From 3f99332ce1b6cba91f01f975776e00df43bf75e8 Mon Sep 17 00:00:00 2001 From: Lucas Woodward <31957045+SketchingDev@users.noreply.github.com> Date: Mon, 1 Jun 2026 21:51:12 +0100 Subject: [PATCH 01/11] Add dependency --- package.json | 5 +- pnpm-lock.yaml | 28 +++++++ servers/genesys-cloud-architect-mcp.js | 104 ++++++++++++++----------- 3 files changed, 89 insertions(+), 48 deletions(-) diff --git a/package.json b/package.json index 260ec17..24321c6 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,9 @@ "private": true, "packageManager": "pnpm@11.1.3+sha512.c85357fe17ca12dd23dd7071822666dfd7e3cb76fe214e3370b5ea2fb34f2a231185509b63e717f3cd0acb38dd3f8d82bcd5e8172400ae678b70ea4fbed0896d", "scripts": { - "build": "esbuild src/mcp-server/index.ts --bundle --platform=node --target=node22 --format=cjs --minify --tree-shaking=true --define:process.env.npm_package_version=\\\"$npm_package_version\\\" --outfile=servers/genesys-cloud-architect-mcp.js", + "build": "pnpm run build:mcp-server && pnpm run build:deploy-runner", + "build:mcp-server": "esbuild src/mcp-server/index.ts --bundle --platform=node --target=node22 --format=cjs --minify --tree-shaking=true --define:process.env.npm_package_version=\\\"$npm_package_version\\\" --outfile=servers/genesys-cloud-architect-mcp.js", + "build:deploy-runner": "esbuild src/deploy-runner/index.ts --bundle --platform=node --target=node22 --format=cjs --outfile=bin/deploy-runner.js", "lint": "biome check", "lint:fix": "biome check --write", "format": "biome format --write", @@ -15,6 +17,7 @@ }, "dependencies": { "@modelcontextprotocol/sdk": "^1.12.0", + "purecloud-flow-scripting-api-sdk-javascript": "^0.66.1", "purecloud-platform-client-v2": "^252.1.0", "zod": "^4.0.0" }, diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index f0197d5..d17d786 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -11,6 +11,9 @@ importers: '@modelcontextprotocol/sdk': specifier: ^1.12.0 version: 1.29.0(zod@4.4.3) + purecloud-flow-scripting-api-sdk-javascript: + specifier: ^0.66.1 + version: 0.66.1 purecloud-platform-client-v2: specifier: ^252.1.0 version: 252.1.0 @@ -658,6 +661,10 @@ packages: resolution: {integrity: sha512-cJ+oHTW1VAEa8cJslgmUZrc+sjRKgAKl3Zyse6+PV38hZe/V6Z14TbCuXcan9F9ghlz4QrFr2c92TNF82UkYHA==} engines: {node: '>=10'} + purecloud-flow-scripting-api-sdk-javascript@0.66.1: + resolution: {integrity: sha512-aWSE4+2Guh7FNXRiGNtmTa74llyFuG8c9UI5KqWV2rwQ4zNurX506F3v5okrOMmPkqA6y5yHL8mOIOZwGZ6ELg==} + engines: {node: '>=20.0.0'} + purecloud-platform-client-v2@252.1.0: resolution: {integrity: sha512-TD1u4H/HInP230a9Gstw4T52HZo3CKo3cot4qMHXj9yo7qVla1pM4UNPn70Rm7XsW6aNHqDd48LSEetHY3h88g==} @@ -790,6 +797,18 @@ packages: wrappy@1.0.2: resolution: {integrity: sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==} + ws@8.20.1: + resolution: {integrity: sha512-It4dO0K5v//JtTXuPkfEOaI3uUN87iYPnqo/ZzqCoG3g8uhA66QUMs/SrM0YK7/NAu+r4LMh/9dq2A7k+rHs+w==} + engines: {node: '>=10.0.0'} + peerDependencies: + bufferutil: ^4.0.1 + utf-8-validate: '>=5.0.2' + peerDependenciesMeta: + bufferutil: + optional: true + utf-8-validate: + optional: true + zod-to-json-schema@3.25.2: resolution: {integrity: sha512-O/PgfnpT1xKSDeQYSCfRI5Gy3hPf91mKVDuYLUHZJMiDFptvP41MSnWofm8dnCm0256ZNfZIM7DSzuSMAFnjHA==} peerDependencies: @@ -1352,6 +1371,13 @@ snapshots: proxy-from-env@2.1.0: {} + purecloud-flow-scripting-api-sdk-javascript@0.66.1: + dependencies: + ws: 8.20.1 + transitivePeerDependencies: + - bufferutil + - utf-8-validate + purecloud-platform-client-v2@252.1.0: dependencies: axios: 1.16.1 @@ -1516,6 +1542,8 @@ snapshots: wrappy@1.0.2: {} + ws@8.20.1: {} + zod-to-json-schema@3.25.2(zod@4.4.3): dependencies: zod: 4.4.3 diff --git a/servers/genesys-cloud-architect-mcp.js b/servers/genesys-cloud-architect-mcp.js index df4b926..8dbcac7 100644 --- a/servers/genesys-cloud-architect-mcp.js +++ b/servers/genesys-cloud-architect-mcp.js @@ -1,44 +1,44 @@ -"use strict";var uI=Object.create;var pd=Object.defineProperty;var cI=Object.getOwnPropertyDescriptor;var pI=Object.getOwnPropertyNames;var dI=Object.getPrototypeOf,hI=Object.prototype.hasOwnProperty;var w=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),dd=(t,e)=>{for(var i in e)pd(t,i,{get:e[i],enumerable:!0})},gI=(t,e,i,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of pI(e))!hI.call(t,a)&&a!==i&&pd(t,a,{get:()=>e[a],enumerable:!(n=cI(e,a))||n.enumerable});return t};var Ml=(t,e,i)=>(i=t!=null?uI(dI(t)):{},gI(e||!t||!t.__esModule?pd(i,"default",{value:t,enumerable:!0}):i,t));var Ks=w(Pe=>{"use strict";Object.defineProperty(Pe,"__esModule",{value:!0});Pe.regexpCode=Pe.getEsmExportName=Pe.getProperty=Pe.safeStringify=Pe.stringify=Pe.strConcat=Pe.addCodeArg=Pe.str=Pe._=Pe.nil=Pe._Code=Pe.Name=Pe.IDENTIFIER=Pe._CodeOrName=void 0;var Js=class{};Pe._CodeOrName=Js;Pe.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;var va=class extends Js{constructor(e){if(super(),!Pe.IDENTIFIER.test(e))throw new Error("CodeGen: name must be a valid identifier");this.str=e}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}};Pe.Name=va;var cn=class extends Js{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((i,n)=>`${i}${n}`,"")}get names(){var e;return(e=this._names)!==null&&e!==void 0?e:this._names=this._items.reduce((i,n)=>(n instanceof va&&(i[n.str]=(i[n.str]||0)+1),i),{})}};Pe._Code=cn;Pe.nil=new cn("");function QS(t,...e){let i=[t[0]],n=0;for(;n{"use strict";Object.defineProperty(Ni,"__esModule",{value:!0});Ni.ValueScope=Ni.ValueScopeName=Ni.Scope=Ni.varKinds=Ni.UsedValueState=void 0;var $i=Ks(),hm=class extends Error{constructor(e){super(`CodeGen: "code" for ${e} not defined`),this.value=e.value}},Hu;(function(t){t[t.Started=0]="Started",t[t.Completed=1]="Completed"})(Hu||(Ni.UsedValueState=Hu={}));Ni.varKinds={const:new $i.Name("const"),let:new $i.Name("let"),var:new $i.Name("var")};var Ru=class{constructor({prefixes:e,parent:i}={}){this._names={},this._prefixes=e,this._parent=i}toName(e){return e instanceof $i.Name?e:this.name(e)}name(e){return new $i.Name(this._newName(e))}_newName(e){let i=this._names[e]||this._nameGroup(e);return`${e}${i.index++}`}_nameGroup(e){var i,n;if(!((n=(i=this._parent)===null||i===void 0?void 0:i._prefixes)===null||n===void 0)&&n.has(e)||this._prefixes&&!this._prefixes.has(e))throw new Error(`CodeGen: prefix "${e}" is not allowed in this scope`);return this._names[e]={prefix:e,index:0}}};Ni.Scope=Ru;var Iu=class extends $i.Name{constructor(e,i){super(i),this.prefix=e}setValue(e,{property:i,itemIndex:n}){this.value=e,this.scopePath=(0,$i._)`.${new $i.Name(i)}[${n}]`}};Ni.ValueScopeName=Iu;var k$=(0,$i._)`\n`,gm=class extends Ru{constructor(e){super(e),this._values={},this._scope=e.scope,this.opts={...e,_n:e.lines?k$:$i.nil}}get(){return this._scope}name(e){return new Iu(e,this._newName(e))}value(e,i){var n;if(i.ref===void 0)throw new Error("CodeGen: ref must be passed in value");let a=this.toName(e),{prefix:r}=a,s=(n=i.key)!==null&&n!==void 0?n:i.ref,o=this._values[r];if(o){let c=o.get(s);if(c)return c}else o=this._values[r]=new Map;o.set(s,a);let l=this._scope[r]||(this._scope[r]=[]),u=l.length;return l[u]=i.ref,a.setValue(i,{property:r,itemIndex:u}),a}getValue(e,i){let n=this._values[e];if(n)return n.get(i)}scopeRefs(e,i=this._values){return this._reduceValues(i,n=>{if(n.scopePath===void 0)throw new Error(`CodeGen: name "${n}" has no value`);return(0,$i._)`${e}${n.scopePath}`})}scopeCode(e=this._values,i,n){return this._reduceValues(e,a=>{if(a.value===void 0)throw new Error(`CodeGen: name "${a}" has no value`);return a.value.code},i,n)}_reduceValues(e,i,n={},a){let r=$i.nil;for(let s in e){let o=e[s];if(!o)continue;let l=n[s]=n[s]||new Map;o.forEach(u=>{if(l.has(u))return;l.set(u,Hu.Started);let c=i(u);if(c){let p=this.opts.es5?Ni.varKinds.var:Ni.varKinds.const;r=(0,$i._)`${r}${p} ${u} = ${c};${this.opts._n}`}else if(c=a?.(u))r=(0,$i._)`${r}${c}${this.opts._n}`;else throw new hm(u);l.set(u,Hu.Completed)})}return r}};Ni.ValueScope=gm});var re=w(oe=>{"use strict";Object.defineProperty(oe,"__esModule",{value:!0});oe.or=oe.and=oe.not=oe.CodeGen=oe.operators=oe.varKinds=oe.ValueScopeName=oe.ValueScope=oe.Scope=oe.Name=oe.regexpCode=oe.stringify=oe.getProperty=oe.nil=oe.strConcat=oe.str=oe._=void 0;var fe=Ks(),bn=mm(),xt=Ks();Object.defineProperty(oe,"_",{enumerable:!0,get:function(){return xt._}});Object.defineProperty(oe,"str",{enumerable:!0,get:function(){return xt.str}});Object.defineProperty(oe,"strConcat",{enumerable:!0,get:function(){return xt.strConcat}});Object.defineProperty(oe,"nil",{enumerable:!0,get:function(){return xt.nil}});Object.defineProperty(oe,"getProperty",{enumerable:!0,get:function(){return xt.getProperty}});Object.defineProperty(oe,"stringify",{enumerable:!0,get:function(){return xt.stringify}});Object.defineProperty(oe,"regexpCode",{enumerable:!0,get:function(){return xt.regexpCode}});Object.defineProperty(oe,"Name",{enumerable:!0,get:function(){return xt.Name}});var $u=mm();Object.defineProperty(oe,"Scope",{enumerable:!0,get:function(){return $u.Scope}});Object.defineProperty(oe,"ValueScope",{enumerable:!0,get:function(){return $u.ValueScope}});Object.defineProperty(oe,"ValueScopeName",{enumerable:!0,get:function(){return $u.ValueScopeName}});Object.defineProperty(oe,"varKinds",{enumerable:!0,get:function(){return $u.varKinds}});oe.operators={GT:new fe._Code(">"),GTE:new fe._Code(">="),LT:new fe._Code("<"),LTE:new fe._Code("<="),EQ:new fe._Code("==="),NEQ:new fe._Code("!=="),NOT:new fe._Code("!"),OR:new fe._Code("||"),AND:new fe._Code("&&"),ADD:new fe._Code("+")};var at=class{optimizeNodes(){return this}optimizeNames(e,i){return this}},fm=class extends at{constructor(e,i,n){super(),this.varKind=e,this.name=i,this.rhs=n}render({es5:e,_n:i}){let n=e?bn.varKinds.var:this.varKind,a=this.rhs===void 0?"":` = ${this.rhs}`;return`${n} ${this.name}${a};`+i}optimizeNames(e,i){if(e[this.name.str])return this.rhs&&(this.rhs=Ar(this.rhs,e,i)),this}get names(){return this.rhs instanceof fe._CodeOrName?this.rhs.names:{}}},zu=class extends at{constructor(e,i,n){super(),this.lhs=e,this.rhs=i,this.sideEffects=n}render({_n:e}){return`${this.lhs} = ${this.rhs};`+e}optimizeNames(e,i){if(!(this.lhs instanceof fe.Name&&!e[this.lhs.str]&&!this.sideEffects))return this.rhs=Ar(this.rhs,e,i),this}get names(){let e=this.lhs instanceof fe.Name?{}:{...this.lhs.names};return Gu(e,this.rhs)}},wm=class extends zu{constructor(e,i,n,a){super(e,n,a),this.op=i}render({_n:e}){return`${this.lhs} ${this.op}= ${this.rhs};`+e}},vm=class extends at{constructor(e){super(),this.label=e,this.names={}}render({_n:e}){return`${this.label}:`+e}},Cm=class extends at{constructor(e){super(),this.label=e,this.names={}}render({_n:e}){return`break${this.label?` ${this.label}`:""};`+e}},Am=class extends at{constructor(e){super(),this.error=e}render({_n:e}){return`throw ${this.error};`+e}get names(){return this.error.names}},bm=class extends at{constructor(e){super(),this.code=e}render({_n:e}){return`${this.code};`+e}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(e,i){return this.code=Ar(this.code,e,i),this}get names(){return this.code instanceof fe._CodeOrName?this.code.names:{}}},Qs=class extends at{constructor(e=[]){super(),this.nodes=e}render(e){return this.nodes.reduce((i,n)=>i+n.render(e),"")}optimizeNodes(){let{nodes:e}=this,i=e.length;for(;i--;){let n=e[i].optimizeNodes();Array.isArray(n)?e.splice(i,1,...n):n?e[i]=n:e.splice(i,1)}return e.length>0?this:void 0}optimizeNames(e,i){let{nodes:n}=this,a=n.length;for(;a--;){let r=n[a];r.optimizeNames(e,i)||(q$(e,r.names),n.splice(a,1))}return n.length>0?this:void 0}get names(){return this.nodes.reduce((e,i)=>ba(e,i.names),{})}},rt=class extends Qs{render(e){return"{"+e._n+super.render(e)+"}"+e._n}},ym=class extends Qs{},Cr=class extends rt{};Cr.kind="else";var Ca=class t extends rt{constructor(e,i){super(i),this.condition=e}render(e){let i=`if(${this.condition})`+super.render(e);return this.else&&(i+="else "+this.else.render(e)),i}optimizeNodes(){super.optimizeNodes();let e=this.condition;if(e===!0)return this.nodes;let i=this.else;if(i){let n=i.optimizeNodes();i=this.else=Array.isArray(n)?new Cr(n):n}if(i)return e===!1?i instanceof t?i:i.nodes:this.nodes.length?this:new t(XS(e),i instanceof t?[i]:i.nodes);if(!(e===!1||!this.nodes.length))return this}optimizeNames(e,i){var n;if(this.else=(n=this.else)===null||n===void 0?void 0:n.optimizeNames(e,i),!!(super.optimizeNames(e,i)||this.else))return this.condition=Ar(this.condition,e,i),this}get names(){let e=super.names;return Gu(e,this.condition),this.else&&ba(e,this.else.names),e}};Ca.kind="if";var Aa=class extends rt{};Aa.kind="for";var Pm=class extends Aa{constructor(e){super(),this.iteration=e}render(e){return`for(${this.iteration})`+super.render(e)}optimizeNames(e,i){if(super.optimizeNames(e,i))return this.iteration=Ar(this.iteration,e,i),this}get names(){return ba(super.names,this.iteration.names)}},jm=class extends Aa{constructor(e,i,n,a){super(),this.varKind=e,this.name=i,this.from=n,this.to=a}render(e){let i=e.es5?bn.varKinds.var:this.varKind,{name:n,from:a,to:r}=this;return`for(${i} ${n}=${a}; ${n}<${r}; ${n}++)`+super.render(e)}get names(){let e=Gu(super.names,this.from);return Gu(e,this.to)}},Du=class extends Aa{constructor(e,i,n,a){super(),this.loop=e,this.varKind=i,this.name=n,this.iterable=a}render(e){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(e)}optimizeNames(e,i){if(super.optimizeNames(e,i))return this.iterable=Ar(this.iterable,e,i),this}get names(){return ba(super.names,this.iterable.names)}},Ys=class extends rt{constructor(e,i,n){super(),this.name=e,this.args=i,this.async=n}render(e){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(e)}};Ys.kind="func";var Xs=class extends Qs{render(e){return"return "+super.render(e)}};Xs.kind="return";var Sm=class extends rt{render(e){let i="try"+super.render(e);return this.catch&&(i+=this.catch.render(e)),this.finally&&(i+=this.finally.render(e)),i}optimizeNodes(){var e,i;return super.optimizeNodes(),(e=this.catch)===null||e===void 0||e.optimizeNodes(),(i=this.finally)===null||i===void 0||i.optimizeNodes(),this}optimizeNames(e,i){var n,a;return super.optimizeNames(e,i),(n=this.catch)===null||n===void 0||n.optimizeNames(e,i),(a=this.finally)===null||a===void 0||a.optimizeNames(e,i),this}get names(){let e=super.names;return this.catch&&ba(e,this.catch.names),this.finally&&ba(e,this.finally.names),e}},eo=class extends rt{constructor(e){super(),this.error=e}render(e){return`catch(${this.error})`+super.render(e)}};eo.kind="catch";var io=class extends rt{render(e){return"finally"+super.render(e)}};io.kind="finally";var Om=class{constructor(e,i={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...i,_n:i.lines?` -`:""},this._extScope=e,this._scope=new bn.Scope({parent:e}),this._nodes=[new ym]}toString(){return this._root.render(this.opts)}name(e){return this._scope.name(e)}scopeName(e){return this._extScope.name(e)}scopeValue(e,i){let n=this._extScope.value(e,i);return(this._values[n.prefix]||(this._values[n.prefix]=new Set)).add(n),n}getScopeValue(e,i){return this._extScope.getValue(e,i)}scopeRefs(e){return this._extScope.scopeRefs(e,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(e,i,n,a){let r=this._scope.toName(i);return n!==void 0&&a&&(this._constants[r.str]=n),this._leafNode(new fm(e,r,n)),r}const(e,i,n){return this._def(bn.varKinds.const,e,i,n)}let(e,i,n){return this._def(bn.varKinds.let,e,i,n)}var(e,i,n){return this._def(bn.varKinds.var,e,i,n)}assign(e,i,n){return this._leafNode(new zu(e,i,n))}add(e,i){return this._leafNode(new wm(e,oe.operators.ADD,i))}code(e){return typeof e=="function"?e():e!==fe.nil&&this._leafNode(new bm(e)),this}object(...e){let i=["{"];for(let[n,a]of e)i.length>1&&i.push(","),i.push(n),(n!==a||this.opts.es5)&&(i.push(":"),(0,fe.addCodeArg)(i,a));return i.push("}"),new fe._Code(i)}if(e,i,n){if(this._blockNode(new Ca(e)),i&&n)this.code(i).else().code(n).endIf();else if(i)this.code(i).endIf();else if(n)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(e){return this._elseNode(new Ca(e))}else(){return this._elseNode(new Cr)}endIf(){return this._endBlockNode(Ca,Cr)}_for(e,i){return this._blockNode(e),i&&this.code(i).endFor(),this}for(e,i){return this._for(new Pm(e),i)}forRange(e,i,n,a,r=this.opts.es5?bn.varKinds.var:bn.varKinds.let){let s=this._scope.toName(e);return this._for(new jm(r,s,i,n),()=>a(s))}forOf(e,i,n,a=bn.varKinds.const){let r=this._scope.toName(e);if(this.opts.es5){let s=i instanceof fe.Name?i:this.var("_arr",i);return this.forRange("_i",0,(0,fe._)`${s}.length`,o=>{this.var(r,(0,fe._)`${s}[${o}]`),n(r)})}return this._for(new Du("of",a,r,i),()=>n(r))}forIn(e,i,n,a=this.opts.es5?bn.varKinds.var:bn.varKinds.const){if(this.opts.ownProperties)return this.forOf(e,(0,fe._)`Object.keys(${i})`,n);let r=this._scope.toName(e);return this._for(new Du("in",a,r,i),()=>n(r))}endFor(){return this._endBlockNode(Aa)}label(e){return this._leafNode(new vm(e))}break(e){return this._leafNode(new Cm(e))}return(e){let i=new Xs;if(this._blockNode(i),this.code(e),i.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(Xs)}try(e,i,n){if(!i&&!n)throw new Error('CodeGen: "try" without "catch" and "finally"');let a=new Sm;if(this._blockNode(a),this.code(e),i){let r=this.name("e");this._currNode=a.catch=new eo(r),i(r)}return n&&(this._currNode=a.finally=new io,this.code(n)),this._endBlockNode(eo,io)}throw(e){return this._leafNode(new Am(e))}block(e,i){return this._blockStarts.push(this._nodes.length),e&&this.code(e).endBlock(i),this}endBlock(e){let i=this._blockStarts.pop();if(i===void 0)throw new Error("CodeGen: not in self-balancing block");let n=this._nodes.length-i;if(n<0||e!==void 0&&n!==e)throw new Error(`CodeGen: wrong number of nodes: ${n} vs ${e} expected`);return this._nodes.length=i,this}func(e,i=fe.nil,n,a){return this._blockNode(new Ys(e,i,n)),a&&this.code(a).endFunc(),this}endFunc(){return this._endBlockNode(Ys)}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,i){let n=this._currNode;if(n instanceof e||i&&n instanceof i)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${i?`${e.kind}/${i.kind}`:e.kind}"`)}_elseNode(e){let i=this._currNode;if(!(i instanceof Ca))throw new Error('CodeGen: "else" without "if"');return this._currNode=i.else=e,this}get _root(){return this._nodes[0]}get _currNode(){let e=this._nodes;return e[e.length-1]}set _currNode(e){let i=this._nodes;i[i.length-1]=e}};oe.CodeGen=Om;function ba(t,e){for(let i in e)t[i]=(t[i]||0)+(e[i]||0);return t}function Gu(t,e){return e instanceof fe._CodeOrName?ba(t,e.names):t}function Ar(t,e,i){if(t instanceof fe.Name)return n(t);if(!a(t))return t;return new fe._Code(t._items.reduce((r,s)=>(s instanceof fe.Name&&(s=n(s)),s instanceof fe._Code?r.push(...s._items):r.push(s),r),[]));function n(r){let s=i[r.str];return s===void 0||e[r.str]!==1?r:(delete e[r.str],s)}function a(r){return r instanceof fe._Code&&r._items.some(s=>s instanceof fe.Name&&e[s.str]===1&&i[s.str]!==void 0)}}function q$(t,e){for(let i in e)t[i]=(t[i]||0)-(e[i]||0)}function XS(t){return typeof t=="boolean"||typeof t=="number"||t===null?!t:(0,fe._)`!${xm(t)}`}oe.not=XS;var _$=eO(oe.operators.AND);function H$(...t){return t.reduce(_$)}oe.and=H$;var R$=eO(oe.operators.OR);function I$(...t){return t.reduce(R$)}oe.or=I$;function eO(t){return(e,i)=>e===fe.nil?i:i===fe.nil?e:(0,fe._)`${xm(e)} ${t} ${xm(i)}`}function xm(t){return t instanceof fe.Name?t:(0,fe._)`(${t})`}});var we=w(le=>{"use strict";Object.defineProperty(le,"__esModule",{value:!0});le.checkStrictMode=le.getErrorPath=le.Type=le.useFunc=le.setEvaluated=le.evaluatedPropsToName=le.mergeEvaluated=le.eachItem=le.unescapeJsonPointer=le.escapeJsonPointer=le.escapeFragment=le.unescapeFragment=le.schemaRefOrVal=le.schemaHasRulesButRef=le.schemaHasRules=le.checkUnknownRules=le.alwaysValidSchema=le.toHash=void 0;var _e=re(),z$=Ks();function D$(t){let e={};for(let i of t)e[i]=!0;return e}le.toHash=D$;function G$(t,e){return typeof e=="boolean"?e:Object.keys(e).length===0?!0:(tO(t,e),!aO(e,t.self.RULES.all))}le.alwaysValidSchema=G$;function tO(t,e=t.schema){let{opts:i,self:n}=t;if(!i.strictSchema||typeof e=="boolean")return;let a=n.RULES.keywords;for(let r in e)a[r]||oO(t,`unknown keyword: "${r}"`)}le.checkUnknownRules=tO;function aO(t,e){if(typeof t=="boolean")return!t;for(let i in t)if(e[i])return!0;return!1}le.schemaHasRules=aO;function $$(t,e){if(typeof t=="boolean")return!t;for(let i in t)if(i!=="$ref"&&e.all[i])return!0;return!1}le.schemaHasRulesButRef=$$;function N$({topSchemaRef:t,schemaPath:e},i,n,a){if(!a){if(typeof i=="number"||typeof i=="boolean")return i;if(typeof i=="string")return(0,_e._)`${i}`}return(0,_e._)`${t}${e}${(0,_e.getProperty)(n)}`}le.schemaRefOrVal=N$;function U$(t){return rO(decodeURIComponent(t))}le.unescapeFragment=U$;function L$(t){return encodeURIComponent(Mm(t))}le.escapeFragment=L$;function Mm(t){return typeof t=="number"?`${t}`:t.replace(/~/g,"~0").replace(/\//g,"~1")}le.escapeJsonPointer=Mm;function rO(t){return t.replace(/~1/g,"/").replace(/~0/g,"~")}le.unescapeJsonPointer=rO;function W$(t,e){if(Array.isArray(t))for(let i of t)e(i);else e(t)}le.eachItem=W$;function iO({mergeNames:t,mergeToName:e,mergeValues:i,resultToName:n}){return(a,r,s,o)=>{let l=s===void 0?r:s instanceof _e.Name?(r instanceof _e.Name?t(a,r,s):e(a,r,s),s):r instanceof _e.Name?(e(a,s,r),r):i(r,s);return o===_e.Name&&!(l instanceof _e.Name)?n(a,l):l}}le.mergeEvaluated={props:iO({mergeNames:(t,e,i)=>t.if((0,_e._)`${i} !== true && ${e} !== undefined`,()=>{t.if((0,_e._)`${e} === true`,()=>t.assign(i,!0),()=>t.assign(i,(0,_e._)`${i} || {}`).code((0,_e._)`Object.assign(${i}, ${e})`))}),mergeToName:(t,e,i)=>t.if((0,_e._)`${i} !== true`,()=>{e===!0?t.assign(i,!0):(t.assign(i,(0,_e._)`${i} || {}`),Em(t,i,e))}),mergeValues:(t,e)=>t===!0?!0:{...t,...e},resultToName:sO}),items:iO({mergeNames:(t,e,i)=>t.if((0,_e._)`${i} !== true && ${e} !== undefined`,()=>t.assign(i,(0,_e._)`${e} === true ? true : ${i} > ${e} ? ${i} : ${e}`)),mergeToName:(t,e,i)=>t.if((0,_e._)`${i} !== true`,()=>t.assign(i,e===!0?!0:(0,_e._)`${i} > ${e} ? ${i} : ${e}`)),mergeValues:(t,e)=>t===!0?!0:Math.max(t,e),resultToName:(t,e)=>t.var("items",e)})};function sO(t,e){if(e===!0)return t.var("props",!0);let i=t.var("props",(0,_e._)`{}`);return e!==void 0&&Em(t,i,e),i}le.evaluatedPropsToName=sO;function Em(t,e,i){Object.keys(i).forEach(n=>t.assign((0,_e._)`${e}${(0,_e.getProperty)(n)}`,!0))}le.setEvaluated=Em;var nO={};function B$(t,e){return t.scopeValue("func",{ref:e,code:nO[e.code]||(nO[e.code]=new z$._Code(e.code))})}le.useFunc=B$;var Tm;(function(t){t[t.Num=0]="Num",t[t.Str=1]="Str"})(Tm||(le.Type=Tm={}));function F$(t,e,i){if(t instanceof _e.Name){let n=e===Tm.Num;return i?n?(0,_e._)`"[" + ${t} + "]"`:(0,_e._)`"['" + ${t} + "']"`:n?(0,_e._)`"/" + ${t}`:(0,_e._)`"/" + ${t}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return i?(0,_e.getProperty)(t).toString():"/"+Mm(t)}le.getErrorPath=F$;function oO(t,e,i=t.opts.strictSchema){if(i){if(e=`strict mode: ${e}`,i===!0)throw new Error(e);t.self.logger.warn(e)}}le.checkStrictMode=oO});var st=w(km=>{"use strict";Object.defineProperty(km,"__esModule",{value:!0});var Ti=re(),V$={data:new Ti.Name("data"),valCxt:new Ti.Name("valCxt"),instancePath:new Ti.Name("instancePath"),parentData:new Ti.Name("parentData"),parentDataProperty:new Ti.Name("parentDataProperty"),rootData:new Ti.Name("rootData"),dynamicAnchors:new Ti.Name("dynamicAnchors"),vErrors:new Ti.Name("vErrors"),errors:new Ti.Name("errors"),this:new Ti.Name("this"),self:new Ti.Name("self"),scope:new Ti.Name("scope"),json:new Ti.Name("json"),jsonPos:new Ti.Name("jsonPos"),jsonLen:new Ti.Name("jsonLen"),jsonPart:new Ti.Name("jsonPart")};km.default=V$});var no=w(Mi=>{"use strict";Object.defineProperty(Mi,"__esModule",{value:!0});Mi.extendErrors=Mi.resetErrorsCount=Mi.reportExtraError=Mi.reportError=Mi.keyword$DataError=Mi.keywordError=void 0;var ve=re(),Nu=we(),Hi=st();Mi.keywordError={message:({keyword:t})=>(0,ve.str)`must pass "${t}" keyword validation`};Mi.keyword$DataError={message:({keyword:t,schemaType:e})=>e?(0,ve.str)`"${t}" keyword must be ${e} ($data)`:(0,ve.str)`"${t}" keyword is invalid ($data)`};function J$(t,e=Mi.keywordError,i,n){let{it:a}=t,{gen:r,compositeRule:s,allErrors:o}=a,l=cO(t,e,i);n??(s||o)?lO(r,l):uO(a,(0,ve._)`[${l}]`)}Mi.reportError=J$;function Z$(t,e=Mi.keywordError,i){let{it:n}=t,{gen:a,compositeRule:r,allErrors:s}=n,o=cO(t,e,i);lO(a,o),r||s||uO(n,Hi.default.vErrors)}Mi.reportExtraError=Z$;function K$(t,e){t.assign(Hi.default.errors,e),t.if((0,ve._)`${Hi.default.vErrors} !== null`,()=>t.if(e,()=>t.assign((0,ve._)`${Hi.default.vErrors}.length`,e),()=>t.assign(Hi.default.vErrors,null)))}Mi.resetErrorsCount=K$;function Q$({gen:t,keyword:e,schemaValue:i,data:n,errsCount:a,it:r}){if(a===void 0)throw new Error("ajv implementation error");let s=t.name("err");t.forRange("i",a,Hi.default.errors,o=>{t.const(s,(0,ve._)`${Hi.default.vErrors}[${o}]`),t.if((0,ve._)`${s}.instancePath === undefined`,()=>t.assign((0,ve._)`${s}.instancePath`,(0,ve.strConcat)(Hi.default.instancePath,r.errorPath))),t.assign((0,ve._)`${s}.schemaPath`,(0,ve.str)`${r.errSchemaPath}/${e}`),r.opts.verbose&&(t.assign((0,ve._)`${s}.schema`,i),t.assign((0,ve._)`${s}.data`,n))})}Mi.extendErrors=Q$;function lO(t,e){let i=t.const("err",e);t.if((0,ve._)`${Hi.default.vErrors} === null`,()=>t.assign(Hi.default.vErrors,(0,ve._)`[${i}]`),(0,ve._)`${Hi.default.vErrors}.push(${i})`),t.code((0,ve._)`${Hi.default.errors}++`)}function uO(t,e){let{gen:i,validateName:n,schemaEnv:a}=t;a.$async?i.throw((0,ve._)`new ${t.ValidationError}(${e})`):(i.assign((0,ve._)`${n}.errors`,e),i.return(!1))}var ya={keyword:new ve.Name("keyword"),schemaPath:new ve.Name("schemaPath"),params:new ve.Name("params"),propertyName:new ve.Name("propertyName"),message:new ve.Name("message"),schema:new ve.Name("schema"),parentSchema:new ve.Name("parentSchema")};function cO(t,e,i){let{createErrors:n}=t.it;return n===!1?(0,ve._)`{}`:Y$(t,e,i)}function Y$(t,e,i={}){let{gen:n,it:a}=t,r=[X$(a,i),eN(t,i)];return iN(t,e,r),n.object(...r)}function X$({errorPath:t},{instancePath:e}){let i=e?(0,ve.str)`${t}${(0,Nu.getErrorPath)(e,Nu.Type.Str)}`:t;return[Hi.default.instancePath,(0,ve.strConcat)(Hi.default.instancePath,i)]}function eN({keyword:t,it:{errSchemaPath:e}},{schemaPath:i,parentSchema:n}){let a=n?e:(0,ve.str)`${e}/${t}`;return i&&(a=(0,ve.str)`${a}${(0,Nu.getErrorPath)(i,Nu.Type.Str)}`),[ya.schemaPath,a]}function iN(t,{params:e,message:i},n){let{keyword:a,data:r,schemaValue:s,it:o}=t,{opts:l,propertyName:u,topSchemaRef:c,schemaPath:p}=o;n.push([ya.keyword,a],[ya.params,typeof e=="function"?e(t):e||(0,ve._)`{}`]),l.messages&&n.push([ya.message,typeof i=="function"?i(t):i]),l.verbose&&n.push([ya.schema,s],[ya.parentSchema,(0,ve._)`${c}${p}`],[Hi.default.data,r]),u&&n.push([ya.propertyName,u])}});var dO=w(br=>{"use strict";Object.defineProperty(br,"__esModule",{value:!0});br.boolOrEmptySchema=br.topBoolOrEmptySchema=void 0;var nN=no(),tN=re(),aN=st(),rN={message:"boolean schema is false"};function sN(t){let{gen:e,schema:i,validateName:n}=t;i===!1?pO(t,!1):typeof i=="object"&&i.$async===!0?e.return(aN.default.data):(e.assign((0,tN._)`${n}.errors`,null),e.return(!0))}br.topBoolOrEmptySchema=sN;function oN(t,e){let{gen:i,schema:n}=t;n===!1?(i.var(e,!1),pO(t)):i.var(e,!0)}br.boolOrEmptySchema=oN;function pO(t,e){let{gen:i,data:n}=t,a={gen:i,keyword:"false schema",data:n,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:t};(0,nN.reportError)(a,rN,void 0,e)}});var qm=w(yr=>{"use strict";Object.defineProperty(yr,"__esModule",{value:!0});yr.getRules=yr.isJSONType=void 0;var lN=["string","number","integer","boolean","null","object","array"],uN=new Set(lN);function cN(t){return typeof t=="string"&&uN.has(t)}yr.isJSONType=cN;function pN(){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:{}}}yr.getRules=pN});var _m=w(Tt=>{"use strict";Object.defineProperty(Tt,"__esModule",{value:!0});Tt.shouldUseRule=Tt.shouldUseGroup=Tt.schemaHasRulesForType=void 0;function dN({schema:t,self:e},i){let n=e.RULES.types[i];return n&&n!==!0&&hO(t,n)}Tt.schemaHasRulesForType=dN;function hO(t,e){return e.rules.some(i=>gO(t,i))}Tt.shouldUseGroup=hO;function gO(t,e){var i;return t[e.keyword]!==void 0||((i=e.definition.implements)===null||i===void 0?void 0:i.some(n=>t[n]!==void 0))}Tt.shouldUseRule=gO});var to=w(Ei=>{"use strict";Object.defineProperty(Ei,"__esModule",{value:!0});Ei.reportTypeError=Ei.checkDataTypes=Ei.checkDataType=Ei.coerceAndCheckDataType=Ei.getJSONTypes=Ei.getSchemaTypes=Ei.DataType=void 0;var hN=qm(),gN=_m(),mN=no(),te=re(),mO=we(),Pr;(function(t){t[t.Correct=0]="Correct",t[t.Wrong=1]="Wrong"})(Pr||(Ei.DataType=Pr={}));function fN(t){let e=fO(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}Ei.getSchemaTypes=fN;function fO(t){let e=Array.isArray(t)?t:t?[t]:[];if(e.every(hN.isJSONType))return e;throw new Error("type must be JSONType or JSONType[]: "+e.join(","))}Ei.getJSONTypes=fO;function wN(t,e){let{gen:i,data:n,opts:a}=t,r=vN(e,a.coerceTypes),s=e.length>0&&!(r.length===0&&e.length===1&&(0,gN.schemaHasRulesForType)(t,e[0]));if(s){let o=Rm(e,n,a.strictNumbers,Pr.Wrong);i.if(o,()=>{r.length?CN(t,e,r):Im(t)})}return s}Ei.coerceAndCheckDataType=wN;var wO=new Set(["string","number","integer","boolean","null"]);function vN(t,e){return e?t.filter(i=>wO.has(i)||e==="array"&&i==="array"):[]}function CN(t,e,i){let{gen:n,data:a,opts:r}=t,s=n.let("dataType",(0,te._)`typeof ${a}`),o=n.let("coerced",(0,te._)`undefined`);r.coerceTypes==="array"&&n.if((0,te._)`${s} == 'object' && Array.isArray(${a}) && ${a}.length == 1`,()=>n.assign(a,(0,te._)`${a}[0]`).assign(s,(0,te._)`typeof ${a}`).if(Rm(e,a,r.strictNumbers),()=>n.assign(o,a))),n.if((0,te._)`${o} !== undefined`);for(let u of i)(wO.has(u)||u==="array"&&r.coerceTypes==="array")&&l(u);n.else(),Im(t),n.endIf(),n.if((0,te._)`${o} !== undefined`,()=>{n.assign(a,o),AN(t,o)});function l(u){switch(u){case"string":n.elseIf((0,te._)`${s} == "number" || ${s} == "boolean"`).assign(o,(0,te._)`"" + ${a}`).elseIf((0,te._)`${a} === null`).assign(o,(0,te._)`""`);return;case"number":n.elseIf((0,te._)`${s} == "boolean" || ${a} === null +"use strict";var mI=Object.create;var hd=Object.defineProperty;var fI=Object.getOwnPropertyDescriptor;var wI=Object.getOwnPropertyNames;var vI=Object.getPrototypeOf,CI=Object.prototype.hasOwnProperty;var w=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),gd=(t,e)=>{for(var i in e)hd(t,i,{get:e[i],enumerable:!0})},AI=(t,e,i,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of wI(e))!CI.call(t,a)&&a!==i&&hd(t,a,{get:()=>e[a],enumerable:!(n=fI(e,a))||n.enumerable});return t};var Xa=(t,e,i)=>(i=t!=null?mI(vI(t)):{},AI(e||!t||!t.__esModule?hd(i,"default",{value:t,enumerable:!0}):i,t));var Ys=w(Pe=>{"use strict";Object.defineProperty(Pe,"__esModule",{value:!0});Pe.regexpCode=Pe.getEsmExportName=Pe.getProperty=Pe.safeStringify=Pe.stringify=Pe.strConcat=Pe.addCodeArg=Pe.str=Pe._=Pe.nil=Pe._Code=Pe.Name=Pe.IDENTIFIER=Pe._CodeOrName=void 0;var Ks=class{};Pe._CodeOrName=Ks;Pe.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;var va=class extends Ks{constructor(e){if(super(),!Pe.IDENTIFIER.test(e))throw new Error("CodeGen: name must be a valid identifier");this.str=e}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}};Pe.Name=va;var cn=class extends Ks{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((i,n)=>`${i}${n}`,"")}get names(){var e;return(e=this._names)!==null&&e!==void 0?e:this._names=this._items.reduce((i,n)=>(n instanceof va&&(i[n.str]=(i[n.str]||0)+1),i),{})}};Pe._Code=cn;Pe.nil=new cn("");function XS(t,...e){let i=[t[0]],n=0;for(;n{"use strict";Object.defineProperty(Ni,"__esModule",{value:!0});Ni.ValueScope=Ni.ValueScopeName=Ni.Scope=Ni.varKinds=Ni.UsedValueState=void 0;var $i=Ys(),mm=class extends Error{constructor(e){super(`CodeGen: "code" for ${e} not defined`),this.value=e.value}},Ru;(function(t){t[t.Started=0]="Started",t[t.Completed=1]="Completed"})(Ru||(Ni.UsedValueState=Ru={}));Ni.varKinds={const:new $i.Name("const"),let:new $i.Name("let"),var:new $i.Name("var")};var Iu=class{constructor({prefixes:e,parent:i}={}){this._names={},this._prefixes=e,this._parent=i}toName(e){return e instanceof $i.Name?e:this.name(e)}name(e){return new $i.Name(this._newName(e))}_newName(e){let i=this._names[e]||this._nameGroup(e);return`${e}${i.index++}`}_nameGroup(e){var i,n;if(!((n=(i=this._parent)===null||i===void 0?void 0:i._prefixes)===null||n===void 0)&&n.has(e)||this._prefixes&&!this._prefixes.has(e))throw new Error(`CodeGen: prefix "${e}" is not allowed in this scope`);return this._names[e]={prefix:e,index:0}}};Ni.Scope=Iu;var zu=class extends $i.Name{constructor(e,i){super(i),this.prefix=e}setValue(e,{property:i,itemIndex:n}){this.value=e,this.scopePath=(0,$i._)`.${new $i.Name(i)}[${n}]`}};Ni.ValueScopeName=zu;var z$=(0,$i._)`\n`,fm=class extends Iu{constructor(e){super(e),this._values={},this._scope=e.scope,this.opts={...e,_n:e.lines?z$:$i.nil}}get(){return this._scope}name(e){return new zu(e,this._newName(e))}value(e,i){var n;if(i.ref===void 0)throw new Error("CodeGen: ref must be passed in value");let a=this.toName(e),{prefix:r}=a,s=(n=i.key)!==null&&n!==void 0?n:i.ref,o=this._values[r];if(o){let c=o.get(s);if(c)return c}else o=this._values[r]=new Map;o.set(s,a);let l=this._scope[r]||(this._scope[r]=[]),u=l.length;return l[u]=i.ref,a.setValue(i,{property:r,itemIndex:u}),a}getValue(e,i){let n=this._values[e];if(n)return n.get(i)}scopeRefs(e,i=this._values){return this._reduceValues(i,n=>{if(n.scopePath===void 0)throw new Error(`CodeGen: name "${n}" has no value`);return(0,$i._)`${e}${n.scopePath}`})}scopeCode(e=this._values,i,n){return this._reduceValues(e,a=>{if(a.value===void 0)throw new Error(`CodeGen: name "${a}" has no value`);return a.value.code},i,n)}_reduceValues(e,i,n={},a){let r=$i.nil;for(let s in e){let o=e[s];if(!o)continue;let l=n[s]=n[s]||new Map;o.forEach(u=>{if(l.has(u))return;l.set(u,Ru.Started);let c=i(u);if(c){let p=this.opts.es5?Ni.varKinds.var:Ni.varKinds.const;r=(0,$i._)`${r}${p} ${u} = ${c};${this.opts._n}`}else if(c=a?.(u))r=(0,$i._)`${r}${c}${this.opts._n}`;else throw new mm(u);l.set(u,Ru.Completed)})}return r}};Ni.ValueScope=fm});var re=w(oe=>{"use strict";Object.defineProperty(oe,"__esModule",{value:!0});oe.or=oe.and=oe.not=oe.CodeGen=oe.operators=oe.varKinds=oe.ValueScopeName=oe.ValueScope=oe.Scope=oe.Name=oe.regexpCode=oe.stringify=oe.getProperty=oe.nil=oe.strConcat=oe.str=oe._=void 0;var fe=Ys(),yn=wm(),xt=Ys();Object.defineProperty(oe,"_",{enumerable:!0,get:function(){return xt._}});Object.defineProperty(oe,"str",{enumerable:!0,get:function(){return xt.str}});Object.defineProperty(oe,"strConcat",{enumerable:!0,get:function(){return xt.strConcat}});Object.defineProperty(oe,"nil",{enumerable:!0,get:function(){return xt.nil}});Object.defineProperty(oe,"getProperty",{enumerable:!0,get:function(){return xt.getProperty}});Object.defineProperty(oe,"stringify",{enumerable:!0,get:function(){return xt.stringify}});Object.defineProperty(oe,"regexpCode",{enumerable:!0,get:function(){return xt.regexpCode}});Object.defineProperty(oe,"Name",{enumerable:!0,get:function(){return xt.Name}});var Nu=wm();Object.defineProperty(oe,"Scope",{enumerable:!0,get:function(){return Nu.Scope}});Object.defineProperty(oe,"ValueScope",{enumerable:!0,get:function(){return Nu.ValueScope}});Object.defineProperty(oe,"ValueScopeName",{enumerable:!0,get:function(){return Nu.ValueScopeName}});Object.defineProperty(oe,"varKinds",{enumerable:!0,get:function(){return Nu.varKinds}});oe.operators={GT:new fe._Code(">"),GTE:new fe._Code(">="),LT:new fe._Code("<"),LTE:new fe._Code("<="),EQ:new fe._Code("==="),NEQ:new fe._Code("!=="),NOT:new fe._Code("!"),OR:new fe._Code("||"),AND:new fe._Code("&&"),ADD:new fe._Code("+")};var at=class{optimizeNodes(){return this}optimizeNames(e,i){return this}},vm=class extends at{constructor(e,i,n){super(),this.varKind=e,this.name=i,this.rhs=n}render({es5:e,_n:i}){let n=e?yn.varKinds.var:this.varKind,a=this.rhs===void 0?"":` = ${this.rhs}`;return`${n} ${this.name}${a};`+i}optimizeNames(e,i){if(e[this.name.str])return this.rhs&&(this.rhs=br(this.rhs,e,i)),this}get names(){return this.rhs instanceof fe._CodeOrName?this.rhs.names:{}}},Du=class extends at{constructor(e,i,n){super(),this.lhs=e,this.rhs=i,this.sideEffects=n}render({_n:e}){return`${this.lhs} = ${this.rhs};`+e}optimizeNames(e,i){if(!(this.lhs instanceof fe.Name&&!e[this.lhs.str]&&!this.sideEffects))return this.rhs=br(this.rhs,e,i),this}get names(){let e=this.lhs instanceof fe.Name?{}:{...this.lhs.names};return $u(e,this.rhs)}},Cm=class extends Du{constructor(e,i,n,a){super(e,n,a),this.op=i}render({_n:e}){return`${this.lhs} ${this.op}= ${this.rhs};`+e}},Am=class extends at{constructor(e){super(),this.label=e,this.names={}}render({_n:e}){return`${this.label}:`+e}},bm=class extends at{constructor(e){super(),this.label=e,this.names={}}render({_n:e}){return`break${this.label?` ${this.label}`:""};`+e}},ym=class extends at{constructor(e){super(),this.error=e}render({_n:e}){return`throw ${this.error};`+e}get names(){return this.error.names}},Pm=class extends at{constructor(e){super(),this.code=e}render({_n:e}){return`${this.code};`+e}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(e,i){return this.code=br(this.code,e,i),this}get names(){return this.code instanceof fe._CodeOrName?this.code.names:{}}},Xs=class extends at{constructor(e=[]){super(),this.nodes=e}render(e){return this.nodes.reduce((i,n)=>i+n.render(e),"")}optimizeNodes(){let{nodes:e}=this,i=e.length;for(;i--;){let n=e[i].optimizeNodes();Array.isArray(n)?e.splice(i,1,...n):n?e[i]=n:e.splice(i,1)}return e.length>0?this:void 0}optimizeNames(e,i){let{nodes:n}=this,a=n.length;for(;a--;){let r=n[a];r.optimizeNames(e,i)||(D$(e,r.names),n.splice(a,1))}return n.length>0?this:void 0}get names(){return this.nodes.reduce((e,i)=>ba(e,i.names),{})}},rt=class extends Xs{render(e){return"{"+e._n+super.render(e)+"}"+e._n}},jm=class extends Xs{},Ar=class extends rt{};Ar.kind="else";var Ca=class t extends rt{constructor(e,i){super(i),this.condition=e}render(e){let i=`if(${this.condition})`+super.render(e);return this.else&&(i+="else "+this.else.render(e)),i}optimizeNodes(){super.optimizeNodes();let e=this.condition;if(e===!0)return this.nodes;let i=this.else;if(i){let n=i.optimizeNodes();i=this.else=Array.isArray(n)?new Ar(n):n}if(i)return e===!1?i instanceof t?i:i.nodes:this.nodes.length?this:new t(iO(e),i instanceof t?[i]:i.nodes);if(!(e===!1||!this.nodes.length))return this}optimizeNames(e,i){var n;if(this.else=(n=this.else)===null||n===void 0?void 0:n.optimizeNames(e,i),!!(super.optimizeNames(e,i)||this.else))return this.condition=br(this.condition,e,i),this}get names(){let e=super.names;return $u(e,this.condition),this.else&&ba(e,this.else.names),e}};Ca.kind="if";var Aa=class extends rt{};Aa.kind="for";var Sm=class extends Aa{constructor(e){super(),this.iteration=e}render(e){return`for(${this.iteration})`+super.render(e)}optimizeNames(e,i){if(super.optimizeNames(e,i))return this.iteration=br(this.iteration,e,i),this}get names(){return ba(super.names,this.iteration.names)}},Om=class extends Aa{constructor(e,i,n,a){super(),this.varKind=e,this.name=i,this.from=n,this.to=a}render(e){let i=e.es5?yn.varKinds.var:this.varKind,{name:n,from:a,to:r}=this;return`for(${i} ${n}=${a}; ${n}<${r}; ${n}++)`+super.render(e)}get names(){let e=$u(super.names,this.from);return $u(e,this.to)}},Gu=class extends Aa{constructor(e,i,n,a){super(),this.loop=e,this.varKind=i,this.name=n,this.iterable=a}render(e){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(e)}optimizeNames(e,i){if(super.optimizeNames(e,i))return this.iterable=br(this.iterable,e,i),this}get names(){return ba(super.names,this.iterable.names)}},eo=class extends rt{constructor(e,i,n){super(),this.name=e,this.args=i,this.async=n}render(e){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(e)}};eo.kind="func";var io=class extends Xs{render(e){return"return "+super.render(e)}};io.kind="return";var xm=class extends rt{render(e){let i="try"+super.render(e);return this.catch&&(i+=this.catch.render(e)),this.finally&&(i+=this.finally.render(e)),i}optimizeNodes(){var e,i;return super.optimizeNodes(),(e=this.catch)===null||e===void 0||e.optimizeNodes(),(i=this.finally)===null||i===void 0||i.optimizeNodes(),this}optimizeNames(e,i){var n,a;return super.optimizeNames(e,i),(n=this.catch)===null||n===void 0||n.optimizeNames(e,i),(a=this.finally)===null||a===void 0||a.optimizeNames(e,i),this}get names(){let e=super.names;return this.catch&&ba(e,this.catch.names),this.finally&&ba(e,this.finally.names),e}},no=class extends rt{constructor(e){super(),this.error=e}render(e){return`catch(${this.error})`+super.render(e)}};no.kind="catch";var to=class extends rt{render(e){return"finally"+super.render(e)}};to.kind="finally";var Tm=class{constructor(e,i={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...i,_n:i.lines?` +`:""},this._extScope=e,this._scope=new yn.Scope({parent:e}),this._nodes=[new jm]}toString(){return this._root.render(this.opts)}name(e){return this._scope.name(e)}scopeName(e){return this._extScope.name(e)}scopeValue(e,i){let n=this._extScope.value(e,i);return(this._values[n.prefix]||(this._values[n.prefix]=new Set)).add(n),n}getScopeValue(e,i){return this._extScope.getValue(e,i)}scopeRefs(e){return this._extScope.scopeRefs(e,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(e,i,n,a){let r=this._scope.toName(i);return n!==void 0&&a&&(this._constants[r.str]=n),this._leafNode(new vm(e,r,n)),r}const(e,i,n){return this._def(yn.varKinds.const,e,i,n)}let(e,i,n){return this._def(yn.varKinds.let,e,i,n)}var(e,i,n){return this._def(yn.varKinds.var,e,i,n)}assign(e,i,n){return this._leafNode(new Du(e,i,n))}add(e,i){return this._leafNode(new Cm(e,oe.operators.ADD,i))}code(e){return typeof e=="function"?e():e!==fe.nil&&this._leafNode(new Pm(e)),this}object(...e){let i=["{"];for(let[n,a]of e)i.length>1&&i.push(","),i.push(n),(n!==a||this.opts.es5)&&(i.push(":"),(0,fe.addCodeArg)(i,a));return i.push("}"),new fe._Code(i)}if(e,i,n){if(this._blockNode(new Ca(e)),i&&n)this.code(i).else().code(n).endIf();else if(i)this.code(i).endIf();else if(n)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(e){return this._elseNode(new Ca(e))}else(){return this._elseNode(new Ar)}endIf(){return this._endBlockNode(Ca,Ar)}_for(e,i){return this._blockNode(e),i&&this.code(i).endFor(),this}for(e,i){return this._for(new Sm(e),i)}forRange(e,i,n,a,r=this.opts.es5?yn.varKinds.var:yn.varKinds.let){let s=this._scope.toName(e);return this._for(new Om(r,s,i,n),()=>a(s))}forOf(e,i,n,a=yn.varKinds.const){let r=this._scope.toName(e);if(this.opts.es5){let s=i instanceof fe.Name?i:this.var("_arr",i);return this.forRange("_i",0,(0,fe._)`${s}.length`,o=>{this.var(r,(0,fe._)`${s}[${o}]`),n(r)})}return this._for(new Gu("of",a,r,i),()=>n(r))}forIn(e,i,n,a=this.opts.es5?yn.varKinds.var:yn.varKinds.const){if(this.opts.ownProperties)return this.forOf(e,(0,fe._)`Object.keys(${i})`,n);let r=this._scope.toName(e);return this._for(new Gu("in",a,r,i),()=>n(r))}endFor(){return this._endBlockNode(Aa)}label(e){return this._leafNode(new Am(e))}break(e){return this._leafNode(new bm(e))}return(e){let i=new io;if(this._blockNode(i),this.code(e),i.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(io)}try(e,i,n){if(!i&&!n)throw new Error('CodeGen: "try" without "catch" and "finally"');let a=new xm;if(this._blockNode(a),this.code(e),i){let r=this.name("e");this._currNode=a.catch=new no(r),i(r)}return n&&(this._currNode=a.finally=new to,this.code(n)),this._endBlockNode(no,to)}throw(e){return this._leafNode(new ym(e))}block(e,i){return this._blockStarts.push(this._nodes.length),e&&this.code(e).endBlock(i),this}endBlock(e){let i=this._blockStarts.pop();if(i===void 0)throw new Error("CodeGen: not in self-balancing block");let n=this._nodes.length-i;if(n<0||e!==void 0&&n!==e)throw new Error(`CodeGen: wrong number of nodes: ${n} vs ${e} expected`);return this._nodes.length=i,this}func(e,i=fe.nil,n,a){return this._blockNode(new eo(e,i,n)),a&&this.code(a).endFunc(),this}endFunc(){return this._endBlockNode(eo)}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,i){let n=this._currNode;if(n instanceof e||i&&n instanceof i)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${i?`${e.kind}/${i.kind}`:e.kind}"`)}_elseNode(e){let i=this._currNode;if(!(i instanceof Ca))throw new Error('CodeGen: "else" without "if"');return this._currNode=i.else=e,this}get _root(){return this._nodes[0]}get _currNode(){let e=this._nodes;return e[e.length-1]}set _currNode(e){let i=this._nodes;i[i.length-1]=e}};oe.CodeGen=Tm;function ba(t,e){for(let i in e)t[i]=(t[i]||0)+(e[i]||0);return t}function $u(t,e){return e instanceof fe._CodeOrName?ba(t,e.names):t}function br(t,e,i){if(t instanceof fe.Name)return n(t);if(!a(t))return t;return new fe._Code(t._items.reduce((r,s)=>(s instanceof fe.Name&&(s=n(s)),s instanceof fe._Code?r.push(...s._items):r.push(s),r),[]));function n(r){let s=i[r.str];return s===void 0||e[r.str]!==1?r:(delete e[r.str],s)}function a(r){return r instanceof fe._Code&&r._items.some(s=>s instanceof fe.Name&&e[s.str]===1&&i[s.str]!==void 0)}}function D$(t,e){for(let i in e)t[i]=(t[i]||0)-(e[i]||0)}function iO(t){return typeof t=="boolean"||typeof t=="number"||t===null?!t:(0,fe._)`!${Mm(t)}`}oe.not=iO;var G$=nO(oe.operators.AND);function $$(...t){return t.reduce(G$)}oe.and=$$;var N$=nO(oe.operators.OR);function U$(...t){return t.reduce(N$)}oe.or=U$;function nO(t){return(e,i)=>e===fe.nil?i:i===fe.nil?e:(0,fe._)`${Mm(e)} ${t} ${Mm(i)}`}function Mm(t){return t instanceof fe.Name?t:(0,fe._)`(${t})`}});var we=w(le=>{"use strict";Object.defineProperty(le,"__esModule",{value:!0});le.checkStrictMode=le.getErrorPath=le.Type=le.useFunc=le.setEvaluated=le.evaluatedPropsToName=le.mergeEvaluated=le.eachItem=le.unescapeJsonPointer=le.escapeJsonPointer=le.escapeFragment=le.unescapeFragment=le.schemaRefOrVal=le.schemaHasRulesButRef=le.schemaHasRules=le.checkUnknownRules=le.alwaysValidSchema=le.toHash=void 0;var _e=re(),L$=Ys();function W$(t){let e={};for(let i of t)e[i]=!0;return e}le.toHash=W$;function B$(t,e){return typeof e=="boolean"?e:Object.keys(e).length===0?!0:(rO(t,e),!sO(e,t.self.RULES.all))}le.alwaysValidSchema=B$;function rO(t,e=t.schema){let{opts:i,self:n}=t;if(!i.strictSchema||typeof e=="boolean")return;let a=n.RULES.keywords;for(let r in e)a[r]||uO(t,`unknown keyword: "${r}"`)}le.checkUnknownRules=rO;function sO(t,e){if(typeof t=="boolean")return!t;for(let i in t)if(e[i])return!0;return!1}le.schemaHasRules=sO;function F$(t,e){if(typeof t=="boolean")return!t;for(let i in t)if(i!=="$ref"&&e.all[i])return!0;return!1}le.schemaHasRulesButRef=F$;function V$({topSchemaRef:t,schemaPath:e},i,n,a){if(!a){if(typeof i=="number"||typeof i=="boolean")return i;if(typeof i=="string")return(0,_e._)`${i}`}return(0,_e._)`${t}${e}${(0,_e.getProperty)(n)}`}le.schemaRefOrVal=V$;function J$(t){return oO(decodeURIComponent(t))}le.unescapeFragment=J$;function Z$(t){return encodeURIComponent(km(t))}le.escapeFragment=Z$;function km(t){return typeof t=="number"?`${t}`:t.replace(/~/g,"~0").replace(/\//g,"~1")}le.escapeJsonPointer=km;function oO(t){return t.replace(/~1/g,"/").replace(/~0/g,"~")}le.unescapeJsonPointer=oO;function K$(t,e){if(Array.isArray(t))for(let i of t)e(i);else e(t)}le.eachItem=K$;function tO({mergeNames:t,mergeToName:e,mergeValues:i,resultToName:n}){return(a,r,s,o)=>{let l=s===void 0?r:s instanceof _e.Name?(r instanceof _e.Name?t(a,r,s):e(a,r,s),s):r instanceof _e.Name?(e(a,s,r),r):i(r,s);return o===_e.Name&&!(l instanceof _e.Name)?n(a,l):l}}le.mergeEvaluated={props:tO({mergeNames:(t,e,i)=>t.if((0,_e._)`${i} !== true && ${e} !== undefined`,()=>{t.if((0,_e._)`${e} === true`,()=>t.assign(i,!0),()=>t.assign(i,(0,_e._)`${i} || {}`).code((0,_e._)`Object.assign(${i}, ${e})`))}),mergeToName:(t,e,i)=>t.if((0,_e._)`${i} !== true`,()=>{e===!0?t.assign(i,!0):(t.assign(i,(0,_e._)`${i} || {}`),qm(t,i,e))}),mergeValues:(t,e)=>t===!0?!0:{...t,...e},resultToName:lO}),items:tO({mergeNames:(t,e,i)=>t.if((0,_e._)`${i} !== true && ${e} !== undefined`,()=>t.assign(i,(0,_e._)`${e} === true ? true : ${i} > ${e} ? ${i} : ${e}`)),mergeToName:(t,e,i)=>t.if((0,_e._)`${i} !== true`,()=>t.assign(i,e===!0?!0:(0,_e._)`${i} > ${e} ? ${i} : ${e}`)),mergeValues:(t,e)=>t===!0?!0:Math.max(t,e),resultToName:(t,e)=>t.var("items",e)})};function lO(t,e){if(e===!0)return t.var("props",!0);let i=t.var("props",(0,_e._)`{}`);return e!==void 0&&qm(t,i,e),i}le.evaluatedPropsToName=lO;function qm(t,e,i){Object.keys(i).forEach(n=>t.assign((0,_e._)`${e}${(0,_e.getProperty)(n)}`,!0))}le.setEvaluated=qm;var aO={};function Q$(t,e){return t.scopeValue("func",{ref:e,code:aO[e.code]||(aO[e.code]=new L$._Code(e.code))})}le.useFunc=Q$;var Em;(function(t){t[t.Num=0]="Num",t[t.Str=1]="Str"})(Em||(le.Type=Em={}));function Y$(t,e,i){if(t instanceof _e.Name){let n=e===Em.Num;return i?n?(0,_e._)`"[" + ${t} + "]"`:(0,_e._)`"['" + ${t} + "']"`:n?(0,_e._)`"/" + ${t}`:(0,_e._)`"/" + ${t}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return i?(0,_e.getProperty)(t).toString():"/"+km(t)}le.getErrorPath=Y$;function uO(t,e,i=t.opts.strictSchema){if(i){if(e=`strict mode: ${e}`,i===!0)throw new Error(e);t.self.logger.warn(e)}}le.checkStrictMode=uO});var st=w(_m=>{"use strict";Object.defineProperty(_m,"__esModule",{value:!0});var Ti=re(),X$={data:new Ti.Name("data"),valCxt:new Ti.Name("valCxt"),instancePath:new Ti.Name("instancePath"),parentData:new Ti.Name("parentData"),parentDataProperty:new Ti.Name("parentDataProperty"),rootData:new Ti.Name("rootData"),dynamicAnchors:new Ti.Name("dynamicAnchors"),vErrors:new Ti.Name("vErrors"),errors:new Ti.Name("errors"),this:new Ti.Name("this"),self:new Ti.Name("self"),scope:new Ti.Name("scope"),json:new Ti.Name("json"),jsonPos:new Ti.Name("jsonPos"),jsonLen:new Ti.Name("jsonLen"),jsonPart:new Ti.Name("jsonPart")};_m.default=X$});var ao=w(Mi=>{"use strict";Object.defineProperty(Mi,"__esModule",{value:!0});Mi.extendErrors=Mi.resetErrorsCount=Mi.reportExtraError=Mi.reportError=Mi.keyword$DataError=Mi.keywordError=void 0;var ve=re(),Uu=we(),Hi=st();Mi.keywordError={message:({keyword:t})=>(0,ve.str)`must pass "${t}" keyword validation`};Mi.keyword$DataError={message:({keyword:t,schemaType:e})=>e?(0,ve.str)`"${t}" keyword must be ${e} ($data)`:(0,ve.str)`"${t}" keyword is invalid ($data)`};function eN(t,e=Mi.keywordError,i,n){let{it:a}=t,{gen:r,compositeRule:s,allErrors:o}=a,l=dO(t,e,i);n??(s||o)?cO(r,l):pO(a,(0,ve._)`[${l}]`)}Mi.reportError=eN;function iN(t,e=Mi.keywordError,i){let{it:n}=t,{gen:a,compositeRule:r,allErrors:s}=n,o=dO(t,e,i);cO(a,o),r||s||pO(n,Hi.default.vErrors)}Mi.reportExtraError=iN;function nN(t,e){t.assign(Hi.default.errors,e),t.if((0,ve._)`${Hi.default.vErrors} !== null`,()=>t.if(e,()=>t.assign((0,ve._)`${Hi.default.vErrors}.length`,e),()=>t.assign(Hi.default.vErrors,null)))}Mi.resetErrorsCount=nN;function tN({gen:t,keyword:e,schemaValue:i,data:n,errsCount:a,it:r}){if(a===void 0)throw new Error("ajv implementation error");let s=t.name("err");t.forRange("i",a,Hi.default.errors,o=>{t.const(s,(0,ve._)`${Hi.default.vErrors}[${o}]`),t.if((0,ve._)`${s}.instancePath === undefined`,()=>t.assign((0,ve._)`${s}.instancePath`,(0,ve.strConcat)(Hi.default.instancePath,r.errorPath))),t.assign((0,ve._)`${s}.schemaPath`,(0,ve.str)`${r.errSchemaPath}/${e}`),r.opts.verbose&&(t.assign((0,ve._)`${s}.schema`,i),t.assign((0,ve._)`${s}.data`,n))})}Mi.extendErrors=tN;function cO(t,e){let i=t.const("err",e);t.if((0,ve._)`${Hi.default.vErrors} === null`,()=>t.assign(Hi.default.vErrors,(0,ve._)`[${i}]`),(0,ve._)`${Hi.default.vErrors}.push(${i})`),t.code((0,ve._)`${Hi.default.errors}++`)}function pO(t,e){let{gen:i,validateName:n,schemaEnv:a}=t;a.$async?i.throw((0,ve._)`new ${t.ValidationError}(${e})`):(i.assign((0,ve._)`${n}.errors`,e),i.return(!1))}var ya={keyword:new ve.Name("keyword"),schemaPath:new ve.Name("schemaPath"),params:new ve.Name("params"),propertyName:new ve.Name("propertyName"),message:new ve.Name("message"),schema:new ve.Name("schema"),parentSchema:new ve.Name("parentSchema")};function dO(t,e,i){let{createErrors:n}=t.it;return n===!1?(0,ve._)`{}`:aN(t,e,i)}function aN(t,e,i={}){let{gen:n,it:a}=t,r=[rN(a,i),sN(t,i)];return oN(t,e,r),n.object(...r)}function rN({errorPath:t},{instancePath:e}){let i=e?(0,ve.str)`${t}${(0,Uu.getErrorPath)(e,Uu.Type.Str)}`:t;return[Hi.default.instancePath,(0,ve.strConcat)(Hi.default.instancePath,i)]}function sN({keyword:t,it:{errSchemaPath:e}},{schemaPath:i,parentSchema:n}){let a=n?e:(0,ve.str)`${e}/${t}`;return i&&(a=(0,ve.str)`${a}${(0,Uu.getErrorPath)(i,Uu.Type.Str)}`),[ya.schemaPath,a]}function oN(t,{params:e,message:i},n){let{keyword:a,data:r,schemaValue:s,it:o}=t,{opts:l,propertyName:u,topSchemaRef:c,schemaPath:p}=o;n.push([ya.keyword,a],[ya.params,typeof e=="function"?e(t):e||(0,ve._)`{}`]),l.messages&&n.push([ya.message,typeof i=="function"?i(t):i]),l.verbose&&n.push([ya.schema,s],[ya.parentSchema,(0,ve._)`${c}${p}`],[Hi.default.data,r]),u&&n.push([ya.propertyName,u])}});var gO=w(yr=>{"use strict";Object.defineProperty(yr,"__esModule",{value:!0});yr.boolOrEmptySchema=yr.topBoolOrEmptySchema=void 0;var lN=ao(),uN=re(),cN=st(),pN={message:"boolean schema is false"};function dN(t){let{gen:e,schema:i,validateName:n}=t;i===!1?hO(t,!1):typeof i=="object"&&i.$async===!0?e.return(cN.default.data):(e.assign((0,uN._)`${n}.errors`,null),e.return(!0))}yr.topBoolOrEmptySchema=dN;function hN(t,e){let{gen:i,schema:n}=t;n===!1?(i.var(e,!1),hO(t)):i.var(e,!0)}yr.boolOrEmptySchema=hN;function hO(t,e){let{gen:i,data:n}=t,a={gen:i,keyword:"false schema",data:n,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:t};(0,lN.reportError)(a,pN,void 0,e)}});var Hm=w(Pr=>{"use strict";Object.defineProperty(Pr,"__esModule",{value:!0});Pr.getRules=Pr.isJSONType=void 0;var gN=["string","number","integer","boolean","null","object","array"],mN=new Set(gN);function fN(t){return typeof t=="string"&&mN.has(t)}Pr.isJSONType=fN;function wN(){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:{}}}Pr.getRules=wN});var Rm=w(Tt=>{"use strict";Object.defineProperty(Tt,"__esModule",{value:!0});Tt.shouldUseRule=Tt.shouldUseGroup=Tt.schemaHasRulesForType=void 0;function vN({schema:t,self:e},i){let n=e.RULES.types[i];return n&&n!==!0&&mO(t,n)}Tt.schemaHasRulesForType=vN;function mO(t,e){return e.rules.some(i=>fO(t,i))}Tt.shouldUseGroup=mO;function fO(t,e){var i;return t[e.keyword]!==void 0||((i=e.definition.implements)===null||i===void 0?void 0:i.some(n=>t[n]!==void 0))}Tt.shouldUseRule=fO});var ro=w(Ei=>{"use strict";Object.defineProperty(Ei,"__esModule",{value:!0});Ei.reportTypeError=Ei.checkDataTypes=Ei.checkDataType=Ei.coerceAndCheckDataType=Ei.getJSONTypes=Ei.getSchemaTypes=Ei.DataType=void 0;var CN=Hm(),AN=Rm(),bN=ao(),te=re(),wO=we(),jr;(function(t){t[t.Correct=0]="Correct",t[t.Wrong=1]="Wrong"})(jr||(Ei.DataType=jr={}));function yN(t){let e=vO(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}Ei.getSchemaTypes=yN;function vO(t){let e=Array.isArray(t)?t:t?[t]:[];if(e.every(CN.isJSONType))return e;throw new Error("type must be JSONType or JSONType[]: "+e.join(","))}Ei.getJSONTypes=vO;function PN(t,e){let{gen:i,data:n,opts:a}=t,r=jN(e,a.coerceTypes),s=e.length>0&&!(r.length===0&&e.length===1&&(0,AN.schemaHasRulesForType)(t,e[0]));if(s){let o=zm(e,n,a.strictNumbers,jr.Wrong);i.if(o,()=>{r.length?SN(t,e,r):Dm(t)})}return s}Ei.coerceAndCheckDataType=PN;var CO=new Set(["string","number","integer","boolean","null"]);function jN(t,e){return e?t.filter(i=>CO.has(i)||e==="array"&&i==="array"):[]}function SN(t,e,i){let{gen:n,data:a,opts:r}=t,s=n.let("dataType",(0,te._)`typeof ${a}`),o=n.let("coerced",(0,te._)`undefined`);r.coerceTypes==="array"&&n.if((0,te._)`${s} == 'object' && Array.isArray(${a}) && ${a}.length == 1`,()=>n.assign(a,(0,te._)`${a}[0]`).assign(s,(0,te._)`typeof ${a}`).if(zm(e,a,r.strictNumbers),()=>n.assign(o,a))),n.if((0,te._)`${o} !== undefined`);for(let u of i)(CO.has(u)||u==="array"&&r.coerceTypes==="array")&&l(u);n.else(),Dm(t),n.endIf(),n.if((0,te._)`${o} !== undefined`,()=>{n.assign(a,o),ON(t,o)});function l(u){switch(u){case"string":n.elseIf((0,te._)`${s} == "number" || ${s} == "boolean"`).assign(o,(0,te._)`"" + ${a}`).elseIf((0,te._)`${a} === null`).assign(o,(0,te._)`""`);return;case"number":n.elseIf((0,te._)`${s} == "boolean" || ${a} === null || (${s} == "string" && ${a} && ${a} == +${a})`).assign(o,(0,te._)`+${a}`);return;case"integer":n.elseIf((0,te._)`${s} === "boolean" || ${a} === null || (${s} === "string" && ${a} && ${a} == +${a} && !(${a} % 1))`).assign(o,(0,te._)`+${a}`);return;case"boolean":n.elseIf((0,te._)`${a} === "false" || ${a} === 0 || ${a} === null`).assign(o,!1).elseIf((0,te._)`${a} === "true" || ${a} === 1`).assign(o,!0);return;case"null":n.elseIf((0,te._)`${a} === "" || ${a} === 0 || ${a} === false`),n.assign(o,null);return;case"array":n.elseIf((0,te._)`${s} === "string" || ${s} === "number" - || ${s} === "boolean" || ${a} === null`).assign(o,(0,te._)`[${a}]`)}}}function AN({gen:t,parentData:e,parentDataProperty:i},n){t.if((0,te._)`${e} !== undefined`,()=>t.assign((0,te._)`${e}[${i}]`,n))}function Hm(t,e,i,n=Pr.Correct){let a=n===Pr.Correct?te.operators.EQ:te.operators.NEQ,r;switch(t){case"null":return(0,te._)`${e} ${a} null`;case"array":r=(0,te._)`Array.isArray(${e})`;break;case"object":r=(0,te._)`${e} && typeof ${e} == "object" && !Array.isArray(${e})`;break;case"integer":r=s((0,te._)`!(${e} % 1) && !isNaN(${e})`);break;case"number":r=s();break;default:return(0,te._)`typeof ${e} ${a} ${t}`}return n===Pr.Correct?r:(0,te.not)(r);function s(o=te.nil){return(0,te.and)((0,te._)`typeof ${e} == "number"`,o,i?(0,te._)`isFinite(${e})`:te.nil)}}Ei.checkDataType=Hm;function Rm(t,e,i,n){if(t.length===1)return Hm(t[0],e,i,n);let a,r=(0,mO.toHash)(t);if(r.array&&r.object){let s=(0,te._)`typeof ${e} != "object"`;a=r.null?s:(0,te._)`!${e} || ${s}`,delete r.null,delete r.array,delete r.object}else a=te.nil;r.number&&delete r.integer;for(let s in r)a=(0,te.and)(a,Hm(s,e,i,n));return a}Ei.checkDataTypes=Rm;var bN={message:({schema:t})=>`must be ${t}`,params:({schema:t,schemaValue:e})=>typeof t=="string"?(0,te._)`{type: ${t}}`:(0,te._)`{type: ${e}}`};function Im(t){let e=yN(t);(0,mN.reportError)(e,bN)}Ei.reportTypeError=Im;function yN(t){let{gen:e,data:i,schema:n}=t,a=(0,mO.schemaRefOrVal)(t,n,"type");return{gen:e,keyword:"type",data:i,schema:n.type,schemaCode:a,schemaValue:a,parentSchema:n,params:{},it:t}}});var CO=w(Uu=>{"use strict";Object.defineProperty(Uu,"__esModule",{value:!0});Uu.assignDefaults=void 0;var jr=re(),PN=we();function jN(t,e){let{properties:i,items:n}=t.schema;if(e==="object"&&i)for(let a in i)vO(t,a,i[a].default);else e==="array"&&Array.isArray(n)&&n.forEach((a,r)=>vO(t,r,a.default))}Uu.assignDefaults=jN;function vO(t,e,i){let{gen:n,compositeRule:a,data:r,opts:s}=t;if(i===void 0)return;let o=(0,jr._)`${r}${(0,jr.getProperty)(e)}`;if(a){(0,PN.checkStrictMode)(t,`default is ignored for: ${o}`);return}let l=(0,jr._)`${o} === undefined`;s.useDefaults==="empty"&&(l=(0,jr._)`${l} || ${o} === null || ${o} === ""`),n.if(l,(0,jr._)`${o} = ${(0,jr.stringify)(i)}`)}});var pn=w(Ee=>{"use strict";Object.defineProperty(Ee,"__esModule",{value:!0});Ee.validateUnion=Ee.validateArray=Ee.usePattern=Ee.callValidateCode=Ee.schemaProperties=Ee.allSchemaProperties=Ee.noPropertyInData=Ee.propertyInData=Ee.isOwnProperty=Ee.hasPropFunc=Ee.reportMissingProp=Ee.checkMissingProp=Ee.checkReportMissingProp=void 0;var Ne=re(),zm=we(),Mt=st(),SN=we();function ON(t,e){let{gen:i,data:n,it:a}=t;i.if(Gm(i,n,e,a.opts.ownProperties),()=>{t.setParams({missingProperty:(0,Ne._)`${e}`},!0),t.error()})}Ee.checkReportMissingProp=ON;function xN({gen:t,data:e,it:{opts:i}},n,a){return(0,Ne.or)(...n.map(r=>(0,Ne.and)(Gm(t,e,r,i.ownProperties),(0,Ne._)`${a} = ${r}`)))}Ee.checkMissingProp=xN;function TN(t,e){t.setParams({missingProperty:e},!0),t.error()}Ee.reportMissingProp=TN;function AO(t){return t.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,Ne._)`Object.prototype.hasOwnProperty`})}Ee.hasPropFunc=AO;function Dm(t,e,i){return(0,Ne._)`${AO(t)}.call(${e}, ${i})`}Ee.isOwnProperty=Dm;function MN(t,e,i,n){let a=(0,Ne._)`${e}${(0,Ne.getProperty)(i)} !== undefined`;return n?(0,Ne._)`${a} && ${Dm(t,e,i)}`:a}Ee.propertyInData=MN;function Gm(t,e,i,n){let a=(0,Ne._)`${e}${(0,Ne.getProperty)(i)} === undefined`;return n?(0,Ne.or)(a,(0,Ne.not)(Dm(t,e,i))):a}Ee.noPropertyInData=Gm;function bO(t){return t?Object.keys(t).filter(e=>e!=="__proto__"):[]}Ee.allSchemaProperties=bO;function EN(t,e){return bO(e).filter(i=>!(0,zm.alwaysValidSchema)(t,e[i]))}Ee.schemaProperties=EN;function kN({schemaCode:t,data:e,it:{gen:i,topSchemaRef:n,schemaPath:a,errorPath:r},it:s},o,l,u){let c=u?(0,Ne._)`${t}, ${e}, ${n}${a}`:e,p=[[Mt.default.instancePath,(0,Ne.strConcat)(Mt.default.instancePath,r)],[Mt.default.parentData,s.parentData],[Mt.default.parentDataProperty,s.parentDataProperty],[Mt.default.rootData,Mt.default.rootData]];s.opts.dynamicRef&&p.push([Mt.default.dynamicAnchors,Mt.default.dynamicAnchors]);let d=(0,Ne._)`${c}, ${i.object(...p)}`;return l!==Ne.nil?(0,Ne._)`${o}.call(${l}, ${d})`:(0,Ne._)`${o}(${d})`}Ee.callValidateCode=kN;var qN=(0,Ne._)`new RegExp`;function _N({gen:t,it:{opts:e}},i){let n=e.unicodeRegExp?"u":"",{regExp:a}=e.code,r=a(i,n);return t.scopeValue("pattern",{key:r.toString(),ref:r,code:(0,Ne._)`${a.code==="new RegExp"?qN:(0,SN.useFunc)(t,a)}(${i}, ${n})`})}Ee.usePattern=_N;function HN(t){let{gen:e,data:i,keyword:n,it:a}=t,r=e.name("valid");if(a.allErrors){let o=e.let("valid",!0);return s(()=>e.assign(o,!1)),o}return e.var(r,!0),s(()=>e.break()),r;function s(o){let l=e.const("len",(0,Ne._)`${i}.length`);e.forRange("i",0,l,u=>{t.subschema({keyword:n,dataProp:u,dataPropType:zm.Type.Num},r),e.if((0,Ne.not)(r),o)})}}Ee.validateArray=HN;function RN(t){let{gen:e,schema:i,keyword:n,it:a}=t;if(!Array.isArray(i))throw new Error("ajv implementation error");if(i.some(l=>(0,zm.alwaysValidSchema)(a,l))&&!a.opts.unevaluated)return;let s=e.let("valid",!1),o=e.name("_valid");e.block(()=>i.forEach((l,u)=>{let c=t.subschema({keyword:n,schemaProp:u,compositeRule:!0},o);e.assign(s,(0,Ne._)`${s} || ${o}`),t.mergeValidEvaluated(c,o)||e.if((0,Ne.not)(s))})),t.result(s,()=>t.reset(),()=>t.error(!0))}Ee.validateUnion=RN});var jO=w(Rn=>{"use strict";Object.defineProperty(Rn,"__esModule",{value:!0});Rn.validateKeywordUsage=Rn.validSchemaType=Rn.funcKeywordCode=Rn.macroKeywordCode=void 0;var Ri=re(),Pa=st(),IN=pn(),zN=no();function DN(t,e){let{gen:i,keyword:n,schema:a,parentSchema:r,it:s}=t,o=e.macro.call(s.self,a,r,s),l=PO(i,n,o);s.opts.validateSchema!==!1&&s.self.validateSchema(o,!0);let u=i.name("valid");t.subschema({schema:o,schemaPath:Ri.nil,errSchemaPath:`${s.errSchemaPath}/${n}`,topSchemaRef:l,compositeRule:!0},u),t.pass(u,()=>t.error(!0))}Rn.macroKeywordCode=DN;function GN(t,e){var i;let{gen:n,keyword:a,schema:r,parentSchema:s,$data:o,it:l}=t;NN(l,e);let u=!o&&e.compile?e.compile.call(l.self,r,s,l):e.validate,c=PO(n,a,u),p=n.let("valid");t.block$data(p,d),t.ok((i=e.valid)!==null&&i!==void 0?i:p);function d(){if(e.errors===!1)m(),e.modifying&&yO(t),f(()=>t.error());else{let v=e.async?h():g();e.modifying&&yO(t),f(()=>$N(t,v))}}function h(){let v=n.let("ruleErrs",null);return n.try(()=>m((0,Ri._)`await `),y=>n.assign(p,!1).if((0,Ri._)`${y} instanceof ${l.ValidationError}`,()=>n.assign(v,(0,Ri._)`${y}.errors`),()=>n.throw(y))),v}function g(){let v=(0,Ri._)`${c}.errors`;return n.assign(v,null),m(Ri.nil),v}function m(v=e.async?(0,Ri._)`await `:Ri.nil){let y=l.opts.passContext?Pa.default.this:Pa.default.self,A=!("compile"in e&&!o||e.schema===!1);n.assign(p,(0,Ri._)`${v}${(0,IN.callValidateCode)(t,c,y,A)}`,e.modifying)}function f(v){var y;n.if((0,Ri.not)((y=e.valid)!==null&&y!==void 0?y:p),v)}}Rn.funcKeywordCode=GN;function yO(t){let{gen:e,data:i,it:n}=t;e.if(n.parentData,()=>e.assign(i,(0,Ri._)`${n.parentData}[${n.parentDataProperty}]`))}function $N(t,e){let{gen:i}=t;i.if((0,Ri._)`Array.isArray(${e})`,()=>{i.assign(Pa.default.vErrors,(0,Ri._)`${Pa.default.vErrors} === null ? ${e} : ${Pa.default.vErrors}.concat(${e})`).assign(Pa.default.errors,(0,Ri._)`${Pa.default.vErrors}.length`),(0,zN.extendErrors)(t)},()=>t.error())}function NN({schemaEnv:t},e){if(e.async&&!t.$async)throw new Error("async keyword in sync schema")}function PO(t,e,i){if(i===void 0)throw new Error(`keyword "${e}" failed to compile`);return t.scopeValue("keyword",typeof i=="function"?{ref:i}:{ref:i,code:(0,Ri.stringify)(i)})}function UN(t,e,i=!1){return!e.length||e.some(n=>n==="array"?Array.isArray(t):n==="object"?t&&typeof t=="object"&&!Array.isArray(t):typeof t==n||i&&typeof t>"u")}Rn.validSchemaType=UN;function LN({schema:t,opts:e,self:i,errSchemaPath:n},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 "${n}": `+i.errorsText(a.validateSchema.errors);if(e.validateSchema==="log")i.logger.error(l);else throw new Error(l)}}Rn.validateKeywordUsage=LN});var OO=w(Et=>{"use strict";Object.defineProperty(Et,"__esModule",{value:!0});Et.extendSubschemaMode=Et.extendSubschemaData=Et.getSubschema=void 0;var In=re(),SO=we();function WN(t,{keyword:e,schemaProp:i,schema:n,schemaPath:a,errSchemaPath:r,topSchemaRef:s}){if(e!==void 0&&n!==void 0)throw new Error('both "keyword" and "schema" passed, only one allowed');if(e!==void 0){let o=t.schema[e];return i===void 0?{schema:o,schemaPath:(0,In._)`${t.schemaPath}${(0,In.getProperty)(e)}`,errSchemaPath:`${t.errSchemaPath}/${e}`}:{schema:o[i],schemaPath:(0,In._)`${t.schemaPath}${(0,In.getProperty)(e)}${(0,In.getProperty)(i)}`,errSchemaPath:`${t.errSchemaPath}/${e}/${(0,SO.escapeFragment)(i)}`}}if(n!==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:n,schemaPath:a,topSchemaRef:s,errSchemaPath:r}}throw new Error('either "keyword" or "schema" must be passed')}Et.getSubschema=WN;function BN(t,e,{dataProp:i,dataPropType:n,data:a,dataTypes:r,propertyName:s}){if(a!==void 0&&i!==void 0)throw new Error('both "data" and "dataProp" passed, only one allowed');let{gen:o}=e;if(i!==void 0){let{errorPath:u,dataPathArr:c,opts:p}=e,d=o.let("data",(0,In._)`${e.data}${(0,In.getProperty)(i)}`,!0);l(d),t.errorPath=(0,In.str)`${u}${(0,SO.getErrorPath)(i,n,p.jsPropertySyntax)}`,t.parentDataProperty=(0,In._)`${i}`,t.dataPathArr=[...c,t.parentDataProperty]}if(a!==void 0){let u=a instanceof In.Name?a:o.let("data",a,!0);l(u),s!==void 0&&(t.propertyName=s)}r&&(t.dataTypes=r);function l(u){t.data=u,t.dataLevel=e.dataLevel+1,t.dataTypes=[],e.definedProperties=new Set,t.parentData=e.data,t.dataNames=[...e.dataNames,u]}}Et.extendSubschemaData=BN;function FN(t,{jtdDiscriminator:e,jtdMetadata:i,compositeRule:n,createErrors:a,allErrors:r}){n!==void 0&&(t.compositeRule=n),a!==void 0&&(t.createErrors=a),r!==void 0&&(t.allErrors=r),t.jtdDiscriminator=e,t.jtdMetadata=i}Et.extendSubschemaMode=FN});var $m=w((Cae,xO)=>{"use strict";xO.exports=function t(e,i){if(e===i)return!0;if(e&&i&&typeof e=="object"&&typeof i=="object"){if(e.constructor!==i.constructor)return!1;var n,a,r;if(Array.isArray(e)){if(n=e.length,n!=i.length)return!1;for(a=n;a--!==0;)if(!t(e[a],i[a]))return!1;return!0}if(e.constructor===RegExp)return e.source===i.source&&e.flags===i.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===i.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===i.toString();if(r=Object.keys(e),n=r.length,n!==Object.keys(i).length)return!1;for(a=n;a--!==0;)if(!Object.prototype.hasOwnProperty.call(i,r[a]))return!1;for(a=n;a--!==0;){var s=r[a];if(!t(e[s],i[s]))return!1}return!0}return e!==e&&i!==i}});var MO=w((Aae,TO)=>{"use strict";var kt=TO.exports=function(t,e,i){typeof e=="function"&&(i=e,e={}),i=e.cb||i;var n=typeof i=="function"?i:i.pre||function(){},a=i.post||function(){};Lu(e,n,a,t,"",t)};kt.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0};kt.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0};kt.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0};kt.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 Lu(t,e,i,n,a,r,s,o,l,u){if(n&&typeof n=="object"&&!Array.isArray(n)){e(n,a,r,s,o,l,u);for(var c in n){var p=n[c];if(Array.isArray(p)){if(c in kt.arrayKeywords)for(var d=0;d{"use strict";Object.defineProperty(Ui,"__esModule",{value:!0});Ui.getSchemaRefs=Ui.resolveUrl=Ui.normalizeId=Ui._getFullPath=Ui.getFullPath=Ui.inlineRef=void 0;var JN=we(),ZN=$m(),KN=MO(),QN=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function YN(t,e=!0){return typeof t=="boolean"?!0:e===!0?!Nm(t):e?EO(t)<=e:!1}Ui.inlineRef=YN;var XN=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function Nm(t){for(let e in t){if(XN.has(e))return!0;let i=t[e];if(Array.isArray(i)&&i.some(Nm)||typeof i=="object"&&Nm(i))return!0}return!1}function EO(t){let e=0;for(let i in t){if(i==="$ref")return 1/0;if(e++,!QN.has(i)&&(typeof t[i]=="object"&&(0,JN.eachItem)(t[i],n=>e+=EO(n)),e===1/0))return 1/0}return e}function kO(t,e="",i){i!==!1&&(e=Sr(e));let n=t.parse(e);return qO(t,n)}Ui.getFullPath=kO;function qO(t,e){return t.serialize(e).split("#")[0]+"#"}Ui._getFullPath=qO;var eU=/#\/?$/;function Sr(t){return t?t.replace(eU,""):""}Ui.normalizeId=Sr;function iU(t,e,i){return i=Sr(i),t.resolve(e,i)}Ui.resolveUrl=iU;var nU=/^[a-z_][-a-z0-9._]*$/i;function tU(t,e){if(typeof t=="boolean")return{};let{schemaId:i,uriResolver:n}=this.opts,a=Sr(t[i]||e),r={"":a},s=kO(n,a,!1),o={},l=new Set;return KN(t,{allKeys:!0},(p,d,h,g)=>{if(g===void 0)return;let m=s+d,f=r[g];typeof p[i]=="string"&&(f=v.call(this,p[i])),y.call(this,p.$anchor),y.call(this,p.$dynamicAnchor),r[d]=f;function v(A){let b=this.opts.uriResolver.resolve;if(A=Sr(f?b(f,A):A),l.has(A))throw c(A);l.add(A);let O=this.refs[A];return typeof O=="string"&&(O=this.refs[O]),typeof O=="object"?u(p,O.schema,A):A!==Sr(m)&&(A[0]==="#"?(u(p,o[A],A),o[A]=p):this.refs[A]=m),A}function y(A){if(typeof A=="string"){if(!nU.test(A))throw new Error(`invalid anchor "${A}"`);v.call(this,`#${A}`)}}}),o;function u(p,d,h){if(d!==void 0&&!ZN(p,d))throw c(h)}function c(p){return new Error(`reference "${p}" resolves to more than one schema`)}}Ui.getSchemaRefs=tU});var oo=w(qt=>{"use strict";Object.defineProperty(qt,"__esModule",{value:!0});qt.getData=qt.KeywordCxt=qt.validateFunctionCode=void 0;var zO=dO(),_O=to(),Lm=_m(),Wu=to(),aU=CO(),so=jO(),Um=OO(),B=re(),ee=st(),rU=ao(),ot=we(),ro=no();function sU(t){if($O(t)&&(NO(t),GO(t))){uU(t);return}DO(t,()=>(0,zO.topBoolOrEmptySchema)(t))}qt.validateFunctionCode=sU;function DO({gen:t,validateName:e,schema:i,schemaEnv:n,opts:a},r){a.code.es5?t.func(e,(0,B._)`${ee.default.data}, ${ee.default.valCxt}`,n.$async,()=>{t.code((0,B._)`"use strict"; ${HO(i,a)}`),lU(t,a),t.code(r)}):t.func(e,(0,B._)`${ee.default.data}, ${oU(a)}`,n.$async,()=>t.code(HO(i,a)).code(r))}function oU(t){return(0,B._)`{${ee.default.instancePath}="", ${ee.default.parentData}, ${ee.default.parentDataProperty}, ${ee.default.rootData}=${ee.default.data}${t.dynamicRef?(0,B._)`, ${ee.default.dynamicAnchors}={}`:B.nil}}={}`}function lU(t,e){t.if(ee.default.valCxt,()=>{t.var(ee.default.instancePath,(0,B._)`${ee.default.valCxt}.${ee.default.instancePath}`),t.var(ee.default.parentData,(0,B._)`${ee.default.valCxt}.${ee.default.parentData}`),t.var(ee.default.parentDataProperty,(0,B._)`${ee.default.valCxt}.${ee.default.parentDataProperty}`),t.var(ee.default.rootData,(0,B._)`${ee.default.valCxt}.${ee.default.rootData}`),e.dynamicRef&&t.var(ee.default.dynamicAnchors,(0,B._)`${ee.default.valCxt}.${ee.default.dynamicAnchors}`)},()=>{t.var(ee.default.instancePath,(0,B._)`""`),t.var(ee.default.parentData,(0,B._)`undefined`),t.var(ee.default.parentDataProperty,(0,B._)`undefined`),t.var(ee.default.rootData,ee.default.data),e.dynamicRef&&t.var(ee.default.dynamicAnchors,(0,B._)`{}`)})}function uU(t){let{schema:e,opts:i,gen:n}=t;DO(t,()=>{i.$comment&&e.$comment&&LO(t),gU(t),n.let(ee.default.vErrors,null),n.let(ee.default.errors,0),i.unevaluated&&cU(t),UO(t),wU(t)})}function cU(t){let{gen:e,validateName:i}=t;t.evaluated=e.const("evaluated",(0,B._)`${i}.evaluated`),e.if((0,B._)`${t.evaluated}.dynamicProps`,()=>e.assign((0,B._)`${t.evaluated}.props`,(0,B._)`undefined`)),e.if((0,B._)`${t.evaluated}.dynamicItems`,()=>e.assign((0,B._)`${t.evaluated}.items`,(0,B._)`undefined`))}function HO(t,e){let i=typeof t=="object"&&t[e.schemaId];return i&&(e.code.source||e.code.process)?(0,B._)`/*# sourceURL=${i} */`:B.nil}function pU(t,e){if($O(t)&&(NO(t),GO(t))){dU(t,e);return}(0,zO.boolOrEmptySchema)(t,e)}function GO({schema:t,self:e}){if(typeof t=="boolean")return!t;for(let i in t)if(e.RULES.all[i])return!0;return!1}function $O(t){return typeof t.schema!="boolean"}function dU(t,e){let{schema:i,gen:n,opts:a}=t;a.$comment&&i.$comment&&LO(t),mU(t),fU(t);let r=n.const("_errs",ee.default.errors);UO(t,r),n.var(e,(0,B._)`${r} === ${ee.default.errors}`)}function NO(t){(0,ot.checkUnknownRules)(t),hU(t)}function UO(t,e){if(t.opts.jtd)return RO(t,[],!1,e);let i=(0,_O.getSchemaTypes)(t.schema),n=(0,_O.coerceAndCheckDataType)(t,i);RO(t,i,!n,e)}function hU(t){let{schema:e,errSchemaPath:i,opts:n,self:a}=t;e.$ref&&n.ignoreKeywordsWithRef&&(0,ot.schemaHasRulesButRef)(e,a.RULES)&&a.logger.warn(`$ref: keywords ignored in schema at path "${i}"`)}function gU(t){let{schema:e,opts:i}=t;e.default!==void 0&&i.useDefaults&&i.strictSchema&&(0,ot.checkStrictMode)(t,"default is ignored in the schema root")}function mU(t){let e=t.schema[t.opts.schemaId];e&&(t.baseId=(0,rU.resolveUrl)(t.opts.uriResolver,t.baseId,e))}function fU(t){if(t.schema.$async&&!t.schemaEnv.$async)throw new Error("async schema in sync schema")}function LO({gen:t,schemaEnv:e,schema:i,errSchemaPath:n,opts:a}){let r=i.$comment;if(a.$comment===!0)t.code((0,B._)`${ee.default.self}.logger.log(${r})`);else if(typeof a.$comment=="function"){let s=(0,B.str)`${n}/$comment`,o=t.scopeValue("root",{ref:e.root});t.code((0,B._)`${ee.default.self}.opts.$comment(${r}, ${s}, ${o}.schema)`)}}function wU(t){let{gen:e,schemaEnv:i,validateName:n,ValidationError:a,opts:r}=t;i.$async?e.if((0,B._)`${ee.default.errors} === 0`,()=>e.return(ee.default.data),()=>e.throw((0,B._)`new ${a}(${ee.default.vErrors})`)):(e.assign((0,B._)`${n}.errors`,ee.default.vErrors),r.unevaluated&&vU(t),e.return((0,B._)`${ee.default.errors} === 0`))}function vU({gen:t,evaluated:e,props:i,items:n}){i instanceof B.Name&&t.assign((0,B._)`${e}.props`,i),n instanceof B.Name&&t.assign((0,B._)`${e}.items`,n)}function RO(t,e,i,n){let{gen:a,schema:r,data:s,allErrors:o,opts:l,self:u}=t,{RULES:c}=u;if(r.$ref&&(l.ignoreKeywordsWithRef||!(0,ot.schemaHasRulesButRef)(r,c))){a.block(()=>BO(t,"$ref",c.all.$ref.definition));return}l.jtd||CU(t,e),a.block(()=>{for(let d of c.rules)p(d);p(c.post)});function p(d){(0,Lm.shouldUseGroup)(r,d)&&(d.type?(a.if((0,Wu.checkDataType)(d.type,s,l.strictNumbers)),IO(t,d),e.length===1&&e[0]===d.type&&i&&(a.else(),(0,Wu.reportTypeError)(t)),a.endIf()):IO(t,d),o||a.if((0,B._)`${ee.default.errors} === ${n||0}`))}}function IO(t,e){let{gen:i,schema:n,opts:{useDefaults:a}}=t;a&&(0,aU.assignDefaults)(t,e.type),i.block(()=>{for(let r of e.rules)(0,Lm.shouldUseRule)(n,r)&&BO(t,r.keyword,r.definition,e.type)})}function CU(t,e){t.schemaEnv.meta||!t.opts.strictTypes||(AU(t,e),t.opts.allowUnionTypes||bU(t,e),yU(t,t.dataTypes))}function AU(t,e){if(e.length){if(!t.dataTypes.length){t.dataTypes=e;return}e.forEach(i=>{WO(t.dataTypes,i)||Wm(t,`type "${i}" not allowed by context "${t.dataTypes.join(",")}"`)}),jU(t,e)}}function bU(t,e){e.length>1&&!(e.length===2&&e.includes("null"))&&Wm(t,"use allowUnionTypes to allow union type keyword")}function yU(t,e){let i=t.self.RULES.all;for(let n in i){let a=i[n];if(typeof a=="object"&&(0,Lm.shouldUseRule)(t.schema,a)){let{type:r}=a.definition;r.length&&!r.some(s=>PU(e,s))&&Wm(t,`missing type "${r.join(",")}" for keyword "${n}"`)}}}function PU(t,e){return t.includes(e)||e==="number"&&t.includes("integer")}function WO(t,e){return t.includes(e)||e==="integer"&&t.includes("number")}function jU(t,e){let i=[];for(let n of t.dataTypes)WO(e,n)?i.push(n):e.includes("integer")&&n==="number"&&i.push("integer");t.dataTypes=i}function Wm(t,e){let i=t.schemaEnv.baseId+t.errSchemaPath;e+=` at "${i}" (strictTypes)`,(0,ot.checkStrictMode)(t,e,t.opts.strictTypes)}var Bu=class{constructor(e,i,n){if((0,so.validateKeywordUsage)(e,i,n),this.gen=e.gen,this.allErrors=e.allErrors,this.keyword=n,this.data=e.data,this.schema=e.schema[n],this.$data=i.$data&&e.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,ot.schemaRefOrVal)(e,this.schema,n,this.$data),this.schemaType=i.schemaType,this.parentSchema=e.schema,this.params={},this.it=e,this.def=i,this.$data)this.schemaCode=e.gen.const("vSchema",FO(this.$data,e));else if(this.schemaCode=this.schemaValue,!(0,so.validSchemaType)(this.schema,i.schemaType,i.allowUndefined))throw new Error(`${n} value must be ${JSON.stringify(i.schemaType)}`);("code"in i?i.trackErrors:i.errors!==!1)&&(this.errsCount=e.gen.const("_errs",ee.default.errors))}result(e,i,n){this.failResult((0,B.not)(e),i,n)}failResult(e,i,n){this.gen.if(e),n?n():this.error(),i?(this.gen.else(),i(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(e,i){this.failResult((0,B.not)(e),void 0,i)}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:i}=this;this.fail((0,B._)`${i} !== undefined && (${(0,B.or)(this.invalid$data(),e)})`)}error(e,i,n){if(i){this.setParams(i),this._error(e,n),this.setParams({});return}this._error(e,n)}_error(e,i){(e?ro.reportExtraError:ro.reportError)(this,this.def.error,i)}$dataError(){(0,ro.reportError)(this,this.def.$dataError||ro.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');(0,ro.resetErrorsCount)(this.gen,this.errsCount)}ok(e){this.allErrors||this.gen.if(e)}setParams(e,i){i?Object.assign(this.params,e):this.params=e}block$data(e,i,n=B.nil){this.gen.block(()=>{this.check$data(e,n),i()})}check$data(e=B.nil,i=B.nil){if(!this.$data)return;let{gen:n,schemaCode:a,schemaType:r,def:s}=this;n.if((0,B.or)((0,B._)`${a} === undefined`,i)),e!==B.nil&&n.assign(e,!0),(r.length||s.validateSchema)&&(n.elseIf(this.invalid$data()),this.$dataError(),e!==B.nil&&n.assign(e,!1)),n.else()}invalid$data(){let{gen:e,schemaCode:i,schemaType:n,def:a,it:r}=this;return(0,B.or)(s(),o());function s(){if(n.length){if(!(i instanceof B.Name))throw new Error("ajv implementation error");let l=Array.isArray(n)?n:[n];return(0,B._)`${(0,Wu.checkDataTypes)(l,i,r.opts.strictNumbers,Wu.DataType.Wrong)}`}return B.nil}function o(){if(a.validateSchema){let l=e.scopeValue("validate$data",{ref:a.validateSchema});return(0,B._)`!${l}(${i})`}return B.nil}}subschema(e,i){let n=(0,Um.getSubschema)(this.it,e);(0,Um.extendSubschemaData)(n,this.it,e),(0,Um.extendSubschemaMode)(n,e);let a={...this.it,...n,items:void 0,props:void 0};return pU(a,i),a}mergeEvaluated(e,i){let{it:n,gen:a}=this;n.opts.unevaluated&&(n.props!==!0&&e.props!==void 0&&(n.props=ot.mergeEvaluated.props(a,e.props,n.props,i)),n.items!==!0&&e.items!==void 0&&(n.items=ot.mergeEvaluated.items(a,e.items,n.items,i)))}mergeValidEvaluated(e,i){let{it:n,gen:a}=this;if(n.opts.unevaluated&&(n.props!==!0||n.items!==!0))return a.if(i,()=>this.mergeEvaluated(e,B.Name)),!0}};qt.KeywordCxt=Bu;function BO(t,e,i,n){let a=new Bu(t,i,e);"code"in i?i.code(a,n):a.$data&&i.validate?(0,so.funcKeywordCode)(a,i):"macro"in i?(0,so.macroKeywordCode)(a,i):(i.compile||i.validate)&&(0,so.funcKeywordCode)(a,i)}var SU=/^\/(?:[^~]|~0|~1)*$/,OU=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function FO(t,{dataLevel:e,dataNames:i,dataPathArr:n}){let a,r;if(t==="")return ee.default.rootData;if(t[0]==="/"){if(!SU.test(t))throw new Error(`Invalid JSON-pointer: ${t}`);a=t,r=ee.default.rootData}else{let u=OU.exec(t);if(!u)throw new Error(`Invalid JSON-pointer: ${t}`);let c=+u[1];if(a=u[2],a==="#"){if(c>=e)throw new Error(l("property/index",c));return n[e-c]}if(c>e)throw new Error(l("data",c));if(r=i[e-c],!a)return r}let s=r,o=a.split("/");for(let u of o)u&&(r=(0,B._)`${r}${(0,B.getProperty)((0,ot.unescapeJsonPointer)(u))}`,s=(0,B._)`${s} && ${r}`);return s;function l(u,c){return`Cannot access ${u} ${c} levels up, current level is ${e}`}}qt.getData=FO});var Fu=w(Fm=>{"use strict";Object.defineProperty(Fm,"__esModule",{value:!0});var Bm=class extends Error{constructor(e){super("validation failed"),this.errors=e,this.ajv=this.validation=!0}};Fm.default=Bm});var lo=w(Zm=>{"use strict";Object.defineProperty(Zm,"__esModule",{value:!0});var Vm=ao(),Jm=class extends Error{constructor(e,i,n,a){super(a||`can't resolve reference ${n} from id ${i}`),this.missingRef=(0,Vm.resolveUrl)(e,i,n),this.missingSchema=(0,Vm.normalizeId)((0,Vm.getFullPath)(e,this.missingRef))}};Zm.default=Jm});var Ju=w(dn=>{"use strict";Object.defineProperty(dn,"__esModule",{value:!0});dn.resolveSchema=dn.getCompilingSchema=dn.resolveRef=dn.compileSchema=dn.SchemaEnv=void 0;var yn=re(),xU=Fu(),ja=st(),Pn=ao(),VO=we(),TU=oo(),Or=class{constructor(e){var i;this.refs={},this.dynamicAnchors={};let n;typeof e.schema=="object"&&(n=e.schema),this.schema=e.schema,this.schemaId=e.schemaId,this.root=e.root||this,this.baseId=(i=e.baseId)!==null&&i!==void 0?i:(0,Pn.normalizeId)(n?.[e.schemaId||"$id"]),this.schemaPath=e.schemaPath,this.localRefs=e.localRefs,this.meta=e.meta,this.$async=n?.$async,this.refs={}}};dn.SchemaEnv=Or;function Qm(t){let e=JO.call(this,t);if(e)return e;let i=(0,Pn.getFullPath)(this.opts.uriResolver,t.root.baseId),{es5:n,lines:a}=this.opts.code,{ownProperties:r}=this.opts,s=new yn.CodeGen(this.scope,{es5:n,lines:a,ownProperties:r}),o;t.$async&&(o=s.scopeValue("Error",{ref:xU.default,code:(0,yn._)`require("ajv/dist/runtime/validation_error").default`}));let l=s.scopeName("validate");t.validateName=l;let u={gen:s,allErrors:this.opts.allErrors,data:ja.default.data,parentData:ja.default.parentData,parentDataProperty:ja.default.parentDataProperty,dataNames:[ja.default.data],dataPathArr:[yn.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:s.scopeValue("schema",this.opts.code.source===!0?{ref:t.schema,code:(0,yn.stringify)(t.schema)}:{ref:t.schema}),validateName:l,ValidationError:o,schema:t.schema,schemaEnv:t,rootId:i,baseId:t.baseId||i,schemaPath:yn.nil,errSchemaPath:t.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,yn._)`""`,opts:this.opts,self:this},c;try{this._compilations.add(t),(0,TU.validateFunctionCode)(u),s.optimize(this.opts.code.optimize);let p=s.toString();c=`${s.scopeRefs(ja.default.scope)}return ${p}`,this.opts.code.process&&(c=this.opts.code.process(c,t));let h=new Function(`${ja.default.self}`,`${ja.default.scope}`,c)(this,this.scope.get());if(this.scope.value(l,{ref:h}),h.errors=null,h.schema=t.schema,h.schemaEnv=t,t.$async&&(h.$async=!0),this.opts.code.source===!0&&(h.source={validateName:l,validateCode:p,scopeValues:s._values}),this.opts.unevaluated){let{props:g,items:m}=u;h.evaluated={props:g instanceof yn.Name?void 0:g,items:m instanceof yn.Name?void 0:m,dynamicProps:g instanceof yn.Name,dynamicItems:m instanceof yn.Name},h.source&&(h.source.evaluated=(0,yn.stringify)(h.evaluated))}return t.validate=h,t}catch(p){throw delete t.validate,delete t.validateName,c&&this.logger.error("Error compiling schema, function code:",c),p}finally{this._compilations.delete(t)}}dn.compileSchema=Qm;function MU(t,e,i){var n;i=(0,Pn.resolveUrl)(this.opts.uriResolver,e,i);let a=t.refs[i];if(a)return a;let r=qU.call(this,t,i);if(r===void 0){let s=(n=t.localRefs)===null||n===void 0?void 0:n[i],{schemaId:o}=this.opts;s&&(r=new Or({schema:s,schemaId:o,root:t,baseId:e}))}if(r!==void 0)return t.refs[i]=EU.call(this,r)}dn.resolveRef=MU;function EU(t){return(0,Pn.inlineRef)(t.schema,this.opts.inlineRefs)?t.schema:t.validate?t:Qm.call(this,t)}function JO(t){for(let e of this._compilations)if(kU(e,t))return e}dn.getCompilingSchema=JO;function kU(t,e){return t.schema===e.schema&&t.root===e.root&&t.baseId===e.baseId}function qU(t,e){let i;for(;typeof(i=this.refs[e])=="string";)e=i;return i||this.schemas[e]||Vu.call(this,t,e)}function Vu(t,e){let i=this.opts.uriResolver.parse(e),n=(0,Pn._getFullPath)(this.opts.uriResolver,i),a=(0,Pn.getFullPath)(this.opts.uriResolver,t.baseId,void 0);if(Object.keys(t.schema).length>0&&n===a)return Km.call(this,i,t);let r=(0,Pn.normalizeId)(n),s=this.refs[r]||this.schemas[r];if(typeof s=="string"){let o=Vu.call(this,t,s);return typeof o?.schema!="object"?void 0:Km.call(this,i,o)}if(typeof s?.schema=="object"){if(s.validate||Qm.call(this,s),r===(0,Pn.normalizeId)(e)){let{schema:o}=s,{schemaId:l}=this.opts,u=o[l];return u&&(a=(0,Pn.resolveUrl)(this.opts.uriResolver,a,u)),new Or({schema:o,schemaId:l,root:t,baseId:a})}return Km.call(this,i,s)}}dn.resolveSchema=Vu;var _U=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function Km(t,{baseId:e,schema:i,root:n}){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 i=="boolean")return;let l=i[(0,VO.unescapeFragment)(o)];if(l===void 0)return;i=l;let u=typeof i=="object"&&i[this.opts.schemaId];!_U.has(o)&&u&&(e=(0,Pn.resolveUrl)(this.opts.uriResolver,e,u))}let r;if(typeof i!="boolean"&&i.$ref&&!(0,VO.schemaHasRulesButRef)(i,this.RULES)){let o=(0,Pn.resolveUrl)(this.opts.uriResolver,e,i.$ref);r=Vu.call(this,n,o)}let{schemaId:s}=this.opts;if(r=r||new Or({schema:i,schemaId:s,root:n,baseId:e}),r.schema!==r.root.schema)return r}});var ZO=w((Oae,HU)=>{HU.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 ef=w((xae,ix)=>{"use strict";var RU=RegExp.prototype.test.bind(/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu),QO=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),Ym=RegExp.prototype.test.bind(/^[\da-f]{2}$/iu),YO=RegExp.prototype.test.bind(/^[\da-z\-._~]$/iu),IU=RegExp.prototype.test.bind(/^[\da-z\-._~!$&'()*+,;=:@/]$/iu);function Xm(t){let e="",i=0,n=0;for(n=0;n=48&&i<=57||i>=65&&i<=70||i>=97&&i<=102))return"";e+=t[n];break}for(n+=1;n=48&&i<=57||i>=65&&i<=70||i>=97&&i<=102))return"";e+=t[n]}return e}var zU=RegExp.prototype.test.bind(/[^!"$&'()*+,\-.;=_`a-z{}~]/u);function KO(t){return t.length=0,!0}function DU(t,e,i){if(t.length){let n=Xm(t);if(n!=="")e.push(n);else return i.error=!0,!1;t.length=0}return!0}function GU(t){let e=0,i={error:!1,address:"",zone:""},n=[],a=[],r=!1,s=!1,o=DU;for(let l=0;l7){i.error=!0;break}l>0&&t[l-1]===":"&&(r=!0),n.push(":");continue}else if(u==="%"){if(!o(a,n,i))break;o=KO}else{a.push(u);continue}}return a.length&&(o===KO?i.zone=a.join(""):s?n.push(a.join("")):n.push(Xm(a))),i.address=n.join(""),i}function XO(t){if($U(t,":")<2)return{host:t,isIPV6:!1};let e=GU(t);if(e.error)return{host:t,isIPV6:!1};{let i=e.address,n=e.address;return e.zone&&(i+="%"+e.zone,n+="%25"+e.zone),{host:i,isIPV6:!0,escapedHost:n}}}function $U(t,e){let i=0;for(let n=0;nUU[n])}function BU(t,e=!1){if(t.indexOf("%")===-1)return t;let i="";for(let n=0;n{"use strict";var{isUUID:ZU}=ef(),KU=/([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu,QU=["http","https","ws","wss","urn","urn:uuid"];function YU(t){return QU.indexOf(t)!==-1}function nf(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 nx(t){return t.host||(t.error=t.error||"HTTP URIs must have a host."),t}function tx(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 XU(t){return t.secure=nf(t),t.resourceName=(t.path||"/")+(t.query?"?"+t.query:""),t.path=void 0,t.query=void 0,t}function eL(t){if((t.port===(nf(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,i]=t.resourceName.split("?");t.path=e&&e!=="/"?e:void 0,t.query=i,t.resourceName=void 0}return t.fragment=void 0,t}function iL(t,e){if(!t.path)return t.error="URN can not be parsed",t;let i=t.path.match(KU);if(i){let n=e.scheme||t.scheme||"urn";t.nid=i[1].toLowerCase(),t.nss=i[2];let a=`${n}:${e.nid||t.nid}`,r=tf(a);t.path=void 0,r&&(t=r.parse(t,e))}else t.error=t.error||"URN can not be parsed.";return t}function nL(t,e){if(t.nid===void 0)throw new Error("URN without nid cannot be serialized");let i=e.scheme||t.scheme||"urn",n=t.nid.toLowerCase(),a=`${i}:${e.nid||n}`,r=tf(a);r&&(t=r.serialize(t,e));let s=t,o=t.nss;return s.path=`${n||e.nid}:${o}`,e.skipEscape=!0,s}function tL(t,e){let i=t;return i.uuid=i.nss,i.nss=void 0,!e.tolerant&&(!i.uuid||!ZU(i.uuid))&&(i.error=i.error||"UUID is not valid."),i}function aL(t){let e=t;return e.nss=(t.uuid||"").toLowerCase(),e}var ax={scheme:"http",domainHost:!0,parse:nx,serialize:tx},rL={scheme:"https",domainHost:ax.domainHost,parse:nx,serialize:tx},Zu={scheme:"ws",domainHost:!0,parse:XU,serialize:eL},sL={scheme:"wss",domainHost:Zu.domainHost,parse:Zu.parse,serialize:Zu.serialize},oL={scheme:"urn",parse:iL,serialize:nL,skipNormalize:!0},lL={scheme:"urn:uuid",parse:tL,serialize:aL,skipNormalize:!0},Ku={http:ax,https:rL,ws:Zu,wss:sL,urn:oL,"urn:uuid":lL};Object.setPrototypeOf(Ku,null);function tf(t){return t&&(Ku[t]||Ku[t.toLowerCase()])||void 0}rx.exports={wsIsSecure:nf,SCHEMES:Ku,isValidSchemeName:YU,getSchemeHandler:tf}});var dx=w((Mae,Qu)=>{"use strict";var{normalizeIPv6:uL,removeDotSegments:uo,recomposeAuthority:cL,normalizePercentEncoding:pL,normalizePathEncoding:dL,escapePreservingEscapes:hL,reescapeHostDelimiters:gL,isIPv4:mL,nonSimpleDomain:fL}=ef(),{SCHEMES:wL,getSchemeHandler:lx}=sx();function vL(t,e){return typeof t=="string"?t=PL(t,e):typeof t=="object"&&(t=xr(Sa(t,e),e)),t}function CL(t,e,i){let n=i?Object.assign({scheme:"null"},i):{scheme:"null"},a=ux(xr(t,n),xr(e,n),n,!0);return n.skipEscape=!0,Sa(a,n)}function ux(t,e,i,n){let a={};return n||(t=xr(Sa(t,i),i),e=xr(Sa(e,i),i)),i=i||{},!i.tolerant&&e.scheme?(a.scheme=e.scheme,a.userinfo=e.userinfo,a.host=e.host,a.port=e.port,a.path=uo(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=uo(e.path||""),a.query=e.query):(e.path?(e.path[0]==="/"?a.path=uo(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=uo(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 AL(t,e,i){let n=ox(t,i),a=ox(e,i);return n!==void 0&&a!==void 0&&n.toLowerCase()===a.toLowerCase()}function Sa(t,e){let i={host:t.host,scheme:t.scheme,userinfo:t.userinfo,port:t.port,path:t.path,query:t.query,nid:t.nid,nss:t.nss,uuid:t.uuid,fragment:t.fragment,reference:t.reference,resourceName:t.resourceName,secure:t.secure,error:""},n=Object.assign({},e),a=[],r=lx(n.scheme||i.scheme);r&&r.serialize&&r.serialize(i,n),i.path!==void 0&&(n.skipEscape?i.path=pL(i.path):(i.path=hL(i.path),i.scheme!==void 0&&(i.path=i.path.split("%3A").join(":")))),n.reference!=="suffix"&&i.scheme&&a.push(i.scheme,":");let s=cL(i);if(s!==void 0&&(n.reference!=="suffix"&&a.push("//"),a.push(s),i.path&&i.path[0]!=="/"&&a.push("/")),i.path!==void 0){let o=i.path;!n.absolutePath&&(!r||!r.absolutePath)&&(o=uo(o)),s===void 0&&o[0]==="/"&&o[1]==="/"&&(o="/%2F"+o.slice(2)),a.push(o)}return i.query!==void 0&&a.push("?",i.query),i.fragment!==void 0&&a.push("#",i.fragment),a.join("")}var bL=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u;function yL(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 cx(t,e){let i=Object.assign({},e),n={scheme:void 0,userinfo:void 0,host:"",port:void 0,path:"",query:void 0,fragment:void 0},a=!1,r=!1;i.reference==="suffix"&&(i.scheme?t=i.scheme+":"+t:t="//"+t);let s=t.match(bL);if(s){n.scheme=s[1],n.userinfo=s[3],n.host=s[4],n.port=parseInt(s[5],10),n.path=s[6]||"",n.query=s[7],n.fragment=s[8],isNaN(n.port)&&(n.port=s[5]);let o=yL(n,s);if(o!==void 0&&(n.error=n.error||o,a=!0),n.host)if(mL(n.host)===!1){let c=uL(n.host);n.host=c.host.toLowerCase(),r=c.isIPV6}else r=!0;n.scheme===void 0&&n.userinfo===void 0&&n.host===void 0&&n.port===void 0&&n.query===void 0&&!n.path?n.reference="same-document":n.scheme===void 0?n.reference="relative":n.fragment===void 0?n.reference="absolute":n.reference="uri",i.reference&&i.reference!=="suffix"&&i.reference!==n.reference&&(n.error=n.error||"URI is not a "+i.reference+" reference.");let l=lx(i.scheme||n.scheme);if(!i.unicodeSupport&&(!l||!l.unicodeSupport)&&n.host&&(i.domainHost||l&&l.domainHost)&&r===!1&&fL(n.host))try{n.host=URL.domainToASCII(n.host.toLowerCase())}catch(u){n.error=n.error||"Host's domain name can not be converted to ASCII: "+u}if((!l||l&&!l.skipNormalize)&&(t.indexOf("%")!==-1&&(n.scheme!==void 0&&(n.scheme=unescape(n.scheme)),n.host!==void 0&&(n.host=gL(unescape(n.host),r))),n.path&&(n.path=dL(n.path)),n.fragment))try{n.fragment=encodeURI(decodeURIComponent(n.fragment))}catch{n.error=n.error||"URI malformed"}l&&l.parse&&l.parse(n,i)}else n.error=n.error||"URI can not be parsed.";return{parsed:n,malformedAuthorityOrPort:a}}function xr(t,e){return cx(t,e).parsed}function PL(t,e){return px(t,e).normalized}function px(t,e){let{parsed:i,malformedAuthorityOrPort:n}=cx(t,e);return{normalized:n?t:Sa(i,e),malformedAuthorityOrPort:n}}function ox(t,e){if(typeof t=="string"){let{normalized:i,malformedAuthorityOrPort:n}=px(t,e);return n?void 0:i}if(typeof t=="object")return Sa(t,e)}var af={SCHEMES:wL,normalize:vL,resolve:CL,resolveComponent:ux,equal:AL,serialize:Sa,parse:xr};Qu.exports=af;Qu.exports.default=af;Qu.exports.fastUri=af});var gx=w(rf=>{"use strict";Object.defineProperty(rf,"__esModule",{value:!0});var hx=dx();hx.code='require("ajv/dist/runtime/uri").default';rf.default=hx});var yx=w(yi=>{"use strict";Object.defineProperty(yi,"__esModule",{value:!0});yi.CodeGen=yi.Name=yi.nil=yi.stringify=yi.str=yi._=yi.KeywordCxt=void 0;var jL=oo();Object.defineProperty(yi,"KeywordCxt",{enumerable:!0,get:function(){return jL.KeywordCxt}});var Tr=re();Object.defineProperty(yi,"_",{enumerable:!0,get:function(){return Tr._}});Object.defineProperty(yi,"str",{enumerable:!0,get:function(){return Tr.str}});Object.defineProperty(yi,"stringify",{enumerable:!0,get:function(){return Tr.stringify}});Object.defineProperty(yi,"nil",{enumerable:!0,get:function(){return Tr.nil}});Object.defineProperty(yi,"Name",{enumerable:!0,get:function(){return Tr.Name}});Object.defineProperty(yi,"CodeGen",{enumerable:!0,get:function(){return Tr.CodeGen}});var SL=Fu(),Cx=lo(),OL=qm(),co=Ju(),xL=re(),po=ao(),Yu=to(),of=we(),mx=ZO(),TL=gx(),Ax=(t,e)=>new RegExp(t,e);Ax.code="new RegExp";var ML=["removeAdditional","useDefaults","coerceTypes"],EL=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),kL={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."},qL={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},fx=200;function _L(t){var e,i,n,a,r,s,o,l,u,c,p,d,h,g,m,f,v,y,A,b,O,$,N,X,F;let k=t.strict,Q=(e=t.code)===null||e===void 0?void 0:e.optimize,Z=Q===!0||Q===void 0?1:Q||0,ie=(n=(i=t.code)===null||i===void 0?void 0:i.regExp)!==null&&n!==void 0?n:Ax,se=(a=t.uriResolver)!==null&&a!==void 0?a:TL.default;return{strictSchema:(s=(r=t.strictSchema)!==null&&r!==void 0?r:k)!==null&&s!==void 0?s:!0,strictNumbers:(l=(o=t.strictNumbers)!==null&&o!==void 0?o:k)!==null&&l!==void 0?l:!0,strictTypes:(c=(u=t.strictTypes)!==null&&u!==void 0?u:k)!==null&&c!==void 0?c:"log",strictTuples:(d=(p=t.strictTuples)!==null&&p!==void 0?p:k)!==null&&d!==void 0?d:"log",strictRequired:(g=(h=t.strictRequired)!==null&&h!==void 0?h:k)!==null&&g!==void 0?g:!1,code:t.code?{...t.code,optimize:Z,regExp:ie}:{optimize:Z,regExp:ie},loopRequired:(m=t.loopRequired)!==null&&m!==void 0?m:fx,loopEnum:(f=t.loopEnum)!==null&&f!==void 0?f:fx,meta:(v=t.meta)!==null&&v!==void 0?v:!0,messages:(y=t.messages)!==null&&y!==void 0?y:!0,inlineRefs:(A=t.inlineRefs)!==null&&A!==void 0?A:!0,schemaId:(b=t.schemaId)!==null&&b!==void 0?b:"$id",addUsedSchema:(O=t.addUsedSchema)!==null&&O!==void 0?O:!0,validateSchema:($=t.validateSchema)!==null&&$!==void 0?$:!0,validateFormats:(N=t.validateFormats)!==null&&N!==void 0?N:!0,unicodeRegExp:(X=t.unicodeRegExp)!==null&&X!==void 0?X:!0,int32range:(F=t.int32range)!==null&&F!==void 0?F:!0,uriResolver:se}}var ho=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,..._L(e)};let{es5:i,lines:n}=this.opts.code;this.scope=new xL.ValueScope({scope:{},prefixes:EL,es5:i,lines:n}),this.logger=GL(e.logger);let a=e.validateFormats;e.validateFormats=!1,this.RULES=(0,OL.getRules)(),wx.call(this,kL,e,"NOT SUPPORTED"),wx.call(this,qL,e,"DEPRECATED","warn"),this._metaOpts=zL.call(this),e.formats&&RL.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),e.keywords&&IL.call(this,e.keywords),typeof e.meta=="object"&&this.addMetaSchema(e.meta),HL.call(this),e.validateFormats=a}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){let{$data:e,meta:i,schemaId:n}=this.opts,a=mx;n==="id"&&(a={...mx},a.id=a.$id,delete a.$id),i&&e&&this.addMetaSchema(a,a[n],!1)}defaultMeta(){let{meta:e,schemaId:i}=this.opts;return this.opts.defaultMeta=typeof e=="object"?e[i]||e:void 0}validate(e,i){let n;if(typeof e=="string"){if(n=this.getSchema(e),!n)throw new Error(`no schema with key or ref "${e}"`)}else n=this.compile(e);let a=n(i);return"$async"in n||(this.errors=n.errors),a}compile(e,i){let n=this._addSchema(e,i);return n.validate||this._compileSchemaEnv(n)}compileAsync(e,i){if(typeof this.opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");let{loadSchema:n}=this.opts;return a.call(this,e,i);async function a(c,p){await r.call(this,c.$schema);let d=this._addSchema(c,p);return d.validate||s.call(this,d)}async function r(c){c&&!this.getSchema(c)&&await a.call(this,{$ref:c},!0)}async function s(c){try{return this._compileSchemaEnv(c)}catch(p){if(!(p instanceof Cx.default))throw p;return o.call(this,p),await l.call(this,p.missingSchema),s.call(this,c)}}function o({missingSchema:c,missingRef:p}){if(this.refs[c])throw new Error(`AnySchema ${c} is loaded but ${p} cannot be resolved`)}async function l(c){let p=await u.call(this,c);this.refs[c]||await r.call(this,p.$schema),this.refs[c]||this.addSchema(p,c,i)}async function u(c){let p=this._loading[c];if(p)return p;try{return await(this._loading[c]=n(c))}finally{delete this._loading[c]}}}addSchema(e,i,n,a=this.opts.validateSchema){if(Array.isArray(e)){for(let s of e)this.addSchema(s,void 0,n,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 i=(0,po.normalizeId)(i||r),this._checkUnique(i),this.schemas[i]=this._addSchema(e,n,i,a,!0),this}addMetaSchema(e,i,n=this.opts.validateSchema){return this.addSchema(e,i,!0,n),this}validateSchema(e,i){if(typeof e=="boolean")return!0;let n;if(n=e.$schema,n!==void 0&&typeof n!="string")throw new Error("$schema must be a string");if(n=n||this.opts.defaultMeta||this.defaultMeta(),!n)return this.logger.warn("meta-schema not available"),this.errors=null,!0;let a=this.validate(n,e);if(!a&&i){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 i;for(;typeof(i=vx.call(this,e))=="string";)e=i;if(i===void 0){let{schemaId:n}=this.opts,a=new co.SchemaEnv({schema:{},schemaId:n});if(i=co.resolveSchema.call(this,a,e),!i)return;this.refs[e]=i}return i.validate||this._compileSchemaEnv(i)}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 i=vx.call(this,e);return typeof i=="object"&&this._cache.delete(i.schema),delete this.schemas[e],delete this.refs[e],this}case"object":{let i=e;this._cache.delete(i);let n=e[this.opts.schemaId];return n&&(n=(0,po.normalizeId)(n),delete this.schemas[n],delete this.refs[n]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(e){for(let i of e)this.addKeyword(i);return this}addKeyword(e,i){let n;if(typeof e=="string")n=e,typeof i=="object"&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),i.keyword=n);else if(typeof e=="object"&&i===void 0){if(i=e,n=i.keyword,Array.isArray(n)&&!n.length)throw new Error("addKeywords: keyword must be string or non-empty array")}else throw new Error("invalid addKeywords parameters");if(NL.call(this,n,i),!i)return(0,of.eachItem)(n,r=>sf.call(this,r)),this;LL.call(this,i);let a={...i,type:(0,Yu.getJSONTypes)(i.type),schemaType:(0,Yu.getJSONTypes)(i.schemaType)};return(0,of.eachItem)(n,a.type.length===0?r=>sf.call(this,r,a):r=>a.type.forEach(s=>sf.call(this,r,a,s))),this}getKeyword(e){let i=this.RULES.all[e];return typeof i=="object"?i.definition:!!i}removeKeyword(e){let{RULES:i}=this;delete i.keywords[e],delete i.all[e];for(let n of i.rules){let a=n.rules.findIndex(r=>r.keyword===e);a>=0&&n.rules.splice(a,1)}return this}addFormat(e,i){return typeof i=="string"&&(i=new RegExp(i)),this.formats[e]=i,this}errorsText(e=this.errors,{separator:i=", ",dataVar:n="data"}={}){return!e||e.length===0?"No errors":e.map(a=>`${n}${a.instancePath} ${a.message}`).reduce((a,r)=>a+i+r)}$dataMetaSchema(e,i){let n=this.RULES.all;e=JSON.parse(JSON.stringify(e));for(let a of i){let r=a.split("/").slice(1),s=e;for(let o of r)s=s[o];for(let o in n){let l=n[o];if(typeof l!="object")continue;let{$data:u}=l.definition,c=s[o];u&&c&&(s[o]=bx(c))}}return e}_removeAllSchemas(e,i){for(let n in e){let a=e[n];(!i||i.test(n))&&(typeof a=="string"?delete e[n]:a&&!a.meta&&(this._cache.delete(a.schema),delete e[n]))}}_addSchema(e,i,n,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;n=(0,po.normalizeId)(s||n);let u=po.getSchemaRefs.call(this,e,n);return l=new co.SchemaEnv({schema:e,schemaId:o,meta:i,baseId:n,localRefs:u}),this._cache.set(l.schema,l),r&&!n.startsWith("#")&&(n&&this._checkUnique(n),this.refs[n]=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):co.compileSchema.call(this,e),!e.validate)throw new Error("ajv implementation error");return e.validate}_compileMetaSchema(e){let i=this.opts;this.opts=this._metaOpts;try{co.compileSchema.call(this,e)}finally{this.opts=i}}};ho.ValidationError=SL.default;ho.MissingRefError=Cx.default;yi.default=ho;function wx(t,e,i,n="error"){for(let a in t){let r=a;r in e&&this.logger[n](`${i}: option ${a}. ${t[r]}`)}}function vx(t){return t=(0,po.normalizeId)(t),this.schemas[t]||this.refs[t]}function HL(){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 RL(){for(let t in this.opts.formats){let e=this.opts.formats[t];e&&this.addFormat(t,e)}}function IL(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 i=t[e];i.keyword||(i.keyword=e),this.addKeyword(i)}}function zL(){let t={...this.opts};for(let e of ML)delete t[e];return t}var DL={log(){},warn(){},error(){}};function GL(t){if(t===!1)return DL;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 $L=/^[a-z_$][a-z0-9_$:-]*$/i;function NL(t,e){let{RULES:i}=this;if((0,of.eachItem)(t,n=>{if(i.keywords[n])throw new Error(`Keyword ${n} is already defined`);if(!$L.test(n))throw new Error(`Keyword ${n} has invalid name`)}),!!e&&e.$data&&!("code"in e||"validate"in e))throw new Error('$data keyword must have "code" or "validate" function')}function sf(t,e,i){var n;let a=e?.post;if(i&&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===i);if(s||(s={type:i,rules:[]},r.rules.push(s)),r.keywords[t]=!0,!e)return;let o={keyword:t,definition:{...e,type:(0,Yu.getJSONTypes)(e.type),schemaType:(0,Yu.getJSONTypes)(e.schemaType)}};e.before?UL.call(this,s,o,e.before):s.rules.push(o),r.all[t]=o,(n=e.implements)===null||n===void 0||n.forEach(l=>this.addKeyword(l))}function UL(t,e,i){let n=t.rules.findIndex(a=>a.keyword===i);n>=0?t.rules.splice(n,0,e):(t.rules.push(e),this.logger.warn(`rule ${i} is not defined`))}function LL(t){let{metaSchema:e}=t;e!==void 0&&(t.$data&&this.opts.$data&&(e=bx(e)),t.validateSchema=this.compile(e,!0))}var WL={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function bx(t){return{anyOf:[t,WL]}}});var Px=w(lf=>{"use strict";Object.defineProperty(lf,"__esModule",{value:!0});var BL={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};lf.default=BL});var xx=w(Oa=>{"use strict";Object.defineProperty(Oa,"__esModule",{value:!0});Oa.callRef=Oa.getValidate=void 0;var FL=lo(),jx=pn(),Li=re(),Mr=st(),Sx=Ju(),Xu=we(),VL={keyword:"$ref",schemaType:"string",code(t){let{gen:e,schema:i,it:n}=t,{baseId:a,schemaEnv:r,validateName:s,opts:o,self:l}=n,{root:u}=r;if((i==="#"||i==="#/")&&a===u.baseId)return p();let c=Sx.resolveRef.call(l,u,a,i);if(c===void 0)throw new FL.default(n.opts.uriResolver,a,i);if(c instanceof Sx.SchemaEnv)return d(c);return h(c);function p(){if(r===u)return ec(t,s,r,r.$async);let g=e.scopeValue("root",{ref:u});return ec(t,(0,Li._)`${g}.validate`,u,u.$async)}function d(g){let m=Ox(t,g);ec(t,m,g,g.$async)}function h(g){let m=e.scopeValue("schema",o.code.source===!0?{ref:g,code:(0,Li.stringify)(g)}:{ref:g}),f=e.name("valid"),v=t.subschema({schema:g,dataTypes:[],schemaPath:Li.nil,topSchemaRef:m,errSchemaPath:i},f);t.mergeEvaluated(v),t.ok(f)}}};function Ox(t,e){let{gen:i}=t;return e.validate?i.scopeValue("validate",{ref:e.validate}):(0,Li._)`${i.scopeValue("wrapper",{ref:e})}.validate`}Oa.getValidate=Ox;function ec(t,e,i,n){let{gen:a,it:r}=t,{allErrors:s,schemaEnv:o,opts:l}=r,u=l.passContext?Mr.default.this:Li.nil;n?c():p();function c(){if(!o.$async)throw new Error("async schema referenced by sync schema");let g=a.let("valid");a.try(()=>{a.code((0,Li._)`await ${(0,jx.callValidateCode)(t,e,u)}`),h(e),s||a.assign(g,!0)},m=>{a.if((0,Li._)`!(${m} instanceof ${r.ValidationError})`,()=>a.throw(m)),d(m),s||a.assign(g,!1)}),t.ok(g)}function p(){t.result((0,jx.callValidateCode)(t,e,u),()=>h(e),()=>d(e))}function d(g){let m=(0,Li._)`${g}.errors`;a.assign(Mr.default.vErrors,(0,Li._)`${Mr.default.vErrors} === null ? ${m} : ${Mr.default.vErrors}.concat(${m})`),a.assign(Mr.default.errors,(0,Li._)`${Mr.default.vErrors}.length`)}function h(g){var m;if(!r.opts.unevaluated)return;let f=(m=i?.validate)===null||m===void 0?void 0:m.evaluated;if(r.props!==!0)if(f&&!f.dynamicProps)f.props!==void 0&&(r.props=Xu.mergeEvaluated.props(a,f.props,r.props));else{let v=a.var("props",(0,Li._)`${g}.evaluated.props`);r.props=Xu.mergeEvaluated.props(a,v,r.props,Li.Name)}if(r.items!==!0)if(f&&!f.dynamicItems)f.items!==void 0&&(r.items=Xu.mergeEvaluated.items(a,f.items,r.items));else{let v=a.var("items",(0,Li._)`${g}.evaluated.items`);r.items=Xu.mergeEvaluated.items(a,v,r.items,Li.Name)}}}Oa.callRef=ec;Oa.default=VL});var Tx=w(uf=>{"use strict";Object.defineProperty(uf,"__esModule",{value:!0});var JL=Px(),ZL=xx(),KL=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",JL.default,ZL.default];uf.default=KL});var Mx=w(cf=>{"use strict";Object.defineProperty(cf,"__esModule",{value:!0});var ic=re(),_t=ic.operators,nc={maximum:{okStr:"<=",ok:_t.LTE,fail:_t.GT},minimum:{okStr:">=",ok:_t.GTE,fail:_t.LT},exclusiveMaximum:{okStr:"<",ok:_t.LT,fail:_t.GTE},exclusiveMinimum:{okStr:">",ok:_t.GT,fail:_t.LTE}},QL={message:({keyword:t,schemaCode:e})=>(0,ic.str)`must be ${nc[t].okStr} ${e}`,params:({keyword:t,schemaCode:e})=>(0,ic._)`{comparison: ${nc[t].okStr}, limit: ${e}}`},YL={keyword:Object.keys(nc),type:"number",schemaType:"number",$data:!0,error:QL,code(t){let{keyword:e,data:i,schemaCode:n}=t;t.fail$data((0,ic._)`${i} ${nc[e].fail} ${n} || isNaN(${i})`)}};cf.default=YL});var Ex=w(pf=>{"use strict";Object.defineProperty(pf,"__esModule",{value:!0});var go=re(),XL={message:({schemaCode:t})=>(0,go.str)`must be multiple of ${t}`,params:({schemaCode:t})=>(0,go._)`{multipleOf: ${t}}`},eW={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:XL,code(t){let{gen:e,data:i,schemaCode:n,it:a}=t,r=a.opts.multipleOfPrecision,s=e.let("res"),o=r?(0,go._)`Math.abs(Math.round(${s}) - ${s}) > 1e-${r}`:(0,go._)`${s} !== parseInt(${s})`;t.fail$data((0,go._)`(${n} === 0 || (${s} = ${i}/${n}, ${o}))`)}};pf.default=eW});var qx=w(df=>{"use strict";Object.defineProperty(df,"__esModule",{value:!0});function kx(t){let e=t.length,i=0,n=0,a;for(;n=55296&&a<=56319&&n{"use strict";Object.defineProperty(hf,"__esModule",{value:!0});var xa=re(),iW=we(),nW=qx(),tW={message({keyword:t,schemaCode:e}){let i=t==="maxLength"?"more":"fewer";return(0,xa.str)`must NOT have ${i} than ${e} characters`},params:({schemaCode:t})=>(0,xa._)`{limit: ${t}}`},aW={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:tW,code(t){let{keyword:e,data:i,schemaCode:n,it:a}=t,r=e==="maxLength"?xa.operators.GT:xa.operators.LT,s=a.opts.unicode===!1?(0,xa._)`${i}.length`:(0,xa._)`${(0,iW.useFunc)(t.gen,nW.default)}(${i})`;t.fail$data((0,xa._)`${s} ${r} ${n}`)}};hf.default=aW});var Hx=w(gf=>{"use strict";Object.defineProperty(gf,"__esModule",{value:!0});var rW=pn(),sW=we(),Er=re(),oW={message:({schemaCode:t})=>(0,Er.str)`must match pattern "${t}"`,params:({schemaCode:t})=>(0,Er._)`{pattern: ${t}}`},lW={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:oW,code(t){let{gen:e,data:i,$data:n,schema:a,schemaCode:r,it:s}=t,o=s.opts.unicodeRegExp?"u":"";if(n){let{regExp:l}=s.opts.code,u=l.code==="new RegExp"?(0,Er._)`new RegExp`:(0,sW.useFunc)(e,l),c=e.let("valid");e.try(()=>e.assign(c,(0,Er._)`${u}(${r}, ${o}).test(${i})`),()=>e.assign(c,!1)),t.fail$data((0,Er._)`!${c}`)}else{let l=(0,rW.usePattern)(t,a);t.fail$data((0,Er._)`!${l}.test(${i})`)}}};gf.default=lW});var Rx=w(mf=>{"use strict";Object.defineProperty(mf,"__esModule",{value:!0});var mo=re(),uW={message({keyword:t,schemaCode:e}){let i=t==="maxProperties"?"more":"fewer";return(0,mo.str)`must NOT have ${i} than ${e} properties`},params:({schemaCode:t})=>(0,mo._)`{limit: ${t}}`},cW={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:uW,code(t){let{keyword:e,data:i,schemaCode:n}=t,a=e==="maxProperties"?mo.operators.GT:mo.operators.LT;t.fail$data((0,mo._)`Object.keys(${i}).length ${a} ${n}`)}};mf.default=cW});var Ix=w(ff=>{"use strict";Object.defineProperty(ff,"__esModule",{value:!0});var fo=pn(),wo=re(),pW=we(),dW={message:({params:{missingProperty:t}})=>(0,wo.str)`must have required property '${t}'`,params:({params:{missingProperty:t}})=>(0,wo._)`{missingProperty: ${t}}`},hW={keyword:"required",type:"object",schemaType:"array",$data:!0,error:dW,code(t){let{gen:e,schema:i,schemaCode:n,data:a,$data:r,it:s}=t,{opts:o}=s;if(!r&&i.length===0)return;let l=i.length>=o.loopRequired;if(s.allErrors?u():c(),o.strictRequired){let h=t.parentSchema.properties,{definedProperties:g}=t.it;for(let m of i)if(h?.[m]===void 0&&!g.has(m)){let f=s.schemaEnv.baseId+s.errSchemaPath,v=`required property "${m}" is not defined at "${f}" (strictRequired)`;(0,pW.checkStrictMode)(s,v,s.opts.strictRequired)}}function u(){if(l||r)t.block$data(wo.nil,p);else for(let h of i)(0,fo.checkReportMissingProp)(t,h)}function c(){let h=e.let("missing");if(l||r){let g=e.let("valid",!0);t.block$data(g,()=>d(h,g)),t.ok(g)}else e.if((0,fo.checkMissingProp)(t,i,h)),(0,fo.reportMissingProp)(t,h),e.else()}function p(){e.forOf("prop",n,h=>{t.setParams({missingProperty:h}),e.if((0,fo.noPropertyInData)(e,a,h,o.ownProperties),()=>t.error())})}function d(h,g){t.setParams({missingProperty:h}),e.forOf(h,n,()=>{e.assign(g,(0,fo.propertyInData)(e,a,h,o.ownProperties)),e.if((0,wo.not)(g),()=>{t.error(),e.break()})},wo.nil)}}};ff.default=hW});var zx=w(wf=>{"use strict";Object.defineProperty(wf,"__esModule",{value:!0});var vo=re(),gW={message({keyword:t,schemaCode:e}){let i=t==="maxItems"?"more":"fewer";return(0,vo.str)`must NOT have ${i} than ${e} items`},params:({schemaCode:t})=>(0,vo._)`{limit: ${t}}`},mW={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:gW,code(t){let{keyword:e,data:i,schemaCode:n}=t,a=e==="maxItems"?vo.operators.GT:vo.operators.LT;t.fail$data((0,vo._)`${i}.length ${a} ${n}`)}};wf.default=mW});var tc=w(vf=>{"use strict";Object.defineProperty(vf,"__esModule",{value:!0});var Dx=$m();Dx.code='require("ajv/dist/runtime/equal").default';vf.default=Dx});var Gx=w(Af=>{"use strict";Object.defineProperty(Af,"__esModule",{value:!0});var Cf=to(),Pi=re(),fW=we(),wW=tc(),vW={message:({params:{i:t,j:e}})=>(0,Pi.str)`must NOT have duplicate items (items ## ${e} and ${t} are identical)`,params:({params:{i:t,j:e}})=>(0,Pi._)`{i: ${t}, j: ${e}}`},CW={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:vW,code(t){let{gen:e,data:i,$data:n,schema:a,parentSchema:r,schemaCode:s,it:o}=t;if(!n&&!a)return;let l=e.let("valid"),u=r.items?(0,Cf.getSchemaTypes)(r.items):[];t.block$data(l,c,(0,Pi._)`${s} === false`),t.ok(l);function c(){let g=e.let("i",(0,Pi._)`${i}.length`),m=e.let("j");t.setParams({i:g,j:m}),e.assign(l,!0),e.if((0,Pi._)`${g} > 1`,()=>(p()?d:h)(g,m))}function p(){return u.length>0&&!u.some(g=>g==="object"||g==="array")}function d(g,m){let f=e.name("item"),v=(0,Cf.checkDataTypes)(u,f,o.opts.strictNumbers,Cf.DataType.Wrong),y=e.const("indices",(0,Pi._)`{}`);e.for((0,Pi._)`;${g}--;`,()=>{e.let(f,(0,Pi._)`${i}[${g}]`),e.if(v,(0,Pi._)`continue`),u.length>1&&e.if((0,Pi._)`typeof ${f} == "string"`,(0,Pi._)`${f} += "_"`),e.if((0,Pi._)`typeof ${y}[${f}] == "number"`,()=>{e.assign(m,(0,Pi._)`${y}[${f}]`),t.error(),e.assign(l,!1).break()}).code((0,Pi._)`${y}[${f}] = ${g}`)})}function h(g,m){let f=(0,fW.useFunc)(e,wW.default),v=e.name("outer");e.label(v).for((0,Pi._)`;${g}--;`,()=>e.for((0,Pi._)`${m} = ${g}; ${m}--;`,()=>e.if((0,Pi._)`${f}(${i}[${g}], ${i}[${m}])`,()=>{t.error(),e.assign(l,!1).break(v)})))}}};Af.default=CW});var $x=w(yf=>{"use strict";Object.defineProperty(yf,"__esModule",{value:!0});var bf=re(),AW=we(),bW=tc(),yW={message:"must be equal to constant",params:({schemaCode:t})=>(0,bf._)`{allowedValue: ${t}}`},PW={keyword:"const",$data:!0,error:yW,code(t){let{gen:e,data:i,$data:n,schemaCode:a,schema:r}=t;n||r&&typeof r=="object"?t.fail$data((0,bf._)`!${(0,AW.useFunc)(e,bW.default)}(${i}, ${a})`):t.fail((0,bf._)`${r} !== ${i}`)}};yf.default=PW});var Nx=w(Pf=>{"use strict";Object.defineProperty(Pf,"__esModule",{value:!0});var Co=re(),jW=we(),SW=tc(),OW={message:"must be equal to one of the allowed values",params:({schemaCode:t})=>(0,Co._)`{allowedValues: ${t}}`},xW={keyword:"enum",schemaType:"array",$data:!0,error:OW,code(t){let{gen:e,data:i,$data:n,schema:a,schemaCode:r,it:s}=t;if(!n&&a.length===0)throw new Error("enum must have non-empty array");let o=a.length>=s.opts.loopEnum,l,u=()=>l??(l=(0,jW.useFunc)(e,SW.default)),c;if(o||n)c=e.let("valid"),t.block$data(c,p);else{if(!Array.isArray(a))throw new Error("ajv implementation error");let h=e.const("vSchema",r);c=(0,Co.or)(...a.map((g,m)=>d(h,m)))}t.pass(c);function p(){e.assign(c,!1),e.forOf("v",r,h=>e.if((0,Co._)`${u()}(${i}, ${h})`,()=>e.assign(c,!0).break()))}function d(h,g){let m=a[g];return typeof m=="object"&&m!==null?(0,Co._)`${u()}(${i}, ${h}[${g}])`:(0,Co._)`${i} === ${m}`}}};Pf.default=xW});var Ux=w(jf=>{"use strict";Object.defineProperty(jf,"__esModule",{value:!0});var TW=Mx(),MW=Ex(),EW=_x(),kW=Hx(),qW=Rx(),_W=Ix(),HW=zx(),RW=Gx(),IW=$x(),zW=Nx(),DW=[TW.default,MW.default,EW.default,kW.default,qW.default,_W.default,HW.default,RW.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},IW.default,zW.default];jf.default=DW});var Of=w(Ao=>{"use strict";Object.defineProperty(Ao,"__esModule",{value:!0});Ao.validateAdditionalItems=void 0;var Ta=re(),Sf=we(),GW={message:({params:{len:t}})=>(0,Ta.str)`must NOT have more than ${t} items`,params:({params:{len:t}})=>(0,Ta._)`{limit: ${t}}`},$W={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:GW,code(t){let{parentSchema:e,it:i}=t,{items:n}=e;if(!Array.isArray(n)){(0,Sf.checkStrictMode)(i,'"additionalItems" is ignored when "items" is not an array of schemas');return}Lx(t,n)}};function Lx(t,e){let{gen:i,schema:n,data:a,keyword:r,it:s}=t;s.items=!0;let o=i.const("len",(0,Ta._)`${a}.length`);if(n===!1)t.setParams({len:e.length}),t.pass((0,Ta._)`${o} <= ${e.length}`);else if(typeof n=="object"&&!(0,Sf.alwaysValidSchema)(s,n)){let u=i.var("valid",(0,Ta._)`${o} <= ${e.length}`);i.if((0,Ta.not)(u),()=>l(u)),t.ok(u)}function l(u){i.forRange("i",e.length,o,c=>{t.subschema({keyword:r,dataProp:c,dataPropType:Sf.Type.Num},u),s.allErrors||i.if((0,Ta.not)(u),()=>i.break())})}}Ao.validateAdditionalItems=Lx;Ao.default=$W});var xf=w(bo=>{"use strict";Object.defineProperty(bo,"__esModule",{value:!0});bo.validateTuple=void 0;var Wx=re(),ac=we(),NW=pn(),UW={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(t){let{schema:e,it:i}=t;if(Array.isArray(e))return Bx(t,"additionalItems",e);i.items=!0,!(0,ac.alwaysValidSchema)(i,e)&&t.ok((0,NW.validateArray)(t))}};function Bx(t,e,i=t.schema){let{gen:n,parentSchema:a,data:r,keyword:s,it:o}=t;c(a),o.opts.unevaluated&&i.length&&o.items!==!0&&(o.items=ac.mergeEvaluated.items(n,i.length,o.items));let l=n.name("valid"),u=n.const("len",(0,Wx._)`${r}.length`);i.forEach((p,d)=>{(0,ac.alwaysValidSchema)(o,p)||(n.if((0,Wx._)`${u} > ${d}`,()=>t.subschema({keyword:s,schemaProp:d,dataProp:d},l)),t.ok(l))});function c(p){let{opts:d,errSchemaPath:h}=o,g=i.length,m=g===p.minItems&&(g===p.maxItems||p[e]===!1);if(d.strictTuples&&!m){let f=`"${s}" is ${g}-tuple, but minItems or maxItems/${e} are not specified or different at path "${h}"`;(0,ac.checkStrictMode)(o,f,d.strictTuples)}}}bo.validateTuple=Bx;bo.default=UW});var Fx=w(Tf=>{"use strict";Object.defineProperty(Tf,"__esModule",{value:!0});var LW=xf(),WW={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:t=>(0,LW.validateTuple)(t,"items")};Tf.default=WW});var Jx=w(Mf=>{"use strict";Object.defineProperty(Mf,"__esModule",{value:!0});var Vx=re(),BW=we(),FW=pn(),VW=Of(),JW={message:({params:{len:t}})=>(0,Vx.str)`must NOT have more than ${t} items`,params:({params:{len:t}})=>(0,Vx._)`{limit: ${t}}`},ZW={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:JW,code(t){let{schema:e,parentSchema:i,it:n}=t,{prefixItems:a}=i;n.items=!0,!(0,BW.alwaysValidSchema)(n,e)&&(a?(0,VW.validateAdditionalItems)(t,a):t.ok((0,FW.validateArray)(t)))}};Mf.default=ZW});var Zx=w(Ef=>{"use strict";Object.defineProperty(Ef,"__esModule",{value:!0});var hn=re(),rc=we(),KW={message:({params:{min:t,max:e}})=>e===void 0?(0,hn.str)`must contain at least ${t} valid item(s)`:(0,hn.str)`must contain at least ${t} and no more than ${e} valid item(s)`,params:({params:{min:t,max:e}})=>e===void 0?(0,hn._)`{minContains: ${t}}`:(0,hn._)`{minContains: ${t}, maxContains: ${e}}`},QW={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:KW,code(t){let{gen:e,schema:i,parentSchema:n,data:a,it:r}=t,s,o,{minContains:l,maxContains:u}=n;r.opts.next?(s=l===void 0?1:l,o=u):s=1;let c=e.const("len",(0,hn._)`${a}.length`);if(t.setParams({min:s,max:o}),o===void 0&&s===0){(0,rc.checkStrictMode)(r,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(o!==void 0&&s>o){(0,rc.checkStrictMode)(r,'"minContains" > "maxContains" is always invalid'),t.fail();return}if((0,rc.alwaysValidSchema)(r,i)){let m=(0,hn._)`${c} >= ${s}`;o!==void 0&&(m=(0,hn._)`${m} && ${c} <= ${o}`),t.pass(m);return}r.items=!0;let p=e.name("valid");o===void 0&&s===1?h(p,()=>e.if(p,()=>e.break())):s===0?(e.let(p,!0),o!==void 0&&e.if((0,hn._)`${a}.length > 0`,d)):(e.let(p,!1),d()),t.result(p,()=>t.reset());function d(){let m=e.name("_valid"),f=e.let("count",0);h(m,()=>e.if(m,()=>g(f)))}function h(m,f){e.forRange("i",0,c,v=>{t.subschema({keyword:"contains",dataProp:v,dataPropType:rc.Type.Num,compositeRule:!0},m),f()})}function g(m){e.code((0,hn._)`${m}++`),o===void 0?e.if((0,hn._)`${m} >= ${s}`,()=>e.assign(p,!0).break()):(e.if((0,hn._)`${m} > ${o}`,()=>e.assign(p,!1).break()),s===1?e.assign(p,!0):e.if((0,hn._)`${m} >= ${s}`,()=>e.assign(p,!0)))}}};Ef.default=QW});var Yx=w(zn=>{"use strict";Object.defineProperty(zn,"__esModule",{value:!0});zn.validateSchemaDeps=zn.validatePropertyDeps=zn.error=void 0;var kf=re(),YW=we(),yo=pn();zn.error={message:({params:{property:t,depsCount:e,deps:i}})=>{let n=e===1?"property":"properties";return(0,kf.str)`must have ${n} ${i} when property ${t} is present`},params:({params:{property:t,depsCount:e,deps:i,missingProperty:n}})=>(0,kf._)`{property: ${t}, + || ${s} === "boolean" || ${a} === null`).assign(o,(0,te._)`[${a}]`)}}}function ON({gen:t,parentData:e,parentDataProperty:i},n){t.if((0,te._)`${e} !== undefined`,()=>t.assign((0,te._)`${e}[${i}]`,n))}function Im(t,e,i,n=jr.Correct){let a=n===jr.Correct?te.operators.EQ:te.operators.NEQ,r;switch(t){case"null":return(0,te._)`${e} ${a} null`;case"array":r=(0,te._)`Array.isArray(${e})`;break;case"object":r=(0,te._)`${e} && typeof ${e} == "object" && !Array.isArray(${e})`;break;case"integer":r=s((0,te._)`!(${e} % 1) && !isNaN(${e})`);break;case"number":r=s();break;default:return(0,te._)`typeof ${e} ${a} ${t}`}return n===jr.Correct?r:(0,te.not)(r);function s(o=te.nil){return(0,te.and)((0,te._)`typeof ${e} == "number"`,o,i?(0,te._)`isFinite(${e})`:te.nil)}}Ei.checkDataType=Im;function zm(t,e,i,n){if(t.length===1)return Im(t[0],e,i,n);let a,r=(0,wO.toHash)(t);if(r.array&&r.object){let s=(0,te._)`typeof ${e} != "object"`;a=r.null?s:(0,te._)`!${e} || ${s}`,delete r.null,delete r.array,delete r.object}else a=te.nil;r.number&&delete r.integer;for(let s in r)a=(0,te.and)(a,Im(s,e,i,n));return a}Ei.checkDataTypes=zm;var xN={message:({schema:t})=>`must be ${t}`,params:({schema:t,schemaValue:e})=>typeof t=="string"?(0,te._)`{type: ${t}}`:(0,te._)`{type: ${e}}`};function Dm(t){let e=TN(t);(0,bN.reportError)(e,xN)}Ei.reportTypeError=Dm;function TN(t){let{gen:e,data:i,schema:n}=t,a=(0,wO.schemaRefOrVal)(t,n,"type");return{gen:e,keyword:"type",data:i,schema:n.type,schemaCode:a,schemaValue:a,parentSchema:n,params:{},it:t}}});var bO=w(Lu=>{"use strict";Object.defineProperty(Lu,"__esModule",{value:!0});Lu.assignDefaults=void 0;var Sr=re(),MN=we();function EN(t,e){let{properties:i,items:n}=t.schema;if(e==="object"&&i)for(let a in i)AO(t,a,i[a].default);else e==="array"&&Array.isArray(n)&&n.forEach((a,r)=>AO(t,r,a.default))}Lu.assignDefaults=EN;function AO(t,e,i){let{gen:n,compositeRule:a,data:r,opts:s}=t;if(i===void 0)return;let o=(0,Sr._)`${r}${(0,Sr.getProperty)(e)}`;if(a){(0,MN.checkStrictMode)(t,`default is ignored for: ${o}`);return}let l=(0,Sr._)`${o} === undefined`;s.useDefaults==="empty"&&(l=(0,Sr._)`${l} || ${o} === null || ${o} === ""`),n.if(l,(0,Sr._)`${o} = ${(0,Sr.stringify)(i)}`)}});var pn=w(Ee=>{"use strict";Object.defineProperty(Ee,"__esModule",{value:!0});Ee.validateUnion=Ee.validateArray=Ee.usePattern=Ee.callValidateCode=Ee.schemaProperties=Ee.allSchemaProperties=Ee.noPropertyInData=Ee.propertyInData=Ee.isOwnProperty=Ee.hasPropFunc=Ee.reportMissingProp=Ee.checkMissingProp=Ee.checkReportMissingProp=void 0;var Ne=re(),Gm=we(),Mt=st(),kN=we();function qN(t,e){let{gen:i,data:n,it:a}=t;i.if(Nm(i,n,e,a.opts.ownProperties),()=>{t.setParams({missingProperty:(0,Ne._)`${e}`},!0),t.error()})}Ee.checkReportMissingProp=qN;function _N({gen:t,data:e,it:{opts:i}},n,a){return(0,Ne.or)(...n.map(r=>(0,Ne.and)(Nm(t,e,r,i.ownProperties),(0,Ne._)`${a} = ${r}`)))}Ee.checkMissingProp=_N;function HN(t,e){t.setParams({missingProperty:e},!0),t.error()}Ee.reportMissingProp=HN;function yO(t){return t.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,Ne._)`Object.prototype.hasOwnProperty`})}Ee.hasPropFunc=yO;function $m(t,e,i){return(0,Ne._)`${yO(t)}.call(${e}, ${i})`}Ee.isOwnProperty=$m;function RN(t,e,i,n){let a=(0,Ne._)`${e}${(0,Ne.getProperty)(i)} !== undefined`;return n?(0,Ne._)`${a} && ${$m(t,e,i)}`:a}Ee.propertyInData=RN;function Nm(t,e,i,n){let a=(0,Ne._)`${e}${(0,Ne.getProperty)(i)} === undefined`;return n?(0,Ne.or)(a,(0,Ne.not)($m(t,e,i))):a}Ee.noPropertyInData=Nm;function PO(t){return t?Object.keys(t).filter(e=>e!=="__proto__"):[]}Ee.allSchemaProperties=PO;function IN(t,e){return PO(e).filter(i=>!(0,Gm.alwaysValidSchema)(t,e[i]))}Ee.schemaProperties=IN;function zN({schemaCode:t,data:e,it:{gen:i,topSchemaRef:n,schemaPath:a,errorPath:r},it:s},o,l,u){let c=u?(0,Ne._)`${t}, ${e}, ${n}${a}`:e,p=[[Mt.default.instancePath,(0,Ne.strConcat)(Mt.default.instancePath,r)],[Mt.default.parentData,s.parentData],[Mt.default.parentDataProperty,s.parentDataProperty],[Mt.default.rootData,Mt.default.rootData]];s.opts.dynamicRef&&p.push([Mt.default.dynamicAnchors,Mt.default.dynamicAnchors]);let d=(0,Ne._)`${c}, ${i.object(...p)}`;return l!==Ne.nil?(0,Ne._)`${o}.call(${l}, ${d})`:(0,Ne._)`${o}(${d})`}Ee.callValidateCode=zN;var DN=(0,Ne._)`new RegExp`;function GN({gen:t,it:{opts:e}},i){let n=e.unicodeRegExp?"u":"",{regExp:a}=e.code,r=a(i,n);return t.scopeValue("pattern",{key:r.toString(),ref:r,code:(0,Ne._)`${a.code==="new RegExp"?DN:(0,kN.useFunc)(t,a)}(${i}, ${n})`})}Ee.usePattern=GN;function $N(t){let{gen:e,data:i,keyword:n,it:a}=t,r=e.name("valid");if(a.allErrors){let o=e.let("valid",!0);return s(()=>e.assign(o,!1)),o}return e.var(r,!0),s(()=>e.break()),r;function s(o){let l=e.const("len",(0,Ne._)`${i}.length`);e.forRange("i",0,l,u=>{t.subschema({keyword:n,dataProp:u,dataPropType:Gm.Type.Num},r),e.if((0,Ne.not)(r),o)})}}Ee.validateArray=$N;function NN(t){let{gen:e,schema:i,keyword:n,it:a}=t;if(!Array.isArray(i))throw new Error("ajv implementation error");if(i.some(l=>(0,Gm.alwaysValidSchema)(a,l))&&!a.opts.unevaluated)return;let s=e.let("valid",!1),o=e.name("_valid");e.block(()=>i.forEach((l,u)=>{let c=t.subschema({keyword:n,schemaProp:u,compositeRule:!0},o);e.assign(s,(0,Ne._)`${s} || ${o}`),t.mergeValidEvaluated(c,o)||e.if((0,Ne.not)(s))})),t.result(s,()=>t.reset(),()=>t.error(!0))}Ee.validateUnion=NN});var OO=w(In=>{"use strict";Object.defineProperty(In,"__esModule",{value:!0});In.validateKeywordUsage=In.validSchemaType=In.funcKeywordCode=In.macroKeywordCode=void 0;var Ri=re(),Pa=st(),UN=pn(),LN=ao();function WN(t,e){let{gen:i,keyword:n,schema:a,parentSchema:r,it:s}=t,o=e.macro.call(s.self,a,r,s),l=SO(i,n,o);s.opts.validateSchema!==!1&&s.self.validateSchema(o,!0);let u=i.name("valid");t.subschema({schema:o,schemaPath:Ri.nil,errSchemaPath:`${s.errSchemaPath}/${n}`,topSchemaRef:l,compositeRule:!0},u),t.pass(u,()=>t.error(!0))}In.macroKeywordCode=WN;function BN(t,e){var i;let{gen:n,keyword:a,schema:r,parentSchema:s,$data:o,it:l}=t;VN(l,e);let u=!o&&e.compile?e.compile.call(l.self,r,s,l):e.validate,c=SO(n,a,u),p=n.let("valid");t.block$data(p,d),t.ok((i=e.valid)!==null&&i!==void 0?i:p);function d(){if(e.errors===!1)m(),e.modifying&&jO(t),f(()=>t.error());else{let v=e.async?h():g();e.modifying&&jO(t),f(()=>FN(t,v))}}function h(){let v=n.let("ruleErrs",null);return n.try(()=>m((0,Ri._)`await `),y=>n.assign(p,!1).if((0,Ri._)`${y} instanceof ${l.ValidationError}`,()=>n.assign(v,(0,Ri._)`${y}.errors`),()=>n.throw(y))),v}function g(){let v=(0,Ri._)`${c}.errors`;return n.assign(v,null),m(Ri.nil),v}function m(v=e.async?(0,Ri._)`await `:Ri.nil){let y=l.opts.passContext?Pa.default.this:Pa.default.self,A=!("compile"in e&&!o||e.schema===!1);n.assign(p,(0,Ri._)`${v}${(0,UN.callValidateCode)(t,c,y,A)}`,e.modifying)}function f(v){var y;n.if((0,Ri.not)((y=e.valid)!==null&&y!==void 0?y:p),v)}}In.funcKeywordCode=BN;function jO(t){let{gen:e,data:i,it:n}=t;e.if(n.parentData,()=>e.assign(i,(0,Ri._)`${n.parentData}[${n.parentDataProperty}]`))}function FN(t,e){let{gen:i}=t;i.if((0,Ri._)`Array.isArray(${e})`,()=>{i.assign(Pa.default.vErrors,(0,Ri._)`${Pa.default.vErrors} === null ? ${e} : ${Pa.default.vErrors}.concat(${e})`).assign(Pa.default.errors,(0,Ri._)`${Pa.default.vErrors}.length`),(0,LN.extendErrors)(t)},()=>t.error())}function VN({schemaEnv:t},e){if(e.async&&!t.$async)throw new Error("async keyword in sync schema")}function SO(t,e,i){if(i===void 0)throw new Error(`keyword "${e}" failed to compile`);return t.scopeValue("keyword",typeof i=="function"?{ref:i}:{ref:i,code:(0,Ri.stringify)(i)})}function JN(t,e,i=!1){return!e.length||e.some(n=>n==="array"?Array.isArray(t):n==="object"?t&&typeof t=="object"&&!Array.isArray(t):typeof t==n||i&&typeof t>"u")}In.validSchemaType=JN;function ZN({schema:t,opts:e,self:i,errSchemaPath:n},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 "${n}": `+i.errorsText(a.validateSchema.errors);if(e.validateSchema==="log")i.logger.error(l);else throw new Error(l)}}In.validateKeywordUsage=ZN});var TO=w(Et=>{"use strict";Object.defineProperty(Et,"__esModule",{value:!0});Et.extendSubschemaMode=Et.extendSubschemaData=Et.getSubschema=void 0;var zn=re(),xO=we();function KN(t,{keyword:e,schemaProp:i,schema:n,schemaPath:a,errSchemaPath:r,topSchemaRef:s}){if(e!==void 0&&n!==void 0)throw new Error('both "keyword" and "schema" passed, only one allowed');if(e!==void 0){let o=t.schema[e];return i===void 0?{schema:o,schemaPath:(0,zn._)`${t.schemaPath}${(0,zn.getProperty)(e)}`,errSchemaPath:`${t.errSchemaPath}/${e}`}:{schema:o[i],schemaPath:(0,zn._)`${t.schemaPath}${(0,zn.getProperty)(e)}${(0,zn.getProperty)(i)}`,errSchemaPath:`${t.errSchemaPath}/${e}/${(0,xO.escapeFragment)(i)}`}}if(n!==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:n,schemaPath:a,topSchemaRef:s,errSchemaPath:r}}throw new Error('either "keyword" or "schema" must be passed')}Et.getSubschema=KN;function QN(t,e,{dataProp:i,dataPropType:n,data:a,dataTypes:r,propertyName:s}){if(a!==void 0&&i!==void 0)throw new Error('both "data" and "dataProp" passed, only one allowed');let{gen:o}=e;if(i!==void 0){let{errorPath:u,dataPathArr:c,opts:p}=e,d=o.let("data",(0,zn._)`${e.data}${(0,zn.getProperty)(i)}`,!0);l(d),t.errorPath=(0,zn.str)`${u}${(0,xO.getErrorPath)(i,n,p.jsPropertySyntax)}`,t.parentDataProperty=(0,zn._)`${i}`,t.dataPathArr=[...c,t.parentDataProperty]}if(a!==void 0){let u=a instanceof zn.Name?a:o.let("data",a,!0);l(u),s!==void 0&&(t.propertyName=s)}r&&(t.dataTypes=r);function l(u){t.data=u,t.dataLevel=e.dataLevel+1,t.dataTypes=[],e.definedProperties=new Set,t.parentData=e.data,t.dataNames=[...e.dataNames,u]}}Et.extendSubschemaData=QN;function YN(t,{jtdDiscriminator:e,jtdMetadata:i,compositeRule:n,createErrors:a,allErrors:r}){n!==void 0&&(t.compositeRule=n),a!==void 0&&(t.createErrors=a),r!==void 0&&(t.allErrors=r),t.jtdDiscriminator=e,t.jtdMetadata=i}Et.extendSubschemaMode=YN});var Um=w((Sae,MO)=>{"use strict";MO.exports=function t(e,i){if(e===i)return!0;if(e&&i&&typeof e=="object"&&typeof i=="object"){if(e.constructor!==i.constructor)return!1;var n,a,r;if(Array.isArray(e)){if(n=e.length,n!=i.length)return!1;for(a=n;a--!==0;)if(!t(e[a],i[a]))return!1;return!0}if(e.constructor===RegExp)return e.source===i.source&&e.flags===i.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===i.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===i.toString();if(r=Object.keys(e),n=r.length,n!==Object.keys(i).length)return!1;for(a=n;a--!==0;)if(!Object.prototype.hasOwnProperty.call(i,r[a]))return!1;for(a=n;a--!==0;){var s=r[a];if(!t(e[s],i[s]))return!1}return!0}return e!==e&&i!==i}});var kO=w((Oae,EO)=>{"use strict";var kt=EO.exports=function(t,e,i){typeof e=="function"&&(i=e,e={}),i=e.cb||i;var n=typeof i=="function"?i:i.pre||function(){},a=i.post||function(){};Wu(e,n,a,t,"",t)};kt.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0};kt.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0};kt.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0};kt.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 Wu(t,e,i,n,a,r,s,o,l,u){if(n&&typeof n=="object"&&!Array.isArray(n)){e(n,a,r,s,o,l,u);for(var c in n){var p=n[c];if(Array.isArray(p)){if(c in kt.arrayKeywords)for(var d=0;d{"use strict";Object.defineProperty(Ui,"__esModule",{value:!0});Ui.getSchemaRefs=Ui.resolveUrl=Ui.normalizeId=Ui._getFullPath=Ui.getFullPath=Ui.inlineRef=void 0;var eU=we(),iU=Um(),nU=kO(),tU=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function aU(t,e=!0){return typeof t=="boolean"?!0:e===!0?!Lm(t):e?qO(t)<=e:!1}Ui.inlineRef=aU;var rU=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function Lm(t){for(let e in t){if(rU.has(e))return!0;let i=t[e];if(Array.isArray(i)&&i.some(Lm)||typeof i=="object"&&Lm(i))return!0}return!1}function qO(t){let e=0;for(let i in t){if(i==="$ref")return 1/0;if(e++,!tU.has(i)&&(typeof t[i]=="object"&&(0,eU.eachItem)(t[i],n=>e+=qO(n)),e===1/0))return 1/0}return e}function _O(t,e="",i){i!==!1&&(e=Or(e));let n=t.parse(e);return HO(t,n)}Ui.getFullPath=_O;function HO(t,e){return t.serialize(e).split("#")[0]+"#"}Ui._getFullPath=HO;var sU=/#\/?$/;function Or(t){return t?t.replace(sU,""):""}Ui.normalizeId=Or;function oU(t,e,i){return i=Or(i),t.resolve(e,i)}Ui.resolveUrl=oU;var lU=/^[a-z_][-a-z0-9._]*$/i;function uU(t,e){if(typeof t=="boolean")return{};let{schemaId:i,uriResolver:n}=this.opts,a=Or(t[i]||e),r={"":a},s=_O(n,a,!1),o={},l=new Set;return nU(t,{allKeys:!0},(p,d,h,g)=>{if(g===void 0)return;let m=s+d,f=r[g];typeof p[i]=="string"&&(f=v.call(this,p[i])),y.call(this,p.$anchor),y.call(this,p.$dynamicAnchor),r[d]=f;function v(A){let b=this.opts.uriResolver.resolve;if(A=Or(f?b(f,A):A),l.has(A))throw c(A);l.add(A);let O=this.refs[A];return typeof O=="string"&&(O=this.refs[O]),typeof O=="object"?u(p,O.schema,A):A!==Or(m)&&(A[0]==="#"?(u(p,o[A],A),o[A]=p):this.refs[A]=m),A}function y(A){if(typeof A=="string"){if(!lU.test(A))throw new Error(`invalid anchor "${A}"`);v.call(this,`#${A}`)}}}),o;function u(p,d,h){if(d!==void 0&&!iU(p,d))throw c(h)}function c(p){return new Error(`reference "${p}" resolves to more than one schema`)}}Ui.getSchemaRefs=uU});var uo=w(qt=>{"use strict";Object.defineProperty(qt,"__esModule",{value:!0});qt.getData=qt.KeywordCxt=qt.validateFunctionCode=void 0;var GO=gO(),RO=ro(),Bm=Rm(),Bu=ro(),cU=bO(),lo=OO(),Wm=TO(),B=re(),ee=st(),pU=so(),ot=we(),oo=ao();function dU(t){if(UO(t)&&(LO(t),NO(t))){mU(t);return}$O(t,()=>(0,GO.topBoolOrEmptySchema)(t))}qt.validateFunctionCode=dU;function $O({gen:t,validateName:e,schema:i,schemaEnv:n,opts:a},r){a.code.es5?t.func(e,(0,B._)`${ee.default.data}, ${ee.default.valCxt}`,n.$async,()=>{t.code((0,B._)`"use strict"; ${IO(i,a)}`),gU(t,a),t.code(r)}):t.func(e,(0,B._)`${ee.default.data}, ${hU(a)}`,n.$async,()=>t.code(IO(i,a)).code(r))}function hU(t){return(0,B._)`{${ee.default.instancePath}="", ${ee.default.parentData}, ${ee.default.parentDataProperty}, ${ee.default.rootData}=${ee.default.data}${t.dynamicRef?(0,B._)`, ${ee.default.dynamicAnchors}={}`:B.nil}}={}`}function gU(t,e){t.if(ee.default.valCxt,()=>{t.var(ee.default.instancePath,(0,B._)`${ee.default.valCxt}.${ee.default.instancePath}`),t.var(ee.default.parentData,(0,B._)`${ee.default.valCxt}.${ee.default.parentData}`),t.var(ee.default.parentDataProperty,(0,B._)`${ee.default.valCxt}.${ee.default.parentDataProperty}`),t.var(ee.default.rootData,(0,B._)`${ee.default.valCxt}.${ee.default.rootData}`),e.dynamicRef&&t.var(ee.default.dynamicAnchors,(0,B._)`${ee.default.valCxt}.${ee.default.dynamicAnchors}`)},()=>{t.var(ee.default.instancePath,(0,B._)`""`),t.var(ee.default.parentData,(0,B._)`undefined`),t.var(ee.default.parentDataProperty,(0,B._)`undefined`),t.var(ee.default.rootData,ee.default.data),e.dynamicRef&&t.var(ee.default.dynamicAnchors,(0,B._)`{}`)})}function mU(t){let{schema:e,opts:i,gen:n}=t;$O(t,()=>{i.$comment&&e.$comment&&BO(t),AU(t),n.let(ee.default.vErrors,null),n.let(ee.default.errors,0),i.unevaluated&&fU(t),WO(t),PU(t)})}function fU(t){let{gen:e,validateName:i}=t;t.evaluated=e.const("evaluated",(0,B._)`${i}.evaluated`),e.if((0,B._)`${t.evaluated}.dynamicProps`,()=>e.assign((0,B._)`${t.evaluated}.props`,(0,B._)`undefined`)),e.if((0,B._)`${t.evaluated}.dynamicItems`,()=>e.assign((0,B._)`${t.evaluated}.items`,(0,B._)`undefined`))}function IO(t,e){let i=typeof t=="object"&&t[e.schemaId];return i&&(e.code.source||e.code.process)?(0,B._)`/*# sourceURL=${i} */`:B.nil}function wU(t,e){if(UO(t)&&(LO(t),NO(t))){vU(t,e);return}(0,GO.boolOrEmptySchema)(t,e)}function NO({schema:t,self:e}){if(typeof t=="boolean")return!t;for(let i in t)if(e.RULES.all[i])return!0;return!1}function UO(t){return typeof t.schema!="boolean"}function vU(t,e){let{schema:i,gen:n,opts:a}=t;a.$comment&&i.$comment&&BO(t),bU(t),yU(t);let r=n.const("_errs",ee.default.errors);WO(t,r),n.var(e,(0,B._)`${r} === ${ee.default.errors}`)}function LO(t){(0,ot.checkUnknownRules)(t),CU(t)}function WO(t,e){if(t.opts.jtd)return zO(t,[],!1,e);let i=(0,RO.getSchemaTypes)(t.schema),n=(0,RO.coerceAndCheckDataType)(t,i);zO(t,i,!n,e)}function CU(t){let{schema:e,errSchemaPath:i,opts:n,self:a}=t;e.$ref&&n.ignoreKeywordsWithRef&&(0,ot.schemaHasRulesButRef)(e,a.RULES)&&a.logger.warn(`$ref: keywords ignored in schema at path "${i}"`)}function AU(t){let{schema:e,opts:i}=t;e.default!==void 0&&i.useDefaults&&i.strictSchema&&(0,ot.checkStrictMode)(t,"default is ignored in the schema root")}function bU(t){let e=t.schema[t.opts.schemaId];e&&(t.baseId=(0,pU.resolveUrl)(t.opts.uriResolver,t.baseId,e))}function yU(t){if(t.schema.$async&&!t.schemaEnv.$async)throw new Error("async schema in sync schema")}function BO({gen:t,schemaEnv:e,schema:i,errSchemaPath:n,opts:a}){let r=i.$comment;if(a.$comment===!0)t.code((0,B._)`${ee.default.self}.logger.log(${r})`);else if(typeof a.$comment=="function"){let s=(0,B.str)`${n}/$comment`,o=t.scopeValue("root",{ref:e.root});t.code((0,B._)`${ee.default.self}.opts.$comment(${r}, ${s}, ${o}.schema)`)}}function PU(t){let{gen:e,schemaEnv:i,validateName:n,ValidationError:a,opts:r}=t;i.$async?e.if((0,B._)`${ee.default.errors} === 0`,()=>e.return(ee.default.data),()=>e.throw((0,B._)`new ${a}(${ee.default.vErrors})`)):(e.assign((0,B._)`${n}.errors`,ee.default.vErrors),r.unevaluated&&jU(t),e.return((0,B._)`${ee.default.errors} === 0`))}function jU({gen:t,evaluated:e,props:i,items:n}){i instanceof B.Name&&t.assign((0,B._)`${e}.props`,i),n instanceof B.Name&&t.assign((0,B._)`${e}.items`,n)}function zO(t,e,i,n){let{gen:a,schema:r,data:s,allErrors:o,opts:l,self:u}=t,{RULES:c}=u;if(r.$ref&&(l.ignoreKeywordsWithRef||!(0,ot.schemaHasRulesButRef)(r,c))){a.block(()=>VO(t,"$ref",c.all.$ref.definition));return}l.jtd||SU(t,e),a.block(()=>{for(let d of c.rules)p(d);p(c.post)});function p(d){(0,Bm.shouldUseGroup)(r,d)&&(d.type?(a.if((0,Bu.checkDataType)(d.type,s,l.strictNumbers)),DO(t,d),e.length===1&&e[0]===d.type&&i&&(a.else(),(0,Bu.reportTypeError)(t)),a.endIf()):DO(t,d),o||a.if((0,B._)`${ee.default.errors} === ${n||0}`))}}function DO(t,e){let{gen:i,schema:n,opts:{useDefaults:a}}=t;a&&(0,cU.assignDefaults)(t,e.type),i.block(()=>{for(let r of e.rules)(0,Bm.shouldUseRule)(n,r)&&VO(t,r.keyword,r.definition,e.type)})}function SU(t,e){t.schemaEnv.meta||!t.opts.strictTypes||(OU(t,e),t.opts.allowUnionTypes||xU(t,e),TU(t,t.dataTypes))}function OU(t,e){if(e.length){if(!t.dataTypes.length){t.dataTypes=e;return}e.forEach(i=>{FO(t.dataTypes,i)||Fm(t,`type "${i}" not allowed by context "${t.dataTypes.join(",")}"`)}),EU(t,e)}}function xU(t,e){e.length>1&&!(e.length===2&&e.includes("null"))&&Fm(t,"use allowUnionTypes to allow union type keyword")}function TU(t,e){let i=t.self.RULES.all;for(let n in i){let a=i[n];if(typeof a=="object"&&(0,Bm.shouldUseRule)(t.schema,a)){let{type:r}=a.definition;r.length&&!r.some(s=>MU(e,s))&&Fm(t,`missing type "${r.join(",")}" for keyword "${n}"`)}}}function MU(t,e){return t.includes(e)||e==="number"&&t.includes("integer")}function FO(t,e){return t.includes(e)||e==="integer"&&t.includes("number")}function EU(t,e){let i=[];for(let n of t.dataTypes)FO(e,n)?i.push(n):e.includes("integer")&&n==="number"&&i.push("integer");t.dataTypes=i}function Fm(t,e){let i=t.schemaEnv.baseId+t.errSchemaPath;e+=` at "${i}" (strictTypes)`,(0,ot.checkStrictMode)(t,e,t.opts.strictTypes)}var Fu=class{constructor(e,i,n){if((0,lo.validateKeywordUsage)(e,i,n),this.gen=e.gen,this.allErrors=e.allErrors,this.keyword=n,this.data=e.data,this.schema=e.schema[n],this.$data=i.$data&&e.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,ot.schemaRefOrVal)(e,this.schema,n,this.$data),this.schemaType=i.schemaType,this.parentSchema=e.schema,this.params={},this.it=e,this.def=i,this.$data)this.schemaCode=e.gen.const("vSchema",JO(this.$data,e));else if(this.schemaCode=this.schemaValue,!(0,lo.validSchemaType)(this.schema,i.schemaType,i.allowUndefined))throw new Error(`${n} value must be ${JSON.stringify(i.schemaType)}`);("code"in i?i.trackErrors:i.errors!==!1)&&(this.errsCount=e.gen.const("_errs",ee.default.errors))}result(e,i,n){this.failResult((0,B.not)(e),i,n)}failResult(e,i,n){this.gen.if(e),n?n():this.error(),i?(this.gen.else(),i(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(e,i){this.failResult((0,B.not)(e),void 0,i)}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:i}=this;this.fail((0,B._)`${i} !== undefined && (${(0,B.or)(this.invalid$data(),e)})`)}error(e,i,n){if(i){this.setParams(i),this._error(e,n),this.setParams({});return}this._error(e,n)}_error(e,i){(e?oo.reportExtraError:oo.reportError)(this,this.def.error,i)}$dataError(){(0,oo.reportError)(this,this.def.$dataError||oo.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');(0,oo.resetErrorsCount)(this.gen,this.errsCount)}ok(e){this.allErrors||this.gen.if(e)}setParams(e,i){i?Object.assign(this.params,e):this.params=e}block$data(e,i,n=B.nil){this.gen.block(()=>{this.check$data(e,n),i()})}check$data(e=B.nil,i=B.nil){if(!this.$data)return;let{gen:n,schemaCode:a,schemaType:r,def:s}=this;n.if((0,B.or)((0,B._)`${a} === undefined`,i)),e!==B.nil&&n.assign(e,!0),(r.length||s.validateSchema)&&(n.elseIf(this.invalid$data()),this.$dataError(),e!==B.nil&&n.assign(e,!1)),n.else()}invalid$data(){let{gen:e,schemaCode:i,schemaType:n,def:a,it:r}=this;return(0,B.or)(s(),o());function s(){if(n.length){if(!(i instanceof B.Name))throw new Error("ajv implementation error");let l=Array.isArray(n)?n:[n];return(0,B._)`${(0,Bu.checkDataTypes)(l,i,r.opts.strictNumbers,Bu.DataType.Wrong)}`}return B.nil}function o(){if(a.validateSchema){let l=e.scopeValue("validate$data",{ref:a.validateSchema});return(0,B._)`!${l}(${i})`}return B.nil}}subschema(e,i){let n=(0,Wm.getSubschema)(this.it,e);(0,Wm.extendSubschemaData)(n,this.it,e),(0,Wm.extendSubschemaMode)(n,e);let a={...this.it,...n,items:void 0,props:void 0};return wU(a,i),a}mergeEvaluated(e,i){let{it:n,gen:a}=this;n.opts.unevaluated&&(n.props!==!0&&e.props!==void 0&&(n.props=ot.mergeEvaluated.props(a,e.props,n.props,i)),n.items!==!0&&e.items!==void 0&&(n.items=ot.mergeEvaluated.items(a,e.items,n.items,i)))}mergeValidEvaluated(e,i){let{it:n,gen:a}=this;if(n.opts.unevaluated&&(n.props!==!0||n.items!==!0))return a.if(i,()=>this.mergeEvaluated(e,B.Name)),!0}};qt.KeywordCxt=Fu;function VO(t,e,i,n){let a=new Fu(t,i,e);"code"in i?i.code(a,n):a.$data&&i.validate?(0,lo.funcKeywordCode)(a,i):"macro"in i?(0,lo.macroKeywordCode)(a,i):(i.compile||i.validate)&&(0,lo.funcKeywordCode)(a,i)}var kU=/^\/(?:[^~]|~0|~1)*$/,qU=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function JO(t,{dataLevel:e,dataNames:i,dataPathArr:n}){let a,r;if(t==="")return ee.default.rootData;if(t[0]==="/"){if(!kU.test(t))throw new Error(`Invalid JSON-pointer: ${t}`);a=t,r=ee.default.rootData}else{let u=qU.exec(t);if(!u)throw new Error(`Invalid JSON-pointer: ${t}`);let c=+u[1];if(a=u[2],a==="#"){if(c>=e)throw new Error(l("property/index",c));return n[e-c]}if(c>e)throw new Error(l("data",c));if(r=i[e-c],!a)return r}let s=r,o=a.split("/");for(let u of o)u&&(r=(0,B._)`${r}${(0,B.getProperty)((0,ot.unescapeJsonPointer)(u))}`,s=(0,B._)`${s} && ${r}`);return s;function l(u,c){return`Cannot access ${u} ${c} levels up, current level is ${e}`}}qt.getData=JO});var Vu=w(Jm=>{"use strict";Object.defineProperty(Jm,"__esModule",{value:!0});var Vm=class extends Error{constructor(e){super("validation failed"),this.errors=e,this.ajv=this.validation=!0}};Jm.default=Vm});var co=w(Qm=>{"use strict";Object.defineProperty(Qm,"__esModule",{value:!0});var Zm=so(),Km=class extends Error{constructor(e,i,n,a){super(a||`can't resolve reference ${n} from id ${i}`),this.missingRef=(0,Zm.resolveUrl)(e,i,n),this.missingSchema=(0,Zm.normalizeId)((0,Zm.getFullPath)(e,this.missingRef))}};Qm.default=Km});var Zu=w(dn=>{"use strict";Object.defineProperty(dn,"__esModule",{value:!0});dn.resolveSchema=dn.getCompilingSchema=dn.resolveRef=dn.compileSchema=dn.SchemaEnv=void 0;var Pn=re(),_U=Vu(),ja=st(),jn=so(),ZO=we(),HU=uo(),xr=class{constructor(e){var i;this.refs={},this.dynamicAnchors={};let n;typeof e.schema=="object"&&(n=e.schema),this.schema=e.schema,this.schemaId=e.schemaId,this.root=e.root||this,this.baseId=(i=e.baseId)!==null&&i!==void 0?i:(0,jn.normalizeId)(n?.[e.schemaId||"$id"]),this.schemaPath=e.schemaPath,this.localRefs=e.localRefs,this.meta=e.meta,this.$async=n?.$async,this.refs={}}};dn.SchemaEnv=xr;function Xm(t){let e=KO.call(this,t);if(e)return e;let i=(0,jn.getFullPath)(this.opts.uriResolver,t.root.baseId),{es5:n,lines:a}=this.opts.code,{ownProperties:r}=this.opts,s=new Pn.CodeGen(this.scope,{es5:n,lines:a,ownProperties:r}),o;t.$async&&(o=s.scopeValue("Error",{ref:_U.default,code:(0,Pn._)`require("ajv/dist/runtime/validation_error").default`}));let l=s.scopeName("validate");t.validateName=l;let u={gen:s,allErrors:this.opts.allErrors,data:ja.default.data,parentData:ja.default.parentData,parentDataProperty:ja.default.parentDataProperty,dataNames:[ja.default.data],dataPathArr:[Pn.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:s.scopeValue("schema",this.opts.code.source===!0?{ref:t.schema,code:(0,Pn.stringify)(t.schema)}:{ref:t.schema}),validateName:l,ValidationError:o,schema:t.schema,schemaEnv:t,rootId:i,baseId:t.baseId||i,schemaPath:Pn.nil,errSchemaPath:t.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,Pn._)`""`,opts:this.opts,self:this},c;try{this._compilations.add(t),(0,HU.validateFunctionCode)(u),s.optimize(this.opts.code.optimize);let p=s.toString();c=`${s.scopeRefs(ja.default.scope)}return ${p}`,this.opts.code.process&&(c=this.opts.code.process(c,t));let h=new Function(`${ja.default.self}`,`${ja.default.scope}`,c)(this,this.scope.get());if(this.scope.value(l,{ref:h}),h.errors=null,h.schema=t.schema,h.schemaEnv=t,t.$async&&(h.$async=!0),this.opts.code.source===!0&&(h.source={validateName:l,validateCode:p,scopeValues:s._values}),this.opts.unevaluated){let{props:g,items:m}=u;h.evaluated={props:g instanceof Pn.Name?void 0:g,items:m instanceof Pn.Name?void 0:m,dynamicProps:g instanceof Pn.Name,dynamicItems:m instanceof Pn.Name},h.source&&(h.source.evaluated=(0,Pn.stringify)(h.evaluated))}return t.validate=h,t}catch(p){throw delete t.validate,delete t.validateName,c&&this.logger.error("Error compiling schema, function code:",c),p}finally{this._compilations.delete(t)}}dn.compileSchema=Xm;function RU(t,e,i){var n;i=(0,jn.resolveUrl)(this.opts.uriResolver,e,i);let a=t.refs[i];if(a)return a;let r=DU.call(this,t,i);if(r===void 0){let s=(n=t.localRefs)===null||n===void 0?void 0:n[i],{schemaId:o}=this.opts;s&&(r=new xr({schema:s,schemaId:o,root:t,baseId:e}))}if(r!==void 0)return t.refs[i]=IU.call(this,r)}dn.resolveRef=RU;function IU(t){return(0,jn.inlineRef)(t.schema,this.opts.inlineRefs)?t.schema:t.validate?t:Xm.call(this,t)}function KO(t){for(let e of this._compilations)if(zU(e,t))return e}dn.getCompilingSchema=KO;function zU(t,e){return t.schema===e.schema&&t.root===e.root&&t.baseId===e.baseId}function DU(t,e){let i;for(;typeof(i=this.refs[e])=="string";)e=i;return i||this.schemas[e]||Ju.call(this,t,e)}function Ju(t,e){let i=this.opts.uriResolver.parse(e),n=(0,jn._getFullPath)(this.opts.uriResolver,i),a=(0,jn.getFullPath)(this.opts.uriResolver,t.baseId,void 0);if(Object.keys(t.schema).length>0&&n===a)return Ym.call(this,i,t);let r=(0,jn.normalizeId)(n),s=this.refs[r]||this.schemas[r];if(typeof s=="string"){let o=Ju.call(this,t,s);return typeof o?.schema!="object"?void 0:Ym.call(this,i,o)}if(typeof s?.schema=="object"){if(s.validate||Xm.call(this,s),r===(0,jn.normalizeId)(e)){let{schema:o}=s,{schemaId:l}=this.opts,u=o[l];return u&&(a=(0,jn.resolveUrl)(this.opts.uriResolver,a,u)),new xr({schema:o,schemaId:l,root:t,baseId:a})}return Ym.call(this,i,s)}}dn.resolveSchema=Ju;var GU=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function Ym(t,{baseId:e,schema:i,root:n}){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 i=="boolean")return;let l=i[(0,ZO.unescapeFragment)(o)];if(l===void 0)return;i=l;let u=typeof i=="object"&&i[this.opts.schemaId];!GU.has(o)&&u&&(e=(0,jn.resolveUrl)(this.opts.uriResolver,e,u))}let r;if(typeof i!="boolean"&&i.$ref&&!(0,ZO.schemaHasRulesButRef)(i,this.RULES)){let o=(0,jn.resolveUrl)(this.opts.uriResolver,e,i.$ref);r=Ju.call(this,n,o)}let{schemaId:s}=this.opts;if(r=r||new xr({schema:i,schemaId:s,root:n,baseId:e}),r.schema!==r.root.schema)return r}});var QO=w((qae,$U)=>{$U.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 tf=w((_ae,tx)=>{"use strict";var NU=RegExp.prototype.test.bind(/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu),XO=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),ef=RegExp.prototype.test.bind(/^[\da-f]{2}$/iu),ex=RegExp.prototype.test.bind(/^[\da-z\-._~]$/iu),UU=RegExp.prototype.test.bind(/^[\da-z\-._~!$&'()*+,;=:@/]$/iu);function nf(t){let e="",i=0,n=0;for(n=0;n=48&&i<=57||i>=65&&i<=70||i>=97&&i<=102))return"";e+=t[n];break}for(n+=1;n=48&&i<=57||i>=65&&i<=70||i>=97&&i<=102))return"";e+=t[n]}return e}var LU=RegExp.prototype.test.bind(/[^!"$&'()*+,\-.;=_`a-z{}~]/u);function YO(t){return t.length=0,!0}function WU(t,e,i){if(t.length){let n=nf(t);if(n!=="")e.push(n);else return i.error=!0,!1;t.length=0}return!0}function BU(t){let e=0,i={error:!1,address:"",zone:""},n=[],a=[],r=!1,s=!1,o=WU;for(let l=0;l7){i.error=!0;break}l>0&&t[l-1]===":"&&(r=!0),n.push(":");continue}else if(u==="%"){if(!o(a,n,i))break;o=YO}else{a.push(u);continue}}return a.length&&(o===YO?i.zone=a.join(""):s?n.push(a.join("")):n.push(nf(a))),i.address=n.join(""),i}function ix(t){if(FU(t,":")<2)return{host:t,isIPV6:!1};let e=BU(t);if(e.error)return{host:t,isIPV6:!1};{let i=e.address,n=e.address;return e.zone&&(i+="%"+e.zone,n+="%25"+e.zone),{host:i,isIPV6:!0,escapedHost:n}}}function FU(t,e){let i=0;for(let n=0;nJU[n])}function QU(t,e=!1){if(t.indexOf("%")===-1)return t;let i="";for(let n=0;n{"use strict";var{isUUID:iL}=tf(),nL=/([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu,tL=["http","https","ws","wss","urn","urn:uuid"];function aL(t){return tL.indexOf(t)!==-1}function af(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 ax(t){return t.host||(t.error=t.error||"HTTP URIs must have a host."),t}function rx(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 rL(t){return t.secure=af(t),t.resourceName=(t.path||"/")+(t.query?"?"+t.query:""),t.path=void 0,t.query=void 0,t}function sL(t){if((t.port===(af(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,i]=t.resourceName.split("?");t.path=e&&e!=="/"?e:void 0,t.query=i,t.resourceName=void 0}return t.fragment=void 0,t}function oL(t,e){if(!t.path)return t.error="URN can not be parsed",t;let i=t.path.match(nL);if(i){let n=e.scheme||t.scheme||"urn";t.nid=i[1].toLowerCase(),t.nss=i[2];let a=`${n}:${e.nid||t.nid}`,r=rf(a);t.path=void 0,r&&(t=r.parse(t,e))}else t.error=t.error||"URN can not be parsed.";return t}function lL(t,e){if(t.nid===void 0)throw new Error("URN without nid cannot be serialized");let i=e.scheme||t.scheme||"urn",n=t.nid.toLowerCase(),a=`${i}:${e.nid||n}`,r=rf(a);r&&(t=r.serialize(t,e));let s=t,o=t.nss;return s.path=`${n||e.nid}:${o}`,e.skipEscape=!0,s}function uL(t,e){let i=t;return i.uuid=i.nss,i.nss=void 0,!e.tolerant&&(!i.uuid||!iL(i.uuid))&&(i.error=i.error||"UUID is not valid."),i}function cL(t){let e=t;return e.nss=(t.uuid||"").toLowerCase(),e}var sx={scheme:"http",domainHost:!0,parse:ax,serialize:rx},pL={scheme:"https",domainHost:sx.domainHost,parse:ax,serialize:rx},Ku={scheme:"ws",domainHost:!0,parse:rL,serialize:sL},dL={scheme:"wss",domainHost:Ku.domainHost,parse:Ku.parse,serialize:Ku.serialize},hL={scheme:"urn",parse:oL,serialize:lL,skipNormalize:!0},gL={scheme:"urn:uuid",parse:uL,serialize:cL,skipNormalize:!0},Qu={http:sx,https:pL,ws:Ku,wss:dL,urn:hL,"urn:uuid":gL};Object.setPrototypeOf(Qu,null);function rf(t){return t&&(Qu[t]||Qu[t.toLowerCase()])||void 0}ox.exports={wsIsSecure:af,SCHEMES:Qu,isValidSchemeName:aL,getSchemeHandler:rf}});var gx=w((Rae,Yu)=>{"use strict";var{normalizeIPv6:mL,removeDotSegments:po,recomposeAuthority:fL,normalizePercentEncoding:wL,normalizePathEncoding:vL,escapePreservingEscapes:CL,reescapeHostDelimiters:AL,isIPv4:bL,nonSimpleDomain:yL}=tf(),{SCHEMES:PL,getSchemeHandler:cx}=lx();function jL(t,e){return typeof t=="string"?t=ML(t,e):typeof t=="object"&&(t=Tr(Sa(t,e),e)),t}function SL(t,e,i){let n=i?Object.assign({scheme:"null"},i):{scheme:"null"},a=px(Tr(t,n),Tr(e,n),n,!0);return n.skipEscape=!0,Sa(a,n)}function px(t,e,i,n){let a={};return n||(t=Tr(Sa(t,i),i),e=Tr(Sa(e,i),i)),i=i||{},!i.tolerant&&e.scheme?(a.scheme=e.scheme,a.userinfo=e.userinfo,a.host=e.host,a.port=e.port,a.path=po(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=po(e.path||""),a.query=e.query):(e.path?(e.path[0]==="/"?a.path=po(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=po(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 OL(t,e,i){let n=ux(t,i),a=ux(e,i);return n!==void 0&&a!==void 0&&n.toLowerCase()===a.toLowerCase()}function Sa(t,e){let i={host:t.host,scheme:t.scheme,userinfo:t.userinfo,port:t.port,path:t.path,query:t.query,nid:t.nid,nss:t.nss,uuid:t.uuid,fragment:t.fragment,reference:t.reference,resourceName:t.resourceName,secure:t.secure,error:""},n=Object.assign({},e),a=[],r=cx(n.scheme||i.scheme);r&&r.serialize&&r.serialize(i,n),i.path!==void 0&&(n.skipEscape?i.path=wL(i.path):(i.path=CL(i.path),i.scheme!==void 0&&(i.path=i.path.split("%3A").join(":")))),n.reference!=="suffix"&&i.scheme&&a.push(i.scheme,":");let s=fL(i);if(s!==void 0&&(n.reference!=="suffix"&&a.push("//"),a.push(s),i.path&&i.path[0]!=="/"&&a.push("/")),i.path!==void 0){let o=i.path;!n.absolutePath&&(!r||!r.absolutePath)&&(o=po(o)),s===void 0&&o[0]==="/"&&o[1]==="/"&&(o="/%2F"+o.slice(2)),a.push(o)}return i.query!==void 0&&a.push("?",i.query),i.fragment!==void 0&&a.push("#",i.fragment),a.join("")}var xL=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u;function TL(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 dx(t,e){let i=Object.assign({},e),n={scheme:void 0,userinfo:void 0,host:"",port:void 0,path:"",query:void 0,fragment:void 0},a=!1,r=!1;i.reference==="suffix"&&(i.scheme?t=i.scheme+":"+t:t="//"+t);let s=t.match(xL);if(s){n.scheme=s[1],n.userinfo=s[3],n.host=s[4],n.port=parseInt(s[5],10),n.path=s[6]||"",n.query=s[7],n.fragment=s[8],isNaN(n.port)&&(n.port=s[5]);let o=TL(n,s);if(o!==void 0&&(n.error=n.error||o,a=!0),n.host)if(bL(n.host)===!1){let c=mL(n.host);n.host=c.host.toLowerCase(),r=c.isIPV6}else r=!0;n.scheme===void 0&&n.userinfo===void 0&&n.host===void 0&&n.port===void 0&&n.query===void 0&&!n.path?n.reference="same-document":n.scheme===void 0?n.reference="relative":n.fragment===void 0?n.reference="absolute":n.reference="uri",i.reference&&i.reference!=="suffix"&&i.reference!==n.reference&&(n.error=n.error||"URI is not a "+i.reference+" reference.");let l=cx(i.scheme||n.scheme);if(!i.unicodeSupport&&(!l||!l.unicodeSupport)&&n.host&&(i.domainHost||l&&l.domainHost)&&r===!1&&yL(n.host))try{n.host=URL.domainToASCII(n.host.toLowerCase())}catch(u){n.error=n.error||"Host's domain name can not be converted to ASCII: "+u}if((!l||l&&!l.skipNormalize)&&(t.indexOf("%")!==-1&&(n.scheme!==void 0&&(n.scheme=unescape(n.scheme)),n.host!==void 0&&(n.host=AL(unescape(n.host),r))),n.path&&(n.path=vL(n.path)),n.fragment))try{n.fragment=encodeURI(decodeURIComponent(n.fragment))}catch{n.error=n.error||"URI malformed"}l&&l.parse&&l.parse(n,i)}else n.error=n.error||"URI can not be parsed.";return{parsed:n,malformedAuthorityOrPort:a}}function Tr(t,e){return dx(t,e).parsed}function ML(t,e){return hx(t,e).normalized}function hx(t,e){let{parsed:i,malformedAuthorityOrPort:n}=dx(t,e);return{normalized:n?t:Sa(i,e),malformedAuthorityOrPort:n}}function ux(t,e){if(typeof t=="string"){let{normalized:i,malformedAuthorityOrPort:n}=hx(t,e);return n?void 0:i}if(typeof t=="object")return Sa(t,e)}var sf={SCHEMES:PL,normalize:jL,resolve:SL,resolveComponent:px,equal:OL,serialize:Sa,parse:Tr};Yu.exports=sf;Yu.exports.default=sf;Yu.exports.fastUri=sf});var fx=w(of=>{"use strict";Object.defineProperty(of,"__esModule",{value:!0});var mx=gx();mx.code='require("ajv/dist/runtime/uri").default';of.default=mx});var jx=w(yi=>{"use strict";Object.defineProperty(yi,"__esModule",{value:!0});yi.CodeGen=yi.Name=yi.nil=yi.stringify=yi.str=yi._=yi.KeywordCxt=void 0;var EL=uo();Object.defineProperty(yi,"KeywordCxt",{enumerable:!0,get:function(){return EL.KeywordCxt}});var Mr=re();Object.defineProperty(yi,"_",{enumerable:!0,get:function(){return Mr._}});Object.defineProperty(yi,"str",{enumerable:!0,get:function(){return Mr.str}});Object.defineProperty(yi,"stringify",{enumerable:!0,get:function(){return Mr.stringify}});Object.defineProperty(yi,"nil",{enumerable:!0,get:function(){return Mr.nil}});Object.defineProperty(yi,"Name",{enumerable:!0,get:function(){return Mr.Name}});Object.defineProperty(yi,"CodeGen",{enumerable:!0,get:function(){return Mr.CodeGen}});var kL=Vu(),bx=co(),qL=Hm(),ho=Zu(),_L=re(),go=so(),Xu=ro(),uf=we(),wx=QO(),HL=fx(),yx=(t,e)=>new RegExp(t,e);yx.code="new RegExp";var RL=["removeAdditional","useDefaults","coerceTypes"],IL=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),zL={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."},DL={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},vx=200;function GL(t){var e,i,n,a,r,s,o,l,u,c,p,d,h,g,m,f,v,y,A,b,O,$,N,X,F;let k=t.strict,Q=(e=t.code)===null||e===void 0?void 0:e.optimize,Z=Q===!0||Q===void 0?1:Q||0,ie=(n=(i=t.code)===null||i===void 0?void 0:i.regExp)!==null&&n!==void 0?n:yx,se=(a=t.uriResolver)!==null&&a!==void 0?a:HL.default;return{strictSchema:(s=(r=t.strictSchema)!==null&&r!==void 0?r:k)!==null&&s!==void 0?s:!0,strictNumbers:(l=(o=t.strictNumbers)!==null&&o!==void 0?o:k)!==null&&l!==void 0?l:!0,strictTypes:(c=(u=t.strictTypes)!==null&&u!==void 0?u:k)!==null&&c!==void 0?c:"log",strictTuples:(d=(p=t.strictTuples)!==null&&p!==void 0?p:k)!==null&&d!==void 0?d:"log",strictRequired:(g=(h=t.strictRequired)!==null&&h!==void 0?h:k)!==null&&g!==void 0?g:!1,code:t.code?{...t.code,optimize:Z,regExp:ie}:{optimize:Z,regExp:ie},loopRequired:(m=t.loopRequired)!==null&&m!==void 0?m:vx,loopEnum:(f=t.loopEnum)!==null&&f!==void 0?f:vx,meta:(v=t.meta)!==null&&v!==void 0?v:!0,messages:(y=t.messages)!==null&&y!==void 0?y:!0,inlineRefs:(A=t.inlineRefs)!==null&&A!==void 0?A:!0,schemaId:(b=t.schemaId)!==null&&b!==void 0?b:"$id",addUsedSchema:(O=t.addUsedSchema)!==null&&O!==void 0?O:!0,validateSchema:($=t.validateSchema)!==null&&$!==void 0?$:!0,validateFormats:(N=t.validateFormats)!==null&&N!==void 0?N:!0,unicodeRegExp:(X=t.unicodeRegExp)!==null&&X!==void 0?X:!0,int32range:(F=t.int32range)!==null&&F!==void 0?F:!0,uriResolver:se}}var mo=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,...GL(e)};let{es5:i,lines:n}=this.opts.code;this.scope=new _L.ValueScope({scope:{},prefixes:IL,es5:i,lines:n}),this.logger=BL(e.logger);let a=e.validateFormats;e.validateFormats=!1,this.RULES=(0,qL.getRules)(),Cx.call(this,zL,e,"NOT SUPPORTED"),Cx.call(this,DL,e,"DEPRECATED","warn"),this._metaOpts=LL.call(this),e.formats&&NL.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),e.keywords&&UL.call(this,e.keywords),typeof e.meta=="object"&&this.addMetaSchema(e.meta),$L.call(this),e.validateFormats=a}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){let{$data:e,meta:i,schemaId:n}=this.opts,a=wx;n==="id"&&(a={...wx},a.id=a.$id,delete a.$id),i&&e&&this.addMetaSchema(a,a[n],!1)}defaultMeta(){let{meta:e,schemaId:i}=this.opts;return this.opts.defaultMeta=typeof e=="object"?e[i]||e:void 0}validate(e,i){let n;if(typeof e=="string"){if(n=this.getSchema(e),!n)throw new Error(`no schema with key or ref "${e}"`)}else n=this.compile(e);let a=n(i);return"$async"in n||(this.errors=n.errors),a}compile(e,i){let n=this._addSchema(e,i);return n.validate||this._compileSchemaEnv(n)}compileAsync(e,i){if(typeof this.opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");let{loadSchema:n}=this.opts;return a.call(this,e,i);async function a(c,p){await r.call(this,c.$schema);let d=this._addSchema(c,p);return d.validate||s.call(this,d)}async function r(c){c&&!this.getSchema(c)&&await a.call(this,{$ref:c},!0)}async function s(c){try{return this._compileSchemaEnv(c)}catch(p){if(!(p instanceof bx.default))throw p;return o.call(this,p),await l.call(this,p.missingSchema),s.call(this,c)}}function o({missingSchema:c,missingRef:p}){if(this.refs[c])throw new Error(`AnySchema ${c} is loaded but ${p} cannot be resolved`)}async function l(c){let p=await u.call(this,c);this.refs[c]||await r.call(this,p.$schema),this.refs[c]||this.addSchema(p,c,i)}async function u(c){let p=this._loading[c];if(p)return p;try{return await(this._loading[c]=n(c))}finally{delete this._loading[c]}}}addSchema(e,i,n,a=this.opts.validateSchema){if(Array.isArray(e)){for(let s of e)this.addSchema(s,void 0,n,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 i=(0,go.normalizeId)(i||r),this._checkUnique(i),this.schemas[i]=this._addSchema(e,n,i,a,!0),this}addMetaSchema(e,i,n=this.opts.validateSchema){return this.addSchema(e,i,!0,n),this}validateSchema(e,i){if(typeof e=="boolean")return!0;let n;if(n=e.$schema,n!==void 0&&typeof n!="string")throw new Error("$schema must be a string");if(n=n||this.opts.defaultMeta||this.defaultMeta(),!n)return this.logger.warn("meta-schema not available"),this.errors=null,!0;let a=this.validate(n,e);if(!a&&i){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 i;for(;typeof(i=Ax.call(this,e))=="string";)e=i;if(i===void 0){let{schemaId:n}=this.opts,a=new ho.SchemaEnv({schema:{},schemaId:n});if(i=ho.resolveSchema.call(this,a,e),!i)return;this.refs[e]=i}return i.validate||this._compileSchemaEnv(i)}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 i=Ax.call(this,e);return typeof i=="object"&&this._cache.delete(i.schema),delete this.schemas[e],delete this.refs[e],this}case"object":{let i=e;this._cache.delete(i);let n=e[this.opts.schemaId];return n&&(n=(0,go.normalizeId)(n),delete this.schemas[n],delete this.refs[n]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(e){for(let i of e)this.addKeyword(i);return this}addKeyword(e,i){let n;if(typeof e=="string")n=e,typeof i=="object"&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),i.keyword=n);else if(typeof e=="object"&&i===void 0){if(i=e,n=i.keyword,Array.isArray(n)&&!n.length)throw new Error("addKeywords: keyword must be string or non-empty array")}else throw new Error("invalid addKeywords parameters");if(VL.call(this,n,i),!i)return(0,uf.eachItem)(n,r=>lf.call(this,r)),this;ZL.call(this,i);let a={...i,type:(0,Xu.getJSONTypes)(i.type),schemaType:(0,Xu.getJSONTypes)(i.schemaType)};return(0,uf.eachItem)(n,a.type.length===0?r=>lf.call(this,r,a):r=>a.type.forEach(s=>lf.call(this,r,a,s))),this}getKeyword(e){let i=this.RULES.all[e];return typeof i=="object"?i.definition:!!i}removeKeyword(e){let{RULES:i}=this;delete i.keywords[e],delete i.all[e];for(let n of i.rules){let a=n.rules.findIndex(r=>r.keyword===e);a>=0&&n.rules.splice(a,1)}return this}addFormat(e,i){return typeof i=="string"&&(i=new RegExp(i)),this.formats[e]=i,this}errorsText(e=this.errors,{separator:i=", ",dataVar:n="data"}={}){return!e||e.length===0?"No errors":e.map(a=>`${n}${a.instancePath} ${a.message}`).reduce((a,r)=>a+i+r)}$dataMetaSchema(e,i){let n=this.RULES.all;e=JSON.parse(JSON.stringify(e));for(let a of i){let r=a.split("/").slice(1),s=e;for(let o of r)s=s[o];for(let o in n){let l=n[o];if(typeof l!="object")continue;let{$data:u}=l.definition,c=s[o];u&&c&&(s[o]=Px(c))}}return e}_removeAllSchemas(e,i){for(let n in e){let a=e[n];(!i||i.test(n))&&(typeof a=="string"?delete e[n]:a&&!a.meta&&(this._cache.delete(a.schema),delete e[n]))}}_addSchema(e,i,n,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;n=(0,go.normalizeId)(s||n);let u=go.getSchemaRefs.call(this,e,n);return l=new ho.SchemaEnv({schema:e,schemaId:o,meta:i,baseId:n,localRefs:u}),this._cache.set(l.schema,l),r&&!n.startsWith("#")&&(n&&this._checkUnique(n),this.refs[n]=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):ho.compileSchema.call(this,e),!e.validate)throw new Error("ajv implementation error");return e.validate}_compileMetaSchema(e){let i=this.opts;this.opts=this._metaOpts;try{ho.compileSchema.call(this,e)}finally{this.opts=i}}};mo.ValidationError=kL.default;mo.MissingRefError=bx.default;yi.default=mo;function Cx(t,e,i,n="error"){for(let a in t){let r=a;r in e&&this.logger[n](`${i}: option ${a}. ${t[r]}`)}}function Ax(t){return t=(0,go.normalizeId)(t),this.schemas[t]||this.refs[t]}function $L(){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 NL(){for(let t in this.opts.formats){let e=this.opts.formats[t];e&&this.addFormat(t,e)}}function UL(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 i=t[e];i.keyword||(i.keyword=e),this.addKeyword(i)}}function LL(){let t={...this.opts};for(let e of RL)delete t[e];return t}var WL={log(){},warn(){},error(){}};function BL(t){if(t===!1)return WL;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 FL=/^[a-z_$][a-z0-9_$:-]*$/i;function VL(t,e){let{RULES:i}=this;if((0,uf.eachItem)(t,n=>{if(i.keywords[n])throw new Error(`Keyword ${n} is already defined`);if(!FL.test(n))throw new Error(`Keyword ${n} has invalid name`)}),!!e&&e.$data&&!("code"in e||"validate"in e))throw new Error('$data keyword must have "code" or "validate" function')}function lf(t,e,i){var n;let a=e?.post;if(i&&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===i);if(s||(s={type:i,rules:[]},r.rules.push(s)),r.keywords[t]=!0,!e)return;let o={keyword:t,definition:{...e,type:(0,Xu.getJSONTypes)(e.type),schemaType:(0,Xu.getJSONTypes)(e.schemaType)}};e.before?JL.call(this,s,o,e.before):s.rules.push(o),r.all[t]=o,(n=e.implements)===null||n===void 0||n.forEach(l=>this.addKeyword(l))}function JL(t,e,i){let n=t.rules.findIndex(a=>a.keyword===i);n>=0?t.rules.splice(n,0,e):(t.rules.push(e),this.logger.warn(`rule ${i} is not defined`))}function ZL(t){let{metaSchema:e}=t;e!==void 0&&(t.$data&&this.opts.$data&&(e=Px(e)),t.validateSchema=this.compile(e,!0))}var KL={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function Px(t){return{anyOf:[t,KL]}}});var Sx=w(cf=>{"use strict";Object.defineProperty(cf,"__esModule",{value:!0});var QL={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};cf.default=QL});var Mx=w(Oa=>{"use strict";Object.defineProperty(Oa,"__esModule",{value:!0});Oa.callRef=Oa.getValidate=void 0;var YL=co(),Ox=pn(),Li=re(),Er=st(),xx=Zu(),ec=we(),XL={keyword:"$ref",schemaType:"string",code(t){let{gen:e,schema:i,it:n}=t,{baseId:a,schemaEnv:r,validateName:s,opts:o,self:l}=n,{root:u}=r;if((i==="#"||i==="#/")&&a===u.baseId)return p();let c=xx.resolveRef.call(l,u,a,i);if(c===void 0)throw new YL.default(n.opts.uriResolver,a,i);if(c instanceof xx.SchemaEnv)return d(c);return h(c);function p(){if(r===u)return ic(t,s,r,r.$async);let g=e.scopeValue("root",{ref:u});return ic(t,(0,Li._)`${g}.validate`,u,u.$async)}function d(g){let m=Tx(t,g);ic(t,m,g,g.$async)}function h(g){let m=e.scopeValue("schema",o.code.source===!0?{ref:g,code:(0,Li.stringify)(g)}:{ref:g}),f=e.name("valid"),v=t.subschema({schema:g,dataTypes:[],schemaPath:Li.nil,topSchemaRef:m,errSchemaPath:i},f);t.mergeEvaluated(v),t.ok(f)}}};function Tx(t,e){let{gen:i}=t;return e.validate?i.scopeValue("validate",{ref:e.validate}):(0,Li._)`${i.scopeValue("wrapper",{ref:e})}.validate`}Oa.getValidate=Tx;function ic(t,e,i,n){let{gen:a,it:r}=t,{allErrors:s,schemaEnv:o,opts:l}=r,u=l.passContext?Er.default.this:Li.nil;n?c():p();function c(){if(!o.$async)throw new Error("async schema referenced by sync schema");let g=a.let("valid");a.try(()=>{a.code((0,Li._)`await ${(0,Ox.callValidateCode)(t,e,u)}`),h(e),s||a.assign(g,!0)},m=>{a.if((0,Li._)`!(${m} instanceof ${r.ValidationError})`,()=>a.throw(m)),d(m),s||a.assign(g,!1)}),t.ok(g)}function p(){t.result((0,Ox.callValidateCode)(t,e,u),()=>h(e),()=>d(e))}function d(g){let m=(0,Li._)`${g}.errors`;a.assign(Er.default.vErrors,(0,Li._)`${Er.default.vErrors} === null ? ${m} : ${Er.default.vErrors}.concat(${m})`),a.assign(Er.default.errors,(0,Li._)`${Er.default.vErrors}.length`)}function h(g){var m;if(!r.opts.unevaluated)return;let f=(m=i?.validate)===null||m===void 0?void 0:m.evaluated;if(r.props!==!0)if(f&&!f.dynamicProps)f.props!==void 0&&(r.props=ec.mergeEvaluated.props(a,f.props,r.props));else{let v=a.var("props",(0,Li._)`${g}.evaluated.props`);r.props=ec.mergeEvaluated.props(a,v,r.props,Li.Name)}if(r.items!==!0)if(f&&!f.dynamicItems)f.items!==void 0&&(r.items=ec.mergeEvaluated.items(a,f.items,r.items));else{let v=a.var("items",(0,Li._)`${g}.evaluated.items`);r.items=ec.mergeEvaluated.items(a,v,r.items,Li.Name)}}}Oa.callRef=ic;Oa.default=XL});var Ex=w(pf=>{"use strict";Object.defineProperty(pf,"__esModule",{value:!0});var eW=Sx(),iW=Mx(),nW=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",eW.default,iW.default];pf.default=nW});var kx=w(df=>{"use strict";Object.defineProperty(df,"__esModule",{value:!0});var nc=re(),_t=nc.operators,tc={maximum:{okStr:"<=",ok:_t.LTE,fail:_t.GT},minimum:{okStr:">=",ok:_t.GTE,fail:_t.LT},exclusiveMaximum:{okStr:"<",ok:_t.LT,fail:_t.GTE},exclusiveMinimum:{okStr:">",ok:_t.GT,fail:_t.LTE}},tW={message:({keyword:t,schemaCode:e})=>(0,nc.str)`must be ${tc[t].okStr} ${e}`,params:({keyword:t,schemaCode:e})=>(0,nc._)`{comparison: ${tc[t].okStr}, limit: ${e}}`},aW={keyword:Object.keys(tc),type:"number",schemaType:"number",$data:!0,error:tW,code(t){let{keyword:e,data:i,schemaCode:n}=t;t.fail$data((0,nc._)`${i} ${tc[e].fail} ${n} || isNaN(${i})`)}};df.default=aW});var qx=w(hf=>{"use strict";Object.defineProperty(hf,"__esModule",{value:!0});var fo=re(),rW={message:({schemaCode:t})=>(0,fo.str)`must be multiple of ${t}`,params:({schemaCode:t})=>(0,fo._)`{multipleOf: ${t}}`},sW={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:rW,code(t){let{gen:e,data:i,schemaCode:n,it:a}=t,r=a.opts.multipleOfPrecision,s=e.let("res"),o=r?(0,fo._)`Math.abs(Math.round(${s}) - ${s}) > 1e-${r}`:(0,fo._)`${s} !== parseInt(${s})`;t.fail$data((0,fo._)`(${n} === 0 || (${s} = ${i}/${n}, ${o}))`)}};hf.default=sW});var Hx=w(gf=>{"use strict";Object.defineProperty(gf,"__esModule",{value:!0});function _x(t){let e=t.length,i=0,n=0,a;for(;n=55296&&a<=56319&&n{"use strict";Object.defineProperty(mf,"__esModule",{value:!0});var xa=re(),oW=we(),lW=Hx(),uW={message({keyword:t,schemaCode:e}){let i=t==="maxLength"?"more":"fewer";return(0,xa.str)`must NOT have ${i} than ${e} characters`},params:({schemaCode:t})=>(0,xa._)`{limit: ${t}}`},cW={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:uW,code(t){let{keyword:e,data:i,schemaCode:n,it:a}=t,r=e==="maxLength"?xa.operators.GT:xa.operators.LT,s=a.opts.unicode===!1?(0,xa._)`${i}.length`:(0,xa._)`${(0,oW.useFunc)(t.gen,lW.default)}(${i})`;t.fail$data((0,xa._)`${s} ${r} ${n}`)}};mf.default=cW});var Ix=w(ff=>{"use strict";Object.defineProperty(ff,"__esModule",{value:!0});var pW=pn(),dW=we(),kr=re(),hW={message:({schemaCode:t})=>(0,kr.str)`must match pattern "${t}"`,params:({schemaCode:t})=>(0,kr._)`{pattern: ${t}}`},gW={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:hW,code(t){let{gen:e,data:i,$data:n,schema:a,schemaCode:r,it:s}=t,o=s.opts.unicodeRegExp?"u":"";if(n){let{regExp:l}=s.opts.code,u=l.code==="new RegExp"?(0,kr._)`new RegExp`:(0,dW.useFunc)(e,l),c=e.let("valid");e.try(()=>e.assign(c,(0,kr._)`${u}(${r}, ${o}).test(${i})`),()=>e.assign(c,!1)),t.fail$data((0,kr._)`!${c}`)}else{let l=(0,pW.usePattern)(t,a);t.fail$data((0,kr._)`!${l}.test(${i})`)}}};ff.default=gW});var zx=w(wf=>{"use strict";Object.defineProperty(wf,"__esModule",{value:!0});var wo=re(),mW={message({keyword:t,schemaCode:e}){let i=t==="maxProperties"?"more":"fewer";return(0,wo.str)`must NOT have ${i} than ${e} properties`},params:({schemaCode:t})=>(0,wo._)`{limit: ${t}}`},fW={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:mW,code(t){let{keyword:e,data:i,schemaCode:n}=t,a=e==="maxProperties"?wo.operators.GT:wo.operators.LT;t.fail$data((0,wo._)`Object.keys(${i}).length ${a} ${n}`)}};wf.default=fW});var Dx=w(vf=>{"use strict";Object.defineProperty(vf,"__esModule",{value:!0});var vo=pn(),Co=re(),wW=we(),vW={message:({params:{missingProperty:t}})=>(0,Co.str)`must have required property '${t}'`,params:({params:{missingProperty:t}})=>(0,Co._)`{missingProperty: ${t}}`},CW={keyword:"required",type:"object",schemaType:"array",$data:!0,error:vW,code(t){let{gen:e,schema:i,schemaCode:n,data:a,$data:r,it:s}=t,{opts:o}=s;if(!r&&i.length===0)return;let l=i.length>=o.loopRequired;if(s.allErrors?u():c(),o.strictRequired){let h=t.parentSchema.properties,{definedProperties:g}=t.it;for(let m of i)if(h?.[m]===void 0&&!g.has(m)){let f=s.schemaEnv.baseId+s.errSchemaPath,v=`required property "${m}" is not defined at "${f}" (strictRequired)`;(0,wW.checkStrictMode)(s,v,s.opts.strictRequired)}}function u(){if(l||r)t.block$data(Co.nil,p);else for(let h of i)(0,vo.checkReportMissingProp)(t,h)}function c(){let h=e.let("missing");if(l||r){let g=e.let("valid",!0);t.block$data(g,()=>d(h,g)),t.ok(g)}else e.if((0,vo.checkMissingProp)(t,i,h)),(0,vo.reportMissingProp)(t,h),e.else()}function p(){e.forOf("prop",n,h=>{t.setParams({missingProperty:h}),e.if((0,vo.noPropertyInData)(e,a,h,o.ownProperties),()=>t.error())})}function d(h,g){t.setParams({missingProperty:h}),e.forOf(h,n,()=>{e.assign(g,(0,vo.propertyInData)(e,a,h,o.ownProperties)),e.if((0,Co.not)(g),()=>{t.error(),e.break()})},Co.nil)}}};vf.default=CW});var Gx=w(Cf=>{"use strict";Object.defineProperty(Cf,"__esModule",{value:!0});var Ao=re(),AW={message({keyword:t,schemaCode:e}){let i=t==="maxItems"?"more":"fewer";return(0,Ao.str)`must NOT have ${i} than ${e} items`},params:({schemaCode:t})=>(0,Ao._)`{limit: ${t}}`},bW={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:AW,code(t){let{keyword:e,data:i,schemaCode:n}=t,a=e==="maxItems"?Ao.operators.GT:Ao.operators.LT;t.fail$data((0,Ao._)`${i}.length ${a} ${n}`)}};Cf.default=bW});var ac=w(Af=>{"use strict";Object.defineProperty(Af,"__esModule",{value:!0});var $x=Um();$x.code='require("ajv/dist/runtime/equal").default';Af.default=$x});var Nx=w(yf=>{"use strict";Object.defineProperty(yf,"__esModule",{value:!0});var bf=ro(),Pi=re(),yW=we(),PW=ac(),jW={message:({params:{i:t,j:e}})=>(0,Pi.str)`must NOT have duplicate items (items ## ${e} and ${t} are identical)`,params:({params:{i:t,j:e}})=>(0,Pi._)`{i: ${t}, j: ${e}}`},SW={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:jW,code(t){let{gen:e,data:i,$data:n,schema:a,parentSchema:r,schemaCode:s,it:o}=t;if(!n&&!a)return;let l=e.let("valid"),u=r.items?(0,bf.getSchemaTypes)(r.items):[];t.block$data(l,c,(0,Pi._)`${s} === false`),t.ok(l);function c(){let g=e.let("i",(0,Pi._)`${i}.length`),m=e.let("j");t.setParams({i:g,j:m}),e.assign(l,!0),e.if((0,Pi._)`${g} > 1`,()=>(p()?d:h)(g,m))}function p(){return u.length>0&&!u.some(g=>g==="object"||g==="array")}function d(g,m){let f=e.name("item"),v=(0,bf.checkDataTypes)(u,f,o.opts.strictNumbers,bf.DataType.Wrong),y=e.const("indices",(0,Pi._)`{}`);e.for((0,Pi._)`;${g}--;`,()=>{e.let(f,(0,Pi._)`${i}[${g}]`),e.if(v,(0,Pi._)`continue`),u.length>1&&e.if((0,Pi._)`typeof ${f} == "string"`,(0,Pi._)`${f} += "_"`),e.if((0,Pi._)`typeof ${y}[${f}] == "number"`,()=>{e.assign(m,(0,Pi._)`${y}[${f}]`),t.error(),e.assign(l,!1).break()}).code((0,Pi._)`${y}[${f}] = ${g}`)})}function h(g,m){let f=(0,yW.useFunc)(e,PW.default),v=e.name("outer");e.label(v).for((0,Pi._)`;${g}--;`,()=>e.for((0,Pi._)`${m} = ${g}; ${m}--;`,()=>e.if((0,Pi._)`${f}(${i}[${g}], ${i}[${m}])`,()=>{t.error(),e.assign(l,!1).break(v)})))}}};yf.default=SW});var Ux=w(jf=>{"use strict";Object.defineProperty(jf,"__esModule",{value:!0});var Pf=re(),OW=we(),xW=ac(),TW={message:"must be equal to constant",params:({schemaCode:t})=>(0,Pf._)`{allowedValue: ${t}}`},MW={keyword:"const",$data:!0,error:TW,code(t){let{gen:e,data:i,$data:n,schemaCode:a,schema:r}=t;n||r&&typeof r=="object"?t.fail$data((0,Pf._)`!${(0,OW.useFunc)(e,xW.default)}(${i}, ${a})`):t.fail((0,Pf._)`${r} !== ${i}`)}};jf.default=MW});var Lx=w(Sf=>{"use strict";Object.defineProperty(Sf,"__esModule",{value:!0});var bo=re(),EW=we(),kW=ac(),qW={message:"must be equal to one of the allowed values",params:({schemaCode:t})=>(0,bo._)`{allowedValues: ${t}}`},_W={keyword:"enum",schemaType:"array",$data:!0,error:qW,code(t){let{gen:e,data:i,$data:n,schema:a,schemaCode:r,it:s}=t;if(!n&&a.length===0)throw new Error("enum must have non-empty array");let o=a.length>=s.opts.loopEnum,l,u=()=>l??(l=(0,EW.useFunc)(e,kW.default)),c;if(o||n)c=e.let("valid"),t.block$data(c,p);else{if(!Array.isArray(a))throw new Error("ajv implementation error");let h=e.const("vSchema",r);c=(0,bo.or)(...a.map((g,m)=>d(h,m)))}t.pass(c);function p(){e.assign(c,!1),e.forOf("v",r,h=>e.if((0,bo._)`${u()}(${i}, ${h})`,()=>e.assign(c,!0).break()))}function d(h,g){let m=a[g];return typeof m=="object"&&m!==null?(0,bo._)`${u()}(${i}, ${h}[${g}])`:(0,bo._)`${i} === ${m}`}}};Sf.default=_W});var Wx=w(Of=>{"use strict";Object.defineProperty(Of,"__esModule",{value:!0});var HW=kx(),RW=qx(),IW=Rx(),zW=Ix(),DW=zx(),GW=Dx(),$W=Gx(),NW=Nx(),UW=Ux(),LW=Lx(),WW=[HW.default,RW.default,IW.default,zW.default,DW.default,GW.default,$W.default,NW.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},UW.default,LW.default];Of.default=WW});var Tf=w(yo=>{"use strict";Object.defineProperty(yo,"__esModule",{value:!0});yo.validateAdditionalItems=void 0;var Ta=re(),xf=we(),BW={message:({params:{len:t}})=>(0,Ta.str)`must NOT have more than ${t} items`,params:({params:{len:t}})=>(0,Ta._)`{limit: ${t}}`},FW={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:BW,code(t){let{parentSchema:e,it:i}=t,{items:n}=e;if(!Array.isArray(n)){(0,xf.checkStrictMode)(i,'"additionalItems" is ignored when "items" is not an array of schemas');return}Bx(t,n)}};function Bx(t,e){let{gen:i,schema:n,data:a,keyword:r,it:s}=t;s.items=!0;let o=i.const("len",(0,Ta._)`${a}.length`);if(n===!1)t.setParams({len:e.length}),t.pass((0,Ta._)`${o} <= ${e.length}`);else if(typeof n=="object"&&!(0,xf.alwaysValidSchema)(s,n)){let u=i.var("valid",(0,Ta._)`${o} <= ${e.length}`);i.if((0,Ta.not)(u),()=>l(u)),t.ok(u)}function l(u){i.forRange("i",e.length,o,c=>{t.subschema({keyword:r,dataProp:c,dataPropType:xf.Type.Num},u),s.allErrors||i.if((0,Ta.not)(u),()=>i.break())})}}yo.validateAdditionalItems=Bx;yo.default=FW});var Mf=w(Po=>{"use strict";Object.defineProperty(Po,"__esModule",{value:!0});Po.validateTuple=void 0;var Fx=re(),rc=we(),VW=pn(),JW={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(t){let{schema:e,it:i}=t;if(Array.isArray(e))return Vx(t,"additionalItems",e);i.items=!0,!(0,rc.alwaysValidSchema)(i,e)&&t.ok((0,VW.validateArray)(t))}};function Vx(t,e,i=t.schema){let{gen:n,parentSchema:a,data:r,keyword:s,it:o}=t;c(a),o.opts.unevaluated&&i.length&&o.items!==!0&&(o.items=rc.mergeEvaluated.items(n,i.length,o.items));let l=n.name("valid"),u=n.const("len",(0,Fx._)`${r}.length`);i.forEach((p,d)=>{(0,rc.alwaysValidSchema)(o,p)||(n.if((0,Fx._)`${u} > ${d}`,()=>t.subschema({keyword:s,schemaProp:d,dataProp:d},l)),t.ok(l))});function c(p){let{opts:d,errSchemaPath:h}=o,g=i.length,m=g===p.minItems&&(g===p.maxItems||p[e]===!1);if(d.strictTuples&&!m){let f=`"${s}" is ${g}-tuple, but minItems or maxItems/${e} are not specified or different at path "${h}"`;(0,rc.checkStrictMode)(o,f,d.strictTuples)}}}Po.validateTuple=Vx;Po.default=JW});var Jx=w(Ef=>{"use strict";Object.defineProperty(Ef,"__esModule",{value:!0});var ZW=Mf(),KW={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:t=>(0,ZW.validateTuple)(t,"items")};Ef.default=KW});var Kx=w(kf=>{"use strict";Object.defineProperty(kf,"__esModule",{value:!0});var Zx=re(),QW=we(),YW=pn(),XW=Tf(),eB={message:({params:{len:t}})=>(0,Zx.str)`must NOT have more than ${t} items`,params:({params:{len:t}})=>(0,Zx._)`{limit: ${t}}`},iB={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:eB,code(t){let{schema:e,parentSchema:i,it:n}=t,{prefixItems:a}=i;n.items=!0,!(0,QW.alwaysValidSchema)(n,e)&&(a?(0,XW.validateAdditionalItems)(t,a):t.ok((0,YW.validateArray)(t)))}};kf.default=iB});var Qx=w(qf=>{"use strict";Object.defineProperty(qf,"__esModule",{value:!0});var hn=re(),sc=we(),nB={message:({params:{min:t,max:e}})=>e===void 0?(0,hn.str)`must contain at least ${t} valid item(s)`:(0,hn.str)`must contain at least ${t} and no more than ${e} valid item(s)`,params:({params:{min:t,max:e}})=>e===void 0?(0,hn._)`{minContains: ${t}}`:(0,hn._)`{minContains: ${t}, maxContains: ${e}}`},tB={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:nB,code(t){let{gen:e,schema:i,parentSchema:n,data:a,it:r}=t,s,o,{minContains:l,maxContains:u}=n;r.opts.next?(s=l===void 0?1:l,o=u):s=1;let c=e.const("len",(0,hn._)`${a}.length`);if(t.setParams({min:s,max:o}),o===void 0&&s===0){(0,sc.checkStrictMode)(r,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(o!==void 0&&s>o){(0,sc.checkStrictMode)(r,'"minContains" > "maxContains" is always invalid'),t.fail();return}if((0,sc.alwaysValidSchema)(r,i)){let m=(0,hn._)`${c} >= ${s}`;o!==void 0&&(m=(0,hn._)`${m} && ${c} <= ${o}`),t.pass(m);return}r.items=!0;let p=e.name("valid");o===void 0&&s===1?h(p,()=>e.if(p,()=>e.break())):s===0?(e.let(p,!0),o!==void 0&&e.if((0,hn._)`${a}.length > 0`,d)):(e.let(p,!1),d()),t.result(p,()=>t.reset());function d(){let m=e.name("_valid"),f=e.let("count",0);h(m,()=>e.if(m,()=>g(f)))}function h(m,f){e.forRange("i",0,c,v=>{t.subschema({keyword:"contains",dataProp:v,dataPropType:sc.Type.Num,compositeRule:!0},m),f()})}function g(m){e.code((0,hn._)`${m}++`),o===void 0?e.if((0,hn._)`${m} >= ${s}`,()=>e.assign(p,!0).break()):(e.if((0,hn._)`${m} > ${o}`,()=>e.assign(p,!1).break()),s===1?e.assign(p,!0):e.if((0,hn._)`${m} >= ${s}`,()=>e.assign(p,!0)))}}};qf.default=tB});var eT=w(Dn=>{"use strict";Object.defineProperty(Dn,"__esModule",{value:!0});Dn.validateSchemaDeps=Dn.validatePropertyDeps=Dn.error=void 0;var _f=re(),aB=we(),jo=pn();Dn.error={message:({params:{property:t,depsCount:e,deps:i}})=>{let n=e===1?"property":"properties";return(0,_f.str)`must have ${n} ${i} when property ${t} is present`},params:({params:{property:t,depsCount:e,deps:i,missingProperty:n}})=>(0,_f._)`{property: ${t}, missingProperty: ${n}, depsCount: ${e}, - deps: ${i}}`};var XW={keyword:"dependencies",type:"object",schemaType:"object",error:zn.error,code(t){let[e,i]=eB(t);Kx(t,e),Qx(t,i)}};function eB({schema:t}){let e={},i={};for(let n in t){if(n==="__proto__")continue;let a=Array.isArray(t[n])?e:i;a[n]=t[n]}return[e,i]}function Kx(t,e=t.schema){let{gen:i,data:n,it:a}=t;if(Object.keys(e).length===0)return;let r=i.let("missing");for(let s in e){let o=e[s];if(o.length===0)continue;let l=(0,yo.propertyInData)(i,n,s,a.opts.ownProperties);t.setParams({property:s,depsCount:o.length,deps:o.join(", ")}),a.allErrors?i.if(l,()=>{for(let u of o)(0,yo.checkReportMissingProp)(t,u)}):(i.if((0,kf._)`${l} && (${(0,yo.checkMissingProp)(t,o,r)})`),(0,yo.reportMissingProp)(t,r),i.else())}}zn.validatePropertyDeps=Kx;function Qx(t,e=t.schema){let{gen:i,data:n,keyword:a,it:r}=t,s=i.name("valid");for(let o in e)(0,YW.alwaysValidSchema)(r,e[o])||(i.if((0,yo.propertyInData)(i,n,o,r.opts.ownProperties),()=>{let l=t.subschema({keyword:a,schemaProp:o},s);t.mergeValidEvaluated(l,s)},()=>i.var(s,!0)),t.ok(s))}zn.validateSchemaDeps=Qx;zn.default=XW});var eT=w(qf=>{"use strict";Object.defineProperty(qf,"__esModule",{value:!0});var Xx=re(),iB=we(),nB={message:"property name must be valid",params:({params:t})=>(0,Xx._)`{propertyName: ${t.propertyName}}`},tB={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:nB,code(t){let{gen:e,schema:i,data:n,it:a}=t;if((0,iB.alwaysValidSchema)(a,i))return;let r=e.name("valid");e.forIn("key",n,s=>{t.setParams({propertyName:s}),t.subschema({keyword:"propertyNames",data:s,dataTypes:["string"],propertyName:s,compositeRule:!0},r),e.if((0,Xx.not)(r),()=>{t.error(!0),a.allErrors||e.break()})}),t.ok(r)}};qf.default=tB});var Hf=w(_f=>{"use strict";Object.defineProperty(_f,"__esModule",{value:!0});var sc=pn(),jn=re(),aB=st(),oc=we(),rB={message:"must NOT have additional properties",params:({params:t})=>(0,jn._)`{additionalProperty: ${t.additionalProperty}}`},sB={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:rB,code(t){let{gen:e,schema:i,parentSchema:n,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,oc.alwaysValidSchema)(s,i))return;let u=(0,sc.allSchemaProperties)(n.properties),c=(0,sc.allSchemaProperties)(n.patternProperties);p(),t.ok((0,jn._)`${r} === ${aB.default.errors}`);function p(){e.forIn("key",a,f=>{!u.length&&!c.length?g(f):e.if(d(f),()=>g(f))})}function d(f){let v;if(u.length>8){let y=(0,oc.schemaRefOrVal)(s,n.properties,"properties");v=(0,sc.isOwnProperty)(e,y,f)}else u.length?v=(0,jn.or)(...u.map(y=>(0,jn._)`${f} === ${y}`)):v=jn.nil;return c.length&&(v=(0,jn.or)(v,...c.map(y=>(0,jn._)`${(0,sc.usePattern)(t,y)}.test(${f})`))),(0,jn.not)(v)}function h(f){e.code((0,jn._)`delete ${a}[${f}]`)}function g(f){if(l.removeAdditional==="all"||l.removeAdditional&&i===!1){h(f);return}if(i===!1){t.setParams({additionalProperty:f}),t.error(),o||e.break();return}if(typeof i=="object"&&!(0,oc.alwaysValidSchema)(s,i)){let v=e.name("valid");l.removeAdditional==="failing"?(m(f,v,!1),e.if((0,jn.not)(v),()=>{t.reset(),h(f)})):(m(f,v),o||e.if((0,jn.not)(v),()=>e.break()))}}function m(f,v,y){let A={keyword:"additionalProperties",dataProp:f,dataPropType:oc.Type.Str};y===!1&&Object.assign(A,{compositeRule:!0,createErrors:!1,allErrors:!1}),t.subschema(A,v)}}};_f.default=sB});var tT=w(If=>{"use strict";Object.defineProperty(If,"__esModule",{value:!0});var oB=oo(),iT=pn(),Rf=we(),nT=Hf(),lB={keyword:"properties",type:"object",schemaType:"object",code(t){let{gen:e,schema:i,parentSchema:n,data:a,it:r}=t;r.opts.removeAdditional==="all"&&n.additionalProperties===void 0&&nT.default.code(new oB.KeywordCxt(r,nT.default,"additionalProperties"));let s=(0,iT.allSchemaProperties)(i);for(let p of s)r.definedProperties.add(p);r.opts.unevaluated&&s.length&&r.props!==!0&&(r.props=Rf.mergeEvaluated.props(e,(0,Rf.toHash)(s),r.props));let o=s.filter(p=>!(0,Rf.alwaysValidSchema)(r,i[p]));if(o.length===0)return;let l=e.name("valid");for(let p of o)u(p)?c(p):(e.if((0,iT.propertyInData)(e,a,p,r.opts.ownProperties)),c(p),r.allErrors||e.else().var(l,!0),e.endIf()),t.it.definedProperties.add(p),t.ok(l);function u(p){return r.opts.useDefaults&&!r.compositeRule&&i[p].default!==void 0}function c(p){t.subschema({keyword:"properties",schemaProp:p,dataProp:p},l)}}};If.default=lB});var oT=w(zf=>{"use strict";Object.defineProperty(zf,"__esModule",{value:!0});var aT=pn(),lc=re(),rT=we(),sT=we(),uB={keyword:"patternProperties",type:"object",schemaType:"object",code(t){let{gen:e,schema:i,data:n,parentSchema:a,it:r}=t,{opts:s}=r,o=(0,aT.allSchemaProperties)(i),l=o.filter(m=>(0,rT.alwaysValidSchema)(r,i[m]));if(o.length===0||l.length===o.length&&(!r.opts.unevaluated||r.props===!0))return;let u=s.strictSchema&&!s.allowMatchingProperties&&a.properties,c=e.name("valid");r.props!==!0&&!(r.props instanceof lc.Name)&&(r.props=(0,sT.evaluatedPropsToName)(e,r.props));let{props:p}=r;d();function d(){for(let m of o)u&&h(m),r.allErrors?g(m):(e.var(c,!0),g(m),e.if(c))}function h(m){for(let f in u)new RegExp(m).test(f)&&(0,rT.checkStrictMode)(r,`property ${f} matches pattern ${m} (use allowMatchingProperties)`)}function g(m){e.forIn("key",n,f=>{e.if((0,lc._)`${(0,aT.usePattern)(t,m)}.test(${f})`,()=>{let v=l.includes(m);v||t.subschema({keyword:"patternProperties",schemaProp:m,dataProp:f,dataPropType:sT.Type.Str},c),r.opts.unevaluated&&p!==!0?e.assign((0,lc._)`${p}[${f}]`,!0):!v&&!r.allErrors&&e.if((0,lc.not)(c),()=>e.break())})})}}};zf.default=uB});var lT=w(Df=>{"use strict";Object.defineProperty(Df,"__esModule",{value:!0});var cB=we(),pB={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(t){let{gen:e,schema:i,it:n}=t;if((0,cB.alwaysValidSchema)(n,i)){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"}};Df.default=pB});var uT=w(Gf=>{"use strict";Object.defineProperty(Gf,"__esModule",{value:!0});var dB=pn(),hB={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:dB.validateUnion,error:{message:"must match a schema in anyOf"}};Gf.default=hB});var cT=w($f=>{"use strict";Object.defineProperty($f,"__esModule",{value:!0});var uc=re(),gB=we(),mB={message:"must match exactly one schema in oneOf",params:({params:t})=>(0,uc._)`{passingSchemas: ${t.passing}}`},fB={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:mB,code(t){let{gen:e,schema:i,parentSchema:n,it:a}=t;if(!Array.isArray(i))throw new Error("ajv implementation error");if(a.opts.discriminator&&n.discriminator)return;let r=i,s=e.let("valid",!1),o=e.let("passing",null),l=e.name("_valid");t.setParams({passing:o}),e.block(u),t.result(s,()=>t.reset(),()=>t.error(!0));function u(){r.forEach((c,p)=>{let d;(0,gB.alwaysValidSchema)(a,c)?e.var(l,!0):d=t.subschema({keyword:"oneOf",schemaProp:p,compositeRule:!0},l),p>0&&e.if((0,uc._)`${l} && ${s}`).assign(s,!1).assign(o,(0,uc._)`[${o}, ${p}]`).else(),e.if(l,()=>{e.assign(s,!0),e.assign(o,p),d&&t.mergeEvaluated(d,uc.Name)})})}}};$f.default=fB});var pT=w(Nf=>{"use strict";Object.defineProperty(Nf,"__esModule",{value:!0});var wB=we(),vB={keyword:"allOf",schemaType:"array",code(t){let{gen:e,schema:i,it:n}=t;if(!Array.isArray(i))throw new Error("ajv implementation error");let a=e.name("valid");i.forEach((r,s)=>{if((0,wB.alwaysValidSchema)(n,r))return;let o=t.subschema({keyword:"allOf",schemaProp:s},a);t.ok(a),t.mergeEvaluated(o)})}};Nf.default=vB});var gT=w(Uf=>{"use strict";Object.defineProperty(Uf,"__esModule",{value:!0});var cc=re(),hT=we(),CB={message:({params:t})=>(0,cc.str)`must match "${t.ifClause}" schema`,params:({params:t})=>(0,cc._)`{failingKeyword: ${t.ifClause}}`},AB={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:CB,code(t){let{gen:e,parentSchema:i,it:n}=t;i.then===void 0&&i.else===void 0&&(0,hT.checkStrictMode)(n,'"if" without "then" and "else" is ignored');let a=dT(n,"then"),r=dT(n,"else");if(!a&&!r)return;let s=e.let("valid",!0),o=e.name("_valid");if(l(),t.reset(),a&&r){let c=e.let("ifClause");t.setParams({ifClause:c}),e.if(o,u("then",c),u("else",c))}else a?e.if(o,u("then")):e.if((0,cc.not)(o),u("else"));t.pass(s,()=>t.error(!0));function l(){let c=t.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},o);t.mergeEvaluated(c)}function u(c,p){return()=>{let d=t.subschema({keyword:c},o);e.assign(s,o),t.mergeValidEvaluated(d,s),p?e.assign(p,(0,cc._)`${c}`):t.setParams({ifClause:c})}}}};function dT(t,e){let i=t.schema[e];return i!==void 0&&!(0,hT.alwaysValidSchema)(t,i)}Uf.default=AB});var mT=w(Lf=>{"use strict";Object.defineProperty(Lf,"__esModule",{value:!0});var bB=we(),yB={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:t,parentSchema:e,it:i}){e.if===void 0&&(0,bB.checkStrictMode)(i,`"${t}" without "if" is ignored`)}};Lf.default=yB});var fT=w(Wf=>{"use strict";Object.defineProperty(Wf,"__esModule",{value:!0});var PB=Of(),jB=Fx(),SB=xf(),OB=Jx(),xB=Zx(),TB=Yx(),MB=eT(),EB=Hf(),kB=tT(),qB=oT(),_B=lT(),HB=uT(),RB=cT(),IB=pT(),zB=gT(),DB=mT();function GB(t=!1){let e=[_B.default,HB.default,RB.default,IB.default,zB.default,DB.default,MB.default,EB.default,TB.default,kB.default,qB.default];return t?e.push(jB.default,OB.default):e.push(PB.default,SB.default),e.push(xB.default),e}Wf.default=GB});var wT=w(Bf=>{"use strict";Object.defineProperty(Bf,"__esModule",{value:!0});var ii=re(),$B={message:({schemaCode:t})=>(0,ii.str)`must match format "${t}"`,params:({schemaCode:t})=>(0,ii._)`{format: ${t}}`},NB={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:$B,code(t,e){let{gen:i,data:n,$data:a,schema:r,schemaCode:s,it:o}=t,{opts:l,errSchemaPath:u,schemaEnv:c,self:p}=o;if(!l.validateFormats)return;a?d():h();function d(){let g=i.scopeValue("formats",{ref:p.formats,code:l.code.formats}),m=i.const("fDef",(0,ii._)`${g}[${s}]`),f=i.let("fType"),v=i.let("format");i.if((0,ii._)`typeof ${m} == "object" && !(${m} instanceof RegExp)`,()=>i.assign(f,(0,ii._)`${m}.type || "string"`).assign(v,(0,ii._)`${m}.validate`),()=>i.assign(f,(0,ii._)`"string"`).assign(v,m)),t.fail$data((0,ii.or)(y(),A()));function y(){return l.strictSchema===!1?ii.nil:(0,ii._)`${s} && !${v}`}function A(){let b=c.$async?(0,ii._)`(${m}.async ? await ${v}(${n}) : ${v}(${n}))`:(0,ii._)`${v}(${n})`,O=(0,ii._)`(typeof ${v} == "function" ? ${b} : ${v}.test(${n}))`;return(0,ii._)`${v} && ${v} !== true && ${f} === ${e} && !${O}`}}function h(){let g=p.formats[r];if(!g){y();return}if(g===!0)return;let[m,f,v]=A(g);m===e&&t.pass(b());function y(){if(l.strictSchema===!1){p.logger.warn(O());return}throw new Error(O());function O(){return`unknown format "${r}" ignored in schema at path "${u}"`}}function A(O){let $=O instanceof RegExp?(0,ii.regexpCode)(O):l.code.formats?(0,ii._)`${l.code.formats}${(0,ii.getProperty)(r)}`:void 0,N=i.scopeValue("formats",{key:r,ref:O,code:$});return typeof O=="object"&&!(O instanceof RegExp)?[O.type||"string",O.validate,(0,ii._)`${N}.validate`]:["string",O,N]}function b(){if(typeof g=="object"&&!(g instanceof RegExp)&&g.async){if(!c.$async)throw new Error("async format in sync schema");return(0,ii._)`await ${v}(${n})`}return typeof f=="function"?(0,ii._)`${v}(${n})`:(0,ii._)`${v}.test(${n})`}}}};Bf.default=NB});var vT=w(Ff=>{"use strict";Object.defineProperty(Ff,"__esModule",{value:!0});var UB=wT(),LB=[UB.default];Ff.default=LB});var CT=w(kr=>{"use strict";Object.defineProperty(kr,"__esModule",{value:!0});kr.contentVocabulary=kr.metadataVocabulary=void 0;kr.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"];kr.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]});var bT=w(Vf=>{"use strict";Object.defineProperty(Vf,"__esModule",{value:!0});var WB=Tx(),BB=Ux(),FB=fT(),VB=vT(),AT=CT(),JB=[WB.default,BB.default,(0,FB.default)(),VB.default,AT.metadataVocabulary,AT.contentVocabulary];Vf.default=JB});var PT=w(pc=>{"use strict";Object.defineProperty(pc,"__esModule",{value:!0});pc.DiscrError=void 0;var yT;(function(t){t.Tag="tag",t.Mapping="mapping"})(yT||(pc.DiscrError=yT={}))});var ST=w(Zf=>{"use strict";Object.defineProperty(Zf,"__esModule",{value:!0});var qr=re(),Jf=PT(),jT=Ju(),ZB=lo(),KB=we(),QB={message:({params:{discrError:t,tagName:e}})=>t===Jf.DiscrError.Tag?`tag "${e}" must be string`:`value of tag "${e}" must be in oneOf`,params:({params:{discrError:t,tag:e,tagName:i}})=>(0,qr._)`{error: ${t}, tag: ${i}, tagValue: ${e}}`},YB={keyword:"discriminator",type:"object",schemaType:"object",error:QB,code(t){let{gen:e,data:i,schema:n,parentSchema:a,it:r}=t,{oneOf:s}=a;if(!r.opts.discriminator)throw new Error("discriminator: requires discriminator option");let o=n.propertyName;if(typeof o!="string")throw new Error("discriminator: requires propertyName");if(n.mapping)throw new Error("discriminator: mapping is not supported");if(!s)throw new Error("discriminator: requires oneOf keyword");let l=e.let("valid",!1),u=e.const("tag",(0,qr._)`${i}${(0,qr.getProperty)(o)}`);e.if((0,qr._)`typeof ${u} == "string"`,()=>c(),()=>t.error(!1,{discrError:Jf.DiscrError.Tag,tag:u,tagName:o})),t.ok(l);function c(){let h=d();e.if(!1);for(let g in h)e.elseIf((0,qr._)`${u} === ${g}`),e.assign(l,p(h[g]));e.else(),t.error(!1,{discrError:Jf.DiscrError.Mapping,tag:u,tagName:o}),e.endIf()}function p(h){let g=e.name("valid"),m=t.subschema({keyword:"oneOf",schemaProp:h},g);return t.mergeEvaluated(m,qr.Name),g}function d(){var h;let g={},m=v(a),f=!0;for(let b=0;b{XB.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 Qf=w((Ue,Kf)=>{"use strict";Object.defineProperty(Ue,"__esModule",{value:!0});Ue.MissingRefError=Ue.ValidationError=Ue.CodeGen=Ue.Name=Ue.nil=Ue.stringify=Ue.str=Ue._=Ue.KeywordCxt=Ue.Ajv=void 0;var eF=yx(),iF=bT(),nF=ST(),xT=OT(),tF=["/properties"],dc="http://json-schema.org/draft-07/schema",_r=class extends eF.default{_addVocabularies(){super._addVocabularies(),iF.default.forEach(e=>this.addVocabulary(e)),this.opts.discriminator&&this.addKeyword(nF.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;let e=this.opts.$data?this.$dataMetaSchema(xT,tF):xT;this.addMetaSchema(e,dc,!1),this.refs["http://json-schema.org/schema"]=dc}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(dc)?dc:void 0)}};Ue.Ajv=_r;Kf.exports=Ue=_r;Kf.exports.Ajv=_r;Object.defineProperty(Ue,"__esModule",{value:!0});Ue.default=_r;var aF=oo();Object.defineProperty(Ue,"KeywordCxt",{enumerable:!0,get:function(){return aF.KeywordCxt}});var Hr=re();Object.defineProperty(Ue,"_",{enumerable:!0,get:function(){return Hr._}});Object.defineProperty(Ue,"str",{enumerable:!0,get:function(){return Hr.str}});Object.defineProperty(Ue,"stringify",{enumerable:!0,get:function(){return Hr.stringify}});Object.defineProperty(Ue,"nil",{enumerable:!0,get:function(){return Hr.nil}});Object.defineProperty(Ue,"Name",{enumerable:!0,get:function(){return Hr.Name}});Object.defineProperty(Ue,"CodeGen",{enumerable:!0,get:function(){return Hr.CodeGen}});var rF=Fu();Object.defineProperty(Ue,"ValidationError",{enumerable:!0,get:function(){return rF.default}});var sF=lo();Object.defineProperty(Ue,"MissingRefError",{enumerable:!0,get:function(){return sF.default}})});var RT=w(Gn=>{"use strict";Object.defineProperty(Gn,"__esModule",{value:!0});Gn.formatNames=Gn.fastFormats=Gn.fullFormats=void 0;function Dn(t,e){return{validate:t,compare:e}}Gn.fullFormats={date:Dn(kT,iw),time:Dn(Xf(!0),nw),"date-time":Dn(TT(!0),_T),"iso-time":Dn(Xf(),qT),"iso-date-time":Dn(TT(),HT),duration:/^P(?!$)((\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?|(\d+W)?)$/,uri:dF,"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:CF,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:hF,int32:{type:"number",validate:fF},int64:{type:"number",validate:wF},float:{type:"number",validate:ET},double:{type:"number",validate:ET},password:!0,binary:!0};Gn.fastFormats={...Gn.fullFormats,date:Dn(/^\d\d\d\d-[0-1]\d-[0-3]\d$/,iw),time:Dn(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,nw),"date-time":Dn(/^\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,_T),"iso-time":Dn(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,qT),"iso-date-time":Dn(/^\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,HT),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};Gn.formatNames=Object.keys(Gn.fullFormats);function oF(t){return t%4===0&&(t%100!==0||t%400===0)}var lF=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,uF=[0,31,28,31,30,31,30,31,31,30,31,30,31];function kT(t){let e=lF.exec(t);if(!e)return!1;let i=+e[1],n=+e[2],a=+e[3];return n>=1&&n<=12&&a>=1&&a<=(n===2&&oF(i)?29:uF[n])}function iw(t,e){if(t&&e)return t>e?1:t23||c>59||t&&!o)return!1;if(a<=23&&r<=59&&s<60)return!0;let p=r-c*l,d=a-u*l-(p<0?1:0);return(d===23||d===-1)&&(p===59||p===-1)&&s<61}}function nw(t,e){if(!(t&&e))return;let i=new Date("2020-01-01T"+t).valueOf(),n=new Date("2020-01-01T"+e).valueOf();if(i&&n)return i-n}function qT(t,e){if(!(t&&e))return;let i=Yf.exec(t),n=Yf.exec(e);if(i&&n)return t=i[1]+i[2]+i[3],e=n[1]+n[2]+n[3],t>e?1:t=gF}function wF(t){return Number.isInteger(t)}function ET(){return!0}var vF=/[^\\]\\Z/;function CF(t){if(vF.test(t))return!1;try{return new RegExp(t),!0}catch{return!1}}});var IT=w(Rr=>{"use strict";Object.defineProperty(Rr,"__esModule",{value:!0});Rr.formatLimitDefinition=void 0;var AF=Qf(),Sn=re(),Ht=Sn.operators,hc={formatMaximum:{okStr:"<=",ok:Ht.LTE,fail:Ht.GT},formatMinimum:{okStr:">=",ok:Ht.GTE,fail:Ht.LT},formatExclusiveMaximum:{okStr:"<",ok:Ht.LT,fail:Ht.GTE},formatExclusiveMinimum:{okStr:">",ok:Ht.GT,fail:Ht.LTE}},bF={message:({keyword:t,schemaCode:e})=>(0,Sn.str)`should be ${hc[t].okStr} ${e}`,params:({keyword:t,schemaCode:e})=>(0,Sn._)`{comparison: ${hc[t].okStr}, limit: ${e}}`};Rr.formatLimitDefinition={keyword:Object.keys(hc),type:"string",schemaType:"string",$data:!0,error:bF,code(t){let{gen:e,data:i,schemaCode:n,keyword:a,it:r}=t,{opts:s,self:o}=r;if(!s.validateFormats)return;let l=new AF.KeywordCxt(r,o.RULES.all.format.definition,"format");l.$data?u():c();function u(){let d=e.scopeValue("formats",{ref:o.formats,code:s.code.formats}),h=e.const("fmt",(0,Sn._)`${d}[${l.schemaCode}]`);t.fail$data((0,Sn.or)((0,Sn._)`typeof ${h} != "object"`,(0,Sn._)`${h} instanceof RegExp`,(0,Sn._)`typeof ${h}.compare != "function"`,p(h)))}function c(){let d=l.schema,h=o.formats[d];if(!h||h===!0)return;if(typeof h!="object"||h instanceof RegExp||typeof h.compare!="function")throw new Error(`"${a}": format "${d}" does not define "compare" function`);let g=e.scopeValue("formats",{key:d,ref:h,code:s.code.formats?(0,Sn._)`${s.code.formats}${(0,Sn.getProperty)(d)}`:void 0});t.fail$data(p(g))}function p(d){return(0,Sn._)`${d}.compare(${i}, ${n}) ${hc[a].fail} 0`}},dependencies:["format"]};var yF=t=>(t.addKeyword(Rr.formatLimitDefinition),t);Rr.default=yF});var $T=w((Po,GT)=>{"use strict";Object.defineProperty(Po,"__esModule",{value:!0});var Ir=RT(),PF=IT(),tw=re(),zT=new tw.Name("fullFormats"),jF=new tw.Name("fastFormats"),aw=(t,e={keywords:!0})=>{if(Array.isArray(e))return DT(t,e,Ir.fullFormats,zT),t;let[i,n]=e.mode==="fast"?[Ir.fastFormats,jF]:[Ir.fullFormats,zT],a=e.formats||Ir.formatNames;return DT(t,a,i,n),e.keywords&&(0,PF.default)(t),t};aw.get=(t,e="full")=>{let n=(e==="fast"?Ir.fastFormats:Ir.fullFormats)[t];if(!n)throw new Error(`Unknown format "${t}"`);return n};function DT(t,e,i,n){var a,r;(a=(r=t.opts.code).formats)!==null&&a!==void 0||(r.formats=(0,tw._)`require("ajv-formats/dist/formats").${n}`);for(let s of e)t.addFormat(s,i[s])}GT.exports=Po=aw;Object.defineProperty(Po,"__esModule",{value:!0});Po.default=aw});var iM=w((Kre,eM)=>{var XT=require("stream").Stream,qF=require("util");eM.exports=On;function On(){this.source=null,this.dataSize=0,this.maxDataSize=1024*1024,this.pauseStream=!0,this._maxDataSizeExceeded=!1,this._released=!1,this._bufferedEvents=[]}qF.inherits(On,XT);On.create=function(t,e){var i=new this;e=e||{};for(var n in e)i[n]=e[n];i.source=t;var a=t.emit;return t.emit=function(){return i._handleEmit(arguments),a.apply(t,arguments)},t.on("error",function(){}),i.pauseStream&&t.pause(),i};Object.defineProperty(On.prototype,"readable",{configurable:!0,enumerable:!0,get:function(){return this.source.readable}});On.prototype.setEncoding=function(){return this.source.setEncoding.apply(this.source,arguments)};On.prototype.resume=function(){this._released||this.release(),this.source.resume()};On.prototype.pause=function(){this.source.pause()};On.prototype.release=function(){this._released=!0,this._bufferedEvents.forEach(function(t){this.emit.apply(this,t)}.bind(this)),this._bufferedEvents=[]};On.prototype.pipe=function(){var t=XT.prototype.pipe.apply(this,arguments);return this.resume(),t};On.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)};On.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 rM=w((Qre,aM)=>{var _F=require("util"),tM=require("stream").Stream,nM=iM();aM.exports=Ke;function Ke(){this.writable=!1,this.readable=!0,this.dataSize=0,this.maxDataSize=2*1024*1024,this.pauseStreams=!0,this._released=!1,this._streams=[],this._currentStream=null,this._insideLoop=!1,this._pendingNext=!1}_F.inherits(Ke,tM);Ke.create=function(t){var e=new this;t=t||{};for(var i in t)e[i]=t[i];return e};Ke.isStreamLike=function(t){return typeof t!="function"&&typeof t!="string"&&typeof t!="boolean"&&typeof t!="number"&&!Buffer.isBuffer(t)};Ke.prototype.append=function(t){var e=Ke.isStreamLike(t);if(e){if(!(t instanceof nM)){var i=nM.create(t,{maxDataSize:1/0,pauseStream:this.pauseStreams});t.on("data",this._checkDataSize.bind(this)),t=i}this._handleErrors(t),this.pauseStreams&&t.pause()}return this._streams.push(t),this};Ke.prototype.pipe=function(t,e){return tM.prototype.pipe.call(this,t,e),this.resume(),t};Ke.prototype._getNext=function(){if(this._currentStream=null,this._insideLoop){this._pendingNext=!0;return}this._insideLoop=!0;try{do this._pendingNext=!1,this._realGetNext();while(this._pendingNext)}finally{this._insideLoop=!1}};Ke.prototype._realGetNext=function(){var t=this._streams.shift();if(typeof t>"u"){this.end();return}if(typeof t!="function"){this._pipeNext(t);return}var e=t;e(function(i){var n=Ke.isStreamLike(i);n&&(i.on("data",this._checkDataSize.bind(this)),this._handleErrors(i)),this._pipeNext(i)}.bind(this))};Ke.prototype._pipeNext=function(t){this._currentStream=t;var e=Ke.isStreamLike(t);if(e){t.on("end",this._getNext.bind(this)),t.pipe(this,{end:!1});return}var i=t;this.write(i),this._getNext()};Ke.prototype._handleErrors=function(t){var e=this;t.on("error",function(i){e._emitError(i)})};Ke.prototype.write=function(t){this.emit("data",t)};Ke.prototype.pause=function(){this.pauseStreams&&(this.pauseStreams&&this._currentStream&&typeof this._currentStream.pause=="function"&&this._currentStream.pause(),this.emit("pause"))};Ke.prototype.resume=function(){this._released||(this._released=!0,this.writable=!0,this._getNext()),this.pauseStreams&&this._currentStream&&typeof this._currentStream.resume=="function"&&this._currentStream.resume(),this.emit("resume")};Ke.prototype.end=function(){this._reset(),this.emit("end")};Ke.prototype.destroy=function(){this._reset(),this.emit("close")};Ke.prototype._reset=function(){this.writable=!1,this._streams=[],this._currentStream=null};Ke.prototype._checkDataSize=function(){if(this._updateDataSize(),!(this.dataSize<=this.maxDataSize)){var t="DelayedStream#maxDataSize of "+this.maxDataSize+" bytes exceeded.";this._emitError(new Error(t))}};Ke.prototype._updateDataSize=function(){this.dataSize=0;var t=this;this._streams.forEach(function(e){e.dataSize&&(t.dataSize+=e.dataSize)}),this._currentStream&&this._currentStream.dataSize&&(this.dataSize+=this._currentStream.dataSize)};Ke.prototype._emitError=function(t){this._reset(),this.emit("error",t)}});var sM=w((Yre,HF)=>{HF.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 lM=w((Xre,oM)=>{oM.exports=sM()});var pM=w(Wi=>{"use strict";var bc=lM(),RF=require("path").extname,uM=/^\s*([^;\s]*)(?:;|\s|$)/,IF=/^text\//i;Wi.charset=cM;Wi.charsets={lookup:cM};Wi.contentType=zF;Wi.extension=DF;Wi.extensions=Object.create(null);Wi.lookup=GF;Wi.types=Object.create(null);$F(Wi.extensions,Wi.types);function cM(t){if(!t||typeof t!="string")return!1;var e=uM.exec(t),i=e&&bc[e[1].toLowerCase()];return i&&i.charset?i.charset:e&&IF.test(e[1])?"UTF-8":!1}function zF(t){if(!t||typeof t!="string")return!1;var e=t.indexOf("/")===-1?Wi.lookup(t):t;if(!e)return!1;if(e.indexOf("charset")===-1){var i=Wi.charset(e);i&&(e+="; charset="+i.toLowerCase())}return e}function DF(t){if(!t||typeof t!="string")return!1;var e=uM.exec(t),i=e&&Wi.extensions[e[1].toLowerCase()];return!i||!i.length?!1:i[0]}function GF(t){if(!t||typeof t!="string")return!1;var e=RF("x."+t).toLowerCase().substr(1);return e&&Wi.types[e]||!1}function $F(t,e){var i=["nginx","apache",void 0,"iana"];Object.keys(bc).forEach(function(a){var r=bc[a],s=r.extensions;if(!(!s||!s.length)){t[a]=s;for(var o=0;oc||u===c&&e[l].substr(0,12)==="application/"))continue}e[l]=a}}})}});var hM=w((ise,dM)=>{dM.exports=NF;function NF(t){var e=typeof setImmediate=="function"?setImmediate:typeof process=="object"&&typeof process.nextTick=="function"?process.nextTick:null;e?e(t):setTimeout(t,0)}});var uw=w((nse,mM)=>{var gM=hM();mM.exports=UF;function UF(t){var e=!1;return gM(function(){e=!0}),function(n,a){e?t(n,a):gM(function(){t(n,a)})}}});var cw=w((tse,fM)=>{fM.exports=LF;function LF(t){Object.keys(t.jobs).forEach(WF.bind(t)),t.jobs={}}function WF(t){typeof this.jobs[t]=="function"&&this.jobs[t]()}});var pw=w((ase,vM)=>{var wM=uw(),BF=cw();vM.exports=FF;function FF(t,e,i,n){var a=i.keyedList?i.keyedList[i.index]:i.index;i.jobs[a]=VF(e,a,t[a],function(r,s){a in i.jobs&&(delete i.jobs[a],r?BF(i):i.results[a]=s,n(r,i.results))})}function VF(t,e,i,n){var a;return t.length==2?a=t(i,wM(n)):a=t(i,e,wM(n)),a}});var dw=w((rse,CM)=>{CM.exports=JF;function JF(t,e){var i=!Array.isArray(t),n={index:0,keyedList:i||e?Object.keys(t):null,jobs:{},results:i?{}:[],size:i?Object.keys(t).length:t.length};return e&&n.keyedList.sort(i?e:function(a,r){return e(t[a],t[r])}),n}});var hw=w((sse,AM)=>{var ZF=cw(),KF=uw();AM.exports=QF;function QF(t){Object.keys(this.jobs).length&&(this.index=this.size,ZF(this),KF(t)(null,this.results))}});var yM=w((ose,bM)=>{var YF=pw(),XF=dw(),eV=hw();bM.exports=iV;function iV(t,e,i){for(var n=XF(t);n.index<(n.keyedList||t).length;)YF(t,e,n,function(a,r){if(a){i(a,r);return}if(Object.keys(n.jobs).length===0){i(null,n.results);return}}),n.index++;return eV.bind(n,i)}});var gw=w((lse,yc)=>{var PM=pw(),nV=dw(),tV=hw();yc.exports=aV;yc.exports.ascending=jM;yc.exports.descending=rV;function aV(t,e,i,n){var a=nV(t,i);return PM(t,e,a,function r(s,o){if(s){n(s,o);return}if(a.index++,a.index<(a.keyedList||t).length){PM(t,e,a,r);return}n(null,a.results)}),tV.bind(a,n)}function jM(t,e){return te?1:0}function rV(t,e){return-1*jM(t,e)}});var OM=w((use,SM)=>{var sV=gw();SM.exports=oV;function oV(t,e,i){return sV(t,e,null,i)}});var TM=w((cse,xM)=>{xM.exports={parallel:yM(),serial:OM(),serialOrdered:gw()}});var mw=w((pse,MM)=>{"use strict";MM.exports=Object});var kM=w((dse,EM)=>{"use strict";EM.exports=Error});var _M=w((hse,qM)=>{"use strict";qM.exports=EvalError});var RM=w((gse,HM)=>{"use strict";HM.exports=RangeError});var zM=w((mse,IM)=>{"use strict";IM.exports=ReferenceError});var GM=w((fse,DM)=>{"use strict";DM.exports=SyntaxError});var It=w((wse,$M)=>{"use strict";$M.exports=TypeError});var UM=w((vse,NM)=>{"use strict";NM.exports=URIError});var WM=w((Cse,LM)=>{"use strict";LM.exports=Math.abs});var FM=w((Ase,BM)=>{"use strict";BM.exports=Math.floor});var JM=w((bse,VM)=>{"use strict";VM.exports=Math.max});var KM=w((yse,ZM)=>{"use strict";ZM.exports=Math.min});var YM=w((Pse,QM)=>{"use strict";QM.exports=Math.pow});var eE=w((jse,XM)=>{"use strict";XM.exports=Math.round});var nE=w((Sse,iE)=>{"use strict";iE.exports=Number.isNaN||function(e){return e!==e}});var aE=w((Ose,tE)=>{"use strict";var lV=nE();tE.exports=function(e){return lV(e)||e===0?e:e<0?-1:1}});var sE=w((xse,rE)=>{"use strict";rE.exports=Object.getOwnPropertyDescriptor});var fw=w((Tse,oE)=>{"use strict";var Pc=sE();if(Pc)try{Pc([],"length")}catch{Pc=null}oE.exports=Pc});var uE=w((Mse,lE)=>{"use strict";var jc=Object.defineProperty||!1;if(jc)try{jc({},"a",{value:1})}catch{jc=!1}lE.exports=jc});var ww=w((Ese,cE)=>{"use strict";cE.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var e={},i=Symbol("test"),n=Object(i);if(typeof i=="string"||Object.prototype.toString.call(i)!=="[object Symbol]"||Object.prototype.toString.call(n)!=="[object Symbol]")return!1;var a=42;e[i]=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]!==i||!Object.prototype.propertyIsEnumerable.call(e,i))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var o=Object.getOwnPropertyDescriptor(e,i);if(o.value!==a||o.enumerable!==!0)return!1}return!0}});var hE=w((kse,dE)=>{"use strict";var pE=typeof Symbol<"u"&&Symbol,uV=ww();dE.exports=function(){return typeof pE!="function"||typeof Symbol!="function"||typeof pE("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:uV()}});var vw=w((qse,gE)=>{"use strict";gE.exports=typeof Reflect<"u"&&Reflect.getPrototypeOf||null});var Cw=w((_se,mE)=>{"use strict";var cV=mw();mE.exports=cV.getPrototypeOf||null});var vE=w((Hse,wE)=>{"use strict";var pV="Function.prototype.bind called on incompatible ",dV=Object.prototype.toString,hV=Math.max,gV="[object Function]",fE=function(e,i){for(var n=[],a=0;a{"use strict";var wV=vE();CE.exports=Function.prototype.bind||wV});var Sc=w((Ise,AE)=>{"use strict";AE.exports=Function.prototype.call});var Aw=w((zse,bE)=>{"use strict";bE.exports=Function.prototype.apply});var PE=w((Dse,yE)=>{"use strict";yE.exports=typeof Reflect<"u"&&Reflect&&Reflect.apply});var SE=w((Gse,jE)=>{"use strict";var vV=So(),CV=Aw(),AV=Sc(),bV=PE();jE.exports=bV||vV.call(AV,CV)});var bw=w(($se,OE)=>{"use strict";var yV=So(),PV=It(),jV=Sc(),SV=SE();OE.exports=function(e){if(e.length<1||typeof e[0]!="function")throw new PV("a function is required");return SV(yV,jV,e)}});var qE=w((Nse,kE)=>{"use strict";var OV=bw(),xE=fw(),ME;try{ME=[].__proto__===Array.prototype}catch(t){if(!t||typeof t!="object"||!("code"in t)||t.code!=="ERR_PROTO_ACCESS")throw t}var yw=!!ME&&xE&&xE(Object.prototype,"__proto__"),EE=Object,TE=EE.getPrototypeOf;kE.exports=yw&&typeof yw.get=="function"?OV([yw.get]):typeof TE=="function"?function(e){return TE(e==null?e:EE(e))}:!1});var zE=w((Use,IE)=>{"use strict";var _E=vw(),HE=Cw(),RE=qE();IE.exports=_E?function(e){return _E(e)}:HE?function(e){if(!e||typeof e!="object"&&typeof e!="function")throw new TypeError("getProto: not an object");return HE(e)}:RE?function(e){return RE(e)}:null});var Oc=w((Lse,DE)=>{"use strict";var xV=Function.prototype.call,TV=Object.prototype.hasOwnProperty,MV=So();DE.exports=MV.call(xV,TV)});var Mo=w((Wse,WE)=>{"use strict";var pe,EV=mw(),kV=kM(),qV=_M(),_V=RM(),HV=zM(),$r=GM(),Gr=It(),RV=UM(),IV=WM(),zV=FM(),DV=JM(),GV=KM(),$V=YM(),NV=eE(),UV=aE(),UE=Function,Pw=function(t){try{return UE('"use strict"; return ('+t+").constructor;")()}catch{}},Oo=fw(),LV=uE(),jw=function(){throw new Gr},WV=Oo?(function(){try{return arguments.callee,jw}catch{try{return Oo(arguments,"callee").get}catch{return jw}}})():jw,zr=hE()(),gi=zE(),BV=Cw(),FV=vw(),LE=Aw(),xo=Sc(),Dr={},VV=typeof Uint8Array>"u"||!gi?pe:gi(Uint8Array),Ma={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?pe:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?pe:ArrayBuffer,"%ArrayIteratorPrototype%":zr&&gi?gi([][Symbol.iterator]()):pe,"%AsyncFromSyncIteratorPrototype%":pe,"%AsyncFunction%":Dr,"%AsyncGenerator%":Dr,"%AsyncGeneratorFunction%":Dr,"%AsyncIteratorPrototype%":Dr,"%Atomics%":typeof Atomics>"u"?pe:Atomics,"%BigInt%":typeof BigInt>"u"?pe:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?pe:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?pe:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?pe:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":kV,"%eval%":eval,"%EvalError%":qV,"%Float16Array%":typeof Float16Array>"u"?pe:Float16Array,"%Float32Array%":typeof Float32Array>"u"?pe:Float32Array,"%Float64Array%":typeof Float64Array>"u"?pe:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?pe:FinalizationRegistry,"%Function%":UE,"%GeneratorFunction%":Dr,"%Int8Array%":typeof Int8Array>"u"?pe:Int8Array,"%Int16Array%":typeof Int16Array>"u"?pe:Int16Array,"%Int32Array%":typeof Int32Array>"u"?pe:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":zr&&gi?gi(gi([][Symbol.iterator]())):pe,"%JSON%":typeof JSON=="object"?JSON:pe,"%Map%":typeof Map>"u"?pe:Map,"%MapIteratorPrototype%":typeof Map>"u"||!zr||!gi?pe:gi(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":EV,"%Object.getOwnPropertyDescriptor%":Oo,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?pe:Promise,"%Proxy%":typeof Proxy>"u"?pe:Proxy,"%RangeError%":_V,"%ReferenceError%":HV,"%Reflect%":typeof Reflect>"u"?pe:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?pe:Set,"%SetIteratorPrototype%":typeof Set>"u"||!zr||!gi?pe:gi(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?pe:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":zr&&gi?gi(""[Symbol.iterator]()):pe,"%Symbol%":zr?Symbol:pe,"%SyntaxError%":$r,"%ThrowTypeError%":WV,"%TypedArray%":VV,"%TypeError%":Gr,"%Uint8Array%":typeof Uint8Array>"u"?pe:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?pe:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?pe:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?pe:Uint32Array,"%URIError%":RV,"%WeakMap%":typeof WeakMap>"u"?pe:WeakMap,"%WeakRef%":typeof WeakRef>"u"?pe:WeakRef,"%WeakSet%":typeof WeakSet>"u"?pe:WeakSet,"%Function.prototype.call%":xo,"%Function.prototype.apply%":LE,"%Object.defineProperty%":LV,"%Object.getPrototypeOf%":BV,"%Math.abs%":IV,"%Math.floor%":zV,"%Math.max%":DV,"%Math.min%":GV,"%Math.pow%":$V,"%Math.round%":NV,"%Math.sign%":UV,"%Reflect.getPrototypeOf%":FV};if(gi)try{null.error}catch(t){GE=gi(gi(t)),Ma["%Error.prototype%"]=GE}var GE,JV=function t(e){var i;if(e==="%AsyncFunction%")i=Pw("async function () {}");else if(e==="%GeneratorFunction%")i=Pw("function* () {}");else if(e==="%AsyncGeneratorFunction%")i=Pw("async function* () {}");else if(e==="%AsyncGenerator%"){var n=t("%AsyncGeneratorFunction%");n&&(i=n.prototype)}else if(e==="%AsyncIteratorPrototype%"){var a=t("%AsyncGenerator%");a&&gi&&(i=gi(a.prototype))}return Ma[e]=i,i},$E={__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"]},To=So(),xc=Oc(),ZV=To.call(xo,Array.prototype.concat),KV=To.call(LE,Array.prototype.splice),NE=To.call(xo,String.prototype.replace),Tc=To.call(xo,String.prototype.slice),QV=To.call(xo,RegExp.prototype.exec),YV=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,XV=/\\(\\)?/g,eJ=function(e){var i=Tc(e,0,1),n=Tc(e,-1);if(i==="%"&&n!=="%")throw new $r("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&i!=="%")throw new $r("invalid intrinsic syntax, expected opening `%`");var a=[];return NE(e,YV,function(r,s,o,l){a[a.length]=o?NE(l,XV,"$1"):s||r}),a},iJ=function(e,i){var n=e,a;if(xc($E,n)&&(a=$E[n],n="%"+a[0]+"%"),xc(Ma,n)){var r=Ma[n];if(r===Dr&&(r=JV(n)),typeof r>"u"&&!i)throw new Gr("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:a,name:n,value:r}}throw new $r("intrinsic "+e+" does not exist!")};WE.exports=function(e,i){if(typeof e!="string"||e.length===0)throw new Gr("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof i!="boolean")throw new Gr('"allowMissing" argument must be a boolean');if(QV(/^%?[^%]*%?$/,e)===null)throw new $r("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=eJ(e),a=n.length>0?n[0]:"",r=iJ("%"+a+"%",i),s=r.name,o=r.value,l=!1,u=r.alias;u&&(a=u[0],KV(n,ZV([0,1],u)));for(var c=1,p=!0;c=n.length){var m=Oo(o,d);p=!!m,p&&"get"in m&&!("originalValue"in m.get)?o=m.get:o=o[d]}else p=xc(o,d),o=o[d];p&&!l&&(Ma[s]=o)}}return o}});var FE=w((Bse,BE)=>{"use strict";var nJ=ww();BE.exports=function(){return nJ()&&!!Symbol.toStringTag}});var ZE=w((Fse,JE)=>{"use strict";var tJ=Mo(),VE=tJ("%Object.defineProperty%",!0),aJ=FE()(),rJ=Oc(),sJ=It(),Mc=aJ?Symbol.toStringTag:null;JE.exports=function(e,i){var n=arguments.length>2&&!!arguments[2]&&arguments[2].force,a=arguments.length>2&&!!arguments[2]&&arguments[2].nonConfigurable;if(typeof n<"u"&&typeof n!="boolean"||typeof a<"u"&&typeof a!="boolean")throw new sJ("if provided, the `overrideIfSet` and `nonConfigurable` options must be booleans");Mc&&(n||!rJ(e,Mc))&&(VE?VE(e,Mc,{configurable:!a,enumerable:!1,value:i,writable:!1}):e[Mc]=i)}});var QE=w((Vse,KE)=>{"use strict";KE.exports=function(t,e){return Object.keys(e).forEach(function(i){t[i]=t[i]||e[i]}),t}});var XE=w((Jse,YE)=>{"use strict";var Tw=rM(),oJ=require("util"),Sw=require("path"),lJ=require("http"),uJ=require("https"),cJ=require("url").parse,pJ=require("fs"),dJ=require("stream").Stream,hJ=require("crypto"),Ow=pM(),gJ=TM(),mJ=ZE(),zt=Oc(),xw=QE();function Ce(t){if(!(this instanceof Ce))return new Ce(t);this._overheadLength=0,this._valueLength=0,this._valuesToMeasure=[],Tw.call(this),t=t||{};for(var e in t)this[e]=t[e]}oJ.inherits(Ce,Tw);Ce.LINE_BREAK=`\r -`;Ce.DEFAULT_CONTENT_TYPE="application/octet-stream";Ce.prototype.append=function(t,e,i){i=i||{},typeof i=="string"&&(i={filename:i});var n=Tw.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,i),r=this._multiPartFooter();n(a),n(e),n(r),this._trackLength(a,e,i)};Ce.prototype._trackLength=function(t,e,i){var n=0;i.knownLength!=null?n+=Number(i.knownLength):Buffer.isBuffer(e)?n=e.length:typeof e=="string"&&(n=Buffer.byteLength(e)),this._valueLength+=n,this._overheadLength+=Buffer.byteLength(t)+Ce.LINE_BREAK.length,!(!e||!e.path&&!(e.readable&&zt(e,"httpVersion"))&&!(e instanceof dJ))&&(i.knownLength||this._valuesToMeasure.push(e))};Ce.prototype._lengthRetriever=function(t,e){zt(t,"fd")?t.end!=null&&t.end!=1/0&&t.start!=null?e(null,t.end+1-(t.start?t.start:0)):pJ.stat(t.path,function(i,n){if(i){e(i);return}var a=n.size-(t.start?t.start:0);e(null,a)}):zt(t,"httpVersion")?e(null,Number(t.headers["content-length"])):zt(t,"httpModule")?(t.on("response",function(i){t.pause(),e(null,Number(i.headers["content-length"]))}),t.resume()):e("Unknown stream")};Ce.prototype._multiPartHeader=function(t,e,i){if(typeof i.header=="string")return i.header;var n=this._getContentDisposition(e,i),a=this._getContentType(e,i),r="",s={"Content-Disposition":["form-data",'name="'+t+'"'].concat(n||[]),"Content-Type":[].concat(a||[])};typeof i.header=="object"&&xw(s,i.header);var o;for(var l in s)if(zt(s,l)){if(o=s[l],o==null)continue;Array.isArray(o)||(o=[o]),o.length&&(r+=l+": "+o.join("; ")+Ce.LINE_BREAK)}return"--"+this.getBoundary()+Ce.LINE_BREAK+r+Ce.LINE_BREAK};Ce.prototype._getContentDisposition=function(t,e){var i;if(typeof e.filepath=="string"?i=Sw.normalize(e.filepath).replace(/\\/g,"/"):e.filename||t&&(t.name||t.path)?i=Sw.basename(e.filename||t&&(t.name||t.path)):t&&t.readable&&zt(t,"httpVersion")&&(i=Sw.basename(t.client._httpMessage.path||"")),i)return'filename="'+i+'"'};Ce.prototype._getContentType=function(t,e){var i=e.contentType;return!i&&t&&t.name&&(i=Ow.lookup(t.name)),!i&&t&&t.path&&(i=Ow.lookup(t.path)),!i&&t&&t.readable&&zt(t,"httpVersion")&&(i=t.headers["content-type"]),!i&&(e.filepath||e.filename)&&(i=Ow.lookup(e.filepath||e.filename)),!i&&t&&typeof t=="object"&&(i=Ce.DEFAULT_CONTENT_TYPE),i};Ce.prototype._multiPartFooter=function(){return function(t){var e=Ce.LINE_BREAK,i=this._streams.length===0;i&&(e+=this._lastBoundary()),t(e)}.bind(this)};Ce.prototype._lastBoundary=function(){return"--"+this.getBoundary()+"--"+Ce.LINE_BREAK};Ce.prototype.getHeaders=function(t){var e,i={"content-type":"multipart/form-data; boundary="+this.getBoundary()};for(e in t)zt(t,e)&&(i[e.toLowerCase()]=t[e]);return i};Ce.prototype.setBoundary=function(t){if(typeof t!="string")throw new TypeError("FormData boundary must be a string");this._boundary=t};Ce.prototype.getBoundary=function(){return this._boundary||this._generateBoundary(),this._boundary};Ce.prototype.getBuffer=function(){for(var t=new Buffer.alloc(0),e=this.getBoundary(),i=0,n=this._streams.length;i{var Nr=1e3,Ur=Nr*60,Lr=Ur*60,Ea=Lr*24,fJ=Ea*7,wJ=Ea*365.25;ek.exports=function(t,e){e=e||{};var i=typeof t;if(i==="string"&&t.length>0)return vJ(t);if(i==="number"&&isFinite(t))return e.long?AJ(t):CJ(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))};function vJ(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 i=parseFloat(e[1]),n=(e[2]||"ms").toLowerCase();switch(n){case"years":case"year":case"yrs":case"yr":case"y":return i*wJ;case"weeks":case"week":case"w":return i*fJ;case"days":case"day":case"d":return i*Ea;case"hours":case"hour":case"hrs":case"hr":case"h":return i*Lr;case"minutes":case"minute":case"mins":case"min":case"m":return i*Ur;case"seconds":case"second":case"secs":case"sec":case"s":return i*Nr;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return i;default:return}}}}function CJ(t){var e=Math.abs(t);return e>=Ea?Math.round(t/Ea)+"d":e>=Lr?Math.round(t/Lr)+"h":e>=Ur?Math.round(t/Ur)+"m":e>=Nr?Math.round(t/Nr)+"s":t+"ms"}function AJ(t){var e=Math.abs(t);return e>=Ea?Ec(t,e,Ea,"day"):e>=Lr?Ec(t,e,Lr,"hour"):e>=Ur?Ec(t,e,Ur,"minute"):e>=Nr?Ec(t,e,Nr,"second"):t+" ms"}function Ec(t,e,i,n){var a=e>=i*1.5;return Math.round(t/i)+" "+n+(a?"s":"")}});var Ew=w((Kse,ik)=>{function bJ(t){i.debug=i,i.default=i,i.coerce=l,i.disable=s,i.enable=a,i.enabled=o,i.humanize=Mw(),i.destroy=u,Object.keys(t).forEach(c=>{i[c]=t[c]}),i.names=[],i.skips=[],i.formatters={};function e(c){let p=0;for(let d=0;d{if($==="%%")return"%";b++;let X=i.formatters[N];if(typeof X=="function"){let F=f[b];$=X.call(v,F),f.splice(b,1),b--}return $}),i.formatArgs.call(v,f),(v.log||i.log).apply(v,f)}return m.namespace=c,m.useColors=i.useColors(),m.color=i.selectColor(c),m.extend=n,m.destroy=i.destroy,Object.defineProperty(m,"enabled",{enumerable:!0,configurable:!1,get:()=>d!==null?d:(h!==i.namespaces&&(h=i.namespaces,g=i.enabled(c)),g),set:f=>{d=f}}),typeof i.init=="function"&&i.init(m),m}function n(c,p){let d=i(this.namespace+(typeof p>"u"?":":p)+c);return d.log=this.log,d}function a(c){i.save(c),i.namespaces=c,i.names=[],i.skips=[];let p=(typeof c=="string"?c:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(let d of p)d[0]==="-"?i.skips.push(d.slice(1)):i.names.push(d)}function r(c,p){let d=0,h=0,g=-1,m=0;for(;d"-"+p)].join(",");return i.enable(""),c}function o(c){for(let p of i.skips)if(r(c,p))return!1;for(let p of i.names)if(r(c,p))return!0;return!1}function l(c){return c instanceof Error?c.stack||c.message:c}function u(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return i.enable(i.load()),i}ik.exports=bJ});var nk=w((Bi,kc)=>{Bi.formatArgs=PJ;Bi.save=jJ;Bi.load=SJ;Bi.useColors=yJ;Bi.storage=OJ();Bi.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`."))}})();Bi.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 yJ(){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 PJ(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+kc.exports.humanize(this.diff),!this.useColors)return;let e="color: "+this.color;t.splice(1,0,e,"color: inherit");let i=0,n=0;t[0].replace(/%[a-zA-Z%]/g,a=>{a!=="%%"&&(i++,a==="%c"&&(n=i))}),t.splice(n,0,e)}Bi.log=console.debug||console.log||(()=>{});function jJ(t){try{t?Bi.storage.setItem("debug",t):Bi.storage.removeItem("debug")}catch{}}function SJ(){let t;try{t=Bi.storage.getItem("debug")||Bi.storage.getItem("DEBUG")}catch{}return!t&&typeof process<"u"&&"env"in process&&(t=process.env.DEBUG),t}function OJ(){try{return localStorage}catch{}}kc.exports=Ew()(Bi);var{formatters:xJ}=kc.exports;xJ.j=function(t){try{return JSON.stringify(t)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}});var ak=w((mi,_c)=>{var TJ=require("tty"),qc=require("util");mi.init=RJ;mi.log=qJ;mi.formatArgs=EJ;mi.save=_J;mi.load=HJ;mi.useColors=MJ;mi.destroy=qc.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");mi.colors=[6,2,3,4,5,1];try{let t=require("supports-color");t&&(t.stderr||t).level>=2&&(mi.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{}mi.inspectOpts=Object.keys(process.env).filter(t=>/^debug_/i.test(t)).reduce((t,e)=>{let i=e.substring(6).toLowerCase().replace(/_([a-z])/g,(a,r)=>r.toUpperCase()),n=process.env[e];return/^(yes|on|true|enabled)$/i.test(n)?n=!0:/^(no|off|false|disabled)$/i.test(n)?n=!1:n==="null"?n=null:n=Number(n),t[i]=n,t},{});function MJ(){return"colors"in mi.inspectOpts?!!mi.inspectOpts.colors:TJ.isatty(process.stderr.fd)}function EJ(t){let{namespace:e,useColors:i}=this;if(i){let n=this.color,a="\x1B[3"+(n<8?n:"8;5;"+n),r=` ${a};1m${e} \x1B[0m`;t[0]=r+t[0].split(` + deps: ${i}}`};var rB={keyword:"dependencies",type:"object",schemaType:"object",error:Dn.error,code(t){let[e,i]=sB(t);Yx(t,e),Xx(t,i)}};function sB({schema:t}){let e={},i={};for(let n in t){if(n==="__proto__")continue;let a=Array.isArray(t[n])?e:i;a[n]=t[n]}return[e,i]}function Yx(t,e=t.schema){let{gen:i,data:n,it:a}=t;if(Object.keys(e).length===0)return;let r=i.let("missing");for(let s in e){let o=e[s];if(o.length===0)continue;let l=(0,jo.propertyInData)(i,n,s,a.opts.ownProperties);t.setParams({property:s,depsCount:o.length,deps:o.join(", ")}),a.allErrors?i.if(l,()=>{for(let u of o)(0,jo.checkReportMissingProp)(t,u)}):(i.if((0,_f._)`${l} && (${(0,jo.checkMissingProp)(t,o,r)})`),(0,jo.reportMissingProp)(t,r),i.else())}}Dn.validatePropertyDeps=Yx;function Xx(t,e=t.schema){let{gen:i,data:n,keyword:a,it:r}=t,s=i.name("valid");for(let o in e)(0,aB.alwaysValidSchema)(r,e[o])||(i.if((0,jo.propertyInData)(i,n,o,r.opts.ownProperties),()=>{let l=t.subschema({keyword:a,schemaProp:o},s);t.mergeValidEvaluated(l,s)},()=>i.var(s,!0)),t.ok(s))}Dn.validateSchemaDeps=Xx;Dn.default=rB});var nT=w(Hf=>{"use strict";Object.defineProperty(Hf,"__esModule",{value:!0});var iT=re(),oB=we(),lB={message:"property name must be valid",params:({params:t})=>(0,iT._)`{propertyName: ${t.propertyName}}`},uB={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:lB,code(t){let{gen:e,schema:i,data:n,it:a}=t;if((0,oB.alwaysValidSchema)(a,i))return;let r=e.name("valid");e.forIn("key",n,s=>{t.setParams({propertyName:s}),t.subschema({keyword:"propertyNames",data:s,dataTypes:["string"],propertyName:s,compositeRule:!0},r),e.if((0,iT.not)(r),()=>{t.error(!0),a.allErrors||e.break()})}),t.ok(r)}};Hf.default=uB});var If=w(Rf=>{"use strict";Object.defineProperty(Rf,"__esModule",{value:!0});var oc=pn(),Sn=re(),cB=st(),lc=we(),pB={message:"must NOT have additional properties",params:({params:t})=>(0,Sn._)`{additionalProperty: ${t.additionalProperty}}`},dB={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:pB,code(t){let{gen:e,schema:i,parentSchema:n,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,lc.alwaysValidSchema)(s,i))return;let u=(0,oc.allSchemaProperties)(n.properties),c=(0,oc.allSchemaProperties)(n.patternProperties);p(),t.ok((0,Sn._)`${r} === ${cB.default.errors}`);function p(){e.forIn("key",a,f=>{!u.length&&!c.length?g(f):e.if(d(f),()=>g(f))})}function d(f){let v;if(u.length>8){let y=(0,lc.schemaRefOrVal)(s,n.properties,"properties");v=(0,oc.isOwnProperty)(e,y,f)}else u.length?v=(0,Sn.or)(...u.map(y=>(0,Sn._)`${f} === ${y}`)):v=Sn.nil;return c.length&&(v=(0,Sn.or)(v,...c.map(y=>(0,Sn._)`${(0,oc.usePattern)(t,y)}.test(${f})`))),(0,Sn.not)(v)}function h(f){e.code((0,Sn._)`delete ${a}[${f}]`)}function g(f){if(l.removeAdditional==="all"||l.removeAdditional&&i===!1){h(f);return}if(i===!1){t.setParams({additionalProperty:f}),t.error(),o||e.break();return}if(typeof i=="object"&&!(0,lc.alwaysValidSchema)(s,i)){let v=e.name("valid");l.removeAdditional==="failing"?(m(f,v,!1),e.if((0,Sn.not)(v),()=>{t.reset(),h(f)})):(m(f,v),o||e.if((0,Sn.not)(v),()=>e.break()))}}function m(f,v,y){let A={keyword:"additionalProperties",dataProp:f,dataPropType:lc.Type.Str};y===!1&&Object.assign(A,{compositeRule:!0,createErrors:!1,allErrors:!1}),t.subschema(A,v)}}};Rf.default=dB});var rT=w(Df=>{"use strict";Object.defineProperty(Df,"__esModule",{value:!0});var hB=uo(),tT=pn(),zf=we(),aT=If(),gB={keyword:"properties",type:"object",schemaType:"object",code(t){let{gen:e,schema:i,parentSchema:n,data:a,it:r}=t;r.opts.removeAdditional==="all"&&n.additionalProperties===void 0&&aT.default.code(new hB.KeywordCxt(r,aT.default,"additionalProperties"));let s=(0,tT.allSchemaProperties)(i);for(let p of s)r.definedProperties.add(p);r.opts.unevaluated&&s.length&&r.props!==!0&&(r.props=zf.mergeEvaluated.props(e,(0,zf.toHash)(s),r.props));let o=s.filter(p=>!(0,zf.alwaysValidSchema)(r,i[p]));if(o.length===0)return;let l=e.name("valid");for(let p of o)u(p)?c(p):(e.if((0,tT.propertyInData)(e,a,p,r.opts.ownProperties)),c(p),r.allErrors||e.else().var(l,!0),e.endIf()),t.it.definedProperties.add(p),t.ok(l);function u(p){return r.opts.useDefaults&&!r.compositeRule&&i[p].default!==void 0}function c(p){t.subschema({keyword:"properties",schemaProp:p,dataProp:p},l)}}};Df.default=gB});var uT=w(Gf=>{"use strict";Object.defineProperty(Gf,"__esModule",{value:!0});var sT=pn(),uc=re(),oT=we(),lT=we(),mB={keyword:"patternProperties",type:"object",schemaType:"object",code(t){let{gen:e,schema:i,data:n,parentSchema:a,it:r}=t,{opts:s}=r,o=(0,sT.allSchemaProperties)(i),l=o.filter(m=>(0,oT.alwaysValidSchema)(r,i[m]));if(o.length===0||l.length===o.length&&(!r.opts.unevaluated||r.props===!0))return;let u=s.strictSchema&&!s.allowMatchingProperties&&a.properties,c=e.name("valid");r.props!==!0&&!(r.props instanceof uc.Name)&&(r.props=(0,lT.evaluatedPropsToName)(e,r.props));let{props:p}=r;d();function d(){for(let m of o)u&&h(m),r.allErrors?g(m):(e.var(c,!0),g(m),e.if(c))}function h(m){for(let f in u)new RegExp(m).test(f)&&(0,oT.checkStrictMode)(r,`property ${f} matches pattern ${m} (use allowMatchingProperties)`)}function g(m){e.forIn("key",n,f=>{e.if((0,uc._)`${(0,sT.usePattern)(t,m)}.test(${f})`,()=>{let v=l.includes(m);v||t.subschema({keyword:"patternProperties",schemaProp:m,dataProp:f,dataPropType:lT.Type.Str},c),r.opts.unevaluated&&p!==!0?e.assign((0,uc._)`${p}[${f}]`,!0):!v&&!r.allErrors&&e.if((0,uc.not)(c),()=>e.break())})})}}};Gf.default=mB});var cT=w($f=>{"use strict";Object.defineProperty($f,"__esModule",{value:!0});var fB=we(),wB={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(t){let{gen:e,schema:i,it:n}=t;if((0,fB.alwaysValidSchema)(n,i)){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"}};$f.default=wB});var pT=w(Nf=>{"use strict";Object.defineProperty(Nf,"__esModule",{value:!0});var vB=pn(),CB={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:vB.validateUnion,error:{message:"must match a schema in anyOf"}};Nf.default=CB});var dT=w(Uf=>{"use strict";Object.defineProperty(Uf,"__esModule",{value:!0});var cc=re(),AB=we(),bB={message:"must match exactly one schema in oneOf",params:({params:t})=>(0,cc._)`{passingSchemas: ${t.passing}}`},yB={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:bB,code(t){let{gen:e,schema:i,parentSchema:n,it:a}=t;if(!Array.isArray(i))throw new Error("ajv implementation error");if(a.opts.discriminator&&n.discriminator)return;let r=i,s=e.let("valid",!1),o=e.let("passing",null),l=e.name("_valid");t.setParams({passing:o}),e.block(u),t.result(s,()=>t.reset(),()=>t.error(!0));function u(){r.forEach((c,p)=>{let d;(0,AB.alwaysValidSchema)(a,c)?e.var(l,!0):d=t.subschema({keyword:"oneOf",schemaProp:p,compositeRule:!0},l),p>0&&e.if((0,cc._)`${l} && ${s}`).assign(s,!1).assign(o,(0,cc._)`[${o}, ${p}]`).else(),e.if(l,()=>{e.assign(s,!0),e.assign(o,p),d&&t.mergeEvaluated(d,cc.Name)})})}}};Uf.default=yB});var hT=w(Lf=>{"use strict";Object.defineProperty(Lf,"__esModule",{value:!0});var PB=we(),jB={keyword:"allOf",schemaType:"array",code(t){let{gen:e,schema:i,it:n}=t;if(!Array.isArray(i))throw new Error("ajv implementation error");let a=e.name("valid");i.forEach((r,s)=>{if((0,PB.alwaysValidSchema)(n,r))return;let o=t.subschema({keyword:"allOf",schemaProp:s},a);t.ok(a),t.mergeEvaluated(o)})}};Lf.default=jB});var fT=w(Wf=>{"use strict";Object.defineProperty(Wf,"__esModule",{value:!0});var pc=re(),mT=we(),SB={message:({params:t})=>(0,pc.str)`must match "${t.ifClause}" schema`,params:({params:t})=>(0,pc._)`{failingKeyword: ${t.ifClause}}`},OB={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:SB,code(t){let{gen:e,parentSchema:i,it:n}=t;i.then===void 0&&i.else===void 0&&(0,mT.checkStrictMode)(n,'"if" without "then" and "else" is ignored');let a=gT(n,"then"),r=gT(n,"else");if(!a&&!r)return;let s=e.let("valid",!0),o=e.name("_valid");if(l(),t.reset(),a&&r){let c=e.let("ifClause");t.setParams({ifClause:c}),e.if(o,u("then",c),u("else",c))}else a?e.if(o,u("then")):e.if((0,pc.not)(o),u("else"));t.pass(s,()=>t.error(!0));function l(){let c=t.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},o);t.mergeEvaluated(c)}function u(c,p){return()=>{let d=t.subschema({keyword:c},o);e.assign(s,o),t.mergeValidEvaluated(d,s),p?e.assign(p,(0,pc._)`${c}`):t.setParams({ifClause:c})}}}};function gT(t,e){let i=t.schema[e];return i!==void 0&&!(0,mT.alwaysValidSchema)(t,i)}Wf.default=OB});var wT=w(Bf=>{"use strict";Object.defineProperty(Bf,"__esModule",{value:!0});var xB=we(),TB={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:t,parentSchema:e,it:i}){e.if===void 0&&(0,xB.checkStrictMode)(i,`"${t}" without "if" is ignored`)}};Bf.default=TB});var vT=w(Ff=>{"use strict";Object.defineProperty(Ff,"__esModule",{value:!0});var MB=Tf(),EB=Jx(),kB=Mf(),qB=Kx(),_B=Qx(),HB=eT(),RB=nT(),IB=If(),zB=rT(),DB=uT(),GB=cT(),$B=pT(),NB=dT(),UB=hT(),LB=fT(),WB=wT();function BB(t=!1){let e=[GB.default,$B.default,NB.default,UB.default,LB.default,WB.default,RB.default,IB.default,HB.default,zB.default,DB.default];return t?e.push(EB.default,qB.default):e.push(MB.default,kB.default),e.push(_B.default),e}Ff.default=BB});var CT=w(Vf=>{"use strict";Object.defineProperty(Vf,"__esModule",{value:!0});var ii=re(),FB={message:({schemaCode:t})=>(0,ii.str)`must match format "${t}"`,params:({schemaCode:t})=>(0,ii._)`{format: ${t}}`},VB={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:FB,code(t,e){let{gen:i,data:n,$data:a,schema:r,schemaCode:s,it:o}=t,{opts:l,errSchemaPath:u,schemaEnv:c,self:p}=o;if(!l.validateFormats)return;a?d():h();function d(){let g=i.scopeValue("formats",{ref:p.formats,code:l.code.formats}),m=i.const("fDef",(0,ii._)`${g}[${s}]`),f=i.let("fType"),v=i.let("format");i.if((0,ii._)`typeof ${m} == "object" && !(${m} instanceof RegExp)`,()=>i.assign(f,(0,ii._)`${m}.type || "string"`).assign(v,(0,ii._)`${m}.validate`),()=>i.assign(f,(0,ii._)`"string"`).assign(v,m)),t.fail$data((0,ii.or)(y(),A()));function y(){return l.strictSchema===!1?ii.nil:(0,ii._)`${s} && !${v}`}function A(){let b=c.$async?(0,ii._)`(${m}.async ? await ${v}(${n}) : ${v}(${n}))`:(0,ii._)`${v}(${n})`,O=(0,ii._)`(typeof ${v} == "function" ? ${b} : ${v}.test(${n}))`;return(0,ii._)`${v} && ${v} !== true && ${f} === ${e} && !${O}`}}function h(){let g=p.formats[r];if(!g){y();return}if(g===!0)return;let[m,f,v]=A(g);m===e&&t.pass(b());function y(){if(l.strictSchema===!1){p.logger.warn(O());return}throw new Error(O());function O(){return`unknown format "${r}" ignored in schema at path "${u}"`}}function A(O){let $=O instanceof RegExp?(0,ii.regexpCode)(O):l.code.formats?(0,ii._)`${l.code.formats}${(0,ii.getProperty)(r)}`:void 0,N=i.scopeValue("formats",{key:r,ref:O,code:$});return typeof O=="object"&&!(O instanceof RegExp)?[O.type||"string",O.validate,(0,ii._)`${N}.validate`]:["string",O,N]}function b(){if(typeof g=="object"&&!(g instanceof RegExp)&&g.async){if(!c.$async)throw new Error("async format in sync schema");return(0,ii._)`await ${v}(${n})`}return typeof f=="function"?(0,ii._)`${v}(${n})`:(0,ii._)`${v}.test(${n})`}}}};Vf.default=VB});var AT=w(Jf=>{"use strict";Object.defineProperty(Jf,"__esModule",{value:!0});var JB=CT(),ZB=[JB.default];Jf.default=ZB});var bT=w(qr=>{"use strict";Object.defineProperty(qr,"__esModule",{value:!0});qr.contentVocabulary=qr.metadataVocabulary=void 0;qr.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"];qr.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]});var PT=w(Zf=>{"use strict";Object.defineProperty(Zf,"__esModule",{value:!0});var KB=Ex(),QB=Wx(),YB=vT(),XB=AT(),yT=bT(),eF=[KB.default,QB.default,(0,YB.default)(),XB.default,yT.metadataVocabulary,yT.contentVocabulary];Zf.default=eF});var ST=w(dc=>{"use strict";Object.defineProperty(dc,"__esModule",{value:!0});dc.DiscrError=void 0;var jT;(function(t){t.Tag="tag",t.Mapping="mapping"})(jT||(dc.DiscrError=jT={}))});var xT=w(Qf=>{"use strict";Object.defineProperty(Qf,"__esModule",{value:!0});var _r=re(),Kf=ST(),OT=Zu(),iF=co(),nF=we(),tF={message:({params:{discrError:t,tagName:e}})=>t===Kf.DiscrError.Tag?`tag "${e}" must be string`:`value of tag "${e}" must be in oneOf`,params:({params:{discrError:t,tag:e,tagName:i}})=>(0,_r._)`{error: ${t}, tag: ${i}, tagValue: ${e}}`},aF={keyword:"discriminator",type:"object",schemaType:"object",error:tF,code(t){let{gen:e,data:i,schema:n,parentSchema:a,it:r}=t,{oneOf:s}=a;if(!r.opts.discriminator)throw new Error("discriminator: requires discriminator option");let o=n.propertyName;if(typeof o!="string")throw new Error("discriminator: requires propertyName");if(n.mapping)throw new Error("discriminator: mapping is not supported");if(!s)throw new Error("discriminator: requires oneOf keyword");let l=e.let("valid",!1),u=e.const("tag",(0,_r._)`${i}${(0,_r.getProperty)(o)}`);e.if((0,_r._)`typeof ${u} == "string"`,()=>c(),()=>t.error(!1,{discrError:Kf.DiscrError.Tag,tag:u,tagName:o})),t.ok(l);function c(){let h=d();e.if(!1);for(let g in h)e.elseIf((0,_r._)`${u} === ${g}`),e.assign(l,p(h[g]));e.else(),t.error(!1,{discrError:Kf.DiscrError.Mapping,tag:u,tagName:o}),e.endIf()}function p(h){let g=e.name("valid"),m=t.subschema({keyword:"oneOf",schemaProp:h},g);return t.mergeEvaluated(m,_r.Name),g}function d(){var h;let g={},m=v(a),f=!0;for(let b=0;b{rF.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 Xf=w((Ue,Yf)=>{"use strict";Object.defineProperty(Ue,"__esModule",{value:!0});Ue.MissingRefError=Ue.ValidationError=Ue.CodeGen=Ue.Name=Ue.nil=Ue.stringify=Ue.str=Ue._=Ue.KeywordCxt=Ue.Ajv=void 0;var sF=jx(),oF=PT(),lF=xT(),MT=TT(),uF=["/properties"],hc="http://json-schema.org/draft-07/schema",Hr=class extends sF.default{_addVocabularies(){super._addVocabularies(),oF.default.forEach(e=>this.addVocabulary(e)),this.opts.discriminator&&this.addKeyword(lF.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;let e=this.opts.$data?this.$dataMetaSchema(MT,uF):MT;this.addMetaSchema(e,hc,!1),this.refs["http://json-schema.org/schema"]=hc}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(hc)?hc:void 0)}};Ue.Ajv=Hr;Yf.exports=Ue=Hr;Yf.exports.Ajv=Hr;Object.defineProperty(Ue,"__esModule",{value:!0});Ue.default=Hr;var cF=uo();Object.defineProperty(Ue,"KeywordCxt",{enumerable:!0,get:function(){return cF.KeywordCxt}});var Rr=re();Object.defineProperty(Ue,"_",{enumerable:!0,get:function(){return Rr._}});Object.defineProperty(Ue,"str",{enumerable:!0,get:function(){return Rr.str}});Object.defineProperty(Ue,"stringify",{enumerable:!0,get:function(){return Rr.stringify}});Object.defineProperty(Ue,"nil",{enumerable:!0,get:function(){return Rr.nil}});Object.defineProperty(Ue,"Name",{enumerable:!0,get:function(){return Rr.Name}});Object.defineProperty(Ue,"CodeGen",{enumerable:!0,get:function(){return Rr.CodeGen}});var pF=Vu();Object.defineProperty(Ue,"ValidationError",{enumerable:!0,get:function(){return pF.default}});var dF=co();Object.defineProperty(Ue,"MissingRefError",{enumerable:!0,get:function(){return dF.default}})});var zT=w($n=>{"use strict";Object.defineProperty($n,"__esModule",{value:!0});$n.formatNames=$n.fastFormats=$n.fullFormats=void 0;function Gn(t,e){return{validate:t,compare:e}}$n.fullFormats={date:Gn(_T,tw),time:Gn(iw(!0),aw),"date-time":Gn(ET(!0),RT),"iso-time":Gn(iw(),HT),"iso-date-time":Gn(ET(),IT),duration:/^P(?!$)((\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?|(\d+W)?)$/,uri:vF,"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:SF,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:CF,int32:{type:"number",validate:yF},int64:{type:"number",validate:PF},float:{type:"number",validate:qT},double:{type:"number",validate:qT},password:!0,binary:!0};$n.fastFormats={...$n.fullFormats,date:Gn(/^\d\d\d\d-[0-1]\d-[0-3]\d$/,tw),time:Gn(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,aw),"date-time":Gn(/^\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,RT),"iso-time":Gn(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,HT),"iso-date-time":Gn(/^\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,IT),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};$n.formatNames=Object.keys($n.fullFormats);function hF(t){return t%4===0&&(t%100!==0||t%400===0)}var gF=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,mF=[0,31,28,31,30,31,30,31,31,30,31,30,31];function _T(t){let e=gF.exec(t);if(!e)return!1;let i=+e[1],n=+e[2],a=+e[3];return n>=1&&n<=12&&a>=1&&a<=(n===2&&hF(i)?29:mF[n])}function tw(t,e){if(t&&e)return t>e?1:t23||c>59||t&&!o)return!1;if(a<=23&&r<=59&&s<60)return!0;let p=r-c*l,d=a-u*l-(p<0?1:0);return(d===23||d===-1)&&(p===59||p===-1)&&s<61}}function aw(t,e){if(!(t&&e))return;let i=new Date("2020-01-01T"+t).valueOf(),n=new Date("2020-01-01T"+e).valueOf();if(i&&n)return i-n}function HT(t,e){if(!(t&&e))return;let i=ew.exec(t),n=ew.exec(e);if(i&&n)return t=i[1]+i[2]+i[3],e=n[1]+n[2]+n[3],t>e?1:t=AF}function PF(t){return Number.isInteger(t)}function qT(){return!0}var jF=/[^\\]\\Z/;function SF(t){if(jF.test(t))return!1;try{return new RegExp(t),!0}catch{return!1}}});var DT=w(Ir=>{"use strict";Object.defineProperty(Ir,"__esModule",{value:!0});Ir.formatLimitDefinition=void 0;var OF=Xf(),On=re(),Ht=On.operators,gc={formatMaximum:{okStr:"<=",ok:Ht.LTE,fail:Ht.GT},formatMinimum:{okStr:">=",ok:Ht.GTE,fail:Ht.LT},formatExclusiveMaximum:{okStr:"<",ok:Ht.LT,fail:Ht.GTE},formatExclusiveMinimum:{okStr:">",ok:Ht.GT,fail:Ht.LTE}},xF={message:({keyword:t,schemaCode:e})=>(0,On.str)`should be ${gc[t].okStr} ${e}`,params:({keyword:t,schemaCode:e})=>(0,On._)`{comparison: ${gc[t].okStr}, limit: ${e}}`};Ir.formatLimitDefinition={keyword:Object.keys(gc),type:"string",schemaType:"string",$data:!0,error:xF,code(t){let{gen:e,data:i,schemaCode:n,keyword:a,it:r}=t,{opts:s,self:o}=r;if(!s.validateFormats)return;let l=new OF.KeywordCxt(r,o.RULES.all.format.definition,"format");l.$data?u():c();function u(){let d=e.scopeValue("formats",{ref:o.formats,code:s.code.formats}),h=e.const("fmt",(0,On._)`${d}[${l.schemaCode}]`);t.fail$data((0,On.or)((0,On._)`typeof ${h} != "object"`,(0,On._)`${h} instanceof RegExp`,(0,On._)`typeof ${h}.compare != "function"`,p(h)))}function c(){let d=l.schema,h=o.formats[d];if(!h||h===!0)return;if(typeof h!="object"||h instanceof RegExp||typeof h.compare!="function")throw new Error(`"${a}": format "${d}" does not define "compare" function`);let g=e.scopeValue("formats",{key:d,ref:h,code:s.code.formats?(0,On._)`${s.code.formats}${(0,On.getProperty)(d)}`:void 0});t.fail$data(p(g))}function p(d){return(0,On._)`${d}.compare(${i}, ${n}) ${gc[a].fail} 0`}},dependencies:["format"]};var TF=t=>(t.addKeyword(Ir.formatLimitDefinition),t);Ir.default=TF});var UT=w((So,NT)=>{"use strict";Object.defineProperty(So,"__esModule",{value:!0});var zr=zT(),MF=DT(),rw=re(),GT=new rw.Name("fullFormats"),EF=new rw.Name("fastFormats"),sw=(t,e={keywords:!0})=>{if(Array.isArray(e))return $T(t,e,zr.fullFormats,GT),t;let[i,n]=e.mode==="fast"?[zr.fastFormats,EF]:[zr.fullFormats,GT],a=e.formats||zr.formatNames;return $T(t,a,i,n),e.keywords&&(0,MF.default)(t),t};sw.get=(t,e="full")=>{let n=(e==="fast"?zr.fastFormats:zr.fullFormats)[t];if(!n)throw new Error(`Unknown format "${t}"`);return n};function $T(t,e,i,n){var a,r;(a=(r=t.opts.code).formats)!==null&&a!==void 0||(r.formats=(0,rw._)`require("ajv-formats/dist/formats").${n}`);for(let s of e)t.addFormat(s,i[s])}NT.exports=So=sw;Object.defineProperty(So,"__esModule",{value:!0});So.default=sw});var tM=w((nse,nM)=>{var iM=require("stream").Stream,DF=require("util");nM.exports=xn;function xn(){this.source=null,this.dataSize=0,this.maxDataSize=1024*1024,this.pauseStream=!0,this._maxDataSizeExceeded=!1,this._released=!1,this._bufferedEvents=[]}DF.inherits(xn,iM);xn.create=function(t,e){var i=new this;e=e||{};for(var n in e)i[n]=e[n];i.source=t;var a=t.emit;return t.emit=function(){return i._handleEmit(arguments),a.apply(t,arguments)},t.on("error",function(){}),i.pauseStream&&t.pause(),i};Object.defineProperty(xn.prototype,"readable",{configurable:!0,enumerable:!0,get:function(){return this.source.readable}});xn.prototype.setEncoding=function(){return this.source.setEncoding.apply(this.source,arguments)};xn.prototype.resume=function(){this._released||this.release(),this.source.resume()};xn.prototype.pause=function(){this.source.pause()};xn.prototype.release=function(){this._released=!0,this._bufferedEvents.forEach(function(t){this.emit.apply(this,t)}.bind(this)),this._bufferedEvents=[]};xn.prototype.pipe=function(){var t=iM.prototype.pipe.apply(this,arguments);return this.resume(),t};xn.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)};xn.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 oM=w((tse,sM)=>{var GF=require("util"),rM=require("stream").Stream,aM=tM();sM.exports=Ke;function Ke(){this.writable=!1,this.readable=!0,this.dataSize=0,this.maxDataSize=2*1024*1024,this.pauseStreams=!0,this._released=!1,this._streams=[],this._currentStream=null,this._insideLoop=!1,this._pendingNext=!1}GF.inherits(Ke,rM);Ke.create=function(t){var e=new this;t=t||{};for(var i in t)e[i]=t[i];return e};Ke.isStreamLike=function(t){return typeof t!="function"&&typeof t!="string"&&typeof t!="boolean"&&typeof t!="number"&&!Buffer.isBuffer(t)};Ke.prototype.append=function(t){var e=Ke.isStreamLike(t);if(e){if(!(t instanceof aM)){var i=aM.create(t,{maxDataSize:1/0,pauseStream:this.pauseStreams});t.on("data",this._checkDataSize.bind(this)),t=i}this._handleErrors(t),this.pauseStreams&&t.pause()}return this._streams.push(t),this};Ke.prototype.pipe=function(t,e){return rM.prototype.pipe.call(this,t,e),this.resume(),t};Ke.prototype._getNext=function(){if(this._currentStream=null,this._insideLoop){this._pendingNext=!0;return}this._insideLoop=!0;try{do this._pendingNext=!1,this._realGetNext();while(this._pendingNext)}finally{this._insideLoop=!1}};Ke.prototype._realGetNext=function(){var t=this._streams.shift();if(typeof t>"u"){this.end();return}if(typeof t!="function"){this._pipeNext(t);return}var e=t;e(function(i){var n=Ke.isStreamLike(i);n&&(i.on("data",this._checkDataSize.bind(this)),this._handleErrors(i)),this._pipeNext(i)}.bind(this))};Ke.prototype._pipeNext=function(t){this._currentStream=t;var e=Ke.isStreamLike(t);if(e){t.on("end",this._getNext.bind(this)),t.pipe(this,{end:!1});return}var i=t;this.write(i),this._getNext()};Ke.prototype._handleErrors=function(t){var e=this;t.on("error",function(i){e._emitError(i)})};Ke.prototype.write=function(t){this.emit("data",t)};Ke.prototype.pause=function(){this.pauseStreams&&(this.pauseStreams&&this._currentStream&&typeof this._currentStream.pause=="function"&&this._currentStream.pause(),this.emit("pause"))};Ke.prototype.resume=function(){this._released||(this._released=!0,this.writable=!0,this._getNext()),this.pauseStreams&&this._currentStream&&typeof this._currentStream.resume=="function"&&this._currentStream.resume(),this.emit("resume")};Ke.prototype.end=function(){this._reset(),this.emit("end")};Ke.prototype.destroy=function(){this._reset(),this.emit("close")};Ke.prototype._reset=function(){this.writable=!1,this._streams=[],this._currentStream=null};Ke.prototype._checkDataSize=function(){if(this._updateDataSize(),!(this.dataSize<=this.maxDataSize)){var t="DelayedStream#maxDataSize of "+this.maxDataSize+" bytes exceeded.";this._emitError(new Error(t))}};Ke.prototype._updateDataSize=function(){this.dataSize=0;var t=this;this._streams.forEach(function(e){e.dataSize&&(t.dataSize+=e.dataSize)}),this._currentStream&&this._currentStream.dataSize&&(this.dataSize+=this._currentStream.dataSize)};Ke.prototype._emitError=function(t){this._reset(),this.emit("error",t)}});var lM=w((ase,$F)=>{$F.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 cM=w((rse,uM)=>{uM.exports=lM()});var hM=w(Wi=>{"use strict";var yc=cM(),NF=require("path").extname,pM=/^\s*([^;\s]*)(?:;|\s|$)/,UF=/^text\//i;Wi.charset=dM;Wi.charsets={lookup:dM};Wi.contentType=LF;Wi.extension=WF;Wi.extensions=Object.create(null);Wi.lookup=BF;Wi.types=Object.create(null);FF(Wi.extensions,Wi.types);function dM(t){if(!t||typeof t!="string")return!1;var e=pM.exec(t),i=e&&yc[e[1].toLowerCase()];return i&&i.charset?i.charset:e&&UF.test(e[1])?"UTF-8":!1}function LF(t){if(!t||typeof t!="string")return!1;var e=t.indexOf("/")===-1?Wi.lookup(t):t;if(!e)return!1;if(e.indexOf("charset")===-1){var i=Wi.charset(e);i&&(e+="; charset="+i.toLowerCase())}return e}function WF(t){if(!t||typeof t!="string")return!1;var e=pM.exec(t),i=e&&Wi.extensions[e[1].toLowerCase()];return!i||!i.length?!1:i[0]}function BF(t){if(!t||typeof t!="string")return!1;var e=NF("x."+t).toLowerCase().substr(1);return e&&Wi.types[e]||!1}function FF(t,e){var i=["nginx","apache",void 0,"iana"];Object.keys(yc).forEach(function(a){var r=yc[a],s=r.extensions;if(!(!s||!s.length)){t[a]=s;for(var o=0;oc||u===c&&e[l].substr(0,12)==="application/"))continue}e[l]=a}}})}});var mM=w((ose,gM)=>{gM.exports=VF;function VF(t){var e=typeof setImmediate=="function"?setImmediate:typeof process=="object"&&typeof process.nextTick=="function"?process.nextTick:null;e?e(t):setTimeout(t,0)}});var pw=w((lse,wM)=>{var fM=mM();wM.exports=JF;function JF(t){var e=!1;return fM(function(){e=!0}),function(n,a){e?t(n,a):fM(function(){t(n,a)})}}});var dw=w((use,vM)=>{vM.exports=ZF;function ZF(t){Object.keys(t.jobs).forEach(KF.bind(t)),t.jobs={}}function KF(t){typeof this.jobs[t]=="function"&&this.jobs[t]()}});var hw=w((cse,AM)=>{var CM=pw(),QF=dw();AM.exports=YF;function YF(t,e,i,n){var a=i.keyedList?i.keyedList[i.index]:i.index;i.jobs[a]=XF(e,a,t[a],function(r,s){a in i.jobs&&(delete i.jobs[a],r?QF(i):i.results[a]=s,n(r,i.results))})}function XF(t,e,i,n){var a;return t.length==2?a=t(i,CM(n)):a=t(i,e,CM(n)),a}});var gw=w((pse,bM)=>{bM.exports=eV;function eV(t,e){var i=!Array.isArray(t),n={index:0,keyedList:i||e?Object.keys(t):null,jobs:{},results:i?{}:[],size:i?Object.keys(t).length:t.length};return e&&n.keyedList.sort(i?e:function(a,r){return e(t[a],t[r])}),n}});var mw=w((dse,yM)=>{var iV=dw(),nV=pw();yM.exports=tV;function tV(t){Object.keys(this.jobs).length&&(this.index=this.size,iV(this),nV(t)(null,this.results))}});var jM=w((hse,PM)=>{var aV=hw(),rV=gw(),sV=mw();PM.exports=oV;function oV(t,e,i){for(var n=rV(t);n.index<(n.keyedList||t).length;)aV(t,e,n,function(a,r){if(a){i(a,r);return}if(Object.keys(n.jobs).length===0){i(null,n.results);return}}),n.index++;return sV.bind(n,i)}});var fw=w((gse,Pc)=>{var SM=hw(),lV=gw(),uV=mw();Pc.exports=cV;Pc.exports.ascending=OM;Pc.exports.descending=pV;function cV(t,e,i,n){var a=lV(t,i);return SM(t,e,a,function r(s,o){if(s){n(s,o);return}if(a.index++,a.index<(a.keyedList||t).length){SM(t,e,a,r);return}n(null,a.results)}),uV.bind(a,n)}function OM(t,e){return te?1:0}function pV(t,e){return-1*OM(t,e)}});var TM=w((mse,xM)=>{var dV=fw();xM.exports=hV;function hV(t,e,i){return dV(t,e,null,i)}});var EM=w((fse,MM)=>{MM.exports={parallel:jM(),serial:TM(),serialOrdered:fw()}});var ww=w((wse,kM)=>{"use strict";kM.exports=Object});var _M=w((vse,qM)=>{"use strict";qM.exports=Error});var RM=w((Cse,HM)=>{"use strict";HM.exports=EvalError});var zM=w((Ase,IM)=>{"use strict";IM.exports=RangeError});var GM=w((bse,DM)=>{"use strict";DM.exports=ReferenceError});var NM=w((yse,$M)=>{"use strict";$M.exports=SyntaxError});var It=w((Pse,UM)=>{"use strict";UM.exports=TypeError});var WM=w((jse,LM)=>{"use strict";LM.exports=URIError});var FM=w((Sse,BM)=>{"use strict";BM.exports=Math.abs});var JM=w((Ose,VM)=>{"use strict";VM.exports=Math.floor});var KM=w((xse,ZM)=>{"use strict";ZM.exports=Math.max});var YM=w((Tse,QM)=>{"use strict";QM.exports=Math.min});var eE=w((Mse,XM)=>{"use strict";XM.exports=Math.pow});var nE=w((Ese,iE)=>{"use strict";iE.exports=Math.round});var aE=w((kse,tE)=>{"use strict";tE.exports=Number.isNaN||function(e){return e!==e}});var sE=w((qse,rE)=>{"use strict";var gV=aE();rE.exports=function(e){return gV(e)||e===0?e:e<0?-1:1}});var lE=w((_se,oE)=>{"use strict";oE.exports=Object.getOwnPropertyDescriptor});var vw=w((Hse,uE)=>{"use strict";var jc=lE();if(jc)try{jc([],"length")}catch{jc=null}uE.exports=jc});var pE=w((Rse,cE)=>{"use strict";var Sc=Object.defineProperty||!1;if(Sc)try{Sc({},"a",{value:1})}catch{Sc=!1}cE.exports=Sc});var Cw=w((Ise,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={},i=Symbol("test"),n=Object(i);if(typeof i=="string"||Object.prototype.toString.call(i)!=="[object Symbol]"||Object.prototype.toString.call(n)!=="[object Symbol]")return!1;var a=42;e[i]=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]!==i||!Object.prototype.propertyIsEnumerable.call(e,i))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var o=Object.getOwnPropertyDescriptor(e,i);if(o.value!==a||o.enumerable!==!0)return!1}return!0}});var mE=w((zse,gE)=>{"use strict";var hE=typeof Symbol<"u"&&Symbol,mV=Cw();gE.exports=function(){return typeof hE!="function"||typeof Symbol!="function"||typeof hE("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:mV()}});var Aw=w((Dse,fE)=>{"use strict";fE.exports=typeof Reflect<"u"&&Reflect.getPrototypeOf||null});var bw=w((Gse,wE)=>{"use strict";var fV=ww();wE.exports=fV.getPrototypeOf||null});var AE=w(($se,CE)=>{"use strict";var wV="Function.prototype.bind called on incompatible ",vV=Object.prototype.toString,CV=Math.max,AV="[object Function]",vE=function(e,i){for(var n=[],a=0;a{"use strict";var PV=AE();bE.exports=Function.prototype.bind||PV});var Oc=w((Use,yE)=>{"use strict";yE.exports=Function.prototype.call});var yw=w((Lse,PE)=>{"use strict";PE.exports=Function.prototype.apply});var SE=w((Wse,jE)=>{"use strict";jE.exports=typeof Reflect<"u"&&Reflect&&Reflect.apply});var xE=w((Bse,OE)=>{"use strict";var jV=xo(),SV=yw(),OV=Oc(),xV=SE();OE.exports=xV||jV.call(OV,SV)});var Pw=w((Fse,TE)=>{"use strict";var TV=xo(),MV=It(),EV=Oc(),kV=xE();TE.exports=function(e){if(e.length<1||typeof e[0]!="function")throw new MV("a function is required");return kV(TV,EV,e)}});var HE=w((Vse,_E)=>{"use strict";var qV=Pw(),ME=vw(),kE;try{kE=[].__proto__===Array.prototype}catch(t){if(!t||typeof t!="object"||!("code"in t)||t.code!=="ERR_PROTO_ACCESS")throw t}var jw=!!kE&&ME&&ME(Object.prototype,"__proto__"),qE=Object,EE=qE.getPrototypeOf;_E.exports=jw&&typeof jw.get=="function"?qV([jw.get]):typeof EE=="function"?function(e){return EE(e==null?e:qE(e))}:!1});var GE=w((Jse,DE)=>{"use strict";var RE=Aw(),IE=bw(),zE=HE();DE.exports=RE?function(e){return RE(e)}:IE?function(e){if(!e||typeof e!="object"&&typeof e!="function")throw new TypeError("getProto: not an object");return IE(e)}:zE?function(e){return zE(e)}:null});var xc=w((Zse,$E)=>{"use strict";var _V=Function.prototype.call,HV=Object.prototype.hasOwnProperty,RV=xo();$E.exports=RV.call(_V,HV)});var ko=w((Kse,FE)=>{"use strict";var pe,IV=ww(),zV=_M(),DV=RM(),GV=zM(),$V=GM(),Nr=NM(),$r=It(),NV=WM(),UV=FM(),LV=JM(),WV=KM(),BV=YM(),FV=eE(),VV=nE(),JV=sE(),WE=Function,Sw=function(t){try{return WE('"use strict"; return ('+t+").constructor;")()}catch{}},To=vw(),ZV=pE(),Ow=function(){throw new $r},KV=To?(function(){try{return arguments.callee,Ow}catch{try{return To(arguments,"callee").get}catch{return Ow}}})():Ow,Dr=mE()(),gi=GE(),QV=bw(),YV=Aw(),BE=yw(),Mo=Oc(),Gr={},XV=typeof Uint8Array>"u"||!gi?pe:gi(Uint8Array),Ma={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?pe:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?pe:ArrayBuffer,"%ArrayIteratorPrototype%":Dr&&gi?gi([][Symbol.iterator]()):pe,"%AsyncFromSyncIteratorPrototype%":pe,"%AsyncFunction%":Gr,"%AsyncGenerator%":Gr,"%AsyncGeneratorFunction%":Gr,"%AsyncIteratorPrototype%":Gr,"%Atomics%":typeof Atomics>"u"?pe:Atomics,"%BigInt%":typeof BigInt>"u"?pe:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?pe:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?pe:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?pe:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":zV,"%eval%":eval,"%EvalError%":DV,"%Float16Array%":typeof Float16Array>"u"?pe:Float16Array,"%Float32Array%":typeof Float32Array>"u"?pe:Float32Array,"%Float64Array%":typeof Float64Array>"u"?pe:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?pe:FinalizationRegistry,"%Function%":WE,"%GeneratorFunction%":Gr,"%Int8Array%":typeof Int8Array>"u"?pe:Int8Array,"%Int16Array%":typeof Int16Array>"u"?pe:Int16Array,"%Int32Array%":typeof Int32Array>"u"?pe:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Dr&&gi?gi(gi([][Symbol.iterator]())):pe,"%JSON%":typeof JSON=="object"?JSON:pe,"%Map%":typeof Map>"u"?pe:Map,"%MapIteratorPrototype%":typeof Map>"u"||!Dr||!gi?pe:gi(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":IV,"%Object.getOwnPropertyDescriptor%":To,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?pe:Promise,"%Proxy%":typeof Proxy>"u"?pe:Proxy,"%RangeError%":GV,"%ReferenceError%":$V,"%Reflect%":typeof Reflect>"u"?pe:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?pe:Set,"%SetIteratorPrototype%":typeof Set>"u"||!Dr||!gi?pe:gi(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?pe:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":Dr&&gi?gi(""[Symbol.iterator]()):pe,"%Symbol%":Dr?Symbol:pe,"%SyntaxError%":Nr,"%ThrowTypeError%":KV,"%TypedArray%":XV,"%TypeError%":$r,"%Uint8Array%":typeof Uint8Array>"u"?pe:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?pe:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?pe:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?pe:Uint32Array,"%URIError%":NV,"%WeakMap%":typeof WeakMap>"u"?pe:WeakMap,"%WeakRef%":typeof WeakRef>"u"?pe:WeakRef,"%WeakSet%":typeof WeakSet>"u"?pe:WeakSet,"%Function.prototype.call%":Mo,"%Function.prototype.apply%":BE,"%Object.defineProperty%":ZV,"%Object.getPrototypeOf%":QV,"%Math.abs%":UV,"%Math.floor%":LV,"%Math.max%":WV,"%Math.min%":BV,"%Math.pow%":FV,"%Math.round%":VV,"%Math.sign%":JV,"%Reflect.getPrototypeOf%":YV};if(gi)try{null.error}catch(t){NE=gi(gi(t)),Ma["%Error.prototype%"]=NE}var NE,eJ=function t(e){var i;if(e==="%AsyncFunction%")i=Sw("async function () {}");else if(e==="%GeneratorFunction%")i=Sw("function* () {}");else if(e==="%AsyncGeneratorFunction%")i=Sw("async function* () {}");else if(e==="%AsyncGenerator%"){var n=t("%AsyncGeneratorFunction%");n&&(i=n.prototype)}else if(e==="%AsyncIteratorPrototype%"){var a=t("%AsyncGenerator%");a&&gi&&(i=gi(a.prototype))}return Ma[e]=i,i},UE={__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"]},Eo=xo(),Tc=xc(),iJ=Eo.call(Mo,Array.prototype.concat),nJ=Eo.call(BE,Array.prototype.splice),LE=Eo.call(Mo,String.prototype.replace),Mc=Eo.call(Mo,String.prototype.slice),tJ=Eo.call(Mo,RegExp.prototype.exec),aJ=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,rJ=/\\(\\)?/g,sJ=function(e){var i=Mc(e,0,1),n=Mc(e,-1);if(i==="%"&&n!=="%")throw new Nr("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&i!=="%")throw new Nr("invalid intrinsic syntax, expected opening `%`");var a=[];return LE(e,aJ,function(r,s,o,l){a[a.length]=o?LE(l,rJ,"$1"):s||r}),a},oJ=function(e,i){var n=e,a;if(Tc(UE,n)&&(a=UE[n],n="%"+a[0]+"%"),Tc(Ma,n)){var r=Ma[n];if(r===Gr&&(r=eJ(n)),typeof r>"u"&&!i)throw new $r("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:a,name:n,value:r}}throw new Nr("intrinsic "+e+" does not exist!")};FE.exports=function(e,i){if(typeof e!="string"||e.length===0)throw new $r("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof i!="boolean")throw new $r('"allowMissing" argument must be a boolean');if(tJ(/^%?[^%]*%?$/,e)===null)throw new Nr("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=sJ(e),a=n.length>0?n[0]:"",r=oJ("%"+a+"%",i),s=r.name,o=r.value,l=!1,u=r.alias;u&&(a=u[0],nJ(n,iJ([0,1],u)));for(var c=1,p=!0;c=n.length){var m=To(o,d);p=!!m,p&&"get"in m&&!("originalValue"in m.get)?o=m.get:o=o[d]}else p=Tc(o,d),o=o[d];p&&!l&&(Ma[s]=o)}}return o}});var JE=w((Qse,VE)=>{"use strict";var lJ=Cw();VE.exports=function(){return lJ()&&!!Symbol.toStringTag}});var QE=w((Yse,KE)=>{"use strict";var uJ=ko(),ZE=uJ("%Object.defineProperty%",!0),cJ=JE()(),pJ=xc(),dJ=It(),Ec=cJ?Symbol.toStringTag:null;KE.exports=function(e,i){var n=arguments.length>2&&!!arguments[2]&&arguments[2].force,a=arguments.length>2&&!!arguments[2]&&arguments[2].nonConfigurable;if(typeof n<"u"&&typeof n!="boolean"||typeof a<"u"&&typeof a!="boolean")throw new dJ("if provided, the `overrideIfSet` and `nonConfigurable` options must be booleans");Ec&&(n||!pJ(e,Ec))&&(ZE?ZE(e,Ec,{configurable:!a,enumerable:!1,value:i,writable:!1}):e[Ec]=i)}});var XE=w((Xse,YE)=>{"use strict";YE.exports=function(t,e){return Object.keys(e).forEach(function(i){t[i]=t[i]||e[i]}),t}});var ik=w((eoe,ek)=>{"use strict";var Ew=oM(),hJ=require("util"),xw=require("path"),gJ=require("http"),mJ=require("https"),fJ=require("url").parse,wJ=require("fs"),vJ=require("stream").Stream,CJ=require("crypto"),Tw=hM(),AJ=EM(),bJ=QE(),zt=xc(),Mw=XE();function Ce(t){if(!(this instanceof Ce))return new Ce(t);this._overheadLength=0,this._valueLength=0,this._valuesToMeasure=[],Ew.call(this),t=t||{};for(var e in t)this[e]=t[e]}hJ.inherits(Ce,Ew);Ce.LINE_BREAK=`\r +`;Ce.DEFAULT_CONTENT_TYPE="application/octet-stream";Ce.prototype.append=function(t,e,i){i=i||{},typeof i=="string"&&(i={filename:i});var n=Ew.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,i),r=this._multiPartFooter();n(a),n(e),n(r),this._trackLength(a,e,i)};Ce.prototype._trackLength=function(t,e,i){var n=0;i.knownLength!=null?n+=Number(i.knownLength):Buffer.isBuffer(e)?n=e.length:typeof e=="string"&&(n=Buffer.byteLength(e)),this._valueLength+=n,this._overheadLength+=Buffer.byteLength(t)+Ce.LINE_BREAK.length,!(!e||!e.path&&!(e.readable&&zt(e,"httpVersion"))&&!(e instanceof vJ))&&(i.knownLength||this._valuesToMeasure.push(e))};Ce.prototype._lengthRetriever=function(t,e){zt(t,"fd")?t.end!=null&&t.end!=1/0&&t.start!=null?e(null,t.end+1-(t.start?t.start:0)):wJ.stat(t.path,function(i,n){if(i){e(i);return}var a=n.size-(t.start?t.start:0);e(null,a)}):zt(t,"httpVersion")?e(null,Number(t.headers["content-length"])):zt(t,"httpModule")?(t.on("response",function(i){t.pause(),e(null,Number(i.headers["content-length"]))}),t.resume()):e("Unknown stream")};Ce.prototype._multiPartHeader=function(t,e,i){if(typeof i.header=="string")return i.header;var n=this._getContentDisposition(e,i),a=this._getContentType(e,i),r="",s={"Content-Disposition":["form-data",'name="'+t+'"'].concat(n||[]),"Content-Type":[].concat(a||[])};typeof i.header=="object"&&Mw(s,i.header);var o;for(var l in s)if(zt(s,l)){if(o=s[l],o==null)continue;Array.isArray(o)||(o=[o]),o.length&&(r+=l+": "+o.join("; ")+Ce.LINE_BREAK)}return"--"+this.getBoundary()+Ce.LINE_BREAK+r+Ce.LINE_BREAK};Ce.prototype._getContentDisposition=function(t,e){var i;if(typeof e.filepath=="string"?i=xw.normalize(e.filepath).replace(/\\/g,"/"):e.filename||t&&(t.name||t.path)?i=xw.basename(e.filename||t&&(t.name||t.path)):t&&t.readable&&zt(t,"httpVersion")&&(i=xw.basename(t.client._httpMessage.path||"")),i)return'filename="'+i+'"'};Ce.prototype._getContentType=function(t,e){var i=e.contentType;return!i&&t&&t.name&&(i=Tw.lookup(t.name)),!i&&t&&t.path&&(i=Tw.lookup(t.path)),!i&&t&&t.readable&&zt(t,"httpVersion")&&(i=t.headers["content-type"]),!i&&(e.filepath||e.filename)&&(i=Tw.lookup(e.filepath||e.filename)),!i&&t&&typeof t=="object"&&(i=Ce.DEFAULT_CONTENT_TYPE),i};Ce.prototype._multiPartFooter=function(){return function(t){var e=Ce.LINE_BREAK,i=this._streams.length===0;i&&(e+=this._lastBoundary()),t(e)}.bind(this)};Ce.prototype._lastBoundary=function(){return"--"+this.getBoundary()+"--"+Ce.LINE_BREAK};Ce.prototype.getHeaders=function(t){var e,i={"content-type":"multipart/form-data; boundary="+this.getBoundary()};for(e in t)zt(t,e)&&(i[e.toLowerCase()]=t[e]);return i};Ce.prototype.setBoundary=function(t){if(typeof t!="string")throw new TypeError("FormData boundary must be a string");this._boundary=t};Ce.prototype.getBoundary=function(){return this._boundary||this._generateBoundary(),this._boundary};Ce.prototype.getBuffer=function(){for(var t=new Buffer.alloc(0),e=this.getBoundary(),i=0,n=this._streams.length;i{var Ur=1e3,Lr=Ur*60,Wr=Lr*60,Ea=Wr*24,yJ=Ea*7,PJ=Ea*365.25;nk.exports=function(t,e){e=e||{};var i=typeof t;if(i==="string"&&t.length>0)return jJ(t);if(i==="number"&&isFinite(t))return e.long?OJ(t):SJ(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))};function jJ(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 i=parseFloat(e[1]),n=(e[2]||"ms").toLowerCase();switch(n){case"years":case"year":case"yrs":case"yr":case"y":return i*PJ;case"weeks":case"week":case"w":return i*yJ;case"days":case"day":case"d":return i*Ea;case"hours":case"hour":case"hrs":case"hr":case"h":return i*Wr;case"minutes":case"minute":case"mins":case"min":case"m":return i*Lr;case"seconds":case"second":case"secs":case"sec":case"s":return i*Ur;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return i;default:return}}}}function SJ(t){var e=Math.abs(t);return e>=Ea?Math.round(t/Ea)+"d":e>=Wr?Math.round(t/Wr)+"h":e>=Lr?Math.round(t/Lr)+"m":e>=Ur?Math.round(t/Ur)+"s":t+"ms"}function OJ(t){var e=Math.abs(t);return e>=Ea?kc(t,e,Ea,"day"):e>=Wr?kc(t,e,Wr,"hour"):e>=Lr?kc(t,e,Lr,"minute"):e>=Ur?kc(t,e,Ur,"second"):t+" ms"}function kc(t,e,i,n){var a=e>=i*1.5;return Math.round(t/i)+" "+n+(a?"s":"")}});var qw=w((noe,tk)=>{function xJ(t){i.debug=i,i.default=i,i.coerce=l,i.disable=s,i.enable=a,i.enabled=o,i.humanize=kw(),i.destroy=u,Object.keys(t).forEach(c=>{i[c]=t[c]}),i.names=[],i.skips=[],i.formatters={};function e(c){let p=0;for(let d=0;d{if($==="%%")return"%";b++;let X=i.formatters[N];if(typeof X=="function"){let F=f[b];$=X.call(v,F),f.splice(b,1),b--}return $}),i.formatArgs.call(v,f),(v.log||i.log).apply(v,f)}return m.namespace=c,m.useColors=i.useColors(),m.color=i.selectColor(c),m.extend=n,m.destroy=i.destroy,Object.defineProperty(m,"enabled",{enumerable:!0,configurable:!1,get:()=>d!==null?d:(h!==i.namespaces&&(h=i.namespaces,g=i.enabled(c)),g),set:f=>{d=f}}),typeof i.init=="function"&&i.init(m),m}function n(c,p){let d=i(this.namespace+(typeof p>"u"?":":p)+c);return d.log=this.log,d}function a(c){i.save(c),i.namespaces=c,i.names=[],i.skips=[];let p=(typeof c=="string"?c:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(let d of p)d[0]==="-"?i.skips.push(d.slice(1)):i.names.push(d)}function r(c,p){let d=0,h=0,g=-1,m=0;for(;d"-"+p)].join(",");return i.enable(""),c}function o(c){for(let p of i.skips)if(r(c,p))return!1;for(let p of i.names)if(r(c,p))return!0;return!1}function l(c){return c instanceof Error?c.stack||c.message:c}function u(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return i.enable(i.load()),i}tk.exports=xJ});var ak=w((Bi,qc)=>{Bi.formatArgs=MJ;Bi.save=EJ;Bi.load=kJ;Bi.useColors=TJ;Bi.storage=qJ();Bi.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`."))}})();Bi.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 TJ(){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 MJ(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+qc.exports.humanize(this.diff),!this.useColors)return;let e="color: "+this.color;t.splice(1,0,e,"color: inherit");let i=0,n=0;t[0].replace(/%[a-zA-Z%]/g,a=>{a!=="%%"&&(i++,a==="%c"&&(n=i))}),t.splice(n,0,e)}Bi.log=console.debug||console.log||(()=>{});function EJ(t){try{t?Bi.storage.setItem("debug",t):Bi.storage.removeItem("debug")}catch{}}function kJ(){let t;try{t=Bi.storage.getItem("debug")||Bi.storage.getItem("DEBUG")}catch{}return!t&&typeof process<"u"&&"env"in process&&(t=process.env.DEBUG),t}function qJ(){try{return localStorage}catch{}}qc.exports=qw()(Bi);var{formatters:_J}=qc.exports;_J.j=function(t){try{return JSON.stringify(t)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}});var sk=w((mi,Hc)=>{var HJ=require("tty"),_c=require("util");mi.init=NJ;mi.log=DJ;mi.formatArgs=IJ;mi.save=GJ;mi.load=$J;mi.useColors=RJ;mi.destroy=_c.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");mi.colors=[6,2,3,4,5,1];try{let t=require("supports-color");t&&(t.stderr||t).level>=2&&(mi.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{}mi.inspectOpts=Object.keys(process.env).filter(t=>/^debug_/i.test(t)).reduce((t,e)=>{let i=e.substring(6).toLowerCase().replace(/_([a-z])/g,(a,r)=>r.toUpperCase()),n=process.env[e];return/^(yes|on|true|enabled)$/i.test(n)?n=!0:/^(no|off|false|disabled)$/i.test(n)?n=!1:n==="null"?n=null:n=Number(n),t[i]=n,t},{});function RJ(){return"colors"in mi.inspectOpts?!!mi.inspectOpts.colors:HJ.isatty(process.stderr.fd)}function IJ(t){let{namespace:e,useColors:i}=this;if(i){let n=this.color,a="\x1B[3"+(n<8?n:"8;5;"+n),r=` ${a};1m${e} \x1B[0m`;t[0]=r+t[0].split(` `).join(` -`+r),t.push(a+"m+"+_c.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=kJ()+e+" "+t[0]}function kJ(){return mi.inspectOpts.hideDate?"":new Date().toISOString()+" "}function qJ(...t){return process.stderr.write(qc.formatWithOptions(mi.inspectOpts,...t)+` -`)}function _J(t){t?process.env.DEBUG=t:delete process.env.DEBUG}function HJ(){return process.env.DEBUG}function RJ(t){t.inspectOpts={};let e=Object.keys(mi.inspectOpts);for(let i=0;ie.trim()).join(" ")};tk.O=function(t){return this.inspectOpts.colors=this.useColors,qc.inspect(t,this.inspectOpts)}});var Eo=w((Qse,kw)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?kw.exports=nk():kw.exports=ak()});var rk=w(qw=>{"use strict";Object.defineProperty(qw,"__esModule",{value:!0});function IJ(t){return function(e,i){return new Promise((n,a)=>{t.call(this,e,i,(r,s)=>{r?a(r):n(s)})})}}qw.default=IJ});var lk=w((Hw,ok)=>{"use strict";var sk=Hw&&Hw.__importDefault||function(t){return t&&t.__esModule?t:{default:t}},zJ=require("events"),DJ=sk(Eo()),GJ=sk(rk()),ko=DJ.default("agent-base");function $J(t){return!!t&&typeof t.addRequest=="function"}function _w(){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 Hc(t,e){return new Hc.Agent(t,e)}(function(t){class e extends zJ.EventEmitter{constructor(n,a){super();let r=a;typeof n=="function"?this.callback=n:n&&(r=n),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:_w()?443:80}set defaultPort(n){this.explicitDefaultPort=n}get protocol(){return typeof this.explicitProtocol=="string"?this.explicitProtocol:_w()?"https:":"http:"}set protocol(n){this.explicitProtocol=n}callback(n,a,r){throw new Error('"agent-base" has no default implementation, you must subclass and override `callback()`')}addRequest(n,a){let r=Object.assign({},a);typeof r.secureEndpoint!="boolean"&&(r.secureEndpoint=_w()),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,n._last=!0,n.shouldKeepAlive=!1;let s=!1,o=null,l=r.timeout||this.timeout,u=h=>{n._hadError||(n.emit("error",h),n._hadError=!0)},c=()=>{o=null,s=!0;let h=new Error(`A "socket" was not created for HTTP request before ${l}ms`);h.code="ETIMEOUT",u(h)},p=h=>{s||(o!==null&&(clearTimeout(o),o=null),u(h))},d=h=>{if(s)return;if(o!=null&&(clearTimeout(o),o=null),$J(h)){ko("Callback returned another Agent instance %o",h.constructor.name),h.addRequest(n,r);return}if(h){h.once("free",()=>{this.freeSocket(h,r)}),n.onSocket(h);return}let g=new Error(`no Duplex stream was returned to agent-base for \`${n.method} ${n.path}\``);u(g)};if(typeof this.callback!="function"){u(new Error("`callback` is not defined"));return}this.promisifiedCallback||(this.callback.length>=3?(ko("Converting legacy callback function to promise"),this.promisifiedCallback=GJ.default(this.callback)):this.promisifiedCallback=this.callback),typeof l=="number"&&l>0&&(o=setTimeout(c,l)),"port"in r&&typeof r.port!="number"&&(r.port=Number(r.port));try{ko("Resolving socket for %o request: %o",r.protocol,`${n.method} ${n.path}`),Promise.resolve(this.promisifiedCallback(n,r)).then(d,p)}catch(h){Promise.reject(h).catch(p)}}freeSocket(n,a){ko("Freeing socket %o %o",n.constructor.name,a),n.destroy()}destroy(){ko("Destroying agent %o",this.constructor.name)}}t.Agent=e,t.prototype=t.Agent.prototype})(Hc||(Hc={}));ok.exports=Hc});var uk=w(_o=>{"use strict";var NJ=_o&&_o.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(_o,"__esModule",{value:!0});var UJ=NJ(Eo()),qo=UJ.default("https-proxy-agent:parse-proxy-response");function LJ(t){return new Promise((e,i)=>{let n=0,a=[];function r(){let p=t.read();p?c(p):t.once("readable",r)}function s(){t.removeListener("end",l),t.removeListener("error",u),t.removeListener("close",o),t.removeListener("readable",r)}function o(p){qo("onclose had error %o",p)}function l(){qo("onend")}function u(p){s(),qo("onerror %o",p),i(p)}function c(p){a.push(p),n+=p.length;let d=Buffer.concat(a,n);if(d.indexOf(`\r +`+r),t.push(a+"m+"+Hc.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=zJ()+e+" "+t[0]}function zJ(){return mi.inspectOpts.hideDate?"":new Date().toISOString()+" "}function DJ(...t){return process.stderr.write(_c.formatWithOptions(mi.inspectOpts,...t)+` +`)}function GJ(t){t?process.env.DEBUG=t:delete process.env.DEBUG}function $J(){return process.env.DEBUG}function NJ(t){t.inspectOpts={};let e=Object.keys(mi.inspectOpts);for(let i=0;ie.trim()).join(" ")};rk.O=function(t){return this.inspectOpts.colors=this.useColors,_c.inspect(t,this.inspectOpts)}});var qo=w((toe,_w)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?_w.exports=ak():_w.exports=sk()});var ok=w(Hw=>{"use strict";Object.defineProperty(Hw,"__esModule",{value:!0});function UJ(t){return function(e,i){return new Promise((n,a)=>{t.call(this,e,i,(r,s)=>{r?a(r):n(s)})})}}Hw.default=UJ});var ck=w((Iw,uk)=>{"use strict";var lk=Iw&&Iw.__importDefault||function(t){return t&&t.__esModule?t:{default:t}},LJ=require("events"),WJ=lk(qo()),BJ=lk(ok()),_o=WJ.default("agent-base");function FJ(t){return!!t&&typeof t.addRequest=="function"}function Rw(){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 Rc(t,e){return new Rc.Agent(t,e)}(function(t){class e extends LJ.EventEmitter{constructor(n,a){super();let r=a;typeof n=="function"?this.callback=n:n&&(r=n),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:Rw()?443:80}set defaultPort(n){this.explicitDefaultPort=n}get protocol(){return typeof this.explicitProtocol=="string"?this.explicitProtocol:Rw()?"https:":"http:"}set protocol(n){this.explicitProtocol=n}callback(n,a,r){throw new Error('"agent-base" has no default implementation, you must subclass and override `callback()`')}addRequest(n,a){let r=Object.assign({},a);typeof r.secureEndpoint!="boolean"&&(r.secureEndpoint=Rw()),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,n._last=!0,n.shouldKeepAlive=!1;let s=!1,o=null,l=r.timeout||this.timeout,u=h=>{n._hadError||(n.emit("error",h),n._hadError=!0)},c=()=>{o=null,s=!0;let h=new Error(`A "socket" was not created for HTTP request before ${l}ms`);h.code="ETIMEOUT",u(h)},p=h=>{s||(o!==null&&(clearTimeout(o),o=null),u(h))},d=h=>{if(s)return;if(o!=null&&(clearTimeout(o),o=null),FJ(h)){_o("Callback returned another Agent instance %o",h.constructor.name),h.addRequest(n,r);return}if(h){h.once("free",()=>{this.freeSocket(h,r)}),n.onSocket(h);return}let g=new Error(`no Duplex stream was returned to agent-base for \`${n.method} ${n.path}\``);u(g)};if(typeof this.callback!="function"){u(new Error("`callback` is not defined"));return}this.promisifiedCallback||(this.callback.length>=3?(_o("Converting legacy callback function to promise"),this.promisifiedCallback=BJ.default(this.callback)):this.promisifiedCallback=this.callback),typeof l=="number"&&l>0&&(o=setTimeout(c,l)),"port"in r&&typeof r.port!="number"&&(r.port=Number(r.port));try{_o("Resolving socket for %o request: %o",r.protocol,`${n.method} ${n.path}`),Promise.resolve(this.promisifiedCallback(n,r)).then(d,p)}catch(h){Promise.reject(h).catch(p)}}freeSocket(n,a){_o("Freeing socket %o %o",n.constructor.name,a),n.destroy()}destroy(){_o("Destroying agent %o",this.constructor.name)}}t.Agent=e,t.prototype=t.Agent.prototype})(Rc||(Rc={}));uk.exports=Rc});var pk=w(Ro=>{"use strict";var VJ=Ro&&Ro.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Ro,"__esModule",{value:!0});var JJ=VJ(qo()),Ho=JJ.default("https-proxy-agent:parse-proxy-response");function ZJ(t){return new Promise((e,i)=>{let n=0,a=[];function r(){let p=t.read();p?c(p):t.once("readable",r)}function s(){t.removeListener("end",l),t.removeListener("error",u),t.removeListener("close",o),t.removeListener("readable",r)}function o(p){Ho("onclose had error %o",p)}function l(){Ho("onend")}function u(p){s(),Ho("onerror %o",p),i(p)}function c(p){a.push(p),n+=p.length;let d=Buffer.concat(a,n);if(d.indexOf(`\r \r -`)===-1){qo("have not received end of HTTP headers yet..."),r();return}let g=d.toString("ascii",0,d.indexOf(`\r -`)),m=+g.split(" ")[1];qo("got proxy server response: %o",g),e({statusCode:m,buffered:d})}t.on("error",u),t.on("close",o),t.on("end",l),r()})}_o.default=LJ});var dk=w(ka=>{"use strict";var WJ=ka&&ka.__awaiter||function(t,e,i,n){function a(r){return r instanceof i?r:new i(function(s){s(r)})}return new(i||(i=Promise))(function(r,s){function o(c){try{u(n.next(c))}catch(p){s(p)}}function l(c){try{u(n.throw(c))}catch(p){s(p)}}function u(c){c.done?r(c.value):a(c.value).then(o,l)}u((n=n.apply(t,e||[])).next())})},Wr=ka&&ka.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(ka,"__esModule",{value:!0});var ck=Wr(require("net")),pk=Wr(require("tls")),BJ=Wr(require("url")),FJ=Wr(require("assert")),VJ=Wr(Eo()),JJ=lk(),ZJ=Wr(uk()),Ho=VJ.default("https-proxy-agent:agent"),Rw=class extends JJ.Agent{constructor(e){let i;if(typeof e=="string"?i=BJ.default.parse(e):i=e,!i)throw new Error("an HTTP(S) proxy server `host` and `port` must be specified!");Ho("creating new HttpsProxyAgent instance: %o",i),super(i);let n=Object.assign({},i);this.secureProxy=i.secureProxy||YJ(n.protocol),n.host=n.hostname||n.host,typeof n.port=="string"&&(n.port=parseInt(n.port,10)),!n.port&&n.host&&(n.port=this.secureProxy?443:80),this.secureProxy&&!("ALPNProtocols"in n)&&(n.ALPNProtocols=["http 1.1"]),n.host&&n.path&&(delete n.path,delete n.pathname),this.proxy=n}callback(e,i){return WJ(this,void 0,void 0,function*(){let{proxy:n,secureProxy:a}=this,r;a?(Ho("Creating `tls.Socket`: %o",n),r=pk.default.connect(n)):(Ho("Creating `net.Socket`: %o",n),r=ck.default.connect(n));let s=Object.assign({},n.headers),l=`CONNECT ${`${i.host}:${i.port}`} HTTP/1.1\r -`;n.auth&&(s["Proxy-Authorization"]=`Basic ${Buffer.from(n.auth).toString("base64")}`);let{host:u,port:c,secureEndpoint:p}=i;QJ(c,p)||(u+=`:${c}`),s.Host=u,s.Connection="close";for(let f of Object.keys(s))l+=`${f}: ${s[f]}\r -`;let d=ZJ.default(r);r.write(`${l}\r -`);let{statusCode:h,buffered:g}=yield d;if(h===200){if(e.once("socket",KJ),i.secureEndpoint){Ho("Upgrading socket connection to TLS");let f=i.servername||i.host;return pk.default.connect(Object.assign(Object.assign({},XJ(i,"host","hostname","path","port")),{socket:r,servername:f}))}return r}r.destroy();let m=new ck.default.Socket({writable:!1});return m.readable=!0,e.once("socket",f=>{Ho("replaying proxy buffer for failed request"),FJ.default(f.listenerCount("data")>0),f.push(g),f.push(null)}),m})}};ka.default=Rw;function KJ(t){t.resume()}function QJ(t,e){return!!(!e&&t===80||e&&t===443)}function YJ(t){return typeof t=="string"?/^https:?$/i.test(t):!1}function XJ(t,...e){let i={},n;for(n in t)e.includes(n)||(i[n]=t[n]);return i}});var gk=w((Dw,hk)=>{"use strict";var e4=Dw&&Dw.__importDefault||function(t){return t&&t.__esModule?t:{default:t}},Iw=e4(dk());function zw(t){return new Iw.default(t)}(function(t){t.HttpsProxyAgent=Iw.default,t.prototype=Iw.default.prototype})(zw||(zw={}));hk.exports=zw});var fk=w((ioe,mk)=>{var Ro;mk.exports=function(){if(!Ro){try{Ro=Eo()("follow-redirects")}catch{}typeof Ro!="function"&&(Ro=function(){})}Ro.apply(null,arguments)}});var bk=w((noe,Kw)=>{var zo=require("url"),Io=zo.URL,i4=require("http"),n4=require("https"),Lw=require("stream").Writable,Ww=require("assert"),wk=fk();(function(){var e=typeof process<"u",i=typeof window<"u"&&typeof document<"u",n=_a(Error.captureStackTrace);!e&&(i||!n)&&console.warn("The follow-redirects package should be excluded from browser builds.")})();var Bw=!1;try{Ww(new Io(""))}catch(t){Bw=t.code==="ERR_INVALID_URL"}var t4=["Authorization","Proxy-Authorization","Cookie"],a4=["auth","host","hostname","href","path","pathname","port","protocol","query","search","hash"],Fw=["abort","aborted","connect","error","socket","timeout"],Vw=Object.create(null);Fw.forEach(function(t){Vw[t]=function(e,i,n){this._redirectable.emit(t,e,i,n)}});var $w=Do("ERR_INVALID_URL","Invalid URL",TypeError),Nw=Do("ERR_FR_REDIRECTION_FAILURE","Redirected request failed"),r4=Do("ERR_FR_TOO_MANY_REDIRECTS","Maximum number of redirects exceeded",Nw),s4=Do("ERR_FR_MAX_BODY_LENGTH_EXCEEDED","Request body larger than maxBodyLength limit"),o4=Do("ERR_STREAM_WRITE_AFTER_END","write after end"),l4=Lw.prototype.destroy||Ck;function Fi(t,e){Lw.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 i=this;this._onNativeResponse=function(n){try{i._processResponse(n)}catch(a){i.emit("error",a instanceof Nw?a:new Nw({cause:a}))}},this._headerFilter=new RegExp("^(?:"+t4.concat(t.sensitiveHeaders).map(g4).join("|")+")$","i"),this._performRequest()}Fi.prototype=Object.create(Lw.prototype);Fi.prototype.abort=function(){Zw(this._currentRequest),this._currentRequest.abort(),this.emit("abort")};Fi.prototype.destroy=function(t){return Zw(this._currentRequest,t),l4.call(this,t),this};Fi.prototype.write=function(t,e,i){if(this._ending)throw new o4;if(!qa(t)&&!d4(t))throw new TypeError("data should be a string, Buffer or Uint8Array");if(_a(e)&&(i=e,e=null),t.length===0){i&&i();return}this._requestBodyLength+t.length<=this._options.maxBodyLength?(this._requestBodyLength+=t.length,this._requestBodyBuffers.push({data:t,encoding:e}),this._currentRequest.write(t,e,i)):(this.emit("error",new s4),this.abort())};Fi.prototype.end=function(t,e,i){if(_a(t)?(i=t,t=e=null):_a(e)&&(i=e,e=null),!t)this._ended=this._ending=!0,this._currentRequest.end(null,null,i);else{var n=this,a=this._currentRequest;this.write(t,e,function(){n._ended=!0,a.end(null,null,i)}),this._ending=!0}};Fi.prototype.setHeader=function(t,e){this._options.headers[t]=e,this._currentRequest.setHeader(t,e)};Fi.prototype.removeHeader=function(t){delete this._options.headers[t],this._currentRequest.removeHeader(t)};Fi.prototype.setTimeout=function(t,e){var i=this;function n(s){s.setTimeout(t),s.removeListener("timeout",s.destroy),s.addListener("timeout",s.destroy)}function a(s){i._timeout&&clearTimeout(i._timeout),i._timeout=setTimeout(function(){i.emit("timeout"),r()},t),n(s)}function r(){i._timeout&&(clearTimeout(i._timeout),i._timeout=null),i.removeListener("abort",r),i.removeListener("error",r),i.removeListener("response",r),i.removeListener("close",r),e&&i.removeListener("timeout",e),i.socket||i._currentRequest.removeListener("socket",a)}return e&&this.on("timeout",e),this.socket?a(this.socket):this._currentRequest.once("socket",a),this.on("socket",n),this.on("abort",r),this.on("error",r),this.on("response",r),this.on("close",r),this};["flushHeaders","getHeader","setNoDelay","setSocketKeepAlive"].forEach(function(t){Fi.prototype[t]=function(e,i){return this._currentRequest[t](e,i)}});["aborted","connection","socket"].forEach(function(t){Object.defineProperty(Fi.prototype,t,{get:function(){return this._currentRequest[t]}})});Fi.prototype._sanitizeOptions=function(t){if(t.headers||(t.headers={}),p4(t.sensitiveHeaders)||(t.sensitiveHeaders=[]),t.host&&(t.hostname||(t.hostname=t.host),delete t.host),!t.pathname&&t.path){var e=t.path.indexOf("?");e<0?t.pathname=t.path:(t.pathname=t.path.substring(0,e),t.search=t.path.substring(e))}};Fi.prototype._performRequest=function(){var t=this._options.protocol,e=this._options.nativeProtocols[t];if(!e)throw new TypeError("Unsupported protocol "+t);if(this._options.agents){var i=t.slice(0,-1);this._options.agent=this._options.agents[i]}var n=this._currentRequest=e.request(this._options,this._onNativeResponse);n._redirectable=this;for(var a of Fw)n.on(a,Vw[a]);if(this._currentUrl=/^\//.test(this._options.path)?zo.format(this._options):this._options.path,this._isRedirect){var r=0,s=this,o=this._requestBodyBuffers;(function l(u){if(n===s._currentRequest)if(u)s.emit("error",u);else if(r=400){t.responseUrl=this._currentUrl,t.redirects=this._redirects,this.emit("response",t),this._requestBodyBuffers=[];return}if(Zw(this._currentRequest),t.destroy(),++this._redirectCount>this._options.maxRedirects)throw new r4;var n,a=this._options.beforeRedirect;a&&(n=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=[],Gw(/^content-/i,this._options.headers));var s=Gw(/^host$/i,this._options.headers),o=Jw(this._currentUrl),l=s||o.host,u=/^\w+:/.test(i)?this._currentUrl:zo.format(Object.assign(o,{host:l})),c=u4(i,u);if(wk("redirecting to",c.href),this._isRedirect=!0,Uw(c,this._options),(c.protocol!==o.protocol&&c.protocol!=="https:"||c.host!==l&&!c4(c.host,l))&&Gw(this._headerFilter,this._options.headers),_a(a)){var p={headers:t.headers,statusCode:e},d={url:u,method:r,headers:n};a(this._options,p,d),this._sanitizeOptions(this._options)}this._performRequest()};function vk(t){var e={maxRedirects:21,maxBodyLength:10485760},i={};return Object.keys(t).forEach(function(n){var a=n+":",r=i[a]=t[n],s=e[n]=Object.create(r);function o(u,c,p){return h4(u)?u=Uw(u):qa(u)?u=Uw(Jw(u)):(p=c,c=Ak(u),u={protocol:a}),_a(c)&&(p=c,c=null),c=Object.assign({maxRedirects:e.maxRedirects,maxBodyLength:e.maxBodyLength},u,c),c.nativeProtocols=i,!qa(c.host)&&!qa(c.hostname)&&(c.hostname="::1"),Ww.equal(c.protocol,a,"protocol mismatch"),wk("options",c),new Fi(c,p)}function l(u,c,p){var d=s.request(u,c,p);return d.end(),d}Object.defineProperties(s,{request:{value:o,configurable:!0,enumerable:!0,writable:!0},get:{value:l,configurable:!0,enumerable:!0,writable:!0}})}),e}function Ck(){}function Jw(t){var e;if(Bw)e=new Io(t);else if(e=Ak(zo.parse(t)),!qa(e.protocol))throw new $w({input:t});return e}function u4(t,e){return Bw?new Io(t,e):Jw(zo.resolve(e,t))}function Ak(t){if(/^\[/.test(t.hostname)&&!/^\[[:0-9a-f]+\]$/i.test(t.hostname))throw new $w({input:t.href||t});if(/^\[/.test(t.host)&&!/^\[[:0-9a-f]+\](:\d+)?$/i.test(t.host))throw new $w({input:t.href||t});return t}function Uw(t,e){var i=e||{};for(var n of a4)i[n]=t[n];return i.hostname.startsWith("[")&&(i.hostname=i.hostname.slice(1,-1)),i.port!==""&&(i.port=Number(i.port)),i.path=i.search?i.pathname+i.search:i.pathname,i}function Gw(t,e){var i;for(var n in e)t.test(n)&&(i=e[n],delete e[n]);return i===null||typeof i>"u"?void 0:String(i).trim()}function Do(t,e,i){function n(a){_a(Error.captureStackTrace)&&Error.captureStackTrace(this,this.constructor),Object.assign(this,a||{}),this.code=t,this.message=this.cause?e+": "+this.cause.message:e}return n.prototype=new(i||Error),Object.defineProperties(n.prototype,{constructor:{value:n,enumerable:!1},name:{value:"Error ["+t+"]",enumerable:!1}}),n}function Zw(t,e){for(var i of Fw)t.removeListener(i,Vw[i]);t.on("error",Ck),t.destroy(e)}function c4(t,e){Ww(qa(t)&&qa(e));var i=t.length-e.length-1;return i>0&&t[i]==="."&&t.endsWith(e)}function p4(t){return t instanceof Array}function qa(t){return typeof t=="string"||t instanceof String}function _a(t){return typeof t=="function"}function d4(t){return typeof t=="object"&&"length"in t}function h4(t){return Io&&t instanceof Io}function g4(t){return t.replace(/[\]\\/()*+?.$]/g,"\\$&")}Kw.exports=vk({http:i4,https:n4});Kw.exports.wrap=vk});var bq=w((toe,Aq)=>{"use strict";var Fk=XE(),m4=require("crypto"),f4=require("url"),Vk=gk(),w4=require("http"),v4=require("https"),Jk=require("http2"),hv=require("util"),yk=require("path"),C4=bk(),Dt=require("zlib"),Vi=require("stream"),A4=require("events");function Zk(t,e){return function(){return t.apply(e,arguments)}}var{toString:b4}=Object.prototype,{getPrototypeOf:Wc}=Object,{iterator:Bc,toStringTag:Kk}=Symbol,Fc=(t=>e=>{let i=b4.call(e);return t[i]||(t[i]=i.slice(8,-1).toLowerCase())})(Object.create(null)),xn=t=>(t=t.toLowerCase(),e=>Fc(e)===t),Vc=t=>e=>typeof e===t,{isArray:Zr}=Array,Vr=Vc("undefined");function Uo(t){return t!==null&&!Vr(t)&&t.constructor!==null&&!Vr(t.constructor)&&Ji(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}var Qk=xn("ArrayBuffer");function y4(t){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&Qk(t.buffer),e}var P4=Vc("string"),Ji=Vc("function"),Yk=Vc("number"),Lo=t=>t!==null&&typeof t=="object",j4=t=>t===!0||t===!1,zc=t=>{if(Fc(t)!=="object")return!1;let e=Wc(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Kk in t)&&!(Bc in t)},S4=t=>{if(!Lo(t)||Uo(t))return!1;try{return Object.keys(t).length===0&&Object.getPrototypeOf(t)===Object.prototype}catch{return!1}},O4=xn("Date"),x4=xn("File"),T4=t=>!!(t&&typeof t.uri<"u"),M4=t=>t&&typeof t.getParts<"u",E4=xn("Blob"),k4=xn("FileList"),q4=t=>Lo(t)&&Ji(t.pipe);function _4(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}}var Pk=_4(),jk=typeof Pk.FormData<"u"?Pk.FormData:void 0,H4=t=>{if(!t)return!1;if(jk&&t instanceof jk)return!0;let e=Wc(t);if(!e||e===Object.prototype||!Ji(t.append))return!1;let i=Fc(t);return i==="formdata"||i==="object"&&Ji(t.toString)&&t.toString()==="[object FormData]"},R4=xn("URLSearchParams"),[I4,z4,D4,G4]=["ReadableStream","Request","Response","Headers"].map(xn),$4=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Wo(t,e,{allOwnKeys:i=!1}={}){if(t===null||typeof t>"u")return;let n,a;if(typeof t!="object"&&(t=[t]),Zr(t))for(n=0,a=t.length;n0;)if(a=i[n],e===a.toLowerCase())return a;return null}var Ha=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,eq=t=>!Vr(t)&&t!==Ha;function tv(...t){let{caseless:e,skipUndefined:i}=eq(this)&&this||{},n={},a=(r,s)=>{if(s==="__proto__"||s==="constructor"||s==="prototype")return;let o=e&&Xk(n,s)||s,l=av(n,o)?n[o]:void 0;zc(l)&&zc(r)?n[o]=tv(l,r):zc(r)?n[o]=tv({},r):Zr(r)?n[o]=r.slice():(!i||!Vr(r))&&(n[o]=r)};for(let r=0,s=t.length;r(Wo(e,(a,r)=>{i&&Ji(a)?Object.defineProperty(t,r,{__proto__:null,value:Zk(a,i),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(t,r,{__proto__:null,value:a,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:n}),t),U4=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),L4=(t,e,i,n)=>{t.prototype=Object.create(e.prototype,n),Object.defineProperty(t.prototype,"constructor",{__proto__:null,value:t,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(t,"super",{__proto__:null,value:e.prototype}),i&&Object.assign(t.prototype,i)},W4=(t,e,i,n)=>{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],(!n||n(s,t,e))&&!o[s]&&(e[s]=t[s],o[s]=!0);t=i!==!1&&Wc(t)}while(t&&(!i||i(t,e))&&t!==Object.prototype);return e},B4=(t,e,i)=>{t=String(t),(i===void 0||i>t.length)&&(i=t.length),i-=e.length;let n=t.indexOf(e,i);return n!==-1&&n===i},F4=t=>{if(!t)return null;if(Zr(t))return t;let e=t.length;if(!Yk(e))return null;let i=new Array(e);for(;e-- >0;)i[e]=t[e];return i},V4=(t=>e=>t&&e instanceof t)(typeof Uint8Array<"u"&&Wc(Uint8Array)),J4=(t,e)=>{let n=(t&&t[Bc]).call(t),a;for(;(a=n.next())&&!a.done;){let r=a.value;e.call(t,r[0],r[1])}},Z4=(t,e)=>{let i,n=[];for(;(i=t.exec(e))!==null;)n.push(i);return n},K4=xn("HTMLFormElement"),Q4=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(i,n,a){return n.toUpperCase()+a}),av=(({hasOwnProperty:t})=>(e,i)=>t.call(e,i))(Object.prototype),Y4=xn("RegExp"),iq=(t,e)=>{let i=Object.getOwnPropertyDescriptors(t),n={};Wo(i,(a,r)=>{let s;(s=e(a,r,t))!==!1&&(n[r]=s||a)}),Object.defineProperties(t,n)},X4=t=>{iq(t,(e,i)=>{if(Ji(t)&&["arguments","caller","callee"].includes(i))return!1;let n=t[i];if(Ji(n)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+i+"'")})}})},e3=(t,e)=>{let i={},n=a=>{a.forEach(r=>{i[r]=!0})};return Zr(t)?n(t):n(String(t).split(e)),i},i3=()=>{},n3=(t,e)=>t!=null&&Number.isFinite(t=+t)?t:e;function t3(t){return!!(t&&Ji(t.append)&&t[Kk]==="FormData"&&t[Bc])}var a3=t=>{let e=new WeakSet,i=n=>{if(Lo(n)){if(e.has(n))return;if(Uo(n))return n;if(!("toJSON"in n)){e.add(n);let a=Zr(n)?[]:{};return Wo(n,(r,s)=>{let o=i(r);!Vr(o)&&(a[s]=o)}),e.delete(n),a}}return n};return i(t)},r3=xn("AsyncFunction"),s3=t=>t&&(Lo(t)||Ji(t))&&Ji(t.then)&&Ji(t.catch),nq=((t,e)=>t?setImmediate:e?((i,n)=>(Ha.addEventListener("message",({source:a,data:r})=>{a===Ha&&r===i&&n.length&&n.shift()()},!1),a=>{n.push(a),Ha.postMessage(i,"*")}))(`axios@${Math.random()}`,[]):i=>setTimeout(i))(typeof setImmediate=="function",Ji(Ha.postMessage)),o3=typeof queueMicrotask<"u"?queueMicrotask.bind(Ha):typeof process<"u"&&process.nextTick||nq,l3=t=>t!=null&&Ji(t[Bc]),C={isArray:Zr,isArrayBuffer:Qk,isBuffer:Uo,isFormData:H4,isArrayBufferView:y4,isString:P4,isNumber:Yk,isBoolean:j4,isObject:Lo,isPlainObject:zc,isEmptyObject:S4,isReadableStream:I4,isRequest:z4,isResponse:D4,isHeaders:G4,isUndefined:Vr,isDate:O4,isFile:x4,isReactNativeBlob:T4,isReactNative:M4,isBlob:E4,isRegExp:Y4,isFunction:Ji,isStream:q4,isURLSearchParams:R4,isTypedArray:V4,isFileList:k4,forEach:Wo,merge:tv,extend:N4,trim:$4,stripBOM:U4,inherits:L4,toFlatObject:W4,kindOf:Fc,kindOfTest:xn,endsWith:B4,toArray:F4,forEachEntry:J4,matchAll:Z4,isHTMLForm:K4,hasOwnProperty:av,hasOwnProp:av,reduceDescriptors:iq,freezeMethods:X4,toObjectSet:e3,toCamelCase:Q4,noop:i3,toFiniteNumber:n3,findKey:Xk,global:Ha,isContextDefined:eq,isSpecCompliantForm:t3,toJSONObject:a3,isAsyncFn:r3,isThenable:s3,setImmediate:nq,asap:o3,isIterable:l3},u3=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"]),c3=t=>{let e={},i,n,a;return t&&t.split(` -`).forEach(function(s){a=s.indexOf(":"),i=s.substring(0,a).trim().toLowerCase(),n=s.substring(a+1).trim(),!(!i||e[i]&&u3[i])&&(i==="set-cookie"?e[i]?e[i].push(n):e[i]=[n]:e[i]=e[i]?e[i]+", "+n:n)}),e};function p3(t){let e=0,i=t.length;for(;ee;){let n=t.charCodeAt(i-1);if(n!==9&&n!==32)break;i-=1}return e===0&&i===t.length?t:t.slice(e,i)}var d3=new RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+","g"),h3=new RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+","g");function gv(t,e){return C.isArray(t)?t.map(i=>gv(i,e)):p3(String(t).replace(e,""))}var g3=t=>gv(t,d3),m3=t=>gv(t,h3);function mv(t){let e=Object.create(null);return C.forEach(t.toJSON(),(i,n)=>{e[n]=m3(i)}),e}var Sk=Symbol("internals");function Go(t){return t&&String(t).trim().toLowerCase()}function Dc(t){return t===!1||t==null?t:C.isArray(t)?t.map(Dc):g3(String(t))}function f3(t){let e=Object.create(null),i=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g,n;for(;n=i.exec(t);)e[n[1]]=n[2];return e}var w3=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function Qw(t,e,i,n,a){if(C.isFunction(n))return n.call(this,e,i);if(a&&(e=i),!!C.isString(e)){if(C.isString(n))return e.indexOf(n)!==-1;if(C.isRegExp(n))return n.test(e)}}function v3(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,i,n)=>i.toUpperCase()+n)}function C3(t,e){let i=C.toCamelCase(" "+e);["get","set","has"].forEach(n=>{Object.defineProperty(t,n+i,{__proto__:null,value:function(a,r,s){return this[n].call(this,e,a,r,s)},configurable:!0})})}var ti=class{constructor(e){e&&this.set(e)}set(e,i,n){let a=this;function r(o,l,u){let c=Go(l);if(!c)throw new Error("header name must be a non-empty string");let p=C.findKey(a,c);(!p||a[p]===void 0||u===!0||u===void 0&&a[p]!==!1)&&(a[p||l]=Dc(o))}let s=(o,l)=>C.forEach(o,(u,c)=>r(u,c,l));if(C.isPlainObject(e)||e instanceof this.constructor)s(e,i);else if(C.isString(e)&&(e=e.trim())&&!w3(e))s(c3(e),i);else if(C.isObject(e)&&C.isIterable(e)){let o={},l,u;for(let c of e){if(!C.isArray(c))throw TypeError("Object iterator must return a key-value pair");o[u=c[0]]=(l=o[u])?C.isArray(l)?[...l,c[1]]:[l,c[1]]:c[1]}s(o,i)}else e!=null&&r(i,e,n);return this}get(e,i){if(e=Go(e),e){let n=C.findKey(this,e);if(n){let a=this[n];if(!i)return a;if(i===!0)return f3(a);if(C.isFunction(i))return i.call(this,a,n);if(C.isRegExp(i))return i.exec(a);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,i){if(e=Go(e),e){let n=C.findKey(this,e);return!!(n&&this[n]!==void 0&&(!i||Qw(this,this[n],n,i)))}return!1}delete(e,i){let n=this,a=!1;function r(s){if(s=Go(s),s){let o=C.findKey(n,s);o&&(!i||Qw(n,n[o],o,i))&&(delete n[o],a=!0)}}return C.isArray(e)?e.forEach(r):r(e),a}clear(e){let i=Object.keys(this),n=i.length,a=!1;for(;n--;){let r=i[n];(!e||Qw(this,this[r],r,e,!0))&&(delete this[r],a=!0)}return a}normalize(e){let i=this,n={};return C.forEach(this,(a,r)=>{let s=C.findKey(n,r);if(s){i[s]=Dc(a),delete i[r];return}let o=e?v3(r):String(r).trim();o!==r&&delete i[r],i[o]=Dc(a),n[o]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){let i=Object.create(null);return C.forEach(this,(n,a)=>{n!=null&&n!==!1&&(i[a]=e&&C.isArray(n)?n.join(", "):n)}),i}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,i])=>e+": "+i).join(` -`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...i){let n=new this(e);return i.forEach(a=>n.set(a)),n}static accessor(e){let n=(this[Sk]=this[Sk]={accessors:{}}).accessors,a=this.prototype;function r(s){let o=Go(s);n[o]||(C3(a,s),n[o]=!0)}return C.isArray(e)?e.forEach(r):r(e),this}};ti.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);C.reduceDescriptors(ti.prototype,({value:t},e)=>{let i=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(n){this[i]=n}}});C.freezeMethods(ti);var A3="[REDACTED ****]";function b3(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 y3(t,e){let i=new Set(e.map(r=>String(r).toLowerCase())),n=[],a=r=>{if(r===null||typeof r!="object"||C.isBuffer(r))return r;if(n.indexOf(r)!==-1)return;r instanceof ti&&(r=r.toJSON()),n.push(r);let s;if(C.isArray(r))s=[],r.forEach((o,l)=>{let u=a(o);C.isUndefined(u)||(s[l]=u)});else{if(!C.isPlainObject(r)&&b3(r))return n.pop(),r;s=Object.create(null);for(let[o,l]of Object.entries(r)){let u=i.has(o.toLowerCase())?A3:a(l);C.isUndefined(u)||(s[o]=u)}}return n.pop(),s};return a(t)}var T=class t extends Error{static from(e,i,n,a,r,s){let o=new t(e.message,i||e.code,n,a,r);return o.cause=e,o.name=e.name,e.status!=null&&o.status==null&&(o.status=e.status),s&&Object.assign(o,s),o}constructor(e,i,n,a,r){super(e),Object.defineProperty(this,"message",{__proto__:null,value:e,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,i&&(this.code=i),n&&(this.config=n),a&&(this.request=a),r&&(this.response=r,this.status=r.status)}toJSON(){let e=this.config,i=e&&C.hasOwnProp(e,"redact")?e.redact:void 0,n=C.isArray(i)&&i.length>0?y3(e,i):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:n,code:this.code,status:this.status}}};T.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE";T.ERR_BAD_OPTION="ERR_BAD_OPTION";T.ECONNABORTED="ECONNABORTED";T.ETIMEDOUT="ETIMEDOUT";T.ECONNREFUSED="ECONNREFUSED";T.ERR_NETWORK="ERR_NETWORK";T.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS";T.ERR_DEPRECATED="ERR_DEPRECATED";T.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE";T.ERR_BAD_REQUEST="ERR_BAD_REQUEST";T.ERR_CANCELED="ERR_CANCELED";T.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT";T.ERR_INVALID_URL="ERR_INVALID_URL";T.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";function rv(t){return C.isPlainObject(t)||C.isArray(t)}function tq(t){return C.endsWith(t,"[]")?t.slice(0,-2):t}function Yw(t,e,i){return t?t.concat(e).map(function(a,r){return a=tq(a),!i&&r?"["+a+"]":a}).join(i?".":""):e}function P3(t){return C.isArray(t)&&!t.some(rv)}var j3=C.toFlatObject(C,{},null,function(e){return/^is[A-Z]/.test(e)});function Jc(t,e,i){if(!C.isObject(t))throw new TypeError("target must be an object");e=e||new(Fk||FormData),i=C.toFlatObject(i,{metaTokens:!0,dots:!1,indexes:!1},!1,function(f,v){return!C.isUndefined(v[f])});let n=i.metaTokens,a=i.visitor||p,r=i.dots,s=i.indexes,o=i.Blob||typeof Blob<"u"&&Blob,l=i.maxDepth===void 0?100:i.maxDepth,u=o&&C.isSpecCompliantForm(e);if(!C.isFunction(a))throw new TypeError("visitor must be a function");function c(m){if(m===null)return"";if(C.isDate(m))return m.toISOString();if(C.isBoolean(m))return m.toString();if(!u&&C.isBlob(m))throw new T("Blob is not supported. Use a Buffer instead.");return C.isArrayBuffer(m)||C.isTypedArray(m)?u&&typeof Blob=="function"?new Blob([m]):Buffer.from(m):m}function p(m,f,v){let y=m;if(C.isReactNative(e)&&C.isReactNativeBlob(m))return e.append(Yw(v,f,r),c(m)),!1;if(m&&!v&&typeof m=="object"){if(C.endsWith(f,"{}"))f=n?f:f.slice(0,-2),m=JSON.stringify(m);else if(C.isArray(m)&&P3(m)||(C.isFileList(m)||C.endsWith(f,"[]"))&&(y=C.toArray(m)))return f=tq(f),y.forEach(function(b,O){!(C.isUndefined(b)||b===null)&&e.append(s===!0?Yw([f],O,r):s===null?f:f+"[]",c(b))}),!1}return rv(m)?!0:(e.append(Yw(v,f,r),c(m)),!1)}let d=[],h=Object.assign(j3,{defaultVisitor:p,convertValue:c,isVisitable:rv});function g(m,f,v=0){if(!C.isUndefined(m)){if(v>l)throw new T("Object is too deeply nested ("+v+" levels). Max depth: "+l,T.ERR_FORM_DATA_DEPTH_EXCEEDED);if(d.indexOf(m)!==-1)throw Error("Circular reference detected in "+f.join("."));d.push(m),C.forEach(m,function(A,b){(!(C.isUndefined(A)||A===null)&&a.call(e,A,C.isString(b)?b.trim():b,f,h))===!0&&g(A,f?f.concat(b):[b],v+1)}),d.pop()}}if(!C.isObject(t))throw new TypeError("data must be an object");return g(t),e}function Ok(t){let e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(t).replace(/[!'()~]|%20/g,function(n){return e[n]})}function aq(t,e){this._pairs=[],t&&Jc(t,this,e)}var rq=aq.prototype;rq.append=function(e,i){this._pairs.push([e,i])};rq.toString=function(e){let i=e?function(n){return e.call(this,n,Ok)}:Ok;return this._pairs.map(function(a){return i(a[0])+"="+i(a[1])},"").join("&")};function S3(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function fv(t,e,i){if(!e)return t;let n=i&&i.encode||S3,a=C.isFunction(i)?{serialize:i}:i,r=a&&a.serialize,s;if(r?s=r(e,a):s=C.isURLSearchParams(e)?e.toString():new aq(e,a).toString(n),s){let o=t.indexOf("#");o!==-1&&(t=t.slice(0,o)),t+=(t.indexOf("?")===-1?"?":"&")+s}return t}var $c=class{constructor(){this.handlers=[]}use(e,i,n){return this.handlers.push({fulfilled:e,rejected:i,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){C.forEach(this.handlers,function(n){n!==null&&e(n)})}},Zc={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0},O3=f4.URLSearchParams,Xw="abcdefghijklmnopqrstuvwxyz",xk="0123456789",sq={DIGIT:xk,ALPHA:Xw,ALPHA_DIGIT:Xw+Xw.toUpperCase()+xk},x3=(t=16,e=sq.ALPHA_DIGIT)=>{let i="",{length:n}=e,a=new Uint32Array(t);m4.randomFillSync(a);for(let r=0;re[0]==="[]"?"":e[1]||e[0])}function R3(t){let e={},i=Object.keys(t),n,a=i.length,r;for(n=0;n=i.length;return s=!s&&C.isArray(a)?a.length:s,l?(C.hasOwnProp(a,s)?a[s]=C.isArray(a[s])?a[s].concat(n):[a[s],n]:a[s]=n,!o):((!C.hasOwnProp(a,s)||!C.isObject(a[s]))&&(a[s]=[]),e(i,n,a[s],r)&&C.isArray(a[s])&&(a[s]=R3(a[s])),!o)}if(C.isFormData(t)&&C.isFunction(t.entries)){let i={};return C.forEachEntry(t,(n,a)=>{e(H3(n),a,i,0)}),i}return null}var Br=(t,e)=>t!=null&&C.hasOwnProp(t,e)?t[e]:void 0;function I3(t,e,i){if(C.isString(t))try{return(e||JSON.parse)(t),C.trim(t)}catch(n){if(n.name!=="SyntaxError")throw n}return(i||JSON.stringify)(t)}var Bo={transitional:Zc,adapter:["xhr","http","fetch"],transformRequest:[function(e,i){let n=i.getContentType()||"",a=n.indexOf("application/json")>-1,r=C.isObject(e);if(r&&C.isHTMLForm(e)&&(e=new FormData(e)),C.isFormData(e))return a?JSON.stringify(oq(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 i.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let o;if(r){let l=Br(this,"formSerializer");if(n.indexOf("application/x-www-form-urlencoded")>-1)return _3(e,l).toString();if((o=C.isFileList(e))||n.indexOf("multipart/form-data")>-1){let u=Br(this,"env"),c=u&&u.FormData;return Jc(o?{"files[]":e}:e,c&&new c,l)}}return r||a?(i.setContentType("application/json",!1),I3(e)):e}],transformResponse:[function(e){let i=Br(this,"transitional")||Bo.transitional,n=i&&i.forcedJSONParsing,a=Br(this,"responseType"),r=a==="json";if(C.isResponse(e)||C.isReadableStream(e))return e;if(e&&C.isString(e)&&(n&&!a||r)){let o=!(i&&i.silentJSONParsing)&&r;try{return JSON.parse(e,Br(this,"parseReviver"))}catch(l){if(o)throw l.name==="SyntaxError"?T.from(l,T.ERR_BAD_RESPONSE,this,null,Br(this,"response")):l}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Qe.classes.FormData,Blob:Qe.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};C.forEach(["delete","get","head","post","put","patch","query"],t=>{Bo.headers[t]={}});function ev(t,e){let i=this||Bo,n=e||i,a=ti.from(n.headers),r=n.data;return C.forEach(t,function(o){r=o.call(i,r,a.normalize(),e?e.status:void 0)}),a.normalize(),r}function lq(t){return!!(t&&t.__CANCEL__)}var ut=class extends T{constructor(e,i,n){super(e??"canceled",T.ERR_CANCELED,i,n),this.name="CanceledError",this.__CANCEL__=!0}};function Fr(t,e,i){let n=i.config.validateStatus;!i.status||!n||n(i.status)?t(i):e(new T("Request failed with status code "+i.status,i.status>=400&&i.status<500?T.ERR_BAD_REQUEST:T.ERR_BAD_RESPONSE,i.config,i.request,i))}function z3(t){return typeof t!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function D3(t,e){return e?t.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):t}function vv(t,e,i){let n=!z3(e);return t&&(n||i===!1)?D3(t,e):e}var G3={ftp:21,gopher:70,http:80,https:443,ws:80,wss:443};function $3(t){try{return new URL(t)}catch{return null}}function N3(t){var e=(typeof t=="string"?$3(t):t)||{},i=e.protocol,n=e.host,a=e.port;if(typeof n!="string"||!n||typeof i!="string"||(i=i.split(":",1)[0],n=n.replace(/:\d*$/,""),a=parseInt(a)||G3[i]||0,!U3(n,a)))return"";var r=ov(i+"_proxy")||ov("all_proxy");return r&&r.indexOf("://")===-1&&(r=i+"://"+r),r}function U3(t,e){var i=ov("no_proxy").toLowerCase();return i?i==="*"?!1:i.split(/[,\s]/).every(function(n){if(!n)return!0;var a=n.match(/^(.+):(\d+)$/),r=a?a[1]:n,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 ov(t){return process.env[t.toLowerCase()]||process.env[t.toUpperCase()]||""}var $o="1.16.1";function uq(t){let e=/^([-+\w]{1,25}):(?:\/\/)?/.exec(t);return e&&e[1]||""}var L3=/^([^,;]+\/[^,;]+)?((?:;[^,;=]+=[^,;]+)*)(;base64)?,([\s\S]*)$/;function W3(t,e,i){let n=i&&i.Blob||Qe.classes.Blob,a=uq(t);if(e===void 0&&n&&(e=!0),a==="data"){t=a.length?t.slice(a.length+1):t;let r=L3.exec(t);if(!r)throw new T("Invalid URL",T.ERR_INVALID_URL);let s=r[1],o=r[2],l=r[3]?"base64":"utf8",u=r[4],c;s?c=o?s+o:s:o&&(c="text/plain"+o);let p=Buffer.from(decodeURIComponent(u),l);if(e){if(!n)throw new T("Blob is not supported",T.ERR_NOT_SUPPORT);return new n([p],{type:c})}return p}throw new T("Unsupported protocol "+a,T.ERR_NOT_SUPPORT)}var iv=Symbol("internals"),Nc=class extends Vi.Transform{constructor(e){e=C.toFlatObject(e,{maxRate:0,chunkSize:64*1024,minChunkSize:100,timeWindow:500,ticksRate:2,samplesCount:15},null,(n,a)=>!C.isUndefined(a[n])),super({readableHighWaterMark:e.chunkSize});let i=this[iv]={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",n=>{n==="progress"&&(i.isCaptured||(i.isCaptured=!0))})}_read(e){let i=this[iv];return i.onReadCallback&&i.onReadCallback(),super._read(e)}_transform(e,i,n){let a=this[iv],r=a.maxRate,s=this.readableHighWaterMark,o=a.timeWindow,l=1e3/o,u=r/l,c=a.minChunkSize!==!1?Math.max(a.minChunkSize,u*.01):0,p=(h,g)=>{let m=Buffer.byteLength(h);a.bytesSeen+=m,a.bytes+=m,a.isCaptured&&this.emit("progress",a.bytesSeen),this.push(h)?process.nextTick(g):a.onReadCallback=()=>{a.onReadCallback=null,process.nextTick(g)}},d=(h,g)=>{let m=Buffer.byteLength(h),f=null,v=s,y,A=0;if(r){let b=Date.now();(!a.ts||(A=b-a.ts)>=o)&&(a.ts=b,y=u-a.bytes,a.bytes=y<0?-y:0,A=0),y=u-a.bytes}if(r){if(y<=0)return setTimeout(()=>{g(null,h)},o-A);yv&&m-v>c&&(f=h.subarray(v),h=h.subarray(0,v)),p(h,f?()=>{process.nextTick(g,null,f)}:g)};d(e,function h(g,m){if(g)return n(g);m?d(m,h):n(null)})}},{asyncIterator:Tk}=Symbol,cq=async function*(t){t.stream?yield*t.stream():t.arrayBuffer?yield await t.arrayBuffer():t[Tk]?yield*t[Tk]():yield t},B3=Qe.ALPHABET.ALPHA_DIGIT+"-_",No=typeof TextEncoder=="function"?new TextEncoder:new hv.TextEncoder,Ra=`\r -`,F3=No.encode(Ra),V3=2,lv=class{constructor(e,i){let{escapeName:n}=this.constructor,a=C.isString(i),r=`Content-Disposition: form-data; name="${n(e)}"${!a&&i.name?`; filename="${n(i.name)}"`:""}${Ra}`;if(a)i=No.encode(String(i).replace(/\r?\n|\r\n?/g,Ra));else{let s=String(i.type||"application/octet-stream").replace(/[\r\n]/g,"");r+=`Content-Type: ${s}${Ra}`}this.headers=No.encode(r+Ra),this.contentLength=a?i.byteLength:i.size,this.size=this.headers.byteLength+this.contentLength+V3,this.name=e,this.value=i}async*encode(){yield this.headers;let{value:e}=this;C.isTypedArray(e)?yield e:yield*cq(e),yield F3}static escapeName(e){return String(e).replace(/[\r\n"]/g,i=>({"\r":"%0D","\n":"%0A",'"':"%22"})[i])}},J3=(t,e,i)=>{let{tag:n="form-data-boundary",size:a=25,boundary:r=n+"-"+Qe.generateString(a,B3)}=i||{};if(!C.isFormData(t))throw TypeError("FormData instance required");if(r.length<1||r.length>70)throw Error("boundary must be 1-70 characters long");let s=No.encode("--"+r+Ra),o=No.encode("--"+r+"--"+Ra),l=o.byteLength,u=Array.from(t.entries()).map(([p,d])=>{let h=new lv(p,d);return l+=h.size,h});l+=s.byteLength*u.length,l=C.toFiniteNumber(l);let c={"Content-Type":`multipart/form-data; boundary=${r}`};return Number.isFinite(l)&&(c["Content-Length"]=l),e&&e(c),Vi.Readable.from((async function*(){for(let p of u)yield s,yield*p.encode();yield o})())},uv=class extends Vi.Transform{__transform(e,i,n){this.push(e),n()}_transform(e,i,n){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,i)}this.__transform(e,i,n)}},Z3=(t,e)=>C.isAsyncFn(t)?function(...i){let n=i.pop();t.apply(this,i).then(a=>{try{e?n(null,...e(a)):n(null,a)}catch(r){n(r)}},n)}:t,K3=new Set(["localhost"]),pq=t=>{let e=t.split(".");return e.length!==4||e[0]!=="127"?!1:e.every(i=>/^\d+$/.test(i)&&Number(i)>=0&&Number(i)<=255)},Q3=t=>{if(t==="::1")return!0;let e=t.match(/^::ffff:(\d+\.\d+\.\d+\.\d+)$/i);if(e)return pq(e[1]);let i=t.match(/^::ffff:([0-9a-f]{1,4}):([0-9a-f]{1,4})$/i);if(i){let a=parseInt(i[1],16);return a>=32512&&a<=32767}let n=t.split(":");if(n.length===8){for(let a=0;a<7;a++)if(!/^0+$/.test(n[a]))return!1;return/^0*1$/.test(n[7])}return!1},Mk=t=>t?K3.has(t)||pq(t)?!0:Q3(t):!1,Y3={http:80,https:443,ws:80,wss:443,ftp:21},X3=t=>{let e=t,i=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))&&(i=Number.parseInt(o.slice(1),10)),[s,i]}}let n=e.indexOf(":"),a=e.lastIndexOf(":");return n!==-1&&n===a&&/^\d+$/.test(e.slice(a+1))&&(i=Number.parseInt(e.slice(a+1),10),e=e.slice(0,a)),[e,i]},eZ=/^(?:::|(?:0{1,4}:){1,4}:|(?:0{1,4}:){5})ffff:(\d+\.\d+\.\d+\.\d+)$/i,iZ=/^(?:::|(?:0{1,4}:){1,4}:|(?:0{1,4}:){5})ffff:([0-9a-f]{1,4}):([0-9a-f]{1,4})$/i,nZ=t=>{if(typeof t!="string"||t.indexOf(":")===-1)return t;let e=t.match(eZ);if(e)return e[1];let i=t.match(iZ);if(i){let n=parseInt(i[1],16),a=parseInt(i[2],16);return`${n>>8}.${n&255}.${a>>8}.${a&255}`}return t},Ek=t=>t&&(t.charAt(0)==="["&&t.charAt(t.length-1)==="]"&&(t=t.slice(1,-1)),nZ(t.replace(/\.+$/,"")));function tZ(t){let e;try{e=new URL(t)}catch{return!1}let i=(process.env.no_proxy||process.env.NO_PROXY||"").toLowerCase();if(!i)return!1;if(i==="*")return!0;let n=Number.parseInt(e.port,10)||Y3[e.protocol.split(":",1)[0]]||0,a=Ek(e.hostname.toLowerCase());return i.split(/[\s,]+/).some(r=>{if(!r)return!1;let[s,o]=X3(r);return s=Ek(s),!s||o&&o!==n?!1:(s.charAt(0)==="*"&&(s=s.slice(1)),s.charAt(0)==="."?a.endsWith(s):a===s||Mk(a)&&Mk(s))})}function aZ(t,e){t=t||10;let i=new Array(t),n=new Array(t),a=0,r=0,s;return e=e!==void 0?e:1e3,function(l){let u=Date.now(),c=n[r];s||(s=u),i[a]=l,n[a]=u;let p=r,d=0;for(;p!==a;)d+=i[p++],p=p%t;if(a=(a+1)%t,a===r&&(r=(r+1)%t),u-s{i=c,a=null,r&&(clearTimeout(r),r=null),t(...u)};return[(...u)=>{let c=Date.now(),p=c-i;p>=n?s(u,c):(a=u,r||(r=setTimeout(()=>{r=null,s(a)},n-p)))},()=>a&&s(a)]}var Jr=(t,e,i=3)=>{let n=0,a=aZ(50,250);return rZ(r=>{if(!r||typeof r.loaded!="number")return;let s=r.loaded,o=r.lengthComputable?r.total:void 0,l=o!=null?Math.min(s,o):s,u=Math.max(0,l-n),c=a(u);n=Math.max(n,l);let p={loaded:l,total:o,progress:o?l/o:void 0,bytes:u,rate:c||void 0,estimated:c&&o?(o-l)/c:void 0,event:r,lengthComputable:o!=null,[e?"download":"upload"]:!0};t(p)},i)},Uc=(t,e)=>{let i=t!=null;return[n=>e[0]({lengthComputable:i,total:t,loaded:n}),e[1]]},Lc=t=>(...e)=>C.asap(()=>t(...e));function dq(t){if(!t||typeof t!="string"||!t.startsWith("data:"))return 0;let e=t.indexOf(",");if(e<0)return 0;let i=t.slice(5,e),n=t.slice(e+1);if(/;base64/i.test(i)){let s=n.length,o=n.length;for(let h=0;h=48&&g<=57||g>=65&&g<=70||g>=97&&g<=102)&&(m>=48&&m<=57||m>=65&&m<=70||m>=97&&m<=102)&&(s-=2,h+=2)}let l=0,u=o-1,c=h=>h>=2&&n.charCodeAt(h-2)===37&&n.charCodeAt(h-1)===51&&(n.charCodeAt(h)===68||n.charCodeAt(h)===100);u>=0&&(n.charCodeAt(u)===61?(l++,u--):c(u)&&(l++,u-=3)),l===1&&u>=0&&(n.charCodeAt(u)===61||c(u))&&l++;let d=Math.floor(s/4)*3-(l||0);return d>0?d:0}if(typeof Buffer<"u"&&typeof Buffer.byteLength=="function")return Buffer.byteLength(n,"utf8");let r=0;for(let s=0,o=n.length;s=55296&&l<=56319&&s+1=56320&&u<=57343?(r+=4,s++):r+=3}else r+=3}return r}var kk={flush:Dt.constants.Z_SYNC_FLUSH,finishFlush:Dt.constants.Z_SYNC_FLUSH},sZ={flush:Dt.constants.BROTLI_OPERATION_FLUSH,finishFlush:Dt.constants.BROTLI_OPERATION_FLUSH},qk=C.isFunction(Dt.createBrotliDecompress),{http:oZ,https:lZ}=C4,hq=/https:?/,uZ=["content-type","content-length"];function cZ(t,e,i){if(i!=="content-only"){t.set(e);return}Object.entries(e).forEach(([n,a])=>{uZ.includes(n.toLowerCase())&&t.set(n,a)})}var _k=Symbol("axios.http.socketListener"),Rc=Symbol("axios.http.currentReq"),gq=Symbol("axios.http.installedTunnel"),pZ=new Map,Hk=new WeakMap;function dZ(t,e){let i=t.protocol+"//"+t.hostname+":"+(t.port||"")+"#"+(t.auth||""),n=e?Hk.get(e)||Hk.set(e,new Map).get(e):pZ,a=n.get(i);if(a)return a;let r=e&&e.options?{...e.options,...t}:t;return a=new Vk(r),a[gq]=!0,n.set(i,a),a}var Rk=Qe.protocols.map(t=>t+":"),Ik=t=>{if(!C.isString(t))return t;try{return decodeURIComponent(t)}catch{return t}},zk=(t,[e,i])=>(t.on("end",i).on("error",i),e),cv=class{constructor(){this.sessions=Object.create(null)}getSession(e,i){i=Object.assign({sessionTimeout:1e3},i);let n=this.sessions[e];if(n){let c=n.length;for(let p=0;p{if(r)return;r=!0;let c=n,p=c.length,d=p;for(;d--;)if(c[d][0]===a){p===1?delete this.sessions[e]:c.splice(d,1),a.closed||a.close();return}},o=a.request,{sessionTimeout:l}=i;if(l!=null){let c,p=0;a.request=function(){let d=o.apply(this,arguments);return p++,c&&(clearTimeout(c),c=null),d.once("close",()=>{--p||(c=setTimeout(()=>{c=null,s()},l))}),d}}a.once("close",s);let u=[a,i];return n?n.push(u):n=this.sessions[e]=[u],a}},hZ=new cv;function gZ(t,e,i){t.beforeRedirects.proxy&&t.beforeRedirects.proxy(t),t.beforeRedirects.config&&t.beforeRedirects.config(t,e,i)}function mq(t,e,i,n,a){let r=e;if(!r&&r!==!1){let s=N3(i);s&&(tZ(i)||(r=new URL(s)))}if(n&&t.headers)for(let s of Object.keys(t.headers))s.toLowerCase()==="proxy-authorization"&&delete t.headers[s];if(n&&t.agent&&t.agent[gq]&&(t.agent=void 0),r){let s=r instanceof URL,o=d=>s||C.hasOwnProp(r,d)?r[d]:void 0,l=o("username"),u=o("password"),c=C.hasOwnProp(r,"auth")?r.auth:void 0;if(l&&(c=(l||"")+":"+(u||"")),c){let d=typeof c=="object",h=d&&C.hasOwnProp(c,"username")?c.username:void 0,g=d&&C.hasOwnProp(c,"password")?c.password:void 0;if(!!(h||g))c=(h||"")+":"+(g||"");else if(d)throw new T("Invalid proxy authorization",T.ERR_BAD_OPTION,{proxy:r})}if(hq.test(t.protocol)){if(!(a instanceof Vk)){let d=o("hostname")||o("host"),h=o("port"),g=o("protocol"),m=g?g.includes(":")?g:`${g}:`:"http:",f=d&&d.includes(":")&&!d.startsWith("[")?`[${d}]`:d,v=new URL(`${m}//${f}${h?":"+h:""}`),y={protocol:v.protocol,hostname:v.hostname.replace(/^\[|\]$/g,""),port:v.port,auth:c&&typeof c=="string"?c:void 0};v.protocol==="https:"&&(y.ALPNProtocols=["http/1.1"]);let A=dZ(y,a);t.agent=A,t.agents&&(t.agents.https=A)}}else{if(c){let m=Buffer.from(c,"utf8").toString("base64");t.headers["Proxy-Authorization"]="Basic "+m}let d=!1;for(let m of Object.keys(t.headers))if(m.toLowerCase()==="host"){d=!0;break}d||(t.headers.host=t.hostname+(t.port?":"+t.port:""));let h=o("hostname")||o("host");t.hostname=h,t.host=h,t.port=o("port"),t.path=i;let g=o("protocol");g&&(t.protocol=g.includes(":")?g:`${g}:`)}}t.beforeRedirects.proxy=function(o){mq(o,e,o.href,!0,a)}}var mZ=typeof process<"u"&&C.kindOf(process)==="process",fZ=t=>new Promise((e,i)=>{let n,a,r=(l,u)=>{a||(a=!0,n&&n(l,u))},s=l=>{r(l),e(l)},o=l=>{r(l,!0),i(l)};t(s,o,l=>n=l).catch(o)}),wZ=({address:t,family:e})=>{if(!C.isString(t))throw TypeError("address must be a string");return{address:t,family:e||(t.indexOf(".")<0?6:4)}},Dk=(t,e)=>wZ(C.isObject(t)?t:{address:t,family:e}),vZ={request(t,e){let i=t.protocol+"//"+t.hostname+":"+(t.port||(t.protocol==="https:"?443:80)),{http2Options:n,headers:a}=t,r=hZ.getSession(i,n),{HTTP2_HEADER_SCHEME:s,HTTP2_HEADER_METHOD:o,HTTP2_HEADER_PATH:l,HTTP2_HEADER_STATUS:u}=Jk.constants,c={[s]:t.protocol.replace(":",""),[o]:t.method,[l]:t.path};C.forEach(a,(d,h)=>{h.charAt(0)!==":"&&(c[h]=d)});let p=r.request(c);return p.once("response",d=>{let h=p;d=Object.assign({},d);let g=d[u];delete d[u],h.headers=d,h.statusCode=+g,e(h)}),p}},CZ=mZ&&function(e){return fZ(async function(n,a,r){let s=G=>C.hasOwnProp(e,G)?e[G]:void 0,o=s("data"),l=s("lookup"),u=s("family"),c=s("httpVersion");c===void 0&&(c=1);let p=s("http2Options"),d=s("responseType"),h=s("responseEncoding"),g=e.method.toUpperCase(),m,f=!1,v,y;if(c=+c,Number.isNaN(c))throw TypeError(`Invalid protocol version: '${e.httpVersion}' is not a number`);if(c!==1&&c!==2)throw TypeError(`Unsupported protocol version '${c}'`);let A=c===2;if(l){let G=Z3(l,x=>C.isArray(x)?x:[x]);l=(x,be,Je)=>{G(x,be,(ye,ni,pi)=>{if(ye)return Je(ye);let xe=C.isArray(ni)?ni.map(gt=>Dk(gt)):[Dk(ni,pi)];be.all?Je(ye,xe):Je(ye,xe[0].address,xe[0].family)})}}let b=new A4.EventEmitter;function O(G){try{b.emit("abort",!G||G.type?new ut(null,e,v):G)}catch(x){console.warn("emit error",x)}}function $(){y&&(clearTimeout(y),y=null)}function N(){let G=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",x=e.transitional||Zc;return e.timeoutErrorMessage&&(G=e.timeoutErrorMessage),new T(G,x.clarifyTimeoutError?T.ETIMEDOUT:T.ECONNABORTED,e,v)}b.once("abort",a);let X=()=>{$(),e.cancelToken&&e.cancelToken.unsubscribe(O),e.signal&&e.signal.removeEventListener("abort",O),b.removeAllListeners()};(e.cancelToken||e.signal)&&(e.cancelToken&&e.cancelToken.subscribe(O),e.signal&&(e.signal.aborted?O():e.signal.addEventListener("abort",O))),r((G,x)=>{if(m=!0,$(),x){f=!0,X();return}let{data:be}=G;if(be instanceof Vi.Readable||be instanceof Vi.Duplex){let Je=Vi.finished(be,()=>{Je(),X()})}else X()});let F=vv(e.baseURL,e.url,e.allowAbsoluteUrls),k=new URL(F,Qe.hasBrowserEnv?Qe.origin:void 0),Q=k.protocol||Rk[0];if(Q==="data:"){if(e.maxContentLength>-1){let x=String(e.url||F||"");if(dq(x)>e.maxContentLength)return a(new T("maxContentLength size of "+e.maxContentLength+" exceeded",T.ERR_BAD_RESPONSE,e))}let G;if(g!=="GET")return Fr(n,a,{status:405,statusText:"method not allowed",headers:{},config:e});try{G=W3(e.url,d==="blob",{Blob:e.env&&e.env.Blob})}catch(x){throw T.from(x,T.ERR_BAD_REQUEST,e)}return d==="text"?(G=G.toString(h),(!h||h==="utf8")&&(G=C.stripBOM(G))):d==="stream"&&(G=Vi.Readable.from(G)),Fr(n,a,{data:G,status:200,statusText:"OK",headers:new ti,config:e})}if(Rk.indexOf(Q)===-1)return a(new T("Unsupported protocol "+Q,T.ERR_BAD_REQUEST,e));let Z=ti.from(e.headers).normalize();Z.set("User-Agent","axios/"+$o,!1);let{onUploadProgress:ie,onDownloadProgress:se}=e,De=e.maxRate,S,R;if(C.isSpecCompliantForm(o)){let G=Z.getContentType(/boundary=([-_\w\d]{10,70})/i);o=J3(o,x=>{Z.set(x)},{tag:`axios-${$o}-boundary`,boundary:G&&G[1]||void 0})}else if(C.isFormData(o)&&C.isFunction(o.getHeaders)&&o.getHeaders!==Object.prototype.getHeaders){if(cZ(Z,o.getHeaders(),s("formDataHeaderPolicy")),!Z.hasContentLength())try{let G=await hv.promisify(o.getLength).call(o);Number.isFinite(G)&&G>=0&&Z.setContentLength(G)}catch{}}else if(C.isBlob(o)||C.isFile(o))o.size&&Z.setContentType(o.type||"application/octet-stream"),Z.setContentLength(o.size||0),o=Vi.Readable.from(cq(o));else if(o&&!C.isStream(o)){if(!Buffer.isBuffer(o))if(C.isArrayBuffer(o))o=Buffer.from(new Uint8Array(o));else if(C.isString(o))o=Buffer.from(o,"utf-8");else return a(new T("Data after transformation must be a string, an ArrayBuffer, a Buffer, or a Stream",T.ERR_BAD_REQUEST,e));if(Z.setContentLength(o.length,!1),e.maxBodyLength>-1&&o.length>e.maxBodyLength)return a(new T("Request body larger than maxBodyLength limit",T.ERR_BAD_REQUEST,e))}let Ae=C.toFiniteNumber(Z.getContentLength());C.isArray(De)?(S=De[0],R=De[1]):S=R=De,o&&(ie||S)&&(C.isStream(o)||(o=Vi.Readable.from(o,{objectMode:!1})),o=Vi.pipeline([o,new Nc({maxRate:C.toFiniteNumber(S)})],C.noop),ie&&o.on("progress",zk(o,Uc(Ae,Jr(Lc(ie),!1,3)))));let Se,I=s("auth");if(I){let G=I.username||"",x=I.password||"";Se=G+":"+x}if(!Se&&k.username){let G=Ik(k.username),x=Ik(k.password);Se=G+":"+x}Se&&Z.delete("authorization");let ei;try{ei=fv(k.pathname+k.search,e.params,e.paramsSerializer).replace(/^\?/,"")}catch(G){let x=new Error(G.message);return x.config=e,x.url=e.url,x.exists=!0,a(x)}Z.set("Accept-Encoding","gzip, compress, deflate"+(qk?", br":""),!1);let Re=Object.assign(Object.create(null),{path:ei,method:g,headers:mv(Z),agents:{http:e.httpAgent,https:e.httpsAgent},auth:Se,protocol:Q,family:u,beforeRedirect:gZ,beforeRedirects:Object.create(null),http2Options:p});if(!C.isUndefined(l)&&(Re.lookup=l),e.socketPath){if(typeof e.socketPath!="string")return a(new T("socketPath must be a string",T.ERR_BAD_OPTION_VALUE,e));if(e.allowedSocketPaths!=null){let G=Array.isArray(e.allowedSocketPaths)?e.allowedSocketPaths:[e.allowedSocketPaths],x=yk.resolve(e.socketPath);if(!G.some(Je=>typeof Je=="string"&&yk.resolve(Je)===x))return a(new T(`socketPath "${e.socketPath}" is not permitted by allowedSocketPaths`,T.ERR_BAD_OPTION_VALUE,e))}Re.socketPath=e.socketPath}else Re.hostname=k.hostname.startsWith("[")?k.hostname.slice(1,-1):k.hostname,Re.port=k.port,mq(Re,e.proxy,Q+"//"+k.hostname+(k.port?":"+k.port:"")+Re.path,!1,e.httpsAgent);let Me,Oi=!1,vi=hq.test(Re.protocol);if(Re.agent==null&&(Re.agent=vi?e.httpsAgent:e.httpAgent),A)Me=vZ;else{let G=s("transport");if(G)Me=G;else if(e.maxRedirects===0)Me=vi?v4:w4,Oi=!0;else{e.maxRedirects&&(Re.maxRedirects=e.maxRedirects);let x=s("beforeRedirect");x&&(Re.beforeRedirects.config=x),Me=vi?lZ:oZ}}e.maxBodyLength>-1?Re.maxBodyLength=e.maxBodyLength:Re.maxBodyLength=1/0,Re.insecureHTTPParser=!!s("insecureHTTPParser"),v=Me.request(Re,function(x){if($(),v.destroyed)return;let be=[x],Je=C.toFiniteNumber(x.headers["content-length"]);if(se||R){let xe=new Nc({maxRate:C.toFiniteNumber(R)});se&&xe.on("progress",zk(xe,Uc(Je,Jr(Lc(se),!0,3)))),be.push(xe)}let ye=x,ni=x.req||v;if(e.decompress!==!1&&x.headers["content-encoding"])switch((g==="HEAD"||x.statusCode===204)&&delete x.headers["content-encoding"],(x.headers["content-encoding"]||"").toLowerCase()){case"gzip":case"x-gzip":case"compress":case"x-compress":be.push(Dt.createUnzip(kk)),delete x.headers["content-encoding"];break;case"deflate":be.push(new uv),be.push(Dt.createUnzip(kk)),delete x.headers["content-encoding"];break;case"br":qk&&(be.push(Dt.createBrotliDecompress(sZ)),delete x.headers["content-encoding"])}ye=be.length>1?Vi.pipeline(be,C.noop):be[0];let pi={status:x.statusCode,statusText:x.statusMessage,headers:new ti(x.headers),config:e,request:ni};if(d==="stream"){if(e.maxContentLength>-1){let xe=e.maxContentLength,gt=ye;async function*wn(){let Ge=0;for await(let Ya of gt){if(Ge+=Ya.length,Ge>xe)throw new T("maxContentLength size of "+xe+" exceeded",T.ERR_BAD_RESPONSE,e,ni);yield Ya}}ye=Vi.Readable.from(wn(),{objectMode:!1})}pi.data=ye,Fr(n,a,pi)}else{let xe=[],gt=0;ye.on("data",function(Ge){xe.push(Ge),gt+=Ge.length,e.maxContentLength>-1&>>e.maxContentLength&&(f=!0,ye.destroy(),O(new T("maxContentLength size of "+e.maxContentLength+" exceeded",T.ERR_BAD_RESPONSE,e,ni)))}),ye.on("aborted",function(){if(f)return;let Ge=new T("stream has been aborted",T.ERR_BAD_RESPONSE,e,ni,pi);ye.destroy(Ge),a(Ge)}),ye.on("error",function(Ge){f||a(T.from(Ge,null,e,ni,pi))}),ye.on("end",function(){try{let Ge=xe.length===1?xe[0]:Buffer.concat(xe);d!=="arraybuffer"&&(Ge=Ge.toString(h),(!h||h==="utf8")&&(Ge=C.stripBOM(Ge))),pi.data=Ge}catch(Ge){return a(T.from(Ge,null,e,pi.request,pi))}Fr(n,a,pi)})}b.once("abort",xe=>{ye.destroyed||(ye.emit("error",xe),ye.destroy())})}),b.once("abort",G=>{v.close?v.close():v.destroy(G)}),v.on("error",function(x){a(T.from(x,null,e,v))});let nn=new Set;if(v.on("socket",function(x){x.setKeepAlive(!0,1e3*60),x[_k]||(x.on("error",function(Je){let ye=x[Rc];ye&&!ye.destroyed&&ye.destroy(Je)}),x[_k]=!0),x[Rc]=v,nn.add(x)}),v.once("close",function(){$();for(let x of nn)x[Rc]===v&&(x[Rc]=null);nn.clear()}),e.timeout){let G=parseInt(e.timeout,10);if(Number.isNaN(G)){O(new T("error trying to parse `config.timeout` to int",T.ERR_BAD_OPTION_VALUE,e,v));return}let x=function(){m||O(N())};Oi&&G>0&&(y=setTimeout(x,G)),v.setTimeout(G,x)}else v.setTimeout(0);if(C.isStream(o)){let G=!1,x=!1;o.on("end",()=>{G=!0}),o.once("error",Je=>{x=!0,v.destroy(Je)}),o.on("close",()=>{!G&&!x&&O(new ut("Request stream has been aborted",e,v))});let be=o;if(e.maxBodyLength>-1&&e.maxRedirects===0){let Je=e.maxBodyLength,ye=0;be=Vi.pipeline([o,new Vi.Transform({transform(ni,pi,xe){if(ye+=ni.length,ye>Je)return xe(new T("Request body larger than maxBodyLength limit",T.ERR_BAD_REQUEST,e,v));xe(null,ni)}})],C.noop),be.on("error",ni=>{v.destroyed||v.destroy(ni)})}be.pipe(v)}else o&&v.write(o),v.end()})},AZ=Qe.hasStandardBrowserEnv?((t,e)=>i=>(i=new URL(i,Qe.origin),t.protocol===i.protocol&&t.host===i.host&&(e||t.port===i.port)))(new URL(Qe.origin),Qe.navigator&&/(msie|trident)/i.test(Qe.navigator.userAgent)):()=>!0,bZ=Qe.hasStandardBrowserEnv?{write(t,e,i,n,a,r,s){if(typeof document>"u")return;let o=[`${t}=${encodeURIComponent(e)}`];C.isNumber(i)&&o.push(`expires=${new Date(i).toUTCString()}`),C.isString(n)&&o.push(`path=${n}`),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 i=0;it instanceof ti?{...t}:t;function Ia(t,e){e=e||{};let i=Object.create(null);Object.defineProperty(i,"hasOwnProperty",{__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});function n(u,c,p,d){return C.isPlainObject(u)&&C.isPlainObject(c)?C.merge.call({caseless:d},u,c):C.isPlainObject(c)?C.merge({},c):C.isArray(c)?c.slice():c}function a(u,c,p,d){if(C.isUndefined(c)){if(!C.isUndefined(u))return n(void 0,u,p,d)}else return n(u,c,p,d)}function r(u,c){if(!C.isUndefined(c))return n(void 0,c)}function s(u,c){if(C.isUndefined(c)){if(!C.isUndefined(u))return n(void 0,u)}else return n(void 0,c)}function o(u,c,p){if(C.hasOwnProp(e,p))return n(u,c);if(C.hasOwnProp(t,p))return n(void 0,u)}let l={url:r,method:r,data:r,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,allowedSocketPaths:s,responseEncoding:s,validateStatus:o,headers:(u,c,p)=>a(Gk(u),Gk(c),p,!0)};return C.forEach(Object.keys({...t,...e}),function(c){if(c==="__proto__"||c==="constructor"||c==="prototype")return;let p=C.hasOwnProp(l,c)?l[c]:a,d=C.hasOwnProp(t,c)?t[c]:void 0,h=C.hasOwnProp(e,c)?e[c]:void 0,g=p(d,h,c);C.isUndefined(g)&&p!==o||(i[c]=g)}),i}var yZ=["content-type","content-length"];function PZ(t,e,i){if(i!=="content-only"){t.set(e);return}Object.entries(e).forEach(([n,a])=>{yZ.includes(n.toLowerCase())&&t.set(n,a)})}var jZ=t=>encodeURIComponent(t).replace(/%([0-9A-F]{2})/gi,(e,i)=>String.fromCharCode(parseInt(i,16))),fq=t=>{let e=Ia({},t),i=d=>C.hasOwnProp(e,d)?e[d]:void 0,n=i("data"),a=i("withXSRFToken"),r=i("xsrfHeaderName"),s=i("xsrfCookieName"),o=i("headers"),l=i("auth"),u=i("baseURL"),c=i("allowAbsoluteUrls"),p=i("url");if(e.headers=o=ti.from(o),e.url=fv(vv(u,p,c),t.params,t.paramsSerializer),l&&o.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?jZ(l.password):""))),C.isFormData(n)&&(Qe.hasStandardBrowserEnv||Qe.hasStandardBrowserWebWorkerEnv?o.setContentType(void 0):C.isFunction(n.getHeaders)&&PZ(o,n.getHeaders(),i("formDataHeaderPolicy"))),Qe.hasStandardBrowserEnv&&(C.isFunction(a)&&(a=a(e)),a===!0||a==null&&AZ(e.url))){let h=r&&s&&bZ.read(s);h&&o.set(r,h)}return e},SZ=typeof XMLHttpRequest<"u",OZ=SZ&&function(t){return new Promise(function(i,n){let a=fq(t),r=a.data,s=ti.from(a.headers).normalize(),{responseType:o,onUploadProgress:l,onDownloadProgress:u}=a,c,p,d,h,g;function m(){h&&h(),g&&g(),a.cancelToken&&a.cancelToken.unsubscribe(c),a.signal&&a.signal.removeEventListener("abort",c)}let f=new XMLHttpRequest;f.open(a.method.toUpperCase(),a.url,!0),f.timeout=a.timeout;function v(){if(!f)return;let A=ti.from("getAllResponseHeaders"in f&&f.getAllResponseHeaders()),O={data:!o||o==="text"||o==="json"?f.responseText:f.response,status:f.status,statusText:f.statusText,headers:A,config:t,request:f};Fr(function(N){i(N),m()},function(N){n(N),m()},O),f=null}"onloadend"in f?f.onloadend=v:f.onreadystatechange=function(){!f||f.readyState!==4||f.status===0&&!(f.responseURL&&f.responseURL.startsWith("file:"))||setTimeout(v)},f.onabort=function(){f&&(n(new T("Request aborted",T.ECONNABORTED,t,f)),m(),f=null)},f.onerror=function(b){let O=b&&b.message?b.message:"Network Error",$=new T(O,T.ERR_NETWORK,t,f);$.event=b||null,n($),m(),f=null},f.ontimeout=function(){let b=a.timeout?"timeout of "+a.timeout+"ms exceeded":"timeout exceeded",O=a.transitional||Zc;a.timeoutErrorMessage&&(b=a.timeoutErrorMessage),n(new T(b,O.clarifyTimeoutError?T.ETIMEDOUT:T.ECONNABORTED,t,f)),m(),f=null},r===void 0&&s.setContentType(null),"setRequestHeader"in f&&C.forEach(mv(s),function(b,O){f.setRequestHeader(O,b)}),C.isUndefined(a.withCredentials)||(f.withCredentials=!!a.withCredentials),o&&o!=="json"&&(f.responseType=a.responseType),u&&([d,g]=Jr(u,!0),f.addEventListener("progress",d)),l&&f.upload&&([p,h]=Jr(l),f.upload.addEventListener("progress",p),f.upload.addEventListener("loadend",h)),(a.cancelToken||a.signal)&&(c=A=>{f&&(n(!A||A.type?new ut(null,t,f):A),f.abort(),m(),f=null)},a.cancelToken&&a.cancelToken.subscribe(c),a.signal&&(a.signal.aborted?c():a.signal.addEventListener("abort",c)));let y=uq(a.url);if(y&&!Qe.protocols.includes(y)){n(new T("Unsupported protocol "+y+":",T.ERR_BAD_REQUEST,t));return}f.send(r||null)})},xZ=(t,e)=>{if(t=t?t.filter(Boolean):[],!e&&!t.length)return;let i=new AbortController,n=!1,a=function(l){if(!n){n=!0,s();let u=l instanceof Error?l:this.reason;i.abort(u instanceof T?u:new ut(u instanceof Error?u.message:u))}},r=e&&setTimeout(()=>{r=null,a(new T(`timeout of ${e}ms exceeded`,T.ETIMEDOUT))},e),s=()=>{t&&(r&&clearTimeout(r),r=null,t.forEach(l=>{l.unsubscribe?l.unsubscribe(a):l.removeEventListener("abort",a)}),t=null)};t.forEach(l=>l.addEventListener("abort",a));let{signal:o}=i;return o.unsubscribe=()=>C.asap(s),o},TZ=function*(t,e){let i=t.byteLength;if(i{let a=MZ(t,e),r=0,s,o=l=>{s||(s=!0,n&&n(l))};return new ReadableStream({async pull(l){try{let{done:u,value:c}=await a.next();if(u){o(),l.close();return}let p=c.byteLength;if(i){let d=r+=p;i(d)}l.enqueue(new Uint8Array(c))}catch(u){throw o(u),u}},cancel(l){return o(l),a.return()}},{highWaterMark:2})},Nk=64*1024,{isFunction:Ic}=C,Uk=(t,...e)=>{try{return!!t(...e)}catch{return!1}},kZ=t=>{let e=C.global!==void 0&&C.global!==null?C.global:globalThis,{ReadableStream:i,TextEncoder:n}=e;t=C.merge.call({skipUndefined:!0},{Request:e.Request,Response:e.Response},t);let{fetch:a,Request:r,Response:s}=t,o=a?Ic(a):typeof fetch=="function",l=Ic(r),u=Ic(s);if(!o)return!1;let c=o&&Ic(i),p=o&&(typeof n=="function"?(v=>y=>v.encode(y))(new n):async v=>new Uint8Array(await new r(v).arrayBuffer())),d=l&&c&&Uk(()=>{let v=!1,y=new r(Qe.origin,{body:new i,method:"POST",get duplex(){return v=!0,"half"}}),A=y.headers.has("Content-Type");return y.body!=null&&y.body.cancel(),v&&!A}),h=u&&c&&Uk(()=>C.isReadableStream(new s("").body)),g={stream:h&&(v=>v.body)};o&&["text","arrayBuffer","blob","formData","stream"].forEach(v=>{!g[v]&&(g[v]=(y,A)=>{let b=y&&y[v];if(b)return b.call(y);throw new T(`Response type '${v}' is not supported`,T.ERR_NOT_SUPPORT,A)})});let m=async v=>{if(v==null)return 0;if(C.isBlob(v))return v.size;if(C.isSpecCompliantForm(v))return(await new r(Qe.origin,{method:"POST",body:v}).arrayBuffer()).byteLength;if(C.isArrayBufferView(v)||C.isArrayBuffer(v))return v.byteLength;if(C.isURLSearchParams(v)&&(v=v+""),C.isString(v))return(await p(v)).byteLength},f=async(v,y)=>{let A=C.toFiniteNumber(v.getContentLength());return A??m(y)};return async v=>{let{url:y,method:A,data:b,signal:O,cancelToken:$,timeout:N,onDownloadProgress:X,onUploadProgress:F,responseType:k,headers:Q,withCredentials:Z="same-origin",fetchOptions:ie,maxContentLength:se,maxBodyLength:De}=fq(v),S=C.isNumber(se)&&se>-1,R=C.isNumber(De)&&De>-1,Ae=a||fetch;k=k?(k+"").toLowerCase():"text";let Se=xZ([O,$&&$.toAbortSignal()],N),I=null,ei=Se&&Se.unsubscribe&&(()=>{Se.unsubscribe()}),Re;try{if(S&&typeof y=="string"&&y.startsWith("data:")&&dq(y)>se)throw new T("maxContentLength size of "+se+" exceeded",T.ERR_BAD_RESPONSE,v,I);if(R&&A!=="get"&&A!=="head"){let x=await f(Q,b);if(typeof x=="number"&&isFinite(x)&&x>De)throw new T("Request body larger than maxBodyLength limit",T.ERR_BAD_REQUEST,v,I)}if(F&&d&&A!=="get"&&A!=="head"&&(Re=await f(Q,b))!==0){let x=new r(y,{method:"POST",body:b,duplex:"half"}),be;if(C.isFormData(b)&&(be=x.headers.get("content-type"))&&Q.setContentType(be),x.body){let[Je,ye]=Uc(Re,Jr(Lc(F)));b=$k(x.body,Nk,Je,ye)}}C.isString(Z)||(Z=Z?"include":"omit");let Me=l&&"credentials"in r.prototype;if(C.isFormData(b)){let x=Q.getContentType();x&&/^multipart\/form-data/i.test(x)&&!/boundary=/i.test(x)&&Q.delete("content-type")}Q.set("User-Agent","axios/"+$o,!1);let Oi={...ie,signal:Se,method:A.toUpperCase(),headers:mv(Q.normalize()),body:b,duplex:"half",credentials:Me?Z:void 0};I=l&&new r(y,Oi);let vi=await(l?Ae(I,ie):Ae(y,Oi));if(S){let x=C.toFiniteNumber(vi.headers.get("content-length"));if(x!=null&&x>se)throw new T("maxContentLength size of "+se+" exceeded",T.ERR_BAD_RESPONSE,v,I)}let nn=h&&(k==="stream"||k==="response");if(h&&vi.body&&(X||S||nn&&ei)){let x={};["status","statusText","headers"].forEach(xe=>{x[xe]=vi[xe]});let be=C.toFiniteNumber(vi.headers.get("content-length")),[Je,ye]=X&&Uc(be,Jr(Lc(X),!0))||[],ni=0,pi=xe=>{if(S&&(ni=xe,ni>se))throw new T("maxContentLength size of "+se+" exceeded",T.ERR_BAD_RESPONSE,v,I);Je&&Je(xe)};vi=new s($k(vi.body,Nk,pi,()=>{ye&&ye(),ei&&ei()}),x)}k=k||"text";let G=await g[C.findKey(g,k)||"text"](vi,v);if(S&&!h&&!nn){let x;if(G!=null&&(typeof G.byteLength=="number"?x=G.byteLength:typeof G.size=="number"?x=G.size:typeof G=="string"&&(x=typeof n=="function"?new n().encode(G).byteLength:G.length)),typeof x=="number"&&x>se)throw new T("maxContentLength size of "+se+" exceeded",T.ERR_BAD_RESPONSE,v,I)}return!nn&&ei&&ei(),await new Promise((x,be)=>{Fr(x,be,{data:G,headers:ti.from(vi.headers),status:vi.status,statusText:vi.statusText,config:v,request:I})})}catch(Me){if(ei&&ei(),Se&&Se.aborted&&Se.reason instanceof T){let Oi=Se.reason;throw Oi.config=v,I&&(Oi.request=I),Me!==Oi&&(Oi.cause=Me),Oi}throw Me&&Me.name==="TypeError"&&/Load failed|fetch/i.test(Me.message)?Object.assign(new T("Network Error",T.ERR_NETWORK,v,I,Me&&Me.response),{cause:Me.cause||Me}):T.from(Me,Me&&Me.code,v,I,Me&&Me.response)}}},qZ=new Map,wq=t=>{let e=t&&t.env||{},{fetch:i,Request:n,Response:a}=e,r=[n,a,i],s=r.length,o=s,l,u,c=qZ;for(;o--;)l=r[o],u=c.get(l),u===void 0&&c.set(l,u=o?new Map:kZ(e)),c=u;return u};wq();var Cv={http:CZ,xhr:OZ,fetch:{get:wq}};C.forEach(Cv,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{__proto__:null,value:e})}catch{}Object.defineProperty(t,"adapterName",{__proto__:null,value:e})}});var Lk=t=>`- ${t}`,_Z=t=>C.isFunction(t)||t===null||t===!1;function HZ(t,e){t=C.isArray(t)?t:[t];let{length:i}=t,n,a,r={};for(let s=0;s`adapter ${l} `+(u===!1?"is not supported by the environment":"is not available in the build")),o=i?s.length>1?`since : -`+s.map(Lk).join(` -`):" "+Lk(s[0]):"as no adapter specified";throw new T("There is no suitable adapter to dispatch the request "+o,"ERR_NOT_SUPPORT")}return a}var vq={getAdapter:HZ,adapters:Cv};function nv(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new ut(null,t)}function Wk(t){return nv(t),t.headers=ti.from(t.headers),t.data=ev.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),vq.getAdapter(t.adapter||Bo.adapter,t)(t).then(function(n){nv(t),t.response=n;try{n.data=ev.call(t,t.transformResponse,n)}finally{delete t.response}return n.headers=ti.from(n.headers),n},function(n){if(!lq(n)&&(nv(t),n&&n.response)){t.response=n.response;try{n.response.data=ev.call(t,t.transformResponse,n.response)}finally{delete t.response}n.response.headers=ti.from(n.response.headers)}return Promise.reject(n)})}var Kc={};["object","boolean","number","function","string","symbol"].forEach((t,e)=>{Kc[t]=function(n){return typeof n===t||"a"+(e<1?"n ":" ")+t}});var Bk={};Kc.transitional=function(e,i,n){function a(r,s){return"[Axios v"+$o+"] Transitional option '"+r+"'"+s+(n?". "+n:"")}return(r,s,o)=>{if(e===!1)throw new T(a(s," has been removed"+(i?" in "+i:"")),T.ERR_DEPRECATED);return i&&!Bk[s]&&(Bk[s]=!0,console.warn(a(s," has been deprecated since v"+i+" and will be removed in the near future"))),e?e(r,s,o):!0}};Kc.spelling=function(e){return(i,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};function RZ(t,e,i){if(typeof t!="object")throw new T("options must be an object",T.ERR_BAD_OPTION_VALUE);let n=Object.keys(t),a=n.length;for(;a-- >0;){let r=n[a],s=Object.prototype.hasOwnProperty.call(e,r)?e[r]:void 0;if(s){let o=t[r],l=o===void 0||s(o,r,t);if(l!==!0)throw new T("option "+r+" must be "+l,T.ERR_BAD_OPTION_VALUE);continue}if(i!==!0)throw new T("Unknown option "+r,T.ERR_BAD_OPTION)}}var Gc={assertOptions:RZ,validators:Kc},gn=Gc.validators,lt=class{constructor(e){this.defaults=e||{},this.interceptors={request:new $c,response:new $c}}async request(e,i){try{return await this._request(e,i)}catch(n){if(n instanceof Error){let a={};Error.captureStackTrace?Error.captureStackTrace(a):a=new Error;let r=(()=>{if(!a.stack)return"";let s=a.stack.indexOf(` +`)===-1){Ho("have not received end of HTTP headers yet..."),r();return}let g=d.toString("ascii",0,d.indexOf(`\r +`)),m=+g.split(" ")[1];Ho("got proxy server response: %o",g),e({statusCode:m,buffered:d})}t.on("error",u),t.on("close",o),t.on("end",l),r()})}Ro.default=ZJ});var gk=w(ka=>{"use strict";var KJ=ka&&ka.__awaiter||function(t,e,i,n){function a(r){return r instanceof i?r:new i(function(s){s(r)})}return new(i||(i=Promise))(function(r,s){function o(c){try{u(n.next(c))}catch(p){s(p)}}function l(c){try{u(n.throw(c))}catch(p){s(p)}}function u(c){c.done?r(c.value):a(c.value).then(o,l)}u((n=n.apply(t,e||[])).next())})},Br=ka&&ka.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(ka,"__esModule",{value:!0});var dk=Br(require("net")),hk=Br(require("tls")),QJ=Br(require("url")),YJ=Br(require("assert")),XJ=Br(qo()),e4=ck(),i4=Br(pk()),Io=XJ.default("https-proxy-agent:agent"),zw=class extends e4.Agent{constructor(e){let i;if(typeof e=="string"?i=QJ.default.parse(e):i=e,!i)throw new Error("an HTTP(S) proxy server `host` and `port` must be specified!");Io("creating new HttpsProxyAgent instance: %o",i),super(i);let n=Object.assign({},i);this.secureProxy=i.secureProxy||a4(n.protocol),n.host=n.hostname||n.host,typeof n.port=="string"&&(n.port=parseInt(n.port,10)),!n.port&&n.host&&(n.port=this.secureProxy?443:80),this.secureProxy&&!("ALPNProtocols"in n)&&(n.ALPNProtocols=["http 1.1"]),n.host&&n.path&&(delete n.path,delete n.pathname),this.proxy=n}callback(e,i){return KJ(this,void 0,void 0,function*(){let{proxy:n,secureProxy:a}=this,r;a?(Io("Creating `tls.Socket`: %o",n),r=hk.default.connect(n)):(Io("Creating `net.Socket`: %o",n),r=dk.default.connect(n));let s=Object.assign({},n.headers),l=`CONNECT ${`${i.host}:${i.port}`} HTTP/1.1\r +`;n.auth&&(s["Proxy-Authorization"]=`Basic ${Buffer.from(n.auth).toString("base64")}`);let{host:u,port:c,secureEndpoint:p}=i;t4(c,p)||(u+=`:${c}`),s.Host=u,s.Connection="close";for(let f of Object.keys(s))l+=`${f}: ${s[f]}\r +`;let d=i4.default(r);r.write(`${l}\r +`);let{statusCode:h,buffered:g}=yield d;if(h===200){if(e.once("socket",n4),i.secureEndpoint){Io("Upgrading socket connection to TLS");let f=i.servername||i.host;return hk.default.connect(Object.assign(Object.assign({},r4(i,"host","hostname","path","port")),{socket:r,servername:f}))}return r}r.destroy();let m=new dk.default.Socket({writable:!1});return m.readable=!0,e.once("socket",f=>{Io("replaying proxy buffer for failed request"),YJ.default(f.listenerCount("data")>0),f.push(g),f.push(null)}),m})}};ka.default=zw;function n4(t){t.resume()}function t4(t,e){return!!(!e&&t===80||e&&t===443)}function a4(t){return typeof t=="string"?/^https:?$/i.test(t):!1}function r4(t,...e){let i={},n;for(n in t)e.includes(n)||(i[n]=t[n]);return i}});var fk=w(($w,mk)=>{"use strict";var s4=$w&&$w.__importDefault||function(t){return t&&t.__esModule?t:{default:t}},Dw=s4(gk());function Gw(t){return new Dw.default(t)}(function(t){t.HttpsProxyAgent=Dw.default,t.prototype=Dw.default.prototype})(Gw||(Gw={}));mk.exports=Gw});var vk=w((ooe,wk)=>{var zo;wk.exports=function(){if(!zo){try{zo=qo()("follow-redirects")}catch{}typeof zo!="function"&&(zo=function(){})}zo.apply(null,arguments)}});var Pk=w((loe,Yw)=>{var Go=require("url"),Do=Go.URL,o4=require("http"),l4=require("https"),Bw=require("stream").Writable,Fw=require("assert"),Ck=vk();(function(){var e=typeof process<"u",i=typeof window<"u"&&typeof document<"u",n=_a(Error.captureStackTrace);!e&&(i||!n)&&console.warn("The follow-redirects package should be excluded from browser builds.")})();var Vw=!1;try{Fw(new Do(""))}catch(t){Vw=t.code==="ERR_INVALID_URL"}var u4=["Authorization","Proxy-Authorization","Cookie"],c4=["auth","host","hostname","href","path","pathname","port","protocol","query","search","hash"],Jw=["abort","aborted","connect","error","socket","timeout"],Zw=Object.create(null);Jw.forEach(function(t){Zw[t]=function(e,i,n){this._redirectable.emit(t,e,i,n)}});var Uw=$o("ERR_INVALID_URL","Invalid URL",TypeError),Lw=$o("ERR_FR_REDIRECTION_FAILURE","Redirected request failed"),p4=$o("ERR_FR_TOO_MANY_REDIRECTS","Maximum number of redirects exceeded",Lw),d4=$o("ERR_FR_MAX_BODY_LENGTH_EXCEEDED","Request body larger than maxBodyLength limit"),h4=$o("ERR_STREAM_WRITE_AFTER_END","write after end"),g4=Bw.prototype.destroy||bk;function Fi(t,e){Bw.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 i=this;this._onNativeResponse=function(n){try{i._processResponse(n)}catch(a){i.emit("error",a instanceof Lw?a:new Lw({cause:a}))}},this._headerFilter=new RegExp("^(?:"+u4.concat(t.sensitiveHeaders).map(A4).join("|")+")$","i"),this._performRequest()}Fi.prototype=Object.create(Bw.prototype);Fi.prototype.abort=function(){Qw(this._currentRequest),this._currentRequest.abort(),this.emit("abort")};Fi.prototype.destroy=function(t){return Qw(this._currentRequest,t),g4.call(this,t),this};Fi.prototype.write=function(t,e,i){if(this._ending)throw new h4;if(!qa(t)&&!v4(t))throw new TypeError("data should be a string, Buffer or Uint8Array");if(_a(e)&&(i=e,e=null),t.length===0){i&&i();return}this._requestBodyLength+t.length<=this._options.maxBodyLength?(this._requestBodyLength+=t.length,this._requestBodyBuffers.push({data:t,encoding:e}),this._currentRequest.write(t,e,i)):(this.emit("error",new d4),this.abort())};Fi.prototype.end=function(t,e,i){if(_a(t)?(i=t,t=e=null):_a(e)&&(i=e,e=null),!t)this._ended=this._ending=!0,this._currentRequest.end(null,null,i);else{var n=this,a=this._currentRequest;this.write(t,e,function(){n._ended=!0,a.end(null,null,i)}),this._ending=!0}};Fi.prototype.setHeader=function(t,e){this._options.headers[t]=e,this._currentRequest.setHeader(t,e)};Fi.prototype.removeHeader=function(t){delete this._options.headers[t],this._currentRequest.removeHeader(t)};Fi.prototype.setTimeout=function(t,e){var i=this;function n(s){s.setTimeout(t),s.removeListener("timeout",s.destroy),s.addListener("timeout",s.destroy)}function a(s){i._timeout&&clearTimeout(i._timeout),i._timeout=setTimeout(function(){i.emit("timeout"),r()},t),n(s)}function r(){i._timeout&&(clearTimeout(i._timeout),i._timeout=null),i.removeListener("abort",r),i.removeListener("error",r),i.removeListener("response",r),i.removeListener("close",r),e&&i.removeListener("timeout",e),i.socket||i._currentRequest.removeListener("socket",a)}return e&&this.on("timeout",e),this.socket?a(this.socket):this._currentRequest.once("socket",a),this.on("socket",n),this.on("abort",r),this.on("error",r),this.on("response",r),this.on("close",r),this};["flushHeaders","getHeader","setNoDelay","setSocketKeepAlive"].forEach(function(t){Fi.prototype[t]=function(e,i){return this._currentRequest[t](e,i)}});["aborted","connection","socket"].forEach(function(t){Object.defineProperty(Fi.prototype,t,{get:function(){return this._currentRequest[t]}})});Fi.prototype._sanitizeOptions=function(t){if(t.headers||(t.headers={}),w4(t.sensitiveHeaders)||(t.sensitiveHeaders=[]),t.host&&(t.hostname||(t.hostname=t.host),delete t.host),!t.pathname&&t.path){var e=t.path.indexOf("?");e<0?t.pathname=t.path:(t.pathname=t.path.substring(0,e),t.search=t.path.substring(e))}};Fi.prototype._performRequest=function(){var t=this._options.protocol,e=this._options.nativeProtocols[t];if(!e)throw new TypeError("Unsupported protocol "+t);if(this._options.agents){var i=t.slice(0,-1);this._options.agent=this._options.agents[i]}var n=this._currentRequest=e.request(this._options,this._onNativeResponse);n._redirectable=this;for(var a of Jw)n.on(a,Zw[a]);if(this._currentUrl=/^\//.test(this._options.path)?Go.format(this._options):this._options.path,this._isRedirect){var r=0,s=this,o=this._requestBodyBuffers;(function l(u){if(n===s._currentRequest)if(u)s.emit("error",u);else if(r=400){t.responseUrl=this._currentUrl,t.redirects=this._redirects,this.emit("response",t),this._requestBodyBuffers=[];return}if(Qw(this._currentRequest),t.destroy(),++this._redirectCount>this._options.maxRedirects)throw new p4;var n,a=this._options.beforeRedirect;a&&(n=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=[],Nw(/^content-/i,this._options.headers));var s=Nw(/^host$/i,this._options.headers),o=Kw(this._currentUrl),l=s||o.host,u=/^\w+:/.test(i)?this._currentUrl:Go.format(Object.assign(o,{host:l})),c=m4(i,u);if(Ck("redirecting to",c.href),this._isRedirect=!0,Ww(c,this._options),(c.protocol!==o.protocol&&c.protocol!=="https:"||c.host!==l&&!f4(c.host,l))&&Nw(this._headerFilter,this._options.headers),_a(a)){var p={headers:t.headers,statusCode:e},d={url:u,method:r,headers:n};a(this._options,p,d),this._sanitizeOptions(this._options)}this._performRequest()};function Ak(t){var e={maxRedirects:21,maxBodyLength:10485760},i={};return Object.keys(t).forEach(function(n){var a=n+":",r=i[a]=t[n],s=e[n]=Object.create(r);function o(u,c,p){return C4(u)?u=Ww(u):qa(u)?u=Ww(Kw(u)):(p=c,c=yk(u),u={protocol:a}),_a(c)&&(p=c,c=null),c=Object.assign({maxRedirects:e.maxRedirects,maxBodyLength:e.maxBodyLength},u,c),c.nativeProtocols=i,!qa(c.host)&&!qa(c.hostname)&&(c.hostname="::1"),Fw.equal(c.protocol,a,"protocol mismatch"),Ck("options",c),new Fi(c,p)}function l(u,c,p){var d=s.request(u,c,p);return d.end(),d}Object.defineProperties(s,{request:{value:o,configurable:!0,enumerable:!0,writable:!0},get:{value:l,configurable:!0,enumerable:!0,writable:!0}})}),e}function bk(){}function Kw(t){var e;if(Vw)e=new Do(t);else if(e=yk(Go.parse(t)),!qa(e.protocol))throw new Uw({input:t});return e}function m4(t,e){return Vw?new Do(t,e):Kw(Go.resolve(e,t))}function yk(t){if(/^\[/.test(t.hostname)&&!/^\[[:0-9a-f]+\]$/i.test(t.hostname))throw new Uw({input:t.href||t});if(/^\[/.test(t.host)&&!/^\[[:0-9a-f]+\](:\d+)?$/i.test(t.host))throw new Uw({input:t.href||t});return t}function Ww(t,e){var i=e||{};for(var n of c4)i[n]=t[n];return i.hostname.startsWith("[")&&(i.hostname=i.hostname.slice(1,-1)),i.port!==""&&(i.port=Number(i.port)),i.path=i.search?i.pathname+i.search:i.pathname,i}function Nw(t,e){var i;for(var n in e)t.test(n)&&(i=e[n],delete e[n]);return i===null||typeof i>"u"?void 0:String(i).trim()}function $o(t,e,i){function n(a){_a(Error.captureStackTrace)&&Error.captureStackTrace(this,this.constructor),Object.assign(this,a||{}),this.code=t,this.message=this.cause?e+": "+this.cause.message:e}return n.prototype=new(i||Error),Object.defineProperties(n.prototype,{constructor:{value:n,enumerable:!1},name:{value:"Error ["+t+"]",enumerable:!1}}),n}function Qw(t,e){for(var i of Jw)t.removeListener(i,Zw[i]);t.on("error",bk),t.destroy(e)}function f4(t,e){Fw(qa(t)&&qa(e));var i=t.length-e.length-1;return i>0&&t[i]==="."&&t.endsWith(e)}function w4(t){return t instanceof Array}function qa(t){return typeof t=="string"||t instanceof String}function _a(t){return typeof t=="function"}function v4(t){return typeof t=="object"&&"length"in t}function C4(t){return Do&&t instanceof Do}function A4(t){return t.replace(/[\]\\/()*+?.$]/g,"\\$&")}Yw.exports=Ak({http:o4,https:l4});Yw.exports.wrap=Ak});var Pq=w((uoe,yq)=>{"use strict";var Jk=ik(),b4=require("crypto"),y4=require("url"),Zk=fk(),P4=require("http"),j4=require("https"),Kk=require("http2"),mv=require("util"),jk=require("path"),S4=Pk(),Dt=require("zlib"),Vi=require("stream"),O4=require("events");function Qk(t,e){return function(){return t.apply(e,arguments)}}var{toString:x4}=Object.prototype,{getPrototypeOf:Bc}=Object,{iterator:Fc,toStringTag:Yk}=Symbol,Vc=(t=>e=>{let i=x4.call(e);return t[i]||(t[i]=i.slice(8,-1).toLowerCase())})(Object.create(null)),Tn=t=>(t=t.toLowerCase(),e=>Vc(e)===t),Jc=t=>e=>typeof e===t,{isArray:Kr}=Array,Jr=Jc("undefined");function Wo(t){return t!==null&&!Jr(t)&&t.constructor!==null&&!Jr(t.constructor)&&Ji(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}var Xk=Tn("ArrayBuffer");function T4(t){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&Xk(t.buffer),e}var M4=Jc("string"),Ji=Jc("function"),eq=Jc("number"),Bo=t=>t!==null&&typeof t=="object",E4=t=>t===!0||t===!1,Dc=t=>{if(Vc(t)!=="object")return!1;let e=Bc(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Yk in t)&&!(Fc in t)},k4=t=>{if(!Bo(t)||Wo(t))return!1;try{return Object.keys(t).length===0&&Object.getPrototypeOf(t)===Object.prototype}catch{return!1}},q4=Tn("Date"),_4=Tn("File"),H4=t=>!!(t&&typeof t.uri<"u"),R4=t=>t&&typeof t.getParts<"u",I4=Tn("Blob"),z4=Tn("FileList"),D4=t=>Bo(t)&&Ji(t.pipe);function G4(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}}var Sk=G4(),Ok=typeof Sk.FormData<"u"?Sk.FormData:void 0,$4=t=>{if(!t)return!1;if(Ok&&t instanceof Ok)return!0;let e=Bc(t);if(!e||e===Object.prototype||!Ji(t.append))return!1;let i=Vc(t);return i==="formdata"||i==="object"&&Ji(t.toString)&&t.toString()==="[object FormData]"},N4=Tn("URLSearchParams"),[U4,L4,W4,B4]=["ReadableStream","Request","Response","Headers"].map(Tn),F4=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Fo(t,e,{allOwnKeys:i=!1}={}){if(t===null||typeof t>"u")return;let n,a;if(typeof t!="object"&&(t=[t]),Kr(t))for(n=0,a=t.length;n0;)if(a=i[n],e===a.toLowerCase())return a;return null}var Ha=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,nq=t=>!Jr(t)&&t!==Ha;function rv(...t){let{caseless:e,skipUndefined:i}=nq(this)&&this||{},n={},a=(r,s)=>{if(s==="__proto__"||s==="constructor"||s==="prototype")return;let o=e&&iq(n,s)||s,l=sv(n,o)?n[o]:void 0;Dc(l)&&Dc(r)?n[o]=rv(l,r):Dc(r)?n[o]=rv({},r):Kr(r)?n[o]=r.slice():(!i||!Jr(r))&&(n[o]=r)};for(let r=0,s=t.length;r(Fo(e,(a,r)=>{i&&Ji(a)?Object.defineProperty(t,r,{__proto__:null,value:Qk(a,i),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(t,r,{__proto__:null,value:a,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:n}),t),J4=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),Z4=(t,e,i,n)=>{t.prototype=Object.create(e.prototype,n),Object.defineProperty(t.prototype,"constructor",{__proto__:null,value:t,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(t,"super",{__proto__:null,value:e.prototype}),i&&Object.assign(t.prototype,i)},K4=(t,e,i,n)=>{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],(!n||n(s,t,e))&&!o[s]&&(e[s]=t[s],o[s]=!0);t=i!==!1&&Bc(t)}while(t&&(!i||i(t,e))&&t!==Object.prototype);return e},Q4=(t,e,i)=>{t=String(t),(i===void 0||i>t.length)&&(i=t.length),i-=e.length;let n=t.indexOf(e,i);return n!==-1&&n===i},Y4=t=>{if(!t)return null;if(Kr(t))return t;let e=t.length;if(!eq(e))return null;let i=new Array(e);for(;e-- >0;)i[e]=t[e];return i},X4=(t=>e=>t&&e instanceof t)(typeof Uint8Array<"u"&&Bc(Uint8Array)),e3=(t,e)=>{let n=(t&&t[Fc]).call(t),a;for(;(a=n.next())&&!a.done;){let r=a.value;e.call(t,r[0],r[1])}},i3=(t,e)=>{let i,n=[];for(;(i=t.exec(e))!==null;)n.push(i);return n},n3=Tn("HTMLFormElement"),t3=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(i,n,a){return n.toUpperCase()+a}),sv=(({hasOwnProperty:t})=>(e,i)=>t.call(e,i))(Object.prototype),a3=Tn("RegExp"),tq=(t,e)=>{let i=Object.getOwnPropertyDescriptors(t),n={};Fo(i,(a,r)=>{let s;(s=e(a,r,t))!==!1&&(n[r]=s||a)}),Object.defineProperties(t,n)},r3=t=>{tq(t,(e,i)=>{if(Ji(t)&&["arguments","caller","callee"].includes(i))return!1;let n=t[i];if(Ji(n)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+i+"'")})}})},s3=(t,e)=>{let i={},n=a=>{a.forEach(r=>{i[r]=!0})};return Kr(t)?n(t):n(String(t).split(e)),i},o3=()=>{},l3=(t,e)=>t!=null&&Number.isFinite(t=+t)?t:e;function u3(t){return!!(t&&Ji(t.append)&&t[Yk]==="FormData"&&t[Fc])}var c3=t=>{let e=new WeakSet,i=n=>{if(Bo(n)){if(e.has(n))return;if(Wo(n))return n;if(!("toJSON"in n)){e.add(n);let a=Kr(n)?[]:{};return Fo(n,(r,s)=>{let o=i(r);!Jr(o)&&(a[s]=o)}),e.delete(n),a}}return n};return i(t)},p3=Tn("AsyncFunction"),d3=t=>t&&(Bo(t)||Ji(t))&&Ji(t.then)&&Ji(t.catch),aq=((t,e)=>t?setImmediate:e?((i,n)=>(Ha.addEventListener("message",({source:a,data:r})=>{a===Ha&&r===i&&n.length&&n.shift()()},!1),a=>{n.push(a),Ha.postMessage(i,"*")}))(`axios@${Math.random()}`,[]):i=>setTimeout(i))(typeof setImmediate=="function",Ji(Ha.postMessage)),h3=typeof queueMicrotask<"u"?queueMicrotask.bind(Ha):typeof process<"u"&&process.nextTick||aq,g3=t=>t!=null&&Ji(t[Fc]),C={isArray:Kr,isArrayBuffer:Xk,isBuffer:Wo,isFormData:$4,isArrayBufferView:T4,isString:M4,isNumber:eq,isBoolean:E4,isObject:Bo,isPlainObject:Dc,isEmptyObject:k4,isReadableStream:U4,isRequest:L4,isResponse:W4,isHeaders:B4,isUndefined:Jr,isDate:q4,isFile:_4,isReactNativeBlob:H4,isReactNative:R4,isBlob:I4,isRegExp:a3,isFunction:Ji,isStream:D4,isURLSearchParams:N4,isTypedArray:X4,isFileList:z4,forEach:Fo,merge:rv,extend:V4,trim:F4,stripBOM:J4,inherits:Z4,toFlatObject:K4,kindOf:Vc,kindOfTest:Tn,endsWith:Q4,toArray:Y4,forEachEntry:e3,matchAll:i3,isHTMLForm:n3,hasOwnProperty:sv,hasOwnProp:sv,reduceDescriptors:tq,freezeMethods:r3,toObjectSet:s3,toCamelCase:t3,noop:o3,toFiniteNumber:l3,findKey:iq,global:Ha,isContextDefined:nq,isSpecCompliantForm:u3,toJSONObject:c3,isAsyncFn:p3,isThenable:d3,setImmediate:aq,asap:h3,isIterable:g3},m3=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"]),f3=t=>{let e={},i,n,a;return t&&t.split(` +`).forEach(function(s){a=s.indexOf(":"),i=s.substring(0,a).trim().toLowerCase(),n=s.substring(a+1).trim(),!(!i||e[i]&&m3[i])&&(i==="set-cookie"?e[i]?e[i].push(n):e[i]=[n]:e[i]=e[i]?e[i]+", "+n:n)}),e};function w3(t){let e=0,i=t.length;for(;ee;){let n=t.charCodeAt(i-1);if(n!==9&&n!==32)break;i-=1}return e===0&&i===t.length?t:t.slice(e,i)}var v3=new RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+","g"),C3=new RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+","g");function fv(t,e){return C.isArray(t)?t.map(i=>fv(i,e)):w3(String(t).replace(e,""))}var A3=t=>fv(t,v3),b3=t=>fv(t,C3);function wv(t){let e=Object.create(null);return C.forEach(t.toJSON(),(i,n)=>{e[n]=b3(i)}),e}var xk=Symbol("internals");function No(t){return t&&String(t).trim().toLowerCase()}function Gc(t){return t===!1||t==null?t:C.isArray(t)?t.map(Gc):A3(String(t))}function y3(t){let e=Object.create(null),i=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g,n;for(;n=i.exec(t);)e[n[1]]=n[2];return e}var P3=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function Xw(t,e,i,n,a){if(C.isFunction(n))return n.call(this,e,i);if(a&&(e=i),!!C.isString(e)){if(C.isString(n))return e.indexOf(n)!==-1;if(C.isRegExp(n))return n.test(e)}}function j3(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,i,n)=>i.toUpperCase()+n)}function S3(t,e){let i=C.toCamelCase(" "+e);["get","set","has"].forEach(n=>{Object.defineProperty(t,n+i,{__proto__:null,value:function(a,r,s){return this[n].call(this,e,a,r,s)},configurable:!0})})}var ti=class{constructor(e){e&&this.set(e)}set(e,i,n){let a=this;function r(o,l,u){let c=No(l);if(!c)throw new Error("header name must be a non-empty string");let p=C.findKey(a,c);(!p||a[p]===void 0||u===!0||u===void 0&&a[p]!==!1)&&(a[p||l]=Gc(o))}let s=(o,l)=>C.forEach(o,(u,c)=>r(u,c,l));if(C.isPlainObject(e)||e instanceof this.constructor)s(e,i);else if(C.isString(e)&&(e=e.trim())&&!P3(e))s(f3(e),i);else if(C.isObject(e)&&C.isIterable(e)){let o={},l,u;for(let c of e){if(!C.isArray(c))throw TypeError("Object iterator must return a key-value pair");o[u=c[0]]=(l=o[u])?C.isArray(l)?[...l,c[1]]:[l,c[1]]:c[1]}s(o,i)}else e!=null&&r(i,e,n);return this}get(e,i){if(e=No(e),e){let n=C.findKey(this,e);if(n){let a=this[n];if(!i)return a;if(i===!0)return y3(a);if(C.isFunction(i))return i.call(this,a,n);if(C.isRegExp(i))return i.exec(a);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,i){if(e=No(e),e){let n=C.findKey(this,e);return!!(n&&this[n]!==void 0&&(!i||Xw(this,this[n],n,i)))}return!1}delete(e,i){let n=this,a=!1;function r(s){if(s=No(s),s){let o=C.findKey(n,s);o&&(!i||Xw(n,n[o],o,i))&&(delete n[o],a=!0)}}return C.isArray(e)?e.forEach(r):r(e),a}clear(e){let i=Object.keys(this),n=i.length,a=!1;for(;n--;){let r=i[n];(!e||Xw(this,this[r],r,e,!0))&&(delete this[r],a=!0)}return a}normalize(e){let i=this,n={};return C.forEach(this,(a,r)=>{let s=C.findKey(n,r);if(s){i[s]=Gc(a),delete i[r];return}let o=e?j3(r):String(r).trim();o!==r&&delete i[r],i[o]=Gc(a),n[o]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){let i=Object.create(null);return C.forEach(this,(n,a)=>{n!=null&&n!==!1&&(i[a]=e&&C.isArray(n)?n.join(", "):n)}),i}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,i])=>e+": "+i).join(` +`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...i){let n=new this(e);return i.forEach(a=>n.set(a)),n}static accessor(e){let n=(this[xk]=this[xk]={accessors:{}}).accessors,a=this.prototype;function r(s){let o=No(s);n[o]||(S3(a,s),n[o]=!0)}return C.isArray(e)?e.forEach(r):r(e),this}};ti.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);C.reduceDescriptors(ti.prototype,({value:t},e)=>{let i=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(n){this[i]=n}}});C.freezeMethods(ti);var O3="[REDACTED ****]";function x3(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 T3(t,e){let i=new Set(e.map(r=>String(r).toLowerCase())),n=[],a=r=>{if(r===null||typeof r!="object"||C.isBuffer(r))return r;if(n.indexOf(r)!==-1)return;r instanceof ti&&(r=r.toJSON()),n.push(r);let s;if(C.isArray(r))s=[],r.forEach((o,l)=>{let u=a(o);C.isUndefined(u)||(s[l]=u)});else{if(!C.isPlainObject(r)&&x3(r))return n.pop(),r;s=Object.create(null);for(let[o,l]of Object.entries(r)){let u=i.has(o.toLowerCase())?O3:a(l);C.isUndefined(u)||(s[o]=u)}}return n.pop(),s};return a(t)}var T=class t extends Error{static from(e,i,n,a,r,s){let o=new t(e.message,i||e.code,n,a,r);return o.cause=e,o.name=e.name,e.status!=null&&o.status==null&&(o.status=e.status),s&&Object.assign(o,s),o}constructor(e,i,n,a,r){super(e),Object.defineProperty(this,"message",{__proto__:null,value:e,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,i&&(this.code=i),n&&(this.config=n),a&&(this.request=a),r&&(this.response=r,this.status=r.status)}toJSON(){let e=this.config,i=e&&C.hasOwnProp(e,"redact")?e.redact:void 0,n=C.isArray(i)&&i.length>0?T3(e,i):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:n,code:this.code,status:this.status}}};T.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE";T.ERR_BAD_OPTION="ERR_BAD_OPTION";T.ECONNABORTED="ECONNABORTED";T.ETIMEDOUT="ETIMEDOUT";T.ECONNREFUSED="ECONNREFUSED";T.ERR_NETWORK="ERR_NETWORK";T.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS";T.ERR_DEPRECATED="ERR_DEPRECATED";T.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE";T.ERR_BAD_REQUEST="ERR_BAD_REQUEST";T.ERR_CANCELED="ERR_CANCELED";T.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT";T.ERR_INVALID_URL="ERR_INVALID_URL";T.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";function ov(t){return C.isPlainObject(t)||C.isArray(t)}function rq(t){return C.endsWith(t,"[]")?t.slice(0,-2):t}function ev(t,e,i){return t?t.concat(e).map(function(a,r){return a=rq(a),!i&&r?"["+a+"]":a}).join(i?".":""):e}function M3(t){return C.isArray(t)&&!t.some(ov)}var E3=C.toFlatObject(C,{},null,function(e){return/^is[A-Z]/.test(e)});function Zc(t,e,i){if(!C.isObject(t))throw new TypeError("target must be an object");e=e||new(Jk||FormData),i=C.toFlatObject(i,{metaTokens:!0,dots:!1,indexes:!1},!1,function(f,v){return!C.isUndefined(v[f])});let n=i.metaTokens,a=i.visitor||p,r=i.dots,s=i.indexes,o=i.Blob||typeof Blob<"u"&&Blob,l=i.maxDepth===void 0?100:i.maxDepth,u=o&&C.isSpecCompliantForm(e);if(!C.isFunction(a))throw new TypeError("visitor must be a function");function c(m){if(m===null)return"";if(C.isDate(m))return m.toISOString();if(C.isBoolean(m))return m.toString();if(!u&&C.isBlob(m))throw new T("Blob is not supported. Use a Buffer instead.");return C.isArrayBuffer(m)||C.isTypedArray(m)?u&&typeof Blob=="function"?new Blob([m]):Buffer.from(m):m}function p(m,f,v){let y=m;if(C.isReactNative(e)&&C.isReactNativeBlob(m))return e.append(ev(v,f,r),c(m)),!1;if(m&&!v&&typeof m=="object"){if(C.endsWith(f,"{}"))f=n?f:f.slice(0,-2),m=JSON.stringify(m);else if(C.isArray(m)&&M3(m)||(C.isFileList(m)||C.endsWith(f,"[]"))&&(y=C.toArray(m)))return f=rq(f),y.forEach(function(b,O){!(C.isUndefined(b)||b===null)&&e.append(s===!0?ev([f],O,r):s===null?f:f+"[]",c(b))}),!1}return ov(m)?!0:(e.append(ev(v,f,r),c(m)),!1)}let d=[],h=Object.assign(E3,{defaultVisitor:p,convertValue:c,isVisitable:ov});function g(m,f,v=0){if(!C.isUndefined(m)){if(v>l)throw new T("Object is too deeply nested ("+v+" levels). Max depth: "+l,T.ERR_FORM_DATA_DEPTH_EXCEEDED);if(d.indexOf(m)!==-1)throw Error("Circular reference detected in "+f.join("."));d.push(m),C.forEach(m,function(A,b){(!(C.isUndefined(A)||A===null)&&a.call(e,A,C.isString(b)?b.trim():b,f,h))===!0&&g(A,f?f.concat(b):[b],v+1)}),d.pop()}}if(!C.isObject(t))throw new TypeError("data must be an object");return g(t),e}function Tk(t){let e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(t).replace(/[!'()~]|%20/g,function(n){return e[n]})}function sq(t,e){this._pairs=[],t&&Zc(t,this,e)}var oq=sq.prototype;oq.append=function(e,i){this._pairs.push([e,i])};oq.toString=function(e){let i=e?function(n){return e.call(this,n,Tk)}:Tk;return this._pairs.map(function(a){return i(a[0])+"="+i(a[1])},"").join("&")};function k3(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function vv(t,e,i){if(!e)return t;let n=i&&i.encode||k3,a=C.isFunction(i)?{serialize:i}:i,r=a&&a.serialize,s;if(r?s=r(e,a):s=C.isURLSearchParams(e)?e.toString():new sq(e,a).toString(n),s){let o=t.indexOf("#");o!==-1&&(t=t.slice(0,o)),t+=(t.indexOf("?")===-1?"?":"&")+s}return t}var Nc=class{constructor(){this.handlers=[]}use(e,i,n){return this.handlers.push({fulfilled:e,rejected:i,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){C.forEach(this.handlers,function(n){n!==null&&e(n)})}},Kc={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0},q3=y4.URLSearchParams,iv="abcdefghijklmnopqrstuvwxyz",Mk="0123456789",lq={DIGIT:Mk,ALPHA:iv,ALPHA_DIGIT:iv+iv.toUpperCase()+Mk},_3=(t=16,e=lq.ALPHA_DIGIT)=>{let i="",{length:n}=e,a=new Uint32Array(t);b4.randomFillSync(a);for(let r=0;re[0]==="[]"?"":e[1]||e[0])}function N3(t){let e={},i=Object.keys(t),n,a=i.length,r;for(n=0;n=i.length;return s=!s&&C.isArray(a)?a.length:s,l?(C.hasOwnProp(a,s)?a[s]=C.isArray(a[s])?a[s].concat(n):[a[s],n]:a[s]=n,!o):((!C.hasOwnProp(a,s)||!C.isObject(a[s]))&&(a[s]=[]),e(i,n,a[s],r)&&C.isArray(a[s])&&(a[s]=N3(a[s])),!o)}if(C.isFormData(t)&&C.isFunction(t.entries)){let i={};return C.forEachEntry(t,(n,a)=>{e($3(n),a,i,0)}),i}return null}var Fr=(t,e)=>t!=null&&C.hasOwnProp(t,e)?t[e]:void 0;function U3(t,e,i){if(C.isString(t))try{return(e||JSON.parse)(t),C.trim(t)}catch(n){if(n.name!=="SyntaxError")throw n}return(i||JSON.stringify)(t)}var Vo={transitional:Kc,adapter:["xhr","http","fetch"],transformRequest:[function(e,i){let n=i.getContentType()||"",a=n.indexOf("application/json")>-1,r=C.isObject(e);if(r&&C.isHTMLForm(e)&&(e=new FormData(e)),C.isFormData(e))return a?JSON.stringify(uq(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 i.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let o;if(r){let l=Fr(this,"formSerializer");if(n.indexOf("application/x-www-form-urlencoded")>-1)return G3(e,l).toString();if((o=C.isFileList(e))||n.indexOf("multipart/form-data")>-1){let u=Fr(this,"env"),c=u&&u.FormData;return Zc(o?{"files[]":e}:e,c&&new c,l)}}return r||a?(i.setContentType("application/json",!1),U3(e)):e}],transformResponse:[function(e){let i=Fr(this,"transitional")||Vo.transitional,n=i&&i.forcedJSONParsing,a=Fr(this,"responseType"),r=a==="json";if(C.isResponse(e)||C.isReadableStream(e))return e;if(e&&C.isString(e)&&(n&&!a||r)){let o=!(i&&i.silentJSONParsing)&&r;try{return JSON.parse(e,Fr(this,"parseReviver"))}catch(l){if(o)throw l.name==="SyntaxError"?T.from(l,T.ERR_BAD_RESPONSE,this,null,Fr(this,"response")):l}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Qe.classes.FormData,Blob:Qe.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};C.forEach(["delete","get","head","post","put","patch","query"],t=>{Vo.headers[t]={}});function nv(t,e){let i=this||Vo,n=e||i,a=ti.from(n.headers),r=n.data;return C.forEach(t,function(o){r=o.call(i,r,a.normalize(),e?e.status:void 0)}),a.normalize(),r}function cq(t){return!!(t&&t.__CANCEL__)}var ut=class extends T{constructor(e,i,n){super(e??"canceled",T.ERR_CANCELED,i,n),this.name="CanceledError",this.__CANCEL__=!0}};function Vr(t,e,i){let n=i.config.validateStatus;!i.status||!n||n(i.status)?t(i):e(new T("Request failed with status code "+i.status,i.status>=400&&i.status<500?T.ERR_BAD_REQUEST:T.ERR_BAD_RESPONSE,i.config,i.request,i))}function L3(t){return typeof t!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function W3(t,e){return e?t.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):t}function Av(t,e,i){let n=!L3(e);return t&&(n||i===!1)?W3(t,e):e}var B3={ftp:21,gopher:70,http:80,https:443,ws:80,wss:443};function F3(t){try{return new URL(t)}catch{return null}}function V3(t){var e=(typeof t=="string"?F3(t):t)||{},i=e.protocol,n=e.host,a=e.port;if(typeof n!="string"||!n||typeof i!="string"||(i=i.split(":",1)[0],n=n.replace(/:\d*$/,""),a=parseInt(a)||B3[i]||0,!J3(n,a)))return"";var r=uv(i+"_proxy")||uv("all_proxy");return r&&r.indexOf("://")===-1&&(r=i+"://"+r),r}function J3(t,e){var i=uv("no_proxy").toLowerCase();return i?i==="*"?!1:i.split(/[,\s]/).every(function(n){if(!n)return!0;var a=n.match(/^(.+):(\d+)$/),r=a?a[1]:n,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 uv(t){return process.env[t.toLowerCase()]||process.env[t.toUpperCase()]||""}var Uo="1.16.1";function pq(t){let e=/^([-+\w]{1,25}):(?:\/\/)?/.exec(t);return e&&e[1]||""}var Z3=/^([^,;]+\/[^,;]+)?((?:;[^,;=]+=[^,;]+)*)(;base64)?,([\s\S]*)$/;function K3(t,e,i){let n=i&&i.Blob||Qe.classes.Blob,a=pq(t);if(e===void 0&&n&&(e=!0),a==="data"){t=a.length?t.slice(a.length+1):t;let r=Z3.exec(t);if(!r)throw new T("Invalid URL",T.ERR_INVALID_URL);let s=r[1],o=r[2],l=r[3]?"base64":"utf8",u=r[4],c;s?c=o?s+o:s:o&&(c="text/plain"+o);let p=Buffer.from(decodeURIComponent(u),l);if(e){if(!n)throw new T("Blob is not supported",T.ERR_NOT_SUPPORT);return new n([p],{type:c})}return p}throw new T("Unsupported protocol "+a,T.ERR_NOT_SUPPORT)}var tv=Symbol("internals"),Uc=class extends Vi.Transform{constructor(e){e=C.toFlatObject(e,{maxRate:0,chunkSize:64*1024,minChunkSize:100,timeWindow:500,ticksRate:2,samplesCount:15},null,(n,a)=>!C.isUndefined(a[n])),super({readableHighWaterMark:e.chunkSize});let i=this[tv]={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",n=>{n==="progress"&&(i.isCaptured||(i.isCaptured=!0))})}_read(e){let i=this[tv];return i.onReadCallback&&i.onReadCallback(),super._read(e)}_transform(e,i,n){let a=this[tv],r=a.maxRate,s=this.readableHighWaterMark,o=a.timeWindow,l=1e3/o,u=r/l,c=a.minChunkSize!==!1?Math.max(a.minChunkSize,u*.01):0,p=(h,g)=>{let m=Buffer.byteLength(h);a.bytesSeen+=m,a.bytes+=m,a.isCaptured&&this.emit("progress",a.bytesSeen),this.push(h)?process.nextTick(g):a.onReadCallback=()=>{a.onReadCallback=null,process.nextTick(g)}},d=(h,g)=>{let m=Buffer.byteLength(h),f=null,v=s,y,A=0;if(r){let b=Date.now();(!a.ts||(A=b-a.ts)>=o)&&(a.ts=b,y=u-a.bytes,a.bytes=y<0?-y:0,A=0),y=u-a.bytes}if(r){if(y<=0)return setTimeout(()=>{g(null,h)},o-A);yv&&m-v>c&&(f=h.subarray(v),h=h.subarray(0,v)),p(h,f?()=>{process.nextTick(g,null,f)}:g)};d(e,function h(g,m){if(g)return n(g);m?d(m,h):n(null)})}},{asyncIterator:Ek}=Symbol,dq=async function*(t){t.stream?yield*t.stream():t.arrayBuffer?yield await t.arrayBuffer():t[Ek]?yield*t[Ek]():yield t},Q3=Qe.ALPHABET.ALPHA_DIGIT+"-_",Lo=typeof TextEncoder=="function"?new TextEncoder:new mv.TextEncoder,Ra=`\r +`,Y3=Lo.encode(Ra),X3=2,cv=class{constructor(e,i){let{escapeName:n}=this.constructor,a=C.isString(i),r=`Content-Disposition: form-data; name="${n(e)}"${!a&&i.name?`; filename="${n(i.name)}"`:""}${Ra}`;if(a)i=Lo.encode(String(i).replace(/\r?\n|\r\n?/g,Ra));else{let s=String(i.type||"application/octet-stream").replace(/[\r\n]/g,"");r+=`Content-Type: ${s}${Ra}`}this.headers=Lo.encode(r+Ra),this.contentLength=a?i.byteLength:i.size,this.size=this.headers.byteLength+this.contentLength+X3,this.name=e,this.value=i}async*encode(){yield this.headers;let{value:e}=this;C.isTypedArray(e)?yield e:yield*dq(e),yield Y3}static escapeName(e){return String(e).replace(/[\r\n"]/g,i=>({"\r":"%0D","\n":"%0A",'"':"%22"})[i])}},eZ=(t,e,i)=>{let{tag:n="form-data-boundary",size:a=25,boundary:r=n+"-"+Qe.generateString(a,Q3)}=i||{};if(!C.isFormData(t))throw TypeError("FormData instance required");if(r.length<1||r.length>70)throw Error("boundary must be 1-70 characters long");let s=Lo.encode("--"+r+Ra),o=Lo.encode("--"+r+"--"+Ra),l=o.byteLength,u=Array.from(t.entries()).map(([p,d])=>{let h=new cv(p,d);return l+=h.size,h});l+=s.byteLength*u.length,l=C.toFiniteNumber(l);let c={"Content-Type":`multipart/form-data; boundary=${r}`};return Number.isFinite(l)&&(c["Content-Length"]=l),e&&e(c),Vi.Readable.from((async function*(){for(let p of u)yield s,yield*p.encode();yield o})())},pv=class extends Vi.Transform{__transform(e,i,n){this.push(e),n()}_transform(e,i,n){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,i)}this.__transform(e,i,n)}},iZ=(t,e)=>C.isAsyncFn(t)?function(...i){let n=i.pop();t.apply(this,i).then(a=>{try{e?n(null,...e(a)):n(null,a)}catch(r){n(r)}},n)}:t,nZ=new Set(["localhost"]),hq=t=>{let e=t.split(".");return e.length!==4||e[0]!=="127"?!1:e.every(i=>/^\d+$/.test(i)&&Number(i)>=0&&Number(i)<=255)},tZ=t=>{if(t==="::1")return!0;let e=t.match(/^::ffff:(\d+\.\d+\.\d+\.\d+)$/i);if(e)return hq(e[1]);let i=t.match(/^::ffff:([0-9a-f]{1,4}):([0-9a-f]{1,4})$/i);if(i){let a=parseInt(i[1],16);return a>=32512&&a<=32767}let n=t.split(":");if(n.length===8){for(let a=0;a<7;a++)if(!/^0+$/.test(n[a]))return!1;return/^0*1$/.test(n[7])}return!1},kk=t=>t?nZ.has(t)||hq(t)?!0:tZ(t):!1,aZ={http:80,https:443,ws:80,wss:443,ftp:21},rZ=t=>{let e=t,i=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))&&(i=Number.parseInt(o.slice(1),10)),[s,i]}}let n=e.indexOf(":"),a=e.lastIndexOf(":");return n!==-1&&n===a&&/^\d+$/.test(e.slice(a+1))&&(i=Number.parseInt(e.slice(a+1),10),e=e.slice(0,a)),[e,i]},sZ=/^(?:::|(?:0{1,4}:){1,4}:|(?:0{1,4}:){5})ffff:(\d+\.\d+\.\d+\.\d+)$/i,oZ=/^(?:::|(?:0{1,4}:){1,4}:|(?:0{1,4}:){5})ffff:([0-9a-f]{1,4}):([0-9a-f]{1,4})$/i,lZ=t=>{if(typeof t!="string"||t.indexOf(":")===-1)return t;let e=t.match(sZ);if(e)return e[1];let i=t.match(oZ);if(i){let n=parseInt(i[1],16),a=parseInt(i[2],16);return`${n>>8}.${n&255}.${a>>8}.${a&255}`}return t},qk=t=>t&&(t.charAt(0)==="["&&t.charAt(t.length-1)==="]"&&(t=t.slice(1,-1)),lZ(t.replace(/\.+$/,"")));function uZ(t){let e;try{e=new URL(t)}catch{return!1}let i=(process.env.no_proxy||process.env.NO_PROXY||"").toLowerCase();if(!i)return!1;if(i==="*")return!0;let n=Number.parseInt(e.port,10)||aZ[e.protocol.split(":",1)[0]]||0,a=qk(e.hostname.toLowerCase());return i.split(/[\s,]+/).some(r=>{if(!r)return!1;let[s,o]=rZ(r);return s=qk(s),!s||o&&o!==n?!1:(s.charAt(0)==="*"&&(s=s.slice(1)),s.charAt(0)==="."?a.endsWith(s):a===s||kk(a)&&kk(s))})}function cZ(t,e){t=t||10;let i=new Array(t),n=new Array(t),a=0,r=0,s;return e=e!==void 0?e:1e3,function(l){let u=Date.now(),c=n[r];s||(s=u),i[a]=l,n[a]=u;let p=r,d=0;for(;p!==a;)d+=i[p++],p=p%t;if(a=(a+1)%t,a===r&&(r=(r+1)%t),u-s{i=c,a=null,r&&(clearTimeout(r),r=null),t(...u)};return[(...u)=>{let c=Date.now(),p=c-i;p>=n?s(u,c):(a=u,r||(r=setTimeout(()=>{r=null,s(a)},n-p)))},()=>a&&s(a)]}var Zr=(t,e,i=3)=>{let n=0,a=cZ(50,250);return pZ(r=>{if(!r||typeof r.loaded!="number")return;let s=r.loaded,o=r.lengthComputable?r.total:void 0,l=o!=null?Math.min(s,o):s,u=Math.max(0,l-n),c=a(u);n=Math.max(n,l);let p={loaded:l,total:o,progress:o?l/o:void 0,bytes:u,rate:c||void 0,estimated:c&&o?(o-l)/c:void 0,event:r,lengthComputable:o!=null,[e?"download":"upload"]:!0};t(p)},i)},Lc=(t,e)=>{let i=t!=null;return[n=>e[0]({lengthComputable:i,total:t,loaded:n}),e[1]]},Wc=t=>(...e)=>C.asap(()=>t(...e));function gq(t){if(!t||typeof t!="string"||!t.startsWith("data:"))return 0;let e=t.indexOf(",");if(e<0)return 0;let i=t.slice(5,e),n=t.slice(e+1);if(/;base64/i.test(i)){let s=n.length,o=n.length;for(let h=0;h=48&&g<=57||g>=65&&g<=70||g>=97&&g<=102)&&(m>=48&&m<=57||m>=65&&m<=70||m>=97&&m<=102)&&(s-=2,h+=2)}let l=0,u=o-1,c=h=>h>=2&&n.charCodeAt(h-2)===37&&n.charCodeAt(h-1)===51&&(n.charCodeAt(h)===68||n.charCodeAt(h)===100);u>=0&&(n.charCodeAt(u)===61?(l++,u--):c(u)&&(l++,u-=3)),l===1&&u>=0&&(n.charCodeAt(u)===61||c(u))&&l++;let d=Math.floor(s/4)*3-(l||0);return d>0?d:0}if(typeof Buffer<"u"&&typeof Buffer.byteLength=="function")return Buffer.byteLength(n,"utf8");let r=0;for(let s=0,o=n.length;s=55296&&l<=56319&&s+1=56320&&u<=57343?(r+=4,s++):r+=3}else r+=3}return r}var _k={flush:Dt.constants.Z_SYNC_FLUSH,finishFlush:Dt.constants.Z_SYNC_FLUSH},dZ={flush:Dt.constants.BROTLI_OPERATION_FLUSH,finishFlush:Dt.constants.BROTLI_OPERATION_FLUSH},Hk=C.isFunction(Dt.createBrotliDecompress),{http:hZ,https:gZ}=S4,mq=/https:?/,mZ=["content-type","content-length"];function fZ(t,e,i){if(i!=="content-only"){t.set(e);return}Object.entries(e).forEach(([n,a])=>{mZ.includes(n.toLowerCase())&&t.set(n,a)})}var Rk=Symbol("axios.http.socketListener"),Ic=Symbol("axios.http.currentReq"),fq=Symbol("axios.http.installedTunnel"),wZ=new Map,Ik=new WeakMap;function vZ(t,e){let i=t.protocol+"//"+t.hostname+":"+(t.port||"")+"#"+(t.auth||""),n=e?Ik.get(e)||Ik.set(e,new Map).get(e):wZ,a=n.get(i);if(a)return a;let r=e&&e.options?{...e.options,...t}:t;return a=new Zk(r),a[fq]=!0,n.set(i,a),a}var zk=Qe.protocols.map(t=>t+":"),Dk=t=>{if(!C.isString(t))return t;try{return decodeURIComponent(t)}catch{return t}},Gk=(t,[e,i])=>(t.on("end",i).on("error",i),e),dv=class{constructor(){this.sessions=Object.create(null)}getSession(e,i){i=Object.assign({sessionTimeout:1e3},i);let n=this.sessions[e];if(n){let c=n.length;for(let p=0;p{if(r)return;r=!0;let c=n,p=c.length,d=p;for(;d--;)if(c[d][0]===a){p===1?delete this.sessions[e]:c.splice(d,1),a.closed||a.close();return}},o=a.request,{sessionTimeout:l}=i;if(l!=null){let c,p=0;a.request=function(){let d=o.apply(this,arguments);return p++,c&&(clearTimeout(c),c=null),d.once("close",()=>{--p||(c=setTimeout(()=>{c=null,s()},l))}),d}}a.once("close",s);let u=[a,i];return n?n.push(u):n=this.sessions[e]=[u],a}},CZ=new dv;function AZ(t,e,i){t.beforeRedirects.proxy&&t.beforeRedirects.proxy(t),t.beforeRedirects.config&&t.beforeRedirects.config(t,e,i)}function wq(t,e,i,n,a){let r=e;if(!r&&r!==!1){let s=V3(i);s&&(uZ(i)||(r=new URL(s)))}if(n&&t.headers)for(let s of Object.keys(t.headers))s.toLowerCase()==="proxy-authorization"&&delete t.headers[s];if(n&&t.agent&&t.agent[fq]&&(t.agent=void 0),r){let s=r instanceof URL,o=d=>s||C.hasOwnProp(r,d)?r[d]:void 0,l=o("username"),u=o("password"),c=C.hasOwnProp(r,"auth")?r.auth:void 0;if(l&&(c=(l||"")+":"+(u||"")),c){let d=typeof c=="object",h=d&&C.hasOwnProp(c,"username")?c.username:void 0,g=d&&C.hasOwnProp(c,"password")?c.password:void 0;if(!!(h||g))c=(h||"")+":"+(g||"");else if(d)throw new T("Invalid proxy authorization",T.ERR_BAD_OPTION,{proxy:r})}if(mq.test(t.protocol)){if(!(a instanceof Zk)){let d=o("hostname")||o("host"),h=o("port"),g=o("protocol"),m=g?g.includes(":")?g:`${g}:`:"http:",f=d&&d.includes(":")&&!d.startsWith("[")?`[${d}]`:d,v=new URL(`${m}//${f}${h?":"+h:""}`),y={protocol:v.protocol,hostname:v.hostname.replace(/^\[|\]$/g,""),port:v.port,auth:c&&typeof c=="string"?c:void 0};v.protocol==="https:"&&(y.ALPNProtocols=["http/1.1"]);let A=vZ(y,a);t.agent=A,t.agents&&(t.agents.https=A)}}else{if(c){let m=Buffer.from(c,"utf8").toString("base64");t.headers["Proxy-Authorization"]="Basic "+m}let d=!1;for(let m of Object.keys(t.headers))if(m.toLowerCase()==="host"){d=!0;break}d||(t.headers.host=t.hostname+(t.port?":"+t.port:""));let h=o("hostname")||o("host");t.hostname=h,t.host=h,t.port=o("port"),t.path=i;let g=o("protocol");g&&(t.protocol=g.includes(":")?g:`${g}:`)}}t.beforeRedirects.proxy=function(o){wq(o,e,o.href,!0,a)}}var bZ=typeof process<"u"&&C.kindOf(process)==="process",yZ=t=>new Promise((e,i)=>{let n,a,r=(l,u)=>{a||(a=!0,n&&n(l,u))},s=l=>{r(l),e(l)},o=l=>{r(l,!0),i(l)};t(s,o,l=>n=l).catch(o)}),PZ=({address:t,family:e})=>{if(!C.isString(t))throw TypeError("address must be a string");return{address:t,family:e||(t.indexOf(".")<0?6:4)}},$k=(t,e)=>PZ(C.isObject(t)?t:{address:t,family:e}),jZ={request(t,e){let i=t.protocol+"//"+t.hostname+":"+(t.port||(t.protocol==="https:"?443:80)),{http2Options:n,headers:a}=t,r=CZ.getSession(i,n),{HTTP2_HEADER_SCHEME:s,HTTP2_HEADER_METHOD:o,HTTP2_HEADER_PATH:l,HTTP2_HEADER_STATUS:u}=Kk.constants,c={[s]:t.protocol.replace(":",""),[o]:t.method,[l]:t.path};C.forEach(a,(d,h)=>{h.charAt(0)!==":"&&(c[h]=d)});let p=r.request(c);return p.once("response",d=>{let h=p;d=Object.assign({},d);let g=d[u];delete d[u],h.headers=d,h.statusCode=+g,e(h)}),p}},SZ=bZ&&function(e){return yZ(async function(n,a,r){let s=G=>C.hasOwnProp(e,G)?e[G]:void 0,o=s("data"),l=s("lookup"),u=s("family"),c=s("httpVersion");c===void 0&&(c=1);let p=s("http2Options"),d=s("responseType"),h=s("responseEncoding"),g=e.method.toUpperCase(),m,f=!1,v,y;if(c=+c,Number.isNaN(c))throw TypeError(`Invalid protocol version: '${e.httpVersion}' is not a number`);if(c!==1&&c!==2)throw TypeError(`Unsupported protocol version '${c}'`);let A=c===2;if(l){let G=iZ(l,x=>C.isArray(x)?x:[x]);l=(x,be,Je)=>{G(x,be,(ye,ni,pi)=>{if(ye)return Je(ye);let xe=C.isArray(ni)?ni.map(gt=>$k(gt)):[$k(ni,pi)];be.all?Je(ye,xe):Je(ye,xe[0].address,xe[0].family)})}}let b=new O4.EventEmitter;function O(G){try{b.emit("abort",!G||G.type?new ut(null,e,v):G)}catch(x){console.warn("emit error",x)}}function $(){y&&(clearTimeout(y),y=null)}function N(){let G=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",x=e.transitional||Kc;return e.timeoutErrorMessage&&(G=e.timeoutErrorMessage),new T(G,x.clarifyTimeoutError?T.ETIMEDOUT:T.ECONNABORTED,e,v)}b.once("abort",a);let X=()=>{$(),e.cancelToken&&e.cancelToken.unsubscribe(O),e.signal&&e.signal.removeEventListener("abort",O),b.removeAllListeners()};(e.cancelToken||e.signal)&&(e.cancelToken&&e.cancelToken.subscribe(O),e.signal&&(e.signal.aborted?O():e.signal.addEventListener("abort",O))),r((G,x)=>{if(m=!0,$(),x){f=!0,X();return}let{data:be}=G;if(be instanceof Vi.Readable||be instanceof Vi.Duplex){let Je=Vi.finished(be,()=>{Je(),X()})}else X()});let F=Av(e.baseURL,e.url,e.allowAbsoluteUrls),k=new URL(F,Qe.hasBrowserEnv?Qe.origin:void 0),Q=k.protocol||zk[0];if(Q==="data:"){if(e.maxContentLength>-1){let x=String(e.url||F||"");if(gq(x)>e.maxContentLength)return a(new T("maxContentLength size of "+e.maxContentLength+" exceeded",T.ERR_BAD_RESPONSE,e))}let G;if(g!=="GET")return Vr(n,a,{status:405,statusText:"method not allowed",headers:{},config:e});try{G=K3(e.url,d==="blob",{Blob:e.env&&e.env.Blob})}catch(x){throw T.from(x,T.ERR_BAD_REQUEST,e)}return d==="text"?(G=G.toString(h),(!h||h==="utf8")&&(G=C.stripBOM(G))):d==="stream"&&(G=Vi.Readable.from(G)),Vr(n,a,{data:G,status:200,statusText:"OK",headers:new ti,config:e})}if(zk.indexOf(Q)===-1)return a(new T("Unsupported protocol "+Q,T.ERR_BAD_REQUEST,e));let Z=ti.from(e.headers).normalize();Z.set("User-Agent","axios/"+Uo,!1);let{onUploadProgress:ie,onDownloadProgress:se}=e,De=e.maxRate,S,R;if(C.isSpecCompliantForm(o)){let G=Z.getContentType(/boundary=([-_\w\d]{10,70})/i);o=eZ(o,x=>{Z.set(x)},{tag:`axios-${Uo}-boundary`,boundary:G&&G[1]||void 0})}else if(C.isFormData(o)&&C.isFunction(o.getHeaders)&&o.getHeaders!==Object.prototype.getHeaders){if(fZ(Z,o.getHeaders(),s("formDataHeaderPolicy")),!Z.hasContentLength())try{let G=await mv.promisify(o.getLength).call(o);Number.isFinite(G)&&G>=0&&Z.setContentLength(G)}catch{}}else if(C.isBlob(o)||C.isFile(o))o.size&&Z.setContentType(o.type||"application/octet-stream"),Z.setContentLength(o.size||0),o=Vi.Readable.from(dq(o));else if(o&&!C.isStream(o)){if(!Buffer.isBuffer(o))if(C.isArrayBuffer(o))o=Buffer.from(new Uint8Array(o));else if(C.isString(o))o=Buffer.from(o,"utf-8");else return a(new T("Data after transformation must be a string, an ArrayBuffer, a Buffer, or a Stream",T.ERR_BAD_REQUEST,e));if(Z.setContentLength(o.length,!1),e.maxBodyLength>-1&&o.length>e.maxBodyLength)return a(new T("Request body larger than maxBodyLength limit",T.ERR_BAD_REQUEST,e))}let Ae=C.toFiniteNumber(Z.getContentLength());C.isArray(De)?(S=De[0],R=De[1]):S=R=De,o&&(ie||S)&&(C.isStream(o)||(o=Vi.Readable.from(o,{objectMode:!1})),o=Vi.pipeline([o,new Uc({maxRate:C.toFiniteNumber(S)})],C.noop),ie&&o.on("progress",Gk(o,Lc(Ae,Zr(Wc(ie),!1,3)))));let Se,I=s("auth");if(I){let G=I.username||"",x=I.password||"";Se=G+":"+x}if(!Se&&k.username){let G=Dk(k.username),x=Dk(k.password);Se=G+":"+x}Se&&Z.delete("authorization");let ei;try{ei=vv(k.pathname+k.search,e.params,e.paramsSerializer).replace(/^\?/,"")}catch(G){let x=new Error(G.message);return x.config=e,x.url=e.url,x.exists=!0,a(x)}Z.set("Accept-Encoding","gzip, compress, deflate"+(Hk?", br":""),!1);let Re=Object.assign(Object.create(null),{path:ei,method:g,headers:wv(Z),agents:{http:e.httpAgent,https:e.httpsAgent},auth:Se,protocol:Q,family:u,beforeRedirect:AZ,beforeRedirects:Object.create(null),http2Options:p});if(!C.isUndefined(l)&&(Re.lookup=l),e.socketPath){if(typeof e.socketPath!="string")return a(new T("socketPath must be a string",T.ERR_BAD_OPTION_VALUE,e));if(e.allowedSocketPaths!=null){let G=Array.isArray(e.allowedSocketPaths)?e.allowedSocketPaths:[e.allowedSocketPaths],x=jk.resolve(e.socketPath);if(!G.some(Je=>typeof Je=="string"&&jk.resolve(Je)===x))return a(new T(`socketPath "${e.socketPath}" is not permitted by allowedSocketPaths`,T.ERR_BAD_OPTION_VALUE,e))}Re.socketPath=e.socketPath}else Re.hostname=k.hostname.startsWith("[")?k.hostname.slice(1,-1):k.hostname,Re.port=k.port,wq(Re,e.proxy,Q+"//"+k.hostname+(k.port?":"+k.port:"")+Re.path,!1,e.httpsAgent);let Me,Oi=!1,vi=mq.test(Re.protocol);if(Re.agent==null&&(Re.agent=vi?e.httpsAgent:e.httpAgent),A)Me=jZ;else{let G=s("transport");if(G)Me=G;else if(e.maxRedirects===0)Me=vi?j4:P4,Oi=!0;else{e.maxRedirects&&(Re.maxRedirects=e.maxRedirects);let x=s("beforeRedirect");x&&(Re.beforeRedirects.config=x),Me=vi?gZ:hZ}}e.maxBodyLength>-1?Re.maxBodyLength=e.maxBodyLength:Re.maxBodyLength=1/0,Re.insecureHTTPParser=!!s("insecureHTTPParser"),v=Me.request(Re,function(x){if($(),v.destroyed)return;let be=[x],Je=C.toFiniteNumber(x.headers["content-length"]);if(se||R){let xe=new Uc({maxRate:C.toFiniteNumber(R)});se&&xe.on("progress",Gk(xe,Lc(Je,Zr(Wc(se),!0,3)))),be.push(xe)}let ye=x,ni=x.req||v;if(e.decompress!==!1&&x.headers["content-encoding"])switch((g==="HEAD"||x.statusCode===204)&&delete x.headers["content-encoding"],(x.headers["content-encoding"]||"").toLowerCase()){case"gzip":case"x-gzip":case"compress":case"x-compress":be.push(Dt.createUnzip(_k)),delete x.headers["content-encoding"];break;case"deflate":be.push(new pv),be.push(Dt.createUnzip(_k)),delete x.headers["content-encoding"];break;case"br":Hk&&(be.push(Dt.createBrotliDecompress(dZ)),delete x.headers["content-encoding"])}ye=be.length>1?Vi.pipeline(be,C.noop):be[0];let pi={status:x.statusCode,statusText:x.statusMessage,headers:new ti(x.headers),config:e,request:ni};if(d==="stream"){if(e.maxContentLength>-1){let xe=e.maxContentLength,gt=ye;async function*wn(){let Ge=0;for await(let Ya of gt){if(Ge+=Ya.length,Ge>xe)throw new T("maxContentLength size of "+xe+" exceeded",T.ERR_BAD_RESPONSE,e,ni);yield Ya}}ye=Vi.Readable.from(wn(),{objectMode:!1})}pi.data=ye,Vr(n,a,pi)}else{let xe=[],gt=0;ye.on("data",function(Ge){xe.push(Ge),gt+=Ge.length,e.maxContentLength>-1&>>e.maxContentLength&&(f=!0,ye.destroy(),O(new T("maxContentLength size of "+e.maxContentLength+" exceeded",T.ERR_BAD_RESPONSE,e,ni)))}),ye.on("aborted",function(){if(f)return;let Ge=new T("stream has been aborted",T.ERR_BAD_RESPONSE,e,ni,pi);ye.destroy(Ge),a(Ge)}),ye.on("error",function(Ge){f||a(T.from(Ge,null,e,ni,pi))}),ye.on("end",function(){try{let Ge=xe.length===1?xe[0]:Buffer.concat(xe);d!=="arraybuffer"&&(Ge=Ge.toString(h),(!h||h==="utf8")&&(Ge=C.stripBOM(Ge))),pi.data=Ge}catch(Ge){return a(T.from(Ge,null,e,pi.request,pi))}Vr(n,a,pi)})}b.once("abort",xe=>{ye.destroyed||(ye.emit("error",xe),ye.destroy())})}),b.once("abort",G=>{v.close?v.close():v.destroy(G)}),v.on("error",function(x){a(T.from(x,null,e,v))});let nn=new Set;if(v.on("socket",function(x){x.setKeepAlive(!0,1e3*60),x[Rk]||(x.on("error",function(Je){let ye=x[Ic];ye&&!ye.destroyed&&ye.destroy(Je)}),x[Rk]=!0),x[Ic]=v,nn.add(x)}),v.once("close",function(){$();for(let x of nn)x[Ic]===v&&(x[Ic]=null);nn.clear()}),e.timeout){let G=parseInt(e.timeout,10);if(Number.isNaN(G)){O(new T("error trying to parse `config.timeout` to int",T.ERR_BAD_OPTION_VALUE,e,v));return}let x=function(){m||O(N())};Oi&&G>0&&(y=setTimeout(x,G)),v.setTimeout(G,x)}else v.setTimeout(0);if(C.isStream(o)){let G=!1,x=!1;o.on("end",()=>{G=!0}),o.once("error",Je=>{x=!0,v.destroy(Je)}),o.on("close",()=>{!G&&!x&&O(new ut("Request stream has been aborted",e,v))});let be=o;if(e.maxBodyLength>-1&&e.maxRedirects===0){let Je=e.maxBodyLength,ye=0;be=Vi.pipeline([o,new Vi.Transform({transform(ni,pi,xe){if(ye+=ni.length,ye>Je)return xe(new T("Request body larger than maxBodyLength limit",T.ERR_BAD_REQUEST,e,v));xe(null,ni)}})],C.noop),be.on("error",ni=>{v.destroyed||v.destroy(ni)})}be.pipe(v)}else o&&v.write(o),v.end()})},OZ=Qe.hasStandardBrowserEnv?((t,e)=>i=>(i=new URL(i,Qe.origin),t.protocol===i.protocol&&t.host===i.host&&(e||t.port===i.port)))(new URL(Qe.origin),Qe.navigator&&/(msie|trident)/i.test(Qe.navigator.userAgent)):()=>!0,xZ=Qe.hasStandardBrowserEnv?{write(t,e,i,n,a,r,s){if(typeof document>"u")return;let o=[`${t}=${encodeURIComponent(e)}`];C.isNumber(i)&&o.push(`expires=${new Date(i).toUTCString()}`),C.isString(n)&&o.push(`path=${n}`),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 i=0;it instanceof ti?{...t}:t;function Ia(t,e){e=e||{};let i=Object.create(null);Object.defineProperty(i,"hasOwnProperty",{__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});function n(u,c,p,d){return C.isPlainObject(u)&&C.isPlainObject(c)?C.merge.call({caseless:d},u,c):C.isPlainObject(c)?C.merge({},c):C.isArray(c)?c.slice():c}function a(u,c,p,d){if(C.isUndefined(c)){if(!C.isUndefined(u))return n(void 0,u,p,d)}else return n(u,c,p,d)}function r(u,c){if(!C.isUndefined(c))return n(void 0,c)}function s(u,c){if(C.isUndefined(c)){if(!C.isUndefined(u))return n(void 0,u)}else return n(void 0,c)}function o(u,c,p){if(C.hasOwnProp(e,p))return n(u,c);if(C.hasOwnProp(t,p))return n(void 0,u)}let l={url:r,method:r,data:r,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,allowedSocketPaths:s,responseEncoding:s,validateStatus:o,headers:(u,c,p)=>a(Nk(u),Nk(c),p,!0)};return C.forEach(Object.keys({...t,...e}),function(c){if(c==="__proto__"||c==="constructor"||c==="prototype")return;let p=C.hasOwnProp(l,c)?l[c]:a,d=C.hasOwnProp(t,c)?t[c]:void 0,h=C.hasOwnProp(e,c)?e[c]:void 0,g=p(d,h,c);C.isUndefined(g)&&p!==o||(i[c]=g)}),i}var TZ=["content-type","content-length"];function MZ(t,e,i){if(i!=="content-only"){t.set(e);return}Object.entries(e).forEach(([n,a])=>{TZ.includes(n.toLowerCase())&&t.set(n,a)})}var EZ=t=>encodeURIComponent(t).replace(/%([0-9A-F]{2})/gi,(e,i)=>String.fromCharCode(parseInt(i,16))),vq=t=>{let e=Ia({},t),i=d=>C.hasOwnProp(e,d)?e[d]:void 0,n=i("data"),a=i("withXSRFToken"),r=i("xsrfHeaderName"),s=i("xsrfCookieName"),o=i("headers"),l=i("auth"),u=i("baseURL"),c=i("allowAbsoluteUrls"),p=i("url");if(e.headers=o=ti.from(o),e.url=vv(Av(u,p,c),t.params,t.paramsSerializer),l&&o.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?EZ(l.password):""))),C.isFormData(n)&&(Qe.hasStandardBrowserEnv||Qe.hasStandardBrowserWebWorkerEnv?o.setContentType(void 0):C.isFunction(n.getHeaders)&&MZ(o,n.getHeaders(),i("formDataHeaderPolicy"))),Qe.hasStandardBrowserEnv&&(C.isFunction(a)&&(a=a(e)),a===!0||a==null&&OZ(e.url))){let h=r&&s&&xZ.read(s);h&&o.set(r,h)}return e},kZ=typeof XMLHttpRequest<"u",qZ=kZ&&function(t){return new Promise(function(i,n){let a=vq(t),r=a.data,s=ti.from(a.headers).normalize(),{responseType:o,onUploadProgress:l,onDownloadProgress:u}=a,c,p,d,h,g;function m(){h&&h(),g&&g(),a.cancelToken&&a.cancelToken.unsubscribe(c),a.signal&&a.signal.removeEventListener("abort",c)}let f=new XMLHttpRequest;f.open(a.method.toUpperCase(),a.url,!0),f.timeout=a.timeout;function v(){if(!f)return;let A=ti.from("getAllResponseHeaders"in f&&f.getAllResponseHeaders()),O={data:!o||o==="text"||o==="json"?f.responseText:f.response,status:f.status,statusText:f.statusText,headers:A,config:t,request:f};Vr(function(N){i(N),m()},function(N){n(N),m()},O),f=null}"onloadend"in f?f.onloadend=v:f.onreadystatechange=function(){!f||f.readyState!==4||f.status===0&&!(f.responseURL&&f.responseURL.startsWith("file:"))||setTimeout(v)},f.onabort=function(){f&&(n(new T("Request aborted",T.ECONNABORTED,t,f)),m(),f=null)},f.onerror=function(b){let O=b&&b.message?b.message:"Network Error",$=new T(O,T.ERR_NETWORK,t,f);$.event=b||null,n($),m(),f=null},f.ontimeout=function(){let b=a.timeout?"timeout of "+a.timeout+"ms exceeded":"timeout exceeded",O=a.transitional||Kc;a.timeoutErrorMessage&&(b=a.timeoutErrorMessage),n(new T(b,O.clarifyTimeoutError?T.ETIMEDOUT:T.ECONNABORTED,t,f)),m(),f=null},r===void 0&&s.setContentType(null),"setRequestHeader"in f&&C.forEach(wv(s),function(b,O){f.setRequestHeader(O,b)}),C.isUndefined(a.withCredentials)||(f.withCredentials=!!a.withCredentials),o&&o!=="json"&&(f.responseType=a.responseType),u&&([d,g]=Zr(u,!0),f.addEventListener("progress",d)),l&&f.upload&&([p,h]=Zr(l),f.upload.addEventListener("progress",p),f.upload.addEventListener("loadend",h)),(a.cancelToken||a.signal)&&(c=A=>{f&&(n(!A||A.type?new ut(null,t,f):A),f.abort(),m(),f=null)},a.cancelToken&&a.cancelToken.subscribe(c),a.signal&&(a.signal.aborted?c():a.signal.addEventListener("abort",c)));let y=pq(a.url);if(y&&!Qe.protocols.includes(y)){n(new T("Unsupported protocol "+y+":",T.ERR_BAD_REQUEST,t));return}f.send(r||null)})},_Z=(t,e)=>{if(t=t?t.filter(Boolean):[],!e&&!t.length)return;let i=new AbortController,n=!1,a=function(l){if(!n){n=!0,s();let u=l instanceof Error?l:this.reason;i.abort(u instanceof T?u:new ut(u instanceof Error?u.message:u))}},r=e&&setTimeout(()=>{r=null,a(new T(`timeout of ${e}ms exceeded`,T.ETIMEDOUT))},e),s=()=>{t&&(r&&clearTimeout(r),r=null,t.forEach(l=>{l.unsubscribe?l.unsubscribe(a):l.removeEventListener("abort",a)}),t=null)};t.forEach(l=>l.addEventListener("abort",a));let{signal:o}=i;return o.unsubscribe=()=>C.asap(s),o},HZ=function*(t,e){let i=t.byteLength;if(i{let a=RZ(t,e),r=0,s,o=l=>{s||(s=!0,n&&n(l))};return new ReadableStream({async pull(l){try{let{done:u,value:c}=await a.next();if(u){o(),l.close();return}let p=c.byteLength;if(i){let d=r+=p;i(d)}l.enqueue(new Uint8Array(c))}catch(u){throw o(u),u}},cancel(l){return o(l),a.return()}},{highWaterMark:2})},Lk=64*1024,{isFunction:zc}=C,Wk=(t,...e)=>{try{return!!t(...e)}catch{return!1}},zZ=t=>{let e=C.global!==void 0&&C.global!==null?C.global:globalThis,{ReadableStream:i,TextEncoder:n}=e;t=C.merge.call({skipUndefined:!0},{Request:e.Request,Response:e.Response},t);let{fetch:a,Request:r,Response:s}=t,o=a?zc(a):typeof fetch=="function",l=zc(r),u=zc(s);if(!o)return!1;let c=o&&zc(i),p=o&&(typeof n=="function"?(v=>y=>v.encode(y))(new n):async v=>new Uint8Array(await new r(v).arrayBuffer())),d=l&&c&&Wk(()=>{let v=!1,y=new r(Qe.origin,{body:new i,method:"POST",get duplex(){return v=!0,"half"}}),A=y.headers.has("Content-Type");return y.body!=null&&y.body.cancel(),v&&!A}),h=u&&c&&Wk(()=>C.isReadableStream(new s("").body)),g={stream:h&&(v=>v.body)};o&&["text","arrayBuffer","blob","formData","stream"].forEach(v=>{!g[v]&&(g[v]=(y,A)=>{let b=y&&y[v];if(b)return b.call(y);throw new T(`Response type '${v}' is not supported`,T.ERR_NOT_SUPPORT,A)})});let m=async v=>{if(v==null)return 0;if(C.isBlob(v))return v.size;if(C.isSpecCompliantForm(v))return(await new r(Qe.origin,{method:"POST",body:v}).arrayBuffer()).byteLength;if(C.isArrayBufferView(v)||C.isArrayBuffer(v))return v.byteLength;if(C.isURLSearchParams(v)&&(v=v+""),C.isString(v))return(await p(v)).byteLength},f=async(v,y)=>{let A=C.toFiniteNumber(v.getContentLength());return A??m(y)};return async v=>{let{url:y,method:A,data:b,signal:O,cancelToken:$,timeout:N,onDownloadProgress:X,onUploadProgress:F,responseType:k,headers:Q,withCredentials:Z="same-origin",fetchOptions:ie,maxContentLength:se,maxBodyLength:De}=vq(v),S=C.isNumber(se)&&se>-1,R=C.isNumber(De)&&De>-1,Ae=a||fetch;k=k?(k+"").toLowerCase():"text";let Se=_Z([O,$&&$.toAbortSignal()],N),I=null,ei=Se&&Se.unsubscribe&&(()=>{Se.unsubscribe()}),Re;try{if(S&&typeof y=="string"&&y.startsWith("data:")&&gq(y)>se)throw new T("maxContentLength size of "+se+" exceeded",T.ERR_BAD_RESPONSE,v,I);if(R&&A!=="get"&&A!=="head"){let x=await f(Q,b);if(typeof x=="number"&&isFinite(x)&&x>De)throw new T("Request body larger than maxBodyLength limit",T.ERR_BAD_REQUEST,v,I)}if(F&&d&&A!=="get"&&A!=="head"&&(Re=await f(Q,b))!==0){let x=new r(y,{method:"POST",body:b,duplex:"half"}),be;if(C.isFormData(b)&&(be=x.headers.get("content-type"))&&Q.setContentType(be),x.body){let[Je,ye]=Lc(Re,Zr(Wc(F)));b=Uk(x.body,Lk,Je,ye)}}C.isString(Z)||(Z=Z?"include":"omit");let Me=l&&"credentials"in r.prototype;if(C.isFormData(b)){let x=Q.getContentType();x&&/^multipart\/form-data/i.test(x)&&!/boundary=/i.test(x)&&Q.delete("content-type")}Q.set("User-Agent","axios/"+Uo,!1);let Oi={...ie,signal:Se,method:A.toUpperCase(),headers:wv(Q.normalize()),body:b,duplex:"half",credentials:Me?Z:void 0};I=l&&new r(y,Oi);let vi=await(l?Ae(I,ie):Ae(y,Oi));if(S){let x=C.toFiniteNumber(vi.headers.get("content-length"));if(x!=null&&x>se)throw new T("maxContentLength size of "+se+" exceeded",T.ERR_BAD_RESPONSE,v,I)}let nn=h&&(k==="stream"||k==="response");if(h&&vi.body&&(X||S||nn&&ei)){let x={};["status","statusText","headers"].forEach(xe=>{x[xe]=vi[xe]});let be=C.toFiniteNumber(vi.headers.get("content-length")),[Je,ye]=X&&Lc(be,Zr(Wc(X),!0))||[],ni=0,pi=xe=>{if(S&&(ni=xe,ni>se))throw new T("maxContentLength size of "+se+" exceeded",T.ERR_BAD_RESPONSE,v,I);Je&&Je(xe)};vi=new s(Uk(vi.body,Lk,pi,()=>{ye&&ye(),ei&&ei()}),x)}k=k||"text";let G=await g[C.findKey(g,k)||"text"](vi,v);if(S&&!h&&!nn){let x;if(G!=null&&(typeof G.byteLength=="number"?x=G.byteLength:typeof G.size=="number"?x=G.size:typeof G=="string"&&(x=typeof n=="function"?new n().encode(G).byteLength:G.length)),typeof x=="number"&&x>se)throw new T("maxContentLength size of "+se+" exceeded",T.ERR_BAD_RESPONSE,v,I)}return!nn&&ei&&ei(),await new Promise((x,be)=>{Vr(x,be,{data:G,headers:ti.from(vi.headers),status:vi.status,statusText:vi.statusText,config:v,request:I})})}catch(Me){if(ei&&ei(),Se&&Se.aborted&&Se.reason instanceof T){let Oi=Se.reason;throw Oi.config=v,I&&(Oi.request=I),Me!==Oi&&(Oi.cause=Me),Oi}throw Me&&Me.name==="TypeError"&&/Load failed|fetch/i.test(Me.message)?Object.assign(new T("Network Error",T.ERR_NETWORK,v,I,Me&&Me.response),{cause:Me.cause||Me}):T.from(Me,Me&&Me.code,v,I,Me&&Me.response)}}},DZ=new Map,Cq=t=>{let e=t&&t.env||{},{fetch:i,Request:n,Response:a}=e,r=[n,a,i],s=r.length,o=s,l,u,c=DZ;for(;o--;)l=r[o],u=c.get(l),u===void 0&&c.set(l,u=o?new Map:zZ(e)),c=u;return u};Cq();var bv={http:SZ,xhr:qZ,fetch:{get:Cq}};C.forEach(bv,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{__proto__:null,value:e})}catch{}Object.defineProperty(t,"adapterName",{__proto__:null,value:e})}});var Bk=t=>`- ${t}`,GZ=t=>C.isFunction(t)||t===null||t===!1;function $Z(t,e){t=C.isArray(t)?t:[t];let{length:i}=t,n,a,r={};for(let s=0;s`adapter ${l} `+(u===!1?"is not supported by the environment":"is not available in the build")),o=i?s.length>1?`since : +`+s.map(Bk).join(` +`):" "+Bk(s[0]):"as no adapter specified";throw new T("There is no suitable adapter to dispatch the request "+o,"ERR_NOT_SUPPORT")}return a}var Aq={getAdapter:$Z,adapters:bv};function av(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new ut(null,t)}function Fk(t){return av(t),t.headers=ti.from(t.headers),t.data=nv.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),Aq.getAdapter(t.adapter||Vo.adapter,t)(t).then(function(n){av(t),t.response=n;try{n.data=nv.call(t,t.transformResponse,n)}finally{delete t.response}return n.headers=ti.from(n.headers),n},function(n){if(!cq(n)&&(av(t),n&&n.response)){t.response=n.response;try{n.response.data=nv.call(t,t.transformResponse,n.response)}finally{delete t.response}n.response.headers=ti.from(n.response.headers)}return Promise.reject(n)})}var Qc={};["object","boolean","number","function","string","symbol"].forEach((t,e)=>{Qc[t]=function(n){return typeof n===t||"a"+(e<1?"n ":" ")+t}});var Vk={};Qc.transitional=function(e,i,n){function a(r,s){return"[Axios v"+Uo+"] Transitional option '"+r+"'"+s+(n?". "+n:"")}return(r,s,o)=>{if(e===!1)throw new T(a(s," has been removed"+(i?" in "+i:"")),T.ERR_DEPRECATED);return i&&!Vk[s]&&(Vk[s]=!0,console.warn(a(s," has been deprecated since v"+i+" and will be removed in the near future"))),e?e(r,s,o):!0}};Qc.spelling=function(e){return(i,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};function NZ(t,e,i){if(typeof t!="object")throw new T("options must be an object",T.ERR_BAD_OPTION_VALUE);let n=Object.keys(t),a=n.length;for(;a-- >0;){let r=n[a],s=Object.prototype.hasOwnProperty.call(e,r)?e[r]:void 0;if(s){let o=t[r],l=o===void 0||s(o,r,t);if(l!==!0)throw new T("option "+r+" must be "+l,T.ERR_BAD_OPTION_VALUE);continue}if(i!==!0)throw new T("Unknown option "+r,T.ERR_BAD_OPTION)}}var $c={assertOptions:NZ,validators:Qc},gn=$c.validators,lt=class{constructor(e){this.defaults=e||{},this.interceptors={request:new Nc,response:new Nc}}async request(e,i){try{return await this._request(e,i)}catch(n){if(n instanceof Error){let a={};Error.captureStackTrace?Error.captureStackTrace(a):a=new Error;let r=(()=>{if(!a.stack)return"";let s=a.stack.indexOf(` `);return s===-1?"":a.stack.slice(s+1)})();try{if(!n.stack)n.stack=r;else if(r){let s=r.indexOf(` `),o=s===-1?-1:r.indexOf(` `,s+1),l=o===-1?"":r.slice(o+1);String(n.stack).endsWith(l)||(n.stack+=` -`+r)}}catch{}}throw n}}_request(e,i){typeof e=="string"?(i=i||{},i.url=e):i=e||{},i=Ia(this.defaults,i);let{transitional:n,paramsSerializer:a,headers:r}=i;n!==void 0&&Gc.assertOptions(n,{silentJSONParsing:gn.transitional(gn.boolean),forcedJSONParsing:gn.transitional(gn.boolean),clarifyTimeoutError:gn.transitional(gn.boolean),legacyInterceptorReqResOrdering:gn.transitional(gn.boolean)},!1),a!=null&&(C.isFunction(a)?i.paramsSerializer={serialize:a}:Gc.assertOptions(a,{encode:gn.function,serialize:gn.function},!0)),i.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?i.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:i.allowAbsoluteUrls=!0),Gc.assertOptions(i,{baseUrl:gn.spelling("baseURL"),withXsrfToken:gn.spelling("withXSRFToken")},!0),i.method=(i.method||this.defaults.method||"get").toLowerCase();let s=r&&C.merge(r.common,r[i.method]);r&&C.forEach(["delete","get","head","post","put","patch","query","common"],g=>{delete r[g]}),i.headers=ti.concat(s,r);let o=[],l=!0;this.interceptors.request.forEach(function(m){if(typeof m.runWhen=="function"&&m.runWhen(i)===!1)return;l=l&&m.synchronous;let f=i.transitional||Zc;f&&f.legacyInterceptorReqResOrdering?o.unshift(m.fulfilled,m.rejected):o.push(m.fulfilled,m.rejected)});let u=[];this.interceptors.response.forEach(function(m){u.push(m.fulfilled,m.rejected)});let c,p=0,d;if(!l){let g=[Wk.bind(this),void 0];for(g.unshift(...o),g.push(...u),d=g.length,c=Promise.resolve(i);p{if(!n._listeners)return;let r=n._listeners.length;for(;r-- >0;)n._listeners[r](a);n._listeners=null}),this.promise.then=a=>{let r,s=new Promise(o=>{n.subscribe(o),r=o}).then(a);return s.cancel=function(){n.unsubscribe(r)},s},e(function(r,s,o){n.reason||(n.reason=new ut(r,s,o),i(n.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 i=this._listeners.indexOf(e);i!==-1&&this._listeners.splice(i,1)}toAbortSignal(){let e=new AbortController,i=n=>{e.abort(n)};return this.subscribe(i),e.signal.unsubscribe=()=>this.unsubscribe(i),e.signal}static source(){let e;return{token:new t(function(a){e=a}),cancel:e}}};function IZ(t){return function(i){return t.apply(null,i)}}function zZ(t){return C.isObject(t)&&t.isAxiosError===!0}var dv={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(dv).forEach(([t,e])=>{dv[e]=t});function Cq(t){let e=new lt(t),i=Zk(lt.prototype.request,e);return C.extend(i,lt.prototype,e,{allOwnKeys:!0}),C.extend(i,e,null,{allOwnKeys:!0}),i.create=function(a){return Cq(Ia(t,a))},i}var ai=Cq(Bo);ai.Axios=lt;ai.CanceledError=ut;ai.CancelToken=pv;ai.isCancel=lq;ai.VERSION=$o;ai.toFormData=Jc;ai.AxiosError=T;ai.Cancel=ai.CanceledError;ai.all=function(e){return Promise.all(e)};ai.spread=IZ;ai.isAxiosError=zZ;ai.mergeConfig=Ia;ai.AxiosHeaders=ti;ai.formToJSON=t=>oq(C.isHTMLForm(t)?new FormData(t):t);ai.getAdapter=vq.getAdapter;ai.HttpStatusCode=dv;ai.default=ai;Aq.exports=ai});var Pq=w((aoe,yq)=>{yq.exports=require("util").inspect});var Ko=w((roe,Lq)=>{var Mv=typeof Map=="function"&&Map.prototype,Av=Object.getOwnPropertyDescriptor&&Mv?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,Yc=Mv&&Av&&typeof Av.get=="function"?Av.get:null,jq=Mv&&Map.prototype.forEach,Ev=typeof Set=="function"&&Set.prototype,bv=Object.getOwnPropertyDescriptor&&Ev?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,Xc=Ev&&bv&&typeof bv.get=="function"?bv.get:null,Sq=Ev&&Set.prototype.forEach,DZ=typeof WeakMap=="function"&&WeakMap.prototype,Vo=DZ?WeakMap.prototype.has:null,GZ=typeof WeakSet=="function"&&WeakSet.prototype,Jo=GZ?WeakSet.prototype.has:null,$Z=typeof WeakRef=="function"&&WeakRef.prototype,Oq=$Z?WeakRef.prototype.deref:null,NZ=Boolean.prototype.valueOf,UZ=Object.prototype.toString,LZ=Function.prototype.toString,WZ=String.prototype.match,kv=String.prototype.slice,Gt=String.prototype.replace,BZ=String.prototype.toUpperCase,xq=String.prototype.toLowerCase,Iq=RegExp.prototype.test,Tq=Array.prototype.concat,$n=Array.prototype.join,FZ=Array.prototype.slice,Mq=Math.floor,jv=typeof BigInt=="function"?BigInt.prototype.valueOf:null,yv=Object.getOwnPropertySymbols,Sv=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,Kr=typeof Symbol=="function"&&typeof Symbol.iterator=="object",Zo=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===Kr||!0)?Symbol.toStringTag:null,zq=Object.prototype.propertyIsEnumerable,Eq=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(t){return t.__proto__}:null);function kq(t,e){if(t===1/0||t===-1/0||t!==t||t&&t>-1e3&&t<1e3||Iq.call(/e/,e))return e;var i=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof t=="number"){var n=t<0?-Mq(-t):Mq(t);if(n!==t){var a=String(n),r=kv.call(e,a.length+1);return Gt.call(a,i,"$&_")+"."+Gt.call(Gt.call(r,/([0-9]{3})/g,"$&_"),/_$/,"")}}return Gt.call(e,i,"$&_")}var Ov=Pq(),qq=Ov.custom,_q=$q(qq)?qq:null,Dq={__proto__:null,double:'"',single:"'"},VZ={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};Lq.exports=function t(e,i,n,a){var r=i||{};if(ct(r,"quoteStyle")&&!ct(Dq,r.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(ct(r,"maxStringLength")&&(typeof r.maxStringLength=="number"?r.maxStringLength<0&&r.maxStringLength!==1/0:r.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var s=ct(r,"customInspect")?r.customInspect:!0;if(typeof s!="boolean"&&s!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(ct(r,"indent")&&r.indent!==null&&r.indent!==" "&&!(parseInt(r.indent,10)===r.indent&&r.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(ct(r,"numericSeparator")&&typeof r.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var o=r.numericSeparator;if(typeof e>"u")return"undefined";if(e===null)return"null";if(typeof e=="boolean")return e?"true":"false";if(typeof e=="string")return Uq(e,r);if(typeof e=="number"){if(e===0)return 1/0/e>0?"0":"-0";var l=String(e);return o?kq(e,l):l}if(typeof e=="bigint"){var u=String(e)+"n";return o?kq(e,u):u}var c=typeof r.depth>"u"?5:r.depth;if(typeof n>"u"&&(n=0),n>=c&&c>0&&typeof e=="object")return xv(e)?"[Array]":"[Object]";var p=p5(r,n);if(typeof a>"u")a=[];else if(Nq(a,e)>=0)return"[Circular]";function d(ie,se,De){if(se&&(a=FZ.call(a),a.push(se)),De){var S={depth:r.depth};return ct(r,"quoteStyle")&&(S.quoteStyle=r.quoteStyle),t(ie,S,n+1,a)}return t(ie,r,n+1,a)}if(typeof e=="function"&&!Hq(e)){var h=n5(e),g=Qc(e,d);return"[Function"+(h?": "+h:" (anonymous)")+"]"+(g.length>0?" { "+$n.call(g,", ")+" }":"")}if($q(e)){var m=Kr?Gt.call(String(e),/^(Symbol\(.*\))_[^)]*$/,"$1"):Sv.call(e);return typeof e=="object"&&!Kr?Fo(m):m}if(l5(e)){for(var f="<"+xq.call(String(e.nodeName)),v=e.attributes||[],y=0;y",f}if(xv(e)){if(e.length===0)return"[]";var A=Qc(e,d);return p&&!c5(A)?"["+Tv(A,p)+"]":"[ "+$n.call(A,", ")+" ]"}if(KZ(e)){var b=Qc(e,d);return!("cause"in Error.prototype)&&"cause"in e&&!zq.call(e,"cause")?"{ ["+String(e)+"] "+$n.call(Tq.call("[cause]: "+d(e.cause),b),", ")+" }":b.length===0?"["+String(e)+"]":"{ ["+String(e)+"] "+$n.call(b,", ")+" }"}if(typeof e=="object"&&s){if(_q&&typeof e[_q]=="function"&&Ov)return Ov(e,{depth:c-n});if(s!=="symbol"&&typeof e.inspect=="function")return e.inspect()}if(t5(e)){var O=[];return jq&&jq.call(e,function(ie,se){O.push(d(se,e,!0)+" => "+d(ie,e))}),Rq("Map",Yc.call(e),O,p)}if(s5(e)){var $=[];return Sq&&Sq.call(e,function(ie){$.push(d(ie,e))}),Rq("Set",Xc.call(e),$,p)}if(a5(e))return Pv("WeakMap");if(o5(e))return Pv("WeakSet");if(r5(e))return Pv("WeakRef");if(YZ(e))return Fo(d(Number(e)));if(e5(e))return Fo(d(jv.call(e)));if(XZ(e))return Fo(NZ.call(e));if(QZ(e))return Fo(d(String(e)));if(typeof window<"u"&&e===window)return"{ [object Window] }";if(typeof globalThis<"u"&&e===globalThis||typeof global<"u"&&e===global)return"{ [object globalThis] }";if(!ZZ(e)&&!Hq(e)){var N=Qc(e,d),X=Eq?Eq(e)===Object.prototype:e instanceof Object||e.constructor===Object,F=e instanceof Object?"":"null prototype",k=!X&&Zo&&Object(e)===e&&Zo in e?kv.call($t(e),8,-1):F?"Object":"",Q=X||typeof e.constructor!="function"?"":e.constructor.name?e.constructor.name+" ":"",Z=Q+(k||F?"["+$n.call(Tq.call([],k||[],F||[]),": ")+"] ":"");return N.length===0?Z+"{}":p?Z+"{"+Tv(N,p)+"}":Z+"{ "+$n.call(N,", ")+" }"}return String(e)};function Gq(t,e,i){var n=i.quoteStyle||e,a=Dq[n];return a+t+a}function JZ(t){return Gt.call(String(t),/"/g,""")}function za(t){return!Zo||!(typeof t=="object"&&(Zo in t||typeof t[Zo]<"u"))}function xv(t){return $t(t)==="[object Array]"&&za(t)}function ZZ(t){return $t(t)==="[object Date]"&&za(t)}function Hq(t){return $t(t)==="[object RegExp]"&&za(t)}function KZ(t){return $t(t)==="[object Error]"&&za(t)}function QZ(t){return $t(t)==="[object String]"&&za(t)}function YZ(t){return $t(t)==="[object Number]"&&za(t)}function XZ(t){return $t(t)==="[object Boolean]"&&za(t)}function $q(t){if(Kr)return t&&typeof t=="object"&&t instanceof Symbol;if(typeof t=="symbol")return!0;if(!t||typeof t!="object"||!Sv)return!1;try{return Sv.call(t),!0}catch{}return!1}function e5(t){if(!t||typeof t!="object"||!jv)return!1;try{return jv.call(t),!0}catch{}return!1}var i5=Object.prototype.hasOwnProperty||function(t){return t in this};function ct(t,e){return i5.call(t,e)}function $t(t){return UZ.call(t)}function n5(t){if(t.name)return t.name;var e=WZ.call(LZ.call(t),/^function\s*([\w$]+)/);return e?e[1]:null}function Nq(t,e){if(t.indexOf)return t.indexOf(e);for(var i=0,n=t.length;ie.maxStringLength){var i=t.length-e.maxStringLength,n="... "+i+" more character"+(i>1?"s":"");return Uq(kv.call(t,0,e.maxStringLength),e)+n}var a=VZ[e.quoteStyle||"single"];a.lastIndex=0;var r=Gt.call(Gt.call(t,a,"\\$1"),/[\x00-\x1f]/g,u5);return Gq(r,"single",e)}function u5(t){var e=t.charCodeAt(0),i={8:"b",9:"t",10:"n",12:"f",13:"r"}[e];return i?"\\"+i:"\\x"+(e<16?"0":"")+BZ.call(e.toString(16))}function Fo(t){return"Object("+t+")"}function Pv(t){return t+" { ? }"}function Rq(t,e,i,n){var a=n?Tv(i,n):$n.call(i,", ");return t+" ("+e+") {"+a+"}"}function c5(t){for(var e=0;e=0)return!1;return!0}function p5(t,e){var i;if(t.indent===" ")i=" ";else if(typeof t.indent=="number"&&t.indent>0)i=$n.call(Array(t.indent+1)," ");else return null;return{base:i,prev:$n.call(Array(e+1),i)}}function Tv(t,e){if(t.length===0)return"";var i=` -`+e.prev+e.base;return i+$n.call(t,","+i)+` -`+e.prev}function Qc(t,e){var i=xv(t),n=[];if(i){n.length=t.length;for(var a=0;a{"use strict";var d5=Ko(),h5=It(),ep=function(t,e,i){for(var n=t,a;(a=n.next)!=null;n=a)if(a.key===e)return n.next=a.next,i||(a.next=t.next,t.next=a),a},g5=function(t,e){if(t){var i=ep(t,e);return i&&i.value}},m5=function(t,e,i){var n=ep(t,e);n?n.value=i:t.next={key:e,next:t.next,value:i}},f5=function(t,e){return t?!!ep(t,e):!1},w5=function(t,e){if(t)return ep(t,e,!0)};Wq.exports=function(){var e,i={assert:function(n){if(!i.has(n))throw new h5("Side channel does not contain "+d5(n))},delete:function(n){var a=w5(e,n);return a&&e&&!e.next&&(e=void 0),!!a},get:function(n){return g5(e,n)},has:function(n){return f5(e,n)},set:function(n,a){e||(e={next:void 0}),m5(e,n,a)}};return i}});var qv=w((ooe,Jq)=>{"use strict";var Fq=Mo(),Vq=bw(),v5=Vq([Fq("%String.prototype.indexOf%")]);Jq.exports=function(e,i){var n=Fq(e,!!i);return typeof n=="function"&&v5(e,".prototype.")>-1?Vq([n]):n}});var _v=w((loe,Kq)=>{"use strict";var C5=Mo(),Qo=qv(),A5=Ko(),b5=It(),Zq=C5("%Map%",!0),y5=Qo("Map.prototype.get",!0),P5=Qo("Map.prototype.set",!0),j5=Qo("Map.prototype.has",!0),S5=Qo("Map.prototype.delete",!0),O5=Qo("Map.prototype.size",!0);Kq.exports=!!Zq&&function(){var e,i={assert:function(n){if(!i.has(n))throw new b5("Side channel does not contain "+A5(n))},delete:function(n){if(e){var a=S5(e,n);return O5(e)===0&&(e=void 0),a}return!1},get:function(n){if(e)return y5(e,n)},has:function(n){return e?j5(e,n):!1},set:function(n,a){e||(e=new Zq),P5(e,n,a)}};return i}});var Yq=w((uoe,Qq)=>{"use strict";var x5=Mo(),np=qv(),T5=Ko(),ip=_v(),M5=It(),Qr=x5("%WeakMap%",!0),E5=np("WeakMap.prototype.get",!0),k5=np("WeakMap.prototype.set",!0),q5=np("WeakMap.prototype.has",!0),_5=np("WeakMap.prototype.delete",!0);Qq.exports=Qr?function(){var e,i,n={assert:function(a){if(!n.has(a))throw new M5("Side channel does not contain "+T5(a))},delete:function(a){if(Qr&&a&&(typeof a=="object"||typeof a=="function")){if(e)return _5(e,a)}else if(ip&&i)return i.delete(a);return!1},get:function(a){return Qr&&a&&(typeof a=="object"||typeof a=="function")&&e?E5(e,a):i&&i.get(a)},has:function(a){return Qr&&a&&(typeof a=="object"||typeof a=="function")&&e?q5(e,a):!!i&&i.has(a)},set:function(a,r){Qr&&a&&(typeof a=="object"||typeof a=="function")?(e||(e=new Qr),k5(e,a,r)):ip&&(i||(i=ip()),i.set(a,r))}};return n}:ip});var Hv=w((coe,Xq)=>{"use strict";var H5=It(),R5=Ko(),I5=Bq(),z5=_v(),D5=Yq(),G5=D5||z5||I5;Xq.exports=function(){var e,i={assert:function(n){if(!i.has(n))throw new H5("Side channel does not contain "+R5(n))},delete:function(n){return!!e&&e.delete(n)},get:function(n){return e&&e.get(n)},has:function(n){return!!e&&e.has(n)},set:function(n,a){e||(e=G5()),e.set(n,a)}};return i}});var tp=w((poe,e_)=>{"use strict";var $5=String.prototype.replace,N5=/%20/g,Rv={RFC1738:"RFC1738",RFC3986:"RFC3986"};e_.exports={default:Rv.RFC3986,formatters:{RFC1738:function(t){return $5.call(t,N5,"+")},RFC3986:function(t){return String(t)}},RFC1738:Rv.RFC1738,RFC3986:Rv.RFC3986}});var Gv=w((doe,i_)=>{"use strict";var U5=tp(),L5=Hv(),Iv=Object.prototype.hasOwnProperty,Da=Array.isArray,ap=L5(),Yr=function(e,i){return ap.set(e,i),e},Ga=function(e){return ap.has(e)},Yo=function(e){return ap.get(e)},Dv=function(e,i){ap.set(e,i)},Nn=(function(){for(var t=[],e=0;e<256;++e)t[t.length]="%"+((e<16?"0":"")+e.toString(16)).toUpperCase();return t})(),W5=function(e){for(;e.length>1;){var i=e.pop(),n=i.obj[i.prop];if(Da(n)){for(var a=[],r=0;rn.arrayLimit)return Yr(Xo(e.concat(i),n),a);e[a]=i}else if(e&&typeof e=="object")if(Ga(e)){var r=Yo(e)+1;e[r]=i,Dv(e,r)}else{if(n&&n.strictMerge)return[e,i];(n&&(n.plainObjects||n.allowPrototypes)||!Iv.call(Object.prototype,i))&&(e[i]=!0)}else return[e,i];return e}if(!e||typeof e!="object"){if(Ga(i)){for(var s=Object.keys(i),o=n&&n.plainObjects?{__proto__:null,0:e}:{0:e},l=0;ln.arrayLimit?Yr(Xo(c,n),c.length-1):c}var p=e;return Da(e)&&!Da(i)&&(p=Xo(e,n)),Da(e)&&Da(i)?(i.forEach(function(d,h){if(Iv.call(e,h)){var g=e[h];g&&typeof g=="object"&&d&&typeof d=="object"?e[h]=t(g,d,n):e[e.length]=d}else e[h]=d}),e):Object.keys(i).reduce(function(d,h){var g=i[h];if(Iv.call(d,h)?d[h]=t(d[h],g,n):d[h]=g,Ga(i)&&!Ga(d)&&Yr(d,Yo(i)),Ga(d)){var m=parseInt(h,10);String(m)===h&&m>=0&&m>Yo(d)&&Dv(d,m)}return d},p)},F5=function(e,i){return Object.keys(i).reduce(function(n,a){return n[a]=i[a],n},e)},V5=function(t,e,i){var n=t.replace(/\+/g," ");if(i==="iso-8859-1")return n.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(n)}catch{return n}},zv=1024,J5=function(e,i,n,a,r){if(e.length===0)return e;var s=e;if(typeof e=="symbol"?s=Symbol.prototype.toString.call(e):typeof e!="string"&&(s=String(e)),n==="iso-8859-1")return escape(s).replace(/%u[0-9a-f]{4}/gi,function(h){return"%26%23"+parseInt(h.slice(2),16)+"%3B"});for(var o="",l=0;l=zv?s.slice(l,l+zv):s,c=[],p=0;p=48&&d<=57||d>=65&&d<=90||d>=97&&d<=122||r===U5.RFC1738&&(d===40||d===41)){c[c.length]=u.charAt(p);continue}if(d<128){c[c.length]=Nn[d];continue}if(d<2048){c[c.length]=Nn[192|d>>6]+Nn[128|d&63];continue}if(d<55296||d>=57344){c[c.length]=Nn[224|d>>12]+Nn[128|d>>6&63]+Nn[128|d&63];continue}p+=1,d=65536+((d&1023)<<10|u.charCodeAt(p)&1023),c[c.length]=Nn[240|d>>18]+Nn[128|d>>12&63]+Nn[128|d>>6&63]+Nn[128|d&63]}o+=c.join("")}return o},Z5=function(e){for(var i=[{obj:{o:e},prop:"o"}],n=[],a=0;an?Yr(Xo(s,{plainObjects:a}),s.length-1):s},X5=function(e,i){if(Da(e)){for(var n=[],a=0;a{"use strict";var t_=Hv(),rp=Gv(),el=tp(),eK=Object.prototype.hasOwnProperty,a_={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,i){return e+"["+i+"]"},repeat:function(e){return e}},Un=Array.isArray,iK=Array.prototype.push,r_=function(t,e){iK.apply(t,Un(e)?e:[e])},nK=Date.prototype.toISOString,n_=el.default,oi={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,commaRoundTrip:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:rp.encode,encodeValuesOnly:!1,filter:void 0,format:n_,formatter:el.formatters[n_],indices:!1,serializeDate:function(e){return nK.call(e)},skipNulls:!1,strictNullHandling:!1},tK=function(e){return typeof e=="string"||typeof e=="number"||typeof e=="boolean"||typeof e=="symbol"||typeof e=="bigint"},$v={},aK=function t(e,i,n,a,r,s,o,l,u,c,p,d,h,g,m,f,v,y){for(var A=e,b=y,O=0,$=!1;(b=b.get($v))!==void 0&&!$;){var N=b.get(e);if(O+=1,typeof N<"u"){if(N===O)throw new RangeError("Cyclic object value");$=!0}typeof b.get($v)>"u"&&(O=0)}if(typeof c=="function"?A=c(i,A):A instanceof Date?A=h(A):n==="comma"&&Un(A)&&(A=rp.maybeMap(A,function(I){return I instanceof Date?h(I):I})),A===null){if(s)return m(u&&!f?u(i,oi.encoder,v,"key",g):i);A=""}if(tK(A)||rp.isBuffer(A)){if(u){var X=f?i:u(i,oi.encoder,v,"key",g);return[m(X)+"="+m(u(A,oi.encoder,v,"value",g))]}return[m(i)+"="+m(String(A))]}var F=[];if(typeof A>"u")return F;var k;if(n==="comma"&&Un(A))f&&u&&(A=rp.maybeMap(A,function(I){return I==null?I:u(I)})),k=[{value:A.length>0?A.join(",")||null:void 0}];else if(Un(c))k=c;else{var Q=Object.keys(A);k=p?Q.sort(p):Q}var Z=l?String(i).replace(/\./g,"%2E"):String(i),ie=a&&Un(A)&&A.length===1?Z+"[]":Z;if(r&&Un(A)&&A.length===0)return ie+"[]";for(var se=0;se"u"?e.encodeDotInKeys===!0?!0:oi.allowDots:!!e.allowDots;return{addQueryPrefix:typeof e.addQueryPrefix=="boolean"?e.addQueryPrefix:oi.addQueryPrefix,allowDots:o,allowEmptyArrays:typeof e.allowEmptyArrays=="boolean"?!!e.allowEmptyArrays:oi.allowEmptyArrays,arrayFormat:s,charset:i,charsetSentinel:typeof e.charsetSentinel=="boolean"?e.charsetSentinel:oi.charsetSentinel,commaRoundTrip:!!e.commaRoundTrip,delimiter:typeof e.delimiter>"u"?oi.delimiter:e.delimiter,encode:typeof e.encode=="boolean"?e.encode:oi.encode,encodeDotInKeys:typeof e.encodeDotInKeys=="boolean"?e.encodeDotInKeys:oi.encodeDotInKeys,encoder:typeof e.encoder=="function"?e.encoder:oi.encoder,encodeValuesOnly:typeof e.encodeValuesOnly=="boolean"?e.encodeValuesOnly:oi.encodeValuesOnly,filter:r,format:n,formatter:a,serializeDate:typeof e.serializeDate=="function"?e.serializeDate:oi.serializeDate,skipNulls:typeof e.skipNulls=="boolean"?e.skipNulls:oi.skipNulls,sort:typeof e.sort=="function"?e.sort:null,strictNullHandling:typeof e.strictNullHandling=="boolean"?e.strictNullHandling:oi.strictNullHandling}};s_.exports=function(t,e){var i=t,n=rK(e),a,r;typeof n.filter=="function"?(r=n.filter,i=r("",i)):Un(n.filter)&&(r=n.filter,a=r);var s=[];if(typeof i!="object"||i===null)return"";var o=a_[n.arrayFormat],l=o==="comma"&&n.commaRoundTrip;a||(a=Object.keys(i)),n.sort&&a.sort(n.sort);for(var u=t_(),c=0;c"u"||p===null)){var d=i[p];n.skipNulls&&d===null||r_(s,aK(d,p,o,l,n.allowEmptyArrays,n.strictNullHandling,n.skipNulls,n.encodeDotInKeys,n.encode?n.encoder:null,n.filter,n.sort,n.allowDots,n.serializeDate,n.format,n.formatter,n.encodeValuesOnly,n.charset,u))}}var h=s.join(n.delimiter),g=n.addQueryPrefix===!0?"?":"";return n.charsetSentinel&&(n.charset==="iso-8859-1"?g+="utf8=%26%2310003%3B"+n.delimiter:g+="utf8=%E2%9C%93"+n.delimiter),h.length>0?g+h:""}});var c_=w((goe,u_)=>{"use strict";var Ln=Gv(),sp=Object.prototype.hasOwnProperty,Nv=Array.isArray,Ze={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:Ln.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictMerge:!0,strictNullHandling:!1,throwOnLimitExceeded:!1},sK=function(t){return t.replace(/&#(\d+);/g,function(e,i){return String.fromCharCode(parseInt(i,10))})},l_=function(t,e,i){if(t&&typeof t=="string"&&e.comma&&t.indexOf(",")>-1)return t.split(",");if(e.throwOnLimitExceeded&&i>=e.arrayLimit)throw new RangeError("Array limit exceeded. Only "+e.arrayLimit+" element"+(e.arrayLimit===1?"":"s")+" allowed in an array.");return t},oK="utf8=%26%2310003%3B",lK="utf8=%E2%9C%93",uK=function(e,i){var n={__proto__:null},a=i.ignoreQueryPrefix?e.replace(/^\?/,""):e;a=a.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var r=i.parameterLimit===1/0?void 0:i.parameterLimit,s=a.split(i.delimiter,i.throwOnLimitExceeded&&typeof r<"u"?r+1:r);if(i.throwOnLimitExceeded&&typeof r<"u"&&s.length>r)throw new RangeError("Parameter limit exceeded. Only "+r+" parameter"+(r===1?"":"s")+" allowed.");var o=-1,l,u=i.charset;if(i.charsetSentinel)for(l=0;l-1&&(g=Nv(g)?[g]:g),i.comma&&Nv(g)&&g.length>i.arrayLimit){if(i.throwOnLimitExceeded)throw new RangeError("Array limit exceeded. Only "+i.arrayLimit+" element"+(i.arrayLimit===1?"":"s")+" allowed in an array.");g=Ln.combine([],g,i.arrayLimit,i.plainObjects)}if(h!==null){var m=sp.call(n,h);m&&(i.duplicates==="combine"||c.indexOf("[]=")>-1)?n[h]=Ln.combine(n[h],g,i.arrayLimit,i.plainObjects):(!m||i.duplicates==="last")&&(n[h]=g)}}return n},cK=function(t,e,i,n){var a=0;if(t.length>0&&t[t.length-1]==="[]"){var r=t.slice(0,-1).join("");a=Array.isArray(e)&&e[r]?e[r].length:0}for(var s=n?e:l_(e,i,a),o=t.length-1;o>=0;--o){var l,u=t[o];if(u==="[]"&&i.parseArrays)Ln.isOverflow(s)?l=s:l=i.allowEmptyArrays&&(s===""||i.strictNullHandling&&s===null)?[]:Ln.combine([],s,i.arrayLimit,i.plainObjects);else{l=i.plainObjects?{__proto__:null}:{};var c=u.charAt(0)==="["&&u.charAt(u.length-1)==="]"?u.slice(1,-1):u,p=i.decodeDotInKeys?c.replace(/%2E/g,"."):c,d=parseInt(p,10),h=!isNaN(d)&&u!==p&&String(d)===p&&d>=0&&i.parseArrays;if(!i.parseArrays&&p==="")l={0:s};else if(h&&d=0?n.slice(0,r):n;if(s){if(!i.plainObjects&&sp.call(Object.prototype,s)&&!i.allowPrototypes)return;a[a.length]=s}for(var o=n.length,l=r,u=0;l>=0&&u=0){if(i.strictDepth===!0)throw new RangeError("Input depth exceeded depth option of "+i.depth+" and strictDepth is true");a[a.length]="["+n.slice(l)+"]"}return a},dK=function(e,i,n,a){if(e){var r=pK(e,n);if(r)return cK(r,i,n,a)}},hK=function(e){if(!e)return Ze;if(typeof e.allowEmptyArrays<"u"&&typeof e.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof e.decodeDotInKeys<"u"&&typeof e.decodeDotInKeys!="boolean")throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(e.decoder!==null&&typeof e.decoder<"u"&&typeof e.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof e.charset<"u"&&e.charset!=="utf-8"&&e.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");if(typeof e.throwOnLimitExceeded<"u"&&typeof e.throwOnLimitExceeded!="boolean")throw new TypeError("`throwOnLimitExceeded` option must be a boolean");var i=typeof e.charset>"u"?Ze.charset:e.charset,n=typeof e.duplicates>"u"?Ze.duplicates:e.duplicates;if(n!=="combine"&&n!=="first"&&n!=="last")throw new TypeError("The duplicates option must be either combine, first, or last");var a=typeof e.allowDots>"u"?e.decodeDotInKeys===!0?!0:Ze.allowDots:!!e.allowDots;return{allowDots:a,allowEmptyArrays:typeof e.allowEmptyArrays=="boolean"?!!e.allowEmptyArrays:Ze.allowEmptyArrays,allowPrototypes:typeof e.allowPrototypes=="boolean"?e.allowPrototypes:Ze.allowPrototypes,allowSparse:typeof e.allowSparse=="boolean"?e.allowSparse:Ze.allowSparse,arrayLimit:typeof e.arrayLimit=="number"?e.arrayLimit:Ze.arrayLimit,charset:i,charsetSentinel:typeof e.charsetSentinel=="boolean"?e.charsetSentinel:Ze.charsetSentinel,comma:typeof e.comma=="boolean"?e.comma:Ze.comma,decodeDotInKeys:typeof e.decodeDotInKeys=="boolean"?e.decodeDotInKeys:Ze.decodeDotInKeys,decoder:typeof e.decoder=="function"?e.decoder:Ze.decoder,delimiter:typeof e.delimiter=="string"||Ln.isRegExp(e.delimiter)?e.delimiter:Ze.delimiter,depth:typeof e.depth=="number"||e.depth===!1?+e.depth:Ze.depth,duplicates:n,ignoreQueryPrefix:e.ignoreQueryPrefix===!0,interpretNumericEntities:typeof e.interpretNumericEntities=="boolean"?e.interpretNumericEntities:Ze.interpretNumericEntities,parameterLimit:typeof e.parameterLimit=="number"?e.parameterLimit:Ze.parameterLimit,parseArrays:e.parseArrays!==!1,plainObjects:typeof e.plainObjects=="boolean"?e.plainObjects:Ze.plainObjects,strictDepth:typeof e.strictDepth=="boolean"?!!e.strictDepth:Ze.strictDepth,strictMerge:typeof e.strictMerge=="boolean"?!!e.strictMerge:Ze.strictMerge,strictNullHandling:typeof e.strictNullHandling=="boolean"?e.strictNullHandling:Ze.strictNullHandling,throwOnLimitExceeded:typeof e.throwOnLimitExceeded=="boolean"?e.throwOnLimitExceeded:!1}};u_.exports=function(t,e){var i=hK(e);if(t===""||t===null||typeof t>"u")return i.plainObjects?{__proto__:null}:{};for(var n=typeof t=="string"?uK(t,i):t,a=i.plainObjects?{__proto__:null}:{},r=Object.keys(n),s=0;s{"use strict";var gK=o_(),mK=c_(),fK=tp();p_.exports={formats:fK,parse:mK,stringify:gK}});var Zi=w((foe,h_)=>{"use strict";var Uv=class t extends Error{constructor(e){super(`Format functions must be synchronous taking a two arguments: (info, opts) +`+r)}}catch{}}throw n}}_request(e,i){typeof e=="string"?(i=i||{},i.url=e):i=e||{},i=Ia(this.defaults,i);let{transitional:n,paramsSerializer:a,headers:r}=i;n!==void 0&&$c.assertOptions(n,{silentJSONParsing:gn.transitional(gn.boolean),forcedJSONParsing:gn.transitional(gn.boolean),clarifyTimeoutError:gn.transitional(gn.boolean),legacyInterceptorReqResOrdering:gn.transitional(gn.boolean)},!1),a!=null&&(C.isFunction(a)?i.paramsSerializer={serialize:a}:$c.assertOptions(a,{encode:gn.function,serialize:gn.function},!0)),i.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?i.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:i.allowAbsoluteUrls=!0),$c.assertOptions(i,{baseUrl:gn.spelling("baseURL"),withXsrfToken:gn.spelling("withXSRFToken")},!0),i.method=(i.method||this.defaults.method||"get").toLowerCase();let s=r&&C.merge(r.common,r[i.method]);r&&C.forEach(["delete","get","head","post","put","patch","query","common"],g=>{delete r[g]}),i.headers=ti.concat(s,r);let o=[],l=!0;this.interceptors.request.forEach(function(m){if(typeof m.runWhen=="function"&&m.runWhen(i)===!1)return;l=l&&m.synchronous;let f=i.transitional||Kc;f&&f.legacyInterceptorReqResOrdering?o.unshift(m.fulfilled,m.rejected):o.push(m.fulfilled,m.rejected)});let u=[];this.interceptors.response.forEach(function(m){u.push(m.fulfilled,m.rejected)});let c,p=0,d;if(!l){let g=[Fk.bind(this),void 0];for(g.unshift(...o),g.push(...u),d=g.length,c=Promise.resolve(i);p{if(!n._listeners)return;let r=n._listeners.length;for(;r-- >0;)n._listeners[r](a);n._listeners=null}),this.promise.then=a=>{let r,s=new Promise(o=>{n.subscribe(o),r=o}).then(a);return s.cancel=function(){n.unsubscribe(r)},s},e(function(r,s,o){n.reason||(n.reason=new ut(r,s,o),i(n.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 i=this._listeners.indexOf(e);i!==-1&&this._listeners.splice(i,1)}toAbortSignal(){let e=new AbortController,i=n=>{e.abort(n)};return this.subscribe(i),e.signal.unsubscribe=()=>this.unsubscribe(i),e.signal}static source(){let e;return{token:new t(function(a){e=a}),cancel:e}}};function UZ(t){return function(i){return t.apply(null,i)}}function LZ(t){return C.isObject(t)&&t.isAxiosError===!0}var gv={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(gv).forEach(([t,e])=>{gv[e]=t});function bq(t){let e=new lt(t),i=Qk(lt.prototype.request,e);return C.extend(i,lt.prototype,e,{allOwnKeys:!0}),C.extend(i,e,null,{allOwnKeys:!0}),i.create=function(a){return bq(Ia(t,a))},i}var ai=bq(Vo);ai.Axios=lt;ai.CanceledError=ut;ai.CancelToken=hv;ai.isCancel=cq;ai.VERSION=Uo;ai.toFormData=Zc;ai.AxiosError=T;ai.Cancel=ai.CanceledError;ai.all=function(e){return Promise.all(e)};ai.spread=UZ;ai.isAxiosError=LZ;ai.mergeConfig=Ia;ai.AxiosHeaders=ti;ai.formToJSON=t=>uq(C.isHTMLForm(t)?new FormData(t):t);ai.getAdapter=Aq.getAdapter;ai.HttpStatusCode=gv;ai.default=ai;yq.exports=ai});var Sq=w((coe,jq)=>{jq.exports=require("util").inspect});var Yo=w((poe,Bq)=>{var kv=typeof Map=="function"&&Map.prototype,yv=Object.getOwnPropertyDescriptor&&kv?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,Xc=kv&&yv&&typeof yv.get=="function"?yv.get:null,Oq=kv&&Map.prototype.forEach,qv=typeof Set=="function"&&Set.prototype,Pv=Object.getOwnPropertyDescriptor&&qv?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,ep=qv&&Pv&&typeof Pv.get=="function"?Pv.get:null,xq=qv&&Set.prototype.forEach,WZ=typeof WeakMap=="function"&&WeakMap.prototype,Zo=WZ?WeakMap.prototype.has:null,BZ=typeof WeakSet=="function"&&WeakSet.prototype,Ko=BZ?WeakSet.prototype.has:null,FZ=typeof WeakRef=="function"&&WeakRef.prototype,Tq=FZ?WeakRef.prototype.deref:null,VZ=Boolean.prototype.valueOf,JZ=Object.prototype.toString,ZZ=Function.prototype.toString,KZ=String.prototype.match,_v=String.prototype.slice,Gt=String.prototype.replace,QZ=String.prototype.toUpperCase,Mq=String.prototype.toLowerCase,Dq=RegExp.prototype.test,Eq=Array.prototype.concat,Nn=Array.prototype.join,YZ=Array.prototype.slice,kq=Math.floor,Ov=typeof BigInt=="function"?BigInt.prototype.valueOf:null,jv=Object.getOwnPropertySymbols,xv=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,Qr=typeof Symbol=="function"&&typeof Symbol.iterator=="object",Qo=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===Qr||!0)?Symbol.toStringTag:null,Gq=Object.prototype.propertyIsEnumerable,qq=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(t){return t.__proto__}:null);function _q(t,e){if(t===1/0||t===-1/0||t!==t||t&&t>-1e3&&t<1e3||Dq.call(/e/,e))return e;var i=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof t=="number"){var n=t<0?-kq(-t):kq(t);if(n!==t){var a=String(n),r=_v.call(e,a.length+1);return Gt.call(a,i,"$&_")+"."+Gt.call(Gt.call(r,/([0-9]{3})/g,"$&_"),/_$/,"")}}return Gt.call(e,i,"$&_")}var Tv=Sq(),Hq=Tv.custom,Rq=Uq(Hq)?Hq:null,$q={__proto__:null,double:'"',single:"'"},XZ={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};Bq.exports=function t(e,i,n,a){var r=i||{};if(ct(r,"quoteStyle")&&!ct($q,r.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(ct(r,"maxStringLength")&&(typeof r.maxStringLength=="number"?r.maxStringLength<0&&r.maxStringLength!==1/0:r.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var s=ct(r,"customInspect")?r.customInspect:!0;if(typeof s!="boolean"&&s!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(ct(r,"indent")&&r.indent!==null&&r.indent!==" "&&!(parseInt(r.indent,10)===r.indent&&r.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(ct(r,"numericSeparator")&&typeof r.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var o=r.numericSeparator;if(typeof e>"u")return"undefined";if(e===null)return"null";if(typeof e=="boolean")return e?"true":"false";if(typeof e=="string")return Wq(e,r);if(typeof e=="number"){if(e===0)return 1/0/e>0?"0":"-0";var l=String(e);return o?_q(e,l):l}if(typeof e=="bigint"){var u=String(e)+"n";return o?_q(e,u):u}var c=typeof r.depth>"u"?5:r.depth;if(typeof n>"u"&&(n=0),n>=c&&c>0&&typeof e=="object")return Mv(e)?"[Array]":"[Object]";var p=w5(r,n);if(typeof a>"u")a=[];else if(Lq(a,e)>=0)return"[Circular]";function d(ie,se,De){if(se&&(a=YZ.call(a),a.push(se)),De){var S={depth:r.depth};return ct(r,"quoteStyle")&&(S.quoteStyle=r.quoteStyle),t(ie,S,n+1,a)}return t(ie,r,n+1,a)}if(typeof e=="function"&&!Iq(e)){var h=l5(e),g=Yc(e,d);return"[Function"+(h?": "+h:" (anonymous)")+"]"+(g.length>0?" { "+Nn.call(g,", ")+" }":"")}if(Uq(e)){var m=Qr?Gt.call(String(e),/^(Symbol\(.*\))_[^)]*$/,"$1"):xv.call(e);return typeof e=="object"&&!Qr?Jo(m):m}if(g5(e)){for(var f="<"+Mq.call(String(e.nodeName)),v=e.attributes||[],y=0;y",f}if(Mv(e)){if(e.length===0)return"[]";var A=Yc(e,d);return p&&!f5(A)?"["+Ev(A,p)+"]":"[ "+Nn.call(A,", ")+" ]"}if(n5(e)){var b=Yc(e,d);return!("cause"in Error.prototype)&&"cause"in e&&!Gq.call(e,"cause")?"{ ["+String(e)+"] "+Nn.call(Eq.call("[cause]: "+d(e.cause),b),", ")+" }":b.length===0?"["+String(e)+"]":"{ ["+String(e)+"] "+Nn.call(b,", ")+" }"}if(typeof e=="object"&&s){if(Rq&&typeof e[Rq]=="function"&&Tv)return Tv(e,{depth:c-n});if(s!=="symbol"&&typeof e.inspect=="function")return e.inspect()}if(u5(e)){var O=[];return Oq&&Oq.call(e,function(ie,se){O.push(d(se,e,!0)+" => "+d(ie,e))}),zq("Map",Xc.call(e),O,p)}if(d5(e)){var $=[];return xq&&xq.call(e,function(ie){$.push(d(ie,e))}),zq("Set",ep.call(e),$,p)}if(c5(e))return Sv("WeakMap");if(h5(e))return Sv("WeakSet");if(p5(e))return Sv("WeakRef");if(a5(e))return Jo(d(Number(e)));if(s5(e))return Jo(d(Ov.call(e)));if(r5(e))return Jo(VZ.call(e));if(t5(e))return Jo(d(String(e)));if(typeof window<"u"&&e===window)return"{ [object Window] }";if(typeof globalThis<"u"&&e===globalThis||typeof global<"u"&&e===global)return"{ [object globalThis] }";if(!i5(e)&&!Iq(e)){var N=Yc(e,d),X=qq?qq(e)===Object.prototype:e instanceof Object||e.constructor===Object,F=e instanceof Object?"":"null prototype",k=!X&&Qo&&Object(e)===e&&Qo in e?_v.call($t(e),8,-1):F?"Object":"",Q=X||typeof e.constructor!="function"?"":e.constructor.name?e.constructor.name+" ":"",Z=Q+(k||F?"["+Nn.call(Eq.call([],k||[],F||[]),": ")+"] ":"");return N.length===0?Z+"{}":p?Z+"{"+Ev(N,p)+"}":Z+"{ "+Nn.call(N,", ")+" }"}return String(e)};function Nq(t,e,i){var n=i.quoteStyle||e,a=$q[n];return a+t+a}function e5(t){return Gt.call(String(t),/"/g,""")}function za(t){return!Qo||!(typeof t=="object"&&(Qo in t||typeof t[Qo]<"u"))}function Mv(t){return $t(t)==="[object Array]"&&za(t)}function i5(t){return $t(t)==="[object Date]"&&za(t)}function Iq(t){return $t(t)==="[object RegExp]"&&za(t)}function n5(t){return $t(t)==="[object Error]"&&za(t)}function t5(t){return $t(t)==="[object String]"&&za(t)}function a5(t){return $t(t)==="[object Number]"&&za(t)}function r5(t){return $t(t)==="[object Boolean]"&&za(t)}function Uq(t){if(Qr)return t&&typeof t=="object"&&t instanceof Symbol;if(typeof t=="symbol")return!0;if(!t||typeof t!="object"||!xv)return!1;try{return xv.call(t),!0}catch{}return!1}function s5(t){if(!t||typeof t!="object"||!Ov)return!1;try{return Ov.call(t),!0}catch{}return!1}var o5=Object.prototype.hasOwnProperty||function(t){return t in this};function ct(t,e){return o5.call(t,e)}function $t(t){return JZ.call(t)}function l5(t){if(t.name)return t.name;var e=KZ.call(ZZ.call(t),/^function\s*([\w$]+)/);return e?e[1]:null}function Lq(t,e){if(t.indexOf)return t.indexOf(e);for(var i=0,n=t.length;ie.maxStringLength){var i=t.length-e.maxStringLength,n="... "+i+" more character"+(i>1?"s":"");return Wq(_v.call(t,0,e.maxStringLength),e)+n}var a=XZ[e.quoteStyle||"single"];a.lastIndex=0;var r=Gt.call(Gt.call(t,a,"\\$1"),/[\x00-\x1f]/g,m5);return Nq(r,"single",e)}function m5(t){var e=t.charCodeAt(0),i={8:"b",9:"t",10:"n",12:"f",13:"r"}[e];return i?"\\"+i:"\\x"+(e<16?"0":"")+QZ.call(e.toString(16))}function Jo(t){return"Object("+t+")"}function Sv(t){return t+" { ? }"}function zq(t,e,i,n){var a=n?Ev(i,n):Nn.call(i,", ");return t+" ("+e+") {"+a+"}"}function f5(t){for(var e=0;e=0)return!1;return!0}function w5(t,e){var i;if(t.indent===" ")i=" ";else if(typeof t.indent=="number"&&t.indent>0)i=Nn.call(Array(t.indent+1)," ");else return null;return{base:i,prev:Nn.call(Array(e+1),i)}}function Ev(t,e){if(t.length===0)return"";var i=` +`+e.prev+e.base;return i+Nn.call(t,","+i)+` +`+e.prev}function Yc(t,e){var i=Mv(t),n=[];if(i){n.length=t.length;for(var a=0;a{"use strict";var v5=Yo(),C5=It(),ip=function(t,e,i){for(var n=t,a;(a=n.next)!=null;n=a)if(a.key===e)return n.next=a.next,i||(a.next=t.next,t.next=a),a},A5=function(t,e){if(t){var i=ip(t,e);return i&&i.value}},b5=function(t,e,i){var n=ip(t,e);n?n.value=i:t.next={key:e,next:t.next,value:i}},y5=function(t,e){return t?!!ip(t,e):!1},P5=function(t,e){if(t)return ip(t,e,!0)};Fq.exports=function(){var e,i={assert:function(n){if(!i.has(n))throw new C5("Side channel does not contain "+v5(n))},delete:function(n){var a=P5(e,n);return a&&e&&!e.next&&(e=void 0),!!a},get:function(n){return A5(e,n)},has:function(n){return y5(e,n)},set:function(n,a){e||(e={next:void 0}),b5(e,n,a)}};return i}});var Hv=w((hoe,Kq)=>{"use strict";var Jq=ko(),Zq=Pw(),j5=Zq([Jq("%String.prototype.indexOf%")]);Kq.exports=function(e,i){var n=Jq(e,!!i);return typeof n=="function"&&j5(e,".prototype.")>-1?Zq([n]):n}});var Rv=w((goe,Yq)=>{"use strict";var S5=ko(),Xo=Hv(),O5=Yo(),x5=It(),Qq=S5("%Map%",!0),T5=Xo("Map.prototype.get",!0),M5=Xo("Map.prototype.set",!0),E5=Xo("Map.prototype.has",!0),k5=Xo("Map.prototype.delete",!0),q5=Xo("Map.prototype.size",!0);Yq.exports=!!Qq&&function(){var e,i={assert:function(n){if(!i.has(n))throw new x5("Side channel does not contain "+O5(n))},delete:function(n){if(e){var a=k5(e,n);return q5(e)===0&&(e=void 0),a}return!1},get:function(n){if(e)return T5(e,n)},has:function(n){return e?E5(e,n):!1},set:function(n,a){e||(e=new Qq),M5(e,n,a)}};return i}});var e_=w((moe,Xq)=>{"use strict";var _5=ko(),tp=Hv(),H5=Yo(),np=Rv(),R5=It(),Yr=_5("%WeakMap%",!0),I5=tp("WeakMap.prototype.get",!0),z5=tp("WeakMap.prototype.set",!0),D5=tp("WeakMap.prototype.has",!0),G5=tp("WeakMap.prototype.delete",!0);Xq.exports=Yr?function(){var e,i,n={assert:function(a){if(!n.has(a))throw new R5("Side channel does not contain "+H5(a))},delete:function(a){if(Yr&&a&&(typeof a=="object"||typeof a=="function")){if(e)return G5(e,a)}else if(np&&i)return i.delete(a);return!1},get:function(a){return Yr&&a&&(typeof a=="object"||typeof a=="function")&&e?I5(e,a):i&&i.get(a)},has:function(a){return Yr&&a&&(typeof a=="object"||typeof a=="function")&&e?D5(e,a):!!i&&i.has(a)},set:function(a,r){Yr&&a&&(typeof a=="object"||typeof a=="function")?(e||(e=new Yr),z5(e,a,r)):np&&(i||(i=np()),i.set(a,r))}};return n}:np});var Iv=w((foe,i_)=>{"use strict";var $5=It(),N5=Yo(),U5=Vq(),L5=Rv(),W5=e_(),B5=W5||L5||U5;i_.exports=function(){var e,i={assert:function(n){if(!i.has(n))throw new $5("Side channel does not contain "+N5(n))},delete:function(n){return!!e&&e.delete(n)},get:function(n){return e&&e.get(n)},has:function(n){return!!e&&e.has(n)},set:function(n,a){e||(e=B5()),e.set(n,a)}};return i}});var ap=w((woe,n_)=>{"use strict";var F5=String.prototype.replace,V5=/%20/g,zv={RFC1738:"RFC1738",RFC3986:"RFC3986"};n_.exports={default:zv.RFC3986,formatters:{RFC1738:function(t){return F5.call(t,V5,"+")},RFC3986:function(t){return String(t)}},RFC1738:zv.RFC1738,RFC3986:zv.RFC3986}});var Nv=w((voe,t_)=>{"use strict";var J5=ap(),Z5=Iv(),Dv=Object.prototype.hasOwnProperty,Da=Array.isArray,rp=Z5(),Xr=function(e,i){return rp.set(e,i),e},Ga=function(e){return rp.has(e)},el=function(e){return rp.get(e)},$v=function(e,i){rp.set(e,i)},Un=(function(){for(var t=[],e=0;e<256;++e)t[t.length]="%"+((e<16?"0":"")+e.toString(16)).toUpperCase();return t})(),K5=function(e){for(;e.length>1;){var i=e.pop(),n=i.obj[i.prop];if(Da(n)){for(var a=[],r=0;rn.arrayLimit)return Xr(il(e.concat(i),n),a);e[a]=i}else if(e&&typeof e=="object")if(Ga(e)){var r=el(e)+1;e[r]=i,$v(e,r)}else{if(n&&n.strictMerge)return[e,i];(n&&(n.plainObjects||n.allowPrototypes)||!Dv.call(Object.prototype,i))&&(e[i]=!0)}else return[e,i];return e}if(!e||typeof e!="object"){if(Ga(i)){for(var s=Object.keys(i),o=n&&n.plainObjects?{__proto__:null,0:e}:{0:e},l=0;ln.arrayLimit?Xr(il(c,n),c.length-1):c}var p=e;return Da(e)&&!Da(i)&&(p=il(e,n)),Da(e)&&Da(i)?(i.forEach(function(d,h){if(Dv.call(e,h)){var g=e[h];g&&typeof g=="object"&&d&&typeof d=="object"?e[h]=t(g,d,n):e[e.length]=d}else e[h]=d}),e):Object.keys(i).reduce(function(d,h){var g=i[h];if(Dv.call(d,h)?d[h]=t(d[h],g,n):d[h]=g,Ga(i)&&!Ga(d)&&Xr(d,el(i)),Ga(d)){var m=parseInt(h,10);String(m)===h&&m>=0&&m>el(d)&&$v(d,m)}return d},p)},Y5=function(e,i){return Object.keys(i).reduce(function(n,a){return n[a]=i[a],n},e)},X5=function(t,e,i){var n=t.replace(/\+/g," ");if(i==="iso-8859-1")return n.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(n)}catch{return n}},Gv=1024,eK=function(e,i,n,a,r){if(e.length===0)return e;var s=e;if(typeof e=="symbol"?s=Symbol.prototype.toString.call(e):typeof e!="string"&&(s=String(e)),n==="iso-8859-1")return escape(s).replace(/%u[0-9a-f]{4}/gi,function(h){return"%26%23"+parseInt(h.slice(2),16)+"%3B"});for(var o="",l=0;l=Gv?s.slice(l,l+Gv):s,c=[],p=0;p=48&&d<=57||d>=65&&d<=90||d>=97&&d<=122||r===J5.RFC1738&&(d===40||d===41)){c[c.length]=u.charAt(p);continue}if(d<128){c[c.length]=Un[d];continue}if(d<2048){c[c.length]=Un[192|d>>6]+Un[128|d&63];continue}if(d<55296||d>=57344){c[c.length]=Un[224|d>>12]+Un[128|d>>6&63]+Un[128|d&63];continue}p+=1,d=65536+((d&1023)<<10|u.charCodeAt(p)&1023),c[c.length]=Un[240|d>>18]+Un[128|d>>12&63]+Un[128|d>>6&63]+Un[128|d&63]}o+=c.join("")}return o},iK=function(e){for(var i=[{obj:{o:e},prop:"o"}],n=[],a=0;an?Xr(il(s,{plainObjects:a}),s.length-1):s},rK=function(e,i){if(Da(e)){for(var n=[],a=0;a{"use strict";var r_=Iv(),sp=Nv(),nl=ap(),sK=Object.prototype.hasOwnProperty,s_={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,i){return e+"["+i+"]"},repeat:function(e){return e}},Ln=Array.isArray,oK=Array.prototype.push,o_=function(t,e){oK.apply(t,Ln(e)?e:[e])},lK=Date.prototype.toISOString,a_=nl.default,oi={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,commaRoundTrip:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:sp.encode,encodeValuesOnly:!1,filter:void 0,format:a_,formatter:nl.formatters[a_],indices:!1,serializeDate:function(e){return lK.call(e)},skipNulls:!1,strictNullHandling:!1},uK=function(e){return typeof e=="string"||typeof e=="number"||typeof e=="boolean"||typeof e=="symbol"||typeof e=="bigint"},Uv={},cK=function t(e,i,n,a,r,s,o,l,u,c,p,d,h,g,m,f,v,y){for(var A=e,b=y,O=0,$=!1;(b=b.get(Uv))!==void 0&&!$;){var N=b.get(e);if(O+=1,typeof N<"u"){if(N===O)throw new RangeError("Cyclic object value");$=!0}typeof b.get(Uv)>"u"&&(O=0)}if(typeof c=="function"?A=c(i,A):A instanceof Date?A=h(A):n==="comma"&&Ln(A)&&(A=sp.maybeMap(A,function(I){return I instanceof Date?h(I):I})),A===null){if(s)return m(u&&!f?u(i,oi.encoder,v,"key",g):i);A=""}if(uK(A)||sp.isBuffer(A)){if(u){var X=f?i:u(i,oi.encoder,v,"key",g);return[m(X)+"="+m(u(A,oi.encoder,v,"value",g))]}return[m(i)+"="+m(String(A))]}var F=[];if(typeof A>"u")return F;var k;if(n==="comma"&&Ln(A))f&&u&&(A=sp.maybeMap(A,function(I){return I==null?I:u(I)})),k=[{value:A.length>0?A.join(",")||null:void 0}];else if(Ln(c))k=c;else{var Q=Object.keys(A);k=p?Q.sort(p):Q}var Z=l?String(i).replace(/\./g,"%2E"):String(i),ie=a&&Ln(A)&&A.length===1?Z+"[]":Z;if(r&&Ln(A)&&A.length===0)return ie+"[]";for(var se=0;se"u"?e.encodeDotInKeys===!0?!0:oi.allowDots:!!e.allowDots;return{addQueryPrefix:typeof e.addQueryPrefix=="boolean"?e.addQueryPrefix:oi.addQueryPrefix,allowDots:o,allowEmptyArrays:typeof e.allowEmptyArrays=="boolean"?!!e.allowEmptyArrays:oi.allowEmptyArrays,arrayFormat:s,charset:i,charsetSentinel:typeof e.charsetSentinel=="boolean"?e.charsetSentinel:oi.charsetSentinel,commaRoundTrip:!!e.commaRoundTrip,delimiter:typeof e.delimiter>"u"?oi.delimiter:e.delimiter,encode:typeof e.encode=="boolean"?e.encode:oi.encode,encodeDotInKeys:typeof e.encodeDotInKeys=="boolean"?e.encodeDotInKeys:oi.encodeDotInKeys,encoder:typeof e.encoder=="function"?e.encoder:oi.encoder,encodeValuesOnly:typeof e.encodeValuesOnly=="boolean"?e.encodeValuesOnly:oi.encodeValuesOnly,filter:r,format:n,formatter:a,serializeDate:typeof e.serializeDate=="function"?e.serializeDate:oi.serializeDate,skipNulls:typeof e.skipNulls=="boolean"?e.skipNulls:oi.skipNulls,sort:typeof e.sort=="function"?e.sort:null,strictNullHandling:typeof e.strictNullHandling=="boolean"?e.strictNullHandling:oi.strictNullHandling}};l_.exports=function(t,e){var i=t,n=pK(e),a,r;typeof n.filter=="function"?(r=n.filter,i=r("",i)):Ln(n.filter)&&(r=n.filter,a=r);var s=[];if(typeof i!="object"||i===null)return"";var o=s_[n.arrayFormat],l=o==="comma"&&n.commaRoundTrip;a||(a=Object.keys(i)),n.sort&&a.sort(n.sort);for(var u=r_(),c=0;c"u"||p===null)){var d=i[p];n.skipNulls&&d===null||o_(s,cK(d,p,o,l,n.allowEmptyArrays,n.strictNullHandling,n.skipNulls,n.encodeDotInKeys,n.encode?n.encoder:null,n.filter,n.sort,n.allowDots,n.serializeDate,n.format,n.formatter,n.encodeValuesOnly,n.charset,u))}}var h=s.join(n.delimiter),g=n.addQueryPrefix===!0?"?":"";return n.charsetSentinel&&(n.charset==="iso-8859-1"?g+="utf8=%26%2310003%3B"+n.delimiter:g+="utf8=%E2%9C%93"+n.delimiter),h.length>0?g+h:""}});var d_=w((Aoe,p_)=>{"use strict";var Wn=Nv(),op=Object.prototype.hasOwnProperty,Lv=Array.isArray,Ze={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:Wn.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictMerge:!0,strictNullHandling:!1,throwOnLimitExceeded:!1},dK=function(t){return t.replace(/&#(\d+);/g,function(e,i){return String.fromCharCode(parseInt(i,10))})},c_=function(t,e,i){if(t&&typeof t=="string"&&e.comma&&t.indexOf(",")>-1)return t.split(",");if(e.throwOnLimitExceeded&&i>=e.arrayLimit)throw new RangeError("Array limit exceeded. Only "+e.arrayLimit+" element"+(e.arrayLimit===1?"":"s")+" allowed in an array.");return t},hK="utf8=%26%2310003%3B",gK="utf8=%E2%9C%93",mK=function(e,i){var n={__proto__:null},a=i.ignoreQueryPrefix?e.replace(/^\?/,""):e;a=a.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var r=i.parameterLimit===1/0?void 0:i.parameterLimit,s=a.split(i.delimiter,i.throwOnLimitExceeded&&typeof r<"u"?r+1:r);if(i.throwOnLimitExceeded&&typeof r<"u"&&s.length>r)throw new RangeError("Parameter limit exceeded. Only "+r+" parameter"+(r===1?"":"s")+" allowed.");var o=-1,l,u=i.charset;if(i.charsetSentinel)for(l=0;l-1&&(g=Lv(g)?[g]:g),i.comma&&Lv(g)&&g.length>i.arrayLimit){if(i.throwOnLimitExceeded)throw new RangeError("Array limit exceeded. Only "+i.arrayLimit+" element"+(i.arrayLimit===1?"":"s")+" allowed in an array.");g=Wn.combine([],g,i.arrayLimit,i.plainObjects)}if(h!==null){var m=op.call(n,h);m&&(i.duplicates==="combine"||c.indexOf("[]=")>-1)?n[h]=Wn.combine(n[h],g,i.arrayLimit,i.plainObjects):(!m||i.duplicates==="last")&&(n[h]=g)}}return n},fK=function(t,e,i,n){var a=0;if(t.length>0&&t[t.length-1]==="[]"){var r=t.slice(0,-1).join("");a=Array.isArray(e)&&e[r]?e[r].length:0}for(var s=n?e:c_(e,i,a),o=t.length-1;o>=0;--o){var l,u=t[o];if(u==="[]"&&i.parseArrays)Wn.isOverflow(s)?l=s:l=i.allowEmptyArrays&&(s===""||i.strictNullHandling&&s===null)?[]:Wn.combine([],s,i.arrayLimit,i.plainObjects);else{l=i.plainObjects?{__proto__:null}:{};var c=u.charAt(0)==="["&&u.charAt(u.length-1)==="]"?u.slice(1,-1):u,p=i.decodeDotInKeys?c.replace(/%2E/g,"."):c,d=parseInt(p,10),h=!isNaN(d)&&u!==p&&String(d)===p&&d>=0&&i.parseArrays;if(!i.parseArrays&&p==="")l={0:s};else if(h&&d=0?n.slice(0,r):n;if(s){if(!i.plainObjects&&op.call(Object.prototype,s)&&!i.allowPrototypes)return;a[a.length]=s}for(var o=n.length,l=r,u=0;l>=0&&u=0){if(i.strictDepth===!0)throw new RangeError("Input depth exceeded depth option of "+i.depth+" and strictDepth is true");a[a.length]="["+n.slice(l)+"]"}return a},vK=function(e,i,n,a){if(e){var r=wK(e,n);if(r)return fK(r,i,n,a)}},CK=function(e){if(!e)return Ze;if(typeof e.allowEmptyArrays<"u"&&typeof e.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof e.decodeDotInKeys<"u"&&typeof e.decodeDotInKeys!="boolean")throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(e.decoder!==null&&typeof e.decoder<"u"&&typeof e.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof e.charset<"u"&&e.charset!=="utf-8"&&e.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");if(typeof e.throwOnLimitExceeded<"u"&&typeof e.throwOnLimitExceeded!="boolean")throw new TypeError("`throwOnLimitExceeded` option must be a boolean");var i=typeof e.charset>"u"?Ze.charset:e.charset,n=typeof e.duplicates>"u"?Ze.duplicates:e.duplicates;if(n!=="combine"&&n!=="first"&&n!=="last")throw new TypeError("The duplicates option must be either combine, first, or last");var a=typeof e.allowDots>"u"?e.decodeDotInKeys===!0?!0:Ze.allowDots:!!e.allowDots;return{allowDots:a,allowEmptyArrays:typeof e.allowEmptyArrays=="boolean"?!!e.allowEmptyArrays:Ze.allowEmptyArrays,allowPrototypes:typeof e.allowPrototypes=="boolean"?e.allowPrototypes:Ze.allowPrototypes,allowSparse:typeof e.allowSparse=="boolean"?e.allowSparse:Ze.allowSparse,arrayLimit:typeof e.arrayLimit=="number"?e.arrayLimit:Ze.arrayLimit,charset:i,charsetSentinel:typeof e.charsetSentinel=="boolean"?e.charsetSentinel:Ze.charsetSentinel,comma:typeof e.comma=="boolean"?e.comma:Ze.comma,decodeDotInKeys:typeof e.decodeDotInKeys=="boolean"?e.decodeDotInKeys:Ze.decodeDotInKeys,decoder:typeof e.decoder=="function"?e.decoder:Ze.decoder,delimiter:typeof e.delimiter=="string"||Wn.isRegExp(e.delimiter)?e.delimiter:Ze.delimiter,depth:typeof e.depth=="number"||e.depth===!1?+e.depth:Ze.depth,duplicates:n,ignoreQueryPrefix:e.ignoreQueryPrefix===!0,interpretNumericEntities:typeof e.interpretNumericEntities=="boolean"?e.interpretNumericEntities:Ze.interpretNumericEntities,parameterLimit:typeof e.parameterLimit=="number"?e.parameterLimit:Ze.parameterLimit,parseArrays:e.parseArrays!==!1,plainObjects:typeof e.plainObjects=="boolean"?e.plainObjects:Ze.plainObjects,strictDepth:typeof e.strictDepth=="boolean"?!!e.strictDepth:Ze.strictDepth,strictMerge:typeof e.strictMerge=="boolean"?!!e.strictMerge:Ze.strictMerge,strictNullHandling:typeof e.strictNullHandling=="boolean"?e.strictNullHandling:Ze.strictNullHandling,throwOnLimitExceeded:typeof e.throwOnLimitExceeded=="boolean"?e.throwOnLimitExceeded:!1}};p_.exports=function(t,e){var i=CK(e);if(t===""||t===null||typeof t>"u")return i.plainObjects?{__proto__:null}:{};for(var n=typeof t=="string"?mK(t,i):t,a=i.plainObjects?{__proto__:null}:{},r=Object.keys(n),s=0;s{"use strict";var AK=u_(),bK=d_(),yK=ap();h_.exports={formats:yK,parse:bK,stringify:AK}});var Zi=w((yoe,m_)=>{"use strict";var Wv=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)}};h_.exports=t=>{if(t.length>2)throw new Uv(t);function e(n={}){this.options=n}e.prototype.transform=t;function i(n){return new e(n)}return i.Format=e,i}});var w_=w((woe,f_)=>{var m_={};f_.exports=m_;var g_={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(g_).forEach(function(t){var e=g_[t],i=m_[t]=[];i.open="\x1B["+e[0]+"m",i.close="\x1B["+e[1]+"m"})});var C_=w((voe,v_)=>{"use strict";v_.exports=function(t,e){e=e||process.argv||[];var i=e.indexOf("--"),n=/^-{1,2}/.test(t)?"":"--",a=e.indexOf(n+t);return a!==-1&&(i===-1?!0:a{"use strict";var wK=require("os"),Tn=C_(),Ii=process.env,Xr=void 0;Tn("no-color")||Tn("no-colors")||Tn("color=false")?Xr=!1:(Tn("color")||Tn("colors")||Tn("color=true")||Tn("color=always"))&&(Xr=!0);"FORCE_COLOR"in Ii&&(Xr=Ii.FORCE_COLOR.length===0||parseInt(Ii.FORCE_COLOR,10)!==0);function vK(t){return t===0?!1:{level:t,hasBasic:!0,has256:t>=2,has16m:t>=3}}function CK(t){if(Xr===!1)return 0;if(Tn("color=16m")||Tn("color=full")||Tn("color=truecolor"))return 3;if(Tn("color=256"))return 2;if(t&&!t.isTTY&&Xr!==!0)return 0;var e=Xr?1:0;if(process.platform==="win32"){var i=wK.release().split(".");return Number(process.versions.node.split(".")[0])>=8&&Number(i[0])>=10&&Number(i[2])>=10586?Number(i[2])>=14931?3:2:1}if("CI"in Ii)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some(function(a){return a in Ii})||Ii.CI_NAME==="codeship"?1:e;if("TEAMCITY_VERSION"in Ii)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(Ii.TEAMCITY_VERSION)?1:0;if("TERM_PROGRAM"in Ii){var n=parseInt((Ii.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(Ii.TERM_PROGRAM){case"iTerm.app":return n>=3?3:2;case"Hyper":return 3;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(Ii.TERM)?2:/^screen|^xterm|^vt100|^rxvt|color|ansi|cygwin|linux/i.test(Ii.TERM)||"COLORTERM"in Ii?1:(Ii.TERM==="dumb",e)}function Lv(t){var e=CK(t);return vK(e)}A_.exports={supportsColor:Lv,stdout:Lv(process.stdout),stderr:Lv(process.stderr)}});var P_=w((Aoe,y_)=>{y_.exports=function(e,i){var n="";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"?n+=a[r][o]:n+=r}),n}});var S_=w((boe,j_)=>{j_.exports=function(e,i){e=e||" he is here ";var n={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(n.up,n.down,n.mid);function r(l){var u=Math.floor(Math.random()*l);return u}function s(l){var u=!1;return a.filter(function(c){u=c===l}),u}function o(l,u){var c="",p,d;u=u||{},u.up=typeof u.up<"u"?u.up:!0,u.mid=typeof u.mid<"u"?u.mid:!0,u.down=typeof u.down<"u"?u.down:!0,u.size=typeof u.size<"u"?u.size:"maxi",l=l.split("");for(d in l)if(!s(d)){switch(c=c+l[d],p={up:0,down:0,mid:0},u.size){case"mini":p.up=r(8),p.mid=r(2),p.down=r(8);break;case"maxi":p.up=r(16)+3,p.mid=r(4)+1,p.down=r(64)+3;break;default:p.up=r(8)+1,p.mid=r(6)/2,p.down=r(8)+1;break}var h=["up","mid","down"];for(var g in h)for(var m=h[g],f=0;f<=p[m];f++)u[m]&&(c=c+n[m][r(n[m].length)])}return c}return o(e,i)}});var x_=w((yoe,O_)=>{O_.exports=function(t){return function(e,i,n){if(e===" ")return e;switch(i%3){case 0:return t.red(e);case 1:return t.white(e);case 2:return t.blue(e)}}}});var M_=w((Poe,T_)=>{T_.exports=function(t){return function(e,i,n){return i%2===0?e:t.inverse(e)}}});var k_=w((joe,E_)=>{E_.exports=function(t){var e=["red","yellow","green","blue","magenta"];return function(i,n,a){return i===" "?i:t[e[n++%e.length]](i)}}});var __=w((Soe,q_)=>{q_.exports=function(t){var e=["underline","inverse","grey","yellow","red","green","blue","white","cyan","magenta","brightYellow","brightRed","brightGreen","brightBlue","brightWhite","brightCyan","brightMagenta"];return function(i,n,a){return i===" "?i:t[e[Math.round(Math.random()*(e.length-2))]](i)}}});var G_=w((xoe,D_)=>{var de={};D_.exports=de;de.themes={};var AK=require("util"),$a=de.styles=w_(),R_=Object.defineProperties,bK=new RegExp(/[\r\n]+/g);de.supportsColor=b_().supportsColor;typeof de.enabled>"u"&&(de.enabled=de.supportsColor()!==!1);de.enable=function(){de.enabled=!0};de.disable=function(){de.enabled=!1};de.stripColors=de.strip=function(t){return(""+t).replace(/\x1B\[\d+m/g,"")};var Ooe=de.stylize=function(e,i){if(!de.enabled)return e+"";var n=$a[i];return!n&&i in de?de[i](e):n.open+e+n.close},yK=/[|\\{}()[\]^$+*?.]/g,PK=function(t){if(typeof t!="string")throw new TypeError("Expected a string");return t.replace(yK,"\\$&")};function I_(t){var e=function i(){return SK.apply(i,arguments)};return e._styles=t,e.__proto__=jK,e}var z_=(function(){var t={};return $a.grey=$a.gray,Object.keys($a).forEach(function(e){$a[e].closeRe=new RegExp(PK($a[e].close),"g"),t[e]={get:function(){return I_(this._styles.concat(e))}}}),t})(),jK=R_(function(){},z_);function SK(){var t=Array.prototype.slice.call(arguments),e=t.map(function(s){return s!=null&&s.constructor===String?s:AK.inspect(s)}).join(" ");if(!de.enabled||!e)return e;for(var i=e.indexOf(` -`)!=-1,n=this._styles,a=n.length;a--;){var r=$a[n[a]];e=r.open+e.replace(r.closeRe,r.open)+r.close,i&&(e=e.replace(bK,function(s){return r.close+s+r.open}))}return e}de.setTheme=function(t){if(typeof t=="string"){console.log("colors.setTheme now only accepts an object, not a string. If you are trying to set a theme from a file, it is now your (the caller's) responsibility to require the file. The old syntax looked like colors.setTheme(__dirname + '/../themes/generic-logging.js'); The new syntax looks like colors.setTheme(require(__dirname + '/../themes/generic-logging.js'));");return}for(var e in t)(function(i){de[i]=function(n){if(typeof t[i]=="object"){var a=n;for(var r in t[i])a=de[t[i][r]](a);return a}return de[t[i]](n)}})(e)};function OK(){var t={};return Object.keys(z_).forEach(function(e){t[e]={get:function(){return I_([e])}}}),t}var xK=function(e,i){var n=i.split("");return n=n.map(e),n.join("")};de.trap=P_();de.zalgo=S_();de.maps={};de.maps.america=x_()(de);de.maps.zebra=M_()(de);de.maps.rainbow=k_()(de);de.maps.random=__()(de);for(H_ in de.maps)(function(t){de[t]=function(e){return xK(de.maps[t],e)}})(H_);var H_;R_(de,OK())});var Wv=w((Toe,$_)=>{var TK=G_();$_.exports=TK});var N_=w(Bv=>{"use strict";Bv.levels={error:0,warn:1,help:2,data:3,info:4,debug:5,prompt:6,verbose:7,input:8,silly:9};Bv.colors={error:"red",warn:"yellow",help:"cyan",data:"grey",info:"green",debug:"blue",prompt:"grey",verbose:"cyan",input:"grey",silly:"magenta"}});var U_=w(Fv=>{"use strict";Fv.levels={error:0,warn:1,info:2,http:3,verbose:4,debug:5,silly:6};Fv.colors={error:"red",warn:"yellow",info:"green",http:"green",verbose:"cyan",debug:"blue",silly:"magenta"}});var L_=w(Vv=>{"use strict";Vv.levels={emerg:0,alert:1,crit:2,error:3,warning:4,notice:5,info:6,debug:7};Vv.colors={emerg:"red",alert:"yellow",crit:"red",error:"red",warning:"red",notice:"yellow",info:"green",debug:"blue"}});var W_=w(op=>{"use strict";Object.defineProperty(op,"cli",{value:N_()});Object.defineProperty(op,"npm",{value:U_()});Object.defineProperty(op,"syslog",{value:L_()})});var ri=w(il=>{"use strict";Object.defineProperty(il,"LEVEL",{value:Symbol.for("level")});Object.defineProperty(il,"MESSAGE",{value:Symbol.for("message")});Object.defineProperty(il,"SPLAT",{value:Symbol.for("splat")});Object.defineProperty(il,"configs",{value:W_()})});var cp=w((Hoe,up)=>{"use strict";var Kv=Wv(),{LEVEL:Jv,MESSAGE:Zv}=ri();Kv.enabled=!0;var B_=/\s+/,lp=class t{constructor(e={}){e.colors&&this.addColors(e.colors),this.options=e}static addColors(e){let i=Object.keys(e).reduce((n,a)=>(n[a]=B_.test(e[a])?e[a].split(B_):e[a],n),{});return t.allColors=Object.assign({},t.allColors||{},i),t.allColors}addColors(e){return t.addColors(e)}colorize(e,i,n){if(typeof n>"u"&&(n=i),!Array.isArray(t.allColors[e]))return Kv[t.allColors[e]](n);for(let a=0,r=t.allColors[e].length;anew lp(t);up.exports.Colorizer=up.exports.Format=lp});var V_=w((Roe,F_)=>{"use strict";var{Colorizer:MK}=cp();F_.exports=t=>(MK.addColors(t.colors||t),t)});var Z_=w((Ioe,J_)=>{"use strict";var EK=Zi();J_.exports=EK(t=>(t.message=` ${t.message}`,t))});var Y_=w((zoe,Q_)=>{"use strict";var kK=Zi(),{LEVEL:K_,MESSAGE:Qv}=ri();Q_.exports=kK((t,{stack:e,cause:i})=>{if(t instanceof Error){let a=Object.assign({},t,{level:t.level,[K_]:t[K_]||t.level,message:t.message,[Qv]:t[Qv]||t.message});return e&&(a.stack=t.stack),i&&(a.cause=t.cause),a}if(!(t.message instanceof Error))return t;let n=t.message;return Object.assign(t,n),t.message=n.message,t[Qv]=n.message,e&&(t.stack=n.stack),i&&(t.cause=n.cause),t})});var Xv=w((Doe,dp)=>{"use strict";var{configs:qK,LEVEL:X_,MESSAGE:Yv}=ri(),pp=class t{constructor(e={levels:qK.npm.levels}){this.paddings=t.paddingForLevels(e.levels,e.filler),this.options=e}static getLongestLevel(e){let i=Object.keys(e).map(n=>n.length);return Math.max(...i)}static paddingForLevel(e,i,n){let a=n+1-e.length,r=Math.floor(a/i.length);return`${i}${i.repeat(r)}`.slice(0,a)}static paddingForLevels(e,i=" "){let n=t.getLongestLevel(e);return Object.keys(e).reduce((a,r)=>(a[r]=t.paddingForLevel(r,i,n),a),{})}transform(e,i){return e.message=`${this.paddings[e[X_]]}${e.message}`,e[Yv]&&(e[Yv]=`${this.paddings[e[X_]]}${e[Yv]}`),e}};dp.exports=t=>new pp(t);dp.exports.Padder=dp.exports.Format=pp});var e2=w((Goe,eC)=>{"use strict";var{Colorizer:_K}=cp(),{Padder:HK}=Xv(),{configs:RK,MESSAGE:IK}=ri(),hp=class{constructor(e={}){e.levels||(e.levels=RK.cli.levels),this.colorizer=new _K(e),this.padder=new HK(e),this.options=e}transform(e,i){return this.colorizer.transform(this.padder.transform(e,i),i),e[IK]=`${e.level}:${e.message}`,e}};eC.exports=t=>new hp(t);eC.exports.Format=hp});var n2=w(($oe,iC)=>{"use strict";var zK=Zi();function i2(t){if(t.every(DK))return e=>{let i=e;for(let n=0;n{let e=zK(i2(t)),i=e();return i.Format=e.Format,i};iC.exports.cascade=i2});var tl=w((rC,r2)=>{"use strict";var{hasOwnProperty:nl}=Object.prototype,Ua=aC();Ua.configure=aC;Ua.stringify=Ua;Ua.default=Ua;rC.stringify=Ua;rC.configure=aC;r2.exports=Ua;var GK=/[\u0000-\u001f\u0022\u005c\ud800-\udfff]/;function Nt(t){return t.length<5e3&&!GK.test(t)?`"${t}"`:JSON.stringify(t)}function nC(t,e){if(t.length>200||e)return t.sort(e);for(let i=1;in;)t[a]=t[a-1],a--;t[a]=n}return t}var $K=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(Object.getPrototypeOf(new Int8Array)),Symbol.toStringTag).get;function tC(t){return $K.call(t)!==void 0&&t.length!==0}function t2(t,e,i){t.length= 1`)}return i===void 0?1/0:i}function Na(t){return t===1?"1 item":`${t} items`}function WK(t){let e=new Set;for(let i of t)(typeof i=="string"||typeof i=="number")&&e.add(String(i));return e}function BK(t){if(nl.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 i=>{let n=`Object can not safely be stringified. Received type ${typeof i}`;throw typeof i!="function"&&(n+=` (${i.toString()})`),new Error(n)}}}function aC(t){t={...t};let e=BK(t);e&&(t.bigint===void 0&&(t.bigint=!1),"circularValue"in t||(t.circularValue=Error));let i=NK(t),n=LK(t,"bigint"),a=UK(t),r=typeof a=="function"?a:void 0,s=a2(t,"maximumDepth"),o=a2(t,"maximumBreadth");function l(h,g,m,f,v,y){let A=g[h];switch(typeof A=="object"&&A!==null&&typeof A.toJSON=="function"&&(A=A.toJSON(h)),A=f.call(g,h,A),typeof A){case"string":return Nt(A);case"object":{if(A===null)return"null";if(m.indexOf(A)!==-1)return i;let b="",O=",",$=y;if(Array.isArray(A)){if(A.length===0)return"[]";if(s{if(t.length>2)throw new Wv(t);function e(n={}){this.options=n}e.prototype.transform=t;function i(n){return new e(n)}return i.Format=e,i}});var C_=w((Poe,v_)=>{var w_={};v_.exports=w_;var f_={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(f_).forEach(function(t){var e=f_[t],i=w_[t]=[];i.open="\x1B["+e[0]+"m",i.close="\x1B["+e[1]+"m"})});var b_=w((joe,A_)=>{"use strict";A_.exports=function(t,e){e=e||process.argv||[];var i=e.indexOf("--"),n=/^-{1,2}/.test(t)?"":"--",a=e.indexOf(n+t);return a!==-1&&(i===-1?!0:a{"use strict";var PK=require("os"),Mn=b_(),Ii=process.env,es=void 0;Mn("no-color")||Mn("no-colors")||Mn("color=false")?es=!1:(Mn("color")||Mn("colors")||Mn("color=true")||Mn("color=always"))&&(es=!0);"FORCE_COLOR"in Ii&&(es=Ii.FORCE_COLOR.length===0||parseInt(Ii.FORCE_COLOR,10)!==0);function jK(t){return t===0?!1:{level:t,hasBasic:!0,has256:t>=2,has16m:t>=3}}function SK(t){if(es===!1)return 0;if(Mn("color=16m")||Mn("color=full")||Mn("color=truecolor"))return 3;if(Mn("color=256"))return 2;if(t&&!t.isTTY&&es!==!0)return 0;var e=es?1:0;if(process.platform==="win32"){var i=PK.release().split(".");return Number(process.versions.node.split(".")[0])>=8&&Number(i[0])>=10&&Number(i[2])>=10586?Number(i[2])>=14931?3:2:1}if("CI"in Ii)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some(function(a){return a in Ii})||Ii.CI_NAME==="codeship"?1:e;if("TEAMCITY_VERSION"in Ii)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(Ii.TEAMCITY_VERSION)?1:0;if("TERM_PROGRAM"in Ii){var n=parseInt((Ii.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(Ii.TERM_PROGRAM){case"iTerm.app":return n>=3?3:2;case"Hyper":return 3;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(Ii.TERM)?2:/^screen|^xterm|^vt100|^rxvt|color|ansi|cygwin|linux/i.test(Ii.TERM)||"COLORTERM"in Ii?1:(Ii.TERM==="dumb",e)}function Bv(t){var e=SK(t);return jK(e)}y_.exports={supportsColor:Bv,stdout:Bv(process.stdout),stderr:Bv(process.stderr)}});var S_=w((Ooe,j_)=>{j_.exports=function(e,i){var n="";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"?n+=a[r][o]:n+=r}),n}});var x_=w((xoe,O_)=>{O_.exports=function(e,i){e=e||" he is here ";var n={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(n.up,n.down,n.mid);function r(l){var u=Math.floor(Math.random()*l);return u}function s(l){var u=!1;return a.filter(function(c){u=c===l}),u}function o(l,u){var c="",p,d;u=u||{},u.up=typeof u.up<"u"?u.up:!0,u.mid=typeof u.mid<"u"?u.mid:!0,u.down=typeof u.down<"u"?u.down:!0,u.size=typeof u.size<"u"?u.size:"maxi",l=l.split("");for(d in l)if(!s(d)){switch(c=c+l[d],p={up:0,down:0,mid:0},u.size){case"mini":p.up=r(8),p.mid=r(2),p.down=r(8);break;case"maxi":p.up=r(16)+3,p.mid=r(4)+1,p.down=r(64)+3;break;default:p.up=r(8)+1,p.mid=r(6)/2,p.down=r(8)+1;break}var h=["up","mid","down"];for(var g in h)for(var m=h[g],f=0;f<=p[m];f++)u[m]&&(c=c+n[m][r(n[m].length)])}return c}return o(e,i)}});var M_=w((Toe,T_)=>{T_.exports=function(t){return function(e,i,n){if(e===" ")return e;switch(i%3){case 0:return t.red(e);case 1:return t.white(e);case 2:return t.blue(e)}}}});var k_=w((Moe,E_)=>{E_.exports=function(t){return function(e,i,n){return i%2===0?e:t.inverse(e)}}});var __=w((Eoe,q_)=>{q_.exports=function(t){var e=["red","yellow","green","blue","magenta"];return function(i,n,a){return i===" "?i:t[e[n++%e.length]](i)}}});var R_=w((koe,H_)=>{H_.exports=function(t){var e=["underline","inverse","grey","yellow","red","green","blue","white","cyan","magenta","brightYellow","brightRed","brightGreen","brightBlue","brightWhite","brightCyan","brightMagenta"];return function(i,n,a){return i===" "?i:t[e[Math.round(Math.random()*(e.length-2))]](i)}}});var N_=w((_oe,$_)=>{var de={};$_.exports=de;de.themes={};var OK=require("util"),$a=de.styles=C_(),z_=Object.defineProperties,xK=new RegExp(/[\r\n]+/g);de.supportsColor=P_().supportsColor;typeof de.enabled>"u"&&(de.enabled=de.supportsColor()!==!1);de.enable=function(){de.enabled=!0};de.disable=function(){de.enabled=!1};de.stripColors=de.strip=function(t){return(""+t).replace(/\x1B\[\d+m/g,"")};var qoe=de.stylize=function(e,i){if(!de.enabled)return e+"";var n=$a[i];return!n&&i in de?de[i](e):n.open+e+n.close},TK=/[|\\{}()[\]^$+*?.]/g,MK=function(t){if(typeof t!="string")throw new TypeError("Expected a string");return t.replace(TK,"\\$&")};function D_(t){var e=function i(){return kK.apply(i,arguments)};return e._styles=t,e.__proto__=EK,e}var G_=(function(){var t={};return $a.grey=$a.gray,Object.keys($a).forEach(function(e){$a[e].closeRe=new RegExp(MK($a[e].close),"g"),t[e]={get:function(){return D_(this._styles.concat(e))}}}),t})(),EK=z_(function(){},G_);function kK(){var t=Array.prototype.slice.call(arguments),e=t.map(function(s){return s!=null&&s.constructor===String?s:OK.inspect(s)}).join(" ");if(!de.enabled||!e)return e;for(var i=e.indexOf(` +`)!=-1,n=this._styles,a=n.length;a--;){var r=$a[n[a]];e=r.open+e.replace(r.closeRe,r.open)+r.close,i&&(e=e.replace(xK,function(s){return r.close+s+r.open}))}return e}de.setTheme=function(t){if(typeof t=="string"){console.log("colors.setTheme now only accepts an object, not a string. If you are trying to set a theme from a file, it is now your (the caller's) responsibility to require the file. The old syntax looked like colors.setTheme(__dirname + '/../themes/generic-logging.js'); The new syntax looks like colors.setTheme(require(__dirname + '/../themes/generic-logging.js'));");return}for(var e in t)(function(i){de[i]=function(n){if(typeof t[i]=="object"){var a=n;for(var r in t[i])a=de[t[i][r]](a);return a}return de[t[i]](n)}})(e)};function qK(){var t={};return Object.keys(G_).forEach(function(e){t[e]={get:function(){return D_([e])}}}),t}var _K=function(e,i){var n=i.split("");return n=n.map(e),n.join("")};de.trap=S_();de.zalgo=x_();de.maps={};de.maps.america=M_()(de);de.maps.zebra=k_()(de);de.maps.rainbow=__()(de);de.maps.random=R_()(de);for(I_ in de.maps)(function(t){de[t]=function(e){return _K(de.maps[t],e)}})(I_);var I_;z_(de,qK())});var Fv=w((Hoe,U_)=>{var HK=N_();U_.exports=HK});var L_=w(Vv=>{"use strict";Vv.levels={error:0,warn:1,help:2,data:3,info:4,debug:5,prompt:6,verbose:7,input:8,silly:9};Vv.colors={error:"red",warn:"yellow",help:"cyan",data:"grey",info:"green",debug:"blue",prompt:"grey",verbose:"cyan",input:"grey",silly:"magenta"}});var W_=w(Jv=>{"use strict";Jv.levels={error:0,warn:1,info:2,http:3,verbose:4,debug:5,silly:6};Jv.colors={error:"red",warn:"yellow",info:"green",http:"green",verbose:"cyan",debug:"blue",silly:"magenta"}});var B_=w(Zv=>{"use strict";Zv.levels={emerg:0,alert:1,crit:2,error:3,warning:4,notice:5,info:6,debug:7};Zv.colors={emerg:"red",alert:"yellow",crit:"red",error:"red",warning:"red",notice:"yellow",info:"green",debug:"blue"}});var F_=w(lp=>{"use strict";Object.defineProperty(lp,"cli",{value:L_()});Object.defineProperty(lp,"npm",{value:W_()});Object.defineProperty(lp,"syslog",{value:B_()})});var ri=w(tl=>{"use strict";Object.defineProperty(tl,"LEVEL",{value:Symbol.for("level")});Object.defineProperty(tl,"MESSAGE",{value:Symbol.for("message")});Object.defineProperty(tl,"SPLAT",{value:Symbol.for("splat")});Object.defineProperty(tl,"configs",{value:F_()})});var pp=w(($oe,cp)=>{"use strict";var Yv=Fv(),{LEVEL:Kv,MESSAGE:Qv}=ri();Yv.enabled=!0;var V_=/\s+/,up=class t{constructor(e={}){e.colors&&this.addColors(e.colors),this.options=e}static addColors(e){let i=Object.keys(e).reduce((n,a)=>(n[a]=V_.test(e[a])?e[a].split(V_):e[a],n),{});return t.allColors=Object.assign({},t.allColors||{},i),t.allColors}addColors(e){return t.addColors(e)}colorize(e,i,n){if(typeof n>"u"&&(n=i),!Array.isArray(t.allColors[e]))return Yv[t.allColors[e]](n);for(let a=0,r=t.allColors[e].length;anew up(t);cp.exports.Colorizer=cp.exports.Format=up});var Z_=w((Noe,J_)=>{"use strict";var{Colorizer:RK}=pp();J_.exports=t=>(RK.addColors(t.colors||t),t)});var Q_=w((Uoe,K_)=>{"use strict";var IK=Zi();K_.exports=IK(t=>(t.message=` ${t.message}`,t))});var e2=w((Loe,X_)=>{"use strict";var zK=Zi(),{LEVEL:Y_,MESSAGE:Xv}=ri();X_.exports=zK((t,{stack:e,cause:i})=>{if(t instanceof Error){let a=Object.assign({},t,{level:t.level,[Y_]:t[Y_]||t.level,message:t.message,[Xv]:t[Xv]||t.message});return e&&(a.stack=t.stack),i&&(a.cause=t.cause),a}if(!(t.message instanceof Error))return t;let n=t.message;return Object.assign(t,n),t.message=n.message,t[Xv]=n.message,e&&(t.stack=n.stack),i&&(t.cause=n.cause),t})});var iC=w((Woe,hp)=>{"use strict";var{configs:DK,LEVEL:i2,MESSAGE:eC}=ri(),dp=class t{constructor(e={levels:DK.npm.levels}){this.paddings=t.paddingForLevels(e.levels,e.filler),this.options=e}static getLongestLevel(e){let i=Object.keys(e).map(n=>n.length);return Math.max(...i)}static paddingForLevel(e,i,n){let a=n+1-e.length,r=Math.floor(a/i.length);return`${i}${i.repeat(r)}`.slice(0,a)}static paddingForLevels(e,i=" "){let n=t.getLongestLevel(e);return Object.keys(e).reduce((a,r)=>(a[r]=t.paddingForLevel(r,i,n),a),{})}transform(e,i){return e.message=`${this.paddings[e[i2]]}${e.message}`,e[eC]&&(e[eC]=`${this.paddings[e[i2]]}${e[eC]}`),e}};hp.exports=t=>new dp(t);hp.exports.Padder=hp.exports.Format=dp});var n2=w((Boe,nC)=>{"use strict";var{Colorizer:GK}=pp(),{Padder:$K}=iC(),{configs:NK,MESSAGE:UK}=ri(),gp=class{constructor(e={}){e.levels||(e.levels=NK.cli.levels),this.colorizer=new GK(e),this.padder=new $K(e),this.options=e}transform(e,i){return this.colorizer.transform(this.padder.transform(e,i),i),e[UK]=`${e.level}:${e.message}`,e}};nC.exports=t=>new gp(t);nC.exports.Format=gp});var a2=w((Foe,tC)=>{"use strict";var LK=Zi();function t2(t){if(t.every(WK))return e=>{let i=e;for(let n=0;n{let e=LK(t2(t)),i=e();return i.Format=e.Format,i};tC.exports.cascade=t2});var rl=w((oC,o2)=>{"use strict";var{hasOwnProperty:al}=Object.prototype,Ua=sC();Ua.configure=sC;Ua.stringify=Ua;Ua.default=Ua;oC.stringify=Ua;oC.configure=sC;o2.exports=Ua;var BK=/[\u0000-\u001f\u0022\u005c\ud800-\udfff]/;function Nt(t){return t.length<5e3&&!BK.test(t)?`"${t}"`:JSON.stringify(t)}function aC(t,e){if(t.length>200||e)return t.sort(e);for(let i=1;in;)t[a]=t[a-1],a--;t[a]=n}return t}var FK=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(Object.getPrototypeOf(new Int8Array)),Symbol.toStringTag).get;function rC(t){return FK.call(t)!==void 0&&t.length!==0}function r2(t,e,i){t.length= 1`)}return i===void 0?1/0:i}function Na(t){return t===1?"1 item":`${t} items`}function KK(t){let e=new Set;for(let i of t)(typeof i=="string"||typeof i=="number")&&e.add(String(i));return e}function QK(t){if(al.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 i=>{let n=`Object can not safely be stringified. Received type ${typeof i}`;throw typeof i!="function"&&(n+=` (${i.toString()})`),new Error(n)}}}function sC(t){t={...t};let e=QK(t);e&&(t.bigint===void 0&&(t.bigint=!1),"circularValue"in t||(t.circularValue=Error));let i=VK(t),n=ZK(t,"bigint"),a=JK(t),r=typeof a=="function"?a:void 0,s=s2(t,"maximumDepth"),o=s2(t,"maximumBreadth");function l(h,g,m,f,v,y){let A=g[h];switch(typeof A=="object"&&A!==null&&typeof A.toJSON=="function"&&(A=A.toJSON(h)),A=f.call(g,h,A),typeof A){case"string":return Nt(A);case"object":{if(A===null)return"null";if(m.indexOf(A)!==-1)return i;let b="",O=",",$=y;if(Array.isArray(A)){if(A.length===0)return"[]";if(so){let De=A.length-o-1;b+=`${O}"... ${Na(De)} not stringified"`}return v!==""&&(b+=` ${$}`),m.pop(),`[${b}]`}let N=Object.keys(A),X=N.length;if(X===0)return"{}";if(so){let Z=X-o;b+=`${k}"...":${F}"${Na(Z)} not stringified"`,k=O}return v!==""&&k.length>1&&(b=` +${y}`,F=" ");let Q=Math.min(X,o);a&&!rC(A)&&(N=aC(N,r)),m.push(A);for(let Z=0;Zo){let Z=X-o;b+=`${k}"...":${F}"${Na(Z)} not stringified"`,k=O}return v!==""&&k.length>1&&(b=` ${y}${b} ${$}`),m.pop(),`{${b}}`}case"number":return isFinite(A)?String(A):e?e(A):"null";case"boolean":return A===!0?"true":"false";case"undefined":return;case"bigint":if(n)return String(A);default:return e?e(A):void 0}}function u(h,g,m,f,v,y){switch(typeof g=="object"&&g!==null&&typeof g.toJSON=="function"&&(g=g.toJSON(h)),typeof g){case"string":return Nt(g);case"object":{if(g===null)return"null";if(m.indexOf(g)!==-1)return i;let A=y,b="",O=",";if(Array.isArray(g)){if(g.length===0)return"[]";if(so){let se=g.length-o-1;F+=`${k}"... ${Na(se)} not stringified"`}return F+=` ${y}`,m.pop(),`[${F}]`}let A=Object.keys(g),b=A.length;if(b===0)return"{}";if(so){let F=b-o;$+=`${N}"...": "${Na(F)} not stringified"`,N=O}return N!==""&&($=` +${v}`,$="",N="",X=Math.min(b,o);rC(g)&&($+=r2(g,O,o),A=A.slice(g.length),X-=g.length,N=O),a&&(A=aC(A,r)),m.push(g);for(let F=0;Fo){let F=b-o;$+=`${N}"...": "${Na(F)} not stringified"`,N=O}return N!==""&&($=` ${v}${$} -${y}`),m.pop(),`{${$}}`}case"number":return isFinite(g)?String(g):e?e(g):"null";case"boolean":return g===!0?"true":"false";case"undefined":return;case"bigint":if(n)return String(g);default:return e?e(g):void 0}}function p(h,g,m){switch(typeof g){case"string":return Nt(g);case"object":{if(g===null)return"null";if(typeof g.toJSON=="function"){if(g=g.toJSON(h),typeof g!="object")return p(h,g,m);if(g===null)return"null"}if(m.indexOf(g)!==-1)return i;let f="",v=g.length!==void 0;if(v&&Array.isArray(g)){if(g.length===0)return"[]";if(so){let F=g.length-o-1;f+=`,"... ${Na(F)} not stringified"`}return m.pop(),`[${f}]`}let y=Object.keys(g),A=y.length;if(A===0)return"{}";if(so){let $=A-o;f+=`${b}"...":"${Na($)} not stringified"`}return m.pop(),`{${f}}`}case"number":return isFinite(g)?String(g):e?e(g):"null";case"boolean":return g===!0?"true":"false";case"undefined":return;case"bigint":if(n)return String(g);default:return e?e(g):void 0}}function d(h,g,m){if(arguments.length>1){let f="";if(typeof m=="number"?f=" ".repeat(Math.min(m,10)):typeof m=="string"&&(f=m.slice(0,10)),g!=null){if(typeof g=="function")return l("",{"":h},[],g,f,"");if(Array.isArray(g))return u("",h,[],WK(g),f,"")}if(f.length!==0)return c("",h,[],f,"")}return p("",h,[])}return d}});var sC=w((Noe,s2)=>{"use strict";var FK=Zi(),{MESSAGE:VK}=ri(),JK=tl();function ZK(t,e){return typeof e=="bigint"?e.toString():e}s2.exports=FK((t,e)=>{let i=JK.configure(e);return t[VK]=i(t,e.replacer||ZK,e.space),t})});var l2=w((Uoe,o2)=>{"use strict";var KK=Zi();o2.exports=KK((t,e)=>e.message?(t.message=`[${e.label}] ${t.message}`,t):(t.label=e.label,t))});var c2=w((Loe,u2)=>{"use strict";var QK=Zi(),{MESSAGE:YK}=ri(),XK=tl();u2.exports=QK(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[YK]=XK(e),t})});var d2=w((Woe,p2)=>{"use strict";var e9=Zi();function i9(t,e,i){let n=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,n,{[i]:a}),t}function n9(t,e,i){return t[i]=e.reduce((n,a)=>(n[a]=t[a],delete t[a],n),{}),t}p2.exports=e9((t,e={})=>{let i="metadata";e.key&&(i=e.key);let n=[];return!e.fillExcept&&!e.fillWith&&(n.push("level"),n.push("message")),e.fillExcept&&(n=e.fillExcept),n.length>0?i9(t,n,i):e.fillWith?n9(t,e.fillWith,i):t})});var g2=w((al,h2)=>{"use strict";var t9=Zi(),a9=Mw();h2.exports=t9(t=>{let e=+new Date;return al.diff=e-(al.prevTime||e),al.prevTime=e,t.ms=`+${a9(al.diff)}`,t})});var w2=w((Boe,f2)=>{"use strict";var r9=require("util").inspect,s9=Zi(),{LEVEL:o9,MESSAGE:m2,SPLAT:l9}=ri();f2.exports=s9((t,e={})=>{let i=Object.assign({},t);return delete i[o9],delete i[m2],delete i[l9],t[m2]=r9(i,!1,e.depth||null,e.colorize),t})});var v2=w((Foe,mp)=>{"use strict";var{MESSAGE:u9}=ri(),gp=class{constructor(e){this.template=e}transform(e){return e[u9]=this.template(e),e}};mp.exports=t=>new gp(t);mp.exports.Printf=mp.exports.Format=gp});var b2=w((Voe,A2)=>{"use strict";var c9=Zi(),{MESSAGE:C2}=ri(),p9=tl();A2.exports=c9(t=>{let e=p9(Object.assign({},t,{level:void 0,message:void 0,splat:void 0})),i=t.padding&&t.padding[t.level]||"";return e!=="{}"?t[C2]=`${t.level}:${i} ${t.message} ${e}`:t[C2]=`${t.level}:${i} ${t.message}`,t})});var j2=w((Joe,P2)=>{"use strict";var d9=require("util"),{SPLAT:y2}=ri(),h9=/%[scdjifoO%]/g,g9=/%%/g,oC=class{constructor(e){this.options=e}_splat(e,i){let n=e.message,a=e[y2]||e.splat||[],r=n.match(g9),s=r&&r.length||0,l=i.length-s-a.length,u=l<0?a.splice(l,-1*l):[],c=u.length;if(c)for(let p=0;p1?n.splice(0):n,s=r.length;if(s)for(let o=0;onew oC(t)});var O2=w((fp,S2)=>{(function(t,e){typeof fp=="object"&&typeof S2<"u"?e(fp):typeof define=="function"&&define.amd?define(["exports"],e):e(t.fecha={})})(fp,(function(t){"use strict";var e=/d{1,4}|M{1,4}|YY(?:YY)?|S{1,3}|Do|ZZ|Z|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g,i="\\d\\d?",n="\\d\\d",a="\\d{3}",r="\\d{4}",s="[^\\s]+",o=/\[([^]*?)\]/gm;function l(S,R){for(var Ae=[],Se=0,I=S.length;Se-1?I:null}};function c(S){for(var R=[],Ae=1;Ae3?0:(S-S%10!==10?1:0)*S%10]}},f=c({},m),v=function(S){return f=c(f,S)},y=function(S){return S.replace(/[|\\{()[^$+*?.-]/g,"\\$&")},A=function(S,R){for(R===void 0&&(R=2),S=String(S);S.length0?"-":"+")+A(Math.floor(Math.abs(R)/60)*100+Math.abs(R)%60,4)},Z:function(S){var R=S.getTimezoneOffset();return(R>0?"-":"+")+A(Math.floor(Math.abs(R)/60),2)+":"+A(Math.abs(R)%60,2)}},O=function(S){return+S-1},$=[null,i],N=[null,s],X=["isPm",s,function(S,R){var Ae=S.toLowerCase();return Ae===R.amPm[0]?0:Ae===R.amPm[1]?1:null}],F=["timezoneOffset","[^\\s]*?[\\+\\-]\\d\\d:?\\d\\d|[^\\s]*?Z?",function(S){var R=(S+"").match(/([+-]|\d\d)/gi);if(R){var Ae=+R[1]*60+parseInt(R[2],10);return R[0]==="+"?Ae:-Ae}return 0}],k={D:["day",i],DD:["day",n],Do:["day",i+s,function(S){return parseInt(S,10)}],M:["month",i,O],MM:["month",n,O],YY:["year",n,function(S){var R=new Date,Ae=+(""+R.getFullYear()).substr(0,2);return+(""+(+S>68?Ae-1:Ae)+S)}],h:["hour",i,void 0,"isPm"],hh:["hour",n,void 0,"isPm"],H:["hour",i],HH:["hour",n],m:["minute",i],mm:["minute",n],s:["second",i],ss:["second",n],YYYY:["year",r],S:["millisecond","\\d",function(S){return+S*100}],SS:["millisecond",n,function(S){return+S*10}],SSS:["millisecond",a],d:$,dd:$,ddd:N,dddd:N,MMM:["month",s,u("monthNamesShort")],MMMM:["month",s,u("monthNames")],a:X,A:X,ZZ:F,Z:F},Q={default:"ddd MMM DD YYYY HH:mm:ss",shortDate:"M/D/YY",mediumDate:"MMM D, YYYY",longDate:"MMMM D, YYYY",fullDate:"dddd, MMMM D, YYYY",isoDate:"YYYY-MM-DD",isoDateTime:"YYYY-MM-DDTHH:mm:ssZ",shortTime:"HH:mm",mediumTime:"HH:mm:ss",longTime:"HH:mm:ss.SSS"},Z=function(S){return c(Q,S)},ie=function(S,R,Ae){if(R===void 0&&(R=Q.default),Ae===void 0&&(Ae={}),typeof S=="number"&&(S=new Date(S)),Object.prototype.toString.call(S)!=="[object Date]"||isNaN(S.getTime()))throw new Error("Invalid Date pass to format");R=Q[R]||R;var Se=[];R=R.replace(o,function(ei,Re){return Se.push(Re),"@@@"});var I=c(c({},f),Ae);return R=R.replace(e,function(ei){return b[ei](S,I)}),R.replace(/@@@/g,function(){return Se.shift()})};function se(S,R,Ae){if(Ae===void 0&&(Ae={}),typeof R!="string")throw new Error("Invalid format in fecha parse");if(R=Q[R]||R,S.length>1e3)return null;var Se=new Date,I={year:Se.getFullYear(),month:0,day:1,hour:0,minute:0,second:0,millisecond:0,isPm:null,timezoneOffset:null},ei=[],Re=[],Me=R.replace(o,function(wn,Ge){return Re.push(y(Ge)),"@@@"}),Oi={},vi={};Me=y(Me).replace(e,function(wn){var Ge=k[wn],Ya=Ge[0],lI=Ge[1],ry=Ge[3];if(Oi[Ya])throw new Error("Invalid format. "+Ya+" specified twice in format");return Oi[Ya]=!0,ry&&(vi[ry]=!0),ei.push(Ge),"("+lI+")"}),Object.keys(vi).forEach(function(wn){if(!Oi[wn])throw new Error("Invalid format. "+wn+" is required in specified format")}),Me=Me.replace(/@@@/g,function(){return Re.shift()});var nn=S.match(new RegExp(Me,"i"));if(!nn)return null;for(var G=c(c({},f),Ae),x=1;x11||I.month<0||I.day>31||I.day<1||I.hour>23||I.hour<0||I.minute>59||I.minute<0||I.second>59||I.second<0)return null;return pi}var De={format:ie,parse:se,defaultI18n:m,setGlobalDateI18n:v,setGlobalDateMasks:Z};t.assign=c,t.default=De,t.format=ie,t.parse=se,t.defaultI18n=m,t.setGlobalDateI18n=v,t.setGlobalDateMasks=Z,Object.defineProperty(t,"__esModule",{value:!0})}))});var T2=w((Zoe,x2)=>{"use strict";var m9=O2(),f9=Zi();x2.exports=f9((t,e={})=>(e.format&&(t.timestamp=typeof e.format=="function"?e.format():m9.format(new Date,e.format)),t.timestamp||(t.timestamp=new Date().toISOString()),e.alias&&(t[e.alias]=t.timestamp),t))});var E2=w((Koe,M2)=>{"use strict";var lC=Wv(),w9=Zi(),{MESSAGE:uC}=ri();M2.exports=w9((t,e)=>(e.level!==!1&&(t.level=lC.strip(t.level)),e.message!==!1&&(t.message=lC.strip(String(t.message))),e.raw!==!1&&t[uC]&&(t[uC]=lC.strip(String(t[uC]))),t))});var pC=w(cC=>{"use strict";var v9=cC.format=Zi();cC.levels=V_();function ji(t,e){Object.defineProperty(v9,t,{get(){return e()},configurable:!0})}ji("align",function(){return Z_()});ji("errors",function(){return Y_()});ji("cli",function(){return e2()});ji("combine",function(){return n2()});ji("colorize",function(){return cp()});ji("json",function(){return sC()});ji("label",function(){return l2()});ji("logstash",function(){return c2()});ji("metadata",function(){return d2()});ji("ms",function(){return g2()});ji("padLevels",function(){return Xv()});ji("prettyPrint",function(){return w2()});ji("printf",function(){return v2()});ji("simple",function(){return b2()});ji("splat",function(){return j2()});ji("timestamp",function(){return T2()});ji("uncolorize",function(){return E2()})});var dC=w(wp=>{"use strict";var{format:k2}=require("util");wp.warn={deprecated(t){return()=>{throw new Error(k2("{ %s } was removed in winston@3.0.0.",t))}},useFormat(t){return()=>{throw new Error([k2("{ %s } was removed in winston@3.0.0.",t),"Use a custom winston.format = winston.format(function) instead."].join(` -`))}},forFunctions(t,e,i){i.forEach(n=>{t[n]=wp.warn[e](n)})},forProperties(t,e,i){i.forEach(n=>{let a=wp.warn[e](n);Object.defineProperty(t,n,{get:a,set:a})})}}});var q2=w((Xoe,C9)=>{C9.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 H2=w((ele,_2)=>{_2.exports=require("util").deprecate});var hC=w((ile,R2)=>{R2.exports=require("stream")});var mC=w((nle,z2)=>{"use strict";function A9(t,e){var i=this,n=this._readableState&&this._readableState.destroyed,a=this._writableState&&this._writableState.destroyed;return n||a?(e?e(t):t&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(gC,this,t)):process.nextTick(gC,this,t)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(t||null,function(r){!e&&r?i._writableState?i._writableState.errorEmitted?process.nextTick(vp,i):(i._writableState.errorEmitted=!0,process.nextTick(I2,i,r)):process.nextTick(I2,i,r):e?(process.nextTick(vp,i),e(r)):process.nextTick(vp,i)}),this)}function I2(t,e){gC(t,e),vp(t)}function vp(t){t._writableState&&!t._writableState.emitClose||t._readableState&&!t._readableState.emitClose||t.emit("close")}function b9(){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 gC(t,e){t.emit("error",e)}function y9(t,e){var i=t._readableState,n=t._writableState;i&&i.autoDestroy||n&&n.autoDestroy?t.destroy(e):t.emit("error",e)}z2.exports={destroy:A9,undestroy:b9,errorOrDestroy:y9}});var Ut=w((tle,$2)=>{"use strict";var G2={};function mn(t,e,i){i||(i=Error);function n(r,s,o){return typeof e=="string"?e:e(r,s,o)}class a extends i{constructor(s,o,l){super(n(s,o,l))}}a.prototype.name=i.name,a.prototype.code=t,G2[t]=a}function D2(t,e){if(Array.isArray(t)){let i=t.length;return t=t.map(n=>String(n)),i>2?`one of ${e} ${t.slice(0,i-1).join(", ")}, or `+t[i-1]:i===2?`one of ${e} ${t[0]} or ${t[1]}`:`of ${e} ${t[0]}`}else return`of ${e} ${String(t)}`}function P9(t,e,i){return t.substr(!i||i<0?0:+i,e.length)===e}function j9(t,e,i){return(i===void 0||i>t.length)&&(i=t.length),t.substring(i-e.length,i)===e}function S9(t,e,i){return typeof i!="number"&&(i=0),i+e.length>t.length?!1:t.indexOf(e,i)!==-1}mn("ERR_INVALID_OPT_VALUE",function(t,e){return'The value "'+e+'" is invalid for option "'+t+'"'},TypeError);mn("ERR_INVALID_ARG_TYPE",function(t,e,i){let n;typeof e=="string"&&P9(e,"not ")?(n="must not be",e=e.replace(/^not /,"")):n="must be";let a;if(j9(t," argument"))a=`The ${t} ${n} ${D2(e,"type")}`;else{let r=S9(t,".")?"property":"argument";a=`The "${t}" ${r} ${n} ${D2(e,"type")}`}return a+=`. Received type ${typeof i}`,a},TypeError);mn("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF");mn("ERR_METHOD_NOT_IMPLEMENTED",function(t){return"The "+t+" method is not implemented"});mn("ERR_STREAM_PREMATURE_CLOSE","Premature close");mn("ERR_STREAM_DESTROYED",function(t){return"Cannot call "+t+" after a stream was destroyed"});mn("ERR_MULTIPLE_CALLBACK","Callback called multiple times");mn("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable");mn("ERR_STREAM_WRITE_AFTER_END","write after end");mn("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);mn("ERR_UNKNOWN_ENCODING",function(t){return"Unknown encoding: "+t},TypeError);mn("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event");$2.exports.codes=G2});var fC=w((ale,N2)=>{"use strict";var O9=Ut().codes.ERR_INVALID_OPT_VALUE;function x9(t,e,i){return t.highWaterMark!=null?t.highWaterMark:e?t[i]:null}function T9(t,e,i,n){var a=x9(e,n,i);if(a!=null){if(!(isFinite(a)&&Math.floor(a)===a)||a<0){var r=n?i:"highWaterMark";throw new O9(r,a)}return Math.floor(a)}return t.objectMode?16:16*1024}N2.exports={getHighWaterMark:T9}});var U2=w((rle,wC)=>{typeof Object.create=="function"?wC.exports=function(e,i){i&&(e.super_=i,e.prototype=Object.create(i.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:wC.exports=function(e,i){if(i){e.super_=i;var n=function(){};n.prototype=i.prototype,e.prototype=new n,e.prototype.constructor=e}}});var es=w((sle,CC)=>{try{if(vC=require("util"),typeof vC.inherits!="function")throw"";CC.exports=vC.inherits}catch{CC.exports=U2()}var vC});var J2=w((ole,V2)=>{"use strict";function L2(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),i.push.apply(i,n)}return i}function W2(t){for(var e=1;e0?this.tail.next=n:this.head=n,this.tail=n,++this.length}},{key:"unshift",value:function(i){var n={data:i,next:this.head};this.length===0&&(this.tail=n),this.head=n,++this.length}},{key:"shift",value:function(){if(this.length!==0){var i=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,i}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(i){if(this.length===0)return"";for(var n=this.head,a=""+n.data;n=n.next;)a+=i+n.data;return a}},{key:"concat",value:function(i){if(this.length===0)return Cp.alloc(0);for(var n=Cp.allocUnsafe(i>>>0),a=this.head,r=0;a;)I9(a.data,n,r),r+=a.data.length,a=a.next;return n}},{key:"consume",value:function(i,n){var a;return is.length?s.length:i;if(o===s.length?r+=s:r+=s.slice(0,i),i-=o,i===0){o===s.length?(++a,n.next?this.head=n.next:this.head=this.tail=null):(this.head=n,n.data=s.slice(o));break}++a}return this.length-=a,r}},{key:"_getBuffer",value:function(i){var n=Cp.allocUnsafe(i),a=this.head,r=1;for(a.data.copy(n),i-=a.data.length;a=a.next;){var s=a.data,o=i>s.length?s.length:i;if(s.copy(n,n.length-i,0,o),i-=o,i===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,n}},{key:R9,value:function(i,n){return AC(this,W2(W2({},n),{},{depth:0,customInspect:!1}))}}]),t})()});var Q2=w((bC,K2)=>{var Ap=require("buffer"),Wn=Ap.Buffer;function Z2(t,e){for(var i in t)e[i]=t[i]}Wn.from&&Wn.alloc&&Wn.allocUnsafe&&Wn.allocUnsafeSlow?K2.exports=Ap:(Z2(Ap,bC),bC.Buffer=La);function La(t,e,i){return Wn(t,e,i)}La.prototype=Object.create(Wn.prototype);Z2(Wn,La);La.from=function(t,e,i){if(typeof t=="number")throw new TypeError("Argument must not be a number");return Wn(t,e,i)};La.alloc=function(t,e,i){if(typeof t!="number")throw new TypeError("Argument must be a number");var n=Wn(t);return e!==void 0?typeof i=="string"?n.fill(e,i):n.fill(e):n.fill(0),n};La.allocUnsafe=function(t){if(typeof t!="number")throw new TypeError("Argument must be a number");return Wn(t)};La.allocUnsafeSlow=function(t){if(typeof t!="number")throw new TypeError("Argument must be a number");return Ap.SlowBuffer(t)}});var jC=w(X2=>{"use strict";var PC=Q2().Buffer,Y2=PC.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 z9(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 D9(t){var e=z9(t);if(typeof e!="string"&&(PC.isEncoding===Y2||!Y2(t)))throw new Error("Unknown encoding: "+t);return e||t}X2.StringDecoder=rl;function rl(t){this.encoding=D9(t);var e;switch(this.encoding){case"utf16le":this.text=W9,this.end=B9,e=4;break;case"utf8":this.fillLast=N9,e=4;break;case"base64":this.text=F9,this.end=V9,e=3;break;default:this.write=J9,this.end=Z9;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=PC.allocUnsafe(e)}rl.prototype.write=function(t){if(t.length===0)return"";var e,i;if(this.lastNeed){if(e=this.fillLast(t),e===void 0)return"";i=this.lastNeed,this.lastNeed=0}else i=0;return i>5===6?2:t>>4===14?3:t>>3===30?4:t>>6===2?-1:-2}function G9(t,e,i){var n=e.length-1;if(n=0?(a>0&&(t.lastNeed=a-1),a):--n=0?(a>0&&(t.lastNeed=a-2),a):--n=0?(a>0&&(a===2?a=0:t.lastNeed=a-3),a):0))}function $9(t,e,i){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 N9(t){var e=this.lastTotal-this.lastNeed,i=$9(this,t,e);if(i!==void 0)return i;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 U9(t,e){var i=G9(this,t,e);if(!this.lastNeed)return t.toString("utf8",e);this.lastTotal=i;var n=t.length-(i-this.lastNeed);return t.copy(this.lastChar,0,n),t.toString("utf8",e,n)}function L9(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+"\uFFFD":e}function W9(t,e){if((t.length-e)%2===0){var i=t.toString("utf16le",e);if(i){var n=i.charCodeAt(i.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1],i.slice(0,-1)}return i}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=t[t.length-1],t.toString("utf16le",e,t.length-1)}function B9(t){var e=t&&t.length?this.write(t):"";if(this.lastNeed){var i=this.lastTotal-this.lastNeed;return e+this.lastChar.toString("utf16le",0,i)}return e}function F9(t,e){var i=(t.length-e)%3;return i===0?t.toString("base64",e):(this.lastNeed=3-i,this.lastTotal=3,i===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-i))}function V9(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}function J9(t){return t.toString(this.encoding)}function Z9(t){return t&&t.length?this.write(t):""}});var bp=w((ule,n0)=>{"use strict";var e0=Ut().codes.ERR_STREAM_PREMATURE_CLOSE;function K9(t){var e=!1;return function(){if(!e){e=!0;for(var i=arguments.length,n=new Array(i),a=0;a{"use strict";var yp;function Lt(t,e,i){return e=X9(e),e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function X9(t){var e=e6(t,"string");return typeof e=="symbol"?e:String(e)}function e6(t,e){if(typeof t!="object"||t===null)return t;var i=t[Symbol.toPrimitive];if(i!==void 0){var n=i.call(t,e||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var i6=bp(),Wt=Symbol("lastResolve"),Wa=Symbol("lastReject"),sl=Symbol("error"),Pp=Symbol("ended"),Ba=Symbol("lastPromise"),SC=Symbol("handlePromise"),Fa=Symbol("stream");function Bt(t,e){return{value:t,done:e}}function n6(t){var e=t[Wt];if(e!==null){var i=t[Fa].read();i!==null&&(t[Ba]=null,t[Wt]=null,t[Wa]=null,e(Bt(i,!1)))}}function t6(t){process.nextTick(n6,t)}function a6(t,e){return function(i,n){t.then(function(){if(e[Pp]){i(Bt(void 0,!0));return}e[SC](i,n)},n)}}var r6=Object.getPrototypeOf(function(){}),s6=Object.setPrototypeOf((yp={get stream(){return this[Fa]},next:function(){var e=this,i=this[sl];if(i!==null)return Promise.reject(i);if(this[Pp])return Promise.resolve(Bt(void 0,!0));if(this[Fa].destroyed)return new Promise(function(s,o){process.nextTick(function(){e[sl]?o(e[sl]):s(Bt(void 0,!0))})});var n=this[Ba],a;if(n)a=new Promise(a6(n,this));else{var r=this[Fa].read();if(r!==null)return Promise.resolve(Bt(r,!1));a=new Promise(this[SC])}return this[Ba]=a,a}},Lt(yp,Symbol.asyncIterator,function(){return this}),Lt(yp,"return",function(){var e=this;return new Promise(function(i,n){e[Fa].destroy(null,function(a){if(a){n(a);return}i(Bt(void 0,!0))})})}),yp),r6),o6=function(e){var i,n=Object.create(s6,(i={},Lt(i,Fa,{value:e,writable:!0}),Lt(i,Wt,{value:null,writable:!0}),Lt(i,Wa,{value:null,writable:!0}),Lt(i,sl,{value:null,writable:!0}),Lt(i,Pp,{value:e._readableState.endEmitted,writable:!0}),Lt(i,SC,{value:function(r,s){var o=n[Fa].read();o?(n[Ba]=null,n[Wt]=null,n[Wa]=null,r(Bt(o,!1))):(n[Wt]=r,n[Wa]=s)},writable:!0}),i));return n[Ba]=null,i6(e,function(a){if(a&&a.code!=="ERR_STREAM_PREMATURE_CLOSE"){var r=n[Wa];r!==null&&(n[Ba]=null,n[Wt]=null,n[Wa]=null,r(a)),n[sl]=a;return}var s=n[Wt];s!==null&&(n[Ba]=null,n[Wt]=null,n[Wa]=null,s(Bt(void 0,!0))),n[Pp]=!0}),e.on("readable",t6.bind(null,n)),n};t0.exports=o6});var l0=w((ple,o0)=>{"use strict";function r0(t,e,i,n,a,r,s){try{var o=t[r](s),l=o.value}catch(u){i(u);return}o.done?e(l):Promise.resolve(l).then(n,a)}function l6(t){return function(){var e=this,i=arguments;return new Promise(function(n,a){var r=t.apply(e,i);function s(l){r0(r,n,a,s,o,"next",l)}function o(l){r0(r,n,a,s,o,"throw",l)}s(void 0)})}}function s0(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),i.push.apply(i,n)}return i}function u6(t){for(var e=1;e{"use strict";v0.exports=je;var is;je.ReadableState=d0;var dle=require("events").EventEmitter,p0=function(e,i){return e.listeners(i).length},ll=hC(),jp=require("buffer").Buffer,m6=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function f6(t){return jp.from(t)}function w6(t){return jp.isBuffer(t)||t instanceof m6}var OC=require("util"),ue;OC&&OC.debuglog?ue=OC.debuglog("stream"):ue=function(){};var v6=J2(),_C=mC(),C6=fC(),A6=C6.getHighWaterMark,Sp=Ut().codes,b6=Sp.ERR_INVALID_ARG_TYPE,y6=Sp.ERR_STREAM_PUSH_AFTER_EOF,P6=Sp.ERR_METHOD_NOT_IMPLEMENTED,j6=Sp.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,ns,xC,TC;es()(je,ll);var ol=_C.errorOrDestroy,MC=["error","close","destroy","pause","resume"];function S6(t,e,i){if(typeof t.prependListener=="function")return t.prependListener(e,i);!t._events||!t._events[e]?t.on(e,i):Array.isArray(t._events[e])?t._events[e].unshift(i):t._events[e]=[i,t._events[e]]}function d0(t,e,i){is=is||Va(),t=t||{},typeof i!="boolean"&&(i=e instanceof is),this.objectMode=!!t.objectMode,i&&(this.objectMode=this.objectMode||!!t.readableObjectMode),this.highWaterMark=A6(this,t,"readableHighWaterMark",i),this.buffer=new v6,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&&(ns||(ns=jC().StringDecoder),this.decoder=new ns(t.encoding),this.encoding=t.encoding)}function je(t){if(is=is||Va(),!(this instanceof je))return new je(t);var e=this instanceof is;this._readableState=new d0(t,this,e),this.readable=!0,t&&(typeof t.read=="function"&&(this._read=t.read),typeof t.destroy=="function"&&(this._destroy=t.destroy)),ll.call(this)}Object.defineProperty(je.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}});je.prototype.destroy=_C.destroy;je.prototype._undestroy=_C.undestroy;je.prototype._destroy=function(t,e){e(t)};je.prototype.push=function(t,e){var i=this._readableState,n;return i.objectMode?n=!0:typeof t=="string"&&(e=e||i.defaultEncoding,e!==i.encoding&&(t=jp.from(t,e),e=""),n=!0),h0(this,t,e,!1,n)};je.prototype.unshift=function(t){return h0(this,t,null,!0,!1)};function h0(t,e,i,n,a){ue("readableAddChunk",e);var r=t._readableState;if(e===null)r.reading=!1,T6(t,r);else{var s;if(a||(s=O6(r,e)),s)ol(t,s);else if(r.objectMode||e&&e.length>0)if(typeof e!="string"&&!r.objectMode&&Object.getPrototypeOf(e)!==jp.prototype&&(e=f6(e)),n)r.endEmitted?ol(t,new j6):EC(t,r,e,!0);else if(r.ended)ol(t,new y6);else{if(r.destroyed)return!1;r.reading=!1,r.decoder&&!i?(e=r.decoder.write(e),r.objectMode||e.length!==0?EC(t,r,e,!1):qC(t,r)):EC(t,r,e,!1)}else n||(r.reading=!1,qC(t,r))}return!r.ended&&(r.length=u0?t=u0:(t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++),t}function c0(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=x6(t)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0))}je.prototype.read=function(t){ue("read",t),t=parseInt(t,10);var e=this._readableState,i=t;if(t!==0&&(e.emittedReadable=!1),t===0&&e.needReadable&&((e.highWaterMark!==0?e.length>=e.highWaterMark:e.length>0)||e.ended))return ue("read: emitReadable",e.length,e.ended),e.length===0&&e.ended?kC(this):Op(this),null;if(t=c0(t,e),t===0&&e.ended)return e.length===0&&kC(this),null;var n=e.needReadable;ue("need readable",n),(e.length===0||e.length-t0?a=f0(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),i!==t&&e.ended&&kC(this)),a!==null&&this.emit("data",a),a};function T6(t,e){if(ue("onEofChunk"),!e.ended){if(e.decoder){var i=e.decoder.end();i&&i.length&&(e.buffer.push(i),e.length+=e.objectMode?1:i.length)}e.ended=!0,e.sync?Op(t):(e.needReadable=!1,e.emittedReadable||(e.emittedReadable=!0,g0(t)))}}function Op(t){var e=t._readableState;ue("emitReadable",e.needReadable,e.emittedReadable),e.needReadable=!1,e.emittedReadable||(ue("emitReadable",e.flowing),e.emittedReadable=!0,process.nextTick(g0,t))}function g0(t){var e=t._readableState;ue("emitReadable_",e.destroyed,e.length,e.ended),!e.destroyed&&(e.length||e.ended)&&(t.emit("readable"),e.emittedReadable=!1),e.needReadable=!e.flowing&&!e.ended&&e.length<=e.highWaterMark,HC(t)}function qC(t,e){e.readingMore||(e.readingMore=!0,process.nextTick(M6,t,e))}function M6(t,e){for(;!e.reading&&!e.ended&&(e.length1&&w0(n.pipes,t)!==-1)&&!u&&(ue("false write response, pause",n.awaitDrain),n.awaitDrain++),i.pause())}function d(f){ue("onerror",f),m(),t.removeListener("error",d),p0(t,"error")===0&&ol(t,f)}S6(t,"error",d);function h(){t.removeListener("finish",g),m()}t.once("close",h);function g(){ue("onfinish"),t.removeListener("close",h),m()}t.once("finish",g);function m(){ue("unpipe"),i.unpipe(t)}return t.emit("pipe",i),n.flowing||(ue("pipe resume"),i.resume()),t};function E6(t){return function(){var i=t._readableState;ue("pipeOnDrain",i.awaitDrain),i.awaitDrain&&i.awaitDrain--,i.awaitDrain===0&&p0(t,"data")&&(i.flowing=!0,HC(t))}}je.prototype.unpipe=function(t){var e=this._readableState,i={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,i),this);if(!t){var n=e.pipes,a=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var r=0;r0,n.flowing!==!1&&this.resume()):t==="readable"&&!n.endEmitted&&!n.readableListening&&(n.readableListening=n.needReadable=!0,n.flowing=!1,n.emittedReadable=!1,ue("on readable",n.length,n.reading),n.length?Op(this):n.reading||process.nextTick(k6,this)),i};je.prototype.addListener=je.prototype.on;je.prototype.removeListener=function(t,e){var i=ll.prototype.removeListener.call(this,t,e);return t==="readable"&&process.nextTick(m0,this),i};je.prototype.removeAllListeners=function(t){var e=ll.prototype.removeAllListeners.apply(this,arguments);return(t==="readable"||t===void 0)&&process.nextTick(m0,this),e};function m0(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 k6(t){ue("readable nexttick read 0"),t.read(0)}je.prototype.resume=function(){var t=this._readableState;return t.flowing||(ue("resume"),t.flowing=!t.readableListening,q6(this,t)),t.paused=!1,this};function q6(t,e){e.resumeScheduled||(e.resumeScheduled=!0,process.nextTick(_6,t,e))}function _6(t,e){ue("resume",e.reading),e.reading||t.read(0),e.resumeScheduled=!1,t.emit("resume"),HC(t),e.flowing&&!e.reading&&t.read(0)}je.prototype.pause=function(){return ue("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(ue("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function HC(t){var e=t._readableState;for(ue("flow",e.flowing);e.flowing&&t.read()!==null;);}je.prototype.wrap=function(t){var e=this,i=this._readableState,n=!1;t.on("end",function(){if(ue("wrapped end"),i.decoder&&!i.ended){var s=i.decoder.end();s&&s.length&&e.push(s)}e.push(null)}),t.on("data",function(s){if(ue("wrapped data"),i.decoder&&(s=i.decoder.write(s)),!(i.objectMode&&s==null)&&!(!i.objectMode&&(!s||!s.length))){var o=e.push(s);o||(n=!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?i=e.buffer.join(""):e.buffer.length===1?i=e.buffer.first():i=e.buffer.concat(e.length),e.buffer.clear()):i=e.buffer.consume(t,e.decoder),i}function kC(t){var e=t._readableState;ue("endReadable",e.endEmitted),e.endEmitted||(e.ended=!0,process.nextTick(H6,e,t))}function H6(t,e){if(ue("endReadableNT",t.endEmitted,t.length),!t.endEmitted&&t.length===0&&(t.endEmitted=!0,e.readable=!1,e.emit("end"),t.autoDestroy)){var i=e._writableState;(!i||i.autoDestroy&&i.finished)&&e.destroy()}}typeof Symbol=="function"&&(je.from=function(t,e){return TC===void 0&&(TC=l0()),TC(je,t,e)});function w0(t,e){for(var i=0,n=t.length;i{"use strict";var R6=Object.keys||function(t){var e=[];for(var i in t)e.push(i);return e};A0.exports=Bn;var C0=RC(),zC=Mp();es()(Bn,C0);for(IC=R6(zC.prototype),xp=0;xp{"use strict";O0.exports=Ye;function y0(t){var e=this;this.next=null,this.entry=null,this.finish=function(){cQ(e,t)}}var ts;Ye.WritableState=cl;var D6={deprecate:H2()},P0=hC(),kp=require("buffer").Buffer,G6=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function $6(t){return kp.from(t)}function N6(t){return kp.isBuffer(t)||t instanceof G6}var GC=mC(),U6=fC(),L6=U6.getHighWaterMark,Ft=Ut().codes,W6=Ft.ERR_INVALID_ARG_TYPE,B6=Ft.ERR_METHOD_NOT_IMPLEMENTED,F6=Ft.ERR_MULTIPLE_CALLBACK,V6=Ft.ERR_STREAM_CANNOT_PIPE,J6=Ft.ERR_STREAM_DESTROYED,Z6=Ft.ERR_STREAM_NULL_VALUES,K6=Ft.ERR_STREAM_WRITE_AFTER_END,Q6=Ft.ERR_UNKNOWN_ENCODING,as=GC.errorOrDestroy;es()(Ye,P0);function Y6(){}function cl(t,e,i){ts=ts||Va(),t=t||{},typeof i!="boolean"&&(i=e instanceof ts),this.objectMode=!!t.objectMode,i&&(this.objectMode=this.objectMode||!!t.writableObjectMode),this.highWaterMark=L6(this,t,"writableHighWaterMark",i),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var n=t.decodeStrings===!1;this.decodeStrings=!n,this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(a){rQ(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 y0(this)}cl.prototype.getBuffer=function(){for(var e=this.bufferedRequest,i=[];e;)i.push(e),e=e.next;return i};(function(){try{Object.defineProperty(cl.prototype,"buffer",{get:D6.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}})();var Ep;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(Ep=Function.prototype[Symbol.hasInstance],Object.defineProperty(Ye,Symbol.hasInstance,{value:function(e){return Ep.call(this,e)?!0:this!==Ye?!1:e&&e._writableState instanceof cl}})):Ep=function(e){return e instanceof this};function Ye(t){ts=ts||Va();var e=this instanceof ts;if(!e&&!Ep.call(Ye,this))return new Ye(t);this._writableState=new cl(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)),P0.call(this)}Ye.prototype.pipe=function(){as(this,new V6)};function X6(t,e){var i=new K6;as(t,i),process.nextTick(e,i)}function eQ(t,e,i,n){var a;return i===null?a=new Z6:typeof i!="string"&&!e.objectMode&&(a=new W6("chunk",["string","Buffer"],i)),a?(as(t,a),process.nextTick(n,a),!1):!0}Ye.prototype.write=function(t,e,i){var n=this._writableState,a=!1,r=!n.objectMode&&N6(t);return r&&!kp.isBuffer(t)&&(t=$6(t)),typeof e=="function"&&(i=e,e=null),r?e="buffer":e||(e=n.defaultEncoding),typeof i!="function"&&(i=Y6),n.ending?X6(this,i):(r||eQ(this,n,t,i))&&(n.pendingcb++,a=nQ(this,n,r,t,e,i)),a};Ye.prototype.cork=function(){this._writableState.corked++};Ye.prototype.uncork=function(){var t=this._writableState;t.corked&&(t.corked--,!t.writing&&!t.corked&&!t.bufferProcessing&&t.bufferedRequest&&j0(this,t))};Ye.prototype.setDefaultEncoding=function(e){if(typeof e=="string"&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new Q6(e);return this._writableState.defaultEncoding=e,this};Object.defineProperty(Ye.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function iQ(t,e,i){return!t.objectMode&&t.decodeStrings!==!1&&typeof e=="string"&&(e=kp.from(e,i)),e}Object.defineProperty(Ye.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function nQ(t,e,i,n,a,r){if(!i){var s=iQ(e,n,a);n!==s&&(i=!0,a="buffer",n=s)}var o=e.objectMode?1:n.length;e.length+=o;var l=e.length{"use strict";var pQ=require("util"),x0=Mp(),{LEVEL:T0}=ri(),pl=M0.exports=function(e={}){x0.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",i=>{this.levels=i.levels,this.parent=i}),this.once("unpipe",i=>{i===this.parent&&(this.parent=null,this.close&&this.close())})};pQ.inherits(pl,x0);pl.prototype._write=function(e,i,n){if(this.silent||e.exception===!0&&!this.handleExceptions)return n(null);let a=this.level||this.parent&&this.parent.level;if(!a||this.levels[a]>=this.levels[e[T0]]){if(e&&!this.format)return this.log(e,n);let r,s;try{s=this.format.transform(Object.assign({},e),this.format.options)}catch(o){r=o}if(r||!s){if(n(),r)throw r;return}return this.log(s,n)}return this._writableState.sync=!1,n(null)};pl.prototype._writev=function(e,i){if(this.logv){let n=e.filter(this._accept,this);return n.length?this.logv(n,i):i(null)}for(let n=0;n=this.levels[i[T0]])&&(this.handleExceptions||i.exception!==!0))};pl.prototype._nop=function(){}});var UC=w((wle,k0)=>{"use strict";var dQ=require("util"),{LEVEL:NC}=ri(),E0=$C(),dl=k0.exports=function(e={}){if(E0.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 i(n){this.emit("error",n,this.transport)}this.transport.__winstonError||(this.transport.__winstonError=i.bind(this),this.transport.on("error",this.transport.__winstonError))};dQ.inherits(dl,E0);dl.prototype._write=function(e,i,n){if(this.silent||e.exception===!0&&!this.handleExceptions)return n(null);(!this.level||this.levels[this.level]>=this.levels[e[NC]])&&this.transport.log(e[NC],e.message,e,this._nop),n(null)};dl.prototype._writev=function(e,i){for(let n=0;n{"use strict";LC.exports=$C();LC.exports.LegacyTransportStream=UC()});var H0=w((Ale,_0)=>{"use strict";var hQ=require("os"),{LEVEL:q0,MESSAGE:ss}=ri(),gQ=rs();_0.exports=class extends gQ{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:hQ.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,i){if(setImmediate(()=>this.emit("logged",e)),this.stderrLevels[e[q0]]){console._stderr&&!this.forceConsole?console._stderr.write(`${e[ss]}${this.eol}`):this._consoleError(e[ss]),i&&i();return}else if(this.consoleWarnLevels[e[q0]]){console._stderr&&!this.forceConsole?console._stderr.write(`${e[ss]}${this.eol}`):this._consoleWarn(e[ss]),i&&i();return}console._stdout&&!this.forceConsole?console._stdout.write(`${e[ss]}${this.eol}`):this._consoleLog(e[ss]),i&&i()}_stringArrayToSet(e,i){if(!e)return{};if(i=i||"Cannot make set from type other than Array of string elements",!Array.isArray(e))throw new Error(i);return e.reduce((n,a)=>{if(typeof a!="string")throw new Error(i);return n[a]=!0,n},{})}}});var _p=w((qp,R0)=>{"use strict";Object.defineProperty(qp,"__esModule",{value:!0});qp.default=mQ;function mQ(t){return t&&typeof t.length=="number"&&t.length>=0&&t.length%1===0}R0.exports=qp.default});var z0=w((Hp,I0)=>{"use strict";Object.defineProperty(Hp,"__esModule",{value:!0});Hp.default=function(t){return function(...e){var i=e.pop();return t.call(this,e,i)}};I0.exports=Hp.default});var $0=w(Vt=>{"use strict";Object.defineProperty(Vt,"__esModule",{value:!0});Vt.fallback=D0;Vt.wrap=G0;var fQ=Vt.hasQueueMicrotask=typeof queueMicrotask=="function"&&queueMicrotask,wQ=Vt.hasSetImmediate=typeof setImmediate=="function"&&setImmediate,vQ=Vt.hasNextTick=typeof process=="object"&&typeof process.nextTick=="function";function D0(t){setTimeout(t,0)}function G0(t){return(e,...i)=>t(()=>e(...i))}var hl;fQ?hl=queueMicrotask:wQ?hl=setImmediate:vQ?hl=process.nextTick:hl=D0;Vt.default=G0(hl)});var B0=w((Rp,W0)=>{"use strict";Object.defineProperty(Rp,"__esModule",{value:!0});Rp.default=jQ;var CQ=z0(),AQ=L0(CQ),bQ=$0(),yQ=L0(bQ),PQ=Ja();function L0(t){return t&&t.__esModule?t:{default:t}}function jQ(t){return(0,PQ.isAsync)(t)?function(...e){let i=e.pop(),n=t.apply(this,e);return N0(n,i)}:(0,AQ.default)(function(e,i){var n;try{n=t.apply(this,e)}catch(a){return i(a)}if(n&&typeof n.then=="function")return N0(n,i);i(null,n)})}function N0(t,e){return t.then(i=>{U0(e,null,i)},i=>{U0(e,i&&(i instanceof Error||i.message)?i:new Error(i))})}function U0(t,e,i){try{t(e,i)}catch(n){(0,yQ.default)(a=>{throw a},n)}}W0.exports=Rp.default});var Ja=w(pt=>{"use strict";Object.defineProperty(pt,"__esModule",{value:!0});pt.isAsyncIterable=pt.isAsyncGenerator=pt.isAsync=void 0;var SQ=B0(),OQ=xQ(SQ);function xQ(t){return t&&t.__esModule?t:{default:t}}function F0(t){return t[Symbol.toStringTag]==="AsyncFunction"}function TQ(t){return t[Symbol.toStringTag]==="AsyncGenerator"}function MQ(t){return typeof t[Symbol.asyncIterator]=="function"}function EQ(t){if(typeof t!="function")throw new Error("expected a function");return F0(t)?(0,OQ.default)(t):t}pt.default=EQ;pt.isAsync=F0;pt.isAsyncGenerator=TQ;pt.isAsyncIterable=MQ});var os=w((Ip,V0)=>{"use strict";Object.defineProperty(Ip,"__esModule",{value:!0});Ip.default=kQ;function kQ(t,e){if(e||(e=t.length),!e)throw new Error("arity is undefined");function i(...n){return typeof n[e-1]=="function"?t.apply(this,n):new Promise((a,r)=>{n[e-1]=(s,...o)=>{if(s)return r(s);a(o.length>1?o:o[0])},t.apply(this,n)})}return i}V0.exports=Ip.default});var Z0=w((zp,J0)=>{"use strict";Object.defineProperty(zp,"__esModule",{value:!0});var qQ=_p(),_Q=WC(qQ),HQ=Ja(),RQ=WC(HQ),IQ=os(),zQ=WC(IQ);function WC(t){return t&&t.__esModule?t:{default:t}}zp.default=(0,zQ.default)((t,e,i)=>{var n=(0,_Q.default)(e)?[]:{};t(e,(a,r,s)=>{(0,RQ.default)(a)((o,...l)=>{l.length<2&&([l]=l),n[r]=l,s(o)})},a=>i(a,n))},3);J0.exports=zp.default});var BC=w((Dp,K0)=>{"use strict";Object.defineProperty(Dp,"__esModule",{value:!0});Dp.default=DQ;function DQ(t){function e(...i){if(t!==null){var n=t;t=null,n.apply(this,i)}}return Object.assign(e,t),e}K0.exports=Dp.default});var Y0=w((Gp,Q0)=>{"use strict";Object.defineProperty(Gp,"__esModule",{value:!0});Gp.default=function(t){return t[Symbol.iterator]&&t[Symbol.iterator]()};Q0.exports=Gp.default});var iH=w(($p,eH)=>{"use strict";Object.defineProperty($p,"__esModule",{value:!0});$p.default=FQ;var GQ=_p(),$Q=X0(GQ),NQ=Y0(),UQ=X0(NQ);function X0(t){return t&&t.__esModule?t:{default:t}}function LQ(t){var e=-1,i=t.length;return function(){return++e{"use strict";Object.defineProperty(Np,"__esModule",{value:!0});Np.default=VQ;function VQ(t){return function(...e){if(t===null)throw new Error("Callback was already called.");var i=t;t=null,i.apply(this,e)}}nH.exports=Np.default});var Lp=w((Up,tH)=>{"use strict";Object.defineProperty(Up,"__esModule",{value:!0});var JQ={};Up.default=JQ;tH.exports=Up.default});var rH=w((Wp,aH)=>{"use strict";Object.defineProperty(Wp,"__esModule",{value:!0});Wp.default=YQ;var ZQ=Lp(),KQ=QQ(ZQ);function QQ(t){return t&&t.__esModule?t:{default:t}}function YQ(t,e,i,n){let a=!1,r=!1,s=!1,o=0,l=0;function u(){o>=e||s||a||(s=!0,t.next().then(({value:d,done:h})=>{if(!(r||a)){if(s=!1,h){a=!0,o<=0&&n(null);return}o++,i(d,l,c),l++,u()}}).catch(p))}function c(d,h){if(o-=1,!r){if(d)return p(d);if(d===!1){a=!0,r=!0;return}if(h===KQ.default||a&&o<=0)return a=!0,n(null);u()}}function p(d){r||(s=!1,a=!0,n(d))}u()}aH.exports=Wp.default});var uH=w((Bp,lH)=>{"use strict";Object.defineProperty(Bp,"__esModule",{value:!0});var XQ=BC(),e8=gl(XQ),i8=iH(),n8=gl(i8),t8=FC(),a8=gl(t8),sH=Ja(),r8=rH(),oH=gl(r8),s8=Lp(),o8=gl(s8);function gl(t){return t&&t.__esModule?t:{default:t}}Bp.default=t=>(e,i,n)=>{if(n=(0,e8.default)(n),t<=0)throw new RangeError("concurrency limit cannot be less than 1");if(!e)return n(null);if((0,sH.isAsyncGenerator)(e))return(0,oH.default)(e,t,i,n);if((0,sH.isAsyncIterable)(e))return(0,oH.default)(e[Symbol.asyncIterator](),t,i,n);var a=(0,n8.default)(e),r=!1,s=!1,o=0,l=!1;function u(p,d){if(!s)if(o-=1,p)r=!0,n(p);else if(p===!1)r=!0,s=!0;else{if(d===o8.default||r&&o<=0)return r=!0,n(null);l||c()}}function c(){for(l=!0;o{"use strict";Object.defineProperty(Fp,"__esModule",{value:!0});var l8=uH(),u8=VC(l8),c8=Ja(),p8=VC(c8),d8=os(),h8=VC(d8);function VC(t){return t&&t.__esModule?t:{default:t}}function g8(t,e,i,n){return(0,u8.default)(e)(t,(0,p8.default)(i),n)}Fp.default=(0,h8.default)(g8,4);cH.exports=Fp.default});var hH=w((Vp,dH)=>{"use strict";Object.defineProperty(Vp,"__esModule",{value:!0});var m8=JC(),f8=pH(m8),w8=os(),v8=pH(w8);function pH(t){return t&&t.__esModule?t:{default:t}}function C8(t,e,i){return(0,f8.default)(t,1,e,i)}Vp.default=(0,v8.default)(C8,3);dH.exports=Vp.default});var fH=w((Jp,mH)=>{"use strict";Object.defineProperty(Jp,"__esModule",{value:!0});Jp.default=j8;var A8=Z0(),b8=gH(A8),y8=hH(),P8=gH(y8);function gH(t){return t&&t.__esModule?t:{default:t}}function j8(t,e){return(0,b8.default)(P8.default,t,e)}mH.exports=Jp.default});var ZC=w((Ple,vH)=>{"use strict";vH.exports=dt;var Zp=Ut().codes,S8=Zp.ERR_METHOD_NOT_IMPLEMENTED,O8=Zp.ERR_MULTIPLE_CALLBACK,x8=Zp.ERR_TRANSFORM_ALREADY_TRANSFORMING,T8=Zp.ERR_TRANSFORM_WITH_LENGTH_0,Kp=Va();es()(dt,Kp);function M8(t,e){var i=this._transformState;i.transforming=!1;var n=i.writecb;if(n===null)return this.emit("error",new O8);i.writechunk=null,i.writecb=null,e!=null&&this.push(e),n(t);var a=this._readableState;a.reading=!1,(a.needReadable||a.length{"use strict";AH.exports=ml;var CH=ZC();es()(ml,CH);function ml(t){if(!(this instanceof ml))return new ml(t);CH.call(this,t)}ml.prototype._transform=function(t,e,i){i(null,t)}});var OH=w((Sle,SH)=>{"use strict";var KC;function k8(t){var e=!1;return function(){e||(e=!0,t.apply(void 0,arguments))}}var jH=Ut().codes,q8=jH.ERR_MISSING_ARGS,_8=jH.ERR_STREAM_DESTROYED;function yH(t){if(t)throw t}function H8(t){return t.setHeader&&typeof t.abort=="function"}function R8(t,e,i,n){n=k8(n);var a=!1;t.on("close",function(){a=!0}),KC===void 0&&(KC=bp()),KC(t,{readable:e,writable:i},function(s){if(s)return n(s);a=!0,n()});var r=!1;return function(s){if(!a&&!r){if(r=!0,H8(t))return t.abort();if(typeof t.destroy=="function")return t.destroy();n(s||new _8("pipe"))}}}function PH(t){t()}function I8(t,e){return t.pipe(e)}function z8(t){return!t.length||typeof t[t.length-1]!="function"?yH:t.pop()}function D8(){for(var t=arguments.length,e=new Array(t),i=0;i0;return R8(s,l,u,function(c){a||(a=c),c&&r.forEach(PH),!l&&(r.forEach(PH),n(a))})});return e.reduce(I8)}SH.exports=D8});var Za=w((fn,wl)=>{var fl=require("stream");process.env.READABLE_STREAM==="disable"&&fl?(wl.exports=fl.Readable,Object.assign(wl.exports,fl),wl.exports.Stream=fl):(fn=wl.exports=RC(),fn.Stream=fl||fn,fn.Readable=fn,fn.Writable=Mp(),fn.Duplex=Va(),fn.Transform=ZC(),fn.PassThrough=bH(),fn.finished=bp(),fn.pipeline=OH())});var tA=w((Ole,TH)=>{var ls=[],vl=[],QC=function(){};function XC(t){return~ls.indexOf(t)?!1:(ls.push(t),!0)}function eA(t){QC=t}function G8(t){for(var e=[],i=0;i{var U8=tA(),L8=U8(function t(e,i){return i=i||{},i.namespace=e,i.prod=!0,i.dev=!1,i.force||t.force?t.yep(i):t.nope(i)});MH.exports=L8});var IH=w((Tle,RH)=>{"use strict";var Fn={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]},qH=Object.create(null);for(let t in Fn)Object.hasOwn(Fn,t)&&(qH[Fn[t]]=t);var ci={to:{},get:{}};ci.get=function(t){let e=t.slice(0,3).toLowerCase(),i,n;switch(e){case"hsl":{i=ci.get.hsl(t),n="hsl";break}case"hwb":{i=ci.get.hwb(t),n="hwb";break}default:{i=ci.get.rgb(t),n="rgb";break}}return i?{model:n,value:i}:null};ci.get.rgb=function(t){if(!t)return null;let e=/^#([a-f\d]{3,4})$/i,i=/^#([a-f\d]{6})([a-f\d]{2})?$/i,n=/^rgba?\(\s*([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)\s*(?:[\s,|/]\s*([+-]?[\d.]+)(%?)\s*)?\)$/,a=/^rgba?\(\s*([+-]?[\d.]+)%\s*,?\s*([+-]?[\d.]+)%\s*,?\s*([+-]?[\d.]+)%\s*(?:[\s,|/]\s*([+-]?[\d.]+)(%?)\s*)?\)$/,r=/^(\w+)$/,s=[0,0,0,1],o,l,u;if(o=t.match(i)){for(u=o[2],o=o[1],l=0;l<3;l++){let c=l*2;s[l]=Number.parseInt(o.slice(c,c+2),16)}u&&(s[3]=Number.parseInt(u,16)/255)}else if(o=t.match(e)){for(o=o[1],u=o[3],l=0;l<3;l++)s[l]=Number.parseInt(o[l]+o[l],16);u&&(s[3]=Number.parseInt(u+u,16)/255)}else if(o=t.match(n)){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(Fn,o[1])?(s=Fn[o[1]],s[3]=1,s):null:null;for(l=0;l<3;l++)s[l]=Jt(s[l],0,255);return s[3]=Jt(s[3],0,1),s};ci.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*)?\)$/,i=t.match(e);if(i){let n=Number.parseFloat(i[4]),a=(Number.parseFloat(i[1])%360+360)%360,r=Jt(Number.parseFloat(i[2]),0,100),s=Jt(Number.parseFloat(i[3]),0,100),o=Jt(Number.isNaN(n)?1:n,0,1);return[a,r,s,o]}return null};ci.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*)?\)$/,i=t.match(e);if(i){let n=Number.parseFloat(i[4]),a=(Number.parseFloat(i[1])%360+360)%360,r=Jt(Number.parseFloat(i[2]),0,100),s=Jt(Number.parseFloat(i[3]),0,100),o=Jt(Number.isNaN(n)?1:n,0,1);return[a,r,s,o]}return null};ci.to.hex=function(...t){return"#"+Qp(t[0])+Qp(t[1])+Qp(t[2])+(t[3]<1?Qp(Math.round(t[3]*255)):"")};ci.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]+")"};ci.to.rgb.percent=function(...t){let e=Math.round(t[0]/255*100),i=Math.round(t[1]/255*100),n=Math.round(t[2]/255*100);return t.length<4||t[3]===1?"rgb("+e+"%, "+i+"%, "+n+"%)":"rgba("+e+"%, "+i+"%, "+n+"%, "+t[3]+")"};ci.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]+")"};ci.to.hwb=function(...t){let e="";return t.length>=4&&t[3]!==1&&(e=", "+t[3]),"hwb("+t[0]+", "+t[1]+"%, "+t[2]+"%"+e+")"};ci.to.keyword=function(...t){return qH[t.slice(0,3)]};function Jt(t,e,i){return Math.min(Math.max(e,t),i)}function Qp(t){let e=Math.round(t).toString(16).toUpperCase();return e.length<2?"0"+e:e}var _H={};for(let t of Object.keys(Fn))_H[Fn[t]]=t;var H={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},oklab:{channels:3,labels:["okl","oka","okb"]},lch:{channels:3,labels:"lch"},oklch:{channels:3,labels:["okl","okc","okh"]},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}},ht=(6/29)**3;function us(t){let e=t>.0031308?1.055*t**.4166666666666667-.055:t*12.92;return Math.min(Math.max(0,e),1)}function cs(t){return t>.04045?((t+.055)/1.055)**2.4:t/12.92}for(let t of Object.keys(H)){if(!("channels"in H[t]))throw new Error("missing channels property: "+t);if(!("labels"in H[t]))throw new Error("missing channel labels property: "+t);if(H[t].labels.length!==H[t].channels)throw new Error("channel and label counts mismatch: "+t);let{channels:e,labels:i}=H[t];delete H[t].channels,delete H[t].labels,Object.defineProperty(H[t],"channels",{value:e}),Object.defineProperty(H[t],"labels",{value:i})}H.rgb.hsl=function(t){let e=t[0]/255,i=t[1]/255,n=t[2]/255,a=Math.min(e,i,n),r=Math.max(e,i,n),s=r-a,o,l;switch(r){case a:{o=0;break}case e:{o=(i-n)/s;break}case i:{o=2+(n-e)/s;break}case n:{o=4+(e-i)/s;break}}o=Math.min(o*60,360),o<0&&(o+=360);let u=(a+r)/2;return r===a?l=0:u<=.5?l=s/(r+a):l=s/(2-r-a),[o,l*100,u*100]};H.rgb.hsv=function(t){let e,i,n,a,r,s=t[0]/255,o=t[1]/255,l=t[2]/255,u=Math.max(s,o,l),c=u-Math.min(s,o,l),p=function(d){return(u-d)/6/c+1/2};if(c===0)a=0,r=0;else{switch(r=c/u,e=p(s),i=p(o),n=p(l),u){case s:{a=n-i;break}case o:{a=1/3+e-n;break}case l:{a=2/3+i-e;break}}a<0?a+=1:a>1&&(a-=1)}return[a*360,r*100,u*100]};H.rgb.hwb=function(t){let e=t[0],i=t[1],n=t[2],a=H.rgb.hsl(t)[0],r=1/255*Math.min(e,Math.min(i,n));return n=1-1/255*Math.max(e,Math.max(i,n)),[a,r*100,n*100]};H.rgb.oklab=function(t){let e=cs(t[0]/255),i=cs(t[1]/255),n=cs(t[2]/255),a=Math.cbrt(.4122214708*e+.5363325363*i+.0514459929*n),r=Math.cbrt(.2119034982*e+.6806995451*i+.1073969566*n),s=Math.cbrt(.0883024619*e+.2817188376*i+.6299787005*n),o=.2104542553*a+.793617785*r-.0040720468*s,l=1.9779984951*a-2.428592205*r+.4505937099*s,u=.0259040371*a+.7827717662*r-.808675766*s;return[o*100,l*100,u*100]};H.rgb.cmyk=function(t){let e=t[0]/255,i=t[1]/255,n=t[2]/255,a=Math.min(1-e,1-i,1-n),r=(1-e-a)/(1-a)||0,s=(1-i-a)/(1-a)||0,o=(1-n-a)/(1-a)||0;return[r*100,s*100,o*100,a*100]};function W8(t,e){return(t[0]-e[0])**2+(t[1]-e[1])**2+(t[2]-e[2])**2}H.rgb.keyword=function(t){let e=_H[t];if(e)return e;let i=Number.POSITIVE_INFINITY,n;for(let a of Object.keys(Fn)){let r=Fn[a],s=W8(t,r);sht?i**(1/3):7.787*i+16/116,n=n>ht?n**(1/3):7.787*n+16/116,a=a>ht?a**(1/3):7.787*a+16/116;let r=116*n-16,s=500*(i-n),o=200*(n-a);return[r,s,o]};H.hsl.rgb=function(t){let e=t[0]/360,i=t[1]/100,n=t[2]/100,a,r;if(i===0)return r=n*255,[r,r,r];let s=n<.5?n*(1+i):n+i-n*i,o=2*n-s,l=[0,0,0];for(let u=0;u<3;u++)a=e+1/3*-(u-1),a<0&&a++,a>1&&a--,6*a<1?r=o+(s-o)*6*a:2*a<1?r=s:3*a<2?r=o+(s-o)*(2/3-a)*6:r=o,l[u]=r*255;return l};H.hsl.hsv=function(t){let e=t[0],i=t[1]/100,n=t[2]/100,a=i,r=Math.max(n,.01);n*=2,i*=n<=1?n:2-n,a*=r<=1?r:2-r;let s=(n+i)/2,o=n===0?2*a/(r+a):2*i/(n+i);return[e,o*100,s*100]};H.hsv.rgb=function(t){let e=t[0]/60,i=t[1]/100,n=t[2]/100,a=Math.floor(e)%6,r=e-Math.floor(e),s=255*n*(1-i),o=255*n*(1-i*r),l=255*n*(1-i*(1-r));switch(n*=255,a){case 0:return[n,l,s];case 1:return[o,n,s];case 2:return[s,n,l];case 3:return[s,o,n];case 4:return[l,s,n];case 5:return[n,s,o]}};H.hsv.hsl=function(t){let e=t[0],i=t[1]/100,n=t[2]/100,a=Math.max(n,.01),r,s;s=(2-i)*n;let o=(2-i)*a;return r=i*a,r/=o<=1?o:2-o,r=r||0,s/=2,[e,r*100,s*100]};H.hwb.rgb=function(t){let e=t[0]/360,i=t[1]/100,n=t[2]/100,a=i+n,r;a>1&&(i/=a,n/=a);let s=Math.floor(6*e),o=1-n;r=6*e-s,(s&1)!==0&&(r=1-r);let l=i+r*(o-i),u,c,p;switch(s){default:case 6:case 0:{u=o,c=l,p=i;break}case 1:{u=l,c=o,p=i;break}case 2:{u=i,c=o,p=l;break}case 3:{u=i,c=l,p=o;break}case 4:{u=l,c=i,p=o;break}case 5:{u=o,c=i,p=l;break}}return[u*255,c*255,p*255]};H.cmyk.rgb=function(t){let e=t[0]/100,i=t[1]/100,n=t[2]/100,a=t[3]/100,r=1-Math.min(1,e*(1-a)+a),s=1-Math.min(1,i*(1-a)+a),o=1-Math.min(1,n*(1-a)+a);return[r*255,s*255,o*255]};H.xyz.rgb=function(t){let e=t[0]/100,i=t[1]/100,n=t[2]/100,a,r,s;return a=e*3.2404542+i*-1.5371385+n*-.4985314,r=e*-.969266+i*1.8760108+n*.041556,s=e*.0556434+i*-.2040259+n*1.0572252,a=us(a),r=us(r),s=us(s),[a*255,r*255,s*255]};H.xyz.lab=function(t){let e=t[0],i=t[1],n=t[2];e/=95.047,i/=100,n/=108.883,e=e>ht?e**(1/3):7.787*e+16/116,i=i>ht?i**(1/3):7.787*i+16/116,n=n>ht?n**(1/3):7.787*n+16/116;let a=116*i-16,r=500*(e-i),s=200*(i-n);return[a,r,s]};H.xyz.oklab=function(t){let e=t[0]/100,i=t[1]/100,n=t[2]/100,a=Math.cbrt(.8189330101*e+.3618667424*i-.1288597137*n),r=Math.cbrt(.0329845436*e+.9293118715*i+.0361456387*n),s=Math.cbrt(.0482003018*e+.2643662691*i+.633851707*n),o=.2104542553*a+.793617785*r-.0040720468*s,l=1.9779984951*a-2.428592205*r+.4505937099*s,u=.0259040371*a+.7827717662*r-.808675766*s;return[o*100,l*100,u*100]};H.oklab.oklch=function(t){return H.lab.lch(t)};H.oklab.xyz=function(t){let e=t[0]/100,i=t[1]/100,n=t[2]/100,a=(.999999998*e+.396337792*i+.215803758*n)**3,r=(1.000000008*e-.105561342*i-.063854175*n)**3,s=(1.000000055*e-.089484182*i-1.291485538*n)**3,o=1.227013851*a-.55779998*r+.281256149*s,l=-.040580178*a+1.11225687*r-.071676679*s,u=-.076381285*a-.421481978*r+1.58616322*s;return[o*100,l*100,u*100]};H.oklab.rgb=function(t){let e=t[0]/100,i=t[1]/100,n=t[2]/100,a=(e+.3963377774*i+.2158037573*n)**3,r=(e-.1055613458*i-.0638541728*n)**3,s=(e-.0894841775*i-1.291485548*n)**3,o=us(4.0767416621*a-3.3077115913*r+.2309699292*s),l=us(-1.2684380046*a+2.6097574011*r-.3413193965*s),u=us(-.0041960863*a-.7034186147*r+1.707614701*s);return[o*255,l*255,u*255]};H.oklch.oklab=function(t){return H.lch.lab(t)};H.lab.xyz=function(t){let e=t[0],i=t[1],n=t[2],a,r,s;r=(e+16)/116,a=i/500+r,s=r-n/200;let o=r**3,l=a**3,u=s**3;return r=o>ht?o:(r-16/116)/7.787,a=l>ht?l:(a-16/116)/7.787,s=u>ht?u:(s-16/116)/7.787,a*=95.047,r*=100,s*=108.883,[a,r,s]};H.lab.lch=function(t){let e=t[0],i=t[1],n=t[2],a;a=Math.atan2(n,i)*360/2/Math.PI,a<0&&(a+=360);let s=Math.sqrt(i*i+n*n);return[e,s,a]};H.lch.lab=function(t){let e=t[0],i=t[1],a=t[2]/360*2*Math.PI,r=i*Math.cos(a),s=i*Math.sin(a);return[e,r,s]};H.rgb.ansi16=function(t,e=null){let[i,n,a]=t,r=e===null?H.rgb.hsv(t)[2]:e;if(r=Math.round(r/50),r===0)return 30;let s=30+(Math.round(a/255)<<2|Math.round(n/255)<<1|Math.round(i/255));return r===2&&(s+=60),s};H.hsv.ansi16=function(t){return H.rgb.ansi16(H.hsv.rgb(t),t[2])};H.rgb.ansi256=function(t){let e=t[0],i=t[1],n=t[2];return e>>4===i>>4&&i>>4===n>>4?e<8?16:e>248?231:Math.round((e-8)/247*24)+232:16+36*Math.round(e/255*5)+6*Math.round(i/255*5)+Math.round(n/255*5)};H.ansi16.rgb=function(t){t=t[0];let e=t%10;if(e===0||e===7)return t>50&&(e+=3.5),e=e/10.5*255,[e,e,e];let i=(Math.trunc(t>50)+1)*.5,n=(e&1)*i*255,a=(e>>1&1)*i*255,r=(e>>2&1)*i*255;return[n,a,r]};H.ansi256.rgb=function(t){if(t=t[0],t>=232){let r=(t-232)*10+8;return[r,r,r]}t-=16;let e,i=Math.floor(t/36)/5*255,n=Math.floor((e=t%36)/6)/5*255,a=e%6/5*255;return[i,n,a]};H.rgb.hex=function(t){let i=(((Math.round(t[0])&255)<<16)+((Math.round(t[1])&255)<<8)+(Math.round(t[2])&255)).toString(16).toUpperCase();return"000000".slice(i.length)+i};H.hex.rgb=function(t){let e=t.toString(16).match(/[a-f\d]{6}|[a-f\d]{3}/i);if(!e)return[0,0,0];let i=e[0];e[0].length===3&&(i=[...i].map(o=>o+o).join(""));let n=Number.parseInt(i,16),a=n>>16&255,r=n>>8&255,s=n&255;return[a,r,s]};H.rgb.hcg=function(t){let e=t[0]/255,i=t[1]/255,n=t[2]/255,a=Math.max(Math.max(e,i),n),r=Math.min(Math.min(e,i),n),s=a-r,o,l=s<1?r/(1-s):0;return s<=0?o=0:a===e?o=(i-n)/s%6:a===i?o=2+(n-e)/s:o=4+(e-i)/s,o/=6,o%=1,[o*360,s*100,l*100]};H.hsl.hcg=function(t){let e=t[1]/100,i=t[2]/100,n=i<.5?2*e*i:2*e*(1-i),a=0;return n<1&&(a=(i-.5*n)/(1-n)),[t[0],n*100,a*100]};H.hsv.hcg=function(t){let e=t[1]/100,i=t[2]/100,n=e*i,a=0;return n<1&&(a=(i-n)/(1-n)),[t[0],n*100,a*100]};H.hcg.rgb=function(t){let e=t[0]/360,i=t[1]/100,n=t[2]/100;if(i===0)return[n*255,n*255,n*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-i)*n,[(i*a[0]+l)*255,(i*a[1]+l)*255,(i*a[2]+l)*255]};H.hcg.hsv=function(t){let e=t[1]/100,i=t[2]/100,n=e+i*(1-e),a=0;return n>0&&(a=e/n),[t[0],a*100,n*100]};H.hcg.hsl=function(t){let e=t[1]/100,n=t[2]/100*(1-e)+.5*e,a=0;return n>0&&n<.5?a=e/(2*n):n>=.5&&n<1&&(a=e/(2*(1-n))),[t[0],a*100,n*100]};H.hcg.hwb=function(t){let e=t[1]/100,i=t[2]/100,n=e+i*(1-e);return[t[0],(n-e)*100,(1-n)*100]};H.hwb.hcg=function(t){let e=t[1]/100,n=1-t[2]/100,a=n-e,r=0;return a<1&&(r=(n-a)/(1-a)),[t[0],a*100,r*100]};H.apple.rgb=function(t){return[t[0]/65535*255,t[1]/65535*255,t[2]/65535*255]};H.rgb.apple=function(t){return[t[0]/255*65535,t[1]/255*65535,t[2]/255*65535]};H.gray.rgb=function(t){return[t[0]/100*255,t[0]/100*255,t[0]/100*255]};H.gray.hsl=function(t){return[0,0,t[0]]};H.gray.hsv=H.gray.hsl;H.gray.hwb=function(t){return[0,100,t[0]]};H.gray.cmyk=function(t){return[0,0,0,t[0]]};H.gray.lab=function(t){return[t[0],0,0]};H.gray.hex=function(t){let e=Math.round(t[0]/100*255)&255,n=((e<<16)+(e<<8)+e).toString(16).toUpperCase();return"000000".slice(n.length)+n};H.rgb.gray=function(t){return[(t[0]+t[1]+t[2])/3/255*100]};function B8(){let t={},e=Object.keys(H);for(let{length:i}=e,n=0;n0;){let n=i.pop(),a=Object.keys(H[n]);for(let{length:r}=a,s=0;s1&&(i=n),t(i))};return"conversion"in t&&(e.conversion=t.conversion),e}function Y8(t){let e=function(...i){let n=i[0];if(n==null)return n;n.length>1&&(i=n);let a=t(i);if(typeof a=="object")for(let{length:r}=a,s=0;s0){this.model=e||"rgb",n=fi[this.model].channels;let a=Array.prototype.slice.call(t,0,n);this.color=sA(a,n),this.valpha=typeof t[n]=="number"?t[n]: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 aA))throw new Error("Unable to parse color from object: "+JSON.stringify(t));this.model=aA[r];let{labels:s}=fi[this.model],o=[];for(i=0;i(t%360+360)%360),saturationl:Xe("hsl",1,li(100)),lightness:Xe("hsl",2,li(100)),saturationv:Xe("hsv",1,li(100)),value:Xe("hsv",2,li(100)),chroma:Xe("hcg",1,li(100)),gray:Xe("hcg",2,li(100)),white:Xe("hwb",1,li(100)),wblack:Xe("hwb",2,li(100)),cyan:Xe("cmyk",0,li(100)),magenta:Xe("cmyk",1,li(100)),yellow:Xe("cmyk",2,li(100)),black:Xe("cmyk",3,li(100)),x:Xe("xyz",0,li(95.047)),y:Xe("xyz",1,li(100)),z:Xe("xyz",2,li(108.833)),l:Xe("lab",0,li(100)),a:Xe("lab",1),b:Xe("lab",2),keyword(t){return t!==void 0?new ui(t):fi[this.model].keyword(this.color)},hex(t){return t!==void 0?new ui(t):ci.to.hex(...this.rgb().round().color)},hexa(t){if(t!==void 0)return new ui(t);let e=this.rgb().round().color,i=Math.round(this.valpha*255).toString(16).toUpperCase();return i.length===1&&(i="0"+i),ci.to.hex(...e)+i},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[i,n]of t.entries()){let a=n/255;e[i]=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(),i=t.luminosity();return e>i?(e+.05)/(i+.05):(i+.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 ui.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(),i=e.color[0];return i=(i+t)%360,i=i<0?360+i:i,e.color[0]=i,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 i=t.rgb(),n=this.rgb(),a=e===void 0?.5:e,r=2*a-1,s=i.alpha()-n.alpha(),o=((r*s===-1?r:(r+s)/(1+r*s))+1)/2,l=1-o;return ui.rgb(o*i.red()+l*n.red(),o*i.green()+l*n.green(),o*i.blue()+l*n.blue(),i.alpha()*a+n.alpha()*(1-a))}};for(let t of Object.keys(fi)){if(HH.includes(t))continue;let{channels:e}=fi[t];ui.prototype[t]=function(...i){return this.model===t?new ui(this):i.length>0?new ui(i,t):new ui([...i7(fi[this.model][t].raw(this.color)),this.valpha],t)},ui[t]=function(...i){let n=i[0];return typeof n=="number"&&(n=sA(i,e)),new ui(n,t)}}function X8(t,e){return Number(t.toFixed(e))}function e7(t){return function(e){return X8(e,t)}}function Xe(t,e,i){t=Array.isArray(t)?t:[t];for(let n of t)(rA[n]||=[])[e]=i;return t=t[0],function(n){let a;return n!==void 0?(i&&(n=i(n)),a=this[t](),a.color[e]=n,a):(a=this[t]().color[e],i&&(a=i(a)),a)}}function li(t){return function(e){return Math.max(0,Math.min(t,e))}}function i7(t){return Array.isArray(t)?t:[t]}function sA(t,e){for(let i=0;i{"use strict";function Mn(t,e){if(e)return new Mn(t).style(e);if(!(this instanceof Mn))return new Mn(t);this.text=t}Mn.prototype.prefix="\x1B[";Mn.prototype.suffix="m";Mn.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 i=e.substring(0,2),n=e.substring(2,4),a=e.substring(4,6);return[parseInt(i,16),parseInt(n,16),parseInt(a,16)]};Mn.prototype.rgb=function(e,i,n){var a=e/255*5,r=i/255*5,s=n/255*5;return this.ansi(a,r,s)};Mn.prototype.ansi=function(e,i,n){var a=Math.round(e),r=Math.round(i),s=Math.round(n);return 16+a*36+r*6+s};Mn.prototype.reset=function(){return this.prefix+"39;49"+this.suffix};Mn.prototype.style=function(e){return this.prefix+"38;5;"+this.rgb.apply(this,this.hex(e))+this.suffix+this.text+this.reset()};zH.exports=Mn});var $H=w((Ele,GH)=>{var r7=IH(),s7=DH();GH.exports=function(e,i){var n=i.namespace,a=i.colors!==!1?s7(n+":",r7(n)):n+":";return e[0]=a+" "+e[0],e}});var UH=w((kle,NH)=>{"use strict";NH.exports=function(e,i){if(!i)return!1;for(var n=i.split(/[\s,]+/),a=0;a{var o7=UH();LH.exports=function(e){return function(n){try{return o7(n,e())}catch{}return!1}}});var FH=w((_le,BH)=>{var l7=WH();BH.exports=l7(function(){return process.env.DEBUG||process.env.DIAGNOSTICS})});var JH=w((Hle,VH)=>{VH.exports=function(t,e){try{Function.prototype.apply.call(console.log,console,e)}catch{}}});var KH=w((Rle,ZH)=>{var u7=tA(),c7=require("tty").isatty(1),Yp=u7(function t(e,i){return i=i||{},i.colors="colors"in i?i.colors:c7,i.namespace=e,i.prod=!1,i.dev=!0,!t.enabled(e)&&!(i.force||t.force)?t.nope(i):t.yep(i)});Yp.modify($H());Yp.use(FH());Yp.set(JH());ZH.exports=Yp});var Cl=w((Ile,oA)=>{process.env.NODE_ENV==="production"?oA.exports=EH():oA.exports=KH()});var YH=w((zle,QH)=>{"use strict";var lA=require("fs"),{StringDecoder:p7}=require("string_decoder"),{Stream:d7}=Za();function h7(){}QH.exports=(t,e)=>{let i=Buffer.alloc(65536),n=new p7("utf8"),a=new d7,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")},lA.open(t.file,"a+","0644",(l,u)=>{if(l){e?e(l):a.emit("error",l),a.destroy();return}(function c(){if(a.destroyed){lA.close(u,h7);return}return lA.read(u,i,0,i.length,s,(p,d)=>{if(p){e?e(p):a.emit("error",p),a.destroy();return}if(!d)return r&&((t.start==null||o>t.start)&&(e?e(null,r):a.emit("line",r)),o++,r=""),setTimeout(c,1e3);let h=n.write(i.slice(0,d));e||a.emit("data",h),h=(r+h).split(/\n+/);let g=h.length-1,m=0;for(;mt.start)&&(e?e(null,h[m]):a.emit("line",h[m])),o++;return r=h[g],s+=d,c()})})()}),e?a.destroy:a}});var nR=w((Gle,iR)=>{"use strict";var Ki=require("fs"),wi=require("path"),XH=fH(),g7=require("zlib"),{MESSAGE:m7}=ri(),{Stream:f7,PassThrough:eR}=Za(),w7=rs(),En=Cl()("winston:file"),v7=require("os"),C7=YH();iR.exports=class extends w7{constructor(e={}){super(e),this.name=e.name||"file";function i(n,...a){a.slice(1).forEach(r=>{if(e[r])throw new Error(`Cannot set ${r} and ${n} together`)})}if(this._stream=new eR,this._stream.setMaxListeners(30),this._onError=this._onError.bind(this),e.filename||e.dirname)i("filename or dirname","stream"),this._basename=this.filename=e.filename?wi.basename(e.filename):"winston.log",this.dirname=e.dirname||wi.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"),i("stream","filename","maxsize"),this._dest=this._stream.pipe(this._setupStream(e.stream)),this.dirname=wi.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:v7.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,i=()=>{}){if(this.silent)return i(),!0;if(this._drain){this._stream.once("drain",()=>{this._drain=!1,this.log(e,i)});return}if(this._rotate){this._stream.once("rotate",()=>{this._rotate=!1,this.log(e,i)});return}if(this.lazy){if(!this._fileExist){this._opening||this.open(),this.once("open",()=>{this._fileExist=!0,this.log(e,i)});return}if(this._needsNewFile(this._pendingSize)){this._dest.once("close",()=>{this._opening||this.open(),this.once("open",()=>{this.log(e,i)})});return}}let n=`${e[m7]}${this.eol}`,a=Buffer.byteLength(n);function r(){if(this._size+=a,this._pendingSize-=a,En("logged %s %s",this._size,n),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(n,r.bind(this));return s?i():(this._drain=!0,this._stream.once("drain",()=>{this._drain=!1,i()})),En("written",s,this._drain),this.finishIfEnding(),s}query(e,i){typeof e=="function"&&(i=e,e={}),e=p(e);let n=wi.join(this.dirname,this.filename),a="",r=[],s=0,o=Ki.createReadStream(n,{encoding:"utf8"});o.on("error",d=>{if(o.readable&&o.destroy(),!!i)return d.code!=="ENOENT"?i(d):i(null,r)}),o.on("data",d=>{d=(a+d).split(/\n+/);let h=d.length-1,g=0;for(;g=e.start)&&l(d[g]),s++;a=d[h]}),o.on("close",()=>{a&&l(a,!0),e.order==="desc"&&(r=r.reverse()),i&&i(null,r)});function l(d,h){try{let g=JSON.parse(d);c(g)&&u(g)}catch(g){h||o.emit("error",g)}}function u(d){if(e.rows&&r.length>=e.rows&&e.order!=="desc"){o.readable&&o.destroy();return}e.fields&&(d=e.fields.reduce((h,g)=>(h[g]=d[g],h),{})),e.order==="desc"&&r.length>=e.rows&&r.shift(),r.push(d)}function c(d){if(!d||typeof d!="object")return;let h=new Date(d.timestamp);if(!(e.from&&he.until||e.level&&e.level!==d.level))return!0}function p(d){return d=d||{},d.rows=d.rows||d.limit||10,d.start=d.start||0,d.until=d.until||new Date,typeof d.until!="object"&&(d.until=new Date(d.until)),d.from=d.from||d.until-1440*60*1e3,typeof d.from!="object"&&(d.from=new Date(d.from)),d.order=d.order||"desc",d}}stream(e={}){let i=wi.join(this.dirname,this.filename),n=new f7,a={file:i,start:e.start};return n.destroy=C7(a,(r,s)=>{if(r)return n.emit("error",r);try{n.emit("data",s),s=JSON.parse(s),n.emit("log",s)}catch(o){n.emit("error",o)}}),n}open(){this.filename&&(this._opening||(this._opening=!0,this.stat((e,i)=>{if(e)return this.emit("error",e);En("stat done: %s { size: %s }",this.filename,i),this._size=i,this._dest=this._createStream(this._stream),this._opening=!1,this.once("open",()=>{this._stream.emit("rotate")||(this._rotate=!1)})})))}stat(e){let i=this._getFile(),n=wi.join(this.dirname,i);Ki.stat(n,(a,r)=>{if(a&&a.code==="ENOENT")return En("ENOENT\xA0ok",n),this.filename=i,e(null,0);if(a)return En(`err ${a.code} ${n}`),e(a);if(!r||this._needsNewFile(r.size))return this._incFile(()=>this.stat(e));this.filename=i,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 i=wi.join(this.dirname,this.filename);En("create stream start",i,this.options);let n=Ki.createWriteStream(i,this.options).on("error",a=>En(a)).on("close",()=>En("close",n.path,n.bytesWritten)).on("open",()=>{En("file open ok",i),this.emit("open",i),e.pipe(n),this.rotatedWhileOpening&&(this._stream=new eR,this._stream.setMaxListeners(30),this._rotateFile(),this.rotatedWhileOpening=!1,this._cleanupStream(n),e.end())});return En("create stream ok",i),n}_incFile(e){En("_incFile",this.filename);let i=wi.extname(this._basename),n=wi.basename(this._basename,i),a=[];this.zippedArchive&&a.push(function(r){let s=this._created>0&&!this.tailable?this._created:"";this._compressFile(wi.join(this.dirname,`${n}${s}${i}`),wi.join(this.dirname,`${n}${s}${i}.gz`),r)}.bind(this)),a.push(function(r){this.tailable?this._checkMaxFilesTailable(i,n,r):(this._created+=1,this._checkMaxFilesIncrementing(i,n,r))}.bind(this)),XH(a,e)}_getFile(){let e=wi.extname(this._basename),i=wi.basename(this._basename,e),n=this.rotationFormat?this.rotationFormat():this._created;return!this.tailable&&this._created?`${i}${n}${e}`:`${i}${e}`}_checkMaxFilesIncrementing(e,i,n){if(!this.maxFiles||this._created1;s--)a.push(function(o,l){let u=`${i}${o-1}${e}${r}`,c=wi.join(this.dirname,u);Ki.exists(c,p=>{if(!p)return l(null);u=`${i}${o}${e}${r}`,Ki.rename(c,wi.join(this.dirname,u),l)})}.bind(this,s));XH(a,()=>{Ki.rename(wi.join(this.dirname,`${i}${e}${r}`),wi.join(this.dirname,`${i}1${e}${r}`),n)})}_compressFile(e,i,n){Ki.access(e,Ki.F_OK,a=>{if(a)return n();var r=g7.createGzip(),s=Ki.createReadStream(e),o=Ki.createWriteStream(i);o.on("finish",()=>{Ki.unlink(e,n)}),s.pipe(r).pipe(o)})}_createLogDirIfNotExist(e){Ki.existsSync(e)||Ki.mkdirSync(e,{recursive:!0})}}});var aR=w((Nle,tR)=>{"use strict";var A7=require("http"),b7=require("https"),{Stream:y7}=Za(),P7=rs(),{configure:j7}=tl();tR.exports=class extends P7{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,i){this._request(e,null,null,(n,a)=>{a&&a.statusCode!==200&&(n=new Error(`Invalid HTTP Status Code: ${a.statusCode}`)),n?this.emit("warn",n):this.emit("logged",e)}),i&&setImmediate(i)}query(e,i){typeof e=="function"&&(i=e,e={}),e={method:"query",params:this.normalizeQuery(e)};let n=e.params.auth||null;delete e.params.auth;let a=e.params.path||null;delete e.params.path,this._request(e,n,a,(r,s,o)=>{if(s&&s.statusCode!==200&&(r=new Error(`Invalid HTTP Status Code: ${s.statusCode}`)),r)return i(r);if(typeof o=="string")try{o=JSON.parse(o)}catch(l){return i(l)}i(null,o)})}stream(e={}){let i=new y7;e={method:"stream",params:e};let n=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,n);return i.destroy=()=>s.destroy(),s.on("data",o=>{o=(r+o).split(/\n+/);let l=o.length-1,u=0;for(;ui.emit("error",o)),i}_request(e,i,n,a){e=e||{},i=i||this.auth,n=n||this.path||"",this.batch?this._doBatch(e,a,i,n):this._doRequest(e,a,i,n)}_doBatch(e,i,n,a){if(this.batchOptions.push(e),this.batchOptions.length===1){let r=this;this.batchCallback=i,this.batchTimeoutID=setTimeout(function(){r.batchTimeoutID=-1,r._doBatchRequest(r.batchCallback,n,a)},this.batchInterval)}this.batchOptions.length===this.batchCount&&this._doBatchRequest(this.batchCallback,n,a)}_doBatchRequest(e,i,n){this.batchTimeoutID>0&&(clearTimeout(this.batchTimeoutID),this.batchTimeoutID=-1);let a=this.batchOptions.slice();this.batchOptions=[],this._doRequest(a,e,i,n)}_doRequest(e,i,n,a){let r=Object.assign({},this.headers);n&&n.bearer&&(r.Authorization=`Bearer ${n.bearer}`);let s=(this.ssl?b7:A7).request({...this.options,method:"POST",host:this.host,port:this.port,path:`/${a.replace(/^\//,"")}`,headers:r,auth:n&&n.username&&n.password?`${n.username}:${n.password}`:"",agent:this.agent});s.on("error",i),s.on("response",l=>l.on("end",()=>i(null,l)).resume());let o=j7({...this.maximumDepth&&{maximumDepth:this.maximumDepth}});s.end(Buffer.from(o(e,this.options.replacer),"utf8"))}}});var uA=w((Ule,rR)=>{"use strict";var Vn=t=>t!==null&&typeof t=="object"&&typeof t.pipe=="function";Vn.writable=t=>Vn(t)&&t.writable!==!1&&typeof t._write=="function"&&typeof t._writableState=="object";Vn.readable=t=>Vn(t)&&t.readable!==!1&&typeof t._read=="function"&&typeof t._readableState=="object";Vn.duplex=t=>Vn.writable(t)&&Vn.readable(t);Vn.transform=t=>Vn.duplex(t)&&typeof t._transform=="function";rR.exports=Vn});var oR=w((Wle,sR)=>{"use strict";var S7=uA(),{MESSAGE:O7}=ri(),x7=require("os"),T7=rs();sR.exports=class extends T7{constructor(e={}){if(super(e),!e.stream||!S7(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:x7.EOL}log(e,i){if(setImmediate(()=>this.emit("logged",e)),this.isObjectMode){this._stream.write(e),i&&i();return}this._stream.write(`${e[O7]}${this.eol}`),i&&i()}}});var lR=w(Al=>{"use strict";Object.defineProperty(Al,"Console",{configurable:!0,enumerable:!0,get(){return H0()}});Object.defineProperty(Al,"File",{configurable:!0,enumerable:!0,get(){return nR()}});Object.defineProperty(Al,"Http",{configurable:!0,enumerable:!0,get(){return aR()}});Object.defineProperty(Al,"Stream",{configurable:!0,enumerable:!0,get(){return oR()}})});var ed=w(bl=>{"use strict";var Xp=pC(),{configs:cA}=ri();bl.cli=Xp.levels(cA.cli);bl.npm=Xp.levels(cA.npm);bl.syslog=Xp.levels(cA.syslog);bl.addColors=Xp.levels});var cR=w((id,uR)=>{"use strict";Object.defineProperty(id,"__esModule",{value:!0});var M7=_p(),E7=Ka(M7),k7=Lp(),q7=Ka(k7),_7=JC(),H7=Ka(_7),R7=BC(),I7=Ka(R7),z7=FC(),D7=Ka(z7),G7=Ja(),$7=Ka(G7),N7=os(),U7=Ka(N7);function Ka(t){return t&&t.__esModule?t:{default:t}}function L7(t,e,i){i=(0,I7.default)(i);var n=0,a=0,{length:r}=t,s=!1;r===0&&i(null);function o(l,u){l===!1&&(s=!0),s!==!0&&(l?i(l):(++a===r||u===q7.default)&&i(null))}for(;n{"use strict";Object.defineProperty(nd,"__esModule",{value:!0});nd.default=F7;function F7(t){return(e,i,n)=>t(e,n)}pR.exports=nd.default});var rd=w((ad,hR)=>{"use strict";Object.defineProperty(ad,"__esModule",{value:!0});var V7=cR(),J7=td(V7),Z7=dR(),K7=td(Z7),Q7=Ja(),Y7=td(Q7),X7=os(),eY=td(X7);function td(t){return t&&t.__esModule?t:{default:t}}function iY(t,e,i){return(0,J7.default)(t,(0,K7.default)((0,Y7.default)(e)),i)}ad.default=(0,eY.default)(iY,3);hR.exports=ad.default});var mR=w((Vle,gR)=>{"use strict";var nY=Object.prototype.toString;gR.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 i=e.toString(),n=nY.call(e).slice(8,-1);return n==="Function"?i=i.substring(i.indexOf("(")+1,i.indexOf(")")):i=n,i||"anonymous"}});var pA=w((Jle,fR)=>{"use strict";var tY=mR();fR.exports=function(e){var i=0,n;function a(){return i||(i=1,n=e.apply(this,arguments),e=null),n}return a.displayName=tY(e),a}});var dA=w(Pl=>{Pl.get=function(t){var e=Error.stackTraceLimit;Error.stackTraceLimit=1/0;var i={},n=Error.prepareStackTrace;Error.prepareStackTrace=function(r,s){return s},Error.captureStackTrace(i,t||Pl.get);var a=i.stack;return Error.prepareStackTrace=n,Error.stackTraceLimit=e,a};Pl.parse=function(t){if(!t.stack)return[];var e=this,i=t.stack.split(` -`).slice(1);return i.map(function(n){if(n.match(/^\s*[-]{4,}$/))return e._createParsedCallSite({fileName:n,lineNumber:null,functionName:null,typeName:null,methodName:null,columnNumber:null,native:null});var a=n.match(/at (?:(.+)\s+\()?(?:(.+?):(\d+)(?::(\d+))?|([^)]+))\)?/);if(a){var r=null,s=null,o=null,l=null,u=null,c=a[5]==="native";if(a[1]){o=a[1];var p=o.lastIndexOf(".");if(o[p-1]=="."&&p--,p>0){r=o.substr(0,p),s=o.substr(p+1);var d=r.indexOf(".Module");d>0&&(o=o.substr(d+1),r=r.substr(0,d))}l=null}s&&(l=r,u=s),s===""&&(u=null,o=null);var h={fileName:a[2]||null,lineNumber:parseInt(a[3],10)||null,functionName:o,typeName:l,methodName:u,columnNumber:parseInt(a[4],10)||null,native:c};return e._createParsedCallSite(h)}}).filter(function(n){return!!n})};function yl(t){for(var e in t)this[e]=t[e]}var aY=["this","typeName","functionName","methodName","fileName","lineNumber","columnNumber","function","evalOrigin"],rY=["topLevel","eval","native","constructor"];aY.forEach(function(t){yl.prototype[t]=null,yl.prototype["get"+t[0].toUpperCase()+t.substr(1)]=function(){return this[t]}});rY.forEach(function(t){yl.prototype[t]=!1,yl.prototype["is"+t[0].toUpperCase()+t.substr(1)]=function(){return this[t]}});Pl._createParsedCallSite=function(t){return new yl(t)}});var vR=w((Qle,wR)=>{"use strict";var{Writable:sY}=Za();wR.exports=class extends sY{constructor(e){if(super({objectMode:!0}),!e)throw new Error("ExceptionStream requires a TransportStream instance.");this.handleExceptions=!0,this.transport=e}_write(e,i,n){return e.exception?this.transport.log(e,n):(n(),!0)}}});var gA=w((Xle,bR)=>{"use strict";var CR=require("os"),oY=rd(),hA=Cl()("winston:exception"),lY=pA(),AR=dA(),uY=vR();bR.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(i=>{if(Array.isArray(i))return i.forEach(n=>this._addHandler(n));this._addHandler(i)}),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 i=null;return e&&(i=typeof e=="string"?e:e.message),{error:e,level:"error",message:[`uncaughtException: ${i||"(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:CR.loadavg(),uptime:CR.uptime()}}getTrace(e){return(e?AR.parse(e):AR.get()).map(n=>({column:n.getColumnNumber(),file:n.getFileName(),function:n.getFunctionName(),line:n.getLineNumber(),method:n.getMethodName(),native:n.isNative()}))}_addHandler(e){if(!this.handlers.has(e)){e.handleExceptions=!0;let i=new uY(e);this.handlers.set(e,i),this.logger.pipe(i)}}_uncaughtException(e){let i=this.getAllInfo(e),n=this._getExceptionHandlers(),a=typeof this.logger.exitOnError=="function"?this.logger.exitOnError(e):this.logger.exitOnError,r;!n.length&&a&&(console.warn("winston: exitOnError cannot be true with no exception handlers."),console.warn("winston: not exiting process."),a=!1);function s(){hA("doExit",a),hA("process._exiting",process._exiting),a&&!process._exiting&&(r&&clearTimeout(r),process.exit(1))}if(!n||n.length===0)return process.nextTick(s);oY(n,(o,l)=>{let u=lY(l),c=o.transport||o;function p(d){return()=>{hA(d),u()}}c._ending=!0,c.once("finish",p("finished")),c.once("error",p("error"))},()=>a&&s()),this.logger.log(i),a&&(r=setTimeout(s,3e3))}_getExceptionHandlers(){return this.logger.transports.filter(e=>(e.transport||e).handleExceptions)}}});var PR=w((iue,yR)=>{"use strict";var{Writable:cY}=Za();yR.exports=class extends cY{constructor(e){if(super({objectMode:!0}),!e)throw new Error("RejectionStream requires a TransportStream instance.");this.handleRejections=!0,this.transport=e}_write(e,i,n){return e.rejection?this.transport.log(e,n):(n(),!0)}}});var fA=w((tue,OR)=>{"use strict";var jR=require("os"),pY=rd(),mA=Cl()("winston:rejection"),dY=pA(),SR=dA(),hY=PR();OR.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(i=>{if(Array.isArray(i))return i.forEach(n=>this._addHandler(n));this._addHandler(i)}),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 i=null;return e&&(i=typeof e=="string"?e:e.message),{error:e,level:"error",message:[`unhandledRejection: ${i||"(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:jR.loadavg(),uptime:jR.uptime()}}getTrace(e){return(e?SR.parse(e):SR.get()).map(n=>({column:n.getColumnNumber(),file:n.getFileName(),function:n.getFunctionName(),line:n.getLineNumber(),method:n.getMethodName(),native:n.isNative()}))}_addHandler(e){if(!this.handlers.has(e)){e.handleRejections=!0;let i=new hY(e);this.handlers.set(e,i),this.logger.pipe(i)}}_unhandledRejection(e){let i=this.getAllInfo(e),n=this._getRejectionHandlers(),a=typeof this.logger.exitOnError=="function"?this.logger.exitOnError(e):this.logger.exitOnError,r;!n.length&&a&&(console.warn("winston: exitOnError cannot be true with no rejection handlers."),console.warn("winston: not exiting process."),a=!1);function s(){mA("doExit",a),mA("process._exiting",process._exiting),a&&!process._exiting&&(r&&clearTimeout(r),process.exit(1))}if(!n||n.length===0)return process.nextTick(s);pY(n,(o,l)=>{let u=dY(l),c=o.transport||o;function p(d){return()=>{mA(d),u()}}c._ending=!0,c.once("finish",p("finished")),c.once("error",p("error"))},()=>a&&s()),this.logger.log(i),a&&(r=setTimeout(s,3e3))}_getRejectionHandlers(){return this.logger.transports.filter(e=>(e.transport||e).handleRejections)}}});var TR=w((aue,xR)=>{"use strict";var wA=class{constructor(e){let i=sd();if(typeof e!="object"||Array.isArray(e)||!(e instanceof i))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 i=typeof e[e.length-1]=="object"?e.pop():{};return i.level=i.level||"info",i.durationMs=Date.now()-this.start,this.logger.write(i)}};xR.exports=wA});var sd=w((rue,qR)=>{"use strict";var{Stream:gY,Transform:mY}=Za(),MR=rd(),{LEVEL:Jn,SPLAT:ER}=ri(),kR=uA(),fY=gA(),wY=fA(),vY=UC(),CY=TR(),{warn:AY}=dC(),bY=ed(),yY=/%[scdjifoO%]/g,od=class extends mY{constructor(e){super({objectMode:!0}),this.configure(e)}child(e){let i=this;return Object.create(i,{write:{value:function(n){let a=Object.assign({},e,n);n instanceof Error&&(a.stack=n.stack,a.message=n.message,a.cause=n.cause),i.write(a)}}})}configure({silent:e,format:i,defaultMeta:n,levels:a,level:r="info",exitOnError:s=!0,transports:o,colors:l,emitErrs:u,formatters:c,padLevels:p,rewriters:d,stripColors:h,exceptionHandlers:g,rejectionHandlers:m}={}){if(this.transports.length&&this.clear(),this.silent=e,this.format=i||this.format||sC()(),this.defaultMeta=n||null,this.levels=a||this.levels||bY.npm.levels,this.level=r,this.exceptions&&this.exceptions.unhandle(),this.rejections&&this.rejections.unhandle(),this.exceptions=new fY(this),this.rejections=new wY(this),this.profilers={},this.exitOnError=s,o&&(o=Array.isArray(o)?o:[o],o.forEach(f=>this.add(f))),l||u||c||p||d||h)throw new Error(["{ colors, emitErrs, formatters, padLevels, rewriters, stripColors } were removed in winston@3.0.0.","Use a custom winston.format(function) instead.","See: https://github.com/winstonjs/winston/tree/master/UPGRADE-3.0.md"].join(` -`));g&&this.exceptions.handle(g),m&&this.rejections.handle(m)}getHighestLogLevel(){let e=jl(this.levels,this.level);return!this.transports||this.transports.length===0?e:this.transports.reduce((i,n)=>{let a=jl(this.levels,n.level);return a!==null&&a>i?a:i},e)}isLevelEnabled(e){let i=jl(this.levels,e);if(i===null)return!1;let n=jl(this.levels,this.level);return n===null?!1:!this.transports||this.transports.length===0?n>=i:this.transports.findIndex(r=>{let s=jl(this.levels,r.level);return s===null&&(s=n),s>=i})!==-1}log(e,i,...n){if(arguments.length===1)return e[Jn]=e.level,this._addDefaultMeta(e),this.write(e),this;if(arguments.length===2)return i&&typeof i=="object"?(i[Jn]=i.level=e,this._addDefaultMeta(i),this.write(i),this):(i={[Jn]:e,level:e,message:i},this._addDefaultMeta(i),this.write(i),this);let[a]=n;if(typeof a=="object"&&a!==null&&!(i&&i.match&&i.match(yY))){let s=Object.assign({},this.defaultMeta,a,{[Jn]:e,[ER]:n,level:e,message:i});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,{[Jn]:e,[ER]:n,level:e,message:i})),this}_transform(e,i,n){if(this.silent)return n();e[Jn]||(e[Jn]=e.level),!this.levels[e[Jn]]&&this.levels[e[Jn]]!==0&&console.error("[winston] Unknown logger level: %s",e[Jn]),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,n()}}_final(e){let i=this.transports.slice();MR(i,(n,a)=>{if(!n||n.finished)return setImmediate(a);n.once("finish",a),n.end()},e)}add(e){let i=!kR(e)||e.log.length>2?new vY({transport:e}):e;if(!i._writableState||!i._writableState.objectMode)throw new Error("Transports must WritableStreams in objectMode. Set { objectMode: true }.");return this._onEvent("error",i),this._onEvent("warn",i),this.pipe(i),e.handleExceptions&&this.exceptions.handle(),e.handleRejections&&this.rejections.handle(),this}remove(e){if(!e)return this;let i=e;return(!kR(e)||e.log.length>2)&&(i=this.transports.filter(n=>n.transport===e)[0]),i&&this.unpipe(i),this}clear(){return this.unpipe(),this}close(){return this.exceptions.unhandle(),this.rejections.unhandle(),this.clear(),this.emit("close"),this}setLevels(){AY.deprecated("setLevels")}query(e,i){typeof e=="function"&&(i=e,e={}),e=e||{};let n={},a=Object.assign({},e.query||{});function r(o,l){e.query&&typeof o.formatQuery=="function"&&(e.query=o.formatQuery(a)),o.query(e,(u,c)=>{if(u)return l(u);typeof o.formatResults=="function"&&(c=o.formatResults(c,e.format)),l(null,c)})}function s(o,l){r(o,(u,c)=>{l&&(c=u||c,c&&(n[o.name]=c),l()),l=null})}MR(this.transports.filter(o=>!!o.query),s,()=>i(null,n))}stream(e={}){let i=new gY,n=[];return i._streams=n,i.destroy=()=>{let a=n.length;for(;a--;)n[a].destroy()},this.transports.filter(a=>!!a.stream).forEach(a=>{let r=a.stream(e);r&&(n.push(r),r.on("log",s=>{s.transport=s.transport||[],s.transport.push(a.name),i.emit("log",s)}),r.on("error",s=>{s.transport=s.transport||[],s.transport.push(a.name),i.emit("error",s)}))}),i}startTimer(){return new CY(this)}profile(e,...i){let n=Date.now();if(this.profilers[e]){let a=this.profilers[e];delete this.profilers[e],typeof i[i.length-2]=="function"&&(console.warn("Callback function no longer supported as of winston@3.0.0"),i.pop());let r=typeof i[i.length-1]=="object"?i.pop():{};return r.level=r.level||"info",r.durationMs=n-a,r.message=r.message||e,this.write(r)}return this.profilers[e]=n,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,i){function n(a){e==="error"&&!this.transports.includes(i)&&this.add(i),this.emit(e,a,i)}i["__winston"+e]||(i["__winston"+e]=n.bind(this),i.on(e,i["__winston"+e]))}_addDefaultMeta(e){this.defaultMeta&&Object.assign(e,this.defaultMeta)}};function jl(t,e){let i=t[e];return!i&&i!==0?null:i}Object.defineProperty(od.prototype,"transports",{configurable:!1,enumerable:!0,get(){let{pipes:t}=this._readableState;return Array.isArray(t)?t:[t].filter(Boolean)}});qR.exports=od});var vA=w((sue,_R)=>{"use strict";var{LEVEL:PY}=ri(),jY=ed(),SY=sd(),OY=Cl()("winston:create-logger");function xY(t){return"is"+t.charAt(0).toUpperCase()+t.slice(1)+"Enabled"}_R.exports=function(t={}){t.levels=t.levels||jY.npm.levels;class e extends SY{constructor(a){super(a)}}let i=new e(t);return Object.keys(t.levels).forEach(function(n){if(OY('Define prototype method for "%s"',n),n==="log"){console.warn('Level "log" not defined: conflicts with the method "log". Use a different level name.');return}e.prototype[n]=function(...a){let r=this||i;if(a.length===1){let[s]=a,o=s&&s.message&&s||{message:s};return o.level=o[PY]=n,r._addDefaultMeta(o),r.write(o),this||i}return a.length===0?(r.log(n,""),r):r.log(n,...a)},e.prototype[xY(n)]=function(){return(this||i).isLevelEnabled(n)}}),i}});var RR=w((lue,HR)=>{"use strict";var TY=vA();HR.exports=class{constructor(e={}){this.loggers=new Map,this.options=e}add(e,i){if(!this.loggers.has(e)){i=Object.assign({},i||this.options);let n=i.transports||this.options.transports;n?i.transports=Array.isArray(n)?n.slice():[n]:i.transports=[];let a=TY(i);a.on("close",()=>this._delete(e)),this.loggers.set(e,a)}return this.loggers.get(e)}get(e,i){return this.add(e,i)}has(e){return!!this.loggers.has(e)}close(e){if(e)return this._removeLogger(e);this.loggers.forEach((i,n)=>this._removeLogger(n))}_removeLogger(e){if(!this.loggers.has(e))return;this.loggers.get(e).close(),this._delete(e)}_delete(e){this.loggers.delete(e)}}});var zR=w(He=>{"use strict";var IR=pC(),{warn:Sl}=dC();He.version=q2().version;He.transports=lR();He.config=ed();He.addColors=IR.levels;He.format=IR.format;He.createLogger=vA();He.Logger=sd();He.ExceptionHandler=gA();He.RejectionHandler=fA();He.Container=RR();He.Transport=rs();He.loggers=new He.Container;var Zn=He.createLogger();Object.keys(He.config.npm.levels).concat(["log","query","stream","add","remove","clear","profile","startTimer","handleExceptions","unhandleExceptions","handleRejections","unhandleRejections","configure","child"]).forEach(t=>He[t]=(...e)=>Zn[t](...e));Object.defineProperty(He,"level",{get(){return Zn.level},set(t){Zn.level=t}});Object.defineProperty(He,"exceptions",{get(){return Zn.exceptions}});Object.defineProperty(He,"rejections",{get(){return Zn.rejections}});["exitOnError"].forEach(t=>{Object.defineProperty(He,t,{get(){return Zn[t]},set(e){Zn[t]=e}})});Object.defineProperty(He,"default",{get(){return{exceptionHandlers:Zn.exceptionHandlers,rejectionHandlers:Zn.rejectionHandlers,transports:Zn.transports}}});Sl.deprecated(He,"setLevels");Sl.forFunctions(He,"useFormat",["cli"]);Sl.forProperties(He,"useFormat",["padLevels","stripColors"]);Sl.forFunctions(He,"deprecated",["addRewriter","addFilter","clone","extend"]);Sl.forProperties(He,"deprecated",["emitErrs","levelLength"])});var NR=w((cue,$R)=>{var Ol=require("path"),DR=require("fs"),GR=parseInt("0777",8);$R.exports=ps.mkdirp=ps.mkdirP=ps;function ps(t,e,i,n){typeof e=="function"?(i=e,e={}):(!e||typeof e!="object")&&(e={mode:e});var a=e.mode,r=e.fs||DR;a===void 0&&(a=GR),n||(n=null);var s=i||function(){};t=Ol.resolve(t),r.mkdir(t,a,function(o){if(!o)return n=n||t,s(null,n);switch(o.code){case"ENOENT":if(Ol.dirname(t)===t)return s(o);ps(Ol.dirname(t),e,function(l,u){l?s(l,u):ps(t,e,s,u)});break;default:r.stat(t,function(l,u){l||!u.isDirectory()?s(o,n):s(null,n)});break}})}ps.sync=function t(e,i,n){(!i||typeof i!="object")&&(i={mode:i});var a=i.mode,r=i.fs||DR;a===void 0&&(a=GR),n||(n=null),e=Ol.resolve(e);try{r.mkdirSync(e,a),n=n||e}catch(o){switch(o.code){case"ENOENT":n=t(Ol.dirname(e),i,n),t(e,i,n);break;default:var s;try{s=r.statSync(e)}catch{throw o}if(!s.isDirectory())throw o;break}}return n}});var CA=w((pue,UR)=>{function MY(t){this.name="DuplicateSectionError",this.message=t+" already exists",Error.captureStackTrace(this,this.constructor)}function EY(t){this.name=this.constructor.name,this.message="Section "+t+" does not exist.",Error.captureStackTrace(this,this.constructor)}function kY(t,e,i){this.name=this.constructor.name,this.message=`Source contains parsing errors. +${y}`),m.pop(),`{${$}}`}case"number":return isFinite(g)?String(g):e?e(g):"null";case"boolean":return g===!0?"true":"false";case"undefined":return;case"bigint":if(n)return String(g);default:return e?e(g):void 0}}function p(h,g,m){switch(typeof g){case"string":return Nt(g);case"object":{if(g===null)return"null";if(typeof g.toJSON=="function"){if(g=g.toJSON(h),typeof g!="object")return p(h,g,m);if(g===null)return"null"}if(m.indexOf(g)!==-1)return i;let f="",v=g.length!==void 0;if(v&&Array.isArray(g)){if(g.length===0)return"[]";if(so){let F=g.length-o-1;f+=`,"... ${Na(F)} not stringified"`}return m.pop(),`[${f}]`}let y=Object.keys(g),A=y.length;if(A===0)return"{}";if(so){let $=A-o;f+=`${b}"...":"${Na($)} not stringified"`}return m.pop(),`{${f}}`}case"number":return isFinite(g)?String(g):e?e(g):"null";case"boolean":return g===!0?"true":"false";case"undefined":return;case"bigint":if(n)return String(g);default:return e?e(g):void 0}}function d(h,g,m){if(arguments.length>1){let f="";if(typeof m=="number"?f=" ".repeat(Math.min(m,10)):typeof m=="string"&&(f=m.slice(0,10)),g!=null){if(typeof g=="function")return l("",{"":h},[],g,f,"");if(Array.isArray(g))return u("",h,[],KK(g),f,"")}if(f.length!==0)return c("",h,[],f,"")}return p("",h,[])}return d}});var lC=w((Voe,l2)=>{"use strict";var YK=Zi(),{MESSAGE:XK}=ri(),e9=rl();function i9(t,e){return typeof e=="bigint"?e.toString():e}l2.exports=YK((t,e)=>{let i=e9.configure(e);return t[XK]=i(t,e.replacer||i9,e.space),t})});var c2=w((Joe,u2)=>{"use strict";var n9=Zi();u2.exports=n9((t,e)=>e.message?(t.message=`[${e.label}] ${t.message}`,t):(t.label=e.label,t))});var d2=w((Zoe,p2)=>{"use strict";var t9=Zi(),{MESSAGE:a9}=ri(),r9=rl();p2.exports=t9(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[a9]=r9(e),t})});var g2=w((Koe,h2)=>{"use strict";var s9=Zi();function o9(t,e,i){let n=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,n,{[i]:a}),t}function l9(t,e,i){return t[i]=e.reduce((n,a)=>(n[a]=t[a],delete t[a],n),{}),t}h2.exports=s9((t,e={})=>{let i="metadata";e.key&&(i=e.key);let n=[];return!e.fillExcept&&!e.fillWith&&(n.push("level"),n.push("message")),e.fillExcept&&(n=e.fillExcept),n.length>0?o9(t,n,i):e.fillWith?l9(t,e.fillWith,i):t})});var f2=w((sl,m2)=>{"use strict";var u9=Zi(),c9=kw();m2.exports=u9(t=>{let e=+new Date;return sl.diff=e-(sl.prevTime||e),sl.prevTime=e,t.ms=`+${c9(sl.diff)}`,t})});var C2=w((Qoe,v2)=>{"use strict";var p9=require("util").inspect,d9=Zi(),{LEVEL:h9,MESSAGE:w2,SPLAT:g9}=ri();v2.exports=d9((t,e={})=>{let i=Object.assign({},t);return delete i[h9],delete i[w2],delete i[g9],t[w2]=p9(i,!1,e.depth||null,e.colorize),t})});var A2=w((Yoe,fp)=>{"use strict";var{MESSAGE:m9}=ri(),mp=class{constructor(e){this.template=e}transform(e){return e[m9]=this.template(e),e}};fp.exports=t=>new mp(t);fp.exports.Printf=fp.exports.Format=mp});var P2=w((Xoe,y2)=>{"use strict";var f9=Zi(),{MESSAGE:b2}=ri(),w9=rl();y2.exports=f9(t=>{let e=w9(Object.assign({},t,{level:void 0,message:void 0,splat:void 0})),i=t.padding&&t.padding[t.level]||"";return e!=="{}"?t[b2]=`${t.level}:${i} ${t.message} ${e}`:t[b2]=`${t.level}:${i} ${t.message}`,t})});var O2=w((ele,S2)=>{"use strict";var v9=require("util"),{SPLAT:j2}=ri(),C9=/%[scdjifoO%]/g,A9=/%%/g,uC=class{constructor(e){this.options=e}_splat(e,i){let n=e.message,a=e[j2]||e.splat||[],r=n.match(A9),s=r&&r.length||0,l=i.length-s-a.length,u=l<0?a.splice(l,-1*l):[],c=u.length;if(c)for(let p=0;p1?n.splice(0):n,s=r.length;if(s)for(let o=0;onew uC(t)});var T2=w((wp,x2)=>{(function(t,e){typeof wp=="object"&&typeof x2<"u"?e(wp):typeof define=="function"&&define.amd?define(["exports"],e):e(t.fecha={})})(wp,(function(t){"use strict";var e=/d{1,4}|M{1,4}|YY(?:YY)?|S{1,3}|Do|ZZ|Z|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g,i="\\d\\d?",n="\\d\\d",a="\\d{3}",r="\\d{4}",s="[^\\s]+",o=/\[([^]*?)\]/gm;function l(S,R){for(var Ae=[],Se=0,I=S.length;Se-1?I:null}};function c(S){for(var R=[],Ae=1;Ae3?0:(S-S%10!==10?1:0)*S%10]}},f=c({},m),v=function(S){return f=c(f,S)},y=function(S){return S.replace(/[|\\{()[^$+*?.-]/g,"\\$&")},A=function(S,R){for(R===void 0&&(R=2),S=String(S);S.length0?"-":"+")+A(Math.floor(Math.abs(R)/60)*100+Math.abs(R)%60,4)},Z:function(S){var R=S.getTimezoneOffset();return(R>0?"-":"+")+A(Math.floor(Math.abs(R)/60),2)+":"+A(Math.abs(R)%60,2)}},O=function(S){return+S-1},$=[null,i],N=[null,s],X=["isPm",s,function(S,R){var Ae=S.toLowerCase();return Ae===R.amPm[0]?0:Ae===R.amPm[1]?1:null}],F=["timezoneOffset","[^\\s]*?[\\+\\-]\\d\\d:?\\d\\d|[^\\s]*?Z?",function(S){var R=(S+"").match(/([+-]|\d\d)/gi);if(R){var Ae=+R[1]*60+parseInt(R[2],10);return R[0]==="+"?Ae:-Ae}return 0}],k={D:["day",i],DD:["day",n],Do:["day",i+s,function(S){return parseInt(S,10)}],M:["month",i,O],MM:["month",n,O],YY:["year",n,function(S){var R=new Date,Ae=+(""+R.getFullYear()).substr(0,2);return+(""+(+S>68?Ae-1:Ae)+S)}],h:["hour",i,void 0,"isPm"],hh:["hour",n,void 0,"isPm"],H:["hour",i],HH:["hour",n],m:["minute",i],mm:["minute",n],s:["second",i],ss:["second",n],YYYY:["year",r],S:["millisecond","\\d",function(S){return+S*100}],SS:["millisecond",n,function(S){return+S*10}],SSS:["millisecond",a],d:$,dd:$,ddd:N,dddd:N,MMM:["month",s,u("monthNamesShort")],MMMM:["month",s,u("monthNames")],a:X,A:X,ZZ:F,Z:F},Q={default:"ddd MMM DD YYYY HH:mm:ss",shortDate:"M/D/YY",mediumDate:"MMM D, YYYY",longDate:"MMMM D, YYYY",fullDate:"dddd, MMMM D, YYYY",isoDate:"YYYY-MM-DD",isoDateTime:"YYYY-MM-DDTHH:mm:ssZ",shortTime:"HH:mm",mediumTime:"HH:mm:ss",longTime:"HH:mm:ss.SSS"},Z=function(S){return c(Q,S)},ie=function(S,R,Ae){if(R===void 0&&(R=Q.default),Ae===void 0&&(Ae={}),typeof S=="number"&&(S=new Date(S)),Object.prototype.toString.call(S)!=="[object Date]"||isNaN(S.getTime()))throw new Error("Invalid Date pass to format");R=Q[R]||R;var Se=[];R=R.replace(o,function(ei,Re){return Se.push(Re),"@@@"});var I=c(c({},f),Ae);return R=R.replace(e,function(ei){return b[ei](S,I)}),R.replace(/@@@/g,function(){return Se.shift()})};function se(S,R,Ae){if(Ae===void 0&&(Ae={}),typeof R!="string")throw new Error("Invalid format in fecha parse");if(R=Q[R]||R,S.length>1e3)return null;var Se=new Date,I={year:Se.getFullYear(),month:0,day:1,hour:0,minute:0,second:0,millisecond:0,isPm:null,timezoneOffset:null},ei=[],Re=[],Me=R.replace(o,function(wn,Ge){return Re.push(y(Ge)),"@@@"}),Oi={},vi={};Me=y(Me).replace(e,function(wn){var Ge=k[wn],Ya=Ge[0],gI=Ge[1],oy=Ge[3];if(Oi[Ya])throw new Error("Invalid format. "+Ya+" specified twice in format");return Oi[Ya]=!0,oy&&(vi[oy]=!0),ei.push(Ge),"("+gI+")"}),Object.keys(vi).forEach(function(wn){if(!Oi[wn])throw new Error("Invalid format. "+wn+" is required in specified format")}),Me=Me.replace(/@@@/g,function(){return Re.shift()});var nn=S.match(new RegExp(Me,"i"));if(!nn)return null;for(var G=c(c({},f),Ae),x=1;x11||I.month<0||I.day>31||I.day<1||I.hour>23||I.hour<0||I.minute>59||I.minute<0||I.second>59||I.second<0)return null;return pi}var De={format:ie,parse:se,defaultI18n:m,setGlobalDateI18n:v,setGlobalDateMasks:Z};t.assign=c,t.default=De,t.format=ie,t.parse=se,t.defaultI18n=m,t.setGlobalDateI18n=v,t.setGlobalDateMasks=Z,Object.defineProperty(t,"__esModule",{value:!0})}))});var E2=w((ile,M2)=>{"use strict";var b9=T2(),y9=Zi();M2.exports=y9((t,e={})=>(e.format&&(t.timestamp=typeof e.format=="function"?e.format():b9.format(new Date,e.format)),t.timestamp||(t.timestamp=new Date().toISOString()),e.alias&&(t[e.alias]=t.timestamp),t))});var q2=w((nle,k2)=>{"use strict";var cC=Fv(),P9=Zi(),{MESSAGE:pC}=ri();k2.exports=P9((t,e)=>(e.level!==!1&&(t.level=cC.strip(t.level)),e.message!==!1&&(t.message=cC.strip(String(t.message))),e.raw!==!1&&t[pC]&&(t[pC]=cC.strip(String(t[pC]))),t))});var hC=w(dC=>{"use strict";var j9=dC.format=Zi();dC.levels=Z_();function ji(t,e){Object.defineProperty(j9,t,{get(){return e()},configurable:!0})}ji("align",function(){return Q_()});ji("errors",function(){return e2()});ji("cli",function(){return n2()});ji("combine",function(){return a2()});ji("colorize",function(){return pp()});ji("json",function(){return lC()});ji("label",function(){return c2()});ji("logstash",function(){return d2()});ji("metadata",function(){return g2()});ji("ms",function(){return f2()});ji("padLevels",function(){return iC()});ji("prettyPrint",function(){return C2()});ji("printf",function(){return A2()});ji("simple",function(){return P2()});ji("splat",function(){return O2()});ji("timestamp",function(){return E2()});ji("uncolorize",function(){return q2()})});var gC=w(vp=>{"use strict";var{format:_2}=require("util");vp.warn={deprecated(t){return()=>{throw new Error(_2("{ %s } was removed in winston@3.0.0.",t))}},useFormat(t){return()=>{throw new Error([_2("{ %s } was removed in winston@3.0.0.",t),"Use a custom winston.format = winston.format(function) instead."].join(` +`))}},forFunctions(t,e,i){i.forEach(n=>{t[n]=vp.warn[e](n)})},forProperties(t,e,i){i.forEach(n=>{let a=vp.warn[e](n);Object.defineProperty(t,n,{get:a,set:a})})}}});var H2=w((rle,S9)=>{S9.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 I2=w((sle,R2)=>{R2.exports=require("util").deprecate});var mC=w((ole,z2)=>{z2.exports=require("stream")});var wC=w((lle,G2)=>{"use strict";function O9(t,e){var i=this,n=this._readableState&&this._readableState.destroyed,a=this._writableState&&this._writableState.destroyed;return n||a?(e?e(t):t&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(fC,this,t)):process.nextTick(fC,this,t)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(t||null,function(r){!e&&r?i._writableState?i._writableState.errorEmitted?process.nextTick(Cp,i):(i._writableState.errorEmitted=!0,process.nextTick(D2,i,r)):process.nextTick(D2,i,r):e?(process.nextTick(Cp,i),e(r)):process.nextTick(Cp,i)}),this)}function D2(t,e){fC(t,e),Cp(t)}function Cp(t){t._writableState&&!t._writableState.emitClose||t._readableState&&!t._readableState.emitClose||t.emit("close")}function x9(){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 fC(t,e){t.emit("error",e)}function T9(t,e){var i=t._readableState,n=t._writableState;i&&i.autoDestroy||n&&n.autoDestroy?t.destroy(e):t.emit("error",e)}G2.exports={destroy:O9,undestroy:x9,errorOrDestroy:T9}});var Ut=w((ule,U2)=>{"use strict";var N2={};function mn(t,e,i){i||(i=Error);function n(r,s,o){return typeof e=="string"?e:e(r,s,o)}class a extends i{constructor(s,o,l){super(n(s,o,l))}}a.prototype.name=i.name,a.prototype.code=t,N2[t]=a}function $2(t,e){if(Array.isArray(t)){let i=t.length;return t=t.map(n=>String(n)),i>2?`one of ${e} ${t.slice(0,i-1).join(", ")}, or `+t[i-1]:i===2?`one of ${e} ${t[0]} or ${t[1]}`:`of ${e} ${t[0]}`}else return`of ${e} ${String(t)}`}function M9(t,e,i){return t.substr(!i||i<0?0:+i,e.length)===e}function E9(t,e,i){return(i===void 0||i>t.length)&&(i=t.length),t.substring(i-e.length,i)===e}function k9(t,e,i){return typeof i!="number"&&(i=0),i+e.length>t.length?!1:t.indexOf(e,i)!==-1}mn("ERR_INVALID_OPT_VALUE",function(t,e){return'The value "'+e+'" is invalid for option "'+t+'"'},TypeError);mn("ERR_INVALID_ARG_TYPE",function(t,e,i){let n;typeof e=="string"&&M9(e,"not ")?(n="must not be",e=e.replace(/^not /,"")):n="must be";let a;if(E9(t," argument"))a=`The ${t} ${n} ${$2(e,"type")}`;else{let r=k9(t,".")?"property":"argument";a=`The "${t}" ${r} ${n} ${$2(e,"type")}`}return a+=`. Received type ${typeof i}`,a},TypeError);mn("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF");mn("ERR_METHOD_NOT_IMPLEMENTED",function(t){return"The "+t+" method is not implemented"});mn("ERR_STREAM_PREMATURE_CLOSE","Premature close");mn("ERR_STREAM_DESTROYED",function(t){return"Cannot call "+t+" after a stream was destroyed"});mn("ERR_MULTIPLE_CALLBACK","Callback called multiple times");mn("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable");mn("ERR_STREAM_WRITE_AFTER_END","write after end");mn("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);mn("ERR_UNKNOWN_ENCODING",function(t){return"Unknown encoding: "+t},TypeError);mn("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event");U2.exports.codes=N2});var vC=w((cle,L2)=>{"use strict";var q9=Ut().codes.ERR_INVALID_OPT_VALUE;function _9(t,e,i){return t.highWaterMark!=null?t.highWaterMark:e?t[i]:null}function H9(t,e,i,n){var a=_9(e,n,i);if(a!=null){if(!(isFinite(a)&&Math.floor(a)===a)||a<0){var r=n?i:"highWaterMark";throw new q9(r,a)}return Math.floor(a)}return t.objectMode?16:16*1024}L2.exports={getHighWaterMark:H9}});var W2=w((ple,CC)=>{typeof Object.create=="function"?CC.exports=function(e,i){i&&(e.super_=i,e.prototype=Object.create(i.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:CC.exports=function(e,i){if(i){e.super_=i;var n=function(){};n.prototype=i.prototype,e.prototype=new n,e.prototype.constructor=e}}});var is=w((dle,bC)=>{try{if(AC=require("util"),typeof AC.inherits!="function")throw"";bC.exports=AC.inherits}catch{bC.exports=W2()}var AC});var K2=w((hle,Z2)=>{"use strict";function B2(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),i.push.apply(i,n)}return i}function F2(t){for(var e=1;e0?this.tail.next=n:this.head=n,this.tail=n,++this.length}},{key:"unshift",value:function(i){var n={data:i,next:this.head};this.length===0&&(this.tail=n),this.head=n,++this.length}},{key:"shift",value:function(){if(this.length!==0){var i=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,i}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(i){if(this.length===0)return"";for(var n=this.head,a=""+n.data;n=n.next;)a+=i+n.data;return a}},{key:"concat",value:function(i){if(this.length===0)return Ap.alloc(0);for(var n=Ap.allocUnsafe(i>>>0),a=this.head,r=0;a;)U9(a.data,n,r),r+=a.data.length,a=a.next;return n}},{key:"consume",value:function(i,n){var a;return is.length?s.length:i;if(o===s.length?r+=s:r+=s.slice(0,i),i-=o,i===0){o===s.length?(++a,n.next?this.head=n.next:this.head=this.tail=null):(this.head=n,n.data=s.slice(o));break}++a}return this.length-=a,r}},{key:"_getBuffer",value:function(i){var n=Ap.allocUnsafe(i),a=this.head,r=1;for(a.data.copy(n),i-=a.data.length;a=a.next;){var s=a.data,o=i>s.length?s.length:i;if(s.copy(n,n.length-i,0,o),i-=o,i===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,n}},{key:N9,value:function(i,n){return yC(this,F2(F2({},n),{},{depth:0,customInspect:!1}))}}]),t})()});var X2=w((PC,Y2)=>{var bp=require("buffer"),Bn=bp.Buffer;function Q2(t,e){for(var i in t)e[i]=t[i]}Bn.from&&Bn.alloc&&Bn.allocUnsafe&&Bn.allocUnsafeSlow?Y2.exports=bp:(Q2(bp,PC),PC.Buffer=La);function La(t,e,i){return Bn(t,e,i)}La.prototype=Object.create(Bn.prototype);Q2(Bn,La);La.from=function(t,e,i){if(typeof t=="number")throw new TypeError("Argument must not be a number");return Bn(t,e,i)};La.alloc=function(t,e,i){if(typeof t!="number")throw new TypeError("Argument must be a number");var n=Bn(t);return e!==void 0?typeof i=="string"?n.fill(e,i):n.fill(e):n.fill(0),n};La.allocUnsafe=function(t){if(typeof t!="number")throw new TypeError("Argument must be a number");return Bn(t)};La.allocUnsafeSlow=function(t){if(typeof t!="number")throw new TypeError("Argument must be a number");return bp.SlowBuffer(t)}});var OC=w(i0=>{"use strict";var SC=X2().Buffer,e0=SC.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 L9(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 W9(t){var e=L9(t);if(typeof e!="string"&&(SC.isEncoding===e0||!e0(t)))throw new Error("Unknown encoding: "+t);return e||t}i0.StringDecoder=ol;function ol(t){this.encoding=W9(t);var e;switch(this.encoding){case"utf16le":this.text=K9,this.end=Q9,e=4;break;case"utf8":this.fillLast=V9,e=4;break;case"base64":this.text=Y9,this.end=X9,e=3;break;default:this.write=e6,this.end=i6;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=SC.allocUnsafe(e)}ol.prototype.write=function(t){if(t.length===0)return"";var e,i;if(this.lastNeed){if(e=this.fillLast(t),e===void 0)return"";i=this.lastNeed,this.lastNeed=0}else i=0;return i>5===6?2:t>>4===14?3:t>>3===30?4:t>>6===2?-1:-2}function B9(t,e,i){var n=e.length-1;if(n=0?(a>0&&(t.lastNeed=a-1),a):--n=0?(a>0&&(t.lastNeed=a-2),a):--n=0?(a>0&&(a===2?a=0:t.lastNeed=a-3),a):0))}function F9(t,e,i){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 V9(t){var e=this.lastTotal-this.lastNeed,i=F9(this,t,e);if(i!==void 0)return i;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 J9(t,e){var i=B9(this,t,e);if(!this.lastNeed)return t.toString("utf8",e);this.lastTotal=i;var n=t.length-(i-this.lastNeed);return t.copy(this.lastChar,0,n),t.toString("utf8",e,n)}function Z9(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+"\uFFFD":e}function K9(t,e){if((t.length-e)%2===0){var i=t.toString("utf16le",e);if(i){var n=i.charCodeAt(i.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1],i.slice(0,-1)}return i}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=t[t.length-1],t.toString("utf16le",e,t.length-1)}function Q9(t){var e=t&&t.length?this.write(t):"";if(this.lastNeed){var i=this.lastTotal-this.lastNeed;return e+this.lastChar.toString("utf16le",0,i)}return e}function Y9(t,e){var i=(t.length-e)%3;return i===0?t.toString("base64",e):(this.lastNeed=3-i,this.lastTotal=3,i===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-i))}function X9(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}function e6(t){return t.toString(this.encoding)}function i6(t){return t&&t.length?this.write(t):""}});var yp=w((mle,a0)=>{"use strict";var n0=Ut().codes.ERR_STREAM_PREMATURE_CLOSE;function n6(t){var e=!1;return function(){if(!e){e=!0;for(var i=arguments.length,n=new Array(i),a=0;a{"use strict";var Pp;function Lt(t,e,i){return e=r6(e),e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function r6(t){var e=s6(t,"string");return typeof e=="symbol"?e:String(e)}function s6(t,e){if(typeof t!="object"||t===null)return t;var i=t[Symbol.toPrimitive];if(i!==void 0){var n=i.call(t,e||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var o6=yp(),Wt=Symbol("lastResolve"),Wa=Symbol("lastReject"),ll=Symbol("error"),jp=Symbol("ended"),Ba=Symbol("lastPromise"),xC=Symbol("handlePromise"),Fa=Symbol("stream");function Bt(t,e){return{value:t,done:e}}function l6(t){var e=t[Wt];if(e!==null){var i=t[Fa].read();i!==null&&(t[Ba]=null,t[Wt]=null,t[Wa]=null,e(Bt(i,!1)))}}function u6(t){process.nextTick(l6,t)}function c6(t,e){return function(i,n){t.then(function(){if(e[jp]){i(Bt(void 0,!0));return}e[xC](i,n)},n)}}var p6=Object.getPrototypeOf(function(){}),d6=Object.setPrototypeOf((Pp={get stream(){return this[Fa]},next:function(){var e=this,i=this[ll];if(i!==null)return Promise.reject(i);if(this[jp])return Promise.resolve(Bt(void 0,!0));if(this[Fa].destroyed)return new Promise(function(s,o){process.nextTick(function(){e[ll]?o(e[ll]):s(Bt(void 0,!0))})});var n=this[Ba],a;if(n)a=new Promise(c6(n,this));else{var r=this[Fa].read();if(r!==null)return Promise.resolve(Bt(r,!1));a=new Promise(this[xC])}return this[Ba]=a,a}},Lt(Pp,Symbol.asyncIterator,function(){return this}),Lt(Pp,"return",function(){var e=this;return new Promise(function(i,n){e[Fa].destroy(null,function(a){if(a){n(a);return}i(Bt(void 0,!0))})})}),Pp),p6),h6=function(e){var i,n=Object.create(d6,(i={},Lt(i,Fa,{value:e,writable:!0}),Lt(i,Wt,{value:null,writable:!0}),Lt(i,Wa,{value:null,writable:!0}),Lt(i,ll,{value:null,writable:!0}),Lt(i,jp,{value:e._readableState.endEmitted,writable:!0}),Lt(i,xC,{value:function(r,s){var o=n[Fa].read();o?(n[Ba]=null,n[Wt]=null,n[Wa]=null,r(Bt(o,!1))):(n[Wt]=r,n[Wa]=s)},writable:!0}),i));return n[Ba]=null,o6(e,function(a){if(a&&a.code!=="ERR_STREAM_PREMATURE_CLOSE"){var r=n[Wa];r!==null&&(n[Ba]=null,n[Wt]=null,n[Wa]=null,r(a)),n[ll]=a;return}var s=n[Wt];s!==null&&(n[Ba]=null,n[Wt]=null,n[Wa]=null,s(Bt(void 0,!0))),n[jp]=!0}),e.on("readable",u6.bind(null,n)),n};r0.exports=h6});var c0=w((wle,u0)=>{"use strict";function o0(t,e,i,n,a,r,s){try{var o=t[r](s),l=o.value}catch(u){i(u);return}o.done?e(l):Promise.resolve(l).then(n,a)}function g6(t){return function(){var e=this,i=arguments;return new Promise(function(n,a){var r=t.apply(e,i);function s(l){o0(r,n,a,s,o,"next",l)}function o(l){o0(r,n,a,s,o,"throw",l)}s(void 0)})}}function l0(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),i.push.apply(i,n)}return i}function m6(t){for(var e=1;e{"use strict";A0.exports=je;var ns;je.ReadableState=g0;var vle=require("events").EventEmitter,h0=function(e,i){return e.listeners(i).length},cl=mC(),Sp=require("buffer").Buffer,b6=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function y6(t){return Sp.from(t)}function P6(t){return Sp.isBuffer(t)||t instanceof b6}var TC=require("util"),ue;TC&&TC.debuglog?ue=TC.debuglog("stream"):ue=function(){};var j6=K2(),RC=wC(),S6=vC(),O6=S6.getHighWaterMark,Op=Ut().codes,x6=Op.ERR_INVALID_ARG_TYPE,T6=Op.ERR_STREAM_PUSH_AFTER_EOF,M6=Op.ERR_METHOD_NOT_IMPLEMENTED,E6=Op.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,ts,MC,EC;is()(je,cl);var ul=RC.errorOrDestroy,kC=["error","close","destroy","pause","resume"];function k6(t,e,i){if(typeof t.prependListener=="function")return t.prependListener(e,i);!t._events||!t._events[e]?t.on(e,i):Array.isArray(t._events[e])?t._events[e].unshift(i):t._events[e]=[i,t._events[e]]}function g0(t,e,i){ns=ns||Va(),t=t||{},typeof i!="boolean"&&(i=e instanceof ns),this.objectMode=!!t.objectMode,i&&(this.objectMode=this.objectMode||!!t.readableObjectMode),this.highWaterMark=O6(this,t,"readableHighWaterMark",i),this.buffer=new j6,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&&(ts||(ts=OC().StringDecoder),this.decoder=new ts(t.encoding),this.encoding=t.encoding)}function je(t){if(ns=ns||Va(),!(this instanceof je))return new je(t);var e=this instanceof ns;this._readableState=new g0(t,this,e),this.readable=!0,t&&(typeof t.read=="function"&&(this._read=t.read),typeof t.destroy=="function"&&(this._destroy=t.destroy)),cl.call(this)}Object.defineProperty(je.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}});je.prototype.destroy=RC.destroy;je.prototype._undestroy=RC.undestroy;je.prototype._destroy=function(t,e){e(t)};je.prototype.push=function(t,e){var i=this._readableState,n;return i.objectMode?n=!0:typeof t=="string"&&(e=e||i.defaultEncoding,e!==i.encoding&&(t=Sp.from(t,e),e=""),n=!0),m0(this,t,e,!1,n)};je.prototype.unshift=function(t){return m0(this,t,null,!0,!1)};function m0(t,e,i,n,a){ue("readableAddChunk",e);var r=t._readableState;if(e===null)r.reading=!1,H6(t,r);else{var s;if(a||(s=q6(r,e)),s)ul(t,s);else if(r.objectMode||e&&e.length>0)if(typeof e!="string"&&!r.objectMode&&Object.getPrototypeOf(e)!==Sp.prototype&&(e=y6(e)),n)r.endEmitted?ul(t,new E6):qC(t,r,e,!0);else if(r.ended)ul(t,new T6);else{if(r.destroyed)return!1;r.reading=!1,r.decoder&&!i?(e=r.decoder.write(e),r.objectMode||e.length!==0?qC(t,r,e,!1):HC(t,r)):qC(t,r,e,!1)}else n||(r.reading=!1,HC(t,r))}return!r.ended&&(r.length=p0?t=p0:(t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++),t}function d0(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=_6(t)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0))}je.prototype.read=function(t){ue("read",t),t=parseInt(t,10);var e=this._readableState,i=t;if(t!==0&&(e.emittedReadable=!1),t===0&&e.needReadable&&((e.highWaterMark!==0?e.length>=e.highWaterMark:e.length>0)||e.ended))return ue("read: emitReadable",e.length,e.ended),e.length===0&&e.ended?_C(this):xp(this),null;if(t=d0(t,e),t===0&&e.ended)return e.length===0&&_C(this),null;var n=e.needReadable;ue("need readable",n),(e.length===0||e.length-t0?a=v0(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),i!==t&&e.ended&&_C(this)),a!==null&&this.emit("data",a),a};function H6(t,e){if(ue("onEofChunk"),!e.ended){if(e.decoder){var i=e.decoder.end();i&&i.length&&(e.buffer.push(i),e.length+=e.objectMode?1:i.length)}e.ended=!0,e.sync?xp(t):(e.needReadable=!1,e.emittedReadable||(e.emittedReadable=!0,f0(t)))}}function xp(t){var e=t._readableState;ue("emitReadable",e.needReadable,e.emittedReadable),e.needReadable=!1,e.emittedReadable||(ue("emitReadable",e.flowing),e.emittedReadable=!0,process.nextTick(f0,t))}function f0(t){var e=t._readableState;ue("emitReadable_",e.destroyed,e.length,e.ended),!e.destroyed&&(e.length||e.ended)&&(t.emit("readable"),e.emittedReadable=!1),e.needReadable=!e.flowing&&!e.ended&&e.length<=e.highWaterMark,IC(t)}function HC(t,e){e.readingMore||(e.readingMore=!0,process.nextTick(R6,t,e))}function R6(t,e){for(;!e.reading&&!e.ended&&(e.length1&&C0(n.pipes,t)!==-1)&&!u&&(ue("false write response, pause",n.awaitDrain),n.awaitDrain++),i.pause())}function d(f){ue("onerror",f),m(),t.removeListener("error",d),h0(t,"error")===0&&ul(t,f)}k6(t,"error",d);function h(){t.removeListener("finish",g),m()}t.once("close",h);function g(){ue("onfinish"),t.removeListener("close",h),m()}t.once("finish",g);function m(){ue("unpipe"),i.unpipe(t)}return t.emit("pipe",i),n.flowing||(ue("pipe resume"),i.resume()),t};function I6(t){return function(){var i=t._readableState;ue("pipeOnDrain",i.awaitDrain),i.awaitDrain&&i.awaitDrain--,i.awaitDrain===0&&h0(t,"data")&&(i.flowing=!0,IC(t))}}je.prototype.unpipe=function(t){var e=this._readableState,i={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,i),this);if(!t){var n=e.pipes,a=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var r=0;r0,n.flowing!==!1&&this.resume()):t==="readable"&&!n.endEmitted&&!n.readableListening&&(n.readableListening=n.needReadable=!0,n.flowing=!1,n.emittedReadable=!1,ue("on readable",n.length,n.reading),n.length?xp(this):n.reading||process.nextTick(z6,this)),i};je.prototype.addListener=je.prototype.on;je.prototype.removeListener=function(t,e){var i=cl.prototype.removeListener.call(this,t,e);return t==="readable"&&process.nextTick(w0,this),i};je.prototype.removeAllListeners=function(t){var e=cl.prototype.removeAllListeners.apply(this,arguments);return(t==="readable"||t===void 0)&&process.nextTick(w0,this),e};function w0(t){var e=t._readableState;e.readableListening=t.listenerCount("readable")>0,e.resumeScheduled&&!e.paused?e.flowing=!0:t.listenerCount("data")>0&&t.resume()}function z6(t){ue("readable nexttick read 0"),t.read(0)}je.prototype.resume=function(){var t=this._readableState;return t.flowing||(ue("resume"),t.flowing=!t.readableListening,D6(this,t)),t.paused=!1,this};function D6(t,e){e.resumeScheduled||(e.resumeScheduled=!0,process.nextTick(G6,t,e))}function G6(t,e){ue("resume",e.reading),e.reading||t.read(0),e.resumeScheduled=!1,t.emit("resume"),IC(t),e.flowing&&!e.reading&&t.read(0)}je.prototype.pause=function(){return ue("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(ue("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function IC(t){var e=t._readableState;for(ue("flow",e.flowing);e.flowing&&t.read()!==null;);}je.prototype.wrap=function(t){var e=this,i=this._readableState,n=!1;t.on("end",function(){if(ue("wrapped end"),i.decoder&&!i.ended){var s=i.decoder.end();s&&s.length&&e.push(s)}e.push(null)}),t.on("data",function(s){if(ue("wrapped data"),i.decoder&&(s=i.decoder.write(s)),!(i.objectMode&&s==null)&&!(!i.objectMode&&(!s||!s.length))){var o=e.push(s);o||(n=!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?i=e.buffer.join(""):e.buffer.length===1?i=e.buffer.first():i=e.buffer.concat(e.length),e.buffer.clear()):i=e.buffer.consume(t,e.decoder),i}function _C(t){var e=t._readableState;ue("endReadable",e.endEmitted),e.endEmitted||(e.ended=!0,process.nextTick($6,e,t))}function $6(t,e){if(ue("endReadableNT",t.endEmitted,t.length),!t.endEmitted&&t.length===0&&(t.endEmitted=!0,e.readable=!1,e.emit("end"),t.autoDestroy)){var i=e._writableState;(!i||i.autoDestroy&&i.finished)&&e.destroy()}}typeof Symbol=="function"&&(je.from=function(t,e){return EC===void 0&&(EC=c0()),EC(je,t,e)});function C0(t,e){for(var i=0,n=t.length;i{"use strict";var N6=Object.keys||function(t){var e=[];for(var i in t)e.push(i);return e};y0.exports=Fn;var b0=zC(),GC=Ep();is()(Fn,b0);for(DC=N6(GC.prototype),Tp=0;Tp{"use strict";T0.exports=Ye;function j0(t){var e=this;this.next=null,this.entry=null,this.finish=function(){fQ(e,t)}}var as;Ye.WritableState=dl;var W6={deprecate:I2()},S0=mC(),qp=require("buffer").Buffer,B6=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function F6(t){return qp.from(t)}function V6(t){return qp.isBuffer(t)||t instanceof B6}var NC=wC(),J6=vC(),Z6=J6.getHighWaterMark,Ft=Ut().codes,K6=Ft.ERR_INVALID_ARG_TYPE,Q6=Ft.ERR_METHOD_NOT_IMPLEMENTED,Y6=Ft.ERR_MULTIPLE_CALLBACK,X6=Ft.ERR_STREAM_CANNOT_PIPE,eQ=Ft.ERR_STREAM_DESTROYED,iQ=Ft.ERR_STREAM_NULL_VALUES,nQ=Ft.ERR_STREAM_WRITE_AFTER_END,tQ=Ft.ERR_UNKNOWN_ENCODING,rs=NC.errorOrDestroy;is()(Ye,S0);function aQ(){}function dl(t,e,i){as=as||Va(),t=t||{},typeof i!="boolean"&&(i=e instanceof as),this.objectMode=!!t.objectMode,i&&(this.objectMode=this.objectMode||!!t.writableObjectMode),this.highWaterMark=Z6(this,t,"writableHighWaterMark",i),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var n=t.decodeStrings===!1;this.decodeStrings=!n,this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(a){pQ(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 j0(this)}dl.prototype.getBuffer=function(){for(var e=this.bufferedRequest,i=[];e;)i.push(e),e=e.next;return i};(function(){try{Object.defineProperty(dl.prototype,"buffer",{get:W6.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}})();var kp;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(kp=Function.prototype[Symbol.hasInstance],Object.defineProperty(Ye,Symbol.hasInstance,{value:function(e){return kp.call(this,e)?!0:this!==Ye?!1:e&&e._writableState instanceof dl}})):kp=function(e){return e instanceof this};function Ye(t){as=as||Va();var e=this instanceof as;if(!e&&!kp.call(Ye,this))return new Ye(t);this._writableState=new dl(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)),S0.call(this)}Ye.prototype.pipe=function(){rs(this,new X6)};function rQ(t,e){var i=new nQ;rs(t,i),process.nextTick(e,i)}function sQ(t,e,i,n){var a;return i===null?a=new iQ:typeof i!="string"&&!e.objectMode&&(a=new K6("chunk",["string","Buffer"],i)),a?(rs(t,a),process.nextTick(n,a),!1):!0}Ye.prototype.write=function(t,e,i){var n=this._writableState,a=!1,r=!n.objectMode&&V6(t);return r&&!qp.isBuffer(t)&&(t=F6(t)),typeof e=="function"&&(i=e,e=null),r?e="buffer":e||(e=n.defaultEncoding),typeof i!="function"&&(i=aQ),n.ending?rQ(this,i):(r||sQ(this,n,t,i))&&(n.pendingcb++,a=lQ(this,n,r,t,e,i)),a};Ye.prototype.cork=function(){this._writableState.corked++};Ye.prototype.uncork=function(){var t=this._writableState;t.corked&&(t.corked--,!t.writing&&!t.corked&&!t.bufferProcessing&&t.bufferedRequest&&O0(this,t))};Ye.prototype.setDefaultEncoding=function(e){if(typeof e=="string"&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new tQ(e);return this._writableState.defaultEncoding=e,this};Object.defineProperty(Ye.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function oQ(t,e,i){return!t.objectMode&&t.decodeStrings!==!1&&typeof e=="string"&&(e=qp.from(e,i)),e}Object.defineProperty(Ye.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function lQ(t,e,i,n,a,r){if(!i){var s=oQ(e,n,a);n!==s&&(i=!0,a="buffer",n=s)}var o=e.objectMode?1:n.length;e.length+=o;var l=e.length{"use strict";var wQ=require("util"),M0=Ep(),{LEVEL:E0}=ri(),hl=k0.exports=function(e={}){M0.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",i=>{this.levels=i.levels,this.parent=i}),this.once("unpipe",i=>{i===this.parent&&(this.parent=null,this.close&&this.close())})};wQ.inherits(hl,M0);hl.prototype._write=function(e,i,n){if(this.silent||e.exception===!0&&!this.handleExceptions)return n(null);let a=this.level||this.parent&&this.parent.level;if(!a||this.levels[a]>=this.levels[e[E0]]){if(e&&!this.format)return this.log(e,n);let r,s;try{s=this.format.transform(Object.assign({},e),this.format.options)}catch(o){r=o}if(r||!s){if(n(),r)throw r;return}return this.log(s,n)}return this._writableState.sync=!1,n(null)};hl.prototype._writev=function(e,i){if(this.logv){let n=e.filter(this._accept,this);return n.length?this.logv(n,i):i(null)}for(let n=0;n=this.levels[i[E0]])&&(this.handleExceptions||i.exception!==!0))};hl.prototype._nop=function(){}});var WC=w((Ple,_0)=>{"use strict";var vQ=require("util"),{LEVEL:LC}=ri(),q0=UC(),gl=_0.exports=function(e={}){if(q0.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 i(n){this.emit("error",n,this.transport)}this.transport.__winstonError||(this.transport.__winstonError=i.bind(this),this.transport.on("error",this.transport.__winstonError))};vQ.inherits(gl,q0);gl.prototype._write=function(e,i,n){if(this.silent||e.exception===!0&&!this.handleExceptions)return n(null);(!this.level||this.levels[this.level]>=this.levels[e[LC]])&&this.transport.log(e[LC],e.message,e,this._nop),n(null)};gl.prototype._writev=function(e,i){for(let n=0;n{"use strict";BC.exports=UC();BC.exports.LegacyTransportStream=WC()});var I0=w((Ole,R0)=>{"use strict";var CQ=require("os"),{LEVEL:H0,MESSAGE:os}=ri(),AQ=ss();R0.exports=class extends AQ{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:CQ.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,i){if(setImmediate(()=>this.emit("logged",e)),this.stderrLevels[e[H0]]){console._stderr&&!this.forceConsole?console._stderr.write(`${e[os]}${this.eol}`):this._consoleError(e[os]),i&&i();return}else if(this.consoleWarnLevels[e[H0]]){console._stderr&&!this.forceConsole?console._stderr.write(`${e[os]}${this.eol}`):this._consoleWarn(e[os]),i&&i();return}console._stdout&&!this.forceConsole?console._stdout.write(`${e[os]}${this.eol}`):this._consoleLog(e[os]),i&&i()}_stringArrayToSet(e,i){if(!e)return{};if(i=i||"Cannot make set from type other than Array of string elements",!Array.isArray(e))throw new Error(i);return e.reduce((n,a)=>{if(typeof a!="string")throw new Error(i);return n[a]=!0,n},{})}}});var Hp=w((_p,z0)=>{"use strict";Object.defineProperty(_p,"__esModule",{value:!0});_p.default=bQ;function bQ(t){return t&&typeof t.length=="number"&&t.length>=0&&t.length%1===0}z0.exports=_p.default});var G0=w((Rp,D0)=>{"use strict";Object.defineProperty(Rp,"__esModule",{value:!0});Rp.default=function(t){return function(...e){var i=e.pop();return t.call(this,e,i)}};D0.exports=Rp.default});var U0=w(Vt=>{"use strict";Object.defineProperty(Vt,"__esModule",{value:!0});Vt.fallback=$0;Vt.wrap=N0;var yQ=Vt.hasQueueMicrotask=typeof queueMicrotask=="function"&&queueMicrotask,PQ=Vt.hasSetImmediate=typeof setImmediate=="function"&&setImmediate,jQ=Vt.hasNextTick=typeof process=="object"&&typeof process.nextTick=="function";function $0(t){setTimeout(t,0)}function N0(t){return(e,...i)=>t(()=>e(...i))}var ml;yQ?ml=queueMicrotask:PQ?ml=setImmediate:jQ?ml=process.nextTick:ml=$0;Vt.default=N0(ml)});var V0=w((Ip,F0)=>{"use strict";Object.defineProperty(Ip,"__esModule",{value:!0});Ip.default=EQ;var SQ=G0(),OQ=B0(SQ),xQ=U0(),TQ=B0(xQ),MQ=Ja();function B0(t){return t&&t.__esModule?t:{default:t}}function EQ(t){return(0,MQ.isAsync)(t)?function(...e){let i=e.pop(),n=t.apply(this,e);return L0(n,i)}:(0,OQ.default)(function(e,i){var n;try{n=t.apply(this,e)}catch(a){return i(a)}if(n&&typeof n.then=="function")return L0(n,i);i(null,n)})}function L0(t,e){return t.then(i=>{W0(e,null,i)},i=>{W0(e,i&&(i instanceof Error||i.message)?i:new Error(i))})}function W0(t,e,i){try{t(e,i)}catch(n){(0,TQ.default)(a=>{throw a},n)}}F0.exports=Ip.default});var Ja=w(pt=>{"use strict";Object.defineProperty(pt,"__esModule",{value:!0});pt.isAsyncIterable=pt.isAsyncGenerator=pt.isAsync=void 0;var kQ=V0(),qQ=_Q(kQ);function _Q(t){return t&&t.__esModule?t:{default:t}}function J0(t){return t[Symbol.toStringTag]==="AsyncFunction"}function HQ(t){return t[Symbol.toStringTag]==="AsyncGenerator"}function RQ(t){return typeof t[Symbol.asyncIterator]=="function"}function IQ(t){if(typeof t!="function")throw new Error("expected a function");return J0(t)?(0,qQ.default)(t):t}pt.default=IQ;pt.isAsync=J0;pt.isAsyncGenerator=HQ;pt.isAsyncIterable=RQ});var ls=w((zp,Z0)=>{"use strict";Object.defineProperty(zp,"__esModule",{value:!0});zp.default=zQ;function zQ(t,e){if(e||(e=t.length),!e)throw new Error("arity is undefined");function i(...n){return typeof n[e-1]=="function"?t.apply(this,n):new Promise((a,r)=>{n[e-1]=(s,...o)=>{if(s)return r(s);a(o.length>1?o:o[0])},t.apply(this,n)})}return i}Z0.exports=zp.default});var Q0=w((Dp,K0)=>{"use strict";Object.defineProperty(Dp,"__esModule",{value:!0});var DQ=Hp(),GQ=FC(DQ),$Q=Ja(),NQ=FC($Q),UQ=ls(),LQ=FC(UQ);function FC(t){return t&&t.__esModule?t:{default:t}}Dp.default=(0,LQ.default)((t,e,i)=>{var n=(0,GQ.default)(e)?[]:{};t(e,(a,r,s)=>{(0,NQ.default)(a)((o,...l)=>{l.length<2&&([l]=l),n[r]=l,s(o)})},a=>i(a,n))},3);K0.exports=Dp.default});var VC=w((Gp,Y0)=>{"use strict";Object.defineProperty(Gp,"__esModule",{value:!0});Gp.default=WQ;function WQ(t){function e(...i){if(t!==null){var n=t;t=null,n.apply(this,i)}}return Object.assign(e,t),e}Y0.exports=Gp.default});var eH=w(($p,X0)=>{"use strict";Object.defineProperty($p,"__esModule",{value:!0});$p.default=function(t){return t[Symbol.iterator]&&t[Symbol.iterator]()};X0.exports=$p.default});var tH=w((Np,nH)=>{"use strict";Object.defineProperty(Np,"__esModule",{value:!0});Np.default=YQ;var BQ=Hp(),FQ=iH(BQ),VQ=eH(),JQ=iH(VQ);function iH(t){return t&&t.__esModule?t:{default:t}}function ZQ(t){var e=-1,i=t.length;return function(){return++e{"use strict";Object.defineProperty(Up,"__esModule",{value:!0});Up.default=XQ;function XQ(t){return function(...e){if(t===null)throw new Error("Callback was already called.");var i=t;t=null,i.apply(this,e)}}aH.exports=Up.default});var Wp=w((Lp,rH)=>{"use strict";Object.defineProperty(Lp,"__esModule",{value:!0});var e8={};Lp.default=e8;rH.exports=Lp.default});var oH=w((Bp,sH)=>{"use strict";Object.defineProperty(Bp,"__esModule",{value:!0});Bp.default=a8;var i8=Wp(),n8=t8(i8);function t8(t){return t&&t.__esModule?t:{default:t}}function a8(t,e,i,n){let a=!1,r=!1,s=!1,o=0,l=0;function u(){o>=e||s||a||(s=!0,t.next().then(({value:d,done:h})=>{if(!(r||a)){if(s=!1,h){a=!0,o<=0&&n(null);return}o++,i(d,l,c),l++,u()}}).catch(p))}function c(d,h){if(o-=1,!r){if(d)return p(d);if(d===!1){a=!0,r=!0;return}if(h===n8.default||a&&o<=0)return a=!0,n(null);u()}}function p(d){r||(s=!1,a=!0,n(d))}u()}sH.exports=Bp.default});var pH=w((Fp,cH)=>{"use strict";Object.defineProperty(Fp,"__esModule",{value:!0});var r8=VC(),s8=fl(r8),o8=tH(),l8=fl(o8),u8=JC(),c8=fl(u8),lH=Ja(),p8=oH(),uH=fl(p8),d8=Wp(),h8=fl(d8);function fl(t){return t&&t.__esModule?t:{default:t}}Fp.default=t=>(e,i,n)=>{if(n=(0,s8.default)(n),t<=0)throw new RangeError("concurrency limit cannot be less than 1");if(!e)return n(null);if((0,lH.isAsyncGenerator)(e))return(0,uH.default)(e,t,i,n);if((0,lH.isAsyncIterable)(e))return(0,uH.default)(e[Symbol.asyncIterator](),t,i,n);var a=(0,l8.default)(e),r=!1,s=!1,o=0,l=!1;function u(p,d){if(!s)if(o-=1,p)r=!0,n(p);else if(p===!1)r=!0,s=!0;else{if(d===h8.default||r&&o<=0)return r=!0,n(null);l||c()}}function c(){for(l=!0;o{"use strict";Object.defineProperty(Vp,"__esModule",{value:!0});var g8=pH(),m8=ZC(g8),f8=Ja(),w8=ZC(f8),v8=ls(),C8=ZC(v8);function ZC(t){return t&&t.__esModule?t:{default:t}}function A8(t,e,i,n){return(0,m8.default)(e)(t,(0,w8.default)(i),n)}Vp.default=(0,C8.default)(A8,4);dH.exports=Vp.default});var mH=w((Jp,gH)=>{"use strict";Object.defineProperty(Jp,"__esModule",{value:!0});var b8=KC(),y8=hH(b8),P8=ls(),j8=hH(P8);function hH(t){return t&&t.__esModule?t:{default:t}}function S8(t,e,i){return(0,y8.default)(t,1,e,i)}Jp.default=(0,j8.default)(S8,3);gH.exports=Jp.default});var vH=w((Zp,wH)=>{"use strict";Object.defineProperty(Zp,"__esModule",{value:!0});Zp.default=E8;var O8=Q0(),x8=fH(O8),T8=mH(),M8=fH(T8);function fH(t){return t&&t.__esModule?t:{default:t}}function E8(t,e){return(0,x8.default)(M8.default,t,e)}wH.exports=Zp.default});var QC=w((Mle,AH)=>{"use strict";AH.exports=dt;var Kp=Ut().codes,k8=Kp.ERR_METHOD_NOT_IMPLEMENTED,q8=Kp.ERR_MULTIPLE_CALLBACK,_8=Kp.ERR_TRANSFORM_ALREADY_TRANSFORMING,H8=Kp.ERR_TRANSFORM_WITH_LENGTH_0,Qp=Va();is()(dt,Qp);function R8(t,e){var i=this._transformState;i.transforming=!1;var n=i.writecb;if(n===null)return this.emit("error",new q8);i.writechunk=null,i.writecb=null,e!=null&&this.push(e),n(t);var a=this._readableState;a.reading=!1,(a.needReadable||a.length{"use strict";yH.exports=wl;var bH=QC();is()(wl,bH);function wl(t){if(!(this instanceof wl))return new wl(t);bH.call(this,t)}wl.prototype._transform=function(t,e,i){i(null,t)}});var TH=w((kle,xH)=>{"use strict";var YC;function z8(t){var e=!1;return function(){e||(e=!0,t.apply(void 0,arguments))}}var OH=Ut().codes,D8=OH.ERR_MISSING_ARGS,G8=OH.ERR_STREAM_DESTROYED;function jH(t){if(t)throw t}function $8(t){return t.setHeader&&typeof t.abort=="function"}function N8(t,e,i,n){n=z8(n);var a=!1;t.on("close",function(){a=!0}),YC===void 0&&(YC=yp()),YC(t,{readable:e,writable:i},function(s){if(s)return n(s);a=!0,n()});var r=!1;return function(s){if(!a&&!r){if(r=!0,$8(t))return t.abort();if(typeof t.destroy=="function")return t.destroy();n(s||new G8("pipe"))}}}function SH(t){t()}function U8(t,e){return t.pipe(e)}function L8(t){return!t.length||typeof t[t.length-1]!="function"?jH:t.pop()}function W8(){for(var t=arguments.length,e=new Array(t),i=0;i0;return N8(s,l,u,function(c){a||(a=c),c&&r.forEach(SH),!l&&(r.forEach(SH),n(a))})});return e.reduce(U8)}xH.exports=W8});var Za=w((fn,Cl)=>{var vl=require("stream");process.env.READABLE_STREAM==="disable"&&vl?(Cl.exports=vl.Readable,Object.assign(Cl.exports,vl),Cl.exports.Stream=vl):(fn=Cl.exports=zC(),fn.Stream=vl||fn,fn.Readable=fn,fn.Writable=Ep(),fn.Duplex=Va(),fn.Transform=QC(),fn.PassThrough=PH(),fn.finished=yp(),fn.pipeline=TH())});var rA=w((qle,EH)=>{var us=[],Al=[],XC=function(){};function iA(t){return~us.indexOf(t)?!1:(us.push(t),!0)}function nA(t){XC=t}function B8(t){for(var e=[],i=0;i{var J8=rA(),Z8=J8(function t(e,i){return i=i||{},i.namespace=e,i.prod=!0,i.dev=!1,i.force||t.force?t.yep(i):t.nope(i)});kH.exports=Z8});var DH=w((Hle,zH)=>{"use strict";var Vn={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]},HH=Object.create(null);for(let t in Vn)Object.hasOwn(Vn,t)&&(HH[Vn[t]]=t);var ci={to:{},get:{}};ci.get=function(t){let e=t.slice(0,3).toLowerCase(),i,n;switch(e){case"hsl":{i=ci.get.hsl(t),n="hsl";break}case"hwb":{i=ci.get.hwb(t),n="hwb";break}default:{i=ci.get.rgb(t),n="rgb";break}}return i?{model:n,value:i}:null};ci.get.rgb=function(t){if(!t)return null;let e=/^#([a-f\d]{3,4})$/i,i=/^#([a-f\d]{6})([a-f\d]{2})?$/i,n=/^rgba?\(\s*([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)\s*(?:[\s,|/]\s*([+-]?[\d.]+)(%?)\s*)?\)$/,a=/^rgba?\(\s*([+-]?[\d.]+)%\s*,?\s*([+-]?[\d.]+)%\s*,?\s*([+-]?[\d.]+)%\s*(?:[\s,|/]\s*([+-]?[\d.]+)(%?)\s*)?\)$/,r=/^(\w+)$/,s=[0,0,0,1],o,l,u;if(o=t.match(i)){for(u=o[2],o=o[1],l=0;l<3;l++){let c=l*2;s[l]=Number.parseInt(o.slice(c,c+2),16)}u&&(s[3]=Number.parseInt(u,16)/255)}else if(o=t.match(e)){for(o=o[1],u=o[3],l=0;l<3;l++)s[l]=Number.parseInt(o[l]+o[l],16);u&&(s[3]=Number.parseInt(u+u,16)/255)}else if(o=t.match(n)){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(Vn,o[1])?(s=Vn[o[1]],s[3]=1,s):null:null;for(l=0;l<3;l++)s[l]=Jt(s[l],0,255);return s[3]=Jt(s[3],0,1),s};ci.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*)?\)$/,i=t.match(e);if(i){let n=Number.parseFloat(i[4]),a=(Number.parseFloat(i[1])%360+360)%360,r=Jt(Number.parseFloat(i[2]),0,100),s=Jt(Number.parseFloat(i[3]),0,100),o=Jt(Number.isNaN(n)?1:n,0,1);return[a,r,s,o]}return null};ci.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*)?\)$/,i=t.match(e);if(i){let n=Number.parseFloat(i[4]),a=(Number.parseFloat(i[1])%360+360)%360,r=Jt(Number.parseFloat(i[2]),0,100),s=Jt(Number.parseFloat(i[3]),0,100),o=Jt(Number.isNaN(n)?1:n,0,1);return[a,r,s,o]}return null};ci.to.hex=function(...t){return"#"+Yp(t[0])+Yp(t[1])+Yp(t[2])+(t[3]<1?Yp(Math.round(t[3]*255)):"")};ci.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]+")"};ci.to.rgb.percent=function(...t){let e=Math.round(t[0]/255*100),i=Math.round(t[1]/255*100),n=Math.round(t[2]/255*100);return t.length<4||t[3]===1?"rgb("+e+"%, "+i+"%, "+n+"%)":"rgba("+e+"%, "+i+"%, "+n+"%, "+t[3]+")"};ci.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]+")"};ci.to.hwb=function(...t){let e="";return t.length>=4&&t[3]!==1&&(e=", "+t[3]),"hwb("+t[0]+", "+t[1]+"%, "+t[2]+"%"+e+")"};ci.to.keyword=function(...t){return HH[t.slice(0,3)]};function Jt(t,e,i){return Math.min(Math.max(e,t),i)}function Yp(t){let e=Math.round(t).toString(16).toUpperCase();return e.length<2?"0"+e:e}var RH={};for(let t of Object.keys(Vn))RH[Vn[t]]=t;var H={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},oklab:{channels:3,labels:["okl","oka","okb"]},lch:{channels:3,labels:"lch"},oklch:{channels:3,labels:["okl","okc","okh"]},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}},ht=(6/29)**3;function cs(t){let e=t>.0031308?1.055*t**.4166666666666667-.055:t*12.92;return Math.min(Math.max(0,e),1)}function ps(t){return t>.04045?((t+.055)/1.055)**2.4:t/12.92}for(let t of Object.keys(H)){if(!("channels"in H[t]))throw new Error("missing channels property: "+t);if(!("labels"in H[t]))throw new Error("missing channel labels property: "+t);if(H[t].labels.length!==H[t].channels)throw new Error("channel and label counts mismatch: "+t);let{channels:e,labels:i}=H[t];delete H[t].channels,delete H[t].labels,Object.defineProperty(H[t],"channels",{value:e}),Object.defineProperty(H[t],"labels",{value:i})}H.rgb.hsl=function(t){let e=t[0]/255,i=t[1]/255,n=t[2]/255,a=Math.min(e,i,n),r=Math.max(e,i,n),s=r-a,o,l;switch(r){case a:{o=0;break}case e:{o=(i-n)/s;break}case i:{o=2+(n-e)/s;break}case n:{o=4+(e-i)/s;break}}o=Math.min(o*60,360),o<0&&(o+=360);let u=(a+r)/2;return r===a?l=0:u<=.5?l=s/(r+a):l=s/(2-r-a),[o,l*100,u*100]};H.rgb.hsv=function(t){let e,i,n,a,r,s=t[0]/255,o=t[1]/255,l=t[2]/255,u=Math.max(s,o,l),c=u-Math.min(s,o,l),p=function(d){return(u-d)/6/c+1/2};if(c===0)a=0,r=0;else{switch(r=c/u,e=p(s),i=p(o),n=p(l),u){case s:{a=n-i;break}case o:{a=1/3+e-n;break}case l:{a=2/3+i-e;break}}a<0?a+=1:a>1&&(a-=1)}return[a*360,r*100,u*100]};H.rgb.hwb=function(t){let e=t[0],i=t[1],n=t[2],a=H.rgb.hsl(t)[0],r=1/255*Math.min(e,Math.min(i,n));return n=1-1/255*Math.max(e,Math.max(i,n)),[a,r*100,n*100]};H.rgb.oklab=function(t){let e=ps(t[0]/255),i=ps(t[1]/255),n=ps(t[2]/255),a=Math.cbrt(.4122214708*e+.5363325363*i+.0514459929*n),r=Math.cbrt(.2119034982*e+.6806995451*i+.1073969566*n),s=Math.cbrt(.0883024619*e+.2817188376*i+.6299787005*n),o=.2104542553*a+.793617785*r-.0040720468*s,l=1.9779984951*a-2.428592205*r+.4505937099*s,u=.0259040371*a+.7827717662*r-.808675766*s;return[o*100,l*100,u*100]};H.rgb.cmyk=function(t){let e=t[0]/255,i=t[1]/255,n=t[2]/255,a=Math.min(1-e,1-i,1-n),r=(1-e-a)/(1-a)||0,s=(1-i-a)/(1-a)||0,o=(1-n-a)/(1-a)||0;return[r*100,s*100,o*100,a*100]};function K8(t,e){return(t[0]-e[0])**2+(t[1]-e[1])**2+(t[2]-e[2])**2}H.rgb.keyword=function(t){let e=RH[t];if(e)return e;let i=Number.POSITIVE_INFINITY,n;for(let a of Object.keys(Vn)){let r=Vn[a],s=K8(t,r);sht?i**(1/3):7.787*i+16/116,n=n>ht?n**(1/3):7.787*n+16/116,a=a>ht?a**(1/3):7.787*a+16/116;let r=116*n-16,s=500*(i-n),o=200*(n-a);return[r,s,o]};H.hsl.rgb=function(t){let e=t[0]/360,i=t[1]/100,n=t[2]/100,a,r;if(i===0)return r=n*255,[r,r,r];let s=n<.5?n*(1+i):n+i-n*i,o=2*n-s,l=[0,0,0];for(let u=0;u<3;u++)a=e+1/3*-(u-1),a<0&&a++,a>1&&a--,6*a<1?r=o+(s-o)*6*a:2*a<1?r=s:3*a<2?r=o+(s-o)*(2/3-a)*6:r=o,l[u]=r*255;return l};H.hsl.hsv=function(t){let e=t[0],i=t[1]/100,n=t[2]/100,a=i,r=Math.max(n,.01);n*=2,i*=n<=1?n:2-n,a*=r<=1?r:2-r;let s=(n+i)/2,o=n===0?2*a/(r+a):2*i/(n+i);return[e,o*100,s*100]};H.hsv.rgb=function(t){let e=t[0]/60,i=t[1]/100,n=t[2]/100,a=Math.floor(e)%6,r=e-Math.floor(e),s=255*n*(1-i),o=255*n*(1-i*r),l=255*n*(1-i*(1-r));switch(n*=255,a){case 0:return[n,l,s];case 1:return[o,n,s];case 2:return[s,n,l];case 3:return[s,o,n];case 4:return[l,s,n];case 5:return[n,s,o]}};H.hsv.hsl=function(t){let e=t[0],i=t[1]/100,n=t[2]/100,a=Math.max(n,.01),r,s;s=(2-i)*n;let o=(2-i)*a;return r=i*a,r/=o<=1?o:2-o,r=r||0,s/=2,[e,r*100,s*100]};H.hwb.rgb=function(t){let e=t[0]/360,i=t[1]/100,n=t[2]/100,a=i+n,r;a>1&&(i/=a,n/=a);let s=Math.floor(6*e),o=1-n;r=6*e-s,(s&1)!==0&&(r=1-r);let l=i+r*(o-i),u,c,p;switch(s){default:case 6:case 0:{u=o,c=l,p=i;break}case 1:{u=l,c=o,p=i;break}case 2:{u=i,c=o,p=l;break}case 3:{u=i,c=l,p=o;break}case 4:{u=l,c=i,p=o;break}case 5:{u=o,c=i,p=l;break}}return[u*255,c*255,p*255]};H.cmyk.rgb=function(t){let e=t[0]/100,i=t[1]/100,n=t[2]/100,a=t[3]/100,r=1-Math.min(1,e*(1-a)+a),s=1-Math.min(1,i*(1-a)+a),o=1-Math.min(1,n*(1-a)+a);return[r*255,s*255,o*255]};H.xyz.rgb=function(t){let e=t[0]/100,i=t[1]/100,n=t[2]/100,a,r,s;return a=e*3.2404542+i*-1.5371385+n*-.4985314,r=e*-.969266+i*1.8760108+n*.041556,s=e*.0556434+i*-.2040259+n*1.0572252,a=cs(a),r=cs(r),s=cs(s),[a*255,r*255,s*255]};H.xyz.lab=function(t){let e=t[0],i=t[1],n=t[2];e/=95.047,i/=100,n/=108.883,e=e>ht?e**(1/3):7.787*e+16/116,i=i>ht?i**(1/3):7.787*i+16/116,n=n>ht?n**(1/3):7.787*n+16/116;let a=116*i-16,r=500*(e-i),s=200*(i-n);return[a,r,s]};H.xyz.oklab=function(t){let e=t[0]/100,i=t[1]/100,n=t[2]/100,a=Math.cbrt(.8189330101*e+.3618667424*i-.1288597137*n),r=Math.cbrt(.0329845436*e+.9293118715*i+.0361456387*n),s=Math.cbrt(.0482003018*e+.2643662691*i+.633851707*n),o=.2104542553*a+.793617785*r-.0040720468*s,l=1.9779984951*a-2.428592205*r+.4505937099*s,u=.0259040371*a+.7827717662*r-.808675766*s;return[o*100,l*100,u*100]};H.oklab.oklch=function(t){return H.lab.lch(t)};H.oklab.xyz=function(t){let e=t[0]/100,i=t[1]/100,n=t[2]/100,a=(.999999998*e+.396337792*i+.215803758*n)**3,r=(1.000000008*e-.105561342*i-.063854175*n)**3,s=(1.000000055*e-.089484182*i-1.291485538*n)**3,o=1.227013851*a-.55779998*r+.281256149*s,l=-.040580178*a+1.11225687*r-.071676679*s,u=-.076381285*a-.421481978*r+1.58616322*s;return[o*100,l*100,u*100]};H.oklab.rgb=function(t){let e=t[0]/100,i=t[1]/100,n=t[2]/100,a=(e+.3963377774*i+.2158037573*n)**3,r=(e-.1055613458*i-.0638541728*n)**3,s=(e-.0894841775*i-1.291485548*n)**3,o=cs(4.0767416621*a-3.3077115913*r+.2309699292*s),l=cs(-1.2684380046*a+2.6097574011*r-.3413193965*s),u=cs(-.0041960863*a-.7034186147*r+1.707614701*s);return[o*255,l*255,u*255]};H.oklch.oklab=function(t){return H.lch.lab(t)};H.lab.xyz=function(t){let e=t[0],i=t[1],n=t[2],a,r,s;r=(e+16)/116,a=i/500+r,s=r-n/200;let o=r**3,l=a**3,u=s**3;return r=o>ht?o:(r-16/116)/7.787,a=l>ht?l:(a-16/116)/7.787,s=u>ht?u:(s-16/116)/7.787,a*=95.047,r*=100,s*=108.883,[a,r,s]};H.lab.lch=function(t){let e=t[0],i=t[1],n=t[2],a;a=Math.atan2(n,i)*360/2/Math.PI,a<0&&(a+=360);let s=Math.sqrt(i*i+n*n);return[e,s,a]};H.lch.lab=function(t){let e=t[0],i=t[1],a=t[2]/360*2*Math.PI,r=i*Math.cos(a),s=i*Math.sin(a);return[e,r,s]};H.rgb.ansi16=function(t,e=null){let[i,n,a]=t,r=e===null?H.rgb.hsv(t)[2]:e;if(r=Math.round(r/50),r===0)return 30;let s=30+(Math.round(a/255)<<2|Math.round(n/255)<<1|Math.round(i/255));return r===2&&(s+=60),s};H.hsv.ansi16=function(t){return H.rgb.ansi16(H.hsv.rgb(t),t[2])};H.rgb.ansi256=function(t){let e=t[0],i=t[1],n=t[2];return e>>4===i>>4&&i>>4===n>>4?e<8?16:e>248?231:Math.round((e-8)/247*24)+232:16+36*Math.round(e/255*5)+6*Math.round(i/255*5)+Math.round(n/255*5)};H.ansi16.rgb=function(t){t=t[0];let e=t%10;if(e===0||e===7)return t>50&&(e+=3.5),e=e/10.5*255,[e,e,e];let i=(Math.trunc(t>50)+1)*.5,n=(e&1)*i*255,a=(e>>1&1)*i*255,r=(e>>2&1)*i*255;return[n,a,r]};H.ansi256.rgb=function(t){if(t=t[0],t>=232){let r=(t-232)*10+8;return[r,r,r]}t-=16;let e,i=Math.floor(t/36)/5*255,n=Math.floor((e=t%36)/6)/5*255,a=e%6/5*255;return[i,n,a]};H.rgb.hex=function(t){let i=(((Math.round(t[0])&255)<<16)+((Math.round(t[1])&255)<<8)+(Math.round(t[2])&255)).toString(16).toUpperCase();return"000000".slice(i.length)+i};H.hex.rgb=function(t){let e=t.toString(16).match(/[a-f\d]{6}|[a-f\d]{3}/i);if(!e)return[0,0,0];let i=e[0];e[0].length===3&&(i=[...i].map(o=>o+o).join(""));let n=Number.parseInt(i,16),a=n>>16&255,r=n>>8&255,s=n&255;return[a,r,s]};H.rgb.hcg=function(t){let e=t[0]/255,i=t[1]/255,n=t[2]/255,a=Math.max(Math.max(e,i),n),r=Math.min(Math.min(e,i),n),s=a-r,o,l=s<1?r/(1-s):0;return s<=0?o=0:a===e?o=(i-n)/s%6:a===i?o=2+(n-e)/s:o=4+(e-i)/s,o/=6,o%=1,[o*360,s*100,l*100]};H.hsl.hcg=function(t){let e=t[1]/100,i=t[2]/100,n=i<.5?2*e*i:2*e*(1-i),a=0;return n<1&&(a=(i-.5*n)/(1-n)),[t[0],n*100,a*100]};H.hsv.hcg=function(t){let e=t[1]/100,i=t[2]/100,n=e*i,a=0;return n<1&&(a=(i-n)/(1-n)),[t[0],n*100,a*100]};H.hcg.rgb=function(t){let e=t[0]/360,i=t[1]/100,n=t[2]/100;if(i===0)return[n*255,n*255,n*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-i)*n,[(i*a[0]+l)*255,(i*a[1]+l)*255,(i*a[2]+l)*255]};H.hcg.hsv=function(t){let e=t[1]/100,i=t[2]/100,n=e+i*(1-e),a=0;return n>0&&(a=e/n),[t[0],a*100,n*100]};H.hcg.hsl=function(t){let e=t[1]/100,n=t[2]/100*(1-e)+.5*e,a=0;return n>0&&n<.5?a=e/(2*n):n>=.5&&n<1&&(a=e/(2*(1-n))),[t[0],a*100,n*100]};H.hcg.hwb=function(t){let e=t[1]/100,i=t[2]/100,n=e+i*(1-e);return[t[0],(n-e)*100,(1-n)*100]};H.hwb.hcg=function(t){let e=t[1]/100,n=1-t[2]/100,a=n-e,r=0;return a<1&&(r=(n-a)/(1-a)),[t[0],a*100,r*100]};H.apple.rgb=function(t){return[t[0]/65535*255,t[1]/65535*255,t[2]/65535*255]};H.rgb.apple=function(t){return[t[0]/255*65535,t[1]/255*65535,t[2]/255*65535]};H.gray.rgb=function(t){return[t[0]/100*255,t[0]/100*255,t[0]/100*255]};H.gray.hsl=function(t){return[0,0,t[0]]};H.gray.hsv=H.gray.hsl;H.gray.hwb=function(t){return[0,100,t[0]]};H.gray.cmyk=function(t){return[0,0,0,t[0]]};H.gray.lab=function(t){return[t[0],0,0]};H.gray.hex=function(t){let e=Math.round(t[0]/100*255)&255,n=((e<<16)+(e<<8)+e).toString(16).toUpperCase();return"000000".slice(n.length)+n};H.rgb.gray=function(t){return[(t[0]+t[1]+t[2])/3/255*100]};function Q8(){let t={},e=Object.keys(H);for(let{length:i}=e,n=0;n0;){let n=i.pop(),a=Object.keys(H[n]);for(let{length:r}=a,s=0;s1&&(i=n),t(i))};return"conversion"in t&&(e.conversion=t.conversion),e}function a7(t){let e=function(...i){let n=i[0];if(n==null)return n;n.length>1&&(i=n);let a=t(i);if(typeof a=="object")for(let{length:r}=a,s=0;s0){this.model=e||"rgb",n=fi[this.model].channels;let a=Array.prototype.slice.call(t,0,n);this.color=lA(a,n),this.valpha=typeof t[n]=="number"?t[n]: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 sA))throw new Error("Unable to parse color from object: "+JSON.stringify(t));this.model=sA[r];let{labels:s}=fi[this.model],o=[];for(i=0;i(t%360+360)%360),saturationl:Xe("hsl",1,li(100)),lightness:Xe("hsl",2,li(100)),saturationv:Xe("hsv",1,li(100)),value:Xe("hsv",2,li(100)),chroma:Xe("hcg",1,li(100)),gray:Xe("hcg",2,li(100)),white:Xe("hwb",1,li(100)),wblack:Xe("hwb",2,li(100)),cyan:Xe("cmyk",0,li(100)),magenta:Xe("cmyk",1,li(100)),yellow:Xe("cmyk",2,li(100)),black:Xe("cmyk",3,li(100)),x:Xe("xyz",0,li(95.047)),y:Xe("xyz",1,li(100)),z:Xe("xyz",2,li(108.833)),l:Xe("lab",0,li(100)),a:Xe("lab",1),b:Xe("lab",2),keyword(t){return t!==void 0?new ui(t):fi[this.model].keyword(this.color)},hex(t){return t!==void 0?new ui(t):ci.to.hex(...this.rgb().round().color)},hexa(t){if(t!==void 0)return new ui(t);let e=this.rgb().round().color,i=Math.round(this.valpha*255).toString(16).toUpperCase();return i.length===1&&(i="0"+i),ci.to.hex(...e)+i},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[i,n]of t.entries()){let a=n/255;e[i]=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(),i=t.luminosity();return e>i?(e+.05)/(i+.05):(i+.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 ui.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(),i=e.color[0];return i=(i+t)%360,i=i<0?360+i:i,e.color[0]=i,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 i=t.rgb(),n=this.rgb(),a=e===void 0?.5:e,r=2*a-1,s=i.alpha()-n.alpha(),o=((r*s===-1?r:(r+s)/(1+r*s))+1)/2,l=1-o;return ui.rgb(o*i.red()+l*n.red(),o*i.green()+l*n.green(),o*i.blue()+l*n.blue(),i.alpha()*a+n.alpha()*(1-a))}};for(let t of Object.keys(fi)){if(IH.includes(t))continue;let{channels:e}=fi[t];ui.prototype[t]=function(...i){return this.model===t?new ui(this):i.length>0?new ui(i,t):new ui([...o7(fi[this.model][t].raw(this.color)),this.valpha],t)},ui[t]=function(...i){let n=i[0];return typeof n=="number"&&(n=lA(i,e)),new ui(n,t)}}function r7(t,e){return Number(t.toFixed(e))}function s7(t){return function(e){return r7(e,t)}}function Xe(t,e,i){t=Array.isArray(t)?t:[t];for(let n of t)(oA[n]||=[])[e]=i;return t=t[0],function(n){let a;return n!==void 0?(i&&(n=i(n)),a=this[t](),a.color[e]=n,a):(a=this[t]().color[e],i&&(a=i(a)),a)}}function li(t){return function(e){return Math.max(0,Math.min(t,e))}}function o7(t){return Array.isArray(t)?t:[t]}function lA(t,e){for(let i=0;i{"use strict";function En(t,e){if(e)return new En(t).style(e);if(!(this instanceof En))return new En(t);this.text=t}En.prototype.prefix="\x1B[";En.prototype.suffix="m";En.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 i=e.substring(0,2),n=e.substring(2,4),a=e.substring(4,6);return[parseInt(i,16),parseInt(n,16),parseInt(a,16)]};En.prototype.rgb=function(e,i,n){var a=e/255*5,r=i/255*5,s=n/255*5;return this.ansi(a,r,s)};En.prototype.ansi=function(e,i,n){var a=Math.round(e),r=Math.round(i),s=Math.round(n);return 16+a*36+r*6+s};En.prototype.reset=function(){return this.prefix+"39;49"+this.suffix};En.prototype.style=function(e){return this.prefix+"38;5;"+this.rgb.apply(this,this.hex(e))+this.suffix+this.text+this.reset()};GH.exports=En});var UH=w((Ile,NH)=>{var p7=DH(),d7=$H();NH.exports=function(e,i){var n=i.namespace,a=i.colors!==!1?d7(n+":",p7(n)):n+":";return e[0]=a+" "+e[0],e}});var WH=w((zle,LH)=>{"use strict";LH.exports=function(e,i){if(!i)return!1;for(var n=i.split(/[\s,]+/),a=0;a{var h7=WH();BH.exports=function(e){return function(n){try{return h7(n,e())}catch{}return!1}}});var JH=w((Gle,VH)=>{var g7=FH();VH.exports=g7(function(){return process.env.DEBUG||process.env.DIAGNOSTICS})});var KH=w(($le,ZH)=>{ZH.exports=function(t,e){try{Function.prototype.apply.call(console.log,console,e)}catch{}}});var YH=w((Nle,QH)=>{var m7=rA(),f7=require("tty").isatty(1),Xp=m7(function t(e,i){return i=i||{},i.colors="colors"in i?i.colors:f7,i.namespace=e,i.prod=!1,i.dev=!0,!t.enabled(e)&&!(i.force||t.force)?t.nope(i):t.yep(i)});Xp.modify(UH());Xp.use(JH());Xp.set(KH());QH.exports=Xp});var bl=w((Ule,uA)=>{process.env.NODE_ENV==="production"?uA.exports=qH():uA.exports=YH()});var eR=w((Lle,XH)=>{"use strict";var cA=require("fs"),{StringDecoder:w7}=require("string_decoder"),{Stream:v7}=Za();function C7(){}XH.exports=(t,e)=>{let i=Buffer.alloc(65536),n=new w7("utf8"),a=new v7,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")},cA.open(t.file,"a+","0644",(l,u)=>{if(l){e?e(l):a.emit("error",l),a.destroy();return}(function c(){if(a.destroyed){cA.close(u,C7);return}return cA.read(u,i,0,i.length,s,(p,d)=>{if(p){e?e(p):a.emit("error",p),a.destroy();return}if(!d)return r&&((t.start==null||o>t.start)&&(e?e(null,r):a.emit("line",r)),o++,r=""),setTimeout(c,1e3);let h=n.write(i.slice(0,d));e||a.emit("data",h),h=(r+h).split(/\n+/);let g=h.length-1,m=0;for(;mt.start)&&(e?e(null,h[m]):a.emit("line",h[m])),o++;return r=h[g],s+=d,c()})})()}),e?a.destroy:a}});var aR=w((Ble,tR)=>{"use strict";var Ki=require("fs"),wi=require("path"),iR=vH(),A7=require("zlib"),{MESSAGE:b7}=ri(),{Stream:y7,PassThrough:nR}=Za(),P7=ss(),kn=bl()("winston:file"),j7=require("os"),S7=eR();tR.exports=class extends P7{constructor(e={}){super(e),this.name=e.name||"file";function i(n,...a){a.slice(1).forEach(r=>{if(e[r])throw new Error(`Cannot set ${r} and ${n} together`)})}if(this._stream=new nR,this._stream.setMaxListeners(30),this._onError=this._onError.bind(this),e.filename||e.dirname)i("filename or dirname","stream"),this._basename=this.filename=e.filename?wi.basename(e.filename):"winston.log",this.dirname=e.dirname||wi.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"),i("stream","filename","maxsize"),this._dest=this._stream.pipe(this._setupStream(e.stream)),this.dirname=wi.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:j7.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,i=()=>{}){if(this.silent)return i(),!0;if(this._drain){this._stream.once("drain",()=>{this._drain=!1,this.log(e,i)});return}if(this._rotate){this._stream.once("rotate",()=>{this._rotate=!1,this.log(e,i)});return}if(this.lazy){if(!this._fileExist){this._opening||this.open(),this.once("open",()=>{this._fileExist=!0,this.log(e,i)});return}if(this._needsNewFile(this._pendingSize)){this._dest.once("close",()=>{this._opening||this.open(),this.once("open",()=>{this.log(e,i)})});return}}let n=`${e[b7]}${this.eol}`,a=Buffer.byteLength(n);function r(){if(this._size+=a,this._pendingSize-=a,kn("logged %s %s",this._size,n),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(n,r.bind(this));return s?i():(this._drain=!0,this._stream.once("drain",()=>{this._drain=!1,i()})),kn("written",s,this._drain),this.finishIfEnding(),s}query(e,i){typeof e=="function"&&(i=e,e={}),e=p(e);let n=wi.join(this.dirname,this.filename),a="",r=[],s=0,o=Ki.createReadStream(n,{encoding:"utf8"});o.on("error",d=>{if(o.readable&&o.destroy(),!!i)return d.code!=="ENOENT"?i(d):i(null,r)}),o.on("data",d=>{d=(a+d).split(/\n+/);let h=d.length-1,g=0;for(;g=e.start)&&l(d[g]),s++;a=d[h]}),o.on("close",()=>{a&&l(a,!0),e.order==="desc"&&(r=r.reverse()),i&&i(null,r)});function l(d,h){try{let g=JSON.parse(d);c(g)&&u(g)}catch(g){h||o.emit("error",g)}}function u(d){if(e.rows&&r.length>=e.rows&&e.order!=="desc"){o.readable&&o.destroy();return}e.fields&&(d=e.fields.reduce((h,g)=>(h[g]=d[g],h),{})),e.order==="desc"&&r.length>=e.rows&&r.shift(),r.push(d)}function c(d){if(!d||typeof d!="object")return;let h=new Date(d.timestamp);if(!(e.from&&he.until||e.level&&e.level!==d.level))return!0}function p(d){return d=d||{},d.rows=d.rows||d.limit||10,d.start=d.start||0,d.until=d.until||new Date,typeof d.until!="object"&&(d.until=new Date(d.until)),d.from=d.from||d.until-1440*60*1e3,typeof d.from!="object"&&(d.from=new Date(d.from)),d.order=d.order||"desc",d}}stream(e={}){let i=wi.join(this.dirname,this.filename),n=new y7,a={file:i,start:e.start};return n.destroy=S7(a,(r,s)=>{if(r)return n.emit("error",r);try{n.emit("data",s),s=JSON.parse(s),n.emit("log",s)}catch(o){n.emit("error",o)}}),n}open(){this.filename&&(this._opening||(this._opening=!0,this.stat((e,i)=>{if(e)return this.emit("error",e);kn("stat done: %s { size: %s }",this.filename,i),this._size=i,this._dest=this._createStream(this._stream),this._opening=!1,this.once("open",()=>{this._stream.emit("rotate")||(this._rotate=!1)})})))}stat(e){let i=this._getFile(),n=wi.join(this.dirname,i);Ki.stat(n,(a,r)=>{if(a&&a.code==="ENOENT")return kn("ENOENT\xA0ok",n),this.filename=i,e(null,0);if(a)return kn(`err ${a.code} ${n}`),e(a);if(!r||this._needsNewFile(r.size))return this._incFile(()=>this.stat(e));this.filename=i,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 i=wi.join(this.dirname,this.filename);kn("create stream start",i,this.options);let n=Ki.createWriteStream(i,this.options).on("error",a=>kn(a)).on("close",()=>kn("close",n.path,n.bytesWritten)).on("open",()=>{kn("file open ok",i),this.emit("open",i),e.pipe(n),this.rotatedWhileOpening&&(this._stream=new nR,this._stream.setMaxListeners(30),this._rotateFile(),this.rotatedWhileOpening=!1,this._cleanupStream(n),e.end())});return kn("create stream ok",i),n}_incFile(e){kn("_incFile",this.filename);let i=wi.extname(this._basename),n=wi.basename(this._basename,i),a=[];this.zippedArchive&&a.push(function(r){let s=this._created>0&&!this.tailable?this._created:"";this._compressFile(wi.join(this.dirname,`${n}${s}${i}`),wi.join(this.dirname,`${n}${s}${i}.gz`),r)}.bind(this)),a.push(function(r){this.tailable?this._checkMaxFilesTailable(i,n,r):(this._created+=1,this._checkMaxFilesIncrementing(i,n,r))}.bind(this)),iR(a,e)}_getFile(){let e=wi.extname(this._basename),i=wi.basename(this._basename,e),n=this.rotationFormat?this.rotationFormat():this._created;return!this.tailable&&this._created?`${i}${n}${e}`:`${i}${e}`}_checkMaxFilesIncrementing(e,i,n){if(!this.maxFiles||this._created1;s--)a.push(function(o,l){let u=`${i}${o-1}${e}${r}`,c=wi.join(this.dirname,u);Ki.exists(c,p=>{if(!p)return l(null);u=`${i}${o}${e}${r}`,Ki.rename(c,wi.join(this.dirname,u),l)})}.bind(this,s));iR(a,()=>{Ki.rename(wi.join(this.dirname,`${i}${e}${r}`),wi.join(this.dirname,`${i}1${e}${r}`),n)})}_compressFile(e,i,n){Ki.access(e,Ki.F_OK,a=>{if(a)return n();var r=A7.createGzip(),s=Ki.createReadStream(e),o=Ki.createWriteStream(i);o.on("finish",()=>{Ki.unlink(e,n)}),s.pipe(r).pipe(o)})}_createLogDirIfNotExist(e){Ki.existsSync(e)||Ki.mkdirSync(e,{recursive:!0})}}});var sR=w((Vle,rR)=>{"use strict";var O7=require("http"),x7=require("https"),{Stream:T7}=Za(),M7=ss(),{configure:E7}=rl();rR.exports=class extends M7{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,i){this._request(e,null,null,(n,a)=>{a&&a.statusCode!==200&&(n=new Error(`Invalid HTTP Status Code: ${a.statusCode}`)),n?this.emit("warn",n):this.emit("logged",e)}),i&&setImmediate(i)}query(e,i){typeof e=="function"&&(i=e,e={}),e={method:"query",params:this.normalizeQuery(e)};let n=e.params.auth||null;delete e.params.auth;let a=e.params.path||null;delete e.params.path,this._request(e,n,a,(r,s,o)=>{if(s&&s.statusCode!==200&&(r=new Error(`Invalid HTTP Status Code: ${s.statusCode}`)),r)return i(r);if(typeof o=="string")try{o=JSON.parse(o)}catch(l){return i(l)}i(null,o)})}stream(e={}){let i=new T7;e={method:"stream",params:e};let n=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,n);return i.destroy=()=>s.destroy(),s.on("data",o=>{o=(r+o).split(/\n+/);let l=o.length-1,u=0;for(;ui.emit("error",o)),i}_request(e,i,n,a){e=e||{},i=i||this.auth,n=n||this.path||"",this.batch?this._doBatch(e,a,i,n):this._doRequest(e,a,i,n)}_doBatch(e,i,n,a){if(this.batchOptions.push(e),this.batchOptions.length===1){let r=this;this.batchCallback=i,this.batchTimeoutID=setTimeout(function(){r.batchTimeoutID=-1,r._doBatchRequest(r.batchCallback,n,a)},this.batchInterval)}this.batchOptions.length===this.batchCount&&this._doBatchRequest(this.batchCallback,n,a)}_doBatchRequest(e,i,n){this.batchTimeoutID>0&&(clearTimeout(this.batchTimeoutID),this.batchTimeoutID=-1);let a=this.batchOptions.slice();this.batchOptions=[],this._doRequest(a,e,i,n)}_doRequest(e,i,n,a){let r=Object.assign({},this.headers);n&&n.bearer&&(r.Authorization=`Bearer ${n.bearer}`);let s=(this.ssl?x7:O7).request({...this.options,method:"POST",host:this.host,port:this.port,path:`/${a.replace(/^\//,"")}`,headers:r,auth:n&&n.username&&n.password?`${n.username}:${n.password}`:"",agent:this.agent});s.on("error",i),s.on("response",l=>l.on("end",()=>i(null,l)).resume());let o=E7({...this.maximumDepth&&{maximumDepth:this.maximumDepth}});s.end(Buffer.from(o(e,this.options.replacer),"utf8"))}}});var pA=w((Jle,oR)=>{"use strict";var Jn=t=>t!==null&&typeof t=="object"&&typeof t.pipe=="function";Jn.writable=t=>Jn(t)&&t.writable!==!1&&typeof t._write=="function"&&typeof t._writableState=="object";Jn.readable=t=>Jn(t)&&t.readable!==!1&&typeof t._read=="function"&&typeof t._readableState=="object";Jn.duplex=t=>Jn.writable(t)&&Jn.readable(t);Jn.transform=t=>Jn.duplex(t)&&typeof t._transform=="function";oR.exports=Jn});var uR=w((Kle,lR)=>{"use strict";var k7=pA(),{MESSAGE:q7}=ri(),_7=require("os"),H7=ss();lR.exports=class extends H7{constructor(e={}){if(super(e),!e.stream||!k7(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:_7.EOL}log(e,i){if(setImmediate(()=>this.emit("logged",e)),this.isObjectMode){this._stream.write(e),i&&i();return}this._stream.write(`${e[q7]}${this.eol}`),i&&i()}}});var cR=w(yl=>{"use strict";Object.defineProperty(yl,"Console",{configurable:!0,enumerable:!0,get(){return I0()}});Object.defineProperty(yl,"File",{configurable:!0,enumerable:!0,get(){return aR()}});Object.defineProperty(yl,"Http",{configurable:!0,enumerable:!0,get(){return sR()}});Object.defineProperty(yl,"Stream",{configurable:!0,enumerable:!0,get(){return uR()}})});var id=w(Pl=>{"use strict";var ed=hC(),{configs:dA}=ri();Pl.cli=ed.levels(dA.cli);Pl.npm=ed.levels(dA.npm);Pl.syslog=ed.levels(dA.syslog);Pl.addColors=ed.levels});var dR=w((nd,pR)=>{"use strict";Object.defineProperty(nd,"__esModule",{value:!0});var R7=Hp(),I7=Ka(R7),z7=Wp(),D7=Ka(z7),G7=KC(),$7=Ka(G7),N7=VC(),U7=Ka(N7),L7=JC(),W7=Ka(L7),B7=Ja(),F7=Ka(B7),V7=ls(),J7=Ka(V7);function Ka(t){return t&&t.__esModule?t:{default:t}}function Z7(t,e,i){i=(0,U7.default)(i);var n=0,a=0,{length:r}=t,s=!1;r===0&&i(null);function o(l,u){l===!1&&(s=!0),s!==!0&&(l?i(l):(++a===r||u===D7.default)&&i(null))}for(;n{"use strict";Object.defineProperty(td,"__esModule",{value:!0});td.default=Y7;function Y7(t){return(e,i,n)=>t(e,n)}hR.exports=td.default});var sd=w((rd,mR)=>{"use strict";Object.defineProperty(rd,"__esModule",{value:!0});var X7=dR(),eY=ad(X7),iY=gR(),nY=ad(iY),tY=Ja(),aY=ad(tY),rY=ls(),sY=ad(rY);function ad(t){return t&&t.__esModule?t:{default:t}}function oY(t,e,i){return(0,eY.default)(t,(0,nY.default)((0,aY.default)(e)),i)}rd.default=(0,sY.default)(oY,3);mR.exports=rd.default});var wR=w((Xle,fR)=>{"use strict";var lY=Object.prototype.toString;fR.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 i=e.toString(),n=lY.call(e).slice(8,-1);return n==="Function"?i=i.substring(i.indexOf("(")+1,i.indexOf(")")):i=n,i||"anonymous"}});var hA=w((eue,vR)=>{"use strict";var uY=wR();vR.exports=function(e){var i=0,n;function a(){return i||(i=1,n=e.apply(this,arguments),e=null),n}return a.displayName=uY(e),a}});var gA=w(Sl=>{Sl.get=function(t){var e=Error.stackTraceLimit;Error.stackTraceLimit=1/0;var i={},n=Error.prepareStackTrace;Error.prepareStackTrace=function(r,s){return s},Error.captureStackTrace(i,t||Sl.get);var a=i.stack;return Error.prepareStackTrace=n,Error.stackTraceLimit=e,a};Sl.parse=function(t){if(!t.stack)return[];var e=this,i=t.stack.split(` +`).slice(1);return i.map(function(n){if(n.match(/^\s*[-]{4,}$/))return e._createParsedCallSite({fileName:n,lineNumber:null,functionName:null,typeName:null,methodName:null,columnNumber:null,native:null});var a=n.match(/at (?:(.+)\s+\()?(?:(.+?):(\d+)(?::(\d+))?|([^)]+))\)?/);if(a){var r=null,s=null,o=null,l=null,u=null,c=a[5]==="native";if(a[1]){o=a[1];var p=o.lastIndexOf(".");if(o[p-1]=="."&&p--,p>0){r=o.substr(0,p),s=o.substr(p+1);var d=r.indexOf(".Module");d>0&&(o=o.substr(d+1),r=r.substr(0,d))}l=null}s&&(l=r,u=s),s===""&&(u=null,o=null);var h={fileName:a[2]||null,lineNumber:parseInt(a[3],10)||null,functionName:o,typeName:l,methodName:u,columnNumber:parseInt(a[4],10)||null,native:c};return e._createParsedCallSite(h)}}).filter(function(n){return!!n})};function jl(t){for(var e in t)this[e]=t[e]}var cY=["this","typeName","functionName","methodName","fileName","lineNumber","columnNumber","function","evalOrigin"],pY=["topLevel","eval","native","constructor"];cY.forEach(function(t){jl.prototype[t]=null,jl.prototype["get"+t[0].toUpperCase()+t.substr(1)]=function(){return this[t]}});pY.forEach(function(t){jl.prototype[t]=!1,jl.prototype["is"+t[0].toUpperCase()+t.substr(1)]=function(){return this[t]}});Sl._createParsedCallSite=function(t){return new jl(t)}});var AR=w((tue,CR)=>{"use strict";var{Writable:dY}=Za();CR.exports=class extends dY{constructor(e){if(super({objectMode:!0}),!e)throw new Error("ExceptionStream requires a TransportStream instance.");this.handleExceptions=!0,this.transport=e}_write(e,i,n){return e.exception?this.transport.log(e,n):(n(),!0)}}});var fA=w((rue,PR)=>{"use strict";var bR=require("os"),hY=sd(),mA=bl()("winston:exception"),gY=hA(),yR=gA(),mY=AR();PR.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(i=>{if(Array.isArray(i))return i.forEach(n=>this._addHandler(n));this._addHandler(i)}),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 i=null;return e&&(i=typeof e=="string"?e:e.message),{error:e,level:"error",message:[`uncaughtException: ${i||"(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:bR.loadavg(),uptime:bR.uptime()}}getTrace(e){return(e?yR.parse(e):yR.get()).map(n=>({column:n.getColumnNumber(),file:n.getFileName(),function:n.getFunctionName(),line:n.getLineNumber(),method:n.getMethodName(),native:n.isNative()}))}_addHandler(e){if(!this.handlers.has(e)){e.handleExceptions=!0;let i=new mY(e);this.handlers.set(e,i),this.logger.pipe(i)}}_uncaughtException(e){let i=this.getAllInfo(e),n=this._getExceptionHandlers(),a=typeof this.logger.exitOnError=="function"?this.logger.exitOnError(e):this.logger.exitOnError,r;!n.length&&a&&(console.warn("winston: exitOnError cannot be true with no exception handlers."),console.warn("winston: not exiting process."),a=!1);function s(){mA("doExit",a),mA("process._exiting",process._exiting),a&&!process._exiting&&(r&&clearTimeout(r),process.exit(1))}if(!n||n.length===0)return process.nextTick(s);hY(n,(o,l)=>{let u=gY(l),c=o.transport||o;function p(d){return()=>{mA(d),u()}}c._ending=!0,c.once("finish",p("finished")),c.once("error",p("error"))},()=>a&&s()),this.logger.log(i),a&&(r=setTimeout(s,3e3))}_getExceptionHandlers(){return this.logger.transports.filter(e=>(e.transport||e).handleExceptions)}}});var SR=w((oue,jR)=>{"use strict";var{Writable:fY}=Za();jR.exports=class extends fY{constructor(e){if(super({objectMode:!0}),!e)throw new Error("RejectionStream requires a TransportStream instance.");this.handleRejections=!0,this.transport=e}_write(e,i,n){return e.rejection?this.transport.log(e,n):(n(),!0)}}});var vA=w((uue,TR)=>{"use strict";var OR=require("os"),wY=sd(),wA=bl()("winston:rejection"),vY=hA(),xR=gA(),CY=SR();TR.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(i=>{if(Array.isArray(i))return i.forEach(n=>this._addHandler(n));this._addHandler(i)}),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 i=null;return e&&(i=typeof e=="string"?e:e.message),{error:e,level:"error",message:[`unhandledRejection: ${i||"(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:OR.loadavg(),uptime:OR.uptime()}}getTrace(e){return(e?xR.parse(e):xR.get()).map(n=>({column:n.getColumnNumber(),file:n.getFileName(),function:n.getFunctionName(),line:n.getLineNumber(),method:n.getMethodName(),native:n.isNative()}))}_addHandler(e){if(!this.handlers.has(e)){e.handleRejections=!0;let i=new CY(e);this.handlers.set(e,i),this.logger.pipe(i)}}_unhandledRejection(e){let i=this.getAllInfo(e),n=this._getRejectionHandlers(),a=typeof this.logger.exitOnError=="function"?this.logger.exitOnError(e):this.logger.exitOnError,r;!n.length&&a&&(console.warn("winston: exitOnError cannot be true with no rejection handlers."),console.warn("winston: not exiting process."),a=!1);function s(){wA("doExit",a),wA("process._exiting",process._exiting),a&&!process._exiting&&(r&&clearTimeout(r),process.exit(1))}if(!n||n.length===0)return process.nextTick(s);wY(n,(o,l)=>{let u=vY(l),c=o.transport||o;function p(d){return()=>{wA(d),u()}}c._ending=!0,c.once("finish",p("finished")),c.once("error",p("error"))},()=>a&&s()),this.logger.log(i),a&&(r=setTimeout(s,3e3))}_getRejectionHandlers(){return this.logger.transports.filter(e=>(e.transport||e).handleRejections)}}});var ER=w((cue,MR)=>{"use strict";var CA=class{constructor(e){let i=od();if(typeof e!="object"||Array.isArray(e)||!(e instanceof i))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 i=typeof e[e.length-1]=="object"?e.pop():{};return i.level=i.level||"info",i.durationMs=Date.now()-this.start,this.logger.write(i)}};MR.exports=CA});var od=w((pue,HR)=>{"use strict";var{Stream:AY,Transform:bY}=Za(),kR=sd(),{LEVEL:Zn,SPLAT:qR}=ri(),_R=pA(),yY=fA(),PY=vA(),jY=WC(),SY=ER(),{warn:OY}=gC(),xY=id(),TY=/%[scdjifoO%]/g,ld=class extends bY{constructor(e){super({objectMode:!0}),this.configure(e)}child(e){let i=this;return Object.create(i,{write:{value:function(n){let a=Object.assign({},e,n);n instanceof Error&&(a.stack=n.stack,a.message=n.message,a.cause=n.cause),i.write(a)}}})}configure({silent:e,format:i,defaultMeta:n,levels:a,level:r="info",exitOnError:s=!0,transports:o,colors:l,emitErrs:u,formatters:c,padLevels:p,rewriters:d,stripColors:h,exceptionHandlers:g,rejectionHandlers:m}={}){if(this.transports.length&&this.clear(),this.silent=e,this.format=i||this.format||lC()(),this.defaultMeta=n||null,this.levels=a||this.levels||xY.npm.levels,this.level=r,this.exceptions&&this.exceptions.unhandle(),this.rejections&&this.rejections.unhandle(),this.exceptions=new yY(this),this.rejections=new PY(this),this.profilers={},this.exitOnError=s,o&&(o=Array.isArray(o)?o:[o],o.forEach(f=>this.add(f))),l||u||c||p||d||h)throw new Error(["{ colors, emitErrs, formatters, padLevels, rewriters, stripColors } were removed in winston@3.0.0.","Use a custom winston.format(function) instead.","See: https://github.com/winstonjs/winston/tree/master/UPGRADE-3.0.md"].join(` +`));g&&this.exceptions.handle(g),m&&this.rejections.handle(m)}getHighestLogLevel(){let e=Ol(this.levels,this.level);return!this.transports||this.transports.length===0?e:this.transports.reduce((i,n)=>{let a=Ol(this.levels,n.level);return a!==null&&a>i?a:i},e)}isLevelEnabled(e){let i=Ol(this.levels,e);if(i===null)return!1;let n=Ol(this.levels,this.level);return n===null?!1:!this.transports||this.transports.length===0?n>=i:this.transports.findIndex(r=>{let s=Ol(this.levels,r.level);return s===null&&(s=n),s>=i})!==-1}log(e,i,...n){if(arguments.length===1)return e[Zn]=e.level,this._addDefaultMeta(e),this.write(e),this;if(arguments.length===2)return i&&typeof i=="object"?(i[Zn]=i.level=e,this._addDefaultMeta(i),this.write(i),this):(i={[Zn]:e,level:e,message:i},this._addDefaultMeta(i),this.write(i),this);let[a]=n;if(typeof a=="object"&&a!==null&&!(i&&i.match&&i.match(TY))){let s=Object.assign({},this.defaultMeta,a,{[Zn]:e,[qR]:n,level:e,message:i});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,{[Zn]:e,[qR]:n,level:e,message:i})),this}_transform(e,i,n){if(this.silent)return n();e[Zn]||(e[Zn]=e.level),!this.levels[e[Zn]]&&this.levels[e[Zn]]!==0&&console.error("[winston] Unknown logger level: %s",e[Zn]),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,n()}}_final(e){let i=this.transports.slice();kR(i,(n,a)=>{if(!n||n.finished)return setImmediate(a);n.once("finish",a),n.end()},e)}add(e){let i=!_R(e)||e.log.length>2?new jY({transport:e}):e;if(!i._writableState||!i._writableState.objectMode)throw new Error("Transports must WritableStreams in objectMode. Set { objectMode: true }.");return this._onEvent("error",i),this._onEvent("warn",i),this.pipe(i),e.handleExceptions&&this.exceptions.handle(),e.handleRejections&&this.rejections.handle(),this}remove(e){if(!e)return this;let i=e;return(!_R(e)||e.log.length>2)&&(i=this.transports.filter(n=>n.transport===e)[0]),i&&this.unpipe(i),this}clear(){return this.unpipe(),this}close(){return this.exceptions.unhandle(),this.rejections.unhandle(),this.clear(),this.emit("close"),this}setLevels(){OY.deprecated("setLevels")}query(e,i){typeof e=="function"&&(i=e,e={}),e=e||{};let n={},a=Object.assign({},e.query||{});function r(o,l){e.query&&typeof o.formatQuery=="function"&&(e.query=o.formatQuery(a)),o.query(e,(u,c)=>{if(u)return l(u);typeof o.formatResults=="function"&&(c=o.formatResults(c,e.format)),l(null,c)})}function s(o,l){r(o,(u,c)=>{l&&(c=u||c,c&&(n[o.name]=c),l()),l=null})}kR(this.transports.filter(o=>!!o.query),s,()=>i(null,n))}stream(e={}){let i=new AY,n=[];return i._streams=n,i.destroy=()=>{let a=n.length;for(;a--;)n[a].destroy()},this.transports.filter(a=>!!a.stream).forEach(a=>{let r=a.stream(e);r&&(n.push(r),r.on("log",s=>{s.transport=s.transport||[],s.transport.push(a.name),i.emit("log",s)}),r.on("error",s=>{s.transport=s.transport||[],s.transport.push(a.name),i.emit("error",s)}))}),i}startTimer(){return new SY(this)}profile(e,...i){let n=Date.now();if(this.profilers[e]){let a=this.profilers[e];delete this.profilers[e],typeof i[i.length-2]=="function"&&(console.warn("Callback function no longer supported as of winston@3.0.0"),i.pop());let r=typeof i[i.length-1]=="object"?i.pop():{};return r.level=r.level||"info",r.durationMs=n-a,r.message=r.message||e,this.write(r)}return this.profilers[e]=n,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,i){function n(a){e==="error"&&!this.transports.includes(i)&&this.add(i),this.emit(e,a,i)}i["__winston"+e]||(i["__winston"+e]=n.bind(this),i.on(e,i["__winston"+e]))}_addDefaultMeta(e){this.defaultMeta&&Object.assign(e,this.defaultMeta)}};function Ol(t,e){let i=t[e];return!i&&i!==0?null:i}Object.defineProperty(ld.prototype,"transports",{configurable:!1,enumerable:!0,get(){let{pipes:t}=this._readableState;return Array.isArray(t)?t:[t].filter(Boolean)}});HR.exports=ld});var AA=w((due,RR)=>{"use strict";var{LEVEL:MY}=ri(),EY=id(),kY=od(),qY=bl()("winston:create-logger");function _Y(t){return"is"+t.charAt(0).toUpperCase()+t.slice(1)+"Enabled"}RR.exports=function(t={}){t.levels=t.levels||EY.npm.levels;class e extends kY{constructor(a){super(a)}}let i=new e(t);return Object.keys(t.levels).forEach(function(n){if(qY('Define prototype method for "%s"',n),n==="log"){console.warn('Level "log" not defined: conflicts with the method "log". Use a different level name.');return}e.prototype[n]=function(...a){let r=this||i;if(a.length===1){let[s]=a,o=s&&s.message&&s||{message:s};return o.level=o[MY]=n,r._addDefaultMeta(o),r.write(o),this||i}return a.length===0?(r.log(n,""),r):r.log(n,...a)},e.prototype[_Y(n)]=function(){return(this||i).isLevelEnabled(n)}}),i}});var zR=w((gue,IR)=>{"use strict";var HY=AA();IR.exports=class{constructor(e={}){this.loggers=new Map,this.options=e}add(e,i){if(!this.loggers.has(e)){i=Object.assign({},i||this.options);let n=i.transports||this.options.transports;n?i.transports=Array.isArray(n)?n.slice():[n]:i.transports=[];let a=HY(i);a.on("close",()=>this._delete(e)),this.loggers.set(e,a)}return this.loggers.get(e)}get(e,i){return this.add(e,i)}has(e){return!!this.loggers.has(e)}close(e){if(e)return this._removeLogger(e);this.loggers.forEach((i,n)=>this._removeLogger(n))}_removeLogger(e){if(!this.loggers.has(e))return;this.loggers.get(e).close(),this._delete(e)}_delete(e){this.loggers.delete(e)}}});var GR=w(He=>{"use strict";var DR=hC(),{warn:xl}=gC();He.version=H2().version;He.transports=cR();He.config=id();He.addColors=DR.levels;He.format=DR.format;He.createLogger=AA();He.Logger=od();He.ExceptionHandler=fA();He.RejectionHandler=vA();He.Container=zR();He.Transport=ss();He.loggers=new He.Container;var Kn=He.createLogger();Object.keys(He.config.npm.levels).concat(["log","query","stream","add","remove","clear","profile","startTimer","handleExceptions","unhandleExceptions","handleRejections","unhandleRejections","configure","child"]).forEach(t=>He[t]=(...e)=>Kn[t](...e));Object.defineProperty(He,"level",{get(){return Kn.level},set(t){Kn.level=t}});Object.defineProperty(He,"exceptions",{get(){return Kn.exceptions}});Object.defineProperty(He,"rejections",{get(){return Kn.rejections}});["exitOnError"].forEach(t=>{Object.defineProperty(He,t,{get(){return Kn[t]},set(e){Kn[t]=e}})});Object.defineProperty(He,"default",{get(){return{exceptionHandlers:Kn.exceptionHandlers,rejectionHandlers:Kn.rejectionHandlers,transports:Kn.transports}}});xl.deprecated(He,"setLevels");xl.forFunctions(He,"useFormat",["cli"]);xl.forProperties(He,"useFormat",["padLevels","stripColors"]);xl.forFunctions(He,"deprecated",["addRewriter","addFilter","clone","extend"]);xl.forProperties(He,"deprecated",["emitErrs","levelLength"])});var LR=w((fue,UR)=>{var Tl=require("path"),$R=require("fs"),NR=parseInt("0777",8);UR.exports=ds.mkdirp=ds.mkdirP=ds;function ds(t,e,i,n){typeof e=="function"?(i=e,e={}):(!e||typeof e!="object")&&(e={mode:e});var a=e.mode,r=e.fs||$R;a===void 0&&(a=NR),n||(n=null);var s=i||function(){};t=Tl.resolve(t),r.mkdir(t,a,function(o){if(!o)return n=n||t,s(null,n);switch(o.code){case"ENOENT":if(Tl.dirname(t)===t)return s(o);ds(Tl.dirname(t),e,function(l,u){l?s(l,u):ds(t,e,s,u)});break;default:r.stat(t,function(l,u){l||!u.isDirectory()?s(o,n):s(null,n)});break}})}ds.sync=function t(e,i,n){(!i||typeof i!="object")&&(i={mode:i});var a=i.mode,r=i.fs||$R;a===void 0&&(a=NR),n||(n=null),e=Tl.resolve(e);try{r.mkdirSync(e,a),n=n||e}catch(o){switch(o.code){case"ENOENT":n=t(Tl.dirname(e),i,n),t(e,i,n);break;default:var s;try{s=r.statSync(e)}catch{throw o}if(!s.isDirectory())throw o;break}}return n}});var bA=w((wue,WR)=>{function RY(t){this.name="DuplicateSectionError",this.message=t+" already exists",Error.captureStackTrace(this,this.constructor)}function IY(t){this.name=this.constructor.name,this.message="Section "+t+" does not exist.",Error.captureStackTrace(this,this.constructor)}function zY(t,e,i){this.name=this.constructor.name,this.message=`Source contains parsing errors. file: `+t+" line: "+e+` -`+i,Error.captureStackTrace(this,this.constructor)}function qY(t,e,i){this.name=this.constructor.name,this.message=`File contains no section headers. +`+i,Error.captureStackTrace(this,this.constructor)}function DY(t,e,i){this.name=this.constructor.name,this.message=`File contains no section headers. file: `+t+" line: "+e+` -`+i,Error.captureStackTrace(this,this.constructor)}function _Y(t,e,i,n){this.name=this.constructor.name,this.message="Exceeded Maximum Recursion Depth ("+n+") for key "+e+" in section "+t+` -value: `+i,Error.captureStackTrace(this,this.constructor)}UR.exports={DuplicateSectionError:MY,NoSectionError:EY,ParseError:kY,MissingSectionHeaderError:qY,MaximumInterpolationDepthError:_Y}});var FR=w((due,BR)=>{var HY=CA(),LR=new RegExp(/%\(([\w-]+)\)s/),AA=50;function RY(t,e,i){return WR(t,e,i,1)}function WR(t,e,i,n){let a=t.get(e,i,!0);if(n>AA)throw new HY.MaximumInterpolationDepthError(e,i,a,AA);let r=LR.exec(a);for(;r!==null;){let s=r[1],o=WR(t,e,s,n+1);a=a.substr(0,r.index)+o+a.substr(r.index+r[0].length),r=LR.exec(a)}return a}BR.exports={interpolate:RY,MAXIMUM_INTERPOLATION_DEPTH:AA}});var XR=w((gue,YR)=>{var ud=require("util"),xl=require("fs"),VR=require("path"),JR=NR(),ld=CA(),IY=FR(),zY=new RegExp(/^\s*\[([^\]]+)]$/),DY=new RegExp(/^\s*(.*?)\s*[=:]\s*(.*)$/),GY=new RegExp(/^\s*[;#]/),ZR=new RegExp(/\r\n|[\n\r\u0085\u2028\u2029]/g),$Y=ud.promisify(xl.readFile),NY=ud.promisify(xl.writeFile),hue=ud.promisify(xl.stat),UY=ud.promisify(JR);function Si(){this._sections={}}Si.prototype.sections=function(){return Object.keys(this._sections)};Si.prototype.addSection=function(t){if(this._sections.hasOwnProperty(t))throw new ld.DuplicateSectionError(t);this._sections[t]={}};Si.prototype.hasSection=function(t){return this._sections.hasOwnProperty(t)};Si.prototype.keys=function(t){try{return Object.keys(this._sections[t])}catch{throw new ld.NoSectionError(t)}};Si.prototype.hasKey=function(t,e){return this._sections.hasOwnProperty(t)&&this._sections[t].hasOwnProperty(e)};Si.prototype.read=function(t){let e=xl.readFileSync(t).toString("utf8").split(ZR);KR.call(this,t,e)};Si.prototype.readAsync=async function(t){let e=(await $Y(t)).toString("utf8").split(ZR);KR.call(this,t,e)};Si.prototype.get=function(t,e,i){if(this._sections.hasOwnProperty(t))return i?this._sections[t][e]:IY.interpolate(this,t,e)};Si.prototype.getInt=function(t,e,i){if(this._sections.hasOwnProperty(t))return i||(i=10),parseInt(this._sections[t][e],i)};Si.prototype.getFloat=function(t,e){if(this._sections.hasOwnProperty(t))return parseFloat(this._sections[t][e])};Si.prototype.items=function(t){return this._sections[t]};Si.prototype.set=function(t,e,i){this._sections.hasOwnProperty(t)&&(this._sections[t][e]=i)};Si.prototype.removeKey=function(t,e){return this._sections.hasOwnProperty(t)&&this._sections[t].hasOwnProperty(e)?delete this._sections[t][e]:!1};Si.prototype.removeSection=function(t){return this._sections.hasOwnProperty(t)?delete this._sections[t]:!1};Si.prototype.write=function(t,e=!1){if(e){let i=VR.dirname(t);JR.sync(i)}xl.writeFileSync(t,QR.call(this))};Si.prototype.writeAsync=async function(t,e=!1){if(e){let i=VR.dirname(t);await UY(i)}await NY(t,QR.call(this))};function KR(t,e){let i=null;e.forEach((n,a)=>{if(!n||n.match(GY))return;let r=zY.exec(n);if(r){let s=r[1];i={},this._sections[s]=i}else if(i)if(r=DY.exec(n),r){let s=r[1];i[s]=r[2]}else throw new ld.ParseError(t,a,n);else throw new ld.MissingSectionHeaderError(t,a,n)})}function QR(){let t="",e;for(e in this._sections){if(!this._sections.hasOwnProperty(e))continue;t+="["+e+`] +`+i,Error.captureStackTrace(this,this.constructor)}function GY(t,e,i,n){this.name=this.constructor.name,this.message="Exceeded Maximum Recursion Depth ("+n+") for key "+e+" in section "+t+` +value: `+i,Error.captureStackTrace(this,this.constructor)}WR.exports={DuplicateSectionError:RY,NoSectionError:IY,ParseError:zY,MissingSectionHeaderError:DY,MaximumInterpolationDepthError:GY}});var JR=w((vue,VR)=>{var $Y=bA(),BR=new RegExp(/%\(([\w-]+)\)s/),yA=50;function NY(t,e,i){return FR(t,e,i,1)}function FR(t,e,i,n){let a=t.get(e,i,!0);if(n>yA)throw new $Y.MaximumInterpolationDepthError(e,i,a,yA);let r=BR.exec(a);for(;r!==null;){let s=r[1],o=FR(t,e,s,n+1);a=a.substr(0,r.index)+o+a.substr(r.index+r[0].length),r=BR.exec(a)}return a}VR.exports={interpolate:NY,MAXIMUM_INTERPOLATION_DEPTH:yA}});var iI=w((Aue,eI)=>{var cd=require("util"),Ml=require("fs"),ZR=require("path"),KR=LR(),ud=bA(),UY=JR(),LY=new RegExp(/^\s*\[([^\]]+)]$/),WY=new RegExp(/^\s*(.*?)\s*[=:]\s*(.*)$/),BY=new RegExp(/^\s*[;#]/),QR=new RegExp(/\r\n|[\n\r\u0085\u2028\u2029]/g),FY=cd.promisify(Ml.readFile),VY=cd.promisify(Ml.writeFile),Cue=cd.promisify(Ml.stat),JY=cd.promisify(KR);function Si(){this._sections={}}Si.prototype.sections=function(){return Object.keys(this._sections)};Si.prototype.addSection=function(t){if(this._sections.hasOwnProperty(t))throw new ud.DuplicateSectionError(t);this._sections[t]={}};Si.prototype.hasSection=function(t){return this._sections.hasOwnProperty(t)};Si.prototype.keys=function(t){try{return Object.keys(this._sections[t])}catch{throw new ud.NoSectionError(t)}};Si.prototype.hasKey=function(t,e){return this._sections.hasOwnProperty(t)&&this._sections[t].hasOwnProperty(e)};Si.prototype.read=function(t){let e=Ml.readFileSync(t).toString("utf8").split(QR);YR.call(this,t,e)};Si.prototype.readAsync=async function(t){let e=(await FY(t)).toString("utf8").split(QR);YR.call(this,t,e)};Si.prototype.get=function(t,e,i){if(this._sections.hasOwnProperty(t))return i?this._sections[t][e]:UY.interpolate(this,t,e)};Si.prototype.getInt=function(t,e,i){if(this._sections.hasOwnProperty(t))return i||(i=10),parseInt(this._sections[t][e],i)};Si.prototype.getFloat=function(t,e){if(this._sections.hasOwnProperty(t))return parseFloat(this._sections[t][e])};Si.prototype.items=function(t){return this._sections[t]};Si.prototype.set=function(t,e,i){this._sections.hasOwnProperty(t)&&(this._sections[t][e]=i)};Si.prototype.removeKey=function(t,e){return this._sections.hasOwnProperty(t)&&this._sections[t].hasOwnProperty(e)?delete this._sections[t][e]:!1};Si.prototype.removeSection=function(t){return this._sections.hasOwnProperty(t)?delete this._sections[t]:!1};Si.prototype.write=function(t,e=!1){if(e){let i=ZR.dirname(t);KR.sync(i)}Ml.writeFileSync(t,XR.call(this))};Si.prototype.writeAsync=async function(t,e=!1){if(e){let i=ZR.dirname(t);await JY(i)}await VY(t,XR.call(this))};function YR(t,e){let i=null;e.forEach((n,a)=>{if(!n||n.match(BY))return;let r=LY.exec(n);if(r){let s=r[1];i={},this._sections[s]=i}else if(i)if(r=WY.exec(n),r){let s=r[1];i[s]=r[2]}else throw new ud.ParseError(t,a,n);else throw new ud.MissingSectionHeaderError(t,a,n)})}function XR(){let t="",e;for(e in this._sections){if(!this._sections.hasOwnProperty(e))continue;t+="["+e+`] `;let i=this._sections[e],n;for(n in i){if(!i.hasOwnProperty(n))continue;let a=i[n];t+=n+"="+a+` `}t+=` -`}return t}YR.exports=Si});var tI=w((mue,nI)=>{"use strict";var LY=bq(),WY=d_();function iI(t){return t&&typeof t=="object"&&"default"in t?t:{default:t}}var bA=iI(LY),eI=iI(WY),BY={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"},Tl=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()}},Zt=class{constructor(e,i,n,a,r,s){this.setUrl(e),this.setMethod(i),n&&this.setHeaders(n),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}},cd=class extends Tl{constructor(e,i){super(),e!=null?this.setTimeout(e):this.timeout=16e3,i!=null?this.setHttpsAgent(i):this.httpsAgent,this._axiosInstance=bA.default.create({})}enableHooks(){this.preHook&&typeof this.preHook=="function"&&(this.requestInterceptorId!==void 0&&bA.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&&bA.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 Zt))throw new Error("httpRequestOptions must be instance of HttpRequestOptions ");let i=this.toAxiosConfig(e);return this._axiosInstance.request(i)}toAxiosConfig(e){if(!e.url||!e.method)throw new Error("Mandatory fields 'url' and 'method' must be set before making a request");var i={url:e.url,method:e.method};return e.params&&(i.params=e.params),e.headers&&(i.headers=e.headers),e.data&&(i.data=e.data),this.timeout!=null&&this.timeout!=null&&(i.timeout=this.timeout),this.httpsAgent&&(i.httpsAgent=this.httpsAgent),i}},FY={levels:{none:0,error:1,debug:2,trace:3}},ds={level:{LNone:"none",LError:"error",LDebug:"debug",LTrace:"trace"}},Qa={formats:{JSON:"json",TEXT:"text"}},yA=class{get logLevelEnum(){return ds}get logFormatEnum(){return Qa}constructor(){this.log_level=ds.level.LNone,this.log_format=Qa.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=zR();this.logger=e.createLogger({levels:FY.levels,level:this.log_level}),this.log_file_path&&this.log_file_path!==""&&(this.log_format===Qa.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(i=>(i.level=i.level.toUpperCase(),i))(),e.format.simple()),filename:this.log_file_path}))),this.log_to_console&&(this.log_format===Qa.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(i=>(i.level=i.level.toUpperCase(),i))(),e.format.simple())})))}}log(e,i,n,a,r,s,o,l){var u=this.formatLog(e,i,n,a,r,s,o,l);if(typeof window<"u"){var c=this.calculateLogLevel(e);c>0&&this.log_to_console===!0&&(this.log_format===this.logFormatEnum.formats.JSON?console.log(u):console.log(`${e.toUpperCase()}: ${u}`))}else this.logger.transports.length>0&&this.logger.log(e,u)}calculateLogLevel(e){switch(this.log_level){case this.logLevelEnum.level.LError:return e!==this.logLevelEnum.level.LError?-1:1;case this.logLevelEnum.level.LDebug:return e===this.logLevelEnum.level.LTrace?-1:1;case this.logLevelEnum.level.LTrace:return 1;default:return-1}}formatLog(e,i,n,a,r,s,o,l){var u,c=r?JSON.parse(JSON.stringify(r)):null,p=s?JSON.parse(JSON.stringify(s)):null,d=o?JSON.parse(JSON.stringify(o)):null,h=l?JSON.parse(JSON.stringify(l)):null;return r&&(c.Authorization="[REDACTED]"),this.log_request_body||(d=void 0),this.log_response_body||(h=void 0),this.log_format&&this.log_format===Qa.formats.JSON?(u={level:e,date:new Date().toISOString(),method:n,url:decodeURIComponent(a),correlationId:p&&p["inin-correlation-id"]?p["inin-correlation-id"]:"",statusCode:i},c&&(u.requestHeaders=c),p&&(u.responseHeaders=p),d&&(u.requestBody=d),h&&(u.responseBody=h)):u=`${new Date().toISOString()} +`}return t}eI.exports=Si});var rI=w((bue,aI)=>{"use strict";var ZY=Pq(),KY=g_();function tI(t){return t&&typeof t=="object"&&"default"in t?t:{default:t}}var PA=tI(ZY),nI=tI(KY),QY={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"},El=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()}},Zt=class{constructor(e,i,n,a,r,s){this.setUrl(e),this.setMethod(i),n&&this.setHeaders(n),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}},pd=class extends El{constructor(e,i){super(),e!=null?this.setTimeout(e):this.timeout=16e3,i!=null?this.setHttpsAgent(i):this.httpsAgent,this._axiosInstance=PA.default.create({})}enableHooks(){this.preHook&&typeof this.preHook=="function"&&(this.requestInterceptorId!==void 0&&PA.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&&PA.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 Zt))throw new Error("httpRequestOptions must be instance of HttpRequestOptions ");let i=this.toAxiosConfig(e);return this._axiosInstance.request(i)}toAxiosConfig(e){if(!e.url||!e.method)throw new Error("Mandatory fields 'url' and 'method' must be set before making a request");var i={url:e.url,method:e.method};return e.params&&(i.params=e.params),e.headers&&(i.headers=e.headers),e.data&&(i.data=e.data),this.timeout!=null&&this.timeout!=null&&(i.timeout=this.timeout),this.httpsAgent&&(i.httpsAgent=this.httpsAgent),i}},YY={levels:{none:0,error:1,debug:2,trace:3}},hs={level:{LNone:"none",LError:"error",LDebug:"debug",LTrace:"trace"}},Qa={formats:{JSON:"json",TEXT:"text"}},jA=class{get logLevelEnum(){return hs}get logFormatEnum(){return Qa}constructor(){this.log_level=hs.level.LNone,this.log_format=Qa.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=GR();this.logger=e.createLogger({levels:YY.levels,level:this.log_level}),this.log_file_path&&this.log_file_path!==""&&(this.log_format===Qa.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(i=>(i.level=i.level.toUpperCase(),i))(),e.format.simple()),filename:this.log_file_path}))),this.log_to_console&&(this.log_format===Qa.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(i=>(i.level=i.level.toUpperCase(),i))(),e.format.simple())})))}}log(e,i,n,a,r,s,o,l){var u=this.formatLog(e,i,n,a,r,s,o,l);if(typeof window<"u"){var c=this.calculateLogLevel(e);c>0&&this.log_to_console===!0&&(this.log_format===this.logFormatEnum.formats.JSON?console.log(u):console.log(`${e.toUpperCase()}: ${u}`))}else this.logger.transports.length>0&&this.logger.log(e,u)}calculateLogLevel(e){switch(this.log_level){case this.logLevelEnum.level.LError:return e!==this.logLevelEnum.level.LError?-1:1;case this.logLevelEnum.level.LDebug:return e===this.logLevelEnum.level.LTrace?-1:1;case this.logLevelEnum.level.LTrace:return 1;default:return-1}}formatLog(e,i,n,a,r,s,o,l){var u,c=r?JSON.parse(JSON.stringify(r)):null,p=s?JSON.parse(JSON.stringify(s)):null,d=o?JSON.parse(JSON.stringify(o)):null,h=l?JSON.parse(JSON.stringify(l)):null;return r&&(c.Authorization="[REDACTED]"),this.log_request_body||(d=void 0),this.log_response_body||(h=void 0),this.log_format&&this.log_format===Qa.formats.JSON?(u={level:e,date:new Date().toISOString(),method:n,url:decodeURIComponent(a),correlationId:p&&p["inin-correlation-id"]?p["inin-correlation-id"]:"",statusCode:i},c&&(u.requestHeaders=c),p&&(u.responseHeaders=p),d&&(u.requestBody=d),h&&(u.responseBody=h)):u=`${new Date().toISOString()} === REQUEST === ${this.formatValue("URL",decodeURIComponent(a))}${this.formatValue("Method",n)}${this.formatValue("Headers",this.formatHeaderString(c))}${this.formatValue("Body",d?JSON.stringify(d,null,2):"")} === RESPONSE === ${this.formatValue("Status",i)}${this.formatValue("Headers",this.formatHeaderString(p))}${this.formatValue("CorrelationId",p&&p["inin-correlation-id"]?p["inin-correlation-id"]:"")}${this.formatValue("Body",h?JSON.stringify(h,null,2):"")}`,u}formatHeaderString(e){var i="";if(!e)return i;for(let[n,a]of Object.entries(e))i+=` ${n}: ${a}`;return i}formatValue(e,i){return!i||i===""||i==="{}"?"":`${e}: ${i} -`}getLogLevel(e){switch(e){case"error":return ds.level.LError;case"debug":return ds.level.LDebug;case"trace":return ds.level.LTrace;default:return ds.level.LNone}}getLogFormat(e){switch(e){case"json":return Qa.formats.JSON;default:return Qa.formats.TEXT}}},PA=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"),i=require("path");this.configPath=i.join(e.homedir(),".genesyscloudjavascript","config")}this.watchedConfigPath,this.refresh_access_token=!0,this.refresh_token_wait_max=10,this._live_reload_config=!0,this.host,this.environment,this.basePath,this.authUrl,this.config,this.gateway=void 0,this.logger=new yA,this.setEnvironment(),this.liveLoadConfig()}get live_reload_config(){return this._live_reload_config}set live_reload_config(e){if(typeof window>"u"){let i=require("fs");e!=null&&this.live_reload_config!==e&&(this._live_reload_config=e,this.watchedConfigPath&&(i.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},(i,n)=>{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 i=require("fs");e&&e!==this.configPath?(this.configPath=e,this.watchedConfigPath&&(i.unwatchFile(this.watchedConfigPath),this.watchedConfigPath=null),this.liveLoadConfig()):!e&&this.configPath&&(this.configPath="",this.watchedConfigPath&&(i.unwatchFile(this.watchedConfigPath),this.watchedConfigPath=null));return}this.configPath=""}updateConfigFromFile(){if(typeof window>"u"&&this.configPath){let n=XR();try{var e=new n;e.read(this.configPath),this.config=e}catch(a){if(a.name&&a.name==="MissingSectionHeaderError"){var i=require("fs").readFileSync(this.configPath,"utf8");this.config={_sections:JSON.parse(i)}}}this.config&&this.updateConfigValues()}}updateConfigValues(){if(this.logger.log_level=this.logger.getLogLevel(this.getConfigString("logging","log_level")),this.logger.log_format=this.logger.getLogFormat(this.getConfigString("logging","log_format")),this.logger.log_to_console=this.getConfigBoolean("logging","log_to_console")!==void 0?this.getConfigBoolean("logging","log_to_console"):this.logger.log_to_console,this.logger.log_file_path=this.getConfigString("logging","log_file_path")!==void 0?this.getConfigString("logging","log_file_path"):this.logger.log_file_path,this.logger.log_response_body=this.getConfigBoolean("logging","log_response_body")!==void 0?this.getConfigBoolean("logging","log_response_body"):this.logger.log_response_body,this.logger.log_request_body=this.getConfigBoolean("logging","log_request_body")!==void 0?this.getConfigBoolean("logging","log_request_body"):this.logger.log_request_body,this.refresh_access_token=this.getConfigBoolean("reauthentication","refresh_access_token")!==void 0?this.getConfigBoolean("reauthentication","refresh_access_token"):this.refresh_access_token,this.refresh_token_wait_max=this.getConfigInt("reauthentication","refresh_token_wait_max")!==void 0?this.getConfigInt("reauthentication","refresh_token_wait_max"):this.refresh_token_wait_max,this.live_reload_config=this.getConfigBoolean("general","live_reload_config")!==void 0?this.getConfigBoolean("general","live_reload_config"):this.live_reload_config,this.host=this.getConfigString("general","host")!==void 0?this.getConfigString("general","host"):this.host,this.getConfigString("gateway","host")!==void 0){let e={host:this.getConfigString("gateway","host")};this.getConfigString("gateway","protocol")!==void 0&&(e.protocol=this.getConfigString("gateway","protocol")),this.getConfigInt("gateway","port")!==void 0&&(e.port=this.getConfigInt("gateway","port")),this.getConfigString("gateway","path_params_login")!==void 0&&(e.path_params_login=this.getConfigString("gateway","path_params_login")),this.getConfigString("gateway","path_params_api")!==void 0&&(e.path_params_api=this.getConfigString("gateway","path_params_api")),this.getConfigString("gateway","username")!==void 0&&(e.username=this.getConfigString("gateway","username")),this.getConfigString("gateway","password")!==void 0&&(e.password=this.getConfigString("gateway","password")),this.setGateway(e)}else this.setGateway();this.setEnvironment(),this.logger.setLogger()}setGateway(e){e?(this.gateway={host:""},e.protocol?this.gateway.protocol=e.protocol:this.gateway.protocol="https",e.host?this.gateway.host=e.host:this.gateway.host="",e.port&&e.port>-1?this.gateway.port=e.port:this.gateway.port=-1,e.path_params_login?(this.gateway.path_params_login=e.path_params_login,this.gateway.path_params_login=this.gateway.path_params_login.replace(/\/+$/,"")):this.gateway.path_params_login="",e.path_params_api?(this.gateway.path_params_api=e.path_params_api,this.gateway.path_params_api=this.gateway.path_params_api.replace(/\/+$/,"")):this.gateway.path_params_api="",e.username&&(this.gateway.username=e.username),e.password&&(this.gateway.password=e.password)):this.gateway=void 0}setEnvironment(e){e?this.environment=e:this.environment=this.host?this.host:"mypurecloud.com",this.environment=this.environment.replace(/\/+$/,""),this.environment.startsWith("https://")&&(this.environment=this.environment.substring(8)),this.environment.startsWith("http://")&&(this.environment=this.environment.substring(7)),this.environment.startsWith("api.")&&(this.environment=this.environment.substring(4)),this.basePath=`https://api.${this.environment}`,this.authUrl=`https://login.${this.environment}`}getConfUrl(e,i){if(!this.gateway||!this.gateway.host)return i;var n=this.gateway.protocol+"://"+this.gateway.host;return this.gateway.port>-1&&(n=n+":"+this.gateway.port.toString()),e==="login"?this.gateway.path_params_login&&(this.gateway.path_params_login.startsWith("/")?n=n+this.gateway.path_params_login:n=n+"/"+this.gateway.path_params_login):this.gateway.path_params_api&&(this.gateway.path_params_api.startsWith("/")?n=n+this.gateway.path_params_api:n=n+"/"+this.gateway.path_params_api),n}getConfigString(e,i){if(this.config._sections[e])return this.config._sections[e][i]}getConfigBoolean(e,i){if(this.config._sections[e]&&this.config._sections[e][i]!==void 0)return typeof this.config._sections[e][i]=="string"?this.config._sections[e][i]==="true":this.config._sections[e][i]}getConfigInt(e,i){if(this.config._sections[e]&&this.config._sections[e][i])return typeof this.config._sections[e][i]=="string"?parseInt(this.config._sections[e][i]):this.config._sections[e][i]}},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;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 PA,typeof window<"u"&&(window.ApiClient=this)}setReturnExtendedResponses(e){this.returnExtended=e}setPersistSettings(e,i){this.persistSettings=e,this.settingsPrefix=i?i.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 i=JSON.parse(JSON.stringify(this.authData));delete i.state,localStorage.setItem(`${this.settingsPrefix}_auth_data`,JSON.stringify(i))}catch(i){console.error(i)}}_loadSettings(){if(this.persistSettings!==!0||!this.hasLocalStorage)return;let e=this.authData.state;this.authData=localStorage.getItem(`${this.settingsPrefix}_auth_data`),this.authData?this.authData=JSON.parse(this.authData):this.authData={},this.authData.accessToken&&this.setAccessToken(this.authData.accessToken),this.authData.state=e}_clearSettings(){try{if(this.authData&&this.authData.accessToken&&(this.authData.accessToken=null),this.authentications["PureCloud OAuth"]&&this.authentications["PureCloud OAuth"].accessToken&&(this.authentications["PureCloud OAuth"].accessToken=null),this.authData&&this.authData.state&&(this.authData.state=null),this.authData&&this.authData.error&&(this.authData.error=null),this.authData&&this.authData.error_description&&(this.authData.error_description=null),this.authData&&this.authData.tokenExpiryTime&&(this.authData.tokenExpiryTime=0),this.authData&&this.authData.tokenExpiryTimeString&&(this.authData.tokenExpiryTimeString=null),this.persistSettings!==!0||!this.hasLocalStorage)return;let e=JSON.parse(JSON.stringify(this.authData));delete e.state,localStorage.setItem(`${this.settingsPrefix}_auth_data`,JSON.stringify(e))}catch(e){console.error(e)}}setEnvironment(e){this.config.setEnvironment(e)}setDefaultHeaders(e){if(!e||typeof e!="object")throw new Error("default headers must be a map");this.defaultHeaders=e}getDefaultHeaders(){return this.defaultHeaders}setGenesysAppHeader(e){if(!e||typeof e!="string")throw new Error("headerValue must be a non empty string");this.defaultHeaders?this.defaultHeaders["Genesys-App"]=e:this.defaultHeaders={"Genesys-App":e}}getGenesysAppHeader(){return this.defaultHeaders&&this.defaultHeaders["Genesys-App"]?this.defaultHeaders["Genesys-App"]:null}setHttpClient(e){if(!(e instanceof Tl))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 cd(this.timeout,this.proxyAgent),this.httpClient)}setMTLSCertificates(e,i,n){if(typeof window>"u"){let a={};e&&(a.cert=require("fs").readFileSync(e)),i&&(a.key=require("fs").readFileSync(i)),n&&(a.ca=require("fs").readFileSync(n)),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,i,n){if(typeof window>"u"){let a={};e&&(a.cert=e),i&&(a.key=i),n&&(a.ca=n),a.rejectUnauthorized=!0,this.proxyAgent=new require("https").Agent(a),this.getHttpClient().setHttpsAgent(this.proxyAgent)}else throw new Error("MTLS authentication is managed by the Browser itself. MTLS certificates cannot be set via code on Browser.")}setGateway(e){this.config.setGateway(e)}loginImplicitGrant(e,i,n){let a=this._setValuesFromUrlHash();return this.clientId=e,this.redirectUri=i,n||(n={}),new Promise((r,s)=>{if(n.org&&!n.provider?s(new Error("opts.provider must be set if opts.org is set")):n.provider&&!n.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&&n.state&&(this.authData.state=n.state),r(this.authData)}).catch(o=>{var l={client_id:encodeURIComponent(this.clientId),redirect_uri:encodeURIComponent(this.redirectUri),response_type:"token"};n.state&&(l.state=encodeURIComponent(n.state)),n.org&&(l.org=encodeURIComponent(n.org)),n.provider&&(l.provider=encodeURIComponent(n.provider)),n.prompt&&n.prompt=="login"&&(l.prompt=encodeURIComponent(n.prompt));var u=this._buildAuthUrl("oauth/authorize",l);window.location.replace(u)})})}loginClientCredentialsGrant(e,i){this.clientId=e;var n=Buffer.from(`${e}:${i}`).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 ${n}`};var l=new Zt(`${a}/oauth/token`,"POST",o,null,"grant_type=client_credentials",this.timeout);this.getHttpClient().request(l).then(c=>{this.config.logger.log("trace",c.status,"POST",`${a}/oauth/token`,o,c.headers,{grant_type:"client_credentials"},void 0),this.config.logger.log("debug",c.status,"POST",`${a}/oauth/token`,o,void 0,{grant_type:"client_credentials"},void 0),this.setAccessToken(c.data.access_token),this.authData.tokenExpiryTime=new Date().getTime()+c.data.expires_in*1e3,this.authData.tokenExpiryTimeString=new Date(this.authData.tokenExpiryTime).toUTCString(),r(this.authData)}).catch(c=>{c.response&&this.config.logger.log("error",c.response.status,"POST",`${a}/oauth/token`,o,c.response.headers,{grant_type:"client_credentials"},c.response.data),s(c)})})}loginSaml2BearerGrant(e,i,n,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+":"+i).toString("base64"),u=this._formAuthRequest(l,{grant_type:"urn:ietf:params:oauth:grant-type:saml2-bearer",orgName:n,assertion:a});u.proxy=this.proxy;var c={grant_type:"urn:ietf:params:oauth:grant-type:saml2-bearer",orgName:n,assertion:a};u.then(p=>{this.config.logger.log("trace",p.status,"POST",`${r}/oauth/token`,u.headers,p.headers,c,void 0),this.config.logger.log("debug",p.status,"POST",`${r}/oauth/token`,u.headers,void 0,c,void 0);var d=p.data.access_token;this.setAccessToken(d),this.authData.tokenExpiryTime=new Date().getTime()+p.data.expires_in*1e3,this.authData.tokenExpiryTimeString=new Date(this.authData.tokenExpiryTime).toUTCString(),s(this.authData)}).catch(p=>{p.response&&this.config.logger.log("error",p.response.status,"POST",`${r}/oauth/token`,u.headers,p.response.headers,c,p.response.data),o(p)})})}authorizePKCEGrant(e,i,n,a){this.clientId=e;var r=this.config.getConfUrl("login",`https://login.${this.config.environment}`);return new Promise((s,o)=>{var l={"Content-Type":"application/x-www-form-urlencoded"},u=eI.default.stringify({grant_type:"authorization_code",code:n,code_verifier:i,client_id:e,redirect_uri:a}),c=new Zt(`${r}/oauth/token`,"POST",l,null,u,this.timeout);let p=this.getHttpClient();var d={grant_type:"authorization_code",code:n,code_verifier:i,client_id:e,redirect_uri:a};p.request(c).then(h=>{this.config.logger.log("trace",h.status,"POST",`${r}/oauth/token`,c.headers,h.headers,d,void 0),this.config.logger.log("debug",h.status,"POST",`${r}/oauth/token`,c.headers,void 0,d,void 0);var g=h.data.access_token;let m={accessToken:g};h.data.expires_in!==null&&h.data.expires_in!==void 0&&(m.tokenExpiryTime=new Date().getTime()+h.data.expires_in*1e3,m.tokenExpiryTimeString=new Date(m.tokenExpiryTime).toUTCString()),this._saveSettings(m),s(this.authData)}).catch(h=>{h.response&&this.config.logger.log("error",h.response.status,"POST",`${r}/oauth/token`,c.headers,h.response.headers,d,h.response.data),o(h)})})}generatePKCECodeVerifier(e){if(e<43||e>128)throw new Error("PKCE Code Verifier (length) must be between 43 and 128 characters");if(typeof window>"u")try{let i=require("crypto").getRandomValues,n="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-._~";return Array.from(i(new Uint32Array(e))).map(r=>n[r%n.length]).join("")}catch{throw new Error("Crypto module is missing/not supported.")}else{let i="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-._~";return Array.from(crypto.getRandomValues(new Uint32Array(e))).map(a=>i[a%i.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 i=require("crypto").createHash,n=new TextEncoder().encode(e);return new Promise((a,r)=>{let s=i("sha256").update(n).digest(),o=Buffer.from(s).toString("base64url");a(o)})}catch{throw new Error("Crypto module is missing/not supported.")}else{let i=new TextEncoder().encode(e);return new Promise((n,a)=>{window.crypto.subtle.digest("SHA-256",i).then(r=>{let o=btoa(String.fromCharCode(...new Uint8Array(r))).replaceAll("+","-").replaceAll("/","_");o=o.split("=")[0],n(o)}).catch(r=>a(new Error(`Code Challenge Error ${r}`)))})}}loginPKCEGrant(e,i,n,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=i,this.codeVerifier=a,n||(n={}),new Promise((s,o)=>{if(n.org&&!n.provider)return o(new Error("opts.provider must be set if opts.org is set"));if(n.provider&&!n.org)return o(new Error("opts.org must be set if opts.provider is set"));if(r&&r.error)return this.hasLocalStorage&&sessionStorage.removeItem("genesys_cloud_sdk_pkce_code_verifier"),this._saveSettings({accessToken:void 0}),o(new Error(`[${r.error}] ${r.error_description}`));r&&r.code?(this.codeVerifier||this.hasLocalStorage&&(this.codeVerifier=sessionStorage.getItem("genesys_cloud_sdk_pkce_code_verifier")),this.authorizePKCEGrant(this.clientId,this.codeVerifier,r.code,this.redirectUri).then(()=>{this._testTokenAccess().then(()=>{!this.authData.state&&r.state&&(this.authData.state=r.state),this.hasLocalStorage&&sessionStorage.removeItem("genesys_cloud_sdk_pkce_code_verifier"),s(this.authData)}).catch(l=>(this._saveSettings({accessToken:void 0}),this.hasLocalStorage&&sessionStorage.removeItem("genesys_cloud_sdk_pkce_code_verifier"),o(new Error(`[${l.name}] ${l.msg}`))))}).catch(l=>(this._saveSettings({accessToken:void 0}),this.hasLocalStorage&&sessionStorage.removeItem("genesys_cloud_sdk_pkce_code_verifier"),o(new Error(`[${l.name}] ${l.msg}`))))):this._testTokenAccess().then(()=>{!this.authData.state&&n.state&&(this.authData.state=n.state),s(this.authData)}).catch(l=>{this.codeVerifier||(this.codeVerifier=this.generatePKCECodeVerifier(128),this.hasLocalStorage&&sessionStorage.setItem("genesys_cloud_sdk_pkce_code_verifier",this.codeVerifier)),this.computePKCECodeChallenge(this.codeVerifier).then(u=>{var c={client_id:encodeURIComponent(this.clientId),redirect_uri:encodeURIComponent(this.redirectUri),code_challenge:encodeURIComponent(u),response_type:"code",code_challenge_method:"S256"};n.state&&(c.state=encodeURIComponent(n.state)),n.org&&(c.org=encodeURIComponent(n.org)),n.provider&&(c.provider=encodeURIComponent(n.provider)),n.prompt&&n.prompt=="login"&&(c.prompt=encodeURIComponent(n.prompt));var p=this._buildAuthUrl("oauth/authorize",c);window.location.replace(p)}).catch(u=>o(new Error(`[${u.name}]`)))})})}_setValuesFromUrlQuery(){if(!(typeof window<"u"&&window.location.search))return;let e={},i=new URLSearchParams(window.location.search),n=i.get("code"),a=i.get("error"),r=i.get("error_description"),s=i.get("state");if(a)return e.error=a,r&&(e.error_description=r),e;n&&(e.code=n,s&&(e.state=s));var o,l,u=window.location;return"replaceState"in history?history.replaceState("",document.title,u.pathname):(o=document.body.scrollTop,l=document.body.scrollLeft,history.pushState("",document.title,u.pathname),document.body.scrollTop=o,document.body.scrollLeft=l),e}loginCodeAuthorizationGrant(e,i,n,a){return this.clientId=e,this.clientSecret=i,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+":"+i).toString("base64"),l=this._formAuthRequest(o,{grant_type:"authorization_code",code:n,redirect_uri:a});l.proxy=this.proxy;var u={grant_type:"authorization_code",code:n,redirect_uri:a};this._handleCodeAuthorizationResponse(l,u,r,s)})}refreshCodeAuthorizationGrant(e,i,n){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+":"+i).toString("base64"),o=this._formAuthRequest(s,{grant_type:"refresh_token",refresh_token:n});o.proxy=this.proxy;var l={grant_type:"refresh_token",refresh_token:n};this._handleCodeAuthorizationResponse(o,l,a,r)})}_handleCodeAuthorizationResponse(e,i,n,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,i,void 0),this.config.logger.log("debug",s.status,"POST",`${r}/oauth/token`,e.headers,void 0,i,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(),n(this.authData)}).catch(s=>{s.response&&this.config.logger.log("error",s.response.status,"POST",`${r}/oauth/token`,e.headers,s.response.headers,i,s.response.data),a(s)})}_formAuthRequest(e,i){var n=this.config.getConfUrl("login",`https://login.${this.config.environment}`),a={Authorization:"Basic "+e,"Content-Type":"application/x-www-form-urlencoded"},r=new Zt(`${n}/oauth/token`,"POST",a,null,eI.default.stringify(i),this.timeout);return this.getHttpClient().request(r)}_handleExpiredAccessToken(){return new Promise((e,i)=>{if(typeof window<"u"){i(new Error("This method is not supported in a browser."));return}this.refreshInProgress?this._sleep(this.config.refresh_token_wait_max).then(()=>{this.refreshInProgress?i(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(n=>{this.refreshInProgress=!1,i(n)}))})}_sleep(e){return new Promise(i=>setTimeout(i,e))}_testTokenAccess(){return new Promise((e,i)=>{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(()=>{e()}).catch(n=>{this._saveSettings({accessToken:void 0}),i(n)})})}_setValuesFromUrlHash(){if(!(typeof window<"u"&&window.location.hash))return;let e=new RegExp("^#*(.+?)=(.+?)$","i"),i={};if(window.location.hash.split("&").forEach(s=>{let o=e.exec(s);o&&(i[o[1]]=decodeURIComponent(decodeURIComponent(o[2].replace(/\+/g,"%20"))))}),i.error)return i;if(i.access_token){let s={};i.state&&(s.state=i.state),i.expires_in&&(s.tokenExpiryTime=new Date().getTime()+parseInt(i.expires_in.replace(/\+/g,"%20"))*1e3,s.tokenExpiryTimeString=new Date(s.tokenExpiryTime).toUTCString()),s.accessToken=i.access_token.replace(/\+/g,"%20");var n,a,r=window.location;"replaceState"in history?history.replaceState("",document.title,r.pathname+r.search):(n=document.body.scrollTop,a=document.body.scrollLeft,r.hash="",document.body.scrollTop=n,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 i={client_id:encodeURIComponent(this.clientId)};e&&(i.redirect_uri=encodeURI(e));var n=this._buildAuthUrl("logout",i);window.location.replace(n)}_buildAuthUrl(e,i){i||(i={});var n=this.config.getConfUrl("login",this.config.authUrl);return Object.keys(i).reduce((a,r)=>i[r]?`${a}&${r}=${i[r]}`:a,`${n}/${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 i={};for(var n in e)e.hasOwnProperty(n)&&e[n]!==void 0&&(i[encodeURIComponent(n)]=Array.isArray(e[n])?e[n].join(","):this.paramToString(e[n]));return i}addHeaders(e,...i){return e?e=Object.assign(e,...i):e=Object.assign(...i),e}buildUrl(e,i){e.match(/^\//)||(e=`/${e}`);var n=this.config.getConfUrl("api",this.config.basePath)+e;return n=n.replace(/\{([\w-]+)\}/g,(a,r)=>{var s;return i.hasOwnProperty(r)?s=this.paramToString(i[r]):s=a,encodeURIComponent(s)}),n}isJsonMime(e){return!!(e&&e.match(/^application\/json(;.*)?$/i))}jsonPreferredMime(e){for(var i=0;i"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 i={};for(var n in e)if(e.hasOwnProperty(n)&&e[n]!==void 0){var a=e[n];this.isFileParam(a)||Array.isArray(a)?i[n]=a:i[n]=this.paramToString(a)}return i}buildCollectionParam(e,i){if(e)switch(Array.isArray(e)||(e=[e]),i){case"csv":return e.map(n=>this.paramToString(n)).join(",");case"ssv":return e.map(n=>this.paramToString(n)).join(" ");case"tsv":return e.map(n=>this.paramToString(n)).join(" ");case"pipes":return e.map(n=>this.paramToString(n)).join("|");case"multi":return e.map(n=>this.paramToString(n));default:throw new Error(`Unknown collection format: ${i}`)}}applyAuthToRequest(e,i){i.forEach(n=>{var a=this.authentications[n];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,i,n,a,r,s,o,l,u,c,p){return new Promise((d,h)=>{g(this);function g(m){var f=m.buildUrl(e,n),v=new Zt(f,i,null,m.serialize(a),null,m.timeout);m.applyAuthToRequest(v,l);let y=m.defaultHeaders,A=m.normalizeParams(r);if(v.headers=m.addHeaders(v.headers,y,A),p){if(typeof p!="object")throw new Error("Per-request headers must be a valid object");for(let[k,Q]of Object.entries(p)){if(typeof k!="string"||typeof Q!="string")throw new Error(`Invalid header: "${k}" must have string name and value`);if(!/^[!#$%&'*+\-.0-9A-Z^_`a-z|~]+$/.test(k))throw new Error(`Invalid header name: "${k}" - must be a valid HTTP token`);for(let Z=0;Z=33&&ie<=126||ie===32||ie===9||ie>=128&&ie<=255))throw new Error(`Invalid header value for "${k}": contains invalid characters`)}v.headers[k]=Q}}var b=m.jsonPreferredMime(u);if(b?v.headers["Content-Type"]=b:v.headers["Content-Type"]||(v.headers["Content-Type"]="application/json"),b==="application/x-www-form-urlencoded")v.setData(m.normalizeParams(s));else if(b=="multipart/form-data"){var O=m.normalizeParams(s);for(var $ in O)if(O.hasOwnProperty($)){var N=new FormData;N.set($,O[$]),v.setData(N)}}else o&&v.setData(o);var X=m.jsonPreferredMime(c);X&&(v.headers.Accept=X),m.getHttpClient().request(v).then(k=>{var Q=m.returnExtended===!0?{status:k.status,statusText:k.statusText,headers:k.headers,body:k.data,text:k.text,error:null}:k.data?k.data:k.text;m.config.logger.log("trace",k.status,i,f,v.headers,k.headers,o,void 0),m.config.logger.log("debug",k.status,i,f,v.headers,void 0,o,void 0),d(Q)}).catch(k=>{var Q=k;k.response&&k.response.status==401&&m.config.refresh_access_token&&m.authData.refreshToken&&m.authData.refreshToken!==""?m._handleExpiredAccessToken().then(()=>{g(m)}).catch(Z=>{h(Z)}):k.response&&(m.config.logger.log("error",k.response.status,i,f,v.headers,k.response.headers,o,k.response.data),Q=m.returnExtended===!0?{status:k.response.status,statusText:k.response.statusText,headers:k.response.headers,body:k.response.data,text:k.response.text,error:k}:k.response.data?k.response.data:k.response.text),h(Q)})}})}},jA=class{constructor(e){this.apiClient=e||q.instance}deleteConversationsSummariesSetting(e,i){if(i=i||{},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"],i.customHeaders)}deleteGuideJobs(e,i){if(i=i||{},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"],i.customHeaders)}getConversationsSummariesSetting(e,i){if(i=i||{},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"],i.customHeaders)}getConversationsSummariesSettings(e){return e=e||{},this.apiClient.callApi("/api/v2/conversations/summaries/settings","GET",{},{language:e.language,name:e.name,sortBy:e.sortBy,sortOrder:e.sortOrder,pageNumber:e.pageNumber,pageSize:e.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getGuide(e,i){if(i=i||{},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"],i.customHeaders)}getGuideJob(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "guideId" when calling getGuideJob';if(i==null||i==="")throw'Missing the required parameter "jobId" when calling getGuideJob';return this.apiClient.callApi("/api/v2/guides/{guideId}/jobs/{jobId}","GET",{guideId:e,jobId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getGuideVersion(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "guideId" when calling getGuideVersion';if(i==null||i==="")throw'Missing the required parameter "versionId" when calling getGuideVersion';return this.apiClient.callApi("/api/v2/guides/{guideId}/versions/{versionId}","GET",{guideId:e,versionId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getGuideVersionJob(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "guideId" when calling getGuideVersionJob';if(i==null||i==="")throw'Missing the required parameter "versionId" when calling getGuideVersionJob';if(n==null||n==="")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:i,jobId:n},{},{},{},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,i){if(i=i||{},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"],i.customHeaders)}patchGuide(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "guideId" when calling patchGuide';if(i==null)throw'Missing the required parameter "body" when calling patchGuide';return this.apiClient.callApi("/api/v2/guides/{guideId}","PATCH",{guideId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchGuideVersion(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "guideId" when calling patchGuideVersion';if(i==null||i==="")throw'Missing the required parameter "versionId" when calling patchGuideVersion';if(n==null)throw'Missing the required parameter "body" when calling patchGuideVersion';return this.apiClient.callApi("/api/v2/guides/{guideId}/versions/{versionId}","PATCH",{guideId:e,versionId:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postConversationsSummariesPreview(e,i){if(i=i||{},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"],i.customHeaders)}postConversationsSummariesSettings(e,i){if(i=i||{},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"],i.customHeaders)}postGuideSessionTurns(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "guideId" when calling postGuideSessionTurns';if(i==null||i==="")throw'Missing the required parameter "guideSessionId" when calling postGuideSessionTurns';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postGuideVersionJobs(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "guideId" when calling postGuideVersionJobs';if(i==null||i==="")throw'Missing the required parameter "versionId" when calling postGuideVersionJobs';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postGuideVersions(e,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "guideId" when calling postGuideVersions';return this.apiClient.callApi("/api/v2/guides/{guideId}/versions","POST",{guideId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postGuides(e,i){if(i=i||{},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"],i.customHeaders)}postGuidesJobs(e,i){if(i=i||{},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"],i.customHeaders)}postGuidesUploads(e,i){if(i=i||{},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"],i.customHeaders)}putConversationsSummariesSetting(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "summarySettingId" when calling putConversationsSummariesSetting';if(i==null)throw'Missing the required parameter "body" when calling putConversationsSummariesSetting';return this.apiClient.callApi("/api/v2/conversations/summaries/settings/{summarySettingId}","PUT",{summarySettingId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}},SA=class{constructor(e){this.apiClient=e||q.instance}deleteAssistant(e,i){if(i=i||{},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"],i.customHeaders)}deleteAssistantQueue(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "assistantId" when calling deleteAssistantQueue';if(i==null||i==="")throw'Missing the required parameter "queueId" when calling deleteAssistantQueue';return this.apiClient.callApi("/api/v2/assistants/{assistantId}/queues/{queueId}","DELETE",{assistantId:e,queueId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteAssistantQueues(e,i){if(i=i||{},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:i.queueIds},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}deleteAssistantsAgentchecklist(e,i){if(i=i||{},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"],i.customHeaders)}getAssistant(e,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "assistantId" when calling getAssistant';return this.apiClient.callApi("/api/v2/assistants/{assistantId}","GET",{assistantId:e},{expand:i.expand,languageVariation:i.languageVariation,fallbackToPrimaryAssistant:i.fallbackToPrimaryAssistant},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getAssistantQueue(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "assistantId" when calling getAssistantQueue';if(i==null||i==="")throw'Missing the required parameter "queueId" when calling getAssistantQueue';return this.apiClient.callApi("/api/v2/assistants/{assistantId}/queues/{queueId}","GET",{assistantId:e,queueId:i},{expand:n.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getAssistantQueueUsersJob(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "assistantId" when calling getAssistantQueueUsersJob';if(i==null||i==="")throw'Missing the required parameter "queueId" when calling getAssistantQueueUsersJob';if(n==null||n==="")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:i,jobId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getAssistantQueues(e,i){if(i=i||{},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:i.before,after:i.after,pageSize:i.pageSize,expand:i.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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"],i.customHeaders)}getAssistantsAgentchecklists(e){return e=e||{},this.apiClient.callApi("/api/v2/assistants/agentchecklists","GET",{},{before:e.before,after:e.after,pageSize:e.pageSize,namePrefix:e.namePrefix,language:e.language,sortOrder:e.sortOrder,sortBy:e.sortBy},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getAssistantsAgentchecklistsLanguages(e){return e=e||{},this.apiClient.callApi("/api/v2/assistants/agentchecklists/languages","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getAssistantsQueues(e){return e=e||{},this.apiClient.callApi("/api/v2/assistants/queues","GET",{},{before:e.before,after:e.after,pageSize:e.pageSize,queueIds:e.queueIds,expand:e.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}patchAssistant(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "assistantId" when calling patchAssistant';if(i==null)throw'Missing the required parameter "body" when calling patchAssistant';return this.apiClient.callApi("/api/v2/assistants/{assistantId}","PATCH",{assistantId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchAssistantQueues(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "assistantId" when calling patchAssistantQueues';if(i==null)throw'Missing the required parameter "body" when calling patchAssistantQueues';return this.apiClient.callApi("/api/v2/assistants/{assistantId}/queues","PATCH",{assistantId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postAssistantQueueUsersBulkAdd(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "assistantId" when calling postAssistantQueueUsersBulkAdd';if(i==null||i==="")throw'Missing the required parameter "queueId" when calling postAssistantQueueUsersBulkAdd';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postAssistantQueueUsersBulkRemove(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "assistantId" when calling postAssistantQueueUsersBulkRemove';if(i==null||i==="")throw'Missing the required parameter "queueId" when calling postAssistantQueueUsersBulkRemove';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postAssistantQueueUsersJobs(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "assistantId" when calling postAssistantQueueUsersJobs';if(i==null||i==="")throw'Missing the required parameter "queueId" when calling postAssistantQueueUsersJobs';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postAssistantQueueUsersQuery(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "assistantId" when calling postAssistantQueueUsersQuery';if(i==null||i==="")throw'Missing the required parameter "queueId" when calling postAssistantQueueUsersQuery';if(n==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:i},{expand:this.apiClient.buildCollectionParam(a.expand,"multi")},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postAssistants(e,i){if(i=i||{},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"],i.customHeaders)}postAssistantsAgentchecklists(e,i){if(i=i||{},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"],i.customHeaders)}putAssistantQueue(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "assistantId" when calling putAssistantQueue';if(i==null||i==="")throw'Missing the required parameter "queueId" when calling putAssistantQueue';if(n==null)throw'Missing the required parameter "body" when calling putAssistantQueue';return this.apiClient.callApi("/api/v2/assistants/{assistantId}/queues/{queueId}","PUT",{assistantId:e,queueId:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}putAssistantsAgentchecklist(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "agentChecklistId" when calling putAssistantsAgentchecklist';if(i==null)throw'Missing the required parameter "body" when calling putAssistantsAgentchecklist';return this.apiClient.callApi("/api/v2/assistants/agentchecklists/{agentChecklistId}","PUT",{agentChecklistId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}},OA=class{constructor(e){this.apiClient=e||q.instance}getAssistantCopilot(e,i){if(i=i||{},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"],i.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,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "assistantId" when calling putAssistantCopilot';if(i==null)throw'Missing the required parameter "body" when calling putAssistantCopilot';return this.apiClient.callApi("/api/v2/assistants/{assistantId}/copilot","PUT",{assistantId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}},xA=class{constructor(e){this.apiClient=e||q.instance}deleteUsersAgentuiAgentsAutoanswerAgentIdSettings(e,i){if(i=i||{},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"],i.customHeaders)}getUsersAgentuiAgentsAutoanswerAgentIdSettings(e,i){if(i=i||{},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"],i.customHeaders)}patchUsersAgentuiAgentsAutoanswerAgentIdSettings(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "agentId" when calling patchUsersAgentuiAgentsAutoanswerAgentIdSettings';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putUsersAgentuiAgentsAutoanswerAgentIdSettings(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "agentId" when calling putUsersAgentuiAgentsAutoanswerAgentIdSettings';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}},TA=class{constructor(e){this.apiClient=e||q.instance}deleteAlertingAlert(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getAlertingAlert(e,i){if(i=i||{},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"],i.customHeaders)}getAlertingRule(e,i){if(i=i||{},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"],i.customHeaders)}patchAlertingAlert(e,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "alertId" when calling patchAlertingAlert';return this.apiClient.callApi("/api/v2/alerting/alerts/{alertId}","PATCH",{alertId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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"],i.customHeaders)}patchAlertingRulesBulk(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}postAlertingRulesBulkRemove(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "alertId" when calling putAlertingAlert';return this.apiClient.callApi("/api/v2/alerting/alerts/{alertId}","PUT",{alertId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}putAlertingRule(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "ruleId" when calling putAlertingRule';if(i==null)throw'Missing the required parameter "body" when calling putAlertingRule';return this.apiClient.callApi("/api/v2/alerting/rules/{ruleId}","PUT",{ruleId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}},MA=class{constructor(e){this.apiClient=e||q.instance}deleteAnalyticsActionsAggregatesJob(e,i){if(i=i||{},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"],i.customHeaders)}deleteAnalyticsAgentcopilotsAggregatesJob(e,i){if(i=i||{},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"],i.customHeaders)}deleteAnalyticsAgentutilizationsAggregatesJob(e,i){if(i=i||{},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"],i.customHeaders)}deleteAnalyticsBotsAggregatesJob(e,i){if(i=i||{},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"],i.customHeaders)}deleteAnalyticsCasemanagementAggregatesJob(e,i){if(i=i||{},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"],i.customHeaders)}deleteAnalyticsConversationsAggregatesJob(e,i){if(i=i||{},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"],i.customHeaders)}deleteAnalyticsConversationsDetailsJob(e,i){if(i=i||{},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"],i.customHeaders)}deleteAnalyticsCopilotsAggregatesJob(e,i){if(i=i||{},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"],i.customHeaders)}deleteAnalyticsEvaluationsAggregatesJob(e,i){if(i=i||{},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"],i.customHeaders)}deleteAnalyticsFlowexecutionsAggregatesJob(e,i){if(i=i||{},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"],i.customHeaders)}deleteAnalyticsFlowsAggregatesJob(e,i){if(i=i||{},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"],i.customHeaders)}deleteAnalyticsJourneysAggregatesJob(e,i){if(i=i||{},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"],i.customHeaders)}deleteAnalyticsKnowledgeAggregatesJob(e,i){if(i=i||{},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"],i.customHeaders)}deleteAnalyticsResolutionsAggregatesJob(e,i){if(i=i||{},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"],i.customHeaders)}deleteAnalyticsSummariesAggregatesJob(e,i){if(i=i||{},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"],i.customHeaders)}deleteAnalyticsSurveysAggregatesJob(e,i){if(i=i||{},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"],i.customHeaders)}deleteAnalyticsTaskmanagementAggregatesJob(e,i){if(i=i||{},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"],i.customHeaders)}deleteAnalyticsTranscriptsAggregatesJob(e,i){if(i=i||{},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"],i.customHeaders)}deleteAnalyticsUsersAggregatesJob(e,i){if(i=i||{},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"],i.customHeaders)}deleteAnalyticsUsersDetailsJob(e,i){if(i=i||{},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"],i.customHeaders)}getAnalyticsActionsAggregatesJob(e,i){if(i=i||{},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"],i.customHeaders)}getAnalyticsActionsAggregatesJobResults(e,i){if(i=i||{},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:i.cursor},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getAnalyticsAgentStatus(e,i){if(i=i||{},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"],i.customHeaders)}getAnalyticsAgentcopilotsAggregatesJob(e,i){if(i=i||{},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"],i.customHeaders)}getAnalyticsAgentcopilotsAggregatesJobResults(e,i){if(i=i||{},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:i.cursor},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getAnalyticsAgentutilizationsAggregatesJob(e,i){if(i=i||{},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"],i.customHeaders)}getAnalyticsAgentutilizationsAggregatesJobResults(e,i){if(i=i||{},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:i.cursor},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getAnalyticsBotflowDivisionsReportingturns(e,i){if(i=i||{},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:i.after,pageSize:i.pageSize,interval:i.interval,actionId:i.actionId,sessionId:i.sessionId,language:i.language,askActionResults:i.askActionResults},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getAnalyticsBotflowReportingturns(e,i){if(i=i||{},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:i.after,pageSize:i.pageSize,interval:i.interval,actionId:i.actionId,sessionId:i.sessionId,language:i.language,askActionResults:i.askActionResults},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getAnalyticsBotflowSessions(e,i){if(i=i||{},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:i.after,pageSize:i.pageSize,interval:i.interval,botResultCategories:i.botResultCategories,endLanguage:i.endLanguage},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getAnalyticsBotsAggregatesJob(e,i){if(i=i||{},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"],i.customHeaders)}getAnalyticsBotsAggregatesJobResults(e,i){if(i=i||{},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:i.cursor},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getAnalyticsCasemanagementAggregatesJob(e,i){if(i=i||{},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"],i.customHeaders)}getAnalyticsCasemanagementAggregatesJobResults(e,i){if(i=i||{},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:i.cursor},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getAnalyticsConversationDetails(e,i){if(i=i||{},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"],i.customHeaders)}getAnalyticsConversationsAggregatesJob(e,i){if(i=i||{},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"],i.customHeaders)}getAnalyticsConversationsAggregatesJobResults(e,i){if(i=i||{},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:i.cursor},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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"],i.customHeaders)}getAnalyticsConversationsDetailsJobResults(e,i){if(i=i||{},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:i.cursor,pageSize:i.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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"],i.customHeaders)}getAnalyticsCopilotsAggregatesJobResults(e,i){if(i=i||{},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:i.cursor},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getAnalyticsDataextractionDownload(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getAnalyticsEvaluationsAggregatesJobResults(e,i){if(i=i||{},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:i.cursor},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getAnalyticsFlowexecutionsAggregatesJob(e,i){if(i=i||{},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"],i.customHeaders)}getAnalyticsFlowexecutionsAggregatesJobResults(e,i){if(i=i||{},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:i.cursor},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getAnalyticsFlowsAggregatesJob(e,i){if(i=i||{},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"],i.customHeaders)}getAnalyticsFlowsAggregatesJobResults(e,i){if(i=i||{},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:i.cursor},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getAnalyticsJourneysAggregatesJob(e,i){if(i=i||{},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"],i.customHeaders)}getAnalyticsJourneysAggregatesJobResults(e,i){if(i=i||{},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:i.cursor},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getAnalyticsKnowledgeAggregatesJob(e,i){if(i=i||{},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"],i.customHeaders)}getAnalyticsKnowledgeAggregatesJobResults(e,i){if(i=i||{},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:i.cursor},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getAnalyticsReportingDashboardsUser(e,i){if(i=i||{},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"],i.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,i,n){if(n=n||{},e==null)throw'Missing the required parameter "dashboardType" when calling getAnalyticsReportingSettingsDashboardsQuery';if(i==null)throw'Missing the required parameter "dashboardAccessFilter" when calling getAnalyticsReportingSettingsDashboardsQuery';return this.apiClient.callApi("/api/v2/analytics/reporting/settings/dashboards/query","GET",{},{name:n.name,dashboardType:e,dashboardState:n.dashboardState,dashboardAccessFilter:i,sortBy:n.sortBy,pageNumber:n.pageNumber,pageSize:n.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getAnalyticsReportingSettingsUserDashboards(e,i){if(i=i||{},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:i.sortBy,pageNumber:i.pageNumber,pageSize:i.pageSize,publicOnly:i.publicOnly,favoriteOnly:i.favoriteOnly,deletedOnly:i.deletedOnly,name:i.name},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getAnalyticsResolutionsAggregatesJob(e,i){if(i=i||{},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"],i.customHeaders)}getAnalyticsResolutionsAggregatesJobResults(e,i){if(i=i||{},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:i.cursor},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getAnalyticsSummariesAggregatesJob(e,i){if(i=i||{},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"],i.customHeaders)}getAnalyticsSummariesAggregatesJobResults(e,i){if(i=i||{},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:i.cursor},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getAnalyticsSurveysAggregatesJob(e,i){if(i=i||{},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"],i.customHeaders)}getAnalyticsSurveysAggregatesJobResults(e,i){if(i=i||{},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:i.cursor},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getAnalyticsTaskmanagementAggregatesJob(e,i){if(i=i||{},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"],i.customHeaders)}getAnalyticsTaskmanagementAggregatesJobResults(e,i){if(i=i||{},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:i.cursor},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getAnalyticsTranscriptsAggregatesJob(e,i){if(i=i||{},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"],i.customHeaders)}getAnalyticsTranscriptsAggregatesJobResults(e,i){if(i=i||{},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:i.cursor},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getAnalyticsUsersAggregatesJob(e,i){if(i=i||{},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"],i.customHeaders)}getAnalyticsUsersAggregatesJobResults(e,i){if(i=i||{},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:i.cursor},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getAnalyticsUsersDetailsJob(e,i){if(i=i||{},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"],i.customHeaders)}getAnalyticsUsersDetailsJobResults(e,i){if(i=i||{},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:i.cursor,pageSize:i.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsActionsAggregatesJobs(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsActionsAggregatesQuery(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsAgentcopilotsAggregatesJobs(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsAgentcopilotsAggregatesQuery(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsAgentsStatusCounts(e,i){if(i=i||{},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(i.groupBy,"multi")},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postAnalyticsAgentsStatusQuery(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsAgentutilizationsAggregatesJobs(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsAgentutilizationsAggregatesQuery(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsBotsAggregatesJobs(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsBotsAggregatesQuery(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsCasemanagementAggregatesJobs(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsCasemanagementAggregatesQuery(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsConversationDetailsProperties(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postAnalyticsConversationDetailsProperties';if(i==null)throw'Missing the required parameter "body" when calling postAnalyticsConversationDetailsProperties';return this.apiClient.callApi("/api/v2/analytics/conversations/{conversationId}/details/properties","POST",{conversationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postAnalyticsConversationsActivityQuery(e,i){if(i=i||{},e==null)throw'Missing the required parameter "body" when calling postAnalyticsConversationsActivityQuery';return this.apiClient.callApi("/api/v2/analytics/conversations/activity/query","POST",{},{pageSize:i.pageSize,pageNumber:i.pageNumber},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postAnalyticsConversationsAggregatesJobs(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsConversationsAggregatesQuery(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsConversationsDetailsJobs(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsConversationsDetailsQuery(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsCopilotsAggregatesJobs(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsCopilotsAggregatesQuery(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsDataextractionDownloadsBulk(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsEvaluationsAggregatesJobs(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsEvaluationsAggregatesQuery(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsFlowexecutionsAggregatesJobs(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsFlowexecutionsAggregatesQuery(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsFlowsActivityQuery(e,i){if(i=i||{},e==null)throw'Missing the required parameter "body" when calling postAnalyticsFlowsActivityQuery';return this.apiClient.callApi("/api/v2/analytics/flows/activity/query","POST",{},{pageSize:i.pageSize,pageNumber:i.pageNumber},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postAnalyticsFlowsAggregatesJobs(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsFlowsAggregatesQuery(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsFlowsObservationsQuery(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsJourneysAggregatesJobs(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsJourneysAggregatesQuery(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsKnowledgeAggregatesJobs(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsKnowledgeAggregatesQuery(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsQueuesObservationsQuery(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsRatelimitsAggregatesQuery(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsReportingDashboardsUsersBulkRemove(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsReportingExports(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsReportingSettingsDashboardsBulkRemove(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsReportingSettingsDashboardsQuery(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsResolutionsAggregatesJobs(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsResolutionsAggregatesQuery(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsRoutingActivityQuery(e,i){if(i=i||{},e==null)throw'Missing the required parameter "body" when calling postAnalyticsRoutingActivityQuery';return this.apiClient.callApi("/api/v2/analytics/routing/activity/query","POST",{},{pageSize:i.pageSize,pageNumber:i.pageNumber},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postAnalyticsSummariesAggregatesJobs(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsSummariesAggregatesQuery(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsSurveysAggregatesJobs(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsSurveysAggregatesQuery(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsTaskmanagementAggregatesJobs(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsTaskmanagementAggregatesQuery(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsTaskmanagementMetricsQuery(e,i){if(i=i||{},e==null)throw'Missing the required parameter "body" when calling postAnalyticsTaskmanagementMetricsQuery';return this.apiClient.callApi("/api/v2/analytics/taskmanagement/metrics/query","POST",{},{after:i.after,pageSize:i.pageSize},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postAnalyticsTeamsActivityQuery(e,i){if(i=i||{},e==null)throw'Missing the required parameter "body" when calling postAnalyticsTeamsActivityQuery';return this.apiClient.callApi("/api/v2/analytics/teams/activity/query","POST",{},{pageSize:i.pageSize,pageNumber:i.pageNumber},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postAnalyticsTranscriptsAggregatesJobs(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsTranscriptsAggregatesQuery(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsUsersActivityQuery(e,i){if(i=i||{},e==null)throw'Missing the required parameter "body" when calling postAnalyticsUsersActivityQuery';return this.apiClient.callApi("/api/v2/analytics/users/activity/query","POST",{},{pageSize:i.pageSize,pageNumber:i.pageNumber},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postAnalyticsUsersAggregatesJobs(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsUsersAggregatesQuery(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsUsersDetailsJobs(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsUsersDetailsQuery(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsUsersObservationsQuery(e,i){if(i=i||{},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"],i.customHeaders)}putAnalyticsDataretentionSettings(e,i){if(i=i||{},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"],i.customHeaders)}},EA=class{constructor(e){this.apiClient=e||q.instance}deleteArchitectEmergencygroup(e,i){if(i=i||{},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"],i.customHeaders)}deleteArchitectGrammar(e,i){if(i=i||{},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"],i.customHeaders)}deleteArchitectGrammarLanguage(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "grammarId" when calling deleteArchitectGrammarLanguage';if(i==null||i==="")throw'Missing the required parameter "languageCode" when calling deleteArchitectGrammarLanguage';return this.apiClient.callApi("/api/v2/architect/grammars/{grammarId}/languages/{languageCode}","DELETE",{grammarId:e,languageCode:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteArchitectGrammarLanguageFilesDtmf(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "grammarId" when calling deleteArchitectGrammarLanguageFilesDtmf';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteArchitectGrammarLanguageFilesVoice(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "grammarId" when calling deleteArchitectGrammarLanguageFilesVoice';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteArchitectIvr(e,i){if(i=i||{},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"],i.customHeaders)}deleteArchitectPrompt(e,i){if(i=i||{},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:i.allResources},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}deleteArchitectPromptResource(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "promptId" when calling deleteArchitectPromptResource';if(i==null||i==="")throw'Missing the required parameter "languageCode" when calling deleteArchitectPromptResource';return this.apiClient.callApi("/api/v2/architect/prompts/{promptId}/resources/{languageCode}","DELETE",{promptId:e,languageCode:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteArchitectPromptResourceAudio(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "promptId" when calling deleteArchitectPromptResourceAudio';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteArchitectPrompts(e,i){if(i=i||{},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"],i.customHeaders)}deleteArchitectSchedule(e,i){if(i=i||{},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"],i.customHeaders)}deleteArchitectSchedulegroup(e,i){if(i=i||{},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"],i.customHeaders)}deleteArchitectSystempromptResource(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "promptId" when calling deleteArchitectSystempromptResource';if(i==null||i==="")throw'Missing the required parameter "languageCode" when calling deleteArchitectSystempromptResource';return this.apiClient.callApi("/api/v2/architect/systemprompts/{promptId}/resources/{languageCode}","DELETE",{promptId:e,languageCode:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteFlow(e,i){if(i=i||{},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"],i.customHeaders)}deleteFlowInstancesSettingsLoglevels(e,i){if(i=i||{},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"],i.customHeaders)}deleteFlows(e,i){if(i=i||{},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"],i.customHeaders)}deleteFlowsDatatable(e,i){if(i=i||{},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:i.force},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}deleteFlowsDatatableRow(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "datatableId" when calling deleteFlowsDatatableRow';if(i==null||i==="")throw'Missing the required parameter "rowId" when calling deleteFlowsDatatableRow';return this.apiClient.callApi("/api/v2/flows/datatables/{datatableId}/rows/{rowId}","DELETE",{datatableId:e,rowId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.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,i){if(i=i||{},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"],i.customHeaders)}getArchitectDependencytracking(e,i){if(i=i||{},e==null)throw'Missing the required parameter "name" when calling getArchitectDependencytracking';return this.apiClient.callApi("/api/v2/architect/dependencytracking","GET",{},{pageNumber:i.pageNumber,pageSize:i.pageSize,name:e,objectType:this.apiClient.buildCollectionParam(i.objectType,"multi"),consumedResources:i.consumedResources,consumingResources:i.consumingResources,consumedResourceType:this.apiClient.buildCollectionParam(i.consumedResourceType,"multi"),consumingResourceType:this.apiClient.buildCollectionParam(i.consumingResourceType,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i,n,a){if(a=a||{},e==null)throw'Missing the required parameter "id" when calling getArchitectDependencytrackingConsumedresources';if(i==null)throw'Missing the required parameter "version" when calling getArchitectDependencytrackingConsumedresources';if(n==null)throw'Missing the required parameter "objectType" when calling getArchitectDependencytrackingConsumedresources';return this.apiClient.callApi("/api/v2/architect/dependencytracking/consumedresources","GET",{},{id:e,version:i,objectType:n,resourceType:this.apiClient.buildCollectionParam(a.resourceType,"multi"),pageNumber:a.pageNumber,pageSize:a.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getArchitectDependencytrackingConsumingresources(e,i,n){if(n=n||{},e==null)throw'Missing the required parameter "id" when calling getArchitectDependencytrackingConsumingresources';if(i==null)throw'Missing the required parameter "objectType" when calling getArchitectDependencytrackingConsumingresources';return this.apiClient.callApi("/api/v2/architect/dependencytracking/consumingresources","GET",{},{id:e,objectType:i,resourceType:this.apiClient.buildCollectionParam(n.resourceType,"multi"),version:n.version,pageNumber:n.pageNumber,pageSize:n.pageSize,flowFilter:n.flowFilter},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.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,i){if(i=i||{},e==null)throw'Missing the required parameter "id" when calling getArchitectDependencytrackingObject';return this.apiClient.callApi("/api/v2/architect/dependencytracking/object","GET",{},{id:e,version:i.version,objectType:i.objectType,consumedResources:i.consumedResources,consumingResources:i.consumingResources,consumedResourceType:this.apiClient.buildCollectionParam(i.consumedResourceType,"multi"),consumingResourceType:this.apiClient.buildCollectionParam(i.consumingResourceType,"multi"),consumedResourceRequest:i.consumedResourceRequest},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getArchitectDependencytrackingType(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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:i.includeFileUrls},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getArchitectGrammarLanguage(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "grammarId" when calling getArchitectGrammarLanguage';if(i==null||i==="")throw'Missing the required parameter "languageCode" when calling getArchitectGrammarLanguage';return this.apiClient.callApi("/api/v2/architect/grammars/{grammarId}/languages/{languageCode}","GET",{grammarId:e,languageCode:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.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,i){if(i=i||{},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"],i.customHeaders)}getArchitectIvrIdentityresolution(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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:i.includeMediaUris,includeResources:i.includeResources,language:this.apiClient.buildCollectionParam(i.language,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getArchitectPromptHistoryHistoryId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "promptId" when calling getArchitectPromptHistoryHistoryId';if(i==null||i==="")throw'Missing the required parameter "historyId" when calling getArchitectPromptHistoryHistoryId';return this.apiClient.callApi("/api/v2/architect/prompts/{promptId}/history/{historyId}","GET",{promptId:e,historyId:i},{pageNumber:n.pageNumber,pageSize:n.pageSize,sortOrder:n.sortOrder,sortBy:n.sortBy,action:this.apiClient.buildCollectionParam(n.action,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getArchitectPromptResource(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "promptId" when calling getArchitectPromptResource';if(i==null||i==="")throw'Missing the required parameter "languageCode" when calling getArchitectPromptResource';return this.apiClient.callApi("/api/v2/architect/prompts/{promptId}/resources/{languageCode}","GET",{promptId:e,languageCode:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getArchitectPromptResources(e,i){if(i=i||{},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:i.pageNumber,pageSize:i.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getArchitectPrompts(e){return e=e||{},this.apiClient.callApi("/api/v2/architect/prompts","GET",{},{pageNumber:e.pageNumber,pageSize:e.pageSize,name:this.apiClient.buildCollectionParam(e.name,"multi"),description:e.description,nameOrDescription:e.nameOrDescription,sortBy:e.sortBy,sortOrder:e.sortOrder,includeMediaUris:e.includeMediaUris,includeResources:e.includeResources,language:this.apiClient.buildCollectionParam(e.language,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getArchitectSchedule(e,i){if(i=i||{},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"],i.customHeaders)}getArchitectSchedulegroup(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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:i.includeMediaUris,includeResources:i.includeResources,language:this.apiClient.buildCollectionParam(i.language,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getArchitectSystempromptHistoryHistoryId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "promptId" when calling getArchitectSystempromptHistoryHistoryId';if(i==null||i==="")throw'Missing the required parameter "historyId" when calling getArchitectSystempromptHistoryHistoryId';return this.apiClient.callApi("/api/v2/architect/systemprompts/{promptId}/history/{historyId}","GET",{promptId:e,historyId:i},{pageNumber:n.pageNumber,pageSize:n.pageSize,sortOrder:n.sortOrder,sortBy:n.sortBy,action:this.apiClient.buildCollectionParam(n.action,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getArchitectSystempromptResource(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "promptId" when calling getArchitectSystempromptResource';if(i==null||i==="")throw'Missing the required parameter "languageCode" when calling getArchitectSystempromptResource';return this.apiClient.callApi("/api/v2/architect/systemprompts/{promptId}/resources/{languageCode}","GET",{promptId:e,languageCode:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getArchitectSystempromptResources(e,i){if(i=i||{},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:i.pageNumber,pageSize:i.pageSize,sortBy:i.sortBy,sortOrder:i.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "flowId" when calling getFlow';return this.apiClient.callApi("/api/v2/flows/{flowId}","GET",{flowId:e},{deleted:i.deleted},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getFlowHistoryHistoryId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "flowId" when calling getFlowHistoryHistoryId';if(i==null||i==="")throw'Missing the required parameter "historyId" when calling getFlowHistoryHistoryId';return this.apiClient.callApi("/api/v2/flows/{flowId}/history/{historyId}","GET",{flowId:e,historyId:i},{pageNumber:n.pageNumber,pageSize:n.pageSize,sortOrder:n.sortOrder,sortBy:n.sortBy,action:this.apiClient.buildCollectionParam(n.action,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getFlowInstancesSettingsLoglevels(e,i){if(i=i||{},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(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getFlowLatestconfiguration(e,i){if(i=i||{},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:i.deleted},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getFlowVersion(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "flowId" when calling getFlowVersion';if(i==null||i==="")throw'Missing the required parameter "versionId" when calling getFlowVersion';return this.apiClient.callApi("/api/v2/flows/{flowId}/versions/{versionId}","GET",{flowId:e,versionId:i},{deleted:n.deleted},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getFlowVersionConfiguration(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "flowId" when calling getFlowVersionConfiguration';if(i==null||i==="")throw'Missing the required parameter "versionId" when calling getFlowVersionConfiguration';return this.apiClient.callApi("/api/v2/flows/{flowId}/versions/{versionId}/configuration","GET",{flowId:e,versionId:i},{deleted:n.deleted},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getFlowVersionHealth(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "flowId" when calling getFlowVersionHealth';if(i==null||i==="")throw'Missing the required parameter "versionId" when calling getFlowVersionHealth';return this.apiClient.callApi("/api/v2/flows/{flowId}/versions/{versionId}/health","GET",{flowId:e,versionId:i},{language:n.language},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getFlowVersionIntentHealth(e,i,n,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "flowId" when calling getFlowVersionIntentHealth';if(i==null||i==="")throw'Missing the required parameter "versionId" when calling getFlowVersionIntentHealth';if(n==null||n==="")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:i,intentId:n},{language:a},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}getFlowVersionIntentUtteranceHealth(e,i,n,a,r,s){if(s=s||{},e==null||e==="")throw'Missing the required parameter "flowId" when calling getFlowVersionIntentUtteranceHealth';if(i==null||i==="")throw'Missing the required parameter "versionId" when calling getFlowVersionIntentUtteranceHealth';if(n==null||n==="")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:i,intentId:n,utteranceId:a},{language:r},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],s.customHeaders)}getFlowVersions(e,i){if(i=i||{},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:i.pageNumber,pageSize:i.pageSize,deleted:i.deleted},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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:i.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getFlowsDatatableExportJob(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "datatableId" when calling getFlowsDatatableExportJob';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getFlowsDatatableImportJob(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "datatableId" when calling getFlowsDatatableImportJob';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getFlowsDatatableImportJobs(e,i){if(i=i||{},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:i.pageNumber,pageSize:i.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getFlowsDatatableRow(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "datatableId" when calling getFlowsDatatableRow';if(i==null||i==="")throw'Missing the required parameter "rowId" when calling getFlowsDatatableRow';return this.apiClient.callApi("/api/v2/flows/datatables/{datatableId}/rows/{rowId}","GET",{datatableId:e,rowId:i},{showbrief:n.showbrief},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getFlowsDatatableRows(e,i){if(i=i||{},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:i.pageNumber,pageSize:i.pageSize,showbrief:i.showbrief,sortOrder:i.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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:i.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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"],i.customHeaders)}getFlowsExportJob(e,i){if(i=i||{},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(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getFlowsInstance(e,i){if(i=i||{},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:i.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getFlowsInstancesJob(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getFlowsMilestone(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getFlowsOutcomes(e){return e=e||{},this.apiClient.callApi("/api/v2/flows/outcomes","GET",{},{pageNumber:e.pageNumber,pageSize:e.pageSize,sortBy:e.sortBy,sortOrder:e.sortOrder,id:this.apiClient.buildCollectionParam(e.id,"multi"),name:e.name,description:e.description,nameOrDescription:e.nameOrDescription,divisionId:this.apiClient.buildCollectionParam(e.divisionId,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getFlowsOutcomesDivisionviews(e){return e=e||{},this.apiClient.callApi("/api/v2/flows/outcomes/divisionviews","GET",{},{pageNumber:e.pageNumber,pageSize:e.pageSize,sortBy:e.sortBy,sortOrder:e.sortOrder,id:this.apiClient.buildCollectionParam(e.id,"multi"),name:e.name,divisionId:this.apiClient.buildCollectionParam(e.divisionId,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}patchArchitectGrammar(e,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "grammarId" when calling patchArchitectGrammar';return this.apiClient.callApi("/api/v2/architect/grammars/{grammarId}","PATCH",{grammarId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}patchArchitectGrammarLanguage(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "grammarId" when calling patchArchitectGrammarLanguage';if(i==null||i==="")throw'Missing the required parameter "languageCode" when calling patchArchitectGrammarLanguage';return this.apiClient.callApi("/api/v2/architect/grammars/{grammarId}/languages/{languageCode}","PATCH",{grammarId:e,languageCode:i},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchFlowsInstancesSettingsExecutiondata(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}postArchitectGrammarLanguageFilesDtmf(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "grammarId" when calling postArchitectGrammarLanguageFilesDtmf';if(i==null||i==="")throw'Missing the required parameter "languageCode" when calling postArchitectGrammarLanguageFilesDtmf';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postArchitectGrammarLanguageFilesVoice(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "grammarId" when calling postArchitectGrammarLanguageFilesVoice';if(i==null||i==="")throw'Missing the required parameter "languageCode" when calling postArchitectGrammarLanguageFilesVoice';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postArchitectGrammarLanguages(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "grammarId" when calling postArchitectGrammarLanguages';if(i==null)throw'Missing the required parameter "body" when calling postArchitectGrammarLanguages';return this.apiClient.callApi("/api/v2/architect/grammars/{grammarId}/languages","POST",{grammarId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postArchitectGrammars(e,i){if(i=i||{},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"],i.customHeaders)}postArchitectIvrs(e,i){if(i=i||{},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"],i.customHeaders)}postArchitectPromptHistory(e,i){if(i=i||{},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"],i.customHeaders)}postArchitectPromptResourceUploads(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "promptId" when calling postArchitectPromptResourceUploads';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postArchitectPromptResources(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "promptId" when calling postArchitectPromptResources';if(i==null)throw'Missing the required parameter "body" when calling postArchitectPromptResources';return this.apiClient.callApi("/api/v2/architect/prompts/{promptId}/resources","POST",{promptId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postArchitectPrompts(e,i){if(i=i||{},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"],i.customHeaders)}postArchitectSchedulegroups(e,i){if(i=i||{},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"],i.customHeaders)}postArchitectSchedules(e,i){if(i=i||{},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"],i.customHeaders)}postArchitectSystempromptHistory(e,i){if(i=i||{},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"],i.customHeaders)}postArchitectSystempromptResourceUploads(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "promptId" when calling postArchitectSystempromptResourceUploads';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postArchitectSystempromptResources(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "promptId" when calling postArchitectSystempromptResources';if(i==null)throw'Missing the required parameter "body" when calling postArchitectSystempromptResources';return this.apiClient.callApi("/api/v2/architect/systemprompts/{promptId}/resources","POST",{promptId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postFlowHistory(e,i){if(i=i||{},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"],i.customHeaders)}postFlowInstancesSettingsLoglevels(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "flowId" when calling postFlowInstancesSettingsLoglevels';if(i==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(n.expand,"multi")},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postFlowVersions(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "flowId" when calling postFlowVersions';if(i==null)throw'Missing the required parameter "body" when calling postFlowVersions';return this.apiClient.callApi("/api/v2/flows/{flowId}/versions","POST",{flowId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postFlows(e,i){if(i=i||{},e==null)throw'Missing the required parameter "body" when calling postFlows';return this.apiClient.callApi("/api/v2/flows","POST",{},{language:i.language},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postFlowsActionsCheckin(e,i){if(i=i||{},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"],i.customHeaders)}postFlowsActionsCheckout(e,i){if(i=i||{},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"],i.customHeaders)}postFlowsActionsDeactivate(e,i){if(i=i||{},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"],i.customHeaders)}postFlowsActionsPublish(e,i){if(i=i||{},e==null)throw'Missing the required parameter "flow" when calling postFlowsActionsPublish';return this.apiClient.callApi("/api/v2/flows/actions/publish","POST",{},{flow:e,version:i.version},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postFlowsActionsRevert(e,i){if(i=i||{},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"],i.customHeaders)}postFlowsActionsUnlock(e,i){if(i=i||{},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"],i.customHeaders)}postFlowsDatatableExportJobs(e,i){if(i=i||{},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"],i.customHeaders)}postFlowsDatatableImportCsvJobs(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "datatableId" when calling postFlowsDatatableImportCsvJobs';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postFlowsDatatableImportJobs(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "datatableId" when calling postFlowsDatatableImportJobs';if(i==null)throw'Missing the required parameter "body" when calling postFlowsDatatableImportJobs';return this.apiClient.callApi("/api/v2/flows/datatables/{datatableId}/import/jobs","POST",{datatableId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postFlowsDatatableRows(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "datatableId" when calling postFlowsDatatableRows';if(i==null)throw'Missing the required parameter "dataTableRow" when calling postFlowsDatatableRows';return this.apiClient.callApi("/api/v2/flows/datatables/{datatableId}/rows","POST",{datatableId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postFlowsDatatables(e,i){if(i=i||{},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"],i.customHeaders)}postFlowsExecutions(e,i){if(i=i||{},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"],i.customHeaders)}postFlowsExportJobs(e,i){if(i=i||{},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"],i.customHeaders)}postFlowsInstancesJobs(e,i){if(i=i||{},e==null)throw'Missing the required parameter "body" when calling postFlowsInstancesJobs';return this.apiClient.callApi("/api/v2/flows/instances/jobs","POST",{},{expand:i.expand},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postFlowsInstancesQuery(e,i){if(i=i||{},e==null)throw'Missing the required parameter "body" when calling postFlowsInstancesQuery';return this.apiClient.callApi("/api/v2/flows/instances/query","POST",{},{indexOnly:i.indexOnly,pageSize:i.pageSize},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postFlowsJobs(e){return e=e||{},this.apiClient.callApi("/api/v2/flows/jobs","POST",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}postFlowsMilestones(e){return e=e||{},this.apiClient.callApi("/api/v2/flows/milestones","POST",{},{},{},{},e.body,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}postFlowsOutcomes(e){return e=e||{},this.apiClient.callApi("/api/v2/flows/outcomes","POST",{},{},{},{},e.body,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}putArchitectEmergencygroup(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "emergencyGroupId" when calling putArchitectEmergencygroup';if(i==null)throw'Missing the required parameter "body" when calling putArchitectEmergencygroup';return this.apiClient.callApi("/api/v2/architect/emergencygroups/{emergencyGroupId}","PUT",{emergencyGroupId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putArchitectIvr(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "ivrId" when calling putArchitectIvr';if(i==null)throw'Missing the required parameter "body" when calling putArchitectIvr';return this.apiClient.callApi("/api/v2/architect/ivrs/{ivrId}","PUT",{ivrId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putArchitectIvrIdentityresolution(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "ivrId" when calling putArchitectIvrIdentityresolution';if(i==null)throw'Missing the required parameter "body" when calling putArchitectIvrIdentityresolution';return this.apiClient.callApi("/api/v2/architect/ivrs/{ivrId}/identityresolution","PUT",{ivrId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putArchitectPrompt(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "promptId" when calling putArchitectPrompt';if(i==null)throw'Missing the required parameter "body" when calling putArchitectPrompt';return this.apiClient.callApi("/api/v2/architect/prompts/{promptId}","PUT",{promptId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putArchitectPromptResource(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "promptId" when calling putArchitectPromptResource';if(i==null||i==="")throw'Missing the required parameter "languageCode" when calling putArchitectPromptResource';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}putArchitectSchedule(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "scheduleId" when calling putArchitectSchedule';if(i==null)throw'Missing the required parameter "body" when calling putArchitectSchedule';return this.apiClient.callApi("/api/v2/architect/schedules/{scheduleId}","PUT",{scheduleId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putArchitectSchedulegroup(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "scheduleGroupId" when calling putArchitectSchedulegroup';if(i==null)throw'Missing the required parameter "body" when calling putArchitectSchedulegroup';return this.apiClient.callApi("/api/v2/architect/schedulegroups/{scheduleGroupId}","PUT",{scheduleGroupId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putArchitectSystempromptResource(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "promptId" when calling putArchitectSystempromptResource';if(i==null||i==="")throw'Missing the required parameter "languageCode" when calling putArchitectSystempromptResource';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}putFlow(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "flowId" when calling putFlow';if(i==null)throw'Missing the required parameter "body" when calling putFlow';return this.apiClient.callApi("/api/v2/flows/{flowId}","PUT",{flowId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putFlowInstancesSettingsLoglevels(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "flowId" when calling putFlowInstancesSettingsLoglevels';if(i==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(n.expand,"multi")},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putFlowsDatatable(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "datatableId" when calling putFlowsDatatable';if(i==null)throw'Missing the required parameter "body" when calling putFlowsDatatable';return this.apiClient.callApi("/api/v2/flows/datatables/{datatableId}","PUT",{datatableId:e},{expand:n.expand},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putFlowsDatatableRow(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "datatableId" when calling putFlowsDatatableRow';if(i==null||i==="")throw'Missing the required parameter "rowId" when calling putFlowsDatatableRow';return this.apiClient.callApi("/api/v2/flows/datatables/{datatableId}/rows/{rowId}","PUT",{datatableId:e,rowId:i},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putFlowsInstancesSettingsLoglevelsDefault(e,i){if(i=i||{},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(i.expand,"multi")},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}putFlowsMilestone(e,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "milestoneId" when calling putFlowsMilestone';return this.apiClient.callApi("/api/v2/flows/milestones/{milestoneId}","PUT",{milestoneId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}putFlowsOutcome(e,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "flowOutcomeId" when calling putFlowsOutcome';return this.apiClient.callApi("/api/v2/flows/outcomes/{flowOutcomeId}","PUT",{flowOutcomeId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}},kA=class{constructor(e){this.apiClient=e||q.instance}deleteAssistantVariation(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "assistantId" when calling deleteAssistantVariation';if(i==null||i==="")throw'Missing the required parameter "variationId" when calling deleteAssistantVariation';return this.apiClient.callApi("/api/v2/assistants/{assistantId}/variations/{variationId}","DELETE",{assistantId:e,variationId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getAssistantVariation(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "assistantId" when calling getAssistantVariation';if(i==null||i==="")throw'Missing the required parameter "variationId" when calling getAssistantVariation';return this.apiClient.callApi("/api/v2/assistants/{assistantId}/variations/{variationId}","GET",{assistantId:e,variationId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getAssistantVariations(e,i){if(i=i||{},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"],i.customHeaders)}postAssistantVariations(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "assistantId" when calling postAssistantVariations';if(i==null)throw'Missing the required parameter "body" when calling postAssistantVariations';return this.apiClient.callApi("/api/v2/assistants/{assistantId}/variations","POST",{assistantId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putAssistantVariation(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "assistantId" when calling putAssistantVariation';if(i==null||i==="")throw'Missing the required parameter "variationId" when calling putAssistantVariation';if(n==null)throw'Missing the required parameter "body" when calling putAssistantVariation';return this.apiClient.callApi("/api/v2/assistants/{assistantId}/variations/{variationId}","PUT",{assistantId:e,variationId:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}},qA=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,i){if(i=i||{},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"],i.customHeaders)}getAuditsQueryTransactionIdResults(e,i){if(i=i||{},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:i.cursor,pageSize:i.pageSize,expand:this.apiClient.buildCollectionParam(i.expand,"multi"),allowRedirect:i.allowRedirect},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postAuditsQuery(e,i){if(i=i||{},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"],i.customHeaders)}postAuditsQueryRealtime(e,i){if(i=i||{},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(i.expand,"multi")},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postAuditsQueryRealtimeRelated(e,i){if(i=i||{},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(i.expand,"multi")},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}},_A=class{constructor(e){this.apiClient=e||q.instance}deleteAuthorizationDivision(e,i){if(i=i||{},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:i.force},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}deleteAuthorizationPoliciesTargetSubjectSubjectId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "targetName" when calling deleteAuthorizationPoliciesTargetSubjectSubjectId';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteAuthorizationRole(e,i){if(i=i||{},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"],i.customHeaders)}deleteAuthorizationSubjectDivisionRole(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "subjectId" when calling deleteAuthorizationSubjectDivisionRole';if(i==null||i==="")throw'Missing the required parameter "divisionId" when calling deleteAuthorizationSubjectDivisionRole';if(n==null||n==="")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:i,roleId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getAuthorizationDivision(e,i){if(i=i||{},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:i.objectCount},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getAuthorizationDivisionGrants(e,i){if(i=i||{},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:i.pageNumber,pageSize:i.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},e==null)throw'Missing the required parameter "permission" when calling getAuthorizationDivisionspermittedMe';return this.apiClient.callApi("/api/v2/authorization/divisionspermitted/me","GET",{},{name:i.name,permission:e},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getAuthorizationDivisionspermittedPagedMe(e,i){if(i=i||{},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:i.pageNumber,pageSize:i.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getAuthorizationDivisionspermittedPagedSubjectId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "subjectId" when calling getAuthorizationDivisionspermittedPagedSubjectId';if(i==null)throw'Missing the required parameter "permission" when calling getAuthorizationDivisionspermittedPagedSubjectId';return this.apiClient.callApi("/api/v2/authorization/divisionspermitted/paged/{subjectId}","GET",{subjectId:e},{permission:i,pageNumber:n.pageNumber,pageSize:n.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.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,i){if(i=i||{},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:i.after,pageSize:i.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getAuthorizationPoliciesTarget(e,i){if(i=i||{},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:i.after,pageSize:i.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getAuthorizationPoliciesTargetSubjectSubjectId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "targetName" when calling getAuthorizationPoliciesTargetSubjectSubjectId';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.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,i){if(i=i||{},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"],i.customHeaders)}getAuthorizationPolicyAttributes(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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:i.userCount,expand:this.apiClient.buildCollectionParam(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getAuthorizationRoleComparedefaultRightRoleId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "leftRoleId" when calling getAuthorizationRoleComparedefaultRightRoleId';if(i==null||i==="")throw'Missing the required parameter "rightRoleId" when calling getAuthorizationRoleComparedefaultRightRoleId';return this.apiClient.callApi("/api/v2/authorization/roles/{leftRoleId}/comparedefault/{rightRoleId}","GET",{leftRoleId:e,rightRoleId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getAuthorizationRoleSubjectgrants(e,i){if(i=i||{},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:i.pageSize,pageNumber:i.pageNumber,sortBy:i.sortBy,expand:this.apiClient.buildCollectionParam(i.expand,"multi"),nextPage:i.nextPage,previousPage:i.previousPage},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getAuthorizationRoleUsers(e,i){if(i=i||{},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:i.pageSize,pageNumber:i.pageNumber},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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:i.includeDuplicates},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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"],i.customHeaders)}patchAuthorizationRole(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "roleId" when calling patchAuthorizationRole';if(i==null)throw'Missing the required parameter "body" when calling patchAuthorizationRole';return this.apiClient.callApi("/api/v2/authorization/roles/{roleId}","PATCH",{roleId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchAuthorizationSettings(e,i){if(i=i||{},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"],i.customHeaders)}postAuthorizationDivisionObject(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "divisionId" when calling postAuthorizationDivisionObject';if(i==null||i==="")throw'Missing the required parameter "objectType" when calling postAuthorizationDivisionObject';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postAuthorizationDivisionRestore(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "divisionId" when calling postAuthorizationDivisionRestore';if(i==null)throw'Missing the required parameter "body" when calling postAuthorizationDivisionRestore';return this.apiClient.callApi("/api/v2/authorization/divisions/{divisionId}/restore","POST",{divisionId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postAuthorizationDivisions(e,i){if(i=i||{},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"],i.customHeaders)}postAuthorizationPoliciesTarget(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "targetName" when calling postAuthorizationPoliciesTarget';if(i==null)throw'Missing the required parameter "body" when calling postAuthorizationPoliciesTarget';return this.apiClient.callApi("/api/v2/authorization/policies/targets/{targetName}","POST",{targetName:e},{skipLockoutCheck:n.skipLockoutCheck},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postAuthorizationPoliciesTargetValidate(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "targetName" when calling postAuthorizationPoliciesTargetValidate';if(i==null)throw'Missing the required parameter "body" when calling postAuthorizationPoliciesTargetValidate';return this.apiClient.callApi("/api/v2/authorization/policies/targets/{targetName}/validate","POST",{targetName:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postAuthorizationPolicySimulate(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "policyId" when calling postAuthorizationPolicySimulate';if(i==null)throw'Missing the required parameter "body" when calling postAuthorizationPolicySimulate';return this.apiClient.callApi("/api/v2/authorization/policies/{policyId}/simulate","POST",{policyId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postAuthorizationRole(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "roleId" when calling postAuthorizationRole';if(i==null)throw'Missing the required parameter "body" when calling postAuthorizationRole';return this.apiClient.callApi("/api/v2/authorization/roles/{roleId}","POST",{roleId:e},{subjectType:n.subjectType},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postAuthorizationRoleComparedefaultRightRoleId(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "leftRoleId" when calling postAuthorizationRoleComparedefaultRightRoleId';if(i==null||i==="")throw'Missing the required parameter "rightRoleId" when calling postAuthorizationRoleComparedefaultRightRoleId';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postAuthorizationRoles(e,i){if(i=i||{},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"],i.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,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "subjectId" when calling postAuthorizationSubjectBulkadd';if(i==null)throw'Missing the required parameter "body" when calling postAuthorizationSubjectBulkadd';return this.apiClient.callApi("/api/v2/authorization/subjects/{subjectId}/bulkadd","POST",{subjectId:e},{subjectType:n.subjectType},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postAuthorizationSubjectBulkremove(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "subjectId" when calling postAuthorizationSubjectBulkremove';if(i==null)throw'Missing the required parameter "body" when calling postAuthorizationSubjectBulkremove';return this.apiClient.callApi("/api/v2/authorization/subjects/{subjectId}/bulkremove","POST",{subjectId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postAuthorizationSubjectBulkreplace(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "subjectId" when calling postAuthorizationSubjectBulkreplace';if(i==null)throw'Missing the required parameter "body" when calling postAuthorizationSubjectBulkreplace';return this.apiClient.callApi("/api/v2/authorization/subjects/{subjectId}/bulkreplace","POST",{subjectId:e},{subjectType:n.subjectType},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postAuthorizationSubjectDivisionRole(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "subjectId" when calling postAuthorizationSubjectDivisionRole';if(i==null||i==="")throw'Missing the required parameter "divisionId" when calling postAuthorizationSubjectDivisionRole';if(n==null||n==="")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:i,roleId:n},{subjectType:a.subjectType},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}putAuthorizationDivision(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "divisionId" when calling putAuthorizationDivision';if(i==null)throw'Missing the required parameter "body" when calling putAuthorizationDivision';return this.apiClient.callApi("/api/v2/authorization/divisions/{divisionId}","PUT",{divisionId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putAuthorizationPoliciesTarget(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "targetName" when calling putAuthorizationPoliciesTarget';if(i==null)throw'Missing the required parameter "body" when calling putAuthorizationPoliciesTarget';return this.apiClient.callApi("/api/v2/authorization/policies/targets/{targetName}","PUT",{targetName:e},{skipLockoutCheck:n.skipLockoutCheck},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putAuthorizationPolicy(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "policyId" when calling putAuthorizationPolicy';if(i==null)throw'Missing the required parameter "body" when calling putAuthorizationPolicy';return this.apiClient.callApi("/api/v2/authorization/policies/{policyId}","PUT",{policyId:e},{skipLockoutCheck:n.skipLockoutCheck},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putAuthorizationRole(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "roleId" when calling putAuthorizationRole';if(i==null)throw'Missing the required parameter "body" when calling putAuthorizationRole';return this.apiClient.callApi("/api/v2/authorization/roles/{roleId}","PUT",{roleId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putAuthorizationRoleUsersAdd(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "roleId" when calling putAuthorizationRoleUsersAdd';if(i==null)throw'Missing the required parameter "body" when calling putAuthorizationRoleUsersAdd';return this.apiClient.callApi("/api/v2/authorization/roles/{roleId}/users/add","PUT",{roleId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putAuthorizationRoleUsersRemove(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "roleId" when calling putAuthorizationRoleUsersRemove';if(i==null)throw'Missing the required parameter "body" when calling putAuthorizationRoleUsersRemove';return this.apiClient.callApi("/api/v2/authorization/roles/{roleId}/users/remove","PUT",{roleId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putAuthorizationRolesDefault(e,i){if(i=i||{},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"],i.customHeaders)}putAuthorizationRolesSettings(e,i){if(i=i||{},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"],i.customHeaders)}putUserRoles(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "subjectId" when calling putUserRoles';if(i==null)throw'Missing the required parameter "body" when calling putUserRoles';return this.apiClient.callApi("/api/v2/users/{subjectId}/roles","PUT",{subjectId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}},HA=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)}},RA=class{constructor(e){this.apiClient=e||q.instance}getBillingContract(e,i){if(i=i||{},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"],i.customHeaders)}getBillingContractBillingperiod(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "contractId" when calling getBillingContractBillingperiod';if(i==null||i==="")throw'Missing the required parameter "billingPeriodId" when calling getBillingContractBillingperiod';return this.apiClient.callApi("/api/v2/billing/contracts/{contractId}/billingperiods/{billingPeriodId}","GET",{contractId:e,billingPeriodId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.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,i){if(i=i||{},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"],i.customHeaders)}getBillingContractsInvoiceLines(e,i){if(i=i||{},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:i.before,after:i.after,pageSize:i.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i,n){if(n=n||{},e==null)throw'Missing the required parameter "startDate" when calling getBillingReportsBillableusage';if(i==null)throw'Missing the required parameter "endDate" when calling getBillingReportsBillableusage';return this.apiClient.callApi("/api/v2/billing/reports/billableusage","GET",{},{startDate:e,endDate:i},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getBillingTrusteebillingoverviewTrustorOrgId(e,i){if(i=i||{},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:i.billingPeriodIndex},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}},IA=class{constructor(e){this.apiClient=e||q.instance}deleteBusinessrulesDecisiontable(e,i){if(i=i||{},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:i.forceDelete},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}deleteBusinessrulesDecisiontableVersion(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "tableId" when calling deleteBusinessrulesDecisiontableVersion';if(i==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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteBusinessrulesDecisiontableVersionRow(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "tableId" when calling deleteBusinessrulesDecisiontableVersionRow';if(i==null)throw'Missing the required parameter "tableVersion" when calling deleteBusinessrulesDecisiontableVersionRow';if(n==null||n==="")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:i,rowId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}deleteBusinessrulesSchema(e,i){if(i=i||{},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"],i.customHeaders)}getBusinessrulesDecisiontable(e,i){if(i=i||{},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"],i.customHeaders)}getBusinessrulesDecisiontableVersion(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "tableId" when calling getBusinessrulesDecisiontableVersion';if(i==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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getBusinessrulesDecisiontableVersionRow(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "tableId" when calling getBusinessrulesDecisiontableVersionRow';if(i==null)throw'Missing the required parameter "tableVersion" when calling getBusinessrulesDecisiontableVersionRow';if(n==null||n==="")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:i,rowId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getBusinessrulesDecisiontableVersionRows(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "tableId" when calling getBusinessrulesDecisiontableVersionRows';if(i==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:i},{pageNumber:n.pageNumber,pageSize:n.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getBusinessrulesDecisiontableVersions(e,i){if(i=i||{},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:i.after,pageSize:i.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "tableId" when calling patchBusinessrulesDecisiontable';if(i==null)throw'Missing the required parameter "body" when calling patchBusinessrulesDecisiontable';return this.apiClient.callApi("/api/v2/businessrules/decisiontables/{tableId}","PATCH",{tableId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchBusinessrulesDecisiontableVersion(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "tableId" when calling patchBusinessrulesDecisiontableVersion';if(i==null)throw'Missing the required parameter "tableVersion" when calling patchBusinessrulesDecisiontableVersion';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postBusinessrulesDecisiontableExecute(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "tableId" when calling postBusinessrulesDecisiontableExecute';if(i==null)throw'Missing the required parameter "body" when calling postBusinessrulesDecisiontableExecute';return this.apiClient.callApi("/api/v2/businessrules/decisiontables/{tableId}/execute","POST",{tableId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postBusinessrulesDecisiontableVersionCopy(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "tableId" when calling postBusinessrulesDecisiontableVersionCopy';if(i==null)throw'Missing the required parameter "tableVersion" when calling postBusinessrulesDecisiontableVersionCopy';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postBusinessrulesDecisiontableVersionExecute(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "tableId" when calling postBusinessrulesDecisiontableVersionExecute';if(i==null)throw'Missing the required parameter "tableVersion" when calling postBusinessrulesDecisiontableVersionExecute';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postBusinessrulesDecisiontableVersionRows(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "tableId" when calling postBusinessrulesDecisiontableVersionRows';if(i==null)throw'Missing the required parameter "tableVersion" when calling postBusinessrulesDecisiontableVersionRows';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postBusinessrulesDecisiontableVersionRowsSearch(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "tableId" when calling postBusinessrulesDecisiontableVersionRowsSearch';if(i==null)throw'Missing the required parameter "tableVersion" when calling postBusinessrulesDecisiontableVersionRowsSearch';if(n==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:i},{pageNumber:a.pageNumber,pageSize:a.pageSize},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postBusinessrulesDecisiontableVersionSync(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "tableId" when calling postBusinessrulesDecisiontableVersionSync';if(i==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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postBusinessrulesDecisiontableVersions(e,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "tableId" when calling postBusinessrulesDecisiontableVersions';return this.apiClient.callApi("/api/v2/businessrules/decisiontables/{tableId}/versions","POST",{tableId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postBusinessrulesDecisiontables(e,i){if(i=i||{},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"],i.customHeaders)}postBusinessrulesSchemas(e,i){if(i=i||{},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"],i.customHeaders)}putBusinessrulesDecisiontableVersionPublish(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "tableId" when calling putBusinessrulesDecisiontableVersionPublish';if(i==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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putBusinessrulesDecisiontableVersionRow(e,i,n,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "tableId" when calling putBusinessrulesDecisiontableVersionRow';if(i==null)throw'Missing the required parameter "tableVersion" when calling putBusinessrulesDecisiontableVersionRow';if(n==null||n==="")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:i,rowId:n},{},{},{},a,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}putBusinessrulesSchema(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "schemaId" when calling putBusinessrulesSchema';if(i==null)throw'Missing the required parameter "body" when calling putBusinessrulesSchema';return this.apiClient.callApi("/api/v2/businessrules/schemas/{schemaId}","PUT",{schemaId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}},zA=class{constructor(e){this.apiClient=e||q.instance}getCarrierservicesIntegrationsEmergencylocationsMe(e,i){if(i=i||{},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"],i.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)}},DA=class{constructor(e){this.apiClient=e||q.instance}deleteCasemanagementCase(e,i){if(i=i||{},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"],i.customHeaders)}deleteCasemanagementCaseplan(e,i){if(i=i||{},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"],i.customHeaders)}getCasemanagementCase(e,i){if(i=i||{},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:i.expands},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getCasemanagementCaseAssociation(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "caseId" when calling getCasemanagementCaseAssociation';if(i==null||i==="")throw'Missing the required parameter "associationId" when calling getCasemanagementCaseAssociation';return this.apiClient.callApi("/api/v2/casemanagement/cases/{caseId}/associations/{associationId}","GET",{caseId:e,associationId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getCasemanagementCaseAssociations(e,i){if(i=i||{},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:i.before,after:i.after,pageSize:i.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getCasemanagementCaseStage(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "caseId" when calling getCasemanagementCaseStage';if(i==null||i==="")throw'Missing the required parameter "stageId" when calling getCasemanagementCaseStage';return this.apiClient.callApi("/api/v2/casemanagement/cases/{caseId}/stages/{stageId}","GET",{caseId:e,stageId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getCasemanagementCaseStageStep(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "caseId" when calling getCasemanagementCaseStageStep';if(i==null||i==="")throw'Missing the required parameter "stageId" when calling getCasemanagementCaseStageStep';if(n==null||n==="")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:i,stepId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getCasemanagementCaseStageSteps(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "caseId" when calling getCasemanagementCaseStageSteps';if(i==null||i==="")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:i},{before:n.before,after:n.after,pageSize:n.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getCasemanagementCaseStages(e,i){if(i=i||{},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:i.before,after:i.after,pageSize:i.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getCasemanagementCaseTerminateJob(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "caseId" when calling getCasemanagementCaseTerminateJob';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getCasemanagementCaseplan(e,i){if(i=i||{},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"],i.customHeaders)}getCasemanagementCaseplanVersion(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "caseplanId" when calling getCasemanagementCaseplanVersion';if(i==null||i==="")throw'Missing the required parameter "versionId" when calling getCasemanagementCaseplanVersion';return this.apiClient.callApi("/api/v2/casemanagement/caseplans/{caseplanId}/versions/{versionId}","GET",{caseplanId:e,versionId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getCasemanagementCaseplanVersionDataschemas(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "caseplanId" when calling getCasemanagementCaseplanVersionDataschemas';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getCasemanagementCaseplanVersionIntakesettings(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "caseplanId" when calling getCasemanagementCaseplanVersionIntakesettings';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getCasemanagementCaseplanVersionStageplan(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "caseplanId" when calling getCasemanagementCaseplanVersionStageplan';if(i==null||i==="")throw'Missing the required parameter "versionId" when calling getCasemanagementCaseplanVersionStageplan';if(n==null||n==="")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:i,stageplanId:n},{expands:this.apiClient.buildCollectionParam(a.expands,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getCasemanagementCaseplanVersionStageplanStepplan(e,i,n,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "caseplanId" when calling getCasemanagementCaseplanVersionStageplanStepplan';if(i==null||i==="")throw'Missing the required parameter "versionId" when calling getCasemanagementCaseplanVersionStageplanStepplan';if(n==null||n==="")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:i,stageplanId:n,stepplanId:a},{expands:this.apiClient.buildCollectionParam(r.expands,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}getCasemanagementCaseplanVersionStageplanStepplans(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "caseplanId" when calling getCasemanagementCaseplanVersionStageplanStepplans';if(i==null||i==="")throw'Missing the required parameter "versionId" when calling getCasemanagementCaseplanVersionStageplanStepplans';if(n==null||n==="")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:i,stageplanId:n},{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,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "caseplanId" when calling getCasemanagementCaseplanVersionStageplans';if(i==null||i==="")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:i},{before:n.before,after:n.after,pageSize:n.pageSize,expands:this.apiClient.buildCollectionParam(n.expands,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.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,i){if(i=i||{},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:i.after,pageSize:i.pageSize,divisionIds:i.divisionIds,expands:this.apiClient.buildCollectionParam(i.expands,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getCasemanagementCasesReference(e,i){if(i=i||{},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:i.expands},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}patchCasemanagementCaseDatedue(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "caseId" when calling patchCasemanagementCaseDatedue';if(i==null)throw'Missing the required parameter "body" when calling patchCasemanagementCaseDatedue';return this.apiClient.callApi("/api/v2/casemanagement/cases/{caseId}/datedue","PATCH",{caseId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchCasemanagementCasePriority(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "caseId" when calling patchCasemanagementCasePriority';if(i==null)throw'Missing the required parameter "body" when calling patchCasemanagementCasePriority';return this.apiClient.callApi("/api/v2/casemanagement/cases/{caseId}/priority","PATCH",{caseId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchCasemanagementCaseSummary(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "caseId" when calling patchCasemanagementCaseSummary';if(i==null)throw'Missing the required parameter "body" when calling patchCasemanagementCaseSummary';return this.apiClient.callApi("/api/v2/casemanagement/cases/{caseId}/summary","PATCH",{caseId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchCasemanagementCaseplan(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "caseplanId" when calling patchCasemanagementCaseplan';if(i==null)throw'Missing the required parameter "body" when calling patchCasemanagementCaseplan';return this.apiClient.callApi("/api/v2/casemanagement/caseplans/{caseplanId}","PATCH",{caseplanId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchCasemanagementCaseplanStageplan(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "caseplanId" when calling patchCasemanagementCaseplanStageplan';if(i==null||i==="")throw'Missing the required parameter "stageplanId" when calling patchCasemanagementCaseplanStageplan';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchCasemanagementCaseplanStageplanStepplan(e,i,n,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "caseplanId" when calling patchCasemanagementCaseplanStageplanStepplan';if(i==null||i==="")throw'Missing the required parameter "stageplanId" when calling patchCasemanagementCaseplanStageplanStepplan';if(n==null||n==="")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:i,stepplanId:n},{},{},{},a,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}postCasemanagementCaseAssociations(e,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "caseId" when calling postCasemanagementCaseAssociations';return this.apiClient.callApi("/api/v2/casemanagement/cases/{caseId}/associations","POST",{caseId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postCasemanagementCaseTerminateJobs(e,i){if(i=i||{},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"],i.customHeaders)}postCasemanagementCaseplanPublish(e,i){if(i=i||{},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"],i.customHeaders)}postCasemanagementCaseplanVersions(e,i){if(i=i||{},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"],i.customHeaders)}postCasemanagementCaseplans(e,i){if(i=i||{},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"],i.customHeaders)}postCasemanagementCaseplansQuery(e,i){if(i=i||{},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"],i.customHeaders)}postCasemanagementCases(e,i){if(i=i||{},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"],i.customHeaders)}postCasemanagementCasesAssociationsQuery(e){return e=e||{},this.apiClient.callApi("/api/v2/casemanagement/cases/associations/query","POST",{},{},{},{},e.body,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}putCasemanagementCaseplanIntakesettings(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "caseplanId" when calling putCasemanagementCaseplanIntakesettings';if(i==null)throw'Missing the required parameter "body" when calling putCasemanagementCaseplanIntakesettings';return this.apiClient.callApi("/api/v2/casemanagement/caseplans/{caseplanId}/intakesettings","PUT",{caseplanId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}},GA=class{constructor(e){this.apiClient=e||q.instance}deleteChatsRoomMessage(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "roomJid" when calling deleteChatsRoomMessage';if(i==null||i==="")throw'Missing the required parameter "messageId" when calling deleteChatsRoomMessage';return this.apiClient.callApi("/api/v2/chats/rooms/{roomJid}/messages/{messageId}","DELETE",{roomJid:e,messageId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteChatsRoomMessagesPin(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "roomJid" when calling deleteChatsRoomMessagesPin';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteChatsRoomParticipant(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "roomJid" when calling deleteChatsRoomParticipant';if(i==null||i==="")throw'Missing the required parameter "userId" when calling deleteChatsRoomParticipant';return this.apiClient.callApi("/api/v2/chats/rooms/{roomJid}/participants/{userId}","DELETE",{roomJid:e,userId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteChatsUserMessage(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling deleteChatsUserMessage';if(i==null||i==="")throw'Missing the required parameter "messageId" when calling deleteChatsUserMessage';return this.apiClient.callApi("/api/v2/chats/users/{userId}/messages/{messageId}","DELETE",{userId:e,messageId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteChatsUserMessagesPin(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling deleteChatsUserMessagesPin';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.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,i){if(i=i||{},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"],i.customHeaders)}getChatsRoom(e,i){if(i=i||{},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"],i.customHeaders)}getChatsRoomMessage(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "roomJid" when calling getChatsRoomMessage';if(i==null||i==="")throw'Missing the required parameter "messageIds" when calling getChatsRoomMessage';return this.apiClient.callApi("/api/v2/chats/rooms/{roomJid}/messages/{messageIds}","GET",{roomJid:e,messageIds:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getChatsRoomMessages(e,i){if(i=i||{},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:i.limit,before:i.before,after:i.after,excludeMetadata:i.excludeMetadata},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getChatsRoomParticipant(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "roomJid" when calling getChatsRoomParticipant';if(i==null||i==="")throw'Missing the required parameter "participantJid" when calling getChatsRoomParticipant';return this.apiClient.callApi("/api/v2/chats/rooms/{roomJid}/participants/{participantJid}","GET",{roomJid:e,participantJid:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getChatsRoomParticipants(e,i){if(i=i||{},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:i.notify},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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:i.limit,before:i.before,after:i.after,excludeMetadata:i.excludeMetadata},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getChatsUser(e,i){if(i=i||{},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"],i.customHeaders)}getChatsUserMessage(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling getChatsUserMessage';if(i==null||i==="")throw'Missing the required parameter "messageIds" when calling getChatsUserMessage';return this.apiClient.callApi("/api/v2/chats/users/{userId}/messages/{messageIds}","GET",{userId:e,messageIds:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getChatsUserMessages(e,i){if(i=i||{},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:i.limit,before:i.before,after:i.after,excludeMetadata:i.excludeMetadata},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getChatsUserSettings(e,i){if(i=i||{},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"],i.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,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "roomJid" when calling patchChatsRoom';if(i==null)throw'Missing the required parameter "body" when calling patchChatsRoom';return this.apiClient.callApi("/api/v2/chats/rooms/{roomJid}","PATCH",{roomJid:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchChatsRoomMessage(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "roomJid" when calling patchChatsRoomMessage';if(i==null||i==="")throw'Missing the required parameter "messageId" when calling patchChatsRoomMessage';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchChatsSettings(e,i){if(i=i||{},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"],i.customHeaders)}patchChatsUserMessage(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "userId" when calling patchChatsUserMessage';if(i==null||i==="")throw'Missing the required parameter "messageId" when calling patchChatsUserMessage';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchChatsUserSettings(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling patchChatsUserSettings';if(i==null)throw'Missing the required parameter "body" when calling patchChatsUserSettings';return this.apiClient.callApi("/api/v2/chats/users/{userId}/settings","PATCH",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchChatsUsersMeSettings(e,i){if(i=i||{},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"],i.customHeaders)}postChatsRoomMessages(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "roomJid" when calling postChatsRoomMessages';if(i==null)throw'Missing the required parameter "body" when calling postChatsRoomMessages';return this.apiClient.callApi("/api/v2/chats/rooms/{roomJid}/messages","POST",{roomJid:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postChatsRoomMessagesPins(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "roomJid" when calling postChatsRoomMessagesPins';if(i==null)throw'Missing the required parameter "body" when calling postChatsRoomMessagesPins';return this.apiClient.callApi("/api/v2/chats/rooms/{roomJid}/messages/pins","POST",{roomJid:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postChatsRoomParticipant(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "roomJid" when calling postChatsRoomParticipant';if(i==null||i==="")throw'Missing the required parameter "userId" when calling postChatsRoomParticipant';return this.apiClient.callApi("/api/v2/chats/rooms/{roomJid}/participants/{userId}","POST",{roomJid:e,userId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postChatsRooms(e,i){if(i=i||{},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"],i.customHeaders)}postChatsUserMessages(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling postChatsUserMessages';if(i==null)throw'Missing the required parameter "body" when calling postChatsUserMessages';return this.apiClient.callApi("/api/v2/chats/users/{userId}/messages","POST",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postChatsUserMessagesPins(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling postChatsUserMessagesPins';if(i==null)throw'Missing the required parameter "body" when calling postChatsUserMessagesPins';return this.apiClient.callApi("/api/v2/chats/users/{userId}/messages/pins","POST",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postChatsUsersMeSettings(e,i){if(i=i||{},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"],i.customHeaders)}putChatsMessageReactions(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "messageId" when calling putChatsMessageReactions';if(i==null)throw'Missing the required parameter "body" when calling putChatsMessageReactions';return this.apiClient.callApi("/api/v2/chats/messages/{messageId}/reactions","PUT",{messageId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putChatsSettings(e,i){if(i=i||{},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"],i.customHeaders)}},$A=class{constructor(e){this.apiClient=e||q.instance}deleteCoachingAppointment(e,i){if(i=i||{},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"],i.customHeaders)}deleteCoachingAppointmentAnnotation(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "appointmentId" when calling deleteCoachingAppointmentAnnotation';if(i==null||i==="")throw'Missing the required parameter "annotationId" when calling deleteCoachingAppointmentAnnotation';return this.apiClient.callApi("/api/v2/coaching/appointments/{appointmentId}/annotations/{annotationId}","DELETE",{appointmentId:e,annotationId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getCoachingAppointment(e,i){if(i=i||{},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"],i.customHeaders)}getCoachingAppointmentAnnotation(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "appointmentId" when calling getCoachingAppointmentAnnotation';if(i==null||i==="")throw'Missing the required parameter "annotationId" when calling getCoachingAppointmentAnnotation';return this.apiClient.callApi("/api/v2/coaching/appointments/{appointmentId}/annotations/{annotationId}","GET",{appointmentId:e,annotationId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getCoachingAppointmentAnnotations(e,i){if(i=i||{},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:i.pageNumber,pageSize:i.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getCoachingAppointmentStatuses(e,i){if(i=i||{},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:i.pageNumber,pageSize:i.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getCoachingAppointments(e,i){if(i=i||{},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:i.interval,pageNumber:i.pageNumber,pageSize:i.pageSize,statuses:this.apiClient.buildCollectionParam(i.statuses,"multi"),facilitatorIds:this.apiClient.buildCollectionParam(i.facilitatorIds,"multi"),sortOrder:i.sortOrder,relationships:this.apiClient.buildCollectionParam(i.relationships,"multi"),completionInterval:i.completionInterval,overdue:i.overdue,intervalCondition:i.intervalCondition},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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"],i.customHeaders)}patchCoachingAppointment(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "appointmentId" when calling patchCoachingAppointment';if(i==null)throw'Missing the required parameter "body" when calling patchCoachingAppointment';return this.apiClient.callApi("/api/v2/coaching/appointments/{appointmentId}","PATCH",{appointmentId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchCoachingAppointmentAnnotation(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "appointmentId" when calling patchCoachingAppointmentAnnotation';if(i==null||i==="")throw'Missing the required parameter "annotationId" when calling patchCoachingAppointmentAnnotation';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchCoachingAppointmentStatus(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "appointmentId" when calling patchCoachingAppointmentStatus';if(i==null)throw'Missing the required parameter "body" when calling patchCoachingAppointmentStatus';return this.apiClient.callApi("/api/v2/coaching/appointments/{appointmentId}/status","PATCH",{appointmentId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchCoachingNotification(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "notificationId" when calling patchCoachingNotification';if(i==null)throw'Missing the required parameter "body" when calling patchCoachingNotification';return this.apiClient.callApi("/api/v2/coaching/notifications/{notificationId}","PATCH",{notificationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postCoachingAppointmentAnnotations(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "appointmentId" when calling postCoachingAppointmentAnnotations';if(i==null)throw'Missing the required parameter "body" when calling postCoachingAppointmentAnnotations';return this.apiClient.callApi("/api/v2/coaching/appointments/{appointmentId}/annotations","POST",{appointmentId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postCoachingAppointmentConversations(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "appointmentId" when calling postCoachingAppointmentConversations';if(i==null)throw'Missing the required parameter "body" when calling postCoachingAppointmentConversations';return this.apiClient.callApi("/api/v2/coaching/appointments/{appointmentId}/conversations","POST",{appointmentId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postCoachingAppointments(e,i){if(i=i||{},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"],i.customHeaders)}postCoachingAppointmentsAggregatesQuery(e,i){if(i=i||{},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"],i.customHeaders)}postCoachingScheduleslotsJobs(e,i){if(i=i||{},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"],i.customHeaders)}postCoachingScheduleslotsQuery(e,i){if(i=i||{},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"],i.customHeaders)}},NA=class{constructor(e){this.apiClient=e||q.instance}deleteContentmanagementDocument(e,i){if(i=i||{},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:i.override},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}deleteContentmanagementShare(e,i){if(i=i||{},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"],i.customHeaders)}deleteContentmanagementStatusStatusId(e,i){if(i=i||{},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"],i.customHeaders)}deleteContentmanagementWorkspace(e,i){if(i=i||{},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:i.moveChildrenToWorkspaceId},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}deleteContentmanagementWorkspaceMember(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "workspaceId" when calling deleteContentmanagementWorkspaceMember';if(i==null||i==="")throw'Missing the required parameter "memberId" when calling deleteContentmanagementWorkspaceMember';return this.apiClient.callApi("/api/v2/contentmanagement/workspaces/{workspaceId}/members/{memberId}","DELETE",{workspaceId:e,memberId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteContentmanagementWorkspaceTagvalue(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "workspaceId" when calling deleteContentmanagementWorkspaceTagvalue';if(i==null||i==="")throw'Missing the required parameter "tagId" when calling deleteContentmanagementWorkspaceTagvalue';return this.apiClient.callApi("/api/v2/contentmanagement/workspaces/{workspaceId}/tagvalues/{tagId}","DELETE",{workspaceId:e,tagId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getContentmanagementDocument(e,i){if(i=i||{},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(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getContentmanagementDocumentContent(e,i){if(i=i||{},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:i.disposition,contentType:i.contentType},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getContentmanagementDocuments(e,i){if(i=i||{},e==null)throw'Missing the required parameter "workspaceId" when calling getContentmanagementDocuments';return this.apiClient.callApi("/api/v2/contentmanagement/documents","GET",{},{workspaceId:e,name:i.name,expand:this.apiClient.buildCollectionParam(i.expand,"multi"),pageSize:i.pageSize,pageNumber:i.pageNumber,sortBy:i.sortBy,sortOrder:i.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getContentmanagementQuery(e,i){if(i=i||{},e==null)throw'Missing the required parameter "queryPhrase" when calling getContentmanagementQuery';return this.apiClient.callApi("/api/v2/contentmanagement/query","GET",{},{pageSize:i.pageSize,pageNumber:i.pageNumber,sortBy:i.sortBy,sortOrder:i.sortOrder,queryPhrase:e,expand:this.apiClient.buildCollectionParam(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getContentmanagementSecurityprofile(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getContentmanagementSharedSharedId(e,i){if(i=i||{},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:i.disposition,contentType:i.contentType,expand:i.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getContentmanagementWorkspaceDocuments(e,i){if(i=i||{},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(i.expand,"multi"),pageSize:i.pageSize,pageNumber:i.pageNumber,sortBy:i.sortBy,sortOrder:i.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getContentmanagementWorkspaceMember(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "workspaceId" when calling getContentmanagementWorkspaceMember';if(i==null||i==="")throw'Missing the required parameter "memberId" when calling getContentmanagementWorkspaceMember';return this.apiClient.callApi("/api/v2/contentmanagement/workspaces/{workspaceId}/members/{memberId}","GET",{workspaceId:e,memberId:i},{expand:this.apiClient.buildCollectionParam(n.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getContentmanagementWorkspaceMembers(e,i){if(i=i||{},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:i.pageSize,pageNumber:i.pageNumber,expand:this.apiClient.buildCollectionParam(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getContentmanagementWorkspaceTagvalue(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "workspaceId" when calling getContentmanagementWorkspaceTagvalue';if(i==null||i==="")throw'Missing the required parameter "tagId" when calling getContentmanagementWorkspaceTagvalue';return this.apiClient.callApi("/api/v2/contentmanagement/workspaces/{workspaceId}/tagvalues/{tagId}","GET",{workspaceId:e,tagId:i},{expand:this.apiClient.buildCollectionParam(n.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getContentmanagementWorkspaceTagvalues(e,i){if(i=i||{},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:i.value,pageSize:i.pageSize,pageNumber:i.pageNumber,expand:this.apiClient.buildCollectionParam(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "documentId" when calling postContentmanagementDocument';if(i==null)throw'Missing the required parameter "body" when calling postContentmanagementDocument';return this.apiClient.callApi("/api/v2/contentmanagement/documents/{documentId}","POST",{documentId:e},{expand:n.expand,override:n.override},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postContentmanagementDocumentContent(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "documentId" when calling postContentmanagementDocumentContent';if(i==null)throw'Missing the required parameter "body" when calling postContentmanagementDocumentContent';return this.apiClient.callApi("/api/v2/contentmanagement/documents/{documentId}/content","POST",{documentId:e},{override:n.override},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postContentmanagementDocuments(e,i){if(i=i||{},e==null)throw'Missing the required parameter "body" when calling postContentmanagementDocuments';return this.apiClient.callApi("/api/v2/contentmanagement/documents","POST",{},{copySource:i.copySource,moveSource:i.moveSource,override:i.override},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postContentmanagementQuery(e,i){if(i=i||{},e==null)throw'Missing the required parameter "body" when calling postContentmanagementQuery';return this.apiClient.callApi("/api/v2/contentmanagement/query","POST",{},{expand:i.expand},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postContentmanagementShares(e,i){if(i=i||{},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"],i.customHeaders)}postContentmanagementWorkspaceTagvalues(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "workspaceId" when calling postContentmanagementWorkspaceTagvalues';if(i==null)throw'Missing the required parameter "body" when calling postContentmanagementWorkspaceTagvalues';return this.apiClient.callApi("/api/v2/contentmanagement/workspaces/{workspaceId}/tagvalues","POST",{workspaceId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postContentmanagementWorkspaceTagvaluesQuery(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "workspaceId" when calling postContentmanagementWorkspaceTagvaluesQuery';if(i==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(n.expand,"multi")},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postContentmanagementWorkspaces(e,i){if(i=i||{},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"],i.customHeaders)}putContentmanagementWorkspace(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "workspaceId" when calling putContentmanagementWorkspace';if(i==null)throw'Missing the required parameter "body" when calling putContentmanagementWorkspace';return this.apiClient.callApi("/api/v2/contentmanagement/workspaces/{workspaceId}","PUT",{workspaceId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putContentmanagementWorkspaceMember(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "workspaceId" when calling putContentmanagementWorkspaceMember';if(i==null||i==="")throw'Missing the required parameter "memberId" when calling putContentmanagementWorkspaceMember';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}putContentmanagementWorkspaceTagvalue(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "workspaceId" when calling putContentmanagementWorkspaceTagvalue';if(i==null||i==="")throw'Missing the required parameter "tagId" when calling putContentmanagementWorkspaceTagvalue';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}},UA=class{constructor(e){this.apiClient=e||q.instance}deleteAnalyticsConversationsAggregatesJob(e,i){if(i=i||{},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"],i.customHeaders)}deleteAnalyticsConversationsDetailsJob(e,i){if(i=i||{},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"],i.customHeaders)}deleteConversation(e,i){if(i=i||{},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"],i.customHeaders)}deleteConversationCustomattribute(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling deleteConversationCustomattribute';if(i==null||i==="")throw'Missing the required parameter "attributesId" when calling deleteConversationCustomattribute';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/customattributes/{attributesId}","DELETE",{conversationId:e,attributesId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteConversationParticipantCode(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling deleteConversationParticipantCode';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling deleteConversationParticipantCode';if(n==null||n==="")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:i,addCommunicationCode:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}deleteConversationParticipantFlaggedreason(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling deleteConversationParticipantFlaggedreason';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling deleteConversationParticipantFlaggedreason';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/participants/{participantId}/flaggedreason","DELETE",{conversationId:e,participantId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteConversationsCallParticipantCommunicationPostflowaction(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling deleteConversationsCallParticipantCommunicationPostflowaction';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling deleteConversationsCallParticipantCommunicationPostflowaction';if(n==null||n==="")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:i,communicationId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}deleteConversationsCallParticipantConsult(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling deleteConversationsCallParticipantConsult';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteConversationsEmailMessagesDraftAttachment(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling deleteConversationsEmailMessagesDraftAttachment';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteConversationsMessagesCachedmediaCachedMediaItemId(e,i){if(i=i||{},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"],i.customHeaders)}deleteConversationsMessagingIntegrationsAppleIntegrationId(e,i){if(i=i||{},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"],i.customHeaders)}deleteConversationsMessagingIntegrationsFacebookIntegrationId(e,i){if(i=i||{},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"],i.customHeaders)}deleteConversationsMessagingIntegrationsInstagramIntegrationId(e,i){if(i=i||{},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"],i.customHeaders)}deleteConversationsMessagingIntegrationsOpenExtensionsGooglebusinessprofileIntegrationId(e,i){if(i=i||{},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"],i.customHeaders)}deleteConversationsMessagingIntegrationsOpenIntegrationId(e,i){if(i=i||{},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"],i.customHeaders)}deleteConversationsMessagingIntegrationsTwitterIntegrationId(e,i){if(i=i||{},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"],i.customHeaders)}deleteConversationsMessagingIntegrationsWhatsappIntegrationId(e,i){if(i=i||{},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"],i.customHeaders)}deleteConversationsMessagingSetting(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getAnalyticsConversationDetails(e,i){if(i=i||{},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"],i.customHeaders)}getAnalyticsConversationsAggregatesJob(e,i){if(i=i||{},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"],i.customHeaders)}getAnalyticsConversationsAggregatesJobResults(e,i){if(i=i||{},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:i.cursor},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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"],i.customHeaders)}getAnalyticsConversationsDetailsJobResults(e,i){if(i=i||{},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:i.cursor,pageSize:i.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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"],i.customHeaders)}getConversationAssistantCopilotcontext(e,i){if(i=i||{},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"],i.customHeaders)}getConversationCommunicationAgentchecklist(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationCommunicationAgentchecklist';if(i==null||i==="")throw'Missing the required parameter "communicationId" when calling getConversationCommunicationAgentchecklist';if(n==null||n==="")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:i,agentChecklistId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getConversationCommunicationAgentchecklistJob(e,i,n,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationCommunicationAgentchecklistJob';if(i==null||i==="")throw'Missing the required parameter "communicationId" when calling getConversationCommunicationAgentchecklistJob';if(n==null||n==="")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:i,agentChecklistId:n,jobId:a},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}getConversationCommunicationAgentchecklists(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationCommunicationAgentchecklists';if(i==null||i==="")throw'Missing the required parameter "communicationId" when calling getConversationCommunicationAgentchecklists';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/communications/{communicationId}/agentchecklists","GET",{conversationId:e,communicationId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getConversationCommunicationInternalmessage(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationCommunicationInternalmessage';if(i==null||i==="")throw'Missing the required parameter "communicationId" when calling getConversationCommunicationInternalmessage';if(n==null||n==="")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:i,messageId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getConversationCommunicationInternalmessages(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationCommunicationInternalmessages';if(i==null||i==="")throw'Missing the required parameter "communicationId" when calling getConversationCommunicationInternalmessages';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/communications/{communicationId}/internalmessages","GET",{conversationId:e,communicationId:i},{pageSize:n.pageSize,pageNumber:n.pageNumber},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getConversationCustomattribute(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationCustomattribute';if(i==null||i==="")throw'Missing the required parameter "attributesId" when calling getConversationCustomattribute';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/customattributes/{attributesId}","GET",{conversationId:e,attributesId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getConversationCustomattributes(e,i){if(i=i||{},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"],i.customHeaders)}getConversationParticipantSecureivrsession(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationParticipantSecureivrsession';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling getConversationParticipantSecureivrsession';if(n==null||n==="")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:i,secureSessionId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getConversationParticipantSecureivrsessions(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationParticipantSecureivrsessions';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling getConversationParticipantSecureivrsessions';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/participants/{participantId}/secureivrsessions","GET",{conversationId:e,participantId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getConversationParticipantWrapup(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationParticipantWrapup';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling getConversationParticipantWrapup';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/participants/{participantId}/wrapup","GET",{conversationId:e,participantId:i},{provisional:n.provisional},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getConversationParticipantWrapupcodes(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationParticipantWrapupcodes';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling getConversationParticipantWrapupcodes';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/participants/{participantId}/wrapupcodes","GET",{conversationId:e,participantId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getConversationSecureattributes(e,i){if(i=i||{},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"],i.customHeaders)}getConversationSuggestion(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationSuggestion';if(i==null||i==="")throw'Missing the required parameter "suggestionId" when calling getConversationSuggestion';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/suggestions/{suggestionId}","GET",{conversationId:e,suggestionId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getConversationSuggestions(e,i){if(i=i||{},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:i.before,after:i.after,pageSize:i.pageSize,type:i.type,state:i.state},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getConversationSummaries(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getConversationsCallParticipantCommunicationWrapup(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationsCallParticipantCommunicationWrapup';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling getConversationsCallParticipantCommunicationWrapup';if(n==null||n==="")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:i,communicationId:n},{provisional:a.provisional},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getConversationsCallParticipantWrapup(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationsCallParticipantWrapup';if(i==null||i==="")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:i},{provisional:n.provisional},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getConversationsCallParticipantWrapupcodes(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationsCallParticipantWrapupcodes';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getConversationsCallback(e,i){if(i=i||{},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"],i.customHeaders)}getConversationsCallbackParticipantCommunicationWrapup(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationsCallbackParticipantCommunicationWrapup';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling getConversationsCallbackParticipantCommunicationWrapup';if(n==null||n==="")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:i,communicationId:n},{provisional:a.provisional},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getConversationsCallbackParticipantWrapup(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationsCallbackParticipantWrapup';if(i==null||i==="")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:i},{provisional:n.provisional},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getConversationsCallbackParticipantWrapupcodes(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationsCallbackParticipantWrapupcodes';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getConversationsCallbacks(e){return e=e||{},this.apiClient.callApi("/api/v2/conversations/callbacks","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getConversationsCalls(e){return e=e||{},this.apiClient.callApi("/api/v2/conversations/calls","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getConversationsCallsHistory(e){return e=e||{},this.apiClient.callApi("/api/v2/conversations/calls/history","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,interval:e.interval,expand:this.apiClient.buildCollectionParam(e.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getConversationsCallsMaximumconferenceparties(e){return e=e||{},this.apiClient.callApi("/api/v2/conversations/calls/maximumconferenceparties","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getConversationsChat(e,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationsChat';return this.apiClient.callApi("/api/v2/conversations/chats/{conversationId}","GET",{conversationId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getConversationsChatMessage(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationsChatMessage';if(i==null||i==="")throw'Missing the required parameter "messageId" when calling getConversationsChatMessage';return this.apiClient.callApi("/api/v2/conversations/chats/{conversationId}/messages/{messageId}","GET",{conversationId:e,messageId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getConversationsChatMessages(e,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationsChatMessages';return this.apiClient.callApi("/api/v2/conversations/chats/{conversationId}/messages","GET",{conversationId:e},{after:i.after,before:i.before,sortOrder:i.sortOrder,maxResults:i.maxResults},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getConversationsChatParticipantCommunicationWrapup(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationsChatParticipantCommunicationWrapup';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling getConversationsChatParticipantCommunicationWrapup';if(n==null||n==="")throw'Missing the required parameter "communicationId" when calling getConversationsChatParticipantCommunicationWrapup';return this.apiClient.callApi("/api/v2/conversations/chats/{conversationId}/participants/{participantId}/communications/{communicationId}/wrapup","GET",{conversationId:e,participantId:i,communicationId:n},{provisional:a.provisional},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getConversationsChatParticipantWrapup(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationsChatParticipantWrapup';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling getConversationsChatParticipantWrapup';return this.apiClient.callApi("/api/v2/conversations/chats/{conversationId}/participants/{participantId}/wrapup","GET",{conversationId:e,participantId:i},{provisional:n.provisional},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getConversationsChatParticipantWrapupcodes(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationsChatParticipantWrapupcodes';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling getConversationsChatParticipantWrapupcodes';return this.apiClient.callApi("/api/v2/conversations/chats/{conversationId}/participants/{participantId}/wrapupcodes","GET",{conversationId:e,participantId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getConversationsChats(e){return e=e||{},this.apiClient.callApi("/api/v2/conversations/chats","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getConversationsCobrowsesession(e,i){if(i=i||{},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"],i.customHeaders)}getConversationsCobrowsesessionParticipantCommunicationWrapup(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationsCobrowsesessionParticipantCommunicationWrapup';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling getConversationsCobrowsesessionParticipantCommunicationWrapup';if(n==null||n==="")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:i,communicationId:n},{provisional:a.provisional},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getConversationsCobrowsesessionParticipantWrapup(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationsCobrowsesessionParticipantWrapup';if(i==null||i==="")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:i},{provisional:n.provisional},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getConversationsCobrowsesessionParticipantWrapupcodes(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationsCobrowsesessionParticipantWrapupcodes';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.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,i){if(i=i||{},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"],i.customHeaders)}getConversationsCustomattributesSchemaVersion(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "schemaId" when calling getConversationsCustomattributesSchemaVersion';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getConversationsCustomattributesSchemaVersions(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getConversationsEmailMessage(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationsEmailMessage';if(i==null||i==="")throw'Missing the required parameter "messageId" when calling getConversationsEmailMessage';return this.apiClient.callApi("/api/v2/conversations/emails/{conversationId}/messages/{messageId}","GET",{conversationId:e,messageId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getConversationsEmailMessages(e,i){if(i=i||{},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:i.includeAgentlessStitchedMessages},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getConversationsEmailMessagesDraft(e,i){if(i=i||{},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"],i.customHeaders)}getConversationsEmailParticipantCommunicationWrapup(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationsEmailParticipantCommunicationWrapup';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling getConversationsEmailParticipantCommunicationWrapup';if(n==null||n==="")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:i,communicationId:n},{provisional:a.provisional},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getConversationsEmailParticipantWrapup(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationsEmailParticipantWrapup';if(i==null||i==="")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:i},{provisional:n.provisional},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getConversationsEmailParticipantWrapupcodes(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationsEmailParticipantWrapupcodes';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getConversationsEmailSettings(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getConversationsMessageCommunicationMessagesMedia(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationsMessageCommunicationMessagesMedia';if(i==null||i==="")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:i},{status:n.status,pageNumber:n.pageNumber,pageSize:n.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getConversationsMessageCommunicationMessagesMediaMediaId(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationsMessageCommunicationMessagesMediaMediaId';if(i==null||i==="")throw'Missing the required parameter "communicationId" when calling getConversationsMessageCommunicationMessagesMediaMediaId';if(n==null||n==="")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:i,mediaId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getConversationsMessageDetails(e,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "messageId" when calling getConversationsMessageDetails';return this.apiClient.callApi("/api/v2/conversations/messages/{messageId}/details","GET",{messageId:e},{useNormalizedMessage:i.useNormalizedMessage},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getConversationsMessageMessage(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationsMessageMessage';if(i==null||i==="")throw'Missing the required parameter "messageId" when calling getConversationsMessageMessage';return this.apiClient.callApi("/api/v2/conversations/messages/{conversationId}/messages/{messageId}","GET",{conversationId:e,messageId:i},{useNormalizedMessage:n.useNormalizedMessage},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getConversationsMessageParticipantCommunicationWrapup(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationsMessageParticipantCommunicationWrapup';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling getConversationsMessageParticipantCommunicationWrapup';if(n==null||n==="")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:i,communicationId:n},{provisional:a.provisional},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getConversationsMessageParticipantWrapup(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationsMessageParticipantWrapup';if(i==null||i==="")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:i},{provisional:n.provisional},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getConversationsMessageParticipantWrapupcodes(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationsMessageParticipantWrapupcodes';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getConversationsMessagingIdentityresolutionIntegrationsFacebookIntegrationId(e,i){if(i=i||{},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"],i.customHeaders)}getConversationsMessagingIdentityresolutionIntegrationsInstagramIntegrationId(e,i){if(i=i||{},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"],i.customHeaders)}getConversationsMessagingIdentityresolutionIntegrationsOpenIntegrationId(e,i){if(i=i||{},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"],i.customHeaders)}getConversationsMessagingIdentityresolutionIntegrationsTwitterIntegrationId(e,i){if(i=i||{},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"],i.customHeaders)}getConversationsMessagingIdentityresolutionIntegrationsWhatsappIntegrationId(e,i){if(i=i||{},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"],i.customHeaders)}getConversationsMessagingIntegrationTwitterOauthSettings(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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:i.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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:i.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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:i.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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:i.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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"],i.customHeaders)}getConversationsMessagingIntegrationsOpenExtensionsGooglebusinessprofileTokenAccounts(e,i){if(i=i||{},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"],i.customHeaders)}getConversationsMessagingIntegrationsOpenIntegrationId(e,i){if(i=i||{},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:i.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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:i.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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:i.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getConversationsMessagingOauthAppleCallback(e,i,n){if(n=n||{},e==null)throw'Missing the required parameter "code" when calling getConversationsMessagingOauthAppleCallback';if(i==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:i,error:n.error},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getConversationsMessagingSetting(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationsScreenshareParticipantCommunicationWrapup';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling getConversationsScreenshareParticipantCommunicationWrapup';if(n==null||n==="")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:i,communicationId:n},{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,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationsSocialParticipantCommunicationWrapup';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling getConversationsSocialParticipantCommunicationWrapup';if(n==null||n==="")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:i,communicationId:n},{provisional:a.provisional},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getConversationsVideoDetails(e,i){if(i=i||{},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"],i.customHeaders)}getConversationsVideoParticipantCommunicationWrapup(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationsVideoParticipantCommunicationWrapup';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling getConversationsVideoParticipantCommunicationWrapup';if(n==null||n==="")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:i,communicationId:n},{provisional:a.provisional},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getConversationsVideosMeeting(e,i){if(i=i||{},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"],i.customHeaders)}patchConversationCustomattributes(e,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchConversationCustomattributes';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/customattributes","PATCH",{conversationId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}patchConversationCustomattributesBulk(e,i){if(i=i||{},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},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}patchConversationParticipant(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchConversationParticipant';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling patchConversationParticipant';if(n==null)throw'Missing the required parameter "body" when calling patchConversationParticipant';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/participants/{participantId}","PATCH",{conversationId:e,participantId:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchConversationParticipantAttributes(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchConversationParticipantAttributes';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling patchConversationParticipantAttributes';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchConversationRecordingstate(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchConversationRecordingstate';if(i==null)throw'Missing the required parameter "body" when calling patchConversationRecordingstate';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/recordingstate","PATCH",{conversationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchConversationSecureattributes(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchConversationSecureattributes';if(i==null)throw'Missing the required parameter "body" when calling patchConversationSecureattributes';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/secureattributes","PATCH",{conversationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchConversationSummaryEngagements(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchConversationSummaryEngagements';if(i==null||i==="")throw'Missing the required parameter "summaryId" when calling patchConversationSummaryEngagements';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/summaries/{summaryId}/engagements","PATCH",{conversationId:e,summaryId:i},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchConversationSummaryFeedback(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchConversationSummaryFeedback';if(i==null||i==="")throw'Missing the required parameter "summaryId" when calling patchConversationSummaryFeedback';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/summaries/{summaryId}/feedback","PATCH",{conversationId:e,summaryId:i},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchConversationUtilizationlabel(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchConversationUtilizationlabel';if(i==null)throw'Missing the required parameter "body" when calling patchConversationUtilizationlabel';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/utilizationlabel","PATCH",{conversationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchConversationsAftercallworkConversationIdParticipantCommunication(e,i,n,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchConversationsAftercallworkConversationIdParticipantCommunication';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling patchConversationsAftercallworkConversationIdParticipantCommunication';if(n==null||n==="")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:i,communicationId:n},{},{},{},a,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}patchConversationsCall(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchConversationsCall';if(i==null)throw'Missing the required parameter "body" when calling patchConversationsCall';return this.apiClient.callApi("/api/v2/conversations/calls/{conversationId}","PATCH",{conversationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchConversationsCallConference(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchConversationsCallConference';if(i==null)throw'Missing the required parameter "body" when calling patchConversationsCallConference';return this.apiClient.callApi("/api/v2/conversations/calls/{conversationId}/conference","PATCH",{conversationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchConversationsCallParticipant(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchConversationsCallParticipant';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling patchConversationsCallParticipant';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchConversationsCallParticipantAttributes(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchConversationsCallParticipantAttributes';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling patchConversationsCallParticipantAttributes';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchConversationsCallParticipantCommunication(e,i,n,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchConversationsCallParticipantCommunication';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling patchConversationsCallParticipantCommunication';if(n==null||n==="")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:i,communicationId:n},{},{},{},a,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}patchConversationsCallParticipantCommunicationPostflowaction(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchConversationsCallParticipantCommunicationPostflowaction';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling patchConversationsCallParticipantCommunicationPostflowaction';if(n==null||n==="")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:i,communicationId:n},{},{},{},a.body,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchConversationsCallParticipantConsult(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchConversationsCallParticipantConsult';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling patchConversationsCallParticipantConsult';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchConversationsCallParticipantUserUserId(e,i,n,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchConversationsCallParticipantUserUserId';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling patchConversationsCallParticipantUserUserId';if(n==null||n==="")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:i,userId:n},{},{},{},a,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}patchConversationsCallback(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchConversationsCallback';if(i==null)throw'Missing the required parameter "body" when calling patchConversationsCallback';return this.apiClient.callApi("/api/v2/conversations/callbacks/{conversationId}","PATCH",{conversationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchConversationsCallbackParticipant(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchConversationsCallbackParticipant';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling patchConversationsCallbackParticipant';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchConversationsCallbackParticipantAttributes(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchConversationsCallbackParticipantAttributes';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling patchConversationsCallbackParticipantAttributes';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchConversationsCallbackParticipantCommunication(e,i,n,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchConversationsCallbackParticipantCommunication';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling patchConversationsCallbackParticipantCommunication';if(n==null||n==="")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:i,communicationId:n},{},{},{},a,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}patchConversationsCallbacks(e,i){if(i=i||{},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"],i.customHeaders)}patchConversationsChat(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchConversationsChat';if(i==null)throw'Missing the required parameter "body" when calling patchConversationsChat';return this.apiClient.callApi("/api/v2/conversations/chats/{conversationId}","PATCH",{conversationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchConversationsChatParticipant(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchConversationsChatParticipant';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling patchConversationsChatParticipant';if(n==null)throw'Missing the required parameter "body" when calling patchConversationsChatParticipant';return this.apiClient.callApi("/api/v2/conversations/chats/{conversationId}/participants/{participantId}","PATCH",{conversationId:e,participantId:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchConversationsChatParticipantAttributes(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchConversationsChatParticipantAttributes';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling patchConversationsChatParticipantAttributes';if(n==null)throw'Missing the required parameter "body" when calling patchConversationsChatParticipantAttributes';return this.apiClient.callApi("/api/v2/conversations/chats/{conversationId}/participants/{participantId}/attributes","PATCH",{conversationId:e,participantId:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchConversationsChatParticipantCommunication(e,i,n,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchConversationsChatParticipantCommunication';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling patchConversationsChatParticipantCommunication';if(n==null||n==="")throw'Missing the required parameter "communicationId" when calling patchConversationsChatParticipantCommunication';if(a==null)throw'Missing the required parameter "body" when calling patchConversationsChatParticipantCommunication';return this.apiClient.callApi("/api/v2/conversations/chats/{conversationId}/participants/{participantId}/communications/{communicationId}","PATCH",{conversationId:e,participantId:i,communicationId:n},{},{},{},a,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}patchConversationsCobrowsesession(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchConversationsCobrowsesession';if(i==null)throw'Missing the required parameter "body" when calling patchConversationsCobrowsesession';return this.apiClient.callApi("/api/v2/conversations/cobrowsesessions/{conversationId}","PATCH",{conversationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchConversationsCobrowsesessionParticipant(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchConversationsCobrowsesessionParticipant';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling patchConversationsCobrowsesessionParticipant';return this.apiClient.callApi("/api/v2/conversations/cobrowsesessions/{conversationId}/participants/{participantId}","PATCH",{conversationId:e,participantId:i},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchConversationsCobrowsesessionParticipantAttributes(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchConversationsCobrowsesessionParticipantAttributes';if(i==null||i==="")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:i},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchConversationsCobrowsesessionParticipantCommunication(e,i,n,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchConversationsCobrowsesessionParticipantCommunication';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling patchConversationsCobrowsesessionParticipantCommunication';if(n==null||n==="")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:i,communicationId:n},{},{},{},a,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}patchConversationsEmail(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchConversationsEmail';if(i==null)throw'Missing the required parameter "body" when calling patchConversationsEmail';return this.apiClient.callApi("/api/v2/conversations/emails/{conversationId}","PATCH",{conversationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchConversationsEmailMessagesDraft(e,i){if(i=i||{},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:i.autoFill,discard:i.discard},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}patchConversationsEmailParticipant(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchConversationsEmailParticipant';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling patchConversationsEmailParticipant';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchConversationsEmailParticipantAttributes(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchConversationsEmailParticipantAttributes';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling patchConversationsEmailParticipantAttributes';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchConversationsEmailParticipantCommunication(e,i,n,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchConversationsEmailParticipantCommunication';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling patchConversationsEmailParticipantCommunication';if(n==null||n==="")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:i,communicationId:n},{},{},{},a,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}patchConversationsEmailParticipantParkingstate(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchConversationsEmailParticipantParkingstate';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling patchConversationsEmailParticipantParkingstate';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchConversationsMessage(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchConversationsMessage';if(i==null)throw'Missing the required parameter "body" when calling patchConversationsMessage';return this.apiClient.callApi("/api/v2/conversations/messages/{conversationId}","PATCH",{conversationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchConversationsMessageParticipant(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchConversationsMessageParticipant';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling patchConversationsMessageParticipant';return this.apiClient.callApi("/api/v2/conversations/messages/{conversationId}/participants/{participantId}","PATCH",{conversationId:e,participantId:i},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchConversationsMessageParticipantAttributes(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchConversationsMessageParticipantAttributes';if(i==null||i==="")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:i},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchConversationsMessageParticipantCommunication(e,i,n,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchConversationsMessageParticipantCommunication';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling patchConversationsMessageParticipantCommunication';if(n==null||n==="")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:i,communicationId:n},{},{},{},a,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}patchConversationsMessageParticipantParkingstate(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchConversationsMessageParticipantParkingstate';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling patchConversationsMessageParticipantParkingstate';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchConversationsMessagingIntegrationsAppleIntegrationId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "integrationId" when calling patchConversationsMessagingIntegrationsAppleIntegrationId';if(i==null)throw'Missing the required parameter "body" when calling patchConversationsMessagingIntegrationsAppleIntegrationId';return this.apiClient.callApi("/api/v2/conversations/messaging/integrations/apple/{integrationId}","PATCH",{integrationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchConversationsMessagingIntegrationsFacebookIntegrationId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "integrationId" when calling patchConversationsMessagingIntegrationsFacebookIntegrationId';if(i==null)throw'Missing the required parameter "body" when calling patchConversationsMessagingIntegrationsFacebookIntegrationId';return this.apiClient.callApi("/api/v2/conversations/messaging/integrations/facebook/{integrationId}","PATCH",{integrationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchConversationsMessagingIntegrationsInstagramIntegrationId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "integrationId" when calling patchConversationsMessagingIntegrationsInstagramIntegrationId';if(i==null)throw'Missing the required parameter "body" when calling patchConversationsMessagingIntegrationsInstagramIntegrationId';return this.apiClient.callApi("/api/v2/conversations/messaging/integrations/instagram/{integrationId}","PATCH",{integrationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchConversationsMessagingIntegrationsOpenExtensionsGooglebusinessprofileIntegrationId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "integrationId" when calling patchConversationsMessagingIntegrationsOpenExtensionsGooglebusinessprofileIntegrationId';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchConversationsMessagingIntegrationsOpenIntegrationId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "integrationId" when calling patchConversationsMessagingIntegrationsOpenIntegrationId';if(i==null)throw'Missing the required parameter "body" when calling patchConversationsMessagingIntegrationsOpenIntegrationId';return this.apiClient.callApi("/api/v2/conversations/messaging/integrations/open/{integrationId}","PATCH",{integrationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchConversationsMessagingIntegrationsTwitterIntegrationId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "integrationId" when calling patchConversationsMessagingIntegrationsTwitterIntegrationId';if(i==null)throw'Missing the required parameter "body" when calling patchConversationsMessagingIntegrationsTwitterIntegrationId';return this.apiClient.callApi("/api/v2/conversations/messaging/integrations/twitter/{integrationId}","PATCH",{integrationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchConversationsMessagingIntegrationsWhatsappEmbeddedsignupIntegrationId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "integrationId" when calling patchConversationsMessagingIntegrationsWhatsappEmbeddedsignupIntegrationId';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchConversationsMessagingIntegrationsWhatsappIntegrationId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "integrationId" when calling patchConversationsMessagingIntegrationsWhatsappIntegrationId';if(i==null)throw'Missing the required parameter "body" when calling patchConversationsMessagingIntegrationsWhatsappIntegrationId';return this.apiClient.callApi("/api/v2/conversations/messaging/integrations/whatsapp/{integrationId}","PATCH",{integrationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchConversationsMessagingSetting(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "messageSettingId" when calling patchConversationsMessagingSetting';if(i==null)throw'Missing the required parameter "body" when calling patchConversationsMessagingSetting';return this.apiClient.callApi("/api/v2/conversations/messaging/settings/{messageSettingId}","PATCH",{messageSettingId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchConversationsMessagingSupportedcontentSupportedContentId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "supportedContentId" when calling patchConversationsMessagingSupportedcontentSupportedContentId';if(i==null)throw'Missing the required parameter "body" when calling patchConversationsMessagingSupportedcontentSupportedContentId';return this.apiClient.callApi("/api/v2/conversations/messaging/supportedcontent/{supportedContentId}","PATCH",{supportedContentId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchConversationsSettings(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsConversationDetailsProperties(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postAnalyticsConversationDetailsProperties';if(i==null)throw'Missing the required parameter "body" when calling postAnalyticsConversationDetailsProperties';return this.apiClient.callApi("/api/v2/analytics/conversations/{conversationId}/details/properties","POST",{conversationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postAnalyticsConversationsActivityQuery(e,i){if(i=i||{},e==null)throw'Missing the required parameter "body" when calling postAnalyticsConversationsActivityQuery';return this.apiClient.callApi("/api/v2/analytics/conversations/activity/query","POST",{},{pageSize:i.pageSize,pageNumber:i.pageNumber},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postAnalyticsConversationsAggregatesJobs(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsConversationsAggregatesQuery(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsConversationsDetailsJobs(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsConversationsDetailsQuery(e,i){if(i=i||{},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"],i.customHeaders)}postConversationAssign(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationAssign';if(i==null)throw'Missing the required parameter "body" when calling postConversationAssign';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/assign","POST",{conversationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postConversationBarge(e,i){if(i=i||{},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"],i.customHeaders)}postConversationCobrowse(e,i){if(i=i||{},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"],i.customHeaders)}postConversationCommunicationAgentchecklist(e,i,n,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationCommunicationAgentchecklist';if(i==null||i==="")throw'Missing the required parameter "communicationId" when calling postConversationCommunicationAgentchecklist';if(n==null||n==="")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:i,agentChecklistId:n},{},{},{},a,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}postConversationCommunicationAgentchecklistAgentaction(e,i,n,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationCommunicationAgentchecklistAgentaction';if(i==null||i==="")throw'Missing the required parameter "communicationId" when calling postConversationCommunicationAgentchecklistAgentaction';if(n==null||n==="")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:i,agentChecklistId:n},{},{},{},a,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}postConversationCommunicationAgentchecklistJobs(e,i,n,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationCommunicationAgentchecklistJobs';if(i==null||i==="")throw'Missing the required parameter "communicationId" when calling postConversationCommunicationAgentchecklistJobs';if(n==null||n==="")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:i,agentChecklistId:n},{},{},{},a,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}postConversationCommunicationAgentchecklistsFinalize(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationCommunicationAgentchecklistsFinalize';if(i==null||i==="")throw'Missing the required parameter "communicationId" when calling postConversationCommunicationAgentchecklistsFinalize';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postConversationCommunicationInternalmessages(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationCommunicationInternalmessages';if(i==null||i==="")throw'Missing the required parameter "communicationId" when calling postConversationCommunicationInternalmessages';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postConversationDisconnect(e,i){if(i=i||{},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"],i.customHeaders)}postConversationParticipantCallbacks(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationParticipantCallbacks';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling postConversationParticipantCallbacks';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/participants/{participantId}/callbacks","POST",{conversationId:e,participantId:i},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postConversationParticipantDigits(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationParticipantDigits';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling postConversationParticipantDigits';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/participants/{participantId}/digits","POST",{conversationId:e,participantId:i},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postConversationParticipantInternalmessagesUsersCommunications(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationParticipantInternalmessagesUsersCommunications';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling postConversationParticipantInternalmessagesUsersCommunications';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postConversationParticipantReplace(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationParticipantReplace';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling postConversationParticipantReplace';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postConversationParticipantReplaceAgent(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationParticipantReplaceAgent';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling postConversationParticipantReplaceAgent';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postConversationParticipantReplaceContactExternal(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationParticipantReplaceContactExternal';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling postConversationParticipantReplaceContactExternal';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postConversationParticipantReplaceExternal(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationParticipantReplaceExternal';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling postConversationParticipantReplaceExternal';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postConversationParticipantReplaceQueue(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationParticipantReplaceQueue';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling postConversationParticipantReplaceQueue';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postConversationParticipantSecureivrsessions(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationParticipantSecureivrsessions';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling postConversationParticipantSecureivrsessions';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/participants/{participantId}/secureivrsessions","POST",{conversationId:e,participantId:i},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postConversationParticipantTransfer(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationParticipantTransfer';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling postConversationParticipantTransfer';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postConversationSuggestionEngagement(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationSuggestionEngagement';if(i==null||i==="")throw'Missing the required parameter "suggestionId" when calling postConversationSuggestionEngagement';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postConversationSuggestionsFeedback(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationSuggestionsFeedback';if(i==null)throw'Missing the required parameter "body" when calling postConversationSuggestionsFeedback';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/suggestions/feedback","POST",{conversationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postConversationSummaryFeedback(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationSummaryFeedback';if(i==null||i==="")throw'Missing the required parameter "summaryId" when calling postConversationSummaryFeedback';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/summaries/{summaryId}/feedback","POST",{conversationId:e,summaryId:i},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postConversationsCall(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsCall';if(i==null)throw'Missing the required parameter "body" when calling postConversationsCall';return this.apiClient.callApi("/api/v2/conversations/calls/{conversationId}","POST",{conversationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postConversationsCallParticipantBarge(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsCallParticipantBarge';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postConversationsCallParticipantCoach(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsCallParticipantCoach';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postConversationsCallParticipantCommunicationWrapup(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsCallParticipantCommunicationWrapup';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling postConversationsCallParticipantCommunicationWrapup';if(n==null||n==="")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:i,communicationId:n},{},{},{},a.body,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postConversationsCallParticipantConsult(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsCallParticipantConsult';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling postConversationsCallParticipantConsult';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postConversationsCallParticipantConsultAgent(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsCallParticipantConsultAgent';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling postConversationsCallParticipantConsultAgent';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postConversationsCallParticipantConsultContactExternal(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsCallParticipantConsultContactExternal';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling postConversationsCallParticipantConsultContactExternal';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postConversationsCallParticipantConsultExternal(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsCallParticipantConsultExternal';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling postConversationsCallParticipantConsultExternal';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postConversationsCallParticipantConsultQueue(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsCallParticipantConsultQueue';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling postConversationsCallParticipantConsultQueue';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postConversationsCallParticipantMonitor(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsCallParticipantMonitor';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postConversationsCallParticipantReplace(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsCallParticipantReplace';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling postConversationsCallParticipantReplace';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postConversationsCallParticipantSnippetRecord(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsCallParticipantSnippetRecord';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling postConversationsCallParticipantSnippetRecord';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postConversationsCallParticipantVoiceConsult(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsCallParticipantVoiceConsult';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling postConversationsCallParticipantVoiceConsult';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postConversationsCallParticipants(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsCallParticipants';if(i==null)throw'Missing the required parameter "body" when calling postConversationsCallParticipants';return this.apiClient.callApi("/api/v2/conversations/calls/{conversationId}/participants","POST",{conversationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postConversationsCallParticipantsUserUserId(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsCallParticipantsUserUserId';if(i==null||i==="")throw'Missing the required parameter "userId" when calling postConversationsCallParticipantsUserUserId';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postConversationsCallbackParticipantCommunicationWrapup(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsCallbackParticipantCommunicationWrapup';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling postConversationsCallbackParticipantCommunicationWrapup';if(n==null||n==="")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:i,communicationId:n},{},{},{},a.body,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postConversationsCallbackParticipantReplace(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsCallbackParticipantReplace';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling postConversationsCallbackParticipantReplace';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postConversationsCallbacks(e,i){if(i=i||{},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"],i.customHeaders)}postConversationsCallbacksBulkDisconnect(e,i){if(i=i||{},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"],i.customHeaders)}postConversationsCallbacksBulkUpdate(e,i){if(i=i||{},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"],i.customHeaders)}postConversationsCalls(e,i){if(i=i||{},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"],i.customHeaders)}postConversationsCallsUserUserId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling postConversationsCallsUserUserId';if(i==null)throw'Missing the required parameter "body" when calling postConversationsCallsUserUserId';return this.apiClient.callApi("/api/v2/conversations/calls/user/{userId}","POST",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postConversationsChatCommunicationMessages(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsChatCommunicationMessages';if(i==null||i==="")throw'Missing the required parameter "communicationId" when calling postConversationsChatCommunicationMessages';if(n==null)throw'Missing the required parameter "body" when calling postConversationsChatCommunicationMessages';return this.apiClient.callApi("/api/v2/conversations/chats/{conversationId}/communications/{communicationId}/messages","POST",{conversationId:e,communicationId:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postConversationsChatCommunicationTyping(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsChatCommunicationTyping';if(i==null||i==="")throw'Missing the required parameter "communicationId" when calling postConversationsChatCommunicationTyping';return this.apiClient.callApi("/api/v2/conversations/chats/{conversationId}/communications/{communicationId}/typing","POST",{conversationId:e,communicationId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postConversationsChatParticipantCommunicationWrapup(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsChatParticipantCommunicationWrapup';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling postConversationsChatParticipantCommunicationWrapup';if(n==null||n==="")throw'Missing the required parameter "communicationId" when calling postConversationsChatParticipantCommunicationWrapup';return this.apiClient.callApi("/api/v2/conversations/chats/{conversationId}/participants/{participantId}/communications/{communicationId}/wrapup","POST",{conversationId:e,participantId:i,communicationId:n},{},{},{},a.body,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postConversationsChatParticipantReplace(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsChatParticipantReplace';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling postConversationsChatParticipantReplace';if(n==null)throw'Missing the required parameter "body" when calling postConversationsChatParticipantReplace';return this.apiClient.callApi("/api/v2/conversations/chats/{conversationId}/participants/{participantId}/replace","POST",{conversationId:e,participantId:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postConversationsChats(e,i){if(i=i||{},e==null)throw'Missing the required parameter "body" when calling postConversationsChats';return this.apiClient.callApi("/api/v2/conversations/chats","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postConversationsCobrowsesessionParticipantCommunicationWrapup(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsCobrowsesessionParticipantCommunicationWrapup';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling postConversationsCobrowsesessionParticipantCommunicationWrapup';if(n==null||n==="")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:i,communicationId:n},{},{},{},a.body,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postConversationsCobrowsesessionParticipantReplace(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsCobrowsesessionParticipantReplace';if(i==null||i==="")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:i},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postConversationsCustomattributesSchemas(e,i){if(i=i||{},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"],i.customHeaders)}postConversationsCustomattributesSearch(e,i){if(i=i||{},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"],i.customHeaders)}postConversationsEmailInboundmessages(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsEmailInboundmessages';if(i==null)throw'Missing the required parameter "body" when calling postConversationsEmailInboundmessages';return this.apiClient.callApi("/api/v2/conversations/emails/{conversationId}/inboundmessages","POST",{conversationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postConversationsEmailMessages(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsEmailMessages';if(i==null)throw'Missing the required parameter "body" when calling postConversationsEmailMessages';return this.apiClient.callApi("/api/v2/conversations/emails/{conversationId}/messages","POST",{conversationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postConversationsEmailMessagesDraftAttachmentsCopy(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsEmailMessagesDraftAttachmentsCopy';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postConversationsEmailParticipantCommunicationWrapup(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsEmailParticipantCommunicationWrapup';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling postConversationsEmailParticipantCommunicationWrapup';if(n==null||n==="")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:i,communicationId:n},{},{},{},a.body,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postConversationsEmailParticipantReplace(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsEmailParticipantReplace';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling postConversationsEmailParticipantReplace';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postConversationsEmailReconnect(e,i){if(i=i||{},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"],i.customHeaders)}postConversationsEmails(e,i){if(i=i||{},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"],i.customHeaders)}postConversationsEmailsAgentless(e,i){if(i=i||{},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"],i.customHeaders)}postConversationsFaxes(e,i){if(i=i||{},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"],i.customHeaders)}postConversationsKeyconfigurations(e,i){if(i=i||{},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"],i.customHeaders)}postConversationsKeyconfigurationsValidate(e,i){if(i=i||{},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"],i.customHeaders)}postConversationsMessageCommunicationMessages(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsMessageCommunicationMessages';if(i==null||i==="")throw'Missing the required parameter "communicationId" when calling postConversationsMessageCommunicationMessages';if(n==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:i},{useNormalizedMessage:a.useNormalizedMessage},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postConversationsMessageCommunicationMessagesMedia(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsMessageCommunicationMessagesMedia';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postConversationsMessageCommunicationMessagesMediaUploads(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsMessageCommunicationMessagesMediaUploads';if(i==null||i==="")throw'Missing the required parameter "communicationId" when calling postConversationsMessageCommunicationMessagesMediaUploads';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postConversationsMessageCommunicationSocialmediaMessages(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsMessageCommunicationSocialmediaMessages';if(i==null||i==="")throw'Missing the required parameter "communicationId" when calling postConversationsMessageCommunicationSocialmediaMessages';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postConversationsMessageCommunicationTyping(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsMessageCommunicationTyping';if(i==null||i==="")throw'Missing the required parameter "communicationId" when calling postConversationsMessageCommunicationTyping';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postConversationsMessageInboundOpenEvent(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "integrationId" when calling postConversationsMessageInboundOpenEvent';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postConversationsMessageInboundOpenMessage(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "integrationId" when calling postConversationsMessageInboundOpenMessage';if(i==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:n.prefetchConversationId},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postConversationsMessageInboundOpenReceipt(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "integrationId" when calling postConversationsMessageInboundOpenReceipt';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postConversationsMessageInboundOpenStructuredResponse(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "integrationId" when calling postConversationsMessageInboundOpenStructuredResponse';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postConversationsMessageMessagesBulk(e,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsMessageMessagesBulk';return this.apiClient.callApi("/api/v2/conversations/messages/{conversationId}/messages/bulk","POST",{conversationId:e},{useNormalizedMessage:i.useNormalizedMessage},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postConversationsMessageParticipantCommunicationWrapup(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsMessageParticipantCommunicationWrapup';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling postConversationsMessageParticipantCommunicationWrapup';if(n==null||n==="")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:i,communicationId:n},{},{},{},a.body,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postConversationsMessageParticipantMonitor(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsMessageParticipantMonitor';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postConversationsMessageParticipantReplace(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsMessageParticipantReplace';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling postConversationsMessageParticipantReplace';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postConversationsMessages(e,i){if(i=i||{},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"],i.customHeaders)}postConversationsMessagesAgentless(e,i){if(i=i||{},e==null)throw'Missing the required parameter "body" when calling postConversationsMessagesAgentless';return this.apiClient.callApi("/api/v2/conversations/messages/agentless","POST",{},{useNormalizedMessage:i.useNormalizedMessage},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postConversationsMessagesInboundOpen(e,i){if(i=i||{},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"],i.customHeaders)}postConversationsMessagingIntegrationsApple(e,i){if(i=i||{},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"],i.customHeaders)}postConversationsMessagingIntegrationsFacebook(e,i){if(i=i||{},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"],i.customHeaders)}postConversationsMessagingIntegrationsInstagram(e,i){if(i=i||{},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"],i.customHeaders)}postConversationsMessagingIntegrationsOpen(e,i){if(i=i||{},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"],i.customHeaders)}postConversationsMessagingIntegrationsOpenExtensionsGooglebusinessprofile(e,i){if(i=i||{},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"],i.customHeaders)}postConversationsMessagingIntegrationsOpenExtensionsGooglebusinessprofileTokens(e,i){if(i=i||{},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"],i.customHeaders)}postConversationsMessagingIntegrationsTwitter(e,i){if(i=i||{},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"],i.customHeaders)}postConversationsMessagingIntegrationsWhatsapp(e,i){if(i=i||{},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"],i.customHeaders)}postConversationsMessagingIntegrationsWhatsappEmbeddedsignup(e,i){if(i=i||{},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"],i.customHeaders)}postConversationsMessagingSettings(e,i){if(i=i||{},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"],i.customHeaders)}postConversationsMessagingSupportedcontent(e,i){if(i=i||{},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"],i.customHeaders)}postConversationsParticipantsAttributesSearch(e,i){if(i=i||{},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"],i.customHeaders)}postConversationsScreenshareParticipantCommunicationWrapup(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsScreenshareParticipantCommunicationWrapup';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling postConversationsScreenshareParticipantCommunicationWrapup';if(n==null||n==="")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:i,communicationId:n},{},{},{},a.body,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postConversationsSocialParticipantCommunicationWrapup(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsSocialParticipantCommunicationWrapup';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling postConversationsSocialParticipantCommunicationWrapup';if(n==null||n==="")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:i,communicationId:n},{},{},{},a.body,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postConversationsVideoAgentconferenceCommunication(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsVideoAgentconferenceCommunication';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postConversationsVideoParticipantCommunicationWrapup(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsVideoParticipantCommunicationWrapup';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling postConversationsVideoParticipantCommunicationWrapup';if(n==null||n==="")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:i,communicationId:n},{},{},{},a.body,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postConversationsVideosMeetings(e,i){if(i=i||{},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"],i.customHeaders)}putConversationCustomattributes(e,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling putConversationCustomattributes';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/customattributes","PUT",{conversationId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}putConversationCustomattributesBulk(e,i){if(i=i||{},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},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}putConversationParticipantFlaggedreason(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling putConversationParticipantFlaggedreason';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling putConversationParticipantFlaggedreason';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/participants/{participantId}/flaggedreason","PUT",{conversationId:e,participantId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putConversationSecureattributes(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling putConversationSecureattributes';if(i==null)throw'Missing the required parameter "body" when calling putConversationSecureattributes';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/secureattributes","PUT",{conversationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putConversationTags(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling putConversationTags';if(i==null)throw'Missing the required parameter "body" when calling putConversationTags';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/tags","PUT",{conversationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putConversationsCallParticipantCommunicationUuidata(e,i,n,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling putConversationsCallParticipantCommunicationUuidata';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling putConversationsCallParticipantCommunicationUuidata';if(n==null||n==="")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:i,communicationId:n},{},{},{},a,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}putConversationsCallRecordingstate(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling putConversationsCallRecordingstate';if(i==null)throw'Missing the required parameter "body" when calling putConversationsCallRecordingstate';return this.apiClient.callApi("/api/v2/conversations/calls/{conversationId}/recordingstate","PUT",{conversationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putConversationsCallbackRecordingstate(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling putConversationsCallbackRecordingstate';if(i==null)throw'Missing the required parameter "body" when calling putConversationsCallbackRecordingstate';return this.apiClient.callApi("/api/v2/conversations/callbacks/{conversationId}/recordingstate","PUT",{conversationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putConversationsChatRecordingstate(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling putConversationsChatRecordingstate';if(i==null)throw'Missing the required parameter "body" when calling putConversationsChatRecordingstate';return this.apiClient.callApi("/api/v2/conversations/chats/{conversationId}/recordingstate","PUT",{conversationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putConversationsCobrowsesessionRecordingstate(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling putConversationsCobrowsesessionRecordingstate';if(i==null)throw'Missing the required parameter "body" when calling putConversationsCobrowsesessionRecordingstate';return this.apiClient.callApi("/api/v2/conversations/cobrowsesessions/{conversationId}/recordingstate","PUT",{conversationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putConversationsCustomattributesSchema(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "schemaId" when calling putConversationsCustomattributesSchema';if(i==null)throw'Missing the required parameter "body" when calling putConversationsCustomattributesSchema';return this.apiClient.callApi("/api/v2/conversations/customattributes/schemas/{schemaId}","PUT",{schemaId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putConversationsEmailMessagesDraft(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling putConversationsEmailMessagesDraft';if(i==null)throw'Missing the required parameter "body" when calling putConversationsEmailMessagesDraft';return this.apiClient.callApi("/api/v2/conversations/emails/{conversationId}/messages/draft","PUT",{conversationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putConversationsEmailRecordingstate(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling putConversationsEmailRecordingstate';if(i==null)throw'Missing the required parameter "body" when calling putConversationsEmailRecordingstate';return this.apiClient.callApi("/api/v2/conversations/emails/{conversationId}/recordingstate","PUT",{conversationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putConversationsKeyconfiguration(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "keyconfigurationsId" when calling putConversationsKeyconfiguration';if(i==null)throw'Missing the required parameter "body" when calling putConversationsKeyconfiguration';return this.apiClient.callApi("/api/v2/conversations/keyconfigurations/{keyconfigurationsId}","PUT",{keyconfigurationsId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putConversationsMessageRecordingstate(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling putConversationsMessageRecordingstate';if(i==null)throw'Missing the required parameter "body" when calling putConversationsMessageRecordingstate';return this.apiClient.callApi("/api/v2/conversations/messages/{conversationId}/recordingstate","PUT",{conversationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putConversationsMessagingIdentityresolutionIntegrationsAppleIntegrationId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "integrationId" when calling putConversationsMessagingIdentityresolutionIntegrationsAppleIntegrationId';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putConversationsMessagingIdentityresolutionIntegrationsFacebookIntegrationId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "integrationId" when calling putConversationsMessagingIdentityresolutionIntegrationsFacebookIntegrationId';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putConversationsMessagingIdentityresolutionIntegrationsInstagramIntegrationId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "integrationId" when calling putConversationsMessagingIdentityresolutionIntegrationsInstagramIntegrationId';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putConversationsMessagingIdentityresolutionIntegrationsOpenIntegrationId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "integrationId" when calling putConversationsMessagingIdentityresolutionIntegrationsOpenIntegrationId';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putConversationsMessagingIdentityresolutionIntegrationsTwitterIntegrationId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "integrationId" when calling putConversationsMessagingIdentityresolutionIntegrationsTwitterIntegrationId';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putConversationsMessagingIdentityresolutionIntegrationsWhatsappIntegrationId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "integrationId" when calling putConversationsMessagingIdentityresolutionIntegrationsWhatsappIntegrationId';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putConversationsMessagingSettingsDefault(e,i){if(i=i||{},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"],i.customHeaders)}putConversationsMessagingSupportedcontentDefault(e,i){if(i=i||{},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"],i.customHeaders)}putConversationsMessagingThreadingtimeline(e,i){if(i=i||{},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"],i.customHeaders)}putConversationsScreenshareRecordingstate(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling putConversationsScreenshareRecordingstate';if(i==null)throw'Missing the required parameter "body" when calling putConversationsScreenshareRecordingstate';return this.apiClient.callApi("/api/v2/conversations/screenshares/{conversationId}/recordingstate","PUT",{conversationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putConversationsSocialRecordingstate(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling putConversationsSocialRecordingstate';if(i==null)throw'Missing the required parameter "body" when calling putConversationsSocialRecordingstate';return this.apiClient.callApi("/api/v2/conversations/socials/{conversationId}/recordingstate","PUT",{conversationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putConversationsVideoRecordingstate(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling putConversationsVideoRecordingstate';if(i==null)throw'Missing the required parameter "body" when calling putConversationsVideoRecordingstate';return this.apiClient.callApi("/api/v2/conversations/videos/{conversationId}/recordingstate","PUT",{conversationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}},LA=class{constructor(e){this.apiClient=e||q.instance}getDataextensionsCoretype(e,i){if(i=i||{},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"],i.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)}},WA=class{constructor(e){this.apiClient=e||q.instance}deleteDataprivacyMaskingrule(e,i){if(i=i||{},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"],i.customHeaders)}getDataprivacyMaskingrule(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "ruleId" when calling patchDataprivacyMaskingrule';return this.apiClient.callApi("/api/v2/dataprivacy/maskingrules/{ruleId}","PATCH",{ruleId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postDataprivacyMaskingrules(e,i){if(i=i||{},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"],i.customHeaders)}postDataprivacyMaskingrulesValidate(e,i){if(i=i||{},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"],i.customHeaders)}},BA=class{constructor(e){this.apiClient=e||q.instance}getDownload(e,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "downloadId" when calling getDownload';return this.apiClient.callApi("/api/v2/downloads/{downloadId}","GET",{downloadId:e},{contentDisposition:i.contentDisposition,issueRedirect:i.issueRedirect,redirectToAuth:i.redirectToAuth},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}},FA=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)}},VA=class{constructor(e){this.apiClient=e||q.instance}deleteEmployeeengagementCelebration(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "celebrationId" when calling patchEmployeeengagementCelebration';if(i==null)throw'Missing the required parameter "body" when calling patchEmployeeengagementCelebration';return this.apiClient.callApi("/api/v2/employeeengagement/celebrations/{celebrationId}","PATCH",{celebrationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postEmployeeengagementRecognitions(e,i){if(i=i||{},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"],i.customHeaders)}},JA=class{constructor(e){this.apiClient=e||q.instance}postEventsConversations(e,i){if(i=i||{},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"],i.customHeaders)}postEventsRoutingCustomkpiattributions(e,i){if(i=i||{},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"],i.customHeaders)}postEventsUsersPresence(e,i){if(i=i||{},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"],i.customHeaders)}postEventsUsersRoutingstatus(e,i){if(i=i||{},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"],i.customHeaders)}},ZA=class{constructor(e){this.apiClient=e||q.instance}deleteExternalcontactsContact(e,i){if(i=i||{},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"],i.customHeaders)}deleteExternalcontactsContactNote(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "contactId" when calling deleteExternalcontactsContactNote';if(i==null||i==="")throw'Missing the required parameter "noteId" when calling deleteExternalcontactsContactNote';return this.apiClient.callApi("/api/v2/externalcontacts/contacts/{contactId}/notes/{noteId}","DELETE",{contactId:e,noteId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteExternalcontactsContactsSchema(e,i){if(i=i||{},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"],i.customHeaders)}deleteExternalcontactsExternalsource(e,i){if(i=i||{},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"],i.customHeaders)}deleteExternalcontactsImportCsvSetting(e,i){if(i=i||{},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"],i.customHeaders)}deleteExternalcontactsImportSetting(e,i){if(i=i||{},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"],i.customHeaders)}deleteExternalcontactsOrganization(e,i){if(i=i||{},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"],i.customHeaders)}deleteExternalcontactsOrganizationNote(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "externalOrganizationId" when calling deleteExternalcontactsOrganizationNote';if(i==null||i==="")throw'Missing the required parameter "noteId" when calling deleteExternalcontactsOrganizationNote';return this.apiClient.callApi("/api/v2/externalcontacts/organizations/{externalOrganizationId}/notes/{noteId}","DELETE",{externalOrganizationId:e,noteId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteExternalcontactsOrganizationTrustor(e,i){if(i=i||{},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"],i.customHeaders)}deleteExternalcontactsRelationship(e,i){if(i=i||{},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"],i.customHeaders)}getExternalcontactsContact(e,i){if(i=i||{},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(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getExternalcontactsContactIdentifiers(e,i){if(i=i||{},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"],i.customHeaders)}getExternalcontactsContactJourneySegments(e,i){if(i=i||{},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:i.includeMerged,limit:i.limit},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getExternalcontactsContactJourneySessions(e,i){if(i=i||{},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:i.pageSize,after:i.after,includeMerged:i.includeMerged},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getExternalcontactsContactNote(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "contactId" when calling getExternalcontactsContactNote';if(i==null||i==="")throw'Missing the required parameter "noteId" when calling getExternalcontactsContactNote';return this.apiClient.callApi("/api/v2/externalcontacts/contacts/{contactId}/notes/{noteId}","GET",{contactId:e,noteId:i},{expand:this.apiClient.buildCollectionParam(n.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getExternalcontactsContactNotes(e,i){if(i=i||{},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:i.pageSize,pageNumber:i.pageNumber,sortOrder:i.sortOrder,expand:this.apiClient.buildCollectionParam(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getExternalcontactsContactUnresolved(e,i){if(i=i||{},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(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getExternalcontactsContactsSchemaVersion(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "schemaId" when calling getExternalcontactsContactsSchemaVersion';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getExternalcontactsContactsSchemaVersions(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getExternalcontactsExternalsources(e){return e=e||{},this.apiClient.callApi("/api/v2/externalcontacts/externalsources","GET",{},{cursor:e.cursor,limit:e.limit,name:e.name,active:e.active},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getExternalcontactsImportCsvSetting(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getExternalcontactsImportCsvUploadPreview(e,i){if(i=i||{},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"],i.customHeaders)}getExternalcontactsImportJob(e,i){if(i=i||{},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(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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"],i.customHeaders)}getExternalcontactsImportSettings(e){return e=e||{},this.apiClient.callApi("/api/v2/externalcontacts/import/settings","GET",{},{after:e.after,pageSize:e.pageSize,sortOrder:e.sortOrder,name:e.name},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getExternalcontactsOrganization(e,i){if(i=i||{},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(i.expand,"multi"),includeTrustors:i.includeTrustors},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getExternalcontactsOrganizationContacts(e,i){if(i=i||{},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:i.pageSize,pageNumber:i.pageNumber,q:i.q,sortOrder:i.sortOrder,expand:this.apiClient.buildCollectionParam(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getExternalcontactsOrganizationIdentifiers(e,i){if(i=i||{},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"],i.customHeaders)}getExternalcontactsOrganizationNote(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "externalOrganizationId" when calling getExternalcontactsOrganizationNote';if(i==null||i==="")throw'Missing the required parameter "noteId" when calling getExternalcontactsOrganizationNote';return this.apiClient.callApi("/api/v2/externalcontacts/organizations/{externalOrganizationId}/notes/{noteId}","GET",{externalOrganizationId:e,noteId:i},{expand:this.apiClient.buildCollectionParam(n.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getExternalcontactsOrganizationNotes(e,i){if(i=i||{},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:i.pageSize,pageNumber:i.pageNumber,sortOrder:i.sortOrder,expand:this.apiClient.buildCollectionParam(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getExternalcontactsOrganizationRelationships(e,i){if(i=i||{},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:i.pageSize,pageNumber:i.pageNumber,expand:this.apiClient.buildCollectionParam(i.expand,"multi"),sortOrder:i.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getExternalcontactsOrganizations(e){return e=e||{},this.apiClient.callApi("/api/v2/externalcontacts/organizations","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,q:e.q,trustorId:this.apiClient.buildCollectionParam(e.trustorId,"multi"),sortOrder:e.sortOrder,expand:this.apiClient.buildCollectionParam(e.expand,"multi"),includeTrustors:e.includeTrustors,divisionIds:this.apiClient.buildCollectionParam(e.divisionIds,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getExternalcontactsOrganizationsSchema(e,i){if(i=i||{},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"],i.customHeaders)}getExternalcontactsOrganizationsSchemaVersion(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "schemaId" when calling getExternalcontactsOrganizationsSchemaVersion';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getExternalcontactsOrganizationsSchemaVersions(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getExternalcontactsReversewhitepageslookup(e,i){if(i=i||{},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(i.expand,"multi"),divisionId:i.divisionId},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "contactId" when calling patchExternalcontactsContact';if(i==null)throw'Missing the required parameter "body" when calling patchExternalcontactsContact';return this.apiClient.callApi("/api/v2/externalcontacts/contacts/{contactId}","PATCH",{contactId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchExternalcontactsContactIdentifiers(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "contactId" when calling patchExternalcontactsContactIdentifiers';if(i==null)throw'Missing the required parameter "body" when calling patchExternalcontactsContactIdentifiers';return this.apiClient.callApi("/api/v2/externalcontacts/contacts/{contactId}/identifiers","PATCH",{contactId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchExternalcontactsOrganizationIdentifiers(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "externalOrganizationId" when calling patchExternalcontactsOrganizationIdentifiers';if(i==null)throw'Missing the required parameter "body" when calling patchExternalcontactsOrganizationIdentifiers';return this.apiClient.callApi("/api/v2/externalcontacts/organizations/{externalOrganizationId}/identifiers","PATCH",{externalOrganizationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postExternalcontactsBulkContacts(e,i){if(i=i||{},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"],i.customHeaders)}postExternalcontactsBulkContactsAdd(e,i){if(i=i||{},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"],i.customHeaders)}postExternalcontactsBulkContactsDivisionviews(e,i){if(i=i||{},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"],i.customHeaders)}postExternalcontactsBulkContactsEnrich(e,i){if(i=i||{},e==null)throw'Missing the required parameter "body" when calling postExternalcontactsBulkContactsEnrich';return this.apiClient.callApi("/api/v2/externalcontacts/bulk/contacts/enrich","POST",{},{dryRun:i.dryRun},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postExternalcontactsBulkContactsRemove(e,i){if(i=i||{},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"],i.customHeaders)}postExternalcontactsBulkContactsUnresolved(e,i){if(i=i||{},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"],i.customHeaders)}postExternalcontactsBulkContactsUpdate(e,i){if(i=i||{},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"],i.customHeaders)}postExternalcontactsBulkNotes(e,i){if(i=i||{},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"],i.customHeaders)}postExternalcontactsBulkNotesAdd(e,i){if(i=i||{},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"],i.customHeaders)}postExternalcontactsBulkNotesRemove(e,i){if(i=i||{},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"],i.customHeaders)}postExternalcontactsBulkNotesUpdate(e,i){if(i=i||{},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"],i.customHeaders)}postExternalcontactsBulkOrganizations(e,i){if(i=i||{},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"],i.customHeaders)}postExternalcontactsBulkOrganizationsAdd(e,i){if(i=i||{},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"],i.customHeaders)}postExternalcontactsBulkOrganizationsDivisionviews(e,i){if(i=i||{},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"],i.customHeaders)}postExternalcontactsBulkOrganizationsEnrich(e,i){if(i=i||{},e==null)throw'Missing the required parameter "body" when calling postExternalcontactsBulkOrganizationsEnrich';return this.apiClient.callApi("/api/v2/externalcontacts/bulk/organizations/enrich","POST",{},{dryRun:i.dryRun},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postExternalcontactsBulkOrganizationsRemove(e,i){if(i=i||{},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"],i.customHeaders)}postExternalcontactsBulkOrganizationsUpdate(e,i){if(i=i||{},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"],i.customHeaders)}postExternalcontactsBulkRelationships(e,i){if(i=i||{},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"],i.customHeaders)}postExternalcontactsBulkRelationshipsAdd(e,i){if(i=i||{},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"],i.customHeaders)}postExternalcontactsBulkRelationshipsRemove(e,i){if(i=i||{},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"],i.customHeaders)}postExternalcontactsBulkRelationshipsUpdate(e,i){if(i=i||{},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"],i.customHeaders)}postExternalcontactsContactJourneySegments(e,i){if(i=i||{},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},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postExternalcontactsContactNotes(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "contactId" when calling postExternalcontactsContactNotes';if(i==null)throw'Missing the required parameter "body" when calling postExternalcontactsContactNotes';return this.apiClient.callApi("/api/v2/externalcontacts/contacts/{contactId}/notes","POST",{contactId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postExternalcontactsContactPromotion(e,i){if(i=i||{},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"],i.customHeaders)}postExternalcontactsContacts(e,i){if(i=i||{},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"],i.customHeaders)}postExternalcontactsContactsEnrich(e,i){if(i=i||{},e==null)throw'Missing the required parameter "body" when calling postExternalcontactsContactsEnrich';return this.apiClient.callApi("/api/v2/externalcontacts/contacts/enrich","POST",{},{dryRun:i.dryRun},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postExternalcontactsContactsExports(e,i){if(i=i||{},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"],i.customHeaders)}postExternalcontactsContactsMerge(e,i){if(i=i||{},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"],i.customHeaders)}postExternalcontactsContactsSchemas(e,i){if(i=i||{},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"],i.customHeaders)}postExternalcontactsExternalsources(e,i){if(i=i||{},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"],i.customHeaders)}postExternalcontactsIdentifierlookup(e,i){if(i=i||{},e==null)throw'Missing the required parameter "identifier" when calling postExternalcontactsIdentifierlookup';return this.apiClient.callApi("/api/v2/externalcontacts/identifierlookup","POST",{},{expand:this.apiClient.buildCollectionParam(i.expand,"multi")},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postExternalcontactsIdentifierlookupContacts(e,i){if(i=i||{},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(i.expand,"multi")},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postExternalcontactsIdentifierlookupOrganizations(e,i){if(i=i||{},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(i.expand,"multi")},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postExternalcontactsImportCsvJobs(e,i){if(i=i||{},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"],i.customHeaders)}postExternalcontactsImportCsvSettings(e,i){if(i=i||{},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"],i.customHeaders)}postExternalcontactsImportCsvUploads(e,i){if(i=i||{},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"],i.customHeaders)}postExternalcontactsImportJobs(e,i){if(i=i||{},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"],i.customHeaders)}postExternalcontactsImportSettings(e,i){if(i=i||{},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"],i.customHeaders)}postExternalcontactsMergeContacts(e,i){if(i=i||{},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"],i.customHeaders)}postExternalcontactsOrganizationNotes(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "externalOrganizationId" when calling postExternalcontactsOrganizationNotes';if(i==null)throw'Missing the required parameter "body" when calling postExternalcontactsOrganizationNotes';return this.apiClient.callApi("/api/v2/externalcontacts/organizations/{externalOrganizationId}/notes","POST",{externalOrganizationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postExternalcontactsOrganizations(e,i){if(i=i||{},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"],i.customHeaders)}postExternalcontactsOrganizationsEnrich(e,i){if(i=i||{},e==null)throw'Missing the required parameter "body" when calling postExternalcontactsOrganizationsEnrich';return this.apiClient.callApi("/api/v2/externalcontacts/organizations/enrich","POST",{},{dryRun:i.dryRun},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postExternalcontactsOrganizationsSchemas(e,i){if(i=i||{},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"],i.customHeaders)}postExternalcontactsRelationships(e,i){if(i=i||{},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"],i.customHeaders)}putExternalcontactsContact(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "contactId" when calling putExternalcontactsContact';if(i==null)throw'Missing the required parameter "body" when calling putExternalcontactsContact';return this.apiClient.callApi("/api/v2/externalcontacts/contacts/{contactId}","PUT",{contactId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putExternalcontactsContactNote(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "contactId" when calling putExternalcontactsContactNote';if(i==null||i==="")throw'Missing the required parameter "noteId" when calling putExternalcontactsContactNote';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}putExternalcontactsContactsSchema(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "schemaId" when calling putExternalcontactsContactsSchema';if(i==null)throw'Missing the required parameter "body" when calling putExternalcontactsContactsSchema';return this.apiClient.callApi("/api/v2/externalcontacts/contacts/schemas/{schemaId}","PUT",{schemaId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putExternalcontactsConversation(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling putExternalcontactsConversation';if(i==null)throw'Missing the required parameter "body" when calling putExternalcontactsConversation';return this.apiClient.callApi("/api/v2/externalcontacts/conversations/{conversationId}","PUT",{conversationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putExternalcontactsExternalsource(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "externalSourceId" when calling putExternalcontactsExternalsource';if(i==null)throw'Missing the required parameter "body" when calling putExternalcontactsExternalsource';return this.apiClient.callApi("/api/v2/externalcontacts/externalsources/{externalSourceId}","PUT",{externalSourceId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putExternalcontactsImportCsvSetting(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "settingsId" when calling putExternalcontactsImportCsvSetting';if(i==null)throw'Missing the required parameter "body" when calling putExternalcontactsImportCsvSetting';return this.apiClient.callApi("/api/v2/externalcontacts/import/csv/settings/{settingsId}","PUT",{settingsId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putExternalcontactsImportJob(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "jobId" when calling putExternalcontactsImportJob';if(i==null)throw'Missing the required parameter "body" when calling putExternalcontactsImportJob';return this.apiClient.callApi("/api/v2/externalcontacts/import/jobs/{jobId}","PUT",{jobId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putExternalcontactsImportSetting(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "settingsId" when calling putExternalcontactsImportSetting';if(i==null)throw'Missing the required parameter "body" when calling putExternalcontactsImportSetting';return this.apiClient.callApi("/api/v2/externalcontacts/import/settings/{settingsId}","PUT",{settingsId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putExternalcontactsOrganization(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "externalOrganizationId" when calling putExternalcontactsOrganization';if(i==null)throw'Missing the required parameter "body" when calling putExternalcontactsOrganization';return this.apiClient.callApi("/api/v2/externalcontacts/organizations/{externalOrganizationId}","PUT",{externalOrganizationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putExternalcontactsOrganizationNote(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "externalOrganizationId" when calling putExternalcontactsOrganizationNote';if(i==null||i==="")throw'Missing the required parameter "noteId" when calling putExternalcontactsOrganizationNote';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}putExternalcontactsOrganizationTrustorTrustorId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "externalOrganizationId" when calling putExternalcontactsOrganizationTrustorTrustorId';if(i==null||i==="")throw'Missing the required parameter "trustorId" when calling putExternalcontactsOrganizationTrustorTrustorId';return this.apiClient.callApi("/api/v2/externalcontacts/organizations/{externalOrganizationId}/trustor/{trustorId}","PUT",{externalOrganizationId:e,trustorId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putExternalcontactsOrganizationsSchema(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "schemaId" when calling putExternalcontactsOrganizationsSchema';if(i==null)throw'Missing the required parameter "body" when calling putExternalcontactsOrganizationsSchema';return this.apiClient.callApi("/api/v2/externalcontacts/organizations/schemas/{schemaId}","PUT",{schemaId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putExternalcontactsRelationship(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "relationshipId" when calling putExternalcontactsRelationship';if(i==null)throw'Missing the required parameter "body" when calling putExternalcontactsRelationship';return this.apiClient.callApi("/api/v2/externalcontacts/relationships/{relationshipId}","PUT",{relationshipId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}},KA=class{constructor(e){this.apiClient=e||q.instance}deleteFaxDocument(e,i){if(i=i||{},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"],i.customHeaders)}getFaxDocument(e,i){if(i=i||{},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"],i.customHeaders)}getFaxDocumentContent(e,i){if(i=i||{},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"],i.customHeaders)}getFaxDocuments(e){return e=e||{},this.apiClient.callApi("/api/v2/fax/documents","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getFaxSettings(e){return e=e||{},this.apiClient.callApi("/api/v2/fax/settings","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getFaxSummary(e){return e=e||{},this.apiClient.callApi("/api/v2/fax/summary","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}putFaxDocument(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "documentId" when calling putFaxDocument';if(i==null)throw'Missing the required parameter "body" when calling putFaxDocument';return this.apiClient.callApi("/api/v2/fax/documents/{documentId}","PUT",{documentId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putFaxSettings(e){return e=e||{},this.apiClient.callApi("/api/v2/fax/settings","PUT",{},{},{},{},e.body,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}},QA=class{constructor(e){this.apiClient=e||q.instance}deleteAnalyticsFlowsAggregatesJob(e,i){if(i=i||{},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"],i.customHeaders)}getAnalyticsFlowsAggregatesJob(e,i){if(i=i||{},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"],i.customHeaders)}getAnalyticsFlowsAggregatesJobResults(e,i){if(i=i||{},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:i.cursor},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postAnalyticsFlowsActivityQuery(e,i){if(i=i||{},e==null)throw'Missing the required parameter "body" when calling postAnalyticsFlowsActivityQuery';return this.apiClient.callApi("/api/v2/analytics/flows/activity/query","POST",{},{pageSize:i.pageSize,pageNumber:i.pageNumber},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postAnalyticsFlowsAggregatesJobs(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsFlowsAggregatesQuery(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsFlowsObservationsQuery(e,i){if(i=i||{},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"],i.customHeaders)}},YA=class{constructor(e){this.apiClient=e||q.instance}deleteEmployeeperformanceExternalmetricsDefinition(e,i){if(i=i||{},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"],i.customHeaders)}deleteGamificationContest(e,i){if(i=i||{},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"],i.customHeaders)}getEmployeeperformanceExternalmetricsDefinition(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getGamificationContestAgentsScores(e,i){if(i=i||{},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:i.pageNumber,pageSize:i.pageSize,workday:i.workday,returnsView:i.returnsView},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getGamificationContestAgentsScoresMe(e,i){if(i=i||{},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:i.pageNumber,pageSize:i.pageSize,workday:i.workday,returnsView:i.returnsView},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getGamificationContestAgentsScoresTrends(e,i){if(i=i||{},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"],i.customHeaders)}getGamificationContestAgentsScoresTrendsMe(e,i){if(i=i||{},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"],i.customHeaders)}getGamificationContestPrizeimage(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "contestId" when calling getGamificationContestPrizeimage';if(i==null||i==="")throw'Missing the required parameter "prizeImageId" when calling getGamificationContestPrizeimage';return this.apiClient.callApi("/api/v2/gamification/contests/{contestId}/prizeimages/{prizeImageId}","GET",{contestId:e,prizeImageId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.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,i,n,a,r,s){if(s=s||{},e==null)throw'Missing the required parameter "filterType" when calling getGamificationInsights';if(i==null)throw'Missing the required parameter "filterId" when calling getGamificationInsights';if(n==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:i,granularity:n,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,i,n,a,r,s){if(s=s||{},e==null)throw'Missing the required parameter "filterType" when calling getGamificationInsightsDetails';if(i==null)throw'Missing the required parameter "filterId" when calling getGamificationInsightsDetails';if(n==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:i,granularity:n,comparativePeriodStartWorkday:a,primaryPeriodStartWorkday:r},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],s.customHeaders)}getGamificationInsightsGroupsTrends(e,i,n,a,r,s,o,l){if(l=l||{},e==null)throw'Missing the required parameter "filterType" when calling getGamificationInsightsGroupsTrends';if(i==null)throw'Missing the required parameter "filterId" when calling getGamificationInsightsGroupsTrends';if(n==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:i,granularity:n,comparativePeriodStartWorkday:a,comparativePeriodEndWorkday:r,primaryPeriodStartWorkday:s,primaryPeriodEndWorkday:o},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],l.customHeaders)}getGamificationInsightsGroupsTrendsAll(e,i,n,a,r,s,o,l){if(l=l||{},e==null)throw'Missing the required parameter "filterType" when calling getGamificationInsightsGroupsTrendsAll';if(i==null)throw'Missing the required parameter "filterId" when calling getGamificationInsightsGroupsTrendsAll';if(n==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:i,granularity:n,comparativePeriodStartWorkday:a,comparativePeriodEndWorkday:r,primaryPeriodStartWorkday:s,primaryPeriodEndWorkday:o},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],l.customHeaders)}getGamificationInsightsManagers(e,i,n,a,r){if(r=r||{},e==null)throw'Missing the required parameter "filterType" when calling getGamificationInsightsManagers';if(i==null)throw'Missing the required parameter "filterId" when calling getGamificationInsightsManagers';if(n==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:i,granularity:n,startWorkday:a,pageSize:r.pageSize,pageNumber:r.pageNumber},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}getGamificationInsightsMembers(e,i,n,a,r){if(r=r||{},e==null)throw'Missing the required parameter "filterType" when calling getGamificationInsightsMembers';if(i==null)throw'Missing the required parameter "filterId" when calling getGamificationInsightsMembers';if(n==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:i,granularity:n,startWorkday:a,reportsTo:r.reportsTo},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}getGamificationInsightsRankings(e,i,n,a,r,s,o){if(o=o||{},e==null)throw'Missing the required parameter "filterType" when calling getGamificationInsightsRankings';if(i==null)throw'Missing the required parameter "filterId" when calling getGamificationInsightsRankings';if(n==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:i,granularity:n,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,i,n,a,r,s,o,l){if(l=l||{},e==null)throw'Missing the required parameter "filterType" when calling getGamificationInsightsTrends';if(i==null)throw'Missing the required parameter "filterId" when calling getGamificationInsightsTrends';if(n==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:i,granularity:n,comparativePeriodStartWorkday:a,comparativePeriodEndWorkday:r,primaryPeriodStartWorkday:s,primaryPeriodEndWorkday:o},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],l.customHeaders)}getGamificationInsightsUserDetails(e,i,n,a,r,s,o){if(o=o||{},e==null||e==="")throw'Missing the required parameter "userId" when calling getGamificationInsightsUserDetails';if(i==null)throw'Missing the required parameter "filterType" when calling getGamificationInsightsUserDetails';if(n==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:i,filterId:n,granularity:a,comparativePeriodStartWorkday:r,primaryPeriodStartWorkday:s},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],o.customHeaders)}getGamificationInsightsUserTrends(e,i,n,a,r,s,o,l,u){if(u=u||{},e==null||e==="")throw'Missing the required parameter "userId" when calling getGamificationInsightsUserTrends';if(i==null)throw'Missing the required parameter "filterType" when calling getGamificationInsightsUserTrends';if(n==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:i,filterId:n,granularity:a,comparativePeriodStartWorkday:r,comparativePeriodEndWorkday:s,primaryPeriodStartWorkday:o,primaryPeriodEndWorkday:l},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],u.customHeaders)}getGamificationLeaderboard(e,i,n){if(n=n||{},e==null)throw'Missing the required parameter "startWorkday" when calling getGamificationLeaderboard';if(i==null)throw'Missing the required parameter "endWorkday" when calling getGamificationLeaderboard';return this.apiClient.callApi("/api/v2/gamification/leaderboard","GET",{},{startWorkday:e,endWorkday:i,metricId:n.metricId},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getGamificationLeaderboardAll(e,i,n,a,r){if(r=r||{},e==null)throw'Missing the required parameter "filterType" when calling getGamificationLeaderboardAll';if(i==null)throw'Missing the required parameter "filterId" when calling getGamificationLeaderboardAll';if(n==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:i,startWorkday:n,endWorkday:a,metricId:r.metricId},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}getGamificationLeaderboardAllBestpoints(e,i,n){if(n=n||{},e==null)throw'Missing the required parameter "filterType" when calling getGamificationLeaderboardAllBestpoints';if(i==null)throw'Missing the required parameter "filterId" when calling getGamificationLeaderboardAllBestpoints';return this.apiClient.callApi("/api/v2/gamification/leaderboard/all/bestpoints","GET",{},{filterType:e,filterId:i},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getGamificationProfileMembers(e,i){if(i=i||{},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"],i.customHeaders)}getGamificationProfileMetric(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "profileId" when calling getGamificationProfileMetric';if(i==null||i==="")throw'Missing the required parameter "metricId" when calling getGamificationProfileMetric';return this.apiClient.callApi("/api/v2/gamification/profiles/{profileId}/metrics/{metricId}","GET",{profileId:e,metricId:i},{workday:n.workday},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getGamificationProfileMetrics(e,i){if(i=i||{},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(i.expand,"multi"),workday:i.workday,metricIds:i.metricIds},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getGamificationProfileMetricsObjectivedetails(e,i){if(i=i||{},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:i.workday},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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:i.workday},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getGamificationScorecardsAttendance(e,i,n){if(n=n||{},e==null)throw'Missing the required parameter "startWorkday" when calling getGamificationScorecardsAttendance';if(i==null)throw'Missing the required parameter "endWorkday" when calling getGamificationScorecardsAttendance';return this.apiClient.callApi("/api/v2/gamification/scorecards/attendance","GET",{},{startWorkday:e,endWorkday:i},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.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,i){if(i=i||{},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"],i.customHeaders)}getGamificationScorecardsPointsAverage(e,i){if(i=i||{},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"],i.customHeaders)}getGamificationScorecardsPointsTrends(e,i,n){if(n=n||{},e==null)throw'Missing the required parameter "startWorkday" when calling getGamificationScorecardsPointsTrends';if(i==null)throw'Missing the required parameter "endWorkday" when calling getGamificationScorecardsPointsTrends';return this.apiClient.callApi("/api/v2/gamification/scorecards/points/trends","GET",{},{startWorkday:e,endWorkday:i,dayOfWeek:n.dayOfWeek},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getGamificationScorecardsProfileMetricUserValuesTrends(e,i,n,a,r,s){if(s=s||{},e==null||e==="")throw'Missing the required parameter "profileId" when calling getGamificationScorecardsProfileMetricUserValuesTrends';if(i==null||i==="")throw'Missing the required parameter "metricId" when calling getGamificationScorecardsProfileMetricUserValuesTrends';if(n==null||n==="")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:i,userId:n},{startWorkday:a,endWorkday:r,referenceWorkday:s.referenceWorkday,timeZone:s.timeZone},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],s.customHeaders)}getGamificationScorecardsProfileMetricUsersValuesTrends(e,i,n,a,r,s){if(s=s||{},e==null||e==="")throw'Missing the required parameter "profileId" when calling getGamificationScorecardsProfileMetricUsersValuesTrends';if(i==null||i==="")throw'Missing the required parameter "metricId" when calling getGamificationScorecardsProfileMetricUsersValuesTrends';if(n==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:i},{filterType:n,filterId:s.filterId,startWorkday:a,endWorkday:r,referenceWorkday:s.referenceWorkday,timeZone:s.timeZone},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],s.customHeaders)}getGamificationScorecardsProfileMetricValuesTrends(e,i,n,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "profileId" when calling getGamificationScorecardsProfileMetricValuesTrends';if(i==null||i==="")throw'Missing the required parameter "metricId" when calling getGamificationScorecardsProfileMetricValuesTrends';if(n==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:i},{filterType:r.filterType,startWorkday:n,endWorkday:a,referenceWorkday:r.referenceWorkday,timeZone:r.timeZone},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}getGamificationScorecardsUser(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling getGamificationScorecardsUser';if(i==null)throw'Missing the required parameter "workday" when calling getGamificationScorecardsUser';return this.apiClient.callApi("/api/v2/gamification/scorecards/users/{userId}","GET",{userId:e},{workday:i,expand:this.apiClient.buildCollectionParam(n.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getGamificationScorecardsUserAttendance(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "userId" when calling getGamificationScorecardsUserAttendance';if(i==null)throw'Missing the required parameter "startWorkday" when calling getGamificationScorecardsUserAttendance';if(n==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:i,endWorkday:n},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getGamificationScorecardsUserBestpoints(e,i){if(i=i||{},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"],i.customHeaders)}getGamificationScorecardsUserPointsAlltime(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling getGamificationScorecardsUserPointsAlltime';if(i==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:i},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getGamificationScorecardsUserPointsTrends(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "userId" when calling getGamificationScorecardsUserPointsTrends';if(i==null)throw'Missing the required parameter "startWorkday" when calling getGamificationScorecardsUserPointsTrends';if(n==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:i,endWorkday:n,dayOfWeek:a.dayOfWeek},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getGamificationScorecardsUserValuesTrends(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "userId" when calling getGamificationScorecardsUserValuesTrends';if(i==null)throw'Missing the required parameter "startWorkday" when calling getGamificationScorecardsUserValuesTrends';if(n==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:i,endWorkday:n,timeZone:a.timeZone},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getGamificationScorecardsUsersPointsAverage(e,i,n,a){if(a=a||{},e==null)throw'Missing the required parameter "filterType" when calling getGamificationScorecardsUsersPointsAverage';if(i==null)throw'Missing the required parameter "filterId" when calling getGamificationScorecardsUsersPointsAverage';if(n==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:i,workday:n},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getGamificationScorecardsUsersValuesAverage(e,i,n,a){if(a=a||{},e==null)throw'Missing the required parameter "filterType" when calling getGamificationScorecardsUsersValuesAverage';if(i==null)throw'Missing the required parameter "filterId" when calling getGamificationScorecardsUsersValuesAverage';if(n==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:i,workday:n,timeZone:a.timeZone},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getGamificationScorecardsUsersValuesTrends(e,i,n,a,r){if(r=r||{},e==null)throw'Missing the required parameter "filterType" when calling getGamificationScorecardsUsersValuesTrends';if(i==null)throw'Missing the required parameter "filterId" when calling getGamificationScorecardsUsersValuesTrends';if(n==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:i,startWorkday:n,endWorkday:a,timeZone:r.timeZone},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}getGamificationScorecardsValuesAverage(e,i){if(i=i||{},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:i.timeZone},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getGamificationScorecardsValuesTrends(e,i,n){if(n=n||{},e==null)throw'Missing the required parameter "startWorkday" when calling getGamificationScorecardsValuesTrends';if(i==null)throw'Missing the required parameter "endWorkday" when calling getGamificationScorecardsValuesTrends';return this.apiClient.callApi("/api/v2/gamification/scorecards/values/trends","GET",{},{filterType:n.filterType,referenceWorkday:n.referenceWorkday,startWorkday:e,endWorkday:i,timeZone:n.timeZone},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.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,i){if(i=i||{},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"],i.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,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "metricId" when calling patchEmployeeperformanceExternalmetricsDefinition';if(i==null)throw'Missing the required parameter "body" when calling patchEmployeeperformanceExternalmetricsDefinition';return this.apiClient.callApi("/api/v2/employeeperformance/externalmetrics/definitions/{metricId}","PATCH",{metricId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchGamificationContest(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "contestId" when calling patchGamificationContest';if(i==null)throw'Missing the required parameter "body" when calling patchGamificationContest';return this.apiClient.callApi("/api/v2/gamification/contests/{contestId}","PATCH",{contestId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.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,i){if(i=i||{},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"],i.customHeaders)}postGamificationContestsUploadsPrizeimages(e,i){if(i=i||{},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"],i.customHeaders)}postGamificationProfileActivate(e,i){if(i=i||{},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"],i.customHeaders)}postGamificationProfileDeactivate(e,i){if(i=i||{},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"],i.customHeaders)}postGamificationProfileMembers(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "profileId" when calling postGamificationProfileMembers';if(i==null)throw'Missing the required parameter "body" when calling postGamificationProfileMembers';return this.apiClient.callApi("/api/v2/gamification/profiles/{profileId}/members","POST",{profileId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postGamificationProfileMembersValidate(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "profileId" when calling postGamificationProfileMembersValidate';if(i==null)throw'Missing the required parameter "body" when calling postGamificationProfileMembersValidate';return this.apiClient.callApi("/api/v2/gamification/profiles/{profileId}/members/validate","POST",{profileId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postGamificationProfileMetricLink(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "sourceProfileId" when calling postGamificationProfileMetricLink';if(i==null||i==="")throw'Missing the required parameter "sourceMetricId" when calling postGamificationProfileMetricLink';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postGamificationProfileMetrics(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "profileId" when calling postGamificationProfileMetrics';if(i==null)throw'Missing the required parameter "body" when calling postGamificationProfileMetrics';return this.apiClient.callApi("/api/v2/gamification/profiles/{profileId}/metrics","POST",{profileId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postGamificationProfiles(e,i){if(i=i||{},e==null)throw'Missing the required parameter "body" when calling postGamificationProfiles';return this.apiClient.callApi("/api/v2/gamification/profiles","POST",{},{copyMetrics:i.copyMetrics},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postGamificationProfilesUserQuery(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling postGamificationProfilesUserQuery';if(i==null)throw'Missing the required parameter "body" when calling postGamificationProfilesUserQuery';return this.apiClient.callApi("/api/v2/gamification/profiles/users/{userId}/query","POST",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postGamificationProfilesUsersMeQuery(e,i){if(i=i||{},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"],i.customHeaders)}putGamificationContest(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "contestId" when calling putGamificationContest';if(i==null)throw'Missing the required parameter "body" when calling putGamificationContest';return this.apiClient.callApi("/api/v2/gamification/contests/{contestId}","PUT",{contestId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putGamificationProfile(e,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "profileId" when calling putGamificationProfile';return this.apiClient.callApi("/api/v2/gamification/profiles/{profileId}","PUT",{profileId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}putGamificationProfileMetric(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "profileId" when calling putGamificationProfileMetric';if(i==null||i==="")throw'Missing the required parameter "metricId" when calling putGamificationProfileMetric';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}putGamificationStatus(e,i){if(i=i||{},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"],i.customHeaders)}},XA=class{constructor(e){this.apiClient=e||q.instance}getGdprRequest(e,i){if(i=i||{},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"],i.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,i,n){if(n=n||{},e==null)throw'Missing the required parameter "searchType" when calling getGdprSubjects';if(i==null)throw'Missing the required parameter "searchValue" when calling getGdprSubjects';return this.apiClient.callApi("/api/v2/gdpr/subjects","GET",{},{searchType:e,searchValue:i},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postGdprRequests(e,i){if(i=i||{},e==null)throw'Missing the required parameter "body" when calling postGdprRequests';return this.apiClient.callApi("/api/v2/gdpr/requests","POST",{},{deleteConfirmed:i.deleteConfirmed},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}},eb=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,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling getUserGeolocation';if(i==null||i==="")throw'Missing the required parameter "clientId" when calling getUserGeolocation';return this.apiClient.callApi("/api/v2/users/{userId}/geolocations/{clientId}","GET",{userId:e,clientId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchGeolocationsSettings(e,i){if(i=i||{},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"],i.customHeaders)}patchUserGeolocation(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "userId" when calling patchUserGeolocation';if(i==null||i==="")throw'Missing the required parameter "clientId" when calling patchUserGeolocation';if(n==null)throw'Missing the required parameter "body" when calling patchUserGeolocation';return this.apiClient.callApi("/api/v2/users/{userId}/geolocations/{clientId}","PATCH",{userId:e,clientId:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}},ib=class{constructor(e){this.apiClient=e||q.instance}deleteGreeting(e,i){if(i=i||{},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"],i.customHeaders)}getGreeting(e,i){if(i=i||{},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"],i.customHeaders)}getGreetingDownloads(e,i){if(i=i||{},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:i.formatId},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getGreetingGroupsDownloads(e,i){if(i=i||{},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:i.formatId},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getGreetingMedia(e,i){if(i=i||{},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:i.formatId},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getGreetingUsersDownloads(e,i){if(i=i||{},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:i.formatId},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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:i.pageSize,pageNumber:i.pageNumber},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getGroupGreetingsDefaults(e,i){if(i=i||{},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"],i.customHeaders)}getUserGreetings(e,i){if(i=i||{},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:i.pageSize,pageNumber:i.pageNumber},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getUserGreetingsDefaults(e,i){if(i=i||{},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"],i.customHeaders)}postGreetings(e,i){if(i=i||{},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"],i.customHeaders)}postGroupGreetings(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "groupId" when calling postGroupGreetings';if(i==null)throw'Missing the required parameter "body" when calling postGroupGreetings';return this.apiClient.callApi("/api/v2/groups/{groupId}/greetings","POST",{groupId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postUserGreetings(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling postUserGreetings';if(i==null)throw'Missing the required parameter "body" when calling postUserGreetings';return this.apiClient.callApi("/api/v2/users/{userId}/greetings","POST",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putGreeting(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "greetingId" when calling putGreeting';if(i==null)throw'Missing the required parameter "body" when calling putGreeting';return this.apiClient.callApi("/api/v2/greetings/{greetingId}","PUT",{greetingId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putGreetingsDefaults(e,i){if(i=i||{},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"],i.customHeaders)}putGroupGreetingsDefaults(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "groupId" when calling putGroupGreetingsDefaults';if(i==null)throw'Missing the required parameter "body" when calling putGroupGreetingsDefaults';return this.apiClient.callApi("/api/v2/groups/{groupId}/greetings/defaults","PUT",{groupId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putUserGreetingsDefaults(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling putUserGreetingsDefaults';if(i==null)throw'Missing the required parameter "body" when calling putUserGreetingsDefaults';return this.apiClient.callApi("/api/v2/users/{userId}/greetings/defaults","PUT",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}},nb=class{constructor(e){this.apiClient=e||q.instance}deleteGroup(e,i){if(i=i||{},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"],i.customHeaders)}deleteGroupDynamicsettings(e,i){if(i=i||{},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"],i.customHeaders)}deleteGroupMembers(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "groupId" when calling deleteGroupMembers';if(i==null)throw'Missing the required parameter "ids" when calling deleteGroupMembers';return this.apiClient.callApi("/api/v2/groups/{groupId}/members","DELETE",{groupId:e},{ids:i},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getFieldconfig(e,i){if(i=i||{},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"],i.customHeaders)}getGroup(e,i){if(i=i||{},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"],i.customHeaders)}getGroupDynamicsettings(e,i){if(i=i||{},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"],i.customHeaders)}getGroupIndividuals(e,i){if(i=i||{},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"],i.customHeaders)}getGroupMembers(e,i){if(i=i||{},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:i.pageSize,pageNumber:i.pageNumber,sortOrder:i.sortOrder,expand:this.apiClient.buildCollectionParam(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getGroupProfile(e,i){if(i=i||{},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:i.fields},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "groupId" when calling postGroupMembers';if(i==null)throw'Missing the required parameter "body" when calling postGroupMembers';return this.apiClient.callApi("/api/v2/groups/{groupId}/members","POST",{groupId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postGroups(e,i){if(i=i||{},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"],i.customHeaders)}postGroupsDynamicsettingsPreview(e,i){if(i=i||{},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"],i.customHeaders)}postGroupsSearch(e,i){if(i=i||{},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"],i.customHeaders)}putGroup(e,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "groupId" when calling putGroup';return this.apiClient.callApi("/api/v2/groups/{groupId}","PUT",{groupId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}putGroupDynamicsettings(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "groupId" when calling putGroupDynamicsettings';if(i==null)throw'Missing the required parameter "body" when calling putGroupDynamicsettings';return this.apiClient.callApi("/api/v2/groups/{groupId}/dynamicsettings","PUT",{groupId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}},tb=class{constructor(e){this.apiClient=e||q.instance}deleteIdentityprovider(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}putIdentityprovider(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "providerId" when calling putIdentityprovider';if(i==null)throw'Missing the required parameter "body" when calling putIdentityprovider';return this.apiClient.callApi("/api/v2/identityproviders/{providerId}","PUT",{providerId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putIdentityprovidersAdfs(e,i){if(i=i||{},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"],i.customHeaders)}putIdentityprovidersCic(e,i){if(i=i||{},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"],i.customHeaders)}putIdentityprovidersGeneric(e,i){if(i=i||{},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"],i.customHeaders)}putIdentityprovidersGsuite(e,i){if(i=i||{},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"],i.customHeaders)}putIdentityprovidersIdentitynow(e,i){if(i=i||{},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"],i.customHeaders)}putIdentityprovidersOkta(e,i){if(i=i||{},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"],i.customHeaders)}putIdentityprovidersOnelogin(e,i){if(i=i||{},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"],i.customHeaders)}putIdentityprovidersPing(e,i){if(i=i||{},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"],i.customHeaders)}putIdentityprovidersPurecloud(e,i){if(i=i||{},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"],i.customHeaders)}putIdentityprovidersPureengage(e,i){if(i=i||{},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"],i.customHeaders)}putIdentityprovidersSalesforce(e,i){if(i=i||{},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"],i.customHeaders)}},ab=class{constructor(e){this.apiClient=e||q.instance}getInfrastructureascodeAccelerator(e,i){if(i=i||{},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:i.preferredLanguage},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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:i.details},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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"],i.customHeaders)}},rb=class{constructor(e){this.apiClient=e||q.instance}deleteIntegration(e,i){if(i=i||{},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"],i.customHeaders)}deleteIntegrationsAction(e,i){if(i=i||{},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"],i.customHeaders)}deleteIntegrationsActionDraft(e,i){if(i=i||{},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"],i.customHeaders)}deleteIntegrationsCredential(e,i){if(i=i||{},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"],i.customHeaders)}getIntegration(e,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "integrationId" when calling getIntegration';return this.apiClient.callApi("/api/v2/integrations/{integrationId}","GET",{integrationId:e},{pageSize:i.pageSize,pageNumber:i.pageNumber,sortBy:i.sortBy,expand:this.apiClient.buildCollectionParam(i.expand,"multi"),nextPage:i.nextPage,previousPage:i.previousPage},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getIntegrationConfigCurrent(e,i){if(i=i||{},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"],i.customHeaders)}getIntegrations(e){return e=e||{},this.apiClient.callApi("/api/v2/integrations","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,sortBy:e.sortBy,expand:this.apiClient.buildCollectionParam(e.expand,"multi"),nextPage:e.nextPage,previousPage:e.previousPage,ids:this.apiClient.buildCollectionParam(e.ids,"multi"),integrationType:e.integrationType,reportedState:e.reportedState},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getIntegrationsAction(e,i){if(i=i||{},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:i.expand,flatten:i.flatten,includeConfig:i.includeConfig},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getIntegrationsActionDraft(e,i){if(i=i||{},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:i.expand,flatten:i.flatten,includeConfig:i.includeConfig},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getIntegrationsActionDraftFunction(e,i){if(i=i||{},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"],i.customHeaders)}getIntegrationsActionDraftSchema(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "actionId" when calling getIntegrationsActionDraftSchema';if(i==null||i==="")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:i},{flatten:n.flatten},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getIntegrationsActionDraftTemplate(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "actionId" when calling getIntegrationsActionDraftTemplate';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["text/plain"],n.customHeaders)}getIntegrationsActionDraftValidation(e,i){if(i=i||{},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"],i.customHeaders)}getIntegrationsActionFunction(e,i){if(i=i||{},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"],i.customHeaders)}getIntegrationsActionSchema(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "actionId" when calling getIntegrationsActionSchema';if(i==null||i==="")throw'Missing the required parameter "fileName" when calling getIntegrationsActionSchema';return this.apiClient.callApi("/api/v2/integrations/actions/{actionId}/schemas/{fileName}","GET",{actionId:e,fileName:i},{flatten:n.flatten},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getIntegrationsActionTemplate(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "actionId" when calling getIntegrationsActionTemplate';if(i==null||i==="")throw'Missing the required parameter "fileName" when calling getIntegrationsActionTemplate';return this.apiClient.callApi("/api/v2/integrations/actions/{actionId}/templates/{fileName}","GET",{actionId:e,fileName:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["text/plain"],n.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,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "integrationId" when calling getIntegrationsBotconnectorBot';if(i==null||i==="")throw'Missing the required parameter "botId" when calling getIntegrationsBotconnectorBot';return this.apiClient.callApi("/api/v2/integrations/botconnectors/{integrationId}/bots/{botId}","GET",{integrationId:e,botId:i},{version:n.version},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getIntegrationsBotconnectorBots(e,i){if(i=i||{},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:i.pageNumber,pageSize:i.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getIntegrationsBotconnectorBotsSummaries(e,i){if(i=i||{},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:i.pageNumber,pageSize:i.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getIntegrationsBotconnectorIntegrationIdBot(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "integrationId" when calling getIntegrationsBotconnectorIntegrationIdBot';if(i==null||i==="")throw'Missing the required parameter "botId" when calling getIntegrationsBotconnectorIntegrationIdBot';return this.apiClient.callApi("/api/v2/integrations/botconnector/{integrationId}/bots/{botId}","GET",{integrationId:e,botId:i},{version:n.version},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getIntegrationsBotconnectorIntegrationIdBotVersions(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "integrationId" when calling getIntegrationsBotconnectorIntegrationIdBotVersions';if(i==null||i==="")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:i},{pageNumber:n.pageNumber,pageSize:n.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getIntegrationsBotconnectorIntegrationIdBots(e,i){if(i=i||{},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"],i.customHeaders)}getIntegrationsBotconnectorIntegrationIdBotsSummaries(e,i){if(i=i||{},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:i.pageNumber,pageSize:i.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getIntegrationsClientapps(e){return e=e||{},this.apiClient.callApi("/api/v2/integrations/clientapps","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,sortBy:e.sortBy,expand:this.apiClient.buildCollectionParam(e.expand,"multi"),nextPage:e.nextPage,previousPage:e.previousPage},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getIntegrationsClientappsUnifiedcommunications(e){return e=e||{},this.apiClient.callApi("/api/v2/integrations/clientapps/unifiedcommunications","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,sortBy:e.sortBy,expand:this.apiClient.buildCollectionParam(e.expand,"multi"),nextPage:e.nextPage,previousPage:e.previousPage},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getIntegrationsCredential(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getIntegrationsSpeechDialogflowAgent(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getIntegrationsSpeechLexBotBotIdAliases(e,i){if(i=i||{},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:i.pageNumber,pageSize:i.pageSize,status:i.status,name:i.name},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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"],i.customHeaders)}getIntegrationsSpeechLexv2BotBotIdAliases(e,i){if(i=i||{},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:i.pageNumber,pageSize:i.pageSize,status:i.status,name:i.name},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "nuanceIntegrationId" when calling getIntegrationsSpeechNuanceNuanceIntegrationIdBot';if(i==null||i==="")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:i},{expand:this.apiClient.buildCollectionParam(n.expand,"multi"),targetChannel:n.targetChannel},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getIntegrationsSpeechNuanceNuanceIntegrationIdBotJob(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "nuanceIntegrationId" when calling getIntegrationsSpeechNuanceNuanceIntegrationIdBotJob';if(i==null||i==="")throw'Missing the required parameter "botId" when calling getIntegrationsSpeechNuanceNuanceIntegrationIdBotJob';if(n==null||n==="")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:i,jobId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getIntegrationsSpeechNuanceNuanceIntegrationIdBotJobResults(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "nuanceIntegrationId" when calling getIntegrationsSpeechNuanceNuanceIntegrationIdBotJobResults';if(i==null||i==="")throw'Missing the required parameter "botId" when calling getIntegrationsSpeechNuanceNuanceIntegrationIdBotJobResults';if(n==null||n==="")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:i,jobId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getIntegrationsSpeechNuanceNuanceIntegrationIdBots(e,i){if(i=i||{},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:i.pageNumber,pageSize:i.pageSize,onlyRegisteredBots:i.onlyRegisteredBots},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getIntegrationsSpeechNuanceNuanceIntegrationIdBotsJob(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "nuanceIntegrationId" when calling getIntegrationsSpeechNuanceNuanceIntegrationIdBotsJob';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getIntegrationsSpeechNuanceNuanceIntegrationIdBotsJobResults(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "nuanceIntegrationId" when calling getIntegrationsSpeechNuanceNuanceIntegrationIdBotsJobResults';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getIntegrationsSpeechSttEngine(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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:i.includeVoices},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getIntegrationsSpeechTtsEngineVoice(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "engineId" when calling getIntegrationsSpeechTtsEngineVoice';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getIntegrationsSpeechTtsEngineVoices(e,i){if(i=i||{},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:i.pageNumber,pageSize:i.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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"],i.customHeaders)}getIntegrationsTypeConfigschema(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "typeId" when calling getIntegrationsTypeConfigschema';if(i==null||i==="")throw'Missing the required parameter "configType" when calling getIntegrationsTypeConfigschema';return this.apiClient.callApi("/api/v2/integrations/types/{typeId}/configschemas/{configType}","GET",{typeId:e,configType:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "integrationId" when calling patchIntegration';return this.apiClient.callApi("/api/v2/integrations/{integrationId}","PATCH",{integrationId:e},{pageSize:i.pageSize,pageNumber:i.pageNumber,sortBy:i.sortBy,expand:this.apiClient.buildCollectionParam(i.expand,"multi"),nextPage:i.nextPage,previousPage:i.previousPage},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}patchIntegrationsAction(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "actionId" when calling patchIntegrationsAction';if(i==null)throw'Missing the required parameter "body" when calling patchIntegrationsAction';return this.apiClient.callApi("/api/v2/integrations/actions/{actionId}","PATCH",{actionId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchIntegrationsActionDraft(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "actionId" when calling patchIntegrationsActionDraft';if(i==null)throw'Missing the required parameter "body" when calling patchIntegrationsActionDraft';return this.apiClient.callApi("/api/v2/integrations/actions/{actionId}/draft","PATCH",{actionId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.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,i){if(i=i||{},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"],i.customHeaders)}postIntegrationsActionDraftFunctionUpload(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "actionId" when calling postIntegrationsActionDraftFunctionUpload';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postIntegrationsActionDraftPublish(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "actionId" when calling postIntegrationsActionDraftPublish';if(i==null)throw'Missing the required parameter "body" when calling postIntegrationsActionDraftPublish';return this.apiClient.callApi("/api/v2/integrations/actions/{actionId}/draft/publish","POST",{actionId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postIntegrationsActionDraftTest(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "actionId" when calling postIntegrationsActionDraftTest';if(i==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:n.flatten},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postIntegrationsActionExecute(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "actionId" when calling postIntegrationsActionExecute';if(i==null)throw'Missing the required parameter "body" when calling postIntegrationsActionExecute';return this.apiClient.callApi("/api/v2/integrations/actions/{actionId}/execute","POST",{actionId:e},{flatten:n.flatten},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postIntegrationsActionTest(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "actionId" when calling postIntegrationsActionTest';if(i==null)throw'Missing the required parameter "body" when calling postIntegrationsActionTest';return this.apiClient.callApi("/api/v2/integrations/actions/{actionId}/test","POST",{actionId:e},{flatten:n.flatten},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postIntegrationsActions(e,i){if(i=i||{},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"],i.customHeaders)}postIntegrationsActionsDrafts(e,i){if(i=i||{},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"],i.customHeaders)}postIntegrationsBotconnectorsIncomingMessages(e,i){if(i=i||{},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"],i.customHeaders)}postIntegrationsBotconnectorsOutgoingMessages(e,i){if(i=i||{},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"],i.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,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "nuanceIntegrationId" when calling postIntegrationsSpeechNuanceNuanceIntegrationIdBotJobs';if(i==null||i==="")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:i},{expand:this.apiClient.buildCollectionParam(n.expand,"multi")},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postIntegrationsSpeechNuanceNuanceIntegrationIdBotsJobs(e,i){if(i=i||{},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:i.pageNumber,pageSize:i.pageSize,onlyRegisteredBots:i.onlyRegisteredBots},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postIntegrationsSpeechNuanceNuanceIntegrationIdBotsLaunchValidate(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "nuanceIntegrationId" when calling postIntegrationsSpeechNuanceNuanceIntegrationIdBotsLaunchValidate';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postIntegrationsWebhookEvents(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "tokenId" when calling postIntegrationsWebhookEvents';if(i==null)throw'Missing the required parameter "body" when calling postIntegrationsWebhookEvents';return this.apiClient.callApi("/api/v2/integrations/webhooks/{tokenId}/events","POST",{tokenId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putIntegrationConfigCurrent(e,i){if(i=i||{},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},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}putIntegrationsActionDraftFunction(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "actionId" when calling putIntegrationsActionDraftFunction';if(i==null)throw'Missing the required parameter "body" when calling putIntegrationsActionDraftFunction';return this.apiClient.callApi("/api/v2/integrations/actions/{actionId}/draft/function","PUT",{actionId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putIntegrationsBotconnectorIntegrationIdBots(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "integrationId" when calling putIntegrationsBotconnectorIntegrationIdBots';if(i==null)throw'Missing the required parameter "botList" when calling putIntegrationsBotconnectorIntegrationIdBots';return this.apiClient.callApi("/api/v2/integrations/botconnector/{integrationId}/bots","PUT",{integrationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putIntegrationsCredential(e,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "credentialId" when calling putIntegrationsCredential';return this.apiClient.callApi("/api/v2/integrations/credentials/{credentialId}","PUT",{credentialId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}putIntegrationsSpeechNuanceNuanceIntegrationIdBotsLaunchSettings(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "nuanceIntegrationId" when calling putIntegrationsSpeechNuanceNuanceIntegrationIdBotsLaunchSettings';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putIntegrationsSpeechTtsSettings(e,i){if(i=i||{},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"],i.customHeaders)}putIntegrationsUnifiedcommunicationThirdpartypresences(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "ucIntegrationId" when calling putIntegrationsUnifiedcommunicationThirdpartypresences';if(i==null)throw'Missing the required parameter "body" when calling putIntegrationsUnifiedcommunicationThirdpartypresences';return this.apiClient.callApi("/api/v2/integrations/unifiedcommunications/{ucIntegrationId}/thirdpartypresences","PUT",{ucIntegrationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}},sb=class{constructor(e){this.apiClient=e||q.instance}deleteIntentsCategory(e,i){if(i=i||{},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"],i.customHeaders)}deleteIntentsCustomerintent(e,i){if(i=i||{},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"],i.customHeaders)}getIntentsAssignmentsExternalcontact(e,i){if(i=i||{},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:i.pageSize,pageNumber:i.pageNumber},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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"],i.customHeaders)}getIntentsCustomerintent(e,i){if(i=i||{},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"],i.customHeaders)}getIntentsCustomerintentSourceintents(e,i){if(i=i||{},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:i.pageSize,pageNumber:i.pageNumber,queryValue:i.queryValue},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "categoryId" when calling patchIntentsCategory';if(i==null)throw'Missing the required parameter "body" when calling patchIntentsCategory';return this.apiClient.callApi("/api/v2/intents/categories/{categoryId}","PATCH",{categoryId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchIntentsCustomerintent(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "customerIntentId" when calling patchIntentsCustomerintent';if(i==null)throw'Missing the required parameter "body" when calling patchIntentsCustomerintent';return this.apiClient.callApi("/api/v2/intents/customerintents/{customerIntentId}","PATCH",{customerIntentId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postIntentsAssignmentsExternalcontactCustomerintentAssignment(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "externalContactId" when calling postIntentsAssignmentsExternalcontactCustomerintentAssignment';if(i==null||i==="")throw'Missing the required parameter "customerIntentId" when calling postIntentsAssignmentsExternalcontactCustomerintentAssignment';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postIntentsCategories(e,i){if(i=i||{},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"],i.customHeaders)}postIntentsCustomerintentSourceintentsBulkAdd(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "customerIntentId" when calling postIntentsCustomerintentSourceintentsBulkAdd';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postIntentsCustomerintentSourceintentsBulkRemove(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "customerIntentId" when calling postIntentsCustomerintentSourceintentsBulkRemove';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postIntentsCustomerintents(e,i){if(i=i||{},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"],i.customHeaders)}},ob=class{constructor(e){this.apiClient=e||q.instance}deleteAnalyticsJourneysAggregatesJob(e,i){if(i=i||{},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"],i.customHeaders)}deleteJourneyActionmap(e,i){if(i=i||{},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"],i.customHeaders)}deleteJourneyActiontemplate(e,i){if(i=i||{},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:i.hardDelete},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}deleteJourneyExternaleventsConfiguration(e,i){if(i=i||{},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"],i.customHeaders)}deleteJourneyExternaleventsSchema(e,i){if(i=i||{},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"],i.customHeaders)}deleteJourneyOutcome(e,i){if(i=i||{},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"],i.customHeaders)}deleteJourneyOutcomesPredictor(e,i){if(i=i||{},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"],i.customHeaders)}deleteJourneySegment(e,i){if(i=i||{},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"],i.customHeaders)}deleteJourneyView(e,i){if(i=i||{},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"],i.customHeaders)}deleteJourneyViewSchedules(e,i){if(i=i||{},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"],i.customHeaders)}getAnalyticsJourneysAggregatesJob(e,i){if(i=i||{},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"],i.customHeaders)}getAnalyticsJourneysAggregatesJobResults(e,i){if(i=i||{},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:i.cursor},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getExternalcontactsContactJourneySegments(e,i){if(i=i||{},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:i.includeMerged,limit:i.limit},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getExternalcontactsContactJourneySessions(e,i){if(i=i||{},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:i.pageSize,after:i.after,includeMerged:i.includeMerged},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getJourneyActionmap(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getJourneyActionmapsEstimatesJobResults(e,i){if(i=i||{},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"],i.customHeaders)}getJourneyActiontarget(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "deploymentId" when calling getJourneyDeploymentCustomerPing';if(i==null||i==="")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:i},{dl:n.dl,dt:n.dt,appNamespace:n.appNamespace,sessionId:n.sessionId,sinceLastBeaconMilliseconds:n.sinceLastBeaconMilliseconds},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getJourneyExternaleventsConfiguration(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getJourneyExternaleventsSchemaVersion(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "schemaId" when calling getJourneyExternaleventsSchemaVersion';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getJourneyExternaleventsSchemaVersions(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getJourneyOutcomesAttributionsJobResults(e,i){if(i=i||{},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"],i.customHeaders)}getJourneyOutcomesPredictor(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getJourneySessionEvents(e,i){if(i=i||{},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:i.pageSize,after:i.after,eventType:i.eventType},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getJourneySessionOutcomescores(e,i){if(i=i||{},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"],i.customHeaders)}getJourneyView(e,i){if(i=i||{},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"],i.customHeaders)}getJourneyViewSchedules(e,i){if(i=i||{},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"],i.customHeaders)}getJourneyViewVersion(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "viewId" when calling getJourneyViewVersion';if(i==null||i==="")throw'Missing the required parameter "versionId" when calling getJourneyViewVersion';return this.apiClient.callApi("/api/v2/journey/views/{viewId}/versions/{versionId}","GET",{viewId:e,versionId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getJourneyViewVersionChart(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "viewId" when calling getJourneyViewVersionChart';if(i==null||i==="")throw'Missing the required parameter "journeyViewVersion" when calling getJourneyViewVersionChart';if(n==null||n==="")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:i,chartId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getJourneyViewVersionChartVersion(e,i,n,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "viewId" when calling getJourneyViewVersionChartVersion';if(i==null||i==="")throw'Missing the required parameter "journeyViewVersion" when calling getJourneyViewVersionChartVersion';if(n==null||n==="")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:i,chartId:n,chartVersion:a},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}getJourneyViewVersionJob(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "viewId" when calling getJourneyViewVersionJob';if(i==null||i==="")throw'Missing the required parameter "journeyVersionId" when calling getJourneyViewVersionJob';if(n==null||n==="")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:i,jobId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getJourneyViewVersionJobResults(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "viewId" when calling getJourneyViewVersionJobResults';if(i==null||i==="")throw'Missing the required parameter "journeyViewVersion" when calling getJourneyViewVersionJobResults';if(n==null||n==="")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:i,jobId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getJourneyViewVersionJobResultsChart(e,i,n,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "viewId" when calling getJourneyViewVersionJobResultsChart';if(i==null||i==="")throw'Missing the required parameter "journeyVersionId" when calling getJourneyViewVersionJobResultsChart';if(n==null||n==="")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:i,jobId:n,chartId:a},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}getJourneyViewVersionJobsLatest(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "viewId" when calling getJourneyViewVersionJobsLatest';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.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,i){if(i=i||{},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"],i.customHeaders)}getJourneyViewsEventdefinitions(e){return e=e||{},this.apiClient.callApi("/api/v2/journey/views/eventdefinitions","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getJourneyViewsJobs(e){return e=e||{},this.apiClient.callApi("/api/v2/journey/views/jobs","GET",{},{pageNumber:e.pageNumber,pageSize:e.pageSize,interval:e.interval,statuses:e.statuses},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getJourneyViewsJobsMe(e){return e=e||{},this.apiClient.callApi("/api/v2/journey/views/jobs/me","GET",{},{pageNumber:e.pageNumber,pageSize:e.pageSize,interval:e.interval,statuses:e.statuses},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getJourneyViewsSchedules(e){return e=e||{},this.apiClient.callApi("/api/v2/journey/views/schedules","GET",{},{pageNumber:e.pageNumber,pageSize:e.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}patchJourneyActionmap(e,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "actionMapId" when calling patchJourneyActionmap';return this.apiClient.callApi("/api/v2/journey/actionmaps/{actionMapId}","PATCH",{actionMapId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}patchJourneyActiontarget(e,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "actionTargetId" when calling patchJourneyActiontarget';return this.apiClient.callApi("/api/v2/journey/actiontargets/{actionTargetId}","PATCH",{actionTargetId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}patchJourneyActiontemplate(e,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "actionTemplateId" when calling patchJourneyActiontemplate';return this.apiClient.callApi("/api/v2/journey/actiontemplates/{actionTemplateId}","PATCH",{actionTemplateId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}patchJourneyExternaleventsConfiguration(e,i){if(i=i||{},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},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}patchJourneyOutcome(e,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "outcomeId" when calling patchJourneyOutcome';return this.apiClient.callApi("/api/v2/journey/outcomes/{outcomeId}","PATCH",{outcomeId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}patchJourneySegment(e,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "segmentId" when calling patchJourneySegment';return this.apiClient.callApi("/api/v2/journey/segments/{segmentId}","PATCH",{segmentId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}patchJourneyViewVersionJob(e,i,n,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "viewId" when calling patchJourneyViewVersionJob';if(i==null||i==="")throw'Missing the required parameter "journeyVersionId" when calling patchJourneyViewVersionJob';if(n==null||n==="")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:i,jobId:n},{},{},{},a,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}postAnalyticsJourneysAggregatesJobs(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsJourneysAggregatesQuery(e,i){if(i=i||{},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"],i.customHeaders)}postExternalcontactsContactJourneySegments(e,i){if(i=i||{},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},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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"],i.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,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "deploymentId" when calling postJourneyDeploymentActionevent';if(i==null)throw'Missing the required parameter "body" when calling postJourneyDeploymentActionevent';return this.apiClient.callApi("/api/v2/journey/deployments/{deploymentId}/actionevent","POST",{deploymentId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postJourneyDeploymentAppevents(e,i){if(i=i||{},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},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postJourneyDeploymentWebevents(e,i){if(i=i||{},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},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postJourneyExternaleventsConfigurationEvents(e,i){if(i=i||{},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},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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"],i.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,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "viewId" when calling postJourneyViewSchedules';if(i==null)throw'Missing the required parameter "body" when calling postJourneyViewSchedules';return this.apiClient.callApi("/api/v2/journey/views/{viewId}/schedules","POST",{viewId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postJourneyViewVersionJobs(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "viewId" when calling postJourneyViewVersionJobs';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postJourneyViewVersions(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "viewId" when calling postJourneyViewVersions';if(i==null)throw'Missing the required parameter "body" when calling postJourneyViewVersions';return this.apiClient.callApi("/api/v2/journey/views/{viewId}/versions","POST",{viewId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postJourneyViews(e,i){if(i=i||{},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"],i.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,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "schemaId" when calling putJourneyExternaleventsSchema';if(i==null)throw'Missing the required parameter "body" when calling putJourneyExternaleventsSchema';return this.apiClient.callApi("/api/v2/journey/externalevents/schemas/{schemaId}","PUT",{schemaId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putJourneyViewSchedules(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "viewId" when calling putJourneyViewSchedules';if(i==null)throw'Missing the required parameter "body" when calling putJourneyViewSchedules';return this.apiClient.callApi("/api/v2/journey/views/{viewId}/schedules","PUT",{viewId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putJourneyViewVersion(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "viewId" when calling putJourneyViewVersion';if(i==null||i==="")throw'Missing the required parameter "versionId" when calling putJourneyViewVersion';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}},lb=class{constructor(e){this.apiClient=e||q.instance}deleteKnowledgeConnection(e,i){if(i=i||{},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"],i.customHeaders)}deleteKnowledgeKnowledgebase(e,i){if(i=i||{},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"],i.customHeaders)}deleteKnowledgeKnowledgebaseCategory(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling deleteKnowledgeKnowledgebaseCategory';if(i==null||i==="")throw'Missing the required parameter "categoryId" when calling deleteKnowledgeKnowledgebaseCategory';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/categories/{categoryId}","DELETE",{knowledgeBaseId:e,categoryId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteKnowledgeKnowledgebaseDocument(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling deleteKnowledgeKnowledgebaseDocument';if(i==null||i==="")throw'Missing the required parameter "documentId" when calling deleteKnowledgeKnowledgebaseDocument';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/documents/{documentId}","DELETE",{knowledgeBaseId:e,documentId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteKnowledgeKnowledgebaseDocumentVariation(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "documentVariationId" when calling deleteKnowledgeKnowledgebaseDocumentVariation';if(i==null||i==="")throw'Missing the required parameter "documentId" when calling deleteKnowledgeKnowledgebaseDocumentVariation';if(n==null||n==="")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:i,knowledgeBaseId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}deleteKnowledgeKnowledgebaseExportJob(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling deleteKnowledgeKnowledgebaseExportJob';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteKnowledgeKnowledgebaseImportJob(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling deleteKnowledgeKnowledgebaseImportJob';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteKnowledgeKnowledgebaseLabel(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling deleteKnowledgeKnowledgebaseLabel';if(i==null||i==="")throw'Missing the required parameter "labelId" when calling deleteKnowledgeKnowledgebaseLabel';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/labels/{labelId}","DELETE",{knowledgeBaseId:e,labelId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteKnowledgeKnowledgebaseSourcesSalesforceSourceId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling deleteKnowledgeKnowledgebaseSourcesSalesforceSourceId';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteKnowledgeKnowledgebaseSourcesServicenowSourceId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling deleteKnowledgeKnowledgebaseSourcesServicenowSourceId';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteKnowledgeKnowledgebaseSynchronizeJob(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling deleteKnowledgeKnowledgebaseSynchronizeJob';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteKnowledgeSetting(e,i){if(i=i||{},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"],i.customHeaders)}deleteKnowledgeSource(e,i){if(i=i||{},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"],i.customHeaders)}getKnowledgeConnection(e,i){if(i=i||{},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(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getKnowledgeConnectionOptions(e,i){if(i=i||{},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:i.after,pageSize:i.pageSize,parentId:i.parentId},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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:i.before,after:i.after,pageSize:i.pageSize,parentId:i.parentId,isRoot:i.isRoot,name:i.name,sortBy:i.sortBy,expand:i.expand,includeDocumentCount:i.includeDocumentCount},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getKnowledgeGuestSessionDocument(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "sessionId" when calling getKnowledgeGuestSessionDocument';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getKnowledgeGuestSessionDocuments(e,i){if(i=i||{},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(i.categoryId,"multi"),pageSize:i.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getKnowledgeIntegrationOptions(e,i){if(i=i||{},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(i.knowledgeBaseIds,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getKnowledgeKnowledgebase(e,i){if(i=i||{},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"],i.customHeaders)}getKnowledgeKnowledgebaseCategories(e,i){if(i=i||{},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:i.before,after:i.after,pageSize:i.pageSize,parentId:i.parentId,isRoot:i.isRoot,name:i.name,sortBy:i.sortBy,expand:i.expand,includeDocumentCount:i.includeDocumentCount},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getKnowledgeKnowledgebaseCategory(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling getKnowledgeKnowledgebaseCategory';if(i==null||i==="")throw'Missing the required parameter "categoryId" when calling getKnowledgeKnowledgebaseCategory';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/categories/{categoryId}","GET",{knowledgeBaseId:e,categoryId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getKnowledgeKnowledgebaseDocument(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling getKnowledgeKnowledgebaseDocument';if(i==null||i==="")throw'Missing the required parameter "documentId" when calling getKnowledgeKnowledgebaseDocument';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/documents/{documentId}","GET",{knowledgeBaseId:e,documentId:i},{expand:this.apiClient.buildCollectionParam(n.expand,"multi"),state:n.state},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getKnowledgeKnowledgebaseDocumentFeedback(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling getKnowledgeKnowledgebaseDocumentFeedback';if(i==null||i==="")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:i},{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)}getKnowledgeKnowledgebaseDocumentFeedbackFeedbackId(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling getKnowledgeKnowledgebaseDocumentFeedbackFeedbackId';if(i==null||i==="")throw'Missing the required parameter "documentId" when calling getKnowledgeKnowledgebaseDocumentFeedbackFeedbackId';if(n==null||n==="")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:i,feedbackId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getKnowledgeKnowledgebaseDocumentVariation(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "documentVariationId" when calling getKnowledgeKnowledgebaseDocumentVariation';if(i==null||i==="")throw'Missing the required parameter "documentId" when calling getKnowledgeKnowledgebaseDocumentVariation';if(n==null||n==="")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:i,knowledgeBaseId:n},{documentState:a.documentState,expand:this.apiClient.buildCollectionParam(a.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getKnowledgeKnowledgebaseDocumentVariations(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling getKnowledgeKnowledgebaseDocumentVariations';if(i==null||i==="")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:i},{before:n.before,after:n.after,pageSize:n.pageSize,documentState:n.documentState,expand:this.apiClient.buildCollectionParam(n.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getKnowledgeKnowledgebaseDocumentVersion(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling getKnowledgeKnowledgebaseDocumentVersion';if(i==null||i==="")throw'Missing the required parameter "documentId" when calling getKnowledgeKnowledgebaseDocumentVersion';if(n==null||n==="")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:i,versionId:n},{expand:this.apiClient.buildCollectionParam(a.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getKnowledgeKnowledgebaseDocumentVersionVariation(e,i,n,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling getKnowledgeKnowledgebaseDocumentVersionVariation';if(i==null||i==="")throw'Missing the required parameter "documentId" when calling getKnowledgeKnowledgebaseDocumentVersionVariation';if(n==null||n==="")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:i,versionId:n,variationId:a},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}getKnowledgeKnowledgebaseDocumentVersionVariations(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling getKnowledgeKnowledgebaseDocumentVersionVariations';if(i==null||i==="")throw'Missing the required parameter "documentId" when calling getKnowledgeKnowledgebaseDocumentVersionVariations';if(n==null||n==="")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:i,versionId:n},{before:a.before,after:a.after,pageSize:a.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getKnowledgeKnowledgebaseDocumentVersions(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling getKnowledgeKnowledgebaseDocumentVersions';if(i==null||i==="")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:i},{before:n.before,after:n.after,pageSize:n.pageSize,expand:this.apiClient.buildCollectionParam(n.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getKnowledgeKnowledgebaseDocuments(e,i){if(i=i||{},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:i.before,after:i.after,pageSize:i.pageSize,interval:i.interval,documentId:this.apiClient.buildCollectionParam(i.documentId,"multi"),categoryId:this.apiClient.buildCollectionParam(i.categoryId,"multi"),includeSubcategories:i.includeSubcategories,includeDrafts:i.includeDrafts,labelIds:this.apiClient.buildCollectionParam(i.labelIds,"multi"),expand:this.apiClient.buildCollectionParam(i.expand,"multi"),externalIds:this.apiClient.buildCollectionParam(i.externalIds,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getKnowledgeKnowledgebaseExportJob(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling getKnowledgeKnowledgebaseExportJob';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getKnowledgeKnowledgebaseImportJob(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling getKnowledgeKnowledgebaseImportJob';if(i==null||i==="")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:i},{expand:this.apiClient.buildCollectionParam(n.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getKnowledgeKnowledgebaseLabel(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling getKnowledgeKnowledgebaseLabel';if(i==null||i==="")throw'Missing the required parameter "labelId" when calling getKnowledgeKnowledgebaseLabel';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/labels/{labelId}","GET",{knowledgeBaseId:e,labelId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getKnowledgeKnowledgebaseLabels(e,i){if(i=i||{},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:i.before,after:i.after,pageSize:i.pageSize,name:i.name,includeDocumentCount:i.includeDocumentCount},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getKnowledgeKnowledgebaseOperations(e,i){if(i=i||{},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:i.before,after:i.after,pageSize:i.pageSize,userId:this.apiClient.buildCollectionParam(i.userId,"multi"),type:this.apiClient.buildCollectionParam(i.type,"multi"),status:this.apiClient.buildCollectionParam(i.status,"multi"),interval:i.interval,sourceId:this.apiClient.buildCollectionParam(i.sourceId,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getKnowledgeKnowledgebaseOperationsUsersQuery(e,i){if(i=i||{},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"],i.customHeaders)}getKnowledgeKnowledgebaseParseJob(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling getKnowledgeKnowledgebaseParseJob';if(i==null||i==="")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:i},{expand:this.apiClient.buildCollectionParam(n.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getKnowledgeKnowledgebaseSources(e,i){if(i=i||{},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:i.type,expand:this.apiClient.buildCollectionParam(i.expand,"multi"),ids:this.apiClient.buildCollectionParam(i.ids,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getKnowledgeKnowledgebaseSourcesSalesforceSourceId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling getKnowledgeKnowledgebaseSourcesSalesforceSourceId';if(i==null||i==="")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:i},{expand:this.apiClient.buildCollectionParam(n.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getKnowledgeKnowledgebaseSourcesServicenowSourceId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling getKnowledgeKnowledgebaseSourcesServicenowSourceId';if(i==null||i==="")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:i},{expand:this.apiClient.buildCollectionParam(n.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getKnowledgeKnowledgebaseSynchronizeJob(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling getKnowledgeKnowledgebaseSynchronizeJob';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getKnowledgeKnowledgebaseUnansweredGroup(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling getKnowledgeKnowledgebaseUnansweredGroup';if(i==null||i==="")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:i},{app:n.app,dateStart:n.dateStart,dateEnd:n.dateEnd},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getKnowledgeKnowledgebaseUnansweredGroupPhrasegroup(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling getKnowledgeKnowledgebaseUnansweredGroupPhrasegroup';if(i==null||i==="")throw'Missing the required parameter "groupId" when calling getKnowledgeKnowledgebaseUnansweredGroupPhrasegroup';if(n==null||n==="")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:i,phraseGroupId:n},{app:a.app,dateStart:a.dateStart,dateEnd:a.dateEnd},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getKnowledgeKnowledgebaseUnansweredGroups(e,i){if(i=i||{},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:i.app,dateStart:i.dateStart,dateEnd:i.dateEnd},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getKnowledgeKnowledgebaseUploadsUrlsJob(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling getKnowledgeKnowledgebaseUploadsUrlsJob';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getKnowledgeSourceSynchronization(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "sourceId" when calling getKnowledgeSourceSynchronization';if(i==null||i==="")throw'Missing the required parameter "synchronizationId" when calling getKnowledgeSourceSynchronization';return this.apiClient.callApi("/api/v2/knowledge/sources/{sourceId}/synchronizations/{synchronizationId}","GET",{sourceId:e,synchronizationId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getKnowledgeSourceSynchronizations(e,i){if(i=i||{},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:i.before,after:i.after,pageSize:i.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "connectionId" when calling patchKnowledgeConnection';return this.apiClient.callApi("/api/v2/knowledge/connections/{connectionId}","PATCH",{connectionId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}patchKnowledgeGuestSessionDocumentsSearchSearchId(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "sessionId" when calling patchKnowledgeGuestSessionDocumentsSearchSearchId';if(i==null||i==="")throw'Missing the required parameter "searchId" when calling patchKnowledgeGuestSessionDocumentsSearchSearchId';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchKnowledgeKnowledgebase(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling patchKnowledgeKnowledgebase';if(i==null)throw'Missing the required parameter "body" when calling patchKnowledgeKnowledgebase';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}","PATCH",{knowledgeBaseId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchKnowledgeKnowledgebaseCategory(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling patchKnowledgeKnowledgebaseCategory';if(i==null||i==="")throw'Missing the required parameter "categoryId" when calling patchKnowledgeKnowledgebaseCategory';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchKnowledgeKnowledgebaseChunksSearchSearchId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling patchKnowledgeKnowledgebaseChunksSearchSearchId';if(i==null||i==="")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:i},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchKnowledgeKnowledgebaseDocument(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling patchKnowledgeKnowledgebaseDocument';if(i==null||i==="")throw'Missing the required parameter "documentId" when calling patchKnowledgeKnowledgebaseDocument';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchKnowledgeKnowledgebaseDocumentFeedbackFeedbackId(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling patchKnowledgeKnowledgebaseDocumentFeedbackFeedbackId';if(i==null||i==="")throw'Missing the required parameter "documentId" when calling patchKnowledgeKnowledgebaseDocumentFeedbackFeedbackId';if(n==null||n==="")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:i,feedbackId:n},{},{},{},a.body,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchKnowledgeKnowledgebaseDocumentVariation(e,i,n,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "documentVariationId" when calling patchKnowledgeKnowledgebaseDocumentVariation';if(i==null||i==="")throw'Missing the required parameter "documentId" when calling patchKnowledgeKnowledgebaseDocumentVariation';if(n==null||n==="")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:i,knowledgeBaseId:n},{},{},{},a,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}patchKnowledgeKnowledgebaseDocumentsSearchSearchId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling patchKnowledgeKnowledgebaseDocumentsSearchSearchId';if(i==null||i==="")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:i},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchKnowledgeKnowledgebaseImportJob(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling patchKnowledgeKnowledgebaseImportJob';if(i==null||i==="")throw'Missing the required parameter "importJobId" when calling patchKnowledgeKnowledgebaseImportJob';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchKnowledgeKnowledgebaseLabel(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling patchKnowledgeKnowledgebaseLabel';if(i==null||i==="")throw'Missing the required parameter "labelId" when calling patchKnowledgeKnowledgebaseLabel';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchKnowledgeKnowledgebaseParseJob(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling patchKnowledgeKnowledgebaseParseJob';if(i==null||i==="")throw'Missing the required parameter "parseJobId" when calling patchKnowledgeKnowledgebaseParseJob';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchKnowledgeKnowledgebaseSynchronizeJob(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling patchKnowledgeKnowledgebaseSynchronizeJob';if(i==null||i==="")throw'Missing the required parameter "syncJobId" when calling patchKnowledgeKnowledgebaseSynchronizeJob';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchKnowledgeKnowledgebaseUnansweredGroupPhrasegroup(e,i,n,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling patchKnowledgeKnowledgebaseUnansweredGroupPhrasegroup';if(i==null||i==="")throw'Missing the required parameter "groupId" when calling patchKnowledgeKnowledgebaseUnansweredGroupPhrasegroup';if(n==null||n==="")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:i,phraseGroupId:n},{},{},{},a,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}patchKnowledgeSetting(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeSettingId" when calling patchKnowledgeSetting';if(i==null)throw'Missing the required parameter "body" when calling patchKnowledgeSetting';return this.apiClient.callApi("/api/v2/knowledge/settings/{knowledgeSettingId}","PATCH",{knowledgeSettingId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchKnowledgeSourceSynchronization(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "sourceId" when calling patchKnowledgeSourceSynchronization';if(i==null||i==="")throw'Missing the required parameter "synchronizationId" when calling patchKnowledgeSourceSynchronization';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postKnowledgeConnections(e,i){if(i=i||{},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"],i.customHeaders)}postKnowledgeDocumentuploads(e,i){if(i=i||{},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"],i.customHeaders)}postKnowledgeGuestSessionDocumentCopies(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "sessionId" when calling postKnowledgeGuestSessionDocumentCopies';if(i==null||i==="")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:i},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postKnowledgeGuestSessionDocumentFeedback(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "sessionId" when calling postKnowledgeGuestSessionDocumentFeedback';if(i==null||i==="")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:i},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postKnowledgeGuestSessionDocumentViews(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "sessionId" when calling postKnowledgeGuestSessionDocumentViews';if(i==null||i==="")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:i},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postKnowledgeGuestSessionDocumentsAnswers(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "sessionId" when calling postKnowledgeGuestSessionDocumentsAnswers';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postKnowledgeGuestSessionDocumentsPresentations(e,i){if(i=i||{},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},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postKnowledgeGuestSessionDocumentsSearch(e,i){if(i=i||{},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(i.expand,"multi")},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postKnowledgeGuestSessionDocumentsSearchSuggestions(e,i){if(i=i||{},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},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postKnowledgeGuestSessions(e,i){if(i=i||{},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"],i.customHeaders)}postKnowledgeKnowledgebaseCategories(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseCategories';if(i==null)throw'Missing the required parameter "body" when calling postKnowledgeKnowledgebaseCategories';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/categories","POST",{knowledgeBaseId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postKnowledgeKnowledgebaseChunksSearch(e,i){if(i=i||{},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},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postKnowledgeKnowledgebaseDocumentCopies(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseDocumentCopies';if(i==null||i==="")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:i},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postKnowledgeKnowledgebaseDocumentFeedback(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseDocumentFeedback';if(i==null||i==="")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:i},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postKnowledgeKnowledgebaseDocumentVariations(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseDocumentVariations';if(i==null||i==="")throw'Missing the required parameter "documentId" when calling postKnowledgeKnowledgebaseDocumentVariations';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postKnowledgeKnowledgebaseDocumentVersions(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseDocumentVersions';if(i==null||i==="")throw'Missing the required parameter "documentId" when calling postKnowledgeKnowledgebaseDocumentVersions';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postKnowledgeKnowledgebaseDocumentViews(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseDocumentViews';if(i==null||i==="")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:i},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postKnowledgeKnowledgebaseDocuments(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseDocuments';if(i==null)throw'Missing the required parameter "body" when calling postKnowledgeKnowledgebaseDocuments';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/documents","POST",{knowledgeBaseId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postKnowledgeKnowledgebaseDocumentsAnswers(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseDocumentsAnswers';if(i==null)throw'Missing the required parameter "body" when calling postKnowledgeKnowledgebaseDocumentsAnswers';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/documents/answers","POST",{knowledgeBaseId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postKnowledgeKnowledgebaseDocumentsBulkRemove(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseDocumentsBulkRemove';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postKnowledgeKnowledgebaseDocumentsBulkUpdate(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseDocumentsBulkUpdate';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postKnowledgeKnowledgebaseDocumentsPresentations(e,i){if(i=i||{},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},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postKnowledgeKnowledgebaseDocumentsQuery(e,i){if(i=i||{},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(i.expand,"multi")},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postKnowledgeKnowledgebaseDocumentsSearch(e,i){if(i=i||{},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(i.expand,"multi")},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postKnowledgeKnowledgebaseDocumentsSearchSuggestions(e,i){if(i=i||{},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},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postKnowledgeKnowledgebaseDocumentsVersionsBulkAdd(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseDocumentsVersionsBulkAdd';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postKnowledgeKnowledgebaseExportJobs(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseExportJobs';if(i==null)throw'Missing the required parameter "body" when calling postKnowledgeKnowledgebaseExportJobs';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/export/jobs","POST",{knowledgeBaseId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postKnowledgeKnowledgebaseImportJobs(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseImportJobs';if(i==null)throw'Missing the required parameter "body" when calling postKnowledgeKnowledgebaseImportJobs';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/import/jobs","POST",{knowledgeBaseId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postKnowledgeKnowledgebaseLabels(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseLabels';if(i==null)throw'Missing the required parameter "body" when calling postKnowledgeKnowledgebaseLabels';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/labels","POST",{knowledgeBaseId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postKnowledgeKnowledgebaseParseJobImport(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseParseJobImport';if(i==null||i==="")throw'Missing the required parameter "parseJobId" when calling postKnowledgeKnowledgebaseParseJobImport';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postKnowledgeKnowledgebaseParseJobs(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseParseJobs';if(i==null)throw'Missing the required parameter "body" when calling postKnowledgeKnowledgebaseParseJobs';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/parse/jobs","POST",{knowledgeBaseId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postKnowledgeKnowledgebaseSourcesSalesforce(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseSourcesSalesforce';if(i==null)throw'Missing the required parameter "body" when calling postKnowledgeKnowledgebaseSourcesSalesforce';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/sources/salesforce","POST",{knowledgeBaseId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postKnowledgeKnowledgebaseSourcesSalesforceSourceIdSync(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseSourcesSalesforceSourceIdSync';if(i==null||i==="")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:i},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postKnowledgeKnowledgebaseSourcesServicenow(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseSourcesServicenow';if(i==null)throw'Missing the required parameter "body" when calling postKnowledgeKnowledgebaseSourcesServicenow';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/sources/servicenow","POST",{knowledgeBaseId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postKnowledgeKnowledgebaseSourcesServicenowSourceIdSync(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseSourcesServicenowSourceIdSync';if(i==null||i==="")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:i},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postKnowledgeKnowledgebaseSynchronizeJobs(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseSynchronizeJobs';if(i==null)throw'Missing the required parameter "body" when calling postKnowledgeKnowledgebaseSynchronizeJobs';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/synchronize/jobs","POST",{knowledgeBaseId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postKnowledgeKnowledgebaseUploadsUrlsJobs(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseUploadsUrlsJobs';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postKnowledgeKnowledgebases(e,i){if(i=i||{},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"],i.customHeaders)}postKnowledgeSearch(e){return e=e||{},this.apiClient.callApi("/api/v2/knowledge/search","POST",{},{},{},{},e.body,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}postKnowledgeSearchPreview(e){return e=e||{},this.apiClient.callApi("/api/v2/knowledge/search/preview","POST",{},{},{},{},e.body,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}postKnowledgeSettings(e){return e=e||{},this.apiClient.callApi("/api/v2/knowledge/settings","POST",{},{},{},{},e.body,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}postKnowledgeSourceSynchronizationUploads(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "sourceId" when calling postKnowledgeSourceSynchronizationUploads';if(i==null||i==="")throw'Missing the required parameter "synchronizationId" when calling postKnowledgeSourceSynchronizationUploads';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postKnowledgeSourceSynchronizations(e,i){if(i=i||{},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},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postKnowledgeSources(e,i){if(i=i||{},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"],i.customHeaders)}putKnowledgeKnowledgebaseSourcesSalesforceSourceId(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling putKnowledgeKnowledgebaseSourcesSalesforceSourceId';if(i==null||i==="")throw'Missing the required parameter "sourceId" when calling putKnowledgeKnowledgebaseSourcesSalesforceSourceId';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}putKnowledgeKnowledgebaseSourcesServicenowSourceId(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling putKnowledgeKnowledgebaseSourcesServicenowSourceId';if(i==null||i==="")throw'Missing the required parameter "sourceId" when calling putKnowledgeKnowledgebaseSourcesServicenowSourceId';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}putKnowledgeSource(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "sourceId" when calling putKnowledgeSource';if(i==null)throw'Missing the required parameter "body" when calling putKnowledgeSource';return this.apiClient.callApi("/api/v2/knowledge/sources/{sourceId}","PUT",{sourceId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}},ub=class{constructor(e){this.apiClient=e||q.instance}deleteLanguageunderstandingDomain(e,i){if(i=i||{},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"],i.customHeaders)}deleteLanguageunderstandingDomainFeedbackFeedbackId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "domainId" when calling deleteLanguageunderstandingDomainFeedbackFeedbackId';if(i==null||i==="")throw'Missing the required parameter "feedbackId" when calling deleteLanguageunderstandingDomainFeedbackFeedbackId';return this.apiClient.callApi("/api/v2/languageunderstanding/domains/{domainId}/feedback/{feedbackId}","DELETE",{domainId:e,feedbackId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteLanguageunderstandingDomainVersion(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "domainId" when calling deleteLanguageunderstandingDomainVersion';if(i==null||i==="")throw'Missing the required parameter "domainVersionId" when calling deleteLanguageunderstandingDomainVersion';return this.apiClient.callApi("/api/v2/languageunderstanding/domains/{domainId}/versions/{domainVersionId}","DELETE",{domainId:e,domainVersionId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteLanguageunderstandingMiner(e,i){if(i=i||{},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"],i.customHeaders)}deleteLanguageunderstandingMinerDraft(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "minerId" when calling deleteLanguageunderstandingMinerDraft';if(i==null||i==="")throw'Missing the required parameter "draftId" when calling deleteLanguageunderstandingMinerDraft';return this.apiClient.callApi("/api/v2/languageunderstanding/miners/{minerId}/drafts/{draftId}","DELETE",{minerId:e,draftId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getLanguageunderstandingDomain(e,i){if(i=i||{},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"],i.customHeaders)}getLanguageunderstandingDomainFeedback(e,i){if(i=i||{},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:i.intentName,assessment:i.assessment,dateStart:i.dateStart,dateEnd:i.dateEnd,includeDeleted:i.includeDeleted,language:i.language,pageNumber:i.pageNumber,pageSize:i.pageSize,enableCursorPagination:i.enableCursorPagination,includeTrainingUtterances:i.includeTrainingUtterances,after:i.after,fields:this.apiClient.buildCollectionParam(i.fields,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getLanguageunderstandingDomainFeedbackFeedbackId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "domainId" when calling getLanguageunderstandingDomainFeedbackFeedbackId';if(i==null||i==="")throw'Missing the required parameter "feedbackId" when calling getLanguageunderstandingDomainFeedbackFeedbackId';return this.apiClient.callApi("/api/v2/languageunderstanding/domains/{domainId}/feedback/{feedbackId}","GET",{domainId:e,feedbackId:i},{fields:this.apiClient.buildCollectionParam(n.fields,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getLanguageunderstandingDomainVersion(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "domainId" when calling getLanguageunderstandingDomainVersion';if(i==null||i==="")throw'Missing the required parameter "domainVersionId" when calling getLanguageunderstandingDomainVersion';return this.apiClient.callApi("/api/v2/languageunderstanding/domains/{domainId}/versions/{domainVersionId}","GET",{domainId:e,domainVersionId:i},{includeUtterances:n.includeUtterances},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getLanguageunderstandingDomainVersionReport(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "domainId" when calling getLanguageunderstandingDomainVersionReport';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getLanguageunderstandingDomainVersions(e,i){if(i=i||{},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:i.includeUtterances,pageNumber:i.pageNumber,pageSize:i.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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:i.pageSize,pageNumber:i.pageNumber,text:i.text,sortOrder:i.sortOrder,sortBy:i.sortBy},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getLanguageunderstandingIgnoretopic(e,i){if(i=i||{},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:i.pageSize,pageNumber:i.pageNumber,text:i.text,sortOrder:i.sortOrder,sortBy:i.sortBy},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getLanguageunderstandingMiner(e,i){if(i=i||{},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"],i.customHeaders)}getLanguageunderstandingMinerDraft(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "minerId" when calling getLanguageunderstandingMinerDraft';if(i==null||i==="")throw'Missing the required parameter "draftId" when calling getLanguageunderstandingMinerDraft';return this.apiClient.callApi("/api/v2/languageunderstanding/miners/{minerId}/drafts/{draftId}","GET",{minerId:e,draftId:i},{draftIntentId:n.draftIntentId,draftTopicId:n.draftTopicId},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getLanguageunderstandingMinerDrafts(e,i){if(i=i||{},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"],i.customHeaders)}getLanguageunderstandingMinerIntent(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "minerId" when calling getLanguageunderstandingMinerIntent';if(i==null||i==="")throw'Missing the required parameter "intentId" when calling getLanguageunderstandingMinerIntent';return this.apiClient.callApi("/api/v2/languageunderstanding/miners/{minerId}/intents/{intentId}","GET",{minerId:e,intentId:i},{expand:n.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getLanguageunderstandingMinerIntents(e,i){if(i=i||{},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:i.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getLanguageunderstandingMinerTopic(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "minerId" when calling getLanguageunderstandingMinerTopic';if(i==null||i==="")throw'Missing the required parameter "topicId" when calling getLanguageunderstandingMinerTopic';return this.apiClient.callApi("/api/v2/languageunderstanding/miners/{minerId}/topics/{topicId}","GET",{minerId:e,topicId:i},{expand:n.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getLanguageunderstandingMinerTopicPhrase(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "minerId" when calling getLanguageunderstandingMinerTopicPhrase';if(i==null||i==="")throw'Missing the required parameter "topicId" when calling getLanguageunderstandingMinerTopicPhrase';if(n==null||n==="")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:i,phraseId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getLanguageunderstandingMinerTopics(e,i){if(i=i||{},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"],i.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,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "domainId" when calling patchLanguageunderstandingDomain';if(i==null)throw'Missing the required parameter "body" when calling patchLanguageunderstandingDomain';return this.apiClient.callApi("/api/v2/languageunderstanding/domains/{domainId}","PATCH",{domainId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchLanguageunderstandingMinerDraft(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "minerId" when calling patchLanguageunderstandingMinerDraft';if(i==null||i==="")throw'Missing the required parameter "draftId" when calling patchLanguageunderstandingMinerDraft';return this.apiClient.callApi("/api/v2/languageunderstanding/miners/{minerId}/drafts/{draftId}","PATCH",{minerId:e,draftId:i},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postLanguageunderstandingDomainFeedback(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "domainId" when calling postLanguageunderstandingDomainFeedback';if(i==null)throw'Missing the required parameter "body" when calling postLanguageunderstandingDomainFeedback';return this.apiClient.callApi("/api/v2/languageunderstanding/domains/{domainId}/feedback","POST",{domainId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postLanguageunderstandingDomainVersionDetect(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "domainId" when calling postLanguageunderstandingDomainVersionDetect';if(i==null||i==="")throw'Missing the required parameter "domainVersionId" when calling postLanguageunderstandingDomainVersionDetect';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postLanguageunderstandingDomainVersionPublish(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "domainId" when calling postLanguageunderstandingDomainVersionPublish';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postLanguageunderstandingDomainVersionTrain(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "domainId" when calling postLanguageunderstandingDomainVersionTrain';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postLanguageunderstandingDomainVersions(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "domainId" when calling postLanguageunderstandingDomainVersions';if(i==null)throw'Missing the required parameter "body" when calling postLanguageunderstandingDomainVersions';return this.apiClient.callApi("/api/v2/languageunderstanding/domains/{domainId}/versions","POST",{domainId:e},{includeUtterances:n.includeUtterances},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postLanguageunderstandingDomains(e,i){if(i=i||{},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"],i.customHeaders)}postLanguageunderstandingIgnorephrase(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "languageCode" when calling postLanguageunderstandingIgnorephrase';if(i==null)throw'Missing the required parameter "body" when calling postLanguageunderstandingIgnorephrase';return this.apiClient.callApi("/api/v2/languageunderstanding/ignorephrases/{languageCode}","POST",{languageCode:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postLanguageunderstandingIgnorephraseRemove(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "languageCode" when calling postLanguageunderstandingIgnorephraseRemove';if(i==null)throw'Missing the required parameter "body" when calling postLanguageunderstandingIgnorephraseRemove';return this.apiClient.callApi("/api/v2/languageunderstanding/ignorephrases/{languageCode}/remove","POST",{languageCode:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postLanguageunderstandingIgnoretopic(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "languageCode" when calling postLanguageunderstandingIgnoretopic';if(i==null)throw'Missing the required parameter "body" when calling postLanguageunderstandingIgnoretopic';return this.apiClient.callApi("/api/v2/languageunderstanding/ignoretopics/{languageCode}","POST",{languageCode:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postLanguageunderstandingIgnoretopicRemove(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "languageCode" when calling postLanguageunderstandingIgnoretopicRemove';if(i==null)throw'Missing the required parameter "body" when calling postLanguageunderstandingIgnoretopicRemove';return this.apiClient.callApi("/api/v2/languageunderstanding/ignoretopics/{languageCode}/remove","POST",{languageCode:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postLanguageunderstandingMinerDrafts(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "minerId" when calling postLanguageunderstandingMinerDrafts';if(i==null)throw'Missing the required parameter "body" when calling postLanguageunderstandingMinerDrafts';return this.apiClient.callApi("/api/v2/languageunderstanding/miners/{minerId}/drafts","POST",{minerId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postLanguageunderstandingMinerExecute(e,i){if(i=i||{},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},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postLanguageunderstandingMiners(e,i){if(i=i||{},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"],i.customHeaders)}putLanguageunderstandingDomainVersion(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "domainId" when calling putLanguageunderstandingDomainVersion';if(i==null||i==="")throw'Missing the required parameter "domainVersionId" when calling putLanguageunderstandingDomainVersion';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}},cb=class{constructor(e){this.apiClient=e||q.instance}deleteLanguage(e,i){if(i=i||{},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"],i.customHeaders)}getLanguage(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getLanguagesTranslationsOrganization(e,i){if(i=i||{},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"],i.customHeaders)}getLanguagesTranslationsUser(e,i){if(i=i||{},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"],i.customHeaders)}postLanguages(e,i){if(i=i||{},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"],i.customHeaders)}},pb=class{constructor(e){this.apiClient=e||q.instance}deleteLearningAssignment(e,i){if(i=i||{},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"],i.customHeaders)}deleteLearningModule(e,i){if(i=i||{},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"],i.customHeaders)}getLearningAssignment(e,i){if(i=i||{},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(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getLearningAssignmentStep(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "assignmentId" when calling getLearningAssignmentStep';if(i==null||i==="")throw'Missing the required parameter "stepId" when calling getLearningAssignmentStep';return this.apiClient.callApi("/api/v2/learning/assignments/{assignmentId}/steps/{stepId}","GET",{assignmentId:e,stepId:i},{shareableContentObjectId:n.shareableContentObjectId,defaultShareableContentObject:n.defaultShareableContentObject,expand:this.apiClient.buildCollectionParam(n.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.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,i){if(i=i||{},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(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getLearningModuleJob(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "moduleId" when calling getLearningModuleJob';if(i==null||i==="")throw'Missing the required parameter "jobId" when calling getLearningModuleJob';return this.apiClient.callApi("/api/v2/learning/modules/{moduleId}/jobs/{jobId}","GET",{moduleId:e,jobId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getLearningModulePreview(e,i){if(i=i||{},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"],i.customHeaders)}getLearningModuleRule(e,i){if(i=i||{},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"],i.customHeaders)}getLearningModuleVersion(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "moduleId" when calling getLearningModuleVersion';if(i==null||i==="")throw'Missing the required parameter "versionId" when calling getLearningModuleVersion';return this.apiClient.callApi("/api/v2/learning/modules/{moduleId}/versions/{versionId}","GET",{moduleId:e,versionId:i},{expand:this.apiClient.buildCollectionParam(n.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getLearningModules(e){return e=e||{},this.apiClient.callApi("/api/v2/learning/modules","GET",{},{isArchived:e.isArchived,types:this.apiClient.buildCollectionParam(e.types,"multi"),pageSize:e.pageSize,pageNumber:e.pageNumber,sortOrder:e.sortOrder,sortBy:e.sortBy,searchTerm:e.searchTerm,expand:this.apiClient.buildCollectionParam(e.expand,"multi"),isPublished:e.isPublished,statuses:this.apiClient.buildCollectionParam(e.statuses,"multi"),externalIds:this.apiClient.buildCollectionParam(e.externalIds,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getLearningModulesAssignments(e,i){if(i=i||{},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:i.pageSize,pageNumber:i.pageNumber,searchTerm:i.searchTerm,overdue:i.overdue,assignmentStates:this.apiClient.buildCollectionParam(i.assignmentStates,"multi"),expand:this.apiClient.buildCollectionParam(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getLearningModulesCoverartCoverArtId(e,i){if(i=i||{},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"],i.customHeaders)}getLearningScheduleslotsJob(e,i){if(i=i||{},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"],i.customHeaders)}getLearningScormScormId(e,i){if(i=i||{},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"],i.customHeaders)}patchLearningAssignment(e,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "assignmentId" when calling patchLearningAssignment';return this.apiClient.callApi("/api/v2/learning/assignments/{assignmentId}","PATCH",{assignmentId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}patchLearningAssignmentReschedule(e,i){if(i=i||{},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},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}patchLearningAssignmentStep(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "assignmentId" when calling patchLearningAssignmentStep';if(i==null||i==="")throw'Missing the required parameter "stepId" when calling patchLearningAssignmentStep';return this.apiClient.callApi("/api/v2/learning/assignments/{assignmentId}/steps/{stepId}","PATCH",{assignmentId:e,stepId:i},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchLearningModuleUserAssignments(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "moduleId" when calling patchLearningModuleUserAssignments';if(i==null||i==="")throw'Missing the required parameter "userId" when calling patchLearningModuleUserAssignments';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postLearningAssessmentsScoring(e,i){if(i=i||{},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"],i.customHeaders)}postLearningAssignmentReassign(e,i){if(i=i||{},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"],i.customHeaders)}postLearningAssignmentReset(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "moduleId" when calling postLearningModuleJobs';if(i==null)throw'Missing the required parameter "body" when calling postLearningModuleJobs';return this.apiClient.callApi("/api/v2/learning/modules/{moduleId}/jobs","POST",{moduleId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postLearningModulePublish(e,i){if(i=i||{},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},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postLearningModuleRuleMigrate(e,i){if(i=i||{},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"],i.customHeaders)}postLearningModules(e,i){if(i=i||{},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"],i.customHeaders)}postLearningRulesQuery(e,i,n,a){if(a=a||{},e==null)throw'Missing the required parameter "pageSize" when calling postLearningRulesQuery';if(i==null)throw'Missing the required parameter "pageNumber" when calling postLearningRulesQuery';if(n==null)throw'Missing the required parameter "body" when calling postLearningRulesQuery';return this.apiClient.callApi("/api/v2/learning/rules/query","POST",{},{pageSize:e,pageNumber:i},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postLearningScheduleslotsJobs(e,i){if(i=i||{},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"],i.customHeaders)}postLearningScheduleslotsQuery(e,i){if(i=i||{},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"],i.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,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "moduleId" when calling putLearningModule';if(i==null)throw'Missing the required parameter "body" when calling putLearningModule';return this.apiClient.callApi("/api/v2/learning/modules/{moduleId}","PUT",{moduleId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putLearningModulePreview(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "moduleId" when calling putLearningModulePreview';if(i==null)throw'Missing the required parameter "body" when calling putLearningModulePreview';return this.apiClient.callApi("/api/v2/learning/modules/{moduleId}/preview","PUT",{moduleId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putLearningModuleRule(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "moduleId" when calling putLearningModuleRule';if(i==null)throw'Missing the required parameter "body" when calling putLearningModuleRule';return this.apiClient.callApi("/api/v2/learning/modules/{moduleId}/rule","PUT",{moduleId:e},{assign:n.assign},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}},db=class{constructor(e){this.apiClient=e||q.instance}getLicenseDefinition(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getLicenseUser(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}postLicenseUsers(e){return e=e||{},this.apiClient.callApi("/api/v2/license/users","POST",{},{},{},{},e.body,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}},hb=class{constructor(e){this.apiClient=e||q.instance}deleteLocation(e,i){if(i=i||{},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"],i.customHeaders)}getLocation(e,i){if(i=i||{},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(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getLocationSublocations(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}patchLocation(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "locationId" when calling patchLocation';if(i==null)throw'Missing the required parameter "body" when calling patchLocation';return this.apiClient.callApi("/api/v2/locations/{locationId}","PATCH",{locationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postLocations(e,i){if(i=i||{},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"],i.customHeaders)}postLocationsSearch(e,i){if(i=i||{},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"],i.customHeaders)}},gb=class{constructor(e){this.apiClient=e||q.instance}deleteDiagnosticsLogcaptureBrowserUser(e,i){if(i=i||{},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"],i.customHeaders)}getDiagnosticsLogcaptureBrowserEntriesDownloadJob(e,i){if(i=i||{},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"],i.customHeaders)}getDiagnosticsLogcaptureBrowserUser(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}},mb=class{constructor(e){this.apiClient=e||q.instance}deleteMessagingSetting(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getMessagingSetting(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}patchMessagingSetting(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "messageSettingId" when calling patchMessagingSetting';if(i==null)throw'Missing the required parameter "body" when calling patchMessagingSetting';return this.apiClient.callApi("/api/v2/messaging/settings/{messageSettingId}","PATCH",{messageSettingId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchMessagingSupportedcontentSupportedContentId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "supportedContentId" when calling patchMessagingSupportedcontentSupportedContentId';if(i==null)throw'Missing the required parameter "body" when calling patchMessagingSupportedcontentSupportedContentId';return this.apiClient.callApi("/api/v2/messaging/supportedcontent/{supportedContentId}","PATCH",{supportedContentId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postMessagingSettings(e,i){if(i=i||{},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"],i.customHeaders)}postMessagingSupportedcontent(e,i){if(i=i||{},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"],i.customHeaders)}putMessagingSettingsDefault(e,i){if(i=i||{},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"],i.customHeaders)}},fb=class{constructor(e){this.apiClient=e||q.instance}deleteMobiledevice(e,i){if(i=i||{},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"],i.customHeaders)}getMobiledevice(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}putMobiledevice(e,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "deviceId" when calling putMobiledevice';return this.apiClient.callApi("/api/v2/mobiledevices/{deviceId}","PUT",{deviceId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}},wb=class{constructor(e){this.apiClient=e||q.instance}deleteNotificationsChannelSubscriptions(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}postNotificationsChannelSubscriptions(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "channelId" when calling postNotificationsChannelSubscriptions';if(i==null)throw'Missing the required parameter "body" when calling postNotificationsChannelSubscriptions';return this.apiClient.callApi("/api/v2/notifications/channels/{channelId}/subscriptions","POST",{channelId:e},{ignoreErrors:n.ignoreErrors},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.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,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "channelId" when calling putNotificationsChannelSubscriptions';if(i==null)throw'Missing the required parameter "body" when calling putNotificationsChannelSubscriptions';return this.apiClient.callApi("/api/v2/notifications/channels/{channelId}/subscriptions","PUT",{channelId:e},{ignoreErrors:n.ignoreErrors},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}},vb=class{constructor(e){this.apiClient=e||q.instance}deleteOauthClient(e,i){if(i=i||{},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"],i.customHeaders)}getOauthAuthorization(e,i){if(i=i||{},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":i.acceptLanguage},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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"],i.customHeaders)}getOauthClientUsageQueryResult(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "executionId" when calling getOauthClientUsageQueryResult';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getOauthClientUsageSummary(e,i){if(i=i||{},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:i.days},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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":i.acceptLanguage},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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"],i.customHeaders)}postOauthClientUsageQuery(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "clientId" when calling postOauthClientUsageQuery';if(i==null)throw'Missing the required parameter "body" when calling postOauthClientUsageQuery';return this.apiClient.callApi("/api/v2/oauth/clients/{clientId}/usage/query","POST",{clientId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postOauthClients(e,i){if(i=i||{},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"],i.customHeaders)}putOauthClient(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "clientId" when calling putOauthClient';if(i==null)throw'Missing the required parameter "body" when calling putOauthClient';return this.apiClient.callApi("/api/v2/oauth/clients/{clientId}","PUT",{clientId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}},Cb=class{constructor(e){this.apiClient=e||q.instance}deleteAuthorizationDivision(e,i){if(i=i||{},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:i.force},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getAuthorizationDivision(e,i){if(i=i||{},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:i.objectCount},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "divisionId" when calling postAuthorizationDivisionObject';if(i==null||i==="")throw'Missing the required parameter "objectType" when calling postAuthorizationDivisionObject';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postAuthorizationDivisionRestore(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "divisionId" when calling postAuthorizationDivisionRestore';if(i==null)throw'Missing the required parameter "body" when calling postAuthorizationDivisionRestore';return this.apiClient.callApi("/api/v2/authorization/divisions/{divisionId}/restore","POST",{divisionId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postAuthorizationDivisions(e,i){if(i=i||{},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"],i.customHeaders)}putAuthorizationDivision(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "divisionId" when calling putAuthorizationDivision';if(i==null)throw'Missing the required parameter "body" when calling putAuthorizationDivision';return this.apiClient.callApi("/api/v2/authorization/divisions/{divisionId}","PUT",{divisionId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}},Ab=class{constructor(e){this.apiClient=e||q.instance}getUsageEventsDefinition(e,i){if(i=i||{},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"],i.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)}},bb=class{constructor(e){this.apiClient=e||q.instance}getFieldconfig(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getOrganizationsLimitsNamespaceDefaults(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}patchOrganizationsFeature(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "featureName" when calling patchOrganizationsFeature';if(i==null)throw'Missing the required parameter "enabled" when calling patchOrganizationsFeature';return this.apiClient.callApi("/api/v2/organizations/features/{featureName}","PATCH",{featureName:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putOrganizationsEmbeddedintegration(e,i){if(i=i||{},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"],i.customHeaders)}putOrganizationsIpaddressauthentication(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}},yb=class{constructor(e){this.apiClient=e||q.instance}deleteOrgauthorizationTrustee(e,i){if(i=i||{},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"],i.customHeaders)}deleteOrgauthorizationTrusteeCloneduser(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "trusteeOrgId" when calling deleteOrgauthorizationTrusteeCloneduser';if(i==null||i==="")throw'Missing the required parameter "trusteeUserId" when calling deleteOrgauthorizationTrusteeCloneduser';return this.apiClient.callApi("/api/v2/orgauthorization/trustees/{trusteeOrgId}/clonedusers/{trusteeUserId}","DELETE",{trusteeOrgId:e,trusteeUserId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteOrgauthorizationTrusteeGroup(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "trusteeOrgId" when calling deleteOrgauthorizationTrusteeGroup';if(i==null||i==="")throw'Missing the required parameter "trusteeGroupId" when calling deleteOrgauthorizationTrusteeGroup';return this.apiClient.callApi("/api/v2/orgauthorization/trustees/{trusteeOrgId}/groups/{trusteeGroupId}","DELETE",{trusteeOrgId:e,trusteeGroupId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteOrgauthorizationTrusteeGroupRoles(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "trusteeOrgId" when calling deleteOrgauthorizationTrusteeGroupRoles';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteOrgauthorizationTrusteeUser(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "trusteeOrgId" when calling deleteOrgauthorizationTrusteeUser';if(i==null||i==="")throw'Missing the required parameter "trusteeUserId" when calling deleteOrgauthorizationTrusteeUser';return this.apiClient.callApi("/api/v2/orgauthorization/trustees/{trusteeOrgId}/users/{trusteeUserId}","DELETE",{trusteeOrgId:e,trusteeUserId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteOrgauthorizationTrusteeUserRoles(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "trusteeOrgId" when calling deleteOrgauthorizationTrusteeUserRoles';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteOrgauthorizationTrustees(e,i){if(i=i||{},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"],i.customHeaders)}deleteOrgauthorizationTrustor(e,i){if(i=i||{},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"],i.customHeaders)}deleteOrgauthorizationTrustorCloneduser(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "trustorOrgId" when calling deleteOrgauthorizationTrustorCloneduser';if(i==null||i==="")throw'Missing the required parameter "trusteeUserId" when calling deleteOrgauthorizationTrustorCloneduser';return this.apiClient.callApi("/api/v2/orgauthorization/trustors/{trustorOrgId}/clonedusers/{trusteeUserId}","DELETE",{trustorOrgId:e,trusteeUserId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteOrgauthorizationTrustorGroup(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "trustorOrgId" when calling deleteOrgauthorizationTrustorGroup';if(i==null||i==="")throw'Missing the required parameter "trustorGroupId" when calling deleteOrgauthorizationTrustorGroup';return this.apiClient.callApi("/api/v2/orgauthorization/trustors/{trustorOrgId}/groups/{trustorGroupId}","DELETE",{trustorOrgId:e,trustorGroupId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteOrgauthorizationTrustorUser(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "trustorOrgId" when calling deleteOrgauthorizationTrustorUser';if(i==null||i==="")throw'Missing the required parameter "trusteeUserId" when calling deleteOrgauthorizationTrustorUser';return this.apiClient.callApi("/api/v2/orgauthorization/trustors/{trustorOrgId}/users/{trusteeUserId}","DELETE",{trustorOrgId:e,trusteeUserId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteOrgauthorizationTrustors(e,i){if(i=i||{},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"],i.customHeaders)}getOrgauthorizationPairing(e,i){if(i=i||{},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"],i.customHeaders)}getOrgauthorizationTrustee(e,i){if(i=i||{},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"],i.customHeaders)}getOrgauthorizationTrusteeClonedusers(e,i){if(i=i||{},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"],i.customHeaders)}getOrgauthorizationTrusteeGroup(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "trusteeOrgId" when calling getOrgauthorizationTrusteeGroup';if(i==null||i==="")throw'Missing the required parameter "trusteeGroupId" when calling getOrgauthorizationTrusteeGroup';return this.apiClient.callApi("/api/v2/orgauthorization/trustees/{trusteeOrgId}/groups/{trusteeGroupId}","GET",{trusteeOrgId:e,trusteeGroupId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getOrgauthorizationTrusteeGroupRoles(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "trusteeOrgId" when calling getOrgauthorizationTrusteeGroupRoles';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getOrgauthorizationTrusteeGroups(e,i){if(i=i||{},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:i.pageSize,pageNumber:i.pageNumber},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getOrgauthorizationTrusteeUser(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "trusteeOrgId" when calling getOrgauthorizationTrusteeUser';if(i==null||i==="")throw'Missing the required parameter "trusteeUserId" when calling getOrgauthorizationTrusteeUser';return this.apiClient.callApi("/api/v2/orgauthorization/trustees/{trusteeOrgId}/users/{trusteeUserId}","GET",{trusteeOrgId:e,trusteeUserId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getOrgauthorizationTrusteeUserRoles(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "trusteeOrgId" when calling getOrgauthorizationTrusteeUserRoles';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getOrgauthorizationTrusteeUsers(e,i){if(i=i||{},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:i.pageSize,pageNumber:i.pageNumber},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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"],i.customHeaders)}getOrgauthorizationTrustorCloneduser(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "trustorOrgId" when calling getOrgauthorizationTrustorCloneduser';if(i==null||i==="")throw'Missing the required parameter "trusteeUserId" when calling getOrgauthorizationTrustorCloneduser';return this.apiClient.callApi("/api/v2/orgauthorization/trustors/{trustorOrgId}/clonedusers/{trusteeUserId}","GET",{trustorOrgId:e,trusteeUserId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getOrgauthorizationTrustorClonedusers(e,i){if(i=i||{},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"],i.customHeaders)}getOrgauthorizationTrustorGroup(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "trustorOrgId" when calling getOrgauthorizationTrustorGroup';if(i==null||i==="")throw'Missing the required parameter "trustorGroupId" when calling getOrgauthorizationTrustorGroup';return this.apiClient.callApi("/api/v2/orgauthorization/trustors/{trustorOrgId}/groups/{trustorGroupId}","GET",{trustorOrgId:e,trustorGroupId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getOrgauthorizationTrustorGroups(e,i){if(i=i||{},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:i.pageSize,pageNumber:i.pageNumber},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getOrgauthorizationTrustorUser(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "trustorOrgId" when calling getOrgauthorizationTrustorUser';if(i==null||i==="")throw'Missing the required parameter "trusteeUserId" when calling getOrgauthorizationTrustorUser';return this.apiClient.callApi("/api/v2/orgauthorization/trustors/{trustorOrgId}/users/{trusteeUserId}","GET",{trustorOrgId:e,trusteeUserId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getOrgauthorizationTrustorUsers(e,i){if(i=i||{},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:i.pageSize,pageNumber:i.pageNumber},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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"],i.customHeaders)}postOrgauthorizationTrusteeGroups(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "trusteeOrgId" when calling postOrgauthorizationTrusteeGroups';if(i==null)throw'Missing the required parameter "body" when calling postOrgauthorizationTrusteeGroups';return this.apiClient.callApi("/api/v2/orgauthorization/trustees/{trusteeOrgId}/groups","POST",{trusteeOrgId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postOrgauthorizationTrusteeUsers(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "trusteeOrgId" when calling postOrgauthorizationTrusteeUsers';if(i==null)throw'Missing the required parameter "body" when calling postOrgauthorizationTrusteeUsers';return this.apiClient.callApi("/api/v2/orgauthorization/trustees/{trusteeOrgId}/users","POST",{trusteeOrgId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postOrgauthorizationTrustees(e,i){if(i=i||{},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"],i.customHeaders)}postOrgauthorizationTrusteesAudits(e,i){if(i=i||{},e==null)throw'Missing the required parameter "body" when calling postOrgauthorizationTrusteesAudits';return this.apiClient.callApi("/api/v2/orgauthorization/trustees/audits","POST",{},{pageSize:i.pageSize,pageNumber:i.pageNumber,sortBy:i.sortBy,sortOrder:i.sortOrder},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},e==null)throw'Missing the required parameter "body" when calling postOrgauthorizationTrustorAudits';return this.apiClient.callApi("/api/v2/orgauthorization/trustor/audits","POST",{},{pageSize:i.pageSize,pageNumber:i.pageNumber,sortBy:i.sortBy,sortOrder:i.sortOrder},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}putOrgauthorizationTrustee(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "trusteeOrgId" when calling putOrgauthorizationTrustee';if(i==null)throw'Missing the required parameter "body" when calling putOrgauthorizationTrustee';return this.apiClient.callApi("/api/v2/orgauthorization/trustees/{trusteeOrgId}","PUT",{trusteeOrgId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putOrgauthorizationTrusteeGroupRoledivisions(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "trusteeOrgId" when calling putOrgauthorizationTrusteeGroupRoledivisions';if(i==null||i==="")throw'Missing the required parameter "trusteeGroupId" when calling putOrgauthorizationTrusteeGroupRoledivisions';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}putOrgauthorizationTrusteeGroupRoles(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "trusteeOrgId" when calling putOrgauthorizationTrusteeGroupRoles';if(i==null||i==="")throw'Missing the required parameter "trusteeGroupId" when calling putOrgauthorizationTrusteeGroupRoles';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}putOrgauthorizationTrusteeUserRoledivisions(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "trusteeOrgId" when calling putOrgauthorizationTrusteeUserRoledivisions';if(i==null||i==="")throw'Missing the required parameter "trusteeUserId" when calling putOrgauthorizationTrusteeUserRoledivisions';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}putOrgauthorizationTrusteeUserRoles(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "trusteeOrgId" when calling putOrgauthorizationTrusteeUserRoles';if(i==null||i==="")throw'Missing the required parameter "trusteeUserId" when calling putOrgauthorizationTrusteeUserRoles';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}putOrgauthorizationTrustorCloneduser(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "trustorOrgId" when calling putOrgauthorizationTrustorCloneduser';if(i==null||i==="")throw'Missing the required parameter "trusteeUserId" when calling putOrgauthorizationTrustorCloneduser';return this.apiClient.callApi("/api/v2/orgauthorization/trustors/{trustorOrgId}/clonedusers/{trusteeUserId}","PUT",{trustorOrgId:e,trusteeUserId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putOrgauthorizationTrustorGroup(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "trustorOrgId" when calling putOrgauthorizationTrustorGroup';if(i==null||i==="")throw'Missing the required parameter "trustorGroupId" when calling putOrgauthorizationTrustorGroup';return this.apiClient.callApi("/api/v2/orgauthorization/trustors/{trustorOrgId}/groups/{trustorGroupId}","PUT",{trustorOrgId:e,trustorGroupId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putOrgauthorizationTrustorUser(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "trustorOrgId" when calling putOrgauthorizationTrustorUser';if(i==null||i==="")throw'Missing the required parameter "trusteeUserId" when calling putOrgauthorizationTrustorUser';return this.apiClient.callApi("/api/v2/orgauthorization/trustors/{trustorOrgId}/users/{trusteeUserId}","PUT",{trustorOrgId:e,trusteeUserId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}},Pb=class{constructor(e){this.apiClient=e||q.instance}deleteOutboundAttemptlimit(e,i){if(i=i||{},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"],i.customHeaders)}deleteOutboundCallabletimeset(e,i){if(i=i||{},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"],i.customHeaders)}deleteOutboundCallanalysisresponseset(e,i){if(i=i||{},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"],i.customHeaders)}deleteOutboundCampaign(e,i){if(i=i||{},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"],i.customHeaders)}deleteOutboundCampaignProgress(e,i){if(i=i||{},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"],i.customHeaders)}deleteOutboundCampaignrule(e,i){if(i=i||{},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"],i.customHeaders)}deleteOutboundContactlist(e,i){if(i=i||{},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"],i.customHeaders)}deleteOutboundContactlistContact(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "contactListId" when calling deleteOutboundContactlistContact';if(i==null||i==="")throw'Missing the required parameter "contactId" when calling deleteOutboundContactlistContact';return this.apiClient.callApi("/api/v2/outbound/contactlists/{contactListId}/contacts/{contactId}","DELETE",{contactListId:e,contactId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteOutboundContactlistContacts(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "contactListId" when calling deleteOutboundContactlistContacts';if(i==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(i,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteOutboundContactlistfilter(e,i){if(i=i||{},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"],i.customHeaders)}deleteOutboundContactlists(e,i){if(i=i||{},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"],i.customHeaders)}deleteOutboundContactlisttemplate(e,i){if(i=i||{},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"],i.customHeaders)}deleteOutboundContactlisttemplates(e,i){if(i=i||{},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"],i.customHeaders)}deleteOutboundDigitalruleset(e,i){if(i=i||{},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"],i.customHeaders)}deleteOutboundDnclist(e,i){if(i=i||{},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"],i.customHeaders)}deleteOutboundDnclistCustomexclusioncolumns(e,i){if(i=i||{},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:i.expiredOnly},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}deleteOutboundDnclistEmailaddresses(e,i){if(i=i||{},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:i.expiredOnly},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}deleteOutboundDnclistPhonenumbers(e,i){if(i=i||{},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:i.expiredOnly},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}deleteOutboundDnclistWhatsappnumbers(e,i){if(i=i||{},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:i.expiredOnly},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}deleteOutboundFilespecificationtemplate(e,i){if(i=i||{},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"],i.customHeaders)}deleteOutboundFilespecificationtemplatesBulk(e,i){if(i=i||{},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"],i.customHeaders)}deleteOutboundImporttemplate(e,i){if(i=i||{},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"],i.customHeaders)}deleteOutboundImporttemplates(e,i){if(i=i||{},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"],i.customHeaders)}deleteOutboundMessagingcampaign(e,i){if(i=i||{},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"],i.customHeaders)}deleteOutboundMessagingcampaignProgress(e,i){if(i=i||{},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"],i.customHeaders)}deleteOutboundRuleset(e,i){if(i=i||{},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"],i.customHeaders)}deleteOutboundSchedulesCampaign(e,i){if(i=i||{},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"],i.customHeaders)}deleteOutboundSchedulesEmailcampaign(e,i){if(i=i||{},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"],i.customHeaders)}deleteOutboundSchedulesMessagingcampaign(e,i){if(i=i||{},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"],i.customHeaders)}deleteOutboundSchedulesSequence(e,i){if(i=i||{},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"],i.customHeaders)}deleteOutboundSchedulesWhatsappcampaign(e,i){if(i=i||{},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"],i.customHeaders)}deleteOutboundSequence(e,i){if(i=i||{},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"],i.customHeaders)}getOutboundAttemptlimit(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getOutboundCampaignAgentownedmappingpreviewResults(e,i){if(i=i||{},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"],i.customHeaders)}getOutboundCampaignDiagnostics(e,i){if(i=i||{},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"],i.customHeaders)}getOutboundCampaignInteractions(e,i){if(i=i||{},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"],i.customHeaders)}getOutboundCampaignLinedistribution(e,i){if(i=i||{},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:i.includeOnlyActiveCampaigns,edgeGroupId:i.edgeGroupId,siteId:i.siteId,useWeight:i.useWeight,relativeWeight:i.relativeWeight,outboundLineCount:i.outboundLineCount},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getOutboundCampaignProgress(e,i){if(i=i||{},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"],i.customHeaders)}getOutboundCampaignSkillcombinations(e,i){if(i=i||{},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:i.pageNumber,pageSize:i.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getOutboundCampaignStats(e,i){if(i=i||{},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"],i.customHeaders)}getOutboundCampaignrule(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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:i.includeImportStatus,includeSize:i.includeSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getOutboundContactlistContact(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "contactListId" when calling getOutboundContactlistContact';if(i==null||i==="")throw'Missing the required parameter "contactId" when calling getOutboundContactlistContact';return this.apiClient.callApi("/api/v2/outbound/contactlists/{contactListId}/contacts/{contactId}","GET",{contactListId:e,contactId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getOutboundContactlistContactsBulkJob(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "contactListId" when calling getOutboundContactlistContactsBulkJob';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getOutboundContactlistContactsBulkJobs(e,i){if(i=i||{},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"],i.customHeaders)}getOutboundContactlistExport(e,i){if(i=i||{},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:i.download},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getOutboundContactlistImportstatus(e,i){if(i=i||{},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"],i.customHeaders)}getOutboundContactlistTimezonemappingpreview(e,i){if(i=i||{},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"],i.customHeaders)}getOutboundContactlistfilter(e,i){if(i=i||{},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"],i.customHeaders)}getOutboundContactlistfilters(e){return e=e||{},this.apiClient.callApi("/api/v2/outbound/contactlistfilters","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,allowEmptyResult:e.allowEmptyResult,filterType:e.filterType,name:e.name,sortBy:e.sortBy,sortOrder:e.sortOrder,contactListId:e.contactListId},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getOutboundContactlists(e){return e=e||{},this.apiClient.callApi("/api/v2/outbound/contactlists","GET",{},{includeImportStatus:e.includeImportStatus,includeSize:e.includeSize,pageSize:e.pageSize,pageNumber:e.pageNumber,allowEmptyResult:e.allowEmptyResult,filterType:e.filterType,name:e.name,id:this.apiClient.buildCollectionParam(e.id,"multi"),divisionId:this.apiClient.buildCollectionParam(e.divisionId,"multi"),sortBy:e.sortBy,sortOrder:e.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getOutboundContactlistsDivisionview(e,i){if(i=i||{},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:i.includeImportStatus,includeSize:i.includeSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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"],i.customHeaders)}getOutboundContactlisttemplates(e){return e=e||{},this.apiClient.callApi("/api/v2/outbound/contactlisttemplates","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,allowEmptyResult:e.allowEmptyResult,filterType:e.filterType,name:e.name,sortBy:e.sortBy,sortOrder:e.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getOutboundDiagnosticsCampaignSummary(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "campaignId" when calling getOutboundDiagnosticsCampaignSummary';if(i==null)throw'Missing the required parameter "start" when calling getOutboundDiagnosticsCampaignSummary';if(n==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:i,end:n},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getOutboundDigitalruleset(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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:i.includeImportStatus,includeSize:i.includeSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getOutboundDnclistExport(e,i){if(i=i||{},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:i.download},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getOutboundDnclistImportstatus(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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:i.includeImportStatus,includeSize:i.includeSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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:i.includeImportStatus},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getOutboundImporttemplateImportstatus(e,i){if(i=i||{},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:i.listNamePrefix},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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"],i.customHeaders)}getOutboundMessagingcampaignDiagnostics(e,i){if(i=i||{},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"],i.customHeaders)}getOutboundMessagingcampaignProgress(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "campaignId" when calling patchOutboundCampaign';if(i==null)throw'Missing the required parameter "body" when calling patchOutboundCampaign';return this.apiClient.callApi("/api/v2/outbound/campaigns/{campaignId}","PATCH",{campaignId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchOutboundDnclistCustomexclusioncolumns(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "dncListId" when calling patchOutboundDnclistCustomexclusioncolumns';if(i==null)throw'Missing the required parameter "body" when calling patchOutboundDnclistCustomexclusioncolumns';return this.apiClient.callApi("/api/v2/outbound/dnclists/{dncListId}/customexclusioncolumns","PATCH",{dncListId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchOutboundDnclistEmailaddresses(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "dncListId" when calling patchOutboundDnclistEmailaddresses';if(i==null)throw'Missing the required parameter "body" when calling patchOutboundDnclistEmailaddresses';return this.apiClient.callApi("/api/v2/outbound/dnclists/{dncListId}/emailaddresses","PATCH",{dncListId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchOutboundDnclistPhonenumbers(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "dncListId" when calling patchOutboundDnclistPhonenumbers';if(i==null)throw'Missing the required parameter "body" when calling patchOutboundDnclistPhonenumbers';return this.apiClient.callApi("/api/v2/outbound/dnclists/{dncListId}/phonenumbers","PATCH",{dncListId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchOutboundDnclistWhatsappnumbers(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "dncListId" when calling patchOutboundDnclistWhatsappnumbers';if(i==null)throw'Missing the required parameter "body" when calling patchOutboundDnclistWhatsappnumbers';return this.apiClient.callApi("/api/v2/outbound/dnclists/{dncListId}/whatsappnumbers","PATCH",{dncListId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchOutboundSettings(e,i){if(i=i||{},e==null)throw'Missing the required parameter "body" when calling patchOutboundSettings';return this.apiClient.callApi("/api/v2/outbound/settings","PATCH",{},{useMaxCallsPerAgentDecimal:i.useMaxCallsPerAgentDecimal},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postOutboundAttemptlimits(e,i){if(i=i||{},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"],i.customHeaders)}postOutboundCallabletimesets(e,i){if(i=i||{},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"],i.customHeaders)}postOutboundCallanalysisresponsesets(e,i){if(i=i||{},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"],i.customHeaders)}postOutboundCampaignAgentownedmappingpreview(e,i){if(i=i||{},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"],i.customHeaders)}postOutboundCampaignCallbackSchedule(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "campaignId" when calling postOutboundCampaignCallbackSchedule';if(i==null)throw'Missing the required parameter "body" when calling postOutboundCampaignCallbackSchedule';return this.apiClient.callApi("/api/v2/outbound/campaigns/{campaignId}/callback/schedule","POST",{campaignId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postOutboundCampaignStart(e,i){if(i=i||{},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"],i.customHeaders)}postOutboundCampaignStop(e,i){if(i=i||{},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"],i.customHeaders)}postOutboundCampaignrules(e,i){if(i=i||{},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"],i.customHeaders)}postOutboundCampaigns(e,i){if(i=i||{},e==null)throw'Missing the required parameter "body" when calling postOutboundCampaigns';return this.apiClient.callApi("/api/v2/outbound/campaigns","POST",{},{useMaxCallsPerAgentDecimal:i.useMaxCallsPerAgentDecimal},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postOutboundCampaignsPerformanceQuery(e,i){if(i=i||{},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"],i.customHeaders)}postOutboundCampaignsProgress(e,i){if(i=i||{},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"],i.customHeaders)}postOutboundContactlistClear(e,i){if(i=i||{},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"],i.customHeaders)}postOutboundContactlistContacts(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "contactListId" when calling postOutboundContactlistContacts';if(i==null)throw'Missing the required parameter "body" when calling postOutboundContactlistContacts';return this.apiClient.callApi("/api/v2/outbound/contactlists/{contactListId}/contacts","POST",{contactListId:e},{priority:n.priority,clearSystemData:n.clearSystemData,doNotQueue:n.doNotQueue},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postOutboundContactlistContactsBulk(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "contactListId" when calling postOutboundContactlistContactsBulk';if(i==null)throw'Missing the required parameter "body" when calling postOutboundContactlistContactsBulk';return this.apiClient.callApi("/api/v2/outbound/contactlists/{contactListId}/contacts/bulk","POST",{contactListId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postOutboundContactlistContactsBulkRemove(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "contactListId" when calling postOutboundContactlistContactsBulkRemove';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postOutboundContactlistContactsBulkUpdate(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "contactListId" when calling postOutboundContactlistContactsBulkUpdate';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postOutboundContactlistContactsSearch(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "contactListId" when calling postOutboundContactlistContactsSearch';if(i==null)throw'Missing the required parameter "body" when calling postOutboundContactlistContactsSearch';return this.apiClient.callApi("/api/v2/outbound/contactlists/{contactListId}/contacts/search","POST",{contactListId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postOutboundContactlistExport(e,i){if(i=i||{},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},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postOutboundContactlistfilters(e,i){if(i=i||{},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"],i.customHeaders)}postOutboundContactlistfiltersBulkRetrieve(e,i){if(i=i||{},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"],i.customHeaders)}postOutboundContactlistfiltersPreview(e,i){if(i=i||{},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"],i.customHeaders)}postOutboundContactlists(e,i){if(i=i||{},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"],i.customHeaders)}postOutboundContactlistsUploads(e,i){if(i=i||{},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"],i.customHeaders)}postOutboundContactlisttemplates(e,i){if(i=i||{},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"],i.customHeaders)}postOutboundContactlisttemplatesBulkAdd(e,i){if(i=i||{},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"],i.customHeaders)}postOutboundContactlisttemplatesBulkRetrieve(e,i){if(i=i||{},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"],i.customHeaders)}postOutboundConversationDnc(e,i){if(i=i||{},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"],i.customHeaders)}postOutboundDigitalrulesets(e,i){if(i=i||{},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"],i.customHeaders)}postOutboundDnclistEmailaddresses(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "dncListId" when calling postOutboundDnclistEmailaddresses';if(i==null)throw'Missing the required parameter "body" when calling postOutboundDnclistEmailaddresses';return this.apiClient.callApi("/api/v2/outbound/dnclists/{dncListId}/emailaddresses","POST",{dncListId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postOutboundDnclistExport(e,i){if(i=i||{},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"],i.customHeaders)}postOutboundDnclistPhonenumbers(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "dncListId" when calling postOutboundDnclistPhonenumbers';if(i==null)throw'Missing the required parameter "body" when calling postOutboundDnclistPhonenumbers';return this.apiClient.callApi("/api/v2/outbound/dnclists/{dncListId}/phonenumbers","POST",{dncListId:e},{expirationDateTime:n.expirationDateTime},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postOutboundDnclists(e,i){if(i=i||{},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"],i.customHeaders)}postOutboundDnclistsUploads(e,i){if(i=i||{},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"],i.customHeaders)}postOutboundFilespecificationtemplates(e,i){if(i=i||{},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"],i.customHeaders)}postOutboundImporttemplates(e,i){if(i=i||{},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"],i.customHeaders)}postOutboundImporttemplatesBulkAdd(e,i){if(i=i||{},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"],i.customHeaders)}postOutboundMessagingcampaignStart(e,i){if(i=i||{},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"],i.customHeaders)}postOutboundMessagingcampaignStop(e,i){if(i=i||{},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"],i.customHeaders)}postOutboundMessagingcampaigns(e,i){if(i=i||{},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"],i.customHeaders)}postOutboundMessagingcampaignsProgress(e,i){if(i=i||{},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"],i.customHeaders)}postOutboundRulesets(e,i){if(i=i||{},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"],i.customHeaders)}postOutboundSequences(e,i){if(i=i||{},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"],i.customHeaders)}putOutboundAttemptlimit(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "attemptLimitsId" when calling putOutboundAttemptlimit';if(i==null)throw'Missing the required parameter "body" when calling putOutboundAttemptlimit';return this.apiClient.callApi("/api/v2/outbound/attemptlimits/{attemptLimitsId}","PUT",{attemptLimitsId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putOutboundCallabletimeset(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "callableTimeSetId" when calling putOutboundCallabletimeset';if(i==null)throw'Missing the required parameter "body" when calling putOutboundCallabletimeset';return this.apiClient.callApi("/api/v2/outbound/callabletimesets/{callableTimeSetId}","PUT",{callableTimeSetId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putOutboundCallanalysisresponseset(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "callAnalysisSetId" when calling putOutboundCallanalysisresponseset';if(i==null)throw'Missing the required parameter "body" when calling putOutboundCallanalysisresponseset';return this.apiClient.callApi("/api/v2/outbound/callanalysisresponsesets/{callAnalysisSetId}","PUT",{callAnalysisSetId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putOutboundCampaign(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "campaignId" when calling putOutboundCampaign';if(i==null)throw'Missing the required parameter "body" when calling putOutboundCampaign';return this.apiClient.callApi("/api/v2/outbound/campaigns/{campaignId}","PUT",{campaignId:e},{useMaxCallsPerAgentDecimal:n.useMaxCallsPerAgentDecimal},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putOutboundCampaignAgent(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "campaignId" when calling putOutboundCampaignAgent';if(i==null||i==="")throw'Missing the required parameter "userId" when calling putOutboundCampaignAgent';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}putOutboundCampaignrule(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "campaignRuleId" when calling putOutboundCampaignrule';if(i==null)throw'Missing the required parameter "body" when calling putOutboundCampaignrule';return this.apiClient.callApi("/api/v2/outbound/campaignrules/{campaignRuleId}","PUT",{campaignRuleId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putOutboundContactlist(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "contactListId" when calling putOutboundContactlist';if(i==null)throw'Missing the required parameter "body" when calling putOutboundContactlist';return this.apiClient.callApi("/api/v2/outbound/contactlists/{contactListId}","PUT",{contactListId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putOutboundContactlistContact(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "contactListId" when calling putOutboundContactlistContact';if(i==null||i==="")throw'Missing the required parameter "contactId" when calling putOutboundContactlistContact';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}putOutboundContactlistfilter(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "contactListFilterId" when calling putOutboundContactlistfilter';if(i==null)throw'Missing the required parameter "body" when calling putOutboundContactlistfilter';return this.apiClient.callApi("/api/v2/outbound/contactlistfilters/{contactListFilterId}","PUT",{contactListFilterId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putOutboundContactlisttemplate(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "contactListTemplateId" when calling putOutboundContactlisttemplate';if(i==null)throw'Missing the required parameter "body" when calling putOutboundContactlisttemplate';return this.apiClient.callApi("/api/v2/outbound/contactlisttemplates/{contactListTemplateId}","PUT",{contactListTemplateId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putOutboundDigitalruleset(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "digitalRuleSetId" when calling putOutboundDigitalruleset';if(i==null)throw'Missing the required parameter "body" when calling putOutboundDigitalruleset';return this.apiClient.callApi("/api/v2/outbound/digitalrulesets/{digitalRuleSetId}","PUT",{digitalRuleSetId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putOutboundDnclist(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "dncListId" when calling putOutboundDnclist';if(i==null)throw'Missing the required parameter "body" when calling putOutboundDnclist';return this.apiClient.callApi("/api/v2/outbound/dnclists/{dncListId}","PUT",{dncListId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putOutboundFilespecificationtemplate(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "fileSpecificationTemplateId" when calling putOutboundFilespecificationtemplate';if(i==null)throw'Missing the required parameter "body" when calling putOutboundFilespecificationtemplate';return this.apiClient.callApi("/api/v2/outbound/filespecificationtemplates/{fileSpecificationTemplateId}","PUT",{fileSpecificationTemplateId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putOutboundImporttemplate(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "importTemplateId" when calling putOutboundImporttemplate';if(i==null)throw'Missing the required parameter "body" when calling putOutboundImporttemplate';return this.apiClient.callApi("/api/v2/outbound/importtemplates/{importTemplateId}","PUT",{importTemplateId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putOutboundMessagingcampaign(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "messagingCampaignId" when calling putOutboundMessagingcampaign';if(i==null)throw'Missing the required parameter "body" when calling putOutboundMessagingcampaign';return this.apiClient.callApi("/api/v2/outbound/messagingcampaigns/{messagingCampaignId}","PUT",{messagingCampaignId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putOutboundRuleset(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "ruleSetId" when calling putOutboundRuleset';if(i==null)throw'Missing the required parameter "body" when calling putOutboundRuleset';return this.apiClient.callApi("/api/v2/outbound/rulesets/{ruleSetId}","PUT",{ruleSetId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putOutboundSchedulesCampaign(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "campaignId" when calling putOutboundSchedulesCampaign';if(i==null)throw'Missing the required parameter "body" when calling putOutboundSchedulesCampaign';return this.apiClient.callApi("/api/v2/outbound/schedules/campaigns/{campaignId}","PUT",{campaignId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putOutboundSchedulesEmailcampaign(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "emailCampaignId" when calling putOutboundSchedulesEmailcampaign';if(i==null)throw'Missing the required parameter "body" when calling putOutboundSchedulesEmailcampaign';return this.apiClient.callApi("/api/v2/outbound/schedules/emailcampaigns/{emailCampaignId}","PUT",{emailCampaignId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putOutboundSchedulesMessagingcampaign(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "messagingCampaignId" when calling putOutboundSchedulesMessagingcampaign';if(i==null)throw'Missing the required parameter "body" when calling putOutboundSchedulesMessagingcampaign';return this.apiClient.callApi("/api/v2/outbound/schedules/messagingcampaigns/{messagingCampaignId}","PUT",{messagingCampaignId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putOutboundSchedulesSequence(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "sequenceId" when calling putOutboundSchedulesSequence';if(i==null)throw'Missing the required parameter "body" when calling putOutboundSchedulesSequence';return this.apiClient.callApi("/api/v2/outbound/schedules/sequences/{sequenceId}","PUT",{sequenceId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putOutboundSchedulesWhatsappcampaign(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "whatsAppCampaignId" when calling putOutboundSchedulesWhatsappcampaign';if(i==null)throw'Missing the required parameter "body" when calling putOutboundSchedulesWhatsappcampaign';return this.apiClient.callApi("/api/v2/outbound/schedules/whatsappcampaigns/{whatsAppCampaignId}","PUT",{whatsAppCampaignId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putOutboundSequence(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "sequenceId" when calling putOutboundSequence';if(i==null)throw'Missing the required parameter "body" when calling putOutboundSequence';return this.apiClient.callApi("/api/v2/outbound/sequences/{sequenceId}","PUT",{sequenceId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putOutboundWrapupcodemappings(e,i){if(i=i||{},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"],i.customHeaders)}},jb=class{constructor(e){this.apiClient=e||q.instance}deletePresenceDefinition0(e,i){if(i=i||{},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"],i.customHeaders)}deletePresenceSource(e,i){if(i=i||{},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"],i.customHeaders)}deletePresencedefinition(e,i){if(i=i||{},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"],i.customHeaders)}getPresenceDefinition0(e,i){if(i=i||{},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:i.localeCode},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getPresencedefinition(e,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "presenceId" when calling getPresencedefinition';return this.apiClient.callApi("/api/v2/presencedefinitions/{presenceId}","GET",{presenceId:e},{localeCode:i.localeCode},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling getUserPresence';if(i==null||i==="")throw'Missing the required parameter "sourceId" when calling getUserPresence';return this.apiClient.callApi("/api/v2/users/{userId}/presences/{sourceId}","GET",{userId:e,sourceId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getUserPresencesPurecloud(e,i){if(i=i||{},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"],i.customHeaders)}getUsersPresenceBulk(e,i){if(i=i||{},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(i.id,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "userId" when calling patchUserPresence';if(i==null||i==="")throw'Missing the required parameter "sourceId" when calling patchUserPresence';if(n==null)throw'Missing the required parameter "body" when calling patchUserPresence';return this.apiClient.callApi("/api/v2/users/{userId}/presences/{sourceId}","PATCH",{userId:e,sourceId:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchUserPresencesPurecloud(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling patchUserPresencesPurecloud';if(i==null)throw'Missing the required parameter "body" when calling patchUserPresencesPurecloud';return this.apiClient.callApi("/api/v2/users/{userId}/presences/purecloud","PATCH",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postPresenceDefinitions0(e,i){if(i=i||{},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"],i.customHeaders)}postPresenceSources(e,i){if(i=i||{},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"],i.customHeaders)}postPresencedefinitions(e,i){if(i=i||{},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"],i.customHeaders)}putPresenceDefinition0(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "definitionId" when calling putPresenceDefinition0';if(i==null)throw'Missing the required parameter "body" when calling putPresenceDefinition0';return this.apiClient.callApi("/api/v2/presence/definitions/{definitionId}","PUT",{definitionId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putPresenceSettings(e,i){if(i=i||{},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"],i.customHeaders)}putPresenceSource(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "sourceId" when calling putPresenceSource';if(i==null)throw'Missing the required parameter "body" when calling putPresenceSource';return this.apiClient.callApi("/api/v2/presence/sources/{sourceId}","PUT",{sourceId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putPresenceUserPrimarysource(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling putPresenceUserPrimarysource';if(i==null)throw'Missing the required parameter "body" when calling putPresenceUserPrimarysource';return this.apiClient.callApi("/api/v2/presence/users/{userId}/primarysource","PUT",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putPresencedefinition(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "presenceId" when calling putPresencedefinition';if(i==null)throw'Missing the required parameter "body" when calling putPresencedefinition';return this.apiClient.callApi("/api/v2/presencedefinitions/{presenceId}","PUT",{presenceId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putUsersPresencesBulk(e,i){if(i=i||{},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"],i.customHeaders)}},Sb=class{constructor(e){this.apiClient=e||q.instance}deleteProcessautomationScheduledtrigger(e,i){if(i=i||{},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"],i.customHeaders)}deleteProcessautomationTrigger(e,i){if(i=i||{},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"],i.customHeaders)}getProcessautomationScheduledtrigger(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}postProcessautomationTriggerTest(e,i){if(i=i||{},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},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postProcessautomationTriggers(e,i){if(i=i||{},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"],i.customHeaders)}postProcessautomationTriggersTopicTest(e,i){if(i=i||{},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},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}putProcessautomationScheduledtrigger(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "scheduledTriggerId" when calling putProcessautomationScheduledtrigger';if(i==null)throw'Missing the required parameter "body" when calling putProcessautomationScheduledtrigger';return this.apiClient.callApi("/api/v2/processautomation/scheduledtriggers/{scheduledTriggerId}","PUT",{scheduledTriggerId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putProcessautomationTrigger(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "triggerId" when calling putProcessautomationTrigger';if(i==null)throw'Missing the required parameter "body" when calling putProcessautomationTrigger';return this.apiClient.callApi("/api/v2/processautomation/triggers/{triggerId}","PUT",{triggerId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}},Ob=class{constructor(e){this.apiClient=e||q.instance}deleteAnalyticsEvaluationsAggregatesJob(e,i){if(i=i||{},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"],i.customHeaders)}deleteAnalyticsSurveysAggregatesJob(e,i){if(i=i||{},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"],i.customHeaders)}deleteQualityCalibration(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "calibrationId" when calling deleteQualityCalibration';if(i==null)throw'Missing the required parameter "calibratorId" when calling deleteQualityCalibration';return this.apiClient.callApi("/api/v2/quality/calibrations/{calibrationId}","DELETE",{calibrationId:e},{calibratorId:i},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteQualityConversationEvaluation(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling deleteQualityConversationEvaluation';if(i==null||i==="")throw'Missing the required parameter "evaluationId" when calling deleteQualityConversationEvaluation';return this.apiClient.callApi("/api/v2/quality/conversations/{conversationId}/evaluations/{evaluationId}","DELETE",{conversationId:e,evaluationId:i},{expand:n.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteQualityForm(e,i){if(i=i||{},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"],i.customHeaders)}deleteQualityFormsEvaluation(e,i){if(i=i||{},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"],i.customHeaders)}deleteQualityFormsSurvey(e,i){if(i=i||{},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"],i.customHeaders)}deleteQualityProgramAgentscoringrule(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "programId" when calling deleteQualityProgramAgentscoringrule';if(i==null||i==="")throw'Missing the required parameter "ruleId" when calling deleteQualityProgramAgentscoringrule';return this.apiClient.callApi("/api/v2/quality/programs/{programId}/agentscoringrules/{ruleId}","DELETE",{programId:e,ruleId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getAnalyticsEvaluationsAggregatesJob(e,i){if(i=i||{},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"],i.customHeaders)}getAnalyticsEvaluationsAggregatesJobResults(e,i){if(i=i||{},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:i.cursor},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getAnalyticsSurveysAggregatesJob(e,i){if(i=i||{},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"],i.customHeaders)}getAnalyticsSurveysAggregatesJobResults(e,i){if(i=i||{},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:i.cursor},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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:i.calibratorId,conversationId:i.conversationId},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getQualityCalibrations(e,i){if(i=i||{},e==null)throw'Missing the required parameter "calibratorId" when calling getQualityCalibrations';return this.apiClient.callApi("/api/v2/quality/calibrations","GET",{},{pageSize:i.pageSize,pageNumber:i.pageNumber,sortBy:i.sortBy,expand:this.apiClient.buildCollectionParam(i.expand,"multi"),nextPage:i.nextPage,previousPage:i.previousPage,conversationId:i.conversationId,startTime:i.startTime,endTime:i.endTime,calibratorId:e},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getQualityConversationEvaluation(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getQualityConversationEvaluation';if(i==null||i==="")throw'Missing the required parameter "evaluationId" when calling getQualityConversationEvaluation';return this.apiClient.callApi("/api/v2/quality/conversations/{conversationId}/evaluations/{evaluationId}","GET",{conversationId:e,evaluationId:i},{expand:n.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getQualityConversationSurveys(e,i){if(i=i||{},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"],i.customHeaders)}getQualityConversationsAuditsQueryTransactionId(e,i){if(i=i||{},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"],i.customHeaders)}getQualityConversationsAuditsQueryTransactionIdResults(e,i){if(i=i||{},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:i.cursor,pageSize:i.pageSize,expand:this.apiClient.buildCollectionParam(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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"],i.customHeaders)}getQualityFormVersions(e,i){if(i=i||{},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:i.pageSize,pageNumber:i.pageNumber,sortOrder:i.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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"],i.customHeaders)}getQualityFormsEvaluationVersions(e,i){if(i=i||{},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:i.pageSize,pageNumber:i.pageNumber,sortOrder:i.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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:i.includeLatestVersionFormName},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getQualityFormsEvaluationsBulkContexts(e,i){if(i=i||{},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"],i.customHeaders)}getQualityFormsSurvey(e,i){if(i=i||{},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"],i.customHeaders)}getQualityFormsSurveyVersions(e,i){if(i=i||{},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:i.pageSize,pageNumber:i.pageNumber},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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"],i.customHeaders)}getQualityFormsSurveysBulkContexts(e,i){if(i=i||{},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:i.published},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getQualityProgramAgentscoringrule(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "programId" when calling getQualityProgramAgentscoringrule';if(i==null||i==="")throw'Missing the required parameter "ruleId" when calling getQualityProgramAgentscoringrule';return this.apiClient.callApi("/api/v2/quality/programs/{programId}/agentscoringrules/{ruleId}","GET",{programId:e,ruleId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getQualityProgramAgentscoringrules(e,i){if(i=i||{},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"],i.customHeaders)}getQualityPublishedform(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getQualityPublishedformsEvaluations(e){return e=e||{},this.apiClient.callApi("/api/v2/quality/publishedforms/evaluations","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,name:e.name,onlyLatestPerContext:e.onlyLatestPerContext},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getQualityPublishedformsSurvey(e,i){if(i=i||{},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"],i.customHeaders)}getQualityPublishedformsSurveys(e){return e=e||{},this.apiClient.callApi("/api/v2/quality/publishedforms/surveys","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,name:e.name,onlyLatestEnabledPerContext:e.onlyLatestEnabledPerContext},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getQualitySurvey(e,i){if(i=i||{},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"],i.customHeaders)}getQualitySurveysScorable(e,i){if(i=i||{},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"],i.customHeaders)}patchQualityFormsSurvey(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "formId" when calling patchQualityFormsSurvey';if(i==null)throw'Missing the required parameter "body" when calling patchQualityFormsSurvey';return this.apiClient.callApi("/api/v2/quality/forms/surveys/{formId}","PATCH",{formId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postAnalyticsEvaluationsAggregatesJobs(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsEvaluationsAggregatesQuery(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsSurveysAggregatesJobs(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsSurveysAggregatesQuery(e,i){if(i=i||{},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"],i.customHeaders)}postQualityCalibrations(e,i){if(i=i||{},e==null)throw'Missing the required parameter "body" when calling postQualityCalibrations';return this.apiClient.callApi("/api/v2/quality/calibrations","POST",{},{expand:i.expand},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postQualityConversationEvaluations(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postQualityConversationEvaluations';if(i==null)throw'Missing the required parameter "body" when calling postQualityConversationEvaluations';return this.apiClient.callApi("/api/v2/quality/conversations/{conversationId}/evaluations","POST",{conversationId:e},{expand:n.expand},{"Idempotency-Key":n.idempotencyKey},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postQualityConversationsAuditsQuery(e,i){if(i=i||{},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"],i.customHeaders)}postQualityEvaluationsAggregatesQueryMe(e,i){if(i=i||{},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"],i.customHeaders)}postQualityEvaluationsScoring(e,i){if(i=i||{},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"],i.customHeaders)}postQualityEvaluationsSearch(e,i){if(i=i||{},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"],i.customHeaders)}postQualityForms(e,i){if(i=i||{},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"],i.customHeaders)}postQualityFormsEvaluations(e,i){if(i=i||{},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"],i.customHeaders)}postQualityFormsSurveys(e,i){if(i=i||{},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"],i.customHeaders)}postQualityProgramAgentscoringrules(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "programId" when calling postQualityProgramAgentscoringrules';if(i==null)throw'Missing the required parameter "body" when calling postQualityProgramAgentscoringrules';return this.apiClient.callApi("/api/v2/quality/programs/{programId}/agentscoringrules","POST",{programId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postQualityPublishedforms(e,i){if(i=i||{},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"],i.customHeaders)}postQualityPublishedformsEvaluations(e,i){if(i=i||{},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"],i.customHeaders)}postQualityPublishedformsSurveys(e,i){if(i=i||{},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"],i.customHeaders)}postQualitySurveys(e,i){if(i=i||{},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"],i.customHeaders)}postQualitySurveysScoring(e,i){if(i=i||{},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"],i.customHeaders)}putQualityCalibration(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "calibrationId" when calling putQualityCalibration';if(i==null)throw'Missing the required parameter "body" when calling putQualityCalibration';return this.apiClient.callApi("/api/v2/quality/calibrations/{calibrationId}","PUT",{calibrationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putQualityConversationEvaluation(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling putQualityConversationEvaluation';if(i==null||i==="")throw'Missing the required parameter "evaluationId" when calling putQualityConversationEvaluation';if(n==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:i},{expand:a.expand},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}putQualityForm(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "formId" when calling putQualityForm';if(i==null)throw'Missing the required parameter "body" when calling putQualityForm';return this.apiClient.callApi("/api/v2/quality/forms/{formId}","PUT",{formId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putQualityFormsEvaluation(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "formId" when calling putQualityFormsEvaluation';if(i==null)throw'Missing the required parameter "body" when calling putQualityFormsEvaluation';return this.apiClient.callApi("/api/v2/quality/forms/evaluations/{formId}","PUT",{formId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putQualityFormsEvaluationAiscoringSettings(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "formId" when calling putQualityFormsEvaluationAiscoringSettings';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putQualityFormsSurvey(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "formId" when calling putQualityFormsSurvey';if(i==null)throw'Missing the required parameter "body" when calling putQualityFormsSurvey';return this.apiClient.callApi("/api/v2/quality/forms/surveys/{formId}","PUT",{formId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putQualityProgramAgentscoringrule(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "programId" when calling putQualityProgramAgentscoringrule';if(i==null||i==="")throw'Missing the required parameter "ruleId" when calling putQualityProgramAgentscoringrule';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}putQualitySurveysScorable(e,i,n){if(n=n||{},e==null)throw'Missing the required parameter "customerSurveyUrl" when calling putQualitySurveysScorable';if(i==null)throw'Missing the required parameter "body" when calling putQualitySurveysScorable';return this.apiClient.callApi("/api/v2/quality/surveys/scorable","PUT",{},{customerSurveyUrl:e},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}},xb=class{constructor(e){this.apiClient=e||q.instance}deleteConversationRecordingAnnotation(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling deleteConversationRecordingAnnotation';if(i==null||i==="")throw'Missing the required parameter "recordingId" when calling deleteConversationRecordingAnnotation';if(n==null||n==="")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:i,annotationId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}deleteOrphanrecording(e,i){if(i=i||{},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"],i.customHeaders)}deleteRecordingCrossplatformMediaretentionpolicies(e,i){if(i=i||{},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"],i.customHeaders)}deleteRecordingCrossplatformMediaretentionpolicy(e,i){if(i=i||{},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"],i.customHeaders)}deleteRecordingJob(e,i){if(i=i||{},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"],i.customHeaders)}deleteRecordingMediaretentionpolicies(e,i){if(i=i||{},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"],i.customHeaders)}deleteRecordingMediaretentionpolicy(e,i){if(i=i||{},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"],i.customHeaders)}getConversationRecording(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationRecording';if(i==null||i==="")throw'Missing the required parameter "recordingId" when calling getConversationRecording';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/recordings/{recordingId}","GET",{conversationId:e,recordingId:i},{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)}getConversationRecordingAnnotation(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationRecordingAnnotation';if(i==null||i==="")throw'Missing the required parameter "recordingId" when calling getConversationRecordingAnnotation';if(n==null||n==="")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:i,annotationId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getConversationRecordingAnnotations(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationRecordingAnnotations';if(i==null||i==="")throw'Missing the required parameter "recordingId" when calling getConversationRecordingAnnotations';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/recordings/{recordingId}/annotations","GET",{conversationId:e,recordingId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getConversationRecordingmetadata(e,i){if(i=i||{},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"],i.customHeaders)}getConversationRecordingmetadataRecordingId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationRecordingmetadataRecordingId';if(i==null||i==="")throw'Missing the required parameter "recordingId" when calling getConversationRecordingmetadataRecordingId';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/recordingmetadata/{recordingId}","GET",{conversationId:e,recordingId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getConversationRecordings(e,i){if(i=i||{},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:i.maxWaitMs,formatId:i.formatId,mediaFormats:this.apiClient.buildCollectionParam(i.mediaFormats,"multi"),locale:i.locale,includePauseAnnotationsForScreenRecordings:i.includePauseAnnotationsForScreenRecordings},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getOrphanrecording(e,i){if(i=i||{},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"],i.customHeaders)}getOrphanrecordingMedia(e,i){if(i=i||{},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: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)}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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getRecordingJob(e,i){if(i=i||{},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"],i.customHeaders)}getRecordingJobFailedrecordings(e,i){if(i=i||{},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:i.pageSize,pageNumber:i.pageNumber,includeTotal:i.includeTotal,cursor:i.cursor},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getRecordingsRetentionQuery(e,i){if(i=i||{},e==null)throw'Missing the required parameter "retentionThresholdDays" when calling getRecordingsRetentionQuery';return this.apiClient.callApi("/api/v2/recordings/retention/query","GET",{},{retentionThresholdDays:e,cursor:i.cursor,pageSize:i.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "policyId" when calling patchRecordingCrossplatformMediaretentionpolicy';if(i==null)throw'Missing the required parameter "body" when calling patchRecordingCrossplatformMediaretentionpolicy';return this.apiClient.callApi("/api/v2/recording/crossplatform/mediaretentionpolicies/{policyId}","PATCH",{policyId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchRecordingMediaretentionpolicy(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "policyId" when calling patchRecordingMediaretentionpolicy';if(i==null)throw'Missing the required parameter "body" when calling patchRecordingMediaretentionpolicy';return this.apiClient.callApi("/api/v2/recording/mediaretentionpolicies/{policyId}","PATCH",{policyId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postConversationRecordingAnnotations(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationRecordingAnnotations';if(i==null||i==="")throw'Missing the required parameter "recordingId" when calling postConversationRecordingAnnotations';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postRecordingBatchrequests(e,i){if(i=i||{},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"],i.customHeaders)}postRecordingCrossplatformMediaretentionpolicies(e,i){if(i=i||{},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"],i.customHeaders)}postRecordingJobs(e,i){if(i=i||{},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"],i.customHeaders)}postRecordingKeyconfigurations(e,i){if(i=i||{},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"],i.customHeaders)}postRecordingKeyconfigurationsValidate(e,i){if(i=i||{},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"],i.customHeaders)}postRecordingLocalkeys(e,i){if(i=i||{},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"],i.customHeaders)}postRecordingMediaretentionpolicies(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}postRecordingsDeletionprotection(e,i){if(i=i||{},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"],i.customHeaders)}postRecordingsScreensessionsAcknowledge(e,i){if(i=i||{},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"],i.customHeaders)}postRecordingsScreensessionsMetadata(e,i){if(i=i||{},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"],i.customHeaders)}putConversationRecording(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling putConversationRecording';if(i==null||i==="")throw'Missing the required parameter "recordingId" when calling putConversationRecording';if(n==null)throw'Missing the required parameter "body" when calling putConversationRecording';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/recordings/{recordingId}","PUT",{conversationId:e,recordingId:i},{clearExport:a.clearExport},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}putConversationRecordingAnnotation(e,i,n,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling putConversationRecordingAnnotation';if(i==null||i==="")throw'Missing the required parameter "recordingId" when calling putConversationRecordingAnnotation';if(n==null||n==="")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:i,annotationId:n},{},{},{},a,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}putOrphanrecording(e,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "orphanId" when calling putOrphanrecording';return this.apiClient.callApi("/api/v2/orphanrecordings/{orphanId}","PUT",{orphanId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}putRecordingCrossplatformMediaretentionpolicy(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "policyId" when calling putRecordingCrossplatformMediaretentionpolicy';if(i==null)throw'Missing the required parameter "body" when calling putRecordingCrossplatformMediaretentionpolicy';return this.apiClient.callApi("/api/v2/recording/crossplatform/mediaretentionpolicies/{policyId}","PUT",{policyId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putRecordingJob(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "jobId" when calling putRecordingJob';if(i==null)throw'Missing the required parameter "body" when calling putRecordingJob';return this.apiClient.callApi("/api/v2/recording/jobs/{jobId}","PUT",{jobId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putRecordingKeyconfiguration(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "keyConfigurationId" when calling putRecordingKeyconfiguration';if(i==null)throw'Missing the required parameter "body" when calling putRecordingKeyconfiguration';return this.apiClient.callApi("/api/v2/recording/keyconfigurations/{keyConfigurationId}","PUT",{keyConfigurationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putRecordingMediaretentionpolicy(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "policyId" when calling putRecordingMediaretentionpolicy';if(i==null)throw'Missing the required parameter "body" when calling putRecordingMediaretentionpolicy';return this.apiClient.callApi("/api/v2/recording/mediaretentionpolicies/{policyId}","PUT",{policyId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putRecordingRecordingkeysRotationschedule(e,i){if(i=i||{},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"],i.customHeaders)}putRecordingSettings(e,i){if(i=i||{},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"],i.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)}},Tb=class{constructor(e){this.apiClient=e||q.instance}deleteResponsemanagementLibrary(e,i){if(i=i||{},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"],i.customHeaders)}deleteResponsemanagementResponse(e,i){if(i=i||{},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"],i.customHeaders)}deleteResponsemanagementResponseasset(e,i){if(i=i||{},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"],i.customHeaders)}getResponsemanagementLibraries(e){return e=e||{},this.apiClient.callApi("/api/v2/responsemanagement/libraries","GET",{},{pageNumber:e.pageNumber,pageSize:e.pageSize,messagingTemplateFilter:e.messagingTemplateFilter,libraryPrefix:e.libraryPrefix},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getResponsemanagementLibrary(e,i){if(i=i||{},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"],i.customHeaders)}getResponsemanagementResponse(e,i){if(i=i||{},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:i.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getResponsemanagementResponseasset(e,i){if(i=i||{},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"],i.customHeaders)}getResponsemanagementResponseassetsStatusStatusId(e,i){if(i=i||{},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"],i.customHeaders)}getResponsemanagementResponses(e,i){if(i=i||{},e==null)throw'Missing the required parameter "libraryId" when calling getResponsemanagementResponses';return this.apiClient.callApi("/api/v2/responsemanagement/responses","GET",{},{libraryId:e,pageNumber:i.pageNumber,pageSize:i.pageSize,expand:i.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postResponsemanagementLibraries(e,i){if(i=i||{},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"],i.customHeaders)}postResponsemanagementLibrariesBulk(e,i){if(i=i||{},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"],i.customHeaders)}postResponsemanagementLibrariesQuery(e,i){if(i=i||{},e==null)throw'Missing the required parameter "body" when calling postResponsemanagementLibrariesQuery';return this.apiClient.callApi("/api/v2/responsemanagement/libraries/query","POST",{},{pageNumber:i.pageNumber,pageSize:i.pageSize},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postResponsemanagementResponseassetsBulk(e,i){if(i=i||{},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"],i.customHeaders)}postResponsemanagementResponseassetsSearch(e,i){if(i=i||{},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(i.expand,"multi")},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postResponsemanagementResponseassetsUploads(e,i){if(i=i||{},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"],i.customHeaders)}postResponsemanagementResponses(e,i){if(i=i||{},e==null)throw'Missing the required parameter "body" when calling postResponsemanagementResponses';return this.apiClient.callApi("/api/v2/responsemanagement/responses","POST",{},{expand:i.expand},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postResponsemanagementResponsesQuery(e,i){if(i=i||{},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"],i.customHeaders)}putResponsemanagementLibrary(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "libraryId" when calling putResponsemanagementLibrary';if(i==null)throw'Missing the required parameter "body" when calling putResponsemanagementLibrary';return this.apiClient.callApi("/api/v2/responsemanagement/libraries/{libraryId}","PUT",{libraryId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putResponsemanagementResponse(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "responseId" when calling putResponsemanagementResponse';if(i==null)throw'Missing the required parameter "body" when calling putResponsemanagementResponse';return this.apiClient.callApi("/api/v2/responsemanagement/responses/{responseId}","PUT",{responseId:e},{expand:n.expand},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putResponsemanagementResponseasset(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "responseAssetId" when calling putResponsemanagementResponseasset';if(i==null)throw'Missing the required parameter "body" when calling putResponsemanagementResponseasset';return this.apiClient.callApi("/api/v2/responsemanagement/responseassets/{responseAssetId}","PUT",{responseAssetId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}},Mb=class{constructor(e){this.apiClient=e||q.instance}deleteRoutingAssessment(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}deleteRoutingEmailDomainRoute(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "domainName" when calling deleteRoutingEmailDomainRoute';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteRoutingEmailOutboundDomain(e,i){if(i=i||{},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"],i.customHeaders)}deleteRoutingLanguage(e,i){if(i=i||{},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"],i.customHeaders)}deleteRoutingPredictor(e,i){if(i=i||{},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"],i.customHeaders)}deleteRoutingPredictorsKeyperformanceindicator(e,i){if(i=i||{},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"],i.customHeaders)}deleteRoutingQueue(e,i){if(i=i||{},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:i.forceDelete},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}deleteRoutingQueueMember(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "queueId" when calling deleteRoutingQueueMember';if(i==null||i==="")throw'Missing the required parameter "memberId" when calling deleteRoutingQueueMember';return this.apiClient.callApi("/api/v2/routing/queues/{queueId}/members/{memberId}","DELETE",{queueId:e,memberId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteRoutingQueueUser(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "queueId" when calling deleteRoutingQueueUser';if(i==null||i==="")throw'Missing the required parameter "memberId" when calling deleteRoutingQueueUser';return this.apiClient.callApi("/api/v2/routing/queues/{queueId}/users/{memberId}","DELETE",{queueId:e,memberId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteRoutingQueueWrapupcode(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "queueId" when calling deleteRoutingQueueWrapupcode';if(i==null||i==="")throw'Missing the required parameter "codeId" when calling deleteRoutingQueueWrapupcode';return this.apiClient.callApi("/api/v2/routing/queues/{queueId}/wrapupcodes/{codeId}","DELETE",{queueId:e,codeId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.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,i){if(i=i||{},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"],i.customHeaders)}deleteRoutingSkillgroup(e,i){if(i=i||{},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"],i.customHeaders)}deleteRoutingSmsAddress(e,i){if(i=i||{},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"],i.customHeaders)}deleteRoutingSmsPhonenumber(e,i){if(i=i||{},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"],i.customHeaders)}deleteRoutingUserDirectroutingbackupSettings(e,i){if(i=i||{},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"],i.customHeaders)}deleteRoutingUserUtilization(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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:i.forceDelete},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}deleteRoutingUtilizationTag(e,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "tagId" when calling deleteRoutingUtilizationTag';return this.apiClient.callApi("/api/v2/routing/utilization/tags/{tagId}","DELETE",{tagId:e},{forceDelete:i.forceDelete},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}deleteRoutingWrapupcode(e,i){if(i=i||{},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"],i.customHeaders)}deleteUserRoutinglanguage(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling deleteUserRoutinglanguage';if(i==null||i==="")throw'Missing the required parameter "languageId" when calling deleteUserRoutinglanguage';return this.apiClient.callApi("/api/v2/users/{userId}/routinglanguages/{languageId}","DELETE",{userId:e,languageId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteUserRoutingskill(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling deleteUserRoutingskill';if(i==null||i==="")throw'Missing the required parameter "skillId" when calling deleteUserRoutingskill';return this.apiClient.callApi("/api/v2/users/{userId}/routingskills/{skillId}","DELETE",{userId:e,skillId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getRoutingAssessment(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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:i.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getRoutingEmailDomainDkim(e,i){if(i=i||{},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"],i.customHeaders)}getRoutingEmailDomainMailfrom(e,i){if(i=i||{},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"],i.customHeaders)}getRoutingEmailDomainRoute(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "domainName" when calling getRoutingEmailDomainRoute';if(i==null||i==="")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:i},{expand:this.apiClient.buildCollectionParam(n.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getRoutingEmailDomainRouteIdentityresolution(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "domainName" when calling getRoutingEmailDomainRouteIdentityresolution';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getRoutingEmailDomainRoutes(e,i){if(i=i||{},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:i.pageSize,pageNumber:i.pageNumber,pattern:i.pattern,expand:this.apiClient.buildCollectionParam(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getRoutingEmailDomainVerification(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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:i.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getRoutingEmailOutboundDomainActivation(e,i){if(i=i||{},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"],i.customHeaders)}getRoutingEmailOutboundDomains(e){return e=e||{},this.apiClient.callApi("/api/v2/routing/email/outbound/domains","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,filter:e.filter,expand:e.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getRoutingEmailSetup(e){return e=e||{},this.apiClient.callApi("/api/v2/routing/email/setup","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getRoutingLanguage(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getRoutingPredictorModelFeatures(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "predictorId" when calling getRoutingPredictorModelFeatures';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getRoutingPredictorModels(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getRoutingQueueAssistant(e,i){if(i=i||{},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(i.expand,"multi"),languageVariation:i.languageVariation,fallbackToPrimaryAssistant:i.fallbackToPrimaryAssistant},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getRoutingQueueComparisonperiod(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "queueId" when calling getRoutingQueueComparisonperiod';if(i==null||i==="")throw'Missing the required parameter "comparisonPeriodId" when calling getRoutingQueueComparisonperiod';return this.apiClient.callApi("/api/v2/routing/queues/{queueId}/comparisonperiods/{comparisonPeriodId}","GET",{queueId:e,comparisonPeriodId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getRoutingQueueComparisonperiods(e,i){if(i=i||{},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"],i.customHeaders)}getRoutingQueueEstimatedwaittime(e,i){if(i=i||{},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:i.conversationId},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getRoutingQueueIdentityresolution(e,i){if(i=i||{},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"],i.customHeaders)}getRoutingQueueMediatypeEstimatedwaittime(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "queueId" when calling getRoutingQueueMediatypeEstimatedwaittime';if(i==null||i==="")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:i},{labelId:n.labelId},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getRoutingQueueMembers(e,i){if(i=i||{},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:i.pageNumber,pageSize:i.pageSize,sortOrder:i.sortOrder,expand:this.apiClient.buildCollectionParam(i.expand,"multi"),name:i.name,profileSkills:this.apiClient.buildCollectionParam(i.profileSkills,"multi"),skills:this.apiClient.buildCollectionParam(i.skills,"multi"),languages:this.apiClient.buildCollectionParam(i.languages,"multi"),routingStatus:this.apiClient.buildCollectionParam(i.routingStatus,"multi"),presence:this.apiClient.buildCollectionParam(i.presence,"multi"),memberBy:i.memberBy,joined:i.joined},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getRoutingQueueUsers(e,i){if(i=i||{},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:i.pageNumber,pageSize:i.pageSize,sortOrder:i.sortOrder,expand:this.apiClient.buildCollectionParam(i.expand,"multi"),joined:i.joined,name:i.name,profileSkills:this.apiClient.buildCollectionParam(i.profileSkills,"multi"),skills:this.apiClient.buildCollectionParam(i.skills,"multi"),languages:this.apiClient.buildCollectionParam(i.languages,"multi"),routingStatus:this.apiClient.buildCollectionParam(i.routingStatus,"multi"),presence:this.apiClient.buildCollectionParam(i.presence,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getRoutingQueueWrapupcodes(e,i){if(i=i||{},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:i.pageSize,pageNumber:i.pageNumber,name:i.name},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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"],i.customHeaders)}getRoutingSkillgroup(e,i){if(i=i||{},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"],i.customHeaders)}getRoutingSkillgroupMembers(e,i){if(i=i||{},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:i.pageSize,after:i.after,before:i.before,expand:i.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getRoutingSkillgroupMembersDivisions(e,i){if(i=i||{},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:i.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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"],i.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,i,n){if(n=n||{},e==null)throw'Missing the required parameter "countryCode" when calling getRoutingSmsAvailablephonenumbers';if(i==null)throw'Missing the required parameter "phoneNumberType" when calling getRoutingSmsAvailablephonenumbers';return this.apiClient.callApi("/api/v2/routing/sms/availablephonenumbers","GET",{},{countryCode:e,region:n.region,city:n.city,areaCode:n.areaCode,phoneNumberType:i,pattern:n.pattern,addressRequirement:n.addressRequirement},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getRoutingSmsIdentityresolutionPhonenumber(e,i){if(i=i||{},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"],i.customHeaders)}getRoutingSmsPhonenumber(e,i){if(i=i||{},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:i.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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"],i.customHeaders)}getRoutingUserUtilization(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getRoutingUtilizationLabelAgents(e,i){if(i=i||{},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"],i.customHeaders)}getRoutingUtilizationLabels(e){return e=e||{},this.apiClient.callApi("/api/v2/routing/utilization/labels","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,sortOrder:e.sortOrder,name:e.name},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getRoutingUtilizationTag(e,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "tagId" when calling getRoutingUtilizationTag';return this.apiClient.callApi("/api/v2/routing/utilization/tags/{tagId}","GET",{tagId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getRoutingUtilizationTagAgents(e,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "tagId" when calling getRoutingUtilizationTagAgents';return this.apiClient.callApi("/api/v2/routing/utilization/tags/{tagId}/agents","GET",{tagId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getRoutingUtilizationTags(e){return e=e||{},this.apiClient.callApi("/api/v2/routing/utilization/tags","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,sortOrder:e.sortOrder,name:e.name},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getRoutingWrapupcode(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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:i.pageSize,pageNumber:i.pageNumber,joined:i.joined,divisionId:this.apiClient.buildCollectionParam(i.divisionId,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getUserRoutinglanguages(e,i){if(i=i||{},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:i.pageSize,pageNumber:i.pageNumber,sortOrder:i.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getUserRoutingskills(e,i){if(i=i||{},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:i.pageSize,pageNumber:i.pageNumber,sortOrder:i.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getUserSkillgroups(e,i){if(i=i||{},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:i.pageSize,after:i.after,before:i.before},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}patchRoutingConversation(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchRoutingConversation';if(i==null)throw'Missing the required parameter "body" when calling patchRoutingConversation';return this.apiClient.callApi("/api/v2/routing/conversations/{conversationId}","PATCH",{conversationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchRoutingEmailDomain(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "domainId" when calling patchRoutingEmailDomain';if(i==null)throw'Missing the required parameter "body" when calling patchRoutingEmailDomain';return this.apiClient.callApi("/api/v2/routing/email/domains/{domainId}","PATCH",{domainId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchRoutingEmailDomainValidate(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "domainId" when calling patchRoutingEmailDomainValidate';if(i==null)throw'Missing the required parameter "body" when calling patchRoutingEmailDomainValidate';return this.apiClient.callApi("/api/v2/routing/email/domains/{domainId}/validate","PATCH",{domainId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchRoutingEmailOutboundDomain(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "domainId" when calling patchRoutingEmailOutboundDomain';if(i==null)throw'Missing the required parameter "body" when calling patchRoutingEmailOutboundDomain';return this.apiClient.callApi("/api/v2/routing/email/outbound/domains/{domainId}","PATCH",{domainId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchRoutingPredictor(e,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "predictorId" when calling patchRoutingPredictor';return this.apiClient.callApi("/api/v2/routing/predictors/{predictorId}","PATCH",{predictorId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}patchRoutingPredictorsKeyperformanceindicator(e,i){if(i=i||{},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},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}patchRoutingQueueMember(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "queueId" when calling patchRoutingQueueMember';if(i==null||i==="")throw'Missing the required parameter "memberId" when calling patchRoutingQueueMember';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchRoutingQueueMembers(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "queueId" when calling patchRoutingQueueMembers';if(i==null)throw'Missing the required parameter "body" when calling patchRoutingQueueMembers';return this.apiClient.callApi("/api/v2/routing/queues/{queueId}/members","PATCH",{queueId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchRoutingQueueUser(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "queueId" when calling patchRoutingQueueUser';if(i==null||i==="")throw'Missing the required parameter "memberId" when calling patchRoutingQueueUser';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchRoutingQueueUsers(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "queueId" when calling patchRoutingQueueUsers';if(i==null)throw'Missing the required parameter "body" when calling patchRoutingQueueUsers';return this.apiClient.callApi("/api/v2/routing/queues/{queueId}/users","PATCH",{queueId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchRoutingSettingsContactcenter(e,i){if(i=i||{},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"],i.customHeaders)}patchRoutingSettingsTranscription(e,i){if(i=i||{},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"],i.customHeaders)}patchRoutingSkill(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "skillId" when calling patchRoutingSkill';if(i==null)throw'Missing the required parameter "body" when calling patchRoutingSkill';return this.apiClient.callApi("/api/v2/routing/skills/{skillId}","PATCH",{skillId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchRoutingSkillgroup(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "skillGroupId" when calling patchRoutingSkillgroup';if(i==null)throw'Missing the required parameter "body" when calling patchRoutingSkillgroup';return this.apiClient.callApi("/api/v2/routing/skillgroups/{skillGroupId}","PATCH",{skillGroupId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchRoutingSmsPhonenumber(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "phoneNumberId" when calling patchRoutingSmsPhonenumber';if(i==null)throw'Missing the required parameter "body" when calling patchRoutingSmsPhonenumber';return this.apiClient.callApi("/api/v2/routing/sms/phonenumbers/{phoneNumberId}","PATCH",{phoneNumberId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchUserQueue(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "queueId" when calling patchUserQueue';if(i==null||i==="")throw'Missing the required parameter "userId" when calling patchUserQueue';if(n==null)throw'Missing the required parameter "body" when calling patchUserQueue';return this.apiClient.callApi("/api/v2/users/{userId}/queues/{queueId}","PATCH",{queueId:e,userId:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchUserQueues(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling patchUserQueues';if(i==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(n.divisionId,"multi")},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchUserRoutinglanguage(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "userId" when calling patchUserRoutinglanguage';if(i==null||i==="")throw'Missing the required parameter "languageId" when calling patchUserRoutinglanguage';if(n==null)throw'Missing the required parameter "body" when calling patchUserRoutinglanguage';return this.apiClient.callApi("/api/v2/users/{userId}/routinglanguages/{languageId}","PATCH",{userId:e,languageId:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchUserRoutinglanguagesBulk(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling patchUserRoutinglanguagesBulk';if(i==null)throw'Missing the required parameter "body" when calling patchUserRoutinglanguagesBulk';return this.apiClient.callApi("/api/v2/users/{userId}/routinglanguages/bulk","PATCH",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchUserRoutingskillsBulk(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling patchUserRoutingskillsBulk';if(i==null)throw'Missing the required parameter "body" when calling patchUserRoutingskillsBulk';return this.apiClient.callApi("/api/v2/users/{userId}/routingskills/bulk","PATCH",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postAnalyticsQueuesObservationsQuery(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsRoutingActivityQuery(e,i){if(i=i||{},e==null)throw'Missing the required parameter "body" when calling postAnalyticsRoutingActivityQuery';return this.apiClient.callApi("/api/v2/analytics/routing/activity/query","POST",{},{pageSize:i.pageSize,pageNumber:i.pageNumber},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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"],i.customHeaders)}postRoutingEmailDomainMailfrom(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "domainId" when calling postRoutingEmailDomainMailfrom';if(i==null)throw'Missing the required parameter "body" when calling postRoutingEmailDomainMailfrom';return this.apiClient.callApi("/api/v2/routing/email/domains/{domainId}/mailfrom","POST",{domainId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postRoutingEmailDomainRoutes(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "domainName" when calling postRoutingEmailDomainRoutes';if(i==null)throw'Missing the required parameter "body" when calling postRoutingEmailDomainRoutes';return this.apiClient.callApi("/api/v2/routing/email/domains/{domainName}/routes","POST",{domainName:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postRoutingEmailDomainTestconnection(e,i){if(i=i||{},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},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postRoutingEmailDomainVerification(e,i){if(i=i||{},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"],i.customHeaders)}postRoutingEmailDomains(e,i){if(i=i||{},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"],i.customHeaders)}postRoutingEmailOutboundDomainTestconnection(e,i){if(i=i||{},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},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postRoutingEmailOutboundDomains(e,i){if(i=i||{},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"],i.customHeaders)}postRoutingEmailOutboundDomainsSimulated(e,i){if(i=i||{},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"],i.customHeaders)}postRoutingLanguages(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}postRoutingQueueMembers(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "queueId" when calling postRoutingQueueMembers';if(i==null)throw'Missing the required parameter "body" when calling postRoutingQueueMembers';return this.apiClient.callApi("/api/v2/routing/queues/{queueId}/members","POST",{queueId:e},{delete:n._delete},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postRoutingQueueUsers(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "queueId" when calling postRoutingQueueUsers';if(i==null)throw'Missing the required parameter "body" when calling postRoutingQueueUsers';return this.apiClient.callApi("/api/v2/routing/queues/{queueId}/users","POST",{queueId:e},{delete:n._delete},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postRoutingQueueWrapupcodes(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "queueId" when calling postRoutingQueueWrapupcodes';if(i==null)throw'Missing the required parameter "body" when calling postRoutingQueueWrapupcodes';return this.apiClient.callApi("/api/v2/routing/queues/{queueId}/wrapupcodes","POST",{queueId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postRoutingQueues(e,i){if(i=i||{},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"],i.customHeaders)}postRoutingSkillgroupMembersDivisions(e,i){if(i=i||{},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},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postRoutingSkillgroups(e,i){if(i=i||{},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"],i.customHeaders)}postRoutingSkills(e,i){if(i=i||{},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"],i.customHeaders)}postRoutingSmsAddresses(e,i){if(i=i||{},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"],i.customHeaders)}postRoutingSmsPhonenumbers(e,i){if(i=i||{},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"],i.customHeaders)}postRoutingSmsPhonenumbersAlphanumeric(e,i){if(i=i||{},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"],i.customHeaders)}postRoutingSmsPhonenumbersImport(e,i){if(i=i||{},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"],i.customHeaders)}postRoutingUtilizationLabels(e,i){if(i=i||{},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"],i.customHeaders)}postRoutingUtilizationTags(e,i){if(i=i||{},e==null)throw'Missing the required parameter "body" when calling postRoutingUtilizationTags';return this.apiClient.callApi("/api/v2/routing/utilization/tags","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postRoutingWrapupcodes(e,i){if(i=i||{},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"],i.customHeaders)}postUserRoutinglanguages(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling postUserRoutinglanguages';if(i==null)throw'Missing the required parameter "body" when calling postUserRoutinglanguages';return this.apiClient.callApi("/api/v2/users/{userId}/routinglanguages","POST",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postUserRoutingskills(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling postUserRoutingskills';if(i==null)throw'Missing the required parameter "body" when calling postUserRoutingskills';return this.apiClient.callApi("/api/v2/users/{userId}/routingskills","POST",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putRoutingDirectroutingbackupSettingsMe(e,i){if(i=i||{},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"],i.customHeaders)}putRoutingEmailDomainRoute(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "domainName" when calling putRoutingEmailDomainRoute';if(i==null||i==="")throw'Missing the required parameter "routeId" when calling putRoutingEmailDomainRoute';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}putRoutingEmailDomainRouteIdentityresolution(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "domainName" when calling putRoutingEmailDomainRouteIdentityresolution';if(i==null||i==="")throw'Missing the required parameter "routeId" when calling putRoutingEmailDomainRouteIdentityresolution';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}putRoutingEmailOutboundDomainActivation(e,i){if(i=i||{},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"],i.customHeaders)}putRoutingMessageRecipient(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "recipientId" when calling putRoutingMessageRecipient';if(i==null)throw'Missing the required parameter "body" when calling putRoutingMessageRecipient';return this.apiClient.callApi("/api/v2/routing/message/recipients/{recipientId}","PUT",{recipientId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putRoutingQueue(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "queueId" when calling putRoutingQueue';if(i==null)throw'Missing the required parameter "body" when calling putRoutingQueue';return this.apiClient.callApi("/api/v2/routing/queues/{queueId}","PUT",{queueId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putRoutingQueueIdentityresolution(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "queueId" when calling putRoutingQueueIdentityresolution';if(i==null)throw'Missing the required parameter "body" when calling putRoutingQueueIdentityresolution';return this.apiClient.callApi("/api/v2/routing/queues/{queueId}/identityresolution","PUT",{queueId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putRoutingSettings(e,i){if(i=i||{},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"],i.customHeaders)}putRoutingSettingsTranscription(e,i){if(i=i||{},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"],i.customHeaders)}putRoutingSmsIdentityresolutionPhonenumber(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "addressId" when calling putRoutingSmsIdentityresolutionPhonenumber';if(i==null)throw'Missing the required parameter "body" when calling putRoutingSmsIdentityresolutionPhonenumber';return this.apiClient.callApi("/api/v2/routing/sms/identityresolution/phonenumbers/{addressId}","PUT",{addressId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putRoutingUserDirectroutingbackupSettings(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling putRoutingUserDirectroutingbackupSettings';if(i==null)throw'Missing the required parameter "body" when calling putRoutingUserDirectroutingbackupSettings';return this.apiClient.callApi("/api/v2/routing/users/{userId}/directroutingbackup/settings","PUT",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putRoutingUserUtilization(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling putRoutingUserUtilization';if(i==null)throw'Missing the required parameter "body" when calling putRoutingUserUtilization';return this.apiClient.callApi("/api/v2/routing/users/{userId}/utilization","PUT",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putRoutingUtilization(e,i){if(i=i||{},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"],i.customHeaders)}putRoutingUtilizationLabel(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "labelId" when calling putRoutingUtilizationLabel';if(i==null)throw'Missing the required parameter "body" when calling putRoutingUtilizationLabel';return this.apiClient.callApi("/api/v2/routing/utilization/labels/{labelId}","PUT",{labelId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putRoutingWrapupcode(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "codeId" when calling putRoutingWrapupcode';if(i==null)throw'Missing the required parameter "body" when calling putRoutingWrapupcode';return this.apiClient.callApi("/api/v2/routing/wrapupcodes/{codeId}","PUT",{codeId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putUserRoutingskill(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "userId" when calling putUserRoutingskill';if(i==null||i==="")throw'Missing the required parameter "skillId" when calling putUserRoutingskill';if(n==null)throw'Missing the required parameter "body" when calling putUserRoutingskill';return this.apiClient.callApi("/api/v2/users/{userId}/routingskills/{skillId}","PUT",{userId:e,skillId:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}putUserRoutingskillsBulk(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling putUserRoutingskillsBulk';if(i==null)throw'Missing the required parameter "body" when calling putUserRoutingskillsBulk';return this.apiClient.callApi("/api/v2/users/{userId}/routingskills/bulk","PUT",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}},Eb=class{constructor(e){this.apiClient=e||q.instance}deleteScimUser(e,i){if(i=i||{},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":i.ifMatch},{},null,["PureCloud OAuth"],["application/json"],["application/scim+json","application/json"],i.customHeaders)}deleteScimV2User(e,i){if(i=i||{},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":i.ifMatch},{},null,["PureCloud OAuth"],["application/json"],["application/scim+json","application/json"],i.customHeaders)}getScimGroup(e,i){if(i=i||{},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(i.attributes,"multi"),excludedAttributes:this.apiClient.buildCollectionParam(i.excludedAttributes,"multi")},{"If-None-Match":i.ifNoneMatch},{},null,["PureCloud OAuth"],["application/json"],["application/scim+json","application/json"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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(i.attributes,"multi"),excludedAttributes:this.apiClient.buildCollectionParam(i.excludedAttributes,"multi")},{"If-None-Match":i.ifNoneMatch},{},null,["PureCloud OAuth"],["application/json"],["application/scim+json","application/json"],i.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,i){if(i=i||{},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(i.attributes,"multi"),excludedAttributes:this.apiClient.buildCollectionParam(i.excludedAttributes,"multi")},{"If-None-Match":i.ifNoneMatch},{},null,["PureCloud OAuth"],["application/json"],["application/scim+json","application/json"],i.customHeaders)}getScimV2Groups(e,i){if(i=i||{},e==null)throw'Missing the required parameter "filter" when calling getScimV2Groups';return this.apiClient.callApi("/api/v2/scim/v2/groups","GET",{},{startIndex:i.startIndex,count:i.count,attributes:this.apiClient.buildCollectionParam(i.attributes,"multi"),excludedAttributes:this.apiClient.buildCollectionParam(i.excludedAttributes,"multi"),filter:e},{},{},null,["PureCloud OAuth"],["application/json"],["application/scim+json","application/json"],i.customHeaders)}getScimV2Resourcetype(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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(i.attributes,"multi"),excludedAttributes:this.apiClient.buildCollectionParam(i.excludedAttributes,"multi")},{"If-None-Match":i.ifNoneMatch},{},null,["PureCloud OAuth"],["application/json"],["application/scim+json","application/json"],i.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,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "groupId" when calling patchScimGroup';if(i==null)throw'Missing the required parameter "body" when calling patchScimGroup';return this.apiClient.callApi("/api/v2/scim/groups/{groupId}","PATCH",{groupId:e},{},{"If-Match":n.ifMatch},{},i,["PureCloud OAuth"],["application/scim+json","application/json"],["application/scim+json","application/json"],n.customHeaders)}patchScimUser(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling patchScimUser';if(i==null)throw'Missing the required parameter "body" when calling patchScimUser';return this.apiClient.callApi("/api/v2/scim/users/{userId}","PATCH",{userId:e},{},{"If-Match":n.ifMatch},{},i,["PureCloud OAuth"],["application/scim+json","application/json"],["application/scim+json","application/json"],n.customHeaders)}patchScimV2Group(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "groupId" when calling patchScimV2Group';if(i==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":n.ifMatch},{},i,["PureCloud OAuth"],["application/scim+json","application/json"],["application/scim+json","application/json"],n.customHeaders)}patchScimV2User(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling patchScimV2User';if(i==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":n.ifMatch},{},i,["PureCloud OAuth"],["application/scim+json","application/json"],["application/scim+json","application/json"],n.customHeaders)}postScimUsers(e,i){if(i=i||{},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"],i.customHeaders)}postScimV2Users(e,i){if(i=i||{},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"],i.customHeaders)}putScimGroup(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "groupId" when calling putScimGroup';if(i==null)throw'Missing the required parameter "body" when calling putScimGroup';return this.apiClient.callApi("/api/v2/scim/groups/{groupId}","PUT",{groupId:e},{},{"If-Match":n.ifMatch},{},i,["PureCloud OAuth"],["application/scim+json","application/json"],["application/scim+json","application/json"],n.customHeaders)}putScimUser(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling putScimUser';if(i==null)throw'Missing the required parameter "body" when calling putScimUser';return this.apiClient.callApi("/api/v2/scim/users/{userId}","PUT",{userId:e},{},{"If-Match":n.ifMatch},{},i,["PureCloud OAuth"],["application/scim+json","application/json"],["application/scim+json","application/json"],n.customHeaders)}putScimV2Group(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "groupId" when calling putScimV2Group';if(i==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":n.ifMatch},{},i,["PureCloud OAuth"],["application/scim+json","application/json"],["application/scim+json","application/json"],n.customHeaders)}putScimV2User(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling putScimV2User';if(i==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":n.ifMatch},{},i,["PureCloud OAuth"],["application/scim+json","application/json"],["application/scim+json","application/json"],n.customHeaders)}},kb=class{constructor(e){this.apiClient=e||q.instance}getScript(e,i){if(i=i||{},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"],i.customHeaders)}getScriptPage(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "scriptId" when calling getScriptPage';if(i==null||i==="")throw'Missing the required parameter "pageId" when calling getScriptPage';return this.apiClient.callApi("/api/v2/scripts/{scriptId}/pages/{pageId}","GET",{scriptId:e,pageId:i},{scriptDataVersion:n.scriptDataVersion},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getScriptPages(e,i){if(i=i||{},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:i.scriptDataVersion},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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:i.input,output:i.output,type:i.type,scriptDataVersion:i.scriptDataVersion},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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:i.scriptDataVersion},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getScriptsPublishedScriptIdPage(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "scriptId" when calling getScriptsPublishedScriptIdPage';if(i==null||i==="")throw'Missing the required parameter "pageId" when calling getScriptsPublishedScriptIdPage';return this.apiClient.callApi("/api/v2/scripts/published/{scriptId}/pages/{pageId}","GET",{scriptId:e,pageId:i},{scriptDataVersion:n.scriptDataVersion},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getScriptsPublishedScriptIdPages(e,i){if(i=i||{},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:i.scriptDataVersion},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getScriptsPublishedScriptIdVariables(e,i){if(i=i||{},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:i.input,output:i.output,type:i.type,scriptDataVersion:i.scriptDataVersion},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getScriptsUploadStatus(e,i){if(i=i||{},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:i.longPoll},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postScriptExport(e,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "scriptId" when calling postScriptExport';return this.apiClient.callApi("/api/v2/scripts/{scriptId}/export","POST",{scriptId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.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)}},qb=class{constructor(e){this.apiClient=e||q.instance}getDocumentationGknSearch(e,i){if(i=i||{},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"],i.customHeaders)}getDocumentationSearch(e,i){if(i=i||{},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"],i.customHeaders)}getGroupsSearch(e,i){if(i=i||{},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(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getLocationsSearch(e,i){if(i=i||{},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(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getSearch(e,i){if(i=i||{},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(i.expand,"multi"),profile:i.profile},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getSearchSuggest(e,i){if(i=i||{},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(i.expand,"multi"),profile:i.profile},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getTelephonyProvidersEdgesSitesSearch(e,i){if(i=i||{},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(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getUsersSearch(e,i){if(i=i||{},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(i.expand,"multi"),integrationPresenceSource:i.integrationPresenceSource},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getVoicemailSearch(e,i){if(i=i||{},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(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postConversationsCustomattributesSearch(e,i){if(i=i||{},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"],i.customHeaders)}postConversationsParticipantsAttributesSearch(e,i){if(i=i||{},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"],i.customHeaders)}postDocumentationAllSearch(e,i){if(i=i||{},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"],i.customHeaders)}postDocumentationGknSearch(e,i){if(i=i||{},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"],i.customHeaders)}postDocumentationSearch(e,i){if(i=i||{},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"],i.customHeaders)}postGroupsSearch(e,i){if(i=i||{},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"],i.customHeaders)}postLocationsSearch(e,i){if(i=i||{},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"],i.customHeaders)}postSearch(e,i){if(i=i||{},e==null)throw'Missing the required parameter "body" when calling postSearch';return this.apiClient.callApi("/api/v2/search","POST",{},{profile:i.profile},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postSearchSuggest(e,i){if(i=i||{},e==null)throw'Missing the required parameter "body" when calling postSearchSuggest';return this.apiClient.callApi("/api/v2/search/suggest","POST",{},{profile:i.profile},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postSpeechandtextanalyticsTranscriptsSearch(e,i){if(i=i||{},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"],i.customHeaders)}postTeamsSearch(e,i){if(i=i||{},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"],i.customHeaders)}postTelephonyProvidersEdgesSitesSearch(e,i){if(i=i||{},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"],i.customHeaders)}postUsersSearch(e,i){if(i=i||{},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"],i.customHeaders)}postUsersSearchConversationTarget(e,i){if(i=i||{},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"],i.customHeaders)}postUsersSearchQueuemembersManage(e,i){if(i=i||{},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"],i.customHeaders)}postUsersSearchTeamsAssign(e,i){if(i=i||{},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"],i.customHeaders)}postVoicemailSearch(e,i){if(i=i||{},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"],i.customHeaders)}},_b=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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}patchUsersAgentuiAgentsAutoanswerAgentIdSettings(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "agentId" when calling patchUsersAgentuiAgentsAutoanswerAgentIdSettings';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.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,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "agentId" when calling putUsersAgentuiAgentsAutoanswerAgentIdSettings';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}},Hb=class{constructor(e){this.apiClient=e||q.instance}deleteSocialmediaEscalationrule(e,i){if(i=i||{},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"],i.customHeaders)}deleteSocialmediaMessage(e,i){if(i=i||{},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"],i.customHeaders)}deleteSocialmediaTopic(e,i){if(i=i||{},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:i.hardDelete},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}deleteSocialmediaTopicDataingestionrulesFacebookFacebookIngestionRuleId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "topicId" when calling deleteSocialmediaTopicDataingestionrulesFacebookFacebookIngestionRuleId';if(i==null||i==="")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:i},{hardDelete:n.hardDelete},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteSocialmediaTopicDataingestionrulesGooglebusinessprofileGoogleBusinessProfileIngestionRuleId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "topicId" when calling deleteSocialmediaTopicDataingestionrulesGooglebusinessprofileGoogleBusinessProfileIngestionRuleId';if(i==null||i==="")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:i},{hardDelete:n.hardDelete},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteSocialmediaTopicDataingestionrulesInstagramInstagramIngestionRuleId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "topicId" when calling deleteSocialmediaTopicDataingestionrulesInstagramInstagramIngestionRuleId';if(i==null||i==="")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:i},{hardDelete:n.hardDelete},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteSocialmediaTopicDataingestionrulesOpenOpenId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "topicId" when calling deleteSocialmediaTopicDataingestionrulesOpenOpenId';if(i==null||i==="")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:i},{hardDelete:n.hardDelete},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteSocialmediaTopicDataingestionrulesTwitterTwitterIngestionRuleId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "topicId" when calling deleteSocialmediaTopicDataingestionrulesTwitterTwitterIngestionRuleId';if(i==null||i==="")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:i},{hardDelete:n.hardDelete},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getSocialmediaAnalyticsAggregatesJob(e,i){if(i=i||{},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"],i.customHeaders)}getSocialmediaAnalyticsAggregatesJobResults(e,i){if(i=i||{},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:i.cursor},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getSocialmediaAnalyticsMessagesJob(e,i){if(i=i||{},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"],i.customHeaders)}getSocialmediaAnalyticsMessagesJobResults(e,i){if(i=i||{},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:i.cursor},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getSocialmediaEscalationrule(e,i){if(i=i||{},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:i.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getSocialmediaEscalationrules(e,i){if(i=i||{},e==null)throw'Missing the required parameter "divisionId" when calling getSocialmediaEscalationrules';return this.apiClient.callApi("/api/v2/socialmedia/escalationrules","GET",{},{pageNumber:i.pageNumber,pageSize:i.pageSize,divisionId:e},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getSocialmediaTopic(e,i){if(i=i||{},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:i.includeDeleted},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getSocialmediaTopicDataingestionrules(e,i){if(i=i||{},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:i.pageNumber,pageSize:i.pageSize,includeDeleted:i.includeDeleted},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getSocialmediaTopicDataingestionrulesFacebookFacebookIngestionRuleId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "topicId" when calling getSocialmediaTopicDataingestionrulesFacebookFacebookIngestionRuleId';if(i==null||i==="")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:i},{includeDeleted:n.includeDeleted},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getSocialmediaTopicDataingestionrulesFacebookFacebookIngestionRuleIdVersion(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "topicId" when calling getSocialmediaTopicDataingestionrulesFacebookFacebookIngestionRuleIdVersion';if(i==null||i==="")throw'Missing the required parameter "facebookIngestionRuleId" when calling getSocialmediaTopicDataingestionrulesFacebookFacebookIngestionRuleIdVersion';if(n==null||n==="")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:i,dataIngestionRuleVersion:n},{includeDeleted:a.includeDeleted},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getSocialmediaTopicDataingestionrulesFacebookFacebookIngestionRuleIdVersions(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "topicId" when calling getSocialmediaTopicDataingestionrulesFacebookFacebookIngestionRuleIdVersions';if(i==null||i==="")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:i},{pageNumber:n.pageNumber,pageSize:n.pageSize,includeDeleted:n.includeDeleted},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getSocialmediaTopicDataingestionrulesGooglebusinessprofileGoogleBusinessProfileIngestionRuleId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "topicId" when calling getSocialmediaTopicDataingestionrulesGooglebusinessprofileGoogleBusinessProfileIngestionRuleId';if(i==null||i==="")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:i},{includeDeleted:n.includeDeleted},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getSocialmediaTopicDataingestionrulesGooglebusinessprofileGoogleBusinessProfileIngestionRuleIdVersion(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "topicId" when calling getSocialmediaTopicDataingestionrulesGooglebusinessprofileGoogleBusinessProfileIngestionRuleIdVersion';if(i==null||i==="")throw'Missing the required parameter "googleBusinessProfileIngestionRuleId" when calling getSocialmediaTopicDataingestionrulesGooglebusinessprofileGoogleBusinessProfileIngestionRuleIdVersion';if(n==null||n==="")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:i,dataIngestionRuleVersion:n},{includeDeleted:a.includeDeleted},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getSocialmediaTopicDataingestionrulesGooglebusinessprofileGoogleBusinessProfileIngestionRuleIdVersions(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "topicId" when calling getSocialmediaTopicDataingestionrulesGooglebusinessprofileGoogleBusinessProfileIngestionRuleIdVersions';if(i==null||i==="")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:i},{pageNumber:n.pageNumber,pageSize:n.pageSize,includeDeleted:n.includeDeleted},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getSocialmediaTopicDataingestionrulesInstagramInstagramIngestionRuleId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "topicId" when calling getSocialmediaTopicDataingestionrulesInstagramInstagramIngestionRuleId';if(i==null||i==="")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:i},{includeDeleted:n.includeDeleted},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getSocialmediaTopicDataingestionrulesInstagramInstagramIngestionRuleIdVersion(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "topicId" when calling getSocialmediaTopicDataingestionrulesInstagramInstagramIngestionRuleIdVersion';if(i==null||i==="")throw'Missing the required parameter "instagramIngestionRuleId" when calling getSocialmediaTopicDataingestionrulesInstagramInstagramIngestionRuleIdVersion';if(n==null||n==="")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:i,dataIngestionRuleVersion:n},{includeDeleted:a.includeDeleted},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getSocialmediaTopicDataingestionrulesInstagramInstagramIngestionRuleIdVersions(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "topicId" when calling getSocialmediaTopicDataingestionrulesInstagramInstagramIngestionRuleIdVersions';if(i==null||i==="")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:i},{pageNumber:n.pageNumber,pageSize:n.pageSize,includeDeleted:n.includeDeleted},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getSocialmediaTopicDataingestionrulesOpenOpenId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "topicId" when calling getSocialmediaTopicDataingestionrulesOpenOpenId';if(i==null||i==="")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:i},{includeDeleted:n.includeDeleted},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getSocialmediaTopicDataingestionrulesOpenOpenIdVersion(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "topicId" when calling getSocialmediaTopicDataingestionrulesOpenOpenIdVersion';if(i==null||i==="")throw'Missing the required parameter "openId" when calling getSocialmediaTopicDataingestionrulesOpenOpenIdVersion';if(n==null||n==="")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:i,dataIngestionRuleVersion:n},{includeDeleted:a.includeDeleted},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getSocialmediaTopicDataingestionrulesOpenOpenIdVersions(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "topicId" when calling getSocialmediaTopicDataingestionrulesOpenOpenIdVersions';if(i==null||i==="")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:i},{pageNumber:n.pageNumber,pageSize:n.pageSize,includeDeleted:n.includeDeleted},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getSocialmediaTopicDataingestionrulesTwitterTwitterIngestionRuleId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "topicId" when calling getSocialmediaTopicDataingestionrulesTwitterTwitterIngestionRuleId';if(i==null||i==="")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:i},{includeDeleted:n.includeDeleted},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getSocialmediaTopicDataingestionrulesTwitterTwitterIngestionRuleIdVersion(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "topicId" when calling getSocialmediaTopicDataingestionrulesTwitterTwitterIngestionRuleIdVersion';if(i==null||i==="")throw'Missing the required parameter "twitterIngestionRuleId" when calling getSocialmediaTopicDataingestionrulesTwitterTwitterIngestionRuleIdVersion';if(n==null||n==="")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:i,dataIngestionRuleVersion:n},{includeDeleted:a.includeDeleted},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getSocialmediaTopicDataingestionrulesTwitterTwitterIngestionRuleIdVersions(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "topicId" when calling getSocialmediaTopicDataingestionrulesTwitterTwitterIngestionRuleIdVersions';if(i==null||i==="")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:i},{pageNumber:n.pageNumber,pageSize:n.pageSize,includeDeleted:n.includeDeleted},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.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,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "topicId" when calling patchSocialmediaTopic';return this.apiClient.callApi("/api/v2/socialmedia/topics/{topicId}","PATCH",{topicId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}patchSocialmediaTopicDataingestionrulesFacebookFacebookIngestionRuleId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "topicId" when calling patchSocialmediaTopicDataingestionrulesFacebookFacebookIngestionRuleId';if(i==null||i==="")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:i},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchSocialmediaTopicDataingestionrulesGooglebusinessprofileGoogleBusinessProfileIngestionRuleId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "topicId" when calling patchSocialmediaTopicDataingestionrulesGooglebusinessprofileGoogleBusinessProfileIngestionRuleId';if(i==null||i==="")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:i},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchSocialmediaTopicDataingestionrulesInstagramInstagramIngestionRuleId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "topicId" when calling patchSocialmediaTopicDataingestionrulesInstagramInstagramIngestionRuleId';if(i==null||i==="")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:i},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchSocialmediaTopicDataingestionrulesOpenOpenId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "topicId" when calling patchSocialmediaTopicDataingestionrulesOpenOpenId';if(i==null||i==="")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:i},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchSocialmediaTopicDataingestionrulesTwitterTwitterIngestionRuleId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "topicId" when calling patchSocialmediaTopicDataingestionrulesTwitterTwitterIngestionRuleId';if(i==null||i==="")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:i},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postSocialmediaAnalyticsAggregatesJobs(e,i){if(i=i||{},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"],i.customHeaders)}postSocialmediaAnalyticsMessagesJobs(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},e==null)throw'Missing the required parameter "divisionId" when calling postSocialmediaEscalationsMessages';return this.apiClient.callApi("/api/v2/socialmedia/escalations/messages","POST",{},{divisionId:e},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postSocialmediaTopicDataingestionrulesFacebook(e,i){if(i=i||{},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},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postSocialmediaTopicDataingestionrulesGooglebusinessprofile(e,i){if(i=i||{},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},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postSocialmediaTopicDataingestionrulesInstagram(e,i){if(i=i||{},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},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postSocialmediaTopicDataingestionrulesOpen(e,i){if(i=i||{},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},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postSocialmediaTopicDataingestionrulesOpenRuleIdMessagesBulk(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "topicId" when calling postSocialmediaTopicDataingestionrulesOpenRuleIdMessagesBulk';if(i==null||i==="")throw'Missing the required parameter "ruleId" when calling postSocialmediaTopicDataingestionrulesOpenRuleIdMessagesBulk';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postSocialmediaTopicDataingestionrulesOpenRuleIdReactionsBulk(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "topicId" when calling postSocialmediaTopicDataingestionrulesOpenRuleIdReactionsBulk';if(i==null||i==="")throw'Missing the required parameter "ruleId" when calling postSocialmediaTopicDataingestionrulesOpenRuleIdReactionsBulk';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postSocialmediaTopicDataingestionrulesTwitter(e,i){if(i=i||{},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},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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"],i.customHeaders)}putSocialmediaEscalationrule(e,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "escalationRuleId" when calling putSocialmediaEscalationrule';return this.apiClient.callApi("/api/v2/socialmedia/escalationrules/{escalationRuleId}","PUT",{escalationRuleId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}putSocialmediaTopicDataingestionrulesFacebookFacebookIngestionRuleId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "topicId" when calling putSocialmediaTopicDataingestionrulesFacebookFacebookIngestionRuleId';if(i==null||i==="")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:i},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putSocialmediaTopicDataingestionrulesGooglebusinessprofileGoogleBusinessProfileIngestionRuleId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "topicId" when calling putSocialmediaTopicDataingestionrulesGooglebusinessprofileGoogleBusinessProfileIngestionRuleId';if(i==null||i==="")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:i},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putSocialmediaTopicDataingestionrulesInstagramInstagramIngestionRuleId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "topicId" when calling putSocialmediaTopicDataingestionrulesInstagramInstagramIngestionRuleId';if(i==null||i==="")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:i},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putSocialmediaTopicDataingestionrulesOpenOpenId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "topicId" when calling putSocialmediaTopicDataingestionrulesOpenOpenId';if(i==null||i==="")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:i},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putSocialmediaTopicDataingestionrulesTwitterTwitterIngestionRuleId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "topicId" when calling putSocialmediaTopicDataingestionrulesTwitterTwitterIngestionRuleId';if(i==null||i==="")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:i},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}},Rb=class{constructor(e){this.apiClient=e||q.instance}deleteSpeechandtextanalyticsCategory(e,i){if(i=i||{},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"],i.customHeaders)}deleteSpeechandtextanalyticsDictionaryfeedbackDictionaryFeedbackId(e,i){if(i=i||{},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"],i.customHeaders)}deleteSpeechandtextanalyticsProgram(e,i){if(i=i||{},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:i.forceDelete},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}deleteSpeechandtextanalyticsReprocessingJob(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}deleteSpeechandtextanalyticsTopic(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getSpeechandtextanalyticsConversation(e,i){if(i=i||{},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"],i.customHeaders)}getSpeechandtextanalyticsConversationCategories(e,i){if(i=i||{},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:i.pageSize,pageNumber:i.pageNumber},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getSpeechandtextanalyticsConversationCommunicationTranscripturl(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getSpeechandtextanalyticsConversationCommunicationTranscripturl';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getSpeechandtextanalyticsConversationCommunicationTranscripturls(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getSpeechandtextanalyticsConversationCommunicationTranscripturls';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getSpeechandtextanalyticsConversationSentiments(e,i){if(i=i||{},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"],i.customHeaders)}getSpeechandtextanalyticsConversationSummaries(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getSpeechandtextanalyticsProgram(e,i){if(i=i||{},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"],i.customHeaders)}getSpeechandtextanalyticsProgramMappings(e,i){if(i=i||{},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"],i.customHeaders)}getSpeechandtextanalyticsProgramSettingsInsights(e,i){if(i=i||{},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"],i.customHeaders)}getSpeechandtextanalyticsProgramTranscriptionengines(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getSpeechandtextanalyticsProgramsSettingsInsights(e){return e=e||{},this.apiClient.callApi("/api/v2/speechandtextanalytics/programs/settings/insights","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,programIds:this.apiClient.buildCollectionParam(e.programIds,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getSpeechandtextanalyticsProgramsTopiclinksJob(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getSpeechandtextanalyticsReprocessingJobInteractions(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getSpeechandtextanalyticsTopics(e){return e=e||{},this.apiClient.callApi("/api/v2/speechandtextanalytics/topics","GET",{},{nextPage:e.nextPage,pageSize:e.pageSize,pageNumber:e.pageNumber,state:e.state,name:e.name,ids:this.apiClient.buildCollectionParam(e.ids,"multi"),dialects:this.apiClient.buildCollectionParam(e.dialects,"multi"),sortBy:e.sortBy,sortOrder:e.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getSpeechandtextanalyticsTopicsDialects(e){return e=e||{},this.apiClient.callApi("/api/v2/speechandtextanalytics/topics/dialects","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getSpeechandtextanalyticsTopicsGeneral(e){return e=e||{},this.apiClient.callApi("/api/v2/speechandtextanalytics/topics/general","GET",{},{dialect:e.dialect},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getSpeechandtextanalyticsTopicsGeneralStatus(e){return e=e||{},this.apiClient.callApi("/api/v2/speechandtextanalytics/topics/general/status","GET",{},{dialect:e.dialect},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getSpeechandtextanalyticsTopicsPublishjob(e,i){if(i=i||{},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"],i.customHeaders)}getSpeechandtextanalyticsTopicsTestphraseJob(e,i){if(i=i||{},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"],i.customHeaders)}getSpeechandtextanalyticsTranslationsLanguageConversation(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "languageId" when calling getSpeechandtextanalyticsTranslationsLanguageConversation';if(i==null||i==="")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:i},{communicationId:n.communicationId,recordingId:n.recordingId},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getSpeechandtextanalyticsTranslationsLanguages(e){return e=e||{},this.apiClient.callApi("/api/v2/speechandtextanalytics/translations/languages","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}patchSpeechandtextanalyticsSettings(e,i){if(i=i||{},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"],i.customHeaders)}postSpeechandtextanalyticsCategories(e,i){if(i=i||{},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"],i.customHeaders)}postSpeechandtextanalyticsDictionaryfeedback(e,i){if(i=i||{},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"],i.customHeaders)}postSpeechandtextanalyticsPrograms(e,i){if(i=i||{},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"],i.customHeaders)}postSpeechandtextanalyticsProgramsGeneralJobs(e,i){if(i=i||{},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"],i.customHeaders)}postSpeechandtextanalyticsProgramsPublishjobs(e,i){if(i=i||{},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"],i.customHeaders)}postSpeechandtextanalyticsReprocessingJobs(e,i){if(i=i||{},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"],i.customHeaders)}postSpeechandtextanalyticsSentimentfeedback(e,i){if(i=i||{},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"],i.customHeaders)}postSpeechandtextanalyticsTopics(e,i){if(i=i||{},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"],i.customHeaders)}postSpeechandtextanalyticsTopicsPublishjobs(e,i){if(i=i||{},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"],i.customHeaders)}postSpeechandtextanalyticsTopicsTestphraseJobs(e,i){if(i=i||{},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"],i.customHeaders)}postSpeechandtextanalyticsTranscriptsSearch(e,i){if(i=i||{},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"],i.customHeaders)}putSpeechandtextanalyticsCategory(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "categoryId" when calling putSpeechandtextanalyticsCategory';if(i==null)throw'Missing the required parameter "body" when calling putSpeechandtextanalyticsCategory';return this.apiClient.callApi("/api/v2/speechandtextanalytics/categories/{categoryId}","PUT",{categoryId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putSpeechandtextanalyticsDictionaryfeedbackDictionaryFeedbackId(e,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "dictionaryFeedbackId" when calling putSpeechandtextanalyticsDictionaryfeedbackDictionaryFeedbackId';return this.apiClient.callApi("/api/v2/speechandtextanalytics/dictionaryfeedback/{dictionaryFeedbackId}","PUT",{dictionaryFeedbackId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}putSpeechandtextanalyticsProgram(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "programId" when calling putSpeechandtextanalyticsProgram';if(i==null)throw'Missing the required parameter "body" when calling putSpeechandtextanalyticsProgram';return this.apiClient.callApi("/api/v2/speechandtextanalytics/programs/{programId}","PUT",{programId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putSpeechandtextanalyticsProgramMappings(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "programId" when calling putSpeechandtextanalyticsProgramMappings';if(i==null)throw'Missing the required parameter "body" when calling putSpeechandtextanalyticsProgramMappings';return this.apiClient.callApi("/api/v2/speechandtextanalytics/programs/{programId}/mappings","PUT",{programId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putSpeechandtextanalyticsProgramSettingsInsights(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "programId" when calling putSpeechandtextanalyticsProgramSettingsInsights';if(i==null)throw'Missing the required parameter "body" when calling putSpeechandtextanalyticsProgramSettingsInsights';return this.apiClient.callApi("/api/v2/speechandtextanalytics/programs/{programId}/settings/insights","PUT",{programId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putSpeechandtextanalyticsProgramTranscriptionengines(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "programId" when calling putSpeechandtextanalyticsProgramTranscriptionengines';if(i==null)throw'Missing the required parameter "body" when calling putSpeechandtextanalyticsProgramTranscriptionengines';return this.apiClient.callApi("/api/v2/speechandtextanalytics/programs/{programId}/transcriptionengines","PUT",{programId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putSpeechandtextanalyticsSettings(e,i){if(i=i||{},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"],i.customHeaders)}putSpeechandtextanalyticsTopic(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "topicId" when calling putSpeechandtextanalyticsTopic';if(i==null)throw'Missing the required parameter "body" when calling putSpeechandtextanalyticsTopic';return this.apiClient.callApi("/api/v2/speechandtextanalytics/topics/{topicId}","PUT",{topicId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}},Ib=class{constructor(e){this.apiClient=e||q.instance}deleteStationAssociateduser(e,i){if(i=i||{},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"],i.customHeaders)}getStation(e,i){if(i=i||{},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"],i.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)}},zb=class{constructor(e){this.apiClient=e||q.instance}getSearch(e,i){if(i=i||{},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(i.expand,"multi"),profile:i.profile},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getSearchSuggest(e,i){if(i=i||{},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(i.expand,"multi"),profile:i.profile},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postSearch(e,i){if(i=i||{},e==null)throw'Missing the required parameter "body" when calling postSearch';return this.apiClient.callApi("/api/v2/search","POST",{},{profile:i.profile},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postSearchSuggest(e,i){if(i=i||{},e==null)throw'Missing the required parameter "body" when calling postSearchSuggest';return this.apiClient.callApi("/api/v2/search/suggest","POST",{},{profile:i.profile},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}},Db=class{constructor(e){this.apiClient=e||q.instance}deleteTaskmanagementWorkbin(e,i){if(i=i||{},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"],i.customHeaders)}deleteTaskmanagementWorkitem(e,i){if(i=i||{},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"],i.customHeaders)}deleteTaskmanagementWorkitemsBulkAddJob(e,i){if(i=i||{},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"],i.customHeaders)}deleteTaskmanagementWorkitemsBulkTerminateJob(e,i){if(i=i||{},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"],i.customHeaders)}deleteTaskmanagementWorkitemsSchema(e,i){if(i=i||{},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"],i.customHeaders)}deleteTaskmanagementWorktype(e,i){if(i=i||{},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"],i.customHeaders)}deleteTaskmanagementWorktypeFlowsDatebasedRule(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "worktypeId" when calling deleteTaskmanagementWorktypeFlowsDatebasedRule';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteTaskmanagementWorktypeFlowsOnattributechangeRule(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "worktypeId" when calling deleteTaskmanagementWorktypeFlowsOnattributechangeRule';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteTaskmanagementWorktypeFlowsOncreateRule(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "worktypeId" when calling deleteTaskmanagementWorktypeFlowsOncreateRule';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteTaskmanagementWorktypeStatus(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "worktypeId" when calling deleteTaskmanagementWorktypeStatus';if(i==null||i==="")throw'Missing the required parameter "statusId" when calling deleteTaskmanagementWorktypeStatus';return this.apiClient.callApi("/api/v2/taskmanagement/worktypes/{worktypeId}/statuses/{statusId}","DELETE",{worktypeId:e,statusId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getTaskmanagementWorkbin(e,i){if(i=i||{},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"],i.customHeaders)}getTaskmanagementWorkbinHistory(e,i){if(i=i||{},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:i.after,pageSize:i.pageSize,sortOrder:i.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getTaskmanagementWorkbinVersion(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "workbinId" when calling getTaskmanagementWorkbinVersion';if(i==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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getTaskmanagementWorkbinVersions(e,i){if(i=i||{},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:i.after,pageSize:i.pageSize,sortOrder:i.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getTaskmanagementWorkitem(e,i){if(i=i||{},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(i.expands,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getTaskmanagementWorkitemHistory(e,i){if(i=i||{},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:i.after,pageSize:i.pageSize,sortOrder:i.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getTaskmanagementWorkitemUserWrapups(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "workitemId" when calling getTaskmanagementWorkitemUserWrapups';if(i==null||i==="")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:i},{expands:n.expands,after:n.after,pageSize:n.pageSize,sortOrder:n.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getTaskmanagementWorkitemVersion(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "workitemId" when calling getTaskmanagementWorkitemVersion';if(i==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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getTaskmanagementWorkitemVersions(e,i){if(i=i||{},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:i.after,pageSize:i.pageSize,sortOrder:i.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getTaskmanagementWorkitemWrapups(e,i){if(i=i||{},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:i.expands,after:i.after,pageSize:i.pageSize,sortOrder:i.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getTaskmanagementWorkitemsBulkAddJob(e,i){if(i=i||{},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"],i.customHeaders)}getTaskmanagementWorkitemsBulkAddJobResults(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getTaskmanagementWorkitemsBulkTerminateJobResults(e,i){if(i=i||{},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"],i.customHeaders)}getTaskmanagementWorkitemsQueryJob(e,i){if(i=i||{},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"],i.customHeaders)}getTaskmanagementWorkitemsQueryJobResults(e,i){if(i=i||{},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"],i.customHeaders)}getTaskmanagementWorkitemsSchema(e,i){if(i=i||{},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"],i.customHeaders)}getTaskmanagementWorkitemsSchemaVersion(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "schemaId" when calling getTaskmanagementWorkitemsSchemaVersion';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getTaskmanagementWorkitemsSchemaVersions(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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(i.expands,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getTaskmanagementWorktypeFlowsDatebasedRule(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "worktypeId" when calling getTaskmanagementWorktypeFlowsDatebasedRule';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getTaskmanagementWorktypeFlowsDatebasedRules(e,i){if(i=i||{},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:i.after,pageSize:i.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getTaskmanagementWorktypeFlowsOnattributechangeRule(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "worktypeId" when calling getTaskmanagementWorktypeFlowsOnattributechangeRule';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getTaskmanagementWorktypeFlowsOnattributechangeRules(e,i){if(i=i||{},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:i.after,pageSize:i.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getTaskmanagementWorktypeFlowsOncreateRule(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "worktypeId" when calling getTaskmanagementWorktypeFlowsOncreateRule';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getTaskmanagementWorktypeFlowsOncreateRules(e,i){if(i=i||{},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:i.after,pageSize:i.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getTaskmanagementWorktypeHistory(e,i){if(i=i||{},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:i.after,pageSize:i.pageSize,sortOrder:i.sortOrder,fields:this.apiClient.buildCollectionParam(i.fields,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getTaskmanagementWorktypeStatus(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "worktypeId" when calling getTaskmanagementWorktypeStatus';if(i==null||i==="")throw'Missing the required parameter "statusId" when calling getTaskmanagementWorktypeStatus';return this.apiClient.callApi("/api/v2/taskmanagement/worktypes/{worktypeId}/statuses/{statusId}","GET",{worktypeId:e,statusId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getTaskmanagementWorktypeStatuses(e,i){if(i=i||{},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"],i.customHeaders)}getTaskmanagementWorktypeVersion(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "worktypeId" when calling getTaskmanagementWorktypeVersion';if(i==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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getTaskmanagementWorktypeVersions(e,i){if(i=i||{},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:i.after,pageSize:i.pageSize,sortOrder:i.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}patchTaskmanagementWorkbin(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "workbinId" when calling patchTaskmanagementWorkbin';if(i==null)throw'Missing the required parameter "body" when calling patchTaskmanagementWorkbin';return this.apiClient.callApi("/api/v2/taskmanagement/workbins/{workbinId}","PATCH",{workbinId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchTaskmanagementWorkitem(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "workitemId" when calling patchTaskmanagementWorkitem';if(i==null)throw'Missing the required parameter "body" when calling patchTaskmanagementWorkitem';return this.apiClient.callApi("/api/v2/taskmanagement/workitems/{workitemId}","PATCH",{workitemId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchTaskmanagementWorkitemAssignment(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "workitemId" when calling patchTaskmanagementWorkitemAssignment';if(i==null)throw'Missing the required parameter "body" when calling patchTaskmanagementWorkitemAssignment';return this.apiClient.callApi("/api/v2/taskmanagement/workitems/{workitemId}/assignment","PATCH",{workitemId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchTaskmanagementWorkitemUserWrapups(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "workitemId" when calling patchTaskmanagementWorkitemUserWrapups';if(i==null||i==="")throw'Missing the required parameter "userId" when calling patchTaskmanagementWorkitemUserWrapups';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchTaskmanagementWorkitemUsersMeWrapups(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "workitemId" when calling patchTaskmanagementWorkitemUsersMeWrapups';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchTaskmanagementWorkitemsBulkAddJob(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "bulkJobId" when calling patchTaskmanagementWorkitemsBulkAddJob';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchTaskmanagementWorkitemsBulkTerminateJob(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "bulkJobId" when calling patchTaskmanagementWorkitemsBulkTerminateJob';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchTaskmanagementWorktype(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "worktypeId" when calling patchTaskmanagementWorktype';if(i==null)throw'Missing the required parameter "body" when calling patchTaskmanagementWorktype';return this.apiClient.callApi("/api/v2/taskmanagement/worktypes/{worktypeId}","PATCH",{worktypeId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchTaskmanagementWorktypeFlowsDatebasedRule(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "worktypeId" when calling patchTaskmanagementWorktypeFlowsDatebasedRule';if(i==null||i==="")throw'Missing the required parameter "ruleId" when calling patchTaskmanagementWorktypeFlowsDatebasedRule';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchTaskmanagementWorktypeFlowsOnattributechangeRule(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "worktypeId" when calling patchTaskmanagementWorktypeFlowsOnattributechangeRule';if(i==null||i==="")throw'Missing the required parameter "ruleId" when calling patchTaskmanagementWorktypeFlowsOnattributechangeRule';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchTaskmanagementWorktypeFlowsOncreateRule(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "worktypeId" when calling patchTaskmanagementWorktypeFlowsOncreateRule';if(i==null||i==="")throw'Missing the required parameter "ruleId" when calling patchTaskmanagementWorktypeFlowsOncreateRule';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchTaskmanagementWorktypeStatus(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "worktypeId" when calling patchTaskmanagementWorktypeStatus';if(i==null||i==="")throw'Missing the required parameter "statusId" when calling patchTaskmanagementWorktypeStatus';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postTaskmanagementWorkbins(e,i){if(i=i||{},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"],i.customHeaders)}postTaskmanagementWorkbinsQuery(e,i){if(i=i||{},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"],i.customHeaders)}postTaskmanagementWorkitemAcdCancel(e,i){if(i=i||{},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"],i.customHeaders)}postTaskmanagementWorkitemDisconnect(e,i){if(i=i||{},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"],i.customHeaders)}postTaskmanagementWorkitemTerminate(e,i){if(i=i||{},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},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postTaskmanagementWorkitems(e,i){if(i=i||{},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"],i.customHeaders)}postTaskmanagementWorkitemsBulkAddJobs(e,i){if(i=i||{},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"],i.customHeaders)}postTaskmanagementWorkitemsBulkTerminateJobs(e,i){if(i=i||{},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"],i.customHeaders)}postTaskmanagementWorkitemsQuery(e,i){if(i=i||{},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"],i.customHeaders)}postTaskmanagementWorkitemsQueryJobs(e,i){if(i=i||{},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"],i.customHeaders)}postTaskmanagementWorkitemsSchemas(e,i){if(i=i||{},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"],i.customHeaders)}postTaskmanagementWorktypeFlowsDatebasedRules(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "worktypeId" when calling postTaskmanagementWorktypeFlowsDatebasedRules';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postTaskmanagementWorktypeFlowsOnattributechangeRules(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "worktypeId" when calling postTaskmanagementWorktypeFlowsOnattributechangeRules';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postTaskmanagementWorktypeFlowsOncreateRules(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "worktypeId" when calling postTaskmanagementWorktypeFlowsOncreateRules';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postTaskmanagementWorktypeStatuses(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "worktypeId" when calling postTaskmanagementWorktypeStatuses';if(i==null)throw'Missing the required parameter "body" when calling postTaskmanagementWorktypeStatuses';return this.apiClient.callApi("/api/v2/taskmanagement/worktypes/{worktypeId}/statuses","POST",{worktypeId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postTaskmanagementWorktypes(e,i){if(i=i||{},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"],i.customHeaders)}postTaskmanagementWorktypesQuery(e,i){if(i=i||{},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"],i.customHeaders)}putTaskmanagementWorkitemsSchema(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "schemaId" when calling putTaskmanagementWorkitemsSchema';if(i==null)throw'Missing the required parameter "body" when calling putTaskmanagementWorkitemsSchema';return this.apiClient.callApi("/api/v2/taskmanagement/workitems/schemas/{schemaId}","PUT",{schemaId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}},Gb=class{constructor(e){this.apiClient=e||q.instance}deleteTeam(e,i){if(i=i||{},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"],i.customHeaders)}deleteTeamMembers(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "teamId" when calling deleteTeamMembers';if(i==null)throw'Missing the required parameter "id" when calling deleteTeamMembers';return this.apiClient.callApi("/api/v2/teams/{teamId}/members","DELETE",{teamId:e},{id:i},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getTeam(e,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "teamId" when calling getTeam';return this.apiClient.callApi("/api/v2/teams/{teamId}","GET",{teamId:e},{expand:i.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getTeamMembers(e,i){if(i=i||{},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:i.pageSize,before:i.before,after:i.after,expand:i.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "teamId" when calling patchTeam';if(i==null)throw'Missing the required parameter "body" when calling patchTeam';return this.apiClient.callApi("/api/v2/teams/{teamId}","PATCH",{teamId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postAnalyticsTeamsActivityQuery(e,i){if(i=i||{},e==null)throw'Missing the required parameter "body" when calling postAnalyticsTeamsActivityQuery';return this.apiClient.callApi("/api/v2/analytics/teams/activity/query","POST",{},{pageSize:i.pageSize,pageNumber:i.pageNumber},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postTeamMembers(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "teamId" when calling postTeamMembers';if(i==null)throw'Missing the required parameter "body" when calling postTeamMembers';return this.apiClient.callApi("/api/v2/teams/{teamId}/members","POST",{teamId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postTeams(e,i){if(i=i||{},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"],i.customHeaders)}postTeamsSearch(e,i){if(i=i||{},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"],i.customHeaders)}},$b=class{constructor(e){this.apiClient=e||q.instance}getTelephonyAgentGreetings(e,i){if(i=i||{},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"],i.customHeaders)}getTelephonyAgentsGreetingsMe(e){return e=e||{},this.apiClient.callApi("/api/v2/telephony/agents/greetings/me","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getTelephonyCallsMetrics(e){return e=e||{},this.apiClient.callApi("/api/v2/telephony/calls/metrics","GET",{},{metricType:e.metricType},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getTelephonyMediaregions(e){return e=e||{},this.apiClient.callApi("/api/v2/telephony/mediaregions","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getTelephonySettings(e){return e=e||{},this.apiClient.callApi("/api/v2/telephony/settings","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getTelephonySipmessagesConversation(e,i){if(i=i||{},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"],i.customHeaders)}getTelephonySipmessagesConversationHeaders(e,i){if(i=i||{},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(i.keys,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getTelephonySiptraces(e,i,n){if(n=n||{},e==null)throw'Missing the required parameter "dateStart" when calling getTelephonySiptraces';if(i==null)throw'Missing the required parameter "dateEnd" when calling getTelephonySiptraces';return this.apiClient.callApi("/api/v2/telephony/siptraces","GET",{},{callId:n.callId,toUser:n.toUser,fromUser:n.fromUser,conversationId:n.conversationId,dateStart:e,dateEnd:i},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getTelephonySiptracesDownloadDownloadId(e,i){if(i=i||{},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"],i.customHeaders)}postTelephonySiptracesDownload(e,i){if(i=i||{},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"],i.customHeaders)}putTelephonyAgentGreetings(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "agentId" when calling putTelephonyAgentGreetings';if(i==null)throw'Missing the required parameter "body" when calling putTelephonyAgentGreetings';return this.apiClient.callApi("/api/v2/telephony/agents/{agentId}/greetings","PUT",{agentId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putTelephonyAgentsGreetingsMe(e,i){if(i=i||{},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"],i.customHeaders)}putTelephonySettings(e,i){if(i=i||{},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"],i.customHeaders)}},Nb=class{constructor(e){this.apiClient=e||q.instance}deleteTelephonyProvidersEdge(e,i){if(i=i||{},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"],i.customHeaders)}deleteTelephonyProvidersEdgeLogicalinterface(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "edgeId" when calling deleteTelephonyProvidersEdgeLogicalinterface';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteTelephonyProvidersEdgeSoftwareupdate(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}deleteTelephonyProvidersEdgesDidpool(e,i){if(i=i||{},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"],i.customHeaders)}deleteTelephonyProvidersEdgesEdgegroup(e,i){if(i=i||{},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"],i.customHeaders)}deleteTelephonyProvidersEdgesExtensionpool(e,i){if(i=i||{},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"],i.customHeaders)}deleteTelephonyProvidersEdgesPhone(e,i){if(i=i||{},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"],i.customHeaders)}deleteTelephonyProvidersEdgesPhonebasesetting(e,i){if(i=i||{},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"],i.customHeaders)}deleteTelephonyProvidersEdgesSite(e,i){if(i=i||{},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"],i.customHeaders)}deleteTelephonyProvidersEdgesSiteOutboundroute(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "siteId" when calling deleteTelephonyProvidersEdgesSiteOutboundroute';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteTelephonyProvidersEdgesTrunkbasesetting(e,i){if(i=i||{},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"],i.customHeaders)}getTelephonyProvidersEdge(e,i){if(i=i||{},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(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getTelephonyProvidersEdgeDiagnosticNslookup(e,i){if(i=i||{},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"],i.customHeaders)}getTelephonyProvidersEdgeDiagnosticPing(e,i){if(i=i||{},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"],i.customHeaders)}getTelephonyProvidersEdgeDiagnosticRoute(e,i){if(i=i||{},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"],i.customHeaders)}getTelephonyProvidersEdgeDiagnosticTracepath(e,i){if(i=i||{},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"],i.customHeaders)}getTelephonyProvidersEdgeLogicalinterface(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "edgeId" when calling getTelephonyProvidersEdgeLogicalinterface';if(i==null||i==="")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:i},{expand:this.apiClient.buildCollectionParam(n.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getTelephonyProvidersEdgeLogicalinterfaces(e,i){if(i=i||{},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(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getTelephonyProvidersEdgeLogsJob(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "edgeId" when calling getTelephonyProvidersEdgeLogsJob';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getTelephonyProvidersEdgeMetrics(e,i){if(i=i||{},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"],i.customHeaders)}getTelephonyProvidersEdgePhysicalinterface(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "edgeId" when calling getTelephonyProvidersEdgePhysicalinterface';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getTelephonyProvidersEdgePhysicalinterfaces(e,i){if(i=i||{},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"],i.customHeaders)}getTelephonyProvidersEdgeSetuppackage(e,i){if(i=i||{},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"],i.customHeaders)}getTelephonyProvidersEdgeSoftwareupdate(e,i){if(i=i||{},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"],i.customHeaders)}getTelephonyProvidersEdgeSoftwareversions(e,i){if(i=i||{},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"],i.customHeaders)}getTelephonyProvidersEdgeTrunks(e,i){if(i=i||{},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:i.pageNumber,pageSize:i.pageSize,sortBy:i.sortBy,sortOrder:i.sortOrder,"trunkBase.id":i.trunkBaseId,trunkType:i.trunkType},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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"],i.customHeaders)}getTelephonyProvidersEdgesDid(e,i){if(i=i||{},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"],i.customHeaders)}getTelephonyProvidersEdgesDidpool(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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(i.id,"multi"),numberMatch:i.numberMatch,pageSize:i.pageSize,pageNumber:i.pageNumber,sortOrder:i.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getTelephonyProvidersEdgesEdgegroupEdgetrunkbase(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "edgegroupId" when calling getTelephonyProvidersEdgesEdgegroupEdgetrunkbase';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.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,i){if(i=i||{},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"],i.customHeaders)}getTelephonyProvidersEdgesExtensionpool(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getTelephonyProvidersEdgesLinebasesetting(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getTelephonyProvidersEdgesLogicalinterfaces(e,i){if(i=i||{},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(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getTelephonyProvidersEdgesMediastatisticsConversation(e,i){if(i=i||{},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"],i.customHeaders)}getTelephonyProvidersEdgesMediastatisticsConversationCommunication(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getTelephonyProvidersEdgesMediastatisticsConversationCommunication';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getTelephonyProvidersEdgesMetrics(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getTelephonyProvidersEdgesPhonebasesetting(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getTelephonyProvidersEdgesPhysicalinterfaces(e,i){if(i=i||{},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"],i.customHeaders)}getTelephonyProvidersEdgesSite(e,i){if(i=i||{},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"],i.customHeaders)}getTelephonyProvidersEdgesSiteNumberplan(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "siteId" when calling getTelephonyProvidersEdgesSiteNumberplan';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getTelephonyProvidersEdgesSiteNumberplans(e,i){if(i=i||{},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"],i.customHeaders)}getTelephonyProvidersEdgesSiteNumberplansClassifications(e,i){if(i=i||{},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:i.classification},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getTelephonyProvidersEdgesSiteOutboundroute(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "siteId" when calling getTelephonyProvidersEdgesSiteOutboundroute';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getTelephonyProvidersEdgesSiteOutboundroutes(e,i){if(i=i||{},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:i.pageSize,pageNumber:i.pageNumber,name:i.name,"externalTrunkBases.ids":i.externalTrunkBasesIds,sortBy:i.sortBy},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getTelephonyProvidersEdgesSiteSiteconnections(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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"],i.customHeaders)}getTelephonyProvidersEdgesTrunkMetrics(e,i){if(i=i||{},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"],i.customHeaders)}getTelephonyProvidersEdgesTrunkbasesetting(e,i){if(i=i||{},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:i.ignoreHidden},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getTelephonyProvidersEdgesTrunkbasesettings(e){return e=e||{},this.apiClient.callApi("/api/v2/telephony/providers/edges/trunkbasesettings","GET",{},{pageNumber:e.pageNumber,pageSize:e.pageSize,sortBy:e.sortBy,sortOrder:e.sortOrder,recordingEnabled:e.recordingEnabled,ignoreHidden:e.ignoreHidden,managed:e.managed,expand:this.apiClient.buildCollectionParam(e.expand,"multi"),name:e.name},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getTelephonyProvidersEdgesTrunkbasesettingsAvailablemetabases(e){return e=e||{},this.apiClient.callApi("/api/v2/telephony/providers/edges/trunkbasesettings/availablemetabases","GET",{},{type:e.type,pageSize:e.pageSize,pageNumber:e.pageNumber},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getTelephonyProvidersEdgesTrunkbasesettingsTemplate(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "siteId" when calling patchTelephonyProvidersEdgesSiteSiteconnections';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postTelephonyProvidersEdgeDiagnosticNslookup(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "edgeId" when calling postTelephonyProvidersEdgeDiagnosticNslookup';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postTelephonyProvidersEdgeDiagnosticPing(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "edgeId" when calling postTelephonyProvidersEdgeDiagnosticPing';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postTelephonyProvidersEdgeDiagnosticRoute(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "edgeId" when calling postTelephonyProvidersEdgeDiagnosticRoute';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postTelephonyProvidersEdgeDiagnosticTracepath(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "edgeId" when calling postTelephonyProvidersEdgeDiagnosticTracepath';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postTelephonyProvidersEdgeLogicalinterfaces(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "edgeId" when calling postTelephonyProvidersEdgeLogicalinterfaces';if(i==null)throw'Missing the required parameter "body" when calling postTelephonyProvidersEdgeLogicalinterfaces';return this.apiClient.callApi("/api/v2/telephony/providers/edges/{edgeId}/logicalinterfaces","POST",{edgeId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postTelephonyProvidersEdgeLogsJobUpload(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "edgeId" when calling postTelephonyProvidersEdgeLogsJobUpload';if(i==null||i==="")throw'Missing the required parameter "jobId" when calling postTelephonyProvidersEdgeLogsJobUpload';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postTelephonyProvidersEdgeLogsJobs(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "edgeId" when calling postTelephonyProvidersEdgeLogsJobs';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postTelephonyProvidersEdgeReboot(e,i){if(i=i||{},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},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postTelephonyProvidersEdgeSoftwareupdate(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "edgeId" when calling postTelephonyProvidersEdgeSoftwareupdate';if(i==null)throw'Missing the required parameter "body" when calling postTelephonyProvidersEdgeSoftwareupdate';return this.apiClient.callApi("/api/v2/telephony/providers/edges/{edgeId}/softwareupdate","POST",{edgeId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postTelephonyProvidersEdgeStatuscode(e,i){if(i=i||{},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},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postTelephonyProvidersEdgeUnpair(e,i){if(i=i||{},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"],i.customHeaders)}postTelephonyProvidersEdges(e,i){if(i=i||{},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"],i.customHeaders)}postTelephonyProvidersEdgesAddressvalidation(e,i){if(i=i||{},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"],i.customHeaders)}postTelephonyProvidersEdgesCertificateauthorities(e,i){if(i=i||{},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"],i.customHeaders)}postTelephonyProvidersEdgesDidpools(e,i){if(i=i||{},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"],i.customHeaders)}postTelephonyProvidersEdgesEdgegroups(e,i){if(i=i||{},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"],i.customHeaders)}postTelephonyProvidersEdgesExtensionpools(e,i){if(i=i||{},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"],i.customHeaders)}postTelephonyProvidersEdgesMediastatisticsConversationCommunicationMediaresource(e,i,n,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postTelephonyProvidersEdgesMediastatisticsConversationCommunicationMediaresource';if(i==null||i==="")throw'Missing the required parameter "communicationId" when calling postTelephonyProvidersEdgesMediastatisticsConversationCommunicationMediaresource';if(n==null||n==="")throw'Missing the required parameter "mediaResourceId" when calling postTelephonyProvidersEdgesMediastatisticsConversationCommunicationMediaresource';if(a==null)throw'Missing the required parameter "body" when calling postTelephonyProvidersEdgesMediastatisticsConversationCommunicationMediaresource';return this.apiClient.callApi("/api/v2/telephony/providers/edges/mediastatistics/conversations/{conversationId}/communications/{communicationId}/mediaresources/{mediaResourceId}","POST",{conversationId:e,communicationId:i,mediaResourceId:n},{},{},{},a,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}postTelephonyProvidersEdgesPhoneReboot(e,i){if(i=i||{},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"],i.customHeaders)}postTelephonyProvidersEdgesPhonebasesettings(e,i){if(i=i||{},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"],i.customHeaders)}postTelephonyProvidersEdgesPhones(e,i){if(i=i||{},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"],i.customHeaders)}postTelephonyProvidersEdgesPhonesReboot(e,i){if(i=i||{},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"],i.customHeaders)}postTelephonyProvidersEdgesSiteOutboundroutes(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "siteId" when calling postTelephonyProvidersEdgesSiteOutboundroutes';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postTelephonyProvidersEdgesSites(e,i){if(i=i||{},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"],i.customHeaders)}postTelephonyProvidersEdgesSitesSearch(e,i){if(i=i||{},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"],i.customHeaders)}postTelephonyProvidersEdgesTrunkbasesettings(e,i){if(i=i||{},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"],i.customHeaders)}putTelephonyProvidersEdge(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "edgeId" when calling putTelephonyProvidersEdge';if(i==null)throw'Missing the required parameter "body" when calling putTelephonyProvidersEdge';return this.apiClient.callApi("/api/v2/telephony/providers/edges/{edgeId}","PUT",{edgeId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putTelephonyProvidersEdgeLogicalinterface(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "edgeId" when calling putTelephonyProvidersEdgeLogicalinterface';if(i==null||i==="")throw'Missing the required parameter "interfaceId" when calling putTelephonyProvidersEdgeLogicalinterface';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}putTelephonyProvidersEdgesAlertablepresences(e,i){if(i=i||{},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"],i.customHeaders)}putTelephonyProvidersEdgesCertificateauthority(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "certificateId" when calling putTelephonyProvidersEdgesCertificateauthority';if(i==null)throw'Missing the required parameter "body" when calling putTelephonyProvidersEdgesCertificateauthority';return this.apiClient.callApi("/api/v2/telephony/providers/edges/certificateauthorities/{certificateId}","PUT",{certificateId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putTelephonyProvidersEdgesDidpool(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "didPoolId" when calling putTelephonyProvidersEdgesDidpool';if(i==null)throw'Missing the required parameter "body" when calling putTelephonyProvidersEdgesDidpool';return this.apiClient.callApi("/api/v2/telephony/providers/edges/didpools/{didPoolId}","PUT",{didPoolId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putTelephonyProvidersEdgesEdgegroup(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "edgeGroupId" when calling putTelephonyProvidersEdgesEdgegroup';if(i==null)throw'Missing the required parameter "body" when calling putTelephonyProvidersEdgesEdgegroup';return this.apiClient.callApi("/api/v2/telephony/providers/edges/edgegroups/{edgeGroupId}","PUT",{edgeGroupId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putTelephonyProvidersEdgesEdgegroupEdgetrunkbase(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "edgegroupId" when calling putTelephonyProvidersEdgesEdgegroupEdgetrunkbase';if(i==null||i==="")throw'Missing the required parameter "edgetrunkbaseId" when calling putTelephonyProvidersEdgesEdgegroupEdgetrunkbase';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}putTelephonyProvidersEdgesExtensionpool(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "extensionPoolId" when calling putTelephonyProvidersEdgesExtensionpool';if(i==null)throw'Missing the required parameter "body" when calling putTelephonyProvidersEdgesExtensionpool';return this.apiClient.callApi("/api/v2/telephony/providers/edges/extensionpools/{extensionPoolId}","PUT",{extensionPoolId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putTelephonyProvidersEdgesPhone(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "phoneId" when calling putTelephonyProvidersEdgesPhone';if(i==null)throw'Missing the required parameter "body" when calling putTelephonyProvidersEdgesPhone';return this.apiClient.callApi("/api/v2/telephony/providers/edges/phones/{phoneId}","PUT",{phoneId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putTelephonyProvidersEdgesPhonebasesetting(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "phoneBaseId" when calling putTelephonyProvidersEdgesPhonebasesetting';if(i==null)throw'Missing the required parameter "body" when calling putTelephonyProvidersEdgesPhonebasesetting';return this.apiClient.callApi("/api/v2/telephony/providers/edges/phonebasesettings/{phoneBaseId}","PUT",{phoneBaseId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putTelephonyProvidersEdgesSite(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "siteId" when calling putTelephonyProvidersEdgesSite';if(i==null)throw'Missing the required parameter "body" when calling putTelephonyProvidersEdgesSite';return this.apiClient.callApi("/api/v2/telephony/providers/edges/sites/{siteId}","PUT",{siteId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putTelephonyProvidersEdgesSiteNumberplans(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "siteId" when calling putTelephonyProvidersEdgesSiteNumberplans';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putTelephonyProvidersEdgesSiteOutboundroute(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "siteId" when calling putTelephonyProvidersEdgesSiteOutboundroute';if(i==null||i==="")throw'Missing the required parameter "outboundRouteId" when calling putTelephonyProvidersEdgesSiteOutboundroute';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}putTelephonyProvidersEdgesSiteSiteconnections(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "siteId" when calling putTelephonyProvidersEdgesSiteSiteconnections';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putTelephonyProvidersEdgesTrunkbasesetting(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "trunkBaseSettingsId" when calling putTelephonyProvidersEdgesTrunkbasesetting';if(i==null)throw'Missing the required parameter "body" when calling putTelephonyProvidersEdgesTrunkbasesetting';return this.apiClient.callApi("/api/v2/telephony/providers/edges/trunkbasesettings/{trunkBaseSettingsId}","PUT",{trunkBaseSettingsId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}},Ub=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,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "sessionId" when calling postTextbotsBotflowsSessionTurns';if(i==null)throw'Missing the required parameter "turnRequest" when calling postTextbotsBotflowsSessionTurns';return this.apiClient.callApi("/api/v2/textbots/botflows/sessions/{sessionId}/turns","POST",{sessionId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postTextbotsBotflowsSessions(e,i){if(i=i||{},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"],i.customHeaders)}postTextbotsBotsExecute(e,i){if(i=i||{},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"],i.customHeaders)}},Lb=class{constructor(e){this.apiClient=e||q.instance}deleteToken(e,i){if(i=i||{},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"],i.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)}},Wb=class{constructor(e){this.apiClient=e||q.instance}getKnowledgeKnowledgebaseUploadsUrlsJob(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling getKnowledgeKnowledgebaseUploadsUrlsJob';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postGamificationContestsUploadsPrizeimages(e,i){if(i=i||{},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"],i.customHeaders)}postGuidesUploads(e,i){if(i=i||{},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"],i.customHeaders)}postIntegrationsActionDraftFunctionUpload(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "actionId" when calling postIntegrationsActionDraftFunctionUpload';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postKnowledgeDocumentuploads(e,i){if(i=i||{},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"],i.customHeaders)}postKnowledgeKnowledgebaseUploadsUrlsJobs(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseUploadsUrlsJobs';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postLanguageunderstandingMinerUploads(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "minerId" when calling postLanguageunderstandingMinerUploads';if(i==null)throw'Missing the required parameter "body" when calling postLanguageunderstandingMinerUploads';return this.apiClient.callApi("/api/v2/languageunderstanding/miners/{minerId}/uploads","POST",{minerId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postUploadsLearningCoverart(e,i){if(i=i||{},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"],i.customHeaders)}postUploadsPublicassetsImages(e,i){if(i=i||{},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"],i.customHeaders)}postUploadsRecordings(e,i){if(i=i||{},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"],i.customHeaders)}postUploadsWorkforcemanagementHistoricaldataCsv(e,i){if(i=i||{},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"],i.customHeaders)}},Bb=class{constructor(e){this.apiClient=e||q.instance}getOauthClientUsageQueryResult(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "executionId" when calling getOauthClientUsageQueryResult';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getOauthClientUsageSummary(e,i){if(i=i||{},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:i.days},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getUsageAggregatesQueryJob(e,i){if(i=i||{},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:i.pageSize,after:i.after},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getUsageClientClientIdAggregatesQueryJob(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "clientId" when calling getUsageClientClientIdAggregatesQueryJob';if(i==null||i==="")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:i},{pageSize:n.pageSize,after:n.after},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getUsageQueryExecutionIdResults(e,i){if(i=i||{},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"],i.customHeaders)}getUsageSimplesearchExecutionIdResults(e,i){if(i=i||{},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:i.after,pageSize:i.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postOauthClientUsageQuery(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "clientId" when calling postOauthClientUsageQuery';if(i==null)throw'Missing the required parameter "body" when calling postOauthClientUsageQuery';return this.apiClient.callApi("/api/v2/oauth/clients/{clientId}/usage/query","POST",{clientId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postUsageAggregatesQueryJobs(e,i){if(i=i||{},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"],i.customHeaders)}postUsageClientClientIdAggregatesQueryJobs(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "clientId" when calling postUsageClientClientIdAggregatesQueryJobs';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postUsageQuery(e,i){if(i=i||{},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"],i.customHeaders)}postUsageSimplesearch(e,i){if(i=i||{},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"],i.customHeaders)}},Fb=class{constructor(e){this.apiClient=e||q.instance}deleteUserrecording(e,i){if(i=i||{},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"],i.customHeaders)}getUserrecording(e,i){if(i=i||{},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(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getUserrecordingTranscoding(e,i){if(i=i||{},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:i.formatId},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "recordingId" when calling putUserrecording';if(i==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(n.expand,"multi")},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}},Vb=class{constructor(e){this.apiClient=e||q.instance}deleteAnalyticsUsersAggregatesJob(e,i){if(i=i||{},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"],i.customHeaders)}deleteAnalyticsUsersDetailsJob(e,i){if(i=i||{},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"],i.customHeaders)}deleteAuthorizationSubjectDivisionRole(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "subjectId" when calling deleteAuthorizationSubjectDivisionRole';if(i==null||i==="")throw'Missing the required parameter "divisionId" when calling deleteAuthorizationSubjectDivisionRole';if(n==null||n==="")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:i,roleId:n},{},{},{},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,i){if(i=i||{},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"],i.customHeaders)}deleteRoutingUserUtilization(e,i){if(i=i||{},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"],i.customHeaders)}deleteUser(e,i){if(i=i||{},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"],i.customHeaders)}deleteUserCustomattribute(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling deleteUserCustomattribute';if(i==null||i==="")throw'Missing the required parameter "schemaId" when calling deleteUserCustomattribute';return this.apiClient.callApi("/api/v2/users/{userId}/customattributes/{schemaId}","DELETE",{userId:e,schemaId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteUserExternalidAuthorityNameExternalKey(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "userId" when calling deleteUserExternalidAuthorityNameExternalKey';if(i==null||i==="")throw'Missing the required parameter "authorityName" when calling deleteUserExternalidAuthorityNameExternalKey';if(n==null||n==="")throw'Missing the required parameter "externalKey" when calling deleteUserExternalidAuthorityNameExternalKey';return this.apiClient.callApi("/api/v2/users/{userId}/externalid/{authorityName}/{externalKey}","DELETE",{userId:e,authorityName:i,externalKey:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}deleteUserRoutinglanguage(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling deleteUserRoutinglanguage';if(i==null||i==="")throw'Missing the required parameter "languageId" when calling deleteUserRoutinglanguage';return this.apiClient.callApi("/api/v2/users/{userId}/routinglanguages/{languageId}","DELETE",{userId:e,languageId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteUserRoutingskill(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling deleteUserRoutingskill';if(i==null||i==="")throw'Missing the required parameter "skillId" when calling deleteUserRoutingskill';return this.apiClient.callApi("/api/v2/users/{userId}/routingskills/{skillId}","DELETE",{userId:e,skillId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteUserStationAssociatedstation(e,i){if(i=i||{},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"],i.customHeaders)}deleteUserStationDefaultstation(e,i){if(i=i||{},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"],i.customHeaders)}deleteUserVerifier(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling deleteUserVerifier';if(i==null||i==="")throw'Missing the required parameter "verifierId" when calling deleteUserVerifier';return this.apiClient.callApi("/api/v2/users/{userId}/verifiers/{verifierId}","DELETE",{userId:e,verifierId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteUsersCustomattributesSchema(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getAnalyticsUsersAggregatesJobResults(e,i){if(i=i||{},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:i.cursor},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getAnalyticsUsersDetailsJob(e,i){if(i=i||{},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"],i.customHeaders)}getAnalyticsUsersDetailsJobResults(e,i){if(i=i||{},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:i.cursor,pageSize:i.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},e==null)throw'Missing the required parameter "permission" when calling getAuthorizationDivisionspermittedMe';return this.apiClient.callApi("/api/v2/authorization/divisionspermitted/me","GET",{},{name:i.name,permission:e},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getAuthorizationDivisionspermittedPagedMe(e,i){if(i=i||{},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:i.pageNumber,pageSize:i.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getAuthorizationDivisionspermittedPagedSubjectId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "subjectId" when calling getAuthorizationDivisionspermittedPagedSubjectId';if(i==null)throw'Missing the required parameter "permission" when calling getAuthorizationDivisionspermittedPagedSubjectId';return this.apiClient.callApi("/api/v2/authorization/divisionspermitted/paged/{subjectId}","GET",{subjectId:e},{permission:i,pageNumber:n.pageNumber,pageSize:n.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getAuthorizationSubject(e,i){if(i=i||{},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:i.includeDuplicates},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getRoutingUserUtilization(e,i){if(i=i||{},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"],i.customHeaders)}getUser(e,i){if(i=i||{},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(i.expand,"multi"),integrationPresenceSource:i.integrationPresenceSource,userCustomAttributeSchemaIds:this.apiClient.buildCollectionParam(i.userCustomAttributeSchemaIds,"multi"),state:i.state},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getUserAdjacents(e,i){if(i=i||{},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(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getUserCallforwarding(e,i){if(i=i||{},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"],i.customHeaders)}getUserCustomattribute(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling getUserCustomattribute';if(i==null||i==="")throw'Missing the required parameter "schemaId" when calling getUserCustomattribute';return this.apiClient.callApi("/api/v2/users/{userId}/customattributes/{schemaId}","GET",{userId:e,schemaId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getUserCustomattributesBulk(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling getUserCustomattributesBulk';if(i==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(i,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getUserDirectreports(e,i){if(i=i||{},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(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getUserExternalid(e,i){if(i=i||{},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"],i.customHeaders)}getUserExternalidAuthorityName(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling getUserExternalidAuthorityName';if(i==null||i==="")throw'Missing the required parameter "authorityName" when calling getUserExternalidAuthorityName';return this.apiClient.callApi("/api/v2/users/{userId}/externalid/{authorityName}","GET",{userId:e,authorityName:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getUserFavorites(e,i){if(i=i||{},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:i.pageSize,pageNumber:i.pageNumber,sortOrder:i.sortOrder,expand:this.apiClient.buildCollectionParam(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getUserGeolocation(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling getUserGeolocation';if(i==null||i==="")throw'Missing the required parameter "clientId" when calling getUserGeolocation';return this.apiClient.callApi("/api/v2/users/{userId}/geolocations/{clientId}","GET",{userId:e,clientId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getUserOutofoffice(e,i){if(i=i||{},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"],i.customHeaders)}getUserProfile(e,i){if(i=i||{},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(i.expand,"multi"),integrationPresenceSource:i.integrationPresenceSource},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getUserProfileskills(e,i){if(i=i||{},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"],i.customHeaders)}getUserQueues(e,i){if(i=i||{},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:i.pageSize,pageNumber:i.pageNumber,joined:i.joined,divisionId:this.apiClient.buildCollectionParam(i.divisionId,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getUserRoles(e,i){if(i=i||{},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"],i.customHeaders)}getUserRoutinglanguages(e,i){if(i=i||{},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:i.pageSize,pageNumber:i.pageNumber,sortOrder:i.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getUserRoutingskills(e,i){if(i=i||{},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:i.pageSize,pageNumber:i.pageNumber,sortOrder:i.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getUserRoutingstatus(e,i){if(i=i||{},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"],i.customHeaders)}getUserSkillgroups(e,i){if(i=i||{},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:i.pageSize,after:i.after,before:i.before},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getUserState(e,i){if(i=i||{},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"],i.customHeaders)}getUserStation(e,i){if(i=i||{},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"],i.customHeaders)}getUserSuperiors(e,i){if(i=i||{},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(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getUserTrustors(e,i){if(i=i||{},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:i.pageSize,pageNumber:i.pageNumber},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getUserVerifiers(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getUsersCustomattributesSchemaVersion(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "schemaId" when calling getUsersCustomattributesSchemaVersion';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getUsersCustomattributesSchemaVersions(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "activityId" when calling getUsersDevelopmentActivity';if(i==null)throw'Missing the required parameter "type" when calling getUsersDevelopmentActivity';return this.apiClient.callApi("/api/v2/users/development/activities/{activityId}","GET",{activityId:e},{type:i},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getUsersExternalidAuthorityNameExternalKey(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "authorityName" when calling getUsersExternalidAuthorityNameExternalKey';if(i==null||i==="")throw'Missing the required parameter "externalKey" when calling getUsersExternalidAuthorityNameExternalKey';return this.apiClient.callApi("/api/v2/users/externalid/{authorityName}/{externalKey}","GET",{authorityName:e,externalKey:i},{expand:this.apiClient.buildCollectionParam(n.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getUsersMe(e){return e=e||{},this.apiClient.callApi("/api/v2/users/me","GET",{},{expand:this.apiClient.buildCollectionParam(e.expand,"multi"),integrationPresenceSource:e.integrationPresenceSource,userCustomAttributeSchemaIds:this.apiClient.buildCollectionParam(e.userCustomAttributeSchemaIds,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getUsersQuery(e){return e=e||{},this.apiClient.callApi("/api/v2/users/query","GET",{},{cursor:e.cursor,pageSize:e.pageSize,sortOrder:e.sortOrder,expand:this.apiClient.buildCollectionParam(e.expand,"multi"),integrationPresenceSource:e.integrationPresenceSource,userCustomAttributeSchemaIds:this.apiClient.buildCollectionParam(e.userCustomAttributeSchemaIds,"multi"),state:e.state},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getUsersSearch(e,i){if(i=i||{},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(i.expand,"multi"),integrationPresenceSource:i.integrationPresenceSource},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling patchUser';if(i==null)throw'Missing the required parameter "body" when calling patchUser';return this.apiClient.callApi("/api/v2/users/{userId}","PATCH",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchUserCallforwarding(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling patchUserCallforwarding';if(i==null)throw'Missing the required parameter "body" when calling patchUserCallforwarding';return this.apiClient.callApi("/api/v2/users/{userId}/callforwarding","PATCH",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchUserCustomattributes(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling patchUserCustomattributes';if(i==null)throw'Missing the required parameter "userCustomAttributes" when calling patchUserCustomattributes';return this.apiClient.callApi("/api/v2/users/{userId}/customattributes","PATCH",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchUserCustomattributesBulk(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling patchUserCustomattributesBulk';if(i==null)throw'Missing the required parameter "userCustomAttributesList" when calling patchUserCustomattributesBulk';return this.apiClient.callApi("/api/v2/users/{userId}/customattributes/bulk","PATCH",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchUserGeolocation(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "userId" when calling patchUserGeolocation';if(i==null||i==="")throw'Missing the required parameter "clientId" when calling patchUserGeolocation';if(n==null)throw'Missing the required parameter "body" when calling patchUserGeolocation';return this.apiClient.callApi("/api/v2/users/{userId}/geolocations/{clientId}","PATCH",{userId:e,clientId:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchUserQueue(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "queueId" when calling patchUserQueue';if(i==null||i==="")throw'Missing the required parameter "userId" when calling patchUserQueue';if(n==null)throw'Missing the required parameter "body" when calling patchUserQueue';return this.apiClient.callApi("/api/v2/users/{userId}/queues/{queueId}","PATCH",{queueId:e,userId:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchUserQueues(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling patchUserQueues';if(i==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(n.divisionId,"multi")},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchUserRoutinglanguage(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "userId" when calling patchUserRoutinglanguage';if(i==null||i==="")throw'Missing the required parameter "languageId" when calling patchUserRoutinglanguage';if(n==null)throw'Missing the required parameter "body" when calling patchUserRoutinglanguage';return this.apiClient.callApi("/api/v2/users/{userId}/routinglanguages/{languageId}","PATCH",{userId:e,languageId:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchUserRoutinglanguagesBulk(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling patchUserRoutinglanguagesBulk';if(i==null)throw'Missing the required parameter "body" when calling patchUserRoutinglanguagesBulk';return this.apiClient.callApi("/api/v2/users/{userId}/routinglanguages/bulk","PATCH",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchUserRoutingskillsBulk(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling patchUserRoutingskillsBulk';if(i==null)throw'Missing the required parameter "body" when calling patchUserRoutingskillsBulk';return this.apiClient.callApi("/api/v2/users/{userId}/routingskills/bulk","PATCH",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchUsersBulk(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsUsersActivityQuery(e,i){if(i=i||{},e==null)throw'Missing the required parameter "body" when calling postAnalyticsUsersActivityQuery';return this.apiClient.callApi("/api/v2/analytics/users/activity/query","POST",{},{pageSize:i.pageSize,pageNumber:i.pageNumber},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postAnalyticsUsersAggregatesJobs(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsUsersAggregatesQuery(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsUsersDetailsJobs(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsUsersDetailsQuery(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsUsersObservationsQuery(e,i){if(i=i||{},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"],i.customHeaders)}postAuthorizationSubjectBulkadd(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "subjectId" when calling postAuthorizationSubjectBulkadd';if(i==null)throw'Missing the required parameter "body" when calling postAuthorizationSubjectBulkadd';return this.apiClient.callApi("/api/v2/authorization/subjects/{subjectId}/bulkadd","POST",{subjectId:e},{subjectType:n.subjectType},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postAuthorizationSubjectBulkremove(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "subjectId" when calling postAuthorizationSubjectBulkremove';if(i==null)throw'Missing the required parameter "body" when calling postAuthorizationSubjectBulkremove';return this.apiClient.callApi("/api/v2/authorization/subjects/{subjectId}/bulkremove","POST",{subjectId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postAuthorizationSubjectBulkreplace(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "subjectId" when calling postAuthorizationSubjectBulkreplace';if(i==null)throw'Missing the required parameter "body" when calling postAuthorizationSubjectBulkreplace';return this.apiClient.callApi("/api/v2/authorization/subjects/{subjectId}/bulkreplace","POST",{subjectId:e},{subjectType:n.subjectType},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postAuthorizationSubjectDivisionRole(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "subjectId" when calling postAuthorizationSubjectDivisionRole';if(i==null||i==="")throw'Missing the required parameter "divisionId" when calling postAuthorizationSubjectDivisionRole';if(n==null||n==="")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:i,roleId:n},{subjectType:a.subjectType},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postUserExternalid(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling postUserExternalid';if(i==null)throw'Missing the required parameter "body" when calling postUserExternalid';return this.apiClient.callApi("/api/v2/users/{userId}/externalid","POST",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postUserInvite(e,i){if(i=i||{},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:i.force},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postUserPassword(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling postUserPassword';if(i==null)throw'Missing the required parameter "body" when calling postUserPassword';return this.apiClient.callApi("/api/v2/users/{userId}/password","POST",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postUserRoutinglanguages(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling postUserRoutinglanguages';if(i==null)throw'Missing the required parameter "body" when calling postUserRoutinglanguages';return this.apiClient.callApi("/api/v2/users/{userId}/routinglanguages","POST",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postUserRoutingskills(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling postUserRoutingskills';if(i==null)throw'Missing the required parameter "body" when calling postUserRoutingskills';return this.apiClient.callApi("/api/v2/users/{userId}/routingskills","POST",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postUsers(e,i){if(i=i||{},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"],i.customHeaders)}postUsersCustomattributesSchemas(e,i){if(i=i||{},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"],i.customHeaders)}postUsersDevelopmentActivitiesAggregatesQuery(e,i){if(i=i||{},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"],i.customHeaders)}postUsersMePassword(e,i){if(i=i||{},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"],i.customHeaders)}postUsersSearch(e,i){if(i=i||{},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"],i.customHeaders)}postUsersSearchConversationTarget(e,i){if(i=i||{},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"],i.customHeaders)}postUsersSearchQueuemembersManage(e,i){if(i=i||{},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"],i.customHeaders)}postUsersSearchTeamsAssign(e,i){if(i=i||{},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"],i.customHeaders)}putRoutingDirectroutingbackupSettingsMe(e,i){if(i=i||{},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"],i.customHeaders)}putRoutingUserDirectroutingbackupSettings(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling putRoutingUserDirectroutingbackupSettings';if(i==null)throw'Missing the required parameter "body" when calling putRoutingUserDirectroutingbackupSettings';return this.apiClient.callApi("/api/v2/routing/users/{userId}/directroutingbackup/settings","PUT",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putRoutingUserUtilization(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling putRoutingUserUtilization';if(i==null)throw'Missing the required parameter "body" when calling putRoutingUserUtilization';return this.apiClient.callApi("/api/v2/routing/users/{userId}/utilization","PUT",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putUserCallforwarding(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling putUserCallforwarding';if(i==null)throw'Missing the required parameter "body" when calling putUserCallforwarding';return this.apiClient.callApi("/api/v2/users/{userId}/callforwarding","PUT",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putUserCustomattributes(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling putUserCustomattributes';if(i==null)throw'Missing the required parameter "userCustomAttributes" when calling putUserCustomattributes';return this.apiClient.callApi("/api/v2/users/{userId}/customattributes","PUT",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putUserOutofoffice(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling putUserOutofoffice';if(i==null)throw'Missing the required parameter "body" when calling putUserOutofoffice';return this.apiClient.callApi("/api/v2/users/{userId}/outofoffice","PUT",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putUserProfileskills(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling putUserProfileskills';if(i==null)throw'Missing the required parameter "body" when calling putUserProfileskills';return this.apiClient.callApi("/api/v2/users/{userId}/profileskills","PUT",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putUserRoles(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "subjectId" when calling putUserRoles';if(i==null)throw'Missing the required parameter "body" when calling putUserRoles';return this.apiClient.callApi("/api/v2/users/{subjectId}/roles","PUT",{subjectId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putUserRoutingskill(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "userId" when calling putUserRoutingskill';if(i==null||i==="")throw'Missing the required parameter "skillId" when calling putUserRoutingskill';if(n==null)throw'Missing the required parameter "body" when calling putUserRoutingskill';return this.apiClient.callApi("/api/v2/users/{userId}/routingskills/{skillId}","PUT",{userId:e,skillId:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}putUserRoutingskillsBulk(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling putUserRoutingskillsBulk';if(i==null)throw'Missing the required parameter "body" when calling putUserRoutingskillsBulk';return this.apiClient.callApi("/api/v2/users/{userId}/routingskills/bulk","PUT",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putUserRoutingstatus(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling putUserRoutingstatus';if(i==null)throw'Missing the required parameter "body" when calling putUserRoutingstatus';return this.apiClient.callApi("/api/v2/users/{userId}/routingstatus","PUT",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putUserState(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling putUserState';if(i==null)throw'Missing the required parameter "body" when calling putUserState';return this.apiClient.callApi("/api/v2/users/{userId}/state","PUT",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putUserStationAssociatedstationStationId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling putUserStationAssociatedstationStationId';if(i==null||i==="")throw'Missing the required parameter "stationId" when calling putUserStationAssociatedstationStationId';return this.apiClient.callApi("/api/v2/users/{userId}/station/associatedstation/{stationId}","PUT",{userId:e,stationId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putUserStationDefaultstationStationId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling putUserStationDefaultstationStationId';if(i==null||i==="")throw'Missing the required parameter "stationId" when calling putUserStationDefaultstationStationId';return this.apiClient.callApi("/api/v2/users/{userId}/station/defaultstation/{stationId}","PUT",{userId:e,stationId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putUserVerifier(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "userId" when calling putUserVerifier';if(i==null||i==="")throw'Missing the required parameter "verifierId" when calling putUserVerifier';if(n==null)throw'Missing the required parameter "body" when calling putUserVerifier';return this.apiClient.callApi("/api/v2/users/{userId}/verifiers/{verifierId}","PUT",{userId:e,verifierId:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}putUsersCustomattributesSchema(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "schemaId" when calling putUsersCustomattributesSchema';if(i==null)throw'Missing the required parameter "body" when calling putUsersCustomattributesSchema';return this.apiClient.callApi("/api/v2/users/customattributes/schemas/{schemaId}","PUT",{schemaId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putUsersStationsMeAssociatedstationStationId(e,i){if(i=i||{},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"],i.customHeaders)}},Jb=class{constructor(e){this.apiClient=e||q.instance}deleteUsersRule(e,i){if(i=i||{},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"],i.customHeaders)}getUsersRule(e,i){if(i=i||{},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"],i.customHeaders)}getUsersRuleDependentTypeId(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "ruleId" when calling getUsersRuleDependentTypeId';if(i==null||i==="")throw'Missing the required parameter "ruleType" when calling getUsersRuleDependentTypeId';if(n==null||n==="")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:i,typeId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getUsersRuleDependents(e,i){if(i=i||{},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:i.pageSize,pageNumber:i.pageNumber,sortOrder:i.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getUsersRules(e,i){if(i=i||{},e==null)throw'Missing the required parameter "types" when calling getUsersRules';return this.apiClient.callApi("/api/v2/users/rules","GET",{},{pageNumber:i.pageNumber,pageSize:i.pageSize,types:this.apiClient.buildCollectionParam(e,"multi"),expand:this.apiClient.buildCollectionParam(i.expand,"multi"),enabled:i.enabled,searchTerm:i.searchTerm,sortOrder:i.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getUsersRulesSetting(e,i){if(i=i||{},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"],i.customHeaders)}patchUsersRule(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "ruleId" when calling patchUsersRule';if(i==null)throw'Missing the required parameter "body" when calling patchUsersRule';return this.apiClient.callApi("/api/v2/users/rules/{ruleId}","PATCH",{ruleId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postUsersRules(e,i){if(i=i||{},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"],i.customHeaders)}postUsersRulesQuery(e,i){if(i=i||{},e==null)throw'Missing the required parameter "body" when calling postUsersRulesQuery';return this.apiClient.callApi("/api/v2/users/rules/query","POST",{},{pageNumber:i.pageNumber,pageSize:i.pageSize},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}},Zb=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,i){if(i=i||{},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"],i.customHeaders)}},Kb=class{constructor(e){this.apiClient=e||q.instance}deleteVoicemailMessage(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getVoicemailGroupMessages(e,i){if(i=i||{},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:i.pageSize,pageNumber:i.pageNumber},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getVoicemailGroupPolicy(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getVoicemailMessageMedia(e,i){if(i=i||{},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:i.formatId},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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:i.pageSize,pageNumber:i.pageNumber},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getVoicemailSearch(e,i){if(i=i||{},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(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getVoicemailUserMailbox(e,i){if(i=i||{},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"],i.customHeaders)}getVoicemailUserMessages(e,i){if(i=i||{},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:i.pageSize,pageNumber:i.pageNumber},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getVoicemailUserpolicy(e,i){if(i=i||{},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"],i.customHeaders)}patchVoicemailGroupPolicy(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "groupId" when calling patchVoicemailGroupPolicy';if(i==null)throw'Missing the required parameter "body" when calling patchVoicemailGroupPolicy';return this.apiClient.callApi("/api/v2/voicemail/groups/{groupId}/policy","PATCH",{groupId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchVoicemailMePolicy(e,i){if(i=i||{},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"],i.customHeaders)}patchVoicemailMessage(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "messageId" when calling patchVoicemailMessage';if(i==null)throw'Missing the required parameter "body" when calling patchVoicemailMessage';return this.apiClient.callApi("/api/v2/voicemail/messages/{messageId}","PATCH",{messageId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchVoicemailUserpolicy(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling patchVoicemailUserpolicy';if(i==null)throw'Missing the required parameter "body" when calling patchVoicemailUserpolicy';return this.apiClient.callApi("/api/v2/voicemail/userpolicies/{userId}","PATCH",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.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,i){if(i=i||{},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"],i.customHeaders)}putVoicemailMessage(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "messageId" when calling putVoicemailMessage';if(i==null)throw'Missing the required parameter "body" when calling putVoicemailMessage';return this.apiClient.callApi("/api/v2/voicemail/messages/{messageId}","PUT",{messageId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putVoicemailPolicy(e,i){if(i=i||{},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"],i.customHeaders)}putVoicemailUserpolicy(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling putVoicemailUserpolicy';if(i==null)throw'Missing the required parameter "body" when calling putVoicemailUserpolicy';return this.apiClient.callApi("/api/v2/voicemail/userpolicies/{userId}","PUT",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}},Qb=class{constructor(e){this.apiClient=e||q.instance}deleteWebchatDeployment(e,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "deploymentId" when calling deleteWebchatDeployment';return this.apiClient.callApi("/api/v2/webchat/deployments/{deploymentId}","DELETE",{deploymentId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}deleteWebchatGuestConversationMember(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling deleteWebchatGuestConversationMember';if(i==null||i==="")throw'Missing the required parameter "memberId" when calling deleteWebchatGuestConversationMember';return this.apiClient.callApi("/api/v2/webchat/guest/conversations/{conversationId}/members/{memberId}","DELETE",{conversationId:e,memberId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteWebchatSettings(e){return e=e||{},this.apiClient.callApi("/api/v2/webchat/settings","DELETE",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getWebchatDeployment(e,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "deploymentId" when calling getWebchatDeployment';return this.apiClient.callApi("/api/v2/webchat/deployments/{deploymentId}","GET",{deploymentId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getWebchatDeployments(e){return e=e||{},this.apiClient.callApi("/api/v2/webchat/deployments","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getWebchatGuestConversationMediarequest(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getWebchatGuestConversationMediarequest';if(i==null||i==="")throw'Missing the required parameter "mediaRequestId" when calling getWebchatGuestConversationMediarequest';return this.apiClient.callApi("/api/v2/webchat/guest/conversations/{conversationId}/mediarequests/{mediaRequestId}","GET",{conversationId:e,mediaRequestId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWebchatGuestConversationMediarequests(e,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getWebchatGuestConversationMediarequests';return this.apiClient.callApi("/api/v2/webchat/guest/conversations/{conversationId}/mediarequests","GET",{conversationId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getWebchatGuestConversationMember(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getWebchatGuestConversationMember';if(i==null||i==="")throw'Missing the required parameter "memberId" when calling getWebchatGuestConversationMember';return this.apiClient.callApi("/api/v2/webchat/guest/conversations/{conversationId}/members/{memberId}","GET",{conversationId:e,memberId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWebchatGuestConversationMembers(e,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getWebchatGuestConversationMembers';return this.apiClient.callApi("/api/v2/webchat/guest/conversations/{conversationId}/members","GET",{conversationId:e},{pageSize:i.pageSize,pageNumber:i.pageNumber,excludeDisconnectedMembers:i.excludeDisconnectedMembers},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getWebchatGuestConversationMessage(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getWebchatGuestConversationMessage';if(i==null||i==="")throw'Missing the required parameter "messageId" when calling getWebchatGuestConversationMessage';return this.apiClient.callApi("/api/v2/webchat/guest/conversations/{conversationId}/messages/{messageId}","GET",{conversationId:e,messageId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWebchatGuestConversationMessages(e,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getWebchatGuestConversationMessages';return this.apiClient.callApi("/api/v2/webchat/guest/conversations/{conversationId}/messages","GET",{conversationId:e},{after:i.after,before:i.before,sortOrder:i.sortOrder,maxResults:i.maxResults},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getWebchatSettings(e){return e=e||{},this.apiClient.callApi("/api/v2/webchat/settings","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}patchWebchatGuestConversationMediarequest(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchWebchatGuestConversationMediarequest';if(i==null||i==="")throw'Missing the required parameter "mediaRequestId" when calling patchWebchatGuestConversationMediarequest';if(n==null)throw'Missing the required parameter "body" when calling patchWebchatGuestConversationMediarequest';return this.apiClient.callApi("/api/v2/webchat/guest/conversations/{conversationId}/mediarequests/{mediaRequestId}","PATCH",{conversationId:e,mediaRequestId:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postWebchatDeployments(e,i){if(i=i||{},e==null)throw'Missing the required parameter "body" when calling postWebchatDeployments';return this.apiClient.callApi("/api/v2/webchat/deployments","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postWebchatGuestConversationMemberMessages(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postWebchatGuestConversationMemberMessages';if(i==null||i==="")throw'Missing the required parameter "memberId" when calling postWebchatGuestConversationMemberMessages';if(n==null)throw'Missing the required parameter "body" when calling postWebchatGuestConversationMemberMessages';return this.apiClient.callApi("/api/v2/webchat/guest/conversations/{conversationId}/members/{memberId}/messages","POST",{conversationId:e,memberId:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postWebchatGuestConversationMemberTyping(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postWebchatGuestConversationMemberTyping';if(i==null||i==="")throw'Missing the required parameter "memberId" when calling postWebchatGuestConversationMemberTyping';return this.apiClient.callApi("/api/v2/webchat/guest/conversations/{conversationId}/members/{memberId}/typing","POST",{conversationId:e,memberId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWebchatGuestConversations(e,i){if(i=i||{},e==null)throw'Missing the required parameter "body" when calling postWebchatGuestConversations';return this.apiClient.callApi("/api/v2/webchat/guest/conversations","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}putWebchatDeployment(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "deploymentId" when calling putWebchatDeployment';if(i==null)throw'Missing the required parameter "body" when calling putWebchatDeployment';return this.apiClient.callApi("/api/v2/webchat/deployments/{deploymentId}","PUT",{deploymentId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putWebchatSettings(e,i){if(i=i||{},e==null)throw'Missing the required parameter "body" when calling putWebchatSettings';return this.apiClient.callApi("/api/v2/webchat/settings","PUT",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}},Yb=class{constructor(e){this.apiClient=e||q.instance}deleteWebdeploymentsConfiguration(e,i){if(i=i||{},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"],i.customHeaders)}deleteWebdeploymentsDeployment(e,i){if(i=i||{},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"],i.customHeaders)}deleteWebdeploymentsDeploymentCobrowseSessionId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "deploymentId" when calling deleteWebdeploymentsDeploymentCobrowseSessionId';if(i==null||i==="")throw'Missing the required parameter "sessionId" when calling deleteWebdeploymentsDeploymentCobrowseSessionId';return this.apiClient.callApi("/api/v2/webdeployments/deployments/{deploymentId}/cobrowse/{sessionId}","DELETE",{deploymentId:e,sessionId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.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,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "configurationId" when calling getWebdeploymentsConfigurationVersion';if(i==null||i==="")throw'Missing the required parameter "versionId" when calling getWebdeploymentsConfigurationVersion';return this.apiClient.callApi("/api/v2/webdeployments/configurations/{configurationId}/versions/{versionId}","GET",{configurationId:e,versionId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWebdeploymentsConfigurationVersions(e,i){if(i=i||{},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:i.pageSize,before:i.before,after:i.after},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getWebdeploymentsConfigurationVersionsDraft(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getWebdeploymentsDeploymentCobrowseSessionId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "deploymentId" when calling getWebdeploymentsDeploymentCobrowseSessionId';if(i==null||i==="")throw'Missing the required parameter "sessionId" when calling getWebdeploymentsDeploymentCobrowseSessionId';return this.apiClient.callApi("/api/v2/webdeployments/deployments/{deploymentId}/cobrowse/{sessionId}","GET",{deploymentId:e,sessionId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWebdeploymentsDeploymentConfigurations(e,i){if(i=i||{},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:i.type,expand:this.apiClient.buildCollectionParam(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getWebdeploymentsDeploymentIdentityresolution(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}postWebdeploymentsConfigurations(e,i){if(i=i||{},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"],i.customHeaders)}postWebdeploymentsDeployments(e,i){if(i=i||{},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"],i.customHeaders)}postWebdeploymentsTokenOauthcodegrantjwtexchange(e,i){if(i=i||{},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"],i.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,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "configurationId" when calling putWebdeploymentsConfigurationVersionsDraft';if(i==null)throw'Missing the required parameter "configurationVersion" when calling putWebdeploymentsConfigurationVersionsDraft';return this.apiClient.callApi("/api/v2/webdeployments/configurations/{configurationId}/versions/draft","PUT",{configurationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putWebdeploymentsDeployment(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "deploymentId" when calling putWebdeploymentsDeployment';if(i==null)throw'Missing the required parameter "deployment" when calling putWebdeploymentsDeployment';return this.apiClient.callApi("/api/v2/webdeployments/deployments/{deploymentId}","PUT",{deploymentId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putWebdeploymentsDeploymentIdentityresolution(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "deploymentId" when calling putWebdeploymentsDeploymentIdentityresolution';if(i==null)throw'Missing the required parameter "body" when calling putWebdeploymentsDeploymentIdentityresolution';return this.apiClient.callApi("/api/v2/webdeployments/deployments/{deploymentId}/identityresolution","PUT",{deploymentId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}},Xb=class{constructor(e){this.apiClient=e||q.instance}deleteWebmessagingDeploymentPushdevice(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "deploymentId" when calling deleteWebmessagingDeploymentPushdevice';if(i==null||i==="")throw'Missing the required parameter "tokenId" when calling deleteWebmessagingDeploymentPushdevice';return this.apiClient.callApi("/api/v2/webmessaging/deployments/{deploymentId}/pushdevices/{tokenId}","DELETE",{deploymentId:e,tokenId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.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,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "deploymentId" when calling patchWebmessagingDeploymentPushdevice';if(i==null||i==="")throw'Missing the required parameter "tokenId" when calling patchWebmessagingDeploymentPushdevice';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postWebmessagingDeploymentPushdevice(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "deploymentId" when calling postWebmessagingDeploymentPushdevice';if(i==null||i==="")throw'Missing the required parameter "tokenId" when calling postWebmessagingDeploymentPushdevice';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}},ey=class{constructor(e){this.apiClient=e||q.instance}deleteWidgetsDeployment(e,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "deploymentId" when calling deleteWidgetsDeployment';return this.apiClient.callApi("/api/v2/widgets/deployments/{deploymentId}","DELETE",{deploymentId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getWidgetsDeployment(e,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "deploymentId" when calling getWidgetsDeployment';return this.apiClient.callApi("/api/v2/widgets/deployments/{deploymentId}","GET",{deploymentId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getWidgetsDeployments(e){return e=e||{},this.apiClient.callApi("/api/v2/widgets/deployments","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}postWidgetsDeployments(e,i){if(i=i||{},e==null)throw'Missing the required parameter "body" when calling postWidgetsDeployments';return this.apiClient.callApi("/api/v2/widgets/deployments","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}putWidgetsDeployment(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "deploymentId" when calling putWidgetsDeployment';if(i==null)throw'Missing the required parameter "body" when calling putWidgetsDeployment';return this.apiClient.callApi("/api/v2/widgets/deployments/{deploymentId}","PUT",{deploymentId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}},iy=class{constructor(e){this.apiClient=e||q.instance}deleteWorkforcemanagementBusinessunit(e,i){if(i=i||{},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"],i.customHeaders)}deleteWorkforcemanagementBusinessunitActivitycode(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling deleteWorkforcemanagementBusinessunitActivitycode';if(i==null||i==="")throw'Missing the required parameter "activityCodeId" when calling deleteWorkforcemanagementBusinessunitActivitycode';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/activitycodes/{activityCodeId}","DELETE",{businessUnitId:e,activityCodeId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteWorkforcemanagementBusinessunitCapacityplanStaffinggroupallocationshistory(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling deleteWorkforcemanagementBusinessunitCapacityplanStaffinggroupallocationshistory';if(i==null||i==="")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:i},{beforeDateId:n.beforeDateId},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteWorkforcemanagementBusinessunitPlanninggroup(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling deleteWorkforcemanagementBusinessunitPlanninggroup';if(i==null||i==="")throw'Missing the required parameter "planningGroupId" when calling deleteWorkforcemanagementBusinessunitPlanninggroup';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/planninggroups/{planningGroupId}","DELETE",{businessUnitId:e,planningGroupId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteWorkforcemanagementBusinessunitSchedulingRun(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling deleteWorkforcemanagementBusinessunitSchedulingRun';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteWorkforcemanagementBusinessunitServicegoaltemplate(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling deleteWorkforcemanagementBusinessunitServicegoaltemplate';if(i==null||i==="")throw'Missing the required parameter "serviceGoalTemplateId" when calling deleteWorkforcemanagementBusinessunitServicegoaltemplate';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/servicegoaltemplates/{serviceGoalTemplateId}","DELETE",{businessUnitId:e,serviceGoalTemplateId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteWorkforcemanagementBusinessunitStaffinggroup(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling deleteWorkforcemanagementBusinessunitStaffinggroup';if(i==null||i==="")throw'Missing the required parameter "staffingGroupId" when calling deleteWorkforcemanagementBusinessunitStaffinggroup';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/staffinggroups/{staffingGroupId}","DELETE",{businessUnitId:e,staffingGroupId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteWorkforcemanagementBusinessunitTimeofflimit(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling deleteWorkforcemanagementBusinessunitTimeofflimit';if(i==null||i==="")throw'Missing the required parameter "timeOffLimitId" when calling deleteWorkforcemanagementBusinessunitTimeofflimit';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/timeofflimits/{timeOffLimitId}","DELETE",{businessUnitId:e,timeOffLimitId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteWorkforcemanagementBusinessunitTimeoffplan(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling deleteWorkforcemanagementBusinessunitTimeoffplan';if(i==null||i==="")throw'Missing the required parameter "timeOffPlanId" when calling deleteWorkforcemanagementBusinessunitTimeoffplan';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/timeoffplans/{timeOffPlanId}","DELETE",{businessUnitId:e,timeOffPlanId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteWorkforcemanagementBusinessunitWeekSchedule(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling deleteWorkforcemanagementBusinessunitWeekSchedule';if(i==null)throw'Missing the required parameter "weekId" when calling deleteWorkforcemanagementBusinessunitWeekSchedule';if(n==null||n==="")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:i,scheduleId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}deleteWorkforcemanagementBusinessunitWeekShorttermforecast(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling deleteWorkforcemanagementBusinessunitWeekShorttermforecast';if(i==null)throw'Missing the required parameter "weekDateId" when calling deleteWorkforcemanagementBusinessunitWeekShorttermforecast';if(n==null||n==="")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:i,forecastId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}deleteWorkforcemanagementBusinessunitWorkplanbid(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling deleteWorkforcemanagementBusinessunitWorkplanbid';if(i==null||i==="")throw'Missing the required parameter "bidId" when calling deleteWorkforcemanagementBusinessunitWorkplanbid';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/workplanbids/{bidId}","DELETE",{businessUnitId:e,bidId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteWorkforcemanagementBusinessunitWorkplanbidGroup(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling deleteWorkforcemanagementBusinessunitWorkplanbidGroup';if(i==null||i==="")throw'Missing the required parameter "bidId" when calling deleteWorkforcemanagementBusinessunitWorkplanbidGroup';if(n==null||n==="")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:i,bidGroupId:n},{},{},{},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,i){if(i=i||{},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"],i.customHeaders)}deleteWorkforcemanagementManagementunitTimeofflimit(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling deleteWorkforcemanagementManagementunitTimeofflimit';if(i==null||i==="")throw'Missing the required parameter "timeOffLimitId" when calling deleteWorkforcemanagementManagementunitTimeofflimit';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/timeofflimits/{timeOffLimitId}","DELETE",{managementUnitId:e,timeOffLimitId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteWorkforcemanagementManagementunitTimeoffplan(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling deleteWorkforcemanagementManagementunitTimeoffplan';if(i==null||i==="")throw'Missing the required parameter "timeOffPlanId" when calling deleteWorkforcemanagementManagementunitTimeoffplan';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/timeoffplans/{timeOffPlanId}","DELETE",{managementUnitId:e,timeOffPlanId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteWorkforcemanagementManagementunitWorkplan(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling deleteWorkforcemanagementManagementunitWorkplan';if(i==null||i==="")throw'Missing the required parameter "workPlanId" when calling deleteWorkforcemanagementManagementunitWorkplan';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/workplans/{workPlanId}","DELETE",{managementUnitId:e,workPlanId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteWorkforcemanagementManagementunitWorkplanrotation(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling deleteWorkforcemanagementManagementunitWorkplanrotation';if(i==null||i==="")throw'Missing the required parameter "workPlanRotationId" when calling deleteWorkforcemanagementManagementunitWorkplanrotation';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/workplanrotations/{workPlanRotationId}","DELETE",{managementUnitId:e,workPlanRotationId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementAdherence(e,i){if(i=i||{},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"],i.customHeaders)}getWorkforcemanagementAdherenceExplanation(e,i){if(i=i||{},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"],i.customHeaders)}getWorkforcemanagementAdherenceExplanationsJob(e,i){if(i=i||{},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"],i.customHeaders)}getWorkforcemanagementAdherenceHistoricalBulkJob(e,i){if(i=i||{},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"],i.customHeaders)}getWorkforcemanagementAdherenceHistoricalJob(e,i){if(i=i||{},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"],i.customHeaders)}getWorkforcemanagementAgentAdherenceExplanation(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "agentId" when calling getWorkforcemanagementAgentAdherenceExplanation';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementAgentManagementunit(e,i){if(i=i||{},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"],i.customHeaders)}getWorkforcemanagementAgentsMeAdherenceHistoricalJob(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getWorkforcemanagementAlternativeshiftsOffersSearchJob(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getWorkforcemanagementAlternativeshiftsTradesStateJob(e,i){if(i=i||{},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"],i.customHeaders)}getWorkforcemanagementBusinessunit(e,i){if(i=i||{},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(i.expand,"multi"),includeSchedulingDefaultMessageSeverities:i.includeSchedulingDefaultMessageSeverities},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getWorkforcemanagementBusinessunitActivitycode(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitActivitycode';if(i==null||i==="")throw'Missing the required parameter "activityCodeId" when calling getWorkforcemanagementBusinessunitActivitycode';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/activitycodes/{activityCodeId}","GET",{businessUnitId:e,activityCodeId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementBusinessunitActivitycodes(e,i){if(i=i||{},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:i.forceDownloadService},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getWorkforcemanagementBusinessunitActivityplan(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitActivityplan';if(i==null||i==="")throw'Missing the required parameter "activityPlanId" when calling getWorkforcemanagementBusinessunitActivityplan';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/activityplans/{activityPlanId}","GET",{businessUnitId:e,activityPlanId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementBusinessunitActivityplanRunsJob(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitActivityplanRunsJob';if(i==null||i==="")throw'Missing the required parameter "activityPlanId" when calling getWorkforcemanagementBusinessunitActivityplanRunsJob';if(n==null||n==="")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:i,jobId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getWorkforcemanagementBusinessunitActivityplans(e,i){if(i=i||{},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:i.state},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getWorkforcemanagementBusinessunitActivityplansJobs(e,i){if(i=i||{},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"],i.customHeaders)}getWorkforcemanagementBusinessunitAlternativeshiftsSettings(e,i){if(i=i||{},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"],i.customHeaders)}getWorkforcemanagementBusinessunitAlternativeshiftsTrade(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitAlternativeshiftsTrade';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementBusinessunitAlternativeshiftsTradesSearchJob(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitAlternativeshiftsTradesSearchJob';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementBusinessunitCapacityplan(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitCapacityplan';if(i==null||i==="")throw'Missing the required parameter "capacityPlanId" when calling getWorkforcemanagementBusinessunitCapacityplan';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/capacityplans/{capacityPlanId}","GET",{businessUnitId:e,capacityPlanId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementBusinessunitCapacityplanStaffinggroupallocations(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitCapacityplanStaffinggroupallocations';if(i==null||i==="")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:i},{granularity:n.granularity},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementBusinessunitCapacityplanStaffingrequirements(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitCapacityplanStaffingrequirements';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementBusinessunitCapacityplanningLongtermrequirementsAutomaticbestmethodWeekForecast(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitCapacityplanningLongtermrequirementsAutomaticbestmethodWeekForecast';if(i==null)throw'Missing the required parameter "weekDateId" when calling getWorkforcemanagementBusinessunitCapacityplanningLongtermrequirementsAutomaticbestmethodWeekForecast';if(n==null||n==="")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:i,forecastId:n},{granularity:a.granularity},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getWorkforcemanagementBusinessunitCapacityplans(e,i){if(i=i||{},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"],i.customHeaders)}getWorkforcemanagementBusinessunitIntradayPlanninggroups(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitIntradayPlanninggroups';if(i==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:i},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementBusinessunitMainforecastContinuousforecastSession(e,i){if(i=i||{},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"],i.customHeaders)}getWorkforcemanagementBusinessunitMainforecastContinuousforecastSessionSessionId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitMainforecastContinuousforecastSessionSessionId';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementBusinessunitMainforecastContinuousforecastSessionSessionIdSnapshotSnapshotId(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitMainforecastContinuousforecastSessionSessionIdSnapshotSnapshotId';if(i==null||i==="")throw'Missing the required parameter "sessionId" when calling getWorkforcemanagementBusinessunitMainforecastContinuousforecastSessionSessionIdSnapshotSnapshotId';if(n==null||n==="")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:i,snapshotId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getWorkforcemanagementBusinessunitManagementunits(e,i){if(i=i||{},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:i.feature,divisionId:i.divisionId},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getWorkforcemanagementBusinessunitMinimumstaffingSettings(e,i){if(i=i||{},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"],i.customHeaders)}getWorkforcemanagementBusinessunitPlanninggroup(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitPlanninggroup';if(i==null||i==="")throw'Missing the required parameter "planningGroupId" when calling getWorkforcemanagementBusinessunitPlanninggroup';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/planninggroups/{planningGroupId}","GET",{businessUnitId:e,planningGroupId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementBusinessunitPlanninggroups(e,i){if(i=i||{},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"],i.customHeaders)}getWorkforcemanagementBusinessunitSchedulerSettings(e,i){if(i=i||{},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"],i.customHeaders)}getWorkforcemanagementBusinessunitSchedulingRun(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitSchedulingRun';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementBusinessunitSchedulingRunResult(e,i,n,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitSchedulingRunResult';if(i==null||i==="")throw'Missing the required parameter "runId" when calling getWorkforcemanagementBusinessunitSchedulingRunResult';if(n==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:i},{managementUnitIds:this.apiClient.buildCollectionParam(n,"multi"),expand:this.apiClient.buildCollectionParam(a,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}getWorkforcemanagementBusinessunitSchedulingRuns(e,i){if(i=i||{},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"],i.customHeaders)}getWorkforcemanagementBusinessunitServicegoaltemplate(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitServicegoaltemplate';if(i==null||i==="")throw'Missing the required parameter "serviceGoalTemplateId" when calling getWorkforcemanagementBusinessunitServicegoaltemplate';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/servicegoaltemplates/{serviceGoalTemplateId}","GET",{businessUnitId:e,serviceGoalTemplateId:i},{expand:this.apiClient.buildCollectionParam(n.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementBusinessunitServicegoaltemplates(e,i){if(i=i||{},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(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getWorkforcemanagementBusinessunitShifttradingTradesEvaluateJob(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitShifttradingTradesEvaluateJob';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementBusinessunitShifttradingTradesQueryJob(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitShifttradingTradesQueryJob';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementBusinessunitShifttradingTradesStateBulkJob(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitShifttradingTradesStateBulkJob';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementBusinessunitShifttradingUnmatchedSearchJob(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitShifttradingUnmatchedSearchJob';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementBusinessunitShifttradingWeeksSummaryJob(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitShifttradingWeeksSummaryJob';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementBusinessunitStaffinggroup(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitStaffinggroup';if(i==null||i==="")throw'Missing the required parameter "staffingGroupId" when calling getWorkforcemanagementBusinessunitStaffinggroup';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/staffinggroups/{staffingGroupId}","GET",{businessUnitId:e,staffingGroupId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementBusinessunitStaffinggroups(e,i){if(i=i||{},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:i.managementUnitId,forceDownloadService:i.forceDownloadService},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getWorkforcemanagementBusinessunitTimeofflimit(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitTimeofflimit';if(i==null||i==="")throw'Missing the required parameter "timeOffLimitId" when calling getWorkforcemanagementBusinessunitTimeofflimit';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/timeofflimits/{timeOffLimitId}","GET",{businessUnitId:e,timeOffLimitId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementBusinessunitTimeofflimits(e,i){if(i=i||{},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:i.managementUnitId},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getWorkforcemanagementBusinessunitTimeoffplan(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitTimeoffplan';if(i==null||i==="")throw'Missing the required parameter "timeOffPlanId" when calling getWorkforcemanagementBusinessunitTimeoffplan';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/timeoffplans/{timeOffPlanId}","GET",{businessUnitId:e,timeOffPlanId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementBusinessunitTimeoffplans(e,i){if(i=i||{},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:i.managementUnitId,forceDownloadService:i.forceDownloadService},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getWorkforcemanagementBusinessunitUsers(e,i){if(i=i||{},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(i.managementUnitIds,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getWorkforcemanagementBusinessunitWeekSchedule(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitWeekSchedule';if(i==null)throw'Missing the required parameter "weekId" when calling getWorkforcemanagementBusinessunitWeekSchedule';if(n==null||n==="")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:i,scheduleId:n},{expand:a.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getWorkforcemanagementBusinessunitWeekScheduleGenerationresults(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitWeekScheduleGenerationresults';if(i==null)throw'Missing the required parameter "weekId" when calling getWorkforcemanagementBusinessunitWeekScheduleGenerationresults';if(n==null||n==="")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:i,scheduleId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getWorkforcemanagementBusinessunitWeekScheduleHeadcountforecast(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitWeekScheduleHeadcountforecast';if(i==null)throw'Missing the required parameter "weekId" when calling getWorkforcemanagementBusinessunitWeekScheduleHeadcountforecast';if(n==null||n==="")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:i,scheduleId:n},{forceDownload:a.forceDownload},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getWorkforcemanagementBusinessunitWeekScheduleHistoryAgent(e,i,n,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitWeekScheduleHistoryAgent';if(i==null)throw'Missing the required parameter "weekId" when calling getWorkforcemanagementBusinessunitWeekScheduleHistoryAgent';if(n==null||n==="")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:i,scheduleId:n,agentId:a},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}getWorkforcemanagementBusinessunitWeekSchedulePerformancepredictions(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitWeekSchedulePerformancepredictions';if(i==null||i==="")throw'Missing the required parameter "weekId" when calling getWorkforcemanagementBusinessunitWeekSchedulePerformancepredictions';if(n==null||n==="")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:i,scheduleId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getWorkforcemanagementBusinessunitWeekSchedulePerformancepredictionsRecalculation(e,i,n,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitWeekSchedulePerformancepredictionsRecalculation';if(i==null||i==="")throw'Missing the required parameter "weekId" when calling getWorkforcemanagementBusinessunitWeekSchedulePerformancepredictionsRecalculation';if(n==null||n==="")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:i,scheduleId:n,recalculationId:a},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}getWorkforcemanagementBusinessunitWeekSchedules(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitWeekSchedules';if(i==null||i==="")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:i},{includeOnlyPublished:n.includeOnlyPublished,expand:n.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementBusinessunitWeekShorttermforecast(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitWeekShorttermforecast';if(i==null)throw'Missing the required parameter "weekDateId" when calling getWorkforcemanagementBusinessunitWeekShorttermforecast';if(n==null||n==="")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:i,forecastId:n},{expand:this.apiClient.buildCollectionParam(a.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getWorkforcemanagementBusinessunitWeekShorttermforecastData(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitWeekShorttermforecastData';if(i==null)throw'Missing the required parameter "weekDateId" when calling getWorkforcemanagementBusinessunitWeekShorttermforecastData';if(n==null||n==="")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:i,forecastId:n},{weekNumber:a.weekNumber,forceDownloadService:a.forceDownloadService},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getWorkforcemanagementBusinessunitWeekShorttermforecastGenerationresults(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitWeekShorttermforecastGenerationresults';if(i==null)throw'Missing the required parameter "weekDateId" when calling getWorkforcemanagementBusinessunitWeekShorttermforecastGenerationresults';if(n==null||n==="")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:i,forecastId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getWorkforcemanagementBusinessunitWeekShorttermforecastLongtermforecastdata(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitWeekShorttermforecastLongtermforecastdata';if(i==null)throw'Missing the required parameter "weekDateId" when calling getWorkforcemanagementBusinessunitWeekShorttermforecastLongtermforecastdata';if(n==null||n==="")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:i,forecastId:n},{forceDownloadService:a.forceDownloadService},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getWorkforcemanagementBusinessunitWeekShorttermforecastPlanninggroups(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitWeekShorttermforecastPlanninggroups';if(i==null)throw'Missing the required parameter "weekDateId" when calling getWorkforcemanagementBusinessunitWeekShorttermforecastPlanninggroups';if(n==null||n==="")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:i,forecastId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getWorkforcemanagementBusinessunitWeekShorttermforecastStaffingrequirement(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitWeekShorttermforecastStaffingrequirement';if(i==null)throw'Missing the required parameter "weekDateId" when calling getWorkforcemanagementBusinessunitWeekShorttermforecastStaffingrequirement';if(n==null||n==="")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:i,forecastId:n},{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,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitWeekShorttermforecasts';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementBusinessunitWorkplanbid(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitWorkplanbid';if(i==null||i==="")throw'Missing the required parameter "bidId" when calling getWorkforcemanagementBusinessunitWorkplanbid';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/workplanbids/{bidId}","GET",{businessUnitId:e,bidId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementBusinessunitWorkplanbidGroup(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitWorkplanbidGroup';if(i==null||i==="")throw'Missing the required parameter "bidId" when calling getWorkforcemanagementBusinessunitWorkplanbidGroup';if(n==null||n==="")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:i,bidGroupId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getWorkforcemanagementBusinessunitWorkplanbidGroupPreferences(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitWorkplanbidGroupPreferences';if(i==null||i==="")throw'Missing the required parameter "bidId" when calling getWorkforcemanagementBusinessunitWorkplanbidGroupPreferences';if(n==null||n==="")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:i,bidGroupId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getWorkforcemanagementBusinessunitWorkplanbidGroupsSummary(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitWorkplanbidGroupsSummary';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementBusinessunitWorkplanbids(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getWorkforcemanagementManagementunit(e,i){if(i=i||{},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(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getWorkforcemanagementManagementunitActivitycodes(e,i){if(i=i||{},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"],i.customHeaders)}getWorkforcemanagementManagementunitAdherence(e,i){if(i=i||{},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:i.forceDownloadService},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getWorkforcemanagementManagementunitAgent(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling getWorkforcemanagementManagementunitAgent';if(i==null||i==="")throw'Missing the required parameter "agentId" when calling getWorkforcemanagementManagementunitAgent';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/agents/{agentId}","GET",{managementUnitId:e,agentId:i},{excludeCapabilities:n.excludeCapabilities,expand:this.apiClient.buildCollectionParam(n.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementManagementunitAgentShifttrades(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling getWorkforcemanagementManagementunitAgentShifttrades';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementManagementunitShifttradesMatched(e,i){if(i=i||{},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"],i.customHeaders)}getWorkforcemanagementManagementunitShifttradesUsers(e,i){if(i=i||{},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"],i.customHeaders)}getWorkforcemanagementManagementunitTimeofflimit(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling getWorkforcemanagementManagementunitTimeofflimit';if(i==null||i==="")throw'Missing the required parameter "timeOffLimitId" when calling getWorkforcemanagementManagementunitTimeofflimit';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/timeofflimits/{timeOffLimitId}","GET",{managementUnitId:e,timeOffLimitId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementManagementunitTimeofflimits(e,i){if(i=i||{},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"],i.customHeaders)}getWorkforcemanagementManagementunitTimeoffplan(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling getWorkforcemanagementManagementunitTimeoffplan';if(i==null||i==="")throw'Missing the required parameter "timeOffPlanId" when calling getWorkforcemanagementManagementunitTimeoffplan';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/timeoffplans/{timeOffPlanId}","GET",{managementUnitId:e,timeOffPlanId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementManagementunitTimeoffplans(e,i){if(i=i||{},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"],i.customHeaders)}getWorkforcemanagementManagementunitUserTimeoffrequest(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling getWorkforcemanagementManagementunitUserTimeoffrequest';if(i==null||i==="")throw'Missing the required parameter "userId" when calling getWorkforcemanagementManagementunitUserTimeoffrequest';if(n==null||n==="")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:i,timeOffRequestId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getWorkforcemanagementManagementunitUserTimeoffrequestTimeofflimits(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling getWorkforcemanagementManagementunitUserTimeoffrequestTimeofflimits';if(i==null||i==="")throw'Missing the required parameter "userId" when calling getWorkforcemanagementManagementunitUserTimeoffrequestTimeofflimits';if(n==null||n==="")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:i,timeOffRequestId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getWorkforcemanagementManagementunitUserTimeoffrequests(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling getWorkforcemanagementManagementunitUserTimeoffrequests';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementManagementunitUsers(e,i){if(i=i||{},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"],i.customHeaders)}getWorkforcemanagementManagementunitWeekSchedule(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling getWorkforcemanagementManagementunitWeekSchedule';if(i==null||i==="")throw'Missing the required parameter "weekId" when calling getWorkforcemanagementManagementunitWeekSchedule';if(n==null||n==="")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:i,scheduleId:n},{expand:a.expand,forceDownloadService:a.forceDownloadService},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getWorkforcemanagementManagementunitWeekSchedules(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling getWorkforcemanagementManagementunitWeekSchedules';if(i==null||i==="")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:i},{includeOnlyPublished:n.includeOnlyPublished,earliestWeekDate:n.earliestWeekDate,latestWeekDate:n.latestWeekDate},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementManagementunitWeekShifttrades(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling getWorkforcemanagementManagementunitWeekShifttrades';if(i==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:i},{evaluateMatches:n.evaluateMatches,includeCrossWeekShifts:n.includeCrossWeekShifts,forceDownloadService:n.forceDownloadService},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementManagementunitWorkplan(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling getWorkforcemanagementManagementunitWorkplan';if(i==null||i==="")throw'Missing the required parameter "workPlanId" when calling getWorkforcemanagementManagementunitWorkplan';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/workplans/{workPlanId}","GET",{managementUnitId:e,workPlanId:i},{includeOnly:this.apiClient.buildCollectionParam(n.includeOnly,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementManagementunitWorkplanrotation(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling getWorkforcemanagementManagementunitWorkplanrotation';if(i==null||i==="")throw'Missing the required parameter "workPlanRotationId" when calling getWorkforcemanagementManagementunitWorkplanrotation';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/workplanrotations/{workPlanRotationId}","GET",{managementUnitId:e,workPlanRotationId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementManagementunitWorkplanrotations(e,i){if(i=i||{},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(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getWorkforcemanagementManagementunitWorkplans(e,i){if(i=i||{},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(i.expand,"multi"),exclude:this.apiClient.buildCollectionParam(i.exclude,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getWorkforcemanagementManagementunits(e){return e=e||{},this.apiClient.callApi("/api/v2/workforcemanagement/managementunits","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,expand:e.expand,feature:e.feature,divisionId:e.divisionId},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getWorkforcemanagementManagementunitsDivisionviews(e){return e=e||{},this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/divisionviews","GET",{},{divisionId:this.apiClient.buildCollectionParam(e.divisionId,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getWorkforcemanagementNotifications(e){return e=e||{},this.apiClient.callApi("/api/v2/workforcemanagement/notifications","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getWorkforcemanagementSchedulingjob(e,i){if(i=i||{},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"],i.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,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "tradeId" when calling getWorkforcemanagementShifttradingTradeJob';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementShifttradingTradeMatchJob(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "tradeId" when calling getWorkforcemanagementShifttradingTradeMatchJob';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementShifttradingTradeStateJob(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "tradeId" when calling getWorkforcemanagementShifttradingTradeStateJob';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementShifttradingTradesJob(e,i){if(i=i||{},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"],i.customHeaders)}getWorkforcemanagementShifttradingTradesMineQueryJob(e,i){if(i=i||{},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"],i.customHeaders)}getWorkforcemanagementShrinkageJob(e,i){if(i=i||{},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"],i.customHeaders)}getWorkforcemanagementTeamAdherence(e,i){if(i=i||{},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"],i.customHeaders)}getWorkforcemanagementTimeoffbalanceJob(e,i){if(i=i||{},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"],i.customHeaders)}getWorkforcemanagementTimeoffrequest(e,i){if(i=i||{},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"],i.customHeaders)}getWorkforcemanagementTimeoffrequestWaitlistpositions(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getWorkforcemanagementUserWorkplanbidranks(e,i){if(i=i||{},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"],i.customHeaders)}getWorkforcemanagementWorkplanbidPreferences(e,i){if(i=i||{},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"],i.customHeaders)}getWorkforcemanagementWorkplanbidWorkplans(e,i){if(i=i||{},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"],i.customHeaders)}getWorkforcemanagementWorkplanbids(e){return e=e||{},this.apiClient.callApi("/api/v2/workforcemanagement/workplanbids","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}patchWorkforcemanagementAgentAdherenceExplanation(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "agentId" when calling patchWorkforcemanagementAgentAdherenceExplanation';if(i==null||i==="")throw'Missing the required parameter "explanationId" when calling patchWorkforcemanagementAgentAdherenceExplanation';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchWorkforcemanagementAlternativeshiftsTrade(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "tradeId" when calling patchWorkforcemanagementAlternativeshiftsTrade';if(i==null)throw'Missing the required parameter "body" when calling patchWorkforcemanagementAlternativeshiftsTrade';return this.apiClient.callApi("/api/v2/workforcemanagement/alternativeshifts/trades/{tradeId}","PATCH",{tradeId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchWorkforcemanagementAlternativeshiftsTradesStateJobs(e,i){if(i=i||{},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"],i.customHeaders)}patchWorkforcemanagementBusinessunit(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling patchWorkforcemanagementBusinessunit';if(i==null)throw'Missing the required parameter "body" when calling patchWorkforcemanagementBusinessunit';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}","PATCH",{businessUnitId:e},{includeSchedulingDefaultMessageSeverities:n.includeSchedulingDefaultMessageSeverities},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchWorkforcemanagementBusinessunitActivitycode(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling patchWorkforcemanagementBusinessunitActivitycode';if(i==null||i==="")throw'Missing the required parameter "activityCodeId" when calling patchWorkforcemanagementBusinessunitActivitycode';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchWorkforcemanagementBusinessunitActivityplan(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling patchWorkforcemanagementBusinessunitActivityplan';if(i==null||i==="")throw'Missing the required parameter "activityPlanId" when calling patchWorkforcemanagementBusinessunitActivityplan';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchWorkforcemanagementBusinessunitAlternativeshiftsSettings(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling patchWorkforcemanagementBusinessunitAlternativeshiftsSettings';if(i==null)throw'Missing the required parameter "body" when calling patchWorkforcemanagementBusinessunitAlternativeshiftsSettings';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/alternativeshifts/settings","PATCH",{businessUnitId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchWorkforcemanagementBusinessunitCapacityplan(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling patchWorkforcemanagementBusinessunitCapacityplan';if(i==null||i==="")throw'Missing the required parameter "capacityPlanId" when calling patchWorkforcemanagementBusinessunitCapacityplan';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchWorkforcemanagementBusinessunitMinimumstaffingSettings(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling patchWorkforcemanagementBusinessunitMinimumstaffingSettings';if(i==null)throw'Missing the required parameter "body" when calling patchWorkforcemanagementBusinessunitMinimumstaffingSettings';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/minimumstaffing/settings","PATCH",{businessUnitId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchWorkforcemanagementBusinessunitPlanninggroup(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling patchWorkforcemanagementBusinessunitPlanninggroup';if(i==null||i==="")throw'Missing the required parameter "planningGroupId" when calling patchWorkforcemanagementBusinessunitPlanninggroup';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchWorkforcemanagementBusinessunitSchedulerSettings(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling patchWorkforcemanagementBusinessunitSchedulerSettings';if(i==null)throw'Missing the required parameter "body" when calling patchWorkforcemanagementBusinessunitSchedulerSettings';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/scheduler/settings","PATCH",{businessUnitId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchWorkforcemanagementBusinessunitSchedulingRun(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling patchWorkforcemanagementBusinessunitSchedulingRun';if(i==null||i==="")throw'Missing the required parameter "runId" when calling patchWorkforcemanagementBusinessunitSchedulingRun';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchWorkforcemanagementBusinessunitServicegoaltemplate(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling patchWorkforcemanagementBusinessunitServicegoaltemplate';if(i==null||i==="")throw'Missing the required parameter "serviceGoalTemplateId" when calling patchWorkforcemanagementBusinessunitServicegoaltemplate';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchWorkforcemanagementBusinessunitStaffinggroup(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling patchWorkforcemanagementBusinessunitStaffinggroup';if(i==null||i==="")throw'Missing the required parameter "staffingGroupId" when calling patchWorkforcemanagementBusinessunitStaffinggroup';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchWorkforcemanagementBusinessunitTimeoffplan(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling patchWorkforcemanagementBusinessunitTimeoffplan';if(i==null||i==="")throw'Missing the required parameter "timeOffPlanId" when calling patchWorkforcemanagementBusinessunitTimeoffplan';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchWorkforcemanagementBusinessunitWorkplanbid(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling patchWorkforcemanagementBusinessunitWorkplanbid';if(i==null||i==="")throw'Missing the required parameter "bidId" when calling patchWorkforcemanagementBusinessunitWorkplanbid';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchWorkforcemanagementBusinessunitWorkplanbidGroup(e,i,n,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling patchWorkforcemanagementBusinessunitWorkplanbidGroup';if(i==null||i==="")throw'Missing the required parameter "bidId" when calling patchWorkforcemanagementBusinessunitWorkplanbidGroup';if(n==null||n==="")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:i,bidGroupId:n},{},{},{},a,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}patchWorkforcemanagementBusinessunitWorkplanbidGroupPreferences(e,i,n,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling patchWorkforcemanagementBusinessunitWorkplanbidGroupPreferences';if(i==null||i==="")throw'Missing the required parameter "bidId" when calling patchWorkforcemanagementBusinessunitWorkplanbidGroupPreferences';if(n==null||n==="")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:i,bidGroupId:n},{},{},{},a,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}patchWorkforcemanagementManagementunit(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling patchWorkforcemanagementManagementunit';if(i==null)throw'Missing the required parameter "body" when calling patchWorkforcemanagementManagementunit';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}","PATCH",{managementUnitId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchWorkforcemanagementManagementunitAgents(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling patchWorkforcemanagementManagementunitAgents';if(i==null)throw'Missing the required parameter "body" when calling patchWorkforcemanagementManagementunitAgents';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/agents","PATCH",{managementUnitId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchWorkforcemanagementManagementunitAgentsWorkplansBulk(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling patchWorkforcemanagementManagementunitAgentsWorkplansBulk';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchWorkforcemanagementManagementunitTimeofflimit(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling patchWorkforcemanagementManagementunitTimeofflimit';if(i==null||i==="")throw'Missing the required parameter "timeOffLimitId" when calling patchWorkforcemanagementManagementunitTimeofflimit';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchWorkforcemanagementManagementunitTimeoffplan(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling patchWorkforcemanagementManagementunitTimeoffplan';if(i==null||i==="")throw'Missing the required parameter "timeOffPlanId" when calling patchWorkforcemanagementManagementunitTimeoffplan';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchWorkforcemanagementManagementunitTimeoffrequestUserIntegrationstatus(e,i,n,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling patchWorkforcemanagementManagementunitTimeoffrequestUserIntegrationstatus';if(i==null||i==="")throw'Missing the required parameter "timeOffRequestId" when calling patchWorkforcemanagementManagementunitTimeoffrequestUserIntegrationstatus';if(n==null||n==="")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:i,userId:n},{},{},{},a,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}patchWorkforcemanagementManagementunitUnavailabletimesSettings(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling patchWorkforcemanagementManagementunitUnavailabletimesSettings';if(i==null)throw'Missing the required parameter "body" when calling patchWorkforcemanagementManagementunitUnavailabletimesSettings';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/unavailabletimes/settings","PATCH",{managementUnitId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchWorkforcemanagementManagementunitUserTimeoffrequest(e,i,n,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling patchWorkforcemanagementManagementunitUserTimeoffrequest';if(i==null||i==="")throw'Missing the required parameter "userId" when calling patchWorkforcemanagementManagementunitUserTimeoffrequest';if(n==null||n==="")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:i,timeOffRequestId:n},{},{},{},a,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}patchWorkforcemanagementManagementunitWeekShifttrade(e,i,n,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling patchWorkforcemanagementManagementunitWeekShifttrade';if(i==null)throw'Missing the required parameter "weekDateId" when calling patchWorkforcemanagementManagementunitWeekShifttrade';if(n==null||n==="")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:i,tradeId:n},{},{},{},a,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}patchWorkforcemanagementManagementunitWorkplan(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling patchWorkforcemanagementManagementunitWorkplan';if(i==null||i==="")throw'Missing the required parameter "workPlanId" when calling patchWorkforcemanagementManagementunitWorkplan';if(n==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:i},{validationMode:a.validationMode},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchWorkforcemanagementManagementunitWorkplanrotation(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling patchWorkforcemanagementManagementunitWorkplanrotation';if(i==null||i==="")throw'Missing the required parameter "workPlanRotationId" when calling patchWorkforcemanagementManagementunitWorkplanrotation';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchWorkforcemanagementTimeoffrequest(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "timeOffRequestId" when calling patchWorkforcemanagementTimeoffrequest';if(i==null)throw'Missing the required parameter "body" when calling patchWorkforcemanagementTimeoffrequest';return this.apiClient.callApi("/api/v2/workforcemanagement/timeoffrequests/{timeOffRequestId}","PATCH",{timeOffRequestId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchWorkforcemanagementUnavailabletimes(e,i){if(i=i||{},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"],i.customHeaders)}patchWorkforcemanagementUserWorkplanbidranks(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling patchWorkforcemanagementUserWorkplanbidranks';if(i==null)throw'Missing the required parameter "body" when calling patchWorkforcemanagementUserWorkplanbidranks';return this.apiClient.callApi("/api/v2/workforcemanagement/users/{userId}/workplanbidranks","PATCH",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchWorkforcemanagementUsersWorkplanbidranksBulk(e,i){if(i=i||{},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"],i.customHeaders)}patchWorkforcemanagementWorkplanbidPreferences(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "bidId" when calling patchWorkforcemanagementWorkplanbidPreferences';if(i==null)throw'Missing the required parameter "body" when calling patchWorkforcemanagementWorkplanbidPreferences';return this.apiClient.callApi("/api/v2/workforcemanagement/workplanbids/{bidId}/preferences","PATCH",{bidId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementAdherenceExplanations(e,i){if(i=i||{},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"],i.customHeaders)}postWorkforcemanagementAdherenceExplanationsQuery(e,i){if(i=i||{},e==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementAdherenceExplanationsQuery';return this.apiClient.callApi("/api/v2/workforcemanagement/adherence/explanations/query","POST",{},{forceAsync:i.forceAsync,forceDownloadService:i.forceDownloadService},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postWorkforcemanagementAdherenceHistorical(e){return e=e||{},this.apiClient.callApi("/api/v2/workforcemanagement/adherence/historical","POST",{},{},{},{},e.body,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}postWorkforcemanagementAdherenceHistoricalBulk(e,i){if(i=i||{},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"],i.customHeaders)}postWorkforcemanagementAgentAdherenceExplanations(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "agentId" when calling postWorkforcemanagementAgentAdherenceExplanations';if(i==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementAgentAdherenceExplanations';return this.apiClient.callApi("/api/v2/workforcemanagement/agents/{agentId}/adherence/explanations","POST",{agentId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementAgentAdherenceExplanationsQuery(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "agentId" when calling postWorkforcemanagementAgentAdherenceExplanationsQuery';if(i==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:n.forceAsync,forceDownloadService:n.forceDownloadService},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementAgentUnavailabletimesQuery(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "agentId" when calling postWorkforcemanagementAgentUnavailabletimesQuery';if(i==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementAgentUnavailabletimesQuery';return this.apiClient.callApi("/api/v2/workforcemanagement/agents/{agentId}/unavailabletimes/query","POST",{agentId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementAgents(e,i){if(i=i||{},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"],i.customHeaders)}postWorkforcemanagementAgentsIntegrationsHrisQuery(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}postWorkforcemanagementAgentschedulesManagementunitsMine(e,i){if(i=i||{},e==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementAgentschedulesManagementunitsMine';return this.apiClient.callApi("/api/v2/workforcemanagement/agentschedules/managementunits/mine","POST",{},{forceAsync:i.forceAsync,forceDownloadService:i.forceDownloadService},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postWorkforcemanagementAgentschedulesMine(e,i){if(i=i||{},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"],i.customHeaders)}postWorkforcemanagementAlternativeshiftsOffersJobs(e,i){if(i=i||{},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"],i.customHeaders)}postWorkforcemanagementAlternativeshiftsOffersSearchJobs(e,i){if(i=i||{},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"],i.customHeaders)}postWorkforcemanagementAlternativeshiftsTrades(e,i){if(i=i||{},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"],i.customHeaders)}postWorkforcemanagementBusinessunitActivitycodes(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitActivitycodes';if(i==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunitActivitycodes';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/activitycodes","POST",{businessUnitId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementBusinessunitActivityplanRunsJobs(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitActivityplanRunsJobs';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementBusinessunitActivityplans(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitActivityplans';if(i==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunitActivityplans';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/activityplans","POST",{businessUnitId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementBusinessunitAdherenceExplanationsQuery(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitAdherenceExplanationsQuery';if(i==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:n.forceAsync,forceDownloadService:n.forceDownloadService},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementBusinessunitAgentschedulesSearch(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitAgentschedulesSearch';if(i==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:n.forceAsync,forceDownloadService:n.forceDownloadService},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementBusinessunitAlternativeshiftsTradesSearch(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitAlternativeshiftsTradesSearch';if(i==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:n.forceAsync},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementBusinessunitCapacityplanCopy(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitCapacityplanCopy';if(i==null||i==="")throw'Missing the required parameter "capacityPlanId" when calling postWorkforcemanagementBusinessunitCapacityplanCopy';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postWorkforcemanagementBusinessunitCapacityplanRequirementGenerate(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitCapacityplanRequirementGenerate';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementBusinessunitCapacityplanStaffinggroupallocations(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitCapacityplanStaffinggroupallocations';if(i==null||i==="")throw'Missing the required parameter "capacityPlanId" when calling postWorkforcemanagementBusinessunitCapacityplanStaffinggroupallocations';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postWorkforcemanagementBusinessunitCapacityplanStaffinggroupallocationshistoryQuery(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitCapacityplanStaffinggroupallocationshistoryQuery';if(i==null||i==="")throw'Missing the required parameter "capacityPlanId" when calling postWorkforcemanagementBusinessunitCapacityplanStaffinggroupallocationshistoryQuery';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postWorkforcemanagementBusinessunitCapacityplanningLongtermrequirementsAutomaticbestmethodWeekForecastForceregenerate(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitCapacityplanningLongtermrequirementsAutomaticbestmethodWeekForecastForceregenerate';if(i==null)throw'Missing the required parameter "weekDateId" when calling postWorkforcemanagementBusinessunitCapacityplanningLongtermrequirementsAutomaticbestmethodWeekForecastForceregenerate';if(n==null||n==="")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:i,forecastId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postWorkforcemanagementBusinessunitCapacityplans(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitCapacityplans';if(i==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunitCapacityplans';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/capacityplans","POST",{businessUnitId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementBusinessunitCapacityplansBulkRemove(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitCapacityplansBulkRemove';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementBusinessunitIntraday(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitIntraday';if(i==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunitIntraday';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/intraday","POST",{businessUnitId:e},{forceAsync:n.forceAsync},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementBusinessunitPlanninggroups(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitPlanninggroups';if(i==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunitPlanninggroups';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/planninggroups","POST",{businessUnitId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementBusinessunitServicegoaltemplates(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitServicegoaltemplates';if(i==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunitServicegoaltemplates';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/servicegoaltemplates","POST",{businessUnitId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementBusinessunitShifttradingTradesEvaluateJobs(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitShifttradingTradesEvaluateJobs';if(i==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:n.forceAsync,forceDownloadService:n.forceDownloadService},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementBusinessunitShifttradingTradesQueryJobs(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitShifttradingTradesQueryJobs';if(i==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:n.forceAsync,forceDownloadService:n.forceDownloadService},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementBusinessunitShifttradingTradesStateBulkJobs(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitShifttradingTradesStateBulkJobs';if(i==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:n.forceAsync,forceDownloadService:n.forceDownloadService},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementBusinessunitShifttradingUnmatchedSearchJobs(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitShifttradingUnmatchedSearchJobs';if(i==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:n.forceAsync,forceDownloadService:n.forceDownloadService},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementBusinessunitShifttradingWeeksSummaryJobs(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitShifttradingWeeksSummaryJobs';if(i==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:n.forceAsync},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementBusinessunitStaffinggroups(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitStaffinggroups';if(i==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunitStaffinggroups';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/staffinggroups","POST",{businessUnitId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementBusinessunitStaffinggroupsPlanninggroupsQuery(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitStaffinggroupsPlanninggroupsQuery';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementBusinessunitStaffinggroupsQuery(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitStaffinggroupsQuery';if(i==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:n.forceDownloadService},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementBusinessunitTimeofflimits(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitTimeofflimits';if(i==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunitTimeofflimits';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/timeofflimits","POST",{businessUnitId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementBusinessunitTimeofflimitsValuesQuery(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitTimeofflimitsValuesQuery';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementBusinessunitTimeoffplans(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitTimeoffplans';if(i==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunitTimeoffplans';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/timeoffplans","POST",{businessUnitId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementBusinessunitUnavailabletimesSchedulesQuery(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitUnavailabletimesSchedulesQuery';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementBusinessunitUnavailabletimesSettingsQuery(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitUnavailabletimesSettingsQuery';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementBusinessunitWeekScheduleAgentschedulesQuery(e,i,n,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitWeekScheduleAgentschedulesQuery';if(i==null)throw'Missing the required parameter "weekId" when calling postWorkforcemanagementBusinessunitWeekScheduleAgentschedulesQuery';if(n==null||n==="")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:i,scheduleId:n},{forceAsync:r.forceAsync,forceDownloadService:r.forceDownloadService},{},{},a,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}postWorkforcemanagementBusinessunitWeekScheduleCopy(e,i,n,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitWeekScheduleCopy';if(i==null)throw'Missing the required parameter "weekId" when calling postWorkforcemanagementBusinessunitWeekScheduleCopy';if(n==null||n==="")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:i,scheduleId:n},{},{},{},a,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}postWorkforcemanagementBusinessunitWeekSchedulePerformancepredictionsRecalculations(e,i,n,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitWeekSchedulePerformancepredictionsRecalculations';if(i==null||i==="")throw'Missing the required parameter "weekId" when calling postWorkforcemanagementBusinessunitWeekSchedulePerformancepredictionsRecalculations';if(n==null||n==="")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:i,scheduleId:n},{},{},{},a,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}postWorkforcemanagementBusinessunitWeekSchedulePerformancepredictionsRecalculationsUploadurl(e,i,n,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitWeekSchedulePerformancepredictionsRecalculationsUploadurl';if(i==null||i==="")throw'Missing the required parameter "weekId" when calling postWorkforcemanagementBusinessunitWeekSchedulePerformancepredictionsRecalculationsUploadurl';if(n==null||n==="")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:i,scheduleId:n},{},{},{},a,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}postWorkforcemanagementBusinessunitWeekScheduleReschedule(e,i,n,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitWeekScheduleReschedule';if(i==null)throw'Missing the required parameter "weekId" when calling postWorkforcemanagementBusinessunitWeekScheduleReschedule';if(n==null||n==="")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:i,scheduleId:n},{},{},{},a,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}postWorkforcemanagementBusinessunitWeekScheduleUpdate(e,i,n,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitWeekScheduleUpdate';if(i==null)throw'Missing the required parameter "weekId" when calling postWorkforcemanagementBusinessunitWeekScheduleUpdate';if(n==null||n==="")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:i,scheduleId:n},{},{},{},a,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}postWorkforcemanagementBusinessunitWeekScheduleUpdateUploadurl(e,i,n,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitWeekScheduleUpdateUploadurl';if(i==null)throw'Missing the required parameter "weekId" when calling postWorkforcemanagementBusinessunitWeekScheduleUpdateUploadurl';if(n==null||n==="")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:i,scheduleId:n},{},{},{},a,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}postWorkforcemanagementBusinessunitWeekSchedules(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitWeekSchedules';if(i==null)throw'Missing the required parameter "weekId" when calling postWorkforcemanagementBusinessunitWeekSchedules';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postWorkforcemanagementBusinessunitWeekSchedulesGenerate(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitWeekSchedulesGenerate';if(i==null)throw'Missing the required parameter "weekId" when calling postWorkforcemanagementBusinessunitWeekSchedulesGenerate';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postWorkforcemanagementBusinessunitWeekSchedulesImport(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitWeekSchedulesImport';if(i==null)throw'Missing the required parameter "weekId" when calling postWorkforcemanagementBusinessunitWeekSchedulesImport';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postWorkforcemanagementBusinessunitWeekSchedulesImportUploadurl(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitWeekSchedulesImportUploadurl';if(i==null)throw'Missing the required parameter "weekId" when calling postWorkforcemanagementBusinessunitWeekSchedulesImportUploadurl';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postWorkforcemanagementBusinessunitWeekShorttermforecastCopy(e,i,n,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitWeekShorttermforecastCopy';if(i==null)throw'Missing the required parameter "weekDateId" when calling postWorkforcemanagementBusinessunitWeekShorttermforecastCopy';if(n==null||n==="")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:i,forecastId:n},{forceAsync:r.forceAsync},{},{},a,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}postWorkforcemanagementBusinessunitWeekShorttermforecastsGenerate(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitWeekShorttermforecastsGenerate';if(i==null)throw'Missing the required parameter "weekDateId" when calling postWorkforcemanagementBusinessunitWeekShorttermforecastsGenerate';if(n==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:i},{forceAsync:a.forceAsync},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postWorkforcemanagementBusinessunitWeekShorttermforecastsImport(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitWeekShorttermforecastsImport';if(i==null)throw'Missing the required parameter "weekDateId" when calling postWorkforcemanagementBusinessunitWeekShorttermforecastsImport';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postWorkforcemanagementBusinessunitWeekShorttermforecastsImportUploadurl(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitWeekShorttermforecastsImportUploadurl';if(i==null)throw'Missing the required parameter "weekDateId" when calling postWorkforcemanagementBusinessunitWeekShorttermforecastsImportUploadurl';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postWorkforcemanagementBusinessunitWorkplanbidCopy(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitWorkplanbidCopy';if(i==null||i==="")throw'Missing the required parameter "bidId" when calling postWorkforcemanagementBusinessunitWorkplanbidCopy';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postWorkforcemanagementBusinessunitWorkplanbidGroups(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitWorkplanbidGroups';if(i==null||i==="")throw'Missing the required parameter "bidId" when calling postWorkforcemanagementBusinessunitWorkplanbidGroups';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postWorkforcemanagementBusinessunitWorkplanbids(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitWorkplanbids';if(i==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunitWorkplanbids';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/workplanbids","POST",{businessUnitId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementBusinessunits(e,i){if(i=i||{},e==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunits';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits","POST",{},{includeSchedulingDefaultMessageSeverities:i.includeSchedulingDefaultMessageSeverities},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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"],i.customHeaders)}postWorkforcemanagementHistoricaldataValidate(e,i){if(i=i||{},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"],i.customHeaders)}postWorkforcemanagementIntegrationsHriTimeofftypesJobs(e,i){if(i=i||{},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"],i.customHeaders)}postWorkforcemanagementManagementunitAgentsWorkplansQuery(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitAgentsWorkplansQuery';if(i==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:n.forceDownloadService},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementManagementunitAgentschedulesSearch(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitAgentschedulesSearch';if(i==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:n.forceAsync,forceDownloadService:n.forceDownloadService},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementManagementunitHistoricaladherencequery(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitHistoricaladherencequery';if(i==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementManagementunitHistoricaladherencequery';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/historicaladherencequery","POST",{managementUnitId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementManagementunitMove(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitMove';if(i==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementManagementunitMove';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/move","POST",{managementUnitId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementManagementunitSchedulesSearch(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitSchedulesSearch';if(i==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementManagementunitSchedulesSearch';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/schedules/search","POST",{managementUnitId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementManagementunitShrinkageJobs(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitShrinkageJobs';if(i==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementManagementunitShrinkageJobs';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/shrinkage/jobs","POST",{managementUnitId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementManagementunitTimeofflimits(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitTimeofflimits';if(i==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementManagementunitTimeofflimits';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/timeofflimits","POST",{managementUnitId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementManagementunitTimeofflimitsValuesQuery(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitTimeofflimitsValuesQuery';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementManagementunitTimeoffplans(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitTimeoffplans';if(i==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementManagementunitTimeoffplans';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/timeoffplans","POST",{managementUnitId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementManagementunitTimeoffrequests(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitTimeoffrequests';if(i==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementManagementunitTimeoffrequests';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/timeoffrequests","POST",{managementUnitId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementManagementunitTimeoffrequestsIntegrationstatusQuery(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitTimeoffrequestsIntegrationstatusQuery';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementManagementunitTimeoffrequestsQuery(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitTimeoffrequestsQuery';if(i==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:n.forceDownloadService},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementManagementunitTimeoffrequestsWaitlistpositionsQuery(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitTimeoffrequestsWaitlistpositionsQuery';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementManagementunitUserTimeoffbalanceJobs(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitUserTimeoffbalanceJobs';if(i==null||i==="")throw'Missing the required parameter "userId" when calling postWorkforcemanagementManagementunitUserTimeoffbalanceJobs';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postWorkforcemanagementManagementunitUserTimeoffrequestTimeoffbalanceJobs(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitUserTimeoffrequestTimeoffbalanceJobs';if(i==null||i==="")throw'Missing the required parameter "userId" when calling postWorkforcemanagementManagementunitUserTimeoffrequestTimeoffbalanceJobs';if(n==null||n==="")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:i,timeOffRequestId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postWorkforcemanagementManagementunitUserTimeoffrequestsEstimate(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitUserTimeoffrequestsEstimate';if(i==null||i==="")throw'Missing the required parameter "userId" when calling postWorkforcemanagementManagementunitUserTimeoffrequestsEstimate';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postWorkforcemanagementManagementunitWeekShifttradeMatch(e,i,n,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitWeekShifttradeMatch';if(i==null)throw'Missing the required parameter "weekDateId" when calling postWorkforcemanagementManagementunitWeekShifttradeMatch';if(n==null||n==="")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:i,tradeId:n},{},{},{},a,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}postWorkforcemanagementManagementunitWeekShifttrades(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitWeekShifttrades';if(i==null)throw'Missing the required parameter "weekDateId" when calling postWorkforcemanagementManagementunitWeekShifttrades';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postWorkforcemanagementManagementunitWeekShifttradesSearch(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitWeekShifttradesSearch';if(i==null)throw'Missing the required parameter "weekDateId" when calling postWorkforcemanagementManagementunitWeekShifttradesSearch';if(n==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:i},{forceDownloadService:a.forceDownloadService},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postWorkforcemanagementManagementunitWeekShifttradesStateBulk(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitWeekShifttradesStateBulk';if(i==null)throw'Missing the required parameter "weekDateId" when calling postWorkforcemanagementManagementunitWeekShifttradesStateBulk';if(n==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:i},{forceAsync:a.forceAsync},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postWorkforcemanagementManagementunitWorkplanCopy(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitWorkplanCopy';if(i==null||i==="")throw'Missing the required parameter "workPlanId" when calling postWorkforcemanagementManagementunitWorkplanCopy';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postWorkforcemanagementManagementunitWorkplanValidate(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitWorkplanValidate';if(i==null||i==="")throw'Missing the required parameter "workPlanId" when calling postWorkforcemanagementManagementunitWorkplanValidate';if(n==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:i},{expand:this.apiClient.buildCollectionParam(a.expand,"multi")},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postWorkforcemanagementManagementunitWorkplanrotationCopy(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitWorkplanrotationCopy';if(i==null||i==="")throw'Missing the required parameter "workPlanRotationId" when calling postWorkforcemanagementManagementunitWorkplanrotationCopy';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postWorkforcemanagementManagementunitWorkplanrotations(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitWorkplanrotations';if(i==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementManagementunitWorkplanrotations';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/workplanrotations","POST",{managementUnitId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementManagementunitWorkplans(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitWorkplans';if(i==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementManagementunitWorkplans';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/workplans","POST",{managementUnitId:e},{validationMode:n.validationMode},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementManagementunits(e,i){if(i=i||{},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"],i.customHeaders)}postWorkforcemanagementNotificationsUpdate(e,i){if(i=i||{},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"],i.customHeaders)}postWorkforcemanagementSchedules(e){return e=e||{},this.apiClient.callApi("/api/v2/workforcemanagement/schedules","POST",{},{},{},{},e.body,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}postWorkforcemanagementShifttradingTradeJobs(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "tradeId" when calling postWorkforcemanagementShifttradingTradeJobs';if(i==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:n.forceAsync},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementShifttradingTradeMatchJobs(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "tradeId" when calling postWorkforcemanagementShifttradingTradeMatchJobs';if(i==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:n.forceAsync},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementShifttradingTradeStateJobs(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "tradeId" when calling postWorkforcemanagementShifttradingTradeStateJobs';if(i==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:n.forceAsync},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementShifttradingTradesJobs(e,i){if(i=i||{},e==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementShifttradingTradesJobs';return this.apiClient.callApi("/api/v2/workforcemanagement/shifttrading/trades/jobs","POST",{},{forceAsync:i.forceAsync},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postWorkforcemanagementShifttradingTradesMineQueryJobs(e,i){if(i=i||{},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:i.forceAsync,forceDownloadService:i.forceDownloadService},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postWorkforcemanagementTeamAdherenceHistorical(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "teamId" when calling postWorkforcemanagementTeamAdherenceHistorical';if(i==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementTeamAdherenceHistorical';return this.apiClient.callApi("/api/v2/workforcemanagement/teams/{teamId}/adherence/historical","POST",{teamId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementTeamShrinkageJobs(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "teamId" when calling postWorkforcemanagementTeamShrinkageJobs';if(i==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementTeamShrinkageJobs';return this.apiClient.callApi("/api/v2/workforcemanagement/teams/{teamId}/shrinkage/jobs","POST",{teamId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementTimeoffbalanceJobs(e,i){if(i=i||{},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"],i.customHeaders)}postWorkforcemanagementTimeofflimitsAvailableQuery(e,i){if(i=i||{},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"],i.customHeaders)}postWorkforcemanagementTimeoffrequests(e,i){if(i=i||{},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"],i.customHeaders)}postWorkforcemanagementTimeoffrequestsEstimate(e,i){if(i=i||{},e==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementTimeoffrequestsEstimate';return this.apiClient.callApi("/api/v2/workforcemanagement/timeoffrequests/estimate","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postWorkforcemanagementTimeoffrequestsIntegrationstatusQuery(e,i){if(i=i||{},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"],i.customHeaders)}postWorkforcemanagementUnavailabletimesQuery(e,i){if(i=i||{},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"],i.customHeaders)}postWorkforcemanagementUnavailabletimesValidationJobs(e,i){if(i=i||{},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"],i.customHeaders)}putWorkforcemanagementAgentIntegrationsHris(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "agentId" when calling putWorkforcemanagementAgentIntegrationsHris';if(i==null)throw'Missing the required parameter "body" when calling putWorkforcemanagementAgentIntegrationsHris';return this.apiClient.callApi("/api/v2/workforcemanagement/agents/{agentId}/integrations/hris","PUT",{agentId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putWorkforcemanagementBusinessunitTimeofflimitValues(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling putWorkforcemanagementBusinessunitTimeofflimitValues';if(i==null||i==="")throw'Missing the required parameter "timeOffLimitId" when calling putWorkforcemanagementBusinessunitTimeofflimitValues';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}putWorkforcemanagementManagementunitTimeofflimitValues(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling putWorkforcemanagementManagementunitTimeofflimitValues';if(i==null||i==="")throw'Missing the required parameter "timeOffLimitId" when calling putWorkforcemanagementManagementunitTimeofflimitValues';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}},ny=class{constructor(){this.ApiClient=new q,this.ApiClientClass=q,this.AIStudioApi=jA,this.AgentAssistantsApi=SA,this.AgentCopilotApi=OA,this.AgentUIApi=xA,this.AlertingApi=TA,this.AnalyticsApi=MA,this.ArchitectApi=EA,this.AssistantCopilotVariationsApi=kA,this.AuditApi=qA,this.AuthorizationApi=_A,this.BackgroundAssistantApi=HA,this.BillingApi=RA,this.BusinessRulesApi=IA,this.CarrierServicesApi=zA,this.CaseManagementApi=DA,this.ChatApi=GA,this.CoachingApi=$A,this.ContentManagementApi=NA,this.ConversationsApi=UA,this.DataExtensionsApi=LA,this.DataPrivacyApi=WA,this.DownloadsApi=BA,this.EmailsApi=FA,this.EmployeeEngagementApi=VA,this.EventsApi=JA,this.ExternalContactsApi=ZA,this.FaxApi=KA,this.FlowsApi=QA,this.GamificationApi=YA,this.GeneralDataProtectionRegulationApi=XA,this.GeolocationApi=eb,this.GreetingsApi=ib,this.GroupsApi=nb,this.IdentityProviderApi=tb,this.InfrastructureAsCodeApi=ab,this.IntegrationsApi=rb,this.IntentsApi=sb,this.JourneyApi=ob,this.KnowledgeApi=lb,this.LanguageUnderstandingApi=ub,this.LanguagesApi=cb,this.LearningApi=pb,this.LicenseApi=db,this.LocationsApi=hb,this.LogCaptureApi=gb,this.MessagingApi=mb,this.MobileDevicesApi=fb,this.NotificationsApi=wb,this.OAuthApi=vb,this.ObjectsApi=Cb,this.OperationalEventsApi=Ab,this.OrganizationApi=bb,this.OrganizationAuthorizationApi=yb,this.OutboundApi=Pb,this.PresenceApi=jb,this.ProcessAutomationApi=Sb,this.QualityApi=Ob,this.RecordingApi=xb,this.ResponseManagementApi=Tb,this.RoutingApi=Mb,this.SCIMApi=Eb,this.ScriptsApi=kb,this.SearchApi=qb,this.SettingsApi=_b,this.SocialMediaApi=Hb,this.SpeechTextAnalyticsApi=Rb,this.StationsApi=Ib,this.SuggestApi=zb,this.TaskManagementApi=Db,this.TeamsApi=Gb,this.TelephonyApi=$b,this.TelephonyProvidersEdgeApi=Nb,this.TextbotsApi=Ub,this.TokensApi=Lb,this.UploadsApi=Wb,this.UsageApi=Bb,this.UserRecordingsApi=Fb,this.UsersApi=Vb,this.UsersRulesApi=Jb,this.UtilitiesApi=Zb,this.VoicemailApi=Kb,this.WebChatApi=Qb,this.WebDeploymentsApi=Yb,this.WebMessagingApi=Xb,this.WidgetsApi=ey,this.WorkforceManagementApi=iy,this.PureCloudRegionHosts=BY,this.AbstractHttpClient=Tl,this.DefaultHttpClient=cd,this.HttpRequestOptions=Zt}},VY=new ny;nI.exports=VY});var et={};dd(et,{BRAND:()=>$I,DIRTY:()=>Kt,EMPTY_PATH:()=>vI,INVALID:()=>K,NEVER:()=>Pz,OK:()=>xi,ParseStatus:()=>Ci,Schema:()=>ae,ZodAny:()=>wt,ZodArray:()=>Xn,ZodBigInt:()=>Yt,ZodBoolean:()=>Xt,ZodBranded:()=>gs,ZodCatch:()=>ca,ZodDate:()=>ea,ZodDefault:()=>ua,ZodDiscriminatedUnion:()=>ql,ZodEffects:()=>rn,ZodEnum:()=>oa,ZodError:()=>zi,ZodFirstPartyTypeKind:()=>E,ZodFunction:()=>Hl,ZodIntersection:()=>aa,ZodIssueCode:()=>M,ZodLazy:()=>ra,ZodLiteral:()=>sa,ZodMap:()=>ar,ZodNaN:()=>sr,ZodNativeEnum:()=>la,ZodNever:()=>vn,ZodNull:()=>na,ZodNullable:()=>_n,ZodNumber:()=>Qt,ZodObject:()=>Di,ZodOptional:()=>tn,ZodParsedType:()=>z,ZodPipeline:()=>ms,ZodPromise:()=>vt,ZodReadonly:()=>pa,ZodRecord:()=>_l,ZodSchema:()=>ae,ZodSet:()=>rr,ZodString:()=>ft,ZodSymbol:()=>nr,ZodTransformer:()=>rn,ZodTuple:()=>qn,ZodType:()=>ae,ZodUndefined:()=>ia,ZodUnion:()=>ta,ZodUnknown:()=>Yn,ZodVoid:()=>tr,addIssueToContext:()=>_,any:()=>ZI,array:()=>XI,bigint:()=>WI,boolean:()=>fy,coerce:()=>yz,custom:()=>hy,date:()=>BI,datetimeRegex:()=>py,defaultErrorMap:()=>Kn,discriminatedUnion:()=>nz,effect:()=>gz,enum:()=>pz,function:()=>lz,getErrorMap:()=>Xa,getParsedType:()=>kn,instanceof:()=>UI,intersection:()=>tz,isAborted:()=>El,isAsync:()=>er,isDirty:()=>kl,isValid:()=>mt,late:()=>NI,lazy:()=>uz,literal:()=>cz,makeIssue:()=>hs,map:()=>sz,nan:()=>LI,nativeEnum:()=>dz,never:()=>QI,null:()=>JI,nullable:()=>fz,number:()=>my,object:()=>fd,objectUtil:()=>hd,oboolean:()=>bz,onumber:()=>Az,optional:()=>mz,ostring:()=>Cz,pipeline:()=>vz,preprocess:()=>wz,promise:()=>hz,quotelessJson:()=>mI,record:()=>rz,set:()=>oz,setErrorMap:()=>wI,strictObject:()=>ez,string:()=>gy,symbol:()=>FI,transformer:()=>gz,tuple:()=>az,undefined:()=>VI,union:()=>iz,unknown:()=>KI,util:()=>ce,void:()=>YI});var ce;(function(t){t.assertEqual=a=>{};function e(a){}t.assertIs=e;function i(a){throw new Error}t.assertNever=i,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 n(a,r=" | "){return a.map(s=>typeof s=="string"?`'${s}'`:s).join(r)}t.joinValues=n,t.jsonStringifyReplacer=(a,r)=>typeof r=="bigint"?r.toString():r})(ce||(ce={}));var hd;(function(t){t.mergeShapes=(e,i)=>({...e,...i})})(hd||(hd={}));var z=ce.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),kn=t=>{switch(typeof t){case"undefined":return z.undefined;case"string":return z.string;case"number":return Number.isNaN(t)?z.nan:z.number;case"boolean":return z.boolean;case"function":return z.function;case"bigint":return z.bigint;case"symbol":return z.symbol;case"object":return Array.isArray(t)?z.array:t===null?z.null:t.then&&typeof t.then=="function"&&t.catch&&typeof t.catch=="function"?z.promise:typeof Map<"u"&&t instanceof Map?z.map:typeof Set<"u"&&t instanceof Set?z.set:typeof Date<"u"&&t instanceof Date?z.date:z.object;default:return z.unknown}};var M=ce.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]),mI=t=>JSON.stringify(t,null,2).replace(/"([^"]+)":/g,"$1:"),zi=class t extends Error{get errors(){return this.issues}constructor(e){super(),this.issues=[],this.addIssue=n=>{this.issues=[...this.issues,n]},this.addIssues=(n=[])=>{this.issues=[...this.issues,...n]};let i=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,i):this.__proto__=i,this.name="ZodError",this.issues=e}format(e){let i=e||function(r){return r.message},n={_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)n._errors.push(i(s));else{let o=n,l=0;for(;li.message){let i=Object.create(null),n=[];for(let a of this.issues)if(a.path.length>0){let r=a.path[0];i[r]=i[r]||[],i[r].push(e(a))}else n.push(e(a));return{formErrors:n,fieldErrors:i}}get formErrors(){return this.flatten()}};zi.create=t=>new zi(t);var fI=(t,e)=>{let i;switch(t.code){case M.invalid_type:t.received===z.undefined?i="Required":i=`Expected ${t.expected}, received ${t.received}`;break;case M.invalid_literal:i=`Invalid literal value, expected ${JSON.stringify(t.expected,ce.jsonStringifyReplacer)}`;break;case M.unrecognized_keys:i=`Unrecognized key(s) in object: ${ce.joinValues(t.keys,", ")}`;break;case M.invalid_union:i="Invalid input";break;case M.invalid_union_discriminator:i=`Invalid discriminator value. Expected ${ce.joinValues(t.options)}`;break;case M.invalid_enum_value:i=`Invalid enum value. Expected ${ce.joinValues(t.options)}, received '${t.received}'`;break;case M.invalid_arguments:i="Invalid function arguments";break;case M.invalid_return_type:i="Invalid function return type";break;case M.invalid_date:i="Invalid date";break;case M.invalid_string:typeof t.validation=="object"?"includes"in t.validation?(i=`Invalid input: must include "${t.validation.includes}"`,typeof t.validation.position=="number"&&(i=`${i} at one or more positions greater than or equal to ${t.validation.position}`)):"startsWith"in t.validation?i=`Invalid input: must start with "${t.validation.startsWith}"`:"endsWith"in t.validation?i=`Invalid input: must end with "${t.validation.endsWith}"`:ce.assertNever(t.validation):t.validation!=="regex"?i=`Invalid ${t.validation}`:i="Invalid";break;case M.too_small:t.type==="array"?i=`Array must contain ${t.exact?"exactly":t.inclusive?"at least":"more than"} ${t.minimum} element(s)`:t.type==="string"?i=`String must contain ${t.exact?"exactly":t.inclusive?"at least":"over"} ${t.minimum} character(s)`:t.type==="number"?i=`Number must be ${t.exact?"exactly equal to ":t.inclusive?"greater than or equal to ":"greater than "}${t.minimum}`:t.type==="bigint"?i=`Number must be ${t.exact?"exactly equal to ":t.inclusive?"greater than or equal to ":"greater than "}${t.minimum}`:t.type==="date"?i=`Date must be ${t.exact?"exactly equal to ":t.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(t.minimum))}`:i="Invalid input";break;case M.too_big:t.type==="array"?i=`Array must contain ${t.exact?"exactly":t.inclusive?"at most":"less than"} ${t.maximum} element(s)`:t.type==="string"?i=`String must contain ${t.exact?"exactly":t.inclusive?"at most":"under"} ${t.maximum} character(s)`:t.type==="number"?i=`Number must be ${t.exact?"exactly":t.inclusive?"less than or equal to":"less than"} ${t.maximum}`:t.type==="bigint"?i=`BigInt must be ${t.exact?"exactly":t.inclusive?"less than or equal to":"less than"} ${t.maximum}`:t.type==="date"?i=`Date must be ${t.exact?"exactly":t.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(t.maximum))}`:i="Invalid input";break;case M.custom:i="Invalid input";break;case M.invalid_intersection_types:i="Intersection results could not be merged";break;case M.not_multiple_of:i=`Number must be a multiple of ${t.multipleOf}`;break;case M.not_finite:i="Number must be finite";break;default:i=e.defaultError,ce.assertNever(t)}return{message:i}},Kn=fI;var sy=Kn;function wI(t){sy=t}function Xa(){return sy}var hs=t=>{let{data:e,path:i,errorMaps:n,issueData:a}=t,r=[...i,...a.path||[]],s={...a,path:r};if(a.message!==void 0)return{...a,path:r,message:a.message};let o="",l=n.filter(u=>!!u).slice().reverse();for(let u of l)o=u(s,{data:e,defaultError:o}).message;return{...a,path:r,message:o}},vI=[];function _(t,e){let i=Xa(),n=hs({issueData:e,data:t.data,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,i,i===Kn?void 0:Kn].filter(a=>!!a)});t.common.issues.push(n)}var Ci=class t{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(e,i){let n=[];for(let a of i){if(a.status==="aborted")return K;a.status==="dirty"&&e.dirty(),n.push(a.value)}return{status:e.value,value:n}}static async mergeObjectAsync(e,i){let n=[];for(let a of i){let r=await a.key,s=await a.value;n.push({key:r,value:s})}return t.mergeObjectSync(e,n)}static mergeObjectSync(e,i){let n={};for(let a of i){let{key:r,value:s}=a;if(r.status==="aborted"||s.status==="aborted")return K;r.status==="dirty"&&e.dirty(),s.status==="dirty"&&e.dirty(),r.value!=="__proto__"&&(typeof s.value<"u"||a.alwaysSet)&&(n[r.value]=s.value)}return{status:e.value,value:n}}},K=Object.freeze({status:"aborted"}),Kt=t=>({status:"dirty",value:t}),xi=t=>({status:"valid",value:t}),El=t=>t.status==="aborted",kl=t=>t.status==="dirty",mt=t=>t.status==="valid",er=t=>typeof Promise<"u"&&t instanceof Promise;var U;(function(t){t.errToObj=e=>typeof e=="string"?{message:e}:e||{},t.toString=e=>typeof e=="string"?e:e?.message})(U||(U={}));var an=class{constructor(e,i,n,a){this._cachedPath=[],this.parent=e,this.data=i,this._path=n,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}},oy=(t,e)=>{if(mt(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 i=new zi(t.common.issues);return this._error=i,this._error}}};function ne(t){if(!t)return{};let{errorMap:e,invalid_type_error:i,required_error:n,description:a}=t;if(e&&(i||n))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??n??o.defaultError}:s.code!=="invalid_type"?{message:o.defaultError}:{message:l??i??o.defaultError}},description:a}}var ae=class{get description(){return this._def.description}_getType(e){return kn(e.data)}_getOrReturnCtx(e,i){return i||{common:e.parent.common,data:e.data,parsedType:kn(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new Ci,ctx:{common:e.parent.common,data:e.data,parsedType:kn(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){let i=this._parse(e);if(er(i))throw new Error("Synchronous parse encountered promise.");return i}_parseAsync(e){let i=this._parse(e);return Promise.resolve(i)}parse(e,i){let n=this.safeParse(e,i);if(n.success)return n.data;throw n.error}safeParse(e,i){let n={common:{issues:[],async:i?.async??!1,contextualErrorMap:i?.errorMap},path:i?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:kn(e)},a=this._parseSync({data:e,path:n.path,parent:n});return oy(n,a)}"~validate"(e){let i={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:kn(e)};if(!this["~standard"].async)try{let n=this._parseSync({data:e,path:[],parent:i});return mt(n)?{value:n.value}:{issues:i.common.issues}}catch(n){n?.message?.toLowerCase()?.includes("encountered")&&(this["~standard"].async=!0),i.common={issues:[],async:!0}}return this._parseAsync({data:e,path:[],parent:i}).then(n=>mt(n)?{value:n.value}:{issues:i.common.issues})}async parseAsync(e,i){let n=await this.safeParseAsync(e,i);if(n.success)return n.data;throw n.error}async safeParseAsync(e,i){let n={common:{issues:[],contextualErrorMap:i?.errorMap,async:!0},path:i?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:kn(e)},a=this._parse({data:e,path:n.path,parent:n}),r=await(er(a)?a:Promise.resolve(a));return oy(n,r)}refine(e,i){let n=a=>typeof i=="string"||typeof i>"u"?{message:i}:typeof i=="function"?i(a):i;return this._refinement((a,r)=>{let s=e(a),o=()=>r.addIssue({code:M.custom,...n(a)});return typeof Promise<"u"&&s instanceof Promise?s.then(l=>l?!0:(o(),!1)):s?!0:(o(),!1)})}refinement(e,i){return this._refinement((n,a)=>e(n)?!0:(a.addIssue(typeof i=="function"?i(n,a):i),!1))}_refinement(e){return new rn({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:i=>this["~validate"](i)}}optional(){return tn.create(this,this._def)}nullable(){return _n.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return Xn.create(this)}promise(){return vt.create(this,this._def)}or(e){return ta.create([this,e],this._def)}and(e){return aa.create(this,e,this._def)}transform(e){return new rn({...ne(this._def),schema:this,typeName:E.ZodEffects,effect:{type:"transform",transform:e}})}default(e){let i=typeof e=="function"?e:()=>e;return new ua({...ne(this._def),innerType:this,defaultValue:i,typeName:E.ZodDefault})}brand(){return new gs({typeName:E.ZodBranded,type:this,...ne(this._def)})}catch(e){let i=typeof e=="function"?e:()=>e;return new ca({...ne(this._def),innerType:this,catchValue:i,typeName:E.ZodCatch})}describe(e){let i=this.constructor;return new i({...this._def,description:e})}pipe(e){return ms.create(this,e)}readonly(){return pa.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}},CI=/^c[^\s-]{8,}$/i,AI=/^[0-9a-z]+$/,bI=/^[0-9A-HJKMNP-TV-Z]{26}$/i,yI=/^[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,PI=/^[a-z0-9_-]{21}$/i,jI=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,SI=/^[-+]?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)?)??$/,OI=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,xI="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$",gd,TI=/^(?:(?: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])$/,MI=/^(?:(?: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])$/,EI=/^(([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]))$/,kI=/^(([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])$/,qI=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,_I=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,uy="((\\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])))",HI=new RegExp(`^${uy}$`);function cy(t){let e="[0-5]\\d";t.precision?e=`${e}\\.\\d{${t.precision}}`:t.precision==null&&(e=`${e}(\\.\\d+)?`);let i=t.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${e})${i}`}function RI(t){return new RegExp(`^${cy(t)}$`)}function py(t){let e=`${uy}T${cy(t)}`,i=[];return i.push(t.local?"Z?":"Z"),t.offset&&i.push("([+-]\\d{2}:?\\d{2})"),e=`${e}(${i.join("|")})`,new RegExp(`^${e}$`)}function II(t,e){return!!((e==="v4"||!e)&&TI.test(t)||(e==="v6"||!e)&&EI.test(t))}function zI(t,e){if(!jI.test(t))return!1;try{let[i]=t.split(".");if(!i)return!1;let n=i.replace(/-/g,"+").replace(/_/g,"/").padEnd(i.length+(4-i.length%4)%4,"="),a=JSON.parse(atob(n));return!(typeof a!="object"||a===null||"typ"in a&&a?.typ!=="JWT"||!a.alg||e&&a.alg!==e)}catch{return!1}}function DI(t,e){return!!((e==="v4"||!e)&&MI.test(t)||(e==="v6"||!e)&&kI.test(t))}var ft=class t extends ae{_parse(e){if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!==z.string){let r=this._getOrReturnCtx(e);return _(r,{code:M.invalid_type,expected:z.string,received:r.parsedType}),K}let n=new Ci,a;for(let r of this._def.checks)if(r.kind==="min")e.data.lengthr.value&&(a=this._getOrReturnCtx(e,a),_(a,{code:M.too_big,maximum:r.value,type:"string",inclusive:!0,exact:!1,message:r.message}),n.dirty());else if(r.kind==="length"){let s=e.data.length>r.value,o=e.data.lengthe.test(a),{validation:i,code:M.invalid_string,...U.errToObj(n)})}_addCheck(e){return new t({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...U.errToObj(e)})}url(e){return this._addCheck({kind:"url",...U.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",...U.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...U.errToObj(e)})}nanoid(e){return this._addCheck({kind:"nanoid",...U.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...U.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",...U.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid",...U.errToObj(e)})}base64(e){return this._addCheck({kind:"base64",...U.errToObj(e)})}base64url(e){return this._addCheck({kind:"base64url",...U.errToObj(e)})}jwt(e){return this._addCheck({kind:"jwt",...U.errToObj(e)})}ip(e){return this._addCheck({kind:"ip",...U.errToObj(e)})}cidr(e){return this._addCheck({kind:"cidr",...U.errToObj(e)})}datetime(e){return typeof e=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:e}):this._addCheck({kind:"datetime",precision:typeof e?.precision>"u"?null:e?.precision,offset:e?.offset??!1,local:e?.local??!1,...U.errToObj(e?.message)})}date(e){return this._addCheck({kind:"date",message:e})}time(e){return typeof e=="string"?this._addCheck({kind:"time",precision:null,message:e}):this._addCheck({kind:"time",precision:typeof e?.precision>"u"?null:e?.precision,...U.errToObj(e?.message)})}duration(e){return this._addCheck({kind:"duration",...U.errToObj(e)})}regex(e,i){return this._addCheck({kind:"regex",regex:e,...U.errToObj(i)})}includes(e,i){return this._addCheck({kind:"includes",value:e,position:i?.position,...U.errToObj(i?.message)})}startsWith(e,i){return this._addCheck({kind:"startsWith",value:e,...U.errToObj(i)})}endsWith(e,i){return this._addCheck({kind:"endsWith",value:e,...U.errToObj(i)})}min(e,i){return this._addCheck({kind:"min",value:e,...U.errToObj(i)})}max(e,i){return this._addCheck({kind:"max",value:e,...U.errToObj(i)})}length(e,i){return this._addCheck({kind:"length",value:e,...U.errToObj(i)})}nonempty(e){return this.min(1,U.errToObj(e))}trim(){return new t({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new t({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new t({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(e=>e.kind==="datetime")}get isDate(){return!!this._def.checks.find(e=>e.kind==="date")}get isTime(){return!!this._def.checks.find(e=>e.kind==="time")}get isDuration(){return!!this._def.checks.find(e=>e.kind==="duration")}get isEmail(){return!!this._def.checks.find(e=>e.kind==="email")}get isURL(){return!!this._def.checks.find(e=>e.kind==="url")}get isEmoji(){return!!this._def.checks.find(e=>e.kind==="emoji")}get isUUID(){return!!this._def.checks.find(e=>e.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(e=>e.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(e=>e.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(e=>e.kind==="cuid2")}get isULID(){return!!this._def.checks.find(e=>e.kind==="ulid")}get isIP(){return!!this._def.checks.find(e=>e.kind==="ip")}get isCIDR(){return!!this._def.checks.find(e=>e.kind==="cidr")}get isBase64(){return!!this._def.checks.find(e=>e.kind==="base64")}get isBase64url(){return!!this._def.checks.find(e=>e.kind==="base64url")}get minLength(){let e=null;for(let i of this._def.checks)i.kind==="min"&&(e===null||i.value>e)&&(e=i.value);return e}get maxLength(){let e=null;for(let i of this._def.checks)i.kind==="max"&&(e===null||i.valuenew ft({checks:[],typeName:E.ZodString,coerce:t?.coerce??!1,...ne(t)});function GI(t,e){let i=(t.toString().split(".")[1]||"").length,n=(e.toString().split(".")[1]||"").length,a=i>n?i:n,r=Number.parseInt(t.toFixed(a).replace(".","")),s=Number.parseInt(e.toFixed(a).replace(".",""));return r%s/10**a}var Qt=class t extends ae{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){if(this._def.coerce&&(e.data=Number(e.data)),this._getType(e)!==z.number){let r=this._getOrReturnCtx(e);return _(r,{code:M.invalid_type,expected:z.number,received:r.parsedType}),K}let n,a=new Ci;for(let r of this._def.checks)r.kind==="int"?ce.isInteger(e.data)||(n=this._getOrReturnCtx(e,n),_(n,{code:M.invalid_type,expected:"integer",received:"float",message:r.message}),a.dirty()):r.kind==="min"?(r.inclusive?e.datar.value:e.data>=r.value)&&(n=this._getOrReturnCtx(e,n),_(n,{code:M.too_big,maximum:r.value,type:"number",inclusive:r.inclusive,exact:!1,message:r.message}),a.dirty()):r.kind==="multipleOf"?GI(e.data,r.value)!==0&&(n=this._getOrReturnCtx(e,n),_(n,{code:M.not_multiple_of,multipleOf:r.value,message:r.message}),a.dirty()):r.kind==="finite"?Number.isFinite(e.data)||(n=this._getOrReturnCtx(e,n),_(n,{code:M.not_finite,message:r.message}),a.dirty()):ce.assertNever(r);return{status:a.value,value:e.data}}gte(e,i){return this.setLimit("min",e,!0,U.toString(i))}gt(e,i){return this.setLimit("min",e,!1,U.toString(i))}lte(e,i){return this.setLimit("max",e,!0,U.toString(i))}lt(e,i){return this.setLimit("max",e,!1,U.toString(i))}setLimit(e,i,n,a){return new t({...this._def,checks:[...this._def.checks,{kind:e,value:i,inclusive:n,message:U.toString(a)}]})}_addCheck(e){return new t({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:U.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:U.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:U.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:U.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:U.toString(e)})}multipleOf(e,i){return this._addCheck({kind:"multipleOf",value:e,message:U.toString(i)})}finite(e){return this._addCheck({kind:"finite",message:U.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:U.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:U.toString(e)})}get minValue(){let e=null;for(let i of this._def.checks)i.kind==="min"&&(e===null||i.value>e)&&(e=i.value);return e}get maxValue(){let e=null;for(let i of this._def.checks)i.kind==="max"&&(e===null||i.valuee.kind==="int"||e.kind==="multipleOf"&&ce.isInteger(e.value))}get isFinite(){let e=null,i=null;for(let n of this._def.checks){if(n.kind==="finite"||n.kind==="int"||n.kind==="multipleOf")return!0;n.kind==="min"?(i===null||n.value>i)&&(i=n.value):n.kind==="max"&&(e===null||n.valuenew Qt({checks:[],typeName:E.ZodNumber,coerce:t?.coerce||!1,...ne(t)});var Yt=class t extends ae{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){if(this._def.coerce)try{e.data=BigInt(e.data)}catch{return this._getInvalidInput(e)}if(this._getType(e)!==z.bigint)return this._getInvalidInput(e);let n,a=new Ci;for(let r of this._def.checks)r.kind==="min"?(r.inclusive?e.datar.value:e.data>=r.value)&&(n=this._getOrReturnCtx(e,n),_(n,{code:M.too_big,type:"bigint",maximum:r.value,inclusive:r.inclusive,message:r.message}),a.dirty()):r.kind==="multipleOf"?e.data%r.value!==BigInt(0)&&(n=this._getOrReturnCtx(e,n),_(n,{code:M.not_multiple_of,multipleOf:r.value,message:r.message}),a.dirty()):ce.assertNever(r);return{status:a.value,value:e.data}}_getInvalidInput(e){let i=this._getOrReturnCtx(e);return _(i,{code:M.invalid_type,expected:z.bigint,received:i.parsedType}),K}gte(e,i){return this.setLimit("min",e,!0,U.toString(i))}gt(e,i){return this.setLimit("min",e,!1,U.toString(i))}lte(e,i){return this.setLimit("max",e,!0,U.toString(i))}lt(e,i){return this.setLimit("max",e,!1,U.toString(i))}setLimit(e,i,n,a){return new t({...this._def,checks:[...this._def.checks,{kind:e,value:i,inclusive:n,message:U.toString(a)}]})}_addCheck(e){return new t({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:U.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:U.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:U.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:U.toString(e)})}multipleOf(e,i){return this._addCheck({kind:"multipleOf",value:e,message:U.toString(i)})}get minValue(){let e=null;for(let i of this._def.checks)i.kind==="min"&&(e===null||i.value>e)&&(e=i.value);return e}get maxValue(){let e=null;for(let i of this._def.checks)i.kind==="max"&&(e===null||i.valuenew Yt({checks:[],typeName:E.ZodBigInt,coerce:t?.coerce??!1,...ne(t)});var Xt=class extends ae{_parse(e){if(this._def.coerce&&(e.data=!!e.data),this._getType(e)!==z.boolean){let n=this._getOrReturnCtx(e);return _(n,{code:M.invalid_type,expected:z.boolean,received:n.parsedType}),K}return xi(e.data)}};Xt.create=t=>new Xt({typeName:E.ZodBoolean,coerce:t?.coerce||!1,...ne(t)});var ea=class t extends ae{_parse(e){if(this._def.coerce&&(e.data=new Date(e.data)),this._getType(e)!==z.date){let r=this._getOrReturnCtx(e);return _(r,{code:M.invalid_type,expected:z.date,received:r.parsedType}),K}if(Number.isNaN(e.data.getTime())){let r=this._getOrReturnCtx(e);return _(r,{code:M.invalid_date}),K}let n=new Ci,a;for(let r of this._def.checks)r.kind==="min"?e.data.getTime()r.value&&(a=this._getOrReturnCtx(e,a),_(a,{code:M.too_big,message:r.message,inclusive:!0,exact:!1,maximum:r.value,type:"date"}),n.dirty()):ce.assertNever(r);return{status:n.value,value:new Date(e.data.getTime())}}_addCheck(e){return new t({...this._def,checks:[...this._def.checks,e]})}min(e,i){return this._addCheck({kind:"min",value:e.getTime(),message:U.toString(i)})}max(e,i){return this._addCheck({kind:"max",value:e.getTime(),message:U.toString(i)})}get minDate(){let e=null;for(let i of this._def.checks)i.kind==="min"&&(e===null||i.value>e)&&(e=i.value);return e!=null?new Date(e):null}get maxDate(){let e=null;for(let i of this._def.checks)i.kind==="max"&&(e===null||i.valuenew ea({checks:[],coerce:t?.coerce||!1,typeName:E.ZodDate,...ne(t)});var nr=class extends ae{_parse(e){if(this._getType(e)!==z.symbol){let n=this._getOrReturnCtx(e);return _(n,{code:M.invalid_type,expected:z.symbol,received:n.parsedType}),K}return xi(e.data)}};nr.create=t=>new nr({typeName:E.ZodSymbol,...ne(t)});var ia=class extends ae{_parse(e){if(this._getType(e)!==z.undefined){let n=this._getOrReturnCtx(e);return _(n,{code:M.invalid_type,expected:z.undefined,received:n.parsedType}),K}return xi(e.data)}};ia.create=t=>new ia({typeName:E.ZodUndefined,...ne(t)});var na=class extends ae{_parse(e){if(this._getType(e)!==z.null){let n=this._getOrReturnCtx(e);return _(n,{code:M.invalid_type,expected:z.null,received:n.parsedType}),K}return xi(e.data)}};na.create=t=>new na({typeName:E.ZodNull,...ne(t)});var wt=class extends ae{constructor(){super(...arguments),this._any=!0}_parse(e){return xi(e.data)}};wt.create=t=>new wt({typeName:E.ZodAny,...ne(t)});var Yn=class extends ae{constructor(){super(...arguments),this._unknown=!0}_parse(e){return xi(e.data)}};Yn.create=t=>new Yn({typeName:E.ZodUnknown,...ne(t)});var vn=class extends ae{_parse(e){let i=this._getOrReturnCtx(e);return _(i,{code:M.invalid_type,expected:z.never,received:i.parsedType}),K}};vn.create=t=>new vn({typeName:E.ZodNever,...ne(t)});var tr=class extends ae{_parse(e){if(this._getType(e)!==z.undefined){let n=this._getOrReturnCtx(e);return _(n,{code:M.invalid_type,expected:z.void,received:n.parsedType}),K}return xi(e.data)}};tr.create=t=>new tr({typeName:E.ZodVoid,...ne(t)});var Xn=class t extends ae{_parse(e){let{ctx:i,status:n}=this._processInputParams(e),a=this._def;if(i.parsedType!==z.array)return _(i,{code:M.invalid_type,expected:z.array,received:i.parsedType}),K;if(a.exactLength!==null){let s=i.data.length>a.exactLength.value,o=i.data.lengtha.maxLength.value&&(_(i,{code:M.too_big,maximum:a.maxLength.value,type:"array",inclusive:!0,exact:!1,message:a.maxLength.message}),n.dirty()),i.common.async)return Promise.all([...i.data].map((s,o)=>a.type._parseAsync(new an(i,s,i.path,o)))).then(s=>Ci.mergeArray(n,s));let r=[...i.data].map((s,o)=>a.type._parseSync(new an(i,s,i.path,o)));return Ci.mergeArray(n,r)}get element(){return this._def.type}min(e,i){return new t({...this._def,minLength:{value:e,message:U.toString(i)}})}max(e,i){return new t({...this._def,maxLength:{value:e,message:U.toString(i)}})}length(e,i){return new t({...this._def,exactLength:{value:e,message:U.toString(i)}})}nonempty(e){return this.min(1,e)}};Xn.create=(t,e)=>new Xn({type:t,minLength:null,maxLength:null,exactLength:null,typeName:E.ZodArray,...ne(e)});function ir(t){if(t instanceof Di){let e={};for(let i in t.shape){let n=t.shape[i];e[i]=tn.create(ir(n))}return new Di({...t._def,shape:()=>e})}else return t instanceof Xn?new Xn({...t._def,type:ir(t.element)}):t instanceof tn?tn.create(ir(t.unwrap())):t instanceof _n?_n.create(ir(t.unwrap())):t instanceof qn?qn.create(t.items.map(e=>ir(e))):t}var Di=class t extends ae{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;let e=this._def.shape(),i=ce.objectKeys(e);return this._cached={shape:e,keys:i},this._cached}_parse(e){if(this._getType(e)!==z.object){let u=this._getOrReturnCtx(e);return _(u,{code:M.invalid_type,expected:z.object,received:u.parsedType}),K}let{status:n,ctx:a}=this._processInputParams(e),{shape:r,keys:s}=this._getCached(),o=[];if(!(this._def.catchall instanceof vn&&this._def.unknownKeys==="strip"))for(let u in a.data)s.includes(u)||o.push(u);let l=[];for(let u of s){let c=r[u],p=a.data[u];l.push({key:{status:"valid",value:u},value:c._parse(new an(a,p,a.path,u)),alwaysSet:u in a.data})}if(this._def.catchall instanceof vn){let u=this._def.unknownKeys;if(u==="passthrough")for(let c of o)l.push({key:{status:"valid",value:c},value:{status:"valid",value:a.data[c]}});else if(u==="strict")o.length>0&&(_(a,{code:M.unrecognized_keys,keys:o}),n.dirty());else if(u!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{let u=this._def.catchall;for(let c of o){let p=a.data[c];l.push({key:{status:"valid",value:c},value:u._parse(new an(a,p,a.path,c)),alwaysSet:c in a.data})}}return a.common.async?Promise.resolve().then(async()=>{let u=[];for(let c of l){let p=await c.key,d=await c.value;u.push({key:p,value:d,alwaysSet:c.alwaysSet})}return u}).then(u=>Ci.mergeObjectSync(n,u)):Ci.mergeObjectSync(n,l)}get shape(){return this._def.shape()}strict(e){return U.errToObj,new t({...this._def,unknownKeys:"strict",...e!==void 0?{errorMap:(i,n)=>{let a=this._def.errorMap?.(i,n).message??n.defaultError;return i.code==="unrecognized_keys"?{message:U.errToObj(e).message??a}:{message:a}}}:{}})}strip(){return new t({...this._def,unknownKeys:"strip"})}passthrough(){return new t({...this._def,unknownKeys:"passthrough"})}extend(e){return new t({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){return new t({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:E.ZodObject})}setKey(e,i){return this.augment({[e]:i})}catchall(e){return new t({...this._def,catchall:e})}pick(e){let i={};for(let n of ce.objectKeys(e))e[n]&&this.shape[n]&&(i[n]=this.shape[n]);return new t({...this._def,shape:()=>i})}omit(e){let i={};for(let n of ce.objectKeys(this.shape))e[n]||(i[n]=this.shape[n]);return new t({...this._def,shape:()=>i})}deepPartial(){return ir(this)}partial(e){let i={};for(let n of ce.objectKeys(this.shape)){let a=this.shape[n];e&&!e[n]?i[n]=a:i[n]=a.optional()}return new t({...this._def,shape:()=>i})}required(e){let i={};for(let n of ce.objectKeys(this.shape))if(e&&!e[n])i[n]=this.shape[n];else{let r=this.shape[n];for(;r instanceof tn;)r=r._def.innerType;i[n]=r}return new t({...this._def,shape:()=>i})}keyof(){return dy(ce.objectKeys(this.shape))}};Di.create=(t,e)=>new Di({shape:()=>t,unknownKeys:"strip",catchall:vn.create(),typeName:E.ZodObject,...ne(e)});Di.strictCreate=(t,e)=>new Di({shape:()=>t,unknownKeys:"strict",catchall:vn.create(),typeName:E.ZodObject,...ne(e)});Di.lazycreate=(t,e)=>new Di({shape:t,unknownKeys:"strip",catchall:vn.create(),typeName:E.ZodObject,...ne(e)});var ta=class extends ae{_parse(e){let{ctx:i}=this._processInputParams(e),n=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 i.common.issues.push(...o.ctx.common.issues),o.result;let s=r.map(o=>new zi(o.ctx.common.issues));return _(i,{code:M.invalid_union,unionErrors:s}),K}if(i.common.async)return Promise.all(n.map(async r=>{let s={...i,common:{...i.common,issues:[]},parent:null};return{result:await r._parseAsync({data:i.data,path:i.path,parent:s}),ctx:s}})).then(a);{let r,s=[];for(let l of n){let u={...i,common:{...i.common,issues:[]},parent:null},c=l._parseSync({data:i.data,path:i.path,parent:u});if(c.status==="valid")return c;c.status==="dirty"&&!r&&(r={result:c,ctx:u}),u.common.issues.length&&s.push(u.common.issues)}if(r)return i.common.issues.push(...r.ctx.common.issues),r.result;let o=s.map(l=>new zi(l));return _(i,{code:M.invalid_union,unionErrors:o}),K}}get options(){return this._def.options}};ta.create=(t,e)=>new ta({options:t,typeName:E.ZodUnion,...ne(e)});var Qn=t=>t instanceof ra?Qn(t.schema):t instanceof rn?Qn(t.innerType()):t instanceof sa?[t.value]:t instanceof oa?t.options:t instanceof la?ce.objectValues(t.enum):t instanceof ua?Qn(t._def.innerType):t instanceof ia?[void 0]:t instanceof na?[null]:t instanceof tn?[void 0,...Qn(t.unwrap())]:t instanceof _n?[null,...Qn(t.unwrap())]:t instanceof gs||t instanceof pa?Qn(t.unwrap()):t instanceof ca?Qn(t._def.innerType):[],ql=class t extends ae{_parse(e){let{ctx:i}=this._processInputParams(e);if(i.parsedType!==z.object)return _(i,{code:M.invalid_type,expected:z.object,received:i.parsedType}),K;let n=this.discriminator,a=i.data[n],r=this.optionsMap.get(a);return r?i.common.async?r._parseAsync({data:i.data,path:i.path,parent:i}):r._parseSync({data:i.data,path:i.path,parent:i}):(_(i,{code:M.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[n]}),K)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(e,i,n){let a=new Map;for(let r of i){let s=Qn(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:i,optionsMap:a,...ne(n)})}};function md(t,e){let i=kn(t),n=kn(e);if(t===e)return{valid:!0,data:t};if(i===z.object&&n===z.object){let a=ce.objectKeys(e),r=ce.objectKeys(t).filter(o=>a.indexOf(o)!==-1),s={...t,...e};for(let o of r){let l=md(t[o],e[o]);if(!l.valid)return{valid:!1};s[o]=l.data}return{valid:!0,data:s}}else if(i===z.array&&n===z.array){if(t.length!==e.length)return{valid:!1};let a=[];for(let r=0;r{if(El(r)||El(s))return K;let o=md(r.value,s.value);return o.valid?((kl(r)||kl(s))&&i.dirty(),{status:i.value,value:o.data}):(_(n,{code:M.invalid_intersection_types}),K)};return n.common.async?Promise.all([this._def.left._parseAsync({data:n.data,path:n.path,parent:n}),this._def.right._parseAsync({data:n.data,path:n.path,parent:n})]).then(([r,s])=>a(r,s)):a(this._def.left._parseSync({data:n.data,path:n.path,parent:n}),this._def.right._parseSync({data:n.data,path:n.path,parent:n}))}};aa.create=(t,e,i)=>new aa({left:t,right:e,typeName:E.ZodIntersection,...ne(i)});var qn=class t extends ae{_parse(e){let{status:i,ctx:n}=this._processInputParams(e);if(n.parsedType!==z.array)return _(n,{code:M.invalid_type,expected:z.array,received:n.parsedType}),K;if(n.data.lengththis._def.items.length&&(_(n,{code:M.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),i.dirty());let r=[...n.data].map((s,o)=>{let l=this._def.items[o]||this._def.rest;return l?l._parse(new an(n,s,n.path,o)):null}).filter(s=>!!s);return n.common.async?Promise.all(r).then(s=>Ci.mergeArray(i,s)):Ci.mergeArray(i,r)}get items(){return this._def.items}rest(e){return new t({...this._def,rest:e})}};qn.create=(t,e)=>{if(!Array.isArray(t))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new qn({items:t,typeName:E.ZodTuple,rest:null,...ne(e)})};var _l=class t extends ae{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:i,ctx:n}=this._processInputParams(e);if(n.parsedType!==z.object)return _(n,{code:M.invalid_type,expected:z.object,received:n.parsedType}),K;let a=[],r=this._def.keyType,s=this._def.valueType;for(let o in n.data)a.push({key:r._parse(new an(n,o,n.path,o)),value:s._parse(new an(n,n.data[o],n.path,o)),alwaysSet:o in n.data});return n.common.async?Ci.mergeObjectAsync(i,a):Ci.mergeObjectSync(i,a)}get element(){return this._def.valueType}static create(e,i,n){return i instanceof ae?new t({keyType:e,valueType:i,typeName:E.ZodRecord,...ne(n)}):new t({keyType:ft.create(),valueType:e,typeName:E.ZodRecord,...ne(i)})}},ar=class extends ae{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:i,ctx:n}=this._processInputParams(e);if(n.parsedType!==z.map)return _(n,{code:M.invalid_type,expected:z.map,received:n.parsedType}),K;let a=this._def.keyType,r=this._def.valueType,s=[...n.data.entries()].map(([o,l],u)=>({key:a._parse(new an(n,o,n.path,[u,"key"])),value:r._parse(new an(n,l,n.path,[u,"value"]))}));if(n.common.async){let o=new Map;return Promise.resolve().then(async()=>{for(let l of s){let u=await l.key,c=await l.value;if(u.status==="aborted"||c.status==="aborted")return K;(u.status==="dirty"||c.status==="dirty")&&i.dirty(),o.set(u.value,c.value)}return{status:i.value,value:o}})}else{let o=new Map;for(let l of s){let u=l.key,c=l.value;if(u.status==="aborted"||c.status==="aborted")return K;(u.status==="dirty"||c.status==="dirty")&&i.dirty(),o.set(u.value,c.value)}return{status:i.value,value:o}}}};ar.create=(t,e,i)=>new ar({valueType:e,keyType:t,typeName:E.ZodMap,...ne(i)});var rr=class t extends ae{_parse(e){let{status:i,ctx:n}=this._processInputParams(e);if(n.parsedType!==z.set)return _(n,{code:M.invalid_type,expected:z.set,received:n.parsedType}),K;let a=this._def;a.minSize!==null&&n.data.sizea.maxSize.value&&(_(n,{code:M.too_big,maximum:a.maxSize.value,type:"set",inclusive:!0,exact:!1,message:a.maxSize.message}),i.dirty());let r=this._def.valueType;function s(l){let u=new Set;for(let c of l){if(c.status==="aborted")return K;c.status==="dirty"&&i.dirty(),u.add(c.value)}return{status:i.value,value:u}}let o=[...n.data.values()].map((l,u)=>r._parse(new an(n,l,n.path,u)));return n.common.async?Promise.all(o).then(l=>s(l)):s(o)}min(e,i){return new t({...this._def,minSize:{value:e,message:U.toString(i)}})}max(e,i){return new t({...this._def,maxSize:{value:e,message:U.toString(i)}})}size(e,i){return this.min(e,i).max(e,i)}nonempty(e){return this.min(1,e)}};rr.create=(t,e)=>new rr({valueType:t,minSize:null,maxSize:null,typeName:E.ZodSet,...ne(e)});var Hl=class t extends ae{constructor(){super(...arguments),this.validate=this.implement}_parse(e){let{ctx:i}=this._processInputParams(e);if(i.parsedType!==z.function)return _(i,{code:M.invalid_type,expected:z.function,received:i.parsedType}),K;function n(o,l){return hs({data:o,path:i.path,errorMaps:[i.common.contextualErrorMap,i.schemaErrorMap,Xa(),Kn].filter(u=>!!u),issueData:{code:M.invalid_arguments,argumentsError:l}})}function a(o,l){return hs({data:o,path:i.path,errorMaps:[i.common.contextualErrorMap,i.schemaErrorMap,Xa(),Kn].filter(u=>!!u),issueData:{code:M.invalid_return_type,returnTypeError:l}})}let r={errorMap:i.common.contextualErrorMap},s=i.data;if(this._def.returns instanceof vt){let o=this;return xi(async function(...l){let u=new zi([]),c=await o._def.args.parseAsync(l,r).catch(h=>{throw u.addIssue(n(l,h)),u}),p=await Reflect.apply(s,this,c);return await o._def.returns._def.type.parseAsync(p,r).catch(h=>{throw u.addIssue(a(p,h)),u})})}else{let o=this;return xi(function(...l){let u=o._def.args.safeParse(l,r);if(!u.success)throw new zi([n(l,u.error)]);let c=Reflect.apply(s,this,u.data),p=o._def.returns.safeParse(c,r);if(!p.success)throw new zi([a(c,p.error)]);return p.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...e){return new t({...this._def,args:qn.create(e).rest(Yn.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,i,n){return new t({args:e||qn.create([]).rest(Yn.create()),returns:i||Yn.create(),typeName:E.ZodFunction,...ne(n)})}},ra=class extends ae{get schema(){return this._def.getter()}_parse(e){let{ctx:i}=this._processInputParams(e);return this._def.getter()._parse({data:i.data,path:i.path,parent:i})}};ra.create=(t,e)=>new ra({getter:t,typeName:E.ZodLazy,...ne(e)});var sa=class extends ae{_parse(e){if(e.data!==this._def.value){let i=this._getOrReturnCtx(e);return _(i,{received:i.data,code:M.invalid_literal,expected:this._def.value}),K}return{status:"valid",value:e.data}}get value(){return this._def.value}};sa.create=(t,e)=>new sa({value:t,typeName:E.ZodLiteral,...ne(e)});function dy(t,e){return new oa({values:t,typeName:E.ZodEnum,...ne(e)})}var oa=class t extends ae{_parse(e){if(typeof e.data!="string"){let i=this._getOrReturnCtx(e),n=this._def.values;return _(i,{expected:ce.joinValues(n),received:i.parsedType,code:M.invalid_type}),K}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(e.data)){let i=this._getOrReturnCtx(e),n=this._def.values;return _(i,{received:i.data,code:M.invalid_enum_value,options:n}),K}return xi(e.data)}get options(){return this._def.values}get enum(){let e={};for(let i of this._def.values)e[i]=i;return e}get Values(){let e={};for(let i of this._def.values)e[i]=i;return e}get Enum(){let e={};for(let i of this._def.values)e[i]=i;return e}extract(e,i=this._def){return t.create(e,{...this._def,...i})}exclude(e,i=this._def){return t.create(this.options.filter(n=>!e.includes(n)),{...this._def,...i})}};oa.create=dy;var la=class extends ae{_parse(e){let i=ce.getValidEnumValues(this._def.values),n=this._getOrReturnCtx(e);if(n.parsedType!==z.string&&n.parsedType!==z.number){let a=ce.objectValues(i);return _(n,{expected:ce.joinValues(a),received:n.parsedType,code:M.invalid_type}),K}if(this._cache||(this._cache=new Set(ce.getValidEnumValues(this._def.values))),!this._cache.has(e.data)){let a=ce.objectValues(i);return _(n,{received:n.data,code:M.invalid_enum_value,options:a}),K}return xi(e.data)}get enum(){return this._def.values}};la.create=(t,e)=>new la({values:t,typeName:E.ZodNativeEnum,...ne(e)});var vt=class extends ae{unwrap(){return this._def.type}_parse(e){let{ctx:i}=this._processInputParams(e);if(i.parsedType!==z.promise&&i.common.async===!1)return _(i,{code:M.invalid_type,expected:z.promise,received:i.parsedType}),K;let n=i.parsedType===z.promise?i.data:Promise.resolve(i.data);return xi(n.then(a=>this._def.type.parseAsync(a,{path:i.path,errorMap:i.common.contextualErrorMap})))}};vt.create=(t,e)=>new vt({type:t,typeName:E.ZodPromise,...ne(e)});var rn=class extends ae{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===E.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){let{status:i,ctx:n}=this._processInputParams(e),a=this._def.effect||null,r={addIssue:s=>{_(n,s),s.fatal?i.abort():i.dirty()},get path(){return n.path}};if(r.addIssue=r.addIssue.bind(r),a.type==="preprocess"){let s=a.transform(n.data,r);if(n.common.async)return Promise.resolve(s).then(async o=>{if(i.value==="aborted")return K;let l=await this._def.schema._parseAsync({data:o,path:n.path,parent:n});return l.status==="aborted"?K:l.status==="dirty"?Kt(l.value):i.value==="dirty"?Kt(l.value):l});{if(i.value==="aborted")return K;let o=this._def.schema._parseSync({data:s,path:n.path,parent:n});return o.status==="aborted"?K:o.status==="dirty"?Kt(o.value):i.value==="dirty"?Kt(o.value):o}}if(a.type==="refinement"){let s=o=>{let l=a.refinement(o,r);if(n.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(n.common.async===!1){let o=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});return o.status==="aborted"?K:(o.status==="dirty"&&i.dirty(),s(o.value),{status:i.value,value:o.value})}else return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(o=>o.status==="aborted"?K:(o.status==="dirty"&&i.dirty(),s(o.value).then(()=>({status:i.value,value:o.value}))))}if(a.type==="transform")if(n.common.async===!1){let s=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});if(!mt(s))return K;let o=a.transform(s.value,r);if(o instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:i.value,value:o}}else return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(s=>mt(s)?Promise.resolve(a.transform(s.value,r)).then(o=>({status:i.value,value:o})):K);ce.assertNever(a)}};rn.create=(t,e,i)=>new rn({schema:t,typeName:E.ZodEffects,effect:e,...ne(i)});rn.createWithPreprocess=(t,e,i)=>new rn({schema:e,effect:{type:"preprocess",transform:t},typeName:E.ZodEffects,...ne(i)});var tn=class extends ae{_parse(e){return this._getType(e)===z.undefined?xi(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}};tn.create=(t,e)=>new tn({innerType:t,typeName:E.ZodOptional,...ne(e)});var _n=class extends ae{_parse(e){return this._getType(e)===z.null?xi(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}};_n.create=(t,e)=>new _n({innerType:t,typeName:E.ZodNullable,...ne(e)});var ua=class extends ae{_parse(e){let{ctx:i}=this._processInputParams(e),n=i.data;return i.parsedType===z.undefined&&(n=this._def.defaultValue()),this._def.innerType._parse({data:n,path:i.path,parent:i})}removeDefault(){return this._def.innerType}};ua.create=(t,e)=>new ua({innerType:t,typeName:E.ZodDefault,defaultValue:typeof e.default=="function"?e.default:()=>e.default,...ne(e)});var ca=class extends ae{_parse(e){let{ctx:i}=this._processInputParams(e),n={...i,common:{...i.common,issues:[]}},a=this._def.innerType._parse({data:n.data,path:n.path,parent:{...n}});return er(a)?a.then(r=>({status:"valid",value:r.status==="valid"?r.value:this._def.catchValue({get error(){return new zi(n.common.issues)},input:n.data})})):{status:"valid",value:a.status==="valid"?a.value:this._def.catchValue({get error(){return new zi(n.common.issues)},input:n.data})}}removeCatch(){return this._def.innerType}};ca.create=(t,e)=>new ca({innerType:t,typeName:E.ZodCatch,catchValue:typeof e.catch=="function"?e.catch:()=>e.catch,...ne(e)});var sr=class extends ae{_parse(e){if(this._getType(e)!==z.nan){let n=this._getOrReturnCtx(e);return _(n,{code:M.invalid_type,expected:z.nan,received:n.parsedType}),K}return{status:"valid",value:e.data}}};sr.create=t=>new sr({typeName:E.ZodNaN,...ne(t)});var $I=Symbol("zod_brand"),gs=class extends ae{_parse(e){let{ctx:i}=this._processInputParams(e),n=i.data;return this._def.type._parse({data:n,path:i.path,parent:i})}unwrap(){return this._def.type}},ms=class t extends ae{_parse(e){let{status:i,ctx:n}=this._processInputParams(e);if(n.common.async)return(async()=>{let r=await this._def.in._parseAsync({data:n.data,path:n.path,parent:n});return r.status==="aborted"?K:r.status==="dirty"?(i.dirty(),Kt(r.value)):this._def.out._parseAsync({data:r.value,path:n.path,parent:n})})();{let a=this._def.in._parseSync({data:n.data,path:n.path,parent:n});return a.status==="aborted"?K:a.status==="dirty"?(i.dirty(),{status:"dirty",value:a.value}):this._def.out._parseSync({data:a.value,path:n.path,parent:n})}}static create(e,i){return new t({in:e,out:i,typeName:E.ZodPipeline})}},pa=class extends ae{_parse(e){let i=this._def.innerType._parse(e),n=a=>(mt(a)&&(a.value=Object.freeze(a.value)),a);return er(i)?i.then(a=>n(a)):n(i)}unwrap(){return this._def.innerType}};pa.create=(t,e)=>new pa({innerType:t,typeName:E.ZodReadonly,...ne(e)});function ly(t,e){let i=typeof t=="function"?t(e):typeof t=="string"?{message:t}:t;return typeof i=="string"?{message:i}:i}function hy(t,e={},i){return t?wt.create().superRefine((n,a)=>{let r=t(n);if(r instanceof Promise)return r.then(s=>{if(!s){let o=ly(e,n),l=o.fatal??i??!0;a.addIssue({code:"custom",...o,fatal:l})}});if(!r){let s=ly(e,n),o=s.fatal??i??!0;a.addIssue({code:"custom",...s,fatal:o})}}):wt.create()}var NI={object:Di.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 UI=(t,e={message:`Input not instance of ${t.name}`})=>hy(i=>i instanceof t,e),gy=ft.create,my=Qt.create,LI=sr.create,WI=Yt.create,fy=Xt.create,BI=ea.create,FI=nr.create,VI=ia.create,JI=na.create,ZI=wt.create,KI=Yn.create,QI=vn.create,YI=tr.create,XI=Xn.create,fd=Di.create,ez=Di.strictCreate,iz=ta.create,nz=ql.create,tz=aa.create,az=qn.create,rz=_l.create,sz=ar.create,oz=rr.create,lz=Hl.create,uz=ra.create,cz=sa.create,pz=oa.create,dz=la.create,hz=vt.create,gz=rn.create,mz=tn.create,fz=_n.create,wz=rn.createWithPreprocess,vz=ms.create,Cz=()=>gy().optional(),Az=()=>my().optional(),bz=()=>fy().optional(),yz={string:(t=>ft.create({...t,coerce:!0})),number:(t=>Qt.create({...t,coerce:!0})),boolean:(t=>Xt.create({...t,coerce:!0})),bigint:(t=>Yt.create({...t,coerce:!0})),date:(t=>ea.create({...t,coerce:!0}))};var Pz=K;var wy;function j(t,e,i){function n(o,l){if(o._zod||Object.defineProperty(o,"_zod",{value:{def:l,constr:s,traits:new Set},enumerable:!1}),o._zod.traits.has(t))return;o._zod.traits.add(t),e(o,l);let u=s.prototype,c=Object.keys(u);for(let p=0;pi?.Parent&&o instanceof i.Parent?!0:o?._zod?.traits?.has(t)}),Object.defineProperty(s,"name",{value:t}),s}var yX=Symbol("zod_brand"),Hn=class extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}},or=class extends Error{constructor(e){super(`Encountered unidirectional transform during encode: ${e}`),this.name="ZodEncodeError"}};(wy=globalThis).__zod_globalConfig??(wy.__zod_globalConfig={});var lr=globalThis.__zod_globalConfig;function Qi(t){return t&&Object.assign(lr,t),lr}var he={};dd(he,{BIGINT_FORMAT_RANGES:()=>Ay,Class:()=>vd,NUMBER_FORMAT_RANGES:()=>Sd,aborted:()=>bt,allowsEval:()=>bd,assert:()=>Mz,assertEqual:()=>Sz,assertIs:()=>xz,assertNever:()=>Tz,assertNotEqual:()=>Oz,assignProp:()=>Ct,base64ToUint8Array:()=>Ty,base64urlToUint8Array:()=>$z,cached:()=>cr,captureStackTrace:()=>zl,cleanEnum:()=>Gz,cleanRegex:()=>Cs,clone:()=>Yi,cloneDef:()=>kz,createTransparentProxy:()=>zz,defineLazy:()=>Oe,esc:()=>Il,escapeRegex:()=>nt,explicitlyAborted:()=>Od,extend:()=>Py,finalizeIssue:()=>sn,floatSafeRemainder:()=>Cd,getElementAtPath:()=>qz,getEnumValues:()=>ws,getLengthableOrigin:()=>As,getParsedType:()=>Iz,getSizableOrigin:()=>xy,hexToUint8Array:()=>Uz,isObject:()=>da,isPlainObject:()=>At,issue:()=>pr,joinValues:()=>Rl,jsonStringifyReplacer:()=>ur,merge:()=>Dz,mergeDefs:()=>it,normalizeParams:()=>J,nullish:()=>vs,numKeys:()=>Rz,objectClone:()=>Ez,omit:()=>yy,optionalKeys:()=>jd,parsedType:()=>xd,partial:()=>Sy,pick:()=>by,prefixIssues:()=>tt,primitiveTypes:()=>Cy,promiseAllObject:()=>_z,propertyKeyTypes:()=>Pd,randomString:()=>Hz,required:()=>Oy,safeExtend:()=>jy,shallowClone:()=>yd,slugify:()=>Ad,stringifyPrimitive:()=>Dl,uint8ArrayToBase64:()=>My,uint8ArrayToBase64url:()=>Nz,uint8ArrayToHex:()=>Lz,unwrapMessage:()=>fs});function Sz(t){return t}function Oz(t){return t}function xz(t){}function Tz(t){throw new Error("Unexpected value in exhaustive check")}function Mz(t){}function ws(t){let e=Object.values(t).filter(n=>typeof n=="number");return Object.entries(t).filter(([n,a])=>e.indexOf(+n)===-1).map(([n,a])=>a)}function Rl(t,e="|"){return t.map(i=>Dl(i)).join(e)}function ur(t,e){return typeof e=="bigint"?e.toString():e}function cr(t){return{get value(){{let i=t();return Object.defineProperty(this,"value",{value:i}),i}throw new Error("cached value already set")}}}function vs(t){return t==null}function Cs(t){let e=t.startsWith("^")?1:0,i=t.endsWith("$")?t.length-1:t.length;return t.slice(e,i)}function Cd(t,e){let i=t/e,n=Math.round(i),a=Number.EPSILON*Math.max(Math.abs(i),1);return Math.abs(i-n)i?.[n],t):t}function _z(t){let e=Object.keys(t),i=e.map(n=>t[n]);return Promise.all(i).then(n=>{let a={};for(let r=0;r{};function da(t){return typeof t=="object"&&t!==null&&!Array.isArray(t)}var bd=cr(()=>{if(lr.jitless||typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{let t=Function;return new t(""),!0}catch{return!1}});function At(t){if(da(t)===!1)return!1;let e=t.constructor;if(e===void 0||typeof e!="function")return!0;let i=e.prototype;return!(da(i)===!1||Object.prototype.hasOwnProperty.call(i,"isPrototypeOf")===!1)}function yd(t){return At(t)?{...t}:Array.isArray(t)?[...t]:t instanceof Map?new Map(t):t instanceof Set?new Set(t):t}function Rz(t){let e=0;for(let i in t)Object.prototype.hasOwnProperty.call(t,i)&&e++;return e}var Iz=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}`)}},Pd=new Set(["string","number","symbol"]),Cy=new Set(["string","number","bigint","boolean","symbol","undefined"]);function nt(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Yi(t,e,i){let n=new t._zod.constr(e??t._zod.def);return(!e||i?.parent)&&(n._zod.parent=t),n}function J(t){let e=t;if(!e)return{};if(typeof e=="string")return{error:()=>e};if(e?.message!==void 0){if(e?.error!==void 0)throw new Error("Cannot specify both `message` and `error` params");e.error=e.message}return delete e.message,typeof e.error=="string"?{...e,error:()=>e.error}:e}function zz(t){let e;return new Proxy({},{get(i,n,a){return e??(e=t()),Reflect.get(e,n,a)},set(i,n,a,r){return e??(e=t()),Reflect.set(e,n,a,r)},has(i,n){return e??(e=t()),Reflect.has(e,n)},deleteProperty(i,n){return e??(e=t()),Reflect.deleteProperty(e,n)},ownKeys(i){return e??(e=t()),Reflect.ownKeys(e)},getOwnPropertyDescriptor(i,n){return e??(e=t()),Reflect.getOwnPropertyDescriptor(e,n)},defineProperty(i,n,a){return e??(e=t()),Reflect.defineProperty(e,n,a)}})}function Dl(t){return typeof t=="bigint"?t.toString()+"n":typeof t=="string"?`"${t}"`:`${t}`}function jd(t){return Object.keys(t).filter(e=>t[e]._zod.optin==="optional"&&t[e]._zod.optout==="optional")}var Sd={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]},Ay={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function by(t,e){let i=t._zod.def,n=i.checks;if(n&&n.length>0)throw new Error(".pick() cannot be used on object schemas containing refinements");let r=it(t._zod.def,{get shape(){let s={};for(let o in e){if(!(o in i.shape))throw new Error(`Unrecognized key: "${o}"`);e[o]&&(s[o]=i.shape[o])}return Ct(this,"shape",s),s},checks:[]});return Yi(t,r)}function yy(t,e){let i=t._zod.def,n=i.checks;if(n&&n.length>0)throw new Error(".omit() cannot be used on object schemas containing refinements");let r=it(t._zod.def,{get shape(){let s={...t._zod.def.shape};for(let o in e){if(!(o in i.shape))throw new Error(`Unrecognized key: "${o}"`);e[o]&&delete s[o]}return Ct(this,"shape",s),s},checks:[]});return Yi(t,r)}function Py(t,e){if(!At(e))throw new Error("Invalid input to extend: expected a plain object");let i=t._zod.def.checks;if(i&&i.length>0){let r=t._zod.def.shape;for(let s in e)if(Object.getOwnPropertyDescriptor(r,s)!==void 0)throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}let a=it(t._zod.def,{get shape(){let r={...t._zod.def.shape,...e};return Ct(this,"shape",r),r}});return Yi(t,a)}function jy(t,e){if(!At(e))throw new Error("Invalid input to safeExtend: expected a plain object");let i=it(t._zod.def,{get shape(){let n={...t._zod.def.shape,...e};return Ct(this,"shape",n),n}});return Yi(t,i)}function Dz(t,e){if(t._zod.def.checks?.length)throw new Error(".merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.");let i=it(t._zod.def,{get shape(){let n={...t._zod.def.shape,...e._zod.def.shape};return Ct(this,"shape",n),n},get catchall(){return e._zod.def.catchall},checks:e._zod.def.checks??[]});return Yi(t,i)}function Sy(t,e,i){let a=e._zod.def.checks;if(a&&a.length>0)throw new Error(".partial() cannot be used on object schemas containing refinements");let s=it(e._zod.def,{get shape(){let o=e._zod.def.shape,l={...o};if(i)for(let u in i){if(!(u in o))throw new Error(`Unrecognized key: "${u}"`);i[u]&&(l[u]=t?new t({type:"optional",innerType:o[u]}):o[u])}else for(let u in o)l[u]=t?new t({type:"optional",innerType:o[u]}):o[u];return Ct(this,"shape",l),l},checks:[]});return Yi(e,s)}function Oy(t,e,i){let n=it(e._zod.def,{get shape(){let a=e._zod.def.shape,r={...a};if(i)for(let s in i){if(!(s in r))throw new Error(`Unrecognized key: "${s}"`);i[s]&&(r[s]=new t({type:"nonoptional",innerType:a[s]}))}else for(let s in a)r[s]=new t({type:"nonoptional",innerType:a[s]});return Ct(this,"shape",r),r}});return Yi(e,n)}function bt(t,e=0){if(t.aborted===!0)return!0;for(let i=e;i{var n;return(n=i).path??(n.path=[]),i.path.unshift(t),i})}function fs(t){return typeof t=="string"?t:t?.message}function sn(t,e,i){let n=t.message?t.message:fs(t.inst?._zod.def?.error?.(t))??fs(e?.error?.(t))??fs(i.customError?.(t))??fs(i.localeError?.(t))??"Invalid input",{inst:a,continue:r,input:s,...o}=t;return o.path??(o.path=[]),o.message=n,e?.reportInput&&(o.input=s),o}function xy(t){return t instanceof Set?"set":t instanceof Map?"map":t instanceof File?"file":"unknown"}function As(t){return Array.isArray(t)?"array":typeof t=="string"?"string":"unknown"}function xd(t){let e=typeof t;switch(e){case"number":return Number.isNaN(t)?"nan":"number";case"object":{if(t===null)return"null";if(Array.isArray(t))return"array";let i=t;if(i&&Object.getPrototypeOf(i)!==Object.prototype&&"constructor"in i&&i.constructor)return i.constructor.name}}return e}function pr(...t){let[e,i,n]=t;return typeof e=="string"?{message:e,code:"custom",input:i,inst:n}:{...e}}function Gz(t){return Object.entries(t).filter(([e,i])=>Number.isNaN(Number.parseInt(e,10))).map(e=>e[1])}function Ty(t){let e=atob(t),i=new Uint8Array(e.length);for(let n=0;ne.toString(16).padStart(2,"0")).join("")}var vd=class{constructor(...e){}};var Ey=(t,e)=>{t.name="$ZodError",Object.defineProperty(t,"_zod",{value:t._zod,enumerable:!1}),Object.defineProperty(t,"issues",{value:e,enumerable:!1}),t.message=JSON.stringify(e,ur,2),Object.defineProperty(t,"toString",{value:()=>t.message,enumerable:!1})},Gl=j("$ZodError",Ey),bs=j("$ZodError",Ey,{Parent:Error});function ky(t,e=i=>i.message){let i={},n=[];for(let a of t.issues)a.path.length>0?(i[a.path[0]]=i[a.path[0]]||[],i[a.path[0]].push(e(a))):n.push(e(a));return{formErrors:n,fieldErrors:i}}function qy(t,e=i=>i.message){let i={_errors:[]},n=(a,r=[])=>{for(let s of a.issues)if(s.code==="invalid_union"&&s.errors.length)s.errors.map(o=>n({issues:o},[...r,...s.path]));else if(s.code==="invalid_key")n({issues:s.issues},[...r,...s.path]);else if(s.code==="invalid_element")n({issues:s.issues},[...r,...s.path]);else{let o=[...r,...s.path];if(o.length===0)i._errors.push(e(s));else{let l=i,u=0;for(;u(e,i,n,a)=>{let r=n?{...n,async:!1}:{async:!1},s=e._zod.run({value:i,issues:[]},r);if(s instanceof Promise)throw new Hn;if(s.issues.length){let o=new(a?.Err??t)(s.issues.map(l=>sn(l,r,Qi())));throw zl(o,a?.callee),o}return s.value},$l=ys(bs),Ps=t=>async(e,i,n,a)=>{let r=n?{...n,async:!0}:{async:!0},s=e._zod.run({value:i,issues:[]},r);if(s instanceof Promise&&(s=await s),s.issues.length){let o=new(a?.Err??t)(s.issues.map(l=>sn(l,r,Qi())));throw zl(o,a?.callee),o}return s.value},Nl=Ps(bs),js=t=>(e,i,n)=>{let a=n?{...n,async:!1}:{async:!1},r=e._zod.run({value:i,issues:[]},a);if(r instanceof Promise)throw new Hn;return r.issues.length?{success:!1,error:new(t??Gl)(r.issues.map(s=>sn(s,a,Qi())))}:{success:!0,data:r.value}},ha=js(bs),Ss=t=>async(e,i,n)=>{let a=n?{...n,async:!0}:{async:!0},r=e._zod.run({value:i,issues:[]},a);return r instanceof Promise&&(r=await r),r.issues.length?{success:!1,error:new t(r.issues.map(s=>sn(s,a,Qi())))}:{success:!0,data:r.value}},ga=Ss(bs),_y=t=>(e,i,n)=>{let a=n?{...n,direction:"backward"}:{direction:"backward"};return ys(t)(e,i,a)};var Hy=t=>(e,i,n)=>ys(t)(e,i,n);var Ry=t=>async(e,i,n)=>{let a=n?{...n,direction:"backward"}:{direction:"backward"};return Ps(t)(e,i,a)};var Iy=t=>async(e,i,n)=>Ps(t)(e,i,n);var zy=t=>(e,i,n)=>{let a=n?{...n,direction:"backward"}:{direction:"backward"};return js(t)(e,i,a)};var Dy=t=>(e,i,n)=>js(t)(e,i,n);var Gy=t=>async(e,i,n)=>{let a=n?{...n,direction:"backward"}:{direction:"backward"};return Ss(t)(e,i,a)};var $y=t=>async(e,i,n)=>Ss(t)(e,i,n);var Ny=/^[cC][0-9a-z]{6,}$/,Uy=/^[0-9a-z]+$/,Ly=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,Wy=/^[0-9a-vA-V]{20}$/,By=/^[A-Za-z0-9]{27}$/,Fy=/^[a-zA-Z0-9_-]{21}$/,Vy=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/;var Jy=/^([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})$/,Td=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 Zy=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/;var Bz="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function Ky(){return new RegExp(Bz,"u")}var Qy=/^(?:(?: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])$/,Yy=/^(([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 Xy=/^((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])$/,eP=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,iP=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,Md=/^[A-Za-z0-9_-]*$/;var nP=/^https?$/,tP=/^\+[1-9]\d{6,14}$/,aP="(?:(?:\\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])))",rP=new RegExp(`^${aP}$`);function sP(t){let e="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof t.precision=="number"?t.precision===-1?`${e}`:t.precision===0?`${e}:[0-5]\\d`:`${e}:[0-5]\\d\\.\\d{${t.precision}}`:`${e}(?::[0-5]\\d(?:\\.\\d+)?)?`}function oP(t){return new RegExp(`^${sP(t)}$`)}function lP(t){let e=sP({precision:t.precision}),i=["Z"];t.local&&i.push(""),t.offset&&i.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");let n=`${e}(?:${i.join("|")})`;return new RegExp(`^${aP}T(?:${n})$`)}var uP=t=>{let e=t?`[\\s\\S]{${t?.minimum??0},${t?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${e}$`)};var cP=/^-?\d+$/,Ed=/^-?\d+(?:\.\d+)?$/,pP=/^(?:true|false)$/i,dP=/^null$/i;var hP=/^[^A-Z]*$/,gP=/^[^a-z]*$/;var di=j("$ZodCheck",(t,e)=>{var i;t._zod??(t._zod={}),t._zod.def=e,(i=t._zod).onattach??(i.onattach=[])}),mP={number:"number",bigint:"bigint",object:"date"},kd=j("$ZodCheckLessThan",(t,e)=>{di.init(t,e);let i=mP[typeof e.value];t._zod.onattach.push(n=>{let a=n._zod.bag,r=(e.inclusive?a.maximum:a.exclusiveMaximum)??Number.POSITIVE_INFINITY;e.value{(e.inclusive?n.value<=e.value:n.value{di.init(t,e);let i=mP[typeof e.value];t._zod.onattach.push(n=>{let a=n._zod.bag,r=(e.inclusive?a.minimum:a.exclusiveMinimum)??Number.NEGATIVE_INFINITY;e.value>r&&(e.inclusive?a.minimum=e.value:a.exclusiveMinimum=e.value)}),t._zod.check=n=>{(e.inclusive?n.value>=e.value:n.value>e.value)||n.issues.push({origin:i,code:"too_small",minimum:typeof e.value=="object"?e.value.getTime():e.value,input:n.value,inclusive:e.inclusive,inst:t,continue:!e.abort})}}),fP=j("$ZodCheckMultipleOf",(t,e)=>{di.init(t,e),t._zod.onattach.push(i=>{var n;(n=i._zod.bag).multipleOf??(n.multipleOf=e.value)}),t._zod.check=i=>{if(typeof i.value!=typeof e.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof i.value=="bigint"?i.value%e.value===BigInt(0):Cd(i.value,e.value)===0)||i.issues.push({origin:typeof i.value,code:"not_multiple_of",divisor:e.value,input:i.value,inst:t,continue:!e.abort})}}),wP=j("$ZodCheckNumberFormat",(t,e)=>{di.init(t,e),e.format=e.format||"float64";let i=e.format?.includes("int"),n=i?"int":"number",[a,r]=Sd[e.format];t._zod.onattach.push(s=>{let o=s._zod.bag;o.format=e.format,o.minimum=a,o.maximum=r,i&&(o.pattern=cP)}),t._zod.check=s=>{let o=s.value;if(i){if(!Number.isInteger(o)){s.issues.push({expected:n,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:n,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:n,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 vP=j("$ZodCheckMaxLength",(t,e)=>{var i;di.init(t,e),(i=t._zod.def).when??(i.when=n=>{let a=n.value;return!vs(a)&&a.length!==void 0}),t._zod.onattach.push(n=>{let a=n._zod.bag.maximum??Number.POSITIVE_INFINITY;e.maximum{let a=n.value;if(a.length<=e.maximum)return;let s=As(a);n.issues.push({origin:s,code:"too_big",maximum:e.maximum,inclusive:!0,input:a,inst:t,continue:!e.abort})}}),CP=j("$ZodCheckMinLength",(t,e)=>{var i;di.init(t,e),(i=t._zod.def).when??(i.when=n=>{let a=n.value;return!vs(a)&&a.length!==void 0}),t._zod.onattach.push(n=>{let a=n._zod.bag.minimum??Number.NEGATIVE_INFINITY;e.minimum>a&&(n._zod.bag.minimum=e.minimum)}),t._zod.check=n=>{let a=n.value;if(a.length>=e.minimum)return;let s=As(a);n.issues.push({origin:s,code:"too_small",minimum:e.minimum,inclusive:!0,input:a,inst:t,continue:!e.abort})}}),AP=j("$ZodCheckLengthEquals",(t,e)=>{var i;di.init(t,e),(i=t._zod.def).when??(i.when=n=>{let a=n.value;return!vs(a)&&a.length!==void 0}),t._zod.onattach.push(n=>{let a=n._zod.bag;a.minimum=e.length,a.maximum=e.length,a.length=e.length}),t._zod.check=n=>{let a=n.value,r=a.length;if(r===e.length)return;let s=As(a),o=r>e.length;n.issues.push({origin:s,...o?{code:"too_big",maximum:e.length}:{code:"too_small",minimum:e.length},inclusive:!0,exact:!0,input:n.value,inst:t,continue:!e.abort})}}),xs=j("$ZodCheckStringFormat",(t,e)=>{var i,n;di.init(t,e),t._zod.onattach.push(a=>{let r=a._zod.bag;r.format=e.format,e.pattern&&(r.patterns??(r.patterns=new Set),r.patterns.add(e.pattern))}),e.pattern?(i=t._zod).check??(i.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})}):(n=t._zod).check??(n.check=()=>{})}),bP=j("$ZodCheckRegex",(t,e)=>{xs.init(t,e),t._zod.check=i=>{e.pattern.lastIndex=0,!e.pattern.test(i.value)&&i.issues.push({origin:"string",code:"invalid_format",format:"regex",input:i.value,pattern:e.pattern.toString(),inst:t,continue:!e.abort})}}),yP=j("$ZodCheckLowerCase",(t,e)=>{e.pattern??(e.pattern=hP),xs.init(t,e)}),PP=j("$ZodCheckUpperCase",(t,e)=>{e.pattern??(e.pattern=gP),xs.init(t,e)}),jP=j("$ZodCheckIncludes",(t,e)=>{di.init(t,e);let i=nt(e.includes),n=new RegExp(typeof e.position=="number"?`^.{${e.position}}${i}`:i);e.pattern=n,t._zod.onattach.push(a=>{let r=a._zod.bag;r.patterns??(r.patterns=new Set),r.patterns.add(n)}),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})}}),SP=j("$ZodCheckStartsWith",(t,e)=>{di.init(t,e);let i=new RegExp(`^${nt(e.prefix)}.*`);e.pattern??(e.pattern=i),t._zod.onattach.push(n=>{let a=n._zod.bag;a.patterns??(a.patterns=new Set),a.patterns.add(i)}),t._zod.check=n=>{n.value.startsWith(e.prefix)||n.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:e.prefix,input:n.value,inst:t,continue:!e.abort})}}),OP=j("$ZodCheckEndsWith",(t,e)=>{di.init(t,e);let i=new RegExp(`.*${nt(e.suffix)}$`);e.pattern??(e.pattern=i),t._zod.onattach.push(n=>{let a=n._zod.bag;a.patterns??(a.patterns=new Set),a.patterns.add(i)}),t._zod.check=n=>{n.value.endsWith(e.suffix)||n.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:e.suffix,input:n.value,inst:t,continue:!e.abort})}});var xP=j("$ZodCheckOverwrite",(t,e)=>{di.init(t,e),t._zod.check=i=>{i.value=e.tx(i.value)}});var Ul=class{constructor(e=[]){this.content=[],this.indent=0,this&&(this.args=e)}indented(e){this.indent+=1,e(this),this.indent-=1}write(e){if(typeof e=="function"){e(this,{execution:"sync"}),e(this,{execution:"async"});return}let n=e.split(` +`}getLogLevel(e){switch(e){case"error":return hs.level.LError;case"debug":return hs.level.LDebug;case"trace":return hs.level.LTrace;default:return hs.level.LNone}}getLogFormat(e){switch(e){case"json":return Qa.formats.JSON;default:return Qa.formats.TEXT}}},SA=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"),i=require("path");this.configPath=i.join(e.homedir(),".genesyscloudjavascript","config")}this.watchedConfigPath,this.refresh_access_token=!0,this.refresh_token_wait_max=10,this._live_reload_config=!0,this.host,this.environment,this.basePath,this.authUrl,this.config,this.gateway=void 0,this.logger=new jA,this.setEnvironment(),this.liveLoadConfig()}get live_reload_config(){return this._live_reload_config}set live_reload_config(e){if(typeof window>"u"){let i=require("fs");e!=null&&this.live_reload_config!==e&&(this._live_reload_config=e,this.watchedConfigPath&&(i.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},(i,n)=>{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 i=require("fs");e&&e!==this.configPath?(this.configPath=e,this.watchedConfigPath&&(i.unwatchFile(this.watchedConfigPath),this.watchedConfigPath=null),this.liveLoadConfig()):!e&&this.configPath&&(this.configPath="",this.watchedConfigPath&&(i.unwatchFile(this.watchedConfigPath),this.watchedConfigPath=null));return}this.configPath=""}updateConfigFromFile(){if(typeof window>"u"&&this.configPath){let n=iI();try{var e=new n;e.read(this.configPath),this.config=e}catch(a){if(a.name&&a.name==="MissingSectionHeaderError"){var i=require("fs").readFileSync(this.configPath,"utf8");this.config={_sections:JSON.parse(i)}}}this.config&&this.updateConfigValues()}}updateConfigValues(){if(this.logger.log_level=this.logger.getLogLevel(this.getConfigString("logging","log_level")),this.logger.log_format=this.logger.getLogFormat(this.getConfigString("logging","log_format")),this.logger.log_to_console=this.getConfigBoolean("logging","log_to_console")!==void 0?this.getConfigBoolean("logging","log_to_console"):this.logger.log_to_console,this.logger.log_file_path=this.getConfigString("logging","log_file_path")!==void 0?this.getConfigString("logging","log_file_path"):this.logger.log_file_path,this.logger.log_response_body=this.getConfigBoolean("logging","log_response_body")!==void 0?this.getConfigBoolean("logging","log_response_body"):this.logger.log_response_body,this.logger.log_request_body=this.getConfigBoolean("logging","log_request_body")!==void 0?this.getConfigBoolean("logging","log_request_body"):this.logger.log_request_body,this.refresh_access_token=this.getConfigBoolean("reauthentication","refresh_access_token")!==void 0?this.getConfigBoolean("reauthentication","refresh_access_token"):this.refresh_access_token,this.refresh_token_wait_max=this.getConfigInt("reauthentication","refresh_token_wait_max")!==void 0?this.getConfigInt("reauthentication","refresh_token_wait_max"):this.refresh_token_wait_max,this.live_reload_config=this.getConfigBoolean("general","live_reload_config")!==void 0?this.getConfigBoolean("general","live_reload_config"):this.live_reload_config,this.host=this.getConfigString("general","host")!==void 0?this.getConfigString("general","host"):this.host,this.getConfigString("gateway","host")!==void 0){let e={host:this.getConfigString("gateway","host")};this.getConfigString("gateway","protocol")!==void 0&&(e.protocol=this.getConfigString("gateway","protocol")),this.getConfigInt("gateway","port")!==void 0&&(e.port=this.getConfigInt("gateway","port")),this.getConfigString("gateway","path_params_login")!==void 0&&(e.path_params_login=this.getConfigString("gateway","path_params_login")),this.getConfigString("gateway","path_params_api")!==void 0&&(e.path_params_api=this.getConfigString("gateway","path_params_api")),this.getConfigString("gateway","username")!==void 0&&(e.username=this.getConfigString("gateway","username")),this.getConfigString("gateway","password")!==void 0&&(e.password=this.getConfigString("gateway","password")),this.setGateway(e)}else this.setGateway();this.setEnvironment(),this.logger.setLogger()}setGateway(e){e?(this.gateway={host:""},e.protocol?this.gateway.protocol=e.protocol:this.gateway.protocol="https",e.host?this.gateway.host=e.host:this.gateway.host="",e.port&&e.port>-1?this.gateway.port=e.port:this.gateway.port=-1,e.path_params_login?(this.gateway.path_params_login=e.path_params_login,this.gateway.path_params_login=this.gateway.path_params_login.replace(/\/+$/,"")):this.gateway.path_params_login="",e.path_params_api?(this.gateway.path_params_api=e.path_params_api,this.gateway.path_params_api=this.gateway.path_params_api.replace(/\/+$/,"")):this.gateway.path_params_api="",e.username&&(this.gateway.username=e.username),e.password&&(this.gateway.password=e.password)):this.gateway=void 0}setEnvironment(e){e?this.environment=e:this.environment=this.host?this.host:"mypurecloud.com",this.environment=this.environment.replace(/\/+$/,""),this.environment.startsWith("https://")&&(this.environment=this.environment.substring(8)),this.environment.startsWith("http://")&&(this.environment=this.environment.substring(7)),this.environment.startsWith("api.")&&(this.environment=this.environment.substring(4)),this.basePath=`https://api.${this.environment}`,this.authUrl=`https://login.${this.environment}`}getConfUrl(e,i){if(!this.gateway||!this.gateway.host)return i;var n=this.gateway.protocol+"://"+this.gateway.host;return this.gateway.port>-1&&(n=n+":"+this.gateway.port.toString()),e==="login"?this.gateway.path_params_login&&(this.gateway.path_params_login.startsWith("/")?n=n+this.gateway.path_params_login:n=n+"/"+this.gateway.path_params_login):this.gateway.path_params_api&&(this.gateway.path_params_api.startsWith("/")?n=n+this.gateway.path_params_api:n=n+"/"+this.gateway.path_params_api),n}getConfigString(e,i){if(this.config._sections[e])return this.config._sections[e][i]}getConfigBoolean(e,i){if(this.config._sections[e]&&this.config._sections[e][i]!==void 0)return typeof this.config._sections[e][i]=="string"?this.config._sections[e][i]==="true":this.config._sections[e][i]}getConfigInt(e,i){if(this.config._sections[e]&&this.config._sections[e][i])return typeof this.config._sections[e][i]=="string"?parseInt(this.config._sections[e][i]):this.config._sections[e][i]}},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;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 SA,typeof window<"u"&&(window.ApiClient=this)}setReturnExtendedResponses(e){this.returnExtended=e}setPersistSettings(e,i){this.persistSettings=e,this.settingsPrefix=i?i.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 i=JSON.parse(JSON.stringify(this.authData));delete i.state,localStorage.setItem(`${this.settingsPrefix}_auth_data`,JSON.stringify(i))}catch(i){console.error(i)}}_loadSettings(){if(this.persistSettings!==!0||!this.hasLocalStorage)return;let e=this.authData.state;this.authData=localStorage.getItem(`${this.settingsPrefix}_auth_data`),this.authData?this.authData=JSON.parse(this.authData):this.authData={},this.authData.accessToken&&this.setAccessToken(this.authData.accessToken),this.authData.state=e}_clearSettings(){try{if(this.authData&&this.authData.accessToken&&(this.authData.accessToken=null),this.authentications["PureCloud OAuth"]&&this.authentications["PureCloud OAuth"].accessToken&&(this.authentications["PureCloud OAuth"].accessToken=null),this.authData&&this.authData.state&&(this.authData.state=null),this.authData&&this.authData.error&&(this.authData.error=null),this.authData&&this.authData.error_description&&(this.authData.error_description=null),this.authData&&this.authData.tokenExpiryTime&&(this.authData.tokenExpiryTime=0),this.authData&&this.authData.tokenExpiryTimeString&&(this.authData.tokenExpiryTimeString=null),this.persistSettings!==!0||!this.hasLocalStorage)return;let e=JSON.parse(JSON.stringify(this.authData));delete e.state,localStorage.setItem(`${this.settingsPrefix}_auth_data`,JSON.stringify(e))}catch(e){console.error(e)}}setEnvironment(e){this.config.setEnvironment(e)}setDefaultHeaders(e){if(!e||typeof e!="object")throw new Error("default headers must be a map");this.defaultHeaders=e}getDefaultHeaders(){return this.defaultHeaders}setGenesysAppHeader(e){if(!e||typeof e!="string")throw new Error("headerValue must be a non empty string");this.defaultHeaders?this.defaultHeaders["Genesys-App"]=e:this.defaultHeaders={"Genesys-App":e}}getGenesysAppHeader(){return this.defaultHeaders&&this.defaultHeaders["Genesys-App"]?this.defaultHeaders["Genesys-App"]:null}setHttpClient(e){if(!(e instanceof El))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 pd(this.timeout,this.proxyAgent),this.httpClient)}setMTLSCertificates(e,i,n){if(typeof window>"u"){let a={};e&&(a.cert=require("fs").readFileSync(e)),i&&(a.key=require("fs").readFileSync(i)),n&&(a.ca=require("fs").readFileSync(n)),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,i,n){if(typeof window>"u"){let a={};e&&(a.cert=e),i&&(a.key=i),n&&(a.ca=n),a.rejectUnauthorized=!0,this.proxyAgent=new require("https").Agent(a),this.getHttpClient().setHttpsAgent(this.proxyAgent)}else throw new Error("MTLS authentication is managed by the Browser itself. MTLS certificates cannot be set via code on Browser.")}setGateway(e){this.config.setGateway(e)}loginImplicitGrant(e,i,n){let a=this._setValuesFromUrlHash();return this.clientId=e,this.redirectUri=i,n||(n={}),new Promise((r,s)=>{if(n.org&&!n.provider?s(new Error("opts.provider must be set if opts.org is set")):n.provider&&!n.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&&n.state&&(this.authData.state=n.state),r(this.authData)}).catch(o=>{var l={client_id:encodeURIComponent(this.clientId),redirect_uri:encodeURIComponent(this.redirectUri),response_type:"token"};n.state&&(l.state=encodeURIComponent(n.state)),n.org&&(l.org=encodeURIComponent(n.org)),n.provider&&(l.provider=encodeURIComponent(n.provider)),n.prompt&&n.prompt=="login"&&(l.prompt=encodeURIComponent(n.prompt));var u=this._buildAuthUrl("oauth/authorize",l);window.location.replace(u)})})}loginClientCredentialsGrant(e,i){this.clientId=e;var n=Buffer.from(`${e}:${i}`).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 ${n}`};var l=new Zt(`${a}/oauth/token`,"POST",o,null,"grant_type=client_credentials",this.timeout);this.getHttpClient().request(l).then(c=>{this.config.logger.log("trace",c.status,"POST",`${a}/oauth/token`,o,c.headers,{grant_type:"client_credentials"},void 0),this.config.logger.log("debug",c.status,"POST",`${a}/oauth/token`,o,void 0,{grant_type:"client_credentials"},void 0),this.setAccessToken(c.data.access_token),this.authData.tokenExpiryTime=new Date().getTime()+c.data.expires_in*1e3,this.authData.tokenExpiryTimeString=new Date(this.authData.tokenExpiryTime).toUTCString(),r(this.authData)}).catch(c=>{c.response&&this.config.logger.log("error",c.response.status,"POST",`${a}/oauth/token`,o,c.response.headers,{grant_type:"client_credentials"},c.response.data),s(c)})})}loginSaml2BearerGrant(e,i,n,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+":"+i).toString("base64"),u=this._formAuthRequest(l,{grant_type:"urn:ietf:params:oauth:grant-type:saml2-bearer",orgName:n,assertion:a});u.proxy=this.proxy;var c={grant_type:"urn:ietf:params:oauth:grant-type:saml2-bearer",orgName:n,assertion:a};u.then(p=>{this.config.logger.log("trace",p.status,"POST",`${r}/oauth/token`,u.headers,p.headers,c,void 0),this.config.logger.log("debug",p.status,"POST",`${r}/oauth/token`,u.headers,void 0,c,void 0);var d=p.data.access_token;this.setAccessToken(d),this.authData.tokenExpiryTime=new Date().getTime()+p.data.expires_in*1e3,this.authData.tokenExpiryTimeString=new Date(this.authData.tokenExpiryTime).toUTCString(),s(this.authData)}).catch(p=>{p.response&&this.config.logger.log("error",p.response.status,"POST",`${r}/oauth/token`,u.headers,p.response.headers,c,p.response.data),o(p)})})}authorizePKCEGrant(e,i,n,a){this.clientId=e;var r=this.config.getConfUrl("login",`https://login.${this.config.environment}`);return new Promise((s,o)=>{var l={"Content-Type":"application/x-www-form-urlencoded"},u=nI.default.stringify({grant_type:"authorization_code",code:n,code_verifier:i,client_id:e,redirect_uri:a}),c=new Zt(`${r}/oauth/token`,"POST",l,null,u,this.timeout);let p=this.getHttpClient();var d={grant_type:"authorization_code",code:n,code_verifier:i,client_id:e,redirect_uri:a};p.request(c).then(h=>{this.config.logger.log("trace",h.status,"POST",`${r}/oauth/token`,c.headers,h.headers,d,void 0),this.config.logger.log("debug",h.status,"POST",`${r}/oauth/token`,c.headers,void 0,d,void 0);var g=h.data.access_token;let m={accessToken:g};h.data.expires_in!==null&&h.data.expires_in!==void 0&&(m.tokenExpiryTime=new Date().getTime()+h.data.expires_in*1e3,m.tokenExpiryTimeString=new Date(m.tokenExpiryTime).toUTCString()),this._saveSettings(m),s(this.authData)}).catch(h=>{h.response&&this.config.logger.log("error",h.response.status,"POST",`${r}/oauth/token`,c.headers,h.response.headers,d,h.response.data),o(h)})})}generatePKCECodeVerifier(e){if(e<43||e>128)throw new Error("PKCE Code Verifier (length) must be between 43 and 128 characters");if(typeof window>"u")try{let i=require("crypto").getRandomValues,n="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-._~";return Array.from(i(new Uint32Array(e))).map(r=>n[r%n.length]).join("")}catch{throw new Error("Crypto module is missing/not supported.")}else{let i="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-._~";return Array.from(crypto.getRandomValues(new Uint32Array(e))).map(a=>i[a%i.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 i=require("crypto").createHash,n=new TextEncoder().encode(e);return new Promise((a,r)=>{let s=i("sha256").update(n).digest(),o=Buffer.from(s).toString("base64url");a(o)})}catch{throw new Error("Crypto module is missing/not supported.")}else{let i=new TextEncoder().encode(e);return new Promise((n,a)=>{window.crypto.subtle.digest("SHA-256",i).then(r=>{let o=btoa(String.fromCharCode(...new Uint8Array(r))).replaceAll("+","-").replaceAll("/","_");o=o.split("=")[0],n(o)}).catch(r=>a(new Error(`Code Challenge Error ${r}`)))})}}loginPKCEGrant(e,i,n,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=i,this.codeVerifier=a,n||(n={}),new Promise((s,o)=>{if(n.org&&!n.provider)return o(new Error("opts.provider must be set if opts.org is set"));if(n.provider&&!n.org)return o(new Error("opts.org must be set if opts.provider is set"));if(r&&r.error)return this.hasLocalStorage&&sessionStorage.removeItem("genesys_cloud_sdk_pkce_code_verifier"),this._saveSettings({accessToken:void 0}),o(new Error(`[${r.error}] ${r.error_description}`));r&&r.code?(this.codeVerifier||this.hasLocalStorage&&(this.codeVerifier=sessionStorage.getItem("genesys_cloud_sdk_pkce_code_verifier")),this.authorizePKCEGrant(this.clientId,this.codeVerifier,r.code,this.redirectUri).then(()=>{this._testTokenAccess().then(()=>{!this.authData.state&&r.state&&(this.authData.state=r.state),this.hasLocalStorage&&sessionStorage.removeItem("genesys_cloud_sdk_pkce_code_verifier"),s(this.authData)}).catch(l=>(this._saveSettings({accessToken:void 0}),this.hasLocalStorage&&sessionStorage.removeItem("genesys_cloud_sdk_pkce_code_verifier"),o(new Error(`[${l.name}] ${l.msg}`))))}).catch(l=>(this._saveSettings({accessToken:void 0}),this.hasLocalStorage&&sessionStorage.removeItem("genesys_cloud_sdk_pkce_code_verifier"),o(new Error(`[${l.name}] ${l.msg}`))))):this._testTokenAccess().then(()=>{!this.authData.state&&n.state&&(this.authData.state=n.state),s(this.authData)}).catch(l=>{this.codeVerifier||(this.codeVerifier=this.generatePKCECodeVerifier(128),this.hasLocalStorage&&sessionStorage.setItem("genesys_cloud_sdk_pkce_code_verifier",this.codeVerifier)),this.computePKCECodeChallenge(this.codeVerifier).then(u=>{var c={client_id:encodeURIComponent(this.clientId),redirect_uri:encodeURIComponent(this.redirectUri),code_challenge:encodeURIComponent(u),response_type:"code",code_challenge_method:"S256"};n.state&&(c.state=encodeURIComponent(n.state)),n.org&&(c.org=encodeURIComponent(n.org)),n.provider&&(c.provider=encodeURIComponent(n.provider)),n.prompt&&n.prompt=="login"&&(c.prompt=encodeURIComponent(n.prompt));var p=this._buildAuthUrl("oauth/authorize",c);window.location.replace(p)}).catch(u=>o(new Error(`[${u.name}]`)))})})}_setValuesFromUrlQuery(){if(!(typeof window<"u"&&window.location.search))return;let e={},i=new URLSearchParams(window.location.search),n=i.get("code"),a=i.get("error"),r=i.get("error_description"),s=i.get("state");if(a)return e.error=a,r&&(e.error_description=r),e;n&&(e.code=n,s&&(e.state=s));var o,l,u=window.location;return"replaceState"in history?history.replaceState("",document.title,u.pathname):(o=document.body.scrollTop,l=document.body.scrollLeft,history.pushState("",document.title,u.pathname),document.body.scrollTop=o,document.body.scrollLeft=l),e}loginCodeAuthorizationGrant(e,i,n,a){return this.clientId=e,this.clientSecret=i,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+":"+i).toString("base64"),l=this._formAuthRequest(o,{grant_type:"authorization_code",code:n,redirect_uri:a});l.proxy=this.proxy;var u={grant_type:"authorization_code",code:n,redirect_uri:a};this._handleCodeAuthorizationResponse(l,u,r,s)})}refreshCodeAuthorizationGrant(e,i,n){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+":"+i).toString("base64"),o=this._formAuthRequest(s,{grant_type:"refresh_token",refresh_token:n});o.proxy=this.proxy;var l={grant_type:"refresh_token",refresh_token:n};this._handleCodeAuthorizationResponse(o,l,a,r)})}_handleCodeAuthorizationResponse(e,i,n,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,i,void 0),this.config.logger.log("debug",s.status,"POST",`${r}/oauth/token`,e.headers,void 0,i,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(),n(this.authData)}).catch(s=>{s.response&&this.config.logger.log("error",s.response.status,"POST",`${r}/oauth/token`,e.headers,s.response.headers,i,s.response.data),a(s)})}_formAuthRequest(e,i){var n=this.config.getConfUrl("login",`https://login.${this.config.environment}`),a={Authorization:"Basic "+e,"Content-Type":"application/x-www-form-urlencoded"},r=new Zt(`${n}/oauth/token`,"POST",a,null,nI.default.stringify(i),this.timeout);return this.getHttpClient().request(r)}_handleExpiredAccessToken(){return new Promise((e,i)=>{if(typeof window<"u"){i(new Error("This method is not supported in a browser."));return}this.refreshInProgress?this._sleep(this.config.refresh_token_wait_max).then(()=>{this.refreshInProgress?i(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(n=>{this.refreshInProgress=!1,i(n)}))})}_sleep(e){return new Promise(i=>setTimeout(i,e))}_testTokenAccess(){return new Promise((e,i)=>{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(()=>{e()}).catch(n=>{this._saveSettings({accessToken:void 0}),i(n)})})}_setValuesFromUrlHash(){if(!(typeof window<"u"&&window.location.hash))return;let e=new RegExp("^#*(.+?)=(.+?)$","i"),i={};if(window.location.hash.split("&").forEach(s=>{let o=e.exec(s);o&&(i[o[1]]=decodeURIComponent(decodeURIComponent(o[2].replace(/\+/g,"%20"))))}),i.error)return i;if(i.access_token){let s={};i.state&&(s.state=i.state),i.expires_in&&(s.tokenExpiryTime=new Date().getTime()+parseInt(i.expires_in.replace(/\+/g,"%20"))*1e3,s.tokenExpiryTimeString=new Date(s.tokenExpiryTime).toUTCString()),s.accessToken=i.access_token.replace(/\+/g,"%20");var n,a,r=window.location;"replaceState"in history?history.replaceState("",document.title,r.pathname+r.search):(n=document.body.scrollTop,a=document.body.scrollLeft,r.hash="",document.body.scrollTop=n,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 i={client_id:encodeURIComponent(this.clientId)};e&&(i.redirect_uri=encodeURI(e));var n=this._buildAuthUrl("logout",i);window.location.replace(n)}_buildAuthUrl(e,i){i||(i={});var n=this.config.getConfUrl("login",this.config.authUrl);return Object.keys(i).reduce((a,r)=>i[r]?`${a}&${r}=${i[r]}`:a,`${n}/${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 i={};for(var n in e)e.hasOwnProperty(n)&&e[n]!==void 0&&(i[encodeURIComponent(n)]=Array.isArray(e[n])?e[n].join(","):this.paramToString(e[n]));return i}addHeaders(e,...i){return e?e=Object.assign(e,...i):e=Object.assign(...i),e}buildUrl(e,i){e.match(/^\//)||(e=`/${e}`);var n=this.config.getConfUrl("api",this.config.basePath)+e;return n=n.replace(/\{([\w-]+)\}/g,(a,r)=>{var s;return i.hasOwnProperty(r)?s=this.paramToString(i[r]):s=a,encodeURIComponent(s)}),n}isJsonMime(e){return!!(e&&e.match(/^application\/json(;.*)?$/i))}jsonPreferredMime(e){for(var i=0;i"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 i={};for(var n in e)if(e.hasOwnProperty(n)&&e[n]!==void 0){var a=e[n];this.isFileParam(a)||Array.isArray(a)?i[n]=a:i[n]=this.paramToString(a)}return i}buildCollectionParam(e,i){if(e)switch(Array.isArray(e)||(e=[e]),i){case"csv":return e.map(n=>this.paramToString(n)).join(",");case"ssv":return e.map(n=>this.paramToString(n)).join(" ");case"tsv":return e.map(n=>this.paramToString(n)).join(" ");case"pipes":return e.map(n=>this.paramToString(n)).join("|");case"multi":return e.map(n=>this.paramToString(n));default:throw new Error(`Unknown collection format: ${i}`)}}applyAuthToRequest(e,i){i.forEach(n=>{var a=this.authentications[n];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,i,n,a,r,s,o,l,u,c,p){return new Promise((d,h)=>{g(this);function g(m){var f=m.buildUrl(e,n),v=new Zt(f,i,null,m.serialize(a),null,m.timeout);m.applyAuthToRequest(v,l);let y=m.defaultHeaders,A=m.normalizeParams(r);if(v.headers=m.addHeaders(v.headers,y,A),p){if(typeof p!="object")throw new Error("Per-request headers must be a valid object");for(let[k,Q]of Object.entries(p)){if(typeof k!="string"||typeof Q!="string")throw new Error(`Invalid header: "${k}" must have string name and value`);if(!/^[!#$%&'*+\-.0-9A-Z^_`a-z|~]+$/.test(k))throw new Error(`Invalid header name: "${k}" - must be a valid HTTP token`);for(let Z=0;Z=33&&ie<=126||ie===32||ie===9||ie>=128&&ie<=255))throw new Error(`Invalid header value for "${k}": contains invalid characters`)}v.headers[k]=Q}}var b=m.jsonPreferredMime(u);if(b?v.headers["Content-Type"]=b:v.headers["Content-Type"]||(v.headers["Content-Type"]="application/json"),b==="application/x-www-form-urlencoded")v.setData(m.normalizeParams(s));else if(b=="multipart/form-data"){var O=m.normalizeParams(s);for(var $ in O)if(O.hasOwnProperty($)){var N=new FormData;N.set($,O[$]),v.setData(N)}}else o&&v.setData(o);var X=m.jsonPreferredMime(c);X&&(v.headers.Accept=X),m.getHttpClient().request(v).then(k=>{var Q=m.returnExtended===!0?{status:k.status,statusText:k.statusText,headers:k.headers,body:k.data,text:k.text,error:null}:k.data?k.data:k.text;m.config.logger.log("trace",k.status,i,f,v.headers,k.headers,o,void 0),m.config.logger.log("debug",k.status,i,f,v.headers,void 0,o,void 0),d(Q)}).catch(k=>{var Q=k;k.response&&k.response.status==401&&m.config.refresh_access_token&&m.authData.refreshToken&&m.authData.refreshToken!==""?m._handleExpiredAccessToken().then(()=>{g(m)}).catch(Z=>{h(Z)}):k.response&&(m.config.logger.log("error",k.response.status,i,f,v.headers,k.response.headers,o,k.response.data),Q=m.returnExtended===!0?{status:k.response.status,statusText:k.response.statusText,headers:k.response.headers,body:k.response.data,text:k.response.text,error:k}:k.response.data?k.response.data:k.response.text),h(Q)})}})}},OA=class{constructor(e){this.apiClient=e||q.instance}deleteConversationsSummariesSetting(e,i){if(i=i||{},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"],i.customHeaders)}deleteGuideJobs(e,i){if(i=i||{},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"],i.customHeaders)}getConversationsSummariesSetting(e,i){if(i=i||{},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"],i.customHeaders)}getConversationsSummariesSettings(e){return e=e||{},this.apiClient.callApi("/api/v2/conversations/summaries/settings","GET",{},{language:e.language,name:e.name,sortBy:e.sortBy,sortOrder:e.sortOrder,pageNumber:e.pageNumber,pageSize:e.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getGuide(e,i){if(i=i||{},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"],i.customHeaders)}getGuideJob(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "guideId" when calling getGuideJob';if(i==null||i==="")throw'Missing the required parameter "jobId" when calling getGuideJob';return this.apiClient.callApi("/api/v2/guides/{guideId}/jobs/{jobId}","GET",{guideId:e,jobId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getGuideVersion(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "guideId" when calling getGuideVersion';if(i==null||i==="")throw'Missing the required parameter "versionId" when calling getGuideVersion';return this.apiClient.callApi("/api/v2/guides/{guideId}/versions/{versionId}","GET",{guideId:e,versionId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getGuideVersionJob(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "guideId" when calling getGuideVersionJob';if(i==null||i==="")throw'Missing the required parameter "versionId" when calling getGuideVersionJob';if(n==null||n==="")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:i,jobId:n},{},{},{},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,i){if(i=i||{},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"],i.customHeaders)}patchGuide(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "guideId" when calling patchGuide';if(i==null)throw'Missing the required parameter "body" when calling patchGuide';return this.apiClient.callApi("/api/v2/guides/{guideId}","PATCH",{guideId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchGuideVersion(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "guideId" when calling patchGuideVersion';if(i==null||i==="")throw'Missing the required parameter "versionId" when calling patchGuideVersion';if(n==null)throw'Missing the required parameter "body" when calling patchGuideVersion';return this.apiClient.callApi("/api/v2/guides/{guideId}/versions/{versionId}","PATCH",{guideId:e,versionId:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postConversationsSummariesPreview(e,i){if(i=i||{},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"],i.customHeaders)}postConversationsSummariesSettings(e,i){if(i=i||{},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"],i.customHeaders)}postGuideSessionTurns(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "guideId" when calling postGuideSessionTurns';if(i==null||i==="")throw'Missing the required parameter "guideSessionId" when calling postGuideSessionTurns';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postGuideVersionJobs(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "guideId" when calling postGuideVersionJobs';if(i==null||i==="")throw'Missing the required parameter "versionId" when calling postGuideVersionJobs';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postGuideVersions(e,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "guideId" when calling postGuideVersions';return this.apiClient.callApi("/api/v2/guides/{guideId}/versions","POST",{guideId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postGuides(e,i){if(i=i||{},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"],i.customHeaders)}postGuidesJobs(e,i){if(i=i||{},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"],i.customHeaders)}postGuidesUploads(e,i){if(i=i||{},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"],i.customHeaders)}putConversationsSummariesSetting(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "summarySettingId" when calling putConversationsSummariesSetting';if(i==null)throw'Missing the required parameter "body" when calling putConversationsSummariesSetting';return this.apiClient.callApi("/api/v2/conversations/summaries/settings/{summarySettingId}","PUT",{summarySettingId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}},xA=class{constructor(e){this.apiClient=e||q.instance}deleteAssistant(e,i){if(i=i||{},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"],i.customHeaders)}deleteAssistantQueue(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "assistantId" when calling deleteAssistantQueue';if(i==null||i==="")throw'Missing the required parameter "queueId" when calling deleteAssistantQueue';return this.apiClient.callApi("/api/v2/assistants/{assistantId}/queues/{queueId}","DELETE",{assistantId:e,queueId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteAssistantQueues(e,i){if(i=i||{},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:i.queueIds},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}deleteAssistantsAgentchecklist(e,i){if(i=i||{},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"],i.customHeaders)}getAssistant(e,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "assistantId" when calling getAssistant';return this.apiClient.callApi("/api/v2/assistants/{assistantId}","GET",{assistantId:e},{expand:i.expand,languageVariation:i.languageVariation,fallbackToPrimaryAssistant:i.fallbackToPrimaryAssistant},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getAssistantQueue(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "assistantId" when calling getAssistantQueue';if(i==null||i==="")throw'Missing the required parameter "queueId" when calling getAssistantQueue';return this.apiClient.callApi("/api/v2/assistants/{assistantId}/queues/{queueId}","GET",{assistantId:e,queueId:i},{expand:n.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getAssistantQueueUsersJob(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "assistantId" when calling getAssistantQueueUsersJob';if(i==null||i==="")throw'Missing the required parameter "queueId" when calling getAssistantQueueUsersJob';if(n==null||n==="")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:i,jobId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getAssistantQueues(e,i){if(i=i||{},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:i.before,after:i.after,pageSize:i.pageSize,expand:i.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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"],i.customHeaders)}getAssistantsAgentchecklists(e){return e=e||{},this.apiClient.callApi("/api/v2/assistants/agentchecklists","GET",{},{before:e.before,after:e.after,pageSize:e.pageSize,namePrefix:e.namePrefix,language:e.language,sortOrder:e.sortOrder,sortBy:e.sortBy},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getAssistantsAgentchecklistsLanguages(e){return e=e||{},this.apiClient.callApi("/api/v2/assistants/agentchecklists/languages","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getAssistantsQueues(e){return e=e||{},this.apiClient.callApi("/api/v2/assistants/queues","GET",{},{before:e.before,after:e.after,pageSize:e.pageSize,queueIds:e.queueIds,expand:e.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}patchAssistant(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "assistantId" when calling patchAssistant';if(i==null)throw'Missing the required parameter "body" when calling patchAssistant';return this.apiClient.callApi("/api/v2/assistants/{assistantId}","PATCH",{assistantId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchAssistantQueues(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "assistantId" when calling patchAssistantQueues';if(i==null)throw'Missing the required parameter "body" when calling patchAssistantQueues';return this.apiClient.callApi("/api/v2/assistants/{assistantId}/queues","PATCH",{assistantId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postAssistantQueueUsersBulkAdd(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "assistantId" when calling postAssistantQueueUsersBulkAdd';if(i==null||i==="")throw'Missing the required parameter "queueId" when calling postAssistantQueueUsersBulkAdd';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postAssistantQueueUsersBulkRemove(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "assistantId" when calling postAssistantQueueUsersBulkRemove';if(i==null||i==="")throw'Missing the required parameter "queueId" when calling postAssistantQueueUsersBulkRemove';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postAssistantQueueUsersJobs(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "assistantId" when calling postAssistantQueueUsersJobs';if(i==null||i==="")throw'Missing the required parameter "queueId" when calling postAssistantQueueUsersJobs';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postAssistantQueueUsersQuery(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "assistantId" when calling postAssistantQueueUsersQuery';if(i==null||i==="")throw'Missing the required parameter "queueId" when calling postAssistantQueueUsersQuery';if(n==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:i},{expand:this.apiClient.buildCollectionParam(a.expand,"multi")},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postAssistants(e,i){if(i=i||{},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"],i.customHeaders)}postAssistantsAgentchecklists(e,i){if(i=i||{},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"],i.customHeaders)}putAssistantQueue(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "assistantId" when calling putAssistantQueue';if(i==null||i==="")throw'Missing the required parameter "queueId" when calling putAssistantQueue';if(n==null)throw'Missing the required parameter "body" when calling putAssistantQueue';return this.apiClient.callApi("/api/v2/assistants/{assistantId}/queues/{queueId}","PUT",{assistantId:e,queueId:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}putAssistantsAgentchecklist(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "agentChecklistId" when calling putAssistantsAgentchecklist';if(i==null)throw'Missing the required parameter "body" when calling putAssistantsAgentchecklist';return this.apiClient.callApi("/api/v2/assistants/agentchecklists/{agentChecklistId}","PUT",{agentChecklistId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}},TA=class{constructor(e){this.apiClient=e||q.instance}getAssistantCopilot(e,i){if(i=i||{},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"],i.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,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "assistantId" when calling putAssistantCopilot';if(i==null)throw'Missing the required parameter "body" when calling putAssistantCopilot';return this.apiClient.callApi("/api/v2/assistants/{assistantId}/copilot","PUT",{assistantId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}},MA=class{constructor(e){this.apiClient=e||q.instance}deleteUsersAgentuiAgentsAutoanswerAgentIdSettings(e,i){if(i=i||{},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"],i.customHeaders)}getUsersAgentuiAgentsAutoanswerAgentIdSettings(e,i){if(i=i||{},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"],i.customHeaders)}patchUsersAgentuiAgentsAutoanswerAgentIdSettings(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "agentId" when calling patchUsersAgentuiAgentsAutoanswerAgentIdSettings';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putUsersAgentuiAgentsAutoanswerAgentIdSettings(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "agentId" when calling putUsersAgentuiAgentsAutoanswerAgentIdSettings';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}},EA=class{constructor(e){this.apiClient=e||q.instance}deleteAlertingAlert(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getAlertingAlert(e,i){if(i=i||{},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"],i.customHeaders)}getAlertingRule(e,i){if(i=i||{},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"],i.customHeaders)}patchAlertingAlert(e,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "alertId" when calling patchAlertingAlert';return this.apiClient.callApi("/api/v2/alerting/alerts/{alertId}","PATCH",{alertId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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"],i.customHeaders)}patchAlertingRulesBulk(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}postAlertingRulesBulkRemove(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "alertId" when calling putAlertingAlert';return this.apiClient.callApi("/api/v2/alerting/alerts/{alertId}","PUT",{alertId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}putAlertingRule(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "ruleId" when calling putAlertingRule';if(i==null)throw'Missing the required parameter "body" when calling putAlertingRule';return this.apiClient.callApi("/api/v2/alerting/rules/{ruleId}","PUT",{ruleId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}},kA=class{constructor(e){this.apiClient=e||q.instance}deleteAnalyticsActionsAggregatesJob(e,i){if(i=i||{},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"],i.customHeaders)}deleteAnalyticsAgentcopilotsAggregatesJob(e,i){if(i=i||{},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"],i.customHeaders)}deleteAnalyticsAgentutilizationsAggregatesJob(e,i){if(i=i||{},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"],i.customHeaders)}deleteAnalyticsBotsAggregatesJob(e,i){if(i=i||{},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"],i.customHeaders)}deleteAnalyticsCasemanagementAggregatesJob(e,i){if(i=i||{},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"],i.customHeaders)}deleteAnalyticsConversationsAggregatesJob(e,i){if(i=i||{},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"],i.customHeaders)}deleteAnalyticsConversationsDetailsJob(e,i){if(i=i||{},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"],i.customHeaders)}deleteAnalyticsCopilotsAggregatesJob(e,i){if(i=i||{},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"],i.customHeaders)}deleteAnalyticsEvaluationsAggregatesJob(e,i){if(i=i||{},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"],i.customHeaders)}deleteAnalyticsFlowexecutionsAggregatesJob(e,i){if(i=i||{},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"],i.customHeaders)}deleteAnalyticsFlowsAggregatesJob(e,i){if(i=i||{},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"],i.customHeaders)}deleteAnalyticsJourneysAggregatesJob(e,i){if(i=i||{},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"],i.customHeaders)}deleteAnalyticsKnowledgeAggregatesJob(e,i){if(i=i||{},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"],i.customHeaders)}deleteAnalyticsResolutionsAggregatesJob(e,i){if(i=i||{},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"],i.customHeaders)}deleteAnalyticsSummariesAggregatesJob(e,i){if(i=i||{},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"],i.customHeaders)}deleteAnalyticsSurveysAggregatesJob(e,i){if(i=i||{},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"],i.customHeaders)}deleteAnalyticsTaskmanagementAggregatesJob(e,i){if(i=i||{},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"],i.customHeaders)}deleteAnalyticsTranscriptsAggregatesJob(e,i){if(i=i||{},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"],i.customHeaders)}deleteAnalyticsUsersAggregatesJob(e,i){if(i=i||{},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"],i.customHeaders)}deleteAnalyticsUsersDetailsJob(e,i){if(i=i||{},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"],i.customHeaders)}getAnalyticsActionsAggregatesJob(e,i){if(i=i||{},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"],i.customHeaders)}getAnalyticsActionsAggregatesJobResults(e,i){if(i=i||{},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:i.cursor},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getAnalyticsAgentStatus(e,i){if(i=i||{},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"],i.customHeaders)}getAnalyticsAgentcopilotsAggregatesJob(e,i){if(i=i||{},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"],i.customHeaders)}getAnalyticsAgentcopilotsAggregatesJobResults(e,i){if(i=i||{},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:i.cursor},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getAnalyticsAgentutilizationsAggregatesJob(e,i){if(i=i||{},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"],i.customHeaders)}getAnalyticsAgentutilizationsAggregatesJobResults(e,i){if(i=i||{},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:i.cursor},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getAnalyticsBotflowDivisionsReportingturns(e,i){if(i=i||{},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:i.after,pageSize:i.pageSize,interval:i.interval,actionId:i.actionId,sessionId:i.sessionId,language:i.language,askActionResults:i.askActionResults},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getAnalyticsBotflowReportingturns(e,i){if(i=i||{},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:i.after,pageSize:i.pageSize,interval:i.interval,actionId:i.actionId,sessionId:i.sessionId,language:i.language,askActionResults:i.askActionResults},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getAnalyticsBotflowSessions(e,i){if(i=i||{},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:i.after,pageSize:i.pageSize,interval:i.interval,botResultCategories:i.botResultCategories,endLanguage:i.endLanguage},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getAnalyticsBotsAggregatesJob(e,i){if(i=i||{},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"],i.customHeaders)}getAnalyticsBotsAggregatesJobResults(e,i){if(i=i||{},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:i.cursor},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getAnalyticsCasemanagementAggregatesJob(e,i){if(i=i||{},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"],i.customHeaders)}getAnalyticsCasemanagementAggregatesJobResults(e,i){if(i=i||{},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:i.cursor},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getAnalyticsConversationDetails(e,i){if(i=i||{},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"],i.customHeaders)}getAnalyticsConversationsAggregatesJob(e,i){if(i=i||{},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"],i.customHeaders)}getAnalyticsConversationsAggregatesJobResults(e,i){if(i=i||{},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:i.cursor},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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"],i.customHeaders)}getAnalyticsConversationsDetailsJobResults(e,i){if(i=i||{},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:i.cursor,pageSize:i.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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"],i.customHeaders)}getAnalyticsCopilotsAggregatesJobResults(e,i){if(i=i||{},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:i.cursor},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getAnalyticsDataextractionDownload(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getAnalyticsEvaluationsAggregatesJobResults(e,i){if(i=i||{},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:i.cursor},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getAnalyticsFlowexecutionsAggregatesJob(e,i){if(i=i||{},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"],i.customHeaders)}getAnalyticsFlowexecutionsAggregatesJobResults(e,i){if(i=i||{},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:i.cursor},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getAnalyticsFlowsAggregatesJob(e,i){if(i=i||{},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"],i.customHeaders)}getAnalyticsFlowsAggregatesJobResults(e,i){if(i=i||{},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:i.cursor},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getAnalyticsJourneysAggregatesJob(e,i){if(i=i||{},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"],i.customHeaders)}getAnalyticsJourneysAggregatesJobResults(e,i){if(i=i||{},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:i.cursor},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getAnalyticsKnowledgeAggregatesJob(e,i){if(i=i||{},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"],i.customHeaders)}getAnalyticsKnowledgeAggregatesJobResults(e,i){if(i=i||{},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:i.cursor},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getAnalyticsReportingDashboardsUser(e,i){if(i=i||{},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"],i.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,i,n){if(n=n||{},e==null)throw'Missing the required parameter "dashboardType" when calling getAnalyticsReportingSettingsDashboardsQuery';if(i==null)throw'Missing the required parameter "dashboardAccessFilter" when calling getAnalyticsReportingSettingsDashboardsQuery';return this.apiClient.callApi("/api/v2/analytics/reporting/settings/dashboards/query","GET",{},{name:n.name,dashboardType:e,dashboardState:n.dashboardState,dashboardAccessFilter:i,sortBy:n.sortBy,pageNumber:n.pageNumber,pageSize:n.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getAnalyticsReportingSettingsUserDashboards(e,i){if(i=i||{},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:i.sortBy,pageNumber:i.pageNumber,pageSize:i.pageSize,publicOnly:i.publicOnly,favoriteOnly:i.favoriteOnly,deletedOnly:i.deletedOnly,name:i.name},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getAnalyticsResolutionsAggregatesJob(e,i){if(i=i||{},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"],i.customHeaders)}getAnalyticsResolutionsAggregatesJobResults(e,i){if(i=i||{},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:i.cursor},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getAnalyticsSummariesAggregatesJob(e,i){if(i=i||{},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"],i.customHeaders)}getAnalyticsSummariesAggregatesJobResults(e,i){if(i=i||{},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:i.cursor},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getAnalyticsSurveysAggregatesJob(e,i){if(i=i||{},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"],i.customHeaders)}getAnalyticsSurveysAggregatesJobResults(e,i){if(i=i||{},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:i.cursor},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getAnalyticsTaskmanagementAggregatesJob(e,i){if(i=i||{},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"],i.customHeaders)}getAnalyticsTaskmanagementAggregatesJobResults(e,i){if(i=i||{},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:i.cursor},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getAnalyticsTranscriptsAggregatesJob(e,i){if(i=i||{},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"],i.customHeaders)}getAnalyticsTranscriptsAggregatesJobResults(e,i){if(i=i||{},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:i.cursor},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getAnalyticsUsersAggregatesJob(e,i){if(i=i||{},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"],i.customHeaders)}getAnalyticsUsersAggregatesJobResults(e,i){if(i=i||{},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:i.cursor},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getAnalyticsUsersDetailsJob(e,i){if(i=i||{},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"],i.customHeaders)}getAnalyticsUsersDetailsJobResults(e,i){if(i=i||{},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:i.cursor,pageSize:i.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsActionsAggregatesJobs(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsActionsAggregatesQuery(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsAgentcopilotsAggregatesJobs(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsAgentcopilotsAggregatesQuery(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsAgentsStatusCounts(e,i){if(i=i||{},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(i.groupBy,"multi")},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postAnalyticsAgentsStatusQuery(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsAgentutilizationsAggregatesJobs(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsAgentutilizationsAggregatesQuery(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsBotsAggregatesJobs(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsBotsAggregatesQuery(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsCasemanagementAggregatesJobs(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsCasemanagementAggregatesQuery(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsConversationDetailsProperties(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postAnalyticsConversationDetailsProperties';if(i==null)throw'Missing the required parameter "body" when calling postAnalyticsConversationDetailsProperties';return this.apiClient.callApi("/api/v2/analytics/conversations/{conversationId}/details/properties","POST",{conversationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postAnalyticsConversationsActivityQuery(e,i){if(i=i||{},e==null)throw'Missing the required parameter "body" when calling postAnalyticsConversationsActivityQuery';return this.apiClient.callApi("/api/v2/analytics/conversations/activity/query","POST",{},{pageSize:i.pageSize,pageNumber:i.pageNumber},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postAnalyticsConversationsAggregatesJobs(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsConversationsAggregatesQuery(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsConversationsDetailsJobs(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsConversationsDetailsQuery(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsCopilotsAggregatesJobs(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsCopilotsAggregatesQuery(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsDataextractionDownloadsBulk(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsEvaluationsAggregatesJobs(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsEvaluationsAggregatesQuery(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsFlowexecutionsAggregatesJobs(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsFlowexecutionsAggregatesQuery(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsFlowsActivityQuery(e,i){if(i=i||{},e==null)throw'Missing the required parameter "body" when calling postAnalyticsFlowsActivityQuery';return this.apiClient.callApi("/api/v2/analytics/flows/activity/query","POST",{},{pageSize:i.pageSize,pageNumber:i.pageNumber},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postAnalyticsFlowsAggregatesJobs(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsFlowsAggregatesQuery(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsFlowsObservationsQuery(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsJourneysAggregatesJobs(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsJourneysAggregatesQuery(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsKnowledgeAggregatesJobs(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsKnowledgeAggregatesQuery(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsQueuesObservationsQuery(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsRatelimitsAggregatesQuery(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsReportingDashboardsUsersBulkRemove(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsReportingExports(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsReportingSettingsDashboardsBulkRemove(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsReportingSettingsDashboardsQuery(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsResolutionsAggregatesJobs(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsResolutionsAggregatesQuery(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsRoutingActivityQuery(e,i){if(i=i||{},e==null)throw'Missing the required parameter "body" when calling postAnalyticsRoutingActivityQuery';return this.apiClient.callApi("/api/v2/analytics/routing/activity/query","POST",{},{pageSize:i.pageSize,pageNumber:i.pageNumber},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postAnalyticsSummariesAggregatesJobs(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsSummariesAggregatesQuery(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsSurveysAggregatesJobs(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsSurveysAggregatesQuery(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsTaskmanagementAggregatesJobs(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsTaskmanagementAggregatesQuery(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsTaskmanagementMetricsQuery(e,i){if(i=i||{},e==null)throw'Missing the required parameter "body" when calling postAnalyticsTaskmanagementMetricsQuery';return this.apiClient.callApi("/api/v2/analytics/taskmanagement/metrics/query","POST",{},{after:i.after,pageSize:i.pageSize},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postAnalyticsTeamsActivityQuery(e,i){if(i=i||{},e==null)throw'Missing the required parameter "body" when calling postAnalyticsTeamsActivityQuery';return this.apiClient.callApi("/api/v2/analytics/teams/activity/query","POST",{},{pageSize:i.pageSize,pageNumber:i.pageNumber},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postAnalyticsTranscriptsAggregatesJobs(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsTranscriptsAggregatesQuery(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsUsersActivityQuery(e,i){if(i=i||{},e==null)throw'Missing the required parameter "body" when calling postAnalyticsUsersActivityQuery';return this.apiClient.callApi("/api/v2/analytics/users/activity/query","POST",{},{pageSize:i.pageSize,pageNumber:i.pageNumber},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postAnalyticsUsersAggregatesJobs(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsUsersAggregatesQuery(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsUsersDetailsJobs(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsUsersDetailsQuery(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsUsersObservationsQuery(e,i){if(i=i||{},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"],i.customHeaders)}putAnalyticsDataretentionSettings(e,i){if(i=i||{},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"],i.customHeaders)}},qA=class{constructor(e){this.apiClient=e||q.instance}deleteArchitectEmergencygroup(e,i){if(i=i||{},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"],i.customHeaders)}deleteArchitectGrammar(e,i){if(i=i||{},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"],i.customHeaders)}deleteArchitectGrammarLanguage(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "grammarId" when calling deleteArchitectGrammarLanguage';if(i==null||i==="")throw'Missing the required parameter "languageCode" when calling deleteArchitectGrammarLanguage';return this.apiClient.callApi("/api/v2/architect/grammars/{grammarId}/languages/{languageCode}","DELETE",{grammarId:e,languageCode:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteArchitectGrammarLanguageFilesDtmf(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "grammarId" when calling deleteArchitectGrammarLanguageFilesDtmf';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteArchitectGrammarLanguageFilesVoice(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "grammarId" when calling deleteArchitectGrammarLanguageFilesVoice';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteArchitectIvr(e,i){if(i=i||{},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"],i.customHeaders)}deleteArchitectPrompt(e,i){if(i=i||{},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:i.allResources},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}deleteArchitectPromptResource(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "promptId" when calling deleteArchitectPromptResource';if(i==null||i==="")throw'Missing the required parameter "languageCode" when calling deleteArchitectPromptResource';return this.apiClient.callApi("/api/v2/architect/prompts/{promptId}/resources/{languageCode}","DELETE",{promptId:e,languageCode:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteArchitectPromptResourceAudio(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "promptId" when calling deleteArchitectPromptResourceAudio';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteArchitectPrompts(e,i){if(i=i||{},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"],i.customHeaders)}deleteArchitectSchedule(e,i){if(i=i||{},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"],i.customHeaders)}deleteArchitectSchedulegroup(e,i){if(i=i||{},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"],i.customHeaders)}deleteArchitectSystempromptResource(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "promptId" when calling deleteArchitectSystempromptResource';if(i==null||i==="")throw'Missing the required parameter "languageCode" when calling deleteArchitectSystempromptResource';return this.apiClient.callApi("/api/v2/architect/systemprompts/{promptId}/resources/{languageCode}","DELETE",{promptId:e,languageCode:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteFlow(e,i){if(i=i||{},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"],i.customHeaders)}deleteFlowInstancesSettingsLoglevels(e,i){if(i=i||{},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"],i.customHeaders)}deleteFlows(e,i){if(i=i||{},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"],i.customHeaders)}deleteFlowsDatatable(e,i){if(i=i||{},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:i.force},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}deleteFlowsDatatableRow(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "datatableId" when calling deleteFlowsDatatableRow';if(i==null||i==="")throw'Missing the required parameter "rowId" when calling deleteFlowsDatatableRow';return this.apiClient.callApi("/api/v2/flows/datatables/{datatableId}/rows/{rowId}","DELETE",{datatableId:e,rowId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.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,i){if(i=i||{},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"],i.customHeaders)}getArchitectDependencytracking(e,i){if(i=i||{},e==null)throw'Missing the required parameter "name" when calling getArchitectDependencytracking';return this.apiClient.callApi("/api/v2/architect/dependencytracking","GET",{},{pageNumber:i.pageNumber,pageSize:i.pageSize,name:e,objectType:this.apiClient.buildCollectionParam(i.objectType,"multi"),consumedResources:i.consumedResources,consumingResources:i.consumingResources,consumedResourceType:this.apiClient.buildCollectionParam(i.consumedResourceType,"multi"),consumingResourceType:this.apiClient.buildCollectionParam(i.consumingResourceType,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i,n,a){if(a=a||{},e==null)throw'Missing the required parameter "id" when calling getArchitectDependencytrackingConsumedresources';if(i==null)throw'Missing the required parameter "version" when calling getArchitectDependencytrackingConsumedresources';if(n==null)throw'Missing the required parameter "objectType" when calling getArchitectDependencytrackingConsumedresources';return this.apiClient.callApi("/api/v2/architect/dependencytracking/consumedresources","GET",{},{id:e,version:i,objectType:n,resourceType:this.apiClient.buildCollectionParam(a.resourceType,"multi"),pageNumber:a.pageNumber,pageSize:a.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getArchitectDependencytrackingConsumingresources(e,i,n){if(n=n||{},e==null)throw'Missing the required parameter "id" when calling getArchitectDependencytrackingConsumingresources';if(i==null)throw'Missing the required parameter "objectType" when calling getArchitectDependencytrackingConsumingresources';return this.apiClient.callApi("/api/v2/architect/dependencytracking/consumingresources","GET",{},{id:e,objectType:i,resourceType:this.apiClient.buildCollectionParam(n.resourceType,"multi"),version:n.version,pageNumber:n.pageNumber,pageSize:n.pageSize,flowFilter:n.flowFilter},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.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,i){if(i=i||{},e==null)throw'Missing the required parameter "id" when calling getArchitectDependencytrackingObject';return this.apiClient.callApi("/api/v2/architect/dependencytracking/object","GET",{},{id:e,version:i.version,objectType:i.objectType,consumedResources:i.consumedResources,consumingResources:i.consumingResources,consumedResourceType:this.apiClient.buildCollectionParam(i.consumedResourceType,"multi"),consumingResourceType:this.apiClient.buildCollectionParam(i.consumingResourceType,"multi"),consumedResourceRequest:i.consumedResourceRequest},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getArchitectDependencytrackingType(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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:i.includeFileUrls},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getArchitectGrammarLanguage(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "grammarId" when calling getArchitectGrammarLanguage';if(i==null||i==="")throw'Missing the required parameter "languageCode" when calling getArchitectGrammarLanguage';return this.apiClient.callApi("/api/v2/architect/grammars/{grammarId}/languages/{languageCode}","GET",{grammarId:e,languageCode:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.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,i){if(i=i||{},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"],i.customHeaders)}getArchitectIvrIdentityresolution(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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:i.includeMediaUris,includeResources:i.includeResources,language:this.apiClient.buildCollectionParam(i.language,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getArchitectPromptHistoryHistoryId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "promptId" when calling getArchitectPromptHistoryHistoryId';if(i==null||i==="")throw'Missing the required parameter "historyId" when calling getArchitectPromptHistoryHistoryId';return this.apiClient.callApi("/api/v2/architect/prompts/{promptId}/history/{historyId}","GET",{promptId:e,historyId:i},{pageNumber:n.pageNumber,pageSize:n.pageSize,sortOrder:n.sortOrder,sortBy:n.sortBy,action:this.apiClient.buildCollectionParam(n.action,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getArchitectPromptResource(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "promptId" when calling getArchitectPromptResource';if(i==null||i==="")throw'Missing the required parameter "languageCode" when calling getArchitectPromptResource';return this.apiClient.callApi("/api/v2/architect/prompts/{promptId}/resources/{languageCode}","GET",{promptId:e,languageCode:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getArchitectPromptResources(e,i){if(i=i||{},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:i.pageNumber,pageSize:i.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getArchitectPrompts(e){return e=e||{},this.apiClient.callApi("/api/v2/architect/prompts","GET",{},{pageNumber:e.pageNumber,pageSize:e.pageSize,name:this.apiClient.buildCollectionParam(e.name,"multi"),description:e.description,nameOrDescription:e.nameOrDescription,sortBy:e.sortBy,sortOrder:e.sortOrder,includeMediaUris:e.includeMediaUris,includeResources:e.includeResources,language:this.apiClient.buildCollectionParam(e.language,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getArchitectSchedule(e,i){if(i=i||{},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"],i.customHeaders)}getArchitectSchedulegroup(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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:i.includeMediaUris,includeResources:i.includeResources,language:this.apiClient.buildCollectionParam(i.language,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getArchitectSystempromptHistoryHistoryId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "promptId" when calling getArchitectSystempromptHistoryHistoryId';if(i==null||i==="")throw'Missing the required parameter "historyId" when calling getArchitectSystempromptHistoryHistoryId';return this.apiClient.callApi("/api/v2/architect/systemprompts/{promptId}/history/{historyId}","GET",{promptId:e,historyId:i},{pageNumber:n.pageNumber,pageSize:n.pageSize,sortOrder:n.sortOrder,sortBy:n.sortBy,action:this.apiClient.buildCollectionParam(n.action,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getArchitectSystempromptResource(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "promptId" when calling getArchitectSystempromptResource';if(i==null||i==="")throw'Missing the required parameter "languageCode" when calling getArchitectSystempromptResource';return this.apiClient.callApi("/api/v2/architect/systemprompts/{promptId}/resources/{languageCode}","GET",{promptId:e,languageCode:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getArchitectSystempromptResources(e,i){if(i=i||{},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:i.pageNumber,pageSize:i.pageSize,sortBy:i.sortBy,sortOrder:i.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "flowId" when calling getFlow';return this.apiClient.callApi("/api/v2/flows/{flowId}","GET",{flowId:e},{deleted:i.deleted},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getFlowHistoryHistoryId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "flowId" when calling getFlowHistoryHistoryId';if(i==null||i==="")throw'Missing the required parameter "historyId" when calling getFlowHistoryHistoryId';return this.apiClient.callApi("/api/v2/flows/{flowId}/history/{historyId}","GET",{flowId:e,historyId:i},{pageNumber:n.pageNumber,pageSize:n.pageSize,sortOrder:n.sortOrder,sortBy:n.sortBy,action:this.apiClient.buildCollectionParam(n.action,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getFlowInstancesSettingsLoglevels(e,i){if(i=i||{},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(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getFlowLatestconfiguration(e,i){if(i=i||{},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:i.deleted},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getFlowVersion(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "flowId" when calling getFlowVersion';if(i==null||i==="")throw'Missing the required parameter "versionId" when calling getFlowVersion';return this.apiClient.callApi("/api/v2/flows/{flowId}/versions/{versionId}","GET",{flowId:e,versionId:i},{deleted:n.deleted},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getFlowVersionConfiguration(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "flowId" when calling getFlowVersionConfiguration';if(i==null||i==="")throw'Missing the required parameter "versionId" when calling getFlowVersionConfiguration';return this.apiClient.callApi("/api/v2/flows/{flowId}/versions/{versionId}/configuration","GET",{flowId:e,versionId:i},{deleted:n.deleted},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getFlowVersionHealth(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "flowId" when calling getFlowVersionHealth';if(i==null||i==="")throw'Missing the required parameter "versionId" when calling getFlowVersionHealth';return this.apiClient.callApi("/api/v2/flows/{flowId}/versions/{versionId}/health","GET",{flowId:e,versionId:i},{language:n.language},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getFlowVersionIntentHealth(e,i,n,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "flowId" when calling getFlowVersionIntentHealth';if(i==null||i==="")throw'Missing the required parameter "versionId" when calling getFlowVersionIntentHealth';if(n==null||n==="")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:i,intentId:n},{language:a},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}getFlowVersionIntentUtteranceHealth(e,i,n,a,r,s){if(s=s||{},e==null||e==="")throw'Missing the required parameter "flowId" when calling getFlowVersionIntentUtteranceHealth';if(i==null||i==="")throw'Missing the required parameter "versionId" when calling getFlowVersionIntentUtteranceHealth';if(n==null||n==="")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:i,intentId:n,utteranceId:a},{language:r},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],s.customHeaders)}getFlowVersions(e,i){if(i=i||{},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:i.pageNumber,pageSize:i.pageSize,deleted:i.deleted},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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:i.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getFlowsDatatableExportJob(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "datatableId" when calling getFlowsDatatableExportJob';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getFlowsDatatableImportJob(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "datatableId" when calling getFlowsDatatableImportJob';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getFlowsDatatableImportJobs(e,i){if(i=i||{},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:i.pageNumber,pageSize:i.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getFlowsDatatableRow(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "datatableId" when calling getFlowsDatatableRow';if(i==null||i==="")throw'Missing the required parameter "rowId" when calling getFlowsDatatableRow';return this.apiClient.callApi("/api/v2/flows/datatables/{datatableId}/rows/{rowId}","GET",{datatableId:e,rowId:i},{showbrief:n.showbrief},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getFlowsDatatableRows(e,i){if(i=i||{},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:i.pageNumber,pageSize:i.pageSize,showbrief:i.showbrief,sortOrder:i.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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:i.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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"],i.customHeaders)}getFlowsExportJob(e,i){if(i=i||{},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(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getFlowsInstance(e,i){if(i=i||{},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:i.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getFlowsInstancesJob(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getFlowsMilestone(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getFlowsOutcomes(e){return e=e||{},this.apiClient.callApi("/api/v2/flows/outcomes","GET",{},{pageNumber:e.pageNumber,pageSize:e.pageSize,sortBy:e.sortBy,sortOrder:e.sortOrder,id:this.apiClient.buildCollectionParam(e.id,"multi"),name:e.name,description:e.description,nameOrDescription:e.nameOrDescription,divisionId:this.apiClient.buildCollectionParam(e.divisionId,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getFlowsOutcomesDivisionviews(e){return e=e||{},this.apiClient.callApi("/api/v2/flows/outcomes/divisionviews","GET",{},{pageNumber:e.pageNumber,pageSize:e.pageSize,sortBy:e.sortBy,sortOrder:e.sortOrder,id:this.apiClient.buildCollectionParam(e.id,"multi"),name:e.name,divisionId:this.apiClient.buildCollectionParam(e.divisionId,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}patchArchitectGrammar(e,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "grammarId" when calling patchArchitectGrammar';return this.apiClient.callApi("/api/v2/architect/grammars/{grammarId}","PATCH",{grammarId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}patchArchitectGrammarLanguage(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "grammarId" when calling patchArchitectGrammarLanguage';if(i==null||i==="")throw'Missing the required parameter "languageCode" when calling patchArchitectGrammarLanguage';return this.apiClient.callApi("/api/v2/architect/grammars/{grammarId}/languages/{languageCode}","PATCH",{grammarId:e,languageCode:i},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchFlowsInstancesSettingsExecutiondata(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}postArchitectGrammarLanguageFilesDtmf(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "grammarId" when calling postArchitectGrammarLanguageFilesDtmf';if(i==null||i==="")throw'Missing the required parameter "languageCode" when calling postArchitectGrammarLanguageFilesDtmf';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postArchitectGrammarLanguageFilesVoice(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "grammarId" when calling postArchitectGrammarLanguageFilesVoice';if(i==null||i==="")throw'Missing the required parameter "languageCode" when calling postArchitectGrammarLanguageFilesVoice';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postArchitectGrammarLanguages(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "grammarId" when calling postArchitectGrammarLanguages';if(i==null)throw'Missing the required parameter "body" when calling postArchitectGrammarLanguages';return this.apiClient.callApi("/api/v2/architect/grammars/{grammarId}/languages","POST",{grammarId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postArchitectGrammars(e,i){if(i=i||{},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"],i.customHeaders)}postArchitectIvrs(e,i){if(i=i||{},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"],i.customHeaders)}postArchitectPromptHistory(e,i){if(i=i||{},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"],i.customHeaders)}postArchitectPromptResourceUploads(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "promptId" when calling postArchitectPromptResourceUploads';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postArchitectPromptResources(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "promptId" when calling postArchitectPromptResources';if(i==null)throw'Missing the required parameter "body" when calling postArchitectPromptResources';return this.apiClient.callApi("/api/v2/architect/prompts/{promptId}/resources","POST",{promptId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postArchitectPrompts(e,i){if(i=i||{},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"],i.customHeaders)}postArchitectSchedulegroups(e,i){if(i=i||{},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"],i.customHeaders)}postArchitectSchedules(e,i){if(i=i||{},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"],i.customHeaders)}postArchitectSystempromptHistory(e,i){if(i=i||{},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"],i.customHeaders)}postArchitectSystempromptResourceUploads(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "promptId" when calling postArchitectSystempromptResourceUploads';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postArchitectSystempromptResources(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "promptId" when calling postArchitectSystempromptResources';if(i==null)throw'Missing the required parameter "body" when calling postArchitectSystempromptResources';return this.apiClient.callApi("/api/v2/architect/systemprompts/{promptId}/resources","POST",{promptId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postFlowHistory(e,i){if(i=i||{},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"],i.customHeaders)}postFlowInstancesSettingsLoglevels(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "flowId" when calling postFlowInstancesSettingsLoglevels';if(i==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(n.expand,"multi")},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postFlowVersions(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "flowId" when calling postFlowVersions';if(i==null)throw'Missing the required parameter "body" when calling postFlowVersions';return this.apiClient.callApi("/api/v2/flows/{flowId}/versions","POST",{flowId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postFlows(e,i){if(i=i||{},e==null)throw'Missing the required parameter "body" when calling postFlows';return this.apiClient.callApi("/api/v2/flows","POST",{},{language:i.language},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postFlowsActionsCheckin(e,i){if(i=i||{},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"],i.customHeaders)}postFlowsActionsCheckout(e,i){if(i=i||{},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"],i.customHeaders)}postFlowsActionsDeactivate(e,i){if(i=i||{},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"],i.customHeaders)}postFlowsActionsPublish(e,i){if(i=i||{},e==null)throw'Missing the required parameter "flow" when calling postFlowsActionsPublish';return this.apiClient.callApi("/api/v2/flows/actions/publish","POST",{},{flow:e,version:i.version},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postFlowsActionsRevert(e,i){if(i=i||{},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"],i.customHeaders)}postFlowsActionsUnlock(e,i){if(i=i||{},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"],i.customHeaders)}postFlowsDatatableExportJobs(e,i){if(i=i||{},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"],i.customHeaders)}postFlowsDatatableImportCsvJobs(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "datatableId" when calling postFlowsDatatableImportCsvJobs';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postFlowsDatatableImportJobs(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "datatableId" when calling postFlowsDatatableImportJobs';if(i==null)throw'Missing the required parameter "body" when calling postFlowsDatatableImportJobs';return this.apiClient.callApi("/api/v2/flows/datatables/{datatableId}/import/jobs","POST",{datatableId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postFlowsDatatableRows(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "datatableId" when calling postFlowsDatatableRows';if(i==null)throw'Missing the required parameter "dataTableRow" when calling postFlowsDatatableRows';return this.apiClient.callApi("/api/v2/flows/datatables/{datatableId}/rows","POST",{datatableId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postFlowsDatatables(e,i){if(i=i||{},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"],i.customHeaders)}postFlowsExecutions(e,i){if(i=i||{},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"],i.customHeaders)}postFlowsExportJobs(e,i){if(i=i||{},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"],i.customHeaders)}postFlowsInstancesJobs(e,i){if(i=i||{},e==null)throw'Missing the required parameter "body" when calling postFlowsInstancesJobs';return this.apiClient.callApi("/api/v2/flows/instances/jobs","POST",{},{expand:i.expand},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postFlowsInstancesQuery(e,i){if(i=i||{},e==null)throw'Missing the required parameter "body" when calling postFlowsInstancesQuery';return this.apiClient.callApi("/api/v2/flows/instances/query","POST",{},{indexOnly:i.indexOnly,pageSize:i.pageSize},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postFlowsJobs(e){return e=e||{},this.apiClient.callApi("/api/v2/flows/jobs","POST",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}postFlowsMilestones(e){return e=e||{},this.apiClient.callApi("/api/v2/flows/milestones","POST",{},{},{},{},e.body,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}postFlowsOutcomes(e){return e=e||{},this.apiClient.callApi("/api/v2/flows/outcomes","POST",{},{},{},{},e.body,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}putArchitectEmergencygroup(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "emergencyGroupId" when calling putArchitectEmergencygroup';if(i==null)throw'Missing the required parameter "body" when calling putArchitectEmergencygroup';return this.apiClient.callApi("/api/v2/architect/emergencygroups/{emergencyGroupId}","PUT",{emergencyGroupId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putArchitectIvr(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "ivrId" when calling putArchitectIvr';if(i==null)throw'Missing the required parameter "body" when calling putArchitectIvr';return this.apiClient.callApi("/api/v2/architect/ivrs/{ivrId}","PUT",{ivrId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putArchitectIvrIdentityresolution(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "ivrId" when calling putArchitectIvrIdentityresolution';if(i==null)throw'Missing the required parameter "body" when calling putArchitectIvrIdentityresolution';return this.apiClient.callApi("/api/v2/architect/ivrs/{ivrId}/identityresolution","PUT",{ivrId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putArchitectPrompt(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "promptId" when calling putArchitectPrompt';if(i==null)throw'Missing the required parameter "body" when calling putArchitectPrompt';return this.apiClient.callApi("/api/v2/architect/prompts/{promptId}","PUT",{promptId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putArchitectPromptResource(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "promptId" when calling putArchitectPromptResource';if(i==null||i==="")throw'Missing the required parameter "languageCode" when calling putArchitectPromptResource';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}putArchitectSchedule(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "scheduleId" when calling putArchitectSchedule';if(i==null)throw'Missing the required parameter "body" when calling putArchitectSchedule';return this.apiClient.callApi("/api/v2/architect/schedules/{scheduleId}","PUT",{scheduleId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putArchitectSchedulegroup(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "scheduleGroupId" when calling putArchitectSchedulegroup';if(i==null)throw'Missing the required parameter "body" when calling putArchitectSchedulegroup';return this.apiClient.callApi("/api/v2/architect/schedulegroups/{scheduleGroupId}","PUT",{scheduleGroupId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putArchitectSystempromptResource(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "promptId" when calling putArchitectSystempromptResource';if(i==null||i==="")throw'Missing the required parameter "languageCode" when calling putArchitectSystempromptResource';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}putFlow(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "flowId" when calling putFlow';if(i==null)throw'Missing the required parameter "body" when calling putFlow';return this.apiClient.callApi("/api/v2/flows/{flowId}","PUT",{flowId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putFlowInstancesSettingsLoglevels(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "flowId" when calling putFlowInstancesSettingsLoglevels';if(i==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(n.expand,"multi")},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putFlowsDatatable(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "datatableId" when calling putFlowsDatatable';if(i==null)throw'Missing the required parameter "body" when calling putFlowsDatatable';return this.apiClient.callApi("/api/v2/flows/datatables/{datatableId}","PUT",{datatableId:e},{expand:n.expand},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putFlowsDatatableRow(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "datatableId" when calling putFlowsDatatableRow';if(i==null||i==="")throw'Missing the required parameter "rowId" when calling putFlowsDatatableRow';return this.apiClient.callApi("/api/v2/flows/datatables/{datatableId}/rows/{rowId}","PUT",{datatableId:e,rowId:i},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putFlowsInstancesSettingsLoglevelsDefault(e,i){if(i=i||{},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(i.expand,"multi")},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}putFlowsMilestone(e,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "milestoneId" when calling putFlowsMilestone';return this.apiClient.callApi("/api/v2/flows/milestones/{milestoneId}","PUT",{milestoneId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}putFlowsOutcome(e,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "flowOutcomeId" when calling putFlowsOutcome';return this.apiClient.callApi("/api/v2/flows/outcomes/{flowOutcomeId}","PUT",{flowOutcomeId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}},_A=class{constructor(e){this.apiClient=e||q.instance}deleteAssistantVariation(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "assistantId" when calling deleteAssistantVariation';if(i==null||i==="")throw'Missing the required parameter "variationId" when calling deleteAssistantVariation';return this.apiClient.callApi("/api/v2/assistants/{assistantId}/variations/{variationId}","DELETE",{assistantId:e,variationId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getAssistantVariation(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "assistantId" when calling getAssistantVariation';if(i==null||i==="")throw'Missing the required parameter "variationId" when calling getAssistantVariation';return this.apiClient.callApi("/api/v2/assistants/{assistantId}/variations/{variationId}","GET",{assistantId:e,variationId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getAssistantVariations(e,i){if(i=i||{},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"],i.customHeaders)}postAssistantVariations(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "assistantId" when calling postAssistantVariations';if(i==null)throw'Missing the required parameter "body" when calling postAssistantVariations';return this.apiClient.callApi("/api/v2/assistants/{assistantId}/variations","POST",{assistantId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putAssistantVariation(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "assistantId" when calling putAssistantVariation';if(i==null||i==="")throw'Missing the required parameter "variationId" when calling putAssistantVariation';if(n==null)throw'Missing the required parameter "body" when calling putAssistantVariation';return this.apiClient.callApi("/api/v2/assistants/{assistantId}/variations/{variationId}","PUT",{assistantId:e,variationId:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}},HA=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,i){if(i=i||{},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"],i.customHeaders)}getAuditsQueryTransactionIdResults(e,i){if(i=i||{},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:i.cursor,pageSize:i.pageSize,expand:this.apiClient.buildCollectionParam(i.expand,"multi"),allowRedirect:i.allowRedirect},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postAuditsQuery(e,i){if(i=i||{},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"],i.customHeaders)}postAuditsQueryRealtime(e,i){if(i=i||{},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(i.expand,"multi")},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postAuditsQueryRealtimeRelated(e,i){if(i=i||{},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(i.expand,"multi")},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}},RA=class{constructor(e){this.apiClient=e||q.instance}deleteAuthorizationDivision(e,i){if(i=i||{},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:i.force},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}deleteAuthorizationPoliciesTargetSubjectSubjectId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "targetName" when calling deleteAuthorizationPoliciesTargetSubjectSubjectId';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteAuthorizationRole(e,i){if(i=i||{},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"],i.customHeaders)}deleteAuthorizationSubjectDivisionRole(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "subjectId" when calling deleteAuthorizationSubjectDivisionRole';if(i==null||i==="")throw'Missing the required parameter "divisionId" when calling deleteAuthorizationSubjectDivisionRole';if(n==null||n==="")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:i,roleId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getAuthorizationDivision(e,i){if(i=i||{},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:i.objectCount},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getAuthorizationDivisionGrants(e,i){if(i=i||{},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:i.pageNumber,pageSize:i.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},e==null)throw'Missing the required parameter "permission" when calling getAuthorizationDivisionspermittedMe';return this.apiClient.callApi("/api/v2/authorization/divisionspermitted/me","GET",{},{name:i.name,permission:e},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getAuthorizationDivisionspermittedPagedMe(e,i){if(i=i||{},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:i.pageNumber,pageSize:i.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getAuthorizationDivisionspermittedPagedSubjectId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "subjectId" when calling getAuthorizationDivisionspermittedPagedSubjectId';if(i==null)throw'Missing the required parameter "permission" when calling getAuthorizationDivisionspermittedPagedSubjectId';return this.apiClient.callApi("/api/v2/authorization/divisionspermitted/paged/{subjectId}","GET",{subjectId:e},{permission:i,pageNumber:n.pageNumber,pageSize:n.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.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,i){if(i=i||{},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:i.after,pageSize:i.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getAuthorizationPoliciesTarget(e,i){if(i=i||{},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:i.after,pageSize:i.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getAuthorizationPoliciesTargetSubjectSubjectId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "targetName" when calling getAuthorizationPoliciesTargetSubjectSubjectId';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.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,i){if(i=i||{},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"],i.customHeaders)}getAuthorizationPolicyAttributes(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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:i.userCount,expand:this.apiClient.buildCollectionParam(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getAuthorizationRoleComparedefaultRightRoleId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "leftRoleId" when calling getAuthorizationRoleComparedefaultRightRoleId';if(i==null||i==="")throw'Missing the required parameter "rightRoleId" when calling getAuthorizationRoleComparedefaultRightRoleId';return this.apiClient.callApi("/api/v2/authorization/roles/{leftRoleId}/comparedefault/{rightRoleId}","GET",{leftRoleId:e,rightRoleId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getAuthorizationRoleSubjectgrants(e,i){if(i=i||{},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:i.pageSize,pageNumber:i.pageNumber,sortBy:i.sortBy,expand:this.apiClient.buildCollectionParam(i.expand,"multi"),nextPage:i.nextPage,previousPage:i.previousPage},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getAuthorizationRoleUsers(e,i){if(i=i||{},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:i.pageSize,pageNumber:i.pageNumber},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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:i.includeDuplicates},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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"],i.customHeaders)}patchAuthorizationRole(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "roleId" when calling patchAuthorizationRole';if(i==null)throw'Missing the required parameter "body" when calling patchAuthorizationRole';return this.apiClient.callApi("/api/v2/authorization/roles/{roleId}","PATCH",{roleId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchAuthorizationSettings(e,i){if(i=i||{},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"],i.customHeaders)}postAuthorizationDivisionObject(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "divisionId" when calling postAuthorizationDivisionObject';if(i==null||i==="")throw'Missing the required parameter "objectType" when calling postAuthorizationDivisionObject';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postAuthorizationDivisionRestore(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "divisionId" when calling postAuthorizationDivisionRestore';if(i==null)throw'Missing the required parameter "body" when calling postAuthorizationDivisionRestore';return this.apiClient.callApi("/api/v2/authorization/divisions/{divisionId}/restore","POST",{divisionId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postAuthorizationDivisions(e,i){if(i=i||{},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"],i.customHeaders)}postAuthorizationPoliciesTarget(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "targetName" when calling postAuthorizationPoliciesTarget';if(i==null)throw'Missing the required parameter "body" when calling postAuthorizationPoliciesTarget';return this.apiClient.callApi("/api/v2/authorization/policies/targets/{targetName}","POST",{targetName:e},{skipLockoutCheck:n.skipLockoutCheck},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postAuthorizationPoliciesTargetValidate(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "targetName" when calling postAuthorizationPoliciesTargetValidate';if(i==null)throw'Missing the required parameter "body" when calling postAuthorizationPoliciesTargetValidate';return this.apiClient.callApi("/api/v2/authorization/policies/targets/{targetName}/validate","POST",{targetName:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postAuthorizationPolicySimulate(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "policyId" when calling postAuthorizationPolicySimulate';if(i==null)throw'Missing the required parameter "body" when calling postAuthorizationPolicySimulate';return this.apiClient.callApi("/api/v2/authorization/policies/{policyId}/simulate","POST",{policyId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postAuthorizationRole(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "roleId" when calling postAuthorizationRole';if(i==null)throw'Missing the required parameter "body" when calling postAuthorizationRole';return this.apiClient.callApi("/api/v2/authorization/roles/{roleId}","POST",{roleId:e},{subjectType:n.subjectType},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postAuthorizationRoleComparedefaultRightRoleId(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "leftRoleId" when calling postAuthorizationRoleComparedefaultRightRoleId';if(i==null||i==="")throw'Missing the required parameter "rightRoleId" when calling postAuthorizationRoleComparedefaultRightRoleId';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postAuthorizationRoles(e,i){if(i=i||{},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"],i.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,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "subjectId" when calling postAuthorizationSubjectBulkadd';if(i==null)throw'Missing the required parameter "body" when calling postAuthorizationSubjectBulkadd';return this.apiClient.callApi("/api/v2/authorization/subjects/{subjectId}/bulkadd","POST",{subjectId:e},{subjectType:n.subjectType},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postAuthorizationSubjectBulkremove(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "subjectId" when calling postAuthorizationSubjectBulkremove';if(i==null)throw'Missing the required parameter "body" when calling postAuthorizationSubjectBulkremove';return this.apiClient.callApi("/api/v2/authorization/subjects/{subjectId}/bulkremove","POST",{subjectId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postAuthorizationSubjectBulkreplace(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "subjectId" when calling postAuthorizationSubjectBulkreplace';if(i==null)throw'Missing the required parameter "body" when calling postAuthorizationSubjectBulkreplace';return this.apiClient.callApi("/api/v2/authorization/subjects/{subjectId}/bulkreplace","POST",{subjectId:e},{subjectType:n.subjectType},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postAuthorizationSubjectDivisionRole(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "subjectId" when calling postAuthorizationSubjectDivisionRole';if(i==null||i==="")throw'Missing the required parameter "divisionId" when calling postAuthorizationSubjectDivisionRole';if(n==null||n==="")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:i,roleId:n},{subjectType:a.subjectType},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}putAuthorizationDivision(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "divisionId" when calling putAuthorizationDivision';if(i==null)throw'Missing the required parameter "body" when calling putAuthorizationDivision';return this.apiClient.callApi("/api/v2/authorization/divisions/{divisionId}","PUT",{divisionId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putAuthorizationPoliciesTarget(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "targetName" when calling putAuthorizationPoliciesTarget';if(i==null)throw'Missing the required parameter "body" when calling putAuthorizationPoliciesTarget';return this.apiClient.callApi("/api/v2/authorization/policies/targets/{targetName}","PUT",{targetName:e},{skipLockoutCheck:n.skipLockoutCheck},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putAuthorizationPolicy(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "policyId" when calling putAuthorizationPolicy';if(i==null)throw'Missing the required parameter "body" when calling putAuthorizationPolicy';return this.apiClient.callApi("/api/v2/authorization/policies/{policyId}","PUT",{policyId:e},{skipLockoutCheck:n.skipLockoutCheck},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putAuthorizationRole(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "roleId" when calling putAuthorizationRole';if(i==null)throw'Missing the required parameter "body" when calling putAuthorizationRole';return this.apiClient.callApi("/api/v2/authorization/roles/{roleId}","PUT",{roleId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putAuthorizationRoleUsersAdd(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "roleId" when calling putAuthorizationRoleUsersAdd';if(i==null)throw'Missing the required parameter "body" when calling putAuthorizationRoleUsersAdd';return this.apiClient.callApi("/api/v2/authorization/roles/{roleId}/users/add","PUT",{roleId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putAuthorizationRoleUsersRemove(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "roleId" when calling putAuthorizationRoleUsersRemove';if(i==null)throw'Missing the required parameter "body" when calling putAuthorizationRoleUsersRemove';return this.apiClient.callApi("/api/v2/authorization/roles/{roleId}/users/remove","PUT",{roleId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putAuthorizationRolesDefault(e,i){if(i=i||{},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"],i.customHeaders)}putAuthorizationRolesSettings(e,i){if(i=i||{},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"],i.customHeaders)}putUserRoles(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "subjectId" when calling putUserRoles';if(i==null)throw'Missing the required parameter "body" when calling putUserRoles';return this.apiClient.callApi("/api/v2/users/{subjectId}/roles","PUT",{subjectId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}},IA=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)}},zA=class{constructor(e){this.apiClient=e||q.instance}getBillingContract(e,i){if(i=i||{},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"],i.customHeaders)}getBillingContractBillingperiod(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "contractId" when calling getBillingContractBillingperiod';if(i==null||i==="")throw'Missing the required parameter "billingPeriodId" when calling getBillingContractBillingperiod';return this.apiClient.callApi("/api/v2/billing/contracts/{contractId}/billingperiods/{billingPeriodId}","GET",{contractId:e,billingPeriodId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.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,i){if(i=i||{},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"],i.customHeaders)}getBillingContractsInvoiceLines(e,i){if(i=i||{},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:i.before,after:i.after,pageSize:i.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i,n){if(n=n||{},e==null)throw'Missing the required parameter "startDate" when calling getBillingReportsBillableusage';if(i==null)throw'Missing the required parameter "endDate" when calling getBillingReportsBillableusage';return this.apiClient.callApi("/api/v2/billing/reports/billableusage","GET",{},{startDate:e,endDate:i},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getBillingTrusteebillingoverviewTrustorOrgId(e,i){if(i=i||{},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:i.billingPeriodIndex},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}},DA=class{constructor(e){this.apiClient=e||q.instance}deleteBusinessrulesDecisiontable(e,i){if(i=i||{},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:i.forceDelete},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}deleteBusinessrulesDecisiontableVersion(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "tableId" when calling deleteBusinessrulesDecisiontableVersion';if(i==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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteBusinessrulesDecisiontableVersionRow(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "tableId" when calling deleteBusinessrulesDecisiontableVersionRow';if(i==null)throw'Missing the required parameter "tableVersion" when calling deleteBusinessrulesDecisiontableVersionRow';if(n==null||n==="")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:i,rowId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}deleteBusinessrulesSchema(e,i){if(i=i||{},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"],i.customHeaders)}getBusinessrulesDecisiontable(e,i){if(i=i||{},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"],i.customHeaders)}getBusinessrulesDecisiontableVersion(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "tableId" when calling getBusinessrulesDecisiontableVersion';if(i==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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getBusinessrulesDecisiontableVersionRow(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "tableId" when calling getBusinessrulesDecisiontableVersionRow';if(i==null)throw'Missing the required parameter "tableVersion" when calling getBusinessrulesDecisiontableVersionRow';if(n==null||n==="")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:i,rowId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getBusinessrulesDecisiontableVersionRows(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "tableId" when calling getBusinessrulesDecisiontableVersionRows';if(i==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:i},{pageNumber:n.pageNumber,pageSize:n.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getBusinessrulesDecisiontableVersions(e,i){if(i=i||{},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:i.after,pageSize:i.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "tableId" when calling patchBusinessrulesDecisiontable';if(i==null)throw'Missing the required parameter "body" when calling patchBusinessrulesDecisiontable';return this.apiClient.callApi("/api/v2/businessrules/decisiontables/{tableId}","PATCH",{tableId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchBusinessrulesDecisiontableVersion(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "tableId" when calling patchBusinessrulesDecisiontableVersion';if(i==null)throw'Missing the required parameter "tableVersion" when calling patchBusinessrulesDecisiontableVersion';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postBusinessrulesDecisiontableExecute(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "tableId" when calling postBusinessrulesDecisiontableExecute';if(i==null)throw'Missing the required parameter "body" when calling postBusinessrulesDecisiontableExecute';return this.apiClient.callApi("/api/v2/businessrules/decisiontables/{tableId}/execute","POST",{tableId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postBusinessrulesDecisiontableVersionCopy(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "tableId" when calling postBusinessrulesDecisiontableVersionCopy';if(i==null)throw'Missing the required parameter "tableVersion" when calling postBusinessrulesDecisiontableVersionCopy';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postBusinessrulesDecisiontableVersionExecute(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "tableId" when calling postBusinessrulesDecisiontableVersionExecute';if(i==null)throw'Missing the required parameter "tableVersion" when calling postBusinessrulesDecisiontableVersionExecute';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postBusinessrulesDecisiontableVersionRows(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "tableId" when calling postBusinessrulesDecisiontableVersionRows';if(i==null)throw'Missing the required parameter "tableVersion" when calling postBusinessrulesDecisiontableVersionRows';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postBusinessrulesDecisiontableVersionRowsSearch(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "tableId" when calling postBusinessrulesDecisiontableVersionRowsSearch';if(i==null)throw'Missing the required parameter "tableVersion" when calling postBusinessrulesDecisiontableVersionRowsSearch';if(n==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:i},{pageNumber:a.pageNumber,pageSize:a.pageSize},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postBusinessrulesDecisiontableVersionSync(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "tableId" when calling postBusinessrulesDecisiontableVersionSync';if(i==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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postBusinessrulesDecisiontableVersions(e,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "tableId" when calling postBusinessrulesDecisiontableVersions';return this.apiClient.callApi("/api/v2/businessrules/decisiontables/{tableId}/versions","POST",{tableId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postBusinessrulesDecisiontables(e,i){if(i=i||{},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"],i.customHeaders)}postBusinessrulesSchemas(e,i){if(i=i||{},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"],i.customHeaders)}putBusinessrulesDecisiontableVersionPublish(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "tableId" when calling putBusinessrulesDecisiontableVersionPublish';if(i==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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putBusinessrulesDecisiontableVersionRow(e,i,n,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "tableId" when calling putBusinessrulesDecisiontableVersionRow';if(i==null)throw'Missing the required parameter "tableVersion" when calling putBusinessrulesDecisiontableVersionRow';if(n==null||n==="")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:i,rowId:n},{},{},{},a,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}putBusinessrulesSchema(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "schemaId" when calling putBusinessrulesSchema';if(i==null)throw'Missing the required parameter "body" when calling putBusinessrulesSchema';return this.apiClient.callApi("/api/v2/businessrules/schemas/{schemaId}","PUT",{schemaId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}},GA=class{constructor(e){this.apiClient=e||q.instance}getCarrierservicesIntegrationsEmergencylocationsMe(e,i){if(i=i||{},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"],i.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)}},$A=class{constructor(e){this.apiClient=e||q.instance}deleteCasemanagementCase(e,i){if(i=i||{},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"],i.customHeaders)}deleteCasemanagementCaseplan(e,i){if(i=i||{},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"],i.customHeaders)}getCasemanagementCase(e,i){if(i=i||{},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:i.expands},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getCasemanagementCaseAssociation(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "caseId" when calling getCasemanagementCaseAssociation';if(i==null||i==="")throw'Missing the required parameter "associationId" when calling getCasemanagementCaseAssociation';return this.apiClient.callApi("/api/v2/casemanagement/cases/{caseId}/associations/{associationId}","GET",{caseId:e,associationId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getCasemanagementCaseAssociations(e,i){if(i=i||{},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:i.before,after:i.after,pageSize:i.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getCasemanagementCaseStage(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "caseId" when calling getCasemanagementCaseStage';if(i==null||i==="")throw'Missing the required parameter "stageId" when calling getCasemanagementCaseStage';return this.apiClient.callApi("/api/v2/casemanagement/cases/{caseId}/stages/{stageId}","GET",{caseId:e,stageId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getCasemanagementCaseStageStep(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "caseId" when calling getCasemanagementCaseStageStep';if(i==null||i==="")throw'Missing the required parameter "stageId" when calling getCasemanagementCaseStageStep';if(n==null||n==="")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:i,stepId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getCasemanagementCaseStageSteps(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "caseId" when calling getCasemanagementCaseStageSteps';if(i==null||i==="")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:i},{before:n.before,after:n.after,pageSize:n.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getCasemanagementCaseStages(e,i){if(i=i||{},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:i.before,after:i.after,pageSize:i.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getCasemanagementCaseTerminateJob(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "caseId" when calling getCasemanagementCaseTerminateJob';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getCasemanagementCaseplan(e,i){if(i=i||{},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"],i.customHeaders)}getCasemanagementCaseplanVersion(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "caseplanId" when calling getCasemanagementCaseplanVersion';if(i==null||i==="")throw'Missing the required parameter "versionId" when calling getCasemanagementCaseplanVersion';return this.apiClient.callApi("/api/v2/casemanagement/caseplans/{caseplanId}/versions/{versionId}","GET",{caseplanId:e,versionId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getCasemanagementCaseplanVersionDataschemas(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "caseplanId" when calling getCasemanagementCaseplanVersionDataschemas';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getCasemanagementCaseplanVersionIntakesettings(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "caseplanId" when calling getCasemanagementCaseplanVersionIntakesettings';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getCasemanagementCaseplanVersionStageplan(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "caseplanId" when calling getCasemanagementCaseplanVersionStageplan';if(i==null||i==="")throw'Missing the required parameter "versionId" when calling getCasemanagementCaseplanVersionStageplan';if(n==null||n==="")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:i,stageplanId:n},{expands:this.apiClient.buildCollectionParam(a.expands,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getCasemanagementCaseplanVersionStageplanStepplan(e,i,n,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "caseplanId" when calling getCasemanagementCaseplanVersionStageplanStepplan';if(i==null||i==="")throw'Missing the required parameter "versionId" when calling getCasemanagementCaseplanVersionStageplanStepplan';if(n==null||n==="")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:i,stageplanId:n,stepplanId:a},{expands:this.apiClient.buildCollectionParam(r.expands,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}getCasemanagementCaseplanVersionStageplanStepplans(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "caseplanId" when calling getCasemanagementCaseplanVersionStageplanStepplans';if(i==null||i==="")throw'Missing the required parameter "versionId" when calling getCasemanagementCaseplanVersionStageplanStepplans';if(n==null||n==="")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:i,stageplanId:n},{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,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "caseplanId" when calling getCasemanagementCaseplanVersionStageplans';if(i==null||i==="")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:i},{before:n.before,after:n.after,pageSize:n.pageSize,expands:this.apiClient.buildCollectionParam(n.expands,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.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,i){if(i=i||{},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:i.after,pageSize:i.pageSize,divisionIds:i.divisionIds,expands:this.apiClient.buildCollectionParam(i.expands,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getCasemanagementCasesReference(e,i){if(i=i||{},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:i.expands},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}patchCasemanagementCaseDatedue(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "caseId" when calling patchCasemanagementCaseDatedue';if(i==null)throw'Missing the required parameter "body" when calling patchCasemanagementCaseDatedue';return this.apiClient.callApi("/api/v2/casemanagement/cases/{caseId}/datedue","PATCH",{caseId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchCasemanagementCasePriority(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "caseId" when calling patchCasemanagementCasePriority';if(i==null)throw'Missing the required parameter "body" when calling patchCasemanagementCasePriority';return this.apiClient.callApi("/api/v2/casemanagement/cases/{caseId}/priority","PATCH",{caseId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchCasemanagementCaseSummary(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "caseId" when calling patchCasemanagementCaseSummary';if(i==null)throw'Missing the required parameter "body" when calling patchCasemanagementCaseSummary';return this.apiClient.callApi("/api/v2/casemanagement/cases/{caseId}/summary","PATCH",{caseId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchCasemanagementCaseplan(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "caseplanId" when calling patchCasemanagementCaseplan';if(i==null)throw'Missing the required parameter "body" when calling patchCasemanagementCaseplan';return this.apiClient.callApi("/api/v2/casemanagement/caseplans/{caseplanId}","PATCH",{caseplanId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchCasemanagementCaseplanStageplan(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "caseplanId" when calling patchCasemanagementCaseplanStageplan';if(i==null||i==="")throw'Missing the required parameter "stageplanId" when calling patchCasemanagementCaseplanStageplan';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchCasemanagementCaseplanStageplanStepplan(e,i,n,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "caseplanId" when calling patchCasemanagementCaseplanStageplanStepplan';if(i==null||i==="")throw'Missing the required parameter "stageplanId" when calling patchCasemanagementCaseplanStageplanStepplan';if(n==null||n==="")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:i,stepplanId:n},{},{},{},a,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}postCasemanagementCaseAssociations(e,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "caseId" when calling postCasemanagementCaseAssociations';return this.apiClient.callApi("/api/v2/casemanagement/cases/{caseId}/associations","POST",{caseId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postCasemanagementCaseTerminateJobs(e,i){if(i=i||{},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"],i.customHeaders)}postCasemanagementCaseplanPublish(e,i){if(i=i||{},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"],i.customHeaders)}postCasemanagementCaseplanVersions(e,i){if(i=i||{},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"],i.customHeaders)}postCasemanagementCaseplans(e,i){if(i=i||{},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"],i.customHeaders)}postCasemanagementCaseplansQuery(e,i){if(i=i||{},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"],i.customHeaders)}postCasemanagementCases(e,i){if(i=i||{},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"],i.customHeaders)}postCasemanagementCasesAssociationsQuery(e){return e=e||{},this.apiClient.callApi("/api/v2/casemanagement/cases/associations/query","POST",{},{},{},{},e.body,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}putCasemanagementCaseplanIntakesettings(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "caseplanId" when calling putCasemanagementCaseplanIntakesettings';if(i==null)throw'Missing the required parameter "body" when calling putCasemanagementCaseplanIntakesettings';return this.apiClient.callApi("/api/v2/casemanagement/caseplans/{caseplanId}/intakesettings","PUT",{caseplanId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}},NA=class{constructor(e){this.apiClient=e||q.instance}deleteChatsRoomMessage(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "roomJid" when calling deleteChatsRoomMessage';if(i==null||i==="")throw'Missing the required parameter "messageId" when calling deleteChatsRoomMessage';return this.apiClient.callApi("/api/v2/chats/rooms/{roomJid}/messages/{messageId}","DELETE",{roomJid:e,messageId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteChatsRoomMessagesPin(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "roomJid" when calling deleteChatsRoomMessagesPin';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteChatsRoomParticipant(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "roomJid" when calling deleteChatsRoomParticipant';if(i==null||i==="")throw'Missing the required parameter "userId" when calling deleteChatsRoomParticipant';return this.apiClient.callApi("/api/v2/chats/rooms/{roomJid}/participants/{userId}","DELETE",{roomJid:e,userId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteChatsUserMessage(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling deleteChatsUserMessage';if(i==null||i==="")throw'Missing the required parameter "messageId" when calling deleteChatsUserMessage';return this.apiClient.callApi("/api/v2/chats/users/{userId}/messages/{messageId}","DELETE",{userId:e,messageId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteChatsUserMessagesPin(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling deleteChatsUserMessagesPin';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.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,i){if(i=i||{},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"],i.customHeaders)}getChatsRoom(e,i){if(i=i||{},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"],i.customHeaders)}getChatsRoomMessage(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "roomJid" when calling getChatsRoomMessage';if(i==null||i==="")throw'Missing the required parameter "messageIds" when calling getChatsRoomMessage';return this.apiClient.callApi("/api/v2/chats/rooms/{roomJid}/messages/{messageIds}","GET",{roomJid:e,messageIds:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getChatsRoomMessages(e,i){if(i=i||{},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:i.limit,before:i.before,after:i.after,excludeMetadata:i.excludeMetadata},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getChatsRoomParticipant(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "roomJid" when calling getChatsRoomParticipant';if(i==null||i==="")throw'Missing the required parameter "participantJid" when calling getChatsRoomParticipant';return this.apiClient.callApi("/api/v2/chats/rooms/{roomJid}/participants/{participantJid}","GET",{roomJid:e,participantJid:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getChatsRoomParticipants(e,i){if(i=i||{},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:i.notify},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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:i.limit,before:i.before,after:i.after,excludeMetadata:i.excludeMetadata},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getChatsUser(e,i){if(i=i||{},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"],i.customHeaders)}getChatsUserMessage(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling getChatsUserMessage';if(i==null||i==="")throw'Missing the required parameter "messageIds" when calling getChatsUserMessage';return this.apiClient.callApi("/api/v2/chats/users/{userId}/messages/{messageIds}","GET",{userId:e,messageIds:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getChatsUserMessages(e,i){if(i=i||{},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:i.limit,before:i.before,after:i.after,excludeMetadata:i.excludeMetadata},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getChatsUserSettings(e,i){if(i=i||{},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"],i.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,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "roomJid" when calling patchChatsRoom';if(i==null)throw'Missing the required parameter "body" when calling patchChatsRoom';return this.apiClient.callApi("/api/v2/chats/rooms/{roomJid}","PATCH",{roomJid:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchChatsRoomMessage(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "roomJid" when calling patchChatsRoomMessage';if(i==null||i==="")throw'Missing the required parameter "messageId" when calling patchChatsRoomMessage';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchChatsSettings(e,i){if(i=i||{},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"],i.customHeaders)}patchChatsUserMessage(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "userId" when calling patchChatsUserMessage';if(i==null||i==="")throw'Missing the required parameter "messageId" when calling patchChatsUserMessage';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchChatsUserSettings(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling patchChatsUserSettings';if(i==null)throw'Missing the required parameter "body" when calling patchChatsUserSettings';return this.apiClient.callApi("/api/v2/chats/users/{userId}/settings","PATCH",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchChatsUsersMeSettings(e,i){if(i=i||{},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"],i.customHeaders)}postChatsRoomMessages(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "roomJid" when calling postChatsRoomMessages';if(i==null)throw'Missing the required parameter "body" when calling postChatsRoomMessages';return this.apiClient.callApi("/api/v2/chats/rooms/{roomJid}/messages","POST",{roomJid:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postChatsRoomMessagesPins(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "roomJid" when calling postChatsRoomMessagesPins';if(i==null)throw'Missing the required parameter "body" when calling postChatsRoomMessagesPins';return this.apiClient.callApi("/api/v2/chats/rooms/{roomJid}/messages/pins","POST",{roomJid:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postChatsRoomParticipant(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "roomJid" when calling postChatsRoomParticipant';if(i==null||i==="")throw'Missing the required parameter "userId" when calling postChatsRoomParticipant';return this.apiClient.callApi("/api/v2/chats/rooms/{roomJid}/participants/{userId}","POST",{roomJid:e,userId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postChatsRooms(e,i){if(i=i||{},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"],i.customHeaders)}postChatsUserMessages(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling postChatsUserMessages';if(i==null)throw'Missing the required parameter "body" when calling postChatsUserMessages';return this.apiClient.callApi("/api/v2/chats/users/{userId}/messages","POST",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postChatsUserMessagesPins(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling postChatsUserMessagesPins';if(i==null)throw'Missing the required parameter "body" when calling postChatsUserMessagesPins';return this.apiClient.callApi("/api/v2/chats/users/{userId}/messages/pins","POST",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postChatsUsersMeSettings(e,i){if(i=i||{},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"],i.customHeaders)}putChatsMessageReactions(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "messageId" when calling putChatsMessageReactions';if(i==null)throw'Missing the required parameter "body" when calling putChatsMessageReactions';return this.apiClient.callApi("/api/v2/chats/messages/{messageId}/reactions","PUT",{messageId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putChatsSettings(e,i){if(i=i||{},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"],i.customHeaders)}},UA=class{constructor(e){this.apiClient=e||q.instance}deleteCoachingAppointment(e,i){if(i=i||{},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"],i.customHeaders)}deleteCoachingAppointmentAnnotation(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "appointmentId" when calling deleteCoachingAppointmentAnnotation';if(i==null||i==="")throw'Missing the required parameter "annotationId" when calling deleteCoachingAppointmentAnnotation';return this.apiClient.callApi("/api/v2/coaching/appointments/{appointmentId}/annotations/{annotationId}","DELETE",{appointmentId:e,annotationId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getCoachingAppointment(e,i){if(i=i||{},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"],i.customHeaders)}getCoachingAppointmentAnnotation(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "appointmentId" when calling getCoachingAppointmentAnnotation';if(i==null||i==="")throw'Missing the required parameter "annotationId" when calling getCoachingAppointmentAnnotation';return this.apiClient.callApi("/api/v2/coaching/appointments/{appointmentId}/annotations/{annotationId}","GET",{appointmentId:e,annotationId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getCoachingAppointmentAnnotations(e,i){if(i=i||{},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:i.pageNumber,pageSize:i.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getCoachingAppointmentStatuses(e,i){if(i=i||{},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:i.pageNumber,pageSize:i.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getCoachingAppointments(e,i){if(i=i||{},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:i.interval,pageNumber:i.pageNumber,pageSize:i.pageSize,statuses:this.apiClient.buildCollectionParam(i.statuses,"multi"),facilitatorIds:this.apiClient.buildCollectionParam(i.facilitatorIds,"multi"),sortOrder:i.sortOrder,relationships:this.apiClient.buildCollectionParam(i.relationships,"multi"),completionInterval:i.completionInterval,overdue:i.overdue,intervalCondition:i.intervalCondition},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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"],i.customHeaders)}patchCoachingAppointment(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "appointmentId" when calling patchCoachingAppointment';if(i==null)throw'Missing the required parameter "body" when calling patchCoachingAppointment';return this.apiClient.callApi("/api/v2/coaching/appointments/{appointmentId}","PATCH",{appointmentId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchCoachingAppointmentAnnotation(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "appointmentId" when calling patchCoachingAppointmentAnnotation';if(i==null||i==="")throw'Missing the required parameter "annotationId" when calling patchCoachingAppointmentAnnotation';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchCoachingAppointmentStatus(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "appointmentId" when calling patchCoachingAppointmentStatus';if(i==null)throw'Missing the required parameter "body" when calling patchCoachingAppointmentStatus';return this.apiClient.callApi("/api/v2/coaching/appointments/{appointmentId}/status","PATCH",{appointmentId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchCoachingNotification(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "notificationId" when calling patchCoachingNotification';if(i==null)throw'Missing the required parameter "body" when calling patchCoachingNotification';return this.apiClient.callApi("/api/v2/coaching/notifications/{notificationId}","PATCH",{notificationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postCoachingAppointmentAnnotations(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "appointmentId" when calling postCoachingAppointmentAnnotations';if(i==null)throw'Missing the required parameter "body" when calling postCoachingAppointmentAnnotations';return this.apiClient.callApi("/api/v2/coaching/appointments/{appointmentId}/annotations","POST",{appointmentId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postCoachingAppointmentConversations(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "appointmentId" when calling postCoachingAppointmentConversations';if(i==null)throw'Missing the required parameter "body" when calling postCoachingAppointmentConversations';return this.apiClient.callApi("/api/v2/coaching/appointments/{appointmentId}/conversations","POST",{appointmentId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postCoachingAppointments(e,i){if(i=i||{},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"],i.customHeaders)}postCoachingAppointmentsAggregatesQuery(e,i){if(i=i||{},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"],i.customHeaders)}postCoachingScheduleslotsJobs(e,i){if(i=i||{},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"],i.customHeaders)}postCoachingScheduleslotsQuery(e,i){if(i=i||{},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"],i.customHeaders)}},LA=class{constructor(e){this.apiClient=e||q.instance}deleteContentmanagementDocument(e,i){if(i=i||{},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:i.override},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}deleteContentmanagementShare(e,i){if(i=i||{},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"],i.customHeaders)}deleteContentmanagementStatusStatusId(e,i){if(i=i||{},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"],i.customHeaders)}deleteContentmanagementWorkspace(e,i){if(i=i||{},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:i.moveChildrenToWorkspaceId},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}deleteContentmanagementWorkspaceMember(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "workspaceId" when calling deleteContentmanagementWorkspaceMember';if(i==null||i==="")throw'Missing the required parameter "memberId" when calling deleteContentmanagementWorkspaceMember';return this.apiClient.callApi("/api/v2/contentmanagement/workspaces/{workspaceId}/members/{memberId}","DELETE",{workspaceId:e,memberId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteContentmanagementWorkspaceTagvalue(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "workspaceId" when calling deleteContentmanagementWorkspaceTagvalue';if(i==null||i==="")throw'Missing the required parameter "tagId" when calling deleteContentmanagementWorkspaceTagvalue';return this.apiClient.callApi("/api/v2/contentmanagement/workspaces/{workspaceId}/tagvalues/{tagId}","DELETE",{workspaceId:e,tagId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getContentmanagementDocument(e,i){if(i=i||{},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(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getContentmanagementDocumentContent(e,i){if(i=i||{},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:i.disposition,contentType:i.contentType},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getContentmanagementDocuments(e,i){if(i=i||{},e==null)throw'Missing the required parameter "workspaceId" when calling getContentmanagementDocuments';return this.apiClient.callApi("/api/v2/contentmanagement/documents","GET",{},{workspaceId:e,name:i.name,expand:this.apiClient.buildCollectionParam(i.expand,"multi"),pageSize:i.pageSize,pageNumber:i.pageNumber,sortBy:i.sortBy,sortOrder:i.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getContentmanagementQuery(e,i){if(i=i||{},e==null)throw'Missing the required parameter "queryPhrase" when calling getContentmanagementQuery';return this.apiClient.callApi("/api/v2/contentmanagement/query","GET",{},{pageSize:i.pageSize,pageNumber:i.pageNumber,sortBy:i.sortBy,sortOrder:i.sortOrder,queryPhrase:e,expand:this.apiClient.buildCollectionParam(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getContentmanagementSecurityprofile(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getContentmanagementSharedSharedId(e,i){if(i=i||{},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:i.disposition,contentType:i.contentType,expand:i.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getContentmanagementWorkspaceDocuments(e,i){if(i=i||{},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(i.expand,"multi"),pageSize:i.pageSize,pageNumber:i.pageNumber,sortBy:i.sortBy,sortOrder:i.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getContentmanagementWorkspaceMember(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "workspaceId" when calling getContentmanagementWorkspaceMember';if(i==null||i==="")throw'Missing the required parameter "memberId" when calling getContentmanagementWorkspaceMember';return this.apiClient.callApi("/api/v2/contentmanagement/workspaces/{workspaceId}/members/{memberId}","GET",{workspaceId:e,memberId:i},{expand:this.apiClient.buildCollectionParam(n.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getContentmanagementWorkspaceMembers(e,i){if(i=i||{},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:i.pageSize,pageNumber:i.pageNumber,expand:this.apiClient.buildCollectionParam(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getContentmanagementWorkspaceTagvalue(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "workspaceId" when calling getContentmanagementWorkspaceTagvalue';if(i==null||i==="")throw'Missing the required parameter "tagId" when calling getContentmanagementWorkspaceTagvalue';return this.apiClient.callApi("/api/v2/contentmanagement/workspaces/{workspaceId}/tagvalues/{tagId}","GET",{workspaceId:e,tagId:i},{expand:this.apiClient.buildCollectionParam(n.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getContentmanagementWorkspaceTagvalues(e,i){if(i=i||{},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:i.value,pageSize:i.pageSize,pageNumber:i.pageNumber,expand:this.apiClient.buildCollectionParam(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "documentId" when calling postContentmanagementDocument';if(i==null)throw'Missing the required parameter "body" when calling postContentmanagementDocument';return this.apiClient.callApi("/api/v2/contentmanagement/documents/{documentId}","POST",{documentId:e},{expand:n.expand,override:n.override},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postContentmanagementDocumentContent(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "documentId" when calling postContentmanagementDocumentContent';if(i==null)throw'Missing the required parameter "body" when calling postContentmanagementDocumentContent';return this.apiClient.callApi("/api/v2/contentmanagement/documents/{documentId}/content","POST",{documentId:e},{override:n.override},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postContentmanagementDocuments(e,i){if(i=i||{},e==null)throw'Missing the required parameter "body" when calling postContentmanagementDocuments';return this.apiClient.callApi("/api/v2/contentmanagement/documents","POST",{},{copySource:i.copySource,moveSource:i.moveSource,override:i.override},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postContentmanagementQuery(e,i){if(i=i||{},e==null)throw'Missing the required parameter "body" when calling postContentmanagementQuery';return this.apiClient.callApi("/api/v2/contentmanagement/query","POST",{},{expand:i.expand},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postContentmanagementShares(e,i){if(i=i||{},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"],i.customHeaders)}postContentmanagementWorkspaceTagvalues(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "workspaceId" when calling postContentmanagementWorkspaceTagvalues';if(i==null)throw'Missing the required parameter "body" when calling postContentmanagementWorkspaceTagvalues';return this.apiClient.callApi("/api/v2/contentmanagement/workspaces/{workspaceId}/tagvalues","POST",{workspaceId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postContentmanagementWorkspaceTagvaluesQuery(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "workspaceId" when calling postContentmanagementWorkspaceTagvaluesQuery';if(i==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(n.expand,"multi")},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postContentmanagementWorkspaces(e,i){if(i=i||{},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"],i.customHeaders)}putContentmanagementWorkspace(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "workspaceId" when calling putContentmanagementWorkspace';if(i==null)throw'Missing the required parameter "body" when calling putContentmanagementWorkspace';return this.apiClient.callApi("/api/v2/contentmanagement/workspaces/{workspaceId}","PUT",{workspaceId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putContentmanagementWorkspaceMember(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "workspaceId" when calling putContentmanagementWorkspaceMember';if(i==null||i==="")throw'Missing the required parameter "memberId" when calling putContentmanagementWorkspaceMember';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}putContentmanagementWorkspaceTagvalue(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "workspaceId" when calling putContentmanagementWorkspaceTagvalue';if(i==null||i==="")throw'Missing the required parameter "tagId" when calling putContentmanagementWorkspaceTagvalue';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}},WA=class{constructor(e){this.apiClient=e||q.instance}deleteAnalyticsConversationsAggregatesJob(e,i){if(i=i||{},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"],i.customHeaders)}deleteAnalyticsConversationsDetailsJob(e,i){if(i=i||{},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"],i.customHeaders)}deleteConversation(e,i){if(i=i||{},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"],i.customHeaders)}deleteConversationCustomattribute(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling deleteConversationCustomattribute';if(i==null||i==="")throw'Missing the required parameter "attributesId" when calling deleteConversationCustomattribute';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/customattributes/{attributesId}","DELETE",{conversationId:e,attributesId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteConversationParticipantCode(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling deleteConversationParticipantCode';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling deleteConversationParticipantCode';if(n==null||n==="")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:i,addCommunicationCode:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}deleteConversationParticipantFlaggedreason(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling deleteConversationParticipantFlaggedreason';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling deleteConversationParticipantFlaggedreason';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/participants/{participantId}/flaggedreason","DELETE",{conversationId:e,participantId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteConversationsCallParticipantCommunicationPostflowaction(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling deleteConversationsCallParticipantCommunicationPostflowaction';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling deleteConversationsCallParticipantCommunicationPostflowaction';if(n==null||n==="")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:i,communicationId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}deleteConversationsCallParticipantConsult(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling deleteConversationsCallParticipantConsult';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteConversationsEmailMessagesDraftAttachment(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling deleteConversationsEmailMessagesDraftAttachment';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteConversationsMessagesCachedmediaCachedMediaItemId(e,i){if(i=i||{},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"],i.customHeaders)}deleteConversationsMessagingIntegrationsAppleIntegrationId(e,i){if(i=i||{},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"],i.customHeaders)}deleteConversationsMessagingIntegrationsFacebookIntegrationId(e,i){if(i=i||{},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"],i.customHeaders)}deleteConversationsMessagingIntegrationsInstagramIntegrationId(e,i){if(i=i||{},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"],i.customHeaders)}deleteConversationsMessagingIntegrationsOpenExtensionsGooglebusinessprofileIntegrationId(e,i){if(i=i||{},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"],i.customHeaders)}deleteConversationsMessagingIntegrationsOpenIntegrationId(e,i){if(i=i||{},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"],i.customHeaders)}deleteConversationsMessagingIntegrationsTwitterIntegrationId(e,i){if(i=i||{},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"],i.customHeaders)}deleteConversationsMessagingIntegrationsWhatsappIntegrationId(e,i){if(i=i||{},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"],i.customHeaders)}deleteConversationsMessagingSetting(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getAnalyticsConversationDetails(e,i){if(i=i||{},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"],i.customHeaders)}getAnalyticsConversationsAggregatesJob(e,i){if(i=i||{},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"],i.customHeaders)}getAnalyticsConversationsAggregatesJobResults(e,i){if(i=i||{},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:i.cursor},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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"],i.customHeaders)}getAnalyticsConversationsDetailsJobResults(e,i){if(i=i||{},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:i.cursor,pageSize:i.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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"],i.customHeaders)}getConversationAssistantCopilotcontext(e,i){if(i=i||{},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"],i.customHeaders)}getConversationCommunicationAgentchecklist(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationCommunicationAgentchecklist';if(i==null||i==="")throw'Missing the required parameter "communicationId" when calling getConversationCommunicationAgentchecklist';if(n==null||n==="")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:i,agentChecklistId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getConversationCommunicationAgentchecklistJob(e,i,n,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationCommunicationAgentchecklistJob';if(i==null||i==="")throw'Missing the required parameter "communicationId" when calling getConversationCommunicationAgentchecklistJob';if(n==null||n==="")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:i,agentChecklistId:n,jobId:a},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}getConversationCommunicationAgentchecklists(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationCommunicationAgentchecklists';if(i==null||i==="")throw'Missing the required parameter "communicationId" when calling getConversationCommunicationAgentchecklists';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/communications/{communicationId}/agentchecklists","GET",{conversationId:e,communicationId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getConversationCommunicationInternalmessage(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationCommunicationInternalmessage';if(i==null||i==="")throw'Missing the required parameter "communicationId" when calling getConversationCommunicationInternalmessage';if(n==null||n==="")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:i,messageId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getConversationCommunicationInternalmessages(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationCommunicationInternalmessages';if(i==null||i==="")throw'Missing the required parameter "communicationId" when calling getConversationCommunicationInternalmessages';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/communications/{communicationId}/internalmessages","GET",{conversationId:e,communicationId:i},{pageSize:n.pageSize,pageNumber:n.pageNumber},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getConversationCustomattribute(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationCustomattribute';if(i==null||i==="")throw'Missing the required parameter "attributesId" when calling getConversationCustomattribute';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/customattributes/{attributesId}","GET",{conversationId:e,attributesId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getConversationCustomattributes(e,i){if(i=i||{},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"],i.customHeaders)}getConversationParticipantSecureivrsession(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationParticipantSecureivrsession';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling getConversationParticipantSecureivrsession';if(n==null||n==="")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:i,secureSessionId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getConversationParticipantSecureivrsessions(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationParticipantSecureivrsessions';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling getConversationParticipantSecureivrsessions';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/participants/{participantId}/secureivrsessions","GET",{conversationId:e,participantId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getConversationParticipantWrapup(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationParticipantWrapup';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling getConversationParticipantWrapup';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/participants/{participantId}/wrapup","GET",{conversationId:e,participantId:i},{provisional:n.provisional},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getConversationParticipantWrapupcodes(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationParticipantWrapupcodes';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling getConversationParticipantWrapupcodes';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/participants/{participantId}/wrapupcodes","GET",{conversationId:e,participantId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getConversationSecureattributes(e,i){if(i=i||{},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"],i.customHeaders)}getConversationSuggestion(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationSuggestion';if(i==null||i==="")throw'Missing the required parameter "suggestionId" when calling getConversationSuggestion';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/suggestions/{suggestionId}","GET",{conversationId:e,suggestionId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getConversationSuggestions(e,i){if(i=i||{},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:i.before,after:i.after,pageSize:i.pageSize,type:i.type,state:i.state},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getConversationSummaries(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getConversationsCallParticipantCommunicationWrapup(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationsCallParticipantCommunicationWrapup';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling getConversationsCallParticipantCommunicationWrapup';if(n==null||n==="")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:i,communicationId:n},{provisional:a.provisional},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getConversationsCallParticipantWrapup(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationsCallParticipantWrapup';if(i==null||i==="")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:i},{provisional:n.provisional},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getConversationsCallParticipantWrapupcodes(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationsCallParticipantWrapupcodes';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getConversationsCallback(e,i){if(i=i||{},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"],i.customHeaders)}getConversationsCallbackParticipantCommunicationWrapup(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationsCallbackParticipantCommunicationWrapup';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling getConversationsCallbackParticipantCommunicationWrapup';if(n==null||n==="")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:i,communicationId:n},{provisional:a.provisional},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getConversationsCallbackParticipantWrapup(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationsCallbackParticipantWrapup';if(i==null||i==="")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:i},{provisional:n.provisional},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getConversationsCallbackParticipantWrapupcodes(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationsCallbackParticipantWrapupcodes';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getConversationsCallbacks(e){return e=e||{},this.apiClient.callApi("/api/v2/conversations/callbacks","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getConversationsCalls(e){return e=e||{},this.apiClient.callApi("/api/v2/conversations/calls","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getConversationsCallsHistory(e){return e=e||{},this.apiClient.callApi("/api/v2/conversations/calls/history","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,interval:e.interval,expand:this.apiClient.buildCollectionParam(e.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getConversationsCallsMaximumconferenceparties(e){return e=e||{},this.apiClient.callApi("/api/v2/conversations/calls/maximumconferenceparties","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getConversationsChat(e,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationsChat';return this.apiClient.callApi("/api/v2/conversations/chats/{conversationId}","GET",{conversationId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getConversationsChatMessage(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationsChatMessage';if(i==null||i==="")throw'Missing the required parameter "messageId" when calling getConversationsChatMessage';return this.apiClient.callApi("/api/v2/conversations/chats/{conversationId}/messages/{messageId}","GET",{conversationId:e,messageId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getConversationsChatMessages(e,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationsChatMessages';return this.apiClient.callApi("/api/v2/conversations/chats/{conversationId}/messages","GET",{conversationId:e},{after:i.after,before:i.before,sortOrder:i.sortOrder,maxResults:i.maxResults},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getConversationsChatParticipantCommunicationWrapup(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationsChatParticipantCommunicationWrapup';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling getConversationsChatParticipantCommunicationWrapup';if(n==null||n==="")throw'Missing the required parameter "communicationId" when calling getConversationsChatParticipantCommunicationWrapup';return this.apiClient.callApi("/api/v2/conversations/chats/{conversationId}/participants/{participantId}/communications/{communicationId}/wrapup","GET",{conversationId:e,participantId:i,communicationId:n},{provisional:a.provisional},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getConversationsChatParticipantWrapup(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationsChatParticipantWrapup';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling getConversationsChatParticipantWrapup';return this.apiClient.callApi("/api/v2/conversations/chats/{conversationId}/participants/{participantId}/wrapup","GET",{conversationId:e,participantId:i},{provisional:n.provisional},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getConversationsChatParticipantWrapupcodes(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationsChatParticipantWrapupcodes';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling getConversationsChatParticipantWrapupcodes';return this.apiClient.callApi("/api/v2/conversations/chats/{conversationId}/participants/{participantId}/wrapupcodes","GET",{conversationId:e,participantId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getConversationsChats(e){return e=e||{},this.apiClient.callApi("/api/v2/conversations/chats","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getConversationsCobrowsesession(e,i){if(i=i||{},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"],i.customHeaders)}getConversationsCobrowsesessionParticipantCommunicationWrapup(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationsCobrowsesessionParticipantCommunicationWrapup';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling getConversationsCobrowsesessionParticipantCommunicationWrapup';if(n==null||n==="")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:i,communicationId:n},{provisional:a.provisional},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getConversationsCobrowsesessionParticipantWrapup(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationsCobrowsesessionParticipantWrapup';if(i==null||i==="")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:i},{provisional:n.provisional},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getConversationsCobrowsesessionParticipantWrapupcodes(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationsCobrowsesessionParticipantWrapupcodes';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.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,i){if(i=i||{},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"],i.customHeaders)}getConversationsCustomattributesSchemaVersion(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "schemaId" when calling getConversationsCustomattributesSchemaVersion';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getConversationsCustomattributesSchemaVersions(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getConversationsEmailMessage(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationsEmailMessage';if(i==null||i==="")throw'Missing the required parameter "messageId" when calling getConversationsEmailMessage';return this.apiClient.callApi("/api/v2/conversations/emails/{conversationId}/messages/{messageId}","GET",{conversationId:e,messageId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getConversationsEmailMessages(e,i){if(i=i||{},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:i.includeAgentlessStitchedMessages},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getConversationsEmailMessagesDraft(e,i){if(i=i||{},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"],i.customHeaders)}getConversationsEmailParticipantCommunicationWrapup(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationsEmailParticipantCommunicationWrapup';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling getConversationsEmailParticipantCommunicationWrapup';if(n==null||n==="")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:i,communicationId:n},{provisional:a.provisional},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getConversationsEmailParticipantWrapup(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationsEmailParticipantWrapup';if(i==null||i==="")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:i},{provisional:n.provisional},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getConversationsEmailParticipantWrapupcodes(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationsEmailParticipantWrapupcodes';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getConversationsEmailSettings(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getConversationsMessageCommunicationMessagesMedia(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationsMessageCommunicationMessagesMedia';if(i==null||i==="")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:i},{status:n.status,pageNumber:n.pageNumber,pageSize:n.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getConversationsMessageCommunicationMessagesMediaMediaId(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationsMessageCommunicationMessagesMediaMediaId';if(i==null||i==="")throw'Missing the required parameter "communicationId" when calling getConversationsMessageCommunicationMessagesMediaMediaId';if(n==null||n==="")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:i,mediaId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getConversationsMessageDetails(e,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "messageId" when calling getConversationsMessageDetails';return this.apiClient.callApi("/api/v2/conversations/messages/{messageId}/details","GET",{messageId:e},{useNormalizedMessage:i.useNormalizedMessage},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getConversationsMessageMessage(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationsMessageMessage';if(i==null||i==="")throw'Missing the required parameter "messageId" when calling getConversationsMessageMessage';return this.apiClient.callApi("/api/v2/conversations/messages/{conversationId}/messages/{messageId}","GET",{conversationId:e,messageId:i},{useNormalizedMessage:n.useNormalizedMessage},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getConversationsMessageParticipantCommunicationWrapup(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationsMessageParticipantCommunicationWrapup';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling getConversationsMessageParticipantCommunicationWrapup';if(n==null||n==="")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:i,communicationId:n},{provisional:a.provisional},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getConversationsMessageParticipantWrapup(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationsMessageParticipantWrapup';if(i==null||i==="")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:i},{provisional:n.provisional},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getConversationsMessageParticipantWrapupcodes(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationsMessageParticipantWrapupcodes';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getConversationsMessagingIdentityresolutionIntegrationsFacebookIntegrationId(e,i){if(i=i||{},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"],i.customHeaders)}getConversationsMessagingIdentityresolutionIntegrationsInstagramIntegrationId(e,i){if(i=i||{},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"],i.customHeaders)}getConversationsMessagingIdentityresolutionIntegrationsOpenIntegrationId(e,i){if(i=i||{},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"],i.customHeaders)}getConversationsMessagingIdentityresolutionIntegrationsTwitterIntegrationId(e,i){if(i=i||{},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"],i.customHeaders)}getConversationsMessagingIdentityresolutionIntegrationsWhatsappIntegrationId(e,i){if(i=i||{},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"],i.customHeaders)}getConversationsMessagingIntegrationTwitterOauthSettings(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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:i.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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:i.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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:i.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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:i.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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"],i.customHeaders)}getConversationsMessagingIntegrationsOpenExtensionsGooglebusinessprofileTokenAccounts(e,i){if(i=i||{},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"],i.customHeaders)}getConversationsMessagingIntegrationsOpenIntegrationId(e,i){if(i=i||{},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:i.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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:i.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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:i.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getConversationsMessagingOauthAppleCallback(e,i,n){if(n=n||{},e==null)throw'Missing the required parameter "code" when calling getConversationsMessagingOauthAppleCallback';if(i==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:i,error:n.error},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getConversationsMessagingSetting(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationsScreenshareParticipantCommunicationWrapup';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling getConversationsScreenshareParticipantCommunicationWrapup';if(n==null||n==="")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:i,communicationId:n},{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,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationsSocialParticipantCommunicationWrapup';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling getConversationsSocialParticipantCommunicationWrapup';if(n==null||n==="")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:i,communicationId:n},{provisional:a.provisional},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getConversationsVideoDetails(e,i){if(i=i||{},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"],i.customHeaders)}getConversationsVideoParticipantCommunicationWrapup(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationsVideoParticipantCommunicationWrapup';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling getConversationsVideoParticipantCommunicationWrapup';if(n==null||n==="")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:i,communicationId:n},{provisional:a.provisional},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getConversationsVideosMeeting(e,i){if(i=i||{},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"],i.customHeaders)}patchConversationCustomattributes(e,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchConversationCustomattributes';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/customattributes","PATCH",{conversationId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}patchConversationCustomattributesBulk(e,i){if(i=i||{},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},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}patchConversationParticipant(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchConversationParticipant';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling patchConversationParticipant';if(n==null)throw'Missing the required parameter "body" when calling patchConversationParticipant';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/participants/{participantId}","PATCH",{conversationId:e,participantId:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchConversationParticipantAttributes(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchConversationParticipantAttributes';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling patchConversationParticipantAttributes';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchConversationRecordingstate(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchConversationRecordingstate';if(i==null)throw'Missing the required parameter "body" when calling patchConversationRecordingstate';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/recordingstate","PATCH",{conversationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchConversationSecureattributes(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchConversationSecureattributes';if(i==null)throw'Missing the required parameter "body" when calling patchConversationSecureattributes';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/secureattributes","PATCH",{conversationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchConversationSummaryEngagements(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchConversationSummaryEngagements';if(i==null||i==="")throw'Missing the required parameter "summaryId" when calling patchConversationSummaryEngagements';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/summaries/{summaryId}/engagements","PATCH",{conversationId:e,summaryId:i},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchConversationSummaryFeedback(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchConversationSummaryFeedback';if(i==null||i==="")throw'Missing the required parameter "summaryId" when calling patchConversationSummaryFeedback';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/summaries/{summaryId}/feedback","PATCH",{conversationId:e,summaryId:i},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchConversationUtilizationlabel(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchConversationUtilizationlabel';if(i==null)throw'Missing the required parameter "body" when calling patchConversationUtilizationlabel';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/utilizationlabel","PATCH",{conversationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchConversationsAftercallworkConversationIdParticipantCommunication(e,i,n,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchConversationsAftercallworkConversationIdParticipantCommunication';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling patchConversationsAftercallworkConversationIdParticipantCommunication';if(n==null||n==="")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:i,communicationId:n},{},{},{},a,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}patchConversationsCall(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchConversationsCall';if(i==null)throw'Missing the required parameter "body" when calling patchConversationsCall';return this.apiClient.callApi("/api/v2/conversations/calls/{conversationId}","PATCH",{conversationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchConversationsCallConference(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchConversationsCallConference';if(i==null)throw'Missing the required parameter "body" when calling patchConversationsCallConference';return this.apiClient.callApi("/api/v2/conversations/calls/{conversationId}/conference","PATCH",{conversationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchConversationsCallParticipant(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchConversationsCallParticipant';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling patchConversationsCallParticipant';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchConversationsCallParticipantAttributes(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchConversationsCallParticipantAttributes';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling patchConversationsCallParticipantAttributes';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchConversationsCallParticipantCommunication(e,i,n,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchConversationsCallParticipantCommunication';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling patchConversationsCallParticipantCommunication';if(n==null||n==="")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:i,communicationId:n},{},{},{},a,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}patchConversationsCallParticipantCommunicationPostflowaction(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchConversationsCallParticipantCommunicationPostflowaction';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling patchConversationsCallParticipantCommunicationPostflowaction';if(n==null||n==="")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:i,communicationId:n},{},{},{},a.body,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchConversationsCallParticipantConsult(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchConversationsCallParticipantConsult';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling patchConversationsCallParticipantConsult';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchConversationsCallParticipantUserUserId(e,i,n,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchConversationsCallParticipantUserUserId';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling patchConversationsCallParticipantUserUserId';if(n==null||n==="")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:i,userId:n},{},{},{},a,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}patchConversationsCallback(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchConversationsCallback';if(i==null)throw'Missing the required parameter "body" when calling patchConversationsCallback';return this.apiClient.callApi("/api/v2/conversations/callbacks/{conversationId}","PATCH",{conversationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchConversationsCallbackParticipant(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchConversationsCallbackParticipant';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling patchConversationsCallbackParticipant';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchConversationsCallbackParticipantAttributes(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchConversationsCallbackParticipantAttributes';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling patchConversationsCallbackParticipantAttributes';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchConversationsCallbackParticipantCommunication(e,i,n,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchConversationsCallbackParticipantCommunication';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling patchConversationsCallbackParticipantCommunication';if(n==null||n==="")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:i,communicationId:n},{},{},{},a,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}patchConversationsCallbacks(e,i){if(i=i||{},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"],i.customHeaders)}patchConversationsChat(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchConversationsChat';if(i==null)throw'Missing the required parameter "body" when calling patchConversationsChat';return this.apiClient.callApi("/api/v2/conversations/chats/{conversationId}","PATCH",{conversationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchConversationsChatParticipant(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchConversationsChatParticipant';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling patchConversationsChatParticipant';if(n==null)throw'Missing the required parameter "body" when calling patchConversationsChatParticipant';return this.apiClient.callApi("/api/v2/conversations/chats/{conversationId}/participants/{participantId}","PATCH",{conversationId:e,participantId:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchConversationsChatParticipantAttributes(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchConversationsChatParticipantAttributes';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling patchConversationsChatParticipantAttributes';if(n==null)throw'Missing the required parameter "body" when calling patchConversationsChatParticipantAttributes';return this.apiClient.callApi("/api/v2/conversations/chats/{conversationId}/participants/{participantId}/attributes","PATCH",{conversationId:e,participantId:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchConversationsChatParticipantCommunication(e,i,n,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchConversationsChatParticipantCommunication';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling patchConversationsChatParticipantCommunication';if(n==null||n==="")throw'Missing the required parameter "communicationId" when calling patchConversationsChatParticipantCommunication';if(a==null)throw'Missing the required parameter "body" when calling patchConversationsChatParticipantCommunication';return this.apiClient.callApi("/api/v2/conversations/chats/{conversationId}/participants/{participantId}/communications/{communicationId}","PATCH",{conversationId:e,participantId:i,communicationId:n},{},{},{},a,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}patchConversationsCobrowsesession(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchConversationsCobrowsesession';if(i==null)throw'Missing the required parameter "body" when calling patchConversationsCobrowsesession';return this.apiClient.callApi("/api/v2/conversations/cobrowsesessions/{conversationId}","PATCH",{conversationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchConversationsCobrowsesessionParticipant(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchConversationsCobrowsesessionParticipant';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling patchConversationsCobrowsesessionParticipant';return this.apiClient.callApi("/api/v2/conversations/cobrowsesessions/{conversationId}/participants/{participantId}","PATCH",{conversationId:e,participantId:i},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchConversationsCobrowsesessionParticipantAttributes(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchConversationsCobrowsesessionParticipantAttributes';if(i==null||i==="")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:i},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchConversationsCobrowsesessionParticipantCommunication(e,i,n,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchConversationsCobrowsesessionParticipantCommunication';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling patchConversationsCobrowsesessionParticipantCommunication';if(n==null||n==="")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:i,communicationId:n},{},{},{},a,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}patchConversationsEmail(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchConversationsEmail';if(i==null)throw'Missing the required parameter "body" when calling patchConversationsEmail';return this.apiClient.callApi("/api/v2/conversations/emails/{conversationId}","PATCH",{conversationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchConversationsEmailMessagesDraft(e,i){if(i=i||{},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:i.autoFill,discard:i.discard},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}patchConversationsEmailParticipant(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchConversationsEmailParticipant';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling patchConversationsEmailParticipant';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchConversationsEmailParticipantAttributes(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchConversationsEmailParticipantAttributes';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling patchConversationsEmailParticipantAttributes';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchConversationsEmailParticipantCommunication(e,i,n,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchConversationsEmailParticipantCommunication';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling patchConversationsEmailParticipantCommunication';if(n==null||n==="")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:i,communicationId:n},{},{},{},a,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}patchConversationsEmailParticipantParkingstate(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchConversationsEmailParticipantParkingstate';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling patchConversationsEmailParticipantParkingstate';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchConversationsMessage(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchConversationsMessage';if(i==null)throw'Missing the required parameter "body" when calling patchConversationsMessage';return this.apiClient.callApi("/api/v2/conversations/messages/{conversationId}","PATCH",{conversationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchConversationsMessageParticipant(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchConversationsMessageParticipant';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling patchConversationsMessageParticipant';return this.apiClient.callApi("/api/v2/conversations/messages/{conversationId}/participants/{participantId}","PATCH",{conversationId:e,participantId:i},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchConversationsMessageParticipantAttributes(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchConversationsMessageParticipantAttributes';if(i==null||i==="")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:i},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchConversationsMessageParticipantCommunication(e,i,n,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchConversationsMessageParticipantCommunication';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling patchConversationsMessageParticipantCommunication';if(n==null||n==="")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:i,communicationId:n},{},{},{},a,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}patchConversationsMessageParticipantParkingstate(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchConversationsMessageParticipantParkingstate';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling patchConversationsMessageParticipantParkingstate';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchConversationsMessagingIntegrationsAppleIntegrationId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "integrationId" when calling patchConversationsMessagingIntegrationsAppleIntegrationId';if(i==null)throw'Missing the required parameter "body" when calling patchConversationsMessagingIntegrationsAppleIntegrationId';return this.apiClient.callApi("/api/v2/conversations/messaging/integrations/apple/{integrationId}","PATCH",{integrationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchConversationsMessagingIntegrationsFacebookIntegrationId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "integrationId" when calling patchConversationsMessagingIntegrationsFacebookIntegrationId';if(i==null)throw'Missing the required parameter "body" when calling patchConversationsMessagingIntegrationsFacebookIntegrationId';return this.apiClient.callApi("/api/v2/conversations/messaging/integrations/facebook/{integrationId}","PATCH",{integrationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchConversationsMessagingIntegrationsInstagramIntegrationId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "integrationId" when calling patchConversationsMessagingIntegrationsInstagramIntegrationId';if(i==null)throw'Missing the required parameter "body" when calling patchConversationsMessagingIntegrationsInstagramIntegrationId';return this.apiClient.callApi("/api/v2/conversations/messaging/integrations/instagram/{integrationId}","PATCH",{integrationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchConversationsMessagingIntegrationsOpenExtensionsGooglebusinessprofileIntegrationId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "integrationId" when calling patchConversationsMessagingIntegrationsOpenExtensionsGooglebusinessprofileIntegrationId';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchConversationsMessagingIntegrationsOpenIntegrationId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "integrationId" when calling patchConversationsMessagingIntegrationsOpenIntegrationId';if(i==null)throw'Missing the required parameter "body" when calling patchConversationsMessagingIntegrationsOpenIntegrationId';return this.apiClient.callApi("/api/v2/conversations/messaging/integrations/open/{integrationId}","PATCH",{integrationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchConversationsMessagingIntegrationsTwitterIntegrationId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "integrationId" when calling patchConversationsMessagingIntegrationsTwitterIntegrationId';if(i==null)throw'Missing the required parameter "body" when calling patchConversationsMessagingIntegrationsTwitterIntegrationId';return this.apiClient.callApi("/api/v2/conversations/messaging/integrations/twitter/{integrationId}","PATCH",{integrationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchConversationsMessagingIntegrationsWhatsappEmbeddedsignupIntegrationId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "integrationId" when calling patchConversationsMessagingIntegrationsWhatsappEmbeddedsignupIntegrationId';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchConversationsMessagingIntegrationsWhatsappIntegrationId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "integrationId" when calling patchConversationsMessagingIntegrationsWhatsappIntegrationId';if(i==null)throw'Missing the required parameter "body" when calling patchConversationsMessagingIntegrationsWhatsappIntegrationId';return this.apiClient.callApi("/api/v2/conversations/messaging/integrations/whatsapp/{integrationId}","PATCH",{integrationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchConversationsMessagingSetting(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "messageSettingId" when calling patchConversationsMessagingSetting';if(i==null)throw'Missing the required parameter "body" when calling patchConversationsMessagingSetting';return this.apiClient.callApi("/api/v2/conversations/messaging/settings/{messageSettingId}","PATCH",{messageSettingId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchConversationsMessagingSupportedcontentSupportedContentId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "supportedContentId" when calling patchConversationsMessagingSupportedcontentSupportedContentId';if(i==null)throw'Missing the required parameter "body" when calling patchConversationsMessagingSupportedcontentSupportedContentId';return this.apiClient.callApi("/api/v2/conversations/messaging/supportedcontent/{supportedContentId}","PATCH",{supportedContentId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchConversationsSettings(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsConversationDetailsProperties(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postAnalyticsConversationDetailsProperties';if(i==null)throw'Missing the required parameter "body" when calling postAnalyticsConversationDetailsProperties';return this.apiClient.callApi("/api/v2/analytics/conversations/{conversationId}/details/properties","POST",{conversationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postAnalyticsConversationsActivityQuery(e,i){if(i=i||{},e==null)throw'Missing the required parameter "body" when calling postAnalyticsConversationsActivityQuery';return this.apiClient.callApi("/api/v2/analytics/conversations/activity/query","POST",{},{pageSize:i.pageSize,pageNumber:i.pageNumber},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postAnalyticsConversationsAggregatesJobs(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsConversationsAggregatesQuery(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsConversationsDetailsJobs(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsConversationsDetailsQuery(e,i){if(i=i||{},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"],i.customHeaders)}postConversationAssign(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationAssign';if(i==null)throw'Missing the required parameter "body" when calling postConversationAssign';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/assign","POST",{conversationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postConversationBarge(e,i){if(i=i||{},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"],i.customHeaders)}postConversationCobrowse(e,i){if(i=i||{},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"],i.customHeaders)}postConversationCommunicationAgentchecklist(e,i,n,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationCommunicationAgentchecklist';if(i==null||i==="")throw'Missing the required parameter "communicationId" when calling postConversationCommunicationAgentchecklist';if(n==null||n==="")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:i,agentChecklistId:n},{},{},{},a,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}postConversationCommunicationAgentchecklistAgentaction(e,i,n,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationCommunicationAgentchecklistAgentaction';if(i==null||i==="")throw'Missing the required parameter "communicationId" when calling postConversationCommunicationAgentchecklistAgentaction';if(n==null||n==="")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:i,agentChecklistId:n},{},{},{},a,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}postConversationCommunicationAgentchecklistJobs(e,i,n,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationCommunicationAgentchecklistJobs';if(i==null||i==="")throw'Missing the required parameter "communicationId" when calling postConversationCommunicationAgentchecklistJobs';if(n==null||n==="")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:i,agentChecklistId:n},{},{},{},a,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}postConversationCommunicationAgentchecklistsFinalize(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationCommunicationAgentchecklistsFinalize';if(i==null||i==="")throw'Missing the required parameter "communicationId" when calling postConversationCommunicationAgentchecklistsFinalize';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postConversationCommunicationInternalmessages(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationCommunicationInternalmessages';if(i==null||i==="")throw'Missing the required parameter "communicationId" when calling postConversationCommunicationInternalmessages';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postConversationDisconnect(e,i){if(i=i||{},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"],i.customHeaders)}postConversationParticipantCallbacks(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationParticipantCallbacks';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling postConversationParticipantCallbacks';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/participants/{participantId}/callbacks","POST",{conversationId:e,participantId:i},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postConversationParticipantDigits(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationParticipantDigits';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling postConversationParticipantDigits';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/participants/{participantId}/digits","POST",{conversationId:e,participantId:i},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postConversationParticipantInternalmessagesUsersCommunications(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationParticipantInternalmessagesUsersCommunications';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling postConversationParticipantInternalmessagesUsersCommunications';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postConversationParticipantReplace(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationParticipantReplace';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling postConversationParticipantReplace';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postConversationParticipantReplaceAgent(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationParticipantReplaceAgent';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling postConversationParticipantReplaceAgent';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postConversationParticipantReplaceContactExternal(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationParticipantReplaceContactExternal';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling postConversationParticipantReplaceContactExternal';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postConversationParticipantReplaceExternal(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationParticipantReplaceExternal';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling postConversationParticipantReplaceExternal';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postConversationParticipantReplaceQueue(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationParticipantReplaceQueue';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling postConversationParticipantReplaceQueue';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postConversationParticipantSecureivrsessions(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationParticipantSecureivrsessions';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling postConversationParticipantSecureivrsessions';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/participants/{participantId}/secureivrsessions","POST",{conversationId:e,participantId:i},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postConversationParticipantTransfer(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationParticipantTransfer';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling postConversationParticipantTransfer';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postConversationSuggestionEngagement(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationSuggestionEngagement';if(i==null||i==="")throw'Missing the required parameter "suggestionId" when calling postConversationSuggestionEngagement';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postConversationSuggestionsFeedback(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationSuggestionsFeedback';if(i==null)throw'Missing the required parameter "body" when calling postConversationSuggestionsFeedback';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/suggestions/feedback","POST",{conversationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postConversationSummaryFeedback(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationSummaryFeedback';if(i==null||i==="")throw'Missing the required parameter "summaryId" when calling postConversationSummaryFeedback';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/summaries/{summaryId}/feedback","POST",{conversationId:e,summaryId:i},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postConversationsCall(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsCall';if(i==null)throw'Missing the required parameter "body" when calling postConversationsCall';return this.apiClient.callApi("/api/v2/conversations/calls/{conversationId}","POST",{conversationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postConversationsCallParticipantBarge(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsCallParticipantBarge';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postConversationsCallParticipantCoach(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsCallParticipantCoach';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postConversationsCallParticipantCommunicationWrapup(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsCallParticipantCommunicationWrapup';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling postConversationsCallParticipantCommunicationWrapup';if(n==null||n==="")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:i,communicationId:n},{},{},{},a.body,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postConversationsCallParticipantConsult(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsCallParticipantConsult';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling postConversationsCallParticipantConsult';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postConversationsCallParticipantConsultAgent(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsCallParticipantConsultAgent';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling postConversationsCallParticipantConsultAgent';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postConversationsCallParticipantConsultContactExternal(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsCallParticipantConsultContactExternal';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling postConversationsCallParticipantConsultContactExternal';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postConversationsCallParticipantConsultExternal(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsCallParticipantConsultExternal';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling postConversationsCallParticipantConsultExternal';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postConversationsCallParticipantConsultQueue(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsCallParticipantConsultQueue';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling postConversationsCallParticipantConsultQueue';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postConversationsCallParticipantMonitor(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsCallParticipantMonitor';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postConversationsCallParticipantReplace(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsCallParticipantReplace';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling postConversationsCallParticipantReplace';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postConversationsCallParticipantSnippetRecord(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsCallParticipantSnippetRecord';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling postConversationsCallParticipantSnippetRecord';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postConversationsCallParticipantVoiceConsult(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsCallParticipantVoiceConsult';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling postConversationsCallParticipantVoiceConsult';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postConversationsCallParticipants(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsCallParticipants';if(i==null)throw'Missing the required parameter "body" when calling postConversationsCallParticipants';return this.apiClient.callApi("/api/v2/conversations/calls/{conversationId}/participants","POST",{conversationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postConversationsCallParticipantsUserUserId(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsCallParticipantsUserUserId';if(i==null||i==="")throw'Missing the required parameter "userId" when calling postConversationsCallParticipantsUserUserId';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postConversationsCallbackParticipantCommunicationWrapup(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsCallbackParticipantCommunicationWrapup';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling postConversationsCallbackParticipantCommunicationWrapup';if(n==null||n==="")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:i,communicationId:n},{},{},{},a.body,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postConversationsCallbackParticipantReplace(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsCallbackParticipantReplace';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling postConversationsCallbackParticipantReplace';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postConversationsCallbacks(e,i){if(i=i||{},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"],i.customHeaders)}postConversationsCallbacksBulkDisconnect(e,i){if(i=i||{},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"],i.customHeaders)}postConversationsCallbacksBulkUpdate(e,i){if(i=i||{},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"],i.customHeaders)}postConversationsCalls(e,i){if(i=i||{},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"],i.customHeaders)}postConversationsCallsUserUserId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling postConversationsCallsUserUserId';if(i==null)throw'Missing the required parameter "body" when calling postConversationsCallsUserUserId';return this.apiClient.callApi("/api/v2/conversations/calls/user/{userId}","POST",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postConversationsChatCommunicationMessages(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsChatCommunicationMessages';if(i==null||i==="")throw'Missing the required parameter "communicationId" when calling postConversationsChatCommunicationMessages';if(n==null)throw'Missing the required parameter "body" when calling postConversationsChatCommunicationMessages';return this.apiClient.callApi("/api/v2/conversations/chats/{conversationId}/communications/{communicationId}/messages","POST",{conversationId:e,communicationId:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postConversationsChatCommunicationTyping(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsChatCommunicationTyping';if(i==null||i==="")throw'Missing the required parameter "communicationId" when calling postConversationsChatCommunicationTyping';return this.apiClient.callApi("/api/v2/conversations/chats/{conversationId}/communications/{communicationId}/typing","POST",{conversationId:e,communicationId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postConversationsChatParticipantCommunicationWrapup(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsChatParticipantCommunicationWrapup';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling postConversationsChatParticipantCommunicationWrapup';if(n==null||n==="")throw'Missing the required parameter "communicationId" when calling postConversationsChatParticipantCommunicationWrapup';return this.apiClient.callApi("/api/v2/conversations/chats/{conversationId}/participants/{participantId}/communications/{communicationId}/wrapup","POST",{conversationId:e,participantId:i,communicationId:n},{},{},{},a.body,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postConversationsChatParticipantReplace(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsChatParticipantReplace';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling postConversationsChatParticipantReplace';if(n==null)throw'Missing the required parameter "body" when calling postConversationsChatParticipantReplace';return this.apiClient.callApi("/api/v2/conversations/chats/{conversationId}/participants/{participantId}/replace","POST",{conversationId:e,participantId:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postConversationsChats(e,i){if(i=i||{},e==null)throw'Missing the required parameter "body" when calling postConversationsChats';return this.apiClient.callApi("/api/v2/conversations/chats","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postConversationsCobrowsesessionParticipantCommunicationWrapup(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsCobrowsesessionParticipantCommunicationWrapup';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling postConversationsCobrowsesessionParticipantCommunicationWrapup';if(n==null||n==="")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:i,communicationId:n},{},{},{},a.body,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postConversationsCobrowsesessionParticipantReplace(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsCobrowsesessionParticipantReplace';if(i==null||i==="")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:i},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postConversationsCustomattributesSchemas(e,i){if(i=i||{},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"],i.customHeaders)}postConversationsCustomattributesSearch(e,i){if(i=i||{},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"],i.customHeaders)}postConversationsEmailInboundmessages(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsEmailInboundmessages';if(i==null)throw'Missing the required parameter "body" when calling postConversationsEmailInboundmessages';return this.apiClient.callApi("/api/v2/conversations/emails/{conversationId}/inboundmessages","POST",{conversationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postConversationsEmailMessages(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsEmailMessages';if(i==null)throw'Missing the required parameter "body" when calling postConversationsEmailMessages';return this.apiClient.callApi("/api/v2/conversations/emails/{conversationId}/messages","POST",{conversationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postConversationsEmailMessagesDraftAttachmentsCopy(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsEmailMessagesDraftAttachmentsCopy';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postConversationsEmailParticipantCommunicationWrapup(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsEmailParticipantCommunicationWrapup';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling postConversationsEmailParticipantCommunicationWrapup';if(n==null||n==="")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:i,communicationId:n},{},{},{},a.body,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postConversationsEmailParticipantReplace(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsEmailParticipantReplace';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling postConversationsEmailParticipantReplace';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postConversationsEmailReconnect(e,i){if(i=i||{},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"],i.customHeaders)}postConversationsEmails(e,i){if(i=i||{},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"],i.customHeaders)}postConversationsEmailsAgentless(e,i){if(i=i||{},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"],i.customHeaders)}postConversationsFaxes(e,i){if(i=i||{},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"],i.customHeaders)}postConversationsKeyconfigurations(e,i){if(i=i||{},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"],i.customHeaders)}postConversationsKeyconfigurationsValidate(e,i){if(i=i||{},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"],i.customHeaders)}postConversationsMessageCommunicationMessages(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsMessageCommunicationMessages';if(i==null||i==="")throw'Missing the required parameter "communicationId" when calling postConversationsMessageCommunicationMessages';if(n==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:i},{useNormalizedMessage:a.useNormalizedMessage},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postConversationsMessageCommunicationMessagesMedia(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsMessageCommunicationMessagesMedia';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postConversationsMessageCommunicationMessagesMediaUploads(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsMessageCommunicationMessagesMediaUploads';if(i==null||i==="")throw'Missing the required parameter "communicationId" when calling postConversationsMessageCommunicationMessagesMediaUploads';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postConversationsMessageCommunicationSocialmediaMessages(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsMessageCommunicationSocialmediaMessages';if(i==null||i==="")throw'Missing the required parameter "communicationId" when calling postConversationsMessageCommunicationSocialmediaMessages';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postConversationsMessageCommunicationTyping(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsMessageCommunicationTyping';if(i==null||i==="")throw'Missing the required parameter "communicationId" when calling postConversationsMessageCommunicationTyping';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postConversationsMessageInboundOpenEvent(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "integrationId" when calling postConversationsMessageInboundOpenEvent';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postConversationsMessageInboundOpenMessage(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "integrationId" when calling postConversationsMessageInboundOpenMessage';if(i==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:n.prefetchConversationId},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postConversationsMessageInboundOpenReceipt(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "integrationId" when calling postConversationsMessageInboundOpenReceipt';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postConversationsMessageInboundOpenStructuredResponse(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "integrationId" when calling postConversationsMessageInboundOpenStructuredResponse';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postConversationsMessageMessagesBulk(e,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsMessageMessagesBulk';return this.apiClient.callApi("/api/v2/conversations/messages/{conversationId}/messages/bulk","POST",{conversationId:e},{useNormalizedMessage:i.useNormalizedMessage},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postConversationsMessageParticipantCommunicationWrapup(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsMessageParticipantCommunicationWrapup';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling postConversationsMessageParticipantCommunicationWrapup';if(n==null||n==="")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:i,communicationId:n},{},{},{},a.body,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postConversationsMessageParticipantMonitor(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsMessageParticipantMonitor';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postConversationsMessageParticipantReplace(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsMessageParticipantReplace';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling postConversationsMessageParticipantReplace';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postConversationsMessages(e,i){if(i=i||{},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"],i.customHeaders)}postConversationsMessagesAgentless(e,i){if(i=i||{},e==null)throw'Missing the required parameter "body" when calling postConversationsMessagesAgentless';return this.apiClient.callApi("/api/v2/conversations/messages/agentless","POST",{},{useNormalizedMessage:i.useNormalizedMessage},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postConversationsMessagesInboundOpen(e,i){if(i=i||{},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"],i.customHeaders)}postConversationsMessagingIntegrationsApple(e,i){if(i=i||{},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"],i.customHeaders)}postConversationsMessagingIntegrationsFacebook(e,i){if(i=i||{},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"],i.customHeaders)}postConversationsMessagingIntegrationsInstagram(e,i){if(i=i||{},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"],i.customHeaders)}postConversationsMessagingIntegrationsOpen(e,i){if(i=i||{},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"],i.customHeaders)}postConversationsMessagingIntegrationsOpenExtensionsGooglebusinessprofile(e,i){if(i=i||{},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"],i.customHeaders)}postConversationsMessagingIntegrationsOpenExtensionsGooglebusinessprofileTokens(e,i){if(i=i||{},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"],i.customHeaders)}postConversationsMessagingIntegrationsTwitter(e,i){if(i=i||{},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"],i.customHeaders)}postConversationsMessagingIntegrationsWhatsapp(e,i){if(i=i||{},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"],i.customHeaders)}postConversationsMessagingIntegrationsWhatsappEmbeddedsignup(e,i){if(i=i||{},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"],i.customHeaders)}postConversationsMessagingSettings(e,i){if(i=i||{},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"],i.customHeaders)}postConversationsMessagingSupportedcontent(e,i){if(i=i||{},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"],i.customHeaders)}postConversationsParticipantsAttributesSearch(e,i){if(i=i||{},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"],i.customHeaders)}postConversationsScreenshareParticipantCommunicationWrapup(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsScreenshareParticipantCommunicationWrapup';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling postConversationsScreenshareParticipantCommunicationWrapup';if(n==null||n==="")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:i,communicationId:n},{},{},{},a.body,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postConversationsSocialParticipantCommunicationWrapup(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsSocialParticipantCommunicationWrapup';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling postConversationsSocialParticipantCommunicationWrapup';if(n==null||n==="")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:i,communicationId:n},{},{},{},a.body,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postConversationsVideoAgentconferenceCommunication(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsVideoAgentconferenceCommunication';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postConversationsVideoParticipantCommunicationWrapup(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsVideoParticipantCommunicationWrapup';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling postConversationsVideoParticipantCommunicationWrapup';if(n==null||n==="")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:i,communicationId:n},{},{},{},a.body,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postConversationsVideosMeetings(e,i){if(i=i||{},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"],i.customHeaders)}putConversationCustomattributes(e,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling putConversationCustomattributes';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/customattributes","PUT",{conversationId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}putConversationCustomattributesBulk(e,i){if(i=i||{},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},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}putConversationParticipantFlaggedreason(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling putConversationParticipantFlaggedreason';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling putConversationParticipantFlaggedreason';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/participants/{participantId}/flaggedreason","PUT",{conversationId:e,participantId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putConversationSecureattributes(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling putConversationSecureattributes';if(i==null)throw'Missing the required parameter "body" when calling putConversationSecureattributes';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/secureattributes","PUT",{conversationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putConversationTags(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling putConversationTags';if(i==null)throw'Missing the required parameter "body" when calling putConversationTags';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/tags","PUT",{conversationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putConversationsCallParticipantCommunicationUuidata(e,i,n,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling putConversationsCallParticipantCommunicationUuidata';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling putConversationsCallParticipantCommunicationUuidata';if(n==null||n==="")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:i,communicationId:n},{},{},{},a,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}putConversationsCallRecordingstate(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling putConversationsCallRecordingstate';if(i==null)throw'Missing the required parameter "body" when calling putConversationsCallRecordingstate';return this.apiClient.callApi("/api/v2/conversations/calls/{conversationId}/recordingstate","PUT",{conversationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putConversationsCallbackRecordingstate(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling putConversationsCallbackRecordingstate';if(i==null)throw'Missing the required parameter "body" when calling putConversationsCallbackRecordingstate';return this.apiClient.callApi("/api/v2/conversations/callbacks/{conversationId}/recordingstate","PUT",{conversationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putConversationsChatRecordingstate(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling putConversationsChatRecordingstate';if(i==null)throw'Missing the required parameter "body" when calling putConversationsChatRecordingstate';return this.apiClient.callApi("/api/v2/conversations/chats/{conversationId}/recordingstate","PUT",{conversationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putConversationsCobrowsesessionRecordingstate(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling putConversationsCobrowsesessionRecordingstate';if(i==null)throw'Missing the required parameter "body" when calling putConversationsCobrowsesessionRecordingstate';return this.apiClient.callApi("/api/v2/conversations/cobrowsesessions/{conversationId}/recordingstate","PUT",{conversationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putConversationsCustomattributesSchema(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "schemaId" when calling putConversationsCustomattributesSchema';if(i==null)throw'Missing the required parameter "body" when calling putConversationsCustomattributesSchema';return this.apiClient.callApi("/api/v2/conversations/customattributes/schemas/{schemaId}","PUT",{schemaId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putConversationsEmailMessagesDraft(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling putConversationsEmailMessagesDraft';if(i==null)throw'Missing the required parameter "body" when calling putConversationsEmailMessagesDraft';return this.apiClient.callApi("/api/v2/conversations/emails/{conversationId}/messages/draft","PUT",{conversationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putConversationsEmailRecordingstate(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling putConversationsEmailRecordingstate';if(i==null)throw'Missing the required parameter "body" when calling putConversationsEmailRecordingstate';return this.apiClient.callApi("/api/v2/conversations/emails/{conversationId}/recordingstate","PUT",{conversationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putConversationsKeyconfiguration(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "keyconfigurationsId" when calling putConversationsKeyconfiguration';if(i==null)throw'Missing the required parameter "body" when calling putConversationsKeyconfiguration';return this.apiClient.callApi("/api/v2/conversations/keyconfigurations/{keyconfigurationsId}","PUT",{keyconfigurationsId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putConversationsMessageRecordingstate(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling putConversationsMessageRecordingstate';if(i==null)throw'Missing the required parameter "body" when calling putConversationsMessageRecordingstate';return this.apiClient.callApi("/api/v2/conversations/messages/{conversationId}/recordingstate","PUT",{conversationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putConversationsMessagingIdentityresolutionIntegrationsAppleIntegrationId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "integrationId" when calling putConversationsMessagingIdentityresolutionIntegrationsAppleIntegrationId';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putConversationsMessagingIdentityresolutionIntegrationsFacebookIntegrationId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "integrationId" when calling putConversationsMessagingIdentityresolutionIntegrationsFacebookIntegrationId';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putConversationsMessagingIdentityresolutionIntegrationsInstagramIntegrationId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "integrationId" when calling putConversationsMessagingIdentityresolutionIntegrationsInstagramIntegrationId';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putConversationsMessagingIdentityresolutionIntegrationsOpenIntegrationId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "integrationId" when calling putConversationsMessagingIdentityresolutionIntegrationsOpenIntegrationId';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putConversationsMessagingIdentityresolutionIntegrationsTwitterIntegrationId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "integrationId" when calling putConversationsMessagingIdentityresolutionIntegrationsTwitterIntegrationId';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putConversationsMessagingIdentityresolutionIntegrationsWhatsappIntegrationId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "integrationId" when calling putConversationsMessagingIdentityresolutionIntegrationsWhatsappIntegrationId';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putConversationsMessagingSettingsDefault(e,i){if(i=i||{},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"],i.customHeaders)}putConversationsMessagingSupportedcontentDefault(e,i){if(i=i||{},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"],i.customHeaders)}putConversationsMessagingThreadingtimeline(e,i){if(i=i||{},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"],i.customHeaders)}putConversationsScreenshareRecordingstate(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling putConversationsScreenshareRecordingstate';if(i==null)throw'Missing the required parameter "body" when calling putConversationsScreenshareRecordingstate';return this.apiClient.callApi("/api/v2/conversations/screenshares/{conversationId}/recordingstate","PUT",{conversationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putConversationsSocialRecordingstate(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling putConversationsSocialRecordingstate';if(i==null)throw'Missing the required parameter "body" when calling putConversationsSocialRecordingstate';return this.apiClient.callApi("/api/v2/conversations/socials/{conversationId}/recordingstate","PUT",{conversationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putConversationsVideoRecordingstate(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling putConversationsVideoRecordingstate';if(i==null)throw'Missing the required parameter "body" when calling putConversationsVideoRecordingstate';return this.apiClient.callApi("/api/v2/conversations/videos/{conversationId}/recordingstate","PUT",{conversationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}},BA=class{constructor(e){this.apiClient=e||q.instance}getDataextensionsCoretype(e,i){if(i=i||{},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"],i.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)}},FA=class{constructor(e){this.apiClient=e||q.instance}deleteDataprivacyMaskingrule(e,i){if(i=i||{},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"],i.customHeaders)}getDataprivacyMaskingrule(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "ruleId" when calling patchDataprivacyMaskingrule';return this.apiClient.callApi("/api/v2/dataprivacy/maskingrules/{ruleId}","PATCH",{ruleId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postDataprivacyMaskingrules(e,i){if(i=i||{},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"],i.customHeaders)}postDataprivacyMaskingrulesValidate(e,i){if(i=i||{},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"],i.customHeaders)}},VA=class{constructor(e){this.apiClient=e||q.instance}getDownload(e,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "downloadId" when calling getDownload';return this.apiClient.callApi("/api/v2/downloads/{downloadId}","GET",{downloadId:e},{contentDisposition:i.contentDisposition,issueRedirect:i.issueRedirect,redirectToAuth:i.redirectToAuth},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}},JA=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)}},ZA=class{constructor(e){this.apiClient=e||q.instance}deleteEmployeeengagementCelebration(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "celebrationId" when calling patchEmployeeengagementCelebration';if(i==null)throw'Missing the required parameter "body" when calling patchEmployeeengagementCelebration';return this.apiClient.callApi("/api/v2/employeeengagement/celebrations/{celebrationId}","PATCH",{celebrationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postEmployeeengagementRecognitions(e,i){if(i=i||{},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"],i.customHeaders)}},KA=class{constructor(e){this.apiClient=e||q.instance}postEventsConversations(e,i){if(i=i||{},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"],i.customHeaders)}postEventsRoutingCustomkpiattributions(e,i){if(i=i||{},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"],i.customHeaders)}postEventsUsersPresence(e,i){if(i=i||{},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"],i.customHeaders)}postEventsUsersRoutingstatus(e,i){if(i=i||{},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"],i.customHeaders)}},QA=class{constructor(e){this.apiClient=e||q.instance}deleteExternalcontactsContact(e,i){if(i=i||{},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"],i.customHeaders)}deleteExternalcontactsContactNote(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "contactId" when calling deleteExternalcontactsContactNote';if(i==null||i==="")throw'Missing the required parameter "noteId" when calling deleteExternalcontactsContactNote';return this.apiClient.callApi("/api/v2/externalcontacts/contacts/{contactId}/notes/{noteId}","DELETE",{contactId:e,noteId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteExternalcontactsContactsSchema(e,i){if(i=i||{},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"],i.customHeaders)}deleteExternalcontactsExternalsource(e,i){if(i=i||{},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"],i.customHeaders)}deleteExternalcontactsImportCsvSetting(e,i){if(i=i||{},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"],i.customHeaders)}deleteExternalcontactsImportSetting(e,i){if(i=i||{},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"],i.customHeaders)}deleteExternalcontactsOrganization(e,i){if(i=i||{},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"],i.customHeaders)}deleteExternalcontactsOrganizationNote(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "externalOrganizationId" when calling deleteExternalcontactsOrganizationNote';if(i==null||i==="")throw'Missing the required parameter "noteId" when calling deleteExternalcontactsOrganizationNote';return this.apiClient.callApi("/api/v2/externalcontacts/organizations/{externalOrganizationId}/notes/{noteId}","DELETE",{externalOrganizationId:e,noteId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteExternalcontactsOrganizationTrustor(e,i){if(i=i||{},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"],i.customHeaders)}deleteExternalcontactsRelationship(e,i){if(i=i||{},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"],i.customHeaders)}getExternalcontactsContact(e,i){if(i=i||{},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(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getExternalcontactsContactIdentifiers(e,i){if(i=i||{},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"],i.customHeaders)}getExternalcontactsContactJourneySegments(e,i){if(i=i||{},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:i.includeMerged,limit:i.limit},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getExternalcontactsContactJourneySessions(e,i){if(i=i||{},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:i.pageSize,after:i.after,includeMerged:i.includeMerged},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getExternalcontactsContactNote(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "contactId" when calling getExternalcontactsContactNote';if(i==null||i==="")throw'Missing the required parameter "noteId" when calling getExternalcontactsContactNote';return this.apiClient.callApi("/api/v2/externalcontacts/contacts/{contactId}/notes/{noteId}","GET",{contactId:e,noteId:i},{expand:this.apiClient.buildCollectionParam(n.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getExternalcontactsContactNotes(e,i){if(i=i||{},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:i.pageSize,pageNumber:i.pageNumber,sortOrder:i.sortOrder,expand:this.apiClient.buildCollectionParam(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getExternalcontactsContactUnresolved(e,i){if(i=i||{},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(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getExternalcontactsContactsSchemaVersion(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "schemaId" when calling getExternalcontactsContactsSchemaVersion';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getExternalcontactsContactsSchemaVersions(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getExternalcontactsExternalsources(e){return e=e||{},this.apiClient.callApi("/api/v2/externalcontacts/externalsources","GET",{},{cursor:e.cursor,limit:e.limit,name:e.name,active:e.active},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getExternalcontactsImportCsvSetting(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getExternalcontactsImportCsvUploadPreview(e,i){if(i=i||{},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"],i.customHeaders)}getExternalcontactsImportJob(e,i){if(i=i||{},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(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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"],i.customHeaders)}getExternalcontactsImportSettings(e){return e=e||{},this.apiClient.callApi("/api/v2/externalcontacts/import/settings","GET",{},{after:e.after,pageSize:e.pageSize,sortOrder:e.sortOrder,name:e.name},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getExternalcontactsOrganization(e,i){if(i=i||{},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(i.expand,"multi"),includeTrustors:i.includeTrustors},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getExternalcontactsOrganizationContacts(e,i){if(i=i||{},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:i.pageSize,pageNumber:i.pageNumber,q:i.q,sortOrder:i.sortOrder,expand:this.apiClient.buildCollectionParam(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getExternalcontactsOrganizationIdentifiers(e,i){if(i=i||{},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"],i.customHeaders)}getExternalcontactsOrganizationNote(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "externalOrganizationId" when calling getExternalcontactsOrganizationNote';if(i==null||i==="")throw'Missing the required parameter "noteId" when calling getExternalcontactsOrganizationNote';return this.apiClient.callApi("/api/v2/externalcontacts/organizations/{externalOrganizationId}/notes/{noteId}","GET",{externalOrganizationId:e,noteId:i},{expand:this.apiClient.buildCollectionParam(n.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getExternalcontactsOrganizationNotes(e,i){if(i=i||{},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:i.pageSize,pageNumber:i.pageNumber,sortOrder:i.sortOrder,expand:this.apiClient.buildCollectionParam(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getExternalcontactsOrganizationRelationships(e,i){if(i=i||{},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:i.pageSize,pageNumber:i.pageNumber,expand:this.apiClient.buildCollectionParam(i.expand,"multi"),sortOrder:i.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getExternalcontactsOrganizations(e){return e=e||{},this.apiClient.callApi("/api/v2/externalcontacts/organizations","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,q:e.q,trustorId:this.apiClient.buildCollectionParam(e.trustorId,"multi"),sortOrder:e.sortOrder,expand:this.apiClient.buildCollectionParam(e.expand,"multi"),includeTrustors:e.includeTrustors,divisionIds:this.apiClient.buildCollectionParam(e.divisionIds,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getExternalcontactsOrganizationsSchema(e,i){if(i=i||{},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"],i.customHeaders)}getExternalcontactsOrganizationsSchemaVersion(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "schemaId" when calling getExternalcontactsOrganizationsSchemaVersion';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getExternalcontactsOrganizationsSchemaVersions(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getExternalcontactsReversewhitepageslookup(e,i){if(i=i||{},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(i.expand,"multi"),divisionId:i.divisionId},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "contactId" when calling patchExternalcontactsContact';if(i==null)throw'Missing the required parameter "body" when calling patchExternalcontactsContact';return this.apiClient.callApi("/api/v2/externalcontacts/contacts/{contactId}","PATCH",{contactId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchExternalcontactsContactIdentifiers(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "contactId" when calling patchExternalcontactsContactIdentifiers';if(i==null)throw'Missing the required parameter "body" when calling patchExternalcontactsContactIdentifiers';return this.apiClient.callApi("/api/v2/externalcontacts/contacts/{contactId}/identifiers","PATCH",{contactId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchExternalcontactsOrganizationIdentifiers(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "externalOrganizationId" when calling patchExternalcontactsOrganizationIdentifiers';if(i==null)throw'Missing the required parameter "body" when calling patchExternalcontactsOrganizationIdentifiers';return this.apiClient.callApi("/api/v2/externalcontacts/organizations/{externalOrganizationId}/identifiers","PATCH",{externalOrganizationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postExternalcontactsBulkContacts(e,i){if(i=i||{},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"],i.customHeaders)}postExternalcontactsBulkContactsAdd(e,i){if(i=i||{},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"],i.customHeaders)}postExternalcontactsBulkContactsDivisionviews(e,i){if(i=i||{},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"],i.customHeaders)}postExternalcontactsBulkContactsEnrich(e,i){if(i=i||{},e==null)throw'Missing the required parameter "body" when calling postExternalcontactsBulkContactsEnrich';return this.apiClient.callApi("/api/v2/externalcontacts/bulk/contacts/enrich","POST",{},{dryRun:i.dryRun},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postExternalcontactsBulkContactsRemove(e,i){if(i=i||{},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"],i.customHeaders)}postExternalcontactsBulkContactsUnresolved(e,i){if(i=i||{},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"],i.customHeaders)}postExternalcontactsBulkContactsUpdate(e,i){if(i=i||{},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"],i.customHeaders)}postExternalcontactsBulkNotes(e,i){if(i=i||{},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"],i.customHeaders)}postExternalcontactsBulkNotesAdd(e,i){if(i=i||{},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"],i.customHeaders)}postExternalcontactsBulkNotesRemove(e,i){if(i=i||{},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"],i.customHeaders)}postExternalcontactsBulkNotesUpdate(e,i){if(i=i||{},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"],i.customHeaders)}postExternalcontactsBulkOrganizations(e,i){if(i=i||{},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"],i.customHeaders)}postExternalcontactsBulkOrganizationsAdd(e,i){if(i=i||{},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"],i.customHeaders)}postExternalcontactsBulkOrganizationsDivisionviews(e,i){if(i=i||{},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"],i.customHeaders)}postExternalcontactsBulkOrganizationsEnrich(e,i){if(i=i||{},e==null)throw'Missing the required parameter "body" when calling postExternalcontactsBulkOrganizationsEnrich';return this.apiClient.callApi("/api/v2/externalcontacts/bulk/organizations/enrich","POST",{},{dryRun:i.dryRun},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postExternalcontactsBulkOrganizationsRemove(e,i){if(i=i||{},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"],i.customHeaders)}postExternalcontactsBulkOrganizationsUpdate(e,i){if(i=i||{},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"],i.customHeaders)}postExternalcontactsBulkRelationships(e,i){if(i=i||{},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"],i.customHeaders)}postExternalcontactsBulkRelationshipsAdd(e,i){if(i=i||{},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"],i.customHeaders)}postExternalcontactsBulkRelationshipsRemove(e,i){if(i=i||{},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"],i.customHeaders)}postExternalcontactsBulkRelationshipsUpdate(e,i){if(i=i||{},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"],i.customHeaders)}postExternalcontactsContactJourneySegments(e,i){if(i=i||{},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},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postExternalcontactsContactNotes(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "contactId" when calling postExternalcontactsContactNotes';if(i==null)throw'Missing the required parameter "body" when calling postExternalcontactsContactNotes';return this.apiClient.callApi("/api/v2/externalcontacts/contacts/{contactId}/notes","POST",{contactId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postExternalcontactsContactPromotion(e,i){if(i=i||{},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"],i.customHeaders)}postExternalcontactsContacts(e,i){if(i=i||{},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"],i.customHeaders)}postExternalcontactsContactsEnrich(e,i){if(i=i||{},e==null)throw'Missing the required parameter "body" when calling postExternalcontactsContactsEnrich';return this.apiClient.callApi("/api/v2/externalcontacts/contacts/enrich","POST",{},{dryRun:i.dryRun},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postExternalcontactsContactsExports(e,i){if(i=i||{},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"],i.customHeaders)}postExternalcontactsContactsMerge(e,i){if(i=i||{},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"],i.customHeaders)}postExternalcontactsContactsSchemas(e,i){if(i=i||{},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"],i.customHeaders)}postExternalcontactsExternalsources(e,i){if(i=i||{},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"],i.customHeaders)}postExternalcontactsIdentifierlookup(e,i){if(i=i||{},e==null)throw'Missing the required parameter "identifier" when calling postExternalcontactsIdentifierlookup';return this.apiClient.callApi("/api/v2/externalcontacts/identifierlookup","POST",{},{expand:this.apiClient.buildCollectionParam(i.expand,"multi")},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postExternalcontactsIdentifierlookupContacts(e,i){if(i=i||{},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(i.expand,"multi")},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postExternalcontactsIdentifierlookupOrganizations(e,i){if(i=i||{},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(i.expand,"multi")},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postExternalcontactsImportCsvJobs(e,i){if(i=i||{},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"],i.customHeaders)}postExternalcontactsImportCsvSettings(e,i){if(i=i||{},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"],i.customHeaders)}postExternalcontactsImportCsvUploads(e,i){if(i=i||{},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"],i.customHeaders)}postExternalcontactsImportJobs(e,i){if(i=i||{},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"],i.customHeaders)}postExternalcontactsImportSettings(e,i){if(i=i||{},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"],i.customHeaders)}postExternalcontactsMergeContacts(e,i){if(i=i||{},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"],i.customHeaders)}postExternalcontactsOrganizationNotes(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "externalOrganizationId" when calling postExternalcontactsOrganizationNotes';if(i==null)throw'Missing the required parameter "body" when calling postExternalcontactsOrganizationNotes';return this.apiClient.callApi("/api/v2/externalcontacts/organizations/{externalOrganizationId}/notes","POST",{externalOrganizationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postExternalcontactsOrganizations(e,i){if(i=i||{},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"],i.customHeaders)}postExternalcontactsOrganizationsEnrich(e,i){if(i=i||{},e==null)throw'Missing the required parameter "body" when calling postExternalcontactsOrganizationsEnrich';return this.apiClient.callApi("/api/v2/externalcontacts/organizations/enrich","POST",{},{dryRun:i.dryRun},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postExternalcontactsOrganizationsSchemas(e,i){if(i=i||{},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"],i.customHeaders)}postExternalcontactsRelationships(e,i){if(i=i||{},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"],i.customHeaders)}putExternalcontactsContact(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "contactId" when calling putExternalcontactsContact';if(i==null)throw'Missing the required parameter "body" when calling putExternalcontactsContact';return this.apiClient.callApi("/api/v2/externalcontacts/contacts/{contactId}","PUT",{contactId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putExternalcontactsContactNote(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "contactId" when calling putExternalcontactsContactNote';if(i==null||i==="")throw'Missing the required parameter "noteId" when calling putExternalcontactsContactNote';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}putExternalcontactsContactsSchema(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "schemaId" when calling putExternalcontactsContactsSchema';if(i==null)throw'Missing the required parameter "body" when calling putExternalcontactsContactsSchema';return this.apiClient.callApi("/api/v2/externalcontacts/contacts/schemas/{schemaId}","PUT",{schemaId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putExternalcontactsConversation(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling putExternalcontactsConversation';if(i==null)throw'Missing the required parameter "body" when calling putExternalcontactsConversation';return this.apiClient.callApi("/api/v2/externalcontacts/conversations/{conversationId}","PUT",{conversationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putExternalcontactsExternalsource(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "externalSourceId" when calling putExternalcontactsExternalsource';if(i==null)throw'Missing the required parameter "body" when calling putExternalcontactsExternalsource';return this.apiClient.callApi("/api/v2/externalcontacts/externalsources/{externalSourceId}","PUT",{externalSourceId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putExternalcontactsImportCsvSetting(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "settingsId" when calling putExternalcontactsImportCsvSetting';if(i==null)throw'Missing the required parameter "body" when calling putExternalcontactsImportCsvSetting';return this.apiClient.callApi("/api/v2/externalcontacts/import/csv/settings/{settingsId}","PUT",{settingsId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putExternalcontactsImportJob(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "jobId" when calling putExternalcontactsImportJob';if(i==null)throw'Missing the required parameter "body" when calling putExternalcontactsImportJob';return this.apiClient.callApi("/api/v2/externalcontacts/import/jobs/{jobId}","PUT",{jobId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putExternalcontactsImportSetting(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "settingsId" when calling putExternalcontactsImportSetting';if(i==null)throw'Missing the required parameter "body" when calling putExternalcontactsImportSetting';return this.apiClient.callApi("/api/v2/externalcontacts/import/settings/{settingsId}","PUT",{settingsId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putExternalcontactsOrganization(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "externalOrganizationId" when calling putExternalcontactsOrganization';if(i==null)throw'Missing the required parameter "body" when calling putExternalcontactsOrganization';return this.apiClient.callApi("/api/v2/externalcontacts/organizations/{externalOrganizationId}","PUT",{externalOrganizationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putExternalcontactsOrganizationNote(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "externalOrganizationId" when calling putExternalcontactsOrganizationNote';if(i==null||i==="")throw'Missing the required parameter "noteId" when calling putExternalcontactsOrganizationNote';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}putExternalcontactsOrganizationTrustorTrustorId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "externalOrganizationId" when calling putExternalcontactsOrganizationTrustorTrustorId';if(i==null||i==="")throw'Missing the required parameter "trustorId" when calling putExternalcontactsOrganizationTrustorTrustorId';return this.apiClient.callApi("/api/v2/externalcontacts/organizations/{externalOrganizationId}/trustor/{trustorId}","PUT",{externalOrganizationId:e,trustorId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putExternalcontactsOrganizationsSchema(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "schemaId" when calling putExternalcontactsOrganizationsSchema';if(i==null)throw'Missing the required parameter "body" when calling putExternalcontactsOrganizationsSchema';return this.apiClient.callApi("/api/v2/externalcontacts/organizations/schemas/{schemaId}","PUT",{schemaId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putExternalcontactsRelationship(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "relationshipId" when calling putExternalcontactsRelationship';if(i==null)throw'Missing the required parameter "body" when calling putExternalcontactsRelationship';return this.apiClient.callApi("/api/v2/externalcontacts/relationships/{relationshipId}","PUT",{relationshipId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}},YA=class{constructor(e){this.apiClient=e||q.instance}deleteFaxDocument(e,i){if(i=i||{},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"],i.customHeaders)}getFaxDocument(e,i){if(i=i||{},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"],i.customHeaders)}getFaxDocumentContent(e,i){if(i=i||{},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"],i.customHeaders)}getFaxDocuments(e){return e=e||{},this.apiClient.callApi("/api/v2/fax/documents","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getFaxSettings(e){return e=e||{},this.apiClient.callApi("/api/v2/fax/settings","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getFaxSummary(e){return e=e||{},this.apiClient.callApi("/api/v2/fax/summary","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}putFaxDocument(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "documentId" when calling putFaxDocument';if(i==null)throw'Missing the required parameter "body" when calling putFaxDocument';return this.apiClient.callApi("/api/v2/fax/documents/{documentId}","PUT",{documentId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putFaxSettings(e){return e=e||{},this.apiClient.callApi("/api/v2/fax/settings","PUT",{},{},{},{},e.body,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}},XA=class{constructor(e){this.apiClient=e||q.instance}deleteAnalyticsFlowsAggregatesJob(e,i){if(i=i||{},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"],i.customHeaders)}getAnalyticsFlowsAggregatesJob(e,i){if(i=i||{},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"],i.customHeaders)}getAnalyticsFlowsAggregatesJobResults(e,i){if(i=i||{},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:i.cursor},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postAnalyticsFlowsActivityQuery(e,i){if(i=i||{},e==null)throw'Missing the required parameter "body" when calling postAnalyticsFlowsActivityQuery';return this.apiClient.callApi("/api/v2/analytics/flows/activity/query","POST",{},{pageSize:i.pageSize,pageNumber:i.pageNumber},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postAnalyticsFlowsAggregatesJobs(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsFlowsAggregatesQuery(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsFlowsObservationsQuery(e,i){if(i=i||{},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"],i.customHeaders)}},eb=class{constructor(e){this.apiClient=e||q.instance}deleteEmployeeperformanceExternalmetricsDefinition(e,i){if(i=i||{},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"],i.customHeaders)}deleteGamificationContest(e,i){if(i=i||{},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"],i.customHeaders)}getEmployeeperformanceExternalmetricsDefinition(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getGamificationContestAgentsScores(e,i){if(i=i||{},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:i.pageNumber,pageSize:i.pageSize,workday:i.workday,returnsView:i.returnsView},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getGamificationContestAgentsScoresMe(e,i){if(i=i||{},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:i.pageNumber,pageSize:i.pageSize,workday:i.workday,returnsView:i.returnsView},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getGamificationContestAgentsScoresTrends(e,i){if(i=i||{},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"],i.customHeaders)}getGamificationContestAgentsScoresTrendsMe(e,i){if(i=i||{},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"],i.customHeaders)}getGamificationContestPrizeimage(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "contestId" when calling getGamificationContestPrizeimage';if(i==null||i==="")throw'Missing the required parameter "prizeImageId" when calling getGamificationContestPrizeimage';return this.apiClient.callApi("/api/v2/gamification/contests/{contestId}/prizeimages/{prizeImageId}","GET",{contestId:e,prizeImageId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.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,i,n,a,r,s){if(s=s||{},e==null)throw'Missing the required parameter "filterType" when calling getGamificationInsights';if(i==null)throw'Missing the required parameter "filterId" when calling getGamificationInsights';if(n==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:i,granularity:n,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,i,n,a,r,s){if(s=s||{},e==null)throw'Missing the required parameter "filterType" when calling getGamificationInsightsDetails';if(i==null)throw'Missing the required parameter "filterId" when calling getGamificationInsightsDetails';if(n==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:i,granularity:n,comparativePeriodStartWorkday:a,primaryPeriodStartWorkday:r},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],s.customHeaders)}getGamificationInsightsGroupsTrends(e,i,n,a,r,s,o,l){if(l=l||{},e==null)throw'Missing the required parameter "filterType" when calling getGamificationInsightsGroupsTrends';if(i==null)throw'Missing the required parameter "filterId" when calling getGamificationInsightsGroupsTrends';if(n==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:i,granularity:n,comparativePeriodStartWorkday:a,comparativePeriodEndWorkday:r,primaryPeriodStartWorkday:s,primaryPeriodEndWorkday:o},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],l.customHeaders)}getGamificationInsightsGroupsTrendsAll(e,i,n,a,r,s,o,l){if(l=l||{},e==null)throw'Missing the required parameter "filterType" when calling getGamificationInsightsGroupsTrendsAll';if(i==null)throw'Missing the required parameter "filterId" when calling getGamificationInsightsGroupsTrendsAll';if(n==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:i,granularity:n,comparativePeriodStartWorkday:a,comparativePeriodEndWorkday:r,primaryPeriodStartWorkday:s,primaryPeriodEndWorkday:o},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],l.customHeaders)}getGamificationInsightsManagers(e,i,n,a,r){if(r=r||{},e==null)throw'Missing the required parameter "filterType" when calling getGamificationInsightsManagers';if(i==null)throw'Missing the required parameter "filterId" when calling getGamificationInsightsManagers';if(n==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:i,granularity:n,startWorkday:a,pageSize:r.pageSize,pageNumber:r.pageNumber},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}getGamificationInsightsMembers(e,i,n,a,r){if(r=r||{},e==null)throw'Missing the required parameter "filterType" when calling getGamificationInsightsMembers';if(i==null)throw'Missing the required parameter "filterId" when calling getGamificationInsightsMembers';if(n==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:i,granularity:n,startWorkday:a,reportsTo:r.reportsTo},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}getGamificationInsightsRankings(e,i,n,a,r,s,o){if(o=o||{},e==null)throw'Missing the required parameter "filterType" when calling getGamificationInsightsRankings';if(i==null)throw'Missing the required parameter "filterId" when calling getGamificationInsightsRankings';if(n==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:i,granularity:n,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,i,n,a,r,s,o,l){if(l=l||{},e==null)throw'Missing the required parameter "filterType" when calling getGamificationInsightsTrends';if(i==null)throw'Missing the required parameter "filterId" when calling getGamificationInsightsTrends';if(n==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:i,granularity:n,comparativePeriodStartWorkday:a,comparativePeriodEndWorkday:r,primaryPeriodStartWorkday:s,primaryPeriodEndWorkday:o},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],l.customHeaders)}getGamificationInsightsUserDetails(e,i,n,a,r,s,o){if(o=o||{},e==null||e==="")throw'Missing the required parameter "userId" when calling getGamificationInsightsUserDetails';if(i==null)throw'Missing the required parameter "filterType" when calling getGamificationInsightsUserDetails';if(n==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:i,filterId:n,granularity:a,comparativePeriodStartWorkday:r,primaryPeriodStartWorkday:s},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],o.customHeaders)}getGamificationInsightsUserTrends(e,i,n,a,r,s,o,l,u){if(u=u||{},e==null||e==="")throw'Missing the required parameter "userId" when calling getGamificationInsightsUserTrends';if(i==null)throw'Missing the required parameter "filterType" when calling getGamificationInsightsUserTrends';if(n==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:i,filterId:n,granularity:a,comparativePeriodStartWorkday:r,comparativePeriodEndWorkday:s,primaryPeriodStartWorkday:o,primaryPeriodEndWorkday:l},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],u.customHeaders)}getGamificationLeaderboard(e,i,n){if(n=n||{},e==null)throw'Missing the required parameter "startWorkday" when calling getGamificationLeaderboard';if(i==null)throw'Missing the required parameter "endWorkday" when calling getGamificationLeaderboard';return this.apiClient.callApi("/api/v2/gamification/leaderboard","GET",{},{startWorkday:e,endWorkday:i,metricId:n.metricId},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getGamificationLeaderboardAll(e,i,n,a,r){if(r=r||{},e==null)throw'Missing the required parameter "filterType" when calling getGamificationLeaderboardAll';if(i==null)throw'Missing the required parameter "filterId" when calling getGamificationLeaderboardAll';if(n==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:i,startWorkday:n,endWorkday:a,metricId:r.metricId},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}getGamificationLeaderboardAllBestpoints(e,i,n){if(n=n||{},e==null)throw'Missing the required parameter "filterType" when calling getGamificationLeaderboardAllBestpoints';if(i==null)throw'Missing the required parameter "filterId" when calling getGamificationLeaderboardAllBestpoints';return this.apiClient.callApi("/api/v2/gamification/leaderboard/all/bestpoints","GET",{},{filterType:e,filterId:i},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getGamificationProfileMembers(e,i){if(i=i||{},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"],i.customHeaders)}getGamificationProfileMetric(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "profileId" when calling getGamificationProfileMetric';if(i==null||i==="")throw'Missing the required parameter "metricId" when calling getGamificationProfileMetric';return this.apiClient.callApi("/api/v2/gamification/profiles/{profileId}/metrics/{metricId}","GET",{profileId:e,metricId:i},{workday:n.workday},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getGamificationProfileMetrics(e,i){if(i=i||{},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(i.expand,"multi"),workday:i.workday,metricIds:i.metricIds},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getGamificationProfileMetricsObjectivedetails(e,i){if(i=i||{},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:i.workday},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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:i.workday},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getGamificationScorecardsAttendance(e,i,n){if(n=n||{},e==null)throw'Missing the required parameter "startWorkday" when calling getGamificationScorecardsAttendance';if(i==null)throw'Missing the required parameter "endWorkday" when calling getGamificationScorecardsAttendance';return this.apiClient.callApi("/api/v2/gamification/scorecards/attendance","GET",{},{startWorkday:e,endWorkday:i},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.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,i){if(i=i||{},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"],i.customHeaders)}getGamificationScorecardsPointsAverage(e,i){if(i=i||{},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"],i.customHeaders)}getGamificationScorecardsPointsTrends(e,i,n){if(n=n||{},e==null)throw'Missing the required parameter "startWorkday" when calling getGamificationScorecardsPointsTrends';if(i==null)throw'Missing the required parameter "endWorkday" when calling getGamificationScorecardsPointsTrends';return this.apiClient.callApi("/api/v2/gamification/scorecards/points/trends","GET",{},{startWorkday:e,endWorkday:i,dayOfWeek:n.dayOfWeek},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getGamificationScorecardsProfileMetricUserValuesTrends(e,i,n,a,r,s){if(s=s||{},e==null||e==="")throw'Missing the required parameter "profileId" when calling getGamificationScorecardsProfileMetricUserValuesTrends';if(i==null||i==="")throw'Missing the required parameter "metricId" when calling getGamificationScorecardsProfileMetricUserValuesTrends';if(n==null||n==="")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:i,userId:n},{startWorkday:a,endWorkday:r,referenceWorkday:s.referenceWorkday,timeZone:s.timeZone},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],s.customHeaders)}getGamificationScorecardsProfileMetricUsersValuesTrends(e,i,n,a,r,s){if(s=s||{},e==null||e==="")throw'Missing the required parameter "profileId" when calling getGamificationScorecardsProfileMetricUsersValuesTrends';if(i==null||i==="")throw'Missing the required parameter "metricId" when calling getGamificationScorecardsProfileMetricUsersValuesTrends';if(n==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:i},{filterType:n,filterId:s.filterId,startWorkday:a,endWorkday:r,referenceWorkday:s.referenceWorkday,timeZone:s.timeZone},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],s.customHeaders)}getGamificationScorecardsProfileMetricValuesTrends(e,i,n,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "profileId" when calling getGamificationScorecardsProfileMetricValuesTrends';if(i==null||i==="")throw'Missing the required parameter "metricId" when calling getGamificationScorecardsProfileMetricValuesTrends';if(n==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:i},{filterType:r.filterType,startWorkday:n,endWorkday:a,referenceWorkday:r.referenceWorkday,timeZone:r.timeZone},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}getGamificationScorecardsUser(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling getGamificationScorecardsUser';if(i==null)throw'Missing the required parameter "workday" when calling getGamificationScorecardsUser';return this.apiClient.callApi("/api/v2/gamification/scorecards/users/{userId}","GET",{userId:e},{workday:i,expand:this.apiClient.buildCollectionParam(n.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getGamificationScorecardsUserAttendance(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "userId" when calling getGamificationScorecardsUserAttendance';if(i==null)throw'Missing the required parameter "startWorkday" when calling getGamificationScorecardsUserAttendance';if(n==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:i,endWorkday:n},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getGamificationScorecardsUserBestpoints(e,i){if(i=i||{},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"],i.customHeaders)}getGamificationScorecardsUserPointsAlltime(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling getGamificationScorecardsUserPointsAlltime';if(i==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:i},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getGamificationScorecardsUserPointsTrends(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "userId" when calling getGamificationScorecardsUserPointsTrends';if(i==null)throw'Missing the required parameter "startWorkday" when calling getGamificationScorecardsUserPointsTrends';if(n==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:i,endWorkday:n,dayOfWeek:a.dayOfWeek},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getGamificationScorecardsUserValuesTrends(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "userId" when calling getGamificationScorecardsUserValuesTrends';if(i==null)throw'Missing the required parameter "startWorkday" when calling getGamificationScorecardsUserValuesTrends';if(n==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:i,endWorkday:n,timeZone:a.timeZone},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getGamificationScorecardsUsersPointsAverage(e,i,n,a){if(a=a||{},e==null)throw'Missing the required parameter "filterType" when calling getGamificationScorecardsUsersPointsAverage';if(i==null)throw'Missing the required parameter "filterId" when calling getGamificationScorecardsUsersPointsAverage';if(n==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:i,workday:n},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getGamificationScorecardsUsersValuesAverage(e,i,n,a){if(a=a||{},e==null)throw'Missing the required parameter "filterType" when calling getGamificationScorecardsUsersValuesAverage';if(i==null)throw'Missing the required parameter "filterId" when calling getGamificationScorecardsUsersValuesAverage';if(n==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:i,workday:n,timeZone:a.timeZone},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getGamificationScorecardsUsersValuesTrends(e,i,n,a,r){if(r=r||{},e==null)throw'Missing the required parameter "filterType" when calling getGamificationScorecardsUsersValuesTrends';if(i==null)throw'Missing the required parameter "filterId" when calling getGamificationScorecardsUsersValuesTrends';if(n==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:i,startWorkday:n,endWorkday:a,timeZone:r.timeZone},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}getGamificationScorecardsValuesAverage(e,i){if(i=i||{},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:i.timeZone},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getGamificationScorecardsValuesTrends(e,i,n){if(n=n||{},e==null)throw'Missing the required parameter "startWorkday" when calling getGamificationScorecardsValuesTrends';if(i==null)throw'Missing the required parameter "endWorkday" when calling getGamificationScorecardsValuesTrends';return this.apiClient.callApi("/api/v2/gamification/scorecards/values/trends","GET",{},{filterType:n.filterType,referenceWorkday:n.referenceWorkday,startWorkday:e,endWorkday:i,timeZone:n.timeZone},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.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,i){if(i=i||{},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"],i.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,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "metricId" when calling patchEmployeeperformanceExternalmetricsDefinition';if(i==null)throw'Missing the required parameter "body" when calling patchEmployeeperformanceExternalmetricsDefinition';return this.apiClient.callApi("/api/v2/employeeperformance/externalmetrics/definitions/{metricId}","PATCH",{metricId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchGamificationContest(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "contestId" when calling patchGamificationContest';if(i==null)throw'Missing the required parameter "body" when calling patchGamificationContest';return this.apiClient.callApi("/api/v2/gamification/contests/{contestId}","PATCH",{contestId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.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,i){if(i=i||{},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"],i.customHeaders)}postGamificationContestsUploadsPrizeimages(e,i){if(i=i||{},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"],i.customHeaders)}postGamificationProfileActivate(e,i){if(i=i||{},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"],i.customHeaders)}postGamificationProfileDeactivate(e,i){if(i=i||{},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"],i.customHeaders)}postGamificationProfileMembers(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "profileId" when calling postGamificationProfileMembers';if(i==null)throw'Missing the required parameter "body" when calling postGamificationProfileMembers';return this.apiClient.callApi("/api/v2/gamification/profiles/{profileId}/members","POST",{profileId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postGamificationProfileMembersValidate(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "profileId" when calling postGamificationProfileMembersValidate';if(i==null)throw'Missing the required parameter "body" when calling postGamificationProfileMembersValidate';return this.apiClient.callApi("/api/v2/gamification/profiles/{profileId}/members/validate","POST",{profileId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postGamificationProfileMetricLink(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "sourceProfileId" when calling postGamificationProfileMetricLink';if(i==null||i==="")throw'Missing the required parameter "sourceMetricId" when calling postGamificationProfileMetricLink';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postGamificationProfileMetrics(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "profileId" when calling postGamificationProfileMetrics';if(i==null)throw'Missing the required parameter "body" when calling postGamificationProfileMetrics';return this.apiClient.callApi("/api/v2/gamification/profiles/{profileId}/metrics","POST",{profileId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postGamificationProfiles(e,i){if(i=i||{},e==null)throw'Missing the required parameter "body" when calling postGamificationProfiles';return this.apiClient.callApi("/api/v2/gamification/profiles","POST",{},{copyMetrics:i.copyMetrics},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postGamificationProfilesUserQuery(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling postGamificationProfilesUserQuery';if(i==null)throw'Missing the required parameter "body" when calling postGamificationProfilesUserQuery';return this.apiClient.callApi("/api/v2/gamification/profiles/users/{userId}/query","POST",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postGamificationProfilesUsersMeQuery(e,i){if(i=i||{},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"],i.customHeaders)}putGamificationContest(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "contestId" when calling putGamificationContest';if(i==null)throw'Missing the required parameter "body" when calling putGamificationContest';return this.apiClient.callApi("/api/v2/gamification/contests/{contestId}","PUT",{contestId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putGamificationProfile(e,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "profileId" when calling putGamificationProfile';return this.apiClient.callApi("/api/v2/gamification/profiles/{profileId}","PUT",{profileId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}putGamificationProfileMetric(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "profileId" when calling putGamificationProfileMetric';if(i==null||i==="")throw'Missing the required parameter "metricId" when calling putGamificationProfileMetric';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}putGamificationStatus(e,i){if(i=i||{},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"],i.customHeaders)}},ib=class{constructor(e){this.apiClient=e||q.instance}getGdprRequest(e,i){if(i=i||{},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"],i.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,i,n){if(n=n||{},e==null)throw'Missing the required parameter "searchType" when calling getGdprSubjects';if(i==null)throw'Missing the required parameter "searchValue" when calling getGdprSubjects';return this.apiClient.callApi("/api/v2/gdpr/subjects","GET",{},{searchType:e,searchValue:i},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postGdprRequests(e,i){if(i=i||{},e==null)throw'Missing the required parameter "body" when calling postGdprRequests';return this.apiClient.callApi("/api/v2/gdpr/requests","POST",{},{deleteConfirmed:i.deleteConfirmed},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}},nb=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,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling getUserGeolocation';if(i==null||i==="")throw'Missing the required parameter "clientId" when calling getUserGeolocation';return this.apiClient.callApi("/api/v2/users/{userId}/geolocations/{clientId}","GET",{userId:e,clientId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchGeolocationsSettings(e,i){if(i=i||{},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"],i.customHeaders)}patchUserGeolocation(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "userId" when calling patchUserGeolocation';if(i==null||i==="")throw'Missing the required parameter "clientId" when calling patchUserGeolocation';if(n==null)throw'Missing the required parameter "body" when calling patchUserGeolocation';return this.apiClient.callApi("/api/v2/users/{userId}/geolocations/{clientId}","PATCH",{userId:e,clientId:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}},tb=class{constructor(e){this.apiClient=e||q.instance}deleteGreeting(e,i){if(i=i||{},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"],i.customHeaders)}getGreeting(e,i){if(i=i||{},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"],i.customHeaders)}getGreetingDownloads(e,i){if(i=i||{},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:i.formatId},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getGreetingGroupsDownloads(e,i){if(i=i||{},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:i.formatId},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getGreetingMedia(e,i){if(i=i||{},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:i.formatId},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getGreetingUsersDownloads(e,i){if(i=i||{},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:i.formatId},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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:i.pageSize,pageNumber:i.pageNumber},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getGroupGreetingsDefaults(e,i){if(i=i||{},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"],i.customHeaders)}getUserGreetings(e,i){if(i=i||{},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:i.pageSize,pageNumber:i.pageNumber},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getUserGreetingsDefaults(e,i){if(i=i||{},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"],i.customHeaders)}postGreetings(e,i){if(i=i||{},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"],i.customHeaders)}postGroupGreetings(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "groupId" when calling postGroupGreetings';if(i==null)throw'Missing the required parameter "body" when calling postGroupGreetings';return this.apiClient.callApi("/api/v2/groups/{groupId}/greetings","POST",{groupId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postUserGreetings(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling postUserGreetings';if(i==null)throw'Missing the required parameter "body" when calling postUserGreetings';return this.apiClient.callApi("/api/v2/users/{userId}/greetings","POST",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putGreeting(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "greetingId" when calling putGreeting';if(i==null)throw'Missing the required parameter "body" when calling putGreeting';return this.apiClient.callApi("/api/v2/greetings/{greetingId}","PUT",{greetingId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putGreetingsDefaults(e,i){if(i=i||{},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"],i.customHeaders)}putGroupGreetingsDefaults(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "groupId" when calling putGroupGreetingsDefaults';if(i==null)throw'Missing the required parameter "body" when calling putGroupGreetingsDefaults';return this.apiClient.callApi("/api/v2/groups/{groupId}/greetings/defaults","PUT",{groupId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putUserGreetingsDefaults(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling putUserGreetingsDefaults';if(i==null)throw'Missing the required parameter "body" when calling putUserGreetingsDefaults';return this.apiClient.callApi("/api/v2/users/{userId}/greetings/defaults","PUT",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}},ab=class{constructor(e){this.apiClient=e||q.instance}deleteGroup(e,i){if(i=i||{},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"],i.customHeaders)}deleteGroupDynamicsettings(e,i){if(i=i||{},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"],i.customHeaders)}deleteGroupMembers(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "groupId" when calling deleteGroupMembers';if(i==null)throw'Missing the required parameter "ids" when calling deleteGroupMembers';return this.apiClient.callApi("/api/v2/groups/{groupId}/members","DELETE",{groupId:e},{ids:i},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getFieldconfig(e,i){if(i=i||{},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"],i.customHeaders)}getGroup(e,i){if(i=i||{},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"],i.customHeaders)}getGroupDynamicsettings(e,i){if(i=i||{},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"],i.customHeaders)}getGroupIndividuals(e,i){if(i=i||{},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"],i.customHeaders)}getGroupMembers(e,i){if(i=i||{},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:i.pageSize,pageNumber:i.pageNumber,sortOrder:i.sortOrder,expand:this.apiClient.buildCollectionParam(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getGroupProfile(e,i){if(i=i||{},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:i.fields},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "groupId" when calling postGroupMembers';if(i==null)throw'Missing the required parameter "body" when calling postGroupMembers';return this.apiClient.callApi("/api/v2/groups/{groupId}/members","POST",{groupId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postGroups(e,i){if(i=i||{},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"],i.customHeaders)}postGroupsDynamicsettingsPreview(e,i){if(i=i||{},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"],i.customHeaders)}postGroupsSearch(e,i){if(i=i||{},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"],i.customHeaders)}putGroup(e,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "groupId" when calling putGroup';return this.apiClient.callApi("/api/v2/groups/{groupId}","PUT",{groupId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}putGroupDynamicsettings(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "groupId" when calling putGroupDynamicsettings';if(i==null)throw'Missing the required parameter "body" when calling putGroupDynamicsettings';return this.apiClient.callApi("/api/v2/groups/{groupId}/dynamicsettings","PUT",{groupId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}},rb=class{constructor(e){this.apiClient=e||q.instance}deleteIdentityprovider(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}putIdentityprovider(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "providerId" when calling putIdentityprovider';if(i==null)throw'Missing the required parameter "body" when calling putIdentityprovider';return this.apiClient.callApi("/api/v2/identityproviders/{providerId}","PUT",{providerId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putIdentityprovidersAdfs(e,i){if(i=i||{},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"],i.customHeaders)}putIdentityprovidersCic(e,i){if(i=i||{},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"],i.customHeaders)}putIdentityprovidersGeneric(e,i){if(i=i||{},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"],i.customHeaders)}putIdentityprovidersGsuite(e,i){if(i=i||{},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"],i.customHeaders)}putIdentityprovidersIdentitynow(e,i){if(i=i||{},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"],i.customHeaders)}putIdentityprovidersOkta(e,i){if(i=i||{},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"],i.customHeaders)}putIdentityprovidersOnelogin(e,i){if(i=i||{},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"],i.customHeaders)}putIdentityprovidersPing(e,i){if(i=i||{},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"],i.customHeaders)}putIdentityprovidersPurecloud(e,i){if(i=i||{},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"],i.customHeaders)}putIdentityprovidersPureengage(e,i){if(i=i||{},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"],i.customHeaders)}putIdentityprovidersSalesforce(e,i){if(i=i||{},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"],i.customHeaders)}},sb=class{constructor(e){this.apiClient=e||q.instance}getInfrastructureascodeAccelerator(e,i){if(i=i||{},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:i.preferredLanguage},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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:i.details},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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"],i.customHeaders)}},ob=class{constructor(e){this.apiClient=e||q.instance}deleteIntegration(e,i){if(i=i||{},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"],i.customHeaders)}deleteIntegrationsAction(e,i){if(i=i||{},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"],i.customHeaders)}deleteIntegrationsActionDraft(e,i){if(i=i||{},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"],i.customHeaders)}deleteIntegrationsCredential(e,i){if(i=i||{},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"],i.customHeaders)}getIntegration(e,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "integrationId" when calling getIntegration';return this.apiClient.callApi("/api/v2/integrations/{integrationId}","GET",{integrationId:e},{pageSize:i.pageSize,pageNumber:i.pageNumber,sortBy:i.sortBy,expand:this.apiClient.buildCollectionParam(i.expand,"multi"),nextPage:i.nextPage,previousPage:i.previousPage},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getIntegrationConfigCurrent(e,i){if(i=i||{},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"],i.customHeaders)}getIntegrations(e){return e=e||{},this.apiClient.callApi("/api/v2/integrations","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,sortBy:e.sortBy,expand:this.apiClient.buildCollectionParam(e.expand,"multi"),nextPage:e.nextPage,previousPage:e.previousPage,ids:this.apiClient.buildCollectionParam(e.ids,"multi"),integrationType:e.integrationType,reportedState:e.reportedState},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getIntegrationsAction(e,i){if(i=i||{},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:i.expand,flatten:i.flatten,includeConfig:i.includeConfig},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getIntegrationsActionDraft(e,i){if(i=i||{},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:i.expand,flatten:i.flatten,includeConfig:i.includeConfig},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getIntegrationsActionDraftFunction(e,i){if(i=i||{},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"],i.customHeaders)}getIntegrationsActionDraftSchema(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "actionId" when calling getIntegrationsActionDraftSchema';if(i==null||i==="")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:i},{flatten:n.flatten},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getIntegrationsActionDraftTemplate(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "actionId" when calling getIntegrationsActionDraftTemplate';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["text/plain"],n.customHeaders)}getIntegrationsActionDraftValidation(e,i){if(i=i||{},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"],i.customHeaders)}getIntegrationsActionFunction(e,i){if(i=i||{},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"],i.customHeaders)}getIntegrationsActionSchema(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "actionId" when calling getIntegrationsActionSchema';if(i==null||i==="")throw'Missing the required parameter "fileName" when calling getIntegrationsActionSchema';return this.apiClient.callApi("/api/v2/integrations/actions/{actionId}/schemas/{fileName}","GET",{actionId:e,fileName:i},{flatten:n.flatten},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getIntegrationsActionTemplate(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "actionId" when calling getIntegrationsActionTemplate';if(i==null||i==="")throw'Missing the required parameter "fileName" when calling getIntegrationsActionTemplate';return this.apiClient.callApi("/api/v2/integrations/actions/{actionId}/templates/{fileName}","GET",{actionId:e,fileName:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["text/plain"],n.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,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "integrationId" when calling getIntegrationsBotconnectorBot';if(i==null||i==="")throw'Missing the required parameter "botId" when calling getIntegrationsBotconnectorBot';return this.apiClient.callApi("/api/v2/integrations/botconnectors/{integrationId}/bots/{botId}","GET",{integrationId:e,botId:i},{version:n.version},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getIntegrationsBotconnectorBots(e,i){if(i=i||{},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:i.pageNumber,pageSize:i.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getIntegrationsBotconnectorBotsSummaries(e,i){if(i=i||{},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:i.pageNumber,pageSize:i.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getIntegrationsBotconnectorIntegrationIdBot(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "integrationId" when calling getIntegrationsBotconnectorIntegrationIdBot';if(i==null||i==="")throw'Missing the required parameter "botId" when calling getIntegrationsBotconnectorIntegrationIdBot';return this.apiClient.callApi("/api/v2/integrations/botconnector/{integrationId}/bots/{botId}","GET",{integrationId:e,botId:i},{version:n.version},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getIntegrationsBotconnectorIntegrationIdBotVersions(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "integrationId" when calling getIntegrationsBotconnectorIntegrationIdBotVersions';if(i==null||i==="")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:i},{pageNumber:n.pageNumber,pageSize:n.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getIntegrationsBotconnectorIntegrationIdBots(e,i){if(i=i||{},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"],i.customHeaders)}getIntegrationsBotconnectorIntegrationIdBotsSummaries(e,i){if(i=i||{},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:i.pageNumber,pageSize:i.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getIntegrationsClientapps(e){return e=e||{},this.apiClient.callApi("/api/v2/integrations/clientapps","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,sortBy:e.sortBy,expand:this.apiClient.buildCollectionParam(e.expand,"multi"),nextPage:e.nextPage,previousPage:e.previousPage},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getIntegrationsClientappsUnifiedcommunications(e){return e=e||{},this.apiClient.callApi("/api/v2/integrations/clientapps/unifiedcommunications","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,sortBy:e.sortBy,expand:this.apiClient.buildCollectionParam(e.expand,"multi"),nextPage:e.nextPage,previousPage:e.previousPage},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getIntegrationsCredential(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getIntegrationsSpeechDialogflowAgent(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getIntegrationsSpeechLexBotBotIdAliases(e,i){if(i=i||{},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:i.pageNumber,pageSize:i.pageSize,status:i.status,name:i.name},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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"],i.customHeaders)}getIntegrationsSpeechLexv2BotBotIdAliases(e,i){if(i=i||{},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:i.pageNumber,pageSize:i.pageSize,status:i.status,name:i.name},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "nuanceIntegrationId" when calling getIntegrationsSpeechNuanceNuanceIntegrationIdBot';if(i==null||i==="")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:i},{expand:this.apiClient.buildCollectionParam(n.expand,"multi"),targetChannel:n.targetChannel},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getIntegrationsSpeechNuanceNuanceIntegrationIdBotJob(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "nuanceIntegrationId" when calling getIntegrationsSpeechNuanceNuanceIntegrationIdBotJob';if(i==null||i==="")throw'Missing the required parameter "botId" when calling getIntegrationsSpeechNuanceNuanceIntegrationIdBotJob';if(n==null||n==="")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:i,jobId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getIntegrationsSpeechNuanceNuanceIntegrationIdBotJobResults(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "nuanceIntegrationId" when calling getIntegrationsSpeechNuanceNuanceIntegrationIdBotJobResults';if(i==null||i==="")throw'Missing the required parameter "botId" when calling getIntegrationsSpeechNuanceNuanceIntegrationIdBotJobResults';if(n==null||n==="")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:i,jobId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getIntegrationsSpeechNuanceNuanceIntegrationIdBots(e,i){if(i=i||{},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:i.pageNumber,pageSize:i.pageSize,onlyRegisteredBots:i.onlyRegisteredBots},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getIntegrationsSpeechNuanceNuanceIntegrationIdBotsJob(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "nuanceIntegrationId" when calling getIntegrationsSpeechNuanceNuanceIntegrationIdBotsJob';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getIntegrationsSpeechNuanceNuanceIntegrationIdBotsJobResults(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "nuanceIntegrationId" when calling getIntegrationsSpeechNuanceNuanceIntegrationIdBotsJobResults';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getIntegrationsSpeechSttEngine(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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:i.includeVoices},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getIntegrationsSpeechTtsEngineVoice(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "engineId" when calling getIntegrationsSpeechTtsEngineVoice';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getIntegrationsSpeechTtsEngineVoices(e,i){if(i=i||{},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:i.pageNumber,pageSize:i.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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"],i.customHeaders)}getIntegrationsTypeConfigschema(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "typeId" when calling getIntegrationsTypeConfigschema';if(i==null||i==="")throw'Missing the required parameter "configType" when calling getIntegrationsTypeConfigschema';return this.apiClient.callApi("/api/v2/integrations/types/{typeId}/configschemas/{configType}","GET",{typeId:e,configType:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "integrationId" when calling patchIntegration';return this.apiClient.callApi("/api/v2/integrations/{integrationId}","PATCH",{integrationId:e},{pageSize:i.pageSize,pageNumber:i.pageNumber,sortBy:i.sortBy,expand:this.apiClient.buildCollectionParam(i.expand,"multi"),nextPage:i.nextPage,previousPage:i.previousPage},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}patchIntegrationsAction(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "actionId" when calling patchIntegrationsAction';if(i==null)throw'Missing the required parameter "body" when calling patchIntegrationsAction';return this.apiClient.callApi("/api/v2/integrations/actions/{actionId}","PATCH",{actionId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchIntegrationsActionDraft(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "actionId" when calling patchIntegrationsActionDraft';if(i==null)throw'Missing the required parameter "body" when calling patchIntegrationsActionDraft';return this.apiClient.callApi("/api/v2/integrations/actions/{actionId}/draft","PATCH",{actionId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.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,i){if(i=i||{},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"],i.customHeaders)}postIntegrationsActionDraftFunctionUpload(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "actionId" when calling postIntegrationsActionDraftFunctionUpload';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postIntegrationsActionDraftPublish(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "actionId" when calling postIntegrationsActionDraftPublish';if(i==null)throw'Missing the required parameter "body" when calling postIntegrationsActionDraftPublish';return this.apiClient.callApi("/api/v2/integrations/actions/{actionId}/draft/publish","POST",{actionId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postIntegrationsActionDraftTest(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "actionId" when calling postIntegrationsActionDraftTest';if(i==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:n.flatten},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postIntegrationsActionExecute(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "actionId" when calling postIntegrationsActionExecute';if(i==null)throw'Missing the required parameter "body" when calling postIntegrationsActionExecute';return this.apiClient.callApi("/api/v2/integrations/actions/{actionId}/execute","POST",{actionId:e},{flatten:n.flatten},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postIntegrationsActionTest(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "actionId" when calling postIntegrationsActionTest';if(i==null)throw'Missing the required parameter "body" when calling postIntegrationsActionTest';return this.apiClient.callApi("/api/v2/integrations/actions/{actionId}/test","POST",{actionId:e},{flatten:n.flatten},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postIntegrationsActions(e,i){if(i=i||{},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"],i.customHeaders)}postIntegrationsActionsDrafts(e,i){if(i=i||{},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"],i.customHeaders)}postIntegrationsBotconnectorsIncomingMessages(e,i){if(i=i||{},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"],i.customHeaders)}postIntegrationsBotconnectorsOutgoingMessages(e,i){if(i=i||{},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"],i.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,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "nuanceIntegrationId" when calling postIntegrationsSpeechNuanceNuanceIntegrationIdBotJobs';if(i==null||i==="")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:i},{expand:this.apiClient.buildCollectionParam(n.expand,"multi")},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postIntegrationsSpeechNuanceNuanceIntegrationIdBotsJobs(e,i){if(i=i||{},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:i.pageNumber,pageSize:i.pageSize,onlyRegisteredBots:i.onlyRegisteredBots},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postIntegrationsSpeechNuanceNuanceIntegrationIdBotsLaunchValidate(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "nuanceIntegrationId" when calling postIntegrationsSpeechNuanceNuanceIntegrationIdBotsLaunchValidate';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postIntegrationsWebhookEvents(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "tokenId" when calling postIntegrationsWebhookEvents';if(i==null)throw'Missing the required parameter "body" when calling postIntegrationsWebhookEvents';return this.apiClient.callApi("/api/v2/integrations/webhooks/{tokenId}/events","POST",{tokenId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putIntegrationConfigCurrent(e,i){if(i=i||{},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},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}putIntegrationsActionDraftFunction(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "actionId" when calling putIntegrationsActionDraftFunction';if(i==null)throw'Missing the required parameter "body" when calling putIntegrationsActionDraftFunction';return this.apiClient.callApi("/api/v2/integrations/actions/{actionId}/draft/function","PUT",{actionId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putIntegrationsBotconnectorIntegrationIdBots(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "integrationId" when calling putIntegrationsBotconnectorIntegrationIdBots';if(i==null)throw'Missing the required parameter "botList" when calling putIntegrationsBotconnectorIntegrationIdBots';return this.apiClient.callApi("/api/v2/integrations/botconnector/{integrationId}/bots","PUT",{integrationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putIntegrationsCredential(e,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "credentialId" when calling putIntegrationsCredential';return this.apiClient.callApi("/api/v2/integrations/credentials/{credentialId}","PUT",{credentialId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}putIntegrationsSpeechNuanceNuanceIntegrationIdBotsLaunchSettings(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "nuanceIntegrationId" when calling putIntegrationsSpeechNuanceNuanceIntegrationIdBotsLaunchSettings';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putIntegrationsSpeechTtsSettings(e,i){if(i=i||{},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"],i.customHeaders)}putIntegrationsUnifiedcommunicationThirdpartypresences(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "ucIntegrationId" when calling putIntegrationsUnifiedcommunicationThirdpartypresences';if(i==null)throw'Missing the required parameter "body" when calling putIntegrationsUnifiedcommunicationThirdpartypresences';return this.apiClient.callApi("/api/v2/integrations/unifiedcommunications/{ucIntegrationId}/thirdpartypresences","PUT",{ucIntegrationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}},lb=class{constructor(e){this.apiClient=e||q.instance}deleteIntentsCategory(e,i){if(i=i||{},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"],i.customHeaders)}deleteIntentsCustomerintent(e,i){if(i=i||{},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"],i.customHeaders)}getIntentsAssignmentsExternalcontact(e,i){if(i=i||{},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:i.pageSize,pageNumber:i.pageNumber},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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"],i.customHeaders)}getIntentsCustomerintent(e,i){if(i=i||{},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"],i.customHeaders)}getIntentsCustomerintentSourceintents(e,i){if(i=i||{},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:i.pageSize,pageNumber:i.pageNumber,queryValue:i.queryValue},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "categoryId" when calling patchIntentsCategory';if(i==null)throw'Missing the required parameter "body" when calling patchIntentsCategory';return this.apiClient.callApi("/api/v2/intents/categories/{categoryId}","PATCH",{categoryId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchIntentsCustomerintent(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "customerIntentId" when calling patchIntentsCustomerintent';if(i==null)throw'Missing the required parameter "body" when calling patchIntentsCustomerintent';return this.apiClient.callApi("/api/v2/intents/customerintents/{customerIntentId}","PATCH",{customerIntentId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postIntentsAssignmentsExternalcontactCustomerintentAssignment(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "externalContactId" when calling postIntentsAssignmentsExternalcontactCustomerintentAssignment';if(i==null||i==="")throw'Missing the required parameter "customerIntentId" when calling postIntentsAssignmentsExternalcontactCustomerintentAssignment';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postIntentsCategories(e,i){if(i=i||{},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"],i.customHeaders)}postIntentsCustomerintentSourceintentsBulkAdd(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "customerIntentId" when calling postIntentsCustomerintentSourceintentsBulkAdd';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postIntentsCustomerintentSourceintentsBulkRemove(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "customerIntentId" when calling postIntentsCustomerintentSourceintentsBulkRemove';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postIntentsCustomerintents(e,i){if(i=i||{},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"],i.customHeaders)}},ub=class{constructor(e){this.apiClient=e||q.instance}deleteAnalyticsJourneysAggregatesJob(e,i){if(i=i||{},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"],i.customHeaders)}deleteJourneyActionmap(e,i){if(i=i||{},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"],i.customHeaders)}deleteJourneyActiontemplate(e,i){if(i=i||{},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:i.hardDelete},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}deleteJourneyExternaleventsConfiguration(e,i){if(i=i||{},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"],i.customHeaders)}deleteJourneyExternaleventsSchema(e,i){if(i=i||{},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"],i.customHeaders)}deleteJourneyOutcome(e,i){if(i=i||{},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"],i.customHeaders)}deleteJourneyOutcomesPredictor(e,i){if(i=i||{},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"],i.customHeaders)}deleteJourneySegment(e,i){if(i=i||{},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"],i.customHeaders)}deleteJourneyView(e,i){if(i=i||{},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"],i.customHeaders)}deleteJourneyViewSchedules(e,i){if(i=i||{},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"],i.customHeaders)}getAnalyticsJourneysAggregatesJob(e,i){if(i=i||{},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"],i.customHeaders)}getAnalyticsJourneysAggregatesJobResults(e,i){if(i=i||{},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:i.cursor},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getExternalcontactsContactJourneySegments(e,i){if(i=i||{},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:i.includeMerged,limit:i.limit},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getExternalcontactsContactJourneySessions(e,i){if(i=i||{},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:i.pageSize,after:i.after,includeMerged:i.includeMerged},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getJourneyActionmap(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getJourneyActionmapsEstimatesJobResults(e,i){if(i=i||{},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"],i.customHeaders)}getJourneyActiontarget(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "deploymentId" when calling getJourneyDeploymentCustomerPing';if(i==null||i==="")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:i},{dl:n.dl,dt:n.dt,appNamespace:n.appNamespace,sessionId:n.sessionId,sinceLastBeaconMilliseconds:n.sinceLastBeaconMilliseconds},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getJourneyExternaleventsConfiguration(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getJourneyExternaleventsSchemaVersion(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "schemaId" when calling getJourneyExternaleventsSchemaVersion';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getJourneyExternaleventsSchemaVersions(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getJourneyOutcomesAttributionsJobResults(e,i){if(i=i||{},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"],i.customHeaders)}getJourneyOutcomesPredictor(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getJourneySessionEvents(e,i){if(i=i||{},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:i.pageSize,after:i.after,eventType:i.eventType},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getJourneySessionOutcomescores(e,i){if(i=i||{},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"],i.customHeaders)}getJourneyView(e,i){if(i=i||{},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"],i.customHeaders)}getJourneyViewSchedules(e,i){if(i=i||{},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"],i.customHeaders)}getJourneyViewVersion(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "viewId" when calling getJourneyViewVersion';if(i==null||i==="")throw'Missing the required parameter "versionId" when calling getJourneyViewVersion';return this.apiClient.callApi("/api/v2/journey/views/{viewId}/versions/{versionId}","GET",{viewId:e,versionId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getJourneyViewVersionChart(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "viewId" when calling getJourneyViewVersionChart';if(i==null||i==="")throw'Missing the required parameter "journeyViewVersion" when calling getJourneyViewVersionChart';if(n==null||n==="")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:i,chartId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getJourneyViewVersionChartVersion(e,i,n,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "viewId" when calling getJourneyViewVersionChartVersion';if(i==null||i==="")throw'Missing the required parameter "journeyViewVersion" when calling getJourneyViewVersionChartVersion';if(n==null||n==="")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:i,chartId:n,chartVersion:a},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}getJourneyViewVersionJob(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "viewId" when calling getJourneyViewVersionJob';if(i==null||i==="")throw'Missing the required parameter "journeyVersionId" when calling getJourneyViewVersionJob';if(n==null||n==="")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:i,jobId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getJourneyViewVersionJobResults(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "viewId" when calling getJourneyViewVersionJobResults';if(i==null||i==="")throw'Missing the required parameter "journeyViewVersion" when calling getJourneyViewVersionJobResults';if(n==null||n==="")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:i,jobId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getJourneyViewVersionJobResultsChart(e,i,n,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "viewId" when calling getJourneyViewVersionJobResultsChart';if(i==null||i==="")throw'Missing the required parameter "journeyVersionId" when calling getJourneyViewVersionJobResultsChart';if(n==null||n==="")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:i,jobId:n,chartId:a},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}getJourneyViewVersionJobsLatest(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "viewId" when calling getJourneyViewVersionJobsLatest';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.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,i){if(i=i||{},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"],i.customHeaders)}getJourneyViewsEventdefinitions(e){return e=e||{},this.apiClient.callApi("/api/v2/journey/views/eventdefinitions","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getJourneyViewsJobs(e){return e=e||{},this.apiClient.callApi("/api/v2/journey/views/jobs","GET",{},{pageNumber:e.pageNumber,pageSize:e.pageSize,interval:e.interval,statuses:e.statuses},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getJourneyViewsJobsMe(e){return e=e||{},this.apiClient.callApi("/api/v2/journey/views/jobs/me","GET",{},{pageNumber:e.pageNumber,pageSize:e.pageSize,interval:e.interval,statuses:e.statuses},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getJourneyViewsSchedules(e){return e=e||{},this.apiClient.callApi("/api/v2/journey/views/schedules","GET",{},{pageNumber:e.pageNumber,pageSize:e.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}patchJourneyActionmap(e,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "actionMapId" when calling patchJourneyActionmap';return this.apiClient.callApi("/api/v2/journey/actionmaps/{actionMapId}","PATCH",{actionMapId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}patchJourneyActiontarget(e,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "actionTargetId" when calling patchJourneyActiontarget';return this.apiClient.callApi("/api/v2/journey/actiontargets/{actionTargetId}","PATCH",{actionTargetId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}patchJourneyActiontemplate(e,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "actionTemplateId" when calling patchJourneyActiontemplate';return this.apiClient.callApi("/api/v2/journey/actiontemplates/{actionTemplateId}","PATCH",{actionTemplateId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}patchJourneyExternaleventsConfiguration(e,i){if(i=i||{},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},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}patchJourneyOutcome(e,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "outcomeId" when calling patchJourneyOutcome';return this.apiClient.callApi("/api/v2/journey/outcomes/{outcomeId}","PATCH",{outcomeId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}patchJourneySegment(e,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "segmentId" when calling patchJourneySegment';return this.apiClient.callApi("/api/v2/journey/segments/{segmentId}","PATCH",{segmentId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}patchJourneyViewVersionJob(e,i,n,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "viewId" when calling patchJourneyViewVersionJob';if(i==null||i==="")throw'Missing the required parameter "journeyVersionId" when calling patchJourneyViewVersionJob';if(n==null||n==="")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:i,jobId:n},{},{},{},a,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}postAnalyticsJourneysAggregatesJobs(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsJourneysAggregatesQuery(e,i){if(i=i||{},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"],i.customHeaders)}postExternalcontactsContactJourneySegments(e,i){if(i=i||{},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},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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"],i.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,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "deploymentId" when calling postJourneyDeploymentActionevent';if(i==null)throw'Missing the required parameter "body" when calling postJourneyDeploymentActionevent';return this.apiClient.callApi("/api/v2/journey/deployments/{deploymentId}/actionevent","POST",{deploymentId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postJourneyDeploymentAppevents(e,i){if(i=i||{},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},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postJourneyDeploymentWebevents(e,i){if(i=i||{},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},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postJourneyExternaleventsConfigurationEvents(e,i){if(i=i||{},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},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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"],i.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,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "viewId" when calling postJourneyViewSchedules';if(i==null)throw'Missing the required parameter "body" when calling postJourneyViewSchedules';return this.apiClient.callApi("/api/v2/journey/views/{viewId}/schedules","POST",{viewId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postJourneyViewVersionJobs(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "viewId" when calling postJourneyViewVersionJobs';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postJourneyViewVersions(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "viewId" when calling postJourneyViewVersions';if(i==null)throw'Missing the required parameter "body" when calling postJourneyViewVersions';return this.apiClient.callApi("/api/v2/journey/views/{viewId}/versions","POST",{viewId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postJourneyViews(e,i){if(i=i||{},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"],i.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,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "schemaId" when calling putJourneyExternaleventsSchema';if(i==null)throw'Missing the required parameter "body" when calling putJourneyExternaleventsSchema';return this.apiClient.callApi("/api/v2/journey/externalevents/schemas/{schemaId}","PUT",{schemaId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putJourneyViewSchedules(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "viewId" when calling putJourneyViewSchedules';if(i==null)throw'Missing the required parameter "body" when calling putJourneyViewSchedules';return this.apiClient.callApi("/api/v2/journey/views/{viewId}/schedules","PUT",{viewId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putJourneyViewVersion(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "viewId" when calling putJourneyViewVersion';if(i==null||i==="")throw'Missing the required parameter "versionId" when calling putJourneyViewVersion';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}},cb=class{constructor(e){this.apiClient=e||q.instance}deleteKnowledgeConnection(e,i){if(i=i||{},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"],i.customHeaders)}deleteKnowledgeKnowledgebase(e,i){if(i=i||{},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"],i.customHeaders)}deleteKnowledgeKnowledgebaseCategory(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling deleteKnowledgeKnowledgebaseCategory';if(i==null||i==="")throw'Missing the required parameter "categoryId" when calling deleteKnowledgeKnowledgebaseCategory';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/categories/{categoryId}","DELETE",{knowledgeBaseId:e,categoryId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteKnowledgeKnowledgebaseDocument(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling deleteKnowledgeKnowledgebaseDocument';if(i==null||i==="")throw'Missing the required parameter "documentId" when calling deleteKnowledgeKnowledgebaseDocument';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/documents/{documentId}","DELETE",{knowledgeBaseId:e,documentId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteKnowledgeKnowledgebaseDocumentVariation(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "documentVariationId" when calling deleteKnowledgeKnowledgebaseDocumentVariation';if(i==null||i==="")throw'Missing the required parameter "documentId" when calling deleteKnowledgeKnowledgebaseDocumentVariation';if(n==null||n==="")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:i,knowledgeBaseId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}deleteKnowledgeKnowledgebaseExportJob(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling deleteKnowledgeKnowledgebaseExportJob';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteKnowledgeKnowledgebaseImportJob(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling deleteKnowledgeKnowledgebaseImportJob';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteKnowledgeKnowledgebaseLabel(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling deleteKnowledgeKnowledgebaseLabel';if(i==null||i==="")throw'Missing the required parameter "labelId" when calling deleteKnowledgeKnowledgebaseLabel';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/labels/{labelId}","DELETE",{knowledgeBaseId:e,labelId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteKnowledgeKnowledgebaseSourcesSalesforceSourceId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling deleteKnowledgeKnowledgebaseSourcesSalesforceSourceId';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteKnowledgeKnowledgebaseSourcesServicenowSourceId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling deleteKnowledgeKnowledgebaseSourcesServicenowSourceId';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteKnowledgeKnowledgebaseSynchronizeJob(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling deleteKnowledgeKnowledgebaseSynchronizeJob';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteKnowledgeSetting(e,i){if(i=i||{},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"],i.customHeaders)}deleteKnowledgeSource(e,i){if(i=i||{},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"],i.customHeaders)}getKnowledgeConnection(e,i){if(i=i||{},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(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getKnowledgeConnectionOptions(e,i){if(i=i||{},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:i.after,pageSize:i.pageSize,parentId:i.parentId},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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:i.before,after:i.after,pageSize:i.pageSize,parentId:i.parentId,isRoot:i.isRoot,name:i.name,sortBy:i.sortBy,expand:i.expand,includeDocumentCount:i.includeDocumentCount},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getKnowledgeGuestSessionDocument(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "sessionId" when calling getKnowledgeGuestSessionDocument';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getKnowledgeGuestSessionDocuments(e,i){if(i=i||{},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(i.categoryId,"multi"),pageSize:i.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getKnowledgeIntegrationOptions(e,i){if(i=i||{},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(i.knowledgeBaseIds,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getKnowledgeKnowledgebase(e,i){if(i=i||{},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"],i.customHeaders)}getKnowledgeKnowledgebaseCategories(e,i){if(i=i||{},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:i.before,after:i.after,pageSize:i.pageSize,parentId:i.parentId,isRoot:i.isRoot,name:i.name,sortBy:i.sortBy,expand:i.expand,includeDocumentCount:i.includeDocumentCount},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getKnowledgeKnowledgebaseCategory(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling getKnowledgeKnowledgebaseCategory';if(i==null||i==="")throw'Missing the required parameter "categoryId" when calling getKnowledgeKnowledgebaseCategory';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/categories/{categoryId}","GET",{knowledgeBaseId:e,categoryId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getKnowledgeKnowledgebaseDocument(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling getKnowledgeKnowledgebaseDocument';if(i==null||i==="")throw'Missing the required parameter "documentId" when calling getKnowledgeKnowledgebaseDocument';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/documents/{documentId}","GET",{knowledgeBaseId:e,documentId:i},{expand:this.apiClient.buildCollectionParam(n.expand,"multi"),state:n.state},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getKnowledgeKnowledgebaseDocumentFeedback(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling getKnowledgeKnowledgebaseDocumentFeedback';if(i==null||i==="")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:i},{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)}getKnowledgeKnowledgebaseDocumentFeedbackFeedbackId(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling getKnowledgeKnowledgebaseDocumentFeedbackFeedbackId';if(i==null||i==="")throw'Missing the required parameter "documentId" when calling getKnowledgeKnowledgebaseDocumentFeedbackFeedbackId';if(n==null||n==="")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:i,feedbackId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getKnowledgeKnowledgebaseDocumentVariation(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "documentVariationId" when calling getKnowledgeKnowledgebaseDocumentVariation';if(i==null||i==="")throw'Missing the required parameter "documentId" when calling getKnowledgeKnowledgebaseDocumentVariation';if(n==null||n==="")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:i,knowledgeBaseId:n},{documentState:a.documentState,expand:this.apiClient.buildCollectionParam(a.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getKnowledgeKnowledgebaseDocumentVariations(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling getKnowledgeKnowledgebaseDocumentVariations';if(i==null||i==="")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:i},{before:n.before,after:n.after,pageSize:n.pageSize,documentState:n.documentState,expand:this.apiClient.buildCollectionParam(n.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getKnowledgeKnowledgebaseDocumentVersion(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling getKnowledgeKnowledgebaseDocumentVersion';if(i==null||i==="")throw'Missing the required parameter "documentId" when calling getKnowledgeKnowledgebaseDocumentVersion';if(n==null||n==="")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:i,versionId:n},{expand:this.apiClient.buildCollectionParam(a.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getKnowledgeKnowledgebaseDocumentVersionVariation(e,i,n,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling getKnowledgeKnowledgebaseDocumentVersionVariation';if(i==null||i==="")throw'Missing the required parameter "documentId" when calling getKnowledgeKnowledgebaseDocumentVersionVariation';if(n==null||n==="")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:i,versionId:n,variationId:a},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}getKnowledgeKnowledgebaseDocumentVersionVariations(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling getKnowledgeKnowledgebaseDocumentVersionVariations';if(i==null||i==="")throw'Missing the required parameter "documentId" when calling getKnowledgeKnowledgebaseDocumentVersionVariations';if(n==null||n==="")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:i,versionId:n},{before:a.before,after:a.after,pageSize:a.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getKnowledgeKnowledgebaseDocumentVersions(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling getKnowledgeKnowledgebaseDocumentVersions';if(i==null||i==="")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:i},{before:n.before,after:n.after,pageSize:n.pageSize,expand:this.apiClient.buildCollectionParam(n.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getKnowledgeKnowledgebaseDocuments(e,i){if(i=i||{},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:i.before,after:i.after,pageSize:i.pageSize,interval:i.interval,documentId:this.apiClient.buildCollectionParam(i.documentId,"multi"),categoryId:this.apiClient.buildCollectionParam(i.categoryId,"multi"),includeSubcategories:i.includeSubcategories,includeDrafts:i.includeDrafts,labelIds:this.apiClient.buildCollectionParam(i.labelIds,"multi"),expand:this.apiClient.buildCollectionParam(i.expand,"multi"),externalIds:this.apiClient.buildCollectionParam(i.externalIds,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getKnowledgeKnowledgebaseExportJob(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling getKnowledgeKnowledgebaseExportJob';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getKnowledgeKnowledgebaseImportJob(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling getKnowledgeKnowledgebaseImportJob';if(i==null||i==="")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:i},{expand:this.apiClient.buildCollectionParam(n.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getKnowledgeKnowledgebaseLabel(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling getKnowledgeKnowledgebaseLabel';if(i==null||i==="")throw'Missing the required parameter "labelId" when calling getKnowledgeKnowledgebaseLabel';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/labels/{labelId}","GET",{knowledgeBaseId:e,labelId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getKnowledgeKnowledgebaseLabels(e,i){if(i=i||{},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:i.before,after:i.after,pageSize:i.pageSize,name:i.name,includeDocumentCount:i.includeDocumentCount},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getKnowledgeKnowledgebaseOperations(e,i){if(i=i||{},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:i.before,after:i.after,pageSize:i.pageSize,userId:this.apiClient.buildCollectionParam(i.userId,"multi"),type:this.apiClient.buildCollectionParam(i.type,"multi"),status:this.apiClient.buildCollectionParam(i.status,"multi"),interval:i.interval,sourceId:this.apiClient.buildCollectionParam(i.sourceId,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getKnowledgeKnowledgebaseOperationsUsersQuery(e,i){if(i=i||{},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"],i.customHeaders)}getKnowledgeKnowledgebaseParseJob(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling getKnowledgeKnowledgebaseParseJob';if(i==null||i==="")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:i},{expand:this.apiClient.buildCollectionParam(n.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getKnowledgeKnowledgebaseSources(e,i){if(i=i||{},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:i.type,expand:this.apiClient.buildCollectionParam(i.expand,"multi"),ids:this.apiClient.buildCollectionParam(i.ids,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getKnowledgeKnowledgebaseSourcesSalesforceSourceId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling getKnowledgeKnowledgebaseSourcesSalesforceSourceId';if(i==null||i==="")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:i},{expand:this.apiClient.buildCollectionParam(n.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getKnowledgeKnowledgebaseSourcesServicenowSourceId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling getKnowledgeKnowledgebaseSourcesServicenowSourceId';if(i==null||i==="")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:i},{expand:this.apiClient.buildCollectionParam(n.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getKnowledgeKnowledgebaseSynchronizeJob(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling getKnowledgeKnowledgebaseSynchronizeJob';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getKnowledgeKnowledgebaseUnansweredGroup(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling getKnowledgeKnowledgebaseUnansweredGroup';if(i==null||i==="")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:i},{app:n.app,dateStart:n.dateStart,dateEnd:n.dateEnd},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getKnowledgeKnowledgebaseUnansweredGroupPhrasegroup(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling getKnowledgeKnowledgebaseUnansweredGroupPhrasegroup';if(i==null||i==="")throw'Missing the required parameter "groupId" when calling getKnowledgeKnowledgebaseUnansweredGroupPhrasegroup';if(n==null||n==="")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:i,phraseGroupId:n},{app:a.app,dateStart:a.dateStart,dateEnd:a.dateEnd},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getKnowledgeKnowledgebaseUnansweredGroups(e,i){if(i=i||{},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:i.app,dateStart:i.dateStart,dateEnd:i.dateEnd},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getKnowledgeKnowledgebaseUploadsUrlsJob(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling getKnowledgeKnowledgebaseUploadsUrlsJob';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getKnowledgeSourceSynchronization(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "sourceId" when calling getKnowledgeSourceSynchronization';if(i==null||i==="")throw'Missing the required parameter "synchronizationId" when calling getKnowledgeSourceSynchronization';return this.apiClient.callApi("/api/v2/knowledge/sources/{sourceId}/synchronizations/{synchronizationId}","GET",{sourceId:e,synchronizationId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getKnowledgeSourceSynchronizations(e,i){if(i=i||{},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:i.before,after:i.after,pageSize:i.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "connectionId" when calling patchKnowledgeConnection';return this.apiClient.callApi("/api/v2/knowledge/connections/{connectionId}","PATCH",{connectionId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}patchKnowledgeGuestSessionDocumentsSearchSearchId(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "sessionId" when calling patchKnowledgeGuestSessionDocumentsSearchSearchId';if(i==null||i==="")throw'Missing the required parameter "searchId" when calling patchKnowledgeGuestSessionDocumentsSearchSearchId';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchKnowledgeKnowledgebase(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling patchKnowledgeKnowledgebase';if(i==null)throw'Missing the required parameter "body" when calling patchKnowledgeKnowledgebase';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}","PATCH",{knowledgeBaseId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchKnowledgeKnowledgebaseCategory(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling patchKnowledgeKnowledgebaseCategory';if(i==null||i==="")throw'Missing the required parameter "categoryId" when calling patchKnowledgeKnowledgebaseCategory';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchKnowledgeKnowledgebaseChunksSearchSearchId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling patchKnowledgeKnowledgebaseChunksSearchSearchId';if(i==null||i==="")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:i},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchKnowledgeKnowledgebaseDocument(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling patchKnowledgeKnowledgebaseDocument';if(i==null||i==="")throw'Missing the required parameter "documentId" when calling patchKnowledgeKnowledgebaseDocument';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchKnowledgeKnowledgebaseDocumentFeedbackFeedbackId(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling patchKnowledgeKnowledgebaseDocumentFeedbackFeedbackId';if(i==null||i==="")throw'Missing the required parameter "documentId" when calling patchKnowledgeKnowledgebaseDocumentFeedbackFeedbackId';if(n==null||n==="")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:i,feedbackId:n},{},{},{},a.body,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchKnowledgeKnowledgebaseDocumentVariation(e,i,n,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "documentVariationId" when calling patchKnowledgeKnowledgebaseDocumentVariation';if(i==null||i==="")throw'Missing the required parameter "documentId" when calling patchKnowledgeKnowledgebaseDocumentVariation';if(n==null||n==="")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:i,knowledgeBaseId:n},{},{},{},a,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}patchKnowledgeKnowledgebaseDocumentsSearchSearchId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling patchKnowledgeKnowledgebaseDocumentsSearchSearchId';if(i==null||i==="")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:i},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchKnowledgeKnowledgebaseImportJob(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling patchKnowledgeKnowledgebaseImportJob';if(i==null||i==="")throw'Missing the required parameter "importJobId" when calling patchKnowledgeKnowledgebaseImportJob';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchKnowledgeKnowledgebaseLabel(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling patchKnowledgeKnowledgebaseLabel';if(i==null||i==="")throw'Missing the required parameter "labelId" when calling patchKnowledgeKnowledgebaseLabel';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchKnowledgeKnowledgebaseParseJob(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling patchKnowledgeKnowledgebaseParseJob';if(i==null||i==="")throw'Missing the required parameter "parseJobId" when calling patchKnowledgeKnowledgebaseParseJob';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchKnowledgeKnowledgebaseSynchronizeJob(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling patchKnowledgeKnowledgebaseSynchronizeJob';if(i==null||i==="")throw'Missing the required parameter "syncJobId" when calling patchKnowledgeKnowledgebaseSynchronizeJob';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchKnowledgeKnowledgebaseUnansweredGroupPhrasegroup(e,i,n,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling patchKnowledgeKnowledgebaseUnansweredGroupPhrasegroup';if(i==null||i==="")throw'Missing the required parameter "groupId" when calling patchKnowledgeKnowledgebaseUnansweredGroupPhrasegroup';if(n==null||n==="")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:i,phraseGroupId:n},{},{},{},a,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}patchKnowledgeSetting(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeSettingId" when calling patchKnowledgeSetting';if(i==null)throw'Missing the required parameter "body" when calling patchKnowledgeSetting';return this.apiClient.callApi("/api/v2/knowledge/settings/{knowledgeSettingId}","PATCH",{knowledgeSettingId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchKnowledgeSourceSynchronization(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "sourceId" when calling patchKnowledgeSourceSynchronization';if(i==null||i==="")throw'Missing the required parameter "synchronizationId" when calling patchKnowledgeSourceSynchronization';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postKnowledgeConnections(e,i){if(i=i||{},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"],i.customHeaders)}postKnowledgeDocumentuploads(e,i){if(i=i||{},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"],i.customHeaders)}postKnowledgeGuestSessionDocumentCopies(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "sessionId" when calling postKnowledgeGuestSessionDocumentCopies';if(i==null||i==="")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:i},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postKnowledgeGuestSessionDocumentFeedback(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "sessionId" when calling postKnowledgeGuestSessionDocumentFeedback';if(i==null||i==="")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:i},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postKnowledgeGuestSessionDocumentViews(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "sessionId" when calling postKnowledgeGuestSessionDocumentViews';if(i==null||i==="")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:i},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postKnowledgeGuestSessionDocumentsAnswers(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "sessionId" when calling postKnowledgeGuestSessionDocumentsAnswers';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postKnowledgeGuestSessionDocumentsPresentations(e,i){if(i=i||{},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},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postKnowledgeGuestSessionDocumentsSearch(e,i){if(i=i||{},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(i.expand,"multi")},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postKnowledgeGuestSessionDocumentsSearchSuggestions(e,i){if(i=i||{},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},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postKnowledgeGuestSessions(e,i){if(i=i||{},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"],i.customHeaders)}postKnowledgeKnowledgebaseCategories(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseCategories';if(i==null)throw'Missing the required parameter "body" when calling postKnowledgeKnowledgebaseCategories';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/categories","POST",{knowledgeBaseId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postKnowledgeKnowledgebaseChunksSearch(e,i){if(i=i||{},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},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postKnowledgeKnowledgebaseDocumentCopies(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseDocumentCopies';if(i==null||i==="")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:i},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postKnowledgeKnowledgebaseDocumentFeedback(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseDocumentFeedback';if(i==null||i==="")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:i},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postKnowledgeKnowledgebaseDocumentVariations(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseDocumentVariations';if(i==null||i==="")throw'Missing the required parameter "documentId" when calling postKnowledgeKnowledgebaseDocumentVariations';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postKnowledgeKnowledgebaseDocumentVersions(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseDocumentVersions';if(i==null||i==="")throw'Missing the required parameter "documentId" when calling postKnowledgeKnowledgebaseDocumentVersions';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postKnowledgeKnowledgebaseDocumentViews(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseDocumentViews';if(i==null||i==="")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:i},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postKnowledgeKnowledgebaseDocuments(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseDocuments';if(i==null)throw'Missing the required parameter "body" when calling postKnowledgeKnowledgebaseDocuments';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/documents","POST",{knowledgeBaseId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postKnowledgeKnowledgebaseDocumentsAnswers(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseDocumentsAnswers';if(i==null)throw'Missing the required parameter "body" when calling postKnowledgeKnowledgebaseDocumentsAnswers';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/documents/answers","POST",{knowledgeBaseId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postKnowledgeKnowledgebaseDocumentsBulkRemove(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseDocumentsBulkRemove';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postKnowledgeKnowledgebaseDocumentsBulkUpdate(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseDocumentsBulkUpdate';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postKnowledgeKnowledgebaseDocumentsPresentations(e,i){if(i=i||{},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},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postKnowledgeKnowledgebaseDocumentsQuery(e,i){if(i=i||{},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(i.expand,"multi")},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postKnowledgeKnowledgebaseDocumentsSearch(e,i){if(i=i||{},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(i.expand,"multi")},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postKnowledgeKnowledgebaseDocumentsSearchSuggestions(e,i){if(i=i||{},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},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postKnowledgeKnowledgebaseDocumentsVersionsBulkAdd(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseDocumentsVersionsBulkAdd';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postKnowledgeKnowledgebaseExportJobs(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseExportJobs';if(i==null)throw'Missing the required parameter "body" when calling postKnowledgeKnowledgebaseExportJobs';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/export/jobs","POST",{knowledgeBaseId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postKnowledgeKnowledgebaseImportJobs(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseImportJobs';if(i==null)throw'Missing the required parameter "body" when calling postKnowledgeKnowledgebaseImportJobs';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/import/jobs","POST",{knowledgeBaseId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postKnowledgeKnowledgebaseLabels(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseLabels';if(i==null)throw'Missing the required parameter "body" when calling postKnowledgeKnowledgebaseLabels';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/labels","POST",{knowledgeBaseId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postKnowledgeKnowledgebaseParseJobImport(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseParseJobImport';if(i==null||i==="")throw'Missing the required parameter "parseJobId" when calling postKnowledgeKnowledgebaseParseJobImport';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postKnowledgeKnowledgebaseParseJobs(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseParseJobs';if(i==null)throw'Missing the required parameter "body" when calling postKnowledgeKnowledgebaseParseJobs';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/parse/jobs","POST",{knowledgeBaseId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postKnowledgeKnowledgebaseSourcesSalesforce(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseSourcesSalesforce';if(i==null)throw'Missing the required parameter "body" when calling postKnowledgeKnowledgebaseSourcesSalesforce';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/sources/salesforce","POST",{knowledgeBaseId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postKnowledgeKnowledgebaseSourcesSalesforceSourceIdSync(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseSourcesSalesforceSourceIdSync';if(i==null||i==="")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:i},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postKnowledgeKnowledgebaseSourcesServicenow(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseSourcesServicenow';if(i==null)throw'Missing the required parameter "body" when calling postKnowledgeKnowledgebaseSourcesServicenow';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/sources/servicenow","POST",{knowledgeBaseId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postKnowledgeKnowledgebaseSourcesServicenowSourceIdSync(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseSourcesServicenowSourceIdSync';if(i==null||i==="")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:i},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postKnowledgeKnowledgebaseSynchronizeJobs(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseSynchronizeJobs';if(i==null)throw'Missing the required parameter "body" when calling postKnowledgeKnowledgebaseSynchronizeJobs';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/synchronize/jobs","POST",{knowledgeBaseId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postKnowledgeKnowledgebaseUploadsUrlsJobs(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseUploadsUrlsJobs';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postKnowledgeKnowledgebases(e,i){if(i=i||{},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"],i.customHeaders)}postKnowledgeSearch(e){return e=e||{},this.apiClient.callApi("/api/v2/knowledge/search","POST",{},{},{},{},e.body,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}postKnowledgeSearchPreview(e){return e=e||{},this.apiClient.callApi("/api/v2/knowledge/search/preview","POST",{},{},{},{},e.body,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}postKnowledgeSettings(e){return e=e||{},this.apiClient.callApi("/api/v2/knowledge/settings","POST",{},{},{},{},e.body,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}postKnowledgeSourceSynchronizationUploads(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "sourceId" when calling postKnowledgeSourceSynchronizationUploads';if(i==null||i==="")throw'Missing the required parameter "synchronizationId" when calling postKnowledgeSourceSynchronizationUploads';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postKnowledgeSourceSynchronizations(e,i){if(i=i||{},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},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postKnowledgeSources(e,i){if(i=i||{},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"],i.customHeaders)}putKnowledgeKnowledgebaseSourcesSalesforceSourceId(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling putKnowledgeKnowledgebaseSourcesSalesforceSourceId';if(i==null||i==="")throw'Missing the required parameter "sourceId" when calling putKnowledgeKnowledgebaseSourcesSalesforceSourceId';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}putKnowledgeKnowledgebaseSourcesServicenowSourceId(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling putKnowledgeKnowledgebaseSourcesServicenowSourceId';if(i==null||i==="")throw'Missing the required parameter "sourceId" when calling putKnowledgeKnowledgebaseSourcesServicenowSourceId';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}putKnowledgeSource(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "sourceId" when calling putKnowledgeSource';if(i==null)throw'Missing the required parameter "body" when calling putKnowledgeSource';return this.apiClient.callApi("/api/v2/knowledge/sources/{sourceId}","PUT",{sourceId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}},pb=class{constructor(e){this.apiClient=e||q.instance}deleteLanguageunderstandingDomain(e,i){if(i=i||{},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"],i.customHeaders)}deleteLanguageunderstandingDomainFeedbackFeedbackId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "domainId" when calling deleteLanguageunderstandingDomainFeedbackFeedbackId';if(i==null||i==="")throw'Missing the required parameter "feedbackId" when calling deleteLanguageunderstandingDomainFeedbackFeedbackId';return this.apiClient.callApi("/api/v2/languageunderstanding/domains/{domainId}/feedback/{feedbackId}","DELETE",{domainId:e,feedbackId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteLanguageunderstandingDomainVersion(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "domainId" when calling deleteLanguageunderstandingDomainVersion';if(i==null||i==="")throw'Missing the required parameter "domainVersionId" when calling deleteLanguageunderstandingDomainVersion';return this.apiClient.callApi("/api/v2/languageunderstanding/domains/{domainId}/versions/{domainVersionId}","DELETE",{domainId:e,domainVersionId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteLanguageunderstandingMiner(e,i){if(i=i||{},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"],i.customHeaders)}deleteLanguageunderstandingMinerDraft(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "minerId" when calling deleteLanguageunderstandingMinerDraft';if(i==null||i==="")throw'Missing the required parameter "draftId" when calling deleteLanguageunderstandingMinerDraft';return this.apiClient.callApi("/api/v2/languageunderstanding/miners/{minerId}/drafts/{draftId}","DELETE",{minerId:e,draftId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getLanguageunderstandingDomain(e,i){if(i=i||{},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"],i.customHeaders)}getLanguageunderstandingDomainFeedback(e,i){if(i=i||{},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:i.intentName,assessment:i.assessment,dateStart:i.dateStart,dateEnd:i.dateEnd,includeDeleted:i.includeDeleted,language:i.language,pageNumber:i.pageNumber,pageSize:i.pageSize,enableCursorPagination:i.enableCursorPagination,includeTrainingUtterances:i.includeTrainingUtterances,after:i.after,fields:this.apiClient.buildCollectionParam(i.fields,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getLanguageunderstandingDomainFeedbackFeedbackId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "domainId" when calling getLanguageunderstandingDomainFeedbackFeedbackId';if(i==null||i==="")throw'Missing the required parameter "feedbackId" when calling getLanguageunderstandingDomainFeedbackFeedbackId';return this.apiClient.callApi("/api/v2/languageunderstanding/domains/{domainId}/feedback/{feedbackId}","GET",{domainId:e,feedbackId:i},{fields:this.apiClient.buildCollectionParam(n.fields,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getLanguageunderstandingDomainVersion(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "domainId" when calling getLanguageunderstandingDomainVersion';if(i==null||i==="")throw'Missing the required parameter "domainVersionId" when calling getLanguageunderstandingDomainVersion';return this.apiClient.callApi("/api/v2/languageunderstanding/domains/{domainId}/versions/{domainVersionId}","GET",{domainId:e,domainVersionId:i},{includeUtterances:n.includeUtterances},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getLanguageunderstandingDomainVersionReport(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "domainId" when calling getLanguageunderstandingDomainVersionReport';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getLanguageunderstandingDomainVersions(e,i){if(i=i||{},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:i.includeUtterances,pageNumber:i.pageNumber,pageSize:i.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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:i.pageSize,pageNumber:i.pageNumber,text:i.text,sortOrder:i.sortOrder,sortBy:i.sortBy},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getLanguageunderstandingIgnoretopic(e,i){if(i=i||{},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:i.pageSize,pageNumber:i.pageNumber,text:i.text,sortOrder:i.sortOrder,sortBy:i.sortBy},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getLanguageunderstandingMiner(e,i){if(i=i||{},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"],i.customHeaders)}getLanguageunderstandingMinerDraft(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "minerId" when calling getLanguageunderstandingMinerDraft';if(i==null||i==="")throw'Missing the required parameter "draftId" when calling getLanguageunderstandingMinerDraft';return this.apiClient.callApi("/api/v2/languageunderstanding/miners/{minerId}/drafts/{draftId}","GET",{minerId:e,draftId:i},{draftIntentId:n.draftIntentId,draftTopicId:n.draftTopicId},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getLanguageunderstandingMinerDrafts(e,i){if(i=i||{},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"],i.customHeaders)}getLanguageunderstandingMinerIntent(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "minerId" when calling getLanguageunderstandingMinerIntent';if(i==null||i==="")throw'Missing the required parameter "intentId" when calling getLanguageunderstandingMinerIntent';return this.apiClient.callApi("/api/v2/languageunderstanding/miners/{minerId}/intents/{intentId}","GET",{minerId:e,intentId:i},{expand:n.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getLanguageunderstandingMinerIntents(e,i){if(i=i||{},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:i.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getLanguageunderstandingMinerTopic(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "minerId" when calling getLanguageunderstandingMinerTopic';if(i==null||i==="")throw'Missing the required parameter "topicId" when calling getLanguageunderstandingMinerTopic';return this.apiClient.callApi("/api/v2/languageunderstanding/miners/{minerId}/topics/{topicId}","GET",{minerId:e,topicId:i},{expand:n.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getLanguageunderstandingMinerTopicPhrase(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "minerId" when calling getLanguageunderstandingMinerTopicPhrase';if(i==null||i==="")throw'Missing the required parameter "topicId" when calling getLanguageunderstandingMinerTopicPhrase';if(n==null||n==="")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:i,phraseId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getLanguageunderstandingMinerTopics(e,i){if(i=i||{},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"],i.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,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "domainId" when calling patchLanguageunderstandingDomain';if(i==null)throw'Missing the required parameter "body" when calling patchLanguageunderstandingDomain';return this.apiClient.callApi("/api/v2/languageunderstanding/domains/{domainId}","PATCH",{domainId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchLanguageunderstandingMinerDraft(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "minerId" when calling patchLanguageunderstandingMinerDraft';if(i==null||i==="")throw'Missing the required parameter "draftId" when calling patchLanguageunderstandingMinerDraft';return this.apiClient.callApi("/api/v2/languageunderstanding/miners/{minerId}/drafts/{draftId}","PATCH",{minerId:e,draftId:i},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postLanguageunderstandingDomainFeedback(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "domainId" when calling postLanguageunderstandingDomainFeedback';if(i==null)throw'Missing the required parameter "body" when calling postLanguageunderstandingDomainFeedback';return this.apiClient.callApi("/api/v2/languageunderstanding/domains/{domainId}/feedback","POST",{domainId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postLanguageunderstandingDomainVersionDetect(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "domainId" when calling postLanguageunderstandingDomainVersionDetect';if(i==null||i==="")throw'Missing the required parameter "domainVersionId" when calling postLanguageunderstandingDomainVersionDetect';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postLanguageunderstandingDomainVersionPublish(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "domainId" when calling postLanguageunderstandingDomainVersionPublish';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postLanguageunderstandingDomainVersionTrain(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "domainId" when calling postLanguageunderstandingDomainVersionTrain';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postLanguageunderstandingDomainVersions(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "domainId" when calling postLanguageunderstandingDomainVersions';if(i==null)throw'Missing the required parameter "body" when calling postLanguageunderstandingDomainVersions';return this.apiClient.callApi("/api/v2/languageunderstanding/domains/{domainId}/versions","POST",{domainId:e},{includeUtterances:n.includeUtterances},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postLanguageunderstandingDomains(e,i){if(i=i||{},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"],i.customHeaders)}postLanguageunderstandingIgnorephrase(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "languageCode" when calling postLanguageunderstandingIgnorephrase';if(i==null)throw'Missing the required parameter "body" when calling postLanguageunderstandingIgnorephrase';return this.apiClient.callApi("/api/v2/languageunderstanding/ignorephrases/{languageCode}","POST",{languageCode:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postLanguageunderstandingIgnorephraseRemove(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "languageCode" when calling postLanguageunderstandingIgnorephraseRemove';if(i==null)throw'Missing the required parameter "body" when calling postLanguageunderstandingIgnorephraseRemove';return this.apiClient.callApi("/api/v2/languageunderstanding/ignorephrases/{languageCode}/remove","POST",{languageCode:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postLanguageunderstandingIgnoretopic(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "languageCode" when calling postLanguageunderstandingIgnoretopic';if(i==null)throw'Missing the required parameter "body" when calling postLanguageunderstandingIgnoretopic';return this.apiClient.callApi("/api/v2/languageunderstanding/ignoretopics/{languageCode}","POST",{languageCode:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postLanguageunderstandingIgnoretopicRemove(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "languageCode" when calling postLanguageunderstandingIgnoretopicRemove';if(i==null)throw'Missing the required parameter "body" when calling postLanguageunderstandingIgnoretopicRemove';return this.apiClient.callApi("/api/v2/languageunderstanding/ignoretopics/{languageCode}/remove","POST",{languageCode:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postLanguageunderstandingMinerDrafts(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "minerId" when calling postLanguageunderstandingMinerDrafts';if(i==null)throw'Missing the required parameter "body" when calling postLanguageunderstandingMinerDrafts';return this.apiClient.callApi("/api/v2/languageunderstanding/miners/{minerId}/drafts","POST",{minerId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postLanguageunderstandingMinerExecute(e,i){if(i=i||{},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},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postLanguageunderstandingMiners(e,i){if(i=i||{},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"],i.customHeaders)}putLanguageunderstandingDomainVersion(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "domainId" when calling putLanguageunderstandingDomainVersion';if(i==null||i==="")throw'Missing the required parameter "domainVersionId" when calling putLanguageunderstandingDomainVersion';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}},db=class{constructor(e){this.apiClient=e||q.instance}deleteLanguage(e,i){if(i=i||{},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"],i.customHeaders)}getLanguage(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getLanguagesTranslationsOrganization(e,i){if(i=i||{},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"],i.customHeaders)}getLanguagesTranslationsUser(e,i){if(i=i||{},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"],i.customHeaders)}postLanguages(e,i){if(i=i||{},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"],i.customHeaders)}},hb=class{constructor(e){this.apiClient=e||q.instance}deleteLearningAssignment(e,i){if(i=i||{},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"],i.customHeaders)}deleteLearningModule(e,i){if(i=i||{},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"],i.customHeaders)}getLearningAssignment(e,i){if(i=i||{},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(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getLearningAssignmentStep(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "assignmentId" when calling getLearningAssignmentStep';if(i==null||i==="")throw'Missing the required parameter "stepId" when calling getLearningAssignmentStep';return this.apiClient.callApi("/api/v2/learning/assignments/{assignmentId}/steps/{stepId}","GET",{assignmentId:e,stepId:i},{shareableContentObjectId:n.shareableContentObjectId,defaultShareableContentObject:n.defaultShareableContentObject,expand:this.apiClient.buildCollectionParam(n.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.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,i){if(i=i||{},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(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getLearningModuleJob(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "moduleId" when calling getLearningModuleJob';if(i==null||i==="")throw'Missing the required parameter "jobId" when calling getLearningModuleJob';return this.apiClient.callApi("/api/v2/learning/modules/{moduleId}/jobs/{jobId}","GET",{moduleId:e,jobId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getLearningModulePreview(e,i){if(i=i||{},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"],i.customHeaders)}getLearningModuleRule(e,i){if(i=i||{},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"],i.customHeaders)}getLearningModuleVersion(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "moduleId" when calling getLearningModuleVersion';if(i==null||i==="")throw'Missing the required parameter "versionId" when calling getLearningModuleVersion';return this.apiClient.callApi("/api/v2/learning/modules/{moduleId}/versions/{versionId}","GET",{moduleId:e,versionId:i},{expand:this.apiClient.buildCollectionParam(n.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getLearningModules(e){return e=e||{},this.apiClient.callApi("/api/v2/learning/modules","GET",{},{isArchived:e.isArchived,types:this.apiClient.buildCollectionParam(e.types,"multi"),pageSize:e.pageSize,pageNumber:e.pageNumber,sortOrder:e.sortOrder,sortBy:e.sortBy,searchTerm:e.searchTerm,expand:this.apiClient.buildCollectionParam(e.expand,"multi"),isPublished:e.isPublished,statuses:this.apiClient.buildCollectionParam(e.statuses,"multi"),externalIds:this.apiClient.buildCollectionParam(e.externalIds,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getLearningModulesAssignments(e,i){if(i=i||{},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:i.pageSize,pageNumber:i.pageNumber,searchTerm:i.searchTerm,overdue:i.overdue,assignmentStates:this.apiClient.buildCollectionParam(i.assignmentStates,"multi"),expand:this.apiClient.buildCollectionParam(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getLearningModulesCoverartCoverArtId(e,i){if(i=i||{},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"],i.customHeaders)}getLearningScheduleslotsJob(e,i){if(i=i||{},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"],i.customHeaders)}getLearningScormScormId(e,i){if(i=i||{},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"],i.customHeaders)}patchLearningAssignment(e,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "assignmentId" when calling patchLearningAssignment';return this.apiClient.callApi("/api/v2/learning/assignments/{assignmentId}","PATCH",{assignmentId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}patchLearningAssignmentReschedule(e,i){if(i=i||{},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},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}patchLearningAssignmentStep(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "assignmentId" when calling patchLearningAssignmentStep';if(i==null||i==="")throw'Missing the required parameter "stepId" when calling patchLearningAssignmentStep';return this.apiClient.callApi("/api/v2/learning/assignments/{assignmentId}/steps/{stepId}","PATCH",{assignmentId:e,stepId:i},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchLearningModuleUserAssignments(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "moduleId" when calling patchLearningModuleUserAssignments';if(i==null||i==="")throw'Missing the required parameter "userId" when calling patchLearningModuleUserAssignments';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postLearningAssessmentsScoring(e,i){if(i=i||{},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"],i.customHeaders)}postLearningAssignmentReassign(e,i){if(i=i||{},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"],i.customHeaders)}postLearningAssignmentReset(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "moduleId" when calling postLearningModuleJobs';if(i==null)throw'Missing the required parameter "body" when calling postLearningModuleJobs';return this.apiClient.callApi("/api/v2/learning/modules/{moduleId}/jobs","POST",{moduleId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postLearningModulePublish(e,i){if(i=i||{},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},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postLearningModuleRuleMigrate(e,i){if(i=i||{},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"],i.customHeaders)}postLearningModules(e,i){if(i=i||{},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"],i.customHeaders)}postLearningRulesQuery(e,i,n,a){if(a=a||{},e==null)throw'Missing the required parameter "pageSize" when calling postLearningRulesQuery';if(i==null)throw'Missing the required parameter "pageNumber" when calling postLearningRulesQuery';if(n==null)throw'Missing the required parameter "body" when calling postLearningRulesQuery';return this.apiClient.callApi("/api/v2/learning/rules/query","POST",{},{pageSize:e,pageNumber:i},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postLearningScheduleslotsJobs(e,i){if(i=i||{},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"],i.customHeaders)}postLearningScheduleslotsQuery(e,i){if(i=i||{},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"],i.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,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "moduleId" when calling putLearningModule';if(i==null)throw'Missing the required parameter "body" when calling putLearningModule';return this.apiClient.callApi("/api/v2/learning/modules/{moduleId}","PUT",{moduleId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putLearningModulePreview(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "moduleId" when calling putLearningModulePreview';if(i==null)throw'Missing the required parameter "body" when calling putLearningModulePreview';return this.apiClient.callApi("/api/v2/learning/modules/{moduleId}/preview","PUT",{moduleId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putLearningModuleRule(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "moduleId" when calling putLearningModuleRule';if(i==null)throw'Missing the required parameter "body" when calling putLearningModuleRule';return this.apiClient.callApi("/api/v2/learning/modules/{moduleId}/rule","PUT",{moduleId:e},{assign:n.assign},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}},gb=class{constructor(e){this.apiClient=e||q.instance}getLicenseDefinition(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getLicenseUser(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}postLicenseUsers(e){return e=e||{},this.apiClient.callApi("/api/v2/license/users","POST",{},{},{},{},e.body,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}},mb=class{constructor(e){this.apiClient=e||q.instance}deleteLocation(e,i){if(i=i||{},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"],i.customHeaders)}getLocation(e,i){if(i=i||{},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(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getLocationSublocations(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}patchLocation(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "locationId" when calling patchLocation';if(i==null)throw'Missing the required parameter "body" when calling patchLocation';return this.apiClient.callApi("/api/v2/locations/{locationId}","PATCH",{locationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postLocations(e,i){if(i=i||{},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"],i.customHeaders)}postLocationsSearch(e,i){if(i=i||{},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"],i.customHeaders)}},fb=class{constructor(e){this.apiClient=e||q.instance}deleteDiagnosticsLogcaptureBrowserUser(e,i){if(i=i||{},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"],i.customHeaders)}getDiagnosticsLogcaptureBrowserEntriesDownloadJob(e,i){if(i=i||{},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"],i.customHeaders)}getDiagnosticsLogcaptureBrowserUser(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}},wb=class{constructor(e){this.apiClient=e||q.instance}deleteMessagingSetting(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getMessagingSetting(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}patchMessagingSetting(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "messageSettingId" when calling patchMessagingSetting';if(i==null)throw'Missing the required parameter "body" when calling patchMessagingSetting';return this.apiClient.callApi("/api/v2/messaging/settings/{messageSettingId}","PATCH",{messageSettingId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchMessagingSupportedcontentSupportedContentId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "supportedContentId" when calling patchMessagingSupportedcontentSupportedContentId';if(i==null)throw'Missing the required parameter "body" when calling patchMessagingSupportedcontentSupportedContentId';return this.apiClient.callApi("/api/v2/messaging/supportedcontent/{supportedContentId}","PATCH",{supportedContentId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postMessagingSettings(e,i){if(i=i||{},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"],i.customHeaders)}postMessagingSupportedcontent(e,i){if(i=i||{},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"],i.customHeaders)}putMessagingSettingsDefault(e,i){if(i=i||{},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"],i.customHeaders)}},vb=class{constructor(e){this.apiClient=e||q.instance}deleteMobiledevice(e,i){if(i=i||{},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"],i.customHeaders)}getMobiledevice(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}putMobiledevice(e,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "deviceId" when calling putMobiledevice';return this.apiClient.callApi("/api/v2/mobiledevices/{deviceId}","PUT",{deviceId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}},Cb=class{constructor(e){this.apiClient=e||q.instance}deleteNotificationsChannelSubscriptions(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}postNotificationsChannelSubscriptions(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "channelId" when calling postNotificationsChannelSubscriptions';if(i==null)throw'Missing the required parameter "body" when calling postNotificationsChannelSubscriptions';return this.apiClient.callApi("/api/v2/notifications/channels/{channelId}/subscriptions","POST",{channelId:e},{ignoreErrors:n.ignoreErrors},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.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,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "channelId" when calling putNotificationsChannelSubscriptions';if(i==null)throw'Missing the required parameter "body" when calling putNotificationsChannelSubscriptions';return this.apiClient.callApi("/api/v2/notifications/channels/{channelId}/subscriptions","PUT",{channelId:e},{ignoreErrors:n.ignoreErrors},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}},Ab=class{constructor(e){this.apiClient=e||q.instance}deleteOauthClient(e,i){if(i=i||{},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"],i.customHeaders)}getOauthAuthorization(e,i){if(i=i||{},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":i.acceptLanguage},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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"],i.customHeaders)}getOauthClientUsageQueryResult(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "executionId" when calling getOauthClientUsageQueryResult';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getOauthClientUsageSummary(e,i){if(i=i||{},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:i.days},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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":i.acceptLanguage},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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"],i.customHeaders)}postOauthClientUsageQuery(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "clientId" when calling postOauthClientUsageQuery';if(i==null)throw'Missing the required parameter "body" when calling postOauthClientUsageQuery';return this.apiClient.callApi("/api/v2/oauth/clients/{clientId}/usage/query","POST",{clientId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postOauthClients(e,i){if(i=i||{},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"],i.customHeaders)}putOauthClient(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "clientId" when calling putOauthClient';if(i==null)throw'Missing the required parameter "body" when calling putOauthClient';return this.apiClient.callApi("/api/v2/oauth/clients/{clientId}","PUT",{clientId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}},bb=class{constructor(e){this.apiClient=e||q.instance}deleteAuthorizationDivision(e,i){if(i=i||{},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:i.force},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getAuthorizationDivision(e,i){if(i=i||{},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:i.objectCount},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "divisionId" when calling postAuthorizationDivisionObject';if(i==null||i==="")throw'Missing the required parameter "objectType" when calling postAuthorizationDivisionObject';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postAuthorizationDivisionRestore(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "divisionId" when calling postAuthorizationDivisionRestore';if(i==null)throw'Missing the required parameter "body" when calling postAuthorizationDivisionRestore';return this.apiClient.callApi("/api/v2/authorization/divisions/{divisionId}/restore","POST",{divisionId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postAuthorizationDivisions(e,i){if(i=i||{},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"],i.customHeaders)}putAuthorizationDivision(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "divisionId" when calling putAuthorizationDivision';if(i==null)throw'Missing the required parameter "body" when calling putAuthorizationDivision';return this.apiClient.callApi("/api/v2/authorization/divisions/{divisionId}","PUT",{divisionId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}},yb=class{constructor(e){this.apiClient=e||q.instance}getUsageEventsDefinition(e,i){if(i=i||{},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"],i.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)}},Pb=class{constructor(e){this.apiClient=e||q.instance}getFieldconfig(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getOrganizationsLimitsNamespaceDefaults(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}patchOrganizationsFeature(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "featureName" when calling patchOrganizationsFeature';if(i==null)throw'Missing the required parameter "enabled" when calling patchOrganizationsFeature';return this.apiClient.callApi("/api/v2/organizations/features/{featureName}","PATCH",{featureName:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putOrganizationsEmbeddedintegration(e,i){if(i=i||{},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"],i.customHeaders)}putOrganizationsIpaddressauthentication(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}},jb=class{constructor(e){this.apiClient=e||q.instance}deleteOrgauthorizationTrustee(e,i){if(i=i||{},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"],i.customHeaders)}deleteOrgauthorizationTrusteeCloneduser(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "trusteeOrgId" when calling deleteOrgauthorizationTrusteeCloneduser';if(i==null||i==="")throw'Missing the required parameter "trusteeUserId" when calling deleteOrgauthorizationTrusteeCloneduser';return this.apiClient.callApi("/api/v2/orgauthorization/trustees/{trusteeOrgId}/clonedusers/{trusteeUserId}","DELETE",{trusteeOrgId:e,trusteeUserId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteOrgauthorizationTrusteeGroup(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "trusteeOrgId" when calling deleteOrgauthorizationTrusteeGroup';if(i==null||i==="")throw'Missing the required parameter "trusteeGroupId" when calling deleteOrgauthorizationTrusteeGroup';return this.apiClient.callApi("/api/v2/orgauthorization/trustees/{trusteeOrgId}/groups/{trusteeGroupId}","DELETE",{trusteeOrgId:e,trusteeGroupId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteOrgauthorizationTrusteeGroupRoles(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "trusteeOrgId" when calling deleteOrgauthorizationTrusteeGroupRoles';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteOrgauthorizationTrusteeUser(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "trusteeOrgId" when calling deleteOrgauthorizationTrusteeUser';if(i==null||i==="")throw'Missing the required parameter "trusteeUserId" when calling deleteOrgauthorizationTrusteeUser';return this.apiClient.callApi("/api/v2/orgauthorization/trustees/{trusteeOrgId}/users/{trusteeUserId}","DELETE",{trusteeOrgId:e,trusteeUserId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteOrgauthorizationTrusteeUserRoles(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "trusteeOrgId" when calling deleteOrgauthorizationTrusteeUserRoles';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteOrgauthorizationTrustees(e,i){if(i=i||{},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"],i.customHeaders)}deleteOrgauthorizationTrustor(e,i){if(i=i||{},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"],i.customHeaders)}deleteOrgauthorizationTrustorCloneduser(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "trustorOrgId" when calling deleteOrgauthorizationTrustorCloneduser';if(i==null||i==="")throw'Missing the required parameter "trusteeUserId" when calling deleteOrgauthorizationTrustorCloneduser';return this.apiClient.callApi("/api/v2/orgauthorization/trustors/{trustorOrgId}/clonedusers/{trusteeUserId}","DELETE",{trustorOrgId:e,trusteeUserId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteOrgauthorizationTrustorGroup(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "trustorOrgId" when calling deleteOrgauthorizationTrustorGroup';if(i==null||i==="")throw'Missing the required parameter "trustorGroupId" when calling deleteOrgauthorizationTrustorGroup';return this.apiClient.callApi("/api/v2/orgauthorization/trustors/{trustorOrgId}/groups/{trustorGroupId}","DELETE",{trustorOrgId:e,trustorGroupId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteOrgauthorizationTrustorUser(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "trustorOrgId" when calling deleteOrgauthorizationTrustorUser';if(i==null||i==="")throw'Missing the required parameter "trusteeUserId" when calling deleteOrgauthorizationTrustorUser';return this.apiClient.callApi("/api/v2/orgauthorization/trustors/{trustorOrgId}/users/{trusteeUserId}","DELETE",{trustorOrgId:e,trusteeUserId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteOrgauthorizationTrustors(e,i){if(i=i||{},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"],i.customHeaders)}getOrgauthorizationPairing(e,i){if(i=i||{},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"],i.customHeaders)}getOrgauthorizationTrustee(e,i){if(i=i||{},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"],i.customHeaders)}getOrgauthorizationTrusteeClonedusers(e,i){if(i=i||{},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"],i.customHeaders)}getOrgauthorizationTrusteeGroup(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "trusteeOrgId" when calling getOrgauthorizationTrusteeGroup';if(i==null||i==="")throw'Missing the required parameter "trusteeGroupId" when calling getOrgauthorizationTrusteeGroup';return this.apiClient.callApi("/api/v2/orgauthorization/trustees/{trusteeOrgId}/groups/{trusteeGroupId}","GET",{trusteeOrgId:e,trusteeGroupId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getOrgauthorizationTrusteeGroupRoles(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "trusteeOrgId" when calling getOrgauthorizationTrusteeGroupRoles';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getOrgauthorizationTrusteeGroups(e,i){if(i=i||{},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:i.pageSize,pageNumber:i.pageNumber},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getOrgauthorizationTrusteeUser(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "trusteeOrgId" when calling getOrgauthorizationTrusteeUser';if(i==null||i==="")throw'Missing the required parameter "trusteeUserId" when calling getOrgauthorizationTrusteeUser';return this.apiClient.callApi("/api/v2/orgauthorization/trustees/{trusteeOrgId}/users/{trusteeUserId}","GET",{trusteeOrgId:e,trusteeUserId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getOrgauthorizationTrusteeUserRoles(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "trusteeOrgId" when calling getOrgauthorizationTrusteeUserRoles';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getOrgauthorizationTrusteeUsers(e,i){if(i=i||{},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:i.pageSize,pageNumber:i.pageNumber},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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"],i.customHeaders)}getOrgauthorizationTrustorCloneduser(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "trustorOrgId" when calling getOrgauthorizationTrustorCloneduser';if(i==null||i==="")throw'Missing the required parameter "trusteeUserId" when calling getOrgauthorizationTrustorCloneduser';return this.apiClient.callApi("/api/v2/orgauthorization/trustors/{trustorOrgId}/clonedusers/{trusteeUserId}","GET",{trustorOrgId:e,trusteeUserId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getOrgauthorizationTrustorClonedusers(e,i){if(i=i||{},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"],i.customHeaders)}getOrgauthorizationTrustorGroup(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "trustorOrgId" when calling getOrgauthorizationTrustorGroup';if(i==null||i==="")throw'Missing the required parameter "trustorGroupId" when calling getOrgauthorizationTrustorGroup';return this.apiClient.callApi("/api/v2/orgauthorization/trustors/{trustorOrgId}/groups/{trustorGroupId}","GET",{trustorOrgId:e,trustorGroupId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getOrgauthorizationTrustorGroups(e,i){if(i=i||{},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:i.pageSize,pageNumber:i.pageNumber},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getOrgauthorizationTrustorUser(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "trustorOrgId" when calling getOrgauthorizationTrustorUser';if(i==null||i==="")throw'Missing the required parameter "trusteeUserId" when calling getOrgauthorizationTrustorUser';return this.apiClient.callApi("/api/v2/orgauthorization/trustors/{trustorOrgId}/users/{trusteeUserId}","GET",{trustorOrgId:e,trusteeUserId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getOrgauthorizationTrustorUsers(e,i){if(i=i||{},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:i.pageSize,pageNumber:i.pageNumber},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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"],i.customHeaders)}postOrgauthorizationTrusteeGroups(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "trusteeOrgId" when calling postOrgauthorizationTrusteeGroups';if(i==null)throw'Missing the required parameter "body" when calling postOrgauthorizationTrusteeGroups';return this.apiClient.callApi("/api/v2/orgauthorization/trustees/{trusteeOrgId}/groups","POST",{trusteeOrgId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postOrgauthorizationTrusteeUsers(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "trusteeOrgId" when calling postOrgauthorizationTrusteeUsers';if(i==null)throw'Missing the required parameter "body" when calling postOrgauthorizationTrusteeUsers';return this.apiClient.callApi("/api/v2/orgauthorization/trustees/{trusteeOrgId}/users","POST",{trusteeOrgId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postOrgauthorizationTrustees(e,i){if(i=i||{},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"],i.customHeaders)}postOrgauthorizationTrusteesAudits(e,i){if(i=i||{},e==null)throw'Missing the required parameter "body" when calling postOrgauthorizationTrusteesAudits';return this.apiClient.callApi("/api/v2/orgauthorization/trustees/audits","POST",{},{pageSize:i.pageSize,pageNumber:i.pageNumber,sortBy:i.sortBy,sortOrder:i.sortOrder},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},e==null)throw'Missing the required parameter "body" when calling postOrgauthorizationTrustorAudits';return this.apiClient.callApi("/api/v2/orgauthorization/trustor/audits","POST",{},{pageSize:i.pageSize,pageNumber:i.pageNumber,sortBy:i.sortBy,sortOrder:i.sortOrder},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}putOrgauthorizationTrustee(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "trusteeOrgId" when calling putOrgauthorizationTrustee';if(i==null)throw'Missing the required parameter "body" when calling putOrgauthorizationTrustee';return this.apiClient.callApi("/api/v2/orgauthorization/trustees/{trusteeOrgId}","PUT",{trusteeOrgId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putOrgauthorizationTrusteeGroupRoledivisions(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "trusteeOrgId" when calling putOrgauthorizationTrusteeGroupRoledivisions';if(i==null||i==="")throw'Missing the required parameter "trusteeGroupId" when calling putOrgauthorizationTrusteeGroupRoledivisions';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}putOrgauthorizationTrusteeGroupRoles(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "trusteeOrgId" when calling putOrgauthorizationTrusteeGroupRoles';if(i==null||i==="")throw'Missing the required parameter "trusteeGroupId" when calling putOrgauthorizationTrusteeGroupRoles';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}putOrgauthorizationTrusteeUserRoledivisions(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "trusteeOrgId" when calling putOrgauthorizationTrusteeUserRoledivisions';if(i==null||i==="")throw'Missing the required parameter "trusteeUserId" when calling putOrgauthorizationTrusteeUserRoledivisions';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}putOrgauthorizationTrusteeUserRoles(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "trusteeOrgId" when calling putOrgauthorizationTrusteeUserRoles';if(i==null||i==="")throw'Missing the required parameter "trusteeUserId" when calling putOrgauthorizationTrusteeUserRoles';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}putOrgauthorizationTrustorCloneduser(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "trustorOrgId" when calling putOrgauthorizationTrustorCloneduser';if(i==null||i==="")throw'Missing the required parameter "trusteeUserId" when calling putOrgauthorizationTrustorCloneduser';return this.apiClient.callApi("/api/v2/orgauthorization/trustors/{trustorOrgId}/clonedusers/{trusteeUserId}","PUT",{trustorOrgId:e,trusteeUserId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putOrgauthorizationTrustorGroup(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "trustorOrgId" when calling putOrgauthorizationTrustorGroup';if(i==null||i==="")throw'Missing the required parameter "trustorGroupId" when calling putOrgauthorizationTrustorGroup';return this.apiClient.callApi("/api/v2/orgauthorization/trustors/{trustorOrgId}/groups/{trustorGroupId}","PUT",{trustorOrgId:e,trustorGroupId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putOrgauthorizationTrustorUser(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "trustorOrgId" when calling putOrgauthorizationTrustorUser';if(i==null||i==="")throw'Missing the required parameter "trusteeUserId" when calling putOrgauthorizationTrustorUser';return this.apiClient.callApi("/api/v2/orgauthorization/trustors/{trustorOrgId}/users/{trusteeUserId}","PUT",{trustorOrgId:e,trusteeUserId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}},Sb=class{constructor(e){this.apiClient=e||q.instance}deleteOutboundAttemptlimit(e,i){if(i=i||{},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"],i.customHeaders)}deleteOutboundCallabletimeset(e,i){if(i=i||{},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"],i.customHeaders)}deleteOutboundCallanalysisresponseset(e,i){if(i=i||{},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"],i.customHeaders)}deleteOutboundCampaign(e,i){if(i=i||{},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"],i.customHeaders)}deleteOutboundCampaignProgress(e,i){if(i=i||{},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"],i.customHeaders)}deleteOutboundCampaignrule(e,i){if(i=i||{},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"],i.customHeaders)}deleteOutboundContactlist(e,i){if(i=i||{},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"],i.customHeaders)}deleteOutboundContactlistContact(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "contactListId" when calling deleteOutboundContactlistContact';if(i==null||i==="")throw'Missing the required parameter "contactId" when calling deleteOutboundContactlistContact';return this.apiClient.callApi("/api/v2/outbound/contactlists/{contactListId}/contacts/{contactId}","DELETE",{contactListId:e,contactId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteOutboundContactlistContacts(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "contactListId" when calling deleteOutboundContactlistContacts';if(i==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(i,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteOutboundContactlistfilter(e,i){if(i=i||{},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"],i.customHeaders)}deleteOutboundContactlists(e,i){if(i=i||{},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"],i.customHeaders)}deleteOutboundContactlisttemplate(e,i){if(i=i||{},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"],i.customHeaders)}deleteOutboundContactlisttemplates(e,i){if(i=i||{},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"],i.customHeaders)}deleteOutboundDigitalruleset(e,i){if(i=i||{},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"],i.customHeaders)}deleteOutboundDnclist(e,i){if(i=i||{},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"],i.customHeaders)}deleteOutboundDnclistCustomexclusioncolumns(e,i){if(i=i||{},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:i.expiredOnly},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}deleteOutboundDnclistEmailaddresses(e,i){if(i=i||{},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:i.expiredOnly},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}deleteOutboundDnclistPhonenumbers(e,i){if(i=i||{},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:i.expiredOnly},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}deleteOutboundDnclistWhatsappnumbers(e,i){if(i=i||{},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:i.expiredOnly},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}deleteOutboundFilespecificationtemplate(e,i){if(i=i||{},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"],i.customHeaders)}deleteOutboundFilespecificationtemplatesBulk(e,i){if(i=i||{},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"],i.customHeaders)}deleteOutboundImporttemplate(e,i){if(i=i||{},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"],i.customHeaders)}deleteOutboundImporttemplates(e,i){if(i=i||{},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"],i.customHeaders)}deleteOutboundMessagingcampaign(e,i){if(i=i||{},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"],i.customHeaders)}deleteOutboundMessagingcampaignProgress(e,i){if(i=i||{},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"],i.customHeaders)}deleteOutboundRuleset(e,i){if(i=i||{},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"],i.customHeaders)}deleteOutboundSchedulesCampaign(e,i){if(i=i||{},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"],i.customHeaders)}deleteOutboundSchedulesEmailcampaign(e,i){if(i=i||{},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"],i.customHeaders)}deleteOutboundSchedulesMessagingcampaign(e,i){if(i=i||{},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"],i.customHeaders)}deleteOutboundSchedulesSequence(e,i){if(i=i||{},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"],i.customHeaders)}deleteOutboundSchedulesWhatsappcampaign(e,i){if(i=i||{},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"],i.customHeaders)}deleteOutboundSequence(e,i){if(i=i||{},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"],i.customHeaders)}getOutboundAttemptlimit(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getOutboundCampaignAgentownedmappingpreviewResults(e,i){if(i=i||{},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"],i.customHeaders)}getOutboundCampaignDiagnostics(e,i){if(i=i||{},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"],i.customHeaders)}getOutboundCampaignInteractions(e,i){if(i=i||{},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"],i.customHeaders)}getOutboundCampaignLinedistribution(e,i){if(i=i||{},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:i.includeOnlyActiveCampaigns,edgeGroupId:i.edgeGroupId,siteId:i.siteId,useWeight:i.useWeight,relativeWeight:i.relativeWeight,outboundLineCount:i.outboundLineCount},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getOutboundCampaignProgress(e,i){if(i=i||{},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"],i.customHeaders)}getOutboundCampaignSkillcombinations(e,i){if(i=i||{},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:i.pageNumber,pageSize:i.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getOutboundCampaignStats(e,i){if(i=i||{},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"],i.customHeaders)}getOutboundCampaignrule(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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:i.includeImportStatus,includeSize:i.includeSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getOutboundContactlistContact(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "contactListId" when calling getOutboundContactlistContact';if(i==null||i==="")throw'Missing the required parameter "contactId" when calling getOutboundContactlistContact';return this.apiClient.callApi("/api/v2/outbound/contactlists/{contactListId}/contacts/{contactId}","GET",{contactListId:e,contactId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getOutboundContactlistContactsBulkJob(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "contactListId" when calling getOutboundContactlistContactsBulkJob';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getOutboundContactlistContactsBulkJobs(e,i){if(i=i||{},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"],i.customHeaders)}getOutboundContactlistExport(e,i){if(i=i||{},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:i.download},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getOutboundContactlistImportstatus(e,i){if(i=i||{},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"],i.customHeaders)}getOutboundContactlistTimezonemappingpreview(e,i){if(i=i||{},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"],i.customHeaders)}getOutboundContactlistfilter(e,i){if(i=i||{},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"],i.customHeaders)}getOutboundContactlistfilters(e){return e=e||{},this.apiClient.callApi("/api/v2/outbound/contactlistfilters","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,allowEmptyResult:e.allowEmptyResult,filterType:e.filterType,name:e.name,sortBy:e.sortBy,sortOrder:e.sortOrder,contactListId:e.contactListId},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getOutboundContactlists(e){return e=e||{},this.apiClient.callApi("/api/v2/outbound/contactlists","GET",{},{includeImportStatus:e.includeImportStatus,includeSize:e.includeSize,pageSize:e.pageSize,pageNumber:e.pageNumber,allowEmptyResult:e.allowEmptyResult,filterType:e.filterType,name:e.name,id:this.apiClient.buildCollectionParam(e.id,"multi"),divisionId:this.apiClient.buildCollectionParam(e.divisionId,"multi"),sortBy:e.sortBy,sortOrder:e.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getOutboundContactlistsDivisionview(e,i){if(i=i||{},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:i.includeImportStatus,includeSize:i.includeSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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"],i.customHeaders)}getOutboundContactlisttemplates(e){return e=e||{},this.apiClient.callApi("/api/v2/outbound/contactlisttemplates","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,allowEmptyResult:e.allowEmptyResult,filterType:e.filterType,name:e.name,sortBy:e.sortBy,sortOrder:e.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getOutboundDiagnosticsCampaignSummary(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "campaignId" when calling getOutboundDiagnosticsCampaignSummary';if(i==null)throw'Missing the required parameter "start" when calling getOutboundDiagnosticsCampaignSummary';if(n==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:i,end:n},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getOutboundDigitalruleset(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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:i.includeImportStatus,includeSize:i.includeSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getOutboundDnclistExport(e,i){if(i=i||{},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:i.download},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getOutboundDnclistImportstatus(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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:i.includeImportStatus,includeSize:i.includeSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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:i.includeImportStatus},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getOutboundImporttemplateImportstatus(e,i){if(i=i||{},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:i.listNamePrefix},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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"],i.customHeaders)}getOutboundMessagingcampaignDiagnostics(e,i){if(i=i||{},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"],i.customHeaders)}getOutboundMessagingcampaignProgress(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "campaignId" when calling patchOutboundCampaign';if(i==null)throw'Missing the required parameter "body" when calling patchOutboundCampaign';return this.apiClient.callApi("/api/v2/outbound/campaigns/{campaignId}","PATCH",{campaignId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchOutboundDnclistCustomexclusioncolumns(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "dncListId" when calling patchOutboundDnclistCustomexclusioncolumns';if(i==null)throw'Missing the required parameter "body" when calling patchOutboundDnclistCustomexclusioncolumns';return this.apiClient.callApi("/api/v2/outbound/dnclists/{dncListId}/customexclusioncolumns","PATCH",{dncListId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchOutboundDnclistEmailaddresses(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "dncListId" when calling patchOutboundDnclistEmailaddresses';if(i==null)throw'Missing the required parameter "body" when calling patchOutboundDnclistEmailaddresses';return this.apiClient.callApi("/api/v2/outbound/dnclists/{dncListId}/emailaddresses","PATCH",{dncListId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchOutboundDnclistPhonenumbers(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "dncListId" when calling patchOutboundDnclistPhonenumbers';if(i==null)throw'Missing the required parameter "body" when calling patchOutboundDnclistPhonenumbers';return this.apiClient.callApi("/api/v2/outbound/dnclists/{dncListId}/phonenumbers","PATCH",{dncListId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchOutboundDnclistWhatsappnumbers(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "dncListId" when calling patchOutboundDnclistWhatsappnumbers';if(i==null)throw'Missing the required parameter "body" when calling patchOutboundDnclistWhatsappnumbers';return this.apiClient.callApi("/api/v2/outbound/dnclists/{dncListId}/whatsappnumbers","PATCH",{dncListId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchOutboundSettings(e,i){if(i=i||{},e==null)throw'Missing the required parameter "body" when calling patchOutboundSettings';return this.apiClient.callApi("/api/v2/outbound/settings","PATCH",{},{useMaxCallsPerAgentDecimal:i.useMaxCallsPerAgentDecimal},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postOutboundAttemptlimits(e,i){if(i=i||{},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"],i.customHeaders)}postOutboundCallabletimesets(e,i){if(i=i||{},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"],i.customHeaders)}postOutboundCallanalysisresponsesets(e,i){if(i=i||{},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"],i.customHeaders)}postOutboundCampaignAgentownedmappingpreview(e,i){if(i=i||{},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"],i.customHeaders)}postOutboundCampaignCallbackSchedule(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "campaignId" when calling postOutboundCampaignCallbackSchedule';if(i==null)throw'Missing the required parameter "body" when calling postOutboundCampaignCallbackSchedule';return this.apiClient.callApi("/api/v2/outbound/campaigns/{campaignId}/callback/schedule","POST",{campaignId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postOutboundCampaignStart(e,i){if(i=i||{},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"],i.customHeaders)}postOutboundCampaignStop(e,i){if(i=i||{},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"],i.customHeaders)}postOutboundCampaignrules(e,i){if(i=i||{},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"],i.customHeaders)}postOutboundCampaigns(e,i){if(i=i||{},e==null)throw'Missing the required parameter "body" when calling postOutboundCampaigns';return this.apiClient.callApi("/api/v2/outbound/campaigns","POST",{},{useMaxCallsPerAgentDecimal:i.useMaxCallsPerAgentDecimal},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postOutboundCampaignsPerformanceQuery(e,i){if(i=i||{},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"],i.customHeaders)}postOutboundCampaignsProgress(e,i){if(i=i||{},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"],i.customHeaders)}postOutboundContactlistClear(e,i){if(i=i||{},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"],i.customHeaders)}postOutboundContactlistContacts(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "contactListId" when calling postOutboundContactlistContacts';if(i==null)throw'Missing the required parameter "body" when calling postOutboundContactlistContacts';return this.apiClient.callApi("/api/v2/outbound/contactlists/{contactListId}/contacts","POST",{contactListId:e},{priority:n.priority,clearSystemData:n.clearSystemData,doNotQueue:n.doNotQueue},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postOutboundContactlistContactsBulk(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "contactListId" when calling postOutboundContactlistContactsBulk';if(i==null)throw'Missing the required parameter "body" when calling postOutboundContactlistContactsBulk';return this.apiClient.callApi("/api/v2/outbound/contactlists/{contactListId}/contacts/bulk","POST",{contactListId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postOutboundContactlistContactsBulkRemove(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "contactListId" when calling postOutboundContactlistContactsBulkRemove';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postOutboundContactlistContactsBulkUpdate(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "contactListId" when calling postOutboundContactlistContactsBulkUpdate';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postOutboundContactlistContactsSearch(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "contactListId" when calling postOutboundContactlistContactsSearch';if(i==null)throw'Missing the required parameter "body" when calling postOutboundContactlistContactsSearch';return this.apiClient.callApi("/api/v2/outbound/contactlists/{contactListId}/contacts/search","POST",{contactListId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postOutboundContactlistExport(e,i){if(i=i||{},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},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postOutboundContactlistfilters(e,i){if(i=i||{},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"],i.customHeaders)}postOutboundContactlistfiltersBulkRetrieve(e,i){if(i=i||{},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"],i.customHeaders)}postOutboundContactlistfiltersPreview(e,i){if(i=i||{},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"],i.customHeaders)}postOutboundContactlists(e,i){if(i=i||{},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"],i.customHeaders)}postOutboundContactlistsUploads(e,i){if(i=i||{},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"],i.customHeaders)}postOutboundContactlisttemplates(e,i){if(i=i||{},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"],i.customHeaders)}postOutboundContactlisttemplatesBulkAdd(e,i){if(i=i||{},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"],i.customHeaders)}postOutboundContactlisttemplatesBulkRetrieve(e,i){if(i=i||{},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"],i.customHeaders)}postOutboundConversationDnc(e,i){if(i=i||{},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"],i.customHeaders)}postOutboundDigitalrulesets(e,i){if(i=i||{},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"],i.customHeaders)}postOutboundDnclistEmailaddresses(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "dncListId" when calling postOutboundDnclistEmailaddresses';if(i==null)throw'Missing the required parameter "body" when calling postOutboundDnclistEmailaddresses';return this.apiClient.callApi("/api/v2/outbound/dnclists/{dncListId}/emailaddresses","POST",{dncListId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postOutboundDnclistExport(e,i){if(i=i||{},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"],i.customHeaders)}postOutboundDnclistPhonenumbers(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "dncListId" when calling postOutboundDnclistPhonenumbers';if(i==null)throw'Missing the required parameter "body" when calling postOutboundDnclistPhonenumbers';return this.apiClient.callApi("/api/v2/outbound/dnclists/{dncListId}/phonenumbers","POST",{dncListId:e},{expirationDateTime:n.expirationDateTime},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postOutboundDnclists(e,i){if(i=i||{},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"],i.customHeaders)}postOutboundDnclistsUploads(e,i){if(i=i||{},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"],i.customHeaders)}postOutboundFilespecificationtemplates(e,i){if(i=i||{},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"],i.customHeaders)}postOutboundImporttemplates(e,i){if(i=i||{},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"],i.customHeaders)}postOutboundImporttemplatesBulkAdd(e,i){if(i=i||{},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"],i.customHeaders)}postOutboundMessagingcampaignStart(e,i){if(i=i||{},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"],i.customHeaders)}postOutboundMessagingcampaignStop(e,i){if(i=i||{},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"],i.customHeaders)}postOutboundMessagingcampaigns(e,i){if(i=i||{},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"],i.customHeaders)}postOutboundMessagingcampaignsProgress(e,i){if(i=i||{},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"],i.customHeaders)}postOutboundRulesets(e,i){if(i=i||{},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"],i.customHeaders)}postOutboundSequences(e,i){if(i=i||{},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"],i.customHeaders)}putOutboundAttemptlimit(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "attemptLimitsId" when calling putOutboundAttemptlimit';if(i==null)throw'Missing the required parameter "body" when calling putOutboundAttemptlimit';return this.apiClient.callApi("/api/v2/outbound/attemptlimits/{attemptLimitsId}","PUT",{attemptLimitsId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putOutboundCallabletimeset(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "callableTimeSetId" when calling putOutboundCallabletimeset';if(i==null)throw'Missing the required parameter "body" when calling putOutboundCallabletimeset';return this.apiClient.callApi("/api/v2/outbound/callabletimesets/{callableTimeSetId}","PUT",{callableTimeSetId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putOutboundCallanalysisresponseset(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "callAnalysisSetId" when calling putOutboundCallanalysisresponseset';if(i==null)throw'Missing the required parameter "body" when calling putOutboundCallanalysisresponseset';return this.apiClient.callApi("/api/v2/outbound/callanalysisresponsesets/{callAnalysisSetId}","PUT",{callAnalysisSetId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putOutboundCampaign(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "campaignId" when calling putOutboundCampaign';if(i==null)throw'Missing the required parameter "body" when calling putOutboundCampaign';return this.apiClient.callApi("/api/v2/outbound/campaigns/{campaignId}","PUT",{campaignId:e},{useMaxCallsPerAgentDecimal:n.useMaxCallsPerAgentDecimal},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putOutboundCampaignAgent(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "campaignId" when calling putOutboundCampaignAgent';if(i==null||i==="")throw'Missing the required parameter "userId" when calling putOutboundCampaignAgent';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}putOutboundCampaignrule(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "campaignRuleId" when calling putOutboundCampaignrule';if(i==null)throw'Missing the required parameter "body" when calling putOutboundCampaignrule';return this.apiClient.callApi("/api/v2/outbound/campaignrules/{campaignRuleId}","PUT",{campaignRuleId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putOutboundContactlist(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "contactListId" when calling putOutboundContactlist';if(i==null)throw'Missing the required parameter "body" when calling putOutboundContactlist';return this.apiClient.callApi("/api/v2/outbound/contactlists/{contactListId}","PUT",{contactListId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putOutboundContactlistContact(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "contactListId" when calling putOutboundContactlistContact';if(i==null||i==="")throw'Missing the required parameter "contactId" when calling putOutboundContactlistContact';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}putOutboundContactlistfilter(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "contactListFilterId" when calling putOutboundContactlistfilter';if(i==null)throw'Missing the required parameter "body" when calling putOutboundContactlistfilter';return this.apiClient.callApi("/api/v2/outbound/contactlistfilters/{contactListFilterId}","PUT",{contactListFilterId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putOutboundContactlisttemplate(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "contactListTemplateId" when calling putOutboundContactlisttemplate';if(i==null)throw'Missing the required parameter "body" when calling putOutboundContactlisttemplate';return this.apiClient.callApi("/api/v2/outbound/contactlisttemplates/{contactListTemplateId}","PUT",{contactListTemplateId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putOutboundDigitalruleset(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "digitalRuleSetId" when calling putOutboundDigitalruleset';if(i==null)throw'Missing the required parameter "body" when calling putOutboundDigitalruleset';return this.apiClient.callApi("/api/v2/outbound/digitalrulesets/{digitalRuleSetId}","PUT",{digitalRuleSetId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putOutboundDnclist(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "dncListId" when calling putOutboundDnclist';if(i==null)throw'Missing the required parameter "body" when calling putOutboundDnclist';return this.apiClient.callApi("/api/v2/outbound/dnclists/{dncListId}","PUT",{dncListId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putOutboundFilespecificationtemplate(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "fileSpecificationTemplateId" when calling putOutboundFilespecificationtemplate';if(i==null)throw'Missing the required parameter "body" when calling putOutboundFilespecificationtemplate';return this.apiClient.callApi("/api/v2/outbound/filespecificationtemplates/{fileSpecificationTemplateId}","PUT",{fileSpecificationTemplateId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putOutboundImporttemplate(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "importTemplateId" when calling putOutboundImporttemplate';if(i==null)throw'Missing the required parameter "body" when calling putOutboundImporttemplate';return this.apiClient.callApi("/api/v2/outbound/importtemplates/{importTemplateId}","PUT",{importTemplateId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putOutboundMessagingcampaign(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "messagingCampaignId" when calling putOutboundMessagingcampaign';if(i==null)throw'Missing the required parameter "body" when calling putOutboundMessagingcampaign';return this.apiClient.callApi("/api/v2/outbound/messagingcampaigns/{messagingCampaignId}","PUT",{messagingCampaignId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putOutboundRuleset(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "ruleSetId" when calling putOutboundRuleset';if(i==null)throw'Missing the required parameter "body" when calling putOutboundRuleset';return this.apiClient.callApi("/api/v2/outbound/rulesets/{ruleSetId}","PUT",{ruleSetId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putOutboundSchedulesCampaign(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "campaignId" when calling putOutboundSchedulesCampaign';if(i==null)throw'Missing the required parameter "body" when calling putOutboundSchedulesCampaign';return this.apiClient.callApi("/api/v2/outbound/schedules/campaigns/{campaignId}","PUT",{campaignId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putOutboundSchedulesEmailcampaign(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "emailCampaignId" when calling putOutboundSchedulesEmailcampaign';if(i==null)throw'Missing the required parameter "body" when calling putOutboundSchedulesEmailcampaign';return this.apiClient.callApi("/api/v2/outbound/schedules/emailcampaigns/{emailCampaignId}","PUT",{emailCampaignId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putOutboundSchedulesMessagingcampaign(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "messagingCampaignId" when calling putOutboundSchedulesMessagingcampaign';if(i==null)throw'Missing the required parameter "body" when calling putOutboundSchedulesMessagingcampaign';return this.apiClient.callApi("/api/v2/outbound/schedules/messagingcampaigns/{messagingCampaignId}","PUT",{messagingCampaignId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putOutboundSchedulesSequence(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "sequenceId" when calling putOutboundSchedulesSequence';if(i==null)throw'Missing the required parameter "body" when calling putOutboundSchedulesSequence';return this.apiClient.callApi("/api/v2/outbound/schedules/sequences/{sequenceId}","PUT",{sequenceId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putOutboundSchedulesWhatsappcampaign(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "whatsAppCampaignId" when calling putOutboundSchedulesWhatsappcampaign';if(i==null)throw'Missing the required parameter "body" when calling putOutboundSchedulesWhatsappcampaign';return this.apiClient.callApi("/api/v2/outbound/schedules/whatsappcampaigns/{whatsAppCampaignId}","PUT",{whatsAppCampaignId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putOutboundSequence(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "sequenceId" when calling putOutboundSequence';if(i==null)throw'Missing the required parameter "body" when calling putOutboundSequence';return this.apiClient.callApi("/api/v2/outbound/sequences/{sequenceId}","PUT",{sequenceId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putOutboundWrapupcodemappings(e,i){if(i=i||{},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"],i.customHeaders)}},Ob=class{constructor(e){this.apiClient=e||q.instance}deletePresenceDefinition0(e,i){if(i=i||{},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"],i.customHeaders)}deletePresenceSource(e,i){if(i=i||{},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"],i.customHeaders)}deletePresencedefinition(e,i){if(i=i||{},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"],i.customHeaders)}getPresenceDefinition0(e,i){if(i=i||{},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:i.localeCode},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getPresencedefinition(e,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "presenceId" when calling getPresencedefinition';return this.apiClient.callApi("/api/v2/presencedefinitions/{presenceId}","GET",{presenceId:e},{localeCode:i.localeCode},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling getUserPresence';if(i==null||i==="")throw'Missing the required parameter "sourceId" when calling getUserPresence';return this.apiClient.callApi("/api/v2/users/{userId}/presences/{sourceId}","GET",{userId:e,sourceId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getUserPresencesPurecloud(e,i){if(i=i||{},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"],i.customHeaders)}getUsersPresenceBulk(e,i){if(i=i||{},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(i.id,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "userId" when calling patchUserPresence';if(i==null||i==="")throw'Missing the required parameter "sourceId" when calling patchUserPresence';if(n==null)throw'Missing the required parameter "body" when calling patchUserPresence';return this.apiClient.callApi("/api/v2/users/{userId}/presences/{sourceId}","PATCH",{userId:e,sourceId:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchUserPresencesPurecloud(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling patchUserPresencesPurecloud';if(i==null)throw'Missing the required parameter "body" when calling patchUserPresencesPurecloud';return this.apiClient.callApi("/api/v2/users/{userId}/presences/purecloud","PATCH",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postPresenceDefinitions0(e,i){if(i=i||{},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"],i.customHeaders)}postPresenceSources(e,i){if(i=i||{},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"],i.customHeaders)}postPresencedefinitions(e,i){if(i=i||{},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"],i.customHeaders)}putPresenceDefinition0(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "definitionId" when calling putPresenceDefinition0';if(i==null)throw'Missing the required parameter "body" when calling putPresenceDefinition0';return this.apiClient.callApi("/api/v2/presence/definitions/{definitionId}","PUT",{definitionId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putPresenceSettings(e,i){if(i=i||{},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"],i.customHeaders)}putPresenceSource(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "sourceId" when calling putPresenceSource';if(i==null)throw'Missing the required parameter "body" when calling putPresenceSource';return this.apiClient.callApi("/api/v2/presence/sources/{sourceId}","PUT",{sourceId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putPresenceUserPrimarysource(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling putPresenceUserPrimarysource';if(i==null)throw'Missing the required parameter "body" when calling putPresenceUserPrimarysource';return this.apiClient.callApi("/api/v2/presence/users/{userId}/primarysource","PUT",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putPresencedefinition(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "presenceId" when calling putPresencedefinition';if(i==null)throw'Missing the required parameter "body" when calling putPresencedefinition';return this.apiClient.callApi("/api/v2/presencedefinitions/{presenceId}","PUT",{presenceId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putUsersPresencesBulk(e,i){if(i=i||{},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"],i.customHeaders)}},xb=class{constructor(e){this.apiClient=e||q.instance}deleteProcessautomationScheduledtrigger(e,i){if(i=i||{},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"],i.customHeaders)}deleteProcessautomationTrigger(e,i){if(i=i||{},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"],i.customHeaders)}getProcessautomationScheduledtrigger(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}postProcessautomationTriggerTest(e,i){if(i=i||{},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},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postProcessautomationTriggers(e,i){if(i=i||{},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"],i.customHeaders)}postProcessautomationTriggersTopicTest(e,i){if(i=i||{},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},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}putProcessautomationScheduledtrigger(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "scheduledTriggerId" when calling putProcessautomationScheduledtrigger';if(i==null)throw'Missing the required parameter "body" when calling putProcessautomationScheduledtrigger';return this.apiClient.callApi("/api/v2/processautomation/scheduledtriggers/{scheduledTriggerId}","PUT",{scheduledTriggerId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putProcessautomationTrigger(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "triggerId" when calling putProcessautomationTrigger';if(i==null)throw'Missing the required parameter "body" when calling putProcessautomationTrigger';return this.apiClient.callApi("/api/v2/processautomation/triggers/{triggerId}","PUT",{triggerId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}},Tb=class{constructor(e){this.apiClient=e||q.instance}deleteAnalyticsEvaluationsAggregatesJob(e,i){if(i=i||{},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"],i.customHeaders)}deleteAnalyticsSurveysAggregatesJob(e,i){if(i=i||{},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"],i.customHeaders)}deleteQualityCalibration(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "calibrationId" when calling deleteQualityCalibration';if(i==null)throw'Missing the required parameter "calibratorId" when calling deleteQualityCalibration';return this.apiClient.callApi("/api/v2/quality/calibrations/{calibrationId}","DELETE",{calibrationId:e},{calibratorId:i},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteQualityConversationEvaluation(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling deleteQualityConversationEvaluation';if(i==null||i==="")throw'Missing the required parameter "evaluationId" when calling deleteQualityConversationEvaluation';return this.apiClient.callApi("/api/v2/quality/conversations/{conversationId}/evaluations/{evaluationId}","DELETE",{conversationId:e,evaluationId:i},{expand:n.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteQualityForm(e,i){if(i=i||{},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"],i.customHeaders)}deleteQualityFormsEvaluation(e,i){if(i=i||{},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"],i.customHeaders)}deleteQualityFormsSurvey(e,i){if(i=i||{},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"],i.customHeaders)}deleteQualityProgramAgentscoringrule(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "programId" when calling deleteQualityProgramAgentscoringrule';if(i==null||i==="")throw'Missing the required parameter "ruleId" when calling deleteQualityProgramAgentscoringrule';return this.apiClient.callApi("/api/v2/quality/programs/{programId}/agentscoringrules/{ruleId}","DELETE",{programId:e,ruleId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getAnalyticsEvaluationsAggregatesJob(e,i){if(i=i||{},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"],i.customHeaders)}getAnalyticsEvaluationsAggregatesJobResults(e,i){if(i=i||{},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:i.cursor},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getAnalyticsSurveysAggregatesJob(e,i){if(i=i||{},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"],i.customHeaders)}getAnalyticsSurveysAggregatesJobResults(e,i){if(i=i||{},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:i.cursor},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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:i.calibratorId,conversationId:i.conversationId},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getQualityCalibrations(e,i){if(i=i||{},e==null)throw'Missing the required parameter "calibratorId" when calling getQualityCalibrations';return this.apiClient.callApi("/api/v2/quality/calibrations","GET",{},{pageSize:i.pageSize,pageNumber:i.pageNumber,sortBy:i.sortBy,expand:this.apiClient.buildCollectionParam(i.expand,"multi"),nextPage:i.nextPage,previousPage:i.previousPage,conversationId:i.conversationId,startTime:i.startTime,endTime:i.endTime,calibratorId:e},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getQualityConversationEvaluation(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getQualityConversationEvaluation';if(i==null||i==="")throw'Missing the required parameter "evaluationId" when calling getQualityConversationEvaluation';return this.apiClient.callApi("/api/v2/quality/conversations/{conversationId}/evaluations/{evaluationId}","GET",{conversationId:e,evaluationId:i},{expand:n.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getQualityConversationSurveys(e,i){if(i=i||{},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"],i.customHeaders)}getQualityConversationsAuditsQueryTransactionId(e,i){if(i=i||{},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"],i.customHeaders)}getQualityConversationsAuditsQueryTransactionIdResults(e,i){if(i=i||{},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:i.cursor,pageSize:i.pageSize,expand:this.apiClient.buildCollectionParam(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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"],i.customHeaders)}getQualityFormVersions(e,i){if(i=i||{},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:i.pageSize,pageNumber:i.pageNumber,sortOrder:i.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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"],i.customHeaders)}getQualityFormsEvaluationVersions(e,i){if(i=i||{},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:i.pageSize,pageNumber:i.pageNumber,sortOrder:i.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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:i.includeLatestVersionFormName},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getQualityFormsEvaluationsBulkContexts(e,i){if(i=i||{},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"],i.customHeaders)}getQualityFormsSurvey(e,i){if(i=i||{},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"],i.customHeaders)}getQualityFormsSurveyVersions(e,i){if(i=i||{},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:i.pageSize,pageNumber:i.pageNumber},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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"],i.customHeaders)}getQualityFormsSurveysBulkContexts(e,i){if(i=i||{},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:i.published},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getQualityProgramAgentscoringrule(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "programId" when calling getQualityProgramAgentscoringrule';if(i==null||i==="")throw'Missing the required parameter "ruleId" when calling getQualityProgramAgentscoringrule';return this.apiClient.callApi("/api/v2/quality/programs/{programId}/agentscoringrules/{ruleId}","GET",{programId:e,ruleId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getQualityProgramAgentscoringrules(e,i){if(i=i||{},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"],i.customHeaders)}getQualityPublishedform(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getQualityPublishedformsEvaluations(e){return e=e||{},this.apiClient.callApi("/api/v2/quality/publishedforms/evaluations","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,name:e.name,onlyLatestPerContext:e.onlyLatestPerContext},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getQualityPublishedformsSurvey(e,i){if(i=i||{},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"],i.customHeaders)}getQualityPublishedformsSurveys(e){return e=e||{},this.apiClient.callApi("/api/v2/quality/publishedforms/surveys","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,name:e.name,onlyLatestEnabledPerContext:e.onlyLatestEnabledPerContext},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getQualitySurvey(e,i){if(i=i||{},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"],i.customHeaders)}getQualitySurveysScorable(e,i){if(i=i||{},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"],i.customHeaders)}patchQualityFormsSurvey(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "formId" when calling patchQualityFormsSurvey';if(i==null)throw'Missing the required parameter "body" when calling patchQualityFormsSurvey';return this.apiClient.callApi("/api/v2/quality/forms/surveys/{formId}","PATCH",{formId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postAnalyticsEvaluationsAggregatesJobs(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsEvaluationsAggregatesQuery(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsSurveysAggregatesJobs(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsSurveysAggregatesQuery(e,i){if(i=i||{},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"],i.customHeaders)}postQualityCalibrations(e,i){if(i=i||{},e==null)throw'Missing the required parameter "body" when calling postQualityCalibrations';return this.apiClient.callApi("/api/v2/quality/calibrations","POST",{},{expand:i.expand},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postQualityConversationEvaluations(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postQualityConversationEvaluations';if(i==null)throw'Missing the required parameter "body" when calling postQualityConversationEvaluations';return this.apiClient.callApi("/api/v2/quality/conversations/{conversationId}/evaluations","POST",{conversationId:e},{expand:n.expand},{"Idempotency-Key":n.idempotencyKey},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postQualityConversationsAuditsQuery(e,i){if(i=i||{},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"],i.customHeaders)}postQualityEvaluationsAggregatesQueryMe(e,i){if(i=i||{},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"],i.customHeaders)}postQualityEvaluationsScoring(e,i){if(i=i||{},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"],i.customHeaders)}postQualityEvaluationsSearch(e,i){if(i=i||{},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"],i.customHeaders)}postQualityForms(e,i){if(i=i||{},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"],i.customHeaders)}postQualityFormsEvaluations(e,i){if(i=i||{},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"],i.customHeaders)}postQualityFormsSurveys(e,i){if(i=i||{},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"],i.customHeaders)}postQualityProgramAgentscoringrules(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "programId" when calling postQualityProgramAgentscoringrules';if(i==null)throw'Missing the required parameter "body" when calling postQualityProgramAgentscoringrules';return this.apiClient.callApi("/api/v2/quality/programs/{programId}/agentscoringrules","POST",{programId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postQualityPublishedforms(e,i){if(i=i||{},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"],i.customHeaders)}postQualityPublishedformsEvaluations(e,i){if(i=i||{},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"],i.customHeaders)}postQualityPublishedformsSurveys(e,i){if(i=i||{},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"],i.customHeaders)}postQualitySurveys(e,i){if(i=i||{},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"],i.customHeaders)}postQualitySurveysScoring(e,i){if(i=i||{},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"],i.customHeaders)}putQualityCalibration(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "calibrationId" when calling putQualityCalibration';if(i==null)throw'Missing the required parameter "body" when calling putQualityCalibration';return this.apiClient.callApi("/api/v2/quality/calibrations/{calibrationId}","PUT",{calibrationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putQualityConversationEvaluation(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling putQualityConversationEvaluation';if(i==null||i==="")throw'Missing the required parameter "evaluationId" when calling putQualityConversationEvaluation';if(n==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:i},{expand:a.expand},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}putQualityForm(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "formId" when calling putQualityForm';if(i==null)throw'Missing the required parameter "body" when calling putQualityForm';return this.apiClient.callApi("/api/v2/quality/forms/{formId}","PUT",{formId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putQualityFormsEvaluation(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "formId" when calling putQualityFormsEvaluation';if(i==null)throw'Missing the required parameter "body" when calling putQualityFormsEvaluation';return this.apiClient.callApi("/api/v2/quality/forms/evaluations/{formId}","PUT",{formId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putQualityFormsEvaluationAiscoringSettings(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "formId" when calling putQualityFormsEvaluationAiscoringSettings';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putQualityFormsSurvey(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "formId" when calling putQualityFormsSurvey';if(i==null)throw'Missing the required parameter "body" when calling putQualityFormsSurvey';return this.apiClient.callApi("/api/v2/quality/forms/surveys/{formId}","PUT",{formId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putQualityProgramAgentscoringrule(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "programId" when calling putQualityProgramAgentscoringrule';if(i==null||i==="")throw'Missing the required parameter "ruleId" when calling putQualityProgramAgentscoringrule';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}putQualitySurveysScorable(e,i,n){if(n=n||{},e==null)throw'Missing the required parameter "customerSurveyUrl" when calling putQualitySurveysScorable';if(i==null)throw'Missing the required parameter "body" when calling putQualitySurveysScorable';return this.apiClient.callApi("/api/v2/quality/surveys/scorable","PUT",{},{customerSurveyUrl:e},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}},Mb=class{constructor(e){this.apiClient=e||q.instance}deleteConversationRecordingAnnotation(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling deleteConversationRecordingAnnotation';if(i==null||i==="")throw'Missing the required parameter "recordingId" when calling deleteConversationRecordingAnnotation';if(n==null||n==="")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:i,annotationId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}deleteOrphanrecording(e,i){if(i=i||{},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"],i.customHeaders)}deleteRecordingCrossplatformMediaretentionpolicies(e,i){if(i=i||{},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"],i.customHeaders)}deleteRecordingCrossplatformMediaretentionpolicy(e,i){if(i=i||{},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"],i.customHeaders)}deleteRecordingJob(e,i){if(i=i||{},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"],i.customHeaders)}deleteRecordingMediaretentionpolicies(e,i){if(i=i||{},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"],i.customHeaders)}deleteRecordingMediaretentionpolicy(e,i){if(i=i||{},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"],i.customHeaders)}getConversationRecording(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationRecording';if(i==null||i==="")throw'Missing the required parameter "recordingId" when calling getConversationRecording';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/recordings/{recordingId}","GET",{conversationId:e,recordingId:i},{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)}getConversationRecordingAnnotation(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationRecordingAnnotation';if(i==null||i==="")throw'Missing the required parameter "recordingId" when calling getConversationRecordingAnnotation';if(n==null||n==="")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:i,annotationId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getConversationRecordingAnnotations(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationRecordingAnnotations';if(i==null||i==="")throw'Missing the required parameter "recordingId" when calling getConversationRecordingAnnotations';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/recordings/{recordingId}/annotations","GET",{conversationId:e,recordingId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getConversationRecordingmetadata(e,i){if(i=i||{},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"],i.customHeaders)}getConversationRecordingmetadataRecordingId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationRecordingmetadataRecordingId';if(i==null||i==="")throw'Missing the required parameter "recordingId" when calling getConversationRecordingmetadataRecordingId';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/recordingmetadata/{recordingId}","GET",{conversationId:e,recordingId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getConversationRecordings(e,i){if(i=i||{},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:i.maxWaitMs,formatId:i.formatId,mediaFormats:this.apiClient.buildCollectionParam(i.mediaFormats,"multi"),locale:i.locale,includePauseAnnotationsForScreenRecordings:i.includePauseAnnotationsForScreenRecordings},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getOrphanrecording(e,i){if(i=i||{},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"],i.customHeaders)}getOrphanrecordingMedia(e,i){if(i=i||{},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: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)}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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getRecordingJob(e,i){if(i=i||{},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"],i.customHeaders)}getRecordingJobFailedrecordings(e,i){if(i=i||{},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:i.pageSize,pageNumber:i.pageNumber,includeTotal:i.includeTotal,cursor:i.cursor},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getRecordingsRetentionQuery(e,i){if(i=i||{},e==null)throw'Missing the required parameter "retentionThresholdDays" when calling getRecordingsRetentionQuery';return this.apiClient.callApi("/api/v2/recordings/retention/query","GET",{},{retentionThresholdDays:e,cursor:i.cursor,pageSize:i.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "policyId" when calling patchRecordingCrossplatformMediaretentionpolicy';if(i==null)throw'Missing the required parameter "body" when calling patchRecordingCrossplatformMediaretentionpolicy';return this.apiClient.callApi("/api/v2/recording/crossplatform/mediaretentionpolicies/{policyId}","PATCH",{policyId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchRecordingMediaretentionpolicy(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "policyId" when calling patchRecordingMediaretentionpolicy';if(i==null)throw'Missing the required parameter "body" when calling patchRecordingMediaretentionpolicy';return this.apiClient.callApi("/api/v2/recording/mediaretentionpolicies/{policyId}","PATCH",{policyId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postConversationRecordingAnnotations(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationRecordingAnnotations';if(i==null||i==="")throw'Missing the required parameter "recordingId" when calling postConversationRecordingAnnotations';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postRecordingBatchrequests(e,i){if(i=i||{},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"],i.customHeaders)}postRecordingCrossplatformMediaretentionpolicies(e,i){if(i=i||{},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"],i.customHeaders)}postRecordingJobs(e,i){if(i=i||{},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"],i.customHeaders)}postRecordingKeyconfigurations(e,i){if(i=i||{},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"],i.customHeaders)}postRecordingKeyconfigurationsValidate(e,i){if(i=i||{},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"],i.customHeaders)}postRecordingLocalkeys(e,i){if(i=i||{},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"],i.customHeaders)}postRecordingMediaretentionpolicies(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}postRecordingsDeletionprotection(e,i){if(i=i||{},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"],i.customHeaders)}postRecordingsScreensessionsAcknowledge(e,i){if(i=i||{},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"],i.customHeaders)}postRecordingsScreensessionsMetadata(e,i){if(i=i||{},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"],i.customHeaders)}putConversationRecording(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling putConversationRecording';if(i==null||i==="")throw'Missing the required parameter "recordingId" when calling putConversationRecording';if(n==null)throw'Missing the required parameter "body" when calling putConversationRecording';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/recordings/{recordingId}","PUT",{conversationId:e,recordingId:i},{clearExport:a.clearExport},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}putConversationRecordingAnnotation(e,i,n,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling putConversationRecordingAnnotation';if(i==null||i==="")throw'Missing the required parameter "recordingId" when calling putConversationRecordingAnnotation';if(n==null||n==="")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:i,annotationId:n},{},{},{},a,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}putOrphanrecording(e,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "orphanId" when calling putOrphanrecording';return this.apiClient.callApi("/api/v2/orphanrecordings/{orphanId}","PUT",{orphanId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}putRecordingCrossplatformMediaretentionpolicy(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "policyId" when calling putRecordingCrossplatformMediaretentionpolicy';if(i==null)throw'Missing the required parameter "body" when calling putRecordingCrossplatformMediaretentionpolicy';return this.apiClient.callApi("/api/v2/recording/crossplatform/mediaretentionpolicies/{policyId}","PUT",{policyId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putRecordingJob(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "jobId" when calling putRecordingJob';if(i==null)throw'Missing the required parameter "body" when calling putRecordingJob';return this.apiClient.callApi("/api/v2/recording/jobs/{jobId}","PUT",{jobId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putRecordingKeyconfiguration(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "keyConfigurationId" when calling putRecordingKeyconfiguration';if(i==null)throw'Missing the required parameter "body" when calling putRecordingKeyconfiguration';return this.apiClient.callApi("/api/v2/recording/keyconfigurations/{keyConfigurationId}","PUT",{keyConfigurationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putRecordingMediaretentionpolicy(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "policyId" when calling putRecordingMediaretentionpolicy';if(i==null)throw'Missing the required parameter "body" when calling putRecordingMediaretentionpolicy';return this.apiClient.callApi("/api/v2/recording/mediaretentionpolicies/{policyId}","PUT",{policyId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putRecordingRecordingkeysRotationschedule(e,i){if(i=i||{},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"],i.customHeaders)}putRecordingSettings(e,i){if(i=i||{},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"],i.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)}},Eb=class{constructor(e){this.apiClient=e||q.instance}deleteResponsemanagementLibrary(e,i){if(i=i||{},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"],i.customHeaders)}deleteResponsemanagementResponse(e,i){if(i=i||{},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"],i.customHeaders)}deleteResponsemanagementResponseasset(e,i){if(i=i||{},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"],i.customHeaders)}getResponsemanagementLibraries(e){return e=e||{},this.apiClient.callApi("/api/v2/responsemanagement/libraries","GET",{},{pageNumber:e.pageNumber,pageSize:e.pageSize,messagingTemplateFilter:e.messagingTemplateFilter,libraryPrefix:e.libraryPrefix},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getResponsemanagementLibrary(e,i){if(i=i||{},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"],i.customHeaders)}getResponsemanagementResponse(e,i){if(i=i||{},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:i.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getResponsemanagementResponseasset(e,i){if(i=i||{},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"],i.customHeaders)}getResponsemanagementResponseassetsStatusStatusId(e,i){if(i=i||{},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"],i.customHeaders)}getResponsemanagementResponses(e,i){if(i=i||{},e==null)throw'Missing the required parameter "libraryId" when calling getResponsemanagementResponses';return this.apiClient.callApi("/api/v2/responsemanagement/responses","GET",{},{libraryId:e,pageNumber:i.pageNumber,pageSize:i.pageSize,expand:i.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postResponsemanagementLibraries(e,i){if(i=i||{},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"],i.customHeaders)}postResponsemanagementLibrariesBulk(e,i){if(i=i||{},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"],i.customHeaders)}postResponsemanagementLibrariesQuery(e,i){if(i=i||{},e==null)throw'Missing the required parameter "body" when calling postResponsemanagementLibrariesQuery';return this.apiClient.callApi("/api/v2/responsemanagement/libraries/query","POST",{},{pageNumber:i.pageNumber,pageSize:i.pageSize},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postResponsemanagementResponseassetsBulk(e,i){if(i=i||{},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"],i.customHeaders)}postResponsemanagementResponseassetsSearch(e,i){if(i=i||{},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(i.expand,"multi")},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postResponsemanagementResponseassetsUploads(e,i){if(i=i||{},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"],i.customHeaders)}postResponsemanagementResponses(e,i){if(i=i||{},e==null)throw'Missing the required parameter "body" when calling postResponsemanagementResponses';return this.apiClient.callApi("/api/v2/responsemanagement/responses","POST",{},{expand:i.expand},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postResponsemanagementResponsesQuery(e,i){if(i=i||{},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"],i.customHeaders)}putResponsemanagementLibrary(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "libraryId" when calling putResponsemanagementLibrary';if(i==null)throw'Missing the required parameter "body" when calling putResponsemanagementLibrary';return this.apiClient.callApi("/api/v2/responsemanagement/libraries/{libraryId}","PUT",{libraryId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putResponsemanagementResponse(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "responseId" when calling putResponsemanagementResponse';if(i==null)throw'Missing the required parameter "body" when calling putResponsemanagementResponse';return this.apiClient.callApi("/api/v2/responsemanagement/responses/{responseId}","PUT",{responseId:e},{expand:n.expand},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putResponsemanagementResponseasset(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "responseAssetId" when calling putResponsemanagementResponseasset';if(i==null)throw'Missing the required parameter "body" when calling putResponsemanagementResponseasset';return this.apiClient.callApi("/api/v2/responsemanagement/responseassets/{responseAssetId}","PUT",{responseAssetId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}},kb=class{constructor(e){this.apiClient=e||q.instance}deleteRoutingAssessment(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}deleteRoutingEmailDomainRoute(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "domainName" when calling deleteRoutingEmailDomainRoute';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteRoutingEmailOutboundDomain(e,i){if(i=i||{},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"],i.customHeaders)}deleteRoutingLanguage(e,i){if(i=i||{},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"],i.customHeaders)}deleteRoutingPredictor(e,i){if(i=i||{},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"],i.customHeaders)}deleteRoutingPredictorsKeyperformanceindicator(e,i){if(i=i||{},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"],i.customHeaders)}deleteRoutingQueue(e,i){if(i=i||{},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:i.forceDelete},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}deleteRoutingQueueMember(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "queueId" when calling deleteRoutingQueueMember';if(i==null||i==="")throw'Missing the required parameter "memberId" when calling deleteRoutingQueueMember';return this.apiClient.callApi("/api/v2/routing/queues/{queueId}/members/{memberId}","DELETE",{queueId:e,memberId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteRoutingQueueUser(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "queueId" when calling deleteRoutingQueueUser';if(i==null||i==="")throw'Missing the required parameter "memberId" when calling deleteRoutingQueueUser';return this.apiClient.callApi("/api/v2/routing/queues/{queueId}/users/{memberId}","DELETE",{queueId:e,memberId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteRoutingQueueWrapupcode(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "queueId" when calling deleteRoutingQueueWrapupcode';if(i==null||i==="")throw'Missing the required parameter "codeId" when calling deleteRoutingQueueWrapupcode';return this.apiClient.callApi("/api/v2/routing/queues/{queueId}/wrapupcodes/{codeId}","DELETE",{queueId:e,codeId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.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,i){if(i=i||{},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"],i.customHeaders)}deleteRoutingSkillgroup(e,i){if(i=i||{},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"],i.customHeaders)}deleteRoutingSmsAddress(e,i){if(i=i||{},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"],i.customHeaders)}deleteRoutingSmsPhonenumber(e,i){if(i=i||{},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"],i.customHeaders)}deleteRoutingUserDirectroutingbackupSettings(e,i){if(i=i||{},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"],i.customHeaders)}deleteRoutingUserUtilization(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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:i.forceDelete},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}deleteRoutingUtilizationTag(e,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "tagId" when calling deleteRoutingUtilizationTag';return this.apiClient.callApi("/api/v2/routing/utilization/tags/{tagId}","DELETE",{tagId:e},{forceDelete:i.forceDelete},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}deleteRoutingWrapupcode(e,i){if(i=i||{},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"],i.customHeaders)}deleteUserRoutinglanguage(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling deleteUserRoutinglanguage';if(i==null||i==="")throw'Missing the required parameter "languageId" when calling deleteUserRoutinglanguage';return this.apiClient.callApi("/api/v2/users/{userId}/routinglanguages/{languageId}","DELETE",{userId:e,languageId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteUserRoutingskill(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling deleteUserRoutingskill';if(i==null||i==="")throw'Missing the required parameter "skillId" when calling deleteUserRoutingskill';return this.apiClient.callApi("/api/v2/users/{userId}/routingskills/{skillId}","DELETE",{userId:e,skillId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getRoutingAssessment(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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:i.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getRoutingEmailDomainDkim(e,i){if(i=i||{},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"],i.customHeaders)}getRoutingEmailDomainMailfrom(e,i){if(i=i||{},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"],i.customHeaders)}getRoutingEmailDomainRoute(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "domainName" when calling getRoutingEmailDomainRoute';if(i==null||i==="")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:i},{expand:this.apiClient.buildCollectionParam(n.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getRoutingEmailDomainRouteIdentityresolution(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "domainName" when calling getRoutingEmailDomainRouteIdentityresolution';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getRoutingEmailDomainRoutes(e,i){if(i=i||{},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:i.pageSize,pageNumber:i.pageNumber,pattern:i.pattern,expand:this.apiClient.buildCollectionParam(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getRoutingEmailDomainVerification(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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:i.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getRoutingEmailOutboundDomainActivation(e,i){if(i=i||{},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"],i.customHeaders)}getRoutingEmailOutboundDomains(e){return e=e||{},this.apiClient.callApi("/api/v2/routing/email/outbound/domains","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,filter:e.filter,expand:e.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getRoutingEmailSetup(e){return e=e||{},this.apiClient.callApi("/api/v2/routing/email/setup","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getRoutingLanguage(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getRoutingPredictorModelFeatures(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "predictorId" when calling getRoutingPredictorModelFeatures';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getRoutingPredictorModels(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getRoutingQueueAssistant(e,i){if(i=i||{},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(i.expand,"multi"),languageVariation:i.languageVariation,fallbackToPrimaryAssistant:i.fallbackToPrimaryAssistant},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getRoutingQueueComparisonperiod(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "queueId" when calling getRoutingQueueComparisonperiod';if(i==null||i==="")throw'Missing the required parameter "comparisonPeriodId" when calling getRoutingQueueComparisonperiod';return this.apiClient.callApi("/api/v2/routing/queues/{queueId}/comparisonperiods/{comparisonPeriodId}","GET",{queueId:e,comparisonPeriodId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getRoutingQueueComparisonperiods(e,i){if(i=i||{},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"],i.customHeaders)}getRoutingQueueEstimatedwaittime(e,i){if(i=i||{},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:i.conversationId},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getRoutingQueueIdentityresolution(e,i){if(i=i||{},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"],i.customHeaders)}getRoutingQueueMediatypeEstimatedwaittime(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "queueId" when calling getRoutingQueueMediatypeEstimatedwaittime';if(i==null||i==="")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:i},{labelId:n.labelId},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getRoutingQueueMembers(e,i){if(i=i||{},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:i.pageNumber,pageSize:i.pageSize,sortOrder:i.sortOrder,expand:this.apiClient.buildCollectionParam(i.expand,"multi"),name:i.name,profileSkills:this.apiClient.buildCollectionParam(i.profileSkills,"multi"),skills:this.apiClient.buildCollectionParam(i.skills,"multi"),languages:this.apiClient.buildCollectionParam(i.languages,"multi"),routingStatus:this.apiClient.buildCollectionParam(i.routingStatus,"multi"),presence:this.apiClient.buildCollectionParam(i.presence,"multi"),memberBy:i.memberBy,joined:i.joined},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getRoutingQueueUsers(e,i){if(i=i||{},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:i.pageNumber,pageSize:i.pageSize,sortOrder:i.sortOrder,expand:this.apiClient.buildCollectionParam(i.expand,"multi"),joined:i.joined,name:i.name,profileSkills:this.apiClient.buildCollectionParam(i.profileSkills,"multi"),skills:this.apiClient.buildCollectionParam(i.skills,"multi"),languages:this.apiClient.buildCollectionParam(i.languages,"multi"),routingStatus:this.apiClient.buildCollectionParam(i.routingStatus,"multi"),presence:this.apiClient.buildCollectionParam(i.presence,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getRoutingQueueWrapupcodes(e,i){if(i=i||{},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:i.pageSize,pageNumber:i.pageNumber,name:i.name},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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"],i.customHeaders)}getRoutingSkillgroup(e,i){if(i=i||{},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"],i.customHeaders)}getRoutingSkillgroupMembers(e,i){if(i=i||{},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:i.pageSize,after:i.after,before:i.before,expand:i.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getRoutingSkillgroupMembersDivisions(e,i){if(i=i||{},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:i.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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"],i.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,i,n){if(n=n||{},e==null)throw'Missing the required parameter "countryCode" when calling getRoutingSmsAvailablephonenumbers';if(i==null)throw'Missing the required parameter "phoneNumberType" when calling getRoutingSmsAvailablephonenumbers';return this.apiClient.callApi("/api/v2/routing/sms/availablephonenumbers","GET",{},{countryCode:e,region:n.region,city:n.city,areaCode:n.areaCode,phoneNumberType:i,pattern:n.pattern,addressRequirement:n.addressRequirement},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getRoutingSmsIdentityresolutionPhonenumber(e,i){if(i=i||{},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"],i.customHeaders)}getRoutingSmsPhonenumber(e,i){if(i=i||{},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:i.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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"],i.customHeaders)}getRoutingUserUtilization(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getRoutingUtilizationLabelAgents(e,i){if(i=i||{},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"],i.customHeaders)}getRoutingUtilizationLabels(e){return e=e||{},this.apiClient.callApi("/api/v2/routing/utilization/labels","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,sortOrder:e.sortOrder,name:e.name},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getRoutingUtilizationTag(e,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "tagId" when calling getRoutingUtilizationTag';return this.apiClient.callApi("/api/v2/routing/utilization/tags/{tagId}","GET",{tagId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getRoutingUtilizationTagAgents(e,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "tagId" when calling getRoutingUtilizationTagAgents';return this.apiClient.callApi("/api/v2/routing/utilization/tags/{tagId}/agents","GET",{tagId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getRoutingUtilizationTags(e){return e=e||{},this.apiClient.callApi("/api/v2/routing/utilization/tags","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,sortOrder:e.sortOrder,name:e.name},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getRoutingWrapupcode(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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:i.pageSize,pageNumber:i.pageNumber,joined:i.joined,divisionId:this.apiClient.buildCollectionParam(i.divisionId,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getUserRoutinglanguages(e,i){if(i=i||{},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:i.pageSize,pageNumber:i.pageNumber,sortOrder:i.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getUserRoutingskills(e,i){if(i=i||{},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:i.pageSize,pageNumber:i.pageNumber,sortOrder:i.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getUserSkillgroups(e,i){if(i=i||{},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:i.pageSize,after:i.after,before:i.before},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}patchRoutingConversation(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchRoutingConversation';if(i==null)throw'Missing the required parameter "body" when calling patchRoutingConversation';return this.apiClient.callApi("/api/v2/routing/conversations/{conversationId}","PATCH",{conversationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchRoutingEmailDomain(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "domainId" when calling patchRoutingEmailDomain';if(i==null)throw'Missing the required parameter "body" when calling patchRoutingEmailDomain';return this.apiClient.callApi("/api/v2/routing/email/domains/{domainId}","PATCH",{domainId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchRoutingEmailDomainValidate(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "domainId" when calling patchRoutingEmailDomainValidate';if(i==null)throw'Missing the required parameter "body" when calling patchRoutingEmailDomainValidate';return this.apiClient.callApi("/api/v2/routing/email/domains/{domainId}/validate","PATCH",{domainId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchRoutingEmailOutboundDomain(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "domainId" when calling patchRoutingEmailOutboundDomain';if(i==null)throw'Missing the required parameter "body" when calling patchRoutingEmailOutboundDomain';return this.apiClient.callApi("/api/v2/routing/email/outbound/domains/{domainId}","PATCH",{domainId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchRoutingPredictor(e,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "predictorId" when calling patchRoutingPredictor';return this.apiClient.callApi("/api/v2/routing/predictors/{predictorId}","PATCH",{predictorId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}patchRoutingPredictorsKeyperformanceindicator(e,i){if(i=i||{},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},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}patchRoutingQueueMember(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "queueId" when calling patchRoutingQueueMember';if(i==null||i==="")throw'Missing the required parameter "memberId" when calling patchRoutingQueueMember';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchRoutingQueueMembers(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "queueId" when calling patchRoutingQueueMembers';if(i==null)throw'Missing the required parameter "body" when calling patchRoutingQueueMembers';return this.apiClient.callApi("/api/v2/routing/queues/{queueId}/members","PATCH",{queueId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchRoutingQueueUser(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "queueId" when calling patchRoutingQueueUser';if(i==null||i==="")throw'Missing the required parameter "memberId" when calling patchRoutingQueueUser';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchRoutingQueueUsers(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "queueId" when calling patchRoutingQueueUsers';if(i==null)throw'Missing the required parameter "body" when calling patchRoutingQueueUsers';return this.apiClient.callApi("/api/v2/routing/queues/{queueId}/users","PATCH",{queueId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchRoutingSettingsContactcenter(e,i){if(i=i||{},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"],i.customHeaders)}patchRoutingSettingsTranscription(e,i){if(i=i||{},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"],i.customHeaders)}patchRoutingSkill(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "skillId" when calling patchRoutingSkill';if(i==null)throw'Missing the required parameter "body" when calling patchRoutingSkill';return this.apiClient.callApi("/api/v2/routing/skills/{skillId}","PATCH",{skillId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchRoutingSkillgroup(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "skillGroupId" when calling patchRoutingSkillgroup';if(i==null)throw'Missing the required parameter "body" when calling patchRoutingSkillgroup';return this.apiClient.callApi("/api/v2/routing/skillgroups/{skillGroupId}","PATCH",{skillGroupId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchRoutingSmsPhonenumber(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "phoneNumberId" when calling patchRoutingSmsPhonenumber';if(i==null)throw'Missing the required parameter "body" when calling patchRoutingSmsPhonenumber';return this.apiClient.callApi("/api/v2/routing/sms/phonenumbers/{phoneNumberId}","PATCH",{phoneNumberId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchUserQueue(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "queueId" when calling patchUserQueue';if(i==null||i==="")throw'Missing the required parameter "userId" when calling patchUserQueue';if(n==null)throw'Missing the required parameter "body" when calling patchUserQueue';return this.apiClient.callApi("/api/v2/users/{userId}/queues/{queueId}","PATCH",{queueId:e,userId:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchUserQueues(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling patchUserQueues';if(i==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(n.divisionId,"multi")},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchUserRoutinglanguage(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "userId" when calling patchUserRoutinglanguage';if(i==null||i==="")throw'Missing the required parameter "languageId" when calling patchUserRoutinglanguage';if(n==null)throw'Missing the required parameter "body" when calling patchUserRoutinglanguage';return this.apiClient.callApi("/api/v2/users/{userId}/routinglanguages/{languageId}","PATCH",{userId:e,languageId:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchUserRoutinglanguagesBulk(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling patchUserRoutinglanguagesBulk';if(i==null)throw'Missing the required parameter "body" when calling patchUserRoutinglanguagesBulk';return this.apiClient.callApi("/api/v2/users/{userId}/routinglanguages/bulk","PATCH",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchUserRoutingskillsBulk(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling patchUserRoutingskillsBulk';if(i==null)throw'Missing the required parameter "body" when calling patchUserRoutingskillsBulk';return this.apiClient.callApi("/api/v2/users/{userId}/routingskills/bulk","PATCH",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postAnalyticsQueuesObservationsQuery(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsRoutingActivityQuery(e,i){if(i=i||{},e==null)throw'Missing the required parameter "body" when calling postAnalyticsRoutingActivityQuery';return this.apiClient.callApi("/api/v2/analytics/routing/activity/query","POST",{},{pageSize:i.pageSize,pageNumber:i.pageNumber},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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"],i.customHeaders)}postRoutingEmailDomainMailfrom(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "domainId" when calling postRoutingEmailDomainMailfrom';if(i==null)throw'Missing the required parameter "body" when calling postRoutingEmailDomainMailfrom';return this.apiClient.callApi("/api/v2/routing/email/domains/{domainId}/mailfrom","POST",{domainId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postRoutingEmailDomainRoutes(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "domainName" when calling postRoutingEmailDomainRoutes';if(i==null)throw'Missing the required parameter "body" when calling postRoutingEmailDomainRoutes';return this.apiClient.callApi("/api/v2/routing/email/domains/{domainName}/routes","POST",{domainName:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postRoutingEmailDomainTestconnection(e,i){if(i=i||{},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},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postRoutingEmailDomainVerification(e,i){if(i=i||{},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"],i.customHeaders)}postRoutingEmailDomains(e,i){if(i=i||{},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"],i.customHeaders)}postRoutingEmailOutboundDomainTestconnection(e,i){if(i=i||{},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},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postRoutingEmailOutboundDomains(e,i){if(i=i||{},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"],i.customHeaders)}postRoutingEmailOutboundDomainsSimulated(e,i){if(i=i||{},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"],i.customHeaders)}postRoutingLanguages(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}postRoutingQueueMembers(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "queueId" when calling postRoutingQueueMembers';if(i==null)throw'Missing the required parameter "body" when calling postRoutingQueueMembers';return this.apiClient.callApi("/api/v2/routing/queues/{queueId}/members","POST",{queueId:e},{delete:n._delete},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postRoutingQueueUsers(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "queueId" when calling postRoutingQueueUsers';if(i==null)throw'Missing the required parameter "body" when calling postRoutingQueueUsers';return this.apiClient.callApi("/api/v2/routing/queues/{queueId}/users","POST",{queueId:e},{delete:n._delete},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postRoutingQueueWrapupcodes(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "queueId" when calling postRoutingQueueWrapupcodes';if(i==null)throw'Missing the required parameter "body" when calling postRoutingQueueWrapupcodes';return this.apiClient.callApi("/api/v2/routing/queues/{queueId}/wrapupcodes","POST",{queueId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postRoutingQueues(e,i){if(i=i||{},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"],i.customHeaders)}postRoutingSkillgroupMembersDivisions(e,i){if(i=i||{},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},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postRoutingSkillgroups(e,i){if(i=i||{},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"],i.customHeaders)}postRoutingSkills(e,i){if(i=i||{},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"],i.customHeaders)}postRoutingSmsAddresses(e,i){if(i=i||{},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"],i.customHeaders)}postRoutingSmsPhonenumbers(e,i){if(i=i||{},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"],i.customHeaders)}postRoutingSmsPhonenumbersAlphanumeric(e,i){if(i=i||{},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"],i.customHeaders)}postRoutingSmsPhonenumbersImport(e,i){if(i=i||{},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"],i.customHeaders)}postRoutingUtilizationLabels(e,i){if(i=i||{},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"],i.customHeaders)}postRoutingUtilizationTags(e,i){if(i=i||{},e==null)throw'Missing the required parameter "body" when calling postRoutingUtilizationTags';return this.apiClient.callApi("/api/v2/routing/utilization/tags","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postRoutingWrapupcodes(e,i){if(i=i||{},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"],i.customHeaders)}postUserRoutinglanguages(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling postUserRoutinglanguages';if(i==null)throw'Missing the required parameter "body" when calling postUserRoutinglanguages';return this.apiClient.callApi("/api/v2/users/{userId}/routinglanguages","POST",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postUserRoutingskills(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling postUserRoutingskills';if(i==null)throw'Missing the required parameter "body" when calling postUserRoutingskills';return this.apiClient.callApi("/api/v2/users/{userId}/routingskills","POST",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putRoutingDirectroutingbackupSettingsMe(e,i){if(i=i||{},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"],i.customHeaders)}putRoutingEmailDomainRoute(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "domainName" when calling putRoutingEmailDomainRoute';if(i==null||i==="")throw'Missing the required parameter "routeId" when calling putRoutingEmailDomainRoute';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}putRoutingEmailDomainRouteIdentityresolution(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "domainName" when calling putRoutingEmailDomainRouteIdentityresolution';if(i==null||i==="")throw'Missing the required parameter "routeId" when calling putRoutingEmailDomainRouteIdentityresolution';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}putRoutingEmailOutboundDomainActivation(e,i){if(i=i||{},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"],i.customHeaders)}putRoutingMessageRecipient(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "recipientId" when calling putRoutingMessageRecipient';if(i==null)throw'Missing the required parameter "body" when calling putRoutingMessageRecipient';return this.apiClient.callApi("/api/v2/routing/message/recipients/{recipientId}","PUT",{recipientId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putRoutingQueue(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "queueId" when calling putRoutingQueue';if(i==null)throw'Missing the required parameter "body" when calling putRoutingQueue';return this.apiClient.callApi("/api/v2/routing/queues/{queueId}","PUT",{queueId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putRoutingQueueIdentityresolution(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "queueId" when calling putRoutingQueueIdentityresolution';if(i==null)throw'Missing the required parameter "body" when calling putRoutingQueueIdentityresolution';return this.apiClient.callApi("/api/v2/routing/queues/{queueId}/identityresolution","PUT",{queueId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putRoutingSettings(e,i){if(i=i||{},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"],i.customHeaders)}putRoutingSettingsTranscription(e,i){if(i=i||{},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"],i.customHeaders)}putRoutingSmsIdentityresolutionPhonenumber(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "addressId" when calling putRoutingSmsIdentityresolutionPhonenumber';if(i==null)throw'Missing the required parameter "body" when calling putRoutingSmsIdentityresolutionPhonenumber';return this.apiClient.callApi("/api/v2/routing/sms/identityresolution/phonenumbers/{addressId}","PUT",{addressId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putRoutingUserDirectroutingbackupSettings(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling putRoutingUserDirectroutingbackupSettings';if(i==null)throw'Missing the required parameter "body" when calling putRoutingUserDirectroutingbackupSettings';return this.apiClient.callApi("/api/v2/routing/users/{userId}/directroutingbackup/settings","PUT",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putRoutingUserUtilization(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling putRoutingUserUtilization';if(i==null)throw'Missing the required parameter "body" when calling putRoutingUserUtilization';return this.apiClient.callApi("/api/v2/routing/users/{userId}/utilization","PUT",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putRoutingUtilization(e,i){if(i=i||{},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"],i.customHeaders)}putRoutingUtilizationLabel(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "labelId" when calling putRoutingUtilizationLabel';if(i==null)throw'Missing the required parameter "body" when calling putRoutingUtilizationLabel';return this.apiClient.callApi("/api/v2/routing/utilization/labels/{labelId}","PUT",{labelId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putRoutingWrapupcode(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "codeId" when calling putRoutingWrapupcode';if(i==null)throw'Missing the required parameter "body" when calling putRoutingWrapupcode';return this.apiClient.callApi("/api/v2/routing/wrapupcodes/{codeId}","PUT",{codeId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putUserRoutingskill(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "userId" when calling putUserRoutingskill';if(i==null||i==="")throw'Missing the required parameter "skillId" when calling putUserRoutingskill';if(n==null)throw'Missing the required parameter "body" when calling putUserRoutingskill';return this.apiClient.callApi("/api/v2/users/{userId}/routingskills/{skillId}","PUT",{userId:e,skillId:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}putUserRoutingskillsBulk(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling putUserRoutingskillsBulk';if(i==null)throw'Missing the required parameter "body" when calling putUserRoutingskillsBulk';return this.apiClient.callApi("/api/v2/users/{userId}/routingskills/bulk","PUT",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}},qb=class{constructor(e){this.apiClient=e||q.instance}deleteScimUser(e,i){if(i=i||{},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":i.ifMatch},{},null,["PureCloud OAuth"],["application/json"],["application/scim+json","application/json"],i.customHeaders)}deleteScimV2User(e,i){if(i=i||{},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":i.ifMatch},{},null,["PureCloud OAuth"],["application/json"],["application/scim+json","application/json"],i.customHeaders)}getScimGroup(e,i){if(i=i||{},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(i.attributes,"multi"),excludedAttributes:this.apiClient.buildCollectionParam(i.excludedAttributes,"multi")},{"If-None-Match":i.ifNoneMatch},{},null,["PureCloud OAuth"],["application/json"],["application/scim+json","application/json"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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(i.attributes,"multi"),excludedAttributes:this.apiClient.buildCollectionParam(i.excludedAttributes,"multi")},{"If-None-Match":i.ifNoneMatch},{},null,["PureCloud OAuth"],["application/json"],["application/scim+json","application/json"],i.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,i){if(i=i||{},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(i.attributes,"multi"),excludedAttributes:this.apiClient.buildCollectionParam(i.excludedAttributes,"multi")},{"If-None-Match":i.ifNoneMatch},{},null,["PureCloud OAuth"],["application/json"],["application/scim+json","application/json"],i.customHeaders)}getScimV2Groups(e,i){if(i=i||{},e==null)throw'Missing the required parameter "filter" when calling getScimV2Groups';return this.apiClient.callApi("/api/v2/scim/v2/groups","GET",{},{startIndex:i.startIndex,count:i.count,attributes:this.apiClient.buildCollectionParam(i.attributes,"multi"),excludedAttributes:this.apiClient.buildCollectionParam(i.excludedAttributes,"multi"),filter:e},{},{},null,["PureCloud OAuth"],["application/json"],["application/scim+json","application/json"],i.customHeaders)}getScimV2Resourcetype(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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(i.attributes,"multi"),excludedAttributes:this.apiClient.buildCollectionParam(i.excludedAttributes,"multi")},{"If-None-Match":i.ifNoneMatch},{},null,["PureCloud OAuth"],["application/json"],["application/scim+json","application/json"],i.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,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "groupId" when calling patchScimGroup';if(i==null)throw'Missing the required parameter "body" when calling patchScimGroup';return this.apiClient.callApi("/api/v2/scim/groups/{groupId}","PATCH",{groupId:e},{},{"If-Match":n.ifMatch},{},i,["PureCloud OAuth"],["application/scim+json","application/json"],["application/scim+json","application/json"],n.customHeaders)}patchScimUser(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling patchScimUser';if(i==null)throw'Missing the required parameter "body" when calling patchScimUser';return this.apiClient.callApi("/api/v2/scim/users/{userId}","PATCH",{userId:e},{},{"If-Match":n.ifMatch},{},i,["PureCloud OAuth"],["application/scim+json","application/json"],["application/scim+json","application/json"],n.customHeaders)}patchScimV2Group(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "groupId" when calling patchScimV2Group';if(i==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":n.ifMatch},{},i,["PureCloud OAuth"],["application/scim+json","application/json"],["application/scim+json","application/json"],n.customHeaders)}patchScimV2User(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling patchScimV2User';if(i==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":n.ifMatch},{},i,["PureCloud OAuth"],["application/scim+json","application/json"],["application/scim+json","application/json"],n.customHeaders)}postScimUsers(e,i){if(i=i||{},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"],i.customHeaders)}postScimV2Users(e,i){if(i=i||{},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"],i.customHeaders)}putScimGroup(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "groupId" when calling putScimGroup';if(i==null)throw'Missing the required parameter "body" when calling putScimGroup';return this.apiClient.callApi("/api/v2/scim/groups/{groupId}","PUT",{groupId:e},{},{"If-Match":n.ifMatch},{},i,["PureCloud OAuth"],["application/scim+json","application/json"],["application/scim+json","application/json"],n.customHeaders)}putScimUser(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling putScimUser';if(i==null)throw'Missing the required parameter "body" when calling putScimUser';return this.apiClient.callApi("/api/v2/scim/users/{userId}","PUT",{userId:e},{},{"If-Match":n.ifMatch},{},i,["PureCloud OAuth"],["application/scim+json","application/json"],["application/scim+json","application/json"],n.customHeaders)}putScimV2Group(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "groupId" when calling putScimV2Group';if(i==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":n.ifMatch},{},i,["PureCloud OAuth"],["application/scim+json","application/json"],["application/scim+json","application/json"],n.customHeaders)}putScimV2User(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling putScimV2User';if(i==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":n.ifMatch},{},i,["PureCloud OAuth"],["application/scim+json","application/json"],["application/scim+json","application/json"],n.customHeaders)}},_b=class{constructor(e){this.apiClient=e||q.instance}getScript(e,i){if(i=i||{},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"],i.customHeaders)}getScriptPage(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "scriptId" when calling getScriptPage';if(i==null||i==="")throw'Missing the required parameter "pageId" when calling getScriptPage';return this.apiClient.callApi("/api/v2/scripts/{scriptId}/pages/{pageId}","GET",{scriptId:e,pageId:i},{scriptDataVersion:n.scriptDataVersion},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getScriptPages(e,i){if(i=i||{},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:i.scriptDataVersion},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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:i.input,output:i.output,type:i.type,scriptDataVersion:i.scriptDataVersion},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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:i.scriptDataVersion},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getScriptsPublishedScriptIdPage(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "scriptId" when calling getScriptsPublishedScriptIdPage';if(i==null||i==="")throw'Missing the required parameter "pageId" when calling getScriptsPublishedScriptIdPage';return this.apiClient.callApi("/api/v2/scripts/published/{scriptId}/pages/{pageId}","GET",{scriptId:e,pageId:i},{scriptDataVersion:n.scriptDataVersion},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getScriptsPublishedScriptIdPages(e,i){if(i=i||{},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:i.scriptDataVersion},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getScriptsPublishedScriptIdVariables(e,i){if(i=i||{},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:i.input,output:i.output,type:i.type,scriptDataVersion:i.scriptDataVersion},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getScriptsUploadStatus(e,i){if(i=i||{},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:i.longPoll},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postScriptExport(e,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "scriptId" when calling postScriptExport';return this.apiClient.callApi("/api/v2/scripts/{scriptId}/export","POST",{scriptId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.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)}},Hb=class{constructor(e){this.apiClient=e||q.instance}getDocumentationGknSearch(e,i){if(i=i||{},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"],i.customHeaders)}getDocumentationSearch(e,i){if(i=i||{},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"],i.customHeaders)}getGroupsSearch(e,i){if(i=i||{},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(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getLocationsSearch(e,i){if(i=i||{},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(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getSearch(e,i){if(i=i||{},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(i.expand,"multi"),profile:i.profile},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getSearchSuggest(e,i){if(i=i||{},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(i.expand,"multi"),profile:i.profile},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getTelephonyProvidersEdgesSitesSearch(e,i){if(i=i||{},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(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getUsersSearch(e,i){if(i=i||{},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(i.expand,"multi"),integrationPresenceSource:i.integrationPresenceSource},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getVoicemailSearch(e,i){if(i=i||{},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(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postConversationsCustomattributesSearch(e,i){if(i=i||{},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"],i.customHeaders)}postConversationsParticipantsAttributesSearch(e,i){if(i=i||{},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"],i.customHeaders)}postDocumentationAllSearch(e,i){if(i=i||{},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"],i.customHeaders)}postDocumentationGknSearch(e,i){if(i=i||{},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"],i.customHeaders)}postDocumentationSearch(e,i){if(i=i||{},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"],i.customHeaders)}postGroupsSearch(e,i){if(i=i||{},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"],i.customHeaders)}postLocationsSearch(e,i){if(i=i||{},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"],i.customHeaders)}postSearch(e,i){if(i=i||{},e==null)throw'Missing the required parameter "body" when calling postSearch';return this.apiClient.callApi("/api/v2/search","POST",{},{profile:i.profile},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postSearchSuggest(e,i){if(i=i||{},e==null)throw'Missing the required parameter "body" when calling postSearchSuggest';return this.apiClient.callApi("/api/v2/search/suggest","POST",{},{profile:i.profile},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postSpeechandtextanalyticsTranscriptsSearch(e,i){if(i=i||{},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"],i.customHeaders)}postTeamsSearch(e,i){if(i=i||{},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"],i.customHeaders)}postTelephonyProvidersEdgesSitesSearch(e,i){if(i=i||{},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"],i.customHeaders)}postUsersSearch(e,i){if(i=i||{},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"],i.customHeaders)}postUsersSearchConversationTarget(e,i){if(i=i||{},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"],i.customHeaders)}postUsersSearchQueuemembersManage(e,i){if(i=i||{},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"],i.customHeaders)}postUsersSearchTeamsAssign(e,i){if(i=i||{},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"],i.customHeaders)}postVoicemailSearch(e,i){if(i=i||{},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"],i.customHeaders)}},Rb=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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}patchUsersAgentuiAgentsAutoanswerAgentIdSettings(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "agentId" when calling patchUsersAgentuiAgentsAutoanswerAgentIdSettings';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.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,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "agentId" when calling putUsersAgentuiAgentsAutoanswerAgentIdSettings';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}},Ib=class{constructor(e){this.apiClient=e||q.instance}deleteSocialmediaEscalationrule(e,i){if(i=i||{},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"],i.customHeaders)}deleteSocialmediaMessage(e,i){if(i=i||{},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"],i.customHeaders)}deleteSocialmediaTopic(e,i){if(i=i||{},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:i.hardDelete},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}deleteSocialmediaTopicDataingestionrulesFacebookFacebookIngestionRuleId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "topicId" when calling deleteSocialmediaTopicDataingestionrulesFacebookFacebookIngestionRuleId';if(i==null||i==="")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:i},{hardDelete:n.hardDelete},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteSocialmediaTopicDataingestionrulesGooglebusinessprofileGoogleBusinessProfileIngestionRuleId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "topicId" when calling deleteSocialmediaTopicDataingestionrulesGooglebusinessprofileGoogleBusinessProfileIngestionRuleId';if(i==null||i==="")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:i},{hardDelete:n.hardDelete},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteSocialmediaTopicDataingestionrulesInstagramInstagramIngestionRuleId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "topicId" when calling deleteSocialmediaTopicDataingestionrulesInstagramInstagramIngestionRuleId';if(i==null||i==="")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:i},{hardDelete:n.hardDelete},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteSocialmediaTopicDataingestionrulesOpenOpenId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "topicId" when calling deleteSocialmediaTopicDataingestionrulesOpenOpenId';if(i==null||i==="")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:i},{hardDelete:n.hardDelete},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteSocialmediaTopicDataingestionrulesTwitterTwitterIngestionRuleId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "topicId" when calling deleteSocialmediaTopicDataingestionrulesTwitterTwitterIngestionRuleId';if(i==null||i==="")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:i},{hardDelete:n.hardDelete},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getSocialmediaAnalyticsAggregatesJob(e,i){if(i=i||{},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"],i.customHeaders)}getSocialmediaAnalyticsAggregatesJobResults(e,i){if(i=i||{},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:i.cursor},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getSocialmediaAnalyticsMessagesJob(e,i){if(i=i||{},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"],i.customHeaders)}getSocialmediaAnalyticsMessagesJobResults(e,i){if(i=i||{},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:i.cursor},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getSocialmediaEscalationrule(e,i){if(i=i||{},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:i.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getSocialmediaEscalationrules(e,i){if(i=i||{},e==null)throw'Missing the required parameter "divisionId" when calling getSocialmediaEscalationrules';return this.apiClient.callApi("/api/v2/socialmedia/escalationrules","GET",{},{pageNumber:i.pageNumber,pageSize:i.pageSize,divisionId:e},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getSocialmediaTopic(e,i){if(i=i||{},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:i.includeDeleted},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getSocialmediaTopicDataingestionrules(e,i){if(i=i||{},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:i.pageNumber,pageSize:i.pageSize,includeDeleted:i.includeDeleted},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getSocialmediaTopicDataingestionrulesFacebookFacebookIngestionRuleId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "topicId" when calling getSocialmediaTopicDataingestionrulesFacebookFacebookIngestionRuleId';if(i==null||i==="")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:i},{includeDeleted:n.includeDeleted},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getSocialmediaTopicDataingestionrulesFacebookFacebookIngestionRuleIdVersion(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "topicId" when calling getSocialmediaTopicDataingestionrulesFacebookFacebookIngestionRuleIdVersion';if(i==null||i==="")throw'Missing the required parameter "facebookIngestionRuleId" when calling getSocialmediaTopicDataingestionrulesFacebookFacebookIngestionRuleIdVersion';if(n==null||n==="")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:i,dataIngestionRuleVersion:n},{includeDeleted:a.includeDeleted},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getSocialmediaTopicDataingestionrulesFacebookFacebookIngestionRuleIdVersions(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "topicId" when calling getSocialmediaTopicDataingestionrulesFacebookFacebookIngestionRuleIdVersions';if(i==null||i==="")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:i},{pageNumber:n.pageNumber,pageSize:n.pageSize,includeDeleted:n.includeDeleted},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getSocialmediaTopicDataingestionrulesGooglebusinessprofileGoogleBusinessProfileIngestionRuleId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "topicId" when calling getSocialmediaTopicDataingestionrulesGooglebusinessprofileGoogleBusinessProfileIngestionRuleId';if(i==null||i==="")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:i},{includeDeleted:n.includeDeleted},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getSocialmediaTopicDataingestionrulesGooglebusinessprofileGoogleBusinessProfileIngestionRuleIdVersion(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "topicId" when calling getSocialmediaTopicDataingestionrulesGooglebusinessprofileGoogleBusinessProfileIngestionRuleIdVersion';if(i==null||i==="")throw'Missing the required parameter "googleBusinessProfileIngestionRuleId" when calling getSocialmediaTopicDataingestionrulesGooglebusinessprofileGoogleBusinessProfileIngestionRuleIdVersion';if(n==null||n==="")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:i,dataIngestionRuleVersion:n},{includeDeleted:a.includeDeleted},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getSocialmediaTopicDataingestionrulesGooglebusinessprofileGoogleBusinessProfileIngestionRuleIdVersions(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "topicId" when calling getSocialmediaTopicDataingestionrulesGooglebusinessprofileGoogleBusinessProfileIngestionRuleIdVersions';if(i==null||i==="")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:i},{pageNumber:n.pageNumber,pageSize:n.pageSize,includeDeleted:n.includeDeleted},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getSocialmediaTopicDataingestionrulesInstagramInstagramIngestionRuleId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "topicId" when calling getSocialmediaTopicDataingestionrulesInstagramInstagramIngestionRuleId';if(i==null||i==="")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:i},{includeDeleted:n.includeDeleted},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getSocialmediaTopicDataingestionrulesInstagramInstagramIngestionRuleIdVersion(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "topicId" when calling getSocialmediaTopicDataingestionrulesInstagramInstagramIngestionRuleIdVersion';if(i==null||i==="")throw'Missing the required parameter "instagramIngestionRuleId" when calling getSocialmediaTopicDataingestionrulesInstagramInstagramIngestionRuleIdVersion';if(n==null||n==="")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:i,dataIngestionRuleVersion:n},{includeDeleted:a.includeDeleted},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getSocialmediaTopicDataingestionrulesInstagramInstagramIngestionRuleIdVersions(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "topicId" when calling getSocialmediaTopicDataingestionrulesInstagramInstagramIngestionRuleIdVersions';if(i==null||i==="")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:i},{pageNumber:n.pageNumber,pageSize:n.pageSize,includeDeleted:n.includeDeleted},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getSocialmediaTopicDataingestionrulesOpenOpenId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "topicId" when calling getSocialmediaTopicDataingestionrulesOpenOpenId';if(i==null||i==="")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:i},{includeDeleted:n.includeDeleted},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getSocialmediaTopicDataingestionrulesOpenOpenIdVersion(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "topicId" when calling getSocialmediaTopicDataingestionrulesOpenOpenIdVersion';if(i==null||i==="")throw'Missing the required parameter "openId" when calling getSocialmediaTopicDataingestionrulesOpenOpenIdVersion';if(n==null||n==="")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:i,dataIngestionRuleVersion:n},{includeDeleted:a.includeDeleted},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getSocialmediaTopicDataingestionrulesOpenOpenIdVersions(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "topicId" when calling getSocialmediaTopicDataingestionrulesOpenOpenIdVersions';if(i==null||i==="")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:i},{pageNumber:n.pageNumber,pageSize:n.pageSize,includeDeleted:n.includeDeleted},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getSocialmediaTopicDataingestionrulesTwitterTwitterIngestionRuleId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "topicId" when calling getSocialmediaTopicDataingestionrulesTwitterTwitterIngestionRuleId';if(i==null||i==="")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:i},{includeDeleted:n.includeDeleted},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getSocialmediaTopicDataingestionrulesTwitterTwitterIngestionRuleIdVersion(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "topicId" when calling getSocialmediaTopicDataingestionrulesTwitterTwitterIngestionRuleIdVersion';if(i==null||i==="")throw'Missing the required parameter "twitterIngestionRuleId" when calling getSocialmediaTopicDataingestionrulesTwitterTwitterIngestionRuleIdVersion';if(n==null||n==="")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:i,dataIngestionRuleVersion:n},{includeDeleted:a.includeDeleted},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getSocialmediaTopicDataingestionrulesTwitterTwitterIngestionRuleIdVersions(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "topicId" when calling getSocialmediaTopicDataingestionrulesTwitterTwitterIngestionRuleIdVersions';if(i==null||i==="")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:i},{pageNumber:n.pageNumber,pageSize:n.pageSize,includeDeleted:n.includeDeleted},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.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,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "topicId" when calling patchSocialmediaTopic';return this.apiClient.callApi("/api/v2/socialmedia/topics/{topicId}","PATCH",{topicId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}patchSocialmediaTopicDataingestionrulesFacebookFacebookIngestionRuleId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "topicId" when calling patchSocialmediaTopicDataingestionrulesFacebookFacebookIngestionRuleId';if(i==null||i==="")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:i},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchSocialmediaTopicDataingestionrulesGooglebusinessprofileGoogleBusinessProfileIngestionRuleId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "topicId" when calling patchSocialmediaTopicDataingestionrulesGooglebusinessprofileGoogleBusinessProfileIngestionRuleId';if(i==null||i==="")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:i},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchSocialmediaTopicDataingestionrulesInstagramInstagramIngestionRuleId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "topicId" when calling patchSocialmediaTopicDataingestionrulesInstagramInstagramIngestionRuleId';if(i==null||i==="")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:i},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchSocialmediaTopicDataingestionrulesOpenOpenId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "topicId" when calling patchSocialmediaTopicDataingestionrulesOpenOpenId';if(i==null||i==="")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:i},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchSocialmediaTopicDataingestionrulesTwitterTwitterIngestionRuleId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "topicId" when calling patchSocialmediaTopicDataingestionrulesTwitterTwitterIngestionRuleId';if(i==null||i==="")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:i},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postSocialmediaAnalyticsAggregatesJobs(e,i){if(i=i||{},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"],i.customHeaders)}postSocialmediaAnalyticsMessagesJobs(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},e==null)throw'Missing the required parameter "divisionId" when calling postSocialmediaEscalationsMessages';return this.apiClient.callApi("/api/v2/socialmedia/escalations/messages","POST",{},{divisionId:e},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postSocialmediaTopicDataingestionrulesFacebook(e,i){if(i=i||{},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},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postSocialmediaTopicDataingestionrulesGooglebusinessprofile(e,i){if(i=i||{},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},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postSocialmediaTopicDataingestionrulesInstagram(e,i){if(i=i||{},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},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postSocialmediaTopicDataingestionrulesOpen(e,i){if(i=i||{},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},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postSocialmediaTopicDataingestionrulesOpenRuleIdMessagesBulk(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "topicId" when calling postSocialmediaTopicDataingestionrulesOpenRuleIdMessagesBulk';if(i==null||i==="")throw'Missing the required parameter "ruleId" when calling postSocialmediaTopicDataingestionrulesOpenRuleIdMessagesBulk';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postSocialmediaTopicDataingestionrulesOpenRuleIdReactionsBulk(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "topicId" when calling postSocialmediaTopicDataingestionrulesOpenRuleIdReactionsBulk';if(i==null||i==="")throw'Missing the required parameter "ruleId" when calling postSocialmediaTopicDataingestionrulesOpenRuleIdReactionsBulk';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postSocialmediaTopicDataingestionrulesTwitter(e,i){if(i=i||{},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},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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"],i.customHeaders)}putSocialmediaEscalationrule(e,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "escalationRuleId" when calling putSocialmediaEscalationrule';return this.apiClient.callApi("/api/v2/socialmedia/escalationrules/{escalationRuleId}","PUT",{escalationRuleId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}putSocialmediaTopicDataingestionrulesFacebookFacebookIngestionRuleId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "topicId" when calling putSocialmediaTopicDataingestionrulesFacebookFacebookIngestionRuleId';if(i==null||i==="")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:i},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putSocialmediaTopicDataingestionrulesGooglebusinessprofileGoogleBusinessProfileIngestionRuleId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "topicId" when calling putSocialmediaTopicDataingestionrulesGooglebusinessprofileGoogleBusinessProfileIngestionRuleId';if(i==null||i==="")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:i},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putSocialmediaTopicDataingestionrulesInstagramInstagramIngestionRuleId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "topicId" when calling putSocialmediaTopicDataingestionrulesInstagramInstagramIngestionRuleId';if(i==null||i==="")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:i},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putSocialmediaTopicDataingestionrulesOpenOpenId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "topicId" when calling putSocialmediaTopicDataingestionrulesOpenOpenId';if(i==null||i==="")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:i},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putSocialmediaTopicDataingestionrulesTwitterTwitterIngestionRuleId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "topicId" when calling putSocialmediaTopicDataingestionrulesTwitterTwitterIngestionRuleId';if(i==null||i==="")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:i},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}},zb=class{constructor(e){this.apiClient=e||q.instance}deleteSpeechandtextanalyticsCategory(e,i){if(i=i||{},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"],i.customHeaders)}deleteSpeechandtextanalyticsDictionaryfeedbackDictionaryFeedbackId(e,i){if(i=i||{},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"],i.customHeaders)}deleteSpeechandtextanalyticsProgram(e,i){if(i=i||{},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:i.forceDelete},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}deleteSpeechandtextanalyticsReprocessingJob(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}deleteSpeechandtextanalyticsTopic(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getSpeechandtextanalyticsConversation(e,i){if(i=i||{},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"],i.customHeaders)}getSpeechandtextanalyticsConversationCategories(e,i){if(i=i||{},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:i.pageSize,pageNumber:i.pageNumber},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getSpeechandtextanalyticsConversationCommunicationTranscripturl(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getSpeechandtextanalyticsConversationCommunicationTranscripturl';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getSpeechandtextanalyticsConversationCommunicationTranscripturls(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getSpeechandtextanalyticsConversationCommunicationTranscripturls';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getSpeechandtextanalyticsConversationSentiments(e,i){if(i=i||{},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"],i.customHeaders)}getSpeechandtextanalyticsConversationSummaries(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getSpeechandtextanalyticsProgram(e,i){if(i=i||{},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"],i.customHeaders)}getSpeechandtextanalyticsProgramMappings(e,i){if(i=i||{},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"],i.customHeaders)}getSpeechandtextanalyticsProgramSettingsInsights(e,i){if(i=i||{},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"],i.customHeaders)}getSpeechandtextanalyticsProgramTranscriptionengines(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getSpeechandtextanalyticsProgramsSettingsInsights(e){return e=e||{},this.apiClient.callApi("/api/v2/speechandtextanalytics/programs/settings/insights","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,programIds:this.apiClient.buildCollectionParam(e.programIds,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getSpeechandtextanalyticsProgramsTopiclinksJob(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getSpeechandtextanalyticsReprocessingJobInteractions(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getSpeechandtextanalyticsTopics(e){return e=e||{},this.apiClient.callApi("/api/v2/speechandtextanalytics/topics","GET",{},{nextPage:e.nextPage,pageSize:e.pageSize,pageNumber:e.pageNumber,state:e.state,name:e.name,ids:this.apiClient.buildCollectionParam(e.ids,"multi"),dialects:this.apiClient.buildCollectionParam(e.dialects,"multi"),sortBy:e.sortBy,sortOrder:e.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getSpeechandtextanalyticsTopicsDialects(e){return e=e||{},this.apiClient.callApi("/api/v2/speechandtextanalytics/topics/dialects","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getSpeechandtextanalyticsTopicsGeneral(e){return e=e||{},this.apiClient.callApi("/api/v2/speechandtextanalytics/topics/general","GET",{},{dialect:e.dialect},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getSpeechandtextanalyticsTopicsGeneralStatus(e){return e=e||{},this.apiClient.callApi("/api/v2/speechandtextanalytics/topics/general/status","GET",{},{dialect:e.dialect},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getSpeechandtextanalyticsTopicsPublishjob(e,i){if(i=i||{},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"],i.customHeaders)}getSpeechandtextanalyticsTopicsTestphraseJob(e,i){if(i=i||{},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"],i.customHeaders)}getSpeechandtextanalyticsTranslationsLanguageConversation(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "languageId" when calling getSpeechandtextanalyticsTranslationsLanguageConversation';if(i==null||i==="")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:i},{communicationId:n.communicationId,recordingId:n.recordingId},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getSpeechandtextanalyticsTranslationsLanguages(e){return e=e||{},this.apiClient.callApi("/api/v2/speechandtextanalytics/translations/languages","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}patchSpeechandtextanalyticsSettings(e,i){if(i=i||{},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"],i.customHeaders)}postSpeechandtextanalyticsCategories(e,i){if(i=i||{},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"],i.customHeaders)}postSpeechandtextanalyticsDictionaryfeedback(e,i){if(i=i||{},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"],i.customHeaders)}postSpeechandtextanalyticsPrograms(e,i){if(i=i||{},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"],i.customHeaders)}postSpeechandtextanalyticsProgramsGeneralJobs(e,i){if(i=i||{},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"],i.customHeaders)}postSpeechandtextanalyticsProgramsPublishjobs(e,i){if(i=i||{},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"],i.customHeaders)}postSpeechandtextanalyticsReprocessingJobs(e,i){if(i=i||{},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"],i.customHeaders)}postSpeechandtextanalyticsSentimentfeedback(e,i){if(i=i||{},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"],i.customHeaders)}postSpeechandtextanalyticsTopics(e,i){if(i=i||{},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"],i.customHeaders)}postSpeechandtextanalyticsTopicsPublishjobs(e,i){if(i=i||{},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"],i.customHeaders)}postSpeechandtextanalyticsTopicsTestphraseJobs(e,i){if(i=i||{},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"],i.customHeaders)}postSpeechandtextanalyticsTranscriptsSearch(e,i){if(i=i||{},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"],i.customHeaders)}putSpeechandtextanalyticsCategory(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "categoryId" when calling putSpeechandtextanalyticsCategory';if(i==null)throw'Missing the required parameter "body" when calling putSpeechandtextanalyticsCategory';return this.apiClient.callApi("/api/v2/speechandtextanalytics/categories/{categoryId}","PUT",{categoryId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putSpeechandtextanalyticsDictionaryfeedbackDictionaryFeedbackId(e,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "dictionaryFeedbackId" when calling putSpeechandtextanalyticsDictionaryfeedbackDictionaryFeedbackId';return this.apiClient.callApi("/api/v2/speechandtextanalytics/dictionaryfeedback/{dictionaryFeedbackId}","PUT",{dictionaryFeedbackId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}putSpeechandtextanalyticsProgram(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "programId" when calling putSpeechandtextanalyticsProgram';if(i==null)throw'Missing the required parameter "body" when calling putSpeechandtextanalyticsProgram';return this.apiClient.callApi("/api/v2/speechandtextanalytics/programs/{programId}","PUT",{programId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putSpeechandtextanalyticsProgramMappings(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "programId" when calling putSpeechandtextanalyticsProgramMappings';if(i==null)throw'Missing the required parameter "body" when calling putSpeechandtextanalyticsProgramMappings';return this.apiClient.callApi("/api/v2/speechandtextanalytics/programs/{programId}/mappings","PUT",{programId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putSpeechandtextanalyticsProgramSettingsInsights(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "programId" when calling putSpeechandtextanalyticsProgramSettingsInsights';if(i==null)throw'Missing the required parameter "body" when calling putSpeechandtextanalyticsProgramSettingsInsights';return this.apiClient.callApi("/api/v2/speechandtextanalytics/programs/{programId}/settings/insights","PUT",{programId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putSpeechandtextanalyticsProgramTranscriptionengines(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "programId" when calling putSpeechandtextanalyticsProgramTranscriptionengines';if(i==null)throw'Missing the required parameter "body" when calling putSpeechandtextanalyticsProgramTranscriptionengines';return this.apiClient.callApi("/api/v2/speechandtextanalytics/programs/{programId}/transcriptionengines","PUT",{programId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putSpeechandtextanalyticsSettings(e,i){if(i=i||{},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"],i.customHeaders)}putSpeechandtextanalyticsTopic(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "topicId" when calling putSpeechandtextanalyticsTopic';if(i==null)throw'Missing the required parameter "body" when calling putSpeechandtextanalyticsTopic';return this.apiClient.callApi("/api/v2/speechandtextanalytics/topics/{topicId}","PUT",{topicId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}},Db=class{constructor(e){this.apiClient=e||q.instance}deleteStationAssociateduser(e,i){if(i=i||{},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"],i.customHeaders)}getStation(e,i){if(i=i||{},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"],i.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)}},Gb=class{constructor(e){this.apiClient=e||q.instance}getSearch(e,i){if(i=i||{},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(i.expand,"multi"),profile:i.profile},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getSearchSuggest(e,i){if(i=i||{},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(i.expand,"multi"),profile:i.profile},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postSearch(e,i){if(i=i||{},e==null)throw'Missing the required parameter "body" when calling postSearch';return this.apiClient.callApi("/api/v2/search","POST",{},{profile:i.profile},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postSearchSuggest(e,i){if(i=i||{},e==null)throw'Missing the required parameter "body" when calling postSearchSuggest';return this.apiClient.callApi("/api/v2/search/suggest","POST",{},{profile:i.profile},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}},$b=class{constructor(e){this.apiClient=e||q.instance}deleteTaskmanagementWorkbin(e,i){if(i=i||{},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"],i.customHeaders)}deleteTaskmanagementWorkitem(e,i){if(i=i||{},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"],i.customHeaders)}deleteTaskmanagementWorkitemsBulkAddJob(e,i){if(i=i||{},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"],i.customHeaders)}deleteTaskmanagementWorkitemsBulkTerminateJob(e,i){if(i=i||{},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"],i.customHeaders)}deleteTaskmanagementWorkitemsSchema(e,i){if(i=i||{},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"],i.customHeaders)}deleteTaskmanagementWorktype(e,i){if(i=i||{},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"],i.customHeaders)}deleteTaskmanagementWorktypeFlowsDatebasedRule(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "worktypeId" when calling deleteTaskmanagementWorktypeFlowsDatebasedRule';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteTaskmanagementWorktypeFlowsOnattributechangeRule(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "worktypeId" when calling deleteTaskmanagementWorktypeFlowsOnattributechangeRule';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteTaskmanagementWorktypeFlowsOncreateRule(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "worktypeId" when calling deleteTaskmanagementWorktypeFlowsOncreateRule';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteTaskmanagementWorktypeStatus(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "worktypeId" when calling deleteTaskmanagementWorktypeStatus';if(i==null||i==="")throw'Missing the required parameter "statusId" when calling deleteTaskmanagementWorktypeStatus';return this.apiClient.callApi("/api/v2/taskmanagement/worktypes/{worktypeId}/statuses/{statusId}","DELETE",{worktypeId:e,statusId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getTaskmanagementWorkbin(e,i){if(i=i||{},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"],i.customHeaders)}getTaskmanagementWorkbinHistory(e,i){if(i=i||{},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:i.after,pageSize:i.pageSize,sortOrder:i.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getTaskmanagementWorkbinVersion(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "workbinId" when calling getTaskmanagementWorkbinVersion';if(i==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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getTaskmanagementWorkbinVersions(e,i){if(i=i||{},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:i.after,pageSize:i.pageSize,sortOrder:i.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getTaskmanagementWorkitem(e,i){if(i=i||{},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(i.expands,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getTaskmanagementWorkitemHistory(e,i){if(i=i||{},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:i.after,pageSize:i.pageSize,sortOrder:i.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getTaskmanagementWorkitemUserWrapups(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "workitemId" when calling getTaskmanagementWorkitemUserWrapups';if(i==null||i==="")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:i},{expands:n.expands,after:n.after,pageSize:n.pageSize,sortOrder:n.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getTaskmanagementWorkitemVersion(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "workitemId" when calling getTaskmanagementWorkitemVersion';if(i==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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getTaskmanagementWorkitemVersions(e,i){if(i=i||{},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:i.after,pageSize:i.pageSize,sortOrder:i.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getTaskmanagementWorkitemWrapups(e,i){if(i=i||{},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:i.expands,after:i.after,pageSize:i.pageSize,sortOrder:i.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getTaskmanagementWorkitemsBulkAddJob(e,i){if(i=i||{},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"],i.customHeaders)}getTaskmanagementWorkitemsBulkAddJobResults(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getTaskmanagementWorkitemsBulkTerminateJobResults(e,i){if(i=i||{},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"],i.customHeaders)}getTaskmanagementWorkitemsQueryJob(e,i){if(i=i||{},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"],i.customHeaders)}getTaskmanagementWorkitemsQueryJobResults(e,i){if(i=i||{},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"],i.customHeaders)}getTaskmanagementWorkitemsSchema(e,i){if(i=i||{},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"],i.customHeaders)}getTaskmanagementWorkitemsSchemaVersion(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "schemaId" when calling getTaskmanagementWorkitemsSchemaVersion';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getTaskmanagementWorkitemsSchemaVersions(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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(i.expands,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getTaskmanagementWorktypeFlowsDatebasedRule(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "worktypeId" when calling getTaskmanagementWorktypeFlowsDatebasedRule';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getTaskmanagementWorktypeFlowsDatebasedRules(e,i){if(i=i||{},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:i.after,pageSize:i.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getTaskmanagementWorktypeFlowsOnattributechangeRule(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "worktypeId" when calling getTaskmanagementWorktypeFlowsOnattributechangeRule';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getTaskmanagementWorktypeFlowsOnattributechangeRules(e,i){if(i=i||{},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:i.after,pageSize:i.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getTaskmanagementWorktypeFlowsOncreateRule(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "worktypeId" when calling getTaskmanagementWorktypeFlowsOncreateRule';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getTaskmanagementWorktypeFlowsOncreateRules(e,i){if(i=i||{},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:i.after,pageSize:i.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getTaskmanagementWorktypeHistory(e,i){if(i=i||{},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:i.after,pageSize:i.pageSize,sortOrder:i.sortOrder,fields:this.apiClient.buildCollectionParam(i.fields,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getTaskmanagementWorktypeStatus(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "worktypeId" when calling getTaskmanagementWorktypeStatus';if(i==null||i==="")throw'Missing the required parameter "statusId" when calling getTaskmanagementWorktypeStatus';return this.apiClient.callApi("/api/v2/taskmanagement/worktypes/{worktypeId}/statuses/{statusId}","GET",{worktypeId:e,statusId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getTaskmanagementWorktypeStatuses(e,i){if(i=i||{},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"],i.customHeaders)}getTaskmanagementWorktypeVersion(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "worktypeId" when calling getTaskmanagementWorktypeVersion';if(i==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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getTaskmanagementWorktypeVersions(e,i){if(i=i||{},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:i.after,pageSize:i.pageSize,sortOrder:i.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}patchTaskmanagementWorkbin(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "workbinId" when calling patchTaskmanagementWorkbin';if(i==null)throw'Missing the required parameter "body" when calling patchTaskmanagementWorkbin';return this.apiClient.callApi("/api/v2/taskmanagement/workbins/{workbinId}","PATCH",{workbinId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchTaskmanagementWorkitem(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "workitemId" when calling patchTaskmanagementWorkitem';if(i==null)throw'Missing the required parameter "body" when calling patchTaskmanagementWorkitem';return this.apiClient.callApi("/api/v2/taskmanagement/workitems/{workitemId}","PATCH",{workitemId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchTaskmanagementWorkitemAssignment(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "workitemId" when calling patchTaskmanagementWorkitemAssignment';if(i==null)throw'Missing the required parameter "body" when calling patchTaskmanagementWorkitemAssignment';return this.apiClient.callApi("/api/v2/taskmanagement/workitems/{workitemId}/assignment","PATCH",{workitemId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchTaskmanagementWorkitemUserWrapups(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "workitemId" when calling patchTaskmanagementWorkitemUserWrapups';if(i==null||i==="")throw'Missing the required parameter "userId" when calling patchTaskmanagementWorkitemUserWrapups';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchTaskmanagementWorkitemUsersMeWrapups(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "workitemId" when calling patchTaskmanagementWorkitemUsersMeWrapups';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchTaskmanagementWorkitemsBulkAddJob(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "bulkJobId" when calling patchTaskmanagementWorkitemsBulkAddJob';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchTaskmanagementWorkitemsBulkTerminateJob(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "bulkJobId" when calling patchTaskmanagementWorkitemsBulkTerminateJob';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchTaskmanagementWorktype(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "worktypeId" when calling patchTaskmanagementWorktype';if(i==null)throw'Missing the required parameter "body" when calling patchTaskmanagementWorktype';return this.apiClient.callApi("/api/v2/taskmanagement/worktypes/{worktypeId}","PATCH",{worktypeId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchTaskmanagementWorktypeFlowsDatebasedRule(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "worktypeId" when calling patchTaskmanagementWorktypeFlowsDatebasedRule';if(i==null||i==="")throw'Missing the required parameter "ruleId" when calling patchTaskmanagementWorktypeFlowsDatebasedRule';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchTaskmanagementWorktypeFlowsOnattributechangeRule(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "worktypeId" when calling patchTaskmanagementWorktypeFlowsOnattributechangeRule';if(i==null||i==="")throw'Missing the required parameter "ruleId" when calling patchTaskmanagementWorktypeFlowsOnattributechangeRule';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchTaskmanagementWorktypeFlowsOncreateRule(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "worktypeId" when calling patchTaskmanagementWorktypeFlowsOncreateRule';if(i==null||i==="")throw'Missing the required parameter "ruleId" when calling patchTaskmanagementWorktypeFlowsOncreateRule';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchTaskmanagementWorktypeStatus(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "worktypeId" when calling patchTaskmanagementWorktypeStatus';if(i==null||i==="")throw'Missing the required parameter "statusId" when calling patchTaskmanagementWorktypeStatus';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postTaskmanagementWorkbins(e,i){if(i=i||{},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"],i.customHeaders)}postTaskmanagementWorkbinsQuery(e,i){if(i=i||{},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"],i.customHeaders)}postTaskmanagementWorkitemAcdCancel(e,i){if(i=i||{},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"],i.customHeaders)}postTaskmanagementWorkitemDisconnect(e,i){if(i=i||{},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"],i.customHeaders)}postTaskmanagementWorkitemTerminate(e,i){if(i=i||{},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},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postTaskmanagementWorkitems(e,i){if(i=i||{},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"],i.customHeaders)}postTaskmanagementWorkitemsBulkAddJobs(e,i){if(i=i||{},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"],i.customHeaders)}postTaskmanagementWorkitemsBulkTerminateJobs(e,i){if(i=i||{},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"],i.customHeaders)}postTaskmanagementWorkitemsQuery(e,i){if(i=i||{},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"],i.customHeaders)}postTaskmanagementWorkitemsQueryJobs(e,i){if(i=i||{},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"],i.customHeaders)}postTaskmanagementWorkitemsSchemas(e,i){if(i=i||{},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"],i.customHeaders)}postTaskmanagementWorktypeFlowsDatebasedRules(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "worktypeId" when calling postTaskmanagementWorktypeFlowsDatebasedRules';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postTaskmanagementWorktypeFlowsOnattributechangeRules(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "worktypeId" when calling postTaskmanagementWorktypeFlowsOnattributechangeRules';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postTaskmanagementWorktypeFlowsOncreateRules(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "worktypeId" when calling postTaskmanagementWorktypeFlowsOncreateRules';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postTaskmanagementWorktypeStatuses(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "worktypeId" when calling postTaskmanagementWorktypeStatuses';if(i==null)throw'Missing the required parameter "body" when calling postTaskmanagementWorktypeStatuses';return this.apiClient.callApi("/api/v2/taskmanagement/worktypes/{worktypeId}/statuses","POST",{worktypeId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postTaskmanagementWorktypes(e,i){if(i=i||{},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"],i.customHeaders)}postTaskmanagementWorktypesQuery(e,i){if(i=i||{},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"],i.customHeaders)}putTaskmanagementWorkitemsSchema(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "schemaId" when calling putTaskmanagementWorkitemsSchema';if(i==null)throw'Missing the required parameter "body" when calling putTaskmanagementWorkitemsSchema';return this.apiClient.callApi("/api/v2/taskmanagement/workitems/schemas/{schemaId}","PUT",{schemaId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}},Nb=class{constructor(e){this.apiClient=e||q.instance}deleteTeam(e,i){if(i=i||{},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"],i.customHeaders)}deleteTeamMembers(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "teamId" when calling deleteTeamMembers';if(i==null)throw'Missing the required parameter "id" when calling deleteTeamMembers';return this.apiClient.callApi("/api/v2/teams/{teamId}/members","DELETE",{teamId:e},{id:i},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getTeam(e,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "teamId" when calling getTeam';return this.apiClient.callApi("/api/v2/teams/{teamId}","GET",{teamId:e},{expand:i.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getTeamMembers(e,i){if(i=i||{},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:i.pageSize,before:i.before,after:i.after,expand:i.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "teamId" when calling patchTeam';if(i==null)throw'Missing the required parameter "body" when calling patchTeam';return this.apiClient.callApi("/api/v2/teams/{teamId}","PATCH",{teamId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postAnalyticsTeamsActivityQuery(e,i){if(i=i||{},e==null)throw'Missing the required parameter "body" when calling postAnalyticsTeamsActivityQuery';return this.apiClient.callApi("/api/v2/analytics/teams/activity/query","POST",{},{pageSize:i.pageSize,pageNumber:i.pageNumber},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postTeamMembers(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "teamId" when calling postTeamMembers';if(i==null)throw'Missing the required parameter "body" when calling postTeamMembers';return this.apiClient.callApi("/api/v2/teams/{teamId}/members","POST",{teamId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postTeams(e,i){if(i=i||{},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"],i.customHeaders)}postTeamsSearch(e,i){if(i=i||{},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"],i.customHeaders)}},Ub=class{constructor(e){this.apiClient=e||q.instance}getTelephonyAgentGreetings(e,i){if(i=i||{},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"],i.customHeaders)}getTelephonyAgentsGreetingsMe(e){return e=e||{},this.apiClient.callApi("/api/v2/telephony/agents/greetings/me","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getTelephonyCallsMetrics(e){return e=e||{},this.apiClient.callApi("/api/v2/telephony/calls/metrics","GET",{},{metricType:e.metricType},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getTelephonyMediaregions(e){return e=e||{},this.apiClient.callApi("/api/v2/telephony/mediaregions","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getTelephonySettings(e){return e=e||{},this.apiClient.callApi("/api/v2/telephony/settings","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getTelephonySipmessagesConversation(e,i){if(i=i||{},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"],i.customHeaders)}getTelephonySipmessagesConversationHeaders(e,i){if(i=i||{},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(i.keys,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getTelephonySiptraces(e,i,n){if(n=n||{},e==null)throw'Missing the required parameter "dateStart" when calling getTelephonySiptraces';if(i==null)throw'Missing the required parameter "dateEnd" when calling getTelephonySiptraces';return this.apiClient.callApi("/api/v2/telephony/siptraces","GET",{},{callId:n.callId,toUser:n.toUser,fromUser:n.fromUser,conversationId:n.conversationId,dateStart:e,dateEnd:i},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getTelephonySiptracesDownloadDownloadId(e,i){if(i=i||{},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"],i.customHeaders)}postTelephonySiptracesDownload(e,i){if(i=i||{},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"],i.customHeaders)}putTelephonyAgentGreetings(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "agentId" when calling putTelephonyAgentGreetings';if(i==null)throw'Missing the required parameter "body" when calling putTelephonyAgentGreetings';return this.apiClient.callApi("/api/v2/telephony/agents/{agentId}/greetings","PUT",{agentId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putTelephonyAgentsGreetingsMe(e,i){if(i=i||{},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"],i.customHeaders)}putTelephonySettings(e,i){if(i=i||{},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"],i.customHeaders)}},Lb=class{constructor(e){this.apiClient=e||q.instance}deleteTelephonyProvidersEdge(e,i){if(i=i||{},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"],i.customHeaders)}deleteTelephonyProvidersEdgeLogicalinterface(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "edgeId" when calling deleteTelephonyProvidersEdgeLogicalinterface';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteTelephonyProvidersEdgeSoftwareupdate(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}deleteTelephonyProvidersEdgesDidpool(e,i){if(i=i||{},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"],i.customHeaders)}deleteTelephonyProvidersEdgesEdgegroup(e,i){if(i=i||{},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"],i.customHeaders)}deleteTelephonyProvidersEdgesExtensionpool(e,i){if(i=i||{},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"],i.customHeaders)}deleteTelephonyProvidersEdgesPhone(e,i){if(i=i||{},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"],i.customHeaders)}deleteTelephonyProvidersEdgesPhonebasesetting(e,i){if(i=i||{},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"],i.customHeaders)}deleteTelephonyProvidersEdgesSite(e,i){if(i=i||{},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"],i.customHeaders)}deleteTelephonyProvidersEdgesSiteOutboundroute(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "siteId" when calling deleteTelephonyProvidersEdgesSiteOutboundroute';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteTelephonyProvidersEdgesTrunkbasesetting(e,i){if(i=i||{},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"],i.customHeaders)}getTelephonyProvidersEdge(e,i){if(i=i||{},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(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getTelephonyProvidersEdgeDiagnosticNslookup(e,i){if(i=i||{},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"],i.customHeaders)}getTelephonyProvidersEdgeDiagnosticPing(e,i){if(i=i||{},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"],i.customHeaders)}getTelephonyProvidersEdgeDiagnosticRoute(e,i){if(i=i||{},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"],i.customHeaders)}getTelephonyProvidersEdgeDiagnosticTracepath(e,i){if(i=i||{},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"],i.customHeaders)}getTelephonyProvidersEdgeLogicalinterface(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "edgeId" when calling getTelephonyProvidersEdgeLogicalinterface';if(i==null||i==="")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:i},{expand:this.apiClient.buildCollectionParam(n.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getTelephonyProvidersEdgeLogicalinterfaces(e,i){if(i=i||{},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(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getTelephonyProvidersEdgeLogsJob(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "edgeId" when calling getTelephonyProvidersEdgeLogsJob';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getTelephonyProvidersEdgeMetrics(e,i){if(i=i||{},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"],i.customHeaders)}getTelephonyProvidersEdgePhysicalinterface(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "edgeId" when calling getTelephonyProvidersEdgePhysicalinterface';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getTelephonyProvidersEdgePhysicalinterfaces(e,i){if(i=i||{},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"],i.customHeaders)}getTelephonyProvidersEdgeSetuppackage(e,i){if(i=i||{},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"],i.customHeaders)}getTelephonyProvidersEdgeSoftwareupdate(e,i){if(i=i||{},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"],i.customHeaders)}getTelephonyProvidersEdgeSoftwareversions(e,i){if(i=i||{},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"],i.customHeaders)}getTelephonyProvidersEdgeTrunks(e,i){if(i=i||{},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:i.pageNumber,pageSize:i.pageSize,sortBy:i.sortBy,sortOrder:i.sortOrder,"trunkBase.id":i.trunkBaseId,trunkType:i.trunkType},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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"],i.customHeaders)}getTelephonyProvidersEdgesDid(e,i){if(i=i||{},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"],i.customHeaders)}getTelephonyProvidersEdgesDidpool(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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(i.id,"multi"),numberMatch:i.numberMatch,pageSize:i.pageSize,pageNumber:i.pageNumber,sortOrder:i.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getTelephonyProvidersEdgesEdgegroupEdgetrunkbase(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "edgegroupId" when calling getTelephonyProvidersEdgesEdgegroupEdgetrunkbase';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.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,i){if(i=i||{},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"],i.customHeaders)}getTelephonyProvidersEdgesExtensionpool(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getTelephonyProvidersEdgesLinebasesetting(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getTelephonyProvidersEdgesLogicalinterfaces(e,i){if(i=i||{},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(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getTelephonyProvidersEdgesMediastatisticsConversation(e,i){if(i=i||{},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"],i.customHeaders)}getTelephonyProvidersEdgesMediastatisticsConversationCommunication(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getTelephonyProvidersEdgesMediastatisticsConversationCommunication';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getTelephonyProvidersEdgesMetrics(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getTelephonyProvidersEdgesPhonebasesetting(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getTelephonyProvidersEdgesPhysicalinterfaces(e,i){if(i=i||{},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"],i.customHeaders)}getTelephonyProvidersEdgesSite(e,i){if(i=i||{},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"],i.customHeaders)}getTelephonyProvidersEdgesSiteNumberplan(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "siteId" when calling getTelephonyProvidersEdgesSiteNumberplan';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getTelephonyProvidersEdgesSiteNumberplans(e,i){if(i=i||{},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"],i.customHeaders)}getTelephonyProvidersEdgesSiteNumberplansClassifications(e,i){if(i=i||{},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:i.classification},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getTelephonyProvidersEdgesSiteOutboundroute(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "siteId" when calling getTelephonyProvidersEdgesSiteOutboundroute';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getTelephonyProvidersEdgesSiteOutboundroutes(e,i){if(i=i||{},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:i.pageSize,pageNumber:i.pageNumber,name:i.name,"externalTrunkBases.ids":i.externalTrunkBasesIds,sortBy:i.sortBy},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getTelephonyProvidersEdgesSiteSiteconnections(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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"],i.customHeaders)}getTelephonyProvidersEdgesTrunkMetrics(e,i){if(i=i||{},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"],i.customHeaders)}getTelephonyProvidersEdgesTrunkbasesetting(e,i){if(i=i||{},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:i.ignoreHidden},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getTelephonyProvidersEdgesTrunkbasesettings(e){return e=e||{},this.apiClient.callApi("/api/v2/telephony/providers/edges/trunkbasesettings","GET",{},{pageNumber:e.pageNumber,pageSize:e.pageSize,sortBy:e.sortBy,sortOrder:e.sortOrder,recordingEnabled:e.recordingEnabled,ignoreHidden:e.ignoreHidden,managed:e.managed,expand:this.apiClient.buildCollectionParam(e.expand,"multi"),name:e.name},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getTelephonyProvidersEdgesTrunkbasesettingsAvailablemetabases(e){return e=e||{},this.apiClient.callApi("/api/v2/telephony/providers/edges/trunkbasesettings/availablemetabases","GET",{},{type:e.type,pageSize:e.pageSize,pageNumber:e.pageNumber},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getTelephonyProvidersEdgesTrunkbasesettingsTemplate(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "siteId" when calling patchTelephonyProvidersEdgesSiteSiteconnections';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postTelephonyProvidersEdgeDiagnosticNslookup(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "edgeId" when calling postTelephonyProvidersEdgeDiagnosticNslookup';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postTelephonyProvidersEdgeDiagnosticPing(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "edgeId" when calling postTelephonyProvidersEdgeDiagnosticPing';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postTelephonyProvidersEdgeDiagnosticRoute(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "edgeId" when calling postTelephonyProvidersEdgeDiagnosticRoute';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postTelephonyProvidersEdgeDiagnosticTracepath(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "edgeId" when calling postTelephonyProvidersEdgeDiagnosticTracepath';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postTelephonyProvidersEdgeLogicalinterfaces(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "edgeId" when calling postTelephonyProvidersEdgeLogicalinterfaces';if(i==null)throw'Missing the required parameter "body" when calling postTelephonyProvidersEdgeLogicalinterfaces';return this.apiClient.callApi("/api/v2/telephony/providers/edges/{edgeId}/logicalinterfaces","POST",{edgeId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postTelephonyProvidersEdgeLogsJobUpload(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "edgeId" when calling postTelephonyProvidersEdgeLogsJobUpload';if(i==null||i==="")throw'Missing the required parameter "jobId" when calling postTelephonyProvidersEdgeLogsJobUpload';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postTelephonyProvidersEdgeLogsJobs(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "edgeId" when calling postTelephonyProvidersEdgeLogsJobs';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postTelephonyProvidersEdgeReboot(e,i){if(i=i||{},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},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postTelephonyProvidersEdgeSoftwareupdate(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "edgeId" when calling postTelephonyProvidersEdgeSoftwareupdate';if(i==null)throw'Missing the required parameter "body" when calling postTelephonyProvidersEdgeSoftwareupdate';return this.apiClient.callApi("/api/v2/telephony/providers/edges/{edgeId}/softwareupdate","POST",{edgeId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postTelephonyProvidersEdgeStatuscode(e,i){if(i=i||{},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},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postTelephonyProvidersEdgeUnpair(e,i){if(i=i||{},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"],i.customHeaders)}postTelephonyProvidersEdges(e,i){if(i=i||{},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"],i.customHeaders)}postTelephonyProvidersEdgesAddressvalidation(e,i){if(i=i||{},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"],i.customHeaders)}postTelephonyProvidersEdgesCertificateauthorities(e,i){if(i=i||{},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"],i.customHeaders)}postTelephonyProvidersEdgesDidpools(e,i){if(i=i||{},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"],i.customHeaders)}postTelephonyProvidersEdgesEdgegroups(e,i){if(i=i||{},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"],i.customHeaders)}postTelephonyProvidersEdgesExtensionpools(e,i){if(i=i||{},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"],i.customHeaders)}postTelephonyProvidersEdgesMediastatisticsConversationCommunicationMediaresource(e,i,n,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postTelephonyProvidersEdgesMediastatisticsConversationCommunicationMediaresource';if(i==null||i==="")throw'Missing the required parameter "communicationId" when calling postTelephonyProvidersEdgesMediastatisticsConversationCommunicationMediaresource';if(n==null||n==="")throw'Missing the required parameter "mediaResourceId" when calling postTelephonyProvidersEdgesMediastatisticsConversationCommunicationMediaresource';if(a==null)throw'Missing the required parameter "body" when calling postTelephonyProvidersEdgesMediastatisticsConversationCommunicationMediaresource';return this.apiClient.callApi("/api/v2/telephony/providers/edges/mediastatistics/conversations/{conversationId}/communications/{communicationId}/mediaresources/{mediaResourceId}","POST",{conversationId:e,communicationId:i,mediaResourceId:n},{},{},{},a,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}postTelephonyProvidersEdgesPhoneReboot(e,i){if(i=i||{},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"],i.customHeaders)}postTelephonyProvidersEdgesPhonebasesettings(e,i){if(i=i||{},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"],i.customHeaders)}postTelephonyProvidersEdgesPhones(e,i){if(i=i||{},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"],i.customHeaders)}postTelephonyProvidersEdgesPhonesReboot(e,i){if(i=i||{},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"],i.customHeaders)}postTelephonyProvidersEdgesSiteOutboundroutes(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "siteId" when calling postTelephonyProvidersEdgesSiteOutboundroutes';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postTelephonyProvidersEdgesSites(e,i){if(i=i||{},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"],i.customHeaders)}postTelephonyProvidersEdgesSitesSearch(e,i){if(i=i||{},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"],i.customHeaders)}postTelephonyProvidersEdgesTrunkbasesettings(e,i){if(i=i||{},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"],i.customHeaders)}putTelephonyProvidersEdge(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "edgeId" when calling putTelephonyProvidersEdge';if(i==null)throw'Missing the required parameter "body" when calling putTelephonyProvidersEdge';return this.apiClient.callApi("/api/v2/telephony/providers/edges/{edgeId}","PUT",{edgeId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putTelephonyProvidersEdgeLogicalinterface(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "edgeId" when calling putTelephonyProvidersEdgeLogicalinterface';if(i==null||i==="")throw'Missing the required parameter "interfaceId" when calling putTelephonyProvidersEdgeLogicalinterface';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}putTelephonyProvidersEdgesAlertablepresences(e,i){if(i=i||{},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"],i.customHeaders)}putTelephonyProvidersEdgesCertificateauthority(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "certificateId" when calling putTelephonyProvidersEdgesCertificateauthority';if(i==null)throw'Missing the required parameter "body" when calling putTelephonyProvidersEdgesCertificateauthority';return this.apiClient.callApi("/api/v2/telephony/providers/edges/certificateauthorities/{certificateId}","PUT",{certificateId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putTelephonyProvidersEdgesDidpool(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "didPoolId" when calling putTelephonyProvidersEdgesDidpool';if(i==null)throw'Missing the required parameter "body" when calling putTelephonyProvidersEdgesDidpool';return this.apiClient.callApi("/api/v2/telephony/providers/edges/didpools/{didPoolId}","PUT",{didPoolId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putTelephonyProvidersEdgesEdgegroup(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "edgeGroupId" when calling putTelephonyProvidersEdgesEdgegroup';if(i==null)throw'Missing the required parameter "body" when calling putTelephonyProvidersEdgesEdgegroup';return this.apiClient.callApi("/api/v2/telephony/providers/edges/edgegroups/{edgeGroupId}","PUT",{edgeGroupId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putTelephonyProvidersEdgesEdgegroupEdgetrunkbase(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "edgegroupId" when calling putTelephonyProvidersEdgesEdgegroupEdgetrunkbase';if(i==null||i==="")throw'Missing the required parameter "edgetrunkbaseId" when calling putTelephonyProvidersEdgesEdgegroupEdgetrunkbase';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}putTelephonyProvidersEdgesExtensionpool(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "extensionPoolId" when calling putTelephonyProvidersEdgesExtensionpool';if(i==null)throw'Missing the required parameter "body" when calling putTelephonyProvidersEdgesExtensionpool';return this.apiClient.callApi("/api/v2/telephony/providers/edges/extensionpools/{extensionPoolId}","PUT",{extensionPoolId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putTelephonyProvidersEdgesPhone(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "phoneId" when calling putTelephonyProvidersEdgesPhone';if(i==null)throw'Missing the required parameter "body" when calling putTelephonyProvidersEdgesPhone';return this.apiClient.callApi("/api/v2/telephony/providers/edges/phones/{phoneId}","PUT",{phoneId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putTelephonyProvidersEdgesPhonebasesetting(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "phoneBaseId" when calling putTelephonyProvidersEdgesPhonebasesetting';if(i==null)throw'Missing the required parameter "body" when calling putTelephonyProvidersEdgesPhonebasesetting';return this.apiClient.callApi("/api/v2/telephony/providers/edges/phonebasesettings/{phoneBaseId}","PUT",{phoneBaseId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putTelephonyProvidersEdgesSite(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "siteId" when calling putTelephonyProvidersEdgesSite';if(i==null)throw'Missing the required parameter "body" when calling putTelephonyProvidersEdgesSite';return this.apiClient.callApi("/api/v2/telephony/providers/edges/sites/{siteId}","PUT",{siteId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putTelephonyProvidersEdgesSiteNumberplans(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "siteId" when calling putTelephonyProvidersEdgesSiteNumberplans';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putTelephonyProvidersEdgesSiteOutboundroute(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "siteId" when calling putTelephonyProvidersEdgesSiteOutboundroute';if(i==null||i==="")throw'Missing the required parameter "outboundRouteId" when calling putTelephonyProvidersEdgesSiteOutboundroute';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}putTelephonyProvidersEdgesSiteSiteconnections(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "siteId" when calling putTelephonyProvidersEdgesSiteSiteconnections';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putTelephonyProvidersEdgesTrunkbasesetting(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "trunkBaseSettingsId" when calling putTelephonyProvidersEdgesTrunkbasesetting';if(i==null)throw'Missing the required parameter "body" when calling putTelephonyProvidersEdgesTrunkbasesetting';return this.apiClient.callApi("/api/v2/telephony/providers/edges/trunkbasesettings/{trunkBaseSettingsId}","PUT",{trunkBaseSettingsId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}},Wb=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,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "sessionId" when calling postTextbotsBotflowsSessionTurns';if(i==null)throw'Missing the required parameter "turnRequest" when calling postTextbotsBotflowsSessionTurns';return this.apiClient.callApi("/api/v2/textbots/botflows/sessions/{sessionId}/turns","POST",{sessionId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postTextbotsBotflowsSessions(e,i){if(i=i||{},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"],i.customHeaders)}postTextbotsBotsExecute(e,i){if(i=i||{},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"],i.customHeaders)}},Bb=class{constructor(e){this.apiClient=e||q.instance}deleteToken(e,i){if(i=i||{},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"],i.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)}},Fb=class{constructor(e){this.apiClient=e||q.instance}getKnowledgeKnowledgebaseUploadsUrlsJob(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling getKnowledgeKnowledgebaseUploadsUrlsJob';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postGamificationContestsUploadsPrizeimages(e,i){if(i=i||{},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"],i.customHeaders)}postGuidesUploads(e,i){if(i=i||{},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"],i.customHeaders)}postIntegrationsActionDraftFunctionUpload(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "actionId" when calling postIntegrationsActionDraftFunctionUpload';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postKnowledgeDocumentuploads(e,i){if(i=i||{},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"],i.customHeaders)}postKnowledgeKnowledgebaseUploadsUrlsJobs(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseUploadsUrlsJobs';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postLanguageunderstandingMinerUploads(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "minerId" when calling postLanguageunderstandingMinerUploads';if(i==null)throw'Missing the required parameter "body" when calling postLanguageunderstandingMinerUploads';return this.apiClient.callApi("/api/v2/languageunderstanding/miners/{minerId}/uploads","POST",{minerId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postUploadsLearningCoverart(e,i){if(i=i||{},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"],i.customHeaders)}postUploadsPublicassetsImages(e,i){if(i=i||{},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"],i.customHeaders)}postUploadsRecordings(e,i){if(i=i||{},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"],i.customHeaders)}postUploadsWorkforcemanagementHistoricaldataCsv(e,i){if(i=i||{},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"],i.customHeaders)}},Vb=class{constructor(e){this.apiClient=e||q.instance}getOauthClientUsageQueryResult(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "executionId" when calling getOauthClientUsageQueryResult';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getOauthClientUsageSummary(e,i){if(i=i||{},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:i.days},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getUsageAggregatesQueryJob(e,i){if(i=i||{},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:i.pageSize,after:i.after},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getUsageClientClientIdAggregatesQueryJob(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "clientId" when calling getUsageClientClientIdAggregatesQueryJob';if(i==null||i==="")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:i},{pageSize:n.pageSize,after:n.after},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getUsageQueryExecutionIdResults(e,i){if(i=i||{},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"],i.customHeaders)}getUsageSimplesearchExecutionIdResults(e,i){if(i=i||{},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:i.after,pageSize:i.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postOauthClientUsageQuery(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "clientId" when calling postOauthClientUsageQuery';if(i==null)throw'Missing the required parameter "body" when calling postOauthClientUsageQuery';return this.apiClient.callApi("/api/v2/oauth/clients/{clientId}/usage/query","POST",{clientId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postUsageAggregatesQueryJobs(e,i){if(i=i||{},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"],i.customHeaders)}postUsageClientClientIdAggregatesQueryJobs(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "clientId" when calling postUsageClientClientIdAggregatesQueryJobs';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postUsageQuery(e,i){if(i=i||{},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"],i.customHeaders)}postUsageSimplesearch(e,i){if(i=i||{},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"],i.customHeaders)}},Jb=class{constructor(e){this.apiClient=e||q.instance}deleteUserrecording(e,i){if(i=i||{},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"],i.customHeaders)}getUserrecording(e,i){if(i=i||{},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(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getUserrecordingTranscoding(e,i){if(i=i||{},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:i.formatId},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "recordingId" when calling putUserrecording';if(i==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(n.expand,"multi")},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}},Zb=class{constructor(e){this.apiClient=e||q.instance}deleteAnalyticsUsersAggregatesJob(e,i){if(i=i||{},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"],i.customHeaders)}deleteAnalyticsUsersDetailsJob(e,i){if(i=i||{},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"],i.customHeaders)}deleteAuthorizationSubjectDivisionRole(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "subjectId" when calling deleteAuthorizationSubjectDivisionRole';if(i==null||i==="")throw'Missing the required parameter "divisionId" when calling deleteAuthorizationSubjectDivisionRole';if(n==null||n==="")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:i,roleId:n},{},{},{},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,i){if(i=i||{},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"],i.customHeaders)}deleteRoutingUserUtilization(e,i){if(i=i||{},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"],i.customHeaders)}deleteUser(e,i){if(i=i||{},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"],i.customHeaders)}deleteUserCustomattribute(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling deleteUserCustomattribute';if(i==null||i==="")throw'Missing the required parameter "schemaId" when calling deleteUserCustomattribute';return this.apiClient.callApi("/api/v2/users/{userId}/customattributes/{schemaId}","DELETE",{userId:e,schemaId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteUserExternalidAuthorityNameExternalKey(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "userId" when calling deleteUserExternalidAuthorityNameExternalKey';if(i==null||i==="")throw'Missing the required parameter "authorityName" when calling deleteUserExternalidAuthorityNameExternalKey';if(n==null||n==="")throw'Missing the required parameter "externalKey" when calling deleteUserExternalidAuthorityNameExternalKey';return this.apiClient.callApi("/api/v2/users/{userId}/externalid/{authorityName}/{externalKey}","DELETE",{userId:e,authorityName:i,externalKey:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}deleteUserRoutinglanguage(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling deleteUserRoutinglanguage';if(i==null||i==="")throw'Missing the required parameter "languageId" when calling deleteUserRoutinglanguage';return this.apiClient.callApi("/api/v2/users/{userId}/routinglanguages/{languageId}","DELETE",{userId:e,languageId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteUserRoutingskill(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling deleteUserRoutingskill';if(i==null||i==="")throw'Missing the required parameter "skillId" when calling deleteUserRoutingskill';return this.apiClient.callApi("/api/v2/users/{userId}/routingskills/{skillId}","DELETE",{userId:e,skillId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteUserStationAssociatedstation(e,i){if(i=i||{},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"],i.customHeaders)}deleteUserStationDefaultstation(e,i){if(i=i||{},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"],i.customHeaders)}deleteUserVerifier(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling deleteUserVerifier';if(i==null||i==="")throw'Missing the required parameter "verifierId" when calling deleteUserVerifier';return this.apiClient.callApi("/api/v2/users/{userId}/verifiers/{verifierId}","DELETE",{userId:e,verifierId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteUsersCustomattributesSchema(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getAnalyticsUsersAggregatesJobResults(e,i){if(i=i||{},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:i.cursor},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getAnalyticsUsersDetailsJob(e,i){if(i=i||{},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"],i.customHeaders)}getAnalyticsUsersDetailsJobResults(e,i){if(i=i||{},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:i.cursor,pageSize:i.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},e==null)throw'Missing the required parameter "permission" when calling getAuthorizationDivisionspermittedMe';return this.apiClient.callApi("/api/v2/authorization/divisionspermitted/me","GET",{},{name:i.name,permission:e},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getAuthorizationDivisionspermittedPagedMe(e,i){if(i=i||{},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:i.pageNumber,pageSize:i.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getAuthorizationDivisionspermittedPagedSubjectId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "subjectId" when calling getAuthorizationDivisionspermittedPagedSubjectId';if(i==null)throw'Missing the required parameter "permission" when calling getAuthorizationDivisionspermittedPagedSubjectId';return this.apiClient.callApi("/api/v2/authorization/divisionspermitted/paged/{subjectId}","GET",{subjectId:e},{permission:i,pageNumber:n.pageNumber,pageSize:n.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getAuthorizationSubject(e,i){if(i=i||{},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:i.includeDuplicates},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getRoutingUserUtilization(e,i){if(i=i||{},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"],i.customHeaders)}getUser(e,i){if(i=i||{},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(i.expand,"multi"),integrationPresenceSource:i.integrationPresenceSource,userCustomAttributeSchemaIds:this.apiClient.buildCollectionParam(i.userCustomAttributeSchemaIds,"multi"),state:i.state},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getUserAdjacents(e,i){if(i=i||{},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(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getUserCallforwarding(e,i){if(i=i||{},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"],i.customHeaders)}getUserCustomattribute(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling getUserCustomattribute';if(i==null||i==="")throw'Missing the required parameter "schemaId" when calling getUserCustomattribute';return this.apiClient.callApi("/api/v2/users/{userId}/customattributes/{schemaId}","GET",{userId:e,schemaId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getUserCustomattributesBulk(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling getUserCustomattributesBulk';if(i==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(i,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getUserDirectreports(e,i){if(i=i||{},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(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getUserExternalid(e,i){if(i=i||{},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"],i.customHeaders)}getUserExternalidAuthorityName(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling getUserExternalidAuthorityName';if(i==null||i==="")throw'Missing the required parameter "authorityName" when calling getUserExternalidAuthorityName';return this.apiClient.callApi("/api/v2/users/{userId}/externalid/{authorityName}","GET",{userId:e,authorityName:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getUserFavorites(e,i){if(i=i||{},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:i.pageSize,pageNumber:i.pageNumber,sortOrder:i.sortOrder,expand:this.apiClient.buildCollectionParam(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getUserGeolocation(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling getUserGeolocation';if(i==null||i==="")throw'Missing the required parameter "clientId" when calling getUserGeolocation';return this.apiClient.callApi("/api/v2/users/{userId}/geolocations/{clientId}","GET",{userId:e,clientId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getUserOutofoffice(e,i){if(i=i||{},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"],i.customHeaders)}getUserProfile(e,i){if(i=i||{},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(i.expand,"multi"),integrationPresenceSource:i.integrationPresenceSource},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getUserProfileskills(e,i){if(i=i||{},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"],i.customHeaders)}getUserQueues(e,i){if(i=i||{},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:i.pageSize,pageNumber:i.pageNumber,joined:i.joined,divisionId:this.apiClient.buildCollectionParam(i.divisionId,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getUserRoles(e,i){if(i=i||{},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"],i.customHeaders)}getUserRoutinglanguages(e,i){if(i=i||{},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:i.pageSize,pageNumber:i.pageNumber,sortOrder:i.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getUserRoutingskills(e,i){if(i=i||{},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:i.pageSize,pageNumber:i.pageNumber,sortOrder:i.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getUserRoutingstatus(e,i){if(i=i||{},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"],i.customHeaders)}getUserSkillgroups(e,i){if(i=i||{},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:i.pageSize,after:i.after,before:i.before},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getUserState(e,i){if(i=i||{},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"],i.customHeaders)}getUserStation(e,i){if(i=i||{},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"],i.customHeaders)}getUserSuperiors(e,i){if(i=i||{},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(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getUserTrustors(e,i){if(i=i||{},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:i.pageSize,pageNumber:i.pageNumber},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getUserVerifiers(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getUsersCustomattributesSchemaVersion(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "schemaId" when calling getUsersCustomattributesSchemaVersion';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getUsersCustomattributesSchemaVersions(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "activityId" when calling getUsersDevelopmentActivity';if(i==null)throw'Missing the required parameter "type" when calling getUsersDevelopmentActivity';return this.apiClient.callApi("/api/v2/users/development/activities/{activityId}","GET",{activityId:e},{type:i},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getUsersExternalidAuthorityNameExternalKey(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "authorityName" when calling getUsersExternalidAuthorityNameExternalKey';if(i==null||i==="")throw'Missing the required parameter "externalKey" when calling getUsersExternalidAuthorityNameExternalKey';return this.apiClient.callApi("/api/v2/users/externalid/{authorityName}/{externalKey}","GET",{authorityName:e,externalKey:i},{expand:this.apiClient.buildCollectionParam(n.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getUsersMe(e){return e=e||{},this.apiClient.callApi("/api/v2/users/me","GET",{},{expand:this.apiClient.buildCollectionParam(e.expand,"multi"),integrationPresenceSource:e.integrationPresenceSource,userCustomAttributeSchemaIds:this.apiClient.buildCollectionParam(e.userCustomAttributeSchemaIds,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getUsersQuery(e){return e=e||{},this.apiClient.callApi("/api/v2/users/query","GET",{},{cursor:e.cursor,pageSize:e.pageSize,sortOrder:e.sortOrder,expand:this.apiClient.buildCollectionParam(e.expand,"multi"),integrationPresenceSource:e.integrationPresenceSource,userCustomAttributeSchemaIds:this.apiClient.buildCollectionParam(e.userCustomAttributeSchemaIds,"multi"),state:e.state},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getUsersSearch(e,i){if(i=i||{},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(i.expand,"multi"),integrationPresenceSource:i.integrationPresenceSource},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling patchUser';if(i==null)throw'Missing the required parameter "body" when calling patchUser';return this.apiClient.callApi("/api/v2/users/{userId}","PATCH",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchUserCallforwarding(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling patchUserCallforwarding';if(i==null)throw'Missing the required parameter "body" when calling patchUserCallforwarding';return this.apiClient.callApi("/api/v2/users/{userId}/callforwarding","PATCH",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchUserCustomattributes(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling patchUserCustomattributes';if(i==null)throw'Missing the required parameter "userCustomAttributes" when calling patchUserCustomattributes';return this.apiClient.callApi("/api/v2/users/{userId}/customattributes","PATCH",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchUserCustomattributesBulk(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling patchUserCustomattributesBulk';if(i==null)throw'Missing the required parameter "userCustomAttributesList" when calling patchUserCustomattributesBulk';return this.apiClient.callApi("/api/v2/users/{userId}/customattributes/bulk","PATCH",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchUserGeolocation(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "userId" when calling patchUserGeolocation';if(i==null||i==="")throw'Missing the required parameter "clientId" when calling patchUserGeolocation';if(n==null)throw'Missing the required parameter "body" when calling patchUserGeolocation';return this.apiClient.callApi("/api/v2/users/{userId}/geolocations/{clientId}","PATCH",{userId:e,clientId:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchUserQueue(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "queueId" when calling patchUserQueue';if(i==null||i==="")throw'Missing the required parameter "userId" when calling patchUserQueue';if(n==null)throw'Missing the required parameter "body" when calling patchUserQueue';return this.apiClient.callApi("/api/v2/users/{userId}/queues/{queueId}","PATCH",{queueId:e,userId:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchUserQueues(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling patchUserQueues';if(i==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(n.divisionId,"multi")},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchUserRoutinglanguage(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "userId" when calling patchUserRoutinglanguage';if(i==null||i==="")throw'Missing the required parameter "languageId" when calling patchUserRoutinglanguage';if(n==null)throw'Missing the required parameter "body" when calling patchUserRoutinglanguage';return this.apiClient.callApi("/api/v2/users/{userId}/routinglanguages/{languageId}","PATCH",{userId:e,languageId:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchUserRoutinglanguagesBulk(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling patchUserRoutinglanguagesBulk';if(i==null)throw'Missing the required parameter "body" when calling patchUserRoutinglanguagesBulk';return this.apiClient.callApi("/api/v2/users/{userId}/routinglanguages/bulk","PATCH",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchUserRoutingskillsBulk(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling patchUserRoutingskillsBulk';if(i==null)throw'Missing the required parameter "body" when calling patchUserRoutingskillsBulk';return this.apiClient.callApi("/api/v2/users/{userId}/routingskills/bulk","PATCH",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchUsersBulk(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsUsersActivityQuery(e,i){if(i=i||{},e==null)throw'Missing the required parameter "body" when calling postAnalyticsUsersActivityQuery';return this.apiClient.callApi("/api/v2/analytics/users/activity/query","POST",{},{pageSize:i.pageSize,pageNumber:i.pageNumber},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postAnalyticsUsersAggregatesJobs(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsUsersAggregatesQuery(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsUsersDetailsJobs(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsUsersDetailsQuery(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsUsersObservationsQuery(e,i){if(i=i||{},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"],i.customHeaders)}postAuthorizationSubjectBulkadd(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "subjectId" when calling postAuthorizationSubjectBulkadd';if(i==null)throw'Missing the required parameter "body" when calling postAuthorizationSubjectBulkadd';return this.apiClient.callApi("/api/v2/authorization/subjects/{subjectId}/bulkadd","POST",{subjectId:e},{subjectType:n.subjectType},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postAuthorizationSubjectBulkremove(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "subjectId" when calling postAuthorizationSubjectBulkremove';if(i==null)throw'Missing the required parameter "body" when calling postAuthorizationSubjectBulkremove';return this.apiClient.callApi("/api/v2/authorization/subjects/{subjectId}/bulkremove","POST",{subjectId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postAuthorizationSubjectBulkreplace(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "subjectId" when calling postAuthorizationSubjectBulkreplace';if(i==null)throw'Missing the required parameter "body" when calling postAuthorizationSubjectBulkreplace';return this.apiClient.callApi("/api/v2/authorization/subjects/{subjectId}/bulkreplace","POST",{subjectId:e},{subjectType:n.subjectType},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postAuthorizationSubjectDivisionRole(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "subjectId" when calling postAuthorizationSubjectDivisionRole';if(i==null||i==="")throw'Missing the required parameter "divisionId" when calling postAuthorizationSubjectDivisionRole';if(n==null||n==="")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:i,roleId:n},{subjectType:a.subjectType},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postUserExternalid(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling postUserExternalid';if(i==null)throw'Missing the required parameter "body" when calling postUserExternalid';return this.apiClient.callApi("/api/v2/users/{userId}/externalid","POST",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postUserInvite(e,i){if(i=i||{},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:i.force},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postUserPassword(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling postUserPassword';if(i==null)throw'Missing the required parameter "body" when calling postUserPassword';return this.apiClient.callApi("/api/v2/users/{userId}/password","POST",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postUserRoutinglanguages(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling postUserRoutinglanguages';if(i==null)throw'Missing the required parameter "body" when calling postUserRoutinglanguages';return this.apiClient.callApi("/api/v2/users/{userId}/routinglanguages","POST",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postUserRoutingskills(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling postUserRoutingskills';if(i==null)throw'Missing the required parameter "body" when calling postUserRoutingskills';return this.apiClient.callApi("/api/v2/users/{userId}/routingskills","POST",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postUsers(e,i){if(i=i||{},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"],i.customHeaders)}postUsersCustomattributesSchemas(e,i){if(i=i||{},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"],i.customHeaders)}postUsersDevelopmentActivitiesAggregatesQuery(e,i){if(i=i||{},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"],i.customHeaders)}postUsersMePassword(e,i){if(i=i||{},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"],i.customHeaders)}postUsersSearch(e,i){if(i=i||{},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"],i.customHeaders)}postUsersSearchConversationTarget(e,i){if(i=i||{},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"],i.customHeaders)}postUsersSearchQueuemembersManage(e,i){if(i=i||{},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"],i.customHeaders)}postUsersSearchTeamsAssign(e,i){if(i=i||{},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"],i.customHeaders)}putRoutingDirectroutingbackupSettingsMe(e,i){if(i=i||{},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"],i.customHeaders)}putRoutingUserDirectroutingbackupSettings(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling putRoutingUserDirectroutingbackupSettings';if(i==null)throw'Missing the required parameter "body" when calling putRoutingUserDirectroutingbackupSettings';return this.apiClient.callApi("/api/v2/routing/users/{userId}/directroutingbackup/settings","PUT",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putRoutingUserUtilization(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling putRoutingUserUtilization';if(i==null)throw'Missing the required parameter "body" when calling putRoutingUserUtilization';return this.apiClient.callApi("/api/v2/routing/users/{userId}/utilization","PUT",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putUserCallforwarding(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling putUserCallforwarding';if(i==null)throw'Missing the required parameter "body" when calling putUserCallforwarding';return this.apiClient.callApi("/api/v2/users/{userId}/callforwarding","PUT",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putUserCustomattributes(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling putUserCustomattributes';if(i==null)throw'Missing the required parameter "userCustomAttributes" when calling putUserCustomattributes';return this.apiClient.callApi("/api/v2/users/{userId}/customattributes","PUT",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putUserOutofoffice(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling putUserOutofoffice';if(i==null)throw'Missing the required parameter "body" when calling putUserOutofoffice';return this.apiClient.callApi("/api/v2/users/{userId}/outofoffice","PUT",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putUserProfileskills(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling putUserProfileskills';if(i==null)throw'Missing the required parameter "body" when calling putUserProfileskills';return this.apiClient.callApi("/api/v2/users/{userId}/profileskills","PUT",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putUserRoles(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "subjectId" when calling putUserRoles';if(i==null)throw'Missing the required parameter "body" when calling putUserRoles';return this.apiClient.callApi("/api/v2/users/{subjectId}/roles","PUT",{subjectId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putUserRoutingskill(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "userId" when calling putUserRoutingskill';if(i==null||i==="")throw'Missing the required parameter "skillId" when calling putUserRoutingskill';if(n==null)throw'Missing the required parameter "body" when calling putUserRoutingskill';return this.apiClient.callApi("/api/v2/users/{userId}/routingskills/{skillId}","PUT",{userId:e,skillId:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}putUserRoutingskillsBulk(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling putUserRoutingskillsBulk';if(i==null)throw'Missing the required parameter "body" when calling putUserRoutingskillsBulk';return this.apiClient.callApi("/api/v2/users/{userId}/routingskills/bulk","PUT",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putUserRoutingstatus(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling putUserRoutingstatus';if(i==null)throw'Missing the required parameter "body" when calling putUserRoutingstatus';return this.apiClient.callApi("/api/v2/users/{userId}/routingstatus","PUT",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putUserState(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling putUserState';if(i==null)throw'Missing the required parameter "body" when calling putUserState';return this.apiClient.callApi("/api/v2/users/{userId}/state","PUT",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putUserStationAssociatedstationStationId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling putUserStationAssociatedstationStationId';if(i==null||i==="")throw'Missing the required parameter "stationId" when calling putUserStationAssociatedstationStationId';return this.apiClient.callApi("/api/v2/users/{userId}/station/associatedstation/{stationId}","PUT",{userId:e,stationId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putUserStationDefaultstationStationId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling putUserStationDefaultstationStationId';if(i==null||i==="")throw'Missing the required parameter "stationId" when calling putUserStationDefaultstationStationId';return this.apiClient.callApi("/api/v2/users/{userId}/station/defaultstation/{stationId}","PUT",{userId:e,stationId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putUserVerifier(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "userId" when calling putUserVerifier';if(i==null||i==="")throw'Missing the required parameter "verifierId" when calling putUserVerifier';if(n==null)throw'Missing the required parameter "body" when calling putUserVerifier';return this.apiClient.callApi("/api/v2/users/{userId}/verifiers/{verifierId}","PUT",{userId:e,verifierId:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}putUsersCustomattributesSchema(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "schemaId" when calling putUsersCustomattributesSchema';if(i==null)throw'Missing the required parameter "body" when calling putUsersCustomattributesSchema';return this.apiClient.callApi("/api/v2/users/customattributes/schemas/{schemaId}","PUT",{schemaId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putUsersStationsMeAssociatedstationStationId(e,i){if(i=i||{},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"],i.customHeaders)}},Kb=class{constructor(e){this.apiClient=e||q.instance}deleteUsersRule(e,i){if(i=i||{},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"],i.customHeaders)}getUsersRule(e,i){if(i=i||{},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"],i.customHeaders)}getUsersRuleDependentTypeId(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "ruleId" when calling getUsersRuleDependentTypeId';if(i==null||i==="")throw'Missing the required parameter "ruleType" when calling getUsersRuleDependentTypeId';if(n==null||n==="")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:i,typeId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getUsersRuleDependents(e,i){if(i=i||{},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:i.pageSize,pageNumber:i.pageNumber,sortOrder:i.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getUsersRules(e,i){if(i=i||{},e==null)throw'Missing the required parameter "types" when calling getUsersRules';return this.apiClient.callApi("/api/v2/users/rules","GET",{},{pageNumber:i.pageNumber,pageSize:i.pageSize,types:this.apiClient.buildCollectionParam(e,"multi"),expand:this.apiClient.buildCollectionParam(i.expand,"multi"),enabled:i.enabled,searchTerm:i.searchTerm,sortOrder:i.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getUsersRulesSetting(e,i){if(i=i||{},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"],i.customHeaders)}patchUsersRule(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "ruleId" when calling patchUsersRule';if(i==null)throw'Missing the required parameter "body" when calling patchUsersRule';return this.apiClient.callApi("/api/v2/users/rules/{ruleId}","PATCH",{ruleId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postUsersRules(e,i){if(i=i||{},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"],i.customHeaders)}postUsersRulesQuery(e,i){if(i=i||{},e==null)throw'Missing the required parameter "body" when calling postUsersRulesQuery';return this.apiClient.callApi("/api/v2/users/rules/query","POST",{},{pageNumber:i.pageNumber,pageSize:i.pageSize},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}},Qb=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,i){if(i=i||{},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"],i.customHeaders)}},Yb=class{constructor(e){this.apiClient=e||q.instance}deleteVoicemailMessage(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getVoicemailGroupMessages(e,i){if(i=i||{},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:i.pageSize,pageNumber:i.pageNumber},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getVoicemailGroupPolicy(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getVoicemailMessageMedia(e,i){if(i=i||{},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:i.formatId},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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:i.pageSize,pageNumber:i.pageNumber},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getVoicemailSearch(e,i){if(i=i||{},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(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getVoicemailUserMailbox(e,i){if(i=i||{},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"],i.customHeaders)}getVoicemailUserMessages(e,i){if(i=i||{},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:i.pageSize,pageNumber:i.pageNumber},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getVoicemailUserpolicy(e,i){if(i=i||{},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"],i.customHeaders)}patchVoicemailGroupPolicy(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "groupId" when calling patchVoicemailGroupPolicy';if(i==null)throw'Missing the required parameter "body" when calling patchVoicemailGroupPolicy';return this.apiClient.callApi("/api/v2/voicemail/groups/{groupId}/policy","PATCH",{groupId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchVoicemailMePolicy(e,i){if(i=i||{},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"],i.customHeaders)}patchVoicemailMessage(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "messageId" when calling patchVoicemailMessage';if(i==null)throw'Missing the required parameter "body" when calling patchVoicemailMessage';return this.apiClient.callApi("/api/v2/voicemail/messages/{messageId}","PATCH",{messageId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchVoicemailUserpolicy(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling patchVoicemailUserpolicy';if(i==null)throw'Missing the required parameter "body" when calling patchVoicemailUserpolicy';return this.apiClient.callApi("/api/v2/voicemail/userpolicies/{userId}","PATCH",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.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,i){if(i=i||{},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"],i.customHeaders)}putVoicemailMessage(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "messageId" when calling putVoicemailMessage';if(i==null)throw'Missing the required parameter "body" when calling putVoicemailMessage';return this.apiClient.callApi("/api/v2/voicemail/messages/{messageId}","PUT",{messageId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putVoicemailPolicy(e,i){if(i=i||{},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"],i.customHeaders)}putVoicemailUserpolicy(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling putVoicemailUserpolicy';if(i==null)throw'Missing the required parameter "body" when calling putVoicemailUserpolicy';return this.apiClient.callApi("/api/v2/voicemail/userpolicies/{userId}","PUT",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}},Xb=class{constructor(e){this.apiClient=e||q.instance}deleteWebchatDeployment(e,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "deploymentId" when calling deleteWebchatDeployment';return this.apiClient.callApi("/api/v2/webchat/deployments/{deploymentId}","DELETE",{deploymentId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}deleteWebchatGuestConversationMember(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling deleteWebchatGuestConversationMember';if(i==null||i==="")throw'Missing the required parameter "memberId" when calling deleteWebchatGuestConversationMember';return this.apiClient.callApi("/api/v2/webchat/guest/conversations/{conversationId}/members/{memberId}","DELETE",{conversationId:e,memberId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteWebchatSettings(e){return e=e||{},this.apiClient.callApi("/api/v2/webchat/settings","DELETE",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getWebchatDeployment(e,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "deploymentId" when calling getWebchatDeployment';return this.apiClient.callApi("/api/v2/webchat/deployments/{deploymentId}","GET",{deploymentId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getWebchatDeployments(e){return e=e||{},this.apiClient.callApi("/api/v2/webchat/deployments","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getWebchatGuestConversationMediarequest(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getWebchatGuestConversationMediarequest';if(i==null||i==="")throw'Missing the required parameter "mediaRequestId" when calling getWebchatGuestConversationMediarequest';return this.apiClient.callApi("/api/v2/webchat/guest/conversations/{conversationId}/mediarequests/{mediaRequestId}","GET",{conversationId:e,mediaRequestId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWebchatGuestConversationMediarequests(e,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getWebchatGuestConversationMediarequests';return this.apiClient.callApi("/api/v2/webchat/guest/conversations/{conversationId}/mediarequests","GET",{conversationId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getWebchatGuestConversationMember(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getWebchatGuestConversationMember';if(i==null||i==="")throw'Missing the required parameter "memberId" when calling getWebchatGuestConversationMember';return this.apiClient.callApi("/api/v2/webchat/guest/conversations/{conversationId}/members/{memberId}","GET",{conversationId:e,memberId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWebchatGuestConversationMembers(e,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getWebchatGuestConversationMembers';return this.apiClient.callApi("/api/v2/webchat/guest/conversations/{conversationId}/members","GET",{conversationId:e},{pageSize:i.pageSize,pageNumber:i.pageNumber,excludeDisconnectedMembers:i.excludeDisconnectedMembers},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getWebchatGuestConversationMessage(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getWebchatGuestConversationMessage';if(i==null||i==="")throw'Missing the required parameter "messageId" when calling getWebchatGuestConversationMessage';return this.apiClient.callApi("/api/v2/webchat/guest/conversations/{conversationId}/messages/{messageId}","GET",{conversationId:e,messageId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWebchatGuestConversationMessages(e,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getWebchatGuestConversationMessages';return this.apiClient.callApi("/api/v2/webchat/guest/conversations/{conversationId}/messages","GET",{conversationId:e},{after:i.after,before:i.before,sortOrder:i.sortOrder,maxResults:i.maxResults},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getWebchatSettings(e){return e=e||{},this.apiClient.callApi("/api/v2/webchat/settings","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}patchWebchatGuestConversationMediarequest(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchWebchatGuestConversationMediarequest';if(i==null||i==="")throw'Missing the required parameter "mediaRequestId" when calling patchWebchatGuestConversationMediarequest';if(n==null)throw'Missing the required parameter "body" when calling patchWebchatGuestConversationMediarequest';return this.apiClient.callApi("/api/v2/webchat/guest/conversations/{conversationId}/mediarequests/{mediaRequestId}","PATCH",{conversationId:e,mediaRequestId:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postWebchatDeployments(e,i){if(i=i||{},e==null)throw'Missing the required parameter "body" when calling postWebchatDeployments';return this.apiClient.callApi("/api/v2/webchat/deployments","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postWebchatGuestConversationMemberMessages(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postWebchatGuestConversationMemberMessages';if(i==null||i==="")throw'Missing the required parameter "memberId" when calling postWebchatGuestConversationMemberMessages';if(n==null)throw'Missing the required parameter "body" when calling postWebchatGuestConversationMemberMessages';return this.apiClient.callApi("/api/v2/webchat/guest/conversations/{conversationId}/members/{memberId}/messages","POST",{conversationId:e,memberId:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postWebchatGuestConversationMemberTyping(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postWebchatGuestConversationMemberTyping';if(i==null||i==="")throw'Missing the required parameter "memberId" when calling postWebchatGuestConversationMemberTyping';return this.apiClient.callApi("/api/v2/webchat/guest/conversations/{conversationId}/members/{memberId}/typing","POST",{conversationId:e,memberId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWebchatGuestConversations(e,i){if(i=i||{},e==null)throw'Missing the required parameter "body" when calling postWebchatGuestConversations';return this.apiClient.callApi("/api/v2/webchat/guest/conversations","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}putWebchatDeployment(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "deploymentId" when calling putWebchatDeployment';if(i==null)throw'Missing the required parameter "body" when calling putWebchatDeployment';return this.apiClient.callApi("/api/v2/webchat/deployments/{deploymentId}","PUT",{deploymentId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putWebchatSettings(e,i){if(i=i||{},e==null)throw'Missing the required parameter "body" when calling putWebchatSettings';return this.apiClient.callApi("/api/v2/webchat/settings","PUT",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}},ey=class{constructor(e){this.apiClient=e||q.instance}deleteWebdeploymentsConfiguration(e,i){if(i=i||{},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"],i.customHeaders)}deleteWebdeploymentsDeployment(e,i){if(i=i||{},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"],i.customHeaders)}deleteWebdeploymentsDeploymentCobrowseSessionId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "deploymentId" when calling deleteWebdeploymentsDeploymentCobrowseSessionId';if(i==null||i==="")throw'Missing the required parameter "sessionId" when calling deleteWebdeploymentsDeploymentCobrowseSessionId';return this.apiClient.callApi("/api/v2/webdeployments/deployments/{deploymentId}/cobrowse/{sessionId}","DELETE",{deploymentId:e,sessionId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.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,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "configurationId" when calling getWebdeploymentsConfigurationVersion';if(i==null||i==="")throw'Missing the required parameter "versionId" when calling getWebdeploymentsConfigurationVersion';return this.apiClient.callApi("/api/v2/webdeployments/configurations/{configurationId}/versions/{versionId}","GET",{configurationId:e,versionId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWebdeploymentsConfigurationVersions(e,i){if(i=i||{},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:i.pageSize,before:i.before,after:i.after},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getWebdeploymentsConfigurationVersionsDraft(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getWebdeploymentsDeploymentCobrowseSessionId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "deploymentId" when calling getWebdeploymentsDeploymentCobrowseSessionId';if(i==null||i==="")throw'Missing the required parameter "sessionId" when calling getWebdeploymentsDeploymentCobrowseSessionId';return this.apiClient.callApi("/api/v2/webdeployments/deployments/{deploymentId}/cobrowse/{sessionId}","GET",{deploymentId:e,sessionId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWebdeploymentsDeploymentConfigurations(e,i){if(i=i||{},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:i.type,expand:this.apiClient.buildCollectionParam(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getWebdeploymentsDeploymentIdentityresolution(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}postWebdeploymentsConfigurations(e,i){if(i=i||{},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"],i.customHeaders)}postWebdeploymentsDeployments(e,i){if(i=i||{},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"],i.customHeaders)}postWebdeploymentsTokenOauthcodegrantjwtexchange(e,i){if(i=i||{},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"],i.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,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "configurationId" when calling putWebdeploymentsConfigurationVersionsDraft';if(i==null)throw'Missing the required parameter "configurationVersion" when calling putWebdeploymentsConfigurationVersionsDraft';return this.apiClient.callApi("/api/v2/webdeployments/configurations/{configurationId}/versions/draft","PUT",{configurationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putWebdeploymentsDeployment(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "deploymentId" when calling putWebdeploymentsDeployment';if(i==null)throw'Missing the required parameter "deployment" when calling putWebdeploymentsDeployment';return this.apiClient.callApi("/api/v2/webdeployments/deployments/{deploymentId}","PUT",{deploymentId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putWebdeploymentsDeploymentIdentityresolution(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "deploymentId" when calling putWebdeploymentsDeploymentIdentityresolution';if(i==null)throw'Missing the required parameter "body" when calling putWebdeploymentsDeploymentIdentityresolution';return this.apiClient.callApi("/api/v2/webdeployments/deployments/{deploymentId}/identityresolution","PUT",{deploymentId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}},iy=class{constructor(e){this.apiClient=e||q.instance}deleteWebmessagingDeploymentPushdevice(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "deploymentId" when calling deleteWebmessagingDeploymentPushdevice';if(i==null||i==="")throw'Missing the required parameter "tokenId" when calling deleteWebmessagingDeploymentPushdevice';return this.apiClient.callApi("/api/v2/webmessaging/deployments/{deploymentId}/pushdevices/{tokenId}","DELETE",{deploymentId:e,tokenId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.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,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "deploymentId" when calling patchWebmessagingDeploymentPushdevice';if(i==null||i==="")throw'Missing the required parameter "tokenId" when calling patchWebmessagingDeploymentPushdevice';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postWebmessagingDeploymentPushdevice(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "deploymentId" when calling postWebmessagingDeploymentPushdevice';if(i==null||i==="")throw'Missing the required parameter "tokenId" when calling postWebmessagingDeploymentPushdevice';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}},ny=class{constructor(e){this.apiClient=e||q.instance}deleteWidgetsDeployment(e,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "deploymentId" when calling deleteWidgetsDeployment';return this.apiClient.callApi("/api/v2/widgets/deployments/{deploymentId}","DELETE",{deploymentId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getWidgetsDeployment(e,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "deploymentId" when calling getWidgetsDeployment';return this.apiClient.callApi("/api/v2/widgets/deployments/{deploymentId}","GET",{deploymentId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getWidgetsDeployments(e){return e=e||{},this.apiClient.callApi("/api/v2/widgets/deployments","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}postWidgetsDeployments(e,i){if(i=i||{},e==null)throw'Missing the required parameter "body" when calling postWidgetsDeployments';return this.apiClient.callApi("/api/v2/widgets/deployments","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}putWidgetsDeployment(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "deploymentId" when calling putWidgetsDeployment';if(i==null)throw'Missing the required parameter "body" when calling putWidgetsDeployment';return this.apiClient.callApi("/api/v2/widgets/deployments/{deploymentId}","PUT",{deploymentId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}},ty=class{constructor(e){this.apiClient=e||q.instance}deleteWorkforcemanagementBusinessunit(e,i){if(i=i||{},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"],i.customHeaders)}deleteWorkforcemanagementBusinessunitActivitycode(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling deleteWorkforcemanagementBusinessunitActivitycode';if(i==null||i==="")throw'Missing the required parameter "activityCodeId" when calling deleteWorkforcemanagementBusinessunitActivitycode';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/activitycodes/{activityCodeId}","DELETE",{businessUnitId:e,activityCodeId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteWorkforcemanagementBusinessunitCapacityplanStaffinggroupallocationshistory(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling deleteWorkforcemanagementBusinessunitCapacityplanStaffinggroupallocationshistory';if(i==null||i==="")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:i},{beforeDateId:n.beforeDateId},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteWorkforcemanagementBusinessunitPlanninggroup(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling deleteWorkforcemanagementBusinessunitPlanninggroup';if(i==null||i==="")throw'Missing the required parameter "planningGroupId" when calling deleteWorkforcemanagementBusinessunitPlanninggroup';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/planninggroups/{planningGroupId}","DELETE",{businessUnitId:e,planningGroupId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteWorkforcemanagementBusinessunitSchedulingRun(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling deleteWorkforcemanagementBusinessunitSchedulingRun';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteWorkforcemanagementBusinessunitServicegoaltemplate(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling deleteWorkforcemanagementBusinessunitServicegoaltemplate';if(i==null||i==="")throw'Missing the required parameter "serviceGoalTemplateId" when calling deleteWorkforcemanagementBusinessunitServicegoaltemplate';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/servicegoaltemplates/{serviceGoalTemplateId}","DELETE",{businessUnitId:e,serviceGoalTemplateId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteWorkforcemanagementBusinessunitStaffinggroup(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling deleteWorkforcemanagementBusinessunitStaffinggroup';if(i==null||i==="")throw'Missing the required parameter "staffingGroupId" when calling deleteWorkforcemanagementBusinessunitStaffinggroup';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/staffinggroups/{staffingGroupId}","DELETE",{businessUnitId:e,staffingGroupId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteWorkforcemanagementBusinessunitTimeofflimit(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling deleteWorkforcemanagementBusinessunitTimeofflimit';if(i==null||i==="")throw'Missing the required parameter "timeOffLimitId" when calling deleteWorkforcemanagementBusinessunitTimeofflimit';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/timeofflimits/{timeOffLimitId}","DELETE",{businessUnitId:e,timeOffLimitId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteWorkforcemanagementBusinessunitTimeoffplan(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling deleteWorkforcemanagementBusinessunitTimeoffplan';if(i==null||i==="")throw'Missing the required parameter "timeOffPlanId" when calling deleteWorkforcemanagementBusinessunitTimeoffplan';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/timeoffplans/{timeOffPlanId}","DELETE",{businessUnitId:e,timeOffPlanId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteWorkforcemanagementBusinessunitWeekSchedule(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling deleteWorkforcemanagementBusinessunitWeekSchedule';if(i==null)throw'Missing the required parameter "weekId" when calling deleteWorkforcemanagementBusinessunitWeekSchedule';if(n==null||n==="")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:i,scheduleId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}deleteWorkforcemanagementBusinessunitWeekShorttermforecast(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling deleteWorkforcemanagementBusinessunitWeekShorttermforecast';if(i==null)throw'Missing the required parameter "weekDateId" when calling deleteWorkforcemanagementBusinessunitWeekShorttermforecast';if(n==null||n==="")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:i,forecastId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}deleteWorkforcemanagementBusinessunitWorkplanbid(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling deleteWorkforcemanagementBusinessunitWorkplanbid';if(i==null||i==="")throw'Missing the required parameter "bidId" when calling deleteWorkforcemanagementBusinessunitWorkplanbid';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/workplanbids/{bidId}","DELETE",{businessUnitId:e,bidId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteWorkforcemanagementBusinessunitWorkplanbidGroup(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling deleteWorkforcemanagementBusinessunitWorkplanbidGroup';if(i==null||i==="")throw'Missing the required parameter "bidId" when calling deleteWorkforcemanagementBusinessunitWorkplanbidGroup';if(n==null||n==="")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:i,bidGroupId:n},{},{},{},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,i){if(i=i||{},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"],i.customHeaders)}deleteWorkforcemanagementManagementunitTimeofflimit(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling deleteWorkforcemanagementManagementunitTimeofflimit';if(i==null||i==="")throw'Missing the required parameter "timeOffLimitId" when calling deleteWorkforcemanagementManagementunitTimeofflimit';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/timeofflimits/{timeOffLimitId}","DELETE",{managementUnitId:e,timeOffLimitId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteWorkforcemanagementManagementunitTimeoffplan(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling deleteWorkforcemanagementManagementunitTimeoffplan';if(i==null||i==="")throw'Missing the required parameter "timeOffPlanId" when calling deleteWorkforcemanagementManagementunitTimeoffplan';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/timeoffplans/{timeOffPlanId}","DELETE",{managementUnitId:e,timeOffPlanId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteWorkforcemanagementManagementunitWorkplan(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling deleteWorkforcemanagementManagementunitWorkplan';if(i==null||i==="")throw'Missing the required parameter "workPlanId" when calling deleteWorkforcemanagementManagementunitWorkplan';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/workplans/{workPlanId}","DELETE",{managementUnitId:e,workPlanId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteWorkforcemanagementManagementunitWorkplanrotation(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling deleteWorkforcemanagementManagementunitWorkplanrotation';if(i==null||i==="")throw'Missing the required parameter "workPlanRotationId" when calling deleteWorkforcemanagementManagementunitWorkplanrotation';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/workplanrotations/{workPlanRotationId}","DELETE",{managementUnitId:e,workPlanRotationId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementAdherence(e,i){if(i=i||{},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"],i.customHeaders)}getWorkforcemanagementAdherenceExplanation(e,i){if(i=i||{},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"],i.customHeaders)}getWorkforcemanagementAdherenceExplanationsJob(e,i){if(i=i||{},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"],i.customHeaders)}getWorkforcemanagementAdherenceHistoricalBulkJob(e,i){if(i=i||{},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"],i.customHeaders)}getWorkforcemanagementAdherenceHistoricalJob(e,i){if(i=i||{},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"],i.customHeaders)}getWorkforcemanagementAgentAdherenceExplanation(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "agentId" when calling getWorkforcemanagementAgentAdherenceExplanation';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementAgentManagementunit(e,i){if(i=i||{},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"],i.customHeaders)}getWorkforcemanagementAgentsMeAdherenceHistoricalJob(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getWorkforcemanagementAlternativeshiftsOffersSearchJob(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getWorkforcemanagementAlternativeshiftsTradesStateJob(e,i){if(i=i||{},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"],i.customHeaders)}getWorkforcemanagementBusinessunit(e,i){if(i=i||{},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(i.expand,"multi"),includeSchedulingDefaultMessageSeverities:i.includeSchedulingDefaultMessageSeverities},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getWorkforcemanagementBusinessunitActivitycode(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitActivitycode';if(i==null||i==="")throw'Missing the required parameter "activityCodeId" when calling getWorkforcemanagementBusinessunitActivitycode';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/activitycodes/{activityCodeId}","GET",{businessUnitId:e,activityCodeId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementBusinessunitActivitycodes(e,i){if(i=i||{},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:i.forceDownloadService},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getWorkforcemanagementBusinessunitActivityplan(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitActivityplan';if(i==null||i==="")throw'Missing the required parameter "activityPlanId" when calling getWorkforcemanagementBusinessunitActivityplan';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/activityplans/{activityPlanId}","GET",{businessUnitId:e,activityPlanId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementBusinessunitActivityplanRunsJob(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitActivityplanRunsJob';if(i==null||i==="")throw'Missing the required parameter "activityPlanId" when calling getWorkforcemanagementBusinessunitActivityplanRunsJob';if(n==null||n==="")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:i,jobId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getWorkforcemanagementBusinessunitActivityplans(e,i){if(i=i||{},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:i.state},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getWorkforcemanagementBusinessunitActivityplansJobs(e,i){if(i=i||{},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"],i.customHeaders)}getWorkforcemanagementBusinessunitAlternativeshiftsSettings(e,i){if(i=i||{},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"],i.customHeaders)}getWorkforcemanagementBusinessunitAlternativeshiftsTrade(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitAlternativeshiftsTrade';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementBusinessunitAlternativeshiftsTradesSearchJob(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitAlternativeshiftsTradesSearchJob';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementBusinessunitCapacityplan(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitCapacityplan';if(i==null||i==="")throw'Missing the required parameter "capacityPlanId" when calling getWorkforcemanagementBusinessunitCapacityplan';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/capacityplans/{capacityPlanId}","GET",{businessUnitId:e,capacityPlanId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementBusinessunitCapacityplanStaffinggroupallocations(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitCapacityplanStaffinggroupallocations';if(i==null||i==="")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:i},{granularity:n.granularity},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementBusinessunitCapacityplanStaffingrequirements(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitCapacityplanStaffingrequirements';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementBusinessunitCapacityplanningLongtermrequirementsAutomaticbestmethodWeekForecast(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitCapacityplanningLongtermrequirementsAutomaticbestmethodWeekForecast';if(i==null)throw'Missing the required parameter "weekDateId" when calling getWorkforcemanagementBusinessunitCapacityplanningLongtermrequirementsAutomaticbestmethodWeekForecast';if(n==null||n==="")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:i,forecastId:n},{granularity:a.granularity},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getWorkforcemanagementBusinessunitCapacityplans(e,i){if(i=i||{},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"],i.customHeaders)}getWorkforcemanagementBusinessunitIntradayPlanninggroups(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitIntradayPlanninggroups';if(i==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:i},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementBusinessunitMainforecastContinuousforecastSession(e,i){if(i=i||{},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"],i.customHeaders)}getWorkforcemanagementBusinessunitMainforecastContinuousforecastSessionSessionId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitMainforecastContinuousforecastSessionSessionId';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementBusinessunitMainforecastContinuousforecastSessionSessionIdSnapshotSnapshotId(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitMainforecastContinuousforecastSessionSessionIdSnapshotSnapshotId';if(i==null||i==="")throw'Missing the required parameter "sessionId" when calling getWorkforcemanagementBusinessunitMainforecastContinuousforecastSessionSessionIdSnapshotSnapshotId';if(n==null||n==="")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:i,snapshotId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getWorkforcemanagementBusinessunitManagementunits(e,i){if(i=i||{},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:i.feature,divisionId:i.divisionId},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getWorkforcemanagementBusinessunitMinimumstaffingSettings(e,i){if(i=i||{},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"],i.customHeaders)}getWorkforcemanagementBusinessunitPlanninggroup(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitPlanninggroup';if(i==null||i==="")throw'Missing the required parameter "planningGroupId" when calling getWorkforcemanagementBusinessunitPlanninggroup';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/planninggroups/{planningGroupId}","GET",{businessUnitId:e,planningGroupId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementBusinessunitPlanninggroups(e,i){if(i=i||{},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"],i.customHeaders)}getWorkforcemanagementBusinessunitSchedulerSettings(e,i){if(i=i||{},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"],i.customHeaders)}getWorkforcemanagementBusinessunitSchedulingRun(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitSchedulingRun';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementBusinessunitSchedulingRunResult(e,i,n,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitSchedulingRunResult';if(i==null||i==="")throw'Missing the required parameter "runId" when calling getWorkforcemanagementBusinessunitSchedulingRunResult';if(n==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:i},{managementUnitIds:this.apiClient.buildCollectionParam(n,"multi"),expand:this.apiClient.buildCollectionParam(a,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}getWorkforcemanagementBusinessunitSchedulingRuns(e,i){if(i=i||{},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"],i.customHeaders)}getWorkforcemanagementBusinessunitServicegoaltemplate(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitServicegoaltemplate';if(i==null||i==="")throw'Missing the required parameter "serviceGoalTemplateId" when calling getWorkforcemanagementBusinessunitServicegoaltemplate';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/servicegoaltemplates/{serviceGoalTemplateId}","GET",{businessUnitId:e,serviceGoalTemplateId:i},{expand:this.apiClient.buildCollectionParam(n.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementBusinessunitServicegoaltemplates(e,i){if(i=i||{},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(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getWorkforcemanagementBusinessunitShifttradingTradesEvaluateJob(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitShifttradingTradesEvaluateJob';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementBusinessunitShifttradingTradesQueryJob(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitShifttradingTradesQueryJob';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementBusinessunitShifttradingTradesStateBulkJob(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitShifttradingTradesStateBulkJob';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementBusinessunitShifttradingUnmatchedSearchJob(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitShifttradingUnmatchedSearchJob';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementBusinessunitShifttradingWeeksSummaryJob(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitShifttradingWeeksSummaryJob';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementBusinessunitStaffinggroup(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitStaffinggroup';if(i==null||i==="")throw'Missing the required parameter "staffingGroupId" when calling getWorkforcemanagementBusinessunitStaffinggroup';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/staffinggroups/{staffingGroupId}","GET",{businessUnitId:e,staffingGroupId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementBusinessunitStaffinggroups(e,i){if(i=i||{},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:i.managementUnitId,forceDownloadService:i.forceDownloadService},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getWorkforcemanagementBusinessunitTimeofflimit(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitTimeofflimit';if(i==null||i==="")throw'Missing the required parameter "timeOffLimitId" when calling getWorkforcemanagementBusinessunitTimeofflimit';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/timeofflimits/{timeOffLimitId}","GET",{businessUnitId:e,timeOffLimitId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementBusinessunitTimeofflimits(e,i){if(i=i||{},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:i.managementUnitId},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getWorkforcemanagementBusinessunitTimeoffplan(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitTimeoffplan';if(i==null||i==="")throw'Missing the required parameter "timeOffPlanId" when calling getWorkforcemanagementBusinessunitTimeoffplan';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/timeoffplans/{timeOffPlanId}","GET",{businessUnitId:e,timeOffPlanId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementBusinessunitTimeoffplans(e,i){if(i=i||{},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:i.managementUnitId,forceDownloadService:i.forceDownloadService},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getWorkforcemanagementBusinessunitUsers(e,i){if(i=i||{},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(i.managementUnitIds,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getWorkforcemanagementBusinessunitWeekSchedule(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitWeekSchedule';if(i==null)throw'Missing the required parameter "weekId" when calling getWorkforcemanagementBusinessunitWeekSchedule';if(n==null||n==="")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:i,scheduleId:n},{expand:a.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getWorkforcemanagementBusinessunitWeekScheduleGenerationresults(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitWeekScheduleGenerationresults';if(i==null)throw'Missing the required parameter "weekId" when calling getWorkforcemanagementBusinessunitWeekScheduleGenerationresults';if(n==null||n==="")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:i,scheduleId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getWorkforcemanagementBusinessunitWeekScheduleHeadcountforecast(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitWeekScheduleHeadcountforecast';if(i==null)throw'Missing the required parameter "weekId" when calling getWorkforcemanagementBusinessunitWeekScheduleHeadcountforecast';if(n==null||n==="")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:i,scheduleId:n},{forceDownload:a.forceDownload},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getWorkforcemanagementBusinessunitWeekScheduleHistoryAgent(e,i,n,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitWeekScheduleHistoryAgent';if(i==null)throw'Missing the required parameter "weekId" when calling getWorkforcemanagementBusinessunitWeekScheduleHistoryAgent';if(n==null||n==="")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:i,scheduleId:n,agentId:a},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}getWorkforcemanagementBusinessunitWeekSchedulePerformancepredictions(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitWeekSchedulePerformancepredictions';if(i==null||i==="")throw'Missing the required parameter "weekId" when calling getWorkforcemanagementBusinessunitWeekSchedulePerformancepredictions';if(n==null||n==="")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:i,scheduleId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getWorkforcemanagementBusinessunitWeekSchedulePerformancepredictionsRecalculation(e,i,n,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitWeekSchedulePerformancepredictionsRecalculation';if(i==null||i==="")throw'Missing the required parameter "weekId" when calling getWorkforcemanagementBusinessunitWeekSchedulePerformancepredictionsRecalculation';if(n==null||n==="")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:i,scheduleId:n,recalculationId:a},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}getWorkforcemanagementBusinessunitWeekSchedules(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitWeekSchedules';if(i==null||i==="")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:i},{includeOnlyPublished:n.includeOnlyPublished,expand:n.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementBusinessunitWeekShorttermforecast(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitWeekShorttermforecast';if(i==null)throw'Missing the required parameter "weekDateId" when calling getWorkforcemanagementBusinessunitWeekShorttermforecast';if(n==null||n==="")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:i,forecastId:n},{expand:this.apiClient.buildCollectionParam(a.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getWorkforcemanagementBusinessunitWeekShorttermforecastData(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitWeekShorttermforecastData';if(i==null)throw'Missing the required parameter "weekDateId" when calling getWorkforcemanagementBusinessunitWeekShorttermforecastData';if(n==null||n==="")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:i,forecastId:n},{weekNumber:a.weekNumber,forceDownloadService:a.forceDownloadService},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getWorkforcemanagementBusinessunitWeekShorttermforecastGenerationresults(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitWeekShorttermforecastGenerationresults';if(i==null)throw'Missing the required parameter "weekDateId" when calling getWorkforcemanagementBusinessunitWeekShorttermforecastGenerationresults';if(n==null||n==="")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:i,forecastId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getWorkforcemanagementBusinessunitWeekShorttermforecastLongtermforecastdata(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitWeekShorttermforecastLongtermforecastdata';if(i==null)throw'Missing the required parameter "weekDateId" when calling getWorkforcemanagementBusinessunitWeekShorttermforecastLongtermforecastdata';if(n==null||n==="")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:i,forecastId:n},{forceDownloadService:a.forceDownloadService},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getWorkforcemanagementBusinessunitWeekShorttermforecastPlanninggroups(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitWeekShorttermforecastPlanninggroups';if(i==null)throw'Missing the required parameter "weekDateId" when calling getWorkforcemanagementBusinessunitWeekShorttermforecastPlanninggroups';if(n==null||n==="")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:i,forecastId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getWorkforcemanagementBusinessunitWeekShorttermforecastStaffingrequirement(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitWeekShorttermforecastStaffingrequirement';if(i==null)throw'Missing the required parameter "weekDateId" when calling getWorkforcemanagementBusinessunitWeekShorttermforecastStaffingrequirement';if(n==null||n==="")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:i,forecastId:n},{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,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitWeekShorttermforecasts';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementBusinessunitWorkplanbid(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitWorkplanbid';if(i==null||i==="")throw'Missing the required parameter "bidId" when calling getWorkforcemanagementBusinessunitWorkplanbid';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/workplanbids/{bidId}","GET",{businessUnitId:e,bidId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementBusinessunitWorkplanbidGroup(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitWorkplanbidGroup';if(i==null||i==="")throw'Missing the required parameter "bidId" when calling getWorkforcemanagementBusinessunitWorkplanbidGroup';if(n==null||n==="")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:i,bidGroupId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getWorkforcemanagementBusinessunitWorkplanbidGroupPreferences(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitWorkplanbidGroupPreferences';if(i==null||i==="")throw'Missing the required parameter "bidId" when calling getWorkforcemanagementBusinessunitWorkplanbidGroupPreferences';if(n==null||n==="")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:i,bidGroupId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getWorkforcemanagementBusinessunitWorkplanbidGroupsSummary(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitWorkplanbidGroupsSummary';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementBusinessunitWorkplanbids(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getWorkforcemanagementManagementunit(e,i){if(i=i||{},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(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getWorkforcemanagementManagementunitActivitycodes(e,i){if(i=i||{},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"],i.customHeaders)}getWorkforcemanagementManagementunitAdherence(e,i){if(i=i||{},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:i.forceDownloadService},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getWorkforcemanagementManagementunitAgent(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling getWorkforcemanagementManagementunitAgent';if(i==null||i==="")throw'Missing the required parameter "agentId" when calling getWorkforcemanagementManagementunitAgent';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/agents/{agentId}","GET",{managementUnitId:e,agentId:i},{excludeCapabilities:n.excludeCapabilities,expand:this.apiClient.buildCollectionParam(n.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementManagementunitAgentShifttrades(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling getWorkforcemanagementManagementunitAgentShifttrades';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementManagementunitShifttradesMatched(e,i){if(i=i||{},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"],i.customHeaders)}getWorkforcemanagementManagementunitShifttradesUsers(e,i){if(i=i||{},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"],i.customHeaders)}getWorkforcemanagementManagementunitTimeofflimit(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling getWorkforcemanagementManagementunitTimeofflimit';if(i==null||i==="")throw'Missing the required parameter "timeOffLimitId" when calling getWorkforcemanagementManagementunitTimeofflimit';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/timeofflimits/{timeOffLimitId}","GET",{managementUnitId:e,timeOffLimitId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementManagementunitTimeofflimits(e,i){if(i=i||{},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"],i.customHeaders)}getWorkforcemanagementManagementunitTimeoffplan(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling getWorkforcemanagementManagementunitTimeoffplan';if(i==null||i==="")throw'Missing the required parameter "timeOffPlanId" when calling getWorkforcemanagementManagementunitTimeoffplan';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/timeoffplans/{timeOffPlanId}","GET",{managementUnitId:e,timeOffPlanId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementManagementunitTimeoffplans(e,i){if(i=i||{},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"],i.customHeaders)}getWorkforcemanagementManagementunitUserTimeoffrequest(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling getWorkforcemanagementManagementunitUserTimeoffrequest';if(i==null||i==="")throw'Missing the required parameter "userId" when calling getWorkforcemanagementManagementunitUserTimeoffrequest';if(n==null||n==="")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:i,timeOffRequestId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getWorkforcemanagementManagementunitUserTimeoffrequestTimeofflimits(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling getWorkforcemanagementManagementunitUserTimeoffrequestTimeofflimits';if(i==null||i==="")throw'Missing the required parameter "userId" when calling getWorkforcemanagementManagementunitUserTimeoffrequestTimeofflimits';if(n==null||n==="")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:i,timeOffRequestId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getWorkforcemanagementManagementunitUserTimeoffrequests(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling getWorkforcemanagementManagementunitUserTimeoffrequests';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementManagementunitUsers(e,i){if(i=i||{},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"],i.customHeaders)}getWorkforcemanagementManagementunitWeekSchedule(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling getWorkforcemanagementManagementunitWeekSchedule';if(i==null||i==="")throw'Missing the required parameter "weekId" when calling getWorkforcemanagementManagementunitWeekSchedule';if(n==null||n==="")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:i,scheduleId:n},{expand:a.expand,forceDownloadService:a.forceDownloadService},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getWorkforcemanagementManagementunitWeekSchedules(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling getWorkforcemanagementManagementunitWeekSchedules';if(i==null||i==="")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:i},{includeOnlyPublished:n.includeOnlyPublished,earliestWeekDate:n.earliestWeekDate,latestWeekDate:n.latestWeekDate},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementManagementunitWeekShifttrades(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling getWorkforcemanagementManagementunitWeekShifttrades';if(i==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:i},{evaluateMatches:n.evaluateMatches,includeCrossWeekShifts:n.includeCrossWeekShifts,forceDownloadService:n.forceDownloadService},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementManagementunitWorkplan(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling getWorkforcemanagementManagementunitWorkplan';if(i==null||i==="")throw'Missing the required parameter "workPlanId" when calling getWorkforcemanagementManagementunitWorkplan';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/workplans/{workPlanId}","GET",{managementUnitId:e,workPlanId:i},{includeOnly:this.apiClient.buildCollectionParam(n.includeOnly,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementManagementunitWorkplanrotation(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling getWorkforcemanagementManagementunitWorkplanrotation';if(i==null||i==="")throw'Missing the required parameter "workPlanRotationId" when calling getWorkforcemanagementManagementunitWorkplanrotation';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/workplanrotations/{workPlanRotationId}","GET",{managementUnitId:e,workPlanRotationId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementManagementunitWorkplanrotations(e,i){if(i=i||{},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(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getWorkforcemanagementManagementunitWorkplans(e,i){if(i=i||{},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(i.expand,"multi"),exclude:this.apiClient.buildCollectionParam(i.exclude,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getWorkforcemanagementManagementunits(e){return e=e||{},this.apiClient.callApi("/api/v2/workforcemanagement/managementunits","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,expand:e.expand,feature:e.feature,divisionId:e.divisionId},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getWorkforcemanagementManagementunitsDivisionviews(e){return e=e||{},this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/divisionviews","GET",{},{divisionId:this.apiClient.buildCollectionParam(e.divisionId,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getWorkforcemanagementNotifications(e){return e=e||{},this.apiClient.callApi("/api/v2/workforcemanagement/notifications","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getWorkforcemanagementSchedulingjob(e,i){if(i=i||{},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"],i.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,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "tradeId" when calling getWorkforcemanagementShifttradingTradeJob';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementShifttradingTradeMatchJob(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "tradeId" when calling getWorkforcemanagementShifttradingTradeMatchJob';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementShifttradingTradeStateJob(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "tradeId" when calling getWorkforcemanagementShifttradingTradeStateJob';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementShifttradingTradesJob(e,i){if(i=i||{},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"],i.customHeaders)}getWorkforcemanagementShifttradingTradesMineQueryJob(e,i){if(i=i||{},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"],i.customHeaders)}getWorkforcemanagementShrinkageJob(e,i){if(i=i||{},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"],i.customHeaders)}getWorkforcemanagementTeamAdherence(e,i){if(i=i||{},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"],i.customHeaders)}getWorkforcemanagementTimeoffbalanceJob(e,i){if(i=i||{},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"],i.customHeaders)}getWorkforcemanagementTimeoffrequest(e,i){if(i=i||{},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"],i.customHeaders)}getWorkforcemanagementTimeoffrequestWaitlistpositions(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getWorkforcemanagementUserWorkplanbidranks(e,i){if(i=i||{},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"],i.customHeaders)}getWorkforcemanagementWorkplanbidPreferences(e,i){if(i=i||{},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"],i.customHeaders)}getWorkforcemanagementWorkplanbidWorkplans(e,i){if(i=i||{},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"],i.customHeaders)}getWorkforcemanagementWorkplanbids(e){return e=e||{},this.apiClient.callApi("/api/v2/workforcemanagement/workplanbids","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}patchWorkforcemanagementAgentAdherenceExplanation(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "agentId" when calling patchWorkforcemanagementAgentAdherenceExplanation';if(i==null||i==="")throw'Missing the required parameter "explanationId" when calling patchWorkforcemanagementAgentAdherenceExplanation';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchWorkforcemanagementAlternativeshiftsTrade(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "tradeId" when calling patchWorkforcemanagementAlternativeshiftsTrade';if(i==null)throw'Missing the required parameter "body" when calling patchWorkforcemanagementAlternativeshiftsTrade';return this.apiClient.callApi("/api/v2/workforcemanagement/alternativeshifts/trades/{tradeId}","PATCH",{tradeId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchWorkforcemanagementAlternativeshiftsTradesStateJobs(e,i){if(i=i||{},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"],i.customHeaders)}patchWorkforcemanagementBusinessunit(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling patchWorkforcemanagementBusinessunit';if(i==null)throw'Missing the required parameter "body" when calling patchWorkforcemanagementBusinessunit';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}","PATCH",{businessUnitId:e},{includeSchedulingDefaultMessageSeverities:n.includeSchedulingDefaultMessageSeverities},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchWorkforcemanagementBusinessunitActivitycode(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling patchWorkforcemanagementBusinessunitActivitycode';if(i==null||i==="")throw'Missing the required parameter "activityCodeId" when calling patchWorkforcemanagementBusinessunitActivitycode';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchWorkforcemanagementBusinessunitActivityplan(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling patchWorkforcemanagementBusinessunitActivityplan';if(i==null||i==="")throw'Missing the required parameter "activityPlanId" when calling patchWorkforcemanagementBusinessunitActivityplan';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchWorkforcemanagementBusinessunitAlternativeshiftsSettings(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling patchWorkforcemanagementBusinessunitAlternativeshiftsSettings';if(i==null)throw'Missing the required parameter "body" when calling patchWorkforcemanagementBusinessunitAlternativeshiftsSettings';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/alternativeshifts/settings","PATCH",{businessUnitId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchWorkforcemanagementBusinessunitCapacityplan(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling patchWorkforcemanagementBusinessunitCapacityplan';if(i==null||i==="")throw'Missing the required parameter "capacityPlanId" when calling patchWorkforcemanagementBusinessunitCapacityplan';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchWorkforcemanagementBusinessunitMinimumstaffingSettings(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling patchWorkforcemanagementBusinessunitMinimumstaffingSettings';if(i==null)throw'Missing the required parameter "body" when calling patchWorkforcemanagementBusinessunitMinimumstaffingSettings';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/minimumstaffing/settings","PATCH",{businessUnitId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchWorkforcemanagementBusinessunitPlanninggroup(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling patchWorkforcemanagementBusinessunitPlanninggroup';if(i==null||i==="")throw'Missing the required parameter "planningGroupId" when calling patchWorkforcemanagementBusinessunitPlanninggroup';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchWorkforcemanagementBusinessunitSchedulerSettings(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling patchWorkforcemanagementBusinessunitSchedulerSettings';if(i==null)throw'Missing the required parameter "body" when calling patchWorkforcemanagementBusinessunitSchedulerSettings';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/scheduler/settings","PATCH",{businessUnitId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchWorkforcemanagementBusinessunitSchedulingRun(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling patchWorkforcemanagementBusinessunitSchedulingRun';if(i==null||i==="")throw'Missing the required parameter "runId" when calling patchWorkforcemanagementBusinessunitSchedulingRun';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchWorkforcemanagementBusinessunitServicegoaltemplate(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling patchWorkforcemanagementBusinessunitServicegoaltemplate';if(i==null||i==="")throw'Missing the required parameter "serviceGoalTemplateId" when calling patchWorkforcemanagementBusinessunitServicegoaltemplate';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchWorkforcemanagementBusinessunitStaffinggroup(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling patchWorkforcemanagementBusinessunitStaffinggroup';if(i==null||i==="")throw'Missing the required parameter "staffingGroupId" when calling patchWorkforcemanagementBusinessunitStaffinggroup';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchWorkforcemanagementBusinessunitTimeoffplan(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling patchWorkforcemanagementBusinessunitTimeoffplan';if(i==null||i==="")throw'Missing the required parameter "timeOffPlanId" when calling patchWorkforcemanagementBusinessunitTimeoffplan';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchWorkforcemanagementBusinessunitWorkplanbid(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling patchWorkforcemanagementBusinessunitWorkplanbid';if(i==null||i==="")throw'Missing the required parameter "bidId" when calling patchWorkforcemanagementBusinessunitWorkplanbid';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchWorkforcemanagementBusinessunitWorkplanbidGroup(e,i,n,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling patchWorkforcemanagementBusinessunitWorkplanbidGroup';if(i==null||i==="")throw'Missing the required parameter "bidId" when calling patchWorkforcemanagementBusinessunitWorkplanbidGroup';if(n==null||n==="")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:i,bidGroupId:n},{},{},{},a,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}patchWorkforcemanagementBusinessunitWorkplanbidGroupPreferences(e,i,n,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling patchWorkforcemanagementBusinessunitWorkplanbidGroupPreferences';if(i==null||i==="")throw'Missing the required parameter "bidId" when calling patchWorkforcemanagementBusinessunitWorkplanbidGroupPreferences';if(n==null||n==="")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:i,bidGroupId:n},{},{},{},a,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}patchWorkforcemanagementManagementunit(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling patchWorkforcemanagementManagementunit';if(i==null)throw'Missing the required parameter "body" when calling patchWorkforcemanagementManagementunit';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}","PATCH",{managementUnitId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchWorkforcemanagementManagementunitAgents(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling patchWorkforcemanagementManagementunitAgents';if(i==null)throw'Missing the required parameter "body" when calling patchWorkforcemanagementManagementunitAgents';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/agents","PATCH",{managementUnitId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchWorkforcemanagementManagementunitAgentsWorkplansBulk(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling patchWorkforcemanagementManagementunitAgentsWorkplansBulk';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchWorkforcemanagementManagementunitTimeofflimit(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling patchWorkforcemanagementManagementunitTimeofflimit';if(i==null||i==="")throw'Missing the required parameter "timeOffLimitId" when calling patchWorkforcemanagementManagementunitTimeofflimit';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchWorkforcemanagementManagementunitTimeoffplan(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling patchWorkforcemanagementManagementunitTimeoffplan';if(i==null||i==="")throw'Missing the required parameter "timeOffPlanId" when calling patchWorkforcemanagementManagementunitTimeoffplan';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchWorkforcemanagementManagementunitTimeoffrequestUserIntegrationstatus(e,i,n,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling patchWorkforcemanagementManagementunitTimeoffrequestUserIntegrationstatus';if(i==null||i==="")throw'Missing the required parameter "timeOffRequestId" when calling patchWorkforcemanagementManagementunitTimeoffrequestUserIntegrationstatus';if(n==null||n==="")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:i,userId:n},{},{},{},a,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}patchWorkforcemanagementManagementunitUnavailabletimesSettings(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling patchWorkforcemanagementManagementunitUnavailabletimesSettings';if(i==null)throw'Missing the required parameter "body" when calling patchWorkforcemanagementManagementunitUnavailabletimesSettings';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/unavailabletimes/settings","PATCH",{managementUnitId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchWorkforcemanagementManagementunitUserTimeoffrequest(e,i,n,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling patchWorkforcemanagementManagementunitUserTimeoffrequest';if(i==null||i==="")throw'Missing the required parameter "userId" when calling patchWorkforcemanagementManagementunitUserTimeoffrequest';if(n==null||n==="")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:i,timeOffRequestId:n},{},{},{},a,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}patchWorkforcemanagementManagementunitWeekShifttrade(e,i,n,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling patchWorkforcemanagementManagementunitWeekShifttrade';if(i==null)throw'Missing the required parameter "weekDateId" when calling patchWorkforcemanagementManagementunitWeekShifttrade';if(n==null||n==="")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:i,tradeId:n},{},{},{},a,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}patchWorkforcemanagementManagementunitWorkplan(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling patchWorkforcemanagementManagementunitWorkplan';if(i==null||i==="")throw'Missing the required parameter "workPlanId" when calling patchWorkforcemanagementManagementunitWorkplan';if(n==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:i},{validationMode:a.validationMode},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchWorkforcemanagementManagementunitWorkplanrotation(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling patchWorkforcemanagementManagementunitWorkplanrotation';if(i==null||i==="")throw'Missing the required parameter "workPlanRotationId" when calling patchWorkforcemanagementManagementunitWorkplanrotation';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchWorkforcemanagementTimeoffrequest(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "timeOffRequestId" when calling patchWorkforcemanagementTimeoffrequest';if(i==null)throw'Missing the required parameter "body" when calling patchWorkforcemanagementTimeoffrequest';return this.apiClient.callApi("/api/v2/workforcemanagement/timeoffrequests/{timeOffRequestId}","PATCH",{timeOffRequestId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchWorkforcemanagementUnavailabletimes(e,i){if(i=i||{},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"],i.customHeaders)}patchWorkforcemanagementUserWorkplanbidranks(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling patchWorkforcemanagementUserWorkplanbidranks';if(i==null)throw'Missing the required parameter "body" when calling patchWorkforcemanagementUserWorkplanbidranks';return this.apiClient.callApi("/api/v2/workforcemanagement/users/{userId}/workplanbidranks","PATCH",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchWorkforcemanagementUsersWorkplanbidranksBulk(e,i){if(i=i||{},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"],i.customHeaders)}patchWorkforcemanagementWorkplanbidPreferences(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "bidId" when calling patchWorkforcemanagementWorkplanbidPreferences';if(i==null)throw'Missing the required parameter "body" when calling patchWorkforcemanagementWorkplanbidPreferences';return this.apiClient.callApi("/api/v2/workforcemanagement/workplanbids/{bidId}/preferences","PATCH",{bidId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementAdherenceExplanations(e,i){if(i=i||{},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"],i.customHeaders)}postWorkforcemanagementAdherenceExplanationsQuery(e,i){if(i=i||{},e==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementAdherenceExplanationsQuery';return this.apiClient.callApi("/api/v2/workforcemanagement/adherence/explanations/query","POST",{},{forceAsync:i.forceAsync,forceDownloadService:i.forceDownloadService},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postWorkforcemanagementAdherenceHistorical(e){return e=e||{},this.apiClient.callApi("/api/v2/workforcemanagement/adherence/historical","POST",{},{},{},{},e.body,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}postWorkforcemanagementAdherenceHistoricalBulk(e,i){if(i=i||{},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"],i.customHeaders)}postWorkforcemanagementAgentAdherenceExplanations(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "agentId" when calling postWorkforcemanagementAgentAdherenceExplanations';if(i==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementAgentAdherenceExplanations';return this.apiClient.callApi("/api/v2/workforcemanagement/agents/{agentId}/adherence/explanations","POST",{agentId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementAgentAdherenceExplanationsQuery(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "agentId" when calling postWorkforcemanagementAgentAdherenceExplanationsQuery';if(i==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:n.forceAsync,forceDownloadService:n.forceDownloadService},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementAgentUnavailabletimesQuery(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "agentId" when calling postWorkforcemanagementAgentUnavailabletimesQuery';if(i==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementAgentUnavailabletimesQuery';return this.apiClient.callApi("/api/v2/workforcemanagement/agents/{agentId}/unavailabletimes/query","POST",{agentId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementAgents(e,i){if(i=i||{},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"],i.customHeaders)}postWorkforcemanagementAgentsIntegrationsHrisQuery(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}postWorkforcemanagementAgentschedulesManagementunitsMine(e,i){if(i=i||{},e==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementAgentschedulesManagementunitsMine';return this.apiClient.callApi("/api/v2/workforcemanagement/agentschedules/managementunits/mine","POST",{},{forceAsync:i.forceAsync,forceDownloadService:i.forceDownloadService},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postWorkforcemanagementAgentschedulesMine(e,i){if(i=i||{},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"],i.customHeaders)}postWorkforcemanagementAlternativeshiftsOffersJobs(e,i){if(i=i||{},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"],i.customHeaders)}postWorkforcemanagementAlternativeshiftsOffersSearchJobs(e,i){if(i=i||{},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"],i.customHeaders)}postWorkforcemanagementAlternativeshiftsTrades(e,i){if(i=i||{},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"],i.customHeaders)}postWorkforcemanagementBusinessunitActivitycodes(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitActivitycodes';if(i==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunitActivitycodes';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/activitycodes","POST",{businessUnitId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementBusinessunitActivityplanRunsJobs(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitActivityplanRunsJobs';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementBusinessunitActivityplans(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitActivityplans';if(i==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunitActivityplans';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/activityplans","POST",{businessUnitId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementBusinessunitAdherenceExplanationsQuery(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitAdherenceExplanationsQuery';if(i==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:n.forceAsync,forceDownloadService:n.forceDownloadService},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementBusinessunitAgentschedulesSearch(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitAgentschedulesSearch';if(i==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:n.forceAsync,forceDownloadService:n.forceDownloadService},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementBusinessunitAlternativeshiftsTradesSearch(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitAlternativeshiftsTradesSearch';if(i==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:n.forceAsync},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementBusinessunitCapacityplanCopy(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitCapacityplanCopy';if(i==null||i==="")throw'Missing the required parameter "capacityPlanId" when calling postWorkforcemanagementBusinessunitCapacityplanCopy';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postWorkforcemanagementBusinessunitCapacityplanRequirementGenerate(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitCapacityplanRequirementGenerate';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementBusinessunitCapacityplanStaffinggroupallocations(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitCapacityplanStaffinggroupallocations';if(i==null||i==="")throw'Missing the required parameter "capacityPlanId" when calling postWorkforcemanagementBusinessunitCapacityplanStaffinggroupallocations';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postWorkforcemanagementBusinessunitCapacityplanStaffinggroupallocationshistoryQuery(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitCapacityplanStaffinggroupallocationshistoryQuery';if(i==null||i==="")throw'Missing the required parameter "capacityPlanId" when calling postWorkforcemanagementBusinessunitCapacityplanStaffinggroupallocationshistoryQuery';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postWorkforcemanagementBusinessunitCapacityplanningLongtermrequirementsAutomaticbestmethodWeekForecastForceregenerate(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitCapacityplanningLongtermrequirementsAutomaticbestmethodWeekForecastForceregenerate';if(i==null)throw'Missing the required parameter "weekDateId" when calling postWorkforcemanagementBusinessunitCapacityplanningLongtermrequirementsAutomaticbestmethodWeekForecastForceregenerate';if(n==null||n==="")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:i,forecastId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postWorkforcemanagementBusinessunitCapacityplans(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitCapacityplans';if(i==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunitCapacityplans';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/capacityplans","POST",{businessUnitId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementBusinessunitCapacityplansBulkRemove(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitCapacityplansBulkRemove';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementBusinessunitIntraday(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitIntraday';if(i==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunitIntraday';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/intraday","POST",{businessUnitId:e},{forceAsync:n.forceAsync},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementBusinessunitPlanninggroups(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitPlanninggroups';if(i==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunitPlanninggroups';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/planninggroups","POST",{businessUnitId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementBusinessunitServicegoaltemplates(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitServicegoaltemplates';if(i==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunitServicegoaltemplates';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/servicegoaltemplates","POST",{businessUnitId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementBusinessunitShifttradingTradesEvaluateJobs(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitShifttradingTradesEvaluateJobs';if(i==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:n.forceAsync,forceDownloadService:n.forceDownloadService},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementBusinessunitShifttradingTradesQueryJobs(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitShifttradingTradesQueryJobs';if(i==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:n.forceAsync,forceDownloadService:n.forceDownloadService},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementBusinessunitShifttradingTradesStateBulkJobs(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitShifttradingTradesStateBulkJobs';if(i==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:n.forceAsync,forceDownloadService:n.forceDownloadService},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementBusinessunitShifttradingUnmatchedSearchJobs(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitShifttradingUnmatchedSearchJobs';if(i==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:n.forceAsync,forceDownloadService:n.forceDownloadService},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementBusinessunitShifttradingWeeksSummaryJobs(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitShifttradingWeeksSummaryJobs';if(i==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:n.forceAsync},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementBusinessunitStaffinggroups(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitStaffinggroups';if(i==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunitStaffinggroups';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/staffinggroups","POST",{businessUnitId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementBusinessunitStaffinggroupsPlanninggroupsQuery(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitStaffinggroupsPlanninggroupsQuery';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementBusinessunitStaffinggroupsQuery(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitStaffinggroupsQuery';if(i==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:n.forceDownloadService},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementBusinessunitTimeofflimits(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitTimeofflimits';if(i==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunitTimeofflimits';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/timeofflimits","POST",{businessUnitId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementBusinessunitTimeofflimitsValuesQuery(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitTimeofflimitsValuesQuery';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementBusinessunitTimeoffplans(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitTimeoffplans';if(i==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunitTimeoffplans';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/timeoffplans","POST",{businessUnitId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementBusinessunitUnavailabletimesSchedulesQuery(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitUnavailabletimesSchedulesQuery';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementBusinessunitUnavailabletimesSettingsQuery(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitUnavailabletimesSettingsQuery';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementBusinessunitWeekScheduleAgentschedulesQuery(e,i,n,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitWeekScheduleAgentschedulesQuery';if(i==null)throw'Missing the required parameter "weekId" when calling postWorkforcemanagementBusinessunitWeekScheduleAgentschedulesQuery';if(n==null||n==="")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:i,scheduleId:n},{forceAsync:r.forceAsync,forceDownloadService:r.forceDownloadService},{},{},a,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}postWorkforcemanagementBusinessunitWeekScheduleCopy(e,i,n,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitWeekScheduleCopy';if(i==null)throw'Missing the required parameter "weekId" when calling postWorkforcemanagementBusinessunitWeekScheduleCopy';if(n==null||n==="")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:i,scheduleId:n},{},{},{},a,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}postWorkforcemanagementBusinessunitWeekSchedulePerformancepredictionsRecalculations(e,i,n,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitWeekSchedulePerformancepredictionsRecalculations';if(i==null||i==="")throw'Missing the required parameter "weekId" when calling postWorkforcemanagementBusinessunitWeekSchedulePerformancepredictionsRecalculations';if(n==null||n==="")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:i,scheduleId:n},{},{},{},a,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}postWorkforcemanagementBusinessunitWeekSchedulePerformancepredictionsRecalculationsUploadurl(e,i,n,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitWeekSchedulePerformancepredictionsRecalculationsUploadurl';if(i==null||i==="")throw'Missing the required parameter "weekId" when calling postWorkforcemanagementBusinessunitWeekSchedulePerformancepredictionsRecalculationsUploadurl';if(n==null||n==="")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:i,scheduleId:n},{},{},{},a,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}postWorkforcemanagementBusinessunitWeekScheduleReschedule(e,i,n,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitWeekScheduleReschedule';if(i==null)throw'Missing the required parameter "weekId" when calling postWorkforcemanagementBusinessunitWeekScheduleReschedule';if(n==null||n==="")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:i,scheduleId:n},{},{},{},a,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}postWorkforcemanagementBusinessunitWeekScheduleUpdate(e,i,n,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitWeekScheduleUpdate';if(i==null)throw'Missing the required parameter "weekId" when calling postWorkforcemanagementBusinessunitWeekScheduleUpdate';if(n==null||n==="")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:i,scheduleId:n},{},{},{},a,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}postWorkforcemanagementBusinessunitWeekScheduleUpdateUploadurl(e,i,n,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitWeekScheduleUpdateUploadurl';if(i==null)throw'Missing the required parameter "weekId" when calling postWorkforcemanagementBusinessunitWeekScheduleUpdateUploadurl';if(n==null||n==="")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:i,scheduleId:n},{},{},{},a,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}postWorkforcemanagementBusinessunitWeekSchedules(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitWeekSchedules';if(i==null)throw'Missing the required parameter "weekId" when calling postWorkforcemanagementBusinessunitWeekSchedules';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postWorkforcemanagementBusinessunitWeekSchedulesGenerate(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitWeekSchedulesGenerate';if(i==null)throw'Missing the required parameter "weekId" when calling postWorkforcemanagementBusinessunitWeekSchedulesGenerate';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postWorkforcemanagementBusinessunitWeekSchedulesImport(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitWeekSchedulesImport';if(i==null)throw'Missing the required parameter "weekId" when calling postWorkforcemanagementBusinessunitWeekSchedulesImport';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postWorkforcemanagementBusinessunitWeekSchedulesImportUploadurl(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitWeekSchedulesImportUploadurl';if(i==null)throw'Missing the required parameter "weekId" when calling postWorkforcemanagementBusinessunitWeekSchedulesImportUploadurl';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postWorkforcemanagementBusinessunitWeekShorttermforecastCopy(e,i,n,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitWeekShorttermforecastCopy';if(i==null)throw'Missing the required parameter "weekDateId" when calling postWorkforcemanagementBusinessunitWeekShorttermforecastCopy';if(n==null||n==="")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:i,forecastId:n},{forceAsync:r.forceAsync},{},{},a,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}postWorkforcemanagementBusinessunitWeekShorttermforecastsGenerate(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitWeekShorttermforecastsGenerate';if(i==null)throw'Missing the required parameter "weekDateId" when calling postWorkforcemanagementBusinessunitWeekShorttermforecastsGenerate';if(n==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:i},{forceAsync:a.forceAsync},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postWorkforcemanagementBusinessunitWeekShorttermforecastsImport(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitWeekShorttermforecastsImport';if(i==null)throw'Missing the required parameter "weekDateId" when calling postWorkforcemanagementBusinessunitWeekShorttermforecastsImport';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postWorkforcemanagementBusinessunitWeekShorttermforecastsImportUploadurl(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitWeekShorttermforecastsImportUploadurl';if(i==null)throw'Missing the required parameter "weekDateId" when calling postWorkforcemanagementBusinessunitWeekShorttermforecastsImportUploadurl';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postWorkforcemanagementBusinessunitWorkplanbidCopy(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitWorkplanbidCopy';if(i==null||i==="")throw'Missing the required parameter "bidId" when calling postWorkforcemanagementBusinessunitWorkplanbidCopy';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postWorkforcemanagementBusinessunitWorkplanbidGroups(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitWorkplanbidGroups';if(i==null||i==="")throw'Missing the required parameter "bidId" when calling postWorkforcemanagementBusinessunitWorkplanbidGroups';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postWorkforcemanagementBusinessunitWorkplanbids(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitWorkplanbids';if(i==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunitWorkplanbids';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/workplanbids","POST",{businessUnitId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementBusinessunits(e,i){if(i=i||{},e==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunits';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits","POST",{},{includeSchedulingDefaultMessageSeverities:i.includeSchedulingDefaultMessageSeverities},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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"],i.customHeaders)}postWorkforcemanagementHistoricaldataValidate(e,i){if(i=i||{},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"],i.customHeaders)}postWorkforcemanagementIntegrationsHriTimeofftypesJobs(e,i){if(i=i||{},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"],i.customHeaders)}postWorkforcemanagementManagementunitAgentsWorkplansQuery(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitAgentsWorkplansQuery';if(i==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:n.forceDownloadService},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementManagementunitAgentschedulesSearch(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitAgentschedulesSearch';if(i==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:n.forceAsync,forceDownloadService:n.forceDownloadService},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementManagementunitHistoricaladherencequery(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitHistoricaladherencequery';if(i==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementManagementunitHistoricaladherencequery';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/historicaladherencequery","POST",{managementUnitId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementManagementunitMove(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitMove';if(i==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementManagementunitMove';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/move","POST",{managementUnitId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementManagementunitSchedulesSearch(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitSchedulesSearch';if(i==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementManagementunitSchedulesSearch';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/schedules/search","POST",{managementUnitId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementManagementunitShrinkageJobs(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitShrinkageJobs';if(i==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementManagementunitShrinkageJobs';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/shrinkage/jobs","POST",{managementUnitId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementManagementunitTimeofflimits(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitTimeofflimits';if(i==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementManagementunitTimeofflimits';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/timeofflimits","POST",{managementUnitId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementManagementunitTimeofflimitsValuesQuery(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitTimeofflimitsValuesQuery';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementManagementunitTimeoffplans(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitTimeoffplans';if(i==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementManagementunitTimeoffplans';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/timeoffplans","POST",{managementUnitId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementManagementunitTimeoffrequests(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitTimeoffrequests';if(i==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementManagementunitTimeoffrequests';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/timeoffrequests","POST",{managementUnitId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementManagementunitTimeoffrequestsIntegrationstatusQuery(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitTimeoffrequestsIntegrationstatusQuery';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementManagementunitTimeoffrequestsQuery(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitTimeoffrequestsQuery';if(i==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:n.forceDownloadService},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementManagementunitTimeoffrequestsWaitlistpositionsQuery(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitTimeoffrequestsWaitlistpositionsQuery';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementManagementunitUserTimeoffbalanceJobs(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitUserTimeoffbalanceJobs';if(i==null||i==="")throw'Missing the required parameter "userId" when calling postWorkforcemanagementManagementunitUserTimeoffbalanceJobs';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postWorkforcemanagementManagementunitUserTimeoffrequestTimeoffbalanceJobs(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitUserTimeoffrequestTimeoffbalanceJobs';if(i==null||i==="")throw'Missing the required parameter "userId" when calling postWorkforcemanagementManagementunitUserTimeoffrequestTimeoffbalanceJobs';if(n==null||n==="")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:i,timeOffRequestId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postWorkforcemanagementManagementunitUserTimeoffrequestsEstimate(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitUserTimeoffrequestsEstimate';if(i==null||i==="")throw'Missing the required parameter "userId" when calling postWorkforcemanagementManagementunitUserTimeoffrequestsEstimate';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postWorkforcemanagementManagementunitWeekShifttradeMatch(e,i,n,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitWeekShifttradeMatch';if(i==null)throw'Missing the required parameter "weekDateId" when calling postWorkforcemanagementManagementunitWeekShifttradeMatch';if(n==null||n==="")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:i,tradeId:n},{},{},{},a,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}postWorkforcemanagementManagementunitWeekShifttrades(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitWeekShifttrades';if(i==null)throw'Missing the required parameter "weekDateId" when calling postWorkforcemanagementManagementunitWeekShifttrades';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postWorkforcemanagementManagementunitWeekShifttradesSearch(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitWeekShifttradesSearch';if(i==null)throw'Missing the required parameter "weekDateId" when calling postWorkforcemanagementManagementunitWeekShifttradesSearch';if(n==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:i},{forceDownloadService:a.forceDownloadService},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postWorkforcemanagementManagementunitWeekShifttradesStateBulk(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitWeekShifttradesStateBulk';if(i==null)throw'Missing the required parameter "weekDateId" when calling postWorkforcemanagementManagementunitWeekShifttradesStateBulk';if(n==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:i},{forceAsync:a.forceAsync},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postWorkforcemanagementManagementunitWorkplanCopy(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitWorkplanCopy';if(i==null||i==="")throw'Missing the required parameter "workPlanId" when calling postWorkforcemanagementManagementunitWorkplanCopy';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postWorkforcemanagementManagementunitWorkplanValidate(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitWorkplanValidate';if(i==null||i==="")throw'Missing the required parameter "workPlanId" when calling postWorkforcemanagementManagementunitWorkplanValidate';if(n==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:i},{expand:this.apiClient.buildCollectionParam(a.expand,"multi")},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postWorkforcemanagementManagementunitWorkplanrotationCopy(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitWorkplanrotationCopy';if(i==null||i==="")throw'Missing the required parameter "workPlanRotationId" when calling postWorkforcemanagementManagementunitWorkplanrotationCopy';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postWorkforcemanagementManagementunitWorkplanrotations(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitWorkplanrotations';if(i==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementManagementunitWorkplanrotations';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/workplanrotations","POST",{managementUnitId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementManagementunitWorkplans(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitWorkplans';if(i==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementManagementunitWorkplans';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/workplans","POST",{managementUnitId:e},{validationMode:n.validationMode},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementManagementunits(e,i){if(i=i||{},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"],i.customHeaders)}postWorkforcemanagementNotificationsUpdate(e,i){if(i=i||{},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"],i.customHeaders)}postWorkforcemanagementSchedules(e){return e=e||{},this.apiClient.callApi("/api/v2/workforcemanagement/schedules","POST",{},{},{},{},e.body,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}postWorkforcemanagementShifttradingTradeJobs(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "tradeId" when calling postWorkforcemanagementShifttradingTradeJobs';if(i==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:n.forceAsync},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementShifttradingTradeMatchJobs(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "tradeId" when calling postWorkforcemanagementShifttradingTradeMatchJobs';if(i==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:n.forceAsync},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementShifttradingTradeStateJobs(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "tradeId" when calling postWorkforcemanagementShifttradingTradeStateJobs';if(i==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:n.forceAsync},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementShifttradingTradesJobs(e,i){if(i=i||{},e==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementShifttradingTradesJobs';return this.apiClient.callApi("/api/v2/workforcemanagement/shifttrading/trades/jobs","POST",{},{forceAsync:i.forceAsync},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postWorkforcemanagementShifttradingTradesMineQueryJobs(e,i){if(i=i||{},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:i.forceAsync,forceDownloadService:i.forceDownloadService},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postWorkforcemanagementTeamAdherenceHistorical(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "teamId" when calling postWorkforcemanagementTeamAdherenceHistorical';if(i==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementTeamAdherenceHistorical';return this.apiClient.callApi("/api/v2/workforcemanagement/teams/{teamId}/adherence/historical","POST",{teamId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementTeamShrinkageJobs(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "teamId" when calling postWorkforcemanagementTeamShrinkageJobs';if(i==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementTeamShrinkageJobs';return this.apiClient.callApi("/api/v2/workforcemanagement/teams/{teamId}/shrinkage/jobs","POST",{teamId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementTimeoffbalanceJobs(e,i){if(i=i||{},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"],i.customHeaders)}postWorkforcemanagementTimeofflimitsAvailableQuery(e,i){if(i=i||{},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"],i.customHeaders)}postWorkforcemanagementTimeoffrequests(e,i){if(i=i||{},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"],i.customHeaders)}postWorkforcemanagementTimeoffrequestsEstimate(e,i){if(i=i||{},e==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementTimeoffrequestsEstimate';return this.apiClient.callApi("/api/v2/workforcemanagement/timeoffrequests/estimate","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postWorkforcemanagementTimeoffrequestsIntegrationstatusQuery(e,i){if(i=i||{},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"],i.customHeaders)}postWorkforcemanagementUnavailabletimesQuery(e,i){if(i=i||{},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"],i.customHeaders)}postWorkforcemanagementUnavailabletimesValidationJobs(e,i){if(i=i||{},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"],i.customHeaders)}putWorkforcemanagementAgentIntegrationsHris(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "agentId" when calling putWorkforcemanagementAgentIntegrationsHris';if(i==null)throw'Missing the required parameter "body" when calling putWorkforcemanagementAgentIntegrationsHris';return this.apiClient.callApi("/api/v2/workforcemanagement/agents/{agentId}/integrations/hris","PUT",{agentId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putWorkforcemanagementBusinessunitTimeofflimitValues(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling putWorkforcemanagementBusinessunitTimeofflimitValues';if(i==null||i==="")throw'Missing the required parameter "timeOffLimitId" when calling putWorkforcemanagementBusinessunitTimeofflimitValues';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}putWorkforcemanagementManagementunitTimeofflimitValues(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling putWorkforcemanagementManagementunitTimeofflimitValues';if(i==null||i==="")throw'Missing the required parameter "timeOffLimitId" when calling putWorkforcemanagementManagementunitTimeofflimitValues';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}},ay=class{constructor(){this.ApiClient=new q,this.ApiClientClass=q,this.AIStudioApi=OA,this.AgentAssistantsApi=xA,this.AgentCopilotApi=TA,this.AgentUIApi=MA,this.AlertingApi=EA,this.AnalyticsApi=kA,this.ArchitectApi=qA,this.AssistantCopilotVariationsApi=_A,this.AuditApi=HA,this.AuthorizationApi=RA,this.BackgroundAssistantApi=IA,this.BillingApi=zA,this.BusinessRulesApi=DA,this.CarrierServicesApi=GA,this.CaseManagementApi=$A,this.ChatApi=NA,this.CoachingApi=UA,this.ContentManagementApi=LA,this.ConversationsApi=WA,this.DataExtensionsApi=BA,this.DataPrivacyApi=FA,this.DownloadsApi=VA,this.EmailsApi=JA,this.EmployeeEngagementApi=ZA,this.EventsApi=KA,this.ExternalContactsApi=QA,this.FaxApi=YA,this.FlowsApi=XA,this.GamificationApi=eb,this.GeneralDataProtectionRegulationApi=ib,this.GeolocationApi=nb,this.GreetingsApi=tb,this.GroupsApi=ab,this.IdentityProviderApi=rb,this.InfrastructureAsCodeApi=sb,this.IntegrationsApi=ob,this.IntentsApi=lb,this.JourneyApi=ub,this.KnowledgeApi=cb,this.LanguageUnderstandingApi=pb,this.LanguagesApi=db,this.LearningApi=hb,this.LicenseApi=gb,this.LocationsApi=mb,this.LogCaptureApi=fb,this.MessagingApi=wb,this.MobileDevicesApi=vb,this.NotificationsApi=Cb,this.OAuthApi=Ab,this.ObjectsApi=bb,this.OperationalEventsApi=yb,this.OrganizationApi=Pb,this.OrganizationAuthorizationApi=jb,this.OutboundApi=Sb,this.PresenceApi=Ob,this.ProcessAutomationApi=xb,this.QualityApi=Tb,this.RecordingApi=Mb,this.ResponseManagementApi=Eb,this.RoutingApi=kb,this.SCIMApi=qb,this.ScriptsApi=_b,this.SearchApi=Hb,this.SettingsApi=Rb,this.SocialMediaApi=Ib,this.SpeechTextAnalyticsApi=zb,this.StationsApi=Db,this.SuggestApi=Gb,this.TaskManagementApi=$b,this.TeamsApi=Nb,this.TelephonyApi=Ub,this.TelephonyProvidersEdgeApi=Lb,this.TextbotsApi=Wb,this.TokensApi=Bb,this.UploadsApi=Fb,this.UsageApi=Vb,this.UserRecordingsApi=Jb,this.UsersApi=Zb,this.UsersRulesApi=Kb,this.UtilitiesApi=Qb,this.VoicemailApi=Yb,this.WebChatApi=Xb,this.WebDeploymentsApi=ey,this.WebMessagingApi=iy,this.WidgetsApi=ny,this.WorkforceManagementApi=ty,this.PureCloudRegionHosts=QY,this.AbstractHttpClient=El,this.DefaultHttpClient=pd,this.HttpRequestOptions=Zt}},XY=new ay;aI.exports=XY});var Cn={};gd(Cn,{BRAND:()=>FI,DIRTY:()=>Kt,EMPTY_PATH:()=>jI,INVALID:()=>K,NEVER:()=>Mz,OK:()=>xi,ParseStatus:()=>Ci,Schema:()=>ae,ZodAny:()=>wt,ZodArray:()=>et,ZodBigInt:()=>Yt,ZodBoolean:()=>Xt,ZodBranded:()=>fs,ZodCatch:()=>ca,ZodDate:()=>ea,ZodDefault:()=>ua,ZodDiscriminatedUnion:()=>_l,ZodEffects:()=>rn,ZodEnum:()=>oa,ZodError:()=>zi,ZodFirstPartyTypeKind:()=>E,ZodFunction:()=>Rl,ZodIntersection:()=>aa,ZodIssueCode:()=>M,ZodLazy:()=>ra,ZodLiteral:()=>sa,ZodMap:()=>rr,ZodNaN:()=>or,ZodNativeEnum:()=>la,ZodNever:()=>vn,ZodNull:()=>na,ZodNullable:()=>Hn,ZodNumber:()=>Qt,ZodObject:()=>Di,ZodOptional:()=>tn,ZodParsedType:()=>z,ZodPipeline:()=>ws,ZodPromise:()=>vt,ZodReadonly:()=>pa,ZodRecord:()=>Hl,ZodSchema:()=>ae,ZodSet:()=>sr,ZodString:()=>ft,ZodSymbol:()=>tr,ZodTransformer:()=>rn,ZodTuple:()=>_n,ZodType:()=>ae,ZodUndefined:()=>ia,ZodUnion:()=>ta,ZodUnknown:()=>Xn,ZodVoid:()=>ar,addIssueToContext:()=>_,any:()=>iz,array:()=>rz,bigint:()=>KI,boolean:()=>vy,coerce:()=>Tz,custom:()=>my,date:()=>QI,datetimeRegex:()=>hy,defaultErrorMap:()=>Qn,discriminatedUnion:()=>lz,effect:()=>Az,enum:()=>wz,function:()=>gz,getErrorMap:()=>er,getParsedType:()=>qn,instanceof:()=>JI,intersection:()=>uz,isAborted:()=>kl,isAsync:()=>ir,isDirty:()=>ql,isValid:()=>mt,late:()=>VI,lazy:()=>mz,literal:()=>fz,makeIssue:()=>ms,map:()=>dz,nan:()=>ZI,nativeEnum:()=>vz,never:()=>tz,null:()=>ez,nullable:()=>yz,number:()=>wy,object:()=>vd,objectUtil:()=>md,oboolean:()=>xz,onumber:()=>Oz,optional:()=>bz,ostring:()=>Sz,pipeline:()=>jz,preprocess:()=>Pz,promise:()=>Cz,quotelessJson:()=>bI,record:()=>pz,set:()=>hz,setErrorMap:()=>PI,strictObject:()=>sz,string:()=>fy,symbol:()=>YI,transformer:()=>Az,tuple:()=>cz,undefined:()=>XI,union:()=>oz,unknown:()=>nz,util:()=>ce,void:()=>az});var ce;(function(t){t.assertEqual=a=>{};function e(a){}t.assertIs=e;function i(a){throw new Error}t.assertNever=i,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 n(a,r=" | "){return a.map(s=>typeof s=="string"?`'${s}'`:s).join(r)}t.joinValues=n,t.jsonStringifyReplacer=(a,r)=>typeof r=="bigint"?r.toString():r})(ce||(ce={}));var md;(function(t){t.mergeShapes=(e,i)=>({...e,...i})})(md||(md={}));var z=ce.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),qn=t=>{switch(typeof t){case"undefined":return z.undefined;case"string":return z.string;case"number":return Number.isNaN(t)?z.nan:z.number;case"boolean":return z.boolean;case"function":return z.function;case"bigint":return z.bigint;case"symbol":return z.symbol;case"object":return Array.isArray(t)?z.array:t===null?z.null:t.then&&typeof t.then=="function"&&t.catch&&typeof t.catch=="function"?z.promise:typeof Map<"u"&&t instanceof Map?z.map:typeof Set<"u"&&t instanceof Set?z.set:typeof Date<"u"&&t instanceof Date?z.date:z.object;default:return z.unknown}};var M=ce.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]),bI=t=>JSON.stringify(t,null,2).replace(/"([^"]+)":/g,"$1:"),zi=class t extends Error{get errors(){return this.issues}constructor(e){super(),this.issues=[],this.addIssue=n=>{this.issues=[...this.issues,n]},this.addIssues=(n=[])=>{this.issues=[...this.issues,...n]};let i=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,i):this.__proto__=i,this.name="ZodError",this.issues=e}format(e){let i=e||function(r){return r.message},n={_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)n._errors.push(i(s));else{let o=n,l=0;for(;li.message){let i=Object.create(null),n=[];for(let a of this.issues)if(a.path.length>0){let r=a.path[0];i[r]=i[r]||[],i[r].push(e(a))}else n.push(e(a));return{formErrors:n,fieldErrors:i}}get formErrors(){return this.flatten()}};zi.create=t=>new zi(t);var yI=(t,e)=>{let i;switch(t.code){case M.invalid_type:t.received===z.undefined?i="Required":i=`Expected ${t.expected}, received ${t.received}`;break;case M.invalid_literal:i=`Invalid literal value, expected ${JSON.stringify(t.expected,ce.jsonStringifyReplacer)}`;break;case M.unrecognized_keys:i=`Unrecognized key(s) in object: ${ce.joinValues(t.keys,", ")}`;break;case M.invalid_union:i="Invalid input";break;case M.invalid_union_discriminator:i=`Invalid discriminator value. Expected ${ce.joinValues(t.options)}`;break;case M.invalid_enum_value:i=`Invalid enum value. Expected ${ce.joinValues(t.options)}, received '${t.received}'`;break;case M.invalid_arguments:i="Invalid function arguments";break;case M.invalid_return_type:i="Invalid function return type";break;case M.invalid_date:i="Invalid date";break;case M.invalid_string:typeof t.validation=="object"?"includes"in t.validation?(i=`Invalid input: must include "${t.validation.includes}"`,typeof t.validation.position=="number"&&(i=`${i} at one or more positions greater than or equal to ${t.validation.position}`)):"startsWith"in t.validation?i=`Invalid input: must start with "${t.validation.startsWith}"`:"endsWith"in t.validation?i=`Invalid input: must end with "${t.validation.endsWith}"`:ce.assertNever(t.validation):t.validation!=="regex"?i=`Invalid ${t.validation}`:i="Invalid";break;case M.too_small:t.type==="array"?i=`Array must contain ${t.exact?"exactly":t.inclusive?"at least":"more than"} ${t.minimum} element(s)`:t.type==="string"?i=`String must contain ${t.exact?"exactly":t.inclusive?"at least":"over"} ${t.minimum} character(s)`:t.type==="number"?i=`Number must be ${t.exact?"exactly equal to ":t.inclusive?"greater than or equal to ":"greater than "}${t.minimum}`:t.type==="bigint"?i=`Number must be ${t.exact?"exactly equal to ":t.inclusive?"greater than or equal to ":"greater than "}${t.minimum}`:t.type==="date"?i=`Date must be ${t.exact?"exactly equal to ":t.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(t.minimum))}`:i="Invalid input";break;case M.too_big:t.type==="array"?i=`Array must contain ${t.exact?"exactly":t.inclusive?"at most":"less than"} ${t.maximum} element(s)`:t.type==="string"?i=`String must contain ${t.exact?"exactly":t.inclusive?"at most":"under"} ${t.maximum} character(s)`:t.type==="number"?i=`Number must be ${t.exact?"exactly":t.inclusive?"less than or equal to":"less than"} ${t.maximum}`:t.type==="bigint"?i=`BigInt must be ${t.exact?"exactly":t.inclusive?"less than or equal to":"less than"} ${t.maximum}`:t.type==="date"?i=`Date must be ${t.exact?"exactly":t.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(t.maximum))}`:i="Invalid input";break;case M.custom:i="Invalid input";break;case M.invalid_intersection_types:i="Intersection results could not be merged";break;case M.not_multiple_of:i=`Number must be a multiple of ${t.multipleOf}`;break;case M.not_finite:i="Number must be finite";break;default:i=e.defaultError,ce.assertNever(t)}return{message:i}},Qn=yI;var ly=Qn;function PI(t){ly=t}function er(){return ly}var ms=t=>{let{data:e,path:i,errorMaps:n,issueData:a}=t,r=[...i,...a.path||[]],s={...a,path:r};if(a.message!==void 0)return{...a,path:r,message:a.message};let o="",l=n.filter(u=>!!u).slice().reverse();for(let u of l)o=u(s,{data:e,defaultError:o}).message;return{...a,path:r,message:o}},jI=[];function _(t,e){let i=er(),n=ms({issueData:e,data:t.data,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,i,i===Qn?void 0:Qn].filter(a=>!!a)});t.common.issues.push(n)}var Ci=class t{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(e,i){let n=[];for(let a of i){if(a.status==="aborted")return K;a.status==="dirty"&&e.dirty(),n.push(a.value)}return{status:e.value,value:n}}static async mergeObjectAsync(e,i){let n=[];for(let a of i){let r=await a.key,s=await a.value;n.push({key:r,value:s})}return t.mergeObjectSync(e,n)}static mergeObjectSync(e,i){let n={};for(let a of i){let{key:r,value:s}=a;if(r.status==="aborted"||s.status==="aborted")return K;r.status==="dirty"&&e.dirty(),s.status==="dirty"&&e.dirty(),r.value!=="__proto__"&&(typeof s.value<"u"||a.alwaysSet)&&(n[r.value]=s.value)}return{status:e.value,value:n}}},K=Object.freeze({status:"aborted"}),Kt=t=>({status:"dirty",value:t}),xi=t=>({status:"valid",value:t}),kl=t=>t.status==="aborted",ql=t=>t.status==="dirty",mt=t=>t.status==="valid",ir=t=>typeof Promise<"u"&&t instanceof Promise;var U;(function(t){t.errToObj=e=>typeof e=="string"?{message:e}:e||{},t.toString=e=>typeof e=="string"?e:e?.message})(U||(U={}));var an=class{constructor(e,i,n,a){this._cachedPath=[],this.parent=e,this.data=i,this._path=n,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}},uy=(t,e)=>{if(mt(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 i=new zi(t.common.issues);return this._error=i,this._error}}};function ne(t){if(!t)return{};let{errorMap:e,invalid_type_error:i,required_error:n,description:a}=t;if(e&&(i||n))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??n??o.defaultError}:s.code!=="invalid_type"?{message:o.defaultError}:{message:l??i??o.defaultError}},description:a}}var ae=class{get description(){return this._def.description}_getType(e){return qn(e.data)}_getOrReturnCtx(e,i){return i||{common:e.parent.common,data:e.data,parsedType:qn(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new Ci,ctx:{common:e.parent.common,data:e.data,parsedType:qn(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){let i=this._parse(e);if(ir(i))throw new Error("Synchronous parse encountered promise.");return i}_parseAsync(e){let i=this._parse(e);return Promise.resolve(i)}parse(e,i){let n=this.safeParse(e,i);if(n.success)return n.data;throw n.error}safeParse(e,i){let n={common:{issues:[],async:i?.async??!1,contextualErrorMap:i?.errorMap},path:i?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:qn(e)},a=this._parseSync({data:e,path:n.path,parent:n});return uy(n,a)}"~validate"(e){let i={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:qn(e)};if(!this["~standard"].async)try{let n=this._parseSync({data:e,path:[],parent:i});return mt(n)?{value:n.value}:{issues:i.common.issues}}catch(n){n?.message?.toLowerCase()?.includes("encountered")&&(this["~standard"].async=!0),i.common={issues:[],async:!0}}return this._parseAsync({data:e,path:[],parent:i}).then(n=>mt(n)?{value:n.value}:{issues:i.common.issues})}async parseAsync(e,i){let n=await this.safeParseAsync(e,i);if(n.success)return n.data;throw n.error}async safeParseAsync(e,i){let n={common:{issues:[],contextualErrorMap:i?.errorMap,async:!0},path:i?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:qn(e)},a=this._parse({data:e,path:n.path,parent:n}),r=await(ir(a)?a:Promise.resolve(a));return uy(n,r)}refine(e,i){let n=a=>typeof i=="string"||typeof i>"u"?{message:i}:typeof i=="function"?i(a):i;return this._refinement((a,r)=>{let s=e(a),o=()=>r.addIssue({code:M.custom,...n(a)});return typeof Promise<"u"&&s instanceof Promise?s.then(l=>l?!0:(o(),!1)):s?!0:(o(),!1)})}refinement(e,i){return this._refinement((n,a)=>e(n)?!0:(a.addIssue(typeof i=="function"?i(n,a):i),!1))}_refinement(e){return new rn({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:i=>this["~validate"](i)}}optional(){return tn.create(this,this._def)}nullable(){return Hn.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return et.create(this)}promise(){return vt.create(this,this._def)}or(e){return ta.create([this,e],this._def)}and(e){return aa.create(this,e,this._def)}transform(e){return new rn({...ne(this._def),schema:this,typeName:E.ZodEffects,effect:{type:"transform",transform:e}})}default(e){let i=typeof e=="function"?e:()=>e;return new ua({...ne(this._def),innerType:this,defaultValue:i,typeName:E.ZodDefault})}brand(){return new fs({typeName:E.ZodBranded,type:this,...ne(this._def)})}catch(e){let i=typeof e=="function"?e:()=>e;return new ca({...ne(this._def),innerType:this,catchValue:i,typeName:E.ZodCatch})}describe(e){let i=this.constructor;return new i({...this._def,description:e})}pipe(e){return ws.create(this,e)}readonly(){return pa.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}},SI=/^c[^\s-]{8,}$/i,OI=/^[0-9a-z]+$/,xI=/^[0-9A-HJKMNP-TV-Z]{26}$/i,TI=/^[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,MI=/^[a-z0-9_-]{21}$/i,EI=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,kI=/^[-+]?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)?)??$/,qI=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,_I="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$",fd,HI=/^(?:(?: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])$/,RI=/^(?:(?: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])$/,II=/^(([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]))$/,zI=/^(([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])$/,DI=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,GI=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,py="((\\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])))",$I=new RegExp(`^${py}$`);function dy(t){let e="[0-5]\\d";t.precision?e=`${e}\\.\\d{${t.precision}}`:t.precision==null&&(e=`${e}(\\.\\d+)?`);let i=t.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${e})${i}`}function NI(t){return new RegExp(`^${dy(t)}$`)}function hy(t){let e=`${py}T${dy(t)}`,i=[];return i.push(t.local?"Z?":"Z"),t.offset&&i.push("([+-]\\d{2}:?\\d{2})"),e=`${e}(${i.join("|")})`,new RegExp(`^${e}$`)}function UI(t,e){return!!((e==="v4"||!e)&&HI.test(t)||(e==="v6"||!e)&&II.test(t))}function LI(t,e){if(!EI.test(t))return!1;try{let[i]=t.split(".");if(!i)return!1;let n=i.replace(/-/g,"+").replace(/_/g,"/").padEnd(i.length+(4-i.length%4)%4,"="),a=JSON.parse(atob(n));return!(typeof a!="object"||a===null||"typ"in a&&a?.typ!=="JWT"||!a.alg||e&&a.alg!==e)}catch{return!1}}function WI(t,e){return!!((e==="v4"||!e)&&RI.test(t)||(e==="v6"||!e)&&zI.test(t))}var ft=class t extends ae{_parse(e){if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!==z.string){let r=this._getOrReturnCtx(e);return _(r,{code:M.invalid_type,expected:z.string,received:r.parsedType}),K}let n=new Ci,a;for(let r of this._def.checks)if(r.kind==="min")e.data.lengthr.value&&(a=this._getOrReturnCtx(e,a),_(a,{code:M.too_big,maximum:r.value,type:"string",inclusive:!0,exact:!1,message:r.message}),n.dirty());else if(r.kind==="length"){let s=e.data.length>r.value,o=e.data.lengthe.test(a),{validation:i,code:M.invalid_string,...U.errToObj(n)})}_addCheck(e){return new t({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...U.errToObj(e)})}url(e){return this._addCheck({kind:"url",...U.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",...U.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...U.errToObj(e)})}nanoid(e){return this._addCheck({kind:"nanoid",...U.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...U.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",...U.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid",...U.errToObj(e)})}base64(e){return this._addCheck({kind:"base64",...U.errToObj(e)})}base64url(e){return this._addCheck({kind:"base64url",...U.errToObj(e)})}jwt(e){return this._addCheck({kind:"jwt",...U.errToObj(e)})}ip(e){return this._addCheck({kind:"ip",...U.errToObj(e)})}cidr(e){return this._addCheck({kind:"cidr",...U.errToObj(e)})}datetime(e){return typeof e=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:e}):this._addCheck({kind:"datetime",precision:typeof e?.precision>"u"?null:e?.precision,offset:e?.offset??!1,local:e?.local??!1,...U.errToObj(e?.message)})}date(e){return this._addCheck({kind:"date",message:e})}time(e){return typeof e=="string"?this._addCheck({kind:"time",precision:null,message:e}):this._addCheck({kind:"time",precision:typeof e?.precision>"u"?null:e?.precision,...U.errToObj(e?.message)})}duration(e){return this._addCheck({kind:"duration",...U.errToObj(e)})}regex(e,i){return this._addCheck({kind:"regex",regex:e,...U.errToObj(i)})}includes(e,i){return this._addCheck({kind:"includes",value:e,position:i?.position,...U.errToObj(i?.message)})}startsWith(e,i){return this._addCheck({kind:"startsWith",value:e,...U.errToObj(i)})}endsWith(e,i){return this._addCheck({kind:"endsWith",value:e,...U.errToObj(i)})}min(e,i){return this._addCheck({kind:"min",value:e,...U.errToObj(i)})}max(e,i){return this._addCheck({kind:"max",value:e,...U.errToObj(i)})}length(e,i){return this._addCheck({kind:"length",value:e,...U.errToObj(i)})}nonempty(e){return this.min(1,U.errToObj(e))}trim(){return new t({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new t({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new t({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(e=>e.kind==="datetime")}get isDate(){return!!this._def.checks.find(e=>e.kind==="date")}get isTime(){return!!this._def.checks.find(e=>e.kind==="time")}get isDuration(){return!!this._def.checks.find(e=>e.kind==="duration")}get isEmail(){return!!this._def.checks.find(e=>e.kind==="email")}get isURL(){return!!this._def.checks.find(e=>e.kind==="url")}get isEmoji(){return!!this._def.checks.find(e=>e.kind==="emoji")}get isUUID(){return!!this._def.checks.find(e=>e.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(e=>e.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(e=>e.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(e=>e.kind==="cuid2")}get isULID(){return!!this._def.checks.find(e=>e.kind==="ulid")}get isIP(){return!!this._def.checks.find(e=>e.kind==="ip")}get isCIDR(){return!!this._def.checks.find(e=>e.kind==="cidr")}get isBase64(){return!!this._def.checks.find(e=>e.kind==="base64")}get isBase64url(){return!!this._def.checks.find(e=>e.kind==="base64url")}get minLength(){let e=null;for(let i of this._def.checks)i.kind==="min"&&(e===null||i.value>e)&&(e=i.value);return e}get maxLength(){let e=null;for(let i of this._def.checks)i.kind==="max"&&(e===null||i.valuenew ft({checks:[],typeName:E.ZodString,coerce:t?.coerce??!1,...ne(t)});function BI(t,e){let i=(t.toString().split(".")[1]||"").length,n=(e.toString().split(".")[1]||"").length,a=i>n?i:n,r=Number.parseInt(t.toFixed(a).replace(".","")),s=Number.parseInt(e.toFixed(a).replace(".",""));return r%s/10**a}var Qt=class t extends ae{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){if(this._def.coerce&&(e.data=Number(e.data)),this._getType(e)!==z.number){let r=this._getOrReturnCtx(e);return _(r,{code:M.invalid_type,expected:z.number,received:r.parsedType}),K}let n,a=new Ci;for(let r of this._def.checks)r.kind==="int"?ce.isInteger(e.data)||(n=this._getOrReturnCtx(e,n),_(n,{code:M.invalid_type,expected:"integer",received:"float",message:r.message}),a.dirty()):r.kind==="min"?(r.inclusive?e.datar.value:e.data>=r.value)&&(n=this._getOrReturnCtx(e,n),_(n,{code:M.too_big,maximum:r.value,type:"number",inclusive:r.inclusive,exact:!1,message:r.message}),a.dirty()):r.kind==="multipleOf"?BI(e.data,r.value)!==0&&(n=this._getOrReturnCtx(e,n),_(n,{code:M.not_multiple_of,multipleOf:r.value,message:r.message}),a.dirty()):r.kind==="finite"?Number.isFinite(e.data)||(n=this._getOrReturnCtx(e,n),_(n,{code:M.not_finite,message:r.message}),a.dirty()):ce.assertNever(r);return{status:a.value,value:e.data}}gte(e,i){return this.setLimit("min",e,!0,U.toString(i))}gt(e,i){return this.setLimit("min",e,!1,U.toString(i))}lte(e,i){return this.setLimit("max",e,!0,U.toString(i))}lt(e,i){return this.setLimit("max",e,!1,U.toString(i))}setLimit(e,i,n,a){return new t({...this._def,checks:[...this._def.checks,{kind:e,value:i,inclusive:n,message:U.toString(a)}]})}_addCheck(e){return new t({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:U.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:U.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:U.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:U.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:U.toString(e)})}multipleOf(e,i){return this._addCheck({kind:"multipleOf",value:e,message:U.toString(i)})}finite(e){return this._addCheck({kind:"finite",message:U.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:U.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:U.toString(e)})}get minValue(){let e=null;for(let i of this._def.checks)i.kind==="min"&&(e===null||i.value>e)&&(e=i.value);return e}get maxValue(){let e=null;for(let i of this._def.checks)i.kind==="max"&&(e===null||i.valuee.kind==="int"||e.kind==="multipleOf"&&ce.isInteger(e.value))}get isFinite(){let e=null,i=null;for(let n of this._def.checks){if(n.kind==="finite"||n.kind==="int"||n.kind==="multipleOf")return!0;n.kind==="min"?(i===null||n.value>i)&&(i=n.value):n.kind==="max"&&(e===null||n.valuenew Qt({checks:[],typeName:E.ZodNumber,coerce:t?.coerce||!1,...ne(t)});var Yt=class t extends ae{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){if(this._def.coerce)try{e.data=BigInt(e.data)}catch{return this._getInvalidInput(e)}if(this._getType(e)!==z.bigint)return this._getInvalidInput(e);let n,a=new Ci;for(let r of this._def.checks)r.kind==="min"?(r.inclusive?e.datar.value:e.data>=r.value)&&(n=this._getOrReturnCtx(e,n),_(n,{code:M.too_big,type:"bigint",maximum:r.value,inclusive:r.inclusive,message:r.message}),a.dirty()):r.kind==="multipleOf"?e.data%r.value!==BigInt(0)&&(n=this._getOrReturnCtx(e,n),_(n,{code:M.not_multiple_of,multipleOf:r.value,message:r.message}),a.dirty()):ce.assertNever(r);return{status:a.value,value:e.data}}_getInvalidInput(e){let i=this._getOrReturnCtx(e);return _(i,{code:M.invalid_type,expected:z.bigint,received:i.parsedType}),K}gte(e,i){return this.setLimit("min",e,!0,U.toString(i))}gt(e,i){return this.setLimit("min",e,!1,U.toString(i))}lte(e,i){return this.setLimit("max",e,!0,U.toString(i))}lt(e,i){return this.setLimit("max",e,!1,U.toString(i))}setLimit(e,i,n,a){return new t({...this._def,checks:[...this._def.checks,{kind:e,value:i,inclusive:n,message:U.toString(a)}]})}_addCheck(e){return new t({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:U.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:U.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:U.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:U.toString(e)})}multipleOf(e,i){return this._addCheck({kind:"multipleOf",value:e,message:U.toString(i)})}get minValue(){let e=null;for(let i of this._def.checks)i.kind==="min"&&(e===null||i.value>e)&&(e=i.value);return e}get maxValue(){let e=null;for(let i of this._def.checks)i.kind==="max"&&(e===null||i.valuenew Yt({checks:[],typeName:E.ZodBigInt,coerce:t?.coerce??!1,...ne(t)});var Xt=class extends ae{_parse(e){if(this._def.coerce&&(e.data=!!e.data),this._getType(e)!==z.boolean){let n=this._getOrReturnCtx(e);return _(n,{code:M.invalid_type,expected:z.boolean,received:n.parsedType}),K}return xi(e.data)}};Xt.create=t=>new Xt({typeName:E.ZodBoolean,coerce:t?.coerce||!1,...ne(t)});var ea=class t extends ae{_parse(e){if(this._def.coerce&&(e.data=new Date(e.data)),this._getType(e)!==z.date){let r=this._getOrReturnCtx(e);return _(r,{code:M.invalid_type,expected:z.date,received:r.parsedType}),K}if(Number.isNaN(e.data.getTime())){let r=this._getOrReturnCtx(e);return _(r,{code:M.invalid_date}),K}let n=new Ci,a;for(let r of this._def.checks)r.kind==="min"?e.data.getTime()r.value&&(a=this._getOrReturnCtx(e,a),_(a,{code:M.too_big,message:r.message,inclusive:!0,exact:!1,maximum:r.value,type:"date"}),n.dirty()):ce.assertNever(r);return{status:n.value,value:new Date(e.data.getTime())}}_addCheck(e){return new t({...this._def,checks:[...this._def.checks,e]})}min(e,i){return this._addCheck({kind:"min",value:e.getTime(),message:U.toString(i)})}max(e,i){return this._addCheck({kind:"max",value:e.getTime(),message:U.toString(i)})}get minDate(){let e=null;for(let i of this._def.checks)i.kind==="min"&&(e===null||i.value>e)&&(e=i.value);return e!=null?new Date(e):null}get maxDate(){let e=null;for(let i of this._def.checks)i.kind==="max"&&(e===null||i.valuenew ea({checks:[],coerce:t?.coerce||!1,typeName:E.ZodDate,...ne(t)});var tr=class extends ae{_parse(e){if(this._getType(e)!==z.symbol){let n=this._getOrReturnCtx(e);return _(n,{code:M.invalid_type,expected:z.symbol,received:n.parsedType}),K}return xi(e.data)}};tr.create=t=>new tr({typeName:E.ZodSymbol,...ne(t)});var ia=class extends ae{_parse(e){if(this._getType(e)!==z.undefined){let n=this._getOrReturnCtx(e);return _(n,{code:M.invalid_type,expected:z.undefined,received:n.parsedType}),K}return xi(e.data)}};ia.create=t=>new ia({typeName:E.ZodUndefined,...ne(t)});var na=class extends ae{_parse(e){if(this._getType(e)!==z.null){let n=this._getOrReturnCtx(e);return _(n,{code:M.invalid_type,expected:z.null,received:n.parsedType}),K}return xi(e.data)}};na.create=t=>new na({typeName:E.ZodNull,...ne(t)});var wt=class extends ae{constructor(){super(...arguments),this._any=!0}_parse(e){return xi(e.data)}};wt.create=t=>new wt({typeName:E.ZodAny,...ne(t)});var Xn=class extends ae{constructor(){super(...arguments),this._unknown=!0}_parse(e){return xi(e.data)}};Xn.create=t=>new Xn({typeName:E.ZodUnknown,...ne(t)});var vn=class extends ae{_parse(e){let i=this._getOrReturnCtx(e);return _(i,{code:M.invalid_type,expected:z.never,received:i.parsedType}),K}};vn.create=t=>new vn({typeName:E.ZodNever,...ne(t)});var ar=class extends ae{_parse(e){if(this._getType(e)!==z.undefined){let n=this._getOrReturnCtx(e);return _(n,{code:M.invalid_type,expected:z.void,received:n.parsedType}),K}return xi(e.data)}};ar.create=t=>new ar({typeName:E.ZodVoid,...ne(t)});var et=class t extends ae{_parse(e){let{ctx:i,status:n}=this._processInputParams(e),a=this._def;if(i.parsedType!==z.array)return _(i,{code:M.invalid_type,expected:z.array,received:i.parsedType}),K;if(a.exactLength!==null){let s=i.data.length>a.exactLength.value,o=i.data.lengtha.maxLength.value&&(_(i,{code:M.too_big,maximum:a.maxLength.value,type:"array",inclusive:!0,exact:!1,message:a.maxLength.message}),n.dirty()),i.common.async)return Promise.all([...i.data].map((s,o)=>a.type._parseAsync(new an(i,s,i.path,o)))).then(s=>Ci.mergeArray(n,s));let r=[...i.data].map((s,o)=>a.type._parseSync(new an(i,s,i.path,o)));return Ci.mergeArray(n,r)}get element(){return this._def.type}min(e,i){return new t({...this._def,minLength:{value:e,message:U.toString(i)}})}max(e,i){return new t({...this._def,maxLength:{value:e,message:U.toString(i)}})}length(e,i){return new t({...this._def,exactLength:{value:e,message:U.toString(i)}})}nonempty(e){return this.min(1,e)}};et.create=(t,e)=>new et({type:t,minLength:null,maxLength:null,exactLength:null,typeName:E.ZodArray,...ne(e)});function nr(t){if(t instanceof Di){let e={};for(let i in t.shape){let n=t.shape[i];e[i]=tn.create(nr(n))}return new Di({...t._def,shape:()=>e})}else return t instanceof et?new et({...t._def,type:nr(t.element)}):t instanceof tn?tn.create(nr(t.unwrap())):t instanceof Hn?Hn.create(nr(t.unwrap())):t instanceof _n?_n.create(t.items.map(e=>nr(e))):t}var Di=class t extends ae{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;let e=this._def.shape(),i=ce.objectKeys(e);return this._cached={shape:e,keys:i},this._cached}_parse(e){if(this._getType(e)!==z.object){let u=this._getOrReturnCtx(e);return _(u,{code:M.invalid_type,expected:z.object,received:u.parsedType}),K}let{status:n,ctx:a}=this._processInputParams(e),{shape:r,keys:s}=this._getCached(),o=[];if(!(this._def.catchall instanceof vn&&this._def.unknownKeys==="strip"))for(let u in a.data)s.includes(u)||o.push(u);let l=[];for(let u of s){let c=r[u],p=a.data[u];l.push({key:{status:"valid",value:u},value:c._parse(new an(a,p,a.path,u)),alwaysSet:u in a.data})}if(this._def.catchall instanceof vn){let u=this._def.unknownKeys;if(u==="passthrough")for(let c of o)l.push({key:{status:"valid",value:c},value:{status:"valid",value:a.data[c]}});else if(u==="strict")o.length>0&&(_(a,{code:M.unrecognized_keys,keys:o}),n.dirty());else if(u!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{let u=this._def.catchall;for(let c of o){let p=a.data[c];l.push({key:{status:"valid",value:c},value:u._parse(new an(a,p,a.path,c)),alwaysSet:c in a.data})}}return a.common.async?Promise.resolve().then(async()=>{let u=[];for(let c of l){let p=await c.key,d=await c.value;u.push({key:p,value:d,alwaysSet:c.alwaysSet})}return u}).then(u=>Ci.mergeObjectSync(n,u)):Ci.mergeObjectSync(n,l)}get shape(){return this._def.shape()}strict(e){return U.errToObj,new t({...this._def,unknownKeys:"strict",...e!==void 0?{errorMap:(i,n)=>{let a=this._def.errorMap?.(i,n).message??n.defaultError;return i.code==="unrecognized_keys"?{message:U.errToObj(e).message??a}:{message:a}}}:{}})}strip(){return new t({...this._def,unknownKeys:"strip"})}passthrough(){return new t({...this._def,unknownKeys:"passthrough"})}extend(e){return new t({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){return new t({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:E.ZodObject})}setKey(e,i){return this.augment({[e]:i})}catchall(e){return new t({...this._def,catchall:e})}pick(e){let i={};for(let n of ce.objectKeys(e))e[n]&&this.shape[n]&&(i[n]=this.shape[n]);return new t({...this._def,shape:()=>i})}omit(e){let i={};for(let n of ce.objectKeys(this.shape))e[n]||(i[n]=this.shape[n]);return new t({...this._def,shape:()=>i})}deepPartial(){return nr(this)}partial(e){let i={};for(let n of ce.objectKeys(this.shape)){let a=this.shape[n];e&&!e[n]?i[n]=a:i[n]=a.optional()}return new t({...this._def,shape:()=>i})}required(e){let i={};for(let n of ce.objectKeys(this.shape))if(e&&!e[n])i[n]=this.shape[n];else{let r=this.shape[n];for(;r instanceof tn;)r=r._def.innerType;i[n]=r}return new t({...this._def,shape:()=>i})}keyof(){return gy(ce.objectKeys(this.shape))}};Di.create=(t,e)=>new Di({shape:()=>t,unknownKeys:"strip",catchall:vn.create(),typeName:E.ZodObject,...ne(e)});Di.strictCreate=(t,e)=>new Di({shape:()=>t,unknownKeys:"strict",catchall:vn.create(),typeName:E.ZodObject,...ne(e)});Di.lazycreate=(t,e)=>new Di({shape:t,unknownKeys:"strip",catchall:vn.create(),typeName:E.ZodObject,...ne(e)});var ta=class extends ae{_parse(e){let{ctx:i}=this._processInputParams(e),n=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 i.common.issues.push(...o.ctx.common.issues),o.result;let s=r.map(o=>new zi(o.ctx.common.issues));return _(i,{code:M.invalid_union,unionErrors:s}),K}if(i.common.async)return Promise.all(n.map(async r=>{let s={...i,common:{...i.common,issues:[]},parent:null};return{result:await r._parseAsync({data:i.data,path:i.path,parent:s}),ctx:s}})).then(a);{let r,s=[];for(let l of n){let u={...i,common:{...i.common,issues:[]},parent:null},c=l._parseSync({data:i.data,path:i.path,parent:u});if(c.status==="valid")return c;c.status==="dirty"&&!r&&(r={result:c,ctx:u}),u.common.issues.length&&s.push(u.common.issues)}if(r)return i.common.issues.push(...r.ctx.common.issues),r.result;let o=s.map(l=>new zi(l));return _(i,{code:M.invalid_union,unionErrors:o}),K}}get options(){return this._def.options}};ta.create=(t,e)=>new ta({options:t,typeName:E.ZodUnion,...ne(e)});var Yn=t=>t instanceof ra?Yn(t.schema):t instanceof rn?Yn(t.innerType()):t instanceof sa?[t.value]:t instanceof oa?t.options:t instanceof la?ce.objectValues(t.enum):t instanceof ua?Yn(t._def.innerType):t instanceof ia?[void 0]:t instanceof na?[null]:t instanceof tn?[void 0,...Yn(t.unwrap())]:t instanceof Hn?[null,...Yn(t.unwrap())]:t instanceof fs||t instanceof pa?Yn(t.unwrap()):t instanceof ca?Yn(t._def.innerType):[],_l=class t extends ae{_parse(e){let{ctx:i}=this._processInputParams(e);if(i.parsedType!==z.object)return _(i,{code:M.invalid_type,expected:z.object,received:i.parsedType}),K;let n=this.discriminator,a=i.data[n],r=this.optionsMap.get(a);return r?i.common.async?r._parseAsync({data:i.data,path:i.path,parent:i}):r._parseSync({data:i.data,path:i.path,parent:i}):(_(i,{code:M.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[n]}),K)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(e,i,n){let a=new Map;for(let r of i){let s=Yn(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:i,optionsMap:a,...ne(n)})}};function wd(t,e){let i=qn(t),n=qn(e);if(t===e)return{valid:!0,data:t};if(i===z.object&&n===z.object){let a=ce.objectKeys(e),r=ce.objectKeys(t).filter(o=>a.indexOf(o)!==-1),s={...t,...e};for(let o of r){let l=wd(t[o],e[o]);if(!l.valid)return{valid:!1};s[o]=l.data}return{valid:!0,data:s}}else if(i===z.array&&n===z.array){if(t.length!==e.length)return{valid:!1};let a=[];for(let r=0;r{if(kl(r)||kl(s))return K;let o=wd(r.value,s.value);return o.valid?((ql(r)||ql(s))&&i.dirty(),{status:i.value,value:o.data}):(_(n,{code:M.invalid_intersection_types}),K)};return n.common.async?Promise.all([this._def.left._parseAsync({data:n.data,path:n.path,parent:n}),this._def.right._parseAsync({data:n.data,path:n.path,parent:n})]).then(([r,s])=>a(r,s)):a(this._def.left._parseSync({data:n.data,path:n.path,parent:n}),this._def.right._parseSync({data:n.data,path:n.path,parent:n}))}};aa.create=(t,e,i)=>new aa({left:t,right:e,typeName:E.ZodIntersection,...ne(i)});var _n=class t extends ae{_parse(e){let{status:i,ctx:n}=this._processInputParams(e);if(n.parsedType!==z.array)return _(n,{code:M.invalid_type,expected:z.array,received:n.parsedType}),K;if(n.data.lengththis._def.items.length&&(_(n,{code:M.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),i.dirty());let r=[...n.data].map((s,o)=>{let l=this._def.items[o]||this._def.rest;return l?l._parse(new an(n,s,n.path,o)):null}).filter(s=>!!s);return n.common.async?Promise.all(r).then(s=>Ci.mergeArray(i,s)):Ci.mergeArray(i,r)}get items(){return this._def.items}rest(e){return new t({...this._def,rest:e})}};_n.create=(t,e)=>{if(!Array.isArray(t))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new _n({items:t,typeName:E.ZodTuple,rest:null,...ne(e)})};var Hl=class t extends ae{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:i,ctx:n}=this._processInputParams(e);if(n.parsedType!==z.object)return _(n,{code:M.invalid_type,expected:z.object,received:n.parsedType}),K;let a=[],r=this._def.keyType,s=this._def.valueType;for(let o in n.data)a.push({key:r._parse(new an(n,o,n.path,o)),value:s._parse(new an(n,n.data[o],n.path,o)),alwaysSet:o in n.data});return n.common.async?Ci.mergeObjectAsync(i,a):Ci.mergeObjectSync(i,a)}get element(){return this._def.valueType}static create(e,i,n){return i instanceof ae?new t({keyType:e,valueType:i,typeName:E.ZodRecord,...ne(n)}):new t({keyType:ft.create(),valueType:e,typeName:E.ZodRecord,...ne(i)})}},rr=class extends ae{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:i,ctx:n}=this._processInputParams(e);if(n.parsedType!==z.map)return _(n,{code:M.invalid_type,expected:z.map,received:n.parsedType}),K;let a=this._def.keyType,r=this._def.valueType,s=[...n.data.entries()].map(([o,l],u)=>({key:a._parse(new an(n,o,n.path,[u,"key"])),value:r._parse(new an(n,l,n.path,[u,"value"]))}));if(n.common.async){let o=new Map;return Promise.resolve().then(async()=>{for(let l of s){let u=await l.key,c=await l.value;if(u.status==="aborted"||c.status==="aborted")return K;(u.status==="dirty"||c.status==="dirty")&&i.dirty(),o.set(u.value,c.value)}return{status:i.value,value:o}})}else{let o=new Map;for(let l of s){let u=l.key,c=l.value;if(u.status==="aborted"||c.status==="aborted")return K;(u.status==="dirty"||c.status==="dirty")&&i.dirty(),o.set(u.value,c.value)}return{status:i.value,value:o}}}};rr.create=(t,e,i)=>new rr({valueType:e,keyType:t,typeName:E.ZodMap,...ne(i)});var sr=class t extends ae{_parse(e){let{status:i,ctx:n}=this._processInputParams(e);if(n.parsedType!==z.set)return _(n,{code:M.invalid_type,expected:z.set,received:n.parsedType}),K;let a=this._def;a.minSize!==null&&n.data.sizea.maxSize.value&&(_(n,{code:M.too_big,maximum:a.maxSize.value,type:"set",inclusive:!0,exact:!1,message:a.maxSize.message}),i.dirty());let r=this._def.valueType;function s(l){let u=new Set;for(let c of l){if(c.status==="aborted")return K;c.status==="dirty"&&i.dirty(),u.add(c.value)}return{status:i.value,value:u}}let o=[...n.data.values()].map((l,u)=>r._parse(new an(n,l,n.path,u)));return n.common.async?Promise.all(o).then(l=>s(l)):s(o)}min(e,i){return new t({...this._def,minSize:{value:e,message:U.toString(i)}})}max(e,i){return new t({...this._def,maxSize:{value:e,message:U.toString(i)}})}size(e,i){return this.min(e,i).max(e,i)}nonempty(e){return this.min(1,e)}};sr.create=(t,e)=>new sr({valueType:t,minSize:null,maxSize:null,typeName:E.ZodSet,...ne(e)});var Rl=class t extends ae{constructor(){super(...arguments),this.validate=this.implement}_parse(e){let{ctx:i}=this._processInputParams(e);if(i.parsedType!==z.function)return _(i,{code:M.invalid_type,expected:z.function,received:i.parsedType}),K;function n(o,l){return ms({data:o,path:i.path,errorMaps:[i.common.contextualErrorMap,i.schemaErrorMap,er(),Qn].filter(u=>!!u),issueData:{code:M.invalid_arguments,argumentsError:l}})}function a(o,l){return ms({data:o,path:i.path,errorMaps:[i.common.contextualErrorMap,i.schemaErrorMap,er(),Qn].filter(u=>!!u),issueData:{code:M.invalid_return_type,returnTypeError:l}})}let r={errorMap:i.common.contextualErrorMap},s=i.data;if(this._def.returns instanceof vt){let o=this;return xi(async function(...l){let u=new zi([]),c=await o._def.args.parseAsync(l,r).catch(h=>{throw u.addIssue(n(l,h)),u}),p=await Reflect.apply(s,this,c);return await o._def.returns._def.type.parseAsync(p,r).catch(h=>{throw u.addIssue(a(p,h)),u})})}else{let o=this;return xi(function(...l){let u=o._def.args.safeParse(l,r);if(!u.success)throw new zi([n(l,u.error)]);let c=Reflect.apply(s,this,u.data),p=o._def.returns.safeParse(c,r);if(!p.success)throw new zi([a(c,p.error)]);return p.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...e){return new t({...this._def,args:_n.create(e).rest(Xn.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,i,n){return new t({args:e||_n.create([]).rest(Xn.create()),returns:i||Xn.create(),typeName:E.ZodFunction,...ne(n)})}},ra=class extends ae{get schema(){return this._def.getter()}_parse(e){let{ctx:i}=this._processInputParams(e);return this._def.getter()._parse({data:i.data,path:i.path,parent:i})}};ra.create=(t,e)=>new ra({getter:t,typeName:E.ZodLazy,...ne(e)});var sa=class extends ae{_parse(e){if(e.data!==this._def.value){let i=this._getOrReturnCtx(e);return _(i,{received:i.data,code:M.invalid_literal,expected:this._def.value}),K}return{status:"valid",value:e.data}}get value(){return this._def.value}};sa.create=(t,e)=>new sa({value:t,typeName:E.ZodLiteral,...ne(e)});function gy(t,e){return new oa({values:t,typeName:E.ZodEnum,...ne(e)})}var oa=class t extends ae{_parse(e){if(typeof e.data!="string"){let i=this._getOrReturnCtx(e),n=this._def.values;return _(i,{expected:ce.joinValues(n),received:i.parsedType,code:M.invalid_type}),K}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(e.data)){let i=this._getOrReturnCtx(e),n=this._def.values;return _(i,{received:i.data,code:M.invalid_enum_value,options:n}),K}return xi(e.data)}get options(){return this._def.values}get enum(){let e={};for(let i of this._def.values)e[i]=i;return e}get Values(){let e={};for(let i of this._def.values)e[i]=i;return e}get Enum(){let e={};for(let i of this._def.values)e[i]=i;return e}extract(e,i=this._def){return t.create(e,{...this._def,...i})}exclude(e,i=this._def){return t.create(this.options.filter(n=>!e.includes(n)),{...this._def,...i})}};oa.create=gy;var la=class extends ae{_parse(e){let i=ce.getValidEnumValues(this._def.values),n=this._getOrReturnCtx(e);if(n.parsedType!==z.string&&n.parsedType!==z.number){let a=ce.objectValues(i);return _(n,{expected:ce.joinValues(a),received:n.parsedType,code:M.invalid_type}),K}if(this._cache||(this._cache=new Set(ce.getValidEnumValues(this._def.values))),!this._cache.has(e.data)){let a=ce.objectValues(i);return _(n,{received:n.data,code:M.invalid_enum_value,options:a}),K}return xi(e.data)}get enum(){return this._def.values}};la.create=(t,e)=>new la({values:t,typeName:E.ZodNativeEnum,...ne(e)});var vt=class extends ae{unwrap(){return this._def.type}_parse(e){let{ctx:i}=this._processInputParams(e);if(i.parsedType!==z.promise&&i.common.async===!1)return _(i,{code:M.invalid_type,expected:z.promise,received:i.parsedType}),K;let n=i.parsedType===z.promise?i.data:Promise.resolve(i.data);return xi(n.then(a=>this._def.type.parseAsync(a,{path:i.path,errorMap:i.common.contextualErrorMap})))}};vt.create=(t,e)=>new vt({type:t,typeName:E.ZodPromise,...ne(e)});var rn=class extends ae{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===E.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){let{status:i,ctx:n}=this._processInputParams(e),a=this._def.effect||null,r={addIssue:s=>{_(n,s),s.fatal?i.abort():i.dirty()},get path(){return n.path}};if(r.addIssue=r.addIssue.bind(r),a.type==="preprocess"){let s=a.transform(n.data,r);if(n.common.async)return Promise.resolve(s).then(async o=>{if(i.value==="aborted")return K;let l=await this._def.schema._parseAsync({data:o,path:n.path,parent:n});return l.status==="aborted"?K:l.status==="dirty"?Kt(l.value):i.value==="dirty"?Kt(l.value):l});{if(i.value==="aborted")return K;let o=this._def.schema._parseSync({data:s,path:n.path,parent:n});return o.status==="aborted"?K:o.status==="dirty"?Kt(o.value):i.value==="dirty"?Kt(o.value):o}}if(a.type==="refinement"){let s=o=>{let l=a.refinement(o,r);if(n.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(n.common.async===!1){let o=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});return o.status==="aborted"?K:(o.status==="dirty"&&i.dirty(),s(o.value),{status:i.value,value:o.value})}else return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(o=>o.status==="aborted"?K:(o.status==="dirty"&&i.dirty(),s(o.value).then(()=>({status:i.value,value:o.value}))))}if(a.type==="transform")if(n.common.async===!1){let s=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});if(!mt(s))return K;let o=a.transform(s.value,r);if(o instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:i.value,value:o}}else return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(s=>mt(s)?Promise.resolve(a.transform(s.value,r)).then(o=>({status:i.value,value:o})):K);ce.assertNever(a)}};rn.create=(t,e,i)=>new rn({schema:t,typeName:E.ZodEffects,effect:e,...ne(i)});rn.createWithPreprocess=(t,e,i)=>new rn({schema:e,effect:{type:"preprocess",transform:t},typeName:E.ZodEffects,...ne(i)});var tn=class extends ae{_parse(e){return this._getType(e)===z.undefined?xi(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}};tn.create=(t,e)=>new tn({innerType:t,typeName:E.ZodOptional,...ne(e)});var Hn=class extends ae{_parse(e){return this._getType(e)===z.null?xi(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}};Hn.create=(t,e)=>new Hn({innerType:t,typeName:E.ZodNullable,...ne(e)});var ua=class extends ae{_parse(e){let{ctx:i}=this._processInputParams(e),n=i.data;return i.parsedType===z.undefined&&(n=this._def.defaultValue()),this._def.innerType._parse({data:n,path:i.path,parent:i})}removeDefault(){return this._def.innerType}};ua.create=(t,e)=>new ua({innerType:t,typeName:E.ZodDefault,defaultValue:typeof e.default=="function"?e.default:()=>e.default,...ne(e)});var ca=class extends ae{_parse(e){let{ctx:i}=this._processInputParams(e),n={...i,common:{...i.common,issues:[]}},a=this._def.innerType._parse({data:n.data,path:n.path,parent:{...n}});return ir(a)?a.then(r=>({status:"valid",value:r.status==="valid"?r.value:this._def.catchValue({get error(){return new zi(n.common.issues)},input:n.data})})):{status:"valid",value:a.status==="valid"?a.value:this._def.catchValue({get error(){return new zi(n.common.issues)},input:n.data})}}removeCatch(){return this._def.innerType}};ca.create=(t,e)=>new ca({innerType:t,typeName:E.ZodCatch,catchValue:typeof e.catch=="function"?e.catch:()=>e.catch,...ne(e)});var or=class extends ae{_parse(e){if(this._getType(e)!==z.nan){let n=this._getOrReturnCtx(e);return _(n,{code:M.invalid_type,expected:z.nan,received:n.parsedType}),K}return{status:"valid",value:e.data}}};or.create=t=>new or({typeName:E.ZodNaN,...ne(t)});var FI=Symbol("zod_brand"),fs=class extends ae{_parse(e){let{ctx:i}=this._processInputParams(e),n=i.data;return this._def.type._parse({data:n,path:i.path,parent:i})}unwrap(){return this._def.type}},ws=class t extends ae{_parse(e){let{status:i,ctx:n}=this._processInputParams(e);if(n.common.async)return(async()=>{let r=await this._def.in._parseAsync({data:n.data,path:n.path,parent:n});return r.status==="aborted"?K:r.status==="dirty"?(i.dirty(),Kt(r.value)):this._def.out._parseAsync({data:r.value,path:n.path,parent:n})})();{let a=this._def.in._parseSync({data:n.data,path:n.path,parent:n});return a.status==="aborted"?K:a.status==="dirty"?(i.dirty(),{status:"dirty",value:a.value}):this._def.out._parseSync({data:a.value,path:n.path,parent:n})}}static create(e,i){return new t({in:e,out:i,typeName:E.ZodPipeline})}},pa=class extends ae{_parse(e){let i=this._def.innerType._parse(e),n=a=>(mt(a)&&(a.value=Object.freeze(a.value)),a);return ir(i)?i.then(a=>n(a)):n(i)}unwrap(){return this._def.innerType}};pa.create=(t,e)=>new pa({innerType:t,typeName:E.ZodReadonly,...ne(e)});function cy(t,e){let i=typeof t=="function"?t(e):typeof t=="string"?{message:t}:t;return typeof i=="string"?{message:i}:i}function my(t,e={},i){return t?wt.create().superRefine((n,a)=>{let r=t(n);if(r instanceof Promise)return r.then(s=>{if(!s){let o=cy(e,n),l=o.fatal??i??!0;a.addIssue({code:"custom",...o,fatal:l})}});if(!r){let s=cy(e,n),o=s.fatal??i??!0;a.addIssue({code:"custom",...s,fatal:o})}}):wt.create()}var VI={object:Di.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 JI=(t,e={message:`Input not instance of ${t.name}`})=>my(i=>i instanceof t,e),fy=ft.create,wy=Qt.create,ZI=or.create,KI=Yt.create,vy=Xt.create,QI=ea.create,YI=tr.create,XI=ia.create,ez=na.create,iz=wt.create,nz=Xn.create,tz=vn.create,az=ar.create,rz=et.create,vd=Di.create,sz=Di.strictCreate,oz=ta.create,lz=_l.create,uz=aa.create,cz=_n.create,pz=Hl.create,dz=rr.create,hz=sr.create,gz=Rl.create,mz=ra.create,fz=sa.create,wz=oa.create,vz=la.create,Cz=vt.create,Az=rn.create,bz=tn.create,yz=Hn.create,Pz=rn.createWithPreprocess,jz=ws.create,Sz=()=>fy().optional(),Oz=()=>wy().optional(),xz=()=>vy().optional(),Tz={string:(t=>ft.create({...t,coerce:!0})),number:(t=>Qt.create({...t,coerce:!0})),boolean:(t=>Xt.create({...t,coerce:!0})),bigint:(t=>Yt.create({...t,coerce:!0})),date:(t=>ea.create({...t,coerce:!0}))};var Mz=K;var Cy;function j(t,e,i){function n(o,l){if(o._zod||Object.defineProperty(o,"_zod",{value:{def:l,constr:s,traits:new Set},enumerable:!1}),o._zod.traits.has(t))return;o._zod.traits.add(t),e(o,l);let u=s.prototype,c=Object.keys(u);for(let p=0;pi?.Parent&&o instanceof i.Parent?!0:o?._zod?.traits?.has(t)}),Object.defineProperty(s,"name",{value:t}),s}var TX=Symbol("zod_brand"),Rn=class extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}},lr=class extends Error{constructor(e){super(`Encountered unidirectional transform during encode: ${e}`),this.name="ZodEncodeError"}};(Cy=globalThis).__zod_globalConfig??(Cy.__zod_globalConfig={});var ur=globalThis.__zod_globalConfig;function Qi(t){return t&&Object.assign(ur,t),ur}var he={};gd(he,{BIGINT_FORMAT_RANGES:()=>yy,Class:()=>Ad,NUMBER_FORMAT_RANGES:()=>xd,aborted:()=>bt,allowsEval:()=>Pd,assert:()=>Rz,assertEqual:()=>kz,assertIs:()=>_z,assertNever:()=>Hz,assertNotEqual:()=>qz,assignProp:()=>Ct,base64ToUint8Array:()=>Ey,base64urlToUint8Array:()=>Fz,cached:()=>pr,captureStackTrace:()=>Dl,cleanEnum:()=>Bz,cleanRegex:()=>bs,clone:()=>Yi,cloneDef:()=>zz,createTransparentProxy:()=>Lz,defineLazy:()=>Oe,esc:()=>zl,escapeRegex:()=>nt,explicitlyAborted:()=>Td,extend:()=>Sy,finalizeIssue:()=>sn,floatSafeRemainder:()=>bd,getElementAtPath:()=>Dz,getEnumValues:()=>Cs,getLengthableOrigin:()=>ys,getParsedType:()=>Uz,getSizableOrigin:()=>My,hexToUint8Array:()=>Jz,isObject:()=>da,isPlainObject:()=>At,issue:()=>dr,joinValues:()=>Il,jsonStringifyReplacer:()=>cr,merge:()=>Wz,mergeDefs:()=>it,normalizeParams:()=>J,nullish:()=>As,numKeys:()=>Nz,objectClone:()=>Iz,omit:()=>jy,optionalKeys:()=>Od,parsedType:()=>Md,partial:()=>xy,pick:()=>Py,prefixIssues:()=>tt,primitiveTypes:()=>by,promiseAllObject:()=>Gz,propertyKeyTypes:()=>Sd,randomString:()=>$z,required:()=>Ty,safeExtend:()=>Oy,shallowClone:()=>jd,slugify:()=>yd,stringifyPrimitive:()=>Gl,uint8ArrayToBase64:()=>ky,uint8ArrayToBase64url:()=>Vz,uint8ArrayToHex:()=>Zz,unwrapMessage:()=>vs});function kz(t){return t}function qz(t){return t}function _z(t){}function Hz(t){throw new Error("Unexpected value in exhaustive check")}function Rz(t){}function Cs(t){let e=Object.values(t).filter(n=>typeof n=="number");return Object.entries(t).filter(([n,a])=>e.indexOf(+n)===-1).map(([n,a])=>a)}function Il(t,e="|"){return t.map(i=>Gl(i)).join(e)}function cr(t,e){return typeof e=="bigint"?e.toString():e}function pr(t){return{get value(){{let i=t();return Object.defineProperty(this,"value",{value:i}),i}throw new Error("cached value already set")}}}function As(t){return t==null}function bs(t){let e=t.startsWith("^")?1:0,i=t.endsWith("$")?t.length-1:t.length;return t.slice(e,i)}function bd(t,e){let i=t/e,n=Math.round(i),a=Number.EPSILON*Math.max(Math.abs(i),1);return Math.abs(i-n)i?.[n],t):t}function Gz(t){let e=Object.keys(t),i=e.map(n=>t[n]);return Promise.all(i).then(n=>{let a={};for(let r=0;r{};function da(t){return typeof t=="object"&&t!==null&&!Array.isArray(t)}var Pd=pr(()=>{if(ur.jitless||typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{let t=Function;return new t(""),!0}catch{return!1}});function At(t){if(da(t)===!1)return!1;let e=t.constructor;if(e===void 0||typeof e!="function")return!0;let i=e.prototype;return!(da(i)===!1||Object.prototype.hasOwnProperty.call(i,"isPrototypeOf")===!1)}function jd(t){return At(t)?{...t}:Array.isArray(t)?[...t]:t instanceof Map?new Map(t):t instanceof Set?new Set(t):t}function Nz(t){let e=0;for(let i in t)Object.prototype.hasOwnProperty.call(t,i)&&e++;return e}var Uz=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}`)}},Sd=new Set(["string","number","symbol"]),by=new Set(["string","number","bigint","boolean","symbol","undefined"]);function nt(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Yi(t,e,i){let n=new t._zod.constr(e??t._zod.def);return(!e||i?.parent)&&(n._zod.parent=t),n}function J(t){let e=t;if(!e)return{};if(typeof e=="string")return{error:()=>e};if(e?.message!==void 0){if(e?.error!==void 0)throw new Error("Cannot specify both `message` and `error` params");e.error=e.message}return delete e.message,typeof e.error=="string"?{...e,error:()=>e.error}:e}function Lz(t){let e;return new Proxy({},{get(i,n,a){return e??(e=t()),Reflect.get(e,n,a)},set(i,n,a,r){return e??(e=t()),Reflect.set(e,n,a,r)},has(i,n){return e??(e=t()),Reflect.has(e,n)},deleteProperty(i,n){return e??(e=t()),Reflect.deleteProperty(e,n)},ownKeys(i){return e??(e=t()),Reflect.ownKeys(e)},getOwnPropertyDescriptor(i,n){return e??(e=t()),Reflect.getOwnPropertyDescriptor(e,n)},defineProperty(i,n,a){return e??(e=t()),Reflect.defineProperty(e,n,a)}})}function Gl(t){return typeof t=="bigint"?t.toString()+"n":typeof t=="string"?`"${t}"`:`${t}`}function Od(t){return Object.keys(t).filter(e=>t[e]._zod.optin==="optional"&&t[e]._zod.optout==="optional")}var xd={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]},yy={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function Py(t,e){let i=t._zod.def,n=i.checks;if(n&&n.length>0)throw new Error(".pick() cannot be used on object schemas containing refinements");let r=it(t._zod.def,{get shape(){let s={};for(let o in e){if(!(o in i.shape))throw new Error(`Unrecognized key: "${o}"`);e[o]&&(s[o]=i.shape[o])}return Ct(this,"shape",s),s},checks:[]});return Yi(t,r)}function jy(t,e){let i=t._zod.def,n=i.checks;if(n&&n.length>0)throw new Error(".omit() cannot be used on object schemas containing refinements");let r=it(t._zod.def,{get shape(){let s={...t._zod.def.shape};for(let o in e){if(!(o in i.shape))throw new Error(`Unrecognized key: "${o}"`);e[o]&&delete s[o]}return Ct(this,"shape",s),s},checks:[]});return Yi(t,r)}function Sy(t,e){if(!At(e))throw new Error("Invalid input to extend: expected a plain object");let i=t._zod.def.checks;if(i&&i.length>0){let r=t._zod.def.shape;for(let s in e)if(Object.getOwnPropertyDescriptor(r,s)!==void 0)throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}let a=it(t._zod.def,{get shape(){let r={...t._zod.def.shape,...e};return Ct(this,"shape",r),r}});return Yi(t,a)}function Oy(t,e){if(!At(e))throw new Error("Invalid input to safeExtend: expected a plain object");let i=it(t._zod.def,{get shape(){let n={...t._zod.def.shape,...e};return Ct(this,"shape",n),n}});return Yi(t,i)}function Wz(t,e){if(t._zod.def.checks?.length)throw new Error(".merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.");let i=it(t._zod.def,{get shape(){let n={...t._zod.def.shape,...e._zod.def.shape};return Ct(this,"shape",n),n},get catchall(){return e._zod.def.catchall},checks:e._zod.def.checks??[]});return Yi(t,i)}function xy(t,e,i){let a=e._zod.def.checks;if(a&&a.length>0)throw new Error(".partial() cannot be used on object schemas containing refinements");let s=it(e._zod.def,{get shape(){let o=e._zod.def.shape,l={...o};if(i)for(let u in i){if(!(u in o))throw new Error(`Unrecognized key: "${u}"`);i[u]&&(l[u]=t?new t({type:"optional",innerType:o[u]}):o[u])}else for(let u in o)l[u]=t?new t({type:"optional",innerType:o[u]}):o[u];return Ct(this,"shape",l),l},checks:[]});return Yi(e,s)}function Ty(t,e,i){let n=it(e._zod.def,{get shape(){let a=e._zod.def.shape,r={...a};if(i)for(let s in i){if(!(s in r))throw new Error(`Unrecognized key: "${s}"`);i[s]&&(r[s]=new t({type:"nonoptional",innerType:a[s]}))}else for(let s in a)r[s]=new t({type:"nonoptional",innerType:a[s]});return Ct(this,"shape",r),r}});return Yi(e,n)}function bt(t,e=0){if(t.aborted===!0)return!0;for(let i=e;i{var n;return(n=i).path??(n.path=[]),i.path.unshift(t),i})}function vs(t){return typeof t=="string"?t:t?.message}function sn(t,e,i){let n=t.message?t.message:vs(t.inst?._zod.def?.error?.(t))??vs(e?.error?.(t))??vs(i.customError?.(t))??vs(i.localeError?.(t))??"Invalid input",{inst:a,continue:r,input:s,...o}=t;return o.path??(o.path=[]),o.message=n,e?.reportInput&&(o.input=s),o}function My(t){return t instanceof Set?"set":t instanceof Map?"map":t instanceof File?"file":"unknown"}function ys(t){return Array.isArray(t)?"array":typeof t=="string"?"string":"unknown"}function Md(t){let e=typeof t;switch(e){case"number":return Number.isNaN(t)?"nan":"number";case"object":{if(t===null)return"null";if(Array.isArray(t))return"array";let i=t;if(i&&Object.getPrototypeOf(i)!==Object.prototype&&"constructor"in i&&i.constructor)return i.constructor.name}}return e}function dr(...t){let[e,i,n]=t;return typeof e=="string"?{message:e,code:"custom",input:i,inst:n}:{...e}}function Bz(t){return Object.entries(t).filter(([e,i])=>Number.isNaN(Number.parseInt(e,10))).map(e=>e[1])}function Ey(t){let e=atob(t),i=new Uint8Array(e.length);for(let n=0;ne.toString(16).padStart(2,"0")).join("")}var Ad=class{constructor(...e){}};var qy=(t,e)=>{t.name="$ZodError",Object.defineProperty(t,"_zod",{value:t._zod,enumerable:!1}),Object.defineProperty(t,"issues",{value:e,enumerable:!1}),t.message=JSON.stringify(e,cr,2),Object.defineProperty(t,"toString",{value:()=>t.message,enumerable:!1})},$l=j("$ZodError",qy),Ps=j("$ZodError",qy,{Parent:Error});function _y(t,e=i=>i.message){let i={},n=[];for(let a of t.issues)a.path.length>0?(i[a.path[0]]=i[a.path[0]]||[],i[a.path[0]].push(e(a))):n.push(e(a));return{formErrors:n,fieldErrors:i}}function Hy(t,e=i=>i.message){let i={_errors:[]},n=(a,r=[])=>{for(let s of a.issues)if(s.code==="invalid_union"&&s.errors.length)s.errors.map(o=>n({issues:o},[...r,...s.path]));else if(s.code==="invalid_key")n({issues:s.issues},[...r,...s.path]);else if(s.code==="invalid_element")n({issues:s.issues},[...r,...s.path]);else{let o=[...r,...s.path];if(o.length===0)i._errors.push(e(s));else{let l=i,u=0;for(;u(e,i,n,a)=>{let r=n?{...n,async:!1}:{async:!1},s=e._zod.run({value:i,issues:[]},r);if(s instanceof Promise)throw new Rn;if(s.issues.length){let o=new(a?.Err??t)(s.issues.map(l=>sn(l,r,Qi())));throw Dl(o,a?.callee),o}return s.value},Nl=js(Ps),Ss=t=>async(e,i,n,a)=>{let r=n?{...n,async:!0}:{async:!0},s=e._zod.run({value:i,issues:[]},r);if(s instanceof Promise&&(s=await s),s.issues.length){let o=new(a?.Err??t)(s.issues.map(l=>sn(l,r,Qi())));throw Dl(o,a?.callee),o}return s.value},Ul=Ss(Ps),Os=t=>(e,i,n)=>{let a=n?{...n,async:!1}:{async:!1},r=e._zod.run({value:i,issues:[]},a);if(r instanceof Promise)throw new Rn;return r.issues.length?{success:!1,error:new(t??$l)(r.issues.map(s=>sn(s,a,Qi())))}:{success:!0,data:r.value}},ha=Os(Ps),xs=t=>async(e,i,n)=>{let a=n?{...n,async:!0}:{async:!0},r=e._zod.run({value:i,issues:[]},a);return r instanceof Promise&&(r=await r),r.issues.length?{success:!1,error:new t(r.issues.map(s=>sn(s,a,Qi())))}:{success:!0,data:r.value}},ga=xs(Ps),Ry=t=>(e,i,n)=>{let a=n?{...n,direction:"backward"}:{direction:"backward"};return js(t)(e,i,a)};var Iy=t=>(e,i,n)=>js(t)(e,i,n);var zy=t=>async(e,i,n)=>{let a=n?{...n,direction:"backward"}:{direction:"backward"};return Ss(t)(e,i,a)};var Dy=t=>async(e,i,n)=>Ss(t)(e,i,n);var Gy=t=>(e,i,n)=>{let a=n?{...n,direction:"backward"}:{direction:"backward"};return Os(t)(e,i,a)};var $y=t=>(e,i,n)=>Os(t)(e,i,n);var Ny=t=>async(e,i,n)=>{let a=n?{...n,direction:"backward"}:{direction:"backward"};return xs(t)(e,i,a)};var Uy=t=>async(e,i,n)=>xs(t)(e,i,n);var Ly=/^[cC][0-9a-z]{6,}$/,Wy=/^[0-9a-z]+$/,By=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,Fy=/^[0-9a-vA-V]{20}$/,Vy=/^[A-Za-z0-9]{27}$/,Jy=/^[a-zA-Z0-9_-]{21}$/,Zy=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/;var Ky=/^([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})$/,Ed=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 Qy=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/;var Qz="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function Yy(){return new RegExp(Qz,"u")}var Xy=/^(?:(?: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])$/,eP=/^(([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 iP=/^((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])$/,nP=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,tP=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,kd=/^[A-Za-z0-9_-]*$/;var aP=/^https?$/,rP=/^\+[1-9]\d{6,14}$/,sP="(?:(?:\\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])))",oP=new RegExp(`^${sP}$`);function lP(t){let e="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof t.precision=="number"?t.precision===-1?`${e}`:t.precision===0?`${e}:[0-5]\\d`:`${e}:[0-5]\\d\\.\\d{${t.precision}}`:`${e}(?::[0-5]\\d(?:\\.\\d+)?)?`}function uP(t){return new RegExp(`^${lP(t)}$`)}function cP(t){let e=lP({precision:t.precision}),i=["Z"];t.local&&i.push(""),t.offset&&i.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");let n=`${e}(?:${i.join("|")})`;return new RegExp(`^${sP}T(?:${n})$`)}var pP=t=>{let e=t?`[\\s\\S]{${t?.minimum??0},${t?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${e}$`)};var dP=/^-?\d+$/,qd=/^-?\d+(?:\.\d+)?$/,hP=/^(?:true|false)$/i,gP=/^null$/i;var mP=/^[^A-Z]*$/,fP=/^[^a-z]*$/;var di=j("$ZodCheck",(t,e)=>{var i;t._zod??(t._zod={}),t._zod.def=e,(i=t._zod).onattach??(i.onattach=[])}),wP={number:"number",bigint:"bigint",object:"date"},_d=j("$ZodCheckLessThan",(t,e)=>{di.init(t,e);let i=wP[typeof e.value];t._zod.onattach.push(n=>{let a=n._zod.bag,r=(e.inclusive?a.maximum:a.exclusiveMaximum)??Number.POSITIVE_INFINITY;e.value{(e.inclusive?n.value<=e.value:n.value{di.init(t,e);let i=wP[typeof e.value];t._zod.onattach.push(n=>{let a=n._zod.bag,r=(e.inclusive?a.minimum:a.exclusiveMinimum)??Number.NEGATIVE_INFINITY;e.value>r&&(e.inclusive?a.minimum=e.value:a.exclusiveMinimum=e.value)}),t._zod.check=n=>{(e.inclusive?n.value>=e.value:n.value>e.value)||n.issues.push({origin:i,code:"too_small",minimum:typeof e.value=="object"?e.value.getTime():e.value,input:n.value,inclusive:e.inclusive,inst:t,continue:!e.abort})}}),vP=j("$ZodCheckMultipleOf",(t,e)=>{di.init(t,e),t._zod.onattach.push(i=>{var n;(n=i._zod.bag).multipleOf??(n.multipleOf=e.value)}),t._zod.check=i=>{if(typeof i.value!=typeof e.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof i.value=="bigint"?i.value%e.value===BigInt(0):bd(i.value,e.value)===0)||i.issues.push({origin:typeof i.value,code:"not_multiple_of",divisor:e.value,input:i.value,inst:t,continue:!e.abort})}}),CP=j("$ZodCheckNumberFormat",(t,e)=>{di.init(t,e),e.format=e.format||"float64";let i=e.format?.includes("int"),n=i?"int":"number",[a,r]=xd[e.format];t._zod.onattach.push(s=>{let o=s._zod.bag;o.format=e.format,o.minimum=a,o.maximum=r,i&&(o.pattern=dP)}),t._zod.check=s=>{let o=s.value;if(i){if(!Number.isInteger(o)){s.issues.push({expected:n,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:n,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:n,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 AP=j("$ZodCheckMaxLength",(t,e)=>{var i;di.init(t,e),(i=t._zod.def).when??(i.when=n=>{let a=n.value;return!As(a)&&a.length!==void 0}),t._zod.onattach.push(n=>{let a=n._zod.bag.maximum??Number.POSITIVE_INFINITY;e.maximum{let a=n.value;if(a.length<=e.maximum)return;let s=ys(a);n.issues.push({origin:s,code:"too_big",maximum:e.maximum,inclusive:!0,input:a,inst:t,continue:!e.abort})}}),bP=j("$ZodCheckMinLength",(t,e)=>{var i;di.init(t,e),(i=t._zod.def).when??(i.when=n=>{let a=n.value;return!As(a)&&a.length!==void 0}),t._zod.onattach.push(n=>{let a=n._zod.bag.minimum??Number.NEGATIVE_INFINITY;e.minimum>a&&(n._zod.bag.minimum=e.minimum)}),t._zod.check=n=>{let a=n.value;if(a.length>=e.minimum)return;let s=ys(a);n.issues.push({origin:s,code:"too_small",minimum:e.minimum,inclusive:!0,input:a,inst:t,continue:!e.abort})}}),yP=j("$ZodCheckLengthEquals",(t,e)=>{var i;di.init(t,e),(i=t._zod.def).when??(i.when=n=>{let a=n.value;return!As(a)&&a.length!==void 0}),t._zod.onattach.push(n=>{let a=n._zod.bag;a.minimum=e.length,a.maximum=e.length,a.length=e.length}),t._zod.check=n=>{let a=n.value,r=a.length;if(r===e.length)return;let s=ys(a),o=r>e.length;n.issues.push({origin:s,...o?{code:"too_big",maximum:e.length}:{code:"too_small",minimum:e.length},inclusive:!0,exact:!0,input:n.value,inst:t,continue:!e.abort})}}),Ms=j("$ZodCheckStringFormat",(t,e)=>{var i,n;di.init(t,e),t._zod.onattach.push(a=>{let r=a._zod.bag;r.format=e.format,e.pattern&&(r.patterns??(r.patterns=new Set),r.patterns.add(e.pattern))}),e.pattern?(i=t._zod).check??(i.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})}):(n=t._zod).check??(n.check=()=>{})}),PP=j("$ZodCheckRegex",(t,e)=>{Ms.init(t,e),t._zod.check=i=>{e.pattern.lastIndex=0,!e.pattern.test(i.value)&&i.issues.push({origin:"string",code:"invalid_format",format:"regex",input:i.value,pattern:e.pattern.toString(),inst:t,continue:!e.abort})}}),jP=j("$ZodCheckLowerCase",(t,e)=>{e.pattern??(e.pattern=mP),Ms.init(t,e)}),SP=j("$ZodCheckUpperCase",(t,e)=>{e.pattern??(e.pattern=fP),Ms.init(t,e)}),OP=j("$ZodCheckIncludes",(t,e)=>{di.init(t,e);let i=nt(e.includes),n=new RegExp(typeof e.position=="number"?`^.{${e.position}}${i}`:i);e.pattern=n,t._zod.onattach.push(a=>{let r=a._zod.bag;r.patterns??(r.patterns=new Set),r.patterns.add(n)}),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})}}),xP=j("$ZodCheckStartsWith",(t,e)=>{di.init(t,e);let i=new RegExp(`^${nt(e.prefix)}.*`);e.pattern??(e.pattern=i),t._zod.onattach.push(n=>{let a=n._zod.bag;a.patterns??(a.patterns=new Set),a.patterns.add(i)}),t._zod.check=n=>{n.value.startsWith(e.prefix)||n.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:e.prefix,input:n.value,inst:t,continue:!e.abort})}}),TP=j("$ZodCheckEndsWith",(t,e)=>{di.init(t,e);let i=new RegExp(`.*${nt(e.suffix)}$`);e.pattern??(e.pattern=i),t._zod.onattach.push(n=>{let a=n._zod.bag;a.patterns??(a.patterns=new Set),a.patterns.add(i)}),t._zod.check=n=>{n.value.endsWith(e.suffix)||n.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:e.suffix,input:n.value,inst:t,continue:!e.abort})}});var MP=j("$ZodCheckOverwrite",(t,e)=>{di.init(t,e),t._zod.check=i=>{i.value=e.tx(i.value)}});var Ll=class{constructor(e=[]){this.content=[],this.indent=0,this&&(this.args=e)}indented(e){this.indent+=1,e(this),this.indent-=1}write(e){if(typeof e=="function"){e(this,{execution:"sync"}),e(this,{execution:"async"});return}let n=e.split(` `).filter(s=>s),a=Math.min(...n.map(s=>s.length-s.trimStart().length)),r=n.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,i=this?.args,a=[...(this?.content??[""]).map(r=>` ${r}`)];return new e(...i,a.join(` -`))}};var MP={major:4,minor:4,patch:3};var ke=j("$ZodType",(t,e)=>{var i;t??(t={}),t._zod.def=e,t._zod.bag=t._zod.bag||{},t._zod.version=MP;let n=[...t._zod.def.checks??[]];t._zod.traits.has("$ZodCheck")&&n.unshift(t);for(let a of n)for(let r of a._zod.onattach)r(t);if(n.length===0)(i=t._zod).deferred??(i.deferred=[]),t._zod.deferred?.push(()=>{t._zod.run=t._zod.parse});else{let a=(s,o,l)=>{let u=bt(s),c;for(let p of o){if(p._zod.def.when){if(Od(s)||!p._zod.def.when(s))continue}else if(u)continue;let d=s.issues.length,h=p._zod.check(s);if(h instanceof Promise&&l?.async===!1)throw new Hn;if(c||h instanceof Promise)c=(c??Promise.resolve()).then(async()=>{await h,s.issues.length!==d&&(u||(u=bt(s,d)))});else{if(s.issues.length===d)continue;u||(u=bt(s,d))}}return c?c.then(()=>s):s},r=(s,o,l)=>{if(bt(s))return s.aborted=!0,s;let u=a(o,n,l);if(u instanceof Promise){if(l.async===!1)throw new Hn;return u.then(c=>t._zod.parse(c,l))}return t._zod.parse(u,l)};t._zod.run=(s,o)=>{if(o.skipChecks)return t._zod.parse(s,o);if(o.direction==="backward"){let u=t._zod.parse({value:s.value,issues:[]},{...o,skipChecks:!0});return u instanceof Promise?u.then(c=>r(c,s,o)):r(u,s,o)}let l=t._zod.parse(s,o);if(l instanceof Promise){if(o.async===!1)throw new Hn;return l.then(u=>a(u,n,o))}return a(l,n,o)}}Oe(t,"~standard",()=>({validate:a=>{try{let r=ha(t,a);return r.success?{value:r.data}:{issues:r.error?.issues}}catch{return ga(t,a).then(s=>s.success?{value:s.data}:{issues:s.error?.issues})}},vendor:"zod",version:1}))}),Ts=j("$ZodString",(t,e)=>{ke.init(t,e),t._zod.pattern=[...t?._zod.bag?.patterns??[]].pop()??uP(t._zod.bag),t._zod.parse=(i,n)=>{if(e.coerce)try{i.value=String(i.value)}catch{}return typeof i.value=="string"||i.issues.push({expected:"string",code:"invalid_type",input:i.value,inst:t}),i}}),Ie=j("$ZodStringFormat",(t,e)=>{xs.init(t,e),Ts.init(t,e)}),Hd=j("$ZodGUID",(t,e)=>{e.pattern??(e.pattern=Jy),Ie.init(t,e)}),Rd=j("$ZodUUID",(t,e)=>{if(e.version){let n={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[e.version];if(n===void 0)throw new Error(`Invalid UUID version: "${e.version}"`);e.pattern??(e.pattern=Td(n))}else e.pattern??(e.pattern=Td());Ie.init(t,e)}),Id=j("$ZodEmail",(t,e)=>{e.pattern??(e.pattern=Zy),Ie.init(t,e)}),zd=j("$ZodURL",(t,e)=>{Ie.init(t,e),t._zod.check=i=>{try{let n=i.value.trim();if(!e.normalize&&e.protocol?.source===nP.source&&!/^https?:\/\//i.test(n)){i.issues.push({code:"invalid_format",format:"url",note:"Invalid URL format",input:i.value,inst:t,continue:!e.abort});return}let a=new URL(n);e.hostname&&(e.hostname.lastIndex=0,e.hostname.test(a.hostname)||i.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:e.hostname.source,input:i.value,inst:t,continue:!e.abort})),e.protocol&&(e.protocol.lastIndex=0,e.protocol.test(a.protocol.endsWith(":")?a.protocol.slice(0,-1):a.protocol)||i.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:e.protocol.source,input:i.value,inst:t,continue:!e.abort})),e.normalize?i.value=a.href:i.value=n;return}catch{i.issues.push({code:"invalid_format",format:"url",input:i.value,inst:t,continue:!e.abort})}}}),Dd=j("$ZodEmoji",(t,e)=>{e.pattern??(e.pattern=Ky()),Ie.init(t,e)}),Gd=j("$ZodNanoID",(t,e)=>{e.pattern??(e.pattern=Fy),Ie.init(t,e)}),$d=j("$ZodCUID",(t,e)=>{e.pattern??(e.pattern=Ny),Ie.init(t,e)}),Nd=j("$ZodCUID2",(t,e)=>{e.pattern??(e.pattern=Uy),Ie.init(t,e)}),Ud=j("$ZodULID",(t,e)=>{e.pattern??(e.pattern=Ly),Ie.init(t,e)}),Ld=j("$ZodXID",(t,e)=>{e.pattern??(e.pattern=Wy),Ie.init(t,e)}),Wd=j("$ZodKSUID",(t,e)=>{e.pattern??(e.pattern=By),Ie.init(t,e)}),DP=j("$ZodISODateTime",(t,e)=>{e.pattern??(e.pattern=lP(e)),Ie.init(t,e)}),GP=j("$ZodISODate",(t,e)=>{e.pattern??(e.pattern=rP),Ie.init(t,e)}),$P=j("$ZodISOTime",(t,e)=>{e.pattern??(e.pattern=oP(e)),Ie.init(t,e)}),NP=j("$ZodISODuration",(t,e)=>{e.pattern??(e.pattern=Vy),Ie.init(t,e)}),Bd=j("$ZodIPv4",(t,e)=>{e.pattern??(e.pattern=Qy),Ie.init(t,e),t._zod.bag.format="ipv4"}),Fd=j("$ZodIPv6",(t,e)=>{e.pattern??(e.pattern=Yy),Ie.init(t,e),t._zod.bag.format="ipv6",t._zod.check=i=>{try{new URL(`http://[${i.value}]`)}catch{i.issues.push({code:"invalid_format",format:"ipv6",input:i.value,inst:t,continue:!e.abort})}}});var Vd=j("$ZodCIDRv4",(t,e)=>{e.pattern??(e.pattern=Xy),Ie.init(t,e)}),Jd=j("$ZodCIDRv6",(t,e)=>{e.pattern??(e.pattern=eP),Ie.init(t,e),t._zod.check=i=>{let n=i.value.split("/");try{if(n.length!==2)throw new Error;let[a,r]=n;if(!r)throw new Error;let s=Number(r);if(`${s}`!==r)throw new Error;if(s<0||s>128)throw new Error;new URL(`http://[${a}]`)}catch{i.issues.push({code:"invalid_format",format:"cidrv6",input:i.value,inst:t,continue:!e.abort})}}});function UP(t){if(t==="")return!0;if(/\s/.test(t)||t.length%4!==0)return!1;try{return atob(t),!0}catch{return!1}}var Zd=j("$ZodBase64",(t,e)=>{e.pattern??(e.pattern=iP),Ie.init(t,e),t._zod.bag.contentEncoding="base64",t._zod.check=i=>{UP(i.value)||i.issues.push({code:"invalid_format",format:"base64",input:i.value,inst:t,continue:!e.abort})}});function Fz(t){if(!Md.test(t))return!1;let e=t.replace(/[-_]/g,n=>n==="-"?"+":"/"),i=e.padEnd(Math.ceil(e.length/4)*4,"=");return UP(i)}var Kd=j("$ZodBase64URL",(t,e)=>{e.pattern??(e.pattern=Md),Ie.init(t,e),t._zod.bag.contentEncoding="base64url",t._zod.check=i=>{Fz(i.value)||i.issues.push({code:"invalid_format",format:"base64url",input:i.value,inst:t,continue:!e.abort})}}),Qd=j("$ZodE164",(t,e)=>{e.pattern??(e.pattern=tP),Ie.init(t,e)});function Vz(t,e=null){try{let i=t.split(".");if(i.length!==3)return!1;let[n]=i;if(!n)return!1;let a=JSON.parse(atob(n));return!("typ"in a&&a?.typ!=="JWT"||!a.alg||e&&(!("alg"in a)||a.alg!==e))}catch{return!1}}var Yd=j("$ZodJWT",(t,e)=>{Ie.init(t,e),t._zod.check=i=>{Vz(i.value,e.alg)||i.issues.push({code:"invalid_format",format:"jwt",input:i.value,inst:t,continue:!e.abort})}});var Bl=j("$ZodNumber",(t,e)=>{ke.init(t,e),t._zod.pattern=t._zod.bag.pattern??Ed,t._zod.parse=(i,n)=>{if(e.coerce)try{i.value=Number(i.value)}catch{}let a=i.value;if(typeof a=="number"&&!Number.isNaN(a)&&Number.isFinite(a))return i;let r=typeof a=="number"?Number.isNaN(a)?"NaN":Number.isFinite(a)?void 0:"Infinity":void 0;return i.issues.push({expected:"number",code:"invalid_type",input:a,inst:t,...r?{received:r}:{}}),i}}),Xd=j("$ZodNumberFormat",(t,e)=>{wP.init(t,e),Bl.init(t,e)}),eh=j("$ZodBoolean",(t,e)=>{ke.init(t,e),t._zod.pattern=pP,t._zod.parse=(i,n)=>{if(e.coerce)try{i.value=!!i.value}catch{}let a=i.value;return typeof a=="boolean"||i.issues.push({expected:"boolean",code:"invalid_type",input:a,inst:t}),i}});var ih=j("$ZodNull",(t,e)=>{ke.init(t,e),t._zod.pattern=dP,t._zod.values=new Set([null]),t._zod.parse=(i,n)=>{let a=i.value;return a===null||i.issues.push({expected:"null",code:"invalid_type",input:a,inst:t}),i}});var nh=j("$ZodUnknown",(t,e)=>{ke.init(t,e),t._zod.parse=i=>i}),th=j("$ZodNever",(t,e)=>{ke.init(t,e),t._zod.parse=(i,n)=>(i.issues.push({expected:"never",code:"invalid_type",input:i.value,inst:t}),i)});function EP(t,e,i){t.issues.length&&e.issues.push(...tt(i,t.issues)),e.value[i]=t.value}var ah=j("$ZodArray",(t,e)=>{ke.init(t,e),t._zod.parse=(i,n)=>{let a=i.value;if(!Array.isArray(a))return i.issues.push({expected:"array",code:"invalid_type",input:a,inst:t}),i;i.value=Array(a.length);let r=[];for(let s=0;sEP(u,i,s))):EP(l,i,s)}return r.length?Promise.all(r).then(()=>i):i}});function Wl(t,e,i,n,a,r){let s=i in n;if(t.issues.length){if(a&&r&&!s)return;e.issues.push(...tt(i,t.issues))}if(!s&&!a){t.issues.length||e.issues.push({code:"invalid_type",expected:"nonoptional",input:void 0,path:[i]});return}t.value===void 0?s&&(e.value[i]=void 0):e.value[i]=t.value}function LP(t){let e=Object.keys(t.shape);for(let n of e)if(!t.shape?.[n]?._zod?.traits?.has("$ZodType"))throw new Error(`Invalid element at key "${n}": expected a Zod schema`);let i=jd(t.shape);return{...t,keys:e,keySet:new Set(e),numKeys:e.length,optionalKeys:new Set(i)}}function WP(t,e,i,n,a,r){let s=[],o=a.keySet,l=a.catchall._zod,u=l.def.type,c=l.optin==="optional",p=l.optout==="optional";for(let d in e){if(d==="__proto__"||o.has(d))continue;if(u==="never"){s.push(d);continue}let h=l.run({value:e[d],issues:[]},n);h instanceof Promise?t.push(h.then(g=>Wl(g,i,d,e,c,p))):Wl(h,i,d,e,c,p)}return s.length&&i.issues.push({code:"unrecognized_keys",keys:s,input:e,inst:r}),t.length?Promise.all(t).then(()=>i):i}var rh=j("$ZodObject",(t,e)=>{if(ke.init(t,e),!Object.getOwnPropertyDescriptor(e,"shape")?.get){let o=e.shape;Object.defineProperty(e,"shape",{get:()=>{let l={...o};return Object.defineProperty(e,"shape",{value:l}),l}})}let n=cr(()=>LP(e));Oe(t._zod,"propValues",()=>{let o=e.shape,l={};for(let u in o){let c=o[u]._zod;if(c.values){l[u]??(l[u]=new Set);for(let p of c.values)l[u].add(p)}}return l});let a=da,r=e.catchall,s;t._zod.parse=(o,l)=>{s??(s=n.value);let u=o.value;if(!a(u))return o.issues.push({expected:"object",code:"invalid_type",input:u,inst:t}),o;o.value={};let c=[],p=s.shape;for(let d of s.keys){let h=p[d],g=h._zod.optin==="optional",m=h._zod.optout==="optional",f=h._zod.run({value:u[d],issues:[]},l);f instanceof Promise?c.push(f.then(v=>Wl(v,o,d,u,g,m))):Wl(f,o,d,u,g,m)}return r?WP(c,u,o,l,n.value,t):c.length?Promise.all(c).then(()=>o):o}}),BP=j("$ZodObjectJIT",(t,e)=>{rh.init(t,e);let i=t._zod.parse,n=cr(()=>LP(e)),a=d=>{let h=new Ul(["shape","payload","ctx"]),g=n.value,m=A=>{let b=Il(A);return`shape[${b}]._zod.run({ value: input[${b}], issues: [] }, ctx)`};h.write("const input = payload.value;");let f=Object.create(null),v=0;for(let A of g.keys)f[A]=`key_${v++}`;h.write("const newResult = {};");for(let A of g.keys){let b=f[A],O=Il(A),$=d[A],N=$?._zod?.optin==="optional",X=$?._zod?.optout==="optional";h.write(`const ${b} = ${m(A)};`),N&&X?h.write(` +`))}};var kP={major:4,minor:4,patch:3};var ke=j("$ZodType",(t,e)=>{var i;t??(t={}),t._zod.def=e,t._zod.bag=t._zod.bag||{},t._zod.version=kP;let n=[...t._zod.def.checks??[]];t._zod.traits.has("$ZodCheck")&&n.unshift(t);for(let a of n)for(let r of a._zod.onattach)r(t);if(n.length===0)(i=t._zod).deferred??(i.deferred=[]),t._zod.deferred?.push(()=>{t._zod.run=t._zod.parse});else{let a=(s,o,l)=>{let u=bt(s),c;for(let p of o){if(p._zod.def.when){if(Td(s)||!p._zod.def.when(s))continue}else if(u)continue;let d=s.issues.length,h=p._zod.check(s);if(h instanceof Promise&&l?.async===!1)throw new Rn;if(c||h instanceof Promise)c=(c??Promise.resolve()).then(async()=>{await h,s.issues.length!==d&&(u||(u=bt(s,d)))});else{if(s.issues.length===d)continue;u||(u=bt(s,d))}}return c?c.then(()=>s):s},r=(s,o,l)=>{if(bt(s))return s.aborted=!0,s;let u=a(o,n,l);if(u instanceof Promise){if(l.async===!1)throw new Rn;return u.then(c=>t._zod.parse(c,l))}return t._zod.parse(u,l)};t._zod.run=(s,o)=>{if(o.skipChecks)return t._zod.parse(s,o);if(o.direction==="backward"){let u=t._zod.parse({value:s.value,issues:[]},{...o,skipChecks:!0});return u instanceof Promise?u.then(c=>r(c,s,o)):r(u,s,o)}let l=t._zod.parse(s,o);if(l instanceof Promise){if(o.async===!1)throw new Rn;return l.then(u=>a(u,n,o))}return a(l,n,o)}}Oe(t,"~standard",()=>({validate:a=>{try{let r=ha(t,a);return r.success?{value:r.data}:{issues:r.error?.issues}}catch{return ga(t,a).then(s=>s.success?{value:s.data}:{issues:s.error?.issues})}},vendor:"zod",version:1}))}),Es=j("$ZodString",(t,e)=>{ke.init(t,e),t._zod.pattern=[...t?._zod.bag?.patterns??[]].pop()??pP(t._zod.bag),t._zod.parse=(i,n)=>{if(e.coerce)try{i.value=String(i.value)}catch{}return typeof i.value=="string"||i.issues.push({expected:"string",code:"invalid_type",input:i.value,inst:t}),i}}),Ie=j("$ZodStringFormat",(t,e)=>{Ms.init(t,e),Es.init(t,e)}),Id=j("$ZodGUID",(t,e)=>{e.pattern??(e.pattern=Ky),Ie.init(t,e)}),zd=j("$ZodUUID",(t,e)=>{if(e.version){let n={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[e.version];if(n===void 0)throw new Error(`Invalid UUID version: "${e.version}"`);e.pattern??(e.pattern=Ed(n))}else e.pattern??(e.pattern=Ed());Ie.init(t,e)}),Dd=j("$ZodEmail",(t,e)=>{e.pattern??(e.pattern=Qy),Ie.init(t,e)}),Gd=j("$ZodURL",(t,e)=>{Ie.init(t,e),t._zod.check=i=>{try{let n=i.value.trim();if(!e.normalize&&e.protocol?.source===aP.source&&!/^https?:\/\//i.test(n)){i.issues.push({code:"invalid_format",format:"url",note:"Invalid URL format",input:i.value,inst:t,continue:!e.abort});return}let a=new URL(n);e.hostname&&(e.hostname.lastIndex=0,e.hostname.test(a.hostname)||i.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:e.hostname.source,input:i.value,inst:t,continue:!e.abort})),e.protocol&&(e.protocol.lastIndex=0,e.protocol.test(a.protocol.endsWith(":")?a.protocol.slice(0,-1):a.protocol)||i.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:e.protocol.source,input:i.value,inst:t,continue:!e.abort})),e.normalize?i.value=a.href:i.value=n;return}catch{i.issues.push({code:"invalid_format",format:"url",input:i.value,inst:t,continue:!e.abort})}}}),$d=j("$ZodEmoji",(t,e)=>{e.pattern??(e.pattern=Yy()),Ie.init(t,e)}),Nd=j("$ZodNanoID",(t,e)=>{e.pattern??(e.pattern=Jy),Ie.init(t,e)}),Ud=j("$ZodCUID",(t,e)=>{e.pattern??(e.pattern=Ly),Ie.init(t,e)}),Ld=j("$ZodCUID2",(t,e)=>{e.pattern??(e.pattern=Wy),Ie.init(t,e)}),Wd=j("$ZodULID",(t,e)=>{e.pattern??(e.pattern=By),Ie.init(t,e)}),Bd=j("$ZodXID",(t,e)=>{e.pattern??(e.pattern=Fy),Ie.init(t,e)}),Fd=j("$ZodKSUID",(t,e)=>{e.pattern??(e.pattern=Vy),Ie.init(t,e)}),$P=j("$ZodISODateTime",(t,e)=>{e.pattern??(e.pattern=cP(e)),Ie.init(t,e)}),NP=j("$ZodISODate",(t,e)=>{e.pattern??(e.pattern=oP),Ie.init(t,e)}),UP=j("$ZodISOTime",(t,e)=>{e.pattern??(e.pattern=uP(e)),Ie.init(t,e)}),LP=j("$ZodISODuration",(t,e)=>{e.pattern??(e.pattern=Zy),Ie.init(t,e)}),Vd=j("$ZodIPv4",(t,e)=>{e.pattern??(e.pattern=Xy),Ie.init(t,e),t._zod.bag.format="ipv4"}),Jd=j("$ZodIPv6",(t,e)=>{e.pattern??(e.pattern=eP),Ie.init(t,e),t._zod.bag.format="ipv6",t._zod.check=i=>{try{new URL(`http://[${i.value}]`)}catch{i.issues.push({code:"invalid_format",format:"ipv6",input:i.value,inst:t,continue:!e.abort})}}});var Zd=j("$ZodCIDRv4",(t,e)=>{e.pattern??(e.pattern=iP),Ie.init(t,e)}),Kd=j("$ZodCIDRv6",(t,e)=>{e.pattern??(e.pattern=nP),Ie.init(t,e),t._zod.check=i=>{let n=i.value.split("/");try{if(n.length!==2)throw new Error;let[a,r]=n;if(!r)throw new Error;let s=Number(r);if(`${s}`!==r)throw new Error;if(s<0||s>128)throw new Error;new URL(`http://[${a}]`)}catch{i.issues.push({code:"invalid_format",format:"cidrv6",input:i.value,inst:t,continue:!e.abort})}}});function WP(t){if(t==="")return!0;if(/\s/.test(t)||t.length%4!==0)return!1;try{return atob(t),!0}catch{return!1}}var Qd=j("$ZodBase64",(t,e)=>{e.pattern??(e.pattern=tP),Ie.init(t,e),t._zod.bag.contentEncoding="base64",t._zod.check=i=>{WP(i.value)||i.issues.push({code:"invalid_format",format:"base64",input:i.value,inst:t,continue:!e.abort})}});function Yz(t){if(!kd.test(t))return!1;let e=t.replace(/[-_]/g,n=>n==="-"?"+":"/"),i=e.padEnd(Math.ceil(e.length/4)*4,"=");return WP(i)}var Yd=j("$ZodBase64URL",(t,e)=>{e.pattern??(e.pattern=kd),Ie.init(t,e),t._zod.bag.contentEncoding="base64url",t._zod.check=i=>{Yz(i.value)||i.issues.push({code:"invalid_format",format:"base64url",input:i.value,inst:t,continue:!e.abort})}}),Xd=j("$ZodE164",(t,e)=>{e.pattern??(e.pattern=rP),Ie.init(t,e)});function Xz(t,e=null){try{let i=t.split(".");if(i.length!==3)return!1;let[n]=i;if(!n)return!1;let a=JSON.parse(atob(n));return!("typ"in a&&a?.typ!=="JWT"||!a.alg||e&&(!("alg"in a)||a.alg!==e))}catch{return!1}}var eh=j("$ZodJWT",(t,e)=>{Ie.init(t,e),t._zod.check=i=>{Xz(i.value,e.alg)||i.issues.push({code:"invalid_format",format:"jwt",input:i.value,inst:t,continue:!e.abort})}});var Fl=j("$ZodNumber",(t,e)=>{ke.init(t,e),t._zod.pattern=t._zod.bag.pattern??qd,t._zod.parse=(i,n)=>{if(e.coerce)try{i.value=Number(i.value)}catch{}let a=i.value;if(typeof a=="number"&&!Number.isNaN(a)&&Number.isFinite(a))return i;let r=typeof a=="number"?Number.isNaN(a)?"NaN":Number.isFinite(a)?void 0:"Infinity":void 0;return i.issues.push({expected:"number",code:"invalid_type",input:a,inst:t,...r?{received:r}:{}}),i}}),ih=j("$ZodNumberFormat",(t,e)=>{CP.init(t,e),Fl.init(t,e)}),nh=j("$ZodBoolean",(t,e)=>{ke.init(t,e),t._zod.pattern=hP,t._zod.parse=(i,n)=>{if(e.coerce)try{i.value=!!i.value}catch{}let a=i.value;return typeof a=="boolean"||i.issues.push({expected:"boolean",code:"invalid_type",input:a,inst:t}),i}});var th=j("$ZodNull",(t,e)=>{ke.init(t,e),t._zod.pattern=gP,t._zod.values=new Set([null]),t._zod.parse=(i,n)=>{let a=i.value;return a===null||i.issues.push({expected:"null",code:"invalid_type",input:a,inst:t}),i}});var ah=j("$ZodUnknown",(t,e)=>{ke.init(t,e),t._zod.parse=i=>i}),rh=j("$ZodNever",(t,e)=>{ke.init(t,e),t._zod.parse=(i,n)=>(i.issues.push({expected:"never",code:"invalid_type",input:i.value,inst:t}),i)});function qP(t,e,i){t.issues.length&&e.issues.push(...tt(i,t.issues)),e.value[i]=t.value}var sh=j("$ZodArray",(t,e)=>{ke.init(t,e),t._zod.parse=(i,n)=>{let a=i.value;if(!Array.isArray(a))return i.issues.push({expected:"array",code:"invalid_type",input:a,inst:t}),i;i.value=Array(a.length);let r=[];for(let s=0;sqP(u,i,s))):qP(l,i,s)}return r.length?Promise.all(r).then(()=>i):i}});function Bl(t,e,i,n,a,r){let s=i in n;if(t.issues.length){if(a&&r&&!s)return;e.issues.push(...tt(i,t.issues))}if(!s&&!a){t.issues.length||e.issues.push({code:"invalid_type",expected:"nonoptional",input:void 0,path:[i]});return}t.value===void 0?s&&(e.value[i]=void 0):e.value[i]=t.value}function BP(t){let e=Object.keys(t.shape);for(let n of e)if(!t.shape?.[n]?._zod?.traits?.has("$ZodType"))throw new Error(`Invalid element at key "${n}": expected a Zod schema`);let i=Od(t.shape);return{...t,keys:e,keySet:new Set(e),numKeys:e.length,optionalKeys:new Set(i)}}function FP(t,e,i,n,a,r){let s=[],o=a.keySet,l=a.catchall._zod,u=l.def.type,c=l.optin==="optional",p=l.optout==="optional";for(let d in e){if(d==="__proto__"||o.has(d))continue;if(u==="never"){s.push(d);continue}let h=l.run({value:e[d],issues:[]},n);h instanceof Promise?t.push(h.then(g=>Bl(g,i,d,e,c,p))):Bl(h,i,d,e,c,p)}return s.length&&i.issues.push({code:"unrecognized_keys",keys:s,input:e,inst:r}),t.length?Promise.all(t).then(()=>i):i}var oh=j("$ZodObject",(t,e)=>{if(ke.init(t,e),!Object.getOwnPropertyDescriptor(e,"shape")?.get){let o=e.shape;Object.defineProperty(e,"shape",{get:()=>{let l={...o};return Object.defineProperty(e,"shape",{value:l}),l}})}let n=pr(()=>BP(e));Oe(t._zod,"propValues",()=>{let o=e.shape,l={};for(let u in o){let c=o[u]._zod;if(c.values){l[u]??(l[u]=new Set);for(let p of c.values)l[u].add(p)}}return l});let a=da,r=e.catchall,s;t._zod.parse=(o,l)=>{s??(s=n.value);let u=o.value;if(!a(u))return o.issues.push({expected:"object",code:"invalid_type",input:u,inst:t}),o;o.value={};let c=[],p=s.shape;for(let d of s.keys){let h=p[d],g=h._zod.optin==="optional",m=h._zod.optout==="optional",f=h._zod.run({value:u[d],issues:[]},l);f instanceof Promise?c.push(f.then(v=>Bl(v,o,d,u,g,m))):Bl(f,o,d,u,g,m)}return r?FP(c,u,o,l,n.value,t):c.length?Promise.all(c).then(()=>o):o}}),VP=j("$ZodObjectJIT",(t,e)=>{oh.init(t,e);let i=t._zod.parse,n=pr(()=>BP(e)),a=d=>{let h=new Ll(["shape","payload","ctx"]),g=n.value,m=A=>{let b=zl(A);return`shape[${b}]._zod.run({ value: input[${b}], issues: [] }, ctx)`};h.write("const input = payload.value;");let f=Object.create(null),v=0;for(let A of g.keys)f[A]=`key_${v++}`;h.write("const newResult = {};");for(let A of g.keys){let b=f[A],O=zl(A),$=d[A],N=$?._zod?.optin==="optional",X=$?._zod?.optout==="optional";h.write(`const ${b} = ${m(A)};`),N&&X?h.write(` if (${b}.issues.length) { if (${O} in input) { payload.issues = payload.issues.concat(${b}.issues.map(iss => ({ @@ -134,15 +134,25 @@ ${this.formatValue("Status",i)}${this.formatValue("Headers",this.formatHeaderStr } } - `)}h.write("payload.value = newResult;"),h.write("return payload;");let y=h.compile();return(A,b)=>y(d,A,b)},r,s=da,o=!lr.jitless,u=o&&bd.value,c=e.catchall,p;t._zod.parse=(d,h)=>{p??(p=n.value);let g=d.value;return s(g)?o&&u&&h?.async===!1&&h.jitless!==!0?(r||(r=a(e.shape)),d=r(d,h),c?WP([],g,d,h,p,t):d):i(d,h):(d.issues.push({expected:"object",code:"invalid_type",input:g,inst:t}),d)}});function kP(t,e,i,n){for(let r of t)if(r.issues.length===0)return e.value=r.value,e;let a=t.filter(r=>!bt(r));return a.length===1?(e.value=a[0].value,a[0]):(e.issues.push({code:"invalid_union",input:e.value,inst:i,errors:t.map(r=>r.issues.map(s=>sn(s,n,Qi())))}),e)}var Fl=j("$ZodUnion",(t,e)=>{ke.init(t,e),Oe(t._zod,"optin",()=>e.options.some(n=>n._zod.optin==="optional")?"optional":void 0),Oe(t._zod,"optout",()=>e.options.some(n=>n._zod.optout==="optional")?"optional":void 0),Oe(t._zod,"values",()=>{if(e.options.every(n=>n._zod.values))return new Set(e.options.flatMap(n=>Array.from(n._zod.values)))}),Oe(t._zod,"pattern",()=>{if(e.options.every(n=>n._zod.pattern)){let n=e.options.map(a=>a._zod.pattern);return new RegExp(`^(${n.map(a=>Cs(a.source)).join("|")})$`)}});let i=e.options.length===1?e.options[0]._zod.run:null;t._zod.parse=(n,a)=>{if(i)return i(n,a);let r=!1,s=[];for(let o of e.options){let l=o._zod.run({value:n.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=>kP(o,n,t,a)):kP(s,n,t,a)}});var sh=j("$ZodDiscriminatedUnion",(t,e)=>{e.inclusive=!1,Fl.init(t,e);let i=t._zod.parse;Oe(t._zod,"propValues",()=>{let a={};for(let r of e.options){let s=r._zod.propValues;if(!s||Object.keys(s).length===0)throw new Error(`Invalid discriminated union option at index "${e.options.indexOf(r)}"`);for(let[o,l]of Object.entries(s)){a[o]||(a[o]=new Set);for(let u of l)a[o].add(u)}}return a});let n=cr(()=>{let a=e.options,r=new Map;for(let s of a){let o=s._zod.propValues?.[e.discriminator];if(!o||o.size===0)throw new Error(`Invalid discriminated union option at index "${e.options.indexOf(s)}"`);for(let l of o){if(r.has(l))throw new Error(`Duplicate discriminator value "${String(l)}"`);r.set(l,s)}}return r});t._zod.parse=(a,r)=>{let s=a.value;if(!da(s))return a.issues.push({code:"invalid_type",expected:"object",input:s,inst:t}),a;let o=n.value.get(s?.[e.discriminator]);return o?o._zod.run(a,r):e.unionFallback||r.direction==="backward"?i(a,r):(a.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:e.discriminator,options:Array.from(n.value.keys()),input:s,path:[e.discriminator],inst:t}),a)}}),oh=j("$ZodIntersection",(t,e)=>{ke.init(t,e),t._zod.parse=(i,n)=>{let a=i.value,r=e.left._zod.run({value:a,issues:[]},n),s=e.right._zod.run({value:a,issues:[]},n);return r instanceof Promise||s instanceof Promise?Promise.all([r,s]).then(([l,u])=>qP(i,l,u)):qP(i,r,s)}});function _d(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(At(t)&&At(e)){let i=Object.keys(e),n=Object.keys(t).filter(r=>i.indexOf(r)!==-1),a={...t,...e};for(let r of n){let s=_d(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 i=[];for(let n=0;no.l&&o.r).map(([o])=>o);if(r.length&&a&&t.issues.push({...a,keys:r}),bt(t))return t;let s=_d(e.value,i.value);if(!s.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(s.mergeErrorPath)}`);return t.value=s.data,t}var lh=j("$ZodRecord",(t,e)=>{ke.init(t,e),t._zod.parse=(i,n)=>{let a=i.value;if(!At(a))return i.issues.push({expected:"record",code:"invalid_type",input:a,inst:t}),i;let r=[],s=e.keyType._zod.values;if(s){i.value={};let o=new Set;for(let u of s)if(typeof u=="string"||typeof u=="number"||typeof u=="symbol"){o.add(typeof u=="number"?u.toString():u);let c=e.keyType._zod.run({value:u,issues:[]},n);if(c instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(c.issues.length){i.issues.push({code:"invalid_key",origin:"record",issues:c.issues.map(h=>sn(h,n,Qi())),input:u,path:[u],inst:t});continue}let p=c.value,d=e.valueType._zod.run({value:a[u],issues:[]},n);d instanceof Promise?r.push(d.then(h=>{h.issues.length&&i.issues.push(...tt(u,h.issues)),i.value[p]=h.value})):(d.issues.length&&i.issues.push(...tt(u,d.issues)),i.value[p]=d.value)}let l;for(let u in a)o.has(u)||(l=l??[],l.push(u));l&&l.length>0&&i.issues.push({code:"unrecognized_keys",input:a,inst:t,keys:l})}else{i.value={};for(let o of Reflect.ownKeys(a)){if(o==="__proto__"||!Object.prototype.propertyIsEnumerable.call(a,o))continue;let l=e.keyType._zod.run({value:o,issues:[]},n);if(l instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(typeof o=="string"&&Ed.test(o)&&l.issues.length){let p=e.keyType._zod.run({value:Number(o),issues:[]},n);if(p instanceof Promise)throw new Error("Async schemas not supported in object keys currently");p.issues.length===0&&(l=p)}if(l.issues.length){e.mode==="loose"?i.value[o]=a[o]:i.issues.push({code:"invalid_key",origin:"record",issues:l.issues.map(p=>sn(p,n,Qi())),input:o,path:[o],inst:t});continue}let c=e.valueType._zod.run({value:a[o],issues:[]},n);c instanceof Promise?r.push(c.then(p=>{p.issues.length&&i.issues.push(...tt(o,p.issues)),i.value[l.value]=p.value})):(c.issues.length&&i.issues.push(...tt(o,c.issues)),i.value[l.value]=c.value)}}return r.length?Promise.all(r).then(()=>i):i}});var uh=j("$ZodEnum",(t,e)=>{ke.init(t,e);let i=ws(e.entries),n=new Set(i);t._zod.values=n,t._zod.pattern=new RegExp(`^(${i.filter(a=>Pd.has(typeof a)).map(a=>typeof a=="string"?nt(a):a.toString()).join("|")})$`),t._zod.parse=(a,r)=>{let s=a.value;return n.has(s)||a.issues.push({code:"invalid_value",values:i,input:s,inst:t}),a}}),ch=j("$ZodLiteral",(t,e)=>{if(ke.init(t,e),e.values.length===0)throw new Error("Cannot create literal schema with no valid values");let i=new Set(e.values);t._zod.values=i,t._zod.pattern=new RegExp(`^(${e.values.map(n=>typeof n=="string"?nt(n):n?nt(n.toString()):String(n)).join("|")})$`),t._zod.parse=(n,a)=>{let r=n.value;return i.has(r)||n.issues.push({code:"invalid_value",values:e.values,input:r,inst:t}),n}});var ph=j("$ZodTransform",(t,e)=>{ke.init(t,e),t._zod.optin="optional",t._zod.parse=(i,n)=>{if(n.direction==="backward")throw new or(t.constructor.name);let a=e.transform(i.value,i);if(n.async)return(a instanceof Promise?a:Promise.resolve(a)).then(s=>(i.value=s,i.fallback=!0,i));if(a instanceof Promise)throw new Hn;return i.value=a,i.fallback=!0,i}});function _P(t,e){return e===void 0&&(t.issues.length||t.fallback)?{issues:[],value:void 0}:t}var Vl=j("$ZodOptional",(t,e)=>{ke.init(t,e),t._zod.optin="optional",t._zod.optout="optional",Oe(t._zod,"values",()=>e.innerType._zod.values?new Set([...e.innerType._zod.values,void 0]):void 0),Oe(t._zod,"pattern",()=>{let i=e.innerType._zod.pattern;return i?new RegExp(`^(${Cs(i.source)})?$`):void 0}),t._zod.parse=(i,n)=>{if(e.innerType._zod.optin==="optional"){let a=i.value,r=e.innerType._zod.run(i,n);return r instanceof Promise?r.then(s=>_P(s,a)):_P(r,a)}return i.value===void 0?i:e.innerType._zod.run(i,n)}}),dh=j("$ZodExactOptional",(t,e)=>{Vl.init(t,e),Oe(t._zod,"values",()=>e.innerType._zod.values),Oe(t._zod,"pattern",()=>e.innerType._zod.pattern),t._zod.parse=(i,n)=>e.innerType._zod.run(i,n)}),hh=j("$ZodNullable",(t,e)=>{ke.init(t,e),Oe(t._zod,"optin",()=>e.innerType._zod.optin),Oe(t._zod,"optout",()=>e.innerType._zod.optout),Oe(t._zod,"pattern",()=>{let i=e.innerType._zod.pattern;return i?new RegExp(`^(${Cs(i.source)}|null)$`):void 0}),Oe(t._zod,"values",()=>e.innerType._zod.values?new Set([...e.innerType._zod.values,null]):void 0),t._zod.parse=(i,n)=>i.value===null?i:e.innerType._zod.run(i,n)}),gh=j("$ZodDefault",(t,e)=>{ke.init(t,e),t._zod.optin="optional",Oe(t._zod,"values",()=>e.innerType._zod.values),t._zod.parse=(i,n)=>{if(n.direction==="backward")return e.innerType._zod.run(i,n);if(i.value===void 0)return i.value=e.defaultValue,i;let a=e.innerType._zod.run(i,n);return a instanceof Promise?a.then(r=>HP(r,e)):HP(a,e)}});function HP(t,e){return t.value===void 0&&(t.value=e.defaultValue),t}var mh=j("$ZodPrefault",(t,e)=>{ke.init(t,e),t._zod.optin="optional",Oe(t._zod,"values",()=>e.innerType._zod.values),t._zod.parse=(i,n)=>(n.direction==="backward"||i.value===void 0&&(i.value=e.defaultValue),e.innerType._zod.run(i,n))}),fh=j("$ZodNonOptional",(t,e)=>{ke.init(t,e),Oe(t._zod,"values",()=>{let i=e.innerType._zod.values;return i?new Set([...i].filter(n=>n!==void 0)):void 0}),t._zod.parse=(i,n)=>{let a=e.innerType._zod.run(i,n);return a instanceof Promise?a.then(r=>RP(r,t)):RP(a,t)}});function RP(t,e){return!t.issues.length&&t.value===void 0&&t.issues.push({code:"invalid_type",expected:"nonoptional",input:t.value,inst:e}),t}var wh=j("$ZodCatch",(t,e)=>{ke.init(t,e),t._zod.optin="optional",Oe(t._zod,"optout",()=>e.innerType._zod.optout),Oe(t._zod,"values",()=>e.innerType._zod.values),t._zod.parse=(i,n)=>{if(n.direction==="backward")return e.innerType._zod.run(i,n);let a=e.innerType._zod.run(i,n);return a instanceof Promise?a.then(r=>(i.value=r.value,r.issues.length&&(i.value=e.catchValue({...i,error:{issues:r.issues.map(s=>sn(s,n,Qi()))},input:i.value}),i.issues=[],i.fallback=!0),i)):(i.value=a.value,a.issues.length&&(i.value=e.catchValue({...i,error:{issues:a.issues.map(r=>sn(r,n,Qi()))},input:i.value}),i.issues=[],i.fallback=!0),i)}});var Jl=j("$ZodPipe",(t,e)=>{ke.init(t,e),Oe(t._zod,"values",()=>e.in._zod.values),Oe(t._zod,"optin",()=>e.in._zod.optin),Oe(t._zod,"optout",()=>e.out._zod.optout),Oe(t._zod,"propValues",()=>e.in._zod.propValues),t._zod.parse=(i,n)=>{if(n.direction==="backward"){let r=e.out._zod.run(i,n);return r instanceof Promise?r.then(s=>Ll(s,e.in,n)):Ll(r,e.in,n)}let a=e.in._zod.run(i,n);return a instanceof Promise?a.then(r=>Ll(r,e.out,n)):Ll(a,e.out,n)}});function Ll(t,e,i){return t.issues.length?(t.aborted=!0,t):e._zod.run({value:t.value,issues:t.issues,fallback:t.fallback},i)}var FP=j("$ZodPreprocess",(t,e)=>{Jl.init(t,e)}),vh=j("$ZodReadonly",(t,e)=>{ke.init(t,e),Oe(t._zod,"propValues",()=>e.innerType._zod.propValues),Oe(t._zod,"values",()=>e.innerType._zod.values),Oe(t._zod,"optin",()=>e.innerType?._zod?.optin),Oe(t._zod,"optout",()=>e.innerType?._zod?.optout),t._zod.parse=(i,n)=>{if(n.direction==="backward")return e.innerType._zod.run(i,n);let a=e.innerType._zod.run(i,n);return a instanceof Promise?a.then(IP):IP(a)}});function IP(t){return t.value=Object.freeze(t.value),t}var Ch=j("$ZodCustom",(t,e)=>{di.init(t,e),ke.init(t,e),t._zod.parse=(i,n)=>i,t._zod.check=i=>{let n=i.value,a=e.fn(n);if(a instanceof Promise)return a.then(r=>zP(r,i,n,t));zP(a,i,n,t)}});function zP(t,e,i,n){if(!t){let a={code:"custom",input:i,inst:n,path:[...n._zod.def.path??[]],continue:!n._zod.def.abort};n._zod.def.params&&(a.params=n._zod.def.params),e.issues.push(pr(a))}}var Jz=()=>{let t={string:{unit:"characters",verb:"to have"},file:{unit:"bytes",verb:"to have"},array:{unit:"items",verb:"to have"},set:{unit:"items",verb:"to have"},map:{unit:"entries",verb:"to have"}};function e(a){return t[a]??null}let i={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",mac:"MAC address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",jwt:"JWT",template_literal:"input"},n={nan:"NaN"};return a=>{switch(a.code){case"invalid_type":{let r=n[a.expected]??a.expected,s=xd(a.input),o=n[s]??s;return`Invalid input: expected ${r}, received ${o}`}case"invalid_value":return a.values.length===1?`Invalid input: expected ${Dl(a.values[0])}`:`Invalid option: expected one of ${Rl(a.values,"|")}`;case"too_big":{let r=a.inclusive?"<=":"<",s=e(a.origin);return s?`Too big: expected ${a.origin??"value"} to have ${r}${a.maximum.toString()} ${s.unit??"elements"}`:`Too big: expected ${a.origin??"value"} to be ${r}${a.maximum.toString()}`}case"too_small":{let r=a.inclusive?">=":">",s=e(a.origin);return s?`Too small: expected ${a.origin} to have ${r}${a.minimum.toString()} ${s.unit}`:`Too small: expected ${a.origin} to be ${r}${a.minimum.toString()}`}case"invalid_format":{let r=a;return r.format==="starts_with"?`Invalid string: must start with "${r.prefix}"`:r.format==="ends_with"?`Invalid string: must end with "${r.suffix}"`:r.format==="includes"?`Invalid string: must include "${r.includes}"`:r.format==="regex"?`Invalid string: must match pattern ${r.pattern}`:`Invalid ${i[r.format]??a.format}`}case"not_multiple_of":return`Invalid number: must be a multiple of ${a.divisor}`;case"unrecognized_keys":return`Unrecognized key${a.keys.length>1?"s":""}: ${Rl(a.keys,", ")}`;case"invalid_key":return`Invalid key in ${a.origin}`;case"invalid_union":return a.options&&Array.isArray(a.options)&&a.options.length>0?`Invalid discriminator value. Expected ${a.options.map(s=>`'${s}'`).join(" | ")}`:"Invalid input";case"invalid_element":return`Invalid value in ${a.origin}`;default:return"Invalid input"}}};function VP(){return{localeError:Jz()}}var JP,DX=Symbol("ZodOutput"),GX=Symbol("ZodInput"),Ah=class{constructor(){this._map=new WeakMap,this._idmap=new Map}add(e,...i){let n=i[0];return this._map.set(e,n),n&&typeof n=="object"&&"id"in n&&this._idmap.set(n.id,e),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(e){let i=this._map.get(e);return i&&typeof i=="object"&&"id"in i&&this._idmap.delete(i.id),this._map.delete(e),this}get(e){let i=e._zod.parent;if(i){let n={...this.get(i)??{}};delete n.id;let a={...n,...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 Zz(){return new Ah}(JP=globalThis).__zod_globalRegistry??(JP.__zod_globalRegistry=Zz());var ma=globalThis.__zod_globalRegistry;function bh(t,e){return new t({type:"string",...J(e)})}function yh(t,e){return new t({type:"string",format:"email",check:"string_format",abort:!1,...J(e)})}function Zl(t,e){return new t({type:"string",format:"guid",check:"string_format",abort:!1,...J(e)})}function Ph(t,e){return new t({type:"string",format:"uuid",check:"string_format",abort:!1,...J(e)})}function jh(t,e){return new t({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...J(e)})}function Sh(t,e){return new t({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...J(e)})}function Oh(t,e){return new t({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...J(e)})}function xh(t,e){return new t({type:"string",format:"url",check:"string_format",abort:!1,...J(e)})}function Th(t,e){return new t({type:"string",format:"emoji",check:"string_format",abort:!1,...J(e)})}function Mh(t,e){return new t({type:"string",format:"nanoid",check:"string_format",abort:!1,...J(e)})}function Eh(t,e){return new t({type:"string",format:"cuid",check:"string_format",abort:!1,...J(e)})}function kh(t,e){return new t({type:"string",format:"cuid2",check:"string_format",abort:!1,...J(e)})}function qh(t,e){return new t({type:"string",format:"ulid",check:"string_format",abort:!1,...J(e)})}function _h(t,e){return new t({type:"string",format:"xid",check:"string_format",abort:!1,...J(e)})}function Hh(t,e){return new t({type:"string",format:"ksuid",check:"string_format",abort:!1,...J(e)})}function Rh(t,e){return new t({type:"string",format:"ipv4",check:"string_format",abort:!1,...J(e)})}function Ih(t,e){return new t({type:"string",format:"ipv6",check:"string_format",abort:!1,...J(e)})}function zh(t,e){return new t({type:"string",format:"cidrv4",check:"string_format",abort:!1,...J(e)})}function Dh(t,e){return new t({type:"string",format:"cidrv6",check:"string_format",abort:!1,...J(e)})}function Gh(t,e){return new t({type:"string",format:"base64",check:"string_format",abort:!1,...J(e)})}function $h(t,e){return new t({type:"string",format:"base64url",check:"string_format",abort:!1,...J(e)})}function Nh(t,e){return new t({type:"string",format:"e164",check:"string_format",abort:!1,...J(e)})}function Uh(t,e){return new t({type:"string",format:"jwt",check:"string_format",abort:!1,...J(e)})}function ZP(t,e){return new t({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...J(e)})}function KP(t,e){return new t({type:"string",format:"date",check:"string_format",...J(e)})}function QP(t,e){return new t({type:"string",format:"time",check:"string_format",precision:null,...J(e)})}function YP(t,e){return new t({type:"string",format:"duration",check:"string_format",...J(e)})}function Lh(t,e){return new t({type:"number",checks:[],...J(e)})}function Wh(t,e){return new t({type:"number",check:"number_format",abort:!1,format:"safeint",...J(e)})}function Bh(t,e){return new t({type:"boolean",...J(e)})}function Fh(t,e){return new t({type:"null",...J(e)})}function Vh(t){return new t({type:"unknown"})}function Jh(t,e){return new t({type:"never",...J(e)})}function Kl(t,e){return new kd({check:"less_than",...J(e),value:t,inclusive:!1})}function Ms(t,e){return new kd({check:"less_than",...J(e),value:t,inclusive:!0})}function Ql(t,e){return new qd({check:"greater_than",...J(e),value:t,inclusive:!1})}function Es(t,e){return new qd({check:"greater_than",...J(e),value:t,inclusive:!0})}function Yl(t,e){return new fP({check:"multiple_of",...J(e),value:t})}function Xl(t,e){return new vP({check:"max_length",...J(e),maximum:t})}function dr(t,e){return new CP({check:"min_length",...J(e),minimum:t})}function eu(t,e){return new AP({check:"length_equals",...J(e),length:t})}function Zh(t,e){return new bP({check:"string_format",format:"regex",...J(e),pattern:t})}function Kh(t){return new yP({check:"string_format",format:"lowercase",...J(t)})}function Qh(t){return new PP({check:"string_format",format:"uppercase",...J(t)})}function Yh(t,e){return new jP({check:"string_format",format:"includes",...J(e),includes:t})}function Xh(t,e){return new SP({check:"string_format",format:"starts_with",...J(e),prefix:t})}function eg(t,e){return new OP({check:"string_format",format:"ends_with",...J(e),suffix:t})}function yt(t){return new xP({check:"overwrite",tx:t})}function ig(t){return yt(e=>e.normalize(t))}function ng(){return yt(t=>t.trim())}function tg(){return yt(t=>t.toLowerCase())}function ag(){return yt(t=>t.toUpperCase())}function rg(){return yt(t=>Ad(t))}function XP(t,e,i){return new t({type:"array",element:e,...J(i)})}function sg(t,e,i){let n=J(i);return n.abort??(n.abort=!0),new t({type:"custom",check:"custom",fn:e,...n})}function og(t,e,i){return new t({type:"custom",check:"custom",fn:e,...J(i)})}function lg(t,e){let i=Kz(n=>(n.addIssue=a=>{if(typeof a=="string")n.issues.push(pr(a,n.value,i._zod.def));else{let r=a;r.fatal&&(r.continue=!1),r.code??(r.code="custom"),r.input??(r.input=n.value),r.inst??(r.inst=i),r.continue??(r.continue=!i._zod.def.abort),n.issues.push(pr(r))}},t(n.value,n)),e);return i}function Kz(t,e){let i=new di({check:"custom",...J(e)});return i._zod.check=t,i}function qs(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??ma,target:e,unrepresentable:t?.unrepresentable??"throw",override:t?.override??(()=>{}),io:t?.io??"output",counter:0,seen:new Map,cycles:t?.cycles??"ref",reused:t?.reused??"inline",external:t?.external??void 0}}function qe(t,e,i={path:[],schemaPath:[]}){var n;let a=t._zod.def,r=e.seen.get(t);if(r)return r.count++,i.schemaPath.includes(t)&&(r.cycle=i.path),r.schema;let s={schema:{},count:1,cycle:void 0,path:i.path};e.seen.set(t,s);let o=t._zod.toJSONSchema?.();if(o)s.schema=o;else{let c={...i,schemaPath:[...i.schemaPath,t],path:i.path};if(t._zod.processJSONSchema)t._zod.processJSONSchema(e,s.schema,c);else{let d=s.schema,h=e.processors[a.type];if(!h)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${a.type}`);h(t,e,d,c)}let p=t._zod.parent;p&&(s.ref||(s.ref=p),qe(p,e,c),e.seen.get(p).isParent=!0)}let l=e.metadataRegistry.get(t);return l&&Object.assign(s.schema,l),e.io==="input"&&ki(t)&&(delete s.schema.examples,delete s.schema.default),e.io==="input"&&"_prefault"in s.schema&&((n=s.schema).default??(n.default=s.schema._prefault)),delete s.schema._prefault,e.seen.get(t).schema}function _s(t,e){let i=t.seen.get(e);if(!i)throw new Error("Unprocessed schema. This is a bug in Zod.");let n=new Map;for(let s of t.seen.entries()){let o=t.metadataRegistry.get(s[0])?.id;if(o){let l=n.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.`);n.set(o,s[0])}}let a=s=>{let o=t.target==="draft-2020-12"?"$defs":"definitions";if(t.external){let p=t.external.registry.get(s[0])?.id,d=t.external.uri??(g=>g);if(p)return{ref:d(p)};let h=s[1].defId??s[1].schema.id??`schema${t.counter++}`;return s[1].defId=h,{defId:h,ref:`${d("__shared")}#/${o}/${h}`}}if(s[1]===i)return{ref:"#"};let u=`#/${o}/`,c=s[1].schema.id??`__schema${t.counter++}`;return{defId:c,ref:u+c}},r=s=>{if(s[1].schema.$ref)return;let o=s[1],{ref:l,defId:u}=a(s);o.def={...o.schema},u&&(o.defId=u);let c=o.schema;for(let p in c)delete c[p];c.$ref=l};if(t.cycles==="throw")for(let s of t.seen.entries()){let o=s[1];if(o.cycle)throw new Error(`Cycle detected: #/${o.cycle?.join("/")}/ + `)}h.write("payload.value = newResult;"),h.write("return payload;");let y=h.compile();return(A,b)=>y(d,A,b)},r,s=da,o=!ur.jitless,u=o&&Pd.value,c=e.catchall,p;t._zod.parse=(d,h)=>{p??(p=n.value);let g=d.value;return s(g)?o&&u&&h?.async===!1&&h.jitless!==!0?(r||(r=a(e.shape)),d=r(d,h),c?FP([],g,d,h,p,t):d):i(d,h):(d.issues.push({expected:"object",code:"invalid_type",input:g,inst:t}),d)}});function _P(t,e,i,n){for(let r of t)if(r.issues.length===0)return e.value=r.value,e;let a=t.filter(r=>!bt(r));return a.length===1?(e.value=a[0].value,a[0]):(e.issues.push({code:"invalid_union",input:e.value,inst:i,errors:t.map(r=>r.issues.map(s=>sn(s,n,Qi())))}),e)}var Vl=j("$ZodUnion",(t,e)=>{ke.init(t,e),Oe(t._zod,"optin",()=>e.options.some(n=>n._zod.optin==="optional")?"optional":void 0),Oe(t._zod,"optout",()=>e.options.some(n=>n._zod.optout==="optional")?"optional":void 0),Oe(t._zod,"values",()=>{if(e.options.every(n=>n._zod.values))return new Set(e.options.flatMap(n=>Array.from(n._zod.values)))}),Oe(t._zod,"pattern",()=>{if(e.options.every(n=>n._zod.pattern)){let n=e.options.map(a=>a._zod.pattern);return new RegExp(`^(${n.map(a=>bs(a.source)).join("|")})$`)}});let i=e.options.length===1?e.options[0]._zod.run:null;t._zod.parse=(n,a)=>{if(i)return i(n,a);let r=!1,s=[];for(let o of e.options){let l=o._zod.run({value:n.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=>_P(o,n,t,a)):_P(s,n,t,a)}});var lh=j("$ZodDiscriminatedUnion",(t,e)=>{e.inclusive=!1,Vl.init(t,e);let i=t._zod.parse;Oe(t._zod,"propValues",()=>{let a={};for(let r of e.options){let s=r._zod.propValues;if(!s||Object.keys(s).length===0)throw new Error(`Invalid discriminated union option at index "${e.options.indexOf(r)}"`);for(let[o,l]of Object.entries(s)){a[o]||(a[o]=new Set);for(let u of l)a[o].add(u)}}return a});let n=pr(()=>{let a=e.options,r=new Map;for(let s of a){let o=s._zod.propValues?.[e.discriminator];if(!o||o.size===0)throw new Error(`Invalid discriminated union option at index "${e.options.indexOf(s)}"`);for(let l of o){if(r.has(l))throw new Error(`Duplicate discriminator value "${String(l)}"`);r.set(l,s)}}return r});t._zod.parse=(a,r)=>{let s=a.value;if(!da(s))return a.issues.push({code:"invalid_type",expected:"object",input:s,inst:t}),a;let o=n.value.get(s?.[e.discriminator]);return o?o._zod.run(a,r):e.unionFallback||r.direction==="backward"?i(a,r):(a.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:e.discriminator,options:Array.from(n.value.keys()),input:s,path:[e.discriminator],inst:t}),a)}}),uh=j("$ZodIntersection",(t,e)=>{ke.init(t,e),t._zod.parse=(i,n)=>{let a=i.value,r=e.left._zod.run({value:a,issues:[]},n),s=e.right._zod.run({value:a,issues:[]},n);return r instanceof Promise||s instanceof Promise?Promise.all([r,s]).then(([l,u])=>HP(i,l,u)):HP(i,r,s)}});function Rd(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(At(t)&&At(e)){let i=Object.keys(e),n=Object.keys(t).filter(r=>i.indexOf(r)!==-1),a={...t,...e};for(let r of n){let s=Rd(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 i=[];for(let n=0;no.l&&o.r).map(([o])=>o);if(r.length&&a&&t.issues.push({...a,keys:r}),bt(t))return t;let s=Rd(e.value,i.value);if(!s.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(s.mergeErrorPath)}`);return t.value=s.data,t}var ch=j("$ZodRecord",(t,e)=>{ke.init(t,e),t._zod.parse=(i,n)=>{let a=i.value;if(!At(a))return i.issues.push({expected:"record",code:"invalid_type",input:a,inst:t}),i;let r=[],s=e.keyType._zod.values;if(s){i.value={};let o=new Set;for(let u of s)if(typeof u=="string"||typeof u=="number"||typeof u=="symbol"){o.add(typeof u=="number"?u.toString():u);let c=e.keyType._zod.run({value:u,issues:[]},n);if(c instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(c.issues.length){i.issues.push({code:"invalid_key",origin:"record",issues:c.issues.map(h=>sn(h,n,Qi())),input:u,path:[u],inst:t});continue}let p=c.value,d=e.valueType._zod.run({value:a[u],issues:[]},n);d instanceof Promise?r.push(d.then(h=>{h.issues.length&&i.issues.push(...tt(u,h.issues)),i.value[p]=h.value})):(d.issues.length&&i.issues.push(...tt(u,d.issues)),i.value[p]=d.value)}let l;for(let u in a)o.has(u)||(l=l??[],l.push(u));l&&l.length>0&&i.issues.push({code:"unrecognized_keys",input:a,inst:t,keys:l})}else{i.value={};for(let o of Reflect.ownKeys(a)){if(o==="__proto__"||!Object.prototype.propertyIsEnumerable.call(a,o))continue;let l=e.keyType._zod.run({value:o,issues:[]},n);if(l instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(typeof o=="string"&&qd.test(o)&&l.issues.length){let p=e.keyType._zod.run({value:Number(o),issues:[]},n);if(p instanceof Promise)throw new Error("Async schemas not supported in object keys currently");p.issues.length===0&&(l=p)}if(l.issues.length){e.mode==="loose"?i.value[o]=a[o]:i.issues.push({code:"invalid_key",origin:"record",issues:l.issues.map(p=>sn(p,n,Qi())),input:o,path:[o],inst:t});continue}let c=e.valueType._zod.run({value:a[o],issues:[]},n);c instanceof Promise?r.push(c.then(p=>{p.issues.length&&i.issues.push(...tt(o,p.issues)),i.value[l.value]=p.value})):(c.issues.length&&i.issues.push(...tt(o,c.issues)),i.value[l.value]=c.value)}}return r.length?Promise.all(r).then(()=>i):i}});var ph=j("$ZodEnum",(t,e)=>{ke.init(t,e);let i=Cs(e.entries),n=new Set(i);t._zod.values=n,t._zod.pattern=new RegExp(`^(${i.filter(a=>Sd.has(typeof a)).map(a=>typeof a=="string"?nt(a):a.toString()).join("|")})$`),t._zod.parse=(a,r)=>{let s=a.value;return n.has(s)||a.issues.push({code:"invalid_value",values:i,input:s,inst:t}),a}}),dh=j("$ZodLiteral",(t,e)=>{if(ke.init(t,e),e.values.length===0)throw new Error("Cannot create literal schema with no valid values");let i=new Set(e.values);t._zod.values=i,t._zod.pattern=new RegExp(`^(${e.values.map(n=>typeof n=="string"?nt(n):n?nt(n.toString()):String(n)).join("|")})$`),t._zod.parse=(n,a)=>{let r=n.value;return i.has(r)||n.issues.push({code:"invalid_value",values:e.values,input:r,inst:t}),n}});var hh=j("$ZodTransform",(t,e)=>{ke.init(t,e),t._zod.optin="optional",t._zod.parse=(i,n)=>{if(n.direction==="backward")throw new lr(t.constructor.name);let a=e.transform(i.value,i);if(n.async)return(a instanceof Promise?a:Promise.resolve(a)).then(s=>(i.value=s,i.fallback=!0,i));if(a instanceof Promise)throw new Rn;return i.value=a,i.fallback=!0,i}});function RP(t,e){return e===void 0&&(t.issues.length||t.fallback)?{issues:[],value:void 0}:t}var Jl=j("$ZodOptional",(t,e)=>{ke.init(t,e),t._zod.optin="optional",t._zod.optout="optional",Oe(t._zod,"values",()=>e.innerType._zod.values?new Set([...e.innerType._zod.values,void 0]):void 0),Oe(t._zod,"pattern",()=>{let i=e.innerType._zod.pattern;return i?new RegExp(`^(${bs(i.source)})?$`):void 0}),t._zod.parse=(i,n)=>{if(e.innerType._zod.optin==="optional"){let a=i.value,r=e.innerType._zod.run(i,n);return r instanceof Promise?r.then(s=>RP(s,a)):RP(r,a)}return i.value===void 0?i:e.innerType._zod.run(i,n)}}),gh=j("$ZodExactOptional",(t,e)=>{Jl.init(t,e),Oe(t._zod,"values",()=>e.innerType._zod.values),Oe(t._zod,"pattern",()=>e.innerType._zod.pattern),t._zod.parse=(i,n)=>e.innerType._zod.run(i,n)}),mh=j("$ZodNullable",(t,e)=>{ke.init(t,e),Oe(t._zod,"optin",()=>e.innerType._zod.optin),Oe(t._zod,"optout",()=>e.innerType._zod.optout),Oe(t._zod,"pattern",()=>{let i=e.innerType._zod.pattern;return i?new RegExp(`^(${bs(i.source)}|null)$`):void 0}),Oe(t._zod,"values",()=>e.innerType._zod.values?new Set([...e.innerType._zod.values,null]):void 0),t._zod.parse=(i,n)=>i.value===null?i:e.innerType._zod.run(i,n)}),fh=j("$ZodDefault",(t,e)=>{ke.init(t,e),t._zod.optin="optional",Oe(t._zod,"values",()=>e.innerType._zod.values),t._zod.parse=(i,n)=>{if(n.direction==="backward")return e.innerType._zod.run(i,n);if(i.value===void 0)return i.value=e.defaultValue,i;let a=e.innerType._zod.run(i,n);return a instanceof Promise?a.then(r=>IP(r,e)):IP(a,e)}});function IP(t,e){return t.value===void 0&&(t.value=e.defaultValue),t}var wh=j("$ZodPrefault",(t,e)=>{ke.init(t,e),t._zod.optin="optional",Oe(t._zod,"values",()=>e.innerType._zod.values),t._zod.parse=(i,n)=>(n.direction==="backward"||i.value===void 0&&(i.value=e.defaultValue),e.innerType._zod.run(i,n))}),vh=j("$ZodNonOptional",(t,e)=>{ke.init(t,e),Oe(t._zod,"values",()=>{let i=e.innerType._zod.values;return i?new Set([...i].filter(n=>n!==void 0)):void 0}),t._zod.parse=(i,n)=>{let a=e.innerType._zod.run(i,n);return a instanceof Promise?a.then(r=>zP(r,t)):zP(a,t)}});function zP(t,e){return!t.issues.length&&t.value===void 0&&t.issues.push({code:"invalid_type",expected:"nonoptional",input:t.value,inst:e}),t}var Ch=j("$ZodCatch",(t,e)=>{ke.init(t,e),t._zod.optin="optional",Oe(t._zod,"optout",()=>e.innerType._zod.optout),Oe(t._zod,"values",()=>e.innerType._zod.values),t._zod.parse=(i,n)=>{if(n.direction==="backward")return e.innerType._zod.run(i,n);let a=e.innerType._zod.run(i,n);return a instanceof Promise?a.then(r=>(i.value=r.value,r.issues.length&&(i.value=e.catchValue({...i,error:{issues:r.issues.map(s=>sn(s,n,Qi()))},input:i.value}),i.issues=[],i.fallback=!0),i)):(i.value=a.value,a.issues.length&&(i.value=e.catchValue({...i,error:{issues:a.issues.map(r=>sn(r,n,Qi()))},input:i.value}),i.issues=[],i.fallback=!0),i)}});var Zl=j("$ZodPipe",(t,e)=>{ke.init(t,e),Oe(t._zod,"values",()=>e.in._zod.values),Oe(t._zod,"optin",()=>e.in._zod.optin),Oe(t._zod,"optout",()=>e.out._zod.optout),Oe(t._zod,"propValues",()=>e.in._zod.propValues),t._zod.parse=(i,n)=>{if(n.direction==="backward"){let r=e.out._zod.run(i,n);return r instanceof Promise?r.then(s=>Wl(s,e.in,n)):Wl(r,e.in,n)}let a=e.in._zod.run(i,n);return a instanceof Promise?a.then(r=>Wl(r,e.out,n)):Wl(a,e.out,n)}});function Wl(t,e,i){return t.issues.length?(t.aborted=!0,t):e._zod.run({value:t.value,issues:t.issues,fallback:t.fallback},i)}var JP=j("$ZodPreprocess",(t,e)=>{Zl.init(t,e)}),Ah=j("$ZodReadonly",(t,e)=>{ke.init(t,e),Oe(t._zod,"propValues",()=>e.innerType._zod.propValues),Oe(t._zod,"values",()=>e.innerType._zod.values),Oe(t._zod,"optin",()=>e.innerType?._zod?.optin),Oe(t._zod,"optout",()=>e.innerType?._zod?.optout),t._zod.parse=(i,n)=>{if(n.direction==="backward")return e.innerType._zod.run(i,n);let a=e.innerType._zod.run(i,n);return a instanceof Promise?a.then(DP):DP(a)}});function DP(t){return t.value=Object.freeze(t.value),t}var bh=j("$ZodCustom",(t,e)=>{di.init(t,e),ke.init(t,e),t._zod.parse=(i,n)=>i,t._zod.check=i=>{let n=i.value,a=e.fn(n);if(a instanceof Promise)return a.then(r=>GP(r,i,n,t));GP(a,i,n,t)}});function GP(t,e,i,n){if(!t){let a={code:"custom",input:i,inst:n,path:[...n._zod.def.path??[]],continue:!n._zod.def.abort};n._zod.def.params&&(a.params=n._zod.def.params),e.issues.push(dr(a))}}var eD=()=>{let t={string:{unit:"characters",verb:"to have"},file:{unit:"bytes",verb:"to have"},array:{unit:"items",verb:"to have"},set:{unit:"items",verb:"to have"},map:{unit:"entries",verb:"to have"}};function e(a){return t[a]??null}let i={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",mac:"MAC address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",jwt:"JWT",template_literal:"input"},n={nan:"NaN"};return a=>{switch(a.code){case"invalid_type":{let r=n[a.expected]??a.expected,s=Md(a.input),o=n[s]??s;return`Invalid input: expected ${r}, received ${o}`}case"invalid_value":return a.values.length===1?`Invalid input: expected ${Gl(a.values[0])}`:`Invalid option: expected one of ${Il(a.values,"|")}`;case"too_big":{let r=a.inclusive?"<=":"<",s=e(a.origin);return s?`Too big: expected ${a.origin??"value"} to have ${r}${a.maximum.toString()} ${s.unit??"elements"}`:`Too big: expected ${a.origin??"value"} to be ${r}${a.maximum.toString()}`}case"too_small":{let r=a.inclusive?">=":">",s=e(a.origin);return s?`Too small: expected ${a.origin} to have ${r}${a.minimum.toString()} ${s.unit}`:`Too small: expected ${a.origin} to be ${r}${a.minimum.toString()}`}case"invalid_format":{let r=a;return r.format==="starts_with"?`Invalid string: must start with "${r.prefix}"`:r.format==="ends_with"?`Invalid string: must end with "${r.suffix}"`:r.format==="includes"?`Invalid string: must include "${r.includes}"`:r.format==="regex"?`Invalid string: must match pattern ${r.pattern}`:`Invalid ${i[r.format]??a.format}`}case"not_multiple_of":return`Invalid number: must be a multiple of ${a.divisor}`;case"unrecognized_keys":return`Unrecognized key${a.keys.length>1?"s":""}: ${Il(a.keys,", ")}`;case"invalid_key":return`Invalid key in ${a.origin}`;case"invalid_union":return a.options&&Array.isArray(a.options)&&a.options.length>0?`Invalid discriminator value. Expected ${a.options.map(s=>`'${s}'`).join(" | ")}`:"Invalid input";case"invalid_element":return`Invalid value in ${a.origin}`;default:return"Invalid input"}}};function ZP(){return{localeError:eD()}}var KP,WX=Symbol("ZodOutput"),BX=Symbol("ZodInput"),yh=class{constructor(){this._map=new WeakMap,this._idmap=new Map}add(e,...i){let n=i[0];return this._map.set(e,n),n&&typeof n=="object"&&"id"in n&&this._idmap.set(n.id,e),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(e){let i=this._map.get(e);return i&&typeof i=="object"&&"id"in i&&this._idmap.delete(i.id),this._map.delete(e),this}get(e){let i=e._zod.parent;if(i){let n={...this.get(i)??{}};delete n.id;let a={...n,...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 iD(){return new yh}(KP=globalThis).__zod_globalRegistry??(KP.__zod_globalRegistry=iD());var ma=globalThis.__zod_globalRegistry;function Ph(t,e){return new t({type:"string",...J(e)})}function jh(t,e){return new t({type:"string",format:"email",check:"string_format",abort:!1,...J(e)})}function Kl(t,e){return new t({type:"string",format:"guid",check:"string_format",abort:!1,...J(e)})}function Sh(t,e){return new t({type:"string",format:"uuid",check:"string_format",abort:!1,...J(e)})}function Oh(t,e){return new t({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...J(e)})}function xh(t,e){return new t({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...J(e)})}function Th(t,e){return new t({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...J(e)})}function Mh(t,e){return new t({type:"string",format:"url",check:"string_format",abort:!1,...J(e)})}function Eh(t,e){return new t({type:"string",format:"emoji",check:"string_format",abort:!1,...J(e)})}function kh(t,e){return new t({type:"string",format:"nanoid",check:"string_format",abort:!1,...J(e)})}function qh(t,e){return new t({type:"string",format:"cuid",check:"string_format",abort:!1,...J(e)})}function _h(t,e){return new t({type:"string",format:"cuid2",check:"string_format",abort:!1,...J(e)})}function Hh(t,e){return new t({type:"string",format:"ulid",check:"string_format",abort:!1,...J(e)})}function Rh(t,e){return new t({type:"string",format:"xid",check:"string_format",abort:!1,...J(e)})}function Ih(t,e){return new t({type:"string",format:"ksuid",check:"string_format",abort:!1,...J(e)})}function zh(t,e){return new t({type:"string",format:"ipv4",check:"string_format",abort:!1,...J(e)})}function Dh(t,e){return new t({type:"string",format:"ipv6",check:"string_format",abort:!1,...J(e)})}function Gh(t,e){return new t({type:"string",format:"cidrv4",check:"string_format",abort:!1,...J(e)})}function $h(t,e){return new t({type:"string",format:"cidrv6",check:"string_format",abort:!1,...J(e)})}function Nh(t,e){return new t({type:"string",format:"base64",check:"string_format",abort:!1,...J(e)})}function Uh(t,e){return new t({type:"string",format:"base64url",check:"string_format",abort:!1,...J(e)})}function Lh(t,e){return new t({type:"string",format:"e164",check:"string_format",abort:!1,...J(e)})}function Wh(t,e){return new t({type:"string",format:"jwt",check:"string_format",abort:!1,...J(e)})}function QP(t,e){return new t({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...J(e)})}function YP(t,e){return new t({type:"string",format:"date",check:"string_format",...J(e)})}function XP(t,e){return new t({type:"string",format:"time",check:"string_format",precision:null,...J(e)})}function ej(t,e){return new t({type:"string",format:"duration",check:"string_format",...J(e)})}function Bh(t,e){return new t({type:"number",checks:[],...J(e)})}function Fh(t,e){return new t({type:"number",check:"number_format",abort:!1,format:"safeint",...J(e)})}function Vh(t,e){return new t({type:"boolean",...J(e)})}function Jh(t,e){return new t({type:"null",...J(e)})}function Zh(t){return new t({type:"unknown"})}function Kh(t,e){return new t({type:"never",...J(e)})}function Ql(t,e){return new _d({check:"less_than",...J(e),value:t,inclusive:!1})}function ks(t,e){return new _d({check:"less_than",...J(e),value:t,inclusive:!0})}function Yl(t,e){return new Hd({check:"greater_than",...J(e),value:t,inclusive:!1})}function qs(t,e){return new Hd({check:"greater_than",...J(e),value:t,inclusive:!0})}function Xl(t,e){return new vP({check:"multiple_of",...J(e),value:t})}function eu(t,e){return new AP({check:"max_length",...J(e),maximum:t})}function hr(t,e){return new bP({check:"min_length",...J(e),minimum:t})}function iu(t,e){return new yP({check:"length_equals",...J(e),length:t})}function Qh(t,e){return new PP({check:"string_format",format:"regex",...J(e),pattern:t})}function Yh(t){return new jP({check:"string_format",format:"lowercase",...J(t)})}function Xh(t){return new SP({check:"string_format",format:"uppercase",...J(t)})}function eg(t,e){return new OP({check:"string_format",format:"includes",...J(e),includes:t})}function ig(t,e){return new xP({check:"string_format",format:"starts_with",...J(e),prefix:t})}function ng(t,e){return new TP({check:"string_format",format:"ends_with",...J(e),suffix:t})}function yt(t){return new MP({check:"overwrite",tx:t})}function tg(t){return yt(e=>e.normalize(t))}function ag(){return yt(t=>t.trim())}function rg(){return yt(t=>t.toLowerCase())}function sg(){return yt(t=>t.toUpperCase())}function og(){return yt(t=>yd(t))}function ij(t,e,i){return new t({type:"array",element:e,...J(i)})}function lg(t,e,i){let n=J(i);return n.abort??(n.abort=!0),new t({type:"custom",check:"custom",fn:e,...n})}function ug(t,e,i){return new t({type:"custom",check:"custom",fn:e,...J(i)})}function cg(t,e){let i=nD(n=>(n.addIssue=a=>{if(typeof a=="string")n.issues.push(dr(a,n.value,i._zod.def));else{let r=a;r.fatal&&(r.continue=!1),r.code??(r.code="custom"),r.input??(r.input=n.value),r.inst??(r.inst=i),r.continue??(r.continue=!i._zod.def.abort),n.issues.push(dr(r))}},t(n.value,n)),e);return i}function nD(t,e){let i=new di({check:"custom",...J(e)});return i._zod.check=t,i}function Hs(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??ma,target:e,unrepresentable:t?.unrepresentable??"throw",override:t?.override??(()=>{}),io:t?.io??"output",counter:0,seen:new Map,cycles:t?.cycles??"ref",reused:t?.reused??"inline",external:t?.external??void 0}}function qe(t,e,i={path:[],schemaPath:[]}){var n;let a=t._zod.def,r=e.seen.get(t);if(r)return r.count++,i.schemaPath.includes(t)&&(r.cycle=i.path),r.schema;let s={schema:{},count:1,cycle:void 0,path:i.path};e.seen.set(t,s);let o=t._zod.toJSONSchema?.();if(o)s.schema=o;else{let c={...i,schemaPath:[...i.schemaPath,t],path:i.path};if(t._zod.processJSONSchema)t._zod.processJSONSchema(e,s.schema,c);else{let d=s.schema,h=e.processors[a.type];if(!h)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${a.type}`);h(t,e,d,c)}let p=t._zod.parent;p&&(s.ref||(s.ref=p),qe(p,e,c),e.seen.get(p).isParent=!0)}let l=e.metadataRegistry.get(t);return l&&Object.assign(s.schema,l),e.io==="input"&&ki(t)&&(delete s.schema.examples,delete s.schema.default),e.io==="input"&&"_prefault"in s.schema&&((n=s.schema).default??(n.default=s.schema._prefault)),delete s.schema._prefault,e.seen.get(t).schema}function Rs(t,e){let i=t.seen.get(e);if(!i)throw new Error("Unprocessed schema. This is a bug in Zod.");let n=new Map;for(let s of t.seen.entries()){let o=t.metadataRegistry.get(s[0])?.id;if(o){let l=n.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.`);n.set(o,s[0])}}let a=s=>{let o=t.target==="draft-2020-12"?"$defs":"definitions";if(t.external){let p=t.external.registry.get(s[0])?.id,d=t.external.uri??(g=>g);if(p)return{ref:d(p)};let h=s[1].defId??s[1].schema.id??`schema${t.counter++}`;return s[1].defId=h,{defId:h,ref:`${d("__shared")}#/${o}/${h}`}}if(s[1]===i)return{ref:"#"};let u=`#/${o}/`,c=s[1].schema.id??`__schema${t.counter++}`;return{defId:c,ref:u+c}},r=s=>{if(s[1].schema.$ref)return;let o=s[1],{ref:l,defId:u}=a(s);o.def={...o.schema},u&&(o.defId=u);let c=o.schema;for(let p in c)delete c[p];c.$ref=l};if(t.cycles==="throw")for(let s of t.seen.entries()){let o=s[1];if(o.cycle)throw new Error(`Cycle detected: #/${o.cycle?.join("/")}/ -Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let s of t.seen.entries()){let o=s[1];if(e===s[0]){r(s);continue}if(t.external){let u=t.external.registry.get(s[0])?.id;if(e!==s[0]&&u){r(s);continue}}if(t.metadataRegistry.get(s[0])?.id){r(s);continue}if(o.cycle){r(s);continue}if(o.count>1&&t.reused==="ref"){r(s);continue}}}function Hs(t,e){let i=t.seen.get(e);if(!i)throw new Error("Unprocessed schema. This is a bug in Zod.");let n=o=>{let l=t.seen.get(o);if(l.ref===null)return;let u=l.def??l.schema,c={...u},p=l.ref;if(l.ref=null,p){n(p);let h=t.seen.get(p),g=h.schema;if(g.$ref&&(t.target==="draft-07"||t.target==="draft-04"||t.target==="openapi-3.0")?(u.allOf=u.allOf??[],u.allOf.push(g)):Object.assign(u,g),Object.assign(u,c),o._zod.parent===p)for(let f in u)f==="$ref"||f==="allOf"||f in c||delete u[f];if(g.$ref&&h.def)for(let f in u)f==="$ref"||f==="allOf"||f in h.def&&JSON.stringify(u[f])===JSON.stringify(h.def[f])&&delete u[f]}let d=o._zod.parent;if(d&&d!==p){n(d);let h=t.seen.get(d);if(h?.schema.$ref&&(u.$ref=h.schema.$ref,h.def))for(let g in u)g==="$ref"||g==="allOf"||g in h.def&&JSON.stringify(u[g])===JSON.stringify(h.def[g])&&delete u[g]}t.override({zodSchema:o,jsonSchema:u,path:l.path??[]})};for(let o of[...t.seen.entries()].reverse())n(o[0]);let a={};if(t.target==="draft-2020-12"?a.$schema="https://json-schema.org/draft/2020-12/schema":t.target==="draft-07"?a.$schema="http://json-schema.org/draft-07/schema#":t.target==="draft-04"?a.$schema="http://json-schema.org/draft-04/schema#":t.target,t.external?.uri){let o=t.external.registry.get(e)?.id;if(!o)throw new Error("Schema is missing an `id` property");a.$id=t.external.uri(o)}Object.assign(a,i.def??i.schema);let r=t.metadataRegistry.get(e)?.id;r!==void 0&&a.id===r&&delete a.id;let s=t.external?.defs??{};for(let o of t.seen.entries()){let l=o[1];l.def&&l.defId&&(l.def.id===l.defId&&delete l.def.id,s[l.defId]=l.def)}t.external||Object.keys(s).length>0&&(t.target==="draft-2020-12"?a.$defs=s:a.definitions=s);try{let o=JSON.parse(JSON.stringify(a));return Object.defineProperty(o,"~standard",{value:{...e["~standard"],jsonSchema:{input:ks(e,"input",t.processors),output:ks(e,"output",t.processors)}},enumerable:!1,writable:!1}),o}catch{throw new Error("Error converting schema to JSON.")}}function ki(t,e){let i=e??{seen:new Set};if(i.seen.has(t))return!1;i.seen.add(t);let n=t._zod.def;if(n.type==="transform")return!0;if(n.type==="array")return ki(n.element,i);if(n.type==="set")return ki(n.valueType,i);if(n.type==="lazy")return ki(n.getter(),i);if(n.type==="promise"||n.type==="optional"||n.type==="nonoptional"||n.type==="nullable"||n.type==="readonly"||n.type==="default"||n.type==="prefault")return ki(n.innerType,i);if(n.type==="intersection")return ki(n.left,i)||ki(n.right,i);if(n.type==="record"||n.type==="map")return ki(n.keyType,i)||ki(n.valueType,i);if(n.type==="pipe")return t._zod.traits.has("$ZodCodec")?!0:ki(n.in,i)||ki(n.out,i);if(n.type==="object"){for(let a in n.shape)if(ki(n.shape[a],i))return!0;return!1}if(n.type==="union"){for(let a of n.options)if(ki(a,i))return!0;return!1}if(n.type==="tuple"){for(let a of n.items)if(ki(a,i))return!0;return!!(n.rest&&ki(n.rest,i))}return!1}var ej=(t,e={})=>i=>{let n=qs({...i,processors:e});return qe(t,n),_s(n,t),Hs(n,t)},ks=(t,e,i={})=>n=>{let{libraryOptions:a,target:r}=n??{},s=qs({...a??{},target:r,io:e,processors:i});return qe(t,s),_s(s,t),Hs(s,t)};var Qz={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},ug=(t,e,i,n)=>{let a=i;a.type="string";let{minimum:r,maximum:s,format:o,patterns:l,contentEncoding:u}=t._zod.bag;if(typeof r=="number"&&(a.minLength=r),typeof s=="number"&&(a.maxLength=s),o&&(a.format=Qz[o]??o,a.format===""&&delete a.format,o==="time"&&delete a.format),u&&(a.contentEncoding=u),l&&l.size>0){let c=[...l];c.length===1?a.pattern=c[0].source:c.length>1&&(a.allOf=[...c.map(p=>({...e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0"?{type:"string"}:{},pattern:p.source}))])}},cg=(t,e,i,n)=>{let a=i,{minimum:r,maximum:s,format:o,multipleOf:l,exclusiveMaximum:u,exclusiveMinimum:c}=t._zod.bag;typeof o=="string"&&o.includes("int")?a.type="integer":a.type="number";let p=typeof c=="number"&&c>=(r??Number.NEGATIVE_INFINITY),d=typeof u=="number"&&u<=(s??Number.POSITIVE_INFINITY),h=e.target==="draft-04"||e.target==="openapi-3.0";p?h?(a.minimum=c,a.exclusiveMinimum=!0):a.exclusiveMinimum=c:typeof r=="number"&&(a.minimum=r),d?h?(a.maximum=u,a.exclusiveMaximum=!0):a.exclusiveMaximum=u:typeof s=="number"&&(a.maximum=s),typeof l=="number"&&(a.multipleOf=l)},pg=(t,e,i,n)=>{i.type="boolean"},nj=(t,e,i,n)=>{if(e.unrepresentable==="throw")throw new Error("BigInt cannot be represented in JSON Schema")},tj=(t,e,i,n)=>{if(e.unrepresentable==="throw")throw new Error("Symbols cannot be represented in JSON Schema")},dg=(t,e,i,n)=>{e.target==="openapi-3.0"?(i.type="string",i.nullable=!0,i.enum=[null]):i.type="null"},aj=(t,e,i,n)=>{if(e.unrepresentable==="throw")throw new Error("Undefined cannot be represented in JSON Schema")},rj=(t,e,i,n)=>{if(e.unrepresentable==="throw")throw new Error("Void cannot be represented in JSON Schema")},hg=(t,e,i,n)=>{i.not={}},sj=(t,e,i,n)=>{},gg=(t,e,i,n)=>{},oj=(t,e,i,n)=>{if(e.unrepresentable==="throw")throw new Error("Date cannot be represented in JSON Schema")},mg=(t,e,i,n)=>{let a=t._zod.def,r=ws(a.entries);r.every(s=>typeof s=="number")&&(i.type="number"),r.every(s=>typeof s=="string")&&(i.type="string"),i.enum=r},fg=(t,e,i,n)=>{let a=t._zod.def,r=[];for(let s of a.values)if(s===void 0){if(e.unrepresentable==="throw")throw new Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof s=="bigint"){if(e.unrepresentable==="throw")throw new Error("BigInt literals cannot be represented in JSON Schema");r.push(Number(s))}else r.push(s);if(r.length!==0)if(r.length===1){let s=r[0];i.type=s===null?"null":typeof s,e.target==="draft-04"||e.target==="openapi-3.0"?i.enum=[s]:i.const=s}else r.every(s=>typeof s=="number")&&(i.type="number"),r.every(s=>typeof s=="string")&&(i.type="string"),r.every(s=>typeof s=="boolean")&&(i.type="boolean"),r.every(s=>s===null)&&(i.type="null"),i.enum=r},lj=(t,e,i,n)=>{if(e.unrepresentable==="throw")throw new Error("NaN cannot be represented in JSON Schema")},uj=(t,e,i,n)=>{let a=i,r=t._zod.pattern;if(!r)throw new Error("Pattern not found in template literal");a.type="string",a.pattern=r.source},cj=(t,e,i,n)=>{let a=i,r={type:"string",format:"binary",contentEncoding:"binary"},{minimum:s,maximum:o,mime:l}=t._zod.bag;s!==void 0&&(r.minLength=s),o!==void 0&&(r.maxLength=o),l?l.length===1?(r.contentMediaType=l[0],Object.assign(a,r)):(Object.assign(a,r),a.anyOf=l.map(u=>({contentMediaType:u}))):Object.assign(a,r)},pj=(t,e,i,n)=>{i.type="boolean"},wg=(t,e,i,n)=>{if(e.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")},dj=(t,e,i,n)=>{if(e.unrepresentable==="throw")throw new Error("Function types cannot be represented in JSON Schema")},vg=(t,e,i,n)=>{if(e.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")},hj=(t,e,i,n)=>{if(e.unrepresentable==="throw")throw new Error("Map cannot be represented in JSON Schema")},gj=(t,e,i,n)=>{if(e.unrepresentable==="throw")throw new Error("Set cannot be represented in JSON Schema")},Cg=(t,e,i,n)=>{let a=i,r=t._zod.def,{minimum:s,maximum:o}=t._zod.bag;typeof s=="number"&&(a.minItems=s),typeof o=="number"&&(a.maxItems=o),a.type="array",a.items=qe(r.element,e,{...n,path:[...n.path,"items"]})},Ag=(t,e,i,n)=>{let a=i,r=t._zod.def;a.type="object",a.properties={};let s=r.shape;for(let u in s)a.properties[u]=qe(s[u],e,{...n,path:[...n.path,"properties",u]});let o=new Set(Object.keys(s)),l=new Set([...o].filter(u=>{let c=r.shape[u]._zod;return e.io==="input"?c.optin===void 0:c.optout===void 0}));l.size>0&&(a.required=Array.from(l)),r.catchall?._zod.def.type==="never"?a.additionalProperties=!1:r.catchall?r.catchall&&(a.additionalProperties=qe(r.catchall,e,{...n,path:[...n.path,"additionalProperties"]})):e.io==="output"&&(a.additionalProperties=!1)},bg=(t,e,i,n)=>{let a=t._zod.def,r=a.inclusive===!1,s=a.options.map((o,l)=>qe(o,e,{...n,path:[...n.path,r?"oneOf":"anyOf",l]}));r?i.oneOf=s:i.anyOf=s},yg=(t,e,i,n)=>{let a=t._zod.def,r=qe(a.left,e,{...n,path:[...n.path,"allOf",0]}),s=qe(a.right,e,{...n,path:[...n.path,"allOf",1]}),o=u=>"allOf"in u&&Object.keys(u).length===1,l=[...o(r)?r.allOf:[r],...o(s)?s.allOf:[s]];i.allOf=l},mj=(t,e,i,n)=>{let a=i,r=t._zod.def;a.type="array";let s=e.target==="draft-2020-12"?"prefixItems":"items",o=e.target==="draft-2020-12"||e.target==="openapi-3.0"?"items":"additionalItems",l=r.items.map((d,h)=>qe(d,e,{...n,path:[...n.path,s,h]})),u=r.rest?qe(r.rest,e,{...n,path:[...n.path,o,...e.target==="openapi-3.0"?[r.items.length]:[]]}):null;e.target==="draft-2020-12"?(a.prefixItems=l,u&&(a.items=u)):e.target==="openapi-3.0"?(a.items={anyOf:l},u&&a.items.anyOf.push(u),a.minItems=l.length,u||(a.maxItems=l.length)):(a.items=l,u&&(a.additionalItems=u));let{minimum:c,maximum:p}=t._zod.bag;typeof c=="number"&&(a.minItems=c),typeof p=="number"&&(a.maxItems=p)},Pg=(t,e,i,n)=>{let a=i,r=t._zod.def;a.type="object";let s=r.keyType,l=s._zod.bag?.patterns;if(r.mode==="loose"&&l&&l.size>0){let c=qe(r.valueType,e,{...n,path:[...n.path,"patternProperties","*"]});a.patternProperties={};for(let p of l)a.patternProperties[p.source]=c}else(e.target==="draft-07"||e.target==="draft-2020-12")&&(a.propertyNames=qe(r.keyType,e,{...n,path:[...n.path,"propertyNames"]})),a.additionalProperties=qe(r.valueType,e,{...n,path:[...n.path,"additionalProperties"]});let u=s._zod.values;if(u){let c=[...u].filter(p=>typeof p=="string"||typeof p=="number");c.length>0&&(a.required=c)}},jg=(t,e,i,n)=>{let a=t._zod.def,r=qe(a.innerType,e,n),s=e.seen.get(t);e.target==="openapi-3.0"?(s.ref=a.innerType,i.nullable=!0):i.anyOf=[r,{type:"null"}]},Sg=(t,e,i,n)=>{let a=t._zod.def;qe(a.innerType,e,n);let r=e.seen.get(t);r.ref=a.innerType},Og=(t,e,i,n)=>{let a=t._zod.def;qe(a.innerType,e,n);let r=e.seen.get(t);r.ref=a.innerType,i.default=JSON.parse(JSON.stringify(a.defaultValue))},xg=(t,e,i,n)=>{let a=t._zod.def;qe(a.innerType,e,n);let r=e.seen.get(t);r.ref=a.innerType,e.io==="input"&&(i._prefault=JSON.parse(JSON.stringify(a.defaultValue)))},Tg=(t,e,i,n)=>{let a=t._zod.def;qe(a.innerType,e,n);let r=e.seen.get(t);r.ref=a.innerType;let s;try{s=a.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}i.default=s},Mg=(t,e,i,n)=>{let a=t._zod.def,r=a.in._zod.traits.has("$ZodTransform"),s=e.io==="input"?r?a.out:a.in:a.out;qe(s,e,n);let o=e.seen.get(t);o.ref=s},Eg=(t,e,i,n)=>{let a=t._zod.def;qe(a.innerType,e,n);let r=e.seen.get(t);r.ref=a.innerType,i.readOnly=!0},fj=(t,e,i,n)=>{let a=t._zod.def;qe(a.innerType,e,n);let r=e.seen.get(t);r.ref=a.innerType},iu=(t,e,i,n)=>{let a=t._zod.def;qe(a.innerType,e,n);let r=e.seen.get(t);r.ref=a.innerType},wj=(t,e,i,n)=>{let a=t._zod.innerType;qe(a,e,n);let r=e.seen.get(t);r.ref=a},ij={string:ug,number:cg,boolean:pg,bigint:nj,symbol:tj,null:dg,undefined:aj,void:rj,never:hg,any:sj,unknown:gg,date:oj,enum:mg,literal:fg,nan:lj,template_literal:uj,file:cj,success:pj,custom:wg,function:dj,transform:vg,map:hj,set:gj,array:Cg,object:Ag,union:bg,intersection:yg,tuple:mj,record:Pg,nullable:jg,nonoptional:Sg,default:Og,prefault:xg,catch:Tg,pipe:Mg,readonly:Eg,promise:fj,optional:iu,lazy:wj};function kg(t,e){if("_idmap"in t){let n=t,a=qs({...e,processors:ij}),r={};for(let l of n._idmap.entries()){let[u,c]=l;qe(c,a)}let s={},o={registry:n,uri:e?.uri,defs:r};a.external=o;for(let l of n._idmap.entries()){let[u,c]=l;_s(a,c),s[u]=Hs(a,c)}if(Object.keys(r).length>0){let l=a.target==="draft-2020-12"?"$defs":"definitions";s.__shared={[l]:r}}return{schemas:s}}let i=qs({...e,processors:ij});return qe(t,i),_s(i,t),Hs(i,t)}var $D=j("ZodMiniType",(t,e)=>{if(!t._zod)throw new Error("Uninitialized schema in ZodMiniType.");ke.init(t,e),t.def=e,t.type=e.type,t.parse=(i,n)=>$l(t,i,n,{callee:t.parse}),t.safeParse=(i,n)=>ha(t,i,n),t.parseAsync=async(i,n)=>Nl(t,i,n,{callee:t.parseAsync}),t.safeParseAsync=async(i,n)=>ga(t,i,n),t.check=(...i)=>t.clone({...e,checks:[...e.checks??[],...i.map(n=>typeof n=="function"?{_zod:{check:n,def:{check:"custom"},onattach:[]}}:n)]},{parent:!0}),t.with=t.check,t.clone=(i,n)=>Yi(t,i,n),t.brand=()=>t,t.register=((i,n)=>(i.add(t,n),t)),t.apply=i=>i(t)});var ND=j("ZodMiniObject",(t,e)=>{rh.init(t,e),$D.init(t,e),Oe(t,"shape",()=>e.shape)});function qg(t,e){let i={type:"object",shape:t??{},...J(e)};return new ND(i)}function on(t){return!!t._zod}function wa(t){let e=Object.values(t);if(e.length===0)return qg({});let i=e.every(on),n=e.every(a=>!on(a));if(i)return qg(t);if(n)return fd(t);throw new Error("Mixed Zod versions detected in object shape.")}function Pt(t,e){return on(t)?ha(t,e):t.safeParse(e)}async function nu(t,e){return on(t)?await ga(t,e):await t.safeParseAsync(e)}function jt(t){if(!t)return;let e;if(on(t)?e=t._zod?.def?.shape:e=t.shape,!!e){if(typeof e=="function")try{return e()}catch{return}return e}}function hr(t){if(t){if(typeof t=="object"){let e=t,i=t;if(!e._def&&!i._zod){let n=Object.values(t);if(n.length>0&&n.every(a=>typeof a=="object"&&a!==null&&(a._def!==void 0||a._zod!==void 0||typeof a.parse=="function")))return wa(t)}}if(on(t)){let i=t._zod?.def;if(i&&(i.type==="object"||i.shape!==void 0))return t}else if(t.shape!==void 0)return t}}function tu(t){if(t&&typeof t=="object"){if("message"in t&&typeof t.message=="string")return t.message;if("issues"in t&&Array.isArray(t.issues)&&t.issues.length>0){let e=t.issues[0];if(e&&typeof e=="object"&&"message"in e)return String(e.message)}try{return JSON.stringify(t)}catch{return String(t)}}return String(t)}function Cj(t){return t.description}function Aj(t){if(on(t))return t._zod?.def?.type==="optional";let e=t;return typeof t.isOptional=="function"?t.isOptional():e._def?.typeName==="ZodOptional"}function au(t){if(on(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 i=t._def;if(i){if(i.value!==void 0)return i.value;if(Array.isArray(i.values)&&i.values.length>0)return i.values[0]}let n=t.value;if(n!==void 0)return n}var Rs={};dd(Rs,{ZodISODate:()=>yj,ZodISODateTime:()=>bj,ZodISODuration:()=>jj,ZodISOTime:()=>Pj,date:()=>Hg,datetime:()=>_g,duration:()=>Ig,time:()=>Rg});var bj=j("ZodISODateTime",(t,e)=>{DP.init(t,e),Le.init(t,e)});function _g(t){return ZP(bj,t)}var yj=j("ZodISODate",(t,e)=>{GP.init(t,e),Le.init(t,e)});function Hg(t){return KP(yj,t)}var Pj=j("ZodISOTime",(t,e)=>{$P.init(t,e),Le.init(t,e)});function Rg(t){return QP(Pj,t)}var jj=j("ZodISODuration",(t,e)=>{NP.init(t,e),Le.init(t,e)});function Ig(t){return YP(jj,t)}var ZD=(t,e)=>{Gl.init(t,e),t.name="ZodError",Object.defineProperties(t,{format:{value:i=>qy(t,i)},flatten:{value:i=>ky(t,i)},addIssue:{value:i=>{t.issues.push(i),t.message=JSON.stringify(t.issues,ur,2)}},addIssues:{value:i=>{t.issues.push(...i),t.message=JSON.stringify(t.issues,ur,2)}},isEmpty:{get(){return t.issues.length===0}}})};var Xi=j("ZodError",ZD,{Parent:Error});var Sj=ys(Xi),Oj=Ps(Xi),xj=js(Xi),Tj=Ss(Xi),Mj=_y(Xi),Ej=Hy(Xi),kj=Ry(Xi),qj=Iy(Xi),_j=zy(Xi),Hj=Dy(Xi),Rj=Gy(Xi),Ij=$y(Xi);var zj=new WeakMap;function Is(t,e,i){let n=Object.getPrototypeOf(t),a=zj.get(n);if(a||(a=new Set,zj.set(n,a)),!a.has(e)){a.add(e);for(let r in i){let s=i[r];Object.defineProperty(n,r,{configurable:!0,enumerable:!1,get(){let o=s.bind(this);return Object.defineProperty(this,r,{configurable:!0,writable:!0,enumerable:!0,value:o}),o},set(o){Object.defineProperty(this,r,{configurable:!0,writable:!0,enumerable:!0,value:o})}})}}}var Fe=j("ZodType",(t,e)=>(ke.init(t,e),Object.assign(t["~standard"],{jsonSchema:{input:ks(t,"input"),output:ks(t,"output")}}),t.toJSONSchema=ej(t,{}),t.def=e,t.type=e.type,Object.defineProperty(t,"_def",{value:e}),t.parse=(i,n)=>Sj(t,i,n,{callee:t.parse}),t.safeParse=(i,n)=>xj(t,i,n),t.parseAsync=async(i,n)=>Oj(t,i,n,{callee:t.parseAsync}),t.safeParseAsync=async(i,n)=>Tj(t,i,n),t.spa=t.safeParseAsync,t.encode=(i,n)=>Mj(t,i,n),t.decode=(i,n)=>Ej(t,i,n),t.encodeAsync=async(i,n)=>kj(t,i,n),t.decodeAsync=async(i,n)=>qj(t,i,n),t.safeEncode=(i,n)=>_j(t,i,n),t.safeDecode=(i,n)=>Hj(t,i,n),t.safeEncodeAsync=async(i,n)=>Rj(t,i,n),t.safeDecodeAsync=async(i,n)=>Ij(t,i,n),Is(t,"ZodType",{check(...i){let n=this.def;return this.clone(he.mergeDefs(n,{checks:[...n.checks??[],...i.map(a=>typeof a=="function"?{_zod:{check:a,def:{check:"custom"},onattach:[]}}:a)]}),{parent:!0})},with(...i){return this.check(...i)},clone(i,n){return Yi(this,i,n)},brand(){return this},register(i,n){return i.add(this,n),this},refine(i,n){return this.check(G1(i,n))},superRefine(i,n){return this.check($1(i,n))},overwrite(i){return this.check(yt(i))},optional(){return Be(this)},exactOptional(){return x1(this)},nullable(){return Nj(this)},nullish(){return Be(Nj(this))},nonoptional(i){return _1(this,i)},array(){return ge(this)},or(i){return $e([this,i])},and(i){return su(this,i)},transform(i){return Uj(this,Jj(i))},default(i){return E1(this,i)},prefault(i){return q1(this,i)},catch(i){return R1(this,i)},pipe(i){return Uj(this,i)},readonly(){return D1(this)},describe(i){let n=this.clone();return ma.add(n,{description:i}),n},meta(...i){if(i.length===0)return ma.get(this);let n=this.clone();return ma.add(n,i[0]),n},isOptional(){return this.safeParse(void 0).success},isNullable(){return this.safeParse(null).success},apply(i){return i(this)}}),Object.defineProperty(t,"description",{get(){return ma.get(t)?.description},configurable:!0}),t)),Lj=j("_ZodString",(t,e)=>{Ts.init(t,e),Fe.init(t,e),t._zod.processJSONSchema=(n,a,r)=>ug(t,n,a,r);let i=t._zod.bag;t.format=i.format??null,t.minLength=i.minimum??null,t.maxLength=i.maximum??null,Is(t,"_ZodString",{regex(...n){return this.check(Zh(...n))},includes(...n){return this.check(Yh(...n))},startsWith(...n){return this.check(Xh(...n))},endsWith(...n){return this.check(eg(...n))},min(...n){return this.check(dr(...n))},max(...n){return this.check(Xl(...n))},length(...n){return this.check(eu(...n))},nonempty(...n){return this.check(dr(1,...n))},lowercase(n){return this.check(Kh(n))},uppercase(n){return this.check(Qh(n))},trim(){return this.check(ng())},normalize(...n){return this.check(ig(...n))},toLowerCase(){return this.check(tg())},toUpperCase(){return this.check(ag())},slugify(){return this.check(rg())}})}),QD=j("ZodString",(t,e)=>{Ts.init(t,e),Lj.init(t,e),t.email=i=>t.check(yh(YD,i)),t.url=i=>t.check(xh(XD,i)),t.jwt=i=>t.check(Uh(g1,i)),t.emoji=i=>t.check(Th(e1,i)),t.guid=i=>t.check(Zl(Dj,i)),t.uuid=i=>t.check(Ph(ru,i)),t.uuidv4=i=>t.check(jh(ru,i)),t.uuidv6=i=>t.check(Sh(ru,i)),t.uuidv7=i=>t.check(Oh(ru,i)),t.nanoid=i=>t.check(Mh(i1,i)),t.guid=i=>t.check(Zl(Dj,i)),t.cuid=i=>t.check(Eh(n1,i)),t.cuid2=i=>t.check(kh(t1,i)),t.ulid=i=>t.check(qh(a1,i)),t.base64=i=>t.check(Gh(p1,i)),t.base64url=i=>t.check($h(d1,i)),t.xid=i=>t.check(_h(r1,i)),t.ksuid=i=>t.check(Hh(s1,i)),t.ipv4=i=>t.check(Rh(o1,i)),t.ipv6=i=>t.check(Ih(l1,i)),t.cidrv4=i=>t.check(zh(u1,i)),t.cidrv6=i=>t.check(Dh(c1,i)),t.e164=i=>t.check(Nh(h1,i)),t.datetime=i=>t.check(_g(i)),t.date=i=>t.check(Hg(i)),t.time=i=>t.check(Rg(i)),t.duration=i=>t.check(Ig(i))});function P(t){return bh(QD,t)}var Le=j("ZodStringFormat",(t,e)=>{Ie.init(t,e),Lj.init(t,e)}),YD=j("ZodEmail",(t,e)=>{Id.init(t,e),Le.init(t,e)});var Dj=j("ZodGUID",(t,e)=>{Hd.init(t,e),Le.init(t,e)});var ru=j("ZodUUID",(t,e)=>{Rd.init(t,e),Le.init(t,e)});var XD=j("ZodURL",(t,e)=>{zd.init(t,e),Le.init(t,e)});var e1=j("ZodEmoji",(t,e)=>{Dd.init(t,e),Le.init(t,e)});var i1=j("ZodNanoID",(t,e)=>{Gd.init(t,e),Le.init(t,e)});var n1=j("ZodCUID",(t,e)=>{$d.init(t,e),Le.init(t,e)});var t1=j("ZodCUID2",(t,e)=>{Nd.init(t,e),Le.init(t,e)});var a1=j("ZodULID",(t,e)=>{Ud.init(t,e),Le.init(t,e)});var r1=j("ZodXID",(t,e)=>{Ld.init(t,e),Le.init(t,e)});var s1=j("ZodKSUID",(t,e)=>{Wd.init(t,e),Le.init(t,e)});var o1=j("ZodIPv4",(t,e)=>{Bd.init(t,e),Le.init(t,e)});var l1=j("ZodIPv6",(t,e)=>{Fd.init(t,e),Le.init(t,e)});var u1=j("ZodCIDRv4",(t,e)=>{Vd.init(t,e),Le.init(t,e)});var c1=j("ZodCIDRv6",(t,e)=>{Jd.init(t,e),Le.init(t,e)});var p1=j("ZodBase64",(t,e)=>{Zd.init(t,e),Le.init(t,e)});var d1=j("ZodBase64URL",(t,e)=>{Kd.init(t,e),Le.init(t,e)});var h1=j("ZodE164",(t,e)=>{Qd.init(t,e),Le.init(t,e)});var g1=j("ZodJWT",(t,e)=>{Yd.init(t,e),Le.init(t,e)});var Wj=j("ZodNumber",(t,e)=>{Bl.init(t,e),Fe.init(t,e),t._zod.processJSONSchema=(n,a,r)=>cg(t,n,a,r),Is(t,"ZodNumber",{gt(n,a){return this.check(Ql(n,a))},gte(n,a){return this.check(Es(n,a))},min(n,a){return this.check(Es(n,a))},lt(n,a){return this.check(Kl(n,a))},lte(n,a){return this.check(Ms(n,a))},max(n,a){return this.check(Ms(n,a))},int(n){return this.check(Gj(n))},safe(n){return this.check(Gj(n))},positive(n){return this.check(Ql(0,n))},nonnegative(n){return this.check(Es(0,n))},negative(n){return this.check(Kl(0,n))},nonpositive(n){return this.check(Ms(0,n))},multipleOf(n,a){return this.check(Yl(n,a))},step(n,a){return this.check(Yl(n,a))},finite(){return this}});let i=t._zod.bag;t.minValue=Math.max(i.minimum??Number.NEGATIVE_INFINITY,i.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,t.maxValue=Math.min(i.maximum??Number.POSITIVE_INFINITY,i.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,t.isInt=(i.format??"").includes("int")||Number.isSafeInteger(i.multipleOf??.5),t.isFinite=!0,t.format=i.format??null});function Te(t){return Lh(Wj,t)}var m1=j("ZodNumberFormat",(t,e)=>{Xd.init(t,e),Wj.init(t,e)});function Gj(t){return Wh(m1,t)}var f1=j("ZodBoolean",(t,e)=>{eh.init(t,e),Fe.init(t,e),t._zod.processJSONSchema=(i,n,a)=>pg(t,i,n,a)});function hi(t){return Bh(f1,t)}var w1=j("ZodNull",(t,e)=>{ih.init(t,e),Fe.init(t,e),t._zod.processJSONSchema=(i,n,a)=>dg(t,i,n,a)});function Bj(t){return Fh(w1,t)}var v1=j("ZodUnknown",(t,e)=>{nh.init(t,e),Fe.init(t,e),t._zod.processJSONSchema=(i,n,a)=>gg(t,i,n,a)});function We(){return Vh(v1)}var C1=j("ZodNever",(t,e)=>{th.init(t,e),Fe.init(t,e),t._zod.processJSONSchema=(i,n,a)=>hg(t,i,n,a)});function A1(t){return Jh(C1,t)}var b1=j("ZodArray",(t,e)=>{ah.init(t,e),Fe.init(t,e),t._zod.processJSONSchema=(i,n,a)=>Cg(t,i,n,a),t.element=e.element,Is(t,"ZodArray",{min(i,n){return this.check(dr(i,n))},nonempty(i){return this.check(dr(1,i))},max(i,n){return this.check(Xl(i,n))},length(i,n){return this.check(eu(i,n))},unwrap(){return this.element}})});function ge(t,e){return XP(b1,t,e)}var Fj=j("ZodObject",(t,e)=>{BP.init(t,e),Fe.init(t,e),t._zod.processJSONSchema=(i,n,a)=>Ag(t,i,n,a),he.defineLazy(t,"shape",()=>e.shape),Is(t,"ZodObject",{keyof(){return Gi(Object.keys(this._zod.def.shape))},catchall(i){return this.clone({...this._zod.def,catchall:i})},passthrough(){return this.clone({...this._zod.def,catchall:We()})},loose(){return this.clone({...this._zod.def,catchall:We()})},strict(){return this.clone({...this._zod.def,catchall:A1()})},strip(){return this.clone({...this._zod.def,catchall:void 0})},extend(i){return he.extend(this,i)},safeExtend(i){return he.safeExtend(this,i)},merge(i){return he.merge(this,i)},pick(i){return he.pick(this,i)},omit(i){return he.omit(this,i)},partial(...i){return he.partial(ou,this,i[0])},required(...i){return he.required(Zj,this,i[0])}})});function D(t,e){let i={type:"object",shape:t??{},...he.normalizeParams(e)};return new Fj(i)}function qi(t,e){return new Fj({type:"object",shape:t,catchall:We(),...he.normalizeParams(e)})}var Vj=j("ZodUnion",(t,e)=>{Fl.init(t,e),Fe.init(t,e),t._zod.processJSONSchema=(i,n,a)=>bg(t,i,n,a),t.options=e.options});function $e(t,e){return new Vj({type:"union",options:t,...he.normalizeParams(e)})}var y1=j("ZodDiscriminatedUnion",(t,e)=>{Vj.init(t,e),sh.init(t,e)});function Dg(t,e,i){return new y1({type:"union",options:e,discriminator:t,...he.normalizeParams(i)})}var P1=j("ZodIntersection",(t,e)=>{oh.init(t,e),Fe.init(t,e),t._zod.processJSONSchema=(i,n,a)=>yg(t,i,n,a)});function su(t,e){return new P1({type:"intersection",left:t,right:e})}var $j=j("ZodRecord",(t,e)=>{lh.init(t,e),Fe.init(t,e),t._zod.processJSONSchema=(i,n,a)=>Pg(t,i,n,a),t.keyType=e.keyType,t.valueType=e.valueType});function ze(t,e,i){return!e||!e._zod?new $j({type:"record",keyType:P(),valueType:t,...he.normalizeParams(e)}):new $j({type:"record",keyType:t,valueType:e,...he.normalizeParams(i)})}var zg=j("ZodEnum",(t,e)=>{uh.init(t,e),Fe.init(t,e),t._zod.processJSONSchema=(n,a,r)=>mg(t,n,a,r),t.enum=e.entries,t.options=Object.values(e.entries);let i=new Set(Object.keys(e.entries));t.extract=(n,a)=>{let r={};for(let s of n)if(i.has(s))r[s]=e.entries[s];else throw new Error(`Key ${s} not found in enum`);return new zg({...e,checks:[],...he.normalizeParams(a),entries:r})},t.exclude=(n,a)=>{let r={...e.entries};for(let s of n)if(i.has(s))delete r[s];else throw new Error(`Key ${s} not found in enum`);return new zg({...e,checks:[],...he.normalizeParams(a),entries:r})}});function Gi(t,e){let i=Array.isArray(t)?Object.fromEntries(t.map(n=>[n,n])):t;return new zg({type:"enum",entries:i,...he.normalizeParams(e)})}var j1=j("ZodLiteral",(t,e)=>{ch.init(t,e),Fe.init(t,e),t._zod.processJSONSchema=(i,n,a)=>fg(t,i,n,a),t.values=new Set(e.values),Object.defineProperty(t,"value",{get(){if(e.values.length>1)throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");return e.values[0]}})});function W(t,e){return new j1({type:"literal",values:Array.isArray(t)?t:[t],...he.normalizeParams(e)})}var S1=j("ZodTransform",(t,e)=>{ph.init(t,e),Fe.init(t,e),t._zod.processJSONSchema=(i,n,a)=>vg(t,i,n,a),t._zod.parse=(i,n)=>{if(n.direction==="backward")throw new or(t.constructor.name);i.addIssue=r=>{if(typeof r=="string")i.issues.push(he.issue(r,i.value,e));else{let s=r;s.fatal&&(s.continue=!1),s.code??(s.code="custom"),s.input??(s.input=i.value),s.inst??(s.inst=t),i.issues.push(he.issue(s))}};let a=e.transform(i.value,i);return a instanceof Promise?a.then(r=>(i.value=r,i.fallback=!0,i)):(i.value=a,i.fallback=!0,i)}});function Jj(t){return new S1({type:"transform",transform:t})}var ou=j("ZodOptional",(t,e)=>{Vl.init(t,e),Fe.init(t,e),t._zod.processJSONSchema=(i,n,a)=>iu(t,i,n,a),t.unwrap=()=>t._zod.def.innerType});function Be(t){return new ou({type:"optional",innerType:t})}var O1=j("ZodExactOptional",(t,e)=>{dh.init(t,e),Fe.init(t,e),t._zod.processJSONSchema=(i,n,a)=>iu(t,i,n,a),t.unwrap=()=>t._zod.def.innerType});function x1(t){return new O1({type:"optional",innerType:t})}var T1=j("ZodNullable",(t,e)=>{hh.init(t,e),Fe.init(t,e),t._zod.processJSONSchema=(i,n,a)=>jg(t,i,n,a),t.unwrap=()=>t._zod.def.innerType});function Nj(t){return new T1({type:"nullable",innerType:t})}var M1=j("ZodDefault",(t,e)=>{gh.init(t,e),Fe.init(t,e),t._zod.processJSONSchema=(i,n,a)=>Og(t,i,n,a),t.unwrap=()=>t._zod.def.innerType,t.removeDefault=t.unwrap});function E1(t,e){return new M1({type:"default",innerType:t,get defaultValue(){return typeof e=="function"?e():he.shallowClone(e)}})}var k1=j("ZodPrefault",(t,e)=>{mh.init(t,e),Fe.init(t,e),t._zod.processJSONSchema=(i,n,a)=>xg(t,i,n,a),t.unwrap=()=>t._zod.def.innerType});function q1(t,e){return new k1({type:"prefault",innerType:t,get defaultValue(){return typeof e=="function"?e():he.shallowClone(e)}})}var Zj=j("ZodNonOptional",(t,e)=>{fh.init(t,e),Fe.init(t,e),t._zod.processJSONSchema=(i,n,a)=>Sg(t,i,n,a),t.unwrap=()=>t._zod.def.innerType});function _1(t,e){return new Zj({type:"nonoptional",innerType:t,...he.normalizeParams(e)})}var H1=j("ZodCatch",(t,e)=>{wh.init(t,e),Fe.init(t,e),t._zod.processJSONSchema=(i,n,a)=>Tg(t,i,n,a),t.unwrap=()=>t._zod.def.innerType,t.removeCatch=t.unwrap});function R1(t,e){return new H1({type:"catch",innerType:t,catchValue:typeof e=="function"?e:()=>e})}var Kj=j("ZodPipe",(t,e)=>{Jl.init(t,e),Fe.init(t,e),t._zod.processJSONSchema=(i,n,a)=>Mg(t,i,n,a),t.in=e.in,t.out=e.out});function Uj(t,e){return new Kj({type:"pipe",in:t,out:e})}var I1=j("ZodPreprocess",(t,e)=>{Kj.init(t,e),FP.init(t,e)}),z1=j("ZodReadonly",(t,e)=>{vh.init(t,e),Fe.init(t,e),t._zod.processJSONSchema=(i,n,a)=>Eg(t,i,n,a),t.unwrap=()=>t._zod.def.innerType});function D1(t){return new z1({type:"readonly",innerType:t})}var Qj=j("ZodCustom",(t,e)=>{Ch.init(t,e),Fe.init(t,e),t._zod.processJSONSchema=(i,n,a)=>wg(t,i,n,a)});function Yj(t,e){return sg(Qj,t??(()=>!0),e)}function G1(t,e={}){return og(Qj,t,e)}function $1(t,e){return lg(t,e)}function Gg(t,e){return new I1({type:"pipe",in:Jj(t),out:e})}Qi(VP());var Ng="2025-11-25";var Xj=[Ng,"2025-06-18","2025-03-26","2024-11-05","2024-10-07"],St="io.modelcontextprotocol/related-task",uu="2.0",si=Yj(t=>t!==null&&(typeof t=="object"||typeof t=="function")),eS=$e([P(),Te().int()]),iS=P(),Vee=qi({ttl:Te().optional(),pollInterval:Te().optional()}),N1=D({ttl:Te().optional()}),U1=D({taskId:P()}),Ug=qi({progressToken:eS.optional(),[St]:U1.optional()}),en=D({_meta:Ug.optional()}),zs=en.extend({task:N1.optional()}),nS=t=>zs.safeParse(t).success,Ai=D({method:P(),params:en.loose().optional()}),ln=D({_meta:Ug.optional()}),un=D({method:P(),params:ln.loose().optional()}),bi=qi({_meta:Ug.optional()}),cu=$e([P(),Te().int()]),tS=D({jsonrpc:W(uu),id:cu,...Ai.shape}).strict(),Lg=t=>tS.safeParse(t).success,aS=D({jsonrpc:W(uu),...un.shape}).strict(),rS=t=>aS.safeParse(t).success,Wg=D({jsonrpc:W(uu),id:cu,result:bi}).strict(),Ds=t=>Wg.safeParse(t).success;var V;(function(t){t[t.ConnectionClosed=-32e3]="ConnectionClosed",t[t.RequestTimeout=-32001]="RequestTimeout",t[t.ParseError=-32700]="ParseError",t[t.InvalidRequest=-32600]="InvalidRequest",t[t.MethodNotFound=-32601]="MethodNotFound",t[t.InvalidParams=-32602]="InvalidParams",t[t.InternalError=-32603]="InternalError",t[t.UrlElicitationRequired=-32042]="UrlElicitationRequired"})(V||(V={}));var Bg=D({jsonrpc:W(uu),id:cu.optional(),error:D({code:Te().int(),message:P(),data:We().optional()})}).strict();var sS=t=>Bg.safeParse(t).success;var oS=$e([tS,aS,Wg,Bg]),Jee=$e([Wg,Bg]),pu=bi.strict(),L1=ln.extend({requestId:cu.optional(),reason:P().optional()}),du=un.extend({method:W("notifications/cancelled"),params:L1}),W1=D({src:P(),mimeType:P().optional(),sizes:ge(P()).optional(),theme:Gi(["light","dark"]).optional()}),Gs=D({icons:ge(W1).optional()}),gr=D({name:P(),title:P().optional()}),lS=gr.extend({...gr.shape,...Gs.shape,version:P(),websiteUrl:P().optional(),description:P().optional()}),B1=su(D({applyDefaults:hi().optional()}),ze(P(),We())),F1=Gg(t=>t&&typeof t=="object"&&!Array.isArray(t)&&Object.keys(t).length===0?{form:{}}:t,su(D({form:B1.optional(),url:si.optional()}),ze(P(),We()).optional())),V1=qi({list:si.optional(),cancel:si.optional(),requests:qi({sampling:qi({createMessage:si.optional()}).optional(),elicitation:qi({create:si.optional()}).optional()}).optional()}),J1=qi({list:si.optional(),cancel:si.optional(),requests:qi({tools:qi({call:si.optional()}).optional()}).optional()}),Z1=D({experimental:ze(P(),si).optional(),sampling:D({context:si.optional(),tools:si.optional()}).optional(),elicitation:F1.optional(),roots:D({listChanged:hi().optional()}).optional(),tasks:V1.optional(),extensions:ze(P(),si).optional()}),K1=en.extend({protocolVersion:P(),capabilities:Z1,clientInfo:lS}),Fg=Ai.extend({method:W("initialize"),params:K1});var Q1=D({experimental:ze(P(),si).optional(),logging:si.optional(),completions:si.optional(),prompts:D({listChanged:hi().optional()}).optional(),resources:D({subscribe:hi().optional(),listChanged:hi().optional()}).optional(),tools:D({listChanged:hi().optional()}).optional(),tasks:J1.optional(),extensions:ze(P(),si).optional()}),Y1=bi.extend({protocolVersion:P(),capabilities:Q1,serverInfo:lS,instructions:P().optional()}),Vg=un.extend({method:W("notifications/initialized"),params:ln.optional()});var hu=Ai.extend({method:W("ping"),params:en.optional()}),X1=D({progress:Te(),total:Be(Te()),message:Be(P())}),eG=D({...ln.shape,...X1.shape,progressToken:eS}),gu=un.extend({method:W("notifications/progress"),params:eG}),iG=en.extend({cursor:iS.optional()}),$s=Ai.extend({params:iG.optional()}),Ns=bi.extend({nextCursor:iS.optional()}),nG=Gi(["working","input_required","completed","failed","cancelled"]),Us=D({taskId:P(),status:nG,ttl:$e([Te(),Bj()]),createdAt:P(),lastUpdatedAt:P(),pollInterval:Be(Te()),statusMessage:Be(P())}),mr=bi.extend({task:Us}),tG=ln.merge(Us),Ls=un.extend({method:W("notifications/tasks/status"),params:tG}),mu=Ai.extend({method:W("tasks/get"),params:en.extend({taskId:P()})}),fu=bi.merge(Us),wu=Ai.extend({method:W("tasks/result"),params:en.extend({taskId:P()})}),Zee=bi.loose(),vu=$s.extend({method:W("tasks/list")}),Cu=Ns.extend({tasks:ge(Us)}),Au=Ai.extend({method:W("tasks/cancel"),params:en.extend({taskId:P()})}),uS=bi.merge(Us),cS=D({uri:P(),mimeType:Be(P()),_meta:ze(P(),We()).optional()}),pS=cS.extend({text:P()}),Jg=P().refine(t=>{try{return atob(t),!0}catch{return!1}},{message:"Invalid Base64 string"}),dS=cS.extend({blob:Jg}),Ws=Gi(["user","assistant"]),fr=D({audience:ge(Ws).optional(),priority:Te().min(0).max(1).optional(),lastModified:Rs.datetime({offset:!0}).optional()}),hS=D({...gr.shape,...Gs.shape,uri:P(),description:Be(P()),mimeType:Be(P()),size:Be(Te()),annotations:fr.optional(),_meta:Be(qi({}))}),aG=D({...gr.shape,...Gs.shape,uriTemplate:P(),description:Be(P()),mimeType:Be(P()),annotations:fr.optional(),_meta:Be(qi({}))}),bu=$s.extend({method:W("resources/list")}),rG=Ns.extend({resources:ge(hS)}),yu=$s.extend({method:W("resources/templates/list")}),sG=Ns.extend({resourceTemplates:ge(aG)}),Zg=en.extend({uri:P()}),oG=Zg,Pu=Ai.extend({method:W("resources/read"),params:oG}),lG=bi.extend({contents:ge($e([pS,dS]))}),uG=un.extend({method:W("notifications/resources/list_changed"),params:ln.optional()}),cG=Zg,pG=Ai.extend({method:W("resources/subscribe"),params:cG}),dG=Zg,hG=Ai.extend({method:W("resources/unsubscribe"),params:dG}),gG=ln.extend({uri:P()}),mG=un.extend({method:W("notifications/resources/updated"),params:gG}),fG=D({name:P(),description:Be(P()),required:Be(hi())}),wG=D({...gr.shape,...Gs.shape,description:Be(P()),arguments:Be(ge(fG)),_meta:Be(qi({}))}),ju=$s.extend({method:W("prompts/list")}),vG=Ns.extend({prompts:ge(wG)}),CG=en.extend({name:P(),arguments:ze(P(),P()).optional()}),Su=Ai.extend({method:W("prompts/get"),params:CG}),Kg=D({type:W("text"),text:P(),annotations:fr.optional(),_meta:ze(P(),We()).optional()}),Qg=D({type:W("image"),data:Jg,mimeType:P(),annotations:fr.optional(),_meta:ze(P(),We()).optional()}),Yg=D({type:W("audio"),data:Jg,mimeType:P(),annotations:fr.optional(),_meta:ze(P(),We()).optional()}),AG=D({type:W("tool_use"),name:P(),id:P(),input:ze(P(),We()),_meta:ze(P(),We()).optional()}),bG=D({type:W("resource"),resource:$e([pS,dS]),annotations:fr.optional(),_meta:ze(P(),We()).optional()}),yG=hS.extend({type:W("resource_link")}),Xg=$e([Kg,Qg,Yg,yG,bG]),PG=D({role:Ws,content:Xg}),jG=bi.extend({description:P().optional(),messages:ge(PG)}),SG=un.extend({method:W("notifications/prompts/list_changed"),params:ln.optional()}),OG=D({title:P().optional(),readOnlyHint:hi().optional(),destructiveHint:hi().optional(),idempotentHint:hi().optional(),openWorldHint:hi().optional()}),xG=D({taskSupport:Gi(["required","optional","forbidden"]).optional()}),gS=D({...gr.shape,...Gs.shape,description:P().optional(),inputSchema:D({type:W("object"),properties:ze(P(),si).optional(),required:ge(P()).optional()}).catchall(We()),outputSchema:D({type:W("object"),properties:ze(P(),si).optional(),required:ge(P()).optional()}).catchall(We()).optional(),annotations:OG.optional(),execution:xG.optional(),_meta:ze(P(),We()).optional()}),Ou=$s.extend({method:W("tools/list")}),TG=Ns.extend({tools:ge(gS)}),xu=bi.extend({content:ge(Xg).default([]),structuredContent:ze(P(),We()).optional(),isError:hi().optional()}),Kee=xu.or(bi.extend({toolResult:We()})),MG=zs.extend({name:P(),arguments:ze(P(),We()).optional()}),wr=Ai.extend({method:W("tools/call"),params:MG}),EG=un.extend({method:W("notifications/tools/list_changed"),params:ln.optional()}),Qee=D({autoRefresh:hi().default(!0),debounceMs:Te().int().nonnegative().default(300)}),Bs=Gi(["debug","info","notice","warning","error","critical","alert","emergency"]),kG=en.extend({level:Bs}),em=Ai.extend({method:W("logging/setLevel"),params:kG}),qG=ln.extend({level:Bs,logger:P().optional(),data:We()}),_G=un.extend({method:W("notifications/message"),params:qG}),HG=D({name:P().optional()}),RG=D({hints:ge(HG).optional(),costPriority:Te().min(0).max(1).optional(),speedPriority:Te().min(0).max(1).optional(),intelligencePriority:Te().min(0).max(1).optional()}),IG=D({mode:Gi(["auto","required","none"]).optional()}),zG=D({type:W("tool_result"),toolUseId:P().describe("The unique identifier for the corresponding tool call."),content:ge(Xg).default([]),structuredContent:D({}).loose().optional(),isError:hi().optional(),_meta:ze(P(),We()).optional()}),DG=Dg("type",[Kg,Qg,Yg]),lu=Dg("type",[Kg,Qg,Yg,AG,zG]),GG=D({role:Ws,content:$e([lu,ge(lu)]),_meta:ze(P(),We()).optional()}),$G=zs.extend({messages:ge(GG),modelPreferences:RG.optional(),systemPrompt:P().optional(),includeContext:Gi(["none","thisServer","allServers"]).optional(),temperature:Te().optional(),maxTokens:Te().int(),stopSequences:ge(P()).optional(),metadata:si.optional(),tools:ge(gS).optional(),toolChoice:IG.optional()}),NG=Ai.extend({method:W("sampling/createMessage"),params:$G}),Fs=bi.extend({model:P(),stopReason:Be(Gi(["endTurn","stopSequence","maxTokens"]).or(P())),role:Ws,content:DG}),im=bi.extend({model:P(),stopReason:Be(Gi(["endTurn","stopSequence","maxTokens","toolUse"]).or(P())),role:Ws,content:$e([lu,ge(lu)])}),UG=D({type:W("boolean"),title:P().optional(),description:P().optional(),default:hi().optional()}),LG=D({type:W("string"),title:P().optional(),description:P().optional(),minLength:Te().optional(),maxLength:Te().optional(),format:Gi(["email","uri","date","date-time"]).optional(),default:P().optional()}),WG=D({type:Gi(["number","integer"]),title:P().optional(),description:P().optional(),minimum:Te().optional(),maximum:Te().optional(),default:Te().optional()}),BG=D({type:W("string"),title:P().optional(),description:P().optional(),enum:ge(P()),default:P().optional()}),FG=D({type:W("string"),title:P().optional(),description:P().optional(),oneOf:ge(D({const:P(),title:P()})),default:P().optional()}),VG=D({type:W("string"),title:P().optional(),description:P().optional(),enum:ge(P()),enumNames:ge(P()).optional(),default:P().optional()}),JG=$e([BG,FG]),ZG=D({type:W("array"),title:P().optional(),description:P().optional(),minItems:Te().optional(),maxItems:Te().optional(),items:D({type:W("string"),enum:ge(P())}),default:ge(P()).optional()}),KG=D({type:W("array"),title:P().optional(),description:P().optional(),minItems:Te().optional(),maxItems:Te().optional(),items:D({anyOf:ge(D({const:P(),title:P()}))}),default:ge(P()).optional()}),QG=$e([ZG,KG]),YG=$e([VG,JG,QG]),XG=$e([YG,UG,LG,WG]),e$=zs.extend({mode:W("form").optional(),message:P(),requestedSchema:D({type:W("object"),properties:ze(P(),XG),required:ge(P()).optional()})}),i$=zs.extend({mode:W("url"),message:P(),elicitationId:P(),url:P().url()}),n$=$e([e$,i$]),t$=Ai.extend({method:W("elicitation/create"),params:n$}),a$=ln.extend({elicitationId:P()}),r$=un.extend({method:W("notifications/elicitation/complete"),params:a$}),vr=bi.extend({action:Gi(["accept","decline","cancel"]),content:Gg(t=>t===null?void 0:t,ze(P(),$e([P(),Te(),hi(),ge(P())])).optional())}),s$=D({type:W("ref/resource"),uri:P()});var o$=D({type:W("ref/prompt"),name:P()}),l$=en.extend({ref:$e([o$,s$]),argument:D({name:P(),value:P()}),context:D({arguments:ze(P(),P()).optional()}).optional()}),Tu=Ai.extend({method:W("completion/complete"),params:l$});function mS(t){if(t.params.ref.type!=="ref/prompt")throw new TypeError(`Expected CompleteRequestPrompt, but got ${t.params.ref.type}`)}function fS(t){if(t.params.ref.type!=="ref/resource")throw new TypeError(`Expected CompleteRequestResourceTemplate, but got ${t.params.ref.type}`)}var u$=bi.extend({completion:qi({values:ge(P()).max(100),total:Be(Te().int()),hasMore:Be(hi())})}),c$=D({uri:P().startsWith("file://"),name:P().optional(),_meta:ze(P(),We()).optional()}),p$=Ai.extend({method:W("roots/list"),params:en.optional()}),nm=bi.extend({roots:ge(c$)}),d$=un.extend({method:W("notifications/roots/list_changed"),params:ln.optional()}),Yee=$e([hu,Fg,Tu,em,Su,ju,bu,yu,Pu,pG,hG,wr,Ou,mu,wu,vu,Au]),Xee=$e([du,gu,Vg,d$,Ls]),eie=$e([pu,Fs,im,vr,nm,fu,Cu,mr]),iie=$e([hu,NG,t$,p$,mu,wu,vu,Au]),nie=$e([du,gu,_G,mG,uG,EG,SG,Ls,r$]),tie=$e([pu,Y1,u$,jG,vG,rG,sG,lG,xu,TG,fu,Cu,mr]),L=class t extends Error{constructor(e,i,n){super(`MCP error ${e}: ${i}`),this.code=e,this.data=n,this.name="McpError"}static fromError(e,i,n){if(e===V.UrlElicitationRequired&&n){let a=n;if(a.elicitations)return new $g(a.elicitations,i)}return new t(e,i,n)}},$g=class extends L{constructor(e,i=`URL elicitation${e.length>1?"s":""} required`){super(V.UrlElicitationRequired,i,{elicitations:e})}get elicitations(){return this.data?.elicitations??[]}};function Ot(t){return t==="completed"||t==="failed"||t==="cancelled"}var vS=Symbol("Let zodToJsonSchema decide on which parser to use");var wS={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"},CS=t=>typeof t=="string"?{...wS,name:t}:{...wS,...t};var AS=t=>{let e=CS(t),i=e.name!==void 0?[...e.basePath,e.definitionPath,e.name]:e.basePath;return{...e,flags:{hasReferencedOpenAiAnyType:!1},currentPath:i,propertyPath:void 0,seen:new Map(Object.entries(e.definitions).map(([n,a])=>[a._def,{def:a._def,path:[...e.basePath,e.definitionPath,n],jsonSchema:void 0}]))}};function tm(t,e,i,n){n?.errorMessages&&i&&(t.errorMessage={...t.errorMessage,[e]:i})}function me(t,e,i,n,a){t[e]=i,tm(t,e,n,a)}var Mu=(t,e)=>{let i=0;for(;iY(t.innerType._def,e);function am(t,e,i){let n=i??e.dateStrategy;if(Array.isArray(n))return{anyOf:n.map((a,r)=>am(t,e,a))};switch(n){case"string":case"format:date-time":return{type:"string",format:"date-time"};case"format:date":return{type:"string",format:"date"};case"integer":return h$(t,e)}}var h$=(t,e)=>{let i={type:"integer",format:"unix-time"};if(e.target==="openApi3")return i;for(let n of t.checks)switch(n.kind){case"min":me(i,"minimum",n.value,n.message,e);break;case"max":me(i,"maximum",n.value,n.message,e);break}return i};function SS(t,e){return{...Y(t.innerType._def,e),default:t.defaultValue()}}function OS(t,e){return e.effectStrategy==="input"?Y(t.schema._def,e):Ve(e)}function xS(t){return{type:"string",enum:Array.from(t.values)}}var g$=t=>"type"in t&&t.type==="string"?!1:"allOf"in t;function TS(t,e){let i=[Y(t.left._def,{...e,currentPath:[...e.currentPath,"allOf","0"]}),Y(t.right._def,{...e,currentPath:[...e.currentPath,"allOf","1"]})].filter(r=>!!r),n=e.target==="jsonSchema2019-09"?{unevaluatedProperties:!1}:void 0,a=[];return i.forEach(r=>{if(g$(r))a.push(...r.allOf),r.unevaluatedProperties===void 0&&(n=void 0);else{let s=r;if("additionalProperties"in r&&r.additionalProperties===!1){let{additionalProperties:o,...l}=r;s=l}else n=void 0;a.push(s)}}),a.length?{allOf:a,...n}:void 0}function MS(t,e){let i=typeof t.value;return i!=="bigint"&&i!=="number"&&i!=="boolean"&&i!=="string"?{type:Array.isArray(t.value)?"array":"object"}:e.target==="openApi3"?{type:i==="bigint"?"integer":i,enum:[t.value]}:{type:i==="bigint"?"integer":i,const:t.value}}var rm,Cn={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:()=>(rm===void 0&&(rm=RegExp("^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$","u")),rm),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 ku(t,e){let i={type:"string"};if(t.checks)for(let n of t.checks)switch(n.kind){case"min":me(i,"minLength",typeof i.minLength=="number"?Math.max(i.minLength,n.value):n.value,n.message,e);break;case"max":me(i,"maxLength",typeof i.maxLength=="number"?Math.min(i.maxLength,n.value):n.value,n.message,e);break;case"email":switch(e.emailStrategy){case"format:email":An(i,"email",n.message,e);break;case"format:idn-email":An(i,"idn-email",n.message,e);break;case"pattern:zod":_i(i,Cn.email,n.message,e);break}break;case"url":An(i,"uri",n.message,e);break;case"uuid":An(i,"uuid",n.message,e);break;case"regex":_i(i,n.regex,n.message,e);break;case"cuid":_i(i,Cn.cuid,n.message,e);break;case"cuid2":_i(i,Cn.cuid2,n.message,e);break;case"startsWith":_i(i,RegExp(`^${sm(n.value,e)}`),n.message,e);break;case"endsWith":_i(i,RegExp(`${sm(n.value,e)}$`),n.message,e);break;case"datetime":An(i,"date-time",n.message,e);break;case"date":An(i,"date",n.message,e);break;case"time":An(i,"time",n.message,e);break;case"duration":An(i,"duration",n.message,e);break;case"length":me(i,"minLength",typeof i.minLength=="number"?Math.max(i.minLength,n.value):n.value,n.message,e),me(i,"maxLength",typeof i.maxLength=="number"?Math.min(i.maxLength,n.value):n.value,n.message,e);break;case"includes":{_i(i,RegExp(sm(n.value,e)),n.message,e);break}case"ip":{n.version!=="v6"&&An(i,"ipv4",n.message,e),n.version!=="v4"&&An(i,"ipv6",n.message,e);break}case"base64url":_i(i,Cn.base64url,n.message,e);break;case"jwt":_i(i,Cn.jwt,n.message,e);break;case"cidr":{n.version!=="v6"&&_i(i,Cn.ipv4Cidr,n.message,e),n.version!=="v4"&&_i(i,Cn.ipv6Cidr,n.message,e);break}case"emoji":_i(i,Cn.emoji(),n.message,e);break;case"ulid":{_i(i,Cn.ulid,n.message,e);break}case"base64":{switch(e.base64Strategy){case"format:binary":{An(i,"binary",n.message,e);break}case"contentEncoding:base64":{me(i,"contentEncoding","base64",n.message,e);break}case"pattern:zod":{_i(i,Cn.base64,n.message,e);break}}break}case"nanoid":_i(i,Cn.nanoid,n.message,e);case"toLowerCase":case"toUpperCase":case"trim":break;default:}return i}function sm(t,e){return e.patternStrategy==="escape"?f$(t):t}var m$=new Set("ABCDEFGHIJKLMNOPQRSTUVXYZabcdefghijklmnopqrstuvxyz0123456789");function f$(t){let e="";for(let i=0;ia.format)?(t.anyOf||(t.anyOf=[]),t.format&&(t.anyOf.push({format:t.format,...t.errorMessage&&n.errorMessages&&{errorMessage:{format:t.errorMessage.format}}}),delete t.format,t.errorMessage&&(delete t.errorMessage.format,Object.keys(t.errorMessage).length===0&&delete t.errorMessage)),t.anyOf.push({format:e,...i&&n.errorMessages&&{errorMessage:{format:i}}})):me(t,"format",e,i,n)}function _i(t,e,i,n){t.pattern||t.allOf?.some(a=>a.pattern)?(t.allOf||(t.allOf=[]),t.pattern&&(t.allOf.push({pattern:t.pattern,...t.errorMessage&&n.errorMessages&&{errorMessage:{pattern:t.errorMessage.pattern}}}),delete t.pattern,t.errorMessage&&(delete t.errorMessage.pattern,Object.keys(t.errorMessage).length===0&&delete t.errorMessage)),t.allOf.push({pattern:ES(e,n),...i&&n.errorMessages&&{errorMessage:{pattern:i}}})):me(t,"pattern",ES(e,n),i,n)}function ES(t,e){if(!e.applyRegexFlags||!t.flags)return t.source;let i={i:t.flags.includes("i"),m:t.flags.includes("m"),s:t.flags.includes("s")},n=i.i?t.source.toLowerCase():t.source,a="",r=!1,s=!1,o=!1;for(let l=0;l1&&t.reused==="ref"){r(s);continue}}}function Is(t,e){let i=t.seen.get(e);if(!i)throw new Error("Unprocessed schema. This is a bug in Zod.");let n=o=>{let l=t.seen.get(o);if(l.ref===null)return;let u=l.def??l.schema,c={...u},p=l.ref;if(l.ref=null,p){n(p);let h=t.seen.get(p),g=h.schema;if(g.$ref&&(t.target==="draft-07"||t.target==="draft-04"||t.target==="openapi-3.0")?(u.allOf=u.allOf??[],u.allOf.push(g)):Object.assign(u,g),Object.assign(u,c),o._zod.parent===p)for(let f in u)f==="$ref"||f==="allOf"||f in c||delete u[f];if(g.$ref&&h.def)for(let f in u)f==="$ref"||f==="allOf"||f in h.def&&JSON.stringify(u[f])===JSON.stringify(h.def[f])&&delete u[f]}let d=o._zod.parent;if(d&&d!==p){n(d);let h=t.seen.get(d);if(h?.schema.$ref&&(u.$ref=h.schema.$ref,h.def))for(let g in u)g==="$ref"||g==="allOf"||g in h.def&&JSON.stringify(u[g])===JSON.stringify(h.def[g])&&delete u[g]}t.override({zodSchema:o,jsonSchema:u,path:l.path??[]})};for(let o of[...t.seen.entries()].reverse())n(o[0]);let a={};if(t.target==="draft-2020-12"?a.$schema="https://json-schema.org/draft/2020-12/schema":t.target==="draft-07"?a.$schema="http://json-schema.org/draft-07/schema#":t.target==="draft-04"?a.$schema="http://json-schema.org/draft-04/schema#":t.target,t.external?.uri){let o=t.external.registry.get(e)?.id;if(!o)throw new Error("Schema is missing an `id` property");a.$id=t.external.uri(o)}Object.assign(a,i.def??i.schema);let r=t.metadataRegistry.get(e)?.id;r!==void 0&&a.id===r&&delete a.id;let s=t.external?.defs??{};for(let o of t.seen.entries()){let l=o[1];l.def&&l.defId&&(l.def.id===l.defId&&delete l.def.id,s[l.defId]=l.def)}t.external||Object.keys(s).length>0&&(t.target==="draft-2020-12"?a.$defs=s:a.definitions=s);try{let o=JSON.parse(JSON.stringify(a));return Object.defineProperty(o,"~standard",{value:{...e["~standard"],jsonSchema:{input:_s(e,"input",t.processors),output:_s(e,"output",t.processors)}},enumerable:!1,writable:!1}),o}catch{throw new Error("Error converting schema to JSON.")}}function ki(t,e){let i=e??{seen:new Set};if(i.seen.has(t))return!1;i.seen.add(t);let n=t._zod.def;if(n.type==="transform")return!0;if(n.type==="array")return ki(n.element,i);if(n.type==="set")return ki(n.valueType,i);if(n.type==="lazy")return ki(n.getter(),i);if(n.type==="promise"||n.type==="optional"||n.type==="nonoptional"||n.type==="nullable"||n.type==="readonly"||n.type==="default"||n.type==="prefault")return ki(n.innerType,i);if(n.type==="intersection")return ki(n.left,i)||ki(n.right,i);if(n.type==="record"||n.type==="map")return ki(n.keyType,i)||ki(n.valueType,i);if(n.type==="pipe")return t._zod.traits.has("$ZodCodec")?!0:ki(n.in,i)||ki(n.out,i);if(n.type==="object"){for(let a in n.shape)if(ki(n.shape[a],i))return!0;return!1}if(n.type==="union"){for(let a of n.options)if(ki(a,i))return!0;return!1}if(n.type==="tuple"){for(let a of n.items)if(ki(a,i))return!0;return!!(n.rest&&ki(n.rest,i))}return!1}var nj=(t,e={})=>i=>{let n=Hs({...i,processors:e});return qe(t,n),Rs(n,t),Is(n,t)},_s=(t,e,i={})=>n=>{let{libraryOptions:a,target:r}=n??{},s=Hs({...a??{},target:r,io:e,processors:i});return qe(t,s),Rs(s,t),Is(s,t)};var tD={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},pg=(t,e,i,n)=>{let a=i;a.type="string";let{minimum:r,maximum:s,format:o,patterns:l,contentEncoding:u}=t._zod.bag;if(typeof r=="number"&&(a.minLength=r),typeof s=="number"&&(a.maxLength=s),o&&(a.format=tD[o]??o,a.format===""&&delete a.format,o==="time"&&delete a.format),u&&(a.contentEncoding=u),l&&l.size>0){let c=[...l];c.length===1?a.pattern=c[0].source:c.length>1&&(a.allOf=[...c.map(p=>({...e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0"?{type:"string"}:{},pattern:p.source}))])}},dg=(t,e,i,n)=>{let a=i,{minimum:r,maximum:s,format:o,multipleOf:l,exclusiveMaximum:u,exclusiveMinimum:c}=t._zod.bag;typeof o=="string"&&o.includes("int")?a.type="integer":a.type="number";let p=typeof c=="number"&&c>=(r??Number.NEGATIVE_INFINITY),d=typeof u=="number"&&u<=(s??Number.POSITIVE_INFINITY),h=e.target==="draft-04"||e.target==="openapi-3.0";p?h?(a.minimum=c,a.exclusiveMinimum=!0):a.exclusiveMinimum=c:typeof r=="number"&&(a.minimum=r),d?h?(a.maximum=u,a.exclusiveMaximum=!0):a.exclusiveMaximum=u:typeof s=="number"&&(a.maximum=s),typeof l=="number"&&(a.multipleOf=l)},hg=(t,e,i,n)=>{i.type="boolean"},aj=(t,e,i,n)=>{if(e.unrepresentable==="throw")throw new Error("BigInt cannot be represented in JSON Schema")},rj=(t,e,i,n)=>{if(e.unrepresentable==="throw")throw new Error("Symbols cannot be represented in JSON Schema")},gg=(t,e,i,n)=>{e.target==="openapi-3.0"?(i.type="string",i.nullable=!0,i.enum=[null]):i.type="null"},sj=(t,e,i,n)=>{if(e.unrepresentable==="throw")throw new Error("Undefined cannot be represented in JSON Schema")},oj=(t,e,i,n)=>{if(e.unrepresentable==="throw")throw new Error("Void cannot be represented in JSON Schema")},mg=(t,e,i,n)=>{i.not={}},lj=(t,e,i,n)=>{},fg=(t,e,i,n)=>{},uj=(t,e,i,n)=>{if(e.unrepresentable==="throw")throw new Error("Date cannot be represented in JSON Schema")},wg=(t,e,i,n)=>{let a=t._zod.def,r=Cs(a.entries);r.every(s=>typeof s=="number")&&(i.type="number"),r.every(s=>typeof s=="string")&&(i.type="string"),i.enum=r},vg=(t,e,i,n)=>{let a=t._zod.def,r=[];for(let s of a.values)if(s===void 0){if(e.unrepresentable==="throw")throw new Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof s=="bigint"){if(e.unrepresentable==="throw")throw new Error("BigInt literals cannot be represented in JSON Schema");r.push(Number(s))}else r.push(s);if(r.length!==0)if(r.length===1){let s=r[0];i.type=s===null?"null":typeof s,e.target==="draft-04"||e.target==="openapi-3.0"?i.enum=[s]:i.const=s}else r.every(s=>typeof s=="number")&&(i.type="number"),r.every(s=>typeof s=="string")&&(i.type="string"),r.every(s=>typeof s=="boolean")&&(i.type="boolean"),r.every(s=>s===null)&&(i.type="null"),i.enum=r},cj=(t,e,i,n)=>{if(e.unrepresentable==="throw")throw new Error("NaN cannot be represented in JSON Schema")},pj=(t,e,i,n)=>{let a=i,r=t._zod.pattern;if(!r)throw new Error("Pattern not found in template literal");a.type="string",a.pattern=r.source},dj=(t,e,i,n)=>{let a=i,r={type:"string",format:"binary",contentEncoding:"binary"},{minimum:s,maximum:o,mime:l}=t._zod.bag;s!==void 0&&(r.minLength=s),o!==void 0&&(r.maxLength=o),l?l.length===1?(r.contentMediaType=l[0],Object.assign(a,r)):(Object.assign(a,r),a.anyOf=l.map(u=>({contentMediaType:u}))):Object.assign(a,r)},hj=(t,e,i,n)=>{i.type="boolean"},Cg=(t,e,i,n)=>{if(e.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")},gj=(t,e,i,n)=>{if(e.unrepresentable==="throw")throw new Error("Function types cannot be represented in JSON Schema")},Ag=(t,e,i,n)=>{if(e.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")},mj=(t,e,i,n)=>{if(e.unrepresentable==="throw")throw new Error("Map cannot be represented in JSON Schema")},fj=(t,e,i,n)=>{if(e.unrepresentable==="throw")throw new Error("Set cannot be represented in JSON Schema")},bg=(t,e,i,n)=>{let a=i,r=t._zod.def,{minimum:s,maximum:o}=t._zod.bag;typeof s=="number"&&(a.minItems=s),typeof o=="number"&&(a.maxItems=o),a.type="array",a.items=qe(r.element,e,{...n,path:[...n.path,"items"]})},yg=(t,e,i,n)=>{let a=i,r=t._zod.def;a.type="object",a.properties={};let s=r.shape;for(let u in s)a.properties[u]=qe(s[u],e,{...n,path:[...n.path,"properties",u]});let o=new Set(Object.keys(s)),l=new Set([...o].filter(u=>{let c=r.shape[u]._zod;return e.io==="input"?c.optin===void 0:c.optout===void 0}));l.size>0&&(a.required=Array.from(l)),r.catchall?._zod.def.type==="never"?a.additionalProperties=!1:r.catchall?r.catchall&&(a.additionalProperties=qe(r.catchall,e,{...n,path:[...n.path,"additionalProperties"]})):e.io==="output"&&(a.additionalProperties=!1)},Pg=(t,e,i,n)=>{let a=t._zod.def,r=a.inclusive===!1,s=a.options.map((o,l)=>qe(o,e,{...n,path:[...n.path,r?"oneOf":"anyOf",l]}));r?i.oneOf=s:i.anyOf=s},jg=(t,e,i,n)=>{let a=t._zod.def,r=qe(a.left,e,{...n,path:[...n.path,"allOf",0]}),s=qe(a.right,e,{...n,path:[...n.path,"allOf",1]}),o=u=>"allOf"in u&&Object.keys(u).length===1,l=[...o(r)?r.allOf:[r],...o(s)?s.allOf:[s]];i.allOf=l},wj=(t,e,i,n)=>{let a=i,r=t._zod.def;a.type="array";let s=e.target==="draft-2020-12"?"prefixItems":"items",o=e.target==="draft-2020-12"||e.target==="openapi-3.0"?"items":"additionalItems",l=r.items.map((d,h)=>qe(d,e,{...n,path:[...n.path,s,h]})),u=r.rest?qe(r.rest,e,{...n,path:[...n.path,o,...e.target==="openapi-3.0"?[r.items.length]:[]]}):null;e.target==="draft-2020-12"?(a.prefixItems=l,u&&(a.items=u)):e.target==="openapi-3.0"?(a.items={anyOf:l},u&&a.items.anyOf.push(u),a.minItems=l.length,u||(a.maxItems=l.length)):(a.items=l,u&&(a.additionalItems=u));let{minimum:c,maximum:p}=t._zod.bag;typeof c=="number"&&(a.minItems=c),typeof p=="number"&&(a.maxItems=p)},Sg=(t,e,i,n)=>{let a=i,r=t._zod.def;a.type="object";let s=r.keyType,l=s._zod.bag?.patterns;if(r.mode==="loose"&&l&&l.size>0){let c=qe(r.valueType,e,{...n,path:[...n.path,"patternProperties","*"]});a.patternProperties={};for(let p of l)a.patternProperties[p.source]=c}else(e.target==="draft-07"||e.target==="draft-2020-12")&&(a.propertyNames=qe(r.keyType,e,{...n,path:[...n.path,"propertyNames"]})),a.additionalProperties=qe(r.valueType,e,{...n,path:[...n.path,"additionalProperties"]});let u=s._zod.values;if(u){let c=[...u].filter(p=>typeof p=="string"||typeof p=="number");c.length>0&&(a.required=c)}},Og=(t,e,i,n)=>{let a=t._zod.def,r=qe(a.innerType,e,n),s=e.seen.get(t);e.target==="openapi-3.0"?(s.ref=a.innerType,i.nullable=!0):i.anyOf=[r,{type:"null"}]},xg=(t,e,i,n)=>{let a=t._zod.def;qe(a.innerType,e,n);let r=e.seen.get(t);r.ref=a.innerType},Tg=(t,e,i,n)=>{let a=t._zod.def;qe(a.innerType,e,n);let r=e.seen.get(t);r.ref=a.innerType,i.default=JSON.parse(JSON.stringify(a.defaultValue))},Mg=(t,e,i,n)=>{let a=t._zod.def;qe(a.innerType,e,n);let r=e.seen.get(t);r.ref=a.innerType,e.io==="input"&&(i._prefault=JSON.parse(JSON.stringify(a.defaultValue)))},Eg=(t,e,i,n)=>{let a=t._zod.def;qe(a.innerType,e,n);let r=e.seen.get(t);r.ref=a.innerType;let s;try{s=a.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}i.default=s},kg=(t,e,i,n)=>{let a=t._zod.def,r=a.in._zod.traits.has("$ZodTransform"),s=e.io==="input"?r?a.out:a.in:a.out;qe(s,e,n);let o=e.seen.get(t);o.ref=s},qg=(t,e,i,n)=>{let a=t._zod.def;qe(a.innerType,e,n);let r=e.seen.get(t);r.ref=a.innerType,i.readOnly=!0},vj=(t,e,i,n)=>{let a=t._zod.def;qe(a.innerType,e,n);let r=e.seen.get(t);r.ref=a.innerType},nu=(t,e,i,n)=>{let a=t._zod.def;qe(a.innerType,e,n);let r=e.seen.get(t);r.ref=a.innerType},Cj=(t,e,i,n)=>{let a=t._zod.innerType;qe(a,e,n);let r=e.seen.get(t);r.ref=a},tj={string:pg,number:dg,boolean:hg,bigint:aj,symbol:rj,null:gg,undefined:sj,void:oj,never:mg,any:lj,unknown:fg,date:uj,enum:wg,literal:vg,nan:cj,template_literal:pj,file:dj,success:hj,custom:Cg,function:gj,transform:Ag,map:mj,set:fj,array:bg,object:yg,union:Pg,intersection:jg,tuple:wj,record:Sg,nullable:Og,nonoptional:xg,default:Tg,prefault:Mg,catch:Eg,pipe:kg,readonly:qg,promise:vj,optional:nu,lazy:Cj};function _g(t,e){if("_idmap"in t){let n=t,a=Hs({...e,processors:tj}),r={};for(let l of n._idmap.entries()){let[u,c]=l;qe(c,a)}let s={},o={registry:n,uri:e?.uri,defs:r};a.external=o;for(let l of n._idmap.entries()){let[u,c]=l;Rs(a,c),s[u]=Is(a,c)}if(Object.keys(r).length>0){let l=a.target==="draft-2020-12"?"$defs":"definitions";s.__shared={[l]:r}}return{schemas:s}}let i=Hs({...e,processors:tj});return qe(t,i),Rs(i,t),Is(i,t)}var FD=j("ZodMiniType",(t,e)=>{if(!t._zod)throw new Error("Uninitialized schema in ZodMiniType.");ke.init(t,e),t.def=e,t.type=e.type,t.parse=(i,n)=>Nl(t,i,n,{callee:t.parse}),t.safeParse=(i,n)=>ha(t,i,n),t.parseAsync=async(i,n)=>Ul(t,i,n,{callee:t.parseAsync}),t.safeParseAsync=async(i,n)=>ga(t,i,n),t.check=(...i)=>t.clone({...e,checks:[...e.checks??[],...i.map(n=>typeof n=="function"?{_zod:{check:n,def:{check:"custom"},onattach:[]}}:n)]},{parent:!0}),t.with=t.check,t.clone=(i,n)=>Yi(t,i,n),t.brand=()=>t,t.register=((i,n)=>(i.add(t,n),t)),t.apply=i=>i(t)});var VD=j("ZodMiniObject",(t,e)=>{oh.init(t,e),FD.init(t,e),Oe(t,"shape",()=>e.shape)});function Hg(t,e){let i={type:"object",shape:t??{},...J(e)};return new VD(i)}function on(t){return!!t._zod}function wa(t){let e=Object.values(t);if(e.length===0)return Hg({});let i=e.every(on),n=e.every(a=>!on(a));if(i)return Hg(t);if(n)return vd(t);throw new Error("Mixed Zod versions detected in object shape.")}function Pt(t,e){return on(t)?ha(t,e):t.safeParse(e)}async function tu(t,e){return on(t)?await ga(t,e):await t.safeParseAsync(e)}function jt(t){if(!t)return;let e;if(on(t)?e=t._zod?.def?.shape:e=t.shape,!!e){if(typeof e=="function")try{return e()}catch{return}return e}}function gr(t){if(t){if(typeof t=="object"){let e=t,i=t;if(!e._def&&!i._zod){let n=Object.values(t);if(n.length>0&&n.every(a=>typeof a=="object"&&a!==null&&(a._def!==void 0||a._zod!==void 0||typeof a.parse=="function")))return wa(t)}}if(on(t)){let i=t._zod?.def;if(i&&(i.type==="object"||i.shape!==void 0))return t}else if(t.shape!==void 0)return t}}function au(t){if(t&&typeof t=="object"){if("message"in t&&typeof t.message=="string")return t.message;if("issues"in t&&Array.isArray(t.issues)&&t.issues.length>0){let e=t.issues[0];if(e&&typeof e=="object"&&"message"in e)return String(e.message)}try{return JSON.stringify(t)}catch{return String(t)}}return String(t)}function bj(t){return t.description}function yj(t){if(on(t))return t._zod?.def?.type==="optional";let e=t;return typeof t.isOptional=="function"?t.isOptional():e._def?.typeName==="ZodOptional"}function ru(t){if(on(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 i=t._def;if(i){if(i.value!==void 0)return i.value;if(Array.isArray(i.values)&&i.values.length>0)return i.values[0]}let n=t.value;if(n!==void 0)return n}var zs={};gd(zs,{ZodISODate:()=>jj,ZodISODateTime:()=>Pj,ZodISODuration:()=>Oj,ZodISOTime:()=>Sj,date:()=>Ig,datetime:()=>Rg,duration:()=>Dg,time:()=>zg});var Pj=j("ZodISODateTime",(t,e)=>{$P.init(t,e),Le.init(t,e)});function Rg(t){return QP(Pj,t)}var jj=j("ZodISODate",(t,e)=>{NP.init(t,e),Le.init(t,e)});function Ig(t){return YP(jj,t)}var Sj=j("ZodISOTime",(t,e)=>{UP.init(t,e),Le.init(t,e)});function zg(t){return XP(Sj,t)}var Oj=j("ZodISODuration",(t,e)=>{LP.init(t,e),Le.init(t,e)});function Dg(t){return ej(Oj,t)}var iG=(t,e)=>{$l.init(t,e),t.name="ZodError",Object.defineProperties(t,{format:{value:i=>Hy(t,i)},flatten:{value:i=>_y(t,i)},addIssue:{value:i=>{t.issues.push(i),t.message=JSON.stringify(t.issues,cr,2)}},addIssues:{value:i=>{t.issues.push(...i),t.message=JSON.stringify(t.issues,cr,2)}},isEmpty:{get(){return t.issues.length===0}}})};var Xi=j("ZodError",iG,{Parent:Error});var xj=js(Xi),Tj=Ss(Xi),Mj=Os(Xi),Ej=xs(Xi),kj=Ry(Xi),qj=Iy(Xi),_j=zy(Xi),Hj=Dy(Xi),Rj=Gy(Xi),Ij=$y(Xi),zj=Ny(Xi),Dj=Uy(Xi);var Gj=new WeakMap;function Ds(t,e,i){let n=Object.getPrototypeOf(t),a=Gj.get(n);if(a||(a=new Set,Gj.set(n,a)),!a.has(e)){a.add(e);for(let r in i){let s=i[r];Object.defineProperty(n,r,{configurable:!0,enumerable:!1,get(){let o=s.bind(this);return Object.defineProperty(this,r,{configurable:!0,writable:!0,enumerable:!0,value:o}),o},set(o){Object.defineProperty(this,r,{configurable:!0,writable:!0,enumerable:!0,value:o})}})}}}var Fe=j("ZodType",(t,e)=>(ke.init(t,e),Object.assign(t["~standard"],{jsonSchema:{input:_s(t,"input"),output:_s(t,"output")}}),t.toJSONSchema=nj(t,{}),t.def=e,t.type=e.type,Object.defineProperty(t,"_def",{value:e}),t.parse=(i,n)=>xj(t,i,n,{callee:t.parse}),t.safeParse=(i,n)=>Mj(t,i,n),t.parseAsync=async(i,n)=>Tj(t,i,n,{callee:t.parseAsync}),t.safeParseAsync=async(i,n)=>Ej(t,i,n),t.spa=t.safeParseAsync,t.encode=(i,n)=>kj(t,i,n),t.decode=(i,n)=>qj(t,i,n),t.encodeAsync=async(i,n)=>_j(t,i,n),t.decodeAsync=async(i,n)=>Hj(t,i,n),t.safeEncode=(i,n)=>Rj(t,i,n),t.safeDecode=(i,n)=>Ij(t,i,n),t.safeEncodeAsync=async(i,n)=>zj(t,i,n),t.safeDecodeAsync=async(i,n)=>Dj(t,i,n),Ds(t,"ZodType",{check(...i){let n=this.def;return this.clone(he.mergeDefs(n,{checks:[...n.checks??[],...i.map(a=>typeof a=="function"?{_zod:{check:a,def:{check:"custom"},onattach:[]}}:a)]}),{parent:!0})},with(...i){return this.check(...i)},clone(i,n){return Yi(this,i,n)},brand(){return this},register(i,n){return i.add(this,n),this},refine(i,n){return this.check(BG(i,n))},superRefine(i,n){return this.check(FG(i,n))},overwrite(i){return this.check(yt(i))},optional(){return Be(this)},exactOptional(){return _G(this)},nullable(){return Lj(this)},nullish(){return Be(Lj(this))},nonoptional(i){return GG(this,i)},array(){return ge(this)},or(i){return $e([this,i])},and(i){return ou(this,i)},transform(i){return Wj(this,Kj(i))},default(i){return IG(this,i)},prefault(i){return DG(this,i)},catch(i){return NG(this,i)},pipe(i){return Wj(this,i)},readonly(){return WG(this)},describe(i){let n=this.clone();return ma.add(n,{description:i}),n},meta(...i){if(i.length===0)return ma.get(this);let n=this.clone();return ma.add(n,i[0]),n},isOptional(){return this.safeParse(void 0).success},isNullable(){return this.safeParse(null).success},apply(i){return i(this)}}),Object.defineProperty(t,"description",{get(){return ma.get(t)?.description},configurable:!0}),t)),Bj=j("_ZodString",(t,e)=>{Es.init(t,e),Fe.init(t,e),t._zod.processJSONSchema=(n,a,r)=>pg(t,n,a,r);let i=t._zod.bag;t.format=i.format??null,t.minLength=i.minimum??null,t.maxLength=i.maximum??null,Ds(t,"_ZodString",{regex(...n){return this.check(Qh(...n))},includes(...n){return this.check(eg(...n))},startsWith(...n){return this.check(ig(...n))},endsWith(...n){return this.check(ng(...n))},min(...n){return this.check(hr(...n))},max(...n){return this.check(eu(...n))},length(...n){return this.check(iu(...n))},nonempty(...n){return this.check(hr(1,...n))},lowercase(n){return this.check(Yh(n))},uppercase(n){return this.check(Xh(n))},trim(){return this.check(ag())},normalize(...n){return this.check(tg(...n))},toLowerCase(){return this.check(rg())},toUpperCase(){return this.check(sg())},slugify(){return this.check(og())}})}),tG=j("ZodString",(t,e)=>{Es.init(t,e),Bj.init(t,e),t.email=i=>t.check(jh(aG,i)),t.url=i=>t.check(Mh(rG,i)),t.jwt=i=>t.check(Wh(AG,i)),t.emoji=i=>t.check(Eh(sG,i)),t.guid=i=>t.check(Kl($j,i)),t.uuid=i=>t.check(Sh(su,i)),t.uuidv4=i=>t.check(Oh(su,i)),t.uuidv6=i=>t.check(xh(su,i)),t.uuidv7=i=>t.check(Th(su,i)),t.nanoid=i=>t.check(kh(oG,i)),t.guid=i=>t.check(Kl($j,i)),t.cuid=i=>t.check(qh(lG,i)),t.cuid2=i=>t.check(_h(uG,i)),t.ulid=i=>t.check(Hh(cG,i)),t.base64=i=>t.check(Nh(wG,i)),t.base64url=i=>t.check(Uh(vG,i)),t.xid=i=>t.check(Rh(pG,i)),t.ksuid=i=>t.check(Ih(dG,i)),t.ipv4=i=>t.check(zh(hG,i)),t.ipv6=i=>t.check(Dh(gG,i)),t.cidrv4=i=>t.check(Gh(mG,i)),t.cidrv6=i=>t.check($h(fG,i)),t.e164=i=>t.check(Lh(CG,i)),t.datetime=i=>t.check(Rg(i)),t.date=i=>t.check(Ig(i)),t.time=i=>t.check(zg(i)),t.duration=i=>t.check(Dg(i))});function P(t){return Ph(tG,t)}var Le=j("ZodStringFormat",(t,e)=>{Ie.init(t,e),Bj.init(t,e)}),aG=j("ZodEmail",(t,e)=>{Dd.init(t,e),Le.init(t,e)});var $j=j("ZodGUID",(t,e)=>{Id.init(t,e),Le.init(t,e)});var su=j("ZodUUID",(t,e)=>{zd.init(t,e),Le.init(t,e)});var rG=j("ZodURL",(t,e)=>{Gd.init(t,e),Le.init(t,e)});var sG=j("ZodEmoji",(t,e)=>{$d.init(t,e),Le.init(t,e)});var oG=j("ZodNanoID",(t,e)=>{Nd.init(t,e),Le.init(t,e)});var lG=j("ZodCUID",(t,e)=>{Ud.init(t,e),Le.init(t,e)});var uG=j("ZodCUID2",(t,e)=>{Ld.init(t,e),Le.init(t,e)});var cG=j("ZodULID",(t,e)=>{Wd.init(t,e),Le.init(t,e)});var pG=j("ZodXID",(t,e)=>{Bd.init(t,e),Le.init(t,e)});var dG=j("ZodKSUID",(t,e)=>{Fd.init(t,e),Le.init(t,e)});var hG=j("ZodIPv4",(t,e)=>{Vd.init(t,e),Le.init(t,e)});var gG=j("ZodIPv6",(t,e)=>{Jd.init(t,e),Le.init(t,e)});var mG=j("ZodCIDRv4",(t,e)=>{Zd.init(t,e),Le.init(t,e)});var fG=j("ZodCIDRv6",(t,e)=>{Kd.init(t,e),Le.init(t,e)});var wG=j("ZodBase64",(t,e)=>{Qd.init(t,e),Le.init(t,e)});var vG=j("ZodBase64URL",(t,e)=>{Yd.init(t,e),Le.init(t,e)});var CG=j("ZodE164",(t,e)=>{Xd.init(t,e),Le.init(t,e)});var AG=j("ZodJWT",(t,e)=>{eh.init(t,e),Le.init(t,e)});var Fj=j("ZodNumber",(t,e)=>{Fl.init(t,e),Fe.init(t,e),t._zod.processJSONSchema=(n,a,r)=>dg(t,n,a,r),Ds(t,"ZodNumber",{gt(n,a){return this.check(Yl(n,a))},gte(n,a){return this.check(qs(n,a))},min(n,a){return this.check(qs(n,a))},lt(n,a){return this.check(Ql(n,a))},lte(n,a){return this.check(ks(n,a))},max(n,a){return this.check(ks(n,a))},int(n){return this.check(Nj(n))},safe(n){return this.check(Nj(n))},positive(n){return this.check(Yl(0,n))},nonnegative(n){return this.check(qs(0,n))},negative(n){return this.check(Ql(0,n))},nonpositive(n){return this.check(ks(0,n))},multipleOf(n,a){return this.check(Xl(n,a))},step(n,a){return this.check(Xl(n,a))},finite(){return this}});let i=t._zod.bag;t.minValue=Math.max(i.minimum??Number.NEGATIVE_INFINITY,i.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,t.maxValue=Math.min(i.maximum??Number.POSITIVE_INFINITY,i.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,t.isInt=(i.format??"").includes("int")||Number.isSafeInteger(i.multipleOf??.5),t.isFinite=!0,t.format=i.format??null});function Te(t){return Bh(Fj,t)}var bG=j("ZodNumberFormat",(t,e)=>{ih.init(t,e),Fj.init(t,e)});function Nj(t){return Fh(bG,t)}var yG=j("ZodBoolean",(t,e)=>{nh.init(t,e),Fe.init(t,e),t._zod.processJSONSchema=(i,n,a)=>hg(t,i,n,a)});function hi(t){return Vh(yG,t)}var PG=j("ZodNull",(t,e)=>{th.init(t,e),Fe.init(t,e),t._zod.processJSONSchema=(i,n,a)=>gg(t,i,n,a)});function Vj(t){return Jh(PG,t)}var jG=j("ZodUnknown",(t,e)=>{ah.init(t,e),Fe.init(t,e),t._zod.processJSONSchema=(i,n,a)=>fg(t,i,n,a)});function We(){return Zh(jG)}var SG=j("ZodNever",(t,e)=>{rh.init(t,e),Fe.init(t,e),t._zod.processJSONSchema=(i,n,a)=>mg(t,i,n,a)});function OG(t){return Kh(SG,t)}var xG=j("ZodArray",(t,e)=>{sh.init(t,e),Fe.init(t,e),t._zod.processJSONSchema=(i,n,a)=>bg(t,i,n,a),t.element=e.element,Ds(t,"ZodArray",{min(i,n){return this.check(hr(i,n))},nonempty(i){return this.check(hr(1,i))},max(i,n){return this.check(eu(i,n))},length(i,n){return this.check(iu(i,n))},unwrap(){return this.element}})});function ge(t,e){return ij(xG,t,e)}var Jj=j("ZodObject",(t,e)=>{VP.init(t,e),Fe.init(t,e),t._zod.processJSONSchema=(i,n,a)=>yg(t,i,n,a),he.defineLazy(t,"shape",()=>e.shape),Ds(t,"ZodObject",{keyof(){return Gi(Object.keys(this._zod.def.shape))},catchall(i){return this.clone({...this._zod.def,catchall:i})},passthrough(){return this.clone({...this._zod.def,catchall:We()})},loose(){return this.clone({...this._zod.def,catchall:We()})},strict(){return this.clone({...this._zod.def,catchall:OG()})},strip(){return this.clone({...this._zod.def,catchall:void 0})},extend(i){return he.extend(this,i)},safeExtend(i){return he.safeExtend(this,i)},merge(i){return he.merge(this,i)},pick(i){return he.pick(this,i)},omit(i){return he.omit(this,i)},partial(...i){return he.partial(lu,this,i[0])},required(...i){return he.required(Qj,this,i[0])}})});function D(t,e){let i={type:"object",shape:t??{},...he.normalizeParams(e)};return new Jj(i)}function qi(t,e){return new Jj({type:"object",shape:t,catchall:We(),...he.normalizeParams(e)})}var Zj=j("ZodUnion",(t,e)=>{Vl.init(t,e),Fe.init(t,e),t._zod.processJSONSchema=(i,n,a)=>Pg(t,i,n,a),t.options=e.options});function $e(t,e){return new Zj({type:"union",options:t,...he.normalizeParams(e)})}var TG=j("ZodDiscriminatedUnion",(t,e)=>{Zj.init(t,e),lh.init(t,e)});function $g(t,e,i){return new TG({type:"union",options:e,discriminator:t,...he.normalizeParams(i)})}var MG=j("ZodIntersection",(t,e)=>{uh.init(t,e),Fe.init(t,e),t._zod.processJSONSchema=(i,n,a)=>jg(t,i,n,a)});function ou(t,e){return new MG({type:"intersection",left:t,right:e})}var Uj=j("ZodRecord",(t,e)=>{ch.init(t,e),Fe.init(t,e),t._zod.processJSONSchema=(i,n,a)=>Sg(t,i,n,a),t.keyType=e.keyType,t.valueType=e.valueType});function ze(t,e,i){return!e||!e._zod?new Uj({type:"record",keyType:P(),valueType:t,...he.normalizeParams(e)}):new Uj({type:"record",keyType:t,valueType:e,...he.normalizeParams(i)})}var Gg=j("ZodEnum",(t,e)=>{ph.init(t,e),Fe.init(t,e),t._zod.processJSONSchema=(n,a,r)=>wg(t,n,a,r),t.enum=e.entries,t.options=Object.values(e.entries);let i=new Set(Object.keys(e.entries));t.extract=(n,a)=>{let r={};for(let s of n)if(i.has(s))r[s]=e.entries[s];else throw new Error(`Key ${s} not found in enum`);return new Gg({...e,checks:[],...he.normalizeParams(a),entries:r})},t.exclude=(n,a)=>{let r={...e.entries};for(let s of n)if(i.has(s))delete r[s];else throw new Error(`Key ${s} not found in enum`);return new Gg({...e,checks:[],...he.normalizeParams(a),entries:r})}});function Gi(t,e){let i=Array.isArray(t)?Object.fromEntries(t.map(n=>[n,n])):t;return new Gg({type:"enum",entries:i,...he.normalizeParams(e)})}var EG=j("ZodLiteral",(t,e)=>{dh.init(t,e),Fe.init(t,e),t._zod.processJSONSchema=(i,n,a)=>vg(t,i,n,a),t.values=new Set(e.values),Object.defineProperty(t,"value",{get(){if(e.values.length>1)throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");return e.values[0]}})});function W(t,e){return new EG({type:"literal",values:Array.isArray(t)?t:[t],...he.normalizeParams(e)})}var kG=j("ZodTransform",(t,e)=>{hh.init(t,e),Fe.init(t,e),t._zod.processJSONSchema=(i,n,a)=>Ag(t,i,n,a),t._zod.parse=(i,n)=>{if(n.direction==="backward")throw new lr(t.constructor.name);i.addIssue=r=>{if(typeof r=="string")i.issues.push(he.issue(r,i.value,e));else{let s=r;s.fatal&&(s.continue=!1),s.code??(s.code="custom"),s.input??(s.input=i.value),s.inst??(s.inst=t),i.issues.push(he.issue(s))}};let a=e.transform(i.value,i);return a instanceof Promise?a.then(r=>(i.value=r,i.fallback=!0,i)):(i.value=a,i.fallback=!0,i)}});function Kj(t){return new kG({type:"transform",transform:t})}var lu=j("ZodOptional",(t,e)=>{Jl.init(t,e),Fe.init(t,e),t._zod.processJSONSchema=(i,n,a)=>nu(t,i,n,a),t.unwrap=()=>t._zod.def.innerType});function Be(t){return new lu({type:"optional",innerType:t})}var qG=j("ZodExactOptional",(t,e)=>{gh.init(t,e),Fe.init(t,e),t._zod.processJSONSchema=(i,n,a)=>nu(t,i,n,a),t.unwrap=()=>t._zod.def.innerType});function _G(t){return new qG({type:"optional",innerType:t})}var HG=j("ZodNullable",(t,e)=>{mh.init(t,e),Fe.init(t,e),t._zod.processJSONSchema=(i,n,a)=>Og(t,i,n,a),t.unwrap=()=>t._zod.def.innerType});function Lj(t){return new HG({type:"nullable",innerType:t})}var RG=j("ZodDefault",(t,e)=>{fh.init(t,e),Fe.init(t,e),t._zod.processJSONSchema=(i,n,a)=>Tg(t,i,n,a),t.unwrap=()=>t._zod.def.innerType,t.removeDefault=t.unwrap});function IG(t,e){return new RG({type:"default",innerType:t,get defaultValue(){return typeof e=="function"?e():he.shallowClone(e)}})}var zG=j("ZodPrefault",(t,e)=>{wh.init(t,e),Fe.init(t,e),t._zod.processJSONSchema=(i,n,a)=>Mg(t,i,n,a),t.unwrap=()=>t._zod.def.innerType});function DG(t,e){return new zG({type:"prefault",innerType:t,get defaultValue(){return typeof e=="function"?e():he.shallowClone(e)}})}var Qj=j("ZodNonOptional",(t,e)=>{vh.init(t,e),Fe.init(t,e),t._zod.processJSONSchema=(i,n,a)=>xg(t,i,n,a),t.unwrap=()=>t._zod.def.innerType});function GG(t,e){return new Qj({type:"nonoptional",innerType:t,...he.normalizeParams(e)})}var $G=j("ZodCatch",(t,e)=>{Ch.init(t,e),Fe.init(t,e),t._zod.processJSONSchema=(i,n,a)=>Eg(t,i,n,a),t.unwrap=()=>t._zod.def.innerType,t.removeCatch=t.unwrap});function NG(t,e){return new $G({type:"catch",innerType:t,catchValue:typeof e=="function"?e:()=>e})}var Yj=j("ZodPipe",(t,e)=>{Zl.init(t,e),Fe.init(t,e),t._zod.processJSONSchema=(i,n,a)=>kg(t,i,n,a),t.in=e.in,t.out=e.out});function Wj(t,e){return new Yj({type:"pipe",in:t,out:e})}var UG=j("ZodPreprocess",(t,e)=>{Yj.init(t,e),JP.init(t,e)}),LG=j("ZodReadonly",(t,e)=>{Ah.init(t,e),Fe.init(t,e),t._zod.processJSONSchema=(i,n,a)=>qg(t,i,n,a),t.unwrap=()=>t._zod.def.innerType});function WG(t){return new LG({type:"readonly",innerType:t})}var Xj=j("ZodCustom",(t,e)=>{bh.init(t,e),Fe.init(t,e),t._zod.processJSONSchema=(i,n,a)=>Cg(t,i,n,a)});function eS(t,e){return lg(Xj,t??(()=>!0),e)}function BG(t,e={}){return ug(Xj,t,e)}function FG(t,e){return cg(t,e)}function Ng(t,e){return new UG({type:"pipe",in:Kj(t),out:e})}Qi(ZP());var Lg="2025-11-25";var iS=[Lg,"2025-06-18","2025-03-26","2024-11-05","2024-10-07"],St="io.modelcontextprotocol/related-task",cu="2.0",si=eS(t=>t!==null&&(typeof t=="object"||typeof t=="function")),nS=$e([P(),Te().int()]),tS=P(),Xee=qi({ttl:Te().optional(),pollInterval:Te().optional()}),VG=D({ttl:Te().optional()}),JG=D({taskId:P()}),Wg=qi({progressToken:nS.optional(),[St]:JG.optional()}),en=D({_meta:Wg.optional()}),Gs=en.extend({task:VG.optional()}),aS=t=>Gs.safeParse(t).success,Ai=D({method:P(),params:en.loose().optional()}),ln=D({_meta:Wg.optional()}),un=D({method:P(),params:ln.loose().optional()}),bi=qi({_meta:Wg.optional()}),pu=$e([P(),Te().int()]),rS=D({jsonrpc:W(cu),id:pu,...Ai.shape}).strict(),Bg=t=>rS.safeParse(t).success,sS=D({jsonrpc:W(cu),...un.shape}).strict(),oS=t=>sS.safeParse(t).success,Fg=D({jsonrpc:W(cu),id:pu,result:bi}).strict(),$s=t=>Fg.safeParse(t).success;var V;(function(t){t[t.ConnectionClosed=-32e3]="ConnectionClosed",t[t.RequestTimeout=-32001]="RequestTimeout",t[t.ParseError=-32700]="ParseError",t[t.InvalidRequest=-32600]="InvalidRequest",t[t.MethodNotFound=-32601]="MethodNotFound",t[t.InvalidParams=-32602]="InvalidParams",t[t.InternalError=-32603]="InternalError",t[t.UrlElicitationRequired=-32042]="UrlElicitationRequired"})(V||(V={}));var Vg=D({jsonrpc:W(cu),id:pu.optional(),error:D({code:Te().int(),message:P(),data:We().optional()})}).strict();var lS=t=>Vg.safeParse(t).success;var uS=$e([rS,sS,Fg,Vg]),eie=$e([Fg,Vg]),du=bi.strict(),ZG=ln.extend({requestId:pu.optional(),reason:P().optional()}),hu=un.extend({method:W("notifications/cancelled"),params:ZG}),KG=D({src:P(),mimeType:P().optional(),sizes:ge(P()).optional(),theme:Gi(["light","dark"]).optional()}),Ns=D({icons:ge(KG).optional()}),mr=D({name:P(),title:P().optional()}),cS=mr.extend({...mr.shape,...Ns.shape,version:P(),websiteUrl:P().optional(),description:P().optional()}),QG=ou(D({applyDefaults:hi().optional()}),ze(P(),We())),YG=Ng(t=>t&&typeof t=="object"&&!Array.isArray(t)&&Object.keys(t).length===0?{form:{}}:t,ou(D({form:QG.optional(),url:si.optional()}),ze(P(),We()).optional())),XG=qi({list:si.optional(),cancel:si.optional(),requests:qi({sampling:qi({createMessage:si.optional()}).optional(),elicitation:qi({create:si.optional()}).optional()}).optional()}),e1=qi({list:si.optional(),cancel:si.optional(),requests:qi({tools:qi({call:si.optional()}).optional()}).optional()}),i1=D({experimental:ze(P(),si).optional(),sampling:D({context:si.optional(),tools:si.optional()}).optional(),elicitation:YG.optional(),roots:D({listChanged:hi().optional()}).optional(),tasks:XG.optional(),extensions:ze(P(),si).optional()}),n1=en.extend({protocolVersion:P(),capabilities:i1,clientInfo:cS}),Jg=Ai.extend({method:W("initialize"),params:n1});var t1=D({experimental:ze(P(),si).optional(),logging:si.optional(),completions:si.optional(),prompts:D({listChanged:hi().optional()}).optional(),resources:D({subscribe:hi().optional(),listChanged:hi().optional()}).optional(),tools:D({listChanged:hi().optional()}).optional(),tasks:e1.optional(),extensions:ze(P(),si).optional()}),a1=bi.extend({protocolVersion:P(),capabilities:t1,serverInfo:cS,instructions:P().optional()}),Zg=un.extend({method:W("notifications/initialized"),params:ln.optional()});var gu=Ai.extend({method:W("ping"),params:en.optional()}),r1=D({progress:Te(),total:Be(Te()),message:Be(P())}),s1=D({...ln.shape,...r1.shape,progressToken:nS}),mu=un.extend({method:W("notifications/progress"),params:s1}),o1=en.extend({cursor:tS.optional()}),Us=Ai.extend({params:o1.optional()}),Ls=bi.extend({nextCursor:tS.optional()}),l1=Gi(["working","input_required","completed","failed","cancelled"]),Ws=D({taskId:P(),status:l1,ttl:$e([Te(),Vj()]),createdAt:P(),lastUpdatedAt:P(),pollInterval:Be(Te()),statusMessage:Be(P())}),fr=bi.extend({task:Ws}),u1=ln.merge(Ws),Bs=un.extend({method:W("notifications/tasks/status"),params:u1}),fu=Ai.extend({method:W("tasks/get"),params:en.extend({taskId:P()})}),wu=bi.merge(Ws),vu=Ai.extend({method:W("tasks/result"),params:en.extend({taskId:P()})}),iie=bi.loose(),Cu=Us.extend({method:W("tasks/list")}),Au=Ls.extend({tasks:ge(Ws)}),bu=Ai.extend({method:W("tasks/cancel"),params:en.extend({taskId:P()})}),pS=bi.merge(Ws),dS=D({uri:P(),mimeType:Be(P()),_meta:ze(P(),We()).optional()}),hS=dS.extend({text:P()}),Kg=P().refine(t=>{try{return atob(t),!0}catch{return!1}},{message:"Invalid Base64 string"}),gS=dS.extend({blob:Kg}),Fs=Gi(["user","assistant"]),wr=D({audience:ge(Fs).optional(),priority:Te().min(0).max(1).optional(),lastModified:zs.datetime({offset:!0}).optional()}),mS=D({...mr.shape,...Ns.shape,uri:P(),description:Be(P()),mimeType:Be(P()),size:Be(Te()),annotations:wr.optional(),_meta:Be(qi({}))}),c1=D({...mr.shape,...Ns.shape,uriTemplate:P(),description:Be(P()),mimeType:Be(P()),annotations:wr.optional(),_meta:Be(qi({}))}),yu=Us.extend({method:W("resources/list")}),p1=Ls.extend({resources:ge(mS)}),Pu=Us.extend({method:W("resources/templates/list")}),d1=Ls.extend({resourceTemplates:ge(c1)}),Qg=en.extend({uri:P()}),h1=Qg,ju=Ai.extend({method:W("resources/read"),params:h1}),g1=bi.extend({contents:ge($e([hS,gS]))}),m1=un.extend({method:W("notifications/resources/list_changed"),params:ln.optional()}),f1=Qg,w1=Ai.extend({method:W("resources/subscribe"),params:f1}),v1=Qg,C1=Ai.extend({method:W("resources/unsubscribe"),params:v1}),A1=ln.extend({uri:P()}),b1=un.extend({method:W("notifications/resources/updated"),params:A1}),y1=D({name:P(),description:Be(P()),required:Be(hi())}),P1=D({...mr.shape,...Ns.shape,description:Be(P()),arguments:Be(ge(y1)),_meta:Be(qi({}))}),Su=Us.extend({method:W("prompts/list")}),j1=Ls.extend({prompts:ge(P1)}),S1=en.extend({name:P(),arguments:ze(P(),P()).optional()}),Ou=Ai.extend({method:W("prompts/get"),params:S1}),Yg=D({type:W("text"),text:P(),annotations:wr.optional(),_meta:ze(P(),We()).optional()}),Xg=D({type:W("image"),data:Kg,mimeType:P(),annotations:wr.optional(),_meta:ze(P(),We()).optional()}),em=D({type:W("audio"),data:Kg,mimeType:P(),annotations:wr.optional(),_meta:ze(P(),We()).optional()}),O1=D({type:W("tool_use"),name:P(),id:P(),input:ze(P(),We()),_meta:ze(P(),We()).optional()}),x1=D({type:W("resource"),resource:$e([hS,gS]),annotations:wr.optional(),_meta:ze(P(),We()).optional()}),T1=mS.extend({type:W("resource_link")}),im=$e([Yg,Xg,em,T1,x1]),M1=D({role:Fs,content:im}),E1=bi.extend({description:P().optional(),messages:ge(M1)}),k1=un.extend({method:W("notifications/prompts/list_changed"),params:ln.optional()}),q1=D({title:P().optional(),readOnlyHint:hi().optional(),destructiveHint:hi().optional(),idempotentHint:hi().optional(),openWorldHint:hi().optional()}),_1=D({taskSupport:Gi(["required","optional","forbidden"]).optional()}),fS=D({...mr.shape,...Ns.shape,description:P().optional(),inputSchema:D({type:W("object"),properties:ze(P(),si).optional(),required:ge(P()).optional()}).catchall(We()),outputSchema:D({type:W("object"),properties:ze(P(),si).optional(),required:ge(P()).optional()}).catchall(We()).optional(),annotations:q1.optional(),execution:_1.optional(),_meta:ze(P(),We()).optional()}),xu=Us.extend({method:W("tools/list")}),H1=Ls.extend({tools:ge(fS)}),Tu=bi.extend({content:ge(im).default([]),structuredContent:ze(P(),We()).optional(),isError:hi().optional()}),nie=Tu.or(bi.extend({toolResult:We()})),R1=Gs.extend({name:P(),arguments:ze(P(),We()).optional()}),vr=Ai.extend({method:W("tools/call"),params:R1}),I1=un.extend({method:W("notifications/tools/list_changed"),params:ln.optional()}),tie=D({autoRefresh:hi().default(!0),debounceMs:Te().int().nonnegative().default(300)}),Vs=Gi(["debug","info","notice","warning","error","critical","alert","emergency"]),z1=en.extend({level:Vs}),nm=Ai.extend({method:W("logging/setLevel"),params:z1}),D1=ln.extend({level:Vs,logger:P().optional(),data:We()}),G1=un.extend({method:W("notifications/message"),params:D1}),$1=D({name:P().optional()}),N1=D({hints:ge($1).optional(),costPriority:Te().min(0).max(1).optional(),speedPriority:Te().min(0).max(1).optional(),intelligencePriority:Te().min(0).max(1).optional()}),U1=D({mode:Gi(["auto","required","none"]).optional()}),L1=D({type:W("tool_result"),toolUseId:P().describe("The unique identifier for the corresponding tool call."),content:ge(im).default([]),structuredContent:D({}).loose().optional(),isError:hi().optional(),_meta:ze(P(),We()).optional()}),W1=$g("type",[Yg,Xg,em]),uu=$g("type",[Yg,Xg,em,O1,L1]),B1=D({role:Fs,content:$e([uu,ge(uu)]),_meta:ze(P(),We()).optional()}),F1=Gs.extend({messages:ge(B1),modelPreferences:N1.optional(),systemPrompt:P().optional(),includeContext:Gi(["none","thisServer","allServers"]).optional(),temperature:Te().optional(),maxTokens:Te().int(),stopSequences:ge(P()).optional(),metadata:si.optional(),tools:ge(fS).optional(),toolChoice:U1.optional()}),V1=Ai.extend({method:W("sampling/createMessage"),params:F1}),Js=bi.extend({model:P(),stopReason:Be(Gi(["endTurn","stopSequence","maxTokens"]).or(P())),role:Fs,content:W1}),tm=bi.extend({model:P(),stopReason:Be(Gi(["endTurn","stopSequence","maxTokens","toolUse"]).or(P())),role:Fs,content:$e([uu,ge(uu)])}),J1=D({type:W("boolean"),title:P().optional(),description:P().optional(),default:hi().optional()}),Z1=D({type:W("string"),title:P().optional(),description:P().optional(),minLength:Te().optional(),maxLength:Te().optional(),format:Gi(["email","uri","date","date-time"]).optional(),default:P().optional()}),K1=D({type:Gi(["number","integer"]),title:P().optional(),description:P().optional(),minimum:Te().optional(),maximum:Te().optional(),default:Te().optional()}),Q1=D({type:W("string"),title:P().optional(),description:P().optional(),enum:ge(P()),default:P().optional()}),Y1=D({type:W("string"),title:P().optional(),description:P().optional(),oneOf:ge(D({const:P(),title:P()})),default:P().optional()}),X1=D({type:W("string"),title:P().optional(),description:P().optional(),enum:ge(P()),enumNames:ge(P()).optional(),default:P().optional()}),e$=$e([Q1,Y1]),i$=D({type:W("array"),title:P().optional(),description:P().optional(),minItems:Te().optional(),maxItems:Te().optional(),items:D({type:W("string"),enum:ge(P())}),default:ge(P()).optional()}),n$=D({type:W("array"),title:P().optional(),description:P().optional(),minItems:Te().optional(),maxItems:Te().optional(),items:D({anyOf:ge(D({const:P(),title:P()}))}),default:ge(P()).optional()}),t$=$e([i$,n$]),a$=$e([X1,e$,t$]),r$=$e([a$,J1,Z1,K1]),s$=Gs.extend({mode:W("form").optional(),message:P(),requestedSchema:D({type:W("object"),properties:ze(P(),r$),required:ge(P()).optional()})}),o$=Gs.extend({mode:W("url"),message:P(),elicitationId:P(),url:P().url()}),l$=$e([s$,o$]),u$=Ai.extend({method:W("elicitation/create"),params:l$}),c$=ln.extend({elicitationId:P()}),p$=un.extend({method:W("notifications/elicitation/complete"),params:c$}),Cr=bi.extend({action:Gi(["accept","decline","cancel"]),content:Ng(t=>t===null?void 0:t,ze(P(),$e([P(),Te(),hi(),ge(P())])).optional())}),d$=D({type:W("ref/resource"),uri:P()});var h$=D({type:W("ref/prompt"),name:P()}),g$=en.extend({ref:$e([h$,d$]),argument:D({name:P(),value:P()}),context:D({arguments:ze(P(),P()).optional()}).optional()}),Mu=Ai.extend({method:W("completion/complete"),params:g$});function wS(t){if(t.params.ref.type!=="ref/prompt")throw new TypeError(`Expected CompleteRequestPrompt, but got ${t.params.ref.type}`)}function vS(t){if(t.params.ref.type!=="ref/resource")throw new TypeError(`Expected CompleteRequestResourceTemplate, but got ${t.params.ref.type}`)}var m$=bi.extend({completion:qi({values:ge(P()).max(100),total:Be(Te().int()),hasMore:Be(hi())})}),f$=D({uri:P().startsWith("file://"),name:P().optional(),_meta:ze(P(),We()).optional()}),w$=Ai.extend({method:W("roots/list"),params:en.optional()}),am=bi.extend({roots:ge(f$)}),v$=un.extend({method:W("notifications/roots/list_changed"),params:ln.optional()}),aie=$e([gu,Jg,Mu,nm,Ou,Su,yu,Pu,ju,w1,C1,vr,xu,fu,vu,Cu,bu]),rie=$e([hu,mu,Zg,v$,Bs]),sie=$e([du,Js,tm,Cr,am,wu,Au,fr]),oie=$e([gu,V1,u$,w$,fu,vu,Cu,bu]),lie=$e([hu,mu,G1,b1,m1,I1,k1,Bs,p$]),uie=$e([du,a1,m$,E1,j1,p1,d1,g1,Tu,H1,wu,Au,fr]),L=class t extends Error{constructor(e,i,n){super(`MCP error ${e}: ${i}`),this.code=e,this.data=n,this.name="McpError"}static fromError(e,i,n){if(e===V.UrlElicitationRequired&&n){let a=n;if(a.elicitations)return new Ug(a.elicitations,i)}return new t(e,i,n)}},Ug=class extends L{constructor(e,i=`URL elicitation${e.length>1?"s":""} required`){super(V.UrlElicitationRequired,i,{elicitations:e})}get elicitations(){return this.data?.elicitations??[]}};function Ot(t){return t==="completed"||t==="failed"||t==="cancelled"}var AS=Symbol("Let zodToJsonSchema decide on which parser to use");var CS={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"},bS=t=>typeof t=="string"?{...CS,name:t}:{...CS,...t};var yS=t=>{let e=bS(t),i=e.name!==void 0?[...e.basePath,e.definitionPath,e.name]:e.basePath;return{...e,flags:{hasReferencedOpenAiAnyType:!1},currentPath:i,propertyPath:void 0,seen:new Map(Object.entries(e.definitions).map(([n,a])=>[a._def,{def:a._def,path:[...e.basePath,e.definitionPath,n],jsonSchema:void 0}]))}};function rm(t,e,i,n){n?.errorMessages&&i&&(t.errorMessage={...t.errorMessage,[e]:i})}function me(t,e,i,n,a){t[e]=i,rm(t,e,n,a)}var Eu=(t,e)=>{let i=0;for(;iY(t.innerType._def,e);function sm(t,e,i){let n=i??e.dateStrategy;if(Array.isArray(n))return{anyOf:n.map((a,r)=>sm(t,e,a))};switch(n){case"string":case"format:date-time":return{type:"string",format:"date-time"};case"format:date":return{type:"string",format:"date"};case"integer":return C$(t,e)}}var C$=(t,e)=>{let i={type:"integer",format:"unix-time"};if(e.target==="openApi3")return i;for(let n of t.checks)switch(n.kind){case"min":me(i,"minimum",n.value,n.message,e);break;case"max":me(i,"maximum",n.value,n.message,e);break}return i};function xS(t,e){return{...Y(t.innerType._def,e),default:t.defaultValue()}}function TS(t,e){return e.effectStrategy==="input"?Y(t.schema._def,e):Ve(e)}function MS(t){return{type:"string",enum:Array.from(t.values)}}var A$=t=>"type"in t&&t.type==="string"?!1:"allOf"in t;function ES(t,e){let i=[Y(t.left._def,{...e,currentPath:[...e.currentPath,"allOf","0"]}),Y(t.right._def,{...e,currentPath:[...e.currentPath,"allOf","1"]})].filter(r=>!!r),n=e.target==="jsonSchema2019-09"?{unevaluatedProperties:!1}:void 0,a=[];return i.forEach(r=>{if(A$(r))a.push(...r.allOf),r.unevaluatedProperties===void 0&&(n=void 0);else{let s=r;if("additionalProperties"in r&&r.additionalProperties===!1){let{additionalProperties:o,...l}=r;s=l}else n=void 0;a.push(s)}}),a.length?{allOf:a,...n}:void 0}function kS(t,e){let i=typeof t.value;return i!=="bigint"&&i!=="number"&&i!=="boolean"&&i!=="string"?{type:Array.isArray(t.value)?"array":"object"}:e.target==="openApi3"?{type:i==="bigint"?"integer":i,enum:[t.value]}:{type:i==="bigint"?"integer":i,const:t.value}}var om,An={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:()=>(om===void 0&&(om=RegExp("^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$","u")),om),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 qu(t,e){let i={type:"string"};if(t.checks)for(let n of t.checks)switch(n.kind){case"min":me(i,"minLength",typeof i.minLength=="number"?Math.max(i.minLength,n.value):n.value,n.message,e);break;case"max":me(i,"maxLength",typeof i.maxLength=="number"?Math.min(i.maxLength,n.value):n.value,n.message,e);break;case"email":switch(e.emailStrategy){case"format:email":bn(i,"email",n.message,e);break;case"format:idn-email":bn(i,"idn-email",n.message,e);break;case"pattern:zod":_i(i,An.email,n.message,e);break}break;case"url":bn(i,"uri",n.message,e);break;case"uuid":bn(i,"uuid",n.message,e);break;case"regex":_i(i,n.regex,n.message,e);break;case"cuid":_i(i,An.cuid,n.message,e);break;case"cuid2":_i(i,An.cuid2,n.message,e);break;case"startsWith":_i(i,RegExp(`^${lm(n.value,e)}`),n.message,e);break;case"endsWith":_i(i,RegExp(`${lm(n.value,e)}$`),n.message,e);break;case"datetime":bn(i,"date-time",n.message,e);break;case"date":bn(i,"date",n.message,e);break;case"time":bn(i,"time",n.message,e);break;case"duration":bn(i,"duration",n.message,e);break;case"length":me(i,"minLength",typeof i.minLength=="number"?Math.max(i.minLength,n.value):n.value,n.message,e),me(i,"maxLength",typeof i.maxLength=="number"?Math.min(i.maxLength,n.value):n.value,n.message,e);break;case"includes":{_i(i,RegExp(lm(n.value,e)),n.message,e);break}case"ip":{n.version!=="v6"&&bn(i,"ipv4",n.message,e),n.version!=="v4"&&bn(i,"ipv6",n.message,e);break}case"base64url":_i(i,An.base64url,n.message,e);break;case"jwt":_i(i,An.jwt,n.message,e);break;case"cidr":{n.version!=="v6"&&_i(i,An.ipv4Cidr,n.message,e),n.version!=="v4"&&_i(i,An.ipv6Cidr,n.message,e);break}case"emoji":_i(i,An.emoji(),n.message,e);break;case"ulid":{_i(i,An.ulid,n.message,e);break}case"base64":{switch(e.base64Strategy){case"format:binary":{bn(i,"binary",n.message,e);break}case"contentEncoding:base64":{me(i,"contentEncoding","base64",n.message,e);break}case"pattern:zod":{_i(i,An.base64,n.message,e);break}}break}case"nanoid":_i(i,An.nanoid,n.message,e);case"toLowerCase":case"toUpperCase":case"trim":break;default:}return i}function lm(t,e){return e.patternStrategy==="escape"?y$(t):t}var b$=new Set("ABCDEFGHIJKLMNOPQRSTUVXYZabcdefghijklmnopqrstuvxyz0123456789");function y$(t){let e="";for(let i=0;ia.format)?(t.anyOf||(t.anyOf=[]),t.format&&(t.anyOf.push({format:t.format,...t.errorMessage&&n.errorMessages&&{errorMessage:{format:t.errorMessage.format}}}),delete t.format,t.errorMessage&&(delete t.errorMessage.format,Object.keys(t.errorMessage).length===0&&delete t.errorMessage)),t.anyOf.push({format:e,...i&&n.errorMessages&&{errorMessage:{format:i}}})):me(t,"format",e,i,n)}function _i(t,e,i,n){t.pattern||t.allOf?.some(a=>a.pattern)?(t.allOf||(t.allOf=[]),t.pattern&&(t.allOf.push({pattern:t.pattern,...t.errorMessage&&n.errorMessages&&{errorMessage:{pattern:t.errorMessage.pattern}}}),delete t.pattern,t.errorMessage&&(delete t.errorMessage.pattern,Object.keys(t.errorMessage).length===0&&delete t.errorMessage)),t.allOf.push({pattern:qS(e,n),...i&&n.errorMessages&&{errorMessage:{pattern:i}}})):me(t,"pattern",qS(e,n),i,n)}function qS(t,e){if(!e.applyRegexFlags||!t.flags)return t.source;let i={i:t.flags.includes("i"),m:t.flags.includes("m"),s:t.flags.includes("s")},n=i.i?t.source.toLowerCase():t.source,a="",r=!1,s=!1,o=!1;for(let l=0;l({...n,[a]:Y(t.valueType._def,{...e,currentPath:[...e.currentPath,"properties",a]})??Ve(e)}),{}),additionalProperties:e.rejectedAdditionalProperties};let i={type:"object",additionalProperties:Y(t.valueType._def,{...e,currentPath:[...e.currentPath,"additionalProperties"]})??e.allowedAdditionalProperties};if(e.target==="openApi3")return i;if(t.keyType?._def.typeName===E.ZodString&&t.keyType._def.checks?.length){let{type:n,...a}=ku(t.keyType._def,e);return{...i,propertyNames:a}}else{if(t.keyType?._def.typeName===E.ZodEnum)return{...i,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:n,...a}=Eu(t.keyType._def,e);return{...i,propertyNames:a}}}return i}function kS(t,e){if(e.mapStrategy==="record")return qu(t,e);let i=Y(t.keyType._def,{...e,currentPath:[...e.currentPath,"items","items","0"]})||Ve(e),n=Y(t.valueType._def,{...e,currentPath:[...e.currentPath,"items","items","1"]})||Ve(e);return{type:"array",maxItems:125,items:{type:"array",items:[i,n],minItems:2,maxItems:2}}}function qS(t){let e=t.values,n=Object.keys(t.values).filter(r=>typeof e[e[r]]!="number").map(r=>e[r]),a=Array.from(new Set(n.map(r=>typeof r)));return{type:a.length===1?a[0]==="string"?"string":"number":["string","number"],enum:n}}function _S(t){return t.target==="openAi"?void 0:{not:Ve({...t,currentPath:[...t.currentPath,"not"]})}}function HS(t){return t.target==="openApi3"?{enum:["null"],nullable:!0}:{type:"null"}}var Vs={ZodString:"string",ZodNumber:"number",ZodBigInt:"integer",ZodBoolean:"boolean",ZodNull:"null"};function IS(t,e){if(e.target==="openApi3")return RS(t,e);let i=t.options instanceof Map?Array.from(t.options.values()):t.options;if(i.every(n=>n._def.typeName in Vs&&(!n._def.checks||!n._def.checks.length))){let n=i.reduce((a,r)=>{let s=Vs[r._def.typeName];return s&&!a.includes(s)?[...a,s]:a},[]);return{type:n.length>1?n:n[0]}}else if(i.every(n=>n._def.typeName==="ZodLiteral"&&!n.description)){let n=i.reduce((a,r)=>{let s=typeof r._def.value;switch(s){case"string":case"number":case"boolean":return[...a,s];case"bigint":return[...a,"integer"];case"object":if(r._def.value===null)return[...a,"null"];case"symbol":case"undefined":case"function":default:return a}},[]);if(n.length===i.length){let a=n.filter((r,s,o)=>o.indexOf(r)===s);return{type:a.length>1?a:a[0],enum:i.reduce((r,s)=>r.includes(s._def.value)?r:[...r,s._def.value],[])}}}else if(i.every(n=>n._def.typeName==="ZodEnum"))return{type:"string",enum:i.reduce((n,a)=>[...n,...a._def.values.filter(r=>!n.includes(r))],[])};return RS(t,e)}var RS=(t,e)=>{let i=(t.options instanceof Map?Array.from(t.options.values()):t.options).map((n,a)=>Y(n._def,{...e,currentPath:[...e.currentPath,"anyOf",`${a}`]})).filter(n=>!!n&&(!e.strictUnions||typeof n=="object"&&Object.keys(n).length>0));return i.length?{anyOf:i}:void 0};function zS(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:Vs[t.innerType._def.typeName],nullable:!0}:{type:[Vs[t.innerType._def.typeName],"null"]};if(e.target==="openApi3"){let n=Y(t.innerType._def,{...e,currentPath:[...e.currentPath]});return n&&"$ref"in n?{allOf:[n],nullable:!0}:n&&{...n,nullable:!0}}let i=Y(t.innerType._def,{...e,currentPath:[...e.currentPath,"anyOf","0"]});return i&&{anyOf:[i,{type:"null"}]}}function DS(t,e){let i={type:"number"};if(!t.checks)return i;for(let n of t.checks)switch(n.kind){case"int":i.type="integer",tm(i,"type",n.message,e);break;case"min":e.target==="jsonSchema7"?n.inclusive?me(i,"minimum",n.value,n.message,e):me(i,"exclusiveMinimum",n.value,n.message,e):(n.inclusive||(i.exclusiveMinimum=!0),me(i,"minimum",n.value,n.message,e));break;case"max":e.target==="jsonSchema7"?n.inclusive?me(i,"maximum",n.value,n.message,e):me(i,"exclusiveMaximum",n.value,n.message,e):(n.inclusive||(i.exclusiveMaximum=!0),me(i,"maximum",n.value,n.message,e));break;case"multipleOf":me(i,"multipleOf",n.value,n.message,e);break}return i}function GS(t,e){let i=e.target==="openAi",n={type:"object",properties:{}},a=[],r=t.shape();for(let o in r){let l=r[o];if(l===void 0||l._def===void 0)continue;let u=v$(l);u&&i&&(l._def.typeName==="ZodOptional"&&(l=l._def.innerType),l.isNullable()||(l=l.nullable()),u=!1);let c=Y(l._def,{...e,currentPath:[...e.currentPath,"properties",o],propertyPath:[...e.currentPath,"properties",o]});c!==void 0&&(n.properties[o]=c,u||a.push(o))}a.length&&(n.required=a);let s=w$(t,e);return s!==void 0&&(n.additionalProperties=s),n}function w$(t,e){if(t.catchall._def.typeName!=="ZodNever")return Y(t.catchall._def,{...e,currentPath:[...e.currentPath,"additionalProperties"]});switch(t.unknownKeys){case"passthrough":return e.allowedAdditionalProperties;case"strict":return e.rejectedAdditionalProperties;case"strip":return e.removeAdditionalStrategy==="strict"?e.allowedAdditionalProperties:e.rejectedAdditionalProperties}}function v$(t){try{return t.isOptional()}catch{return!0}}var $S=(t,e)=>{if(e.currentPath.toString()===e.propertyPath?.toString())return Y(t.innerType._def,e);let i=Y(t.innerType._def,{...e,currentPath:[...e.currentPath,"anyOf","1"]});return i?{anyOf:[{not:Ve(e)},i]}:Ve(e)};var NS=(t,e)=>{if(e.pipeStrategy==="input")return Y(t.in._def,e);if(e.pipeStrategy==="output")return Y(t.out._def,e);let i=Y(t.in._def,{...e,currentPath:[...e.currentPath,"allOf","0"]}),n=Y(t.out._def,{...e,currentPath:[...e.currentPath,"allOf",i?"1":"0"]});return{allOf:[i,n].filter(a=>a!==void 0)}};function US(t,e){return Y(t.type._def,e)}function LS(t,e){let n={type:"array",uniqueItems:!0,items:Y(t.valueType._def,{...e,currentPath:[...e.currentPath,"items"]})};return t.minSize&&me(n,"minItems",t.minSize.value,t.minSize.message,e),t.maxSize&&me(n,"maxItems",t.maxSize.value,t.maxSize.message,e),n}function WS(t,e){return t.rest?{type:"array",minItems:t.items.length,items:t.items.map((i,n)=>Y(i._def,{...e,currentPath:[...e.currentPath,"items",`${n}`]})).reduce((i,n)=>n===void 0?i:[...i,n],[]),additionalItems:Y(t.rest._def,{...e,currentPath:[...e.currentPath,"additionalItems"]})}:{type:"array",minItems:t.items.length,maxItems:t.items.length,items:t.items.map((i,n)=>Y(i._def,{...e,currentPath:[...e.currentPath,"items",`${n}`]})).reduce((i,n)=>n===void 0?i:[...i,n],[])}}function BS(t){return{not:Ve(t)}}function FS(t){return Ve(t)}var VS=(t,e)=>Y(t.innerType._def,e);var JS=(t,e,i)=>{switch(e){case E.ZodString:return ku(t,i);case E.ZodNumber:return DS(t,i);case E.ZodObject:return GS(t,i);case E.ZodBigInt:return yS(t,i);case E.ZodBoolean:return PS();case E.ZodDate:return am(t,i);case E.ZodUndefined:return BS(i);case E.ZodNull:return HS(i);case E.ZodArray:return bS(t,i);case E.ZodUnion:case E.ZodDiscriminatedUnion:return IS(t,i);case E.ZodIntersection:return TS(t,i);case E.ZodTuple:return WS(t,i);case E.ZodRecord:return qu(t,i);case E.ZodLiteral:return MS(t,i);case E.ZodEnum:return xS(t);case E.ZodNativeEnum:return qS(t);case E.ZodNullable:return zS(t,i);case E.ZodOptional:return $S(t,i);case E.ZodMap:return kS(t,i);case E.ZodSet:return LS(t,i);case E.ZodLazy:return()=>t.getter()._def;case E.ZodPromise:return US(t,i);case E.ZodNaN:case E.ZodNever:return _S(i);case E.ZodEffects:return OS(t,i);case E.ZodAny:return Ve(i);case E.ZodUnknown:return FS(i);case E.ZodDefault:return SS(t,i);case E.ZodBranded:return Eu(t,i);case E.ZodReadonly:return VS(t,i);case E.ZodCatch:return jS(t,i);case E.ZodPipeline:return NS(t,i);case E.ZodFunction:case E.ZodVoid:case E.ZodSymbol:return;default:return(n=>{})(e)}};function Y(t,e,i=!1){let n=e.seen.get(t);if(e.override){let o=e.override?.(t,e,n,i);if(o!==vS)return o}if(n&&!i){let o=C$(n,e);if(o!==void 0)return o}let a={def:t,path:e.currentPath,jsonSchema:void 0};e.seen.set(t,a);let r=JS(t,t.typeName,e),s=typeof r=="function"?Y(r(),e):r;if(s&&A$(t,e,s),e.postProcess){let o=e.postProcess(s,t,e);return a.jsonSchema=s,o}return a.jsonSchema=s,s}var C$=(t,e)=>{switch(e.$refStrategy){case"root":return{$ref:t.path.join("/")};case"relative":return{$ref:Mu(e.currentPath,t.path)};case"none":case"seen":return t.path.lengthe.currentPath[n]===i)?(console.warn(`Recursive reference detected at ${e.currentPath.join("/")}! Defaulting to any`),Ve(e)):e.$refStrategy==="seen"?Ve(e):void 0}},A$=(t,e,i)=>(t.description&&(i.description=t.description,e.markdownDescription&&(i.markdownDescription=t.description)),i);var om=(t,e)=>{let i=AS(e),n=typeof e=="object"&&e.definitions?Object.entries(e.definitions).reduce((l,[u,c])=>({...l,[u]:Y(c._def,{...i,currentPath:[...i.basePath,i.definitionPath,u]},!0)??Ve(i)}),{}):void 0,a=typeof e=="string"?e:e?.nameStrategy==="title"?void 0:e?.name,r=Y(t._def,a===void 0?i:{...i,currentPath:[...i.basePath,i.definitionPath,a]},!1)??Ve(i),s=typeof e=="object"&&e.name!==void 0&&e.nameStrategy==="title"?e.name:void 0;s!==void 0&&(r.title=s),i.flags.hasReferencedOpenAiAnyType&&(n||(n={}),n[i.openAiAnyTypeName]||(n[i.openAiAnyTypeName]={type:["string","number","integer","boolean","array","null"],items:{$ref:i.$refStrategy==="relative"?"1":[...i.basePath,i.definitionPath,i.openAiAnyTypeName].join("/")}}));let o=a===void 0?n?{...r,[i.definitionPath]:n}:r:{$ref:[...i.$refStrategy==="relative"?[]:i.basePath,i.definitionPath,a].join("/"),[i.definitionPath]:{...n,[a]:r}};return i.target==="jsonSchema7"?o.$schema="http://json-schema.org/draft-07/schema#":(i.target==="jsonSchema2019-09"||i.target==="openAi")&&(o.$schema="https://json-schema.org/draft/2019-09/schema#"),i.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 b$(t){return!t||t==="jsonSchema7"||t==="draft-7"?"draft-7":t==="jsonSchema2019-09"||t==="draft-2020-12"?"draft-2020-12":"draft-7"}function lm(t,e){return on(t)?kg(t,{target:b$(e?.target),io:e?.pipeStrategy??"input"}):om(t,{strictUnions:e?.strictUnions??!0,pipeStrategy:e?.pipeStrategy??"input"})}function um(t){let i=jt(t)?.method;if(!i)throw new Error("Schema is missing a method literal");let n=au(i);if(typeof n!="string")throw new Error("Schema method literal must be a string");return n}function cm(t,e){let i=Pt(t,e);if(!i.success)throw i.error;return i.data}var y$=6e4,_u=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(du,i=>{this._oncancel(i)}),this.setNotificationHandler(gu,i=>{this._onprogress(i)}),this.setRequestHandler(hu,i=>({})),this._taskStore=e?.taskStore,this._taskMessageQueue=e?.taskMessageQueue,this._taskStore&&(this.setRequestHandler(mu,async(i,n)=>{let a=await this._taskStore.getTask(i.params.taskId,n.sessionId);if(!a)throw new L(V.InvalidParams,"Failed to retrieve task: Task not found");return{...a}}),this.setRequestHandler(wu,async(i,n)=>{let a=async()=>{let r=i.params.taskId;if(this._taskMessageQueue){let o;for(;o=await this._taskMessageQueue.dequeue(r,n.sessionId);){if(o.type==="response"||o.type==="error"){let l=o.message,u=l.id,c=this._requestResolvers.get(u);if(c)if(this._requestResolvers.delete(u),o.type==="response")c(l);else{let p=l,d=new L(p.error.code,p.error.message,p.error.data);c(d)}else{let p=o.type==="response"?"Response":"Error";this._onerror(new Error(`${p} handler missing for request ${u}`))}continue}await this._transport?.send(o.message,{relatedRequestId:n.requestId})}}let s=await this._taskStore.getTask(r,n.sessionId);if(!s)throw new L(V.InvalidParams,`Task not found: ${r}`);if(!Ot(s.status))return await this._waitForTaskUpdate(r,n.signal),await a();if(Ot(s.status)){let o=await this._taskStore.getTaskResult(r,n.sessionId);return this._clearTaskQueue(r),{...o,_meta:{...o._meta,[St]:{taskId:r}}}}return await a()};return await a()}),this.setRequestHandler(vu,async(i,n)=>{try{let{tasks:a,nextCursor:r}=await this._taskStore.listTasks(i.params?.cursor,n.sessionId);return{tasks:a,nextCursor:r,_meta:{}}}catch(a){throw new L(V.InvalidParams,`Failed to list tasks: ${a instanceof Error?a.message:String(a)}`)}}),this.setRequestHandler(Au,async(i,n)=>{try{let a=await this._taskStore.getTask(i.params.taskId,n.sessionId);if(!a)throw new L(V.InvalidParams,`Task not found: ${i.params.taskId}`);if(Ot(a.status))throw new L(V.InvalidParams,`Cannot cancel task in terminal status: ${a.status}`);await this._taskStore.updateTaskStatus(i.params.taskId,"cancelled","Client cancelled task execution.",n.sessionId),this._clearTaskQueue(i.params.taskId);let r=await this._taskStore.getTask(i.params.taskId,n.sessionId);if(!r)throw new L(V.InvalidParams,`Task not found after cancellation: ${i.params.taskId}`);return{_meta:{},...r}}catch(a){throw a instanceof L?a:new L(V.InvalidRequest,`Failed to cancel task: ${a instanceof Error?a.message:String(a)}`)}}))}async _oncancel(e){if(!e.params.requestId)return;this._requestHandlerAbortControllers.get(e.params.requestId)?.abort(e.params.reason)}_setupTimeout(e,i,n,a,r=!1){this._timeoutInfo.set(e,{timeoutId:setTimeout(a,i),startTime:Date.now(),timeout:i,maxTotalTimeout:n,resetTimeoutOnProgress:r,onTimeout:a})}_resetTimeout(e){let i=this._timeoutInfo.get(e);if(!i)return!1;let n=Date.now()-i.startTime;if(i.maxTotalTimeout&&n>=i.maxTotalTimeout)throw this._timeoutInfo.delete(e),L.fromError(V.RequestTimeout,"Maximum total timeout exceeded",{maxTotalTimeout:i.maxTotalTimeout,totalElapsed:n});return clearTimeout(i.timeoutId),i.timeoutId=setTimeout(i.onTimeout,i.timeout),!0}_cleanupTimeout(e){let i=this._timeoutInfo.get(e);i&&(clearTimeout(i.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 i=this.transport?.onclose;this._transport.onclose=()=>{i?.(),this._onclose()};let n=this.transport?.onerror;this._transport.onerror=r=>{n?.(r),this._onerror(r)};let a=this._transport?.onmessage;this._transport.onmessage=(r,s)=>{a?.(r,s),Ds(r)||sS(r)?this._onresponse(r):Lg(r)?this._onrequest(r,s):rS(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 n of this._timeoutInfo.values())clearTimeout(n.timeoutId);this._timeoutInfo.clear();for(let n of this._requestHandlerAbortControllers.values())n.abort();this._requestHandlerAbortControllers.clear();let i=L.fromError(V.ConnectionClosed,"Connection closed");this._transport=void 0,this.onclose?.();for(let n of e.values())n(i)}_onerror(e){this.onerror?.(e)}_onnotification(e){let i=this._notificationHandlers.get(e.method)??this.fallbackNotificationHandler;i!==void 0&&Promise.resolve().then(()=>i(e)).catch(n=>this._onerror(new Error(`Uncaught error in notification handler: ${n}`)))}_onrequest(e,i){let n=this._requestHandlers.get(e.method)??this.fallbackRequestHandler,a=this._transport,r=e.params?._meta?.[St]?.taskId;if(n===void 0){let c={jsonrpc:"2.0",id:e.id,error:{code:V.MethodNotFound,message:"Method not found"}};r&&this._taskMessageQueue?this._enqueueTaskMessage(r,{type:"error",message:c,timestamp:Date.now()},a?.sessionId).catch(p=>this._onerror(new Error(`Failed to enqueue error response: ${p}`))):a?.send(c).catch(p=>this._onerror(new Error(`Failed to send an error response: ${p}`)));return}let s=new AbortController;this._requestHandlerAbortControllers.set(e.id,s);let o=nS(e.params)?e.params.task:void 0,l=this._taskStore?this.requestTaskStore(e,a?.sessionId):void 0,u={signal:s.signal,sessionId:a?.sessionId,_meta:e.params?._meta,sendNotification:async c=>{if(s.signal.aborted)return;let p={relatedRequestId:e.id};r&&(p.relatedTask={taskId:r}),await this.notification(c,p)},sendRequest:async(c,p,d)=>{if(s.signal.aborted)throw new L(V.ConnectionClosed,"Request was cancelled");let h={...d,relatedRequestId:e.id};r&&!h.relatedTask&&(h.relatedTask={taskId:r});let g=h.relatedTask?.taskId??r;return g&&l&&await l.updateTaskStatus(g,"input_required"),await this.request(c,p,h)},authInfo:i?.authInfo,requestId:e.id,requestInfo:i?.requestInfo,taskId:r,taskStore:l,taskRequestedTtl:o?.ttl,closeSSEStream:i?.closeSSEStream,closeStandaloneSSEStream:i?.closeStandaloneSSEStream};Promise.resolve().then(()=>{o&&this.assertTaskHandlerCapability(e.method)}).then(()=>n(e,u)).then(async c=>{if(s.signal.aborted)return;let p={result:c,jsonrpc:"2.0",id:e.id};r&&this._taskMessageQueue?await this._enqueueTaskMessage(r,{type:"response",message:p,timestamp:Date.now()},a?.sessionId):await a?.send(p)},async c=>{if(s.signal.aborted)return;let p={jsonrpc:"2.0",id:e.id,error:{code:Number.isSafeInteger(c.code)?c.code:V.InternalError,message:c.message??"Internal error",...c.data!==void 0&&{data:c.data}}};r&&this._taskMessageQueue?await this._enqueueTaskMessage(r,{type:"error",message:p,timestamp:Date.now()},a?.sessionId):await a?.send(p)}).catch(c=>this._onerror(new Error(`Failed to send response: ${c}`))).finally(()=>{this._requestHandlerAbortControllers.get(e.id)===s&&this._requestHandlerAbortControllers.delete(e.id)})}_onprogress(e){let{progressToken:i,...n}=e.params,a=Number(i),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(n)}_onresponse(e){let i=Number(e.id),n=this._requestResolvers.get(i);if(n){if(this._requestResolvers.delete(i),Ds(e))n(e);else{let s=new L(e.error.code,e.error.message,e.error.data);n(s)}return}let a=this._responseHandlers.get(i);if(a===void 0){this._onerror(new Error(`Received a response for an unknown message ID: ${JSON.stringify(e)}`));return}this._responseHandlers.delete(i),this._cleanupTimeout(i);let r=!1;if(Ds(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,i))}}if(r||this._progressHandlers.delete(i),Ds(e))a(e);else{let s=L.fromError(e.error.code,e.error.message,e.error.data);a(s)}}get transport(){return this._transport}async close(){await this._transport?.close()}async*requestStream(e,i,n){let{task:a}=n??{};if(!a){try{yield{type:"result",result:await this.request(e,i,n)}}catch(s){yield{type:"error",error:s instanceof L?s:new L(V.InternalError,String(s))}}return}let r;try{let s=await this.request(e,mr,n);if(s.task)r=s.task.taskId,yield{type:"taskCreated",task:s.task};else throw new L(V.InternalError,"Task creation did not return a task");for(;;){let o=await this.getTask({taskId:r},n);if(yield{type:"taskStatus",task:o},Ot(o.status)){o.status==="completed"?yield{type:"result",result:await this.getTaskResult({taskId:r},i,n)}:o.status==="failed"?yield{type:"error",error:new L(V.InternalError,`Task ${r} failed`)}:o.status==="cancelled"&&(yield{type:"error",error:new L(V.InternalError,`Task ${r} was cancelled`)});return}if(o.status==="input_required"){yield{type:"result",result:await this.getTaskResult({taskId:r},i,n)};return}let l=o.pollInterval??this._options?.defaultTaskPollInterval??1e3;await new Promise(u=>setTimeout(u,l)),n?.signal?.throwIfAborted()}}catch(s){yield{type:"error",error:s instanceof L?s:new L(V.InternalError,String(s))}}}request(e,i,n){let{relatedRequestId:a,resumptionToken:r,onresumptiontoken:s,task:o,relatedTask:l}=n??{};return new Promise((u,c)=>{let p=y=>{c(y)};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(y){p(y);return}n?.signal?.throwIfAborted();let d=this._requestMessageId++,h={...e,jsonrpc:"2.0",id:d};n?.onprogress&&(this._progressHandlers.set(d,n.onprogress),h.params={...e.params,_meta:{...e.params?._meta||{},progressToken:d}}),o&&(h.params={...h.params,task:o}),l&&(h.params={...h.params,_meta:{...h.params?._meta||{},[St]:l}});let g=y=>{this._responseHandlers.delete(d),this._progressHandlers.delete(d),this._cleanupTimeout(d),this._transport?.send({jsonrpc:"2.0",method:"notifications/cancelled",params:{requestId:d,reason:String(y)}},{relatedRequestId:a,resumptionToken:r,onresumptiontoken:s}).catch(b=>this._onerror(new Error(`Failed to send cancellation: ${b}`)));let A=y instanceof L?y:new L(V.RequestTimeout,String(y));c(A)};this._responseHandlers.set(d,y=>{if(!n?.signal?.aborted){if(y instanceof Error)return c(y);try{let A=Pt(i,y.result);A.success?u(A.data):c(A.error)}catch(A){c(A)}}}),n?.signal?.addEventListener("abort",()=>{g(n?.signal?.reason)});let m=n?.timeout??y$,f=()=>g(L.fromError(V.RequestTimeout,"Request timed out",{timeout:m}));this._setupTimeout(d,m,n?.maxTotalTimeout,f,n?.resetTimeoutOnProgress??!1);let v=l?.taskId;if(v){let y=A=>{let b=this._responseHandlers.get(d);b?b(A):this._onerror(new Error(`Response handler missing for side-channeled request ${d}`))};this._requestResolvers.set(d,y),this._enqueueTaskMessage(v,{type:"request",message:h,timestamp:Date.now()}).catch(A=>{this._cleanupTimeout(d),c(A)})}else this._transport.send(h,{relatedRequestId:a,resumptionToken:r,onresumptiontoken:s}).catch(y=>{this._cleanupTimeout(d),c(y)})})}async getTask(e,i){return this.request({method:"tasks/get",params:e},fu,i)}async getTaskResult(e,i,n){return this.request({method:"tasks/result",params:e},i,n)}async listTasks(e,i){return this.request({method:"tasks/list",params:e},Cu,i)}async cancelTask(e,i){return this.request({method:"tasks/cancel",params:e},uS,i)}async notification(e,i){if(!this._transport)throw new Error("Not connected");this.assertNotificationCapability(e.method);let n=i?.relatedTask?.taskId;if(n){let o={...e,jsonrpc:"2.0",params:{...e.params,_meta:{...e.params?._meta||{},[St]:i.relatedTask}}};await this._enqueueTaskMessage(n,{type:"notification",message:o,timestamp:Date.now()});return}if((this._options?.debouncedNotificationMethods??[]).includes(e.method)&&!e.params&&!i?.relatedRequestId&&!i?.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"};i?.relatedTask&&(o={...o,params:{...o.params,_meta:{...o.params?._meta||{},[St]:i.relatedTask}}}),this._transport?.send(o,i).catch(l=>this._onerror(l))});return}let s={...e,jsonrpc:"2.0"};i?.relatedTask&&(s={...s,params:{...s.params,_meta:{...s.params?._meta||{},[St]:i.relatedTask}}}),await this._transport.send(s,i)}setRequestHandler(e,i){let n=um(e);this.assertRequestHandlerCapability(n),this._requestHandlers.set(n,(a,r)=>{let s=cm(e,a);return Promise.resolve(i(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,i){let n=um(e);this._notificationHandlers.set(n,a=>{let r=cm(e,a);return Promise.resolve(i(r))})}removeNotificationHandler(e){this._notificationHandlers.delete(e)}_cleanupTaskProgressHandler(e){let i=this._taskProgressTokens.get(e);i!==void 0&&(this._progressHandlers.delete(i),this._taskProgressTokens.delete(e))}async _enqueueTaskMessage(e,i,n){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,i,n,a)}async _clearTaskQueue(e,i){if(this._taskMessageQueue){let n=await this._taskMessageQueue.dequeueAll(e,i);for(let a of n)if(a.type==="request"&&Lg(a.message)){let r=a.message.id,s=this._requestResolvers.get(r);s?(s(new L(V.InternalError,"Task cancelled or completed")),this._requestResolvers.delete(r)):this._onerror(new Error(`Resolver missing for request ${r} during task ${e} cleanup`))}}}async _waitForTaskUpdate(e,i){let n=this._options?.defaultTaskPollInterval??1e3;try{let a=await this._taskStore?.getTask(e);a?.pollInterval&&(n=a.pollInterval)}catch{}return new Promise((a,r)=>{if(i.aborted){r(new L(V.InvalidRequest,"Request cancelled"));return}let s=setTimeout(a,n);i.addEventListener("abort",()=>{clearTimeout(s),r(new L(V.InvalidRequest,"Request cancelled"))},{once:!0})})}requestTaskStore(e,i){let n=this._taskStore;if(!n)throw new Error("No task store configured");return{createTask:async a=>{if(!e)throw new Error("No request provided");return await n.createTask(a,e.id,{method:e.method,params:e.params},i)},getTask:async a=>{let r=await n.getTask(a,i);if(!r)throw new L(V.InvalidParams,"Failed to retrieve task: Task not found");return r},storeTaskResult:async(a,r,s)=>{await n.storeTaskResult(a,r,s,i);let o=await n.getTask(a,i);if(o){let l=Ls.parse({method:"notifications/tasks/status",params:o});await this.notification(l),Ot(o.status)&&this._cleanupTaskProgressHandler(a)}},getTaskResult:a=>n.getTaskResult(a,i),updateTaskStatus:async(a,r,s)=>{let o=await n.getTask(a,i);if(!o)throw new L(V.InvalidParams,`Task "${a}" not found - it may have been cleaned up`);if(Ot(o.status))throw new L(V.InvalidParams,`Cannot update task "${a}" from terminal status "${o.status}" to "${r}". Terminal states (completed, failed, cancelled) cannot transition to other states.`);await n.updateTaskStatus(a,r,s,i);let l=await n.getTask(a,i);if(l){let u=Ls.parse({method:"notifications/tasks/status",params:l});await this.notification(u),Ot(l.status)&&this._cleanupTaskProgressHandler(a)}},listTasks:a=>n.listTasks(a,i)}}};function ZS(t){return t!==null&&typeof t=="object"&&!Array.isArray(t)}function KS(t,e){let i={...t};for(let n in e){let a=n,r=e[a];if(r===void 0)continue;let s=i[a];ZS(s)&&ZS(r)?i[a]={...s,...r}:i[a]=r}return i}var NT=Ml(Qf(),1),UT=Ml($T(),1);function SF(){let t=new NT.default({strict:!1,validateFormats:!0,validateSchema:!1,allErrors:!0});return(0,UT.default)(t),t}var gc=class{constructor(e){this._ajv=e??SF()}getValidator(e){let i="$id"in e&&typeof e.$id=="string"?this._ajv.getSchema(e.$id)??this._ajv.compile(e):this._ajv.compile(e);return n=>i(n)?{valid:!0,data:n,errorMessage:void 0}:{valid:!1,data:void 0,errorMessage:this._ajv.errorsText(i.errors)}}};var mc=class{constructor(e){this._server=e}requestStream(e,i,n){return this._server.requestStream(e,i,n)}createMessageStream(e,i){let n=this._server.getClientCapabilities();if((e.tools||e.toolChoice)&&!n?.sampling?.tools)throw new Error("Client does not support sampling tools capability.");if(e.messages.length>0){let a=e.messages[e.messages.length-1],r=Array.isArray(a.content)?a.content:[a.content],s=r.some(c=>c.type==="tool_result"),o=e.messages.length>1?e.messages[e.messages.length-2]:void 0,l=o?Array.isArray(o.content)?o.content:[o.content]:[],u=l.some(c=>c.type==="tool_use");if(s){if(r.some(c=>c.type!=="tool_result"))throw new Error("The last message must contain only tool_result content if any is present");if(!u)throw new Error("tool_result blocks are not matching any tool_use from the previous message")}if(u){let c=new Set(l.filter(d=>d.type==="tool_use").map(d=>d.id)),p=new Set(r.filter(d=>d.type==="tool_result").map(d=>d.toolUseId));if(c.size!==p.size||![...c].every(d=>p.has(d)))throw new Error("ids of tool_result blocks and tool_use blocks from previous message do not match")}}return this.requestStream({method:"sampling/createMessage",params:e},Fs,i)}elicitInputStream(e,i){let n=this._server.getClientCapabilities(),a=e.mode??"form";switch(a){case"url":{if(!n?.elicitation?.url)throw new Error("Client does not support url elicitation.");break}case"form":{if(!n?.elicitation?.form)throw new Error("Client does not support form elicitation.");break}}let r=a==="form"&&e.mode===void 0?{...e,mode:"form"}:e;return this.requestStream({method:"elicitation/create",params:r},vr,i)}async getTask(e,i){return this._server.getTask({taskId:e},i)}async getTaskResult(e,i,n){return this._server.getTaskResult({taskId:e},i,n)}async listTasks(e,i){return this._server.listTasks(e?{cursor:e}:void 0,i)}async cancelTask(e,i){return this._server.cancelTask({taskId:e},i)}};function LT(t,e,i){if(!t)throw new Error(`${i} does not support task creation (required for ${e})`);switch(e){case"tools/call":if(!t.tools?.call)throw new Error(`${i} does not support task creation for tools/call (required for ${e})`);break;default:break}}function WT(t,e,i){if(!t)throw new Error(`${i} does not support task creation (required for ${e})`);switch(e){case"sampling/createMessage":if(!t.sampling?.createMessage)throw new Error(`${i} does not support task creation for sampling/createMessage (required for ${e})`);break;case"elicitation/create":if(!t.elicitation?.create)throw new Error(`${i} does not support task creation for elicitation/create (required for ${e})`);break;default:break}}var fc=class extends _u{constructor(e,i){super(i),this._serverInfo=e,this._loggingLevels=new Map,this.LOG_LEVEL_SEVERITY=new Map(Bs.options.map((n,a)=>[n,a])),this.isMessageIgnored=(n,a)=>{let r=this._loggingLevels.get(a);return r?this.LOG_LEVEL_SEVERITY.get(n)this._oninitialize(n)),this.setNotificationHandler(Vg,()=>this.oninitialized?.()),this._capabilities.logging&&this.setRequestHandler(em,async(n,a)=>{let r=a.sessionId||a.requestInfo?.headers["mcp-session-id"]||void 0,{level:s}=n.params,o=Bs.safeParse(s);return o.success&&this._loggingLevels.set(r,o.data),{}})}get experimental(){return this._experimental||(this._experimental={tasks:new mc(this)}),this._experimental}registerCapabilities(e){if(this.transport)throw new Error("Cannot register capabilities after connecting to transport");this._capabilities=KS(this._capabilities,e)}setRequestHandler(e,i){let a=jt(e)?.method;if(!a)throw new Error("Schema is missing a method literal");let r;if(on(a)){let o=a;r=o._zod?.def?.value??o.value}else{let o=a;r=o._def?.value??o.value}if(typeof r!="string")throw new Error("Schema method literal must be a string");if(r==="tools/call"){let o=async(l,u)=>{let c=Pt(wr,l);if(!c.success){let g=c.error instanceof Error?c.error.message:String(c.error);throw new L(V.InvalidParams,`Invalid tools/call request: ${g}`)}let{params:p}=c.data,d=await Promise.resolve(i(l,u));if(p.task){let g=Pt(mr,d);if(!g.success){let m=g.error instanceof Error?g.error.message:String(g.error);throw new L(V.InvalidParams,`Invalid task creation result: ${m}`)}return g.data}let h=Pt(xu,d);if(!h.success){let g=h.error instanceof Error?h.error.message:String(h.error);throw new L(V.InvalidParams,`Invalid tools/call result: ${g}`)}return h.data};return super.setRequestHandler(e,o)}return super.setRequestHandler(e,i)}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){WT(this._clientCapabilities?.tasks?.requests,e,"Client")}assertTaskHandlerCapability(e){this._capabilities&<(this._capabilities.tasks?.requests,e,"Server")}async _oninitialize(e){let i=e.params.protocolVersion;return this._clientCapabilities=e.params.capabilities,this._clientVersion=e.params.clientInfo,{protocolVersion:Xj.includes(i)?i:Ng,capabilities:this.getCapabilities(),serverInfo:this._serverInfo,...this._instructions&&{instructions:this._instructions}}}getClientCapabilities(){return this._clientCapabilities}getClientVersion(){return this._clientVersion}getCapabilities(){return this._capabilities}async ping(){return this.request({method:"ping"},pu)}async createMessage(e,i){if((e.tools||e.toolChoice)&&!this._clientCapabilities?.sampling?.tools)throw new Error("Client does not support sampling tools capability.");if(e.messages.length>0){let n=e.messages[e.messages.length-1],a=Array.isArray(n.content)?n.content:[n.content],r=a.some(u=>u.type==="tool_result"),s=e.messages.length>1?e.messages[e.messages.length-2]:void 0,o=s?Array.isArray(s.content)?s.content:[s.content]:[],l=o.some(u=>u.type==="tool_use");if(r){if(a.some(u=>u.type!=="tool_result"))throw new Error("The last message must contain only tool_result content if any is present");if(!l)throw new Error("tool_result blocks are not matching any tool_use from the previous message")}if(l){let u=new Set(o.filter(p=>p.type==="tool_use").map(p=>p.id)),c=new Set(a.filter(p=>p.type==="tool_result").map(p=>p.toolUseId));if(u.size!==c.size||![...u].every(p=>c.has(p)))throw new Error("ids of tool_result blocks and tool_use blocks from previous message do not match")}}return e.tools?this.request({method:"sampling/createMessage",params:e},im,i):this.request({method:"sampling/createMessage",params:e},Fs,i)}async elicitInput(e,i){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},vr,i)}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},vr,i);if(r.action==="accept"&&r.content&&a.requestedSchema)try{let o=this._jsonSchemaValidator.getValidator(a.requestedSchema)(r.content);if(!o.valid)throw new L(V.InvalidParams,`Elicitation response content does not match requested schema: ${o.errorMessage}`)}catch(s){throw s instanceof L?s:new L(V.InternalError,`Error validating elicitation response: ${s instanceof Error?s.message:String(s)}`)}return r}}}createElicitationCompletionNotifier(e,i){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}},i)}async listRoots(e,i){return this.request({method:"roots/list",params:e},nm,i)}async sendLoggingMessage(e,i){if(this._capabilities.logging&&!this.isMessageIgnored(e.level,i))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 FT=Symbol.for("mcp.completable");function rw(t){return!!t&&typeof t=="object"&&FT in t}function VT(t){return t[FT]?.complete}var BT;(function(t){t.Completable="McpCompletable"})(BT||(BT={}));var OF=/^[A-Za-z0-9._-]{1,128}$/;function xF(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"),!OF.test(t)){let i=t.split("").filter(n=>!/[A-Za-z0-9._-]/.test(n)).filter((n,a,r)=>r.indexOf(n)===a);return e.push(`Tool name contains invalid characters: ${i.map(n=>`"${n}"`).join(", ")}`,"Allowed characters are: A-Z, a-z, 0-9, underscore (_), dash (-), and dot (.)"),{isValid:!1,warnings:e}}return{isValid:!0,warnings:e}}function TF(t,e){if(e.length>0){console.warn(`Tool name validation warning for "${t}":`);for(let i of e)console.warn(` - ${i}`);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 sw(t){let e=xF(t);return TF(t,e.warnings),e.isValid}var wc=class{constructor(e){this._mcpServer=e}registerToolTask(e,i,n){let a={taskSupport:"required",...i.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,i.title,i.description,i.inputSchema,i.outputSchema,i.annotations,a,i._meta,n)}};var vc=class{constructor(e,i){this._registeredResources={},this._registeredResourceTemplates={},this._registeredTools={},this._registeredPrompts={},this._toolHandlersInitialized=!1,this._completionHandlerInitialized=!1,this._resourceHandlersInitialized=!1,this._promptHandlersInitialized=!1,this.server=new fc(e,i)}get experimental(){return this._experimental||(this._experimental={tasks:new wc(this)}),this._experimental}async connect(e){return await this.server.connect(e)}async close(){await this.server.close()}setToolRequestHandlers(){this._toolHandlersInitialized||(this.server.assertCanSetRequestHandler(Rt(Ou)),this.server.assertCanSetRequestHandler(Rt(wr)),this.server.registerCapabilities({tools:{listChanged:!0}}),this.server.setRequestHandler(Ou,()=>({tools:Object.entries(this._registeredTools).filter(([,e])=>e.enabled).map(([e,i])=>{let n={name:e,title:i.title,description:i.description,inputSchema:(()=>{let a=hr(i.inputSchema);return a?lm(a,{strictUnions:!0,pipeStrategy:"input"}):MF})(),annotations:i.annotations,execution:i.execution,_meta:i._meta};if(i.outputSchema){let a=hr(i.outputSchema);a&&(n.outputSchema=lm(a,{strictUnions:!0,pipeStrategy:"output"}))}return n})})),this.server.setRequestHandler(wr,async(e,i)=>{try{let n=this._registeredTools[e.params.name];if(!n)throw new L(V.InvalidParams,`Tool ${e.params.name} not found`);if(!n.enabled)throw new L(V.InvalidParams,`Tool ${e.params.name} disabled`);let a=!!e.params.task,r=n.execution?.taskSupport,s="createTask"in n.handler;if((r==="required"||r==="optional")&&!s)throw new L(V.InternalError,`Tool ${e.params.name} has taskSupport '${r}' but was not registered with registerToolTask`);if(r==="required"&&!a)throw new L(V.MethodNotFound,`Tool ${e.params.name} requires task augmentation (taskSupport: 'required')`);if(r==="optional"&&!a&&s)return await this.handleAutomaticTaskPolling(n,e,i);let o=await this.validateToolInput(n,e.params.arguments,e.params.name),l=await this.executeToolHandler(n,o,i);return a||await this.validateToolOutput(n,l,e.params.name),l}catch(n){if(n instanceof L&&n.code===V.UrlElicitationRequired)throw n;return this.createToolError(n instanceof Error?n.message:String(n))}}),this._toolHandlersInitialized=!0)}createToolError(e){return{content:[{type:"text",text:e}],isError:!0}}async validateToolInput(e,i,n){if(!e.inputSchema)return;let r=hr(e.inputSchema)??e.inputSchema,s=await nu(r,i);if(!s.success){let o="error"in s?s.error:"Unknown error",l=tu(o);throw new L(V.InvalidParams,`Input validation error: Invalid arguments for tool ${n}: ${l}`)}return s.data}async validateToolOutput(e,i,n){if(!e.outputSchema||!("content"in i)||i.isError)return;if(!i.structuredContent)throw new L(V.InvalidParams,`Output validation error: Tool ${n} has an output schema but no structured content was provided`);let a=hr(e.outputSchema),r=await nu(a,i.structuredContent);if(!r.success){let s="error"in r?r.error:"Unknown error",o=tu(s);throw new L(V.InvalidParams,`Output validation error: Invalid structured content for tool ${n}: ${o}`)}}async executeToolHandler(e,i,n){let a=e.handler;if("createTask"in a){if(!n.taskStore)throw new Error("No task store provided.");let s={...n,taskStore:n.taskStore};if(e.inputSchema){let o=a;return await Promise.resolve(o.createTask(i,s))}else{let o=a;return await Promise.resolve(o.createTask(s))}}if(e.inputSchema){let s=a;return await Promise.resolve(s(i,n))}else{let s=a;return await Promise.resolve(s(n))}}async handleAutomaticTaskPolling(e,i,n){if(!n.taskStore)throw new Error("No task store provided for task-capable tool.");let a=await this.validateToolInput(e,i.params.arguments,i.params.name),r=e.handler,s={...n,taskStore:n.taskStore},o=a?await Promise.resolve(r.createTask(a,s)):await Promise.resolve(r.createTask(s)),l=o.task.taskId,u=o.task,c=u.pollInterval??5e3;for(;u.status!=="completed"&&u.status!=="failed"&&u.status!=="cancelled";){await new Promise(d=>setTimeout(d,c));let p=await n.taskStore.getTask(l);if(!p)throw new L(V.InternalError,`Task ${l} not found during polling`);u=p}return await n.taskStore.getTaskResult(l)}setCompletionRequestHandler(){this._completionHandlerInitialized||(this.server.assertCanSetRequestHandler(Rt(Tu)),this.server.registerCapabilities({completions:{}}),this.server.setRequestHandler(Tu,async e=>{switch(e.params.ref.type){case"ref/prompt":return mS(e),this.handlePromptCompletion(e,e.params.ref);case"ref/resource":return fS(e),this.handleResourceCompletion(e,e.params.ref);default:throw new L(V.InvalidParams,`Invalid completion reference: ${e.params.ref}`)}}),this._completionHandlerInitialized=!0)}async handlePromptCompletion(e,i){let n=this._registeredPrompts[i.name];if(!n)throw new L(V.InvalidParams,`Prompt ${i.name} not found`);if(!n.enabled)throw new L(V.InvalidParams,`Prompt ${i.name} disabled`);if(!n.argsSchema)return jo;let r=jt(n.argsSchema)?.[e.params.argument.name];if(!rw(r))return jo;let s=VT(r);if(!s)return jo;let o=await s(e.params.argument.value,e.params.context);return ZT(o)}async handleResourceCompletion(e,i){let n=Object.values(this._registeredResourceTemplates).find(s=>s.resourceTemplate.uriTemplate.toString()===i.uri);if(!n){if(this._registeredResources[i.uri])return jo;throw new L(V.InvalidParams,`Resource template ${e.params.ref.uri} not found`)}let a=n.resourceTemplate.completeCallback(e.params.argument.name);if(!a)return jo;let r=await a(e.params.argument.value,e.params.context);return ZT(r)}setResourceRequestHandlers(){this._resourceHandlersInitialized||(this.server.assertCanSetRequestHandler(Rt(bu)),this.server.assertCanSetRequestHandler(Rt(yu)),this.server.assertCanSetRequestHandler(Rt(Pu)),this.server.registerCapabilities({resources:{listChanged:!0}}),this.server.setRequestHandler(bu,async(e,i)=>{let n=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(i);for(let o of s.resources)a.push({...r.metadata,...o})}return{resources:[...n,...a]}}),this.server.setRequestHandler(yu,async()=>({resourceTemplates:Object.entries(this._registeredResourceTemplates).map(([i,n])=>({name:i,uriTemplate:n.resourceTemplate.uriTemplate.toString(),...n.metadata}))})),this.server.setRequestHandler(Pu,async(e,i)=>{let n=new URL(e.params.uri),a=this._registeredResources[n.toString()];if(a){if(!a.enabled)throw new L(V.InvalidParams,`Resource ${n} disabled`);return a.readCallback(n,i)}for(let r of Object.values(this._registeredResourceTemplates)){let s=r.resourceTemplate.uriTemplate.match(n.toString());if(s)return r.readCallback(n,s,i)}throw new L(V.InvalidParams,`Resource ${n} not found`)}),this._resourceHandlersInitialized=!0)}setPromptRequestHandlers(){this._promptHandlersInitialized||(this.server.assertCanSetRequestHandler(Rt(ju)),this.server.assertCanSetRequestHandler(Rt(Su)),this.server.registerCapabilities({prompts:{listChanged:!0}}),this.server.setRequestHandler(ju,()=>({prompts:Object.entries(this._registeredPrompts).filter(([,e])=>e.enabled).map(([e,i])=>({name:e,title:i.title,description:i.description,arguments:i.argsSchema?EF(i.argsSchema):void 0}))})),this.server.setRequestHandler(Su,async(e,i)=>{let n=this._registeredPrompts[e.params.name];if(!n)throw new L(V.InvalidParams,`Prompt ${e.params.name} not found`);if(!n.enabled)throw new L(V.InvalidParams,`Prompt ${e.params.name} disabled`);if(n.argsSchema){let a=hr(n.argsSchema),r=await nu(a,e.params.arguments);if(!r.success){let l="error"in r?r.error:"Unknown error",u=tu(l);throw new L(V.InvalidParams,`Invalid arguments for prompt ${e.params.name}: ${u}`)}let s=r.data,o=n.callback;return await Promise.resolve(o(s,i))}else{let a=n.callback;return await Promise.resolve(a(i))}}),this._promptHandlersInitialized=!0)}resource(e,i,...n){let a;typeof n[0]=="object"&&(a=n.shift());let r=n[0];if(typeof i=="string"){if(this._registeredResources[i])throw new Error(`Resource ${i} is already registered`);let s=this._createRegisteredResource(e,void 0,i,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,i,a,r);return this.setResourceRequestHandlers(),this.sendResourceListChanged(),s}}registerResource(e,i,n,a){if(typeof i=="string"){if(this._registeredResources[i])throw new Error(`Resource ${i} is already registered`);let r=this._createRegisteredResource(e,n.title,i,n,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,n.title,i,n,a);return this.setResourceRequestHandlers(),this.sendResourceListChanged(),r}}_createRegisteredResource(e,i,n,a,r){let s={name:e,title:i,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!==n&&(delete this._registeredResources[n],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[n]=s,s}_createRegisteredResourceTemplate(e,i,n,a,r){let s={resourceTemplate:n,title:i,metadata:a,readCallback:r,enabled:!0,disable:()=>s.update({enabled:!1}),enable:()=>s.update({enabled:!0}),remove:()=>s.update({name:null}),update:u=>{typeof u.name<"u"&&u.name!==e&&(delete this._registeredResourceTemplates[e],u.name&&(this._registeredResourceTemplates[u.name]=s)),typeof u.title<"u"&&(s.title=u.title),typeof u.template<"u"&&(s.resourceTemplate=u.template),typeof u.metadata<"u"&&(s.metadata=u.metadata),typeof u.callback<"u"&&(s.readCallback=u.callback),typeof u.enabled<"u"&&(s.enabled=u.enabled),this.sendResourceListChanged()}};this._registeredResourceTemplates[e]=s;let o=n.uriTemplate.variableNames;return Array.isArray(o)&&o.some(u=>!!n.completeCallback(u))&&this.setCompletionRequestHandler(),s}_createRegisteredPrompt(e,i,n,a,r){let s={title:i,description:n,argsSchema:a===void 0?void 0:wa(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=wa(o.argsSchema)),typeof o.callback<"u"&&(s.callback=o.callback),typeof o.enabled<"u"&&(s.enabled=o.enabled),this.sendPromptListChanged()}};return this._registeredPrompts[e]=s,a&&Object.values(a).some(l=>{let u=l instanceof ou?l._def?.innerType:l;return rw(u)})&&this.setCompletionRequestHandler(),s}_createRegisteredTool(e,i,n,a,r,s,o,l,u){sw(e);let c={title:i,description:n,inputSchema:JT(a),outputSchema:JT(r),annotations:s,execution:o,_meta:l,handler:u,enabled:!0,disable:()=>c.update({enabled:!1}),enable:()=>c.update({enabled:!0}),remove:()=>c.update({name:null}),update:p=>{typeof p.name<"u"&&p.name!==e&&(typeof p.name=="string"&&sw(p.name),delete this._registeredTools[e],p.name&&(this._registeredTools[p.name]=c)),typeof p.title<"u"&&(c.title=p.title),typeof p.description<"u"&&(c.description=p.description),typeof p.paramsSchema<"u"&&(c.inputSchema=wa(p.paramsSchema)),typeof p.outputSchema<"u"&&(c.outputSchema=wa(p.outputSchema)),typeof p.callback<"u"&&(c.handler=p.callback),typeof p.annotations<"u"&&(c.annotations=p.annotations),typeof p._meta<"u"&&(c._meta=p._meta),typeof p.enabled<"u"&&(c.enabled=p.enabled),this.sendToolListChanged()}};return this._registeredTools[e]=c,this.setToolRequestHandlers(),this.sendToolListChanged(),c}tool(e,...i){if(this._registeredTools[e])throw new Error(`Tool ${e} is already registered`);let n,a,r,s;if(typeof i[0]=="string"&&(n=i.shift()),i.length>1){let l=i[0];if(ow(l))a=i.shift(),i.length>1&&typeof i[0]=="object"&&i[0]!==null&&!ow(i[0])&&(s=i.shift());else if(typeof l=="object"&&l!==null){if(Object.values(l).some(u=>typeof u=="object"&&u!==null))throw new Error(`Tool ${e} expected a Zod schema or ToolAnnotations, but received an unrecognized object`);s=i.shift()}}let o=i[0];return this._createRegisteredTool(e,void 0,n,a,r,s,{taskSupport:"forbidden"},void 0,o)}registerTool(e,i,n){if(this._registeredTools[e])throw new Error(`Tool ${e} is already registered`);let{title:a,description:r,inputSchema:s,outputSchema:o,annotations:l,_meta:u}=i;return this._createRegisteredTool(e,a,r,s,o,l,{taskSupport:"forbidden"},u,n)}prompt(e,...i){if(this._registeredPrompts[e])throw new Error(`Prompt ${e} is already registered`);let n;typeof i[0]=="string"&&(n=i.shift());let a;i.length>1&&(a=i.shift());let r=i[0],s=this._createRegisteredPrompt(e,void 0,n,a,r);return this.setPromptRequestHandlers(),this.sendPromptListChanged(),s}registerPrompt(e,i,n){if(this._registeredPrompts[e])throw new Error(`Prompt ${e} is already registered`);let{title:a,description:r,argsSchema:s}=i,o=this._createRegisteredPrompt(e,a,r,s,n);return this.setPromptRequestHandlers(),this.sendPromptListChanged(),o}isConnected(){return this.server.transport!==void 0}async sendLoggingMessage(e,i){return this.server.sendLoggingMessage(e,i)}sendResourceListChanged(){this.isConnected()&&this.server.sendResourceListChanged()}sendToolListChanged(){this.isConnected()&&this.server.sendToolListChanged()}sendPromptListChanged(){this.isConnected()&&this.server.sendPromptListChanged()}};var MF={type:"object",properties:{}};function KT(t){return t!==null&&typeof t=="object"&&"parse"in t&&typeof t.parse=="function"&&"safeParse"in t&&typeof t.safeParse=="function"}function QT(t){return"_def"in t||"_zod"in t||KT(t)}function ow(t){return typeof t!="object"||t===null||QT(t)?!1:Object.keys(t).length===0?!0:Object.values(t).some(KT)}function JT(t){if(t){if(ow(t))return wa(t);if(!QT(t))throw new Error("inputSchema must be a Zod schema or raw shape, received an unrecognized object");return t}}function EF(t){let e=jt(t);return e?Object.entries(e).map(([i,n])=>{let a=Cj(n),r=Aj(n);return{name:i,description:a,required:!r}}):[]}function Rt(t){let i=jt(t)?.method;if(!i)throw new Error("Schema is missing a method literal");let n=au(i);if(typeof n=="string")return n;throw new Error("Schema method literal must be a string")}function ZT(t){return{completion:{values:t.slice(0,100),total:t.length,hasMore:t.length>100}}}var jo={completion:{values:[],hasMore:!1}};var lw=Ml(require("node:process"),1);var Cc=class{append(e){this._buffer=this._buffer?Buffer.concat([this._buffer,e]):e}readMessage(){if(!this._buffer)return null;let e=this._buffer.indexOf(` -`);if(e===-1)return null;let i=this._buffer.toString("utf8",0,e).replace(/\r$/,"");return this._buffer=this._buffer.subarray(e+1),kF(i)}clear(){this._buffer=void 0}};function kF(t){return oS.parse(JSON.parse(t))}function YT(t){return JSON.stringify(t)+` -`}var Ac=class{constructor(e=lw.default.stdin,i=lw.default.stdout){this._stdin=e,this._stdout=i,this._readBuffer=new Cc,this._started=!1,this._ondata=n=>{this._readBuffer.append(n),this.processReadBuffer()},this._onerror=n=>{this.onerror?.(n)}}async start(){if(this._started)throw new Error("StdioServerTransport already started! If using Server class, note that connect() calls start() automatically.");this._started=!0,this._stdin.on("data",this._ondata),this._stdin.on("error",this._onerror)}processReadBuffer(){for(;;)try{let e=this._readBuffer.readMessage();if(e===null)break;this.onmessage?.(e)}catch(e){this.onerror?.(e)}}async close(){this._stdin.off("data",this._ondata),this._stdin.off("error",this._onerror),this._stdin.listenerCount("data")===0&&this._stdin.pause(),this._readBuffer.clear(),this.onclose?.()}send(e){return new Promise(i=>{let n=YT(e);this._stdout.write(n)?i():this._stdout.once("drain",i)})}};var ay=Ml(tI());function aI(t){let e=t.toUpperCase();return e.endsWith("FLOW")?e:`${e}FLOW`}function JY(t,e){let i={};for(let n of e){let a=n.type??"UNKNOWN";i[a]||(i[a]=[]),i[a].push({id:n.id??"",name:n.name??"",...n.version?{version:n.version}:{},deleted:n.deleted??!1,updated:n.updated??!1})}return{flow:{id:t.id??"",name:t.name,type:aI(t.type??""),version:t.publishedVersion?.commitVersion??"1"},dependencies:i}}var rI=({architectApi:t})=>({config:{description:"Retrieves all dependencies consumed by a Genesys Cloud Architect flow. Returns the flow metadata and its dependencies grouped by type.",annotations:{title:"Flow Dependencies",readOnlyHint:!0,destructiveHint:!1},inputSchema:{flowId:et.string().min(1).describe("The Genesys Cloud Architect flow ID")}},handler:async({flowId:e})=>{try{let i;try{i=await t.getFlow(e)}catch{return{isError:!0,content:[{type:"text",text:`Flow "${e}" not found.`}]}}let n=aI(i.type??""),a=i.publishedVersion?.commitVersion??"1",r=[],s=1;for(;;){let l=await t.getArchitectDependencytrackingConsumedresources(i.id,a,n,{pageSize:100,pageNumber:s});if(l.entities&&r.push(...l.entities),!l.nextUri)break;s++}let o=JY(i,r);return{content:[{type:"text",text:JSON.stringify(o,null,2)}]}}catch(i){return{isError:!0,content:[{type:"text",text:`Failed to retrieve flow dependencies: ${i instanceof Error?i.message:String(i)}`}]}}}});var ty=et.object({CLAUDE_PLUGIN_OPTION_genesys_region:et.string().min(1),CLAUDE_PLUGIN_OPTION_genesys_client_id:et.string().min(1),CLAUDE_PLUGIN_OPTION_genesys_client_secret:et.string().min(1)}).parse(process.env),ZY={architectApi:new ay.default.ArchitectApi},oI=new vc({name:"genesys-cloud-architect",version:"1.0.0"}),sI=rI(ZY);oI.registerTool("flow_dependencies",sI.config,sI.handler);(async()=>{let t=ay.default.ApiClient.instance;t.setEnvironment(ty.CLAUDE_PLUGIN_OPTION_genesys_region),await t.loginClientCredentialsGrant(ty.CLAUDE_PLUGIN_OPTION_genesys_client_id,ty.CLAUDE_PLUGIN_OPTION_genesys_client_secret);let e=new Ac;await oI.connect(e)})().catch(t=>{console.error("Failed to start server:",t),process.exit(1)}); +]`;continue}a+=n[l],n[l]==="\\"?r=!0:s&&n[l]==="]"?s=!1:!s&&n[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 _u(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((n,a)=>({...n,[a]:Y(t.valueType._def,{...e,currentPath:[...e.currentPath,"properties",a]})??Ve(e)}),{}),additionalProperties:e.rejectedAdditionalProperties};let i={type:"object",additionalProperties:Y(t.valueType._def,{...e,currentPath:[...e.currentPath,"additionalProperties"]})??e.allowedAdditionalProperties};if(e.target==="openApi3")return i;if(t.keyType?._def.typeName===E.ZodString&&t.keyType._def.checks?.length){let{type:n,...a}=qu(t.keyType._def,e);return{...i,propertyNames:a}}else{if(t.keyType?._def.typeName===E.ZodEnum)return{...i,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:n,...a}=ku(t.keyType._def,e);return{...i,propertyNames:a}}}return i}function _S(t,e){if(e.mapStrategy==="record")return _u(t,e);let i=Y(t.keyType._def,{...e,currentPath:[...e.currentPath,"items","items","0"]})||Ve(e),n=Y(t.valueType._def,{...e,currentPath:[...e.currentPath,"items","items","1"]})||Ve(e);return{type:"array",maxItems:125,items:{type:"array",items:[i,n],minItems:2,maxItems:2}}}function HS(t){let e=t.values,n=Object.keys(t.values).filter(r=>typeof e[e[r]]!="number").map(r=>e[r]),a=Array.from(new Set(n.map(r=>typeof r)));return{type:a.length===1?a[0]==="string"?"string":"number":["string","number"],enum:n}}function RS(t){return t.target==="openAi"?void 0:{not:Ve({...t,currentPath:[...t.currentPath,"not"]})}}function IS(t){return t.target==="openApi3"?{enum:["null"],nullable:!0}:{type:"null"}}var Zs={ZodString:"string",ZodNumber:"number",ZodBigInt:"integer",ZodBoolean:"boolean",ZodNull:"null"};function DS(t,e){if(e.target==="openApi3")return zS(t,e);let i=t.options instanceof Map?Array.from(t.options.values()):t.options;if(i.every(n=>n._def.typeName in Zs&&(!n._def.checks||!n._def.checks.length))){let n=i.reduce((a,r)=>{let s=Zs[r._def.typeName];return s&&!a.includes(s)?[...a,s]:a},[]);return{type:n.length>1?n:n[0]}}else if(i.every(n=>n._def.typeName==="ZodLiteral"&&!n.description)){let n=i.reduce((a,r)=>{let s=typeof r._def.value;switch(s){case"string":case"number":case"boolean":return[...a,s];case"bigint":return[...a,"integer"];case"object":if(r._def.value===null)return[...a,"null"];case"symbol":case"undefined":case"function":default:return a}},[]);if(n.length===i.length){let a=n.filter((r,s,o)=>o.indexOf(r)===s);return{type:a.length>1?a:a[0],enum:i.reduce((r,s)=>r.includes(s._def.value)?r:[...r,s._def.value],[])}}}else if(i.every(n=>n._def.typeName==="ZodEnum"))return{type:"string",enum:i.reduce((n,a)=>[...n,...a._def.values.filter(r=>!n.includes(r))],[])};return zS(t,e)}var zS=(t,e)=>{let i=(t.options instanceof Map?Array.from(t.options.values()):t.options).map((n,a)=>Y(n._def,{...e,currentPath:[...e.currentPath,"anyOf",`${a}`]})).filter(n=>!!n&&(!e.strictUnions||typeof n=="object"&&Object.keys(n).length>0));return i.length?{anyOf:i}:void 0};function GS(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:Zs[t.innerType._def.typeName],nullable:!0}:{type:[Zs[t.innerType._def.typeName],"null"]};if(e.target==="openApi3"){let n=Y(t.innerType._def,{...e,currentPath:[...e.currentPath]});return n&&"$ref"in n?{allOf:[n],nullable:!0}:n&&{...n,nullable:!0}}let i=Y(t.innerType._def,{...e,currentPath:[...e.currentPath,"anyOf","0"]});return i&&{anyOf:[i,{type:"null"}]}}function $S(t,e){let i={type:"number"};if(!t.checks)return i;for(let n of t.checks)switch(n.kind){case"int":i.type="integer",rm(i,"type",n.message,e);break;case"min":e.target==="jsonSchema7"?n.inclusive?me(i,"minimum",n.value,n.message,e):me(i,"exclusiveMinimum",n.value,n.message,e):(n.inclusive||(i.exclusiveMinimum=!0),me(i,"minimum",n.value,n.message,e));break;case"max":e.target==="jsonSchema7"?n.inclusive?me(i,"maximum",n.value,n.message,e):me(i,"exclusiveMaximum",n.value,n.message,e):(n.inclusive||(i.exclusiveMaximum=!0),me(i,"maximum",n.value,n.message,e));break;case"multipleOf":me(i,"multipleOf",n.value,n.message,e);break}return i}function NS(t,e){let i=e.target==="openAi",n={type:"object",properties:{}},a=[],r=t.shape();for(let o in r){let l=r[o];if(l===void 0||l._def===void 0)continue;let u=j$(l);u&&i&&(l._def.typeName==="ZodOptional"&&(l=l._def.innerType),l.isNullable()||(l=l.nullable()),u=!1);let c=Y(l._def,{...e,currentPath:[...e.currentPath,"properties",o],propertyPath:[...e.currentPath,"properties",o]});c!==void 0&&(n.properties[o]=c,u||a.push(o))}a.length&&(n.required=a);let s=P$(t,e);return s!==void 0&&(n.additionalProperties=s),n}function P$(t,e){if(t.catchall._def.typeName!=="ZodNever")return Y(t.catchall._def,{...e,currentPath:[...e.currentPath,"additionalProperties"]});switch(t.unknownKeys){case"passthrough":return e.allowedAdditionalProperties;case"strict":return e.rejectedAdditionalProperties;case"strip":return e.removeAdditionalStrategy==="strict"?e.allowedAdditionalProperties:e.rejectedAdditionalProperties}}function j$(t){try{return t.isOptional()}catch{return!0}}var US=(t,e)=>{if(e.currentPath.toString()===e.propertyPath?.toString())return Y(t.innerType._def,e);let i=Y(t.innerType._def,{...e,currentPath:[...e.currentPath,"anyOf","1"]});return i?{anyOf:[{not:Ve(e)},i]}:Ve(e)};var LS=(t,e)=>{if(e.pipeStrategy==="input")return Y(t.in._def,e);if(e.pipeStrategy==="output")return Y(t.out._def,e);let i=Y(t.in._def,{...e,currentPath:[...e.currentPath,"allOf","0"]}),n=Y(t.out._def,{...e,currentPath:[...e.currentPath,"allOf",i?"1":"0"]});return{allOf:[i,n].filter(a=>a!==void 0)}};function WS(t,e){return Y(t.type._def,e)}function BS(t,e){let n={type:"array",uniqueItems:!0,items:Y(t.valueType._def,{...e,currentPath:[...e.currentPath,"items"]})};return t.minSize&&me(n,"minItems",t.minSize.value,t.minSize.message,e),t.maxSize&&me(n,"maxItems",t.maxSize.value,t.maxSize.message,e),n}function FS(t,e){return t.rest?{type:"array",minItems:t.items.length,items:t.items.map((i,n)=>Y(i._def,{...e,currentPath:[...e.currentPath,"items",`${n}`]})).reduce((i,n)=>n===void 0?i:[...i,n],[]),additionalItems:Y(t.rest._def,{...e,currentPath:[...e.currentPath,"additionalItems"]})}:{type:"array",minItems:t.items.length,maxItems:t.items.length,items:t.items.map((i,n)=>Y(i._def,{...e,currentPath:[...e.currentPath,"items",`${n}`]})).reduce((i,n)=>n===void 0?i:[...i,n],[])}}function VS(t){return{not:Ve(t)}}function JS(t){return Ve(t)}var ZS=(t,e)=>Y(t.innerType._def,e);var KS=(t,e,i)=>{switch(e){case E.ZodString:return qu(t,i);case E.ZodNumber:return $S(t,i);case E.ZodObject:return NS(t,i);case E.ZodBigInt:return jS(t,i);case E.ZodBoolean:return SS();case E.ZodDate:return sm(t,i);case E.ZodUndefined:return VS(i);case E.ZodNull:return IS(i);case E.ZodArray:return PS(t,i);case E.ZodUnion:case E.ZodDiscriminatedUnion:return DS(t,i);case E.ZodIntersection:return ES(t,i);case E.ZodTuple:return FS(t,i);case E.ZodRecord:return _u(t,i);case E.ZodLiteral:return kS(t,i);case E.ZodEnum:return MS(t);case E.ZodNativeEnum:return HS(t);case E.ZodNullable:return GS(t,i);case E.ZodOptional:return US(t,i);case E.ZodMap:return _S(t,i);case E.ZodSet:return BS(t,i);case E.ZodLazy:return()=>t.getter()._def;case E.ZodPromise:return WS(t,i);case E.ZodNaN:case E.ZodNever:return RS(i);case E.ZodEffects:return TS(t,i);case E.ZodAny:return Ve(i);case E.ZodUnknown:return JS(i);case E.ZodDefault:return xS(t,i);case E.ZodBranded:return ku(t,i);case E.ZodReadonly:return ZS(t,i);case E.ZodCatch:return OS(t,i);case E.ZodPipeline:return LS(t,i);case E.ZodFunction:case E.ZodVoid:case E.ZodSymbol:return;default:return(n=>{})(e)}};function Y(t,e,i=!1){let n=e.seen.get(t);if(e.override){let o=e.override?.(t,e,n,i);if(o!==AS)return o}if(n&&!i){let o=S$(n,e);if(o!==void 0)return o}let a={def:t,path:e.currentPath,jsonSchema:void 0};e.seen.set(t,a);let r=KS(t,t.typeName,e),s=typeof r=="function"?Y(r(),e):r;if(s&&O$(t,e,s),e.postProcess){let o=e.postProcess(s,t,e);return a.jsonSchema=s,o}return a.jsonSchema=s,s}var S$=(t,e)=>{switch(e.$refStrategy){case"root":return{$ref:t.path.join("/")};case"relative":return{$ref:Eu(e.currentPath,t.path)};case"none":case"seen":return t.path.lengthe.currentPath[n]===i)?(console.warn(`Recursive reference detected at ${e.currentPath.join("/")}! Defaulting to any`),Ve(e)):e.$refStrategy==="seen"?Ve(e):void 0}},O$=(t,e,i)=>(t.description&&(i.description=t.description,e.markdownDescription&&(i.markdownDescription=t.description)),i);var um=(t,e)=>{let i=yS(e),n=typeof e=="object"&&e.definitions?Object.entries(e.definitions).reduce((l,[u,c])=>({...l,[u]:Y(c._def,{...i,currentPath:[...i.basePath,i.definitionPath,u]},!0)??Ve(i)}),{}):void 0,a=typeof e=="string"?e:e?.nameStrategy==="title"?void 0:e?.name,r=Y(t._def,a===void 0?i:{...i,currentPath:[...i.basePath,i.definitionPath,a]},!1)??Ve(i),s=typeof e=="object"&&e.name!==void 0&&e.nameStrategy==="title"?e.name:void 0;s!==void 0&&(r.title=s),i.flags.hasReferencedOpenAiAnyType&&(n||(n={}),n[i.openAiAnyTypeName]||(n[i.openAiAnyTypeName]={type:["string","number","integer","boolean","array","null"],items:{$ref:i.$refStrategy==="relative"?"1":[...i.basePath,i.definitionPath,i.openAiAnyTypeName].join("/")}}));let o=a===void 0?n?{...r,[i.definitionPath]:n}:r:{$ref:[...i.$refStrategy==="relative"?[]:i.basePath,i.definitionPath,a].join("/"),[i.definitionPath]:{...n,[a]:r}};return i.target==="jsonSchema7"?o.$schema="http://json-schema.org/draft-07/schema#":(i.target==="jsonSchema2019-09"||i.target==="openAi")&&(o.$schema="https://json-schema.org/draft/2019-09/schema#"),i.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 x$(t){return!t||t==="jsonSchema7"||t==="draft-7"?"draft-7":t==="jsonSchema2019-09"||t==="draft-2020-12"?"draft-2020-12":"draft-7"}function cm(t,e){return on(t)?_g(t,{target:x$(e?.target),io:e?.pipeStrategy??"input"}):um(t,{strictUnions:e?.strictUnions??!0,pipeStrategy:e?.pipeStrategy??"input"})}function pm(t){let i=jt(t)?.method;if(!i)throw new Error("Schema is missing a method literal");let n=ru(i);if(typeof n!="string")throw new Error("Schema method literal must be a string");return n}function dm(t,e){let i=Pt(t,e);if(!i.success)throw i.error;return i.data}var T$=6e4,Hu=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(hu,i=>{this._oncancel(i)}),this.setNotificationHandler(mu,i=>{this._onprogress(i)}),this.setRequestHandler(gu,i=>({})),this._taskStore=e?.taskStore,this._taskMessageQueue=e?.taskMessageQueue,this._taskStore&&(this.setRequestHandler(fu,async(i,n)=>{let a=await this._taskStore.getTask(i.params.taskId,n.sessionId);if(!a)throw new L(V.InvalidParams,"Failed to retrieve task: Task not found");return{...a}}),this.setRequestHandler(vu,async(i,n)=>{let a=async()=>{let r=i.params.taskId;if(this._taskMessageQueue){let o;for(;o=await this._taskMessageQueue.dequeue(r,n.sessionId);){if(o.type==="response"||o.type==="error"){let l=o.message,u=l.id,c=this._requestResolvers.get(u);if(c)if(this._requestResolvers.delete(u),o.type==="response")c(l);else{let p=l,d=new L(p.error.code,p.error.message,p.error.data);c(d)}else{let p=o.type==="response"?"Response":"Error";this._onerror(new Error(`${p} handler missing for request ${u}`))}continue}await this._transport?.send(o.message,{relatedRequestId:n.requestId})}}let s=await this._taskStore.getTask(r,n.sessionId);if(!s)throw new L(V.InvalidParams,`Task not found: ${r}`);if(!Ot(s.status))return await this._waitForTaskUpdate(r,n.signal),await a();if(Ot(s.status)){let o=await this._taskStore.getTaskResult(r,n.sessionId);return this._clearTaskQueue(r),{...o,_meta:{...o._meta,[St]:{taskId:r}}}}return await a()};return await a()}),this.setRequestHandler(Cu,async(i,n)=>{try{let{tasks:a,nextCursor:r}=await this._taskStore.listTasks(i.params?.cursor,n.sessionId);return{tasks:a,nextCursor:r,_meta:{}}}catch(a){throw new L(V.InvalidParams,`Failed to list tasks: ${a instanceof Error?a.message:String(a)}`)}}),this.setRequestHandler(bu,async(i,n)=>{try{let a=await this._taskStore.getTask(i.params.taskId,n.sessionId);if(!a)throw new L(V.InvalidParams,`Task not found: ${i.params.taskId}`);if(Ot(a.status))throw new L(V.InvalidParams,`Cannot cancel task in terminal status: ${a.status}`);await this._taskStore.updateTaskStatus(i.params.taskId,"cancelled","Client cancelled task execution.",n.sessionId),this._clearTaskQueue(i.params.taskId);let r=await this._taskStore.getTask(i.params.taskId,n.sessionId);if(!r)throw new L(V.InvalidParams,`Task not found after cancellation: ${i.params.taskId}`);return{_meta:{},...r}}catch(a){throw a instanceof L?a:new L(V.InvalidRequest,`Failed to cancel task: ${a instanceof Error?a.message:String(a)}`)}}))}async _oncancel(e){if(!e.params.requestId)return;this._requestHandlerAbortControllers.get(e.params.requestId)?.abort(e.params.reason)}_setupTimeout(e,i,n,a,r=!1){this._timeoutInfo.set(e,{timeoutId:setTimeout(a,i),startTime:Date.now(),timeout:i,maxTotalTimeout:n,resetTimeoutOnProgress:r,onTimeout:a})}_resetTimeout(e){let i=this._timeoutInfo.get(e);if(!i)return!1;let n=Date.now()-i.startTime;if(i.maxTotalTimeout&&n>=i.maxTotalTimeout)throw this._timeoutInfo.delete(e),L.fromError(V.RequestTimeout,"Maximum total timeout exceeded",{maxTotalTimeout:i.maxTotalTimeout,totalElapsed:n});return clearTimeout(i.timeoutId),i.timeoutId=setTimeout(i.onTimeout,i.timeout),!0}_cleanupTimeout(e){let i=this._timeoutInfo.get(e);i&&(clearTimeout(i.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 i=this.transport?.onclose;this._transport.onclose=()=>{i?.(),this._onclose()};let n=this.transport?.onerror;this._transport.onerror=r=>{n?.(r),this._onerror(r)};let a=this._transport?.onmessage;this._transport.onmessage=(r,s)=>{a?.(r,s),$s(r)||lS(r)?this._onresponse(r):Bg(r)?this._onrequest(r,s):oS(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 n of this._timeoutInfo.values())clearTimeout(n.timeoutId);this._timeoutInfo.clear();for(let n of this._requestHandlerAbortControllers.values())n.abort();this._requestHandlerAbortControllers.clear();let i=L.fromError(V.ConnectionClosed,"Connection closed");this._transport=void 0,this.onclose?.();for(let n of e.values())n(i)}_onerror(e){this.onerror?.(e)}_onnotification(e){let i=this._notificationHandlers.get(e.method)??this.fallbackNotificationHandler;i!==void 0&&Promise.resolve().then(()=>i(e)).catch(n=>this._onerror(new Error(`Uncaught error in notification handler: ${n}`)))}_onrequest(e,i){let n=this._requestHandlers.get(e.method)??this.fallbackRequestHandler,a=this._transport,r=e.params?._meta?.[St]?.taskId;if(n===void 0){let c={jsonrpc:"2.0",id:e.id,error:{code:V.MethodNotFound,message:"Method not found"}};r&&this._taskMessageQueue?this._enqueueTaskMessage(r,{type:"error",message:c,timestamp:Date.now()},a?.sessionId).catch(p=>this._onerror(new Error(`Failed to enqueue error response: ${p}`))):a?.send(c).catch(p=>this._onerror(new Error(`Failed to send an error response: ${p}`)));return}let s=new AbortController;this._requestHandlerAbortControllers.set(e.id,s);let o=aS(e.params)?e.params.task:void 0,l=this._taskStore?this.requestTaskStore(e,a?.sessionId):void 0,u={signal:s.signal,sessionId:a?.sessionId,_meta:e.params?._meta,sendNotification:async c=>{if(s.signal.aborted)return;let p={relatedRequestId:e.id};r&&(p.relatedTask={taskId:r}),await this.notification(c,p)},sendRequest:async(c,p,d)=>{if(s.signal.aborted)throw new L(V.ConnectionClosed,"Request was cancelled");let h={...d,relatedRequestId:e.id};r&&!h.relatedTask&&(h.relatedTask={taskId:r});let g=h.relatedTask?.taskId??r;return g&&l&&await l.updateTaskStatus(g,"input_required"),await this.request(c,p,h)},authInfo:i?.authInfo,requestId:e.id,requestInfo:i?.requestInfo,taskId:r,taskStore:l,taskRequestedTtl:o?.ttl,closeSSEStream:i?.closeSSEStream,closeStandaloneSSEStream:i?.closeStandaloneSSEStream};Promise.resolve().then(()=>{o&&this.assertTaskHandlerCapability(e.method)}).then(()=>n(e,u)).then(async c=>{if(s.signal.aborted)return;let p={result:c,jsonrpc:"2.0",id:e.id};r&&this._taskMessageQueue?await this._enqueueTaskMessage(r,{type:"response",message:p,timestamp:Date.now()},a?.sessionId):await a?.send(p)},async c=>{if(s.signal.aborted)return;let p={jsonrpc:"2.0",id:e.id,error:{code:Number.isSafeInteger(c.code)?c.code:V.InternalError,message:c.message??"Internal error",...c.data!==void 0&&{data:c.data}}};r&&this._taskMessageQueue?await this._enqueueTaskMessage(r,{type:"error",message:p,timestamp:Date.now()},a?.sessionId):await a?.send(p)}).catch(c=>this._onerror(new Error(`Failed to send response: ${c}`))).finally(()=>{this._requestHandlerAbortControllers.get(e.id)===s&&this._requestHandlerAbortControllers.delete(e.id)})}_onprogress(e){let{progressToken:i,...n}=e.params,a=Number(i),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(n)}_onresponse(e){let i=Number(e.id),n=this._requestResolvers.get(i);if(n){if(this._requestResolvers.delete(i),$s(e))n(e);else{let s=new L(e.error.code,e.error.message,e.error.data);n(s)}return}let a=this._responseHandlers.get(i);if(a===void 0){this._onerror(new Error(`Received a response for an unknown message ID: ${JSON.stringify(e)}`));return}this._responseHandlers.delete(i),this._cleanupTimeout(i);let r=!1;if($s(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,i))}}if(r||this._progressHandlers.delete(i),$s(e))a(e);else{let s=L.fromError(e.error.code,e.error.message,e.error.data);a(s)}}get transport(){return this._transport}async close(){await this._transport?.close()}async*requestStream(e,i,n){let{task:a}=n??{};if(!a){try{yield{type:"result",result:await this.request(e,i,n)}}catch(s){yield{type:"error",error:s instanceof L?s:new L(V.InternalError,String(s))}}return}let r;try{let s=await this.request(e,fr,n);if(s.task)r=s.task.taskId,yield{type:"taskCreated",task:s.task};else throw new L(V.InternalError,"Task creation did not return a task");for(;;){let o=await this.getTask({taskId:r},n);if(yield{type:"taskStatus",task:o},Ot(o.status)){o.status==="completed"?yield{type:"result",result:await this.getTaskResult({taskId:r},i,n)}:o.status==="failed"?yield{type:"error",error:new L(V.InternalError,`Task ${r} failed`)}:o.status==="cancelled"&&(yield{type:"error",error:new L(V.InternalError,`Task ${r} was cancelled`)});return}if(o.status==="input_required"){yield{type:"result",result:await this.getTaskResult({taskId:r},i,n)};return}let l=o.pollInterval??this._options?.defaultTaskPollInterval??1e3;await new Promise(u=>setTimeout(u,l)),n?.signal?.throwIfAborted()}}catch(s){yield{type:"error",error:s instanceof L?s:new L(V.InternalError,String(s))}}}request(e,i,n){let{relatedRequestId:a,resumptionToken:r,onresumptiontoken:s,task:o,relatedTask:l}=n??{};return new Promise((u,c)=>{let p=y=>{c(y)};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(y){p(y);return}n?.signal?.throwIfAborted();let d=this._requestMessageId++,h={...e,jsonrpc:"2.0",id:d};n?.onprogress&&(this._progressHandlers.set(d,n.onprogress),h.params={...e.params,_meta:{...e.params?._meta||{},progressToken:d}}),o&&(h.params={...h.params,task:o}),l&&(h.params={...h.params,_meta:{...h.params?._meta||{},[St]:l}});let g=y=>{this._responseHandlers.delete(d),this._progressHandlers.delete(d),this._cleanupTimeout(d),this._transport?.send({jsonrpc:"2.0",method:"notifications/cancelled",params:{requestId:d,reason:String(y)}},{relatedRequestId:a,resumptionToken:r,onresumptiontoken:s}).catch(b=>this._onerror(new Error(`Failed to send cancellation: ${b}`)));let A=y instanceof L?y:new L(V.RequestTimeout,String(y));c(A)};this._responseHandlers.set(d,y=>{if(!n?.signal?.aborted){if(y instanceof Error)return c(y);try{let A=Pt(i,y.result);A.success?u(A.data):c(A.error)}catch(A){c(A)}}}),n?.signal?.addEventListener("abort",()=>{g(n?.signal?.reason)});let m=n?.timeout??T$,f=()=>g(L.fromError(V.RequestTimeout,"Request timed out",{timeout:m}));this._setupTimeout(d,m,n?.maxTotalTimeout,f,n?.resetTimeoutOnProgress??!1);let v=l?.taskId;if(v){let y=A=>{let b=this._responseHandlers.get(d);b?b(A):this._onerror(new Error(`Response handler missing for side-channeled request ${d}`))};this._requestResolvers.set(d,y),this._enqueueTaskMessage(v,{type:"request",message:h,timestamp:Date.now()}).catch(A=>{this._cleanupTimeout(d),c(A)})}else this._transport.send(h,{relatedRequestId:a,resumptionToken:r,onresumptiontoken:s}).catch(y=>{this._cleanupTimeout(d),c(y)})})}async getTask(e,i){return this.request({method:"tasks/get",params:e},wu,i)}async getTaskResult(e,i,n){return this.request({method:"tasks/result",params:e},i,n)}async listTasks(e,i){return this.request({method:"tasks/list",params:e},Au,i)}async cancelTask(e,i){return this.request({method:"tasks/cancel",params:e},pS,i)}async notification(e,i){if(!this._transport)throw new Error("Not connected");this.assertNotificationCapability(e.method);let n=i?.relatedTask?.taskId;if(n){let o={...e,jsonrpc:"2.0",params:{...e.params,_meta:{...e.params?._meta||{},[St]:i.relatedTask}}};await this._enqueueTaskMessage(n,{type:"notification",message:o,timestamp:Date.now()});return}if((this._options?.debouncedNotificationMethods??[]).includes(e.method)&&!e.params&&!i?.relatedRequestId&&!i?.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"};i?.relatedTask&&(o={...o,params:{...o.params,_meta:{...o.params?._meta||{},[St]:i.relatedTask}}}),this._transport?.send(o,i).catch(l=>this._onerror(l))});return}let s={...e,jsonrpc:"2.0"};i?.relatedTask&&(s={...s,params:{...s.params,_meta:{...s.params?._meta||{},[St]:i.relatedTask}}}),await this._transport.send(s,i)}setRequestHandler(e,i){let n=pm(e);this.assertRequestHandlerCapability(n),this._requestHandlers.set(n,(a,r)=>{let s=dm(e,a);return Promise.resolve(i(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,i){let n=pm(e);this._notificationHandlers.set(n,a=>{let r=dm(e,a);return Promise.resolve(i(r))})}removeNotificationHandler(e){this._notificationHandlers.delete(e)}_cleanupTaskProgressHandler(e){let i=this._taskProgressTokens.get(e);i!==void 0&&(this._progressHandlers.delete(i),this._taskProgressTokens.delete(e))}async _enqueueTaskMessage(e,i,n){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,i,n,a)}async _clearTaskQueue(e,i){if(this._taskMessageQueue){let n=await this._taskMessageQueue.dequeueAll(e,i);for(let a of n)if(a.type==="request"&&Bg(a.message)){let r=a.message.id,s=this._requestResolvers.get(r);s?(s(new L(V.InternalError,"Task cancelled or completed")),this._requestResolvers.delete(r)):this._onerror(new Error(`Resolver missing for request ${r} during task ${e} cleanup`))}}}async _waitForTaskUpdate(e,i){let n=this._options?.defaultTaskPollInterval??1e3;try{let a=await this._taskStore?.getTask(e);a?.pollInterval&&(n=a.pollInterval)}catch{}return new Promise((a,r)=>{if(i.aborted){r(new L(V.InvalidRequest,"Request cancelled"));return}let s=setTimeout(a,n);i.addEventListener("abort",()=>{clearTimeout(s),r(new L(V.InvalidRequest,"Request cancelled"))},{once:!0})})}requestTaskStore(e,i){let n=this._taskStore;if(!n)throw new Error("No task store configured");return{createTask:async a=>{if(!e)throw new Error("No request provided");return await n.createTask(a,e.id,{method:e.method,params:e.params},i)},getTask:async a=>{let r=await n.getTask(a,i);if(!r)throw new L(V.InvalidParams,"Failed to retrieve task: Task not found");return r},storeTaskResult:async(a,r,s)=>{await n.storeTaskResult(a,r,s,i);let o=await n.getTask(a,i);if(o){let l=Bs.parse({method:"notifications/tasks/status",params:o});await this.notification(l),Ot(o.status)&&this._cleanupTaskProgressHandler(a)}},getTaskResult:a=>n.getTaskResult(a,i),updateTaskStatus:async(a,r,s)=>{let o=await n.getTask(a,i);if(!o)throw new L(V.InvalidParams,`Task "${a}" not found - it may have been cleaned up`);if(Ot(o.status))throw new L(V.InvalidParams,`Cannot update task "${a}" from terminal status "${o.status}" to "${r}". Terminal states (completed, failed, cancelled) cannot transition to other states.`);await n.updateTaskStatus(a,r,s,i);let l=await n.getTask(a,i);if(l){let u=Bs.parse({method:"notifications/tasks/status",params:l});await this.notification(u),Ot(l.status)&&this._cleanupTaskProgressHandler(a)}},listTasks:a=>n.listTasks(a,i)}}};function QS(t){return t!==null&&typeof t=="object"&&!Array.isArray(t)}function YS(t,e){let i={...t};for(let n in e){let a=n,r=e[a];if(r===void 0)continue;let s=i[a];QS(s)&&QS(r)?i[a]={...s,...r}:i[a]=r}return i}var LT=Xa(Xf(),1),WT=Xa(UT(),1);function kF(){let t=new LT.default({strict:!1,validateFormats:!0,validateSchema:!1,allErrors:!0});return(0,WT.default)(t),t}var mc=class{constructor(e){this._ajv=e??kF()}getValidator(e){let i="$id"in e&&typeof e.$id=="string"?this._ajv.getSchema(e.$id)??this._ajv.compile(e):this._ajv.compile(e);return n=>i(n)?{valid:!0,data:n,errorMessage:void 0}:{valid:!1,data:void 0,errorMessage:this._ajv.errorsText(i.errors)}}};var fc=class{constructor(e){this._server=e}requestStream(e,i,n){return this._server.requestStream(e,i,n)}createMessageStream(e,i){let n=this._server.getClientCapabilities();if((e.tools||e.toolChoice)&&!n?.sampling?.tools)throw new Error("Client does not support sampling tools capability.");if(e.messages.length>0){let a=e.messages[e.messages.length-1],r=Array.isArray(a.content)?a.content:[a.content],s=r.some(c=>c.type==="tool_result"),o=e.messages.length>1?e.messages[e.messages.length-2]:void 0,l=o?Array.isArray(o.content)?o.content:[o.content]:[],u=l.some(c=>c.type==="tool_use");if(s){if(r.some(c=>c.type!=="tool_result"))throw new Error("The last message must contain only tool_result content if any is present");if(!u)throw new Error("tool_result blocks are not matching any tool_use from the previous message")}if(u){let c=new Set(l.filter(d=>d.type==="tool_use").map(d=>d.id)),p=new Set(r.filter(d=>d.type==="tool_result").map(d=>d.toolUseId));if(c.size!==p.size||![...c].every(d=>p.has(d)))throw new Error("ids of tool_result blocks and tool_use blocks from previous message do not match")}}return this.requestStream({method:"sampling/createMessage",params:e},Js,i)}elicitInputStream(e,i){let n=this._server.getClientCapabilities(),a=e.mode??"form";switch(a){case"url":{if(!n?.elicitation?.url)throw new Error("Client does not support url elicitation.");break}case"form":{if(!n?.elicitation?.form)throw new Error("Client does not support form elicitation.");break}}let r=a==="form"&&e.mode===void 0?{...e,mode:"form"}:e;return this.requestStream({method:"elicitation/create",params:r},Cr,i)}async getTask(e,i){return this._server.getTask({taskId:e},i)}async getTaskResult(e,i,n){return this._server.getTaskResult({taskId:e},i,n)}async listTasks(e,i){return this._server.listTasks(e?{cursor:e}:void 0,i)}async cancelTask(e,i){return this._server.cancelTask({taskId:e},i)}};function BT(t,e,i){if(!t)throw new Error(`${i} does not support task creation (required for ${e})`);switch(e){case"tools/call":if(!t.tools?.call)throw new Error(`${i} does not support task creation for tools/call (required for ${e})`);break;default:break}}function FT(t,e,i){if(!t)throw new Error(`${i} does not support task creation (required for ${e})`);switch(e){case"sampling/createMessage":if(!t.sampling?.createMessage)throw new Error(`${i} does not support task creation for sampling/createMessage (required for ${e})`);break;case"elicitation/create":if(!t.elicitation?.create)throw new Error(`${i} does not support task creation for elicitation/create (required for ${e})`);break;default:break}}var wc=class extends Hu{constructor(e,i){super(i),this._serverInfo=e,this._loggingLevels=new Map,this.LOG_LEVEL_SEVERITY=new Map(Vs.options.map((n,a)=>[n,a])),this.isMessageIgnored=(n,a)=>{let r=this._loggingLevels.get(a);return r?this.LOG_LEVEL_SEVERITY.get(n)this._oninitialize(n)),this.setNotificationHandler(Zg,()=>this.oninitialized?.()),this._capabilities.logging&&this.setRequestHandler(nm,async(n,a)=>{let r=a.sessionId||a.requestInfo?.headers["mcp-session-id"]||void 0,{level:s}=n.params,o=Vs.safeParse(s);return o.success&&this._loggingLevels.set(r,o.data),{}})}get experimental(){return this._experimental||(this._experimental={tasks:new fc(this)}),this._experimental}registerCapabilities(e){if(this.transport)throw new Error("Cannot register capabilities after connecting to transport");this._capabilities=YS(this._capabilities,e)}setRequestHandler(e,i){let a=jt(e)?.method;if(!a)throw new Error("Schema is missing a method literal");let r;if(on(a)){let o=a;r=o._zod?.def?.value??o.value}else{let o=a;r=o._def?.value??o.value}if(typeof r!="string")throw new Error("Schema method literal must be a string");if(r==="tools/call"){let o=async(l,u)=>{let c=Pt(vr,l);if(!c.success){let g=c.error instanceof Error?c.error.message:String(c.error);throw new L(V.InvalidParams,`Invalid tools/call request: ${g}`)}let{params:p}=c.data,d=await Promise.resolve(i(l,u));if(p.task){let g=Pt(fr,d);if(!g.success){let m=g.error instanceof Error?g.error.message:String(g.error);throw new L(V.InvalidParams,`Invalid task creation result: ${m}`)}return g.data}let h=Pt(Tu,d);if(!h.success){let g=h.error instanceof Error?h.error.message:String(h.error);throw new L(V.InvalidParams,`Invalid tools/call result: ${g}`)}return h.data};return super.setRequestHandler(e,o)}return super.setRequestHandler(e,i)}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){FT(this._clientCapabilities?.tasks?.requests,e,"Client")}assertTaskHandlerCapability(e){this._capabilities&&BT(this._capabilities.tasks?.requests,e,"Server")}async _oninitialize(e){let i=e.params.protocolVersion;return this._clientCapabilities=e.params.capabilities,this._clientVersion=e.params.clientInfo,{protocolVersion:iS.includes(i)?i:Lg,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"},du)}async createMessage(e,i){if((e.tools||e.toolChoice)&&!this._clientCapabilities?.sampling?.tools)throw new Error("Client does not support sampling tools capability.");if(e.messages.length>0){let n=e.messages[e.messages.length-1],a=Array.isArray(n.content)?n.content:[n.content],r=a.some(u=>u.type==="tool_result"),s=e.messages.length>1?e.messages[e.messages.length-2]:void 0,o=s?Array.isArray(s.content)?s.content:[s.content]:[],l=o.some(u=>u.type==="tool_use");if(r){if(a.some(u=>u.type!=="tool_result"))throw new Error("The last message must contain only tool_result content if any is present");if(!l)throw new Error("tool_result blocks are not matching any tool_use from the previous message")}if(l){let u=new Set(o.filter(p=>p.type==="tool_use").map(p=>p.id)),c=new Set(a.filter(p=>p.type==="tool_result").map(p=>p.toolUseId));if(u.size!==c.size||![...u].every(p=>c.has(p)))throw new Error("ids of tool_result blocks and tool_use blocks from previous message do not match")}}return e.tools?this.request({method:"sampling/createMessage",params:e},tm,i):this.request({method:"sampling/createMessage",params:e},Js,i)}async elicitInput(e,i){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},Cr,i)}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},Cr,i);if(r.action==="accept"&&r.content&&a.requestedSchema)try{let o=this._jsonSchemaValidator.getValidator(a.requestedSchema)(r.content);if(!o.valid)throw new L(V.InvalidParams,`Elicitation response content does not match requested schema: ${o.errorMessage}`)}catch(s){throw s instanceof L?s:new L(V.InternalError,`Error validating elicitation response: ${s instanceof Error?s.message:String(s)}`)}return r}}}createElicitationCompletionNotifier(e,i){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}},i)}async listRoots(e,i){return this.request({method:"roots/list",params:e},am,i)}async sendLoggingMessage(e,i){if(this._capabilities.logging&&!this.isMessageIgnored(e.level,i))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 JT=Symbol.for("mcp.completable");function ow(t){return!!t&&typeof t=="object"&&JT in t}function ZT(t){return t[JT]?.complete}var VT;(function(t){t.Completable="McpCompletable"})(VT||(VT={}));var qF=/^[A-Za-z0-9._-]{1,128}$/;function _F(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"),!qF.test(t)){let i=t.split("").filter(n=>!/[A-Za-z0-9._-]/.test(n)).filter((n,a,r)=>r.indexOf(n)===a);return e.push(`Tool name contains invalid characters: ${i.map(n=>`"${n}"`).join(", ")}`,"Allowed characters are: A-Z, a-z, 0-9, underscore (_), dash (-), and dot (.)"),{isValid:!1,warnings:e}}return{isValid:!0,warnings:e}}function HF(t,e){if(e.length>0){console.warn(`Tool name validation warning for "${t}":`);for(let i of e)console.warn(` - ${i}`);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 lw(t){let e=_F(t);return HF(t,e.warnings),e.isValid}var vc=class{constructor(e){this._mcpServer=e}registerToolTask(e,i,n){let a={taskSupport:"required",...i.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,i.title,i.description,i.inputSchema,i.outputSchema,i.annotations,a,i._meta,n)}};var Cc=class{constructor(e,i){this._registeredResources={},this._registeredResourceTemplates={},this._registeredTools={},this._registeredPrompts={},this._toolHandlersInitialized=!1,this._completionHandlerInitialized=!1,this._resourceHandlersInitialized=!1,this._promptHandlersInitialized=!1,this.server=new wc(e,i)}get experimental(){return this._experimental||(this._experimental={tasks:new vc(this)}),this._experimental}async connect(e){return await this.server.connect(e)}async close(){await this.server.close()}setToolRequestHandlers(){this._toolHandlersInitialized||(this.server.assertCanSetRequestHandler(Rt(xu)),this.server.assertCanSetRequestHandler(Rt(vr)),this.server.registerCapabilities({tools:{listChanged:!0}}),this.server.setRequestHandler(xu,()=>({tools:Object.entries(this._registeredTools).filter(([,e])=>e.enabled).map(([e,i])=>{let n={name:e,title:i.title,description:i.description,inputSchema:(()=>{let a=gr(i.inputSchema);return a?cm(a,{strictUnions:!0,pipeStrategy:"input"}):RF})(),annotations:i.annotations,execution:i.execution,_meta:i._meta};if(i.outputSchema){let a=gr(i.outputSchema);a&&(n.outputSchema=cm(a,{strictUnions:!0,pipeStrategy:"output"}))}return n})})),this.server.setRequestHandler(vr,async(e,i)=>{try{let n=this._registeredTools[e.params.name];if(!n)throw new L(V.InvalidParams,`Tool ${e.params.name} not found`);if(!n.enabled)throw new L(V.InvalidParams,`Tool ${e.params.name} disabled`);let a=!!e.params.task,r=n.execution?.taskSupport,s="createTask"in n.handler;if((r==="required"||r==="optional")&&!s)throw new L(V.InternalError,`Tool ${e.params.name} has taskSupport '${r}' but was not registered with registerToolTask`);if(r==="required"&&!a)throw new L(V.MethodNotFound,`Tool ${e.params.name} requires task augmentation (taskSupport: 'required')`);if(r==="optional"&&!a&&s)return await this.handleAutomaticTaskPolling(n,e,i);let o=await this.validateToolInput(n,e.params.arguments,e.params.name),l=await this.executeToolHandler(n,o,i);return a||await this.validateToolOutput(n,l,e.params.name),l}catch(n){if(n instanceof L&&n.code===V.UrlElicitationRequired)throw n;return this.createToolError(n instanceof Error?n.message:String(n))}}),this._toolHandlersInitialized=!0)}createToolError(e){return{content:[{type:"text",text:e}],isError:!0}}async validateToolInput(e,i,n){if(!e.inputSchema)return;let r=gr(e.inputSchema)??e.inputSchema,s=await tu(r,i);if(!s.success){let o="error"in s?s.error:"Unknown error",l=au(o);throw new L(V.InvalidParams,`Input validation error: Invalid arguments for tool ${n}: ${l}`)}return s.data}async validateToolOutput(e,i,n){if(!e.outputSchema||!("content"in i)||i.isError)return;if(!i.structuredContent)throw new L(V.InvalidParams,`Output validation error: Tool ${n} has an output schema but no structured content was provided`);let a=gr(e.outputSchema),r=await tu(a,i.structuredContent);if(!r.success){let s="error"in r?r.error:"Unknown error",o=au(s);throw new L(V.InvalidParams,`Output validation error: Invalid structured content for tool ${n}: ${o}`)}}async executeToolHandler(e,i,n){let a=e.handler;if("createTask"in a){if(!n.taskStore)throw new Error("No task store provided.");let s={...n,taskStore:n.taskStore};if(e.inputSchema){let o=a;return await Promise.resolve(o.createTask(i,s))}else{let o=a;return await Promise.resolve(o.createTask(s))}}if(e.inputSchema){let s=a;return await Promise.resolve(s(i,n))}else{let s=a;return await Promise.resolve(s(n))}}async handleAutomaticTaskPolling(e,i,n){if(!n.taskStore)throw new Error("No task store provided for task-capable tool.");let a=await this.validateToolInput(e,i.params.arguments,i.params.name),r=e.handler,s={...n,taskStore:n.taskStore},o=a?await Promise.resolve(r.createTask(a,s)):await Promise.resolve(r.createTask(s)),l=o.task.taskId,u=o.task,c=u.pollInterval??5e3;for(;u.status!=="completed"&&u.status!=="failed"&&u.status!=="cancelled";){await new Promise(d=>setTimeout(d,c));let p=await n.taskStore.getTask(l);if(!p)throw new L(V.InternalError,`Task ${l} not found during polling`);u=p}return await n.taskStore.getTaskResult(l)}setCompletionRequestHandler(){this._completionHandlerInitialized||(this.server.assertCanSetRequestHandler(Rt(Mu)),this.server.registerCapabilities({completions:{}}),this.server.setRequestHandler(Mu,async e=>{switch(e.params.ref.type){case"ref/prompt":return wS(e),this.handlePromptCompletion(e,e.params.ref);case"ref/resource":return vS(e),this.handleResourceCompletion(e,e.params.ref);default:throw new L(V.InvalidParams,`Invalid completion reference: ${e.params.ref}`)}}),this._completionHandlerInitialized=!0)}async handlePromptCompletion(e,i){let n=this._registeredPrompts[i.name];if(!n)throw new L(V.InvalidParams,`Prompt ${i.name} not found`);if(!n.enabled)throw new L(V.InvalidParams,`Prompt ${i.name} disabled`);if(!n.argsSchema)return Oo;let r=jt(n.argsSchema)?.[e.params.argument.name];if(!ow(r))return Oo;let s=ZT(r);if(!s)return Oo;let o=await s(e.params.argument.value,e.params.context);return QT(o)}async handleResourceCompletion(e,i){let n=Object.values(this._registeredResourceTemplates).find(s=>s.resourceTemplate.uriTemplate.toString()===i.uri);if(!n){if(this._registeredResources[i.uri])return Oo;throw new L(V.InvalidParams,`Resource template ${e.params.ref.uri} not found`)}let a=n.resourceTemplate.completeCallback(e.params.argument.name);if(!a)return Oo;let r=await a(e.params.argument.value,e.params.context);return QT(r)}setResourceRequestHandlers(){this._resourceHandlersInitialized||(this.server.assertCanSetRequestHandler(Rt(yu)),this.server.assertCanSetRequestHandler(Rt(Pu)),this.server.assertCanSetRequestHandler(Rt(ju)),this.server.registerCapabilities({resources:{listChanged:!0}}),this.server.setRequestHandler(yu,async(e,i)=>{let n=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(i);for(let o of s.resources)a.push({...r.metadata,...o})}return{resources:[...n,...a]}}),this.server.setRequestHandler(Pu,async()=>({resourceTemplates:Object.entries(this._registeredResourceTemplates).map(([i,n])=>({name:i,uriTemplate:n.resourceTemplate.uriTemplate.toString(),...n.metadata}))})),this.server.setRequestHandler(ju,async(e,i)=>{let n=new URL(e.params.uri),a=this._registeredResources[n.toString()];if(a){if(!a.enabled)throw new L(V.InvalidParams,`Resource ${n} disabled`);return a.readCallback(n,i)}for(let r of Object.values(this._registeredResourceTemplates)){let s=r.resourceTemplate.uriTemplate.match(n.toString());if(s)return r.readCallback(n,s,i)}throw new L(V.InvalidParams,`Resource ${n} not found`)}),this._resourceHandlersInitialized=!0)}setPromptRequestHandlers(){this._promptHandlersInitialized||(this.server.assertCanSetRequestHandler(Rt(Su)),this.server.assertCanSetRequestHandler(Rt(Ou)),this.server.registerCapabilities({prompts:{listChanged:!0}}),this.server.setRequestHandler(Su,()=>({prompts:Object.entries(this._registeredPrompts).filter(([,e])=>e.enabled).map(([e,i])=>({name:e,title:i.title,description:i.description,arguments:i.argsSchema?IF(i.argsSchema):void 0}))})),this.server.setRequestHandler(Ou,async(e,i)=>{let n=this._registeredPrompts[e.params.name];if(!n)throw new L(V.InvalidParams,`Prompt ${e.params.name} not found`);if(!n.enabled)throw new L(V.InvalidParams,`Prompt ${e.params.name} disabled`);if(n.argsSchema){let a=gr(n.argsSchema),r=await tu(a,e.params.arguments);if(!r.success){let l="error"in r?r.error:"Unknown error",u=au(l);throw new L(V.InvalidParams,`Invalid arguments for prompt ${e.params.name}: ${u}`)}let s=r.data,o=n.callback;return await Promise.resolve(o(s,i))}else{let a=n.callback;return await Promise.resolve(a(i))}}),this._promptHandlersInitialized=!0)}resource(e,i,...n){let a;typeof n[0]=="object"&&(a=n.shift());let r=n[0];if(typeof i=="string"){if(this._registeredResources[i])throw new Error(`Resource ${i} is already registered`);let s=this._createRegisteredResource(e,void 0,i,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,i,a,r);return this.setResourceRequestHandlers(),this.sendResourceListChanged(),s}}registerResource(e,i,n,a){if(typeof i=="string"){if(this._registeredResources[i])throw new Error(`Resource ${i} is already registered`);let r=this._createRegisteredResource(e,n.title,i,n,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,n.title,i,n,a);return this.setResourceRequestHandlers(),this.sendResourceListChanged(),r}}_createRegisteredResource(e,i,n,a,r){let s={name:e,title:i,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!==n&&(delete this._registeredResources[n],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[n]=s,s}_createRegisteredResourceTemplate(e,i,n,a,r){let s={resourceTemplate:n,title:i,metadata:a,readCallback:r,enabled:!0,disable:()=>s.update({enabled:!1}),enable:()=>s.update({enabled:!0}),remove:()=>s.update({name:null}),update:u=>{typeof u.name<"u"&&u.name!==e&&(delete this._registeredResourceTemplates[e],u.name&&(this._registeredResourceTemplates[u.name]=s)),typeof u.title<"u"&&(s.title=u.title),typeof u.template<"u"&&(s.resourceTemplate=u.template),typeof u.metadata<"u"&&(s.metadata=u.metadata),typeof u.callback<"u"&&(s.readCallback=u.callback),typeof u.enabled<"u"&&(s.enabled=u.enabled),this.sendResourceListChanged()}};this._registeredResourceTemplates[e]=s;let o=n.uriTemplate.variableNames;return Array.isArray(o)&&o.some(u=>!!n.completeCallback(u))&&this.setCompletionRequestHandler(),s}_createRegisteredPrompt(e,i,n,a,r){let s={title:i,description:n,argsSchema:a===void 0?void 0:wa(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=wa(o.argsSchema)),typeof o.callback<"u"&&(s.callback=o.callback),typeof o.enabled<"u"&&(s.enabled=o.enabled),this.sendPromptListChanged()}};return this._registeredPrompts[e]=s,a&&Object.values(a).some(l=>{let u=l instanceof lu?l._def?.innerType:l;return ow(u)})&&this.setCompletionRequestHandler(),s}_createRegisteredTool(e,i,n,a,r,s,o,l,u){lw(e);let c={title:i,description:n,inputSchema:KT(a),outputSchema:KT(r),annotations:s,execution:o,_meta:l,handler:u,enabled:!0,disable:()=>c.update({enabled:!1}),enable:()=>c.update({enabled:!0}),remove:()=>c.update({name:null}),update:p=>{typeof p.name<"u"&&p.name!==e&&(typeof p.name=="string"&&lw(p.name),delete this._registeredTools[e],p.name&&(this._registeredTools[p.name]=c)),typeof p.title<"u"&&(c.title=p.title),typeof p.description<"u"&&(c.description=p.description),typeof p.paramsSchema<"u"&&(c.inputSchema=wa(p.paramsSchema)),typeof p.outputSchema<"u"&&(c.outputSchema=wa(p.outputSchema)),typeof p.callback<"u"&&(c.handler=p.callback),typeof p.annotations<"u"&&(c.annotations=p.annotations),typeof p._meta<"u"&&(c._meta=p._meta),typeof p.enabled<"u"&&(c.enabled=p.enabled),this.sendToolListChanged()}};return this._registeredTools[e]=c,this.setToolRequestHandlers(),this.sendToolListChanged(),c}tool(e,...i){if(this._registeredTools[e])throw new Error(`Tool ${e} is already registered`);let n,a,r,s;if(typeof i[0]=="string"&&(n=i.shift()),i.length>1){let l=i[0];if(uw(l))a=i.shift(),i.length>1&&typeof i[0]=="object"&&i[0]!==null&&!uw(i[0])&&(s=i.shift());else if(typeof l=="object"&&l!==null){if(Object.values(l).some(u=>typeof u=="object"&&u!==null))throw new Error(`Tool ${e} expected a Zod schema or ToolAnnotations, but received an unrecognized object`);s=i.shift()}}let o=i[0];return this._createRegisteredTool(e,void 0,n,a,r,s,{taskSupport:"forbidden"},void 0,o)}registerTool(e,i,n){if(this._registeredTools[e])throw new Error(`Tool ${e} is already registered`);let{title:a,description:r,inputSchema:s,outputSchema:o,annotations:l,_meta:u}=i;return this._createRegisteredTool(e,a,r,s,o,l,{taskSupport:"forbidden"},u,n)}prompt(e,...i){if(this._registeredPrompts[e])throw new Error(`Prompt ${e} is already registered`);let n;typeof i[0]=="string"&&(n=i.shift());let a;i.length>1&&(a=i.shift());let r=i[0],s=this._createRegisteredPrompt(e,void 0,n,a,r);return this.setPromptRequestHandlers(),this.sendPromptListChanged(),s}registerPrompt(e,i,n){if(this._registeredPrompts[e])throw new Error(`Prompt ${e} is already registered`);let{title:a,description:r,argsSchema:s}=i,o=this._createRegisteredPrompt(e,a,r,s,n);return this.setPromptRequestHandlers(),this.sendPromptListChanged(),o}isConnected(){return this.server.transport!==void 0}async sendLoggingMessage(e,i){return this.server.sendLoggingMessage(e,i)}sendResourceListChanged(){this.isConnected()&&this.server.sendResourceListChanged()}sendToolListChanged(){this.isConnected()&&this.server.sendToolListChanged()}sendPromptListChanged(){this.isConnected()&&this.server.sendPromptListChanged()}};var RF={type:"object",properties:{}};function YT(t){return t!==null&&typeof t=="object"&&"parse"in t&&typeof t.parse=="function"&&"safeParse"in t&&typeof t.safeParse=="function"}function XT(t){return"_def"in t||"_zod"in t||YT(t)}function uw(t){return typeof t!="object"||t===null||XT(t)?!1:Object.keys(t).length===0?!0:Object.values(t).some(YT)}function KT(t){if(t){if(uw(t))return wa(t);if(!XT(t))throw new Error("inputSchema must be a Zod schema or raw shape, received an unrecognized object");return t}}function IF(t){let e=jt(t);return e?Object.entries(e).map(([i,n])=>{let a=bj(n),r=yj(n);return{name:i,description:a,required:!r}}):[]}function Rt(t){let i=jt(t)?.method;if(!i)throw new Error("Schema is missing a method literal");let n=ru(i);if(typeof n=="string")return n;throw new Error("Schema method literal must be a string")}function QT(t){return{completion:{values:t.slice(0,100),total:t.length,hasMore:t.length>100}}}var Oo={completion:{values:[],hasMore:!1}};var cw=Xa(require("node:process"),1);var Ac=class{append(e){this._buffer=this._buffer?Buffer.concat([this._buffer,e]):e}readMessage(){if(!this._buffer)return null;let e=this._buffer.indexOf(` +`);if(e===-1)return null;let i=this._buffer.toString("utf8",0,e).replace(/\r$/,"");return this._buffer=this._buffer.subarray(e+1),zF(i)}clear(){this._buffer=void 0}};function zF(t){return uS.parse(JSON.parse(t))}function eM(t){return JSON.stringify(t)+` +`}var bc=class{constructor(e=cw.default.stdin,i=cw.default.stdout){this._stdin=e,this._stdout=i,this._readBuffer=new Ac,this._started=!1,this._ondata=n=>{this._readBuffer.append(n),this.processReadBuffer()},this._onerror=n=>{this.onerror?.(n)}}async start(){if(this._started)throw new Error("StdioServerTransport already started! If using Server class, note that connect() calls start() automatically.");this._started=!0,this._stdin.on("data",this._ondata),this._stdin.on("error",this._onerror)}processReadBuffer(){for(;;)try{let e=this._readBuffer.readMessage();if(e===null)break;this.onmessage?.(e)}catch(e){this.onerror?.(e)}}async close(){this._stdin.off("data",this._ondata),this._stdin.off("error",this._onerror),this._stdin.listenerCount("data")===0&&this._stdin.pause(),this._readBuffer.clear(),this.onclose?.()}send(e){return new Promise(i=>{let n=eM(e);this._stdout.write(n)?i():this._stdout.once("drain",i)})}};var ry=Xa(rI());var oI=require("node:child_process"),lI=Xa(require("node:fs")),dd=Xa(require("node:path"));var sI=12e4,eX=dd.default.resolve("bin","deploy-runner.js"),uI=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.",annotations:{title:"Deploy Flow",readOnlyHint:!1,destructiveHint:!0},inputSchema:{flowFile:Cn.string().min(1).describe("Path to the TypeScript flow file")}},handler:async({flowFile:e})=>{let i=dd.default.resolve(e);if(!lI.default.existsSync(i))return{isError:!0,content:[{type:"text",text:`Flow file not found: ${i}`}]};let n=[eX,"--flow-file",i];return new Promise(a=>{let r=[],s,o=!1,l=h=>{o||(o=!0,clearTimeout(c),a(h))},u=(0,oI.spawn)("node",n,{env:{...process.env,GENESYS_REGION:t.region,GENESYS_CLIENT_ID:t.clientId,GENESYS_CLIENT_SECRET:t.clientSecret},cwd:dd.default.dirname(i),stdio:["ignore","pipe","pipe"]}),c=setTimeout(()=>{u.kill("SIGTERM"),l({isError:!0,content:[{type:"text",text:`Deploy timed out after ${sI/1e3}s. + +Logs: +${r.join(` +`)}`}]})},sI),p="";u.stdout.on("data",h=>{p+=h.toString();let g=p.split(` +`);p=g.pop()??"";for(let m of g)if(m.trim())try{let f=JSON.parse(m);f.type==="log"?r.push(`[${f.level}] ${f.message}`):f.type==="result"&&(s=f)}catch{r.push(m)}});let d="";u.stderr.on("data",h=>{d+=h.toString()}),u.on("close",h=>{if(p.trim())try{let m=JSON.parse(p.trim());m.type==="result"?s=m:m.type==="log"&&r.push(`[${m.level}] ${m.message}`)}catch{p.trim()&&r.push(p.trim())}d.trim()&&r.push(`[stderr] ${d.trim()}`);let g=r.length?` + +Logs: +${r.join(` +`)}`:"";if(s?.success){let m=["Flow deployed successfully."];s.flowId&&m.push(`Flow ID: ${s.flowId}`),s.flowName&&m.push(`Flow Name: ${s.flowName}`),l({content:[{type:"text",text:m.join(` +`)+g}]})}else{let m=s?.error??`Deploy runner exited with code ${h}`;l({isError:!0,content:[{type:"text",text:`Deploy failed: ${m}${g}`}]})}})})}});function cI(t){let e=t.toUpperCase();return e.endsWith("FLOW")?e:`${e}FLOW`}function iX(t,e){let i={};for(let n of e){let a=n.type??"UNKNOWN";i[a]||(i[a]=[]),i[a].push({id:n.id??"",name:n.name??"",...n.version?{version:n.version}:{},deleted:n.deleted??!1,updated:n.updated??!1})}return{flow:{id:t.id??"",name:t.name,type:cI(t.type??""),version:t.publishedVersion?.commitVersion??"1"},dependencies:i}}var pI=({architectApi:t})=>({config:{description:"Retrieves all dependencies consumed by a Genesys Cloud Architect flow. Returns the flow metadata and its dependencies grouped by type.",annotations:{title:"Flow Dependencies",readOnlyHint:!0,destructiveHint:!1},inputSchema:{flowId:Cn.string().min(1).describe("The Genesys Cloud Architect flow ID")}},handler:async({flowId:e})=>{try{let i;try{i=await t.getFlow(e)}catch{return{isError:!0,content:[{type:"text",text:`Flow "${e}" not found.`}]}}let n=cI(i.type??""),a=i.publishedVersion?.commitVersion??"1",r=[],s=1;for(;;){let l=await t.getArchitectDependencytrackingConsumedresources(i.id,a,n,{pageSize:100,pageNumber:s});if(l.entities&&r.push(...l.entities),!l.nextUri)break;s++}let o=iX(i,r);return{content:[{type:"text",text:JSON.stringify(o,null,2)}]}}catch(i){return{isError:!0,content:[{type:"text",text:`Failed to retrieve flow dependencies: ${i instanceof Error?i.message:String(i)}`}]}}}});var gs=Cn.object({CLAUDE_PLUGIN_OPTION_genesys_region:Cn.string().min(1),CLAUDE_PLUGIN_OPTION_genesys_client_id:Cn.string().min(1),CLAUDE_PLUGIN_OPTION_genesys_client_secret:Cn.string().min(1)}).parse(process.env),sy=new Cc({name:"genesys-cloud-architect",version:"1.0.0"}),dI=pI({architectApi:new ry.default.ArchitectApi});sy.registerTool("flow_dependencies",dI.config,dI.handler);var hI=uI({clientId:gs.CLAUDE_PLUGIN_OPTION_genesys_client_id,clientSecret:gs.CLAUDE_PLUGIN_OPTION_genesys_client_secret,region:gs.CLAUDE_PLUGIN_OPTION_genesys_region});sy.registerTool("deploy_flow",hI.config,hI.handler);(async()=>{let t=ry.default.ApiClient.instance;t.setEnvironment(gs.CLAUDE_PLUGIN_OPTION_genesys_region),await t.loginClientCredentialsGrant(gs.CLAUDE_PLUGIN_OPTION_genesys_client_id,gs.CLAUDE_PLUGIN_OPTION_genesys_client_secret);let e=new bc;await sy.connect(e)})().catch(t=>{console.error("Failed to start server:",t),process.exit(1)}); /*! Bundled license information: mime-db/index.js: From 8e12a6478c16a69f7e065d3061ec700f875e8e64 Mon Sep 17 00:00:00 2001 From: Lucas Woodward <31957045+SketchingDev@users.noreply.github.com> Date: Mon, 1 Jun 2026 21:56:39 +0100 Subject: [PATCH 02/11] Add bin directory --- .husky/pre-commit | 1 + bin/deploy-runner.js | 117122 ++++++++++++++++++++++++++++++++++++++++ 2 files changed, 117123 insertions(+) create mode 100644 bin/deploy-runner.js diff --git a/.husky/pre-commit b/.husky/pre-commit index 4f439ee..b95380d 100644 --- a/.husky/pre-commit +++ b/.husky/pre-commit @@ -1,3 +1,4 @@ pnpm biome check --write --staged --no-errors-on-unmatched pnpm build git add servers/genesys-cloud-architect-mcp.js +git add bin/deploy-runner.js diff --git a/bin/deploy-runner.js b/bin/deploy-runner.js new file mode 100644 index 0000000..8f78c9c --- /dev/null +++ b/bin/deploy-runner.js @@ -0,0 +1,117122 @@ +"use strict"; +var __create = Object.create; +var __defProp = Object.defineProperty; +var __getOwnPropDesc = Object.getOwnPropertyDescriptor; +var __getOwnPropNames = Object.getOwnPropertyNames; +var __getProtoOf = Object.getPrototypeOf; +var __hasOwnProp = Object.prototype.hasOwnProperty; +var __glob = (map) => (path2) => { + var fn = map[path2]; + if (fn) return fn(); + throw new Error("Module not found in bundle: " + path2); +}; +var __esm = (fn, res) => function __init() { + return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res; +}; +var __commonJS = (cb, mod) => function __require() { + return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports; +}; +var __copyProps = (to, from, except, desc) => { + if (from && typeof from === "object" || typeof from === "function") { + for (let key of __getOwnPropNames(from)) + if (!__hasOwnProp.call(to, key) && key !== except) + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); + } + return to; +}; +var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps( + // If the importer is in node compatibility mode or this is not an ESM + // file that has been converted to a CommonJS file using a Babel- + // compatible transform (i.e. "__esModule" has not been set), then set + // "default" to the CommonJS "module.exports" for node compatibility. + isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target, + mod +)); + +// require("./**/*") in node_modules/.pnpm/purecloud-flow-scripting-api-sdk-javascript@0.66.1/node_modules/purecloud-flow-scripting-api-sdk-javascript/build-scripting/release/scripting.bundle.js +var globRequire; +var init_ = __esm({ + 'require("./**/*") in node_modules/.pnpm/purecloud-flow-scripting-api-sdk-javascript@0.66.1/node_modules/purecloud-flow-scripting-api-sdk-javascript/build-scripting/release/scripting.bundle.js'() { + globRequire = __glob({ + "./scripting.bundle.js": () => require_scripting_bundle() + }); + } +}); + +// node_modules/.pnpm/ws@8.20.1/node_modules/ws/lib/constants.js +var require_constants = __commonJS({ + "node_modules/.pnpm/ws@8.20.1/node_modules/ws/lib/constants.js"(exports2, module2) { + "use strict"; + var BINARY_TYPES = ["nodebuffer", "arraybuffer", "fragments"]; + var hasBlob = typeof Blob !== "undefined"; + if (hasBlob) BINARY_TYPES.push("blob"); + module2.exports = { + BINARY_TYPES, + CLOSE_TIMEOUT: 3e4, + EMPTY_BUFFER: Buffer.alloc(0), + GUID: "258EAFA5-E914-47DA-95CA-C5AB0DC85B11", + hasBlob, + kForOnEventAttribute: Symbol("kIsForOnEventAttribute"), + kListener: Symbol("kListener"), + kStatusCode: Symbol("status-code"), + kWebSocket: Symbol("websocket"), + NOOP: () => { + } + }; + } +}); + +// node_modules/.pnpm/ws@8.20.1/node_modules/ws/lib/buffer-util.js +var require_buffer_util = __commonJS({ + "node_modules/.pnpm/ws@8.20.1/node_modules/ws/lib/buffer-util.js"(exports2, module2) { + "use strict"; + var { EMPTY_BUFFER } = require_constants(); + var FastBuffer = Buffer[Symbol.species]; + function concat(list, totalLength) { + if (list.length === 0) return EMPTY_BUFFER; + if (list.length === 1) return list[0]; + const target = Buffer.allocUnsafe(totalLength); + let offset = 0; + for (let i = 0; i < list.length; i++) { + const buf = list[i]; + target.set(buf, offset); + offset += buf.length; + } + if (offset < totalLength) { + return new FastBuffer(target.buffer, target.byteOffset, offset); + } + return target; + } + function _mask(source, mask, output, offset, length) { + for (let i = 0; i < length; i++) { + output[offset + i] = source[i] ^ mask[i & 3]; + } + } + function _unmask(buffer, mask) { + for (let i = 0; i < buffer.length; i++) { + buffer[i] ^= mask[i & 3]; + } + } + function toArrayBuffer(buf) { + if (buf.length === buf.buffer.byteLength) { + return buf.buffer; + } + return buf.buffer.slice(buf.byteOffset, buf.byteOffset + buf.length); + } + function toBuffer(data) { + toBuffer.readOnly = true; + if (Buffer.isBuffer(data)) return data; + let buf; + if (data instanceof ArrayBuffer) { + buf = new FastBuffer(data); + } else if (ArrayBuffer.isView(data)) { + buf = new FastBuffer(data.buffer, data.byteOffset, data.byteLength); + } else { + buf = Buffer.from(data); + toBuffer.readOnly = false; + } + return buf; + } + module2.exports = { + concat, + mask: _mask, + toArrayBuffer, + toBuffer, + unmask: _unmask + }; + if (!process.env.WS_NO_BUFFER_UTIL) { + try { + const bufferUtil = require("bufferutil"); + module2.exports.mask = function(source, mask, output, offset, length) { + if (length < 48) _mask(source, mask, output, offset, length); + else bufferUtil.mask(source, mask, output, offset, length); + }; + module2.exports.unmask = function(buffer, mask) { + if (buffer.length < 32) _unmask(buffer, mask); + else bufferUtil.unmask(buffer, mask); + }; + } catch (e) { + } + } + } +}); + +// node_modules/.pnpm/ws@8.20.1/node_modules/ws/lib/limiter.js +var require_limiter = __commonJS({ + "node_modules/.pnpm/ws@8.20.1/node_modules/ws/lib/limiter.js"(exports2, module2) { + "use strict"; + var kDone = Symbol("kDone"); + var kRun = Symbol("kRun"); + var Limiter = class { + /** + * Creates a new `Limiter`. + * + * @param {Number} [concurrency=Infinity] The maximum number of jobs allowed + * to run concurrently + */ + constructor(concurrency) { + this[kDone] = () => { + this.pending--; + this[kRun](); + }; + this.concurrency = concurrency || Infinity; + this.jobs = []; + this.pending = 0; + } + /** + * Adds a job to the queue. + * + * @param {Function} job The job to run + * @public + */ + add(job) { + this.jobs.push(job); + this[kRun](); + } + /** + * Removes a job from the queue and runs it if possible. + * + * @private + */ + [kRun]() { + if (this.pending === this.concurrency) return; + if (this.jobs.length) { + const job = this.jobs.shift(); + this.pending++; + job(this[kDone]); + } + } + }; + module2.exports = Limiter; + } +}); + +// node_modules/.pnpm/ws@8.20.1/node_modules/ws/lib/permessage-deflate.js +var require_permessage_deflate = __commonJS({ + "node_modules/.pnpm/ws@8.20.1/node_modules/ws/lib/permessage-deflate.js"(exports2, module2) { + "use strict"; + var zlib = require("zlib"); + var bufferUtil = require_buffer_util(); + var Limiter = require_limiter(); + var { kStatusCode } = require_constants(); + var FastBuffer = Buffer[Symbol.species]; + var TRAILER = Buffer.from([0, 0, 255, 255]); + var kPerMessageDeflate = Symbol("permessage-deflate"); + var kTotalLength = Symbol("total-length"); + var kCallback = Symbol("callback"); + var kBuffers = Symbol("buffers"); + var kError = Symbol("error"); + var zlibLimiter; + var PerMessageDeflate = class { + /** + * Creates a PerMessageDeflate instance. + * + * @param {Object} [options] Configuration options + * @param {(Boolean|Number)} [options.clientMaxWindowBits] Advertise support + * for, or request, a custom client window size + * @param {Boolean} [options.clientNoContextTakeover=false] Advertise/ + * acknowledge disabling of client context takeover + * @param {Number} [options.concurrencyLimit=10] The number of concurrent + * calls to zlib + * @param {Boolean} [options.isServer=false] Create the instance in either + * server or client mode + * @param {Number} [options.maxPayload=0] The maximum allowed message length + * @param {(Boolean|Number)} [options.serverMaxWindowBits] Request/confirm the + * use of a custom server window size + * @param {Boolean} [options.serverNoContextTakeover=false] Request/accept + * disabling of server context takeover + * @param {Number} [options.threshold=1024] Size (in bytes) below which + * messages should not be compressed if context takeover is disabled + * @param {Object} [options.zlibDeflateOptions] Options to pass to zlib on + * deflate + * @param {Object} [options.zlibInflateOptions] Options to pass to zlib on + * inflate + */ + constructor(options) { + this._options = options || {}; + this._threshold = this._options.threshold !== void 0 ? this._options.threshold : 1024; + this._maxPayload = this._options.maxPayload | 0; + this._isServer = !!this._options.isServer; + this._deflate = null; + this._inflate = null; + this.params = null; + if (!zlibLimiter) { + const concurrency = this._options.concurrencyLimit !== void 0 ? this._options.concurrencyLimit : 10; + zlibLimiter = new Limiter(concurrency); + } + } + /** + * @type {String} + */ + static get extensionName() { + return "permessage-deflate"; + } + /** + * Create an extension negotiation offer. + * + * @return {Object} Extension parameters + * @public + */ + offer() { + const params = {}; + if (this._options.serverNoContextTakeover) { + params.server_no_context_takeover = true; + } + if (this._options.clientNoContextTakeover) { + params.client_no_context_takeover = true; + } + if (this._options.serverMaxWindowBits) { + params.server_max_window_bits = this._options.serverMaxWindowBits; + } + if (this._options.clientMaxWindowBits) { + params.client_max_window_bits = this._options.clientMaxWindowBits; + } else if (this._options.clientMaxWindowBits == null) { + params.client_max_window_bits = true; + } + return params; + } + /** + * Accept an extension negotiation offer/response. + * + * @param {Array} configurations The extension negotiation offers/reponse + * @return {Object} Accepted configuration + * @public + */ + accept(configurations) { + configurations = this.normalizeParams(configurations); + this.params = this._isServer ? this.acceptAsServer(configurations) : this.acceptAsClient(configurations); + return this.params; + } + /** + * Releases all resources used by the extension. + * + * @public + */ + cleanup() { + if (this._inflate) { + this._inflate.close(); + this._inflate = null; + } + if (this._deflate) { + const callback = this._deflate[kCallback]; + this._deflate.close(); + this._deflate = null; + if (callback) { + callback( + new Error( + "The deflate stream was closed while data was being processed" + ) + ); + } + } + } + /** + * Accept an extension negotiation offer. + * + * @param {Array} offers The extension negotiation offers + * @return {Object} Accepted configuration + * @private + */ + acceptAsServer(offers) { + const opts = this._options; + const accepted = offers.find((params) => { + if (opts.serverNoContextTakeover === false && params.server_no_context_takeover || params.server_max_window_bits && (opts.serverMaxWindowBits === false || typeof opts.serverMaxWindowBits === "number" && opts.serverMaxWindowBits > params.server_max_window_bits) || typeof opts.clientMaxWindowBits === "number" && !params.client_max_window_bits) { + return false; + } + return true; + }); + if (!accepted) { + throw new Error("None of the extension offers can be accepted"); + } + if (opts.serverNoContextTakeover) { + accepted.server_no_context_takeover = true; + } + if (opts.clientNoContextTakeover) { + accepted.client_no_context_takeover = true; + } + if (typeof opts.serverMaxWindowBits === "number") { + accepted.server_max_window_bits = opts.serverMaxWindowBits; + } + if (typeof opts.clientMaxWindowBits === "number") { + accepted.client_max_window_bits = opts.clientMaxWindowBits; + } else if (accepted.client_max_window_bits === true || opts.clientMaxWindowBits === false) { + delete accepted.client_max_window_bits; + } + return accepted; + } + /** + * Accept the extension negotiation response. + * + * @param {Array} response The extension negotiation response + * @return {Object} Accepted configuration + * @private + */ + acceptAsClient(response) { + const params = response[0]; + if (this._options.clientNoContextTakeover === false && params.client_no_context_takeover) { + throw new Error('Unexpected parameter "client_no_context_takeover"'); + } + if (!params.client_max_window_bits) { + if (typeof this._options.clientMaxWindowBits === "number") { + params.client_max_window_bits = this._options.clientMaxWindowBits; + } + } else if (this._options.clientMaxWindowBits === false || typeof this._options.clientMaxWindowBits === "number" && params.client_max_window_bits > this._options.clientMaxWindowBits) { + throw new Error( + 'Unexpected or invalid parameter "client_max_window_bits"' + ); + } + return params; + } + /** + * Normalize parameters. + * + * @param {Array} configurations The extension negotiation offers/reponse + * @return {Array} The offers/response with normalized parameters + * @private + */ + normalizeParams(configurations) { + configurations.forEach((params) => { + Object.keys(params).forEach((key) => { + let value = params[key]; + if (value.length > 1) { + throw new Error(`Parameter "${key}" must have only a single value`); + } + value = value[0]; + if (key === "client_max_window_bits") { + if (value !== true) { + const num = +value; + if (!Number.isInteger(num) || num < 8 || num > 15) { + throw new TypeError( + `Invalid value for parameter "${key}": ${value}` + ); + } + value = num; + } else if (!this._isServer) { + throw new TypeError( + `Invalid value for parameter "${key}": ${value}` + ); + } + } else if (key === "server_max_window_bits") { + const num = +value; + if (!Number.isInteger(num) || num < 8 || num > 15) { + throw new TypeError( + `Invalid value for parameter "${key}": ${value}` + ); + } + value = num; + } else if (key === "client_no_context_takeover" || key === "server_no_context_takeover") { + if (value !== true) { + throw new TypeError( + `Invalid value for parameter "${key}": ${value}` + ); + } + } else { + throw new Error(`Unknown parameter "${key}"`); + } + params[key] = value; + }); + }); + return configurations; + } + /** + * Decompress data. Concurrency limited. + * + * @param {Buffer} data Compressed data + * @param {Boolean} fin Specifies whether or not this is the last fragment + * @param {Function} callback Callback + * @public + */ + decompress(data, fin, callback) { + zlibLimiter.add((done) => { + this._decompress(data, fin, (err, result) => { + done(); + callback(err, result); + }); + }); + } + /** + * Compress data. Concurrency limited. + * + * @param {(Buffer|String)} data Data to compress + * @param {Boolean} fin Specifies whether or not this is the last fragment + * @param {Function} callback Callback + * @public + */ + compress(data, fin, callback) { + zlibLimiter.add((done) => { + this._compress(data, fin, (err, result) => { + done(); + callback(err, result); + }); + }); + } + /** + * Decompress data. + * + * @param {Buffer} data Compressed data + * @param {Boolean} fin Specifies whether or not this is the last fragment + * @param {Function} callback Callback + * @private + */ + _decompress(data, fin, callback) { + const endpoint = this._isServer ? "client" : "server"; + if (!this._inflate) { + const key = `${endpoint}_max_window_bits`; + const windowBits = typeof this.params[key] !== "number" ? zlib.Z_DEFAULT_WINDOWBITS : this.params[key]; + this._inflate = zlib.createInflateRaw({ + ...this._options.zlibInflateOptions, + windowBits + }); + this._inflate[kPerMessageDeflate] = this; + this._inflate[kTotalLength] = 0; + this._inflate[kBuffers] = []; + this._inflate.on("error", inflateOnError); + this._inflate.on("data", inflateOnData); + } + this._inflate[kCallback] = callback; + this._inflate.write(data); + if (fin) this._inflate.write(TRAILER); + this._inflate.flush(() => { + const err = this._inflate[kError]; + if (err) { + this._inflate.close(); + this._inflate = null; + callback(err); + return; + } + const data2 = bufferUtil.concat( + this._inflate[kBuffers], + this._inflate[kTotalLength] + ); + if (this._inflate._readableState.endEmitted) { + this._inflate.close(); + this._inflate = null; + } else { + this._inflate[kTotalLength] = 0; + this._inflate[kBuffers] = []; + if (fin && this.params[`${endpoint}_no_context_takeover`]) { + this._inflate.reset(); + } + } + callback(null, data2); + }); + } + /** + * Compress data. + * + * @param {(Buffer|String)} data Data to compress + * @param {Boolean} fin Specifies whether or not this is the last fragment + * @param {Function} callback Callback + * @private + */ + _compress(data, fin, callback) { + const endpoint = this._isServer ? "server" : "client"; + if (!this._deflate) { + const key = `${endpoint}_max_window_bits`; + const windowBits = typeof this.params[key] !== "number" ? zlib.Z_DEFAULT_WINDOWBITS : this.params[key]; + this._deflate = zlib.createDeflateRaw({ + ...this._options.zlibDeflateOptions, + windowBits + }); + this._deflate[kTotalLength] = 0; + this._deflate[kBuffers] = []; + this._deflate.on("data", deflateOnData); + } + this._deflate[kCallback] = callback; + this._deflate.write(data); + this._deflate.flush(zlib.Z_SYNC_FLUSH, () => { + if (!this._deflate) { + return; + } + let data2 = bufferUtil.concat( + this._deflate[kBuffers], + this._deflate[kTotalLength] + ); + if (fin) { + data2 = new FastBuffer(data2.buffer, data2.byteOffset, data2.length - 4); + } + this._deflate[kCallback] = null; + this._deflate[kTotalLength] = 0; + this._deflate[kBuffers] = []; + if (fin && this.params[`${endpoint}_no_context_takeover`]) { + this._deflate.reset(); + } + callback(null, data2); + }); + } + }; + module2.exports = PerMessageDeflate; + function deflateOnData(chunk) { + this[kBuffers].push(chunk); + this[kTotalLength] += chunk.length; + } + function inflateOnData(chunk) { + this[kTotalLength] += chunk.length; + if (this[kPerMessageDeflate]._maxPayload < 1 || this[kTotalLength] <= this[kPerMessageDeflate]._maxPayload) { + this[kBuffers].push(chunk); + return; + } + this[kError] = new RangeError("Max payload size exceeded"); + this[kError].code = "WS_ERR_UNSUPPORTED_MESSAGE_LENGTH"; + this[kError][kStatusCode] = 1009; + this.removeListener("data", inflateOnData); + this.reset(); + } + function inflateOnError(err) { + this[kPerMessageDeflate]._inflate = null; + if (this[kError]) { + this[kCallback](this[kError]); + return; + } + err[kStatusCode] = 1007; + this[kCallback](err); + } + } +}); + +// node_modules/.pnpm/ws@8.20.1/node_modules/ws/lib/validation.js +var require_validation = __commonJS({ + "node_modules/.pnpm/ws@8.20.1/node_modules/ws/lib/validation.js"(exports2, module2) { + "use strict"; + var { isUtf8 } = require("buffer"); + var { hasBlob } = require_constants(); + var tokenChars = [ + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + // 0 - 15 + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + // 16 - 31 + 0, + 1, + 0, + 1, + 1, + 1, + 1, + 1, + 0, + 0, + 1, + 1, + 0, + 1, + 1, + 0, + // 32 - 47 + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + // 48 - 63 + 0, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + // 64 - 79 + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 0, + 0, + 0, + 1, + 1, + // 80 - 95 + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + // 96 - 111 + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 0, + 1, + 0, + 1, + 0 + // 112 - 127 + ]; + function isValidStatusCode(code) { + return code >= 1e3 && code <= 1014 && code !== 1004 && code !== 1005 && code !== 1006 || code >= 3e3 && code <= 4999; + } + function _isValidUTF8(buf) { + const len2 = buf.length; + let i = 0; + while (i < len2) { + if ((buf[i] & 128) === 0) { + i++; + } else if ((buf[i] & 224) === 192) { + if (i + 1 === len2 || (buf[i + 1] & 192) !== 128 || (buf[i] & 254) === 192) { + return false; + } + i += 2; + } else if ((buf[i] & 240) === 224) { + if (i + 2 >= len2 || (buf[i + 1] & 192) !== 128 || (buf[i + 2] & 192) !== 128 || buf[i] === 224 && (buf[i + 1] & 224) === 128 || // Overlong + buf[i] === 237 && (buf[i + 1] & 224) === 160) { + return false; + } + i += 3; + } else if ((buf[i] & 248) === 240) { + if (i + 3 >= len2 || (buf[i + 1] & 192) !== 128 || (buf[i + 2] & 192) !== 128 || (buf[i + 3] & 192) !== 128 || buf[i] === 240 && (buf[i + 1] & 240) === 128 || // Overlong + buf[i] === 244 && buf[i + 1] > 143 || buf[i] > 244) { + return false; + } + i += 4; + } else { + return false; + } + } + return true; + } + function isBlob(value) { + return hasBlob && typeof value === "object" && typeof value.arrayBuffer === "function" && typeof value.type === "string" && typeof value.stream === "function" && (value[Symbol.toStringTag] === "Blob" || value[Symbol.toStringTag] === "File"); + } + module2.exports = { + isBlob, + isValidStatusCode, + isValidUTF8: _isValidUTF8, + tokenChars + }; + if (isUtf8) { + module2.exports.isValidUTF8 = function(buf) { + return buf.length < 24 ? _isValidUTF8(buf) : isUtf8(buf); + }; + } else if (!process.env.WS_NO_UTF_8_VALIDATE) { + try { + const isValidUTF8 = require("utf-8-validate"); + module2.exports.isValidUTF8 = function(buf) { + return buf.length < 32 ? _isValidUTF8(buf) : isValidUTF8(buf); + }; + } catch (e) { + } + } + } +}); + +// node_modules/.pnpm/ws@8.20.1/node_modules/ws/lib/receiver.js +var require_receiver = __commonJS({ + "node_modules/.pnpm/ws@8.20.1/node_modules/ws/lib/receiver.js"(exports2, module2) { + "use strict"; + var { Writable } = require("stream"); + var PerMessageDeflate = require_permessage_deflate(); + var { + BINARY_TYPES, + EMPTY_BUFFER, + kStatusCode, + kWebSocket + } = require_constants(); + var { concat, toArrayBuffer, unmask } = require_buffer_util(); + var { isValidStatusCode, isValidUTF8 } = require_validation(); + var FastBuffer = Buffer[Symbol.species]; + var GET_INFO = 0; + var GET_PAYLOAD_LENGTH_16 = 1; + var GET_PAYLOAD_LENGTH_64 = 2; + var GET_MASK = 3; + var GET_DATA = 4; + var INFLATING = 5; + var DEFER_EVENT = 6; + var Receiver = class extends Writable { + /** + * Creates a Receiver instance. + * + * @param {Object} [options] Options object + * @param {Boolean} [options.allowSynchronousEvents=true] Specifies whether + * any of the `'message'`, `'ping'`, and `'pong'` events can be emitted + * multiple times in the same tick + * @param {String} [options.binaryType=nodebuffer] The type for binary data + * @param {Object} [options.extensions] An object containing the negotiated + * extensions + * @param {Boolean} [options.isServer=false] Specifies whether to operate in + * client or server mode + * @param {Number} [options.maxPayload=0] The maximum allowed message length + * @param {Boolean} [options.skipUTF8Validation=false] Specifies whether or + * not to skip UTF-8 validation for text and close messages + */ + constructor(options = {}) { + super(); + this._allowSynchronousEvents = options.allowSynchronousEvents !== void 0 ? options.allowSynchronousEvents : true; + this._binaryType = options.binaryType || BINARY_TYPES[0]; + this._extensions = options.extensions || {}; + this._isServer = !!options.isServer; + this._maxPayload = options.maxPayload | 0; + this._skipUTF8Validation = !!options.skipUTF8Validation; + this[kWebSocket] = void 0; + this._bufferedBytes = 0; + this._buffers = []; + this._compressed = false; + this._payloadLength = 0; + this._mask = void 0; + this._fragmented = 0; + this._masked = false; + this._fin = false; + this._opcode = 0; + this._totalPayloadLength = 0; + this._messageLength = 0; + this._fragments = []; + this._errored = false; + this._loop = false; + this._state = GET_INFO; + } + /** + * Implements `Writable.prototype._write()`. + * + * @param {Buffer} chunk The chunk of data to write + * @param {String} encoding The character encoding of `chunk` + * @param {Function} cb Callback + * @private + */ + _write(chunk, encoding, cb) { + if (this._opcode === 8 && this._state == GET_INFO) return cb(); + this._bufferedBytes += chunk.length; + this._buffers.push(chunk); + this.startLoop(cb); + } + /** + * Consumes `n` bytes from the buffered data. + * + * @param {Number} n The number of bytes to consume + * @return {Buffer} The consumed bytes + * @private + */ + consume(n) { + this._bufferedBytes -= n; + if (n === this._buffers[0].length) return this._buffers.shift(); + if (n < this._buffers[0].length) { + const buf = this._buffers[0]; + this._buffers[0] = new FastBuffer( + buf.buffer, + buf.byteOffset + n, + buf.length - n + ); + return new FastBuffer(buf.buffer, buf.byteOffset, n); + } + const dst = Buffer.allocUnsafe(n); + do { + const buf = this._buffers[0]; + const offset = dst.length - n; + if (n >= buf.length) { + dst.set(this._buffers.shift(), offset); + } else { + dst.set(new Uint8Array(buf.buffer, buf.byteOffset, n), offset); + this._buffers[0] = new FastBuffer( + buf.buffer, + buf.byteOffset + n, + buf.length - n + ); + } + n -= buf.length; + } while (n > 0); + return dst; + } + /** + * Starts the parsing loop. + * + * @param {Function} cb Callback + * @private + */ + startLoop(cb) { + this._loop = true; + do { + switch (this._state) { + case GET_INFO: + this.getInfo(cb); + break; + case GET_PAYLOAD_LENGTH_16: + this.getPayloadLength16(cb); + break; + case GET_PAYLOAD_LENGTH_64: + this.getPayloadLength64(cb); + break; + case GET_MASK: + this.getMask(); + break; + case GET_DATA: + this.getData(cb); + break; + case INFLATING: + case DEFER_EVENT: + this._loop = false; + return; + } + } while (this._loop); + if (!this._errored) cb(); + } + /** + * Reads the first two bytes of a frame. + * + * @param {Function} cb Callback + * @private + */ + getInfo(cb) { + if (this._bufferedBytes < 2) { + this._loop = false; + return; + } + const buf = this.consume(2); + if ((buf[0] & 48) !== 0) { + const error = this.createError( + RangeError, + "RSV2 and RSV3 must be clear", + true, + 1002, + "WS_ERR_UNEXPECTED_RSV_2_3" + ); + cb(error); + return; + } + const compressed = (buf[0] & 64) === 64; + if (compressed && !this._extensions[PerMessageDeflate.extensionName]) { + const error = this.createError( + RangeError, + "RSV1 must be clear", + true, + 1002, + "WS_ERR_UNEXPECTED_RSV_1" + ); + cb(error); + return; + } + this._fin = (buf[0] & 128) === 128; + this._opcode = buf[0] & 15; + this._payloadLength = buf[1] & 127; + if (this._opcode === 0) { + if (compressed) { + const error = this.createError( + RangeError, + "RSV1 must be clear", + true, + 1002, + "WS_ERR_UNEXPECTED_RSV_1" + ); + cb(error); + return; + } + if (!this._fragmented) { + const error = this.createError( + RangeError, + "invalid opcode 0", + true, + 1002, + "WS_ERR_INVALID_OPCODE" + ); + cb(error); + return; + } + this._opcode = this._fragmented; + } else if (this._opcode === 1 || this._opcode === 2) { + if (this._fragmented) { + const error = this.createError( + RangeError, + `invalid opcode ${this._opcode}`, + true, + 1002, + "WS_ERR_INVALID_OPCODE" + ); + cb(error); + return; + } + this._compressed = compressed; + } else if (this._opcode > 7 && this._opcode < 11) { + if (!this._fin) { + const error = this.createError( + RangeError, + "FIN must be set", + true, + 1002, + "WS_ERR_EXPECTED_FIN" + ); + cb(error); + return; + } + if (compressed) { + const error = this.createError( + RangeError, + "RSV1 must be clear", + true, + 1002, + "WS_ERR_UNEXPECTED_RSV_1" + ); + cb(error); + return; + } + if (this._payloadLength > 125 || this._opcode === 8 && this._payloadLength === 1) { + const error = this.createError( + RangeError, + `invalid payload length ${this._payloadLength}`, + true, + 1002, + "WS_ERR_INVALID_CONTROL_PAYLOAD_LENGTH" + ); + cb(error); + return; + } + } else { + const error = this.createError( + RangeError, + `invalid opcode ${this._opcode}`, + true, + 1002, + "WS_ERR_INVALID_OPCODE" + ); + cb(error); + return; + } + if (!this._fin && !this._fragmented) this._fragmented = this._opcode; + this._masked = (buf[1] & 128) === 128; + if (this._isServer) { + if (!this._masked) { + const error = this.createError( + RangeError, + "MASK must be set", + true, + 1002, + "WS_ERR_EXPECTED_MASK" + ); + cb(error); + return; + } + } else if (this._masked) { + const error = this.createError( + RangeError, + "MASK must be clear", + true, + 1002, + "WS_ERR_UNEXPECTED_MASK" + ); + cb(error); + return; + } + if (this._payloadLength === 126) this._state = GET_PAYLOAD_LENGTH_16; + else if (this._payloadLength === 127) this._state = GET_PAYLOAD_LENGTH_64; + else this.haveLength(cb); + } + /** + * Gets extended payload length (7+16). + * + * @param {Function} cb Callback + * @private + */ + getPayloadLength16(cb) { + if (this._bufferedBytes < 2) { + this._loop = false; + return; + } + this._payloadLength = this.consume(2).readUInt16BE(0); + this.haveLength(cb); + } + /** + * Gets extended payload length (7+64). + * + * @param {Function} cb Callback + * @private + */ + getPayloadLength64(cb) { + if (this._bufferedBytes < 8) { + this._loop = false; + return; + } + const buf = this.consume(8); + const num = buf.readUInt32BE(0); + if (num > Math.pow(2, 53 - 32) - 1) { + const error = this.createError( + RangeError, + "Unsupported WebSocket frame: payload length > 2^53 - 1", + false, + 1009, + "WS_ERR_UNSUPPORTED_DATA_PAYLOAD_LENGTH" + ); + cb(error); + return; + } + this._payloadLength = num * Math.pow(2, 32) + buf.readUInt32BE(4); + this.haveLength(cb); + } + /** + * Payload length has been read. + * + * @param {Function} cb Callback + * @private + */ + haveLength(cb) { + if (this._payloadLength && this._opcode < 8) { + this._totalPayloadLength += this._payloadLength; + if (this._totalPayloadLength > this._maxPayload && this._maxPayload > 0) { + const error = this.createError( + RangeError, + "Max payload size exceeded", + false, + 1009, + "WS_ERR_UNSUPPORTED_MESSAGE_LENGTH" + ); + cb(error); + return; + } + } + if (this._masked) this._state = GET_MASK; + else this._state = GET_DATA; + } + /** + * Reads mask bytes. + * + * @private + */ + getMask() { + if (this._bufferedBytes < 4) { + this._loop = false; + return; + } + this._mask = this.consume(4); + this._state = GET_DATA; + } + /** + * Reads data bytes. + * + * @param {Function} cb Callback + * @private + */ + getData(cb) { + let data = EMPTY_BUFFER; + if (this._payloadLength) { + if (this._bufferedBytes < this._payloadLength) { + this._loop = false; + return; + } + data = this.consume(this._payloadLength); + if (this._masked && (this._mask[0] | this._mask[1] | this._mask[2] | this._mask[3]) !== 0) { + unmask(data, this._mask); + } + } + if (this._opcode > 7) { + this.controlMessage(data, cb); + return; + } + if (this._compressed) { + this._state = INFLATING; + this.decompress(data, cb); + return; + } + if (data.length) { + this._messageLength = this._totalPayloadLength; + this._fragments.push(data); + } + this.dataMessage(cb); + } + /** + * Decompresses data. + * + * @param {Buffer} data Compressed data + * @param {Function} cb Callback + * @private + */ + decompress(data, cb) { + const perMessageDeflate = this._extensions[PerMessageDeflate.extensionName]; + perMessageDeflate.decompress(data, this._fin, (err, buf) => { + if (err) return cb(err); + if (buf.length) { + this._messageLength += buf.length; + if (this._messageLength > this._maxPayload && this._maxPayload > 0) { + const error = this.createError( + RangeError, + "Max payload size exceeded", + false, + 1009, + "WS_ERR_UNSUPPORTED_MESSAGE_LENGTH" + ); + cb(error); + return; + } + this._fragments.push(buf); + } + this.dataMessage(cb); + if (this._state === GET_INFO) this.startLoop(cb); + }); + } + /** + * Handles a data message. + * + * @param {Function} cb Callback + * @private + */ + dataMessage(cb) { + if (!this._fin) { + this._state = GET_INFO; + return; + } + const messageLength = this._messageLength; + const fragments = this._fragments; + this._totalPayloadLength = 0; + this._messageLength = 0; + this._fragmented = 0; + this._fragments = []; + if (this._opcode === 2) { + let data; + if (this._binaryType === "nodebuffer") { + data = concat(fragments, messageLength); + } else if (this._binaryType === "arraybuffer") { + data = toArrayBuffer(concat(fragments, messageLength)); + } else if (this._binaryType === "blob") { + data = new Blob(fragments); + } else { + data = fragments; + } + if (this._allowSynchronousEvents) { + this.emit("message", data, true); + this._state = GET_INFO; + } else { + this._state = DEFER_EVENT; + setImmediate(() => { + this.emit("message", data, true); + this._state = GET_INFO; + this.startLoop(cb); + }); + } + } else { + const buf = concat(fragments, messageLength); + if (!this._skipUTF8Validation && !isValidUTF8(buf)) { + const error = this.createError( + Error, + "invalid UTF-8 sequence", + true, + 1007, + "WS_ERR_INVALID_UTF8" + ); + cb(error); + return; + } + if (this._state === INFLATING || this._allowSynchronousEvents) { + this.emit("message", buf, false); + this._state = GET_INFO; + } else { + this._state = DEFER_EVENT; + setImmediate(() => { + this.emit("message", buf, false); + this._state = GET_INFO; + this.startLoop(cb); + }); + } + } + } + /** + * Handles a control message. + * + * @param {Buffer} data Data to handle + * @return {(Error|RangeError|undefined)} A possible error + * @private + */ + controlMessage(data, cb) { + if (this._opcode === 8) { + if (data.length === 0) { + this._loop = false; + this.emit("conclude", 1005, EMPTY_BUFFER); + this.end(); + } else { + const code = data.readUInt16BE(0); + if (!isValidStatusCode(code)) { + const error = this.createError( + RangeError, + `invalid status code ${code}`, + true, + 1002, + "WS_ERR_INVALID_CLOSE_CODE" + ); + cb(error); + return; + } + const buf = new FastBuffer( + data.buffer, + data.byteOffset + 2, + data.length - 2 + ); + if (!this._skipUTF8Validation && !isValidUTF8(buf)) { + const error = this.createError( + Error, + "invalid UTF-8 sequence", + true, + 1007, + "WS_ERR_INVALID_UTF8" + ); + cb(error); + return; + } + this._loop = false; + this.emit("conclude", code, buf); + this.end(); + } + this._state = GET_INFO; + return; + } + if (this._allowSynchronousEvents) { + this.emit(this._opcode === 9 ? "ping" : "pong", data); + this._state = GET_INFO; + } else { + this._state = DEFER_EVENT; + setImmediate(() => { + this.emit(this._opcode === 9 ? "ping" : "pong", data); + this._state = GET_INFO; + this.startLoop(cb); + }); + } + } + /** + * Builds an error object. + * + * @param {function(new:Error|RangeError)} ErrorCtor The error constructor + * @param {String} message The error message + * @param {Boolean} prefix Specifies whether or not to add a default prefix to + * `message` + * @param {Number} statusCode The status code + * @param {String} errorCode The exposed error code + * @return {(Error|RangeError)} The error + * @private + */ + createError(ErrorCtor, message, prefix, statusCode, errorCode) { + this._loop = false; + this._errored = true; + const err = new ErrorCtor( + prefix ? `Invalid WebSocket frame: ${message}` : message + ); + Error.captureStackTrace(err, this.createError); + err.code = errorCode; + err[kStatusCode] = statusCode; + return err; + } + }; + module2.exports = Receiver; + } +}); + +// node_modules/.pnpm/ws@8.20.1/node_modules/ws/lib/sender.js +var require_sender = __commonJS({ + "node_modules/.pnpm/ws@8.20.1/node_modules/ws/lib/sender.js"(exports2, module2) { + "use strict"; + var { Duplex } = require("stream"); + var { randomFillSync } = require("crypto"); + var { + types: { isUint8Array } + } = require("util"); + var PerMessageDeflate = require_permessage_deflate(); + var { EMPTY_BUFFER, kWebSocket, NOOP } = require_constants(); + var { isBlob, isValidStatusCode } = require_validation(); + var { mask: applyMask, toBuffer } = require_buffer_util(); + var kByteLength = Symbol("kByteLength"); + var maskBuffer = Buffer.alloc(4); + var RANDOM_POOL_SIZE = 8 * 1024; + var randomPool; + var randomPoolPointer = RANDOM_POOL_SIZE; + var DEFAULT = 0; + var DEFLATING = 1; + var GET_BLOB_DATA = 2; + var Sender = class _Sender { + /** + * Creates a Sender instance. + * + * @param {Duplex} socket The connection socket + * @param {Object} [extensions] An object containing the negotiated extensions + * @param {Function} [generateMask] The function used to generate the masking + * key + */ + constructor(socket, extensions, generateMask) { + this._extensions = extensions || {}; + if (generateMask) { + this._generateMask = generateMask; + this._maskBuffer = Buffer.alloc(4); + } + this._socket = socket; + this._firstFragment = true; + this._compress = false; + this._bufferedBytes = 0; + this._queue = []; + this._state = DEFAULT; + this.onerror = NOOP; + this[kWebSocket] = void 0; + } + /** + * Frames a piece of data according to the HyBi WebSocket protocol. + * + * @param {(Buffer|String)} data The data to frame + * @param {Object} options Options object + * @param {Boolean} [options.fin=false] Specifies whether or not to set the + * FIN bit + * @param {Function} [options.generateMask] The function used to generate the + * masking key + * @param {Boolean} [options.mask=false] Specifies whether or not to mask + * `data` + * @param {Buffer} [options.maskBuffer] The buffer used to store the masking + * key + * @param {Number} options.opcode The opcode + * @param {Boolean} [options.readOnly=false] Specifies whether `data` can be + * modified + * @param {Boolean} [options.rsv1=false] Specifies whether or not to set the + * RSV1 bit + * @return {(Buffer|String)[]} The framed data + * @public + */ + static frame(data, options) { + let mask; + let merge = false; + let offset = 2; + let skipMasking = false; + if (options.mask) { + mask = options.maskBuffer || maskBuffer; + if (options.generateMask) { + options.generateMask(mask); + } else { + if (randomPoolPointer === RANDOM_POOL_SIZE) { + if (randomPool === void 0) { + randomPool = Buffer.alloc(RANDOM_POOL_SIZE); + } + randomFillSync(randomPool, 0, RANDOM_POOL_SIZE); + randomPoolPointer = 0; + } + mask[0] = randomPool[randomPoolPointer++]; + mask[1] = randomPool[randomPoolPointer++]; + mask[2] = randomPool[randomPoolPointer++]; + mask[3] = randomPool[randomPoolPointer++]; + } + skipMasking = (mask[0] | mask[1] | mask[2] | mask[3]) === 0; + offset = 6; + } + let dataLength; + if (typeof data === "string") { + if ((!options.mask || skipMasking) && options[kByteLength] !== void 0) { + dataLength = options[kByteLength]; + } else { + data = Buffer.from(data); + dataLength = data.length; + } + } else { + dataLength = data.length; + merge = options.mask && options.readOnly && !skipMasking; + } + let payloadLength = dataLength; + if (dataLength >= 65536) { + offset += 8; + payloadLength = 127; + } else if (dataLength > 125) { + offset += 2; + payloadLength = 126; + } + const target = Buffer.allocUnsafe(merge ? dataLength + offset : offset); + target[0] = options.fin ? options.opcode | 128 : options.opcode; + if (options.rsv1) target[0] |= 64; + target[1] = payloadLength; + if (payloadLength === 126) { + target.writeUInt16BE(dataLength, 2); + } else if (payloadLength === 127) { + target[2] = target[3] = 0; + target.writeUIntBE(dataLength, 4, 6); + } + if (!options.mask) return [target, data]; + target[1] |= 128; + target[offset - 4] = mask[0]; + target[offset - 3] = mask[1]; + target[offset - 2] = mask[2]; + target[offset - 1] = mask[3]; + if (skipMasking) return [target, data]; + if (merge) { + applyMask(data, mask, target, offset, dataLength); + return [target]; + } + applyMask(data, mask, data, 0, dataLength); + return [target, data]; + } + /** + * Sends a close message to the other peer. + * + * @param {Number} [code] The status code component of the body + * @param {(String|Buffer)} [data] The message component of the body + * @param {Boolean} [mask=false] Specifies whether or not to mask the message + * @param {Function} [cb] Callback + * @public + */ + close(code, data, mask, cb) { + let buf; + if (code === void 0) { + buf = EMPTY_BUFFER; + } else if (typeof code !== "number" || !isValidStatusCode(code)) { + throw new TypeError("First argument must be a valid error code number"); + } else if (data === void 0 || !data.length) { + buf = Buffer.allocUnsafe(2); + buf.writeUInt16BE(code, 0); + } else { + const length = Buffer.byteLength(data); + if (length > 123) { + throw new RangeError("The message must not be greater than 123 bytes"); + } + buf = Buffer.allocUnsafe(2 + length); + buf.writeUInt16BE(code, 0); + if (typeof data === "string") { + buf.write(data, 2); + } else if (isUint8Array(data)) { + buf.set(data, 2); + } else { + throw new TypeError("Second argument must be a string or a Uint8Array"); + } + } + const options = { + [kByteLength]: buf.length, + fin: true, + generateMask: this._generateMask, + mask, + maskBuffer: this._maskBuffer, + opcode: 8, + readOnly: false, + rsv1: false + }; + if (this._state !== DEFAULT) { + this.enqueue([this.dispatch, buf, false, options, cb]); + } else { + this.sendFrame(_Sender.frame(buf, options), cb); + } + } + /** + * Sends a ping message to the other peer. + * + * @param {*} data The message to send + * @param {Boolean} [mask=false] Specifies whether or not to mask `data` + * @param {Function} [cb] Callback + * @public + */ + ping(data, mask, cb) { + let byteLength; + let readOnly; + if (typeof data === "string") { + byteLength = Buffer.byteLength(data); + readOnly = false; + } else if (isBlob(data)) { + byteLength = data.size; + readOnly = false; + } else { + data = toBuffer(data); + byteLength = data.length; + readOnly = toBuffer.readOnly; + } + if (byteLength > 125) { + throw new RangeError("The data size must not be greater than 125 bytes"); + } + const options = { + [kByteLength]: byteLength, + fin: true, + generateMask: this._generateMask, + mask, + maskBuffer: this._maskBuffer, + opcode: 9, + readOnly, + rsv1: false + }; + if (isBlob(data)) { + if (this._state !== DEFAULT) { + this.enqueue([this.getBlobData, data, false, options, cb]); + } else { + this.getBlobData(data, false, options, cb); + } + } else if (this._state !== DEFAULT) { + this.enqueue([this.dispatch, data, false, options, cb]); + } else { + this.sendFrame(_Sender.frame(data, options), cb); + } + } + /** + * Sends a pong message to the other peer. + * + * @param {*} data The message to send + * @param {Boolean} [mask=false] Specifies whether or not to mask `data` + * @param {Function} [cb] Callback + * @public + */ + pong(data, mask, cb) { + let byteLength; + let readOnly; + if (typeof data === "string") { + byteLength = Buffer.byteLength(data); + readOnly = false; + } else if (isBlob(data)) { + byteLength = data.size; + readOnly = false; + } else { + data = toBuffer(data); + byteLength = data.length; + readOnly = toBuffer.readOnly; + } + if (byteLength > 125) { + throw new RangeError("The data size must not be greater than 125 bytes"); + } + const options = { + [kByteLength]: byteLength, + fin: true, + generateMask: this._generateMask, + mask, + maskBuffer: this._maskBuffer, + opcode: 10, + readOnly, + rsv1: false + }; + if (isBlob(data)) { + if (this._state !== DEFAULT) { + this.enqueue([this.getBlobData, data, false, options, cb]); + } else { + this.getBlobData(data, false, options, cb); + } + } else if (this._state !== DEFAULT) { + this.enqueue([this.dispatch, data, false, options, cb]); + } else { + this.sendFrame(_Sender.frame(data, options), cb); + } + } + /** + * Sends a data message to the other peer. + * + * @param {*} data The message to send + * @param {Object} options Options object + * @param {Boolean} [options.binary=false] Specifies whether `data` is binary + * or text + * @param {Boolean} [options.compress=false] Specifies whether or not to + * compress `data` + * @param {Boolean} [options.fin=false] Specifies whether the fragment is the + * last one + * @param {Boolean} [options.mask=false] Specifies whether or not to mask + * `data` + * @param {Function} [cb] Callback + * @public + */ + send(data, options, cb) { + const perMessageDeflate = this._extensions[PerMessageDeflate.extensionName]; + let opcode = options.binary ? 2 : 1; + let rsv1 = options.compress; + let byteLength; + let readOnly; + if (typeof data === "string") { + byteLength = Buffer.byteLength(data); + readOnly = false; + } else if (isBlob(data)) { + byteLength = data.size; + readOnly = false; + } else { + data = toBuffer(data); + byteLength = data.length; + readOnly = toBuffer.readOnly; + } + if (this._firstFragment) { + this._firstFragment = false; + if (rsv1 && perMessageDeflate && perMessageDeflate.params[perMessageDeflate._isServer ? "server_no_context_takeover" : "client_no_context_takeover"]) { + rsv1 = byteLength >= perMessageDeflate._threshold; + } + this._compress = rsv1; + } else { + rsv1 = false; + opcode = 0; + } + if (options.fin) this._firstFragment = true; + const opts = { + [kByteLength]: byteLength, + fin: options.fin, + generateMask: this._generateMask, + mask: options.mask, + maskBuffer: this._maskBuffer, + opcode, + readOnly, + rsv1 + }; + if (isBlob(data)) { + if (this._state !== DEFAULT) { + this.enqueue([this.getBlobData, data, this._compress, opts, cb]); + } else { + this.getBlobData(data, this._compress, opts, cb); + } + } else if (this._state !== DEFAULT) { + this.enqueue([this.dispatch, data, this._compress, opts, cb]); + } else { + this.dispatch(data, this._compress, opts, cb); + } + } + /** + * Gets the contents of a blob as binary data. + * + * @param {Blob} blob The blob + * @param {Boolean} [compress=false] Specifies whether or not to compress + * the data + * @param {Object} options Options object + * @param {Boolean} [options.fin=false] Specifies whether or not to set the + * FIN bit + * @param {Function} [options.generateMask] The function used to generate the + * masking key + * @param {Boolean} [options.mask=false] Specifies whether or not to mask + * `data` + * @param {Buffer} [options.maskBuffer] The buffer used to store the masking + * key + * @param {Number} options.opcode The opcode + * @param {Boolean} [options.readOnly=false] Specifies whether `data` can be + * modified + * @param {Boolean} [options.rsv1=false] Specifies whether or not to set the + * RSV1 bit + * @param {Function} [cb] Callback + * @private + */ + getBlobData(blob, compress, options, cb) { + this._bufferedBytes += options[kByteLength]; + this._state = GET_BLOB_DATA; + blob.arrayBuffer().then((arrayBuffer) => { + if (this._socket.destroyed) { + const err = new Error( + "The socket was closed while the blob was being read" + ); + process.nextTick(callCallbacks, this, err, cb); + return; + } + this._bufferedBytes -= options[kByteLength]; + const data = toBuffer(arrayBuffer); + if (!compress) { + this._state = DEFAULT; + this.sendFrame(_Sender.frame(data, options), cb); + this.dequeue(); + } else { + this.dispatch(data, compress, options, cb); + } + }).catch((err) => { + process.nextTick(onError, this, err, cb); + }); + } + /** + * Dispatches a message. + * + * @param {(Buffer|String)} data The message to send + * @param {Boolean} [compress=false] Specifies whether or not to compress + * `data` + * @param {Object} options Options object + * @param {Boolean} [options.fin=false] Specifies whether or not to set the + * FIN bit + * @param {Function} [options.generateMask] The function used to generate the + * masking key + * @param {Boolean} [options.mask=false] Specifies whether or not to mask + * `data` + * @param {Buffer} [options.maskBuffer] The buffer used to store the masking + * key + * @param {Number} options.opcode The opcode + * @param {Boolean} [options.readOnly=false] Specifies whether `data` can be + * modified + * @param {Boolean} [options.rsv1=false] Specifies whether or not to set the + * RSV1 bit + * @param {Function} [cb] Callback + * @private + */ + dispatch(data, compress, options, cb) { + if (!compress) { + this.sendFrame(_Sender.frame(data, options), cb); + return; + } + const perMessageDeflate = this._extensions[PerMessageDeflate.extensionName]; + this._bufferedBytes += options[kByteLength]; + this._state = DEFLATING; + perMessageDeflate.compress(data, options.fin, (_, buf) => { + if (this._socket.destroyed) { + const err = new Error( + "The socket was closed while data was being compressed" + ); + callCallbacks(this, err, cb); + return; + } + this._bufferedBytes -= options[kByteLength]; + this._state = DEFAULT; + options.readOnly = false; + this.sendFrame(_Sender.frame(buf, options), cb); + this.dequeue(); + }); + } + /** + * Executes queued send operations. + * + * @private + */ + dequeue() { + while (this._state === DEFAULT && this._queue.length) { + const params = this._queue.shift(); + this._bufferedBytes -= params[3][kByteLength]; + Reflect.apply(params[0], this, params.slice(1)); + } + } + /** + * Enqueues a send operation. + * + * @param {Array} params Send operation parameters. + * @private + */ + enqueue(params) { + this._bufferedBytes += params[3][kByteLength]; + this._queue.push(params); + } + /** + * Sends a frame. + * + * @param {(Buffer | String)[]} list The frame to send + * @param {Function} [cb] Callback + * @private + */ + sendFrame(list, cb) { + if (list.length === 2) { + this._socket.cork(); + this._socket.write(list[0]); + this._socket.write(list[1], cb); + this._socket.uncork(); + } else { + this._socket.write(list[0], cb); + } + } + }; + module2.exports = Sender; + function callCallbacks(sender, err, cb) { + if (typeof cb === "function") cb(err); + for (let i = 0; i < sender._queue.length; i++) { + const params = sender._queue[i]; + const callback = params[params.length - 1]; + if (typeof callback === "function") callback(err); + } + } + function onError(sender, err, cb) { + callCallbacks(sender, err, cb); + sender.onerror(err); + } + } +}); + +// node_modules/.pnpm/ws@8.20.1/node_modules/ws/lib/event-target.js +var require_event_target = __commonJS({ + "node_modules/.pnpm/ws@8.20.1/node_modules/ws/lib/event-target.js"(exports2, module2) { + "use strict"; + var { kForOnEventAttribute, kListener } = require_constants(); + var kCode = Symbol("kCode"); + var kData = Symbol("kData"); + var kError = Symbol("kError"); + var kMessage = Symbol("kMessage"); + var kReason = Symbol("kReason"); + var kTarget = Symbol("kTarget"); + var kType = Symbol("kType"); + var kWasClean = Symbol("kWasClean"); + var Event = class { + /** + * Create a new `Event`. + * + * @param {String} type The name of the event + * @throws {TypeError} If the `type` argument is not specified + */ + constructor(type) { + this[kTarget] = null; + this[kType] = type; + } + /** + * @type {*} + */ + get target() { + return this[kTarget]; + } + /** + * @type {String} + */ + get type() { + return this[kType]; + } + }; + Object.defineProperty(Event.prototype, "target", { enumerable: true }); + Object.defineProperty(Event.prototype, "type", { enumerable: true }); + var CloseEvent = class extends Event { + /** + * Create a new `CloseEvent`. + * + * @param {String} type The name of the event + * @param {Object} [options] A dictionary object that allows for setting + * attributes via object members of the same name + * @param {Number} [options.code=0] The status code explaining why the + * connection was closed + * @param {String} [options.reason=''] A human-readable string explaining why + * the connection was closed + * @param {Boolean} [options.wasClean=false] Indicates whether or not the + * connection was cleanly closed + */ + constructor(type, options = {}) { + super(type); + this[kCode] = options.code === void 0 ? 0 : options.code; + this[kReason] = options.reason === void 0 ? "" : options.reason; + this[kWasClean] = options.wasClean === void 0 ? false : options.wasClean; + } + /** + * @type {Number} + */ + get code() { + return this[kCode]; + } + /** + * @type {String} + */ + get reason() { + return this[kReason]; + } + /** + * @type {Boolean} + */ + get wasClean() { + return this[kWasClean]; + } + }; + Object.defineProperty(CloseEvent.prototype, "code", { enumerable: true }); + Object.defineProperty(CloseEvent.prototype, "reason", { enumerable: true }); + Object.defineProperty(CloseEvent.prototype, "wasClean", { enumerable: true }); + var ErrorEvent = class extends Event { + /** + * Create a new `ErrorEvent`. + * + * @param {String} type The name of the event + * @param {Object} [options] A dictionary object that allows for setting + * attributes via object members of the same name + * @param {*} [options.error=null] The error that generated this event + * @param {String} [options.message=''] The error message + */ + constructor(type, options = {}) { + super(type); + this[kError] = options.error === void 0 ? null : options.error; + this[kMessage] = options.message === void 0 ? "" : options.message; + } + /** + * @type {*} + */ + get error() { + return this[kError]; + } + /** + * @type {String} + */ + get message() { + return this[kMessage]; + } + }; + Object.defineProperty(ErrorEvent.prototype, "error", { enumerable: true }); + Object.defineProperty(ErrorEvent.prototype, "message", { enumerable: true }); + var MessageEvent = class extends Event { + /** + * Create a new `MessageEvent`. + * + * @param {String} type The name of the event + * @param {Object} [options] A dictionary object that allows for setting + * attributes via object members of the same name + * @param {*} [options.data=null] The message content + */ + constructor(type, options = {}) { + super(type); + this[kData] = options.data === void 0 ? null : options.data; + } + /** + * @type {*} + */ + get data() { + return this[kData]; + } + }; + Object.defineProperty(MessageEvent.prototype, "data", { enumerable: true }); + var EventTarget = { + /** + * Register an event listener. + * + * @param {String} type A string representing the event type to listen for + * @param {(Function|Object)} handler The listener to add + * @param {Object} [options] An options object specifies characteristics about + * the event listener + * @param {Boolean} [options.once=false] A `Boolean` indicating that the + * listener should be invoked at most once after being added. If `true`, + * the listener would be automatically removed when invoked. + * @public + */ + addEventListener(type, handler, options = {}) { + for (const listener of this.listeners(type)) { + if (!options[kForOnEventAttribute] && listener[kListener] === handler && !listener[kForOnEventAttribute]) { + return; + } + } + let wrapper; + if (type === "message") { + wrapper = function onMessage(data, isBinary) { + const event = new MessageEvent("message", { + data: isBinary ? data : data.toString() + }); + event[kTarget] = this; + callListener(handler, this, event); + }; + } else if (type === "close") { + wrapper = function onClose(code, message) { + const event = new CloseEvent("close", { + code, + reason: message.toString(), + wasClean: this._closeFrameReceived && this._closeFrameSent + }); + event[kTarget] = this; + callListener(handler, this, event); + }; + } else if (type === "error") { + wrapper = function onError(error) { + const event = new ErrorEvent("error", { + error, + message: error.message + }); + event[kTarget] = this; + callListener(handler, this, event); + }; + } else if (type === "open") { + wrapper = function onOpen() { + const event = new Event("open"); + event[kTarget] = this; + callListener(handler, this, event); + }; + } else { + return; + } + wrapper[kForOnEventAttribute] = !!options[kForOnEventAttribute]; + wrapper[kListener] = handler; + if (options.once) { + this.once(type, wrapper); + } else { + this.on(type, wrapper); + } + }, + /** + * Remove an event listener. + * + * @param {String} type A string representing the event type to remove + * @param {(Function|Object)} handler The listener to remove + * @public + */ + removeEventListener(type, handler) { + for (const listener of this.listeners(type)) { + if (listener[kListener] === handler && !listener[kForOnEventAttribute]) { + this.removeListener(type, listener); + break; + } + } + } + }; + module2.exports = { + CloseEvent, + ErrorEvent, + Event, + EventTarget, + MessageEvent + }; + function callListener(listener, thisArg, event) { + if (typeof listener === "object" && listener.handleEvent) { + listener.handleEvent.call(listener, event); + } else { + listener.call(thisArg, event); + } + } + } +}); + +// node_modules/.pnpm/ws@8.20.1/node_modules/ws/lib/extension.js +var require_extension = __commonJS({ + "node_modules/.pnpm/ws@8.20.1/node_modules/ws/lib/extension.js"(exports2, module2) { + "use strict"; + var { tokenChars } = require_validation(); + function push(dest, name, elem) { + if (dest[name] === void 0) dest[name] = [elem]; + else dest[name].push(elem); + } + function parse(header) { + const offers = /* @__PURE__ */ Object.create(null); + let params = /* @__PURE__ */ Object.create(null); + let mustUnescape = false; + let isEscaping = false; + let inQuotes = false; + let extensionName; + let paramName; + let start = -1; + let code = -1; + let end = -1; + let i = 0; + for (; i < header.length; i++) { + code = header.charCodeAt(i); + if (extensionName === void 0) { + if (end === -1 && tokenChars[code] === 1) { + if (start === -1) start = i; + } else if (i !== 0 && (code === 32 || code === 9)) { + if (end === -1 && start !== -1) end = i; + } else if (code === 59 || code === 44) { + if (start === -1) { + throw new SyntaxError(`Unexpected character at index ${i}`); + } + if (end === -1) end = i; + const name = header.slice(start, end); + if (code === 44) { + push(offers, name, params); + params = /* @__PURE__ */ Object.create(null); + } else { + extensionName = name; + } + start = end = -1; + } else { + throw new SyntaxError(`Unexpected character at index ${i}`); + } + } else if (paramName === void 0) { + if (end === -1 && tokenChars[code] === 1) { + if (start === -1) start = i; + } else if (code === 32 || code === 9) { + if (end === -1 && start !== -1) end = i; + } else if (code === 59 || code === 44) { + if (start === -1) { + throw new SyntaxError(`Unexpected character at index ${i}`); + } + if (end === -1) end = i; + push(params, header.slice(start, end), true); + if (code === 44) { + push(offers, extensionName, params); + params = /* @__PURE__ */ Object.create(null); + extensionName = void 0; + } + start = end = -1; + } else if (code === 61 && start !== -1 && end === -1) { + paramName = header.slice(start, i); + start = end = -1; + } else { + throw new SyntaxError(`Unexpected character at index ${i}`); + } + } else { + if (isEscaping) { + if (tokenChars[code] !== 1) { + throw new SyntaxError(`Unexpected character at index ${i}`); + } + if (start === -1) start = i; + else if (!mustUnescape) mustUnescape = true; + isEscaping = false; + } else if (inQuotes) { + if (tokenChars[code] === 1) { + if (start === -1) start = i; + } else if (code === 34 && start !== -1) { + inQuotes = false; + end = i; + } else if (code === 92) { + isEscaping = true; + } else { + throw new SyntaxError(`Unexpected character at index ${i}`); + } + } else if (code === 34 && header.charCodeAt(i - 1) === 61) { + inQuotes = true; + } else if (end === -1 && tokenChars[code] === 1) { + if (start === -1) start = i; + } else if (start !== -1 && (code === 32 || code === 9)) { + if (end === -1) end = i; + } else if (code === 59 || code === 44) { + if (start === -1) { + throw new SyntaxError(`Unexpected character at index ${i}`); + } + if (end === -1) end = i; + let value = header.slice(start, end); + if (mustUnescape) { + value = value.replace(/\\/g, ""); + mustUnescape = false; + } + push(params, paramName, value); + if (code === 44) { + push(offers, extensionName, params); + params = /* @__PURE__ */ Object.create(null); + extensionName = void 0; + } + paramName = void 0; + start = end = -1; + } else { + throw new SyntaxError(`Unexpected character at index ${i}`); + } + } + } + if (start === -1 || inQuotes || code === 32 || code === 9) { + throw new SyntaxError("Unexpected end of input"); + } + if (end === -1) end = i; + const token = header.slice(start, end); + if (extensionName === void 0) { + push(offers, token, params); + } else { + if (paramName === void 0) { + push(params, token, true); + } else if (mustUnescape) { + push(params, paramName, token.replace(/\\/g, "")); + } else { + push(params, paramName, token); + } + push(offers, extensionName, params); + } + return offers; + } + function format(extensions) { + return Object.keys(extensions).map((extension) => { + let configurations = extensions[extension]; + if (!Array.isArray(configurations)) configurations = [configurations]; + return configurations.map((params) => { + return [extension].concat( + Object.keys(params).map((k) => { + let values = params[k]; + if (!Array.isArray(values)) values = [values]; + return values.map((v) => v === true ? k : `${k}=${v}`).join("; "); + }) + ).join("; "); + }).join(", "); + }).join(", "); + } + module2.exports = { format, parse }; + } +}); + +// node_modules/.pnpm/ws@8.20.1/node_modules/ws/lib/websocket.js +var require_websocket = __commonJS({ + "node_modules/.pnpm/ws@8.20.1/node_modules/ws/lib/websocket.js"(exports2, module2) { + "use strict"; + var EventEmitter = require("events"); + var https2 = require("https"); + var http = require("http"); + var net = require("net"); + var tls = require("tls"); + var { randomBytes, createHash } = require("crypto"); + var { Duplex, Readable } = require("stream"); + var { URL: URL2 } = require("url"); + var PerMessageDeflate = require_permessage_deflate(); + var Receiver = require_receiver(); + var Sender = require_sender(); + var { isBlob } = require_validation(); + var { + BINARY_TYPES, + CLOSE_TIMEOUT, + EMPTY_BUFFER, + GUID, + kForOnEventAttribute, + kListener, + kStatusCode, + kWebSocket, + NOOP + } = require_constants(); + var { + EventTarget: { addEventListener, removeEventListener } + } = require_event_target(); + var { format, parse } = require_extension(); + var { toBuffer } = require_buffer_util(); + var kAborted = Symbol("kAborted"); + var protocolVersions = [8, 13]; + var readyStates = ["CONNECTING", "OPEN", "CLOSING", "CLOSED"]; + var subprotocolRegex = /^[!#$%&'*+\-.0-9A-Z^_`|a-z~]+$/; + var WebSocket = class _WebSocket extends EventEmitter { + /** + * Create a new `WebSocket`. + * + * @param {(String|URL)} address The URL to which to connect + * @param {(String|String[])} [protocols] The subprotocols + * @param {Object} [options] Connection options + */ + constructor(address, protocols, options) { + super(); + this._binaryType = BINARY_TYPES[0]; + this._closeCode = 1006; + this._closeFrameReceived = false; + this._closeFrameSent = false; + this._closeMessage = EMPTY_BUFFER; + this._closeTimer = null; + this._errorEmitted = false; + this._extensions = {}; + this._paused = false; + this._protocol = ""; + this._readyState = _WebSocket.CONNECTING; + this._receiver = null; + this._sender = null; + this._socket = null; + if (address !== null) { + this._bufferedAmount = 0; + this._isServer = false; + this._redirects = 0; + if (protocols === void 0) { + protocols = []; + } else if (!Array.isArray(protocols)) { + if (typeof protocols === "object" && protocols !== null) { + options = protocols; + protocols = []; + } else { + protocols = [protocols]; + } + } + initAsClient(this, address, protocols, options); + } else { + this._autoPong = options.autoPong; + this._closeTimeout = options.closeTimeout; + this._isServer = true; + } + } + /** + * For historical reasons, the custom "nodebuffer" type is used by the default + * instead of "blob". + * + * @type {String} + */ + get binaryType() { + return this._binaryType; + } + set binaryType(type) { + if (!BINARY_TYPES.includes(type)) return; + this._binaryType = type; + if (this._receiver) this._receiver._binaryType = type; + } + /** + * @type {Number} + */ + get bufferedAmount() { + if (!this._socket) return this._bufferedAmount; + return this._socket._writableState.length + this._sender._bufferedBytes; + } + /** + * @type {String} + */ + get extensions() { + return Object.keys(this._extensions).join(); + } + /** + * @type {Boolean} + */ + get isPaused() { + return this._paused; + } + /** + * @type {Function} + */ + /* istanbul ignore next */ + get onclose() { + return null; + } + /** + * @type {Function} + */ + /* istanbul ignore next */ + get onerror() { + return null; + } + /** + * @type {Function} + */ + /* istanbul ignore next */ + get onopen() { + return null; + } + /** + * @type {Function} + */ + /* istanbul ignore next */ + get onmessage() { + return null; + } + /** + * @type {String} + */ + get protocol() { + return this._protocol; + } + /** + * @type {Number} + */ + get readyState() { + return this._readyState; + } + /** + * @type {String} + */ + get url() { + return this._url; + } + /** + * Set up the socket and the internal resources. + * + * @param {Duplex} socket The network socket between the server and client + * @param {Buffer} head The first packet of the upgraded stream + * @param {Object} options Options object + * @param {Boolean} [options.allowSynchronousEvents=false] Specifies whether + * any of the `'message'`, `'ping'`, and `'pong'` events can be emitted + * multiple times in the same tick + * @param {Function} [options.generateMask] The function used to generate the + * masking key + * @param {Number} [options.maxPayload=0] The maximum allowed message size + * @param {Boolean} [options.skipUTF8Validation=false] Specifies whether or + * not to skip UTF-8 validation for text and close messages + * @private + */ + setSocket(socket, head, options) { + const receiver = new Receiver({ + allowSynchronousEvents: options.allowSynchronousEvents, + binaryType: this.binaryType, + extensions: this._extensions, + isServer: this._isServer, + maxPayload: options.maxPayload, + skipUTF8Validation: options.skipUTF8Validation + }); + const sender = new Sender(socket, this._extensions, options.generateMask); + this._receiver = receiver; + this._sender = sender; + this._socket = socket; + receiver[kWebSocket] = this; + sender[kWebSocket] = this; + socket[kWebSocket] = this; + receiver.on("conclude", receiverOnConclude); + receiver.on("drain", receiverOnDrain); + receiver.on("error", receiverOnError); + receiver.on("message", receiverOnMessage); + receiver.on("ping", receiverOnPing); + receiver.on("pong", receiverOnPong); + sender.onerror = senderOnError; + if (socket.setTimeout) socket.setTimeout(0); + if (socket.setNoDelay) socket.setNoDelay(); + if (head.length > 0) socket.unshift(head); + socket.on("close", socketOnClose); + socket.on("data", socketOnData); + socket.on("end", socketOnEnd); + socket.on("error", socketOnError); + this._readyState = _WebSocket.OPEN; + this.emit("open"); + } + /** + * Emit the `'close'` event. + * + * @private + */ + emitClose() { + if (!this._socket) { + this._readyState = _WebSocket.CLOSED; + this.emit("close", this._closeCode, this._closeMessage); + return; + } + if (this._extensions[PerMessageDeflate.extensionName]) { + this._extensions[PerMessageDeflate.extensionName].cleanup(); + } + this._receiver.removeAllListeners(); + this._readyState = _WebSocket.CLOSED; + this.emit("close", this._closeCode, this._closeMessage); + } + /** + * Start a closing handshake. + * + * +----------+ +-----------+ +----------+ + * - - -|ws.close()|-->|close frame|-->|ws.close()|- - - + * | +----------+ +-----------+ +----------+ | + * +----------+ +-----------+ | + * CLOSING |ws.close()|<--|close frame|<--+-----+ CLOSING + * +----------+ +-----------+ | + * | | | +---+ | + * +------------------------+-->|fin| - - - - + * | +---+ | +---+ + * - - - - -|fin|<---------------------+ + * +---+ + * + * @param {Number} [code] Status code explaining why the connection is closing + * @param {(String|Buffer)} [data] The reason why the connection is + * closing + * @public + */ + close(code, data) { + if (this.readyState === _WebSocket.CLOSED) return; + if (this.readyState === _WebSocket.CONNECTING) { + const msg = "WebSocket was closed before the connection was established"; + abortHandshake(this, this._req, msg); + return; + } + if (this.readyState === _WebSocket.CLOSING) { + if (this._closeFrameSent && (this._closeFrameReceived || this._receiver._writableState.errorEmitted)) { + this._socket.end(); + } + return; + } + this._readyState = _WebSocket.CLOSING; + this._sender.close(code, data, !this._isServer, (err) => { + if (err) return; + this._closeFrameSent = true; + if (this._closeFrameReceived || this._receiver._writableState.errorEmitted) { + this._socket.end(); + } + }); + setCloseTimer(this); + } + /** + * Pause the socket. + * + * @public + */ + pause() { + if (this.readyState === _WebSocket.CONNECTING || this.readyState === _WebSocket.CLOSED) { + return; + } + this._paused = true; + this._socket.pause(); + } + /** + * Send a ping. + * + * @param {*} [data] The data to send + * @param {Boolean} [mask] Indicates whether or not to mask `data` + * @param {Function} [cb] Callback which is executed when the ping is sent + * @public + */ + ping(data, mask, cb) { + if (this.readyState === _WebSocket.CONNECTING) { + throw new Error("WebSocket is not open: readyState 0 (CONNECTING)"); + } + if (typeof data === "function") { + cb = data; + data = mask = void 0; + } else if (typeof mask === "function") { + cb = mask; + mask = void 0; + } + if (typeof data === "number") data = data.toString(); + if (this.readyState !== _WebSocket.OPEN) { + sendAfterClose(this, data, cb); + return; + } + if (mask === void 0) mask = !this._isServer; + this._sender.ping(data || EMPTY_BUFFER, mask, cb); + } + /** + * Send a pong. + * + * @param {*} [data] The data to send + * @param {Boolean} [mask] Indicates whether or not to mask `data` + * @param {Function} [cb] Callback which is executed when the pong is sent + * @public + */ + pong(data, mask, cb) { + if (this.readyState === _WebSocket.CONNECTING) { + throw new Error("WebSocket is not open: readyState 0 (CONNECTING)"); + } + if (typeof data === "function") { + cb = data; + data = mask = void 0; + } else if (typeof mask === "function") { + cb = mask; + mask = void 0; + } + if (typeof data === "number") data = data.toString(); + if (this.readyState !== _WebSocket.OPEN) { + sendAfterClose(this, data, cb); + return; + } + if (mask === void 0) mask = !this._isServer; + this._sender.pong(data || EMPTY_BUFFER, mask, cb); + } + /** + * Resume the socket. + * + * @public + */ + resume() { + if (this.readyState === _WebSocket.CONNECTING || this.readyState === _WebSocket.CLOSED) { + return; + } + this._paused = false; + if (!this._receiver._writableState.needDrain) this._socket.resume(); + } + /** + * Send a data message. + * + * @param {*} data The message to send + * @param {Object} [options] Options object + * @param {Boolean} [options.binary] Specifies whether `data` is binary or + * text + * @param {Boolean} [options.compress] Specifies whether or not to compress + * `data` + * @param {Boolean} [options.fin=true] Specifies whether the fragment is the + * last one + * @param {Boolean} [options.mask] Specifies whether or not to mask `data` + * @param {Function} [cb] Callback which is executed when data is written out + * @public + */ + send(data, options, cb) { + if (this.readyState === _WebSocket.CONNECTING) { + throw new Error("WebSocket is not open: readyState 0 (CONNECTING)"); + } + if (typeof options === "function") { + cb = options; + options = {}; + } + if (typeof data === "number") data = data.toString(); + if (this.readyState !== _WebSocket.OPEN) { + sendAfterClose(this, data, cb); + return; + } + const opts = { + binary: typeof data !== "string", + mask: !this._isServer, + compress: true, + fin: true, + ...options + }; + if (!this._extensions[PerMessageDeflate.extensionName]) { + opts.compress = false; + } + this._sender.send(data || EMPTY_BUFFER, opts, cb); + } + /** + * Forcibly close the connection. + * + * @public + */ + terminate() { + if (this.readyState === _WebSocket.CLOSED) return; + if (this.readyState === _WebSocket.CONNECTING) { + const msg = "WebSocket was closed before the connection was established"; + abortHandshake(this, this._req, msg); + return; + } + if (this._socket) { + this._readyState = _WebSocket.CLOSING; + this._socket.destroy(); + } + } + }; + Object.defineProperty(WebSocket, "CONNECTING", { + enumerable: true, + value: readyStates.indexOf("CONNECTING") + }); + Object.defineProperty(WebSocket.prototype, "CONNECTING", { + enumerable: true, + value: readyStates.indexOf("CONNECTING") + }); + Object.defineProperty(WebSocket, "OPEN", { + enumerable: true, + value: readyStates.indexOf("OPEN") + }); + Object.defineProperty(WebSocket.prototype, "OPEN", { + enumerable: true, + value: readyStates.indexOf("OPEN") + }); + Object.defineProperty(WebSocket, "CLOSING", { + enumerable: true, + value: readyStates.indexOf("CLOSING") + }); + Object.defineProperty(WebSocket.prototype, "CLOSING", { + enumerable: true, + value: readyStates.indexOf("CLOSING") + }); + Object.defineProperty(WebSocket, "CLOSED", { + enumerable: true, + value: readyStates.indexOf("CLOSED") + }); + Object.defineProperty(WebSocket.prototype, "CLOSED", { + enumerable: true, + value: readyStates.indexOf("CLOSED") + }); + [ + "binaryType", + "bufferedAmount", + "extensions", + "isPaused", + "protocol", + "readyState", + "url" + ].forEach((property) => { + Object.defineProperty(WebSocket.prototype, property, { enumerable: true }); + }); + ["open", "error", "close", "message"].forEach((method) => { + Object.defineProperty(WebSocket.prototype, `on${method}`, { + enumerable: true, + get() { + for (const listener of this.listeners(method)) { + if (listener[kForOnEventAttribute]) return listener[kListener]; + } + return null; + }, + set(handler) { + for (const listener of this.listeners(method)) { + if (listener[kForOnEventAttribute]) { + this.removeListener(method, listener); + break; + } + } + if (typeof handler !== "function") return; + this.addEventListener(method, handler, { + [kForOnEventAttribute]: true + }); + } + }); + }); + WebSocket.prototype.addEventListener = addEventListener; + WebSocket.prototype.removeEventListener = removeEventListener; + module2.exports = WebSocket; + function initAsClient(websocket, address, protocols, options) { + const opts = { + allowSynchronousEvents: true, + autoPong: true, + closeTimeout: CLOSE_TIMEOUT, + protocolVersion: protocolVersions[1], + maxPayload: 100 * 1024 * 1024, + skipUTF8Validation: false, + perMessageDeflate: true, + followRedirects: false, + maxRedirects: 10, + ...options, + socketPath: void 0, + hostname: void 0, + protocol: void 0, + timeout: void 0, + method: "GET", + host: void 0, + path: void 0, + port: void 0 + }; + websocket._autoPong = opts.autoPong; + websocket._closeTimeout = opts.closeTimeout; + if (!protocolVersions.includes(opts.protocolVersion)) { + throw new RangeError( + `Unsupported protocol version: ${opts.protocolVersion} (supported versions: ${protocolVersions.join(", ")})` + ); + } + let parsedUrl; + if (address instanceof URL2) { + parsedUrl = address; + } else { + try { + parsedUrl = new URL2(address); + } catch { + throw new SyntaxError(`Invalid URL: ${address}`); + } + } + if (parsedUrl.protocol === "http:") { + parsedUrl.protocol = "ws:"; + } else if (parsedUrl.protocol === "https:") { + parsedUrl.protocol = "wss:"; + } + websocket._url = parsedUrl.href; + const isSecure = parsedUrl.protocol === "wss:"; + const isIpcUrl = parsedUrl.protocol === "ws+unix:"; + let invalidUrlMessage; + if (parsedUrl.protocol !== "ws:" && !isSecure && !isIpcUrl) { + invalidUrlMessage = `The URL's protocol must be one of "ws:", "wss:", "http:", "https:", or "ws+unix:"`; + } else if (isIpcUrl && !parsedUrl.pathname) { + invalidUrlMessage = "The URL's pathname is empty"; + } else if (parsedUrl.hash) { + invalidUrlMessage = "The URL contains a fragment identifier"; + } + if (invalidUrlMessage) { + const err = new SyntaxError(invalidUrlMessage); + if (websocket._redirects === 0) { + throw err; + } else { + emitErrorAndClose(websocket, err); + return; + } + } + const defaultPort = isSecure ? 443 : 80; + const key = randomBytes(16).toString("base64"); + const request = isSecure ? https2.request : http.request; + const protocolSet = /* @__PURE__ */ new Set(); + let perMessageDeflate; + opts.createConnection = opts.createConnection || (isSecure ? tlsConnect : netConnect); + opts.defaultPort = opts.defaultPort || defaultPort; + opts.port = parsedUrl.port || defaultPort; + opts.host = parsedUrl.hostname.startsWith("[") ? parsedUrl.hostname.slice(1, -1) : parsedUrl.hostname; + opts.headers = { + ...opts.headers, + "Sec-WebSocket-Version": opts.protocolVersion, + "Sec-WebSocket-Key": key, + Connection: "Upgrade", + Upgrade: "websocket" + }; + opts.path = parsedUrl.pathname + parsedUrl.search; + opts.timeout = opts.handshakeTimeout; + if (opts.perMessageDeflate) { + perMessageDeflate = new PerMessageDeflate({ + ...opts.perMessageDeflate, + isServer: false, + maxPayload: opts.maxPayload + }); + opts.headers["Sec-WebSocket-Extensions"] = format({ + [PerMessageDeflate.extensionName]: perMessageDeflate.offer() + }); + } + if (protocols.length) { + for (const protocol of protocols) { + if (typeof protocol !== "string" || !subprotocolRegex.test(protocol) || protocolSet.has(protocol)) { + throw new SyntaxError( + "An invalid or duplicated subprotocol was specified" + ); + } + protocolSet.add(protocol); + } + opts.headers["Sec-WebSocket-Protocol"] = protocols.join(","); + } + if (opts.origin) { + if (opts.protocolVersion < 13) { + opts.headers["Sec-WebSocket-Origin"] = opts.origin; + } else { + opts.headers.Origin = opts.origin; + } + } + if (parsedUrl.username || parsedUrl.password) { + opts.auth = `${parsedUrl.username}:${parsedUrl.password}`; + } + if (isIpcUrl) { + const parts = opts.path.split(":"); + opts.socketPath = parts[0]; + opts.path = parts[1]; + } + let req; + if (opts.followRedirects) { + if (websocket._redirects === 0) { + websocket._originalIpc = isIpcUrl; + websocket._originalSecure = isSecure; + websocket._originalHostOrSocketPath = isIpcUrl ? opts.socketPath : parsedUrl.host; + const headers = options && options.headers; + options = { ...options, headers: {} }; + if (headers) { + for (const [key2, value] of Object.entries(headers)) { + options.headers[key2.toLowerCase()] = value; + } + } + } else if (websocket.listenerCount("redirect") === 0) { + const isSameHost = isIpcUrl ? websocket._originalIpc ? opts.socketPath === websocket._originalHostOrSocketPath : false : websocket._originalIpc ? false : parsedUrl.host === websocket._originalHostOrSocketPath; + if (!isSameHost || websocket._originalSecure && !isSecure) { + delete opts.headers.authorization; + delete opts.headers.cookie; + if (!isSameHost) delete opts.headers.host; + opts.auth = void 0; + } + } + if (opts.auth && !options.headers.authorization) { + options.headers.authorization = "Basic " + Buffer.from(opts.auth).toString("base64"); + } + req = websocket._req = request(opts); + if (websocket._redirects) { + websocket.emit("redirect", websocket.url, req); + } + } else { + req = websocket._req = request(opts); + } + if (opts.timeout) { + req.on("timeout", () => { + abortHandshake(websocket, req, "Opening handshake has timed out"); + }); + } + req.on("error", (err) => { + if (req === null || req[kAborted]) return; + req = websocket._req = null; + emitErrorAndClose(websocket, err); + }); + req.on("response", (res) => { + const location2 = res.headers.location; + const statusCode = res.statusCode; + if (location2 && opts.followRedirects && statusCode >= 300 && statusCode < 400) { + if (++websocket._redirects > opts.maxRedirects) { + abortHandshake(websocket, req, "Maximum redirects exceeded"); + return; + } + req.abort(); + let addr; + try { + addr = new URL2(location2, address); + } catch (e) { + const err = new SyntaxError(`Invalid URL: ${location2}`); + emitErrorAndClose(websocket, err); + return; + } + initAsClient(websocket, addr, protocols, options); + } else if (!websocket.emit("unexpected-response", req, res)) { + abortHandshake( + websocket, + req, + `Unexpected server response: ${res.statusCode}` + ); + } + }); + req.on("upgrade", (res, socket, head) => { + websocket.emit("upgrade", res); + if (websocket.readyState !== WebSocket.CONNECTING) return; + req = websocket._req = null; + const upgrade = res.headers.upgrade; + if (upgrade === void 0 || upgrade.toLowerCase() !== "websocket") { + abortHandshake(websocket, socket, "Invalid Upgrade header"); + return; + } + const digest = createHash("sha1").update(key + GUID).digest("base64"); + if (res.headers["sec-websocket-accept"] !== digest) { + abortHandshake(websocket, socket, "Invalid Sec-WebSocket-Accept header"); + return; + } + const serverProt = res.headers["sec-websocket-protocol"]; + let protError; + if (serverProt !== void 0) { + if (!protocolSet.size) { + protError = "Server sent a subprotocol but none was requested"; + } else if (!protocolSet.has(serverProt)) { + protError = "Server sent an invalid subprotocol"; + } + } else if (protocolSet.size) { + protError = "Server sent no subprotocol"; + } + if (protError) { + abortHandshake(websocket, socket, protError); + return; + } + if (serverProt) websocket._protocol = serverProt; + const secWebSocketExtensions = res.headers["sec-websocket-extensions"]; + if (secWebSocketExtensions !== void 0) { + if (!perMessageDeflate) { + const message = "Server sent a Sec-WebSocket-Extensions header but no extension was requested"; + abortHandshake(websocket, socket, message); + return; + } + let extensions; + try { + extensions = parse(secWebSocketExtensions); + } catch (err) { + const message = "Invalid Sec-WebSocket-Extensions header"; + abortHandshake(websocket, socket, message); + return; + } + const extensionNames = Object.keys(extensions); + if (extensionNames.length !== 1 || extensionNames[0] !== PerMessageDeflate.extensionName) { + const message = "Server indicated an extension that was not requested"; + abortHandshake(websocket, socket, message); + return; + } + try { + perMessageDeflate.accept(extensions[PerMessageDeflate.extensionName]); + } catch (err) { + const message = "Invalid Sec-WebSocket-Extensions header"; + abortHandshake(websocket, socket, message); + return; + } + websocket._extensions[PerMessageDeflate.extensionName] = perMessageDeflate; + } + websocket.setSocket(socket, head, { + allowSynchronousEvents: opts.allowSynchronousEvents, + generateMask: opts.generateMask, + maxPayload: opts.maxPayload, + skipUTF8Validation: opts.skipUTF8Validation + }); + }); + if (opts.finishRequest) { + opts.finishRequest(req, websocket); + } else { + req.end(); + } + } + function emitErrorAndClose(websocket, err) { + websocket._readyState = WebSocket.CLOSING; + websocket._errorEmitted = true; + websocket.emit("error", err); + websocket.emitClose(); + } + function netConnect(options) { + options.path = options.socketPath; + return net.connect(options); + } + function tlsConnect(options) { + options.path = void 0; + if (!options.servername && options.servername !== "") { + options.servername = net.isIP(options.host) ? "" : options.host; + } + return tls.connect(options); + } + function abortHandshake(websocket, stream, message) { + websocket._readyState = WebSocket.CLOSING; + const err = new Error(message); + Error.captureStackTrace(err, abortHandshake); + if (stream.setHeader) { + stream[kAborted] = true; + stream.abort(); + if (stream.socket && !stream.socket.destroyed) { + stream.socket.destroy(); + } + process.nextTick(emitErrorAndClose, websocket, err); + } else { + stream.destroy(err); + stream.once("error", websocket.emit.bind(websocket, "error")); + stream.once("close", websocket.emitClose.bind(websocket)); + } + } + function sendAfterClose(websocket, data, cb) { + if (data) { + const length = isBlob(data) ? data.size : toBuffer(data).length; + if (websocket._socket) websocket._sender._bufferedBytes += length; + else websocket._bufferedAmount += length; + } + if (cb) { + const err = new Error( + `WebSocket is not open: readyState ${websocket.readyState} (${readyStates[websocket.readyState]})` + ); + process.nextTick(cb, err); + } + } + function receiverOnConclude(code, reason) { + const websocket = this[kWebSocket]; + websocket._closeFrameReceived = true; + websocket._closeMessage = reason; + websocket._closeCode = code; + if (websocket._socket[kWebSocket] === void 0) return; + websocket._socket.removeListener("data", socketOnData); + process.nextTick(resume, websocket._socket); + if (code === 1005) websocket.close(); + else websocket.close(code, reason); + } + function receiverOnDrain() { + const websocket = this[kWebSocket]; + if (!websocket.isPaused) websocket._socket.resume(); + } + function receiverOnError(err) { + const websocket = this[kWebSocket]; + if (websocket._socket[kWebSocket] !== void 0) { + websocket._socket.removeListener("data", socketOnData); + process.nextTick(resume, websocket._socket); + websocket.close(err[kStatusCode]); + } + if (!websocket._errorEmitted) { + websocket._errorEmitted = true; + websocket.emit("error", err); + } + } + function receiverOnFinish() { + this[kWebSocket].emitClose(); + } + function receiverOnMessage(data, isBinary) { + this[kWebSocket].emit("message", data, isBinary); + } + function receiverOnPing(data) { + const websocket = this[kWebSocket]; + if (websocket._autoPong) websocket.pong(data, !this._isServer, NOOP); + websocket.emit("ping", data); + } + function receiverOnPong(data) { + this[kWebSocket].emit("pong", data); + } + function resume(stream) { + stream.resume(); + } + function senderOnError(err) { + const websocket = this[kWebSocket]; + if (websocket.readyState === WebSocket.CLOSED) return; + if (websocket.readyState === WebSocket.OPEN) { + websocket._readyState = WebSocket.CLOSING; + setCloseTimer(websocket); + } + this._socket.end(); + if (!websocket._errorEmitted) { + websocket._errorEmitted = true; + websocket.emit("error", err); + } + } + function setCloseTimer(websocket) { + websocket._closeTimer = setTimeout( + websocket._socket.destroy.bind(websocket._socket), + websocket._closeTimeout + ); + } + function socketOnClose() { + const websocket = this[kWebSocket]; + this.removeListener("close", socketOnClose); + this.removeListener("data", socketOnData); + this.removeListener("end", socketOnEnd); + websocket._readyState = WebSocket.CLOSING; + if (!this._readableState.endEmitted && !websocket._closeFrameReceived && !websocket._receiver._writableState.errorEmitted && this._readableState.length !== 0) { + const chunk = this.read(this._readableState.length); + websocket._receiver.write(chunk); + } + websocket._receiver.end(); + this[kWebSocket] = void 0; + clearTimeout(websocket._closeTimer); + if (websocket._receiver._writableState.finished || websocket._receiver._writableState.errorEmitted) { + websocket.emitClose(); + } else { + websocket._receiver.on("error", receiverOnFinish); + websocket._receiver.on("finish", receiverOnFinish); + } + } + function socketOnData(chunk) { + if (!this[kWebSocket]._receiver.write(chunk)) { + this.pause(); + } + } + function socketOnEnd() { + const websocket = this[kWebSocket]; + websocket._readyState = WebSocket.CLOSING; + websocket._receiver.end(); + this.end(); + } + function socketOnError() { + const websocket = this[kWebSocket]; + this.removeListener("error", socketOnError); + this.on("error", NOOP); + if (websocket) { + websocket._readyState = WebSocket.CLOSING; + this.destroy(); + } + } + } +}); + +// node_modules/.pnpm/ws@8.20.1/node_modules/ws/lib/stream.js +var require_stream = __commonJS({ + "node_modules/.pnpm/ws@8.20.1/node_modules/ws/lib/stream.js"(exports2, module2) { + "use strict"; + var WebSocket = require_websocket(); + var { Duplex } = require("stream"); + function emitClose(stream) { + stream.emit("close"); + } + function duplexOnEnd() { + if (!this.destroyed && this._writableState.finished) { + this.destroy(); + } + } + function duplexOnError(err) { + this.removeListener("error", duplexOnError); + this.destroy(); + if (this.listenerCount("error") === 0) { + this.emit("error", err); + } + } + function createWebSocketStream(ws, options) { + let terminateOnDestroy = true; + const duplex = new Duplex({ + ...options, + autoDestroy: false, + emitClose: false, + objectMode: false, + writableObjectMode: false + }); + ws.on("message", function message(msg, isBinary) { + const data = !isBinary && duplex._readableState.objectMode ? msg.toString() : msg; + if (!duplex.push(data)) ws.pause(); + }); + ws.once("error", function error(err) { + if (duplex.destroyed) return; + terminateOnDestroy = false; + duplex.destroy(err); + }); + ws.once("close", function close() { + if (duplex.destroyed) return; + duplex.push(null); + }); + duplex._destroy = function(err, callback) { + if (ws.readyState === ws.CLOSED) { + callback(err); + process.nextTick(emitClose, duplex); + return; + } + let called = false; + ws.once("error", function error(err2) { + called = true; + callback(err2); + }); + ws.once("close", function close() { + if (!called) callback(err); + process.nextTick(emitClose, duplex); + }); + if (terminateOnDestroy) ws.terminate(); + }; + duplex._final = function(callback) { + if (ws.readyState === ws.CONNECTING) { + ws.once("open", function open() { + duplex._final(callback); + }); + return; + } + if (ws._socket === null) return; + if (ws._socket._writableState.finished) { + callback(); + if (duplex._readableState.endEmitted) duplex.destroy(); + } else { + ws._socket.once("finish", function finish() { + callback(); + }); + ws.close(); + } + }; + duplex._read = function() { + if (ws.isPaused) ws.resume(); + }; + duplex._write = function(chunk, encoding, callback) { + if (ws.readyState === ws.CONNECTING) { + ws.once("open", function open() { + duplex._write(chunk, encoding, callback); + }); + return; + } + ws.send(chunk, callback); + }; + duplex.on("end", duplexOnEnd); + duplex.on("error", duplexOnError); + return duplex; + } + module2.exports = createWebSocketStream; + } +}); + +// node_modules/.pnpm/ws@8.20.1/node_modules/ws/lib/subprotocol.js +var require_subprotocol = __commonJS({ + "node_modules/.pnpm/ws@8.20.1/node_modules/ws/lib/subprotocol.js"(exports2, module2) { + "use strict"; + var { tokenChars } = require_validation(); + function parse(header) { + const protocols = /* @__PURE__ */ new Set(); + let start = -1; + let end = -1; + let i = 0; + for (i; i < header.length; i++) { + const code = header.charCodeAt(i); + if (end === -1 && tokenChars[code] === 1) { + if (start === -1) start = i; + } else if (i !== 0 && (code === 32 || code === 9)) { + if (end === -1 && start !== -1) end = i; + } else if (code === 44) { + if (start === -1) { + throw new SyntaxError(`Unexpected character at index ${i}`); + } + if (end === -1) end = i; + const protocol2 = header.slice(start, end); + if (protocols.has(protocol2)) { + throw new SyntaxError(`The "${protocol2}" subprotocol is duplicated`); + } + protocols.add(protocol2); + start = end = -1; + } else { + throw new SyntaxError(`Unexpected character at index ${i}`); + } + } + if (start === -1 || end !== -1) { + throw new SyntaxError("Unexpected end of input"); + } + const protocol = header.slice(start, i); + if (protocols.has(protocol)) { + throw new SyntaxError(`The "${protocol}" subprotocol is duplicated`); + } + protocols.add(protocol); + return protocols; + } + module2.exports = { parse }; + } +}); + +// node_modules/.pnpm/ws@8.20.1/node_modules/ws/lib/websocket-server.js +var require_websocket_server = __commonJS({ + "node_modules/.pnpm/ws@8.20.1/node_modules/ws/lib/websocket-server.js"(exports2, module2) { + "use strict"; + var EventEmitter = require("events"); + var http = require("http"); + var { Duplex } = require("stream"); + var { createHash } = require("crypto"); + var extension = require_extension(); + var PerMessageDeflate = require_permessage_deflate(); + var subprotocol = require_subprotocol(); + var WebSocket = require_websocket(); + var { CLOSE_TIMEOUT, GUID, kWebSocket } = require_constants(); + var keyRegex = /^[+/0-9A-Za-z]{22}==$/; + var RUNNING = 0; + var CLOSING = 1; + var CLOSED = 2; + var WebSocketServer = class extends EventEmitter { + /** + * Create a `WebSocketServer` instance. + * + * @param {Object} options Configuration options + * @param {Boolean} [options.allowSynchronousEvents=true] Specifies whether + * any of the `'message'`, `'ping'`, and `'pong'` events can be emitted + * multiple times in the same tick + * @param {Boolean} [options.autoPong=true] Specifies whether or not to + * automatically send a pong in response to a ping + * @param {Number} [options.backlog=511] The maximum length of the queue of + * pending connections + * @param {Boolean} [options.clientTracking=true] Specifies whether or not to + * track clients + * @param {Number} [options.closeTimeout=30000] Duration in milliseconds to + * wait for the closing handshake to finish after `websocket.close()` is + * called + * @param {Function} [options.handleProtocols] A hook to handle protocols + * @param {String} [options.host] The hostname where to bind the server + * @param {Number} [options.maxPayload=104857600] The maximum allowed message + * size + * @param {Boolean} [options.noServer=false] Enable no server mode + * @param {String} [options.path] Accept only connections matching this path + * @param {(Boolean|Object)} [options.perMessageDeflate=false] Enable/disable + * permessage-deflate + * @param {Number} [options.port] The port where to bind the server + * @param {(http.Server|https.Server)} [options.server] A pre-created HTTP/S + * server to use + * @param {Boolean} [options.skipUTF8Validation=false] Specifies whether or + * not to skip UTF-8 validation for text and close messages + * @param {Function} [options.verifyClient] A hook to reject connections + * @param {Function} [options.WebSocket=WebSocket] Specifies the `WebSocket` + * class to use. It must be the `WebSocket` class or class that extends it + * @param {Function} [callback] A listener for the `listening` event + */ + constructor(options, callback) { + super(); + options = { + allowSynchronousEvents: true, + autoPong: true, + maxPayload: 100 * 1024 * 1024, + skipUTF8Validation: false, + perMessageDeflate: false, + handleProtocols: null, + clientTracking: true, + closeTimeout: CLOSE_TIMEOUT, + verifyClient: null, + noServer: false, + backlog: null, + // use default (511 as implemented in net.js) + server: null, + host: null, + path: null, + port: null, + WebSocket, + ...options + }; + if (options.port == null && !options.server && !options.noServer || options.port != null && (options.server || options.noServer) || options.server && options.noServer) { + throw new TypeError( + 'One and only one of the "port", "server", or "noServer" options must be specified' + ); + } + if (options.port != null) { + this._server = http.createServer((req, res) => { + const body = http.STATUS_CODES[426]; + res.writeHead(426, { + "Content-Length": body.length, + "Content-Type": "text/plain" + }); + res.end(body); + }); + this._server.listen( + options.port, + options.host, + options.backlog, + callback + ); + } else if (options.server) { + this._server = options.server; + } + if (this._server) { + const emitConnection = this.emit.bind(this, "connection"); + this._removeListeners = addListeners(this._server, { + listening: this.emit.bind(this, "listening"), + error: this.emit.bind(this, "error"), + upgrade: (req, socket, head) => { + this.handleUpgrade(req, socket, head, emitConnection); + } + }); + } + if (options.perMessageDeflate === true) options.perMessageDeflate = {}; + if (options.clientTracking) { + this.clients = /* @__PURE__ */ new Set(); + this._shouldEmitClose = false; + } + this.options = options; + this._state = RUNNING; + } + /** + * Returns the bound address, the address family name, and port of the server + * as reported by the operating system if listening on an IP socket. + * If the server is listening on a pipe or UNIX domain socket, the name is + * returned as a string. + * + * @return {(Object|String|null)} The address of the server + * @public + */ + address() { + if (this.options.noServer) { + throw new Error('The server is operating in "noServer" mode'); + } + if (!this._server) return null; + return this._server.address(); + } + /** + * Stop the server from accepting new connections and emit the `'close'` event + * when all existing connections are closed. + * + * @param {Function} [cb] A one-time listener for the `'close'` event + * @public + */ + close(cb) { + if (this._state === CLOSED) { + if (cb) { + this.once("close", () => { + cb(new Error("The server is not running")); + }); + } + process.nextTick(emitClose, this); + return; + } + if (cb) this.once("close", cb); + if (this._state === CLOSING) return; + this._state = CLOSING; + if (this.options.noServer || this.options.server) { + if (this._server) { + this._removeListeners(); + this._removeListeners = this._server = null; + } + if (this.clients) { + if (!this.clients.size) { + process.nextTick(emitClose, this); + } else { + this._shouldEmitClose = true; + } + } else { + process.nextTick(emitClose, this); + } + } else { + const server = this._server; + this._removeListeners(); + this._removeListeners = this._server = null; + server.close(() => { + emitClose(this); + }); + } + } + /** + * See if a given request should be handled by this server instance. + * + * @param {http.IncomingMessage} req Request object to inspect + * @return {Boolean} `true` if the request is valid, else `false` + * @public + */ + shouldHandle(req) { + if (this.options.path) { + const index = req.url.indexOf("?"); + const pathname = index !== -1 ? req.url.slice(0, index) : req.url; + if (pathname !== this.options.path) return false; + } + return true; + } + /** + * Handle a HTTP Upgrade request. + * + * @param {http.IncomingMessage} req The request object + * @param {Duplex} socket The network socket between the server and client + * @param {Buffer} head The first packet of the upgraded stream + * @param {Function} cb Callback + * @public + */ + handleUpgrade(req, socket, head, cb) { + socket.on("error", socketOnError); + const key = req.headers["sec-websocket-key"]; + const upgrade = req.headers.upgrade; + const version = +req.headers["sec-websocket-version"]; + if (req.method !== "GET") { + const message = "Invalid HTTP method"; + abortHandshakeOrEmitwsClientError(this, req, socket, 405, message); + return; + } + if (upgrade === void 0 || upgrade.toLowerCase() !== "websocket") { + const message = "Invalid Upgrade header"; + abortHandshakeOrEmitwsClientError(this, req, socket, 400, message); + return; + } + if (key === void 0 || !keyRegex.test(key)) { + const message = "Missing or invalid Sec-WebSocket-Key header"; + abortHandshakeOrEmitwsClientError(this, req, socket, 400, message); + return; + } + if (version !== 13 && version !== 8) { + const message = "Missing or invalid Sec-WebSocket-Version header"; + abortHandshakeOrEmitwsClientError(this, req, socket, 400, message, { + "Sec-WebSocket-Version": "13, 8" + }); + return; + } + if (!this.shouldHandle(req)) { + abortHandshake(socket, 400); + return; + } + const secWebSocketProtocol = req.headers["sec-websocket-protocol"]; + let protocols = /* @__PURE__ */ new Set(); + if (secWebSocketProtocol !== void 0) { + try { + protocols = subprotocol.parse(secWebSocketProtocol); + } catch (err) { + const message = "Invalid Sec-WebSocket-Protocol header"; + abortHandshakeOrEmitwsClientError(this, req, socket, 400, message); + return; + } + } + const secWebSocketExtensions = req.headers["sec-websocket-extensions"]; + const extensions = {}; + if (this.options.perMessageDeflate && secWebSocketExtensions !== void 0) { + const perMessageDeflate = new PerMessageDeflate({ + ...this.options.perMessageDeflate, + isServer: true, + maxPayload: this.options.maxPayload + }); + try { + const offers = extension.parse(secWebSocketExtensions); + if (offers[PerMessageDeflate.extensionName]) { + perMessageDeflate.accept(offers[PerMessageDeflate.extensionName]); + extensions[PerMessageDeflate.extensionName] = perMessageDeflate; + } + } catch (err) { + const message = "Invalid or unacceptable Sec-WebSocket-Extensions header"; + abortHandshakeOrEmitwsClientError(this, req, socket, 400, message); + return; + } + } + if (this.options.verifyClient) { + const info = { + origin: req.headers[`${version === 8 ? "sec-websocket-origin" : "origin"}`], + secure: !!(req.socket.authorized || req.socket.encrypted), + req + }; + if (this.options.verifyClient.length === 2) { + this.options.verifyClient(info, (verified, code, message, headers) => { + if (!verified) { + return abortHandshake(socket, code || 401, message, headers); + } + this.completeUpgrade( + extensions, + key, + protocols, + req, + socket, + head, + cb + ); + }); + return; + } + if (!this.options.verifyClient(info)) return abortHandshake(socket, 401); + } + this.completeUpgrade(extensions, key, protocols, req, socket, head, cb); + } + /** + * Upgrade the connection to WebSocket. + * + * @param {Object} extensions The accepted extensions + * @param {String} key The value of the `Sec-WebSocket-Key` header + * @param {Set} protocols The subprotocols + * @param {http.IncomingMessage} req The request object + * @param {Duplex} socket The network socket between the server and client + * @param {Buffer} head The first packet of the upgraded stream + * @param {Function} cb Callback + * @throws {Error} If called more than once with the same socket + * @private + */ + completeUpgrade(extensions, key, protocols, req, socket, head, cb) { + if (!socket.readable || !socket.writable) return socket.destroy(); + if (socket[kWebSocket]) { + throw new Error( + "server.handleUpgrade() was called more than once with the same socket, possibly due to a misconfiguration" + ); + } + if (this._state > RUNNING) return abortHandshake(socket, 503); + const digest = createHash("sha1").update(key + GUID).digest("base64"); + const headers = [ + "HTTP/1.1 101 Switching Protocols", + "Upgrade: websocket", + "Connection: Upgrade", + `Sec-WebSocket-Accept: ${digest}` + ]; + const ws = new this.options.WebSocket(null, void 0, this.options); + if (protocols.size) { + const protocol = this.options.handleProtocols ? this.options.handleProtocols(protocols, req) : protocols.values().next().value; + if (protocol) { + headers.push(`Sec-WebSocket-Protocol: ${protocol}`); + ws._protocol = protocol; + } + } + if (extensions[PerMessageDeflate.extensionName]) { + const params = extensions[PerMessageDeflate.extensionName].params; + const value = extension.format({ + [PerMessageDeflate.extensionName]: [params] + }); + headers.push(`Sec-WebSocket-Extensions: ${value}`); + ws._extensions = extensions; + } + this.emit("headers", headers, req); + socket.write(headers.concat("\r\n").join("\r\n")); + socket.removeListener("error", socketOnError); + ws.setSocket(socket, head, { + allowSynchronousEvents: this.options.allowSynchronousEvents, + maxPayload: this.options.maxPayload, + skipUTF8Validation: this.options.skipUTF8Validation + }); + if (this.clients) { + this.clients.add(ws); + ws.on("close", () => { + this.clients.delete(ws); + if (this._shouldEmitClose && !this.clients.size) { + process.nextTick(emitClose, this); + } + }); + } + cb(ws, req); + } + }; + module2.exports = WebSocketServer; + function addListeners(server, map) { + for (const event of Object.keys(map)) server.on(event, map[event]); + return function removeListeners() { + for (const event of Object.keys(map)) { + server.removeListener(event, map[event]); + } + }; + } + function emitClose(server) { + server._state = CLOSED; + server.emit("close"); + } + function socketOnError() { + this.destroy(); + } + function abortHandshake(socket, code, message, headers) { + message = message || http.STATUS_CODES[code]; + headers = { + Connection: "close", + "Content-Type": "text/html", + "Content-Length": Buffer.byteLength(message), + ...headers + }; + socket.once("finish", socket.destroy); + socket.end( + `HTTP/1.1 ${code} ${http.STATUS_CODES[code]}\r +` + Object.keys(headers).map((h) => `${h}: ${headers[h]}`).join("\r\n") + "\r\n\r\n" + message + ); + } + function abortHandshakeOrEmitwsClientError(server, req, socket, code, message, headers) { + if (server.listenerCount("wsClientError")) { + const err = new Error(message); + Error.captureStackTrace(err, abortHandshakeOrEmitwsClientError); + server.emit("wsClientError", err, socket, req); + } else { + abortHandshake(socket, code, message, headers); + } + } + } +}); + +// node_modules/.pnpm/ws@8.20.1/node_modules/ws/index.js +var require_ws = __commonJS({ + "node_modules/.pnpm/ws@8.20.1/node_modules/ws/index.js"(exports2, module2) { + "use strict"; + var createWebSocketStream = require_stream(); + var extension = require_extension(); + var PerMessageDeflate = require_permessage_deflate(); + var Receiver = require_receiver(); + var Sender = require_sender(); + var subprotocol = require_subprotocol(); + var WebSocket = require_websocket(); + var WebSocketServer = require_websocket_server(); + WebSocket.createWebSocketStream = createWebSocketStream; + WebSocket.extension = extension; + WebSocket.PerMessageDeflate = PerMessageDeflate; + WebSocket.Receiver = Receiver; + WebSocket.Sender = Sender; + WebSocket.Server = WebSocketServer; + WebSocket.subprotocol = subprotocol; + WebSocket.WebSocket = WebSocket; + WebSocket.WebSocketServer = WebSocketServer; + module2.exports = WebSocket; + } +}); + +// node_modules/.pnpm/purecloud-flow-scripting-api-sdk-javascript@0.66.1/node_modules/purecloud-flow-scripting-api-sdk-javascript/build-scripting/release/scripting.bundle.js +var require_scripting_bundle = __commonJS({ + "node_modules/.pnpm/purecloud-flow-scripting-api-sdk-javascript@0.66.1/node_modules/purecloud-flow-scripting-api-sdk-javascript/build-scripting/release/scripting.bundle.js"(exports2, module2) { + init_(); + !(function(e, t2) { + if ("object" == typeof exports2 && "object" == typeof module2) module2.exports = t2(); + else if ("function" == typeof define && define.amd) define([], t2); + else { + var i = t2(); + for (var n in i) ("object" == typeof exports2 ? exports2 : e)[n] = i[n]; + } + })(global, () => (() => { + var e, i = { 32: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.briefInqueueCallFlowListManager = void 0; + const n2 = i2(31635).__importStar(i2(24032)), r2 = i2(70726), o = i2(96618), a = i2(27862); + class s extends r2.BriefFlowListManager { + get dependencyType() { + return a.InqueueCallFlow; + } + constructor() { + super(), this.topic = n2.getTopic("BriefInqueueCallFlowListManager"), this.additionalQueryParams = { type: o.flowTypes.flowTypeInQueueCall }, this.className = "BriefInqueueFlowListManager", this.flowType = o.flowTypes.flowTypeInQueueCall, this._initialize(); + } + } + t2.briefInqueueCallFlowListManager = new s(); + }, 48: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importDefault(i2(92140)), o = i2(19596), a = i2(80295), s = i2(80295); + class l extends o.DataContract { + constructor(e3) { + super(e3), (0, s.makeUnenumerable)(this, "_destinationFlowTypes"); + } + get destinationFlowTypes() { + return this._destinationFlowTypes; + } + set destinationFlowTypes(e3) { + this._destinationFlowTypes = r2.default.isArray(e3) ? [...e3] : void 0; + } + } + t2.default = l, n2.__decorate([(0, a.enumerable)(true), n2.__metadata("design:type", Array), n2.__metadata("design:paramtypes", [Array])], l.prototype, "destinationFlowTypes", null); + }, 78: (e2, t2, i2) => { + const n2 = i2(92140), r2 = i2(74359), o = i2(45741), a = (i2(12847), i2(35515)), s = i2(73198).default, l = i2(59509), u = i2(36019).default, d = i2(87200), c = 3 * s.msPerMinute, p = 7e3, _ = 15 * s.msPerSecond; + let h = []; + const m = { error: "ERROR", info: "INFO", warning: "WARNING" }, g = function(e3, t3) { + }, f = function() { + let e3 = 0, t3 = 0; + for (; ; t3++) { + if (15 === t3 || t3 === h.length) { + t3--; + break; + } + const i3 = h[t3], n3 = h[t3].message ? i3.message.length : 0; + if (!(n3 + e3 < p)) { + if (0 === e3 && n3 > p) { + g(0, i3.message), i3.message = i3.message.substring(0, p) + "...forced_trim..."; + break; + } + t3--; + break; + } + e3 += n3; + } + return t3 >= 0 ? h.splice(0, t3 + 1) : []; + }, T = function() { + (h.length > 15 || n2.findWhere(h, { level: m.error })) && y(); + }, y = n2.throttle(function() { + (function() { + if (!a.isConnected() || 0 === h.length) return Promise.resolve(); + h.length; + const e3 = f(); + if (!e3.length) return console.error("sendTraces: Have no traces to send, this should not happen!"), Promise.resolve(); + e3.length; + const t3 = { app: { appId: "architect", appVersion: a.buildNumber }, traces: e3 }; + return a.values.local ? Promise.resolve() : u.build(d.trace).content(t3).call().catch(function(e4) { + 401 === e4.status || 403 === e4.status ? e4.message : (n2.each(t3.traces.reverse(), function(e5) { + h.unshift(e5); + }), t3.traces.length); + }).finally(function() { + h.length; + }); + })().finally(function() { + S(), T(); + }); + }, _); + function S() { + if (!h.length) return; + const e3 = h.length; + if (h.length > 500) { + let t3 = 0; + h = n2.reject(h, function(e4) { + if (t3 < 10 && e4.level === m.info) return t3++, true; + }); + let i3 = ""; + if (t3 > 0 && (i3 = "Losing oldest " + t3 + " INFO traces from buffer because it exceeded local trace buffer size of " + e3), t3 < 10 && h.length > 500) { + const e4 = 10 - t3; + h = n2.initial(h, e4); + i3 += " " + ("Losing newest " + e4 + " traces from buffer because it exceeded local trace buffer."), t3 += e4; + } + t3 > 0 && h.push(new l({ name: "architect.tracing" }, i3, m.info)); + } + } + function A(e3, t3, i3, n3) { + const r3 = new l(e3, t3, i3, n3); + h.push(r3), S(), T(); + } + function N() { + } + r2.getAuthenticatedPromise().then(function() { + h.length, setInterval(y, c); + }), o(N, { unitTest_clearBuffer: function() { + h = []; + }, unitTest_getBuffer: function() { + return h; + }, unitTest_getNextSendBatch: function() { + return f(); + }, error: function(e3, t3, i3) { + let r3 = ""; + if (n2.isString(i3)) r3 += u.formatStringForTracing.apply(null, n2.rest(arguments, 2)); + else if (!t3) return; + A(e3, r3, this.levels.error, t3); + }, info: function(e3) { + let t3 = ""; + t3 += u.formatStringForTracing.apply(null, n2.rest(arguments)), A(e3, t3, this.levels.info); + }, levels: m, warning: function(e3) { + let t3 = ""; + t3 += u.formatStringForTracing.apply(null, n2.rest(arguments)), A(e3, t3, this.levels.warning); + } }), e2.exports = new N(); + }, 84: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.DecimalType = void 0; + const n2 = i2(31635), r2 = i2(17604), o = n2.__importDefault(i2(92140)), a = i2(61870), s = n2.__importDefault(i2(73198)), l = i2(38809), u = i2(98552), d = i2(80428), c = i2(94765), p = i2(47957), _ = i2(24032).getTopic("DecimalType"); + class h extends c.ExpressionType { + constructor(e3, t3, i3) { + super(e3, t3, i3); + } + get className() { + return "DecimalType"; + } + createExpressionOptionClass() { + return new a.ExpressionTypeDecimalOptions(this.isCollection); + } + convertLitToExpression(e3, t3) { + if (!t3) return ""; + let i3 = t3.trim(); + if (0 === i3.length) return ""; + let n3 = i3.indexOf("-"); + const r3 = -1 !== n3; + -1 === n3 ? n3 = 0 : n3++; + const o2 = i3.length - 1; + for (; n3 < o2 && "0" === i3[n3] && "." !== i3[n3 + 1]; ) n3++; + n3 && (i3 = (r3 ? "-" : "") + i3.substring(n3)); + const a2 = i3.indexOf("."); + return -1 === a2 ? i3 + ".0" : a2 === i3.length - 1 ? i3 + "0" : i3; + } + getYamlObjectForLiteralSingleton(e3) { + super.getYamlObjectForLiteralSingleton(e3); + const t3 = Number(e3.text); + return o.default.isActualNumber(t3) || _.errorWithStack(null, "Invalid number parsed in DecimalType.getYamlObjectForLiteralSingleton"), t3; + } + validateLiteral(e3, t3) { + var i3, n3; + if (t3.outOfService) return true; + const o2 = Number(t3.text); + return isNaN(o2) ? (t3.setParseError((0, r2.sprintf)(p.errors.invalidValue, t3.label)), e3.addError(t3, (0, r2.sprintf)(p.errors.invalidValue, t3.label), false, true), false) : 0 === o2 || u.expressionItems.checkDecimalStr(t3.text, true) ? (0, l.validateDecimalPlaces)(o2, null === (n3 = null === (i3 = t3.options) || void 0 === i3 ? void 0 : i3.facets) || void 0 === n3 ? void 0 : n3.decimalPlaces, t3, e3) : (t3.setParseError((0, r2.sprintf)(p.expression.decimalValueTooMuchPrecision, t3.text, 1, s.default.maxPrecision)), e3.addError(t3, (0, r2.sprintf)(p.errors.invalidValue, t3.label), false, true), false); + } + convertLitToCustomJsonStr(e3, t3, i3, n3) { + return this.convertLitToExpression(e3, i3 || t3); + } + } + t2.DecimalType = h, h.typeIdentifier = d.expressionTypeNames.decimal; + }, 88: (e2, t2, i2) => { + const n2 = i2(24893), r2 = i2(7401); + function o() { + Object.defineProperties(this, { _suppressRecording: { writable: true } }), o.baseConstructor.apply(this, arguments); + } + n2.extend(o, "VoiceFlowConfiguration"), Object.defineProperties(o.prototype, { suppressRecording: { enumerable: true, get: function() { + return this._suppressRecording; + }, set: function(e3) { + this._suppressRecording = this.reviveItem(e3, r2); + } } }), e2.exports = o; + }, 120: (e2, t2, i2) => { + "use strict"; + const n2 = i2(31635), r2 = i2(96618), o = i2(79364), a = (i2(92794), n2.__importDefault(i2(92140))), s = i2(71012), l = i2(28562), u = n2.__importDefault(i2(73198)), d = i2(80428), c = (n2.__importStar(i2(28614)), i2(28614)), p = i2(35315), _ = i2(67607), h = i2(39964), m = i2(82319), g = i2(20083), f = i2(49892), T = i2(81516), y = n2.__importDefault(i2(27203)), S = n2.__importStar(i2(59288)), A = n2.__importStar(i2(36781)), N = n2.__importStar(i2(10798)), O = i2(58380), I = n2.__importStar(i2(1115)), v = n2.__importDefault(i2(4648)), C = i2(12179), b = i2(14187), E = n2.__importDefault(i2(97891)), R = n2.__importDefault(i2(81823)), w = (i2(21733), i2(47957)), D = "2.0"; + class P extends R.default { + constructor(e3, t3) { + super(e3), this.addOptionalPathsFromModel(t3), this._loadModel(t3), this.question.options.setBuilderLanguagesSequenceConfig(s.askForIntentSequences.questionSequence), this.addAutoCleanedUpEventSinkWatch(A.lastPathActionRemoved, this, this.removeUnusedOutput.bind(this)), this.sortBranches(); + } + static get branchInfo() { + return N.isFeatureAvailable(v.default.botFlowsEnhancedRecognitionFailureHandling) ? [y.default.maxNoInputsOptional, y.default.maxNoMatchesOptional] : [y.default.maxNoInputsOptional]; + } + get supportsCustomOutputPaths() { + return true; + } + static get managedProperties() { + return [{ property: "chooser", label: w.cardsAndCars.digitalMenuChooserLabel, type: d.expressionTypeNames.chooser, options: h.ExpressionTypeChooserOptions.create((e3) => e3.setUiPropertyOrder(7).setDescriptionInfo(w.cardsAndCars.digitalMenuChooserLabel, w.cardsAndCars.digitalMenuChooserDescription).setAndApplyCustomizations(p.expressionTypeCustomizedModes, p.expressionTypeCustomizedModes.literalChooser)), yamlOptions: P.createYamlOptions("chooser", (e3) => e3.setSerializeOutOfService(true)) }, { property: "choices", choiceList: true, options: f.ExpressionTypelessOptions.create() }, { property: "selection", label: w.cardsAndCars.selectionResultLabel, type: d.expressionTypeNames.string, options: T.ExpressionTypeStringOptions.create((e3) => e3.setAsOutput().setIsOptional(true).setDescriptionInfo(w.cardsAndCars.selectionResultLabel, w.cardsAndCars.selectionResultDescription).setDisableSpellcheck(true).setUiPropertyOrder(8)), yamlOptions: P.createYamlOptions("selection", (e3) => e3.setExportOrder(50)) }, { property: "knowledgeSearchResult", label: w.cardsAndCars.knowledgeSearchResultLabel, type: d.expressionTypeNames.knowledgeBaseDocument, options: g.ExpressionTypeKnowledgeBaseDocumentOptions.create((e3) => e3.setAsOutput().setDefaultVariableScope(b.scopes.flow).setIsOptional(true).setIsCollection(true).setIninTestingField("knowledgeSearchResult").setDescriptionInfo(w.cardsAndCars.knowledgeSearchResultLabel, w.cardsAndCars.knowledgeSearchResultDescription).setFeatureConfigName(v.default.botFlowsDigitalBotFlowsKnowledgeEndToEndFeature).setUiPropertyOrder(9)), yamlOptions: P.createYamlOptions("knowledgeSearchResult", (e3) => e3.setExportOrder(51)) }, { label: w.askCommon.noMatch, options: m.ExpressionTypeCommunicationOptions.create((e3) => e3.setAllowSecure(true).setUiPropertyOrder(10).setIninTestingField("noMatch").setIsOptional(true).setDefaultToNoValue(true).setDoNotTransitionToNoValue(false).setDescriptionInfo(w.askCommon.noMatch, w.askCommon.noMatchDescription).setDefaultToBuilderId(l.builderIds.parts.markdownCommunication).setScriptingPropertyName("noMatch").setBuilderLanguagesSequenceConfig(s.askForIntentSequences.noMatchSequence)), yamlOptions: P.createYamlOptions("noMatch", (e3) => e3.setPropertyName("noMatch").setExportOrder(40)), property: "noMatch", type: d.expressionTypeNames.communication }, { label: w.askCommon.noMatchReprompts, options: P.createNoMatchRepromptsOptions().setDefaultToBuilderId(l.builderIds.parts.genericCommunication), optionsForSpecificFlowTypes: [{ flowTypes: [r2.flowTypes.flowTypeDigitalBot], options: P.createNoMatchRepromptsOptions().setDefaultToBuilderId(l.builderIds.parts.markdownCommunication).setUiPropertyOrder(11) }], yamlOptions: P.createYamlOptions("noMatchReprompts", (e3) => e3.setPropertyName("noMatchReprompts").setWrappedObjectName("customizeNoMatch")), property: "noMatchReprompts", type: d.expressionTypeNames.communication }, { options: _.ExpressionTypeBooleanOptions.create((e3) => e3.setUseButton(true).setAllowModeLiteralOnly().setDefaultText("false").setIninTestingField("customizeNoMatchButton").setFeatureConfigName(v.default.botFlowsDigitalBotFlowsReprompts).setBoolText(w.askCommon.defaultNoMatch, w.askCommon.customizeNoMatch).setUiPropertyOrder(12)), yamlOptions: P.createYamlOptions("customizeNoMatch", (e3) => e3.setSkipProperty(true)), property: "customizeNoMatch", type: d.expressionTypeNames.boolean }]; + } + _updateChooser() { + this.chooser.type.setValueSourceTypeToCustom(this.chooser); + } + _updateOutOfService() { + } + onChoicesUpdated() { + this.updateChoicePaths(), this.initializeDesignTimeCalled && I.validateAction(this, false, true); + } + removeUnusedOutput(e3, t3) { + this.getOptionalBranchInfo(t3.id) && (this.chooser.type.getPossibleChoices(this.chooser, true).find((e4) => e4.type.getReferenceId(e4) === t3.id) || this.removeOptionalBranchInfoById(t3.id, false)); + } + setNewInstanceDefaults(e3) { + super.setNewInstanceDefaults(e3), this.setBranchOutOfService(y.default.maxNoInputsOptional.outputId), this.setBranchOutOfService(y.default.maxNoMatchesOptional.outputId), this.uiMetaData.version = D; + } + get isDigitalMenuActionViewModel() { + return true; + } + updateChoicePaths() { + if (!this.initializeDesignTimeCalled) return; + const e3 = (e4) => { + const t4 = S.createBranchItem(this.id, e4.choiceValueStr, null, false); + return t4.isDynamicBranch = true, e4.branch = t4, t4; + }, t3 = (e4, t4) => { + if (e4) { + const i4 = this.getBranchInfo(e4); + if (i4) return t4.branch = i4, true; + } + }, i3 = this.chooser.type.getPossibleChoices(this.chooser, true) || [], n3 = this.chooser.type.couldHaveUnknownPostbackValue(this.chooser, false), r3 = i3.map((i4) => { + if (i4.type.isPostbackChoice(i4)) { + const n4 = i4.type.getValueStr(i4).trim() || w.cardsAndCars.choiceLabelNoName; + if (n4) { + const r4 = { choice: i4, choiceValueStr: n4, branch: null }; + if (!t3(i4.type.getReferenceId(i4), r4)) { + r4.choiceValueStr = n4; + const t4 = e3(r4); + i4.type.setReferenceId(i4, t4.outputId); + } + return r4; + } + } + }), o2 = this.getBranch(y.default.default.outputId); + n3 ? o2 || this.addOptionalBranchInfo(y.default.default) : o2 && o2.hasChildren ? o2.isUnreachable = true : this.removeOptionalBranchInfoById(y.default.default.outputId); + const s2 = a.default.pluck(this.branchInfoList, "outputId"), l2 = r3.map((e4) => { + var t4; + return null === (t4 = null == e4 ? void 0 : e4.branch) || void 0 === t4 ? void 0 : t4.outputId; + }); + let u2; + for (const e4 of r3) e4 && (u2 = this.getBranch(e4.branch.outputId), u2 ? (u2.label = e4.choiceValueStr, u2.enableFull()) : u2 = this.addOptionalBranchInfo(e4.branch), u2.outOfService = !e4.choice.type.getIsEnabled(e4.choice)); + const d2 = a.default.difference(s2, l2); + for (const e4 of d2) { + switch (u2 = this.getBranch(e4), e4) { + case y.default.maxNoInputsOptional.outputId: + case y.default.maxNoMatchesOptional.outputId: + case y.default.default.outputId: + continue; + } + u2 && u2.hasChildren ? u2.isUnreachable = true : this.removeOptionalBranchInfoById(e4); + } + this.branches.sort((e4, t4) => l2.indexOf(e4.id) - l2.indexOf(t4.id)), this.updateTermination(false), A.emitter.emit(A.branchesChanged); + } + validate(e3) { + super.validate(e3), e3.isDeep && !this.isReadOnly && this.updateChoicePaths(); + } + static createNoMatchRepromptsOptions() { + return m.ExpressionTypeCommunicationOptions.create((e3) => e3.setAllowSecure(true).setIninTestingField("noMatchReprompts").setFeatureConfigName(v.default.botFlowsDigitalBotFlowsReprompts).setDescriptionInfo(w.askCommon.noMatchReprompts, w.askCommon.noMatchRepromptsDescription).setIsOptional(true).setScriptingPropertyName("noMatchReprompts").setIsCollection(true).setAllowModeLiteral(true).setMaxItems(10).setDoNotTransitionToNoValue(true).setUiPropertyOrder(11), true); + } + initializeDesignTime() { + super.initializeDesignTime(), this._updateOutOfService(), this.choices && (this.uiMetaData.version !== D && this.chooser.type.setLiteralQuickRepliesFromChoiceListViewModel(this.chooser, this.choices), this.choices.outOfService = true, this.uiMetaData.version = D, this.onChoicesUpdated()), this._updateChooser(), this.addAutoCleanedUpEventListener(A.nluUpdatedByWorkbench, () => this._updateChooser()); + const e3 = (0, o.merge)((0, O.createObservableForEvent$)(A.expressionValueChanged, this.chooser), (0, O.createObservableForEvent$)(A.collectionItemValueChanged, this.chooser), (0, O.createObservableForEvent$)(A.listOrderChanged, this.chooser)); + this.addAutoCleanedUpSubscription(e3.subscribe(() => this.onChoicesUpdated())), N.isFeatureAvailable(v.default.botFlowsDigitalBotFlowsReprompts) && (this.noMatchReprompts.outOfService = this.customizeNoMatch.model.text !== u.default.true, this.noMatch.outOfService = this.customizeNoMatch.model.text === u.default.true); + } + propertyChanged(e3) { + super.propertyChanged(e3), N.isFeatureAvailable(v.default.botFlowsDigitalBotFlowsReprompts) && "customizeNoMatch" === e3.propertyName && (this.noMatch.outOfService = this.customizeNoMatch.model.text === u.default.true, this.noMatchReprompts.outOfService = this.customizeNoMatch.model.text !== u.default.true); + } + postProcessYamlConfig(e3, t3, i3) { + var n3, r3; + null === (r3 = null === (n3 = e3.chooser) || void 0 === n3 ? void 0 : n3.lit) || void 0 === r3 || delete r3[c.PROP_LISTPICKER]; + } + } + P.info = E.default.createActionInfo({ actionClass: P, canBeInTask: true, canBeTreeNode: false, helpTopic: C.helpTopics.actions.digitalMenu, modelClass: i2(20450), name: w.actions.digitalMenu, scriptingName: "ArchActionDigitalMenu", supportsUtteranceHistoricalData: true }), t2.A = P; + }, 151: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importDefault(i2(92140)), o = n2.__importDefault(i2(11210)), a = i2(19384), s = i2(30801); + class l extends o.default { + constructor(e3) { + super(e3), this._targetArchMenu = void 0; + } + get _actionTypeId() { + return s.transferMenuActionType; + } + get displayTypeName() { + return this._scriptingName; + } + get isArchActionJumpToMenu() { + return true; + } + get targetMenu() { + if (this._coreActionViewModel.menuReference) { + const e3 = this._coreActionViewModel.parentFlow ? a.flowElementRegistrationService.getItemById(this._coreActionViewModel.parentFlow, this._coreActionViewModel.menuReference) : void 0; + if (e3) return this.coreFactory.createArchWrapper(e3); + } + } + set targetMenu(e3) { + if (r2.default.isNull(e3) || r2.default.isUndefined(e3)) return this._targetArchMenu = null, this.logNote("setting the jump to menu to null"), void this._coreActionViewModel.menu.setReference(null); + const t3 = this._infoPropSet("archMenuTarget", "targetMenu"), i3 = e3; + this._checkItem(t3, !e3 || !i3.isArchMenu && !i3.isArchMenuSubMenu, "you cannot set the target menu of a jump to menu action to be an object that is not an Architect menu or sub-menu."), this._checkItemSameParentFlow(t3, this.parentFlow, e3.parentFlow); + const n3 = this._coreActionViewModel.menu.getInvalidReferenceReason(e3._getCoreViewModel()); + this._checkItem(t3, n3, `targetMenu is not valid as the jump to menu target, reason: ${n3}`), this._targetArchMenu = e3, this.logNote("setting the jump to menu to " + e3.logStr), this._coreActionViewModel.menu.setReference(e3._getCoreViewModel()); + } + } + t2.default = l; + }, 173: (e2, t2, i2) => { + const n2 = i2(28730), r2 = i2(7401), { setPostFlowActionType: o } = i2(30801); + function a() { + Object.defineProperties(this, { _actionType: { writable: true }, _target: { writable: true }, _invocationData: { writable: true } }), this.flowId = void 0, this.flowName = void 0, this.flowVersion = void 0, this.flowLatestVersion = true, this.flowDebugPublished = false, this.voiceSurveyFlowId = void 0, this.voiceSurveyFlowName = void 0, this.voiceSurveyFlowVersion = void 0, this.voiceSurveyFlowLatestVersion = true, this.voiceSurveyFlowDebugPublished = false, this.inboundShortMessageFlowId = void 0, this.inboundShortMessageFlowName = void 0, this.inboundShortMessageFlowVersion = void 0, this.inboundShortMessageFlowLatestVersion = true, this.inboundShortMessageFlowDebugPublished = false, a.baseConstructor.apply(this, arguments); + } + n2.extend(a, o, true), Object.defineProperties(a.prototype, { pasteResolveOldToNewValues: { value: function(e3) { + a._super.pasteResolveOldToNewValues.apply(this, arguments), this.action?.pasteResolveOldToNewValues(e3), this.target.pasteResolveOldToNewValues(e3), this.invocationData.pasteResolveOldToNewValues(e3); + } }, pasteReIdOrRename: { value: function(e3) { + a._super.pasteReIdOrRename.apply(this, arguments), this.action?.pasteReIdOrRename(e3), this.target.pasteReIdOrRename(e3), this.invocationData.pasteReIdOrRename(e3); + } }, actionType: { enumerable: true, get: function() { + return this._actionType; + }, set: function(e3) { + this._actionType = this.reviveItem(e3, r2); + } }, target: { enumerable: true, get: function() { + return this._target; + }, set: function(e3) { + this._target = this.reviveItem(e3, r2); + } }, invocationData: { enumerable: true, get: function() { + return this._invocationData; + }, set: function(e3) { + this._invocationData = this.reviveItem(e3, r2); + } } }), e2.exports = a; + }, 184: (e2, t2, i2) => { + "use strict"; + const n2 = i2(31635), r2 = n2.__importDefault(i2(942)), o = i2(21647), a = i2(80428), s = i2(55026), l = i2(12179), u = n2.__importDefault(i2(97891)), d = i2(47957); + class c extends r2.default { + constructor(e3, t3) { + super(e3.parentFlow, e3), this._loadModel(t3); + } + static get managedProperties() { + return r2.default.createManagedProperties({ searchFieldPropertyName: "findId", searchFieldOptionsCallback: (e3) => e3.facets.setLengthForUuid(), searchFieldLabel: d.findActions.getJourneyOutcomeScoresBySession.idLabel, searchResultLabel: d.findActions.getJourneyOutcomeScoresBySession.resultsLabel, searchResultExpressionOptions: o.ExpressionTypeComplexOptions.create((e3) => e3.setIsCollection(true)), searchResultItemType: a.expressionTypeNames.journeyOutcomeScore }); + } + } + c.info = u.default.createActionInfo({ actionClass: c, canBeInTask: true, helpTopic: l.helpTopics.actions.getJourneyOutcomeScoresBySession, modelClass: s.GetJourneyOutcomeScoresBySessionActionModel, name: d.actions.getJourneyOutcomeScoresBySession, scriptingName: "ArchActionGetJourneyOutcomeScoresBySession" }), t2.A = c; + }, 193: (e2, t2, i2) => { + "use strict"; + var n2; + const r2 = i2(31635), o = r2.__importDefault(i2(92140)), a = r2.__importStar(i2(36781)), s = r2.__importStar(i2(10798)), l = i2(58380), u = r2.__importDefault(i2(97400)), d = i2(1115); + class c extends u.default { + constructor(e3, t3, i3) { + super(e3, t3), n2.set(this, void 0), Object.defineProperties(this, { _hideLabel: { value: false, writable: true } }), this._loadModel(i3); + } + _pushAction(e3) { + this.topParent._pushAction(e3), super._pushAction(e3); + } + _spliceAction(e3) { + this.topParent._spliceAction(e3); + const t3 = super._spliceAction(e3); + return t3 && 0 === this.actions.length && (0, l.fireEvent)(this.parent, a.lastPathActionRemoved, this), t3; + } + get _topActionId() { + return this.model.nextActionId; + } + set _topActionId(e3) { + this.model.nextActionId = e3; + } + _loadModel(e3) { + e3 && super._loadModel(e3); + } + _setModelDisabled(e3, t3) { + this.model.disabled = e3, t3 && this.updateTermination(); + } + _setModelUnreachable(e3, t3) { + this.model.unreachable = e3, t3 && this.updateTermination(); + } + _setModelOutOfService(e3, t3) { + this.model.outOfService = !!e3 || void 0, t3 && this.updateTermination(true); + } + destroyChildren() { + for (let e3 = this.children.length - 1; e3 >= 0; e3--) o.default.isFunction(this.children[e3].destroy) && (this.children[e3].isDestroyedOrDestroying || this.children[e3].destroy()), this._spliceAction(this.children[e3]); + super.destroyChildren(); + } + getConfiguration(e3, t3) { + var i3; + if (null == t3 ? void 0 : t3.isForFlowYaml) { + const n3 = this.getMainPathActions().map((i4) => i4.getConfiguration(e3, t3)), r3 = {}; + return (null === (i3 = this.branchInfo.yamlOptions) || void 0 === i3 ? void 0 : i3.exportOutOfService) && (r3.enabled = !this.outOfService), n3.length && (r3.actions = n3), Object.keys(r3).length ? r3 : null; + } + return this.model; + } + get hasChildren() { + return this.children && this.children.length > 0; + } + get id() { + return this.model.outputId; + } + get isActionPathViewModel() { + return true; + } + initialize() { + this._topActionId && (this.topAction = this.topParent.getChild(this._topActionId), this.actions.length = 0, super.initialize()); + } + _initializeDesignTime() { + super._initializeDesignTime(), this.isUnavailable && (this.outOfService = true); + } + get isSetToDisabled() { + return this.model.disabled; + } + get isUnavailable() { + var e3; + return !(!(null === (e3 = this.branchInfo) || void 0 === e3 ? void 0 : e3.featureConfigName) || !s.isFeatureUnavailable(this.branchInfo.featureConfigName)) || !(!o.default.isFunction(this.parent.isOptionalPathAvailable) || this.parent.isOptionalPathAvailable(this)); + } + get isDisabled() { + return !!o.default.find(this.parent.branches, (e3) => e3 !== this && e3.branchInfo.isActionInternal && e3.branchInfo.canTerminate && e3.isTerminating) || this.parent.isDisabled || this.isSetToDisabled || this.isUnreachable || this.outOfService; + } + set isDisabled(e3) { + !!this.model.disabled != !!e3 && this._setModelDisabled(!!e3, true); + } + get isUnreachable() { + return true === this.model.unreachable; + } + set isUnreachable(e3) { + !!this.model.unreachable != !!e3 && this._setModelUnreachable(!!e3, true), e3 && (this.isDisabled = true); + } + get isFake() { + return this.model.outputId.contains("FAKE"); + } + enableFull() { + this._setModelUnreachable(false), this._setModelDisabled(false), this._setModelOutOfService(false), this.updateTermination(); + } + get label() { + return this._hideLabel ? null : this.model.displayLabel; + } + set label(e3) { + this.model.label = e3; + } + hideLabel() { + this._hideLabel = true; + } + get isBuiltInBranch() { + return o.default.isString(this.id) && this.id.startsWith("__") && this.id.endsWith("__"); + } + get isDynamicBranch() { + return this.model.isDynamicBranch; + } + get terminatesTaskOrFlow() { + return this.isFake || this.isTerminating; + } + get terminatesLoop() { + return this.isFake || super.terminatesLoop; + } + get topParent() { + return this.parent.topParent; + } + get outOfService() { + return !!this.model.outOfService; + } + set outOfService(e3) { + !!this.outOfService != !!e3 && (!e3 && this.isUnavailable && (this.topic.error("attempting to set action path to in service when its unavailable by feature config "), e3 = true), this._setModelOutOfService(e3, true), this.parent && this.parent.initializeDesignTimeCalled && d.validateNode(this.parent, true), a.emitter.emit(a.branchesChanged)); + } + getYamlOutputId(e3) { + return super.getYamlOutputId(e3) || this.label; + } + get branchInfo() { + return r2.__classPrivateFieldGet(this, n2, "f") || r2.__classPrivateFieldSet(this, n2, this.parent.getBranchInfo(this.id), "f"), r2.__classPrivateFieldGet(this, n2, "f"); + } + get isEnabledDynamicBranch() { + return this.isDynamicBranch && !this.isDisabled; + } + } + n2 = /* @__PURE__ */ new WeakMap(), t2.A = c; + }, 238: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(84655)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "currency"; + } + get displayTypeName() { + return "ArchVariableCurrency"; + } + get initialValue() { + return this._initialValue; + } + get isArchVariableCurrency() { + return true; + } + } + t2.default = r2; + }, 243: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.generateRequestUrl = function(e3 = "http | https", t3, i3 = {}, n3 = {}) { + const a = i3; + r2.default.extend(a, o.values.urls); + let s = t3, l = s.indexOf("?") >= 0; + const u = s.match(/\{([^}]+)}/g) || []; + return r2.default.each(u, (e4) => { + const t4 = e4.slice(1, -1); + (function(e5, t5) { + if (!e5 || !t5) return false; + const i4 = Object.getOwnPropertyDescriptor(e5, t5); + return !(!i4 || !r2.default.isFunction(i4.set) && !i4.writable); + })(a, t4) && (s = s.replace(e4, a[t4])); + }), r2.default.each(n3, (e4, t4) => { + if (r2.default.isArray(e4)) for (let i4 = 0; i4 < e4.length; i4++) s += (l ? "&" : "?") + encodeURIComponent(t4) + "=" + encodeURIComponent(e4[i4]), l = true; + else s += (l ? "&" : "?") + encodeURIComponent(t4) + "=" + encodeURIComponent(e4), l = true; + }), s.indexOf("//") >= 0 ? s : e3 + "//" + s; + }; + const n2 = i2(31635), r2 = n2.__importDefault(i2(92140)), o = n2.__importStar(i2(35515)); + }, 287: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.EnvironmentLimits = void 0; + const n2 = i2(31635).__importDefault(i2(73198)), r2 = i2(55299), o = i2(55909), a = i2(33951); + class s extends r2.BaseClass { + constructor() { + super(), this._collectionItemsMax = n2.default.defaultCollectionItemsMax; + } + get className() { + return "EnvironmentLimits"; + } + get collectionItemsMax() { + return this._collectionItemsMax; + } + set collectionItemsMax(e3) { + this._collectionItemsMax = a.ParameterValidator.expectInt(e3, () => o.ParameterInfo.createPropertySet(this.className, "collectionItemsMax", "value"), true); + } + setCollectionItemsMax(e3) { + return this.collectionItemsMax = e3, this; + } + } + t2.EnvironmentLimits = s; + }, 323: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importDefault(i2(4648)), o = n2.__importDefault(i2(6953)), a = i2(10798), s = n2.__importDefault(i2(3220)), l = n2.__importDefault(i2(37873)); + class u extends l.default { + constructor(e3) { + super(e3); + } + get displayTypeName() { + return "ArchTtsEngine"; + } + get isArchTtsEngine() { + return true; + } + get isSecure() { + return !!this._getCoreViewModel().isSecure; + } + get logStr() { + if (!this._getCoreViewModel()) return this.logStrTypeOnly; + const e3 = []; + return this.id && this._appendLogStrId(e3, this.id), this.name && this._appendLogStrName(e3, this.name), this._appendLogStrType(e3, this.displayTypeName), this._createLogStrFromParts(e3); + } + get name() { + return this._getCoreViewModel().name; + } + getVoiceById(e3) { + const t3 = this._infoParm("voiceId", "getVoiceById"); + this._checkItemIsValidLiteralString(t3, e3, false); + const i3 = this._getCoreViewModel().voices[e3]; + if (i3) return this.logItemVerboseNote(t3, `found the text to speech voice with ID '${e3}'.`), this.coreFactory.createArchWrapper(i3); + this.logItemWarning(t3, `did not find a text to speech voice with ID '${e3}'.`); + } + getVoiceByName(e3) { + const t3 = this._infoParm("voiceName", "getVoiceByName"); + this._checkItemIsValidLiteralString(t3, e3, false); + const i3 = this._getCoreViewModel().getVoiceByName(e3); + if (i3) return this.logItemVerboseNote(t3, `found the text to speech voice with name '${e3}'.`), this.coreFactory.createArchWrapper(i3); + this.logItemWarning(t3, `did not find a text to speech voice with the name '${e3}'.`); + } + getVoicesForLanguage(e3) { + const t3 = this._infoParm("archLanguage", "getVoicesForLanguage"); + if (this._checkItem(t3, !e3 || !e3.isArchLanguage, "you must specify an Architect language for which to retrieve engine voices."), (0, a.isFeatureAvailable)(r2.default.flexibleTtsSelection)) { + const t4 = o.default.getSelectableEnginesForLanguage(e3.tag), i3 = this._getCoreViewModel(), n3 = t4.find((e4) => e4.id === i3.id); + return (null == n3 ? void 0 : n3.voices) ? Object.values(n3.voices || {}).map((e4) => this.coreFactory.createArchWrapper(e4)) : []; + } + return this._getCoreViewModel().getVoicesForLanguage(e3.tag).map((e4) => this.coreFactory.createArchWrapper(e4)); + } + getSupportedVoiceLanguages() { + return o.default.getSupportedVoiceLanguagesForEngine(this._getCoreViewModel().id).map((e3) => s.default.getByLanguageTag(e3)); + } + getDefaultVoiceForLanguage(e3) { + const t3 = this._infoParm("archLanguage", "getDefaultVoiceForLanguage"); + this._checkItem(t3, !e3 || !e3.isArchLanguage, "you must specify an Architect language for which to retrieve voices."); + const i3 = this._getCoreViewModel().getDefaultVoiceForLanguage(e3.tag); + if (i3) return this.coreFactory.createArchWrapper(i3); + } + getLanguageSupport(e3) { + const t3 = this._infoParm("archLanguage", "getLanguageSupport"); + this._checkItem(t3, !e3 || !e3.isArchLanguage, "you must specify an Architect language for which to retrieve language support."); + const i3 = this._getCoreViewModel(), n3 = e3.tag.toLowerCase(); + return i3.getEngineSupportsLanguage(n3) ? "exact" : i3.getEngineSupportsLanguageNoRegion(n3.split("-")[0]) ? "languageOnly" : "none"; + } + } + t2.default = u; + }, 340: (e2, t2, i2) => { + "use strict"; + const n2 = i2(31635), r2 = i2(17604), o = n2.__importStar(i2(99434)), a = i2(12179), s = n2.__importDefault(i2(5478)), l = n2.__importDefault(i2(27203)), u = n2.__importDefault(i2(97891)), d = n2.__importDefault(i2(41510)), c = i2(12457), p = i2(3219), _ = i2(76869), h = i2(47957); + class m extends s.default { + constructor(e3, t3) { + super(e3.parentFlow, e3), this._loadModel(t3); + } + getDetails() { + var e3, t3; + if (!(null === (t3 = null === (e3 = this.variables) || void 0 === e3 ? void 0 : e3.items) || void 0 === t3 ? void 0 : t3.length)) return null; + const i3 = [], n3 = []; + return this.variables.items.forEach((e4, t4) => { + if (!e4.variable || !e4.expression) return; + const a2 = o.getDisplayText(e4.expression); + i3.push((t4 + 1).toString()), n3.push((0, r2.sprintf)(d.default.updateVariables.labelValue, e4.variable.text, a2)); + }), new c.ActionDetails(i3, n3); + } + static get managedProperties() { + return [{ property: "variables", variables: true, options: _.VariableOptions.create((e3) => e3.setVariableOptionsOverrideCallback((e4) => e4.setAsOutputExpressionOnly().setExprTextRootVariableNameMustBe("Workitem.Workitem"))), yamlOptions: m.createYamlOptions("variables", (e3) => e3.setPropertyName("statements")) }]; + } + validate(e3) { + var t3, i3; + (null === (i3 = null === (t3 = this.variables) || void 0 === t3 ? void 0 : t3.items) || void 0 === i3 ? void 0 : i3.length) || e3.addWarning(this, h.updateVariables.noStatementError), super.validate(e3); + } + static get branchInfo() { + return l.default.successFailure; + } + get isUpdateWorkitem() { + return true; + } + _getPossibleErrors() { + return p.getUpdateWorkitemFailureReasons; + } + } + m.info = u.default.createActionInfo({ actionClass: m, canBeInTask: true, helpTopic: a.helpTopics.actions.updateWorkitem, modelClass: i2(23540), name: h.actions.updateWorkitem, scriptingName: "ArchActionUpdateWorkitem" }), t2.A = m; + }, 371: (e2, t2, i2) => { + const n2 = i2(13240), r2 = i2(7401), { setPriorityActionType: o } = i2(30801); + function a() { + Object.defineProperties(this, { _priority: { writable: true } }), a.baseConstructor.apply(this, arguments); + } + n2.extend(a, o, true), Object.defineProperties(a.prototype, { pasteResolveOldToNewValues: { value: function(e3) { + a._super.pasteResolveOldToNewValues.apply(this, arguments), this.priority.pasteResolveOldToNewValues(e3); + } }, pasteReIdOrRename: { value: function(e3) { + a._super.pasteReIdOrRename.apply(this, arguments), this.priority.pasteReIdOrRename(e3); + } }, priority: { enumerable: true, get: function() { + return this._priority; + }, set: function(e3) { + this._priority = this.reviveItem(e3, r2); + } } }), e2.exports = a; + }, 384: (e2, t2, i2) => { + "use strict"; + var n2, r2, o, a, s, l, u, d, c; + Object.defineProperty(t2, "__esModule", { value: true }); + const p = i2(31635), _ = p.__importDefault(i2(78432)), h = i2(30801), m = p.__importDefault(i2(21345)); + class g extends m.default { + constructor(e3) { + super(e3), n2.set(this, void 0), r2.set(this, void 0), o.set(this, void 0), a.set(this, void 0), s.set(this, void 0), l.set(this, void 0), u.set(this, void 0), d.set(this, void 0), c.set(this, void 0), p.__classPrivateFieldSet(this, n2, this.coreFactory.createArchWrapper(e3.notificationType), "f"), p.__classPrivateFieldSet(this, r2, this.coreFactory.createArchWrapper(e3.subject), "f"), p.__classPrivateFieldSet(this, o, this.coreFactory.createArchWrapper(e3.body), "f"), p.__classPrivateFieldSet(this, a, this.coreFactory.createArchWrapper(e3.sendToUsers), "f"), p.__classPrivateFieldSet(this, s, this.coreFactory.createArchWrapper(e3.emailNotificationStyle), "f"), p.__classPrivateFieldSet(this, l, this.coreFactory.createArchWrapper(e3.emailFrom), "f"), p.__classPrivateFieldSet(this, d, this.coreFactory.createArchWrapper(e3.sendToGroup), "f"), p.__classPrivateFieldSet(this, c, this.coreFactory.createArchWrapper(e3.chatMessage), "f"), e3.errorBindings && p.__classPrivateFieldSet(this, u, this.coreFactory.createArchWrapper(e3.errorBindings), "f"); + } + get _actionTypeId() { + return h.sendNotificationActionType; + } + get displayTypeName() { + return this._scriptingName; + } + get isArchActionSendNotification() { + return true; + } + get notificationType() { + return p.__classPrivateFieldGet(this, n2, "f"); + } + setNotificationType(e3) { + const t3 = this._infoPropSet("name", "setNotificationType"); + this._checkItemIsValidLiteralStringEnum(t3, e3, _.default.SEND_NOTIFICATION_TYPES_ALL), this.notificationType.setLiteralString(e3); + } + get subject() { + return p.__classPrivateFieldGet(this, r2, "f"); + } + get body() { + return p.__classPrivateFieldGet(this, o, "f"); + } + get sendToUsers() { + return p.__classPrivateFieldGet(this, a, "f"); + } + get emailNotificationStyle() { + return p.__classPrivateFieldGet(this, s, "f"); + } + setEmailNotificationStyle(e3) { + const t3 = this._infoPropSet("name", "setEmailNotificationStyle"); + this._checkItemIsValidLiteralStringEnum(t3, e3, _.default.EMAIL_STYLES_ALL), this.emailNotificationStyle.setLiteralString(e3); + } + get emailFrom() { + return p.__classPrivateFieldGet(this, l, "f"); + } + get sendNotificationFailureOutputs() { + return p.__classPrivateFieldGet(this, u, "f"); + } + get sendToGroup() { + return p.__classPrivateFieldGet(this, d, "f"); + } + get chatMessage() { + return p.__classPrivateFieldGet(this, c, "f"); + } + } + n2 = /* @__PURE__ */ new WeakMap(), r2 = /* @__PURE__ */ new WeakMap(), o = /* @__PURE__ */ new WeakMap(), a = /* @__PURE__ */ new WeakMap(), s = /* @__PURE__ */ new WeakMap(), l = /* @__PURE__ */ new WeakMap(), u = /* @__PURE__ */ new WeakMap(), d = /* @__PURE__ */ new WeakMap(), c = /* @__PURE__ */ new WeakMap(), t2.default = g; + }, 438: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(82472)), r2 = i2(30801); + class o extends n2.default { + constructor(e3) { + super(e3); + } + get _actionTypeId() { + return r2.transferExternalActionType; + } + get displayTypeName() { + return this._scriptingName; + } + get isArchActionTransferToNumber() { + return true; + } + get releaseLinkTransfer() { + return this.coreFactory.createArchValueFromExpression(this._getCoreViewModel().releaseLinkTransfer); + } + get targetNumber() { + return this.coreFactory.createArchValueFromExpression(this._getCoreViewModel().externalNumber); + } + } + t2.default = o; + }, 441: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = i2(30801), o = n2.__importDefault(i2(13297)); + class a extends o.default { + constructor(e3) { + super(e3), this._interDigitTimeout = this.coreFactory.createArchValueFromExpression(this._coreActionViewModel.digitTimeout), this._extensionVariable = this.coreFactory.createArchValueFromExpression(this._coreActionViewModel.resultData), this._repromptAudio = this.coreFactory.createArchAudio(this._coreActionViewModel.repromptAudio), this._repromptCount = this.coreFactory.createArchValueFromExpression(this._coreActionViewModel.numReprompts); + } + get _actionTypeId() { + return r2.dialExtensionActionType; + } + get displayTypeName() { + return this._scriptingName; + } + get extensionVariable() { + return this._extensionVariable; + } + get interDigitTimeout() { + return this._interDigitTimeout; + } + get isArchActionDialByExtension() { + return true; + } + get repromptAudio() { + return this._repromptAudio; + } + get repromptCount() { + return this._repromptCount; + } + } + t2.default = a; + }, 590: (e2, t2, i2) => { + const n2 = i2(28730), r2 = i2(7401), { waitActionType: o } = i2(30801); + function a() { + Object.defineProperties(this, { _duration: { writable: true }, _trimDurationNearMaxRunningTime: { writable: true } }), a.baseConstructor.apply(this, arguments); + } + n2.extend(a, o, true), Object.defineProperties(a.prototype, { pasteReIdOrRename: { value: function(e3) { + a._super.pasteReIdOrRename.apply(this, arguments), this.duration.pasteReIdOrRename(e3), this.trimDurationNearMaxRunningTime.pasteReIdOrRename(e3); + } }, pasteResolveOldToNewValues: { value: function(e3) { + a._super.pasteResolveOldToNewValues.apply(this, arguments), this.duration.pasteResolveOldToNewValues(e3), this.trimDurationNearMaxRunningTime.pasteResolveOldToNewValues(e3); + } }, trimDurationNearMaxRunningTime: { enumerable: true, get: function() { + return this._trimDurationNearMaxRunningTime; + }, set: function(e3) { + this._trimDurationNearMaxRunningTime = this.reviveItem(e3, r2); + } }, duration: { enumerable: true, get: function() { + return this._duration; + }, set: function(e3) { + this._duration = this.reviveItem(e3, r2); + } } }), e2.exports = a; + }, 640: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.nonFormResponseManager = t2.NonFormResponseManager = void 0; + const n2 = i2(24032), r2 = i2(60609), o = i2(10535); + class a extends o.ResponseManager { + additionalItemFilter(e3) { + return e3.filter((e4) => e4.responseType !== this.responseTypeToFilterOut); + } + constructor() { + super(), this.topic = (0, n2.getTopic)("NonFormResponseManager"), this.responseTypeToFilterOut = r2.CannedResponseType.form; + } + } + t2.NonFormResponseManager = a, t2.nonFormResponseManager = new a(); + }, 675: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(20692)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "workbinCollection"; + } + get initialValue() { + return this._initialValue; + } + get displayTypeName() { + return "ArchVariableWorkbinCollection"; + } + get isArchVariableWorkbinCollection() { + return true; + } + } + t2.default = r2; + }, 697: (e2, t2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + }, 761: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.switchMapTo = void 0; + var n2 = i2(90680), r2 = i2(10281); + t2.switchMapTo = function(e3, t3) { + return r2.isFunction(t3) ? n2.switchMap(function() { + return e3; + }, t3) : n2.switchMap(function() { + return e3; + }); + }; + }, 776: (e2, t2, i2) => { + const n2 = i2(36019).default, r2 = i2(13991); + function o() { + } + o.prototype.getSkills = function(e3) { + return n2.build(r2.getSkills).queryParams(e3.getSearchQueryParams()).call(); + }, o.prototype.getSkill = function(e3) { + return n2.build(r2.getSkill).templateParams({ id: e3 }).call(); + }, o.prototype.getSkill.api = r2.getSkill, e2.exports = new o(); + }, 858: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(21345)), r2 = i2(30801); + class o extends n2.default { + constructor(e3) { + super(e3), this._conversationId = this.coreFactory.createArchWrapper(e3.conversationId), this._participantId = this.coreFactory.createArchWrapper(e3.participantId), this._attributeNameValuePairs = this.coreFactory.createArchBaseValueContainer(e3.variables); + } + get _actionTypeId() { + return r2.setConversationDataActionType; + } + get displayTypeName() { + return this._scriptingName; + } + addAttributeNameValuePair(e3, t3) { + return this._checkItemIsValidLiteralString(this._infoParm("nameExpression", "addAttributeNameValuePair"), e3, true), this._checkItemIsValidLiteralString(this._infoParm("valueExpression", "addAttributeNameValuePair"), t3, true), this._attributeNameValuePairs._addNameValueAssignment(e3, t3, false, false); + } + get conversationId() { + return this._conversationId; + } + get participantId() { + return this._participantId; + } + get isArchActionSetConversationData() { + return true; + } + } + t2.default = o; + }, 876: (e2, t2, i2) => { + "use strict"; + const n2 = i2(31635), r2 = i2(30801), o = n2.__importDefault(i2(5730)), a = i2(12179), s = i2(30801), l = i2(30801), u = n2.__importDefault(i2(97891)), d = i2(24383), c = i2(47957); + class p extends o.default { + constructor(e3, t3) { + super(e3.parentFlow, e3), this._loadModel(t3); + } + validate(e3) { + super.validate(e3), this.getParentingFlowElementByIdOrNodeInfoId([s.loopActionType, l.loopUntilActionType, r2.askForNLUNextIntentActionActionType]) || e3.addError(this, c.loop.notInLoop); + } + } + p.info = u.default.createActionInfo({ actionClass: p, canBeInTask: true, helpTopic: a.helpTopics.actions.exitLoop, modelClass: i2(99407), name: c.actions.exitLoop, scriptingName: "ArchActionLoopExit", termination: d.terminatesExitLoop }), t2.A = p; + }, 903: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importDefault(i2(94225)), o = i2(32282), a = n2.__importDefault(i2(45894)); + class s extends a.default { + constructor(e3) { + super(e3, o.scheduleGroupManager); + } + get _globalTypeName() { + return "scheduleGroup"; + } + get displayTypeName() { + return "ArchValueScheduleGroup"; + } + get isArchValueScheduleGroup() { + return true; + } + setLiteralByScheduleGroupIdAsync(e3, t3) { + return n2.__awaiter(this, void 0, void 0, function* () { + return this._checkItemIsValidLiteralString(this._infoParm("scheduleGroupId", "setLiteralByScheduleGroupIdAsync"), e3), this._checkItemIsValidFunction(this._infoParm("callbackFunction", "setLiteralByScheduleGroupIdAsync"), t3, true), this._setLiteralByIdAsync(e3).then(() => r2.default.executeCallback(this, "setLiteralByScheduleGroupIdAsync", t3, this)); + }); + } + setLiteralByScheduleGroupNameAsync(e3, t3) { + return n2.__awaiter(this, void 0, void 0, function* () { + return this._checkItemIsValidLiteralString(this._infoParm("scheduleGroupName", "setLiteralByScheduleGroupNameAsync"), e3), this._checkItemIsValidFunction(this._infoParm("callbackFunction", "setLiteralByScheduleGroupNameAsync"), t3, true), this._setLiteralByValueAsync(e3).then(() => r2.default.executeCallback(this, "setLiteralByScheduleGroupNameAsync", t3, this)); + }); + } + } + t2.default = s; + }, 942: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importDefault(i2(5730)), o = n2.__importDefault(i2(27203)), a = i2(80428), s = i2(81516), l = i2(82632); + class u extends r2.default { + constructor(e3, t3) { + super(e3, t3); + } + static get branchInfo() { + return o.default.foundNotFound; + } + static createManagedProperties(e3) { + const { searchFieldPropertyName: t3 = "findName", searchFieldOptionsCallback: i3, searchFieldLabel: n3, searchResultLabel: r3, searchResultExpressionOptions: o2, searchResultItemType: u2 } = e3; + return [{ label: n3, options: s.ExpressionTypeStringOptions.create((e4) => { + e4.setAsInput().setUiPropertyOrder(10).setIninTestingField(t3).setDisableSpellcheck(true).setDefaultToExpression(true).setDescriptionInfo(n3).facets.setMaxLength(l.findLimits.findName.maxLength).setMinLength(l.findLimits.findName.minLength), e4.invokeOptionsCallback(i3); + }), property: t3, type: a.expressionTypeNames.string }, { label: r3, options: o2.setUiPropertyOrder(20).setIninTestingField("findResult").setAsOutput(), property: "findResult", type: u2 }]; + } + } + t2.default = u, e2.exports = u, u.className = "BaseFindSystemObjectActionViewModel"; + }, 965: (e2, t2, i2) => { + "use strict"; + var n2; + Object.defineProperty(t2, "__esModule", { value: true }); + const r2 = i2(31635), o = i2(30801), a = r2.__importDefault(i2(11210)); + class s extends a.default { + constructor(e3) { + super(e3), n2.set(this, void 0), r2.__classPrivateFieldSet(this, n2, this.coreFactory.createArchWrapper(e3.message), "f"); + } + get _actionTypeId() { + return o.abortSendActionType; + } + get displayTypeName() { + return this._scriptingName; + } + get isArchActionAbortSend() { + return true; + } + get message() { + return r2.__classPrivateFieldGet(this, n2, "f"); + } + } + n2 = /* @__PURE__ */ new WeakMap(), t2.default = s; + }, 1012: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(62957)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get displayTypeName() { + return "ArchBaseActionWithOutputsFakeSuccessFailure"; + } + get hasFakeSuccessOutput() { + return true; + } + get isArchBaseActionWithOutputsFakeSuccessFailure() { + return true; + } + } + t2.default = r2; + }, 1057: (e2, t2, i2) => { + function n2() { + n2.baseConstructor.apply(this, arguments); + } + i2(11475).extend(n2, "DivisionVariable", true), Object.defineProperties(n2.prototype, { typeIdentifier: { writable: true } }), e2.exports = n2; + }, 1078: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.BridgeServerRequest = void 0; + const n2 = i2(31635), r2 = i2(43212), o = n2.__importDefault(i2(57606)); + class a extends r2.BaseConfigurationListViewModel { + constructor(e3) { + super(e3), this.inputSchema = e3.inputSchema ? new o.default(e3.inputSchema, true) : null, this.successSchema = e3.successSchema ? new o.default(e3.successSchema, false) : null, this.errorSchema = e3.errorSchema ? new o.default(e3.errorSchema, false) : null; + } + get className() { + return "BridgeServerRequest"; + } + get format() { + return this._model.format; + } + getConfiguration() { + const e3 = { format: this._model.format, method: this._model.method, url: this._model.url }; + return this.inputSchema && (e3.inputSchema = this.inputSchema.getConfiguration()), this.successSchema && (e3.successSchema = this.successSchema.getConfiguration()), this.errorSchema && (e3.errorSchema = this.errorSchema.getConfiguration()), e3; + } + get method() { + return this._model.method; + } + get url() { + return this._model.url; + } + } + t2.BridgeServerRequest = a; + }, 1080: (e2, t2, i2) => { + const { addFlowMilestoneActionType: n2 } = i2(30801); + function r2() { + this.milestoneId = void 0, this.milestoneName = void 0, r2.baseConstructor.apply(this, arguments); + } + i2(5410).extend(r2, n2, true), e2.exports = r2; + }, 1102: (e2, t2, i2) => { + const n2 = i2(60475), r2 = i2(7401), { setConversationDataActionType: o } = i2(30801); + function a() { + Object.defineProperties(this, { _participantId: { writable: true } }), a.baseConstructor.apply(this, arguments); + } + n2.extend(a, o, true), Object.defineProperties(a.prototype, { pasteReIdOrRename: { value: function(e3) { + a._super.pasteReIdOrRename.apply(this, arguments), this.participantId.pasteReIdOrRename(e3); + } }, pasteResolveOldToNewValues: { value: function(e3) { + a._super.pasteResolveOldToNewValues.apply(this, arguments), this.participantId.pasteResolveOldToNewValues(e3); + } }, participantId: { enumerable: true, get: function() { + return this._participantId; + }, set: function(e3) { + this._participantId = this.reviveItem(e3, r2); + } } }), e2.exports = a; + }, 1107: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.ScheduleGroupType = void 0; + const n2 = i2(31635), r2 = i2(71056), o = i2(32282), a = i2(27491), s = n2.__importDefault(i2(22226)), l = i2(80428), u = i2(14394), d = i2(94765); + class c extends d.ExpressionType { + constructor(e3, t3, i3) { + super(e3, t3, i3); + } + get className() { + return "ScheduleGroupType"; + } + createExpressionOptionClass() { + return new r2.ExpressionTypeNetworkObjectOptions(this.isCollection); + } + get listManager() { + return o.scheduleGroupManager.getBriefManagerWithFallback(); + } + canConvertLitToExpression(e3) { + return a.expressionDataService.isFunctionTextAvailableForFlowTypeAndOperandTypes("FindScheduleGroup", e3, [u.globalTypes.string]); + } + convertLitToExpression(e3, t3) { + return t3 && this.canConvertLitToExpression(e3) ? `FindScheduleGroup(${s.default.getQuotedExpressionStringLiteral(t3)})` : ""; + } + } + t2.ScheduleGroupType = c, c.typeIdentifier = l.expressionTypeNames.scheduleGroup; + }, 1115: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.TTS_NOT_SUPPORTED_ERROR = void 0, t2.validateFlowFailed = x, t2.validateFlow = function(e3, t3) { + if (!O(e3)) return; + let i3; + if (e3.isValidating) e3.topic.errorWithErrorObjectInfo("Request made to validate flow while already in progress.", e3, true, true); + else try { + if (e3.isValidating = true, f.length = 0, i3 = new d.default(e3, true), e3.validationResults = i3, e3.info && e3.info.currentUserHasLock) try { + i3.validIdMap = u.getValidIds(e3), (function(e4, t4) { + e4.traverse(new a.default({ actionCallback: F, data: t4, menuCallback: M, taskCallback: M })); + })(e3, i3); + } catch (e4) { + g.exception(e4, "Failed to generate ID map and check for orphaned items."); + } + return e3.hasCommonModules && e3.getEmbeddedCommonModules().forEach((e4) => { + if (null == e4 ? void 0 : e4.deleted) return; + const t4 = new d.default(e4, true); + e4.validationResults = t4, L(e4, t4); + }), L(e3, i3), e3.hasCommonModules && e3.getEmbeddedCommonModules().forEach((t4) => { + if (null == t4 ? void 0 : t4.deleted) return; + const n3 = (0, p.getDependenciesForFlow)(t4).reduce((e4, t5) => { + var i4; + return o.default.isFunction(null === (i4 = t5.type) || void 0 === i4 ? void 0 : i4.getConfigItem) && (t5.type.getConfigItem(t5.id, true, t5.consumer) || e4.push((0, r2.sprintf)(m.labelAndName, t5.type.displayName, t5.name))), e4; + }, []); + n3.length && i3.addError(t4, (0, r2.sprintf)(m.commonModule.commonModuleMissingDependencies, t4.displayName, h.getListDisplayString(n3)), true); + const a2 = t4.getMissingLanguages(), s2 = t4.getHasMissingTTSEngineErrors(); + if (0 === a2.length && 0 === n3.length && !s2 && t4.validationResults.errorCount) { + const n4 = Object.values(t4.validationResults.issuesMap).flatMap((e4) => e4.errors); + i3.addError(t4, (0, r2.sprintf)(m.commonModule.commonModuleInternalError, t4.displayName), true), e3.topic.error(`Found ${n4.length} errors in embedded common module`), n4.splice(0, 5).forEach((i4) => { + e3.topic.error(`internal cm error -> ${i4.displayName} -- ${i4.text} -- cmFlowId: ${t4.id}`); + }); + } + }), o.default.each(e3.tasks, (e4) => { + i3.countTaskErrors(e4); + }), e3.states && o.default.each(e3.states, (e4) => { + i3.countTaskErrors(e4); + }), i3.isDeep = false, t3 || e3.invokeValidationComplete(), i3; + } catch (t4) { + return g.exception(t4, "Failure during validate"), x(e3, m.errors.errorOccurred, i3); + } finally { + e3.isValidating = false; + } + }, t2.validateAction = k, t2.validateNode = function e3(t3, i3) { + const n3 = t3.parentFlow; + if (!O(n3)) return; + if (i3) return N({ validationItem: t3, function: e3, args: [t3], funcName: "validateNode" }); + t3.initializeDesignTimeCalled; + const r3 = n3.validationResults; + return r3 && !r3.shouldValidate() || (r3.removeIssues(t3), t3.isDestroyedOrDestroying) ? void 0 : (t3.isMenu ? (S(t3, r3), R(t3.parentFlow.menus, r3)) : t3.isTaskLike ? (o.default.each(t3.actions, r3.removeIssues.bind(r3)), v(t3, r3), E(t3.parentFlow.tasks, r3), r3.countTaskErrors(t3)) : t3.validate && (S(t3, r3), t3.topParent && t3.topParent.isTaskLike && r3.countTaskErrors(t3.topParent)), n3 && n3.startUpObject === t3 && n3.initialPrompts && S(n3.initialPrompts, r3), r3.isDeep || w(0, t3), r3); + }, t2.validateItem = V, t2.clearIssues = function(e3) { + var t3; + if (!(null === (t3 = e3.parentFlow) || void 0 === t3 ? void 0 : t3.validationResults)) return; + const i3 = e3.parentFlow.validationResults; + i3.removeIssues(e3, true), e3.isDestroyedOrDestroying || e3.parentFlow.isDestroyedOrDestroying || !e3.parentFlow.loaded || w(0, e3); + }, t2.validate = function(e3, t3) { + if (!e3) return false; + if (e3.isDestroyedOrDestroying || !e3.initializeDesignTimeCalled) return false; + if (e3.isBaseAction) k(e3, true, t3); + else { + if (!(e3.isVariableViewModel || e3.isNormalExpression || e3.isBaseFlowSettingsViewModel)) return false; + V(e3, t3); + } + return true; + }, t2.getIssues = function(e3, t3) { + return t3 ? t3.getIssues(e3) : null; + }; + const n2 = i2(31635), r2 = i2(17604), o = n2.__importDefault(i2(92140)), a = n2.__importDefault(i2(92859)), s = n2.__importStar(i2(24032)), l = n2.__importStar(i2(58380)), u = n2.__importStar(i2(48565)), d = n2.__importDefault(i2(59805)), c = n2.__importStar(i2(12847)), p = i2(17498), _ = n2.__importStar(i2(36781)), h = n2.__importStar(i2(66381)), m = i2(47957), g = s.getTopic("validation"); + t2.TTS_NOT_SUPPORTED_ERROR = "__TTS_NOT_SUPPORTED__"; + const f = []; + let T = 0; + const y = 300; + function S(e3, t3) { + try { + if (e3.isValidating) return void (e3.topic || g).errorWithErrorObjectInfo("Request made to validate item while item validation is already in progress.", e3, true, true); + e3.isValidating = true, e3.validate(t3); + } finally { + delete e3.isValidating; + } + } + function A() { + 0 !== f.length ? setTimeout(() => { + if (0 === f.length) return void (T = 0); + const e3 = T > y; + if (!l.isFiringEvents() && !_.isFiringEvents() || e3) { + e3 && c.warn(`Deferred validation max wait count (${y}) exceeded waiting for events to finish processing. Will process next pending validation call now.`), T = 0; + const t3 = f.shift(); + if (o.default.isObject(t3)) try { + t3.function(...t3.args); + } catch (e4) { + g.exceptionWithErrorObjectInfo(e4, `Caught unhandled exception in deferred object validation. funcName: ${t3.funcName}`, t3.validationItem, true); + } + } else T++, T % 50 == 0 && c.warn(`Deferred validation still waiting since event processing is still in progress ( count: ${T} )`); + A(); + }, 90) : T = 0; + } + function N(e3) { + return !(!e3.validationItem || e3.validationItem.parentFlow && (!e3.validationItem.parentFlow.loaded || e3.validationItem.parentFlow.validationResults.isDeep) || o.default.find(f, (t3) => t3.validationItem === e3.validationItem && t3.function === e3.function) || (f.push(e3), A(), 0)); + } + function O(e3) { + return e3 && e3.canBeValidated(); + } + function I(e3, t3) { + if (e3) { + if (e3.isAction || (e3.topic || g).errorWithErrorObjectInfo("Should not be using _validateAction on this item", e3, true, true), (!t3 || t3.shouldValidate()) && !e3.isDestroyed && (!e3.parentFlow || e3.parentFlow.loaded)) { + if (e3.isDisabled) { + const i3 = o.default.traverseFind(e3.parent, (e4) => e4.isDisabled && e4.parent, (e4) => e4.outOfService); + t3.addWarning(e3, i3 ? m.errors.unreachableActionOutOfService : m.errors.unreachableAction); + } + S(e3, t3); + } + } else g.error("Tried to validate: {}", e3); + } + function v(e3, t3) { + t3 && !t3.shouldValidate() || e3.isDestroyed || (e3.isTaskLike || (e3.topic || g).errorWithErrorObjectInfo("Should not be using validateTask on this item", e3, true, true), S(e3, t3), o.default.each(e3.actions, (e4) => { + I(e4, t3); + })); + } + function C(e3, t3) { + t3 && !t3.shouldValidate() || e3.isDestroyed || (S(e3, t3), (function(e4, t4) { + if (t4 && !t4.shouldValidate()) return; + const i3 = []; + o.default.each(e4.choices, (n3) => { + n3.isDestroyed || (S(n3, t4), n3.action ? I(n3.action, t4) : t4.addError(n3, m.action.notSet), n3.dtmf && (o.default.contains(i3, n3.dtmf) ? t4.addError(e4, (0, r2.sprintf)(m.menuChoice.duplicateDtmf, n3.dtmf)) : i3.push(n3.dtmf))); + }); + })(e3, t3)); + } + function b(e3, t3) { + const i3 = { globalVariableHolder: {} }; + e3.forEach((e4) => { + const n3 = i3[e4.parent.id]; + if (n3) n3[e4.id] ? e4.addValidationError((0, r2.sprintf)(m.errors.duplicateVariableId, e4.name), t3) : n3[e4.lowerName] ? e4.addValidationError((0, r2.sprintf)(m.errors.duplicateVariableName, e4.name), t3) : i3.globalVariableHolder[e4.id] && e4.addValidationError((0, r2.sprintf)(m.errors.duplicateVariableId, e4.name), t3); + else { + const t4 = {}; + t4[e4.id] = true, t4[e4.lowerName] = true, i3[e4.parent.id] = t4, i3.globalVariableHolder[e4.id] = true; + } + }); + } + function E(e3, t3) { + D(e3, t3); + } + function R(e3, t3) { + D(e3, t3); + } + function w(e3, t3) { + (null == t3 ? void 0 : t3.parentFlow) ? t3.parentFlow.invokeSingleItemValidated(t3) : c.error("no parent flow"); + } + function D(e3, t3) { + if (!(null == e3 ? void 0 : e3.length)) return; + const i3 = "isTaskLike" in e3[0], n3 = i3 ? m.task.multipleNames : m.menu.multipleNames, r3 = !t3.parentFlow.isValidating, o2 = {}, a2 = e3.reduce((e4, i4) => { + const r4 = i4.linkedMenuChoice ? i4.linkedMenuChoice.parent.id : i4.parent.id; + return e4[r4] || (e4[r4] = {}), e4[r4][i4.name] || (e4[r4][i4.name] = []), e4[r4][i4.name].push(i4), t3.nodeHasError(i4.id, n3) && (o2[i4.id] = i4), e4; + }, {}); + Object.values(a2).forEach((e4) => { + Object.entries(e4).forEach(([e5, a3]) => { + a3.length <= 1 || a3.forEach((e6) => { + r3 && (t3.removeIssues(e6, false), S(e6, t3), delete o2[e6.id]), t3.addError(e6, n3), r3 && (i3 && t3.countTaskErrors(e6), w(0, e6)); + }); + }); + }), Object.values(o2).length && (r3 ? Object.values(o2).forEach((e4) => { + t3.removeIssues(e4, false), S(e4, t3), i3 && t3.countTaskErrors(e4), w(0, e4); + }) : c.error("we have items with duplicate name error but are not in a full flow validate state")); + } + function P(e3, t3) { + if (!t3.isDeep || !t3 || !t3.validIdMap || Object.keys(t3.validIdMap).length < 1 || !e3 || !e3.id) return false; + if (!t3.validIdMap[e3.id]) { + e3.isOrphan = true; + let i3 = (0, r2.sprintf)("Found orphaned item while validating flow. Item id: '%1$s' in flow '%2$s' (id: '%3$s'). ", e3.id, t3.parentFlow.displayName, t3.parentFlow.id); + try { + e3.isAction ? (i3 += "Deleting orphaned action.", e3.topParent.deleteChild(e3), i3 += " Deletion complete.") : e3.isTaskLike || e3.isMenu ? (i3 += (0, r2.sprintf)("Deleting orphaned %1$s.", e3.isTask ? "task" : e3.isState ? "state" : e3.isBotState ? "botState" : "menu"), t3.parentFlow.deleteNode(e3, false), i3 += " Deletion complete.") : i3 += "Did not attempt to remove."; + } catch (e4) { + return g.exception(e4, i3), true; + } + return g.error(i3), true; + } + return e3.isOrphan && delete e3.isOrphan, false; + } + function M(e3, t3) { + P(e3, t3.data) && (t3.traverseChildren = false); + } + function F(e3, t3) { + P(e3, t3.data); + } + function L(e3, t3) { + const i3 = c.time(`validating ${e3.toString()}`, 5e3); + t3 && !t3.shouldValidate() || (e3.validate(t3), e3.initialPrompts && S(e3.initialPrompts, t3), e3.isFlowViewModel || (e3.topic || g).errorWithErrorObjectInfo("Should not be using doValidation on this item", e3, true, true), o.default.each(e3.tasks, (e4) => { + v(e4, t3); + }), E(e3.tasks, t3), e3.states && o.default.each(e3.states, (e4) => { + v(e4, t3); + }), e3.menus && (o.default.each(e3.menus, (e4) => { + o.default.each(e4.choices, (e5) => { + e5.speechRecTerms.refreshContainers(); + }); + }), o.default.each(e3.menus, (e4) => { + C(e4, t3); + })), R(e3.menus, t3), e3._autoManagedSettings.forEach((e4) => S(e4, t3)), (function(e4, t4) { + t4 && !t4.shouldValidate() || (o.default.each(e4.variableGroup.flowVariables, (e5) => { + S(e5, t4); + }), o.default.each(e4.variableGroup.taskVariables, (e5) => { + S(e5, t4); + }), o.default.each(e4.variableGroup.systemVariables, (e5) => { + e5.isNeeded && S(e5, t4); + }), t4.isDeep && (b(e4.variableGroup.flowVariables, t4), b(e4.variableGroup.taskVariables, t4))); + })(e3, t3), i3()); + } + function x(e3, t3, i3) { + return i3 || (i3 = new d.default(e3, true), e3.validationResults = i3), i3.isDeep = false, i3.addError(e3, t3, true), e3.invokeValidationComplete(), i3; + } + function k(e3, t3, i3) { + if (!O(e3.parentFlow)) return; + if (i3) return void N({ validationItem: e3, function: k, args: [e3, t3], funcName: "validateAction" }); + e3.initializeDesignTimeCalled; + const n3 = e3.parentFlow.validationResults; + return !n3 || n3.shouldValidate() ? (t3 && (n3.forceTextReprocess = true), n3.removeIssues(e3), I(e3, n3), t3 && (n3.forceTextReprocess = false), e3.menu && e3.menu.isMenu && (n3.removeIssues(e3.menu), C(e3.menu, n3), w(0, e3.menu)), w(0, e3), n3) : void 0; + } + function V(e3, t3, i3) { + if (!e3.validate) return; + if (!O(e3.isFlowViewModel ? e3 : e3.parentFlow)) return; + const n3 = e3.isFlowViewModel ? e3.validationResults : e3.parentFlow.validationResults; + if (!n3 || n3.shouldValidate()) { + if (t3) return N({ validationItem: e3, function: V, args: [e3, false, i3], funcName: "validateItem" }); + if (e3.initializeDesignTimeCalled, n3.removeIssues(e3, i3), !e3.isDestroyed) return S(e3, n3), n3.isDeep || w(0, e3), n3; + } + } + }, 1183: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.allModes = t2.executeTask = t2.exitFlow = void 0; + const n2 = i2(47957); + t2.exitFlow = { displayString: n2.customNodes.errorHandling.exit, id: "Exit" }, t2.executeTask = { displayString: n2.customNodes.eventHandling.subsequentRecognitionFailuresExecuteTask, id: "ExecuteTask" }, t2.allModes = [t2.exitFlow, t2.executeTask]; + }, 1211: (e2, t2, i2) => { + function n2() { + this.id = void 0, this.name = void 0, this.language = void 0, this.gender = void 0, this.isDefault = void 0, n2.baseConstructor.apply(this, arguments); + } + i2(45214).extend(n2, "Voice"), e2.exports = n2; + }, 1227: (e2, t2, i2) => { + "use strict"; + var n2, r2, o; + Object.defineProperty(t2, "__esModule", { value: true }); + const a = i2(31635), s = i2(30801), l = a.__importDefault(i2(21345)); + class u extends l.default { + constructor(e3) { + super(e3), n2.set(this, void 0), r2.set(this, void 0), o.set(this, void 0), a.__classPrivateFieldSet(this, n2, this.coreFactory.createArchWrapper(e3.sipHeaderNames), "f"), a.__classPrivateFieldSet(this, r2, this.coreFactory.createArchWrapper(e3.sipHeadersResult), "f"), e3.errorBindings && a.__classPrivateFieldSet(this, o, this.coreFactory.createArchWrapper(e3.errorBindings), "f"); + } + get _actionTypeId() { + return s.getSIPHeadersActionType; + } + get displayTypeName() { + return this._scriptingName; + } + get isArchActionGetSIPHeaders() { + return true; + } + setInputDataVariable(e3) { + this._checkItemIsValidJsonObject(this._infoParm("inputDataVariable", "setInputDataVariable"), e3, false), a.__classPrivateFieldGet(this, r2, "f").setVariable(e3); + } + get sipHeaderNames() { + return a.__classPrivateFieldGet(this, n2, "f"); + } + get sipHeadersResult() { + return a.__classPrivateFieldGet(this, r2, "f"); + } + get getSipHeadersFailureOutputs() { + return a.__classPrivateFieldGet(this, o, "f"); + } + } + n2 = /* @__PURE__ */ new WeakMap(), r2 = /* @__PURE__ */ new WeakMap(), o = /* @__PURE__ */ new WeakMap(), t2.default = u; + }, 1234: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.DivisionViewModel = void 0; + const n2 = i2(31635).__importDefault(i2(92140)), r2 = i2(55299), o = i2(50778), a = i2(97591); + class s extends r2.BaseClass { + constructor(e3) { + super(), Object.defineProperties(this, { _permissions: { writable: true, value: [] }, model: { value: e3 } }); + } + static create(e3, t3) { + const i3 = new o({ id: e3, name: t3 }); + return new s(i3); + } + get className() { + return "DivisionViewModel"; + } + get id() { + return this.model.id; + } + set id(e3) { + } + get isDivisionViewModel() { + return true; + } + get isHomeDivision() { + return this.model.homeDivision; + } + set isHomeDivision(e3) { + this.model.homeDivision = !!e3; + } + get isStarDivision() { + return this.id === a.starDivision; + } + get name() { + return this.model.name; + } + set name(e3) { + this.model.name = e3; + } + get label() { + return this.name; + } + get lowerName() { + return this.model.name ? this.model.name.toLowerCase() : ""; + } + get permissions() { + return this._permissions; + } + addPermission(e3) { + n2.default.contains(this.permissions, e3) || this.permissions.push(e3); + } + setId() { + } + setName() { + } + } + t2.DivisionViewModel = s; + }, 1248: (e2, t2, i2) => { + const n2 = i2(28730), { menuActionActionType: r2 } = i2(30801); + function o() { + this.menuReference = void 0, o.baseConstructor.apply(this, arguments); + } + n2.extend(o, r2, true), Object.defineProperties(o.prototype, { pasteResolveOldToNewValues: { value: function(e3) { + o._super.pasteResolveOldToNewValues.apply(this, arguments), this.menuReference = e3.pasteResolveOldIdToNewId(this.menuReference), this.name = e3.pasteResolveOldMenuNameToNewMenuName(this.name); + } } }), e2.exports = o; + }, 1360: (e2) => { + e2.exports = { exactMatch: 1, startsWith: 2, contains: 3, containsAssumed: 4 }; + }, 1383: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importDefault(i2(56549)), o = n2.__importDefault(i2(94225)), a = i2(30801), s = i2(33264), l = n2.__importDefault(i2(21345)); + class u extends l.default { + constructor(e3) { + super(e3), e3.input && (this._input = this.coreFactory.createArchWrapper(e3.input)), e3.output && (this._output = this.coreFactory.createArchWrapper(e3.output)); + } + get _actionTypeId() { + return a.callDecisionTableActionType; + } + get displayTypeName() { + return this._scriptingName; + } + get isArchActionCallDecisionTable() { + return true; + } + get decisionTableOutputsFailure() { + return this._coreActionViewModel.errorBindings ? this.coreFactory.createArchWrapper(this._coreActionViewModel.errorBindings) : null; + } + setDecisionTableByIdAsync(e3, t3) { + return n2.__awaiter(this, void 0, void 0, function* () { + this._checkItemIsValidLiteralString(this._infoParm("decisionTableId", "setDecisionTableByIdAsync"), e3, false), this._checkItemIsValidFunction(this._infoParm("callbackFunction", "setDecisionTableByIdAsync"), t3, true); + const i3 = yield r2.default.findItemByIdAsync(s.decisionTableManager, e3, "decision table"); + return this.logNote("Found info for the decision table named '" + i3.name + "' for the passed in decision table id '" + e3 + "'. Getting decision table details."), yield this._coreActionViewModel.setSelectedActionByViewModel(i3), yield this._updateInputOutput(), o.default.executeCallback(this, "setDecisionTableByIdAsync", t3, this); + }); + } + setDecisionTableByNameAsync(e3, t3) { + return n2.__awaiter(this, void 0, void 0, function* () { + this._checkItemIsValidLiteralString(this._infoParm("decisionTableName", "setDecisionTableByNameAsync"), e3, false), this._checkItemIsValidFunction(this._infoParm("callbackFunction", "setDecisionTableByNameAsync"), t3, true); + const i3 = yield r2.default.findItemByValueAsync(s.decisionTableManager, e3, "decision table"); + this.logNote("Found partial info for the decision table named '" + i3.name + "' for the passed in decision table name '" + e3 + "'. Getting full decision table details."); + const n3 = yield r2.default.findItemByIdAsync(s.decisionTableManager, i3.id, "decision table"); + return this.logNote("Found info for the decision table named '" + n3.name + "' for the passed in decision table id '" + i3.id + "'. Getting decision table details."), yield this._coreActionViewModel.setSelectedActionByViewModel(n3), yield this._updateInputOutput(), o.default.executeCallback(this, "setDecisionTableByNameAsync", t3, this); + }); + } + _updateInputOutput() { + return n2.__awaiter(this, void 0, void 0, function* () { + this._input = this.coreFactory.createArchWrapper(this._getCoreViewModel().input), this._output = this.coreFactory.createArchWrapper(this._getCoreViewModel().output); + }); + } + get input() { + return this._input; + } + get output() { + return this._output; + } + } + t2.default = u; + }, 1438: (e2, t2, i2) => { + "use strict"; + const n2 = i2(31635), r2 = i2(49892), o = n2.__importDefault(i2(27203)), a = i2(12179), s = n2.__importDefault(i2(97891)), l = i2(14086), u = n2.__importDefault(i2(5730)), d = i2(47957); + class c extends u.default { + static get managedProperties() { + return [{ createDetails: l.CommonModuleFlowReferenceProperty.createCreateDetails(), property: "commonModule" }, { dataList: true, label: d.inputOutputList.inputs, property: "inputs", options: r2.ExpressionTypelessOptions.create((e3) => e3.setIsOptional(true)), yamlOptions: c.createYamlOptions("inputs", (e3) => e3.setSkipProperty(true)) }, { dataList: true, isOutput: true, label: d.inputOutputList.outputs, property: "outputs", yamlOptions: c.createYamlOptions("outputs", (e3) => e3.setSkipProperty(true)) }]; + } + constructor(e3, t3) { + super(e3.parentFlow, e3), this._loadModel(t3); + } + static get branchInfo() { + return [o.default.fakeNoLabel]; + } + get flowInputs() { + return this.inputs; + } + get flowOutputs() { + return this.outputs; + } + get relatedIssueIds() { + var e3; + return (null === (e3 = this.commonModule) || void 0 === e3 ? void 0 : e3.flowId) ? [this.commonModule.flowId] : void 0; + } + get flowId() { + var e3; + return null === (e3 = this.commonModule) || void 0 === e3 ? void 0 : e3.flowId; + } + } + c.info = s.default.createActionInfo({ actionClass: c, canBeInTask: true, helpTopic: a.helpTopics.actions.callCommonModule, modelClass: i2(71706), name: d.actions.callCommonModule, scriptingName: "ArchActionCallCommonModule" }), t2.A = c; + }, 1454: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(20692)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "currencyCollection"; + } + get displayTypeName() { + return "ArchVariableCurrencyCollection"; + } + get initialValue() { + return this._initialValue; + } + get isArchVariableCurrencyCollection() { + return true; + } + } + t2.default = r2; + }, 1492: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.ChoiceType = t2.MANAGED_SLOT_TYPE_VALUE = t2.UI_META_DATA_KEY_REFERENCE_ID = t2.CHOICE_VALUE_TYPE_URL = t2.CHOICE_VALUE_TYPE_POSTBACK = t2.PROP_TYPE = t2.PROP_VALUE = t2.PROP_LABEL = t2.PROP_COMMAND = t2.ChoiceTypeCommands = void 0; + const n2 = i2(31635), r2 = i2(17604), o = n2.__importDefault(i2(92140)), a = n2.__importDefault(i2(7401)), s = i2(76978), l = i2(12847), u = i2(73062), d = n2.__importStar(i2(9345)), c = n2.__importStar(i2(63352)), p = i2(80428), _ = i2(14394), h = i2(59263), m = i2(39168), g = i2(28614), f = i2(28614), T = i2(94765), y = n2.__importStar(i2(10798)), S = n2.__importDefault(i2(4648)), A = i2(47957); + t2.ChoiceTypeCommands = { SKIP: "skip" }, t2.PROP_COMMAND = "command", t2.PROP_LABEL = "label", t2.PROP_VALUE = "value", t2.PROP_TYPE = "type", t2.CHOICE_VALUE_TYPE_POSTBACK = "postback", t2.CHOICE_VALUE_TYPE_URL = "url", t2.UI_META_DATA_KEY_REFERENCE_ID = "referenceId", t2.MANAGED_SLOT_TYPE_VALUE = "managedSlotTypeValue"; + class N extends T.ExpressionType { + constructor(e3, t3, i3) { + super(e3, t3, i3); + } + get className() { + return "ChoiceType"; + } + get isChoiceType() { + return true; + } + canConvertLitToExpression(e3) { + return false; + } + convertLitToExpression(e3, t3, i3) { + return ""; + } + getYamlObjectForLiteralSingleton(e3, i3, n3, r3) { + var o2; + const a2 = super.getYamlObjectForLiteralSingleton(e3, i3, n3, r3); + return y.isFeatureAvailable(S.default.botFlowsSupportDontKnowAnswers) && (null === (o2 = a2.command) || void 0 === o2 ? void 0 : o2.lit) === t2.ChoiceTypeCommands.SKIP ? this.isSkipDisabled(e3) ? a2.skipDisabled = true : delete a2.skipDisabled : (delete a2.command, delete a2.skipDisabled), a2; + } + static createExpressionOptionClass() { + return new s.ExpressionTypeChoiceOptions(); + } + createExpressionOptionClass() { + return new s.ExpressionTypeChoiceOptions(); + } + get supportsLiteralEditor() { + return true; + } + isSkipChoice(e3) { + var i3; + return (null === (i3 = e3.getProperty(t2.PROP_COMMAND)) || void 0 === i3 ? void 0 : i3.text) === t2.ChoiceTypeCommands.SKIP; + } + isSkipDisabled(e3) { + var t3; + return !!e3 && true === (null === (t3 = this.getPropCommand(e3)) || void 0 === t3 ? void 0 : t3.getUiMetaData("skipDisabled")); + } + setSkipDisabled(e3, t3) { + var i3; + e3 && (this.getPropCommand(e3).outOfService = t3, null === (i3 = this.getPropCommand(e3)) || void 0 === i3 || i3.setUiMetaData("skipDisabled", t3)); + } + getPropCommand(e3) { + return e3.getProperty(t2.PROP_COMMAND); + } + getPropLabel(e3) { + return e3.getProperty(t2.PROP_LABEL); + } + getPropValue(e3) { + return e3.getProperty(t2.PROP_VALUE); + } + getPropType(e3) { + return null == e3 ? void 0 : e3.getProperty(t2.PROP_TYPE); + } + getLiteralPropValue(e3) { + const t3 = this.getPropValue(e3); + return (null == t3 ? void 0 : t3.isLiteralMode) ? t3 : void 0; + } + getLiteralPropType(e3) { + const t3 = this.getPropType(e3); + return (null == t3 ? void 0 : t3.isLiteralMode) ? t3 : void 0; + } + getValueStr(e3) { + const t3 = this.getLiteralPropValue(e3); + return null == t3 ? void 0 : t3.text; + } + couldHaveUnknownPostbackValue(e3) { + if (!e3 || e3.outOfService) return false; + if (!e3.isLiteralMode) return true; + const i3 = e3.getProperty(t2.PROP_TYPE); + if (!(null == i3 ? void 0 : i3.isLiteralMode)) return true; + if (i3.text !== t2.CHOICE_VALUE_TYPE_POSTBACK) return false; + const n3 = e3.getProperty(t2.PROP_VALUE); + return !!n3 && !n3.isLiteralMode; + } + isUnknownAtDesignTime(e3) { + return !(null == e3 ? void 0 : e3.isLiteralMode); + } + isValueUnknownAtDesignTime(e3) { + var t3; + return this.isUnknownAtDesignTime(e3) || !(null === (t3 = this.getPropValue(e3)) || void 0 === t3 ? void 0 : t3.isLiteralMode); + } + isTypeUnknownAtDesignTime(e3) { + var t3; + return this.isUnknownAtDesignTime(e3) || !(null === (t3 = this.getPropType(e3)) || void 0 === t3 ? void 0 : t3.isLiteralMode); + } + getTypeStr(e3) { + const t3 = this.getLiteralPropType(e3); + return null == t3 ? void 0 : t3.text; + } + isPostbackChoice(e3) { + return e3 && this.getTypeStr(e3) === t2.CHOICE_VALUE_TYPE_POSTBACK; + } + isUrlChoice(e3) { + return e3 && this.getTypeStr(e3) === t2.CHOICE_VALUE_TYPE_URL; + } + hasQuickRepliesParent(e3) { + var t3, i3; + if (null === (i3 = null === (t3 = e3.parentList) || void 0 === t3 ? void 0 : t3.propertyParent) || void 0 === i3 ? void 0 : i3.type.isMatch(_.globalTypes.quickReplies, d.settings.exact)) return true; + } + hasCarouselParent(e3) { + var t3, i3, n3; + if ((null === (i3 = null === (t3 = e3.parentList) || void 0 === t3 ? void 0 : t3.propertyParent) || void 0 === i3 ? void 0 : i3.type.isMatch(_.globalTypes.card, d.settings.exact)) && (null === (n3 = e3.parentList.propertyParent.parentList) || void 0 === n3 ? void 0 : n3.propertyParent.type.isMatch(_.globalTypes.carousel, d.settings.exact))) return true; + } + getContainer(e3) { + var t3, i3, n3, r3; + return (null === (i3 = null === (t3 = e3.parentList) || void 0 === t3 ? void 0 : t3.propertyParent) || void 0 === i3 ? void 0 : i3.type.isMatch(_.globalTypes.quickReplies, d.settings.exact)) || (null === (r3 = null === (n3 = e3.parentList) || void 0 === n3 ? void 0 : n3.propertyParent) || void 0 === r3 ? void 0 : r3.type.isMatch(_.globalTypes.card, d.settings.exact)) ? e3.parentList.propertyParent : void 0; + } + _getChooser(e3) { + var t3; + return null === (t3 = e3.parent) || void 0 === t3 ? void 0 : t3.chooser; + } + _hasSlotTypeChooserParent(e3) { + const t3 = this._getChooser(e3); + return !!t3 && t3.type.getIsSlotOrSlotTypeChooser(t3); + } + getIsEnabled(e3) { + return null == e3 ? void 0 : e3.model.isEnabled; + } + setIsEnabled(e3, t3) { + e3 && t3 !== e3.model.isEnabled && (e3.model.isEnabled = t3); + } + getReferenceId(e3) { + return null == e3 ? void 0 : e3.getUiMetaData(t2.UI_META_DATA_KEY_REFERENCE_ID); + } + setReferenceId(e3, i3) { + e3 && e3.setUiMetaData(t2.UI_META_DATA_KEY_REFERENCE_ID, i3); + } + getRuntimeLabelStr(e3, i3) { + var n3, r3, o2, a2, s2, l2, u2, d2; + if (!e3) return; + const p2 = this.getPropValue(e3); + let _2, h2, m2; + if (e3.type.isPostbackChoice(e3)) { + m2 = true; + const t3 = e3.type.getValueStr(e3); + if (t3) { + const i4 = this._getChooser(e3); + if (i4) { + const e4 = i4.type.getSlotTypeName(i4); + if (e4) { + let u3; + if ((null === (r3 = null === (n3 = i4.parentFlow) || void 0 === n3 ? void 0 : n3.flowViewFilterOptions) || void 0 === r3 ? void 0 : r3.enabled) && (u3 = null === (o2 = i4.parentFlow) || void 0 === o2 ? void 0 : o2.flowViewFilterOptions.language), u3 || (u3 = null === (s2 = null === (a2 = i4.parentFlow) || void 0 === a2 ? void 0 : a2.defaultLanguage) || void 0 === s2 ? void 0 : s2.toLowerCase()), u3 && (h2 = null === (l2 = i4.parentFlow) || void 0 === l2 ? void 0 : l2.nluMetaData.getEntityTypeValueLabelForLanguage(e4, t3, u3), h2 && (_2 = h2, _2))) return _2; + } + if (!_2) switch (i4.type.getValueSourceType(i4)) { + case g.VALUE_SOURCE_TYPE_SLOT: + case f.VALUE_SOURCE_TYPE_SLOT_TYPE: + m2 = false; + } + } + } + } else m2 = e3.type.isUrlChoice(e3); + if (m2 && !_2) { + const i4 = e3.getProperty(t2.PROP_LABEL); + if (i4) if (i4.mode === c.noValue) _2 = (null == p2 ? void 0 : p2.mode) === c.noValue ? (null === (u2 = p2.options) || void 0 === u2 ? void 0 : u2.getModeNoValueRuntimeEvaluationStr(p2)) || p2.text : (null == p2 ? void 0 : p2.isExpressionMode) || null == p2 ? void 0 : p2.text; + else if (i4.mode === c.builder) { + const e4 = i4.parentFlow.getFlowFilterPreviewOptionsExpressionDisplayOptions(i4); + if (i4.builder.isDestroyed) return; + _2 = i4.builder.getExpressionDetails(e4 || { richSummary: false }) || i4.text || (null == p2 ? void 0 : p2.text); + } else _2 = i4.text || (null == p2 ? void 0 : p2.text); + else _2 = null == p2 ? void 0 : p2.text; + } else _2 = null == p2 ? void 0 : p2.text; + return i3 && !(null == _2 ? void 0 : _2.trim()) && (_2 = null === (d2 = null == p2 ? void 0 : p2.options) || void 0 === d2 ? void 0 : d2.getModeNoValueRuntimeEvaluationStr(p2)), _2; + } + getPossibleStringFacetValue(e3, i3) { + if (e3.type.getTypeStr(e3) === t2.CHOICE_VALUE_TYPE_POSTBACK) { + const t3 = this.getValueStr(e3); + if (t3) return { id: t3, displayString: i3 && this.getRuntimeLabelStr(e3, false) || t3 }; + } + } + getHasPostbackValue(e3) { + if ((null == e3 ? void 0 : e3.isLiteralMode) && this.getTypeStr(e3) === t2.CHOICE_VALUE_TYPE_POSTBACK) { + const t3 = this.getValueStr(e3); + return (null == t3 ? void 0 : t3.length) > 0; + } + } + getPostbackValue(e3) { + if (this.getTypeStr(e3) === t2.CHOICE_VALUE_TYPE_POSTBACK) { + const t3 = this.getValueStr(e3); + if (t3) return t3; + } + } + updateAllowableValues(e3, t3) { + var i3, n3, r3, o2; + if (!e3) return; + const a2 = this.getPropValue(e3); + a2 && a2.isLiteralMode && (!e3.type.isPostbackChoice(e3) || e3.type.isSkipChoice(e3) ? null === (o2 = null === (r3 = a2.options) || void 0 === r3 ? void 0 : r3.facets) || void 0 === o2 || o2.setAllowableValues(void 0) : null === (n3 = null === (i3 = a2.options) || void 0 === i3 ? void 0 : i3.facets) || void 0 === n3 || n3.setAllowableValues(t3)); + } + getIsSlotOrSlotTypeChoice(e3) { + if (!this._hasSlotTypeChooserParent(e3)) return false; + const t3 = this.isPostbackChoice(e3); + return !t3 || e3.type.getIsManagedSlotTypeValueChoice(e3) || e3.type.isSkipChoice(e3) || (0, l.warn)("we have a choice that is a postback but not managed for a NLU. Bah!"), t3; + } + configurePropertyCreationParams(e3, i3, n3) { + var r3; + switch (super.configurePropertyCreationParams(e3, i3, n3), null === (r3 = i3.name) || void 0 === r3 ? void 0 : r3.toLowerCase()) { + case t2.PROP_LABEL: + n3.options.setIninTestingField("choice-label"); + break; + case t2.PROP_VALUE: + n3.options.setIninTestingField("choice-value"); + break; + case t2.PROP_COMMAND: + n3.options.setValueChangedCallback((e4) => { + const t3 = null == e4 ? void 0 : e4.propertyParent; + t3 && this._updateOOS(t3); + }); + break; + case t2.PROP_TYPE: + n3.options.setIninTestingField("choice-type"), n3.options.setValueChangedCallback((e4) => { + const i4 = null == e4 ? void 0 : e4.propertyParent; + if (!i4) return; + const n4 = i4.type.getIsSlotOrSlotTypeChoice(i4), r4 = i4.getProperty(t2.PROP_LABEL); + r4 && (r4.outOfService = n4); + const o2 = i4.getProperty(t2.PROP_VALUE); + switch (i4.type.getTypeStr(i4)) { + case t2.CHOICE_VALUE_TYPE_URL: + o2.options.setModeNoValueRuntimeEvaluationStr(A.cardsAndCars.choiceNoUrlValue); + break; + case t2.CHOICE_VALUE_TYPE_POSTBACK: + n4 ? o2.options.setModeNoValueRuntimeEvaluationStr(A.cardsAndCars.choiceNoSlotTypeValue) : o2.options.setModeNoValueRuntimeEvaluationStr(A.cardsAndCars.choiceNoPostbackValue); + break; + default: + o2.options.setModeNoValueRuntimeEvaluationStr(A.cardsAndCars.choiceNoPostbackValue); + } + }); + } + } + validateLiteral(e3, t3) { + return !t3 || (!this.hasQuickRepliesParent(t3) || t3.type.isPostbackChoice(t3) || t3.type.isTypeUnknownAtDesignTime(t3) ? super.validateLiteral(e3, t3) : (e3.addExpressionError(t3, (0, r2.sprintf)(t3, A.cardsAndCars.choiceType.choiceInQuickReplyMustBePostback, t3.type.getTypeStr(t3))), false)); + } + _updateOOS(e3) { + if (!e3.isLiteralMode) return; + (this.hasQuickRepliesParent(e3) || this._hasSlotTypeChooserParent(e3) && this.hasCarouselParent(e3)) && (e3.getProperty(t2.PROP_TYPE).outOfService = true); + const i3 = e3.getProperty(t2.PROP_COMMAND); + if (i3 && y.isFeatureAvailable(S.default.botFlowsSupportDontKnowAnswers)) { + const n4 = true === i3.getUiMetaData("skipDisabled"); + i3.outOfService = n4 || i3.text !== t2.ChoiceTypeCommands.SKIP, i3.text === t2.ChoiceTypeCommands.SKIP && this._hasSlotTypeChooserParent(e3) && this.hasCarouselParent(e3) && (this.getPropValue(e3).options.setLabelOverride(""), this.getPropType(e3).setAsLiteral(t2.CHOICE_VALUE_TYPE_POSTBACK)); + } else y.isFeatureAvailable(S.default.botFlowsSupportDontKnowAnswers) || (i3.text = "none", i3.outOfService = true); + const n3 = e3.getProperty(t2.PROP_LABEL); + if (n3) { + const t3 = this.isSkipChoice(e3); + if (e3.type.getIsSlotOrSlotTypeChoice(e3) && !t3) return n3.setModeWithTransition(c.noValue), n3.options.setModeNoValueSelectionLabel(A.cardsAndCars.choiceFromSlotTypeValue).setModeNoValueRuntimeEvaluationStr(A.cardsAndCars.choiceUsingSlotTypeValue).setUiDisableOnOutOfService(true), void (n3.outOfService = true); + n3.options.setModeNoValueSelectionLabel(A.cardsAndCars.choiceLabelIsSameAsValue).setUiDisableOnOutOfService(true), n3.outOfService = false; + } + } + propertiesCreatedForThisTypeInstance(e3) { + var i3; + this.setIsEnabled(e3, true); + const n3 = e3.getProperty(t2.PROP_LABEL); + null === (i3 = null == n3 ? void 0 : n3.options) || void 0 === i3 || i3.setAllowedBuilderCategoryIdFilter(u.builderCategoryIds.labelString); + } + static createPostbackChoice(e3, i3, n3, r3) { + const o2 = N.createExpressionOptionClass(), s2 = new a.default(), l2 = new h.ExpressionParameters(n3, r3, s2); + l2.type = _.globalTypes.choice, l2.options = o2; + const u2 = new m.NormalExpression(l2); + return u2.type.getPropValue(u2).setAsLiteral(e3), u2.type.getPropType(u2).setAsLiteral(t2.CHOICE_VALUE_TYPE_POSTBACK), i3 && u2.setUiMetaData(t2.MANAGED_SLOT_TYPE_VALUE, e3), r3.initializeDesignTimeCalled && u2.initializeDesignTime(), u2; + } + setAsPostbackOrUrlValue(e3, i3, n3) { + if (!i3) return; + const r3 = i3.getProperty(t2.PROP_TYPE, true); + if (!r3) return; + const o2 = i3.getProperty(t2.PROP_VALUE, true); + o2 && (r3.setText(e3), (null == n3 ? void 0 : n3.length) && (o2.setText(n3), i3.type.getIsSlotOrSlotTypeChoice(i3) && e3 === t2.CHOICE_VALUE_TYPE_POSTBACK && i3.setUiMetaData(t2.MANAGED_SLOT_TYPE_VALUE, n3))); + } + getIsManagedSlotTypeValueChoice(e3) { + return !o.default.isUndefined(e3.getUiMetaData(t2.MANAGED_SLOT_TYPE_VALUE)); + } + canUserDelete(e3) { + return !this.getIsManagedSlotTypeValueChoice(e3); + } + createChoiceFromChoiceViewModel(e3, i3, n3) { + var r3, s2, l2, u2; + const d2 = N.createExpressionOptionClass(), c2 = new a.default(), p2 = new h.ExpressionParameters(e3, i3, c2); + p2.type = _.globalTypes.choice, p2.options = d2; + const g2 = new m.NormalExpression(p2); + if (null === (r3 = g2.getProperty(t2.PROP_TYPE)) || void 0 === r3 || r3.setAsLiteral(t2.CHOICE_VALUE_TYPE_POSTBACK), o.default.isUndefined(null === (s2 = n3.model) || void 0 === s2 ? void 0 : s2.name) || null === (l2 = g2.type.getPropValue(g2)) || void 0 === l2 || l2.setAsLiteral(null === (u2 = n3.model) || void 0 === u2 ? void 0 : u2.name), n3.label) { + const e4 = g2.getProperty(t2.PROP_LABEL); + if (e4) { + const t3 = n3.label.config; + try { + n3.label.config = void 0, e4.copyExpressionValue(n3.label); + } finally { + n3.label.config = t3; + } + } + } + return g2.type.setReferenceId(g2, n3.model.referenceId), i3.initializeDesignTimeCalled && g2.initializeDesignTime(), g2; + } + initializeDesignTime(e3) { + e3.isLiteralMode && this._hasSlotTypeChooserParent(e3) && this.hasCarouselParent(e3) && !this.getIsManagedSlotTypeValueChoice(e3) && !this.isTypeUnknownAtDesignTime(e3) && (this.getPropType(e3).setAsLiteral(t2.CHOICE_VALUE_TYPE_URL), this.getPropValue(e3).options.setLabelOverride(A.cardsAndCars.choiceUrlValue)), this._updateOOS(e3); + } + useCustomExpressionEditor(e3) { + var t3, i3; + if (this.hasQuickRepliesParent(e3) || (null === (i3 = null === (t3 = e3.parentList) || void 0 === t3 ? void 0 : t3.propertyParent) || void 0 === i3 ? void 0 : i3.type) === _.globalTypes.card) return true; + } + isInvalidNluChoice(e3, t3) { + if (!e3 || !t3) return false; + const i3 = e3.type.getManagedSlotTypeValue(e3); + if (!i3) return false; + const n3 = t3.invalidPostbackValueChoices[i3]; + return (null == n3 ? void 0 : n3.length) >= 1; + } + getManagedSlotTypeValue(e3) { + return null == e3 ? void 0 : e3.getUiMetaData(t2.MANAGED_SLOT_TYPE_VALUE); + } + get hasRichLiteralEditor() { + return true; + } + } + t2.ChoiceType = N, N.typeIdentifier = p.expressionTypeNames.choice; + }, 1607: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(81574)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "externalInstagramScopedId"; + } + get scopedId() { + } + get displayTypeName() { + return "ArchValueExternalInstagramScopedId"; + } + get isArchValueExternalInstagramScopedId() { + return true; + } + } + t2.default = r2; + }, 1638: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.getPreviewerForFlow = function(e3) { + var t3; + if (!e3) return; + let i3 = c[e3.id]; + if (r2.default.isUndefined(i3)) { + if (!(null === (t3 = s.default.getDefinitionForFlowType(e3.type)) || void 0 === t3 ? void 0 : t3.supportsTestPreview)) return; + switch (e3.type) { + case l.flowTypes.flowTypeDigitalBot: + i3 = new a.default(); + break; + case l.flowTypes.flowTypeInboundCall: + case l.flowTypes.flowTypeVoicemail: + case l.flowTypes.flowTypeVoiceSurvey: + i3 = new o.default(); + break; + case l.flowTypes.flowTypeWorkflow: + i3 = new u.default(); + break; + case l.flowTypes.flowTypeWorkitem: + i3 = new d.default(); + break; + default: + i3 = null; + } + c[e3.id] = i3; + } + return i3 || void 0; + }, t2.clearPreviewerForFlow = function(e3) { + e3 && delete c[e3.id]; + }; + const n2 = i2(31635), r2 = n2.__importDefault(i2(92140)), o = n2.__importDefault(i2(47470)), a = n2.__importDefault(i2(76189)), s = n2.__importDefault(i2(98114)), l = i2(96618), u = n2.__importDefault(i2(89069)), d = n2.__importDefault(i2(88280)), c = {}; + }, 1667: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(84655)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "card"; + } + get initialValue() { + return this._initialValue; + } + get displayTypeName() { + return "ArchVariableCard"; + } + get isArchVariableCard() { + return true; + } + } + t2.default = r2; + }, 1735: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = i2(19596), o = i2(80295), a = i2(50778); + class s extends r2.DataContract { + constructor(e3) { + Object.assign(e3, e3.surveyForm), super(e3); + } + get id() { + return this._id; + } + set id(e3) { + this._id = e3; + } + get name() { + return this._name; + } + set name(e3) { + this._name = e3; + } + get modifiedDate() { + return this._modifiedDate; + } + set modifiedDate(e3) { + this._modifiedDate = e3; + } + get published() { + return this._published; + } + set published(e3) { + this._published = e3; + } + get disabled() { + return this._disabled; + } + set disabled(e3) { + this._disabled = e3; + } + get contextId() { + return this._contextId; + } + set contextId(e3) { + this._contextId = e3; + } + get language() { + return this._language; + } + set language(e3) { + this._language = e3; + } + get header() { + return this._header; + } + set header(e3) { + this._header = e3; + } + get footer() { + return this._footer; + } + set footer(e3) { + this._footer = e3; + } + get questionGroups() { + return this._questionGroups; + } + set questionGroups(e3) { + this._questionGroups = e3; + } + get selfUri() { + return this._selfUri; + } + set selfUri(e3) { + this._selfUri = e3; + } + get explanationPrompt() { + return this._explanationPrompt; + } + set explanationPrompt(e3) { + this._explanationPrompt = e3; + } + get maxResponseCharacters() { + return this._maxResponseCharacters; + } + set maxResponseCharacters(e3) { + this._maxResponseCharacters = e3; + } + get latestPublishedVersion() { + return this._latestPublishedVersion; + } + set latestPublishedVersion(e3) { + this._latestPublishedVersion = e3; + } + get dependencyError() { + return this._dependencyError; + } + set dependencyError(e3) { + this._dependencyError = e3; + } + get division() { + return this._division; + } + set division(e3) { + this._division = this.reviveItem(e3, a); + } + } + t2.default = s, n2.__decorate([(0, o.enumerable)(true), n2.__metadata("design:type", String), n2.__metadata("design:paramtypes", [String])], s.prototype, "id", null), n2.__decorate([(0, o.enumerable)(true), n2.__metadata("design:type", String), n2.__metadata("design:paramtypes", [String])], s.prototype, "name", null), n2.__decorate([(0, o.enumerable)(true), n2.__metadata("design:type", String), n2.__metadata("design:paramtypes", [String])], s.prototype, "modifiedDate", null), n2.__decorate([(0, o.enumerable)(true), n2.__metadata("design:type", Boolean), n2.__metadata("design:paramtypes", [Boolean])], s.prototype, "published", null), n2.__decorate([(0, o.enumerable)(true), n2.__metadata("design:type", Boolean), n2.__metadata("design:paramtypes", [Boolean])], s.prototype, "disabled", null), n2.__decorate([(0, o.enumerable)(true), n2.__metadata("design:type", String), n2.__metadata("design:paramtypes", [String])], s.prototype, "contextId", null), n2.__decorate([(0, o.enumerable)(true), n2.__metadata("design:type", String), n2.__metadata("design:paramtypes", [String])], s.prototype, "language", null), n2.__decorate([(0, o.enumerable)(true), n2.__metadata("design:type", String), n2.__metadata("design:paramtypes", [String])], s.prototype, "header", null), n2.__decorate([(0, o.enumerable)(true), n2.__metadata("design:type", String), n2.__metadata("design:paramtypes", [String])], s.prototype, "footer", null), n2.__decorate([(0, o.enumerable)(true), n2.__metadata("design:type", Array), n2.__metadata("design:paramtypes", [Array])], s.prototype, "questionGroups", null), n2.__decorate([(0, o.enumerable)(true), n2.__metadata("design:type", String), n2.__metadata("design:paramtypes", [String])], s.prototype, "selfUri", null), n2.__decorate([(0, o.enumerable)(true), n2.__metadata("design:type", String), n2.__metadata("design:paramtypes", [String])], s.prototype, "explanationPrompt", null), n2.__decorate([(0, o.enumerable)(true), n2.__metadata("design:type", Number), n2.__metadata("design:paramtypes", [Number])], s.prototype, "maxResponseCharacters", null), n2.__decorate([(0, o.enumerable)(true), n2.__metadata("design:type", Boolean), n2.__metadata("design:paramtypes", [Boolean])], s.prototype, "latestPublishedVersion", null), n2.__decorate([(0, o.enumerable)(true), n2.__metadata("design:type", String), n2.__metadata("design:paramtypes", [String])], s.prototype, "dependencyError", null), n2.__decorate([(0, o.enumerable)(true), n2.__metadata("design:type", Object), n2.__metadata("design:paramtypes", [Object])], s.prototype, "division", null); + }, 1736: (e2, t2, i2) => { + const n2 = i2(22124), r2 = i2(80800); + function o() { + o.baseConstructor.apply(this, arguments); + } + n2.extend(o, "SkillList"), Object.defineProperties(o.prototype, { entities: { enumerable: true, get: function() { + return this._entities; + }, set: function(e3) { + this._entities = this.reviveArray(e3, r2); + } } }), e2.exports = o; + }, 1782: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.MenuViewModel = void 0; + const n2 = i2(31635), r2 = n2.__importDefault(i2(92140)), o = n2.__importStar(i2(36781)), a = n2.__importStar(i2(43773)), s = n2.__importStar(i2(58380)), l = n2.__importStar(i2(48565)), u = n2.__importStar(i2(1115)), d = i2(24235), c = i2(79364), p = n2.__importDefault(i2(33139)), _ = n2.__importDefault(i2(41197)), h = i2(12179), m = n2.__importDefault(i2(61864)), g = i2(30801), f = i2(30801), T = i2(63883), y = n2.__importDefault(i2(29102)), S = n2.__importDefault(i2(97891)), A = n2.__importDefault(i2(99025)), N = i2(30801), O = n2.__importDefault(i2(22917)), I = i2(47957), v = i2(2210), { AudioViewModel: C } = i2(96353), b = i2(52088); + i2(85160); + const E = { prompts: O.default.create(null, (e3) => e3.setPropertyName("audio")), menuSettings: O.default.create(null, (e3) => e3.setPropertyName("settingsMenu")), speechRecSettings: O.default.create(null, (e3) => e3.setPropertyName("settingsSpeechRec")) }; + class R extends _.default { + constructor(e3, t3) { + super(e3, e3), this.choices = [], this.isHidden = false, t3.prompts = t3.prompts || new v(), t3.uiMetaData || (t3.uiMetaData = {}), t3.uiMetaData.collapsed || (t3.uiMetaData.collapsed = false), this.prompts = new C(e3, this, t3.prompts, d.AudioViewModelOptions.create().setLabel(I.menu.initialAudioLabel).setIninTestingField("menuPrompt")), this.speechRecSettings = new A.default(e3, this), this.menuSettings = new y.default(e3, this), this._loadModel(t3), this.nameEventSink = b.createNameChangedEventSinkObject(this), s.registerEventSinkForEventEmitter(this.id, this.nameEventSink); + } + get className() { + return "MenuViewModel"; + } + _loadModel(e3) { + if (e3) { + if (super._loadModel(e3), l.registerNode(this), this.model.menuChoiceList || (this.model.menuChoiceList = []), this.choices.length = 0, this.model.menuChoiceList) for (let e4 = 0; e4 < this.model.menuChoiceList.length; e4++) { + const t3 = this.model.menuChoiceList[e4], i3 = T.MenuChoiceViewModel.loadMenuChoice(this, t3); + this.choices.push(i3); + } + this.speechRecSettings.loadConfiguration(this.model), this.menuSettings.loadConfiguration(this.model), this.defaultMenuChoice$ = new c.BehaviorSubject(void 0); + } + } + get amObjectEventEmitter() { + return true; + } + static get notRealAction() { + return true; + } + addChild(e3) { + const t3 = T.MenuChoiceViewModel.createMenuChoice(this, e3); + if (this.choices.push(t3), e3 === g.menuActionActionType) { + const e4 = this.parentFlow.createMenu(); + t3.linkMenu(e4), t3.name = t3.getSubMenuMenuViewModel().name, t3.isNameUnique() || (t3.name = this.parentFlow._getUniqueName(this.parentFlow.menus, I.menu.newDefaultName)); + } else if (e3 === N.taskActionActionType) { + const e4 = this.parentFlow.createTask(); + t3.linkTask(e4), t3.name = t3.getInlineTaskViewModel().name, t3.isNameUnique() || (t3.name = this.parentFlow._getUniqueName(this.parentFlow.tasks, I.task.newDefaultName)); + } + return t3.action && u.validateAction(t3.action, true), u.validateNode(this, true), this.choices.sort((e4, t4) => e4.sortValue.localeCompare(t4.sortValue)), this.invokeMenuChoicesChanged(), this.parentFlow.calcFlowSizeAsync(), t3; + } + invokeMenuChoicesChanged() { + s.fireEvent(this, o.menuChoicesChanged); + } + addClipboardDependencies(e3) { + super.addClipboardDependencies(e3), e3.copyCutProcessMenuViewModel(this), this.prompts.addClipboardDependencies(e3), this.menuSettings.addClipboardDependencies(e3), this.action && this.action.addClipboardDependencies(e3); + } + get canCollapse() { + return this.children.length > 0; + } + checkVersion(e3) { + this.prompts.checkVersion(e3), r2.default.each(this.choices, function(t3) { + t3.checkVersion(e3); + }); + } + get children() { + return this.choices; + } + get defaultMenuChoice() { + return this.model.defaultMenuChoice; + } + set defaultMenuChoice(e3) { + this.model.defaultMenuChoice = e3, this.defaultMenuChoice$.next(e3); + } + defaultChoiceInChoices() { + return !this.defaultMenuChoice || r2.default.find(this.choices, (e3) => e3.id === this.defaultMenuChoice); + } + deleteChild(e3) { + if (!this.choices) return; + const t3 = this.choices.indexOf(e3); + t3 < 0 || (e3.isDefaultMenuChoice && (this.defaultMenuChoice = null), e3.deleting && e3.deleting(), this.choices.splice(t3, 1), this.invokeMenuChoicesChanged(), this.parentFlow.calcFlowSizeAsync()); + } + destroyChildren() { + this.prompts.destroy(), r2.default.each(r2.default.clone(this.children), function(e3) { + e3.destroy(); + }), this.menuSettings.destroy(), this.speechRecSettings.destroy(); + } + _postDestroy() { + super._postDestroy(), this.parentMenu = null; + } + _preDestroy() { + super._preDestroy(), s.fireEvent(this, o.actionContainerDeleted), s.unregisterAndRemoveObject(this.nameEventSink); + } + getChild(e3) { + for (let t3 = 0; t3 < this.choices.length; t3++) { + const i3 = this.choices[t3]; + if (i3.id === e3) return i3; + if (i3.action && i3.action.id === e3) return i3; + } + return null; + } + getConfiguration(e3, t3) { + var i3; + const n3 = this.model.getConfiguration(e3, t3); + if (!this.choices.length && (null == t3 ? void 0 : t3.isForFlowYaml) || (n3[(null == t3 ? void 0 : t3.isForFlowYaml) ? p.default.choices : p.default.menuChoiceList] = r2.default.map(this.choices, (i4) => i4.getConfiguration(e3, t3))), null == t3 ? void 0 : t3.isForComparison) return a.removePropertiesForComparison(n3); + if (null == t3 ? void 0 : t3.isForFlowYaml) { + if (this.defaultMenuChoice) { + const e4 = this.defaultChoiceInChoices(); + e4 && (n3.defaultChildMenuRef = `./choices/${e4.action.wrappedYamlName}[${e4.getRefId()}]`); + } + (null === (i3 = null == t3 ? void 0 : t3.yamlOptions) || void 0 === i3 ? void 0 : i3.includeTrackingIds) && this.trackingId && (n3.trackingId = this.trackingId); + const o2 = this._getConfigurationForYaml(e3, t3); + return r2.default.extend(o2[this.wrappedYamlName], n3), o2[this.wrappedYamlName] = O.default.sortObjectByPropertyMap(o2[this.wrappedYamlName], this.yamlPropertyOrderMap), o2; + } + return n3; + } + getOrderedChoices() { + return r2.default.sortBy(this.choices, "uiSortStr"); + } + getYamlOptionsMap() { + return E; + } + get id() { + return this.model && this.model.id ? this.model.id : null; + } + initialize() { + for (let e3 = 0; e3 < this.choices.length; e3++) this.choices[e3].initialize(); + } + _initializeDesignTime() { + super._initializeDesignTime(), r2.default.each(this.choices, (e3) => e3.initializeDesignTime()), this.speechRecSettings.initializeDesignTime(), this.menuSettings.initializeDesignTime(), this.prompts.initializeDesignTime(); + } + get isAllowedAsStartupNode() { + return true; + } + get isMenu() { + return true; + } + isNameUnique() { + if (!this.parent || !this.parent.menus) return true; + const e3 = this.parent.menus; + for (let t3 = 0; t3 < e3.length; t3++) { + const i3 = e3[t3]; + if (i3.id !== this.id && i3.name === this.name) return false; + } + return true; + } + get isTopLevelNode() { + return true; + } + get name() { + return super.name; + } + set name(e3) { + const t3 = this.name; + super.name = e3, this.parentFlow.getUiMetadataInfoById("menu", this.id) && this.parentFlow.setUiMetadataInfo("menu", { id: this.id, name: this.name }), t3 !== e3 && u.validateNode(this, true); + } + get nodeGuxIcon() { + return m.default.menu.gux; + } + get resources() { + return { deleteTitle: I.deleteMenu, multipleNameError: I.menu.multipleNames, setAsStartup: I.setMenuAsStartup, startUpDisplayName: I.startUpMenuDisplayName }; + } + search(e3) { + if (e3.checkId(this, this.id, this.name), e3.checkTrackingId(this, this.trackingId, this.name), e3.checkName(this, this.name, I.menu.label), this.defaultMenuChoice) { + const t3 = r2.default.find(this.choices, function(e4) { + return e4.id === this.defaultMenuChoice; + }.bind(this)); + t3 && e3.checkText(this, t3.name, I.menu.defaultMenuChoice); + } + e3.addToQueue(this.prompts), r2.default.each(this.choices, e3.addToQueue.bind(e3)), e3.addToQueue(this.speechRecSettings), e3.addToQueue(this.menuSettings); + } + get trackingId() { + return this.model.trackingId; + } + set trackingId(e3) { + this.model.trackingId = e3; + } + getUsesSpeechRec() { + return !r2.default.isUndefined(r2.default.find(this.choices, (e3) => e3.getUsesSpeechRec())); + } + updateDependencies() { + r2.default.each(this.choices, function(e3) { + e3.action.updateDependencies(); + }), this.prompts.updateDependencies(); + } + traverse(e3) { + if (!e3 || e3.isCanceled) return; + const t3 = e3.getMenuCallback(); + if (t3) { + const i3 = e3.createCallbackParam(true); + if (t3(this, i3), !e3.processCallbackParamAndContinue(i3, true)) return; + } + if (this.choices) { + for (let t4 = this.choices.length - 1; t4 >= 0; t4--) if (this.choices[t4].traverse(e3), e3.isCanceled) return; + } + } + get collapsed() { + return this.uiMetaData.collapsed; + } + set collapsed(e3) { + this.uiMetaData.collapsed = e3, o.emitter.emit(o.collapseExpand, this); + } + get uiMetaData() { + return this.model.uiMetaData; + } + set uiMetaData(e3) { + this.model.uiMetaData = e3; + } + validate(e3) { + super.validate(e3), 0 === this.choices.length && e3.addError(this, I.menu.noMenuChoices), this.prompts.validate(e3), this.defaultChoiceInChoices() || e3.addError(this, I.menu.defaultChoiceNotValid), this.speechRecSettings.validate(e3), this.menuSettings.validate(e3); + } + get wrappedYamlName() { + return "menu"; + } + toString() { + return `Menu: ${super.toString()}`; + } + } + t2.MenuViewModel = R, R.info = S.default.createReusableNodeInfo({ actionType: f.menuActionType, actionClass: R, helpTopic: h.helpTopics.actions.subMenu, name: I.actions.menu, needsServerInfo: true, categoryId: "category.menu" }); + }, 1903: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.onErrorResumeNext = void 0; + var n2 = i2(48051), r2 = i2(7652), o = i2(17214), a = i2(5717), s = i2(19724); + t2.onErrorResumeNext = function() { + for (var e3 = [], t3 = 0; t3 < arguments.length; t3++) e3[t3] = arguments[t3]; + var i3 = r2.argsOrArgArray(e3); + return new n2.Observable(function(e4) { + var t4 = 0, n3 = function() { + if (t4 < i3.length) { + var r3 = void 0; + try { + r3 = s.innerFrom(i3[t4++]); + } catch (e5) { + return void n3(); + } + var l = new o.OperatorSubscriber(e4, void 0, a.noop, a.noop); + r3.subscribe(l), l.add(n3); + } else e4.complete(); + }; + n3(); + }); + }; + }, 2036: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = i2(30801), o = n2.__importDefault(i2(11210)); + class a extends o.default { + constructor(e3) { + super(e3); + } + get _actionTypeId() { + return r2.completeSendActionType; + } + get displayTypeName() { + return this._scriptingName; + } + get isArchActionCompleteSend() { + return true; + } + } + t2.default = a; + }, 2053: (e2, t2, i2) => { + const n2 = i2(2210), r2 = i2(60856), o = i2(7401); + function a() { + Object.defineProperties(this, { _audio: { writable: true }, _queue: { writable: true } }), this.menuReference = void 0, this.menuReferenceName = void 0, this.taskReference = void 0, this.taskReferenceName = void 0, this.stateReference = void 0, this.stateReferenceName = void 0, a.baseConstructor.apply(this, arguments); + } + r2.extend(a, "ErrorHandlingSettings"), Object.defineProperties(a.prototype, { pasteReIdOrRename: { value: function(e3) { + a._super.pasteReIdOrRename.apply(this, arguments), this.audio && this.audio.pasteReIdOrRename(e3), this.queue && this.queue.pasteReIdOrRename(e3); + } }, pasteResolveOldToNewValues: { value: function(e3) { + a._super.pasteResolveOldToNewValues.apply(this, arguments), this.menuReference = e3.pasteResolveOldIdToNewId(this.menuReference), this.menuReferenceName = e3.pasteResolveOldMenuNameToNewMenuName(this.menuReferenceName), this.taskReference = e3.pasteResolveOldIdToNewId(this.taskReference), this.taskReferenceName = e3.pasteResolveOldStateNameToNewStateName(this.taskReferenceName), this.stateReference = e3.pasteResolveOldIdToNewId(this.stateReference), this.stateReferenceName = e3.pasteResolveOldTaskNameToNewTaskName(this.stateReferenceName), this.audio && this.audio.pasteResolveOldToNewValues(e3), this.queue && this.queue.pasteResolveOldToNewValues(e3); + } }, audio: { enumerable: true, get: function() { + return this._audio; + }, set: function(e3) { + this._audio = this.reviveItem(e3, n2); + } }, queue: { enumerable: true, get: function() { + return this._queue; + }, set: function(e3) { + this._queue = this.reviveItem(e3, o); + } } }), e2.exports = a; + }, 2092: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(54063)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "journeyCustomEventAttributeCollection"; + } + get displayTypeName() { + return "ArchValueJourneyCustomEventAttributeCollection"; + } + get isArchValueJourneyCustomEventAttributeCollection() { + return true; + } + } + t2.default = r2; + }, 2210: (e2, t2, i2) => { + const n2 = i2(84133), r2 = i2(45214), o = i2(7401); + function a() { + Object.defineProperties(this, { _defaultAudio: { writable: true }, _bargeInExpression: { writable: true }, _flushExpression: { writable: true }, _cases: { writable: true } }), this.uiMetaData = void 0, a.baseConstructor.apply(this, arguments); + } + r2.extend(a, "AudioGroup"), Object.defineProperties(a.prototype, { pasteReIdOrRename: { value: function(e3) { + this.bargeInExpression && this.bargeInExpression.pasteReIdOrRename(e3), this.flushExpression.pasteReIdOrRename(e3), this.defaultAudio.pasteReIdOrRename(e3); + for (let t3 = 0; t3 < this.cases.length; t3++) this.cases[t3].pasteReIdOrRename(e3); + } }, pasteResolveOldToNewValues: { value: function(e3) { + this.bargeInExpression && this.bargeInExpression.pasteResolveOldToNewValues(e3), this.flushExpression.pasteResolveOldToNewValues(e3), this.defaultAudio.pasteResolveOldToNewValues(e3); + for (let t3 = 0; t3 < this.cases.length; t3++) this.cases[t3].pasteResolveOldToNewValues(e3); + } }, bargeInExpression: { enumerable: true, get: function() { + return this._bargeInExpression; + }, set: function(e3) { + this._bargeInExpression = this.reviveItem(e3, o); + } }, flushExpression: { enumerable: true, get: function() { + return this._flushExpression; + }, set: function(e3) { + this._flushExpression = this.reviveItem(e3, o); + } }, defaultAudio: { enumerable: true, get: function() { + return this._defaultAudio; + }, set: function(e3) { + this._defaultAudio = this.reviveItem(e3, o); + } }, cases: { enumerable: true, get: function() { + return this._cases; + }, set: function(e3) { + this._cases = this.reviveArray(e3, n2); + } }, isAudioGroup: { get: function() { + return true; + } } }), e2.exports = a; + }, 2235: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.getSpeechToTextEngine = t2.getSpeechToTextEngines = void 0; + const n2 = i2(73303), r2 = i2(66847), o = i2(36019).default, a = { ignoreBadResponse: true }; + t2.getSpeechToTextEngines = o.request("GET", "{public-api.apps}/api/v2/integrations/speech/stt/engines", r2, a), t2.getSpeechToTextEngine = o.request("GET", "{public-api.apps}/api/v2/integrations/speech/stt/engines/{engineId}", n2, a); + }, 2257: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importDefault(i2(96481)), o = n2.__importDefault(i2(94225)), a = n2.__importDefault(i2(56549)); + class s extends r2.default { + constructor(e3) { + super(e3); + } + get isArchBaseActionLex() { + return true; + } + get lexBotOutputsFailure() { + return this._coreActionViewModel.errorBindings ? this.coreFactory.createArchWrapper(this._coreActionViewModel.errorBindings) : null; + } + _setLexBotAliasByIdAsync(e3, t3, i3) { + return this._checkItemIsValidLiteralString(this._infoParm("aliasId", e3), t3, false), this._checkItemIsValidFunction(this._infoParm("callbackFunction", e3), i3, true), a.default.findItemByIdAsync(this._aliasManager, t3, "alias").then((n3) => (this.logNote("Found the Lex bot alias named '" + n3.name + "' for the alias ID of '" + t3 + "'"), this._coreActionViewModel.setBotRunnableByViewModel(n3), o.default.executeCallback(this, e3, i3, this))); + } + get intentSlots() { + return this.coreFactory.createArchWrapper(this._getCoreViewModel().outputs); + } + } + t2.default = s; + }, 2305: (e2, t2) => { + "use strict"; + var i2; + Object.defineProperty(t2, "__esModule", { value: true }), t2.SurveyFormDependencyErrors = void 0, (function(e3) { + e3.disabled = "DISABLED", e3.doesNotExist = "DOES_NOT_EXIST", e3.none = "NONE", e3.notLatest = "NOT_LATEST"; + })(i2 || (t2.SurveyFormDependencyErrors = i2 = {})); + }, 2315: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(92140)); + class r2 { + constructor(e3) { + Object.defineProperties(this, { _currentIndent: { value: "", writable: true }, _indent: { writable: true }, _indentLength: { writable: true }, _newLine: { writable: true }, _sprintfCustomizations: { value: false, writable: true }, _wantFormatting: { value: e3, writable: true } }), this.reset(); + } + static createNoFormattingBuildTextHelper() { + return new r2(false); + } + static createFormattedBuildTextHelper() { + return new r2(true); + } + static createSprintfBuildTextHelper() { + const e3 = new r2(false); + return e3._sprintfCustomizations = true, e3; + } + get currentIndent() { + return this._currentIndent; + } + get indent() { + return this._indent; + } + get newLine() { + return this._newLine; + } + get allowSprintfCustomizations() { + return this._sprintfCustomizations; + } + get className() { + return "BuildTextHelper"; + } + get isBuildTextHelper() { + return true; + } + destroy() { + this._currentIndent = void 0, this._indent = void 0, this._indentLength = void 0, this._newLine = void 0, this._wantFormatting = void 0; + } + increaseIndent() { + this._currentIndent += this._indent; + } + decreaseIndent() { + this._currentIndent = this._currentIndent.substring(this._indentLength); + } + formatBuiltText(e3, t3) { + return n2.default.isString(e3) && e3.length ? t3 ? `${this._currentIndent}${e3}` : `${this._currentIndent}${e3}${this._newLine}` : ""; + } + formatBuiltTextNoNewline(e3) { + return n2.default.isString(e3) && e3.length ? `${this._currentIndent}${e3}` : ""; + } + startBuilder() { + this.reset(); + } + endBuilder() { + } + formatExpressionText(e3, t3, i3) { + return t3 ? i3 ? `${this._newLine}${this._currentIndent}${e3}` : `${this._newLine}${e3}` : i3 ? `${this._currentIndent}${e3}` : e3; + } + formatFunctionInvocation(e3, t3, i3, r3, o) { + let a = r3 ? this._newLine : ""; + return o && (a += this._currentIndent), n2.default.isArray(t3) ? `${a}${e3}${t3.join(", ")}${i3}` : `${a}${e3}${i3}`; + } + reset() { + this._currentIndent = "", this._indent = this._wantFormatting ? " " : "", this._indentLength = this._indent.length, this._newLine = this._wantFormatting ? "\n" : ""; + } + } + t2.default = r2; + }, 2318: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importDefault(i2(92140)), o = n2.__importStar(i2(24032)), a = n2.__importDefault(i2(4648)), s = i2(16321), l = i2(19284), u = (n2.__importStar(i2(35515)), n2.__importStar(i2(10798))), d = i2(18638), c = n2.__importStar(i2(98442)), p = n2.__importStar(i2(71634)), _ = o.getTopic("addInService"), h = new class { + constructor() { + this._addInEventSinks = {}; + } + get currentUserCanUseBotSessionViewer() { + return u.isFeatureAvailable(a.default.botFlowsUiSessionViewer) && d.permissionServiceHelper.canViewBotSessions(); + } + get currentUserCanUseIntentMiner() { + return d.permissionServiceHelper.canViewIntentMiner(); + } + get currentUserCanUsePreviewWidget() { + return u.isFeatureAvailable(a.default.previewDigitalBotFlowTestWidgetFeature) && d.permissionServiceHelper.canUsePreviewWidget(); + } + get currentUserCanUseBotPerformanceReport() { + return d.permissionServiceHelper.canViewBotPerformanceReport(); + } + get currentUserCanUseOptimizationOverview() { + return u.isFeatureAvailable(a.default.botFlowsAnalyticsDashboardFeature) && d.permissionServiceHelper.canViewOptimizationOverview(); + } + get currentUserCanUseInteractionReport() { + return d.permissionServiceHelper.canViewInteractionReport(); + } + get currentUserCanUseSurveyPerformanceReport() { + return d.permissionServiceHelper.canViewSurveyPerformanceReport(); + } + get currentUserCanUseContentSearchEnabledKnowledge() { + return u.isFeatureAvailable(a.default.botFlowsKnowledgeContentSearch); + } + get currentUserCanUseKnowledge() { + return u.isFeatureAvailable(a.default.botFlowsKnowledge); + } + get currentUserCanUseKnowledgeV3() { + return u.isFeatureAvailable(a.default.botFlowsVirtualAgentKnowledgeV3); + } + get currentUserCanUsePathDiscovery() { + return u.isFeatureAvailable(a.default.pathDiscoveryFeature) && d.permissionServiceHelper.canViewPathDiscovery(); + } + get currentUserCanUsePathDiscoveryCallFlows() { + return u.isFeatureAvailable(a.default.pathDiscoveryCallFlowsFeature) && d.permissionServiceHelper.canViewPathDiscovery(); + } + get currentUserCanUsePathDiscoveryV3Flows() { + return u.isFeatureAvailable(a.default.pathDiscoveryV3Feature) && d.permissionServiceHelper.canViewPathDiscovery(); + } + get currentUserCanUseVirtualAgentItems() { + return u.isFeatureAvailable(a.default.botFlowsVirtualAgentSummarization) || u.isFeatureAvailable(a.default.botFlowsDigitalBotFlowsBotSummarization); + } + get currentUserCanUseVirtualAgentPerformanceReport() { + return u.isFeatureAvailable(a.default.botFlowsVirtualAgentKPI) && d.permissionServiceHelper.canViewVirtualAgentPerformanceReport(); + } + createFlowSupportedLanguagesSnapshot(e3) { + var t3, i3; + if (!(null == e3 ? void 0 : e3.supportsLanguages)) return; + const n3 = [], o2 = null === (t3 = e3.defaultLanguage) || void 0 === t3 ? void 0 : t3.toLowerCase(); + return r2.default.each(null === (i3 = null == e3 ? void 0 : e3.languages) || void 0 === i3 ? void 0 : i3.supportedLanguagesLCase, (e4) => { + if (r2.default.isString(e4)) { + const t4 = { id: e4 }; + e4 === o2 && (t4.isDefault = true), n3.push(t4); + } + }), n3; + } + createStartupModeAddIntent() { + return { action: "addIntent" }; + } + createArchFlowVersionInfo(e3) { + if (e3) return { name: e3.name }; + } + createCommonCustomData(e3, t3, i3, n3) { + var o2, a2, s2, d2, _2, h2; + const m = { actions: {}, sttEngines: [], enabledFeatures: u.getEnabledFeatureConfigNames(), isReadOnly: !!(null == e3 ? void 0 : e3.isReadOnly), startup: r2.default.isObject(n3) ? n3 : { action: null }, viewSettings: { languageSettings: r2.default.clone(c.getLanguageObjectForCurrentLocale()), mode: t3 === p.embedded ? p.embedded : p.modal, theming: i3 } }; + if ((null === l.speechToTextEngineManager || void 0 === l.speechToTextEngineManager ? void 0 : l.speechToTextEngineManager.items) && r2.default.each(null === l.speechToTextEngineManager || void 0 === l.speechToTextEngineManager ? void 0 : l.speechToTextEngineManager.items, (e4) => { + const t4 = { id: e4.id, name: e4.name, grammarBased: !!e4.grammarBased }; + m.sttEngines.push(t4); + }), e3.flowSequenceItemList) { + const t4 = e3.flowSequenceItemList.reduce((e4, t5) => { + var i4; + const n4 = (null !== (i4 = t5.actionList) && void 0 !== i4 ? i4 : []).reduce((e5, i5) => Object.assign(Object.assign({}, e5), { [i5.id]: { actionName: i5.trackingId.toString() + " " + i5.name, actionType: i5.type, taskName: t5.name } }), {}); + return Object.assign(Object.assign({}, e4), n4); + }, {}); + m.actions = t4; + } + if (e3.flowViewFilterOptions) { + const t4 = {}; + (null === (o2 = e3.flowViewFilterOptions) || void 0 === o2 ? void 0 : o2.language) && (t4.language = null === (a2 = e3.flowViewFilterOptions) || void 0 === a2 ? void 0 : a2.language), (null === (s2 = e3.flowViewFilterOptions) || void 0 === s2 ? void 0 : s2.outputMode) && (t4.outputMode = null === (d2 = e3.flowViewFilterOptions) || void 0 === d2 ? void 0 : d2.outputMode), r2.default.isEmpty(t4) || (m.viewSettings.flowViewFilter = t4); + } + if (e3) { + const t4 = e3.definition; + m.flowInfo = { id: e3.id, name: e3.displayName, description: e3.description, divisionId: null === (h2 = null === (_2 = e3.info) || void 0 === _2 ? void 0 : _2.division) || void 0 === h2 ? void 0 : h2.id, type: e3.type, typeInfo: { supportsNLU: !!(null == t4 ? void 0 : t4.supportsNlu), supportsNLUIntents: !!(null == t4 ? void 0 : t4.supportsNluIntents) } }; + const i4 = e3.versions; + if (i4) { + const e4 = {}; + i4.checkedInVersion && (e4.checkedInVersionInfo = this.createArchFlowVersionInfo(i4.checkedInVersion)), i4.publishedVersion && (e4.publishedVersionInfo = this.createArchFlowVersionInfo(i4.publishedVersion)), i4.savedVersion && (e4.savedVersionInfo = this.createArchFlowVersionInfo(i4.savedVersion)), r2.default.isEmpty(e4) || (m.flowInfo.versionsInfo = e4), i4.rawCurrentVersionNumber && (m.flowInfo.currentVersionActual = i4.rawCurrentVersionNumber), i4.currentVersionNumber && (m.flowInfo.currentVersionUi = i4.currentVersionNumber); + } + } + const g = []; + r2.default.each(e3.tasks, (e4) => { + if (e4.isReusableTask) { + const t4 = { id: e4.id, name: e4.name }; + g.push(t4); + } + }), g.length && (m.reusableTasks = g); + const f = this.createFlowSupportedLanguagesSnapshot(e3); + return r2.default.isArray(f) && (m.supportedLanguages = f), m; + } + createBasicCustomData(e3, t3, i3, n3) { + return this.createCommonCustomData(e3, t3, i3, n3); + } + createNluCustomData(e3, t3, i3, n3) { + var o2, a2, l2, u2, d2, c2, p2, h2, m, g, f, T, y, S; + const A = this.createCommonCustomData(e3, t3, i3, n3); + if ((null === (o2 = e3.nluMetaData) || void 0 === o2 ? void 0 : o2.dynamicSlotTypesMap) && !(null === (a2 = e3.nluMetaData) || void 0 === a2 ? void 0 : a2.dynamicSlotTypesMap.outOfService)) { + const t4 = []; + r2.default.each(null === (l2 = e3.nluMetaData) || void 0 === l2 ? void 0 : l2.dynamicSlotTypesMap.items, (e4) => { + var i4, n4, r3; + if (!e4) return; + const o3 = { name: e4.name }, a3 = null === (i4 = e4.values) || void 0 === i4 ? void 0 : i4.displayValue; + a3 && (o3.values = { displayValue: a3 }); + const s2 = null === (n4 = e4.synonyms) || void 0 === n4 ? void 0 : n4.displayValue; + if (s2 && (o3.synonyms = { displayValue: s2 }), !e4.labels.outOfService) { + const t5 = null === (r3 = e4.labels) || void 0 === r3 ? void 0 : r3.displayValue; + o3.labels = { displayValue: t5 }; + } + t4.push(o3); + }), t4.length && (A.dynamicSlotTypes = t4); + } + const N = null === (u2 = e3.nluMetaData) || void 0 === u2 ? void 0 : u2.dynamicTimeslotTypeList; + if (N && !N.outOfService) { + const e4 = (N.items || []).map((e5) => !(null == e5 ? void 0 : e5.timeslots) || e5.timeslots.outOfService ? null : { name: e5.name, timeslots: { displayValue: e5.timeslots.displayValue } }).filter((e5) => !!e5); + e4.length && (A.dynamicTimeslots = e4); + } + if ((null == e3 ? void 0 : e3.isNluFlow) && (A.versionId = null === (d2 = e3.botFlowSettings) || void 0 === d2 ? void 0 : d2.nluDomainVersionId, A.rawNlu = e3.nluMetaData.rawNlu, A.archNlu = e3.nluMetaData.archNlu, A.nluEngineVersion = null === (c2 = e3.botFlowSettings) || void 0 === c2 ? void 0 : c2.engineVersion, A.allowsMoreThanOneSupportedLanguage = null === (p2 = e3.botFlowSettings) || void 0 === p2 ? void 0 : p2.allowsMoreThanOneSupportedLanguage, A.trainingStatus = e3.nluMetaData.trainingStatus, A.intentHealthInfo = null === (h2 = e3.nluMetaData) || void 0 === h2 ? void 0 : h2.intentHealthInfo, A.nluGeneratedInputInfo = null === (m = e3.nluMetaData) || void 0 === m ? void 0 : m.nluGeneratedInputInfo, A.virtualAgentEnabled = null === (g = e3.botFlowSettings) || void 0 === g ? void 0 : g.virtualAgentEnabled, A.naturalLanguageUnderstanding = null === (f = s.bootstrapService.featureSupport) || void 0 === f ? void 0 : f.naturalLanguageUnderstanding, r2.default.isObject(null === (T = A.naturalLanguageUnderstanding) || void 0 === T ? void 0 : T.flowTypesToEngines) && r2.default.isObject(A.naturalLanguageUnderstanding.nluEngines))) { + A.naturalLanguageUnderstanding = r2.default.deepClone(A.naturalLanguageUnderstanding); + const t4 = null === (y = e3.defaultLanguage) || void 0 === y ? void 0 : y.toLowerCase(), i4 = r2.default.find(A.naturalLanguageUnderstanding.flowTypesToEngines[e3.type], (e4, i5) => i5 === t4); + if (i4) { + const t5 = A.naturalLanguageUnderstanding.nluEngines[i4]; + r2.default.isObject(t5) ? (A.naturalLanguageUnderstanding.limits = t5.limits, A.naturalLanguageUnderstanding.supportedLanguages = t5.supportedLanguages) : _.error(`no NLU engine information to set on custom data naturalLanguageUnderstanding for version '${i4}' retrieved from flow type '${null == e3 ? void 0 : e3.type}'.`); + } else _.error(`unable to find NLU engine version to use for flow type '${null == e3 ? void 0 : e3.type}'.`); + } + (null == e3 ? void 0 : e3.isDigitalBotFlow) && (A.intentTaskMappings = Object.entries(e3.nluMetaData.intentsToReusableTasksMapping).map(([e4, t4]) => ({ intentName: e4, taskId: t4.id }))), e3.supportsGrammars && (A.slotGrammarMappings = r2.default.clone(e3.nluMetaData.slotsToGrammarsMapping)), (null == e3 ? void 0 : e3.isDigitalBotFlow) && (A.listPickerMappings = r2.default.clone(e3.nluMetaData.listPickerMappings)); + const O = [], I = []; + return r2.default.each(null === (S = e3.variableGroup) || void 0 === S ? void 0 : S.flowVariables, (t4) => { + var i4, n4; + const r3 = { id: t4.id, name: t4.name, dataType: t4.type.dataType }; + if ((null === (i4 = t4.type) || void 0 === i4 ? void 0 : i4.isCollection) && (r3.isCollection = true), t4.isInput && (r3.isInput = true), t4.isOutput && (r3.isOutput = true), t4.isSecure && (r3.isSecure = true), t4.isSlotVariable) { + r3.isSlotVariable = true, r3.slotHandling = t4.slotHandling; + const i5 = null === (n4 = e3.nluMetaData) || void 0 === n4 ? void 0 : n4.getSlotNameForVariableId(t4.id); + i5 && (r3.slotName = i5, I.push({ entityName: i5, slotHandling: r3.slotHandling })); + } + O.push(r3); + }), I.length && (A.nluEntityHandling = I), O.length && (A.variables = { flow: O }), A; + } + createNluCortexCustomData(e3, t3, i3, n3) { + const r3 = this.createCommonCustomData(e3, i3, n3); + return r3.cortexNlu = { intents: t3.intents }, r3; + } + registerAddInEventSink(e3, t3) { + return !(!r2.default.isString(e3) || !e3.length || (this._addInEventSinks[e3] = t3, 0)); + } + unregisterAddInEventSink(e3) { + return !(!r2.default.isString(e3) || !e3.length) && delete this._addInEventSinks[e3]; + } + }(); + t2.default = h; + }, 2337: (e2, t2, i2) => { + "use strict"; + const n2 = i2(31635), r2 = n2.__importDefault(i2(92140)), o = i2(12179), a = i2(12457), s = n2.__importDefault(i2(5730)), l = i2(80428), u = i2(81516), d = n2.__importDefault(i2(97891)), c = i2(24383), p = i2(47957), _ = i2(4059); + class h extends s.default { + constructor(e3, t3) { + super(e3.parentFlow, e3), this._loadModel(t3); + } + getDetails() { + let e3 = this.disposition.text; + if (this.disposition.isLiteralMode) { + const t3 = r2.default.find(_, { id: this.disposition.text }); + e3 = t3 ? t3.displayString : p.abortSurvey.noDisposition; + } + return new a.ActionDetails([p.abortSurvey.dispositionLabel], [e3]); + } + static get managedProperties() { + return [{ label: p.abortSurvey.dispositionLabel, options: u.ExpressionTypeStringOptions.create((e3) => e3.setIninTestingField("abortSurveyDispositionExpression").facets.setTrim(true).setAllowableValues(_).setAllowableValuePlaceholder(p.abortSurvey.dispositionWatermark)), property: "disposition", type: l.expressionTypeNames.string }]; + } + } + h.info = d.default.createActionInfo({ actionClass: h, canBeInTask: true, helpTopic: o.helpTopics.actions.abortSurvey, modelClass: i2(54987), name: p.actions.abortSurvey, scriptingName: "ArchActionAbortSurveyInvite", termination: c.terminatesFlow }), t2.A = h; + }, 2384: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importDefault(i2(92140)), o = n2.__importStar(i2(12847)), a = n2.__importStar(i2(36781)), s = n2.__importStar(i2(58380)), l = i2(9456), u = n2.__importDefault(i2(73198)); + t2.default = class { + constructor() { + this.id = (0, l.uuid)(), this.amObjectEventEmitter = true, this.collections = [], this.map = {}, this.singletons = []; + } + cloneTo(e3, t3) { + let i3, n3; + return r2.default.each(this.map, (o2, l2) => { + var u2, d; + if (i3 = o2.single, n3 = o2.collection, null === (d = null === (u2 = o2.single) || void 0 === u2 ? void 0 : u2.model) || void 0 === d ? void 0 : d.isCustomizablePerFlow) { + const t4 = o2.single.constructor; + i3 = new t4(e3, r2.default.deepClone(o2.single.model), o2.single.isCollection); + } + if (t3.map[l2] = { single: i3, collection: n3 }, i3 && t3.singletons.push(i3), n3 && t3.collections.push(n3), (null == i3 ? void 0 : i3.isCustomTypeArchitectBuiltIn) && (null == i3 ? void 0 : i3.isAvailableForFlowType(e3.type, true))) { + const n4 = i3.getCustomDataTypeDefinition(); + s.fireEvent(t3, a.customDataTypeRegistered, { dataTypeDefViewModel: n4, expressionType: i3 }, e3); + } + }), t3; + } + destroy() { + r2.default.each(this.map, (e3, t3) => { + e3.collection && e3.collection.destroy(), e3.single && e3.single.destroy(), delete this.map[t3]; + }), this.collections.length = 0, this.singletons.length = 0; + } + _processTypeCollection(e3, t3) { + var i3; + for (let n3 = e3.length - 1; n3 >= 0; n3--) { + const r3 = e3[n3]; + !r3.isCollection || (null === (i3 = t3.dataTypes[r3.dataType]) || void 0 === i3 ? void 0 : i3.allowCollection) ? r3.startupConnectedAndReady() : e3.splice(n3, 1); + } + } + startupConnectedAndReady(e3) { + this._processTypeCollection(this.collections, e3), this._processTypeCollection(this.singletons, e3); + } + _getFlowTypeTypes(e3) { + const t3 = []; + return this.singletons.forEach((i3) => { + i3.isAvailableForFlowType(e3, true) && t3.push(i3); + }), this.collections.forEach((i3) => { + i3.isAvailableForFlowType(e3, true) && t3.push(i3); + }), t3; + } + _getFlowInputTypes(e3) { + const t3 = []; + return this.singletons.forEach((i3) => { + i3.isAvailableAsInputForFlowType(e3) && t3.push(i3); + }), this.collections.forEach((i3) => { + i3.isAvailableAsInputForFlowType(e3) && t3.push(i3); + }), t3; + } + _getFlowOutputTypes(e3) { + const t3 = []; + return this.singletons.forEach((i3) => { + i3.isAvailableAsOutputForFlowType(e3) && t3.push(i3); + }), this.collections.forEach((i3) => { + i3.isAvailableAsOutputForFlowType(e3) && t3.push(i3); + }), t3; + } + _getFlowCreatableDataTypes(e3) { + const t3 = []; + return this.singletons.forEach((i3) => { + i3.isUserCreatableForFlow(e3) && t3.push(i3); + }), this.collections.forEach((i3) => { + i3.isUserCreatableForFlow(e3) && t3.push(i3); + }), t3; + } + getType(e3, t3) { + const i3 = this.map[e3]; + return i3 ? t3 ? i3.collection : i3.single : null; + } + getTypeFromDisplayString(e3) { + let t3 = r2.default.findWhere(this.singletons, { displayString: e3 }); + return t3 || (t3 = r2.default.findWhere(this.collections, { displayString: e3 })), t3; + } + _getMatchingTypes(e3, t3) { + const i3 = []; + return e3 && e3.isExpressionType && (e3.isCollection ? this.collections : this.singletons).forEach((n3) => { + !n3.isAnyPromptOrAudio && e3.isMatch(n3, t3) && i3.push(n3); + }), i3; + } + addCustomType(e3, t3, i3, n3) { + const r3 = e3.dataTypeId; + if (null == t3 ? void 0 : t3.isCustomType) { + if (o.info(`adding the custom data type '${r3}' to the expression type group '${this.id}'.`), this.map[r3]) { + if (r3.startsWith(u.default.exprDataTypePrefixJsonArch)) return void o.info(`the custom data type '${r3}' is an Architect data type that is already in the expression type group '${this.id}'. There is no need to re-add it. Exiting.`); + if (o.info(`the expression type group '${this.id}' already contains the custom data type '${r3}' so need to remove first from the expression type group '${this.id}'.`), !this.removeCustomType(r3, n3)) return o.error(`removal of custom data type '${r3}' from the expression type group '${this.id}' was not successful. Exiting.`), false; + o.info(`removal of existing custom data type '${r3}' from the expression type group '${this.id}' was successful. Now re-adding the custom data type '${r3}'.`); + } + return this.map[r3] = { single: t3, collection: i3 }, this.singletons.push(t3), this.collections.push(i3), s.fireEvent(this, a.customDataTypeRegistered, { dataTypeDefViewModel: e3, expressionType: t3 }, n3), o.info(`successfully added custom data type '${r3}' to the expression type group '${this.id}'.`), true; + } + o.error(`cannot add custom type with identifier '${r3}' to the expression type group as it's not a custom type.`); + } + removeCustomType(e3, t3) { + if (!(null == e3 ? void 0 : e3.length)) return true; + const i3 = this.map[e3]; + if (!i3) return true; + if (e3.startsWith(u.default.exprDataTypePrefixJsonArch)) return o.error(`Unable to remove the custom data type '${e3}' as it is an Architect built-in type and removal is NOT allowed. Exiting.`), false; + const n3 = i3.single, r3 = i3.collection; + if (this.map[e3] = void 0, n3) { + for (let e4 = this.singletons.length - 1; e4 >= 0; e4--) if (this.singletons[e4] === n3) { + this.singletons.splice(e4, 1); + break; + } + } + if (r3) { + for (let e4 = this.collections.length - 1; e4 >= 0; e4--) if (this.collections[e4] === r3) { + this.collections.splice(e4, 1); + break; + } + } + return s.fireEvent(this, a.customDataTypeUnregistered, { dataTypeIdentifier: e3, expressionType: n3 }, t3), true; + } + }; + }, 2398: (e2, t2, i2) => { + function n2() { + this.type = void 0, n2.baseConstructor.apply(this, arguments); + } + i2(85386).extend(n2, "BaseBriefEntity"), Object.defineProperties(n2.prototype, { isBaseBriefEntity: { get: function() { + return true; + } } }), e2.exports = n2; + }, 2410: (e2, t2, i2) => { + "use strict"; + var n2, r2, o, a, s, l, u; + Object.defineProperty(t2, "__esModule", { value: true }); + const d = i2(31635), c = d.__importDefault(i2(78432)), p = i2(30801), _ = i2(26847), h = d.__importDefault(i2(57382)); + class m extends h.default { + constructor(e3) { + super(e3), n2.set(this, void 0), r2.set(this, void 0), o.set(this, void 0), a.set(this, void 0), s.set(this, void 0), l.set(this, void 0), u.set(this, void 0), d.__classPrivateFieldSet(this, n2, this.coreFactory.createArchWrapper(e3.chooser), "f"), d.__classPrivateFieldSet(this, r2, this.coreFactory.createArchWrapper(e3.customizeNoMatch), "f"), d.__classPrivateFieldSet(this, o, this.coreFactory.createArchWrapper(e3.knowledgeSearchResult), "f"), d.__classPrivateFieldSet(this, a, this.coreFactory.createArchWrapper(e3.noMatch), "f"), d.__classPrivateFieldSet(this, s, this.coreFactory.createArchWrapper(e3.noMatchReprompts), "f"), d.__classPrivateFieldSet(this, l, this.coreFactory.createArchWrapper(e3.question), "f"), d.__classPrivateFieldSet(this, u, this.coreFactory.createArchWrapper(e3.selection), "f"); + } + get _actionTypeId() { + return p.digitalMenuActionType; + } + get displayTypeName() { + return this._scriptingName; + } + get isArchActionDigitalMenu() { + return true; + } + get chooser() { + return d.__classPrivateFieldGet(this, n2, "f"); + } + get knowledgeSearchResult() { + return d.__classPrivateFieldGet(this, o, "f"); + } + get noMatch() { + return d.__classPrivateFieldGet(this, a, "f"); + } + get question() { + return d.__classPrivateFieldGet(this, l, "f"); + } + get customizeNoMatch() { + return d.__classPrivateFieldGet(this, r2, "f"); + } + get noMatchReprompts() { + return d.__classPrivateFieldGet(this, s, "f"); + } + get choices() { + var e3; + const t3 = [], i3 = null === (e3 = this._getCoreViewModel().chooser) || void 0 === e3 ? void 0 : e3.type.getPossibleChoices(this._getCoreViewModel().chooser); + return i3 && i3.forEach((e4) => { + t3.push(this.coreFactory.createArchWrapper(e4)); + }), t3; + } + get outputMaxNoInputs() { + return this._getOutputById(_.outputIds.maxNoInputs, true); + } + get outputMaxNoMatches() { + return this._getOutputById(_.outputIds.maxNoMatches, true); + } + get outputSkipResponseCapture() { + return this._getOutputById(_.outputIds.skipResponseCapture, true); + } + get selection() { + return d.__classPrivateFieldGet(this, u, "f"); + } + addChoice(e3) { + const t3 = this._infoPropSet("name", "addChoice"); + this._checkItemIsValidLiteralString(t3, e3, false), e3.trim() !== e3 && (this.logWarning(`the supplied choice name '${e3}' has leading or trailing whitespace which is not allowed. The name is being trimmed to '${e3.trim()}'.`), e3 = e3.trim()), this._checkItem(t3, !e3.length, "unable to add a choice because the supplied choice name cannot be blank."), this.logNote("getting chooser for digital menu action."); + const i3 = this.chooser, n3 = i3.presentation; + n3.isLiteral && n3.valueText === c.default.CHOOSER_PRESENTATION_MODES.quickReplies || (this.logNote(`setting chooser presentation mode to literal presentation mode '${c.default.CHOOSER_PRESENTATION_MODES.quickReplies}'.`), i3.setPresentationMode(c.default.CHOOSER_PRESENTATION_MODES.quickReplies)), this.logNoteVerbose("getting buttons collection from quick replies."); + const r3 = i3.quickReplies.buttons; + this.logNote("adding new button choice to collection."); + const o2 = r3.addItemToCollection(); + return this.logNote(`setting button value from supplied name parameter of '${e3}'.`), o2.value.setLiteralString(e3), o2; + } + deleteChoiceByIndex(e3) { + const t3 = this._infoPropSet("index", "deleteChoiceByIndex"); + this._validateChoiceByIndex(t3, e3), this.chooser._getCoreViewModel().type.deleteChoiceAtIndex(this.chooser._getCoreViewModel(), e3); + } + getChoiceByIndex(e3) { + const t3 = this._infoPropSet("index", "getChoiceByIndex"); + return this._validateChoiceByIndex(t3, e3), this.choices[e3]; + } + _validateChoiceByIndex(e3, t3) { + this._checkItemIsValidLiteralInt(e3, t3, false), this._checkItem(e3, t3 < 0 || t3 >= this.choices.length, `the index parameter value of '${t3}' is invalid. It must be >= 0 and <${this.choices.length}.`); + } + } + n2 = /* @__PURE__ */ new WeakMap(), r2 = /* @__PURE__ */ new WeakMap(), o = /* @__PURE__ */ new WeakMap(), a = /* @__PURE__ */ new WeakMap(), s = /* @__PURE__ */ new WeakMap(), l = /* @__PURE__ */ new WeakMap(), u = /* @__PURE__ */ new WeakMap(), t2.default = m; + }, 2414: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importDefault(i2(4381)), o = n2.__importDefault(i2(18251)), a = n2.__importDefault(i2(60645)), s = n2.__importDefault(i2(89059)), l = n2.__importDefault(i2(27069)), u = n2.__importDefault(i2(42115)), d = n2.__importDefault(i2(80817)), c = n2.__importDefault(i2(38590)), p = n2.__importDefault(i2(28044)), _ = { archFactoryActions: r2.default, archFactoryDataTypes: o.default, archFactoryFilters: a.default, archFactoryFlows: s.default, archFactoryMenus: l.default, archFactoryPromise: u.default, archFactoryPrompts: d.default, archFactoryStates: c.default, archFactoryTasks: p.default }; + t2.default = _; + }, 2444: (e2, t2, i2) => { + const n2 = i2(91625), r2 = i2(7401), o = i2(93476); + function a() { + Object.defineProperties(this, { _customizeNoInput: { writable: true }, _customizeNoMatch: { writable: true }, _noInputs: { writable: true }, _noInputReprompts: { writable: true }, _noMatches: { writable: true }, _noMatchReprompts: { writable: true }, _voiceEndOfInputTimeout: { writable: true }, _paths: { writable: true } }), a.baseConstructor.apply(this, arguments); + } + n2.extend(a, "BaseAskActionNoInputNoMatchModel"), e2.exports = a, Object.defineProperties(a.prototype, { pasteResolveOldToNewValues: { value: function(e3) { + a._super.pasteResolveOldToNewValues.apply(this, arguments), this.customizeNoInput && this.customizeNoInput.pasteResolveOldToNewValues(e3), this.customizeNoMatch && this.customizeNoMatch.pasteResolveOldToNewValues(e3), this.noInputs && this.noInputs.forEach((t3) => t3.pasteResolveOldToNewValues(e3)), this.noInputReprompts && this.noInputReprompts.pasteResolveOldToNewValues(e3), this.noMatches && this.noMatches.forEach((t3) => t3.pasteResolveOldToNewValues(e3)), this.noMatchReprompts && this.noMatchReprompts.pasteResolveOldToNewValues(e3), this.voiceEndOfInputTimeout && this.voiceEndOfInputTimeout.pasteResolveOldToNewValues(e3), this.paths && this.paths.forEach((t3) => t3.pasteResolveOldToNewValues(e3)); + } }, pasteReIdOrRename: { value: function(e3) { + a._super.pasteReIdOrRename.apply(this, arguments), this.customizeNoInput && this.customizeNoInput.pasteReIdOrRename(e3), this.customizeNoMatch && this.customizeNoMatch.pasteReIdOrRename(e3), this.noInputs && this.noInputs.forEach((t3) => t3.pasteReIdOrRename(e3)), this.noInputReprompts && this.noInputReprompts.pasteReIdOrRename(e3), this.noMatches && this.noMatches.forEach((t3) => t3.pasteReIdOrRename(e3)), this.noMatchReprompts && this.noMatchReprompts.pasteReIdOrRename(e3), this.voiceEndOfInputTimeout && this.voiceEndOfInputTimeout.pasteResolveOldToNewValues(e3), this.paths && this.paths.forEach((t3) => t3.pasteResolveOldToNewValues(e3)); + } }, customizeNoInput: { enumerable: true, get: function() { + return this._customizeNoInput; + }, set: function(e3) { + this._customizeNoInput = this.reviveItem(e3, r2); + } }, customizeNoMatch: { enumerable: true, get: function() { + return this._customizeNoMatch; + }, set: function(e3) { + this._customizeNoMatch = this.reviveItem(e3, r2); + } }, noInput: { enumerable: false, get: function() { + return this.noInputs && this.noInputs[0]; + }, set: function(e3) { + this.noInputs = [e3]; + } }, noMatch: { enumerable: false, get: function() { + return this.noMatches && this.noMatches[0]; + }, set: function(e3) { + this.noMatches = [e3]; + } }, noInputs: { enumerable: true, get: function() { + return this._noInputs; + }, set: function(e3) { + this._noInputs = this.reviveArray(e3, r2); + } }, noInputReprompts: { enumerable: true, get: function() { + return this._noInputReprompts; + }, set: function(e3) { + this._noInputReprompts = this.reviveItem(e3, r2); + } }, noMatches: { enumerable: true, get: function() { + return this._noMatches; + }, set: function(e3) { + this._noMatches = this.reviveArray(e3, r2); + } }, noMatchReprompts: { enumerable: true, get: function() { + return this._noMatchReprompts; + }, set: function(e3) { + this._noMatchReprompts = this.reviveItem(e3, r2); + } }, voiceEndOfInputTimeout: { enumerable: true, get: function() { + return this._voiceEndOfInputTimeout; + }, set: function(e3) { + this._voiceEndOfInputTimeout = this.reviveItem(e3, r2); + } }, paths: { enumerable: true, get: function() { + return this._paths; + }, set: function(e3) { + this._paths = this.reviveArray(e3, o); + } } }), e2.exports = a; + }, 2467: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(93523)), r2 = i2(30801); + class o extends n2.default { + constructor(e3) { + super(e3); + } + get _actionTypeId() { + return r2.getJourneyOutcomeScoresBySessionActionType; + } + get displayTypeName() { + return "ArchActionGetJourneyOutcomeScoresBySession"; + } + get isArchActionGetJourneyOutcomeScoresBySession() { + return true; + } + get findResult() { + return this._findResult; + } + } + t2.default = o; + }, 2499: (e2, t2, i2) => { + "use strict"; + const n2 = i2(31635), r2 = i2(96618), o = n2.__importDefault(i2(73198)), a = i2(67607), s = i2(60186), l = i2(98835), u = i2(9290), d = i2(9290), c = i2(12179), p = i2(12457), _ = n2.__importDefault(i2(97891)), h = i2(42098), m = n2.__importDefault(i2(78791)), g = i2(80428), f = i2(47957); + class T extends m.default { + constructor(e3, t3) { + super(e3), this.group = null, this._loadModel(t3); + } + _getPossibleErrors() { + return this.parentFlow.isNluFlow ? d.groupTransferFailureReasonsForBotFlowType : u.groupTransferFailureReasons; + } + _overrideProperties() { + super._overrideProperties.apply(this, arguments), this.group.attachValidator(function(e3, t3) { + if (t3.isLiteralMode && t3.val) { + const i3 = l.groupManager.getItem(t3.val); + if (i3 && !i3.hasExtension) { + const i4 = f.group.noExtError; + t3.setParseWarning(i4), e3.nodeHasWarning(this.id, i4) || e3.addWarning(this, i4); + } + } + }.bind(this)); + } + getDetails() { + return this.group ? new p.ActionDetails([f.group.label], [this.group.text]) : null; + } + static get managedProperties() { + return [(0, h.createTransferConnectTimeoutProperty)(f.expression.noValue.selectionRuntimeEvaluation.connectTimeout.groupTransferTimeout), { label: f.group.label, options: s.ExpressionTypeGroupOptions.create((e3) => e3.setUiPropertyOrder(10).setIninTestingField("groupTransferExpression")), yamlOptions: T.createYamlOptions("group", (e3) => e3.setPropertyName("targetGroup").setExportOrder(10)), property: "group", type: g.expressionTypeNames.group }, { label: f.transfer.allowVoicemail, options: a.ExpressionTypeBooleanOptions.create((e3) => e3.setUiPropertyOrder(20).setIninTestingField("allowVoicemail").setDefaultText(o.default.true)), yamlOptions: T.createYamlOptions("allowVoicemail", (e3) => e3.setPropertyName("allowVoicemailRollover").setExportOrder(30)), property: "allowVoicemail", type: g.expressionTypeNames.boolean, supportedFlowTypes: r2.flowTypes.flowTypesAllVxmlgen }]; + } + } + T.info = _.default.createActionInfo({ actionClass: T, canBeInTask: true, canBeTreeNode: true, helpTopic: c.helpTopics.actions.transferGroup, modelClass: i2(39137), name: f.actions.transfers.group, scriptingName: "ArchActionTransferToGroup" }), t2.A = T; + }, 2512: (e2, t2, i2) => { + const n2 = i2(28730), { createCallbackActionType: r2 } = i2(30801), o = i2(90807), a = i2(7401); + function s() { + Object.defineProperties(this, { _callbackNumbers: { writable: true }, _calleeName: { writable: true }, _inputs: { writable: true }, _queue: { writable: true } }), this.scriptId = void 0, this.scriptName = void 0, this.useQueue = void 0, s.baseConstructor.apply(this, arguments); + } + n2.extend(s, r2, true), Object.defineProperties(s.prototype, { pasteReIdOrRename: { value: function(e3) { + s._super.pasteReIdOrRename.apply(this, arguments), this.calleeName.pasteReIdOrRename(e3), this.queue.pasteReIdOrRename(e3); + for (let t3 = 0; t3 < this.callbackNumbers.length; t3++) this.callbackNumbers[t3].pasteReIdOrRename(e3); + for (let t3 = 0; t3 < this.inputs.length; t3++) this.inputs[t3].pasteReIdOrRename(e3); + } }, pasteResolveOldToNewValues: { value: function(e3) { + s._super.pasteResolveOldToNewValues.apply(this, arguments), this.calleeName.pasteResolveOldToNewValues(e3), this.queue.pasteResolveOldToNewValues(e3); + for (let t3 = 0; t3 < this.callbackNumbers.length; t3++) this.callbackNumbers[t3].pasteResolveOldToNewValues(e3); + for (let t3 = 0; t3 < this.inputs.length; t3++) this.inputs[t3].pasteResolveOldToNewValues(e3); + } }, callbackNumbers: { enumerable: true, get: function() { + return this._callbackNumbers; + }, set: function(e3) { + this._callbackNumbers = this.reviveArray(e3, a); + } }, calleeName: { enumerable: true, get: function() { + return this._calleeName; + }, set: function(e3) { + this._calleeName = this.reviveItem(e3, a); + } }, inputs: { enumerable: true, get: function() { + return this._inputs; + }, set: function(e3) { + this._inputs = this.reviveArray(e3, o); + } }, queue: { enumerable: true, get: function() { + return this._queue; + }, set: function(e3) { + this._queue = this.reviveItem(e3, a); + } } }), e2.exports = s; + }, 2560: (e2, t2) => { + "use strict"; + var i2; + Object.defineProperty(t2, "__esModule", { value: true }), t2.FlowFileFormatTypes = void 0, t2.toFlowFileFormat = function(e3, t3) { + const i3 = n2[e3]; + if (void 0 === i3) { + if (t3) return; + throw new Error(`Unsupported flow file format: ${e3}`); + } + return i3; + }, (function(e3) { + e3.Architect = "architect", e3.Yaml = "yaml"; + })(i2 || (t2.FlowFileFormatTypes = i2 = {})); + const n2 = {}; + for (const e3 of Object.keys(i2)) { + const t3 = i2[e3]; + "string" == typeof t3 && (n2[t3] = t3); + } + }, 2574: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.mergeInternals = void 0; + var n2 = i2(19724), r2 = i2(28619), o = i2(17214); + t2.mergeInternals = function(e3, t3, i3, a, s, l, u, d) { + var c = [], p = 0, _ = 0, h = false, m = function() { + !h || c.length || p || t3.complete(); + }, g = function(e4) { + return p < a ? f(e4) : c.push(e4); + }, f = function(e4) { + l && t3.next(e4), p++; + var d2 = false; + n2.innerFrom(i3(e4, _++)).subscribe(o.createOperatorSubscriber(t3, function(e5) { + null == s || s(e5), l ? g(e5) : t3.next(e5); + }, function() { + d2 = true; + }, void 0, function() { + if (d2) try { + p--; + for (var e5 = function() { + var e6 = c.shift(); + u ? r2.executeSchedule(t3, u, function() { + return f(e6); + }) : f(e6); + }; c.length && p < a; ) e5(); + m(); + } catch (e6) { + t3.error(e6); + } + })); + }; + return e3.subscribe(o.createOperatorSubscriber(t3, g, function() { + h = true, m(); + })), function() { + null == d || d(); + }; + }; + }, 2583: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importStar(i2(63824)), o = n2.__importDefault(i2(73198)), a = n2.__importDefault(i2(17405)); + class s extends a.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "duration"; + } + get displayTypeName() { + return "ArchValueDuration"; + } + _checkAndSetLiteral(e3, t3) { + this._checkItem(e3, t3 < o.default.minDurationMs, "the duration value of '" + t3 + "' milliseconds is less than the allowed minimum of '" + o.default.minDurationMs + "' milliseconds"), this._checkItem(e3, t3 > o.default.maxDurationMs, "the duration value of '" + t3 + "' milliseconds is greater than the allowed maximum of '" + o.default.maxDurationMs + "' milliseconds"), this._setLiteral(e3, r2.millisecondsToXSD(t3)); + } + _checkAndFixParameter(e3, t3) { + return this._checkItemIsValidLiteralInt(e3, t3, true), null == t3 ? 0 : t3; + } + get isArchValueDuration() { + return true; + } + setLiteralMaxDuration() { + this._checkAndSetLiteral(this._infoVal(o.default.maxDurationMs.toString(), "setLiteralMaxDuration"), o.default.maxDurationMs); + } + setLiteralMinDuration() { + this._checkAndSetLiteral(this._infoVal(o.default.minDurationMs.toString(), "setLiteralMinDuration"), o.default.minDurationMs); + } + setLiteralMs(e3) { + const t3 = this._infoParm("milliseconds", "setLiteralMs"); + e3 = this._checkAndFixParameter(t3, e3), this._checkAndSetLiteral(t3, e3); + } + setLiteralTimeParts(e3, t3, i3, n3, r3) { + e3 = this._checkAndFixParameter(this._infoParm("days", "setLiteralTimeParts"), e3), t3 = this._checkAndFixParameter(this._infoParm("hours", "setLiteralTimeParts"), t3), i3 = this._checkAndFixParameter(this._infoParm("minutes", "setLiteralTimeParts"), i3), n3 = this._checkAndFixParameter(this._infoParm("seconds", "setLiteralTimeParts"), n3), r3 = this._checkAndFixParameter(this._infoParm("milliseconds", "setLiteralTimeParts"), r3), this._checkAndSetLiteral(this._infoVal("calculated duration", "setLiteralTimeParts"), e3 * o.default.msPerDay + t3 * o.default.msPerHour + i3 * o.default.msPerMinute + n3 * o.default.msPerSecond + r3); + } + } + t2.default = s; + }, 2584: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.ExpressionTypeListPickerSectionOptions = void 0; + const n2 = i2(65615); + class r2 extends n2.BaseExpressionTypeCollectionOptions { + static create(e3, t3) { + return new this(t3).invokeOptionsCallback(e3); + } + constructor(e3) { + super(e3); + } + get className() { + return "ExpressionTypeListPickerSectionOptions"; + } + get isExpressionTypeListPickerSectionOptions() { + return true; + } + } + t2.ExpressionTypeListPickerSectionOptions = r2; + }, 2600: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(20692)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "stringCollection"; + } + get displayTypeName() { + return "ArchVariableStringCollection"; + } + get initialValue() { + return this._initialValue; + } + get isArchVariableStringCollection() { + return true; + } + } + t2.default = r2; + }, 2625: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(20692)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "journeyOutcomeCollection"; + } + get initialValue() { + return this._initialValue; + } + get displayTypeName() { + return "ArchVariableJourneyOutcomeCollection"; + } + get isArchVariableJourneyOutcomeCollection() { + return true; + } + } + t2.default = r2; + }, 2708: function(e2, t2, i2) { + "use strict"; + var n2, r2 = this && this.__extends || (n2 = function(e3, t3) { + return n2 = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(e4, t4) { + e4.__proto__ = t4; + } || function(e4, t4) { + for (var i3 in t4) Object.prototype.hasOwnProperty.call(t4, i3) && (e4[i3] = t4[i3]); + }, n2(e3, t3); + }, function(e3, t3) { + if ("function" != typeof t3 && null !== t3) throw new TypeError("Class extends value " + String(t3) + " is not a constructor or null"); + function i3() { + this.constructor = e3; + } + n2(e3, t3), e3.prototype = null === t3 ? Object.create(t3) : (i3.prototype = t3.prototype, new i3()); + }); + Object.defineProperty(t2, "__esModule", { value: true }), t2.EMPTY_OBSERVER = t2.SafeSubscriber = t2.Subscriber = void 0; + var o = i2(10281), a = i2(69879), s = i2(93728), l = i2(32980), u = i2(5717), d = i2(42767), c = i2(94808), p = i2(12688), _ = (function(e3) { + function i3(i4) { + var n3 = e3.call(this) || this; + return n3.isStopped = false, i4 ? (n3.destination = i4, a.isSubscription(i4) && i4.add(n3)) : n3.destination = t2.EMPTY_OBSERVER, n3; + } + return r2(i3, e3), i3.create = function(e4, t3, i4) { + return new f(e4, t3, i4); + }, i3.prototype.next = function(e4) { + this.isStopped ? y(d.nextNotification(e4), this) : this._next(e4); + }, i3.prototype.error = function(e4) { + this.isStopped ? y(d.errorNotification(e4), this) : (this.isStopped = true, this._error(e4)); + }, i3.prototype.complete = function() { + this.isStopped ? y(d.COMPLETE_NOTIFICATION, this) : (this.isStopped = true, this._complete()); + }, i3.prototype.unsubscribe = function() { + this.closed || (this.isStopped = true, e3.prototype.unsubscribe.call(this), this.destination = null); + }, i3.prototype._next = function(e4) { + this.destination.next(e4); + }, i3.prototype._error = function(e4) { + try { + this.destination.error(e4); + } finally { + this.unsubscribe(); + } + }, i3.prototype._complete = function() { + try { + this.destination.complete(); + } finally { + this.unsubscribe(); + } + }, i3; + })(a.Subscription); + t2.Subscriber = _; + var h = Function.prototype.bind; + function m(e3, t3) { + return h.call(e3, t3); + } + var g = (function() { + function e3(e4) { + this.partialObserver = e4; + } + return e3.prototype.next = function(e4) { + var t3 = this.partialObserver; + if (t3.next) try { + t3.next(e4); + } catch (e5) { + T(e5); + } + }, e3.prototype.error = function(e4) { + var t3 = this.partialObserver; + if (t3.error) try { + t3.error(e4); + } catch (e5) { + T(e5); + } + else T(e4); + }, e3.prototype.complete = function() { + var e4 = this.partialObserver; + if (e4.complete) try { + e4.complete(); + } catch (e5) { + T(e5); + } + }, e3; + })(), f = (function(e3) { + function t3(t4, i3, n3) { + var r3, a2, l2 = e3.call(this) || this; + return o.isFunction(t4) || !t4 ? r3 = { next: null != t4 ? t4 : void 0, error: null != i3 ? i3 : void 0, complete: null != n3 ? n3 : void 0 } : l2 && s.config.useDeprecatedNextContext ? ((a2 = Object.create(t4)).unsubscribe = function() { + return l2.unsubscribe(); + }, r3 = { next: t4.next && m(t4.next, a2), error: t4.error && m(t4.error, a2), complete: t4.complete && m(t4.complete, a2) }) : r3 = t4, l2.destination = new g(r3), l2; + } + return r2(t3, e3), t3; + })(_); + function T(e3) { + s.config.useDeprecatedSynchronousErrorHandling ? p.captureError(e3) : l.reportUnhandledError(e3); + } + function y(e3, t3) { + var i3 = s.config.onStoppedNotification; + i3 && c.timeoutProvider.setTimeout(function() { + return i3(e3, t3); + }); + } + t2.SafeSubscriber = f, t2.EMPTY_OBSERVER = { closed: true, next: u.noop, error: function(e3) { + throw e3; + }, complete: u.noop }; + }, 2750: (e2, t2, i2) => { + const n2 = i2(13240), r2 = i2(7401), { getExternalContactActionType: o } = i2(30801); + function a() { + Object.defineProperties(this, { _externalContact: { writable: true }, _externalContactId: { writable: true } }), a.baseConstructor.apply(this, arguments); + } + n2.extend(a, o, true), Object.defineProperties(a.prototype, { pasteReIdOrRename: { value: function(e3) { + a._super.pasteReIdOrRename.apply(this, arguments), this.externalResult.pasteReIdOrRename(e3), this.externalId.pasteReIdOrRename(e3); + } }, pasteResolveOldToNewValues: { value: function(e3) { + a._super.pasteResolveOldToNewValues.apply(this, arguments), this.externalResult.pasteResolveOldToNewValues(e3), this.externalId.pasteResolveOldToNewValues(e3); + } }, externalResult: { enumerable: true, get: function() { + return this._externalContact; + }, set: function(e3) { + this._externalContact = this.reviveItem(e3, r2); + } }, externalId: { enumerable: true, get: function() { + return this._externalContactId; + }, set: function(e3) { + this._externalContactId = this.reviveItem(e3, r2); + } } }), e2.exports = a; + }, 2800: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.ObjectValueMismatch = void 0; + const n2 = i2(31635), r2 = i2(17604), o = i2(55299), a = i2(27716), s = n2.__importStar(i2(78249)), l = i2(47957), u = i2(24032).getTopic("ObjectValueMismatch"); + class d extends o.BaseClass { + constructor(e3, t3, i3) { + super(), s.typeMap[e3] || u.errorCtorParmInternal("mismatchType", e3, "It is is not a valid mismatchType. :("), this._compareToValue = new a.ObjectValueDisplay(i3), this._compareValue = new a.ObjectValueDisplay(t3), this._mismatchType = e3; + } + get className() { + return "ObjectValueMismatch"; + } + get compareValue() { + return this._compareValue; + } + get compareToValue() { + return this._compareToValue; + } + get displayString() { + switch (this._mismatchType) { + case s.MISMATCH_INPUT: + case s.MISMATCH_INCOMPATIBLE: + case s.MISMATCH_OUTPUT: + return l.objectValueMismatch[this._mismatchType]; + case s.MISMATCH_DATA_TYPE: + case s.MISMATCH_NAME: + return (0, r2.sprintf)(l.objectValueMismatch[this._mismatchType], this.compareValue.displayString, this.compareToValue.displayString); + default: + return u.error(`Unsupported mismatch type of '${this._mismatchType}'. No display string available. Using fallback default.`), (0, r2.sprintf)(l.objectValueMismatch.default, this.compareValue.displayString, this.compareToValue.displayString); + } + } + get isObjectValueMismatch() { + return true; + } + get mismatchType() { + return this._mismatchType; + } + } + t2.ObjectValueMismatch = d; + }, 2812: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(81574)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "emptyJson"; + } + get displayTypeName() { + return "ArchValueEmptyJson"; + } + get isArchValueEmptyJson() { + return true; + } + } + t2.default = r2; + }, 2884: (e2, t2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.observable = void 0, t2.observable = "function" == typeof Symbol && Symbol.observable || "@@observable"; + }, 2899: (e2, t2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.propertyToLiteralResolverNames = void 0, t2.propertyToLiteralResolverNames = { propIDToCountryCode: "propIDToCountryCode", propIDToConversationType: "propIDToConversationType", propIDToCurrencyCode: "propIDToCurrencyCode", propIDToDialingCode: "propIDToDialingCode", propIDToLanguageTag: "propIDToLanguageTag", propIDToMessageBodyStyle: "propIDToMessageBodyStyle", propIDToSurveyDisposition: "propIDToSurveyDisposition", propIDToSendResponseBodyType: "propIDToSendResponseBodyType" }; + }, 2959: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.ignoreElements = void 0; + var n2 = i2(65212), r2 = i2(17214), o = i2(5717); + t2.ignoreElements = function() { + return n2.operate(function(e3, t3) { + e3.subscribe(r2.createOperatorSubscriber(t3, o.noop)); + }); + }; + }, 3022: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(81574)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "externalLineInfo"; + } + get displayName() { + } + get ids() { + } + get displayTypeName() { + return "ArchValueExternalLineInfo"; + } + get isArchValueExternalLineInfo() { + return true; + } + } + t2.default = r2; + }, 3095: (e2, t2, i2) => { + const { askForBooleanActionType: n2 } = i2(30801); + function r2() { + r2.baseConstructor.apply(this, arguments); + } + i2(2444).extend(r2, n2, true), e2.exports = r2; + }, 3143: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.debounce = void 0; + var n2 = i2(65212), r2 = i2(5717), o = i2(17214), a = i2(19724); + t2.debounce = function(e3) { + return n2.operate(function(t3, i3) { + var n3 = false, s = null, l = null, u = function() { + if (null == l || l.unsubscribe(), l = null, n3) { + n3 = false; + var e4 = s; + s = null, i3.next(e4); + } + }; + t3.subscribe(o.createOperatorSubscriber(i3, function(t4) { + null == l || l.unsubscribe(), n3 = true, s = t4, l = o.createOperatorSubscriber(i3, u, r2.noop), a.innerFrom(e3(t4)).subscribe(l); + }, function() { + u(), i3.complete(); + }, void 0, function() { + s = l = null; + })); + }); + }; + }, 3172: (e2, t2, i2) => { + const n2 = i2(19420); + function r2() { + r2.baseConstructor.apply(this, arguments); + } + function o() { + o.baseConstructor.apply(this, arguments); + } + function a() { + a.baseConstructor.apply(this, arguments); + } + function s() { + s.baseConstructor.apply(this, arguments); + } + i2(27183), n2.extend(r2, "BaseLanguageEnumContainerVariable", true), Object.defineProperty(r2.prototype, "isLanguageEnumVariable", { value: true }), r2.extend(o, "LanguageCaseEnumContainerVariable", true), r2.extend(a, "LanguageGenderEnumContainerVariable", true), r2.extend(s, "LanguageQuantityEnumContainerVariable", true), e2.exports = { LanguageCaseEnumContainerVariable: o, LanguageGenderEnumContainerVariable: a, LanguageQuantityEnumContainerVariable: s }; + }, 3211: (e2, t2, i2) => { + const n2 = i2(82149), { digitalBotConnectorActionType: r2 } = i2(30801), o = i2(7401), a = i2(42217); + function s() { + Object.defineProperties(this, { _outputSessionVariables: { writable: true }, _botResponseTimeout: { writable: true }, _sessionTimeout: { writable: true } }), this.languages = void 0, this.botCompositeTag = void 0, this.botId = void 0, this.botName = void 0, this.versionId = void 0, this.versionName = void 0, this.botIntegrationId = void 0, this.botIntegrationName = void 0, s.baseConstructor.apply(this, arguments); + } + n2.extend(s, r2, true), Object.defineProperties(s.prototype, { pasteReIdOrRename: { value: function(e3) { + s._super.pasteReIdOrRename.apply(this, arguments), this.botResponseTimeout?.pasteReIdOrRename(e3), this.sessionTimeout?.pasteReIdOrRename(e3); + } }, pasteResolveOldToNewValues: { value: function(e3) { + s._super.pasteResolveOldToNewValues.apply(this, arguments), this.botResponseTimeout?.pasteResolveOldToNewValues(e3), this.sessionTimeout?.pasteResolveOldToNewValues(e3); + } }, outputSessionVariables: { enumerable: true, get: function() { + return this._outputSessionVariables; + }, set: function(e3) { + this._outputSessionVariables = this.reviveArray(e3, a); + } }, botResponseTimeout: { enumerable: true, get: function() { + return this._botResponseTimeout; + }, set: function(e3) { + this._botResponseTimeout = this.reviveItem(e3, o); + } }, sessionTimeout: { enumerable: true, get: function() { + return this._sessionTimeout; + }, set: function(e3) { + this._sessionTimeout = this.reviveItem(e3, o); + } } }), e2.exports = s; + }, 3215: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(37873)); + class r2 extends n2.default { + constructor(e3) { + super(e3), this._coreMenuSettingsViewModel = e3; + } + get displayTypeName() { + return "ArchSettingsMenu"; + } + get _allowBlankObjectId() { + return true; + } + get extensionDialingMaxDelay() { + return this.coreFactory.createArchWrapper(this._getCoreViewModel().extensionDialingDelay); + } + get logStr() { + if (!this._coreMenuSettingsViewModel) return this.logStrTypeOnly; + const e3 = []; + return this._appendLogStrType(e3, this.displayTypeName), this._appendLogStrParentParts(e3, this._coreMenuSettingsViewModel.parent), this._createLogStrFromParts(e3); + } + get isArchSettingsMenu() { + return true; + } + get listenForExtensionDialing() { + return this.coreFactory.createArchWrapper(this._getCoreViewModel().useExtensionDialing); + } + get menuSelectionTimeout() { + return this.coreFactory.createArchWrapper(this._getCoreViewModel().promptRepeatDelay); + } + get repeatCount() { + return this.coreFactory.createArchWrapper(this._getCoreViewModel().promptRepeatCount); + } + } + t2.default = r2; + }, 3219: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.getAllWorkitemFailureReasons = t2.getWorkitemFailureReasonsForUtilizationLabelActions = t2.getQueueTransferActionWorkitemFailureReasons = t2.getUserTransferActionWorkitemFailureReasons = t2.getUpdateWorkitemFailureReasons = t2.getTerminateWorkitemFailureReasons = t2.getDisconnectWorkitemFailureReasons = void 0; + const n2 = i2(31635).__importDefault(i2(92140)), r2 = { actionInvocationLimitExceeded: "ActionInvocationLimitExceeded", agentScoreOutOfRange: "AgentScoreOutOfRange", generalError: "GeneralError", invalidValue: "InvalidValue", invalidWorkitem: "InvalidWorkitem", workitemUpdateLimitHit: "WorkitemUpdateLimitHit" }, o = [r2.generalError]; + t2.getDisconnectWorkitemFailureReasons = n2.default.uniq(o.concat([r2.actionInvocationLimitExceeded, r2.invalidWorkitem, r2.workitemUpdateLimitHit])), t2.getTerminateWorkitemFailureReasons = n2.default.uniq(o.concat([r2.actionInvocationLimitExceeded, r2.invalidWorkitem, r2.workitemUpdateLimitHit])), t2.getUpdateWorkitemFailureReasons = n2.default.uniq(o.concat([r2.actionInvocationLimitExceeded, r2.invalidValue, r2.invalidWorkitem, r2.workitemUpdateLimitHit])); + const a = n2.default.uniq(o.concat([r2.invalidWorkitem, r2.actionInvocationLimitExceeded, r2.workitemUpdateLimitHit])); + t2.getUserTransferActionWorkitemFailureReasons = a, t2.getQueueTransferActionWorkitemFailureReasons = n2.default.uniq(a.concat([r2.agentScoreOutOfRange])), t2.getWorkitemFailureReasonsForUtilizationLabelActions = n2.default.uniq(o.concat([r2.invalidWorkitem, r2.workitemUpdateLimitHit])), t2.getAllWorkitemFailureReasons = r2; + }, 3220: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.ArchLanguages = void 0; + const n2 = i2(31635), { isoLanguages: r2 } = i2(24812), o = n2.__importDefault(i2(8471)); + class a extends o.default { + get displayTypeName() { + return "ArchLanguages"; + } + get logStr() { + const e3 = []; + return this._appendLogStrType(e3, this.displayTypeName), this._createLogStrFromParts(e3); + } + getByLanguageTag(e3) { + const t3 = this._infoParm("ietfLanguageTag", "getByLanguageTag"); + this._checkItemIsValidLiteralString(t3, e3); + const i3 = r2[e3.toLowerCase()]; + return this._checkItem(t3, !i3, "the language tag of '" + e3 + "' is not valid."), this.coreFactory.createArchWrapper(i3); + } + get bulgarianBulgaria() { + return this.getByLanguageTag("bg-bg"); + } + get chineseSimplified() { + return this.getByLanguageTag("zh-cn"); + } + get chineseTraditional() { + return this.getByLanguageTag("zh-hk"); + } + get czechCzechRepublic() { + return this.getByLanguageTag("cs-cz"); + } + get dutchNetherlands() { + return this.getByLanguageTag("nl-nl"); + } + get englishAustralia() { + return this.getByLanguageTag("en-au"); + } + get englishGreatBritain() { + return this.getByLanguageTag("en-gb"); + } + get englishUnitedStates() { + return this.getByLanguageTag("en-us"); + } + get finnishFinland() { + return this.getByLanguageTag("fi-fi"); + } + get frenchCanada() { + return this.getByLanguageTag("fr-ca"); + } + get frenchFrance() { + return this.getByLanguageTag("fr-fr"); + } + get germanGermany() { + return this.getByLanguageTag("de-de"); + } + get italianItaly() { + return this.getByLanguageTag("it-it"); + } + get japaneseJapan() { + return this.getByLanguageTag("ja-jp"); + } + get norwegianNorway() { + return this.getByLanguageTag("nb-no"); + } + get polishPoland() { + return this.getByLanguageTag("pl-pl"); + } + get portugueseBrazil() { + return this.getByLanguageTag("pt-br"); + } + get portuguesePortugal() { + return this.getByLanguageTag("pt-pt"); + } + get romanianRomania() { + return this.getByLanguageTag("ro-ro"); + } + get slovakSlovakia() { + return this.getByLanguageTag("sk-sk"); + } + get spanishUnitedStates() { + return this.getByLanguageTag("es-us"); + } + get spanishSpain() { + return this.getByLanguageTag("es-es"); + } + get thaiThailand() { + return this.getByLanguageTag("th-th"); + } + } + t2.ArchLanguages = a; + const s = new a(); + t2.default = s; + }, 3287: (e2, t2, i2) => { + "use strict"; + const n2 = i2(31635), r2 = (n2.__importStar(i2(63352)), i2(67607)), o = i2(78513), a = n2.__importStar(i2(59288)), s = n2.__importStar(i2(36781)), l = n2.__importStar(i2(1115)), u = i2(12179), d = n2.__importDefault(i2(97891)), c = n2.__importDefault(i2(5730)), p = n2.__importDefault(i2(27203)), _ = i2(80428), h = i2(90807), m = i2(7401), g = i2(47957); + class f extends c.default { + constructor(e3, t3) { + super(e3.parentFlow, e3), this.addOptionalPathsFromModel(t3), this._loadModel(t3), this.untilCases.addIndexSuffixToSingleItemLists = true, this.addAutoCleanedUpEventSinkWatch(s.lastPathActionRemoved, this, this.cleanUpBranches.bind(this)); + } + get isLoopUntilAction() { + return true; + } + _initializeDesignTime() { + super._initializeDesignTime(); + } + setNewInstanceDefaults() { + super.setNewInstanceDefaults(); + } + static get branchInfo() { + return [p.default.loop, p.default.loopNext, p.default.loopsMax]; + } + getReferenceById(e3) { + return this.getBranch(e3); + } + static get managedProperties() { + return [{ label: g.loop.indexDataName, options: o.ExpressionTypeIntegerOptions.create((e3) => e3.setAsOutput().setIsOptional(true).setModeNoValueRuntimeEvaluationStr(g.loopUntil.noLoopIndexVariableSpecified)), property: "currentIndex", type: _.expressionTypeNames.integer }, { label: g.loopUntil.maxLoopCount, options: o.ExpressionTypeIntegerOptions.create((e3) => e3.setIsOptional(true).setDefaultToNoValue(true).setModeNoValueRuntimeEvaluationStr(g.loopUntil.exitWhenUntilCriteriaMet).setIninTestingField("loopExpression").facets.setMinInt(1, true).setMaxInt(999, true)), property: "maxLoopCount", type: _.expressionTypeNames.integer }, { label: g.loopUntil.untilCaseConditionLabel, list: true, listHasReferenceId: true, options: r2.ExpressionTypeBooleanOptions.create((e3) => e3), yamlOptions: f.createYamlOptions("untilCases", (e3) => e3.setWrapValueAndActionsInPropertyName("untilCase").setWrapListItemValueInPropertyName("condition")), property: "untilCases", type: _.expressionTypeNames.boolean }]; + } + validate(e3) { + super.validate(e3), this.maxLoopCount.validate(e3) && this.maxLoopCount.isLiteralMode ? parseInt(this.maxLoopCount.config.lit.text, 10) < 1 && e3.addWarning(this, g.loop.lessThanOne) : this.maxLoopCount.isNoValueMode && this.untilCases && this.untilCases.items && this.untilCases.items.length; + } + addUntilCase(e3, t3) { + const i3 = this.untilCases.createItem(new h({ value: new m() })); + this.untilCases.addItem(i3), this.untilCases.expandNewItem(i3), i3.value.setAsExpression(), t3 && (i3.value.text = t3); + const n3 = a.createBranchItem(this.id, e3 || i3.label, null, true); + return i3.referenceId = n3.outputId, i3.initializeDesignTime(), this.addOptionalBranchInfo(n3), l.validateAction(this, false, true), i3; + } + propertyChanged(e3) { + super.propertyChanged(e3), e3 === this.untilCases ? this.cleanUpBranches() : e3 === this.maxLoopCount && (this.getReferenceById(p.default.loopsMax.outputId).outOfService = this.maxLoopCount.isNoValueMode, s.emitter.emit(s.branchesChanged)); + } + cleanUpBranches() { + this.isDestroyedOrDestroying || (this.optionalBranchInfo.forEach((e3) => { + var t3; + if (!this.untilCases.items.find((t4) => t4.referenceId === e3.outputId)) { + const i3 = this.getReferenceById(e3.outputId); + (null === (t3 = null == i3 ? void 0 : i3.children) || void 0 === t3 ? void 0 : t3.length) ? (i3.outOfService = true, s.emitter.emit(s.branchesChanged)) : this.removeOptionalBranchInfoById(e3.outputId); + } + }), this.sortBranches()); + } + sortBranches() { + const e3 = [...this.branchInfos.map((e4) => e4.outputId), ...this.untilCases.items.map((e4) => e4.referenceId)].reduce((e4, t3, i3) => (e4[t3] = i3, e4), {}); + this.branches.find((t3, i3) => e3[t3.id] !== i3) && (this.branches.sort((t3, i3) => e3[t3.id] < e3[i3.id] ? -1 : 1), s.emitter.emit(s.branchesChanged)); + } + } + f.info = d.default.createActionInfo({ actionClass: f, canBeInTask: true, canBeTreeNode: false, helpTopic: u.helpTopics.actions.loopUntil, modelClass: i2(69849), name: g.actions.loopUntil, scriptingName: "ArchActionLoopUntil" }), t2.A = f; + }, 3352: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.retry = void 0; + var n2 = i2(65212), r2 = i2(17214), o = i2(87699), a = i2(5825), s = i2(19724); + t2.retry = function(e3) { + var t3; + void 0 === e3 && (e3 = 1 / 0); + var i3 = (t3 = e3 && "object" == typeof e3 ? e3 : { count: e3 }).count, l = void 0 === i3 ? 1 / 0 : i3, u = t3.delay, d = t3.resetOnSuccess, c = void 0 !== d && d; + return l <= 0 ? o.identity : n2.operate(function(e4, t4) { + var i4, n3 = 0, o2 = function() { + var d2 = false; + i4 = e4.subscribe(r2.createOperatorSubscriber(t4, function(e5) { + c && (n3 = 0), t4.next(e5); + }, void 0, function(e5) { + if (n3++ < l) { + var c2 = function() { + i4 ? (i4.unsubscribe(), i4 = null, o2()) : d2 = true; + }; + if (null != u) { + var p = "number" == typeof u ? a.timer(u) : s.innerFrom(u(e5, n3)), _ = r2.createOperatorSubscriber(t4, function() { + _.unsubscribe(), c2(); + }, function() { + t4.complete(); + }); + p.subscribe(_); + } else c2(); + } else t4.error(e5); + })), d2 && (i4.unsubscribe(), i4 = null, o2()); + }; + o2(); + }); + }; + }, 3416: (e2, t2, i2) => { + "use strict"; + const n2 = i2(31635), r2 = i2(17604), o = n2.__importDefault(i2(27203)), a = i2(12179), s = n2.__importDefault(i2(97891)), l = i2(87870), u = n2.__importDefault(i2(73753)), d = i2(47957); + class c extends u.default { + constructor(e3, t3) { + super(e3), this._loadModel(t3); + } + static get branchInfo() { + return o.default.successFailure; + } + get isSecureDataAction() { + return true; + } + static get managedProperties() { + return [{ createDetails: l.NoteActionProperty.createCreateDetails((0, r2.sprintf)(d.securedActions.securedActionsInformationalMessage, d.generic.branches.matchExact), "info", "setSecureDataNote"), property: "actionInformationalMessage", yamlOptions: c.createYamlOptions("actionInformationalMessage", (e3) => e3.setSkipProperty(true)) }]; + } + } + c.info = s.default.createActionInfo({ actionClass: c, canBeInTask: true, canBeTreeNode: false, helpTopic: a.helpTopics.actions.setSecuredData, modelClass: i2(49508), name: d.actions.setSecuredData, scriptingName: "ArchActionSetSecuredData" }), t2.A = c; + }, 3465: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = i2(96618), o = i2(17604), a = n2.__importDefault(i2(92140)), s = n2.__importDefault(i2(73198)), l = i2(14394), u = i2(82632), d = i2(82632), c = n2.__importStar(i2(14187)), p = n2.__importStar(i2(85020)), _ = i2(55824), h = i2(55909), m = i2(33951), g = i2(47957); + class f { + constructor(e3) { + this._additionalInfo = {}, this._canSaveAs = true, this._canSuppressCallRecordings = false, this._channelTypes = [], this._channelTypeVariableName = "", this._availableLanguageTags = [], this._errorHandlingTypes = [], this._fileExtension = "", this._flowInvokingEvents = [], this._flowInvokingEventsMap = {}, this._hasDestinationFlowTypes = false, this._isAvailable = false, this._isCreatable = false, this._isEmbeddable = false, this._isInitialized = false, this._isReferenceableFromOtherFlows = false, this._languageChangesAreImmediate = true, this._languagesRequireTts = false, this._languagesSupportSttSetting = false, this._languagesSupportTtsAndAsrSettings = false, this._languagesSupportTtsAndAsrRuntime = false, this._languagesSupportDefaultLanguage = false, this._languagesSupportDefaultLanguageSkill = false, this._limits = u.flowLimits, this._maxFlowSize = d.flowSizeLimits.maxFlowSize, this._maxFlowSizeToStopPublish = Math.round(d.flowSizeLimits.maxFlowSize * d.flowSizeLimits.maxFlowSizeToStopPublish), this._outputModes = [], this._outputModeVariableName = "", this._outputValuesSupportVariableExpressions = false, this._previewAcceptsJsonPayload = false, this._previewPlacesCall = false, this._previewPerformsLaunch = false, this._previewsAreReplayable = false, this._supportsAddVariablesInDataView = false, this._supportsAgentEscalation = false, this._supportsAutoDeletingVariablesWithNoUsages = false, this._supportsCompanyDirectory = false, this._supportsComplexTypes = false, this._supportsContactDataType = false, this._supportsCustomJsonTypes = false, this._supportsCustomJsonTypeUserCreatedVariables = false, this._supportsConversationSummary = false, this._supportsDataViewFiltering = false, this._supportsDebugPublish = false, this._supportsDefaultSpeechSettings = false, this._supportsDisableASR = false, this._supportsDynamicTimeslots = false, this._supportsErrorAudio = false, this._supportsFlowCreationData = false, this._supportsFlowLevelQuickReplyButtonSetting = false, this._supportsFlowOptimizationData = false, this._supportsErrorHandlingQueueRouting = false, this._supportsFlowInputVariables = false, this._supportsFlowOutputVariables = false, this._supportsGrammars = false, this._supportsLanguageAddRemove = false, this._supportsDefaultLanguageChange = false, this._supportsIntentDescriptions = false, this._supportsLanguages = false, this._supportsKnowledge = false, this._supportsKnowledgePaths = false, this._supportsEndToEndKnowledgeHandling = false, this._supportsAdvancedKnowledgeHandling = false, this._supportsMultilingualKnowledge = false, this._supportsKnowledgeConfirmation = false, this._supportsKnowledgeWelcomeArticle = false, this._supportsMoreThanOneLanguage = false, this._supportsPathDiscovery = false, this._supportsReusableMenus = false, this._supportsReusableTasks = false, this._supportsSecureVariables = false, this._supportsTestPreview = false, this._supportsAudio = false, this._supportsEnableIntentClassificationHinting = false, this._supportsLogLevelConfiguration = false, this._supportsNlu = false, this._supportsNluIntents = false, this._supportsNluCortex = false, this._supportsNluCortexIntents = false, this._supportsPeriodicState = false, this._supportsSpeechRec = false, this._supportsStates = false, this._supportsMultipleStates = false, this._supportsStateInputVariables = false, this._supportsStateOutputVariables = false, this._supportsTaskInputVariables = false, this._supportsTaskOutputVariables = false, this._supportsTasksWithOutputPaths = false, this._supportsVirtualAgent = false, this._supportsVoiceProcessingPrompt = false, this._supportsAnswerGeneration = false, this._suppressCallRecordingsDefaultValue = true, this._startUpObjectCanBeMenu = false, this._startUpObjectCanBeRepeatingTask = false, this._startUpObjectCanBeTask = false, this._startUpObjectCanBeState = false, this._startUpStateMustTerminate = false, this._systemVariableModels = [], this._typeDisplayName = "", this._variableScope = c.scopes.flow, m.ParameterValidator.expectFlowType(e3, () => h.ParameterInfo.createConstructorParameter(this.className, "flowType")), this._type = e3; + } + get className() { + return "FlowDefinition"; + } + dump() { + } + getFlowDefInfo() { + } + get additionalInfo() { + return this._additionalInfo; + } + get supportsCompanyDirectory() { + return this._supportsCompanyDirectory; + } + set supportsCompanyDirectory(e3) { + this._supportsCompanyDirectory = true === m.ParameterValidator.expectBool(e3, () => h.ParameterInfo.createPropertySet(this.className, "supportsCompanyDirectory", "value")); + } + setSupportsCompanyDirectory(e3) { + return this.supportsCompanyDirectory = e3, this; + } + get supportsTestPreview() { + return this._supportsTestPreview; + } + set supportsTestPreview(e3) { + this._supportsTestPreview = true === m.ParameterValidator.expectBool(e3, () => h.ParameterInfo.createPropertySet(this.className, "supportsPreview", "value")); + } + setSupportsPreview(e3) { + return this.supportsTestPreview = e3, this; + } + get supportsDebugPublish() { + return this._supportsDebugPublish; + } + set supportsDebugPublish(e3) { + this._supportsDebugPublish = true === m.ParameterValidator.expectBool(e3, () => h.ParameterInfo.createPropertySet(this.className, "supportsDebugPublish", "value")); + } + setSupportsDebugPublish(e3) { + return this.supportsDebugPublish = e3, this; + } + get supportsDisableASR() { + return this._supportsDisableASR; + } + set supportsDisableASR(e3) { + this._supportsDisableASR = true === m.ParameterValidator.expectBool(e3, () => h.ParameterInfo.createPropertySet(this.className, "supportsDisableASR", "value")); + } + setSupportsDisableASR(e3) { + return this.supportsDisableASR = e3, this; + } + get supportsDynamicTimeslots() { + return this._supportsDynamicTimeslots; + } + set supportsDynamicTimeslots(e3) { + this._supportsDynamicTimeslots = e3; + } + setSupportsDynamicTimeslots(e3) { + return this.supportsDynamicTimeslots = e3, this; + } + get supportsDefaultSpeechSettings() { + return this._supportsDefaultSpeechSettings; + } + set supportsDefaultSpeechSettings(e3) { + this._supportsDefaultSpeechSettings = true === m.ParameterValidator.expectBool(e3, () => h.ParameterInfo.createPropertySet(this.className, "supportsDefaultSpeechSettings", "value")); + } + setSupportsDefaultSpeechSettings(e3) { + return this.supportsDefaultSpeechSettings = e3, this; + } + _checkInitializationForPropertyGet(e3) { + if (!this._isInitialized) throw new Error(`You are attempting to access the property '${e3}' on the flow definition '${this.type}' before it is initialized.`); + } + addAdditionalInfoSection(e3, t3, i3) { + return this._additionalInfo[e3] = { description: t3, value: i3 }, this; + } + get canSaveAs() { + return this._canSaveAs && this.isCreatable; + } + set canSaveAs(e3) { + this._canSaveAs = true === m.ParameterValidator.expectBool(e3, () => h.ParameterInfo.createPropertySet(this.className, "canSaveAs", "value")); + } + setCanSaveAs(e3) { + return this.canSaveAs = e3, this; + } + get canSuppressCallRecordings() { + return this._canSuppressCallRecordings; + } + set canSuppressCallRecordings(e3) { + this._canSuppressCallRecordings = true === m.ParameterValidator.expectBool(e3, () => h.ParameterInfo.createPropertySet(this.className, "canSuppressCallRecordings", "value")); + } + setCanSuppressCallRecordings(e3) { + return this.canSuppressCallRecordings = e3, this; + } + get suppressCallRecordingsDefaultValue() { + if (this._canSuppressCallRecordings) return this._suppressCallRecordingsDefaultValue; + } + set suppressCallRecordingsDefaultValue(e3) { + this._canSuppressCallRecordings && (this._suppressCallRecordingsDefaultValue = true === m.ParameterValidator.expectBool(e3, () => h.ParameterInfo.createPropertySet(this.className, "suppressCallRecordingsDefaultValue", "value"))); + } + setSuppressCallRecordingsDefaultValue(e3) { + return this.suppressCallRecordingsDefaultValue = e3, this; + } + get languageTtsAndAsrSettingsComeFromConversation() { + return this.languagesSupportTtsAndAsrRuntime && !this.languagesSupportTtsAndAsrSettings; + } + get commonLimits() { + return this._limits; + } + getAdditionalInfoSection(e3) { + return this._additionalInfo[e3]; + } + getSectionValue(e3) { + var t3; + return null === (t3 = this._additionalInfo[e3]) || void 0 === t3 ? void 0 : t3.value; + } + static createForFlowType(e3) { + return new f(e3); + } + get maxFlowSize() { + return this._maxFlowSize; + } + set maxFlowSize(e3) { + this._maxFlowSize = Math.round(m.ParameterValidator.expectNumber(e3, () => h.ParameterInfo.createPropertySet(this.className, "maxFlowSize", "value"))), this._maxFlowSizeToStopPublish = Math.round(this._maxFlowSize * s.default.maxFlowSizeToStopPublish); + } + setMaxFlowSize(e3) { + return this.maxFlowSize = e3, this; + } + get maxFlowSizeToStopPublish() { + return this._maxFlowSizeToStopPublish; + } + get supportsLogLevelConfiguration() { + return this._supportsLogLevelConfiguration; + } + set supportsLogLevelConfiguration(e3) { + this._supportsLogLevelConfiguration = true === m.ParameterValidator.expectBool(e3, () => h.ParameterInfo.createPropertySet(this.className, "supportsLogLevelConfiguration", "value")); + } + setSupportsLogLevelConfiguration(e3) { + return this.supportsLogLevelConfiguration = e3, this; + } + get supportsNlu() { + return this._supportsNlu; + } + set supportsNlu(e3) { + this._supportsNlu = true === m.ParameterValidator.expectBool(e3, () => h.ParameterInfo.createPropertySet(this.className, "supportsNlu", "value")); + } + setSupportsNlu(e3) { + return this.supportsNlu = e3, this; + } + get supportsNluCortex() { + return this._supportsNluCortex; + } + set supportsNluCortex(e3) { + this._supportsNluCortex = true === m.ParameterValidator.expectBool(e3, () => h.ParameterInfo.createPropertySet(this.className, "supportsNluCortex", "value")); + } + setSupportsNluCortex(e3) { + return this.supportsNluCortex = e3, this; + } + get supportsNluCortexIntents() { + return this._supportsNluCortexIntents; + } + set supportsNluCortexIntents(e3) { + this._supportsNluCortexIntents = true === m.ParameterValidator.expectBool(e3, () => h.ParameterInfo.createPropertySet(this.className, "supportsNluCortexIntents", "value")); + } + setSupportsNluCortexIntents(e3) { + return this.supportsNluCortexIntents = e3, this; + } + get supportsNluIntents() { + return this._supportsNluIntents; + } + set supportsNluIntents(e3) { + this._supportsNluIntents = true === m.ParameterValidator.expectBool(e3, () => h.ParameterInfo.createPropertySet(this.className, "supportsNluIntents", "value")); + } + setSupportsNluIntents(e3) { + return this.supportsNluIntents = e3, this; + } + get supportsPeriodicState() { + return this._supportsPeriodicState && this.supportsStates; + } + set supportsPeriodicState(e3) { + this._supportsPeriodicState = true === m.ParameterValidator.expectBool(e3, () => h.ParameterInfo.createPropertySet(this.className, "supportsPeriodicState", "value")); + } + setSupportsPeriodicState(e3) { + return this.supportsPeriodicState = e3, this; + } + get supportsQuickRepliesFlowLevelSetting() { + return this._supportsFlowLevelQuickReplyButtonSetting; + } + set supportsQuickRepliesFlowLevelSetting(e3) { + this._supportsFlowLevelQuickReplyButtonSetting = true === m.ParameterValidator.expectBool(e3, () => h.ParameterInfo.createPropertySet(this.className, "supportsQuickRepliesFlowLevelSetting", "value")); + } + get supportsFlowOptimizationData() { + return this._supportsFlowOptimizationData; + } + set supportsFlowOptimizationData(e3) { + this._supportsFlowOptimizationData = true === m.ParameterValidator.expectBool(e3, () => h.ParameterInfo.createPropertySet(this.className, "supportsFlowOptimizationData", "value")); + } + setSupportsFlowOptimizationData(e3) { + return this.supportsFlowOptimizationData = e3, this; + } + get supportsPathDiscovery() { + return this._supportsPathDiscovery; + } + set supportsPathDiscovery(e3) { + this._supportsPathDiscovery = true === m.ParameterValidator.expectBool(e3, () => h.ParameterInfo.createPropertySet(this.className, "supportsPathDiscovery", "value")); + } + setSupportsPathDiscovery(e3) { + return this.supportsPathDiscovery = e3, this; + } + setSupportsQuickRepliesFlowLevelSetting(e3) { + return this.supportsQuickRepliesFlowLevelSetting = e3, this; + } + hasChannelType(e3) { + return a.default.contains(this._channelTypes, e3); + } + get channelTypes() { + return this._channelTypes; + } + set channelTypes(e3) { + this._channelTypes = e3; + } + setChannelTypes(e3) { + return this.channelTypes = e3, this; + } + get supportsMoreThanOneChannelType() { + return this._channelTypes.length > 1; + } + get channelTypeVariableName() { + return this._channelTypeVariableName; + } + set channelTypeVariableName(e3) { + this._channelTypeVariableName = m.ParameterValidator.expectString(e3, () => h.ParameterInfo.createPropertySet(this.className, "channelTypeVariableName", "value")); + } + setChannelTypeVariableName(e3) { + return this.channelTypeVariableName = e3, this; + } + get supportsRecordingSettings() { + return this.canSuppressCallRecordings; + } + get outputModes() { + return this._outputModes; + } + set outputModes(e3) { + this._outputModes = e3; + } + setOutputModes(e3) { + return this.outputModes = e3, this; + } + get supportsMoreThanOneOutputMode() { + var e3; + return (null === (e3 = this._outputModes) || void 0 === e3 ? void 0 : e3.length) > 1; + } + get outputValuesSupportVariableExpressions() { + return this._outputValuesSupportVariableExpressions; + } + set outputValuesSupportVariableExpressions(e3) { + this._outputValuesSupportVariableExpressions = true === m.ParameterValidator.expectBool(e3, () => h.ParameterInfo.createPropertySet(this.className, "outputValuesSupportVariableExpressions", "value")); + } + setOutputValuesSupportVariableExpressions(e3) { + return this.outputValuesSupportVariableExpressions = e3, this; + } + get outputModeVariableName() { + return this._outputModeVariableName; + } + set outputModeVariableName(e3) { + this._outputModeVariableName = m.ParameterValidator.expectString(e3, () => h.ParameterInfo.createPropertySet(this.className, "outputModeVariableName", "value")); + } + setOutputModeVariableName(e3) { + return this.outputModeVariableName = e3, this; + } + get dependencyType() { + return this._dependencyType; + } + set dependencyType(e3) { + this._dependencyType = e3; + } + setDependencyType(e3) { + return this.dependencyType = e3, this; + } + get errorHandlingTypes() { + return this._errorHandlingTypes; + } + get errorHandlingTypesMap() { + return this._errorHandlingTypesMap; + } + set errorHandlingTypes(e3) { + if (this._errorHandlingTypes = e3, this._errorHandlingTypesMap = {}, null == e3 ? void 0 : e3.length) for (const e4 of this._errorHandlingTypes) void 0 !== (null == e4 ? void 0 : e4.value) && (this._errorHandlingTypesMap[e4.value] = e4); + } + setErrorHandlingTypes(e3) { + return this.errorHandlingTypes = e3, this; + } + get fileExtension() { + return this._fileExtension; + } + set fileExtension(e3) { + this._fileExtension = m.ParameterValidator.expectString(e3, () => h.ParameterInfo.createPropertySet(this.className, "fileExtension", "value")); + } + setFileExtension(e3) { + return this.fileExtension = e3, this; + } + get flowInvokingEvents() { + return this._flowInvokingEvents; + } + addFlowInvokingEvent(e3) { + if (a.default.isString(e3) && e3.length) { + if (e3 && !this._flowInvokingEventsMap[e3]) { + const t3 = _.allFlowInvokingEventsMap[e3] || { id: e3, description: (0, o.sprintf)(g.flowInvokingEvents.unknownFlowInvokingEvent, e3) }; + this._flowInvokingEvents.push(t3), this._flowInvokingEventsMap[t3.id] = t3; + } + return this; + } + } + supportsFlowInvokingEvent(e3) { + return !!this._flowInvokingEventsMap[e3]; + } + get hasDestinationFlowTypes() { + return this._hasDestinationFlowTypes; + } + set hasDestinationFlowTypes(e3) { + this._hasDestinationFlowTypes = true === m.ParameterValidator.expectBool(e3, () => h.ParameterInfo.createPropertySet(this.className, "hasDestinationFlowTypes", "value")); + } + setHasDestinationFlowTypes(e3) { + return this.hasDestinationFlowTypes = e3, this; + } + get isAvailable() { + return this._isAvailable; + } + set isAvailable(e3) { + this._isAvailable = true === m.ParameterValidator.expectBool(e3, () => h.ParameterInfo.createPropertySet(this.className, "isAvailable", "value")); + } + setIsAvailable(e3) { + return this.isAvailable = e3, this; + } + get isCreatable() { + return this._isCreatable && this.isAvailable; + } + set isCreatable(e3) { + this._isCreatable = true === m.ParameterValidator.expectBool(e3, () => h.ParameterInfo.createPropertySet(this.className, "isCreatable", "value")); + } + setIsCreatable(e3) { + return this.isCreatable = e3, this; + } + get previewPlacesCall() { + return this._previewPlacesCall && this._supportsTestPreview; + } + set previewPlacesCall(e3) { + this._previewPlacesCall = true === m.ParameterValidator.expectBool(e3, () => h.ParameterInfo.createPropertySet(this.className, "previewPlacesCall", "value")); + } + setIsTestCallable(e3) { + return this._previewPlacesCall = e3, this; + } + get previewPerformsLaunch() { + return this._previewPerformsLaunch && this._supportsTestPreview; + } + set previewPerformsLaunch(e3) { + this._previewPerformsLaunch = true === m.ParameterValidator.expectBool(e3, () => h.ParameterInfo.createPropertySet(this.className, "previewPerformsLaunch", "value")); + } + setIsTestLaunchable(e3) { + return this._previewPerformsLaunch = e3, this; + } + get isEmbeddable() { + return this._isEmbeddable; + } + set isEmbeddable(e3) { + this._isEmbeddable = true === m.ParameterValidator.expectBool(e3, () => h.ParameterInfo.createPropertySet(this.className, "isEmbeddable", "value")); + } + get previewAcceptsJsonPayload() { + return this._previewAcceptsJsonPayload && this._supportsTestPreview; + } + set previewAcceptsJsonPayload(e3) { + this._previewAcceptsJsonPayload = true === m.ParameterValidator.expectBool(e3, () => h.ParameterInfo.createPropertySet(this.className, "previewAcceptsJsonPayload", "value")); + } + setPreviewAcceptsJsonPayload(e3) { + return this.previewAcceptsJsonPayload = e3, this; + } + get previewsAreReplayable() { + return this._previewsAreReplayable && this._supportsTestPreview; + } + set previewsAreReplayable(e3) { + this._previewsAreReplayable = true === m.ParameterValidator.expectBool(e3, () => h.ParameterInfo.createPropertySet(this.className, "previewsAreReplayable", "value")); + } + setPreviewsAreReplayable(e3) { + return this.previewsAreReplayable = e3, this; + } + get isReferenceableFromOtherFlows() { + return this._isReferenceableFromOtherFlows; + } + set isReferenceableFromOtherFlows(e3) { + this._isReferenceableFromOtherFlows = true === m.ParameterValidator.expectBool(e3, () => h.ParameterInfo.createPropertySet(this.className, "isReferenceableFromOtherFlows", "value")); + } + setIsReferenceableFromOtherFlows(e3) { + return this.isReferenceableFromOtherFlows = e3, this; + } + get isAutomateFlowType() { + return r2.flowTypes.isAutomateFlowType(this.type); + } + get isAutomateOrCiceroFlowType() { + return r2.flowTypes.isAutomateOrCiceroFlowType(this.type); + } + get isCallFlowType() { + return r2.flowTypes.isVxmlgenFlowType(this.type); + } + get isInitialized() { + return this._isInitialized; + } + set isInitialized(e3) { + this._isInitialized = true === m.ParameterValidator.expectBool(e3, () => h.ParameterInfo.createPropertySet(this.className, "isInitialized", "value")); + } + setIsInitialized(e3) { + return this.isInitialized = e3, this; + } + get isFlowDefinition() { + return true; + } + get languageChangesAreImmediate() { + return this._languageChangesAreImmediate && this._supportsLanguages; + } + set languageChangesAreImmediate(e3) { + this._languageChangesAreImmediate = m.ParameterValidator.expectBool(e3, () => h.ParameterInfo.createPropertySet(this.className, "languageChangesAreImmediate", "value")); + } + setLanguageChangesAreImmediate(e3) { + return this.languageChangesAreImmediate = e3, this; + } + get languagesSupportSttSetting() { + return this._languagesSupportSttSetting && this._supportsLanguages && this.hasChannelType(p.channelTypeCall); + } + set languagesSupportSttSetting(e3) { + this._languagesSupportSttSetting = true === m.ParameterValidator.expectBool(e3, () => h.ParameterInfo.createPropertySet(this.className, "languagesSupportSttSetting", "value")); + } + get supportsGrammars() { + return this._supportsGrammars; + } + set supportsGrammars(e3) { + this._supportsGrammars = true === m.ParameterValidator.expectBool(e3, () => h.ParameterInfo.createPropertySet(this.className, "supportsGrammars", "value")); + } + get languagesRequireTts() { + return this._languagesRequireTts && this._languagesSupportTtsAndAsrSettings; + } + set languagesRequireTts(e3) { + this._languagesRequireTts = true === m.ParameterValidator.expectBool(e3, () => h.ParameterInfo.createPropertySet(this.className, "languagesRequireTts", "value")); + } + setLanguagesRequireTts(e3) { + return this.languagesRequireTts = e3, this; + } + get languagesSupportTtsAndAsrSettings() { + return this._languagesSupportTtsAndAsrSettings && this._supportsLanguages; + } + set languagesSupportTtsAndAsrSettings(e3) { + this._languagesSupportTtsAndAsrSettings = true === m.ParameterValidator.expectBool(e3, () => h.ParameterInfo.createPropertySet(this.className, "languagesSupportTtsAndAsrSettings", "value")); + } + get languagesSupportTtsAndAsrRuntime() { + return this._languagesSupportTtsAndAsrRuntime && this._supportsLanguages && this._supportsAudio; + } + set languagesSupportTtsAndAsrRuntime(e3) { + this._languagesSupportTtsAndAsrRuntime = true === m.ParameterValidator.expectBool(e3, () => h.ParameterInfo.createPropertySet(this.className, "languagesSupportTtsAndAsrRuntime", "value")); + } + setLanguagesSupportSttSetting(e3) { + return this.languagesSupportSttSetting = e3, this; + } + setLanguagesSupportTtsAndAsrSettings(e3) { + return this.languagesSupportTtsAndAsrSettings = e3, this; + } + setLanguagesSupportTtsAndAsrRuntime(e3) { + return this.languagesSupportTtsAndAsrRuntime = e3, this; + } + get languagesSupportDefaultLanguage() { + return this._languagesSupportDefaultLanguage && this._supportsLanguages; + } + set languagesSupportDefaultLanguage(e3) { + this._languagesSupportDefaultLanguage = true === m.ParameterValidator.expectBool(e3, () => h.ParameterInfo.createPropertySet(this.className, "languagesSupportDefaultLanguage", "value")); + } + setLanguagesSupportDefaultLanguage(e3) { + return this.languagesSupportDefaultLanguage = e3, this; + } + get supportsDefaultLanguageChange() { + return this._supportsDefaultLanguageChange && this._supportsLanguages && this._supportsLanguageAddRemove; + } + set supportsDefaultLanguageChange(e3) { + this._supportsDefaultLanguageChange = true === m.ParameterValidator.expectBool(e3, () => h.ParameterInfo.createPropertySet(this.className, "supportsDefaultLanguageChange", "value")); + } + setSupportsLanguageDefaultChange(e3) { + return this.supportsDefaultLanguageChange = e3, this; + } + get languagesSupportDefaultLanguageSkill() { + return this._languagesSupportDefaultLanguageSkill && this._supportsLanguages && l.globalTypes.languageSkill.isAvailableForFlowType(this.type); + } + set languagesSupportDefaultLanguageSkill(e3) { + this._languagesSupportDefaultLanguageSkill = true === m.ParameterValidator.expectBool(e3, () => h.ParameterInfo.createPropertySet(this.className, "languagesSupportDefaultLanguageSkill", "value")); + } + setLanguagesSupportDefaultLanguageSkill(e3) { + return this.languagesSupportDefaultLanguageSkill = e3, this; + } + get supportsIntentDescriptions() { + return this._supportsIntentDescriptions; + } + set supportsIntentDescriptions(e3) { + this._supportsIntentDescriptions = e3; + } + setSupportsIntentDescriptions(e3) { + return this.supportsIntentDescriptions = e3, this; + } + get availableLanguageTags() { + if (this.supportsLanguages && 0 !== this._availableLanguageTags.length) return this._availableLanguageTags; + } + set availableLanguageTags(e3) { + this._availableLanguageTags = m.ParameterValidator.expectArray(e3, () => h.ParameterInfo.createPropertySet(this.className, "availableLanguageTags", "value")); + } + setAvailableLanguageTags(e3) { + return this.availableLanguageTags = e3, this; + } + get supportsAllArchitectLanguageTags() { + return this._supportsLanguages && !a.default.isArray(this.availableLanguageTags); + } + get supportsAgentEscalation() { + return this._supportsAgentEscalation; + } + set supportsAgentEscalation(e3) { + this._supportsAgentEscalation = true === m.ParameterValidator.expectBool(e3, () => h.ParameterInfo.createPropertySet(this.className, "supportsAgentEscalation", "value")); + } + setSupportsAgentEscalation(e3) { + return this.supportsAgentEscalation = e3, this; + } + get supportsAddVariablesInDataView() { + return this._supportsAddVariablesInDataView; + } + set supportsAddVariablesInDataView(e3) { + this._supportsAddVariablesInDataView = true === m.ParameterValidator.expectBool(e3, () => h.ParameterInfo.createPropertySet(this.className, "supportsAddVariablesInDataView", "value")); + } + setSupportsAddVariablesInDataView(e3) { + return this.supportsAddVariablesInDataView = e3, this; + } + get supportsAutoDeletingVariablesWithNoUsages() { + return this._supportsAutoDeletingVariablesWithNoUsages; + } + set supportsAutoDeletingVariablesWithNoUsages(e3) { + this._supportsAutoDeletingVariablesWithNoUsages = true === m.ParameterValidator.expectBool(e3, () => h.ParameterInfo.createPropertySet(this.className, "supportsAutoDeletingVariablesWithNoUsages", "value")); + } + setSupportsAutoDeletingVariablesWithNoUsages(e3) { + return this.supportsAutoDeletingVariablesWithNoUsages = e3, this; + } + get supportsComplexTypes() { + return this._supportsComplexTypes; + } + set supportsComplexTypes(e3) { + this._supportsComplexTypes = true === m.ParameterValidator.expectBool(e3, () => h.ParameterInfo.createPropertySet(this.className, "supportsComplexTypes", "value")); + } + setSupportsComplexTypes(e3) { + return this.supportsComplexTypes = e3, this; + } + get supportsContactDataType() { + return this._supportsContactDataType; + } + set supportsContactDataType(e3) { + this._supportsContactDataType = true === m.ParameterValidator.expectBool(e3, () => h.ParameterInfo.createPropertySet(this.className, "supportsContactDataType", "value")); + } + setSupportsContactDataType(e3) { + return this.supportsContactDataType = e3, this; + } + get supportsCustomJsonTypes() { + return this._supportsCustomJsonTypes; + } + set supportsCustomJsonTypes(e3) { + this._supportsCustomJsonTypes = true === m.ParameterValidator.expectBool(e3, () => h.ParameterInfo.createPropertySet(this.className, "supportsCustomJsonTypes", "value")); + } + setSupportsCustomJsonTypes(e3) { + return this.supportsCustomJsonTypes = e3, this; + } + get supportsCustomJsonTypeUserCreatedVariables() { + return this._supportsCustomJsonTypeUserCreatedVariables; + } + set supportsCustomJsonTypeUserCreatedVariables(e3) { + this._supportsCustomJsonTypeUserCreatedVariables = true === m.ParameterValidator.expectBool(e3, () => h.ParameterInfo.createPropertySet(this.className, "supportsCustomJsonTypeUserCreatedVariables", "value")); + } + setSupportsCustomJsonTypeUserCreatedVariables(e3) { + return this.supportsCustomJsonTypeUserCreatedVariables = e3, this; + } + get supportsConversationSummary() { + return this._supportsConversationSummary; + } + set supportsConversationSummary(e3) { + this._supportsConversationSummary = e3; + } + setSupportsConversationSummary(e3) { + return this.supportsConversationSummary = e3, this; + } + get supportsFlowCreationData() { + return this._supportsFlowCreationData; + } + set supportsFlowCreationData(e3) { + this._supportsFlowCreationData = true === m.ParameterValidator.expectBool(e3, () => h.ParameterInfo.createPropertySet(this.className, "supportsFlowCreationData", "value")); + } + setSupportsFlowCreationData(e3) { + return this.supportsFlowCreationData = e3, this; + } + get supportsDataViewFiltering() { + return this._supportsDataViewFiltering; + } + set supportsDataViewFiltering(e3) { + this._supportsDataViewFiltering = true === m.ParameterValidator.expectBool(e3, () => h.ParameterInfo.createPropertySet(this.className, "supportsDataViewFiltering", "value")); + } + setSupportsDataViewFiltering(e3) { + return this.supportsDataViewFiltering = e3, this; + } + get supportsErrorAudio() { + return this._supportsErrorAudio; + } + set supportsErrorAudio(e3) { + this._supportsErrorAudio = true === m.ParameterValidator.expectBool(e3, () => h.ParameterInfo.createPropertySet(this.className, "supportsErrorAudio", "value")); + } + setSupportsErrorAudio(e3) { + return this.supportsErrorAudio = e3, this; + } + get supportsErrorHandlingQueueRouting() { + return this._supportsErrorHandlingQueueRouting; + } + set supportsErrorHandlingQueueRouting(e3) { + this._supportsErrorHandlingQueueRouting = true === m.ParameterValidator.expectBool(e3, () => h.ParameterInfo.createPropertySet(this.className, "supportsErrorHandlingQueueRouting", "value")); + } + setSupportsErrorHandlingQueueRouting(e3) { + return this.supportsErrorHandlingQueueRouting = e3, this; + } + get supportsFlowInputVariables() { + return this._supportsFlowInputVariables; + } + set supportsFlowInputVariables(e3) { + this._supportsFlowInputVariables = true === m.ParameterValidator.expectBool(e3, () => h.ParameterInfo.createPropertySet(this.className, "supportsFlowInputVariables", "value")); + } + get supportsLanguageAddRemove() { + return this._supportsLanguageAddRemove && this._supportsLanguages; + } + set supportsLanguageAddRemove(e3) { + this._supportsLanguageAddRemove = true === m.ParameterValidator.expectBool(e3, () => h.ParameterInfo.createPropertySet(this.className, "supportsLanguageAddRemove", "value")); + } + setSupportsLanguageAddRemove(e3) { + return this.supportsLanguageAddRemove = e3, this; + } + setSupportsFlowInputVariables(e3) { + return this.supportsFlowInputVariables = e3, this; + } + get supportsKnowledge() { + return this._supportsKnowledge; + } + set supportsKnowledge(e3) { + this._supportsKnowledge = true === m.ParameterValidator.expectBool(e3, () => h.ParameterInfo.createPropertySet(this.className, "supportsKnowledge", "value")); + } + setSupportsKnowledge(e3) { + return this.supportsKnowledge = e3, this; + } + get supportsMultilingualKnowledge() { + return this._supportsMultilingualKnowledge; + } + set supportsMultilingualKnowledge(e3) { + this._supportsMultilingualKnowledge = true === m.ParameterValidator.expectBool(e3, () => h.ParameterInfo.createPropertySet(this.className, "supportsMultilingualKnowledge", "value")); + } + setSupportsMultilingualKnowledge(e3) { + return this.supportsMultilingualKnowledge = e3, this; + } + get supportsKnowledgePaths() { + return this._supportsKnowledgePaths; + } + set supportsKnowledgePaths(e3) { + this._supportsKnowledgePaths = true === m.ParameterValidator.expectBool(e3, () => h.ParameterInfo.createPropertySet(this.className, "supportsKnowledgePaths", "value")); + } + setSupportsKnowledgePaths(e3) { + return this.supportsKnowledgePaths = e3, this; + } + get supportsEndToEndKnowledgeHandling() { + return this._supportsEndToEndKnowledgeHandling; + } + set supportsEndToEndKnowledgeHandling(e3) { + this._supportsEndToEndKnowledgeHandling = true === m.ParameterValidator.expectBool(e3, () => h.ParameterInfo.createPropertySet(this.className, "supportsEndToEndKnowledgeHandling", "value")); + } + setSupportsEndToEndKnowledgeHandling(e3) { + return this.supportsEndToEndKnowledgeHandling = e3, this; + } + get supportsAdvancedKnowledgeHandling() { + return this._supportsAdvancedKnowledgeHandling; + } + set supportsAdvancedKnowledgeHandling(e3) { + this._supportsAdvancedKnowledgeHandling = true === m.ParameterValidator.expectBool(e3, () => h.ParameterInfo.createPropertySet(this.className, "supportsAdvancedKnowledgeHandling", "value")); + } + setSupportsAdvancedKnowledgeHandling(e3) { + return this.supportsAdvancedKnowledgeHandling = e3, this; + } + get supportsKnowledgeConfirmation() { + return this._supportsKnowledgeConfirmation && this._supportsKnowledge; + } + set supportsKnowledgeConfirmation(e3) { + this._supportsKnowledgeConfirmation = true === m.ParameterValidator.expectBool(e3, () => h.ParameterInfo.createPropertySet(this.className, "supportsKnowledgeConfirmation", "value")); + } + setSupportsKnowledgeConfirmation(e3) { + return this.supportsKnowledgeConfirmation = e3, this; + } + get supportsKnowledgeWelcomeArticle() { + return this._supportsKnowledgeWelcomeArticle && this._supportsKnowledge; + } + set supportsKnowledgeWelcomeArticle(e3) { + this._supportsKnowledgeWelcomeArticle = true === m.ParameterValidator.expectBool(e3, () => h.ParameterInfo.createPropertySet(this.className, "supportsKnowledgeWelcomeArticle", "value")); + } + setSupportsKnowledgeWelcomeArticle(e3) { + return this.supportsKnowledgeWelcomeArticle = e3, this; + } + get supportsFlowOutputVariables() { + return this._supportsFlowOutputVariables; + } + set supportsFlowOutputVariables(e3) { + this._supportsFlowOutputVariables = true === m.ParameterValidator.expectBool(e3, () => h.ParameterInfo.createPropertySet(this.className, "supportsFlowOutputVariables", "value")); + } + setSupportsFlowOutputVariables(e3) { + return this.supportsFlowOutputVariables = e3, this; + } + get supportsLanguages() { + return this._supportsLanguages; + } + set supportsLanguages(e3) { + this._supportsLanguages = true === m.ParameterValidator.expectBool(e3, () => h.ParameterInfo.createPropertySet(this.className, "supportsLanguages", "value")); + } + setSupportsLanguages(e3) { + return this.supportsLanguages = e3, this; + } + get supportsMoreThanOneLanguage() { + return this._supportsMoreThanOneLanguage && this._supportsLanguages; + } + set supportsMoreThanOneLanguage(e3) { + this._supportsMoreThanOneLanguage = true === m.ParameterValidator.expectBool(e3, () => h.ParameterInfo.createPropertySet(this.className, "supportsMoreThanOneLanguage", "value")); + } + setSupportsMoreThanOneLanguage(e3) { + return this.supportsMoreThanOneLanguage = e3, this; + } + get supportsReusableMenus() { + return this._supportsReusableMenus; + } + set supportsReusableMenus(e3) { + this._supportsReusableMenus = true === m.ParameterValidator.expectBool(e3, () => h.ParameterInfo.createPropertySet(this.className, "supportsReusableMenus", "value")); + } + setSupportsReusableMenus(e3) { + return this.supportsReusableMenus = e3, this; + } + get supportsReusableTasks() { + return this._supportsReusableTasks; + } + set supportsReusableTasks(e3) { + this._supportsReusableTasks = true === m.ParameterValidator.expectBool(e3, () => h.ParameterInfo.createPropertySet(this.className, "supportsReusableTasks", "value")); + } + setSupportsReusableTasks(e3) { + return this.supportsReusableTasks = e3, this; + } + get supportsSecureVariables() { + return this._supportsSecureVariables; + } + set supportsSecureVariables(e3) { + this._supportsSecureVariables = true === m.ParameterValidator.expectBool(e3, () => h.ParameterInfo.createPropertySet(this.className, "supportsSecureVariables", "value")); + } + setSupportsSecureVariables(e3) { + return this.supportsSecureVariables = e3, this; + } + get supportsAudio() { + return this._supportsAudio; + } + set supportsAudio(e3) { + this._supportsAudio = true === m.ParameterValidator.expectBool(e3, () => h.ParameterInfo.createPropertySet(this.className, "supportsAudio", "value")); + } + setSupportsAudio(e3) { + return this.supportsAudio = e3, this; + } + get supportsSpeechRec() { + return this._supportsSpeechRec; + } + set supportsSpeechRec(e3) { + this._supportsSpeechRec = true === m.ParameterValidator.expectBool(e3, () => h.ParameterInfo.createPropertySet(this.className, "supportsSpeechRec", "value")); + } + setSupportsSpeechRec(e3) { + return this.supportsSpeechRec = e3, this; + } + get supportsStates() { + return this._supportsStates; + } + set supportsStates(e3) { + this._supportsStates = true === m.ParameterValidator.expectBool(e3, () => h.ParameterInfo.createPropertySet(this.className, "supportsStates", "value")); + } + setSupportsStates(e3) { + return this.supportsStates = e3, this; + } + get supportsMultipleStates() { + return this._supportsMultipleStates; + } + set supportsMultipleStates(e3) { + this._supportsMultipleStates = true === m.ParameterValidator.expectBool(e3, () => h.ParameterInfo.createPropertySet(this.className, "supportsMultipleStates", "value")); + } + setSupportsMultipleStates(e3) { + return this._supportsMultipleStates = e3, this; + } + get supportsStateInputVariables() { + return this._supportsStateInputVariables && this._supportsStates; + } + set supportsStateInputVariables(e3) { + this._supportsStateInputVariables = true === m.ParameterValidator.expectBool(e3, () => h.ParameterInfo.createPropertySet(this.className, "supportsStateInputVariables", "value")); + } + setSupportsStateInputVariables(e3) { + return this.supportsStateInputVariables = e3, this; + } + get supportsStateOutputVariables() { + return this._supportsStateOutputVariables && this._supportsStates; + } + set supportsStateOutputVariables(e3) { + this._supportsStateOutputVariables = true === m.ParameterValidator.expectBool(e3, () => h.ParameterInfo.createPropertySet(this.className, "supportsStateOutputVariables", "value")); + } + setSupportsStateOutputVariables(e3) { + return this.supportsStateOutputVariables = e3, this; + } + get supportsTaskInputVariables() { + return this._supportsTaskInputVariables && this._supportsReusableTasks; + } + set supportsTaskInputVariables(e3) { + this._supportsTaskInputVariables = true === m.ParameterValidator.expectBool(e3, () => h.ParameterInfo.createPropertySet(this.className, "supportsTaskInputVariables", "value")); + } + get supportsAnyVariablesWithDirection() { + return this.supportsTaskInputVariables || this.supportsTaskOutputVariables || this.supportsStateInputVariables || this.supportsStateOutputVariables || this.supportsFlowInputVariables || this.supportsFlowOutputVariables; + } + setSupportsTaskInputVariables(e3) { + return this.supportsTaskInputVariables = e3, this; + } + get supportsTasksWithOutputPaths() { + return this._supportsTasksWithOutputPaths; + } + set supportsTasksWithOutputPaths(e3) { + this._supportsTasksWithOutputPaths = true === m.ParameterValidator.expectBool(e3, () => h.ParameterInfo.createPropertySet(this.className, "supportsTasksWithOutputPaths", "value")); + } + setSupportsTasksWithOutputPaths(e3) { + return this.supportsTasksWithOutputPaths = e3, this; + } + get supportsTaskOutputVariables() { + return this._supportsTaskOutputVariables && this._supportsReusableTasks; + } + set supportsTaskOutputVariables(e3) { + this._supportsTaskOutputVariables = true === m.ParameterValidator.expectBool(e3, () => h.ParameterInfo.createPropertySet(this.className, "supportsTaskOutputVariables", "value")); + } + setSupportsTaskOutputVariables(e3) { + return this.supportsTaskOutputVariables = e3, this; + } + get supportsVirtualAgent() { + return this._supportsVirtualAgent; + } + set supportsVirtualAgent(e3) { + this._supportsVirtualAgent = e3; + } + setSupportsVirtualAgent(e3) { + return this.supportsVirtualAgent = e3, this; + } + get supportsVoiceProcessingPrompt() { + return this._supportsVoiceProcessingPrompt; + } + set supportsVoiceProcessingPrompt(e3) { + this._supportsVoiceProcessingPrompt = true === m.ParameterValidator.expectBool(e3, () => h.ParameterInfo.createPropertySet(this.className, "supportsVoiceProcessingPrompt", "value")); + } + setSupportsVoiceProcessingPrompt(e3) { + return this.supportsVoiceProcessingPrompt = e3, this; + } + get supportsAnswerGeneration() { + return this._supportsAnswerGeneration; + } + set supportsAnswerGeneration(e3) { + this._supportsAnswerGeneration = e3; + } + setSupportsAnswerGeneration(e3) { + return this.supportsAnswerGeneration = e3, this; + } + get supportsEnableIntentClassificationHinting() { + return this._supportsEnableIntentClassificationHinting; + } + set supportsEnableIntentClassificationHinting(e3) { + this._supportsEnableIntentClassificationHinting = e3; + } + setSupportsEnableIntentClassificationHinting(e3) { + return this.supportsEnableIntentClassificationHinting = e3, this; + } + get startUpObjectCanBeMenu() { + return this._startUpObjectCanBeMenu; + } + set startUpObjectCanBeMenu(e3) { + this._startUpObjectCanBeMenu = true === m.ParameterValidator.expectBool(e3, () => h.ParameterInfo.createPropertySet(this.className, "startUpObjectCanBeMenu", "value")); + } + setStartupObjectCanBeMenu(e3) { + return this.startUpObjectCanBeMenu = e3, this; + } + get startUpObjectCanBeState() { + return this._startUpObjectCanBeState; + } + set startUpObjectCanBeState(e3) { + this._startUpObjectCanBeState = true === m.ParameterValidator.expectBool(e3, () => h.ParameterInfo.createPropertySet(this.className, "startUpObjectCanBeState", "value")); + } + setStartupObjectCanBeState(e3) { + return this.startUpObjectCanBeState = e3, this; + } + get startUpStateMustTerminate() { + return !this.supportsStates || this._startUpStateMustTerminate; + } + set startUpStateMustTerminate(e3) { + this._startUpStateMustTerminate = true === m.ParameterValidator.expectBool(e3, () => h.ParameterInfo.createPropertySet(this.className, "startUpStateMustTerminate", "value")); + } + setStartupStateMustTerminate(e3) { + return this.startUpStateMustTerminate = e3, this; + } + get startUpObjectCanBeRepeatingTask() { + return this._startUpObjectCanBeRepeatingTask; + } + set startUpObjectCanBeRepeatingTask(e3) { + this._startUpObjectCanBeRepeatingTask = true === m.ParameterValidator.expectBool(e3, () => h.ParameterInfo.createPropertySet(this.className, "startUpObjectCanBeRepeatingTask", "value")); + } + setStartupObjectCanBeRepeatingTask(e3) { + return this.startUpObjectCanBeRepeatingTask = e3, this; + } + get startUpObjectCanBeTask() { + return this._startUpObjectCanBeTask; + } + set startUpObjectCanBeTask(e3) { + this._startUpObjectCanBeTask = true === m.ParameterValidator.expectBool(e3, () => h.ParameterInfo.createPropertySet(this.className, "startUpObjectCanBeTask", "value")); + } + setStartupObjectCanBeTask(e3) { + return this.startUpObjectCanBeTask = e3, this; + } + get type() { + return this._type; + } + get typeDisplayName() { + return this._typeDisplayName; + } + set typeDisplayName(e3) { + this._typeDisplayName = m.ParameterValidator.expectString(e3, () => h.ParameterInfo.createPropertySet(this.className, "typeDisplayName", "value")); + } + setTypeDisplayName(e3) { + return this.typeDisplayName = e3, this; + } + get systemVariableModels() { + return this._systemVariableModels; + } + set systemVariableModels(e3) { + this._systemVariableModels = e3; + } + setSystemVariableModels(e3) { + return this.systemVariableModels = e3, this; + } + get variableScope() { + return this._variableScope; + } + set variableScope(e3) { + this._variableScope = m.ParameterValidator.expectVariableScope(e3, () => h.ParameterInfo.createPropertySet(this.className, "variableScope", "value")); + } + setVariableScope(e3) { + return this._variableScope = e3, this; + } + } + t2.default = f; + }, 3542: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = i2(80295), o = i2(19596); + class a extends o.DataContract { + constructor(e3) { + super(e3); + } + get id() { + return this._id; + } + set id(e3) { + this._id = e3; + } + get name() { + return this._name; + } + set name(e3) { + this._name = e3; + } + get latestProductionReadyVersion() { + return this._latestProductionReadyVersion; + } + set latestProductionReadyVersion(e3) { + this._latestProductionReadyVersion = e3; + } + } + t2.default = a, n2.__decorate([(0, r2.enumerable)(true), n2.__metadata("design:type", String), n2.__metadata("design:paramtypes", [String])], a.prototype, "id", null), n2.__decorate([(0, r2.enumerable)(true), n2.__metadata("design:type", String), n2.__metadata("design:paramtypes", [String])], a.prototype, "name", null), n2.__decorate([(0, r2.enumerable)(true), n2.__metadata("design:type", Object), n2.__metadata("design:paramtypes", [Object])], a.prototype, "latestProductionReadyVersion", null); + }, 3554: (e2, t2, i2) => { + "use strict"; + const n2 = i2(31635), r2 = n2.__importDefault(i2(942)), o = i2(17466), a = i2(80428), s = i2(62478), l = i2(12179), u = n2.__importDefault(i2(97891)), d = i2(47957); + class c extends r2.default { + constructor(e3, t3) { + super(e3.parentFlow, e3), this._loadModel(t3); + } + static get managedProperties() { + return r2.default.createManagedProperties({ searchFieldLabel: d.findActions.findLanguageSkill.nameLabel, searchResultLabel: d.findActions.findLanguageSkill.resultLabel, searchResultExpressionOptions: o.ExpressionTypeLanguageSkillOptions.create(), searchResultItemType: a.expressionTypeNames.languageSkill }); + } + } + c.info = u.default.createActionInfo({ actionClass: c, canBeInTask: true, helpTopic: l.helpTopics.actions.findLanguageSkill, modelClass: s.FindLanguageSkillActionModel, name: d.actions.findLanguageSkill, scriptingName: "ArchActionFindLanguageSkill" }), t2.A = c; + }, 3596: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importDefault(i2(88199)), o = n2.__importDefault(i2(14113)), a = { ArchSpeechRecTermContainer: r2.default, ArchSpeechRecTermContainers: o.default }; + t2.default = a; + }, 3692: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.default = function(e3, t3, i3) { + t3 || (t3 = e3); + const n3 = (0, r2.default)(e3, t3, o.flowTypes.flowTypeInQueueCall); + n3.variables = [], n3.inQueueCallFlowSettings = new l(), n3.inQueueCallFlowSettings.holdMusic = new a.default({ config: { lit: { pos: 1, text: "on_hold_music", type: "pmt", val: "__on_hold_music__" } }, text: "on_hold_music", type: "pmt", uiMetaData: { mode: 1 } }); + const c = new u(); + if (c.name = d.loopTask, c.variables = [], !i3) { + const e4 = new s(); + e4.name = d.actions.holdMusic, e4.playForDuration = false, e4.duration = new a.default({ config: { lit: { pos: 1, text: "P0D0H1M0S0F", type: "dur" } }, text: "P0D0H1M0S0F", type: "dur", uiMetaData: { mode: 1 } }), e4.prompt = new a.default({ config: { sysref: { pos: 1, text: "Flow.HoldPrompt", type: "pmt", val: "__FLOW_HOLD_PROMPT__" } }, text: "Flow.HoldPrompt", type: "pmt", uiMetaData: { mode: 0 } }), c.actionList = [e4], c.startAction = e4.id; + } + return n3.flowSequenceItemList = [c], n3.initialSequence = c.id, n3; + }; + const n2 = i2(31635), r2 = n2.__importDefault(i2(64499)), o = i2(96618), a = n2.__importDefault(i2(7401)), s = i2(44103), l = i2(20236), u = i2(85148), d = i2(47957); + }, 3812: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(20692)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "dateTimeCollection"; + } + get displayTypeName() { + return "ArchVariableDateTimeCollection"; + } + get initialValue() { + return this._initialValue; + } + get isArchVariableDateTimeCollection() { + return true; + } + } + t2.default = r2; + }, 3863: (e2) => { + e2.exports = { askCommon: { invalidInputReceived: "To nie jest wa\u017Cne.", noInputReceived: "Nie otrzyma\u0142em \u017Cadnych danych wej\u015Bciowych." }, askForBoolean: { noInput: 'Powiedz "tak", aby kontynuowa\u0107, lub "nie", aby nie kontynuowa\u0107.', noMatch: 'Powiedz "Tak" lub "Nie". Czy kontynuowa\u0107?', question: "Czy kontynuowa\u0107?", noInputDigitalBot: 'Wprowad\u017A "Tak", je\u015Bli chcesz kontynuowa\u0107, lub "Nie" w przeciwnym razie.', noMatchDigitalBot: 'Wprowad\u017A "Tak" lub "Nie". Czy chcesz kontynuowa\u0107?' }, askForIntent: { noInput: 'Wypowiedz kr\xF3tkie zdanie opisuj\u0105ce swoje zapytanie, np. "Sprawd\u017A stan mojego rachunku"', noMatch: "Powt\xF3rz, co chcesz zrobi\u0107.", question: "Co chcia\u0142by\u015B robi\u0107?", noInputDigitalBot: 'Wprowad\u017A kr\xF3tkie zdanie opisuj\u0105ce swoje zapytanie, np. "Sprawd\u017A stan mojego rachunku"' }, askForSlot: { askFor: "Popro\u015B o %1$s", noInput: "Wypowiedz lub wprowad\u017A (tu wprowad\u017A nazw\u0119 slotu).", noInputWithSlot: "Wypowiedz lub wprowad\u017A %1$s.", noMatch: "Podaj ponownie (tu wprowad\u017A nazw\u0119 slotu).", noMatchWithSlot: "Podaj ponownie %1$s.", question: "Co to jest (tu wprowad\u017A nazw\u0119 slotu)?", questionWithSlot: "Co to jest %1$s?", pleaseEnterSlotNameHere: "(tu wprowad\u017A nazw\u0119 slotu)", noInputDigitalBot: "Wprowad\u017A (tu wprowad\u017A nazw\u0119 slotu).", noInputWithSlotDigitalBot: "Wprowad\u017A: %1$s.", continuationPromptWithSlot: "Aktualnie mam: {{Slot.%1$s}}. Kontynuuj." }, askForNextSlot: { noInput: 'Powiedz "tak", je\u015Bli chcesz zada\u0107 kolejne pytanie, lub "nie", aby zako\u0144czy\u0107 rozmow\u0119.', noMatch: 'Powiedz "Tak", je\u015Bli chcesz zada\u0107 kolejne pytanie, lub "Nie", aby zako\u0144czy\u0107 sesj\u0119.', question: "Czy mog\u0119 pom\xF3c w czym\u015B jeszcze?", noInputDigitalBot: 'Wprowad\u017A "Tak", je\u015Bli chcesz zada\u0107 kolejne pytanie, lub "Nie", aby zako\u0144czy\u0107 sesj\u0119.', noMatchDigitalBot: 'Wprowad\u017A "Tak", je\u015Bli chcesz zada\u0107 kolejne pytanie, lub "Nie", aby zako\u0144czy\u0107 sesj\u0119.' }, askForPayment: { noInputDigitalBot: "Aby kontynuowa\u0107, podaj informacje o p\u0142atno\u015Bci.", noMatchDigitalBot: "Nie rozumiem odpowiedzi. Spr\xF3buj ponownie." }, askForAuthentication: { noInputDigitalBot: "Aby kontynuowa\u0107, podaj informacje uwierzytelniaj\u0105ce.", noMatchDigitalBot: "Nie rozumiem odpowiedzi. Spr\xF3buj ponownie." }, askSurveyQuestion: { notApplicable: "Nie dotyczy", surveyAnswerOptionSequence: "Naci\u015Bnij %1$s dla '%2$s'.", surveyAnswerNotApplicableSequence: "Naci\u015Bnij gwiazdk\u0119 dla Nie dotyczy.", surveyAnswerNotApplicableWithQuestionSequence: "%1$s. Naci\u015Bnij gwiazdk\u0119 dla Nie dotyczy.", voiceSurveyNoInputText: "Odpowiedz na pytanie.", voiceSurveyNoMatchText: "Nie rozumiem." }, commonModule: { exitCommonModule: "Wyj\u015Bcie z modu\u0142u og\xF3lnego" }, form: { noInputDigitalBot: "Aby kontynuowa\u0107, wype\u0142nij formularz.", noMatchDigitalBot: "Aby kontynuowa\u0107, wype\u0142nij formularz." }, messagingTemplate: { noInputDigitalBot: "Prosz\u0119 wybra\u0107 jedn\u0105 z dost\u0119pnych opcji.", noMatchDigitalBot: "Prosz\u0119 wybra\u0107 jedn\u0105 z dost\u0119pnych opcji." }, knowledgeSettings: { knowledgeAnswerHighlightFlowProgressionDefault: "Kontynuuj", knowledgeAnswerHighlightFullArticleDefault: "Wy\u015Bwietl pe\u0142ny artyku\u0142", knowledgeInitialResponseMulti: "Aby pom\xF3c mi w okre\u015Bleniu Twojego celu, wybierz numer z nast\u0119puj\u0105cej listy:", knowledgeInitialResponseMultiRetry: "Wybierz numer, na przyk\u0142ad '1'.\nOto lista opcji:", knowledgeNoMatch: "\u017Badna z powy\u017Cszych", knowledgeConfirmation: "Czy to zadowalaj\u0105ca odpowied\u017A na Twoje pytanie?", knowledgeFollowup: "Mam nadziej\u0119, \u017Ce uda\u0142o mi si\u0119 odpowiedzie\u0107 na pytanie. W razie potrzeby prosz\u0119 mi zada\u0107 jeszcze inne pytania." }, noOverlay: { intent: { intentConfirmationStr1: "Chyba masz zamiar", intentConfirmationStr2: "Tak?" }, youSaid: { youSaidConfirmationStr1: "M\xF3wisz", youSaidConfirmationStr2: "Tak?", youSaidConfirmationStr1DigitalBot: "Wprowadzono" }, noInput: { noInputStr1: "Wypowiedz lub wprowad\u017A", noInputStr1DigitalBot: "Wprowad\u017A" }, noMatch: { noMatchStr1: "Podaj mi" }, whatIs: { whatIsQuestionStr1: "Co to jest", whatIsQuestionStr2: "?" }, iGotContinuation: { iGotContinuationStr1: "Aktualnie mam:", iGotContinuationStr2: "Kontynuuj." } }, defaultCallFlowOne: "Domy\u015Blny przep\u0142yw po\u0142\u0105cze\u0144", errorHandlingAgentEscalationConfirmation: "Chcesz porozmawia\u0107 z doradc\u0105, czy to prawda?", errorHandlingAgentEscalationHandover: "Chwileczk\u0119, po\u0142\u0105cz\u0119 Ci\u0119 z kim\u015B.", errorHandlingErrorEventHandover: "Pojawi\u0142 si\u0119 b\u0142\u0105d. Chwileczk\u0119, po\u0142\u0105cz\u0119 Ci\u0119 z kim\u015B, kto mo\u017Ce pom\xF3c.", errorHandlingErrorEventHandoverVoiceSurvey: "Wyst\u0105pi\u0142 b\u0142\u0105d. Do widzenia.", errorHandlingRecognitionEventHandover: "Przepraszam, nie rozumiem Ci\u0119. Chwileczk\u0119, po\u0142\u0105cz\u0119 Ci\u0119 z kim\u015B, kto mo\u017Ce pom\xF3c.", errorHandlingRecognitionEventHandoverVoiceSurvey: "Niestety nie rozumiem Ci\u0119. Do widzenia.", errorHandlingTTS: "Przepraszamy, wyst\u0105pi\u0142 b\u0142\u0105d. Spr\xF3buj jeszcze raz.", initialGreetingTTS: "Witaj, to jest wst\u0119pne powitanie.", initialState: "Stan pocz\u0105tkowy", initialBotState: "Domy\u015Blny bot", initialDigitalBotState: "Wst\u0119pne powitanie", initialSurveyBotState: "Bot ankiety", intentConfirmation: "Chyba chcesz wykona\u0107 operacj\u0119: %1$s. Mam racj\u0119?", mainMenu: "Menu g\u0142\xF3wne", mainMenuTTS: "Jeste\u015B w menu g\u0142\xF3wnym, naci\u015Bnij 9, aby si\u0119 roz\u0142\u0105czy\u0107", mainTask: "Zadanie", settingsConfirmationNoInputApology: "Przepraszam, nie s\u0142ysza\u0142em Ci\u0119. Prosz\u0119 powiedzie\u0107 tak lub nie.", settingsConfirmationNoInputApologyDigitalBot: 'Nie dotar\u0142a \u017Cadna Twoja odpowied\u017A. Wprowad\u017A "Tak" lub "Nie".', settingsConfirmationNoMatchApology: "Przepraszam, prosz\u0119 powiedzie\u0107 tak lub nie.", settingsConfirmationNoMatchApologyDigitalBot: 'Przepraszam, wprowad\u017A "Tak" lub "Nie".', settingsNoInputApology: "Przepraszam, nie s\u0142ysza\u0142em Ci\u0119.", settingsNoInputApologyDigitalBot: "Nie dotar\u0142a \u017Cadna Twoje odpowied\u017A.", settingsEndOfSessionMessageDigitalBot: "Dawno nie rozmawiali\u015Bmy, wi\u0119c zamykam ten czat. Odezwij si\u0119, je\u015Bli zn\xF3w b\u0119dziesz potrzebowa\u0107 mojej pomocy. Dzi\u0119kuj\u0119.", settingsNoMatchApology: "Przepraszam.", settingsNoToConfirmationApology: "M\xF3j b\u0142\u0105d.", periodicStateName: "Powtarzaj\u0105cy si\u0119 stan" }; + }, 3916: (e2, t2, i2) => { + const n2 = i2(92140), r2 = i2(73198).default, o = i2(8462), a = i2(62778), s = i2(40894), l = {}, u = i2(24032).getTopic("schemaHelper"); + l.createSchemaPropertyList = function(e3, t3, i3, r3) { + const o2 = []; + return n2.each(e3, function(e4, l2) { + if ("patternProperties" !== l2 && "additionalProperties" !== l2 && "definitions" !== l2 && "properties" !== l2 && "dependencies" !== l2 && n2.isObject(e4)) try { + const u2 = (function(e5, t4) { + return n2.isString(t4.slotName) && (e5 = t4.slotName), t4.type && t4.type.enum ? new a(e5, t4) : new s(e5, t4, i3); + })(l2, e4); + u2.type && o2.push(u2), u2.required = !(!r3 || !t3?.includes(l2)); + } catch (e5) { + u.exception(e5, "Could not create property schema property list item"); + } + }.bind(this)), o2; + }, l.createDataPairForSchemaProperty = function(e3, t3, i3) { + i3 || (i3 = t3.type); + const a2 = o.buildOptions(i3, void 0, e3.parentFlow).setAllowSecure(e3.allowSecure).setIsOptional(!e3.isInputList || !t3.required); + let s2; + const l2 = n2.isNull(t3.defaultValue) || n2.isUndefined(t3.defaultValue); + this.defaultInputsWithNoDefaultToNotSet && l2 && e3.isInputList && !t3.type.isCollection ? a2.setDefaultText(r2.notSet).setDefaultToExpression(true).setDefaultToNoValue(false).setDoNotTransitionToNoValue(true) : e3.isInputList && (s2 = t3.defaultValue); + const u2 = { name: t3.name, referenceId: t3.id }; + return e3.createItem(u2, i3, s2, a2); + }, l.setExpressionWithSchemaProperty = function(e3, t3) { + if (e3.options.setDescriptionInfo(t3.title || t3.name, t3.description), t3.examples && e3.options.setExamples(t3.examples), !e3.isOutput && !n2.isUndefined(t3.defaultValue)) { + const i3 = n2.isString(t3.defaultValue) ? t3.defaultValue : String(t3.defaultValue); + e3.options.setDefaultText(i3); + } + t3.title && e3.options.setLabelOverride(t3.title), e3.isOutput || e3.options.setIsOptional(!t3.required), n2.isUndefined(t3.additionalInfoSection) || e3.options.setDescriptionAdditionalInfoSection(t3.additionalInfoSection), !n2.isUndefined(t3.minLength) && e3.options.isExpressionTypeStringOptions && (Number.isInteger(t3.minLength) ? e3.options.facets.setMinLength(t3.minLength) : this.topic.error(`schema property: non-numeric value found for minLength: ${t3.minLength}`)), !n2.isUndefined(t3.maxLength) && e3.options.isExpressionTypeStringOptions && (Number.isInteger(t3.maxLength) ? e3.options.facets.setMaxLength(t3.maxLength) : this.topic.error(`schema property: non-numeric value found for maxLength: ${t3.maxLength}`)), !n2.isUndefined(t3.minimum) && e3.options.facets && e3.options.facets.setMinInt && (Number.isInteger(t3.minimum) ? e3.options.facets.setMinInt(t3.minimum, true) : this.topic.error(`schema property: non-numeric value found for minimum: ${t3.minimum}`)), !n2.isUndefined(t3.maximum) && e3.options.facets && e3.options.facets.setMaxInt && (Number.isInteger(t3.maximum) ? e3.options.facets.setMaxInt(t3.maximum, true) : this.topic.error(`schema property: non-numeric value found for maxLength: ${t3.maximum}`)), t3.model && n2.isArray(t3.model.allowableValues) && e3.options.isExpressionTypeStringOptions && (e3.options.facets.allowableValues = t3.model.allowableValues), n2.isUndefined(t3.staticMetaData) || e3.setStaticMetaData(t3.staticMetaData); + }, e2.exports = l; + }, 3931: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(20692)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "fileCollection"; + } + get displayTypeName() { + return "ArchVariableFileCollection"; + } + get initialValue() { + return this._initialValue; + } + get isArchVariableFileCollection() { + return true; + } + } + t2.default = r2; + }, 3986: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.VariableValuePairs = void 0; + const n2 = i2(31635), r2 = i2(17604), o = n2.__importDefault(i2(92140)), a = n2.__importStar(i2(81116)), s = n2.__importStar(i2(63352)), l = n2.__importStar(i2(8462)), u = i2(44703), d = n2.__importDefault(i2(39776)), c = n2.__importDefault(i2(65302)), p = i2(7401), _ = i2(47957), h = i2(42217); + class m extends u.ExpressionContainer { + constructor(e3, t3, i3, n3) { + super(e3.parentFlow, e3, t3, i3, n3), this._initialize(); + } + add(e3, t3, i3) { + return super.add(e3, t3, i3); + } + addClipboardDependencies(e3) { + this.items.forEach((t3) => { + t3.variable.addClipboardDependencies(e3), t3.expression.addClipboardDependencies(e3); + }); + } + createItem(e3, t3, i3) { + var n3, r3, o2, u2; + (e3 = e3 || new h()).variable = e3.variable || new p(), e3.expression = e3.expression || new p(); + const _2 = i3 && i3.expression ? i3.expression.options : void 0, m2 = t3 || e3.expression.type, g = l.buildOptions(m2, void 0, this.parentFlow); + (null === (n3 = this.options) || void 0 === n3 ? void 0 : n3.variableOptionsOverrideCallback) ? g.invokeOptionsCallback(this.options.variableOptionsOverrideCallback) : g.setAsOutput(); + const f = a.expression(this.parentFlow, this.parent, e3.variable, this.getVariableLabel(this.items.length), m2, null, g), T = a.expression(this.parentFlow, this.parent, e3.expression, this.getValueLabel(this.items.length), m2, null, l.buildOptions(m2, _2, this.parentFlow)), y = new d.default(e3, f, T); + this.parentFlow.definition.outputValuesSupportVariableExpressions ? y.variable.mode !== s.variable && y.variable.mode !== s.expression && (y.variable.mode = s.variable) : y.variable.mode = s.variable; + const S = c.default.resolveType(this.parentFlow, e3.variable.type ? e3.variable.type : t3); + if (S.isCustomType && (null === (r3 = this.parentFlow.definitions.getCustomDataTypeDefinition(S.dataType)) || void 0 === r3 || r3.addReader(y)), !S || S.supportsLiteralEditor || y.expression.isBuilderMode || (y.expression.options.setAllowModeLiteral(false), y.expression.mode = s.expression), S && S.isCustomType && S.hasPropertiesAndAllAreReadOnly && false === y.expression.options.isOutput && (y.expression.options.setAllowModeLiteral(false), y.expression.mode = s.expression), !(null === (o2 = this.options) || void 0 === o2 ? void 0 : o2.variableOptionsOverrideCallback)) { + const e4 = null === (u2 = null == i3 ? void 0 : i3.variable) || void 0 === u2 ? void 0 : u2.disallowSecure; + y.variable.setAsOutput(e4); + } + return y; + } + destroyChild(e3) { + var t3; + const i3 = this.getVariableReferencesForItem(e3); + super.destroyChild(e3), e3.expression.type.isCustomType && (null === (t3 = this.parentFlow.definitions.getCustomDataTypeDefinition(e3.expression.type.dataType)) || void 0 === t3 || t3.removeUsage(e3)), o.default.each(i3, (e4) => e4.deleteItem(true)); + } + getValueLabel(e3) { + return (0, r2.sprintf)(_.updateVariables.variableValue, e3 + 1); + } + getVariableLabel(e3) { + return (0, r2.sprintf)(_.updateVariables.variableName, e3 + 1); + } + getVariableReferencesForItem(e3) { + return o.default.defaults({}, e3.variable.variables, e3.expression.variables); + } + get isVariableValuePairs() { + return true; + } + orderChanged() { + this.items.forEach((e3, t3) => { + e3.variable.label = this.getVariableLabel(t3), e3.expression.label = this.getValueLabel(t3); + }), super.orderChanged(); + } + traverse(e3) { + e3.expressionCallback && this.items.find((t3) => (e3.expressionCallback(t3.variable, e3), !!e3.isCanceled || (e3.expressionCallback(t3.expression, e3), e3.isCanceled))); + } + get className() { + return "VariableValuePairs"; + } + } + t2.VariableValuePairs = m; + }, 4009: (e2, t2, i2) => { + const n2 = i2(13240), r2 = i2(7401), { sendInteractiveApplicationActionActionType: o } = i2(30801); + function a() { + Object.defineProperties(this, { _applicationName: { writable: true }, _applicationUrl: { writable: true }, _applicationImage: { writable: true }, _title: { writable: true }, _subTitle: { writable: true } }), a.baseConstructor.apply(this, arguments); + } + Object.defineProperties(a.prototype, { pasteReIdOrRename: { value: function(e3) { + a._super.pasteReIdOrRename.apply(this, arguments), this.applicationName.pasteReIdOrRename(e3), this.applicationUrl.pasteReIdOrRename(e3), this.applicationImage.pasteReIdOrRename(e3), this.title.pasteReIdOrRename(e3), this.subTitle.pasteReIdOrRename(e3); + } }, pasteResolveOldToNewValues: { value: function(e3) { + a._super.pasteResolveOldToNewValues.apply(this, arguments), this.applicationName.pasteResolveOldToNewValues(e3), this.applicationUrl.pasteResolveOldToNewValues(e3), this.applicationImage.pasteResolveOldToNewValues(e3), this.title.pasteResolveOldToNewValues(e3), this.subTitle.pasteResolveOldToNewValues(e3); + } }, applicationName: { enumerable: true, get: function() { + return this._applicationName; + }, set: function(e3) { + this._applicationName = this.reviveItem(e3, r2); + } }, applicationUrl: { enumerable: true, get: function() { + return this._applicationUrl; + }, set: function(e3) { + this._applicationUrl = this.reviveItem(e3, r2); + } }, applicationImage: { enumerable: true, get: function() { + return this._applicationImage; + }, set: function(e3) { + this._applicationImage = this.reviveItem(e3, r2); + } }, title: { enumerable: true, get: function() { + return this._title; + }, set: function(e3) { + this._title = this.reviveItem(e3, r2); + } }, subTitle: { enumerable: true, get: function() { + return this._subTitle; + }, set: function(e3) { + this._subTitle = this.reviveItem(e3, r2); + } } }), n2.extend(a, o, true), e2.exports = a, i2(30801); + }, 4059: (e2, t2, i2) => { + const n2 = i2(47957); + e2.exports = [{ displayString: n2.abortSurvey.dispositionError, id: "error" }, { displayString: n2.abortSurvey.dispositionOptOut, id: "optOut" }]; + }, 4085: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.inqueueCallFlowListManager = t2.InqueueCallFlowListManager = void 0; + const n2 = i2(31635).__importStar(i2(24032)), r2 = i2(32), o = i2(6109), a = i2(96618), s = i2(27862); + class l extends o.FlowListManager { + get dependencyType() { + return s.InqueueCallFlow; + } + constructor() { + super(), this.topic = n2.getTopic("inqueueFlowListManager"), this.briefManager = r2.briefInqueueCallFlowListManager, this.additionalQueryParams = { type: a.flowTypes.flowTypeInQueueCall }, this.className = "InqueueFlowListManager", this.flowType = a.flowTypes.flowTypeInQueueCall, this._initialize(); + } + } + t2.InqueueCallFlowListManager = l, t2.inqueueCallFlowListManager = new l(); + }, 4087: (e2, t2, i2) => { + let n2 = null; + if (i2(6697)) n2 = i2(20650); + else { + const e3 = i2(29546); + try { + n2 = i2(46556)("./" + e3.getCurrentLanguage() + "/expressions.js"); + } catch (e4) { + n2 = i2(20650); + } + } + n2.then && n2.then((t3) => { + e2.exports = t3; + }), e2.exports = n2; + }, 4130: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(92661)), r2 = i2(30801); + class o extends n2.default { + constructor(e3) { + super(e3); + } + get _actionTypeId() { + return r2.findEmergencyGroupActionType; + } + get displayTypeName() { + return this._scriptingName; + } + get isArchActionFindEmergencyGroup() { + return true; + } + get findResult() { + return this._findResult; + } + } + t2.default = o; + }, 4219: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(17405)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "surveyForm"; + } + get displayTypeName() { + return "ArchValueSurveyForm"; + } + get isArchValueSurveyForm() { + return true; + } + } + t2.default = r2; + }, 4251: (e2, t2, i2) => { + "use strict"; + var n2, r2; + Object.defineProperty(t2, "__esModule", { value: true }), t2.Response = void 0; + const o = i2(31635), a = i2(80295), s = i2(80295), l = i2(84050), u = i2(23436), d = i2(72448); + class c extends l.NameIdDescriptionModel { + constructor(e3) { + super(e3), (0, s.makeUnenumerable)(this, "_responseType"), (0, s.makeUnenumerable)(this, "_form"), (0, s.makeUnenumerable)(this, "_messagingTemplate"), (0, s.makeUnenumerable)(this, "_substitutionsSchema"), (0, s.makeUnenumerable)(this, "_libraries"); + } + get responseType() { + return this._responseType; + } + set responseType(e3) { + this._responseType = e3; + } + get form() { + return this._form; + } + set form(e3) { + this._form = e3; + } + get messagingTemplate() { + return this._messagingTemplate; + } + set messagingTemplate(e3) { + this._messagingTemplate = e3; + } + get substitutionsSchema() { + return this._substitutionsSchema; + } + set substitutionsSchema(e3) { + this._substitutionsSchema = e3; + } + get library() { + return this.libraries && this.libraries[0]; + } + get libraries() { + return this._libraries; + } + set libraries(e3) { + this._libraries = this.reviveArray(e3, u.ResponseLibrary); + } + get substitutions() { + return this.substitutionsSchema; + } + set substitutions(e3) { + } + set schemas(e3) { + e3 && e3.input && (this.substitutionsSchema = e3.input); + } + } + t2.Response = c, o.__decorate([(0, a.enumerable)(true), o.__metadata("design:type", String), o.__metadata("design:paramtypes", [String])], c.prototype, "responseType", null), o.__decorate([(0, a.enumerable)(true), o.__metadata("design:type", Object), o.__metadata("design:paramtypes", [Object])], c.prototype, "form", null), o.__decorate([(0, a.enumerable)(true), o.__metadata("design:type", "function" == typeof (n2 = void 0 !== d.MessagingTemplate && d.MessagingTemplate) ? n2 : Object), o.__metadata("design:paramtypes", ["function" == typeof (r2 = void 0 !== d.MessagingTemplate && d.MessagingTemplate) ? r2 : Object])], c.prototype, "messagingTemplate", null), o.__decorate([(0, a.enumerable)(true), o.__metadata("design:type", Array), o.__metadata("design:paramtypes", [Array])], c.prototype, "substitutionsSchema", null), o.__decorate([(0, a.enumerable)(true), o.__metadata("design:type", Array), o.__metadata("design:paramtypes", [Array])], c.prototype, "libraries", null); + }, 4266: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(83663)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "listPicker"; + } + get displayTypeName() { + return "ArchValueListPickerSection"; + } + get isArchValueListPickerSection() { + return true; + } + get items() { + return this._getAssignableProperty("items"); + } + get title() { + return this._getAssignableProperty("title"); + } + get multiSelectEnabled() { + return this._getAssignableProperty("multiSelectEnabled"); + } + setLiteralListPickerSection(e3, t3, i3) { + this.title.setLiteralString(t3), i3 && this.multiSelectEnabled.setLiteralBool(i3); + } + } + t2.default = r2; + }, 4268: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importDefault(i2(94225)), o = n2.__importDefault(i2(37873)), a = i2(65302), { expressionTypeNames: s } = i2(80428); + class l extends o.default { + constructor(e3) { + super(e3), this._checkItemUndefinedOrNull(this._infoParmCtor("coreOutboundCallSettingsViewModel"), e3), this._contactList = this.coreFactory.createArchWrapper(e3.contactList), this._defaultWrapupCode = this.coreFactory.createArchWrapper(e3.defaultWrapupCode); + } + get displayTypeName() { + return "ArchSettingsOutboundCallFlow"; + } + get contactList() { + return this._contactList; + } + _updateContactType() { + this.logNote("updating Call.Contact properties for new contact list of '" + this._contactList._getCoreViewModel().name + "'"), a.getType(this._getCoreViewModel().parentFlow, s.contact, false).changeProperties(this._contactList._getCoreViewModel()); + } + get defaultWrapupCode() { + return this._defaultWrapupCode; + } + get logStr() { + if (!this._getCoreViewModel()) return this.logStrTypeOnly; + const e3 = []; + return this._appendLogStrType(e3, this.displayTypeName), this._appendLogStrParentFlowInfo(e3, this._getCoreViewModel()), this._createLogStrFromParts(e3); + } + get isArchSettingsOutboundCallFlow() { + return true; + } + setContactListLiteralByContactListIdAsync(e3, t3) { + return this._checkItemIsValidLiteralString(this._infoParm("contactListId", "setContactListLiteralByContactListIdAsync"), e3), this._checkItemIsValidFunction(this._infoParm("callbackFunction", "setContactListLiteralByContactListIdAsync"), t3, true), this._contactList.setLiteralByContactListIdAsync(e3, () => (this._updateContactType(), r2.default.executeCallback(this, "setContactListLiteralByContactListIdAsync", t3, this))); + } + setContactListLiteralByContactListNameAsync(e3, t3) { + return this._checkItemIsValidLiteralString(this._infoParm("contactListName", "setContactListLiteralByContactListNameAsync"), e3), this._checkItemIsValidFunction(this._infoParm("callbackFunction", "setContactListLiteralByContactListNameAsync"), t3, true), this._contactList.setLiteralByContactListNameAsync(e3, () => (this._updateContactType(), r2.default.executeCallback(this, "setContactListLiteralByContactListNameAsync", t3, this))); + } + } + t2.default = l; + }, 4285: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.ExpressionTypeFileOptions = void 0; + const n2 = i2(65615); + class r2 extends n2.BaseExpressionTypeCollectionOptions { + static create(e3, t3) { + return new this(t3).invokeOptionsCallback(e3); + } + constructor(e3) { + super(e3); + } + get className() { + return "ExpressionTypeFileOptions"; + } + get isExpressionTypeFileOptions() { + return true; + } + } + t2.ExpressionTypeFileOptions = r2; + }, 4294: (e2, t2, i2) => { + "use strict"; + const n2 = i2(31635), r2 = i2(17604), o = n2.__importStar(i2(1115)), a = i2(12179), s = n2.__importDefault(i2(5478)), l = n2.__importDefault(i2(97891)), u = i2(21305), d = i2(81516), c = i2(81063), p = i2(81063), _ = i2(80428), h = i2(47957); + class m extends s.default { + constructor(e3, t3) { + super(e3.parentFlow, e3), this._loadModel(t3); + } + static get managedProperties() { + return [{ label: h.decryptData.dataToDecryptLabel, options: d.ExpressionTypeStringOptions.create((e3) => e3.setAsInput().setIninTestingField("dataToDecrypt").setAllowNotSet(true).setDefaultToExpression(true).setAllowSecure(true).setDescriptionInfo(h.decryptData.dataToDecryptLabel, (0, r2.sprintf)(h.decryptData.dataToDecryptDescription, h.actions.encryptData, h.generic.branches.failure, c.getAllEncryptDecryptFailureReasons.noDataSupplied))), property: "dataToDecrypt", type: _.expressionTypeNames.string }, { label: h.decryptData.decryptedDataOutputLabel, options: u.ExpressionTypeJsonOptions.create((e3) => e3.setAsOutput().setIninTestingField("DecryptedDataOutput").setDefaultToVariable(true).setDescriptionInfo(h.decryptData.decryptedDataOutputLabel, h.decryptData.decryptedDataOutputDescription)), property: "decryptedDataOutput", yamlOptions: m.createYamlOptions("decryptedDataOutput", (e3) => e3.setPropertyName("decryptedData")), type: _.expressionTypeNames.json }]; + } + _getPossibleErrors() { + return p.getDecryptFailureReasons; + } + propertyChanged(e3) { + super.propertyChanged(e3), this.parentFlow.loaded && this.initializeDesignTimeCalled && e3 === this.dataToDecrypt && o.validateItem(this.decryptedDataOutput, true, true); + } + _initializeDesignTime() { + super._initializeDesignTime(), this.decryptedDataOutput.attachValidator((e3) => { + this.dataToDecrypt.consumesSecureData && !this.decryptedDataOutput.consumesSecureData && (e3.addError(this.decryptedDataOutput, (0, r2.sprintf)(h.securedActions.variableMustBeMadeSecure, h.decryptData.decryptedDataOutputLabel)), this.decryptedDataOutput.setParseError((0, r2.sprintf)(h.securedActions.outputMustBeSecureIfInputIsSecure, h.decryptData.decryptedDataOutputLabel, h.decryptData.dataToDecryptLabel))); + }); + } + } + m.info = l.default.createActionInfo({ actionClass: m, canBeInTask: true, helpTopic: a.helpTopics.actions.decryptData, modelClass: i2(56264), name: h.actions.decryptData, scriptingName: "ArchActionDecryptData" }), t2.A = m; + }, 4308: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.categorizeFunctions = function() { + for (let e3 = 0; e3 < o.length; e3++) { + let t3 = false; + for (let i3 = 0; i3 < a.length; i3++) if (o[e3].funcCategory === a[i3].funcCategory) { + a[i3].functions.push(o[e3]), t3 = true; + break; + } + if (false === t3) { + const t4 = (0, r2.createFuncOpCollection)(o[e3].funcCategory); + t4.functions.push(o[e3]), a.push(t4); + } + } + }; + const n2 = i2(27491), r2 = i2(58801), o = n2.expressionDataService.expressionFuncOps, a = n2.expressionDataService.expressionFuncOpCollections; + }, 4333: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.ContainerActionProperty = void 0; + const n2 = i2(31635), r2 = i2(17604), o = n2.__importDefault(i2(92140)), a = i2(9456), s = n2.__importStar(i2(36781)), l = i2(10798), u = i2(10798), d = i2(19384), c = n2.__importStar(i2(58380)), p = i2(88473), _ = i2(55867), h = i2(47957); + class m extends _.BaseActionProperty { + constructor(e3, t3, i3, n3, r3, o2, s2, d2, c2, _2, h2, m2, g) { + var f, T, y, S; + super(e3, t3), this.id = (0, a.uuid)(), this.referencesMenus = false, this.referencesTasks = false, this.referencesStates = false, this.isForFollowUpKnowledgeTask = false, this.isForCustomKnowledgeHandlingTask = false, this._featureConfigUnavailable = false, this._hasError = false, this.eventSinks = [], this._outOfServiceProvider = (0, p.addOutOfServiceProperties)(this), (null === (T = null === (f = this.metaData) || void 0 === f ? void 0 : f.options) || void 0 === T ? void 0 : T.featureConfigName) && (this._outOfServiceProvider.featureConfigName = this.metaData.options.featureConfigName, this._featureConfigUnavailable = (0, u.isFeatureUnavailable)(this.metaData.options.featureConfigName)), (null === (S = null === (y = this.metaData) || void 0 === y ? void 0 : y.options) || void 0 === S ? void 0 : S.antiFeatureConfigName) && (this._outOfServiceProvider.antiFeatureConfigName = this.metaData.options.antiFeatureConfigName, this._featureConfigUnavailable = (0, l.isFeatureAvailable)(this.metaData.options.antiFeatureConfigName)), this._noReferenceString = s2, this._modelIdPropName = i3, this._modelNamePropName = n3, this._itemDoesNotExistBaseString = r3, this._invalidStringText = o2, this._validReferenceCallback = g, this.referencesMenus = !!d2, this.referencesTasks = !!c2, this.referencesStates = !!_2, this.isForFollowUpKnowledgeTask = !!h2, this.isForCustomKnowledgeHandlingTask = !!m2, this.attachActionProperty(this._modelIdPropName, () => e3.model[this._modelIdPropName], (t4) => { + e3.model[this._modelIdPropName] !== t4 && (e3.model[this._modelIdPropName] = t4, this.validateAction()), this.setupEventSinks(); + }), this.attachActionProperty(this._modelNamePropName, () => e3.model[this._modelNamePropName], (t4) => e3.model[this._modelNamePropName] = t4), this.setupEventSinks(); + } + get isContainerActionProperty() { + return true; + } + destroy() { + super.destroy(), this._outOfServiceProvider.destroy(), this.cleanUpEventSinks(); + } + getConfiguration(e3, t3, i3) { + if (null == t3 ? void 0 : t3.isForFlowYaml) { + const e4 = this.getReferenceViewModel(); + return this.outOfService && i3 && !i3.serializeOutOfService ? void 0 : e4 && e4.yamlPath; + } + return this.parent.isAction ? (console.error("Trying to access ContainerActionProperty.getConfiguration for non-flow-YAML"), null) : (e3[this._modelIdPropName] = this.referenceId, void (e3[this._modelNamePropName] = this.referenceName)); + } + get parent() { + return this.action; + } + get parentFlow() { + return this.action.parentFlow; + } + get referenceId() { + return this.action[this._modelIdPropName]; + } + set referenceId(e3) { + this.action[this._modelIdPropName] = e3; + } + get referenceName() { + return this.action[this._modelNamePropName]; + } + set referenceName(e3) { + this.action[this._modelNamePropName] = e3; + } + get noReferenceString() { + return this._noReferenceString; + } + setReference(e3) { + if (e3) { + const t3 = this.getInvalidReferenceReason(e3); + t3 && (console.error(`Can not set reference to '${e3.name}:${e3.id}', reason: ${t3}`), e3 = void 0); + } + o.default.isFunction(this.action.linkTask) ? this.action.linkTask(e3) : o.default.isFunction(this.action.linkState) ? this.action.linkState(e3) : o.default.isFunction(this.action.linkMenu) ? this.action.linkMenu(e3) : e3 ? (this.referenceName = e3.name, this.referenceId = e3.id) : (this.referenceId = void 0, this.referenceName = void 0), e3 && !e3.supportsCustomOutputPaths || s.emitter.emit(s.branchesChanged); + } + setReferenceIdAndName(e3, t3) { + this.referenceName = t3, this.referenceId = e3; + } + isMatch(e3) { + return e3[this._modelNamePropName] === this._noReferenceString && e3[this._modelIdPropName] === this.referenceId; + } + isValidReference(e3) { + return !(!e3 || !e3.isFlowElementWithNodeInformationAndChildren || this.getInvalidReferenceReason(e3)); + } + validate(e3) { + if (!this.outOfService) if (this.action[this._modelIdPropName]) { + const t3 = this.getReferenceViewModel(); + if (!t3 && this.action[this._modelNamePropName]) e3.addError(this, (0, r2.sprintf)(h.expression.literalDropDownValueDoesNotExist, this._itemDoesNotExistBaseString, this.action[this._modelNamePropName]), false, true), this._hasError = true; + else { + const i3 = this.getReferenceIssues(t3); + i3.error && (e3.addError(this, i3.error, false, true), this._hasError = true), i3.warning && e3.addWarning(this, i3.warning, void 0, true); + } + } else e3.addError(this, this._noReferenceString, false, true), this._hasError = true; + } + getInvalidReferenceReason(e3) { + return this.getReferenceIssues(e3).error; + } + getReferenceWarning(e3) { + return this.getReferenceIssues(e3).warning; + } + get hasError() { + return this._hasError; + } + getReferenceIssues(e3) { + if (this._validReferenceCallback) { + const t3 = this._validReferenceCallback(e3); + if (o.default.isObject(t3)) return t3; + } + return {}; + } + cleanUpEventSinks() { + this.eventSinks.forEach((e3) => { + c.unregisterEventSink(e3); + }), this.eventSinks.length = 0; + } + getReferenceViewModel() { + return this.action[this._modelIdPropName] ? d.flowElementRegistrationService.getItemById(this.parentFlow, this.action[this._modelIdPropName]) : null; + } + setupEventSinks() { + this.cleanUpEventSinks(), this.referenceId && (this.eventSinks.push(c.createEventSinkObject(s.actionContainerDeleted, this.action, () => { + this.validateAction(); + })), this.eventSinks.push(c.createEventSinkObject(s.nameChanged, this.action, (e3) => this.action[this._modelNamePropName] = e3.name)), this.eventSinks.forEach((e3) => { + c.registerEventSinkForEventEmitter(this.referenceId, e3); + })); + } + static createCreateDetails(e3) { + return { create: (t3, i3) => new m(t3, i3, e3.modelIdPropName, e3.modelNamePropName, e3.itemDoesNotExistBaseString, e3.invalidStringText, e3.noReferenceString, e3.referencesMenus, e3.referencesTasks, e3.referencesStates, e3.isForFollowUpKnowledgeTask, e3.isForCustomKnowledgeHandlingTask, e3.validReferenceCallback), getCreateClass: () => m, modelProperties: [e3.modelIdPropName, e3.modelNamePropName] }; + } + } + t2.ContainerActionProperty = m; + }, 4381: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.ArchFactoryActions = void 0; + const n2 = i2(31635), r2 = n2.__importDefault(i2(92140)), o = n2.__importStar(i2(30801)), a = n2.__importDefault(i2(84783)), s = n2.__importDefault(i2(38689)), l = n2.__importDefault(i2(78432)); + class u extends a.default { + get displayTypeName() { + return "ArchFactoryActions"; + } + get logStr() { + return this._createLogStrFromParts(["ArchFactoryActions"]); + } + get isArchFactoryActions() { + return true; + } + addActionToActionContainer(e3, t3, i3, n3, a2) { + const l2 = this._infoParm("archBaseMultiActionContainer", a2); + this._checkItem(l2, !e3 || !e3.isArchBaseMultiActionContainer, "unable to add an action to the action container because the action container is not valid. valid action containers are tasks or outputs on an action when the action is not part of a menu choice"), this._checkItem(l2, e3.isMenuChoiceContainer, "unable to add an action to the action container " + e3.logStr + " because it is in a menu choice"); + const u2 = e3._coreActionContainerViewModel; + let d; + if (s.default.validateActionDefId(i3, u2.parentFlow), this._checkItem(this._infoParm("newActionDefId", a2), !u2.canAddNode(i3), "action is not valid for this flow type or action container"), t3) this._checkItem(this._infoParm("previousArchAction", a2), !t3 || !t3.isArchBaseAction, "you need to specify a valid Architect Scripting action instance when adding an action"), d = t3._getCoreViewModel(); + else for (d = u2.topAction; d && d.nextAction; ) d = d.nextAction; + const c = u2.addAction(i3, d); + return r2.default.isString(n3) && n3.length && (c.name = n3), c.info.id === o.transferVoicemailActionType && c.setOpenedBefore(), c; + } + logAdd(e3, t3) { + return this.logNote(`added ${t3.logStr} to action container ${e3.logStr}`), t3; + } + addActionAndLog(e3, t3, i3, n3, r3) { + const o2 = s.default.createArchWrapper(this.addActionToActionContainer(e3, t3, i3, n3, r3)); + return this.logAdd(e3, o2), o2; + } + configureTransferAction(e3, t3, i3, n3) { + return this._checkItemIsValidLiteralString(this._infoParm("preTransferAudioTTS", n3), i3, true), r2.default.isString(i3) && t3.preTransferAudio.setDefaultCaseExpressionToAudioTTS(i3), this.logAdd(e3, t3); + } + addActionAddFlowMilestone(e3, t3, i3) { + return this.addActionAndLog(e3, i3, o.addFlowMilestoneActionType, t3, "addActionAddFlowMilestone"); + } + addActionCallData(e3, t3, i3) { + return this.addActionAndLog(e3, i3, o.dataActionActionType, t3, "addActionCallData"); + } + addActionDataTableLookup(e3, t3, i3) { + return this.addActionAndLog(e3, i3, o.dataTableLookupActionType, t3, "addActionDataTableLookup"); + } + addActionCallDataSecure(e3, t3, i3) { + return this.addActionAndLog(e3, i3, o.secureActionActionType, t3, "addActionCallDataSecure"); + } + addActionCallDialogEngineBot(e3, t3, i3) { + return this.addActionAndLog(e3, i3, o.dialogEngineActionType, t3, "addActionCallDialogEngineBot"); + } + addActionCallDialogflowBot(e3, t3, i3) { + return this.addActionAndLog(e3, i3, o.dialogflowActionType, t3, "addActionCallDialogflowBot"); + } + addActionCallDialogflowCxBot(e3, t3, i3) { + return this.addActionAndLog(e3, i3, o.dialogflowCxActionType, t3, "addActionCallDialogflowCxBot"); + } + addActionCallLexBot(e3, t3, i3) { + return this.addActionAndLog(e3, i3, o.lexActionType, t3, "addActionCallLexBot"); + } + addActionCallBotConnector(e3, t3, i3) { + return this.addActionAndLog(e3, i3, o.botConnectorActionType, t3, "addActionCallBotConnector"); + } + addActionCallLexV2Bot(e3, t3, i3) { + return this.addActionAndLog(e3, i3, o.lexV2ActionType, t3, "addActionCallLexV2Bot"); + } + addActionCallNuanceMixBot(e3, t3, i3) { + return this.addActionAndLog(e3, i3, o.nuanceMixActionType, t3, "addActionCallNuanceMixBot"); + } + addActionClearActiveIntent(e3, t3, i3) { + return this.addActionAndLog(e3, i3, o.clearActiveIntentActionType, t3, "addActionClearActiveIntent"); + } + addActionClearPostFlow(e3, t3, i3) { + return this.addActionAndLog(e3, i3, o.clearPostFlowActionType, t3, "addActionClearPostFlow"); + } + addActionClearSlot(e3, t3, i3) { + return this.addActionAndLog(e3, i3, o.clearSlotActionType, t3, "addActionClearSlot"); + } + addActionClearUtilizationLabel(e3, t3, i3) { + return this.addActionAndLog(e3, i3, o.clearUtilizationLabelActionType, t3, "addActionClearUtilizationLabel"); + } + addActionCollectInput(e3, t3, i3, n3, a2, s2, l2) { + this._checkItemIsValidLiteralString(this._infoParm("name", "addActionCollectInput"), t3, true), this._checkItemIsValidLiteralString(this._infoParm("inputAudioTTS", "addActionCollectInput"), i3, true), this._checkItemIsValidLiteralStringOrArchVariableString(this._infoParm("inputVariable", "addActionCollectInput"), n3, true), this._checkItemIsValidLiteralInt(this._infoParm("interDigitTimeoutMS", "addActionCollectInput"), a2, true), this._checkItemIsValidLiteralInt(this._infoParm("noEntryTimeoutMS", "addActionCollectInput"), s2, true); + const u2 = this.addActionAndLog(e3, l2, o.collectInputActionType, t3, "addActionCollectInput"); + return r2.default.isString(i3) && u2.inputAudio.setDefaultCaseExpressionToAudioTTS(i3), n3 && u2.setInputDataVariable(n3), r2.default.isActualNumber(a2) && u2.interDigitTimeout.setLiteralMs(a2), r2.default.isActualNumber(s2) && u2.noEntryTimeout.setLiteralMs(s2), u2; + } + addActionClearVoicemailSnippet(e3, t3, i3) { + return this.addActionAndLog(e3, i3, o.clearVoicemailSnippetActionType, t3, "addActionClearVoicemailSnippet"); + } + addActionCollectVoiceSnippet(e3, t3, i3) { + return this.addActionAndLog(e3, i3, o.collectVoiceSnippetActionType, t3, "addActionCollectVoiceSnippet"); + } + addActionCommunicate(e3, t3, i3, n3) { + this._checkItemIsValidLiteralString(this._infoParm("communicationExpression", "addActionCommunicate"), i3, true); + const a2 = s.default.createArchWrapper(this.addActionToActionContainer(e3, n3, o.communicateActionType, t3, "addActionCommunicate")); + return r2.default.isString(i3) && a2.communication.setExpression(i3), this.logAdd(e3, a2); + } + addActionCreateCallback(e3, t3, i3) { + return this.addActionAndLog(e3, i3, o.createCallbackActionType, t3, "addActionCreateCallback"); + } + addActionCreateConversationAttribute(e3, t3, i3) { + return this.addActionAndLog(e3, i3, o.createConversationAttributeActionType, t3, "addActionCreateConversationAttribute"); + } + addActionDecision(e3, t3, i3, n3) { + this._checkItemIsValidLiteralString(this._infoParm("conditionExpression", "addActionDecision"), i3, true); + const a2 = s.default.createArchWrapper(this.addActionToActionContainer(e3, n3, o.decisionActionType, t3, "addActionDecision")); + return r2.default.isString(i3) && a2.condition.setExpression(i3), this.logAdd(e3, a2); + } + addActionCallDecisionTable(e3, t3, i3) { + return this.addActionAndLog(e3, i3, o.callDecisionTableActionType, t3, "addActionCallDecisionTable"); + } + addActionDecryptData(e3, t3, i3) { + return this.addActionAndLog(e3, i3, o.decryptDataActionType, t3, "addActionDecryptData"); + } + addActionDeflect(e3, t3, i3) { + return this.addActionAndLog(e3, i3, o.deflectActionType, t3, "addActionDeflect"); + } + addActionDialByExtension(e3, t3, i3, n3, a2, l2, u2) { + this._checkItemIsValidLiteralString(this._infoParm("repromptTTS", "addActionDialByExtension"), n3, true), this._checkItemIsValidLiteralInt(this._infoParm("repromptCount", "addActionDialByExtension"), a2, true), this._checkItemIsValidLiteralInt(this._infoParm("interDigitTimeoutMS", "addActionDialByExtension"), l2, true); + const d = s.default.createArchWrapper(this.addActionToActionContainer(e3, u2, o.dialExtensionActionType, t3, "addActionDialByExtension")); + return i3 && d.extensionVariable.setVariable(i3), r2.default.isString(n3) && d.repromptAudio.setDefaultCaseLiteralTTS(n3), void 0 !== a2 && (this._checkItemIsValidLiteralInt(this._infoParm("repromptCount", "addActionDialByExtension"), a2), d.repromptCount.setLiteralInt(a2)), r2.default.isActualNumber(l2) && d.interDigitTimeout.setLiteralMs(l2), this.logAdd(e3, d); + } + addActionDisconnect(e3, t3, i3) { + return this.addActionAndLog(e3, i3, o.disconnectActionType, t3, "addActionDisconnect"); + } + addActionDisconnectWorkitem(e3, t3, i3) { + return this.addActionAndLog(e3, i3, o.disconnectWorkitemActionType, t3, "addActionDisconnectWorkitem"); + } + addActionEnableParticipantRecord(e3, t3, i3) { + return this.addActionAndLog(e3, i3, o.participantRecordActionType, t3, "addActionEnableParticipantRecord"); + } + addActionEncryptData(e3, t3, i3) { + return this.addActionAndLog(e3, i3, o.encryptDataActionType, t3, "addActionEncryptData"); + } + addActionEndWorkflow(e3, t3, i3) { + return this.addActionAndLog(e3, i3, o.endWorkflowActionType, t3, "addActionEndWorkflow"); + } + addActionReturnToAgent(e3, t3, i3) { + return this.addActionAndLog(e3, i3, o.returnToAgentActionType, t3, "addActionReturnToAgent"); + } + addActionEvaluateSchedule(e3, t3, i3) { + return this.addActionAndLog(e3, i3, o.evaluateScheduleActionType, t3, "addActionEvaluateSchedule"); + } + addActionEvaluateScheduleGroup(e3, t3, i3) { + return this.addActionAndLog(e3, i3, o.evaluateScheduleGroupActionType, t3, "addActionEvaluateScheduleGroup"); + } + addActionEvaluateSkillExpressionFilters(e3, t3, i3) { + return this.addActionAndLog(e3, i3, o.evaluateSkillExpressionFiltersActionType, t3, "addActionEvaluateSkillExpressionFilters"); + } + addActionAbortSurveyInvite(e3, t3, i3) { + return this.addActionAndLog(e3, i3, o.abortSurveyActionType, t3, "addActionAbortSurveyInvite"); + } + addActionAbortSend(e3, t3, i3) { + return this.addActionAndLog(e3, i3, o.abortSendActionType, t3, "addActionAbortSend"); + } + addActionCompleteSend(e3, t3, i3) { + return this.addActionAndLog(e3, i3, o.completeSendActionType, t3, "addActionCompleteSend"); + } + addActionCompleteSurveyInvite(e3, t3, i3) { + return this.addActionAndLog(e3, i3, o.completeSurveyActionType, t3, "addActionCompleteSurveyInvite"); + } + addActionDetectIntent(e3, t3, i3) { + return this.addActionAndLog(e3, i3, o.detectIntentActionType, t3, "addActionDetectIntent"); + } + addActionDetectSilence(e3, t3, i3) { + const n3 = s.default.createArchWrapper(this.addActionToActionContainer(e3, i3, o.detectSilenceActionType, t3, "addActionDetectSilence")); + return this.logAdd(e3, n3); + } + addActionExtractSecureData(e3, t3, i3) { + return this.addActionAndLog(e3, i3, o.extractSecureDataActionType, t3, "addActionExtractSecureData"); + } + addActionExitBotFlow(e3, t3, i3) { + return s.default.createArchWrapper(this.addActionToActionContainer(e3, i3, o.exitBotFlowActionType, t3, "addActionExitBotFlow")); + } + addActionExitWorkitemFlow(e3, t3, i3) { + return s.default.createArchWrapper(this.addActionToActionContainer(e3, i3, o.exitWorkitemFlowActionType, t3, "addActionExitWorkitemFlow")); + } + addActionFindDivision(e3, t3, i3) { + return this.addActionAndLog(e3, i3, o.findDivisionActionType, t3, "addActionFindDivision"); + } + addActionFindDivisions(e3, t3, i3) { + return this.addActionAndLog(e3, i3, o.findDivisionsActionType, t3, "addActionFindDivisions"); + } + addActionFindEmergencyGroup(e3, t3, i3) { + return this.addActionAndLog(e3, i3, o.findEmergencyGroupActionType, t3, "addActionFindEmergencyGroup"); + } + addActionFindGrammar(e3, t3, i3) { + return this.addActionAndLog(e3, i3, o.findGrammarActionType, t3, "addActionFindGrammar"); + } + addActionFindGrammarById(e3, t3, i3) { + return this.addActionAndLog(e3, i3, o.findGrammarByIdActionType, t3, "addActionFindGrammarById"); + } + addActionFindGroup(e3, t3, i3) { + return this.addActionAndLog(e3, i3, o.findGroupActionType, t3, "addActionFindGroup"); + } + addActionFindKnowledgeBaseDocumentById(e3, t3, i3) { + return this.addActionAndLog(e3, i3, o.findKnowledgeBaseDocumentByIdActionType, t3, "addActionFindKnowledgeBaseDocumentById"); + } + addActionFindLanguageSkill(e3, t3, i3) { + return this.addActionAndLog(e3, i3, o.findLanguageSkillActionType, t3, "addActionFindLanguageSkill"); + } + addActionFindQueue(e3, t3, i3) { + return this.addActionAndLog(e3, i3, o.findQueueActionType, t3, "addActionFindQueue"); + } + addActionFindQueueById(e3, t3, i3) { + return this.addActionAndLog(e3, i3, o.findQueueByIdActionType, t3, "addActionFindQueueById"); + } + addActionFindSchedule(e3, t3, i3) { + return this.addActionAndLog(e3, i3, o.findScheduleActionType, t3, "addActionFindSchedule"); + } + addActionFindScheduleGroup(e3, t3, i3) { + return this.addActionAndLog(e3, i3, o.findScheduleGroupActionType, t3, "addActionFindScheduleGroup"); + } + addActionFindSkill(e3, t3, i3) { + return this.addActionAndLog(e3, i3, o.findSkillActionType, t3, "addActionFindSkill"); + } + addActionFindSystemPrompt(e3, t3, i3) { + return this.addActionAndLog(e3, i3, o.findSystemPromptActionType, t3, "addActionFindSystemPrompt"); + } + addActionFindUserPrompt(e3, t3, i3) { + return this.addActionAndLog(e3, i3, o.findUserPromptActionType, t3, "addActionFindUserPrompt"); + } + addActionFindUser(e3, t3, i3) { + return this.addActionAndLog(e3, i3, o.findUserActionType, t3, "addActionFindUser"); + } + addActionFindUserById(e3, t3, i3) { + return this.addActionAndLog(e3, i3, o.findUserByIdActionType, t3, "addActionFindUserById"); + } + addActionFindUsersById(e3, t3, i3) { + return this.addActionAndLog(e3, i3, o.findUsersByIdActionType, t3, "addActionFindUsersById"); + } + addActionFindUtilizationLabel(e3, t3, i3) { + return this.addActionAndLog(e3, i3, o.findUtilizationLabelActionType, t3, "addActionFindUtilizationLabel"); + } + addActionFlushAudio(e3, t3, i3) { + return this.addActionAndLog(e3, i3, o.flushAudioActionType, t3, "addActionFlushAudio"); + } + addActionForm(e3, t3, i3) { + return this.addActionAndLog(e3, i3, o.formActionType, t3, "addActionForm"); + } + addActionGetAssignedCustomerIntents(e3, t3, i3) { + return this.addActionAndLog(e3, i3, o.getAssignedCustomerIntentsActionType, t3, "addActionGetAssignedCustomerIntents"); + } + addActionGetConversationAttribute(e3, t3, i3) { + return this.addActionAndLog(e3, i3, o.getConversationAttributeActionType, t3, "addActionGetConversationAttribute"); + } + addActionGetConversationAttributes(e3, t3, i3) { + return this.addActionAndLog(e3, i3, o.getConversationAttributesActionType, t3, "addActionGetConversationAttributes"); + } + addActionGetConversationData(e3, t3, i3) { + return this.addActionAndLog(e3, i3, o.getConversationDataActionType, t3, "addActionGetConversationData"); + } + addActionGetExternalContact(e3, t3, i3) { + return this.addActionAndLog(e3, i3, o.getExternalContactActionType, t3, "addActionGetExternalContact"); + } + addActionGetExternalOrganization(e3, t3, i3) { + return this.addActionAndLog(e3, i3, o.getExternalOrganizationActionType, t3, "addActionGetExternalOrganization"); + } + addActionGetRawSIPHeaders(e3, t3, i3) { + return this.addActionAndLog(e3, i3, o.getRawSIPHeadersActionType, t3, "addActionGetRawSIPHeaders"); + } + addActionGetEmailHeaders(e3, t3, i3) { + return this.addActionAndLog(e3, i3, o.getEmailHeadersActionType, t3, "addActionGetEmailHeaders"); + } + addActionGetSIPHeaders(e3, t3, i3) { + return this.addActionAndLog(e3, i3, o.getSIPHeadersActionType, t3, "addActionGetSIPHeaders"); + } + addActionGetJourneyOutcome(e3, t3, i3) { + return this.addActionAndLog(e3, i3, o.getJourneyOutcomeActionType, t3, "addActionGetJourneyOutcome"); + } + addActionGetJourneyOutcomeScoresBySession(e3, t3, i3) { + return this.addActionAndLog(e3, i3, o.getJourneyOutcomeScoresBySessionActionType, t3, "addActionGetJourneyOutcomeScoresBySession"); + } + addActionGetJourneySegment(e3, t3, i3) { + return this.addActionAndLog(e3, i3, o.getJourneySegmentActionType, t3, "addActionGetJourneySegment"); + } + addActionGetJourneySession(e3, t3, i3) { + return this.addActionAndLog(e3, i3, o.getJourneySessionActionType, t3, "addActionGetJourneySession"); + } + addActionGetJourneySessionsByExternalContact(e3, t3, i3) { + return this.addActionAndLog(e3, i3, o.getJourneySessionsByExternalContactActionType, t3, "addActionGetJourneySessionsByExternalContact"); + } + addActionGetParticipantData(e3, t3, i3) { + return this.addActionAndLog(e3, i3, o.getAttributesActionType, t3, "addActionGetParticipantData"); + } + addActionGetResponse(e3, t3, i3) { + return this.addActionAndLog(e3, i3, o.getResponseActionType, t3, "addActionGetResponse"); + } + addActionGetSecuredData(e3, t3, i3) { + return this.addActionAndLog(e3, i3, o.getSecuredDataActionType, t3, "addActionGetSecuredData"); + } + addActionLoop(e3, t3, i3, n3, a2) { + this._checkItemIsValidLiteralString(this._infoParm("loopCountExpression", "addActionLoop"), n3, true); + const l2 = s.default.createArchWrapper(this.addActionToActionContainer(e3, a2, o.loopActionType, t3, "addActionLoop")); + return i3 && l2.currentIndex.setVariable(i3), r2.default.isString(n3) && l2.loopCount.setExpression(n3), this.logAdd(e3, l2); + } + addActionLoopAnythingElse(e3, t3, i3) { + const n3 = s.default.createArchWrapper(this.addActionToActionContainer(e3, i3, o.askForNLUNextIntentActionActionType, t3, "addActionLoopAnythingElse")); + return this.logAdd(e3, n3); + } + addActionLoopUntil(e3, t3, i3, n3, a2) { + this._checkItemIsValidLiteralString(this._infoParm("loopCountExpression", "addActionLoopUntil"), n3, true); + const l2 = s.default.createArchWrapper(this.addActionToActionContainer(e3, a2, o.loopUntilActionType, t3, "addActionLoopUntil")); + return i3 && l2.currentIndex.setVariable(i3), r2.default.isString(n3) && l2.maxLoopCount.setExpression(n3), this.logAdd(e3, l2); + } + addActionLoopExit(e3, t3, i3) { + return this.addActionAndLog(e3, i3, o.exitLoopActionType, t3, "addActionLoopExit"); + } + addActionLoopNext(e3, t3, i3) { + return this.addActionAndLog(e3, i3, o.nextLoopActionType, t3, "addActionLoopNext"); + } + addActionJumpToMenu(e3, t3, i3, n3) { + const r3 = s.default.createArchWrapper(this.addActionToActionContainer(e3, n3, o.transferMenuActionType, t3, "addActionJumpToMenu")); + return i3 && (r3.targetMenu = i3), this.logAdd(e3, r3); + } + addActionPreviousMenu(e3, t3, i3) { + const n3 = s.default.createArchWrapper(this.addActionToActionContainer(e3, i3, o.previousMenuActionType, t3, "addActionPreviousMenu")); + return this.logAdd(e3, n3); + } + addActionProcessVoicemailInput(e3, t3, i3) { + return this.addActionAndLog(e3, i3, o.processVoicemailInputActionType, t3, "addActionProcessVoicemailInput"); + } + addActionJumpToTask(e3, t3, i3, n3) { + const r3 = s.default.createArchWrapper(this.addActionToActionContainer(e3, n3, o.transferTaskActionType, t3, "addActionJumpToTask")); + return i3 && (r3.targetTask = i3), this.logAdd(e3, r3); + } + addActionPlayAudio(e3, t3, i3, n3) { + this._checkItemIsValidLiteralString(this._infoParm("defaultAudioTTS", "addActionPlayAudio"), i3, true); + const a2 = s.default.createArchWrapper(this.addActionToActionContainer(e3, n3, o.playAudioActionType, t3, "addActionPlayAudio")); + return r2.default.isString(i3) && a2.audio.setDefaultCaseLiteralTTS(i3), this.logAdd(e3, a2); + } + addActionHoldMusic(e3, t3, i3, n3, r3) { + const a2 = s.default.createArchWrapper(this.addActionToActionContainer(e3, r3, o.holdMusicActionType, t3, "addActionHoldMusic")); + return i3 && (this._checkItemIsValidLiteralStringEnum(this._infoParm("playStyle", "addActionHoldMusic"), i3, l.default.HOLD_MUSIC_PLAY_STYLES_ALL), a2.playStyle = i3), n3 && (this._checkItemIsValidLiteralString(this._infoParm("durationExpression", "addActionHoldMusic"), n3), a2.playDuration.setExpression(n3)), this.logAdd(e3, a2); + } + addActionPlayEstimatedWaitTime(e3, t3, i3, n3, a2) { + this._checkItemIsValidLiteralString(this._infoParm("playbackMode", "addActionPlayEstimatedWaitTime"), i3, true), this._checkItemIsValidLiteralString(this._infoParm("estimatedWaitTimeExpression", "addActionPlayEstimatedWaitTime"), n3, true); + const l2 = s.default.createArchWrapper(this.addActionToActionContainer(e3, a2, o.playEstimatedWaitTimeActionType, t3, "addActionPlayEstimatedWaitTime")); + return r2.default.isString(i3) && (l2.playbackMode = i3), r2.default.isString(n3) && l2.estimatedWaitTime.setExpression(n3), this.logAdd(e3, l2); + } + addActionPlayAudioOnSilence(e3, t3, i3) { + const n3 = s.default.createArchWrapper(this.addActionToActionContainer(e3, i3, o.playAudioOnSilenceActionType, t3, "addActionPlayAudioOnSilence")); + return this.logAdd(e3, n3); + } + addActionPlayPositionInQueue(e3, t3, i3, n3, a2) { + this._checkItemIsValidLiteralString(this._infoParm("playbackMode", "addActionPlayPositionInQueue"), i3, true), this._checkItemIsValidLiteralString(this._infoParm("positionExpression", "addActionPlayPositionInQueue"), n3, true); + const l2 = s.default.createArchWrapper(this.addActionToActionContainer(e3, a2, o.playPositionInQueueActionType, t3, "addActionPlayPositionInQueue")); + return r2.default.isString(i3) && (l2.playbackMode = i3), r2.default.isString(n3) && l2.positionInQueue.setExpression(n3), this.logAdd(e3, l2); + } + addActionPlayUserGreeting(e3, t3, i3) { + return this.addActionAndLog(e3, i3, o.playUserGreetingActionType, t3, "addActionPlayUserGreeting"); + } + addActionPlayUserName(e3, t3, i3) { + return this.addActionAndLog(e3, i3, o.playUserNameActionType, t3, "addActionPlayUserName"); + } + addActionPromoteExternalContact(e3, t3, i3) { + return this.addActionAndLog(e3, i3, o.promoteExternalContactActionType, t3, "addActionPromoteExternalContact"); + } + addActionSearchExternalContacts(e3, t3, i3) { + return this._checkItemIsValidLiteralString(this._infoParm("name", "addActionSearchExternalContacts"), t3, true), this.addActionAndLog(e3, i3, o.searchExternalContactsActionType, t3, "addActionSearchExternalContacts"); + } + addActionSendAutoReply(e3, t3, i3, n3, a2, s2, l2, u2) { + this._checkItemIsValidLiteralString(this._infoParm("name", "addActionSendAutoReply"), t3, true), this._checkItemIsValidLiteralString(this._infoParm("from", "addActionSendAutoReply"), i3, true), this._checkItemIsValidLiteralString(this._infoParm("replyTo", "addActionSendAutoReply"), n3, true), this._checkItemIsValidLiteralString(this._infoParm("cc", "addActionSendAutoReply"), a2, true), this._checkItemIsValidLiteralString(this._infoParm("bcc", "addActionSendAutoReply"), s2, true), this._checkItemIsValidLiteralStringOrArchVariableString(this._infoParm("messageBody", "addActionSendAutoReply"), l2, true); + const d = this.addActionAndLog(e3, u2, o.sendAutoReplyActionType, t3, "addActionSendAutoReply"); + return r2.default.isString(i3) && d.from.setExpression(i3), r2.default.isString(n3) && d.replyTo.setExpression(n3), r2.default.isString(a2) && d.cc.setExpression(a2), r2.default.isString(s2) && d.bcc.setExpression(s2), l2 && d.setMessageBodyVariable(l2), d; + } + addActionSendDigitalContent(e3, t3, i3) { + return this.logAdd(e3, s.default.createArchWrapper(this.addActionToActionContainer(e3, i3, o.sendDigitalContentActionType, t3, "addActionSendDigitalContent"))); + } + addActionSendInteractiveApplication(e3, t3, i3) { + return this.addActionAndLog(e3, i3, o.sendInteractiveApplicationActionActionType, t3, "addActionSendInteractiveApplication"); + } + addActionSendKnowledgeFeedback(e3, t3, i3) { + return this.addActionAndLog(e3, i3, o.sendKnowledgeFeedbackActionActionType, t3, "addActionSendKnowledgeFeedback"); + } + addActionSendNotification(e3, t3, i3) { + return this.addActionAndLog(e3, i3, o.sendNotificationActionType, t3, "addActionSendNotification"); + } + addActionSendResponse(e3, t3, i3, n3) { + this._checkItemIsValidLiteralString(this._infoParm("messageBody", "addActionSendResponse"), i3, true); + const a2 = this.addActionAndLog(e3, n3, o.sendResponseActionType, t3, "addActionSendResponse"); + return r2.default.isString(i3) && a2.messageBody.setExpression(i3), a2; + } + addActionSendRichLink(e3, t3, i3) { + return this.addActionAndLog(e3, i3, o.sendRichLinkActionType, t3, "addActionSendRichLink"); + } + addActionSetConversationData(e3, t3, i3) { + return this.addActionAndLog(e3, i3, o.setConversationDataActionType, t3, "addActionSetConversationData"); + } + addActionSetExternalTag(e3, t3, i3, n3) { + this._checkItemIsValidLiteralString(this._infoParm("externalTagExpression", "addActionSetExternalTag"), i3, true); + const a2 = this.addActionAndLog(e3, n3, o.setExternalTagActionType, t3, "addActionSetExternalTag"); + return r2.default.isString(i3) && a2.externalTag.setExpression(i3), a2; + } + addActionSetIntent(e3, t3, i3) { + return this.addActionAndLog(e3, i3, o.setActiveIntentActionType, t3, "addActionSetIntent"); + } + addActionSetLanguage(e3, t3, i3, n3) { + const r3 = this.addActionAndLog(e3, n3, o.setLocaleActionType, t3, "addActionSetLanguage"); + return i3 && (r3.language = i3), r3; + } + addActionSetParticipantData(e3, t3, i3) { + return this.addActionAndLog(e3, i3, o.setAttributesActionType, t3, "addActionSetParticipantData"); + } + addActionSetPostFlow(e3, t3, i3) { + return this.addActionAndLog(e3, i3, o.setPostFlowActionType, t3, "addActionSetPostFlow"); + } + addActionSetPriority(e3, t3, i3) { + return this.addActionAndLog(e3, i3, o.setPriorityActionType, t3, "addActionSetPriority"); + } + addActionSetScreenPop(e3, t3, i3) { + return this.addActionAndLog(e3, i3, o.screenPopActionType, t3, "addActionSetScreenPop"); + } + addActionSetSecuredData(e3, t3, i3) { + return this.addActionAndLog(e3, i3, o.setSecuredDataActionType, t3, "addActionSetSecuredData"); + } + addActionSetSkillExpressionFilters(e3, t3, i3) { + return this.addActionAndLog(e3, i3, o.setSkillExpressionFiltersActionType, t3, "addActionSetSkillExpressionFilters"); + } + addActionSetSkills(e3, t3, i3) { + return this.addActionAndLog(e3, i3, o.setSkillsActionType, t3, "addActionSetSkills"); + } + addActionClearSkillExpressionFilters(e3, t3, i3) { + return this.addActionAndLog(e3, i3, o.clearSkillExpressionFiltersActionType, t3, "addActionClearSkillExpressionFilters"); + } + addActionSetUtilizationLabel(e3, t3, i3) { + return this.addActionAndLog(e3, i3, o.setUtilizationLabelActionType, t3, "addActionSetUtilizationLabel"); + } + addActionSetUUIData(e3, t3, i3) { + return this.addActionAndLog(e3, i3, o.setUUIDataActionType, t3, "addActionSetUUIData"); + } + addActionSetWrapupCode(e3, t3, i3) { + return this.addActionAndLog(e3, i3, o.setWrapupCodeActionType, t3, "addActionSetWrapupCode"); + } + addActionSubmitVoicemailSnippet(e3, t3, i3) { + return this.addActionAndLog(e3, i3, o.submitVoicemailSnippetActionType, t3, "addActionSubmitVoicemailSnippet"); + } + addActionSubmitVoiceSnippet(e3, t3, i3) { + return this.addActionAndLog(e3, i3, o.submitVoiceSnippetActionType, t3, "addActionSubmitVoiceSnippet"); + } + addActionSwitch(e3, t3, i3, n3, a2) { + this._checkItemIsValidLiteralString(this._infoParm("switchExpression", "addActionSwitch"), i3, true); + const s2 = this.addActionAndLog(e3, a2, o.switchActionActionType, t3, "addActionSwitch"); + return r2.default.isString(i3) && i3.length && s2.setExpressionSwitch(i3, n3), s2; + } + addActionSetWhisperAudio(e3, t3, i3, n3) { + this._checkItemIsValidLiteralString(this._infoParm("audioExpression", "addActionSetWhisperAudio"), i3, true); + const a2 = this.addActionAndLog(e3, n3, o.setWhisperAudioActionType, t3, "addActionSetWhisperAudio"); + return r2.default.isString(i3) && a2.whisperAudio.setExpression(i3), a2; + } + addActionTerminateWorkitem(e3, t3, i3) { + return this.addActionAndLog(e3, i3, o.terminateWorkitemActionType, t3, "addActionTerminateWorkitem"); + } + addActionTranscription(e3, t3, i3) { + return this.addActionAndLog(e3, i3, o.transcriptionActionType, t3, "addActionTranscription"); + } + addActionTransferToAcd(e3, t3, i3, n3) { + const r3 = s.default.createArchWrapper(this.addActionToActionContainer(e3, n3, o.transferPureMatchActionType, t3, "addActionTransferToAcd")); + return this.configureTransferAction(e3, r3, i3, "addActionTransferToAcd"); + } + addActionTransferToFlow(e3, t3, i3, n3) { + const r3 = s.default.createArchWrapper(this.addActionToActionContainer(e3, n3, o.transferFlowActionType, t3, "addActionTransferToFlow")); + return this.configureTransferAction(e3, r3, i3, "addActionTransferToFlow"); + } + addActionTransferToFlowSecure(e3, t3, i3, n3) { + const r3 = s.default.createArchWrapper(this.addActionToActionContainer(e3, n3, o.transferFlowSecureActionType, t3, "addActionTransferToFlowSecure")); + return this.configureTransferAction(e3, r3, i3, "addActionTransferToFlowSecure"); + } + addActionTransferToGroup(e3, t3, i3, n3) { + const r3 = s.default.createArchWrapper(this.addActionToActionContainer(e3, n3, o.transferGroupActionType, t3, "addActionTransferToGroup")); + return this.configureTransferAction(e3, r3, i3, "addActionTransferToGroup"); + } + addActionTransferToNumber(e3, t3, i3, n3, a2) { + this._checkItemIsValidLiteralString(this._infoParm("number", "addActionTransferToNumber"), n3, true); + const l2 = s.default.createArchWrapper(this.addActionToActionContainer(e3, a2, o.transferExternalActionType, t3, "addActionTransferToNumber")); + return r2.default.isString(n3) && l2.targetNumber.setLiteralString(n3), this.configureTransferAction(e3, l2, i3, "addActionTransferToNumber"); + } + addActionTransferToUser(e3, t3, i3, n3) { + const r3 = s.default.createArchWrapper(this.addActionToActionContainer(e3, n3, o.transferUserActionType, t3, "addActionTransferToUser")); + return this.configureTransferAction(e3, r3, i3, "addActionTransferToUser"); + } + addActionTransferToVoicemail(e3, t3, i3, n3) { + const r3 = s.default.createArchWrapper(this.addActionToActionContainer(e3, n3, o.transferVoicemailActionType, t3, "addActionTransferToVoicemail")); + return this.configureTransferAction(e3, r3, i3, "addActionTransferToVoicemail"); + } + addActionUpdateConversationAttribute(e3, t3, i3) { + return this.addActionAndLog(e3, i3, o.updateConversationAttributeActionType, t3, "addActionUpdateConversationAttribute"); + } + addActionUpdateData(e3, t3, i3) { + return this.addActionAndLog(e3, i3, o.updateVariableActionType, t3, "addActionUpdateData"); + } + addActionUpdateWorkitem(e3, t3, i3) { + return this.addActionAndLog(e3, i3, o.updateWorkitemActionType, t3, "addActionUpdateWorkitem"); + } + addActionAskForAuthentication(e3, t3, i3) { + return this.addActionAndLog(e3, i3, o.askForAuthenticationActionType, t3, "addActionAskForAuthentication"); + } + addActionAskForBoolean(e3, t3, i3) { + return this.addActionAndLog(e3, i3, o.askForBooleanActionType, t3, "addActionAskForBoolean"); + } + addActionAskForIntent(e3, t3, i3) { + return this.addActionAndLog(e3, i3, o.askForNLUIntentActionType, t3, "addActionAskForIntent"); + } + addActionAskForSlot(e3, t3, i3) { + return this.addActionAndLog(e3, i3, o.askForSlotActionType, t3, "addActionAskForSlot"); + } + addActionAskForPayment(e3, t3, i3) { + return this.addActionAndLog(e3, i3, o.askForPaymentActionType, t3, "addActionAskForPayment"); + } + addActionAskSurveyQuestion(e3, t3, i3) { + return this.addActionAndLog(e3, i3, o.askSurveyQuestionActionType, t3, "addActionAskSurveyQuestion"); + } + addActionCallAgenticVirtualAgent(e3, t3, i3) { + return this.addActionAndLog(e3, i3, o.callAgenticVirtualAgentActionType, t3, "addActionCallAgenticVirtualAgent"); + } + addActionAudioMonitoring(e3, t3, i3) { + return this.addActionAndLog(e3, i3, o.audioMonitoringActionType, t3, "addActionAudioMonitoring"); + } + addActionCallAudioConnector(e3, t3, i3) { + return this.addActionAndLog(e3, i3, o.callAudioConnectorActionType, t3, "addActionCallAudioConnector"); + } + addActionCallBotFlow(e3, t3, i3) { + return this.addActionAndLog(e3, i3, o.callBotFlowActionType, t3, "addActionCallBotFlow"); + } + addActionCallGuide(e3, t3, i3) { + return this.addActionAndLog(e3, i3, o.callGuideActionType, t3, "addActionCallGuide"); + } + addActionCallVoiceFlow(e3, t3, i3) { + return this.addActionAndLog(e3, i3, o.callVoiceFlowActionType, t3, "addActionCallVoiceFlow"); + } + addActionCallDigitalBotConnector(e3, t3, i3) { + return this.addActionAndLog(e3, i3, o.digitalBotConnectorActionType, t3, "addActionCallDigitalBotConnector"); + } + addActionCallDigitalBotFlow(e3, t3, i3) { + return this.addActionAndLog(e3, i3, o.callDigitalBotFlowActionType, t3, "addActionCallDigitalBotFlow"); + } + addActionChangeState(e3, t3, i3, n3) { + const r3 = this.addActionAndLog(e3, n3, o.changeStateActionType, t3, "addActionChangeState"); + return i3 && (r3.targetState = i3), r3; + } + addActionCallCommonModule(e3, t3, i3) { + return this.addActionAndLog(e3, i3, o.callCommonModuleActionType, t3, "addActionCallCommonModule"); + } + addActionCallTask(e3, t3, i3, n3) { + const r3 = this.addActionAndLog(e3, n3, o.callTaskActionType, t3, "addActionCallTask"); + return i3 && (this._checkItem(this._infoParm("targetTask", "addActionCallTask"), !i3.isArchTask, "The parameter value must be an ArchTask instance."), r3.targetTask = i3), r3; + } + addActionDigitalMenu(e3, t3, i3) { + return this.addActionAndLog(e3, i3, o.digitalMenuActionType, t3, "addActionDigitalMenu"); + } + addActionEndTask(e3, t3, i3, n3) { + const r3 = this.addActionAndLog(e3, n3, o.endTaskActionType, t3, "addActionEndTask"); + return i3 && (this._checkItem(this._infoParm("targetBranch", "addActionEndTask"), !i3.isArchBranch, "The parameter value must be an ArchBranch instance."), r3.targetBranch = i3), r3; + } + addActionEndState(e3, t3, i3) { + return this.addActionAndLog(e3, i3, o.endStateActionType, t3, "addActionEndState"); + } + addActionSetFlowOutcome(e3, t3, i3) { + return this.addActionAndLog(e3, i3, o.setFlowOutcomeActionType, t3, "addActionSetFlowOutcome"); + } + addActionWait(e3, t3, i3, n3) { + this._checkItemIsValidLiteralString(this._infoParm("durationExpression", "addActionWait"), i3, true); + const a2 = this.addActionAndLog(e3, n3, o.waitActionType, t3, "addActionWait"); + return r2.default.isString(i3) && a2.duration.setExpression(i3), a2; + } + addActionWaitForInput(e3, t3, i3) { + return this.addActionAndLog(e3, i3, o.waitForInputActionType, t3, "addActionWaitForInput"); + } + addActionInitializeFlowOutcome(e3, t3, i3) { + return this.addActionAndLog(e3, i3, o.initializeFlowOutcomeActionType, t3, "addActionInitializeFlowOutcome"); + } + addActionFromDefinition(e3, t3, i3, n3) { + const r3 = this._infoParm("archDefinitionAction", "addActionFromDefinition"); + return this._checkItemIsArchDefinitionAction(r3, e3), this._checkItem(r3, !e3.canCreateFromDefinition, `instances of '${e3.label}' actions are not creatable from an action definition. The action definition has a canCreateFromDefinition property you can check before trying to create an instance of it.`), this.addActionAndLog(t3, n3, e3._coreTypeId, i3, "addActionFromDefinition"); + } + addActionShowKnowledgeArticle(e3, t3, i3) { + return this.addActionAndLog(e3, i3, o.showKnowledgeArticleActionActionType, t3, "addActionShowKnowledgeArticle"); + } + } + t2.ArchFactoryActions = u, t2.default = new u(); + }, 4406: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importDefault(i2(2318)), o = i2(12179), a = n2.__importDefault(i2(17102)), s = i2(47957), l = "optimizationOverview"; + class u extends a.default { + constructor() { + super(...arguments), this._actionId = ""; + } + get actionId() { + return this._actionId; + } + set actionId(e3) { + this._actionId = e3; + } + get outOfService() { + return !r2.default.currentUserCanUseOptimizationOverview; + } + get id() { + return l; + } + static get id() { + return l; + } + get showInFlowSize() { + return false; + } + get className() { + return "OptimizationOverviewModel"; + } + getDisplayName() { + return s.botSessionViewer.optimizationDashboardLabel; + } + get isBotSessionViewerNode() { + return true; + } + get nodeGuxIcon() { + return "graph-pie"; + } + get helpTopic() { + return o.helpTopics.treeNodes.optimizationDashboard; + } + get botSessionViewerArchNodeName() { + return l; + } + } + t2.default = u; + }, 4444: (e2, t2, i2) => { + var n2 = { "./ar-ae/templates": 5700, "./ar-eg/templates": 94434, "./ar-sa/templates": 61510, "./ca-es/templates": 8895, "./cs-cz/templates": 61044, "./da-dk/templates": 44379, "./de-ch/templates": 58873, "./de-de/templates": 69549, "./el-gr/templates": 91709, "./en-au/templates": 49108, "./en-gb/templates": 16435, "./en-us/templates": 6142, "./es-es/templates": 88439, "./es-mx/templates": 73374, "./es-us/templates": 8487, "./eu-es/templates": 94681, "./fi-fi/templates": 66593, "./fil-ph/templates": 5284, "./fr-be/templates": 79186, "./fr-ca/templates": 52179, "./fr-fr/templates": 86875, "./he-il/templates": 92475, "./hi-in/templates": 46377, "./hu-hu/templates": 79133, "./it-it/templates": 48093, "./ja-jp/templates": 55958, "./ko-kr/templates": 82984, "./ms-my/templates": 15897, "./nb-no/templates": 35476, "./nl-be/templates": 55836, "./nl-nl/templates": 68227, "./pl-pl/templates": 3863, "./pt-br/templates": 74423, "./pt-pt/templates": 40551, "./ru-ru/templates": 76641, "./sv-se/templates": 18272, "./th-th/templates": 10135, "./tr-tr/templates": 33943, "./uk-ua/templates": 41593, "./vi-vn/templates": 26928, "./zh-cn/templates": 93500, "./zh-hk/templates": 14372, "./zh-tw/templates": 6500 }; + function r2(e3) { + var t3 = o(e3); + return i2(t3); + } + function o(e3) { + if (!i2.o(n2, e3)) { + var t3 = new Error("Cannot find module '" + e3 + "'"); + throw t3.code = "MODULE_NOT_FOUND", t3; + } + return n2[e3]; + } + r2.keys = function() { + return Object.keys(n2); + }, r2.resolve = o, e2.exports = r2, r2.id = 4444; + }, 4491: (e2, t2, i2) => { + function n2() { + n2.baseConstructor.apply(this, arguments); + } + i2(74817).extend(n2, "ClipboardManifestItemTaskModel", true), e2.exports = n2; + }, 4495: (e2, t2, i2) => { + const { builderCategoryIds: n2 } = i2(73062), r2 = i2(5532).default, { builderPartIds: o } = i2(69149), a = i2(42290).default, s = i2(16958), l = i2(76486).default, u = i2(22599).default, d = i2(4648).default, { globalTypes: c } = i2(14394); + e2.exports = { create: () => { + r2.addBuilderPartDef(new a({ categoryIdentifierOrIdentifiers: n2.agentScorePair, description: s.builderParts.agentScorePair.makeAgentScorePair.description, expressionDefs: [new l({ expressionType: c.userQueue, label: s.builderParts.agentScorePair.makeAgentScorePair.expressions.user, configureOptionsCallback: (e3) => e3.setIninTestingField("user"), descriptionInfo: { description: s.builderParts.agentScorePair.makeAgentScorePair.expressions.userDescription } }), new l({ expressionType: c.integer, label: s.builderParts.agentScorePair.makeAgentScorePair.expressions.score, configureOptionsCallback: (e3) => e3.setDefaultText("50").setIninTestingField("score").facets.setMinInt(0, true).setMaxInt(100, true) })], generators: { expressionGenerator: u.create().addFuncCall("If").addFuncCall("IsSet").addTokenReplacement(0).addFuncCallEnd().addFuncParameterSeparator().addFuncCall("MakeAgentScorePair").addTokenReplacement(0).addFuncParameterSeparator().addTokenReplacement(1).addFuncCallEnd().addFuncParameterSeparator().addTokenNotSet().addFuncCallEnd().addFuncCallEnd().verifySprintfStringAndInitialize("If(IsSet(%1$s), MakeAgentScorePair(%1$s, %2$s), NOT_SET)") }, id: o.agentScorePair.makeAgentScorePair, name: s.builderParts.agentScorePair.makeAgentScorePair.name, resultExpressionType: c.agentScorePair, version: 1, requiredFeatureConfig: d.knownAgentRouting })); + } }; + }, 4612: (e2, t2, i2) => { + "use strict"; + var n2, r2; + Object.defineProperty(t2, "__esModule", { value: true }); + const o = i2(31635), a = o.__importDefault(i2(66872)), s = i2(96618); + class l extends a.default { + constructor(e3) { + super(e3), n2.set(this, void 0), r2.set(this, void 0), o.__classPrivateFieldSet(this, n2, this.coreFactory.createArchWrapper(e3.callPrompts), "f"), o.__classPrivateFieldSet(this, r2, this.coreFactory.createArchWrapper(e3.commonModuleSettings), "f"); + } + get _flowType() { + return s.flowTypes.flowTypeCommonModule; + } + get displayTypeName() { + return "ArchFlowCommonModule"; + } + get isArchFlowCommonModule() { + return true; + } + get settingsCommonModule() { + return o.__classPrivateFieldGet(this, r2, "f"); + } + get settingsPrompts() { + if (!this._getCoreViewModel().callPrompts.outOfService) return o.__classPrivateFieldGet(this, n2, "f"); + } + get startUpObject() { + return this.coreFactory.createArchWrapper(this._coreFlowViewModel.startUpObject); + } + } + n2 = /* @__PURE__ */ new WeakMap(), r2 = /* @__PURE__ */ new WeakMap(), t2.default = l; + }, 4648: (e2, t2) => { + "use strict"; + var i2; + Object.defineProperty(t2, "__esModule", { value: true }), t2.isValidFeatureConfigName = function(e3) { + return !!i2[e3]; + }, (function(e3) { + e3.amazonLexV2 = "amazonLexV2", e3.audioHookConnectorFeature = "audioHookConnectorFeature", e3.authorizedWebMessaging = "authorizedWebMessaging", e3.autoStartConversations = "autoStartConversations", e3.botFlows = "botFlows", e3.botFlowsAdvancedKnowledgeHandling = "botFlowsAdvancedKnowledgeHandling", e3.botFlowsAgentEscalationEnhancementsPhase1Feature = "botFlowsAgentEscalationEnhancementsPhase1Feature", e3.botFlowsAgenticVirtualAgent = "botFlowsAgenticVirtualAgent", e3.botFlowsVirtualAgentGuideBillingDowngrade = "botFlowsVirtualAgentGuideBillingDowngrade", e3.botFlowsAgenticVirtualAgentSage = "botFlowsAgenticVirtualAgentSage", e3.botFlowsAgenticVirtualAgentOutputValues = "botFlowsAgenticVirtualAgentOutputValues", e3.botFlowsAIPoweredSlotsEnhancements = "botFlowsAIPoweredSlotsEnhancements", e3.botFlowsAlignTransferActions = "botFlowsAlignTransferActions", e3.botFlowsAnalyticsDashboardFeature = "botFlowsAnalyticsDashboardFeature", e3.botFlowsAnswerGeneration = "botFlowsAnswerGeneration", e3.botFlowsAnswerGenerationMultipleArticles = "botFlowsAnswerGenerationMultipleArticles", e3.botFlowsAnswerHighlight = "botFlowsAnswerHighlight", e3.botFlowsAppleListPicker = "botFlowsAppleListPicker", e3.botFlowsApplePay = "botFlowsApplePay", e3.botFlowsAppleForms = "botFlowsAppleForms", e3.botFlowsAttachmentsFeature = "botFlowsAttachmentsFeature", e3.botFlowsAuthentication = "botFlowsAuthentication", e3.botFlowsAutomaticQuickRepliesFeature = "botFlowsAutomaticQuickRepliesFeature", e3.botFlowsBotsCallingBots = "botFlowsBotsCallingBots", e3.botFlowsCustomerSegmentsFeature = "botFlowsCustomerSegmentsFeature", e3.botFlowsDatePicker = "botFlowsDatePicker", e3.botFlowsDigitalBotFlowsBotSummarization = "botFlowsDigitalBotFlowsBotSummarization", e3.botFlowsDigitalBotFlowsKnowledgePathFeature = "botFlowsDigitalBotFlowsKnowledgePathFeature", e3.botFlowsDigitalBotFlowsKnowledgeEndToEndFeature = "botFlowsDigitalBotFlowsKnowledgeEndToEndFeature", e3.botFlowsDigitalBotFlowsMultiLingualFeature = "botFlowsDigitalBotFlowsMultiLingualFeature", e3.botFlowsDigitalBotFlowsNoInputsTimeoutFeature = "botFlowsDigitalBotFlowsNoInputsTimeoutFeature", e3.botFlowsDigitalBotFlowsPhase2 = "botFlowsDigitalBotFlowsPhase2", e3.botFlowsDigitalBotFlowsReprompts = "botFlowsDigitalBotFlowsReprompts", e3.botFlowsDxBotSupportFeature = "botFlowsDxBotSupportFeature", e3.botFlowsDynamicSlotTypeFeature = "botFlowsDynamicSlotTypeFeature", e3.botFlowsDynamicSlotTypePhase2Feature = "botFlowsDynamicSlotTypePhase2Feature", e3.botFlowsEnhancedRecognitionFailureHandling = "botFlowsEnhancedRecognitionFailureHandling", e3.botFlowEscalationRecognitionHandlingV2 = "botFlowEscalationRecognitionHandlingV2", e3.botFlowsFindKnowledgeBaseDocumentById = "botFlowsFindKnowledgeBaseDocumentById", e3.botFlowsGetResponseActionFeature = "botFlowsGetResponseActionFeature", e3.botFlowsGlobalBargeFeature = "botFlowsGlobalBargeFeature", e3.botFlowsGenesysR2D2 = "botFlowsGenesysR2D2", e3.botFlowsIntentClassificationHintingAsr = "botFlowsIntentClassificationHintingAsr", e3.botFlowsIntentDescriptions = "botFlowsIntentDescriptions", e3.botFlowsIntentHealthMutedFeature = "botFlowsIntentHealthMutedFeature", e3.botFlowsIntentHealthUIFeature = "botFlowsIntentHealthUIFeature", e3.botFlowsInterDigitTimeout = "botFlowsInterDigitTimeout", e3.botFlowsKnowledge = "botFlowsKnowledge", e3.botFlowsKnowledgeContentSearch = "botFlowsKnowledgeContentSearch", e3.botFlowsKnowledgeFeedback = "botFlowsKnowledgeFeedback", e3.botFlowsLastNLUCollectionConfidence = "botFlowsLastNLUCollectionConfidence", e3.botFlowsLLMPoweredSlot = "botFlowsLLMPoweredSlot", e3.botFlowsMessagingDatePicker = "botFlowsMessagingDatePicker", e3.botFlowsMsIntegration = "botFlowsMsIntegration", e3.botFlowsNluGlobalSlots = "botFlowsNluGlobalSlots", e3.botFlowsPciPhase1Feature = "botFlowsPciPhase1Feature", e3.botFlowsPhase2 = "botFlowsPhase2", e3.botFlowsPromptFeature = "botFlowsPromptFeature", e3.botFlowsQueueSupportFeature = "botFlowsQueueSupportFeature", e3.botFlowsRegexTestFeature = "botFlowsRegexTestFeature", e3.botFlowsSupportDontKnowAnswers = "botFlowsSupportDontKnowAnswers", e3.botFlowsThirdPartySttFeature = "botFlowsThirdPartySttFeature", e3.botFlowsTranscribeCustomDictionary = "botFlowsTranscribeCustomDictionary", e3.botFlowsUiSessionViewer = "botFlowsUiSessionViewer", e3.botFlowsVirtualAgentCustomSummaries = "botFlowsVirtualAgentCustomSummaries", e3.botFlowsVirtualAgentGuide = "botFlowsVirtualAgentGuide", e3.botFlowsVirtualAgentKnowledgeV3 = "botFlowsVirtualAgentKnowledgeV3", e3.botFlowsVirtualAgentKPI = "botFlowsVirtualAgentKPI", e3.botFlowsVirtualAgentOffering = "botFlowsVirtualAgentOffering", e3.botFlowsVirtualAgentSummarization = "botFlowsVirtualAgentSummarization", e3.botFlowsVirtualAgentVoicePrompt = "botFlowsVirtualAgentVoicePrompt", e3.botFlowsVoiceProcessingPrompt = "botFlowsVoiceProcessingPrompt", e3.botFlowsVoiceSnippets = "botFlowsVoiceSnippets", e3.botFlowsWebMessagingForm = "botFlowsWebMessagingForm", e3.botInstanceExecutionData = "botInstanceExecutionData", e3.byoBotConnectorDigitalV2 = "byoBotConnectorDigitalV2", e3.callDataActionFailureResponsesFeature = "callDataActionFailureResponsesFeature", e3.callFlowJourneySupportPhase1 = "callFlowJourneySupportPhase1", e3.cannedResponseAttachmentsFeature = "cannedResponseAttachmentsFeature", e3.cannedResponseAttachmentsPostGaFeature = "cannedResponseAttachmentsPostGaFeature", e3.chatDeprecationAnnouncement = "chatDeprecationAnnouncement", e3.collectInput40Digits = "collectInput40Digits", e3.conversationUtilizationLabels = "conversationUtilizationLabels", e3.createFlowMilestones = "createFlowMilestones", e3.createFlowOutcomes = "createFlowOutcomes", e3.copilotLauncher = "copilotLauncher", e3.customConversationAttributes = "customConversationAttributes", e3.customJSONV2 = "customJSONV2", e3.customJSONUserDefinedTypes = "customJSONUserDefinedTypes", e3.customerIntentsPhase1Cicero = "customerIntentsPhase1Cicero", e3.dataActionInstanceExecutionData = "dataActionInstanceExecutionData", e3.dialogEngineKnowledge = "dialogEngineKnowledge", e3.digitalBotFlowsAppleMessaging = "digitalBotFlowsAppleMessaging", e3.divisionedDataTables = "divisionedDataTables", e3.divisionedFlowOutcomes = "divisionedFlowOutcomes", e3.divisionedRoutingObjects = "divisionedRoutingObjects", e3.divisionedScriptsV2 = "divisionedScriptsV2", e3.divisionedSurveyForms = "divisionedSurveyForms", e3.divisionedWrapupCodes = "divisionedWrapupCodes", e3.dynamicQueueById = "dynamicQueueById", e3.dynamicSchedulesScheduleGroupsEmergencyGroups = "dynamicSchedulesScheduleGroupsEmergencyGroups", e3.emailBotsFeature = "emailBotsFeature", e3.emailHeadersFeature = "emailHeadersFeature", e3.emailSendFlows = "emailSendFlows", e3.encryptDecryptDataFeature = "encryptDecryptDataFeature", e3.externalContactIdentityResolutionPhase1 = "externalContactIdentityResolutionPhase1", e3.externalContactUpdatesPhase1 = "externalContactUpdatesPhase1", e3.externalContactUpdateAction = "externalContactUpdateAction", e3.flexibleTtsSelection = "flexibleTtsSelection", e3.flowInstanceExecutionDataAdvancedQuery = "flowInstanceExecutionDataAdvancedQuery", e3.flowInstanceExecutionPlaybackPhase2 = "flowInstanceExecutionPlaybackPhase2", e3.flowCreationExamples = "flowCreationExamples", e3.flowExecutionDataPhase1 = "flowExecutionDataPhase1", e3.flowInstanceExecutionData = "flowInstanceExecutionData", e3.flowInstanceExecutionDataBotFlows = "flowInstanceExecutionDataBotFlows", e3.flowInstanceLogLevelConfiguration = "flowInstanceLogLevelConfiguration", e3.flowInstanceLogLevels = "flowInstanceLogLevels", e3.flowExportYaml = "flowExportYaml", e3.flowInstanceExecutionPlayback = "flowInstanceExecutionPlayback", e3.flowOptimizationFrequencyFeature = "flowOptimizationFrequencyFeature", e3.flowOptimizationFrequencyAllFlowTypesFeature = "flowOptimizationFrequencyAllFlowTypesFeature", e3.flowStubbing = "flowStubbing", e3.flowV2_Transport = "flowV2_Transport", e3.genesysOemTts = "genesysOemTts", e3.googleDialogflow = "googleDialogflow", e3.googleDialogflowCXResellV2Feature = "googleDialogflowCXResellV2Feature", e3.googleDialogflowEnvironments = "googleDialogflowEnvironments", e3.googleDialogflowEsResellV2Feature = "googleDialogflowEsResellV2Feature", e3.googleDialogflowInputsOutputs = "googleDialogflowInputsOutputs", e3.inboundCallFlows = "inboundCallFlows", e3.inboundCallHeadersByoc = "inboundCallHeadersByoc", e3.inboundChatFlows = "inboundChatFlows", e3.inboundEmailFlows = "inboundEmailFlows", e3.inboundShortMessageFlows = "inboundShortMessageFlows", e3.inboundShortMessageFlows_Journey = "inboundShortMessageFlows_Journey", e3.inqueueCallFlows = "inqueueCallFlows", e3.journeyOutcomeById = "journeyOutcomeById", e3.journeyOutcomeScoresBySessionId = "journeyOutcomeScoresBySessionId", e3.journeySegmentById = "journeySegmentById", e3.journeySessionsByCustomerId = "journeySessionsByCustomerId", e3.journeySessionsByExternalContactId = "journeySessionsByExternalContactId", e3.knownAgentRouting = "knownAgentRouting", e3.lastCollectionModeVariable = "lastCollectionModeVariable", e3.orgAvailabilityCustomerSecuredConversationData = "orgAvailabilityCustomerSecuredConversationData", e3.orgAvailabilityGrammars = "orgAvailabilityGrammars", e3.orgAvailabilityKnowledgeV2 = "orgAvailabilityKnowledgeV2", e3.orgAvailabilityMediaAudio = "orgAvailabilityMediaAudio", e3.orgAvailabilityPredictiveEngagement = "orgAvailabilityPredictiveEngagement", e3.orgAvailabilityResponseAssets = "orgAvailabilityResponseAssets", e3.orgAvailabilitySttEnginesGrammarBased = "orgAvailabilitySttEnginesGrammarBased", e3.outboundCallFlows = "outboundCallFlows", e3.outboundEmailCampaigns = "outboundEmailCampaigns", e3.nluLanguageStatus = "nluLanguageStatus", e3.pathDiscoveryCallFlowsFeature = "pathDiscoveryCallFlowsFeature", e3.pathDiscoveryFeature = "pathDiscoveryFeature", e3.pathDiscoveryV3Feature = "pathDiscoveryV3Feature", e3.postCallActionFeature = "postCallActionFeature", e3.postFlowDigitalFeature = "postFlowDigitalFeature", e3.previewDigitalBotFlowTestWidgetFeature = "previewDigitalBotFlowTestWidgetFeature", e3.previewInboundCallFlowFeature = "previewInboundCallFlowFeature", e3.previewVoicemailFlowFeature = "previewVoicemailFlowFeature", e3.previewVoiceSurveyFlowFeature = "previewVoiceSurveyFlowFeature", e3.previewWorkflowFlowFeature = "previewWorkflowFlowFeature", e3.previewWorkitemFlowFeature = "previewWorkitemFlowFeature", e3.promptUploadV2 = "promptUploadV2", e3.publicInboundMessageFlagFeature = "publicInboundMessageFlagFeature", e3.pureCloud1PlusFeature = "pureCloud1PlusFeature", e3.pureCloud2PlusFeature = "pureCloud2PlusFeature", e3.replayPreviewFeature = "replayPreviewFeature", e3.routingSkillExpressionsFeature = "routingSkillExpressionsFeature", e3.ruleBasedDecisionsFeature = "ruleBasedDecisionsFeature", e3.ruleBasedDecisionsDigitalFeature = "ruleBasedDecisionsDigitalFeature", e3.secureCallFlows = "secureCallFlows", e3.sendNotificationAction = "sendNotificationAction", e3.sendNotificationChatGroupFeature = "sendNotificationChatGroupFeature", e3.setPrioritySkillsFeature = "setPrioritySkillsFeature", e3.spark4FlareFeature = "spark4FlareFeature", e3.spark4FlareLegacyToggle = "spark4FlareLegacyToggle", e3.suppressCallRecordingsFeature = "suppressCallRecordingsFeature", e3.suppressCallRecordingsSecureCallFeature = "suppressCallRecordingsSecureCallFeature", e3.surveyInviteFlows = "surveyInviteFlows", e3.transferToQueueErrorHandlingAutomate = "transferToQueueErrorHandlingAutomate", e3.vipExperience = "vipExperience", e3.voiceFlows = "voiceFlows", e3.voicemailFlows = "voicemailFlows", e3.voiceSurveyFlows = "voiceSurveyFlows", e3.voicemailRecordingMaxTime = "voicemailRecordingMaxTime", e3.voiceSnippets = "voiceSnippets", e3.whatsAppCarouselFeature = "whatsAppCarouselFeature", e3.whatsAppListPickerFeature = "whatsAppListPickerFeature", e3.workflowFlows = "workflowFlows", e3.workflowWaitActionUpdatesPhase1 = "workflowWaitActionUpdatesPhase1", e3.workItemFlows = "workItemFlows", e3.workitemDateAutomationFeature = "workitemDateAutomationFeature", e3.uiInternationalizationOfDatesAndTimes = "uiInternationalizationOfDatesAndTimes", e3.uiPagedPropertyLists = "uiPagedPropertyLists", e3.yamlTrackingIdFeature = "yamlTrackingIdFeature"; + })(i2 || (i2 = {})), t2.default = i2; + }, 4656: (e2, t2, i2) => { + const n2 = i2(92140), r2 = i2(96348), o = i2(45421), a = i2(32556), s = i2(13126), l = i2(60094), { ParameterInfo: u } = i2(55909), { ParameterValidator: d } = i2(33951), c = i2(47957), p = i2(69674), _ = "ClipboardContentStateViewModel"; + class h extends r2 { + constructor(e3, t3) { + super(e3, t3); + } + static create(e3, t3, i3, n3) { + d.expectString(n3, () => u.createFunctionParameter(_, "create", "newContentName"), true); + const r3 = o.getFlowViewModel(e3); + if (!r3) return d.expectFlowViewModel(r3, () => u.createFunctionParameter(_, "create", "stateViewModel.parentFlow")), null; + let s2; + try { + const o2 = new a(); + return o2.configure(r3, e3, e3.getConfiguration(), n3), s2 = new h(o2, i3), s2.initialize(r3, e3, t3), s2; + } catch (e4) { + i3.logException(e4, "Unable to create clipboard content state."); + } + return s2 && s2.destroy(), null; + } + _pasteGetCoreModelForContent() { + return new p(this.cloneToRawJsonObject(this._pasteJsonObjects.content)); + } + _pasteGetCoreViewModelForCoreModel(e3, t3) { + return this._pasteAddStateViewModelForStateModel(e3, t3); + } + checkCanPasteClipboardContextWithDetails(e3) { + const t3 = super.checkCanPasteClipboardContextWithDetails(e3); + return t3.isFailure ? t3 : e3.destViewModel && e3.destViewModel.isFlowViewModel && n2.isArray(e3.destViewModel.states) ? e3.destAllowableClipboardContentTypes && !n2.contains(e3.destAllowableClipboardContentTypes, l.states) ? this.createClipboardResultFailureCanPasteGeneric() : t3 : this.createClipboardResultFailure(this._formatResourceStrForDestFlowType(e3, e3.destFlowViewModel.supportsMultipleStates ? c.clipboard.content.pastableLocations.state : c.clipboard.content.notSupportedByFlowType.states)); + } + get className() { + return _; + } + get clipboardContentType() { + return s.task; + } + get isClipboardContentState() { + return true; + } + } + e2.exports = h; + }, 4712: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(28562), r2 = i2(69149), o = { _label: "BotSlotConf", availableLanguages: { "ar-ae": "defaultSequence", "ar-eg": "defaultSequence", "ar-sa": "defaultSequence", "ca-es": "defaultSequence", "cs-cz": "defaultSequence", "da-dk": "defaultSequence", "de-ch": "defaultSequence", "de-de": "defaultSequence", "el-gr": "defaultSequence", "en-au": "defaultSequence", "en-gb": "defaultSequence", "en-us": "defaultSequence", "es-es": "defaultSequence", "es-mx": "defaultSequence", "es-us": "defaultSequence", "eu-es": "defaultSequence", "fi-fi": "defaultSequence", "fil-ph": "defaultSequence", "fr-be": "defaultSequence", "fr-ca": "defaultSequence", "fr-fr": "defaultSequence", "he-il": "defaultSequence", "hi-in": "defaultSequence", "hu-hu": "defaultSequence", "it-it": "defaultSequence", "ja-jp": "localizedSequence1", "ko-kr": "localizedSequence1", "ms-my": "defaultSequence", "nb-no": "defaultSequence", "nl-be": "defaultSequence", "nl-nl": "defaultSequence", "pl-pl": "defaultSequence", "pt-br": "defaultSequence", "pt-pt": "defaultSequence", "ru-ru": "defaultSequence", "sv-se": "defaultSequence", "th-th": "defaultSequence", "tr-tr": "defaultSequence", "uk-ua": "defaultSequence", "vi-vn": "defaultSequence", "zh-cn": "defaultSequence", "zh-hk": "defaultSequence", "zh-tw": "defaultSequence" }, builderId: n2.builderIds.parts.genericCommunication, flowTypeOverrides: { digitalbot: { builderId: n2.builderIds.parts.markdownCommunication, languageSequences: { defaultSequence: { _label: "bot_slot_conf", partContents: [{ builderPartId: r2.builderPartIds.communication.text, parameters: { templateNoOverlaySection: "youSaid", templateNoOverlaySectionKey: "youSaidConfirmationStr1DigitalBot" } }, { builderPartId: r2.builderPartIds.communication.data, parameters: { reference: "$askResultVariable" } }, { builderPartId: r2.builderPartIds.communication.text, parameters: { templateNoOverlaySection: "youSaid", templateNoOverlaySectionKey: "youSaidConfirmationStr2" } }] }, localizedSequence1: { _label: "bot_slot_conf_seq_1", partContents: [{ builderPartId: r2.builderPartIds.communication.data, parameters: { reference: "$askResultVariable" } }, { builderPartId: r2.builderPartIds.communication.text, parameters: { templateNoOverlaySection: "youSaid", templateNoOverlaySectionKey: "youSaidConfirmationStr1DigitalBot" } }, { builderPartId: r2.builderPartIds.communication.text, parameters: { templateNoOverlaySection: "youSaid", templateNoOverlaySectionKey: "youSaidConfirmationStr2" } }] } } } }, languageSequences: { defaultSequence: { _label: "bot_slot_conf", parts: [{ builderPartId: r2.builderPartIds.communication.text, parameters: { templateNoOverlaySection: "youSaid", templateNoOverlaySectionKey: "youSaidConfirmationStr1" } }, { builderPartId: r2.builderPartIds.communication.data, parameters: { reference: "$askResultVariable" } }, { builderPartId: r2.builderPartIds.communication.text, parameters: { templateNoOverlaySection: "youSaid", templateNoOverlaySectionKey: "youSaidConfirmationStr2" } }] }, localizedSequence1: { _label: "bot_slot_conf_seq_1", parts: [{ builderPartId: r2.builderPartIds.communication.data, parameters: { reference: "$askResultVariable" } }, { builderPartId: r2.builderPartIds.communication.text, parameters: { templateNoOverlaySection: "youSaid", templateNoOverlaySectionKey: "youSaidConfirmationStr1" } }, { builderPartId: r2.builderPartIds.communication.text, parameters: { templateNoOverlaySection: "youSaid", templateNoOverlaySectionKey: "youSaidConfirmationStr2" } }] } } }; + t2.default = o; + }, 4732: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(84655)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "response asset"; + } + get displayTypeName() { + return "ArchVariableResponseAsset"; + } + get initialValue() { + return this._initialValue; + } + get isArchVariableResponseAsset() { + return true; + } + } + t2.default = r2; + }, 4738: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.GroupedBaseService = void 0; + const n2 = i2(31635).__importDefault(i2(92140)), r2 = i2(55299), o = {}; + class a extends r2.BaseClass { + _destroyGroup(e3) { + const t3 = this._getGroupByIdentifier(e3); + return !!t3 && delete o[t3]; + } + static _getObjectInGroupIdentifier(e3) { + if (e3) return e3.id; + } + _performRegisterUnregisterObjectInGroup(e3, t3) { + if (!t3 || !n2.default.isBoolean(e3)) return false; + const i3 = this._getGroupByObjectFromObjectInGroup(t3); + if (!i3) return false; + const r3 = this._getGroupByIdentifier(i3); + if (!r3) return false; + let s = o[r3]; + if (!e3 && !s) return false; + const l = a._getObjectInGroupIdentifier(t3); + return !!l && (s || (s = o[r3] = {}), e3 ? s[l] = t3 : delete s[l], true); + } + getObjectsInGroup(e3, t3, i3) { + const r3 = this._getGroupByIdentifier(e3); + if (!r3) throw "Unable to get a grouping id from the grouping object"; + const a2 = o[r3]; + if (!a2) return; + if (!i3) return t3 ? n2.default.values(e3) : a2; + const s = t3 ? [] : {}; + return n2.default.each(a2, function(e4, n3) { + i3(e4, n3) && (t3 ? s.push(e4) : s[n3] = e4); + }.bind(this)), s; + } + processGroupedObject(e3) { + return !!e3 && this._performRegisterUnregisterObjectInGroup(this._getShouldRegisterObjectInGroup(e3), e3); + } + registerGroupedObject(e3) { + return this._performRegisterUnregisterObjectInGroup(true, e3); + } + unregisterGroupedObject(e3) { + return this._performRegisterUnregisterObjectInGroup(false, e3); + } + } + t2.GroupedBaseService = a; + }, 4778: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(11541)); + class r2 extends n2.default { + constructor(e3) { + super(e3), this.populateFromJSON(e3); + } + get outputMode() { + return this._outputMode; + } + set outputMode(e3) { + this._outputMode = e3; + } + get languageTag() { + return this._languageTag; + } + set languageTag(e3) { + this._languageTag = e3; + } + } + t2.default = r2; + }, 4861: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.scheduleManager = t2.ScheduleManager = void 0; + const n2 = i2(31635), r2 = n2.__importStar(i2(50461)), o = n2.__importDefault(i2(47532)), a = i2(30801), s = i2(81801), l = n2.__importDefault(i2(4648)), u = i2(24032), d = i2(10798), c = i2(61684), p = i2(47957), _ = i2(27862); + class h extends o.default { + get requiredAuth() { + return (0, d.isFeatureAvailable)(l.default.divisionedRoutingObjects) ? s.externalAuthorizations.authStrings.schedulesSearch : s.externalAuthorizations.authStrings.schedulesView; + } + get dependencyType() { + return _.Schedule; + } + constructor() { + super(), this.topic = (0, u.getTopic)("scheduleManager"), this._rawServerCache = {}, this.actionsForUsageSearch = [a.evaluateScheduleActionType], this.actionPropertyForUsageSearch = "scheduleId", this.apiCallList = r2.getSchedules, this.apiCallSingle = r2.getSchedule, this.suppressSearch = false, this.uiMetadataSectionName = "schedules", this.dependencyContext = p.evaluateSchedules.schedule, this.className = "ScheduleManager", this._initialize(); + } + _createItemViewModel(e3) { + return new c.ScheduleViewModel(e3); + } + } + t2.ScheduleManager = h, t2.scheduleManager = new h(); + }, 4872: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.ExpressionTypeWheelPickerOptions = void 0; + const n2 = i2(65615); + class r2 extends n2.BaseExpressionTypeCollectionOptions { + static create(e3, t3) { + return new this(t3).invokeOptionsCallback(e3); + } + constructor(e3) { + super(e3); + } + get className() { + return "ExpressionTypeWheelPickerOptions"; + } + get isExpressionTypeWheelPickerOptions() { + return true; + } + } + t2.ExpressionTypeWheelPickerOptions = r2; + }, 4897: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importDefault(i2(92140)), o = i2(14394), a = n2.__importDefault(i2(21434)), s = n2.__importDefault(i2(55988)); + class l extends s.default { + constructor(e3) { + super(e3), this._checkItemUndefinedOrNull(this._infoParmCtor("coreNameValuePairs"), e3), this._coreNameValuePairs = e3; + } + get displayTypeName() { + return "ArchBaseNameValuePairs"; + } + _addNameValueAssignment(e3, t3, i3, n3) { + const s2 = new a.default(this._coreNameValuePairs.add(null, o.globalTypes.string)), l2 = s2.value, u = s2.name; + return i3 && l2._coreExpression.setAsOutput(), r2.default.isString(e3) && (true === n3 ? u.setLiteralString(e3) : u.setExpression(e3)), i3 ? t3 && l2.setVariable(t3) : r2.default.isString(t3) && l2.setExpression(t3), s2; + } + get isArchBaseNameValuePairs() { + return true; + } + get _globalTypeName() { + return ""; + } + get length() { + return this._length; + } + getNamedValueByIndex(e3) { + return this._getNamedValueByIndex(e3); + } + } + t2.default = l; + }, 5024: (e2, t2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.default = { minTrackingId: 10, maxTrackingId: 999999 }; + }, 5080: (e2, t2, i2) => { + function n2() { + this.schema = void 0, this.arrayProperties = void 0, n2.baseConstructor.apply(this, arguments); + } + i2(45214).extend(n2, "HedwigActionSchema"), e2.exports = n2; + }, 5093: (e2, t2, i2) => { + const n2 = i2(92140), r2 = i2(74359), o = i2(45421), a = i2(39041).default, s = i2(46669), l = i2(8483), u = i2(40782), d = i2(4656), c = i2(17496), p = i2(80693), _ = i2(7473), h = i2(22668), m = i2(27059), g = i2(46920), { ParameterInfo: f } = i2(55909), { ParameterValidator: T } = i2(33951), { permissionService: y } = i2(67210), { permissionStrings: S } = i2(44724), A = i2(47957), N = i2(48565), O = i2(71004), { uuid: I } = i2(9456), v = "ClipboardObjectViewModel"; + class C extends o { + constructor(e3, t3) { + super(new p(t3)), Object.defineProperties(this, { _model: { writable: true, enumerable: true }, _clipboardContents: { value: [], writable: true, enumerable: true }, _pasteContext: { value: new h(this.clipboardLogging), writable: true, enumerable: false } }), this.log("Clipboard object created with ID: '" + this.id + "'."), this._loadModel(e3); + } + _loadModel(e3) { + this._clearContents(), this._model = e3, n2.each(this._model.contents, function(e4) { + let t3; + switch (e4.__type) { + case "ClipboardContentActionModel": + t3 = new s(e4, this.clipboardLogging); + break; + case "ClipboardContentMenuModel": + t3 = new u(e4, this.clipboardLogging); + break; + case "ClipboardContentMenuChoiceModel": + t3 = new l(e4, this.clipboardLogging); + break; + case "ClipboardContentStateModel": + t3 = new d(e4, this.clipboardLogging); + break; + case "ClipboardContentTaskModel": + t3 = new c(e4, this.clipboardLogging); + break; + default: + throw "content class not supported :("; + } + t3 ? this._clipboardContents.push(t3) : this.throw("unable to create clipboard content"); + }.bind(this)); + } + _checkPasteOperationInProgress(e3) { + if (!this._pasteContext || !this._pasteContext.pasteInProgress) throw "'" + this.className + "." + e3 + "' called when a paste operation was not in progress. This method should only be called during a paste operation."; + } + _checkPasteOperationNotInProgress(e3) { + if (!this._pasteContext || this._pasteContext.pasteInProgress) throw "'" + this.className + "." + e3 + "' called when a paste operation was in progress. This method should only be called when a paste operation is not in progress."; + } + _removeContent(e3, t3) { + T.expectString(e3, () => f.createFunctionParameter(this.className, "_removeContent", "coreViewModelId"), true), T.expectBool(t3, () => f.createFunctionParameter(this.className, "_removeContent", "onlyRemoveOneContent"), true); + let i3, r3 = 0; + for (let i4 = this._clipboardContents.length - 1; i4 >= 0; i4--) { + const o2 = this._clipboardContents[i4]; + if (n2.isUndefined(e3) || o2.originalObjectId === e3) { + try { + o2.destroy(); + } catch (t4) { + this.log("Exception caught destroying clipboard content for core view model id '" + e3 + "'."); + } + if (this._clipboardContents.splice(i4, 1), this._model.contents.splice(i4, 1), r3++, true === t3) break; + } + } + switch (this.log("Removed " + r3 + " clipboard content item(s)."), r3) { + case 0: + i3 = this.createClipboardResultSuccessWithWarning("No clipboard content was removed from the clipboard object.", "No clipboard content was removed from the clipboard object."); + break; + case 1: + i3 = this.createClipboardResultSuccess(void 0, "1 clipboard content object was removed from the clipboard object."); + break; + default: + i3 = this.createClipboardResultSuccess(void 0, r3 + " clipboard content objects were removed from the clipboard object."); + } + return i3; + } + _resetPasteOperationInfo() { + this._pasteContext.reset(); + } + _checkCanCopyOrCut(e3, t3) { + if (T.expectObject(e3, () => f.createFunctionParameter(v, "_checkCanCopyOrCut", "coreViewModelToCutOrCopy")), !e3 || !n2.isObject(e3)) return t3 ? this.createClipboardResultFailure(A.clipboard.cut.cutObjectNotSpecified) : this.createClipboardResultFailure(A.clipboard.copy.copyObjectNotSpecified); + if (!e3.isBaseAction && !e3.isMenu && !e3.isMenuChoice && !e3.isState && (!e3.isTask || e3.isLoopTaskViewModel)) return t3 ? this.createClipboardResultFailure(A.clipboard.cut.onlyCutActionOrMenuOrStateOrTask) : this.createClipboardResultFailure(A.clipboard.copy.onlyCopyActionOrMenuOrStateOrTask); + const i3 = e3.parentFlow; + if (!i3) return t3 ? this.createClipboardResultFailure(A.clipboard.cut.cutObjectDoesNotBelongToAFlow) : this.createClipboardResultFailure(A.clipboard.copy.copyObjectDoesNotBelongToAFlow); + const r3 = this.checkCopyCutPermissions(t3); + if (r3.isFailure) return r3; + if (t3) { + if (!i3.info || !i3.info.currentUserCanEdit) return this.createClipboardResultFailure(A.clipboard.cut.cannotCutFlowNotEditable); + const t4 = i3.startUpObject; + if (t4 && t4.id === e3.id) return this.createClipboardResultFailure(A.clipboard.cut.cannotCutStartUpObject); + const n3 = i3.periodicState; + if (n3 && n3.id === e3.id) return this.createClipboardResultFailure(A.clipboard.cut.cannotCutPeriodicState); + } + return r3; + } + checkCopyCutPermissions(e3) { + T.expectBool(e3, () => f.createFunctionParameter(v, "checkCopyCutPermissions", "performCutCheck")); + const t3 = y.checkHasPermissionInAtLeastOneDivision(r2.getConnectedUser(), y.staticPermissions[S.architect.flow.edit]); + if (!t3 || t3.lacksPermission) { + const t4 = e3 ? A.clipboard.cut.permissions.cannotCutPermissionsGranularAcl : A.clipboard.copy.permissions.cannotCopyPermissionsGranularAcl; + return this.createClipboardResultFailure(t4); + } + return this.createClipboardResultSuccess(); + } + checkCanCopy(e3) { + return T.expectObject(e3, () => f.createFunctionParameter(this.className, "checkCanCopy", "coreViewModelToCopy")), this._checkCanCopyOrCut(e3, false); + } + checkCanCut(e3) { + return T.expectObject(e3, () => f.createFunctionParameter(this.className, "checkCanCut", "coreViewModelToCut")), this._checkCanCopyOrCut(e3, true); + } + checkCanPaste(e3, t3) { + if (T.expectObject(e3, () => f.createFunctionParameter(this.className, "checkCanPaste", "destinationCoreViewModel")), T.expectTrue(n2.isUndefined(t3) || t3.isClipboardPasteSettings, t3, "ClipboardPasteSettings", () => f.createFunctionParameter(this.className, "checkCanPaste", "pasteSettings is not a clipboard paste settings instance")), !n2.isArray(this._clipboardContents) || 0 === this._clipboardContents.length) return this.createClipboardResultFailure(A.clipboard.paste.noContent, "If you do call paste, the call will succeed with a warning saying that there was no content."); + let i3, r3; + if (e3 && (i3 = e3.isFlowViewModel ? e3 : e3.parentFlow), !i3) return this.createClipboardResultFailure(A.clipboard.paste.noDestFlow); + if (!i3.info || !i3.info.currentUserCanEdit) return this.createClipboardResultFailure(A.clipboard.paste.flowNotEditableByCurrentUser); + if (n2.find(this._clipboardContents, function(t4) { + return r3 = t4.checkCanPaste(e3), r3.isFailure; + }.bind(this)), r3 && r3.isFailure) return r3; + const o2 = r3.isSuccess ? r3.messageDisplayStr : "", a2 = new h(this.clipboardLogging); + let s2; + try { + let r4; + if (a2.setPasteContext(this, i3, e3, t3), n2.find(this._clipboardContents, function(e4) { + return r4 = e4.checkCanPasteClipboardContextWithDetails(a2), !r4.isFailure && r4.messageDisplayStr && (s2 = r4.messageDisplayStr), r4.isFailure; + }.bind(this)), r4 && r4.isFailure) return r4; + } finally { + a2.destroy(); + } + return this.createClipboardResultSuccess(s2 || o2); + } + getConfigurationStr() { + const e3 = { version: 1, clipboardObjectModel: this._model }; + return o.encodeStr(JSON.stringify(e3)); + } + loadFromConfigurationStr(e3) { + T.expectString(e3, () => f.createFunctionParameter(this.className, "loadFromConfiguration", "configStr")); + const t3 = JSON.parse(o.decodeStr(e3)); + 1 === t3.version && this._loadModel(t3.clipboardObjectModel); + } + get className() { + return v; + } + get contents() { + return this._clipboardContents; + } + static create(e3) { + return T.expectBool(e3, () => f.createFunctionParameter(this.className, "create", "enableLogging"), true), new C(new _(), e3); + } + static createFromConfigurationStr(e3, t3) { + let i3; + T.expectString(e3, () => f.createFunctionParameter(this.className, "createFromConfigurationStr", "clipboardConfigStr"), true), T.expectBool(t3, () => f.createFunctionParameter(this.className, "createFromConfigurationStr", "enableLogging"), true); + try { + i3 = JSON.parse(o.decodeStr(e3)); + } catch (e4) { + return void console.error("Unable to hydrate clipboard object information."); + } + try { + if (1 === i3.version) return new C(new _(i3.clipboardObjectModel), t3); + } catch (e4) { + console.error("Unable to load clipboard configuration to clipboard object instance."); + } + return null; + } + static getDependentVariables(e3, t3) { + let i3; + T.expectObject(e3, () => f.createFunctionParameter(this.className, "getDependentVariables", "srcCoreViewModel")), T.expectBool(t3, () => f.createFunctionParameter(this.className, "getDependentVariables", "enableLogging"), true); + let n3 = []; + const r3 = new p(true === t3); + try { + r3.log("Get dependent variables operation begin."), i3 = m.create(e3, r3), i3 && (n3 = i3.dependentVariables); + } finally { + i3 && i3.destroy(), r3.log("Get dependent variables operation end."); + } + return n3; + } + _addContent(e3, t3, i3) { + if (!n2.isObject(e3)) return null; + let r3; + return i3 = !!i3, e3.isBaseAction ? r3 = s.create(e3, i3, this.clipboardLogging, t3) : e3.isMenu ? r3 = u.create(e3, i3, this.clipboardLogging, t3) : e3.isMenuChoice ? r3 = l.create(e3, i3, this.clipboardLogging, t3) : e3.isState ? r3 = d.create(e3, i3, this.clipboardLogging, t3) : e3.isTask && (r3 = c.create(e3, i3, this.clipboardLogging, t3)), r3 ? (this._model.contents.push(r3.contentModel), this._clipboardContents.push(r3), r3) : null; + } + copy(e3, t3) { + let i3; + T.expectObject(e3, () => f.createFunctionParameter(this.className, "copy", "srcCoreViewModel")), T.expectString(t3, () => f.createFunctionParameter(this.className, "copy", "newContentName"), true), this.pushLogHeader(this.logHeader); + try { + i3 = this._addContent(e3, t3), i3 && this.log("copy operation added new clipboard content object -> " + i3.originalObjectLogStrFull); + } finally { + this.popLogHeader(); + } + return i3; + } + cut(e3, t3) { + let i3; + T.expectObject(e3, () => f.createFunctionParameter(this.className, "cut", "srcCoreViewModel")), T.expectString(t3, () => f.createFunctionParameter(this.className, "cut", "newContentName"), true), this.pushLogHeader(this.logHeader); + try { + i3 = this._addContent(e3, t3, true), i3 && this.log("cut operation added new clipboard content object -> " + i3.originalObjectLogStrFull); + } finally { + this.popLogHeader(); + } + return i3; + } + _clearContents() { + n2.each(this._clipboardContents, function(e3) { + e3.destroy(); + }.bind(this)), this._clipboardContents = []; + } + _performDestroy() { + this._clearContents(), this._resetPasteOperationInfo(), this._pasteContext && (this._pasteContext.destroy(), this._pasteContext = void 0); + } + get dateTimeCreatedLatest() { + let e3 = this.dateTimeCreated; + return n2.each(this.contents, function(t3) { + t3.dateTimeCreated > e3 && (e3 = t3.dateTimeCreated); + }.bind(this)), e3; + } + get isClipboardObject() { + return true; + } + get logHeader() { + return "clipboard object (ID: '" + this.id + "')"; + } + paste(e3, t3) { + let i3, r3, o2; + T.expectObject(e3, () => f.createFunctionParameter(this.className, "paste", "destinationCoreViewModel")), T.expectTrue(n2.isUndefined(t3) || t3.isClipboardPasteSettings, t3, "ClipboardPasteSettings", () => f.createFunctionParameter(this.className, "paste", "pasteSettings is not a clipboard paste settings instance")), this.pushLogHeader(this.logHeader); + try { + let a2; + if (this.log("Paste operation begin."), t3 && t3.additionalInfoResults && t3.additionalInfoResults.reset(), e3 && (a2 = e3.isFlowViewModel ? e3 : e3.parentFlow), i3 = this.checkCanPaste(e3, t3), n2.isArray(this._clipboardContents) && 0 !== this._clipboardContents.length) if (i3.isFailure) this.logError("The paste operation failed because the clipboard contents cannot be pasted to the specified location."); + else if (a2) { + this._resetPasteOperationInfo(), this._pasteContext.setPasteContext(this, a2, e3, t3), n2.chain(this.contents).pluck("originalObjectFlowType").unique().each((e4) => { + O.getNameMappingBetweenFlowTypes(e4, a2.type).forEach((e5) => this._pasteContext.setOldVariableNameToNewVariableNameMapping(e5.oldName, e5.newName)); + }); + try { + this._pasteContext.destFlowViewModel.validationResults && this._pasteContext.destFlowViewModel.validationResults.addSuppressPassiveValidation(this), this.log("Saving configuration for flow " + this._getNameAndIdStr(a2) + " in the event the paste operation encounters an error so it can be restored."), r3 = this.cloneToRawJsonObject(g.getConfiguration(this._pasteContext.destFlowViewModel)), o2 = true, this.log("Pasting " + this._clipboardContents.length + " content object(s)."); + const e4 = t3 && t3.pasteActionsToEndOfActionContainer ? 0 : this._clipboardContents.length - 1, n3 = t3 && t3.pasteActionsToEndOfActionContainer ? this._clipboardContents.length : -1, s2 = t3 && t3.pasteActionsToEndOfActionContainer ? 1 : -1; + for (let t4 = e4; t4 !== n3; t4 += s2) { + const e5 = this._clipboardContents[t4]; + try { + if (this._pasteContext.setCurrentContent(e5), i3 = e5.paste(this._pasteContext), i3.isFailure) { + this.log("Content object paste failed -> " + e5.originalObjectLogStrFull); + break; + } + } finally { + this._pasteContext.resetCurrentContent(); + } + } + } catch (e4) { + i3 = this.createClipboardResultFailurePasteException(e4, "Exception caught in ClipboardObject::paste."); + } finally { + this._pasteContext.dump(); + } + } else i3 = this.createClipboardResultFailure(A.clipboard.paste.noDestFlow, "No destination flow specified for the paste operation."); + else i3 = this.createClipboardResultSuccessWithWarning(A.clipboard.paste.noContent, "There is no content to paste. This ClipboardObject has no BaseClipboardContent instances added to it."); + } catch (e4) { + i3 = this.createClipboardResultFailurePasteException(e4, "Exception caught in ClipboardObject::paste."); + } finally { + if (this._pasteContext && this._pasteContext.destFlowViewModel && this._pasteContext.destFlowViewModel.validationResults && this._pasteContext.destFlowViewModel.validationResults.removeSuppressPassiveValidation(this), i3.isFailure) { + if (t3 && t3.additionalInfoResults && t3.additionalInfoResults.reset(), this.log("The paste operation failed. Message: '" + i3.messageDisplayStr + "'."), r3) { + this.log("Restoring saved flow configuration."); + const e4 = this._pasteContext.destFlowViewModel.createFlowConfiguration(r3); + this._pasteContext.destFlowViewModel.loadConfiguration(e4), this._pasteContext.destFlowViewModel.initializeDesignTime(), this.log("Flow configuration restored."); + } + } else i3.isWarning && this.log("The paste operation has a warning. Message: '" + i3.messageDisplayStr + "'."); + o2 && this.validateFlow(this.pasteContext.destFlowViewModel), i3.isSuccess && t3 && t3.additionalInfoResults && t3.additionalInfoResults.verifyNotableInformation(this.pasteContext), this._pasteContext.destFlowViewModel && this._pasteContext.destFlowViewModel.calcFlowSizeAsync(), this._resetPasteOperationInfo(), this.log("Paste operation end."), this.popLogHeader(); + } + return i3 || (i3 = this.createClipboardResultFailurePasteGeneric("Creating generic failure clipboard result since no result was specified.")), i3; + } + pasteAddOldIdToNewIdMapping(e3, t3) { + this._checkPasteOperationInProgress("pasteAddOldIdToNewIdMapping"), this._pasteContext.setOldIdToNewIdMapping(e3, t3); + } + get pasteContext() { + return this._pasteContext; + } + pasteGenerateNewGuid(e3) { + this._checkPasteOperationInProgress("pasteGenerateNewGuid"), T.expectString(e3, () => f.createFunctionParameter(this.className, "pasteGenerateNewGuid", "oldGuidId")); + const t3 = I(); + return this.pasteAddOldIdToNewIdMapping(e3, t3), t3; + } + pasteGetNewTrackingId(e3) { + this._checkPasteOperationInProgress("pasteGetNewTrackingId"), T.expectInt(e3, () => f.createFunctionParameter(this.className, "pasteGetNewTrackingId", "oldTrackingId")); + const t3 = N.createNewTrackingId(this._pasteContext.destFlowViewModel); + return this._pasteContext.setOldTrackingIdToNewTrackingId(e3, t3), t3; + } + pasteGetUniqueMenuChoiceName(e3, t3, i3, r3) { + if (this._checkPasteOperationInProgress("pasteGetUniqueMenuChoiceName"), T.expectString(e3, () => f.createFunctionParameter(this.className, "pasteGetUniqueMenuName", "currentMenuChoiceName"), true), n2.find(t3.choices, function(t4) { + return t4.name === e3; + })) { + const n3 = [t3.choices]; + return r3 && n3.push(this._pasteContext.destFlowViewModel.menus), i3 && n3.push(this._pasteContext.destFlowViewModel.tasks), this._pasteContext.pasteGetUniqueName(e3, n3, this._pasteContext, true, void 0, true); + } + return e3; + } + pasteGetUniqueMenuName(e3) { + this._checkPasteOperationInProgress("pasteGetUniqueMenuName"), T.expectString(e3, () => f.createFunctionParameter(this.className, "pasteGetUniqueMenuName", "oldMenuName"), true); + const t3 = this._pasteContext.pasteGetUniqueName(e3, this._pasteContext.destFlowViewModel.menus, this._pasteContext, true, this._pasteContext.oldMenuNameToNewMenuNameMap.getValuesAsArray(this._pasteContext.destFlowViewModel.id)); + return this._pasteContext.setOldMenuNameToNewMenuNameMapping(e3, t3), t3; + } + pasteGetUniqueStateName(e3) { + this._checkPasteOperationInProgress("pasteGetUniqueStateName"), T.expectString(e3, () => f.createFunctionParameter(this.className, "pasteGetUniqueStateName", "oldStateName"), true); + const t3 = this._pasteContext.pasteGetUniqueName(e3, this._pasteContext.destFlowViewModel.states, this._pasteContext, true, this._pasteContext.oldStateNameToNewStateNameMap.getValuesAsArray(this._pasteContext.destFlowViewModel.id)); + return this._pasteContext.setOldStateNameToNewStateNameMapping(e3, t3), t3; + } + pasteGetUniqueTaskName(e3) { + this._checkPasteOperationInProgress("pasteGetUniqueTaskName"), T.expectString(e3, () => f.createFunctionParameter(this.className, "pasteGetUniqueTaskName", "oldTaskName"), true); + const t3 = this._pasteContext.pasteGetUniqueName(e3, this._pasteContext.destFlowViewModel.tasks, this._pasteContext, true, this._pasteContext.oldTaskNameToNewTaskNameMap.getValuesAsArray(this._pasteContext.destFlowViewModel.id)); + return this._pasteContext.setOldTaskNameToNewTaskNameMapping(e3, t3), t3; + } + get pasteInProgress() { + return this._pasteContext.pasteInProgress; + } + pasteResolveOldIdToOldName(e3) { + return this._checkPasteOperationInProgress("pasteResolveOldIdToOldName"), this._pasteContext.resolveOldIdToOldName(e3); + } + pasteResolveOldIdToNewId(e3) { + return this._checkPasteOperationInProgress("pasteResolveOldIdToNewId"), this._pasteContext.resolveOldId(e3); + } + pasteResolveOldMenuNameToNewMenuName(e3) { + return this._checkPasteOperationInProgress("pasteResolveOldMenuNameToNewMenuName"), this._pasteContext.resolveOldMenuName(e3); + } + pasteResolveOldStateNameToNewStateName(e3) { + return this._checkPasteOperationInProgress("pasteResolveOldStateNameToNewStateName"), this._pasteContext.resolveOldStateName(e3); + } + pasteResolveOldTaskNameToNewTaskName(e3) { + return this._checkPasteOperationInProgress("pasteResolveOldTaskNameToNewTaskName"), this._pasteContext.resolveOldTaskName(e3); + } + reviveBuilderModel(e3) { + if (this._checkPasteOperationInProgress("reviveBuilderModel"), T.expectObject(e3, () => f.createFunctionParameter(this.className, "getBuilderModel", "builderJSON"), true), !e3 || !e3.builderDefId) return; + let t3; + const i3 = a.getBuilderDefById(e3.builderDefId); + return i3 && (t3 = i3.reviveBuilderModel(e3)), t3; + } + removeContentByViewModel(e3, t3) { + let i3; + this._checkPasteOperationNotInProgress("removeContentByViewModel"), this.pushLogHeader(this.logHeader); + try { + this.log("Clipboard object remove content by view model begin."), T.expectObject(e3, () => f.createFunctionParameter(this.className, "removeContentByViewModel", "coreViewModel")), T.expectBool(t3, () => f.createFunctionParameter(this.className, "removeContentByViewModel", "removeFirstMatchOnly"), true), e3 && e3.id ? i3 = this._removeContent(e3.id, t3, "removeContentByViewModel") : (this.log("Core view model was invalid or the core view model did not have a valid id property."), i3 = this.createClipboardResultFailure(A.clipboard.content.removalError, "Unable to determine the content to remove from the ClipboardObject.")); + } catch (e4) { + i3 = this.createClipboardResultFailure(A.clipboard.content.removalError, "An error occurred during the remove content by view model operation."); + } finally { + this.log("Clipboard object remove content by view model end."), this.popLogHeader(); + } + return i3; + } + removeContentById(e3, t3) { + let i3; + this._checkPasteOperationNotInProgress("removeContentById"), this.pushLogHeader(this.logHeader); + try { + this.log("Clipboard object remove content by id begin."), T.expectString(e3, () => f.createFunctionParameter(this.className, "removeContentById", "coreViewModelId")), T.expectBool(t3, () => f.createFunctionParameter(this.className, "removeContentById", "removeFirstMatchOnly"), true), n2.isString(e3) && 0 !== e3.length ? i3 = this._removeContent(e3, t3, "removeContentById") : (this.log("Core view model id was invalid."), i3 = this.createClipboardResultFailure(A.clipboard.content.removalError, "Unable to determine what to remove from the clipboard object.")); + } catch (e4) { + i3 = this.createClipboardResultFailure(A.clipboard.content.removalError, "An error occurred during the remove content by id operation."); + } finally { + this.log("Clipboard object remove content by id end."), this.popLogHeader(); + } + return i3; + } + removeContentLastAdded() { + let e3; + this._checkPasteOperationNotInProgress("removeContentLastAdded"), this.pushLogHeader(this.logHeader); + try { + this.log("Clipboard object remove last added content begin."), e3 = this._removeContent(void 0, true); + } catch (t3) { + e3 = this.createClipboardResultFailure(A.clipboard.content.removalError, "An error occurred during the remove content last added operation."); + } finally { + this.log("Clipboard object remove last added content end."), this.popLogHeader(); + } + return e3; + } + removeContentAll() { + let e3; + this._checkPasteOperationNotInProgress("removeContentAll"), this.pushLogHeader(this.logHeader); + try { + this.log("Clipboard object remove all content begin."), e3 = this._removeContent(); + } catch (t3) { + e3 = this.createClipboardResultFailure(A.clipboard.content.removalError, "An error occurred during the remove content all operation."); + } finally { + this.log("Clipboard object remove all content end."), this.popLogHeader(); + } + return e3; + } + } + e2.exports = C; + }, 5128: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.groupBy = void 0; + var n2 = i2(48051), r2 = i2(19724), o = i2(76808), a = i2(65212), s = i2(17214); + t2.groupBy = function(e3, t3, i3, l) { + return a.operate(function(a2, u) { + var d; + t3 && "function" != typeof t3 ? (i3 = t3.duration, d = t3.element, l = t3.connector) : d = t3; + var c = /* @__PURE__ */ new Map(), p = function(e4) { + c.forEach(e4), e4(u); + }, _ = function(e4) { + return p(function(t4) { + return t4.error(e4); + }); + }, h = 0, m = false, g = new s.OperatorSubscriber(u, function(t4) { + try { + var a3 = e3(t4), p2 = c.get(a3); + if (!p2) { + c.set(a3, p2 = l ? l() : new o.Subject()); + var f = (y = a3, S = p2, (A = new n2.Observable(function(e4) { + h++; + var t5 = S.subscribe(e4); + return function() { + t5.unsubscribe(), 0 === --h && m && g.unsubscribe(); + }; + })).key = y, A); + if (u.next(f), i3) { + var T = s.createOperatorSubscriber(p2, function() { + p2.complete(), null == T || T.unsubscribe(); + }, void 0, void 0, function() { + return c.delete(a3); + }); + g.add(r2.innerFrom(i3(f)).subscribe(T)); + } + } + p2.next(d ? d(t4) : t4); + } catch (e4) { + _(e4); + } + var y, S, A; + }, function() { + return p(function(e4) { + return e4.complete(); + }); + }, _, function() { + return c.clear(); + }, function() { + return m = true, 0 === h; + }); + a2.subscribe(g); + }); + }; + }, 5130: function(e2, t2, i2) { + "use strict"; + var n2, r2 = this && this.__extends || (n2 = function(e3, t3) { + return n2 = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(e4, t4) { + e4.__proto__ = t4; + } || function(e4, t4) { + for (var i3 in t4) Object.prototype.hasOwnProperty.call(t4, i3) && (e4[i3] = t4[i3]); + }, n2(e3, t3); + }, function(e3, t3) { + if ("function" != typeof t3 && null !== t3) throw new TypeError("Class extends value " + String(t3) + " is not a constructor or null"); + function i3() { + this.constructor = e3; + } + n2(e3, t3), e3.prototype = null === t3 ? Object.create(t3) : (i3.prototype = t3.prototype, new i3()); + }); + Object.defineProperty(t2, "__esModule", { value: true }), t2.AsyncSubject = void 0; + var o = (function(e3) { + function t3() { + var t4 = null !== e3 && e3.apply(this, arguments) || this; + return t4._value = null, t4._hasValue = false, t4._isComplete = false, t4; + } + return r2(t3, e3), t3.prototype._checkFinalizedStatuses = function(e4) { + var t4 = this, i3 = t4.hasError, n3 = t4._hasValue, r3 = t4._value, o2 = t4.thrownError, a = t4.isStopped, s = t4._isComplete; + i3 ? e4.error(o2) : (a || s) && (n3 && e4.next(r3), e4.complete()); + }, t3.prototype.next = function(e4) { + this.isStopped || (this._value = e4, this._hasValue = true); + }, t3.prototype.complete = function() { + var t4 = this, i3 = t4._hasValue, n3 = t4._value; + t4._isComplete || (this._isComplete = true, i3 && e3.prototype.next.call(this, n3), e3.prototype.complete.call(this)); + }, t3; + })(i2(76808).Subject); + t2.AsyncSubject = o; + }, 5138: (e2, t2, i2) => { + const n2 = i2(28730), { completeSurveyActionType: r2 } = i2(30801), o = i2(7401); + function a() { + Object.defineProperties(this, { _inviteBody: { writable: true }, _inviteSubject: { writable: true }, _targetAddressType: { writable: true }, _reminderBody: { writable: true }, _reminderSubject: { writable: true }, _targetAddress: { writable: true } }), a.baseConstructor.apply(this, arguments); + } + n2.extend(a, r2, true), Object.defineProperties(a.prototype, { pasteReIdOrRename: { value: function(e3) { + a._super.pasteReIdOrRename.apply(this, arguments), this.inviteBody.pasteReIdOrRename(e3), this.inviteSubject.pasteReIdOrRename(e3), this.targetAddressType.pasteReIdOrRename(e3), this.reminderBody.pasteReIdOrRename(e3), this.reminderSubject.pasteReIdOrRename(e3), this.targetAddress.pasteReIdOrRename(e3); + } }, pasteResolveOldToNewValues: { value: function(e3) { + a._super.pasteResolveOldToNewValues.apply(this, arguments), this.inviteBody.pasteResolveOldToNewValues(e3), this.inviteSubject.pasteResolveOldToNewValues(e3), this.targetAddressType.pasteResolveOldToNewValues(e3), this.reminderBody.pasteResolveOldToNewValues(e3), this.reminderSubject.pasteResolveOldToNewValues(e3), this.targetAddress.pasteResolveOldToNewValues(e3); + } }, inviteBody: { enumerable: true, get: function() { + return this._inviteBody; + }, set: function(e3) { + this._inviteBody = this.reviveItem(e3, o); + } }, inviteSubject: { enumerable: true, get: function() { + return this._inviteSubject; + }, set: function(e3) { + this._inviteSubject = this.reviveItem(e3, o); + } }, targetAddressType: { enumerable: true, get: function() { + return this._targetAddressType; + }, set: function(e3) { + this._targetAddressType = this.reviveItem(e3, o); + } }, reminderBody: { enumerable: true, get: function() { + return this._reminderBody; + }, set: function(e3) { + this._reminderBody = this.reviveItem(e3, o); + } }, reminderSubject: { enumerable: true, get: function() { + return this._reminderSubject; + }, set: function(e3) { + this._reminderSubject = this.reviveItem(e3, o); + } }, targetAddress: { enumerable: true, get: function() { + return this._targetAddress; + }, set: function(e3) { + this._targetAddress = this.reviveItem(e3, o); + } } }), e2.exports = a; + }, 5173: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.BaseFlowPreviewInstance = t2.previewStatus = void 0; + const n2 = i2(31635), r2 = i2(79364), o = n2.__importDefault(i2(92140)), a = n2.__importStar(i2(12847)), s = n2.__importStar(i2(68223)), l = i2(77886); + var u; + !(function(e3) { + e3.cancelled = "cancelled", e3.completed = "completed", e3.error = "error", e3.none = "none", e3.running = "running", e3.starting = "starting"; + })(u || (t2.previewStatus = u = {})), t2.BaseFlowPreviewInstance = class { + constructor() { + this._resetSubscriptions = true, this.status$ = new r2.BehaviorSubject(void 0), this.status = u.none; + } + get tag() { + return this._tag; + } + get status() { + return this.status$.value; + } + set status(e3) { + this.status$.next(e3); + } + get startDateTime() { + return this._startDateTime; + } + get previewedFlowInfo() { + return this._previewedFlowInfo; + } + get endDateTime() { + return this._endDateTime; + } + get flowId() { + return this._flowId; + } + get flowVersion() { + return this._flowVersion; + } + get flowType() { + return this._flowType; + } + get resetSubscriptions() { + return this._resetSubscriptions; + } + set resetSubscriptions(e3) { + this._resetSubscriptions = e3; + } + reset() { + try { + this._stopListeningForFlowInstanceEventData(); + } catch (e3) { + } + this._tag = void 0, this._previewedFlowInfo = void 0, this._flowVersion = void 0, this._flowId = void 0, this._startDateTime = void 0, this._endDateTime = void 0, this.status = u.none; + } + get previewInfoLogStr() { + return this.flowId ? this.tag ? `(flow id: '${this.flowId} / tag: '${this.tag}')` : `(flow id: '${this.flowId})` : this.tag ? `(tag: '${this.tag})` : ""; + } + startPreview(e3, t3, i3) { + return n2.__awaiter(this, void 0, void 0, function* () { + var n3, r3; + if (e3) return yield this.startPreviewForFlowInfo(e3, t3 ? null === (n3 = e3.info.debugVersion) || void 0 === n3 ? void 0 : n3.id : null === (r3 = e3.info.publishedVersion) || void 0 === r3 ? void 0 : r3.id, !!t3, i3); + }); + } + startPreviewForFlowInfo(e3, t3, i3, r3) { + return n2.__awaiter(this, void 0, void 0, function* () { + if (this.reset(), !this.supportsDebugPublishedPreview && i3) return a.error("previewer does not support debug"), void (this.status = u.error); + if (!this.supportsPublishedFlowPreview && !i3) return a.error("previewer does not support published"), void (this.status = u.error); + this.supportsPreviewPayload || o.default.isUndefined(r3) || (a.error("previewer does not support preview payloads. Caller is passing a payload. It will not be used for the preview."), r3 = void 0), this.status = u.starting; + try { + const n3 = yield this._startPreviewForFlowInfo(e3, t3, i3, r3); + if (n3) return this._flowId = e3.id, this._flowVersion = t3, this._flowType = e3.type, this._tag = n3, a.log(`preview - starting ${this.previewInfoLogStr}`), yield this._startListeningForFlowInstanceEventData(), this._startDateTime = /* @__PURE__ */ new Date(), this.status = u.running, a.log(`preview - running ${this.previewInfoLogStr}`), n3; + } catch (e4) { + } + this.reset(), this.status = u.error; + }); + } + _startPreviewForFlowInfo(e3, t3, i3, r3) { + return n2.__awaiter(this, void 0, void 0, function* () { + }); + } + get amPreviewing() { + switch (this.status) { + case u.starting: + case u.running: + return true; + } + return false; + } + get amDone() { + switch (this.status) { + case u.completed: + case u.error: + case u.cancelled: + return true; + } + return false; + } + get amPreviewingOrDone() { + return this.amPreviewing || this.amDone; + } + get canHaveOrHasFlowInstanceExecutionData() { + return !!this._notificationSubscriptionTopicId || !!this._previewedFlowInfo; + } + processFlowInstanceEventData(e3) { + if (e3) if (a.log(`preview - received flow instance data (flow '${this.flowId}')`), this._isFlowNotificationEventDataForThisPreview(this.tag, e3)) { + a.log(`preview - finishing up, flow instance data is for this preview ${this.previewInfoLogStr}`), this._endDateTime = /* @__PURE__ */ new Date(), this._previewedFlowInfo = e3, this.status = u.completed, this._stopListeningForFlowInstanceEventData(); + try { + this._processFlowInstanceEventData(e3); + } catch (e4) { + } + a.log(`preview - completed ${this.previewInfoLogStr}`); + } else a.log(`preview - still waiting, flow instance data is not for this preview ${this.previewInfoLogStr}`); + } + _startListeningForFlowInstanceEventData() { + return n2.__awaiter(this, void 0, void 0, function* () { + try { + const e3 = (0, l.getFlowInstancesTopic)(this.flowId); + this._notificationSubscriptionTopicId !== e3 ? (yield s.addSubscription(e3, "FlowInstanceEventDataController", (e4) => this.processFlowInstanceEventData(e4)), this._notificationSubscriptionTopicId = e3, a.log(`preview - notification subscription success (topic: '${this._notificationSubscriptionTopicId}')`)) : a.log(`preview - notification subscription already listening (topic: '${this._notificationSubscriptionTopicId}')`); + } catch (e3) { + a.warn(`preview - notification subscription unsuccessful (topic: '${this._notificationSubscriptionTopicId}', flow id: '${this.flowId}') - this often happens when trying to listen for flow instance data events for a flow in a division where you don't have the 'architect:flowInstance:view' permission.`); + } + }); + } + get notificationSubscriptionTopicId() { + return this._notificationSubscriptionTopicId; + } + get amListeningForNotifications() { + var e3; + return (null === (e3 = this._notificationSubscriptionTopicId) || void 0 === e3 ? void 0 : e3.length) > 0; + } + _processFlowInstanceEventData(e3) { + } + _stopListeningForFlowInstanceEventData() { + this.amListeningForNotifications && this.resetSubscriptions && (a.log(`preview - notification unsubscribe (topic: '${this._notificationSubscriptionTopicId}')`), s.removeSubscription(this.notificationSubscriptionTopicId, "FlowInstanceEventDataController"), this._notificationSubscriptionTopicId = void 0); + } + cancel() { + this.reset(); + } + }; + }, 5233: (e2, t2, i2) => { + function n2() { + this.id = void 0, this.integration = void 0, this.name = void 0, this.environments = void 0, this.languages = void 0, this.project = void 0, n2.baseConstructor.apply(this, arguments); + } + i2(45214).extend(n2, "DialogflowCxAgent"), Object.defineProperties(n2.prototype, { label: { get: function() { + return this.name; + }, set: function(e3) { + this.name = e3; + } } }), e2.exports = n2; + }, 5261: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.briefVoicemailFlowListManager = void 0; + const n2 = i2(31635).__importStar(i2(24032)), r2 = i2(70726), o = i2(96618), a = i2(27862); + class s extends r2.BriefFlowListManager { + get dependencyType() { + return a.VoicemailFlow; + } + constructor() { + super(), this.topic = n2.getTopic("BriefVoicemailFlowListManager"), this.additionalQueryParams = { type: o.flowTypes.flowTypeVoicemail }, this.className = "BriefVoicemailFlowListManager", this.flowType = o.flowTypes.flowTypeVoicemail, this._initialize(); + } + } + t2.briefVoicemailFlowListManager = new s(); + }, 5284: (e2) => { + e2.exports = { askCommon: { invalidInputReceived: "Hindi ito balido.", noInputReceived: "Hindi ako nakatanggap ng anumang input." }, askForBoolean: { noInput: 'Sabihin ang "oo" kung gusto mong magpatuloy o "hindi" kung ayaw mo.', noMatch: 'Mangyaring magsabi ng "oo" o "hindi". Gusto mo bang magpatuloy?', question: "Gusto mo bang magpatuloy?", noInputDigitalBot: 'Ilagay ang "Oo" kung gusto mong magpatuloy o "Hindi" kung hindi.', noMatchDigitalBot: 'Mangyaring ilagay ang "Oo" o "Hindi". Gusto mo bang magpatuloy?' }, askForIntent: { noInput: 'Magbigay lamang ng maikling pangungusap na naglalarawan sa katanungan mo. Halimbawa, "Tingnan ang balanse sa aking account"', noMatch: "Sabihin ulit sa akin kung ano ang gusto mong gawin.", question: "Ano ang gusto mong gawin?", noInputDigitalBot: 'Mangyaring maglagay ng maikling pangungusap na naglalarawan sa katanungan mo. Halimbawa, "Tingnan ang balanse sa aking account"' }, askForSlot: { askFor: "Humiling ng %1$s", noInput: "Mangyaring sabihin o ilagay ang (mangyaring ilagay ang pangalan ng slot mo dito).", noInputWithSlot: "Mangyaring sabihin o ilagay ang %1$s.", noMatch: "Mangyaring ibigay ulit sa akin ang (mangyaring ilagay ang pangalan ng slot mo dito).", noMatchWithSlot: "Mangyaring ibigay ulit sa akin ang %1$s.", question: "Ano ang (mangyaring ilagay ang pangalan ng slot mo dito)?", questionWithSlot: "Ano ang %1$s?", pleaseEnterSlotNameHere: "(mangyaring ilagay ang pangalan ng slot mo dito)", noInputDigitalBot: "Mangyaring ilagay ang (mangyaring ilagay ang pangalan ng slot mo dito).", noInputWithSlotDigitalBot: "Mangyaring ilagay ang %1$s.", continuationPromptWithSlot: "Nakakuha na ako ng {{Slot.%1$s}} sa ngayon, mangyaring magpatuloy." }, askForNextSlot: { noInput: 'Sabihin ang "oo" kung mayroon ka pang tanong, o "hindi" para tapusin ang tawag.', noMatch: 'Sabihin ang "oo" kung mayroon ka pang tanong, o "hindi" para tapusin ang sesyon.', question: "Mayroon pa ba akong ibang maitutulong sa iyo?", noInputDigitalBot: 'Ilagay ang "oo" kung mayroon ka pang tanong, o "hindi" para tapusin ang sesyon.', noMatchDigitalBot: 'Ilagay ang "oo" kung mayroon ka pang tanong, o "hindi" para tapusin ang sesyon.' }, askForPayment: { noInputDigitalBot: "Mangyaring ibigay ang iyong impormasyon sa pagbabayad upang makapagpatuloy.", noMatchDigitalBot: "Hindi ko naintindihan ang sagot mo. Mangyaring subukang muli." }, askForAuthentication: { noInputDigitalBot: "Mangyaring ibigay ang iyong impormasyon sa pagpapatotoo upang magpatuloy.", noMatchDigitalBot: "Hindi ko naintindihan ang sagot mo. Mangyaring subukang muli." }, askSurveyQuestion: { notApplicable: "Hindi Naaangkop", surveyAnswerOptionSequence: "Pindutin ang %1$s para sa '%2$s'.", surveyAnswerNotApplicableSequence: "Pindutin ang bituin para sa Hindi Naaangkop.", surveyAnswerNotApplicableWithQuestionSequence: "%1$s. Pindutin ang bituin para sa Hindi Naaangkop.", voiceSurveyNoInputText: "Mangyaring sagutin ang tanong.", voiceSurveyNoMatchText: "Hindi kita naintindihan." }, commonModule: { exitCommonModule: "Umalis sa Karaniwang Modyul" }, form: { noInputDigitalBot: "Mangyaring kumpletuhin ang form upang magpatuloy.", noMatchDigitalBot: "Mangyaring kumpletuhin ang form upang magpatuloy." }, messagingTemplate: { noInputDigitalBot: "Mangyaring pumili ng isa sa mga available na opsyon.", noMatchDigitalBot: "Mangyaring pumili ng isa sa mga available na opsyon." }, knowledgeSettings: { knowledgeAnswerHighlightFlowProgressionDefault: "Magpatuloy", knowledgeAnswerHighlightFullArticleDefault: "Tingnan ang Buong Artikulo", knowledgeInitialResponseMulti: "Para matulungan akong linawin ang iyong tunguhin, pumili ng isang numero mula sa sumusunod na listahan:", knowledgeInitialResponseMultiRetry: "Mangyaring pumili ng numero, halimbawa '1'.\nNarito muli ang listahan ng mga opsiyon:", knowledgeNoMatch: "Wala sa mga ito", knowledgeConfirmation: "Sinagot ba nito ang tanong mo?", knowledgeFollowup: "Sana ay nasagot ko ang tanong mo. Maaari kang magtanong ng kahit anong iba pang bagay na gusto mong malaman." }, noOverlay: { intent: { intentConfirmationStr1: "Parang gusto mong", intentConfirmationStr2: "Tama ba iyon?" }, youSaid: { youSaidConfirmationStr1: "Sabi mo", youSaidConfirmationStr2: "Tama ba iyon?", youSaidConfirmationStr1DigitalBot: "Inilagay mo ang" }, noInput: { noInputStr1: "Mangyaring sabihin o ilagay ang", noInputStr1DigitalBot: "Mangyaring ilagay ang" }, noMatch: { noMatchStr1: "Mangyaring ibigay sa akin ang" }, whatIs: { whatIsQuestionStr1: "Ano ang", whatIsQuestionStr2: "?" }, iGotContinuation: { iGotContinuationStr1: "Nakakuha ako ng", iGotContinuationStr2: "sa ngayon, mangyaring magpatuloy." } }, defaultCallFlowOne: "Default na Daloy ng Tawag", errorHandlingAgentEscalationConfirmation: "Gusto mong makipag-usap sa isang tagapayo. Tama ba iyon?", errorHandlingAgentEscalationHandover: "Sandali lang, pakiusap, at ililipat kita sa isang tao.", errorHandlingErrorEventHandover: "Paumanhin, nagkaroon ng error. Sandali lang, pakiusap, habang inililipat kita sa isang taong makakatulong sa iyo.", errorHandlingErrorEventHandoverVoiceSurvey: "Paumanhin, nagkaroon ng error. Paalam.", errorHandlingRecognitionEventHandover: "Paumanhin, nahihirapan akong intindihin ka. Sandali lang, pakiusap, habang inililipat kita sa isang taong makakatulong sa iyo.", errorHandlingRecognitionEventHandoverVoiceSurvey: "Paumanhin, nahihirapan akong intindihin ka. Paalam.", errorHandlingTTS: "Paumanhin, nagkaroon ng error. Mangyaring subukang muli ang iyong tawag.", initialGreetingTTS: "Kumusta, ito ang unang pagbati.", initialState: "Paunang Estado", initialBotState: "Default na Bot", initialDigitalBotState: "Unang Pagbati", initialSurveyBotState: "Survey Bot", intentConfirmation: "Parang gusto mong %1$s, tama ba iyon?", mainMenu: "Pangunahing Menu", mainMenuTTS: "Nasa Pangunahing Menu ka, pindutin ang 9 para magdiskonekta", mainTask: "Tungkulin", settingsConfirmationNoInputApology: "Paumanhin, hindi kita narinig. Mangyaring magsabi ng oo o hindi.", settingsConfirmationNoInputApologyDigitalBot: 'Paumanhin, wala akong natanggap na input mula sa iyo. Mangyaring ilagay ang "Oo" o "Hindi".', settingsConfirmationNoMatchApology: "Paumanhin, mangyaring magsabi ng oo o hindi.", settingsConfirmationNoMatchApologyDigitalBot: 'Paumanhin, mangyaring ilagay ang "Oo" o "Hindi".', settingsNoInputApology: "Paumanhin, hindi kita narinig.", settingsNoInputApologyDigitalBot: "Paumanhin, wala akong natanggap na input mula sa iyo.", settingsEndOfSessionMessageDigitalBot: "Matagal na akong walang balita sa 'yo, kaya isasara ko na itong chat na ito, bumalik ka na lang kung kailangan mo muli ng tulong ko. Salamat.", settingsNoMatchApology: "Paumanhin.", settingsNoToConfirmationApology: "Kasalanan ko.", periodicStateName: "Paulit-ulit na Estado" }; + }, 5362: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.zipAll = void 0; + var n2 = i2(11415), r2 = i2(80719); + t2.zipAll = function(e3) { + return r2.joinAllInternals(n2.zip, e3); + }; + }, 5410: (e2, t2, i2) => { + function n2() { + this.outcomeId = void 0, this.outcomeName = void 0, n2.baseConstructor.apply(this, arguments); + } + i2(28730).extend(n2, "BaseFlowOutcomeActionModel"), e2.exports = n2; + }, 5426: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.ServerActionSchemaCategoryReference = void 0; + const n2 = i2(31635).__importDefault(i2(92140)), r2 = i2(55867), o = i2(82185), a = i2(47957); + class s extends r2.BaseActionProperty { + constructor(e3, t3, i3) { + super(e3, t3), Object.defineProperties(e3, { supportsCategories: { value: true, writable: false }, categoryManager: { value: i3, writable: false }, setCategory: { value: (e4, t4) => { + t4 ? this.category = t4 : e4 ? n2.default.isString(e4.category) ? this.category = new o({ id: e4.category, name: e4.category }) : this.category = e4.category : this.category = ""; + } } }); + } + addClipboardDependencies(e3) { + super.addClipboardDependencies(e3); + } + get category() { + return this.action.model.category; + } + set category(e3) { + this.action.model.category = e3 ? new o(e3) : void 0; + } + get idValue() { + return this.action.model.category && this.action.model.category.id; + } + search(e3) { + super.search(e3); + const t3 = this.action.serverManager.getCategoryForAction(this.action.actionName, this.action.actionId); + e3.checkText(this.action, t3, a.bridgeServer.category); + } + static createCreateDetails(e3) { + return { create: (t3, i3) => new s(t3, i3, e3), getCreateClass: () => s, modelProperties: [] }; + } + } + t2.ServerActionSchemaCategoryReference = s; + }, 5430: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.initializeExpressions = function() { + _ || (c(), d(), l(), Promise.all([r2.getAuthenticatedPromise(), r2.bootstrapLanguageDataLoaded, r2.featureTogglesLoaded]).then(() => { + u(); + const e3 = o.default.getGlobalTypeGroup(); + if (e3) try { + e3.startupConnectedAndReady(s); + } catch (e4) { + p.exception(e4, "globalGroup.startupConnectedAndReady()"); + } + }), _ = true); + }; + const n2 = i2(31635), r2 = n2.__importStar(i2(74359)), o = n2.__importDefault(i2(65302)), a = i2(24032), { bootstrapService: s } = i2(16321), { categorizeFunctions: l } = i2(4308), { createBuilders: u } = i2(64832), { createFunctions: d } = i2(33527), { createGlobalTypes: c } = i2(19102), p = (0, a.getTopic)("expressionCoordinator"); + let _ = false; + }, 5455: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.subscribeOn = void 0; + var n2 = i2(65212); + t2.subscribeOn = function(e3, t3) { + return void 0 === t3 && (t3 = 0), n2.operate(function(i3, n3) { + n3.add(e3.schedule(function() { + return i3.subscribe(n3); + }, t3)); + }); + }; + }, 5478: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importDefault(i2(27203)), o = n2.__importDefault(i2(57606)), a = n2.__importDefault(i2(5730)), s = i2(47957), l = i2(3916); + class u extends a.default { + constructor(e3, t3) { + super(e3, t3); + } + _initializeDesignTime() { + super._initializeDesignTime(), this._createErrorSchema().properties.forEach((e3) => { + let t3 = this.errorBindings.items.find((t4) => t4.name === e3.name); + t3 || (t3 = l.createDataPairForSchemaProperty(this.errorBindings, e3), this.errorBindings.addItem(t3)), l.setExpressionWithSchemaProperty(t3.value, e3); + }); + } + _createErrorSchema() { + const e3 = new o.default({ properties: { errorType: { type: "string", description: s.errorSchema.errorTypeDescription }, errorMessage: { type: "string", description: s.errorSchema.errorMessageDescription } } }, false), t3 = this._getPossibleErrors(); + return t3 && t3.length && e3.setErrorTypeAllowableValues(t3.sort()), e3; + } + static get branchInfo() { + return r2.default.successFailure; + } + static get managedProperties() { + return [{ dataList: true, label: s.inputOutputList.failureOutputs, isOutput: true, property: "errorBindings", yamlOptions: u.createYamlOptions("errorBindings", (e3) => e3.setPropertyName("failureOutputs").setExportOrder(120)) }]; + } + _getPossibleErrors() { + return null; + } + } + u.className = "BaseFailureOutputsActionViewModel", t2.default = u; + }, 5482: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importDefault(i2(16434)), o = n2.__importDefault(i2(56549)), a = i2(96618), s = i2(71528); + class l extends r2.default { + constructor(e3) { + super(e3); + } + get _flowType() { + return a.flowTypes.flowTypeInboundEmail; + } + get displayTypeName() { + return "ArchFlowInboundEmail"; + } + get isArchFlowInboundEmail() { + return true; + } + loadResponseLibraryManager() { + return n2.__awaiter(this, void 0, void 0, function* () { + const e3 = yield o.default.loadAllItemsAsync(s.responseLibraryManager, "response library names", "name"); + this.logNote("found " + e3.length + " Response Libraries"); + }); + } + get settingsInboundEmailHandling() { + return this.coreFactory.createArchWrapper(this._coreFlowViewModel.inboundEmailSettings); + } + } + t2.default = l; + }, 5486: (e2, t2, i2) => { + "use strict"; + const n2 = i2(31635), r2 = n2.__importDefault(i2(942)), o = i2(80428), a = i2(26954), s = i2(84424), l = i2(12179), u = n2.__importDefault(i2(97891)), d = i2(47957); + class c extends r2.default { + constructor(e3, t3) { + super(e3.parentFlow, e3), this._loadModel(t3); + } + static get managedProperties() { + return r2.default.createManagedProperties({ searchFieldPropertyName: "findId", searchFieldOptionsCallback: (e3) => e3.facets.setLengthForUuid(), searchFieldLabel: d.findActions.findUser.idLabel, searchResultLabel: d.findActions.findUser.resultLabel, searchResultExpressionOptions: a.ExpressionTypeUserOptions.create(), searchResultItemType: o.expressionTypeNames.userQueue }); + } + } + c.info = u.default.createActionInfo({ actionClass: c, canBeInTask: true, helpTopic: l.helpTopics.actions.findUserById, modelClass: s.FindUserByIdActionModel, name: d.actions.findUserById, scriptingName: "ArchActionFindUserById" }), t2.A = c; + }, 5532: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = i2(96618), o = n2.__importDefault(i2(92140)), a = i2(55909), s = i2(33951), l = i2(27491), u = n2.__importStar(i2(9345)), d = new class { + constructor() { + this._builderPartDefinitions = {}, this._builderPartContainerDefinitions = {}; + } + get className() { + return "BuilderPartDefinitions"; + } + get isBuilderPartDefinitions() { + return true; + } + _getBuilderPartOrContainerPartDefinitions(e3, t3, i3, n3) { + const r3 = []; + return o.default.each(e3, function(e4) { + let a2 = !t3; + a2 || (o.default.isArray(t3) ? o.default.find(t3, (t4) => t4.isMatch(e4.resultExpressionType, u.settings.exact)) && (a2 = true) : a2 = t3.isMatch(e4.resultExpressionType, u.settings.exact)); + const s2 = o.default.isUndefined(o.default.find(e4.expressionDefs, (e5) => { + if (o.default.isArray(e5.requiredFuncOpOverloadIds) && e5.requiredFuncOpOverloadIds.length) return o.default.find(e5.requiredFuncOpOverloadIds, (e6) => !l.expressionDataService.expressionFuncOpsByOverloadId[e6].isAvailableForFlowType(i3)); + })); + !(a2 && s2 && e4.meetsFeatureRequirements) || n3 && !e4.isInCategory(n3) || i3 && !e4.isAvailableForFlowType(i3) || r3.push(e4); + }), r3; + } + getBuilderPartDefinitions(e3, t3, i3) { + return s.ParameterValidator.expectExpressionTypeOrTypes(e3, () => a.ParameterInfo.createFunctionParameter(this.className, "getBuilderPartDefinitions", "builderPartResultExpressionTypeOrTypesFilter"), true), s.ParameterValidator.expectString(t3, () => a.ParameterInfo.createFunctionParameter(this.className, "getBuilderPartDefinitions", "flowTypeFilter"), true), s.ParameterValidator.expectString(i3, () => a.ParameterInfo.createFunctionParameter(this.className, "getBuilderPartDefinitions", "builderCategoryIdFilter"), true), this._getBuilderPartOrContainerPartDefinitions(this._builderPartDefinitions, e3, t3, i3); + } + getBuilderPartContainerDefinitions(e3, t3, i3) { + return s.ParameterValidator.expectExpressionTypeOrTypes(e3, () => a.ParameterInfo.createFunctionParameter(this.className, "getBuilderPartContainerDefinitions", "builderPartResultExpressionTypeOrTypesFilter"), true), s.ParameterValidator.expectString(t3, () => a.ParameterInfo.createFunctionParameter(this.className, "getBuilderPartContainerDefinitions", "flowTypeFilter"), true), s.ParameterValidator.expectString(i3, () => a.ParameterInfo.createFunctionParameter(this.className, "getBuilderPartContainerDefinitions", "builderCategoryIdFilter"), true), this._getBuilderPartOrContainerPartDefinitions(this._builderPartContainerDefinitions, e3, t3, i3); + } + _getBuilderPartOrContainerPartDefById(e3, t3) { + return o.default.find(e3, function(e4) { + return e4.id === t3; + }); + } + getBuilderPartDefById(e3) { + return s.ParameterValidator.expectString(e3, () => a.ParameterInfo.createFunctionParameter(this.className, "getBuilderPartDefById", "builderPartDefId"), true), this._getBuilderPartOrContainerPartDefById(this._builderPartDefinitions, e3); + } + getBuilderPartContainerDefById(e3) { + return s.ParameterValidator.expectString(e3, () => a.ParameterInfo.createFunctionParameter(this.className, "getBuilderPartContainerDefById", "builderPartContainerDefId"), true), this._getBuilderPartOrContainerPartDefById(this._builderPartContainerDefinitions, e3); + } + addBuilderPartDef(e3) { + this._builderPartDefinitions[e3.id] = e3; + } + addBuilderPartContainerDef(e3) { + this._builderPartContainerDefinitions[e3.id] = e3; + } + getBuilderPartInfo() { + const e3 = []; + return Object.values(this._builderPartDefinitions).forEach((t3) => { + e3.push({ id: t3.id, name: t3.name, type: t3.resultExpressionType.displayString, flowTypes: r2.flowTypes.flowTypesAll.filter((e4) => t3.isAvailableForFlowType(e4, true)).join(", "), featureToggle: t3.requiredFeatureToggle, featureConfig: t3.requiredFeatureConfig, categories: t3.categories.join(", ") }); + }), e3; + } + logBuilderPartInfo() { + console.groupCollapsed("Builder parts"), console.table(this.getBuilderPartInfo()), console.groupEnd(); + } + }(); + t2.default = d; + }, 5578: (e2, t2, i2) => { + "use strict"; + const n2 = i2(31635), r2 = i2(21647), o = i2(81516), a = n2.__importDefault(i2(27203)), s = i2(12179), l = n2.__importDefault(i2(97891)), u = n2.__importDefault(i2(5478)), d = i2(80428), c = i2(62416), p = i2(47957); + class _ extends u.default { + constructor(e3, t3) { + super(e3.parentFlow, e3), this.externalId = null, this.externalResult = null, this._loadModel(t3); + } + static get branchInfo() { + return a.default.successFailure; + } + _getPossibleErrors() { + return c.getPromoteExternalContactFailureReasons; + } + static get managedProperties() { + return [{ label: p.commonExternalContact.nameLabel, options: o.ExpressionTypeStringOptions.create((e3) => e3.setAsInput().setIninTestingField("ExternalIdExpression").setDisableSpellcheck(true).setDefaultToExpression(true).facets.setMinLength(1)), property: "externalId", type: d.expressionTypeNames.string }, { label: p.commonExternalContact.externalContactResult, options: r2.ExpressionTypeComplexOptions.create((e3) => e3.setTypeIdentifier(d.expressionTypeNames.externalContact).setIninTestingField("ExternalContactExpression").setAsOutput().setAllowSecure(true)), property: "externalResult", type: d.expressionTypeNames.externalContact }]; + } + } + _.info = l.default.createActionInfo({ actionClass: _, canBeInTask: true, helpTopic: s.helpTopics.actions.promoteExternalContact, modelClass: i2(43346), name: p.actions.promoteExternalContact, scriptingName: "ArchActionPromoteExternalContact" }), t2.A = _; + }, 5587: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.dateTimeToDisplay = function(e3, t3 = "LL LTS", i3) { + return a.usingRegionalLocale() ? (i3 || (i3 = a.getRegionalLocale()), (function(e4, t4, i4) { + let n3; + switch (t4) { + case "LL": + n3 = { dateStyle: "long" }; + break; + case "l LT": + n3 = { dateStyle: "short", timeStyle: "short" }; + break; + case "LLLL": + n3 = { dateStyle: "full", timeStyle: "short" }; + break; + case "lll": + n3 = { dateStyle: "medium", timeStyle: "short" }; + break; + default: + n3 = { dateStyle: "long", timeStyle: "long" }; + } + try { + if ((o.default.isActualNumber(e4) || o.default.isStringActualNumber(e4)) && (e4 = s(e4)), Date.parse(e4)) { + const t5 = new Date(e4); + return Intl.DateTimeFormat(i4, n3).format(t5); + } + } catch (e5) { + console.error(e5); + } + return l(e4, t4); + })(e3, t3, i3)) : l(e3, t3); + }; + const n2 = i2(31635), r2 = n2.__importDefault(i2(95093)), o = n2.__importDefault(i2(92140)), a = n2.__importStar(i2(74359)); + function s(e3) { + let t3 = Number(e3); + return isNaN(t3) ? e3 : (t3 < 1e10 && (t3 *= 1e3), t3 += -1 * (/* @__PURE__ */ new Date()).getTimezoneOffset(), new Date(t3)); + } + function l(e3, t3) { + return (o.default.isActualNumber(e3) || o.default.isStringActualNumber(e3)) && (e3 = s(e3)), Date.parse(e3) ? (0, r2.default)(e3).format(t3) : e3; + } + }, 5700: (e2) => { + e2.exports = { askCommon: { invalidInputReceived: "\u0647\u0630\u0627 \u063A\u064A\u0631 \u0635\u0627\u0644\u062D.", noInputReceived: "\u0644\u0645 \u0623\u062A\u0644\u0642\u0649 \u0623\u064A \u0645\u062F\u062E\u0644\u0627\u062A." }, askForBoolean: { noInput: '\u0642\u0644 "\u0646\u0639\u0645" \u0625\u0630\u0627 \u0643\u0646\u062A \u062A\u0631\u064A\u062F \u0627\u0644\u0645\u062A\u0627\u0628\u0639\u0629 \u0623\u0648 "\u0644\u0627" \u0625\u0630\u0627 \u0644\u0645 \u062A\u0643\u0646 \u062A\u0631\u064A\u062F \u0627\u0644\u0645\u062A\u0627\u0628\u0639\u0629.', noMatch: '\u064A\u0631\u062C\u0649 \u0623\u0646 \u062A\u0642\u0648\u0644 "\u0646\u0639\u0645" \u0623\u0648 "\u0644\u0627". \u0647\u0644 \u062A\u0631\u064A\u062F \u0627\u0644\u0645\u062A\u0627\u0628\u0639\u0629\u061F', question: "\u0647\u0644 \u062A\u0631\u064A\u062F \u0627\u0644\u0645\u062A\u0627\u0628\u0639\u0629\u061F", noInputDigitalBot: '\u0623\u062F\u062E\u0644 "\u0646\u0639\u0645" \u0625\u0630\u0627 \u0643\u0646\u062A \u062A\u0631\u064A\u062F \u0627\u0644\u0645\u062A\u0627\u0628\u0639\u0629 \u0623\u0648 "\u0644\u0627" \u0625\u0630\u0627 \u0643\u0646\u062A \u0644\u0627 \u062A\u0631\u064A\u062F \u0627\u0644\u0645\u062A\u0627\u0628\u0639\u0629.', noMatchDigitalBot: '\u064A\u0631\u062C\u0649 \u0625\u062F\u062E\u0627\u0644 "\u0646\u0639\u0645" \u0623\u0648 "\u0644\u0627". \u0647\u0644 \u062A\u0631\u064A\u062F \u0627\u0644\u0645\u062A\u0627\u0628\u0639\u0629\u061F' }, askForIntent: { noInput: '\u062A\u062D\u062F\u062B \u0641\u0642\u0637 \u062C\u0645\u0644\u0629 \u0642\u0635\u064A\u0631\u0629 \u062A\u0635\u0641 \u0627\u0633\u062A\u0639\u0644\u0627\u0645\u0643. \u0639\u0644\u0649 \u0633\u0628\u064A\u0644 \u0627\u0644\u0645\u062B\u0627\u0644\u060C "\u062A\u062D\u0642\u0642 \u0645\u0646 \u0631\u0635\u064A\u062F \u062D\u0633\u0627\u0628\u064A"', noMatch: "\u0623\u062E\u0628\u0631\u0646\u064A \u0645\u0631\u0629 \u0623\u062E\u0631\u0649 \u0628\u0645\u0627 \u062A\u0631\u064A\u062F \u0641\u0639\u0644\u0647.", question: "\u0645\u0627 \u0627\u0644\u0630\u064A \u062A\u0648\u062F \u0641\u0639\u0644\u0647\u061F", noInputDigitalBot: '\u064A\u0631\u062C\u0649 \u0625\u062F\u062E\u0627\u0644 \u062C\u0645\u0644\u0629 \u0642\u0635\u064A\u0631\u0629 \u062A\u0635\u0641 \u0627\u0633\u062A\u0639\u0644\u0627\u0645\u0643. \u0639\u0644\u0649 \u0633\u0628\u064A\u0644 \u0627\u0644\u0645\u062B\u0627\u0644\u060C "\u062A\u062D\u0642\u0642 \u0645\u0646 \u0631\u0635\u064A\u062F \u062D\u0633\u0627\u0628\u064A"' }, askForSlot: { askFor: "\u0627\u0637\u0644\u0628 %1$s", noInput: "\u064A\u0631\u062C\u0649 \u0623\u0646 \u062A\u0642\u0648\u0644 \u0623\u0648 \u062A\u062F\u062E\u0644 (\u064A\u0631\u062C\u0649 \u0648\u0636\u0639 \u0627\u0633\u0645 \u0645\u0646\u0641\u0630\u0643 \u0647\u0646\u0627).", noInputWithSlot: "\u064A\u0631\u062C\u0649 \u0623\u0646 \u062A\u0642\u0648\u0644 \u0623\u0648 \u062A\u062F\u062E\u0644 %1$s.", noMatch: "\u064A\u0631\u062C\u0649 \u0625\u0639\u0637\u0627\u0626\u064A (\u064A\u0631\u062C\u0649 \u0625\u062F\u062E\u0627\u0644 \u0627\u0633\u0645 \u0645\u0646\u0641\u0630\u0643 \u0647\u0646\u0627) \u0645\u0631\u0629 \u0623\u062E\u0631\u0649.", noMatchWithSlot: "\u064A\u0631\u062C\u0649 \u0625\u0639\u0637\u0627\u0626\u064A %1$s \u0645\u0631\u0629 \u0623\u062E\u0631\u0649.", question: "\u0645\u0627 \u0647\u0648 (\u064A\u0631\u062C\u0649 \u0625\u062F\u062E\u0627\u0644 \u0627\u0633\u0645 \u0645\u0646\u0641\u0630\u0643 \u0647\u0646\u0627)\u061F", questionWithSlot: "\u0645\u0627 \u0647\u0648 %1$s\u061F", pleaseEnterSlotNameHere: "(\u064A\u0631\u062C\u0649 \u0648\u0636\u0639 \u0627\u0633\u0645 \u0645\u0646\u0641\u0630\u0643 \u0647\u0646\u0627)", noInputDigitalBot: "\u064A\u0631\u062C\u0649 \u0625\u062F\u062E\u0627\u0644 (\u064A\u0631\u062C\u0649 \u0648\u0636\u0639 \u0627\u0633\u0645 \u0645\u0646\u0641\u0630\u0643 \u0647\u0646\u0627).", noInputWithSlotDigitalBot: "\u064A\u0631\u062C\u0649 \u0625\u062F\u062E\u0627\u0644 %1$s.", continuationPromptWithSlot: "\u0644\u0642\u062F \u062D\u0635\u0644\u062A \u0639\u0644\u0649 {{Slot.%1$s}} \u062D\u062A\u0649 \u0627\u0644\u0622\u0646\u060C \u0623\u0631\u062C\u0648 \u0627\u0644\u0645\u062A\u0627\u0628\u0639\u0629." }, askForNextSlot: { noInput: '\u0642\u0644 "\u0646\u0639\u0645" \u0625\u0630\u0627 \u0643\u0627\u0646 \u0644\u062F\u064A\u0643 \u0627\u0633\u062A\u0639\u0644\u0627\u0645 \u0622\u062E\u0631\u060C \u0623\u0648 "\u0644\u0627" \u0644\u0625\u0646\u0647\u0627\u0621 \u0627\u0644\u0645\u0643\u0627\u0644\u0645\u0629.', noMatch: '\u0642\u0644 "\u0646\u0639\u0645" \u0625\u0630\u0627 \u0643\u0627\u0646 \u0644\u062F\u064A\u0643 \u0627\u0633\u062A\u0639\u0644\u0627\u0645 \u0622\u062E\u0631\u060C \u0623\u0648 "\u0644\u0627" \u0644\u0625\u0646\u0647\u0627\u0621 \u0627\u0644\u062C\u0644\u0633\u0629.', question: "\u0647\u0644 \u0647\u0646\u0627\u0643 \u0623\u064A \u0634\u064A\u0621 \u0622\u062E\u0631 \u0623\u0633\u062A\u0637\u064A\u0639 \u0645\u0633\u0627\u0639\u062F\u062A\u0643 \u0641\u064A\u0647\u061F", noInputDigitalBot: '\u0623\u062F\u062E\u0644 "\u0646\u0639\u0645" \u0625\u0630\u0627 \u0643\u0627\u0646 \u0644\u062F\u064A\u0643 \u0627\u0633\u062A\u0639\u0644\u0627\u0645 \u0622\u062E\u0631\u060C \u0623\u0648 "\u0644\u0627" \u0644\u0625\u0646\u0647\u0627\u0621 \u0627\u0644\u062C\u0644\u0633\u0629.', noMatchDigitalBot: '\u0623\u062F\u062E\u0644 "\u0646\u0639\u0645" \u0625\u0630\u0627 \u0643\u0627\u0646 \u0644\u062F\u064A\u0643 \u0627\u0633\u062A\u0639\u0644\u0627\u0645 \u0622\u062E\u0631\u060C \u0623\u0648 "\u0644\u0627" \u0644\u0625\u0646\u0647\u0627\u0621 \u0627\u0644\u062C\u0644\u0633\u0629.' }, askForPayment: { noInputDigitalBot: "\u064A\u064F\u0631\u062C\u0649 \u062A\u0642\u062F\u064A\u0645 \u0645\u0639\u0644\u0648\u0645\u0627\u062A \u0627\u0644\u062F\u0641\u0639 \u0627\u0644\u062E\u0627\u0635\u0629 \u0628\u0643 \u0644\u0644\u0645\u062A\u0627\u0628\u0639\u0629.", noMatchDigitalBot: "\u0644\u0645 \u0623\u0641\u0647\u0645 \u0631\u062F\u0643. \u062A\u064F\u0631\u062C\u0649 \u0625\u0639\u0627\u062F\u0629 \u0627\u0644\u0645\u062D\u0627\u0648\u0644\u0629." }, askForAuthentication: { noInputDigitalBot: "\u064A\u064F\u0631\u062C\u0649 \u062A\u0642\u062F\u064A\u0645 \u0645\u0639\u0644\u0648\u0645\u0627\u062A \u0627\u0644\u0645\u0635\u0627\u062F\u0642\u0629 \u0627\u0644\u062E\u0627\u0635\u0629 \u0628\u0643 \u0644\u0644\u0645\u062A\u0627\u0628\u0639\u0629.", noMatchDigitalBot: "\u0644\u0645 \u0623\u0641\u0647\u0645 \u0631\u062F\u0643. \u062A\u064F\u0631\u062C\u0649 \u0625\u0639\u0627\u062F\u0629 \u0627\u0644\u0645\u062D\u0627\u0648\u0644\u0629." }, askSurveyQuestion: { notApplicable: "\u063A\u064A\u0631 \u0642\u0627\u0628\u0644 \u0644\u0644\u062A\u0637\u0628\u064A\u0642", surveyAnswerOptionSequence: "\u0627\u0636\u063A\u0637 \u0639\u0644\u0649 %1$s \u0644\u0640 '%2$s'.", surveyAnswerNotApplicableSequence: "\u0627\u0636\u063A\u0637 \u0639\u0644\u0649 \u0639\u0644\u0627\u0645\u0629 \u0627\u0644\u0646\u062C\u0645\u0629 \u0644\u062A\u062D\u062F\u064A\u062F \u063A\u064A\u0631 \u0642\u0627\u0628\u0644 \u0644\u0644\u062A\u0637\u0628\u064A\u0642.", surveyAnswerNotApplicableWithQuestionSequence: "%1$s. \u0627\u0636\u063A\u0637 \u0639\u0644\u0649 \u0639\u0644\u0627\u0645\u0629 \u0627\u0644\u0646\u062C\u0645\u0629 \u0644\u062A\u062D\u062F\u064A\u062F \u063A\u064A\u0631 \u0642\u0627\u0628\u0644 \u0644\u0644\u062A\u0637\u0628\u064A\u0642.", voiceSurveyNoInputText: "\u064A\u064F\u0631\u062C\u0649 \u0627\u0644\u0625\u062C\u0627\u0628\u0629 \u0639\u0646 \u0627\u0644\u0633\u0624\u0627\u0644.", voiceSurveyNoMatchText: "\u0644\u0645 \u0623\u0641\u0647\u0645." }, commonModule: { exitCommonModule: "\u062E\u0631\u0648\u062C \u0645\u0646 \u0627\u0644\u0648\u062D\u062F\u0629 \u0627\u0644\u0645\u0634\u062A\u0631\u0643\u0629" }, form: { noInputDigitalBot: "\u064A\u064F\u0631\u062C\u0649 \u0625\u0643\u0645\u0627\u0644 \u0627\u0644\u0646\u0645\u0648\u0630\u062C \u0644\u0644\u0645\u062A\u0627\u0628\u0639\u0629.", noMatchDigitalBot: "\u064A\u064F\u0631\u062C\u0649 \u0625\u0643\u0645\u0627\u0644 \u0627\u0644\u0646\u0645\u0648\u0630\u062C \u0644\u0644\u0645\u062A\u0627\u0628\u0639\u0629." }, messagingTemplate: { noInputDigitalBot: "\u064A\u064F\u0631\u062C\u064A \u062A\u062D\u062F\u064A\u062F \u0623\u062D\u062F \u0627\u0644\u062E\u064A\u0627\u0631\u0627\u062A \u0627\u0644\u0645\u062A\u0648\u0641\u0631\u0629.", noMatchDigitalBot: "\u064A\u064F\u0631\u062C\u064A \u062A\u062D\u062F\u064A\u062F \u0623\u062D\u062F \u0627\u0644\u062E\u064A\u0627\u0631\u0627\u062A \u0627\u0644\u0645\u062A\u0648\u0641\u0631\u0629." }, knowledgeSettings: { knowledgeAnswerHighlightFlowProgressionDefault: "\u0645\u062A\u0627\u0628\u0639\u0629", knowledgeAnswerHighlightFullArticleDefault: "\u0639\u0631\u0636 \u0627\u0644\u0645\u0642\u0627\u0644\u0629 \u0627\u0644\u0643\u0627\u0645\u0644\u0629", knowledgeInitialResponseMulti: "\u0644\u0645\u0633\u0627\u0639\u062F\u062A\u064A \u0641\u064A \u062A\u0648\u0636\u064A\u062D \u0647\u062F\u0641\u0643\u060C \u064A\u0631\u062C\u0649 \u0627\u062E\u062A\u064A\u0627\u0631 \u0631\u0642\u0645 \u0645\u0646 \u0627\u0644\u0642\u0627\u0626\u0645\u0629 \u0627\u0644\u062A\u0627\u0644\u064A\u0629:", knowledgeInitialResponseMultiRetry: "\u064A\u0631\u062C\u0649 \u0627\u062E\u062A\u064A\u0627\u0631 \u0631\u0642\u0645\u060C \u0639\u0644\u0649 \u0633\u0628\u064A\u0644 \u0627\u0644\u0645\u062B\u0627\u0644 '1'.\n\u0625\u0644\u064A\u0643 \u0642\u0627\u0626\u0645\u0629 \u0627\u0644\u062E\u064A\u0627\u0631\u0627\u062A \u0645\u0631\u0629 \u0623\u062E\u0631\u0649:", knowledgeNoMatch: "\u0644\u0627 \u0634\u064A\u0621 \u0645\u0646 \u0630\u0644\u0643", knowledgeConfirmation: "\u0647\u0644 \u0623\u062C\u0627\u0628 \u0647\u0630\u0627 \u0639\u0644\u0649 \u0633\u0624\u0627\u0644\u0643\u061F", knowledgeFollowup: "\u0623\u0631\u062C\u0648 \u0623\u0646 \u0623\u0643\u0648\u0646 \u0642\u062F \u0623\u062C\u0628\u062A \u0639\u0644\u0649 \u0633\u0624\u0627\u0644\u0643. \u064A\u0645\u0643\u0646\u0643 \u0627\u0644\u0633\u0624\u0627\u0644 \u0639\u0646 \u0623\u064A \u0634\u064A\u0621 \u0622\u062E\u0631 \u0642\u062F \u062A\u0631\u064A\u062F \u0645\u0639\u0631\u0641\u0629 \u0627\u0644\u0645\u0632\u064A\u062F \u0639\u0646\u0647." }, noOverlay: { intent: { intentConfirmationStr1: "\u0623\u0639\u062A\u0642\u062F \u0623\u0646\u0646\u064A \u0623\u0631\u064A\u062F", intentConfirmationStr2: "\u0647\u0644 \u0647\u0630\u0627 \u0635\u062D\u064A\u062D\u061F" }, youSaid: { youSaidConfirmationStr1: "\u0642\u0644\u062A", youSaidConfirmationStr2: "\u0647\u0644 \u0647\u0630\u0627 \u0635\u062D\u064A\u062D\u061F?", youSaidConfirmationStr1DigitalBot: "\u0623\u062F\u062E\u0644\u062A" }, noInput: { noInputStr1: "\u064A\u0631\u062C\u0649 \u0623\u0646 \u062A\u0642\u0648\u0644 \u0623\u0648 \u062A\u062F\u062E\u0644", noInputStr1DigitalBot: "\u064A\u0631\u062C\u0649 \u0625\u062F\u062E\u0627\u0644" }, noMatch: { noMatchStr1: "\u064A\u0631\u062C\u0649 \u0625\u0639\u0637\u0627\u0626\u064A" }, whatIs: { whatIsQuestionStr1: "\u0645\u0627 \u0647\u0648", whatIsQuestionStr2: "\u061F" }, iGotContinuation: { iGotContinuationStr1: "\u0644\u0642\u062F \u062D\u0635\u0644\u062A", iGotContinuationStr2: "\u062D\u062A\u0649 \u0627\u0644\u0622\u0646\u060C \u0623\u0631\u062C\u0648 \u0627\u0644\u0645\u062A\u0627\u0628\u0639\u0629." } }, defaultCallFlowOne: "\u062A\u062F\u0641\u0642 \u0627\u0644\u0645\u0643\u0627\u0644\u0645\u0627\u062A \u0627\u0644\u0627\u0641\u062A\u0631\u0627\u0636\u064A", errorHandlingAgentEscalationConfirmation: "\u062A\u0631\u064A\u062F \u0627\u0644\u062A\u062D\u062F\u062B \u0625\u0644\u0649 \u0645\u0633\u062A\u0634\u0627\u0631. \u0647\u0644 \u0647\u0630\u0627 \u0635\u062D\u064A\u062D\u061F", errorHandlingAgentEscalationHandover: "\u0644\u062D\u0638\u0629 \u0645\u0646 \u0641\u0636\u0644\u0643\u060C \u0648\u0633\u0648\u0641 \u0623\u0648\u0635\u0644\u0643 \u0628\u0634\u062E\u0635 \u0645\u0627.", errorHandlingErrorEventHandover: "\u0645\u0639\u0630\u0631\u0629\u060C \u062D\u062F\u062B \u062E\u0637\u0623. \u0644\u062D\u0638\u0629 \u0645\u0646 \u0641\u0636\u0644\u0643 \u0628\u064A\u0646\u0645\u0627 \u0623\u0648\u0635\u0644\u0643 \u0628\u0634\u062E\u0635 \u0645\u0627 \u064A\u0633\u062A\u0637\u064A\u0639 \u0645\u0633\u0627\u0639\u062F\u062A\u0643.", errorHandlingErrorEventHandoverVoiceSurvey: "\u0639\u0630\u0631\u064B\u0627\u060C \u062D\u062F\u062B \u062E\u0637\u0623. \u0645\u0639 \u0627\u0644\u0633\u0644\u0627\u0645\u0629.", errorHandlingRecognitionEventHandover: "\u0645\u0639\u0630\u0631\u0629\u060C \u0623\u0648\u0627\u062C\u0647 \u0645\u0634\u0643\u0644\u0629 \u0641\u064A \u0641\u0647\u0645\u0643. \u0644\u062D\u0638\u0629 \u0645\u0646 \u0641\u0636\u0644\u0643 \u0648\u0633\u0648\u0641 \u0623\u0648\u0635\u0644\u0643 \u0628\u0634\u062E\u0635 \u0645\u0627 \u064A\u0633\u062A\u0637\u064A\u0639 \u0645\u0633\u0627\u0639\u062F\u062A\u0643.", errorHandlingRecognitionEventHandoverVoiceSurvey: "\u0639\u0630\u0631\u064B\u0627\u060C \u0644\u0627 \u0623\u0633\u062A\u0637\u064A\u0639 \u0641\u0647\u0645\u0643. \u0645\u0639 \u0627\u0644\u0633\u0644\u0627\u0645\u0629.", errorHandlingTTS: "\u0645\u0639\u0630\u0631\u0629\u060C \u062D\u062F\u062B \u062E\u0637\u0623. \u064A\u0631\u062C\u0649 \u0627\u0644\u0645\u062D\u0627\u0648\u0644\u0629 \u0645\u0631\u0629 \u0623\u062E\u0631\u0649.", initialGreetingTTS: "\u0645\u0631\u062D\u0628\u064B\u0627\u060C \u0647\u0630\u0647 \u0647\u064A \u0627\u0644\u062A\u062D\u064A\u0629 \u0627\u0644\u0623\u0648\u0644\u064A\u0629.", initialState: "\u0627\u0644\u062D\u0627\u0644\u0629 \u0627\u0644\u0623\u0648\u0644\u064A\u0629", initialBotState: "\u0627\u0644\u0631\u0648\u0628\u0648\u062A \u0627\u0644\u0627\u0641\u062A\u0631\u0627\u0636\u064A", initialDigitalBotState: "\u0627\u0644\u062A\u062D\u064A\u0629 \u0627\u0644\u0623\u0648\u0644\u064A\u0629", initialSurveyBotState: "\u0631\u0648\u0628\u0648\u062A \u0627\u0644\u0627\u0633\u062A\u0628\u064A\u0627\u0646", intentConfirmation: "\u0623\u0639\u062A\u0642\u062F \u0623\u0646\u0643 \u062A\u0631\u064A\u062F %1$s, \u0647\u0644 \u0647\u0630\u0627 \u0635\u062D\u064A\u062D\u061F", mainMenu: "\u0627\u0644\u0642\u0627\u0626\u0645\u0629 \u0627\u0644\u0631\u0626\u064A\u0633\u064A\u0629", mainMenuTTS: "\u0623\u0646\u062A \u0641\u064A \u0627\u0644\u0642\u0627\u0626\u0645\u0629 \u0627\u0644\u0631\u0626\u064A\u0633\u064A\u0629\u060C \u064A\u0631\u062C\u0649 \u0627\u0644\u0636\u063A\u0637 \u0639\u0644\u0649 9 \u0644\u0644\u0625\u0646\u0647\u0627\u0621", mainTask: "\u0627\u0644\u0645\u0647\u0645\u0629", settingsConfirmationNoInputApology: "\u0645\u0639\u0630\u0631\u0629\u060C \u0644\u0645 \u0623\u0633\u0645\u0639\u0643. \u064A\u0631\u062C\u0649 \u0627\u0644\u0646\u0637\u0642 \u0628\u0643\u0644\u0645\u0629 \u0646\u0639\u0645 \u0623\u0648 \u0644\u0627.", settingsConfirmationNoInputApologyDigitalBot: '\u0645\u0639\u0630\u0631\u0629\u060C \u0644\u0645 \u0623\u0633\u062A\u0644\u0645 \u0631\u062F\u064B\u0627 \u0645\u0646\u0643. \u064A\u0631\u062C\u0649 \u0625\u062F\u062E\u0627\u0644 "\u0646\u0639\u0645" \u0623\u0648 "\u0644\u0627".', settingsConfirmationNoMatchApology: "\u0645\u0639\u0630\u0631\u0629\u060C \u064A\u0631\u062C\u0649 \u0623\u0646 \u062A\u0642\u0648\u0644 \u0646\u0639\u0645 \u0623\u0648 \u0644\u0627.", settingsConfirmationNoMatchApologyDigitalBot: '\u0645\u0639\u0630\u0631\u0629\u060C \u064A\u0631\u062C\u0649 \u0625\u062F\u062E\u0627\u0644 "\u0646\u0639\u0645" \u0623\u0648 "\u0644\u0627".', settingsNoInputApology: "\u0645\u0639\u0630\u0631\u0629\u060C \u0644\u0645 \u0623\u0633\u0645\u0639\u0643.", settingsNoInputApologyDigitalBot: "\u0645\u0639\u0630\u0631\u0629\u060C \u0644\u0645 \u0623\u062A\u0644\u0642 \u0631\u062F\u064B\u0627 \u0645\u0646\u0643.", settingsEndOfSessionMessageDigitalBot: "\u0644\u0645 \u0623\u0633\u0645\u0639 \u0645\u0646\u0643 \u0645\u0646\u0630 \u0641\u062A\u0631\u0629\u060C \u0644\u0630\u0627 \u0633\u0623\u063A\u0644\u0642 \u0627\u0644\u062F\u0631\u062F\u0634\u0629\u060C \u064A\u0631\u062C\u0649 \u0627\u0644\u0631\u062C\u0648\u0639 \u0645\u0631\u0629 \u0623\u062E\u0631\u0649 \u0625\u0630\u0627 \u0643\u0646\u062A \u062A\u0631\u064A\u062F \u0627\u0644\u0645\u0633\u0627\u0639\u062F\u0629 \u062B\u0627\u0646\u064A\u0629. \u0634\u0643\u0631\u064B\u0627 \u0644\u0643.", settingsNoMatchApology: "\u0645\u0639\u0630\u0631\u0629.", settingsNoToConfirmationApology: "\u062E\u0637\u0626\u064A.", periodicStateName: "\u0627\u0644\u062D\u0627\u0644\u0629 \u0627\u0644\u0645\u062A\u0643\u0631\u0631\u0629" }; + }, 5717: (e2, t2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.noop = void 0, t2.noop = function() { + }; + }, 5730: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.isAction = function(e3) { + return null == e3 ? void 0 : e3.isAction; + }; + const n2 = i2(31635), r2 = n2.__importDefault(i2(92140)), o = n2.__importStar(i2(12847)), a = n2.__importStar(i2(17498)), s = n2.__importStar(i2(36781)), l = n2.__importStar(i2(99434)), u = n2.__importStar(i2(27099)), d = n2.__importStar(i2(71314)), c = n2.__importStar(i2(58380)), p = n2.__importStar(i2(66381)), _ = n2.__importStar(i2(98442)), h = n2.__importStar(i2(24032)), m = n2.__importStar(i2(48565)), g = i2(12457), f = i2(84464), T = n2.__importDefault(i2(33667)), y = n2.__importDefault(i2(41197)), S = i2(96618), A = i2(50474), N = i2(26847), O = i2(17604), I = n2.__importDefault(i2(41510)), v = i2(30801), C = n2.__importDefault(i2(59805)), b = n2.__importDefault(i2(22917)), E = i2(60137), R = i2(57141), w = i2(11276), D = i2(47957); + class P extends y.default { + constructor(e3, t3) { + super(e3, t3), this._isDisabled = false, this._generatedAudioExpressions = [], this.branches = [], this.managedPropertyViewModels = {}, this.optionalBranchInfo = [], this.previousAction = void 0, this.allBranchesTerminate = false, this.terminatesTaskOrFlow = false, this._terminatingLabel = void 0, this.hasBranchTerminatingWithEndTask = false, this.terminatesLoop = false, this.editor_testing_tag = null, (null == e3 ? void 0 : e3.isFlowViewModel) || o.error(`invalid parentFlowViewModel - id: ${null == e3 ? void 0 : e3.id} - className: ${null == e3 ? void 0 : e3.className}`), (null == t3 ? void 0 : t3.isMenuChoice) || (null == t3 ? void 0 : t3.isActionContainerViewModel) || o.error(`invalid parent - id: ${null == t3 ? void 0 : t3.id} - className: ${null == t3 ? void 0 : t3.className}`), this._setTopParent(); + } + _loadModel(e3) { + e3 ? (super._loadModel(e3), this.uiMetaData ? r2.default.isBoolean(this.collapsed) || (this.collapsed = false) : this.uiMetaData = { collapsed: false }, m.registerNode(this), this._overrideProperties(), w.loadBranches(this), this.updateDependencies(), this.info && this.info.actionIsAlwaysSecure && this.setAlwaysSecure(), f.actionRegistrationService.registerItem(this), this.updateTraceTopic()) : this.uiMetaData = { collapsed: false }; + } + get amObjectEventSink() { + return false; + } + get amObjectEventEmitter() { + return true; + } + static get branchInfo() { + return []; + } + get branchInfos() { + return this.constructor.branchInfo; + } + get branchInfoList() { + return r2.default.union(this.branchInfos, this.optionalBranchInfo); + } + get isBaseAction() { + return true; + } + get category() { + return this.info.category; + } + get canCollapse() { + return !!this.topParent.isTaskLike; + } + get collapsed() { + return this.uiMetaData || (this.uiMetaData = { collapsed: false }), this.uiMetaData.collapsed; + } + set collapsed(e3) { + this.uiMetaData ? this.uiMetaData.collapsed = e3 : this.uiMetaData = { collapsed: e3 }, s.emitter.emit(s.collapseExpand, this); + } + collapse(e3) { + return this.expandOrCollapse(true, e3); + } + static createYamlOptions(e3, t3) { + var i3; + let n3 = (null === (i3 = this.info) || void 0 === i3 ? void 0 : i3.typeId) || this.className; + return n3 || (console.error(`No unique static class name found for action constructor with name '${this.name}'`), n3 = this.name), b.default.create(n3 + e3, t3); + } + expand(e3) { + return this.expandOrCollapse(false, e3); + } + expandOrCollapse(e3, t3) { + let i3 = false; + if (this.uiMetaData ? this.collapsed !== e3 && (this.collapsed = e3, i3 = true) : (this.uiMetaData = { collapsed: e3 }, i3 = true), t3) { + const t4 = this.parent; + t4 && r2.default.isFunction(t4.expandOrCollapse) && t4.expandOrCollapse(e3, true) && (i3 = true); + } + return i3; + } + _getDetailsForManagedProperty(e3, t3) { + var i3; + if (r2.default.isFunction(e3.getDetailDescription)) { + const t4 = e3.getDetailDescription(); + if (t4) return t4; + } else if (e3.isAudioViewModel) { + const t4 = e3.getDescription(); + if (t4) return { label: e3.label, value: t4 }; + } else if (e3.isExpression) { + const t4 = e3.isNoValueMode && e3.defaultExpression ? e3.defaultExpression : e3, i4 = l.getDisplayText(t4); + if (i4) return { label: t4.label, value: i4 }; + } else if (e3.isDataPairList) ; + else if (e3.isNameValuePairViewModel) { + let n3, r3; + if (r3 = this.wrapWithBrackets(l.getDisplayText(e3.expression), e3.expression.isBuilderMode), n3 = this.wrapWithBrackets(l.getDisplayText(e3.name), e3.name.isBuilderMode), e3.expression.isOutput || (null === (i3 = e3.expression.options) || void 0 === i3 ? void 0 : i3.allowModeVariable)) { + const e4 = n3; + n3 = r3, r3 = e4; + } + return { label: `${t3 + 1}`, value: (0, O.sprintf)(I.default.updateVariables.labelValue, n3, r3) }; + } + } + wrapWithBrackets(e3, t3) { + return t3 ? `<${e3}>` : e3; + } + getDetails() { + return this.getDetailsForProperties(Object.values(this.managedPropertyViewModels)); + } + getDetailsForProperties(e3) { + const t3 = r2.default.chain(e3).sortBy("label").sortBy((e4) => e4.options && e4.options.uiPropertyOrder ? e4.options.uiPropertyOrder : e4.metaData && e4.metaData.uiPropertyOrder ? e4.metaData.uiPropertyOrder : void 0).reduce((e4, t4) => { + if (3 === e4.labels.length) return e4; + if (t4.outOfService) return e4; + if (t4.isNoValueMode && !t4.defaultExpression) return e4; + let i3; + return i3 = t4.isExpressionList ? t4.expressions : t4.isNameValuePairs ? t4.items : [t4], i3.forEach((t5, i4) => { + if (3 === e4.labels.length) return; + const n3 = this._getDetailsForManagedProperty(t5, i4); + n3 && (e4.labels.push(n3.label), e4.values.push(n3.value)); + }), e4; + }, { labels: [], values: [] }).value(); + return new g.ActionDetails(t3.labels, t3.values); + } + getNodeToNavigateToOnDelete() { + return this.previousAction && !this.previousAction.isDestroyed ? this.previousAction : this.nextAction && !this.nextAction.isDestroyed ? this.nextAction : this.parent.isTaskLike ? null : this.parent.parent && !this.parent.parent.isDestroyed ? this.parent.parent : null; + } + get hasChildren() { + for (let e3 = 0; e3 < this.branches.length; e3++) if (this.branches[e3].children.length > 0) return true; + return false; + } + get id() { + return this.model.id; + } + get isDisabled() { + return this._isDisabled; + } + set isDisabled(e3) { + e3 !== this._isDisabled && (this._isDisabled = !!e3, r2.default.each(this.branches, function(e4) { + e4.isDisabled = this._isDisabled; + }.bind(this))); + } + get isSingleBranchAction() { + return this.isLoopAction || this.isLoopUntilAction; + } + get isReadOnly() { + return !this.parentFlow.info.currentUserCanEdit; + } + getDisplayName() { + return this.name || (this.info ? this.info.name : ""); + } + get nextAction() { + return this._nextAction; + } + set nextAction(e3) { + e3 ? (this.model.nextAction = e3.id, this._nextAction = e3) : (this.model.nextAction = void 0, this._nextAction = null); + } + _overrideProperties() { + r2.default.each(P.getManagedProperties(this), function(e3) { + const t3 = (0, T.default)(this, e3); + t3 && (this.managedPropertyViewModels[e3.property] = t3, a.registerExpression(t3), e3.generatedPromptsDetails && (t3.__isGeneratedPrompt = true, this._generatedAudioExpressions.push(r2.default.extend({ expression: t3, audioSequencer: new E(this, t3, e3.generatedPromptsDetails.sequenceDefinition) }, e3.generatedPromptsDetails)))); + }.bind(this)); + } + addClipboardDependencies(e3) { + e3.copyCutProcessActionViewModel(this), r2.default.each(this.managedPropertyViewModels, function(t3) { + t3.addClipboardDependencies(e3); + }.bind(this)), r2.default.each(this.branches, function(t3) { + t3.addClipboardDependencies(e3); + }.bind(this)); + } + addOptionalBranchInfo(e3, t3) { + if (e3 && (this.optionalBranchInfo.push(e3), !t3)) return this._addBranch(e3); + } + sortBranches() { + let e3 = false; + this.branchInfos.forEach((t3) => { + const i3 = this.branches.findIndex((e4) => e4.id === t3.outputId); + i3 >= 0 && i3 !== this.branches.length && (this.branches.push(this.branches.splice(i3, 1)[0]), this.model.paths.push(this.model.paths.splice(i3, 1)[0]), e3 = true); + }), e3 && s.emitter.emit(s.branchesChanged); + } + removeOptionalBranchInfoById(e3, t3) { + const i3 = r2.default.findIndex(this.optionalBranchInfo, { outputId: e3 }); + if (i3 < 0) return; + const n3 = this.optionalBranchInfo[i3]; + this.optionalBranchInfo.splice(i3, 1), t3 || this._removeBranch(n3); + } + removeOptionalBranchInfoByLabel(e3) { + const t3 = this.getOptionalBranchInfoIndexByLabel(e3); + if (t3 < 0) return; + const i3 = this.optionalBranchInfo[t3]; + this.optionalBranchInfo.splice(t3, 1), this._removeBranch(i3); + } + get className() { + return "BaseActionViewModel"; + } + getYamlOptionsMap() { + const e3 = { name: b.default.create() }; + return r2.default.each(P.getManagedProperties(this), (t3) => { + r2.default.isArray(t3.supportedFlowTypes) && !r2.default.some(this.parentFlow.destinationFlowTypes, (e4) => t3.supportedFlowTypes.includes(e4)) || (e3[t3.property] = t3.yamlOptions || b.default.create(), t3.deprecatedYamlOptions && (e3[this.deprecatedViewModelMarker + t3.property] = t3.deprecatedYamlOptions)); + }), e3; + } + getBranch(e3) { + return r2.default.findWhere(this.branches, { id: e3 }); + } + setBranchOutOfService(e3, t3) { + const i3 = this.getBranch(e3); + return !!i3 && (i3.outOfService = !!r2.default.isUndefined(t3) || t3, true); + } + getBranchByLabel(e3, t3) { + return t3 ? r2.default.find(this.branches, function(t4) { + return t4.label === e3 && "__" !== t4.id.substring(0, 2); + }) : r2.default.findWhere(this.branches, { label: e3 }); + } + getOptionalBranchInfoIndexByLabel(e3) { + return r2.default.findIndex(this.optionalBranchInfo, { label: e3 }); + } + getOptionalBranchInfo(e3) { + if (e3) return r2.default.find(this.optionalBranchInfo, function(t3) { + return t3.outputId === e3; + }); + } + getBranchInfo(e3) { + if (e3) return r2.default.find(this.branchInfos, function(t3) { + return t3.outputId === e3; + }) || r2.default.find(this.optionalBranchInfo, function(t3) { + return t3.outputId === e3; + }); + } + _initializeDesignTime() { + r2.default.each(this.managedPropertyViewModels, function(e3) { + r2.default.isFunction(e3.initializeDesignTime) && e3.initializeDesignTime(); + }), r2.default.each(this.branches, (e3) => e3.initializeDesignTime()), this.generateAudioExpression(), super._initializeDesignTime(); + } + propertyChanged(e3) { + r2.default.each(this._generatedAudioExpressions, function(t3) { + this.parentFlow.loaded && r2.default.find(t3.dependentProperties, function(t4) { + return e3.isExpression && e3.propertyName ? e3.propertyName === t4 : this[t4] === e3; + }.bind(this)) && this.generateAudioExpression(t3); + }.bind(this)); + } + search(e3) { + e3.checkId(this, this.id, this.name), e3.checkTrackingId(this, this.trackingId, this.name); + const t3 = this.info.name; + e3.checkName(this, t3, D.action.action) || e3.checkName(this, this.name, D.action.action), r2.default.each(this.managedPropertyViewModels, function(t4) { + e3.addToQueue(t4); + }.bind(this)); + } + get terminationInfo() { + return this.info.getTerminationInfo(this.parentFlow.type); + } + get doesTerminate() { + return this.parentFlow.destinationFlowTypes.every((e3) => this.info.getTerminationInfo(e3).doesTerminate); + } + _resetParent(e3) { + super._resetParent(e3), this._topParent = this._getTopParent(); + } + _getTopParent() { + var e3, t3, i3, n3; + let r3 = null !== (t3 = null === (e3 = this.parent) || void 0 === e3 ? void 0 : e3.topParent) && void 0 !== t3 ? t3 : this.parent; + for (; r3 && !r3.isTaskLike && !r3.isMenuChoice; ) o.error("topParent check fired unexpectedly"), r3 = null !== (n3 = null === (i3 = r3.parent) || void 0 === i3 ? void 0 : i3.topParent) && void 0 !== n3 ? n3 : r3.parent; + return r3; + } + _setTopParent() { + this._topParent = this._getTopParent(); + } + get topParent() { + return this._topParent; + } + get trackingId() { + return this.model.trackingId; + } + set trackingId(e3) { + this.model.trackingId = e3, this.updateTraceTopic(); + } + get uiMetaData() { + return this.model.uiMetaData; + } + set uiMetaData(e3) { + this.model.uiMetaData = e3; + } + destroyChildren() { + delete this.menu, delete this.task, this.hasValidationWarning = false, this.hasValidationError = false; + for (let e3 = this.branches.length - 1; e3 >= 0; e3--) { + const t3 = this.branches[e3]; + try { + t3 && r2.default.isFunction(t3.destroy) && !t3.isDestroyedOrDestroying && t3.destroy(); + } catch (e4) { + this.topic.exception(e4, "Failed to destroy branch. Continuing to destroy other branches."); + } + } + this.branches.length = 0, this.previousAction = null, this._nextAction = null, r2.default.each(this.managedPropertyViewModels, (e3) => { + e3.destroy(); + }), r2.default.each(P.getManagedProperties(this), (e3) => { + this[e3.property] && delete this[e3.property]; + }); + } + _preDestroy() { + super._preDestroy(), this.amObjectEventSink && c.unregisterEventSink(this), this.amObjectEventEmitter && c.removeEventEmitter(this), a.unRegisterConsumerEntirely(this), f.actionRegistrationService.unregisterItem(this); + } + _postDestroy() { + var e3; + super._postDestroy(), (null === (e3 = this.parentFlow) || void 0 === e3 ? void 0 : e3.isDestroyedOrDestroying) || s.emitter.emit(s.actionDestroyed); + } + updateDependencies() { + r2.default.each(this.managedPropertyViewModels, function(e3) { + e3.isExpression ? a.registerExpression(e3, true) : e3.updateDependencies(); + }.bind(this)); + } + validate(e3) { + var t3, i3; + super.validate(e3), this._validateAvailability(e3) && (r2.default.each(this.managedPropertyViewModels, function(t4) { + !t4.__isGeneratedPrompt && r2.default.isFunction(t4.validate) && (t4.validate(e3), (0, A.isBaseExpression)(t4) && t4.doConfigCheck(e3)); + }), !this.info.canBeInTask && this.topParent.isTaskLike && e3.addError(this, D.errors.actionCannotBeInTask), r2.default.each(this._generatedAudioExpressions, function(t4) { + if (!r2.default.find(t4.dependentProperties, function(e4) { + return !this[e4] || this[e4].hasError; + }.bind(this)) && (!this.isReadOnly || t4.expression.defaultAudio.customExpressionMode) && t4.audioSequencer.canBuildExpression(t4.getPlaybackMode.call(this), e3)) { + const i4 = new C.default(this.parentFlow, e3.isDeep); + t4.expression.validate(i4), t4.expression.hasError && e3.addError(this, D.expression.internalErrorExpression); + } + }.bind(this)), this.parentFlow.isCommonModuleFlow && S.flowTypes.hasVxmlgenFlowType(this.parentFlow.destinationFlowTypes) && S.flowTypes.hasAutomateFlowType(this.parentFlow.destinationFlowTypes) && ((null === (i3 = null === (t3 = this.previousAction) || void 0 === t3 ? void 0 : t3.info) || void 0 === i3 ? void 0 : i3.typeId) === v.transferPureMatchActionType ? e3.addWarning(this, D.commonModule.subsequentActionsExecutableOnlyIfEmbeddingFlowIsCallFlow) : this.getParentingFlowElementByIdOrNodeInfoId([v.transferPureMatchActionType], true) && e3.addWarning(this, D.commonModule.actionExecutableOnlyIfEmbeddingFlowIsCallFlow))); + } + _reloadAllBranches() { + w.loadBranches(this); + for (let e3 = 0; e3 < this.branches.length; e3++) this.branches[e3].initialize(); + } + _addBranch(e3) { + const t3 = w.addBranch(this, e3); + return t3 && t3.initialize(), this.updateTermination(), s.emitter.emit(s.branchesChanged), t3; + } + _removeBranch(e3) { + w.removeBranch(this, e3), this.updateTermination(), s.emitter.emit(s.branchesChanged); + } + _validateAvailability(e3) { + let t3 = false; + const i3 = this.parentFlow.destinationFlowTypes.filter((e4) => !this.info.isAvailableForFlowType(e4, true)); + return (null == i3 ? void 0 : i3.length) && (e3.addError(this, (0, O.sprintf)(D.commonModule.actionNotSupportedForFlowTypes, this.info.name, p.getFlowTypesDisplayString(i3))), t3 = true), t3 || (t3 = this.parentFlow.destinationFlowTypes.some((e4) => !this.info.passesAvailabilityCallback(e4, this.topParent, this.topParent.isTaskLike)), t3 && e3.addError(this, (0, O.sprintf)(D.errors.actionNotValidHere))), this.parentFlow.destinationFlowTypes.forEach((i4) => { + this.info.isDeprecatedForFlowType(i4) && (e3.addWarning(this, (0, O.sprintf)(D.action.actionIsDeprecated, this.info.name)), t3 = true); + }), t3 || r2.default.each(this.info.requirements.featuresToggles, (i4) => { + if (u.isDisabled(i4)) { + let i5 = D.features.missingFeatureError; + const n3 = this.parentFlow.info.flowTypeName; + i5 = (0, O.sprintf)(i5, this.info.name, n3), e3.addError(this, i5), t3 = true; + } + }), !t3; + } + addOptionalPathsFromModel(e3) { + if (e3.paths) for (let t3 = 0; t3 < e3.paths.length; t3++) { + const i3 = e3.paths[t3]; + this.getBranchInfo(i3.outputId) || this.addOptionalBranchInfo(i3, true); + } + } + claim(e3) { + this._resetParent(e3); + } + checkVersion(e3) { + e3.checkVersion(this.version), e3.checkFeatures(this.info.requirements), r2.default.each(this.managedPropertyViewModels, function(t3) { + t3.checkVersion(e3); + }.bind(this)); + } + get containedActionCount() { + if (!this.branches || 0 === this.branches.length) return 0; + let e3 = 0; + return r2.default.each(this.branches, function(t3) { + e3 += t3.containedActionCount; + }), e3; + } + containsAudioForLang(e3) { + const t3 = this.getAudioNodes(); + return 0 !== t3.length && !!r2.default.find(t3, function(t4) { + const i3 = t4.getCaseForLang(e3); + if (i3 && i3.hasAudioSet || t4.defaultAudio.hasAudioSet) return true; + }); + } + generateAudioExpression() { + r2.default.each(this._generatedAudioExpressions, function(e3) { + if (r2.default.find(e3.dependentProperties, function(e4) { + return !this[e4] || this[e4].hasError; + }.bind(this))) e3.expression && (e3.expression.defaultAudio.customExpressionMode = true, e3.expression.defaultAudio.setText("", true), r2.default.each(e3.expression.cases, function(e4) { + e4.audioExpression.customExpressionMode = true, e4.audioExpression.setText("", true); + })); + else if (e3.audioSequencer.canBuildExpression(e3.getPlaybackMode.call(this))) { + const t3 = e3.getReplacementValues.call(this); + e3.audioSequencer.buildExpression(e3.getPlaybackMode.call(this), t3); + } + }.bind(this)); + } + getAudioNodes() { + return this.parent.isSubMenu ? [this.menu.prompts] : r2.default.where(this.managedPropertyViewModels, { isAudioViewModel: true }); + } + getNextTaskRuntimeAction() { + if (this.topParent.isTaskLike) { + let e3 = this.parent, t3 = e3.nextAction; + for (; !t3 && (e3 = e3.parent, e3); ) t3 = e3.nextAction; + return t3; + } + return null; + } + getPromptsUsed(e3) { + let t3 = []; + const i3 = this.getAudioNodes(); + if (i3.length > 0) for (let n3 = 0; n3 < i3.length; n3++) t3 = r2.default.union(t3, i3[n3].getPromptsUsedForLang(e3)); + return t3; + } + get hasBranchWithError() { + return !!r2.default.findWhere(this.branches, { hasValidationError: true }); + } + get hasBranchWithWarning() { + return !!r2.default.findWhere(this.branches, { hasValidationWarning: true }); + } + initialize() { + super.initialize(); + for (let e3 = 0; e3 < this.branches.length; e3++) this.branches[e3].initialize(); + this.updateTermination(true); + } + setNewInstanceDefaults(e3) { + r2.default.each(this.managedPropertyViewModels, function(e4) { + r2.default.isFunction(e4.setNewInstanceDefaults) && e4.setNewInstanceDefaults(); + }); + } + get isAction() { + return true; + } + log() { + console.log(this.name, this.previousAction ? this.previousAction.name : void 0, this.nextAction ? this.nextAction.name : void 0), this.nextAction && this.nextAction.log(); + } + resetTermination() { + r2.default.each(this.branches, function(e3) { + e3.resetTermination(); + }); + } + get supportsCustomOutputPaths() { + return false; + } + get hasOptionalPaths() { + return false; + } + get terminatingLabel() { + const e3 = this.parentFlow.destinationFlowTypes.find((e4) => this.info.getTerminationInfo(e4).doesTerminate), t3 = this.info.getTerminationInfo(e3); + return (null == t3 ? void 0 : t3.label) ? t3.label : this._terminatingLabel; + } + toString() { + return `Action: ${super.toString()}`; + } + traverse(e3) { + e3.traverseActionProperties && (r2.default.find(this.managedPropertyViewModels, function(t3) { + if (t3 && t3.traverse) return t3.traverse(e3), e3.isCanceled; + }.bind(this)), e3.isCanceled || r2.default.find(this.branches, function(t3) { + if (t3 && t3.traverse) return t3.traverse(e3), e3.isCanceled; + }.bind(this))); + } + updateTermination(e3) { + const t3 = this.terminatesTaskOrFlow, i3 = this.terminatesLoop, n3 = this.hasBranchTerminatingWithEndTask; + let o2 = []; + const a2 = 1 === this.branches.length && this.branches[0].id === N.outputIds.fake; + if (this.branches.length > 1 || 1 === this.branches.length && !a2) { + let e4 = 0, t4 = false; + const i4 = {}; + if (r2.default.each(this.branches, (n4) => { + if (!n4.outOfService && n4.branchInfo.isActionInternal && n4.branchInfo.canTerminate) { + e4++; + const r3 = n4.terminatesTaskOrFlow; + i4[n4.id] = r3, r3 && (t4 = true); + } + }), t4) this.allBranchesTerminate = true; + else if (e4 && e4 === this.branches.length) this.allBranchesTerminate = false; + else { + const e5 = r2.default.filter(this.branches, (e6) => !e6.outOfService); + e5.length ? this.allBranchesTerminate = r2.default.every(e5, (e6) => !!e6.branchInfo.isActionInternal || !!e6.terminatesTaskOrFlow && (e6.terminatingLabel ? o2.push(e6.terminatingLabel) : e6.terminatingAction.isLoopAcion && this.topic.error("Have a terminating branch with no label. branch-id:{} - {}", e6.id, e6.parent.toString()), true)) : this.allBranchesTerminate = false; + } + } else this.allBranchesTerminate = false; + this.allBranchesTerminate ? (o2 = r2.default.uniq(o2), this._terminatingLabel = 1 === o2.length ? o2[0] : o2.length > 1 ? this.topParent.isState ? D.state.endStateOrFlow : D.task.endTaskOrFlow : void 0) : this._terminatingLabel = void 0, this.terminatesTaskOrFlow = this.terminationInfo.isNonLoopTerminating || this.allBranchesTerminate, this.terminatesLoop = this.terminationInfo.terminatesLoop || this.branches.length > 0 && !a2 && r2.default.every(this.branches, function(e4) { + return e4.id !== N.outputIds.loop && e4.id !== N.outputIds.fake && e4.terminatesLoop; + }), this.hasBranchTerminatingWithEndTask = !!this.branches.find((e4) => e4.hasBranchTerminatingWithEndTask), e3 || this.terminatesLoop === i3 && this.terminatesTaskOrFlow === t3 && this.hasBranchTerminatingWithEndTask === n3 || this.parent.updateTermination(); + } + get version() { + return R.one.zero; + } + static getManagedProperties(e3) { + return d.getManagedProperties(e3); + } + updateTraceTopic() { + var e3; + const t3 = h.getTopic(this.info.typeId); + this.topic = this.model ? t3.withMultipleContext(Object.assign({ actionId: this.id, trackingId: this.trackingId, infoName: null === (e3 = this.info) || void 0 === e3 ? void 0 : e3.name }, this.parentFlow.topic.context)) : t3; + } + _ensureUiMetaData() { + this.model.uiMetaData || (this.model.uiMetaData = {}); + } + _validateTargetFlowInfoLanguages(e3, t3, i3) { + var n3, o2, a2; + if (!this.parentFlow.definition.supportsLanguages || !t3) return; + if (!(null === (n3 = t3.definition) || void 0 === n3 ? void 0 : n3.supportsLanguages)) return; + const s2 = null === (a2 = null === (o2 = this.parentFlow) || void 0 === o2 ? void 0 : o2.languages) || void 0 === a2 ? void 0 : a2.supportedLanguagesViewModels, l2 = null == t3 ? void 0 : t3.supportedLanguages, u2 = []; + if (r2.default.isArray(l2) && r2.default.each(l2, (e4) => { + r2.default.isUndefined(r2.default.find(s2, (t4) => e4.language === t4.idExpressionText)) && u2.push(e4.language); + }), i3 && u2.length) { + const i4 = _.getLanguageNameAndCodeDisplay(u2); + return void e3.addError(this, (0, O.sprintf)(1 === u2.length ? D.languages.targetFlowSupportedLanguageNotSupportedInCallingFlow : D.languages.targetFlowSupportedLanguageNotSupportedInCallingFlowMoreThanOne, i4, t3.displayName)); + } + if (!r2.default.isArray(l2)) return; + const d2 = []; + if (r2.default.each(s2, (e4) => { + r2.default.isUndefined(r2.default.find(l2, (t4) => (null == t4 ? void 0 : t4.language) === e4.idExpressionText)) && d2.push(e4.idExpressionText); + }), !d2.length) return; + const c2 = r2.default.find(l2, (e4) => e4.isDefault); + let p2; + r2.default.isObject(c2) && r2.default.isString(c2.language) && (p2 = (0, O.sprintf)(D.languages.flowRunsInDefaultLanguageIfInvokedWithUnsupportedLanguage, t3.displayName, _.getLanguageNameAndCodeDisplay(c2.language))); + const h2 = _.getLanguageNameAndCodeDisplay(d2), m2 = (0, O.sprintf)(1 === d2.length ? D.languages.flowSupportedLanguageNotSupportedInTargetFlow : D.languages.flowSupportedLanguageNotSupportedInTargetFlowMoreThanOne, h2, t3.displayName); + e3.addWarning(this, p2 ? (0, O.sprintf)(I.default.generic.twoStringsSpaceSeparator, m2, p2) : m2); + } + get wrappedYamlName() { + return this.info.getWrappedYamlName(this.parent.isMenuChoice, this.isSubMenuActionViewModel); + } + get relatedIssueIds() { + } + get nodeId() { + return this.info.id; + } + } + t2.default = P; + }, 5797: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.delay = void 0; + var n2 = i2(62326), r2 = i2(72885), o = i2(5825); + t2.delay = function(e3, t3) { + void 0 === t3 && (t3 = n2.asyncScheduler); + var i3 = o.timer(e3, t3); + return r2.delayWhen(function() { + return i3; + }); + }; + }, 5825: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.timer = void 0; + var n2 = i2(48051), r2 = i2(62326), o = i2(68596), a = i2(85345); + t2.timer = function(e3, t3, i3) { + void 0 === e3 && (e3 = 0), void 0 === i3 && (i3 = r2.async); + var s = -1; + return null != t3 && (o.isScheduler(t3) ? i3 = t3 : s = t3), new n2.Observable(function(t4) { + var n3 = a.isValidDate(e3) ? +e3 - i3.now() : e3; + n3 < 0 && (n3 = 0); + var r3 = 0; + return i3.schedule(function() { + t4.closed || (t4.next(r3++), 0 <= s ? this.schedule(void 0, s) : t4.complete()); + }, n3); + }); + }; + }, 5828: (e2, t2, i2) => { + "use strict"; + const n2 = i2(31635), r2 = n2.__importDefault(i2(942)), o = i2(43700), a = i2(80428), s = i2(41136), l = i2(12179), u = n2.__importDefault(i2(97891)), d = i2(47957); + class c extends r2.default { + constructor(e3, t3) { + super(e3.parentFlow, e3), this._loadModel(t3); + } + static get managedProperties() { + return r2.default.createManagedProperties({ searchFieldLabel: d.findActions.findGrammar.findGrammarNameLabel, searchResultLabel: d.findActions.findGrammar.findGrammarResultLabel, searchResultExpressionOptions: o.ExpressionTypeGrammarOptions.create(), searchResultItemType: a.expressionTypeNames.grammar }); + } + } + c.info = u.default.createActionInfo({ actionClass: c, canBeInTask: true, helpTopic: l.helpTopics.actions.findGrammar, modelClass: s.FindGrammarActionModel, name: d.actions.findGrammar, scriptingName: "ArchActionFindGrammar" }), t2.A = c; + }, 5868: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(20692)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "imageCollection"; + } + get displayTypeName() { + return "ArchVariableImageCollection"; + } + get initialValue() { + return this._initialValue; + } + get isArchVariableImageCollection() { + return true; + } + } + t2.default = r2; + }, 5894: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.BaseFailureOutputsActionModel = void 0; + const n2 = i2(31635), r2 = i2(80934), o = i2(80295), a = i2(80295), s = i2(90807); + class l extends r2.BaseActionWithOutputsModel { + constructor(e3) { + super(e3), (0, a.makeUnenumerable)(this, "_errorBindings"); + } + get errorBindings() { + return this._errorBindings; + } + set errorBindings(e3) { + this._errorBindings = this.reviveArray(e3, s); + } + pasteResolveOldToNewValues(e3) { + super.pasteResolveOldToNewValues(e3), this._errorBindings.forEach((t3) => t3.pasteResolveOldToNewValues(e3)); + } + pasteReIdOrRename(e3) { + super.pasteReIdOrRename(e3), this._errorBindings.forEach((t3) => t3.pasteReIdOrRename(e3)); + } + } + t2.BaseFailureOutputsActionModel = l, n2.__decorate([(0, o.enumerable)(true), n2.__metadata("design:type", Object), n2.__metadata("design:paramtypes", [Object])], l.prototype, "errorBindings", null); + }, 5896: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.briefInQueueEmailFlowListManager = void 0; + const n2 = i2(31635).__importStar(i2(24032)), r2 = i2(70726), o = i2(96618), a = i2(27862); + class s extends r2.BriefFlowListManager { + get dependencyType() { + return a.InqueueEmailFlow; + } + constructor() { + super(), this.topic = n2.getTopic("BriefInQueueEmailFlowListManager"), this.additionalQueryParams = { type: o.flowTypes.flowTypeInQueueEmail }, this.className = "BriefInQueueEmailFlowListManager", this.flowType = o.flowTypes.flowTypeInQueueEmail, this._initialize(); + } + } + t2.briefInQueueEmailFlowListManager = new s(); + }, 6022: (e2, t2, i2) => { + const n2 = i2(98962); + function r2() { + r2.baseConstructor.apply(this, arguments); + } + i2(22124).extend(r2, "FlowVersionList"), Object.defineProperties(r2.prototype, { entities: { enumerable: true, get: function() { + return this._entities; + }, set: function(e3) { + this._entities = this.reviveArray(e3, n2); + } } }), e2.exports = r2; + }, 6035: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importDefault(i2(92140)), o = n2.__importStar(i2(14187)), a = i2(84464), s = i2(96353), l = i2(24235), u = n2.__importDefault(i2(95955)), d = n2.__importDefault(i2(39521)), c = n2.__importDefault(i2(73198)), p = n2.__importDefault(i2(81948)), _ = i2(30801), h = n2.__importDefault(i2(99025)), m = i2(47957), g = i2(59684); + class f extends p.default { + constructor(e3) { + super(e3), this.callPrompts = new u.default(this), this.errorHandling = new d.default(this), this.speechRecognition = new h.default(this), this._addToAutoManageSettings(this.callPrompts), this._addToAutoManageSettings(this.errorHandling), this._addToAutoManageSettings(this.speechRecognition); + } + buildConfiguration(e3, t3, i3) { + return e3 = super.buildConfiguration(e3, t3, i3), (null == i3 ? void 0 : i3.isForFlowYaml) || (this.initialPrompts && this.initialPrompts.model && (e3.initialPrompts = this.initialPrompts.getConfiguration(e3, i3)), e3.isSecure = this.consumesSecureData), e3; + } + checkVersion(e3) { + this.initialPrompts.checkVersion(e3), super.checkVersion(e3); + } + get className() { + return "CommonCallFlowViewModel"; + } + get builtInVariableScopes() { + return [...super.builtInVariableScopes, o.scopes.call, o.scopes.interaction]; + } + getFlowConfigurationClass() { + return g; + } + search(e3) { + e3.addToQueue(this.initialPrompts), super.search(e3); + } + updateDependencies() { + this.initialPrompts.updateDependencies(), super.updateDependencies(); + } + speechRecEnabled() { + return this.speechRecognition && this.speechRecognition.disableAsr && this.speechRecognition.disableAsr.text === c.default.false; + } + validate(e3) { + const t3 = super.validate(e3); + return this.definition.supportsSpeechRec && this.speechRecEnabled() && this.getUsesSpeechRec(), t3; + } + _destroy() { + super._destroy(), this.initialPrompts && this.initialPrompts.destroy(); + } + _getUsesSpeechRec() { + return !!super._getUsesSpeechRec() || !!a.actionRegistrationService.getHasActionsOfActionType(this, _.lexActionType) || !r2.default.isUndefined(r2.default.find(this.menus, (e3) => e3.getUsesSpeechRec())); + } + _loadConfiguration(e3) { + this._setInitialTrackingNumberFromConfiguration(e3.nextTrackingNumber), super._loadConfiguration(e3), this.initialPrompts = new s.AudioViewModel(this, this, e3.initialPrompts, l.AudioViewModelOptions.create().setLabel(m.initialGreetingLabel).setIninTestingField("initialGreeting")); + } + _initializeDesignTime() { + super._initializeDesignTime(), this.initialPrompts && this.initialPrompts.initializeDesignTime(); + } + } + t2.default = f; + }, 6074: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(37873)); + class r2 extends n2.default { + constructor(e3) { + super(e3), this._coreActionContainerViewModel = e3; + } + get actionCount() { + return this._coreActionContainerViewModel.children.length; + } + get actionFirst() { + const e3 = this._coreActionContainerViewModel.topAction; + if (e3) return this.coreFactory.createArchWrapper(e3); + } + get actionLast() { + const e3 = this._coreActionContainerViewModel.lastAction; + if (e3) return this.coreFactory.createArchWrapper(e3); + } + get actions() { + const e3 = []; + let t3 = this._coreActionContainerViewModel.topAction; + if (!t3) return e3; + for (; t3; ) e3.push(this.coreFactory.createArchWrapper(t3)), t3 = t3.nextAction; + return e3; + } + canAddAction(e3) { + return this._checkItemIsArchDefinitionAction(this._infoParm("archDefinitionAction", "canAddAction"), e3), this._coreActionContainerViewModel.canAddNode(e3._getCoreViewModel().id); + } + deleteAction(e3) { + const t3 = this._infoParm("archActionToDelete", "deleteAction"); + this._checkItem(t3, !e3 || !e3.isArchBaseAction, "The action to delete must be an ArchBaseAction instance."), this.logNote("deleting the action " + e3.logStr + " from the action container " + this.logStr), this._coreActionContainerViewModel.deleteChild(e3._getCoreViewModel()); + } + get displayTypeName() { + return "ArchBaseMultiActionContainer"; + } + get isArchBaseMultiActionContainer() { + return true; + } + get isMenuChoiceContainer() { + return this._coreActionContainerViewModel.parent && this._coreActionContainerViewModel.parent.parent && true === this._coreActionContainerViewModel.parent.parent.isMenuChoice; + } + get isTerminated() { + return this._coreActionContainerViewModel.isTerminating; + } + get isVariableContainer() { + return true === this._isVariableContainer; + } + moveAction(e3, t3) { + const i3 = this._infoParm("archActionToMove", "moveAction"); + if (this._checkItem(i3, !e3 || !e3.isArchBaseAction, "the action to move must be a valid ArchBaseAction instance."), t3) { + const i4 = this._infoParm("archActionNewPreviousAction", "moveAction"); + this._checkItem(i4, !t3.isArchBaseAction, "the previous action must be a valid ArchBaseAction instance."), e3._getCoreViewModel().parent !== t3._getCoreViewModel().parent && this._itemIsInvalid(i4, "both the archActionToMove and archActionNewPreviousAction actions must be in the same multi action container."), this.logNote("moving " + e3.logStr + " before " + t3.logStr + " in the multi action container."); + } else this.logNote("moving " + e3.logStr + " to the top of the multi action container."); + const n3 = t3 && t3._getCoreViewModel(); + this._coreActionContainerViewModel.moveAction(e3._getCoreViewModel(), n3); + } + } + t2.default = r2; + }, 6085: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(83663)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "listPicker"; + } + get displayTypeName() { + return "ArchValueListPicker"; + } + get isArchValueListPicker() { + return true; + } + get sections() { + return this._getAssignableProperty("sections"); + } + get receivedMessageImage() { + return this._getAssignableProperty("receivedMessageImage"); + } + get receivedMessageTitle() { + return this._getAssignableProperty("receivedMessageTitle"); + } + get receivedMessageSubtitle() { + return this._getAssignableProperty("receivedMessageSubtitle"); + } + get receivedMessageButtonText() { + return this._getAssignableProperty("receivedMessageButtonText"); + } + get replyMessageImage() { + return this._getAssignableProperty("replyMessageImage"); + } + get replyMessageSubtitle() { + return this._getAssignableProperty("replyMessageSubtitle"); + } + setLiteralListPicker(e3, t3, i3, n3, r3, o, a) { + this.receivedMessageTitle.setLiteralString(i3), this.receivedMessageSubtitle.setLiteralString(n3), this.receivedMessageButtonText.setLiteralString(a), this.replyMessageSubtitle.setLiteralString(o), t3 && this.receivedMessageImage.setLiteralByImageNameAsync(t3), r3 && this.replyMessageImage.setLiteralByImageNameAsync(r3); + } + } + t2.default = r2; + }, 6099: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.FlowSizeViewModel = void 0; + const n2 = i2(31635), r2 = i2(79364), o = i2(17604), a = n2.__importStar(i2(12847)), s = n2.__importStar(i2(36781)), l = n2.__importStar(i2(46920)), u = i2(51818), d = i2(51818), c = n2.__importStar(i2(58380)), p = n2.__importStar(i2(66381)), _ = n2.__importStar(i2(1115)), h = i2(12179), m = n2.__importDefault(i2(17102)), g = i2(47957); + class f extends m.default { + constructor(e3) { + super(e3), this.flowSizeDetails$ = new r2.BehaviorSubject(void 0), this._lastUpdatedFlowSize = 0, this.isFlowSizeNode = true; + } + get className() { + return "FlowSizeViewModel"; + } + getDisplayName() { + return g.flow.flowSizeNodeTitle; + } + get nodeGuxIcon() { + return "graph-pie"; + } + get id() { + return "flowSize"; + } + get helpTopic() { + return h.helpTopics.treeNodes.flowSize; + } + get showInFlowSize() { + return false; + } + get lastUpdatedFlowSize() { + return this._lastUpdatedFlowSize; + } + set lastUpdatedFlowSize(e3) { + this._lastUpdatedFlowSize = e3, c.fireEvent(this.parentFlow, s.lastUpdatedFlowSizeChanged); + } + checkUnderSaveSize() { + if (this.parentFlow.isEmbeddedFlow) return void a.error("should not be calling this on an embedded flow"); + const e3 = {}; + return e3.results = !this.lastUpdatedFlowSize || this.lastUpdatedFlowSize < this.parentFlow.definition.maxFlowSize, e3.results || (e3.displayString = g.flow.tooLarge, e3.displayName = g.flow.sizeRestriction), e3; + } + processFlowSizeEvent(e3) { + const t3 = (0, u.calculateFlowSizePercentage)(e3.data.size, this.parentFlow), i3 = (0, d.getFlowSizeThreshold)(t3), n3 = t3 < 1 ? 1 : t3, r3 = { type: i3.type, label: (0, o.sprintf)(g.flow.flowSizeWarningWithPercentage, i3.label, n3), description: i3.label, percent: n3, size: e3.data.size }; + this.flowSizeDetails$.next(r3), this.lastUpdatedFlowSize = e3.data.size, this.parentFlow.isValidating || _.validateItem(this.parentFlow, false, true); + } + validateSize(e3) { + if (this.parentFlow.isEmbeddedFlow) return; + let t3 = false; + const i3 = l.getStringifiedConfiguration(this.parentFlow), n3 = e3.isDeep ? p.utf8EncodedSizeExceedsMax(i3, this.parentFlow.definition.maxFlowSizeToStopPublish) : this.lastUpdatedFlowSize > this.parentFlow.definition.maxFlowSizeToStopPublish; + n3 && (t3 = e3.isDeep ? p.utf8EncodedSizeExceedsMax(i3, this.parentFlow.definition.maxFlowSize) : this.lastUpdatedFlowSize > this.parentFlow.definition.maxFlowSize), t3 ? e3.addError(this, g.flow.tooLarge, true, void 0, 200) : n3 ? e3.addError(this, g.flow.tooLargeToPublish, true, void 0, 200) : e3.isDeep && (this.lastUpdatedFlowSize = 0); + } + } + t2.FlowSizeViewModel = f; + }, 6109: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.FlowListManager = void 0; + const n2 = i2(31635), r2 = i2(69706), o = n2.__importDefault(i2(98114)), a = n2.__importDefault(i2(90396)), s = n2.__importDefault(i2(47532)), l = i2(81801), u = i2(37345); + class d extends s.default { + get requiredAuth() { + return l.externalAuthorizations.authStrings.flowView; + } + constructor() { + super(), this.apiCallList = u.getFlows, this.apiCallSingle = u.getFlow, this.isFlowListManager = true, this.hideDeletedItems = true; + } + get dependencyContext() { + return this._dependencyContext || (this._dependencyContext = o.default.getFlowTypeDisplayName(this.flowType)), this._dependencyContext; + } + isValidItem(e3) { + return this.flowType && e3.type && this.flowType === e3.type.toLocaleLowerCase(); + } + get keepDeletedItems() { + return this.flowType === r2.flowTypeCommonModule; + } + _createItemViewModel(e3) { + return new a.default(e3); + } + } + t2.FlowListManager = d; + }, 6142: (e2) => { + e2.exports = { askCommon: { invalidInputReceived: "That is not valid.", noInputReceived: "I did not receive any input." }, askForBoolean: { noInput: `Say "yes" if you want to proceed or "no" if you don't.`, noMatch: 'Please say "yes" or "no". Do you want to proceed?', question: "Do you want to proceed?", noInputDigitalBot: `Input "Yes" if you want to proceed or "No" if you don't.`, noMatchDigitalBot: 'Please input "Yes" or "No". Do you want to proceed?' }, askForIntent: { noInput: 'Just speak a short sentence that describes your query. For example, "Check my account balance"', noMatch: "Tell me again what you would like to do.", question: "What would you like to do?", noInputDigitalBot: 'Please enter a short sentence that describes your query. For example, "Check my account balance"' }, askForSlot: { askFor: "Ask for %1$s", noInput: "Please say or enter the (please put your slot name here).", noInputWithSlot: "Please say or enter the %1$s.", noMatch: "Please give me the (please put your slot name here) again.", noMatchWithSlot: "Please give me the %1$s again.", question: "What is the (please put your slot name here)?", questionWithSlot: "What is the %1$s?", pleaseEnterSlotNameHere: "(please put your slot name here)", noInputDigitalBot: "Please enter the (please put your slot name here).", noInputWithSlotDigitalBot: "Please enter the %1$s.", continuationPromptWithSlot: "I got {{Slot.%1$s}} so far, please continue." }, askForNextSlot: { noInput: 'Say "yes" if you have another query, or "no" to end the call.', noMatch: 'Say "yes" if you have another query, or "no" to end the session.', question: "Is there anything else I can help you with?", noInputDigitalBot: 'Input "Yes" if you have another query, or "No" to end the session.', noMatchDigitalBot: 'Input "Yes" if you have another query, or "No" to end the session.' }, askForPayment: { noInputDigitalBot: "Please provide your payment information to continue.", noMatchDigitalBot: "I didn't understand your response. Please try again." }, askForAuthentication: { noInputDigitalBot: "Please provide your authentication information to continue.", noMatchDigitalBot: "I didn't understand your response. Please try again." }, askSurveyQuestion: { notApplicable: "Not Applicable", surveyAnswerOptionSequence: "Press %1$s for '%2$s'.", surveyAnswerNotApplicableSequence: "Press star for Not Applicable.", surveyAnswerNotApplicableWithQuestionSequence: "%1$s. Press star for Not Applicable.", voiceSurveyNoInputText: "Please answer the question.", voiceSurveyNoMatchText: "I didn't understand you." }, commonModule: { exitCommonModule: "Exit Common Module" }, form: { noInputDigitalBot: "Please complete the form to continue.", noMatchDigitalBot: "Please complete the form to continue." }, messagingTemplate: { noInputDigitalBot: "Please select one of the available options.", noMatchDigitalBot: "Please select one of the available options." }, knowledgeSettings: { knowledgeAnswerHighlightFlowProgressionDefault: "Continue", knowledgeAnswerHighlightFullArticleDefault: "View Full Article", knowledgeInitialResponseMulti: "To help me clarify your goal, please choose a number from the following list:", knowledgeInitialResponseMultiRetry: "Please choose a number, for example '1'.\nHere's the list of options again:", knowledgeNoMatch: "None of these", knowledgeConfirmation: "Did this answer your question?", knowledgeFollowup: "I hope I answered your question. You can ask anything else you might want to know." }, noOverlay: { intent: { intentConfirmationStr1: "I think you want to", intentConfirmationStr2: "Is that correct?" }, youSaid: { youSaidConfirmationStr1: "You said", youSaidConfirmationStr2: "Is that correct?", youSaidConfirmationStr1DigitalBot: "You entered" }, noInput: { noInputStr1: "Please say or enter the", noInputStr1DigitalBot: "Please enter the" }, noMatch: { noMatchStr1: "Please give me the" }, whatIs: { whatIsQuestionStr1: "What is the", whatIsQuestionStr2: "?" }, iGotContinuation: { iGotContinuationStr1: "I got", iGotContinuationStr2: "so far, please continue." } }, defaultCallFlowOne: "Default Call Flow", errorHandlingAgentEscalationConfirmation: "You want to speak to an advisor. Is that correct?", errorHandlingAgentEscalationHandover: "One moment, please, and I will put you through to someone.", errorHandlingErrorEventHandover: "Sorry, an error occurred. One moment, please, while I put you through to someone who can help.", errorHandlingErrorEventHandoverVoiceSurvey: "Sorry, an error occurred. Goodbye.", errorHandlingRecognitionEventHandover: "Sorry, I'm having trouble understanding you. One moment, please, while I put you through to someone who can help.", errorHandlingRecognitionEventHandoverVoiceSurvey: "Sorry, I'm having trouble understanding you. Goodbye.", errorHandlingTTS: "Sorry, an error occurred. Please try your call again.", initialGreetingTTS: "Hello, this is the initial greeting.", initialState: "Initial State", initialBotState: "Default Bot", initialDigitalBotState: "Initial Greeting", initialSurveyBotState: "Survey Bot", intentConfirmation: "I think you want to %1$s, is that correct?", mainMenu: "Main Menu", mainMenuTTS: "You are at the Main Menu, press 9 to disconnect", mainTask: "Task", settingsConfirmationNoInputApology: "Sorry, I didn't hear you. Please say yes or no.", settingsConfirmationNoInputApologyDigitalBot: `Sorry, I didn't receive any input from you. Please input "Yes" or "No".`, settingsConfirmationNoMatchApology: "Sorry, please say yes or no.", settingsConfirmationNoMatchApologyDigitalBot: 'Sorry, please input "Yes" or "No".', settingsNoInputApology: "Sorry, I didn't hear you.", settingsNoInputApologyDigitalBot: "Sorry, I didn't receive any input from you.", settingsEndOfSessionMessageDigitalBot: "I have not heard from you in a while, so I am closing this chat, please come back if you need my help again. Thank you.", settingsNoMatchApology: "Sorry.", settingsNoToConfirmationApology: "My mistake.", periodicStateName: "Recurring State" }; + }, 6174: (e2, t2, i2) => { + "use strict"; + const n2 = i2(31635), r2 = i2(12179), o = n2.__importDefault(i2(97891)), a = n2.__importDefault(i2(30785)), s = i2(47957); + class l extends a.default { + constructor(e3, t3) { + super(e3), this._loadModel(t3); + } + } + l.info = o.default.createActionInfo({ actionClass: l, canBeInTask: true, helpTopic: r2.helpTopics.actions.setAttributes, modelClass: i2(89844), name: s.actions.setAttributes, scriptingName: "ArchActionSetParticipantData" }), t2.A = l; + }, 6209: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(11210)), r2 = i2(30801); + class o extends n2.default { + constructor(e3) { + super(e3), this._enableTranscription = this.coreFactory.createArchWrapper(e3.enableTranscription); + } + get _actionTypeId() { + return r2.transcriptionActionType; + } + get displayTypeName() { + return this._scriptingName; + } + get isArchActionTranscription() { + return true; + } + get enableTranscription() { + return this._enableTranscription; + } + } + t2.default = o; + }, 6225: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.MessagingTemplateViewModel = void 0; + const n2 = i2(43212); + class r2 extends n2.BaseConfigurationListViewModel { + constructor(e3) { + super(e3), this.whatsApp = e3.whatsApp; + } + get className() { + return "MessagingTemplateViewModel"; + } + } + t2.MessagingTemplateViewModel = r2; + }, 6256: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.getGenesysCloudToArchitectLocale = function(e3) { + e3 = (e3 = e3.toLowerCase()).replace(/_/g, "-"); + let t3 = n2.default.findWhere(r2, { pureCloudLocale: e3 }); + if (t3 || (t3 = n2.default.findWhere(r2, { id: e3 })), !t3) { + const i3 = e3.indexOf("-"), o = -1 === i3 ? e3 : e3.substring(0, i3); + t3 = n2.default.find(r2, function(e4) { + return e4.id.substring(0, e4.id.indexOf("-")) === o; + }); + } + return t3 || null; + }; + const n2 = i2(31635).__importDefault(i2(92140)), r2 = i2(98261); + }, 6276: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(11210)), r2 = i2(30801); + class o extends n2.default { + constructor(e3) { + super(e3), this._attributeVariableValuePairs = this.coreFactory.createArchBaseValueContainer(e3.variables); + } + get _actionTypeId() { + return r2.getAttributesActionType; + } + get displayTypeName() { + return this._scriptingName; + } + addAttributeNameOutputValuePair(e3, t3) { + return this._checkItemIsValidLiteralString(this._infoParm("nameExpression", "addAttributeNameOutputValuePair"), e3, true), this._checkItemIsValidLiteralString(this._infoParm("variableExpression", "addAttributeNameOutputValuePair"), t3, true), this._attributeVariableValuePairs._addNameValueAssignment(e3, t3, true, false); + } + get isArchActionGetParticipantData() { + return true; + } + get attributeNameOutputValuePairs() { + return this._attributeVariableValuePairs; + } + } + t2.default = o; + }, 6291: (e2, t2, i2) => { + const { ParameterInfo: n2 } = i2(55909), { ParameterValidator: r2 } = i2(33951); + class o { + constructor() { + Object.defineProperties(this, { _isWarning: { value: false, writable: true, enumerable: false }, _messageDisplayStr: { writable: true, enumerable: false }, _messageInternalStr: { writable: true, enumerable: false }, _result: { value: false, writable: true, enumerable: false } }); + } + static createFailureResult(e3, t3) { + return new o().setResult(false).setMessageDisplayStr(e3).setMessageInternalStr(t3); + } + static createSuccessResult(e3, t3) { + return new o().setResult(true).setMessageDisplayStr(e3).setMessageInternalStr(t3); + } + static createSuccessWarningResult(e3, t3) { + const i3 = new o().setResult(true).setMessageDisplayStr(e3).setMessageInternalStr(t3); + return i3._isWarning = true, i3; + } + get className() { + return "ClipboardResult"; + } + get messageDisplayStr() { + return this._messageDisplayStr; + } + set messageDisplayStr(e3) { + this._messageDisplayStr = r2.expectString(e3, () => n2.createPropertySet(this.className, "messageDisplayStr", "newValue"), true); + } + get messageInternalStr() { + return this._messageInternalStr; + } + set messageInternalStr(e3) { + this._messageInternalStr = r2.expectString(e3, () => n2.createPropertySet(this.className, "messageDisplayStr", "newValue"), true); + } + setMessageDisplayStr(e3) { + return this.messageDisplayStr = e3, this; + } + setMessageInternalStr(e3) { + return this.messageInternalStr = e3, this; + } + get isFailure() { + return false === this._result; + } + get isSuccess() { + return true === this._result; + } + get isWarning() { + return true === this._isWarning; + } + get result() { + return this._result; + } + set result(e3) { + r2.expectBool(e3, () => n2.createPropertySet(this.className, "result", "newValue")), this._result = true === e3; + } + setResult(e3) { + return this.result = e3, this; + } + } + e2.exports = o; + }, 6413: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importDefault(i2(92140)), o = n2.__importStar(i2(10798)), a = i2(26847), s = i2(43212), l = n2.__importDefault(i2(4648)), u = n2.__importDefault(i2(56133)), d = n2.__importDefault(i2(27579)), c = i2(47957), p = { builtInPathId: a.outputIds.knowledge, id: "__KNOWLEDGE__", localizedLabel: c.generic.branches.knowledgeDialogEngine, name: "Knowledge", slots: { Question: { name: "Question", type: "string" }, Answer: { name: "Answer", type: "string" } } }; + class _ extends s.BaseConfigurationListViewModel { + constructor(e3) { + super(e3), this.fullBotNotLoaded = true, this._errorSchema = (0, d.default)(); + } + get className() { + return "DialogEngineVersionViewModel"; + } + get dependencyTrackingId() { + return `${this.botId}/${this.id}`; + } + get botId() { + return r2.default.isObject(this.model.bot) && r2.default.isString(this.model.bot.id) ? this.model.bot.id : ""; + } + get botName() { + return r2.default.isObject(this.model.bot) && r2.default.isString(this.model.bot.name) ? this.model.bot.name : ""; + } + get description() { + return this.model.description; + } + get errorSchema() { + return this._errorSchema; + } + get id() { + return this.model.id; + } + get isDialogEngineVersionViewModel() { + return true; + } + get knowledgeEnabled() { + return !o.isFeatureUnavailable(l.default.dialogEngineKnowledge) && !(!this.model.knowledgebases || !this.model.knowledgebases.length); + } + get label() { + return this.name; + } + get languages() { + return this.model.languages; + } + get model() { + return this._model; + } + set model(e3) { + this._model = e3, this.intents = [], this._model.intents && r2.default.each(this._model.intents, (e4) => { + this.intents.push(new u.default(r2.default.clone(e4))); + }), this.knowledgeEnabled && this.intents.push(new u.default(r2.default.clone(p))); + } + get name() { + return this.model.name; + } + } + t2.default = _; + }, 6440: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(84655)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "image"; + } + get displayTypeName() { + return "ArchVariableImage"; + } + get initialValue() { + return this._initialValue; + } + get isArchVariableImage() { + return true; + } + } + t2.default = r2; + }, 6458: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(45894)), r2 = i2(79069); + class o extends n2.default { + constructor(e3) { + super(e3.skill, r2.skillManager), this._checkItemUndefinedOrNull(this._infoParmCtor("coreSkillValuePair"), e3), this._coreSkillValuePair = e3; + } + get displayTypeName() { + return "ArchBaseSkillValuePair"; + } + get skill() { + return this.coreFactory.createArchValueFromExpression(this._coreSkillValuePair.skill); + } + get isArchBaseSkillValuePair() { + return true; + } + } + t2.default = o; + }, 6475: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(20692)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "CustomerIntentCollection"; + } + get displayTypeName() { + return "ArchVariableCustomerIntentCollection"; + } + get initialValue() { + return this._initialValue; + } + get isArchVariableCustomerIntentCollection() { + return true; + } + } + t2.default = r2; + }, 6500: (e2) => { + e2.exports = { askCommon: { invalidInputReceived: "\u9019\u4E0D\u662F\u6709\u6548\u7684\u3002", noInputReceived: "\u6211\u6C92\u6709\u6536\u5230\u4EFB\u4F55\u8F38\u5165\u3002" }, askForBoolean: { noInput: '\u5982\u679C\u60F3\u7E7C\u7E8C\uFF0C\u8ACB\u8AAA "\u662F"\uFF0C\u5982\u679C\u4E0D\u60F3\uFF0C\u8ACB\u8AAA "\u5426"\u3002', noMatch: '\u8ACB\u8AAA "\u662F" \u6216 "\u5426"\u3002\u662F\u5426\u8981\u7E7C\u7E8C\uFF1F', question: "\u662F\u5426\u8981\u7E7C\u7E8C\uFF1F", noInputDigitalBot: '\u5982\u679C\u60F3\u7E7C\u7E8C\uFF0C\u8ACB\u8F38\u5165 "\u662F"\uFF0C\u5982\u679C\u4E0D\u60F3\uFF0C\u8ACB\u8F38\u5165 "\u5426"\u3002', noMatchDigitalBot: '\u8ACB\u8F38\u5165 "\u662F" \u6216 "\u5426"\u3002\u662F\u5426\u8981\u7E7C\u7E8C\uFF1F' }, askForIntent: { noInput: '\u53EA\u8981\u8AAA\u51FA\u7C21\u77ED\u7684\u53E5\u5B50\u4F86\u63CF\u8FF0\u60A8\u7684\u67E5\u8A62\u5373\u53EF\uFF0C\u4F8B\u5982 "\u67E5\u770B\u6211\u7684\u5E33\u6236\u9918\u984D"', noMatch: "\u518D\u544A\u8A34\u6211\u60A8\u60F3\u505A\u4EC0\u9EBC\u3002", question: "\u60A8\u60F3\u505A\u4EC0\u9EBC\uFF1F", noInputDigitalBot: '\u8ACB\u8F38\u5165\u7C21\u77ED\u7684\u53E5\u5B50\u4F86\u63CF\u8FF0\u60A8\u7684\u67E5\u8A62\u5373\u53EF\uFF0C\u4F8B\u5982 "\u67E5\u770B\u6211\u7684\u5E33\u6236\u9918\u984D"' }, askForSlot: { askFor: "\u8981\u6C42 %1$s", noInput: "\u8ACB\u8AAA\u51FA\u6216\u8F38\u5165\uFF08\u8ACB\u5728\u6B64\u52A0\u5165\u69FD\u4F4D\u540D\u7A31\uFF09\u3002", noInputWithSlot: "\u8ACB\u8AAA\u51FA\u6216\u8F38\u5165 %1$s\u3002", noMatch: "\u8ACB\u518D\u7D66\u6211\uFF08\u8ACB\u5728\u6B64\u52A0\u5165\u69FD\u4F4D\u540D\u7A31\uFF09\u3002", noMatchWithSlot: "\u8ACB\u518D\u7D66\u6211 %1$s\u3002", question: "\u4EC0\u9EBC\u662F\uFF08\u8ACB\u5728\u6B64\u52A0\u5165\u69FD\u4F4D\u540D\u7A31\uFF09\uFF1F", questionWithSlot: "\u4EC0\u9EBC\u662F %1$s\uFF1F", pleaseEnterSlotNameHere: "(\u8ACB\u5728\u6B64\u653E\u5165\u60A8\u7684\u69FD\u4F4D\u540D\u7A31)", noInputDigitalBot: "\u8ACB\u8F38\u5165\uFF08\u8ACB\u5728\u6B64\u52A0\u5165\u69FD\u4F4D\u540D\u7A31\uFF09\u3002", noInputWithSlotDigitalBot: "\u8ACB\u8F38\u5165 %1$s\u3002", continuationPromptWithSlot: "\u76EE\u524D\u70BA\u6B62\u6211\u6536\u5230 {{Slot.%1$s}}\uFF0C\u8ACB\u7E7C\u7E8C\u3002" }, askForNextSlot: { noInput: '\u5982\u679C\u6709\u5176\u4ED6\u67E5\u8A62\uFF0C\u8ACB\u8AAA "\u662F"\uFF0C\u6216\u8AAA "\u5426" \u4EE5\u7D50\u675F\u547C\u53EB\u3002', noMatch: '\u5982\u679C\u6709\u5176\u4ED6\u67E5\u8A62\uFF0C\u8ACB\u8AAA "\u662F"\uFF0C\u6216\u8AAA "\u5426" \u4EE5\u7D50\u675F\u5DE5\u4F5C\u968E\u6BB5\u3002', question: "\u9084\u6709\u4EFB\u4F55\u6211\u53EF\u4EE5\u5354\u52A9\u7684\u5730\u65B9\u55CE\uFF1F", noInputDigitalBot: '\u5982\u679C\u6709\u5176\u4ED6\u67E5\u8A62\uFF0C\u8ACB\u8F38\u5165 "\u662F"\uFF0C\u6216\u8F38\u5165 "\u5426" \u4EE5\u7D50\u675F\u5DE5\u4F5C\u968E\u6BB5\u3002', noMatchDigitalBot: '\u5982\u679C\u6709\u5176\u4ED6\u67E5\u8A62\uFF0C\u8ACB\u8F38\u5165 "\u662F"\uFF0C\u6216\u8F38\u5165 "\u5426" \u4EE5\u7D50\u675F\u5DE5\u4F5C\u968E\u6BB5\u3002' }, askForPayment: { noInputDigitalBot: "\u8ACB\u63D0\u4F9B\u4ED8\u6B3E\u8CC7\u8A0A\u4EE5\u7E7C\u7E8C\u3002", noMatchDigitalBot: "\u6211\u4E0D\u7406\u89E3\u60A8\u7684\u56DE\u61C9\u3002\u8ACB\u91CD\u8A66\u3002" }, askForAuthentication: { noInputDigitalBot: "\u8ACB\u63D0\u4F9B\u4ED8\u9A57\u8B49\u8CC7\u8A0A\u4EE5\u7E7C\u7E8C\u3002", noMatchDigitalBot: "\u6211\u4E0D\u7406\u89E3\u60A8\u7684\u56DE\u61C9\u3002\u8ACB\u91CD\u8A66\u3002" }, askSurveyQuestion: { notApplicable: "\u4E0D\u9069\u7528", surveyAnswerOptionSequence: "\u70BA %2$s \u6309\u4E0B %1$s\u3002", surveyAnswerNotApplicableSequence: "\u70BA\u300C\u4E0D\u9069\u7528\u300D\u6309\u4E0B\u661F\u865F\u3002", surveyAnswerNotApplicableWithQuestionSequence: "%1$s\u3002\u70BA\u300C\u4E0D\u9069\u7528\u300D\u6309\u4E0B\u661F\u865F\u3002", voiceSurveyNoInputText: "\u8ACB\u56DE\u7B54\u554F\u984C\u3002", voiceSurveyNoMatchText: "\u6211\u4E0D\u7406\u89E3\u60A8\u3002" }, commonModule: { exitCommonModule: "\u9000\u51FA\u901A\u7528\u6A21\u7D44" }, form: { noInputDigitalBot: "\u8ACB\u5B8C\u6210\u8868\u55AE\u4EE5\u7E7C\u7E8C\u3002", noMatchDigitalBot: "\u8ACB\u5B8C\u6210\u8868\u55AE\u4EE5\u7E7C\u7E8C\u3002" }, messagingTemplate: { noInputDigitalBot: "\u8ACB\u9078\u53D6\u5176\u4E2D\u4E00\u500B\u53EF\u7528\u9078\u9805\u3002", noMatchDigitalBot: "\u8ACB\u9078\u53D6\u5176\u4E2D\u4E00\u500B\u53EF\u7528\u9078\u9805\u3002" }, knowledgeSettings: { knowledgeAnswerHighlightFlowProgressionDefault: "\u7E7C\u7E8C", knowledgeAnswerHighlightFullArticleDefault: "\u6AA2\u8996\u5B8C\u6574\u6587\u7AE0", knowledgeInitialResponseMulti: "\u70BA\u4E86\u8B93\u6211\u91D0\u6E05\u60A8\u7684\u76EE\u6A19\uFF0C\u8ACB\u5F9E\u4EE5\u4E0B\u6E05\u55AE\u4E2D\u9078\u64C7\u4E00\u500B\u6578\u5B57\uFF1A", knowledgeInitialResponseMultiRetry: "\u8ACB\u9078\u64C7\u4E00\u500B\u6578\u5B57\uFF0C\u4F8B\u5982\u300C1\u300D\u3002\n\u4EE5\u4E0B\u518D\u6B21\u5217\u51FA\u9078\u9805\u6E05\u55AE\uFF1A", knowledgeNoMatch: "\u9078\u9805\u7686\u4E0D\u9069\u7528", knowledgeConfirmation: "\u9019\u500B\u7B54\u6848\u662F\u5426\u80FD\u56DE\u7B54\u60A8\u7684\u554F\u984C\uFF1F", knowledgeFollowup: "\u5E0C\u671B\u6211\u5DF2\u56DE\u7B54\u60A8\u7684\u554F\u984C\u3002\u60A8\u53EF\u4EE5\u8A62\u554F\u4EFB\u4F55\u60A8\u53EF\u80FD\u9084\u60F3\u77E5\u9053\u7684\u4E8B\u60C5\u3002" }, noOverlay: { intent: { intentConfirmationStr1: "\u6211\u60F3\u60A8\u8981", intentConfirmationStr2: "\u662F\u55CE\uFF1F" }, youSaid: { youSaidConfirmationStr1: "\u60A8\u8AAA", youSaidConfirmationStr2: "\u662F\u55CE\uFF1F", youSaidConfirmationStr1DigitalBot: "\u60A8\u5DF2\u8F38\u5165" }, noInput: { noInputStr1: "\u8ACB\u8AAA\u51FA\u6216\u8F38\u5165", noInputStr1DigitalBot: "\u8ACB\u8F38\u5165" }, noMatch: { noMatchStr1: "\u8ACB\u7D66\u6211" }, whatIs: { whatIsQuestionStr1: "\u4EC0\u9EBC\u662F", whatIsQuestionStr2: "?" }, iGotContinuation: { iGotContinuationStr1: "\u76EE\u524D\u70BA\u6B62\u6211\u6536\u5230", iGotContinuationStr2: "\u8ACB\u7E7C\u7E8C\u3002" } }, defaultCallFlowOne: "\u9810\u8A2D\u901A\u8A71\u6D41\u7A0B", errorHandlingAgentEscalationConfirmation: "\u60A8\u60F3\u548C\u9867\u554F\u8AC7\u8AC7\uFF0C\u662F\u55CE\uFF1F", errorHandlingAgentEscalationHandover: "\u8F49\u63A5\u4E2D\uFF0C\u8ACB\u7A0D\u5019\u3002", errorHandlingErrorEventHandover: "\u62B1\u6B49\uFF0C\u51FA\u73FE\u932F\u8AA4\u3002\u8ACB\u7A0D\u5019\uFF0C\u6211\u5C07\u70BA\u60A8\u8F49\u63A5\u5354\u52A9\u4EBA\u54E1\u3002", errorHandlingErrorEventHandoverVoiceSurvey: "\u5F88\u62B1\u6B49\uFF0C\u767C\u751F\u932F\u8AA4\u3002\u518D\u898B\u3002", errorHandlingRecognitionEventHandover: "\u62B1\u6B49\uFF0C\u6211\u7121\u6CD5\u77AD\u89E3\u60A8\u7684\u610F\u601D\u3002\u8ACB\u7A0D\u5019\uFF0C\u6211\u5C07\u70BA\u60A8\u8F49\u63A5\u5354\u52A9\u4EBA\u54E1\u3002", errorHandlingRecognitionEventHandoverVoiceSurvey: "\u5F88\u62B1\u6B49\uFF0C\u6211\u5F88\u96E3\u7406\u89E3\u60A8\u3002\u518D\u898B\u3002", errorHandlingTTS: "\u62B1\u6B49\uFF0C\u51FA\u73FE\u932F\u8AA4\u3002\u8ACB\u518D\u6B21\u5617\u8A66\u547C\u53EB\u3002", initialGreetingTTS: "\u60A8\u597D\uFF0C\u9019\u662F\u958B\u59CB\u554F\u5019\u3002", initialState: "\u521D\u59CB\u72C0\u614B", initialBotState: "\u9810\u8A2D Bot", initialDigitalBotState: "\u958B\u59CB\u554F\u5019", initialSurveyBotState: "\u8ABF\u67E5 Bot", intentConfirmation: "\u6211\u60F3\u60A8\u8981 %1$s\uFF0C\u662F\u55CE\uFF1F", mainMenu: "\u4E3B\u529F\u80FD\u8868", mainMenuTTS: "\u60A8\u76EE\u524D\u4F4D\u65BC\u4E3B\u529F\u80FD\u8868\uFF0C\u8ACB\u6309 9 \u65B7\u958B", mainTask: "\u4EFB\u52D9", settingsConfirmationNoInputApology: "\u62B1\u6B49\uFF0C\u6211\u6C92\u807D\u5230\u60A8\u8AAA\u4EC0\u9EBC\u3002\u8ACB\u8AAA\u662F\u6216\u5426\u3002", settingsConfirmationNoInputApologyDigitalBot: '\u5F88\u62B1\u6B49\uFF0C\u6211\u6C92\u6709\u6536\u5230\u60A8\u7684\u4EFB\u4F55\u8F38\u5165\u3002\u8ACB\u8F38\u5165 "\u662F" \u6216 "\u5426"\u3002', settingsConfirmationNoMatchApology: "\u62B1\u6B49\uFF0C\u8ACB\u8AAA\u662F\u6216\u5426\u3002", settingsConfirmationNoMatchApologyDigitalBot: '\u5F88\u62B1\u6B49\uFF0C\u8ACB\u8F38\u5165 "\u662F" \u6216 "\u5426"\u3002', settingsNoInputApology: "\u62B1\u6B49\uFF0C\u6211\u6C92\u807D\u5230\u60A8\u8AAA\u4EC0\u9EBC\u3002", settingsNoInputApologyDigitalBot: "\u5F88\u62B1\u6B49\uFF0C\u6211\u6C92\u6709\u6536\u5230\u60A8\u7684\u4EFB\u4F55\u8F38\u5165\u3002", settingsEndOfSessionMessageDigitalBot: "\u6211\u6709\u4E00\u9663\u5B50\u6C92\u6709\u60A8\u7684\u6D88\u606F\u4E86\uFF0C\u6240\u4EE5\u6211\u8981\u95DC\u9589\u6B64\u804A\u5929\uFF0C\u82E5\u60A8\u518D\u6B21\u9700\u8981\u6211\u7684\u5354\u52A9\uFF0C\u8ACB\u8FD4\u56DE\u3002\u8B1D\u8B1D\u3002", settingsNoMatchApology: "\u62B1\u6B49\u3002", settingsNoToConfirmationApology: "\u662F\u6211\u7684\u932F\u3002", periodicStateName: "\u91CD\u8907\u72C0\u614B" }; + }, 6568: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = i2(30801), o = n2.__importDefault(i2(92661)); + class a extends o.default { + constructor(e3) { + super(e3); + } + get _actionTypeId() { + return r2.findUtilizationLabelActionType; + } + get displayTypeName() { + return this._scriptingName; + } + get isArchActionFindUtilizationLabel() { + return true; + } + get findResult() { + return this._findResult; + } + } + t2.default = a; + }, 6666: (e2, t2, i2) => { + "use strict"; + const n2 = i2(31635), r2 = i2(17604), o = n2.__importStar(i2(59288)), a = n2.__importStar(i2(27341)), s = n2.__importStar(i2(36781)), l = n2.__importStar(i2(1115)), u = n2.__importDefault(i2(92140)), d = i2(12179), c = n2.__importDefault(i2(5730)), p = n2.__importDefault(i2(27203)), _ = n2.__importDefault(i2(97891)), h = i2(81516), m = i2(80428), g = i2(87870), f = i2(16321), T = i2(98442), y = i2(47957); + class S extends c.default { + static get managedProperties() { + return [{ label: y.detectIntent.detectedIntent, options: h.ExpressionTypeStringOptions.create((e3) => e3.setAsOutput().setAllowModeExpression(false).setIninTestingField("detectedIntent")), property: "detectedIntent", type: m.expressionTypeNames.string }, { createDetails: g.NoteActionProperty.createCreateDetails("", "warning", "setLanguageWarning"), property: "languageWarning", yamlOptions: S.createYamlOptions("languageWarning", (e3) => e3.setSkipProperty(true)) }]; + } + constructor(e3, t3) { + super(e3.parentFlow, e3), this.addOptionalPathsFromModel(t3), this._loadModel(t3), this.addAutoCleanedUpEventListener(s.nluCortexIntentClassificationMetadataUpdated, () => { + this.updateIntentPaths(), l.validateAction(this, true, true); + }), this.addAutoCleanedUpEventSinkWatch(s.lastPathActionRemoved, this, this.removeUnusedOutput.bind(this)), this.sortBranches(); + } + get supportsCustomOutputPaths() { + return true; + } + static get branchInfo() { + return [p.default.default]; + } + createBranchesForAllIntents() { + const e3 = []; + try { + this.getIntents().forEach((t3) => { + const i3 = this._ensureBranchExistsForIntent(t3.name, t3.id, false); + e3.push({ intent: t3, branchItem: i3 }); + }); + } catch (e4) { + this.topic.exception(e4, "failure during createBranchesForAllIntents"); + } finally { + this.sortBranches(); + } + return e3; + } + _ensureBranchExistsForIntent(e3, t3, i3) { + let n3 = this.branches.find((e4) => e4.id === t3); + if (n3) n3.label = e3; + else { + const r3 = o.createBranchItemDynamic(this.id, e3, null, true, t3); + n3 = this.addOptionalBranchInfo(r3), i3 && this.sortBranches(); + } + return n3; + } + addBranchForIntent(e3, t3) { + return this._ensureBranchExistsForIntent(e3, t3, true); + } + getIntents() { + var e3, t3; + return (null === (t3 = null === (e3 = this.parentFlow) || void 0 === e3 ? void 0 : e3.nluCortexMetaData) || void 0 === t3 ? void 0 : t3.intents) || []; + } + switchToNewIntentPaths(e3) { + a.switchToNewIntentPaths(this, e3); + } + removeUnusedOutput(e3, t3) { + if (!this.getOptionalBranchInfo(this.id)) return; + const i3 = this.parentFlow.nluCortexMetaData; + i3 && u.default.findIndex(i3.intents, { id: t3.id }) >= 0 || this.removeOptionalBranchInfoById(t3.id, false); + } + updateIntentPaths() { + const e3 = this.parentFlow.nluCortexMetaData; + if (!e3) return; + const t3 = a.translateEmailIntentsToBranchItems(this, e3.intents); + this.switchToNewIntentPaths(t3); + } + validateSupportedLanguages() { + var e3; + const t3 = f.bootstrapService.featureSupport.naturalLanguageUnderstanding.supportedLanguages.map((e4) => { + var t4, i4; + return (null === (t4 = null == e4 ? void 0 : e4.supportedIntentDetectionSettings) || void 0 === t4 ? void 0 : t4.length) > 0 && (null === (i4 = null == e4 ? void 0 : e4.supportedIntentDetectionSettings) || void 0 === i4 ? void 0 : i4.find((e5) => e5.type === a.GENERETIVE_AI_TYPE)) ? e4.language.toLowerCase() : null; + }).filter((e4) => null !== e4), i3 = this.parentFlow.languages.supportedLanguages.map((e4) => e4.toLowerCase()).find((e4) => !t3.includes(e4)); + if (i3) { + const t4 = null === (e3 = T.allLangs[i3]) || void 0 === e3 ? void 0 : e3.text; + this.languageWarning.note = (0, r2.sprintf)(y.naturalLanguageUnderstanding.languageStatusPreviewIntentDetection, null != t4 ? t4 : i3); + } else this.languageWarning.note = null; + } + validate(e3) { + super.validate(e3), this.validateSupportedLanguages(); + const t3 = this.parentFlow.nluCortexMetaData; + e3.isDeep && !this.isReadOnly && t3 && this.updateIntentPaths(), this.isDisabled || this.getIntents().length && u.default.find(this.branches, (e4) => e4.isDynamicBranch && !e4.isDisabled) || e3.addError(this, y.naturalLanguageUnderstanding.nluMustHaveOneIntentForIntentDetection); + } + _initializeDesignTime() { + super._initializeDesignTime(), this.optionalBranchInfo.length || this.createBranchesForAllIntents(); + } + } + S.info = _.default.createActionInfo({ actionClass: S, canBeInTask: true, canBeTreeNode: false, helpTopic: d.helpTopics.actions.detectIntent, modelClass: i2(96646), name: y.detectIntent.detectIntent, scriptingName: "ArchActionDetectIntent" }), t2.A = S; + }, 6677: function(e2, t2, i2) { + "use strict"; + var n2 = this && this.__read || function(e3, t3) { + var i3 = "function" == typeof Symbol && e3[Symbol.iterator]; + if (!i3) return e3; + var n3, r3, o2 = i3.call(e3), a2 = []; + try { + for (; (void 0 === t3 || t3-- > 0) && !(n3 = o2.next()).done; ) a2.push(n3.value); + } catch (e4) { + r3 = { error: e4 }; + } finally { + try { + n3 && !n3.done && (i3 = o2.return) && i3.call(o2); + } finally { + if (r3) throw r3.error; + } + } + return a2; + }, r2 = this && this.__spreadArray || function(e3, t3) { + for (var i3 = 0, n3 = t3.length, r3 = e3.length; i3 < n3; i3++, r3++) e3[r3] = t3[i3]; + return e3; + }; + Object.defineProperty(t2, "__esModule", { value: true }), t2.raceWith = void 0; + var o = i2(89795), a = i2(65212), s = i2(87699); + t2.raceWith = function() { + for (var e3 = [], t3 = 0; t3 < arguments.length; t3++) e3[t3] = arguments[t3]; + return e3.length ? a.operate(function(t4, i3) { + o.raceInit(r2([t4], n2(e3)))(i3); + }) : s.identity; + }; + }, 6697: (e2) => { + e2.exports = "undefined" == typeof window; + }, 6757: function(e2, t2, i2) { + "use strict"; + var n2, r2 = this && this.__extends || (n2 = function(e3, t3) { + return n2 = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(e4, t4) { + e4.__proto__ = t4; + } || function(e4, t4) { + for (var i3 in t4) Object.prototype.hasOwnProperty.call(t4, i3) && (e4[i3] = t4[i3]); + }, n2(e3, t3); + }, function(e3, t3) { + if ("function" != typeof t3 && null !== t3) throw new TypeError("Class extends value " + String(t3) + " is not a constructor or null"); + function i3() { + this.constructor = e3; + } + n2(e3, t3), e3.prototype = null === t3 ? Object.create(t3) : (i3.prototype = t3.prototype, new i3()); + }); + Object.defineProperty(t2, "__esModule", { value: true }), t2.AnimationFrameAction = void 0; + var o = i2(64772), a = i2(35726), s = (function(e3) { + function t3(t4, i3) { + var n3 = e3.call(this, t4, i3) || this; + return n3.scheduler = t4, n3.work = i3, n3; + } + return r2(t3, e3), t3.prototype.requestAsyncId = function(t4, i3, n3) { + return void 0 === n3 && (n3 = 0), null !== n3 && n3 > 0 ? e3.prototype.requestAsyncId.call(this, t4, i3, n3) : (t4.actions.push(this), t4._scheduled || (t4._scheduled = a.animationFrameProvider.requestAnimationFrame(function() { + return t4.flush(void 0); + }))); + }, t3.prototype.recycleAsyncId = function(t4, i3, n3) { + var r3; + if (void 0 === n3 && (n3 = 0), null != n3 ? n3 > 0 : this.delay > 0) return e3.prototype.recycleAsyncId.call(this, t4, i3, n3); + var o2 = t4.actions; + null != i3 && (null === (r3 = o2[o2.length - 1]) || void 0 === r3 ? void 0 : r3.id) !== i3 && (a.animationFrameProvider.cancelAnimationFrame(i3), t4._scheduled = void 0); + }, t3; + })(o.AsyncAction); + t2.AnimationFrameAction = s; + }, 6854: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(84655)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "timePicker"; + } + get displayTypeName() { + return "ArchVariableTimePicker"; + } + get initialValue() { + return this._initialValue; + } + get isArchVariableTimePicker() { + return true; + } + } + t2.default = r2; + }, 6872: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(84655)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "quickReplies"; + } + get initialValue() { + return this._initialValue; + } + get displayTypeName() { + return "ArchVariableQuickReplies"; + } + get isArchVariableQuickReplies() { + return true; + } + } + t2.default = r2; + }, 6953: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importDefault(i2(92140)), o = i2(24032), a = n2.__importDefault(i2(55678)), s = n2.__importStar(i2(75773)), l = i2(50486), u = i2(27862), d = i2(55295), c = (0, o.getTopic)("ttsEngineService"); + class p extends l.EngineService { + constructor() { + super(u.TtsEngine, d); + } + _processBootstrapDataLoaded(e3) { + var t3; + super._processBootstrapDataLoaded(e3), s.getOrgSupportsAudio() && (e3 ? ((null === (t3 = e3.featureSupport) || void 0 === t3 ? void 0 : t3.textToSpeech) ? r2.default.each(e3.featureSupport.textToSpeech.engines, (e4, t4) => { + this.items[t4] = new a.default(e4, t4); + }) : c.error("No featureSupport or textToSpeech section found in bootstrap data."), r2.default.each(e3.languages, (e4) => { + var t4, i3, n3, o2; + if (null === (i3 = null === (t4 = e4.features) || void 0 === t4 ? void 0 : t4.textToSpeech) || void 0 === i3 ? void 0 : i3.engines) { + const t5 = null === (o2 = null === (n3 = e4.features) || void 0 === n3 ? void 0 : n3.textToSpeech) || void 0 === o2 ? void 0 : o2.engines; + r2.default.each(t5, (t6) => { + const i4 = this.items[t6.id]; + i4 ? (i4.addLanguage(e4.id, t6.isDefault, t6.voices), i4.flowTypes = Object.entries(t6.flowTypes).reduce((e5, [t7, i5]) => (i5.isAvailable && e5.push(t7), e5), [])) : c.error(`No engine view model found for id '${t6.id}'`); + }); + } + })) : c.errorWithStack(null, "ttsEngineService._processBootstrapDataLoaded was passed null bootstrapService.")); + } + get className() { + return "ttsEngineService"; + } + getEngineWithVoiceId(e3) { + return r2.default.find(this.items, (t3) => t3.voices[e3]); + } + get engineIdGenesys() { + return "genesys"; + } + get engineIdGenesysEnhanced() { + return "genesys_enhanced"; + } + get engineNameGenesys() { + var e3; + return (null === (e3 = this.getGenesysEngine()) || void 0 === e3 ? void 0 : e3.name) || "Genesys TTS"; + } + get engineNameGenesysEnhanced() { + var e3; + return (null === (e3 = this.getGenesysEnhancedEngine()) || void 0 === e3 ? void 0 : e3.name) || "Genesys Enhanced TTS"; + } + getGenesysEngine() { + return this.items[this.engineIdGenesys]; + } + getGenesysEnhancedEngine() { + return this.items[this.engineIdGenesysEnhanced]; + } + static get defaultId() { + return "__default__"; + } + get defaultId() { + return p.defaultId; + } + loadNewBootstrapData(e3) { + e3 ? (this.resetState(), this._processBootstrapDataLoaded(e3)) : c.errorWithStack(null, "ttsEngineService.loadNewBootstrapData was passed null bootstrapService."); + } + } + t2.default = new p(); + }, 7024: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.ArgumentOutOfRangeError = void 0; + var n2 = i2(9619); + t2.ArgumentOutOfRangeError = n2.createErrorClass(function(e3) { + return function() { + e3(this), this.name = "ArgumentOutOfRangeError", this.message = "argument out of range"; + }; + }); + }, 7098: (e2, t2, i2) => { + let n2 = null; + if (i2(6697)) n2 = i2(44911); + else { + const e3 = i2(29546); + try { + n2 = i2(23041)("./" + e3.getCurrentLanguage() + "/expressionsPc.js"); + } catch (e4) { + n2 = i2(44911); + } + } + n2.then && n2.then((t3) => { + e2.exports = t3; + }), e2.exports = n2; + }, 7221: (e2, t2, i2) => { + "use strict"; + var n2, r2, o, a, s, l, u, d, c, p, _, h; + Object.defineProperty(t2, "__esModule", { value: true }); + const m = i2(31635), g = i2(30801), f = m.__importDefault(i2(38142)), T = m.__importDefault(i2(78432)), y = m.__importDefault(i2(56549)), S = m.__importDefault(i2(94225)), A = i2(26847), N = i2(19284); + class O extends f.default { + constructor(e3) { + super(e3), n2.set(this, void 0), r2.set(this, void 0), o.set(this, void 0), a.set(this, void 0), s.set(this, void 0), l.set(this, void 0), u.set(this, void 0), d.set(this, void 0), c.set(this, void 0), p.set(this, void 0), _.set(this, void 0), h.set(this, void 0), m.__classPrivateFieldSet(this, n2, this.coreFactory.createArchWrapper(e3.askResult)._setNotWritableOverride(true), "f"), m.__classPrivateFieldSet(this, r2, this.coreFactory.createArchWrapper(e3.chooser), "f"), m.__classPrivateFieldSet(this, o, this.coreFactory.createArchWrapper(e3.confirmationMode), "f"), m.__classPrivateFieldSet(this, a, this.coreFactory.createArchWrapper(e3.confirmationQuestion), "f"), m.__classPrivateFieldSet(this, s, this.coreFactory.createArchWrapper(e3.customValidation), "f"), m.__classPrivateFieldSet(this, l, this.coreFactory.createArchWrapper(e3.grammar), "f"), m.__classPrivateFieldSet(this, u, this.coreFactory.createArchWrapper(e3.speechToTextEngineCompleteTimeout), "f"), m.__classPrivateFieldSet(this, d, this.coreFactory.createArchWrapper(e3.speechToTextEngineConfidenceLevel), "f"), m.__classPrivateFieldSet(this, c, this.coreFactory.createArchWrapper(e3.repromptHandling), "f"), m.__classPrivateFieldSet(this, p, this.coreFactory.createArchWrapper(e3.continuationPrompt), "f"), m.__classPrivateFieldSet(this, _, this.coreFactory.createArchWrapper(e3.continuationReprompts), "f"), m.__classPrivateFieldSet(this, h, this.coreFactory.createArchWrapper(e3.customizeContinuation), "f"); + } + get _actionTypeId() { + return g.askForSlotActionType; + } + get displayTypeName() { + return "ArchActionAskForSlot"; + } + get isArchActionAskForSlot() { + return true; + } + get askResult() { + return m.__classPrivateFieldGet(this, n2, "f"); + } + get chooser() { + return m.__classPrivateFieldGet(this, r2, "f"); + } + get confirmationMode() { + return m.__classPrivateFieldGet(this, o, "f"); + } + get confirmationQuestion() { + return m.__classPrivateFieldGet(this, a, "f"); + } + get customValidation() { + return m.__classPrivateFieldGet(this, s, "f"); + } + setLiteralConfirmationMode(e3) { + const t3 = this._infoParm("newConfirmationMode", "setLiteralConfirmationMode"); + this._checkItemIsValidLiteralStringEnum(t3, e3, T.default.BOT_CONFIRMATION_MODES_ALL), this._getCoreViewModel().confirmationMode.setAsLiteral(e3), this.logNote(`confirmation mode set to '${this._getCoreViewModel().confirmationMode.text}'`); + } + setSlot(e3, t3) { + const i3 = this._infoParm("slotName", "setSlot"); + this._checkItemIsValidLiteralString(i3, e3, false), this._checkItemIsValidLiteralBool(i3, t3, true), this._getCoreViewModel().setSelectedSlotNameAndType(e3, void 0, t3); + } + get grammar() { + return m.__classPrivateFieldGet(this, l, "f"); + } + get speechToTextEngineName() { + var e3; + return null === (e3 = this._getCoreViewModel().speechToTextEngine) || void 0 === e3 ? void 0 : e3.nameValue; + } + get speechToTextEngineId() { + var e3; + return null === (e3 = this._getCoreViewModel().speechToTextEngine) || void 0 === e3 ? void 0 : e3.idValue; + } + setSpeechToTextEngineByNameAsync(e3, t3) { + return m.__awaiter(this, void 0, void 0, function* () { + this._checkItemIsValidLiteralString(this._infoParm("engineName", "setSpeechToTextEngineByNameAsync"), e3), this._checkItemIsValidFunction(this._infoParm("callbackFunction", "setSpeechToTextEngineByNameAsync"), t3, true), this._getCoreViewModel().parent.parentFlow.languagesSupportSpeechToTextSettings || this.logErrorAndThrow("flow does not support speech to text settings, can not set speech to text engine by name"); + const i3 = yield y.default.findItemByValueAsync(N.speechToTextEngineManager, e3, "speech to text engine", "name", "name"); + if (i3) return (null == i3 ? void 0 : i3.isBotTranscriptionConnectorTypeOrGrammarBased) || this.logErrorAndThrow("Unable to set a non grammar-based speech to text engine in the ask for slot action."), this._getCoreViewModel().speechToTextEngine.setValue(i3), S.default.executeCallback(this, "setSpeechToTextEngineByNameAsync", t3, this); + }); + } + setSpeechToTextEngineByIdAsync(e3, t3) { + return m.__awaiter(this, void 0, void 0, function* () { + this._checkItemIsValidLiteralString(this._infoParm("engineId", "setSpeechToTextEngineByIdAsync"), e3), this._checkItemIsValidFunction(this._infoParm("callbackFunction", "setSpeechToTextEngineByIdAsync"), t3, true), this._getCoreViewModel().parent.parentFlow.languagesSupportSpeechToTextSettings || this.logErrorAndThrow("flow does not support speech to text settings, can not set speech to text engine by id"); + const i3 = yield y.default.findItemByIdAsync(N.speechToTextEngineManager, e3, "speech to text engine"); + if (i3) return (null == i3 ? void 0 : i3.isBotTranscriptionConnectorTypeOrGrammarBased) || this.logErrorAndThrow("Unable to set a non grammar-based speech to text engine in the ask for slot action."), this._getCoreViewModel().speechToTextEngine.setValue(i3), S.default.executeCallback(this, "setSpeechToTextEngineByIdAsync", t3, this); + }); + } + get speechToTextEngineCompleteTimeout() { + return m.__classPrivateFieldGet(this, u, "f"); + } + get speechToTextEngineConfidenceLevel() { + return m.__classPrivateFieldGet(this, d, "f"); + } + get outputMaxNoInputs() { + return this._getOutputById(A.outputIds.maxNoInputs, true); + } + get outputMaxNoMatches() { + return this._getOutputById(A.outputIds.maxNoMatches, true); + } + get outputSkipResponseCapture() { + return this._getOutputById(A.outputIds.skipResponseCapture, true); + } + get repromptHandling() { + return m.__classPrivateFieldGet(this, c, "f"); + } + get continuationPrompt() { + return m.__classPrivateFieldGet(this, p, "f"); + } + get continuationReprompts() { + return m.__classPrivateFieldGet(this, _, "f"); + } + get customizeContinuation() { + return m.__classPrivateFieldGet(this, h, "f"); + } + } + n2 = /* @__PURE__ */ new WeakMap(), r2 = /* @__PURE__ */ new WeakMap(), o = /* @__PURE__ */ new WeakMap(), a = /* @__PURE__ */ new WeakMap(), s = /* @__PURE__ */ new WeakMap(), l = /* @__PURE__ */ new WeakMap(), u = /* @__PURE__ */ new WeakMap(), d = /* @__PURE__ */ new WeakMap(), c = /* @__PURE__ */ new WeakMap(), p = /* @__PURE__ */ new WeakMap(), _ = /* @__PURE__ */ new WeakMap(), h = /* @__PURE__ */ new WeakMap(), t2.default = O; + }, 7245: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.throttleTime = void 0; + var n2 = i2(62326), r2 = i2(44880), o = i2(5825); + t2.throttleTime = function(e3, t3, i3) { + void 0 === t3 && (t3 = n2.asyncScheduler); + var a = o.timer(e3, t3); + return r2.throttle(function() { + return a; + }, i3); + }; + }, 7302: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importStar(i2(85705)), o = n2.__importStar(i2(55656)), a = n2.__importDefault(i2(94225)), s = i2(27844), l = n2.__importDefault(i2(45894)), u = n2.__importDefault(i2(66978)); + class d extends l.default { + constructor(e3) { + super(e3, s.smsPhoneNumberManager); + } + get _globalTypeName() { + return "phoneNumber"; + } + get displayTypeName() { + return "ArchValuePhoneNumber"; + } + get isArchValuePhoneNumber() { + return true; + } + _setLiteralPhoneNumber(e3, t3) { + return n2.__awaiter(this, void 0, void 0, function* () { + if (this._coreExpression.options.literalUsesSmsPhoneNumberDropdown) { + const e4 = o.splitRawPhoneNumber(t3); + yield this.setLiteralBySmsPhoneNumberIdAsync(`+${e4.dialingCode}${e4.number}`); + } + this.logNote("setting phone number to literal string '" + t3 + "'"), this._setLiteral(this._infoVal("", e3), t3); + }); + } + setLiteralPhoneNumber(e3) { + const t3 = this._infoParm("phoneNumberVal", "setLiteralPhoneNumber"); + this._checkItemIsValidLiteralString(t3, e3, true), null == e3 && (e3 = ""); + const i3 = o.validateLiteralString(e3, this._coreExpression.label); + this._checkItem(t3, void 0 !== i3, i3), this._setLiteralPhoneNumber("setLiteralPhoneNumber", e3); + } + setLiteralSipNumber(e3) { + const t3 = this._infoParm("uri", "setLiteralSipNumber"); + this._checkItemIsValidLiteralString(t3, e3, false), this._setLiteralPhoneNumber("setLiteralSipNumber", "sip:" + e3); + } + setLiteralSipsNumber(e3) { + const t3 = this._infoParm("uri", "setLiteralSipsNumber"); + this._checkItemIsValidLiteralString(t3, e3, false), this._setLiteralPhoneNumber("setLiteralSipsNumber", "sips:" + e3); + } + setLiteralTelephoneNumber(e3, t3) { + return n2.__awaiter(this, void 0, void 0, function* () { + const i3 = this._infoParm("dialingCode", "setLiteralPhoneNumber"); + this._checkItemIsValidLiteralString(i3, e3, false); + const n3 = this._infoParm("subscriberNumber", "setLiteralPhoneNumber"); + this._checkItemIsValidLiteralString(n3, t3, false), e3 = e3.trim(), t3 = t3.trim(); + const a2 = 0 === e3.indexOf("+") ? e3.substr(1) : e3; + this._checkItem(i3, !r2.dialingCodes[a2], "'" + e3 + "' is not a valid dialing code."); + const s2 = "tel:+" + a2 + t3, l2 = o.validateLiteralString(s2, this._coreExpression.label); + this._checkItem(i3, void 0 !== l2, l2), yield this._setLiteralPhoneNumber("setLiteralTelephoneNumber", s2); + }); + } + setLiteralBySmsPhoneNumberIdAsync(e3, t3) { + return this._checkItemIsValidLiteralString(this._infoParm("smsPhoneNumberId", "setLiteralBySmsPhoneNumberIdAsync"), e3), this._checkItemIsValidFunction(this._infoParm("callbackFunction", "setLiteralBySmsPhoneNumberIdAsync"), t3, true), u.default.addPromise(this._setLiteralByIdAsync(e3), "setLiteralBySmsPhoneNumberIdAsync").then(() => a.default.executeCallback(this, "setLiteralBySmsPhoneNumberIdAsync", t3, this)); + } + } + t2.default = d; + }, 7320: (e2, t2, i2) => { + function n2() { + n2.baseConstructor.apply(this, arguments); + } + i2(11475).extend(n2, "FileVariable", true), Object.defineProperties(n2.prototype, { typeIdentifier: { writable: true } }), e2.exports = n2; + }, 7340: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.BaseFindSystemObjectActionModel = void 0; + const n2 = i2(31635), r2 = i2(80934), o = i2(80295), a = i2(80295), s = i2(7401); + class l extends r2.BaseActionWithOutputsModel { + constructor(e3) { + super(e3), (0, a.makeUnenumerable)(this, "_findResult"); + } + get findResult() { + return this._findResult; + } + set findResult(e3) { + this._findResult = this.reviveItem(e3, s); + } + pasteReIdOrRename(e3) { + super.pasteReIdOrRename(e3), this._findResult.pasteReIdOrRename(e3); + } + pasteResolveOldToNewValues(e3) { + super.pasteResolveOldToNewValues(e3), this._findResult.pasteResolveOldToNewValues(e3); + } + } + t2.BaseFindSystemObjectActionModel = l, n2.__decorate([(0, o.enumerable)(true), n2.__metadata("design:type", Object), n2.__metadata("design:paramtypes", [Object])], l.prototype, "findResult", null); + }, 7342: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(92140)), r2 = i2(7098), o = i2(4087), a = {}; + n2.default.each(o.expression, function(e3, t3) { + a[t3] = e3; + }), n2.default.each(r2.expression, function(e3, t3) { + a[t3] = e3; + }), a.properties = {}, n2.default.each(o.properties, function(e3, t3) { + a.properties[t3] = e3; + }), n2.default.each(r2.properties, function(e3, t3) { + a.properties[t3] = e3; + }), t2.default = a; + }, 7379: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.allStringBodyHandlingTypes = t2.allStringBodyHandlingTypesForAutomate = t2.allStringBodyHandlingTypesForBots = t2.removeAllFormatting = t2.none = t2.convertFormattingToHtml = t2.convertFormattingToMarkdown = void 0; + const n2 = i2(47957); + t2.convertFormattingToMarkdown = { displayString: n2.stringBodyHandlingTypes.stringBodyHandlingTypeConvertToMarkdownLabel, description: n2.stringBodyHandlingTypes.stringBodyHandlingTypeConvertToMarkdownDescription, id: "convertToMarkdown" }, t2.convertFormattingToHtml = { displayString: n2.stringBodyHandlingTypes.stringBodyHandlingTypeConvertToHtmlLabel, description: n2.stringBodyHandlingTypes.stringBodyHandlingTypeConvertToHtmlDescription, id: "convertToHtml" }, t2.none = { displayString: n2.speechToText.noneLabel, description: n2.stringBodyHandlingTypes.stringBodyHandlingTypeNoneDescription, id: "none" }, t2.removeAllFormatting = { displayString: n2.stringBodyHandlingTypes.stringBodyHandlingTypeRemoveAllFormattingLabel, description: n2.stringBodyHandlingTypes.stringBodyHandlingTypeRemoveAllFormattingDescription, id: "removeAllFormatting" }, t2.allStringBodyHandlingTypesForBots = [t2.convertFormattingToMarkdown, t2.removeAllFormatting], t2.allStringBodyHandlingTypesForAutomate = [t2.convertFormattingToHtml, t2.convertFormattingToMarkdown, t2.none, t2.removeAllFormatting], t2.allStringBodyHandlingTypes = [t2.convertFormattingToMarkdown, t2.none, t2.removeAllFormatting]; + }, 7401: (e2, t2, i2) => { + const n2 = i2(92140), r2 = i2(42989), o = i2(45214), a = i2(63352), { expressionTypeNames: s } = i2(80428), { globalTypes: l } = i2(14394), { uuid: u } = i2(9456), d = i2(24032).getTopic("ExpressionModel"); + function c() { + Object.defineProperties(this, { _properties: { writable: true } }), this.config = void 0, this.text = "", this.type = void 0, this.uiMetaData = void 0, this.metaData = void 0, this.version = void 0, this.dependencies = void 0, c.baseConstructor.apply(this, arguments); + } + o.extend(c, "Expression"), Object.defineProperties(c.prototype, { properties: { enumerable: true, get: function() { + return this._properties; + }, set: function(e3) { + this._properties = this.reviveMap(e3, c, false); + } }, setProperty: { value: function(e3, t3) { + this._properties || (this._properties = {}), this._properties[e3] = t3; + } }, getProperty: { value: function(e3) { + if (this._properties && e3) return this._properties[e3]; + } }, getUniqueReplacementStr: { value: function() { + return `~${u()}~`; + } }, removeStringLiterals: { value: function(e3) { + const t3 = { exprLitToGuidText: e3, guidToStringMap: {} }; + if (!n2.isString(e3) && e3.length > 5) return t3; + let i3 = false; + const r3 = e3.split(""), o2 = r3.length; + let a2 = "", s2 = ""; + for (let e4 = 0; e4 < o2; e4++) switch (r3[e4]) { + case '"': + if (i3) { + const e5 = this.getUniqueReplacementStr(); + a2 += e5, t3.guidToStringMap[e5] = s2 + '"', s2 = ""; + } + i3 = !i3, i3 && (s2 = '"'); + break; + case "\\": + if (!i3) { + a2 += "\\"; + break; + } + if (e4 + 1 >= o2) { + s2 += "\\"; + break; + } + switch (r3[e4 + 1]) { + case "\\": + s2 += "\\\\", e4++; + break; + case "n": + case "r": + case "t": + case '"': + s2 = s2 + "\\" + r3[e4 + 1], e4++; + break; + default: + s2 += r3[e4]; + } + break; + default: + i3 ? s2 += r3[e4] : a2 += r3[e4]; + } + if (s2) { + const e4 = this.getUniqueReplacementStr(); + a2 += e4, t3.guidToStringMap[e4] = s2, s2 = ""; + } + return t3.exprLitToGuidText = a2, t3; + } }, pasteReplaceOldVarNamesWithNewNames: { value: function(e3, t3) { + const i3 = e3.pasteContext.getOldVariableNameToNewNameArray(); + if (!n2.isString(t3) || t3.trim().length < 6 || 0 === i3.length) return t3; + const r3 = this.removeStringLiterals(t3), o2 = r3.guidToStringMap; + return t3 = r3.exprLitToGuidText, i3.length && n2.each(i3, function(e4) { + const i4 = this.getUniqueReplacementStr(), n3 = e4.oldVarName + "(?![A-Za-z0-9_\xC0-\xD6\xD8-\xF6\xF8-\u1FFF\u3040-\u318F\u3300-\u337F\u3400-\u3D2D\u4E00-\u9FFF\uF900\uFAFF])", r4 = new RegExp(n3, "ig"), a2 = t3.replace(r4, i4); + a2 !== t3 && (o2[i4] = e4.newVarName, t3 = a2); + }.bind(this)), n2.each(o2, function(e4, i4) { + const n3 = new RegExp(i4, "ig"); + t3 = t3.replace(n3, e4); + }.bind(this)), t3; + } }, _reviveBuilderModel: { value: function(e3) { + if (this.uiMetaData && this.uiMetaData.builder) return e3.reviveBuilderModel(this.uiMetaData.builder); + } }, pasteReIdOrRename: { value: function(e3) { + if (!this.uiMetaData) return; + const t3 = this._reviveBuilderModel(e3); + t3 && t3.pasteReIdOrRename(e3), n2.each(this._properties, (t4) => { + t4.pasteReIdOrRename(e3); + }); + } }, _pasteReplaceOldVarNamesWithNewNamesForExpression: { value: function(e3) { + const t3 = this.pasteReplaceOldVarNamesWithNewNames(e3, this.text); + t3 !== this.text && (e3.log(`expressionModel : Updating expression text from '${this.text}' to '${t3}'`), this.text = t3, this.config = void 0); + } }, pasteResolveOldToNewValues: { value: function(e3) { + if (!this.uiMetaData) return; + const t3 = this._reviveBuilderModel(e3); + if (t3 && t3.pasteResolveOldToNewValues(e3), n2.each(this._properties, (t4) => { + t4.pasteResolveOldToNewValues(e3); + }), l.audio.expressionType === this.type) this.uiMetaData.sequenceItems && n2.each(this.uiMetaData.sequenceItems, (t4) => { + switch (t4.type) { + case r2.expression: { + const i3 = new this.constructor(t4.model); + i3._pasteReplaceOldVarNamesWithNewNamesForExpression(e3), t4.model = i3.toJSON(), t4.parameter = i3.text; + break; + } + case r2.data: + t4.variableId = e3.pasteContext.oldIdToNewIdMap.resolveFlowGroupedMapping(e3.pasteContext.currentContentFlowId, t4.variableId), t4.parameter = this.pasteReplaceOldVarNamesWithNewNames(e3, t4.parameter); + break; + case r2.blank: + case r2.prompt: + case r2.tts: + break; + default: + d.error(`Attempting to paste an audio sequence item type '${t4.type}' that we don't handle`); + } + }), this.uiMetaData.customExpressionMode && this._pasteReplaceOldVarNamesWithNewNamesForExpression(e3); + else switch (this.uiMetaData.mode) { + case a.builder: + case a.expression: + this._pasteReplaceOldVarNamesWithNewNamesForExpression(e3); + break; + case a.variable: + if (n2.isString(this.text)) { + const t4 = e3.pasteContext.getOldVariableNameToNewNameArray(), i3 = this.text.toLowerCase(), r3 = n2.find(t4, function(e4) { + return e4.oldVarName === i3; + }); + r3 && (e3.log(`expressionModel : Updating variable name from '${this.text}' to '${r3.newVarName}'`), this.text = r3.newVarName, this.config = void 0); + } + case a.literal: + case a.none: + case a.noValue: + } + } }, setStringLiteralBlank: { value: function() { + this.setStringLiteral(""); + } }, setStringLiteral: { value: function(e3) { + this.config = { lit: { pos: 1, text: e3, type: s.string } }, this.text = e3, this.metaData = {}, this.uiMetaData = { mode: a.literal }; + } } }), e2.exports = c; + }, 7452: (e2, t2, i2) => { + const n2 = i2(55892); + function r2() { + r2.baseConstructor.apply(this, arguments); + } + i2(22124).extend(r2, "AudioConnectorList"), Object.defineProperties(r2.prototype, { entities: { enumerable: true, get: function() { + return this._entities; + }, set: function(e3) { + this._entities = this.reviveArray(e3, n2); + } } }), e2.exports = r2; + }, 7473: (e2, t2, i2) => { + const n2 = i2(92140), r2 = i2(39950); + function o() { + Object.defineProperties(this, { _contents: { writable: true } }), o.baseConstructor.apply(this, arguments), n2.isUndefined(this._contents) && (this._contents = []); + } + i2(28403).extend(o, "ClipboardObjectModel", true), Object.defineProperties(o.prototype, { contents: { enumerable: true, get: function() { + return this._contents; + }, set: function(e3) { + this._contents = this.reviveArray(e3, r2); + } } }), e2.exports = o; + }, 7584: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(30801), r2 = i2(92330); + class o extends r2 { + constructor(e3) { + super(e3); + } + } + t2.default = o, r2.extend(o, n2.commonModuleTaskActionType, true); + }, 7635: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.ArchDefinitionAction = void 0; + const n2 = i2(92448); + class r2 extends n2.ArchBaseDefinitionActionMenu { + constructor(e3) { + super(e3); + } + get displayTypeName() { + return "ArchDefinitionAction"; + } + get isArchDefinitionAction() { + return true; + } + } + t2.ArchDefinitionAction = r2; + }, 7652: (e2, t2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.argsOrArgArray = void 0; + var i2 = Array.isArray; + t2.argsOrArgArray = function(e3) { + return 1 === e3.length && i2(e3[0]) ? e3[0] : e3; + }; + }, 7658: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importDefault(i2(83663)), o = n2.__importDefault(i2(78432)); + class a extends r2.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "chooser"; + } + get carousel() { + return this._getAssignableProperty("carousel"); + } + get presentation() { + return this._getAssignableProperty("presentation")._setWritableOverride(true); + } + get quickReplies() { + return this._getAssignableProperty("quickReplies"); + } + get timePicker() { + return this._getAssignableProperty("timePicker"); + } + get listPicker() { + return this._getAssignableProperty("listPicker"); + } + setPresentationMode(e3) { + this._checkItemIsValidLiteralStringEnum(this._infoParm("setPresentationMode", "presentationMode"), e3, o.default.CHOOSER_PRESENTATION_MODES_ALL), this.presentation.setLiteralString(e3), this.logNote(`setting the presentation mode to '${e3}'.`); + } + get displayTypeName() { + return "ArchValueChooser"; + } + get isArchValueChooser() { + return true; + } + } + t2.default = a; + }, 7800: (e2, t2, i2) => { + const n2 = i2(45214), r2 = i2(81161), o = i2(45889).default; + function a() { + Object.defineProperties(this, { _dynamicSlotTypes: { writable: true }, _dynamicTimeslots: { writable: true } }), this.intentsToReusableTasks = {}, this.listPickerMappings = {}, this.slotsToGrammars = {}, this.slotToSlotVariables = {}, this.slotToReferencingIntents = {}, this.slotToEntityTypes = {}, a.baseConstructor.apply(this, arguments); + } + Object.defineProperties(a.prototype, { dynamicSlotTypes: { enumerable: true, get: function() { + return this._dynamicSlotTypes; + }, set: function(e3) { + this._dynamicSlotTypes = this.reviveMap(e3, r2, false); + } } }), Object.defineProperties(a.prototype, { dynamicTimeslots: { enumerable: true, get: function() { + return this._dynamicTimeslots; + }, set: function(e3) { + this._dynamicTimeslots = this.reviveMap(e3, o, false); + } } }), n2.extend(a, "NluMetaDataMappings"), e2.exports = a; + }, 7830: (e2, t2, i2) => { + "use strict"; + var n2; + Object.defineProperty(t2, "__esModule", { value: true }); + const r2 = i2(31635), o = r2.__importDefault(i2(92140)), a = i2(12179), s = r2.__importDefault(i2(68460)), l = i2(59946), u = i2(58265), d = i2(47957), c = [l.Disconnect, l.Continue]; + class p extends s.default { + constructor(e3) { + super(e3), n2.set(this, void 0), this.modelPropertyName = "inboundEmailSettings"; + } + get id() { + return "inboundEmailSettings"; + } + get className() { + return "InboundEmailSettingsViewModel"; + } + get helpTopic() { + return a.helpTopics.treeNodes.inboundEmailSettings; + } + get isInboundEmailSettingsNode() { + return true; + } + get nodeGuxIcon() { + return "fa/gears-regular"; + } + getConfiguration(e3, t3) { + var i3; + if (null == t3 ? void 0 : t3.isForFlowYaml) { + const e4 = o.default.findWhere(c, { name: null === (i3 = this.autoGeneratedEmailHandlingType) || void 0 === i3 ? void 0 : i3.name }); + if (!e4) return null; + const t4 = { emailHandling: {} }; + return t4.emailHandling[e4.scriptingName] = { none: true }, t4; + } + e3.inboundEmailSettings || (e3.inboundEmailSettings = new u()), e3.inboundEmailSettings.autoGeneratedEmailHandlingType = this.autoGeneratedEmailHandlingType; + } + getDisplayName() { + return d.inboundEmailSettings.treeLabel; + } + loadConfiguration(e3) { + e3.inboundEmailSettings || (e3.inboundEmailSettings = new u()), void 0 === e3.inboundEmailSettings.autoGeneratedEmailHandlingType && (e3.inboundEmailSettings.autoGeneratedEmailHandlingType = l.Disconnect), r2.__classPrivateFieldSet(this, n2, e3, "f"); + } + get autoGeneratedEmailHandlingType() { + return r2.__classPrivateFieldGet(this, n2, "f") && r2.__classPrivateFieldGet(this, n2, "f").inboundEmailSettings && r2.__classPrivateFieldGet(this, n2, "f").inboundEmailSettings.autoGeneratedEmailHandlingType ? r2.__classPrivateFieldGet(this, n2, "f").inboundEmailSettings.autoGeneratedEmailHandlingType : null; + } + set autoGeneratedEmailHandlingType(e3) { + r2.__classPrivateFieldGet(this, n2, "f") && r2.__classPrivateFieldGet(this, n2, "f").inboundEmailSettings && (r2.__classPrivateFieldGet(this, n2, "f").inboundEmailSettings.autoGeneratedEmailHandlingType = e3); + } + get autoGeneratedEmailHandlingTypes() { + return c; + } + get wrappedYamlName() { + return "settingsInboundEmailHandling"; + } + } + n2 = /* @__PURE__ */ new WeakMap(), t2.default = p; + }, 7848: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(20692)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "timeCollection"; + } + get displayTypeName() { + return "ArchVariableTimeCollection"; + } + get initialValue() { + return this._initialValue; + } + get isArchVariableTimeCollection() { + return true; + } + } + t2.default = r2; + }, 7862: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importDefault(i2(78432)), o = n2.__importDefault(i2(76634)), a = n2.__importDefault(i2(73198)); + class s extends o.default { + constructor(e3) { + super(e3), this._suppressRecording = this.coreFactory.createArchValueFromExpression(e3.suppressRecording); + } + get displayTypeName() { + return "ArchSettingsSpeechRecFlow"; + } + get _allowBlankObjectId() { + return false; + } + get asrEnabledOnFlow() { + return this._getCoreViewModel().disableAsr.text !== a.default.true; + } + set asrEnabledOnFlow(e3) { + this._checkItemIsValidLiteralBool(this._infoPropSet("enableFlowSpeechRec", "asrEnabledOnFlow"), e3), this.logNote("setting flow speech rec enabled to '" + e3 + "'"), this._getCoreViewModel().disableAsr.setAsLiteral((!e3).toString()); + } + get asrCompanyDir() { + const e3 = this._getCoreViewModel().asrCompanyDir; + return e3 || this._logErrorInternalAndThrow("unknown company directory speech rec configuration"), e3; + } + set asrCompanyDir(e3) { + this._checkItemIsValidLiteralStringEnum(this._infoPropSet("newCompanyDirectoryAsrValue", "asrCompanyDir"), e3, r2.default.SPEECH_REC_COMPANY_MODES_ALL), this.logNote("setting company directory speech rec support to '" + e3 + "'."); + const t3 = this._getCoreViewModel(); + switch (e3) { + case r2.default.SPEECH_REC_COMPANY_MODES.entireFlow: + t3.speechRecCompanyDirectory.setAsLiteral(a.default.true), t3.disableAsrCompanyDirectory.setAsLiteral(a.default.false); + break; + case r2.default.SPEECH_REC_COMPANY_MODES.none: + t3.speechRecCompanyDirectory.setAsLiteral(a.default.false), t3.disableAsrCompanyDirectory.setAsLiteral(a.default.true); + break; + case r2.default.SPEECH_REC_COMPANY_MODES.startUpObject: + t3.speechRecCompanyDirectory.setAsLiteral(a.default.false), t3.disableAsrCompanyDirectory.setAsLiteral(a.default.false); + } + } + get logStr() { + if (!this._coreSpeechRecSettingsViewModel) return this.logStrTypeOnly; + const e3 = []; + return this._appendLogStrType(e3, this.displayTypeName), this._appendLogStrParentFlowInfo(e3, this._getCoreViewModel()), this._createLogStrFromParts(e3); + } + get isArchSettingsSpeechRecFlow() { + return true; + } + get suppressRecording() { + return this._suppressRecording; + } + } + t2.default = s; + }, 7878: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.ResponseAssetType = void 0; + const n2 = i2(31635), r2 = i2(27491), o = n2.__importDefault(i2(22226)), a = i2(94765), s = i2(80428), l = i2(98364), u = i2(14394), d = i2(63345); + class c extends a.ExpressionType { + constructor(e3, t3, i3) { + super(e3, t3, i3); + } + get className() { + return "ResponseAssetType"; + } + canConvertLitToExpression(e3) { + return r2.expressionDataService.isFunctionTextAvailableForFlowTypeAndOperandTypes("FindResponseAsset", e3, [u.globalTypes.string]); + } + convertLitToExpression(e3, t3) { + return t3 && this.canConvertLitToExpression(e3) ? `FindResponseAsset(${o.default.getQuotedExpressionStringLiteral(t3)})` : ""; + } + _getLiteralValueOfExpression() { + return ""; + } + get listManager() { + return d.responseAssetManager; + } + createExpressionOptionClass() { + return new l.ExpressionTypeResponseAssetOptions(); + } + } + t2.ResponseAssetType = c, c.typeIdentifier = s.expressionTypeNames.responseAsset; + }, 7946: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(54063)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "agentScorePairCollection"; + } + get displayTypeName() { + return "ArchValueAgentScorePairCollection"; + } + get isArchValueAgentScorePairCollection() { + return true; + } + } + t2.default = r2; + }, 7990: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importDefault(i2(92140)), o = n2.__importDefault(i2(55988)), a = i2(8462); + class s extends o.default { + constructor(e3) { + super(e3), this._checkItemUndefinedOrNull(this._infoParmCtor("coreVariableValuePairs"), e3); + } + get displayTypeName() { + return "ArchBaseVariableValuePairs"; + } + _addVariableValueAssignment(e3, t3, i3, n3, o2, s2) { + const l = this._infoParm("archDataType", "addVariableValueAssignment"); + this._checkItem(l, !e3 || !e3.isArchDataType, "you must pass in a valid Architect data type for the statement to create"), this._checkItem(l, !e3.isScriptCreatableForFlow(this.parentFlow), "the Architect data type " + e3.label + " is not creatable from scripting for the flow type '" + this._coreExpressionContainerViewModel.parentFlow.type + "'.The data type's isScriptCreatableForFlowType must return true to be valid for use when creating an update data statement"); + const u = this._coreExpressionContainerViewModel.add(null, e3._getCoreViewModel(), o2); + u.expression.options ? u.expression.options.allowSecure = true === n3 : u.expression.options = (0, a.buildOptions)(u.expression.type, void 0, this.parentFlow).setAllowSecure(true === n3); + const d = this.coreFactory.createArchBaseVariableValuePair(u); + return t3 && (s2 ? "string" == typeof t3 ? d.valueVariableToAssignTo.setExpression(t3) : d.valueVariableToAssignTo.setExpressionFromVariable(t3) : d.setVariableToAssignTo(t3), r2.default.isString(i3) && d.valueToAssign.setExpression(i3)), d; + } + _createVariableValuePairArray() { + const e3 = [], t3 = this._getCoreViewModel(); + return t3 && r2.default.each(t3.items, (t4) => { + e3.push(this.coreFactory.createArchBaseVariableValuePair(t4)); + }), e3; + } + get isArchBaseVariableValuePairs() { + return true; + } + } + t2.default = s; + }, 8016: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(20692)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "surveyQuestionGroupCollection"; + } + get displayTypeName() { + return "ArchVariableSurveyQuestionGroupCollection"; + } + get initialValue() { + return this._initialValue; + } + get isArchVariableSurveyQuestionGroupCollection() { + return true; + } + } + t2.default = r2; + }, 8066: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = i2(96618), o = (i2(69706), i2(17604)), a = n2.__importDefault(i2(92140)), s = n2.__importStar(i2(10798)), l = i2(62974), u = i2(4333), d = i2(13110), c = i2(28562), p = n2.__importDefault(i2(73198)), _ = (n2.__importStar(i2(63352)), i2(80428)), h = n2.__importStar(i2(24032)), m = n2.__importDefault(i2(15244)), g = i2(67607), f = i2(82319), T = i2(81516), y = i2(99469), S = n2.__importDefault(i2(22917)), A = n2.__importStar(i2(1183)), N = n2.__importStar(i2(1115)), O = n2.__importDefault(i2(4648)), I = i2(12179), v = i2(10016), C = i2(15008), b = (i2(21733), i2(47957)), E = h.getTopic("BotFlowEventHandlingViewModel"); + class R extends v.BaseEventHandlingViewModel { + constructor(e3) { + super(e3, C), this._recognitionHandlingType = m.default.Exit, this._handlingTypes = this.parentFlow.definition.errorHandlingTypes, 1 === this._handlingTypes.length ? (this.handlingType = this._handlingTypes[0], this.recognitionHandlingType = this._handlingTypes[0]) : this._handlingTypes.length > 1 && (this.handlingType = m.default.Exit, this.recognitionHandlingType = m.default.Exit, this.handlingTypeDescription = (0, o.sprintf)(b.customNodes.eventHandling.eventHandlingErrorEventHandlingDescription, this._handlingTypes[1].label, this._handlingTypes[0].label), this.botFlowEscalationRecognitionHandlingV2 && (this.parentFlow.isDigitalBotFlow || this.parentFlow.isBotFlow) ? this.recognitionHandlingTypeDescription = (0, o.sprintf)(b.customNodes.eventHandling.eventHandlingRecognitionFailureHandlingWithJumpToTaskDescription, b.actions.askForActionGeneric, b.actions.askForNLUNextIntentAction, this.recognitionHandlingTypes[1].label, this.recognitionHandlingTypes[0].label, this.recognitionHandlingTypes[2].label) : this.recognitionHandlingTypeDescription = (0, o.sprintf)(b.customNodes.eventHandling.eventHandlingRecognitionFailureHandlingDescription, b.actions.askForActionGeneric, b.actions.askForNLUNextIntentAction, this.recognitionHandlingTypes[1].label, this.recognitionHandlingTypes[0].label)); + } + get className() { + return "BotFlowEventHandlingViewModel"; + } + get handlingTypes() { + return this.botFlowEscalationRecognitionHandlingV2 && (this.parentFlow.isDigitalBotFlow || this.parentFlow.isBotFlow) ? a.default.without(this._handlingTypes, m.default.Task) : this._handlingTypes; + } + get recognitionHandlingTypes() { + return this.botFlowEscalationRecognitionHandlingV2 && (this.parentFlow.isDigitalBotFlow || this.parentFlow.isBotFlow) ? [...this._handlingTypes, m.default.Task] : this._handlingTypes; + } + get recognitionHandlingType() { + return this._recognitionHandlingType; + } + set recognitionHandlingType(e3) { + this._recognitionHandlingType = e3, this._updateRecognitionHandingOutOfService(), N.validateNode(this, true); + } + _updateRecognitionHandingOutOfService() { + this.recognitionEventTask && (this.recognitionEventTask.outOfService = this._recognitionHandlingType !== m.default.Task, this.recognitionEventHandover.outOfService = this._recognitionHandlingType === m.default.Task, this.subsequentRecognitionFailures.outOfService = this._recognitionHandlingType !== m.default.Task); + } + get helpTopic() { + return I.helpTopics.treeNodes.eventHandling; + } + get isBotFlowEventHandlingViewModel() { + return true; + } + get botFlowEscalationRecognitionHandlingV2() { + return s.isFeatureAvailable(O.default.botFlowEscalationRecognitionHandlingV2); + } + getConfiguration(e3, t3) { + if (null == t3 ? void 0 : t3.isForFlowYaml) { + const i4 = super.getConfiguration(e3, t3); + if (i4.recognitionEventHandover) { + const e4 = i4.recognitionEventHandover; + delete i4.recognitionEventHandover, i4.recognitionFailureEventHandover = e4; + } + if (a.default.isNullOrUndefined(this.recognitionHandlingType)) E.error(`Matching handlingTypeEnum not found for recognitionHandlingType value '${this.recognitionHandlingType}'`); + else { + const n3 = this.getConfigurationForHandlingProperty(e3, t3, this.recognitionHandlingType, this.recognitionEventTask), r3 = a.default.tryWrapObject(n3, "recognitionFailureEventHandling"); + a.default.extend(i4, r3), this.recognitionHandlingType === m.default.Task && delete i4.recognitionEventHandover; + } + if (a.default.isNullOrUndefined(this.agentEscalationHandling.handlingType)) E.error(`Matching handlingTypeEnum not found for agentEscalationHandling value '${this.agentEscalationHandling.handlingType}'`); + else if (this.botFlowEscalationRecognitionHandlingV2 && (this.parentFlow.isBotFlow || this.parentFlow.isDigitalBotFlow)) { + const n3 = this.getConfigurationForHandlingProperty(e3, t3, this.agentEscalationHandling.handlingType, this.agentEscalationTask), r3 = a.default.tryWrapObject(n3, "agentEscalationHandling"); + a.default.extend(i4, r3), this.agentEscalationHandling.handlingType === m.default.Task && delete i4.agentEscalationHandover; + } + if (i4.subsequentRecognitionFailures) { + const e4 = i4.subsequentRecognitionFailures; + delete i4.subsequentRecognitionFailures, i4.subsequentRecognitionFailuresHandlingType = e4; + } + return i4; + } + const i3 = super.getConfiguration(e3, t3); + return e3.errorHandling.recognitionHandlingType = this.recognitionHandlingType, e3.errorHandling.subsequentRecognitionFailuresHandlingType = this.subsequentRecognitionFailures.text, delete e3.errorHandling.subsequentRecognitionFailures, i3; + } + loadConfiguration(e3) { + super.loadConfiguration(e3), e3.errorHandling.recognitionHandlingType && (this.recognitionHandlingType = e3.errorHandling.recognitionHandlingType), e3.errorHandling.subsequentRecognitionFailuresHandlingType && (this.subsequentRecognitionFailures.text = e3.errorHandling.subsequentRecognitionFailuresHandlingType); + } + static get managedProperties() { + return [{ label: b.customNodes.eventHandling.enableAgentEscalationLabel, type: _.expressionTypeNames.boolean, property: "enableAgentEscalation", options: g.ExpressionTypeBooleanOptions.create((e3) => e3.setDescriptionInfo(b.customNodes.eventHandling.enableAgentEscalationLabel, b.customNodes.eventHandling.enableAgentEscalationDescription).setIninTestingField("enableAgentEscalation").setDefaultText(p.default.true).setIsOptional(false).setFeatureConfigName(O.default.botFlowsAgentEscalationEnhancementsPhase1Feature).setBoolText(b.generic.genericOn, b.generic.genericOff).setValueChangedCallback((e4) => e4.parent.updateSettingsDependentOnAgentEscalation())) }, { label: b.customNodes.eventHandling.handover, type: _.expressionTypeNames.communication, property: "errorEventHandover", options: f.ExpressionTypeCommunicationOptions.create((e3) => e3.setIninTestingField("errorEventHandover").setDescriptionInfo(b.customNodes.eventHandling.handover, b.customNodes.eventHandling.eventHandlingErrorEventHandoverDescription).setIsOptional(true).setDefaultToBuilderId(c.builderIds.parts.genericCommunication).setBuilderLanguagesSequenceConfig(l.botFlowErrorEventHandlingSequences.errorHandlingErrorEventHandoverSequence)), optionsForSpecificFlowTypes: [{ flowTypes: [r2.flowTypes.flowTypeDigitalBot], options: f.ExpressionTypeCommunicationOptions.create((e3) => e3.setIninTestingField("errorEventHandover").setDescriptionInfo(b.customNodes.eventHandling.handover, b.customNodes.eventHandling.eventHandlingErrorEventHandoverDescription).setIsOptional(true).setDefaultToBuilderId(c.builderIds.parts.markdownCommunication).setBuilderLanguagesSequenceConfig(l.botFlowErrorEventHandlingSequences.errorHandlingErrorEventHandoverSequence)) }] }, { label: b.customNodes.eventHandling.handover, type: _.expressionTypeNames.communication, property: "recognitionEventHandover", options: f.ExpressionTypeCommunicationOptions.create((e3) => e3.setIninTestingField("recognitionEventHandover").setDescriptionInfo(b.customNodes.eventHandling.handover, (0, o.sprintf)(b.customNodes.eventHandling.eventHandlingRecognitionFailureHandoverDescription, b.actions.askForActionGeneric, b.actions.askForNLUNextIntentAction)).setIsOptional(true).setDefaultToBuilderId(c.builderIds.parts.genericCommunication).setBuilderLanguagesSequenceConfig(l.botFlowErrorEventHandlingSequences.errorHandlingRecognitionEventHandoverSequence)), optionsForSpecificFlowTypes: [{ flowTypes: [r2.flowTypes.flowTypeDigitalBot], options: f.ExpressionTypeCommunicationOptions.create((e3) => e3.setIninTestingField("recognitionEventHandover").setDescriptionInfo(b.customNodes.eventHandling.handover, (0, o.sprintf)(b.customNodes.eventHandling.eventHandlingRecognitionFailureHandoverDigitalDescription, b.actions.askForActionGeneric, b.actions.askForNLUNextIntentAction)).setIsOptional(true).setDefaultToBuilderId(c.builderIds.parts.markdownCommunication).setBuilderLanguagesSequenceConfig(l.botFlowErrorEventHandlingSequences.errorHandlingRecognitionEventHandoverSequence)) }] }, { createDetails: u.ContainerActionProperty.createCreateDetails({ modelIdPropName: "recognitionEventTaskId", modelNamePropName: "recognitionEventTaskName", itemDoesNotExistBaseString: b.task.label, noReferenceString: b.task.noReference, referencesTasks: true, validReferenceCallback: (e3) => e3 && !e3.isTransferable && e3.hasBranchTerminatingWithEndTask ? { error: b.task.invalidReferenceTaskTransfer } : e3 && e3.isTask && e3.isTransferable ? void 0 : { error: b.task.invalidReference } }), options: y.ManagedPropertyOptions.create((e3) => e3.setIninTestingField("recognitionEventTask").setUiDisableOnOutOfService(true).setFeatureConfigName(O.default.botFlowEscalationRecognitionHandlingV2)), property: "recognitionEventTask", yamlOptions: S.default.create("recognitionEventTask", (e3) => e3.setSkipProperty(true)), supportedFlowTypes: [r2.flowTypes.flowTypeDigitalBot, r2.flowTypes.flowTypeBot] }, { label: b.customNodes.eventHandling.subsequentRecognitionFailuresLabel, type: _.expressionTypeNames.string, supportedFlowTypes: [r2.flowTypes.flowTypeDigitalBot, r2.flowTypes.flowTypeBot], property: "subsequentRecognitionFailures", options: T.ExpressionTypeStringOptions.create((e3) => e3.setDescriptionInfo(b.customNodes.eventHandling.subsequentRecognitionFailuresLabel, b.customNodes.eventHandling.subsequentRecognitionFailuresDescription).setIninTestingField("subsequentRecognitionFailures").setAllowModeLiteralOnly().setDefaultText(A.exitFlow.id).setIsOptional(false).setFeatureConfigName(O.default.botFlowsEnhancedRecognitionFailureHandling).facets.setAllowableValueUseOriginalDisplayString(true).setAllowableValues(A.allModes).setPreferRadioButtonsCount(2)) }, { label: b.customNodes.eventHandling.agentEscalationConfirmation, type: _.expressionTypeNames.communication, property: "agentEscalationConfirmation", options: f.ExpressionTypeCommunicationOptions.create((e3) => e3.setIninTestingField("agentEscalationConfirmation").setDescriptionInfo(b.customNodes.eventHandling.agentEscalationConfirmation, b.customNodes.eventHandling.eventHandlingAgentEscalationConfirmationDescription).setIsOptional(true).setDefaultToBuilderId(c.builderIds.parts.genericCommunication).setBuilderLanguagesSequenceConfig(l.botFlowErrorEventHandlingSequences.errorHandlingAgentEscalationConfirmationSequence)), optionsForSpecificFlowTypes: [{ flowTypes: [r2.flowTypes.flowTypeDigitalBot], options: f.ExpressionTypeCommunicationOptions.create((e3) => e3.setIninTestingField("agentEscalationConfirmation").setDescriptionInfo(b.customNodes.eventHandling.agentEscalationConfirmation, b.customNodes.eventHandling.eventHandlingAgentEscalationConfirmationDescription).setIsOptional(true).setDefaultToBuilderId(c.builderIds.parts.markdownCommunication).setBuilderLanguagesSequenceConfig(l.botFlowErrorEventHandlingSequences.errorHandlingAgentEscalationConfirmationSequence)) }] }, { label: b.customNodes.eventHandling.handover, type: _.expressionTypeNames.communication, property: "agentEscalationHandover", options: f.ExpressionTypeCommunicationOptions.create((e3) => e3.setIninTestingField("agentEscalationHandover").setDescriptionInfo(b.customNodes.eventHandling.handover, b.customNodes.eventHandling.eventHandlingAgentEscalationHandoverDescription).setIsOptional(true).setDefaultToBuilderId(c.builderIds.parts.genericCommunication).setBuilderLanguagesSequenceConfig(l.botFlowErrorEventHandlingSequences.errorHandlingAgentEscalationHandoverSequence)), optionsForSpecificFlowTypes: [{ flowTypes: [r2.flowTypes.flowTypeDigitalBot], options: f.ExpressionTypeCommunicationOptions.create((e3) => e3.setIninTestingField("agentEscalationHandover").setDescriptionInfo(b.customNodes.eventHandling.handover, b.customNodes.eventHandling.eventHandlingAgentEscalationHandoverDescription).setIsOptional(true).setDefaultToBuilderId(c.builderIds.parts.markdownCommunication).setBuilderLanguagesSequenceConfig(l.botFlowErrorEventHandlingSequences.errorHandlingAgentEscalationHandoverSequence)) }] }, { createDetails: d.EventHandlingTypeProperty.createCreateDetails([m.default.Exit, m.default.Task], "agentEscalationHandlingType", m.default.Exit, false), label: b.customNodes.errorHandling.handling, supportedFlowTypes: [r2.flowTypes.flowTypeDigitalBot, r2.flowTypes.flowTypeBot], property: "agentEscalationHandling", options: y.ManagedPropertyOptions.create((e3) => e3.setFeatureConfigName(O.default.botFlowEscalationRecognitionHandlingV2).setDescriptionInfo(b.customNodes.errorHandling.handling, b.customNodes.eventHandling.eventHandlingAgentEscalationHandlingDescription)), yamlOptions: S.default.create("agentEscalationHandling", (e3) => e3.setSkipProperty(true)) }, { createDetails: u.ContainerActionProperty.createCreateDetails({ modelIdPropName: "agentEscalationTaskId", modelNamePropName: "agentEscalationTaskName", itemDoesNotExistBaseString: b.task.label, noReferenceString: b.task.noReference, referencesTasks: true, validReferenceCallback: (e3) => e3 && !e3.isTransferable && e3.hasBranchTerminatingWithEndTask ? { error: b.task.invalidReferenceTaskTransfer } : e3 && e3.isTask && e3.isTransferable ? void 0 : { error: b.task.invalidReference } }), options: y.ManagedPropertyOptions.create((e3) => e3.setIninTestingField("agentEscalationTask").setFeatureConfigName(O.default.botFlowEscalationRecognitionHandlingV2)), property: "agentEscalationTask", yamlOptions: S.default.create("agentEscalationTask", (e3) => e3.setSkipProperty(true)), supportedFlowTypes: [r2.flowTypes.flowTypeDigitalBot, r2.flowTypes.flowTypeBot] }]; + } + showTaskPropertyBasedOnHandlingType(e3, t3) { + const i3 = t3 !== m.default.Task; + e3.outOfService = i3; + } + setNewInstanceDefaults() { + super.setNewInstanceDefaults(); + } + updateSettingsDependentOnAgentEscalation() { + const e3 = !this.isAgentEscalationEnabledAtFlowRuntime(); + this.agentEscalationConfirmation.outOfService = this.agentEscalationHandling.outOfService = e3, this.agentEscalationHandover.outOfService = !!e3 || this.agentEscalationHandling.handlingType === m.default.Task, this.agentEscalationTask.outOfService = !!e3 || this.agentEscalationHandling.handlingType !== m.default.Task; + } + isAgentEscalationEnabledAtFlowRuntime() { + return !(!this.enableAgentEscalation.outOfService && (this.enableAgentEscalation.isLiteralMode ? this.enableAgentEscalation.text !== p.default.true : this.enableAgentEscalation.isExpressionMode && this.enableAgentEscalation.text === p.default.false)); + } + _initializeDesignTime() { + this.parentFlow.definition.supportsAgentEscalation ? this.updateSettingsDependentOnAgentEscalation() : (this.enableAgentEscalation.outOfService = true, this.agentEscalationConfirmation.outOfService = true, this.agentEscalationHandover.outOfService = true, this.agentEscalationHandling.outOfService = true, this.agentEscalationTask.outOfService = true), this._updateRecognitionHandingOutOfService(), this.addAutoCleanedUpSubscription(this.agentEscalationHandling.valueChanged$.subscribe(() => { + this.showTaskPropertyBasedOnHandlingType(this.agentEscalationTask, this.agentEscalationHandling.handlingType); + const e3 = this.agentEscalationHandling.handlingType === m.default.Task; + this.agentEscalationHandover.outOfService = e3, N.validateNode(this, true); + })), super._initializeDesignTime(); + } + } + t2.default = R; + }, 8078: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(84655)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "emergencyGroup"; + } + get displayTypeName() { + return "ArchVariableEmergencyGroup"; + } + get initialValue() { + return this._initialValue; + } + get isArchVariableEmergencyGroup() { + return true; + } + } + t2.default = r2; + }, 8080: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = i2(30801), o = n2.__importDefault(i2(56549)), a = n2.__importDefault(i2(94225)), s = n2.__importDefault(i2(37603)), { outputIds: l } = i2(26847), { scheduleGroupManager: u } = i2(32282); + class d extends s.default { + constructor(e3) { + super(e3), this._inServiceSchedules = this.coreFactory.createArchWrapper(e3.inServiceSchedules), this._scheduleGroup = this.coreFactory.createArchWrapper(e3.scheduleGroup); + } + get _actionTypeId() { + return r2.evaluateScheduleGroupActionType; + } + get displayTypeName() { + return this._scriptingName; + } + get isArchActionEvaluateScheduleGroup() { + return true; + } + get scheduleGroup() { + return this._scheduleGroup; + } + setScheduleGroupByIdAsync(e3, t3) { + return this._checkItemIsValidLiteralString(this._infoParm("scheduleGroupId", "setScheduleGroupByIdAsync"), e3, false), this._checkItemIsValidFunction(this._infoParm("callbackFunction", "setScheduleGroupByIdAsync"), t3, true), o.default.findItemByIdAsync(u, e3, "schedule group").then(function(e4) { + return this.logNote("found the schedule group named '" + e4.name + "'."), this._coreActionViewModel.setScheduleGroup(e4), a.default.executeCallback(this, "setScheduleGroupByIdAsync", t3, this); + }.bind(this)); + } + setScheduleGroupByNameAsync(e3, t3) { + return this._checkItemIsValidLiteralString(this._infoParm("scheduleGroupName", "setScheduleGroupByNameAsync"), e3, false), this._checkItemIsValidFunction(this._infoParm("callbackFunction", "setScheduleGroupByNameAsync"), t3, true), o.default.findItemByValueAsync(u, e3, "schedule group", "name").then(function(e4) { + return this.logNote("found the schedule group named '" + e4.name + "'."), this._coreActionViewModel.setScheduleGroup(e4), a.default.executeCallback(this, "setScheduleGroupByNameAsync", t3, this); + }.bind(this)); + } + get inServiceSchedules() { + return this._inServiceSchedules; + } + get outputOpen() { + return this._getOutputById(l.open, true); + } + get outputClosed() { + return this._getOutputById(l.closed, true); + } + get outputHoliday() { + return this._getOutputById(l.holiday, true); + } + get outputEmergency() { + return this._getOutputById(l.emergency, true); + } + } + t2.default = d; + }, 8081: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(84655)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "boolean"; + } + get displayTypeName() { + return "ArchVariableBoolean"; + } + get initialValue() { + return this._initialValue; + } + get isArchVariableBoolean() { + return true; + } + } + t2.default = r2; + }, 8136: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.ExpressionTypeScheduleOptions = void 0; + const n2 = i2(71056); + class r2 extends n2.ExpressionTypeNetworkObjectOptions { + static create(e3, t3) { + return new this(t3).invokeOptionsCallback(e3); + } + constructor(e3) { + super(e3); + } + get className() { + return "ExpressionTypeScheduleOptions"; + } + get isExpressionTypeScheduleOptions() { + return true; + } + } + t2.ExpressionTypeScheduleOptions = r2; + }, 8156: (e2) => { + "use strict"; + e2.exports = { 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] }; + }, 8229: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(84655)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "externalOrganization"; + } + get initialValue() { + return this._initialValue; + } + get displayTypeName() { + return "ArchVariableExternalOrganization"; + } + get isArchVariableExternalOrganization() { + return true; + } + } + t2.default = r2; + }, 8235: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(3215)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get displayTypeName() { + return "ArchSettingsMenuFlow"; + } + get _allowBlankObjectId() { + return false; + } + get logStr() { + if (!this._coreMenuSettingsViewModel) return this.logStrTypeOnly; + const e3 = []; + return this._appendLogStrType(e3, this.displayTypeName), this._appendLogStrParentParts(e3, this._coreMenuSettingsViewModel.parent), this._createLogStrFromParts(e3); + } + get isArchSettingsMenuFlow() { + return true; + } + } + t2.default = r2; + }, 8236: (e2, t2, i2) => { + const n2 = i2(28730), { clearSlotActionType: r2 } = i2(30801), o = i2(90807); + function a() { + Object.defineProperties(this, { _slots: { writable: true } }), a.baseConstructor.apply(this, arguments); + } + n2.extend(a, r2, true), Object.defineProperties(a.prototype, { pasteReIdOrRename: { value: function(e3) { + a._super.pasteReIdOrRename.apply(this, arguments), this.slots.forEach((t3) => t3.pasteReIdOrRename(e3)); + } }, pasteResolveOldToNewValues: { value: function(e3) { + a._super.pasteResolveOldToNewValues.apply(this, arguments), this.slots.forEach((t3) => t3.pasteResolveOldToNewValues(e3)); + } }, slots: { enumerable: true, get: function() { + return this._slots; + }, set: function(e3) { + this._slots = this.reviveArray(e3, o); + } } }), e2.exports = a; + }, 8249: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.voiceFlowListManager = t2.VoiceFlowListManager = void 0; + const n2 = i2(31635).__importStar(i2(24032)), r2 = i2(14944), o = i2(6109), a = i2(96618), s = i2(27862); + class l extends o.FlowListManager { + get dependencyType() { + return s.VoiceFlow; + } + constructor() { + super(), this.topic = n2.getTopic("VoiceFlowListManager"), this.briefManager = r2.briefVoiceFlowListManager, this.additionalQueryParams = { type: a.flowTypes.flowTypeVoice }, this.className = "VoiceFlowListManager", this.flowType = a.flowTypes.flowTypeVoice, this._rawServerCache = {}, this._initialize(); + } + } + t2.VoiceFlowListManager = l, t2.voiceFlowListManager = new l(); + }, 8284: function(e2, t2) { + "use strict"; + var i2 = this && this.__read || function(e3, t3) { + var i3 = "function" == typeof Symbol && e3[Symbol.iterator]; + if (!i3) return e3; + var n3, r2, o = i3.call(e3), a = []; + try { + for (; (void 0 === t3 || t3-- > 0) && !(n3 = o.next()).done; ) a.push(n3.value); + } catch (e4) { + r2 = { error: e4 }; + } finally { + try { + n3 && !n3.done && (i3 = o.return) && i3.call(o); + } finally { + if (r2) throw r2.error; + } + } + return a; + }, n2 = this && this.__spreadArray || function(e3, t3) { + for (var i3 = 0, n3 = t3.length, r2 = e3.length; i3 < n3; i3++, r2++) e3[r2] = t3[i3]; + return e3; + }; + Object.defineProperty(t2, "__esModule", { value: true }), t2.intervalProvider = void 0, t2.intervalProvider = { setInterval: function(e3, r2) { + for (var o = [], a = 2; a < arguments.length; a++) o[a - 2] = arguments[a]; + var s = t2.intervalProvider.delegate; + return (null == s ? void 0 : s.setInterval) ? s.setInterval.apply(s, n2([e3, r2], i2(o))) : setInterval.apply(void 0, n2([e3, r2], i2(o))); + }, clearInterval: function(e3) { + var i3 = t2.intervalProvider.delegate; + return ((null == i3 ? void 0 : i3.clearInterval) || clearInterval)(e3); + }, delegate: void 0 }; + }, 8303: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importDefault(i2(56549)), o = n2.__importDefault(i2(94225)), a = i2(30801), s = n2.__importDefault(i2(66978)), l = n2.__importDefault(i2(90897)); + class u extends l.default { + constructor(e3) { + super(e3); + } + get _actionTypeId() { + return a.dataTableLookupActionType; + } + get displayTypeName() { + return this._scriptingName; + } + get lookupValue() { + if (this._coreActionViewModel.lookupKeyValue) return this.coreFactory.createArchWrapper(this._coreActionViewModel.lookupKeyValue); + } + get dataTableOutputsFound() { + if (this._coreActionViewModel.outputs) return this.coreFactory.createArchWrapper(this._coreActionViewModel.outputs); + } + get dataTableOutputsFailure() { + if (this._coreActionViewModel.errorBindings) return this.coreFactory.createArchWrapper(this._coreActionViewModel.errorBindings); + } + get isArchActionDataTableLookup() { + return true; + } + setDataTableByIdAsync(e3, t3) { + return n2.__awaiter(this, void 0, void 0, function* () { + this._checkItemIsValidLiteralString(this._infoParm("datatableId", "setDataTableByIdAsync"), e3, false), this._checkItemIsValidFunction(this._infoParm("callbackFunction", "setDataTableByIdAsync"), t3, true); + const i3 = yield r2.default.findItemByIdAsync(this._getCoreViewModel().serverManager, e3, "data table"); + return this.logNote("found the dataTable named '" + i3.name + "' for the dataTable ID of '" + e3 + "'"), this._coreActionViewModel.setIntegrationActionByViewModel(i3), o.default.executeCallback(this, "setDataTableByIdAsync", t3, this); + }); + } + setDataTableByNameAsync(e3, t3) { + return n2.__awaiter(this, void 0, void 0, function* () { + this._checkItemIsValidLiteralString(this._infoParm("dataTableName", "setDataTableByNameAsync"), e3), this._checkItemIsValidFunction(this._infoParm("callbackFunction", "setDataTableByNameAsync"), t3, true); + const i3 = yield r2.default.findItemByValueAsync(this._getCoreViewModel().serverManager, e3, "data table", "name", "name"); + return this.logNote(`Found partial info for the data table named '${i3.name}' for the passed data table name of '${e3}'. Getting full data table details.`), s.default.addPromise(this.setDataTableByIdAsync(i3.id, t3), "setDataTableByNameAsync"); + }); + } + } + t2.default = u; + }, 8310: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.uiFeatureSetInfo = void 0; + const n2 = i2(44724), r2 = i2(47957); + t2.uiFeatureSetInfo = { flowAddOrSaveAs: { permissions: [n2.permissionStrings.architect.flow.add, n2.permissionStrings.architect.flow.edit, n2.permissionStrings.architect.flow.view] }, flowEditDivision: { permissions: [n2.permissionStrings.architect.flow.edit, n2.permissionStrings.architect.flow.view] }, grammarAdd: { permissions: [n2.permissionStrings.architect.grammar.add, n2.permissionStrings.architect.grammar.edit, n2.permissionStrings.architect.grammar.view] }, userPromptAdd: { permissions: [n2.permissionStrings.architect.userPrompt.add, n2.permissionStrings.architect.userPrompt.edit, n2.permissionStrings.architect.userPrompt.view] }, promptImport: { permissions: [n2.permissionStrings.architect.userPrompt.add, n2.permissionStrings.architect.userPrompt.edit, n2.permissionStrings.architect.userPrompt.view, n2.permissionStrings.architect.systemPrompt.edit, n2.permissionStrings.architect.systemPrompt.view], permissionDeniedOverrideString: r2.generic.permissions.missing.prompts.userPrompts.import } }; + }, 8311: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importDefault(i2(94225)), o = i2(69078), a = n2.__importDefault(i2(56549)), s = n2.__importDefault(i2(45894)); + class l extends s.default { + constructor(e3) { + super(e3, o.knowledgeBaseDocumentManager); + } + get _globalTypeName() { + return "knowledgeBaseDocument"; + } + get displayTypeName() { + return "ArchValueKnowledgeBaseDocument"; + } + get isArchValueKnowledgeBaseDocument() { + return true; + } + setLiteralByKnowledgeBaseDocumentIdAsync(e3, t3) { + return n2.__awaiter(this, void 0, void 0, function* () { + this._checkItemIsValidLiteralString(this._infoParm("knowledgeBaseDocumentId", "setLiteralByKnowledgeBaseDocumentIdAsync"), e3), this._checkItemIsValidFunction(this._infoParm("callbackFunction", "setLiteralByKnowledgeBaseDocumentIdAsync"), t3, true); + const i3 = this._getFlowConfiguredKnowledgeBaseId, n3 = yield a.default.findItemByIdAsync(o.knowledgeBaseDocumentManager, e3, "knowledge base document", { knowledgeId: i3 }); + return this.logNote(`Found knowledge base document named '${n3.name}' for the passed knowledge base document id of '${e3}'.`), this._coreExpression.updateFromConfigListManagerItem(n3), r2.default.executeCallback(this, "setLiteralByKnowledgeBaseDocumentIdAsync", t3, this); + }); + } + setLiteralByKnowledgeBaseDocumentNameAsync(e3, t3) { + return n2.__awaiter(this, void 0, void 0, function* () { + this._checkItemIsValidLiteralString(this._infoParm("knowledgeBaseDocumentName", "setLiteralByKnowledgeBaseDocumentNameAsync"), e3), this._checkItemIsValidFunction(this._infoParm("callbackFunction", "setLiteralByKnowledgeBaseDocumentNameAsync"), t3, true); + const i3 = this._getFlowConfiguredKnowledgeBaseId, n3 = yield a.default.findItemByValueAsync(o.knowledgeBaseDocumentManager, e3, "knowledge base document", "name", "name", void 0, { knowledgeId: i3 }); + return this.logNote(`Found knowledge base document named '${n3.name}' for the passed knowledge base document name of '${e3}'.`), this._coreExpression.updateFromConfigListManagerItem(n3), r2.default.executeCallback(this, "setLiteralByKnowledgeBaseDocumentNameAsync", t3, this); + }); + } + get _getFlowConfiguredKnowledgeBaseId() { + var e3, t3; + const i3 = null === (t3 = null === (e3 = this.parentFlow) || void 0 === e3 ? void 0 : e3.knowledgeSettings) || void 0 === t3 ? void 0 : t3.knowledgeBaseId; + return i3 || this.logErrorAndThrow("a knowledge base must be set on the flow knowledge settings to set the knowledge base document."), i3; + } + } + t2.default = l; + }, 8416: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importDefault(i2(82985)), o = n2.__importDefault(i2(78432)), a = i2(30801); + class s extends r2.default { + get _actionTypeId() { + return a.callBotFlowActionType; + } + get botFlowTypeEnum() { + return o.default.FLOW_TYPES.bot; + } + get displayTypeName() { + return this._scriptingName; + } + get isArchActionCallBotFlow() { + return true; + } + } + t2.default = s; + }, 8462: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.buildOptions = function(e3, t3, i3) { + (0, l.isString)(e3) && (e3 = s.default.resolveType(i3, e3)), a.ParameterValidator.expectExpressionType(e3, () => o.ParameterInfo.createFunctionParameter(this.className, "buildOptions", "type")); + const n3 = e3.createExpressionOptionClass(); + return t3 && t3.isBaseOptions ? n3.setFromOptions(t3) : (n3.setAsInput(), r2.default.each(t3, function(e4, t4) { + switch (t4) { + case "literalOnly": + n3.setAllowModeExpression(!e4).setAllowModeVariable(!e4).setAllowModeLiteral(e4); + break; + case "allowSecure": + n3.setAllowSecure(e4); + break; + case "valueChangedCallback": + n3.setValueChangedCallback(e4); + break; + default: + console.log("Add this key to the switch statement in buildOptions: " + t4); + } + })), n3; + }; + const n2 = i2(31635), r2 = n2.__importDefault(i2(92140)), o = i2(55909), a = i2(33951), s = n2.__importDefault(i2(65302)), l = i2(50474); + }, 8471: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = i2(92140), o = i2(31178), a = i2(10798), s = i2(4648).default, l = i2(27099), u = n2.__importDefault(i2(98717)), d = i2(41510).default, c = i2(5024).default; + class p { + constructor() { + this._amLoggingErrorOrWarning = false; + } + static get displayTypeName() { + return this.prototype.displayTypeName; + } + static get isBaseClassObject() { + return true; + } + get coreFactory() { + return p._coreFactory; + } + set coreFactory(e3) { + p._coreFactory = e3; + } + get isBaseClass() { + return true; + } + _appendLogStrPartRawString(e3, t3) { + e3.push(t3); + } + _appendLogStrPart(e3, t3, i3, n3, r3) { + if (void 0 === i3 && r3) return; + const o2 = t3 + ":" + (n3 ? "" : "'") + (void 0 === i3 ? "" : String(i3)) + (n3 ? "" : "'"); + e3.push(o2); + } + _appendLogStrArchObject(e3, t3) { + this._appendLogStrPart(e3, "ArchObject", t3, true, true); + } + _appendLogStrTag(e3, t3) { + this._appendLogStrPart(e3, "Tag", t3, false, true); + } + _appendLogStrRollupErrorCount(e3, t3) { + this._appendLogStrPart(e3, "RollupErrorCount", t3, true); + } + _appendLogStrRollupErrorCountTotal(e3, t3) { + this._appendLogStrPart(e3, "RollupErrorCountTotal", t3, true); + } + _appendLogStrCallingMethod(e3, t3) { + this._appendLogStrPart(e3, "CallingMethod", t3, false, true); + } + _appendLogStrCallingArchObject(e3, t3) { + this._appendLogStrPart(e3, "CallingArchObject", t3.logStr, false, true); + } + _appendLogStrErrorCount(e3, t3) { + this._appendLogStrPart(e3, "ErrorCount", t3, true); + } + _appendLogStrErrorCountTotal(e3, t3) { + this._appendLogStrPart(e3, "ErrorCountTotal", t3, true); + } + _appendLogStrEnvironment(e3, t3) { + this._appendLogStrPart(e3, "Environment", t3, false, true); + } + _appendLogStrSessionId(e3, t3) { + this._appendLogStrPart(e3, "ArchSessionId", t3, false, true); + } + _appendLogStrHost(e3, t3) { + this._appendLogStrPart(e3, "Host", t3, false, true); + } + _appendLogStrId(e3, t3) { + this._appendLogStrPart(e3, "Id", t3); + } + _appendLogStrIsHome(e3, t3) { + this._appendLogStrPart(e3, "IsHomeDivision", t3, true, true); + } + _appendLogStrFlowId(e3, t3) { + this._appendLogStrPart(e3, "Flow ID", t3); + } + _appendLogStrFlowName(e3, t3) { + this._appendLogStrPart(e3, "Flow Name", t3); + } + _appendLogStrParentFlowInfo(e3, t3) { + if (!t3) return; + const i3 = t3.parentFlow; + i3 && i3.isFlowViewModel && (this._appendLogStrFlowName(e3, i3.displayName), this._appendLogStrFlowId(e3, i3.id)); + } + _appendLogStrHierarchyStr(e3, t3) { + this._appendLogStrPart(e3, "Hierarchy", t3, false, true); + } + _appendLogStrLabel(e3, t3) { + this._appendLogStrPart(e3, "Label", t3, false, true); + } + _appendLogStrLanguageTag(e3, t3) { + this._appendLogStrPart(e3, "LanguageTag", t3, false, true); + } + _appendLogStrName(e3, t3) { + this._appendLogStrPart(e3, "Name", t3, false, true); + } + _appendLogStrCompatibleFlowTypes(e3, t3) { + this._appendLogStrPart(e3, "Compatible Flow Types", r2.isArray(t3) && t3.length ? t3.join("', '") : "", false, false); + } + _appendLogStrIsCollection(e3, t3) { + this._appendLogStrPart(e3, "IsCollection", t3, false, true); + } + _appendLogStrIsDefault(e3, t3) { + this._appendLogStrPart(e3, "IsDefault", t3, false, true); + } + _appendLogStrParentParts(e3, t3) { + if (!t3 || r2.isUndefined(t3.trackingId)) return; + const i3 = this.coreFactory.createArchWrapper(t3); + this._appendLogStrTrackingIdNameType(e3, i3.trackingId, i3.name, i3.displayTypeName); + } + _appendLogStrAsrCompany(e3, t3) { + this._appendLogStrPart(e3, "Company Directory Asr:", t3, false, true); + } + _appendLogStrRegion(e3, t3) { + this._appendLogStrPart(e3, "Region", t3, false, true); + } + _appendLogStrOrgId(e3, t3) { + this._appendLogStrPart(e3, "OrgId", t3, false, true); + } + _appendLogStrOrgName(e3, t3) { + this._appendLogStrPart(e3, "OrgName", t3, false, true); + } + _appendLogStrOutputId(e3, t3) { + this._appendLogStrPart(e3, "OutputId", t3, false, true); + } + _appendStrAsrEnabledOnFlow(e3, t3) { + this._appendLogStrPart(e3, "FlowSpeechRecEnabled", t3, false, true); + } + _appendLogStrSettingErrorHandlingFlow(e3, t3) { + this._appendLogStrPart(e3, "Flow Event Error Handling", t3, false, true); + } + _appendLogStrProperty(e3, t3) { + this._appendLogStrPart(e3, "Property", t3, false, true); + } + _appendLogStrTrackingId(e3, t3) { + this._appendLogStrPart(e3, "TrackingID", t3, true, true); + } + _appendLogStrTrackingIdNameType(e3, t3, i3, n3) { + this._appendLogStrTrackingId(e3, t3), this._appendLogStrName(e3, i3), this._appendLogStrType(e3, n3); + } + _appendLogStrTtsEngineName(e3, t3) { + this._appendLogStrPart(e3, "TtsEngineName", t3, false, true); + } + _appendLogStrTtsEngineSelectionType(e3, t3) { + this._appendLogStrPart(e3, "TtsEngineSelectionType", t3, false, true); + } + _appendLogStrTtsEngineVoiceName(e3, t3) { + this._appendLogStrPart(e3, "TtsEngineVoiceName", t3, false, true); + } + _appendLogStrTtsEngineVoiceSelectionType(e3, t3) { + this._appendLogStrPart(e3, "TtsEngineVoiceSelectionType", t3, false, true); + } + _appendLogStrType(e3, t3) { + this._appendLogStrPart(e3, "Type", t3, false, true); + } + _appendLogStrWarningCount(e3, t3) { + this._appendLogStrPart(e3, "WarningCount", t3, true); + } + _appendLogStrWarningCountTotal(e3, t3) { + this._appendLogStrPart(e3, "WarningCountTotal", t3, true); + } + _appendLogStrRollupWarningCount(e3, t3) { + this._appendLogStrPart(e3, "RollupWarningCount", t3, true); + } + _appendLogStrRollupWarningCountTotal(e3, t3) { + this._appendLogStrPart(e3, "RollupWarningCountTotal", t3, true); + } + _appendLogStrVersion(e3, t3) { + this._appendLogStrPart(e3, "Version", t3, false); + } + _checkItem(e3, t3, i3, n3) { + t3 && u.default.itemInvalid(e3, i3, this.logStr, this.displayTypeName, n3); + } + _checkItemSameParentFlow(e3, t3, i3) { + let n3 = t3, o2 = i3; + return r2.isObject(n3) && n3.isArchBaseFlow && (n3 = n3._getCoreViewModel()), r2.isObject(o2) && o2.isArchBaseFlow && (o2 = o2._getCoreViewModel()), this._checkItem(e3, n3 !== o2, `the value specifies an object from a different flow. It comes from the flow '${this.coreFactory.createArchWrapper(o2).logStr}'. The value needs to be an object from the flow '${this.coreFactory.createArchWrapper(n3).logStr}'.`); + } + _checkItemValueFeatureToggleIsSet(e3, t3, i3) { + l.isDisabled(t3) && this._itemIsInvalid(e3, "the feature toggle '" + t3 + "' is required for the parameter value '" + i3 + "'."); + } + _checkMethodCallFeatureIsAvailable(e3, t3) { + a.isFeatureUnavailable(t3) && this._itemIsInvalid(e3, "calling this method requires functionality that is not available in the organization.", p._checkMethodCallFeatureIsAvailable_shouldLog); + } + _checkMethodCallFeatureToggleIsSet(e3, t3) { + l.isDisabled(t3) && this._itemIsInvalid(e3, "the feature toggle '" + t3 + "' is required to make this call."); + } + _checkItemValueFeatureConfigIsSet(e3, t3, i3) { + a.isFeatureUnavailable(t3) && this._itemIsInvalid(e3, `Parameter '${i3}' requires a feature that is not available`); + } + _checkItemIsArchBaseObject(e3, t3, i3) { + this._checkItemIsArchType(e3, t3, "ArchBaseObject", i3); + } + _checkItemIsArchBaseObjectWithId(e3, t3, i3) { + this._checkItemIsArchType(e3, t3, "ArchBaseObjectWithId", i3); + } + _checkItemIsArchDefinitionAction(e3, t3, i3) { + this._checkItemIsArchType(e3, t3, "ArchDefinitionAction", i3); + } + _checkItemIsArchFilterObject(e3, t3, i3) { + this._checkItemIsArchType(e3, t3, "ArchFilterObject", i3); + } + _checkItemIsArchFlowInfo(e3, t3, i3) { + this._checkItemIsArchType(e3, t3, "ArchFlowInfo", i3); + } + _checkItemIsArchTraverseContext(e3, t3, i3) { + this._checkItemIsArchType(e3, t3, "ArchTraverseContext", i3); + } + _checkItemIsArchType(e3, t3, i3, n3) { + if (r2.isUndefined(t3) || null === t3) { + if (n3) return; + } else if (r2.isObject(t3) && t3[`is${i3}`]) return; + u.default.itemInvalid(e3, `the value is not a valid ${i3} instance.`, void 0, i3); + } + _checkItemIsArchTraverseSettings(e3, t3, i3) { + this._checkItemIsArchType(e3, t3, "ArchTraverseSettings", i3); + } + _checkItemIsUndefinedOrNull(e3, t3) { + this.isUndefinedOrNull(t3) || u.default.itemInvalid(e3, `the value '${t3}' is not valid. It must be either null or undefined.`, void 0, void 0); + } + _checkItemIsType(e3, t3, i3, n3, r3, o2) { + i3(t3, n3) || u.default.itemInvalid(e3, "the value '" + t3 + "' (JavaScript type: '" + typeof t3 + "') is not a supported " + r3 + "." + (o2 ? " " + o2 : ""), this.logStr, this.displayTypeName); + } + _checkItemIsValidFunction(e3, t3, i3) { + if (!i3 || null != t3) return this._checkItem(e3, !r2.isFunction(t3), "the value is not a valid JavaScript function."); + } + _checkItemIsValidJsonObject(e3, t3, i3) { + return this._checkItemIsType(e3, t3, this.isValidJsonObject, i3, "object", "an object value must a JSON object and not be undefined or null."); + } + _checkItemIsValidLiteralBool(e3, t3, i3) { + return this._checkItemIsType(e3, t3, this.isValidBool, i3, "boolean", "a literal boolean value must a JavaScript boolean and not be undefined or null."); + } + _checkItemIsValidLiteralDateTime(e3, t3, i3) { + return this._checkItemIsType(e3, t3, this.isValidDateTime, i3, "dateTime", "a literal DateTime parameter must be a JavaScript Date and not be undefined or null."); + } + _checkItemIsValidLiteralDecimal(e3, t3, i3) { + if (null == t3 && i3) return; + const n3 = parseFloat(String(t3)); + n3.toString().indexOf("e") > 0 && this._itemIsInvalid(e3, `Architect Scripting does not support decimal values that, when converted to a float, contain e notation. Value was '${n3}'`), this._checkItem(e3, t3 !== n3, `the specified value of '${t3}' is either not a decimal type or is not a decimal value`); + } + _checkItemIsValidLiteralInt(e3, t3, i3, n3) { + if (this._checkItemIsType(e3, t3, this.isValidInt, i3, "integer", "a literal integer value must a JavaScript number with an integral value and not be NaN, undefined, null."), n3 && r2.isActualNumber(t3)) { + const i4 = t3; + this._checkItem(e3, i4 < 0, `the value '${t3}' cannot be used because it is less than 0.`); + } + } + _checkItemIsValidLiteralIntInRange(e3, t3, i3, n3) { + this._checkItemIsType(e3, t3, this.isValidInt, false, "integer", "a literal integer value must a JavaScript number with an integral value and not be NaN, undefined, null."); + const r3 = t3; + this._checkItem(e3, r3 < i3 || r3 >= n3, "invalid integer value of " + t3 + ". It must be >= " + i3 + " and < " + n3 + "."); + } + _checkItemIsValidLiteralString(e3, t3, i3, n3, o2) { + this._checkItemIsType(e3, t3, this.isValidString, i3, "string", "string values must not be undefined, null and must be a JavaScript string."); + const a2 = t3; + r2.isActualNumber(n3) && this._checkItem(e3, a2.length > n3, `the value '${t3}' exceeds the maximum length allowed of ${n3} characters.`), o2 && this._checkItem(e3, a2.trim() !== a2, `the value '${t3}' cannot be used because it has leading or trailing whitespace.`); + } + _checkItemIsValidLiteralStringOrStringArray(e3, t3, i3) { + if (r2.isArray(t3)) { + let n3 = 0; + return void r2.each(t3, (t4) => { + this._checkItemIsType(e3, t4, this.isValidString, i3, "string", `index: ${n3} - string values must not be undefined, null and must be a JavaScript string or array.`), n3++; + }); + } + return this._checkItemIsType(e3, t3, this.isValidString, i3, "string", "string values must not be undefined, null and must be a JavaScript string or array."); + } + _checkItemIsValidLiteralStringEnum(e3, t3, i3, n3, o2) { + const a2 = []; + r2.each(i3, function(e4) { + a2.push("'" + e4 + "'"); + }); + const s2 = a2.pop(), l2 = a2.join(d.itemListing.itemSeparator).concat(" or ") + s2; + if (this._checkItemIsType(e3, t3, this.isValidString, n3, "string", `string values must not be undefined, null and must be a JavaScript string. Allowable values: ${l2}`), !t3 && n3) return; + const u2 = t3, c2 = o2 ? u2.toLowerCase() : u2; + r2.find(i3, function(e4) { + return o2 ? c2 === e4.toLowerCase() : c2 === e4; + }) || this._itemIsInvalid(e3, "the string value '" + t3 + "' is not one of the following values: " + l2); + } + _checkItemIsValidLiteralStringOrArchVariableString(e3, t3, i3) { + return this._checkItemIsType(e3, t3, this.isValidStringOrArchVariableString, i3, "string or ArchVariableString", "a string value must not be undefined, null and must be a JavaScript string or must be an ArchBaseVariable instance."); + } + _checkItemUndefined(e3, t3) { + return this._checkItem(e3, void 0 === t3, "there is no value specified"); + } + _checkItemUndefinedOrNull(e3, t3) { + return this._checkItem(e3, null == t3, "there is no value specified"); + } + _createLogStrFromParts(e3) { + return "[" + e3.join(", ") + "]"; + } + _ensureCanSetTrackingIds(e3, t3, i3) { + this._ensureSessionIsConnected(e3, t3), this._checkItem(e3, !this._getCanSetTrackingIds(e3, t3), "the ability to set tracking IDs on objects is not available in this organization."), void 0 !== i3 && this._checkItemIsValidLiteralIntInRange(e3, i3, c.minTrackingId, c.maxTrackingId); + } + _ensureSessionIsConnected(e3, t3) { + t3 && t3.isArchSession && t3.isConnected || this._itemIsInvalid(e3, "invalid to call when the Architect Scripting session is not connected."); + } + _ensureTtsInfoAvailable(e3, t3) { + this._ensureSessionIsConnected(e3, t3); + const i3 = t3.orgInfo; + t3 && i3 && i3._getAreTtsEnginesAndVoicesAvailable() || this._itemIsInvalid(e3, `text to speech engines and voices are not available for the organization ${null == i3 ? void 0 : i3.logStr}.`); + } + _getDtmfForCoreDigit(e3, t3, i3) { + switch (t3) { + case o.Zero: + return "0"; + case o.One: + return "1"; + case o.Two: + return "2"; + case o.Three: + return "3"; + case o.Four: + return "4"; + case o.Five: + return "5"; + case o.Six: + return "6"; + case o.Seven: + return "7"; + case o.Eight: + return "8"; + case o.Nine: + return "9"; + case o.Pound: + return "#"; + case o.Star: + return "*"; + default: + if (i3) return; + this._itemIsInvalid(e3, "Invalid core Digit value"); + } + } + _getCoreDigitForDtmf(e3, t3, i3) { + switch (t3) { + case 0: + case "0": + return o.Zero; + case 1: + case "1": + return o.One; + case 2: + case "2": + return o.Two; + case 3: + case "3": + return o.Three; + case 4: + case "4": + return o.Four; + case 5: + case "5": + return o.Five; + case 6: + case "6": + return o.Six; + case 7: + case "7": + return o.Seven; + case 8: + case "8": + return o.Eight; + case 9: + case "9": + return o.Nine; + case "*": + return o.Star; + case "#": + return o.Pound; + default: + if (i3) return; + this._itemIsInvalid(e3, "Invalid dtmf value of '" + t3 + "'. It should be '0' through '9', '*', '#' or 0 through 9."); + } + } + _traverse(...e3) { + var t3; + null === (t3 = this.logItemVerboseNode) || void 0 === t3 || t3.call(this, this._infoMethod("_traverse"), "_traverse being call on non ArchBaseCoreObject instance. :(", this.logStr, this.displayTypeName); + } + _getCanSetTrackingIds(e3, t3) { + return this._ensureSessionIsConnected(e3, t3), a.isFeatureAvailable(s.yamlTrackingIdFeature); + } + get displayTypeName() { + return this._logErrorInternalAndThrow("Architect Scripting object does not override ArchBaseObject.displayTypeName property and it should. Constructor name: " + this.constructor.name), ""; + } + isValidBool(e3, t3) { + return !(null != e3 || !t3) || r2.isBoolean(e3); + } + isValidDateTime(e3, t3) { + return !(null != e3 || !t3) || r2.isDate(e3); + } + isValidInt(e3, t3) { + return null == e3 ? !!t3 : !!r2.isActualNumber(e3) && e3 === parseInt(String(e3), 10); + } + isValidJsonObject(e3, t3) { + return !(null != e3 || !t3) || r2.isObject(e3); + } + isUndefinedOrNull(e3) { + return r2.isNull(e3) || r2.isUndefined(e3); + } + isValidString(e3, t3) { + return !(null != e3 || !t3) || r2.isString(e3); + } + isValidStringOrArchVariableString(e3, t3) { + return !(null != e3 || !t3) || r2.isString(e3) || !!e3 && "object" == typeof e3 && !!e3.isArchVariableString; + } + _infoCalledObject(e3, t3) { + return { title: "Called Object", methodName: t3, label: e3.displayTypeName }; + } + _infoObject(e3) { + return { title: "Called Object", label: e3.displayTypeName }; + } + _infoMethod(e3) { + return { title: "Method", methodName: e3 }; + } + _infoParmCtor(e3) { + return { title: "Parameter", methodName: "Constructor", label: e3, isCtorItem: true }; + } + _infoParm(e3, t3) { + return { title: "Parameter", methodName: t3, label: e3 }; + } + _infoPropGet(e3) { + return { title: "Property", methodName: e3 + "(get)", label: e3 }; + } + _infoPropSet(e3, t3) { + return { title: "Parameter", methodName: t3 + "(set)", label: e3 }; + } + _infoVal(e3, t3) { + return { title: "Value", methodName: t3, label: e3 }; + } + _itemIsInvalid(e3, t3, i3) { + this._checkItem(e3, true, t3, i3); + } + _logErrorInternal(e3) { + this.logError(`INTERNAL ERROR - ${e3 || ""}`); + } + _logErrorInternalAndThrow(e3) { + this.logErrorAndThrow(`INTERNAL ERROR - ${e3 || ""}`); + } + _throwNotImplementedFunction(e3) { + this.logErrorAndThrow("the function '" + e3 + "' is not implemented."); + } + _throwNotImplementedPropertyGet(e3) { + this.logErrorAndThrow("the getter for the property '" + e3 + "' is not implemented."); + } + _throwNotImplementedPropertySet(e3) { + this.logErrorAndThrow("the setter for the property '" + e3 + "' is not implemented."); + } + getLogStrForItemInfo(e3) { + const t3 = []; + return this._appendLogStrName(t3, e3.name), this._appendLogStrId(t3, e3.id), this._createLogStrFromParts(t3); + } + get logStr() { + return u.default.logError("the object " + this.displayTypeName + " does not implement logStr and a log string is being requested. Returning default string."), "< '" + this.displayTypeName + "' needs to implement the logStr getter.>"; + } + get logStrTypeOnly() { + const e3 = []; + return this._appendLogStrType(e3, this.displayTypeName), this._createLogStrFromParts(e3); + } + get isArchBaseObject() { + return true; + } + logError(e3) { + if (!this._amLoggingErrorOrWarning) try { + this._amLoggingErrorOrWarning = true, u.default.itemError(this._infoObject(this), e3, this.logStr, this.displayTypeName); + } finally { + this._amLoggingErrorOrWarning = false; + } + } + logPromiseError(e3, t3, i3) { + if (!this._amLoggingErrorOrWarning) try { + let n3; + this._amLoggingErrorOrWarning = true, n3 = r2.isObject(t3) && t3.message ? r2.isString(i3) && i3.length ? `${i3} - ${t3}` : `${t3}` : r2.isString(i3) && i3.length ? i3 : "no additional information.", u.default.itemError(e3, n3, this.logStr, this.displayTypeName); + } finally { + this._amLoggingErrorOrWarning = false; + } + } + logErrorAndThrow(e3) { + this._amLoggingErrorOrWarning || (this._amLoggingErrorOrWarning = true, u.default.itemError(this._infoObject(this), e3, this.logStr, this.displayTypeName), this._amLoggingErrorOrWarning = false, u.default.itemThrow(this._infoObject(this), e3, this.logStr, this.displayTypeName)); + } + logItemErrorAndThrow(e3, t3) { + this._amLoggingErrorOrWarning || (this._amLoggingErrorOrWarning = true, u.default.itemError(e3, t3, this.logStr, this.displayTypeName), this._amLoggingErrorOrWarning = false, u.default.itemThrow(e3, t3, this.logStr, this.displayTypeName)); + } + logItemNote(e3, t3) { + u.default.itemNote(e3, t3, this.logStr, this.displayTypeName); + } + logItemVerboseNote(e3, t3) { + u.default.itemNoteVerbose(e3, t3, this.logStr, this.displayTypeName); + } + logItemWarning(e3, t3) { + u.default.itemWarning(e3, t3, this.logStr, this.displayTypeName); + } + logNote(e3) { + u.default.itemNote(this._infoObject(this), e3, this.logStr, this.displayTypeName); + } + logNoteVerbose(e3) { + u.default.itemNoteVerbose(this._infoObject(this), e3, this.logStr, this.displayTypeName); + } + logWarning(e3) { + if (!this._amLoggingErrorOrWarning) try { + this._amLoggingErrorOrWarning = true, u.default.itemWarning(this._infoObject(this), e3, this.logStr, this.displayTypeName); + } finally { + this._amLoggingErrorOrWarning = false; + } + } + logDeprecatedPropertyWarning(e3, t3, i3) { + let n3 = r2.isString(t3) && t3.length ? `This property is deprecated. Please use the '${t3}' property instead.` : "This property is deprecated. Please do not use."; + r2.isString(i3) && i3.length && (n3 += " " + i3), this.logItemWarning(e3, n3); + } + isFilterMatch(e3) { + return this._checkItemIsArchFilterObject(this._infoParm("archFilterObject", "isFilterMatch"), e3), e3.isMatch(this); + } + } + p._checkMethodCallFeatureIsAvailable_shouldLog = true, t2.default = p; + }, 8483: (e2, t2, i2) => { + const n2 = i2(92140), r2 = i2(76395), o = i2(45421), a = i2(49005), s = i2(13126), l = i2(60094), { menuActionActionType: u } = i2(30801), { ParameterInfo: d } = i2(55909), { ParameterValidator: c } = i2(33951), p = i2(47957), { taskActionActionType: _ } = i2(30801), h = "ClipboardContentMenuChoiceViewModel"; + class m extends r2 { + constructor(e3, t3) { + super(e3, t3); + } + static create(e3, t3, i3, n3) { + c.expectBool(t3, () => d.createFunctionParameter(h, "create", "deleteMenuChoiceForCut"), true), c.expectObject(i3, () => d.createFunctionParameter(h, "create", "clipboardLogging")), c.expectString(n3, () => d.createFunctionParameter(h, "create", "newContentName"), true); + const s2 = o.getFlowViewModel(e3); + if (!s2) return c.expectFlowViewModel(s2, () => d.createFunctionParameter(h, "create", "menuChoiceViewModel.parentFlow")), null; + let l2; + c.expectObject(e3.info, () => d.createFunctionParameter(h, "create", "menuChoiceViewModel")); + try { + const o2 = []; + r2._addMenuChoiceToCoreContent(e3, o2); + const u2 = new a(); + if (u2.configure(s2, e3, o2[0], n3), l2 = new m(u2, i3), e3.addClipboardDependencies(l2), t3) { + const t4 = l2._deleteMenuChoicesForCut(e3); + if (t4.isFailure) throw t4.messageDisplayStr; + l2.validateFlow(s2); + } + return l2; + } catch (e4) { + i3.logException(e4, "Unable to create clipboard content menu choice."); + } + return l2 && l2.destroy(), null; + } + get className() { + return h; + } + get clipboardContentType() { + return s.menuChoice; + } + checkCanPasteClipboardContextWithDetails(e3) { + const t3 = super.checkCanPasteClipboardContextWithDetails(e3); + if (t3.isFailure) return t3; + if (n2.isUndefined(e3.destViewModel) || !(e3.destViewModel.isMenu || e3.destViewModel.isSubMenu || this.shouldPasteAsReusableMenu(e3) || this.shouldPasteAsReusableTask(e3) || this.shouldPasteAsDownConvertAction(e3))) { + let e4; + return e4 = this.isSubMenu ? p.clipboard.content.pastableLocations.menuChoiceSubMenu : this.isInlineTask ? p.clipboard.content.pastableLocations.menuChoiceInlineTask : p.clipboard.content.pastableLocations.destinationHasNoChoices, this.createClipboardResultFailure(e4); + } + const i3 = this.shouldPasteAsReusableTask(e3) ? l.menuChoiceTask : this.shouldPasteAsReusableMenu(e3) ? l.menuChoiceMenu : this.shouldPasteAsDownConvertAction(e3) ? l.actions : l.menuChoiceAny; + return e3.destAllowableClipboardContentTypes && !n2.contains(e3.destAllowableClipboardContentTypes, i3) ? this.createClipboardResultFailureCanPasteGeneric() : (this.shouldPasteAsReusableTask(e3) ? t3.messageDisplayStr = p.clipboard.content.canPaste.downConvert.menuChoice.toReusableTask : this.shouldPasteAsReusableMenu(e3) ? t3.messageDisplayStr = p.clipboard.content.canPaste.downConvert.menuChoice.toReusableMenu : this.shouldPasteAsDownConvertAction(e3) && (t3.messageDisplayStr = p.clipboard.content.canPaste.downConvert.menuChoice.toAction), t3); + } + get isClipboardContentMenuChoice() { + return true; + } + get isInlineTask() { + return this.contentModel.actionInfoId === _; + } + get isSubMenu() { + return this.contentModel.actionInfoId === u; + } + shouldPasteAsDownConvertAction(e3) { + return !n2.isUndefined(e3.destActionContainer) && !this.isSubMenu && !this.isInlineTask; + } + shouldPasteAsReusableMenu(e3) { + return e3.destViewModel && e3.destViewModel.isFlowViewModel && this.isSubMenu && e3.destViewModel.supportsReusableMenus; + } + shouldPasteAsReusableTask(e3) { + return e3.destViewModel && e3.destViewModel.isFlowViewModel && this.isInlineTask && e3.destViewModel.supportsReusableTasks; + } + } + e2.exports = m; + }, 8487: (e2) => { + e2.exports = { askCommon: { invalidInputReceived: "Esa acci\xF3n no es v\xE1lida.", noInputReceived: "No recib\xED ninguna entrada." }, askForBoolean: { noInput: 'Responda "s\xED" si desea continuar o, caso contrario, "no".', noMatch: 'Responda "S\xED" o "No". \xBFDesea continuar?', question: "\xBFDesea continuar?", noInputDigitalBot: 'Seleccione "S\xED" si desea continuar o, de lo contrario, "No".', noMatchDigitalBot: '\xBFDesea continuar? Seleccione "S\xED" o "No".' }, askForIntent: { noInput: 'Describa su consulta con una oraci\xF3n corta, por ejemplo, "Revisar mi saldo"', noMatch: "D\xEDgame una vez m\xE1s lo que quiere hacer.", question: "\xBFQu\xE9 le gustar\xEDa hacer?", noInputDigitalBot: 'Escriba una oraci\xF3n corta que describa su consulta. Por ejemplo, "Revisar mi saldo de cuenta"' }, askForSlot: { askFor: "Solicitar %1$s", noInput: "Pronuncie o escriba (coloque el nombre de la ranura aqu\xED).", noInputWithSlot: "Pronuncie o escriba %1$s.", noMatch: "Vuelva a proporcionar (coloque el nombre de la ranura aqu\xED).", noMatchWithSlot: "Vuelva a proporcionar %1$s.", question: "\xBFQu\xE9 es (coloque el nombre de la ranura aqu\xED)?", questionWithSlot: "\xBFQu\xE9 es %1$s?", pleaseEnterSlotNameHere: "(ponga el nombre de su ranura aqu\xED)", noInputDigitalBot: "Escriba (coloque aqu\xED el nombre de la ranura).", noInputWithSlotDigitalBot: "Escriba %1$s.", continuationPromptWithSlot: "De momento tengo {{Slot.%1$s}}, contin\xFAe." }, askForNextSlot: { noInput: 'Responda "s\xED", en caso de que tenga otra consulta, o "no" para finalizar la llamada.', noMatch: 'Responda "S\xED", en caso de que tenga otra consulta, o "No", para finalizar la sesi\xF3n.', question: "\xBFPuedo serle \xFAtil en algo m\xE1s?", noInputDigitalBot: 'Seleccione "S\xED" si tiene otra consulta o "No" para finalizar la sesi\xF3n.', noMatchDigitalBot: 'Seleccione "S\xED" si tiene otra consulta o "No" para finalizar la sesi\xF3n.' }, askForPayment: { noInputDigitalBot: "Proporcione su informaci\xF3n de pago para continuar.", noMatchDigitalBot: "No he entendido su respuesta. Vuelva a intentarlo." }, askForAuthentication: { noInputDigitalBot: "Proporcione su informaci\xF3n de autenticaci\xF3n para continuar.", noMatchDigitalBot: "No he entendido su respuesta. Vuelva a intentarlo." }, askSurveyQuestion: { notApplicable: "No aplicable", surveyAnswerOptionSequence: "Pulse %1$s para %2$s.", surveyAnswerNotApplicableSequence: "Pulse la estrella para No aplicable.", surveyAnswerNotApplicableWithQuestionSequence: "%1$s. Pulse la estrella para No aplicable.", voiceSurveyNoInputText: "Responda la pregunta.", voiceSurveyNoMatchText: "No le entend\xED." }, commonModule: { exitCommonModule: "Salir del m\xF3dulo com\xFAn" }, form: { noInputDigitalBot: "Complete el formulario para continuar.", noMatchDigitalBot: "Complete el formulario para continuar." }, messagingTemplate: { noInputDigitalBot: "Seleccione una de las opciones disponibles.", noMatchDigitalBot: "Seleccione una de las opciones disponibles." }, knowledgeSettings: { knowledgeAnswerHighlightFlowProgressionDefault: "Continuar", knowledgeAnswerHighlightFullArticleDefault: "Ver art\xEDculo completo", knowledgeInitialResponseMulti: "Para ayudarme a entender su meta, elija un n\xFAmero de la siguiente lista:", knowledgeInitialResponseMultiRetry: "Elija un n\xFAmero, por ejemplo '1'.\nEsta es la lista de opciones:", knowledgeNoMatch: "Ninguna de estas", knowledgeConfirmation: "\xBFEsto responde a su pregunta?", knowledgeFollowup: "Espero haber respondido su pregunta. Puede preguntar sobre cualquier otro tema que desee." }, noOverlay: { intent: { intentConfirmationStr1: "Creo que quiero", intentConfirmationStr2: "\xBFEs correcto?" }, youSaid: { youSaidConfirmationStr1: "Usted dijo", youSaidConfirmationStr2: "\xBFEs correcto?", youSaidConfirmationStr1DigitalBot: "Escribi\xF3" }, noInput: { noInputStr1: "Pronuncie o escriba", noInputStr1DigitalBot: "Escriba el" }, noMatch: { noMatchStr1: "Proporcione" }, whatIs: { whatIsQuestionStr1: "\xBFQu\xE9 es", whatIsQuestionStr2: "?" }, iGotContinuation: { iGotContinuationStr1: "De momento tengo", iGotContinuationStr2: ", contin\xFAe." } }, defaultCallFlowOne: "Flujo de llamadas predeterminado", errorHandlingAgentEscalationConfirmation: "\xBFDesea hablar con un asesor?", errorHandlingAgentEscalationHandover: "Espere un momento. Lo pondr\xE9 en contacto con alguien.", errorHandlingErrorEventHandover: "Se produjo un error. Espere un momento mientras lo pongo en contacto con alguien que lo pueda ayudar.", errorHandlingErrorEventHandoverVoiceSurvey: "Lo siento, se produjo un error. Hasta luego.", errorHandlingRecognitionEventHandover: "No logro comprender lo que dice. Espere un momento mientras lo pongo en contacto con alguien que lo pueda ayudar.", errorHandlingRecognitionEventHandoverVoiceSurvey: "Lo siento, no entiendo lo que dice. Hasta luego.", errorHandlingTTS: "Se produjo un error. Intente llamar de nuevo.", initialGreetingTTS: "Hola, este es el saludo inicial.", initialState: "Estado inicial", initialBotState: "Bot predeterminado", initialDigitalBotState: "Saludo inicial", initialSurveyBotState: "Bot de encuesta", intentConfirmation: "Creo que quiere %1$s, \xBFes correcto?", mainMenu: "Men\xFA principal", mainMenuTTS: "Se encuentra en el men\xFA principal; presione 9 para desconectar", mainTask: "Tarea", settingsConfirmationNoInputApology: "No logro escucharlo. Responda s\xED o no.", settingsConfirmationNoInputApologyDigitalBot: 'No se registr\xF3 ninguna entrada. Seleccione "S\xED" o "No".', settingsConfirmationNoMatchApology: "Responda s\xED o no.", settingsConfirmationNoMatchApologyDigitalBot: 'Seleccione "S\xED" o "No".', settingsNoInputApology: "No logro escucharlo.", settingsNoInputApologyDigitalBot: "No se registr\xF3 ninguna entrada.", settingsEndOfSessionMessageDigitalBot: "No he tenido noticias suyas por un tiempo. Por lo tanto, voy a cerrar este chat. No dude en regresar si vuelve a necesitar mi ayuda. Gracias.", settingsNoMatchApology: "Lo siento.", settingsNoToConfirmationApology: "Fue mi error.", periodicStateName: "Estado recurrente" }; + }, 8497: (e2, t2, i2) => { + const n2 = i2(11475); + function r2() { + r2.baseConstructor.apply(this, arguments); + } + function o() { + o.baseConstructor.apply(this, arguments); + } + function a() { + a.baseConstructor.apply(this, arguments); + } + n2.extend(r2, "CurrencyEnumVariable", true), n2.extend(o, "LanguageEnumVariable", true), n2.extend(a, "RegionEnumVariable", true), e2.exports = { CurrencyEnumVariable: r2, LanguageEnumVariable: o, RegionEnumVariable: a }; + }, 8507: (e2, t2, i2) => { + var n2 = i2(15659); + function r2(e3, t3) { + return function(i3) { + return t3(e3(i3)); + }; + } + function o(e3, t3) { + for (var i3 = [t3[e3].parent, e3], o2 = n2[t3[e3].parent][e3], a = t3[e3].parent; t3[a].parent; ) i3.unshift(t3[a].parent), o2 = r2(n2[t3[a].parent][a], o2), a = t3[a].parent; + return o2.conversion = i3, o2; + } + e2.exports = function(e3) { + for (var t3 = (function(e4) { + var t4 = (function() { + for (var e5 = {}, t5 = Object.keys(n2), i5 = t5.length, r5 = 0; r5 < i5; r5++) e5[t5[r5]] = { distance: -1, parent: null }; + return e5; + })(), i4 = [e4]; + for (t4[e4].distance = 0; i4.length; ) for (var r4 = i4.pop(), o2 = Object.keys(n2[r4]), a2 = o2.length, s2 = 0; s2 < a2; s2++) { + var l2 = o2[s2], u = t4[l2]; + -1 === u.distance && (u.distance = t4[r4].distance + 1, u.parent = r4, i4.unshift(l2)); + } + return t4; + })(e3), i3 = {}, r3 = Object.keys(t3), a = r3.length, s = 0; s < a; s++) { + var l = r3[s]; + null !== t3[l].parent && (i3[l] = o(l, t3)); + } + return i3; + }; + }, 8532: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.ExpressionTypeSurveyAnswerOptionOptions = void 0; + const n2 = i2(65615); + class r2 extends n2.BaseExpressionTypeCollectionOptions { + static create(e3, t3) { + return new this(t3).invokeOptionsCallback(e3); + } + constructor(e3) { + super(e3); + } + get className() { + return "ExpressionTypeSurveyAnswerOptionOptions"; + } + get isExpressionTypeSurveyAnswerOptionOptions() { + return true; + } + } + t2.ExpressionTypeSurveyAnswerOptionOptions = r2; + }, 8538: (e2, t2, i2) => { + const n2 = i2(28730), r2 = i2(7401), { sendResponseActionType: o } = i2(30801); + function a() { + Object.defineProperties(this, { _messageBody: { writable: true }, _messageBodyStyle: { writable: true }, _attachments: { writable: true } }), a.baseConstructor.apply(this, arguments); + } + n2.extend(a, o, true), Object.defineProperties(a.prototype, { pasteReIdOrRename: { value: function(e3) { + a._super.pasteReIdOrRename.apply(this, arguments), this.messageBodyStyle.pasteReIdOrRename(e3), this.messageBody.pasteReIdOrRename(e3), this.attachments?.pasteReIdOrRename(e3); + } }, pasteResolveOldToNewValues: { value: function(e3) { + a._super.pasteResolveOldToNewValues.apply(this, arguments), this.messageBodyStyle.pasteResolveOldToNewValues(e3), this.messageBody.pasteResolveOldToNewValues(e3), this.attachments?.pasteResolveOldToNewValues(e3); + } }, messageBodyStyle: { enumerable: true, get: function() { + return this._messageBodyStyle; + }, set: function(e3) { + this._messageBodyStyle = this.reviveItem(e3, r2); + } }, messageBody: { enumerable: true, get: function() { + return this._messageBody; + }, set: function(e3) { + this._messageBody = this.reviveItem(e3, r2); + } }, attachments: { enumerable: true, get: function() { + return this._attachments; + }, set: function(e3) { + this._attachments = this.reviveItem(e3, r2); + } } }), e2.exports = a; + }, 8625: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.dialogflowAgentManager = t2.DialogflowAgentManager = void 0; + const n2 = i2(31635), r2 = n2.__importStar(i2(1360)), o = n2.__importDefault(i2(47532)), a = i2(30801), s = i2(17832), l = i2(81801), u = i2(24032), d = i2(47957), c = i2(27862), p = i2(51294); + class _ extends o.default { + get requiredAuth() { + return l.externalAuthorizations.authStrings.integrationView; + } + get dependencyType() { + return c.DialogflowAgent; + } + constructor() { + super(), this.topic = (0, u.getTopic)("DialogflowAgentManager"), this.apiCallList = p.getAgents, this.apiCallSingle = p.getAgent, this._rawServerCache = {}, this.actionsForUsageSearch = [a.dialogflowActionType], this.actionPropertyForUsageSearch = "bot", this.defaultMatchingStyle = r2.exactMatch, this.dependencyContext = d.dialogflow.dialogflowAgent, this.searchField = "name", this.uiMetadataSectionName = "dialogflowAgents", this.className = "DialogflowAgentManager", this._initialize(); + } + _createItemViewModel(e3) { + return new s.DialogflowAgentViewModel(e3); + } + } + t2.DialogflowAgentManager = _, t2.dialogflowAgentManager = new _(); + }, 8758: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.guideManager = t2.GuideManager = void 0; + const n2 = i2(31635), r2 = n2.__importStar(i2(11914)), o = i2(30801), a = n2.__importDefault(i2(47532)), s = i2(81801), l = i2(24032), u = n2.__importDefault(i2(62100)), d = i2(79015), c = i2(47957), p = i2(27862); + class _ extends a.default { + get dependencyType() { + return p.Guide; + } + constructor() { + super(), this.topic = (0, l.getTopic)("guideManager"), this._rawServerCache = {}, this.apiCallList = r2.getGuides, this.apiCallSingle = r2.getGuide, this.actionsForUsageSearch = [o.callGuideActionType], this.actionPropertyForUsageSearch = "guideSetting", this.defaultInputsWithNoValue = true, this.className = "GuideManager", this.defaultPageSize = 100, this.dependencyContext = c.guide.guide, this.searchField = "nameContains", this.searchWildcardSupport = false, this.sortOrder = "asc", this.suppressSearch = false, this.uiMetadataSectionName = "guides", this._initialize(); + } + get requiredAuth() { + return s.externalAuthorizations.authStrings.guideView; + } + get _networkModel() { + return u.default; + } + _createItemViewModel(e3) { + return new d.GuideViewModel(e3); + } + } + t2.GuideManager = _, t2.guideManager = new _(); + }, 8784: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(54063)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "journeyCustomEventAttributeListCollection"; + } + get displayTypeName() { + return "ArchValueJourneyCustomEventAttributeListCollection"; + } + get isArchValueJourneyCustomEventAttributeListCollection() { + return true; + } + } + t2.default = r2; + }, 8818: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.getBotConnectorBotVersions = t2.getBotConnectorBot = t2.getBotConnectorBots = void 0; + const n2 = i2(75601), r2 = i2(19413), o = i2(30345), a = i2(36019).default, s = { ignoreBadResponse: true }; + t2.getBotConnectorBots = a.request("GET", "{public-api.apps}/api/v2/integrations/botconnector/{integrationId}/bots/summaries", r2, s), t2.getBotConnectorBot = a.request("GET", "{public-api.apps}/api/v2/integrations/botconnector/{integrationId}/bots/{botId}", n2, s), t2.getBotConnectorBotVersions = a.request("GET", "{public-api.apps}/api/v2/integrations/botconnector/{integrationId}/bots/{botId}/versions", o, s); + }, 8820: (e2, t2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + }, 8833: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importDefault(i2(92140)), o = n2.__importDefault(i2(94225)), a = n2.__importDefault(i2(73198)), s = n2.__importStar(i2(43011)), l = i2(27854), u = i2(27854), d = i2(27854), c = i2(27854), p = i2(27854), _ = n2.__importDefault(i2(56549)), h = n2.__importDefault(i2(81574)); + class m extends h.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "prompt"; + } + _getIsSystemPromptIdentifier(e3) { + return r2.default.isString(e3) && e3.startsWith("__") && e3.endsWith("__"); + } + _getIsUserPromptIdentifer(e3) { + return r2.default.isString(e3) && e3.length === a.default.uuidStrLen; + } + _getIsPromptIdentifier(e3) { + return this._getIsUserPromptIdentifer(e3) || this._getIsSystemPromptIdentifier(e3); + } + get displayTypeName() { + return "ArchValuePrompt"; + } + get isArchValuePrompt() { + return true; + } + setLiteralByPromptNameAsync(e3, t3) { + return n2.__awaiter(this, void 0, void 0, function* () { + const i3 = this._infoParm("promptPrefixedName", "setLiteralByPromptNameAsync"); + this._checkItemUndefinedOrNull(i3, e3), this._checkItem(i3, !this.isValidString(e3), "you must pass in either an Architect prompt string like 'Prompt.MyPrompt' that identifies the prompt to set."), this._checkItem(i3, !this.settings.canBeLiteral, `you cannot assign a prompt literal because this value ${this.settings.logStr} cannot be a literal.`), this._checkItemIsValidFunction(this._infoParm("callbackFunction", "setLiteralByPromptNameAsync"), t3, true); + const n3 = (0, u.hasSystemPromptPrefix)(e3), r3 = !n3 && (0, d.hasUserPromptPrefix)(e3); + n3 || r3 || this._itemIsInvalid(i3, `the prompt name '${e3}' does not not start with '${c.prefixes.user}' or '${c.prefixes.system}'`); + const a2 = n3 ? s.systemPromptListManager : s.userPromptListManager; + e3 = (0, p.removePrefix)(e3); + const h2 = yield _.default.findItemByValueAsync(a2, e3, "prompt", void 0, void 0, void 0, { includeMediaUris: true, includeResources: true }); + return this._setLiteral(i3, h2.name, h2.id), this.logNote(`prompt value set to '${(0, l.addPrefix)(h2.name, h2.id)}'`), o.default.executeCallback(this, "setLiteralByPromptNameAsync", t3, this); + }); + } + setLiteralByPromptIdAsync(e3, t3) { + return n2.__awaiter(this, void 0, void 0, function* () { + const i3 = this._infoParm("promptId", "setLiteralByPromptIdAsync"); + this._checkItem(i3, !this._getIsPromptIdentifier(e3), "the prompt identifier must be either a user prompt guid identifier or a system prompt identifier such as '__gl0012_boolean_medial_false__'"), this._checkItem(i3, !this.settings.canBeLiteral, `you cannot assign a prompt literal because this value ${this.settings.logStr} cannot be a literal.`), this._checkItemIsValidFunction(this._infoParm("callbackFunction", "setLiteralByPromptIdAsync"), t3, true); + const n3 = this._getIsSystemPromptIdentifier(e3); + this.logItemVerboseNote(i3, `will attempt to set a ${n3 ? "system" : "user"} prompt value based on the submitted promptId value '${e3}'.`); + const r3 = n3 ? s.systemPromptListManager : s.userPromptListManager, a2 = yield _.default.findItemByIdAsync(r3, e3, "prompt", { includeMediaUris: true, includeResources: true }); + return this._setLiteral(i3, a2.name, a2.id), this.logNote(`prompt value set to '${(0, l.addPrefix)(a2.name, a2.id)}'`), o.default.executeCallback(this, "setLiteralByPromptIdAsync", t3, this); + }); + } + setLiteralPrompt(e3) { + const t3 = this._infoParm("archValuePrompt", "setLiteralPrompt"); + this._checkItem(t3, !e3 || !e3.isArchBasePrompt, "The prompt parameter must be an ArchPromptUser or ArchPromptSystem instance."), this._setLiteral(t3, e3.name, e3.id), this.logNote(`set the value to the prompt literal '${e3.nameWithPrefix}', id: '${e3.id}'`); + } + } + t2.default = m; + }, 8851: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importDefault(i2(965)), o = n2.__importDefault(i2(27752)), a = n2.__importDefault(i2(75810)), s = n2.__importDefault(i2(68301)), l = n2.__importDefault(i2(46421)), u = n2.__importDefault(i2(36967)), d = n2.__importDefault(i2(68783)), c = n2.__importDefault(i2(7221)), p = n2.__importDefault(i2(73506)), _ = n2.__importDefault(i2(73177)), h = n2.__importDefault(i2(35284)), m = n2.__importDefault(i2(78616)), g = n2.__importDefault(i2(17021)), f = n2.__importDefault(i2(8416)), T = n2.__importDefault(i2(40568)), y = n2.__importDefault(i2(87828)), S = n2.__importDefault(i2(37661)), A = n2.__importDefault(i2(47652)), N = n2.__importDefault(i2(1383)), O = n2.__importDefault(i2(81526)), I = n2.__importDefault(i2(47e3)), v = n2.__importDefault(i2(22309)), C = n2.__importDefault(i2(56677)), b = n2.__importDefault(i2(32504)), E = n2.__importDefault(i2(99621)), R = n2.__importDefault(i2(28447)), w = n2.__importDefault(i2(12707)), D = n2.__importDefault(i2(15904)), P = n2.__importDefault(i2(81832)), M = n2.__importDefault(i2(12163)), F = n2.__importDefault(i2(43520)), L = n2.__importDefault(i2(16912)), x = n2.__importDefault(i2(29390)), k = n2.__importDefault(i2(47818)), V = n2.__importDefault(i2(48932)), U = n2.__importDefault(i2(10202)), B = n2.__importDefault(i2(53862)), G = n2.__importDefault(i2(46131)), j = n2.__importDefault(i2(45252)), W = n2.__importDefault(i2(62240)), q = n2.__importDefault(i2(2036)), Y = n2.__importDefault(i2(37333)), H = n2.__importDefault(i2(65218)), J = n2.__importDefault(i2(44820)), z = n2.__importDefault(i2(8303)), K = n2.__importDefault(i2(39907)), $ = n2.__importDefault(i2(24156)), Q = n2.__importDefault(i2(95934)), X = n2.__importDefault(i2(26448)), Z = n2.__importDefault(i2(9819)), ee = n2.__importDefault(i2(441)), te = n2.__importDefault(i2(2410)), ie = n2.__importDefault(i2(25255)), ne = n2.__importDefault(i2(91685)), re = n2.__importDefault(i2(21224)), oe = n2.__importDefault(i2(52052)), ae = n2.__importDefault(i2(92595)), se = n2.__importDefault(i2(33513)), le = n2.__importDefault(i2(70109)), ue = n2.__importDefault(i2(86015)), de = n2.__importDefault(i2(8080)), ce = n2.__importDefault(i2(73080)), pe = n2.__importDefault(i2(77680)), _e = n2.__importDefault(i2(19791)), he = n2.__importDefault(i2(86473)), me = n2.__importDefault(i2(32345)), ge = n2.__importDefault(i2(98088)), fe = n2.__importDefault(i2(4130)), Te = n2.__importDefault(i2(29433)), ye = n2.__importDefault(i2(92257)), Se = n2.__importDefault(i2(99847)), Ae = n2.__importDefault(i2(59524)), Ne = n2.__importDefault(i2(10923)), Oe = n2.__importDefault(i2(89965)), Ie = n2.__importDefault(i2(20403)), ve = n2.__importDefault(i2(73903)), Ce = n2.__importDefault(i2(57088)), be = n2.__importDefault(i2(73677)), Ee = n2.__importDefault(i2(92109)), Re = n2.__importDefault(i2(50853)), we = n2.__importDefault(i2(91173)), De = n2.__importDefault(i2(99528)), Pe = n2.__importDefault(i2(68608)), Me = n2.__importDefault(i2(6568)), Fe = n2.__importDefault(i2(15589)), Le = n2.__importDefault(i2(19563)), xe = n2.__importDefault(i2(17302)), ke = n2.__importDefault(i2(56356)), Ve = n2.__importDefault(i2(48611)), Ue = n2.__importDefault(i2(66134)), Be = n2.__importDefault(i2(48787)), Ge = n2.__importDefault(i2(66632)), je = n2.__importDefault(i2(18953)), We = n2.__importDefault(i2(44409)), qe = n2.__importDefault(i2(2467)), Ye = n2.__importDefault(i2(94684)), He = n2.__importDefault(i2(51913)), Je = n2.__importDefault(i2(80344)), ze = n2.__importDefault(i2(6276)), Ke = n2.__importDefault(i2(90733)), $e = n2.__importDefault(i2(82118)), Qe = n2.__importDefault(i2(26166)), Xe = n2.__importDefault(i2(1227)), Ze = n2.__importDefault(i2(13169)), et = n2.__importDefault(i2(92395)), tt = n2.__importDefault(i2(151)), it = n2.__importDefault(i2(43497)), nt = n2.__importDefault(i2(90067)), rt = n2.__importDefault(i2(50720)), ot = n2.__importDefault(i2(40091)), at = n2.__importDefault(i2(83054)), st = n2.__importDefault(i2(80219)), lt = n2.__importDefault(i2(32050)), ut = n2.__importDefault(i2(95433)), dt = n2.__importDefault(i2(95201)), ct = n2.__importDefault(i2(38557)), pt = n2.__importDefault(i2(61828)), _t = n2.__importDefault(i2(87115)), ht = n2.__importDefault(i2(67987)), mt = n2.__importDefault(i2(94455)), gt = n2.__importDefault(i2(85763)), ft = n2.__importDefault(i2(92512)), Tt = n2.__importDefault(i2(77373)), yt = n2.__importDefault(i2(29829)), St = n2.__importDefault(i2(48167)), At = n2.__importDefault(i2(46638)), Nt = n2.__importDefault(i2(51978)), Ot = n2.__importDefault(i2(59497)), It = n2.__importDefault(i2(12252)), vt = n2.__importDefault(i2(384)), Ct = n2.__importDefault(i2(68436)), bt = n2.__importDefault(i2(66777)), Et = n2.__importDefault(i2(858)), Rt = n2.__importDefault(i2(19296)), wt = n2.__importDefault(i2(18993)), Dt = n2.__importDefault(i2(28323)), Pt = n2.__importDefault(i2(77775)), Mt = n2.__importDefault(i2(62320)), Ft = n2.__importDefault(i2(9019)), Lt = n2.__importDefault(i2(61397)), xt = n2.__importDefault(i2(14038)), kt = n2.__importDefault(i2(63338)), Vt = n2.__importDefault(i2(18431)), Ut = n2.__importDefault(i2(73583)), Bt = n2.__importDefault(i2(88911)), Gt = n2.__importDefault(i2(16608)), jt = n2.__importDefault(i2(35481)), Wt = n2.__importDefault(i2(31349)), qt = n2.__importDefault(i2(24714)), Yt = n2.__importDefault(i2(41935)), Ht = n2.__importDefault(i2(47038)), Jt = n2.__importDefault(i2(94705)), zt = n2.__importDefault(i2(15144)), Kt = n2.__importDefault(i2(22028)), $t = n2.__importDefault(i2(6209)), Qt = n2.__importDefault(i2(77031)), Xt = n2.__importDefault(i2(95847)), Zt = n2.__importDefault(i2(63370)), ei = n2.__importDefault(i2(95212)), ti = n2.__importDefault(i2(438)), ii = n2.__importDefault(i2(32732)), ni = n2.__importDefault(i2(15458)), ri = n2.__importDefault(i2(76827)), oi = n2.__importDefault(i2(48604)), ai = n2.__importDefault(i2(74422)), si = n2.__importDefault(i2(38764)), li = n2.__importDefault(i2(35589)), ui = { ArchActionAbortSurveyInvite: o.default, ArchActionAddFlowMilestone: a.default, ArchActionAskForAuthentication: s.default, ArchActionAskForBoolean: l.default, ArchActionAskForIntent: u.default, ArchActionAskForSlot: c.default, ArchActionAskForPayment: d.default, ArchActionAskSurveyQuestion: p.default, ArchActionAudioMonitoring: _.default, ArchActionCallAgenticVirtualAgent: h.default, ArchActionCallAudioConnector: m.default, ArchActionCallBotFlow: f.default, ArchActionCallBridge: T.default, ArchActionCallCommonModule: y.default, ArchActionCallData: S.default, ArchActionCallDataSecure: A.default, ArchActionCallDialogEngineBot: O.default, ArchActionCallDialogflowBot: I.default, ArchActionCallDialogflowCxBot: v.default, ArchActionCallDigitalBotConnector: C.default, ArchActionCallDigitalBotFlow: b.default, ArchActionCallGuide: E.default, ArchActionCallLexBot: R.default, ArchActionCallLexV2Bot: w.default, ArchActionCallBotConnector: g.default, ArchActionCallNuanceMixBot: D.default, ArchActionCallTask: P.default, ArchActionChangeState: F.default, ArchActionCallVoiceFlow: M.default, ArchActionClearActiveIntent: L.default, ArchActionClearPostFlow: x.default, ArchActionClearSlot: V.default, ArchActionClearUtilizationLabel: U.default, ArchActionClearVoicemailSnippet: B.default, ArchActionClearSkillExpressionFilters: k.default, ArchActionCollectInput: G.default, ArchActionProcessVoicemailInput: gt.default, ArchActionCollectVoiceSnippet: j.default, ArchActionCommunicate: W.default, ArchActionAbortSend: r2.default, ArchActionCompleteSend: q.default, ArchActionCompleteSurveyInvite: Y.default, ArchActionCreateCallback: H.default, ArchActionCreateConversationAttribute: J.default, ArchActionDataTableLookup: z.default, ArchActionDecision: K.default, ArchActionCallDecisionTable: N.default, ArchActionDecryptData: $.default, ArchActionDeflect: Q.default, ArchActionDetectIntent: X.default, ArchActionDetectSilence: Z.default, ArchActionDialByExtension: ee.default, ArchActionDigitalMenu: te.default, ArchActionDisconnect: ie.default, ArchActionDisconnectWorkitem: ne.default, ArchActionEnableParticipantRecord: re.default, ArchActionEncryptData: oe.default, ArchActionEndState: ae.default, ArchActionEndTask: se.default, ArchActionEndWorkflow: le.default, ArchActionEvaluateSchedule: ue.default, ArchActionEvaluateScheduleGroup: de.default, ArchActionEvaluateSkillExpressionFilters: ce.default, ArchActionExitBotFlow: pe.default, ArchActionExitWorkitemFlow: _e.default, ArchActionExtractSecureData: he.default, ArchActionFindDivision: me.default, ArchActionFindDivisions: ge.default, ArchActionFindEmergencyGroup: fe.default, ArchActionFindGrammar: Te.default, ArchActionFindGrammarById: ye.default, ArchActionFindGroup: Se.default, ArchActionFindKnowledgeBaseDocumentById: Ae.default, ArchActionFindLanguageSkill: Ne.default, ArchActionFindQueue: Oe.default, ArchActionFindQueueById: Ie.default, ArchActionFindSchedule: ve.default, ArchActionFindScheduleGroup: Ce.default, ArchActionFindSkill: be.default, ArchActionFindSystemPrompt: Ee.default, ArchActionFindUser: Re.default, ArchActionFindUserById: we.default, ArchActionFindUserPrompt: De.default, ArchActionFindUsersById: Pe.default, ArchActionFindUtilizationLabel: Me.default, ArchActionFlushAudio: Fe.default, ArchActionForm: Le.default, ArchActionGetConversationAttribute: ke.default, ArchActionGetConversationAttributes: Ve.default, ArchActionGetAssignedCustomerIntents: xe.default, ArchActionGetConversationData: Ue.default, ArchActionGetExternalContact: Ge.default, ArchActionGetExternalOrganization: je.default, ArchActionGetJourneyOutcome: We.default, ArchActionGetJourneyOutcomeScoresBySession: qe.default, ArchActionGetJourneySegment: Ye.default, ArchActionGetJourneySession: He.default, ArchActionGetJourneySessionsByExternalContact: Je.default, ArchActionGetParticipantData: ze.default, ArchActionGetRawSIPHeaders: Ke.default, ArchActionGetResponse: $e.default, ArchActionGetSecuredData: Qe.default, ArchActionGetEmailHeaders: Be.default, ArchActionGetSIPHeaders: Xe.default, ArchActionHoldMusic: Ze.default, ArchActionInitializeFlowOutcome: et.default, ArchActionJumpToMenu: tt.default, ArchActionJumpToTask: it.default, ArchActionLoop: nt.default, ArchActionLoopAnythingElse: rt.default, ArchActionLoopUntil: st.default, ArchActionLoopExit: ot.default, ArchActionLoopNext: at.default, ArchActionMenu: lt.default, ArchActionPlayAudio: ut.default, ArchActionPlayAudioOnSilence: dt.default, ArchActionPlayEstimatedWaitTime: ct.default, ArchActionPlayPositionInQueue: pt.default, ArchActionPlayUserGreeting: _t.default, ArchActionPlayUserName: ht.default, ArchActionPreviousMenu: mt.default, ArchActionPromoteExternalContact: ft.default, ArchActionRepeatMenu: Tt.default, ArchActionReturnToAgent: yt.default, ArchActionSearchExternalContacts: St.default, ArchActionSendAutoReply: At.default, ArchActionSendDigitalContent: Nt.default, ArchActionSendInteractiveApplication: Ot.default, ArchActionSendKnowledgeFeedback: It.default, ArchActionSendNotification: vt.default, ArchActionSendResponse: Ct.default, ArchActionSendRichLink: bt.default, ArchActionSetConversationData: Et.default, ArchActionSetExternalTag: Rt.default, ArchActionSetIntent: Dt.default, ArchActionSetFlowOutcome: wt.default, ArchActionSetLanguage: Pt.default, ArchActionSetParticipantData: Mt.default, ArchActionSetPostFlow: Ft.default, ArchActionSetPriority: Lt.default, ArchActionSetSecuredData: kt.default, ArchActionSetSkillExpressionFilters: Vt.default, ArchActionSetSkills: Ut.default, ArchActionSetScreenPop: xt.default, ArchActionSetUtilizationLabel: Bt.default, ArchActionSetUUIData: Gt.default, ArchActionSetWhisperAudio: jt.default, ArchActionShowKnowledgeArticle: qt.default, ArchActionSetWrapupCode: Wt.default, ArchActionSubmitVoicemailSnippet: Yt.default, ArchActionSubmitVoiceSnippet: Ht.default, ArchActionSwitch: Jt.default, ArchActionTask: zt.default, ArchActionTerminateWorkitem: Kt.default, ArchActionTranscription: $t.default, ArchActionTransferToAcd: Qt.default, ArchActionTransferToFlow: Xt.default, ArchActionTransferToFlowSecure: Zt.default, ArchActionTransferToGroup: ei.default, ArchActionTransferToNumber: ti.default, ArchActionTransferToUser: ii.default, ArchActionTransferToVoicemail: ni.default, ArchActionUpdateConversationAttribute: ri.default, ArchActionUpdateData: oi.default, ArchActionUpdateWorkitem: ai.default, ArchActionWait: si.default, ArchActionWaitForInput: li.default }; + t2.default = ui; + }, 8895: (e2) => { + e2.exports = { askCommon: { invalidInputReceived: "No \xE9s v\xE0lid.", noInputReceived: "No he rebut cap entrada." }, askForBoolean: { noInput: 'Digueu "s\xED" si voleu continuar, o "no" en cas contrari.', noMatch: 'Digueu "s\xED" o "no". Voleu continuar?', question: "Voleu continuar?", noInputDigitalBot: 'Introdu\xEFu "S\xED" si voleu continuar, o "No" en cas contrari.', noMatchDigitalBot: 'Introdu\xEFu "S\xED" o "No". Voleu continuar?' }, askForIntent: { noInput: 'Escriviu una frase curta que descrigui la vostra consulta. Per exemple, "Comprovar el saldo del meu compte"', noMatch: "Torneu-me a dir qu\xE8 us agradaria fer.", question: "Qu\xE8 us agradaria fer?", noInputDigitalBot: 'Escriviu una frase curta que descrigui la vostra consulta. Per exemple, "Comprovar el saldo del meu compte"' }, askForSlot: { askFor: "Demaneu per %1$s", noInput: "Digueu o escriviu el (escriviu aqu\xED el nom de la vostra ranura).", noInputWithSlot: "Digueu o escriviu el %1$s.", noMatch: "Torneu-me a donar el (escriviu aqu\xED el nom de la vostra ranura).", noMatchWithSlot: "Torneu-me a donar el %1$s.", question: "Quin \xE9s el (escriviu aqu\xED el nom de la vostra ranura)?", questionWithSlot: "Quin \xE9s el %1$s?", pleaseEnterSlotNameHere: "(introdu\xEFu aqu\xED el nom de la vostra ranura)", noInputDigitalBot: "Introdu\xEFu el (escriviu aqu\xED el nom de la vostra ranura).", noInputWithSlotDigitalBot: "Introdu\xEFu el %1$s.", continuationPromptWithSlot: "De moment tinc {{Slot.%1$s}}, continueu." }, askForNextSlot: { noInput: 'Digueu "s\xED" si teniu una altra consulta, o "no" per finalitzar la trucada.', noMatch: 'Digueu "s\xED" si teniu una altra consulta, o "no" per finalitzar la sessi\xF3.', question: "Us puc ajudar amb res m\xE9s?", noInputDigitalBot: 'Introdu\xEFu "S\xED" si teniu una altra pregunta, o "No" per finalitzar la sessi\xF3.', noMatchDigitalBot: 'Introdu\xEFu "S\xED" si teniu una altra pregunta, o "No" per finalitzar la sessi\xF3.' }, askForPayment: { noInputDigitalBot: "Proporcioneu la informaci\xF3 de pagament per continuar.", noMatchDigitalBot: "No he ent\xE8s la resposta. Torneu-ho a provar." }, askForAuthentication: { noInputDigitalBot: "Proporcioneu la informaci\xF3 d'autenticaci\xF3 per continuar.", noMatchDigitalBot: "No he ent\xE8s la resposta. Torneu-ho a provar." }, askSurveyQuestion: { notApplicable: "No aplicable", surveyAnswerOptionSequence: "Premeu %1$s per a '%2$s'.", surveyAnswerNotApplicableSequence: "Premeu l'estrella per a No aplicable.", surveyAnswerNotApplicableWithQuestionSequence: "%1$s. Premeu l'estrella per a No aplicable.", voiceSurveyNoInputText: "Contesteu a la pregunta.", voiceSurveyNoMatchText: "No us he ent\xE8s." }, commonModule: { exitCommonModule: "Sortir del M\xF2dul Com\xFA" }, form: { noInputDigitalBot: "Completeu el formulari per continuar.", noMatchDigitalBot: "Completeu el formulari per continuar." }, messagingTemplate: { noInputDigitalBot: "Seleccioneu una de les opcions disponibles.", noMatchDigitalBot: "Seleccioneu una de les opcions disponibles." }, knowledgeSettings: { knowledgeAnswerHighlightFlowProgressionDefault: "Continuar", knowledgeAnswerHighlightFullArticleDefault: "Veure article complet", knowledgeInitialResponseMulti: "Per ajudar-me a entendre b\xE9 el vostre objectiu, trieu un n\xFAmero de la llista seg\xFCent:", knowledgeInitialResponseMultiRetry: "Trieu un n\xFAmero, per exemple '1'.\nUs tornem a mostrar la llista d'opcions:", knowledgeNoMatch: "Cap d'aquestes", knowledgeConfirmation: "Hem contestat a la vostra pregunta?", knowledgeFollowup: "Espero haver contestat la vostra pregunta. Podeu preguntar qualsevol altra cosa que vulgueu saber." }, noOverlay: { intent: { intentConfirmationStr1: "Em sembla que voleu", intentConfirmationStr2: "\xC9s correcte?" }, youSaid: { youSaidConfirmationStr1: "Heu dit", youSaidConfirmationStr2: "\xC9s correcte?", youSaidConfirmationStr1DigitalBot: "Heu introdu\xEFt" }, noInput: { noInputStr1: "Digueu o escriviu el", noInputStr1DigitalBot: "Introdu\xEFu el" }, noMatch: { noMatchStr1: "Doneu-me el" }, whatIs: { whatIsQuestionStr1: "Quin \xE9s el", whatIsQuestionStr2: "?" }, iGotContinuation: { iGotContinuationStr1: "De moment tinc", iGotContinuationStr2: ", continueu." } }, defaultCallFlowOne: "Flux de trucades predeterminades", errorHandlingAgentEscalationConfirmation: "Voleu parlar amb un assessor. \xC9s correcte?", errorHandlingAgentEscalationHandover: "Un moment, si us plau, i us posar\xE9 en contacte amb alg\xFA altre.", errorHandlingErrorEventHandover: "S'ha produ\xEFt un error. Espereu un moment mentre us poso en contacte amb alg\xFA que us pugui ajudar.", errorHandlingErrorEventHandoverVoiceSurvey: "S'ha produ\xEFt un error. A reveure.", errorHandlingRecognitionEventHandover: "Disculpeu-me, em costa entendre-us. Espereu un moment mentre us poso en contacte amb alg\xFA que us pugui ajudar.", errorHandlingRecognitionEventHandoverVoiceSurvey: "Tinc problemes per entendre-us. A reveure.", errorHandlingTTS: "S'ha produ\xEFt un error. Proveu de tornar a trucar.", initialGreetingTTS: "Hola, aquesta \xE9s la salutaci\xF3 inicial.", initialState: "Estat inicial", initialBotState: "Assistent de veu predeterminat", initialDigitalBotState: "Salutaci\xF3 inicial", initialSurveyBotState: "Bot d'enquestes", intentConfirmation: "Em sembla que voleu %1$s, \xE9s aix\xED?", mainMenu: "Men\xFA principal", mainMenuTTS: "Sou al Men\xFA principal, premeu 9 per a la desconnexi\xF3", mainTask: "Tasca", settingsConfirmationNoInputApology: "Disculpeu, no us he escoltat b\xE9. Digueu s\xED o no.", settingsConfirmationNoInputApologyDigitalBot: 'No he rebut cap entrada vostra. Introdu\xEFu "S\xED" o "No".', settingsConfirmationNoMatchApology: "Digueu s\xED o no.", settingsConfirmationNoMatchApologyDigitalBot: 'Introdu\xEFu "S\xED" o "No".', settingsNoInputApology: "Disculpeu, no us he escoltat b\xE9.", settingsNoInputApologyDigitalBot: "No he rebut cap entrada vostra.", settingsEndOfSessionMessageDigitalBot: "Fa temps que no tinc not\xEDcies vostres, aix\xED que tanco aquest xat. Torneu si necessiteu la meva ajuda de nou. Gr\xE0cies.", settingsNoMatchApology: "Us demanem disculpes.", settingsNoToConfirmationApology: "\xC9s error meu.", periodicStateName: "Estat recurrent" }; + }, 8929: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.getAssistantsCopilotFeatureSupport = void 0; + const n2 = i2(31635).__importDefault(i2(36019)); + t2.getAssistantsCopilotFeatureSupport = n2.default.request("GET", "{public-api.apps}/api/v2/assistants/copilot/featuresupport", null, { ignoreBadResponse: true }); + }, 9019: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importDefault(i2(94225)), o = i2(30801), a = n2.__importDefault(i2(11210)); + class s extends a.default { + constructor(e3) { + super(e3), this._actionType = this.coreFactory.createArchWrapper(e3.actionType), this._target = this.coreFactory.createArchWrapper(e3.target), this._invocationData = this.coreFactory.createArchWrapper(e3.invocationData); + } + get _actionTypeId() { + return o.setPostFlowActionType; + } + get displayTypeName() { + return this._scriptingName; + } + get isArchActionSetPostFlow() { + return true; + } + get actionType() { + return this._actionType; + } + get target() { + return this._target; + } + get invocationData() { + return this._invocationData; + } + get targetFlowInfo() { + const e3 = this._getCoreViewModel(); + return this.coreFactory.createArchFlowInfoBasic(e3.flowId, e3.flowName, e3.flowType); + } + setTargetFlowInfoAsync(e3, t3) { + return n2.__awaiter(this, void 0, void 0, function* () { + const i3 = this._infoParm("targetFlowInfo", "setTargetFlowInfoAsync"), n3 = e3; + return this._checkItem(i3, !e3 || !n3.isArchFlowInfo && !n3.isArchFlowInfoBasic, "you must pass in an ArchFlowInfo or ArchFlowInfoBasic instance when setting the targetFlowInfo value."), this._checkItem(i3, e3.type !== this._getCoreViewModel().flowType, `the supplied flow information points to a flow of type '${e3.type}' which is not supported by this action's current configuration. You must pass in a flow information value that specifies a flow of type '${this._getCoreViewModel().flowType}'. The actionType property controls which flow type is supported.`), this.logNote(`configuring the set post flow action to call the flow with name '${e3.name}' (id: '${e3.id}') at runtime.`), yield this._getCoreViewModel().getTargetFlowRefProp().setFlowById(e3.id), r2.default.executeCallback(this, "setTargetFlowInfoAsync", t3); + }); + } + getTargetTypeForActionType() { + return this._getCoreViewModel().getTargetFlowTypeForActionType(); + } + } + t2.default = s; + }, 9183: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importDefault(i2(92140)), o = i2(17604), a = n2.__importStar(i2(36781)), s = n2.__importStar(i2(98442)), l = n2.__importStar(i2(1115)), u = n2.__importDefault(i2(5730)), d = n2.__importDefault(i2(27203)), c = n2.__importDefault(i2(73198)), p = i2(80428), _ = n2.__importDefault(i2(98114)), h = n2.__importDefault(i2(6953)), m = i2(49892), g = i2(81516), f = i2(96618), T = i2(87870), y = n2.__importStar(i2(10798)), S = i2(55909), A = i2(33951), N = n2.__importDefault(i2(4648)), O = i2(47957); + class I extends u.default { + constructor(e3, t3) { + super(e3.parentFlow, e3), this.addAutoCleanedUpEventListener(a.ttsEngineChanged, (e4) => this.processTtsEngineChanged(e4)), this._loadModel(t3); + } + static get managedProperties() { + var e3; + const t3 = null === (e3 = _.default.getDefinitionForFlowType(f.flowTypes.flowTypeBot).getAdditionalInfoSection("exitReasons")) || void 0 === e3 ? void 0 : e3.value, i3 = []; + return r2.default.each(t3, (e4) => { + i3.push(`"${e4}"`); + }), [{ label: O.dialogEngine.inputTextLabel, options: g.ExpressionTypeStringOptions.create((e4) => e4.setDescriptionInfo(O.callBotFlowAction.inputTextLabel, O.callBotFlowAction.inputTextDescription).setIninTestingField("inputTextExpression").setIsOptional(true)), optionsForSpecificFlowTypes: [{ flowTypes: [f.flowTypes.flowTypeInboundShortMessage, f.flowTypes.flowTypeInQueueShortMessage], options: g.ExpressionTypeStringOptions.create((e4) => e4.setDefaultToExpression(true).setDoNotTransitionToNoValue(true).setDefaultText(c.default.messageBodyVariable).setIsOptional(true).setDescriptionInfo(O.callBotFlowAction.inputTextLabel, O.callBotFlowAction.inputTextDescription).setIninTestingField("inputTextExpression")) }], property: "inputText", type: p.expressionTypeNames.string, yamlOptions: I.createYamlOptions("inputText", (e4) => e4.setExportOrder(1)) }, ...y.isFeatureAvailable(N.default.botFlowsBotsCallingBots) ? [{ createDetails: T.NoteActionProperty.createCreateDetails("", "info", "CallBotFlow-infoWithHelpLink"), options: m.ExpressionTypelessOptions.create((e4) => e4.setUiPropertyOrder(2)), property: "callBotFlowInfoWithHelpLink", yamlOptions: I.createYamlOptions("callBotFlowInfoWithHelpLink", (e4) => e4.setSkipProperty(true)) }] : [{ createDetails: T.NoteActionProperty.createCreateDetails("", "info", "CallBotFlow-applyWarning"), options: m.ExpressionTypelessOptions.create((e4) => e4.setUiPropertyOrder(2)), property: "languageChangeWarning", yamlOptions: I.createYamlOptions("languageChangeWarning", (e4) => e4.setSkipProperty(true)) }], { dataList: true, label: O.inputOutputList.inputs, options: m.ExpressionTypelessOptions.create((e4) => e4.setIsOptional(true).setUiPropertyOrder(3)), property: "inputs", yamlOptions: I.createYamlOptions("inputs", (e4) => e4.setSkipProperty(true).setExportOrder(2)) }, { dataList: true, isOutput: true, label: O.inputOutputList.outputs, options: m.ExpressionTypelessOptions.create((e4) => e4.setUiPropertyOrder(4)), property: "outputs", yamlOptions: I.createYamlOptions("outputs", (e4) => e4.setSkipProperty(true).setExportOrder(3)) }, { label: O.callBotFlowAction.exitReason, options: g.ExpressionTypeStringOptions.create((e4) => e4.setIninTestingField("exitReason").setUiPropertyGroup(O.callBotFlowAction.executionResults).setDescriptionInfo(O.callBotFlowAction.exitReason, O.callBotFlowAction.exitReasonDescription).setDescriptionAdditionalInfoSection({ title: O.callBotFlowAction.exitReasonExamplesTitle, entries: i3 }).setAsOutput().setIsOptional(true)), property: "exitReason", type: p.expressionTypeNames.string, yamlOptions: I.createYamlOptions("exitReason", (e4) => { + e4.setExportOrder(4); + }) }, { label: O.callBotFlowAction.intent, options: g.ExpressionTypeStringOptions.create((e4) => e4.setIninTestingField("intent").setUiPropertyGroup(O.callBotFlowAction.executionResults).setDescriptionInfo(O.callBotFlowAction.intent, O.callBotFlowAction.intentDescription).setAsOutput().setIsOptional(true)), property: "intent", type: p.expressionTypeNames.string, yamlOptions: I.createYamlOptions("intent", (e4) => { + e4.setExportOrder(5); + }) }]; + } + processTtsEngineChanged(e3) { + (!e3 || e3.isTtsDataViewModel && e3.parentFlow === this.parentFlow) && l.validateAction(this, false, true); + } + _initializeDesignTime() { + var e3; + super._initializeDesignTime(); + const t3 = null === (e3 = this.targetFlowType) || void 0 === e3 ? void 0 : e3.flowType, i3 = _.default.getDefinitionForFlowType(t3); + if (y.isFeatureAvailable(N.default.botFlowsBotsCallingBots)) { + let e4; + t3 === f.flowTypes.flowTypeBot ? e4 = O.callBotFlowAction.callBotFlowInfo : t3 === f.flowTypes.flowTypeDigitalBot && (e4 = O.callBotFlowAction.callDigitalBotFlowInfo), e4 && this.callBotFlowInfoWithHelpLink && (this.callBotFlowInfoWithHelpLink.note = `${e4} ${O.generic.seeResourceCenter.flowsCallingFlows}`); + } else if ((null == i3 ? void 0 : i3.supportsMoreThanOneLanguage) && this.parentFlow.supportsLanguages) { + const e4 = _.default.getDefinitionForFlowType(t3).typeDisplayName || t3; + let i4; + i4 = this.parentFlow.isCommonModuleFlow ? (0, o.sprintf)(O.callBotFlowAction.languageChangeWarningCommonModule, e4) : this.parentFlow.languageChangesAreImmediate ? (0, o.sprintf)(O.callBotFlowAction.languageChangeWarningImmediate, e4) : (0, o.sprintf)(O.callBotFlowAction.languageChangeWarningTaskEnd, e4), this.languageChangeWarning.note = i4; + } + this.targetFlowType.setSchemaRefreshedCallback(() => this.updateIntentPropDescriptionStr()), this.updateIntentPropDescriptionStr(); + } + updateIntentPropDescriptionStr() { + var e3, t3; + if (!this.intent) return void this.topic.error("no intent object to update!"); + const i3 = this.targetFlowType.getFlowInfo(); + if (!i3) return void this.intent.options.clearDescriptionAdditionalInfoSection(); + const n3 = []; + let o2; + (null === (e3 = this.targetFlowType) || void 0 === e3 ? void 0 : e3.flowVersion) || (o2 = (null === (t3 = i3.publishedVersion) || void 0 === t3 ? void 0 : t3.nluInfo) || i3.nluInfo, o2 || this.topic.traceOnce(`missing nluInfo ${i3.id}`, (e4) => e4.warning(`Did not find nluInfo for ${i3.toString()} - publishedVersion`))), o2 && r2.default.isArray(o2.intents) && r2.default.each(o2.intents, (e4) => { + if (e4.name) { + const t4 = r2.default.escape(e4.name); + t4.length && n3.push(`"${t4}"`); + } else this.topic.error(`intent does not have a name. Intent ID: ${e4.id}`); + }), this.intent.options.setDescriptionAdditionalInfoSection({ title: O.callBotFlowAction.configuredIntentValues, entries: n3.length ? n3 : [O.callBotFlowAction.intentsNone] }); + } + static get branchInfo() { + return [d.default.fakeDisconnect]; + } + get flowInputs() { + return this.inputs; + } + get flowOutputs() { + return this.outputs; + } + setBotFlowReferenceToCallByFlowId(e3) { + return n2.__awaiter(this, void 0, void 0, function* () { + A.ParameterValidator.expectString(e3, () => S.ParameterInfo.createFunctionParameter(this.className, "setBotFlowToCallByFlowIdAndName", "botFlowId"), true); + const t3 = this.targetFlowType.getFlowInfoReference(e3); + yield this.targetFlowType.setReferenceWithFlowInfo(t3); + }); + } + validate(e3) { + super.validate(e3), this._validateTargetFlowInfoLanguages(e3, this.targetFlowType.getFlowInfo(), this.parentFlow.isCallFlowType); + const t3 = this.parentFlow.getSupportedLanguagesForTtsEngine(h.default.engineIdGenesys); + (null == t3 ? void 0 : t3.length) && this.addTtsEngineValidationError(t3, e3, h.default.engineNameGenesys); + const i3 = this.parentFlow.getSupportedLanguagesWithNoEngineSelected(); + (null == i3 ? void 0 : i3.length) && this.addTtsEngineValidationError(i3, e3, O.textToSpeech.noneLabel); + } + getDetails() { + return this.getDetailsForProperties([this.targetFlowType, this.inputText, this.intent]); + } + get isBaseCallBotFlowAction() { + return true; + } + addTtsEngineValidationError(e3, t3, i3) { + var n3; + const r3 = s.getLanguageNameAndCodeDisplay(e3); + t3.addError(this, (0, o.sprintf)(1 === e3.length ? O.textToSpeech.ttsEngineNotUsableByAction : O.textToSpeech.ttsEngineNotUsableByActionMoreThanOne, this.info.name, i3, r3), void 0, void 0, void 0, null === (n3 = this.parentFlow) || void 0 === n3 ? void 0 : n3.languages); + } + } + I.className = "BaseCallBotFlowAction", t2.default = I; + }, 9275: (e2, t2, i2) => { + const n2 = i2(13240), r2 = i2(7401), { searchExternalContactsActionType: o } = i2(30801); + function a() { + Object.defineProperties(this, { _externalContactSearchTerm: { writable: true }, _externalContacts: { writable: true } }), a.baseConstructor.apply(this, arguments); + } + n2.extend(a, o, true), Object.defineProperties(a.prototype, { pasteReIdOrRename: { value: function(e3) { + a._super.pasteReIdOrRename.apply(this, arguments), this.externalId.pasteReIdOrRename(e3), this.externalResult.pasteReIdOrRename(e3); + } }, pasteResolveOldToNewValues: { value: function(e3) { + a._super.pasteResolveOldToNewValues.apply(this, arguments), this.externalId.pasteResolveOldToNewValues(e3), this.externalResult.pasteResolveOldToNewValues(e3); + } }, externalId: { enumerable: true, get: function() { + return this._externalContactSearchTerm; + }, set: function(e3) { + this._externalContactSearchTerm = this.reviveItem(e3, r2); + } }, externalResult: { enumerable: true, get: function() { + return this._externalContacts; + }, set: function(e3) { + this._externalContacts = this.reviveItem(e3, r2); + } } }), e2.exports = a; + }, 9283: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importDefault(i2(73198)), o = n2.__importDefault(i2(17405)); + class a extends o.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "boolean"; + } + get displayTypeName() { + return "ArchValueBoolean"; + } + get isArchValueBoolean() { + return true; + } + setExpressionFalse() { + this.setExpression(r2.default.false); + } + setExpressionTrue() { + this.setExpression(r2.default.true); + } + setLiteralBool(e3) { + const t3 = this._infoParm("boolValue", "setLiteralBool"); + this._checkItemUndefinedOrNull(t3, e3), this._checkItemIsValidLiteralBool(t3, e3), this._setLiteral(t3, e3.toString(), "setLiteral"); + } + setLiteralFalse() { + this._setLiteral(this._infoVal("arch_bool_false", "setLiteralFalse"), r2.default.false); + } + setLiteralTrue() { + this._setLiteral(this._infoVal("arch_bool_true", "setLiteralTrue"), r2.default.true); + } + } + t2.default = a; + }, 9287: function(e2, t2, i2) { + "use strict"; + var n2 = this && this.__values || function(e3) { + var t3 = "function" == typeof Symbol && Symbol.iterator, i3 = t3 && e3[t3], n3 = 0; + if (i3) return i3.call(e3); + if (e3 && "number" == typeof e3.length) return { next: function() { + return e3 && n3 >= e3.length && (e3 = void 0), { value: e3 && e3[n3++], done: !e3 }; + } }; + throw new TypeError(t3 ? "Object is not iterable." : "Symbol.iterator is not defined."); + }; + Object.defineProperty(t2, "__esModule", { value: true }), t2.bufferCount = void 0; + var r2 = i2(65212), o = i2(17214), a = i2(54830); + t2.bufferCount = function(e3, t3) { + return void 0 === t3 && (t3 = null), t3 = null != t3 ? t3 : e3, r2.operate(function(i3, r3) { + var s = [], l = 0; + i3.subscribe(o.createOperatorSubscriber(r3, function(i4) { + var o2, u, d, c, p = null; + l++ % t3 === 0 && s.push([]); + try { + for (var _ = n2(s), h = _.next(); !h.done; h = _.next()) (f = h.value).push(i4), e3 <= f.length && (p = null != p ? p : []).push(f); + } catch (e4) { + o2 = { error: e4 }; + } finally { + try { + h && !h.done && (u = _.return) && u.call(_); + } finally { + if (o2) throw o2.error; + } + } + if (p) try { + for (var m = n2(p), g = m.next(); !g.done; g = m.next()) { + var f = g.value; + a.arrRemove(s, f), r3.next(f); + } + } catch (e4) { + d = { error: e4 }; + } finally { + try { + g && !g.done && (c = m.return) && c.call(m); + } finally { + if (d) throw d.error; + } + } + }, function() { + var e4, t4; + try { + for (var i4 = n2(s), o2 = i4.next(); !o2.done; o2 = i4.next()) { + var a2 = o2.value; + r3.next(a2); + } + } catch (t5) { + e4 = { error: t5 }; + } finally { + try { + o2 && !o2.done && (t4 = i4.return) && t4.call(i4); + } finally { + if (e4) throw e4.error; + } + } + r3.complete(); + }, void 0, function() { + s = null; + })); + }); + }; + }, 9290: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.transferToAcdWorkitemFailureReasonsAll = t2.transferToAcdWorkitemFailureReasonsRoutingSkillExpressionsFeature = t2.transferToAcdWorkitemFailureReasonsKnownAgentRoutingFeature = t2.baseTransferToAcdWorkitemFailureReasons = t2.transferToAcdFailureReasonsAll = t2.transferToAcdFailureReasonsRoutingSkillExpressionsFeature = t2.transferToAcdFailureReasonsKnownAgentRoutingFeature = t2.baseTransferToAcdFailureReasons = t2.voicemailTransferFailureReasons = t2.failureReasons = t2.externalTransferFailureReasons = t2.userTransferFailureReasonsAll = t2.queueTransferFailureReasonsAll = t2.userTransferFailureReasonsForBotFlowType = t2.groupTransferFailureReasonsForBotFlowType = t2.baseTransferFailureReasonsForBotFlowType = t2.userTransferFailureReasonsForWorkitemFlowType = t2.queueTransferFailureReasonsForWorkitemFlowType = t2.queueTransferFailureReasons = t2.queueTransferFailureReasonsBase = t2.userTransferFailureReasons = t2.userTransferFailureReasonsBase = t2.groupTransferFailureReasons = t2.flowTransferFailureReasons = t2.defaultTransferFailureReasons = void 0; + const n2 = i2(31635).__importDefault(i2(92140)), r2 = i2(3219), o = i2(3219), a = { actionInvocationLimitExceeded: "ActionInvocationLimitExceeded", busy: "Busy", generalError: "GeneralError", invalidFlow: "InvalidFlow", invalidGroup: "InvalidGroup", invalidNumber: "InvalidNumber", invalidQueue: "InvalidQueue", invalidSkillExpressionFilter: "InvalidSkillExpressionFilter", invalidUser: "InvalidUser", invalidWorkitem: "InvalidWorkitem", networkBusy: "NetworkBusy", noAnswer: "NoAnswer", noAnswerVoicemailNotAllowed: "NoAnswerVoicemailNotAllowed", noAnswerVoicemailNotConfigured: "NoAnswerVoicemailNotConfigured", tooManyPreferredAgents: "TooManyPreferredAgents" }; + t2.defaultTransferFailureReasons = [a.generalError], t2.flowTransferFailureReasons = [...t2.defaultTransferFailureReasons, a.invalidFlow, a.noAnswer], t2.groupTransferFailureReasons = [...t2.defaultTransferFailureReasons, a.busy, a.invalidGroup, a.networkBusy, a.noAnswer, a.noAnswerVoicemailNotAllowed, a.noAnswerVoicemailNotConfigured], t2.userTransferFailureReasonsBase = [...t2.defaultTransferFailureReasons, a.actionInvocationLimitExceeded, a.invalidUser, a.invalidWorkitem, a.networkBusy], t2.userTransferFailureReasons = [...t2.userTransferFailureReasonsBase, a.busy, a.noAnswer, a.noAnswerVoicemailNotAllowed, a.noAnswerVoicemailNotConfigured], t2.queueTransferFailureReasonsBase = [...t2.defaultTransferFailureReasons, a.invalidQueue], t2.queueTransferFailureReasons = [...t2.queueTransferFailureReasonsBase, a.noAnswer], t2.queueTransferFailureReasonsForWorkitemFlowType = n2.default.uniq([...t2.queueTransferFailureReasonsBase, ...o.getQueueTransferActionWorkitemFailureReasons]), t2.userTransferFailureReasonsForWorkitemFlowType = n2.default.uniq([...t2.userTransferFailureReasonsBase, ...r2.getUserTransferActionWorkitemFailureReasons]), t2.baseTransferFailureReasonsForBotFlowType = [...t2.defaultTransferFailureReasons, a.busy, a.networkBusy, a.noAnswer], t2.groupTransferFailureReasonsForBotFlowType = [...t2.baseTransferFailureReasonsForBotFlowType, a.invalidGroup], t2.userTransferFailureReasonsForBotFlowType = [...t2.baseTransferFailureReasonsForBotFlowType, a.invalidUser], t2.queueTransferFailureReasonsAll = n2.default.uniq([...t2.queueTransferFailureReasons, ...t2.queueTransferFailureReasonsForWorkitemFlowType, a.tooManyPreferredAgents, a.invalidSkillExpressionFilter]), t2.userTransferFailureReasonsAll = n2.default.uniq([...t2.userTransferFailureReasons, ...t2.userTransferFailureReasonsForWorkitemFlowType]), t2.externalTransferFailureReasons = [...t2.defaultTransferFailureReasons, a.busy, a.invalidNumber, a.networkBusy, a.noAnswer], t2.failureReasons = a, t2.voicemailTransferFailureReasons = [...t2.defaultTransferFailureReasons, a.busy, a.invalidGroup, a.invalidQueue, a.invalidUser, a.networkBusy, a.noAnswer, a.noAnswerVoicemailNotConfigured], t2.baseTransferToAcdFailureReasons = t2.queueTransferFailureReasons, t2.transferToAcdFailureReasonsKnownAgentRoutingFeature = [...t2.baseTransferToAcdFailureReasons, a.tooManyPreferredAgents], t2.transferToAcdFailureReasonsRoutingSkillExpressionsFeature = [...t2.baseTransferToAcdFailureReasons, a.invalidSkillExpressionFilter], t2.transferToAcdFailureReasonsAll = [...t2.baseTransferToAcdFailureReasons, a.tooManyPreferredAgents, a.invalidSkillExpressionFilter], t2.baseTransferToAcdWorkitemFailureReasons = t2.queueTransferFailureReasonsForWorkitemFlowType, t2.transferToAcdWorkitemFailureReasonsKnownAgentRoutingFeature = [...t2.baseTransferToAcdWorkitemFailureReasons, a.tooManyPreferredAgents], t2.transferToAcdWorkitemFailureReasonsRoutingSkillExpressionsFeature = [...t2.baseTransferToAcdWorkitemFailureReasons, a.invalidSkillExpressionFilter], t2.transferToAcdWorkitemFailureReasonsAll = [...t2.baseTransferToAcdWorkitemFailureReasons, a.tooManyPreferredAgents, a.invalidSkillExpressionFilter]; + }, 9292: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = i2(30801), o = n2.__importDefault(i2(62028)); + class a extends o.default { + constructor(e3) { + super(e3); + } + get _actionTypeId() { + return r2.taskActionActionType; + } + get displayTypeName() { + return "ArchMenuTask"; + } + get actionTask() { + return this._archAction; + } + get isArchMenuTask() { + return true; + } + } + t2.default = a; + }, 9311: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.FindKnowledgeBaseDocumentByIdActionModel = void 0; + const n2 = i2(28904), r2 = i2(30801); + class o extends n2.BaseFindSystemObjectByIdActionModel { + constructor(e3) { + super(e3), this.__type = o.__type; + } + } + t2.FindKnowledgeBaseDocumentByIdActionModel = o, o.__type = r2.findKnowledgeBaseDocumentByIdActionType, o.registerType(); + }, 9330: function(e2, t2, i2) { + "use strict"; + var n2 = this && this.__read || function(e3, t3) { + var i3 = "function" == typeof Symbol && e3[Symbol.iterator]; + if (!i3) return e3; + var n3, r3, o2 = i3.call(e3), a2 = []; + try { + for (; (void 0 === t3 || t3-- > 0) && !(n3 = o2.next()).done; ) a2.push(n3.value); + } catch (e4) { + r3 = { error: e4 }; + } finally { + try { + n3 && !n3.done && (i3 = o2.return) && i3.call(o2); + } finally { + if (r3) throw r3.error; + } + } + return a2; + }, r2 = this && this.__spreadArray || function(e3, t3) { + for (var i3 = 0, n3 = t3.length, r3 = e3.length; i3 < n3; i3++, r3++) e3[r3] = t3[i3]; + return e3; + }; + Object.defineProperty(t2, "__esModule", { value: true }), t2.merge = void 0; + var o = i2(65212), a = i2(7652), s = i2(68087), l = i2(26404), u = i2(47058); + t2.merge = function() { + for (var e3 = [], t3 = 0; t3 < arguments.length; t3++) e3[t3] = arguments[t3]; + var i3 = l.popScheduler(e3), d = l.popNumber(e3, 1 / 0); + return e3 = a.argsOrArgArray(e3), o.operate(function(t4, o2) { + s.mergeAll(d)(u.from(r2([t4], n2(e3)), i3)).subscribe(o2); + }); + }; + }, 9345: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.settings = t2.MatchSettings = void 0, t2.isBidirectionalMatch = function(e3, t3, i3) { + return this.isMatch(e3, t3, i3) || this.isMatch(t3, e3, i3); + }, t2.isMatch = function(e3, t3, i3, l2) { + let u; + if (a.ParameterValidator.expectMatchSettings(i3, () => o.ParameterInfo.createFunctionParameter(s, "isMatch", "matchSettings")), t3) if (i3.allowNotSet && e3.inheritedType === n2.globalTypes.notSet) u = true; + else if (e3.isAny) u = true; + else if (e3.isAnyComplex) u = t3.isComplex; + else if (i3.shouldMatchType) if (t3.inheritedType === n2.globalTypes.any && e3.isSupportedByAny) u = i3.allowTypeAny; + else if (i3.allowTypeOf) { + const i4 = t3.inheritedType, o2 = e3.inheritedType; + u = i4 === n2.globalTypes.anyAudio.inheritedType ? o2 === n2.globalTypes.audio.inheritedType || o2 === n2.globalTypes.prompt.inheritedType : e3.isCustomType || t3.isCustomType ? e3.isCustomType && l2 ? o2 === i4 : (function(e4, t4) { + return !(!(0, r2.isCustomJsonExpressionType)(e4) || !(0, r2.isCustomJsonExpressionType)(t4)) && e4.dataType === t4.dataType; + })(e3, t3) : o2 === i4; + } else { + const i4 = t3.singletonType, r3 = e3.singletonType; + u = i4 === n2.globalTypes.anyAudio ? r3 === n2.globalTypes.audio || r3 === n2.globalTypes.prompt : r3 === i4; + } + else u = i3.shouldMatchAny ? t3.inheritedType === n2.globalTypes.any : !i3.shouldMatchAnyComplex || e3.isComplex; + else u = false; + return !!u && (!i3.shouldMatchIsCol || e3.isCollection === t3.isCollection); + }; + const n2 = i2(14394), r2 = i2(53476), o = i2(55909), a = i2(33951), s = "ExpressionMatchingService"; + class l { + constructor(e3, t3, i3, n3, r3, o2, a2) { + this.shouldMatchType = e3, this.allowTypeOf = t3, this.allowTypeAny = i3, this.shouldMatchAny = n3, this.shouldMatchIsCol = r3, this.shouldMatchAnyComplex = a2, this.allowNotSet = o2; + } + get isMatchSettings() { + return true; + } + } + t2.MatchSettings = l, t2.settings = { any: new l(false, false, false, true, true, false, false), anyComplex: new l(false, false, false, false, true, false, true), exact: new l(true, false, false, false, true, false, false), typeOf: new l(true, true, false, false, true, false, false), typeOfOrAny: new l(true, true, true, false, true, false, false), typeOfOrAnyOrNotSet: new l(true, true, true, false, true, true, false) }; + }, 9372: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(11541)); + class r2 extends n2.default { + constructor(e3) { + super(e3), this.outputMode = void 0, this.populateFromJSON(e3); + } + get outputMode() { + return this._outputMode; + } + set outputMode(e3) { + this._outputMode = e3; + } + } + t2.default = r2; + }, 9386: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importDefault(i2(92140)), o = i2(17604), a = i2(9456), s = n2.__importStar(i2(36781)), l = n2.__importStar(i2(58380)), u = i2(55299), d = i2(44706), c = i2(95812), p = i2(47957); + class _ extends u.BaseClass { + constructor(e3, t3, i3) { + super(), this.options = i3, this.choiceErrorStrings = [], this.parent = e3, this.parentFlow = e3.parentFlow, this.id = (0, a.uuid)(), t3 && (this.items = t3.map((e4) => new d.ChoiceViewModel(e4, this)), this._model = t3); + } + get className() { + return "ChoiceListViewModel"; + } + addChoice(e3) { + var t3; + const i3 = new d.ChoiceViewModel(new c(), this); + i3.name = e3, i3.isEnabled = true, null === (t3 = i3.label) || void 0 === t3 || t3.initializeDesignTime(), this.items.push(i3), this.model.push(i3.model), this.onChoicesUpdated(); + } + get amObjectEventEmitter() { + return true; + } + addClipboardDependencies(e3) { + } + checkVersion(e3) { + } + destroy() { + } + getConfiguration(e3, t3, i3) { + if (null == t3 ? void 0 : t3.isForFlowYaml) { + const n3 = []; + return this.items.forEach((o2) => { + var a2, s2, l2, u2, d2; + const c2 = {}; + if (c2.name = o2.name, c2.enabled = o2.isEnabled, c2.label = o2.label.getConfiguration(e3, t3, i3), (null === (a2 = o2.parent) || void 0 === a2 ? void 0 : a2.isChoiceList) && (null === (l2 = null === (s2 = o2.parent) || void 0 === s2 ? void 0 : s2.parent) || void 0 === l2 ? void 0 : l2.branches)) { + const i4 = r2.default.findWhere(null === (d2 = null === (u2 = o2.parent) || void 0 === u2 ? void 0 : u2.parent) || void 0 === d2 ? void 0 : d2.branches, { id: o2.referenceId }); + r2.default.extend(c2, null == i4 ? void 0 : i4.getConfiguration(e3, t3)); + } + n3.push(r2.default.tryWrapObject(c2, null == i3 ? void 0 : i3.wrapValueAndActionsInPropertyName)); + }), n3.length ? n3 : null; + } + return this.model; + } + initializeDesignTime() { + this.items.forEach((e3) => { + var t3; + null === (t3 = e3.label) || void 0 === t3 || t3.initializeDesignTime(); + }); + } + onChoicesUpdated() { + this.parent.onChoicesUpdated(), l.fireEvent(this, s.sequenceItemsChanged); + } + get model() { + return this._model; + } + get isChoiceList() { + return true; + } + get length() { + return this.items.length; + } + set length(e3) { + this.items.length = e3, this.model.length = e3; + } + updateDependencies() { + } + validate(e3) { + this.choiceErrorStrings.length = 0; + const t3 = {}; + this.items.forEach((i3, n3) => { + if ("" === i3.name || r2.default.isNullOrUndefined(i3.name)) { + const t4 = (0, o.sprintf)(p.choice.choiceButtonNoNameError, n3 + 1); + return this.choiceErrorStrings[n3] = t4, void e3.addError(this.parent, t4); + } + if (t3[i3.name.toLowerCase()]) { + const t4 = (0, o.sprintf)(p.choice.choiceButtonDuplicateNameError, i3.name); + this.choiceErrorStrings[n3] = t4, e3.addError(this.parent, t4); + } + t3[i3.name.toLowerCase()] = true, i3.validate(e3); + }); + } + } + t2.default = _; + }, 9436: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importDefault(i2(92140)), o = n2.__importDefault(i2(51953)), a = n2.__importDefault(i2(67336)); + class s extends a.default { + constructor(e3) { + super(e3), this.isArchValidationResults = true, this._coreValidationResults = e3, this._coreIssues = e3.issuesMap; + } + get displayTypeName() { + return "ArchValidationResults"; + } + get logStr() { + const e3 = []; + this._appendLogStrType(e3, this.displayTypeName), this.errorCountTotal > 0 && this._appendLogStrErrorCountTotal(e3, this.errorCountTotal), this.warningCountTotal > 0 && this._appendLogStrWarningCountTotal(e3, this.warningCountTotal), this.rollupErrorCountTotal > 0 && this._appendLogStrRollupErrorCountTotal(e3, this.rollupErrorCountTotal), this.rollupWarningCountTotal > 0 && this._appendLogStrRollupWarningCountTotal(e3, this.rollupWarningCountTotal); + const t3 = this._getCoreViewModel(); + if (t3 && t3.parentFlow) { + let i3 = this.coreFactory.createArchWrapper(t3.parentFlow); + this._appendLogStrArchObject(e3, i3 ? i3.logStr : "< no validation object>"), i3 = void 0; + } + return this._createLogStrFromParts(e3); + } + _getIssueForObject(e3) { + if (e3.id) return r2.default.find(this.issues, function(t3) { + return t3.archObject && t3.archObject.id === e3.id; + }); + } + get errorCountTotal() { + let e3 = 0; + return r2.default.each(this.issues, function(t3) { + e3 += t3.errorCount; + }), e3; + } + get issues() { + const e3 = []; + return r2.default.each(this._coreIssues, function(t3) { + e3.push(new o.default(t3)); + }), e3; + } + getErrorsForObject(e3) { + this._checkItemIsArchBaseObjectWithId(this._infoParm("archObjectWithId", "getErrorsForObject"), e3); + const t3 = this._getIssueForObject(e3); + if (t3 && t3.errors) return t3.errors; + } + getIssueForObject(e3) { + return this._checkItemIsArchBaseObjectWithId(this._infoParm("archObjectWithId", "getIssueForObject"), e3), this._getIssueForObject(e3); + } + getRollupErrorsForObject(e3) { + this._checkItemIsArchBaseObjectWithId(this._infoParm("archObjectWithId", "getRollupErrorsForObject"), e3); + const t3 = this._getIssueForObject(e3); + if (t3) return t3.rollupErrors; + } + getRollupWarningsForObject(e3) { + this._checkItemIsArchBaseObjectWithId(this._infoParm("archObjectWithId", "getRollupWarningsForObject"), e3); + const t3 = this._getIssueForObject(e3); + if (t3) return t3.rollupWarnings; + } + getWarningsForObject(e3) { + this._checkItemIsArchBaseObjectWithId(this._infoParm("archObjectWithId", "getWarningsForObject"), e3); + const t3 = this._getIssueForObject(e3); + if (t3 && t3.warnings) return t3.warnings; + } + getSummaryStr(e3, t3, i3) { + i3 || (i3 = ""); + const n3 = []; + return t3 && n3.push(i3 + this.logStr), this.issues.length > 0 ? r2.default.each(this.issues, function(t4) { + n3.push(t4.getSummaryStr(e3, i3 + " ")); + }) : n3.push(i3 + " No validation issues."), n3.join("\n"); + } + getSummaryStrForObject(e3) { + const t3 = this.getIssueForObject(e3); + return t3 ? t3.getSummaryStr(true) : ""; + } + get hasErrors() { + return void 0 !== r2.default.find(this.issues, function(e3) { + return e3.hasErrors; + }); + } + get hasNoErrors() { + return !this.hasErrors; + } + get hasErrorsOrWarnings() { + return void 0 !== r2.default.find(this.issues, function(e3) { + return e3.hasErrorsOrWarnings; + }); + } + get hasNoErrorsOrWarnings() { + return !this.hasErrorsOrWarnings; + } + get hasWarnings() { + return void 0 !== r2.default.find(this.issues, function(e3) { + return e3.hasWarnings; + }); + } + get hasNoWarnings() { + return !this.hasWarnings; + } + objectErrorCount(e3) { + this._checkItemIsArchBaseObjectWithId(this._infoParm("archObjectWithId", "objectErrorCount"), e3); + const t3 = this._getIssueForObject(e3); + return (null == t3 ? void 0 : t3.errorCount) || 0; + } + objectWarningCount(e3) { + this._checkItemIsArchBaseObjectWithId(this._infoParm("archObjectWithId", "objectWarningCount"), e3); + const t3 = this._getIssueForObject(e3); + return (null == t3 ? void 0 : t3.warningCount) || 0; + } + objectHasErrorString(e3, t3) { + const i3 = this.getIssueForObject(e3); + return !!i3 && i3.hasErrorString(t3); + } + objectHasErrors(e3) { + this._checkItemIsArchBaseObjectWithId(this._infoParm("archObjectWithId", "objectHasErrors"), e3); + const t3 = this._getIssueForObject(e3); + return !!t3 && t3.hasErrors; + } + objectHasWarnings(e3) { + this._checkItemIsArchBaseObjectWithId(this._infoParm("archObjectWithId", "objectHasWarnings"), e3); + const t3 = this._getIssueForObject(e3); + return !!t3 && t3.hasWarnings; + } + objectHasNoErrors(e3) { + this._checkItemIsArchBaseObjectWithId(this._infoParm("archObjectWithId", "objectHasNoErrors"), e3); + const t3 = this._getIssueForObject(e3); + return !t3 || !t3.hasErrors; + } + objectHasErrorsOrWarnings(e3) { + this._checkItemIsArchBaseObjectWithId(this._infoParm("archObjectWithId", "objectHasErrorsOrWarnings"), e3); + const t3 = this._getIssueForObject(e3); + return !!t3 && t3.hasErrorsOrWarnings; + } + objectHasNoErrorsOrWarnings(e3) { + const t3 = this.getIssueForObject(e3); + return !t3 || t3.hasNoErrorsOrWarnings; + } + objectHasNoWarnings(e3) { + const t3 = this.getIssueForObject(e3); + return !t3 || t3.hasNoWarnings; + } + objectHasWarningString(e3, t3) { + const i3 = this.getIssueForObject(e3); + return !!i3 && i3.hasWarningString(t3); + } + get parentFlow() { + return this.coreFactory.createArchWrapper(this._coreValidationResults.parentFlow); + } + get rollupErrorCountTotal() { + let e3 = 0; + return r2.default.each(this.issues, function(t3) { + e3 += t3.rollupErrorCount; + }), e3; + } + get rollupWarningCountTotal() { + let e3 = 0; + return r2.default.each(this.issues, function(t3) { + e3 += t3.rollupWarningCount; + }), e3; + } + get warningCountTotal() { + let e3 = 0; + return r2.default.each(this.issues, function(t3) { + e3 += t3.warningCount; + }), e3; + } + } + t2.default = s; + }, 9446: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.GetEmailHeadersActionModel = void 0; + const n2 = i2(31635), r2 = i2(30801), o = i2(80295), a = i2(80295), s = n2.__importDefault(i2(7401)), l = i2(5894); + class u extends l.BaseFailureOutputsActionModel { + constructor(e3) { + super(e3), this.__type = u.__type, (0, a.makeUnenumerable)(this, "_emailHeaderNames"), (0, a.makeUnenumerable)(this, "_emailHeadersResult"); + } + pasteReIdOrRename(e3) { + var t3, i3; + super.pasteReIdOrRename(e3), null === (t3 = this.emailHeaderNames) || void 0 === t3 || t3.pasteReIdOrRename(e3), null === (i3 = this.emailHeadersResult) || void 0 === i3 || i3.pasteReIdOrRename(e3); + } + pasteResolveOldToNewValues(e3) { + var t3, i3; + super.pasteResolveOldToNewValues(e3), null === (t3 = this.emailHeaderNames) || void 0 === t3 || t3.pasteResolveOldToNewValues(e3), null === (i3 = this.emailHeadersResult) || void 0 === i3 || i3.pasteResolveOldToNewValues(e3); + } + get emailHeaderNames() { + return this._emailHeaderNames; + } + set emailHeaderNames(e3) { + this._emailHeaderNames = this.reviveItem(e3, s.default); + } + get emailHeadersResult() { + return this._emailHeadersResult; + } + set emailHeadersResult(e3) { + this._emailHeadersResult = this.reviveItem(e3, s.default); + } + } + t2.GetEmailHeadersActionModel = u, u.__type = r2.getEmailHeadersActionType, n2.__decorate([(0, o.enumerable)(true), n2.__metadata("design:type", Object), n2.__metadata("design:paramtypes", [Object])], u.prototype, "emailHeaderNames", null), n2.__decorate([(0, o.enumerable)(true), n2.__metadata("design:type", Object), n2.__metadata("design:paramtypes", [Object])], u.prototype, "emailHeadersResult", null), u.registerType(); + }, 9456: (e2, t2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.uuid = function() { + return globalThis.crypto.randomUUID(); + }; + }, 9485: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.lexV2BotNameManager = t2.LexV2BotNameManager = void 0; + const n2 = i2(31635), r2 = n2.__importStar(i2(1360)), o = n2.__importStar(i2(24032)), a = n2.__importDefault(i2(47532)), s = i2(81801), l = i2(11865), u = i2(30801), d = i2(27862), c = i2(44931), p = i2(26063), _ = i2(47957); + class h extends a.default { + get requiredAuth() { + return s.externalAuthorizations.authStrings.integrationView; + } + get dependencyType() { + return d.LexV2Bot; + } + constructor() { + super(), this.topic = o.getTopic("LexV2BotNameManager"), this._rawServerCache = {}, this.apiCallSingle = void 0, this.apiCallList = c.getV2Bots, this.className = "LexV2BotNameManager", this.defaultMatchingStyle = r2.exactMatch, this.dependencyContext = _.lex.lexV2Bot, this.noApiCallSingle = true, this.searchField = "name", this.securityError = true, this.uiMetadataSectionName = "lexV2BotName", this.actionsForUsageSearch = [u.lexV2ActionType], this.actionPropertyForUsageSearch = "bot", this._initialize(); + } + get _networkModel() { + return this.apiCallList.api ? this.apiCallList.api.DataContract : p; + } + _createItemViewModel(e3) { + return new l.LexBotViewModel(e3); + } + } + t2.LexV2BotNameManager = h, t2.lexV2BotNameManager = new h(); + }, 9619: (e2, t2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.createErrorClass = void 0, t2.createErrorClass = function(e3) { + var t3 = e3(function(e4) { + Error.call(e4), e4.stack = new Error().stack; + }); + return t3.prototype = Object.create(Error.prototype), t3.prototype.constructor = t3, t3; + }; + }, 9687: (e2, t2, i2) => { + "use strict"; + const n2 = i2(31635), r2 = n2.__importStar(i2(30879)), o = i2(63358), a = n2.__importDefault(i2(73198)), s = n2.__importStar(i2(63824)), l = i2(80428), u = i2(56198), d = i2(97930), c = i2(79467), p = i2(64720), _ = i2(49892), h = i2(70812), m = i2(23657), g = i2(81516), f = n2.__importDefault(i2(27203)), T = n2.__importStar(i2(85705)), y = n2.__importStar(i2(36781)), S = i2(58380), A = i2(1115), N = n2.__importStar(i2(24237)), O = i2(82632), I = n2.__importStar(i2(30065)), v = i2(12179), C = n2.__importDefault(i2(97891)), b = i2(87870), E = n2.__importDefault(i2(97883)), R = i2(17604), w = i2(47957), D = i2(21733); + class P extends E.default { + constructor(e3, t3) { + super(e3), this._loadModel(t3), this.noInput.options.setBuilderLanguagesSequenceConfig(o.askForPaymentSequences.noInputDigitalBotSequence), this.noMatch.options.setBuilderLanguagesSequenceConfig(o.askForPaymentSequences.noMatchDigitalBotSequence); + } + static get managedProperties() { + return [{ createDetails: b.NoteActionProperty.createCreateDetails(w.askForPayment.askForPaymentChannelNote, "info", "askForPaymentChannelNote"), property: "channelAlert", options: _.ExpressionTypelessOptions.create((e3) => e3.setUiPropertyOrder(1)), yamlOptions: P.createYamlOptions("channelAlert", (e3) => e3.setSkipProperty(true)) }, { label: w.askForPayment.askForPayCurrency, description: (0, R.sprintf)(w.askForPayment.askForPaymentCurrencyDesc, w.askForPayment.askForPaymentListingPrice, w.askForPayment.askForPaymentShippingOptions, w.askForPayment.askForPaymentTotalPrice), options: g.ExpressionTypeStringOptions.create((e3) => e3.setDescriptionInfo(w.askForPayment.askForPayCurrency, (0, R.sprintf)(w.askForPayment.askForPaymentCurrencyDesc, w.askForPayment.askForPaymentListingPrice, w.askForPayment.askForPaymentShippingOptions, w.askForPayment.askForPaymentTotalPrice)).setAsInput().setIninTestingField("currency").setUiPropertyOrder(2).facets.setAllowableValues(r2.getCurrencyCodeAllowableValues())), property: "currency", type: l.expressionTypeNames.string }, { label: w.askForPayment.askForPayCountryCode, description: w.askForPayment.askForPaymentCountryCodeDesc, options: g.ExpressionTypeStringOptions.create((e3) => e3.setDescriptionInfo(w.askForPayment.askForPayCountryCode, w.askForPayment.askForPaymentCountryCodeDesc).setAsInput().setIninTestingField("countryCode").setUiPropertyOrder(3).facets.setAllowableValues(T.getCountryCodeAllowableValues())), property: "countryCode", type: l.expressionTypeNames.string }, { label: w.askForPayment.askForPaymentPaymentPlatform, options: g.ExpressionTypeStringOptions.create((e3) => e3.setAsInput().setIninTestingField("paymentPlatform").setDefaultText(I.applePay.id).setUiPropertyOrder(4).setAllowModeLiteralOnly().facets.setAllowableValueShowOriginalDisplayStringInPopover(true).setAllowableValues(I.all)), property: "paymentPlatform", type: l.expressionTypeNames.string }, { label: w.askForPayment.askForPaymentLineItems, property: "lineItems", options: h.ExpressionTypeLineItemOptions.create((e3) => e3.setIsOptional(true).setUiPropertyOrder(5).setIsCollection(true).setCustomLiteralValidator((e4) => { + const t3 = e4.parent, i3 = e4.type.getPropListingPrice(e4); + return t3._validateCurrencyConsistency(i3); + }).setMaxItems(O.askForPaymentLimits.lineItems.maxItems)), yamlOptions: P.createYamlOptions("lineItems", (e3) => e3.setPropertyName("lineItems")), type: l.expressionTypeNames.lineItem }, { label: w.askForPayment.askForPaymentShippingOptions, property: "shippingOptions", options: m.ExpressionTypeShippingOptions.create((e3) => e3.setIsOptional(true).setUiPropertyOrder(6).setIsCollection(true).setCustomLiteralValidator((e4) => { + const t3 = e4.parent, i3 = e4.type.getPropPrice(e4); + return t3._validateCurrencyConsistency(i3) || t3._validateShippingOptionIdentifierConsistency(e4); + }).setMaxItems(O.askForPaymentLimits.shippingOptions.maxItems)), yamlOptions: P.createYamlOptions("shippingOptions", (e3) => e3.setPropertyName("shippingOptions")), type: l.expressionTypeNames.shippingOption }, { label: w.askForPayment.askForPaymentTotalPrice, description: w.askForPayment.askForPaymentTotalPriceDesc, property: "totalPrice", options: d.ExpressionTypeCurrencyOptions.create((e3) => e3.setDescriptionInfo(w.askForPayment.askForPaymentTotalPrice, w.askForPayment.askForPaymentTotalPriceDesc).setIninTestingField("totalPrice").setCurrencyAmountOnly(true).setCustomLiteralValidator((e4) => e4.parent._validateCurrencyConsistency(e4)).setUiPropertyOrder(7).facets.setMinValInclusive(true).setMinDec(O.askForPaymentLimits.totalPrice.minValue).setMaxValInclusive(true).setMaxDec(O.askForPaymentLimits.totalPrice.maxValue).setDecimalPlaces(O.askForPaymentLimits.totalPrice.decimalPlaces)), type: l.expressionTypeNames.currency }, { label: w.askForPayment.askForPaymentContactInformation, description: w.askForPayment.askForPaymentContactInformationDesc, property: "requiredContactInformation", options: g.ExpressionTypeStringOptions.create((e3) => e3.setDescriptionInfo(w.askForPayment.askForPaymentContactInformation, w.askForPayment.askForPaymentContactInformationDesc).setIninTestingField("requiredContactInformation").setUiPropertyOrder(8).setIsCollection(true).setMaxItems(O.askForPaymentLimits.contactInformation.maxItems).setCustomLiteralValidator((e4) => e4.parent._validateContactInformationConsistency(e4)).facets.setAllowableValuePlaceholder(w.askForPayment.askForPaymentContactInformationPlaceholder).setAllowableValues(N.all)), type: l.expressionTypeNames.string }, { label: w.image.image, options: p.ExpressionTypeImageOptions.create((e3) => e3.setIsOptional(true).setAllowModeLiteralOnly().setUiPropertyOrder(11).setUiPropertyCardGroup(w.sendInteractiveApplication.receivedMessage, "image").setIninTestingField("receivedMessageImage")), property: "receivedMessageImage", type: l.expressionTypeNames.image }, { label: w.cardsAndCars.buttonTitlePlaceholder, options: g.ExpressionTypeStringOptions.create((e3) => e3.setIninTestingField("receivedMessageTitle").setUiPropertyCardGroup(w.sendInteractiveApplication.receivedMessage, "title").setDefaultToNoValue(true).setUiPropertyOrder(9).facets.setAllowableValuePlaceholder(w.sendInteractiveApplication.titlePlaceholder).setMaxLength(O.askForPaymentLimits.title.maxLength).setAllowNull(false).setMinLength(O.askForPaymentLimits.title.minLength)), property: "receivedMessageTitle", type: l.expressionTypeNames.string }, { label: w.cardsAndCars.buttonTitlePlaceholder, options: g.ExpressionTypeStringOptions.create((e3) => e3.setIsOptional(true).setIninTestingField("replyMessageTitle").setUiPropertyCardGroup(w.askForPayment.askForPaymentReplyMessage, "title").setDefaultToNoValue(true).setUiSingleItemSectionPropertyGroup(true).setUiPropertyOrder(12).facets.setAllowableValuePlaceholder(w.sendInteractiveApplication.titlePlaceholder).setMaxLength(O.askForPaymentLimits.title.maxLength)), property: "replyMessageTitle", type: l.expressionTypeNames.string }, { label: w.askForPayment.askForPaymentCompletionTimeout, options: c.ExpressionTypeDurationOptions.create((e3) => e3.setAllowSecure(true).setIninTestingField("paymentCompletionTimeout").setDescriptionInfo(w.askForPayment.askForPaymentCompletionTimeout, w.askForPayment.askForPaymentCompletionTimeoutDesc).setDefaultText(a.default.litDurationThreeMinutes).setDurationStyle(s.durationStyles.fullDuration).setUiPropertyOrder(13).facets.setMinDur(30 * a.default.msPerSecond, true).setMaxDur(2 * a.default.msPerHour, true)), property: "paymentCompletionTimeout", type: l.expressionTypeNames.duration }]; + } + initializeDesignTime() { + super.initializeDesignTime(), this.addAutoCleanedUpSubscription((0, S.createObservableForEvent$)(y.expressionValueChanged, this.currency).subscribe(() => this._updateCurrency())), this.addAutoCleanedUpSubscription((0, S.createObservableForEvent$)(y.expressionModeChanged, this.totalPrice).subscribe(() => { + (0, A.validateAction)(this, false, true); + })), this.addAutoCleanedUpSubscription((0, S.createObservableForEvent$)(y.listOrderChanged, this.lineItems).subscribe(() => this._updateCurrency())), this.addAutoCleanedUpSubscription((0, S.createObservableForEvent$)(y.listOrderChanged, this.shippingOptions).subscribe(() => { + this._updateCurrency(), (0, A.validateAction)(this, false, true); + })), this.addAutoCleanedUpSubscription((0, S.createObservableForEvent$)(y.expressionValueChanged, this.shippingOptions).subscribe(() => (0, A.validateAction)(this, false, true))), this.addAutoCleanedUpSubscription((0, S.createObservableForEvent$)(y.expressionValueChanged, this.lineItems).subscribe(() => (0, A.validateAction)(this, false, true))), this.addAutoCleanedUpSubscription((0, S.createObservableForEvent$)(y.expressionValueChanged, this.shippingOptions).subscribe(() => (0, A.validateAction)(this, false, true))), this.addAutoCleanedUpSubscription((0, S.createObservableForEvent$)(y.expressionValueChanged, this.totalPrice).subscribe(() => (0, A.validateAction)(this, false, true))); + } + get supportsCustomOutputPaths() { + return true; + } + get hasOptionalPaths() { + return true; + } + setNewInstanceDefaults(e3) { + super.setNewInstanceDefaults(e3); + const t3 = D(this.parentFlow.defaultLanguage).askForPayment.noInputDigitalBot; + this.setNewInstanceNoInputText(t3); + const i3 = D(this.parentFlow.defaultLanguage).askForPayment.noMatchDigitalBot; + this.setNewInstanceNoMatchText(i3), this.setBranchOutOfService(f.default.maxNoInputsOptional.outputId), this.setBranchOutOfService(f.default.maxNoMatchesOptional.outputId); + } + static get branchInfo() { + return [...f.default.successFailure, f.default.maxNoInputsOptional, f.default.maxNoMatchesOptional]; + } + _updateCurrency() { + var e3, t3, i3, n3; + this.totalPrice.isLiteralMode && this._setPriceText(this.totalPrice), (null === (t3 = null === (e3 = this.lineItems) || void 0 === e3 ? void 0 : e3.collectionItems) || void 0 === t3 ? void 0 : t3.length) > 0 && this.lineItems.collectionItems.items.forEach((e4) => { + if (e4.isLiteralMode) { + const t4 = e4.type.getPropListingPrice(e4); + this._setPriceText(t4); + } + }), (null === (n3 = null === (i3 = this.shippingOptions) || void 0 === i3 ? void 0 : i3.collectionItems) || void 0 === n3 ? void 0 : n3.length) > 0 && this.shippingOptions.collectionItems.items.forEach((e4) => { + if (e4.isLiteralMode) { + const t4 = e4.type.getPropPrice(e4); + this._setPriceText(t4); + } + }); + } + _setPriceText(e3) { + const t3 = e3.text ? e3.text.split("|")[0] : 0; + e3.setText(t3 + "|" + this.currency.text); + } + _validateCurrencyConsistency(e3) { + var t3; + if (e3.isLiteralMode && e3.text && (null === (t3 = this.currency) || void 0 === t3 ? void 0 : t3.text)) { + const t4 = this.currency.text, i3 = this._getCurrencyCodeFromExpression(e3); + if (i3 && i3 !== t4) return w.askForPayment.askForPaymentCurrencyMismatch; + } + } + _getCurrencyCodeFromExpression(e3) { + if (!(null == e3 ? void 0 : e3.text)) return null; + const t3 = e3.text.split("|"); + return 2 === t3.length ? t3[1] : null; + } + _validateContactInformationConsistency(e3) { + var t3, i3; + const n3 = null === (i3 = null === (t3 = this.requiredContactInformation) || void 0 === t3 ? void 0 : t3.collectionItems) || void 0 === i3 ? void 0 : i3.items; + if (null == n3 ? void 0 : n3.length) { + let t4 = 0; + const i4 = e3.getEmbeddableExpressionText(); + for (const e4 of n3) if (e4.getEmbeddableExpressionText() === i4 && (t4++, t4 > 1)) return w.askForPayment.askForPaymentDuplicateContactInformationTypes; + } + } + _validateShippingOptionIdentifierConsistency(e3) { + var t3, i3; + if (e3.isLiteralMode) { + const n3 = e3.type.getPropIdentifier(e3).text, r3 = null === (i3 = null === (t3 = this.shippingOptions) || void 0 === t3 ? void 0 : t3.collectionItems) || void 0 === i3 ? void 0 : i3.items; + if (r3 && n3) { + let e4 = 0; + for (const t4 of r3) if (t4.isLiteralMode && t4.type.getPropIdentifier(t4).text === n3 && (e4++, e4 > 1)) return w.askForPayment.askForPaymentDuplicateIdentifiers; + } + } + } + } + P.info = C.default.createActionInfo({ actionClass: P, canBeInTask: true, helpTopic: v.helpTopics.actions.askForPayment, modelClass: u.AskForPaymentActionModel, name: w.actions.askForPayment, scriptingName: "ArchActionAskForPayment", supportsUtteranceHistoricalData: true }), t2.A = P; + }, 9805: (e2, t2) => { + "use strict"; + var i2 = "undefined" != typeof Uint8Array && "undefined" != typeof Uint16Array && "undefined" != typeof Int32Array; + function n2(e3, t3) { + return Object.prototype.hasOwnProperty.call(e3, t3); + } + t2.assign = function(e3) { + for (var t3 = Array.prototype.slice.call(arguments, 1); t3.length; ) { + var i3 = t3.shift(); + if (i3) { + if ("object" != typeof i3) throw new TypeError(i3 + "must be non-object"); + for (var r3 in i3) n2(i3, r3) && (e3[r3] = i3[r3]); + } + } + return e3; + }, t2.shrinkBuf = function(e3, t3) { + return e3.length === t3 ? e3 : e3.subarray ? e3.subarray(0, t3) : (e3.length = t3, e3); + }; + var r2 = { arraySet: function(e3, t3, i3, n3, r3) { + if (t3.subarray && e3.subarray) e3.set(t3.subarray(i3, i3 + n3), r3); + else for (var o2 = 0; o2 < n3; o2++) e3[r3 + o2] = t3[i3 + o2]; + }, flattenChunks: function(e3) { + var t3, i3, n3, r3, o2, a; + for (n3 = 0, t3 = 0, i3 = e3.length; t3 < i3; t3++) n3 += e3[t3].length; + for (a = new Uint8Array(n3), r3 = 0, t3 = 0, i3 = e3.length; t3 < i3; t3++) o2 = e3[t3], a.set(o2, r3), r3 += o2.length; + return a; + } }, o = { arraySet: function(e3, t3, i3, n3, r3) { + for (var o2 = 0; o2 < n3; o2++) e3[r3 + o2] = t3[i3 + o2]; + }, flattenChunks: function(e3) { + return [].concat.apply([], e3); + } }; + t2.setTyped = function(e3) { + e3 ? (t2.Buf8 = Uint8Array, t2.Buf16 = Uint16Array, t2.Buf32 = Int32Array, t2.assign(t2, r2)) : (t2.Buf8 = Array, t2.Buf16 = Array, t2.Buf32 = Array, t2.assign(t2, o)); + }, t2.setTyped(i2); + }, 9819: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = i2(30801), o = n2.__importDefault(i2(55572)); + class a extends o.default { + constructor(e3) { + super(e3); + } + get _actionTypeId() { + return r2.detectSilenceActionType; + } + get displayTypeName() { + return this._scriptingName; + } + get isArchActionDetectSilence() { + return true; + } + } + t2.default = a; + }, 9836: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(67336)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get displayTypeName() { + return "ArchSettingsActionDefaults"; + } + get isArchSettingsActionDefaults() { + return true; + } + get logStr() { + if (!this._getCoreViewModel()) return this.logStrTypeOnly; + const e3 = []; + return this._appendLogStrType(e3, this.displayTypeName), this._createLogStrFromParts(e3); + } + getDefaultSettingsForActionDefinition(e3) { + return this._checkItemIsArchDefinitionAction(this._infoParm("archDefinitionAction", "getDefaultSettingsForActionDefinition"), e3), this._getCoreViewModel().getDefaultExpressionsForActionType(e3.actionNodeInformation.typeId).map((t3) => this.coreFactory.createArchSettingActionPropertyDefault(e3, t3.options.scriptingPropertyName, t3)); + } + } + t2.default = r2; + }, 10016: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.BaseEventHandlingViewModel = void 0; + const n2 = i2(31635), r2 = n2.__importDefault(i2(92140)), o = n2.__importStar(i2(24032)), a = n2.__importDefault(i2(15244)), s = n2.__importStar(i2(17498)), l = n2.__importDefault(i2(20084)), u = i2(47957), d = o.getTopic("BaseEventHandlingViewModel"); + class c extends l.default { + constructor(e3, t3) { + super(e3, "errorHandling", t3); + } + get id() { + return "errorHandling"; + } + get className() { + return "BaseEventHandlingViewModel"; + } + updateDependencies() { + r2.default.each(this.managedPropertyViewModels, (e3) => { + e3.isExpression ? s.registerExpression(e3, true) : e3.updateDependencies(); + }); + } + getDisplayName() { + return u.customNodes.eventHandling.label; + } + getConfiguration(e3, t3) { + if (null == t3 ? void 0 : t3.isForFlowYaml) { + let i3 = {}; + if (r2.default.isNullOrUndefined(this.handlingType)) d.error(`Matching handlingTypeEnum not found for handlingType value '${this.handlingType}'`); + else { + const n3 = this.getConfigurationForHandlingProperty(e3, t3, this.handlingType); + i3 = r2.default.tryWrapObject(n3, "errorHandling"); + } + return r2.default.extend(i3, super.getConfiguration(e3, t3)), i3; + } + super.getConfiguration(e3, t3), e3.errorHandling.handlingType = this.handlingType; + } + getConfigurationForHandlingProperty(e3, t3, i3, n3) { + var o2, s2; + const l2 = {}, u2 = l2[i3.scriptingName] = {}; + switch (i3) { + case a.default.Disconnect: + break; + case a.default.Queue: + u2.targetQueue = this.queue.getConfiguration(e3, t3); + break; + case a.default.Menu: + const l3 = null === (o2 = this.menuProperty) || void 0 === o2 ? void 0 : o2.getReferenceViewModel(); + r2.default.isNullOrUndefined(l3) || (u2.targetMenuRef = l3.yamlPath); + break; + case a.default.Task: + const c2 = null != n3 ? n3 : this.taskProperty, p = null == c2 ? void 0 : c2.getReferenceViewModel(); + r2.default.isNullOrUndefined(p) || (u2.targetTaskRef = p.yamlPath); + break; + case a.default.State: + const _ = null === (s2 = this.stateProperty) || void 0 === s2 ? void 0 : s2.getReferenceViewModel(); + r2.default.isNullOrUndefined(_) || (u2.targetStateRef = _.yamlPath); + break; + case a.default.EndFlow: + case a.default.EndInQueueState: + case a.default.EndWorkflow: + case a.default.Exit: + case a.default.AbortSend: + case a.default.CompleteSend: + break; + default: + const h = `Matching handlingProperty not found for handling type value '${i3}'`; + throw d.exceptionWithErrorObjectInfo(null, h, i3), h; + } + return r2.default.ensureYamlNoneTrue(u2), l2; + } + get handlingType() { + return this._handlingType; + } + set handlingType(e3) { + this._handlingType = e3; + } + get wrappedYamlName() { + return "settingsErrorHandling"; + } + loadConfiguration(e3) { + super.loadConfiguration(e3), e3.errorHandling.handlingType && (this.handlingType = e3.errorHandling.handlingType); + } + get nodeGuxIcon() { + return "fa/ticket-regular"; + } + } + t2.BaseEventHandlingViewModel = c; + }, 10125: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.outboundFlowListManager = t2.OutboundFlowListManager = void 0; + const n2 = i2(89986), r2 = i2(6109), o = i2(96618), a = i2(24032), s = i2(27862); + class l extends r2.FlowListManager { + get dependencyType() { + return s.OutboundCallFlow; + } + constructor() { + super(), this.topic = (0, a.getTopic)("outboundFlowListManager"), this.briefManager = n2.briefOutboundFlowListManager, this.additionalQueryParams = { type: o.flowTypes.flowTypeOutboundCall }, this.className = "OutboundFlowListManager", this.flowType = o.flowTypes.flowTypeOutboundCall, this._initialize(); + } + } + t2.OutboundFlowListManager = l, t2.outboundFlowListManager = new l(); + }, 10135: (e2) => { + e2.exports = { askCommon: { invalidInputReceived: "\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07", noInputReceived: "\u0E09\u0E31\u0E19\u0E44\u0E21\u0E48\u0E44\u0E14\u0E49\u0E23\u0E31\u0E1A\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E43\u0E14\u0E40\u0E25\u0E22" }, askForBoolean: { noInput: '\u0E1E\u0E39\u0E14\u0E27\u0E48\u0E32 "\u0E43\u0E0A\u0E48" \u0E2B\u0E32\u0E01\u0E15\u0E49\u0E2D\u0E07\u0E01\u0E32\u0E23\u0E14\u0E33\u0E40\u0E19\u0E34\u0E19\u0E01\u0E32\u0E23\u0E15\u0E48\u0E2D \u0E2B\u0E23\u0E37\u0E2D\u0E1E\u0E39\u0E14\u0E27\u0E48\u0E32 "\u0E44\u0E21\u0E48\u0E43\u0E0A\u0E48" \u0E2B\u0E32\u0E01\u0E44\u0E21\u0E48\u0E15\u0E49\u0E2D\u0E07\u0E01\u0E32\u0E23\u0E14\u0E33\u0E40\u0E19\u0E34\u0E19\u0E01\u0E32\u0E23\u0E15\u0E48\u0E2D', noMatch: '\u0E42\u0E1B\u0E23\u0E14\u0E1E\u0E39\u0E14\u0E27\u0E48\u0E32 "\u0E43\u0E0A\u0E48" \u0E2B\u0E23\u0E37\u0E2D "\u0E44\u0E21\u0E48\u0E43\u0E0A\u0E48" \u0E15\u0E49\u0E2D\u0E07\u0E01\u0E32\u0E23\u0E14\u0E33\u0E40\u0E19\u0E34\u0E19\u0E01\u0E32\u0E23\u0E15\u0E48\u0E2D\u0E2B\u0E23\u0E37\u0E2D\u0E44\u0E21\u0E48', question: "\u0E15\u0E49\u0E2D\u0E07\u0E01\u0E32\u0E23\u0E14\u0E33\u0E40\u0E19\u0E34\u0E19\u0E01\u0E32\u0E23\u0E15\u0E48\u0E2D\u0E2B\u0E23\u0E37\u0E2D\u0E44\u0E21\u0E48", noInputDigitalBot: '\u0E42\u0E1B\u0E23\u0E14\u0E23\u0E30\u0E1A\u0E38\u0E27\u0E48\u0E32 "Yes" \u0E2B\u0E32\u0E01\u0E15\u0E49\u0E2D\u0E07\u0E01\u0E32\u0E23\u0E14\u0E33\u0E40\u0E19\u0E34\u0E19\u0E01\u0E32\u0E23\u0E15\u0E48\u0E2D \u0E2B\u0E23\u0E37\u0E2D\u0E23\u0E30\u0E1A\u0E38\u0E27\u0E48\u0E32 "No" \u0E2B\u0E32\u0E01\u0E44\u0E21\u0E48\u0E15\u0E49\u0E2D\u0E07\u0E01\u0E32\u0E23\u0E14\u0E33\u0E40\u0E19\u0E34\u0E19\u0E01\u0E32\u0E23\u0E15\u0E48\u0E2D', noMatchDigitalBot: '\u0E42\u0E1B\u0E23\u0E14\u0E23\u0E30\u0E1A\u0E38\u0E27\u0E48\u0E32 "\u0E43\u0E0A\u0E48" \u0E2B\u0E23\u0E37\u0E2D "\u0E44\u0E21\u0E48\u0E43\u0E0A\u0E48" \u0E15\u0E49\u0E2D\u0E07\u0E01\u0E32\u0E23\u0E14\u0E33\u0E40\u0E19\u0E34\u0E19\u0E01\u0E32\u0E23\u0E15\u0E48\u0E2D\u0E2B\u0E23\u0E37\u0E2D\u0E44\u0E21\u0E48' }, askForIntent: { noInput: '\u0E42\u0E1B\u0E23\u0E14\u0E1E\u0E39\u0E14\u0E1B\u0E23\u0E30\u0E42\u0E22\u0E04\u0E2A\u0E31\u0E49\u0E19\u0E46 \u0E40\u0E1E\u0E37\u0E48\u0E2D\u0E2D\u0E18\u0E34\u0E1A\u0E32\u0E22\u0E02\u0E49\u0E2D\u0E0B\u0E31\u0E01\u0E16\u0E32\u0E21\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13 \u0E15\u0E31\u0E27\u0E2D\u0E22\u0E48\u0E32\u0E07\u0E40\u0E0A\u0E48\u0E19 "\u0E40\u0E0A\u0E47\u0E04\u0E22\u0E2D\u0E14\u0E04\u0E07\u0E40\u0E2B\u0E25\u0E37\u0E2D"', noMatch: "\u0E0A\u0E48\u0E27\u0E22\u0E1A\u0E2D\u0E01\u0E2D\u0E35\u0E01\u0E04\u0E23\u0E31\u0E49\u0E07\u0E27\u0E48\u0E32\u0E04\u0E38\u0E13\u0E15\u0E49\u0E2D\u0E07\u0E01\u0E32\u0E23\u0E17\u0E33\u0E2D\u0E30\u0E44\u0E23", question: "\u0E04\u0E38\u0E13\u0E15\u0E49\u0E2D\u0E07\u0E01\u0E32\u0E23\u0E17\u0E33\u0E2D\u0E30\u0E44\u0E23", noInputDigitalBot: '\u0E42\u0E1B\u0E23\u0E14\u0E1E\u0E34\u0E21\u0E1E\u0E4C\u0E1B\u0E23\u0E30\u0E42\u0E22\u0E04\u0E2A\u0E31\u0E49\u0E19\u0E46 \u0E40\u0E1E\u0E37\u0E48\u0E2D\u0E2D\u0E18\u0E34\u0E1A\u0E32\u0E22\u0E02\u0E49\u0E2D\u0E0B\u0E31\u0E01\u0E16\u0E32\u0E21\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13 \u0E15\u0E31\u0E27\u0E2D\u0E22\u0E48\u0E32\u0E07\u0E40\u0E0A\u0E48\u0E19 "\u0E40\u0E0A\u0E47\u0E04\u0E22\u0E2D\u0E14\u0E04\u0E07\u0E40\u0E2B\u0E25\u0E37\u0E2D"' }, askForSlot: { askFor: "\u0E02\u0E2D %1$s", noInput: "\u0E42\u0E1B\u0E23\u0E14\u0E1E\u0E39\u0E14\u0E2B\u0E23\u0E37\u0E2D\u0E1E\u0E34\u0E21\u0E1E\u0E4C (\u0E42\u0E1B\u0E23\u0E14\u0E43\u0E2A\u0E48\u0E0A\u0E37\u0E48\u0E2D\u0E2A\u0E25\u0E47\u0E2D\u0E15\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u0E17\u0E35\u0E48\u0E19\u0E35\u0E48)", noInputWithSlot: "\u0E42\u0E1B\u0E23\u0E14\u0E1E\u0E39\u0E14\u0E2B\u0E23\u0E37\u0E2D\u0E1E\u0E34\u0E21\u0E1E\u0E4C %1$s", noMatch: "\u0E42\u0E1B\u0E23\u0E14\u0E1A\u0E2D\u0E01 (\u0E42\u0E1B\u0E23\u0E14\u0E43\u0E2A\u0E48\u0E0A\u0E37\u0E48\u0E2D\u0E2A\u0E25\u0E47\u0E2D\u0E15\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u0E17\u0E35\u0E48\u0E19\u0E35\u0E48) \u0E2D\u0E35\u0E01\u0E04\u0E23\u0E31\u0E49\u0E07", noMatchWithSlot: "\u0E42\u0E1B\u0E23\u0E14\u0E1A\u0E2D\u0E01 %1$s \u0E2D\u0E35\u0E01\u0E04\u0E23\u0E31\u0E49\u0E07", question: "\u0E2D\u0E30\u0E44\u0E23\u0E04\u0E37\u0E2D (\u0E42\u0E1B\u0E23\u0E14\u0E43\u0E2A\u0E48\u0E0A\u0E37\u0E48\u0E2D\u0E2A\u0E25\u0E47\u0E2D\u0E15\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u0E17\u0E35\u0E48\u0E19\u0E35\u0E48)", questionWithSlot: "%1$s \u0E04\u0E37\u0E2D\u0E2D\u0E30\u0E44\u0E23", pleaseEnterSlotNameHere: "(\u0E42\u0E1B\u0E23\u0E14\u0E43\u0E2A\u0E48\u0E0A\u0E37\u0E48\u0E2D\u0E2A\u0E25\u0E47\u0E2D\u0E15\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u0E17\u0E35\u0E48\u0E19\u0E35\u0E48)", noInputDigitalBot: "\u0E42\u0E1B\u0E23\u0E14\u0E23\u0E30\u0E1A\u0E38 (\u0E42\u0E1B\u0E23\u0E14\u0E43\u0E2A\u0E48\u0E0A\u0E37\u0E48\u0E2D\u0E2A\u0E25\u0E47\u0E2D\u0E15\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u0E17\u0E35\u0E48\u0E19\u0E35\u0E48)", noInputWithSlotDigitalBot: "\u0E42\u0E1B\u0E23\u0E14\u0E23\u0E30\u0E1A\u0E38 %1$s", continuationPromptWithSlot: "\u0E09\u0E31\u0E19\u0E44\u0E14\u0E49\u0E23\u0E31\u0E1A {{Slot.%1$s}} \u0E21\u0E32\u0E41\u0E25\u0E49\u0E27 \u0E42\u0E1B\u0E23\u0E14\u0E14\u0E33\u0E40\u0E19\u0E34\u0E19\u0E01\u0E32\u0E23\u0E15\u0E48\u0E2D" }, askForNextSlot: { noInput: '\u0E1E\u0E39\u0E14\u0E27\u0E48\u0E32 "\u0E43\u0E0A\u0E48" \u0E2B\u0E32\u0E01\u0E21\u0E35\u0E02\u0E49\u0E2D\u0E0B\u0E31\u0E01\u0E16\u0E32\u0E21\u0E2D\u0E37\u0E48\u0E19 \u0E2B\u0E23\u0E37\u0E2D\u0E1E\u0E39\u0E14\u0E27\u0E48\u0E32 "\u0E44\u0E21\u0E48\u0E43\u0E0A\u0E48" \u0E2B\u0E32\u0E01\u0E15\u0E49\u0E2D\u0E07\u0E01\u0E32\u0E23\u0E27\u0E32\u0E07\u0E2A\u0E32\u0E22', noMatch: '\u0E1E\u0E39\u0E14\u0E27\u0E48\u0E32 "\u0E43\u0E0A\u0E48" \u0E2B\u0E32\u0E01\u0E21\u0E35\u0E02\u0E49\u0E2D\u0E0B\u0E31\u0E01\u0E16\u0E32\u0E21\u0E2D\u0E37\u0E48\u0E19 \u0E2B\u0E23\u0E37\u0E2D\u0E1E\u0E39\u0E14\u0E27\u0E48\u0E32 "\u0E44\u0E21\u0E48\u0E43\u0E0A\u0E48" \u0E2B\u0E32\u0E01\u0E15\u0E49\u0E2D\u0E07\u0E01\u0E32\u0E23\u0E2D\u0E2D\u0E01\u0E08\u0E32\u0E01\u0E40\u0E0B\u0E2A\u0E0A\u0E31\u0E19', question: "\u0E21\u0E35\u0E2D\u0E30\u0E44\u0E23\u0E43\u0E2B\u0E49\u0E0A\u0E48\u0E27\u0E22\u0E2D\u0E35\u0E01\u0E44\u0E2B\u0E21", noInputDigitalBot: '\u0E23\u0E30\u0E1A\u0E38\u0E27\u0E48\u0E32 "\u0E43\u0E0A\u0E48" \u0E2B\u0E32\u0E01\u0E21\u0E35\u0E02\u0E49\u0E2D\u0E0B\u0E31\u0E01\u0E16\u0E32\u0E21\u0E2D\u0E37\u0E48\u0E19 \u0E2B\u0E23\u0E37\u0E2D\u0E23\u0E30\u0E1A\u0E38\u0E27\u0E48\u0E32 "\u0E44\u0E21\u0E48\u0E43\u0E0A\u0E48" \u0E2B\u0E32\u0E01\u0E15\u0E49\u0E2D\u0E07\u0E01\u0E32\u0E23\u0E2D\u0E2D\u0E01\u0E08\u0E32\u0E01\u0E40\u0E0B\u0E2A\u0E0A\u0E31\u0E19', noMatchDigitalBot: '\u0E23\u0E30\u0E1A\u0E38\u0E27\u0E48\u0E32 "\u0E43\u0E0A\u0E48" \u0E2B\u0E32\u0E01\u0E21\u0E35\u0E02\u0E49\u0E2D\u0E0B\u0E31\u0E01\u0E16\u0E32\u0E21\u0E2D\u0E37\u0E48\u0E19 \u0E2B\u0E23\u0E37\u0E2D\u0E23\u0E30\u0E1A\u0E38\u0E27\u0E48\u0E32 "\u0E44\u0E21\u0E48\u0E43\u0E0A\u0E48" \u0E2B\u0E32\u0E01\u0E15\u0E49\u0E2D\u0E07\u0E01\u0E32\u0E23\u0E2D\u0E2D\u0E01\u0E08\u0E32\u0E01\u0E40\u0E0B\u0E2A\u0E0A\u0E31\u0E19' }, askForPayment: { noInputDigitalBot: "\u0E42\u0E1B\u0E23\u0E14\u0E21\u0E2D\u0E1A\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E01\u0E32\u0E23\u0E0A\u0E33\u0E23\u0E30\u0E40\u0E07\u0E34\u0E19\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u0E40\u0E1E\u0E37\u0E48\u0E2D\u0E14\u0E33\u0E40\u0E19\u0E34\u0E19\u0E01\u0E32\u0E23\u0E15\u0E48\u0E2D", noMatchDigitalBot: "\u0E09\u0E31\u0E19\u0E44\u0E21\u0E48\u0E40\u0E02\u0E49\u0E32\u0E43\u0E08\u0E04\u0E33\u0E15\u0E2D\u0E1A\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13 \u0E42\u0E1B\u0E23\u0E14\u0E25\u0E2D\u0E07\u0E2D\u0E35\u0E01\u0E04\u0E23\u0E31\u0E49\u0E07" }, askForAuthentication: { noInputDigitalBot: "\u0E42\u0E1B\u0E23\u0E14\u0E21\u0E2D\u0E1A\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E01\u0E32\u0E23\u0E22\u0E37\u0E19\u0E22\u0E31\u0E19\u0E15\u0E31\u0E27\u0E15\u0E19\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u0E40\u0E1E\u0E37\u0E48\u0E2D\u0E14\u0E33\u0E40\u0E19\u0E34\u0E19\u0E01\u0E32\u0E23\u0E15\u0E48\u0E2D", noMatchDigitalBot: "\u0E09\u0E31\u0E19\u0E44\u0E21\u0E48\u0E40\u0E02\u0E49\u0E32\u0E43\u0E08\u0E04\u0E33\u0E15\u0E2D\u0E1A\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13 \u0E42\u0E1B\u0E23\u0E14\u0E25\u0E2D\u0E07\u0E2D\u0E35\u0E01\u0E04\u0E23\u0E31\u0E49\u0E07." }, askSurveyQuestion: { notApplicable: "\u0E44\u0E21\u0E48\u0E40\u0E01\u0E35\u0E48\u0E22\u0E27\u0E02\u0E49\u0E2D\u0E07", surveyAnswerOptionSequence: "\u0E01\u0E14 %1$s \u0E2A\u0E33\u0E2B\u0E23\u0E31\u0E1A %2$s", surveyAnswerNotApplicableSequence: "\u0E01\u0E14\u0E14\u0E32\u0E27\u0E2B\u0E32\u0E01\u0E44\u0E21\u0E48\u0E40\u0E01\u0E35\u0E48\u0E22\u0E27\u0E02\u0E49\u0E2D\u0E07", surveyAnswerNotApplicableWithQuestionSequence: "%1$s \u0E01\u0E14\u0E14\u0E32\u0E27\u0E2B\u0E32\u0E01\u0E44\u0E21\u0E48\u0E40\u0E01\u0E35\u0E48\u0E22\u0E27\u0E02\u0E49\u0E2D\u0E07", voiceSurveyNoInputText: "\u0E42\u0E1B\u0E23\u0E14\u0E15\u0E2D\u0E1A\u0E04\u0E33\u0E16\u0E32\u0E21", voiceSurveyNoMatchText: "\u0E09\u0E31\u0E19\u0E44\u0E21\u0E48\u0E40\u0E02\u0E49\u0E32\u0E43\u0E08" }, commonModule: { exitCommonModule: "\u0E2D\u0E2D\u0E01\u0E08\u0E32\u0E01\u0E42\u0E21\u0E14\u0E39\u0E25\u0E17\u0E31\u0E48\u0E27\u0E44\u0E1B" }, form: { noInputDigitalBot: "\u0E42\u0E1B\u0E23\u0E14\u0E17\u0E33\u0E41\u0E1A\u0E1A\u0E1F\u0E2D\u0E23\u0E4C\u0E21\u0E43\u0E2B\u0E49\u0E40\u0E2A\u0E23\u0E47\u0E08\u0E2A\u0E34\u0E49\u0E19\u0E40\u0E1E\u0E37\u0E48\u0E2D\u0E14\u0E33\u0E40\u0E19\u0E34\u0E19\u0E01\u0E32\u0E23\u0E15\u0E48\u0E2D", noMatchDigitalBot: "\u0E42\u0E1B\u0E23\u0E14\u0E17\u0E33\u0E41\u0E1A\u0E1A\u0E1F\u0E2D\u0E23\u0E4C\u0E21\u0E43\u0E2B\u0E49\u0E40\u0E2A\u0E23\u0E47\u0E08\u0E2A\u0E34\u0E49\u0E19\u0E40\u0E1E\u0E37\u0E48\u0E2D\u0E14\u0E33\u0E40\u0E19\u0E34\u0E19\u0E01\u0E32\u0E23\u0E15\u0E48\u0E2D." }, messagingTemplate: { noInputDigitalBot: "\u0E42\u0E1B\u0E23\u0E14\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E2B\u0E19\u0E36\u0E48\u0E07\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23\u0E08\u0E32\u0E01\u0E15\u0E31\u0E27\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E17\u0E35\u0E48\u0E21\u0E35", noMatchDigitalBot: "\u0E42\u0E1B\u0E23\u0E14\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E2B\u0E19\u0E36\u0E48\u0E07\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23\u0E08\u0E32\u0E01\u0E15\u0E31\u0E27\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E17\u0E35\u0E48\u0E21\u0E35" }, knowledgeSettings: { knowledgeAnswerHighlightFlowProgressionDefault: "\u0E14\u0E33\u0E40\u0E19\u0E34\u0E19\u0E01\u0E32\u0E23\u0E15\u0E48\u0E2D", knowledgeAnswerHighlightFullArticleDefault: "\u0E14\u0E39\u0E1A\u0E17\u0E04\u0E27\u0E32\u0E21\u0E09\u0E1A\u0E31\u0E1A\u0E40\u0E15\u0E47\u0E21", knowledgeInitialResponseMulti: "\u0E40\u0E1E\u0E37\u0E48\u0E2D\u0E43\u0E2B\u0E49\u0E09\u0E31\u0E19\u0E0A\u0E48\u0E27\u0E22\u0E17\u0E33\u0E43\u0E2B\u0E49\u0E40\u0E1B\u0E49\u0E32\u0E2B\u0E21\u0E32\u0E22\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u0E0A\u0E31\u0E14\u0E40\u0E08\u0E19\u0E02\u0E36\u0E49\u0E19 \u0E42\u0E1B\u0E23\u0E14\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E15\u0E31\u0E27\u0E40\u0E25\u0E02\u0E08\u0E32\u0E01\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23\u0E15\u0E48\u0E2D\u0E44\u0E1B\u0E19\u0E35\u0E49", knowledgeInitialResponseMultiRetry: "\u0E42\u0E1B\u0E23\u0E14\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E15\u0E31\u0E27\u0E40\u0E25\u0E02 \u0E40\u0E0A\u0E48\u0E19 '1'.\n\u0E15\u0E31\u0E27\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E21\u0E35\u0E14\u0E31\u0E07\u0E19\u0E35\u0E49", knowledgeNoMatch: "\u0E44\u0E21\u0E48\u0E21\u0E35\u0E02\u0E49\u0E2D\u0E43\u0E14\u0E40\u0E25\u0E22", knowledgeConfirmation: "\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E19\u0E35\u0E49\u0E15\u0E2D\u0E1A\u0E04\u0E33\u0E16\u0E32\u0E21\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u0E2B\u0E23\u0E37\u0E2D\u0E44\u0E21\u0E48", knowledgeFollowup: "\u0E09\u0E31\u0E19\u0E2B\u0E27\u0E31\u0E07\u0E27\u0E48\u0E32\u0E44\u0E14\u0E49\u0E15\u0E2D\u0E1A\u0E04\u0E33\u0E16\u0E32\u0E21\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u0E41\u0E25\u0E49\u0E27 \u0E04\u0E38\u0E13\u0E2A\u0E32\u0E21\u0E32\u0E23\u0E16\u0E16\u0E32\u0E21\u0E2D\u0E30\u0E44\u0E23\u0E01\u0E47\u0E44\u0E14\u0E49\u0E17\u0E35\u0E48\u0E15\u0E49\u0E2D\u0E07\u0E01\u0E32\u0E23\u0E17\u0E23\u0E32\u0E1A" }, noOverlay: { intent: { intentConfirmationStr1: "\u0E09\u0E31\u0E19\u0E04\u0E34\u0E14\u0E27\u0E48\u0E32\u0E04\u0E38\u0E13\u0E15\u0E49\u0E2D\u0E07\u0E01\u0E32\u0E23", intentConfirmationStr2: "\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07\u0E2B\u0E23\u0E37\u0E2D\u0E44\u0E21\u0E48" }, youSaid: { youSaidConfirmationStr1: "\u0E04\u0E38\u0E13\u0E1E\u0E39\u0E14\u0E27\u0E48\u0E32", youSaidConfirmationStr2: "\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07\u0E2B\u0E23\u0E37\u0E2D\u0E44\u0E21\u0E48", youSaidConfirmationStr1DigitalBot: "\u0E04\u0E38\u0E13\u0E1E\u0E34\u0E21\u0E1E\u0E4C\u0E27\u0E48\u0E32" }, noInput: { noInputStr1: "\u0E42\u0E1B\u0E23\u0E14\u0E1E\u0E39\u0E14\u0E2B\u0E23\u0E37\u0E2D\u0E1E\u0E34\u0E21\u0E1E\u0E4C", noInputStr1DigitalBot: "\u0E42\u0E1B\u0E23\u0E14\u0E1E\u0E34\u0E21\u0E1E\u0E4C" }, noMatch: { noMatchStr1: "\u0E42\u0E1B\u0E23\u0E14\u0E1A\u0E2D\u0E01" }, whatIs: { whatIsQuestionStr1: "\u0E2D\u0E30\u0E44\u0E23\u0E04\u0E37\u0E2D", whatIsQuestionStr2: "?" }, iGotContinuation: { iGotContinuationStr1: "\u0E09\u0E31\u0E19\u0E44\u0E14\u0E49\u0E23\u0E31\u0E1A", iGotContinuationStr2: "\u0E21\u0E32\u0E41\u0E25\u0E49\u0E27 \u0E42\u0E1B\u0E23\u0E14\u0E14\u0E33\u0E40\u0E19\u0E34\u0E19\u0E01\u0E32\u0E23\u0E15\u0E48\u0E2D" } }, defaultCallFlowOne: "\u0E42\u0E1F\u0E25\u0E27\u0E4C\u0E01\u0E32\u0E23\u0E42\u0E17\u0E23\u0E40\u0E23\u0E34\u0E48\u0E21\u0E15\u0E49\u0E19", errorHandlingAgentEscalationConfirmation: "\u0E04\u0E38\u0E13\u0E15\u0E49\u0E2D\u0E07\u0E01\u0E32\u0E23\u0E1E\u0E39\u0E14\u0E01\u0E31\u0E1A\u0E17\u0E35\u0E48\u0E1B\u0E23\u0E36\u0E01\u0E29\u0E32\u0E43\u0E0A\u0E48\u0E2B\u0E23\u0E37\u0E2D\u0E44\u0E21\u0E48", errorHandlingAgentEscalationHandover: "\u0E42\u0E1B\u0E23\u0E14\u0E23\u0E2D\u0E2A\u0E31\u0E01\u0E04\u0E23\u0E39\u0E48 \u0E09\u0E31\u0E19\u0E08\u0E30\u0E2A\u0E48\u0E07\u0E15\u0E48\u0E2D\u0E43\u0E2B\u0E49\u0E04\u0E19\u0E2D\u0E37\u0E48\u0E19", errorHandlingErrorEventHandover: "\u0E02\u0E2D\u0E2D\u0E20\u0E31\u0E22 \u0E40\u0E01\u0E34\u0E14\u0E02\u0E49\u0E2D\u0E1C\u0E34\u0E14\u0E1E\u0E25\u0E32\u0E14 \u0E42\u0E1B\u0E23\u0E14\u0E23\u0E2D\u0E2A\u0E31\u0E01\u0E04\u0E23\u0E39\u0E48\u0E02\u0E13\u0E30\u0E17\u0E35\u0E48\u0E09\u0E31\u0E19\u0E2A\u0E48\u0E07\u0E15\u0E48\u0E2D\u0E1C\u0E39\u0E49\u0E17\u0E35\u0E48\u0E2A\u0E32\u0E21\u0E32\u0E23\u0E16\u0E0A\u0E48\u0E27\u0E22\u0E40\u0E2B\u0E25\u0E37\u0E2D\u0E04\u0E38\u0E13\u0E44\u0E14\u0E49", errorHandlingErrorEventHandoverVoiceSurvey: "\u0E02\u0E2D\u0E2D\u0E20\u0E31\u0E22 \u0E40\u0E01\u0E34\u0E14\u0E02\u0E49\u0E2D\u0E1C\u0E34\u0E14\u0E1E\u0E25\u0E32\u0E14 \u0E2A\u0E27\u0E31\u0E2A\u0E14\u0E35", errorHandlingRecognitionEventHandover: "\u0E02\u0E2D\u0E2D\u0E20\u0E31\u0E22 \u0E09\u0E31\u0E19\u0E44\u0E21\u0E48\u0E40\u0E02\u0E49\u0E32\u0E43\u0E08 \u0E42\u0E1B\u0E23\u0E14\u0E23\u0E2D\u0E2A\u0E31\u0E01\u0E04\u0E23\u0E39\u0E48\u0E02\u0E13\u0E30\u0E17\u0E35\u0E48\u0E09\u0E31\u0E19\u0E2A\u0E48\u0E07\u0E15\u0E48\u0E2D\u0E43\u0E2B\u0E49\u0E1C\u0E39\u0E49\u0E17\u0E35\u0E48\u0E2A\u0E32\u0E21\u0E32\u0E23\u0E16\u0E0A\u0E48\u0E27\u0E22\u0E40\u0E2B\u0E25\u0E37\u0E2D\u0E04\u0E38\u0E13\u0E44\u0E14\u0E49", errorHandlingRecognitionEventHandoverVoiceSurvey: "\u0E02\u0E2D\u0E2D\u0E20\u0E31\u0E22 \u0E09\u0E31\u0E19\u0E44\u0E21\u0E48\u0E40\u0E02\u0E49\u0E32\u0E43\u0E08 \u0E2A\u0E27\u0E31\u0E2A\u0E14\u0E35", errorHandlingTTS: "\u0E02\u0E2D\u0E2D\u0E20\u0E31\u0E22 \u0E40\u0E01\u0E34\u0E14\u0E02\u0E49\u0E2D\u0E1C\u0E34\u0E14\u0E1E\u0E25\u0E32\u0E14 \u0E42\u0E1B\u0E23\u0E14\u0E25\u0E2D\u0E07\u0E42\u0E17\u0E23\u0E2D\u0E35\u0E01\u0E04\u0E23\u0E31\u0E49\u0E07", initialGreetingTTS: "\u0E2A\u0E27\u0E31\u0E2A\u0E14\u0E35 \u0E19\u0E35\u0E48\u0E04\u0E37\u0E2D\u0E04\u0E33\u0E17\u0E31\u0E01\u0E17\u0E32\u0E22\u0E40\u0E23\u0E34\u0E48\u0E21\u0E41\u0E23\u0E01", initialState: "\u0E2A\u0E16\u0E32\u0E19\u0E30\u0E40\u0E23\u0E34\u0E48\u0E21\u0E41\u0E23\u0E01", initialBotState: "\u0E1A\u0E47\u0E2D\u0E17\u0E40\u0E23\u0E34\u0E48\u0E21\u0E15\u0E49\u0E19", initialDigitalBotState: "\u0E04\u0E33\u0E17\u0E31\u0E01\u0E17\u0E32\u0E22\u0E40\u0E23\u0E34\u0E48\u0E21\u0E41\u0E23\u0E01", initialSurveyBotState: "\u0E1A\u0E47\u0E2D\u0E17\u0E17\u0E33\u0E41\u0E1A\u0E1A\u0E2A\u0E33\u0E23\u0E27\u0E08", intentConfirmation: "\u0E09\u0E31\u0E19\u0E04\u0E34\u0E14\u0E27\u0E48\u0E32\u0E04\u0E38\u0E13\u0E15\u0E49\u0E2D\u0E07\u0E01\u0E32\u0E23 %1$s \u0E43\u0E0A\u0E48\u0E2B\u0E23\u0E37\u0E2D\u0E44\u0E21\u0E48", mainMenu: "\u0E40\u0E21\u0E19\u0E39\u0E2B\u0E25\u0E31\u0E01", mainMenuTTS: "\u0E15\u0E2D\u0E19\u0E19\u0E35\u0E49\u0E04\u0E38\u0E13\u0E2D\u0E22\u0E39\u0E48\u0E17\u0E35\u0E48\u0E40\u0E21\u0E19\u0E39\u0E2B\u0E25\u0E31\u0E01 \u0E01\u0E14 9 \u0E2B\u0E32\u0E01\u0E15\u0E49\u0E2D\u0E07\u0E01\u0E32\u0E23\u0E22\u0E01\u0E40\u0E25\u0E34\u0E01\u0E01\u0E32\u0E23\u0E40\u0E0A\u0E37\u0E48\u0E2D\u0E21\u0E15\u0E48\u0E2D", mainTask: "\u0E07\u0E32\u0E19", settingsConfirmationNoInputApology: "\u0E02\u0E2D\u0E2D\u0E20\u0E31\u0E22 \u0E09\u0E31\u0E19\u0E44\u0E21\u0E48\u0E44\u0E14\u0E49\u0E22\u0E34\u0E19\u0E40\u0E2A\u0E35\u0E22\u0E07\u0E04\u0E38\u0E13 \u0E42\u0E1B\u0E23\u0E14\u0E1E\u0E39\u0E14\u0E27\u0E48\u0E32 \u0E43\u0E0A\u0E48 \u0E2B\u0E23\u0E37\u0E2D \u0E44\u0E21\u0E48\u0E43\u0E0A\u0E48", settingsConfirmationNoInputApologyDigitalBot: '\u0E02\u0E2D\u0E2D\u0E20\u0E31\u0E22 \u0E09\u0E31\u0E19\u0E44\u0E21\u0E48\u0E44\u0E14\u0E49\u0E23\u0E31\u0E1A\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E08\u0E32\u0E01\u0E04\u0E38\u0E13 \u0E42\u0E1B\u0E23\u0E14\u0E23\u0E30\u0E1A\u0E38\u0E27\u0E48\u0E32 "\u0E43\u0E0A\u0E48" \u0E2B\u0E23\u0E37\u0E2D "\u0E44\u0E21\u0E48\u0E43\u0E0A\u0E48"', settingsConfirmationNoMatchApology: "\u0E02\u0E2D\u0E2D\u0E20\u0E31\u0E22 \u0E42\u0E1B\u0E23\u0E14\u0E1E\u0E39\u0E14\u0E27\u0E48\u0E32 \u0E43\u0E0A\u0E48 \u0E2B\u0E23\u0E37\u0E2D \u0E44\u0E21\u0E48\u0E43\u0E0A\u0E48", settingsConfirmationNoMatchApologyDigitalBot: '\u0E02\u0E2D\u0E2D\u0E20\u0E31\u0E22 \u0E42\u0E1B\u0E23\u0E14\u0E23\u0E30\u0E1A\u0E38\u0E27\u0E48\u0E32 "\u0E43\u0E0A\u0E48" \u0E2B\u0E23\u0E37\u0E2D "\u0E44\u0E21\u0E48\u0E43\u0E0A\u0E48"', settingsNoInputApology: "\u0E02\u0E2D\u0E2D\u0E20\u0E31\u0E22 \u0E09\u0E31\u0E19\u0E44\u0E21\u0E48\u0E44\u0E14\u0E49\u0E22\u0E34\u0E19\u0E40\u0E2A\u0E35\u0E22\u0E07\u0E04\u0E38\u0E13", settingsNoInputApologyDigitalBot: "\u0E02\u0E2D\u0E2D\u0E20\u0E31\u0E22 \u0E09\u0E31\u0E19\u0E44\u0E21\u0E48\u0E44\u0E14\u0E49\u0E23\u0E31\u0E1A\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E08\u0E32\u0E01\u0E04\u0E38\u0E13", settingsEndOfSessionMessageDigitalBot: "\u0E09\u0E31\u0E19\u0E44\u0E21\u0E48\u0E44\u0E14\u0E49\u0E22\u0E34\u0E19\u0E40\u0E2A\u0E35\u0E22\u0E07\u0E04\u0E38\u0E13\u0E21\u0E32\u0E23\u0E30\u0E22\u0E30\u0E2B\u0E19\u0E36\u0E48\u0E07\u0E41\u0E25\u0E49\u0E27 \u0E14\u0E31\u0E07\u0E19\u0E31\u0E49\u0E19\u0E09\u0E31\u0E19\u0E08\u0E30\u0E1B\u0E34\u0E14\u0E41\u0E0A\u0E17\u0E19\u0E35\u0E49 \u0E42\u0E1B\u0E23\u0E14\u0E01\u0E25\u0E31\u0E1A\u0E21\u0E32\u0E2D\u0E35\u0E01\u0E04\u0E23\u0E31\u0E49\u0E07\u0E2B\u0E32\u0E01\u0E04\u0E38\u0E13\u0E22\u0E31\u0E07\u0E15\u0E49\u0E2D\u0E07\u0E01\u0E32\u0E23\u0E04\u0E27\u0E32\u0E21\u0E0A\u0E48\u0E27\u0E22\u0E40\u0E2B\u0E25\u0E37\u0E2D \u0E02\u0E2D\u0E1A\u0E04\u0E38\u0E13", settingsNoMatchApology: "\u0E02\u0E2D\u0E2D\u0E20\u0E31\u0E22", settingsNoToConfirmationApology: "\u0E02\u0E2D\u0E2D\u0E20\u0E31\u0E22", periodicStateName: "\u0E2A\u0E16\u0E32\u0E19\u0E30\u0E17\u0E33\u0E0B\u0E49\u0E33" }; + }, 10144: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(84655)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "dateTime"; + } + get displayTypeName() { + return "ArchVariableDateTime"; + } + get initialValue() { + return this._initialValue; + } + get isArchVariableDateTime() { + return true; + } + } + t2.default = r2; + }, 10202: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = i2(30801), o = n2.__importDefault(i2(21345)); + class a extends o.default { + constructor(e3) { + super(e3); + } + get _actionTypeId() { + return r2.clearUtilizationLabelActionType; + } + get displayTypeName() { + return this._scriptingName; + } + get isArchActionClearUtilizationLabel() { + return true; + } + get clearUtilizationLabelOutputsFailure() { + return this._coreActionViewModel.errorBindings ? this.coreFactory.createArchWrapper(this._coreActionViewModel.errorBindings) : null; + } + } + t2.default = a; + }, 10203: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importDefault(i2(67336)), o = n2.__importDefault(i2(56549)), a = i2(89599), s = n2.__importDefault(i2(94225)); + class l extends r2.default { + constructor(e3) { + super(e3), this._coreVirtualAgentSettingsViewModel = e3; + } + get displayTypeName() { + return "ArchSettingsNluVirtualAgent"; + } + get isArchSettingsNluVirtualAgent() { + return true; + } + get logStr() { + if (!this._getCoreViewModel()) return this.logStrTypeOnly; + const e3 = []; + return this._appendLogStrType(e3, this.displayTypeName), this._createLogStrFromParts(e3); + } + get summarization() { + return this.coreFactory.createArchWrapper(this._coreVirtualAgentSettingsViewModel.summarization); + } + get assignWrapupCodes() { + return this.coreFactory.createArchWrapper(this._coreVirtualAgentSettingsViewModel.assignWrapupCodes); + } + get enabledWrapupCodes() { + return this.coreFactory.createArchWrapper(this._coreVirtualAgentSettingsViewModel.enabledWrapupCodes); + } + get conversationSummaryId() { + return this._getCoreViewModel().conversationSummaryId; + } + get conversationSummaryName() { + return this._getCoreViewModel().conversationSummaryName; + } + setConversationSummaryByIdAsync(e3, t3) { + return this._checkItemIsValidLiteralString(this._infoParm("conversationSummaryId", "setConversationSummaryByIdAsync"), e3, false), this._checkItemIsValidFunction(this._infoParm("callbackFunction", "setConversationSummaryByIdAsync"), t3, true), o.default.findItemByIdAsync(a.conversationSummarySettingManager, e3, "conversationSummaryId").then((i3) => (this.logNote(`found the summarization setting named '${i3.name}' for the summarization setting ID of '${e3}'`), this._coreVirtualAgentSettingsViewModel.conversationSummary.setValue(i3), s.default.executeCallback(this, "setConversationSummaryByIdAsync", t3, this))); + } + setConversationSummaryByNameAsync(e3, t3) { + return this._checkItemIsValidLiteralString(this._infoParm("conversationSummaryName", "setConversationSummaryByNameAsync"), e3, false), this._checkItemIsValidFunction(this._infoParm("callbackFunction", "setConversationSummaryByNameAsync"), t3, true), o.default.findItemByValueAsync(a.conversationSummarySettingManager, e3, "summarization setting", "name", "name").then((i3) => (this.logNote(`Found partial info for the summarization setting named '${i3.name}' for the passed summarization setting name of '${e3}'. Getting full summarization setting details.`), this.setConversationSummaryByIdAsync(i3.id, t3))); + } + } + t2.default = l; + }, 10236: (e2, t2, i2) => { + const n2 = i2(5532).default, { builderPartIds: r2 } = i2(69149), o = i2(94053).A, { globalTypes: a } = i2(14394); + e2.exports = { create: () => { + n2.addBuilderPartDef(new o({ isSystem: false, resultType: a.audio, id: r2.audio.findUserWithFallback })), n2.addBuilderPartDef(new o({ isSystem: false, resultType: a.prompt, id: r2.prompt.findUserWithFallback })), n2.addBuilderPartDef(new o({ isSystem: true, resultType: a.audio, id: r2.audio.findSystemWithFallback })), n2.addBuilderPartDef(new o({ isSystem: true, resultType: a.prompt, id: r2.prompt.findSystemWithFallback })); + } }; + }, 10281: (e2, t2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.isFunction = void 0, t2.isFunction = function(e3) { + return "function" == typeof e3; + }; + }, 10311: (e2, t2, i2) => { + const n2 = i2(50700), r2 = i2(57108), o = i2(92646), a = i2(36019).default; + function s() { + } + const l = new s(); + s.prototype.getCategoryList = a.request("GET", "{public-api.apps}/api/v2/bridge/useractions/categories", o), s.prototype.getMetaData = a.request("GET", "{public-api.apps}/api/v2/bridge/useractions/metadata/{name}", n2), s.prototype.getMetaDataList = a.request("GET", "{public-api.apps}/api/v2/bridge/useractions/metadata", r2); + const u = { ignoreBadResponse: true }; + l.getCategoryList.addOptions(u), l.getMetaData.addOptions(u), l.getMetaDataList.addOptions(u), e2.exports = l; + }, 10381: function(e2, t2, i2) { + "use strict"; + var n2, r2 = this && this.__extends || (n2 = function(e3, t3) { + return n2 = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(e4, t4) { + e4.__proto__ = t4; + } || function(e4, t4) { + for (var i3 in t4) Object.prototype.hasOwnProperty.call(t4, i3) && (e4[i3] = t4[i3]); + }, n2(e3, t3); + }, function(e3, t3) { + if ("function" != typeof t3 && null !== t3) throw new TypeError("Class extends value " + String(t3) + " is not a constructor or null"); + function i3() { + this.constructor = e3; + } + n2(e3, t3), e3.prototype = null === t3 ? Object.create(t3) : (i3.prototype = t3.prototype, new i3()); + }); + Object.defineProperty(t2, "__esModule", { value: true }), t2.ReplaySubject = void 0; + var o = i2(76808), a = i2(93275), s = (function(e3) { + function t3(t4, i3, n3) { + void 0 === t4 && (t4 = 1 / 0), void 0 === i3 && (i3 = 1 / 0), void 0 === n3 && (n3 = a.dateTimestampProvider); + var r3 = e3.call(this) || this; + return r3._bufferSize = t4, r3._windowTime = i3, r3._timestampProvider = n3, r3._buffer = [], r3._infiniteTimeWindow = true, r3._infiniteTimeWindow = i3 === 1 / 0, r3._bufferSize = Math.max(1, t4), r3._windowTime = Math.max(1, i3), r3; + } + return r2(t3, e3), t3.prototype.next = function(t4) { + var i3 = this, n3 = i3.isStopped, r3 = i3._buffer, o2 = i3._infiniteTimeWindow, a2 = i3._timestampProvider, s2 = i3._windowTime; + n3 || (r3.push(t4), !o2 && r3.push(a2.now() + s2)), this._trimBuffer(), e3.prototype.next.call(this, t4); + }, t3.prototype._subscribe = function(e4) { + this._throwIfClosed(), this._trimBuffer(); + for (var t4 = this._innerSubscribe(e4), i3 = this._infiniteTimeWindow, n3 = this._buffer.slice(), r3 = 0; r3 < n3.length && !e4.closed; r3 += i3 ? 1 : 2) e4.next(n3[r3]); + return this._checkFinalizedStatuses(e4), t4; + }, t3.prototype._trimBuffer = function() { + var e4 = this, t4 = e4._bufferSize, i3 = e4._timestampProvider, n3 = e4._buffer, r3 = e4._infiniteTimeWindow, o2 = (r3 ? 1 : 2) * t4; + if (t4 < 1 / 0 && o2 < n3.length && n3.splice(0, n3.length - o2), !r3) { + for (var a2 = i3.now(), s2 = 0, l = 1; l < n3.length && n3[l] <= a2; l += 2) s2 = l; + s2 && n3.splice(0, s2 + 1); + } + }, t3; + })(o.Subject); + t2.ReplaySubject = s; + }, 10384: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.botFlowListManager = t2.BotFlowListManager = void 0; + const n2 = i2(98489), r2 = i2(30801), o = i2(6109), a = i2(96618), s = i2(24032), l = i2(27862); + class u extends o.FlowListManager { + get dependencyType() { + return l.BotFlow; + } + constructor() { + super(), this.topic = (0, s.getTopic)("botListManager"), this.briefManager = n2.briefBotFlowListManager, this.additionalQueryParams = { type: a.flowTypes.flowTypeBot }, this.className = "BotFlowListManager", this.uiMetadataSectionName = "botFlows", this.actionsForUsageSearch = [r2.callBotFlowActionType], this.actionPropertyForUsageSearch = "botFlow", this.flowType = a.flowTypes.flowTypeBot, this._initialize(); + } + } + t2.BotFlowListManager = u, t2.botFlowListManager = new u(); + }, 10420: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.briefEmailSendFlowListManager = void 0; + const n2 = i2(31635), r2 = i2(96618), o = n2.__importStar(i2(24032)), a = i2(70726), s = i2(27862); + class l extends a.BriefFlowListManager { + get dependencyType() { + return s.EmailSendFlow; + } + constructor() { + super(), this.topic = o.getTopic("briefEmailSendFlowListManager"), this.additionalQueryParams = { type: r2.flowTypes.flowTypeEmailSend }, this.className = "BriefEmailSendFlowListManager", this.flowType = r2.flowTypes.flowTypeEmailSend, this._initialize(); + } + } + t2.briefEmailSendFlowListManager = new l(); + }, 10438: (e2, t2, i2) => { + function n2() { + this.region = void 0, this.aliasId = void 0, n2.baseConstructor.apply(this, arguments); + } + i2(87290).extend(n2, "LexV2Alias"), Object.defineProperties(n2.prototype, { isLexV2Alias: { get: function() { + return true; + } } }), e2.exports = n2; + }, 10535: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.responseManager = t2.ResponseManager = void 0; + const n2 = i2(31635), r2 = n2.__importDefault(i2(33231)), o = n2.__importDefault(i2(92140)), a = n2.__importStar(i2(1360)), s = n2.__importStar(i2(90891)), l = n2.__importDefault(i2(47532)), u = i2(81801), d = i2(30801), c = i2(24032), p = i2(71528), _ = i2(31278), h = i2(47957), m = i2(27862); + class g extends l.default { + get requiredAuth() { + return u.externalAuthorizations.authStrings.responseView; + } + get dependencyType() { + return m.Response; + } + constructor() { + super(), this.topic = (0, c.getTopic)("ResponseManager"), this.apiCallList = s.getResponses, this.apiCallSingle = s.getResponse, this._rawServerCache = {}, this.actionsForUsageSearch = [d.getResponseActionType], this.actionPropertyForUsageSearch = "responseId", this.defaultMatchingStyle = a.exactMatch, this.dependencyContext = h.getResponse.selectedResponse, this.searchField = "queryPhrase", this.uiMetadataSectionName = "responses", this.className = "ResponseManager", this.defaultPageSize = 100, this.isResponseManager = true, this._initialize(); + } + _createItemViewModel(e3) { + return new _.ResponseViewModel(e3); + } + isResponseInSelectedResponseLibrary(e3, t3) { + return !(!e3 || !t3) && e3.libraries.find((e4) => e4.id === t3.id); + } + setAdditionalCache(e3) { + o.default.each(e3.libraries, function(e4) { + p.responseLibraryManager.addItem(e4); + }); + } + getSubstitutionInputs(e3) { + return e3.isFlowCachedVersion ? r2.default.fcall(function() { + e3.loadSubstitutionSchema(e3.model.substitutionsSchema); + }) : this.fetchItem(e3.id).then((t3) => { + t3 && (e3.substitutions = t3.substitutions); + }); + } + } + t2.ResponseManager = g, t2.responseManager = new g(); + }, 10555: (e2, t2, i2) => { + "use strict"; + const n2 = i2(31635), r2 = n2.__importDefault(i2(92140)), o = i2(63352), a = i2(80428), s = i2(47875), l = i2(8136), u = i2(81516), d = n2.__importDefault(i2(27203)), c = i2(4861), p = i2(53e3), _ = i2(12179), h = n2.__importDefault(i2(97891)), m = n2.__importDefault(i2(36825)), g = i2(47957); + class f extends m.default { + constructor(e3, t3) { + super(e3), this.scheduleManager = c.scheduleManager, this._loadModel(t3), this.evaluateEmergencyGroup = this.model.evaluateEmergencyGroup; + } + _loadModel(e3) { + super._loadModel(e3), !this.schedule.text && this.model.scheduleName && this.model.scheduleId && this.schedule.update(this.model.scheduleName, this.model.scheduleId), this.schedule.text && this.model.scheduleName && delete this.model.scheduleName, this.schedule.text && this.model.scheduleId && delete this.model.scheduleId; + } + _initializeDesignTime() { + super._initializeDesignTime(), !this.scheduleName && !this.scheduleId || this.schedule.text || (this.schedule.update(this.scheduleName, this.scheduleId), this.scheduleName = void 0, this.scheduleId = void 0), this.emergencyGroup.options.setIsOptional(false), this.emergencyGroup.isNoValueMode && (this.emergencyGroup.mode = o.ExpressionModes.literal); + } + getConfiguration(e3, t3) { + return e3 = super.getConfiguration(e3, t3), this.schedule.isLiteralMode && this.schedule.text ? (this.scheduleId = this.schedule.val, this.scheduleName = this.schedule.text) : (this.scheduleId = void 0, this.scheduleName = void 0), e3; + } + _preDestroy() { + super._preDestroy(), this.scheduleManager.tryRemoveItemFromFlowMetadata(this, this.scheduleId); + } + get evaluateEmergencyGroup() { + return this.model.evaluateEmergencyGroup; + } + set evaluateEmergencyGroup(e3) { + this.model.evaluateEmergencyGroup = e3, this.emergencyGroup.outOfService = !e3, this.schedule.outOfService = e3, this.setOutOfService(); + } + setOutOfService() { + super.setOutOfService(), this.evaluationDateTime.outOfService = this.evaluationDateTime.outOfService || this.evaluateEmergencyGroup, this.timeZone.outOfService = this.evaluateEmergencyGroup; + } + static get branchInfo() { + return d.default.activeInactive; + } + static get managedProperties() { + return [{ property: "timeZone", label: g.evaluateSchedules.timeZone, description: g.evaluateSchedules.timeZoneDescription, type: a.expressionTypeNames.string, options: u.ExpressionTypeStringOptions.create((e3) => e3.setDescriptionInfo(g.evaluateSchedules.timeZone, g.evaluateSchedules.timeZoneDescription).setIninTestingField("evaluateScheduleTimeZoneExpression").setLiteralValidatorName(s.literalValidatorNames.timeZones).facets.setTrim(true).setAllowableValues(p.timeZoneService.timeZones).setLastAllowableValueSelectedStorageKey("lastTimeZone")), yamlOptions: f.createYamlOptions("timeZone", (e3) => e3.setPropertyName("scheduleTimeZone")) }, { property: "schedule", label: g.evaluateSchedules.schedule, type: a.expressionTypeNames.schedule, options: l.ExpressionTypeScheduleOptions.create((e3) => e3.setIninTestingField("schedules")) }, { property: "evaluationType", isJustForFlowYaml: true, yamlOptions: f.createYamlOptions("evaluationType", (e3) => e3.setExportOrder(20)) }]; + } + postProcessYamlConfig(e3, t3, i3) { + var n3, o2, a2, s2, l2; + super.postProcessYamlConfig(e3, t3, i3), e3.evaluationType = {}, this.evaluateEmergencyGroup ? (e3.evaluationType.emergencyGroup || (e3.evaluationType.emergencyGroup = {}), r2.default.moveRenameAndDeleteProperty(e3, e3.evaluationType, "emergencyGroup", "emergencyGroup"), (null === (n3 = e3.evaluationType.emergencyGroup.lit) || void 0 === n3 ? void 0 : n3.name) && (e3.evaluationType.emergencyGroup.name = e3.evaluationType.emergencyGroup.lit.name), delete e3.evaluationTimeZone, delete e3.evaluate) : (e3.evaluationType.schedule || (e3.evaluationType.schedule = {}), r2.default.moveRenameAndDeleteProperty(e3, e3.evaluationType.schedule, "schedule", "selectedSchedule"), (null === (a2 = null === (o2 = e3.evaluationType.schedule.selectedSchedule) || void 0 === o2 ? void 0 : o2.lit) || void 0 === a2 ? void 0 : a2.name) ? e3.evaluationType.schedule.name = e3.evaluationType.schedule.selectedSchedule.lit.name : (null === (s2 = e3.evaluationType.schedule.selectedSchedule) || void 0 === s2 ? void 0 : s2.lit) && delete e3.evaluationType.schedule.selectedSchedule, (null === (l2 = e3.scheduleTimeZone) || void 0 === l2 ? void 0 : l2.lit) && (e3.evaluationType.schedule.evaluationTimeZone = e3.scheduleTimeZone.lit), r2.default.moveAndDeleteProperty(e3, e3.evaluationType.schedule, "scheduleTimeZone"), r2.default.moveAndDeleteProperty(e3, e3.evaluationType.schedule, "evaluate")), r2.default.isEmpty(e3.evaluationType) && delete e3.evaluationType; + } + setSchedule(e3) { + this.schedule.update(null == e3 ? void 0 : e3.name, null == e3 ? void 0 : e3.id); + } + get selectedSchedule() { + return this.schedule.isLiteralMode || this.schedule.isNoValueMode ? this.schedule.val ? this.scheduleManager.getItem(this.schedule.val) : void 0 : void this.topic.error("selectedSchedule should not be getting called when this.schedule is not in literal mode"); + } + } + f.info = h.default.createActionInfo({ actionClass: f, canBeInTask: true, helpTopic: _.helpTopics.actions.evaluateSchedule, modelClass: i2(47719), name: g.actions.evaluateSchedule, scriptingName: "ArchActionEvaluateSchedule" }), t2.A = f; + }, 10673: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = i2(96618), o = n2.__importDefault(i2(25498)); + class a extends o.default { + constructor(e3) { + super(e3), this._settingsOutboundCall = this.coreFactory.createArchWrapper(e3.outboundSettings); + } + get _flowType() { + return r2.flowTypes.flowTypeOutboundCall; + } + get displayTypeName() { + return "ArchFlowOutboundCall"; + } + get isArchFlowOutboundCall() { + return true; + } + get settingsOutboundCall() { + return this._settingsOutboundCall; + } + } + t2.default = a; + }, 10706: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.buffer = void 0; + var n2 = i2(65212), r2 = i2(5717), o = i2(17214), a = i2(19724); + t2.buffer = function(e3) { + return n2.operate(function(t3, i3) { + var n3 = []; + return t3.subscribe(o.createOperatorSubscriber(i3, function(e4) { + return n3.push(e4); + }, function() { + i3.next(n3), i3.complete(); + })), a.innerFrom(e3).subscribe(o.createOperatorSubscriber(i3, function() { + var e4 = n3; + n3 = [], i3.next(e4); + }, r2.noop)), function() { + n3 = null; + }; + }); + }; + }, 10734: (e2, t2, i2) => { + var n2 = i2(15659), r2 = i2(8507), o = {}; + Object.keys(n2).forEach(function(e3) { + o[e3] = {}, Object.defineProperty(o[e3], "channels", { value: n2[e3].channels }), Object.defineProperty(o[e3], "labels", { value: n2[e3].labels }); + var t3 = r2(e3); + Object.keys(t3).forEach(function(i3) { + var n3 = t3[i3]; + o[e3][i3] = (function(e4) { + var t4 = function(t5) { + if (null == t5) return t5; + arguments.length > 1 && (t5 = Array.prototype.slice.call(arguments)); + var i4 = e4(t5); + if ("object" == typeof i4) for (var n4 = i4.length, r3 = 0; r3 < n4; r3++) i4[r3] = Math.round(i4[r3]); + return i4; + }; + return "conversion" in e4 && (t4.conversion = e4.conversion), t4; + })(n3), o[e3][i3].raw = (function(e4) { + var t4 = function(t5) { + return null == t5 ? t5 : (arguments.length > 1 && (t5 = Array.prototype.slice.call(arguments)), e4(t5)); + }; + return "conversion" in e4 && (t4.conversion = e4.conversion), t4; + })(n3); + }); + }), e2.exports = o; + }, 10798: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.getFeatureConfig = m, t2.getEnabledFeatureConfigNames = function() { + const e3 = []; + return r2.default.each(h, (t3) => { + f(t3.featureConfigName) && e3.push(t3.featureConfigName); + }), e3; + }, t2.isFeaturePresent = g, t2.isFeatureAvailable = f, t2.isFeatureUnavailable = function(e3) { + return !f(e3); + }, t2.setBootstrapData = function(e3) { + r2.default.each(e3.featureConfigs, (e4, t3) => { + h[t3] = new l.default(t3, e4); + }), p = true; + }, t2.hasTestConfig = function() { + throw new Error("this should only be called during unit tests"); + }, t2._makeFeatureAvailableForTest = function(e3, t3) { + throw new Error("this should only be called during unit tests"); + }, t2.checkSingletonForFeatureSupport = T, t2.checkArrayForFeatureSupport = function(e3) { + let t3 = true; + return e3.forEach((e4) => { + T(e4) || (t3 = false); + }), t3; + }, t2._resetTestFeatureAvailability = function() { + throw new Error("this should only be called during unit tests"); + }; + const n2 = i2(31635), r2 = n2.__importDefault(i2(92140)), o = n2.__importStar(i2(24032)), a = n2.__importDefault(i2(14166)), s = n2.__importDefault(i2(4648)), l = n2.__importDefault(i2(97063)), u = i2(16321), d = n2.__importStar(i2(12847)), c = o.getTopic("featureConfig"); + let p = false; + function _(e3) { + p || d.error(`feature '${e3}' being queried before feature configs have been loaded`); + } + const h = /* @__PURE__ */ new Map(); + function m(e3) { + let t3 = h[e3]; + if (!t3) { + if (!s.default[e3]) { + const t4 = `Unknown feature being requested: ${e3}`; + c.error(t4); + } + const i3 = a.default.createNotAvailable(e3); + t3 = h[e3] = new l.default(e3, i3); + } + return t3; + } + function g(e3) { + return _(e3), !!u.bootstrapService.featureConfigs[e3]; + } + function f(e3) { + _(e3); + const t3 = m(e3); + return !!t3 && !!t3.isAvailable; + } + function T(e3) { + return g(e3.name) ? f(e3.name) : e3.treatAsAvailableIfNotPresent; + } + }, 10914: (e2, t2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.NluVersionUtil = void 0, t2.NluVersionUtil = class { + static reverseArray(e3) { + return e3 ? [...e3].reverse() : e3; + } + }; + }, 10923: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(92661)), r2 = i2(30801); + class o extends n2.default { + constructor(e3) { + super(e3); + } + get _actionTypeId() { + return r2.findLanguageSkillActionType; + } + get displayTypeName() { + return this._scriptingName; + } + get isArchActionFindLanguageSkill() { + return true; + } + get findResult() { + return this._findResult; + } + } + t2.default = o; + }, 10954: (e2, t2, i2) => { + const { DarthUploadResponse: n2 } = i2(94829), r2 = i2(73198).default, { PromptContainerList: o } = i2(95258), { PromptContainer: a } = i2(53314), { PromptResourceList: s } = i2(48001), { PromptResource: l } = i2(94729), u = i2(69773), d = i2(36019).default; + function c() { + } + const p = new c(); + c.prototype.audioUpload = d.request("POST"), c.prototype.audioUpload.manualRequestTimeoutMs = 2 * r2.msPerMinute, c.prototype.createPromptContainer = d.request("POST", "{public-api.apps}/api/v2/architect/prompts", a), c.prototype.deletePromptContainer = d.request("DELETE", "{public-api.apps}/api/v2/architect/prompts/{id}"), c.prototype.createPromptResource = d.request("POST", "{public-api.apps}/api/v2/architect/prompts/{promptId}/resources", l), c.prototype.createSystemPromptResource = d.request("POST", "{public-api.apps}/api/v2/architect/systemprompts/{promptId}/resources", l), c.prototype.deletePromptResource = d.request("DELETE", "{public-api.apps}/api/v2/architect/prompts/{promptId}/resources/{language}"), c.prototype.revertSystemPromptResourceAudio = d.request("DELETE", "{public-api.apps}/api/v2/architect/systemprompts/{promptId}/resources/{language}"), c.prototype.clearUserPromptAudio = d.request("DELETE", "{public-api.apps}/api/v2/architect/prompts/{promptId}/resources/{language}/audio"), c.prototype.getPromptContainer = d.request("GET", "{public-api.apps}/api/v2/architect/prompts/{id}", a), c.prototype.getSystemPromptContainer = d.request("GET", "{public-api.apps}/api/v2/architect/systemprompts/{id}", a), c.prototype.getPromptContainers = d.request("GET", "{public-api.apps}/api/v2/architect/prompts", o), c.prototype.getSystemPromptContainers = d.request("GET", "{public-api.apps}/api/v2/architect/systemprompts", o), c.prototype.getPromptResource = d.request("GET", "{public-api.apps}/api/v2/architect/prompts/{promptId}/resources/{language}", l), c.prototype.getSystemPromptResource = d.request("GET", "{public-api.apps}/api/v2/architect/systemprompts/{promptId}/resources/{language}", l), c.prototype.getPromptResources = d.request("GET", "{public-api.apps}/api/v2/architect/prompts/{promptId}/resources", s), c.prototype.getSystemPromptResources = d.request("GET", "{public-api.apps}/api/v2/architect/systemprompts/{promptId}/resources", s), c.prototype.updatePromptContainer = d.request("PUT", "{public-api.apps}/api/v2/architect/prompts/{id}", a), c.prototype.updatePromptResource = d.request("PUT", "{public-api.apps}/api/v2/architect/prompts/{promptId}/resources/{language}", l), c.prototype.getUserPromptUploadPresignedUrl = d.request("POST", "{public-api.apps}/api/v2/architect/prompts/{promptId}/resources/{language}/uploads", n2), c.prototype.getSystemPromptUploadPresignedUrl = d.request("POST", "{public-api.apps}/api/v2/architect/systemprompts/{promptId}/resources/{language}/uploads", n2), c.prototype.audioUploadViaPresignedUrl = d.request("PUT"), p.createPromptContainer.ignore(u.ARCHITECT_PROMPT_ALREADY_EXISTS.code), p.deletePromptContainer.ignore(u.ARCHITECT_DEPENDENCY_OBJECT_IN_USE.code), p.deletePromptContainer.ignore(u.ARCHITECT_PROMPT_CANNOT_DELETE_USED_IN_QUEUES.code), p.deletePromptResource.ignore(u.ARCHITECT_DEPENDENCY_OBJECT_IN_USE.code), p.getPromptContainer.ignore(u.ARCHITECT_PROMPT_NOT_FOUND.code), p.getSystemPromptContainer.ignore(u.ARCHITECT_PROMPT_NOT_FOUND.code), p.getUserPromptUploadPresignedUrl.addOptions({ ignoreBadResponse: true }), p.getSystemPromptUploadPresignedUrl.addOptions({ ignoreBadResponse: true }), p.getPromptContainers.addOptions({ allowRequestChunking: true, chunkingParamName: "name", ignoreBadResponse: true }), e2.exports = p; + }, 10955: (e2, t2, i2) => { + "use strict"; + const n2 = i2(31635), r2 = n2.__importStar(i2(1115)), o = i2(12179), a = n2.__importDefault(i2(5730)), s = n2.__importDefault(i2(97891)), l = n2.__importDefault(i2(22917)), u = i2(92794), d = i2(20083), c = i2(87870), p = i2(80428), _ = n2.__importStar(i2(36781)), h = i2(38551), m = i2(47957); + class g extends a.default { + constructor(e3, t3) { + var i3; + super(e3.parentFlow, e3), this._loadModel(t3), null === (i3 = this.parent.parentFlow.knowledgeSettings) || void 0 === i3 || i3.knowledgeBaseModel$.pipe((0, u.delay)(100)).subscribe(() => r2.validateAction(this, true, true)); + } + _initializeDesignTime() { + var e3, t3, i3; + super._initializeDesignTime(); + const n3 = this.parentFlow; + (null === (e3 = n3.knowledgeSettings) || void 0 === e3 ? void 0 : e3.isKnowledgeV3AvailableInOrg) && (this._setKnowledgeVersionSettings(null === (i3 = null === (t3 = n3.knowledgeSettings) || void 0 === t3 ? void 0 : t3.knowledgeVersion) || void 0 === i3 ? void 0 : i3.text), this.addAutoCleanedUpEventListener(_.knowledgeVersionChanged, (e4) => { + this._setKnowledgeVersionSettings(e4); + })); + } + static get managedProperties() { + return [{ label: m.knowledgeSettings.knowledgeArticle, options: d.ExpressionTypeKnowledgeBaseDocumentOptions.create((e3) => e3.setIninTestingField("knowledgeArticle").setUiDisableOnOutOfService(true)), property: "knowledgeArticle", type: p.expressionTypeNames.knowledgeBaseDocument, yamlOptions: l.default.create("knowledgeArticle", (e3) => e3.setPropertyName("knowledgeArticle")) }, { createDetails: c.NoteActionProperty.createCreateDetails(m.showKnowledgeBaseArticle.showKnowledgeBaseArticleNote, "info", "showKnowledgeNote"), property: "articleInfo", yamlOptions: g.createYamlOptions("articleInfo", (e3) => e3.setSkipProperty(true)) }, { createDetails: c.NoteActionProperty.createCreateDetails(m.showKnowledgeBaseArticle.showKnowledgeSettingArticleNote, "info", "showKnowledgeV3Note"), property: "articleKnowledgeV3Info", yamlOptions: g.createYamlOptions("articleKnowledgeV3Info", (e3) => e3.setSkipProperty(true)) }]; + } + _setKnowledgeVersionSettings(e3) { + e3 === h.KnowledgeVersionValues.v3 ? (this.knowledgeArticle.setAsNoValue(), this.knowledgeArticle.outOfService = true, this.knowledgeArticle.isOptional = true, this.articleInfo.outOfService = true, this.articleKnowledgeV3Info.outOfService = false) : (this.knowledgeArticle.outOfService = false, this.knowledgeArticle.isOptional = false, this.articleInfo.outOfService = false, this.articleKnowledgeV3Info.outOfService = true); + } + } + g.info = s.default.createActionInfo({ actionClass: g, canBeInTask: true, canBeTreeNode: true, helpTopic: o.helpTopics.actions.showKnowledgeArticle, modelClass: i2(22780), name: m.actions.showKnowledgeArticle, scriptingName: "ArchActionShowKnowledgeArticle" }), t2.A = g; + }, 11013: (e2, t2, i2) => { + "use strict"; + var n2, r2, o, a, s, l, u, d, c, p; + Object.defineProperty(t2, "__esModule", { value: true }), t2.SendDigitalContentActionModel = void 0; + const _ = i2(31635), h = i2(39194), m = _.__importDefault(i2(7401)), g = _.__importDefault(i2(90807)), f = i2(72448), T = i2(23436), y = i2(30801), S = i2(80295), A = i2(80295); + class N extends h.BaseActionNoInputNoMatchModel { + constructor(e3) { + super(e3), this.__type = N.__type, (0, A.makeUnenumerable)(this, "_messagingTemplate"), (0, A.makeUnenumerable)(this, "_messagingTemplateId"), (0, A.makeUnenumerable)(this, "_messagingTemplateName"), (0, A.makeUnenumerable)(this, "_selectionResult"), (0, A.makeUnenumerable)(this, "_responseLibrary"), (0, A.makeUnenumerable)(this, "_substitutions"), (0, A.makeUnenumerable)(this, "_question"), (0, A.makeUnenumerable)(this, "_messagingTemplateType"); + } + pasteReIdOrRename(e3) { + var t3, i3, n3, r3, o2, a2; + super.pasteReIdOrRename(e3), null === (t3 = this._messagingTemplate) || void 0 === t3 || t3.pasteReIdOrRename(e3), null === (i3 = this._responseLibrary) || void 0 === i3 || i3.pasteReIdOrRename(e3), null === (n3 = this._selectionResult) || void 0 === n3 || n3.pasteReIdOrRename(e3), null === (r3 = this._substitutions) || void 0 === r3 || r3.forEach((t4) => null == t4 ? void 0 : t4.pasteReIdOrRename(e3)), null === (o2 = this._question) || void 0 === o2 || o2.pasteReIdOrRename(e3), null === (a2 = this._messagingTemplateType) || void 0 === a2 || a2.pasteReIdOrRename(e3); + } + pasteResolveOldToNewValues(e3) { + var t3, i3, n3, r3, o2, a2; + super.pasteResolveOldToNewValues(e3), null === (t3 = this._messagingTemplate) || void 0 === t3 || t3.pasteResolveOldToNewValues(e3), null === (i3 = this._responseLibrary) || void 0 === i3 || i3.pasteResolveOldToNewValues(e3), null === (n3 = this._selectionResult) || void 0 === n3 || n3.pasteResolveOldToNewValues(e3), null === (r3 = this._substitutions) || void 0 === r3 || r3.forEach((t4) => null == t4 ? void 0 : t4.pasteResolveOldToNewValues(e3)), null === (o2 = this._question) || void 0 === o2 || o2.pasteResolveOldToNewValues(e3), null === (a2 = this._messagingTemplateType) || void 0 === a2 || a2.pasteResolveOldToNewValues(e3); + } + get messagingTemplate() { + return this._messagingTemplate; + } + set messagingTemplate(e3) { + this._messagingTemplate = this.reviveItem(e3, f.MessagingTemplate); + } + get messagingTemplateId() { + return this._messagingTemplateId; + } + set messagingTemplateId(e3) { + this._messagingTemplateId = e3; + } + get messagingTemplateName() { + return this._messagingTemplateName; + } + set messagingTemplateName(e3) { + this._messagingTemplateName = e3; + } + get selectionResult() { + return this._selectionResult; + } + set selectionResult(e3) { + this._selectionResult = this.reviveItem(e3, m.default); + } + get responseLibrary() { + return this._responseLibrary; + } + set responseLibrary(e3) { + this._responseLibrary = this.reviveItem(e3, T.ResponseLibrary); + } + get substitutions() { + return this._substitutions; + } + set substitutions(e3) { + this._substitutions = this.reviveArray(e3, g.default); + } + get question() { + return this._question; + } + set question(e3) { + this._question = this.reviveItem(e3, m.default); + } + get messagingTemplateType() { + return this._messagingTemplateType; + } + set messagingTemplateType(e3) { + this._messagingTemplateType = this.reviveItem(e3, m.default); + } + } + t2.SendDigitalContentActionModel = N, N.__type = y.sendDigitalContentActionType, _.__decorate([(0, S.enumerable)(true), _.__metadata("design:type", "function" == typeof (n2 = void 0 !== f.MessagingTemplate && f.MessagingTemplate) ? n2 : Object), _.__metadata("design:paramtypes", ["function" == typeof (r2 = void 0 !== f.MessagingTemplate && f.MessagingTemplate) ? r2 : Object])], N.prototype, "messagingTemplate", null), _.__decorate([(0, S.enumerable)(true), _.__metadata("design:type", String), _.__metadata("design:paramtypes", [String])], N.prototype, "messagingTemplateId", null), _.__decorate([(0, S.enumerable)(true), _.__metadata("design:type", String), _.__metadata("design:paramtypes", [String])], N.prototype, "messagingTemplateName", null), _.__decorate([(0, S.enumerable)(true), _.__metadata("design:type", "function" == typeof (o = void 0 !== m.default && m.default) ? o : Object), _.__metadata("design:paramtypes", ["function" == typeof (a = void 0 !== m.default && m.default) ? a : Object])], N.prototype, "selectionResult", null), _.__decorate([(0, S.enumerable)(true), _.__metadata("design:type", "function" == typeof (s = void 0 !== T.ResponseLibrary && T.ResponseLibrary) ? s : Object), _.__metadata("design:paramtypes", ["function" == typeof (l = void 0 !== T.ResponseLibrary && T.ResponseLibrary) ? l : Object])], N.prototype, "responseLibrary", null), _.__decorate([(0, S.enumerable)(true), _.__metadata("design:type", Array), _.__metadata("design:paramtypes", [Array])], N.prototype, "substitutions", null), _.__decorate([(0, S.enumerable)(true), _.__metadata("design:type", "function" == typeof (u = void 0 !== m.default && m.default) ? u : Object), _.__metadata("design:paramtypes", ["function" == typeof (d = void 0 !== m.default && m.default) ? d : Object])], N.prototype, "question", null), _.__decorate([(0, S.enumerable)(true), _.__metadata("design:type", "function" == typeof (c = void 0 !== m.default && m.default) ? c : Object), _.__metadata("design:paramtypes", ["function" == typeof (p = void 0 !== m.default && m.default) ? p : Object])], N.prototype, "messagingTemplateType", null), N.registerType(); + }, 11015: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.PermissionShiroValue = void 0; + const n2 = i2(31635).__importDefault(i2(92140)), r2 = i2(55909), o = i2(33951); + t2.PermissionShiroValue = class { + constructor(e3) { + o.ParameterValidator.expectString(e3, () => r2.ParameterInfo.createConstructorParameter(this.className, "value")), Object.defineProperties(this, { _value: { writable: true, value: e3 }, _valueLCase: { writable: true, value: n2.default.isString(e3) ? e3.toLowerCase() : e3 } }); + } + get className() { + return "PermissionShiroValue"; + } + get isPermissionShiroValue() { + return true; + } + get isWildCard() { + return "*" === this.value; + } + get valueLCase() { + return this._valueLCase; + } + get value() { + return this._value; + } + set value(e3) { + this._value = o.ParameterValidator.expectString(e3, () => r2.ParameterInfo.createPropertySet(this.className, "value", "value")); + } + isMatch(e3) { + return e3 && e3.isPermissionShiroValue && (this.isWildCard || this._valueLCase === e3.valueLCase); + } + }; + }, 11053: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(84655)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "emailAddress"; + } + get displayTypeName() { + return "ArchVariableEmailAddress"; + } + get initialValue() { + return this._initialValue; + } + get isArchVariableEmailAddress() { + return true; + } + } + t2.default = r2; + }, 11097: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.getKnowledgeBase = a, t2.getKnowledgeBases = s, t2.getKnowledgeBaseDocument = l, t2.getKnowledgeBaseDocuments = u; + const n2 = i2(31635), r2 = n2.__importDefault(i2(36019)), o = n2.__importStar(i2(56972)); + function a(e3) { + return r2.default.build(o.getKnowledgeBase).templateParams({ id: e3 }).call(); + } + function s(e3) { + return r2.default.build(o.getKnowledgeBases).queryParams(e3.getSearchQueryParams()).call(); + } + function l(e3, t3) { + const i3 = r2.default.build(o.getKnowledgeBaseDocument), n3 = { documentId: e3 }; + return (null == t3 ? void 0 : t3.knowledgeId) && (n3.knowledgeId = t3.knowledgeId), i3.templateParams(n3).call(); + } + function u(e3) { + const t3 = r2.default.build(o.getKnowledgeBaseDocuments), i3 = e3.getSearchQueryParams(true), n3 = e3.additionalParams; + return t3.templateParams(n3).queryParams(i3).call(); + } + a.api = o.getKnowledgeBase, s.api = o.getKnowledgeBases, l.api = o.getKnowledgeBaseDocument, u.api = o.getKnowledgeBaseDocuments; + }, 11181: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.dataTablesManager = t2.DataTablesManager = void 0; + const n2 = i2(31635), r2 = n2.__importStar(i2(55654)), o = n2.__importDefault(i2(47532)), a = i2(30801), s = n2.__importDefault(i2(72211)), l = i2(81801), u = n2.__importDefault(i2(4648)), d = i2(24032), c = i2(10798), p = i2(47957), _ = i2(27862); + class h extends o.default { + get requiredAuth() { + return (0, c.isFeatureAvailable)(u.default.divisionedDataTables) ? l.externalAuthorizations.authStrings.dataTablesSearch : l.externalAuthorizations.authStrings.dataTablesView; + } + get dependencyType() { + return _.DataTable; + } + constructor() { + super(), this.topic = (0, d.getTopic)("DataTablesManager"), this.apiCallList = r2.getDataTables, this.apiCallSingle = r2.getDataTable, this._rawServerCache = {}, this.actionPropertyForUsageSearch = "actionId", this.actionsForUsageSearch = [a.dataTableLookupActionType], this.className = "DataTablesManager", this.dependencyContext = p.dataTable.dataTable, this.suppressSearch = true, this.uiMetadataSectionName = "dataTableTables", this._initialize(); + } + _createItemViewModel(e3) { + return new s.default(e3); + } + } + t2.DataTablesManager = h, t2.dataTablesManager = new h(); + }, 11201: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.variablePropertySupportedSetService = void 0; + const n2 = i2(31635).__importStar(i2(14187)), r2 = i2(78870), o = i2(44033); + class a extends r2.PropertyBaseSupportedSetService { + get className() { + return "VariablePropertySupportedSetService"; + } + get _propertyReasonsInstance() { + return o.variablePropertyReasons; + } + getCanSetScopedVariableTypeAsInput(e3, t3, i3, n3, r3) { + return !!this.getCanSetVariableFlowSchemaInputDependentProperty(e3, n3) && !!this.getFlowTypeSupportsScopedInputVariableOfType(e3, t3, i3, r3); + } + getCanSetScopedVariableTypeAsOutput(e3, t3, i3, n3, r3) { + return !!this.getCanSetVariableFlowSchemaOutputDependentProperty(e3, n3) && !!this.getFlowTypeSupportsScopedOutputVariableOfType(e3, t3, i3, r3); + } + getCanSetVariableFlowSchemaDependentProperty(e3, t3, i3) { + return t3 ? i3 ? this._propertyReasonsInstance.setCannotSetIsSchemaInputOutput(e3) : this._propertyReasonsInstance.setCannotSetIsSchemaInput(e3) : !i3 || this._propertyReasonsInstance.setCannotSetIsSchemaOutput(e3); + } + getCanSetVariableFlowSchemaInputDependentProperty(e3, t3) { + return !t3 || this._propertyReasonsInstance.setCannotSetIsSchemaInput(e3); + } + getCanSetVariableFlowSchemaOutputDependentProperty(e3, t3) { + return !t3 || this._propertyReasonsInstance.setCannotSetIsSchemaOutput(e3); + } + getFlowTypeSupportsSecureVariables(e3, t3) { + return !!t3.supportsSecureVariables || this._propertyReasonsInstance.setNotSupportedNoFlowSecureVariables(e3, t3); + } + getFlowTypeSupportsScopedInputVariableOfType(e3, t3, i3, r3) { + switch (i3) { + case n2.scopes.task: + return !!t3.supportsTaskInputVariables || this._propertyReasonsInstance.setNotSupportedInputVariableScope(e3, t3, i3); + case n2.scopes.common: + case n2.scopes.slot: + case n2.scopes.flow: + return t3.supportsFlowInputVariables ? !!r3.isAvailableAsInputForFlowType(t3.type) || this._propertyReasonsInstance.setNotSupportedTypeNotValidAsFlowInput(e3, t3, r3) : this._propertyReasonsInstance.setNotSupportedInputVariableScope(e3, t3, i3); + default: + return this._propertyReasonsInstance.setNotSupportedInputVariableScope(e3, t3, i3); + } + } + getFlowTypeSupportsScopedOutputVariableOfType(e3, t3, i3, r3) { + switch (i3) { + case n2.scopes.task: + return !!t3.supportsTaskOutputVariables || this._propertyReasonsInstance.setNotSupportedOutputVariableScope(e3, t3, i3); + case n2.scopes.common: + case n2.scopes.slot: + case n2.scopes.flow: + return t3.supportsFlowOutputVariables ? !!r3.isAvailableAsOutputForFlowType(t3.type) || this._propertyReasonsInstance.setNotSupportedTypeNotValidAsFlowOutput(e3, t3, r3) : this._propertyReasonsInstance.setNotSupportedOutputVariableScope(e3, t3, i3); + default: + return this._propertyReasonsInstance.setNotSupportedOutputVariableScope(e3, t3, i3); + } + } + getIsVariableWritable(e3, t3) { + return !!t3 || this._propertyReasonsInstance.setVariableReadOnly(e3); + } + getIsSecureOutputOk(e3, t3, i3) { + return !t3 || !i3 || this._propertyReasonsInstance.setVariableCannotBeSecureOutput(e3); + } + getIsSecureInputOk(e3, t3, i3) { + return !t3 || !i3 || this._propertyReasonsInstance.setVariableCannotBeSecureInput(e3); + } + } + t2.variablePropertySupportedSetService = new a(); + }, 11210: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importDefault(i2(37873)), o = n2.__importDefault(i2(94225)), a = i2(62829); + class s extends r2.default { + static get definition() { + const e3 = this.prototype; + return e3._ensureSessionIsConnected(e3._infoPropGet("definition"), o.default), e3.coreFactory.createArchWrapper(a.getInfo(e3._actionTypeId)); + } + constructor(e3) { + super(e3), this._coreActionViewModel = e3; + } + get _scriptingName() { + return a.getInfo(this._actionTypeId).scriptingName; + } + get _actionTypeId() { + return console.log(`INTERNAL ERROR - _actionTypeId not implemented for '${this.displayTypeName}'`), ""; + } + get definition() { + return this.coreFactory.createArchWrapper(a.getInfo(this._actionTypeId)); + } + get displayTypeName() { + return "ArchBaseAction"; + } + get logStr() { + if (!this._coreActionViewModel) return this.logStrTypeOnly; + const e3 = []; + return this._appendLogStrTrackingId(e3, this.trackingId), this._appendLogStrName(e3, this.name), this._appendLogStrType(e3, this.displayTypeName), this._createLogStrFromParts(e3); + } + get displayTypeNameArchitect() { + return this._coreActionViewModel.info.name; + } + get isArchBaseAction() { + return true; + } + get isMenuChoiceAction() { + const e3 = this._getCoreViewModel().parent; + return !(!e3 || !e3.isMenuChoice); + } + get isReachable() { + return !this.isUnreachable; + } + get isSecure() { + return this._coreActionViewModel.consumesSecureData; + } + get isUnreachable() { + return this._coreActionViewModel.isDisabled; + } + get name() { + return this._coreActionViewModel.name; + } + set name(e3) { + if (!e3) throw "you cannot have a blank name set on an action"; + this._coreActionViewModel.name = e3, this._coreActionViewModel.nameFacetError && this.logErrorAndThrow(this._coreActionViewModel.nameFacetError); + } + get parentFlow() { + return this.coreFactory.createArchWrapper(this._coreActionViewModel.parentFlow); + } + get parentMenuChoice() { + return this.isMenuChoiceAction ? this.coreFactory.createArchWrapper(this._getCoreViewModel().parent) : void 0; + } + get parentTask() { + const e3 = this._coreActionViewModel.topParent; + if (e3 && e3.isTask) return this.coreFactory.createArchWrapper(e3); + } + get parentState() { + const e3 = this._coreActionViewModel.topParent; + if (e3 && e3.isStateLike) return this.coreFactory.createArchWrapper(e3); + } + get trackingId() { + return this._coreActionViewModel.trackingId; + } + set trackingId(e3) { + const t3 = this._infoPropSet("value", "trackingId"); + this._ensureCanSetTrackingIds(t3, o.default, e3); + const i3 = this._getCoreViewModel(), n3 = i3.trackingId; + n3 !== e3 && (i3.trackingId = e3, this.logItemVerboseNote(t3, `updated tracking ID from ${n3} to ${i3.trackingId}.`)); + } + } + t2.default = s; + }, 11276: (e2, t2, i2) => { + const n2 = i2(92140), r2 = i2(93476), o = i2(193).A; + e2.exports = { loadBranches: function(e3) { + e3.branches.length = 0, 0 !== e3.branchInfoList.length && (1 === e3.branchInfoList.length && e3.isSingleBranchAction ? (function(e4) { + const t3 = new r2(e4.branchInfoList[0]); + e4.model.path && (t3.nextActionId = e4.model.path.nextActionId), e4.model.path = t3, e4.branches.push(new o(e4.parentFlow, e4, e4.model.path)); + })(e3) : (function(e4) { + const t3 = [], i3 = []; + e4.model.paths = e4.model.paths || [], n2.each(e4.branchInfoList, function(a) { + if (a.supportedFlowTypes && !n2.contains(a.supportedFlowTypes, e4.parentFlow.type)) { + const t4 = n2.findWhere(e4.model.paths, { outputId: a.outputId }); + return void (t4 && i3.push(t4)); + } + const s = new r2(a), l = n2.findWhere(e4.model.paths, { outputId: a.outputId }); + l ? (s.nextActionId = l.nextActionId, s.outOfService = l.outOfService) : a.defaultToOutOfService && (s.outOfService = true); + const u = new o(e4.parentFlow, e4, s); + u.isFake || t3.push(s), e4.branches.push(u); + }), e4.model.paths = t3, i3.length && (e4.model.__notApplicablePaths = i3); + })(e3)); + }, addBranch: function(e3, t3) { + const i3 = new r2(t3), n3 = new o(e3.parentFlow, e3, i3); + return n3.isFake || e3.model.paths.push(i3), e3.branches.push(n3), n3; + }, removeBranch: function(e3, t3) { + const i3 = n2.findIndex(e3.branches, { id: t3.outputId }); + i3 > -1 && e3.branches.splice(i3, 1); + const r3 = n2.findIndex(e3.model.paths, { outputId: t3.outputId }); + r3 > -1 && e3.model.paths.splice(r3, 1); + } }; + }, 11304: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.GroupType = void 0; + const n2 = i2(31635), r2 = i2(14394), o = i2(71056), a = i2(98835), s = i2(27491), l = n2.__importDefault(i2(22226)), u = i2(80428), d = i2(94765); + class c extends d.ExpressionType { + constructor(e3, t3, i3) { + super(e3, t3, i3); + } + get className() { + return "GroupType"; + } + createExpressionOptionClass() { + return new o.ExpressionTypeNetworkObjectOptions(); + } + canConvertLitToExpression(e3) { + return s.expressionDataService.isFunctionTextAvailableForFlowTypeAndOperandTypes("FindGroup", e3, [r2.globalTypes.string]); + } + convertLitToExpression(e3, t3) { + return t3 && this.canConvertLitToExpression(e3) ? `FindGroup(${l.default.getQuotedExpressionStringLiteral(t3)})` : ""; + } + _getLiteralValueOfExpression() { + return ""; + } + get listManager() { + return a.groupManager; + } + } + t2.GroupType = c, c.typeIdentifier = u.expressionTypeNames.group; + }, 11332: (e2, t2, i2) => { + "use strict"; + const n2 = i2(31635), r2 = i2(17604), o = n2.__importDefault(i2(92140)), a = i2(71012), s = n2.__importDefault(i2(2318)), l = n2.__importDefault(i2(27203)), u = n2.__importStar(i2(59288)), d = n2.__importStar(i2(36781)), c = n2.__importStar(i2(10798)), p = n2.__importStar(i2(33230)), _ = i2(26847), h = n2.__importStar(i2(1115)), m = i2(12179), g = n2.__importDefault(i2(97891)), f = n2.__importDefault(i2(80570)), T = i2(20083), y = n2.__importDefault(i2(4648)), S = i2(80428), A = i2(14187), N = i2(38551), O = i2(21733), I = i2(47957); + class v extends f.default { + constructor(e3, t3) { + super(e3), this.addOptionalPathsFromModel(t3), this._loadModel(t3), c.isFeatureAvailable(y.default.botFlowsAdvancedKnowledgeHandling) && this.setKnowledgeSearchResultOutOfService(), this.question.options.setBuilderLanguagesSequenceConfig(a.askForIntentSequences.questionSequence), this.noMatch.options.setBuilderLanguagesSequenceConfig(a.askForIntentSequences.noMatchSequence), this.parentFlow.isDigitalBotFlow ? this.noInput.options.setBuilderLanguagesSequenceConfig(a.askForIntentSequences.noInputDigitalBotSequence) : this.noInput.options.setBuilderLanguagesSequenceConfig(a.askForIntentSequences.noInputSequence), this.addAutoCleanedUpEventListener(d.nluUpdatedByWorkbench, this.updateIntentPaths.bind(this)), this.addAutoCleanedUpEventSinkWatch(d.lastPathActionRemoved, this, this.removeUnusedOutput.bind(this)), c.isFeatureAvailable(y.default.botFlowsAdvancedKnowledgeHandling) && this.addAutoCleanedUpEventListener(d.branchesChanged, () => { + this.setKnowledgeSearchResultOutOfService(); + }), this.sortBranches(); + } + static get managedProperties() { + return [{ property: "knowledgeSearchResult", label: I.cardsAndCars.knowledgeSearchResultLabel, type: S.expressionTypeNames.knowledgeBaseDocument, options: T.ExpressionTypeKnowledgeBaseDocumentOptions.create((e3) => e3.setAsOutput().setDefaultVariableScope(A.scopes.flow).setIsOptional(true).setDefaultToVariable(true).setIsCollection(true).setIninTestingField("knowledgeSearchResult").setDescriptionInfo(I.cardsAndCars.knowledgeSearchResultLabel, I.cardsAndCars.knowledgeSearchResultDescription).setFeatureConfigName(y.default.botFlowsAdvancedKnowledgeHandling).setUiPropertyOrder(15)), yamlOptions: v.createYamlOptions("knowledgeSearchResult", (e3) => e3.setExportOrder(51)) }]; + } + static get branchInfo() { + return [l.default.noIntentOptional, l.default.knowledgeOptional, l.default.maxNoInputsOptional]; + } + isOptionalPathAvailable(e3) { + var t3, i3; + return e3.branchInfo.outputId !== l.default.knowledgeOptional.outputId || !!(null === (t3 = e3.parentFlow.knowledgeSettings) || void 0 === t3 ? void 0 : t3.knowledge.idValue) || !!(null === (i3 = e3.parentFlow.knowledgeSettings) || void 0 === i3 ? void 0 : i3.knowledge_v3.idValue); + } + get supportsCustomOutputPaths() { + return true; + } + setNewInstanceDefaults(e3) { + super.setNewInstanceDefaults(e3), this.setNewInstanceQuestionText(O(this.parentFlow.defaultLanguage).askForIntent.question), this.setNewInstanceNoMatchText(O(this.parentFlow.defaultLanguage).askForIntent.noMatch), this.parentFlow.isDigitalBotFlow ? this.setNewInstanceNoInputText(O(this.parentFlow.defaultLanguage).askForIntent.noInputDigitalBot) : this.setNewInstanceNoInputText(O(this.parentFlow.defaultLanguage).askForIntent.noInput), this.setBranchOutOfService(l.default.noIntentOptional.outputId), this.setBranchOutOfService(l.default.knowledgeOptional.outputId), this.setBranchOutOfService(l.default.maxNoInputsOptional.outputId); + } + addBranchForIntent(e3) { + let t3 = this.branches.find((t4) => t4.label === e3); + if (!t3) { + const i3 = u.createBranchItem(this.id, e3, null, true); + i3.isDynamicBranch = true, t3 = this.addOptionalBranchInfo(i3), this.sortBranches(); + } + return t3; + } + createBranchesForAllNLUIntents() { + const e3 = []; + try { + this.getIntents().forEach((t3) => { + const i3 = this.addBranchForIntent(t3.name); + e3.push({ intent: t3, branchItem: i3 }); + }); + } catch (e4) { + this.topic.exception(e4, "failure during createBranchesForAllNLUIntents"); + } + return e3; + } + getIntents() { + var e3; + return (null === (e3 = this.parentFlow.botFlowSettings.nluDomain) || void 0 === e3 ? void 0 : e3.intents) || []; + } + get supportsNLUIntents() { + return true; + } + switchToNewIntentPaths(e3) { + p.switchToNewIntentPaths(this, e3); + } + removeUnusedOutput(e3, t3) { + if (!this.getOptionalBranchInfo(this.id)) return; + const i3 = this.parentFlow.botFlowSettings.nluDomain; + i3 && o.default.findIndex(i3.intents, { name: t3.label }) >= 0 || this.removeOptionalBranchInfoById(t3.id, false); + } + updateIntentPaths() { + const e3 = this.parentFlow.botFlowSettings.nluDomain; + if (!e3) return; + const t3 = p.translateIntentsToBranchItems(this, e3.intents); + this.switchToNewIntentPaths(t3); + } + validate(e3) { + var t3, i3; + super.validate(e3); + const n3 = this.parentFlow.botFlowSettings.nluDomain; + if (e3.isDeep && !this.isReadOnly && n3 && this.updateIntentPaths(), this.isDisabled) return; + s.default.currentUserCanUseKnowledge ? o.default.find(this.branches, (e4) => (e4.isDynamicBranch || e4.id === _.outputIds.knowledge) && !e4.isDisabled) || e3.addError(this, (0, r2.sprintf)(I.askForIntent.mustEnableOneNluIntentOrKnowledge, I.generic.branches.knowledgeDialogEngine)) : this.getIntents().length ? o.default.find(this.branches, (e4) => e4.isDynamicBranch && !e4.isDisabled) || e3.addError(this, I.askForIntent.mustEnableOneNluIntent) : e3.addError(this, I.askForIntent.nluMustHaveOneIntent); + const a2 = this.getBranch(_.outputIds.knowledge); + a2 && !a2.outOfService && ((null === (t3 = this.parentFlow.knowledgeSettings) || void 0 === t3 ? void 0 : t3.hasKnowledgeBaseConfigured) || this.parentFlow.knowledgeSettings.knowledgeVersion && this.parentFlow.knowledgeSettings.knowledgeVersion.text !== N.KnowledgeVersionValues.v2 ? (null === (i3 = this.parentFlow.knowledgeSettings) || void 0 === i3 ? void 0 : i3.hasKnowledgeSettingConfigured) || this.parentFlow.knowledgeSettings.knowledgeVersion.text !== N.KnowledgeVersionValues.v3 || e3.addError(this, (0, r2.sprintf)(I.askForIntent.knowledgeSettingMustBeSelectedWhenKnowledgePathEnabled, I.knowledgeSettings.knowledgeSetting)) : e3.addError(this, (0, r2.sprintf)(I.askForIntent.knowledgeBaseMustBeSelectedWhenKnowledgePathEnabled, I.knowledgeSettings.knowledgeBase))); + } + processKnowledgeBaseChanged() { + this.updateKnowledgePath(), h.validateAction(this, true, true); + } + updateKnowledgePath() { + this.parentFlow.isReadOnly; + } + setKnowledgeSearchResultOutOfService() { + const e3 = this.getBranch(l.default.knowledgeOptional.outputId); + this.knowledgeSearchResult.outOfService = e3.outOfService && true; + } + _destroy() { + super._destroy(); + } + _initializeDesignTime() { + var e3, t3; + super._initializeDesignTime(), this.optionalBranchInfo.length || this.createBranchesForAllNLUIntents(), s.default.currentUserCanUseKnowledge && this.addAutoCleanedUpEventSinkWatch(d.valueChanged, null === (e3 = this.parentFlow.knowledgeSettings) || void 0 === e3 ? void 0 : e3.knowledge, () => this.processKnowledgeBaseChanged()), s.default.currentUserCanUseKnowledgeV3 && this.addAutoCleanedUpEventSinkWatch(d.valueChanged, null === (t3 = this.parentFlow.knowledgeSettings) || void 0 === t3 ? void 0 : t3.knowledge_v3, () => this.processKnowledgeBaseChanged()), this.updateKnowledgePath(); + } + } + v.info = g.default.createActionInfo({ actionClass: v, canBeInTask: true, canBeTreeNode: false, helpTopic: m.helpTopics.actions.askForNLUIntent, modelClass: i2(51350), name: I.actions.askForIntent, scriptingName: "ArchActionAskForIntent", supportsUtteranceHistoricalData: true }), t2.A = v; + }, 11343: (e2, t2, i2) => { + const n2 = i2(28730), { participantRecordActionType: r2 } = i2(30801); + function o() { + o.baseConstructor.apply(this, arguments); + } + n2.extend(o, r2, true), e2.exports = o; + }, 11345: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.getFunctionsForCharPosition = function(e3, t3, i3) { + r2.ParameterValidator.expectObject(e3, function() { + return n2.ParameterInfo.createFunctionParameter("expressionCharacterParser", "getFunctionsForCharPosition", "expression"); + }.bind(this)), r2.ParameterValidator.expectInt(t3, function() { + return n2.ParameterInfo.createFunctionParameter("expressionCharacterParser", "getFunctionsForCharPosition", "position"); + }.bind(this)), r2.ParameterValidator.expectBool(i3, function() { + return n2.ParameterInfo.createFunctionParameter("expressionCharacterParser", "getFunctionsForCharPosition", "wantFunctionCallStack"); + }.bind(this), true); + const d = e3.text || ""; + if (t3 < 0 || t3 > d.length || 0 === d.length) return []; + let c, p, _, h, m; + t3 === d.length && (t3 = d.trim().length - 1) < 0 && (t3 = 0), i3 = true === i3; + let g, f = true, T = 0, y = [], S = -1; + const A = []; + try { + for (c = new a.runtime.ANTLRStringStream(d), p = new s(c), p.displayRecognitionError = function(e4, t4) { + }, _ = new a.runtime.CommonTokenStream(p), h = _.getTokens(), m = h ? h.length : 0; T < m; ) { + switch (g = u(h, m, T), g.tokenType) { + case l.COMMA: + if (-1 === S) break; + A[S].addParameterPlaceholder(); + break; + case l.PAREN_LEFT: + if (-1 === S) break; + A[S].hasIdentifier && !A[S].hasLeftParen ? A[S].setLeftParenFromAntlrToken(g) : A[S].addLParenAntlrTokenToCurrentParameter(g); + break; + case l.PAREN_RIGHT: { + if (-1 === S) break; + if (A[S].parameterHasMismatchedParens) { + A[S].addRParenAntlrTokenToCurrentParameter(g); + break; + } + A[S].setRightParenFromAntlrToken(g); + const e4 = A.pop(); + A.length > 0 && A[A.length - 1].appendExpressionFuncPartTextForCurrentParameter(e4), e4.containsPosition(t3) && (i3 || (y = [e4], f = false), f && y.push(e4)), S -= 1; + break; + } + case l.IDENTIFIER: { + const t4 = u(h, m, T + 1); + switch (t4.tokenType) { + case l.FIELD_ACCESS_IDENTIFIER: + case l.FIELD_ACCESS_STRING_LITERAL: + case l.FIELD_ACCESS_UNQUOTED_STRING_LITERAL: + -1 === S ? (A.push(new o.ExpressionFuncPart(e3).setIdentifierFromAntlrToken(g)), S += 1) : A[S].addAntlrTokenToCurrentParameter(g), A[S].addAntlrTokenToCurrentParameter(t4), T += 1; + break; + case l.PAREN_RIGHT: + break; + case l.EOF: + f = false; + break; + default: + A.push(new o.ExpressionFuncPart(e3).setIdentifierFromAntlrToken(g)), S += 1; + } + break; + } + default: + S >= 0 && A[S].addAntlrTokenToCurrentParameter(g); + } + if (!f) break; + T += 1; + } + if (f) for (; A.length > 0; ) { + const e4 = A.pop(); + e4.resolvedFuncDef && e4.setEndTextPosToExpressionTextLength(), A.length > 0 && A[A.length - 1].appendExpressionFuncPartTextForCurrentParameter(e4), y.push(e4); + } + if (0 === y.length) for (T = 0; T < m; ) { + if (g = u(h, m, T), g.tokenType === l.IDENTIFIER) { + if (g.tokenPos <= t3 && g.tokenPos + g.token.getText().length >= t3) { + y.push(new o.ExpressionFuncPart(e3).setIdentifierFromAntlrToken(g)); + break; + } + } else if (g.tokenPos > t3) break; + T += 1; + } + } catch (e4) { + console.error(e4); + } finally { + c = void 0, p.displayRecognitionError = void 0, p = void 0, _ = void 0; + } + return y; + }; + const n2 = i2(55909), r2 = i2(33951), o = i2(90924), a = i2(40810), s = i2(44051), l = i2(36470); + function u(e3, t3, i3) { + if (i3 >= t3) return { token: void 0, tokenType: l.EOF, tokenPos: -1 }; + const n3 = e3[i3]; + return { token: n3, tokenType: n3.getType(), tokenPos: n3.start }; + } + }, 11384: (e2, t2, i2) => { + function n2() { + n2.baseConstructor.apply(this, arguments); + } + i2(11475).extend(n2, "CommunicationVariable", true), Object.defineProperties(n2.prototype, { typeIdentifier: { writable: true } }), e2.exports = n2; + }, 11415: function(e2, t2, i2) { + "use strict"; + var n2 = this && this.__read || function(e3, t3) { + var i3 = "function" == typeof Symbol && e3[Symbol.iterator]; + if (!i3) return e3; + var n3, r3, o2 = i3.call(e3), a2 = []; + try { + for (; (void 0 === t3 || t3-- > 0) && !(n3 = o2.next()).done; ) a2.push(n3.value); + } catch (e4) { + r3 = { error: e4 }; + } finally { + try { + n3 && !n3.done && (i3 = o2.return) && i3.call(o2); + } finally { + if (r3) throw r3.error; + } + } + return a2; + }, r2 = this && this.__spreadArray || function(e3, t3) { + for (var i3 = 0, n3 = t3.length, r3 = e3.length; i3 < n3; i3++, r3++) e3[r3] = t3[i3]; + return e3; + }; + Object.defineProperty(t2, "__esModule", { value: true }), t2.zip = void 0; + var o = i2(48051), a = i2(19724), s = i2(7652), l = i2(44885), u = i2(17214), d = i2(26404); + t2.zip = function() { + for (var e3 = [], t3 = 0; t3 < arguments.length; t3++) e3[t3] = arguments[t3]; + var i3 = d.popResultSelector(e3), c = s.argsOrArgArray(e3); + return c.length ? new o.Observable(function(e4) { + var t4 = c.map(function() { + return []; + }), o2 = c.map(function() { + return false; + }); + e4.add(function() { + t4 = o2 = null; + }); + for (var s2 = function(s3) { + a.innerFrom(c[s3]).subscribe(u.createOperatorSubscriber(e4, function(a2) { + if (t4[s3].push(a2), t4.every(function(e5) { + return e5.length; + })) { + var l3 = t4.map(function(e5) { + return e5.shift(); + }); + e4.next(i3 ? i3.apply(void 0, r2([], n2(l3))) : l3), t4.some(function(e5, t5) { + return !e5.length && o2[t5]; + }) && e4.complete(); + } + }, function() { + o2[s3] = true, !t4[s3].length && e4.complete(); + })); + }, l2 = 0; !e4.closed && l2 < c.length; l2++) s2(l2); + return function() { + t4 = o2 = null; + }; + }) : l.EMPTY; + }; + }, 11464: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.exhaust = void 0; + var n2 = i2(17977); + t2.exhaust = n2.exhaustAll; + }, 11475: (e2, t2, i2) => { + const n2 = i2(92140), r2 = i2(87921).default, o = i2(45214), a = i2(7401), s = i2(24032).getTopic("BaseVariable"), { uuid: l } = i2(9456); + function u(e3) { + Object.defineProperties(this, { _name: { writable: true }, _facets: { writable: true }, _initialValue: { writable: true }, _wasRenamed: { writable: true, value: false, enumerable: false }, allowInitialValueForReadOnly: { writable: true, value: false }, hideFromAutocomplete: { writable: true, value: false }, isReadOnly: { writable: true, value: false }, isSystemVariable: { writable: true, value: false } }), this.description = void 0, this.doNotCleanupIfOrphanedSlot = void 0, this.id = void 0, this.isCollection = false, this.isInternal = false, this.isOutput = false, this.isInput = false, this.isSecure = false, this.descriptionOverrides = void 0, this.deprecatedId = void 0, this.deprecatedName = void 0, this.reconfigure = void 0, this.uiMetaData = void 0, this.version = "1.0", this.initialValueOptionsCallback = void 0, u.baseConstructor.apply(this, arguments), e3.copyPasteId && (this.copyPasteId = e3.copyPasteId), e3.featureToggleName && (this.featureToggleName = e3.featureToggleName), e3.featureConfig && (this.featureConfig = e3.featureConfig), (this.featureToggleName || this.featureConfig) && (this.isUnavailable = true); + } + o.extend(u, "BaseVariable"), Object.defineProperties(u.prototype, { name: { enumerable: true, get: function() { + return this._name; + }, set: function(e3) { + e3 && !n2.isString(e3) ? (e3 = `Flow.Repaired_Name_${l().split("-").join("")}`, this._name = e3, this._wasRenamed = true, s.error(`Variable was renamed to ${this._name} because of an invalidName`)) : this._name = e3; + } }, pasteResolveOldToNewValues: { value: function(e3) { + } }, pasteReIdOrRename: { value: function(e3) { + this.id = e3.pasteGenerateNewGuid(this.id); + } }, facets: { enumerable: true, get: function() { + return this._facets; + }, set: function(e3) { + this._facets = this.reviveItem(e3, r2); + } }, initialValue: { enumerable: true, get: function() { + return this._initialValue; + }, set: function(e3) { + this._initialValue = this.reviveItem(e3, a); + } }, clone: { value: function() { + const e3 = n2.clone(this), t3 = new this.__proto__.constructor(e3); + return t3.allowInitialValueForReadOnly = this.allowInitialValueForReadOnly, t3.hideFromAutocomplete = this.hideFromAutocomplete, t3.isReadOnly = this.isReadOnly, t3.isSystemVariable = this.isSystemVariable, t3; + } } }), e2.exports = u; + }, 11493: (e2) => { + "use strict"; + e2.exports = require("v8"); + }, 11541: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importDefault(i2(92140)), o = i2(80295), a = i2(80295), s = n2.__importDefault(i2(62121)), l = n2.__importDefault(i2(27702)); + class u extends s.default { + constructor(e3) { + super(e3), (0, o.makeUnenumerable)(this, "_builderParts"), (0, o.makeUnenumerable)(this, "_criteria"), this.populateFromJSON(e3); + } + get builderParts() { + return this._builderParts; + } + set builderParts(e3) { + this._builderParts = this.reviveArray(e3, l.default); + } + get criteria() { + return this._criteria; + } + set criteria(e3) { + this._criteria = e3; + } + pasteReIdOrRename(e3) { + super.pasteReIdOrRename(e3), r2.default.each(this._builderParts, function(t3) { + t3.pasteReIdOrRename(e3); + }.bind(this)); + } + pasteResolveOldToNewValues(e3) { + super.pasteResolveOldToNewValues(e3), r2.default.each(this._builderParts, function(t3) { + t3.pasteResolveOldToNewValues(e3); + }.bind(this)); + } + } + t2.default = u, n2.__decorate([(0, a.enumerable)(true), n2.__metadata("design:type", Object), n2.__metadata("design:paramtypes", [Object])], u.prototype, "builderParts", null), n2.__decorate([(0, a.enumerable)(true), n2.__metadata("design:type", Object), n2.__metadata("design:paramtypes", [Object])], u.prototype, "criteria", null); + }, 11675: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.ScheduleGroupViewModel = void 0; + const n2 = i2(31635).__importDefault(i2(92140)), r2 = i2(43212); + class o extends r2.BaseConfigurationListViewModel { + constructor(e3) { + super(e3), e3.openSchedules && e3.closedSchedules && (this.schedules = n2.default.union(this._model.openSchedules, this._model.closedSchedules)); + } + get className() { + return "ScheduleGroupViewModel"; + } + get id() { + return this._model.id; + } + set id(e3) { + this._model.id = e3; + } + get name() { + return this._model.name; + } + set name(e3) { + this._model.category = e3; + } + get label() { + return this._model.name; + } + get schedules() { + return this._model.schedules; + } + set schedules(e3) { + this._model.schedules = e3; + } + hasSchedule(e3) { + return e3 && n2.default.findWhere(this.schedules, { id: e3.id }); + } + } + t2.ScheduleGroupViewModel = o; + }, 11749: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.default = function(e3, t3) { + t3 || (t3 = e3); + const i3 = new n2(); + i3.variables = [], i3.defaultSettings = new o(), i3.defaultLanguage = e3, i3.flowMetaData = new a({ flowDocumentVersion: "1.0", minimumServerVersion: "1.0", ttsDataVersion: "1.0", features: [] }), i3.flowSequenceItemList = []; + const l = new r2(); + return l.name = s(t3).initialState, l.variables = [], l.actionList = [], i3.flowSequenceItemList = [l], i3.initialSequence = l.id, i3; + }; + const n2 = i2(88), r2 = i2(69674), o = i2(74803), a = i2(89266), s = i2(21733); + }, 11865: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.LexBotViewModel = void 0; + const n2 = i2(17604), r2 = i2(43212), o = i2(47957); + class a extends r2.BaseConfigurationListViewModel { + constructor(e3) { + super(e3); + } + get className() { + return "LexBotViewModel"; + } + get botName() { + return this._model.name; + } + get description() { + var e3; + return this.isLexV2Bot && (null === (e3 = this.region) || void 0 === e3 ? void 0 : e3.length) ? (0, n2.sprintf)(o.lex.lexV2BotDescription, this.region) : null; + } + get region() { + var e3, t3; + return this.isLexV2Bot ? this._model.region || (null === (t3 = null === (e3 = this.id) || void 0 === e3 ? void 0 : e3.split("~")) || void 0 === t3 ? void 0 : t3[1]) : null; + } + getConfiguration() { + return this._model; + } + get id() { + return this._model.id; + } + get isLexV2Bot() { + return this._model.isLexV2Bot; + } + get label() { + return this._model.name || ""; + } + get name() { + return this._model.name; + } + get status() { + return this._model.status; + } + } + t2.LexBotViewModel = a; + }, 11877: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importDefault(i2(92140)), o = n2.__importDefault(i2(51695)); + class a extends o.default { + constructor(e3, t3) { + super(), this.model = e3, this.skill = t3; + } + getConfiguration(e3, t3) { + return (null == t3 ? void 0 : t3.isForFlowYaml) ? r2.default.tryWrapObject(this.skill.getConfiguration(e3, t3), "acdSkill") : this.model; + } + get contents() { + return [this.skill]; + } + get className() { + return "SkillValuePairViewModel"; + } + get isSkillValuePairViewModel() { + return true; + } + get id() { + return "skill-" + this.skill.id; + } + get cardLabel() { + return this.skill.label; + } + } + t2.default = a; + }, 11909: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(54757)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "surveyQuestionCollection"; + } + get displayTypeName() { + return "ArchValueSurveyQuestionCollection"; + } + get isArchValueSurveyQuestionCollection() { + return true; + } + } + t2.default = r2; + }, 11914: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.getGuides = a, t2.getGuide = s, t2.getGuideVersion = l; + const n2 = i2(31635), r2 = n2.__importDefault(i2(36019)), o = n2.__importStar(i2(36839)); + function a(e3) { + return r2.default.build(o.getGuides).queryParams(e3.getSearchQueryParams()).call(); + } + function s(e3) { + const t3 = { guideId: e3 }; + return r2.default.build(o.getGuide).templateParams(t3).call(); + } + function l(e3, t3) { + const i3 = { guideId: e3, guideVersionId: null == t3 ? void 0 : t3.version }; + return r2.default.build(o.getGuideVersion).templateParams(i3).call(); + } + a.api = o.getGuides, s.api = o.getGuide, l.api = o.getGuideVersion; + }, 11934: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.never = t2.NEVER = void 0; + var n2 = i2(48051), r2 = i2(5717); + t2.NEVER = new n2.Observable(r2.noop), t2.never = function() { + return t2.NEVER; + }; + }, 12033: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importDefault(i2(41264)), o = n2.__importDefault(i2(75700)), a = n2.__importDefault(i2(67355)), s = n2.__importDefault(i2(6475)), l = n2.__importDefault(i2(80644)), u = n2.__importDefault(i2(38944)), d = n2.__importDefault(i2(88067)), c = n2.__importDefault(i2(20275)), p = n2.__importDefault(i2(98348)), _ = n2.__importDefault(i2(70728)), h = n2.__importDefault(i2(8081)), m = n2.__importDefault(i2(26461)), g = n2.__importDefault(i2(1667)), f = n2.__importDefault(i2(48659)), T = n2.__importDefault(i2(72183)), y = n2.__importDefault(i2(76217)), S = n2.__importDefault(i2(42150)), A = n2.__importDefault(i2(87644)), N = n2.__importDefault(i2(81912)), O = n2.__importDefault(i2(63417)), I = n2.__importDefault(i2(50565)), v = n2.__importDefault(i2(238)), C = n2.__importDefault(i2(1454)), b = n2.__importDefault(i2(33073)), E = n2.__importDefault(i2(57597)), R = n2.__importDefault(i2(10144)), w = n2.__importDefault(i2(3812)), D = n2.__importDefault(i2(72938)), P = n2.__importDefault(i2(37298)), M = n2.__importDefault(i2(17343)), F = n2.__importDefault(i2(60295)), L = n2.__importDefault(i2(96390)), x = n2.__importDefault(i2(54342)), k = n2.__importDefault(i2(97773)), V = n2.__importDefault(i2(77761)), U = n2.__importDefault(i2(11053)), B = n2.__importDefault(i2(57505)), G = n2.__importDefault(i2(8078)), j = n2.__importDefault(i2(86637)), W = n2.__importDefault(i2(81500)), q = n2.__importDefault(i2(79608)), Y = n2.__importDefault(i2(8229)), H = n2.__importDefault(i2(47577)), J = n2.__importDefault(i2(18187)), z = n2.__importDefault(i2(3931)), K = n2.__importDefault(i2(81167)), $ = n2.__importDefault(i2(32100)), Q = n2.__importDefault(i2(66816)), X = n2.__importDefault(i2(15390)), Z = n2.__importDefault(i2(75678)), ee = n2.__importDefault(i2(6440)), te = n2.__importDefault(i2(5868)), ie = n2.__importDefault(i2(93991)), ne = n2.__importDefault(i2(96815)), re = n2.__importDefault(i2(33965)), oe = n2.__importDefault(i2(2625)), ae = n2.__importDefault(i2(19071)), se = n2.__importDefault(i2(32967)), le = n2.__importDefault(i2(98368)), ue = n2.__importDefault(i2(57060)), de = n2.__importDefault(i2(75845)), ce = n2.__importDefault(i2(75705)), pe = n2.__importDefault(i2(22047)), _e = n2.__importDefault(i2(49895)), he = n2.__importDefault(i2(74085)), me = n2.__importDefault(i2(12345)), ge = n2.__importDefault(i2(33022)), fe = n2.__importDefault(i2(20254)), Te = n2.__importDefault(i2(26940)), ye = n2.__importDefault(i2(85080)), Se = n2.__importDefault(i2(56191)), Ae = n2.__importDefault(i2(15612)), Ne = n2.__importDefault(i2(50744)), Oe = n2.__importDefault(i2(70144)), Ie = n2.__importDefault(i2(19044)), ve = n2.__importDefault(i2(43368)), Ce = n2.__importDefault(i2(24844)), be = n2.__importDefault(i2(93899)), Ee = n2.__importDefault(i2(56795)), Re = n2.__importDefault(i2(32018)), we = n2.__importDefault(i2(93818)), De = n2.__importDefault(i2(6872)), Pe = n2.__importDefault(i2(4732)), Me = n2.__importDefault(i2(75992)), Fe = n2.__importDefault(i2(49872)), Le = n2.__importDefault(i2(90196)), xe = n2.__importDefault(i2(28689)), ke = n2.__importDefault(i2(89501)), Ve = n2.__importDefault(i2(72336)), Ue = n2.__importDefault(i2(95090)), Be = n2.__importDefault(i2(77114)), Ge = n2.__importDefault(i2(32624)), je = n2.__importDefault(i2(60628)), We = n2.__importDefault(i2(25420)), qe = n2.__importDefault(i2(2600)), Ye = n2.__importDefault(i2(14724)), He = n2.__importDefault(i2(33344)), Je = n2.__importDefault(i2(67477)), ze = n2.__importDefault(i2(12723)), Ke = n2.__importDefault(i2(54339)), $e = n2.__importDefault(i2(74260)), Qe = n2.__importDefault(i2(8016)), Xe = n2.__importDefault(i2(60140)), Ze = n2.__importDefault(i2(7848)), et = n2.__importDefault(i2(6854)), tt = n2.__importDefault(i2(93832)), it = n2.__importDefault(i2(87532)), nt = n2.__importDefault(i2(77697)), rt = n2.__importDefault(i2(71726)), ot = n2.__importDefault(i2(86167)), at = n2.__importDefault(i2(86591)), st = n2.__importDefault(i2(18710)), lt = n2.__importDefault(i2(87734)), ut = n2.__importDefault(i2(33534)), dt = n2.__importDefault(i2(39568)), ct = n2.__importDefault(i2(24027)), pt = n2.__importDefault(i2(85867)), _t = n2.__importDefault(i2(48179)), ht = n2.__importDefault(i2(675)), mt = n2.__importDefault(i2(51635)), gt = n2.__importDefault(i2(79183)), ft = n2.__importDefault(i2(31006)), Tt = n2.__importDefault(i2(21954)), yt = n2.__importDefault(i2(16714)), St = n2.__importDefault(i2(22685)), At = n2.__importDefault(i2(51441)), Nt = { ArchVariableAgentScorePair: r2.default, ArchVariableAgentScorePairCollection: o.default, ArchVariableCustomerIntent: a.default, ArchVariableCustomerIntentCollection: s.default, ArchVariableCustomerSegment: l.default, ArchVariableCustomerSegmentCollection: u.default, ArchVariableAssignedCustomerIntent: d.default, ArchVariableAssignedCustomerIntentCollection: c.default, ArchVariableAssignedCustomerSegment: p.default, ArchVariableAssignedCustomerSegmentCollection: _.default, ArchVariableBoolean: h.default, ArchVariableBooleanCollection: m.default, ArchVariableCard: g.default, ArchVariableCardCollection: f.default, ArchVariableCarousel: T.default, ArchVariableChoice: y.default, ArchVariableChoiceCollection: S.default, ArchVariableChooser: A.default, ArchVariableChooserCollection: N.default, ArchVariableCommunication: O.default, ArchVariableCommunicationCollection: I.default, ArchVariableCurrency: v.default, ArchVariableCurrencyCollection: C.default, ArchVariableDate: b.default, ArchVariableDateCollection: E.default, ArchVariableDateTime: R.default, ArchVariableDateTimeCollection: w.default, ArchVariableDecimal: D.default, ArchVariableDecimalCollection: P.default, ArchVariableDigitalAudio: M.default, ArchVariableDigitalAudioCollection: F.default, ArchVariableDivision: L.default, ArchVariableDivisionCollection: x.default, ArchVariableDuration: k.default, ArchVariableDurationCollection: V.default, ArchVariableEmailAddress: U.default, ArchVariableEmailAddressCollection: B.default, ArchVariableEmergencyGroup: G.default, ArchVariableEmergencyGroupCollection: j.default, ArchVariableExternalContact: W.default, ArchVariableExternalContactCollection: q.default, ArchVariableExternalOrganization: Y.default, ArchVariableExternalOrganizationCollection: H.default, ArchVariableFile: J.default, ArchVariableFileCollection: z.default, ArchVariableFormInput: K.default, ArchVariableGrammar: $.default, ArchVariableGrammarCollection: Q.default, ArchVariableGroup: X.default, ArchVariableGroupCollection: Z.default, ArchVariableImage: ee.default, ArchVariableImageCollection: te.default, ArchVariableInteger: ie.default, ArchVariableIntegerCollection: ne.default, ArchVariableJourneyOutcome: re.default, ArchVariableJourneyOutcomeCollection: oe.default, ArchVariableJourneyOutcomeScore: ae.default, ArchVariableJourneyOutcomeScoreCollection: se.default, ArchVariableJourneySegment: le.default, ArchVariableJourneySegmentCollection: ue.default, ArchVariableJourneySession: de.default, ArchVariableJourneySessionCollection: ce.default, ArchVariableJson: pe.default, ArchVariableJsonCollection: _e.default, ArchVariableKnowledgeBaseDocument: he.default, ArchVariableKnowledgeBaseDocumentCollection: me.default, ArchVariableLanguageSkill: ge.default, ArchVariableLanguageSkillCollection: fe.default, ArchVariableLineItem: Te.default, ArchVariableLineItemCollection: ye.default, ArchVariableListPicker: Se.default, ArchVariableListPickerItem: Ae.default, ArchVariableListPickerItemCollection: Ne.default, ArchVariableListPickerSection: Oe.default, ArchVariableListPickerSectionCollection: Ie.default, ArchVariablePhoneNumber: ve.default, ArchVariablePhoneNumberCollection: Ce.default, ArchVariablePrompt: be.default, ArchVariablePromptCollection: Ee.default, ArchVariableQueue: Re.default, ArchVariableQueueCollection: we.default, ArchVariableQuickReplies: De.default, ArchVariableResponseAsset: Pe.default, ArchVariableResponseAssetCollection: Me.default, ArchVariableSchedule: Fe.default, ArchVariableScheduleCollection: Le.default, ArchVariableScheduleGroup: xe.default, ArchVariableScheduleGroupCollection: ke.default, ArchVariableShippingOption: Ue.default, ArchVariableShippingOptionCollection: Be.default, ArchVariableSettings: Ve.default, ArchVariableSkill: Ge.default, ArchVariableSkillCollection: je.default, ArchVariableString: We.default, ArchVariableStringCollection: qe.default, ArchVariableSurveyAnswerOption: Ye.default, ArchVariableSurveyAnswerOptionCollection: He.default, ArchVariableSurveyForm: Je.default, ArchVariableSurveyQuestion: ze.default, ArchVariableSurveyQuestionCollection: Ke.default, ArchVariableSurveyQuestionGroup: $e.default, ArchVariableSurveyQuestionGroupCollection: Qe.default, ArchVariableTime: Xe.default, ArchVariableTimeCollection: Ze.default, ArchVariableTimePicker: et.default, ArchVariableTimeslot: tt.default, ArchVariableTimeslotCollection: it.default, ArchVariableUser: nt.default, ArchVariableUserCollection: rt.default, ArchVariableUtilizationLabel: ot.default, ArchVariableUtilizationLabelCollection: at.default, ArchVariableVideo: st.default, ArchVariableVideoCollection: lt.default, ArchVariableVoiceSnippet: ut.default, ArchVariableWheelPicker: dt.default, ArchVariableWheelPickerItem: ct.default, ArchVariableWheelPickerItemCollection: pt.default, ArchVariableWorkbin: _t.default, ArchVariableWorkbinCollection: ht.default, ArchVariableWorkitem: mt.default, ArchVariableWorkitemEventData: gt.default, ArchVariableWorkitemEventRule: ft.default, ArchVariableWorktypeStatus: Tt.default, ArchVariableWorktypeStatusCollection: yt.default, ArchVariableWrapupCode: St.default, ArchVariableWrapupCodeCollection: At.default }; + t2.default = Nt; + }, 12044: (e2, t2, i2) => { + const n2 = i2(59865), r2 = i2(7401), { lexV2ActionType: o } = i2(30801), a = i2(42217); + function s() { + Object.defineProperties(this, { _initialIntent: { writable: true }, _outputSessionVariables: { writable: true } }), this.region = void 0, this.shortBotId = void 0, this.shortAliasId = void 0, s.baseConstructor.apply(this, arguments); + } + n2.extend(s, o, true), Object.defineProperties(s.prototype, { pasteReIdOrRename: { value: function(e3) { + s._super.pasteReIdOrRename.apply(this, arguments), this.initialIntent.pasteReIdOrRename(e3); + for (let t3 = 0; t3 < this.outputSessionVariables.length; t3++) this.outputSessionVariables[t3].pasteReIdOrRename(e3); + } }, pasteResolveOldToNewValues: { value: function(e3) { + s._super.pasteResolveOldToNewValues.apply(this, arguments), this.initialIntent.pasteResolveOldToNewValues(e3); + for (let t3 = 0; t3 < this.outputSessionVariables.length; t3++) this.outputSessionVariables[t3].pasteResolveOldToNewValues(e3); + } }, initialIntent: { enumerable: true, get: function() { + return this._initialIntent; + }, set: function(e3) { + this._initialIntent = this.reviveItem(e3, r2); + } }, outputSessionVariables: { enumerable: true, get: function() { + return this._outputSessionVariables; + }, set: function(e3) { + this._outputSessionVariables = this.reviveArray(e3, a); + } } }), e2.exports = s; + }, 12104: (e2, t2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.emptyAudio = void 0, t2.emptyAudio = new function() { + Object.defineProperties(this, { defaultAudio: { value: { config: { emp: { pos: 1, text: "", type: "aud" } }, text: "", uiMetaData: { sequenceItems: [] } } }, cases: { value: [] } }); + }(); + }, 12138: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importDefault(i2(73198)), o = i2(52023), a = i2(9456), s = i2(55909), l = i2(33951), u = n2.__importDefault(i2(92140)), d = "AsyncOperationInfo"; + t2.default = class { + constructor(e3, t3, i3, n3, c) { + l.ParameterValidator.expectString(e3, () => s.ParameterInfo.createConstructorParameter(d, "subscriberId")), l.ParameterValidator.expectArrayOrString(t3, () => s.ParameterInfo.createConstructorParameter(d, "subscriptionTopics")), l.ParameterValidator.expectObject(i3, () => s.ParameterInfo.createConstructorParameter(d, "logTopic")), n3 && (l.ParameterValidator.expectFunction(n3, () => s.ParameterInfo.createConstructorParameter(d, "stateChangedCallBack")), l.ParameterValidator.expectObject(c, () => s.ParameterInfo.createConstructorParameter(d, "operationManager"))), this._subscriberId = e3 + "_" + (0, a.uuid)(), this._subscriptionTopics = t3, this._logTopic = i3, u.default.isFunction(n3) && (this._stateChangedCallBack = n3.bind(c, this)), this._deferredOperation = new o.PromiseDefer(), this._abandonProcessingTimeoutMS = 180 * r2.default.msPerSecond, this._emergencyPollingTimeoutMS = 30 * r2.default.msPerSecond, this._emergencyPollingRetryTimeoutMS = 10 * r2.default.msPerSecond, this._staleNotificationTimeMS = 10 * r2.default.msPerSecond, this._emergencyRequestPending = false, this._retryEmergencyPollOn404 = false, this._operationStillInProgress = true; + } + get firstOperationId() { + return this._firstOperationId; + } + logCurrentOperation(e3, t3, i3) { + const n3 = e3 ? e3.currentOperation : void 0; + if (n3) { + const r3 = this.isDelete ? this.logTopic.withContext("flowId", e3.id) : this.logTopic, o2 = t3 + " Current operation - actionStatus is '" + n3.actionStatus + "' and completed is '" + n3.complete + "'"; + i3 ? r3.error(o2) : r3.info(o2); + } else this.logTopic.warning(t3 + " Current operation - no current operation."); + } + get abandonProcessingTimeoutMS() { + return this._abandonProcessingTimeoutMS; + } + get abandonProcessingTimeout() { + return this._abandonProcessingTimeoutMS / r2.default.msPerSecond; + } + set abandonProcessingTimeout(e3) { + this._abandonProcessingTimeoutMS = e3 * r2.default.msPerSecond; + } + get deferredOperation() { + return this._deferredOperation; + } + get emergencyPollingTimeoutMS() { + return this._emergencyPollingTimeoutMS; + } + get emergencyPollingTimeout() { + return this._emergencyPollingTimeoutMS / r2.default.msPerSecond; + } + set emergencyPollingTimeout(e3) { + this._emergencyPollingTimeoutMS = e3 * r2.default.msPerSecond; + } + get emergencyPollingRetryTimeoutMS() { + return this._emergencyPollingRetryTimeoutMS; + } + get emergencyPollingRetryTimeout() { + return this._emergencyPollingRetryTimeoutMS / r2.default.msPerSecond; + } + set emergencyPollingRetryTimeout(e3) { + this._emergencyPollingRetryTimeoutMS = e3 * r2.default.msPerSecond; + } + get finished() { + return this._deferredOperation.promise; + } + get logTopic() { + return this._logTopic; + } + get emergencyRequestPending() { + return this._emergencyRequestPending; + } + set emergencyRequestPending(e3) { + this._emergencyRequestPending = e3; + } + get operationToPerform() { + return this._operationToPerform; + } + set operationToPerform(e3) { + this._operationToPerform = e3; + } + get operationStillInProgress() { + return this._operationStillInProgress; + } + set operationStillInProgress(e3) { + this._operationStillInProgress = e3; + } + get retryEmergencyPollOn404() { + return this._retryEmergencyPollOn404; + } + set retryEmergencyPollOn404(e3) { + this._retryEmergencyPollOn404 = e3; + } + get staleNotificationTimeMS() { + return this._staleNotificationTimeMS; + } + get staleNotificationTime() { + return this._staleNotificationTimeMS / r2.default.msPerSecond; + } + set staleNotificationTime(e3) { + this._staleNotificationTimeMS = e3; + } + get stateChangedCallBack() { + return this._stateChangedCallBack; + } + set stateChangedCallBack(e3) { + this._stateChangedCallBack = e3; + } + get subscriberId() { + return this._subscriberId; + } + get subscriptionTopics() { + return this._subscriptionTopics; + } + set subscriptionTopics(e3) { + this._subscriptionTopics = e3; + } + }; + }, 12163: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importDefault(i2(82985)), o = n2.__importDefault(i2(78432)), a = i2(30801); + class s extends r2.default { + get _actionTypeId() { + return a.callVoiceFlowActionType; + } + get botFlowTypeEnum() { + return o.default.FLOW_TYPES.voice; + } + get displayTypeName() { + return this._scriptingName; + } + get isArchActionCallVoiceFlow() { + return true; + } + } + t2.default = s; + }, 12179: (e2, t2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.helpTopics = t2.statusUrl = t2.orchestratorsUrl = t2.educationUrl = t2.communityUrl = t2.systemArticlePrefix = t2.architectHelpPrefix = t2.helpUrlRoot = void 0, t2.hasHelpTopic = function(e3) { + return null == e3 ? void 0 : e3.helpTopic; + }, t2.helpUrlRoot = "https://help.genesys.cloud"; + const i2 = "en-us"; + t2.architectHelpPrefix = `redirect/${i2}/architect`, t2.systemArticlePrefix = `redirect/${i2}/articles`, t2.communityUrl = "https://community.genesys.com/home", t2.educationUrl = "https://beyond.genesys.com/explore", t2.orchestratorsUrl = "https://know.genesys.com", t2.statusUrl = "https://status.mypurecloud.com", t2.helpTopics = { deletePrompt: "prompt/deletePrompt", deprecatedVariableUsages: "flow/deprecatedVariableUsages", flowInsights: "flow/insights", main: "main", overviewDependencies: "main/advancedFlowSearch", aboutArchitect: "about", overviewGrammar: "main/grammar", overviewPrompts: "prompt/prompts", promptPreview: "prompts/preview", builders: { audio: "builder/audio", boolean: "builder/boolean", builder: "modal/builder", communication: "builder/communication", image: "builder/image", string: "builder/string" }, modals: { addGrammarForBotFlow: "modal/addGrammarForBotFlow", audioUpload: "modal/audioUpload", bulkAudio: "modal/prompt/bulkUpload", bulkAudioAdd: "modal/prompt/bulkUploadAdd", bulkFlowOperation: "modal/flow/bulkOperations", codeEditor: "modal/codeEditor", createFlow: "modal/flow/new", deleteFlow: "modal/flow/delete", deleteGrammar: "modal/deletegrammar", flowVersions: "modal/flow/versions", importFlow: "modal/flow/import", importPrompts: "modal/prompt/import", largeExpressionEditor: "modal/flow/expressionEditor", listPickerSections: "modal/listPickerSections", literalJsonEditor: "modal/flow/jsonEditor", outputPaths: "modal/outputPaths", setAudioSequence: "modal/setAudioSequence", usages: "modal/usages" }, treeNodes: { botFlowSettings: "settings/botFlow", commonModuleSettings: "settings/commonModule", dataView: "settings/data", defaultActionSettings: "settings/actionDefaults", dependencies: "settings/dependencies", emailSendSettings: "settings/emailSend", eventHandling: "setting/eventHandling", flowSize: "settings/flowSize", inboundEmailSettings: "settings/inboundEmail", inQueueCallFlowSettings: "settings/inqueueCall", knowledge: "settings/knowledge", menuSettings: "settings/menu", outboundCallSettings: "settings/outboundCall", promptsView: "settings/prompts", speechRecConfig: "settings/speechRec", speechRecConfigVoiceSurvey: "settings/voiceSurvey/speechRec", supportedLanguages: "settings/languages", userInputSettings: "settings/userInput", userInputSettingsVoiceSurvey: "settings/voiceSurvey/userInput", virtualAgentSettings: "settings/virtualAgent", voiceSurveyFlowSettings: "settings/voiceSurvey", workitemFlowSettings: "settings/workitem", startingMenu: "settings/startingMenu", startingTask: "settings/startingTask", intentsSettings: "settings/intents", slotTypeSettings: "settings/slotTypes", learningSettings: "settings/learning", utteranceHistory: "settings/utteranceHistory", utterances: "settings/utterances", optimizationDashboard: "analytics/optimizationDashboard", intentMiner: "analytics/intentMiner", journeyFlows: "analytics/journeyFlows" }, actions: { abortSend: "action/abortSend", abortSurvey: "action/abortSurvey", addFlowMilestone: "action/addFlowMilestone", askForAuthentication: "action/askForAuthentication", askForBoolean: "action/askForBoolean", askForNextIntentLoop: "action/askForNextIntent", askForNLUIntent: "action/askForNLUIntent", askForPayment: "action/askForPayment", askForSlot: "action/askForSlot", askSurveyQuestion: "action/askSurveyQuestion", audioMonitoring: "action/audioMonitoring", botConnector: "action/botConnector", bridgeServer: "about", callAgenticVirtualAgent: "action/callAgenticVirtualAgent", callAudioConnector: "action/data/callAudioConnector", callBotFlow: "action/callBotFlow", callCommonModule: "action/callCommonModule", callDecisionTable: "action/data/callDecisionTable", callDigitalBotConnector: "action/callDigitalBotConnector", callDigitalBotFlow: "action/callDigitalBotFlow", callGuide: "action/callGuide", callTask: "action/callTask", callVoiceFlow: "action/callVoiceFlow", changeState: "action/changeState", clearActiveIntent: "action/clearActiveIntent", clearPostFlow: "action/clearPostFlow", clearSlot: "action/clearSlot", clearUtilizationLabel: "action/clearUtilizationLabel", clearVoicemailSnippet: "action/clearVoicemailSnippet", collectInput: "action/data/collectInput", collectVoiceSnippet: "action/collectVoiceSnippet", communicate: "action/communicate", completeSend: "action/completeSend", completeSurvey: "action/completeSurvey", createCallback: "action/data/createCallback", createConversationAttribute: "action/createConversationAttribute", data: "action/data/callData", dataTableLookup: "action/data/dataTableLookup", decision: "action/decision", decryptData: "action/decrypt", deflect: "action/deflect", detectIntent: "action/data/detectIntent", detectSilence: "action/detectSilence", dialExtension: "action/dialExtension", dialName: "about", dialogEngine: "action/dialogEngine", dialogflow: "action/dialogflow", dialogflowCx: "action/data/dialogflowCx", digitalMenu: "action/digitalMenu", disconnect: "action/disconnect", disconnectWorkitem: "action/disconnectWorkitem", encryptData: "action/encrypt", endState: "action/endStateAction", endTask: "action/endTask", endWorkflow: "action/endWorkflowAction", evaluateSchedule: "action/data/evaluateSchedule", evaluateScheduleGroup: "action/data/evaluateScheduleGroup", evaluateSkillExpressionFilters: "action/evaluateSkillExpressionFilters", exitBotFlow: "action/exitBotFlow", exitLoop: "action/exitLoop", exitWorkitemFlow: "action/exitWorkitemFlow", extractSecureData: "action/extractSecureData", findDivision: "action/findDivision", findDivisions: "action/findDivisions", findEmergencyGroup: "action/findEmergencyGroup", findGrammar: "action/findGrammar", findGrammarById: "action/findGrammarById", findGroup: "action/findGroup", findKnowledgeBaseDocumentById: "action/findKnowledgeBaseDocumentById", findLanguageSkill: "action/findLanguageSkill", findQueue: "action/findQueue", findQueueById: "action/findQueueById", findSchedule: "action/findSchedule", findScheduleGroup: "action/findScheduleGroup", findSkill: "action/findSkill", findSystemPrompt: "action/findSystemPrompt", findUser: "action/findUser", findUserById: "action/findUserById", findUserPrompt: "action/findUserPrompt", findUsersById: "action/findUsersById", findUtilizationLabel: "action/findUtilizationLabel", form: "action/form", flushAudio: "action/flushAudio", getAssignedCustomerIntents: "action/data/getAssignedCustomerIntents", getAttributes: "action/data/getParticipant", getConversationAttribute: "action/getConversationAttribute", getConversationAttributes: "action/getConversationAttributes", getConversationData: "action/data/getConversation", getExternalContact: "action/data/getExternalContact", getExternalOrganization: "action/data/getExternalOrganization", getJourneyOutcome: "action/getJourneyOutcome", getJourneyOutcomeScoresBySession: "about", getJourneySegment: "action/getJourneySegment", getJourneySession: "action/getJourneySession", getJourneySessionsByCustomer: "about", getJourneySessionsByExternalContact: "about", getEmailHeaders: "action/getEmailHeaders", getRawSIPHeaders: "action/getRawSipHeaders", getResponse: "action/data/getResponse", getSecuredData: "action/getSecuredData", getSIPHeaders: "action/getSipHeaders", holdMusic: "action/holdMusic", initializeFlowOutcome: "action/flowOutcome/initialize", jumpToTask: "action/jumpToTask", lex: "action/data/lex", lexV2: "action/data/lexV2", loop: "action/loop", loopUntil: "action/loopUntil", menuJump: "action/menu/menuJump", nextLoop: "action/nextLoop", nuanceMix: "action/nuanceMix", participantRecord: "action/enableParticipantRecording", playAudio: "action/playAudio", playAudioOnSilence: "action/playAudioOnSilence", playEstimatedWaitTime: "action/playEstimatedWaitTime", playPositionInQueue: "action/playPositionInQueue", playUserGreeting: "action/playUserGreeting", playUserName: "action/playUserName", previousMenu: "action/menu/previousMenu", processVoicemailInput: "action/processVoicemailInput", promoteExternalContact: "action/data/promoteExternalContact", repeatMenu: "action/menu/repeatMenu", returnToAgent: "action/returnToAgent", screenPop: "action/data/screenPop", searchExternalContacts: "action/data/searchExternalContacts", secure: "action/data/secureUpdateData", sendAutoReply: "action/data/sendAutoReply", sendDigitalContent: "action/data/sendDigitalContent", sendInteractiveApplication: "action/sendInteractiveApplication", sendKnowledgeFeedback: "action/sendKnowledgeFeedback", sendNotification: "action/sendNotification", sendResponse: "action/data/sendResponse", sendRichLink: "action/sendRichLink", setActiveIntent: "action/setActiveIntent", setAttributes: "action/data/setParticipant", setConversationData: "action/data/setConversation", setExternalTag: "action/setExternalTag", setFlowOutcome: "action/flowOutcome/set", setLocale: "action/setLocale", setPostFlow: "action/SetPostFlowAction", setPriority: "action/setPriorityAction", setSecuredData: "action/setSecuredData", setSkillExpressionFilters: "action/setSkillExpressionFilters", setSkills: "action/setSkillsAction", clearSkillExpressionFilters: "action/clearSkillExpressionFilters", setUtilizationLabel: "action/setUtilizationLabelAction", setUUIData: "action/setUUIData", setWhisperAudio: "action/setWhisperAudio", setWrapupCode: "action/setWrapupCode", showKnowledgeArticle: "action/showKnowledgeArticle", subMenu: "action/menu/menu", submitVoicemailSnippet: "action/submitVoicemailSnippetAction", submitVoiceSnippet: "action/submitVoiceSnippetAction", switch: "action/switch", terminateWorkitem: "action/terminateWorkitem", transcription: "action/transcriptionAction", transferExternal: "action/transfer/external", transferFlow: "action/transfer/flow", transferFlowSecure: "action/transfer/secureFlow", transferGroup: "action/group", transferPureMatch: "action/transfer/acd", transferUser: "action/transfer/user", transferVoicemail: "action/transfer/voicemail", updateConversationAttribute: "action/updateConversationAttribute", updateVariables: "action/data/update", updateWorkitem: "action/updateWorkitemAction", voiceBiometrics: "about", wait: "action/wait", waitForInput: "action/waitForInput" }, tasks: { botState: "flow/botTask", state: "flow/state", task: "flow/task" }, articles: { resourceCenter: "resourceCenter", aboutGenesysVirtualAgent: "article/aboutGenesysVirtualAgent", addFlowMilestone: "article/add-a-flow-milestone", addFlowOutcome: "article/add-a-flow-outcome", downloadArchitectFlowExamples: "article/downloadArchitectFlowExamples", genesysCloudTokensBasedPricingModel: "article/genesys-cloud-tokens-based-pricing-model", historicalExecutionDataOverview: "article/historicalExecutionDataOverview", setLogLevelFlowDefault: "article/manageHistoricalExecutionData", setLogLevelFlowSpecific: "article/manageExecutionDataAtTheFlowLevel", getStartedArchitectTutorial: "article/getStartedArchitectTutorial", regularExpressionQuickReference: "article/regular-expression-language-quick-reference", releaseNotes: "article/releaseNotes", ttsOverview: "article/ttsOverview", flowExecutionHistory: "article/flowExecutionHistory", customKnowledge: "control-knowledge-behavior-in-your-voice-or-digital-bot-flow", chatDeprecation: "announcements/deprecation-removal-of-acd-web-chat-version-2", decisionTableUsageFees: "article/rule-based-decision-pricing", flowsCallingFlows: "article/flows-calling-flows", sttEngineOverview: "article/sttEngineOverview" }, systemArticles: { privacyPolicy: "privacyPolicy" } }; + }, 12187: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.isIterable = void 0; + var n2 = i2(34891), r2 = i2(10281); + t2.isIterable = function(e3) { + return r2.isFunction(null == e3 ? void 0 : e3[n2.iterator]); + }; + }, 12199: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(81574)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "journeySession"; + } + get id() { + } + get createdDate() { + } + get customerId() { + } + get customerIdType() { + } + get divisionIds() { + } + get type() { + } + get externalId() { + } + get externalUrl() { + } + get outcomeAchievements() { + } + get segmentAssignments() { + } + get attributes() { + } + get attributeLists() { + } + get awayDate() { + } + get browser() { + } + get device() { + } + get geolocation() { + } + get idleDate() { + } + get ipAddress() { + } + get ipOrganization() { + } + get lastPage() { + } + get mktCampaign() { + } + get referrer() { + } + get searchTerms() { + } + get userAgentString() { + } + get durationInSeconds() { + } + get eventCount() { + } + get pageviewCount() { + } + get screenviewCount() { + } + get app() { + } + get networkConnectivity() { + } + get sdkLibrary() { + } + get displayTypeName() { + return "ArchValueJourneySession"; + } + get isArchValueJourneySession() { + return true; + } + } + t2.default = r2; + }, 12252: (e2, t2, i2) => { + "use strict"; + var n2, r2, o; + Object.defineProperty(t2, "__esModule", { value: true }); + const a = i2(31635), s = i2(30801), l = a.__importDefault(i2(21345)); + class u extends l.default { + constructor(e3) { + super(e3), n2.set(this, void 0), r2.set(this, void 0), o.set(this, void 0), a.__classPrivateFieldSet(this, n2, this.coreFactory.createArchWrapper(e3.knowledgeArticle), "f"), a.__classPrivateFieldSet(this, r2, this.coreFactory.createArchWrapper(e3.knowledgeFeedback), "f"), a.__classPrivateFieldSet(this, o, this.coreFactory.createArchWrapper(e3.knowledgeSearchId), "f"); + } + get _actionTypeId() { + return s.sendKnowledgeFeedbackActionActionType; + } + get displayTypeName() { + return this._scriptingName; + } + get isArchActionSendKnowledgeFeedback() { + return true; + } + get knowledgeArticle() { + return a.__classPrivateFieldGet(this, n2, "f"); + } + get knowledgeFeedback() { + return a.__classPrivateFieldGet(this, r2, "f"); + } + get knowledgeSearchId() { + return a.__classPrivateFieldGet(this, o, "f"); + } + } + n2 = /* @__PURE__ */ new WeakMap(), r2 = /* @__PURE__ */ new WeakMap(), o = /* @__PURE__ */ new WeakMap(), t2.default = u; + }, 12268: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.languageData = void 0; + const n2 = i2(31635).__importDefault(i2(77838)); + t2.languageData = { af: { id: "af", text: n2.default.af }, "af-na": { id: "af-NA", text: n2.default.af_na }, "af-za": { id: "af-ZA", text: n2.default.af_za }, agq: { id: "agq", text: n2.default.agq }, "agq-cm": { id: "agq-CM", text: n2.default.agq_cm }, ak: { id: "ak", text: n2.default.ak }, "ak-gh": { id: "ak-GH", text: n2.default.ak_gh }, am: { id: "am", text: n2.default.am }, "am-et": { id: "am-ET", text: n2.default.am_et }, ar: { id: "ar", text: n2.default.ar }, "ar-001": { id: "ar-001", text: n2.default.ar_001 }, "ar-ae": { id: "ar-AE", text: n2.default.ar_ae }, "ar-bh": { id: "ar-BH", text: n2.default.ar_bh }, "ar-dj": { id: "ar-DJ", text: n2.default.ar_dj }, "ar-dz": { id: "ar-DZ", text: n2.default.ar_dz }, "ar-eg": { id: "ar-EG", text: n2.default.ar_eg }, "ar-eh": { id: "ar-EH", text: n2.default.ar_eh }, "ar-er": { id: "ar-ER", text: n2.default.ar_er }, "ar-il": { id: "ar-IL", text: n2.default.ar_il }, "ar-iq": { id: "ar-IQ", text: n2.default.ar_iq }, "ar-jo": { id: "ar-JO", text: n2.default.ar_jo }, "ar-km": { id: "ar-KM", text: n2.default.ar_km }, "ar-kw": { id: "ar-KW", text: n2.default.ar_kw }, "ar-lb": { id: "ar-LB", text: n2.default.ar_lb }, "ar-ly": { id: "ar-LY", text: n2.default.ar_ly }, "ar-ma": { id: "ar-MA", text: n2.default.ar_ma }, "ar-mr": { id: "ar-MR", text: n2.default.ar_mr }, "ar-om": { id: "ar-OM", text: n2.default.ar_om }, "ar-ps": { id: "ar-PS", text: n2.default.ar_ps }, "ar-qa": { id: "ar-QA", text: n2.default.ar_qa }, "ar-sa": { id: "ar-SA", text: n2.default.ar_sa }, "ar-sd": { id: "ar-SD", text: n2.default.ar_sd }, "ar-so": { id: "ar-SO", text: n2.default.ar_so }, "ar-sy": { id: "ar-SY", text: n2.default.ar_sy }, "ar-td": { id: "ar-TD", text: n2.default.ar_td }, "ar-tn": { id: "ar-TN", text: n2.default.ar_tn }, "ar-ye": { id: "ar-YE", text: n2.default.ar_ye }, "arn-cl": { id: "arn-CL", text: n2.default.arn_cl }, as: { id: "as", text: n2.default.as }, "as-in": { id: "as-IN", text: n2.default.as_in }, asa: { id: "asa", text: n2.default.asa }, "asa-tz": { id: "asa-TZ", text: n2.default.asa_tz }, az: { id: "az", text: n2.default.az }, "az-cyrl": { id: "az-Cyrl", text: n2.default.az_cyrl }, "az-cyrl-az": { id: "az-Cyrl-AZ", text: n2.default.az_cyrl_az }, "az-latn": { id: "az-Latn", text: n2.default.az_latn }, "az-latn-az": { id: "az-Latn-AZ", text: n2.default.az_latn_az }, "ba-ru": { id: "ba-RU", text: n2.default.ba_ru }, bas: { id: "bas", text: n2.default.bas }, "bas-cm": { id: "bas-CM", text: n2.default.bas_cm }, be: { id: "be", text: n2.default.be }, "be-by": { id: "be-BY", text: n2.default.be_by }, bem: { id: "bem", text: n2.default.bem }, "bem-zm": { id: "bem-ZM", text: n2.default.bem_zm }, bez: { id: "bez", text: n2.default.bez }, "bez-tz": { id: "bez-TZ", text: n2.default.bez_tz }, bg: { id: "bg", text: n2.default.bg }, "bg-bg": { id: "bg-BG", text: n2.default.bg_bg }, bm: { id: "bm", text: n2.default.bm }, "bm-ml": { id: "bm-ML", text: n2.default.bm_ml }, bn: { id: "bn", text: n2.default.bn }, "bn-bd": { id: "bn-BD", text: n2.default.bn_bd }, "bn-in": { id: "bn-IN", text: n2.default.bn_in }, bo: { id: "bo", text: n2.default.bo }, "bo-cn": { id: "bo-CN", text: n2.default.bo_cn }, "bo-in": { id: "bo-IN", text: n2.default.bo_in }, br: { id: "br", text: n2.default.br }, "br-fr": { id: "br-FR", text: n2.default.br_fr }, bs: { id: "bs", text: n2.default.bs }, "bs-cyrl": { id: "bs-Cyrl", text: n2.default.bs_cyrl }, "bs-cyrl-ba": { id: "bs-Cyrl-BA", text: n2.default.bs_cyrl_ba }, "bs-latn": { id: "bs-Latn", text: n2.default.bs_latn }, "bs-latn-ba": { id: "bs-Latn-BA", text: n2.default.bs_latn_ba }, ca: { id: "ca", text: n2.default.ca }, "ca-ad": { id: "ca-AD", text: n2.default.ca_ad }, "ca-es": { id: "ca-ES", text: n2.default.ca_es }, cgg: { id: "cgg", text: n2.default.cgg }, "cgg-ug": { id: "cgg-UG", text: n2.default.cgg_ug }, chr: { id: "chr", text: n2.default.chr }, "chr-us": { id: "chr-US", text: n2.default.chr_us }, "co-fr": { id: "co-FR", text: n2.default.co_fr }, cs: { id: "cs", text: n2.default.cs }, "cs-cz": { id: "cs-CZ", text: n2.default.cs_cz }, cy: { id: "cy", text: n2.default.cy }, "cy-gb": { id: "cy-GB", text: n2.default.cy_gb }, da: { id: "da", text: n2.default.da }, "da-dk": { id: "da-DK", isAutomateFlowCreateSuggestion: true, text: n2.default.da_dk }, dav: { id: "dav", text: n2.default.dav }, "dav-ke": { id: "dav-KE", text: n2.default.dav_ke }, de: { id: "de", text: n2.default.de }, "de-at": { id: "de-AT", text: n2.default.de_at, fallback: "de-DE" }, "de-be": { id: "de-BE", text: n2.default.de_be }, "de-ch": { id: "de-CH", text: n2.default.de_ch, fallback: "de-DE" }, "de-de": { id: "de-DE", needsServerInfo: true, hasFlowCreationTTS: true, text: n2.default.de_de, isAutomateFlowCreateSuggestion: true, supported: true }, "de-li": { id: "de-LI", text: n2.default.de_li, fallback: "de-DE" }, "de-lu": { id: "de-LU", text: n2.default.de_lu, fallback: "de-DE" }, dje: { id: "dje", text: n2.default.dje }, "dje-ne": { id: "dje-NE", text: n2.default.dje_ne }, "dsb-de": { id: "dsb-DE", text: n2.default.dsb_de }, dua: { id: "dua", text: n2.default.dua }, "dua-cm": { id: "dua-CM", text: n2.default.dua_cm }, "dv-mv": { id: "dv-MV", text: n2.default.dv_mv }, dyo: { id: "dyo", text: n2.default.dyo }, "dyo-sn": { id: "dyo-SN", text: n2.default.dyo_sn }, dz: { id: "dz", text: n2.default.dz }, "dz-bt": { id: "dz-BT", text: n2.default.dz_bt }, ebu: { id: "ebu", text: n2.default.ebu }, "ebu-ke": { id: "ebu-KE", text: n2.default.ebu_ke }, ee: { id: "ee", text: n2.default.ee }, "ee-gh": { id: "ee-GH", text: n2.default.ee_gh }, "ee-tg": { id: "ee-TG", text: n2.default.ee_tg }, el: { id: "el", text: n2.default.el }, "el-cy": { id: "el-CY", text: n2.default.el_cy }, "el-gr": { id: "el-GR", text: n2.default.el_gr }, en: { id: "en", text: n2.default.en }, "en-029": { id: "en-029", text: n2.default.en_029, fallback: "en-US" }, "en-150": { id: "en-150", text: n2.default.en_150 }, "en-ag": { id: "en-AG", text: n2.default.en_ag }, "en-as": { id: "en-AS", text: n2.default.en_as }, "en-au": { id: "en-AU", text: n2.default.en_au, needsServerInfo: true, hasFlowCreationTTS: true, hasFlowDebugTTS: true, isAutomateFlowCreateSuggestion: true, supported: true }, "en-bb": { id: "en-BB", text: n2.default.en_bb }, "en-be": { id: "en-BE", text: n2.default.en_be }, "en-bm": { id: "en-BM", text: n2.default.en_bm }, "en-bs": { id: "en-BS", text: n2.default.en_bs }, "en-bw": { id: "en-BW", text: n2.default.en_bw }, "en-bz": { id: "en-BZ", text: n2.default.en_bz, fallback: "en-US" }, "en-ca": { id: "en-CA", text: n2.default.en_ca, fallback: "en-US" }, "en-cm": { id: "en-CM", text: n2.default.en_cm }, "en-dm": { id: "en-DM", text: n2.default.en_dm }, "en-fj": { id: "en-FJ", text: n2.default.en_fj }, "en-fm": { id: "en-FM", text: n2.default.en_fm }, "en-gb": { id: "en-GB", text: n2.default.en_gb, needsServerInfo: true, hasFlowCreationTTS: true, hasFlowDebugTTS: true, isAutomateFlowCreateSuggestion: true, supported: true }, "en-gb-wls": { id: "en-GB-WLS", text: n2.default.en_gb_wls }, "en-gd": { id: "en-GD", text: n2.default.en_gd }, "en-gg": { id: "en-GG", text: n2.default.en_gg }, "en-gh": { id: "en-GH", text: n2.default.en_gh }, "en-gi": { id: "en-GI", text: n2.default.en_gi }, "en-gm": { id: "en-GM", text: n2.default.en_gm }, "en-gu": { id: "en-GU", text: n2.default.en_gu }, "en-gy": { id: "en-GY", text: n2.default.en_gy }, "en-hk": { id: "en-HK", text: n2.default.en_hk }, "en-ie": { id: "en-IE", text: n2.default.en_ie, fallback: "en-US" }, "en-im": { id: "en-IM", text: n2.default.en_im }, "en-in": { id: "en-IN", text: n2.default.en_in, fallback: "en-US" }, "en-je": { id: "en-JE", text: n2.default.en_je }, "en-jm": { id: "en-JM", text: n2.default.en_jm, fallback: "en-US" }, "en-ke": { id: "en-KE", text: n2.default.en_ke }, "en-ki": { id: "en-KI", text: n2.default.en_ki }, "en-kn": { id: "en-KN", text: n2.default.en_kn }, "en-ky": { id: "en-KY", text: n2.default.en_ky }, "en-lc": { id: "en-LC", text: n2.default.en_lc }, "en-lr": { id: "en-LR", text: n2.default.en_lr }, "en-ls": { id: "en-LS", text: n2.default.en_ls }, "en-mg": { id: "en-MG", text: n2.default.en_mg }, "en-mh": { id: "en-MH", text: n2.default.en_mh }, "en-mp": { id: "en-MP", text: n2.default.en_mp }, "en-mt": { id: "en-MT", text: n2.default.en_mt }, "en-mu": { id: "en-MU", text: n2.default.en_mu }, "en-mw": { id: "en-MW", text: n2.default.en_mw }, "en-my": { id: "en-MY", text: n2.default.en_my, fallback: "en-US" }, "en-na": { id: "en-NA", text: n2.default.en_na }, "en-ng": { id: "en-NG", text: n2.default.en_ng }, "en-nz": { id: "en-NZ", text: n2.default.en_nz, supported: true }, "en-pg": { id: "en-PG", text: n2.default.en_pg }, "en-ph": { id: "en-PH", text: n2.default.en_ph, fallback: "en-US" }, "en-pk": { id: "en-PK", text: n2.default.en_pk }, "en-pr": { id: "en-PR", text: n2.default.en_pr }, "en-pw": { id: "en-PW", text: n2.default.en_pw }, "en-sb": { id: "en-SB", text: n2.default.en_sb }, "en-sc": { id: "en-SC", text: n2.default.en_sc }, "en-sg": { id: "en-SG", text: n2.default.en_sg, fallback: "en-US" }, "en-sl": { id: "en-SL", text: n2.default.en_sl }, "en-ss": { id: "en-SS", text: n2.default.en_ss }, "en-sz": { id: "en-SZ", text: n2.default.en_sz }, "en-tc": { id: "en-TC", text: n2.default.en_tc }, "en-to": { id: "en-TO", text: n2.default.en_to }, "en-tt": { id: "en-TT", text: n2.default.en_tt, fallback: "en-US" }, "en-tz": { id: "en-TZ", text: n2.default.en_tz }, "en-ug": { id: "en-UG", text: n2.default.en_ug }, "en-um": { id: "en-UM", text: n2.default.en_um }, "en-us": { id: "en-US", needsServerInfo: true, hasFlowCreationTTS: true, hasFlowDebugTTS: true, text: n2.default.en_us, isAutomateFlowCreateSuggestion: true, supported: true }, "en-vc": { id: "en-VC", text: n2.default.en_vc }, "en-vg": { id: "en-VG", text: n2.default.en_vg }, "en-vi": { id: "en-VI", text: n2.default.en_vi }, "en-vu": { id: "en-VU", text: n2.default.en_vu }, "en-ws": { id: "en-WS", text: n2.default.en_ws }, "en-za": { id: "en-ZA", text: n2.default.en_za, fallback: "en-US" }, "en-zm": { id: "en-ZM", text: n2.default.en_zm }, "en-zw": { id: "en-ZW", text: n2.default.en_zw, fallback: "en-US" }, eo: { id: "eo", text: n2.default.eo }, es: { id: "es", text: n2.default.es }, "es-419": { id: "es-419", text: n2.default.es_419 }, "es-ar": { id: "es-AR", text: n2.default.es_ar, fallback: "es-US" }, "es-bo": { id: "es-BO", text: n2.default.es_bo, fallback: "es-US" }, "es-cl": { id: "es-CL", text: n2.default.es_cl, fallback: "es-US" }, "es-co": { id: "es-CO", text: n2.default.es_co }, "es-cr": { id: "es-CR", text: n2.default.es_cr, fallback: "es-US" }, "es-cu": { id: "es-CU", text: n2.default.es_cu }, "es-do": { id: "es-DO", text: n2.default.es_do, fallback: "es-US" }, "es-ea": { id: "es-EA", text: n2.default.es_ea }, "es-ec": { id: "es-EC", text: n2.default.es_ec, fallback: "es-US" }, "es-es": { id: "es-ES", needsServerInfo: true, hasFlowCreationTTS: true, text: n2.default.es_es, isAutomateFlowCreateSuggestion: true, supported: true }, "es-gq": { id: "es-GQ", text: n2.default.es_gq }, "es-gt": { id: "es-GT", text: n2.default.es_gt, fallback: "es-US" }, "es-hn": { id: "es-HN", text: n2.default.es_hn, fallback: "es-US" }, "es-ic": { id: "es-IC", text: n2.default.es_ic }, "es-mx": { id: "es-MX", text: n2.default.es_mx, fallback: "es-US" }, "es-ni": { id: "es-NI", text: n2.default.es_ni, fallback: "es-US" }, "es-pa": { id: "es-PA", text: n2.default.es_pa, fallback: "es-US" }, "es-pe": { id: "es-PE", text: n2.default.es_pe }, "es-ph": { id: "es-PH", text: n2.default.es_ph }, "es-pr": { id: "es-PR", text: n2.default.es_pr, fallback: "es-US" }, "es-py": { id: "es-PY", text: n2.default.es_py, fallback: "es-US" }, "es-sv": { id: "es-SV", text: n2.default.es_sv, fallback: "es-US" }, "es-us": { id: "es-US", needsServerInfo: true, hasFlowCreationTTS: true, text: n2.default.es_us, isAutomateFlowCreateSuggestion: true, supported: true }, "es-uy": { id: "es-UY", text: n2.default.es_uy, fallback: "es-US" }, "es-ve": { id: "es-VE", text: n2.default.es_ve, fallback: "es-US" }, et: { id: "et", text: n2.default.et }, "et-ee": { id: "et-EE", text: n2.default.et_ee }, eu: { id: "eu", text: n2.default.eu }, "eu-es": { id: "eu-ES", text: n2.default.eu_es }, ewo: { id: "ewo", text: n2.default.ewo }, "ewo-cm": { id: "ewo-CM", text: n2.default.ewo_cm }, fa: { id: "fa", text: n2.default.fa }, "fa-af": { id: "fa-AF", text: n2.default.fa_af }, "fa-ir": { id: "fa-IR", text: n2.default.fa_ir }, ff: { id: "ff", text: n2.default.ff }, "ff-sn": { id: "ff-SN", text: n2.default.ff_sn }, fi: { id: "fi", text: n2.default.fi }, "fi-fi": { id: "fi-FI", isAutomateFlowCreateSuggestion: true, text: n2.default.fi_fi }, fil: { id: "fil", text: n2.default.fil }, "fil-ph": { id: "fil-PH", text: n2.default.fil_ph }, fo: { id: "fo", text: n2.default.fo }, "fo-fo": { id: "fo-FO", text: n2.default.fo_fo }, fr: { id: "fr", text: n2.default.fr }, "fr-be": { id: "fr-BE", text: n2.default.fr_be, fallback: "fr-FR" }, "fr-bf": { id: "fr-BF", text: n2.default.fr_bf }, "fr-bi": { id: "fr-BI", text: n2.default.fr_bi }, "fr-bj": { id: "fr-BJ", text: n2.default.fr_bj }, "fr-bl": { id: "fr-BL", text: n2.default.fr_bl }, "fr-ca": { id: "fr-CA", needsServerInfo: true, hasFlowCreationTTS: true, text: n2.default.fr_ca, isAutomateFlowCreateSuggestion: true, supported: true }, "fr-cd": { id: "fr-CD", text: n2.default.fr_cd }, "fr-cf": { id: "fr-CF", text: n2.default.fr_cf }, "fr-cg": { id: "fr-CG", text: n2.default.fr_cg }, "fr-ch": { id: "fr-CH", text: n2.default.fr_ch, fallback: "fr-FR" }, "fr-ci": { id: "fr-CI", text: n2.default.fr_ci }, "fr-cm": { id: "fr-CM", text: n2.default.fr_cm }, "fr-dj": { id: "fr-DJ", text: n2.default.fr_dj }, "fr-dz": { id: "fr-DZ", text: n2.default.fr_dz }, "fr-fr": { id: "fr-FR", needsServerInfo: true, hasFlowCreationTTS: true, text: n2.default.fr_fr, isAutomateFlowCreateSuggestion: true, supported: true }, "fr-ga": { id: "fr-GA", text: n2.default.fr_ga }, "fr-gf": { id: "fr-GF", text: n2.default.fr_gf }, "fr-gn": { id: "fr-GN", text: n2.default.fr_gn }, "fr-gp": { id: "fr-GP", text: n2.default.fr_gp }, "fr-gq": { id: "fr-GQ", text: n2.default.fr_gq }, "fr-ht": { id: "fr-HT", text: n2.default.fr_ht }, "fr-km": { id: "fr-KM", text: n2.default.fr_km }, "fr-lu": { id: "fr-LU", text: n2.default.fr_lu, fallback: "fr-FR" }, "fr-ma": { id: "fr-MA", text: n2.default.fr_ma }, "fr-mc": { id: "fr-MC", text: n2.default.fr_mc, fallback: "fr-FR" }, "fr-mf": { id: "fr-MF", text: n2.default.fr_mf }, "fr-mg": { id: "fr-MG", text: n2.default.fr_mg }, "fr-ml": { id: "fr-ML", text: n2.default.fr_ml }, "fr-mq": { id: "fr-MQ", text: n2.default.fr_mq }, "fr-mr": { id: "fr-MR", text: n2.default.fr_mr }, "fr-mu": { id: "fr-MU", text: n2.default.fr_mu }, "fr-nc": { id: "fr-NC", text: n2.default.fr_nc }, "fr-ne": { id: "fr-NE", text: n2.default.fr_ne }, "fr-pf": { id: "fr-PF", text: n2.default.fr_pf }, "fr-re": { id: "fr-RE", text: n2.default.fr_re }, "fr-rw": { id: "fr-RW", text: n2.default.fr_rw }, "fr-sc": { id: "fr-SC", text: n2.default.fr_sc }, "fr-sn": { id: "fr-SN", text: n2.default.fr_sn }, "fr-sy": { id: "fr-SY", text: n2.default.fr_sy }, "fr-td": { id: "fr-TD", text: n2.default.fr_td }, "fr-tg": { id: "fr-TG", text: n2.default.fr_tg }, "fr-tn": { id: "fr-TN", text: n2.default.fr_tn }, "fr-vu": { id: "fr-VU", text: n2.default.fr_vu }, "fr-yt": { id: "fr-YT", text: n2.default.fr_yt }, "fy-nl": { id: "fy-NL", text: n2.default.fy_nl }, ga: { id: "ga", text: n2.default.ga }, "ga-ie": { id: "ga-IE", text: n2.default.ga_ie }, "gd-gb": { id: "gd-GB", text: n2.default.gd_gb }, gl: { id: "gl", text: n2.default.gl }, "gl-es": { id: "gl-ES", text: n2.default.gl_es }, gsw: { id: "gsw", text: n2.default.gsw }, "gsw-ch": { id: "gsw-CH", text: n2.default.gsw_ch }, "gsw-fr": { id: "gsw-FR", text: n2.default.gsw_fr }, gu: { id: "gu", text: n2.default.gu }, "gu-in": { id: "gu-IN", text: n2.default.gu_in }, guz: { id: "guz", text: n2.default.guz }, "guz-ke": { id: "guz-KE", text: n2.default.guz_ke }, gv: { id: "gv", text: n2.default.gv }, "gv-gb": { id: "gv-GB", text: n2.default.gv_gb }, ha: { id: "ha", text: n2.default.ha }, "ha-latn": { id: "ha-Latn", text: n2.default.ha_latn }, "ha-latn-gh": { id: "ha-Latn-GH", text: n2.default.ha_latn_gh }, "ha-latn-ne": { id: "ha-Latn-NE", text: n2.default.ha_latn_ne }, "ha-latn-ng": { id: "ha-Latn-NG", text: n2.default.ha_latn_ng }, "ha-ng": { id: "ha-NG", text: n2.default.ha_ng }, haw: { id: "haw", text: n2.default.haw }, "haw-us": { id: "haw-US", text: n2.default.haw_us }, he: { id: "he", text: n2.default.he }, "he-il": { id: "he-IL", text: n2.default.he_il }, hi: { id: "hi", text: n2.default.hi }, "hi-in": { id: "hi-IN", text: n2.default.hi_in }, hr: { id: "hr", text: n2.default.hr }, "hr-ba": { id: "hr-BA", text: n2.default.hr_ba }, "hr-hr": { id: "hr-HR", text: n2.default.hr_hr }, "hsb-de": { id: "hsb-DE", text: n2.default.hsb_de }, hu: { id: "hu", text: n2.default.hu }, "hu-hu": { id: "hu-HU", text: n2.default.hu_hu }, hy: { id: "hy", text: n2.default.hy }, "hy-am": { id: "hy-AM", text: n2.default.hy_am }, id: { id: "id", text: n2.default.id }, "id-id": { id: "id-ID", text: n2.default.id_id }, ig: { id: "ig", text: n2.default.ig }, "ig-ng": { id: "ig-NG", text: n2.default.ig_ng }, ii: { id: "ii", text: n2.default.ii }, "ii-cn": { id: "ii-CN", text: n2.default.ii_cn }, is: { id: "is", text: n2.default.is }, "is-is": { id: "is-IS", text: n2.default.is_is }, it: { id: "it", text: n2.default.it }, "it-ch": { id: "it-CH", text: n2.default.it_ch }, "it-it": { id: "it-IT", needsServerInfo: true, hasFlowCreationTTS: true, text: n2.default.it_it, isAutomateFlowCreateSuggestion: true, supported: true }, "it-sm": { id: "it-SM", text: n2.default.it_sm }, ja: { id: "ja", text: n2.default.ja }, "ja-jp": { id: "ja-JP", needsServerInfo: true, hasFlowCreationTTS: true, text: n2.default.ja_jp, isAutomateFlowCreateSuggestion: true, supported: true }, jgo: { id: "jgo", text: n2.default.jgo }, "jgo-cm": { id: "jgo-CM", text: n2.default.jgo_cm }, jmc: { id: "jmc", text: n2.default.jmc }, "jmc-tz": { id: "jmc-TZ", text: n2.default.jmc_tz }, ka: { id: "ka", text: n2.default.ka }, "ka-ge": { id: "ka-GE", text: n2.default.ka_ge }, kab: { id: "kab", text: n2.default.kab }, "kab-dz": { id: "kab-DZ", text: n2.default.kab_dz }, kam: { id: "kam", text: n2.default.kam }, "kam-ke": { id: "kam-KE", text: n2.default.kam_ke }, kde: { id: "kde", text: n2.default.kde }, "kde-tz": { id: "kde-TZ", text: n2.default.kde_tz }, kea: { id: "kea", text: n2.default.kea }, "kea-cv": { id: "kea-CV", text: n2.default.kea_cv }, khq: { id: "khq", text: n2.default.khq }, "khq-ml": { id: "khq-ML", text: n2.default.khq_ml }, ki: { id: "ki", text: n2.default.ki }, "ki-ke": { id: "ki-KE", text: n2.default.ki_ke }, kk: { id: "kk", text: n2.default.kk }, "kk-cyrl": { id: "kk-Cyrl", text: n2.default.kk_cyrl }, "kk-cyrl-kz": { id: "kk-Cyrl-KZ", text: n2.default.kk_cyrl_kz }, "kk-kz": { id: "kk-KZ", text: n2.default.kk_kz }, kl: { id: "kl", text: n2.default.kl }, "kl-gl": { id: "kl-GL", text: n2.default.kl_gl }, kln: { id: "kln", text: n2.default.kln }, "kln-ke": { id: "kln-KE", text: n2.default.kln_ke }, km: { id: "km", text: n2.default.km }, "km-kh": { id: "km-KH", text: n2.default.km_kh }, kn: { id: "kn", text: n2.default.kn }, "kn-in": { id: "kn-IN", text: n2.default.kn_in }, ko: { id: "ko", text: n2.default.ko }, "ko-kp": { id: "ko-KP", text: n2.default.ko_kp }, "ko-kr": { id: "ko-KR", hasFlowCreationTTS: true, isAutomateFlowCreateSuggestion: true, text: n2.default.ko_kr }, kok: { id: "kok", text: n2.default.kok }, "kok-in": { id: "kok-IN", text: n2.default.kok_in }, ks: { id: "ks", text: n2.default.ks }, "ks-arab": { id: "ks-Arab", text: n2.default.ks_arab }, "ks-arab-in": { id: "ks-Arab-IN", text: n2.default.ks_arab_in }, ksb: { id: "ksb", text: n2.default.ksb }, "ksb-tz": { id: "ksb-TZ", text: n2.default.ksb_tz }, ksf: { id: "ksf", text: n2.default.ksf }, "ksf-cm": { id: "ksf-CM", text: n2.default.ksf_cm }, kw: { id: "kw", text: n2.default.kw }, "kw-gb": { id: "kw-GB", text: n2.default.kw_gb }, "ky-kg": { id: "ky-KG", text: n2.default.ky_kg }, lag: { id: "lag", text: n2.default.lag }, "lag-tz": { id: "lag-TZ", text: n2.default.lag_tz }, "lb-lu": { id: "lb-LU", text: n2.default.lb_lu }, lg: { id: "lg", text: n2.default.lg }, "lg-ug": { id: "lg-UG", text: n2.default.lg_ug }, ln: { id: "ln", text: n2.default.ln }, "ln-ao": { id: "ln-AO", text: n2.default.ln_ao }, "ln-cd": { id: "ln-CD", text: n2.default.ln_cd }, "ln-cf": { id: "ln-CF", text: n2.default.ln_cf }, "ln-cg": { id: "ln-CG", text: n2.default.ln_cg }, lo: { id: "lo", text: n2.default.lo }, "lo-la": { id: "lo-LA", text: n2.default.lo_la }, lt: { id: "lt", text: n2.default.lt }, "lt-lt": { id: "lt-LT", text: n2.default.lt_lt }, lu: { id: "lu", text: n2.default.lu }, "lu-cd": { id: "lu-CD", text: n2.default.lu_cd }, luo: { id: "luo", text: n2.default.luo }, "luo-ke": { id: "luo-KE", text: n2.default.luo_ke }, luy: { id: "luy", text: n2.default.luy }, "luy-ke": { id: "luy-KE", text: n2.default.luy_ke }, lv: { id: "lv", text: n2.default.lv }, "lv-lv": { id: "lv-LV", text: n2.default.lv_lv }, mas: { id: "mas", text: n2.default.mas }, "mas-ke": { id: "mas-KE", text: n2.default.mas_ke }, "mas-tz": { id: "mas-TZ", text: n2.default.mas_tz }, mer: { id: "mer", text: n2.default.mer }, "mer-ke": { id: "mer-KE", text: n2.default.mer_ke }, mfe: { id: "mfe", text: n2.default.mfe }, "mfe-mu": { id: "mfe-MU", text: n2.default.mfe_mu }, mg: { id: "mg", text: n2.default.mg }, "mg-mg": { id: "mg-MG", text: n2.default.mg_mg }, mgh: { id: "mgh", text: n2.default.mgh }, "mgh-mz": { id: "mgh-MZ", text: n2.default.mgh_mz }, mgo: { id: "mgo", text: n2.default.mgo }, "mgo-cm": { id: "mgo-CM", text: n2.default.mgo_cm }, "mi-nz": { id: "mi-NZ", text: n2.default.mi_nz }, mk: { id: "mk", text: n2.default.mk }, "mk-mk": { id: "mk-MK", text: n2.default.mk_mk }, ml: { id: "ml", text: n2.default.ml }, "ml-in": { id: "ml-IN", text: n2.default.ml_in }, "mn-cn": { id: "mn-CN", text: n2.default.mn_cn }, "mn-mn": { id: "mn-MN", text: n2.default.mn_mn }, "moh-ca": { id: "moh-CA", text: n2.default.moh_ca }, mr: { id: "mr", text: n2.default.mr }, "mr-in": { id: "mr-IN", text: n2.default.mr_in }, ms: { id: "ms", text: n2.default.ms }, "ms-bn": { id: "ms-BN", text: n2.default.ms_bn }, "ms-my": { id: "ms-MY", text: n2.default.ms_my }, "ms-sg": { id: "ms-SG", text: n2.default.ms_sg }, mt: { id: "mt", text: n2.default.mt }, "mt-mt": { id: "mt-MT", text: n2.default.mt_mt }, mua: { id: "mua", text: n2.default.mua }, "mua-cm": { id: "mua-CM", text: n2.default.mua_cm }, my: { id: "my", text: n2.default.my }, "my-mm": { id: "my-MM", text: n2.default.my_mm }, naq: { id: "naq", text: n2.default.naq }, "naq-na": { id: "naq-NA", text: n2.default.naq_na }, nb: { id: "nb", text: n2.default.nb }, "nb-no": { id: "nb-NO", needsServerInfo: true, text: n2.default.nb_no, hasFlowCreationTTS: true, isAutomateFlowCreateSuggestion: true, supported: true }, nd: { id: "nd", text: n2.default.nd }, "nd-zw": { id: "nd-ZW", text: n2.default.nd_zw }, ne: { id: "ne", text: n2.default.ne }, "ne-in": { id: "ne-IN", text: n2.default.ne_in }, "ne-np": { id: "ne-NP", text: n2.default.ne_np }, nl: { id: "nl", text: n2.default.nl }, "nl-aw": { id: "nl-AW", text: n2.default.nl_aw }, "nl-be": { id: "nl-BE", text: n2.default.nl_be, fallback: "nl-NL" }, "nl-cw": { id: "nl-CW", text: n2.default.nl_cw }, "nl-nl": { id: "nl-NL", needsServerInfo: true, hasFlowCreationTTS: true, text: n2.default.nl_nl, isAutomateFlowCreateSuggestion: true, supported: true }, "nl-sr": { id: "nl-SR", text: n2.default.nl_sr }, nmg: { id: "nmg", text: n2.default.nmg }, "nmg-cm": { id: "nmg-CM", text: n2.default.nmg_cm }, nn: { id: "nn", text: n2.default.nn }, "nn-no": { id: "nn-NO", text: n2.default.nn_no }, no: { id: "no", text: n2.default.no }, "nso-za": { id: "nso-ZA", text: n2.default.nso_za }, nus: { id: "nus", text: n2.default.nus }, "nus-sd": { id: "nus-SD", text: n2.default.nus_sd }, nyn: { id: "nyn", text: n2.default.nyn }, "nyn-ug": { id: "nyn-UG", text: n2.default.nyn_ug }, "oc-fr": { id: "oc-FR", text: n2.default.oc_fr }, om: { id: "om", text: n2.default.om }, "om-et": { id: "om-ET", text: n2.default.om_et }, "om-ke": { id: "om-KE", text: n2.default.om_ke }, or: { id: "or", text: n2.default.or }, "or-in": { id: "or-IN", text: n2.default.or_in }, pa: { id: "pa", text: n2.default.pa }, "pa-arab": { id: "pa-Arab", text: n2.default.pa_arab }, "pa-arab-pk": { id: "pa-Arab-PK", text: n2.default.pa_arab_pk }, "pa-guru": { id: "pa-Guru", text: n2.default.pa_guru }, "pa-guru-in": { id: "pa-Guru-IN", text: n2.default.pa_guru_in }, "pa-in": { id: "pa-IN", text: n2.default.pa_in }, pl: { id: "pl", text: n2.default.pl }, "pl-pl": { id: "pl-PL", hasFlowCreationTTS: true, text: n2.default.pl_pl }, "prs-af": { id: "prs-AF", text: n2.default.prs_af }, ps: { id: "ps", text: n2.default.ps }, "ps-af": { id: "ps-AF", text: n2.default.ps_af }, pt: { id: "pt", text: n2.default.pt }, "pt-ao": { id: "pt-AO", text: n2.default.pt_ao }, "pt-br": { id: "pt-BR", needsServerInfo: true, hasFlowCreationTTS: true, text: n2.default.pt_br, isAutomateFlowCreateSuggestion: true, supported: true }, "pt-cv": { id: "pt-CV", text: n2.default.pt_cv }, "pt-gw": { id: "pt-GW", text: n2.default.pt_gw }, "pt-mo": { id: "pt-MO", text: n2.default.pt_mo }, "pt-mz": { id: "pt-MZ", text: n2.default.pt_mz }, "pt-pt": { id: "pt-PT", text: n2.default.pt_pt, supported: true }, "pt-st": { id: "pt-ST", text: n2.default.pt_st }, "pt-tl": { id: "pt-TL", text: n2.default.pt_tl }, "qut-gt": { id: "qut-GT", text: n2.default.qut_gt }, "quz-bo": { id: "quz-BO", text: n2.default.quz_bo }, "quz-ec": { id: "quz-EC", text: n2.default.quz_ec }, "quz-pe": { id: "quz-PE", text: n2.default.quz_pe }, rm: { id: "rm", text: n2.default.rm }, "rm-ch": { id: "rm-CH", text: n2.default.rm_ch }, rn: { id: "rn", text: n2.default.rn }, "rn-bi": { id: "rn-BI", text: n2.default.rn_bi }, ro: { id: "ro", text: n2.default.ro }, "ro-md": { id: "ro-MD", text: n2.default.ro_md }, "ro-ro": { id: "ro-RO", text: n2.default.ro_ro }, rof: { id: "rof", text: n2.default.rof }, "rof-tz": { id: "rof-TZ", text: n2.default.rof_tz }, ru: { id: "ru", text: n2.default.ru }, "ru-by": { id: "ru-BY", text: n2.default.ru_by }, "ru-kg": { id: "ru-KG", text: n2.default.ru_kg }, "ru-kz": { id: "ru-KZ", text: n2.default.ru_kz }, "ru-md": { id: "ru-MD", text: n2.default.ru_md }, "ru-ru": { id: "ru-RU", text: n2.default.ru_ru }, "ru-ua": { id: "ru-UA", text: n2.default.ru_ua }, rw: { id: "rw", text: n2.default.rw }, "rw-rw": { id: "rw-RW", text: n2.default.rw_rw }, rwk: { id: "rwk", text: n2.default.rwk }, "rwk-tz": { id: "rwk-TZ", text: n2.default.rwk_tz }, "sa-in": { id: "sa-IN", text: n2.default.sa_in }, "sah-ru": { id: "sah-RU", text: n2.default.sah_ru }, saq: { id: "saq", text: n2.default.saq }, "saq-ke": { id: "saq-KE", text: n2.default.saq_ke }, sbp: { id: "sbp", text: n2.default.sbp }, "sbp-tz": { id: "sbp-TZ", text: n2.default.sbp_tz }, "se-fi": { id: "se-FI", text: n2.default.se_fi }, "se-no": { id: "se-NO", text: n2.default.se_no }, "se-se": { id: "se-SE", text: n2.default.se_se }, seh: { id: "seh", text: n2.default.seh }, "seh-mz": { id: "seh-MZ", text: n2.default.seh_mz }, ses: { id: "ses", text: n2.default.ses }, "ses-ml": { id: "ses-ML", text: n2.default.ses_ml }, sg: { id: "sg", text: n2.default.sg }, "sg-cf": { id: "sg-CF", text: n2.default.sg_cf }, shi: { id: "shi", text: n2.default.shi }, "shi-latn": { id: "shi-Latn", text: n2.default.shi_latn }, "shi-latn-ma": { id: "shi-Latn-MA", text: n2.default.shi_latn_ma }, "shi-tfng": { id: "shi-Tfng", text: n2.default.shi_tfng }, "shi-tfng-ma": { id: "shi-Tfng-MA", text: n2.default.shi_tfng_ma }, si: { id: "si", text: n2.default.si }, "si-lk": { id: "si-LK", text: n2.default.si_lk }, sk: { id: "sk", text: n2.default.sk }, "sk-sk": { id: "sk-SK", text: n2.default.sk_sk }, sl: { id: "sl", text: n2.default.sl }, "sl-si": { id: "sl-SI", text: n2.default.sl_si }, "sma-no": { id: "sma-NO", text: n2.default.sma_no }, "sma-se": { id: "sma-SE", text: n2.default.sma_se }, "smj-no": { id: "smj-NO", text: n2.default.smj_no }, "smj-se": { id: "smj-SE", text: n2.default.smj_se }, "smn-fi": { id: "smn-FI", text: n2.default.smn_fi }, "sms-fi": { id: "sms-FI", text: n2.default.sms_fi }, sn: { id: "sn", text: n2.default.sn }, "sn-zw": { id: "sn-ZW", text: n2.default.sn_zw }, so: { id: "so", text: n2.default.so }, "so-dj": { id: "so-DJ", text: n2.default.so_dj }, "so-et": { id: "so-ET", text: n2.default.so_et }, "so-ke": { id: "so-KE", text: n2.default.so_ke }, "so-so": { id: "so-SO", text: n2.default.so_so }, sq: { id: "sq", text: n2.default.sq }, "sq-al": { id: "sq-AL", text: n2.default.sq_al }, "sq-mk": { id: "sq-MK", text: n2.default.sq_mk }, sr: { id: "sr", text: n2.default.sr }, "sr-cyrl": { id: "sr-Cyrl", text: n2.default.sr_cyrl }, "sr-cyrl-ba": { id: "sr-Cyrl-BA", text: n2.default.sr_cyrl_ba }, "sr-cyrl-cs": { id: "sr-Cyrl-CS", text: n2.default.sr_cyrl_cs }, "sr-cyrl-me": { id: "sr-Cyrl-ME", text: n2.default.sr_cyrl_me }, "sr-cyrl-rs": { id: "sr-Cyrl-RS", text: n2.default.sr_cyrl_rs }, "sr-latn": { id: "sr-Latn", text: n2.default.sr_latn }, "sr-latn-ba": { id: "sr-Latn-BA", text: n2.default.sr_latn_ba }, "sr-latn-cs": { id: "sr-Latn-CS", text: n2.default.sr_latn_cs }, "sr-latn-me": { id: "sr-Latn-ME", text: n2.default.sr_latn_me }, "sr-latn-rs": { id: "sr-Latn-RS", text: n2.default.sr_latn_rs }, sv: { id: "sv", text: n2.default.sv }, "sv-fi": { id: "sv-FI", text: n2.default.sv_fi }, "sv-se": { id: "sv-SE", hasFlowCreationTTS: true, isAutomateFlowCreateSuggestion: true, text: n2.default.sv_se }, sw: { id: "sw", text: n2.default.sw }, "sw-ke": { id: "sw-KE", text: n2.default.sw_ke }, "sw-tz": { id: "sw-TZ", text: n2.default.sw_tz }, "sw-ug": { id: "sw-UG", text: n2.default.sw_ug }, swc: { id: "swc", text: n2.default.swc }, "swc-cd": { id: "swc-CD", text: n2.default.swc_cd }, "syr-sy": { id: "syr-SY", text: n2.default.syr_sy }, ta: { id: "ta", text: n2.default.ta }, "ta-in": { id: "ta-IN", text: n2.default.ta_in }, "ta-lk": { id: "ta-LK", text: n2.default.ta_lk }, "ta-my": { id: "ta-MY", text: n2.default.ta_my }, "ta-sg": { id: "ta-SG", text: n2.default.ta_sg }, te: { id: "te", text: n2.default.te }, "te-in": { id: "te-IN", text: n2.default.te_in }, teo: { id: "teo", text: n2.default.teo }, "teo-ke": { id: "teo-KE", text: n2.default.teo_ke }, "teo-ug": { id: "teo-UG", text: n2.default.teo_ug }, "tg-tj": { id: "tg-TJ", text: n2.default.tg_tj }, th: { id: "th", text: n2.default.th }, "th-th": { id: "th-TH", needsServerInfo: true, text: n2.default.th_th, isAutomateFlowCreateSuggestion: true, supported: true }, ti: { id: "ti", text: n2.default.ti }, "ti-er": { id: "ti-ER", text: n2.default.ti_er }, "ti-et": { id: "ti-ET", text: n2.default.ti_et }, "tk-tm": { id: "tk-TM", text: n2.default.tk_tm }, "tn-za": { id: "tn-ZA", text: n2.default.tn_za }, to: { id: "to", text: n2.default.to }, "to-to": { id: "to-TO", text: n2.default.to_to }, tr: { id: "tr", text: n2.default.tr }, "tr-cy": { id: "tr-CY", text: n2.default.tr_cy }, "tr-tr": { id: "tr-TR", hasFlowCreationTTS: true, text: n2.default.tr_tr }, "tt-ru": { id: "tt-RU", text: n2.default.tt_ru }, twq: { id: "twq", text: n2.default.twq }, "twq-ne": { id: "twq-NE", text: n2.default.twq_ne }, tzm: { id: "tzm", text: n2.default.tzm }, "tzm-dz": { id: "tzm-DZ", text: n2.default.tzm_dz }, "tzm-latn": { id: "tzm-Latn", text: n2.default.tzm_latn }, "tzm-latn-ma": { id: "tzm-Latn-MA", text: n2.default.tzm_latn_ma }, "ug-cn": { id: "ug-CN", text: n2.default.ug_cn }, uk: { id: "uk", text: n2.default.uk }, "uk-ua": { id: "uk-UA", text: n2.default.uk_ua }, ur: { id: "ur", text: n2.default.ur }, "ur-in": { id: "ur-IN", text: n2.default.ur_in }, "ur-pk": { id: "ur-PK", text: n2.default.ur_pk }, uz: { id: "uz", text: n2.default.uz }, "uz-arab": { id: "uz-Arab", text: n2.default.uz_arab }, "uz-arab-af": { id: "uz-Arab-AF", text: n2.default.uz_arab_af }, "uz-cyrl": { id: "uz-Cyrl", text: n2.default.uz_cyrl }, "uz-cyrl-uz": { id: "uz-Cyrl-UZ", text: n2.default.uz_cyrl_uz }, "uz-latn": { id: "uz-Latn", text: n2.default.uz_latn }, "uz-latn-uz": { id: "uz-Latn-UZ", text: n2.default.uz_latn_uz }, vai: { id: "vai", text: n2.default.vai }, "vai-latn": { id: "vai-Latn", text: n2.default.vai_latn }, "vai-latn-lr": { id: "vai-Latn-LR", text: n2.default.vai_latn_lr }, "vai-vaii": { id: "vai-Vaii", text: n2.default.vai_vaii }, "vai-vaii-lr": { id: "vai-Vaii-LR", text: n2.default.vai_vaii_lr }, vi: { id: "vi", text: n2.default.vi }, "vi-vn": { id: "vi-VN", text: n2.default.vi_vn }, vun: { id: "vun", text: n2.default.vun }, "vun-tz": { id: "vun-TZ", text: n2.default.vun_tz }, "wo-sn": { id: "wo-SN", text: n2.default.wo_sn }, yav: { id: "yav", text: n2.default.yav }, "yav-cm": { id: "yav-CM", text: n2.default.yav_cm }, yo: { id: "yo", text: n2.default.yo }, "yo-ng": { id: "yo-NG", text: n2.default.yo_ng }, zh: { id: "zh", text: n2.default.zh }, "zh-cn": { id: "zh-CN", hasFlowCreationTTS: true, text: n2.default.zh_cn, isAutomateFlowCreateSuggestion: true, supported: true }, "zh-hans": { id: "zh-Hans", needsServerInfo: true, hasFlowCreationTTS: true, isAutomateFlowCreateSuggestion: true, text: n2.default.zh_hans }, "zh-hans-cn": { id: "zh-Hans-CN", text: n2.default.zh_hans_cn }, "zh-hans-hk": { id: "zh-Hans-HK", text: n2.default.zh_hans_hk }, "zh-hans-mo": { id: "zh-Hans-MO", text: n2.default.zh_hans_mo }, "zh-hans-sg": { id: "zh-Hans-SG", text: n2.default.zh_hans_sg }, "zh-hant": { id: "zh-Hant", text: n2.default.zh_hant }, "zh-hant-hk": { id: "zh-Hant-HK", text: n2.default.zh_hant_hk }, "zh-hant-mo": { id: "zh-Hant-MO", text: n2.default.zh_hant_mo }, "zh-hant-tw": { id: "zh-Hant-TW", text: n2.default.zh_hant_tw }, "zh-hk": { id: "zh-HK", text: n2.default.zh_hk }, "zh-mo": { id: "zh-MO", text: n2.default.zh_mo }, "zh-sg": { id: "zh-SG", text: n2.default.zh_sg }, "zh-tw": { id: "zh-TW", text: n2.default.zh_tw }, zu: { id: "zu", text: n2.default.zu }, "zu-za": { id: "zu-ZA", text: n2.default.zu_za } }; + }, 12298: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(81574)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "journeyGeolocation"; + } + get country() { + } + get countryName() { + } + get latitude() { + } + get longitude() { + } + get locality() { + } + get postalCode() { + } + get region() { + } + get regionName() { + } + get source() { + } + get timezone() { + } + get displayTypeName() { + return "ArchValueJourneyGeolocation"; + } + get isArchValueJourneyGeolocation() { + return true; + } + } + t2.default = r2; + }, 12323: (e2, t2, i2) => { + const n2 = i2(24005), r2 = i2(7401); + function o() { + Object.defineProperties(this, { _summarization: { writable: true }, _assignWrapupCodes: { writable: true }, _enabledWrapupCodes: { writable: true } }), this.conversationSummaryId = void 0, this.conversationSummaryName = void 0, o.baseConstructor.apply(this, arguments); + } + n2.extend(o, "BotFlowVirtualAgentSettings"), Object.defineProperties(o.prototype, { pasteReIdOrRename: { value: function(e3) { + o._super.pasteReIdOrRename.call(this, e3), this._summarization.pasteReIdOrRename(e3), this._assignWrapupCodes.pasteReIdOrRename(e3), this._enabledWrapupCodes.pasteReIdOrRename(e3); + } }, pasteResolveOldToNewValues: { value: function(e3) { + o._super.pasteResolveOldToNewValues.call(this, e3), this._summarization.pasteResolveOldToNewValues(e3), this._assignWrapupCodes.pasteResolveOldToNewValues(e3), this._enabledWrapupCodes.pasteResolveOldToNewValues(e3); + } }, summarization: { enumerable: true, get: function() { + return this._summarization; + }, set: function(e3) { + this._summarization = this.reviveItem(e3, r2); + } }, assignWrapupCodes: { enumerable: true, get: function() { + return this._assignWrapupCodes; + }, set: function(e3) { + this._assignWrapupCodes = this.reviveItem(e3, r2); + } }, enabledWrapupCodes: { enumerable: true, get: function() { + return this._enabledWrapupCodes; + }, set: function(e3) { + this._enabledWrapupCodes = this.reviveItem(e3, r2); + } } }), e2.exports = o; + }, 12345: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(20692)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "knowledgeBaseDocumentCollection"; + } + get displayTypeName() { + return "ArchVariableKnowledgeBaseDocumentCollection"; + } + get initialValue() { + return this._initialValue; + } + get isArchVariableKnowledgeBaseDocumentCollection() { + return true; + } + } + t2.default = r2; + }, 12360: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importDefault(i2(17102)), o = i2(12179), a = n2.__importDefault(i2(59441)), s = i2(47957), l = "nluCortexMetaData"; + class u extends r2.default { + constructor() { + super(...arguments), this.modelPropertyName = "nluCortex"; + } + get outOfService() { + return !this._nluCortex; + } + get id() { + return l; + } + get isNluCortexMetaDataViewModel() { + return true; + } + get intents() { + var e3; + return null === (e3 = this._nluCortex) || void 0 === e3 ? void 0 : e3.intents; + } + set intents(e3) { + this._nluCortex.intents = e3; + } + get className() { + return "NluCortexMetaDataViewModel"; + } + getDisplayName() { + return s.intents.label; + } + get NluCortexMetaDataArchNodeName() { + return l; + } + get nodeGuxIcon() { + return "fa/signs-post-regular"; + } + get helpTopic() { + return o.helpTopics.treeNodes.intentsSettings; + } + getConfiguration(e3, t3, i3) { + if (e3.nluCortex = new a.default(this._nluCortex) || new a.default(), null == t3 ? void 0 : t3.isForFlowYaml) return super.getConfiguration(e3, t3, i3); + } + loadConfiguration(e3) { + super.loadConfiguration(e3), e3.nluCortex || (e3.nluCortex = new a.default()), this._nluCortex = e3.nluCortex; + } + } + t2.default = u; + }, 12361: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.agenticVirtualAgentManager = t2.AgenticVirtualAgentManager = void 0; + const n2 = i2(31635), r2 = i2(24032), o = n2.__importDefault(i2(3542)), a = i2(30801), s = i2(81801), l = n2.__importDefault(i2(47532)), u = n2.__importStar(i2(33577)), d = i2(32592), c = i2(47957), p = i2(27862); + class _ extends l.default { + get dependencyType() { + return p.AgenticVirtualAgent; + } + constructor() { + super(), this.topic = (0, r2.getTopic)("agenticVirtualAgentManager"), this._rawServerCache = {}, this.apiCallList = u.getAgenticVirtualAgents, this.apiCallSingle = u.getAgenticVirtualAgent, this.actionsForUsageSearch = [a.callAgenticVirtualAgentActionType], this.actionPropertyForUsageSearch = "agenticVirtualAgentSetting", this.defaultInputsWithNoValue = true, this.className = "AgenticVirtualAgentManager", this.defaultPageSize = 100, this.dependencyContext = c.agenticVirtualAgent.agenticVirtualAgent, this.searchField = "nameContains", this.searchWildcardSupport = false, this.sortOrder = "asc", this.suppressSearch = false, this.uiMetadataSectionName = "agenticVirtualAgents", this._initialize(); + } + get requiredAuth() { + return s.externalAuthorizations.authStrings.agenticVirtualAgentView; + } + get _networkModel() { + return o.default; + } + _createItemViewModel(e3) { + return new d.AgenticVirtualAgentViewModel(e3); + } + } + t2.AgenticVirtualAgentManager = _, t2.agenticVirtualAgentManager = new _(); + }, 12384: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(25498)), r2 = i2(96618); + class o extends n2.default { + constructor(e3) { + super(e3); + } + get _flowType() { + return r2.flowTypes.flowTypeSecureCall; + } + get displayTypeName() { + return "ArchFlowSecureCall"; + } + get isArchFlowSecureCall() { + return true; + } + } + t2.default = o; + }, 12457: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.ActionDetails = void 0; + const n2 = i2(31635).__importDefault(i2(92140)), r2 = i2(24032).getTopic("ActionDetails"); + t2.ActionDetails = class { + constructor(e3, t3) { + if (e3 && t3) return n2.default.isArray(e3) && n2.default.isArray(t3) ? e3.length !== t3.length ? (r2.errorWithStack(null, "Arrays with non-matching lengths were passed into ActionDetails."), void (this.textDetailsObjects = [])) : void (this.textDetailsObjects = n2.default.map(e3, function(e4, i3) { + return { label: e4, value: t3[i3] }; + })) : (r2.errorWithStack(null, "Non-array values were passed into ActionDetails."), void (this.textDetailsObjects = [])); + this.textDetailsObjects = []; + } + get detailLines() { + const e3 = []; + for (let t3 = 0; t3 < this.textDetailsObjects.length; t3++) { + const i3 = this.getDetailText(this.textDetailsObjects[t3]); + e3.push(i3); + } + return e3; + } + getDetailText(e3) { + if (!e3) return ""; + let t3 = ""; + return e3.label && (t3 += e3.label + ": "), t3 += e3.value, t3.substring(0, 256); + } + }; + }, 12614: (e2, t2, i2) => { + function n2() { + this.activeVersion = void 0, n2.baseConstructor.apply(this, arguments); + } + i2(52722).extend(n2, "DialogEngineBot"), Object.defineProperties(n2.prototype, {}), e2.exports = n2; + }, 12664: (e2) => { + e2.exports = { about: { additionalLicenseInfo: "Additional License Information", buildNumber: "( Build: # %1$s )", copyrightFormat: "Copyright \xA9 %1$s-%2$s %3$s", copyrightRightsReserved: "All rights reserved.", copyrightWarning: "Warning: this computer program is protected by copyright law and international treaties. Unauthorized reproduction or distribution of this program, or any portion of it, may result in severe civil and criminal penalties, and will be prosecuted to the maximum extent possible under the law.", licenseAntlr: "Uses ANTLR software ( http://antlr.org ) for expression text parsing support. ANTLR 3 License / BSD License", logoAlternateText: "Genesys logo", orgInfoLabel: "Organization Information", orgInfoCurrentLabel: "Current Organization", orgInfoHomeLabel: "Home Organization", orgInfoId: "Organization ID", orgInfoName: "Company Name", orgInfoShortName: "Short Name", permissionHeader: "Permission Information", title: "About Architect" }, action: { action: "Action", actionIsDeprecated: "The '%1$s' action is deprecated.", notSet: "There is no action specified", actionOutputPathsHeader: "Paths", actionType: "%1$s Action" }, actions: { actionWaitForInput: "Wait for Input", ask: "Ask", abortSend: "Abort Send", abortSendActionMessageSettingDescription: "A localized message to display to the sender explaining why the send is being aborted.", abortSendActionMessageSettingLabel: "Message", abortSendErrorEventMessageSettingLabel: "Abort Message", abortSendMessageSettingDefaultLabel: "Default Abort Message", abortSurvey: "Abort Survey", addFlowMilestone: "Add Flow Milestone", askAnythingElse: "Anything Else?", askForActionGeneric: "Ask For ...", askForAuthentication: "Ask to Authenticate", askForBoolean: "Ask for Yes / No", askForIntent: "Ask for Intent", askForNLUNextIntentAction: '"Anything Else?" Loop', askForPayment: "Ask for Payment", askForSlot: "Ask for Slot", askSurveyQuestion: "Ask Survey Question", audioMonitoring: "Audio Monitoring", botConnector: "Call Bot Connector", botState: "Bot", callAgenticVirtualAgent: "Call Agentic Virtual Agent", callAudioConnector: "Call Audio Connector", callBotFlow: "Call Bot Flow", callDecisionTable: "Call Decision Table", callDigitalBotFlow: "Call Digital Bot Flow", callGuide: "Call Guide", callBridgeAction: "Call Bridge Action", callCommonModule: "Call Common Module", callNuanceMixBot: "Call Nuance Mix Bot", callTask: "Call Task", callVoiceFlow: "Call Voice Flow", categoryEnd: "End", clearActiveIntent: "Clear Active Intent", clearPostFlow: "Clear Post-Flow", clearUtilizationLabel: "Clear Utilization Label", clearVoicemailSnippetActionLabel: "Clear Voicemail Snippet", common: "Common", communicate: "Communicate", completeSend: "Complete Send", conversation: "Conversation", createCallback: "Create Callback", createConversationAttribute: "Create Conversation Attribute", changeState: "Change State", completeSurvey: "Complete Survey", data: "Data", dataTableLookup: "Data Table Lookup", decision: "Decision", decryptData: "Decrypt Data", defaultActionSettings: "Default Action Settings", detectSilence: "Detect Silence", dial: "Dial", dialogEngine: "Call Dialog Engine Bot", dialogflow: "Call Dialogflow Bot", dialogflowCx: "Call Dialogflow CX Bot", digitalBotConnector: "Call Digital Bot Connector", digitalMenu: "Digital Menu", disconnect: "Disconnect", disconnectWorkitem: "Disconnect Workitem", email: "Email", enableParticipantRecording: "Enable Participant Recording", encryptData: "Encrypt Data", endState: "End State", endTask: "End Task", endWorkflow: "End Workflow", evaluateSchedule: "Evaluate Schedule", evaluateScheduleGroup: "Evaluate Schedule Group", evaluateSkillExpressionFilters: "Evaluate Skill Expression Filters", exitBotFlow: "Exit Bot Flow", exitLoop: "Exit Loop", exitWorkitemFlow: "Exit Workitem Flow", extractSecureData: "Extract Secure Data", external: "External Contacts", findDivision: "Find Division", findDivisions: "Find Divisions", findEmergencyGroupActionLabel: "Find Emergency Group", findGrammar: "Find Grammar", findGrammarById: "Find Grammar by ID", findGroup: "Find Group", findKnowledgeBaseDocumentById: "Find KnowledgeBaseDocument by ID", findLanguageSkill: "Find Language Skill", findQueue: "Find Queue", findQueueById: "Find Queue by ID", findSkill: "Find Skill", findUserPrompt: "Find User Prompt", findUtilizationLabel: "Find Utilization Label", findScheduleActionLabel: "Find Schedule", findScheduleGroupActionLabel: "Find Schedule Group", findSystemPrompt: "Find System Prompt", findUser: "Find User", findUserById: "Find User by ID", findUsersById: "Find Users by ID", flushAudio: "Flush Audio", form: "Form", getAssignedCustomerIntents: "Get Assigned Customer Intents", getAttributes: "Get Participant Data", getConversationAttribute: "Get Conversation Attribute", getConversationAttributes: "Get Conversation Attributes", getConversationData: "Get Conversation Data", getEmailHeaders: "Get Email Headers", getExternalContact: "Get External Contact", getExternalOrganization: "Get External Organization", getJourneyOutcome: "Get Journey Outcome", getJourneyOutcomeScoresBySession: "Get Journey Outcome Scores by Session", getJourneySegment: "Get Journey Segment", getJourneySession: "Get Journey Session", getJourneySessionsByCustomer: "Get Journey Sessions by Customer", getJourneySessionsByExternalContact: "Get Journey Sessions by External Contact", getJourneyOutcomeById: "Get Journey Outcome by ID", getRawSIPHeaders: "Get Raw SIP Headers", getResponse: "Get Response", getSecuredData: "Get Secured Data", getSIPHeaders: "Get SIP Headers", holdMusic: "Hold Music", initializeFlowOutcome: "Initialize Flow Outcome", collectInput: "Collect Input", processVoicemailInput: "Process Voicemail Input", collectVoiceSnippet: "Collect Voice Snippet", language: "Language", lex: "Call Lex Bot", lexV2: "Call Lex V2 Bot", logical: "Logical", loop: "Loop", loopUntil: "Loop Until", media: "Media", menu: "Menu", menuJump: "Jump to Menu", nextLoop: "Next Loop", playAudio: "Play Audio", playPositionInQueue: "Play Position In Queue", playAudioOnSilence: "Play Audio on Silence", playEstimatedWaitTime: "Play Estimated Wait Time", playUserGreeting: "Play User Greeting", playUserName: "Play User Name", previousMenu: "Previous Menu", promoteExternalContact: "Promote External Contact", repeatMenu: "Repeat Menu", returnToAgent: "Return To Agent", screenPop: "Set Screen Pop", searchExternalContacts: "Search External Contacts", send: "Send", sendAutoReply: "Send Auto Reply", sendDigitalContent: "Send Digital Content", sendInteractiveApplication: "Send Application", sendKnowledgeFeedback: "Send Knowledge Feedback", sendNotification: "Send Notification", sendResponse: "Send Response", sendRichLink: "Send Rich Link", setAttributes: "Set Participant Data", setConversationData: "Set Conversation Data", setExternalTag: "Set External Tag", setFlowOutcome: "Set Flow Outcome", setIntent: "Set Intent", setLocale: "Set Language", setPriority: "Set Priority", setPostFlow: "Set Post-Flow", setSecuredData: "Set Secured Data", setSkillExpressionFilters: "Set Skill Expression Filters", setSkills: "Set Skills", clearSkillExpressionFilters: "Clear Skill Expression Filters", setUtilizationLabel: "Set Utilization Label", setUUIData: "Set UUI Data", setWhisperAudio: "Set Whisper Audio", setWrapupCode: "Set Wrapup Code", showKnowledgeArticle: "Show Knowledge Article", state: "State", submitVoicemailSnippet: "Submit Voicemail Snippet", submitVoiceSnippet: "Submit Voice Snippet", surveyInvite: "Survey Invites", switch: "Switch", task: "Task", taskTransfer: "Jump to Reusable Task", terminateWorkitem: "Terminate Workitem", transcription: "Transcription", transfer: "Transfer", transfers: { acd: "Transfer to ACD", external: "Transfer to Number", flow: "Transfer to Flow", group: "Transfer to Group", secureFlow: "Transfer to Secure Flow", user: "Transfer to User", voicemail: "Transfer to Voicemail" }, updateConversationAttribute: "Update Conversation Attribute", updateVariables: "Update Data", updateWorkitem: "Update Workitem", secureAction: "Call Secure Data Action", dataAction: "Call Data Action", unknown: "Unknown", userInput: "User Input", voiceBiometrics: "Voice Biometrics", voiceProcessing: "Voice Processing", wait: "Wait", workitem: "Workitem" }, actionMenu: { actionMenuAriaLabel: "Action Menu", actionTypeMenuChoice: "Menu Action Type", actionTypeTask: "Task Action Type", childActions: "Child Actions", clearClipboard: "Clear Clipboard", collapse: "Collapse", copy: "Copy", cut: "Cut", expand: "Expand", source: "Source %1$s", noPastableObjects: "No objects on clipboard", pasteHeader: "Paste object", remove: "Remove from clipboard", type: "Type" }, admin: { adminOrganizationSettingsLabel: "Admin Organization Settings" }, agenticVirtualAgent: { agenticVirtualAgent: "Agentic Virtual Agent", agenticVirtualAgentBillingInfoNote: "For token-based pricing details on interactions with Agentic Virtual Agents, see the {{link.__GENESYS_CLOUD_TOKENS_BASED_PRICING_MODEL__, Resource Center}} documentation.", agenticVirtualAgentVersion: "Agentic Virtual Agent Version", agenticVirtualAgentViewPermission: "You do not have permission to view Agentic Virtual Agents.", agenticVirtualAgentVersionViewPermission: "You do not have permission to view Agentic Virtual Agent version.", mustSelectAgenticVirtualAgent: "An Agentic Virtual Agent must be selected.", agenticVirtualAgentNotFound: "The selected Agentic Virtual Agent could not be found.", mustSelectAgenticVirtualAgentVersion: "An Agentic Virtual Agent Version must be selected.", agenticVirtualAgentVersionNotFound: "The selected Agentic Virtual Agent Version could not be found.", openAgenticVirtualAgentsInNewTab: "Open Agentic Virtual Agents in new tab", exitReasonDescription: "Indicates what caused the Agentic Virtual Agent to exit. See the Call Agentic Virtual Agent action help for more details on exit reason string values." }, alertService: { architectBusy: "Please wait, Architect is busy.", architectNewVersion: "A newer version of Architect is available. Please refresh the page to load the updated version." }, askCommon: { continuationReprompts: "Continuation Reprompts", continuationRepromptsDescription: "Additional wordings to use for continuation prompting during slot capture.", customizeContinuationPrompt: "Customize Continuation Prompt", customizeNoInput: "Customize No Input", customizeNoMatch: "Customize No Match", customValidation: { label: "Custom Validation", description: "If specified, this boolean expression lets you configure additional validation logic that when evaluated at runtime will be used to determine if the received value meets these additional requirements. If it evaluates to false or a NOT_SET boolean, the value is considered invalid.", noValue: "No custom input validation specified." }, defaultContinuationPrompt: "Default Continuation Prompt", defaultNoInput: "Default No Input", defaultNoMatch: "Default No Match", initialPlaybackDelay: "Initial Playback Delay", invalidResponse: "Invalid Response", minimumPlaybackTime: "Minimum Playback Time", noInput: "No Input", noInputDescription: "Wording the bot will use when no input is received. Remember that no input handling will use the wording configured in the No Input Apology setting in the No Inputs Detected section on the User Input Settings in this flow prior to playing this Communication.", noInputReprompts: "No Input Reprompts", noInputRepromptsDescription: "Additional wordings to use when no input is received. The length of the reprompt collection will override the max number of No Input retries defined at Settings > User Input > No Input Detected > Maximum Number of No Input Retries for that particular action. An empty collection will turn off No Input retries.", noMatch: "No Match", noMatchDescription: "Wording the bot will use when input is received but it is not a valid match. Remember that no match handling will use the wording configured in the No Match Apology setting in the No Matches Detected section on the User Input Settings in this flow prior to playing this Communication.", noMatchReprompts: "No Match Reprompts", noMatchRepromptsDescription: "Additional wordings to use when input is received but it is not a valid match. The length of the reprompt collection will override the max number of No Match retries defined at Settings > User Input > No Match Detected > Maximum Number of No Match Retries for that particular action. An empty collection will turn off No Match retries.", question: "Question", questionDescriptionWaitForInputAction: "Wording the bot will use prior to waiting for input from the external participant.", questionDescriptionAskActions: "Wording the bot will use when asking the question for the first time.", voiceProcessingPrompt: "Voice Processing Prompt", voiceProcessingPromptDescription: "This setting overrides the Voice Processing Prompt in Call Guides. If both are configured, this setting will be applied.", voiceEndOfInputTimeout: "Voice End of Input Timeout", voiceEndOfInputTimeoutDescriptionAskActions: "Specifies the maximum length of time to pause after the user appears to have finished speaking. Too low of a value may cause user input to be truncated mid-sentence and too high of a value may cause some users to repeat themselves leading to recognition problems. If the Duration value is less than the minimum value, the minimum value will be used. If the value is greater than the maximum value, the maximum value will be used and if the value is a NOT_SET Duration, the default value will be used at runtime." }, askForAuthentication: { askForAuthSignInMessage: "Sign In Message", askForAuthSuccessMessage: "Success Message", askForAuthSignInMessageDefault: "Let's Sign In", askForAuthSuccessMessageDefault: "Sign In Completed", askForAuthChannelNote: "Ask to Authenticate is only available for Apple Messages for Business. Using it on other channels will take the failure path.", askForAuthCompletionTimeout: "Authentication Completion Timeout", askForAuthCompletionTimeoutDesc: "Once the authentication request has been sent, this is the maximum length of time to wait for the participant to complete the authentication. If the authentication is not completed within this time then a No Input event will be triggered." }, askForIntent: { knowledgeBaseMustBeSelectedWhenKnowledgePathEnabled: "The '%1$s' path cannot be used when there is no Knowledge Base configured for the bot's Knowledge settings.", knowledgeSettingMustBeSelectedWhenKnowledgePathEnabled: "The '%1$s' path cannot be used when there is no Knowledge Setting configured for the bot's Knowledge settings.", nluMustHaveOneIntent: "There must be at least one intent defined in the bot's Natural Language Understanding configuration if you want to ask for an intent.", mustEnableOneNluIntent: "When asking for an intent, you must enable at least one intent in this action's Paths setting. Bot intents are configured in the Natural Language Understanding configuration.", mustEnableOneNluIntentOrKnowledge: "You must enable at least one intent or the '%1$s' path in this action's Paths setting. Bot intents are configured in the Natural Language Understanding configuration." }, showKnowledgeBaseArticle: { knowledgeBaseArticleLabel: "Knowledge Base Article", showKnowledgeBaseArticleNote: "The available articles that can be shown come from the Knowledge Base configured in the '{{settings.__KNOWLEDGE__}}' settings for this flow.", showKnowledgeSettingArticleNote: "This action is unavailable for this knowledge type. Use session-level variables or answer controls instead." }, askForNLUNextIntentAction: { actionNameBegin: "Begin: %1$s", actionNameEnd: "End: %1$s", loopOutputPathReentryLabel: "Re-Entry" }, askForPayment: { askForPayCurrency: "Currency", askForPaymentCurrencyDesc: "Use the 3-letter currency code defined by the ISO 4217 standard (e.g., USD for US Dollar, EUR for Euro). In literal mode, this value changes the currency code of %1$s, %2$s and %3$s.", askForPayCountryCode: "Country Code", askForPaymentCountryCodeDesc: "Use the 2-letter country code defined by the ISO 3166 standard (e.g., US for United States, DE for Germany).", askForPaymentChannelNote: "Ask for Payment is currently only available for Apple Messages for Business.", askForPaymentReplyMessage: "Reply Message", askForPaymentPaymentPlatform: "Payment Platform", askForPaymentTotalPrice: "Total Price", askForPaymentTotalPriceDesc: "Enter the total amount for all items, including shipping. Must be a positive number greater than zero (e.g., 129.99).", addLineItemsButton: "Add items to set", noLineItemsDefined: "No items defined", askForPaymentLineItems: "Line Items", askForPaymentListingName: "Listing Name", askForPaymentListingNameDesc: "Enter the name or title of this item (e.g., Premium Support Package, Express Shipping).", askForPaymentListingPrice: "Listing Price", askForPaymentListingPriceDesc: "Enter the monetary amount for this item. Can be positive, negative, or zero (e.g., 49.99, -10.00, 0).", askForPaymentShippingOptions: "Shipping Options", askForPaymentShippingOptionLabel: "Label", askForPaymentShippingOptionLabelDesc: "Enter the user-facing name for this shipping method (e.g., In Store Pickup, USPS Priority Mail).", askForPaymentShippingOptionIdentifier: "Identifier", askForPaymentShippingOptionIdentifierDesc: "Enter a technical identifier for this shipping method (e.g., storePickup, uspsPriority).", askForPaymentShippingOptionDetails: "Shipping Details", askForPaymentShippingOptionDetailsDesc: "Provide additional details about this shipping method, such as estimated delivery time or special conditions (e.g., \u201CDelivered within 2-3 business days\u201D).", askForPaymentCompletionTimeout: "Payment Completion Timeout", askForPaymentCompletionTimeoutDesc: "Once the payment has been sent, this is the maximum length of time to wait for the participant to complete the payment. If the payment is not completed within this time then a No Input event will be triggered.", askForPaymentDuplicateIdentifiers: "Identifiers have to be unique", askForPaymentDuplicateContactInformationTypes: "Contact information types must be unique", askForPaymentCurrencyMismatch: "Currency codes must match the Currency Code settings. All price settings must use the same currency code.", askForPaymentContactInformation: "Contact Information", askForPaymentContactInformationDesc: "If specified, the customer contact fields required to complete the transaction.", askForPaymentContactInformationPlaceholder: "Select required contact information", askForPaymentContactInformationPhone: "Phone", applePay: "Apple Pay" }, askForSlot: { askForSlotInvalid: "Architect cannot look up the associated variable for the selected slot. Please reselect the slot.", confirmationMode: "Confirmation Mode", confirmationModeDescription: `This controls if the bot will confirm the slot value supplied by the participant is correct. If this setting evaluates to "%1$s" at runtime and the participant supplied value is valid, as per settings in the '%2$s' section, the bot will use the '%3$s' communication to confirm it with the participant.`, confirmationModes: { confirmationModeAlways: "Always", confirmationModeNever: "Never" }, confirmationModeUnavailableNote: "Slot confirmation is unavailable with multi-select slots", confirmationQuestion: "Confirmation Question", confirmationQuestionDescription: "Wording the bot will use to confirm the value supplied by the participant is correct. To access the value supplied by the participant in an expression, use the Slot. variable associated with the slot configured on this action.", confirmationQuestionDoesNotReferenceSlotVariable: "The slot confirmation question does not reference the slot variable '%1$s' which will hold the value the bot received. Typically, a bot will want to use the received slot value when confirming it with the participant.", confirmationModeNeverWithRangeValuesWarning: "'%1$s' has predefined values, and confirmation mode is set to 'Never'. Set to 'Always' to allow user correction on invalid inputs.", noSlotsAvailable: "No Slots Available", selectedSlotError: "There is no slot with the name '%1$s' in the Natural Language Understanding configuration.", selectSlot: "Select a Slot", slotName: "Slot", slotResult: "Slot Result", slotResultDescription: "The variable that holds the selected slot value. If already set, the bot will not ask for a value and execution will go to the next action.", noSlotSelected: "There is no slot selected.", verifyGroupingLabel: "Verification", continuationPromptGroupingLabel: "Continuation Prompt", repromptHandling: "Re-Prompt Handling", repromptHandlingOptions: { repromptHandlingOptionAIManaged: "AI managed", repromptHandlingOptionManuallyManaged: "Manual" }, continuationPrompt: "Prompt", continuationPromptDoesNotReferenceSlotVariable: "The continuation prompt does not reference the slot variable '%1$s' which will hold the value the bot received. Typically, a bot will want to use the received slot value on the continuation prompt.", tooManySkipChoicesError: "Cannot have more than one choice with command 'skip'. Found %1$s skip choices.", timePicker: "Time Picker" }, audio: { actionNotValidError: "Action (or action with current settings) not available for '%1$s' because that language does not support runtime data playback, which is required for '%2$s'", add: "Add", addAudio: "Add Audio", addBlank: "Add Blank Audio", addText: "Add Text", addTTS: "Add TTS", addData: "Add Data", addExpression: "Add Expression", addOther: "Add Other", addPrompt: "Add Prompt", addPromptToBegin: "Add a prompt to begin", addTitle: "Add new prompt", advancedAudioInUseSingle: "1 audio sequence is set", advancedAudioInError: "1 or more audio sequences are in error", advancedAudioInUse: "%1$s audio sequences are set", alternateSequences: "Alternate sequences", addAlternateSequence: "Add Alternate Sequence", enableAlternateSequence: "Enable alternate sequence for '%1$s'", disableAlternateSequence: "Disable alternate sequence", audioLabel: "Audio", audioSequenceTitle: "Audio Sequence", audioSequenceDropDownLabel: "Audio Sequence Editor", bargeInExpressionLabel: "Enable Barge-in", bargeInExpressionTooltip: "The Barge-in checkbox does not affect an audio sequence in custom expression mode. Use the AudioPlaybackOptions function in custom expression text to control barge behavior if needed.", blankAudioExpression: "Audio may not be blank", blankMainSeqError: "All alternate sequences must be enabled or main sequence must have items added", blankMainSeqWarning: "The main sequence has no sequence items defined", blankMainSeqWarningContext: "The main sequence for '%1$s' has no audio set", blankTTSWarning: "No text to speech value", browserPermission: "Please accept the request at the top of the browser to use the microphone.", browserPermissionDenied: "You must grant this site permissions to be able to record audio.", browserRecordingNotSupported: "Audio recording is not supported in this environment.", bulkImportInputLabel: "Audio wav files and CSV mapping file", bulkImportInputLabelNoAudio: "CSV file", bulkImportAudioInputLabel: "Audio wav files", bulkImportErrorTitle: "Import Error", bulkImportFail: "Failed to process the files for importing", bulkImportCsvMissingFieldOne: "The import CSV file is missing the required field '%1$s'", bulkImportParseError: "Failed with the following error:
%1$s", bulkImportParseError2: "Failed with the following errors:
%1$s", bulkImportTitle: "Import audio", bulkImportAudioTitle: "Add additional audio wav files", bulkImportWatermark: "Select files", cantPreview: "Audio file cannot be previewed", customAudioExpressionInUse: "Custom audio expression is set", customExpressionSwitch: "Switch to custom expression", defaultAudio: "Main Sequence", deleteButton: "Delete", deleteConfirmMultiple: "Are you sure you want to delete the %1$s selected prompts and their resources?", deleteConfirmSingle: 'Are you sure you want to delete the selected prompt named "%1$s" and its resources?', deleteTitle: "Delete selected prompts", downloadRecording: "Download recording", durationFormatLong: "%1$s seconds", editTitle: "Edit selected prompt", ensureAudioInPrompts: "Ensure all prompts have recorded audio", ensureAudioOrTTSInPrompts: "Ensure all prompts have recorded audio or text to speech", doNotValidateAudioMedia: "Do not validate prompt media", validatePromptLanguageMediaLabel: "Media Validation", enterTtsOrPrompt: "Enter text to speech or prompt", errorNoBlankAudioLength: "No blank audio duration selected", errorNoPrompt: "No prompt selected", errorNoVariable: "No variable selected", errorPromptCouldNotBeFound: "%1$s could not be found", errorInvalidVariable: "Invalid variable selected", errorMaxTtsLength: "The string length is %1$s characters, which exceeds the maximum allowed of %2$s for the text to speech engine '%3$s'.", errorMaxTtsLengthForPrompt: "The string length in the text to speech string on prompt '%1$s' (%2$s) is %3$s, which exceeds the maximum allowed of %4$s for the text to speech engine '%5$s'.", errorNoAudioPlaybackSupport: "Audio data playback is not supported for language %1$s", errorNoLanguageGenderSupport: "Language %1$s does not support gender playback options", errorNoLanguageCaseSupport: "Language %1$s does not support case playback options", errorNoTTSSupport: "Text to speech is not supported for language %1$s", errorNotValidTTS: "Language %1$s does not have a valid text to speech engine selected.", errorCommonModuleTTS: "Common Module '%1$s' uses text to speech in one or more languages that are disabled in this flow. Please assign text to speech engines to these languages in Supported Languages.", errorNoDataOptions: "No data playback options selected", failedToCreatePrompt: "Failed to create the prompt", failedToSavePrompt: "Failed to save the prompt", flushAudio: "Flush Audio", importTitle: "Import CSV data", languageButton: "Languages", languageColumns: "Visible Language Columns", languageColumnsWatermark: "Enter languages to display in grid", loadFailed: "Failed to load prompts", loadingPrompts: "Loading Prompts...", mainSequenceNote: "This sequence will never run because alternate sequences for each language are defined.", maxLanguagesSelected: "Maximum number of languages selected", multipleFileUploadContext: "Uploading %1$s files", nameError: "Prompt names can only contain letters, numbers, and underscores. They must start with a letter.", noPromptRecordedSystem: "There is no audio recorded for the system prompt '%1$s' in %2$s", noPromptRecordedUser: "There is no audio recorded for the user prompt '%1$s' in %2$s", previewHelpTooltip: "Click here if you are having trouble previewing audio", processingAudio: "Processing audio...", prompts: "Prompts", promptBeingUploadedSystem: "The system prompt '%1$s' is busy processing an upload for %2$s", promptBeingUploadedUser: "The user prompt '%1$s' is busy processing an upload for %2$s", promptTypeTooltip: "Prompt Type", promptMissingRequiredAudioError: "'%1$s' does not have audio for a language that does not support text to speech", promptNoAudioPopupError: "Missing supported language audio", promptMissingAudioError: "'%1$s' does not have audio for at least one supported language", promptNoAudioTtsError: "'%1$s' does not have audio or text to speech for at least one supported language", promptNoAudioTtsComplexError: "One or more prompts do not have audio or text to speech for at least one supported language", promptNoTtsOrTextError: "'%1$s' does not have text to speech or text specified for at least one supported language", promptSystem: "System Prompt", promptUser: "User Prompt", recordAudio: "Record Audio", recordStationLabel: "For station recording, receive call at:", recordTimer: "%1$s seconds", refreshNoPrompts: "There are no prompts", refreshNoResults: "There are no matching prompts", resetForLanguage: "Erase and reset sequence for this language", search: "Search prompts", selectMultipleFiles: "Select the CSV file and all audio files referenced in the CSV. Use the Control key when clicking (or the Command key in macOS) to select multiple files.

Audio files located in different folders can be added on the next screen if needed.", sequenceError: "Error in sequence item %1$s for %2$s", sequenceWarn: "Warning in sequence item %1$s for %2$s", sequenceMode: "Switch to sequence builder", sequenceOptions: "Sequence Options", sequenceTypeBlankLabel: "Blank", sequenceTypeBlankWatermark: "Select blank duration", sequenceTypeDataLabel: "Data", sequenceTypeDataWatermark: "Select variable", sequenceTypeDataOptionsWatermark: "Select Options", sequenceTypeExpressionLabel: "Expression", sequenceTypePromptLabel: "Prompt", sequenceTypePromptWatermark: "Select a prompt", sequenceTypeVoiceSnippetLabel: "Voice Snippet", sequenceTypeTtsLabel: "Text To Speech", sequenceTypeTtsWatermark: "Enter text to speech", sequenceWillNotPlay: "Will not play", startRecord: "Start Recording", stopRecord: "Stop Recording", switchToBuilderTitle: "Sequence Builder", switchToBuilderLosesChanges: "Switching to the sequence builder will discard any changes made in the custom expression.", tts: "TTS", ttsText: "TTS/Text", ttsConvertPopupText: "Create prompt from text to speech", transcodeFailed: "Server failed to process the upload for %1$s. Please try a different audio file and note that MP3 formatted files are not supported for audio upload.", typeNotRecognizedError: "Sequence item type not supported.", unavailableAudioOption: "Audio data option is unavailable because it requires a feature that is not available.", unavailableAudioOptionContext: "The option '%1$s' is unavailable because it requires a feature that is not available.", uploadLabel: "Audio file to import", uploadTitle: "Upload Audio", uploadWatermark: "Select audio file to import", warningAddNewSequenceItem: "Use the toolbar to add a new sequence item. Language sequences with no items will revert to the main sequence." }, audioFormats: { boolTrueFalse: "True / False", dateAndTime: "Date and time", durationExact: "Exact", durationExactDesc: "Exact value of the duration, no rounding", durationRoundUp: "Round Up", durationRoundUpDesc: "Round up to next 30 seconds, 1 minute, 2 minutes, 5 minutes or subsequent 5 minute intervals", durationRoundUp1: "Round Up (1 minute)", durationRoundUp1Desc: "Round up to the next 1 minute interval", durationRoundUp5: "Round Up (5 minutes)", durationRoundUp5Desc: "Round up to the next 5 minute interval", durationRoundUp10: "Round Up (10 minutes)", durationRoundUp10Desc: "Round up to the next 10 minute interval", durationRoundUp30: "Round Up (30 minutes)", durationRoundUp30Desc: "Round up to the next 30 minute interval", durationRoundUp60: "Round Up (1 hour)", durationRoundUp60Desc: "Round up to the next 1 hour interval", ordinal: "As ordinal", phoneNumberLocal: "Play as local", phoneNumberGlobal: "Play as global", phoneNumberAuto: "Play local for dialing code", phoneNumberLocalDesc: "Plays phone number in its local format", phoneNumberGlobalDesc: "Plays phone number in its global format", phoneNumberAutoDesc: "Plays phone number in local format if it matches the dialing code, otherwise global", percentage: "As percentage", percentage1: "As percentage, 1 decimal place", percentage2: "As percentage, 2 decimal places", playJsonData: "Play JSON data", precision0: "To 0 decimal places", precision1: "To 1 decimal place", precision2: "To 2 decimal places", precision3: "To 3 decimal places", precision4: "To 4 decimal places", precision5: "To 5 decimal places", precision6: "To 6 decimal places", precision7: "To 7 decimal places", precision8: "To 8 decimal places", stringPhoneNumber: "As phone number", stringTTS: "Text to speech", time: "Time", timeDesc: "Audio expressing time appropriate for the active language and region", wholeValue: "Entire value" }, audioMonitoringAction: { enableMonitoring: "Enable Monitoring", enableMonitoringDescription: "If true, audio monitoring will be enabled. If false or a NOT_SET Boolean, audio monitoring will be disabled." }, boolean: { disabled: "Disabled", enabled: "Enabled", true: "True", false: "False" }, bot: { followupResponseTimeoutLabel: "Follow-up Response Timeout", followupResponseTimeoutDescription: "If the bot needs to ask for follow-up information, this is how long to wait for the end user to send a reply. A NOT_SET, negative or 0 second Duration will be treated as immediate.", informationCouldNotBeLoaded: "There was an error loading bot information.", internalErrReferenceId: "There was an error retrieving the latest information about the selected %1$s. Please try validating again in a few minutes.", languageWarning: "The flow has supported languages that are unsupported by the selected %1$s, which supports %2$s. The Failure output will be taken if the flow is executing in a language not supported by the %1$s.", naturalLanguageUnderstanding: "Natural Language Understanding", insightsOptimizations: "Insights and Optimizations", nluConfigurationUnavailable: "Unable to obtain the Natural Language Understanding configuration data for the bot.", nluTrainingFailed: "Training failed for updates made to the Natural Language Understanding configuration. Please verify the Natural Language Understanding configuration is correct and retry the flow operation again.", noSupportedLanguages: "There are no Architect-supported languages configured on the selected %1$s.", sameNamedSlotsWithDifferentSlotTypes: "There are slots with matching names but different slot types in this bot flow's Natural Language Understanding configuration. Please change these slots to have unique names, as they will cause issues with auto-generated slot variables. Affected slot name is %1$s.", sameNamedSlotsWithDifferentSlotTypesMultiple: "There are slots with matching names but different slot types in this bot flow's Natural Language Understanding configuration. Please change these slots to have unique names, as they will cause issues with auto-generated slot variables. Affected slot names are %1$s.", unsupportedAISlotTypeError: "AI slot types are only available in Virtual Agent enabled flows.", whitespacePresentInSlotTypeValue: "The slot type list value of '%1$s' in '%2$s' contains leading or trailing whitespace. This may result in voice recognition failures during runtime." }, cannedResponses: { cannedResponseTypeFormDescription: "A form is a canned response whose response type is form.", cannedResponseTypeMessageTemplateDescription: "A message template is a canned response whose response type is message template." }, digitalBot: { intentNotMappedToTask: "One or more intent in this flow's '{{settings.__NATURAL_LANGUAGE_UNDERSTANDING__}}' configuration are not mapped to a reusable task.", intentMappedToInvalidTask: "One or more intent in this flow's '{{settings.__NATURAL_LANGUAGE_UNDERSTANDING__}}' configuration are mapped to a reusable task that does not exist." }, digitalBotConnector: { followupResponseTimeoutDescription: "If the bot needs to ask for follow up information, this will set the duration for how long to wait for the end user to send a reply. Examples of errors for timeout include submitting a NOT_SET, zero or negative duration." }, choice: { choiceButtonDuplicateNameError: "A button with name '%1$s' already exists", choiceButtonNoNameError: "Button %1$s does not have a name", choiceMenuLabelDescription: "If specified, the label supplies the text to use for the menu choice at flow runtime. For flows that support more than one language, the label setting should be used to supply localized text for the choice. If not specified or the calculated String value for the label setting is a NOT_SET or blank string, the button text will be used.", choiceMenuLabelLabel: "Label" }, integration: { name: "Integration" }, botConnector: { addSessionVariable: "Add Session Variable", botVersionNotFound: "The selected bot version could not be found.", digitalBotVersionNotFound: "The selected digital bot version could not be found.", botIntegration: "Bot Integration", digitalBotIntegration: "Digital Bot Integration", botVersion: "Bot Version", digitalBotVersion: "Digital Bot Version", botName: "Bot Name", digitalBotName: "Digital Bot Name", intents: "Intents", botConnectorIntegration: "Bot Connector Integration", botConnectorVersion: "Bot Connector Version", botConnector: "Bot Connector", digitalBotConnector: "Digital Bot Connector", digitalBotConnectorIntegration: "Digital Bot Connector Integration", digitalBotConnectorVersion: "Digital Bot Connector Version", botResponseTimeoutLabel: "Bot Response Timeout", botResponseTimeoutDescription: "The time allowed for a third-party bot to respond to webhook calls. Examples of errors for timeout include submitting a NOT_SET, zero or negative duration.", sessionTimeoutLabel: "Session Timeout", sessionTimeoutDescription: "Once the conversation is started, this is how long a conversation can remain open. Examples of errors for timeout include submitting a NOT_SET, zero or negative duration.", timeoutSettingsLabel: "Timeout settings", mustSelectBotIntegration: "A bot integration must be selected.", mustSelectDigitalBotIntegration: "A digital bot integration must be selected.", mustSelectBotName: "A bot name must be selected.", mustSelectDigitalBotName: "A digital bot name must be selected.", mustSelectBotVersion: "A bot version must be selected.", mustSelectDigitalBotVersion: "A digital bot version must be selected.", noSlots: "There are no slots defined for this intent.", savedVersionOfBotVersion: "Flow is referencing a cached version of this bot version. The bot version may be out of date or deleted.", secondaryHeaderForVersion: "(Version %1$s)", selectBotIntegration: "Select Bot Integration", selectDigitalBotIntegration: "Select Digital Bot Integration", selectBotName: "Select Bot Name", selectDigitalBotName: "Select Digital Bot Name", selectBotVersion: "Select Bot Version", selectDigitalBotVersion: "Select Digital Bot Version", sessionVariable: "Session Variable", sessionVariables: "Session Variables", unableToRetrieveBotIntegration: "Was unable to retrieve bot integration for selected bot.", unableToRetrieveBot: "Was unable to retrieve bot for selected version.", botIntegrationNotFound: "Selected bot integration could not be found", digitalBotIntegrationNotFound: "Selected digital bot integration could not be found", botNameNotFound: "Selected bot name could not be found", digitalBotNameNotFound: "Selected digital bot name could not be found", inputTextLabel: "Bot Input Text", inputTextDescription: "The text to send to the bot.", inputTextDescriptionForChat: "The text to send to the bot. This is usually only set when chaining bot actions." }, botGeneric: { botAddSessionVariableLabel: "Add Session Variable", botIntegrationLabel: "Bot Integration", botIntentsLabel: "Intents", botNameLabel: "Bot Name", selectedBotNameNotFound: "The selected bot name could not be found.", botVariablesLabel: "Bot Variables", botVariablesDescription: "Variables able to be used in the bot.", botVersionLabel: "Bot Version", botVersionNotFoundGeneric: "The selected bot version could not be found.", flowReferencingSavedVersionOfBot: "Flow is referencing a cached version of this bot. The bot may be out of date or deleted.", inputTextLabelGeneric: "Bot Input Text", inputTextDescriptionGeneric: "The text to send to the bot.", inputTextDescriptionForChat: "The text to send to the bot. This is usually only set when chaining bot actions.", mustSelectBotNameGeneric: "A bot name must be selected.", mustSelectBotVersion: "A bot version must be selected.", noSlotsForIntent: "There are no slots defined for this intent.", noBotVariables: "There are no bot variables defined for this bot.", selectedBotIntegrationNotFound: "The selected bot integration could not be found.", selectBotNameLabel: "Select Bot Name", selectBotVersionLabel: "Select Bot Version", sessionVariableLabel: "Session Variable", sessionVariablesLabel: "Session Variables", unableToRetrieveSelectedBotIntegration: "Unable to retrieve the bot integration for the selected bot.", unableToRetrieveSelectedBot: "Unable to retrieve the selected bot." }, nuanceMix: { channel: "Channel", channelDescription: "The channel type to pass to the Nuance bot, which can specialize parts of the bot's behavior", channelNotFound: "The selected channel could not be found.", noChannelsAvailable: "None of channels on the selected bot are available for this flow.", selectedChannelNotValid: "The '%1$s' channel exists on the selected bot, but is unavailable for this flow.", nuanceMixBot: "Nuance Mix Bot", nuanceMixIntegration: "Nuance Mix Integration", mustSelectNuanceMixBotIntegration: "A Nuance Mix integration must be selected.", externalDataTypeLabel: "Name: %1$s", externalComplexDataTypeLabel: "Object", externalDataTypeTitle: "Nuance Data Type", selectNuanceMixBotIntegration: "Select Nuance Mix Integration" }, blankAudio: { msContext: "%1$s ms", oneSecond: "1 second", secondsContext: "%1$s seconds", blankAudioLabel: "blank: %1$s" }, bridgeServer: { action: "Action", actionNotFound: "The selected Bridge action could not be found.", actionSchemasError: "Action success, failure, or output information could not be loaded.", category: "Category", bridgeAction: "Bridge Action", mustSelectAction: "A Bridge action must be selected.", noActionsAvailable: "There are no Architect compatible Bridge actions available to this user.", noHelpLink: "There is no help link defined for this Bridge action.", processingPrompt: "Processing Prompt", savedVersionOfAction: "Flow is referencing a cached version of this Bridge action. The action may be out of date or deleted.", selectAction: "Select an action", selectCategory: "Select a category", timeout: "Timeout", timeoutOfZero: "Timeout must be greater than zero", useSuggestedTimeout: "Use action's suggested timeout" }, callAudioConnector: { audioConnectorIntegrationDescription: "The audio connector integration to be used for this action.", connectorId: "Connector ID", mustSelectAudioConnectorIntegration: "An Audio Connector integration must be selected.", selectAudioConnectorIntegration: "Select Audio Connector Integration", audioConnectorType: "Audio Connector" }, callBotFlowAction: { configuredIntentValues: "Configured Intent Values", executionResults: "Execution Results", exitReason: "Exit Reason", exitReasonDescription: "Indicates what caused the Bot Flow to exit. See the Call Bot Flow action help for more details on exit reason string values.", exitReasonExamplesTitle: "Example Exit Reason Values", intent: "Intent", intentDescription: "The intent returned from the Bot flow invocation at runtime. If no intent is detected, the variable bound in the Intent setting will be set to a NOT_SET String at runtime.", intentsNone: "None", inputTextLabel: "Bot Input Text", inputTextDescription: "Supplies an initial utterance to the bot that will be processed by the first Ask action executed in the bot flow.", languageChangeWarningImmediate: "Runtime language changes made by the %1$s to a supported language of this flow will be reflected immediately.", languageChangeWarningCommonModule: "Runtime language changes made by the %1$s to a supported language of this common module will be reflected immediately or at the end of the common module task if called by a call flow.", languageChangeWarningTaskEnd: "Runtime language changes made by the %1$s to a supported language of this flow will be reflected when the task ends.", callBotFlowInfo: "All subsequent Bot Flows called will inherit settings from the initial Bot Flow.", callDigitalBotFlowInfo: "All subsequent Digital Bot Flows called will inherit settings from the initial Digital Bot Flow." }, cardsAndCars: { askForSlotChooserLabel: "Slot Value Presentation", askForSlotChooserDescription: "Specify how to present slot value choices to the participant here.", addButtonLabel: "Button", alternativeLabelAdd: "Add alternative label", alternativeLabelRemove: "Remove alternative label", buttonTitlePlaceholder: "Title", cardLabel: "Card", carouselLabel: "Carousel", choiceLabelNoName: "", choicePostbackLabel: "Postback", choiceTypeLabel: "Button Action", choiceUrlLabel: "Open URL", choiceUrlValue: "URL Value", chooserNluDiffsUpdate: "Update", chooserNluDiffsWarning: "One or more slot type values for the selected slot are not reflected below.", chooserConfirmDisplayMode: "With three or fewer buttons, two display options are available.", chooserConfirmDisplayMode2: "Choose an option", chooserSingleCard: "Assign all buttons to one card", chooserMultipleCards: "Assign one button per card", choiceNoUrlValue: "", choiceNoSlotTypeValue: "", choiceNoPostbackValue: "", choiceFromSlotTypeValue: "From slot type value", choiceUsingSlotTypeValue: "Using the slot type value label.", choiceLabelIsSameAsValue: "Label is the same as the value", choiceRemainingSingular: "1 button remaining", choicesRemainingPlural: "%1$s buttons remaining", collectionEmptyCarouselLabel: "Add cards to your carousel", collectionEmptyCarouselDesc: "Cards can include images, titles and descriptions to offer a richer visual experience.", collectionCreateFirstMessage: "Create your first '%1$s'", collectionEmptyMessage: "No items in collection", digitalMenuChooserLabel: "Choices", digitalMenuChooserDescription: "Specify menu choices to offer the participant and how to present them here.", dynamicSlotTypeQuickReplies: "For a dynamic list slot type, there is nothing additional to configure when presenting the list choices as quick replies.", duplicatePostbackValue: "The postback value '%1$s' is a duplicate.", knowledgeSearchResultLabel: "Knowledge Search Results", knowledgeSearchResultDescription: "The variable that holds the collection of KnowledgeBaseDocument objects matched in the search that occurs at this action. If '{{knowledgeSettingsMode.__STANDARD__}}' knowledge handling is selected then the search results collection will only ever contain the article shown to the user. If '{{knowledgeSettingsMode.__CUSTOM__}}' knowledge handling is selected then the results collection may contain multiple articles that strongly match the search.", noRichMedia: "No rich media", noRichMediaNoSlotSelected: "Rich media presentation options are not available because no slot is selected.", noRichMediaSlotTypeNotList: "Rich media presentation options are not available because the selected slot is not a list or dynamic list.", noRichMediaTooManyChoices: "Rich media presentation options are not available because the selected slot has more than %1$s slot type values.", quickRepliesLabel: "Quick Replies", quickReplyLabel: "Quick Reply", selectionResultLabel: "Selection Result", selectionResultDescription: "The variable that holds the value of the menu choice chosen by the participant. If no choice is selected by the participant, the variable value will be left alone.", skipResponseCarouselDisabled: "Skip Response is disabled because the Carousel limit has been reached", skipResponseDisabled: "Skip Response is disabled because the Quick Reply limit has been reached", switchPresentation: "Switch Presentation", expression: { chooserInvalidChoiceCountForSlotType: "The number of choices is not enough to match the number of values configured in the slot type '%1$s'.", chooserInvalidListItemCountForSlotType: "The number of list items is not enough to match the number of values configured in the slot type '%1$s'.", chooserNoChoicesConfiguredForSlotTypeValues: "There are no choices configured for the '%1$s' slot type value(s) %2$s.", chooserNoListItemsConfiguredForSlotTypeValues: "There are no list items configured for the '%1$s' slot type value(s) %2$s.", chooserInvalidChoiceValueForSlotType: "The choice with value '%1$s' is not a valid value for the slot type '%2$s'.", chooserInvalidListItemValueForSlotType: "The list item with value '%1$s' is not a valid value for the slot type '%2$s'.", chooserInvalidChoiceValueForSlotTypeExpressionMode: "The choice using expression mode with the literal value '%1$s' is not a valid value for the slot type '%2$s'.", chooserInvalidListItemValueForSlotTypeExpressionMode: "The list item using expression mode with the literal value '%1$s' is not a valid value for the slot type '%2$s'.", chooserMultipleChoicesForSlotTypeValue: "There is more than one choice for the slot type value '%1$s'.", chooserSlotTypeNotListOrDynamicListType: "The slot type '%1$s' is not a list or dynamic list type.", chooserSlotTypeNameIsNotValid: "The slot type '%1$s' is not valid.", chooserNoSlotTypeConfiguredForSlot: "There is no slot type configured for the slot '%1$s'.", chooserInvalidSlotName: "The slot '%1$s' is not valid.", chooserPresentationModeNotAllowedWithMismatchSlotType: "The presentation mode '%1$s' is not permitted for the selected slot type." }, cardType: { label: "Card", noDescription: "No Description", noDescriptionRuntimeEvaluationStr: "No Card Description", noImage: "No Image", noImageRuntimeEvaluationStr: "No Card Image", noTitle: "No Title", noTitleRuntimeEvaluationStr: "No Card Title" }, carouselType: { defaultCardTitle: "Title %1$s" }, choiceType: { choiceInQuickReplyMustBePostback: "The choice type '%1$s' is not valid when used in a QuickReplies value." }, timePickerType: { noImage: "No Image", noImageRuntimeEvaluationStr: "No Time Picker Image", noTitleRuntimeEvaluationStr: "No Time Picker Title", subtitlePlaceHolder: "Subtitle", addressPlaceHolder: "Address", longitudePlaceHolder: "Longitude", latitudePlaceHolder: "Latitude", noSubtitle: "No Subtitle", noSubtitleRuntimeEvaluationStr: "No Time Picker Subtitle", enableLongLatLabel: "Use Latitude and Longitude", missingPermission: "You are missing the required permissions for autocomplete" }, listPickerType: { addNewSectionTooltip: "Add a new section", emptyListPickerSectionLine1: "This section is empty.", emptyListPickerSectionLine2: "To add items, move them from another section.", listPicker: "List Picker", missingValuesSectionLabel: "Missing Values", moveItemsFromAnotherSectionButtonTooltip: "Move items from another section", receivedMessageLabel: "Received Message", receivedMessageButtonTextLabel: "Button Text", replyMessageLabel: "Reply Message", replyMessageTitle: "List selections are displayed here", replyMessageDescription: "Reply Message for the list picker.", searchSlotValues: "Search slot values", disabledMultiselectToggleTooltip: "Not available because selected slot capture is set to single value", invalidMultipleSectionsWarning: "At runtime, multiple sections for slots that are set to single value capture will be ignored.", invalidMultipleSectionsWarningMessage: "At runtime, multiple sections for slots that are set to single value capture will be ignored in %1$s conversations. %2$s conversations support multiple sections for single-value slots.", invalidNluValue: "This item is no longer a valid slot type value." } }, categories: { customerSecuredData: "Customer Secured Data", find: "Find", flow: "Flow", journey: "Journey" }, clearSlot: { addSlot: "Add Slot", clearSlotTitle: "Clear Slot", specifiedMoreThanOnce: "The slot '%1$s' is specified more than once.", mustSpecifySlot: "You must specify a slot.", noSlotsToClearWarning: "There are no slots specified to clear.", slotToClear: "Slot to Clear", slotsLabel: "Slots", noSlotsDefined: "No Slots defined" }, communicate: { communication: "Communication" }, clipboard: { content: { canPaste: { downConvert: { menuChoice: { toAction: "If pasted to this location, the action from the action menu will be pasted.", toReusableMenu: "If pasted to this location, the menu from the sub-menu will be pasted as a reusable menu.", toReusableTask: "If pasted to this location, the task from the task menu will be pasted as a reusable task." } }, upConvert: { action: { toMenuChoice: "If pasted to this location, an action menu will be created for this action.", toReusableTask: "If pasted to this location, a reusable task will be created that contains this action.", toState: "If pasted to this location, a state will be created that contains this action." }, menu: { toMenuChoice: "If pasted to this location, the menu will be pasted as a sub-menu." }, task: { toMenuChoice: "If pasted to this location, a task menu will be created that contains this task." } } }, notSupportedByFlowType: { action: "This contains an action of type '%1$s' which cannot be pasted to flows of type '%2$s'.", dataTypeKnown: "This uses a data type of '%1$s' which cannot be used in flows of type '%2$s'.", dataTypeUnknown: "This contains a data type which cannot be used in flows of type '%1$s'.", menuChoiceAction: "This contains an action menu of type '%1$s' which cannot be used in flows of type '%2$s'.", menusOrMenuChoices: "This contains a menu which cannot be pasted to flows of type '%1$s'.", states: "This contains a state which cannot be pasted to flows of type '%1$s'.", tasks: "This contains a task which cannot be pasted to flows of type '%1$s'.", builder: "This contains a '%1$s' which cannot be pasted to flows of type '%2$s'. The builder will be removed and converted to an expression." }, pastableLocations: { cannotPasteActionAsMenuChoiceMoreThanOne: "Unable to paste as an action menu because there is more than one action on the clipboard and menus can only have one action.", cannotPasteGeneric: "Unable to paste to this location.", contentCannotBeActionMenu: "Unable to paste as an action menu because the action is not valid for use as a menu.", destinationHasNoChoices: "This cannot be pasted here because the paste location is not a top level menu, a reusable menu or a sub-menu.", menuChoiceSubMenu: "A sub-menu can only be pasted directly under a top level menu, sub-menu or as a reusable menu.", menuChoiceInlineTask: "A task menu can only be pasted directly under a top level menu, under a sub-menu or as a reusable task.", state: "A state can only be pasted within the States container.", task: "A task can only be pasted directly under a top level menu, under a sub-menu or as a reusable task." }, removalError: "Unable to remove the content from the clipboard object." }, copy: { copyFailed: "The copy operation failed.", copyFailureTitle: "Copy Failed", copyObjectDoesNotBelongToAFlow: "Object cannot be copied because it does not belong to a flow.", copyObjectNotSpecified: "No object specified to copy. Please select something to copy.", onlyCopyActionOrMenuOrStateOrTask: "You can only copy actions, menus, states or tasks.", permissions: { cannotCopyPermissionsGranularAcl: "Unable to copy because you do not have the architect:flow:edit permission in at least one division." } }, cut: { cannotCutFlowNotEditable: "Unable to cut because the flow is not editable.", cannotCutStartUpObject: "Unable to cut the startup object of a flow.", cannotCutPeriodicState: "Unable to cut the periodic state of a flow.", cutObjectDoesNotBelongToAFlow: "Object cannot be cut because it does not belong to a flow.", cutObjectNotSpecified: "No object specified to cut.", cutFailed: "The cut operation failed.", cutFailureTitle: "Cut Failed", onlyCutActionOrMenuOrStateOrTask: "You can only cut actions, menus, states or tasks.", permissions: { cannotCutPermissionsGranularAcl: "Unable to cut because you do not have the architect:flow:edit permission in at least one division." } }, paste: { additionalInfo: { alertMessage: "Additional paste result information available. Click here to open.", clipboardVariableReferenceNotAdded: "Clipboard-Referenced Variable Not Added", clipboardVariableReferenceNotAddedMoreThanOne: "Clipboard-Referenced Variables Not Added", clipboardVariableReference: "Clipboard Reference", createdVariable: "Created Variable", createdVariableMoreThanOne: "Created Variables", infoDependentCreatedVariables: "This shows dependent variables that were created during the paste operation. These are variables that are referenced by but are not part of objects on the clipboard. Since they did not exist where the clipboard was pasted, those variables were automatically created.", infoDependentNotCreatedVariables: "This shows variables that were referenced by objects on the clipboard that did not get created during the paste operation because the variables are no longer referenced by the pasted content.", infoVariableReferenceUpdates: "This shows variable references as they existed in objects on the clipboard and what they changed to when pasted.", modalTitle: "Additional Paste Information", pastedVariableReference: "Pasted Reference", updateVariableReference: "Updated Variable Reference", updateVariableReferenceMoreThanOne: "Updated Variable References" }, flowNotEditableByCurrentUser: "This cannot be pasted because you cannot edit the flow.", flowTypeCouldNotBeDetermined: "This cannot be pasted because the flow type for the paste destination location could not be determined.", noContent: "There is nothing to paste.", noDestFlow: "Unable to paste because the destination flow was either not specified or could not be determined.", pasteFailed: "The paste operation failed.", pasteFailureTitle: "Paste Failure" } }, createCallback: { noInputs: "The selected callback script has no inputs.", calleeName: "Callee Name", callbackNumber: "Callback Number", callbackScriptNotFound: "The selected callback script could not be found.", noQueueNote: "Callback will be placed on the current queue", script: "Script", selectScript: "Select a callback script", selectedScript: "Callback Script", savedVersionOfCallbackScript: "Flow is referencing a cached version of this callback script. The callback script may be out of date or deleted." }, collectionEditor: { titleContext: "Edit '%1$s' collection", itemLabel: "Item", itemsInCollection: "%1$s items in %2$s", itemsInCollectionOne: "1 item in %1$s", addItem: "Add Item" }, collectInput: { allowDigitRange: "Range of digits", dtmfVariable: "Input Data Name", individualDigits: "Individual Digits", inputAudio: "Input Audio", monetary: "Monetary", noVerification: "No Verification", numeric: "Numeric", numberDigitsLabelExact: "Number of Digits", numberDigitsLabelRange: "Range of Digits", numberDigitsChangeExact: "change to exact", numberDigitsChangeRange: "change to range", numberDigitsExact: "Exactly %1$s digits", numberDigitsExactSingular: "Exactly 1 digit", numberDigitsRange: "Any number of digits between %1$s and %2$s, inclusive", terminatingCharacter: "Terminating DTMF", verification: "Verification", noEntryTimeout: "No Entry Timeout", interDigitTimeout: "Inter-Digit Timeout", includeTerminatingDtmfInResultData: "When pressed, include terminating DTMF in input data result", acceptJustStar: "Accept just '*'", acceptJustPound: "Accept just '#'", digitInput: "Numeric Input", otherInput: "Non-Numeric Input" }, commonModule: { actionExecutableOnlyIfEmbeddingFlowIsCallFlow: "This action can only be executed if the common module is called by a call flow.", subsequentActionsExecutableOnlyIfEmbeddingFlowIsCallFlow: "This and all subsequent actions can only be executed if the common module is called by a call flow.", actionNotSupportedForFlowTypes: "The action '%1$s' is not available in flow types: '%2$s'", actionOutputExecutableOnlyIfEmbeddingFlowIsCallFlow: "Flow runtime execution can only take the '%1$s' action output if the common module is called by a call flow.", clickToAddFlowTypes: "Click to add flow types", embeddedFlowNeedsUpdated: "A newer version of common module '%1$s' is available. Validate again to update from v%2$s to v%3$s.", flowTypeNotSupportedValidationError: "Referenced common module not compatible with flow types: %1$s", flowTypeNotSupported: "Not compatible with flow type: %1$s", hardcodedTaskName: "Common Module Task", commonModuleMissingDependencies: "The common module '%1$s' has the following references that have been deleted: [%2$s]. Please open the common module directly, fix, and then republish the common module.", commonModuleInternalError: "The common module '%1$s' has errors that need to be addressed. Please open the common module directly, fix, and then republish the common module.", internalError: "Internal error encountered in common module", languageNotSupportedValidationError: "Referenced common module does not support languages: %1$s", languageNotSupported: "Does not support languages: %1$s", notAvailableInFlowTypes: "This will be ignored in these flow types: %1$s", settingsNodeName: "Common Module Settings", supportedFlowTypes: "Compatible Flow Types", publishedVersionNotAvailable: "A published version of the referenced flow is not available", debugPublishVersionNotAvailable: "A debug version of the referenced flow is not available", commonModuleNotUsableMissingPermission: "The selected common module cannot be used because you do not have the 'architect:flow:view' permission in its division.", mustSelectFlowType: "At least one compatible flow type must be selected", compatibleFlowTypesWarning: "The actions, data types, and other settings available in a common module flow are limited to those available in all of the selected compatible flow types." }, configurations: { queue: "Queue", skill: "ACD Skill", skillsPlural: "ACD Skills" }, contact: { phonePropertyDescription: "'%1$s' phone property from flow contact list", propertyDescription: "'%1$s' property from flow contact list" }, conversationAttribute: { conversationAttributeLabel: "Conversation Attribute", conversationAttributeSchemaLabel: "Conversation Attribute Schema", divisionsForConversationAttributeRecord: "The divisions this conversation attribute belongs to. If the collection is empty, the record is visible to all divisions.", disabledSchemaSelected: "Schema is disabled. Select an active schema to continue.", flowReferencesADisabledSchema: "This flow references a disabled schema. Update all Conversation Attributes actions (GET, CREATE, UPDATE) to use an active schema.", schemaLabel: "Schema", mustSelectSchema: "A schema must be selected.", schemaNotFound: "The selected schema could not be found.", selectSchema: "Select a schema", unableToLoadSchema: "Unable to load the configuration information for the selected schema.", recordId: "Record ID", recordIds: "Record IDs", recordIdDescription: "A unique ID within a conversation consisting of English letters, numbers, hyphens, and underscores. Spaces are not allowed.", recordIdsDescription: "A collection of unique IDs within a conversation consisting of English letters, numbers, hyphens, and underscores. Spaces are not allowed.", invalidRecordId: "Invalid Record ID", recordVersion: "Record Version", recordVersionDescription: "The version of the conversation attribute record.", schemaVersionIdDescription: "The version of the schema associated with the conversation attribute record.", customAttributesDescription: "Holds the custom attribute values as defined by the schema.", resultLabel: "Result" }, currency: { filter: "Search currencies", modalTitle: "Select Currency", useCurrency: "Use Currency" }, customNodes: { actions: "Actions", data: "Data", debugging: "Debugging", dependencies: { label: "Dependencies", none: "There are no dependencies." }, errorHandling: { audio: "Pre-handling audio", errorHandlingDisconnectDescription: "This ends execution of the current flow and disconnects the current interaction.", errorHandlingEndFlow: "End Flow", errorHandlingEndFlowDescription: "This ends execution of the current flow.", errorHandlingContinue: "Keep Chat Open", errorHandlingEndWorkflowDescription: "This ends execution of the current '%1$s' flow.", errorHandlingExitFlowDescription: "This ends execution of the current flow and returns execution to a calling flow if there is one.", errorHandlingEndInQueueStateDescription: "This ends execution of the current state in an In-Queue flow. The flow keeps running so subsequent invocations of the '%1$s' will still happen.", errorHandlingMenuDescription: "Flow execution goes to a specified menu.", errorHandlingQueueDescription: "This ends execution of the current flow and transfers the current interaction to a specified queue.", errorHandlingStateDescription: "Flow execution changes state to a specified state.", errorHandlingTaskDescription: "Flow execution jumps to a specified reusable task.", errorHandlingTypeNotAvailableForFlowType: "The error handling type '%1$s' cannot be used in a flow of type '%2$s'.", handling: "Handling", label: "Error Event", queueTransfer: "Transfer to Queue", changeStateToFlowStartup: "Since the starting state is selected for error event handling, remember that the startup state will be re-executed if a flow error event occurs.", exit: "Exit the Flow" }, eventHandling: { label: "Event Handling", agentEscalation: "Agent Escalation", agentEscalationConfirmation: "Confirmation", enableAgentEscalationLabel: "Enable Agent Escalation", enableAgentEscalationDescription: "This setting enables or disables the bot flow from listening to requests to speak to a human.", subsequentRecognitionFailuresLabel: "Subsequent Recognition Failures", subsequentRecognitionFailuresDescription: "By default, when the recognition failure event occurs and is triggered a second time, the bot will exit the flow. By selecting execute task, the bot will continue to execute the recognition failure task for all subsequent recognition failure events.", subsequentRecognitionFailuresExecuteTask: "Execute Task", eventHandlingAgentEscalationHandoverDescription: "Wording the bot will use when the participant has requested to speak to a human and has said yes to the Agent Escalation Confirmation prompt. Once this wording has been communicated, the Bot will Exit back to the calling flow which invoked this Bot flow.", eventHandlingAgentEscalationConfirmationDescription: "Wording the bot will use when it thinks that the participant has requested to speak to a human. The participant is expected to reply with a yes or no answer.", eventHandlingAgentEscalationHandlingDescription: "Setting 'Exit the Flow' will end the participant's Genesys Cloud conversation and setting 'Jump to Reusable Task' will transfer the flow to a previously configured reusable task.", eventHandlingErrorEventHandlingDescription: "Specifies the bot's behavior when there is an error encountered during the execution of the flow. Examples of such an error include a divide-by-zero error or submitting a NOT_SET value to a function that does not allow it. Setting '%1$s' will end the participant's Genesys Cloud conversation and setting '%2$s' will return control to the flow which invoked this Bot Flow.", eventHandlingErrorEventHandoverDescription: "Wording the bot will use when there is an error encountered during the execution of the flow. Examples of such an error include a divide-by-zero error or submitting a NOT_SET value to a function that does not allow it.", eventHandlingRecognitionFailureHandoverDescription: "Wording the bot will use when the bot asks a question and the participant takes too many attempts to provide a valid answer. This could include too many of any of the following: No Matches, No Inputs, or Confirmation Rejections. Recognition Failures can occur in any '%1$s' or '%2$s' action.", eventHandlingRecognitionFailureHandoverDigitalDescription: "Wording the bot will use when the bot asks a question and the participant takes too many attempts to provide a valid answer. This could include too many of any of the following: No Matches or Confirmation Rejections. Recognition Failures can occur in any '%1$s' or '%2$s' action.", eventHandlingRecognitionFailureHandlingDescription: "Specifies the bot's behavior when it asks a question and the participant takes too many attempts to provide a valid answer. This could include too many of any of the following: No Matches, No Inputs, or Confirmation Rejections. Recognition Failures can occur in any '%1$s' action or in an '%2$s' action. Setting '%3$s' will end the participant's Genesys Cloud conversation, setting '%4$s' will return control to the flow which invoked this Bot Flow.", eventHandlingRecognitionFailureHandlingWithJumpToTaskDescription: "Specifies the bot's behavior when it asks a question and the participant takes too many attempts to provide a valid answer. This could include too many of any of the following: No Matches, No Inputs, or Confirmation Rejections. Recognition Failures can occur in any '%1$s' action or in an '%2$s' action. Setting '%3$s' will end the participant's Genesys Cloud conversation, setting '%4$s' will return control to the flow which invoked this Bot Flow and setting '%5$s' will transfer the flow to a previously configured reusable task.", handover: "Handover", recognitionFailureEvent: "Recognition Failure Event" }, menus: "Menus", resources: "Resources", settings: "Settings", userInputSettings: { title: "User Input" }, botFlowUserInputSettings: { generalUserInputSettings: "General", noMatchesMax: "Maximum Number of No Match Retries", noMatches: "No Match Detected", noMatchApology: "No Match Apology", noInputsMax: "Maximum Number of No Input Retries", noInputsMaxExceeded: "No Input Maximum Retries Exceeded Handling", noInputsMaxExceededDescription: "Specifies the bot's behavior when there has been no input from the external participant after the maximum number of no input retries has been exceeded.", endOfSessionMessage: "End of Bot Chat Message", endOfSessionMessageDescription: "The goodbye message from the bot which is triggered when there has been no input from the external participant after the maximum number of no input retries has been exceeded or the session maximum time has been met.", noInputsTimeout: "Voice No Input Timeout", noInputsDigitalTimeout: "No Input Timeout", noInputs: "No Input Detected", noInputsApology: "No Input Apology", confirmationRejectionsMax: "Maximum Number of Confirmation Rejections", confirmationErrors: "Confirmation Errors", noToConfirmationApology: "Confirmation Rejection Apology", confirmationNoMatchApology: "No Match Confirmation Apology", confirmationNoInputApology: "No Input Confirmation Apology", collectionLowConfidenceThreshold: "Normal Low", collectionHighConfidenceThreshold: "Normal High", confirmationLowConfidenceThreshold: "Confirmation", confidenceThresholds: "Confidence Thresholds", collectionConfidenceThresholdsError: "Collection Low confidence must be lower than or equal to the Collection High confidence.", quickRepliesLabel: "Automatic Quick-Reply Buttons", quickRepliesDescription: "If the setting is true and the bot is interacting with a participant via text, this enables automatic quick reply buttons in Intent and Slot confirmations, Knowledge confirmations, '%1$s', '%2$s' and '%3$s' ( for list slot types ) actions. Otherwise if false or a NOT_SET Boolean, quick reply buttons are not enabled.", userInputSettingNoMatchesMaxDescription: "For the current '%1$s' action, this is the maximum number of times that the bot will allow a retry given an input that is not a valid match. If the number exceeds this maximum then the rules in the flow's Event Handling '%1$s' section will be followed, or if the action has a '%2$s' path then that path will be taken at runtime instead. No Match in both the 'Normal' and 'Confirmation' phases of the '%1$s' action will count towards this maximum.", userInputSettingNoMatchApologyDescription: "Wording the bot will output prior to the current '%1$s' action's '%2$s' Communication whenever the bot receives input from the participant that is not a valid match.", userInputSettingsNoInputsMaxDescription: "For the current '%1$s' action, this is the maximum number of times that the bot will allow a retry given no input (i.e. silence) from the participant. If the number exceeds this maximum then the rules in the flow's Event Handling '%2$s' section will be followed, or if the action has a '%3$s' path then that path will be taken at runtime instead. No Input in both the 'Normal' and 'Confirmation' phases of the '%1$s' action will count towards this maximum.", userInputSettingsNoInputsDigitalMaxDescription: "For the current '%1$s' action, this is the maximum number of times that the bot will re-prompt the participant for input if none is received. If the number exceeds this maximum then the bot will stop prompting and wait for input. No Input in both the 'Normal' and 'Confirmation' phases of the '%1$s' action will count towards this maximum.", userInputSettingsNoInputTimeoutDescription: "Once the current Communication has finished playing, this is the maximum length of time to wait for the participant to start speaking. If no speech is detected within this time then a No Input will be triggered.", userInputSettingsNoInputDigitalTimeoutDescription: "Once the current Communication is sent, this is the maximum length of time to wait for the participant to respond. If no input is received within this time then a No Input will be triggered.", userInputSettingsNoInputsApologyDescription: "This Communication is output prior to the current '%1$s' action's '%2$s' Communication whenever the bot does not receive any input from the participant.", userInputSettingsConfirmationRejectionsMaxDescription: "For the current '%1$s' action, this is the maximum number of times that the bot will allow the participant to say no while the bot is confirming an input. If the number exceeds this maximum then the rules in the flow's Event Handling '%2$s' section will be followed, or if the action has a '%3$s' path then that path will be taken at runtime instead.", userInputSettingsNoToConfirmationApologyDescription: "Wording the bot will output prior to the current '%1$s' action's '%2$s' Communication whenever the participant says no while the bot is confirming the participant's last input.", userSettingsConfirmationNoMatchApologyDescription: "Wording the bot will output prior to the bot repeating the current confirmation question whenever the bot receives input that is neither a yes nor a no during a confirmation.", userSettingsConfirmationNoInputApology: "This Communication is output prior to the bot repeating the current confirmation question whenever the bot does not receive any input during a confirmation.", userSettingsCollectionLowConfidenceThresholdDescription: "The minimum confidence level percentage (score) that an input phrase must receive to avoid a No Match. If the confidence level of an input phrase is above this threshold then the bot will either accept it or confirm it with the participant, depending on the value of the '%1$s' threshold.", userSettingsCollectionHighConfidenceThresholdDescription: "The minimum confidence level percentage (score) that an input phrase must receive to be accepted without triggering a confirmation question.", userSettingsConfirmationLowConfidenceThresholdDescription: "The minimum confidence level percentage (score) that an input phrase must receive to avoid a No Match when the bot is asking a yes or no question. This applies during a confirmation and also in the '%1$s' and '%2$s' actions.", userSettingsSttMaxSpeechTimeout: "Maximum duration of an utterance collected from the user. A duration value less than or equal to 0 ms means no timeout. If a NOT_SET value is supplied, the default value will be used.", userSettingsSttSpeechDetectionSensitivity: "A balance between detecting speech and noise (breathing, etc.). 0 means ignore all noise, 1.0 means interpret all noise as speech. If a NOT_SET value is supplied, the default value will be used.", userSettingsSttSpeechDetectionSensitivityNuanceSupport: "Note: This setting is only supported by Nuance Recognizer as a Service.", voiceBargeInSettingLabel: "Voice Barge-in", voiceBargeInSettingDescription: "Whether or not the external participant should be able to interrupt audio while it is still playing.", automaticSpeechRecognition: "Automatic Speech Recognition", intentClassificationHintingLabel: "Intent Classification Hinting", intentClassificationHintingDescription: "This setting enables or disables whether hints are sent to the speech recognition engine for intent classification. Hints are a set of phrases sent to the engine to provide context and assist with speech recognition." }, botPerformanceReport: { botPerformanceReportTitle: "Bot Performance Report" }, interactionReport: { interactionReportTitle: "Interaction Report" }, surveyPerformanceReport: { surveyPerformanceReportTitle: "Survey Performance Report" }, virtualAgentPerformanceReport: { virtualAgentPerformanceReportTitle: "Virtual Agent Performance Report" }, virtualAgentSettings: { virtualAgentSettingsTitle: "After Contact", virtualAgentSettingsTabs: { virtualAgentSettingsConversationSummary: "Conversation Summary", virtualAgentSettingsWrapUpCodes: "Wrap-up Codes" }, virtualAgentSettingsSummarizeConversationTitle: "Summarize Conversation", virtualAgentSettingsSummarizeConversationDescription: "The Virtual Agent will use AI to summarize the conversation.", assignWrapupCodesTitle: "Automatically assign wrap-up codes", assignWrapupCodesDescription: "AI will assign a wrap-up code when one has not been manually set in the conversation flow.", enabledWrapupCodes: "Enabled wrap-up codes", searchWrapupCodes: "Search name...", wrapupCodeColumns: { name: "Name", description: "Description", division: "Division", error: "Error Message", status: "Status" }, wrapupCodeDivisionAll: "All", wrapupCodeFilterHeader: "Filter", wrapupCodeFilterLabelNone: "None", wrapupCodeFilterLabelEnabled: "Enabled", wrapupCodeFilterLabelErrors: "Errors", wrapupCodeFilterTooltip: "Filter wrap-up codes table", wrapupCodeFilterAppliedTooltip: "Filter applied:", wrapupCodeAssign: "Assign wrap-up code", wrapupCodeUnassign: "Unassign wrap-up code", wrapupCodeErrorRemove: "Clear wrap-up code", wrapupCodeDisabledToggleTooltip: "Wrap-up code has no description", wrapupCodeDisabledToggleTooltipDivision: "Cannot determine if wrap-up code description is set for this division", wrapupCodeNoDescriptionError: "Assigned WrapupCode '%1$s' has no description.", wrapupCodeGridEmptyTitle: "No wrap-up codes available", wrapupCodeGridEmptySubTitle: "Try using different filters", wrapupCodeGridLoadFail: "Failed to load wrap-up codes", wrapupCodeGridMissingPermission: "You do not have permission to view and search wrap-up codes", conversationSummarySettingsTitle: "Custom Summary Configuration", conversationSummarySettingsDescription: "Virtual Agent will use this configuration to generate a custom summary based on its instructions.", conversationSummarySettingsToolTip: "If no custom configuration is selected, the default summary configuration will be used.", conversationSummarySettingsDropdownPlaceholder: "Select a configuration", conversationSummarySettingsButtonToolTip: "Open conversation summary configuration in a new tab", conversationSummarySettingsWorkbenchBanner: "Custom Summary Configurations are managed through {{link.__SUMMARY_WORKBENCH__, AI Studio > Summary workbench}}.", conversationSummarySettingsSupportedLanguagesTableHeader: "Summary Configuration", conversationSummarySettingsDefaultLangPlaceholder: "Manage summary configuration: ", conversationSummarySettingsLangUnavailable: "Custom Summary Configuration is unavailable for this language.", conversationSummarySettingsSummaryNotFound: "The Custom Summary '%1$s' does not exist", conversationSummarySettingsWorkbenchLinkTitle: "AI Studio > Summary workbench" } }, detectIntent: { detectIntent: "Detect Intent", detectedIntent: "Detected Intent" }, detectSilence: { silenceDuration: "Silence Duration", silenceDurationDescription: "Amount of continuous silence to wait for.", timeoutDescription: "Total amount of time to wait for continuous silence before failing and taking the 'Timeout' output." }, dataTable: { dataTable: "Data Table", mustSelectTable: "A data table must be selected.", savedVersionOfAction: "Flow is referencing a cached version of this Data Table. The Data Table may be out of date or deleted.", selectDataTable: "Select a data table", tableNotFound: "The selected Data Table could not be found." }, dataView: { actionsColumn: "Usage", filterVariables: "Search data", nameColumn: "Name", containerNameColumn: "Container", usagesMultiple: "Used in %1$s places", usageReaderTitle: "Consumes the variable", usageWriterTitle: "Sets the variable" }, dateTimeInput: { clearButtonText: "Clear", closeButtonText: "Close", todayButtonText: "Today" }, decisionTable: { decisionTableLabel: "Decision Table", decisionTablePlural: "Decision Tables", mustSelectDecisionTable: "A decision table must be selected.", decisionTableNotFound: "The selected decision table could not be found.", decisionTableDescription: "The decision table that we are querying against.", selectDecisionTable: "Select a decision table", unableToLoadDecisionTableInputOutputSchema: "Unable to load the input / output configuration information for the selected decision table.", decisionTableUsageFeesNote: "Usage fees apply. Learn more about calling Decision Tables in the {{link.__DECISION_TABLE_USAGE_FEES__}} documentation." }, decryptData: { dataToDecryptDescription: "The encrypted String value to decrypt back to a JSON value. Encrypted String values are generated from the '%1$s' action. If a NOT_SET String value or blank String value is supplied to the action at runtime, execution will take the '%2$s' output with an error type reason string value of '%3$s'.", dataToDecryptLabel: "Data To Decrypt", decryptedDataOutputDescription: "The decrypted JSON value from the supplied encrypted String value.", decryptedDataOutputLabel: "Decrypted Data" }, deflect: { smsPhoneNumber: "SMS Phone Number" }, deflectionURL: { serviceTitle: "Service", accountTitle: "Account", accountDisplay: "Enter the associated account name" }, deletePrompt: { title: "Delete Prompt", cancelDelete: "Delete Canceled", cancelDeleteContext: "Canceled after %1$s deletions", cannotDeletePrompt: "Cannot delete a non-user prompt", deleteInProgressMultiple: "Deleting %1$s prompts and their resources", deleteInProgressSingle: "Deleting %1$s prompt and its resources", failedToDeletePrompts: "Failed to delete prompts.", failedToDeletePromptResource: "Failed to delete prompt resource.", failureContextContainer: "Failed when trying to delete %1$s" }, dependencies: { deletedItem: "(Deleted) - %1$s", criteriaLabel: "Search:", statusLabel: "Dependency Database Status", userLabel: "Initiated by %1$s", startDateLabel: "Time Started: %1$s", byMissingResourceShort: "Missing Dependencies", byMissingResourceLong: "Search for missing dependencies", byMissingResourcePlaceholder: "Flows with missing dependencies", byNameShort: "Name", byNameLong: "Search by dependency name", byNamePlaceholder: "Enter name of dependency", findConsumingFlows: "Find consuming flows", flowVersionAll: "All", flowVersionCheckedIn: "Checked In", flowVersionPublished: "Published", flowVersionSelect: "Select flow versions to check", forceRebuild: "Force rebuild", invalidSearchCriteria: "Unable to perform a dependency search with the current values, please change the search criteria.", matchEarliest: "Earliest match is in %1$s", matchLatest: "Latest match is in %1$s", matchPublished: "%1$s is the published version", match: "match", operational: "Operational", querying: "Querying", inProgress: "Rebuilding", needsRebuild: "Needs Rebuild", unknown: "Unknown", partialResults: "Partial results may be shown.", partialResultReason: "The dependency database is rebuilding.", partialResultsNeedsRebuildNonAdmin: "An administrator needs to rebuild the dependency database.", partialResultsNeedsRebuildAdmin: "Rebuild dependency database now.", buildQueued: "Rebuild Queued", rebuildError: "There was an error rebuilding the dependency database. Please try again later.", startSearch: "Enter search criteria above to find flows", selectAgenticVirtualAgent: "Select an agentic virtual agent", selectDataAction: "Select a data action", selectGuide: "Select a guide", selectType: "Select a dependency type", selectScript: "Select a script", selectSecureAction: "Select a secure action", statusError: "There was an error retrieving dependency table info.", unknownItem: "Unknown item", versionsLatestAndPublishedSame: "%1$s (Latest, Published)", versionsDeleted: "%1$s (Deleted)", versionsLatest: "%1$s (Latest)", versionsPublished: "%1$s (Published)", versionsLatestAndPublished: "%1$s (Latest), %2$s (Published)" }, dialExtension: { audioToPlay: "Audio to play to re-prompt the caller", extensionVariable: "Extension Data Name", numReprompts: "Number of times to re-prompt the caller", title: "Dial By Extension" }, dialName: { title: "Dial By Name", matchBy: "Match By", firstName: "First Name", lastName: "Last Name", matchingStyle: "Matching Style", waitForUniqueMatch: "Wait for unique match", useSpecificNumChars: "Use a specific number of characters", numberOfCharacters: "Number of characters" }, duration: { days: "days", hours: "hours", minutes: "minutes", seconds: "seconds", milliseconds: "milliseconds" }, guide: { actionSchemasError: "Version and variables information could not be loaded.", guide: "Guide", guideBillingInfoNote: "For tokens-based pricing details on interactions with Agentic Virtual Agents, see the {{link.__GENESYS_CLOUD_TOKENS_BASED_PRICING_MODEL__, Resource Center}} documentation.", guideVersion: "Guide Version", guideViewPermission: "You do not have permission to view guides.", guideVersionViewPermission: "You do not have permission to view guide version.", mustSelectGuide: "A guide must be selected.", guideNotFound: "The selected guide could not be found.", mustSelectGuideVersion: "A guide version must be selected.", guideVersionNotFound: "The selected guide version could not be found.", openGuideInNewTab: "Open Guide Builder in new tab" }, editPrompt: { audioClearConfirm: "Are you sure you want to delete this audio?", audioRevertConfirm: "Are you sure you want to delete this audio and revert to the system default? Audio for language [%1$s] will be deleted.", automaticForOutputMode: "Automatic", clearRecording: "Clear", create: "Create Prompt", descWatermark: "Enter description for prompt", download: "Download", edit: "Edit Prompt", hideLanguagesButton: "Hide language resources not used by this flow", markedForDelete: "Resource for language [%1$s] marked for delete", markForDelete: "Mark for deletion", noResourceError: "Missing audio or text to speech", noAudioError: "Missing required audio", noOptions: "No audio to preview", noTextLabel: "No text", preview: "Preview", previewAlertError: "Your browser cannot play this audio sample. Would you like to download it?", showLanguagesButton: "Show language resources not used by this flow", resources: "Language Resources", recordStation: "Record from station...", recordBrowser: "Record from browser...", revertAudio: "Revert to default", removeTextPrompt: "Remove text prompt", addTextPrompt: "Add text prompt", textDescription: "The Text value for the prompt.", textLabel: "Text", textWatermark: "Enter text", ttsDescription: "The Text to Speech value for the prompt.", ttsLabel: "Text To Speech", ttsNotSupportedError: "Text to speech playback is not supported in this language", ttsTextCombine: "Combine fields", ttsTextDescription: "The Text To Speech and Text values for the prompt.", ttsTextExpand: "Split fields", ttsTextLabel: "Text To Speech / Text", ttsTextWatermark: "Enter text to speech / text", ttsWatermark: "Enter text to speech", upload: "Upload...", usingDefaultAudio: "Using default audio", view: "View Prompt", watermark: "Enter name for prompt" }, encryptData: { dataToEncryptDescription: "The JSON value to encrypt to a String. If a NOT_SET JSON value is supplied to the action at runtime, execution will take the '%1$s' output with an error type reason string value of '%2$s'. If the encrypted data is over 32000 characters in length, execution will take the '%1$s' output with an error type reason string value of '%3$s'.", dataToEncryptLabel: "Data to Encrypt", encryptedDataOutputDescription: "The encrypted String value from the supplied JSON value.", encryptedDataOutputLabel: "Encrypted Data" }, errorPage: { backupMessage: "A backup version of the flow was saved to local browser storage %1$s. Logging back in will allow you to retrieve it.", errorOccurred: "An error occurred.", generic: "An error occurred while logging in to Genesys Cloud. Please try again.", tryAgain: "Try Again", unauthorizedGranular: "In order to use Architect, your user must have the architect:ui:view permission." }, errors: { actionNotValidHere: "This action cannot be used here.", actionCannotBeInTask: "This action cannot be used in a task.", cachedCouldNotBeFound: "Item could not be found. Flow is referencing a cached version of the item.", cachedItemIsDifferent: "Item is different from the latest version. Flow is referencing a cached version of the item.", cantUploadMp3: "MP3 formatted files are not supported.", collectionError: "One or more items in the collection are in error", descriptionLengthExceeded: "The description entered exceeds the limit of %1$s characters.", duplicateVariableId: "There is an internal error with the variable named '%1$s'. Please delete or recreate it.", duplicateVariableName: "There is more than one variable with the name '%1$s'.", errorNavigatingFlow: "There was an error navigating to the flow.", errorOccurred: "An error occurred", emptyCollectionInvokesErrorHandling: "An empty collection will invoke error handling.", fileTooBig: "File too large, please pick a file under 25MB.", fileTooBigMultiple: "One of the files is too large, please pick files under 25MB.", haltPublish: "The flow cannot be published because of validation errors.", invalidValue: "Invalid value for %1$s", invalidValueWithContext: "Invalid value for '%1$s' in '%2$s'", itemNotFound: "This item could not be found", maxNameLength200: "Maximum length of name is 200 characters", multipleErrors: "The value contains one or more errors", nameContainsInvalidCharacter: "Name cannot contain the character '%1$s'.", nameInUse: "This name is in use elsewhere", noName: "Name can not be empty", noVariableSpecified: "There is no variable specified.", notAvailableError: "This action is not available to be used in %1$s", notFound: "Not found", noUri: "URI can not be empty", ohNoSomethingWentWrong: "Oh no! Something went wrong!", serverError: "An error occurred trying to contact Genesys Cloud.", unableToRetrieveCategory: "Was unable to retrieve category for selected action.", showingPartialErrors: "Only showing the first 20 warnings and errors", transferToUnpublishedFlow: "Transfer will not occur until flow '%1$s' is published.", uniqueName: "Name is in use", unPublishedFlow: "Flow '%1$s' is not published.", unreachableAction: "This action is unreachable", unreachableActionOutOfService: "Unreachable because path is disabled", unusedVariable: "The variable '%1$s' is not used.", validateToRefresh: "Press validate again to refresh list", validateFailed: "Unable to get data necessary to validate the flow.", validateFailedTitle: "Validation failed", errorCount: "Error Count: %1$s", infoCount: "Notes Count: %1$s", warningCount: "Warning Count: %1$s", invalidFlowTypeCombinationError: "The '%1$s' action cannot be used when the compatible flow types configured in the common module include %2$s.", grammarOnSlotError: "Must have a grammar associated with the slot '%1$s' in order to associate a speech to text engine." }, errorSchema: { errorTypeDescription: "A non-empty String that contains the type or category of the error.", errorMessageDescription: "A non-localized error message. The String may be empty or NOT_SET." }, expression: { builderUnavailableFeatureRequirements: "Usage of the '%1$s' builder requires a feature that is not available.", builderUnavailableForFlowType: "The '%1$s' builder is not valid for use in flows of type '%2$s'.", builderPartOrContainerUnavailableFeatureRequirements: "Usage of the '%1$s' part requires a feature that is not available.", builderPartOrContainerUnavailableForFlowType: "The '%1$s' part is not valid for use in flows of type '%2$s'.", builderOrContainerErrorRuntimeOutputBlank: " You need to supply at least one non blank value because blank output at flow runtime for this is not allowed.", cannotConvertInputType: "Cannot convert expression from type %1$s to required type of %2$s.", cannotConvertInputTypeWithFunction: "Cannot convert expression from type %1$s to required type of %2$s with a %3$s function call because the resulting expression would still be in error.", cursorPosition: "Current cursor position", builderModeNotAllowed: "Builder mode is not allowed for this value.", builderInError: "1 or more builder sequences are in error", expressionModeNotAllowed: "Expression mode is not allowed for this value.", literalModeNotAllowed: "Literal mode is not allowed for this value.", noValueModeNotAllowed: "No Value mode is not allowed for this value.", variableModeNotAllowed: "Variable mode is not allowed for this value.", collectionConversionMessage: "The generated %1$s expression will be saved but you will not be able to return to literal mode without resetting the expression.", collectionConversionTitle: "Convert Literal Collection to Expression", collectionItemsMax: "The maximum number of items allowed in a collection is %1$s.", collectionItemsMaxExceeded: "The collection has %1$s items which exceeds the maximum allowed of %2$s.", collectionItemsMaxRecommendedExceeded: "The collection has %1$s items which exceeds the maximum recommended limit of %2$s. Flow runtime behavior may not honor items in excess of this limit.", collectionItemsMinNotExceeded: "The collection has %1$s items which is less than the minimum required of %2$s.", collectionItemsEmpty: "The collection must have at least 1 item", collectionMinLength: "Minimum items: %1$s", collectionMaxLength: "Maximum items: %1$s", contactList: "Contact List", collection: "%1$s Collection", collections: "Collections", currencies: "Currencies", collectionSingular: "Collection", deprecatedVariableName: "The variable name '%1$s' is deprecated. Please use '%2$s' instead.", dataPlaybackNotSupportedForLanguage: "%1$s data playback is not supported for the language %2$s.", decimalValueTooMuchPrecision: "The value %1$s at position %2$s has too much precision. It needs to have %3$s digits or less of precision.", disabledEditorText: "Open large expression editor to edit multiline text.", errorAtPosition: "Error at position %1$s.", editExpressionWithProperty: "Edit '%1$s' expression", editExpression: "Edit expression", editExpressionType: "Type: %1$s", editExpressionFuncOpDescription: "Description: %1$s", expressionIsNotSetType: "The result of this expression text cannot be resolved to a data type. You can try wrapping the expression text with a casting function call to convert it to a data type.", expressionModes: "Expression modes", functionImplementations: "Function Implementations", functionsTooltip: "Functions", openLargeExpressionEditor: "Open large expression editor", literalDropDownValueDoesNotExist: "The %1$s '%2$s' does not exist.", literalDropDownValueIsDeleted: "The %1$s '%2$s' has been deleted.", longitudeSetToNullIsland: "The address has an invalid longitude", latitudeSetToNullIsland: "The address has an invalid latitude", noValue: { selection: { default: "Default", noValue: "No value", useDefault: "Use default", useFlowDefault: "Use flow default" }, selectionRuntimeEvaluation: { connectTimeout: { edgeTrunkTimeout: "Use Edge trunk connect timeout", groupTransferTimeout: "Use target group alert timeout", userTransferTimeout: "Use target user voicemail timeout" }, none: "None", noOverride: "No override", noValueSpecified: "No value specified", noDefaultValueSpecified: "No flow default value specified", noVariableSpecified: "No output value specified", useFlowDefault: "Use flow default", variableInitialValue: { emptyCollection: "Empty collection" } } }, facets: { allowableValue: "Allowable Value", allowableValues: "Allowable Values", example: "Example", examples: "Examples", negativeDuration: "negative %1$s" }, functions: { argumentNumMustBeOfType: "%1$s Expected parameter %2$u to be of type %3$s", argumentMustBeCollection: "The argument at position %1$s supplied to %2$s at position %3$s must be a collection.", funcOpPosPrefix: "'%1$s' at position %2$s :", functionMustBeCalledWithParens: "%1$s Missing parentheses after function name.", genericFunctionErrorTemplate: "%1$s %2$s", implicitCastAdded: "Using '%1$s' to convert expression from %2$s to %3$s.", internalErrCannotResolveToNotSet: "%1$s Internal error: Cannot resolve data type of parameter %2$s at position %3$s from %4$s to NOT_SET.", internalErrMustBeTwoArgsOnAccessor: "Internal error: there must be two args on a '.' function", internalErrSecondArgCannotBeNotSet: "Internal error: second argument to a '.' function cannot be NOT_SET.", maxOperandsExceeded: "%1$s The maximum number of parameters allowed is %2$s.", mustBeSameType: "%1$s Must be passed arguments of the same type. The argument at position %2$s is of type %3$s and the argument at position %4$s is of type %5$s.", mustHaveAtLeastOneNotSetOperand: "%1$s Needs to have at least one parameter that is not the value NOT_SET.", mustBeLastOperation: "%1$s Must be the last operation performed in an expression.", noOverloadNoParm: "%1$s There is no implementation that takes zero parameters.", noOverloadOneParm: "%1$s There is no implementation that accepts a parameter of type %2$s.", noOverloadMoreThanOneParm: "%1$s There is no implementation that accepts parameters of %2$s.", notAvailableInFlowTypeMoreThanOneParm: "%1$s The implementation that takes parameters of %2$s is not valid for use in a flow of type %3$s.", notAvailableInFlowTypeNoParm: "%1$s The implementation that takes no parameters is not valid for use in a flow of type %2$s.", notAvailableInExpression: "The function '%1$s' is not valid at position %2$s for use in this expression.", notAvailableInFlowTypeOneParm: "%1$s The implementation that takes a parameter of type %2$s is not valid for use in a flow of type %3$s.", parameterTextLengthLessThanMin: "%1$s The '%2$s' parameter at position %3$s must be at least 1 character.", parameterTextLengthLessThanMinMoreThanOne: "%1$s The '%2$s' parameter at position %3$s must be at least %4$s characters.", parameterValueGreaterThanMax: "%1$s The value of %2$s supplied to the %3$s parameter at position %4$s is greater than the maximum allowed of %5$s.", parameterValueLessThanMin: "%1$s The value of %2$s supplied to the %3$s parameter at position %4$s is less than the minimum allowed of %5$s.", parameterValueMustBeLiteral: "%1$s The %2$s parameter at position %3$s must be a literal value of type %4$s.", parameterValueMustBeVariable: "%1$s The '%2$s' parameter at position %3$s must be a variable reference.", parameterValueMustBeVariableScope: "%1$s The '%2$s' parameter at position %3$s must be a must be a '%4$s' variable reference.", parameterCannotBeZero: "%1$s The %2$s parameter value of %3$s at position %4$s is not allowed because it is zero.", parameterEnumNotGroupUnique: "%1$s It is not valid to pass %2$s and %3$s as parameter values to the same function call.", parameterLiteralValueNotInProvider: "%1$s The literal %2$s supplied to the %3$s parameter at position %4$s is not a supported %5$s.", parameterLiteralValueNotValid: "%1$s The literal %2$s supplied to the %3$s parameter at position %4$s is not valid. %5$s", parameterTypeDialingCode: "dialing code", parameterTypeTTSEngineLang: "IETF language tag for text to speech playback", parameterTypeCurrencyCode: "ISO 4217 currency code", parameterTypeDigitalChannel: "digital channel", parameterTypeUnknown: "Internal error: unknown", propertyEnumUsageNotSupportedInLanguage: "'%1$s' at position %2$s is not valid for the language %3$s.", propertyEnumUsageNotSupportedInLanguages: "'%1$s' at position %2$s is not valid for the languages in which this expression could be run. They are %3$s.", returnDataTypeAsCollectionNotAvailable: "%1$s The return data type '%2$s' does not support collections.", returnDataTypeCouldNotBeDetermined: "%1$s The return data type cannot be determined.", secondAndThirdArgumentsCannotBeNotSet: "%1$s The second and third arguments cannot both be NOT_SET.", secondAndThirdArgumentsMustBeSameType: "%1$s The second and third arguments must be the same type. The second argument at position %2$s is type %3$s and the third argument at position %4$s is type %5$s.", typeForNotSetOperandCouldNotBeDetermined: "%1$s A type could not be determined for the NOT_SET value passed to the '%2$s' parameter at position %3$s.", unavailableFunctionDueToImplementationToggles: "%1$s Unavailable because all implementations require a feature that is not available.", unavailableOverloadNeedsFeatureToggle: "%1$s Unavailable because this implementation requires a feature that is not available." }, highlightFunction: "Selects the function at the current cursor position", invalidEscape: "Invalid string escape at position %1$s.", invalidInputAtPosition: "Invalid input at character position %1$s.", invalidLiteralContext: "Invalid input for %1$s", internalErrorExpression: "Internal expression error", intValueGreaterThanMax: "The integer value %1$s at position %2$s is greater than the maximum allowed of %3$s", intValueLessThanMin: "The integer value %1$s at position %2$s is less than the minimum allowed of %3$s", label: "Expression", languages: "Languages", literal: "Literal", literalLowerCase: "literal", literals: "Literals", toLiteralModeTooltip: "Editor is in expression mode, click to switch to literal mode.", toVariableModeTooltip: "Editor is in expression mode, click to switch to variable mode.", missingCloseBracketAtPosition: "Missing ] for [ at position %1$s.", missingCloseParenAtPosition: "Missing ) for ( at position %1$s.", missingEndQuoteAtPosition: 'Missing end quote for the " at position %1$s.', missingOpenBracketAtPosition: "Missing [ for ] at position %1$s.", missingOpenParenAtPosition: "Missing ( for ) at position %1$s.", mustBeVariableReference: "The expression must be a variable reference or reference properties of a variable.", mustReferenceVariable: "The expression must reference the '%1$s' variable.", noEditorAvailable: "No editor available", noPropertySpecified: "No property specified to access after . at position %1$s.", noPropertyWithName: "There is no property named '%1$s' for the data type %2$s at position %3$s.", notFuncOrRef: "'%1$s' at position %2$s is not a valid function or variable reference.", notSet: "There is no expression defined", notValidTimeZone: "Not a valid timezone ID.", expressionLengthToLong: "The text length is %1$s characters which exceeds the maximum allowed of %2$s characters.", tooManyNestedCalls: "%1$s The expression call stack is %2$s calls deep which exceeds the maximum allowed of %3$s.", notSetWithContext: "No value set for %1$s", noVariableSet: "There is no variable specified", overloadNotSupportedForLanguage: "%1$s this implementation is not supported for the language %2$s.", overrideModeTrueTooltip: "Click to reset
and use default value from
%1$s", overrideModeFalseTooltip: "Default value comes from
%1$s,
click to override", propAccessBracketNeedsStringLit: "A string literal must be used to access a property with brackets at position %1$s.", audioBlankExpressionTooLong: "The blank audio length is longer than %1$s, the recommended maximum length", promptDurationTooLong: "The audio for '%1$s (%2$s)' is longer than %3$s, the recommended maximum length", resultNote: "Note:", secureCannotBeRead: "Secure variables cannot be used here. You can use the '%1$s' action to unsecure the value from '%2$s' to a non-secure variable.", secureVariableUsageNotAllowed: "The variable '%1$s' is secure and cannot be used here.", expressionToLiteralConversionInvalidMessage: "Switching from expression to literal mode will reset the value. Do you wish to continue?", expressionExamples: "Expression Examples", ttsNotSupportedForFlowType: "%1$s text to speech is not supported in flows of type '%2$s'.", ttsNotSupportedForFlowTypes: "%1$s text to speech is not supported in flows types: %2$s.", ttsEngineNotValidForLanguage: "%1$s a valid text to speech engine is not selected for the language %2$s.", ttsNotSupportedForLanguage: "%1$s text to speech is not supported for the language %2$s.", unavailableDataTypeForFlowTypes: "The data type '%1$s' is not available in flow types: %2$s", unavailableDataType: "The data type '%1$s' requires a feature that is not available.", suggestMakeListForCollectionCreation: "Cannot convert expression from type %1$s to required type of %2$s. You can wrap the expression text in a MakeList call to create a collection of the required type.", unavailableDataTypeWithContext: "The data type '%1$s' requires a feature that is not available for '%2$s'", unavailablePropertyInExprText: "%1$s Unavailable because the property '%2$s' requires a feature that is not available.", unavailableVariableInExprText: "%1$s Unavailable because it requires a feature that is not available.", unavailableVariable: "%1$s is unavailable because it requires a feature that is not available.", variableIsReadOnly: "%1$s is read only.", variableReferenceNotValid: "The variable reference '%1$s' at position %2$s is not valid.", variableReferenceNotValidInvalidType: "%1$s The data type '%2$s' is not available in flow types: %3$s", variableTypeError: "'%1$s' cannot be used here because it is not a variable of type %2$s.", watermarkNoContextAny: "Enter expression", variables: "Variables", variableLowerCase: "variable" }, estimatedWaitTime: { about: "Approximate", aboutExample: "e.g. Your estimated wait time is about five minutes.", exact: "Precise", exactExample: "e.g. Your estimated wait time is four minutes and thirty one seconds.", lessThan: "Less Than", lessThanExample: "e.g. Your estimated wait time is less than five minutes.", range: "Padded", rangeExample: "e.g. Your estimated wait time is four to six minutes.", addSpecificInterval: "Add Specific Round Up Interval", addSpecificIntervalFirst: "Add Specific Round Up Interval", roundingIntervalPadded: "Padding", roundingInterval: "Round Up Interval", specificRoundingIntervals: "Specific Round Up Intervals", specificRoundingIntervalsDesc: "If specified, Architect will round up the estimated wait time to the smallest interval below that is greater than the estimated wait time. Otherwise, Architect will use the Round Up Interval above.", playbackMode: "Playback Mode", estimatedWaitTime: "Estimated Wait Time" }, evaluateSchedules: { evaluationDateTime: "Schedule Evaluation DateTime (UTC)", shortEvaluationDateTimeLabel: "DateTime (UTC)", evaluationType: "Evaluation Type", evaluateNow: "Current", evaluateAtDateTime: "Specific", savedVersionOfEmergencyGroup: "Flow is referencing a cached version of this emergency group. The emergency group may be out of date or deleted.", savedVersionOfSchedule: "Flow is referencing a cached version of this schedule. The schedule may be out of date or deleted.", savedVersionOfScheduleGroup: "Flow is referencing a cached version of this schedule group. The schedule group may be out of date or deleted.", schedule: "Schedule", scheduleEvaluationSettings: "Schedule Evaluation Settings", selectSchedule: "Select a schedule", scheduleNotFound: "The selected schedule '%1$s' could not be found.", mustSelectSchedule: "A schedule must be selected.", emergencyGroup: "Emergency Group", emergencyGroupDescription: "The emergency group to check before evaluating the selected schedule group. If the emergency group is enabled, the action will take the 'Emergency' output path.", selectEmergencyGroup: "Select an emergency group", emergencyGroupNotFound: "The selected emergency group '%1$s' could not be found.", mustSelectEmergencyGroup: "An emergency group must be selected.", scheduleGroup: "Schedule Group", selectScheduleGroup: "Select a schedule group", scheduleGroupNotFound: "The selected schedule group '%1$s' could not be found.", mustSelectScheduleGroup: "A schedule group must be selected.", inServiceSchedules: "Output Active Schedules", inServiceSchedulesDescription: "A list of active schedules.", timeZone: "Time Zone", selectTimeZone: "Please select a time zone", evaluationDateTimeDescription: "The base UTC DateTime used for the schedule evaluation.", timeZoneDescription: "A timezone that supplies an offset to apply to the base UTC DateTime at the time of evaluation" }, expressionsHelp: { additionalInformationTitle: "Additional Information", availability: { title: "Availability", validInAllFlows: "Valid for use in all flow types.", validInOneFlowType: "Valid for use in the %1$s type.", validInMultipleFlowTypes: "Valid for use in %1$s types." }, backToFunctions: "Back to functions", blankAudioForSipPhoneNumber: 'Note: If the supplied PhoneNumber is a "sip:" or "sips:" scheme, blank Audio will be returned.', collectionItemsTitle: "Collection Items", title: "Expression Help", columns: { nameOrSymbol: "Name / Symbol", category: "Category" }, exampleTitle: "Example", examples: { output: "Output" }, examplesTitle: "Examples", expandForLanguages: "Expand for list of supported languages", expandForSpecificRuntimeTypes: "Expand for specific runtime type handling details", function: "Function", implementationTitle: "Implementation", implementationsTitle: "Implementations", newLineInfo: "where \\n is newline", outputExampleFlowLanguageCode: "Note: This assumes the flow's current language is [%1$s]", outputExampleFlowLanguageCodeAndDisplayStr: "Note: This assumes the flow's current language is %1$s [%2$s]", noSearchMatch: "No functions or operators found for search text.", operator: "Operator", overload: { maxOperands: "The maximum total number of parameters that can be passed to this function is %1$s." }, passThroughSingletonInfo: "'%1$s' will be called at runtime for these types:", passThroughCollectionInfo: "'%1$s' will be called at runtime on each collection item for these types:", returnValue: "Return Value", parameterTitle: "Parameter", parametersTitle: "Parameters", parameters: { length: "String length", maxValue: "Maximum value", maxLength: "Maximum length", maxItems: "Maximum items", minValue: "Minimum value", minLength: "Minimum length", minItems: "Minimum items", notAllowedNotSet: "NOT_SET is not allowed", notAllowedNotSetCurrency: "NOT_SET is not allowed for either the Currency itself or the currency's Amount property", notAllowedZero: "0 is not allowed", repeatable: "This parameter can occur more than once", restrictionsRunTimeError: "Parameter values outside any stated restrictions will result in a runtime error event.", valueMustBeLiteral: "Must be a literal value.", valueMustBeLiteralDialingCode: "Must be a supported ITU-T E.164 dialing code. Valid dialing codes are available from the System.Regions variable by accessing the dialingCode property from a country.", valueMustBeLiteralISO4217: "Must be a supported ISO 4217 currency code.", valueMustBeLiteralSupportedTTSLangTag: "Must be an IETF language code where text to speech playback is supported." }, requiresClosingSymbol: "Note: This operator requires a closing '%1$s' to be valid. See examples.", search: "Search", searchFunctions: "Search functions", specificRuntimeTypes: "Types that have special handling", supportedReturnValues: { possibleGeneric: "Possible return values" }, usageRestrictions: { mustBeLastOperation: "When used in an expression, this must be the last operation specified in the expression text to be valid.", title: "Usage Restrictions" }, validLanguages: "Valid for use in these languages" }, builders: { funcOpBuilderButtonTitle: "Open builder for function at current caret", builderConfigInvalid: "Invalid builder configuration.", builderConfigInvalidWithLabel: "Invalid builder configuration for %1$s.", builderConfigWarning: "The builder configuration has one or more warnings.", builderConfigWarningWithLabel: "The builder configuration has one or more warnings for %1$s.", builderMainSequenceWillNotBeRun: "The Main Sequence will not execute at runtime.", builderPartErrorGeneric: "The builder part is in error.", builderPartInfoGeneric: "The builder part has additional information.", builderPartWarningGeneric: "The builder part has a warning.", builderPartSupportsOnePart: "Only a single part is allowed for this type of builder", builderPartSupportsMultipleParts: "Only %1$s parts are allowed for this type of builder", builderSupportedLanguageMissing: "The builder is not configured to handle the flow supported language '%1$s'.", builderSupportedLanguageMissingMoreThanOne: "The builder is not configured to handle the flow supported languages of %1$s.", containerParts: { language: { languageNotInFlowSupportedLanguages: "The language '%1$s' is not a supported language in the flow.", languageTagNotString: "The language tag is not a valid string.", languageTagNotValid: "The language tag '%1$s' is not supported by Architect.", noFlowSupportedLanguages: "There are no supported languages configured on this flow." } }, convertToExpressionMode: "Convert to Custom Expression", convertToExpressionWarning: "The generated expression will be saved but you will not be able to return to builder mode without resetting the expression.", enableMainSequence: "Enable default sequence 'Main Sequence'", enableAlternativeSequence: "Click the toggle to enable the expression builder sequence.", errorValidatingBuilder: "Internal error encountered validating builder.", errorValidatingBuilderPart: "Internal error encountered validating builder part.", generation: { noParts: "When no items are added, the following value will be used: %1$s", noPartsInSequence: "When no items are added to this sequence, the following value will be used: %1$s" }, minPartsOne: "The expression builder sequence must have at least one item added.", minPartsWarning: "The expression builder sequence should have at least one item added.", minPartsMoreThanOne: "The expression builder sequence must have at least %1$s items added.", maxPartsOne: "The expression builder sequence cannot have more than one item.", maxPartsMoreThanOne: "The expression builder sequence cannot have more than %1$s items.", noBuilderSpecified: "No expression builder specified", title: "%1$s Expression Builder - %2$s", funcOpTitleFunction: "%1$s Function Builder", funcOpTitleOperator: "%1$s Operator Builder", mainSequenceDisabled: "Main Sequence is disabled because all alternate sequences are enabled", selectLanguage: "Select Language", sequence: "Sequence", validationMessage: { withContainer: "%1$s - %2$s", withContainerAndIndex: "%1$s - Index %2$s, %3$s", withIndex: "Index %1$s, %2$s" } }, dialogEngine: { bot: "Dialog Engine Bot", botNotFound: "The selected Dialog Engine bot could not be found.", terminationStateDescription: '"%1$s" (valid for the branch "%2$s")', terminationStateDescriptionIntentOutput: '"%1$s" (can appear in intent-based branches)', dialogEngineBot: "Dialog Engine Bot", dialogEngineBotVersion: "Dialog Engine Bot Version", inputTextLabel: "Bot Input Text", inputTextDescription: "The text to send to the Dialog Engine bot.", inputTextDescriptionForChat: "The text to send to the Dialog Engine bot. This is usually only set when chaining bot actions together.", mustSelectBot: "A Dialog Engine bot must be selected.", openDialogEngineUI: "Open Dialog Engine in a new tab", savedVersionOfBot: "Flow is referencing a cached version of this Dialog Engine bot. The bot may be out of date or deleted.", selectBot: "Select Dialog Engine bot", terminationState: "Termination State" }, dialogflow: { agent: "Dialogflow Agent", agentNotFound: "The selected Dialogflow agent could not be found.", agentHasNoIntents: "The selected Dialogflow Agent has no conversation-ending intents configured.", dialogflowAgent: "Dialogflow Agent", environment: "Environment", environmentNotFound: "The selected Environment could not be found.", initialEventNameLabel: "Initial Event Name", initialEventNameDescription: "The name of the Dialogflow agent event to trigger when the session is started.", inputTextLabel: "Agent Input Text", inputTextDescription: "The text to send to the Dialogflow Agent.", inputTextDescriptionForChat: "The text to send to the Dialogflow Agent. This is usually only set when chaining bot actions together.", integrationNameLabel: "Integration Name: %1$s", intentProbabilityLabel: "Intent Probability", intentProbabilityDescription: "The confidence of the detected Dialogflow end of conversation intent. If detected, the value will range from 0.0 to 1.0. If no intent was detected, the value of the variable bound to this setting will remain untouched.", mustSelectAgent: "A Dialogflow agent must be selected.", noParameters: "There are no parameters defined for this intent.", sessionLabel: "Session Variables", sessionInputsLabel: "Inputs", sessionInputsWarning: "Input Session Variables are only used by a Dialogflow Agent when a non-blank Initial Event Name is supplied.", sessionInputLabel: "Input", noSessionInputsDefinedLabel: "No Input defined", sessionAddInputLabel: "Add Input", sessionOutputsLabel: "Outputs", sessionOutputLabel: "Output", noSessionOutputsDefinedLabel: "No Outputs defined", sessionAddOutputLabel: "Add Output", sessionKeyLabel: "Key Name %1$s", projectIdLabel: "Project ID: %1$s", savedVersionOfAgent: "Flow is referencing a cached version of this Dialogflow agent. The agent may be out of date or deleted.", selectAgent: "Select Dialogflow agent" }, dialogflowCx: { cxAgentNotFound: "The selected Dialogflow CX agent could not be found.", dialogflowCxAgent: "Dialogflow CX Agent", liveAgentHandoffMetadata: "Live Agent Handoff Metadata", mustSelectCxAgent: "A Dialogflow CX agent must be selected.", sessionParametersLabel: "Session Parameters", selectDialogflowCxAgent: "Select Dialogflow CX agent" }, endWorkflow: { exitReasonLabel: "Exit Reason" }, externalTransfer: { number: "Number", releaseLinkTransfer: "Perform release link transfer" }, externalAuths: { missingPermissionContext: "The '%1$s' permission.", overviewContext: "You do not have the necessary authorizations to access %1$s. You need:%2$s", validationContext: "You do not have the necessary authorizations to use %1$s.", thirdPersonValidationContext: "Selected user does not have the necessary authorizations to use %1$s.", agenticVirtualAgentView: { displayTitle: "Agentic Virtual Agents" }, agenticVirtualAgentVersionView: { displayTitle: "Agentic Virtual Agent Versions" }, auditView: { displayTitle: "Version History Details" }, botConnectorView: { displayTitle: "Bot Connectors" }, bridgeActionView: { displayTitle: "Bridge Action" }, contactListsView: { displayTitle: "Contact Lists" }, conversationConferenceAdd: { displayTitle: "Conversations" }, conversationCustomAttributesSchemaView: { conversationCustomAttributesSchemaViewDisplayTitle: "Conversation Custom Attributes Schemas" }, customerIntentsView: { customerIntentsViewDisplayTitle: "Customer Intents" }, dataTablesView: { displayTitle: "Data Tables" }, decisionTablesSearch: { decisionTablesSearchDisplayTitle: "Decision Tables" }, divisionsView: { divisionsViewDisplayTitle: "Divisions" }, emergencyGroupView: { displayTitle: "Emergency Groups" }, flowLaunch: { displayTitle: "Flow Launch" }, flowView: { displayTitle: "Flows" }, flowMilestonesView: { displayTitle: "Flow Milestones" }, flowOutcomesView: { displayTitle: "Flow Outcomes" }, grammarView: { displayTitle: "Grammars" }, guideView: { displayTitle: "Guides" }, guideVersionView: { displayTitle: "Guide Versions" }, integrationsActionView: { displayTitle: "Data Actions" }, integrationView: { displayTitle: "Integrations" }, knowledgeBaseView: { knowledgeBaseViewDisplayTitle: "Knowledge Base" }, knowledgeBaseDocumentView: { knowledgeBaseDocumentViewDisplayTitle: "Knowledge Base Document" }, languageSkillsView: { displayTitle: "Language Skills" }, messagingIntegrationView: { messagingIntegrationViewDisplayTitle: "Messaging Integration" }, nluView: { displayTitle: "NLU" }, oAuthClientView: { oAuthClientViewDisplayTitle: "OAuth Client" }, responseAssetAdd: { displayTitle: "Response Assets Add" }, responseAssetView: { displayTitle: "Response Assets" }, responseLibraryView: { displayTitle: "Response Library" }, responseView: { displayTitle: "Responses" }, schedulesView: { displayTitle: "Schedules" }, smsPhoneNumberView: { smsPhoneNumberViewDisplayTitle: "SMS Phone Numbers" }, surveyFormView: { displayTitle: "Survey Form" }, scheduleGroupView: { displayTitle: "Schedule Groups" }, scriptsView: { displayTitle: "Scripts" }, queuesView: { displayTitle: "Queues" }, utilizationLabelView: { utilizationLabelViewDisplayTitle: "Utilization Labels" }, voicemailReceive: { displayTitle: "Voicemail" }, wrapupCodesView: { displayTitle: "Wrapup Codes" }, promptsUserView: { displayTitle: "User Prompts" }, promptsSystemView: { displayTitle: "System Prompts" }, processAutomationTriggerView: { displayTitle: "Triggers" }, worktypesView: { displayTitle: "Worktypes" } }, facets: { incorrectType: "The value has a type of %1$s when it should be of type %2$s", nothingToValidate: "Unable to determine a value to validate.", valueIsBlank: "The value is blank.", valueNotInAllowableListOne: "The value must be %1$s", valueNotInAllowableListMoreThanOne: "The value must be either %1$s", valueNotInAllowableListGeneral: "The value is not in the allowable values list", valueCannotBeNotSet: "The value cannot be NOT_SET", valueMustBeGreaterThan: "The value %1$s must be greater than %2$s.", valueMustBeGreaterThanOrEqualTo: "The value %1$s must be greater than or equal to %2$s.", valueStringMaxLength: "The value cannot contain more than %1$s characters.", valueStringMinLengthOne: "You must specify a value.", valueStringMinLengthOneNonFriendly: "The value must contain at least 1 character.", valueShouldBeNoValue: "You must specify a value or change mode to no value.", valueShouldBeUseFlowDefault: "You must specify a value or change mode to use flow default.", valueStringMinLengthTwoOrMore: "The value must contain at least %1$s characters.", valueMustBeLessThan: "The value %1$s must be less than %2$s.", valueMustBeLessThanOrEqualTo: "The value %1$s must be less than or equal to %2$s.", valueMustBeExactly: "The value must be %1$s characters.", valueUsesInvalidCharacterWarning: "Usage of the '%1$s' character is not recommended." }, features: { missingFeatureError: "The '%1$s' action is not available in a '%2$s'", missingFeatureErrorExpression: "The setting '%1$s' requires a feature that is not available." }, findActions: { bulkFind: { bulkFindMaxItemProcessingNote: "Note: Only items up the maximum item count of %1$s will be processed. The rest will be returned as NOT_SET in the returned collection." }, findDivision: { findDivisionNameLabel: "Division Name", findDivisionsNameLabel: "Division Names", findDivisionResultLabel: "Division Result", findDivisionsResultLabel: "Division Results" }, findEmergencyGroup: { findEmergencyGroupNameLabel: "Emergency Group Name", findEmergencyGroupResultLabel: "Emergency Group Result" }, findGrammar: { findGrammarIdLabel: "Grammar ID", findGrammarNameLabel: "Grammar Name", findGrammarResultLabel: "Grammar Result" }, findGroup: { nameLabel: "Group Name", resultLabel: "Group Result" }, getJourneySegment: { idLabel: "Journey Segment ID", resultLabel: "Journey Segment Result" }, getJourneySession: { idLabel: "Journey Session ID", resultLabel: "Journey Session Result" }, getJourneySessionsByCustomer: { idLabel: "Customer ID", idTypeLabel: "Customer ID Type", resultsLabel: "Journey Sessions Result" }, getJourneySessionsByExternalContact: { idLabel: "External Contact ID", resultsLabel: "Journey Sessions Result" }, getJourneyOutcome: { idLabel: "Journey Outcome ID", resultLabel: "Journey Outcome Result" }, getJourneyOutcomeScoresBySession: { idLabel: "Journey Session ID", resultsLabel: "Journey Outcome Score Results" }, findKnowledgeBaseDocument: { findKnowledgeBaseDocumentIdLabel: "KnowledgeBaseDocument ID", findKnowledgeBaseDocumentNameLabel: "KnowledgeBaseDocument Name", findKnowledgeBaseDocumentResultLabel: "KnowledgeBaseDocument Result" }, findLanguageSkill: { nameLabel: "Language Skill Name", resultLabel: "Language Skill Result" }, findQueue: { nameLabel: "Queue Name", idLabel: "Queue ID", resultLabel: "Queue Result" }, findSchedule: { findScheduleNameLabel: "Schedule Name", findScheduleResultLabel: "Schedule Result" }, findScheduleGroup: { findScheduleGroupNameLabel: "Schedule Group Name", findScheduleGroupResultLabel: "Schedule Group Result" }, findSkill: { nameLabel: "Skill Name", resultLabel: "Skill Result" }, findSystemPrompt: { nameLabel: "System Prompt Name", resultLabel: "System Prompt Result" }, findUserPrompt: { nameLabel: "User Prompt Name", resultLabel: "User Prompt Result" }, findUser: { nameLabel: "User Email", idLabel: "User ID", idsLabel: "User IDs", idsDescription: "Note: only items up the maximum item count will be processed. The rest will be returned as not found.", resultLabel: "User Result", resultsLabel: "User Results" }, findUtilizationLabel: { nameLabel: "Utilization Label Name", resultLabel: "Utilization Label Result" } }, flow: { createFailed: "Failed to create the flow.", editFailed: "Failed to update flow.", loadFailed: "Failed to load the flow.", flowOptions: "Flow options", idOptions: "ID Options", publishOptions: "Publish options", flow: "Flow", commands: { add: { text: "Add", tooltip: "Add new flow" }, checkIn: { text: "Check in Version %1$s", tooltip: "Saves and checks in Version %1$s" }, create: { tooltip: "Create New Flow" }, discardChanges: { text: "Discard Unsaved Changes", confirmationText: "Are you sure you want to discard unsaved changes?", tooltip: "Discards changes made to this flow since the last save" }, edit: { editButtonTooltipLabel: "Edit the flow" }, export: { text: "Export", textExportAs: "Export as %1$s", tooltip: "Export flow configuration to a file", warningExportFailed: "Failed to export flow" }, exportYaml: { text: "Export as .yaml", tooltip: "Export flow configuration in YAML format" }, flowFilterPreview: "Flow View Filter", goto: { text: "Go To...", tooltip: "Jump to an action, menu or task" }, import: { text: "Import", tooltip: "Import flow configuration from a flow export file" }, modifyIntents: { text: "Modify Intents", tooltip: "Modify bot intents, slots and utterances it will recognize" }, moreActions: { tooltip: "More Actions" }, open: { text: "Open", tooltip: "Open the selected flow" }, print: { text: "Print", tooltip: "Generate a printout of the flow" }, publish: { text: "Publish Version %1$s", title: "Publish", tooltip: "Publish the flow" }, publishDebug: { text: "Debug", tooltip: "Enable debug for the current flow", flowDebugDisabledOne: "Debugging is disabled because it is not supported for the flow supported language of %1$s.", flowDebugDisabledMoreThanOne: "Debugging is disabled because it is not supported for the flow supported languages of %1$s." }, remove: { deleteOverlayMultiple: "Deleting flows", deleteOverlaySingular: "Deleting flow", deleteSuccessOverlay: "Delete successful", text: "Delete", title: "Delete Flow", titleCannotDeleteInQueueFlows: "Cannot Delete In-Queue Call Flows", titleRevertInQueue: "Revert In-Queue Call Flow", titleRevertDefaultVoicemailFlow: "Revert Voicemail Flow", titleMultiple: "Delete Flows", tooltip: "Delete the selected flow(s)", warning: 'Are you sure you want to delete the selected flow named "%1$s"?', warningDeleteInQueueFlowsDependency: "The following in-queue call flows are currently being referenced by one or more queues and cannot be deleted.", warningRevertInQueue: "Do you want to delete all customizations to the default In-Queue Flow and go back to version 1?", warningRevertDefaultVoicemailFlow: "Do you want to delete all customizations to the default Voicemail Flow and go back to version 1?", warningMultiple: "Are you sure you want to delete the %1$s selected flows?" }, refresh: { text: "Refresh", tooltip: "Refresh the list of flows" }, revert: { text: "Revert to Version %1$s", tooltip: "Delete the latest saved version of the flow" }, renumber: { renumberFailed: "Unable to renumber the action, menu and task IDs.", renumberFlow: "Renumber Flow", text: "Renumber", tooltip: "Renumber the IDs set on actions, menus and tasks", warning: "Renumbering action, menu and task IDs will no longer guarantee ID consistency with previous versions of this flow.

Do you wish to continue?" }, save: { text: "Save", tooltip: "Save the flow" }, showHideIdentifiers: { tooltip: "Show or hide action, menu, task and state IDs" }, saveAs: { text: "Save As...", tooltip: "Save the current changes as a new flow" }, unlock: { progressSingle: "Unlocking one flow", progressMultiple: "Unlocking %1$s flows", text: "Unlock", title: "Unlock Flow", titleMultiple: "Unlock Flows", tooltip: "Unlock the currently selected flows", confirmSingle: "Are you sure you want to unlock the selected flow? %1$s", confirmMultiple: "Are you sure you want to unlock the selected flows? %1$s", performsCheckInInfo: "When unlocking a flow, the currently saved configuration will be checked in as a new version.", unlockFailed: "Unlock failed" }, unpublish: { text: "Unpublish", tooltip: "Deactivates the currently published version of the flow" }, validate: { text: "Validate", tooltip: "Check the flow for any errors" }, versions: { text: "Versions", tooltip: "View the version history of the flow" } }, filter: { all: "All", clearFilter: "Clear Filter", divisionPlaceHolder: "Select a Division", editable: "Open for Edit", flowFilterOptionsDivisionTooltip: "Flow division filter options", flowFilterOptionsLockedTooltip: "Flow locked filter options", flowFilterOptionsPublishedTooltip: "Flow published filter options", locked: "Locked", published: "Published", unpublished: "Unpublished", lockedByCurrentUser: "Locked by Current User" }, goto: { noItemSelected: "No item selected. Please select an item to go to.", title: "Go To", selectAnItem: "Select an item to go to", goToResource: "Go to %1$s" }, gridColumns: { division: "Division", name: "Name", locked: "Locked", checkedIn: "Checked In", published: "Published", consumers: "Consumers" }, noChangesTitle: "No changes", noChangesMessage: "There are no unsaved changes in the current flow.", noDefaultLanguage: "There is no default language configured in the current flow.", noStartUpObject: "There is no startup object configured in the current flow.", notLocked: { exportMessage: "It is strongly recommended to export your flow to avoid the possibility of losing unsaved changes. The flow will remain open and editable until you navigate away from the flow.", lockMessage: "This flow is no longer locked by you. You cannot save or publish until you obtain the lock again.", lockMessageForSystem: "You cannot delete version 1.0 of a system flow.", lockDeleteMessageSingle: "You cannot delete a flow that is locked by another user.", lockDeleteMessageMultiple: "You cannot delete flows that are locked by another user.", unlockedMessageSingle: "You cannot unlock a flow that is not locked.", unlockedMessageMultiple: "You cannot unlock flows that are not locked.", title: "Lost flow lock" }, operations: { enableFlowDebugFailure: "Enable debug failed", enableFlowDebugMessage: "Enabling debug...", enableFlowDebugSuccess: "Debug enabled", enableFlowDebugSuccessMessage: "You may now debug the flow by calling this address in Genesys Cloud:

%1$s@localhost

when logged in to the current organization.", enableFlowDebugSuccessMessageWithOrgName: "You may now debug the flow by calling this address in Genesys Cloud:

%1$s@localhost

when logged in to the '%2$s' organization.", enableFlowDebugSuccessTitle: "Debug Enabled", discardChangesMessage: "Discarding changes...", exportMessage: "Exporting...", importMessage: "Importing...", publishFailure: "Publish failed", publishMessage: "Publishing...", publishSuccess: "Published", revertFailure: "Revert failed", revertMessage: "Reverting...", revertSuccess: "Reverted", refreshFailure: "Failed to load the flows", refreshSuccessNoFlows: "There are no flows", refreshSuccessNoFlowsFilter: "There are no flows to show with the current column filters", refreshSuccessNoResults: "There were no flows found", refreshMessage: "Loading Flows...", saveFailure: "Save failed", saveMessage: "Saving...", saveSuccess: "Saved", unpublishFailure: "Unpublish failed", unpublishMessage: "Unpublishing...", unpublishSuccess: "Unpublished", validateMessage: "Validating...", validatedMessage: "Validated", load: { deleteOrRecreate: "You can delete the flow or re-create it as a new flow.", failure: "Failed to load the flow", latestConfigNotFoundButton: "Unlock and Check Out flow", latestConfigNotFoundCannotUnlock: "The latest saved flow configuration was not found. Performing an Unlock and a Check Out operation on the flow can resolve the issue, but you do not have necessary permissions to unlock the flow. Please try again once your user has the \u2018architect:flow:unlock' permission in the flow\u2019s division.", latestConfigNotFoundError: "There was an error performing an Unlock and a Check Out operation on the flow.", latestConfigNotFoundTitle: "Saved configuration not found", latestConfigNotFoundText: "The latest saved flow configuration was not found. Click below to perform an Unlock and a Check Out operation on the flow, which will load the last checked-in version.", noConfig: "'%1$s' has no flow configuration.", cannotOpenNoFlowConfig: "'%1$s' cannot be opened because there is no flow configuration to load.", cannotOpenFlowDeleted: "'%1$s' cannot be opened because it was deleted before being checked in.", noConfigTitle: "No flow configuration", reloadDefaultButton: "Recreate", requestFailed: "The request for the flow's configuration has failed", serverFailureMessage: "The flow is not the correct type for this system.", typeFailureMessage: "The selected flow to be imported is not the correct type of %1$s.", versionFailureMessage: "Can not load a flow created by a newer version of the designer.", flowSchemaMisMatchErrorPrefix: "The variable definition in the flow is incompatible with the variable definition in the import. %1$s", importFailed: "Flow Import Failed", importSupportedLanguageMismatch: "The import operation succeeded. Because flows of type '%1$s' cannot change supported languages, the currently configured language of '%2$s' was not changed to the import file's supported language of '%3$s'.", importFailedWorktypeMismatch: "The import operation failed because the Worktype '%1$s' referenced in the import file does not match the Worktype '%2$s' that the flow was created with.", importFailedWorktypeMismatchNoName: "The import operation failed because the Worktype referenced in the import file does not match the Worktype that the flow was created with." }, publishFlowDebugFailure: "Publishing debug version failed", publishFlowDebugMessage: "Publishing debug version...", publishFlowDebugSuccess: "Debug version published" }, outputMode: { label: "Output Mode", labelAndValue: "Output Mode: %1$s", selectOne: "Select an output mode" }, template: { label: "Template" }, types: { bot: "Bot Flow", commonModule: "Common Module Flow", digitalBotFlow: "Digital Bot Flow", guide: "Guide", inboundEmail: "Inbound Email Flow", inboundCall: "Inbound Call Flow", inboundChat: "Inbound Chat Flow", inboundShortMessage: "Inbound Message Flow", outboundCall: "Outbound Call Flow", inQueueCall: "In-Queue Call Flow", inQueueEmail: "In-Queue Email Flow", inQueueShortMessage: "In-Queue Message Flow", secureCall: "Secure Call Flow", surveyInvite: "Survey Invite Flow", surveyInviteWebPrefix: "Web Survey Invite Flow", voiceFlow: "Voice Flow", voicemailFlow: "Voicemail Flow", voiceSurveyFlow: "Voice Survey Flow", workflow: "Workflow", workItem: "Workitem Flow" }, tooLargeToPublish: "The flow is too large and cannot be published.", tooLarge: "The flow is too large and cannot be saved.", sizeRestriction: "Size Restriction", flowSizeNodeTitle: "Flow Size", flowSizeNodeSearchWatermark: "Search name", flowSize: "Flow Size:", flowSizePercentOfMaxFlow: "% of Max Flow Size", flowSizeWarningWithPercentage: "%1$s - %2$s%%", flowSizeWarningLow: "Low", flowSizeWarningMedium: "Medium", flowSizeWarningHigh: "High", flowSizeWarningVeryHigh: "Full", unknownUser: "Unknown User", unknownClient: "Unknown Client", unknownClientNumber: "Unknown Client %1$s", unknownDivision: "Unknown Division", unknownUserNumber: "Unknown User %1$s", nluEngineDoesNotSupportMultilingual: "This flow does not support adding additional supported languages. To add an additional supported language, use the 'Save As' menu to create a new flow and add additional languages to the new newly created flow. Once published, remember to update callers of the current flow to call the new flow." }, languages: { targetFlowSupportedLanguageNotSupportedInCallingFlow: "The flow '%2$s' supports the language %1$s which is not a supported language of this flow. To be usable, this language needs to be added as supported language to this flow.", targetFlowSupportedLanguageNotSupportedInCallingFlowMoreThanOne: "The flow '%2$s' supports the languages %1$s which are not supported languages of this flow. To be usable, these languages need to be added as supported languages to this flow.", flowRunsInDefaultLanguageIfInvokedWithUnsupportedLanguage: "If this flow is running in a language not supported in the '%1$s' flow when invoking it, the flow will start up in its default supported language of %2$s.", flowSupportedLanguageNotSupportedInTargetFlow: "This flow supports the language %1$s which is not a supported language on the flow '%2$s'.", flowSupportedLanguageNotSupportedInTargetFlowMoreThanOne: "This flow supports the languages %1$s which are not supported languages on the flow '%2$s'." }, flowOutcomes: { createFlowMilestoneTitle: "Create Flow Milestone", createFlowOutcomeTitle: "Create Flow Outcome", failure: "Failure", flowOutcome: "Flow Outcome", flowMilestone: "Flow Milestone", flowMilestoneNotFound: "The selected flow milestone could not be found.", flowOutcomeNotFound: "The selected flow outcome could not be found.", mustSelectFlowMilestone: "A flow milestone must be selected.", mustSelectFlowOutcome: "A flow outcome must be selected.", selectFlowMilestone: "Select Flow Milestone", selectFlowOutcome: "Select Flow Outcome", success: "Success" }, form: { formActionDatePicker: "Date Picker", formActionInput: "Input", formActionLibrary: "Library", formActionLibraryDescription: "The selected response library is only validated when a form is selected.", formResponseLibraryDoesNotContainForm: "The selected response library does not contain the selected form.", formNoResponseLibrariesContainForm: "There are no response libraries that contain the selected form.", formActionListPickerMultiSelect: "List Picker - Multiselect", formActionListPickerSingle: "List Picker - Single", formActionMustSelectForm: "A form must be selected.", formActionMustSelectLibrary: "A library must be selected.", formActionSelectLibrary: "Select a library", formChannelNote: "Form is only available for Apple Messages for Business. Using it on other channels will take the failure path.", formCompletionTimeout: "Form Completion Timeout", formCompletionTimeoutDescription: "Once the form has been sent, this is the maximum length of time to wait for the participant to complete the form. If the form is not completed within this time then a No Input event will be triggered.", formLabel: "Form", formNotFound: "The selected form could not be found.", formPages: "Form Pages", selectForm: "Select a form" }, messagingTemplate: { messagingTemplateTypeLabel: "Message Template Type", messagingTemplateTypeDescription: "In Canned Response details, Standard corresponds to a Message Template and Carousel corresponds to a Media Carousel.", messagingTemplateActionLibraryDescription: "The selected response library is only validated when a message template is selected.", messagingTemplateActionMustSelectMessagingTemplate: "A message template must be selected.", messagingTemplateChannelNote: "Send Digital Content is only available for WhatsApp.", messagingTemplateLabel: "Message Template", messagingTemplateNoResponseLibrariesContainMessagingTemplate: "There are no response libraries that contain the selected message template.", messagingTemplateNotFound: "The selected message template could not be found.", messagingTemplateResponseLibraryDoesNotContainMessagingTemplate: "The selected response library does not contain the selected message template.", messagingTemplateSelectionResultDescription: "The variable that holds the value of the button chosen by the participant. If no choice is selected by the participant, the variable value will be left alone.", openMessagingTemplateInNewTab: "View Message Template", selectMessagingTemplate: "Select a message template" }, generic: { actionNeeded: "Action needed", aiPowered: "AI Powered", apply: "Apply", branches: { active: "Active", canceled: "Canceled", closed: "Closed", emergency: "Emergency", event: "Event", error: "Error", failure: "Failure", found: "Found", holiday: "Holiday", inactive: "Inactive", knowledgeDialogEngine: "Knowledge", matchExact: "Exact Match", matchMultiple: "Multiple", maxNoInputsBranch: "Max No Inputs", maxNoMatchesBranch: "Max No Matches", noEvent: "No Event", noIntent: "No Intent", noInputBranch: "No Input", notFound: "Not Found", open: "Open", partiallyFound: "Partially Found", processed: "Processed", skipResponse: "Skip Response", skipResponseCapture: "Skip Response Capture", success: "Success", timeout: "Timeout", valid: "Valid", invalid: "Invalid", loopsMax: "Max Loops", loopNext: "Next Loop", faxProcessed: "Fax Processed", voicemail: "Voicemail" }, browse: "Browse", backToOriginalTopic: "Back to Original Topic", cancel: "Cancel", confirm: "Confirm", confirmDeleteMessage: "Are you sure you want to delete this item?", containsErrors: "Contains errors", containsWarnings: "Contains warnings", continue: "Continue", clear: "Clear", clearAll: "Clear All", clickForHelp: "Click to view help.", clickToEditName: "Click to edit name", close: "Close", contactSupportIfKeepsHappening: "If this keeps happening, contact Support.", create: "Create", currentUser: "Current User", currentVersion: "Currently Referenced Version", dataType: "Data Type", dataTypes: "Data Types", default: "Default", delete: "Delete", deleteThisItem: "Delete this item", disabledDiscourageForNewUse: "Disabled \u2014 discouraged for new use.", divisions: "Divisions", done: "Done", description: "Description", digitalAudio: "Digital Audio", earlyPreview: "Early Preview", languageStatusPreviewTooltip: "This language is a preview release, the language model will improve over time with changes and further support.", edit: "Edit", editor: "Editor", enterText: "< put text here >", exportFlow: "Export Flow", emptyPage: "This page is now empty. Navigate to a previous page.", enableDarkMode: "Enable Dark Mode", enableLightMode: "Enable Light Mode", errors: { errorFileRead: "There was an error reading the file." }, expandCardCardTooltip: "Hold shift to expand multiple cards", expressions: "Expressions", facebook: "Facebook", fileSizeWithValue: "File Size: %1$s", finished: "Finished", flowSetting: "Flow Setting", generating: "Generating...", genericOff: "Off", genericOn: "On", identifier: "Identifier", inferredPrompts: "Prompts used by this action", isCollection: "Is Collection", itemLabel: "Item %1$s", items: "Items", joinTwoSentences: "%1$s %2$s", joinThreeSentences: "%1$s %2$s %3$s", keyHyphenValue: "%1$s - %2$s", keyBracketValue: "%1$s [%2$s]", launch: "Launch", loadMore: "Load more...", loading: "Loading...", loaded: "Loaded", maxFileSize: "Maximum file size is %1$s.", message: "Message", move: "Move", moveDown: "Move down", moveToBottom: "Move to bottom", moveToNewSection: "Move to new section", moveTo: "Move to", moveToTop: "Move to top", moveUp: "Move up", name: "Name", namespace: "Namespace", nameAndValue: "Name: %1$s", nameWatermark: "Enter a name", no: "No", noFieldsFound: "No fields found", notNatively: "Not Natively", note: "Note:", notifications: { clickForInfo: "Click this notification for more information." }, numberWithPercent: "%1$s%%", okDontUseThis: "OK", openDropdown: "Open Dropdown", openItem: "Open Item", optional: "Optional", options: "options", other: "Other", overview: "Overview", performingOperation: "Performing Operation", permissions: { allDivisions: "All Divisions", divisionHeader: "Division", divisionHeaderMoreThanOne: "Divisions", missingPermission: "You do not have the permission '%1$s'.", missingPermissionWithDivision: "You do not have permission '%1$s' in division '%2$s' to perform this action.", permissionRestriction: "Permission Restriction", error: "An error has occurred while processing permissions", hiddenFlowCount: "Hidden flow count: %s", missing: { dependencyTracking: { rebuild: "You do not have permission to initiate a dependency rebuild.", view: "You do not have permission to view dependency tracking." }, conversation: { conference: { add: "You do not have permission to make calls." } }, copilot: { session: "You do not have permission to view this session.", message: { view: "You do not have permission to view messages.", send: "You do not have permission to send messages." } }, flow: { allPermissions: { add: "You do not have permission to add flows.", delete: "You do not have permission to delete flows.", edit: "You do not have permission to edit flows.", launch: "You do not have permission to launch flows.", publish: "You do not have permission to publish flows.", search: "You do not have permission to search flows.", unlock: "You do not have permission to unlock flows.", view: "You do not have permission to view flows." }, flowMilestones: { noPermissionToAddFlowMilestone: "You do not have permission to add flow milestones.", add: "You do not have permission to add flow milestones. You need the architect:flowMilestone:add permission in at least one division in the organization to add a flow milestone.", search: "You need the architect:flowMilestone:search permission in at least one division in the organization to add a flow milestone." }, noSpecificDivision: { view: "You do not have permission to view this flow." }, flowOutcomes: { noPermissionToAddFlowOutcome: "You do not have permission to add flow outcomes.", add: "You do not have permission to add flow outcomes. You need the architect:flowOutcome:add permission in at least one division in the organization to add a flow outcome.", search: "You need the architect:flowOutcome:search permission in at least one division in the organization to add a flow outcome." }, specificDivision: { deleteSingle: "You do not have the flow delete permission in the division of the following flow:", deleteMultiple: "You do not have the flow delete permission in the divisions of the following flows:", unlockSingle: "You do not have the flow unlock permission in the division of the following flow:", unlockMultiple: "You do not have the flow unlock permission in the divisions of the following flows:" } }, journey: { actionmap: { journeyActionmapView: "You do not have permission to view action maps." }, flowpaths: { journeyFlowsView: "You do not have permission to view Journey Flows." } }, prompts: { systemPrompts: { edit: "You do not have permission to edit system prompts.", view: "You do not have permission to view system prompts." }, userPrompts: { add: "You do not have permission to add user prompts.", delete: "You do not have permission to delete user prompts.", edit: "You do not have permission to edit user prompts.", import: "You do not have permission to view, add, and edit user prompts and view and edit system prompts.", view: "You do not have permission to view user prompts." } }, recording: { retentionPolicy: { recordingRetentionPolicyView: "You do not have permission to view Quality Policies" } }, responseAssets: { asset: { responseAssetMissingPermissionAdd: "You do not have permission to add response assets. You need the '%1$s' permission in at least one division in your organization to do so.", responseAssetMissingPermissionView: "You do not have permission to view response assets. You need the '%1$s' permission in at least one division in your organization to do so." } }, grammars: { grammarsMissingPermissionAdd: "You do not have permission to add grammars.", grammarsMissingPermissionDelete: "You do not have permission to delete grammars.", grammarsMissingPermissionEdit: "You do not have permission to edit grammars.", grammarsMissingPermissionView: "You do not have permission to view grammars." }, taskManagementWorkitems: { workItemsMissingPermissionView: "You do not have permission to view Workitems." } } }, pickOneToSend: "Pick one to send.", pleaseNote: "Please Note", pleaseWait: "Please wait...", preferences: "Preferences", preview: "Preview", product: { couldNotLoadProductError: "'%1$s' could not load.", loadingProduct: "Loading '%1$s'...", weCouldNotLoadProductError: "We could not load '%1$s'." }, rawValue: "Raw Value", readonly: "This is read only.", recording: "Recording", refresh: "Refresh", remove: "Remove", reorder: "Reorder", reset: "Reset", restricted: "Restricted", save: "Save", searchDataTypes: "Search data types...", searchTerm: "Search Term", section: "Section", sections: "Sections", seeResourceCenter: { flowsCallingFlows: "Learn more about flows calling flows in our {{link.__FLOWS_CALLING_FLOWS__, Resource Center}}.", generic: "For more information, see the {{link.__RESOURCE_URL__, Resource Center}}.", pricingAndSupportedLanguages: "For more information about pricing and supported languages, see the {{link.__RESOURCE_URL__, Resource Center}} documentation." }, selectAll: "Select All", selectFile: "Select file", selectMulti: "Multi-select", selectSingle: "Single select", sentenceWithPeriod: "%1$s.", setDescription: "Set description...", showAllErrors: "Show all errors", showAllWarnings: "Show all warnings", showAllFields: "Show all fields", showInformation: "Show Information", sizeBytes: "%1$sb", sizeMegabytes: "%1$sMB", start: "Start", stop: "Stop", stopping: "Stopping...", switch: "Switch", sessionSourcesNote: "This property is only supported in %1$s conversations. This is true when the Session.Source variable value equals %2$s at flow runtime.", sessionSourcesNoteForLabel: "%1$s is only supported in %2$s conversations.", sessionSourcesConditionNote: "This is true when the Session.Source variable value equals %1$s at flow runtime.", yes: "Yes", tasks: "Tasks", textWithSingleQuotes: "'%1$s'", thisActionCantBeUndone: "This action can't be undone.", time: "Time", truncatedText: "%1$s...", tryAgainWithPeriod: "Try again.", type: "Type", types: "Types", selectAtLeastOne: "select at least one", unknown: "Unknown", upload: "Upload", urlFormat: "The URL string must conform to a valid URL format, for example, https://www.example.com.", usages: "Usages", usingOnOtherChannelsFailurePath: "Using it on other channels will take the failure path.", validation: "Validation", value: "Value", version: "Version", versionNumber: "Version %1$s", view: "View", video: "Video", whatsApp: "WhatsApp", zoomToFit: "Zoom to Fit", zoomToFitWidth: "Zoom to Fit Width", zoomToFitHeight: "Zoom to Fit Height" }, getAttributes: { addAttributeLabel: "Add attribute to retrieve", noAttributesError: "There are no attributes defined", variableLabel: "Variable to Assign %1$s" }, getConversationData: { conversationDescription: "The conversation ID to get participant data from.", conversationLabel: "Conversation ID", participantDescription: "If supplied, the participant data of the specified participant is used. In most cases, this can remain unspecified or NOT_SET and the customer/external participant will be used.", participantLabel: "Participant ID" }, commonExternalContact: { nameLabel: "External Contact ID", externalContactResult: "External Contact Result" }, assignedCustomerIntents: { assignedCustomerIntentsLabel: "External Contact ID", assignedCustomerIntentsResult: "Customer Intents Result" }, customerIntent: { customerIntentLabel: "Customer Intent" }, getEmailHeaders: { emailHeaderNamesDescription: "The optional String Collection of Email Header Names. If NOT_SET or empty then all headers will be returned.", emailHeaderNamesLabel: "Email Header Names", emailHeaderNamesNoValueLabel: "All Email Headers", emailHeadersResultDescription: "The Email Headers value that is processed at flow runtime.", emailHeadersResultLabel: "Email Headers Result", noEmailHeaderNames: "No Email Header Names" }, getExternalOrganization: { nameLabel: "External Organization ID", externalOrganizationResult: "External Organization Result" }, getResponse: { library: "Library", noResponsesFound: "There are no responses in the selected library.", mustSelectLibrary: "A library must be selected.", mustSelectResponse: "A response must be selected.", noResponseLibrariesContainResponse: "There are no response libraries that contain the selected response.", performSubstitutions: "Perform Substitutions", response: "Response", responseBody: "Output Response Body", responseBodyDescription: "The html text of the response.", responseBodyHandlingDescription: "Determines how formatting contained in the '%1$s' canned response output String variable is processed at flow runtime. If this setting value at flow runtime evaluates to a value other than one of the allowable values, 'convertToMarkdown' will be used.", responseBodyHandlingLabel: "Response Body Handling", responseLibraryDoesNotContainResponse: "The selected response library does not contain the selected response.", responseLibraryIsInvalid: "The response library '%1$s' is invalid.", responseLibraryNotFound: "The selected response library could not be found.", responseNotFound: "The selected response could not be found.", savedVersionOfResponse: "Flow is referencing a cached version of this response. The response may be out of date or deleted.", selectLibrary: "Select a library", selectedResponse: "Selected Response", selectResponse: "Select a response", suggestedLibraryOne: "Library suggestion", suggestedLibraryMoreThanOne: "Library suggestions", substitutions: "Substitutions", noSubstitutions: "No substitutions available" }, getSIPHeaders: { rawSIPHeadersResultLabel: "Raw SIP Headers Result", rawSIPHeadersResultDescription: "The Raw SIP Headers value that is processed at flow runtime.", sipHeadersResultLabel: "SIP Headers Result", sipHeadersResultDescription: "The SIP Headers value that is processed at flow runtime.", sipHeaderNamesLabel: "SIP Header Names", sipHeaderNamesDescription: "The optional String Collection of SIP Header Names. If NOT_SET or empty then all headers will be returned.", sipHeaderNamesNoValueLabel: "All SIP Headers", noSipHeaderNames: "No SIP Header Names" }, group: { label: "Group", groupLabelPlural: "Groups", placeholder: "Select a group", noExtError: "No phone number found for the selected group. Transfers will fail at runtime." }, help: { about: "About", architectHelp: "Architect Help", backToResults: "Back to results", currentHelpTopic: "Current Topic", expressionHelp: "Expression Help", privacyPolicy: "Privacy Policy", reportIssue: "Report Issue", resourceCenter: "Resource Center", show: "Show help", helpAndResources: "Help and resources", help: "Help", helpResourceCommunity: "Community", helpResourceOrchestrators: "Genesys Orchestrators", helpResourceReleaseNotes: "Release Notes", helpResourceEducation: "Education", helpResourceStatus: "Genesys Cloud Status", noSearchResults: "No results for your search", searchHelpContent: "Search help content", searchHelpContentDescription: "Use double quotation marks to search for a specific term or phrase. For example, \u201COrganization settings\u201D.", viewSource: "Open in Resource Center" }, holdMusic: { durationLabel: "Duration", playForDuration: "Play for duration", playLengthLabel: "Play Style", playPrompt: "Play prompt", promptLabel: "Hold Music" }, inputOutputList: { arrayWithMixedTypes: "The '%1$s' schema for '%2$s' includes one or more arrays containing multiple data types. These will be ignored by Architect, since arrays with mixed types are unsupported.", arrayWithNoType: "The schema for '%1$s' contains an array with no 'items' property specifying what kind of items are contained in the array. Architect will treat these as string arrays, which could cause error handling to be invoked at runtime if non-string values are encountered.", failureOutputs: "Failure Outputs", inputs: "Inputs", noInputs: "There are no inputs.", noInputsOutputs: "There are no inputs or outputs.", unableToRetrieveSchema: "Unable to retrieve inputs or outputs for this action.", outputs: "Outputs", successOutputs: "Success Outputs", foundOutputs: "Found Outputs", schemaError: "The selected data action reported an invalid '%1$s' schema. Please check the data action\u2019s configuration and validate the flow again." }, importFlow: { fileLabel1: "Flow file to import (%1$s)", filePlaceHolder: "Select a configuration file to import", title: "Import a flow" }, importPrompts: { addAudio: "Add additional audio...", addAudioButton: "Add to import", audioNew: "New Audio", audioUpdate: "Replacing Audio", cancelImportTitle: "Cancel Import", cancelImportMessage: "An import is currently in progress. Are you sure you wish to dismiss the modal and cancel the import?", importDescriptionNewAndUpdated: "New prompts after import: %1$s, Updated prompts after import: %2$s", importDescriptionNew: "New prompts after import: %1$s", importDescriptionUpdated: "Updated prompts after import: %1$s", importFinishedResults: "Import results: New Prompts: %1$s, Updated Prompts: %2$s, Audio Uploads: %3$s, New TTS Values: %4$s", importFinishedResultsWithText: "Import results: New Prompts: %1$s, Updated Prompts: %2$s, Audio Uploads: %3$s, New TTS Values: %4$s, New Text Values: %5$s", importFinishedResultsFailures: "There were %1$s failures", importFinishedResultsFailure: "There was 1 failure", importFinishedResultsCanceled: "Canceled: Prompt Updates: %1$s, Audio Uploads: %2$s, TTS Values: %3$s", importFinishedResultsCanceledWithText: "Canceled: Prompt Updates: %1$s, Audio Uploads: %2$s, TTS Values: %3$s, Text Values: %4$s", importFinishedResultsWarning: "Found leading or trailing whitespace with file name '%1$s'. When the prompt import process is running, file name will be formatted to match the name in the CSV configuration.", importingActive: "Updating Prompts: %1$s, Importing Audio Files: %2$s, Setting TTS Values: %3$s", importingActiveWithText: "Updating Prompts: %1$s, Importing Audio Files: %2$s, Setting TTS Values: %3$s, Text Values: %4$s", noPromptError: "There are no prompts to import.", noMatchingSystemPrompt: "No matching system prompt found", resultCreated: "Created prompt %1$s", resultCreateCanceled: "Canceled creating prompt %1$s", resultCreateFailed: "Failed to create prompt %1$s", resultSkippedAudio: "User skipped uploading (%1$s) for prompt %2$s (%3$s)", resultSkippedTts: "User skipped setting TTS for prompt %1$s (%2$s)", resultSkippedText: "User skipped setting Text for prompt %1$s (%2$s)", resultIgnoredWav: "Wav (%1$s) skipped because no matching prompt found", resultSetTTS: "Set TTS for prompt %1$s (%2$s)", resultSetTTSCanceled: "Canceled setting TTS for prompt %1$s (%2$s)", resultSetText: "Set Text for prompt %1$s (%2$s)", resultSetTextCanceled: "Canceled setting Text for prompt %1$s (%2$s)", resultsFileName: "Import Results %1$s", resultUpdated: "Updated prompt %1$s", resultUpdateCanceled: "Canceled updating prompt %1$s", resultUpdatedFailed: "Failed to update prompt %1$s", resultUploaded: "Uploaded audio (%1$s) for prompt %2$s (%3$s)", resultUploadCanceled: "Canceled uploading audio (%1$s) for prompt %2$s (%3$s)", resultUploadedFailed: "Failed to upload audio (%1$s) for prompt %2$s (%3$s)", resultUploadErrorNoFile: "No file (%1$s) available to upload for prompt %2$s (%3$s)", previewImport: "Preview Import", saveResults: "Save Results", start: "Start Import", selectionDisabledNoChanges: "There is nothing to import, add audio", selectionDisabledNoChangesNoAudio: "There is nothing to import", selectionAddTooltip: "Adding new prompt", selectionUpdatedTooltip: "Updating existing prompt", title: "Import Prompts", textNew: "New text:", ttsNew: "New text to speech:", typeSystem: "System Prompt", unusedFiles: "There are %1$s audio files that do not have prompt matches", unusedFile: "There is 1 audio file that does not have a prompt match", parseErrors: { fieldMismatched: "Number of fields mismatched on line %1$s", other: "Unknown error parsing file" } }, intents: { label: "Intents", settings: { intentSettingConfirmationDescription: "Wording the bot will use when confirming this is the desired intent of the participant. The participant is expected to reply with a yes or no answer.", confirmation: "Confirmation", noIntentsDefined: "There are no intents defined in the bot's Natural Language Understanding configuration. You can create intents in the 'Intents' node.", goToIntents: "Go to Intents" }, secureSlotVariableUsedInIntentUtterance: "The slot variable '%1$s' cannot be marked as secure because its corresponding slot '%2$s' is referenced in the intent %3$s. To correct this error you may either turn off the secure setting on the variable or remove the slot from the intent.", secureSlotVariableUsedInIntentUtteranceMoreThanOne: "The slot variable '%1$s' cannot be marked as secure because its corresponding slot '%2$s' is referenced in the intents %3$s. To correct this error you may either turn off the secure setting on the variable or remove the slot from the intent." }, dynamicSlotTypes: { dynamicSlotTypesLabel: "Dynamic Slot Types", settings: { dynamicSlotTypeSettingValuesLabel: "Values", dynamicSlotTypeSettingValuesDescription: "A collection whose items supply possible String values for the slot type.", dynamicSlotTypeSettingSynonymsLabel: "Synonyms", dynamicSlotTypeSettingSynonymsNoValueSelectionLabel: "No Synonyms Specified", dynamicSlotTypeSettingSynonymsDescription: "A collection whose String items supply one or more synonyms for values in the '%1$s' collection. To specify a synonym for a value, add the synonym String value to the same index in this collection that the value has in the '%1$s' collection. To specify more than one synonym for an individual slot type value, assign a String value at the appropriate index in this collection but separate the individual synonyms with a ',' character.", dynamicSlotTypeSettingLabelsLabel: "Labels", dynamicSlotTypeSettingLabelsNoValueSelectionLabel: "No Labels Specified", dynamicSlotTypeSettingLabelsDescription: "A collection whose Communication items supply wording for values in the '%1$s' collection. To specify wording for an individual value, add the Communication value to the same index in this collection that the value has in the '%1$s' collection." } }, dynamicTimeslots: { dynamicTimeslotsLabel: "Dynamic Timeslots", dynamicTimeslotsDateTimeLabel: "Date and Time", dynamicTimeslotsDurationLabel: "Duration", settings: { dynamicTimeslotSettingTimeslotsLabel: "Timeslots", dynamicTimeslotSettingTimeslotsDescription: "A collection whose items supply possible Timeslot values for the slot type." } }, digitalAudio: { digitalAudioPlaceholder: "Select a Digital Audio response asset", browseForDigitalAudioLabel: "Browse for Digital Audio...", searchDigitalAudios: "Search Digital Audio...", useDigitalAudio: "Use Digital Audio", errors: { errorDownloadingDigitalAudio: "There was an error downloading the digital audio.", errorUploadingDigitalAudio: "There was an error uploading the digital audio", errorInvalidDigitalAudioName: "This Digital Audio name is not valid.", errorInvalidDigitalAudioFileType: "The selected file is not a valid digital audio file." }, uploadingDigitalAudio: "Uploading digital audio..." }, file: { file: "File", filePlaceholder: "Select a File response asset", browseForFileLabel: "Browse for File...", searchFiles: "Search Files...", supportedFileTypes: "Supported file types are: %1$s", useFile: "Use File", errors: { errorDownloadingFile: "There was an error downloading the file.", errorUploadingFile: "There was an error uploading the file.", errorInvalidFileName: "This file name is not valid.", errorInvalidFileType: "The selected file is not a valid file." }, uploadingFile: "Uploading file..." }, image: { conversion: { imageConvertBuilderToLiteralTitle: "Convert Image Builder To Literal", imageConvertBuilderToLiteralMessage: "Switching from builder to literal mode will reset the value. Do you wish to continue?", imageConvertExpressionToLiteralMessage: "Switching from expression to literal mode will reset the value. Do you wish to continue?", imageConvertExpressionToLiteralTitle: "Convert Image Expression To Literal", imageConvertLiteralToExpressionMessage: "The generated Image expression will be saved but you will not be able to return to literal mode without resetting the expression.", imageConvertLiteralToExpressionTitle: "Convert Image Literal To Expression", imageConvertModesMessage: "Switching from %1$s mode to %2$s mode will reset the value. Do you wish to continue?", imageConvertModesTitle: "Convert Image %1$s to %2$s" }, browseForImageLabel: "Browse for Image...", errors: { errorDownloadingImage: "There was an error downloading the image.", errorUploadingImage: "There was an error uploading the image", errorInvalidImageName: "This Image name is not valid.", errorInvalidImageFileType: "The selected file is not a valid image file." }, image: "Image", imagePlaceholder: "Select an Image", searchImages: "Search Images...", supportedFileTypes: "Supported file types are JPG, JPEG, PNG and GIF", useImage: "Use Image", uploadImageModalHeader: "Upload New Asset", uploadingImage: "Uploading image..." }, video: { videoPlaceholder: "Select a Video response asset", browseForVideoLabel: "Browse for Video...", searchVideos: "Search Videos...", useVideo: "Use Video", errors: { errorDownloadingVideo: "There was an error downloading the video.", errorUploadingVideo: "There was an error uploading the video", errorInvalidVideoName: "This Video name is not valid.", errorInvalidVideoFileType: "The selected file is not a valid video file." }, uploadingVideo: "Uploading video..." }, responseAsset: { responseAsset: "Response Asset", responseAssetPlaceholder: "Select a Response Asset", responseAssetAttachmentsDescription: "A collection of response assets attached to the response.", searchResponseAssets: "Search Response Assets...", useResponseAsset: "Use Response Asset", errors: { errorDownloadingResponseAsset: "There was an error downloading the asset.", errorUploadingResponseAsset: "There was an error uploading the asset", errorInvalidResponseAssetName: "This name is not valid.", errorInvalidResponseAssetFileType: "The selected file is not a valid file." }, responseAssetAttachmentsLabel: "Attachments", uploadingResponseAsset: "Uploading asset..." }, itemListing: { lastItemAndSeparator: " and ", lastItemOrSeparator: " or " }, codeEditor: { architectExpressionsUnavailable: "Architect expressions cannot be used here.", architectExpressionsUnavailableForVariableInitialValue: "Architect expressions cannot be used for a variable initial value.", autoCompleteEntries: { codeEditorNullDescription: "Enters the value null", codeEditorNullValue: "null", codeEditorTimeBlankDescription: "Enters a blank String where you can supply a Time", codeEditorTimeDescription: "Enters a Time value for 12:00:00 AM", dateTimeBlankDescription: "Enters a blank String where you can supply a Datetime", dateTimeTodayDescription: "Enters a Datetime value for today", dateTimeTodayDisplayText: "Today's Datetime", dateTodayDisplayText: "Today's Date", dateTodayDescription: "Enters a Date value for today", dateBlankDescription: "Enters a blank String where you can supply a Date", decimalOneDescription: "Enters a Decimal value of 1.0", decimalOrIntegerOneLabel: "One", decimalOrIntegerZeroLabel: "Zero", decimalZeroDescription: "Enters a Decimal value of 0.0", durationBlankDescription: "Enters a blank String where you can supply a Duration", durationFiveMinutesDescription: "Enters a Duration value for five minutes", durationFiveMinutesLabel: "5 Minutes", durationOneDayDescription: "Enters a Duration value for one day", durationOneDayLabel: "1 Day", durationOneHourDescription: "Enters a Duration value for one hour", durationOneHourLabel: "1 Hour", durationOneMinuteDescription: "Enters a Duration value for one minute", durationOneMinuteLabel: "1 Minute", durationThirtySecondsDescription: "Enters a Duration value for 30 seconds", durationThirtySecondsLabel: "30 Seconds", emptyArrayDescription: "Enters an empty array", emptyJsonObjectDescription: "Enters an empty JSON object", enterLiteralDescription: "Enter a literal '%1$s' selector", inlineExpressionDescription: "Enter an expression to supply the value", integerOneLabel: "Enters an Integer value of 1", integerZeroLabel: "Enters an Integer value of 0", literalValuesSection: "Literal Values" }, codeEditorTitle: "Code Editor", convertCategoryLabel: "Convert", cursorNumberHeader: "Cursor:", cursorNumberAriaLabel: "Cursor, Line Number: %1$s, Column: %2$s", fixCategoryLabel: "Fix", lineNumberHeader: "Line %1$s:", noValidationErrorsMessage: "No Errors", toggleSuggestionsPanel: "Toggle Suggestions Panel", validationCompleteMessage: "Validated", parseErrors: { facets: { allowableValuesFacetLabel: "allowable values", maxFacetLabel: "max", maxItemsFacetLabel: "max items", maxLengthFacetLabel: "max length", minFacetLabel: "min", minItemsFacetLabel: "min items", minLengthFacetLabel: "min length" }, tokens: { tooManyDecimalPlaces: "The Decimal value has %1$s decimal places. %2$s allowed.", tokenDuplicate: "Duplicate token '%1$s'.", tokenInvalid: "Invalid token '%1$s'.", tokenMissing: "Missing token '%1$s'.", tokenUnexpected: "Unexpected token '%1$s'.", invalidTokenOrderMustFollow: "'%1$s' must follow '%2$s'.", invalidTokenOrderMustPrecede: "'%1$s' must precede '%2$s'." }, arrayLengthTooBig: "Array item count %1$s is too large.", arrayLengthTooSmall: "Array item count %1$s is too small.", separatorIsUnnecessary: "Unnecessary separator '%1$s'.", extraValueErrorMessage: "Extra value.", invalidNumber: "Invalid number.", invalidNumericCharacter: "Invalid numeric character", invalidSyntax: "Invalid syntax.", formatPropertyWithMessage: "Property '%1$s' - %2$s", stringLengthTooBig: "The string length %1$s is too big.", stringLengthTooSmall: "The string length %1$s is too small.", tokenAfterEndOfValue: "Unexpected token '%1$s' past end of value.", valueIncomplete: "Value is incomplete." }, properties: { missingRequiredPropertiesPlural: "Missing required properties: '%1$s' for the type '%2$s'.", missingRequiredPropertySingular: "Missing required property '%1$s' for the type '%2$s'.", propertyCannotBeAddedToNonObject: "You cannot add a property to something that is not an object.", propertyIsDuplicated: "Duplicate property '%1$s'.", propertyIsReadOnly: "The property '%1$s' is read only.", propertyNamesCannotBeBlank: "Property names can't be blank.", propertyNameNotValidForType: "The property name '%1$s' is not valid for the type '%2$s'." }, search: { closeSearchPanel: "Close find and replace panel", codeEditorPanelFind: "Find:", codeEditorPanelFindAndReplace: "Find and replace", codeEditorPanelNextMatchButton: "Next Match", codeEditorPanelPreviousMatchButton: "Previous Match", codeEditorPanelReplace: "Replace", codeEditorPanelReplaceAll: "Replace all", codeEditorPanelReplaceWith: "Replace with:" }, shortcuts: { shortcutFindLabel: "Find", shortcutNextMatchLabel: "Next match", shortcutPreviousMatchLabel: "Previous match", shortcutShowTypeaheadLabel: "Show typeahead" }, suggestions: { addFunctionCall: "Add a '%1$s' function call", addMissingSeparator: "Add the missing separator '%1$s'", closeSuggestionsPanel: "Close suggestions panel", lintSuggestionsLabel: "Suggestions", maxValueClosestTo: "This is the maximum value that is closest to '%1$s'.", minValueClosestTo: "This is the minimum value that is closest to '%1$s'.", removeUnnecessarySeparator: "Remove the unnecessary separator '%1$s'", replaceWith: "Replace with '%1$s'.", separators: { addSeparatorSuggestion: "Add separator '%1$s'.", replaceSeparatorSuggestion: "Replace separator with '%1$s'." } }, types: { codeEditorValueTooLarge: "The value '%1$s' is too large.", codeEditorValueTooLargeNoValue: "The value is too large.", codeEditorValueTooPrecise: "The value is too precise.", codeEditorValueTooSmall: "The value '%1$s' is too small.", codeEditorValueTooSmallNoValue: "The value is too small.", dateSupplyCurrent: "Supply today's date.", dateTimeInvalid: "You must use a 'T' between the date and time components of a DateTime value.", decimalCannotBeUsedHere: "Decimal values cannot be used here.", decimalValueSignificantDigits: "Decimal values are limited to %1$s significant digits.", incompatibleType: "Incompatible type.", incompatibleTypeAssignment: "Incompatible type assignment.", invalidTypeValue: "Invalid '%1$s' value.", returnValueTypeMismatch: "'%1$s' does not match the expected type of '%2$s'. To fix this, wrap in a '%3$s' function call.", timeUnitNeedsDigitValue: "'%1$s' needs a %2$s digit value.", timeUnitNeedsDigitValueForDataType: "'%1$s' values need a %2$s digit value for '%3$s'.", typeIncompatibilityAssignmentError: "Cannot assign the '%1$s' value '%2$s' to type '%3$s'.", typeIncompatibilityError: "'%1$s' values cannot be used to supply '%2$s' values.", timeOutOfBounds: "'%1$s' is out of bounds.", dateTimeSupplyCurrent: "Supply current date and time as a Datetime value.", timeSupplyMonthFromToday: "Supply the current month.", timeSupplyDayFromMonth: " Supply today's day of month.", durationXsdFormat: "Duration values must use the XSD format of (-)PnDTnHnMn.nnnS.", durationOnlySecondsCanBeDecimal: "Only the seconds portion of a Duration is allowed to use a Decimal value to specify up to millisecond granularity.", durationMustSpecifyDHMS: "Must specify either 'D', 'H', 'M' or 'S'.", durationMustSpecifyMinimum: "You must specify at least '0S' on a Duration value.", integerCannotBeUsedHere: "Integer values cannot be used here.", stringLengthTooLarge: "String length %1$s is too large.", durationMaxValue: "The maximum value allowed for a Duration is 999999999999999 milliseconds (11574074 days, 1 hour, 46 minutes and 39.999 seconds).", durationMinValue: "The minimum value allowed for a Duration is -999999999999999 milliseconds (-11574074 days, -1 hour, -46 minutes and -39.999 seconds).", requiredPropertiesMissing: "Required properties missing.", stringLengthTooSmall: "String length %1$s is too small.", timeInvalidSeparatorHourMinute: "You must use a ':' to separate the hour and minute.", timeInvalidSeparatorMinuteSecond: "You must use a ':' to separate the minute and second.", timeInvalidSeparatorYearMonth: "You must use a '-' to separate the year and month.", timeInvalidSeparatorMonthDay: "You must use a '-' to separate the month and day.", typeDoesNotSupportLiteralDropdownAddendum: "To have an array that includes arrays in a JSON value, be sure in the literal text to put a space between array starting brackets like this '[ [' instead of using '[['.", typeDoesNotSupportLiteralDropdownError: "'%1$s' values do not support [[]] references.", valueMustBeInGivenFormat: "%1$s values need to be in the format '%2$s'.", typeNotFoundError: "The '%1$s' named '%2$s' could not be found.", valueNotAllowed: "'%1$s' is not allowed.", valueNotValidForTypeGeneric: "'%1$s' is not a valid '%2$s' value.", timeUseStringDoubleZero: "Use the string '00' for '%1$s'.", truncateStringSuggestion: "Truncate string to length: %1$s", typeCanBeConverted: "Convert the '%1$s' value to a '%2$s' value using the '%3$s' expression function." }, units: { dayUnitLabel: "Day", hourUnitLabel: "Hour", minuteUnitLabel: "Minute", monthUnitLabel: "Month", secondUnitLabel: "Second", yearUnitLabel: "Year" } }, json: { general: { customJSONLabel: "Custom JSON", jsonLabel: "JSON", jsonEditorTitle: "JSON Editor", jsonEditorSubtitle: "Enter JSON, string, number or boolean below.", openJsonLiteralEditor: "Click to add JSON literal value" }, genericError: { invalidJson: "Invalid JSON", jsonLengthExceedsCharacterLimit: "Input JSON must not exceed 32000 characters.", jsonMustNotBeUndefinedOrBlank: "JSON must not be undefined or blank.", jsonUnexpectedToken: "Unexpected token: %1$s", unexpectedEndOfJson: "Unexpected end of JSON input." }, positionError: { jsonError: "JSON error", jsonErrorWithPosition: "%1$s at position: %2$s", jsonErrorPosition: "%1$s:%2$s", jsonExpectedColonAfterPropName: "Expected ':' after property name in JSON", jsonExpectedCommaOrClosingCurlyAfterPropValue: "Expected ',' or '}' after property value in JSON", jsonExpectedNonWhitespaceCharacter: "Unexpected non-whitespace character after JSON", jsonExpectedPropNameOrClosingCurly: "Expected property name or '}' in JSON", jsonUnterminatedString: "Unterminated string in JSON" }, conversion: { jsonConvertExpressionToLiteralMessage: "Switching from expression to literal mode will reset the value. Do you wish to continue?", jsonConvertExpressionToLiteralTitle: "Convert JSON Expression To Literal", jsonConvertLiteralToExpressionMessage: "The generated JSON expression will be saved but you will not be able to return to literal mode without resetting the expression.", jsonConvertLiteralToExpressionTitle: "Convert JSON Literal To Expression", jsonConvertModesMessage: "Switching from %1$s mode to %2$s mode will reset the value. Do you wish to continue?", jsonConvertModesTitle: "Convert JSON %1$s to %2$s", toggleJsonStandardMode: "Toggle between JSON and standard mode" }, customJson: { switchModeModalTitle: "Switch to %1$s", switchModeMessage: "Switching from %1$s to %2$s mode will reset the value. Resetting the value will result in anything you have configured in %1$s mode being cleared. Would you like to proceed?", expressionToLiteralConversionMessage: "Switching from literal to expression mode will reset all input values. Resetting the values will result in anything you have configured in literal mode being cleared. Would you like to proceed?", literalToExpressionConversionMessage: "Switching from expression to literal mode will reset the input value. Resetting the value will result in anything you have configured in expression mode being cleared. Would you like to proceed?", switchModeWithErrorsModalTitle: "Switching from %1$s to %2$s with errors", switchJsonToStandardWithErrorsMessage: "There are issues in the current JSON configuration. If you switch back to Standard without resolving them, all fields will reset to their last valid values. Would you like to proceed?", switchStandardToJsonWithErrorsMessage: "There are issues with the current settings in Standard. These issues will persist in JSON. If you switch back to Standard without fixing them, all fields will reset to their last valid values. Would you like to proceed?", inputJson: "Input JSON", standardModeUnavailable: "Standard does not support editing properties with complex JSON structures (arrays, nested objects, etc.). Switch to JSON to edit.", outputJson: "Output JSON" }, input: { outputsLabel: "Outputs", standardLabel: "Standard", expressionLabel: "Expression", literalLabel: "Literal", inputsLabel: "Inputs" } }, lex: { addSessionVariable: "Add Session Variable", aliasNotFound: "The selected alias could not be found.", botAlias: "Bot Alias", botName: "Bot Name", initialIntentLabel: "Initial Intent Name", intents: "Intents", lexV2AliasDescription: "Language: '%1$s', Region: '%2$s'", lexV2BotDescription: "Region: '%1$s'", lexBotAlias: "Lex Bot Alias", lexV2BotAlias: "Lex V2 Bot Alias", lexV2Bot: "Lex V2 Bot", lexBot: "Lex Bot", mustSelectAlias: "An alias must be selected.", mustSelectBotName: "A bot name must be selected.", noSlots: "There are no slots defined for this intent.", lexAliasNotReady: "The selected alias has a status of '%1$s' in AWS. It must have a status of '%2$s' to be valid.", savedVersionOfAlias: "Flow is referencing a cached version of this alias. The alias may be out of date or deleted.", secondaryHeaderForVersion: "(Version %1$s)", selectAlias: "Select Bot Alias", selectBotName: "Select Bot Name", sessionVariable: "Session Variable", sessionVariables: "Session Variables", noSessionVariablesDefined: "No Session Variables defined", speechRecMustBeEnabled: "Speech recognition must be enabled in flow settings.", speechRecMustBeEnabledBecauseCommonModuleNeedsIt: "Speech recognition must be enabled because the Common Module '%1$s' uses speech recognition functionality.", startingAudio: "Starting Audio", unableToRetrieveBot: "Was unable to retrieve bot for selected alias.", botNameNotFound: "Selected bot name could not be found", inputTextLabel: "Bot Input Text", inputTextDescription: "The text to send to the Lex bot.", inputTextDescriptionForChat: "The text to send to the Lex bot. This is usually only set when chaining Lex bot actions." }, lostConnection: { backupFlowFoundMessage: "A backup flow with unsaved changes created %1$s was found.", badRequestMessage: "Architect could not perform the selected operation. Please report this error to your organization administrator.", buttonRetry: "Retry", buttonWait: "Keep Waiting", buttonRecoverBackup: "Recover these changes", connectionLost: "The connection to the cloud was lost. Press OK to login again.", connectionTimeoutNoRetry: "The cloud is not responding to requests. You can keep waiting if you are on a slow connection or refresh the page to start over.", connectionFailedNoRetry: "Requests to the cloud are failing. You can keep waiting if you are on a slow connection or refresh the page to start over.", connectionFailedServer: "Requests to the cloud are failing. You can retry the requests or refresh the page to start over.", connectionLostBackup: "Architect attempts to save the flow locally in browser storage when there are connection issues. After reconnecting and loading this flow, you will have an opportunity to recover the backup if it's available.", connectionLostBackupAlternative: "As an alternative, select Export Flow to download it to a local folder.", genericError: "Requests to the cloud are failing. Please try again.", lostCredentials: "You have been logged out of Genesys Cloud. Please log back in to continue.", recoveringBackup: "Recovering Backup", title: "Server Connection", titleDeleteBackup: "Discard backup changes" }, oauthClient: { label: "OAuth Client" }, botFlowSettings: { generalBotFlowSettings: "General Bot Flow Settings", titleWithSettings: "Bot Flow Settings", valueConfiguredInBotFlowSettingsWillBeUsed: "The value for '%1$s' configured in {{link.__BOT_FLOW_SETTINGS_NODE__, Bot Flow Settings}} will be used at flow runtime." }, workitemFlowSettings: { titleWithSettings: "Workitem Flow Settings" }, botFlowNluTemplates: { bankBotNluTemplateName: "Bank Bot", bankBotNluTemplateDescription: "An example bot that provides banking functionality.", blankBotNluTemplateName: "Blank Bot Flow", blankBotNluTemplateDescription: "An empty bot flow with no intents." }, outboundCallSettings: { contactListPlaceholder: "Select a contact list", defaultWrapupCodeLabel: "Default Wrapup Code", label: "Outbound Settings", propertiesLabel: "Contact List Properties", treeLabel: "Outbound", usingCachedContact: "Using last known properties" }, emailSendFlow: { emailSendFlowTypeDisplayName: "Email Send Flow", emailSendFlowsSectionLabel: "Email Send Flows", emailSendSettingsTreeNodeLabel: "Email Send" }, inboundEmailSettings: { autoGenHandling: "Inbound auto-generated email handling", creation: { errorEventHandlingInfo: "If no error event transfer queue is selected above, the flow will be configured with disconnect error event handling.", errorEventHandlingQueue: "Error event transfer Queue" }, label: "Inbound Email Settings", normalProcessing: "Process as normal", treeLabel: "Inbound Email" }, inQueueCallFlowSettings: { label: "In-Queue" }, inQueueFlowVariables: { flowHoldPrompt: "Hold prompt for the flow" }, inboundOutboundAndInQueueCallFlowVariables: { uuiData: "Contains the call control User to User Information (UUI) data set on the call." }, learning: { label: "Learning" }, securedActions: { securedActionsInformationalMessage: "Execution will take the '{{branch.__FAILURE__}}' path at flow runtime if no encryption key is configured for this organization.", outputMustBeSecureIfInputIsSecure: "'%1$s 'must be made secure if '%2$s' is secure.", variableMustBeMadeSecure: "Secure variable must be used for %s." }, slotTypes: { label: "Slot Types" }, knowledgeSettings: { errorNoKnowledgeBaseSelected: "Knowledge Base must be selected for this action", knowledgeBase: "Knowledge Base", knowledgeSetting: "Knowledge Configuration", knowledgeSettingShort: "Configuration", defaultKnowledgeBase: "Default Knowledge Base", knowledgeAnswerContentTypeStandardLabel: "Standard", knowledgeAnswerContentTypeHighlightLabel: "Highlight", knowledgeAnswerContentTypeGenerativeLabel: "Generative", knowledgeAnswerContentTypeSwitcherLabel: "Content Type", knowledgeAnswerContentTypeSwitcherDescription: "Choose how the bot will format the content when a successful Knowledge answer is matched.", knowledgeAnswerContentTypeGenerativeCardHeader: "Answer Generation", knowledgeAnswerContentTypeStandardCardText: "Standard will surface the entire matched Knowledge answer.", knowledgeAnswerContentTypeHighlightCardText: "Answer Highlight will highlight the answer within a matched Knowledge answer.", knowledgeAnswerContentTypeGenerativeCardText: "Answer Generation will create an AI-generated response to the question from a matched Knowledge answer.", knowledgeAnswerHighlightLabel: "Answer Highlight", knowledgeAnswerHighlightDescription: "Enable or disable Answer Highlight on matched Knowledge answers.", knowledgeAnswerHighlightDisabled: "Answer Highlight disabled.", knowledgeAnswerHighlightEnabled: "Answer Highlight enabled.", knowledgeAnswerHighlightFlowProgressionLabel: "Flow Progression Label", knowledgeAnswerHighlightFlowProgressionDescription: "Label used for the quick reply to progress the flow.", knowledgeAnswerHighlightFullArticleLabel: "Full Article Label", knowledgeAnswerHighlightFullArticleDescription: "Label used for the quick reply to view full knowledge answer.", knowledgeArticle: "Knowledge Article", knowledgeArticlePlaceholder: "Select Knowledge Article", knowledgeArticleNotFound: "Knowledge Article not found", knowledgeArticleMismatch: "Selected Knowledge Article does not belong to Knowledge Base configured on the flow", knowledgeNotConfigured: "There are no articles available because no Knowledge Base is configured. In the flow '{{settings.__KNOWLEDGE__}}' settings, please select a Knowledge Base and try again.", knowledgeBaseDescription: "Once you select a Knowledge Base, you can enable Knowledge on one or more Ask for Intent actions. Only published Knowledge Bases whose language is compatible with the flow's supported language are available for selection.", knowledgeBaseV3Description: "Select a Knowledge Base to continue. You can enable Knowledge for one or more Ask for Intent actions. Only published items matching the flow's supported languages are available.", knowledgeSettingDescription: "Select a Knowledge Configuration to continue. You can enable Knowledge for one or more Ask for Intent actions. Only published items matching the flow's supported languages are available.", knowledgeBaseDocument: "Knowledge Base Document", knowledgeBaseDocumentPlaceholder: "Select an optional Knowledge Base Document", knowledgeBaseDocumentNotFound: "Knowledge Base Document not found", knowledgeBaseItemCreatedDescription: "Created %1$s", knowledgeBaseItemDescription: "Modified %1$s", knowledgeConfirmationDisambiguationLabel: "Confirmation and Disambiguation", knowledgeDisambiguationLabel: "Disambiguation", knowledgeBasePlaceholder: "Select an optional Knowledge Base", knowledgeSettingPlaceHolder: "Select an optional Knowledge Configuration", knowledgeWorkBench: "Knowledge Work Bench", knowledgeBaseNotFound: "Knowledge Base not found", knowledgeSettingNotFound: "Knowledge Configuration not found", languageDoesNotSupportKnowledge: "Knowledge is unavailable for this language.", knowledgeBaseNotFoundForLanguage: "Knowledge Base not found for %1$s.", knowledgeSettingNotFoundForLanguage: "Knowledge Configuration not found for %1$s.", knowledgeBaseNotSelectedForLanguage: "Knowledge Base not selected for %1$s.", knowledgeSettingNotSelectedForLanguage: "Knowledge Configuration not selected for %1$s.", knowledgeBaseNoDefaultSelected: "A default language knowledge base must be selected in order to use additional language knowledge bases.", knowledgeSettingNoDefaultSelected: "A default language knowledge configuration must be selected in order to use additional language knowledge configurations.", knowledgeConfigurationNotEnabled: "Knowledge Configurations are not available in this organization.", knowledgeBaseManageDefault: "Manage the default knowledge base: ", knowledgeSettingManageDefault: "Manage the default knowledge configuration: ", knowledgeBaseManageAlternativesPreposition: "Note:", knowledgeBaseManageAlternatives: "Alternative Knowledge Bases can be managed in: ", knowledgeSettingManageAlternatives: "Alternative Knowledge Configurations can be managed in: ", knowledgeSettingManageOptions: "Many knowledge configuration options are now managed through ", knowledgeBaseNotSupportedForLanguage: "Knowledge base functionality is not available for the language '%1$s'.", knowledgeInitialResponseFollowupLabel: "Answer Follow-up", knowledgeFollowUpSwitcherLabel: "Knowledge Follow-up", knowledgeFollowUpSwitcherDescription: "Choose between a statement or a reusable task as a follow-up to a knowledge answer.", knowledgeFollowUpStatement: "Follow-up Statement", knowledgeFollowUpTaskLabel: "Follow-up Task", knowledgeFollowUpTaskDescription: "Select or create a reusable task to follow up a knowledge answer.", knowledgeFollowUpTaskErrorMessage: "No follow-up task assigned.", knowledgeInitialResponseFollowupDescription: "Wording the bot will use as a follow-up to a Knowledge answer.", knowledgeInitialResponseMultiLabel: "Multiple Answers Introduction", knowledgeInitialResponseMultiDescription: "Wording the bot will use to introduce a numbered list of matching Knowledge answers, in the case where multiple good matches are found in the Knowledge Base.", knowledgeInitialResponseMultiRetryLabel: "Multiple Answers Retry", knowledgeInitialResponseMultiRetryDescription: "Wording the bot will use to re-introduce a numbered list of matching Knowledge answers, in the case where the user's first attempt to choose a number was unsuccessful.", knowledgeInitialResponseSingleLabel: "Single Answer Introduction", knowledgeInitialResponseSingleDescription: "Wording the bot will use prior to speaking or printing a single Knowledge answer. For example, 'I found the following information:'", knowledgeConfirmationToggleLabel: "Knowledge Confirmation", knowledgeConfirmationToggleDescription: "Enables or disables the '%1$s' confirmation once the answer has been presented.", knowledgeConfirmationLabel: "Knowledge Confirmation Response", knowledgeConfirmationDescription: "Wording the bot will use after speaking or printing a single Knowledge answer. For example, 'Did this answer your question?'", knowledgeContextSearchLabel: "Search with context", knowledgeContextSearchDescription: "Enable to keep context throughout different queries.", knowledgeContextSearchEnabled: "Search with context enabled", knowledgeContextSearchDisabled: "Search with context disabled", knowledgeContextSearchDescriptionNote: "This value overrides the setting from the Knowledge Workbench.", knowledgeLabel: "Knowledge", knowledgeMaxNumAnswersReturned: "Maximum Number of Answers Returned", knowledgeMaxNumAnswersReturnedDescription: "The maximum number of answers suggested to the participant if there are multiple good matches for their question.", knowledgeMultiArticleLabel: "Multiple Article Generation", knowledgeMultiArticleDescription: "Generate a single answer from multiple knowledge articles.", knowledgeMultiArticleEnabled: "Multiple Sources enabled", knowledgeMultiArticleDisabled: "Multiple Sources disabled", knowledgeNoMatchLabel: "Reject All Answers", knowledgeNoMatchDescription: "Wording for the final option when displaying multiple answers. For example, 'None of these'. Choosing this option will reject all of the proposed answers.", knowledgePathLabel: "Knowledge Path", knowledgePathStatementLabel: "Statement", knowledgeResponseBias: "Response Bias", knowledgeSendFeedbackEnabled: "Knowledge Confirmation enabled.", knowledgeSendFeedbackDisabled: "Knowledge Confirmation disabled.", knowledgeSettingSourcesLabel: "Sources", responseBiasDescription: "Controls which type of interpretation (Knowledge answer or Intent) is more likely to be suggested by the bot in response to a participant's input.", responseBiasModes: { responseBiasModeKnowledge: "Knowledge", responseBiasModeIntents: "Intents", responseBiasModeNeutral: "Neutral", responseBiasKnowledgeDescription: "Bot will favor Knowledge path if an overlap occurs", responseBiasIntentDescription: "Bot will favor Intent path if an overlap occurs", responseBiasNeutralDescription: "Equal weight given to Intent and Knowledge paths" }, knowledgeSettingsModeLabel: "Knowledge Settings Mode", knowledgeSettingsModeDescription: "Controls how knowledge matches are handled at runtime. By selecting 'custom' you will be able to choose a reusable task that will be executed when a knowledge match occurs.", knowledgeSettingsDisambiguationDisabled: "Disambiguation from multiple sources is disabled.", knowledgeSettingsFeedbackDisabled: "Feedback is disabled for multiple sources.", knowledgeSettingsModes: { standard: "Standard", custom: "Custom", standardDescription: "Standard knowledge settings mode", customDescription: "Custom knowledge settings mode" }, knowledgeSettingsModeModal: { switchToStandardTitle: "Switch to Standard", switchToCustomTitle: "Switch to Custom", switchToStandardMessage: "Returning to standard will disconnect the single reusable task. The bot will now favor the standard global knowledge settings.", switchToCustomMessage: "Switching to custom allows you to configure global knowledge settings such as answer introduction, disambiguation, feedback and follow-up to be done in a single reusable task.", switchToStandardMessageBot: "Returning to standard will result in any custom knowledge handling being disconnected. The bot will now favor the standard global knowledge settings.", switchToCustomMessageBot: "Switching to custom allows you to configure global knowledge settings such as answer introduction, disambiguation, and feedback under the knowledge path of an Ask for Intent action.", switchToCustomInlineAlert: "Note: Intended for advanced users to configure global knowledge settings in a single reusable task.", switchToCustomInlineAlertBot: "Intended for advanced users to configure global knowledge settings." }, knowledgeVersionModal: { switchToKnowledgeBaseTitle: "Switch to Knowledge Base", switchToKnowledgeBaseMessage: "Switching to Knowledge Base may remove some of your current Knowledge Configuration settings.", switchToKnowledgeSettingTitle: "Switch to Knowledge Configuration", switchToKnowledgeSettingMessage: "Switching to Knowledge Configuration may remove some of your current Knowledge Base settings." }, knowledgeCustomHandlerTaskLabel: "Knowledge Task", knowledgeCustomHandlerTaskDescription: "Select or create a reusable task to configure custom knowledge settings which includes, but is not limited to: answer introduction, disambiguation, feedback, and follow-up. More information and best practices can be found in the Resource Center.", knowledgeCustomHandlerTaskErrorMessage: "No custom knowledge task assigned.", openKnowledgeInNewTab: "Open Knowledge Workbench in a new tab", knowledgeName: "Name", knowledgeDescription: "Description", knowledgeNoDescription: "No description", knowledgeFaqCount: "FAQ Count", knowledgeArticleCount: "Article Count", knowledgeDateCreated: "Date Created", knowledgeDateLastModified: "Last Modified", welcomeArticle: "Welcome Article", welcomeArticleDescription: "Choose a document from a Knowledge Base and that document's wording will be used by the bot when session starts.", knowledgeArticlesCount: "%1$s Article(s)", knowledgeFaqsCount: "%1$s FAQ(s)", tabs: { general: "General", generalTitle: "Bias", generalSubtitle: "Configure what response type is favored by the bot.", answer: "Answer", answerTitle: "Answer", answerSubtitle: "Configure how a Knowledge answer will be presented.", disambiguation: "Disambiguation", disambiguationTitle: "Disambiguation", disambiguationSubtitle: "Configure how to resolve ambiguity on surfaced answers.", feedback: "Feedback", feedbackTitle: "Feedback", feedbackSubtitle: "Configure feedback for full Knowledge answers & answer highlights.", followUp: "Follow-up", followUpTitle: "Follow-up", followUpSubtitle: "Configure next steps post serving of a Knowledge answer.", customTitle: "Custom", customSubtitle: "Configure custom knowledge settings.", customTitleBot: "Custom Handling", customTextBot: "Enable a Knowledge path on any Ask for Intent action to manage how knowledge is presented including answer introduction, disambiguation and feedback. More information and best practices can be found in the {{link.__RESOURCE_CENTER_URL_CUSTOM_KNOWLEDGE__, Resource Center}}.", customDescription: "Configure custom global knowledge handling here." } }, botSessionViewer: { utteranceHistoryLabel: "Utterance History", optimizationDashboardLabel: "Optimization Dashboard" }, intentMiner: { intentMinerLabel: "Intent Miner" }, pathDiscovery: { pathDiscoveryLabel: "Journey Flows" }, previewWidget: { previewWidgetLabel: "Test", previewWidgetResetChatLabel: "Reset Chat", previewWidgetStartChatLabel: "Start Chat", previewWidgetCloseChatLabel: "Close Chat", previewWidgetEnabledTooltip: "Test your published bot", previewWidgetNotPublishedTooltip: "You must publish your bot first in order to use this feature", previewWidgetOldVersionTooltip: "Your work in progress is out of date, please publish again in order to test your bot", previewWidgetVersionMessage: "You are currently testing flow version %1$s", previewWidgetSessionDisconnected: "The session has ended." }, surveyInviteFlowVariables: { survey: "Information about the survey associated with the flow.", customerContact: "The External Contact for the customer associated with this survey invite. If there is no customer contact, the value will be NOT_SET.", customerOrganization: "The External Organization for the customer associated with this survey invite. If there is no customer organization, the value will be NOT_SET.", surveyDispositions: "The available survey disposition values.", conversationId: "The ID of the completed conversation associated with this survey invite.", url: "The URL that will link to the survey.", conversationType: "The conversation type associated with this survey invite. Valid values are 'call', 'callback', 'chat', 'cobrowse', 'email', 'screenShare', 'socialExpression', 'videoComm' or 'unknown' if not one of the previous types.", customerAddress: "The address for the customer associated with this survey invite.", conversationStartDateTime: "The starting DateTime for the conversation associated with this survey invite.", conversationEndDateTime: "The ending DateTime for the conversation associated with this survey invite.", conversation: "Information about the conversation associated with the flow.", conversationTypes: "The available conversation type values." }, surveyInvite: { createFlowInfo: "Survey Invite flows are launched after a conversation is complete.", createFlowInfoWebPrefix: "Web Survey Invite flows are launched after a conversation is complete." }, objectValueMismatch: { dataType: "The data type '%1$s' does not match the data type of '%2$s'", default: "'%1$s' does not match '%2$s'.", incompatible: "The data is incompatible.", input: "The variable input settings do not match.", name: "The name of '%1$s' does not match the name of '%2$s'.", output: "The variable output settings do not match." }, placeholders: { select: "Select a %1$s", selectAn: "Select an %1$s", selectThe: "Select the %1$s" }, playAudioOnSilence: { allowedRepeatCount: "Allowed Retry Count", allowedRepeatCountDescription: "Number of attempts to replay audio if audio is interrupted.", actualRepeatCount: "Actual Retry Count" }, positionInQueue: { ahead: "Ahead", aheadExample: "e.g. There are four callers ahead of you in the queue.", number: "Position", numberExample: "e.g. Your position in the queue is five.", ordinal: "Ordinal Position", ordinalExample: "e.g. You are the fifth caller in the queue.", playbackMode: "Playback Mode", positionInQueue: "Position in Queue" }, printFlow: { generate: "Generate Document", idCallout: "Next action: ID %1$s", error: "There was an error while generating the flow printout.", flowVariables: "Flow Variables", noActions: "This %1$s has no actions.", noConfigurationOptions: "There are no print configuration options available.", noItems: "No items", noTts: "", pageNum: "Page %1$s", popupBlocked: "The new tab was blocked by your browser. Please allow popups by clicking the prompt at the top of your browser.", printFlow: "Print Flow", printFormatNotice: "Architect flow print documents are formatted for US Letter page size.", printView: "%1$s - Print View", selectLanguage: "Select language to use for audio and speech recognition content", stateVariables: "State Variables - %1$s", botStateVariables: "Bot Variables - %1$s", systemVariables: "System Variables", taskVariables: "Task Variables - %1$s", letter: "Letter", a4: "A4", paperSize: "Paper Size:" }, reportError: { alertMessage: "Be sure to check out our Resource Center at {{link.__RESOURCE_CENTER_URL_NEW_WINDOW__}} for quick and detailed information on your questions or issues.", title: "Report Error", issueTypeLabel: "What best describes the issue:", issueTypes: { question: "Question", problem: "Problem", technicalIssue: "Technical Issue", nonTechnicalIssue: "Non-Technical Issue" }, priorityLabel: "Please determine the priorty of this issue:", priority: { low: "Low", medium: "Medium", high: "High" }, shortDescriptionLabel: "What best describes the functionality area:", longDescriptionLabel: "Please provide as much detail as possible:" }, searchExternalContacts: { actionInformationalMessage: "If there is one search result, execution will take the '%1$s' output with the matching External Contact as the first element in the specified External Contact Results collection.", externalContactResults: "External Contact Results", searchTermDescription: "A string representation of the phone number, email address or Twitter handle of the contact." }, secureData: { extractWarning: "I acknowledge by use of this action that sensitive information may be logged. I intend to extract this data and use it in a non-secured manner.", extractWarningAcknowledgement: "'%1$s' acknowledged the security risk with using this action on %2$s.", extractWarningAcknowledgementInvalidUser: "'%1$s' acknowledged this security risk on %2$s but that user is no longer valid. A new acknowledgment is required.", extractWarningValidationError: "Secure data risk acknowledgement has not been checked.", flowIndicatorTooltip: "This flow uses secure data. Click to search for all usages...", notUsingSecureDataWarning: "There is no secure data being read. This action is meant to work with secure data.", notUsingSecureData: "Action is not referencing any secure data", resetAcknowledgementTitle: "Reset Acknowledgement", resetAcknowledgementMessage: "Are you sure you want to reset the secure data acknowledgement?", secureDataIndicatorTooltip: "This action uses secure data", secureDataIndicatorFlowTooltip: "This flow uses secure data", secureVariable: "This variable is secure", variableInputCannotBeSecure: "Input variables cannot be set to secure", variableOutputWarning: "Output variables cannot be set to secure", secureItemSearch: "Secure Item Search", secureData: "Secure Data" }, sendAutoReply: { sendAutoReplyOptions: "Additional Options", sendBcc: "Bcc Addresses", sendBccDescription: "Bcc EmailAddresses to include on the email.", sendBody: "Message Body", sendBodyDescription: "HTML message body for the email.", sendCc: "Additional Cc Addresses", sendCcDescription: "Additional Cc EmailAddresses to include on the email.", senderOnly: "Reply to Sender", senderOnlyDescription: "Only the original sender is included in the To list. No initial Cc list is included.", sendFrom: "Override From", sendFromDescription: "An EmailAddress override for the default 'from' address for the route. If specified, it should match the configured route's domain.", sendReplyTo: "Override Reply To", sendReplyToDescription: "An EmailAddress override for the default 'reply-to' address for the route.", sendReplyToOptions: "Reply Configuration", sendToAll: "Reply to All", sendToAllDescription: "The initial To and Cc lists includes all recipients from the original email." }, sendInteractiveApplication: { applicationName: "Application Name", applicationNamePlaceholder: "Enter an Application Name", applicationUrl: "Application URL", applicationUrlPlaceholder: "Enter an Application URL", receivedMessage: "Received Message", sendApplicationSupportNoteApple: "Send Application is only available for Apple Messages for Business. Using it on other channels will take the failure path.", titlePlaceholder: "Enter a Title" }, sendKnowledgeFeedback: { knowledgeArticleLabel: "Knowledge Article", knowledgeArticleDescription: "The Knowledge Base Document to send feedback on.", knowledgeSearchIdLabel: "Knowledge Search ID", knowledgeFeedbackLabel: "Knowledge Feedback", knowledgeFeedbackDescription: "Provide feedback for associated Knowledge Articles.", negative: "Negative", negativeDescription: "Send negative feedback.", positive: "Positive", positiveDescription: "Send positive feedback.", knowledgeSettingAlert: "This action is unavailable for this knowledge type. Use session-level variables or answer controls instead. This action will automatically use the Failure action path." }, sendNotification: { chatMessageDescription: "The chat message to send to the group.", chatMessageLabel: "Chat Message", defaultEmailStyle: "Default Email Style", defaultEmailFromAddress: "Default Email From", useDefaultEmailFromAddress: "Use 'no-reply@[region].com'", emailNotificationStyleLabel: "Email Notification Style", emailNotificationStyleDescription: "This specifies the email format to use when sending the email. If this setting value at flow runtime evaluates to a value other than one of the allowable values, 'plain' will be used.", emailFromLabel: "Email From", emailFromDescription: "The email address to use as the sender of the email for an email notification. If the value evaluates to NOT_SET, a default of email address of 'no-reply@[region].com' will be used. If the provided email address is SET, and the domain is not a Genesys Cloud verified domain, the action will take the failure path.", emailStyleHtmlLabel: "HTML", emailStylePlainLabel: "Plain", errorTypeLabel: "Error Type", errorMessageLabel: "Error Message", noNotificationBody: "No Body", noNotificationSubject: "No Subject", notificationBodyLabel: "Notification Body", notificationBodyDescription: "This is the contents to use for the notification. For example, if the notification type is 'email' this will be the body of the email that is sent. If a NOT_SET String is provided for this property, an empty/blank String will be used.", notificationSubjectLabel: "Notification Subject", notificationSubjectDescription: "The notification subject. For example, if the notification type is 'email' this will be the subject of the email that is sent. If a NOT_SET String is provided for this property, an empty/blank String will be used.", notificationTypeChatLabel: "Chat", notificationTypeDescription: "This specifies the type of notification that should be sent.", notificationTypeEmailLabel: "Email", notificationTypeLabel: "Notification Type", sendToGroupDescription: "The group to send a chat message to.", sendToGroupLabel: "Send to Group", sendToUsersLabel: "Send to Users", sendToUsersDescription: "This collection specifies Genesys Cloud user recipients of the notification. If the collection is NOT_SET, the flow will invoke error handling. If the collection contains an amount of Users outside the minimum and maximum items range, the action will take the failure path. If the User collection contains a NOT_SET User, that User will be ignored. If the User collection contains only NOT_SET Users, the action will take the failure path." }, sendResponse: { messageBodyStyleDescription: "An optional setting that the chat client can use to visually differentiate messages.", messageBodyStyleLabel: "Message Style", messageBodyStyleWatermark: "Select the style of message to send", noMessageBodyStyle: "No message style selected", messageBodyStyleNotice: "Notice", messageBodyStyleStandard: "Standard", messageBodyStyles: "The available message styles.", sendBody: "Message Body", sendBodyDescription: "The plain text message body for the response." }, sendRichLink: { body: "Body", bodyDescription: "The body text of the rich link message.", footer: "Footer", footerDescription: "The footer text of the rich link message.", footerNoValueRuntimeEvalStr: "Do not send a footer", footerNoValueSelectionLabel: "No Footer", headerImage: "Header Image", headerImageDescription: "The header image of the rich link message.", headerText: "Header Text", headerTextDescription: "The header text of the rich link message.", headerType: "Header Type", headerTypeDescription: "The header type of the rich link message.", headerTypeImageChoice: "Image", headerTypeNoValueRuntimeEvalStr: "Do not send a header", headerTypeNoValueSelectionLabel: "No Header", headerTypePlaceholder: "Select a header type value", headerTypeTextChoice: "Text", showNote: "Send Rich Link is currently only available for WhatsApp.", uiPanelDescription: "Configure rich link message", uiPanelName: "Rich Link Message", urlInvalidWarning: "A message containing an invalid URL will take the failure path if one is configured.", urlLabel: "URL Label", urlLabelDescription: "The URL label of the rich link message.", urlValue: "URL Value", urlValueDescription: "The URL for the rich link message." }, states: { editState: "Edit State", multipleNames: "Another state has the same name", noTerminatingAction: "The state does not contain a terminating action", states: "States" }, botStates: { goToBotState: "Go to Bot", noTerminatingAction: "The bot does not contain a terminating action" }, switch: { addCase: "Add Case", caseNum: "Case %1$s", casesHeader: "Cases (%1$s)", default: "Default", defaultCase: "Default Case", defaultCaseDescription: "This path will be taken if no other cases apply.", evaluationStyle: "Evaluation Style", expressionTypeInvalid: "Expression type of %1$s cannot be used for Switch statement", firstTrueCase: "Take path of first case that returns True", literalValuesWillReset: "Any literal values will be reset.", matchExpression: "Take path of first case that matches an expression", mustChangeType: "You must change the cases' types to match the Switch Expression's type.", switchCases: "Change cases to %1$s" }, flowInvokingEvents: { unknownFlowInvokingEvent: "The event '%1$s' has no description.", workitemCreatedDescription: "This is the event type for a workitem when it is created.", workitemDateBasedEventDescription: "This is the event type for a workitem when a date-based event occurs.", workitemStatusChangedDescription: "This is the event type for a workitem when its status changes." }, submitVoiceSnippet: { destinationVoiceSnippetIdDescription: "For destinations that return an output ID upon successful Voice Snippet submission, this output setting can be used to bind to that returned ID at flow runtime. If the submission is not successful, any value specified on this setting is left alone. This setting is only enabled when the currently selected destination supports returning an ID.", destinationVoiceSnippetIdLabel: "Destination ID", voiceSnippetDestinationLabel: "Destination", voiceSnippetDestinationDescription: "The destination where the Voice Snippet should be submitted.", voiceSnippetServiceLabel: "Voice Snippet Service", voiceSnippetToSubmitDescription: "The Voice Snippet to submit at runtime. If the value is a NOT_SET Voice Snippet, execution will take the '%1$s' output at runtime.", voiceSnippetToSubmitLabel: "Voice Snippet", voicemailServiceLabel: "Voicemail Service" }, systemVariables: { callAni: "The caller\u2019s origination phone number for the active call. ( Automatic Number Identification )", callContactId: "The ID of contact to whom this flow is connected.", callConversationId: "The conversation ID for the active call", callCalledAddress: "The called address that caused this flow to be entered. For a new inbound call, this value is the same as Call.CalledAddressOriginal, but changes for a flow entered by a transfer, for example.", callCalledAddressOriginal: "The called address received when the call first entered the system; typically the phone number dialed by the caller to reach the system. For a given call, this value should never change.", callCurrentQueue: "Reflects the current queue for the call.", callEstimatedWaitTime: "The current queue estimated wait time for the call.", callExternalTag: "The external tag for the active call.", callPositionInQueue: "The current position in queue for the call.", callRemoteName: "Remote name for the active call", chatConversationId: "The conversation ID for the active chat.", chatGuest: "The guest associated with this chat.", chatJourneyContext: "The journey context associated with this chat.", conversationPriorityVariableDescription: "This variable holds the current priority of the conversation. The priority value will be greater than or equal to -25,000,000 and less than or equal to 25,000,000. If the priority cannot be determined or is not applicable for the running flow instance this returns a NOT_SET Integer.", conversationACDSkillsVariableDescription: "This variable holds the ACD skills for the conversation.", conversationLanguageSkillVariableDescription: "This variable holds the language skill for the conversation.", emailConversationId: "The conversation ID for the active email.", emailCurrentQueueVariableDescription: "Reflects the current queue for the email.", emailDraftConversationId: "The conversation ID for the draft email.", emailDraftCurrentQueueVariableDescription: "Reflects the current queue for the draft email.", emailDraftVariableDescription: "The draft email as it existed when the flow began.", emailEstimatedWaitTimeVariableDescription: "The current queue estimated wait time for the email.", emailPositionInQueueVariableDescription: "The current position in queue for the email.", emailExternalTag: "The external tag for the active email.", emailMessage: "The email associated with this flow.", emailLanguageSkill: "The language skill associated with the active email.", externalContactId: "The External Contact identifier of the external participant on the conversation. If not available, this will be a NOT_SET String.", flowCampaign: "The Campaign for this flow.", flowContact: "The contact to whom this flow is connected.", flowContactList: "Contact list for this flow", flowInvocationData: "The invocation data supplied when launching the flow.", flowIsTest: "Indicates whether or not the flow is running in debug mode.", flowStartTime: "The UTC datetime when the flow started execution", flowVersion: "The version of the active flow", flowWrapupCode: "The flow Wrapup Code", infoCurrencies: "List of currencies", infoDateTimes: "List of datetimes", infoLanguages: "List of languages", infoRegions: "List of regions", interactionId: "The ID of the active interaction", interactionLanguage: "The lower case IETF language tag for the language in which the flow is currently running. If there is no current flow language, this returns a NOT_SET String.", invocationData: "The invocation data supplied by the 'Set Post-Flow' action for the launched flow. If no invocation data is available, this returns a NOT_SET JSON value.", lastCollectionModeDescription: "The collection mode for the participant's most recent input. This value is overwritten each time the participant provides new input. If there has been no input, this will be a NOT_SET String. Valid values are %1$s.", maxDate: 'The maximum value allowed for a Date, which is December 31st, 2200 ("2200-12-31")', maxDateTime: 'The maximum value allowed for a Date Time, which is December 31st, 2200 at 11:59:59.999PM ("2200-12-31T23:59:59.999Z")', maxDuration: "The maximum value allowed for a Duration, which is 999999999999999 milliseconds (11574074 days, 1 hour, 46 minutes and 39.999 seconds)", maxInt: "The maximum value allowed for an Integer, which is %1$s", maxTime: 'The maximum value allowed for a Time, which is 11:59:59.999PM ("23:59:59.999")', menuLastCollectionNoMatch: "Returns whether or not customer/external participant input did not match a menu choice. At runtime this returns a NOT_SET Boolean if flow execution has not solicited any menu choice input yet.", menuLastCollectionNoInput: "Returns whether or not there was no customer/external participant input detected for a menu choice when handling the last menu or sub-menu configured on the flow. At runtime this returns a NOT_SET Boolean if flow execution has not solicited any menu choice input yet.", messageCurrentQueueVariableDescription: "Reflects the current queue for the message.", messageEstimatedWaitTimeVariableDescription: "The current queue estimated wait time for the message.", messagePositionInQueueVariableDescription: "The current position in queue for the message.", messagingConversationId: "The conversation ID for the active message.", messageExternalTag: "The external tag for the active message.", messagingIsAuthenticated: "Indicates whether or not the message is in an authenticated conversation.", messagingIsNewConversation: "Indicates whether or not the message is in a new conversation.", messageJourneyContextVariableDescription: "The journey context associated with this message. If no journey context is available, this returns a NOT_SET Journey Context.", messageMessage: "The message associated with this flow.", minInt: "The minimum value allowed for an Integer, which is %1$s", minDate: 'The minimum value allowed for a Date, which is January 1st, 1800 ("1800-01-01")', minDateTime: 'The minimum value allowed for a Date Time, which is January 1st, 1800 at 12:00:00AM ("1800-01-01T00:00:00.000Z")', minDuration: "The minimum value allowed for a Duration, which is -999999999999999 milliseconds (-11574074 days, -1 hour, -46 minutes and -39.999 seconds)", minTime: 'The minimum value allowed for a Time, which is 12:00:00AM ("00:00:00.000")', sessionActiveIntent: "The currently active intent for the session. If there is no current intent, this will be a NOT_SET String.", activeOutputMode: "The active mode for media output. Valid values are 'voice' and 'text'", sessionChannelType: "The channel type of the conversation associated with this bot flow instance. Valid values are 'call', 'chat' or 'messaging'.", sessionChannelTypeVoiceSurvey: "The channel type of the conversation associated with this voice survey flow instance. It has one valid value: 'call'.", sessionConversationId: "The ID of the conversation associated with this bot flow instance.", sessionConversationIdVoiceSurvey: "The ID of the conversation associated with this voice survey flow instance.", sessionLastCollectionConfidence: "The confidence level from the speech to text engine for the participant's most recent utterance in an '%1$s' action, excluding those for built-in confirmation or disambiguation questions. If there has been no such utterance, this will be a NOT_SET Decimal. Otherwise the value will be in the inclusive range of 0.0 to 1.0.", sessionLastCollectionConfidenceVoiceSurvey: "The participant\u2019s most recent utterance confidence in an '%1$s' action or an Ask Survey Question action, excluding those for built-in confirmation or disambiguation questions. If there has been no such utterance, this will be a NOT_SET Decimal. Otherwise the value will be in the inclusive range of 0.0 to 1.0.", sessionLastCollectionUtterance: "The participant\u2019s most recent utterance in an '%1$s' action, excluding those for built-in confirmation or disambiguation questions. If there has been no such utterance, this will be a NOT_SET String.", sessionLastCollectionUtteranceVoiceSurvey: "The participant\u2019s most recent utterance in an '%1$s' action or an Ask Survey Question action, excluding those for built-in confirmation or disambiguation questions. If there has been no such utterance, this will be a NOT_SET String.", sessionLastCompletedIntent: "The name of the intent that was active in the most recently completed '%1$s' action. If no '%1$s' actions have completed yet, this will be a NOT_SET String.", sessionLastKnowledgeAnswer: "The answer wording of the last Knowledge question whose answer was surfaced to the participant.", sessionLastKnowledgeGenerated: "The answer wording of the last Knowledge question whose answer was generated for the participant.", sessionLastKnowledgeQuestion: "The question wording of the last Knowledge question whose answer was surfaced to the participant.", sessionLastKnowledgeSearchId: "This ID uniquely identifies the Knowledge search request that was made during the most recently completed 'Digital Menu' or 'Wait for Input' action execution during its processing to get Knowledge Base Documents.", sessionLastNLUCollectionConfidence: "The confidence level from the NLU engine for the participant's most recent utterance in an '%1$s' action, excluding those for built-in confirmation or disambiguation questions. If there has been no such utterance, this will be a NOT_SET Decimal. Otherwise the value will be in the inclusive range of 0.0 to 1.0", sessionSource: "The type of application or mechanism that the end user is employing to communicate with the bot. Valid values are 'apple', 'applebusinesschat', 'discord', 'facebookmessenger', 'genesyschatwidget', 'line', 'phone', 'signal', 'slack', 'telegram', 'webchat', 'whatsapp' or 'unknown' if not one of the previous values.", sessionSourceVoiceSurvey: "The type of application or mechanism that the end user is employing to communicate with the voice survey. It has one valid value: 'phone'.", surveyForm: "The Survey Form associated with this flow.", workitem: "The workitem associated with this flow.", workitemEventType: "The workitem event type that started this flow. Valid values for event types can be found in Workitem Flow settings. If an event was not responsible for the flow instance, this will return a NOT_SET String.", workitemOriginal: "The workitem as it existed prior to the event that caused this flow instance to run.", voicemailDebugEntityTypeDescription: "If debug is enabled for the flow, this variable indicates which voicemail entity should be used when testing. A value of '%1$s' tells the flow runtime to use the Group value specified in the Voicemail.DebugGroup variable for the voicemail entity. A value of '%2$s' tells the flow runtime to use the Queue value specified in the Voicemail.DebugQueue variable for the voicemail entity. A value of '%3$s' tells the flow runtime to use the User value specified in the Voicemail.DebugUser variable for the voicemail entity. If the value is NOT_SET, this tells the flow runtime to use no voicemail entity when testing. This is typically used to ensure that changes to flow logic will handle the case of no voicemail entity being available at voicemail flow runtime.", voicemailDebugEntityTypeNoValueLabel: "No Voicemail Entity", voicemailDebugGroupDescription: "If debug is enabled for the flow and the Voicemail.DebugEntityType variable value is '%1$s', this specifies the Group that should be used at flow runtime when testing.", voicemailDebugQueueDescription: "If debug is enabled for the flow and the Voicemail.DebugEntityType variable value is '%1$s', this specifies the Queue that should be used at flow runtime when testing.", voicemailDebugUserDescription: "If debug is enabled for the flow and the Voicemail.DebugEntityType variable value is '%1$s', this specifies the User that should be used at flow runtime when testing.", voicemailEntityGreetingAudioDescription: "Returns an Audio value for the voicemail greeting of the entity for which the voicemail flow is running. If no entity is available or no voicemail greeting audio is available for the entity, a NOT_SET Audio value is returned.", voicemailEntityNameAudioDescription: "Returns an Audio value for the name of the entity for which the voicemail flow is running. If no entity is available or no entity name audio is available for the entity, a NOT_SET Audio is returned.", voicemailEnabledDescription: "Returns whether or not voicemail is enabled for the entity for which the voicemail flow is running. If no entity is available, this returns false.", voicemailEntityNameDescription: "The name of the entity for which the voicemail flow is running. For example, if the voicemail flow is running for a queue, this will return the name of the queue.", voicemailEntityTypeDescription: "The type of entity for which the voicemail flow is running. Valid values are 'group', 'queue' or 'user'.", voicemailGroupDescription: "If the voicemail flow is running on behalf of a group, this variable will provide information about the group. Otherwise it will be a NOT_SET Group.", voicemailQueueDescription: "If the voicemail flow is running on behalf of a queue, this variable will provide information about the queue. Otherwise it will be a NOT_SET Queue.", voicemailUserDescription: "If the voicemail flow is running on behalf of a user, this variable will provide information about the user. Otherwise it will be a NOT_SET User.", voicemailVoicemailSnippet: "The voicemail snippet for the voicemail flow." }, channelTypes: { call: "Calls", chat: "Chats" }, outputModes: { text: "Text", voice: "Voice" }, language: { infoSupportsDataPlayback: "Supports runtime data playback: %1$s", infoSupportsSpeechRec: "Supports speech recognition: %1$s", infoSupportsTextToSpeech: "Supports text to speech: %1$s", selectOne: "Select a language", label: "Language", labelAndTagDisplayStr: "Language: %1$s", infoSupportsDataPlaybackSupported: "Supports runtime data playback", infoSupportsSpeechRecSupported: "Supports speech recognition", infoSupportsTextToSpeechSupported: "Supports text to speech", infoSupportsDataPlaybackNotSupported: "Does not support runtime data playback", infoSupportsSpeechRecNotSupported: "Does not support speech recognition", infoSupportsTextToSpeechNotSupported: "Does not support text to speech", infoSupportsTextToSpeechNotSupportedFlexibleTTS: "Does not natively support text to speech" }, processVoicemailInput: { processVoicemailInputInfoMessage: "If a voicemail is collected, execution takes the '{{branch.__VOICEMAIL__}}' output and the Voicemail Snippet is saved to the '{{variable.__VOICEMAIL_VOICEMAIL_SNIPPET__}}' variable. The maximum time allowed for a Voicemail Snippet is 3 minutes.", processVoicemailInputInfoMessageWithMaxRecordingTime: "If a voicemail is collected, execution takes the '{{branch.__VOICEMAIL__}}' output and the Voicemail Snippet is saved to the '{{variable.__VOICEMAIL_VOICEMAIL_SNIPPET__}}' variable. The maximum time allowed for a Voicemail Snippet is determined by the {{link.__ORGANIZATION_SETTINGS__}}." }, collectVoiceSnippet: { voiceSnippetLabel: "Voice Snippet", voiceSnippetDescription: "The Voice Snippet itself if the action is successful. If not successful, the bound output variable value will be left untouched.", voiceSnippetDurationLabel: "Voice Snippet Duration", voiceSnippetDurationDescription: "The audio Duration of the Voice Snippet if the action is successful. If not successful, the bound output variable value will be left untouched.", maxVoiceSnippetTimeLabel: "Maximum Voice Snippet Time", maxVoiceSnippetTimeDescription: "The maximum time allowed for Voice Snippet. If the setting value resolves to a NOT_SET Duration at flow runtime, the default of 3 minutes will be used." }, languageSkill: { placeholder: "Select a language skill" }, literal: { dialingCode: "Dialing Code", dialingScheme: "Scheme", empty: "", enterNumber: "Enter a number", phoneNumber: { noExpressionLabel: { errorNoSchemeType: "There is no phone number scheme (tel:, sip: or sips:) set.", errorNoDialingCode: "There is no phone number dialing code.", errorNoNumber: "There is no number specified in the phone number.", errorInvalidSipUri: "The phone number has an invalid SIP URI.", errorInvalidNumber: "The phone number has an invalid E.164 format." }, withExpressionLabel: { errorNoSchemeType: "There is no phone number scheme (tel:, sip: or sips:) set for %1$s", errorNoDialingCode: "There is no phone number dialing code set for %1$s", errorNoNumber: "There is no number specified in the phone number for %1$s", errorInvalidSipUri: "The phone number has an invalid SIP URI for %1$s", errorInvalidNumber: "The phone number has an invalid E.164 format for %1$s" } }, increaseNumericTooltip: "Press to increase by %1$s, hold shift to increase by %2$s", decreaseNumericTooltip: "Press to decrease by %1$s, hold shift to decrease by %2$s", toExpressionModeTooltip: "Editor is in literal mode, click to enter an expression.", watermarkNoContext: "Enter value", watermarkPhoneNumber: "Enter phone number", watermarkSipUri: "Enter SIP URI" }, legacyRouting: { actionCallTask: 'Call "Find Legacy Queue" task', actionDecisionFoundFieldName: "Legacy routing custom field found?", actionDecisionFoundQueueName: "Legacy queue found?", actionDecisionFoundQueueStringIdOrName: "Queue ID/name found?", actionDecisionFoundQueueStringName: "Queue name found?", actionUpdateDataQueueStringIdOrName: "Save queue ID/name to variable", actionUpdateDataQueueStringName: "Save queue name to variable", actionFindQueueId: "Find queue based on ID", actionFindQueueName: "Find queue based on name", actionTransferToACDName: "Transfer to found queue", actionLoopName: "Loop through Chat.Guest.customFields", legacyRoutingOffAlert: "Architect no longer includes legacy queue routing functionality for newly-created Inbound Chat Flows.", legacyRoutingOnAlert: "When you create a new Inbound Chat Flow, Architect adds a task and actions with default logic to honor legacy queue routing for chats.

You may safely remove the task and actions if legacy queue routing is not needed in the flow, or edit the default logic as needed.", taskName: "Find Legacy Queue" }, loop: { count: "Loop Count", index: "Index", indexDataName: "Current Index Data Name", lessThanOne: "A Loop Count less than one will skip the loop action", loops: "Loops", notInLoop: "This action must be within a loop path.", terminating: "The loop path cannot be terminating" }, loopUntil: { taskEditorCheckUntilBox: "Check Until", exitWhenUntilCriteriaMet: "Exit when Until Case criteria is met", maxLoopCount: "Maximum Loop Count", noLoopIndexVariableSpecified: "No loop index variable specified", untilCaseLabel: "Until Case", untilCasesLabel: "Until Cases", noUntilCasesDefined: "No Until Cases defined", addUntilCase: "Add Until Case", untilCaseNameLabel: "Until Case Name %1$s", untilCaseConditionLabel: "Until Case Condition" }, menu: { createNameLabel: "Menu Name", createMenu: "Create New Menu", defaultMenuSettings: "Default Menu Settings", defaultChoiceNotValid: "Default menu choice is not valid", defaultMenuChoice: "Default Menu Choice", defaultMenuPlaceholder: "None ( disconnect the interaction )", editMenu: "Go to Menu", extDialDelayTooBigError: "The maximum delay for extension dialing should be less than the time to wait before repeating", extensionDialingMaxDelay: "Maximum delay for extension dialing", initialAudioLabel: "Menu Prompt", invalidReference: "There is an invalid menu reference set", label: "Menu", menuOptionsLabel: "Menu Options", menuSelectionTimeout: "Menu selection timeout", menuSelectorWatermark: "Select a menu", multipleNames: "Another menu has the same name", newDefaultName: "New Menu %1$s", noMenuChoices: "There are no menu choices", noReference: "There is no menu set", promptRepeatCount: "Number of times to repeat menu", promptRepeatDelayTooSmallError: "The time to wait before repeating should be greater than the maximum delay for extension dialing", transferTo: "Menu", useExtensionDialing: "Listen for extension dialing", menuAccess: "Menu Access" }, menuChoice: { duplicateDtmf: "DTMF (%1$s) is used in two or more menu choices at this menu level", duplicateDtmfGlobal: "DTMF (%1$s) is used in two or more menu choices in this flow", dtmfInUseGlobal: "Digit is used in another menu", dtmfInUseWithSwap: "Digit is in use in this menu ( 'shift + click' to swap)", dtmfInUse: "Digit is in use in this menu", dtmfSelector: "DTMF", duplicateSpeechTerms: "Duplicate speech recognition terms: [%1$s]", globalDtmf: "DTMF goes to this menu choice from any menu", globalSpeechAndActionError: "Global speech recognition terms are not allowed when the flow contains an action of type '%1$s'", globalSpeechRec: "Speech recognition terms go to this menu choice from any menu", noDtmfOrSpeechRec: "Each menu choice must have DTMF or speech recognition terms for each supported language", noDtmfWithDisabledSpeechRec: "Each menu choice must have DTMF when speech recognition is disabled" }, editFlow: { addFlowToBegin: "Add a flow to begin", create: "Create Flow", createFlowTyped: "Create '%1$s'", editFlowTitle: "Edit Flow Information", descWatermark: "Description for flow", defaultLanguage: "Default Language", divisionDescriptionAddFlow: "To add a flow in a division, the following permissions are required in that division.", divisionDescriptionEditFlow: "To change the division of a flow, the following permissions are required in the destination division.", flowNameInvalidCharacter: "Flow name cannot contain the '/' character.", flowNameIsInvalidMessageNoAlphaNumericError: "Flow name must contain at least one alphanumeric character.", flowNameWatermark: "Name for flow", flowNameCannotBeBlank: "Flow name cannot be blank.", nameDescChangeWarning: "Changes to name and description apply to all versions of the flow.", noDebugPostfix: "Flow name cannot end in '-debug'", saveAndProceed: "Save and Proceed", saveAs: "Save Flow As", saveChanges: "Save Changes", saveFlow: "Save Flow", secureCallFlowAgentInitiatedLabel: "Is this an agent-initiated Secure Call Flow?", secureCallFlowAgentInitiatedTrue: "Yes, it will only be initiated by agents.", secureCallFlowAgentInitiatedFalse: "No, other call flows will initiate this secure flow using the 'Transfer to Secure Flow' action.", viewExampleFlowsInfo: "Quick start example flows to boost your productivity", viewExampleFlowsLabel: "View Example Flows" }, properties: { common: { featureToggleUnavailble: "This requires a feature that is not available.", flowReadOnly: "The flow is read only." }, variable: { common: { set: { cannotSetIsSchemaInput: "Cannot change because this variable is marked as an input in a published version of the flow.", cannotSetIsSchemaInputOutput: "Cannot change because this variable is marked as an input / output in a published version of the flow.", cannotSetIsSchemaOutput: "Cannot change because this variable is marked as an output in a published version of this flow." }, support: { notSupportedInputVariableScope: "'%1$s' scoped variables cannot used as inputs in flows of type '%2$s'.", notSupportedOutputVariableScope: "'%1$s' scoped variables cannot used as outputs in flows of type '%2$s'." }, variableIsReadOnly: "The variable is read only." }, isInput: { support: { notSupportedTypeNotValidAsFlowInput: "The variable type '%1$s' cannot be used as an input to flows of type '%2$s'." } }, isOutput: { support: { notSupportedTypeNotValidAsFlowOutput: "The variable type '%1$s' cannot be used as an output to flows of type '%2$s'." } }, secure: { support: { notSupportedNoSecureVariables: "Secure variables are not supported in flows of type '%1$s'." } } } }, stringBodyHandlingTypes: { stringBodyHandlingTypeConvertToHtmlLabel: "Convert to HTML", stringBodyHandlingTypeConvertToHtmlDescription: "Convert formatting in the String to HTML.", stringBodyHandlingTypeConvertToMarkdownLabel: "Convert to Markdown", stringBodyHandlingTypeConvertToMarkdownDescription: "Convert formatting in the String to Markdown.", stringBodyHandlingTypeNoneDescription: "Default String handling for flow type.", stringBodyHandlingTypeRemoveAllFormattingLabel: "Remove All Formatting", stringBodyHandlingTypeRemoveAllFormattingDescription: "Remove all formatting from the String." }, missingRequiredProducts: { flowType: { unavailable: "The flow type of '%1$s' is not available." } }, previousMenu: { noMenus: "There are no menus in this flow for Previous Menu to return to.", inStartupError: "This action is invalid when used in the Starting Task because there is no menu to return to." }, abortSurvey: { dispositionLabel: "Disposition", dispositionWatermark: "Select the disposition status", dispositionError: "Error", dispositionOptOut: "Opt Out", noDisposition: "No disposition selected" }, completeSurvey: { inviteBodyDescription: "The contents of the initial invite sent to the survey invitee. This is typically provided through a variable which contains the output from a Get Response action.", inviteBodyLabel: "Invite Body", inviteSubjectDescription: "The subject line of the initial invite sent to the survey invitee.", inviteSubjectLabel: "Invite Subject", reminderBody: { description: "The contents of the reminder email sent to the survey invitee.", label: "Reminder Body", noValue: { runtimeStr: "No reminder body specified", selectionLabel: "No body" } }, reminderSubject: { description: "The subject line of the reminder email sent to the survey invitee.", label: "Reminder Subject", noValue: { runtimeStr: "No reminder subject specified", selectionLabel: "No subject" } }, targetAddressDescription: "The address used to contact the survey invitee; usually it will be an email address", targetAddressLabel: "Target Email Address", targetAddressTypeLabel: "Target Address Type", validation: { reminderMustHaveSubjectAndBody: "Both the reminder subject and body must have a value specified or no value specified to be valid." } }, returnToAgent: { helpText: "This action should only be used in secure call flows initiated by an agent and not a Transfer to Secure Flow action. See Help for more details.", reasonCodeLabel: "Reason Code", reasonCodeWatermark: "Enter an exit reason code or short description" }, screenPop: { chatScript: "inbound chat script", emailScript: "email script", screenPopScript: "screen pop script", shortMessageScript: "inbound message script", noInputs: "The selected %1$s has no inputs.", selectedScreenPop: "Screen Pop Script", selectedChatScript: "Chat Script", selectedEmailScript: "Email Script", selectedShortMessageScript: "Message Script", selectScript: "Select a %1$s", scriptNotFound: "The selected %1$s could not be found.", scriptMissingFeature: "The selected '%1$s' is missing the '%2$s' script property feature.", mustSelectScript: "A %1$s must be selected.", savedVersionOfScript: "Flow is referencing a cached version of this %1$s. The %1$s may be out of date or deleted.", scriptProperties: { scriptPropertyCallback: "Callback", scriptPropertyChat: "Chat", scriptPropertyEmail: "Email", scriptPropertyMessage: "Message", scriptPropertyScreenPop: "Inbound" } }, scripts: { noInputs: "The selected script has no inputs.", selectWatermark: "Select a script", scriptNotFound: "The selected script could not be found.", scriptMissingFeature: "The selected script is missing the required script property feature.", savedVersionOfScript: "Flow is referencing a cached version of this script. The script may be out of date or deleted." }, setAttributes: { attribute: "Attribute", addAttributeButton: "Add attribute to set", noAttributesDefined: "No attributes defined", applyWarning: "Changes to participant data will not be available in the cloud until the flow ends.", nameLabel: "Attribute Name %1$s" }, setConversationData: { conversationDescription: "The conversation ID to set participant data on.", conversationLabel: "Conversation ID", participantDescription: "If supplied, the participant data of the specified participant is used. In most cases, this can remain unspecified or NOT_SET and the customer/external participant is used.", participantLabel: "Participant ID" }, setExternalTag: { externalTagSettingLabel: "External Tag" }, search: { contains: "Contains", clearSearchResults: "Clear search results", exact: "Exact", filteredOutItemOne: "One item filtered out due to incompatible data.", filteredOutItemsMoreThanOne: "%1$s items filtered out due to incompatible data.", flowDescription: "The description of the flow", id: "The ID for %1$s", langCodeDescription: "A supported language code", languageDescription: "A supported language", name: "The name of the %1$s", noResults: "No results found", atMax: "More items are available. Please use the search box to search for more results.", promptDescription: "The description of the prompt", searchTypes: "Search types dropdown", startsWith: "Starts With", lastSearchTime: "Last Search: %1$s", variableDescription: "The description of the variable", searchWatermark: "Search flow" }, setIntent: { nluMustHaveOneIntentToSetIntent: "There must be at least one intent defined in the bot's Natural Language Understanding configuration if you want to set an intent." }, setLocale: { defaultLanguageLocked: "The default language cannot be changed in this flow type", addLanguage: "Add Language", addLanguageWithIcon: "Language", defaultLanguageError: "Language is not in supported languages", filterLanguages: "Search languages", genericLanguageError: "Language %1$s cannot be used because it does not have a region sub-tag.", headerDefault: "Default", headerDefaultTitle: "Default Flow Language", headerLanguage: "Language", headerLanguageTitle: "Languages the flow can run in", headerSkill: "Default Language Skill", headerSkillTitle: "Default language skill used for Transfer to ACD", invalidLocale: "Invalid value for language", locale: "Language", localeWatermark: "Select language", moreLanguages: "More languages...", multilingualSupportUnavailable: "This flow type only allows for 1 supported language to be configured", noSupportedLanguages: "Select at least one language to support", noDefaultLanguage: "There is no default language set", removeLanguage: "Remove language", resetTitle: "Reset fallback language to its default", runtimeLangDisplayError: "Indicates the language does not support runtime data playback, speech recognition or text to speech.", runtimeLangDisplayErrorFlexibleTTS: "Indicates the language does not support runtime data playback, speech recognition or native text to speech.", search: "Search languages", selectLanguage: "Select Language", skillMappingName: "Language Skill for %1$s", supportedLanguages: "Supported Languages", useLanguage: "Use Language", warning: "This language change will take effect after the task ends.", warningAutomate: "The language change is immediate and only applies to this flow instance.", warningImmediate: "The language change is immediate." }, setPriority: { setPriorityLabel: "Priority", setPriorityDescription: "If the priority value is outside the allowable range or NOT_SET Integer, execution takes the '{{branch.__FAILURE__}}' path at runtime. Otherwise, if successful, execution will update the '{{variable.__CONVERSATION_PRIORITY__}}' variable.", setPriorityDescriptionWorkitemFlow: "If the priority value is outside the allowable range or a NOT_SET Integer, execution takes the '{{branch.__FAILURE__}}' path at runtime. Otherwise if successful, execution takes the '{{branch.__SUCCESS__}}' output path and the 'Priority' property of '{{variable.__WORKITEM_WORKITEM__}}' variable will reflect the priority value." }, setPostFlow: { actionType: "Action Type", actionDescription: "Pick the type of follow-up action you want to trigger after the interaction ends.", anyDisplayString: "Any", calleeDisplayString: "Agent", callerDisplayString: "Caller", postFlowActionClearedOnSecureTransfer: "When a conversation is transferred to a Secure Flow - either in this flow or a later one - any Post-Flow actions that were set will be cleared.", target: "Target", targetPlaceholder: "Select a Post-Flow target", targetTypeDescription: "Select who this post-flow will apply to.", agentDisplayString: "Agent", senderDisplayString: "Sender", postFlowDescription: "Pick the type of follow-up action you want to trigger after the interaction ends.", invocationDataDescription: "JSON data to pass to the flow that is triggered after the interaction ends." }, setSkills: { setACDSkillsLabel: "ACD Skills", setACDSkillsDescription: "The ACD Skills to set on the conversation. If the value is an empty collection, any existing ACD Skills will be removed from the conversation. Execution takes the '{{branch.__FAILURE__}}' path at runtime if the value cannot be set on the conversation. Otherwise if successful, execution takes the '{{branch.__SUCCESS__}}' output path at runtime and the '{{variable.__CONVERSATION_ACD_SKILLS__}}' variable will be updated to reflect the new ACD Skills.", setACDSkillsDescriptionWorkitemFlow: "The ACD Skills to set on the workitem. If the value is an empty collection, any existing ACD Skills will be removed from the workitem. Execution takes the '{{branch.__FAILURE__}}' path at runtime if the value cannot be set on the workitem. Otherwise if successful, execution takes the '{{branch.__SUCCESS__}}' output path at runtime and the 'Skills' property of the '{{variable.__WORKITEM_WORKITEM__}}' variable will be updated to reflect the new ACD Skills.", noValueACDSkills: "Keep current ACD skills", setLanguageSkillLabel: "Language Skill", setLanguageSkillDescription: "The Language Skill to set on the conversation. If the value is a NOT_SET Language Skill, any existing Language Skill will be removed from the conversation. Execution takes the '{{branch.__FAILURE__}}' path at runtime if the value cannot be set on the conversation. Otherwise if successful, execution takes the '{{branch.__SUCCESS__}}' output path at runtime and the '{{variable.__CONVERSATION_LANGUAGE_SKILL__}}' variable will be updated to reflect the new Language Skill.", setLanguageSkillDescriptionWorkitemFlow: "The Language Skill to set on the workitem. If the value is a NOT_SET Language Skill, any existing Language Skill will be removed from the workitem. Execution takes the '{{branch.__FAILURE__}}' path at runtime if the value cannot be set on the workitem. Otherwise if successful, execution takes the '{{branch.__SUCCESS__}}' output path at runtime and the 'LanguageSkill' property of the '{{variable.__WORKITEM_WORKITEM__}}' variable will be updated to reflect the new Language Skill.", noValueLanagugeSkill: "Keep current language skill" }, setUUIData: { disconnectDropDownText: "For Disconnects", transferDropDownText: "For Transfers", mode: "Outgoing UUI Data", noUUIData: "No UUI data will be sent." }, setWhisperAudio: { label: "Whisper Audio", noValueRuntimeEvaluationString: "Use queue configured whisper audio", noValueSelectionLabel: "Use Queue Default", infoMessage: "Whisper audio is set using the current language of the flow when this action executes. Changing the flow language after this action instance will not change previously set whisper audio to the new language." }, setWrapupCode: { wrapupCode: "Wrapup Code", applyWarning: "Changes to the wrapup code will not be available in the cloud until the flow ends." }, skills: { multipleSkillsError: "There are two or more skills with the same value", placeholderSkill: "Select an ACD skill", proficiency: "ACD Skill Proficiency %1$s" }, skillExpressionFilters: { skillExpressionFiltersLabel: "Skill Expression Filters", skillExpressionFiltersResult: "Skill Expression Filters Result", evaluateSkillExpressionFiltersTooltipInfo: "Accepts skill expression strings for validation and normalization. If an expression string is empty, too long, syntactically invalid or references invalid ACD skills or language skills, the result will include error details in the errors property of the returned skill expression filter result and execution will take the Invalid output path. If the action cannot complete, such as when runtime execution limits are exceeded, execution takes the \u2018{{branch.__FAILURE__}}\u2019 output path at flow runtime.", evaluateSkillExpressionFiltersResultTooltipInfo: "Returns the skill expression filters result from the supplied skill expression strings. Individual skill expression filters in the returned collection will contain the original and normalized expressions, referenced ACD and language skills and any error information for the supplied skill expression filter. If errors are present, the normalized expression will fail during routing.", exampleErrorResultsTitle: "Example Error Result Values", setSkillExpressionFiltersTooltipInfo: "Accepts skill expression filters to use for routing. If any of the skill expression filter values are in error or NOT_SET, execution will take the '{{branch.__FAILURE__}}' output path at flow runtime.", transferToAcdSkillExpressionFiltersTooltipInfoPrefix: "Provides filters that determine which agents are eligible for assignment when the conversation is transferred to the queue. The filters are optional and are applied only when the target queue supports skill expression evaluation.", transferToAcdSkillExpressionFiltersTooltipInfoNonAutomateSuffix: "If a collection value with more than the maximum allowed item is supplied or contains one or more Skill Expression Filters that are invalid, execution takes the '{{branch.__FAILURE__}}' output path.", transferToAcdSkillExpressionFiltersTooltipInfoAutomateSuffix: "If a collection value with more than the maximum allowed item is supplied or contains one or more Skill Expression Filters that are invalid, execution invokes error handling." }, speechRec: { addInvalidPrompt: "Add prompt for invalid or ambiguous input", addInvalidPromptOverride: "Override default invalid or ambiguous input prompts", addAnotherInvalidPrompt: "Add another prompt", companyDirectoryLabel: "Company Directory", companyDirectoryNotSupportedPlural: "Company Directory is not supported for the languages %1$s", companyDirectoryNotSupportedSingle: "Company Directory is not supported for the language %1$s", defaultEngine: "System default speech engine", defaultSpeechSettings: "Default Flow-Level Speech Settings", description: "%1$s speech recognition term", directoryChoices: { allEnabled: "Enable for entire flow", allDisabled: "Disable for entire flow", startEnabled: "Enable for starting task or menu only" }, enableCompanyDirectory: "Enable company directory speech recognition for all menus", engineLabel: "Speech Engine", errorSpeechRecDisabledWithSpeechRec: "Speech recognition is disabled. Speech recognition terms will not be used until it is re-enabled.", errorSpeechRecEnabledDisabled: "Speech recognition is disabled. Enabled settings will not be available.", enableAllSpeechRec: "Enable speech recognition for the entire flow", disableAllCompanyDirectory: "Disable company directory for the entire flow", duplicateTermErrorLocal: "Term is already defined", duplicateTermErrorMenu: "Term is defined elsewhere: ", generalSettings: "General Speech Settings", hideAllLangs: "hide languages", invalidPrompts: "Invalid or ambiguous input prompts", invalidPromptsSingular: "Invalid or ambiguous input prompt", label: "Speech Recognition", suppressCallRecordingLabel: "Recording and Speech Recognition", suppressCallRecordingsSpeechRec: "Suppress recording for the entire flow", missingSpeechRec: "Not all languages have speech recognition terms", minConfidenceLevel: "Minimum confidence level", minConfidenceLevelRange: "(0-100%)", notSupportedLanguage: "Speech recognition is not supported in %1$s", notSupported: "Speech recognition not supported", optionsLabel: "Speech Recognition Options", ambiguousPromptShortLabel: "Prompt %1$s", resetToDefault: "Reset back to default prompts", showAllLangs: "show all languages", termsPlaceholder: "Enter speech recognition terms", timeoutComplete: "Complete match timeout", timeoutIncomplete: "Incomplete match timeout", timeoutMaxSpeech: "Maximum speech length" }, supportedBrowsers: { title: "Unsupported Browser", unsupportedBrowser: "You are running an unsupported, outdated browser. Architect supports the following browsers:", chrome: "Latest version of Google Chrome", firefox: "Mozilla Firefox (latest ESR version)", safari: "Latest version of Safari", pleaseUpgrade: "Please upgrade to one of these supported browsers." }, state: { createNameLabel: "State Name", createState: "Create New State", endState: "End of State", endStateOrFlow: "Ends State or Flow", goToState: "Go to State", invalidReference: "There is an invalid state reference set", label: "State", multipleNames: "Another state has the same name", noReference: "There is no state reference set", stateSelectorWatermark: "Select a state", transferTo: "State" }, task: { addPath: "Add Path", containsNoActions: "In-queue task contains no actions", createNameLabel: "Task Name", createBranch: "Create New Output Path", createBranchLabel: "Path Name", createTask: "Create New Task", defaultPathLabel: "Default", dragHere: "Drag action here", addActionHere: "Add action here", dynamicBranchTooltip: "This branch was created by a server-based object.", editorZoomLabel: "Zoom", endFlow: "End of Flow", endLoop: "Exit Loop", endTask: "End of Task", endTaskOrFlow: "Ends Task or Flow", nextLoop: "Start Next Loop", goToTask: "Go to Task", invalidReference: "There is an invalid task reference set", invalidReferenceTaskTransfer: "Cannot jump to a task that has output paths", invalidReferenceStartUpTask: "Starting Task not allowed as a Call Task target", invalidBranchReference: "There is an invalid path reference set", label: "Task", labelMoreValues: "And %1$s more...", multipleNames: "Another task has the same name", multipleNamesPath: "Another path has the same name", newDefaultName: "New Task %1$s", noPathReference: "There is no path reference set", newDefaultStateName: "New State %1$s", noReference: "There is no task reference set", noTerminatingAction: "The task does not contain a terminating action", outputPathForTask: "Set as an output path for %1$s task", outputPathModalCreate: "Create new output path", path: "Output Path", pathName: "Path Name", paths: "Output Paths", pathsMenu: "Output Paths...", pathSelectorWatermark: "Select an output path", pathType: "Exit Path", switchToMenu: "Switch to Menu", switchToTask: "Switch to Task", switchToState: "Switch to State", switchToCommonModule: "Switch to Common Module", switchToBot: "Switch to Bot", switchToMenuChoice: "Switch to Task Menu Choice", taskSelectorWatermark: "Select a task", taskActionErrorsOne: "There is one action in error within this task", taskActionErrorsMoreThanOne: "There are %1$s actions with errors within this task", taskActionWarningsOne: "There is one action with a warning within this task", taskActionWarningsMoreThanOne: "There are %1$s actions with warnings within this task", transferTo: "Task", wantToDeleteAction: "Are you sure you want to delete this Action? If deleted, all of the actions in its output paths will also be deleted.", wantToDeleteCase: "Are you sure you want to delete this Case? If deleted, all of the actions in its output paths will also be deleted." }, toolbox: { collapse: "Collapse toolbox", expand: "Expand toolbox", title: "Toolbox", searchToolbox: "Search Toolbox", noActionsFoundInSearch: "No actions found" }, transcription: { enableTranscription: "Flow Transcription", enableTranscriptionDescription: "If true, flow transcription is enabled. If false or a NOT_SET Boolean, flow transcription is disabled.", notValidForLanguages: "Transcription is not available in: %1$s" }, transfer: { allowVoicemail: "Allow rollover to voicemail", connectTimeout: "Connect Timeout", invocationData: "Invocation Data", preTransferAudio: "Pre-Transfer Audio", failureTransferAudio: "Failed Transfer Audio", preTransferCommunication: "Pre-Transfer Communication", preTransferCommunicationDescription: "Wording the flow will convey to the external participant prior to performing the transfer.", failureTransferCommunication: "Failed Transfer Communication", failureTransferCommunicationDescription: "Wording the flow will convey to the external participant if the transfer fails.", uuiData: "UUI Data to Set", alertOnTransfer: "Alert on Transfer", alertOnTransferDescription: "If true, this indicates that the workitem should alert on successful transfer. If false or a NOT_SET Boolean, the workitem should not alert on transfer." }, transferPureMatch: { addSkill: "Add ACD Skill", invalidProficiency: "Proficiency for skill %1$s must be between 1 and 10", appendSkills: "Append conversation ACD Skills", appendSkillsHeader: "Append ACD Skills", appendSkillsDescription: "If true, this will append the ACD skills configured on this action to the existing skills already set on the conversation. If false or a NOT_SET Boolean, the ACD skills configured on this action will replace the skills set on the conversation.", languageSkill: "Language Skill", languageSkillDefault: "Using supported language's default language skill", languageSkillDescription: "The preferred language skill for the transfer. If no language skill is provided, the default language skill of the flow's current language will be used.", multipleQueuesError: "There are two or more queues with the same value", preferredAgents: "Preferred Agents", preferredAgentsDescription: "Supplies a list of agents and scores to use for the Preferred Agent Routing settings on the target queue. Use the MakeList and MakeAgentScorePair functions or the MakeListAgentScorePair function to create an AgentScorePair collection that provides the agents and score values. See Transfer to ACD action article in the Resource Center for additional details.", directAgent: "Direct Agent", directAgentDescription: "Provides a target agent for the interaction on the target queue for Direct Routing. If specified, the agent takes precedences over the target queue's routing method and any agents specified in the `Preferred Agents` setting on this action.", overrideDefaultInQueueFlow: "Override default in-queue handling", queue: "Queue", resetInQueueFlow: "Reset to Organization default", transferACDInCommonModuleWarning: "Within a common module flow, in order to override default in-queue handling, all compatible flow types specified on the common module flow must expect the same in-queue flow type.", skill: "ACD Skill %1$s", priority: "Priority", routing: "Routing", workitemPriorityDescription: "Sets the priority of the Workitem. If the setting value resolves to a NOT_SET Integer at flow runtime, the Workitem priority will remain unchanged." }, transferVoicemail: { noQueueNote: "Call will be transferred to the voicemail of the current queue for which the flow is running.", noQueueTooltip: "Call will be transferred to the voicemail of the current queue for which the flow is running for these flow types: %1$s", transferTarget: "Transfer Target", voicemailCallbackSettings: "Voicemail Callback Settings", voicemailGreeting: "Voicemail Greeting", voicemailTypeNonVocalByLang: "%1$s voicemail has an initial beep and no additional prompting for the language %2$s.", voicemailTypeNonVocalByLangs: "%1$s voicemail has an initial beep and no additional prompting for the languages %2$s.", voicemailScript: "Voicemail Script", voicemailScriptSettings: "Voicemail Script Settings" }, trustedOrg: { orgShortName: "Organization Name: %1$s", trustedUser: "Trusted External User" }, updateVariables: { addStatement: "Add update statement", createCollection: "Create Collection", noStatementError: "There are no update statements", updateStatement: "Update Statement", variableName: "Variable Name %1$s", variableValue: "Value To Assign %1$s", updateStatements: "Update Statements", noUpdateStatements: "No Update Statements defined" }, usages: { openCommonModule: "(open flow in new tab)", openCommonModuleTooltip: "Open common module in new tab to see usage details for this resource" }, user: { aDeletedUser: "a deleted user", label: "User", userLabelPlural: "Users", placeholder: "Select a user", system: "System" }, utilizationLabel: { utilizationLabelLabel: "Utilization Label", placeholderUtilizationLabel: "Select a utilization label", setUtilizationLabelDescription: "The Utilization Label to set on the conversation." }, division: { selectDivisionPlaceholder: "Select a Division" }, variableDetailsModal: { cantEnableInputOnSecureVariable: "Cannot enable input because this is marked as a secure variable.", cantEnableOutputOnSecureVariable: "Cannot enable output because this is marked as a secure variable.", cantEnableSecureOnInputVariable: "Cannot enable secure because this is marked as an input variable.", cantEnableSecureOnOutputVariable: "Cannot enable secure because this is marked as an output variable.", cannotRescopeToTask: "Change accessibility by opening variable details where it is needed.", cannotChangeScopeBecauseOfOutput: "Cannot change accessibility because this is marked as an output variable.", cannotChangeScopeBecauseOfInput: "Cannot change accessibility because this is marked as an input variable.", caseChangeMessage: "All usages must be changed since the variable's name is changing by case only.", clearVariable: "Clear variable...", context: "Context", editVariableTitle: "Edit Variable", newUsages: "New usages", readOnly: "read only", readWrite: "read-write", saveChangesMessage: "Do you want to save the changes to this variable?", sections: { nameAndDescription: "Name and Description", variableOptions: "Variable Options" }, systemScope: "This variable has %1$s access across the entire flow", systemScopeWithInitialValue: "This variable has read only access across the entire flow but does allow assignment of an initial value", updateUsages: "Existing usages to change", usageError: "Usage is a different task and can not be changed", usageLocation: "Location", viewVariableTitle: "View System Variable", variableType: "Type: %1$s", variableContentIsSecure: "Content is secure", variableFlowInputLabel: "Input to flow", variableTaskInputLabel: "Input to task", variableFlowOutputLabel: "Output from flow", variableTaskOutputLabel: "Output from task" }, variable: { descriptionWatermark: "Enter variable description", flowScope: "Entire flow", flowScopeCommon: "Entire Common Module", initialValueLabel: "Initial Value", initialValueError: "Initial value has a validation error.", addVariable: "Add Variable", addVariableButton: "Create", cannotDeleteVariableReasonSlot: "Slot variables are automatically managed by Architect based on slots defined within the Natural Language Understanding configuration.", cannotDeleteVariableReasonInput: "It is marked as a flow input in a published flow signature and cannot be removed.", cannotDeleteVariableReasonInputOutput: "It is marked as a flow input and output in a published flow signature and cannot be removed.", cannotDeleteVariableReasonOutput: "It is marked as a flow output in a published flow signature and cannot be removed.", cannotDeleteVariableReasonIsSystem: "It is a built-in variable and cannot be removed.", cannotDeleteVariableReasonUsages: "It is used in one or more places within the flow and cannot be deleted until it is no longer in use.", direction: "Direction", duplicatedOutputVariableReference: "The variable '%1$s' is already referenced in another output.", filterVariablesByScopeAll: "All", filterVariablesByScope: "Filter data by accessibility", initialValueNotSupported: "You cannot specify an initial value on a system variable.", input: "Input", output: "Output", outputDeleteTooltip: "Deletes the output path from the task.", scopeLabel: "Variable Accessibility", secure: "Secure", selectorWaterMark: "Enter variable name", scopeConsumer: "%1$s: %2$s", slotVariableNotUsedButInPublishedSignature: "Slot variable not used by bot flow but used in published bot flow schema", toExpressionModeTooltip: "Editor is in variable mode, click to enter an expression.", variableDeleteTooltip: "Deletes the variable from the flow. Variables in use or output variables that have been published cannot be deleted.", label: "Variable", noVariablesFound: "No variables found", maxVariableLimitSearch: "Showing top %1$s results", variableCannotBeDeleted: "This variable cannot be deleted. %1$s" }, wait: { durationLabel: "Duration", noDurationSet: "There is no duration set.", trimDurationLabel: "Trim Lengthy Duration", trimDurationDescription: "Trim the specified Duration value to be less than the maximum execution time allowed for the flow. This allows the flow to continue processing rather than taking the error path in those scenarios." }, promptUsages: { title: "Usages for %1$s", system: "System", user: "User" }, workgroup: { placeholderQueue: "Select a queue" }, wrapupCode: { placeholder: "Select a wrapup code" }, secureAction: { secureAction: "Secure Data Action", mustSelectAction: "A secure data action must be selected.", actionNotFound: "The selected secure data action could not be found.", savedVersionOfAction: "Flow is referencing a cached version of this secure data action. The action may be out of date or deleted.", noActionsAvailable: "There are no Architect compatible secure data actions available." }, dataAction: { dataAction: "Data Action", mustSelectAction: "A data action must be selected.", actionNotFound: "The selected data action could not be found.", savedVersionOfAction: "Flow is referencing a cached version of this data action. The action may be out of date or deleted.", noActionsAvailable: "There are no Architect compatible data actions available." }, grammars: { deleteGrammarTitle: "Delete Grammar", grammarLabel: "Grammar", noGrammarBasedSttEngineFound: "You must have at least one grammar-based speech to text engine configured in your organization in order to work with grammars in Architect.", noGrammarsFound: "There were no grammars found", addGrammarToBegin: "Add a grammar to begin", searchGrammars: "Search grammars", selectGrammarPlaceholder: "Select a grammar", grammarSingleConfirmDelete: "Are you sure you want to delete the selected grammar?", grammarPluralConfirmDelete: "Are you sure you want to delete the selected grammars?", tooltips: { addGrammar: "Add new grammar", deleteSelectedGrammars: "Delete selected grammar(s)", refreshGrammars: "Refresh the list of grammars" }, gridColumns: { descriptionColumn: "Description", languagesColumn: "Languages", nameColumn: "Name" }, modal: { addFileLabel: "Add File", addGramFileTitle: "Add A Grammar File", addGrammarLanguage: "Add Language", areYouSureDeleteGrammar: "Are you sure you want to delete the selected grammar named '%1$s' and its resources?", areYouSureDeleteGrammars: "Are you sure you want to delete the %1$s selected grammars and their resources?", areYouSureDeleteGrammarLanguage: "Are you sure you want to delete the following language: '%1$s'?", changeGrammarFileType: "Change Grammar File Type", changeType: "Change Type", closeEditorLabel: "Close Editor", dateUploadedLabel: "Date Uploaded: %1$s", describeYourGrammarPlaceholder: "Describe what your grammar does", dtmfLabel: "DTMF", dtmfWithError: "DTMF: %1$s", fileExceedsLimitsModalTitle: "Grammar Cannot Be Saved", fileExceedsLimitsModalDescription: "The grammar cannot be saved, as the following file exceeds file size limits: '%1$s'.", filesPluralExceedLimitsModalDescription: "The grammar cannot be saved, as the files listed below exceed file size limits.", fileExceedsLimitsModalDescriptionAdditional: "The file limits are %1$s for a .gram file and %2$s for a .grxml file. Please ensure the files do not exceed these limits before attempting to save again.", fileExceedsLimitDtmf: "%1$s: DTMF", fileExceedsLimitDtmfAndVoice: "%1$s: Voice & Dtmf", fileExceedsLimitVoice: "%1$s: Voice", fileNameLabel: "File Name: '%1$s'", gramFileWatermark: "e.g. example_grammar.gram", grammarDescription: "Grammar Description", grammarEditorTitle: "Grammar Editor", grammarEditorLabel: "XML editor for ASR grammars", grammarName: "Grammar Name", grammarNamePlaceholder: "e.g. StartDate", grxmlFilePercentageTooltip: "The percentage of this file's size of the maximum allowed size. The maximum file size for a .grxml file is %1$s.", overrideSpeechRecognitionErrorMessage: "When specifying a value for '%1$s', you must also specify a value for '%2$s'.", overrideSpeechRecognitionErrorMessageAlternative: "No value configured for '%1$s'.", partialSuccessMessage: "There is a server issue and files in this grammar might be incomplete or missing.", partialSuccessMessageAdditional: "To prevent content from being overwritten in error, the grammar will be displayed in read-only mode and temporarily won\u2019t be editable. Please confirm you want to proceed with read-only or close the editor and try again later.", removeGrammarLanguage: "Remove Language", removeGrammarLanguageWarning: "Deleting a language is irreversible and will result in the loss of any ASR Grammar files associated with that language within this Grammar. If you have flows with a supported language that relies on this Grammar, this could result in the flow going into error.", startingLanguage: "Starting Language", newGrammarTitle: "Create New Grammar", errors: { failedToDeleteGrammars: "Failed to delete grammars.", failedToDeleteGrammarWithName: "Failed to delete grammar '%1$s'", errorTemplate: "%1$s (line: %2$s, ch: %3$s)", grammarIdDoesNotExistOnSlot: "A grammar with the ID '%1$s' does not exist. Unable to associate it with the slot '%2$s'.", grammarNameDoesNotExistOnSlot: "A grammar with the name '%1$s' does not exist. Unable to associate it with the slot '%2$s'.", xmlErrorAttributeHasInvalidName: "Invalid name for attribute '%1$s'", xmlErrorAttributeIsRepeated: "Attribute '%1$s' is repeated", xmlErrorAttributeMissingEndQuote: "'%1$s' has an attribute whose value is missing an end quote", xmlErrorAttributeWithoutValue: "Attribute '%1$s' is without a value", xmlErrorClosingTagsCannotContainAttributes: "Closing tags cannot contain attributes", xmlErrorDocumentEmpty: "Document is empty", xmlErrorExtraContentAtEnd: "Extra content at the end of the document", xmlErrorGeneric: "Invalid XML", xmlErrorInvalidTagName: "'%1$s' is an invalid tag name", xmlErrorInvalidSpaceAfterTag: "Invalid space after '%1$s'", xmlErrorTagIsNotClosed: "Tag '%1$s' is not properly closed", xmlErrorTagMismatch: "Opening and ending tag mismatch", xmlErrorTextAreYouSureSave: "Are you sure you want to save?", xmlErrorTextContentSingle: "The following language contains XML errors: '%1$s'.", xmlErrorTextContentPlural: "%1$s languages in this grammar contain XML errors.", xmlErrorTitle: "XML Error", xmlErrorUnexpectedCharacter: "Unexpected character: '%1$s'", xmlNoError: "No XML errors detected" }, noMetadataAvailableForGramFileMessage: "A .gram file is configured for the '%1$s' mode of the '%2$s' grammar but no information is available.", removeFileLabel: "Remove File", selectFileLabel: "Select File", selectedGrammarFileCouldNotBeAttachedExtensionDescription: "The file '%1$s' could not be attached because it does not have the '%2$s' extension", selectedGrammarFileCouldNotBeAttachedSizeDescription: "The file '%1$s' could not be attached because it exceeds the size limit of %2$s for the selected file type.", selectedGrammarFileCouldNotBeAttachedLabel: "Selected Grammar file could not be added", selectGramFileLabel: "Select .gram file", switchFileTypesWarning: "Switching from the '%1$s' file type to the '%2$s' file type will result in your '%1$s' file being removed from the '%3$s' mode of the currently selected language '%4$s'. Do you wish to continue?", unsavedGrammarChangesTitle: "Unsaved Changes", unsavedGrammarChangesText: "Closing the Grammar editor will discard your unsaved changes. Do you wish to continue?", voiceLabel: "Voice", voiceWithError: "Voice: %1$s" }, grammarSlots: { grammarSlotDescriptionInfo: "This setting tells the bot which Grammar to use for the collection of the selected slot value at flow runtime. You can supply a Grammar value or let the bot use the Grammar that is configured on the slot. If you supply a Grammar value and at runtime it resolves to a NOT_SET Grammar, the bot will use the Grammar configured on the slot if one exists.", useSlotConfigDescription: "Use slot's configuration", useSlotConfigLabel: "Use Slot Configuration" } }, analyticsHeatMapOverlay: { analyticsHeatMapToggleLabel: "Flow Insights", apiErrorMessage: "There was an issue loading the data. Please refresh the page.", flowNoAnalyticsData: "There is not enough data yet for this flow version.", flowNotPublished: "Frequency overlay is only available for published versions.", flowAgeLessThanOneDay: "Frequency overlay is based on the last 24 hours of data for version %1$s.", flowAgeMoreThanOneDay: "Frequency overlay is based on the last %1$s days of data for version %2$s.", oldVersionFlowAgeLessThanOneDay: "Frequency overlay is based on the last 24 hours of data for version %1$s.", oldVersionFlowAgeMoreThanOneDay: "Frequency overlay is based on the last %1$s days of data for version %2$s.", veryHighFrequencyTooltipPlural: "Very High Frequency (%1$s Sessions)", veryHighFrequencyTooltipSingular: "Very High Frequency (%1$s Session)", highFrequencyTooltipPlural: "High Frequency (%1$s Sessions)", highFrequencyTooltipSingular: "High Frequency (%1$s Session)", mediumFrequencyTooltipPlural: "Medium Frequency (%1$s Sessions)", mediumFrequencyTooltipSingular: "Medium Frequency (%1$s Session)", lowFrequencyTooltipPlural: "Low Frequency (%1$s Sessions)", lowFrequencyTooltipSingular: "Low Frequency (%1$s Session)", veryLowFrequencyTooltipPlural: "Very Low Frequency (%1$s Sessions)", veryLowFrequencyTooltipSingular: "Very Low Frequency (%1$s Session)", zeroFrequencyTooltip: "Zero Frequency" }, speechToText: { defaultSpeechToTextEngineDiffersFromNotSpecified: "The flow was saved with no speech to text engine configured. If the flow is edited, the engine for this language will be updated to the current default speech to text engine.", defaultSpeechToTextEngineUpdated: "The default speech to text engine for language '%1$s' in this flow has been updated to '%2$s'.", engines: "Engines", errorEngineNotFound: "Speech to text engine '%1$s' could not be found.", headerTitle: "Speech To Text options for a language", noneLabel: "None", selectAnEngine: "Select an engine", speechToText: "Speech To Text", speechToTextNoChoicesAvailable: "There are no speech to text engines available for the language '%1$s'.", speechToTextEngineForSlotDescriptionInfo: "This setting tells the bot which speech to text engine to use for the collection of the selected slot value from the external participant at flow runtime. You can supply a speech to text engine value or let the bot use the speech to text engine that is configured on the slot if one exists.", speechToTextEngineNotFound: "The selected speech to text engine could not be found", speechToTextEngineNotConfigured: "This language does not have a speech to text engine configured from an integration.", speechToTextEngineRequiredMessage: "When one or more supported languages in a flow has a speech to text engine configured from an integration, every supported language of that flow must have a speech to text engine configured from an integration as well.", speechToTextEngineLabel: "Speech To Text Engine", speechToTextEngineLabelWithLanguageId: "Speech To Text Engine ('%1$s')", speechToTextGenesysEnhancedSupportLabel: "Genesys Enhanced %1$s supports custom dictionaries, more information on the {{link.__STT_ENGINE_OVERVIEW__, Resource Center}} documentation.", recognitionParams: { speechRecognitionParameters: "Speech Recognition Parameters", speechToTextCompleteTimeoutDescription: "The duration of silence after a valid recognition has occurred that determines the external participant has finished speaking, based on the associated Grammar. If a Grammar has not been specified on the Slot itself or the Ask for Slot action, this property will be ignored. A value of 0 disables the timer. If a NOT_SET value is supplied, the default value will be used.", speechToTextCompleteTimeoutLabel: "Complete Timeout", speechToTextConfidenceLevelDescription: "When the recognition results from the external participant input where the n-best entry with the highest confidence is less than the confidence level, the recognition will return a no-match. A value of 0 means all utterances are accepted. If a NOT_SET value is supplied, the default value will be used.", speechToTextConfidenceLevelLabel: "Confidence Level", speechToTextMaxSpeechTimeout: "Max Speech Timeout", speechToTextSpeechDetectionSensitivity: "Speech Detection Sensitivity" } }, textToSpeech: { defaultEngineLabel: "Default Engine: %1$s", defaultEngineDiffers: "This flow was saved with engine %1$s as the default engine. If the flow is edited, the engine for this language will be updated to the current default engine.", defaultEngineNotSupported: "The default engine set for language '%1$s' in organization-level settings is not supported by this flow type so a new engine must be selected.", defaultEngineRemoved: "There is no longer a default engine set for language '%1$s' in organization-level settings, so a new engine must be selected.", defaultEngineUpdated: "The default text to speech engine for language '%1$s' in this flow has been updated to %2$s to match organization-level settings.", defaultEngineUpdatedMoreThanOne: "The default text to speech engine for languages %1$s in this flow has been updated to %2$s to match organization-level settings.", defaultVoiceLabel: "Default Voice: %1$s", defaultVoiceDiffers: "This flow was saved with %1$s as the default voice for the selected engine. If the flow is edited, the voice for this language will be updated to the current default voice.", defaultVoiceRemoved: "There is no longer a default voice set for engine %1$s and language '%2$s' in organization-level settings, so a new voice must be selected.", defaultVoiceUpdated: "The default voice for language '%1$s' in this flow has been updated to %2$s to match organization-level settings.", engines: "Engines", errorEngineNotFound: "Text to speech engine '%1$s' could not be found.", errorEngineNotSecure: "Text to speech engine '%1$s' does not support secure call flows.", errorEngineFlowTypeNotSupported: "Text to speech engine '%1$s' does not support flow type %2$s.", errorLanguageNotSupportedByEngine: "The selected text to speech engine does not support language '%1$s'.", errorLanguageNotSupportedByVoice: "The selected voice does not support language '%1$s'.", errorNoEngineSelected: "No text to speech engine selected for language '%1$s'.", errorNoVoiceSelected: "No voice selected for language '%1$s'.", errorVoiceNotFound: "Voice '%1$s' could not be found", genders: { female: "Female", male: "Male", neuter: "Neuter", neutral: "Neutral", unspecified: "Unspecified gender" }, headerTitle: "Text To Speech options for a language", maxCharLengthTitle: "Maximum text to speech string length: %1$s characters", maxCharLengthBody: "A text to speech string in excess of this length will result in the Genesys text to speech engine playing the string or blank audio if the Genesys text to speech engine doesn't support the flow's current language.", noEnginesSupportLanguage: "No available text to speech engines support this language.", noEngineSelected: "Disabled because there is no engine selected", noneLabel: "None", selectAnEngine: "Select an engine", selectAVoice: "Select a voice", textToSpeech: "Text To Speech", ttsEngine: "Engine", ttsEngineDependencyString: "Text To Speech Engine", ttsEngineNotUsableByAction: "The '%1$s' action cannot be used when a flow supported language is configured to use the '%2$s' text to speech engine. Please change the text to speech engine configured on the following language: %3$s", ttsEngineNotUsableByActionMoreThanOne: "The '%1$s' action cannot be used when flow supported languages are configured to use the '%2$s' text to speech engine. Please change the text to speech engine configured on the following languages: %3$s", ttsEngineRequiredByFlowTypeOnLanguages: "For this flow type you must configure a text to speech engine on supported languages.", ttsVoice: "Voice", voiceDescription: "Language: %1$s, Gender: %2$s", voiceLanguageMismatch: "The voice selected does not directly match the language for '%1$s'", voiceLanguageMismatchHelp: "The voice selected does not directly match the language. This may result in issues with the Text to Speech experience. Find out more information in our {{link.__VOICE_MISMATCH_LINK__, Resource Center}}." }, versions: { actionLabelCheckedInBy: "Checked in by %1$s", actionLabelCreatedBy: "Created by %1$s", actionLabelDeletedBy: "Deleted by %1$s", actionLabelPublishedBy: "Published by %1$s", auditInfoUnavailable: "Version details unavailable", currentlyPublished: "current published version", currentDebugVersion: "current debug version", currentlyPublishedStatus: "Current Published Version:", currentlyPublishedNone: "none", loadingAudit: "Retrieving version details...", openFlowVersion: "Open flow version", revertedToOne: "(Flow reverted to 1.0)", scrollToTooltip: "Show the published version in the grid", title: "Available Versions", workingVersion: "working copy", selectVersion: "Select version", latestPublishedVersion: "Latest Published", publishedVersion: "Published", latestDebugPublishedVersion: "Latest Debug", debugPublishedVersion: "Debug", latestVersionGroupHeader: "Latest", specificVersionGroupHeader: "Specific Version", usingFlowVersion: "Using version %1$s", usingFlowVersionReadonly: "Using version %1$s. Edit flow to update.", flowVersionPrefix: "version: %1$s" }, virtualAgent: { agenticVirtualAgent: "Agentic Virtual Agent", agenticVirtualAgentDowngradeTooltip: "Republish this flow to downgrade billing from Agentic Virtual Agent to Virtual Agent.", virtualAgent: "Virtual Agent", virtualAgentDowngradeTitle: "Revert Virtual Agent", virtualAgentDowngradeDescription: "If you downgrade your flow, you reduce its AI capabilities and lose access to anything you might have configured as part of Virtual Agent. Republish your flow after you revert.", virtualAgentDowngradeButton: "Revert", virtualAgentFlow: "Virtual Agent", virtualAgentNote: "Upgrade is required to be done per flow.", virtualAgentRevert: "Revert Virtual Agent", virtualAgentRevertInfo: "If you revert your flow, Architect removes the Virtual Agent functionality from your flow and you will lose access to previously configured Virtual Agent settings.", virtualAgentTooltip: "You do not have permission to enable Virtual Agent. Contact your organization's administrator to update permissions.", virtualAgentUpgrade: "Upgrade to Virtual Agent", virtualAgentUpgradeTitle: "Upgrade to Virtual Agent", virtualAgentUpgradeNote: "Upgrade to Virtual Agent to enhance your flow with new conversational and generative AI capabilities. After the upgrade, publish the flow to enable the AI features. The upgrade impacts the cost for the flow at runtime. For more information about pricing and supported languages, see the {{link.__VIRTUAL_AGENT_HELP__, Resource Center}} documentation.", virtualAgentUpgradeNoteHowToRevert: "To ensure flexibility, Genesys recommends checking in your flow before upgrading. If you need to revert the flow from Virtual Agent in the future, you can import the previously checked in version.", virtualAgentUpgradeButton: "Upgrade", virtualAgentCreateModalDescription: "Enable Virtual Agent", virtualAgentCreateModalNote: "Virtual Agent enhances your flow with new conversational and generative AI capabilities. Virtual Agent impacts the cost for the flow at runtime. For more information about pricing and supported languages, see the {{link.__VIRTUAL_AGENT_HELP__, Resource Center}} documentation.", virtualAgentCreateModalNoteAgentic: "Virtual Agent enhances your flow with new conversational and generative AI capabilities. Virtual Agent and Agentic Virtual Agents impact the cost for the flow at runtime.", virtualAgentResourceCenterPricingInfo: "For more information about pricing and supported languages, see the {{link.__VIRTUAL_AGENT_HELP__, Resource Center}} documentation." }, voiceBiometrics: { confidence: "Confidence" }, voiceSurvey: { freeTextQuestionLabel: "Free Text", multipleChoiceQuestionLabel: "Multiple Choice", npsQuestionLabel: "NPS Question", readOnlyQuestionLabel: "Read-Only Question", surveyFormLabel: "Survey Form", divisionMismatchWarning: "The selected survey form is in a different division than the flow. You can proceed, but consider aligning divisions. Find more information in our {{link.__RESOURCE_CENTER__}}.", surveyFormNoDivisionWarning: "The flow will be created in the selected division, but the survey form is not assigned to a division. Find more information in our {{link.__RESOURCE_CENTER__}}.", surveyFromIncompatible: "The chosen survey form cannot be used for a voice survey flow.", surveyFormDisabled: "The chosen survey form is disabled. In order to create a voice survey flow from this form, please publish a new version of this form. Manage in {{link.__SURVEY_FORMS__, Survey Forms}}.", surveyFormInvalid: "The survey form is invalid.", surveyFormInsufficientPermissions: "You do not have sufficient permissions to view the survey form. You need the '%1$s' permission.", surveyFormQuestionAnswerExceedsLimitErrorMoreThanOne: "The following questions in the survey form have an answer that exceeds the %1$s character limit: %2$s.", surveyFormQuestionAnswerExceedsLimitError: "The following question in the survey form has an answer that exceeds the %1$s character limit: %2$s.", surveyFormUpdateNeeded: "Please update the survey form before attempting to create the flow.", voiceSurveyAnswerDescription: "Wording the bot will use when listing out the answer options to the caller.", voiceSurveyAnswerLabel: "Answer", voiceSurveyAnswerOptionsDescription: "A collection of answers to the given survey question. Answer values reflect answers set in the survey form and can not be edited. Please note that answer configuration is tied to the survey question itself and is not specific to an individual action so if you have multiple Ask Survey Question actions that reference the same survey question the DTMF settings will be common between all actions. Allowable values include: 0-99, * and #.", voiceSurveyAnswerOptionDtmfLabel: "DTMF", voiceSurveyAnswerOptionsLabel: "Answer Options", voiceSurveyAnswerOptionValueLabel: "Answer Value", voiceSurveyBotLabel: "Survey Bot", voiceSurveyErrorLink: "Manage in {{link.__SURVEY_FORM__}}", voiceSurveyConditionsNotMetLabel: "Conditions Not Met", voiceSurveyDoesNotExistError: "The selected survey form does not exist in this organization.", voiceSurveyDtmfSettingsLabel: "DTMF Settings", voiceSurveyDuplicateDtmfError: "Duplicate DTMF value for '%1$s'", voiceSurveyEndQuestionGroupTaskActionLabel: "Done - %1$s", voiceSurveyFlowCreationTooltip: "Select a survey form for the voice survey flow. Architect will generate a Voice Survey flow based on the survey form that can be executed immediately after an Agent hang-up or transfer, or Outbound connection, etc. Only the most recent version of published survey forms may be selected. Survey forms that have been disabled are excluded.", voiceSurveyFollowUpQuestionDescription: "Wording the bot will use when asking the additional question after the NPS question has been answered.", voiceSurveyFollowUpQuestionLabel: "Follow Up Question", voiceSurveyFooterLabel: "Survey Footer", voiceSurveyFormDoesNotExistShort: "The associated survey form does not exist.", voiceSurveyFormDoesNotExistLong: "The associated survey form does not exist in this organization. To address this, please {{link.__VOICE_SURVEY_FLOWS__, create a new voice survey flow}}.", voiceSurveyFormExceedsMultipleChoiceLimit: "The chosen survey form would create more than %1$s list slot types which exceeds the flow limit. A list slot type is created for each multiple choice, yes/no and range question at flow creation.", voiceSurveyFormIsDisabledLong: "The associated survey form is disabled. To address this, please publish a new version of this form and create a new flow using that version. Manage in {{link.__SURVEY_FORMS__, Survey Forms}}.", voiceSurveyFormIsDisabledShort: "The associated survey form is disabled.", voiceSurveyFormLabel: "Form", voiceSurveyFormLastModified: "Last Modified", voiceSurveyFormsNotAvailable: "No survey forms available for this organization.", voiceSurveyFormNotLatestVersionShort: "The associated survey form is not the latest version.", voiceSurveyFormNotLatestVersionLong: "The associated survey form is no longer the latest version. To address this, please {{link.__VOICE_SURVEY_FLOWS__, create a new voice survey flow}} using the most recent version of the survey form.", voiceSurveyFormVersionLabel: "Survey Form Version", voiceSurveyHeaderLabel: "Survey Header", voiceSurveyIncompatibleLanguageWarning: "The default language selected does not match the survey form language. This may result in issues regarding speech recognition and integrations. Find more information in our {{link.__RESOURCE_CENTER__}}", voiceSurveyNoQuestionsAvailableLabel: "No Questions Available.", voiceSurveyNotApplicableDescription: "The DTMF character to configure for Not Applicable. This may not be the same as the flow setting for the DTMF terminating character or any of the answer options associated with this survey question.", voiceSurveyNotApplicableLabel: "Not Applicable", voiceSurveyNotApplicableSetAsTerminatingCharacter: "Value set as terminating character", voiceSurveyQuestionConditionDescription: "These are the conditions under which the question is available as configured by the survey form. This is not something that can be changed and is intended for informational purposes. If this value is NOT_SET, the question will always be presented to the caller.", voiceSurveyQuestionConditionLabel: "Question Condition", voiceSurveyQuestionDescription: "Wording the bot will use when asking the question for the first time.", voiceSurveyQuestionLabel: "Survey Question", voiceSurveyQuestionNotInUseError: "'%1$s' is not being asked.", voiceSurveyQuestionNotInUseMessage: "There are no actions currently associated with this question.", voiceSurveyQuestionWithGroupAndQuestionIndex: "Group %1$s Question %2$s", voiceSurveyQuestionUsagesMessage: "This question is used by %1$s.", voiceSurveyQuestionUsagesMessageSingularReplacement: "1 action", voiceSurveyQuestionUsagesMessagePluralReplacement: "%1$s actions", voiceSurveyQuestionWithIndex: "Question %1$s", voiceSurveyResourceCentreLinkText: "Resource Center", voiceSurveySelectQuestionLabel: "Select a Question", voiceSurveySlotNotAllowedErrorMessage: "The slot '%1$s' can not be used, as it is not compatible with this action.", voiceSurveyFormsLinkText: "Survey Forms", voiceSurveyQuestionGroupNotApplicable: "Question Group %1$s Not Applicable", voiceSurveyQuestionGroupTaskName: "Ask Question Group %1$s", voiceSurveyQuestionGroupVisibilityActionName: "Is Question Group %1$s Applicable?", voiceSurveyQuestionResultDescription: "The variable associated with the question.", voiceSurveyQuestionResultLabel: "Question Result", voiceSurveyQuestionTypeDescription: "The type of survey question that is being asked.", voiceSurveyQuestionTypeLabel: "Survey Question Type", voiceSurveyTerminatingCharacterDescription: "Defines the character used to indicate that data entry has been finished.", voiceSurveyTerminatingCharacterLabel: "Terminating Character", voiceSurveyTitleWithSettings: "Voice Survey Flow Settings" }, workitem: { generateFlowLogic: "Generate Flow Logic", generateFlowLogicTooltip: "If Generate Flow Logic is enabled, when the Workitem flow is created Architect will auto-generate default flow logic for Workitem event handling and statuses configured on the selected Worktype.", schemaLabel: "Schema", selectWorktypeLabel: "Select Worktype", workitemEventTypesHeader: "Workitem Event Types", workitemFlowCreationTooltip: "Select a Worktype for the Workitem flow. There can only be a 1-1 association between a Worktype and a Workitem flow.", workitemFlowSettingsHeader: "Worktype Dependencies", workitemEventQuestionCreated: "Workitem Created?", workitemDateBasedRulePresent: "Workitem Date Rule Present?", workitemEventQuestionStatusChanged: "Workitem Status Changed?", worktypeCallTaskLabel: "Call %1$s Task", worktypeDateBasedRulesHeader: "Worktype Date Rules", worktypeDateBasedRulesUpdated: "Worktype date rules have been updated.", worktypeEndStatusTask: "End Task: %1$s", worktypeErrorDoesNotExist: "The selected Worktype does not exist.", worktypeErrorInsufficientPermissions: "You do not have sufficient permissions to view the Worktype. You need the 'workitems:worktype:view' permission.", worktypeErrorInUse: "The selected Worktype is already associated with a Workitem Flow. Please choose another Worktype or delete the flow that this Worktype is associated with.", worktypeErrorSomethingGoneWrong: "An error occurred while creating the Workitem Flow. Please try again later.", workitemEventData: "This variable holds additional event data for the event that started this Workitem flow instance.", worktypeAssociatedWithFlow: "This Worktype is associated with an existing Workitem flow.", worktypeInvalid: "The Worktype referenced by this flow is invalid.", worktypeIsEventTypeName: "Does EventType Equal '%1$s'?", worktypeLabel: "Worktype", worktypeMatchDateBasedEvent: "Check Date-Based Event", worktypeMatchStatus: "Check Workitem Status", worktypeNameWithEventTypePrefix: "EventType - %1$s", worktypeNameWithStatusPrefix: "Status - %1$s", worktypeSchemaChanged: "The schema for the Worktype referenced by this flow has been updated.", worktypeSchemaChangeMoreRestrictiveShort: "The Worktype schema is more restrictive than the Workitem custom fields in this flow.", worktypeSchemaChangeMoreRestrictiveLong: "The Worktype schema is more restrictive than the Workitem custom fields in this flow. To address this, please {{link.__CUSTOM_ATTRIBUTES__, update the schema}} to be less restrictive by adding anything that was previously removed. Alternatively, you may delete this flow and {{link.__WORKITEM_FLOWS__, create a new Workitem flow}} that references the same Worktype to use the latest version of the Worktype.", worktypeSchemaChangeApplied: "Workitem custom fields were successfully updated.", worktypeSchemaChangeNotApplied: "Workitem custom fields will remain unchanged.", worktypeSchemaGoneShort: "The Worktype referenced by this flow had a schema when the flow was created. Architect no longer sees a schema associated with the Worktype.", worktypeSchemaGoneLong: "Removing a schema from a Worktype is not allowed since consumers of the Worktype and its configuration, like an Architect flow, could have an out of date view of what the Worktype looks like. Please check the associated {{link.__WORKTYPES__, Worktype}} to ensure that it does have a schema and if it does, contact support.", worktypeSchemaNotUsableShort: "The Worktype schema cannot be used by Architect.", worktypeStatusChangeApplied: "Worktype statuses have been updated.", worktypeStatusClosed: "Closed", worktypeStatusInProgress: "In Progress", worktypeStatusOpen: "Open", worktypeStatusWaiting: "On Hold", worktypeStatusesHeader: "Worktype Statuses", worktypeStatusConvertExpressionToLiteralTitle: "Convert Worktype Status Expression To Literal" }, customJson: { schemaNotUsable: "The schema '%1$s' cannot be used by Architect.", schemaChanged: "The schema '%1$s' referenced by this flow has changed.", schemaChangeApplied: "The schema '%1$s' referenced by this flow was successfully updated.", schemaChangeNotApplied: "Changes to the schema '%1$s' have not been applied.", schemaChangeMoreRestrictive: "The schema '%1$s' has been changed to be more restrictive.", schemaGone: "The schema '%1$s' referenced by this flow is missing." }, selectAValue: "Select a value", walkthrough: { label: "Take Tour", stepCounter: " %1$s of %2$s", buttons: { next: "Next", previous: "Previous", complete: "Start using Architect", start: "Start" }, welcome: { text1: "Architect is the flow development tool within the Genesys Cloud platform.", text2: "This tour will cover some highlights of the application to help you develop your own flows. The information presented in this tour may change, depending on which view has focus.", title: "Welcome to Architect!" }, fini: { text1: "Now it\u2019s time to build flows of your own. For practice, see %1$s", text2: "Get started with the Architect tutorial.", title: "This concludes the tour!" }, audioSequenceEditor: { text: "Use the prompt sequence editor to add multiple prompts to a location within your flow and to change the order in which they are presented.", title: "Prompts" }, configurationArea: { text1: "Build starting and reusable menus and tasks.", text2: "Specify default settings for actions, error handling, and menus.", text3: "Select supported languages.", text4: "Configure speech recognition settings.", text5: "View and locate data and prompt resources.", title: "Configuration Area" }, designArea: { textTitle: "On various actions you can:", text1: "Easily type Text-to-speech phrases.", text2: "Expand the prompt sequence editor to add, order, and stylize audio prompts, data playback, and text-to-speech.", text3: "Function and Operator help is available to provide assistance writing expressions.", text4: "Design the action's behavior when selected in the flow.", title: "Design Area" }, flowToolbar: { text1: "Save periodically to preserve your work.", text2: "Check-in, which saves the flow and releases your user lock.", text3: "Publish, which saves, validates, and checks-in your flow and then makes it available for the next new call.", textTitle: "When you are working on a flow, you can:", title: "Complete the Flow and Flow Maintenance" }, homePage: { text: "Use the tabs on the left to navigate between areas you want to create and configure.", title: "Home Page" }, help: { text1: "Go to the Genesys Cloud Resource Center for help.", text2: "Send feedback to the Genesys Cloud team.", title: "Help" }, taskEditor: { text1: "Provides a pallet of action categories and options for complex IVR design.", text2: "Includes a design area in which to drag and drop actions to build task sequences.", text3: "Toolbox similar to the flow design page.", title: "Task Editor" }, toolbarControls: { text1: "Related to creating, opening, managing, and deleting flows, prompts, or operations.", text2: "Controls change depending on your permissions and the selected tab.", title: "Toolbar Controls" }, toolbox: { textTitle: "When editing a flow:", text1: "Use actions from the toolbox and drag them to the desired location in the configuration area, in either your menu or task", text2: "Hide or expand the toolbox to adjust the design area", title: "Toolbox" }, promptToolbar: { text: "When working with audio prompts, you can add or record individual prompts while creating a flow, or you can upload audio in bulk using a CSV file to manage the configuration.", title: "Prompts" }, searchAndFilterMain: { text1: "Quickly search for a flow or audio prompt based on the selected tab.", text2: "If you don't see the flow or audio prompt you are looking for in the list, use the search box to narrow the results.", title: "Search and Filter" } }, navigationDropDown: { bot: "Bot Flow", commonModule: "Common Module", inboundCall: "Inbound Call", inboundChat: "Inbound Chat", inqueueCall: "In-Queue Call", inqueueEmail: "In-Queue Email", inqueueShortMessage: "In-Queue Message", outboundCall: "Outbound Call", inboundEmail: "Inbound Email", inboundSMS: "Inbound Message", secureCall: "Secure Call", sectionLabels: { initialFlows: "Initial Flows", postInteraction: "Post Interaction", supportingFlows: "Supporting Flows" }, surveyInvite: "Survey Invite", surveyInviteWebPrefix: "Web Survey Invite", voicemail: "Voicemail", workflow: "Workflow", workitem: "Workitem Flow", voiceSurvey: "Voice Survey" }, digitalMenuAction: { errorCreateAtLeastOneChoice: "At least one choice must be created", errorEnableAtLeastOneChoice: "At least one choice must be enabled" }, carouselType: { carouselErrorAddAtLeastOnePostbackButton: "At least one postback choice must be created in the carousel" }, nodeHeader: { expandActionDetails: "Expand Action Details", collapseActionDetails: "Collapse Action Details" }, theme: { newArchitectToggleLabel: "New Architect", newArchitectToggleTooltip: "Try the new Spark UI in Architect, switching back is available for a limited time." }, dragReusableMenuHere: "Add reusable menu here", dragReusableTaskHere: "Add reusable task here", dragStateTaskHere: "Add state here", collapseAll: "Collapse All", collapsedOne: "1 hidden action", collapsedMultiple: "%1$s hidden actions", confirmRemoveChildrenDelete: "Delete Them", confirmRemoveChildrenKeep: "Save Them", confirmRemoveMenu: "This menu contains menu choices, do you want to save them as a menu?", confirmRemoveTask: "This task contains actions, do you want to save them as a task?", confirmDeleteTopContainerActions: "'%1$s' contains one or more actions which will also be deleted.
", confirmDeleteTopContainerIsReferenced: "There are one or more actions which reference '%1$s' that will be in error if '%1$s' is deleted.
", confirmDeleteTopContainer: "%1$s
Are you sure that you want to delete '%2$s'?", confirmSaveChanges: "What do you want to do with your changes before navigating away?", confirmSaveChangesStatement: "You have unsaved changes.", created: "Created", deleteMenu: "Delete this menu", deleteTask: "Delete this task", deleteState: "Delete this state", deletionFailed: "Deletion failed", deletionFailedFor: "Deletion failed for %s", defaultForDescription: "Default: %1$s", discardChanges: "Discard Changes", editTask: "Edit Task", expandAll: "Expand All", expand: "expand", homeTitle: "Architect Home", genesysCloudDirectory: "Genesys Cloud - Activity Overview", initialGreetingLabel: "Initial Greeting", inlineLabelSeparator: ":", labelAndName: "%1$s: %2$s", logout: "Log Out", loopTask: "In-Queue Task", missingReference: "No '%1$s' Reference", namePlaceholder: "Enter name...", nameAndVersion: "%1$s (%2$s)", navigateTo: "Navigate to %1$s", noVariablesDefined: "There are no variables used in this flow. To create a variable, add an action that assigns a value to a variable.", noVariablesDefinedInContainer: "There are no '%1$s.' variables defined in '%2$s'. To create a variable, add an action that assigns a value to a variable.", noVariablesFound: "There is no data matching the search", noPromptsUsed: "There are no prompts being used in this flow", noPromptsFound: "There are no prompts matching the search", noLanguagesDefined: "There are no languages defined", preferencesAndSettings: "Preferences and settings", readOnlyFlowDeleted: "This flow is deleted.", readOnlyFlowLocked: "This flow is not open for edit and is currently locked by %1$s.", readOnlyFlowUnlocked: "This flow is not currently open for edit.", readOnlyFlowCantEdit: "You do not have permission to edit flows", readOnlyOldFlow: "You are currently viewing an older version of this flow.", reusableMenus: "Reusable Menus", reusableTasks: "Reusable Tasks", saveChanges: "Save Changes", searchFlows: "Search flows", sectionCommonModuleFlows: "Common Modules", sectionDigitalBotFlows: "Digital Bot Flows", sectionError: "Error", sectionFlows: "Flows", sectionPrompts: "Prompts", sectionBotFlows: "Bot Flows", sectionInboundEmailFlows: "Inbound Email Flows", sectionSurveyInviteFlows: "Survey Invite Flows", sectionSurveyInviteFlowsWebPrefix: "Web Survey Invite Flows", sectionInboundCallFlows: "Inbound Call Flows", sectionInboundChatFlows: "Inbound Chat Flows", sectionInboundShortMessageFlows: "Inbound Message Flows", sectionOutboundCallFlows: "Outbound Call Flows", sectionSecureCallFlows: "Secure Call Flows", sectionInQueueCallFlows: "In-Queue Call Flows", sectionInQueueEmailFlows: "In-Queue Email Flows", sectionInQueueShortMessageFlows: "In-Queue Message Flows", sectionVoiceFlows: "Voice Flows", sectionVoicemailFlows: "Voicemail Flows", sectionVoiceSurveyFlows: "Voice Survey Flows", sectionWorkflowFlows: "Workflows", sectionWorkItemFlows: "Workitem Flows", sectionUserPrompts: "User Prompts", sectionAdvancedFlowSearch: "Dependency Search", sectionSystemPrompts: "System Prompts", sectionUnsupportedBrowser: "Unsupported Browser", sectionFlowExecutionHistory: "Flow Execution History", sectionGrammars: "Grammars", serverRequests: "1 active network request", serverRequestsPlural: "%1$s active network requests", setMenuAsStartup: "Set this as the starting menu", setTaskAsStartup: "Set this as the starting task", setStateAsStartup: "Set this as the starting state", startUpMenuDisplayName: "Starting Menu", startUpTaskDisplayName: "Starting Task", startUpStateDisplayName: "Starting State", startUpBotStateDisplayName: "Starting Bot", periodicStateDisplayName: "Periodic State", setStateAsPeriodic: "Set this as the periodic state", unsavedChanges: "There are unsaved changes", webChatDeprecationText: "Genesys Cloud Web Chat and Web Chat Widgets have reached End of Life and are no longer supported. To avoid interruptions to service, migrate to Web Messaging as soon as possible. For more information see {{link.__CHAT_DEPRECATION__}} or reach out to your Genesys representative.", webChatDeprecationLinkText: "Deprecation: Removal of ACD Web Chat (version 2)", webChatDeprecationYear: "2025", shortcuts: { shortcutsDescriptions: { openShortcuts: "Open the shortcuts modal", expressionHelp: "Toggle Expression Help", goToStart: "Play backwards to Start", stepBackOver: "Step Back Over", stepBackOut: "Step Back Out", stepBackIn: "Step Back In", playPause: "Play / Pause the replay", stepIn: "Step In", stepOut: "Step Out", stepOver: "Step Over", goToEnd: "Play to End" }, shortcutGroupings: { all: "All", codeEditor: "Code Editor", flow: "Flow", global: "Global", replay: "Replay" }, shortcutsLabels: { clearKeystrokes: "Clear Keystrokes", command: "Command", exportShortcuts: "Export Shortcuts", filterBy: "Filter By", importShortcuts: "Import Shortcuts", keyboardShortcuts: "Keyboard Shortcuts", primaryKeystroke: "Primary Keystroke", resetToDefault: "Reset To Defaults", resetToDefaultQ: "Reset to default?", resolveConflict: "Resolve Conflict", revert: "Revert", secondaryKeystroke: "Secondary Keystroke" }, shortcutsMessages: { cannotOverwriteOpenShortcuts: "The shortcut '%1$s' is reserved for opening the shortcuts modal, please choose a different keystroke combination for this shortcut.", confirmResetToDefault: "Are you sure you want to reset all shortcuts to default values?", duplicateKeyCombosAssigned: "'%1$s' is already in use and will be removed from %2$s if accepted.", noMatchingShortcutCommands: "There are no matching shortcut commands.", numberOfSuccessfulShortcutsImported: "%1$s of %2$s shortcuts imported successfully.", primaryKeystrokeRequired: "The primary keystroke for '%1$s' is empty. \n\nA primary keystroke is required when a secondary keystroke is in use.", shortcutsImportedSuccessfully: "All shortcuts imported successfully.", shortcutsImportFailureFileRead: "No shortcuts were imported due to a file read error.", shortcutsImportFailureFormatting: "No shortcuts were imported due to errors with the shortcut formatting." } }, accessibility: { escapeToTab: "Press ESC before TAB to move to next element", skipLinkTexts: { skipToMenu: "Skip to Menu", skipToMenuEnd: "Skip to end of Menu" } }, importExport: { fileToImport: "File to import", import: "Import", importFailed: "Import Failed", importPartiallySuccessful: "Import Partially Successful", importSuccessful: "Import Successful", selectFileToUpload: "Select file to upload" }, markdownEditor: { boldButtonTitle: "Adds bold to the currently selected text or inserts a bold text placeholder where you can enter text", browseForFile: "Browse for File", clickToAddValue: "Click to add text", enterExpressionTextHere: "enter expression text here", enterFullVariableNameHere: "enter full variable name here", enterBoldTextHere: "enter bold text here", enterDigitalAudioUrlHere: "enter digital audio URL here", enterFileUrlHere: "enter file URL here", enterImageUrlHere: "enter image URL here", enterVideoUrlHere: "enter video URL here", enterItalicsTextHere: "enter italics text here", enterLinkTextHere: "enter link text here", enterLinkUrlHere: "enter link URL here", enterStrikethroughTextHere: "enter strikethrough text here", expressionButtonTitle: "Evaluates an expression and inserts the result in to the rich text", fileButtonTitle: "Insert a file from a file variable or URL in to the rich text", imageButtonTitle: "Insert an image from an image variable or URL in to the rich text", insertFromUrl: "Insert from URL", insertFileFromUrl: "Insert File from URL", insertImageFromUrl: "Insert image from URL", insertVariable: "Insert variable", italicsButtonTitle: 'Adds italics to the currently selected text or inserts an italics text placeholder where you can enter text"', linkButtonTitle: "Inserts a link with customizable text and URL in to the rich text", mediaButtonTitle: "Insert a media object from an image, video or digital audio variable or URL in to the rich text", missingClosingCurlyBraces: "Missing closing braces: '}}'", nestedCurlyBraces: "Nested curly braces are invalid and will be shown as plain text", strikethroughButtonTitle: "Adds strikethrough to the currently selected text or inserts an strikethrough text placeholder where you can enter text", variableButtonTitle: "Inserts a variable value in to the rich text" }, replayer: { actionExecutionId: "Action Execution ID", actionId: "Action ID", actionName: "Action Name", actionType: "Action Type", blankCommunicationItemMessage: "This communication was blank.", clearBreakpoint: "Clear Breakpoint", communications: "Communications", communicationFramesTooltip: "When the communications panel is being displayed, specifies which communications are being displayed.", communicationsNotSupportedForFlowType: "Communications are not supported for this flow type.", noCommunicationsForFlowInstance: "No communications were reported for this flow instance.", noCommunicationsForCurrentFrame: "No communications were reported for the current frame. To view frames that did have communications reported, update the Communications panel to show all communications in the {{link.__REPLAY_MODE_SETTINGS__}}.", confidence: "Confidence", confidenceAlternates: "Alternates", currentFrameCommunicationTooltip: "Current Frame", defaultLanguageSkillId: "Default Language Skill ID", defaultLanguageSkillName: "Default Language Skill Name", details: "Frame Details", eventNameError: "Error Event", eventNameWarning: "Warning Event", eventErrorSettingName: "Setting Name", eventErrorSettingItemName: "Setting Item Name", eventErrorSettingItemIndex: "Setting Item Index", eventErrorLimitOrg: "Organization", eventErrorLimitOrgLimits: "Limits", eventErrorFunctionName: "Function Name", eventErrorParameterName: "Parameter Name", eventErrorReason: "Reason", eventErrorDetails: "Error Details", eventErrorLimitName: "Limit Name", eventErrorLimitValue: "Limit Value", eventNameAgentEscalation: "Agent Escalation Event", eventNameAudioFlushed: "Audio Flushed Event", eventNameGlobalDtmf: "Global DTMF Event", eventLanguageChanged: "Language Changed Event", eventNameNoInput: "No Input Event", eventNameNoMatch: "No Match Event", eventNameRecognitionFailure: "Recognition Failure Event", eventNameSessionDisconnected: "Session Disconnected Event", eventNameVariablesUpdated: "Variables Updated Event", executionHistory: "Execution History\u2026", executionHistoryTitle: "Query execution history for this flow", executionId: "Execution ID", exitReplay: "Close Replay", exitReplayMode: "Exit Replay", exportExecutionData: "Export execution data", failedToLoadExecutionData: "Failed to load execution data", failedToLoadExecutionDataMessage: "There was an error loading the execution data for the flow instance with an ID of %1$s.", flow: "Flow", flowEnded: "Flow Ended", flowEndTime: "Flow End Time", flowExecutionId: "Flow Execution ID", flowExitReason: "Flow Exit Reason", flowExitTransferType: "Flow Exit Transfer Type", flowStarted: "Flow Started", flowStartingLanguage: "Flow Starting Language", flowStartTime: "Flow Start Time", flowInstanceIsSecure: "Flow Instance Is Secure", flowInstanceIsTruncated: "Flow Instance Is Truncated", flushedCommunications: "Flushed Queued Communications", filterData: "Filter variables...", filterDataEmpty: "There are no variables matching the filter", goToLatest: "Go to Latest", invokingContext: "Invoking Context", isInReplayMode: "Replay mode is read only. You can not make changes to this file.", isTruncated: "Truncated", isTruncatedTooltip: "Indicates execution data for this flow instance is truncated and not all items that ran during this flow's execution were captured.", loadingExecutionData: "Loading execution data...", numberOfMs: "...%1$sms", openFlow: "Open Target Flow", openFlowTitle: "Open replay of target flow (action must be for currently selected execution frame)", openInvokingFlow: "Open Invoking Flow", openInvokingFlowTitle: "This flow was invoked by another Architect flow.", openInvokingPolicy: "Open invoking Quality Policy", openInvokingPolicyTitle: "Open the invoking Quality Policy", openInvokingTrigger: "Invoked by Process Automation", openInvokingTriggerTitle: "This flow was invoked by a Process Automation Trigger.", openInvokingJourney: "Open Invoking Journey Action Map", openInvokingJourneyTitle: "This flow was invoked by a Journey Action Map.", openInvokingWorkitem: "Open Invoking Workitem", openInvokingWorkitemTitle: "This flow was invoked by a Workitem.", outputPath: "Output Path", pause: "Pause", participantTo: "To Participant", participantFrom: "From Participant", play: "Play", playbackSpeed: "Playback Speed", predictiveEngagementJourneyMapId: "Action Map ID", predictiveEngagementJourneyMapName: "Action Map Name", purposeNoInput: "No Input", purposeNoMatch: "No Match", qualityPolicyId: "Policy ID", qualityPolicyName: "Policy Name", replay: "Replay", panelLocationBottom: "Show panel on bottom", panelLocationOff: "Do not show panel", panelLocationSide: "Show panel on side", replayModeLabel: "Replay Mode", replayModeSettingsTitle: "Replay Mode Settings", sequenceTypeTextLabel: "Text", setBreakpoint: "Set Breakpoint", showStackGraph: "Show Stack Graph", skipHere: "Skip here", skipBackHere: "Skip back here", speedFast: "Fast", speedSlow: "Slow", stack: "Stack", stackExecutionId: "Stack Execution ID", stackType: "Type", sttEngineID: "STT Engine ID", processAutomationTriggerId: "Trigger ID", processAutomationTriggerName: "Trigger Name", processAutomationTriggerType: "Trigger Type", ttsEngineID: "TTS Engine ID", ttsVoiceID: "TTS Voice ID", variables: "Data", valueIsDeferred: "Deferred", valueRedacted: "Value Redacted", invalidValue: "Value Invalid", valueTooLarge: "Value Too Large", valueIsDeferredMessage: "This value is only computed when the property is accessed at runtime.", valueIsRedactedMessage: "This indicates a computation occurred but the value cannot be reported as it is secure.", valueIsInvalidMessage: "This indicates an invalid value at flow runtime.", valueIsTooLargeMessage: "This value was too large to be reported by the flow runtime engine.", workitemEventType: "Workitem Event Type", workitemId: "Workitem ID", workitemName: "Workitem Name", zoomFull: "Zoom Full", zoomMedium: "Zoom Medium", zoomOff: "Zoom Off", zoomPercent: "Zoom %1$s%%", zoomSmall: "Zoom Small", zoomLevel: "Timeline Zoom Level", replayToolbar: { showCommunicationsForAllFrames: "Show communications for all frames", showCommunicationsForCurrentFrame: "Show communications for current frame", showValuesInLocal: "Show Values in Local" }, executionDataProviders: { flow: { flowCommunicationsCharacteristicDisabled: "Communication data was not logged for this flow instance.", flowVariablesCharacteristicDisabled: "Variable value data was not logged for this flow instance." } }, disposition: "Disposition: %1$s", dispositions: { executionSkippedMaxInstancesExceeded: "Execution of this action was skipped because execution would exceed the maximum number of instances allowed per flow instance.", skippingInboundEmailAutoGenerated: "No auto reply was sent from this action. Automatic replies are not sent to auto-generated emails.", skippingInputMessageBodyBlank: "No message was sent from this action. The message body was blank.", skippingPreviousReplyWithParticipant: "No auto reply was sent from this action. An auto reply was already sent for this conversation.", skippingThirdPartyEmailConversation: "No auto reply was sent from this action. Auto replies are not sent to third party email conversations." }, nextChange: "Go to next change", previousChange: "Go to previous change", externalExecutionData: { unavailable: { botDataUnavailableInsufficientPermissionsCommunications: "Communications for the external bot are unavailable due to insufficient permissions. You must have the bot instance view permission to see external bot communications.", botDataUnavailableUnableToRetrieveCommunications: "Communications for the external bot are unavailable due to an error retrieving the bot instance data." } }, pausingPlayback: "Pausing playback", resumingPlayback: "Resuming playback" }, executionHistory: { flowExecutionViewPermission: "You do not have permission to view flow executions.", flowInstanceQueryPermission: "You do not have permission to query flow instance history.", flowInstanceViewPermission: "You do not have permission to view flow instance history.", flowInstanceMissingViewPermission: "You do not have permission to view this flow instance. The permission 'architect:flowInstance:view' is required to view flow instance history.", endDateTime: "End Date Time", startDateTime: "Start Date Time", queryBuilderOnboarding: "Add Criteria Here", queryBuilderOnboardingInfo: "Create a query to find all available flow instances that can be replayed.

You can click on, or drag, criteria from the toolbar on the right to create a filter that will help narrow down the flows whose execution meet different criteria.", queryBuilderUrlCriteriaUnavailable: "Unable to query the requested execution data specified in the URL as the query requires criteria that is not available to this organization.", queryBuilderLinkNotValid: "The linked execution history query was not executed due to an error in the criteria value provided.", viewQuery: "View Query", flowInstances: "Results", queryBuilder: "Query Builder", confirmDeleteTitle: "Confirm Delete", confirmDeleteMessage: "Are you sure you want to delete this Clause? If deleted, all of the criteria it contains will also be deleted.", actionRuntimeIdLabel: "%1$s - Action", menuRuntimeIdLabel: "%1$s - Menu", criteriaValuePlaceholder: "Enter a value", criteriaSelectedValueRequired: "You must select a value.", criteriaAllowableValuePlaceholder: "Select a value", enterCriteriaValueScreenreaderText: "Enter a value for the '%1$s' criteria.", selectCriteriaValueScreenreaderText: "Select a value for the '%1$s' criteria.", selectCriteriaOperatorScreenreaderText: "Select an operator for the '%1$s' criteria.", selectActionContainerValueScreenreaderText: "Select an Action value for this criteria.", errorAddingCriteria: "Error Adding Criteria", tooManyNestedCriteria: "Unable to add a new nested criteria clause", unableToLoadQuery: "Unable to load saved query", errorRunningQuery: "An error occurred when running the query", runQuery: "Show Results", loadQuery: "Load Query", clearQuery: "Clear Query", saveQuery: "Save Query", queryNotExecuted: "Run a query with the Query Builder above to find flow instances", queryNoResults: "Query did not find any flow instances", invalidQueryNeedsOneCriteria: "Invalid query: At least one criteria is required", invalidQueryNeedsFlowIdCriteria: "Invalid query: Queries for an Action Id must include the Flow Id", invalidQueryNeedsActionIdCriteria: "Invalid query: Queries for Output Paths and Flow Id must include the Action Id", viewingFlowInstance: "%1$s (viewing)", changeQueryMode: "Change Query Mode", changeQueryModeWarningMessage: "Are you sure you want to change query mode? Your current query will be lost.", enhancedQueryMode: "Enhanced Query", categoryLabels: { clause: "Clause", flow: "Flow Criteria", action: "Action Criteria", conversation: "Conversation Criteria", workitem: "Workitem Criteria" }, criteriaDefinitionLabels: { actionId: "Action Id", actionType: "Action Type", and: "and", conversationId: "Conversation Id", definedExitPath: "Known Output Path", dynamicExitPath: "Dynamic Output Path", exitPathName: "Output Path Name", flowEndDate: "Flow End DateTime", flowErrorReason: "Flow Error Code", flowId: "Flow Id", flowInvokedError: "Flow Invoked Error", flowName: "Flow Name", flowStartDate: "Flow Start DateTime", flowType: "Flow Type", flowVersion: "Flow Version", flowWarningReason: "Flow Warning Code", not: "not", objectExecutionId: "Invoking Flow Object Execution Id", or: "or", workitemId: "Invoking Workitem Id" }, criteriaDefinitionDescriptions: { and: "Query for flow instances where all sub-criteria must be true", or: "Query for flow instances where at least one sub-criteria must be true", actionId: "Query for by action ID", actionType: "Query by action type", conversationId: "Query by conversation ID", flowType: "Query by flow type", flowName: "Query by flow name", flowId: "Query by flow ID", flowVersion: "Query by flow version", flowInvokedError: "Query for flow instances that invoked any error", flowErrorReason: "Query by error reason", flowStartDate: "Query by flow start datetime", flowEndDate: "Query by flow end datetime", objectExecutionId: "Query for flows via the object execution id (the invoking caller)", exitPathName: "Query by action output path name", definedExitPath: "Query by action output path known ID", dynamicExitPath: "Query by action output path ID" }, operatorLabels: { eq: "equals", gt: "greater than", gte: "greater than or equal to", lt: "less than", lte: "less than or equal to", begins: "starts with" } }, executionDataConfiguration: { directoryOrganizationAdminPermission: "You do not have permission to view organization settings in Collaborate.", executionDataLogLevelLabelAll: "All", executionDataLogLevelLabelBase: "Base", executionDataLogLevelLabelCustom: "Custom", executionDataLogLevelLabelDisabled: "None (Disabled)", executionDataLogLevelLabelNone: "None", executionDataLogLevelLabelNotes: "Notes", executionDataLogLevelLabelVerboseNotes: "Verbose Notes", flowInstanceExecutionDataViewPermission: "You do not have permission to view flow execution data storage settings.", flowLogLevelViewPermission: "You do not have permission to view flow log level settings.", flowLogLevelViewPermissionMissing: "You do not have the view flow log level settings permission in the division of the following flow:", flowLogLevelDefaultViewPermission: "You do not have permission to view default flow log level settings.", organizationExecutionDataViewPermission: "You do not have permission to view the execution data settings in this organization.", organizationExecutionDataViewRestriction: "You do not have permission to view the execution data settings in this organization. Find further information and instructions in the {{link.__RESOURCE_CENTER_EXECUTION_DATA__}}.", flowLogLevelButtonLabel: "Execution Data", flowLogLevelButtonTooltip: "Override execution data level for flow", flowLogLevelModalTitle: "Override Execution Data Flow Level", flowLogLevelModalSubtitle: "Flow: %1$s", manageExecutionDataMenuLabel: "Execution Data Settings", flowDefaultLogLevelMenuLabel: "Execution Data Flows Level", flowDefaultLogLevelModalTitle: "Set Execution Data Level for Flows", flowDefaultLogLevelFlowName: "Default", flowInstanceLogLevelTooltip: "The execution data log level used for the flow instance.", flowInstanceSecureLogLevelTooltip: "The execution data log level used for the flow instance. The lock icon indicates that this flow instance was secure.", recordedFlowInstanceExecutionLevel: "Execution Data Level: %1$s" }, naturalLanguageUnderstanding: { intentDefinitions: "Intent Definitions", languageStatusPreviewIntentDetection: "The language '%1$s' is a preview release and may impact intent detection.", nluMustHaveOneIntentForIntentDetection: "There must be at least one intent defined in the flow's Natural Language Understanding configuration if you want to detect an intent." } }; + }, 12688: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.captureError = t2.errorContext = void 0; + var n2 = i2(93728), r2 = null; + t2.errorContext = function(e3) { + if (n2.config.useDeprecatedSynchronousErrorHandling) { + var t3 = !r2; + if (t3 && (r2 = { errorThrown: false, error: null }), e3(), t3) { + var i3 = r2, o = i3.errorThrown, a = i3.error; + if (r2 = null, o) throw a; + } + } else e3(); + }, t2.captureError = function(e3) { + n2.config.useDeprecatedSynchronousErrorHandling && r2 && (r2.errorThrown = true, r2.error = e3); + }; + }, 12707: (e2, t2, i2) => { + "use strict"; + var n2; + Object.defineProperty(t2, "__esModule", { value: true }); + const r2 = i2(31635), o = r2.__importDefault(i2(2257)), a = r2.__importDefault(i2(56549)), s = i2(30801), l = i2(71439), u = i2(9485), d = r2.__importDefault(i2(66978)); + class c extends o.default { + constructor(e3) { + super(e3), n2.set(this, void 0), this._aliasManager = l.lexV2AliasManager, this._botNameManager = u.lexV2BotNameManager, r2.__classPrivateFieldSet(this, n2, this.coreFactory.createArchWrapper(e3.initialIntent), "f"); + } + get _actionTypeId() { + return s.lexV2ActionType; + } + get displayTypeName() { + return this._scriptingName; + } + get isArchActionCallLexV2Bot() { + return true; + } + addSessionVariableOutputNameValuePair(e3, t3) { + var i3; + return this._checkItemIsValidLiteralString(this._infoParm("nameLiteral", "addSessionVariableOutputNameValuePair"), e3, true), this._checkItemIsValidLiteralStringOrArchVariableString(this._infoParm("outputVariable", "addSessionVariableOutputNameValuePair"), t3, true), null === (i3 = this.sessionVariableOutputs) || void 0 === i3 ? void 0 : i3._addNameValueAssignment(e3, t3, true, true); + } + get aliasInitialIntentName() { + return r2.__classPrivateFieldGet(this, n2, "f"); + } + get sessionVariableOutputs() { + const e3 = this._getCoreViewModel().outputSessionVariables; + if (e3) return this.coreFactory.createArchBaseValueContainer(e3); + } + setLexBotAliasByIdAsync(e3, t3, i3, n3) { + this._checkItemIsValidLiteralString(this._infoParm("botName", "setLexBotAliasByIdAsync"), t3, false), this._checkItemIsValidLiteralString(this._infoParm("lexBotAliasId", "setLexBotAliasByIdAsync"), e3, false), this._checkItemIsValidLiteralString(this._infoParm("botRegion", "setLexBotAliasByIdAsync"), i3, false), this._checkItemIsValidFunction(this._infoParm("callbackFunction", "setLexBotAliasByIdAsync"), n3, true); + const r3 = { region: i3 }; + return a.default.findItemByValueAsync(this._botNameManager, t3, "lex bot", void 0, void 0, r3).then((t4) => (this._getCoreViewModel().setBotCategoryByViewModel(t4), this._setLexBotAliasByIdAsync("setLexBotAliasByIdAsync", e3, n3))); + } + setLexBotAliasByNameAsync(e3, t3, i3, n3, o2, s2) { + return r2.__awaiter(this, void 0, void 0, function* () { + if (this._checkItemIsValidLiteralString(this._infoParm("aliasName", "setLexBotAliasByNameAsync"), e3, false), this._checkItemIsValidLiteralString(this._infoParm("botName", "setLexBotAliasByNameAsync"), t3, false), this._checkItemIsValidLiteralString(this._infoParm("botRegion", "setLexBotAliasByNameAsync"), i3, false), this._checkItemIsValidLiteralString(this._infoParm("aliasLanguageTag", "setLexBotAliasByNameAsync"), n3, false), this._checkItemIsValidLiteralBool(this._infoParm("searchByBotName", "setLexBotAliasByNameAsync"), o2), this._checkItemIsValidFunction(this._infoParm("callbackFunction", "setLexBotAliasByNameAsync"), s2, true), o2) { + const r4 = { region: i3 }, o3 = yield a.default.findItemByValueAsync(this._botNameManager, t3, "lex bot", void 0, void 0, r4); + this.logNote(`Found partial info for the Lex Bot named '${o3.name}' for the passed bot name of '${t3}'. Getting full bot details.`), this._getCoreViewModel().setBotCategoryByViewModel(o3); + const l2 = { localeString: n3.toLowerCase(), botId: o3.id }; + this.logNote(`Using locale '${n3.toLowerCase()}' and bot id '${o3.id}' for filtering alias lookup.`); + const u2 = yield a.default.findItemByValueAsync(this._aliasManager, e3, `lex alias for bot '${o3.name}'`, void 0, void 0, l2, { botId: o3.id }); + return this.logNote(`Found partial info for the Lex Bot Alias named '${u2.name}' for the passed alias name of '${e3}' on bot '${o3.name}'. Getting full alias details.`), d.default.addPromise(this._setLexBotAliasByIdAsync("setLexBotAliasByNameAsync", u2.id, s2), "setLexBotAliasByNameAsync"); + } + const r3 = yield a.default.findItemByValueAsync(this._aliasManager, e3, "lex alias", void 0, void 0, void 0, { botId: t3 }); + return this.logNote(`Found partial info for the Lex Bot Alias named '${r3.name}' for the passed alias name of '${e3}'. Getting full alias details.`), d.default.addPromise(this._setLexBotAliasByIdAsync("setLexBotAliasByNameAsync", r3.id, s2), "setLexBotAliasByNameAsync"); + }); + } + } + n2 = /* @__PURE__ */ new WeakMap(), t2.default = c; + }, 12715: (e2, t2, i2) => { + const n2 = i2(2210), r2 = i2(28730), { playAudioActionType: o } = i2(30801); + function a() { + Object.defineProperties(this, { _prompts: { writable: true } }), a.baseConstructor.apply(this, arguments); + } + r2.extend(a, o, true), Object.defineProperties(a.prototype, { pasteReIdOrRename: { value: function(e3) { + a._super.pasteReIdOrRename.apply(this, arguments), this.prompts.pasteReIdOrRename(e3); + } }, pasteResolveOldToNewValues: { value: function(e3) { + a._super.pasteResolveOldToNewValues.apply(this, arguments), this.prompts.pasteResolveOldToNewValues(e3); + } }, prompts: { enumerable: true, get: function() { + return this._prompts; + }, set: function(e3) { + this._prompts = this.reviveItem(e3, n2); + } } }), e2.exports = a; + }, 12722: (e2, t2, i2) => { + "use strict"; + const n2 = i2(31635), r2 = n2.__importDefault(i2(942)), o = i2(80428), a = i2(26954), s = i2(96684), l = i2(12179), u = n2.__importDefault(i2(97891)), d = i2(47957); + class c extends r2.default { + constructor(e3, t3) { + super(e3.parentFlow, e3), this._loadModel(t3); + } + static get managedProperties() { + return r2.default.createManagedProperties({ searchFieldLabel: d.findActions.findUser.nameLabel, searchResultLabel: d.findActions.findUser.resultLabel, searchResultExpressionOptions: a.ExpressionTypeUserOptions.create(), searchResultItemType: o.expressionTypeNames.userQueue }); + } + } + c.info = u.default.createActionInfo({ actionClass: c, canBeInTask: true, helpTopic: l.helpTopics.actions.findUser, modelClass: s.FindUserActionModel, name: d.actions.findUser, scriptingName: "ArchActionFindUser" }), t2.A = c; + }, 12723: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(84655)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "surveyQuestion"; + } + get displayTypeName() { + return "ArchVariableSurveyQuestion"; + } + get initialValue() { + return this._initialValue; + } + get isArchVariableSurveyQuestion() { + return true; + } + } + t2.default = r2; + }, 12729: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.VoiceSurveyFlowReferenceProperty = void 0; + const n2 = i2(33381), r2 = i2(44307); + class o extends n2.FlowReferenceProperty { + constructor(e3, t3, i3, n3, r3, o2) { + super(e3, t3, i3, n3, r3, o2); + } + get className() { + return "VoiceSurveyFlowReferenceProperty"; + } + static createCreateDetails(e3) { + const t3 = this.createModelPropNames(e3.useFlowTypeSpecificModelProps, null == e3 ? void 0 : e3.flowType); + return { create: (t4, i3) => new o(t4, i3, e3.flowType, e3.supportsSpecificVersion, e3.showVersionSelection, e3.useFlowTypeSpecificModelProps), getCreateClass: () => o, modelProperties: [t3.idPropName, t3.namePropName, t3.versionPropName, t3.latestVersionPropName, t3.debugPublishedPropName] }; + } + get isVoiceSurveyFlowReferenceProperty() { + return true; + } + getConfiguration(e3, t3) { + var i3, n3; + const o2 = super.getConfiguration(e3, t3); + if (null == t3 ? void 0 : t3.isForFlowYaml) { + const t4 = this.getFlowInfo(); + if (null === (i3 = null == t4 ? void 0 : t4.surveyForm) || void 0 === i3 ? void 0 : i3.name) { + const i4 = (0, r2.getFlowConfigFromSnapshot)(e3, this.flowName, this.flowType); + i4 && (i4.flow.surveyForm = null === (n3 = null == t4 ? void 0 : t4.surveyForm) || void 0 === n3 ? void 0 : n3.name); + } + } + return o2; + } + } + t2.VoiceSurveyFlowReferenceProperty = o; + }, 12786: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.updateConversationAttributeFailureReasons = t2.createConversationAttributeFailureReasons = t2.getConversationAttributesFailureReasons = t2.getConversationAttributeFailureReasons = void 0; + const n2 = i2(31635).__importDefault(i2(92140)), r2 = "ConversationCustomAttributeRecordNotFound", o = "InvalidAttribute", a = ["GeneralError", "ActionInvocationLimitExceeded"]; + t2.getConversationAttributeFailureReasons = n2.default.uniq(a.concat([r2])), t2.getConversationAttributesFailureReasons = n2.default.uniq(a.concat([r2])), t2.createConversationAttributeFailureReasons = n2.default.uniq(a.concat([o, "InvalidConversationCustomAttributeSchema"])), t2.updateConversationAttributeFailureReasons = n2.default.uniq(a.concat([r2, o])); + }, 12847: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.infoHighlightAlways = function(e3) { + console.log(r2.bgGreen.black(e3)); + }, t2.infoHighlight = function(e3) { + }, t2.infoInverse = function(e3) { + }, t2.errorAlways = function(...e3) { + !(function() { + { + const e4 = n2.default.rest(arguments); + console.log(r2.red(arguments[0]), ...e4); + } + })(...e3); + }, t2.error = function(...e3) { + }, t2.logAlways = function(...e3) { + o(...e3); + }, t2.log = function(...e3) { + }, t2.infoAlways = function(...e3) { + o(...e3); + }, t2.info = function(...e3) { + }, t2.table = function(e3, t3, i3) { + }, t2.warnAlways = function(...e3) { + !(function(...e4) { + { + const t3 = n2.default.rest(e4); + console.log(r2.yellow(e4[0]), ...t3); + } + })(...e3); + }, t2.warn = function(...e3) { + }, t2.time = function(e3, t3 = 1e3, i3 = false) { + return () => { + }; + }; + const n2 = i2(31635).__importDefault(i2(92140)); + let r2; + function o(...e3) { + console.log(...e3); + } + r2 = i2(15896); + }, 12861: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importDefault(i2(17405)), o = n2.__importDefault(i2(73198)); + class a extends r2.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "integer"; + } + get displayTypeName() { + return "ArchValueInteger"; + } + _checkAndSetLiteral(e3, t3) { + this._checkItemIsValidLiteralInt(e3, t3), this._checkItem(e3, t3 < o.default.minInt, "the integer value of '" + t3 + "' is less than the allowed minimum of '" + o.default.minInt + "'"), this._checkItem(e3, t3 > o.default.maxInt, "the integer value of '" + t3 + "' is greater than the allowed maximum of '" + o.default.maxInt + "'"), this._setLiteral(e3, t3.toString()); + } + get isArchValueInteger() { + return true; + } + setExpressionMaxInt() { + this._setExpression(this._infoVal("arch_max_int", "setExpressionMaxInt"), o.default.minInt.toString()); + } + setExpressionMinInt() { + this._setExpression(this._infoVal("arch_min_int", "setExpressionMinInt"), o.default.minInt.toString()); + } + setLiteralInt(e3) { + this._checkAndSetLiteral(this._infoParm("intValue", "setLiteralInt"), e3); + } + setLiteralMaxInt() { + this._checkAndSetLiteral(this._infoVal("arch_max_int", "setLiteralMaxInt"), o.default.maxInt); + } + setLiteralMinInt() { + this._checkAndSetLiteral(this._infoVal("arch_min_int", "setLiteralMinInt"), o.default.minInt); + } + } + t2.default = a; + }, 12889: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importDefault(i2(92140)), o = n2.__importStar(i2(58380)), a = n2.__importStar(i2(59288)), s = n2.__importStar(i2(36781)), l = n2.__importDefault(i2(61610)), u = n2.__importDefault(i2(33139)), d = i2(12179), c = n2.__importDefault(i2(97891)), p = i2(26847), _ = i2(55909), h = i2(33951), m = i2(17604), g = n2.__importDefault(i2(41510)), f = i2(30801), T = i2(1115), y = i2(47957); + i2(92330); + const S = (e3) => e3 === p.outputIds.default; + class A extends l.default { + constructor(e3, t3) { + super(e3), this._branchItems = [], this._loadModel(t3); + } + static get notRealAction() { + return true; + } + get resources() { + return { deleteTitle: y.deleteTask, edit: y.editTask, multipleNameError: y.task.multipleNames, noTerminatingAction: y.task.noTerminatingAction, setAsStartup: y.setTaskAsStartup, startUpDisplayName: y.startUpTaskDisplayName }; + } + _loadModel(e3) { + if (e3) { + if (this._branchItems.length = 0, e3.paths) for (let t3 = 0; t3 < e3.paths.length; t3++) { + const i3 = a.createBranchItem(e3.id, e3.paths[t3], (e4) => this.removeBranch(e4), S(e3.paths[t3].outputId)); + this._branchItems.push(i3); + } + super._loadModel(e3); + } + } + getBranches() { + return this._branchItems; + } + getBranchByName(e3) { + if (!this.parentFlow.supportsTasksWithOutputPaths) return null; + if (!h.ParameterValidator.expectString(e3, () => _.ParameterInfo.createFunctionParameter(this.className, "getBranchByName", "branchName"))) return null; + const t3 = e3.toLowerCase(), i3 = r2.default.find(this._branchItems, (e4) => e4.label.toLowerCase() === t3); + return r2.default.isUndefined(i3) ? null : i3; + } + getBranchByOutputId(e3) { + const t3 = this._branchItems.find((t4) => t4.outputId === e3); + return r2.default.isUndefined(t3) ? null : t3; + } + createBranch(e3) { + if (!this.supportsCustomOutputPaths) return null; + const t3 = a.createBranchItem(this.id, e3, (e4) => this.removeBranch(e4)); + return this._branchItems.push(t3), o.fireEvent(this, s.outputBranchAdded, t3), t3; + } + _destroy() { + super._destroy(), this._branchItems.length = 0; + } + getInputVariables() { + return r2.default.filter(this.variables, (e3) => e3.isInput); + } + get isReusableTask() { + return !this.isInlineTask && this.id !== this.parentFlow.initialSequence; + } + getOutputVariables() { + return r2.default.filter(this.variables, (e3) => e3.isOutput); + } + getConfiguration(e3, t3) { + let i3 = super.getConfiguration(e3, t3); + if (null == t3 ? void 0 : t3.isForFlowYaml) { + if (!this.supportsCustomOutputPaths || 1 === this._branchItems.length) return i3; + i3 = r2.default.getFirstPropertyValueInObj(i3); + } + const n3 = (null == t3 ? void 0 : t3.isForFlowYaml) ? u.default.outputPaths : u.default.paths; + return r2.default.isArray(i3[n3]) || (i3[n3] = []), i3[n3].length = 0, this._branchItems.forEach((r3) => { + (null == t3 ? void 0 : t3.isForFlowYaml) && r3.outputId === p.outputIds.default || i3[n3].push(r3.getConfiguration(e3, t3)); + }), (null == t3 ? void 0 : t3.isForFlowYaml) ? r2.default.tryWrapObject(i3, this.wrappedYamlName) : i3; + } + get isAllowedAsStartupNode() { + return this.parentFlow.definition.startUpObjectCanBeTask && !this.isInlineTask; + } + get isCallable() { + return !this.isInlineTask && !this.isStartUpObject; + } + get isTask() { + return true; + } + get isTransferable() { + return (this.isStartUpObject || !this.hasBranchTerminatingWithEndTask) && !this.isInlineTask; + } + get name() { + return super.name; + } + set name(e3) { + const t3 = this.name; + super.name = e3, t3 !== e3 && (o.fireEvent(this.parentFlow, s.taskNameChanged, this), (0, T.validateNode)(this, true)); + } + get supportsInputVariables() { + return !this.isInlineTask && this.parentFlow.supportsTaskInputVariables; + } + get supportsCustomOutputPaths() { + return this.isCallable && this.parentFlow.supportsTasksWithOutputPaths; + } + get supportsOutputVariables() { + return !this.isInlineTask && this.parentFlow.supportsTaskOutputVariables; + } + get supportsInputAndOutputVariables() { + return this.parentFlow.supportsTaskInputAndOutputVariables; + } + removeBranch(e3) { + if (e3 === p.outputIds.default) return; + const t3 = r2.default.findIndex(this._branchItems, { outputId: e3 }); + t3 > -1 && a.removeBranch(this.id, e3) && (this._branchItems.splice(t3, 1), o.fireEvent(this, s.outputBranchRemoved, e3)); + } + addClipboardDependencies(e3) { + super.addClipboardDependencies(e3), e3.copyCutProcessTaskViewModel(this); + } + targetTaskPathDisplayStr(e3) { + return this.isInlineTask ? (0, m.sprintf)(g.default.task.targetPathDisplayStr, this.linkedMenuChoice.parent.name, this.name) : this.name; + } + } + A.info = c.default.createReusableNodeInfo({ actionType: f.taskActionType, actionClass: A, helpTopic: d.helpTopics.tasks.task, name: y.actions.task, needsServerInfo: true, categoryId: "category.task" }), t2.default = A; + }, 12992: (e2, t2, i2) => { + "use strict"; + const n2 = i2(31635), r2 = i2(17604), o = i2(80428), a = i2(15364), s = i2(48112), l = i2(37830), u = i2(81516), d = i2(79963), c = i2(12179), p = i2(12457), _ = n2.__importDefault(i2(97891)), h = i2(77415), m = n2.__importDefault(i2(5730)), g = i2(47957); + class f extends m.default { + constructor(e3, t3) { + super(e3.parentFlow, e3), this._loadModel(t3), this.resources = { mustSelectScript: (0, r2.sprintf)(g.screenPop.mustSelectScript, g.createCallback.selectedScript), scriptNotFound: g.createCallback.callbackScriptNotFound }; + } + get useQueue() { + return this.model.useQueue; + } + set useQueue(e3) { + this.model.useQueue = e3; + } + get result() { + return this.model.result; + } + getDetails() { + if (!this.callbackNumbers || !this.queue) return null; + const e3 = [], t3 = []; + return this.scriptName && (e3.push(g.createCallback.selectedScript), t3.push(this.scriptName)), this.calleeName.text && (e3.push(g.createCallback.calleeName), t3.push(this.calleeName.text)), this.callbackNumbers.items && this.callbackNumbers.items.length > 0 && (e3.push(g.createCallback.callbackNumber), t3.push(this.callbackNumbers.items[0].text)), this.queue.outOfService || (e3.push(g.transferPureMatch.queue), t3.push(this.queue.text)), new p.ActionDetails(e3, t3); + } + setNewInstanceDefaults() { + super.setNewInstanceDefaults(...arguments), this.callbackNumbers.add(), this.callbackNumbers.items[0].setAsExpression("ToPhoneNumber(Call.Ani)"), this.setOutOfService(); + } + _loadModel(e3) { + super._loadModel(e3), this.setOutOfService(); + } + static get managedProperties() { + return [{ label: g.configurations.queue, options: l.ExpressionTypeQueueOptions.create((e3) => e3.setIninTestingField("queueExpression").setAllowEmptyConfig(true)), property: "queue", type: o.expressionTypeNames.queue }, { label: g.createCallback.callbackNumber, list: true, property: "callbackNumbers", type: o.expressionTypeNames.phoneNumber, options: s.ExpressionTypePhoneNumberOptions.create((e3) => e3.setIninTestingField("callbackNumberExpression")), yamlOptions: f.createYamlOptions("callbackNumber", (e3) => e3.setPropertyName("callbackNumber").setConvertToSingleItem(true)) }, { label: g.createCallback.calleeName, options: u.ExpressionTypeStringOptions.create((e3) => e3.setIsOptional(true).setIninTestingField("calleeNameExpression")), property: "calleeName", type: o.expressionTypeNames.string }, { createDetails: h.ScriptProperties.createCreateDetails(void 0, void 0, true), property: "scriptSettings", yamlOptions: f.createYamlOptions("scriptSettings", (e3) => e3.setPropertyName("callbackScript").setUseNoneTrueForExpressionContainerClass(a.DataPairList.className)) }]; + } + get scriptManager() { + return d.callbackManager; + } + getCachedServerPropertyById(e3, t3) { + return this.scriptManager.getCachedServerPropertyById(e3, this.scriptId, t3, this); + } + setOutOfService() { + this.useQueue = !this.parentFlow.isInQueueCallFlow, this.queue.outOfService = !this.useQueue; + } + } + f.info = _.default.createActionInfo({ actionClass: f, canBeInTask: true, helpTopic: c.helpTopics.actions.createCallback, modelClass: i2(2512), name: g.actions.createCallback, scriptingName: "ArchActionCreateCallback" }), t2.A = f; + }, 13002: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = i2(26847), o = n2.__importDefault(i2(65485)); + class a extends o.default { + constructor(e3) { + super(e3); + } + get displayTypeName() { + return "ArchBaseActionWithOutputsSuccessFailureNoInputNoMatch"; + } + get isArchBaseActionWithOutputsSuccessFailureNoInputNoMatch() { + return true; + } + get outputSuccess() { + return this._getOutputById(r2.outputIds.success, true); + } + get outputFailure() { + return this._getOutputById(r2.outputIds.failure, true); + } + } + t2.default = a; + }, 13106: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.inboundChatListManager = t2.InboundChatListManager = void 0; + const n2 = i2(6109), r2 = i2(96618), o = i2(24032), a = i2(27862); + class s extends n2.FlowListManager { + get dependencyType() { + return a.InboundChatFlow; + } + constructor() { + super(), this.topic = (0, o.getTopic)("inboundChatListManager"), this.additionalQueryParams = { type: r2.flowTypes.flowTypeInboundChat }, this.className = "InboundChatListManager", this.flowType = r2.flowTypes.flowTypeInboundChat, this._initialize(); + } + } + t2.InboundChatListManager = s, t2.inboundChatListManager = new s(); + }, 13110: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.EventHandlingTypeProperty = void 0; + const n2 = i2(31635), r2 = n2.__importDefault(i2(92140)), o = i2(88473), a = i2(55867), s = i2(24032), l = i2(79364), u = n2.__importDefault(i2(15244)), d = i2(47957), c = (0, s.getTopic)("EventHandlingTypeProperty"); + class p extends a.BaseActionProperty { + constructor(e3, t3, i3, n3, r3, a2) { + var s2, u2; + super(e3, t3), this.handlingTypes = i3, this.modelPropertyName = n3, this.defaultHandlingType = r3, this.suppressDefaultInConfig = a2, this.valueChangedSubject = new l.Subject(), this.valueChanged$ = this.valueChangedSubject.asObservable(), this._outOfServiceProvider = (0, o.addOutOfServiceProperties)(this), (null === (u2 = null === (s2 = this.metaData) || void 0 === s2 ? void 0 : s2.options) || void 0 === u2 ? void 0 : u2.featureConfigName) && (this._outOfServiceProvider.featureConfigName = this.metaData.options.featureConfigName), this.label = t3.label, void 0 === this.handlingType && this.defaultHandlingType && (this.handlingType = this.defaultHandlingType); + } + destroy() { + super.destroy(), this._outOfServiceProvider.destroy(); + } + get handlingType() { + return this.action.model[this.modelPropertyName]; + } + set handlingType(e3) { + this.handlingTypes.find((t3) => t3.value === (null == e3 ? void 0 : e3.value)) || console.error("handlingType not valid"), this.action.model[this.modelPropertyName] = e3, this.valueChangedSubject.next(this); + } + get className() { + return "HandlingTypeProperty"; + } + get isEventHandlingTypeProperty() { + return true; + } + getConfiguration(e3, t3, i3) { + super.getConfiguration(e3, t3); + const n3 = this.outOfService || this.suppressDefaultInConfig && this.handlingType === this.defaultHandlingType; + return (null == t3 ? void 0 : t3.isForFlowYaml) ? n3 ? void 0 : this._getYamlConfiguration() : n3 ? void delete e3[this.modelPropertyName] : this.handlingType; + } + getConfigurationForHandlingProperty(e3, t3) { + const i3 = {}, n3 = i3[e3.scriptingName] = {}; + switch (e3) { + case u.default.Disconnect: + break; + case u.default.Task: + const i4 = null != t3 ? t3 : this.taskProperty, o2 = null == i4 ? void 0 : i4.getReferenceViewModel(); + r2.default.isNullOrUndefined(o2) || (n3.targetTaskRef = o2.yamlPath); + break; + case u.default.Exit: + break; + default: + const a2 = `Matching handlingProperty not found for handling type value '${e3}'`; + throw c.exceptionWithErrorObjectInfo(null, a2, e3), a2; + } + return r2.default.ensureYamlNoneTrue(n3), i3; + } + static createCreateDetails(e3, t3, i3, n3) { + return { create: (r3, o2) => new p(r3, o2, e3, t3, i3, n3), getCreateClass: () => p, modelProperties: [] }; + } + _getYamlConfiguration() { + const e3 = {}, t3 = e3[this.handlingType.scriptingName] = {}; + switch (this.handlingType) { + case u.default.Disconnect: + case u.default.EndFlow: + case u.default.EndInQueueState: + case u.default.EndWorkflow: + case u.default.Exit: + case u.default.Task: + break; + case u.default.Queue: + case u.default.Menu: + case u.default.State: + const e4 = `'${this.handlingType.name}' is not supported yet`; + throw c.error(e4), e4; + default: + const t4 = `Matching handlingProperty not found for handling type value '${this.handlingType.name}'`; + throw c.exceptionWithErrorObjectInfo(null, t4, this.handlingType), t4; + } + return r2.default.ensureYamlNoneTrue(t3), e3; + } + getErrors() { + const e3 = []; + return this.handlingType || e3.push(d.facets.valueStringMinLengthOne), e3; + } + validate(e3) { + super.validate(e3), this.getErrors().forEach((t3) => e3.addError(this.action, t3)); + } + } + t2.EventHandlingTypeProperty = p; + }, 13116: (e2, t2) => { + "use strict"; + var i2; + Object.defineProperty(t2, "__esModule", { value: true }), t2.SlotHandlingType = void 0, (function(e3) { + e3.standardSlot = "standardSlot", e3.surveyFormQuestionSlot = "surveyFormQuestionSlot", e3.surveyFormQuestionFollowUpSlot = "surveyFormQuestionFollowUpSlot"; + })(i2 || (t2.SlotHandlingType = i2 = {})); + }, 13126: (e2) => { + e2.exports = { action: "action", dataType: "dataType", menu: "menu", menuChoice: "menuChoice", state: "state", task: "task", unknown: "unknown" }; + }, 13139: (e2, t2) => { + "use strict"; + var i2; + Object.defineProperty(t2, "__esModule", { value: true }), t2.SupportedDigitalChannel = void 0, (function(e3) { + e3.facebook = "facebook", e3.whatsapp = "whatsapp"; + })(i2 || (t2.SupportedDigitalChannel = i2 = {})); + }, 13140: (e2, t2) => { + "use strict"; + var i2, n2, r2; + Object.defineProperty(t2, "__esModule", { value: true }), t2.DiffType = t2.DiffItem = t2.DiffResult = void 0, (function(e3) { + e3.doesNotMatch = "doesNotMatch", e3.lessRestrictive = "lessRestrictive", e3.moreRestrictive = "moreRestrictive"; + })(i2 || (t2.DiffResult = i2 = {})), (function(e3) { + e3.property = "property", e3.propertyCount = "propertyCount"; + })(n2 || (t2.DiffItem = n2 = {})), (function(e3) { + e3.addition = "addition", e3.isNotEqual = "isNotEqual", e3.maxValueIsGreaterThan = "maxValueIsGreaterThan", e3.maxValueIsLessThan = "maxValueIsLessThan", e3.maxValueIsLessThanInclusive = "maxValueIsLessThanInclusive", e3.maxValueIsGreaterThanInclusive = "maxValueIsGreaterThanInclusive", e3.minValueIsGreaterThan = "minValueIsGreaterThan", e3.minValueIsGreaterThanInclusive = "minValueIsGreaterThanInclusive", e3.minValueIsLessThan = "minValueIsLessThan", e3.minValueIsLessThanInclusive = "minValueIsLessThanInclusive", e3.removed = "removed", e3.valueNowDefined = "valueNowDefined", e3.valueNoLongerDefined = "valueNoLongerDefined"; + })(r2 || (t2.DiffType = r2 = {})); + class o { + constructor(e3, t3, i3, n3, r3, o2, a, s, l) { + this.diffResult = t3, this.diffType = i3, this.diffItem = n3, this.itemName = r3, this.itemValue = o2, this.itemValueIsInclusive = a, this.otherValue = s, this.otherValueIsInclusive = l, this.path = e3; + } + static createComparedToHasAdditionalPropertyDiff(e3, t3) { + return new o(t3, i2.lessRestrictive, r2.addition, n2.property, e3); + } + get propertyName() { + if (this.diffItem === n2.property) return this.itemName; + } + get isComparedToAdditionalProperty() { + return this.diffItem === n2.propertyCount && this.diffType === r2.addition; + } + } + t2.default = o; + }, 13169: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importDefault(i2(78432)), o = i2(30801), a = n2.__importDefault(i2(11210)); + class s extends a.default { + constructor(e3) { + super(e3), this._bargeInEnabled = this.coreFactory.createArchWrapper(e3.bargeInExpression), this._prompt = this.coreFactory.createArchWrapper(e3.prompt), this._playDuration = this.coreFactory.createArchWrapper(e3.duration); + } + get _actionTypeId() { + return o.holdMusicActionType; + } + get bargeInEnabled() { + return this._bargeInEnabled; + } + get displayTypeName() { + return this._scriptingName; + } + get isArchActionHoldMusic() { + return true; + } + get playDuration() { + return this._playDuration; + } + get playStyle() { + return this._coreActionViewModel.playForDuration ? r2.default.HOLD_MUSIC_PLAY_STYLES.duration : r2.default.HOLD_MUSIC_PLAY_STYLES.prompt; + } + set playStyle(e3) { + switch (this._checkItemIsValidLiteralStringEnum(this._infoPropSet("newPlayStyle", "playStyle"), e3, r2.default.HOLD_MUSIC_PLAY_STYLES_ALL), this.logNote("setting the play style to '" + e3 + "'"), e3) { + case r2.default.HOLD_MUSIC_PLAY_STYLES.prompt: + this._coreActionViewModel.playForDuration = false; + break; + case r2.default.HOLD_MUSIC_PLAY_STYLES.duration: + this._coreActionViewModel.playForDuration = true; + } + } + get prompt() { + return this._prompt; + } + } + t2.default = s; + }, 13202: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.getLatestPublishedSurveyForm = t2.getSurveyFormVersions = t2.getSurveyForm = t2.getSurveyForms = void 0; + const n2 = i2(31635), r2 = n2.__importDefault(i2(1735)), o = n2.__importDefault(i2(98046)), a = n2.__importDefault(i2(36019)), s = i2(42590), l = { ignoreBadResponse: true }; + t2.getSurveyForms = a.default.request("GET", "{public-api.apps}/api/v2/quality/publishedforms/surveys", s, l), t2.getSurveyForm = a.default.request("GET", "{public-api.apps}/api/v2/quality/publishedforms/surveys/{id}", r2.default, l), t2.getSurveyFormVersions = a.default.request("GET", "{public-api.apps}/api/v2/quality/forms/surveys/{id}/versions", s, l), t2.getLatestPublishedSurveyForm = a.default.request("GET", "{public-api.apps}/api/v2/quality/forms/surveys/bulk/contexts?contextId={contextId}&published=true", o.default, l); + }, 13221: (e2, t2, i2) => { + "use strict"; + const n2 = i2(31635), r2 = i2(80428), o = i2(81516), a = n2.__importDefault(i2(27203)), s = i2(70283), l = i2(12179), u = n2.__importDefault(i2(97891)), d = n2.__importDefault(i2(5478)), c = i2(47957); + class p extends d.default { + constructor(e3, t3) { + super(e3.parentFlow, e3), this._loadModel(t3); + } + static get branchInfo() { + return a.default.successFailure; + } + static get managedProperties() { + return [{ label: c.getSIPHeaders.rawSIPHeadersResultLabel, type: r2.expressionTypeNames.string, options: o.ExpressionTypeStringOptions.create((e3) => e3.setAsOutput().setDescriptionInfo(c.getSIPHeaders.rawSIPHeadersResultLabel, c.getSIPHeaders.rawSIPHeadersResultDescription).setIninTestingField("rawSIPHeaderValueExpression")), yamlOptions: p.createYamlOptions("rawSIPHeadersResult", (e3) => e3.setExportOrder(2)), property: "rawSIPHeadersResult" }]; + } + _getPossibleErrors() { + return s.getRawSipHeadersFailureReasons; + } + } + p.info = u.default.createActionInfo({ actionClass: p, canBeInTask: true, helpTopic: l.helpTopics.actions.getRawSIPHeaders, modelClass: i2(62061), name: c.actions.getRawSIPHeaders, scriptingName: "ArchActionGetRawSIPHeaders" }), t2.A = p; + }, 13240: (e2, t2, i2) => { + const n2 = i2(92140), r2 = i2(93476); + function o() { + Object.defineProperties(this, { _paths: { writable: true } }), o.baseConstructor.apply(this, arguments); + } + i2(28730).extend(o, "BaseActionWithOutputsModel"), Object.defineProperties(o.prototype, { pasteResolveOldToNewValues: { value: function(e3) { + o._super.pasteResolveOldToNewValues.apply(this, arguments), n2.each(this.paths, function(t3) { + t3.pasteResolveOldToNewValues(e3); + }.bind(this)); + } }, pasteReIdOrRename: { value: function(e3) { + o._super.pasteReIdOrRename.apply(this, arguments), n2.each(this.paths, function(t3) { + t3.pasteReIdOrRename(e3); + }.bind(this)); + } }, paths: { enumerable: true, get: function() { + return this._paths; + }, set: function(e3) { + this._paths = this.reviveArray(e3, r2); + } } }), e2.exports = o; + }, 13265: (e2, t2, i2) => { + function n2() { + Object.defineProperties(this, {}), n2.baseConstructor.apply(this, arguments); + } + i2(45214).extend(n2, "DebugSettings"), Object.defineProperties(n2.prototype, {}), e2.exports = n2; + }, 13293: (e2, t2, i2) => { + "use strict"; + const n2 = i2(31635), r2 = i2(96618), o = i2(80428), a = i2(90708), s = i2(81516), l = i2(12179), u = i2(82632), d = n2.__importDefault(i2(97891)), c = i2(24383), p = n2.__importDefault(i2(5730)), _ = i2(47957); + class h extends p.default { + constructor(e3, t3) { + super(e3.parentFlow, e3), this._loadModel(t3); + } + static get managedProperties() { + return [{ label: _.actions.abortSendActionMessageSettingLabel, options: s.ExpressionTypeStringOptions.create((e3) => e3.setAsInput().setDescriptionInfo(_.actions.abortSendActionMessageSettingLabel, _.actions.abortSendActionMessageSettingDescription).setIninTestingField("abortSendMessage").setDefaultToNoValue(false).setIsOptional(false).setUiPropertyOrder(1).facets.setMinLength(u.abortSend.message.minLength).setMaxLength(u.abortSend.message.maxLength).setTruncatesToMaxLength(true)), property: "message", supportedFlowTypes: [r2.flowTypes.flowTypeEmailSend], type: o.expressionTypeNames.string, yamlOptions: h.createYamlOptions("message", (e3) => e3.setExportOrder(1)) }]; + } + } + h.info = d.default.createActionInfo({ actionClass: h, canBeInTask: true, helpTopic: l.helpTopics.actions.abortSend, modelClass: a.AbortSendActionModel, name: _.actions.abortSend, scriptingName: "ArchActionAbortSend", termination: c.terminatesFlow }), t2.A = h; + }, 13297: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = i2(26847), o = n2.__importDefault(i2(1012)); + class a extends o.default { + constructor(e3) { + super(e3); + } + get displayTypeName() { + return "ArchBaseActionWithOutputsFakeSuccessFailureTimeout"; + } + get isArchBaseActionWithOutputsFakeSuccessFailureTimeout() { + return true; + } + get outputTimeout() { + return this._getOutputById(r2.outputIds.timeout, true); + } + } + t2.default = a; + }, 13337: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.mapTo = void 0; + var n2 = i2(26872); + t2.mapTo = function(e3) { + return n2.map(function() { + return e3; + }); + }; + }, 13436: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.allModes = t2.neutral = t2.intents = t2.knowledge = void 0; + const n2 = i2(47957); + t2.knowledge = { displayString: n2.knowledgeSettings.responseBiasModes.responseBiasModeKnowledge, description: n2.knowledgeSettings.responseBiasModes.responseBiasKnowledgeDescription, id: "knowledge" }, t2.intents = { displayString: n2.knowledgeSettings.responseBiasModes.responseBiasModeIntents, description: n2.knowledgeSettings.responseBiasModes.responseBiasIntentDescription, id: "intents" }, t2.neutral = { displayString: n2.knowledgeSettings.responseBiasModes.responseBiasModeNeutral, description: n2.knowledgeSettings.responseBiasModes.responseBiasNeutralDescription, id: "neutral" }, t2.allModes = [t2.intents, t2.neutral, t2.knowledge]; + }, 13440: (e2, t2, i2) => { + function n2() { + Object.defineProperties(this, { _turnsResult: { writable: true } }), this.id = void 0, this._turnsResult = arguments[0], n2.baseConstructor.apply(this, arguments); + } + i2(45214).extend(n2, "DigitalBotFlowTurnsResult"), Object.defineProperties(n2.prototype, { turnsResult: { enumerable: true, get: function() { + return this._turnsResult; + } } }), e2.exports = n2; + }, 13442: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(17405)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "surveyAnswerOption"; + } + get displayTypeName() { + return "ArchValueSurveyAnswerOption"; + } + get isArchValueSurveyAnswerOption() { + return true; + } + setGlobalDtmf(e3) { + const t3 = this._infoParm("dtmf", "setGlobalDtmf"); + this._checkItemIsValidLiteralString(t3, e3), e3 = e3 || ""; + const i3 = this._getCoreViewModel(); + i3 && (i3.type.setDtmf(i3, e3), this.logNote(`survey answer option dtmf updated to '${e3}'`)); + } + get text() { + return this._getAssignableProperty("text"); + } + } + t2.default = r2; + }, 13446: (e2, t2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + class i2 { + constructor(e3, t3) { + this._id = e3, this._displayStr = t3; + } + static create(e3, t3) { + return new i2(e3, t3); + } + get id() { + return this._id; + } + get displayStr() { + return this._displayStr; + } + get displayString() { + return this._displayStr; + } + } + t2.default = i2; + }, 13462: (e2, t2, i2) => { + const n2 = i2(13240), { processVoicemailInputActionType: r2 } = i2(30801); + function o() { + o.baseConstructor.apply(this, arguments); + } + n2.extend(o, r2, true), Object.defineProperties(o.prototype, { pasteResolveOldToNewValues: { value: function(e3) { + o._super.pasteResolveOldToNewValues.apply(this, arguments); + } }, pasteReIdOrRename: { value: function(e3) { + o._super.pasteReIdOrRename.apply(this, arguments); + } } }), e2.exports = o; + }, 13523: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importDefault(i2(92140)), o = n2.__importDefault(i2(94241)), a = i2(80428), s = n2.__importDefault(i2(65302)), l = n2.__importDefault(i2(8471)), u = r2.default.invert(a.expressionTypeNames); + class d extends l.default { + _coreTypesToArchTypes(e3, t3) { + this._checkItemUndefinedOrNull(this._infoParm("coreExpressionTypesObject", "_coreTypesToArchTypes"), e3); + const i3 = t3 || {}; + return r2.default.each(e3, (e4) => { + var t4, n3; + if (this._checkItem(this._infoParm("coreExpressionType.model", "_coreTypesToArchTypes"), !e4.model, "the core expression type in coreExpressionTypesObject does not have a model property"), this._checkItem(this._infoParm("coreExpressionType.model.support", "_coreTypesToArchTypes"), !e4.model.support, "the core expression type model does not have a support property"), this._checkItem(this._infoParm("coreExpressionType.model.support.expressionDataType", "_coreTypesToArchTypes"), !e4.model.support.expressionDataType, "the core expression type model's support property does not have an expression data type"), e4.isAbstract) ; + else { + const r3 = u[e4.model.support.expressionDataType]; + if (r3 || e4.isCustomType && (null === (n3 = null === (t4 = e4.parentFlow) || void 0 === t4 ? void 0 : t4.definition) || void 0 === n3 ? void 0 : n3.supportsCustomJsonTypes)) { + const t5 = new o.default(e4, r3); + i3[t5.name] = t5; + } + } + }), i3; + } + _coreExpressionGroupToArchTypes(e3) { + return this._checkItem(this._infoParm("coreExpressionGroup", "_coreExpressionGroupToArchTypes"), !e3, "core expression group not specified"), this._coreTypesToArchTypes(e3.collections, this._coreTypesToArchTypes(e3.singletons)); + } + get displayTypeName() { + return "ArchDataTypes"; + } + getFlowDataTypes(e3) { + this._checkItem(this._infoParm("archBaseFlow", "getFlowDataTypes"), !e3 || !e3.isArchBaseFlow, "you must pass in an Architect flow such as an inbound, outbound or in-queue flow"); + const t3 = s.default.getTypeGroup(e3._getCoreViewModel()); + return this._coreExpressionGroupToArchTypes(t3); + } + getFlowTypeDataTypes(e3) { + const t3 = s.default.getGlobalTypeGroup()._getFlowTypeTypes(e3); + return r2.default.values(this._coreTypesToArchTypes(t3)); + } + } + t2.default = new d(); + }, 13720: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(8471)); + class r2 extends n2.default { + get displayTypeName() { + return "ArchBaseObjectFilterCommon"; + } + get isArchBaseObjectFilterCommon() { + return true; + } + isMatch(e3) { + return this._checkItemIsArchBaseObject(this._infoParm("archBaseObjectToCheck", "isMatch"), e3), this._isMatch(e3); + } + _isMatch(e3) { + return false; + } + } + t2.default = r2; + }, 13730: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(54757)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "timeCollection"; + } + get displayTypeName() { + return "ArchValueTimeCollection"; + } + get isArchValueTimeCollection() { + return true; + } + } + t2.default = r2; + }, 13804: (e2, t2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.voiceProcessingPromptDefaultValue = t2.voiceProcessingPromptFilterNames = void 0, t2.getSystemPromptId = function(e3) { + return e3 ? `__${e3}__` : ""; + }, t2.voiceProcessingPromptFilterNames = ["processing_keyboard", "connecting_vibe", "delayed_chime", "delayed_tones", "data_transfer_chime", "minimal_chime_melody"], t2.voiceProcessingPromptDefaultValue = "connecting_vibe"; + }, 13818: (e2, t2, i2) => { + const { askForNLUNextIntentActionActionType: n2 } = i2(30801), r2 = i2(7401); + function o() { + Object.defineProperties(this, { _currentIndex: { writable: true } }), o.baseConstructor.apply(this, arguments); + } + i2(2444).extend(o, n2, true), Object.defineProperties(o.prototype, { pasteReIdOrRename: { value: function(e3) { + o._super.pasteReIdOrRename.apply(this, arguments), this.currentIndex.pasteReIdOrRename(e3); + } }, pasteResolveOldToNewValues: { value: function(e3) { + o._super.pasteResolveOldToNewValues.apply(this, arguments), this.currentIndex.pasteResolveOldToNewValues(e3); + } }, currentIndex: { enumerable: true, get: function() { + return this._currentIndex; + }, set: function(e3) { + this._currentIndex = this.reviveItem(e3, r2); + } } }), e2.exports = o; + }, 13916: function(e2, t2, i2) { + "use strict"; + var n2 = this && this.__read || function(e3, t3) { + var i3 = "function" == typeof Symbol && e3[Symbol.iterator]; + if (!i3) return e3; + var n3, r3, o2 = i3.call(e3), a2 = []; + try { + for (; (void 0 === t3 || t3-- > 0) && !(n3 = o2.next()).done; ) a2.push(n3.value); + } catch (e4) { + r3 = { error: e4 }; + } finally { + try { + n3 && !n3.done && (i3 = o2.return) && i3.call(o2); + } finally { + if (r3) throw r3.error; + } + } + return a2; + }, r2 = this && this.__spreadArray || function(e3, t3) { + for (var i3 = 0, n3 = t3.length, r3 = e3.length; i3 < n3; i3++, r3++) e3[r3] = t3[i3]; + return e3; + }; + Object.defineProperty(t2, "__esModule", { value: true }), t2.mapOneOrManyArgs = void 0; + var o = i2(26872), a = Array.isArray; + t2.mapOneOrManyArgs = function(e3) { + return o.map(function(t3) { + return (function(e4, t4) { + return a(t4) ? e4.apply(void 0, r2([], n2(t4))) : e4(t4); + })(e3, t3); + }); + }; + }, 13991: (e2, t2, i2) => { + const n2 = i2(80800), r2 = i2(1736), o = i2(36019).default; + function a() { + } + const s = new a(); + a.prototype.getSkill = o.request("GET", "{public-api.apps}/api/v2/routing/skills/{id}", n2), a.prototype.getSkills = o.request("GET", "{public-api.apps}/api/v2/routing/skills", r2), s.getSkills.addOptions({ ignoreBadResponse: true }), e2.exports = s; + }, 14e3: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importDefault(i2(55015)), o = i2(80295); + class a extends r2.default { + constructor(e3) { + super(e3), (0, o.makeUnenumerable)(this, "_moreThanOneLanguage"); + } + get moreThanOneLanguage() { + return this._moreThanOneLanguage; + } + set moreThanOneLanguage(e3) { + this._moreThanOneLanguage = e3; + } + } + t2.default = a, n2.__decorate([(0, o.enumerable)(true), n2.__metadata("design:type", Boolean), n2.__metadata("design:paramtypes", [Boolean])], a.prototype, "moreThanOneLanguage", null); + }, 14038: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importDefault(i2(11210)), o = i2(30801), a = n2.__importDefault(i2(56549)), s = n2.__importDefault(i2(94225)), l = n2.__importDefault(i2(66978)); + class u extends r2.default { + constructor(e3) { + super(e3); + } + get _actionTypeId() { + return o.screenPopActionType; + } + _clearInputs() { + this._scriptInputs = void 0; + } + get displayTypeName() { + return this._scriptingName; + } + get isArchActionSetScreenPop() { + return true; + } + get scriptInputs() { + return this._scriptInputs || (this._scriptInputs = this.coreFactory.createArchBaseValueContainer(this._getCoreViewModel().inputs)), this._scriptInputs; + } + setScriptByNameAsync(e3, t3) { + return this._checkItemIsValidLiteralString(this._infoParm("scriptName", "setScriptByNameAsync"), e3), this._checkItemIsValidFunction(this._infoParm("callbackFunction", "setScriptByNameAsync"), t3, true), a.default.findItemByValueAsync(this._coreActionViewModel.scriptManager, e3, "screen pop script").then(function(e4) { + return l.default.addPromise(this._coreActionViewModel.setScriptAsync(e4), "setScriptByNameAsync"); + }.bind(this)).then(function() { + return this._clearInputs(), s.default.executeCallback(this, "setScriptByNameAsync", t3, this); + }.bind(this)); + } + setScriptByIdAsync(e3, t3) { + return this._checkItemIsValidLiteralString(this._infoParm("scriptId", "setScriptByIdAsync"), e3), this._checkItemIsValidFunction(this._infoParm("callbackFunction", "setScriptByIdAsync"), t3, true), a.default.findItemByIdAsync(this._coreActionViewModel.scriptManager, e3, "screen pop script").then(function(e4) { + return l.default.addPromise(this._coreActionViewModel.setScriptAsync(e4), "setScriptByIdAsync"); + }.bind(this)).then(function() { + return this._clearInputs(), s.default.executeCallback(this, "setScriptByIdAsync", t3, this); + }.bind(this)); + } + } + t2.default = u; + }, 14075: (e2, t2, i2) => { + const n2 = i2(54976), r2 = i2(7401); + function o() { + Object.defineProperties(this, { _connTimeout: { writable: true } }), o.baseConstructor.apply(this, arguments); + } + n2.extend(o, "TransferActionWithConnectTimeoutModel"), Object.defineProperties(o.prototype, { pasteReIdOrRename: { value: function(e3) { + o._super.pasteReIdOrRename.apply(this, arguments), this.connTimeout.pasteReIdOrRename(e3); + } }, pasteResolveOldToNewValues: { value: function(e3) { + o._super.pasteResolveOldToNewValues.apply(this, arguments), this.connTimeout.pasteResolveOldToNewValues(e3); + } }, connTimeout: { enumerable: true, get: function() { + return this._connTimeout; + }, set: function(e3) { + this._connTimeout = this.reviveItem(e3, r2); + } } }), e2.exports = o; + }, 14086: (e2, t2, i2) => { + "use strict"; + var n2; + Object.defineProperty(t2, "__esModule", { value: true }), t2.CommonModuleFlowReferenceProperty = void 0; + const r2 = i2(31635), o = i2(96618), a = i2(17604), s = r2.__importStar(i2(98442)), l = r2.__importDefault(i2(73198)), u = r2.__importDefault(i2(60571)), d = i2(33381), c = i2(44307), p = i2(47957); + class _ extends d.FlowReferenceProperty { + constructor(e3, t3) { + super(e3, t3, o.flowTypes.flowTypeCommonModule, false), n2.set(this, false), this._commonModuleFlowDoesNotExist = false; + } + get isCommonModuleFlowReferenceProperty() { + return true; + } + get className() { + return "CommonModuleFlowReferenceProperty"; + } + destroy() { + this.parentFlow.removeCommonModuleActionReference(this.action, this.flowId, this.flowVersion), super.destroy(); + } + getErrors(e3) { + var t3, i3, n3; + const r3 = super.getErrors(e3); + if (!this.flowId || this.isRefreshingFlowReference) return r3; + const o2 = this.parentFlow.getCommonModuleReference(this.flowId, this.flowVersion); + if (this._commonModuleFlowDoesNotExist) ; + else if (null == o2 ? void 0 : o2.viewModel) { + let t4 = null === (i3 = o2.viewModel) || void 0 === i3 ? void 0 : i3.info; + if (t4 || (t4 = this.getFlowInfoReference(this.flowId)), this.checkHasPermissionError(t4) || !(null === (n3 = o2.viewModel) || void 0 === n3 ? void 0 : n3.loaded)) r3.push(p.commonModule.commonModuleNotUsableMissingPermission); + else if (t4 && !t4.deleted) { + this.isMissingDestinationFlowType(o2.viewModel) && r3.push((0, a.sprintf)(e3 ? p.commonModule.flowTypeNotSupportedValidationError : p.commonModule.flowTypeNotSupported, this.parentFlow.info.flowTypeName)); + const i4 = this._getMissingLanguages(o2.viewModel); + i4.length && r3.push((0, a.sprintf)(e3 ? p.commonModule.languageNotSupportedValidationError : p.commonModule.languageNotSupported, i4)), o2.viewModel.getHasMissingTTSEngineErrors() && r3.push((0, a.sprintf)(p.audio.errorCommonModuleTTS, o2.viewModel.displayName)), this.isInvalidDebugFlowReference(t4) && r3.push(p.commonModule.debugPublishVersionNotAvailable), this.isInvalidPublishedFlowReference(t4) && r3.push(p.commonModule.publishedVersionNotAvailable); + } + } else r3.push(p.commonModule.internalError), this.traceTopic.traceOnce(`cm-missing-ref-${null === (t3 = this.action) || void 0 === t3 ? void 0 : t3.id}-${this.flowId}`, (e4) => e4.error(`CallCommonModule action has a missing embedded flow reference: ${this.flowId}`)); + return r3; + } + getFlowInfoReference(e3) { + const t3 = super.getFlowInfoReference(e3); + if (t3) return t3; + if (e3 === this.flowId) { + const e4 = this.parentFlow.getCommonModuleReference(this.flowId, this.flowVersion); + return null == e4 ? void 0 : e4.flowInfoViewModel; + } + } + validate(e3) { + this.updateEmbeddedFlow(e3), super.validate(e3); + } + setFlowById(e3, t3, i3) { + return r2.__awaiter(this, void 0, void 0, function* () { + let n3; + i3 && (i3 = void 0), this.setIsRefreshingFlowReference(true); + try { + e3 && (n3 = this.getFlowInfoReference(e3), n3 && (i3 || n3.publishedDisplay) || (n3 = yield this.flowListManager.fullManager.fetchItem(e3))), n3 = yield this.setReferenceWithFlowInfo(n3, i3, t3); + } finally { + this.setIsRefreshingFlowReference(false), this.validateAction(); + } + return n3; + }); + } + setReferenceWithFlowInfo(e3, t3, i3) { + return r2.__awaiter(this, void 0, void 0, function* () { + if (e3 && e3.type !== this.flowType) throw new Error(`flowInfoViewModel is not of type ${this.flowType}`); + if (this.parentFlow.removeCommonModuleActionReference(this.action, this.flowId, this.flowVersion), !e3) return this.clearReference(), void this.validateAction(); + let n3, r3 = false; + this.setIsRefreshingFlowReference(true); + try { + this.flowName = e3.displayName, this.flowId = e3.id, this.flowVersion = t3, t3 || i3 ? !t3 && i3 ? (this.flowVersion = e3.debugVersionDisplay, this.isFlowRefLatestPublished = false, this.isFlowRefDebugPublish = true) : (this.isFlowRefLatestPublished = false, this.isFlowRefDebugPublish = false) : (this.flowVersion = e3.publishedDisplay, this.isFlowRefLatestPublished = true, this.isFlowRefDebugPublish = false), n3 = this.parentFlow.addCommonModuleActionReference(this.action, e3, void 0, this.flowVersion), n3.viewModel || e3.division && this.checkHasPermissionError(e3) || (n3.updateRequestedPromise ? yield n3.updateRequestedPromise : (n3.updateRequestedPromise = this.fetchEmbeddedFlow(e3, this.flowVersion), r3 = true, n3.viewModel = yield n3.updateRequestedPromise)), e3 = yield this.refreshFlowSchema(e3); + } finally { + r3 && n3 && (n3.updateRequestedPromise = void 0), this.setIsRefreshingFlowReference(false); + } + return e3; + }); + } + _initializeDesignTime() { + if (super._initializeDesignTime(), this.flowId) { + const e3 = this.parentFlow.getCommonModuleReference(this.flowId, this.flowVersion); + if (this.parentFlow.initializeDesignTimeCalled && !(null == e3 ? void 0 : e3.viewModel)) return void this.forceFetchReference(); + (null == e3 ? void 0 : e3.viewModel) && e3.actionReferences.indexOf(this.action.id) < 0 && this.parentFlow.addCommonModuleActionReference(this.action, e3.viewModel.info, e3.viewModel, this.flowVersion); + } + } + forceFetchReference() { + return r2.__awaiter(this, void 0, void 0, function* () { + try { + this.setIsRefreshingFlowReference(true); + const e3 = yield this.flowListManager.getOrFetchItem(this.flowId); + if (e3) { + const t3 = yield this.fetchEmbeddedFlow(e3, this.flowVersion); + t3 ? (this._commonModuleFlowDoesNotExist = false, this.parentFlow.addCommonModuleActionReference(this.action, e3, t3, this.flowVersion)) : this._commonModuleFlowDoesNotExist = true, this.validateAction(true); + } + } catch (e3) { + 410 === e3.status && (this._commonModuleFlowDoesNotExist = true); + } finally { + this.setIsRefreshingFlowReference(false); + } + }); + } + clearReference() { + r2.__classPrivateFieldSet(this, n2, false, "f"), super.clearReference(); + } + getCommonModuleReference() { + return this.parentFlow.getCommonModuleReference(this.flowId, this.flowVersion); + } + updateEmbeddedFlow(e3) { + const t3 = this.getCommonModuleReference(); + if (t3) { + let i3 = super.getFlowInfoReference(this.flowId); + if (!i3) return void this.traceTopic.warning("missing flowInfo reference, can not update embedded flow"); + if (t3.viewModel && e3.isDeep && (t3.viewModel.info.loadModel(i3), i3 = t3.viewModel.info, r2.__classPrivateFieldGet(this, n2, "f") && r2.__classPrivateFieldSet(this, n2, false, "f")), this.parentFlow.isReadOnly) return; + if (this.checkHasPermissionError(i3)) return; + let o2 = null; + if (this.isFlowRefLatestPublished && i3.publishedDisplay ? t3.viewModel && this.flowVersion === i3.publishedDisplay || (o2 = i3.publishedDisplay) : this.isFlowRefDebugPublish && i3.debugVersionDisplay && (t3.viewModel && this.flowVersion === i3.debugVersionDisplay || (o2 = i3.debugVersionDisplay)), o2) { + if (!e3.isDeep) return; + this.setIsRefreshingFlowReference(true); + let n3 = false; + t3.updateRequestedPromise || (e3.addError(this.action, (0, a.sprintf)(p.commonModule.embeddedFlowNeedsUpdated, this.flowName, this.flowVersion, o2)), this.traceTopic.info(`Action is referencing ${this.flowVersion} but ${o2} is the latest, getting latest`), n3 = true, t3.updateRequestedPromise = this.fetchEmbeddedFlow(i3, o2).finally(() => delete t3.updateRequestedPromise), e3.addRevalidateTrigger(t3.updateRequestedPromise, 60 * l.default.msPerSecond)), t3.updateRequestedPromise.then((e4) => { + if (e4) { + if (this.flowVersion !== o2) return this.traceTopic.info(`updated flow reference from version '${this.flowVersion}' to '${o2}'`), this.parentFlow.removeCommonModuleActionReference(this.action, this.flowId, this.flowVersion), this.flowVersion = o2, this.parentFlow.addCommonModuleActionReference(this.action, i3, e4, this.flowVersion), this.refreshFlowSchema(e4.info); + { + const t4 = this.parentFlow.getCommonModuleReference(this.flowId, this.flowVersion); + t4 && !t4.viewModel && (t4.viewModel = e4); + } + } + }).finally(() => { + this.setIsRefreshingFlowReference(false), n3 && (t3.updateRequestedPromise = void 0); + }); + } + } + } + fetchEmbeddedFlow(e3, t3) { + return r2.__awaiter(this, void 0, void 0, function* () { + if (!e3.division || !this.checkHasPermissionError(e3)) { + r2.__classPrivateFieldSet(this, n2, false, "f"); + try { + const i3 = new u.default(e3, this.parentFlow); + return yield i3.requestConfiguration(t3, true, true), i3; + } catch (e4) { + return void (403 === e4.status ? r2.__classPrivateFieldSet(this, n2, true, "f") : this.traceTopic.requestError(e4, "failed to update embedded flow")); + } + } + }); + } + checkHasPermissionError(e3) { + return !(!e3.division || e3.canView || (r2.__classPrivateFieldSet(this, n2, true, "f"), 0)); + } + isMissingDestinationFlowType(e3) { + return !!(null == e3 ? void 0 : e3.loaded) && !e3.commonModuleSettings.destinationFlowTypes.find((e4) => e4 === this.parentFlow.type); + } + _getMissingLanguages(e3) { + if (null == e3 ? void 0 : e3.loaded) { + const t3 = e3.getMissingLanguages(); + if (t3) return s.getLanguageListDisplayStr(s.getLanguageEntries(t3)); + } + return []; + } + isInvalidDebugFlowReference(e3) { + return !!this.isFlowRefDebugPublish && !(null == e3 ? void 0 : e3.hasDebugPublish); + } + isInvalidPublishedFlowReference(e3) { + return !!this.isFlowRefLatestPublished && !(null == e3 ? void 0 : e3.isPublished); + } + static createCreateDetails() { + return { create: (e3, t3) => new _(e3, t3), getCreateClass: () => _, modelProperties: ["flowId", "flowName", "flowVersion", "flowLatestVersion", "flowDebugPublished"] }; + } + getConfiguration(e3, t3) { + var i3, n3, r3, o2; + const a2 = super.getConfiguration(e3, t3); + if (null === (n3 = null === (i3 = e3.referencedObjects) || void 0 === i3 ? void 0 : i3.flows) || void 0 === n3 ? void 0 : n3.length) { + const t4 = null === (o2 = null === (r3 = this.getCommonModuleReference()) || void 0 === r3 ? void 0 : r3.viewModel) || void 0 === o2 ? void 0 : o2.commonModuleDestinationFlowTypes; + if (t4) { + const i4 = (0, c.getFlowConfigFromSnapshot)(e3, this.flowName, this.flowType); + i4 && (i4.flow.compatibleFlowTypes = t4); + } + } + return a2; + } + } + t2.CommonModuleFlowReferenceProperty = _, n2 = /* @__PURE__ */ new WeakMap(); + }, 14113: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(67336)); + class r2 extends n2.default { + constructor(e3) { + super(e3), this._coreSpeechRecViewModel = e3; + } + get displayTypeName() { + return "ArchSpeechRecTermContainers"; + } + get logStr() { + if (!this._coreSpeechRecViewModel) return this.logStrTypeOnly; + const e3 = []; + return this._appendLogStrType(e3, this.displayTypeName), this._appendLogStrParentParts(e3, this._coreSpeechRecViewModel.menuChoice), this._createLogStrFromParts(e3); + } + getContainer(e3) { + const t3 = this._infoParm("archLanguage", "getContainer"); + this._checkItem(t3, !e3 || !e3.isArchLanguage, "you must pass in a valid ArchLanguage instance."), this._checkItem(t3, !this._coreSpeechRecViewModel.parentFlow.languages.isFlowSupportedLanguage(e3.tag), "the language " + e3.logStr + " is not a supported language in the flow."); + let i3 = this._coreSpeechRecViewModel.getContainer(e3.tag); + return i3 || (this._coreSpeechRecViewModel.refreshContainers(), i3 = this._coreSpeechRecViewModel.getContainer(e3.tag)), i3 || this._itemIsInvalid(t3, "could not find speech rec term container for the language " + e3.logStr), this.coreFactory.createArchWrapper(i3); + } + get isArchSpeechRecTermContainers() { + return true; + } + } + t2.default = r2; + }, 14115: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importDefault(i2(94225)), o = i2(91674), a = n2.__importDefault(i2(40559)); + class s extends a.default { + constructor(e3) { + super(e3, o.emergencyGroupManager); + } + get _globalTypeName() { + return "emergencyGroupCollection"; + } + get displayTypeName() { + return "ArchValueEmergencyGroupCollection"; + } + get _searchByValueSearchProperty() { + return "name"; + } + addLiteralByEmergencyGroupIdAsync(e3, t3) { + return n2.__awaiter(this, void 0, void 0, function* () { + return this._checkItemIsValidLiteralString(this._infoParm("emergencyGroupId", "addLiteralByEmergencyGroupIdAsync"), e3), this._checkItemIsValidFunction(this._infoParm("callbackFunction", "addLiteralByEmergencyGroupIdAsync"), t3, true), this._addLiteralByIdAsync(e3, "emergencyGroup").then(() => r2.default.executeCallback(this, "addLiteralByEmergencyGroupIdAsync", t3, this)); + }); + } + addLiteralByEmergencyGroupNameAsync(e3, t3) { + return n2.__awaiter(this, void 0, void 0, function* () { + return this._checkItemIsValidLiteralString(this._infoParm("emergencyGroupName", "addLiteralByEmergencyGroupNameAsync"), e3), this._checkItemIsValidFunction(this._infoParm("callbackFunction", "addLiteralByEmergencyGroupNameAsync"), t3, true), this._addLiteralByValueAsync(e3, "emergencyGroup").then(() => r2.default.executeCallback(this, "addLiteralByEmergencyGroupNameAsync", t3, this)); + }); + } + get isArchValueEmergencyGroupCollection() { + return true; + } + } + t2.default = s; + }, 14120: (e2, t2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.not = void 0, t2.not = function(e3, t3) { + return function(i2, n2) { + return !e3.call(t3, i2, n2); + }; + }; + }, 14134: (e2, t2, i2) => { + const n2 = i2(19420); + function r2() { + r2.baseConstructor.apply(this, arguments); + } + function o() { + o.baseConstructor.apply(this, arguments); + } + function a() { + a.baseConstructor.apply(this, arguments); + } + function s() { + s.baseConstructor.apply(this, arguments); + } + function l() { + l.baseConstructor.apply(this, arguments); + } + function u() { + u.baseConstructor.apply(this, arguments); + } + function d() { + d.baseConstructor.apply(this, arguments); + } + i2(8497), n2.extend(r2, "ConversationTypesEnumContainerVariable", true), n2.extend(o, "CurrenciesEnumContainerVariable", true), n2.extend(a, "LanguagesEnumContainerVariable", true), n2.extend(s, "RegionsEnumContainerVariable", true), n2.extend(l, "MessageBodyStylesEnumContainerVariable", true), n2.extend(u, "SurveyDispositionsEnumContainerVariable", true), n2.extend(d, "DateTimeEnumContainerVariable", true), e2.exports = { ConversationTypesEnumContainerVariable: r2, CurrenciesEnumContainerVariable: o, DateTimeEnumContainerVariable: d, LanguagesEnumContainerVariable: a, MessageBodyStylesEnumContainerVariable: l, RegionsEnumContainerVariable: s, SurveyDispositionsEnumContainerVariable: u }; + }, 14166: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(55015)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + static createNotAvailable(e3 = "") { + return new r2({ isAvailable: false, id: e3 }); + } + static createAvailable(e3 = "") { + return new r2({ isAvailable: true, id: e3 }); + } + } + t2.default = r2; + }, 14175: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(54063)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "journeyOutcomeCollection"; + } + get displayTypeName() { + return "ArchValueJourneyOutcomeCollection"; + } + get isArchValueJourneyOutcomeCollection() { + return true; + } + } + t2.default = r2; + }, 14187: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.scopes = void 0, t2.containsScope = function(e3, t3) { + return n2.default.any(e3, (e4) => r2[e4].match.test(t3)); + }, t2.getUnscopedName = l, t2.getCasedScope = function(e3) { + if (!e3) return; + const i3 = r2[t2.scopes[e3.toLocaleLowerCase()]]; + return i3 ? i3.cased : void 0; + }, t2.getIsGlobalScope = function(e3) { + if (!e3) return false; + const i3 = r2[t2.scopes[e3.toLowerCase()]]; + return !!i3 && i3.isGlobalScope; + }, t2.getScope = function(e3) { + if (e3) { + const t3 = e3.match(o); + if (t3 && t3[1]) return s[t3[1].toLowerCase()]; + } + }, t2.setScope = function(e3, t3) { + if (r2[e3] || console.error("Using invalid scope value. please use one of the variableScope.scopes values"), u(e3, t3)) return t3; + const i3 = l(t3); + return r2[e3].cased + "." + i3; + }, t2.hasAnyScope = function(e3) { + return a.test(e3); + }, t2.hasScope = u; + const n2 = i2(31635).__importDefault(i2(92140)); + t2.scopes = { call: "call", chat: "chat", common: "common", bot: "bot", email: "email", flow: "flow", form: "form", interaction: "interaction", menu: "menu", message: "message", prompt: "prompt", promptSystem: "promptSystem", session: "session", slot: "slot", state: "state", survey: "survey", system: "system", task: "task", voice: "voice", voicemail: "voicemail", voiceSurvey: "voiceSurvey", workflow: "workflow", workitem: "workitem" }; + const r2 = { call: { cased: "Call", isGlobalScope: true, match: /^Call\./i }, chat: { cased: "Chat", isGlobalScope: true, match: /^Chat\./i }, common: { cased: "Common", match: /^Common\./i }, bot: { cased: "Bot", isGlobalScope: false, match: /^Bot\./i }, email: { cased: "Email", isGlobalScope: true, match: /^Email\./i }, flow: { cased: "Flow", isGlobalScope: true, match: /^Flow\./i }, form: { cased: "Form", isGlobalScope: true, match: /^Form\./i }, interaction: { cased: "Interaction", isGlobalScope: true, match: /^Interaction\./i }, menu: { cased: "Menu", isGlobalScope: true, match: /^Menu\./i }, message: { cased: "Message", isGlobalScope: true, match: /^Message\./i }, session: { cased: "Session", isGlobalScope: true, match: /^Session\./i }, slot: { cased: "Slot", isGlobalScope: true, match: /^Slot\./i }, state: { cased: "State", isGlobalScope: false, match: /^State\./i }, task: { cased: "Task", isGlobalScope: false, match: /^Task\./i }, prompt: { cased: "Prompt", isGlobalScope: true, match: /^Prompt\./i }, promptSystem: { cased: "PromptSystem", isGlobalScope: true, match: /^PromptSystem\./i }, survey: { cased: "Survey", isGlobalScope: true, match: /^Survey\./i }, system: { cased: "System", isGlobalScope: true, match: /^System\./i }, voice: { cased: "Voice", isGlobalScope: true, match: /^Voice\./i }, voicemail: { cased: "Voicemail", isGlobalScope: true, match: /^Voicemail\./i }, voiceSurvey: { cased: "VoiceSurvey", isGlobalScope: true, match: /^VoiceSurvey\./i }, workflow: { cased: "Workflow", isGlobalScope: true, match: /^Workflow\./i }, workitem: { cased: "Workitem", isGlobalScope: true, match: /^Workitem\./i } }, o = /^(.*)\./i, a = new RegExp(n2.default.map(t2.scopes, (e3) => "^" + e3 + "\\.").join("|"), "i"), s = {}; + function l(e3) { + return e3 ? e3.replace(a, "") : ""; + } + function u(e3, t3) { + return r2[e3] || console.error("Using invalid scope value. please use one of the variableScope.scopes values"), r2[e3].match.test(t3); + } + n2.default.each(t2.scopes, (e3) => { + s[e3.toLowerCase()] = e3; + }); + }, 14232: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.getOAuthClientInfo = o; + const n2 = i2(31635).__importDefault(i2(36019)), r2 = i2(66299); + function o(e3) { + return n2.default.build(r2.getOAuthClientInfo).templateParams({ clientId: e3 }).call(); + } + o.api = r2.getOAuthClientInfo; + }, 14240: (e2, t2) => { + "use strict"; + var i2; + Object.defineProperty(t2, "__esModule", { value: true }), t2.KnowledgeMode = void 0, (function(e3) { + e3.statement = "statement", e3.task = "task"; + })(i2 || (t2.KnowledgeMode = i2 = {})); + }, 14273: (e2, t2, i2) => { + "use strict"; + const n2 = i2(31635), r2 = i2(54708), o = n2.__importDefault(i2(27203)), a = n2.__importStar(i2(10798)), s = n2.__importDefault(i2(4648)), l = i2(12179), u = n2.__importDefault(i2(97891)), d = n2.__importDefault(i2(80570)), c = i2(21733), p = i2(47957); + class _ extends d.default { + constructor(e3, t3) { + super(e3), this._loadModel(t3), this.question.options.setBuilderLanguagesSequenceConfig(r2.askForBooleanSequences.questionSequence), this.parentFlow.isDigitalBotFlow ? (this.noInput.options.setBuilderLanguagesSequenceConfig(r2.askForBooleanSequences.noInputDigitalBotSequence), this.noMatch.options.setBuilderLanguagesSequenceConfig(r2.askForBooleanSequences.noMatchDigitalBotSequence)) : (this.noInput.options.setBuilderLanguagesSequenceConfig(r2.askForBooleanSequences.noInputSequence), this.noMatch.options.setBuilderLanguagesSequenceConfig(r2.askForBooleanSequences.noMatchSequence)); + } + get supportsCustomOutputPaths() { + return true; + } + setNewInstanceDefaults(e3) { + super.setNewInstanceDefaults(e3), this.setNewInstanceQuestionText(c(this.parentFlow.defaultLanguage).askForBoolean.question), this.parentFlow.isDigitalBotFlow ? (this.setNewInstanceNoInputText(c(this.parentFlow.defaultLanguage).askForBoolean.noInputDigitalBot), this.setNewInstanceNoMatchText(c(this.parentFlow.defaultLanguage).askForBoolean.noMatchDigitalBot)) : (this.setNewInstanceNoInputText(c(this.parentFlow.defaultLanguage).askForBoolean.noInput), this.setNewInstanceNoMatchText(c(this.parentFlow.defaultLanguage).askForBoolean.noMatch)), this.setBranchOutOfService(o.default.maxNoInputsOptional.outputId), this.setBranchOutOfService(o.default.maxNoMatchesOptional.outputId); + } + static get branchInfo() { + return a.isFeatureAvailable(s.default.botFlowsEnhancedRecognitionFailureHandling) ? [...o.default.yesNo, o.default.maxNoInputsOptional, o.default.maxNoMatchesOptional] : [...o.default.yesNo, o.default.maxNoInputsOptional]; + } + } + _.info = u.default.createActionInfo({ actionClass: _, canBeInTask: true, helpTopic: l.helpTopics.actions.askForBoolean, modelClass: i2(3095), name: p.actions.askForBoolean, scriptingName: "ArchActionAskForBoolean", supportsUtteranceHistoricalData: true }), t2.A = _; + }, 14298: (e2, t2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + }, 14300: (e2, t2, i2) => { + const n2 = i2(75458), { encryptDataActionType: r2 } = i2(30801), o = i2(7401); + function a() { + Object.defineProperties(this, { _dataToBeEncrypted: { writable: true }, _encryptedDataOutput: { writable: true }, _errorBindings: { writable: true } }), a.baseConstructor.apply(this, arguments); + } + n2.extend(a, r2, true), Object.defineProperties(a.prototype, { pasteResolveOldToNewValues: { value: function(e3) { + a._super.pasteResolveOldToNewValues.apply(this, arguments), this.dataToEncrypt.pasteResolveOldToNewValues(e3), this.encryptedDataOutput.pasteResolveOldToNewValues(e3); + } }, pasteReIdOrRename: { value: function(e3) { + a._super.pasteReIdOrRename.apply(this, arguments), this.dataToEncrypt.pasteResolveOldToNewValues(e3), this.encryptedDataOutput.pasteResolveOldToNewValues(e3); + } }, dataToEncrypt: { enumerable: true, get: function() { + return this._dataToBeEncrypted; + }, set: function(e3) { + this._dataToBeEncrypted = this.reviveItem(e3, o); + } }, encryptedDataOutput: { enumerable: true, get: function() { + return this._encryptedDataOutput; + }, set: function(e3) { + this._encryptedDataOutput = this.reviveItem(e3, o); + } } }), e2.exports = a; + }, 14359: function(e2, t2, i2) { + "use strict"; + var n2, r2 = this && this.__extends || (n2 = function(e3, t3) { + return n2 = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(e4, t4) { + e4.__proto__ = t4; + } || function(e4, t4) { + for (var i3 in t4) Object.prototype.hasOwnProperty.call(t4, i3) && (e4[i3] = t4[i3]); + }, n2(e3, t3); + }, function(e3, t3) { + if ("function" != typeof t3 && null !== t3) throw new TypeError("Class extends value " + String(t3) + " is not a constructor or null"); + function i3() { + this.constructor = e3; + } + n2(e3, t3), e3.prototype = null === t3 ? Object.create(t3) : (i3.prototype = t3.prototype, new i3()); + }); + Object.defineProperty(t2, "__esModule", { value: true }), t2.ConnectableObservable = void 0; + var o = i2(48051), a = i2(69879), s = i2(79224), l = i2(17214), u = i2(65212), d = (function(e3) { + function t3(t4, i3) { + var n3 = e3.call(this) || this; + return n3.source = t4, n3.subjectFactory = i3, n3._subject = null, n3._refCount = 0, n3._connection = null, u.hasLift(t4) && (n3.lift = t4.lift), n3; + } + return r2(t3, e3), t3.prototype._subscribe = function(e4) { + return this.getSubject().subscribe(e4); + }, t3.prototype.getSubject = function() { + var e4 = this._subject; + return e4 && !e4.isStopped || (this._subject = this.subjectFactory()), this._subject; + }, t3.prototype._teardown = function() { + this._refCount = 0; + var e4 = this._connection; + this._subject = this._connection = null, null == e4 || e4.unsubscribe(); + }, t3.prototype.connect = function() { + var e4 = this, t4 = this._connection; + if (!t4) { + t4 = this._connection = new a.Subscription(); + var i3 = this.getSubject(); + t4.add(this.source.subscribe(l.createOperatorSubscriber(i3, void 0, function() { + e4._teardown(), i3.complete(); + }, function(t5) { + e4._teardown(), i3.error(t5); + }, function() { + return e4._teardown(); + }))), t4.closed && (this._connection = null, t4 = a.Subscription.EMPTY); + } + return t4; + }, t3.prototype.refCount = function() { + return s.refCount()(this); + }, t3; + })(o.Observable); + t2.ConnectableObservable = d; + }, 14372: (e2) => { + e2.exports = { askCommon: { invalidInputReceived: "\u6B64\u5167\u5BB9\u7121\u6548\u3002", noInputReceived: "\u6211\u6C92\u6709\u6536\u5230\u4EFB\u4F55\u8F38\u5165\u3002" }, askForBoolean: { noInput: '\u5982\u8981\u7E7C\u7E8C\uFF0C\u8ACB\u8AAA\u51FA"\u662F"\uFF1B\u5982\u4E0D\u60F3\u7E7C\u7E8C\uFF0C\u5247\u8AAA\u51FA"\u5426"\u3002', noMatch: '\u8ACB\u8AAA\u51FA"\u662F"\u6216"\u5426"\u3002\u60A8\u662F\u5426\u5E0C\u671B\u7E7C\u7E8C\uFF1F', question: "\u60A8\u662F\u5426\u5E0C\u671B\u7E7C\u7E8C\uFF1F", noInputDigitalBot: '\u5982\u8981\u7E7C\u7E8C\uFF0C\u8ACB\u8F38\u5165 "Yes"\uFF1B\u5982\u4E0D\u60F3\u7E7C\u7E8C\uFF0C\u5247\u8F38\u5165 "No"\u3002', noMatchDigitalBot: '\u8ACB\u8F38\u5165 "Yes" \u6216 "No"\u3002\u60A8\u662F\u5426\u5E0C\u671B\u7E7C\u7E8C\uFF1F' }, askForIntent: { noInput: '\u8ACB\u4EE5\u4E00\u53E5\u7C21\u55AE\u53E5\u5B50\u4F86\u63CF\u8FF0\u60A8\u7684\u67E5\u8A62\u3002\u4F8B\u5982\uFF1A"\u67E5\u770B\u6211\u7684\u5E33\u6236\u7D50\u9918"', noMatch: "\u8ACB\u518D\u6B21\u544A\u8A34\u6211\uFF0C\u60A8\u5E0C\u671B\u505A\u751A\u9EBC\u3002", question: "\u60A8\u5E0C\u671B\u505A\u751A\u9EBC\uFF1F", noInputDigitalBot: '\u8ACB\u8F38\u5165\u4E00\u53E5\u7C21\u77ED\u53E5\u5B50\u4F86\u63CF\u8FF0\u60A8\u7684\u67E5\u8A62\u3002\u4F8B\u5982\uFF1A"Check my account balance"' }, askForSlot: { askFor: "\u67E5\u8A62 %1$s", noInput: "\u8ACB\u8AAA\u51FA\u6216\u8F38\u5165\uFF08\u8ACB\u5728\u6B64\u8F38\u5165\u60A8\u7684\u63D2\u69FD\u540D\u7A31\uFF09\u3002", noInputWithSlot: "\u8ACB\u8AAA\u51FA\u6216\u8F38\u5165 %1$s\u3002", noMatch: "\u8ACB\u518D\u6B21\u5411\u6211\u63D0\u4F9B\uFF08\u8ACB\u5728\u6B64\u8F38\u5165\u60A8\u7684\u63D2\u69FD\u540D\u7A31\uFF09\u3002", noMatchWithSlot: "\u8ACB\u518D\u6B21\u5411\u6211\u63D0\u4F9B %1$s\u3002", question: "\u8ACB\u554F\uFF08\u8ACB\u5728\u6B64\u8F38\u5165\u60A8\u7684\u63D2\u69FD\u540D\u7A31\uFF09\u662F\uFF1F", questionWithSlot: "\u8ACB\u554F %1$s \u662F\uFF1F", pleaseEnterSlotNameHere: "\uFF08\u8ACB\u5728\u6B64\u8F38\u5165\u60A8\u7684\u63D2\u69FD\u540D\u7A31\uFF09", noInputDigitalBot: "\u8ACB\u8F38\u5165\uFF08\u8ACB\u5728\u6B64\u8F38\u5165\u60A8\u7684\u63D2\u69FD\u540D\u7A31\uFF09\u3002", noInputWithSlotDigitalBot: "\u8ACB\u8F38\u5165 %1$s\u3002", continuationPromptWithSlot: "\u76EE\u524D\u70BA\u6B62\u6211\u6536\u5230 {{Slot.%1$s}}\uFF0C\u8ACB\u7E7C\u7E8C\u3002" }, askForNextSlot: { noInput: '\u5982\u6709\u5176\u4ED6\u67E5\u8A62\uFF0C\u8ACB\u8AAA\u51FA"\u662F"\uFF1B\u5982\u8981\u7D50\u675F\u901A\u8A71\uFF0C\u5247\u8AAA\u51FA"\u5426"\u3002', noMatch: '\u5982\u6709\u5176\u4ED6\u67E5\u8A62\uFF0C\u8ACB\u8AAA\u51FA"\u662F"\uFF1B\u5982\u8981\u7D50\u675F\u6703\u8A71\uFF0C\u5247\u8AAA\u51FA"\u5426"\u3002', question: "\u6211\u9084\u6709\u751A\u9EBC\u80FD\u70BA\u60A8\u6548\u52DE\u7684\u55CE\uFF1F", noInputDigitalBot: '\u5982\u6709\u5176\u4ED6\u67E5\u8A62\uFF0C\u8ACB\u8F38\u5165 "Yes"\uFF1B\u5982\u8981\u7D50\u675F\u6703\u8A71\uFF0C\u5247\u8F38\u5165 "No"\u3002', noMatchDigitalBot: '\u5982\u6709\u5176\u4ED6\u67E5\u8A62\uFF0C\u8ACB\u8F38\u5165 "Yes"\uFF1B\u5982\u8981\u7D50\u675F\u6703\u8A71\uFF0C\u5247\u8F38\u5165 "No"\u3002' }, askForPayment: { noInputDigitalBot: "\u8ACB\u63D0\u4F9B\u4ED8\u6B3E\u8CC7\u6599\u4EE5\u7E7C\u7E8C\u3002", noMatchDigitalBot: "\u6211\u4E0D\u660E\u767D\u4F60\u7684\u56DE\u8986\u3002\u8ACB\u518D\u8A66\u4E00\u6B21\u3002" }, askForAuthentication: { noInputDigitalBot: "\u8ACB\u63D0\u4F9B\u9A57\u8B49\u8CC7\u6599\u4EE5\u7E7C\u7E8C\u3002", noMatchDigitalBot: "\u6211\u4E0D\u660E\u767D\u4F60\u7684\u56DE\u8986\u3002\u8ACB\u518D\u8A66\u4E00\u6B21\u3002" }, askSurveyQuestion: { notApplicable: "\u4E0D\u9069\u7528", surveyAnswerOptionSequence: "\u70BA\u300C%2$s\u300D\u6309\u4E0B %1$s\u3002", surveyAnswerNotApplicableSequence: "\u70BA\u300C\u4E0D\u9069\u7528\u300D\u6309\u4E0B\u661F\u865F\u3002", surveyAnswerNotApplicableWithQuestionSequence: "%1$s\u3002\u70BA\u300C\u4E0D\u9069\u7528\u300D\u6309\u4E0B\u661F\u865F\u3002", voiceSurveyNoInputText: "\u8ACB\u56DE\u7B54\u554F\u984C\u3002", voiceSurveyNoMatchText: "\u6211\u4E0D\u660E\u767D\u60A8\u7684\u610F\u601D\u3002" }, commonModule: { exitCommonModule: "\u9000\u51FA\u5171\u540C\u55AE\u5143" }, form: { noInputDigitalBot: "\u8ACB\u586B\u59A5\u8868\u683C\u4EE5\u7E7C\u7E8C\u3002", noMatchDigitalBot: "\u8ACB\u586B\u59A5\u8868\u683C\u4EE5\u7E7C\u7E8C\u3002." }, messagingTemplate: { noInputDigitalBot: "\u8ACB \u9078 \u64C7 \u5176 \u4E2D \u4E00 \u500B \u53EF \u7528 \u9078 \u9805 \u3002", noMatchDigitalBot: "\u8ACB \u9078 \u64C7 \u5176 \u4E2D \u4E00 \u500B \u53EF \u7528 \u9078 \u9805 \u3002." }, knowledgeSettings: { knowledgeAnswerHighlightFlowProgressionDefault: "\u7E7C\u7E8C", knowledgeAnswerHighlightFullArticleDefault: "\u67E5\u770B\u5168\u6587", knowledgeInitialResponseMulti: "\u70BA\u5354\u52A9\u6211\u91D0\u6E05\u60A8\u7684\u76EE\u6A19\uFF0C\u8ACB\u5F9E\u4EE5\u4E0B\u6E05\u55AE\u4E2D\u9078\u64C7\u4E00\u500B\u6578\u5B57\uFF1A", knowledgeInitialResponseMultiRetry: "\u8ACB\u9078\u64C7\u4E00\u500B\u6578\u5B57\uFF0C\u4F8B\u5982\u300C1\u300D\u3002\n\u6B64\u8655\u518D\u6B21\u986F\u793A\u9078\u9805\u6E05\u55AE\uFF1A", knowledgeNoMatch: "\u5168\u90E8\u7686\u975E", knowledgeConfirmation: "\u9019\u662F\u5426\u89E3\u7B54\u5230\u60A8\u7684\u554F\u984C\uFF1F", knowledgeFollowup: "\u5E0C\u671B\u6211\u5DF2\u89E3\u7B54\u5230\u60A8\u7684\u554F\u984C\u3002\u60A8\u53EF\u4EE5\u63D0\u51FA\u4EFB\u4F55\u5176\u4ED6\u63D0\u554F\u3002" }, noOverlay: { intent: { intentConfirmationStr1: "\u6211\u8A8D\u70BA\u60A8\u60F3\u8981", intentConfirmationStr2: "\u8ACB\u554F\u662F\u5426\u6B63\u78BA\uFF1F" }, youSaid: { youSaidConfirmationStr1: "\u60A8\u8AAA", youSaidConfirmationStr2: "\u8ACB\u554F\u662F\u5426\u6B63\u78BA\uFF1F", youSaidConfirmationStr1DigitalBot: "\u60A8\u8F38\u5165\u4E86" }, noInput: { noInputStr1: "\u8ACB\u8AAA\u51FA\u6216\u8F38\u5165", noInputStr1DigitalBot: "\u8ACB\u8F38\u5165" }, noMatch: { noMatchStr1: "\u8ACB\u5411\u6211\u63D0\u4F9B" }, whatIs: { whatIsQuestionStr1: "\u8ACB\u554F", whatIsQuestionStr2: "\u662F\uFF1F" }, iGotContinuation: { iGotContinuationStr1: "\u76EE\u524D\u70BA\u6B62\u6211\u6536\u5230", iGotContinuationStr2: "\uFF0C\u8ACB\u7E7C\u7E8C\u3002" } }, defaultCallFlowOne: "\u9810\u8A2D\u901A\u8A71\u6D41\u7A0B", errorHandlingAgentEscalationConfirmation: "\u60A8\u60F3\u8981\u8DDF\u4EBA\u5DE5\u9867\u554F\u5C0D\u8A71\u3002\u8ACB\u554F\u662F\u5426\u6B63\u78BA\uFF1F", errorHandlingAgentEscalationHandover: "\u8ACB\u7A0D\u7B49\uFF0C\u6211\u6703\u5C07\u60A8\u8F49\u99C1\u7D66\u4EBA\u5DE5\u9867\u554F\u3002", errorHandlingErrorEventHandover: "\u5F88\u62B1\u6B49\u767C\u751F\u932F\u8AA4\u3002\u8ACB\u7A0D\u7B49\uFF0C\u6211\u99AC\u4E0A\u8ACB\u4EBA\u4F86\u70BA\u60A8\u63D0\u4F9B\u5354\u52A9\u3002", errorHandlingErrorEventHandoverVoiceSurvey: "\u5F88\u62B1\u6B49\u767C\u751F\u932F\u8AA4\u3002\u518D\u898B\u3002", errorHandlingRecognitionEventHandover: "\u5F88\u62B1\u6B49\uFF0C\u6211\u7121\u6CD5\u7406\u89E3\u60A8\u7684\u610F\u601D\u3002\u8ACB\u7A0D\u7B49\uFF0C\u6211\u99AC\u4E0A\u8ACB\u4EBA\u4F86\u70BA\u60A8\u63D0\u4F9B\u5354\u52A9\u3002", errorHandlingRecognitionEventHandoverVoiceSurvey: "\u5F88\u62B1\u6B49\uFF0C\u6211\u7121\u6CD5\u7406\u89E3\u60A8\u7684\u610F\u601D\u3002\u518D\u898B\u3002", errorHandlingTTS: "\u5F88\u62B1\u6B49\u767C\u751F\u932F\u8AA4\u3002\u8ACB\u91CD\u65B0\u81F4\u96FB\u3002", initialGreetingTTS: "\u60A8\u597D\uFF0C\u9019\u662F\u521D\u59CB\u554F\u5019\u3002", initialState: "\u521D\u59CB\u72C0\u614B\u3002", initialBotState: "\u9810\u8A2D\u6A5F\u68B0\u4EBA", initialDigitalBotState: "\u521D\u59CB\u554F\u5019", initialSurveyBotState: "\u554F\u5377\u8ABF\u67E5\u6A5F\u68B0\u4EBA", intentConfirmation: "\u6211\u8A8D\u70BA\u60A8\u60F3\u8981 %1$s\u3002\u8ACB\u554F\u662F\u5426\u6B63\u78BA\uFF1F", mainMenu: "\u4E3B\u529F\u80FD\u8868", mainMenuTTS: "\u60A8\u5DF2\u4F4D\u65BC\u4E3B\u529F\u80FD\u8868\uFF0C\u8ACB\u6309 9 \u5B57\u4EE5\u53D6\u6D88\u9023\u63A5", mainTask: "\u4EFB\u52D9", settingsConfirmationNoInputApology: "\u5F88\u62B1\u6B49\uFF0C\u6211\u6C92\u6709\u807D\u6E05\u695A\u3002\u8ACB\u8AAA\u51FA\u662F\u6216\u5426\u3002", settingsConfirmationNoInputApologyDigitalBot: '\u5F88\u62B1\u6B49\uFF0C\u6211\u6C92\u6709\u6536\u5230\u60A8\u7684\u8F38\u5165\u3002\u8ACB\u8F38\u5165 "Yes" \u6216 "No"\u3002', settingsConfirmationNoMatchApology: "\u5F88\u62B1\u6B49\uFF0C\u8ACB\u8AAA\u51FA\u662F\u6216\u5426\u3002", settingsConfirmationNoMatchApologyDigitalBot: '\u5F88\u62B1\u6B49\uFF0C\u8ACB\u8F38\u5165 "Yes" \u6216 "No"\u3002', settingsNoInputApology: "\u5F88\u62B1\u6B49\uFF0C\u6211\u6C92\u6709\u807D\u6E05\u695A\u3002", settingsNoInputApologyDigitalBot: "\u5F88\u62B1\u6B49\uFF0C\u6211\u6C92\u6709\u6536\u5230\u60A8\u7684\u8F38\u5165\u3002", settingsEndOfSessionMessageDigitalBot: "\u6211\u6709\u4E00\u6BB5\u6642\u9593\u6C92\u6709\u6536\u5230\u60A8\u7684\u6D88\u606F\uFF0C\u56E0\u6B64\u5373\u5C07\u7D50\u675F\u6B64\u5C0D\u8A71\u3002\u5982\u9700\u6211\u7684\u5354\u52A9\uFF0C\u8ACB\u8FD4\u56DE\u6B64\u8655\uFF0C\u591A\u8B1D\u3002", settingsNoMatchApology: "\u5F88\u62B1\u6B49\u3002", settingsNoToConfirmationApology: "\u662F\u6211\u7684\u932F\u3002", periodicStateName: "\u91CD\u8907\u72C0\u614B" }; + }, 14375: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.BooleanType = void 0; + const n2 = i2(31635), r2 = i2(67607), o = n2.__importDefault(i2(73198)), a = i2(80428), s = i2(94765); + class l extends s.ExpressionType { + constructor(e3, t3, i3) { + super(e3, t3, i3); + } + get className() { + return "BooleanType"; + } + _getLiteralValueOfExpression(e3) { + var t3; + switch (null === (t3 = e3.text) || void 0 === t3 ? void 0 : t3.toLowerCase()) { + case o.default.true: + case "1": + case "t": + return o.default.true; + case o.default.false: + case "0": + case "f": + return o.default.false; + default: + return ""; + } + } + createExpressionOptionClass() { + return new r2.ExpressionTypeBooleanOptions(this.isCollection); + } + getYamlObjectForLiteralSingleton(e3) { + return super.getYamlObjectForLiteralSingleton.apply(this, arguments), (null == e3 ? void 0 : e3.text) === o.default.true; + } + convertLitToCustomJsonStr(e3, t3, i3, n3) { + return i3 || t3; + } + } + t2.BooleanType = l, l.typeIdentifier = a.expressionTypeNames.boolean; + }, 14394: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.globalTypes = void 0; + const n2 = i2(31635).__importDefault(i2(65302)); + function r2(e3) { + return n2.default.getGlobalTypeGroup().getType(e3); + } + function o(e3) { + return n2.default.getGlobalTypeGroup().getType(e3, true); + } + t2.globalTypes = new class { + get agentScorePair() { + return r2("cpx_agent_score_pair"); + } + get agentScorePairCollection() { + return o("cpx_agent_score_pair"); + } + get any() { + return r2("any"); + } + get anyCollection() { + return o("any"); + } + get anyAudio() { + return r2("apa"); + } + get anyAudioCollection() { + return o("apa"); + } + get anyComplex() { + return r2("acp"); + } + get anyComplexCollection() { + return o("acp"); + } + get assignedCustomerIntent() { + return r2("aci"); + } + get assignedCustomerIntentCollection() { + return o("aci"); + } + get assignedCustomerSegment() { + return r2("acs"); + } + get assignedCustomerSegmentCollection() { + return o("acs"); + } + get audio() { + return r2("aud"); + } + get boolean() { + return r2("bln"); + } + get booleanCollection() { + return o("bln"); + } + get campaign() { + return r2("cam"); + } + get card() { + return r2("crd"); + } + get cardCollection() { + return o("crd"); + } + get carousel() { + return r2("crs"); + } + get chatGuest() { + return r2("cpx_chat_guest"); + } + get chatGuestCollection() { + return o("cpx_chat_guest"); + } + get choice() { + return r2("chc"); + } + get choiceCollection() { + return o("chc"); + } + get chooser() { + return r2("chs"); + } + get communication() { + return r2("com"); + } + get communicationCollection() { + return o("com"); + } + get contactList() { + return r2("cnl"); + } + get currency() { + return r2("cur"); + } + get currencyCollection() { + return o("cur"); + } + get customerIntent() { + return r2("cin"); + } + get customerIntentCollection() { + return o("cin"); + } + get customerSegment() { + return r2("csg"); + } + get customerSegmentCollection() { + return o("csg"); + } + get date() { + return r2("dat"); + } + get dateCollection() { + return o("dat"); + } + get dateTime() { + return r2("dtm"); + } + get dateTimeCollection() { + return o("dtm"); + } + get decimal() { + return r2("dec"); + } + get decimalCollection() { + return o("dec"); + } + get digitalAudio() { + return r2("dia"); + } + get digitalAudioCollection() { + return o("dia"); + } + get division() { + return r2("dvn"); + } + get divisionCollection() { + return o("dvn"); + } + get draftEmail() { + return r2("jsn__architect::draft_email"); + } + get draftEmailAddress() { + return r2("jsn__architect::draft_email_address"); + } + get draftEmailAddressCollection() { + return o("jsn__architect::draft_email_address"); + } + get draftEmailAttachment() { + return r2("jsn__architect::draft_email_attachment"); + } + get draftEmailAttachmentCollection() { + return o("jsn__architect::draft_email_attachment"); + } + get duration() { + return r2("dur"); + } + get durationCollection() { + return o("dur"); + } + get email() { + return r2("cpx_email"); + } + get emailCollection() { + return o("cpx_email"); + } + get emailAddress() { + return r2("cpx_email_address"); + } + get emailAddressCollection() { + return o("cpx_email_address"); + } + get emailAttachment() { + return r2("cpx_email_attachment"); + } + get emailAttachmentCollection() { + return o("cpx_email_attachment"); + } + get emergencyGroup() { + return r2("emg"); + } + get emergencyGroupCollection() { + return o("emg"); + } + get emptyJson() { + return r2("jsn__architect::empty_json"); + } + get emptyJsonCollection() { + return o("jsn__architect::empty_json"); + } + get externalAddress() { + return r2("cpx_external_address"); + } + get externalAddressCollection() { + return o("cpx_external_address"); + } + get externalAppleInfo() { + return r2("cpx_external_apple_info"); + } + get externalAppleInfoCollection() { + return o("cpx_external_apple_info"); + } + get externalContact() { + return r2("cpx_external_contact"); + } + get externalContactCollection() { + return o("cpx_external_contact"); + } + get externalFacebookId() { + return r2("cpx_external_facebook_id"); + } + get externalFacebookIdCollection() { + return o("cpx_external_facebook_id"); + } + get externalFacebookInfo() { + return r2("cpx_external_facebook_info"); + } + get externalFacebookInfoCollection() { + return o("cpx_external_facebook_info"); + } + get externalIdInfo() { + return r2("cpx_external_id_info"); + } + get externalIdInfoCollection() { + return o("cpx_external_id_info"); + } + get externalInstagramInfo() { + return r2("cpx_external_instagram_info"); + } + get externalInstagramInfoCollection() { + return o("cpx_external_instagram_info"); + } + get externalInstagramScopedId() { + return r2("cpx_external_instagram_scoped_id"); + } + get externalInstagramScopedIdCollection() { + return o("cpx_external_instagram_scoped_id"); + } + get externalLineId() { + return r2("cpx_external_line_id"); + } + get externalLineIdCollection() { + return o("cpx_external_line_id"); + } + get externalLineInfo() { + return r2("cpx_external_line_info"); + } + get externalLineInfoCollection() { + return o("cpx_external_line_info"); + } + get externalLinkConfiguration() { + return r2("cpx_external_link_configuration"); + } + get externalLinkConfigurationCollection() { + return o("cpx_external_link_configuration"); + } + get externalOrganization() { + return r2("cpx_external_organization"); + } + get externalOrganizationCollection() { + return o("cpx_external_organization"); + } + get externalPhoneNumber() { + return r2("cpx_external_phone_number"); + } + get externalPhoneNumberCollection() { + return o("cpx_external_phone_number"); + } + get externalSource() { + return r2("cpx_external_source"); + } + get externalSourceCollection() { + return o("cpx_external_source"); + } + get externalTwitterInfo() { + return r2("cpx_external_twitter_info"); + } + get externalTwitterInfoCollection() { + return o("cpx_external_twitter_info"); + } + get externalWhatsAppInfo() { + return r2("cpx_external_whats_app_info"); + } + get externalWhatsAppInfoCollection() { + return o("cpx_external_whats_app_info"); + } + get file() { + return r2("fil"); + } + get fileCollection() { + return o("fil"); + } + get formInput() { + return r2("fip"); + } + get grammar() { + return r2("gmr"); + } + get grammarCollection() { + return o("gmr"); + } + get group() { + return r2("grp"); + } + get groupCollection() { + return o("grp"); + } + get image() { + return r2("img"); + } + get imageCollection() { + return o("img"); + } + get integer() { + return r2("int"); + } + get integerCollection() { + return o("int"); + } + get issueInfo() { + return r2("jsn__architect::issue_info"); + } + get issueInfoCollection() { + return o("jsn__architect::issue_info"); + } + get journeyAction() { + return r2("cpx_journey_action"); + } + get journeyActionMap() { + return r2("cpx_journey_action_map"); + } + get journeyApp() { + return r2("cpx_journey_app"); + } + get journeyBrowser() { + return r2("cpx_journey_browser"); + } + get journeyCampaign() { + return r2("cpx_journey_campaign"); + } + get journeyContext() { + return r2("cpx_journey_context"); + } + get journeyCustomEventAttribute() { + return r2("cpx_journey_custom_event_attribute"); + } + get journeyCustomEventAttributeCollection() { + return o("cpx_journey_custom_event_attribute"); + } + get journeyCustomEventAttributeList() { + return r2("cpx_journey_custom_event_attribute_list"); + } + get journeyCustomEventAttributeListCollection() { + return o("cpx_journey_custom_event_attribute_list"); + } + get journeyCustomer() { + return r2("cpx_journey_customer"); + } + get journeyCustomerSession() { + return r2("cpx_journey_customer_session"); + } + get journeyDevice() { + return r2("cpx_journey_device"); + } + get journeyGeolocation() { + return r2("cpx_journey_geolocation"); + } + get journeyNetworkConnectivity() { + return r2("cpx_journey_network_connectivity"); + } + get journeyOutcome() { + return r2("cpx_journey_outcome"); + } + get journeyOutcomeCollection() { + return o("cpx_journey_outcome"); + } + get journeyOutcomeScore() { + return r2("cpx_journey_outcome_score"); + } + get journeyOutcomeScoreCollection() { + return o("cpx_journey_outcome_score"); + } + get journeyPage() { + return r2("cpx_journey_page"); + } + get journeyReferrer() { + return r2("cpx_journey_referrer"); + } + get journeySdkLibrary() { + return r2("cpx_journey_sdk_library"); + } + get journeySegment() { + return r2("cpx_journey_segment"); + } + get journeySegmentCollection() { + return o("cpx_journey_segment"); + } + get journeySession() { + return r2("cpx_journey_session"); + } + get journeySessionCollection() { + return o("cpx_journey_session"); + } + get journeySessionOutcomeAchievement() { + return r2("cpx_journey_session_outcome_achievement"); + } + get journeySessionOutcomeAchievementCollection() { + return o("cpx_journey_session_outcome_achievement"); + } + get journeySessionSegmentAssignment() { + return r2("cpx_journey_session_segment_assignment"); + } + get journeySessionSegmentAssignmentCollection() { + return o("cpx_journey_session_segment_assignment"); + } + get json() { + return r2("jsn"); + } + get jsonCollection() { + return o("jsn"); + } + get knowledgeBaseDocument() { + return r2("kbd"); + } + get knowledgeBaseDocumentCollection() { + return o("kbd"); + } + get knowledgeBaseDocumentCategory() { + return r2("cpx_knowledge_base_document_category"); + } + get knowledgeBaseDocumentLabel() { + return r2("cpx_knowledge_base_document_label"); + } + get knowledgeBaseDocumentLabelCollection() { + return o("cpx_knowledge_base_document_label"); + } + get languageSkill() { + return r2("lac"); + } + get languageSkillCollection() { + return o("lac"); + } + get lineItem() { + return r2("lni"); + } + get lineItemCollection() { + return o("lni"); + } + get listPicker() { + return r2("lpk"); + } + get listPickerItem() { + return r2("lpi"); + } + get listPickerItemCollection() { + return o("lpi"); + } + get listPickerSection() { + return r2("lps"); + } + get listPickerSectionCollection() { + return o("lps"); + } + get messageAddressInfo() { + return r2("cpx_message_address_info"); + } + get messageAddressInfoCollection() { + return o("cpx_message_address_info"); + } + get messageStickerInfo() { + return r2("cpx_message_sticker_info"); + } + get messageStickerInfoCollection() { + return o("cpx_message_sticker_info"); + } + get notSet() { + return r2("nts"); + } + get phoneNumber() { + return r2("phn"); + } + get phoneNumberCollection() { + return o("phn"); + } + get prompt() { + return r2("pmt"); + } + get promptCollection() { + return o("pmt"); + } + get queue() { + return r2("que"); + } + get queueCollection() { + return o("que"); + } + get quickReplies() { + return r2("qrl"); + } + get responseAsset() { + return r2("rpa"); + } + get responseAssetCollection() { + return o("rpa"); + } + get schedule() { + return r2("sch"); + } + get scheduleCollection() { + return o("sch"); + } + get scheduleGroup() { + return r2("scg"); + } + get scheduleGroupCollection() { + return o("scg"); + } + get shippingOption() { + return r2("sho"); + } + get shippingOptionCollection() { + return o("sho"); + } + get shortMessage() { + return r2("cpx_short_message"); + } + get shortMessageCollection() { + return o("cpx_short_message"); + } + get skill() { + return r2("skl"); + } + get skillCollection() { + return o("skl"); + } + get skillExpressionFilter() { + return r2("jsn__architect::skill_expression_filter"); + } + get skillExpressionFilterCollection() { + return o("jsn__architect::skill_expression_filter"); + } + get string() { + return r2("str"); + } + get stringCollection() { + return o("str"); + } + get stringKeyValuePair() { + return r2("cpx_string_key_value_pair"); + } + get stringKeyValuePairCollection() { + return o("cpx_string_key_value_pair"); + } + get surveyAnswerOption() { + return r2("sao"); + } + get surveyAnswerOptionCollection() { + return o("sao"); + } + get surveyForm() { + return r2("sfo"); + } + get surveyQuestion() { + return r2("squ"); + } + get surveyQuestionCollection() { + return o("squ"); + } + get surveyQuestionGroup() { + return r2("sqg"); + } + get surveyQuestionGroupCollection() { + return o("sqg"); + } + get time() { + return r2("tim"); + } + get timeCollection() { + return o("tim"); + } + get timePicker() { + return r2("tpk"); + } + get timeslot() { + return r2("tsl"); + } + get timeslotCollection() { + return o("tsl"); + } + get userQueue() { + return r2("usr"); + } + get userQueueCollection() { + return o("usr"); + } + get utilizationLabel() { + return r2("cul"); + } + get utilizationLabelCollection() { + return o("cul"); + } + get video() { + return r2("vid"); + } + get videoCollection() { + return o("vid"); + } + get voiceSnippet() { + return r2("cpx_voice_snippet"); + } + get voicemailSnippet() { + return r2("cpx_voicemail_snippet"); + } + get wheelPicker() { + return r2("wpk"); + } + get wheelPickerItem() { + return r2("wpi"); + } + get wheelPickerItemCollection() { + return o("wpi"); + } + get workbin() { + return r2("cpx_workbin"); + } + get workbinCollection() { + return o("cpx_workbin"); + } + get workitem() { + return r2("cpx_workitem"); + } + get workitemEventData() { + return r2("jsn__architect::workitem_event_data"); + } + get workitemEventRule() { + return r2("jsn__architect::workitem_event_rule"); + } + get worktypeStatus() { + return r2("cpx_worktype_status"); + } + get worktypeStatusCollection() { + return o("cpx_worktype_status"); + } + get wrapupCode() { + return r2("wrc"); + } + get wrapupCodeCollection() { + return o("wrc"); + } + }(); + }, 14443: (e2, t2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.isString = t2.isEmptyObject = void 0, t2.isEmptyObject = function(e3) { + return e3 && Object.keys(e3).length < 1; + }, t2.isString = function(e3) { + return "string" == typeof e3; + }; + }, 14517: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importDefault(i2(92140)), o = n2.__importDefault(i2(8471)); + class a extends o.default { + constructor(e3) { + super(), this._coreFlowVersionModel = e3; + } + get displayTypeName() { + return "ArchFlowInfoVersion"; + } + get logStr() { + if (!this._coreFlowVersionModel) return this.logStrTypeOnly; + const e3 = []; + return this._appendLogStrType(e3, this.displayTypeName), this._createLogStrFromParts(e3); + } + get isArchFlowInfoVersion() { + return true; + } + get dateCreated() { + if (r2.default.isActualNumber(this._coreFlowVersionModel.dateCreated) && !isNaN(this._coreFlowVersionModel.dateCreated) && this._coreFlowVersionModel.dateCreated > 0) return new Date(this._coreFlowVersionModel.dateCreated); + } + get versionStr() { + if (r2.default.isString(this._coreFlowVersionModel.commitVersion)) return this._coreFlowVersionModel.commitVersion; + } + } + t2.default = a; + }, 14547: (e2, t2, i2) => { + const n2 = i2(92140), r2 = i2(45421), o = i2(58858), a = i2(57391), { ParameterInfo: s } = i2(55909), { ParameterValidator: l } = i2(33951), u = i2(46521), d = "ClipboardDependenciesViewModel"; + e2.exports = class extends r2 { + constructor(e3, t3) { + super(t3), Object.defineProperties(this, { _dependenciesModel: { writable: true }, _dependencyFlowUiMetaDataSectionMap: { writable: true }, _dependencyVariableViewModelMap: { writable: true }, _dependencyCustomDataTypeDefViewModelMap: { writable: true } }), e3 ? this.loadModel(e3) : this._resetMaps(); + } + _resetMaps() { + this._dependencyVariableViewModelMap = {}, this._dependencyFlowUiMetaDataSectionMap = {}, this._dependencyCustomDataTypeDefViewModelMap = {}; + } + loadModel(e3) { + this._dependenciesModel = e3, this._resetMaps(), n2.each(e3.dependencyFlowUiMetaDataModels, function(e4) { + const t3 = new o(e4, this.clipboardLogging); + let i3 = this._dependencyFlowUiMetaDataSectionMap[t3.metaDataSectionName]; + i3 || (i3 = {}, this._dependencyFlowUiMetaDataSectionMap[t3.metaDataSectionName] = i3), i3[t3.metaDataId] = t3; + }.bind(this)), n2.each(e3.dependencyCustomDataTypes, (e4) => { + const t3 = new u(e4, this.clipboardLogging); + this._dependencyCustomDataTypeDefViewModelMap[t3.dataTypeId] = t3; + }), n2.each(e3.dependencyVariableModels, function(e4) { + const t3 = new a(e4, this.clipboardLogging); + this._dependencyVariableViewModelMap[t3.variableId] = t3; + }.bind(this)); + } + addClipboardDependencyVariableViewModel(e3) { + if (l.expectObject(e3, () => s.createFunctionParameter(d, "addClipboardDependencyVariableViewModel", "clipboardDependencyVariableViewModel")), n2.isUndefined(e3) || null === e3 || !e3.isClipboardDependencyVariableViewModel) throw "clipboardDependencyVariableViewModel is not a ClipboardDependencyVariableViewModel instance."; + if (l.expectString(e3.id, () => s.createFunctionParameter(d, "addClipboardDependencyVariableViewModel", "clipboardDependencyVariableViewModel.id")), l.expectObject(e3.dependencyModel, () => s.createFunctionParameter(d, "addClipboardDependencyVariableViewModel", "clipboardDependencyVariableViewModel.dependencyModel")), !n2.isString(e3.id) || !e3.id.length || !n2.isObject(e3.dependencyModel)) throw "clipboardDependencyVariableViewModel is invalid"; + return !this._dependencyVariableViewModelMap[e3.id] && (this._dependencyVariableViewModelMap[e3.id] = e3, this._dependenciesModel.dependencyVariableModels.push(e3.dependencyModel), true); + } + addClipboardDependencyFlowUiMetaDataViewModel(e3) { + if (l.expectObject(e3, () => s.createFunctionParameter(d, "addClipboardDependencyFlowUiMetaDataViewModel", "clipboardDependencyFlowUiMetaDataViewModel")), n2.isUndefined(e3) || null === e3 || !e3.isClipboardDependencyFlowUiMetaDataViewModel) throw "clipboardDependencyFlowUiMetaDataViewModel is not a ClipboardDependencyFlowUiMetaDataViewModel instance."; + if (l.expectString(e3.metaDataSectionName, () => s.createFunctionParameter(d, "addDependencyFlowUiMetaData", "dependencyFlowUiMetaDataViewModel.metaDataSectionName")), l.expectString(e3.metaDataId, () => s.createFunctionParameter(d, "addDependencyFlowUiMetaData", "dependencyFlowUiMetaDataViewModel.metaDataId")), l.expectObject(e3.dependencyModel, () => s.createFunctionParameter(d, "addDependencyFlowUiMetaData", "dependencyFlowUiMetaDataViewModel.dependencyModel")), !(n2.isString(e3.metaDataSectionName) && e3.metaDataSectionName.length && n2.isString(e3.metaDataId) && e3.metaDataId.length && n2.isObject(e3.dependencyModel))) throw "clipboardDependencyFlowUiMetaDataViewModel is invalid"; + let t3 = this._dependencyFlowUiMetaDataSectionMap[e3.metaDataSectionName]; + return t3 || (t3 = {}, this._dependencyFlowUiMetaDataSectionMap[e3.metaDataSectionName] = t3), !t3[e3.metaDataId] && (t3[e3.metaDataId] = e3, this._dependenciesModel.dependencyFlowUiMetaDataModels.push(e3.dependencyModel), true); + } + addClipboardDependencyCustomDataTypeDefViewModel(e3) { + if (l.expectObject(e3, () => s.createFunctionParameter(d, "addClipboardDependencyCustomDataTypeDefViewModel", "clipboardDependencyCustomDataTypeDefViewModel")), !e3.isClipboardDependencyCustomDataTypeDefViewModel) throw "clipboardDependencyCustomDataTypeDefViewModel is not a ClipboardDependencyCustomDataTypeDefViewModel instance."; + return l.expectString(e3.dataTypeId, () => s.createFunctionParameter(d, "addClipboardDependencyCustomDataTypeDefViewModel", "clipboardDependencyCustomDataTypeDefViewModel.dataTypeDefId")), l.expectObject(e3.dependencyModel, () => s.createFunctionParameter(d, "addClipboardDependencyCustomDataTypeDefViewModel", "clipboardDependencyCustomDataTypeDefViewModel.dependencyModel")), !this._dependencyCustomDataTypeDefViewModelMap[e3.dataTypeId] && (this._dependencyCustomDataTypeDefViewModelMap[e3.dataTypeId] = e3, this._dependenciesModel.dependencyCustomDataTypes.push(e3.dependencyModel), true); + } + get isClipboardDependenciesViewModel() { + return true; + } + get logHeader() { + return "clipboard dependencies object (ID: '" + this.id + "')"; + } + paste(e3) { + let t3; + this.pushLogHeader(this.logHeader); + try { + if (this.log("Clipboard dependencies processing begin."), this.log("Clipboard dependencies processing custom data type definitions."), t3 = this._performPasteDependencyCustomDataTypeDefs(e3), t3.isFailure) return t3; + if (this.log("Clipboard dependencies processing dependent variables."), t3 = this._performPasteDependencyVariables(e3), t3.isFailure) return t3; + if (this.log("Clipboard dependencies processing flow UI meta data entries."), t3 = this._performPasteDependencyFlowUiMetaData(e3), t3.isFailure) return t3; + this.log("Clipboard dependencies processing end. Successful."); + } catch (e4) { + t3 = this.createClipboardResultFailurePasteException(e4, "exception caught in clipboard dependencies view model paste"); + } finally { + this.popLogHeader(); + } + return t3; + } + _performPasteDependencyFlowUiMetaData(e3) { + let t3 = this.createClipboardResultSuccess(); + return n2.find(this.dependencyFlowUiMetaDataSectionMap, function(i3, r3) { + return n2.find(i3, function(i4) { + return t3 = i4.paste(e3), t3.isFailure; + }); + }), t3; + } + _performPasteDependencyVariables(e3) { + let t3 = this.createClipboardResultSuccess(); + const i3 = n2.values(this.dependencyVariableViewModelMap); + if (!i3 || 0 === i3.length) return t3; + for (let n3 = 0; n3 < i3.length; n3++) { + const r3 = i3[n3]; + if (r3.shouldPaste(e3)) { + if (t3 = i3[n3].paste(e3), t3.isFailure) break; + } else { + this.pushLogHeader(r3.logHeader); + try { + this.log("Not pasting content dependency variable because it only had usages in flow types " + r3.supportedFlowTypes.join(",")); + } finally { + this.popLogHeader(); + } + } + } + return t3; + } + _performPasteDependencyCustomDataTypeDefs(e3) { + let t3 = this.createClipboardResultSuccess(); + const i3 = n2.values(this.dependencyCustomDataTypeDefViewModelMap); + for (let n3 = 0; n3 < i3.length && (t3 = i3[n3].paste(e3), !t3.isFailure); n3++) ; + return t3; + } + _performDestroy() { + this.pushLogHeader(this.logHeader); + try { + n2.each(this._dependencyFlowUiMetaDataSectionMap, function(e3) { + n2.each(e3, function(e4) { + e4.destroy(); + }); + }.bind(this)), n2.each(this._dependencyVariableViewModelMap, function(e3) { + e3.destroy(); + }.bind(this)), n2.each(this._dependencyCustomDataTypeDefViewModelMap, (e3) => { + e3.destroy(); + }), this._resetMaps(); + } catch (e3) { + } finally { + this.popLogHeader(); + } + } + get dependencyFlowUiMetaDataSectionMap() { + return this._dependencyFlowUiMetaDataSectionMap; + } + get dependencyVariableViewModelMap() { + return this._dependencyVariableViewModelMap; + } + get dependencyCustomDataTypeDefViewModelMap() { + return this._dependencyCustomDataTypeDefViewModelMap; + } + }; + }, 14592: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.canCreateCustomExpressionTypesFromDataTypeDefs = function(e3, t3) { + return s.default.validateDataTypeDefsForCreation(e3, t3); + }, t2.createCustomExpressionTypesFromDataTypeDefs = function(e3, t3, i3) { + const n3 = [], r3 = null == t3 ? void 0 : t3.length; + if (!r3) return n3; + for (const i4 of t3) n3.push(h(e3, i4, false)); + if (i3) for (let e4 = 0; e4 < n3.length; e4++) { + const i4 = n3[e4], r4 = t3[e4]; + i4.hydratePropertiesFromDataTypeDefViewModel(r4); + } + return _.info(`${r3} custom expression type definition(s) created.`), n3; + }; + const n2 = i2(31635), r2 = i2(17604), o = n2.__importDefault(i2(92140)), a = n2.__importStar(i2(24032)), s = n2.__importDefault(i2(87675)), l = i2(81993), u = i2(80428), d = n2.__importDefault(i2(65302)), c = i2(14394), p = i2(47957), _ = a.getTopic("customDataTypeService"); + function h(e3, t3, i3) { + if (!(null == t3 ? void 0 : t3.id) || !e3) return; + const n3 = d.default.getTypeGroup(e3), o2 = m(e3, t3.dataTypeId, false, t3.additionalProperties), a2 = m(e3, t3.dataTypeId, true, t3.additionalProperties); + return t3.name && (o2 && (o2.schemaName = t3.name), a2 && (a2.schemaName = (0, r2.sprintf)(p.expression.collection, t3.name))), i3 && o2.hydratePropertiesFromDataTypeDefViewModel(t3), n3.addCustomType(t3, o2, a2, e3), o2; + } + function m(e3, t3, i3, n3, r3) { + const a2 = d.default.getTypeGroup(e3).getType(u.expressionTypeNames.json, false), s2 = o.default.deepClone(null == a2 ? void 0 : a2.model.support); + s2.expressionDataType = t3, s2.expressionBaseDataType = u.expressionTypeNames.json, s2.isCustomizablePerFlow = true; + const p2 = new l.JsonType(e3, { name: r3 || (i3 ? c.globalTypes.json.collectionType.typeCode : c.globalTypes.json.typeCode), isCollection: !!i3, support: s2 }, !!i3, !!n3); + return p2.additionalProperties = n3, p2; + } + }, 14724: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(84655)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "surveyAnswerOption"; + } + get displayTypeName() { + return "ArchVariableSurveyAnswerOption"; + } + get initialValue() { + return this._initialValue; + } + get isArchVariableSurveyAnswerOption() { + return true; + } + } + t2.default = r2; + }, 14744: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.StringPlaybackOptions = t2.CurrencyPlaybackOptions = t2.VoiceSnippetPlaybackOptions = t2.PromptPlaybackOptions = t2.PhoneNumberPlaybackOptions = t2.BoolPlaybackOptions = t2.JsonPlaybackOptions = t2.IntegerPlaybackOptions = t2.DecimalPlaybackOptions = t2.DurationPlaybackOptions = t2.DateTimeOptions = void 0, t2.updateDataSequenceItemExpressionFormat = function(e3, t3) { + e3.find((e4) => !(!e4.oldValues || !e4.oldValues.includes(t3.expressionFormat) || (t3.expressionFormat = e4.value, 0))); + }, t2.getDateTimePlaybackOptions = function(e3) { + const t3 = []; + return this.DateTimeOptions.forEach((e4) => t3.push(e4)), u(t3, "ToAudioDate(%s, $var1)", "Format.Date.shortYear", e3, [o.default.audio_ToAudioDate_DateTime_FormatEnum]), u(t3, "ToAudioDate(%s, $var1)", "Format.Date.shortMonthAndDay", e3, [o.default.audio_ToAudioDate_DateTime_FormatEnum]), u(t3, "ToAudioDate(%s, $var1)", "Format.Date.monthOnly", e3, [o.default.audio_ToAudioDate_DateTime_FormatEnum]), u(t3, "ToAudioDate(%s, $var1)", "Format.Date.dayOnly", e3, [o.default.audio_ToAudioDate_DateTime_FormatEnum]), u(t3, "ToAudioDate(%s, $var1)", "Format.Date.dayOfWeekOnly", e3, [o.default.audio_ToAudioDate_DateTime_FormatEnum]), u(t3, "ToAudioDate(%s, $var1)", "Format.Date.shortYearOnly", e3, [o.default.audio_ToAudioDate_DateTime_FormatEnum]), u(t3, "ToAudioDate(%s, $var1)", "Format.Date.longYearOnly", e3, [o.default.audio_ToAudioDate_DateTime_FormatEnum]), u(t3, "ToAudioTime(%s, $var1)", "Format.Time.twelveHours", e3, [o.default.audio_ToAudioTime_DateTime_FormatEnum]), u(t3, "ToAudioTime(%s, $var1)", "Format.Time.twentyFourHours", e3, [o.default.audio_ToAudioTime_DateTime_FormatEnum]), t3; + }, t2.getDatePlaybackOptions = function(e3) { + const t3 = []; + return u(t3, "ToAudioDate(%s, $var1)", "Format.Date.shortYear", e3, [o.default.audio_ToAudioDate_Date_FormatEnum]), u(t3, "ToAudioDate(%s, $var1)", "Format.Date.shortMonthAndDay", e3, [o.default.audio_ToAudioDate_Date_FormatEnum]), u(t3, "ToAudioDate(%s, $var1)", "Format.Date.monthOnly", e3, [o.default.audio_ToAudioDate_Date_FormatEnum]), u(t3, "ToAudioDate(%s, $var1)", "Format.Date.dayOnly", e3, [o.default.audio_ToAudioDate_Date_FormatEnum]), u(t3, "ToAudioDate(%s, $var1)", "Format.Date.dayOfWeekOnly", e3, [o.default.audio_ToAudioDate_Date_FormatEnum]), u(t3, "ToAudioDate(%s, $var1)", "Format.Date.shortYearOnly", e3, [o.default.audio_ToAudioDate_Date_FormatEnum]), u(t3, "ToAudioDate(%s, $var1)", "Format.Date.longYearOnly", e3, [o.default.audio_ToAudioDate_Date_FormatEnum]), t3; + }, t2.getPlaybackOptions = function(e3, t3) { + switch (e3) { + case a.globalTypes.boolean: + return this.getBoolPlaybackOptions(t3); + case a.globalTypes.currency: + return this.getCurrencyPlaybackOptions(t3); + case a.globalTypes.date: + return this.getDatePlaybackOptions(t3); + case a.globalTypes.dateTime: + return this.getDateTimePlaybackOptions(t3); + case a.globalTypes.decimal: + return this.getDecimalPlaybackOptions(t3); + case a.globalTypes.duration: + return this.getDurationPlaybackOptions(t3); + case a.globalTypes.integer: + return this.getIntegerPlaybackOptions(t3); + case a.globalTypes.json: + return this.getJsonPlaybackOptions(t3); + case a.globalTypes.phoneNumber: + return this.getPhoneNumberPlaybackOptions(t3); + case a.globalTypes.prompt: + return this.getPromptPlaybackOptions(t3); + case a.globalTypes.string: + return this.getStringPlaybackOptions(t3); + case a.globalTypes.voiceSnippet: + return this.getVoiceSnippetPlaybackOptions(t3); + } + }, t2.getDurationPlaybackOptions = function(e3) { + const t3 = []; + return this.DurationPlaybackOptions.forEach((e4) => t3.push(e4)), t3; + }, t2.getDecimalPlaybackOptions = function(e3) { + const t3 = []; + return this.DecimalPlaybackOptions.forEach((e4) => t3.push(e4)), u(t3, "ToAudioNumber(%s, $var1%s)", "Format.Number.playDigits", e3, [o.default.audio_ToAudioNumber_Decimal_FormatEnum], [o.default.audio_ToAudioNumber_Decimal_FormatEnum_LangEnumStar]), t3; + }, t2.getIntegerPlaybackOptions = function(e3) { + const t3 = []; + return this.IntegerPlaybackOptions.forEach((e4) => t3.push(e4)), u(t3, "ToAudioNumber(%s, $var1%s)", "Format.Number.playDigits", e3, [o.default.audio_ToAudioNumber_Int_FormatEnum], [o.default.audio_ToAudioNumber_Int_FormatEnum_LangEnumStar]), t3; + }, t2.getJsonPlaybackOptions = function(e3) { + const t3 = []; + return this.JsonPlaybackOptions.forEach((e4) => t3.push(e4)), t3; + }, t2.getBoolPlaybackOptions = function(e3) { + const t3 = []; + return this.BoolPlaybackOptions.forEach((e4) => t3.push(e4)), u(t3, "ToAudioBool(%s, $var1)", "Format.Bool.playYesNo", e3, [o.default.audio_ToAudioBool_Bool_FormatEnum]), t3; + }, t2.getPhoneNumberPlaybackOptions = function(e3) { + const t3 = []; + return this.PhoneNumberPlaybackOptions.forEach((e4) => t3.push(e4)), t3; + }, t2.getPromptPlaybackOptions = function(e3) { + const t3 = []; + return this.PromptPlaybackOptions.forEach((e4) => t3.push(e4)), t3; + }, t2.getVoiceSnippetPlaybackOptions = function(e3) { + const t3 = []; + return this.VoiceSnippetPlaybackOptions.forEach((e4) => t3.push(e4)), t3; + }, t2.getCurrencyPlaybackOptions = function(e3) { + const t3 = []; + return this.CurrencyPlaybackOptions.forEach((e4) => t3.push(e4)), u(t3, "ToAudioCurrency(%s, $var1)", "Format.Currency.asMinorUnits", e3, [o.default.audio_ToAudioCurrency_Currency_FormatEnum]), u(t3, "ToAudioCurrency(%s, $var1)", "Format.Currency.majorUnitsOnly", e3, [o.default.audio_ToAudioCurrency_Currency_FormatEnum]), u(t3, "ToAudioCurrency(%s, $var1)", "Format.Currency.minorUnitsOnly", e3, [o.default.audio_ToAudioCurrency_Currency_FormatEnum]), u(t3, "ToAudioCurrency(%s, $var1)", "Format.Currency.playDigits", e3, [o.default.audio_ToAudioCurrency_Currency_FormatEnum]), t3; + }, t2.getStringPlaybackOptions = function(e3) { + const t3 = []; + return this.StringPlaybackOptions.forEach((e4) => t3.push(e4)), u(t3, "ToAudioTTS(%s, $var1)", "Format.String.playChars", e3, [o.default.audio_ToAudioTTS_String_FormatEnum]), t3; + }; + const n2 = i2(31635), r2 = n2.__importStar(i2(24032)), o = n2.__importDefault(i2(80145)), a = i2(14394), s = i2(47957), l = r2.getTopic("dataEditor"), u = (e3, t3, i3, n3, r3, o2) => { + const a2 = n3.variableGroup.getVariableByName(i3); + if (!a2) { + const e4 = `${i3} not found for adding to data sequence item`; + return void l.error(e4); + } + const s2 = { description: a2.description, display: a2.displayValue, functionOverloadIds: r3, functionOverloadIdsLanguage: o2, value: t3.replace("$var1", i3) }; + e3.push(s2); + }; + t2.DateTimeOptions = [{ display: s.audioFormats.dateAndTime, functionOverloadIds: [o.default.audio_ToAudioDateTime_DateTime], value: "ToAudioDateTime(%s)" }, { description: s.audioFormats.timeDesc, display: s.audioFormats.time, functionOverloadIds: [o.default.audio_ToAudioTime_DateTime], value: "ToAudioTime(%s)" }], t2.DurationPlaybackOptions = [{ description: s.audioFormats.durationExactDesc, display: s.audioFormats.durationExact, functionOverloadIds: [o.default.audio_ToAudioDuration_Duration], sortValue: "a", oldValues: ["If(IsSet(%1$s), ToAudioDuration(%1$s), ToAudioBlank(0))"], value: "ToAudioDuration(%s)" }, { description: s.audioFormats.durationRoundUpDesc, display: s.audioFormats.durationRoundUp, functionOverloadIds: [o.default.audio_ToAudioDuration_Duration, o.default.duration_RoundUp_Duration], sortValue: "b", oldValues: ["ToAudioDuration(RoundUp(%s))"], value: "If(IsSet(%1$s), ToAudioDuration(RoundUp(%1$s)), ToAudioBlank(0))" }, { description: s.audioFormats.durationRoundUp1Desc, display: s.audioFormats.durationRoundUp1, functionOverloadIds: [o.default.audio_ToAudioDuration_Duration, o.default.duration_RoundUp_Duration, o.default.duration_MakeDuration_Int_Int_Int_Int], sortValue: "c", oldValues: ["ToAudioDuration(RoundUp(%s, MakeDuration(0, 0, 1, 0)))"], value: "If(IsSet(%1$s), ToAudioDuration(RoundUp(%1$s, MakeDuration(0, 0, 1, 0))), ToAudioBlank(0))" }, { description: s.audioFormats.durationRoundUp5Desc, display: s.audioFormats.durationRoundUp5, functionOverloadIds: [o.default.audio_ToAudioDuration_Duration, o.default.duration_RoundUp_Duration, o.default.duration_MakeDuration_Int_Int_Int_Int], sortValue: "d", oldValues: ["ToAudioDuration(RoundUp(%s, MakeDuration(0, 0, 5, 0)))"], value: "If(IsSet(%1$s), ToAudioDuration(RoundUp(%1$s, MakeDuration(0, 0, 5, 0))), ToAudioBlank(0))" }, { description: s.audioFormats.durationRoundUp10Desc, display: s.audioFormats.durationRoundUp10, functionOverloadIds: [o.default.audio_ToAudioDuration_Duration, o.default.duration_RoundUp_Duration, o.default.duration_MakeDuration_Int_Int_Int_Int], sortValue: "e", oldValues: ["ToAudioDuration(RoundUp(%s, MakeDuration(0, 0, 10, 0)))"], value: "If(IsSet(%1$s), ToAudioDuration(RoundUp(%1$s, MakeDuration(0, 0, 10, 0))), ToAudioBlank(0))" }, { description: s.audioFormats.durationRoundUp30Desc, display: s.audioFormats.durationRoundUp30, functionOverloadIds: [o.default.audio_ToAudioDuration_Duration, o.default.duration_RoundUp_Duration, o.default.duration_MakeDuration_Int_Int_Int_Int], sortValue: "f", oldValues: ["ToAudioDuration(RoundUp(%s, MakeDuration(0, 0, 30, 0)))"], value: "If(IsSet(%1$s), ToAudioDuration(RoundUp(%1$s, MakeDuration(0, 0, 30, 0))), ToAudioBlank(0))" }, { description: s.audioFormats.durationRoundUp60Desc, display: s.audioFormats.durationRoundUp60, functionOverloadIds: [o.default.audio_ToAudioDuration_Duration, o.default.duration_RoundUp_Duration, o.default.duration_MakeDuration_Int_Int_Int_Int], sortValue: "g", oldValues: ["ToAudioDuration(RoundUp(%s, MakeDuration(0, 1, 0, 0)))"], value: "If(IsSet(%1$s), ToAudioDuration(RoundUp(%1$s, MakeDuration(0, 1, 0, 0))), ToAudioBlank(0))" }], t2.DecimalPlaybackOptions = [{ display: s.audioFormats.wholeValue, functionOverloadIds: [o.default.audio_ToAudioNumber_Decimal], functionOverloadIdsLanguage: [o.default.audio_ToAudioNumber_Decimal_LangEnumStar], value: "ToAudioNumber(%s%s)" }, { display: s.audioFormats.precision0, functionOverloadIds: [o.default.audio_ToAudioNumber_Decimal_Int], functionOverloadIdsLanguage: [o.default.audio_ToAudioNumber_Decimal_Int_LangEnumStar], value: "ToAudioNumber(%s, 0%s)" }, { display: s.audioFormats.precision1, functionOverloadIds: [o.default.audio_ToAudioNumber_Decimal_Int], functionOverloadIdsLanguage: [o.default.audio_ToAudioNumber_Decimal_Int_LangEnumStar], value: "ToAudioNumber(%s, 1%s)" }, { display: s.audioFormats.precision2, functionOverloadIds: [o.default.audio_ToAudioNumber_Decimal_Int], functionOverloadIdsLanguage: [o.default.audio_ToAudioNumber_Decimal_Int_LangEnumStar], value: "ToAudioNumber(%s, 2%s)" }, { display: s.audioFormats.precision3, functionOverloadIds: [o.default.audio_ToAudioNumber_Decimal_Int], functionOverloadIdsLanguage: [o.default.audio_ToAudioNumber_Decimal_Int_LangEnumStar], value: "ToAudioNumber(%s, 3%s)" }, { display: s.audioFormats.precision4, functionOverloadIds: [o.default.audio_ToAudioNumber_Decimal_Int], functionOverloadIdsLanguage: [o.default.audio_ToAudioNumber_Decimal_Int_LangEnumStar], value: "ToAudioNumber(%s, 4%s)" }, { display: s.audioFormats.precision5, functionOverloadIds: [o.default.audio_ToAudioNumber_Decimal_Int], functionOverloadIdsLanguage: [o.default.audio_ToAudioNumber_Decimal_Int_LangEnumStar], value: "ToAudioNumber(%s, 5%s)" }, { display: s.audioFormats.precision6, functionOverloadIds: [o.default.audio_ToAudioNumber_Decimal_Int], functionOverloadIdsLanguage: [o.default.audio_ToAudioNumber_Decimal_Int_LangEnumStar], value: "ToAudioNumber(%s, 6%s)" }, { display: s.audioFormats.precision7, functionOverloadIds: [o.default.audio_ToAudioNumber_Decimal_Int], functionOverloadIdsLanguage: [o.default.audio_ToAudioNumber_Decimal_Int_LangEnumStar], value: "ToAudioNumber(%s, 7%s)" }, { display: s.audioFormats.precision8, functionOverloadIds: [o.default.audio_ToAudioNumber_Decimal_Int], functionOverloadIdsLanguage: [o.default.audio_ToAudioNumber_Decimal_Int_LangEnumStar], value: "ToAudioNumber(%s, 8%s)" }, { display: s.audioFormats.percentage, functionOverloadIds: [o.default.audio_ToAudioPercent_Decimal], value: "ToAudioPercent(%s)" }, { display: s.audioFormats.percentage1, functionOverloadIds: [o.default.audio_ToAudioPercent_Decimal], value: "ToAudioPercent(%s, 1)" }, { display: s.audioFormats.percentage2, functionOverloadIds: [o.default.audio_ToAudioPercent_Decimal], value: "ToAudioPercent(%s, 2)" }], t2.IntegerPlaybackOptions = [{ display: s.audioFormats.wholeValue, functionOverloadIds: [o.default.audio_ToAudioNumber_Int], functionOverloadIdsLanguage: [o.default.audio_ToAudioNumber_Int_FormatEnum_LangEnumStar], value: "ToAudioNumber(%s%s)" }, { display: s.audioFormats.percentage, functionOverloadIds: [o.default.audio_ToAudioPercent_Int], value: "ToAudioPercent(%s)" }, { display: s.audioFormats.ordinal, functionOverloadIds: [o.default.audio_ToAudioNumberOrdinal_Int], functionOverloadIdsLanguage: [o.default.audio_ToAudioNumberOrdinal_Int_LangEnumStar], value: "ToAudioNumberOrdinal(%s%s)" }], t2.JsonPlaybackOptions = [{ display: s.audioFormats.playJsonData, functionOverloadIds: [o.default.audio_ToAudioTTS_String, o.default.audio_ToAudio_Prompt, o.default.audio_ToAudioNumber_Decimal, o.default.audio_ToAudioBool_Bool], value: "If(IsJsonNull(%1$s), ToAudio(NOT_SET), If(IsJsonNumber(%1$s), ToAudioNumber(ToDecimal(%1$s)), If(IsJsonBool(%1$s), ToAudioBool(IsJsonTruthy(%1$s)), ToAudioTTS(ToString(%1$s)))))" }], t2.BoolPlaybackOptions = [{ display: s.audioFormats.boolTrueFalse, functionOverloadIds: [o.default.audio_ToAudioBool_Bool], value: "ToAudioBool(%s)" }], t2.PhoneNumberPlaybackOptions = [{ description: s.audioFormats.phoneNumberLocalDesc, display: s.audioFormats.phoneNumberLocal, functionOverloadIds: [o.default.audio_ToAudioPhoneNumber_PhoneNumber_FormatEnum], value: "ToAudioPhoneNumber(%s, Format.PhoneNumber.local)" }, { description: s.audioFormats.phoneNumberGlobalDesc, display: s.audioFormats.phoneNumberGlobal, functionOverloadIds: [o.default.audio_ToAudioPhoneNumber_PhoneNumber], value: "ToAudioPhoneNumber(%s)" }, { description: s.audioFormats.phoneNumberAutoDesc, display: s.audioFormats.phoneNumberAuto, functionOverloadIds: [o.default.audio_ToAudioPhoneNumber_PhoneNumber_String], specifyCountryCode: true, value: 'ToAudioPhoneNumber(%s, "%s")' }], t2.PromptPlaybackOptions = [{ display: s.audio.sequenceTypePromptLabel, functionOverloadIds: [o.default.audio_ToAudio_Prompt], value: "ToAudio(%s)" }], t2.VoiceSnippetPlaybackOptions = [{ display: s.audio.sequenceTypeVoiceSnippetLabel, functionOverloadIds: [o.default.audio_ToAudio_VoiceSnippet], value: "ToAudio(%s)" }], t2.CurrencyPlaybackOptions = [{ display: s.audioFormats.wholeValue, functionOverloadIds: [o.default.audio_ToAudioCurrency_Currency], value: "ToAudioCurrency(%s)" }, { display: s.audioFormats.precision1, functionOverloadIds: [o.default.audio_ToAudioCurrency_Currency_Int], value: "ToAudioCurrency(%s, 1)" }, { display: s.audioFormats.precision2, functionOverloadIds: [o.default.audio_ToAudioCurrency_Currency_Int], value: "ToAudioCurrency(%s, 2)" }, { display: s.audioFormats.precision3, functionOverloadIds: [o.default.audio_ToAudioCurrency_Currency_Int], value: "ToAudioCurrency(%s, 3)" }, { display: s.audioFormats.precision4, functionOverloadIds: [o.default.audio_ToAudioCurrency_Currency_Int], value: "ToAudioCurrency(%s, 4)" }, { display: s.audioFormats.precision5, functionOverloadIds: [o.default.audio_ToAudioCurrency_Currency_Int], value: "ToAudioCurrency(%s, 5)" }, { display: s.audioFormats.precision6, functionOverloadIds: [o.default.audio_ToAudioCurrency_Currency_Int], value: "ToAudioCurrency(%s, 6)" }, { display: s.audioFormats.precision7, functionOverloadIds: [o.default.audio_ToAudioCurrency_Currency_Int], value: "ToAudioCurrency(%s, 7)" }, { display: s.audioFormats.precision8, functionOverloadIds: [o.default.audio_ToAudioCurrency_Currency_Int], value: "ToAudioCurrency(%s, 8)" }], t2.StringPlaybackOptions = [{ display: s.audioFormats.stringTTS, functionOverloadIds: [o.default.audio_ToAudioTTS_String], value: "ToAudioTTS(%s)" }, { display: s.audioFormats.stringPhoneNumber, functionOverloadIds: [o.default.audio_ToAudioPhoneNumber_String], value: "ToAudioPhoneNumber(%s)" }]; + }, 14820: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(62957)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get displayTypeName() { + return "ArchBaseActionBot"; + } + get isArchBaseActionBotWithSessionVariables() { + return true; + } + addSessionVariableNameValuePair(e3, t3) { + return this._checkItemIsValidLiteralString(this._infoParm("nameLiteral", "addSessionVariableNameValuePair"), e3, true), this._checkItemIsValidLiteralString(this._infoParm("valueExpression", "addSessionVariableNameValuePair"), t3, true), this.sessionVariables._addNameValueAssignment(e3, t3, false, true); + } + get sessionVariables() { + const e3 = this._getCoreViewModel().sessionVariables; + if (e3) return this.coreFactory.createArchBaseValueContainer(e3); + } + } + t2.default = r2; + }, 14823: (e2) => { + "use strict"; + var t2 = (function() { + for (var e3, t3 = [], i2 = 0; i2 < 256; i2++) { + e3 = i2; + for (var n2 = 0; n2 < 8; n2++) e3 = 1 & e3 ? 3988292384 ^ e3 >>> 1 : e3 >>> 1; + t3[i2] = e3; + } + return t3; + })(); + e2.exports = function(e3, i2, n2, r2) { + var o = t2, a = r2 + n2; + e3 ^= -1; + for (var s = r2; s < a; s++) e3 = e3 >>> 8 ^ o[255 & (e3 ^ i2[s])]; + return -1 ^ e3; + }; + }, 14897: (e2, t2, i2) => { + "use strict"; + const n2 = i2(31635), r2 = i2(12179), o = n2.__importDefault(i2(5730)), a = n2.__importDefault(i2(73198)), s = n2.__importDefault(i2(97891)), l = i2(67607), u = i2(80428), d = i2(47957); + class c extends o.default { + static get managedProperties() { + return [{ label: d.audioMonitoringAction.enableMonitoring, options: l.ExpressionTypeBooleanOptions.create((e3) => e3.setDefaultText(a.default.true).setDescriptionInfo(d.audioMonitoringAction.enableMonitoring, d.audioMonitoringAction.enableMonitoringDescription).setIninTestingField("enableMonitoring").setBoolText(d.boolean.enabled, d.boolean.disabled)), property: "enableMonitoring", type: u.expressionTypeNames.boolean }]; + } + constructor(e3, t3) { + super(e3.parentFlow, e3), this._loadModel(t3); + } + } + c.info = s.default.createActionInfo({ actionClass: c, canBeInTask: true, helpTopic: r2.helpTopics.actions.audioMonitoring, modelClass: i2(89127), name: d.actions.audioMonitoring, scriptingName: "ArchActionAudioMonitoring" }), t2.A = c; + }, 14944: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.briefVoiceFlowListManager = void 0; + const n2 = i2(31635).__importStar(i2(24032)), r2 = i2(70726), o = i2(30801), a = i2(96618), s = i2(27862); + class l extends r2.BriefFlowListManager { + get dependencyType() { + return s.VoiceFlow; + } + constructor() { + super(), this.topic = n2.getTopic("BriefVoiceFlowListManager"), this.additionalQueryParams = { type: a.flowTypes.flowTypeVoice }, this.className = "BriefVoiceFlowListManager", this.uiMetadataSectionName = "voiceFlows", this.actionsForUsageSearch = [o.callVoiceFlowActionType], this.actionPropertyForUsageSearch = "voiceFlow", this.flowType = a.flowTypes.flowTypeVoice, this._initialize(); + } + } + t2.briefVoiceFlowListManager = new l(); + }, 14961: (e2, t2, i2) => { + const n2 = i2(92140), r2 = i2(74359), o = i2(81086), a = i2(12847), { isoLanguages: s } = i2(24812), l = i2(24032).getTopic("runtimeLanguageFeatures"); + function u() { + u.baseConstructor.call(this), Object.defineProperties(this, { supportedLanguages: { value: {}, writable: true } }), r2.bootstrapLanguageDataLoaded.then(function() { + this.processLanguageChanges(); + }.bind(this)), u.instances.push(this); + } + u.instances = [], o.extend(u), Object.defineProperties(u.prototype, { processLanguageChanges: { value: function() { + this.supportedLanguages = {}; + const e3 = { enabled: [], disabled: [] }; + n2.each(this.languageSequences, function(t3, i3) { + if ("fallbackSequence" === i3) return; + const r3 = s[i3]; + r3 ? r3.features && r3.features[this.adsSectionName] && r3.features[this.adsSectionName].flowTypes && n2.findWhere(r3.features[this.adsSectionName].flowTypes, { isAvailable: true }) ? (this.supportedLanguages[r3.id] = t3, e3.enabled.push(i3)) : e3.disabled.push(i3) : l.error("Could not find isoLanguage for " + i3); + }.bind(this)), a.table(`Audio Sequence ${this.adsSectionName} support`, e3); + } }, supportsFlow: { value: function(e3, t3) { + if (!e3) return false; + const i3 = s[e3.toLocaleLowerCase()]; + return i3 ? i3.features[this.adsSectionName].flowTypes ? t3.destinationFlowTypes.every((t4) => i3.features[this.adsSectionName].flowTypes[t4] ? i3.features[this.adsSectionName].flowTypes[t4].isAvailable : (l.error(`${this.adsSectionName}.flowTypes[${t4}] not found for language ${e3}`), false)) : (l.error(`${this.adsSectionName}.flowTypes not found for language ${e3}`), false) : (l.error("Could not find isoLanguage for " + e3), false); + } } }), e2.exports = u; + }, 14994: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(92140)), r2 = i2(43212); + class o extends r2.BaseConfigurationListViewModel { + constructor(e3) { + super(e3); + } + get className() { + return "DialogEngineBotViewModel"; + } + get activeVersion() { + return n2.default.isObject(this.model.activeVersion) && n2.default.isString(this.model.activeVersion.id) ? this.model.activeVersion.id : ""; + } + get botName() { + return this.model.name; + } + get getConfiguration() { + return this.model; + } + get id() { + return this.model.id; + } + get label() { + return this.name; + } + get name() { + return this.model.name; + } + } + t2.default = o; + }, 15008: (e2, t2, i2) => { + const n2 = i2(60856), r2 = i2(15244), o = i2(7401), a = i2(96237); + function s() { + Object.defineProperties(this, { _recognitionHandlingType: { writable: true }, _agentEscalationConfirmationCommunication: { writable: true }, _agentEscalationHandoverCommunication: { writable: true }, _enableAgentEscalation: { writable: true }, _errorEventHandoverCommunication: { writable: true }, _recognitionEventHandoverCommunication: { writable: true }, _agentEscalationHandlingType: { writable: true }, _subsequentRecognitionFailuresHandlingType: { writable: true } }), this.agentEscalationTaskId = void 0, this.agentEscalationTaskName = void 0, this.recognitionEventTaskId = void 0, this.recognitionEventTaskName = void 0, s.baseConstructor.apply(this, arguments); + } + n2.extend(s, "BotFlowEventHandlingSettings"), Object.defineProperties(s.prototype, { pasteReIdOrRename: { value: function(e3) { + s._super.pasteReIdOrRename.apply(this, arguments), this._agentEscalationConfirmationCommunication.pasteReIdOrRename(e3), this._agentEscalationHandoverCommunication.pasteReIdOrRename(e3), this._enableAgentEscalation.pasteReIdOrRename(e3), this._errorEventHandoverCommunication.pasteReIdOrRename(e3), this._recognitionEventHandoverCommunication.pasteReIdOrRename(e3), this._subsequentRecognitionFailuresHandlingType.pasteReIdOrRename(e3); + } }, pasteResolveOldToNewValues: { value: function(e3) { + s._super.pasteResolveOldToNewValues.apply(this, arguments), this._agentEscalationConfirmationCommunication.pasteResolveOldToNewValues(e3), this._agentEscalationHandoverCommunication.pasteResolveOldToNewValues(e3), this._enableAgentEscalation.pasteResolveOldToNewValues(e3), this._errorEventHandoverCommunication.pasteResolveOldToNewValues(e3), this._recognitionEventHandoverCommunication.pasteResolveOldToNewValues(e3), this._subsequentRecognitionFailuresHandlingType.pasteResolveOldToNewValues(e3); + } }, recognitionHandlingType: { enumerable: true, get: function() { + return this._recognitionHandlingType; + }, set: function(e3) { + this._recognitionHandlingType = this.reviveEnum(e3, r2); + } }, agentEscalationConfirmation: { enumerable: true, get: function() { + return this._agentEscalationConfirmationCommunication; + }, set: function(e3) { + this._agentEscalationConfirmationCommunication = this.reviveItem(e3, o); + } }, agentEscalationHandover: { enumerable: true, get: function() { + return this._agentEscalationHandoverCommunication; + }, set: function(e3) { + this._agentEscalationHandoverCommunication = this.reviveItem(e3, o); + } }, enableAgentEscalation: { enumerable: true, get: function() { + return this._enableAgentEscalation; + }, set: function(e3) { + this._enableAgentEscalation = this.reviveItem(e3, o); + } }, errorEventHandover: { enumerable: true, get: function() { + return this._errorEventHandoverCommunication; + }, set: function(e3) { + this._errorEventHandoverCommunication = this.reviveItem(e3, o); + } }, recognitionEventHandover: { enumerable: true, get: function() { + return this._recognitionEventHandoverCommunication; + }, set: function(e3) { + this._recognitionEventHandoverCommunication = this.reviveItem(e3, o); + } }, agentEscalationHandlingType: { enumerable: true, get: function() { + return this._agentEscalationHandlingType; + }, set: function(e3) { + this._agentEscalationHandlingType = this.reviveEnum(e3, r2); + } }, subsequentRecognitionFailuresHandlingType: { enumerable: true, get: function() { + return this._subsequentRecognitionFailuresHandlingType; + }, set: function(e3) { + this._subsequentRecognitionFailuresHandlingType = this.reviveEnum(e3, a); + } } }), e2.exports = s; + }, 15019: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.tap = void 0; + var n2 = i2(10281), r2 = i2(65212), o = i2(17214), a = i2(87699); + t2.tap = function(e3, t3, i3) { + var s = n2.isFunction(e3) || t3 || i3 ? { next: e3, error: t3, complete: i3 } : e3; + return s ? r2.operate(function(e4, t4) { + var i4; + null === (i4 = s.subscribe) || void 0 === i4 || i4.call(s); + var n3 = true; + e4.subscribe(o.createOperatorSubscriber(t4, function(e5) { + var i5; + null === (i5 = s.next) || void 0 === i5 || i5.call(s, e5), t4.next(e5); + }, function() { + var e5; + n3 = false, null === (e5 = s.complete) || void 0 === e5 || e5.call(s), t4.complete(); + }, function(e5) { + var i5; + n3 = false, null === (i5 = s.error) || void 0 === i5 || i5.call(s, e5), t4.error(e5); + }, function() { + var e5, t5; + n3 && (null === (e5 = s.unsubscribe) || void 0 === e5 || e5.call(s)), null === (t5 = s.finalize) || void 0 === t5 || t5.call(s); + })); + }) : a.identity; + }; + }, 15086: (e2) => { + "use strict"; + e2.exports = require_ws(); + }, 15091: (e2, t2, i2) => { + "use strict"; + const n2 = i2(31635), r2 = i2(17604), o = i2(80428), a = i2(29586), s = i2(19131), l = n2.__importDefault(i2(27203)), u = i2(82632), d = i2(12179), c = n2.__importDefault(i2(97891)), p = n2.__importDefault(i2(942)), _ = i2(47957); + class h extends p.default { + constructor(e3, t3) { + super(e3.parentFlow, e3), this._loadModel(t3); + } + static get branchInfo() { + return l.default.foundPartiallyFoundNotFound; + } + static get managedProperties() { + return p.default.createManagedProperties({ searchFieldPropertyName: "findNames", searchFieldOptionsCallback: (e3) => e3.setIsCollection(true).setMaxItems(u.findLimits.maxBulkFindByName).setDescriptionInfo(_.findActions.findDivision.findDivisionsNameLabel, (0, r2.sprintf)(_.findActions.bulkFind.bulkFindMaxItemProcessingNote, u.findLimits.maxBulkFindByName)), searchFieldLabel: _.findActions.findDivision.findDivisionsNameLabel, searchResultLabel: _.findActions.findDivision.findDivisionsResultLabel, searchResultExpressionOptions: a.ExpressionTypeDivisionOptions.create((e3) => e3.setIsCollection(true)), searchResultItemType: o.expressionTypeNames.division }); + } + } + h.info = c.default.createActionInfo({ actionClass: h, canBeInTask: true, helpTopic: d.helpTopics.actions.findDivisions, modelClass: s.FindDivisionsActionModel, name: _.actions.findDivisions, scriptingName: "ArchActionFindDivisions" }), t2.A = h; + }, 15116: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.PagedList = void 0; + const n2 = i2(31635), r2 = n2.__importDefault(i2(92140)), o = i2(80295), a = i2(19596); + class s extends a.DataContract { + constructor(e3) { + super(e3); + } + get entities() { + return this._entities; + } + set entities(e3) { + r2.default.isArray(e3) && (this._entities = e3); + } + get results() { + return this.entities; + } + set results(e3) { + this.entities = e3; + } + get nextUri() { + return this._nextUri; + } + set nextUri(e3) { + this._nextUri = e3; + } + get total() { + return this._total; + } + set total(e3) { + this._total = e3; + } + get pageSize() { + return this._pageSize; + } + set pageSize(e3) { + this._pageSize = e3; + } + get pageNumber() { + return this._pageNumber; + } + set pageNumber(e3) { + this._pageNumber = e3; + } + get pageCount() { + return this._pageCount; + } + set pageCount(e3) { + this._pageCount = e3; + } + } + t2.PagedList = s, n2.__decorate([(0, o.enumerable)(true), n2.__metadata("design:type", Array), n2.__metadata("design:paramtypes", [Array])], s.prototype, "entities", null), n2.__decorate([(0, o.enumerable)(true), n2.__metadata("design:type", Array), n2.__metadata("design:paramtypes", [Array])], s.prototype, "results", null); + }, 15117: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.ExpressionTypeCustomerIntentOptions = void 0; + const n2 = i2(65615); + class r2 extends n2.BaseExpressionTypeCollectionOptions { + static create(e3, t3) { + return new this(t3).invokeOptionsCallback(e3); + } + constructor(e3) { + super(e3); + } + get className() { + return "ExpressionTypeCustomerIntentOptions"; + } + get isExpressionTypeCustomerIntentOptions() { + return true; + } + get supportsLiteralMode() { + return this.isCollection; + } + } + t2.ExpressionTypeCustomerIntentOptions = r2; + }, 15129: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.WheelPickerItemType = t2.PROP_VALUE = t2.PROP_TITLE = void 0; + const n2 = i2(91437), r2 = i2(80428), o = i2(94765); + t2.PROP_TITLE = "title", t2.PROP_VALUE = "value"; + class a extends o.ExpressionType { + constructor(e3, t3, i3) { + super(e3, t3, i3); + } + get className() { + return "WheelPickerItemType"; + } + convertLitToExpression(e3, t3) { + return ""; + } + _getLiteralValueOfExpression() { + return ""; + } + createExpressionOptionClass() { + return new n2.ExpressionTypeWheelPickerItemOptions(); + } + get supportsLiteralEditor() { + return true; + } + getPropTitle(e3) { + return e3.getProperty(t2.PROP_TITLE); + } + getPropValue(e3) { + return e3.getProperty(t2.PROP_VALUE); + } + configurePropertyCreationParams(e3, i3, n3) { + var r3; + switch (super.configurePropertyCreationParams(e3, i3, n3), n3.options.setIninTestingField(`wheel-picker-item-${i3.name}`), n3.options.setIsOptional(true), n3.options.setDefaultToNoValue(true), null === (r3 = i3.name) || void 0 === r3 ? void 0 : r3.toLowerCase()) { + case t2.PROP_TITLE: + case t2.PROP_VALUE: + } + } + } + t2.WheelPickerItemType = a, a.typeIdentifier = r2.expressionTypeNames.wheelPickerItem; + }, 15137: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = i2(26847), o = n2.__importDefault(i2(88827)); + class a extends o.default { + constructor(e3) { + super(e3); + } + get displayTypeName() { + return "ArchBaseActionWithOutputsFoundNotFoundPartiallyFound"; + } + get isArchBaseActionWithOutputsFoundNotFoundPartiallyFound() { + return true; + } + get outputPartiallyFound() { + return this._getOutputById(r2.outputIds.partiallyFound, true); + } + } + t2.default = a; + }, 15138: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(54063)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "shortMessageCollection"; + } + get displayTypeName() { + return "ArchValueShortMessageCollection"; + } + get isArchValueShortMessageCollection() { + return true; + } + } + t2.default = r2; + }, 15139: (e2, t2, i2) => { + const n2 = i2(45214), r2 = i2(97361); + e2.exports = class extends n2 { + get flowId() { + return this._flowId; + } + set flowId(e3) { + this._flowId = e3; + } + get flowType() { + return this._flowType; + } + set flowType(e3) { + this._flowType = e3; + } + get id() { + return this._id; + } + set id(e3) { + this._id = e3; + } + get organizationId() { + return this._organizationId; + } + set organizationId(e3) { + this._organizationId = e3; + } + get actionName() { + return this._actionName; + } + set actionName(e3) { + this._actionName = e3; + } + get actionStatus() { + return this._actionStatus; + } + set actionStatus(e3) { + this._actionStatus = e3; + } + get started() { + return this._started; + } + set started(e3) { + this._started = e3; + } + get complete() { + return this._complete; + } + set complete(e3) { + this._complete = e3; + } + get completed() { + return this._completed; + } + set completed(e3) { + this._completed = e3; + } + get results() { + return this._results; + } + set results(e3) { + this._results = this.reviveItem(e3, r2); + } + get errorMessage() { + return this._errorMessage; + } + set errorMessage(e3) { + this._errorMessage = e3; + } + }; + }, 15144: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importDefault(i2(92140)), o = n2.__importDefault(i2(11210)), a = i2(30801); + class s extends o.default { + constructor(e3) { + super(e3); + } + get _actionTypeId() { + return a.taskActionActionType; + } + get displayTypeName() { + return this._scriptingName; + } + get isArchActionTask() { + return true; + } + get task() { + const e3 = this._coreActionViewModel.taskReference, t3 = r2.default.find(this._coreActionViewModel.parentFlow.tasks, function(t4) { + return t4.id === e3; + }.bind(this)); + return this.coreFactory.createArchWrapper(t3); + } + } + t2.default = s; + }, 15179: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importDefault(i2(77862)), o = i2(12179), a = n2.__importDefault(i2(27377)), s = i2(47957), l = "slotTypeSettings"; + class u extends a.default { + get id() { + return l; + } + static get id() { + return l; + } + get showInFlowSize() { + return false; + } + get className() { + return "SlotTypeSettingsViewModel"; + } + getDisplayName() { + return s.slotTypes.label; + } + get isSlotSettingsViewModel() { + return true; + } + get isSlotTypeSettingNode() { + return true; + } + get nodeGuxIcon() { + return "file-text"; + } + get helpTopic() { + return o.helpTopics.treeNodes.slotTypeSettings; + } + get workbenchArchNodeName() { + return r2.default.nodeIds.slotTypes; + } + _destroy() { + super._destroy(); + } + } + t2.default = u; + }, 15244: (e2, t2, i2) => { + const n2 = i2(92140), r2 = i2(57731), o = i2(47957), a = i2(17604).sprintf, s = {}; + function l(e3, t3, i3, n3, r3) { + s[e3] = this, s[t3] = this, l.baseConstructor.apply(this, arguments), Object.defineProperty(this, "displayName", { value: i3, writable: true }), this.scriptingName = n3, this.description = r3; + } + r2.extend(l, "ErrorHandlingType"), l.getInstance = function(e3) { + return s[n2.isString(e3) || n2.isActualNumber(e3) ? e3 : 0] || s[0]; + }, l.Disconnect = new l(0, "Disconnect", o.actions.disconnect, "disconnect"), l.Queue = new l(1, "Queue", o.customNodes.errorHandling.queueTransfer, "queue"), l.Menu = new l(2, "Menu", o.actions.menuJump, "menu"), l.Task = new l(3, "Task", o.actions.taskTransfer, "task"), l.State = new l(4, "State", o.actions.changeState, "state"), l.EndWorkflow = new l(5, "EndWorkflow", o.actions.endWorkflow, "endWorkflow"), l.Exit = new l(6, "Exit", o.customNodes.errorHandling.exit, "exit"), l.EndInQueueState = new l(7, "EndInQueueState", o.actions.endState, "endInQueueState", a(o.customNodes.errorHandling.errorHandlingEndInQueueStateDescription, o.periodicStateDisplayName)), l.EndFlow = new l(8, "EndFlow", o.customNodes.errorHandling.errorHandlingEndFlow, "endFlow", o.customNodes.errorHandling.errorHandlingEndFlowDescription), l.Continue = new l(0, "Continue", o.customNodes.errorHandling.errorHandlingContinue, "continue"), l.AbortSend = new l(9, "AbortSend", o.actions.abortSend, "abortSend"), l.CompleteSend = new l(10, "CompleteSend", o.actions.completeSend, "completeSend"), e2.exports = l; + }, 15321: (e2, t2, i2) => { + const n2 = i2(45214), r2 = i2(47957), o = i2(97591); + function a() { + Object.defineProperties(this, { _display: { writable: true } }), this.id = void 0, this.name = void 0, this.organization = void 0, a.baseConstructor.apply(this, arguments); + } + n2.extend(a, "AuditUser"), Object.defineProperties(a.prototype, { display: { get: function() { + return this.id === o.systemUser ? r2.user.system : this._display || this.name; + }, set: function(e3) { + this._display = e3; + } } }), e2.exports = a; + }, 15338: (e2, t2, i2) => { + const n2 = i2(92140), r2 = i2(45214), o = i2(67513); + function a(e3) { + const t3 = { title: "Variables", description: "The custom variables for this script", type: "object", properties: {} }; + return n2.each(e3, function(e4) { + t3.properties[e4.name] = { type: e4.type.name, description: e4.description, input: true, default: e4.value || "" }; + }), this.reviveItem(t3, o); + } + function s() { + this.id = void 0, this.name = void 0, this.variables = void 0, this.features = void 0, s.baseConstructor.apply(this, arguments); + } + r2.extend(s, "Script"), Object.defineProperties(s.prototype, { displayName: { get: function() { + return this.name; + }, set: function(e3) { + this.name = e3; + } }, inputs: { get: function() { + return this.variables; + } }, label: { get: function() { + return this.name; + }, set: function(e3) { + this.name = e3; + } }, schemas: { set: function(e3) { + e3 && e3.input && (n2.isArray(e3.input) ? this.variables = a.call(this, e3.input) : this.variables = this.reviveItem(e3.input, o)); + } } }), e2.exports = s; + }, 15364: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.DataPairList = void 0; + const n2 = i2(31635), r2 = i2(17604), o = n2.__importDefault(i2(92140)), a = n2.__importStar(i2(24032)), s = n2.__importStar(i2(81116)), l = n2.__importStar(i2(63352)), u = n2.__importStar(i2(8462)), d = i2(44703), c = n2.__importDefault(i2(34015)), p = i2(55909), _ = i2(33951), h = n2.__importDefault(i2(65302)), m = n2.__importDefault(i2(86833)), g = i2(90807), f = i2(7401), T = i2(47957).variable.duplicatedOutputVariableReference, y = a.getTopic("DataPairList"); + class S extends d.ExpressionContainer { + constructor(e3, t3, i3, n3, r3, o2) { + var a2, s2; + super(e3.parentFlow, e3, t3, r3, o2), this.allowSecure = !!n3, this.isInputList = i3, !(null === (s2 = null === (a2 = this.parentFlow) || void 0 === a2 ? void 0 : a2.definition) || void 0 === s2 ? void 0 : s2.supportsSecureVariables) || i3 || this.allowSecure || (this.allowSecure = true), this._initialize(); + } + _initialize() { + super._initialize(), this.items.forEach((e3) => { + e3.value.options.setAllowSecure(this.allowSecure), this.isInputList || e3.value.options.setAsOutput(); + }); + } + get isDataPairList() { + return true; + } + outOfServiceChanged() { + this.items.forEach((e3) => { + e3.value.outOfService = this.outOfService; + }); + } + get className() { + return S.className; + } + static get className() { + return "DataPairList"; + } + addClipboardDependencies(e3) { + o.default.each(this.items, function(t3) { + t3.addClipboardDependencies(e3); + }); + } + createFromVariable(e3, t3) { + let i3 = t3; + !i3 && this.isInputList && (i3 = e3.initValue); + const n3 = e3.type.createExpressionOptionClass(); + e3.facets && (n3.facets = e3.facets); + const r3 = new g({ name: e3.name, referenceId: e3.id }), o2 = this.createItem(r3, e3.type, i3, n3); + return this.isInputList || o2.value.setAsOutput(!!t3 && !t3.options.allowSecure), o2; + } + createItem(e3, t3, i3, n3, r3) { + _.ParameterValidator.expectString(r3, function() { + return p.ParameterInfo.createConstructorParameter(this.className, "itemValueSuffix"); + }.bind(this), true), (e3 = e3 && e3.isDataPair ? e3 : new g(e3)).value = e3.value || new f(); + const a2 = t3 || (e3 && e3.value ? e3.value.type : void 0); + if (n3 && n3.className || (n3 = this.options ? this.options.isBaseOptions && !this.options.isExpressionTypelessOptions ? this.options : u.buildOptions(a2, this.options, this.parentFlow) : u.buildOptions(a2, n3, this.parentFlow)), t3 || (t3 = h.default.resolveType(this.parentFlow, a2)), this.isInputList) { + let t4; + e3.referenceId && this.parent.getCachedServerPropertyById ? t4 = this.parent.getCachedServerPropertyById(e3.referenceId, false) : e3.name && this.parent.getCachedServerPropertyByName && (t4 = this.parent.getCachedServerPropertyByName(e3.name, false)), t4 && n3.setIsOptional(!t4.required); + } else n3.setIsOptional(true); + this.allowSecure && n3.setAllowSecure(true), n3.outOfService = this.outOfService; + const d2 = s.expression(this.parentFlow, this.parent, e3.value, this.getLabel(o.default.isUndefined(r3) ? (this.items.length + 1).toString() : r3, e3.name), t3, null, n3), m2 = new c.default(e3, t3, d2); + if (this.isInputList || m2.value.setAsOutput(!n3.allowSecure), i3 || o.default.isString(i3)) { + if (o.default.isArray(i3)) { + t3.isCollection || (y.warning("Initial value of array was used for non-collection type " + t3.expressionType), t3 = t3.collectionType); + const n4 = s.expression(this.parentFlow, this.parent, new f(), e3.name, t3, "", null); + n4.mode = l.literal, o.default.each(i3, (e4, t4) => { + n4.collectionItems.addItem(n4.collectionItems.createItem(new f(), null, null)), n4.collectionItems.items[t4].options.setCollectionItemFromCollectionOptions(n4.options), n4.collectionItems.items[t4].setText(e4); + }), i3 = n4; + } + i3.isLiteralMode && !m2.value.isCollectionExpression ? m2.value.setAsLiteral(i3.text) : i3.isExpressionMode || i3.isVariableMode ? m2.value.setAsExpression(i3.text) : i3.isNoValueMode || m2.value.options.allowModeLiteral && m2.value.setAsLiteral(i3), m2.value.mode = void 0 !== i3.mode ? i3.mode : m2.value.mode; + } + return m2.value.isNoValueMode && !m2.value.options.allowModeNoValue && m2.value.resetToDefaultValue(true), m2; + } + getLabel(e3, t3) { + return this.options && this.options.localizedLabelPrefix ? (0, r2.sprintf)(this.options.localizedLabelPrefix, e3) : t3; + } + getItem(e3) { + return o.default.findWhere(this.items, { name: e3 }); + } + validate(e3) { + super.validate(e3); + const t3 = this.items.filter((e4) => { + var t4; + return (null === (t4 = e4.value) || void 0 === t4 ? void 0 : t4.isOutput) && e4.value.variableReference; + }).map((e4) => e4.value); + o.default.uniq(t3.map((e4) => e4.variableReference.val)).forEach((e4) => { + const i3 = t3.find((t4) => t4.variableReference.val === e4); + t3.splice(t3.indexOf(i3), 1); + }), t3 && t3.forEach((t4) => { + t4.parentFlow.isAutomateFlowType ? m.default.addError(e3, t4, (0, r2.sprintf)(T, t4.variableReference.text)) : m.default.addWarning(e3, t4, (0, r2.sprintf)(T, t4.variableReference.text)); + }); + } + } + t2.DataPairList = S; + }, 15390: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(84655)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "group"; + } + get displayTypeName() { + return "ArchVariableGroup"; + } + get initialValue() { + return this._initialValue; + } + get isArchVariableGroup() { + return true; + } + } + t2.default = r2; + }, 15453: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = i2(26847), o = n2.__importDefault(i2(57382)); + class a extends o.default { + constructor(e3) { + super(e3); + } + get displayTypeName() { + return "ArchBaseActionWithOutputLoop"; + } + get isArchBaseActionWithOutputLoop() { + return true; + } + get outputLoop() { + return this._getOutputById(r2.outputIds.loop, true); + } + } + t2.default = a; + }, 15458: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importDefault(i2(92140)), o = n2.__importDefault(i2(67193)), a = n2.__importStar(i2(98442)), s = i2(30801), l = n2.__importDefault(i2(78432)), u = n2.__importDefault(i2(56549)), d = n2.__importDefault(i2(94225)), c = n2.__importDefault(i2(66978)), p = i2(80748); + class _ extends o.default { + constructor(e3) { + super(e3), this._calleeName = this.coreFactory.createArchWrapper(e3.calleeName), this._callbackNumbers = this.coreFactory.createArchWrapper(e3.callbackNumbers), this._targetQueue = this.coreFactory.createArchWrapper(e3.transferTargetQueue), this._targetGroup = this.coreFactory.createArchWrapper(e3.transferTargetGroup), this._targetUser = this.coreFactory.createArchWrapper(e3.transferTarget), this._voicemailGreeting = this.coreFactory.createArchWrapper(e3.voicemailGreeting); + } + get _actionTypeId() { + return s.transferVoicemailActionType; + } + _clearInputs() { + this._scriptInputs = void 0; + } + _getVoicemailTargetTransferType(e3) { + switch (e3) { + case l.default.VOICEMAIL_TRANSFER_TARGET_TYPES.user: + return p.User; + case l.default.VOICEMAIL_TRANSFER_TARGET_TYPES.queue: + return p.Queue; + case l.default.VOICEMAIL_TRANSFER_TARGET_TYPES.group: + return p.Group; + } + } + get calleeName() { + return this._calleeName; + } + get callbackNumber() { + return this.coreFactory.createArchWrapper(this._callbackNumbers._getCoreViewModel().items[0]); + } + get displayTypeName() { + return this._scriptingName; + } + get isArchActionTransferToVoicemail() { + return true; + } + get scriptInputs() { + return this._scriptInputs || (this._scriptInputs = this.coreFactory.createArchBaseValueContainer(this._getCoreViewModel().inputs)), this._scriptInputs; + } + setScriptByNameAsync(e3, t3) { + return this._checkItemIsValidLiteralString(this._infoParm("scriptName", "setScriptByNameAsync"), e3), this._checkItemIsValidFunction(this._infoParm("callbackFunction", "setScriptByNameAsync"), t3, true), u.default.findItemByValueAsync(this._getCoreViewModel().scriptManager, e3, "voicemail script").then(function(e4) { + return c.default.addPromise(this._getCoreViewModel().setScriptAsync(e4), "setScriptByNameAsync"); + }.bind(this)).then(function() { + return this._clearInputs(), d.default.executeCallback(this, "setScriptByNameAsync", t3, this); + }.bind(this)); + } + setScriptByIdAsync(e3, t3) { + return this._checkItemIsValidLiteralString(this._infoParm("scriptId", "setScriptByIdAsync"), e3), this._checkItemIsValidFunction(this._infoParm("callbackFunction", "setScriptByIdAsync"), t3, true), u.default.findItemByIdAsync(this._getCoreViewModel().scriptManager, e3, "voicemail script").then(function(e4) { + return c.default.addPromise(this._getCoreViewModel().setScriptAsync(e4), "setScriptByIdAsync"); + }.bind(this)).then(function() { + return this._clearInputs(), d.default.executeCallback(this, "setScriptByIdAsync", t3, this); + }.bind(this)); + } + setTargetQueueLiteralByQueueIdAsync(e3, t3) { + return this._checkItemIsValidLiteralString(this._infoParm("queueId", "setTargetQueueLiteralByQueueIdAsync"), e3), this._checkItemIsValidFunction(this._infoParm("callbackFunction", "setTargetQueueLiteralByQueueIdAsync"), t3, true), this._checkItem(this._infoMethod("setTargetQueueLiteralByQueueIdAsync"), this._getCoreViewModel().parentFlow.isInQueueCallFlow, "Unable to set the target queue when action is in an in-queue call flow."), this.transferTargetType = l.default.VOICEMAIL_TRANSFER_TARGET_TYPES.queue, this._targetQueue.setLiteralByQueueIdAsync(e3).then(function() { + return d.default.executeCallback(this, "setTargetQueueLiteralByQueueIdAsync", t3, this); + }.bind(this)); + } + setTargetQueueLiteralByQueueNameAsync(e3, t3) { + return this._checkItemIsValidLiteralString(this._infoParm("queueName", "setTargetQueueLiteralByQueueNameAsync"), e3), this._checkItemIsValidFunction(this._infoParm("callbackFunction", "setTargetQueueLiteralByQueueNameAsync"), t3, true), this._checkItem(this._infoMethod("setTargetQueueLiteralByQueueNameAsync"), this._getCoreViewModel().parentFlow.isInQueueCallFlow, "Unable to set the target queue when action is in an in-queue call flow."), this.transferTargetType = l.default.VOICEMAIL_TRANSFER_TARGET_TYPES.queue, this._targetQueue.setLiteralByQueueNameAsync(e3).then(function() { + return d.default.executeCallback(this, "setTargetQueueLiteralByQueueNameAsync", t3, this); + }.bind(this)); + } + setTargetGroupLiteralByGroupIdAsync(e3, t3) { + return this._checkItemIsValidLiteralString(this._infoParm("groupId", "setTargetGroupLiteralByGroupIdAsync"), e3), this._checkItemIsValidFunction(this._infoParm("callbackFunction", "setTargetGroupLiteralByGroupIdAsync"), t3, true), this.transferTargetType = l.default.VOICEMAIL_TRANSFER_TARGET_TYPES.group, this._targetGroup.setLiteralByGroupIdAsync(e3).then(() => d.default.executeCallback(this, "setTargetGroupLiteralByGroupIdAsync", t3, this)); + } + setTargetGroupLiteralByGroupNameAsync(e3, t3) { + return this._checkItemIsValidLiteralString(this._infoParm("groupName", "setTargetGroupLiteralByGroupNameAsync"), e3), this._checkItemIsValidFunction(this._infoParm("callbackFunction", "setTargetGroupLiteralByGroupNameAsync"), t3, true), this.transferTargetType = l.default.VOICEMAIL_TRANSFER_TARGET_TYPES.group, this._targetGroup.setLiteralByGroupNameAsync(e3).then(() => d.default.executeCallback(this, "setTargetGroupLiteralByGroupNameAsync", t3, this)); + } + setTargetUserLiteralByUserIdAsync(e3, t3) { + return this._checkItemIsValidLiteralString(this._infoParm("userId", "setUserTargetLiteralByUserIdAsync"), e3), this._checkItemIsValidFunction(this._infoParm("callbackFunction", "setTargetUserLiteralByUserIdAsync"), t3, true), this.transferTargetType = l.default.VOICEMAIL_TRANSFER_TARGET_TYPES.user, this._targetUser.setLiteralByUserIdAsync(e3).then(function() { + return d.default.executeCallback(this, "setTargetUserLiteralByUserNameAsync", t3, this); + }.bind(this)); + } + setTargetUserLiteralByUserNameAsync(e3, t3) { + return this._checkItemIsValidLiteralString(this._infoParm("userName", "setUserTargetLiteralByUserNameAsync"), e3), this._checkItemIsValidFunction(this._infoParm("callbackFunction", "setTargetUserLiteralByUserNameAsync"), t3, true), this.transferTargetType = l.default.VOICEMAIL_TRANSFER_TARGET_TYPES.user, this._targetUser.setLiteralByUserNameAsync(e3).then(function() { + return d.default.executeCallback(this, "setTargetUserLiteralByUserNameAsync", t3, this); + }.bind(this)); + } + get targetUser() { + return this._targetUser; + } + get targetQueue() { + return this._targetQueue; + } + get targetGroup() { + return this._targetGroup; + } + get transferTargetType() { + return r2.default.isObject(this._getCoreViewModel().transferTargetType) ? this._getCoreViewModel().transferTargetType.name : void 0; + } + set transferTargetType(e3) { + const t3 = this._infoPropSet("newTransferType", "transferTargetType"); + this._checkItemIsValidLiteralStringEnum(t3, e3, l.default.VOICEMAIL_TRANSFER_TARGET_TYPES_ALL), this._getCoreViewModel().transferTargetType = this._getVoicemailTargetTransferType(e3), this.logNote("transfer type set to '" + this._getCoreViewModel().transferTargetType.name + "'"); + } + isTargetTransferTypeAvailable(e3, t3) { + const i3 = this._infoPropSet("transferTargetType", "isTargetTransferTypeAvailable"); + this._checkItemIsValidLiteralStringEnum(i3, e3, l.default.VOICEMAIL_TRANSFER_TARGET_TYPES_ALL); + const n3 = this._infoPropSet("allowAnyLanguage", "isTargetTransferTypeAvailable"); + this._checkItemIsValidLiteralBool(n3, t3, true); + const r3 = this._getCoreViewModel().parentFlow, o2 = this._getVoicemailTargetTransferType(e3), s2 = (e4) => a.supportsVoicemailTypeForFlowType(e4.language, r3.type, o2); + return t3 ? r3.supportedLanguageOptions.some(s2) : r3.supportedLanguageOptions.every(s2); + } + get voicemailGreeting() { + return this._voicemailGreeting; + } + } + t2.default = _; + }, 15461: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = i2(38249), o = n2.__importDefault(i2(78432)), a = n2.__importDefault(i2(28326)), s = i2(50474); + class l extends a.default { + constructor(e3) { + super(e3), this._agentEscalationConfirmation = this.coreFactory.createArchWrapper(e3.agentEscalationConfirmation), this._agentEscalationHandover = this.coreFactory.createArchWrapper(e3.agentEscalationHandover), this._coreBotErrorHandlingSettingsViewModel = e3, this._enableAgentEscalation = this.coreFactory.createArchWrapper(e3.enableAgentEscalation), this._errorEventHandover = this.coreFactory.createArchWrapper(e3.errorEventHandover), this._recognitionFailureEventHandover = this.coreFactory.createArchWrapper(e3.recognitionEventHandover), this._subsequentRecognitionFailuresHandlingType = this.coreFactory.createArchWrapper(e3.subsequentRecognitionFailures); + } + get displayTypeName() { + return "ArchSettingsEventErrorFlowBot"; + } + get isArchSettingsEventErrorFlowBot() { + return true; + } + get agentEscalationConfirmation() { + return this._agentEscalationConfirmation; + } + get agentEscalationHandover() { + return this._agentEscalationHandover; + } + get enableAgentEscalation() { + return this._enableAgentEscalation; + } + get errorEventHandover() { + return this._errorEventHandover; + } + get recognitionFailureEventHandover() { + return this._recognitionFailureEventHandover; + } + get recognitionFailureEventHandling() { + return r2.archHandlingTypeConversion.getArchEnumHandlingForCoreHandling(this._coreBotErrorHandlingSettingsViewModel.recognitionHandlingType); + } + set recognitionFailureEventHandling(e3) { + const t3 = this._infoPropSet("newBotErrorEventHandlingTypeValue", "recognitionEventHandling"); + this._checkItemIsValidLiteralStringEnum(t3, e3, o.default.EVENTS_FLOW_ERROR_HANDLING_ALL), this._coreBotErrorHandlingSettingsViewModel.recognitionHandlingTypes.find((t4) => t4.scriptingName === e3) || this.logItemErrorAndThrow(t3, `the recognition handling type of '${e3}' is not available for the flow type '${this.parentFlow.flowType}'.`); + const i3 = r2.archHandlingTypeConversion.getCoreHandlingTypeForEnum(e3); + this.logNote(`setting the flow recognition error handling type to '${e3}'.`), this._coreBotErrorHandlingSettingsViewModel.recognitionHandlingType = i3; + } + get agentEscalationHandling() { + return r2.archHandlingTypeConversion.getArchEnumHandlingForCoreHandling(this._coreBotErrorHandlingSettingsViewModel.agentEscalationHandling.handlingType); + } + set agentEscalationHandling(e3) { + const t3 = this._infoPropSet("newBotErrorEventHandlingTypeValue", "agentEscalationHandling"); + this._checkItemIsValidLiteralStringEnum(t3, e3, o.default.EVENTS_FLOW_ERROR_HANDLING_ALL), this._coreBotErrorHandlingSettingsViewModel.agentEscalationHandling.handlingTypes.find((t4) => t4.scriptingName === e3) || this.logItemErrorAndThrow(t3, `the agent escalation handling type of '${e3}' is not available for the flow type '${this.parentFlow.flowType}'.`); + const i3 = r2.archHandlingTypeConversion.getCoreHandlingTypeForEnum(e3); + this.logNote(`setting the flow agent escalation error handling type to '${e3}'.`), this._coreBotErrorHandlingSettingsViewModel.agentEscalationHandling.handlingType = i3; + } + get recognitionFailureEventTargetTask() { + const e3 = this._coreBotErrorHandlingSettingsViewModel.parentFlow; + if (e3 && e3.tasks && e3.tasks.length) { + const t3 = e3.tasks.find((e4) => e4.id === this._coreBotErrorHandlingSettingsViewModel.recognitionEventTaskId); + if (t3) return this.coreFactory.createArchWrapper(t3); + } + } + set recognitionFailureEventTargetTask(e3) { + const t3 = this._infoPropSet("archTaskTarget", "recognitionFailureEventTargetTask"); + if (this.logNote(`recognitionFailureEventHandling: ${this.recognitionFailureEventHandling}`), this._checkItem(t3, "task" !== this.recognitionFailureEventHandling, 'the recognition event handling type must be set to "Jump to Reusable Task" to set the recognition event task path.'), !e3) return void this._coreBotErrorHandlingSettingsViewModel.recognitionEventTask.setReference(null); + this._checkItem(t3, !e3 || !e3.isArchTask, "the recognition event task path must be an ArchTask."); + const i3 = this._coreBotErrorHandlingSettingsViewModel.recognitionEventTask.getInvalidReferenceReason(e3.coreTaskViewModel); + this._checkItem(this._infoPropSet("archTaskTarget", "targetTask"), !(0, s.isNullOrUndefined)(i3), `targetTask is not valid as the recognition event task path: ${i3}`), this.logNote("setting the recognition event task path to " + e3.logStr), this._coreBotErrorHandlingSettingsViewModel.recognitionEventTask.setReference(e3.coreTaskViewModel); + } + get agentEscalationTargetTask() { + const e3 = this._coreBotErrorHandlingSettingsViewModel.parentFlow; + if (e3 && e3.tasks && e3.tasks.length) { + const t3 = e3.tasks.find((e4) => e4.id === this._coreBotErrorHandlingSettingsViewModel.agentEscalationTaskId); + if (t3) return this.coreFactory.createArchWrapper(t3); + } + } + set agentEscalationTargetTask(e3) { + const t3 = this._infoPropSet("archTaskTarget", "agentEscalationTargetTask"); + if (this.logNote(`agentEscalationHandling: ${this.agentEscalationHandling}`), this._checkItem(t3, "task" !== this.agentEscalationHandling, 'the agent escalation handling type must be set to "Jump to Reusable Task" to set the agent escalation task path.'), !e3) return void this._coreBotErrorHandlingSettingsViewModel.agentEscalationTask.setReference(null); + this._checkItem(t3, !e3 || !e3.isArchTask, "the agent escalation task path must be an ArchTask."); + const i3 = this._coreBotErrorHandlingSettingsViewModel.agentEscalationTask.getInvalidReferenceReason(e3.coreTaskViewModel); + this._checkItem(this._infoPropSet("archTaskTarget", "targetTask"), !(0, s.isNullOrUndefined)(i3), `targetTask is not valid as the agent escalation task path: ${i3}`), this.logNote("setting the agent escalation task path to " + e3.logStr), this._coreBotErrorHandlingSettingsViewModel.agentEscalationTask.setReference(e3.coreTaskViewModel); + } + get subsequentRecognitionFailuresHandlingType() { + return this._subsequentRecognitionFailuresHandlingType; + } + } + t2.default = l; + }, 15508: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importDefault(i2(92140)), o = n2.__importDefault(i2(73198)), a = n2.__importDefault(i2(74986)), s = i2(80295), l = i2(55909), u = i2(33951), d = i2(80428), c = n2.__importDefault(i2(65302)), p = i2(47957); + class _ extends a.default { + constructor() { + super(), this._disallowZero = false, (0, s.makeUnenumerable)(this, "_disallowZero"); + } + static createMinMax(e3, t3, i3, n3) { + const o2 = new _(); + return r2.default.isUndefined(e3) || o2.setMinInt(e3, true === t3), r2.default.isUndefined(i3) || o2.setMaxInt(i3, true === n3), o2; + } + _setFromFacets(e3) { + super._setFromFacets(e3), this._setFacetIfSet(() => this.setMaxInt(e3.maxVal, e3.maxValInclusive), e3.maxVal, "_maxVal"), this._setFacetIfSet(() => this.setMinInt(e3.minVal, e3.maxValInclusive), e3.minVal, "_minVal"), this._setFacetIfSet(this.setDisallowZero, e3.disallowZero, "_disallowZero"); + } + get className() { + return "IntegerFacets"; + } + get isIntegerFacets() { + return true; + } + addDescriptionInfo(e3, t3) { + super.addDescriptionInfo(e3, t3), true === this.disallowZero && t3.push(p.expressionsHelp.parameters.notAllowedZero); + } + get hasDescriptionInfo() { + return !!super.hasDescriptionInfo || this.disallowZero; + } + setMaxInt(e3, t3) { + if (!r2.default.isUndefined(e3)) { + const i3 = u.ParameterValidator.expectIntMoreThan(e3, this.minVal, () => l.ParameterInfo.createFunctionParameter(this.className, "setMaxInt", "maxInt")); + !r2.default.isUndefined(i3) && (t3 && i3 < o.default.maxInt || i3 < o.default.maxInt - 1) ? (this._maxVal = i3, r2.default.isUndefined(t3) || this.setMaxValInclusive(t3)) : this._maxVal = void 0; + } + return this; + } + setMinInt(e3, t3) { + if (!r2.default.isUndefined(e3)) { + const i3 = u.ParameterValidator.expectIntLessThan(e3, this.maxVal, () => l.ParameterInfo.createFunctionParameter(this.className, "setMinInt", "minInt")); + !r2.default.isUndefined(i3) && (t3 && i3 > o.default.minInt || i3 > o.default.minInt + 1) ? (this._minVal = i3, r2.default.isUndefined(t3) || this.setMinValInclusive(t3)) : this._minVal = void 0; + } + return this; + } + get disallowZero() { + return this._disallowZero; + } + set disallowZero(e3) { + this._disallowZero = u.ParameterValidator.expectBool(e3, () => l.ParameterInfo.createPropertySet(this.className, "disallowZero", "value")); + } + setDisallowZero(e3) { + return this.disallowZero = e3, this; + } + _facetGetExpressionItemLitValue(e3) { + return e3.getLitAsInt(); + } + _facetGetExpressionType() { + return c.default.getGlobalTypeGroup().getType(d.expressionTypeNames.integer, this.isCollection); + } + } + t2.default = _, n2.__decorate([(0, s.enumerable)(true), n2.__metadata("design:type", Boolean), n2.__metadata("design:paramtypes", [Object])], _.prototype, "disallowZero", null); + }, 15589: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(11210)), r2 = i2(30801); + class o extends n2.default { + constructor(e3) { + super(e3); + } + get _actionTypeId() { + return r2.flushAudioActionType; + } + get displayTypeName() { + return this._scriptingName; + } + get isArchActionFlushAudio() { + return true; + } + } + t2.default = o; + }, 15612: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(84655)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "listPickerItem"; + } + get displayTypeName() { + return "ArchVariableListPickerItem"; + } + get initialValue() { + return this._initialValue; + } + get isArchVariableListPickerItem() { + return true; + } + } + t2.default = r2; + }, 15655: (e2, t2, i2) => { + const n2 = i2(92140), { uuid: r2 } = i2(9456), o = i2(28730), a = i2(11475); + function s() { + Object.defineProperties(this, { _actionList: { writable: true }, _variables: { writable: true } }), this.startAction = void 0, s.baseConstructor.apply(this, arguments), this.id || (this.id = r2()); + } + i2(62229).extend(s, "BaseTask"), Object.defineProperties(s.prototype, { actionList: { enumerable: true, get: function() { + return this._actionList; + }, set: function(e3) { + this._actionList = this.reviveArray(e3, o); + } }, getUniqueNameSeed: { value: function() { + return this.name ? this.name + " %1$s" : "%1$s"; + } }, pasteResolveOldToNewValues: { value: function(e3) { + s._super.pasteResolveOldToNewValues.apply(this, arguments), n2.each(this.variables, function(t3) { + t3.pasteResolveOldToNewValues(e3); + }.bind(this)), n2.each(this.actionList, function(t3) { + t3.pasteResolveOldToNewValues(e3); + }.bind(this)), this.startAction = e3.pasteResolveOldIdToNewId(this.startAction); + } }, pasteReIdOrRename: { value: function(e3) { + s._super.pasteReIdOrRename.apply(this, arguments), n2.each(this.variables, function(t3) { + t3.pasteReIdOrRename(e3); + }.bind(this)), n2.each(this.actionList, function(t3) { + t3.pasteReIdOrRename(e3); + }.bind(this)); + } }, variables: { enumerable: true, get: function() { + return this._variables; + }, set: function(e3) { + this._variables = this.reviveArray(e3, a), this._variables.forEach((e4) => { + e4._wasRenamed && (e4.name = e4.name.replace("Flow", this._variableScope)); + }); + } } }), e2.exports = s; + }, 15659: (e2, t2, i2) => { + var n2 = i2(8156), r2 = {}; + for (var o in n2) n2.hasOwnProperty(o) && (r2[n2[o]] = o); + var a = e2.exports = { 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" }, lch: { channels: 3, labels: "lch" }, 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"] } }; + for (var s in a) if (a.hasOwnProperty(s)) { + if (!("channels" in a[s])) throw new Error("missing channels property: " + s); + if (!("labels" in a[s])) throw new Error("missing channel labels property: " + s); + if (a[s].labels.length !== a[s].channels) throw new Error("channel and label counts mismatch: " + s); + var l = a[s].channels, u = a[s].labels; + delete a[s].channels, delete a[s].labels, Object.defineProperty(a[s], "channels", { value: l }), Object.defineProperty(a[s], "labels", { value: u }); + } + function d(e3, t3) { + return Math.pow(e3[0] - t3[0], 2) + Math.pow(e3[1] - t3[1], 2) + Math.pow(e3[2] - t3[2], 2); + } + a.rgb.hsl = function(e3) { + var t3, i3, n3 = e3[0] / 255, r3 = e3[1] / 255, o2 = e3[2] / 255, a2 = Math.min(n3, r3, o2), s2 = Math.max(n3, r3, o2), l2 = s2 - a2; + return s2 === a2 ? t3 = 0 : n3 === s2 ? t3 = (r3 - o2) / l2 : r3 === s2 ? t3 = 2 + (o2 - n3) / l2 : o2 === s2 && (t3 = 4 + (n3 - r3) / l2), (t3 = Math.min(60 * t3, 360)) < 0 && (t3 += 360), i3 = (a2 + s2) / 2, [t3, 100 * (s2 === a2 ? 0 : i3 <= 0.5 ? l2 / (s2 + a2) : l2 / (2 - s2 - a2)), 100 * i3]; + }, a.rgb.hsv = function(e3) { + var t3, i3, n3, r3, o2, a2 = e3[0] / 255, s2 = e3[1] / 255, l2 = e3[2] / 255, u2 = Math.max(a2, s2, l2), d2 = u2 - Math.min(a2, s2, l2), c = function(e4) { + return (u2 - e4) / 6 / d2 + 0.5; + }; + return 0 === d2 ? r3 = o2 = 0 : (o2 = d2 / u2, t3 = c(a2), i3 = c(s2), n3 = c(l2), a2 === u2 ? r3 = n3 - i3 : s2 === u2 ? r3 = 1 / 3 + t3 - n3 : l2 === u2 && (r3 = 2 / 3 + i3 - t3), r3 < 0 ? r3 += 1 : r3 > 1 && (r3 -= 1)), [360 * r3, 100 * o2, 100 * u2]; + }, a.rgb.hwb = function(e3) { + var t3 = e3[0], i3 = e3[1], n3 = e3[2]; + return [a.rgb.hsl(e3)[0], 1 / 255 * Math.min(t3, Math.min(i3, n3)) * 100, 100 * (n3 = 1 - 1 / 255 * Math.max(t3, Math.max(i3, n3)))]; + }, a.rgb.cmyk = function(e3) { + var t3, i3 = e3[0] / 255, n3 = e3[1] / 255, r3 = e3[2] / 255; + return [100 * ((1 - i3 - (t3 = Math.min(1 - i3, 1 - n3, 1 - r3))) / (1 - t3) || 0), 100 * ((1 - n3 - t3) / (1 - t3) || 0), 100 * ((1 - r3 - t3) / (1 - t3) || 0), 100 * t3]; + }, a.rgb.keyword = function(e3) { + var t3 = r2[e3]; + if (t3) return t3; + var i3, o2 = 1 / 0; + for (var a2 in n2) if (n2.hasOwnProperty(a2)) { + var s2 = d(e3, n2[a2]); + s2 < o2 && (o2 = s2, i3 = a2); + } + return i3; + }, a.keyword.rgb = function(e3) { + return n2[e3]; + }, a.rgb.xyz = function(e3) { + var t3 = e3[0] / 255, i3 = e3[1] / 255, n3 = e3[2] / 255; + return [100 * (0.4124 * (t3 = t3 > 0.04045 ? Math.pow((t3 + 0.055) / 1.055, 2.4) : t3 / 12.92) + 0.3576 * (i3 = i3 > 0.04045 ? Math.pow((i3 + 0.055) / 1.055, 2.4) : i3 / 12.92) + 0.1805 * (n3 = n3 > 0.04045 ? Math.pow((n3 + 0.055) / 1.055, 2.4) : n3 / 12.92)), 100 * (0.2126 * t3 + 0.7152 * i3 + 0.0722 * n3), 100 * (0.0193 * t3 + 0.1192 * i3 + 0.9505 * n3)]; + }, a.rgb.lab = function(e3) { + var t3 = a.rgb.xyz(e3), i3 = t3[0], n3 = t3[1], r3 = t3[2]; + return n3 /= 100, r3 /= 108.883, i3 = (i3 /= 95.047) > 8856e-6 ? Math.pow(i3, 1 / 3) : 7.787 * i3 + 16 / 116, [116 * (n3 = n3 > 8856e-6 ? Math.pow(n3, 1 / 3) : 7.787 * n3 + 16 / 116) - 16, 500 * (i3 - n3), 200 * (n3 - (r3 = r3 > 8856e-6 ? Math.pow(r3, 1 / 3) : 7.787 * r3 + 16 / 116))]; + }, a.hsl.rgb = function(e3) { + var t3, i3, n3, r3, o2, a2 = e3[0] / 360, s2 = e3[1] / 100, l2 = e3[2] / 100; + if (0 === s2) return [o2 = 255 * l2, o2, o2]; + t3 = 2 * l2 - (i3 = l2 < 0.5 ? l2 * (1 + s2) : l2 + s2 - l2 * s2), r3 = [0, 0, 0]; + for (var u2 = 0; u2 < 3; u2++) (n3 = a2 + 1 / 3 * -(u2 - 1)) < 0 && n3++, n3 > 1 && n3--, o2 = 6 * n3 < 1 ? t3 + 6 * (i3 - t3) * n3 : 2 * n3 < 1 ? i3 : 3 * n3 < 2 ? t3 + (i3 - t3) * (2 / 3 - n3) * 6 : t3, r3[u2] = 255 * o2; + return r3; + }, a.hsl.hsv = function(e3) { + var t3 = e3[0], i3 = e3[1] / 100, n3 = e3[2] / 100, r3 = i3, o2 = Math.max(n3, 0.01); + return i3 *= (n3 *= 2) <= 1 ? n3 : 2 - n3, r3 *= o2 <= 1 ? o2 : 2 - o2, [t3, 100 * (0 === n3 ? 2 * r3 / (o2 + r3) : 2 * i3 / (n3 + i3)), (n3 + i3) / 2 * 100]; + }, a.hsv.rgb = function(e3) { + var t3 = e3[0] / 60, i3 = e3[1] / 100, n3 = e3[2] / 100, r3 = Math.floor(t3) % 6, o2 = t3 - Math.floor(t3), a2 = 255 * n3 * (1 - i3), s2 = 255 * n3 * (1 - i3 * o2), l2 = 255 * n3 * (1 - i3 * (1 - o2)); + switch (n3 *= 255, r3) { + case 0: + return [n3, l2, a2]; + case 1: + return [s2, n3, a2]; + case 2: + return [a2, n3, l2]; + case 3: + return [a2, s2, n3]; + case 4: + return [l2, a2, n3]; + case 5: + return [n3, a2, s2]; + } + }, a.hsv.hsl = function(e3) { + var t3, i3, n3, r3 = e3[0], o2 = e3[1] / 100, a2 = e3[2] / 100, s2 = Math.max(a2, 0.01); + return n3 = (2 - o2) * a2, i3 = o2 * s2, [r3, 100 * (i3 = (i3 /= (t3 = (2 - o2) * s2) <= 1 ? t3 : 2 - t3) || 0), 100 * (n3 /= 2)]; + }, a.hwb.rgb = function(e3) { + var t3, i3, n3, r3, o2, a2, s2, l2 = e3[0] / 360, u2 = e3[1] / 100, d2 = e3[2] / 100, c = u2 + d2; + switch (c > 1 && (u2 /= c, d2 /= c), n3 = 6 * l2 - (t3 = Math.floor(6 * l2)), 1 & t3 && (n3 = 1 - n3), r3 = u2 + n3 * ((i3 = 1 - d2) - u2), t3) { + default: + case 6: + case 0: + o2 = i3, a2 = r3, s2 = u2; + break; + case 1: + o2 = r3, a2 = i3, s2 = u2; + break; + case 2: + o2 = u2, a2 = i3, s2 = r3; + break; + case 3: + o2 = u2, a2 = r3, s2 = i3; + break; + case 4: + o2 = r3, a2 = u2, s2 = i3; + break; + case 5: + o2 = i3, a2 = u2, s2 = r3; + } + return [255 * o2, 255 * a2, 255 * s2]; + }, a.cmyk.rgb = function(e3) { + var t3 = e3[0] / 100, i3 = e3[1] / 100, n3 = e3[2] / 100, r3 = e3[3] / 100; + return [255 * (1 - Math.min(1, t3 * (1 - r3) + r3)), 255 * (1 - Math.min(1, i3 * (1 - r3) + r3)), 255 * (1 - Math.min(1, n3 * (1 - r3) + r3))]; + }, a.xyz.rgb = function(e3) { + var t3, i3, n3, r3 = e3[0] / 100, o2 = e3[1] / 100, a2 = e3[2] / 100; + return i3 = -0.9689 * r3 + 1.8758 * o2 + 0.0415 * a2, n3 = 0.0557 * r3 + -0.204 * o2 + 1.057 * a2, t3 = (t3 = 3.2406 * r3 + -1.5372 * o2 + -0.4986 * a2) > 31308e-7 ? 1.055 * Math.pow(t3, 1 / 2.4) - 0.055 : 12.92 * t3, i3 = i3 > 31308e-7 ? 1.055 * Math.pow(i3, 1 / 2.4) - 0.055 : 12.92 * i3, n3 = n3 > 31308e-7 ? 1.055 * Math.pow(n3, 1 / 2.4) - 0.055 : 12.92 * n3, [255 * (t3 = Math.min(Math.max(0, t3), 1)), 255 * (i3 = Math.min(Math.max(0, i3), 1)), 255 * (n3 = Math.min(Math.max(0, n3), 1))]; + }, a.xyz.lab = function(e3) { + var t3 = e3[0], i3 = e3[1], n3 = e3[2]; + return i3 /= 100, n3 /= 108.883, t3 = (t3 /= 95.047) > 8856e-6 ? Math.pow(t3, 1 / 3) : 7.787 * t3 + 16 / 116, [116 * (i3 = i3 > 8856e-6 ? Math.pow(i3, 1 / 3) : 7.787 * i3 + 16 / 116) - 16, 500 * (t3 - i3), 200 * (i3 - (n3 = n3 > 8856e-6 ? Math.pow(n3, 1 / 3) : 7.787 * n3 + 16 / 116))]; + }, a.lab.xyz = function(e3) { + var t3, i3, n3, r3 = e3[0]; + t3 = e3[1] / 500 + (i3 = (r3 + 16) / 116), n3 = i3 - e3[2] / 200; + var o2 = Math.pow(i3, 3), a2 = Math.pow(t3, 3), s2 = Math.pow(n3, 3); + return i3 = o2 > 8856e-6 ? o2 : (i3 - 16 / 116) / 7.787, t3 = a2 > 8856e-6 ? a2 : (t3 - 16 / 116) / 7.787, n3 = s2 > 8856e-6 ? s2 : (n3 - 16 / 116) / 7.787, [t3 *= 95.047, i3 *= 100, n3 *= 108.883]; + }, a.lab.lch = function(e3) { + var t3, i3 = e3[0], n3 = e3[1], r3 = e3[2]; + return (t3 = 360 * Math.atan2(r3, n3) / 2 / Math.PI) < 0 && (t3 += 360), [i3, Math.sqrt(n3 * n3 + r3 * r3), t3]; + }, a.lch.lab = function(e3) { + var t3, i3 = e3[0], n3 = e3[1]; + return t3 = e3[2] / 360 * 2 * Math.PI, [i3, n3 * Math.cos(t3), n3 * Math.sin(t3)]; + }, a.rgb.ansi16 = function(e3) { + var t3 = e3[0], i3 = e3[1], n3 = e3[2], r3 = 1 in arguments ? arguments[1] : a.rgb.hsv(e3)[2]; + if (0 === (r3 = Math.round(r3 / 50))) return 30; + var o2 = 30 + (Math.round(n3 / 255) << 2 | Math.round(i3 / 255) << 1 | Math.round(t3 / 255)); + return 2 === r3 && (o2 += 60), o2; + }, a.hsv.ansi16 = function(e3) { + return a.rgb.ansi16(a.hsv.rgb(e3), e3[2]); + }, a.rgb.ansi256 = function(e3) { + var t3 = e3[0], i3 = e3[1], n3 = e3[2]; + return t3 === i3 && i3 === n3 ? t3 < 8 ? 16 : t3 > 248 ? 231 : Math.round((t3 - 8) / 247 * 24) + 232 : 16 + 36 * Math.round(t3 / 255 * 5) + 6 * Math.round(i3 / 255 * 5) + Math.round(n3 / 255 * 5); + }, a.ansi16.rgb = function(e3) { + var t3 = e3 % 10; + if (0 === t3 || 7 === t3) return e3 > 50 && (t3 += 3.5), [t3 = t3 / 10.5 * 255, t3, t3]; + var i3 = 0.5 * (1 + ~~(e3 > 50)); + return [(1 & t3) * i3 * 255, (t3 >> 1 & 1) * i3 * 255, (t3 >> 2 & 1) * i3 * 255]; + }, a.ansi256.rgb = function(e3) { + if (e3 >= 232) { + var t3 = 10 * (e3 - 232) + 8; + return [t3, t3, t3]; + } + var i3; + return e3 -= 16, [Math.floor(e3 / 36) / 5 * 255, Math.floor((i3 = e3 % 36) / 6) / 5 * 255, i3 % 6 / 5 * 255]; + }, a.rgb.hex = function(e3) { + var t3 = (((255 & Math.round(e3[0])) << 16) + ((255 & Math.round(e3[1])) << 8) + (255 & Math.round(e3[2]))).toString(16).toUpperCase(); + return "000000".substring(t3.length) + t3; + }, a.hex.rgb = function(e3) { + var t3 = e3.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i); + if (!t3) return [0, 0, 0]; + var i3 = t3[0]; + 3 === t3[0].length && (i3 = i3.split("").map(function(e4) { + return e4 + e4; + }).join("")); + var n3 = parseInt(i3, 16); + return [n3 >> 16 & 255, n3 >> 8 & 255, 255 & n3]; + }, a.rgb.hcg = function(e3) { + var t3, i3 = e3[0] / 255, n3 = e3[1] / 255, r3 = e3[2] / 255, o2 = Math.max(Math.max(i3, n3), r3), a2 = Math.min(Math.min(i3, n3), r3), s2 = o2 - a2; + return t3 = s2 <= 0 ? 0 : o2 === i3 ? (n3 - r3) / s2 % 6 : o2 === n3 ? 2 + (r3 - i3) / s2 : 4 + (i3 - n3) / s2 + 4, t3 /= 6, [360 * (t3 %= 1), 100 * s2, 100 * (s2 < 1 ? a2 / (1 - s2) : 0)]; + }, a.hsl.hcg = function(e3) { + var t3, i3 = e3[1] / 100, n3 = e3[2] / 100, r3 = 0; + return (t3 = n3 < 0.5 ? 2 * i3 * n3 : 2 * i3 * (1 - n3)) < 1 && (r3 = (n3 - 0.5 * t3) / (1 - t3)), [e3[0], 100 * t3, 100 * r3]; + }, a.hsv.hcg = function(e3) { + var t3 = e3[1] / 100, i3 = e3[2] / 100, n3 = t3 * i3, r3 = 0; + return n3 < 1 && (r3 = (i3 - n3) / (1 - n3)), [e3[0], 100 * n3, 100 * r3]; + }, a.hcg.rgb = function(e3) { + var t3 = e3[0] / 360, i3 = e3[1] / 100, n3 = e3[2] / 100; + if (0 === i3) return [255 * n3, 255 * n3, 255 * n3]; + var r3, o2 = [0, 0, 0], a2 = t3 % 1 * 6, s2 = a2 % 1, l2 = 1 - s2; + switch (Math.floor(a2)) { + case 0: + o2[0] = 1, o2[1] = s2, o2[2] = 0; + break; + case 1: + o2[0] = l2, o2[1] = 1, o2[2] = 0; + break; + case 2: + o2[0] = 0, o2[1] = 1, o2[2] = s2; + break; + case 3: + o2[0] = 0, o2[1] = l2, o2[2] = 1; + break; + case 4: + o2[0] = s2, o2[1] = 0, o2[2] = 1; + break; + default: + o2[0] = 1, o2[1] = 0, o2[2] = l2; + } + return r3 = (1 - i3) * n3, [255 * (i3 * o2[0] + r3), 255 * (i3 * o2[1] + r3), 255 * (i3 * o2[2] + r3)]; + }, a.hcg.hsv = function(e3) { + var t3 = e3[1] / 100, i3 = t3 + e3[2] / 100 * (1 - t3), n3 = 0; + return i3 > 0 && (n3 = t3 / i3), [e3[0], 100 * n3, 100 * i3]; + }, a.hcg.hsl = function(e3) { + var t3 = e3[1] / 100, i3 = e3[2] / 100 * (1 - t3) + 0.5 * t3, n3 = 0; + return i3 > 0 && i3 < 0.5 ? n3 = t3 / (2 * i3) : i3 >= 0.5 && i3 < 1 && (n3 = t3 / (2 * (1 - i3))), [e3[0], 100 * n3, 100 * i3]; + }, a.hcg.hwb = function(e3) { + var t3 = e3[1] / 100, i3 = t3 + e3[2] / 100 * (1 - t3); + return [e3[0], 100 * (i3 - t3), 100 * (1 - i3)]; + }, a.hwb.hcg = function(e3) { + var t3 = e3[1] / 100, i3 = 1 - e3[2] / 100, n3 = i3 - t3, r3 = 0; + return n3 < 1 && (r3 = (i3 - n3) / (1 - n3)), [e3[0], 100 * n3, 100 * r3]; + }, a.apple.rgb = function(e3) { + return [e3[0] / 65535 * 255, e3[1] / 65535 * 255, e3[2] / 65535 * 255]; + }, a.rgb.apple = function(e3) { + return [e3[0] / 255 * 65535, e3[1] / 255 * 65535, e3[2] / 255 * 65535]; + }, a.gray.rgb = function(e3) { + return [e3[0] / 100 * 255, e3[0] / 100 * 255, e3[0] / 100 * 255]; + }, a.gray.hsl = a.gray.hsv = function(e3) { + return [0, 0, e3[0]]; + }, a.gray.hwb = function(e3) { + return [0, 100, e3[0]]; + }, a.gray.cmyk = function(e3) { + return [0, 0, 0, e3[0]]; + }, a.gray.lab = function(e3) { + return [e3[0], 0, 0]; + }, a.gray.hex = function(e3) { + var t3 = 255 & Math.round(e3[0] / 100 * 255), i3 = ((t3 << 16) + (t3 << 8) + t3).toString(16).toUpperCase(); + return "000000".substring(i3.length) + i3; + }, a.rgb.gray = function(e3) { + return [(e3[0] + e3[1] + e3[2]) / 3 / 255 * 100]; + }; + }, 15717: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.outputModesAll = t2.outputModeText = t2.outputModeVoice = void 0, t2.getOutputModeForOutputModeId = function(e3) { + if (e3.length) return o[e3.toLowerCase()]; + }; + const n2 = i2(31635).__importDefault(i2(13446)), r2 = i2(47957), o = {}, a = (e3, t3) => o[e3] = n2.default.create(e3, t3); + t2.outputModeVoice = a("voice", r2.outputModes.voice), t2.outputModeText = a("text", r2.outputModes.text), t2.outputModesAll = Object.values(o); + }, 15721: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.repromptHandlingOptions = t2.manual = t2.aiManaged = void 0; + const n2 = i2(47957); + t2.aiManaged = { displayString: n2.askForSlot.repromptHandlingOptions.repromptHandlingOptionAIManaged, id: "aiManaged" }, t2.manual = { displayString: n2.askForSlot.repromptHandlingOptions.repromptHandlingOptionManuallyManaged, id: "manual" }, t2.repromptHandlingOptions = [t2.aiManaged, t2.manual]; + }, 15745: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importDefault(i2(92140)), o = i2(30801), a = n2.__importDefault(i2(94225)), s = n2.__importDefault(i2(42175)); + class l extends s.default { + constructor(e3) { + super(e3), this._audio = this.coreFactory.createArchAudio(e3.prompts), this._coreMenuViewModel = e3, this._menuSettings = this.coreFactory.createArchWrapper(e3.menuSettings), this._speechRecSettings = this.coreFactory.createArchWrapper(e3.speechRecSettings); + } + get _actionTypeId() { + return o.menuActionType; + } + get childMenus() { + const e3 = []; + return r2.default.each(this._coreMenuViewModel.choices, (t3) => { + e3.push(this.coreFactory.createArchWrapper(t3)); + }), e3; + } + get displayTypeName() { + return "ArchMenu"; + } + get logStr() { + if (!this._coreMenuViewModel) return this.logStrTypeOnly; + const e3 = []; + return this._appendLogStrTrackingIdNameType(e3, this.trackingId, this.name, this.displayTypeName), this._createLogStrFromParts(e3); + } + get menuDefault() { + const e3 = this._getCoreViewModel().defaultMenuChoice; + if (e3) { + const t3 = r2.default.find(this._getCoreViewModel().choices, (t4) => t4.id === e3); + if (t3) return this.coreFactory.createArchWrapper(t3); + } + } + set menuDefault(e3) { + let t3, i3 = "no default menu choice"; + if (!r2.default.isUndefined(e3) && null !== e3) { + const n3 = this._infoPropSet("newValue", "menuDefault"); + this._checkItem(n3, !e3.isArchBaseMenuChoice, "The parameter value must be an ArchBaseMenuChoice instance."), t3 = this._findCoreMenuChoiceById(e3.id), this._checkItem(n3, !t3, `The menu choice ${e3.logStr} is not a child of this menu and cannot be set to the default menu choice.`), i3 = e3.logStr; + } + this._getCoreViewModel().defaultMenuChoice = t3 ? t3.id : null, this.logNote(`default menu choice set to ${i3}`); + } + get audio() { + return this._audio; + } + get isArchMenu() { + return true; + } + get isReusableMenu() { + return this._getCoreViewModel().id !== this._coreMenuViewModel.parentFlow.initialSequence && !this._coreMenuViewModel.isHidden; + } + get name() { + return this._coreMenuViewModel.name; + } + set name(e3) { + if (!e3) throw "you cannot have a blank name set on a menu"; + this._coreMenuViewModel.name = e3, this._coreMenuViewModel.nameFacetError && this.logErrorAndThrow(this._coreMenuViewModel.nameFacetError); + } + get parentFlow() { + return this.coreFactory.createArchWrapper(this._coreMenuViewModel.parentFlow); + } + get settingsMenu() { + return this._menuSettings; + } + get settingsSpeechRec() { + return this._speechRecSettings; + } + get trackingId() { + return this._coreMenuViewModel.trackingId; + } + set trackingId(e3) { + const t3 = this._infoPropSet("value", "trackingId"); + this._ensureCanSetTrackingIds(t3, a.default, e3); + const i3 = this._getCoreViewModel(), n3 = i3.trackingId; + n3 !== e3 && (i3.trackingId = e3, this.logItemVerboseNote(t3, `updated tracking ID from ${n3} to ${i3.trackingId}.`)); + } + } + t2.default = l; + }, 15777: (e2, t2, i2) => { + "use strict"; + var n2; + Object.defineProperty(t2, "__esModule", { value: true }); + const r2 = i2(31635), o = i2(17604), a = r2.__importDefault(i2(92140)), s = i2(24032), l = i2(55299), u = i2(80295), d = i2(62297), c = i2(47957), p = (0, s.getTopic)("VoiceViewModel"); + class _ extends l.BaseClass { + constructor(e3, t3, i3) { + super(), this._noLanguageErrorTraced = false, this._model = e3, this._engine = i3; + let n3 = t3; + n3 && !t3.includes(i3.id + "/") && (n3 = i3.getDependencyTrackingIdForVoice(t3)), this.id = n3, this._updateCachedValues(); + } + get engine() { + return this._engine; + } + _traceNoLanguageError() { + this._noLanguageErrorTraced || (p.error(`Language tag not set on voice with ID '${this.id}'`), this._noLanguageErrorTraced = true); + } + _updateCacheLanguage() { + var e3; + this._lowerLanguage = this.language ? this.language.toLocaleLowerCase() : this.language, this._languageNoRegion = null === (e3 = this._lowerLanguage) || void 0 === e3 ? void 0 : e3.split("-")[0]; + } + _updateCacheName() { + this._lowerName = this.name ? this.name.toLocaleLowerCase() : this.name; + } + _updateCachedValues() { + this._updateCacheLanguage(), this._updateCacheName(), delete this._genderForDisplay, delete this._flexibleTTSLabel; + } + get className() { + return "VoiceViewModel"; + } + get description() { + return (0, o.sprintf)(c.textToSpeech.voiceDescription, this.language, this.genderForDisplay); + } + get isDefault() { + return this._model.isDefault; + } + set isDefault(e3) { + this._model.isDefault = !!e3; + } + get isVoiceViewModel() { + return true; + } + get language() { + return this._model.language; + } + set language(e3) { + this._model.language = e3, this._updateCacheLanguage(); + } + get lowerLanguage() { + return this._lowerLanguage; + } + get name() { + return this._model.name; + } + set name(e3) { + this._model.name = e3, this._updateCacheName(); + } + get lowerName() { + return this._lowerName; + } + get gender() { + return this._model.gender; + } + set gender(e3) { + this._model.gender = e3; + } + get genderForDisplay() { + return this._genderForDisplay || (this.gender ? this._genderForDisplay = c.textToSpeech.genders[this.gender] || this.gender : this._genderForDisplay = c.textToSpeech.genders.unspecified), this._genderForDisplay; + } + get flexibleTTSLabel() { + return this._flexibleTTSLabel || (this._flexibleTTSLabel = this.name, this._lowerName.includes(this.lowerLanguage) || this._lowerName.match(/^\S{2,3}-\S{2,3}-/) || (this._flexibleTTSLabel = `${this.lowerLanguage}, ${this.name}`)), this._flexibleTTSLabel; + } + setLanguage(e3, t3) { + this.language = e3, this.isDefault = t3; + } + getIsVoiceDefaultForLanguage(e3) { + return this.isDefault && this.getVoiceSupportsLanguage(e3); + } + getVoiceSupportsLanguage(e3, t3) { + return !!a.default.isString(e3) && (this._lowerLanguage ? this._lowerLanguage === (t3 ? e3 : e3.toLocaleLowerCase()) : (this._traceNoLanguageError(), false)); + } + getVoiceSupportsLanguageNoRegion(e3) { + return !!a.default.isString(e3) && (this._languageNoRegion ? this._languageNoRegion === e3 : (this._traceNoLanguageError(), false)); + } + updateItem(e3) { + e3 && (this.gender = e3.gender, this.isDefault = e3.isDefault, this.language = e3.language, this.name = e3.name); + } + } + r2.__decorate([(0, u.enumerable)(false), r2.__metadata("design:type", "function" == typeof (n2 = void 0 !== d.EngineViewModel && d.EngineViewModel) ? n2 : Object), r2.__metadata("design:paramtypes", [])], _.prototype, "engine", null), t2.default = _; + }, 15786: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.OptionSettingWithFlowTypes = void 0; + const n2 = i2(31635).__importDefault(i2(92140)), r2 = i2(80295), o = i2(33296), a = i2(55909), s = i2(33951), l = "anyNonSpecificFlowType"; + class u extends o.BaseOptionSetting { + constructor() { + super(), this._flowTypeToValue = {}, (0, r2.makeUnenumerable)(this, "_flowTypeToValue"); + } + get className() { + return "OptionSettingWithFlowTypes"; + } + clone() { + const e3 = super.clone(); + return this.copyValuesTo(e3), e3; + } + copyValuesTo(e3) { + n2.default.each(this._flowTypeToValue, function(t3, i3) { + i3 === l ? e3.setValueForAllFlowTypes(t3) : e3.setValueForFlowType(t3, i3); + }); + } + getValueForFlowType(e3) { + return s.ParameterValidator.expectFlowType(e3, () => a.ParameterInfo.createPropertySet(this.className, "getValueForFlowType", "flowType"), true), n2.default.has(this._flowTypeToValue, e3) ? this._flowTypeToValue[e3] : n2.default.has(this._flowTypeToValue, l) ? this._flowTypeToValue[l] : void 0; + } + setValueForAllFlowTypes(e3) { + this.setValueForFlowType(e3); + } + setValueForFlowType(e3, t3) { + s.ParameterValidator.expectFlowType(t3, () => a.ParameterInfo.createFunctionParameter(this.className, "setValueForFlowType", "flowType"), true), this._flowTypeToValue[n2.default.isString(t3) ? t3 : l] = e3; + } + setValueForFlowTypeOrTypes(e3, t3) { + s.ParameterValidator.expectArrayOrString(t3, () => a.ParameterInfo.createFunctionParameter(this.className, "setValueForFlowTypeOrTypes", "flowTypeOrTypes"), true), n2.default.isArray(t3) ? this.setValueForFlowTypes(e3, t3) : this.setValueForFlowType(e3, t3); + } + setValueForFlowTypes(e3, t3) { + s.ParameterValidator.expectArray(t3, () => a.ParameterInfo.createFunctionParameter(this.className, "setValueForFlowTypes", "flowTypes"), true), n2.default.isArray(t3) && !n2.default.isEmpty(t3) ? n2.default.each(t3, function(t4) { + this.setValueForFlowType(e3, t4); + }.bind(this)) : this.setValueForAllFlowTypes(e3); + } + } + t2.OptionSettingWithFlowTypes = u; + }, 15787: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.voiceSurveyFlowListManager = t2.VoiceSurveyFlowListManager = void 0; + const n2 = i2(31635).__importStar(i2(24032)), r2 = i2(21706), o = i2(6109), a = i2(96618), s = i2(27862); + class l extends o.FlowListManager { + get dependencyType() { + return s.VoiceSurveyFlow; + } + constructor() { + super(), this.topic = n2.getTopic("VoiceSurveyFlowListManager"), this.briefManager = r2.briefVoiceSurveyFlowListManager, this.additionalQueryParams = { type: a.flowTypes.flowTypeVoiceSurvey }, this.className = "VoiceSurveyFlowListManager", this.flowType = a.flowTypes.flowTypeVoiceSurvey, this._rawServerCache = {}, this._initialize(); + } + } + t2.VoiceSurveyFlowListManager = l, t2.voiceSurveyFlowListManager = new l(); + }, 15797: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.getUtilizationLabels = a, t2.getUtilizationLabel = s, t2.deleteUtilizationLabel = l, t2.createUtilizationLabel = u; + const n2 = i2(31635), r2 = n2.__importDefault(i2(36019)), o = n2.__importStar(i2(51724)); + function a(e3) { + const t3 = r2.default.build(o.getUtilizationLabels); + return t3.queryParams({ name: e3.searchTerm, pageSize: e3.defaultPageSize, sortOrder: e3.sortOrder, pageNumber: e3.pageNumber }), t3.call(); + } + function s(e3) { + return r2.default.build(o.getUtilizationLabel).templateParams({ id: e3 }).call(); + } + function l(e3) { + return r2.default.build(o.deleteUtilizationLabel).templateParams({ id: e3 }).call(); + } + function u() { + return r2.default.build(o.createUtilizationLabel).call(); + } + a.api = o.getUtilizationLabels, s.api = o.getUtilizationLabel, l.api = o.deleteUtilizationLabel, u.api = o.createUtilizationLabel; + }, 15810: (e2, t2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.createObject = void 0, t2.createObject = function(e3, t3) { + return e3.reduce(function(e4, i2, n2) { + return e4[i2] = t3[n2], e4; + }, {}); + }; + }, 15887: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.animationFrame = t2.animationFrameScheduler = void 0; + var n2 = i2(6757), r2 = i2(74478); + t2.animationFrameScheduler = new r2.AnimationFrameScheduler(n2.AnimationFrameAction), t2.animationFrame = t2.animationFrameScheduler; + }, 15893: (e2, t2, i2) => { + function n2() { + n2.baseConstructor.apply(this, arguments); + } + i2(11475).extend(n2, "ImageVariable", true), Object.defineProperties(n2.prototype, { typeIdentifier: { writable: true } }), e2.exports = n2; + }, 15896: (e2, t2, i2) => { + "use strict"; + const n2 = i2(52834), r2 = i2(94083), o = i2(27687).stdout, a = i2(16791), s = "win32" === process.platform && !(process.env.TERM || "").toLowerCase().startsWith("xterm"), l = ["ansi", "ansi", "ansi256", "ansi16m"], u = /* @__PURE__ */ new Set(["gray"]), d = /* @__PURE__ */ Object.create(null); + function c(e3, t3) { + t3 = t3 || {}; + const i3 = o ? o.level : 0; + e3.level = void 0 === t3.level ? i3 : t3.level, e3.enabled = "enabled" in t3 ? t3.enabled : e3.level > 0; + } + function p(e3) { + if (!this || !(this instanceof p) || this.template) { + const t3 = {}; + return c(t3, e3), t3.template = function() { + const e4 = [].slice.call(arguments); + return g.apply(null, [t3.template].concat(e4)); + }, Object.setPrototypeOf(t3, p.prototype), Object.setPrototypeOf(t3.template, t3), t3.template.constructor = p, t3.template; + } + c(this, e3); + } + s && (r2.blue.open = "\x1B[94m"); + for (const e3 of Object.keys(r2)) r2[e3].closeRe = new RegExp(n2(r2[e3].close), "g"), d[e3] = { get() { + const t3 = r2[e3]; + return h.call(this, this._styles ? this._styles.concat(t3) : [t3], this._empty, e3); + } }; + d.visible = { get() { + return h.call(this, this._styles || [], true, "visible"); + } }, r2.color.closeRe = new RegExp(n2(r2.color.close), "g"); + for (const e3 of Object.keys(r2.color.ansi)) u.has(e3) || (d[e3] = { get() { + const t3 = this.level; + return function() { + const i3 = { open: r2.color[l[t3]][e3].apply(null, arguments), close: r2.color.close, closeRe: r2.color.closeRe }; + return h.call(this, this._styles ? this._styles.concat(i3) : [i3], this._empty, e3); + }; + } }); + r2.bgColor.closeRe = new RegExp(n2(r2.bgColor.close), "g"); + for (const e3 of Object.keys(r2.bgColor.ansi)) u.has(e3) || (d["bg" + e3[0].toUpperCase() + e3.slice(1)] = { get() { + const t3 = this.level; + return function() { + const i3 = { open: r2.bgColor[l[t3]][e3].apply(null, arguments), close: r2.bgColor.close, closeRe: r2.bgColor.closeRe }; + return h.call(this, this._styles ? this._styles.concat(i3) : [i3], this._empty, e3); + }; + } }); + const _ = Object.defineProperties(() => { + }, d); + function h(e3, t3, i3) { + const n3 = function() { + return m.apply(n3, arguments); + }; + n3._styles = e3, n3._empty = t3; + const r3 = this; + return Object.defineProperty(n3, "level", { enumerable: true, get: () => r3.level, set(e4) { + r3.level = e4; + } }), Object.defineProperty(n3, "enabled", { enumerable: true, get: () => r3.enabled, set(e4) { + r3.enabled = e4; + } }), n3.hasGrey = this.hasGrey || "gray" === i3 || "grey" === i3, n3.__proto__ = _, n3; + } + function m() { + const e3 = arguments, t3 = e3.length; + let i3 = String(arguments[0]); + if (0 === t3) return ""; + if (t3 > 1) for (let n4 = 1; n4 < t3; n4++) i3 += " " + e3[n4]; + if (!this.enabled || this.level <= 0 || !i3) return this._empty ? "" : i3; + const n3 = r2.dim.open; + s && this.hasGrey && (r2.dim.open = ""); + for (const e4 of this._styles.slice().reverse()) i3 = e4.open + i3.replace(e4.closeRe, e4.open) + e4.close, i3 = i3.replace(/\r?\n/g, `${e4.close}$&${e4.open}`); + return r2.dim.open = n3, i3; + } + function g(e3, t3) { + if (!Array.isArray(t3)) return [].slice.call(arguments, 1).join(" "); + const i3 = [].slice.call(arguments, 2), n3 = [t3.raw[0]]; + for (let e4 = 1; e4 < t3.length; e4++) n3.push(String(i3[e4 - 1]).replace(/[{}\\]/g, "\\$&")), n3.push(String(t3.raw[e4])); + return a(e3, n3.join("")); + } + Object.defineProperties(p.prototype, d), e2.exports = p(), e2.exports.supportsColor = o, e2.exports.default = e2.exports; + }, 15897: (e2) => { + e2.exports = { askCommon: { invalidInputReceived: "Itu tidak sah.", noInputReceived: "Saya tidak menerima sebarang input." }, askForBoolean: { noInput: 'Sebut "ya" jika anda ingin teruskan, atau "tidak" jika anda tidak ingin teruskan.', noMatch: 'Sila sebut "ya" atau "tidak". Adakah anda ingin teruskan?', question: "Adakah anda ingin teruskan?", noInputDigitalBot: 'Masukkan "Ya" jika anda ingin teruskan, atau "Tidak" jika anda tidak ingin teruskan.', noMatchDigitalBot: 'Sila masukkan "Ya" atau "Tidak". Adakah anda ingin teruskan?' }, askForIntent: { noInput: 'Sebutkan satu ayat pendek yang menerangkan pertanyaan anda. Contohnya, "Semak baki akaun saya"', noMatch: "Beritahu saya semula perkara yang ingin anda lakukan.", question: "Apakah yang ingin anda lakukan?", noInputDigitalBot: 'Sila masukkan satu ayat pendek yang menerangkan pertanyaan anda. Contohnya, "Semak baki akaun saya"' }, askForSlot: { askFor: "Minta %1$s", noInput: "Sila sebutkan atau masukkan (sila letakkan nama slot anda di sini).", noInputWithSlot: "Sila sebutkan atau masukkan %1$s.", noMatch: "Sila berikan semula (sila letakkan nama slot anda di sini) kepada saya.", noMatchWithSlot: "Sila berikan semula %1$s kepada saya.", question: "Apakah (sila letakkan nama slot anda di sini) itu?", questionWithSlot: "Apakah %1$s itu?", pleaseEnterSlotNameHere: "(sila letakkan nama slot anda di sini)", noInputDigitalBot: "Sila masukkan (sila letakkan nama slot anda di sini).", noInputWithSlotDigitalBot: "Sila masukkan %1$s itu.", continuationPromptWithSlot: "Saya faham {{Slot.%1$s}} setakat ini, sila teruskan." }, askForNextSlot: { noInput: 'Sebut "ya" jika anda mempunyai pertanyaan lain, atau "tidak" untuk menamatkan panggilan.', noMatch: 'Sebut "ya" jika anda mempunyai pertanyaan lain, atau "tidak" untuk menamatkan sesi.', question: "Ada apa-apa lagi yang boleh saya bantu?", noInputDigitalBot: 'Masukkan "Ya" jika anda mempunyai pertanyaan lain, atau "Tidak" untuk menamatkan sesi.', noMatchDigitalBot: 'Masukkan "Ya" jika anda mempunyai pertanyaan lain, atau "Tidak" untuk menamatkan sesi.' }, askForPayment: { noInputDigitalBot: "Sila berikan maklumat bayaran anda untuk meneruskan.", noMatchDigitalBot: "Saya tidak faham respons anda. Sila cuba semula." }, askForAuthentication: { noInputDigitalBot: "Sila berikan maklumat pengesahan anda untuk meneruskan.", noMatchDigitalBot: "Saya tidak faham respons anda. Sila cuba semula." }, askSurveyQuestion: { notApplicable: "Tidak Berkenaan", surveyAnswerOptionSequence: "Tekan %1$s untuk '%2$s'.", surveyAnswerNotApplicableSequence: "Tekan bintang untuk Tidak Berkenaan.", surveyAnswerNotApplicableWithQuestionSequence: "%1$s. Tekan bintang untuk Tidak Berkenaan.", voiceSurveyNoInputText: "Sila jawab soalan.", voiceSurveyNoMatchText: "Saya tidak memahami anda." }, commonModule: { exitCommonModule: "Keluar Daripada Modul Umum" }, form: { noInputDigitalBot: "Sila lengkapkan borang untuk meneruskan.", noMatchDigitalBot: "Sila lengkapkan borang untuk meneruskan." }, messagingTemplate: { noInputDigitalBot: "Sila pilih salah satu daripada pilihan yang tersedia.", noMatchDigitalBot: "Sila pilih salah satu daripada pilihan yang tersedia." }, knowledgeSettings: { knowledgeAnswerHighlightFlowProgressionDefault: "Teruskan", knowledgeAnswerHighlightFullArticleDefault: "Lihat Artikel Penuh", knowledgeInitialResponseMulti: "Untuk membantu saya menjelaskan matlamat anda, sila pilih satu nombor daripada senarai di bawah:", knowledgeInitialResponseMultiRetry: "Sila pilih satu nombor, contohnya '1'.\nBerikut ialah senarai pilihan semula:", knowledgeNoMatch: "Tiada yang berkenaan", knowledgeConfirmation: "Adakah ini menjawab pertanyaan anda?", knowledgeFollowup: "Saya berharap ini menjawab pertanyaan anda. Anda boleh bertanya apa-apa lagi yang ingin anda ketahui." }, noOverlay: { intent: { intentConfirmationStr1: "Saya rasa anda ingin", intentConfirmationStr2: "Adakah ini betul?" }, youSaid: { youSaidConfirmationStr1: "Anda menyebut", youSaidConfirmationStr2: "Adakah ini betul?", youSaidConfirmationStr1DigitalBot: "Anda memasukkan" }, noInput: { noInputStr1: "Sila sebutkan atau masukkan", noInputStr1DigitalBot: "Sila masukkan" }, noMatch: { noMatchStr1: "Sila berikan saya" }, whatIs: { whatIsQuestionStr1: "Apakah", whatIsQuestionStr2: "?" }, iGotContinuation: { iGotContinuationStr1: "Saya telah sampai", iGotContinuationStr2: "setakat ini, sila teruskan." } }, defaultCallFlowOne: "Aliran Panggilan Lalai", errorHandlingAgentEscalationConfirmation: "Anda ingin bercakap dengan perunding. Adakah ini betul?", errorHandlingAgentEscalationHandover: "Sebentar, saya akan sambungkan anda dengan seseorang.", errorHandlingErrorEventHandover: "Maaf, ralat telah berlaku. Sebentar, sementara saya sambungkan anda dengan seseorang yang dapat membantu.", errorHandlingErrorEventHandoverVoiceSurvey: "Maaf, ralat telah berlaku. Selamat tinggal.", errorHandlingRecognitionEventHandover: "Maaf, saya tidak memahami anda. Sebentar, sementara saya sambungkan anda dengan seseorang yang dapat membantu.", errorHandlingRecognitionEventHandoverVoiceSurvey: "Maaf, saya tidak memahami anda. Selamat tinggal.", errorHandlingTTS: "Maaf, ralat telah berlaku. Sila cuba panggilan anda semula.", initialGreetingTTS: "Salam sejahtera, ini ucapan pengenalan.", initialState: "Keadaan Awal", initialBotState: "Bot Lalai", initialDigitalBotState: "Ucapan Pengenalan", initialSurveyBotState: "Bot Tinjauan", intentConfirmation: "Saya rasa anda ingin %1$s, adakah ini betul?", mainMenu: "Menu Utama", mainMenuTTS: "Anda berada di Menu Utama, tekan 9 untuk memutuskan sambungan", mainTask: "Tugasan", settingsConfirmationNoInputApology: "Maaf, saya tidak dapat mendengar anda. Sila sebut ya atau tidak.", settingsConfirmationNoInputApologyDigitalBot: 'Maaf, saya tidak menerima sebarang input daripada anda. Sila masukkan "Ya" atau "Tidak".', settingsConfirmationNoMatchApology: "Maaf, sila sebut ya atau tidak.", settingsConfirmationNoMatchApologyDigitalBot: 'Maaf, sila masukkan "Ya" atau "Tidak".', settingsNoInputApology: "Maaf, saya tidak dapat mendengar anda.", settingsNoInputApologyDigitalBot: "Maaf, saya tidak menerima sebarang input daripada anda.", settingsEndOfSessionMessageDigitalBot: "Tiada komunikasi dengan anda buat seketika, jadi saya akan menutup sembang ini. Sila kembali jika anda memerlukan bantuan saya lagi. Terima kasih.", settingsNoMatchApology: "Maaf.", settingsNoToConfirmationApology: "Silap saya.", periodicStateName: "Keadaan Berulang" }; + }, 15904: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importDefault(i2(96481)), o = n2.__importDefault(i2(56549)), a = n2.__importDefault(i2(94225)), s = i2(30801), l = i2(17485), u = i2(47976); + class d extends r2.default { + constructor(e3) { + super(e3), this._channelId = this.coreFactory.createArchWrapper(e3.channelId); + } + get _actionTypeId() { + return s.nuanceMixActionType; + } + get displayTypeName() { + return this._scriptingName; + } + get channelId() { + return this._channelId; + } + get nuanceMixBotOutputsFailure() { + return this._coreActionViewModel.errorBindings ? this.coreFactory.createArchWrapper(this._coreActionViewModel.errorBindings) : null; + } + get isArchActionCallNuanceMixBot() { + return true; + } + get intentSlots() { + return this.coreFactory.createArchWrapper(this._getCoreViewModel().outputs); + } + get availableChannelIds() { + return this._getCoreViewModel().getAllowableChannels().map((e3) => e3.id); + } + get botVariables() { + return this.coreFactory.createArchWrapper(this._getCoreViewModel().botVariables); + } + setBotByIdAsync(e3, t3, i3) { + return n2.__awaiter(this, void 0, void 0, function* () { + this._checkItemIsValidLiteralString(this._infoParm("nuanceMixIntegrationId", "setBotByIdAsync"), e3, false), this._checkItemIsValidLiteralString(this._infoParm("nuanceMixBotId", "setBotByIdAsync"), t3, false), this._checkItemIsValidFunction(this._infoParm("callbackFunction", "setBotByIdAsync"), i3, true); + const n3 = yield o.default.findItemByIdAsync(u.nuanceMixIntegrationManager, e3, "nuanceMix integration"); + return this.logNote("Found the bot integration named '" + n3.name + "' for the integration ID of '" + e3 + "'"), this._getCoreViewModel().setBotCategoryByViewModel(n3), yield this._setBotByIdAsync("setBotByIdAsync", e3, t3), a.default.executeCallback(this, "setBotByIdAsync", i3, this); + }); + } + _setBotByIdAsync(e3, t3, i3) { + return n2.__awaiter(this, void 0, void 0, function* () { + const e4 = yield o.default.findItemByIdAsync(l.nuanceMixBotManager, i3, "nuanceMix bot", { integrationId: t3 }); + this.logNote("Found the bot named '" + e4.name + "' for the bot ID of '" + i3 + "'"), this._getCoreViewModel().setBotRunnableByViewModel(e4); + }); + } + setBotByNameAsync(e3, t3, i3, r3) { + return n2.__awaiter(this, void 0, void 0, function* () { + this._checkItemIsValidLiteralString(this._infoParm("nuanceMixIntegrationName", "setBotByNameAsync"), e3, false), this._checkItemIsValidLiteralString(this._infoParm("nuanceMixBotName", "setBotByNameAsync"), t3, false), this._checkItemIsValidFunction(this._infoParm("callbackFunction", "setBotByNameAsync"), i3, true), this._checkItemIsValidLiteralString(this._infoParm("applicationName", "setBotByNameAsync"), t3, true); + const n3 = "call nuanceMix bot action", s2 = yield o.default.findItemByValueAsync(u.nuanceMixIntegrationManager, e3, n3, null, null); + let d2; + this.logNote(`Found info for the integration named '${s2.name}' for the passed integration name of '${e3}'. Getting bot integration details.`), this._coreActionViewModel.setBotCategoryByViewModel(s2), r3 && (d2 = { applicationName: r3 }); + const c = yield o.default.findItemByValueAsync(l.nuanceMixBotManager, t3, n3, null, null, d2, { integrationId: s2.id }); + return this.logNote(`Found info for the bot named '${c.name}' for the passed bot name of '${t3}'. Getting bot details.`), yield this._setBotByIdAsync("setBotByNameAsync", s2.id, c.id), a.default.executeCallback(this, "setBotByNameAsync", i3, this); + }); + } + } + t2.default = d; + }, 15928: (e2, t2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.default = { replyToAll: "replyToAll", replyToSender: "replyToSender" }; + }, 15948: (e2, t2, i2) => { + const n2 = i2(28730), { changeStateActionType: r2 } = i2(30801); + function o() { + this.stateReference = void 0, this.stateName = void 0, o.baseConstructor.apply(this, arguments); + } + n2.extend(o, r2, true), Object.defineProperties(o.prototype, { pasteReIdOrRename: { value: function(e3) { + o._super.pasteReIdOrRename.apply(this, arguments); + } }, pasteResolveOldToNewValues: { value: function(e3) { + o._super.pasteResolveOldToNewValues.apply(this, arguments); + const t3 = this.pasteResolveReferenceAndName(e3, "state", this.stateReference, this.stateName); + this.stateReference = t3.reference, this.stateName = t3.name; + } } }), e2.exports = o; + }, 16002: function(e2, t2, i2) { + "use strict"; + var n2 = this && this.__read || function(e3, t3) { + var i3 = "function" == typeof Symbol && e3[Symbol.iterator]; + if (!i3) return e3; + var n3, r3, o2 = i3.call(e3), a2 = []; + try { + for (; (void 0 === t3 || t3-- > 0) && !(n3 = o2.next()).done; ) a2.push(n3.value); + } catch (e4) { + r3 = { error: e4 }; + } finally { + try { + n3 && !n3.done && (i3 = o2.return) && i3.call(o2); + } finally { + if (r3) throw r3.error; + } + } + return a2; + }, r2 = this && this.__spreadArray || function(e3, t3) { + for (var i3 = 0, n3 = t3.length, r3 = e3.length; i3 < n3; i3++, r3++) e3[r3] = t3[i3]; + return e3; + }; + Object.defineProperty(t2, "__esModule", { value: true }), t2.immediateProvider = void 0; + var o = i2(92052), a = o.Immediate.setImmediate, s = o.Immediate.clearImmediate; + t2.immediateProvider = { setImmediate: function() { + for (var e3 = [], i3 = 0; i3 < arguments.length; i3++) e3[i3] = arguments[i3]; + var o2 = t2.immediateProvider.delegate; + return ((null == o2 ? void 0 : o2.setImmediate) || a).apply(void 0, r2([], n2(e3))); + }, clearImmediate: function(e3) { + var i3 = t2.immediateProvider.delegate; + return ((null == i3 ? void 0 : i3.clearImmediate) || s)(e3); + }, delegate: void 0 }; + }, 16029: (e2) => { + e2.exports = function(e3, t2) { + if ("function" != typeof e3 || "function" != typeof t2) throw new TypeError("inherits expects child and parent to be constructors"); + Object.setPrototypeOf ? Object.setPrototypeOf(e3.prototype, t2.prototype) : e3.prototype.__proto__ = t2.prototype; + const i2 = Object.getOwnPropertyDescriptor(e3.prototype, "constructor"); + return i2 && i2.value === e3 || Object.defineProperty(e3.prototype, "constructor", { value: e3, writable: true, configurable: true }), Object.setPrototypeOf ? Object.setPrototypeOf(e3, t2) : e3.__proto__ = t2, Object.keys(t2).forEach((i3) => { + Object.prototype.hasOwnProperty.call(e3, i3) || Object.defineProperty(e3, i3, Object.getOwnPropertyDescriptor(t2, i3)); + }), "function" == typeof t2["@@create"] && (e3["@@create"] = t2["@@create"]), Object.prototype.hasOwnProperty.call(e3, "_super") || Object.defineProperty(e3, "_super", { value: t2.prototype }), e3; + }; + }, 16113: (e2, t2, i2) => { + const n2 = i2(13240), r2 = i2(7401); + function o() { + Object.defineProperties(this, { _evaluationDateTime: { writable: true }, _emergencyGroup: { writable: true } }), this.emergencyGroupId = void 0, this.emergencyGroupName = void 0, this.evaluateNow = true, o.baseConstructor.apply(this, arguments); + } + n2.extend(o, "BaseScheduleActionModel"), Object.defineProperties(o.prototype, { pasteReIdOrRename: { value: function(e3) { + o._super.pasteReIdOrRename.apply(this, arguments), this.evaluationDateTime.pasteReIdOrRename(e3), this.emergencyGroup.pasteReIdOrRename(e3); + } }, pasteResolveOldToNewValues: { value: function(e3) { + o._super.pasteResolveOldToNewValues.apply(this, arguments), this.evaluationDateTime.pasteResolveOldToNewValues(e3), this.emergencyGroup.pasteResolveOldToNewValues(e3); + } }, evaluationDateTime: { enumerable: true, get: function() { + return this._evaluationDateTime; + }, set: function(e3) { + this._evaluationDateTime = this.reviveItem(e3, r2); + } }, emergencyGroup: { enumerable: true, get: function() { + return this._emergencyGroup; + }, set: function(e3) { + this._emergencyGroup = this.reviveItem(e3, r2); + } } }), e2.exports = o; + }, 16127: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.PagedListByCursor = void 0; + const n2 = i2(31635).__importDefault(i2(92140)), r2 = i2(19596); + class o extends r2.DataContract { + constructor(e3) { + super(e3); + } + get entities() { + return this._entities; + } + set entities(e3) { + n2.default.isArray(e3) && (this._entities = e3); + } + get results() { + return this.entities; + } + set results(e3) { + this.entities = e3; + } + get after() { + return this._after; + } + set after(e3) { + this._after = e3; + } + get cursors() { + return this._cursors; + } + set cursors(e3) { + this._cursors = e3; + } + } + t2.PagedListByCursor = o; + }, 16200: (e2, t2, i2) => { + const n2 = i2(11475); + function r2() { + r2.baseConstructor.apply(this, arguments); + } + function o() { + o.baseConstructor.apply(this, arguments); + } + function a() { + a.baseConstructor.apply(this, arguments); + } + function s() { + s.baseConstructor.apply(this, arguments); + } + function l() { + l.baseConstructor.apply(this, arguments); + } + function u() { + u.baseConstructor.apply(this, arguments); + } + function d() { + d.baseConstructor.apply(this, arguments); + } + n2.extend(r2, "CurrencyFormatEnumVariable", true), n2.extend(o, "DateFormatEnumVariable", true), n2.extend(a, "DateTimeFormatEnumVariable", true), n2.extend(s, "NumberFormatEnumVariable", true), n2.extend(l, "StringFormatEnumVariable", true), n2.extend(u, "TimeFormatEnumVariable", true), n2.extend(d, "TimePartEnumVariable", true), e2.exports = { CurrencyFormatEnumVariable: r2, DateFormatEnumVariable: o, DateTimeFormatEnumVariable: a, NumberFormatEnumVariable: s, StringFormatEnumVariable: l, TimeFormatEnumVariable: u, TimePartEnumVariable: d }; + }, 16201: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.switchAll = void 0; + var n2 = i2(90680), r2 = i2(87699); + t2.switchAll = function() { + return n2.switchMap(r2.identity); + }; + }, 16230: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = i2(96618), o = n2.__importDefault(i2(92140)), a = i2(12179), s = i2(99772), l = i2(69149), u = n2.__importDefault(i2(5532)); + class d extends s.BaseBuilderWithBuilderPartsViewModel { + constructor({ owningExpression: e3, model: t3, reId: i3 }) { + super(e3, t3, void 0, i3, false); + } + get className() { + return "StringBuilderWithBuilderPartsViewModel"; + } + get isStringBuilderWithBuilderPartsViewModel() { + return true; + } + get helpTopic() { + return a.helpTopics.builders.string; + } + _buildExpressionGenerationFromManager(e3) { + const t3 = e3.getIndividualPartGenerations(); + if (1 === t3.length) return t3[0]; + const i3 = this.builderDef.generators.containerPartsGenerator.createGeneration(); + return o.default.each(t3, (e4) => { + i3.addGenerationToBucket(e4); + }), i3; + } + addOrSetStringLiteralBuilderPart(e3, t3) { + const i3 = this.parentFlow.type === r2.flowTypes.flowTypeDigitalBot ? l.builderPartIds.string.markdown : l.builderPartIds.string.text; + let n3, a2; + if (t3 ? (n3 = this.getLanguageContainerPart(t3, true), (null == n3 ? void 0 : n3.hasParts) && (a2 = n3.parts[0])) : (this.mainSequenceEnabled = true, n3 = this, n3.builderPartsManager.hasParts && (a2 = n3.builderParts[0])), !a2) { + const e4 = u.default.getBuilderPartDefById(i3); + a2 = n3.createAndAddPartFromBuilderPartDef(e4); + } + const s2 = a2.builderPartExpressions[0]; + s2 && s2.setAsLiteral(e3), o.default.isFunction(a2.setMarkdownText) && a2.setMarkdownText(e3); + } + } + t2.default = d; + }, 16321: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.bootstrapService = t2.BootstrapService = void 0; + const n2 = i2(31635), r2 = n2.__importDefault(i2(92140)), o = n2.__importStar(i2(10798)), a = i2(71956), s = n2.__importStar(i2(24032)), l = (n2.__importDefault(i2(55015)), n2.__importStar(i2(74359))), u = s.getTopic("bootstrapService"); + class d { + constructor() { + this.sections = { actions: { name: "actions" }, dataTypes: { name: "dataTypes" }, dependencyTypes: { name: "dependencyTypes" }, featureConfigs: { name: "featureConfigs", expandFlag: "features" }, featureSupport: { name: "featureSupport" }, flowTypes: { name: "flowTypes" }, functions: { name: "functions" }, languages: { name: "languages" } }; + } + loadBootstrapData(e3) { + return n2.__awaiter(this, void 0, void 0, function* () { + let t3; + e3 && e3.length && (t3 = Object.values(this.sections).filter((t4) => e3.includes(t4.name)), t3.length || u.error(`${e3.join(",")} does not contain valid bootstrap section names`)), t3 && t3.length || (t3 = Object.values(this.sections)), t3.forEach((e4) => this.setSectionData(e4.name, void 0)); + const i3 = t3.map((e4) => e4.expandFlag || e4.name); + try { + const e4 = yield (0, a.getBootstrappingDataV2)(i3); + return t3.forEach((t4) => { + let i4; + r2.default.isObject(e4[t4.name]) ? (i4 = e4[t4.name], this.setSectionData(t4.name, i4)) : u.error(`Missing bootstrap information from server for '${t4.name}'`); + }), u.info("Startup bootstrap information loaded."), t3.includes(this.sections.featureConfigs) && o.setBootstrapData(this), this; + } catch (e4) { + return void u.exception(e4, "Unable to get startup bootstrap information from server."); + } + }); + } + setSectionData(e3, t3) { + this[e3] = t3; + } + } + t2.BootstrapService = d, t2.bootstrapService = new d(), Promise.all([l.getAuthorizedPromise(), l.featureTogglesLoaded]).then(() => { + l.autoResolveBootstrapDataLoadedPromise(() => t2.bootstrapService.loadBootstrapData()); + }).catch((e3) => u.errorPromise(e3, "Unable to load bootstrap data.")); + }, 16369: (e2, t2, i2) => { + const n2 = i2(82149), { botConnectorActionType: r2 } = i2(30801), o = i2(42217); + function a() { + Object.defineProperties(this, { _outputSessionVariables: { writable: true } }), this.languages = void 0, this.botCompositeTag = void 0, this.botId = void 0, this.botName = void 0, this.versionId = void 0, this.versionName = void 0, this.botIntegrationId = void 0, this.botIntegrationName = void 0, a.baseConstructor.apply(this, arguments); + } + n2.extend(a, r2, true), Object.defineProperties(a.prototype, { pasteReIdOrRename: { value: function(e3) { + a._super.pasteReIdOrRename.apply(this, arguments); + } }, pasteResolveOldToNewValues: { value: function(e3) { + a._super.pasteResolveOldToNewValues.apply(this, arguments); + } }, outputSessionVariables: { enumerable: true, get: function() { + return this._outputSessionVariables; + }, set: function(e3) { + this._outputSessionVariables = this.reviveArray(e3, o); + } } }), e2.exports = a; + }, 16434: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(88308)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + deleteState(e3) { + const t3 = this._infoParm("stateToDelete", "deleteState"); + this._checkItem(t3, !e3 || !e3.isArchState, "the parameter value must be an ArchState instance."), this._checkItem(t3, e3.parentFlow._getCoreViewModel() !== this._getCoreViewModel(), "the state to delete is not part of this flow."); + const i3 = e3._getCoreViewModel(); + this._checkItem(t3, this._getCoreViewModel().startUpObject === i3, "unable to delete the state because it is the startup object configured on the flow."), this._checkItem(t3, this._getCoreViewModel().periodicState === i3, "unable to delete the state because it is the periodic state configured on the flow."); + const n3 = e3.logStr; + this.logNote("deleting the state " + n3), this._coreFlowViewModel.deleteNode(i3) || this.logErrorAndThrow(`the state ${e3.logStr} could not be deleted.`), this.logNote("state deletion complete for " + n3); + } + get displayTypeName() { + return "ArchBaseFlowWorkflow"; + } + get isArchBaseFlowWorkflow() { + return true; + } + setStartingState(e3) { + this._checkItem(this._infoParm("archState", "setStartingState"), !e3 || !e3.isArchState, "you must pass in a valid ArchState instance to set it as the starting state on a flow."), this._checkItem(this._infoParm("archState", "setStartingState"), !e3._getCoreViewModel().isAllowedAsStartupNode, "the ArchState instance is not a valid startup state. State: " + e3.logStr), this.logNote("setting the starting state to " + e3.logStr), this._coreFlowViewModel.initialSequence = e3.id; + } + get startUpObject() { + const e3 = this._getCoreViewModel().startUpObject; + return e3 ? this.coreFactory.createArchWrapper(e3) : null; + } + get states() { + const e3 = []; + return this._getCoreViewModel().states.forEach((t3) => { + e3.push(this.coreFactory.createArchWrapper(t3)); + }), e3; + } + } + t2.default = r2; + }, 16435: (e2) => { + e2.exports = { askCommon: { invalidInputReceived: "That is not valid.", noInputReceived: "I did not receive any input." }, askForBoolean: { noInput: `Say "yes" if you want to proceed or "no" if you don't.`, noMatch: 'Please say "yes" or "no". Do you want to proceed?', question: "Do you want to proceed?", noInputDigitalBot: `Input "Yes" if you want to proceed or "No" if you don't.`, noMatchDigitalBot: 'Please input "Yes" or "No". Do you want to proceed?' }, askForIntent: { noInput: 'Just speak a short sentence that describes your query. For example, "Check my account balance"', noMatch: "Tell me again what you would like to do.", question: "What would you like to do?", noInputDigitalBot: 'Please enter a short sentence that describes your query. For example, "Check my account balance"' }, askForSlot: { askFor: "Ask for %1$s", noInput: "Please say or enter the (please put your slot name here).", noInputWithSlot: "Please say or enter the %1$s.", noMatch: "Please give me the (please put your slot name here) again.", noMatchWithSlot: "Please give me the %1$s again.", question: "What is the (please put your slot name here)?", questionWithSlot: "What is the %1$s?", pleaseEnterSlotNameHere: "(please put your slot name here)", noInputDigitalBot: "Please enter the (please put your slot name here).", noInputWithSlotDigitalBot: "Please enter the %1$s.", continuationPromptWithSlot: "I got {{Slot.%1$s}} so far, please continue." }, askForNextSlot: { noInput: 'Say "yes" if you have another query, or "no" to end the call.', noMatch: 'Say "yes" if you have another query, or "no" to end the session.', question: "Is there anything else I can help you with?", noInputDigitalBot: 'Input "Yes" if you have another query, or "No" to end the session.', noMatchDigitalBot: 'Input "Yes" if you have another query, or "No" to end the session.' }, askForPayment: { noInputDigitalBot: "Please provide your payment information to continue.", noMatchDigitalBot: "I didn't understand your response. Please try again." }, askForAuthentication: { noInputDigitalBot: "Please provide your authentication information to continue.", noMatchDigitalBot: "I didn't understand your response. Please try again." }, askSurveyQuestion: { notApplicable: "Not Applicable", surveyAnswerOptionSequence: "Press %1$s for '%2$s'.", surveyAnswerNotApplicableSequence: "Press star for Not Applicable.", surveyAnswerNotApplicableWithQuestionSequence: "%1$s. Press star for Not Applicable.", voiceSurveyNoInputText: "Please answer the question.", voiceSurveyNoMatchText: "I didn't understand you." }, commonModule: { exitCommonModule: "Exit Common Module" }, form: { noInputDigitalBot: "Please complete the form to continue.", noMatchDigitalBot: "Please complete the form to continue." }, messagingTemplate: { noInputDigitalBot: "Please select one of the available options.", noMatchDigitalBot: "Please select one of the available options." }, knowledgeSettings: { knowledgeAnswerHighlightFlowProgressionDefault: "Continue", knowledgeAnswerHighlightFullArticleDefault: "View Full Article", knowledgeInitialResponseMulti: "To help me clarify your goal, please choose a number from the following list:", knowledgeInitialResponseMultiRetry: "Please choose a number, for example '1'.\nHere's the list of options again:", knowledgeNoMatch: "None of these", knowledgeConfirmation: "Did this answer your question?", knowledgeFollowup: "I hope I answered your question. You can ask anything else you might want to know." }, noOverlay: { intent: { intentConfirmationStr1: "I think you want to", intentConfirmationStr2: "Is that correct?" }, youSaid: { youSaidConfirmationStr1: "You said", youSaidConfirmationStr2: "Is that correct?", youSaidConfirmationStr1DigitalBot: "You entered" }, noInput: { noInputStr1: "Please say or enter the", noInputStr1DigitalBot: "Please enter the" }, noMatch: { noMatchStr1: "Please give me the" }, whatIs: { whatIsQuestionStr1: "What is the", whatIsQuestionStr2: "?" }, iGotContinuation: { iGotContinuationStr1: "I got", iGotContinuationStr2: "so far, please continue." } }, defaultCallFlowOne: "Default Call Flow", errorHandlingAgentEscalationConfirmation: "You want to speak to an advisor. Is that correct?", errorHandlingAgentEscalationHandover: "One moment, please, and I will put you through to someone.", errorHandlingErrorEventHandover: "Sorry, an error occurred. One moment, please, while I put you through to someone who can help.", errorHandlingErrorEventHandoverVoiceSurvey: "Sorry, an error occurred. Goodbye.", errorHandlingRecognitionEventHandover: "Sorry, I'm having trouble understanding you. One moment, please, while I put you through to someone who can help.", errorHandlingRecognitionEventHandoverVoiceSurvey: "Sorry, I'm having trouble understanding you. Goodbye.", errorHandlingTTS: "Sorry, an error occurred. Please try your call again.", initialGreetingTTS: "Hello, this is the initial greeting.", initialState: "Initial State", initialBotState: "Default Bot", initialDigitalBotState: "Initial Greeting", initialSurveyBotState: "Survey Bot", intentConfirmation: "I think you want to %1$s, is that correct?", mainMenu: "Main Menu", mainMenuTTS: "You are at the Main Menu, press 9 to disconnect", mainTask: "Task", settingsConfirmationNoInputApology: "Sorry, I didn't hear you. Please say yes or no.", settingsConfirmationNoInputApologyDigitalBot: `Sorry, I didn't receive any input from you. Please input "Yes" or "No".`, settingsConfirmationNoMatchApology: "Sorry, please say yes or no.", settingsConfirmationNoMatchApologyDigitalBot: 'Sorry, please input "Yes" or "No".', settingsNoInputApology: "Sorry, I didn't hear you.", settingsNoInputApologyDigitalBot: "Sorry, I didn't receive any input from you.", settingsEndOfSessionMessageDigitalBot: "I have not heard from you in a while, so I am closing this chat, please come back if you need my help again. Thank you.", settingsNoMatchApology: "Sorry.", settingsNoToConfirmationApology: "My mistake.", periodicStateName: "Recurring State" }; + }, 16468: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importDefault(i2(85383)); + class o extends r2.default { + constructor(e3, t3) { + super(e3, t3); + } + get displayTypeName() { + return "ArchBaseNetworkValueContainer"; + } + _addLiteralByIdAsync(e3, t3) { + return n2.__awaiter(this, void 0, void 0, function* () { + return this._findItemByIdAsync(e3, t3).then(this._addNetworkModelToCollection.bind(this)); + }); + } + _addLiteralByValueAsync(e3, t3, i3) { + return n2.__awaiter(this, void 0, void 0, function* () { + return this._findItemByValueAsync(e3, t3, i3).then(this._addNetworkModelToCollection.bind(this)); + }); + } + _addNetworkModelToCollection(e3) { + this._itemIsInvalid(this._infoParm("this", "_addNetworkModelToCollection"), "_addNetworkModelToCollection must be overridden by subclass"); + } + get isArchBaseNetworkValueContainer() { + return true; + } + } + t2.default = o; + }, 16598: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importDefault(i2(92140)), o = n2.__importDefault(i2(73198)), a = n2.__importDefault(i2(17405)); + class s extends a.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "dateTime"; + } + get displayTypeName() { + return "ArchValueDateTime"; + } + _checkAndSetLiteral(e3, t3) { + this._checkItemIsValidLiteralDateTime(e3, t3), this._checkItem(e3, t3 < o.default.minDateTime, "the dateTime value of '" + t3.toISOString() + "' is less than the allowed minimum of '" + o.default.minDateTime.toISOString() + "'"), this._checkItem(e3, t3 > o.default.maxDateTime, "the dateTime value of '" + t3.toISOString() + "' is greater than the allowed maximum of '" + o.default.maxDateTime.toISOString() + "'"), this._checkItem(e3, 0 !== t3.getUTCMilliseconds(), "the dateTime value of '" + t3.toISOString() + "' is not valid because it has fractional seconds specified of " + t3.getUTCMilliseconds() + " millisecond(s). The dateTime must be 0 milliseconds."), this._setLiteral(e3, this._getArchIsoDateTimeStr(t3)); + } + _getArchIsoDateTimeStr(e3) { + if (r2.default.isDate(e3)) { + const t3 = e3.toISOString(); + return t3.substring(0, t3.indexOf(".")) + "+00:00"; + } + } + get isArchValueDateTime() { + return true; + } + setExpressionMinDateTime() { + this._setExpression(this._infoVal("arch_min_datetime", "setExpressionMinDateTime"), "MakeDateTime(1800, 1, 1, 0, 0, 0)"); + } + setExpressionMaxDateTime() { + this._setExpression(this._infoVal("arch_max_datetime", "setExpressionMaxDateTime"), "MakeDateTime(2200, 12, 31, 23, 59, 59)"); + } + setLiteralDateTime(e3) { + this._checkAndSetLiteral(this._infoParm("dateTime", "setLiteralDateTime"), e3); + } + setLiteralMinDateTime() { + this._checkAndSetLiteral(this._infoVal("arch_min_datetime", "setLiteralMinDateTime"), o.default.minDateTime); + } + setLiteralMaxDateTime() { + this._checkAndSetLiteral(this._infoVal("arch_max_datetime", "setLiteralMaxDateTime"), o.default.maxDateTimeNoMs); + } + } + t2.default = s; + }, 16608: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importDefault(i2(11210)), o = i2(30801), a = n2.__importDefault(i2(78432)), s = i2(89720); + class l extends r2.default { + constructor(e3) { + super(e3), this._uuiData = this.coreFactory.createArchWrapper(e3.uuiData); + } + get _actionTypeId() { + return o.setUUIDataActionType; + } + get displayTypeName() { + return this._scriptingName; + } + get isArchActionSetUUIData() { + return true; + } + get uuiData() { + return this._uuiData; + } + get mode() { + var e3; + return null === (e3 = this._getCoreViewModel().mode) || void 0 === e3 ? void 0 : e3.name; + } + set mode(e3) { + const t3 = this._infoPropSet("newOutboundUUIDataMode", "mode"); + switch (this._checkItemIsValidLiteralStringEnum(t3, e3, a.default.SET_UUI_DATA_MODES_ALL), e3) { + case a.default.SET_UUI_DATA_MODES.transfer: + this._getCoreViewModel().mode = s.transfer; + break; + case a.default.SET_UUI_DATA_MODES.disconnect: + this._getCoreViewModel().mode = s.disconnect; + } + this.logNote("mode set to '" + this.mode + "'"); + } + } + t2.default = l; + }, 16707: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.mergeScan = void 0; + var n2 = i2(65212), r2 = i2(2574); + t2.mergeScan = function(e3, t3, i3) { + return void 0 === i3 && (i3 = 1 / 0), n2.operate(function(n3, o) { + var a = t3; + return r2.mergeInternals(n3, o, function(t4, i4) { + return e3(a, t4, i4); + }, i3, function(e4) { + a = e4; + }, false, void 0, function() { + return a = null; + }); + }); + }; + }, 16714: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(20692)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "worktypeStatusCollection"; + } + get initialValue() { + return this._initialValue; + } + get displayTypeName() { + return "ArchVariableWorktypeStatusCollection"; + } + get isArchVariableWorktypeStatusCollection() { + return true; + } + } + t2.default = r2; + }, 16731: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(16434)); + class r2 extends n2.default { + constructor(e3) { + super(e3), this._userInputSettings = this.coreFactory.createArchWrapper(e3.userInputSettings); + } + get displayTypeName() { + return "ArchBaseFlowBot"; + } + get isArchBaseFlowBot() { + return true; + } + get userInputSettings() { + return this._userInputSettings; + } + get _wantValidateBeforeCreate() { + return false; + } + get settingsErrorHandling() { + if (this._getCoreViewModel().errorHandling) return this.coreFactory.createArchWrapper(this._coreFlowViewModel.errorHandling); + } + } + t2.default = r2; + }, 16791: (e2) => { + "use strict"; + const t2 = /(?:\\(u[a-f\d]{4}|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi, i2 = /(?:^|\.)(\w+)(?:\(([^)]*)\))?/g, n2 = /^(['"])((?:\\.|(?!\1)[^\\])*)\1$/, r2 = /\\(u[a-f\d]{4}|x[a-f\d]{2}|.)|([^\\])/gi, o = /* @__PURE__ */ new Map([["n", "\n"], ["r", "\r"], ["t", " "], ["b", "\b"], ["f", "\f"], ["v", "\v"], ["0", "\0"], ["\\", "\\"], ["e", "\x1B"], ["a", "\x07"]]); + function a(e3) { + return "u" === e3[0] && 5 === e3.length || "x" === e3[0] && 3 === e3.length ? String.fromCharCode(parseInt(e3.slice(1), 16)) : o.get(e3) || e3; + } + function s(e3, t3) { + const i3 = [], o2 = t3.trim().split(/\s*,\s*/g); + let s2; + for (const t4 of o2) if (isNaN(t4)) { + if (!(s2 = t4.match(n2))) throw new Error(`Invalid Chalk template style argument: ${t4} (in style '${e3}')`); + i3.push(s2[2].replace(r2, (e4, t5, i4) => t5 ? a(t5) : i4)); + } else i3.push(Number(t4)); + return i3; + } + function l(e3) { + i2.lastIndex = 0; + const t3 = []; + let n3; + for (; null !== (n3 = i2.exec(e3)); ) { + const e4 = n3[1]; + if (n3[2]) { + const i3 = s(e4, n3[2]); + t3.push([e4].concat(i3)); + } else t3.push([e4]); + } + return t3; + } + function u(e3, t3) { + const i3 = {}; + for (const e4 of t3) for (const t4 of e4.styles) i3[t4[0]] = e4.inverse ? null : t4.slice(1); + let n3 = e3; + for (const e4 of Object.keys(i3)) if (Array.isArray(i3[e4])) { + if (!(e4 in n3)) throw new Error(`Unknown Chalk style: ${e4}`); + n3 = i3[e4].length > 0 ? n3[e4].apply(n3, i3[e4]) : n3[e4]; + } + return n3; + } + e2.exports = (e3, i3) => { + const n3 = [], r3 = []; + let o2 = []; + if (i3.replace(t2, (t3, i4, s2, d, c, p) => { + if (i4) o2.push(a(i4)); + else if (d) { + const t4 = o2.join(""); + o2 = [], r3.push(0 === n3.length ? t4 : u(e3, n3)(t4)), n3.push({ inverse: s2, styles: l(d) }); + } else if (c) { + if (0 === n3.length) throw new Error("Found extraneous } in Chalk template literal"); + r3.push(u(e3, n3)(o2.join(""))), o2 = [], n3.pop(); + } else o2.push(p); + }), r3.push(o2.join("")), n3.length > 0) { + const e4 = `Chalk template literal is missing ${n3.length} closing bracket${1 === n3.length ? "" : "s"} (\`}\`)`; + throw new Error(e4); + } + return r3.join(""); + }; + }, 16817: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.BridgeServerAction = void 0; + const n2 = i2(31635), r2 = n2.__importDefault(i2(92140)), o = i2(43212), a = i2(1078), s = n2.__importDefault(i2(57606)); + class l extends o.BaseConfigurationListViewModel { + constructor(e3) { + super(e3), this._model && r2.default.each(this._model.requests, function(e4) { + this.requests.push(new a.BridgeServerRequest(e4)); + }.bind(this)); + } + get className() { + return "BridgeServerAction"; + } + get category() { + return this._model.category; + } + get deprecated() { + return this._model.deprecated; + } + get description() { + return this._model.description; + } + getConfiguration() { + const e3 = []; + return r2.default.each(this.requests, function(t3) { + e3.push(t3.getConfiguration()); + }), { name: this._model.name, category: this._model.category, latest: this._model.latest, suggestedTimeout: this._model.suggestedTimeout, helpLink: this._model.helpLink, requests: e3 }; + } + get id() { + return this._model.name; + } + get errorSchema() { + } + get inputSchema() { + return this._model.inputSchema ? new s.default(this._model.inputSchema, true) : void 0; + } + get successSchema() { + return this._model.successSchema ? new s.default(this._model.successSchema, true) : void 0; + } + get label() { + return this.name; + } + get name() { + return this._model.name; + } + get helpLink() { + return this._model.helpLink; + } + get published() { + return this._model.published; + } + get result() { + return this._model.result; + } + get suggestedTimeout() { + return this._model.suggestedTimeout; + } + get tags() { + return this._model.tags; + } + } + t2.BridgeServerAction = l; + }, 16864: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importDefault(i2(92140)), o = i2(9456), a = n2.__importStar(i2(9345)), s = n2.__importStar(i2(99434)), l = i2(10798), u = i2(55909), d = i2(33951), c = n2.__importDefault(i2(41510)), p = n2.__importDefault(i2(4648)), _ = n2.__importStar(i2(81116)), h = i2(14394), m = n2.__importDefault(i2(54882)), g = n2.__importDefault(i2(5532)), f = i2(7401), T = i2(58380), y = i2(47957), S = i2(24032).getTopic("BuilderPartWithExpressionsViewModel"); + class A extends m.default { + constructor({ builderViewModel: e3, owningExpressionViewModel: t3, builderPartModel: i3, overrideBuilderPartDef: n3, reId: r3 }) { + super(e3, t3, i3, n3, r3), Object.defineProperties(this, { _builderPartExpressions: { writable: true, enumerable: true } }), this._loadModel(t3, i3); + } + addExpression(e3) { + var t3; + this.builderPartExpressions.push(e3), (null === (t3 = this.owningExpression.options) || void 0 === t3 ? void 0 : t3.allowSecure) && (e3.options.allowSecure = true), T.registerEventSinkForEventEmitter(e3.id, this); + } + _initializeDesignTime() { + super._initializeDesignTime(), r2.default.each(this._builderPartExpressions, (e3) => { + var t3; + this.owningExpression.optionsisExpressionTypePromptOptions && e3.options.isExpressionTypePromptOptions && e3.options.setRequireAudio(this.owningExpression.options.requiresAudio), (null === (t3 = this.owningExpression.options) || void 0 === t3 ? void 0 : t3.allowSecure) && (e3.options.allowSecure = true), e3.initializeDesignTime(), this.outOfService && (e3.outOfService = true); + }); + } + getInternalExpressions() { + return r2.default.filter(this._builderPartExpressions, (e3) => !e3.outOfService); + } + _replaceUsages(e3, t3, i3) { + super._replaceUsages(e3, t3, i3), r2.default.each(this._builderPartExpressions, (n3) => { + r2.default.isFunction(n3.replaceUsages) && n3.replaceUsages(e3, t3, i3); + }); + } + _buildExpressionGeneration() { + const e3 = []; + return r2.default.each(this.builderPartExpressions, (t3) => { + t3.processText(true), e3.push(t3.getEmbeddableExpressionText() || ""); + }), this.builderPartDef.getExpressionGenerator(this) ? 1 === e3.length && this.builderPartDef.useStringLiteralProcessing && this.builderPartDef.useStringLiteralProcessing(this.builderViewModel, this, e3[0]) ? this.builderPartDef.generators.stringLiteralGenerator ? this.createGenerationResult(this.builderPartDef.generators.stringLiteralGenerator, e3) : this.createSingleStringGenerationResult(e3) : this.createGenerationResult(this.builderPartDef.getExpressionGenerator(this), e3) : (e3.length > 1 && S.traceOnce(`multipleEmbeddableExpressions-${this.builderPartDefId}`, (e4) => e4.error(`The builder part instance for the builder part definition ${this.builderPartDefId} has no expression wrapper text but multiple embeddable expression text instances. Returning the first embeddable expression text only.`)), e3.length > 0 ? this.createSingleStringGenerationResult(e3) : void 0); + } + _processOutOfService(e3) { + super._processOutOfService(e3), r2.default.each(this._builderPartExpressions, (t3) => { + t3.outOfService = e3; + }); + } + objEvent_expressionValueChanged() { + this._fireBuilderPartExpressionTextChanged(); + } + get className() { + return "BuilderPartWithExpressionsViewModel"; + } + get isBuilderPartWithExpressionsViewModel() { + return true; + } + get builderPartDisplayLabel() { + return this.builderPartDef ? this.builderPartDef.name : void 0; + } + get builderPartExpressions() { + return this._builderPartExpressions; + } + set builderPartExpressions(e3) { + d.ParameterValidator.expectExpression(e3, () => u.ParameterInfo.createPropertySet(this.className, "builderPartExpressions", "value"), true), this._builderPartExpressions && r2.default.each(this._builderPartExpressions, (e4) => { + T.unregisterEventSinkForEventEmitter(e4.id, this), e4.destroy(); + }), this._builderPartExpressions = e3, this._builderPartExpressions && r2.default.each(this._builderPartExpressions, (e4) => { + e4.options.setAllowModeBuilder(false), T.registerEventSinkForEventEmitter(e4.id, this); + }); + } + get isMarkdownSingleExpressionPart() { + return false; + } + setMarkdownText(e3) { + } + getExpressionDetails(e3) { + if (!this.isDestroyed) return this.getExpressionDetailParts(e3).map((e4) => e4.displayString).join(c.default.itemListing.itemSeparator); + console.error("Unable to return expression details on destroyed builder part."); + } + getExpressionDetailParts(e3) { + return ((null == e3 ? void 0 : e3.richSummary) && this._builderPartExpressions && this._builderPartExpressions[0] ? [this._builderPartExpressions[0]] : this._builderPartExpressions || []).map((t3) => { + var i3; + const n3 = (null === (i3 = null == e3 ? void 0 : e3.criteria) || void 0 === i3 ? void 0 : i3.languageTag) && (0, l.isFeatureAvailable)(p.default.botFlowsDigitalBotFlowsMultiLingualFeature); + let u2 = t3.isExpressionMode || t3.isVariableMode || a.isMatch(t3.type, h.globalTypes.prompt, a.settings.exact) && !n3, d2 = s.getDisplayText(t3, e3); + if (r2.default.isFunction(this.builderPartDef.displayStringOverride)) { + const e4 = this.builderPartDef.displayStringOverride(this, d2); + d2 = null == e4 ? void 0 : e4.displayString, u2 = null == e4 ? void 0 : e4.shouldTokenizeDisplayString; + } + d2 || (d2 = y.literal.empty, u2 = true); + let c2, _2 = false; + d2.length > 300 ? (c2 = d2.substr(0, 300) + "\u2026", _2 = true) : c2 = d2; + const m2 = this.getFullDescription(); + return m2.info = _2 ? d2 : void 0, m2.generationId = (0, o.uuid)(), u2 && (c2 = `{${c2}}`), { displayString: c2, displayStringTrimmed: _2, expression: t3, token: u2, builderPart: this, popoverInfo: m2 }; + }); + } + _loadModel(e3, t3) { + super._loadModel(e3, t3); + const i3 = new f(); + this._builderPartExpressions || (this._builderPartExpressions = []); + const n3 = g.default.getBuilderPartDefById(this.builderPartModel.builderPartDefId); + if (n3) for (let r3 = 0; r3 < n3.expressionDefs.length; r3++) { + const o2 = n3.expressionDefs[r3].type.createExpressionOptionClass(); + n3.expressionDefs[r3].descriptionInfo && o2.setDescriptionInfo(n3.expressionDefs[r3].descriptionInfo.name, n3.expressionDefs[r3].descriptionInfo.description), n3.expressionDefs[r3].configureOptionsCallback && n3.expressionDefs[r3].configureOptionsCallback(o2), o2.setAllowModeBuilder(false), o2.setDoNotTrackUsages(true); + const a2 = _.expression(e3.parentFlow, e3.parent, t3.builderPartExpressions && 0 === t3.builderPartExpressions.length ? i3 : i3.reviveItem(t3.builderPartExpressions[r3], f), n3.expressionDefs[r3].label, n3.expressionDefs[r3].type, e3.propertyName, o2); + t3.builderPartExpressions[r3] = a2.model, T.registerEventSinkForEventEmitter(a2.id, this), this.addExpression(a2); + } + } + _validatePart(e3, t3) { + const i3 = super._validatePart(e3, t3); + if (r2.default.each(this.builderPartExpressions, (e4) => { + e4.validate(t3); + }), !i3 || 0 === this.builderPartExpressions.length) return i3; + let n3; + for (n3 = 0; n3 < this.builderPartExpressions.length; n3++) if (this.builderPartExpressions[n3].hasError) return e3.addError(this, y.builders.builderPartErrorGeneric), false; + for (n3 = 0; n3 < this.builderPartExpressions.length; n3++) this.builderPartExpressions[n3].hasWarning ? e3.addWarning(this, y.builders.builderPartWarningGeneric) : this.builderPartExpressions[n3].hasInfo && e3.addInfo(this, y.builders.builderPartInfoGeneric); + return true; + } + _addClipboardDependencies(e3) { + super._addClipboardDependencies(e3), r2.default.each(this.builderPartExpressions, (t3) => { + t3.addClipboardDependencies(e3); + }); + } + _destroy() { + this.builderPartExpressions = void 0, super._destroy(); + } + } + t2.default = A; + }, 16912: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = i2(30801), o = n2.__importDefault(i2(11210)); + class a extends o.default { + constructor(e3) { + super(e3); + } + get _actionTypeId() { + return r2.clearActiveIntentActionType; + } + get displayTypeName() { + return "ArchActionClearActiveIntent"; + } + get isArchActionClearActiveIntent() { + return true; + } + } + t2.default = a; + }, 16926: (e2, t2, i2) => { + const n2 = i2(92140); + function r2() { + this.id = void 0, this.description = void 0, this.engineVersion = void 0, this.intents = void 0, this.entities = void 0, this.entityTypes = void 0, this.language = void 0, this.trainingStatus = void 0, this.languageVersions = void 0, r2.baseConstructor.apply(this, arguments); + } + i2(45214).extend(r2, "NLUDomainVersion"), Object.defineProperties(r2.prototype, { getConfiguration: { value: function(e3, t3) { + if (t3?.isForFlowYaml) { + const e4 = n2.clone(this); + return delete e4.id, delete e4.description, delete e4.engineVersion, delete e4.trainingStatus, e4; + } + return this; + } } }), e2.exports = r2; + }, 16928: (e2) => { + "use strict"; + e2.exports = require("path"); + }, 16945: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importDefault(i2(92140)), o = n2.__importStar(i2(10798)), a = n2.__importStar(i2(27099)), s = n2.__importDefault(i2(98114)), l = i2(55909), u = i2(33951), d = n2.__importDefault(i2(41898)); + class c extends d.default { + constructor(e3, t3, i3, n3, o2, a2, s2, d2, c2, p, _, h, m) { + if (super(e3, t3, i3, d2), Object.defineProperties(this, { _categories: { value: [], writable: true }, _descriptionInfo: { value: {}, writable: true }, _helpTopic: { value: c2, writable: true }, _requiredChannelTypes: { value: void 0, writable: true }, _requiredFeatureToggle: { value: p }, _requiredFeatureConfig: { value: _ }, _resultExpressionType: { value: o2, writable: true }, _restrictToFlowTypes: { value: void 0, writable: true }, _version: { value: n3, writable: true } }), this.sortValue = m, u.ParameterValidator.expectArrayOrString(a2, () => l.ParameterInfo.createConstructorParameter(this.className, "restrictToFlowTypeOrTypes"), true), r2.default.isArray(a2)) { + this._restrictToFlowTypes = []; + for (const e4 of a2) this._restrictToFlowTypes.push(u.ParameterValidator.expectFlowType(e4, () => l.ParameterInfo.createConstructorParameter(this.className, "restrictToFlowTypeOrTypes"))); + } else r2.default.isString(a2) && (this._restrictToFlowTypes = [u.ParameterValidator.expectFlowType(a2, () => l.ParameterInfo.createConstructorParameter(this.className, "restrictToFlowTypeOrTypes"))]); + if (r2.default.isArray(h)) { + this._requiredChannelTypes = []; + for (const e4 of h) this._requiredChannelTypes.push(u.ParameterValidator.expectChannelType(e4, () => l.ParameterInfo.createConstructorParameter(this.className, "requiredChannelTypeOrTypes"))); + } else h && (this._requiredChannelTypes = [u.ParameterValidator.expectChannelType(h, () => l.ParameterInfo.createConstructorParameter(this.className, "requiredChannelTypeOrTypes"))]); + if (u.ParameterValidator.expectArrayOrString(s2, () => l.ParameterInfo.createConstructorParameter(this.className, "categoryIdentifierOrIdentifiers"), true), r2.default.isArray(s2)) { + this._categories = []; + for (const e4 of s2) this._categories.push(u.ParameterValidator.expectString(e4, () => l.ParameterInfo.createConstructorParameter(this.className, "categoryIdentifierOrIdentifiers"))); + } else r2.default.isString(s2) && (this._categories = [u.ParameterValidator.expectString(s2, () => l.ParameterInfo.createConstructorParameter(this.className, "categoryIdentifierOrIdentifiers"))]); + } + get className() { + return "BaseCommonMetaData"; + } + get categories() { + return this._categories; + } + get isBaseCommonMetaData() { + return true; + } + get resultExpressionType() { + return this._resultExpressionType; + } + get requiredFeatureToggle() { + return this._requiredFeatureToggle; + } + get helpTopic() { + return this._helpTopic; + } + get requiredFeatureConfig() { + return this._requiredFeatureConfig; + } + isMatch(e3) { + return e3 && e3.id === this.id; + } + get meetsFeatureRequirements() { + return (!this._requiredFeatureToggle || a.isEnabled(this._requiredFeatureToggle)) && (!this._requiredFeatureConfig || o.isFeatureAvailable(this._requiredFeatureConfig)); + } + isAvailableForFlow(e3) { + return e3.destinationFlowTypes.every((e4) => this.isAvailableForFlowType(e4, true)); + } + isAvailableForFlowType(e3, t3) { + var i3; + if (u.ParameterValidator.expectFlowType(e3, () => l.ParameterInfo.createFunctionParameter(this.className, "isAvailableForFlowType", "flowTypeToCheck")), !t3 && !this.meetsFeatureRequirements) return false; + if (!this._isAvailableForFlowType(e3)) return false; + if (this._requiredChannelTypes) { + const t4 = null === (i3 = s.default.getDefinitionForFlowType(e3)) || void 0 === i3 ? void 0 : i3.channelTypes; + if (r2.default.find(this._requiredChannelTypes, (e4) => !r2.default.contains(t4, e4))) return false; + } + return !this._restrictToFlowTypes || r2.default.contains(this._restrictToFlowTypes, e3); + } + _isAvailableForFlowType(e3) { + return true; + } + isInCategory(e3) { + return -1 !== r2.default.indexOf(this._categories, e3); + } + get descriptionInfo() { + return this._descriptionInfo.description = this.description, this._descriptionInfo.name = this.name, this._descriptionInfo; + } + get version() { + return this._version; + } + } + t2.default = c; + }, 16958: (e2, t2, i2) => { + let n2 = null; + try { + if (i2(6697)) n2 = i2(39958); + else { + const e3 = i2(29546); + n2 = i2(87860)("./" + e3.getCurrentLanguage() + "/builder.js"); + } + } catch (e3) { + n2 = i2(39958); + } + n2.then && n2.then((t3) => { + e2.exports = t3; + }), e2.exports = n2; + }, 17021: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importDefault(i2(96481)), o = n2.__importDefault(i2(56549)), a = n2.__importDefault(i2(94225)), s = i2(30801), l = i2(99835), u = i2(96950), d = i2(25130); + class c extends r2.default { + constructor(e3) { + super(e3); + } + get _actionTypeId() { + return s.botConnectorActionType; + } + get displayTypeName() { + return this._scriptingName; + } + addSessionVariableOutputNameValuePair(e3, t3) { + return this._checkItemIsValidLiteralString(this._infoParm("nameLiteral", "addSessionVariableOutputNameValuePair"), e3, true), this._checkItemIsValidLiteralStringOrArchVariableString(this._infoParm("outputVariable", "addSessionVariableOutputNameValuePair"), t3, true), this.sessionVariableOutputs._addNameValueAssignment(e3, t3, true, true); + } + get botConnectorOutputsFailure() { + return this._coreActionViewModel.errorBindings ? this.coreFactory.createArchWrapper(this._coreActionViewModel.errorBindings) : null; + } + get isArchActionCallBotConnector() { + return true; + } + get intentSlots() { + return this.coreFactory.createArchWrapper(this._getCoreViewModel().outputs); + } + get sessionVariableOutputs() { + const e3 = this._getCoreViewModel().outputSessionVariables; + if (e3) return this.coreFactory.createArchBaseValueContainer(e3); + } + setBotByIdAsync(e3, t3, i3, r3) { + return n2.__awaiter(this, void 0, void 0, function* () { + this._checkItemIsValidLiteralString(this._infoParm("botConnectorIntegrationId", "setBotByIdAsync"), e3, false), this._checkItemIsValidLiteralString(this._infoParm("botConnectorBotId", "setBotByIdAsync"), t3, false), this._checkItemIsValidLiteralString(this._infoParm("botConnectorBotVersionId", "setBotByIdAsync"), i3, false), this._checkItemIsValidFunction(this._infoParm("callbackFunction", "setBotByIdAsync"), r3, true); + const n3 = yield o.default.findItemByIdAsync(l.botConnectorIntegrationManager, e3, "bot integration"); + this.logNote("Found the bot integration named '" + n3.name + "' for the integration ID of '" + e3 + "'"), this._getCoreViewModel().setBotIntegrationByViewModel(n3); + const s2 = yield o.default.findItemByIdAsync(u.botConnectorManager, t3, "bot connector bot", { integrationId: e3 }); + this.logNote("Found the bot connector named '" + s2.name + "' for the bot ID of '" + t3 + "'"), this._getCoreViewModel().setBotCategoryByViewModel(s2); + const c2 = yield o.default.findItemByIdAsync(d.botConnectorVersionManager, i3, "bot connector bot version", { integrationId: e3, botId: t3 }); + return this.logNote("Found the Bot Connector version named '" + c2.name + "' for the version ID of '" + i3 + "'"), this._getCoreViewModel().setBotRunnableByViewModel(c2), a.default.executeCallback(this, "setBotByIdAsync", r3, this); + }); + } + setBotByNameAsync(e3, t3, i3, r3) { + return n2.__awaiter(this, void 0, void 0, function* () { + this._checkItemIsValidLiteralString(this._infoParm("botConnectorIntegrationName", "setBotByNameAsync"), e3, false), this._checkItemIsValidLiteralString(this._infoParm("botConnectorBotName", "setBotByNameAsync"), t3, false), this._checkItemIsValidLiteralString(this._infoParm("botConnectorBotVersionName", "setBotByNameAsync"), i3, false), this._checkItemIsValidFunction(this._infoParm("callbackFunction", "setBotByIdAsync"), r3, true); + const n3 = "call bot connector action", s2 = yield o.default.findItemByValueAsync(l.botConnectorIntegrationManager, e3, n3, null, null); + this.logNote(`Found info for the integration named '${s2.name}' for the passed integration name of '${e3}'. Getting bot details.`), this._getCoreViewModel().setBotIntegrationByViewModel(s2); + const c2 = yield o.default.findItemByValueAsync(u.botConnectorManager, t3, n3, null, null, null, { integrationId: s2.id }); + this.logNote(`Found info for the bot named '${c2.name}' for the passed bot name of '${t3}'. Getting bot version details.`), this._getCoreViewModel().setBotCategoryByViewModel(c2); + const p = yield o.default.findItemByIdAsync(d.botConnectorVersionManager, i3, "bot connector bot version", { integrationId: s2.id, botId: c2.id }); + return this._getCoreViewModel().setBotRunnableByViewModel(p), a.default.executeCallback(this, "setBotByNameAsync", r3, this); + }); + } + } + t2.default = c; + }, 17102: (e2, t2, i2) => { + "use strict"; + var n2, r2, o, a, s, l; + Object.defineProperty(t2, "__esModule", { value: true }); + const u = i2(31635), d = (u.__importStar(i2(12847)), u.__importStar(i2(24032))), c = u.__importStar(i2(36781)), p = u.__importStar(i2(58380)), _ = i2(55299), h = d.getTopic("BaseFlowElement"); + class m extends _.BaseClass { + constructor(e3, t3) { + super(), n2.set(this, []), r2.set(this, []), o.set(this, void 0), a.set(this, void 0), s.set(this, false), l.set(this, false), this.supportsInitializeDesignTime = true, u.__classPrivateFieldSet(this, o, e3, "f"), u.__classPrivateFieldSet(this, a, t3 || e3, "f"); + } + get isBaseFlowElement() { + return true; + } + destroy() { + if (this.isDestroying) return false; + if (this.isDestroyed) return false; + this.isDestroying = true; + try { + this._preDestroy(); + } catch (e3) { + h.exceptionWithErrorObjectInfo(e3, "Error in _preDestroy processing.", this, true); + } + try { + this._destroy(); + } catch (e3) { + h.exceptionWithErrorObjectInfo(e3, "Error in _destroy processing.", this, true); + } finally { + this.isDestroyed = true, this.isDestroying = false; + } + try { + this._postDestroy(); + } catch (e3) { + h.exceptionWithErrorObjectInfo(e3, "Error in _postDestroy processing.", this, true); + } + return true; + } + get isDestroying() { + return u.__classPrivateFieldGet(this, l, "f"); + } + set isDestroying(e3) { + u.__classPrivateFieldSet(this, l, e3, "f"); + } + get isDestroyed() { + return u.__classPrivateFieldGet(this, s, "f"); + } + set isDestroyed(e3) { + u.__classPrivateFieldSet(this, s, e3, "f"); + } + get isDestroyedOrDestroying() { + return u.__classPrivateFieldGet(this, s, "f") || u.__classPrivateFieldGet(this, l, "f"); + } + _preDestroy() { + } + _destroy() { + } + _postDestroy() { + p.cleanUpAutoCleanupWatchList(u.__classPrivateFieldGet(this, n2, "f")), u.__classPrivateFieldGet(this, n2, "f").length = 0, u.__classPrivateFieldGet(this, r2, "f").forEach((e3) => e3()), u.__classPrivateFieldGet(this, r2, "f").length = 0; + } + addAutoCleanedUpEventListener(e3, t3) { + c.emitter.on(e3, t3), u.__classPrivateFieldGet(this, r2, "f").push(() => c.emitter.removeListener(e3, t3)); + } + addAutoCleanedUpSubscription(e3) { + u.__classPrivateFieldGet(this, r2, "f").push(() => e3.unsubscribe()); + } + addAutoCleanedUpEventSinkWatch(e3, t3, i3) { + p.addToAutoCleanupWatchList(u.__classPrivateFieldGet(this, n2, "f"), e3, t3, i3); + } + get id() { + return this.className; + } + get parentFlow() { + return u.__classPrivateFieldGet(this, o, "f"); + } + get topParentFlow() { + return u.__classPrivateFieldGet(this, o, "f").topParentFlow; + } + get parent() { + return u.__classPrivateFieldGet(this, a, "f"); + } + _resetParent(e3) { + u.__classPrivateFieldSet(this, a, e3, "f"); + } + getNodeName() { + return this.getDisplayName(); + } + getConfiguration(e3, t3, i3) { + } + initializeDesignTime() { + this._initializeDesignTimeCalled = true; + } + get initializeDesignTimeCalled() { + return this._initializeDesignTimeCalled; + } + loadConfiguration(e3) { + } + search(e3) { + } + validate(e3) { + } + updateDependencies() { + } + get isDisplayableNode() { + return true; + } + get showInFlowSize() { + return this.isDisplayableNode; + } + getNodeToNavigateToOnDelete() { + let e3 = this.parent; + for (; e3; ) { + if (!e3.isDestroyed) return e3; + e3 = e3.parent; + } + if (this.parentFlow) return this.parentFlow.startUpObject; + } + toString() { + return `class: '${this.className || ""}', id: '${this.id}'`; + } + } + n2 = /* @__PURE__ */ new WeakMap(), r2 = /* @__PURE__ */ new WeakMap(), o = /* @__PURE__ */ new WeakMap(), a = /* @__PURE__ */ new WeakMap(), s = /* @__PURE__ */ new WeakMap(), l = /* @__PURE__ */ new WeakMap(), t2.default = m; + }, 17186: (e2) => { + e2.exports = { AED: { displayName: "United Arab Emirates Dirham" }, AFN: { displayName: "Afghan Afghani" }, ALL: { displayName: "Albanian Lek" }, AMD: { displayName: "Armenian Dram" }, ANG: { displayName: "Netherlands Antillean Guilder" }, AOA: { displayName: "Angolan Kwanza" }, ARS: { displayName: "Argentine Peso" }, AUD: { displayName: "Australian Dollar" }, AWG: { displayName: "Aruban Florin" }, AZN: { displayName: "Azerbaijani Manat" }, BAM: { displayName: "Bosnia-Herzegovina Convertible Mark" }, BBD: { displayName: "Barbadian Dollar" }, BDT: { displayName: "Bangladeshi Taka" }, BGN: { displayName: "Bulgarian Lev" }, BHD: { displayName: "Bahraini Dinar" }, BIF: { displayName: "Burundian Franc" }, BMD: { displayName: "Bermudan Dollar" }, BND: { displayName: "Brunei Dollar" }, BOB: { displayName: "Bolivian Boliviano" }, BRL: { displayName: "Brazilian Real" }, BSD: { displayName: "Bahamian Dollar" }, BTN: { displayName: "Bhutanese Ngultrum" }, BWP: { displayName: "Botswanan Pula" }, BYR: { displayName: "Belarusian Ruble" }, BZD: { displayName: "Belize Dollar" }, CAD: { displayName: "Canadian Dollar" }, CDF: { displayName: "Congolese Franc" }, CHF: { displayName: "Swiss Franc" }, CLP: { displayName: "Chilean Peso" }, CNY: { displayName: "Chinese Yuan" }, COP: { displayName: "Colombian Peso" }, CRC: { displayName: "Costa Rican Col\xF3n" }, CUC: { displayName: "Cuban Convertible Peso" }, CUP: { displayName: "Cuban Peso" }, CVE: { displayName: "Cape Verdean Escudo" }, CZK: { displayName: "Czech Republic Koruna" }, DJF: { displayName: "Djiboutian Franc" }, DKK: { displayName: "Danish Krone" }, DOP: { displayName: "Dominican Peso" }, DZD: { displayName: "Algerian Dinar" }, EGP: { displayName: "Egyptian Pound" }, ERN: { displayName: "Eritrean Nakfa" }, ETB: { displayName: "Ethiopian Birr" }, EUR: { displayName: "Euro" }, FJD: { displayName: "Fijian Dollar" }, FKP: { displayName: "Falkland Islands Pound" }, GBP: { displayName: "British Pound Sterling" }, GEL: { displayName: "Georgian Lari" }, GHS: { displayName: "Ghanaian Cedi" }, GIP: { displayName: "Gibraltar Pound" }, GMD: { displayName: "Gambian Dalasi" }, GNF: { displayName: "Guinean Franc" }, GTQ: { displayName: "Guatemalan Quetzal" }, GWP: { displayName: "Guinea-Bissau Peso" }, GYD: { displayName: "Guyanaese Dollar" }, HKD: { displayName: "Hong Kong Dollar" }, HNL: { displayName: "Honduran Lempira" }, HRK: { displayName: "Croatian Kuna" }, HTG: { displayName: "Haitian Gourde" }, HUF: { displayName: "Hungarian Forint" }, IDR: { displayName: "Indonesian Rupiah" }, ILS: { displayName: "Israeli New Sheqel" }, INR: { displayName: "Indian Rupee" }, IQD: { displayName: "Iraqi Dinar" }, IRR: { displayName: "Iranian Rial" }, ISK: { displayName: "Icelandic Kr\xF3na" }, JMD: { displayName: "Jamaican Dollar" }, JOD: { displayName: "Jordanian Dinar" }, JPY: { displayName: "Japanese Yen" }, KES: { displayName: "Kenyan Shilling" }, KGS: { displayName: "Kyrgystani Som" }, KHR: { displayName: "Cambodian Riel" }, KMF: { displayName: "Comorian Franc" }, KPW: { displayName: "North Korean Won" }, KRW: { displayName: "South Korean Won" }, KWD: { displayName: "Kuwaiti Dinar" }, KYD: { displayName: "Cayman Islands Dollar" }, KZT: { displayName: "Kazakhstani Tenge" }, LAK: { displayName: "Laotian Kip" }, LBP: { displayName: "Lebanese Pound" }, LKR: { displayName: "Sri Lankan Rupee" }, LRD: { displayName: "Liberian Dollar" }, LSL: { displayName: "Lesotho Loti" }, LTL: { displayName: "Lithuanian Litas" }, LVL: { displayName: "Latvian Lats" }, LYD: { displayName: "Libyan Dinar" }, MAD: { displayName: "Moroccan Dirham" }, MDL: { displayName: "Moldovan Leu" }, MGA: { displayName: "Malagasy Ariary" }, MKD: { displayName: "Macedonian Denar" }, MMK: { displayName: "Myanmar Kyat" }, MNT: { displayName: "Mongolian Tugrik" }, MOP: { displayName: "Macanese Pataca" }, MRO: { displayName: "Mauritanian Ouguiya" }, MUR: { displayName: "Mauritian Rupee" }, MVR: { displayName: "Maldivian Rufiyaa" }, MWK: { displayName: "Malawian Kwacha" }, MXN: { displayName: "Mexican Peso" }, MYR: { displayName: "Malaysian Ringgit" }, MZE: { displayName: "Mozambican Escudo" }, MZN: { displayName: "Mozambican Metical" }, NAD: { displayName: "Namibian Dollar" }, NGN: { displayName: "Nigerian Naira" }, NIO: { displayName: "Nicaraguan C\xF3rdoba" }, NOK: { displayName: "Norwegian Krone" }, NPR: { displayName: "Nepalese Rupee" }, NZD: { displayName: "New Zealand Dollar" }, OMR: { displayName: "Omani Rial" }, PAB: { displayName: "Panamanian Balboa" }, PEN: { displayName: "Peruvian Nuevo Sol" }, PGK: { displayName: "Papua New Guinean Kina" }, PHP: { displayName: "Philippine Peso" }, PKR: { displayName: "Pakistani Rupee" }, PLN: { displayName: "Polish Zloty" }, PYG: { displayName: "Paraguayan Guarani" }, QAR: { displayName: "Qatari Rial" }, RON: { displayName: "Romanian Leu" }, RSD: { displayName: "Serbian Dinar" }, RUB: { displayName: "Russian Ruble" }, RWF: { displayName: "Rwandan Franc" }, SAR: { displayName: "Saudi Riyal" }, SBD: { displayName: "Solomon Islands Dollar" }, SCR: { displayName: "Seychellois Rupee" }, SDG: { displayName: "Sudanese Pound" }, SEK: { displayName: "Swedish Krona" }, SGD: { displayName: "Singapore Dollar" }, SHP: { displayName: "Saint Helena Pound" }, SKK: { displayName: "Slovak Koruna" }, SLL: { displayName: "Sierra Leonean Leone" }, SOS: { displayName: "Somali Shilling" }, SRD: { displayName: "Surinamese Dollar" }, SSP: { displayName: "South Sudanese Pound" }, STD: { displayName: "S\xE3o Tom\xE9 and Pr\xEDncipe Dobra" }, SVC: { displayName: "Salvadoran Col\xF3n" }, SYP: { displayName: "Syrian Pound" }, SZL: { displayName: "Swazi Lilangeni" }, THB: { displayName: "Thai Baht" }, TJS: { displayName: "Tajikistani Somoni" }, TMT: { displayName: "Turkmenistani Manat" }, TND: { displayName: "Tunisian Dinar" }, TOP: { displayName: "Tongan Pa\u02BBanga" }, TRY: { displayName: "Turkish Lira" }, TTD: { displayName: "Trinidad and Tobago Dollar" }, TWD: { displayName: "New Taiwan Dollar" }, TZS: { displayName: "Tanzanian Shilling" }, UAH: { displayName: "Ukrainian Hryvnia" }, UGX: { displayName: "Ugandan Shilling" }, USD: { displayName: "US Dollar" }, UYU: { displayName: "Uruguayan Peso" }, UZS: { displayName: "Uzbekistan Som" }, VEF: { displayName: "Venezuelan Bol\xEDvar" }, VND: { displayName: "Vietnamese Dong" }, VUV: { displayName: "Vanuatu Vatu" }, WST: { displayName: "Samoan Tala" }, XAF: { displayName: "CFA Franc BEAC" }, XCD: { displayName: "East Caribbean Dollar" }, XOF: { displayName: "CFA Franc BCEAO" }, XPF: { displayName: "CFP Franc" }, YER: { displayName: "Yemeni Rial" }, ZAR: { displayName: "South African Rand" }, ZMW: { displayName: "Zambian Kwacha" } }; + }, 17214: function(e2, t2, i2) { + "use strict"; + var n2, r2 = this && this.__extends || (n2 = function(e3, t3) { + return n2 = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(e4, t4) { + e4.__proto__ = t4; + } || function(e4, t4) { + for (var i3 in t4) Object.prototype.hasOwnProperty.call(t4, i3) && (e4[i3] = t4[i3]); + }, n2(e3, t3); + }, function(e3, t3) { + if ("function" != typeof t3 && null !== t3) throw new TypeError("Class extends value " + String(t3) + " is not a constructor or null"); + function i3() { + this.constructor = e3; + } + n2(e3, t3), e3.prototype = null === t3 ? Object.create(t3) : (i3.prototype = t3.prototype, new i3()); + }); + Object.defineProperty(t2, "__esModule", { value: true }), t2.OperatorSubscriber = t2.createOperatorSubscriber = void 0; + var o = i2(2708); + t2.createOperatorSubscriber = function(e3, t3, i3, n3, r3) { + return new a(e3, t3, i3, n3, r3); + }; + var a = (function(e3) { + function t3(t4, i3, n3, r3, o2, a2) { + var s = e3.call(this, t4) || this; + return s.onFinalize = o2, s.shouldUnsubscribe = a2, s._next = i3 ? function(e4) { + try { + i3(e4); + } catch (e5) { + t4.error(e5); + } + } : e3.prototype._next, s._error = r3 ? function(e4) { + try { + r3(e4); + } catch (e5) { + t4.error(e5); + } finally { + this.unsubscribe(); + } + } : e3.prototype._error, s._complete = n3 ? function() { + try { + n3(); + } catch (e4) { + t4.error(e4); + } finally { + this.unsubscribe(); + } + } : e3.prototype._complete, s; + } + return r2(t3, e3), t3.prototype.unsubscribe = function() { + var t4; + if (!this.shouldUnsubscribe || this.shouldUnsubscribe()) { + var i3 = this.closed; + e3.prototype.unsubscribe.call(this), !i3 && (null === (t4 = this.onFinalize) || void 0 === t4 || t4.call(this)); + } + }, t3; + })(o.Subscriber); + t2.OperatorSubscriber = a; + }, 17302: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = i2(30801), o = n2.__importDefault(i2(90897)); + class a extends o.default { + constructor(e3) { + super(e3), this._externalContactId = this.coreFactory.createArchWrapper(e3.externalContactId), this._getAssignedCustomerIntentsResult = this.coreFactory.createArchWrapper(e3.getAssignedCustomerIntentsResult); + } + get _actionTypeId() { + return r2.getAssignedCustomerIntentsActionType; + } + get displayTypeName() { + return this._scriptingName; + } + get getAssignedCustomerIntentsOutputsFailure() { + return this._coreActionViewModel.errorBindings ? this.coreFactory.createArchWrapper(this._coreActionViewModel.errorBindings) : null; + } + get isArchActionGetAssignedCustomerIntents() { + return true; + } + get externalContactId() { + return this._externalContactId; + } + get getAssignedCustomerIntentsResult() { + return this._getAssignedCustomerIntentsResult; + } + } + t2.default = a; + }, 17314: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.PhoneNumberType = void 0; + const n2 = i2(31635), r2 = n2.__importStar(i2(55656)), o = i2(48112), a = i2(27844), s = i2(80428), l = i2(94765), u = n2.__importDefault(i2(22226)); + class d extends l.ExpressionType { + constructor(e3, t3, i3) { + super(e3, t3, i3); + } + get className() { + return "PhoneNumberType"; + } + createExpressionOptionClass() { + return new o.ExpressionTypePhoneNumberOptions(); + } + _getLiteralValueOfExpression() { + return ""; + } + convertLitToExpression(e3, t3) { + return "ToPhoneNumber(" + (u.default.getQuotedExpressionStringLiteral(t3) || "") + ")"; + } + validateLiteral(e3, t3) { + super.validateLiteral(e3, t3); + const i3 = r2.validateLiteralString(t3.text, t3.label); + return !i3 || (t3.setParseError(i3), e3.addError(t3, i3, void 0, true), false); + } + getListManagerForExpression(e3) { + var t3; + return (null === (t3 = e3.options) || void 0 === t3 ? void 0 : t3.literalUsesSmsPhoneNumberDropdown) ? a.smsPhoneNumberManager : super.getListManagerForExpression(e3); + } + } + t2.PhoneNumberType = d, d.typeIdentifier = s.expressionTypeNames.phoneNumber; + }, 17322: (e2, t2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.bulkObjectOperationFailure = function(e3, t3, i2, n2, r2) { + return { item: e3, displayName: t3, errorMessage: i2, consumers: n2, divisions: r2 }; + }; + }, 17343: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(84655)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "digitalAudio"; + } + get displayTypeName() { + return "ArchVariableDigitalAudio"; + } + get initialValue() { + return this._initialValue; + } + get isArchVariableDigitalAudio() { + return true; + } + } + t2.default = r2; + }, 17357: (e2, t2, i2) => { + "use strict"; + const n2 = i2(31635), r2 = i2(96618), o = n2.__importDefault(i2(73198)), a = i2(80428), s = i2(67607), l = i2(26954), u = i2(9290), d = i2(9290), c = i2(9290), p = i2(12179), _ = i2(12457), h = n2.__importDefault(i2(97891)), m = i2(42098), g = n2.__importDefault(i2(78791)), f = i2(47957); + class T extends g.default { + constructor(e3, t3) { + super(e3), this.editor_testing_tag = "TransferUserAction", this.user = null, this._loadModel(t3); + } + getDetails() { + var e3; + const t3 = [], i3 = []; + return this.user && this.user.text && (t3.push(f.user.label), i3.push(this.user.text)), (null === (e3 = this.alertOnTransfer) || void 0 === e3 ? void 0 : e3.text) && !this.alertOnTransfer.outOfService && (t3.push(f.transfer.alertOnTransfer), i3.push(this.alertOnTransfer.text)), new _.ActionDetails(t3, i3); + } + static get managedProperties() { + return [(0, m.createTransferConnectTimeoutProperty)(f.expression.noValue.selectionRuntimeEvaluation.connectTimeout.userTransferTimeout), { label: f.user.label, options: l.ExpressionTypeUserOptions.create((e3) => e3.setUiPropertyOrder(10).setIninTestingField("userTransferExpression")), yamlOptions: T.createYamlOptions("user", (e3) => e3.setPropertyName("targetUser").setExportOrder(20)), property: "user", type: a.expressionTypeNames.userQueue }, { label: f.transfer.allowVoicemail, options: s.ExpressionTypeBooleanOptions.create((e3) => e3.setUiPropertyOrder(20).setIninTestingField("allowVoicemail").setDefaultText(o.default.true)), yamlOptions: T.createYamlOptions("allowVoicemail", (e3) => e3.setPropertyName("allowVoicemailRollover").setExportOrder(30)), property: "allowVoicemail", type: a.expressionTypeNames.boolean, supportedFlowTypes: r2.flowTypes.flowTypesAllVxmlgen }, { label: f.transfer.alertOnTransfer, property: "alertOnTransfer", description: f.transfer.alertOnTransferDescription, options: s.ExpressionTypeBooleanOptions.create((e3) => e3.setDescriptionInfo(f.transfer.alertOnTransfer, f.transfer.alertOnTransferDescription).setUiPropertyOrder(30).setIninTestingField("alertOnTransfer").setDefaultText(o.default.true)), yamlOptions: T.createYamlOptions("alertOnTransfer", (e3) => e3.setPropertyName("alertOnTransfer").setExportOrder(40)), type: a.expressionTypeNames.boolean, supportedFlowTypes: [r2.flowTypes.flowTypeWorkitem] }]; + } + _getPossibleErrors() { + return this.parentFlow.isNluFlow ? u.userTransferFailureReasonsForBotFlowType : this.parentFlow.isWorkitemFlow ? c.userTransferFailureReasonsForWorkitemFlowType : d.userTransferFailureReasons; + } + } + T.info = h.default.createActionInfo({ actionClass: T, canBeInTask: true, canBeTreeNode: true, helpTopic: p.helpTopics.actions.transferUser, modelClass: i2(68657), name: f.actions.transfers.user, scriptingName: "ArchActionTransferToUser" }), t2.A = T; + }, 17405: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(81574)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get displayTypeName() { + return "ArchBaseValueBasic"; + } + get isArchBaseValueBasic() { + return true; + } + } + t2.default = r2; + }, 17466: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.ExpressionTypeLanguageSkillOptions = void 0; + const n2 = i2(71056); + class r2 extends n2.ExpressionTypeNetworkObjectOptions { + static create(e3, t3) { + return new this(t3).invokeOptionsCallback(e3); + } + constructor(e3) { + super(e3); + } + get className() { + return "ExpressionTypeLanguageSkillOptions"; + } + get isExpressionLanguageSkillOptions() { + return true; + } + } + t2.ExpressionTypeLanguageSkillOptions = r2; + }, 17471: (e2, t2, i2) => { + "use strict"; + const n2 = i2(31635), r2 = n2.__importDefault(i2(27203)), o = i2(53755), a = i2(21305), s = i2(60818), l = i2(12786), u = i2(12179), d = n2.__importDefault(i2(97891)), c = i2(47957); + class p extends o.BaseConversationAttributeActionViewModel { + constructor(e3, t3) { + super(e3, t3), this._loadModel(t3); + } + static createCustomJsonProperties() { + return this.createManagedPropertiesFromConfig({ includeInput: false, includeOutput: true, outputOptionsFactory: () => a.ExpressionTypeJsonOptions.create((e3) => { + e3.setAsOutput().setIsCustomJsonType(true).setIsCollection(true).setLabelOverride(c.conversationAttribute.resultLabel).setIninTestingField("customJsonOutput"); + }) }); + } + static get managedProperties() { + return [...this.createBaseManagedProperties(), this.createRecordIdsManagedProperty(), ...this.createCustomJsonProperties()]; + } + static get branchInfo() { + return r2.default.foundPartiallyFoundNotFound; + } + _getPossibleErrors() { + return l.getConversationAttributesFailureReasons; + } + } + p.info = d.default.createActionInfo({ actionClass: p, canBeInTask: true, helpTopic: u.helpTopics.actions.getConversationAttributes, modelClass: s.GetConversationAttributesActionModel, name: c.actions.getConversationAttributes, scriptingName: "ArchActionGetConversationAttributes" }), t2.A = p; + }, 17474: function(e2, t2, i2) { + "use strict"; + var n2 = this && this.__read || function(e3, t3) { + var i3 = "function" == typeof Symbol && e3[Symbol.iterator]; + if (!i3) return e3; + var n3, r3, o2 = i3.call(e3), a2 = []; + try { + for (; (void 0 === t3 || t3-- > 0) && !(n3 = o2.next()).done; ) a2.push(n3.value); + } catch (e4) { + r3 = { error: e4 }; + } finally { + try { + n3 && !n3.done && (i3 = o2.return) && i3.call(o2); + } finally { + if (r3) throw r3.error; + } + } + return a2; + }, r2 = this && this.__spreadArray || function(e3, t3) { + for (var i3 = 0, n3 = t3.length, r3 = e3.length; i3 < n3; i3++, r3++) e3[r3] = t3[i3]; + return e3; + }; + Object.defineProperty(t2, "__esModule", { value: true }), t2.bindCallbackInternals = void 0; + var o = i2(68596), a = i2(48051), s = i2(5455), l = i2(13916), u = i2(32071), d = i2(5130); + t2.bindCallbackInternals = function e3(t3, i3, c, p) { + if (c) { + if (!o.isScheduler(c)) return function() { + for (var n3 = [], r3 = 0; r3 < arguments.length; r3++) n3[r3] = arguments[r3]; + return e3(t3, i3, p).apply(this, n3).pipe(l.mapOneOrManyArgs(c)); + }; + p = c; + } + return p ? function() { + for (var n3 = [], r3 = 0; r3 < arguments.length; r3++) n3[r3] = arguments[r3]; + return e3(t3, i3).apply(this, n3).pipe(s.subscribeOn(p), u.observeOn(p)); + } : function() { + for (var e4 = this, o2 = [], s2 = 0; s2 < arguments.length; s2++) o2[s2] = arguments[s2]; + var l2 = new d.AsyncSubject(), u2 = true; + return new a.Observable(function(a2) { + var s3 = l2.subscribe(a2); + if (u2) { + u2 = false; + var d2 = false, c2 = false; + i3.apply(e4, r2(r2([], n2(o2)), [function() { + for (var e5 = [], i4 = 0; i4 < arguments.length; i4++) e5[i4] = arguments[i4]; + if (t3) { + var n3 = e5.shift(); + if (null != n3) return void l2.error(n3); + } + l2.next(1 < e5.length ? e5 : e5[0]), c2 = true, d2 && l2.complete(); + }])), c2 && l2.complete(), d2 = true; + } + return s3; + }); + }; + }; + }, 17475: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.briefInQueueShortMessageFlowListManager = void 0; + const n2 = i2(31635).__importStar(i2(24032)), r2 = i2(70726), o = i2(96618), a = i2(27862); + class s extends r2.BriefFlowListManager { + get dependencyType() { + return a.InqueueShortMessageFlow; + } + constructor() { + super(), this.topic = n2.getTopic("BriefInQueueShortMessageFlowListManager"), this.additionalQueryParams = { type: o.flowTypes.flowTypeInQueueShortMessage }, this.className = "BriefInQueueShortMessageFlowListManager", this.flowType = o.flowTypes.flowTypeInQueueShortMessage, this._initialize(); + } + } + t2.briefInQueueShortMessageFlowListManager = new s(); + }, 17485: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.nuanceMixBotManager = t2.NuanceMixBotManager = void 0; + const n2 = i2(31635), r2 = n2.__importDefault(i2(92140)), o = n2.__importStar(i2(96347)), a = n2.__importStar(i2(1360)), s = n2.__importStar(i2(24032)), l = n2.__importDefault(i2(47532)), u = i2(81801), d = i2(30801), c = n2.__importDefault(i2(90436)), p = i2(47976), _ = i2(47957), h = i2(27862), m = i2(84584); + class g extends l.default { + get requiredAuth() { + return u.externalAuthorizations.authStrings.integrationView; + } + get dependencyType() { + return h.NuanceMixBot; + } + constructor() { + super(), this.topic = s.getTopic("NuanceMixBotManager"), this._rawServerCache = {}, this.actionPropertyForUsageSearch = "bot", this.actionsForUsageSearch = [d.nuanceMixActionType], this.apiCallList = o.getBotList, this.apiCallSingle = o.getSingleBot, this.className = "NuanceMixBotManager", this.defaultMatchingStyle = a.exactMatch, this.dependencyContext = _.nuanceMix.nuanceMixBot, this.isDependentOnCategory = true, this.searchField = "name", this.securityError = true, this.uiMetadataSectionName = "nuanceMixBots", this._initialize(); + } + _createItemViewModel(e3) { + return new c.default(e3); + } + getBotCategoryForBotRunnable(e3) { + if (!r2.default.isString(e3)) return this.topic.error("Object passed to getBotCategoryForBotRunnable was not a string: " + e3), null; + const t3 = this.items[e3.toLowerCase()]; + return t3 ? p.nuanceMixIntegrationManager.getItem(t3.integrationId) : null; + } + get _networkModel() { + return m; + } + } + t2.NuanceMixBotManager = g, t2.nuanceMixBotManager = new g(); + }, 17496: (e2, t2, i2) => { + const n2 = i2(92140), r2 = i2(96348), o = i2(45421), a = i2(36742), s = i2(13126), l = i2(60094), { MenuChoiceViewModel: u } = i2(63883), { ParameterInfo: d } = i2(55909), { ParameterValidator: c } = i2(33951), p = i2(47957), _ = i2(92330), { taskActionActionType: h } = i2(30801), m = "ClipboardContentTaskViewModel"; + class g extends r2 { + constructor(e3, t3) { + super(e3, t3), Object.defineProperties(this, { _destUpconvertMenuChoiceViewModel: { writable: true } }); + } + static create(e3, t3, i3, n3) { + c.expectString(n3, () => d.createFunctionParameter(m, "create", "newContentName"), true); + const r3 = o.getFlowViewModel(e3); + if (!r3) return c.expectFlowViewModel(r3, () => d.createFunctionParameter(m, "create", "taskViewModel.parentFlow")), null; + let s2; + try { + const o2 = new a(); + return o2.configure(r3, e3, e3.getConfiguration(), n3), s2 = new g(o2, i3), s2.initialize(r3, e3, t3), s2; + } catch (e4) { + i3.logException(e4, "Unable to create clipboard content task."); + } + return s2 && s2.destroy(), null; + } + _pasteGetCoreModelForContent() { + return new _(this.cloneToRawJsonObject(this._pasteJsonObjects.content)); + } + _pasteGetCoreViewModelForCoreModel(e3, t3) { + return this._pasteAddTaskViewModelForTaskModel(e3, t3); + } + _pasteBefore(e3) { + const t3 = super._pasteBefore(e3); + return t3.isFailure || e3.destViewModel.tasks || (this._destUpconvertMenuChoiceViewModel = u.createMenuChoice(e3.destViewModel, h), this.log("Paste will be up-converting the task to an inline task. Newly created menu choice will be " + this._getNameAndIdStr(this._destUpconvertMenuChoiceViewModel))), t3; + } + _pasteAfter(e3) { + if (!n2.isUndefined(this._destUpconvertMenuChoiceViewModel)) { + let t3 = this.pastedMenuOrTaskOrActionViewModel.name; + t3 = e3.clipboardObject.pasteGetUniqueMenuChoiceName(t3, this._destUpconvertMenuChoiceViewModel.parent, true, false), this._destUpconvertMenuChoiceViewModel.name = t3, this._pasteAddMenuChoiceViewModelForMenuChoiceViewModel(e3.destViewModel, this._destUpconvertMenuChoiceViewModel), this._destUpconvertMenuChoiceViewModel.linkTask(this.pastedMenuOrTaskOrActionViewModel), this._destUpconvertMenuChoiceViewModel.resetDtmfToUniqueDtmf(), this.log("Pasted task linked to paste created menu choice " + this._getNameAndIdStr(this._destUpconvertMenuChoiceViewModel) + "."); + } + return this.createClipboardResultSuccess(); + } + _resetUpconvertViewModels() { + super._resetUpconvertViewModels(), this._destUpconvertMenuChoiceViewModel = void 0; + } + checkCanPasteClipboardContextWithDetails(e3) { + const t3 = super.checkCanPasteClipboardContextWithDetails(e3); + return t3.isFailure ? t3 : e3.destViewModel && (e3.destViewModel.isFlowViewModel || e3.destViewModel.isMenu || e3.destViewModel.isSubMenu) && (e3.destViewModel.isFlowViewModel ? e3.destViewModel.supportsReusableTasks : e3.destFlowViewModel.supportsReusableTasks) && (e3.destViewModel.isFlowViewModel ? n2.isArray(e3.destViewModel.tasks) : n2.isArray(e3.destFlowViewModel.tasks)) ? e3.destAllowableClipboardContentTypes && !n2.contains(e3.destAllowableClipboardContentTypes, l.tasks) ? this.createClipboardResultFailureCanPasteGeneric() : (this.shouldPasteAsInlineTask(e3) && (t3.messageDisplayStr = p.clipboard.content.canPaste.upConvert.task.toMenuChoice), t3) : this.createClipboardResultFailure(this._formatResourceStrForDestFlowType(e3, n2.isArray(e3.destFlowViewModel.tasks) ? p.clipboard.content.pastableLocations.task : p.clipboard.content.notSupportedByFlowType.tasks)); + } + get className() { + return m; + } + get clipboardContentType() { + return s.task; + } + get isClipboardContentTask() { + return true; + } + shouldPasteAsInlineTask(e3) { + return e3.destViewModel.isMenu || e3.destViewModel.isSubMenu; + } + } + e2.exports = g; + }, 17498: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.NO_VERSION = void 0, t2.registerConsumerDependencies = function(e3, t3, i3) { + A(e3, t3), i3.forEach((i4) => { + y(e3, t3, i4.dependencyName, i4.dependencyId, i4.dependencyVersion, i4.dependencyType, void 0, void 0, true); + }); + }, t2.registerConsumer = y, t2.registerPrompt = function(e3, t3, i3, n3) { + if (t3 !== u.SystemPrompt && t3 !== u.UserPrompt) return void console.error(`Invalid dependency type for a prompt: ${t3}`); + if (!i3) return void console.error("no flow found for dependency consumer: '" + e3 + "' which has dependency type of: " + t3); + if (!e3 && !n3) return; + const r3 = (function(e4) { + return _[e4.instanceId] || (_[e4.instanceId] = []), _[e4.instanceId]; + })(i3), a2 = e3 ? e3.toLowerCase() : void 0, s2 = { nameLower: a2, name: e3, type: t3, id: n3 }; + let l2 = n3 ? o.default.findIndex(r3, { id: n3, type: t3 }) : -1; + l2 >= 0 ? r3[l2] = o.default.defaults(r3[l2], s2) : (l2 = a2 ? o.default.findIndex(r3, { nameLower: a2, type: t3 }) : -1, l2 >= 0 ? r3[l2] = o.default.defaults(r3[l2], s2) : r3.push(s2)); + }, t2.registerNonDependencyValidationItem = S, t2.registerExpression = function(e3, i3) { + if (!e3) return; + N(e3); + const n3 = g(e3); + o.default.each(n3, (n4) => { + if (n4.isTransitory) return; + n4.registerDependencies(); + const r3 = m(n4); + if (r3) { + const o2 = n4.getLitAsString(); + if (o2) { + n4.parent.isVariableViewModel && !i3 && d.validateItem(n4.parent); + const a2 = n4.getDependencyTrackingId(); + e3.outOfService || n4.outOfService ? S(n4.parent, 0, o2, a2, r3.value) : y(n4.parent, n4, o2, a2, t2.NO_VERSION, r3); + } + } + }); + }, t2.unRegisterConsumer = A, t2.unRegisterConsumerEntirely = function(e3, t3) { + t3 || (t3 = f(e3)), t3 && (p[t3.instanceId] = o.default.reject(T(t3), (t4) => t4.consumer && t4.consumer.id === e3.id)); + }, t2.unRegisterExpression = N, t2.deleteDependencies = function(e3) { + e3 && (delete p[e3.instanceId], delete _[e3.instanceId]); + }, t2.getDependenciesForFlow = O, t2.getDependencyGraphForFlow = function(e3) { + const t3 = {}; + return o.default.each(O(e3), (e4) => { + if (e4.type.hideFromGrid) return; + const i3 = e4.version ? `-${e4.version}` : "", n3 = `${e4.type.value}${i3}-${e4.id}`; + if (t3[n3]) t3[n3].visibleUsages.push({ consumer: e4.consumer, context: e4.context }); + else { + let o2 = e4.name; + if (i3 && e4.type === u.CommonModuleFlow) { + const t4 = e4.consumer.commonModule.getCommonModuleReference(); + t4 && (o2 = (0, r2.sprintf)(c.nameAndVersion, t4.name, t4.version)); + } + t3[n3] = { id: n3, type: e4.type, name: o2, visibleUsages: [{ consumer: e4.consumer, context: e4.context }] }; + } + }), t3; + }, t2.getUnverifiedPrompts = function(e3) { + var t3; + if (!e3) return a.error("no flow passed in to getUnverifiedPrompts"), []; + const i3 = (null === (t3 = _[e3.instanceId]) || void 0 === t3 ? void 0 : t3.slice()) || []; + return e3.getEmbeddedCommonModules().forEach((e4) => { + const t4 = _[e4.instanceId]; + t4 && t4.forEach((e5) => { + i3.find((t5) => t5.id === e5.id && t5.type === e5.type) || i3.push(e5); + }); + }), i3; + }, t2.getValidationOnlyItems = function(e3) { + const t3 = o.default.clone(h[e3.instanceId]) || {}; + return e3.getEmbeddedCommonModules().forEach((e4) => { + const i3 = h[e4.instanceId]; + o.default.forEach(i3, (e5, i4) => { + t3[i4] || (t3[i4] = e5); + }); + }), t3; + }, t2.updateDependencies = function(e3, t3) { + t3 && this.deleteDependencies(e3), e3 && e3.updateDependencies(); + }; + const n2 = i2(31635), r2 = i2(17604), o = n2.__importDefault(i2(92140)), a = n2.__importStar(i2(12847)), s = i2(14394), l = i2(36781), u = i2(27862), d = i2(1115), c = i2(47957), p = {}, _ = {}, h = {}; + function m(e3) { + if (e3 && e3.type) switch (e3.type.singletonType) { + case s.globalTypes.contactList: + return u.ContactList; + case s.globalTypes.digitalAudio: + return u.DigitalAudio; + case s.globalTypes.division: + return u.Division; + case s.globalTypes.emergencyGroup: + return u.EmergencyGroup; + case s.globalTypes.file: + return u.File; + case s.globalTypes.grammar: + return u.Grammar; + case s.globalTypes.group: + return u.Group; + case s.globalTypes.image: + return u.Image; + case s.globalTypes.languageSkill: + return u.LanguageSkill; + case s.globalTypes.knowledgeBaseDocument: + return u.KnowledgeBaseDocument; + case s.globalTypes.queue: + return u.Queue; + case s.globalTypes.responseAsset: + return u.ResponseAsset; + case s.globalTypes.schedule: + return u.Schedule; + case s.globalTypes.scheduleGroup: + return u.ScheduleGroup; + case s.globalTypes.skill: + return u.Skill; + case s.globalTypes.userQueue: + return u.User; + case s.globalTypes.utilizationLabel: + return u.UtilizationLabel; + case s.globalTypes.video: + return u.Video; + case s.globalTypes.wrapupCode: + return u.WrapupCode; + } + } + function g(e3) { + if (e3.getExpressions) return e3.getExpressions(); + } + function f(e3) { + if (e3.isFlowViewModel) return e3; + let t3 = e3; + for (; t3; ) { + if (t3.flow || t3.parentFlow) return t3.flow || t3.parentFlow; + t3 = t3.parent === t3 ? null : t3.parent; + } + } + function T(e3) { + return p[e3.instanceId] || (p[e3.instanceId] = []), p[e3.instanceId]; + } + function y(e3, t3, i3, n3, r3, o2, s2, l2, u2) { + if (!e3) return void a.error("registerConsumer missing consumer parameter"); + if (!n3) return void a.error("registerConsumer missing dependencyId parameter"); + if (!o2 || !o2.isDependencyType) return void a.error(`registerConsumer missing or invalid dependencyType parameter: ${o2}`); + if (s2 || (s2 = f(e3)), !s2) return void console.error("no flow found for dependency consumer:" + e3.id); + u2 || A(e3, t3, s2); + const d2 = { consumer: e3, context: t3, name: i3, id: n3, type: o2, extraPropertiesObject: l2 }; + r3 && (d2.version = r3), T(s2).push(d2); + } + function S(e3, t3, i3, n3, r3, o2) { + if (o2 || (o2 = f(e3)), !o2) return void console.error("no flow found for dependency consumer:" + e3.id); + const a2 = (function(e4, t4) { + h[e4.instanceId] || (h[e4.instanceId] = {}); + const i4 = h[e4.instanceId]; + return i4[t4] || (i4[t4] = {}), i4[t4]; + })(o2, r3); + a2[n3] = { name: i3, id: n3 }; + } + function A(e3, t3, i3) { + i3 || (i3 = f(e3)), i3 && (p[i3.instanceId] = o.default.reject(T(i3), (i4) => i4.consumer && i4.consumer.id === e3.id && i4.context === t3)); + } + function N(e3) { + const t3 = g(e3); + o.default.each(t3, (e4) => { + if (m(e4)) { + const t4 = f(e4); + if (!t4) return; + p[t4.instanceId] = o.default.reject(T(t4), (t5) => t5.context === e4); + } + }); + } + function O(e3) { + if (!e3) return a.error("no flow passed in to getDependenciesForFlow"), []; + if (!p[e3.instanceId]) return []; + const t3 = p[e3.instanceId].slice(); + return e3.getEmbeddedCommonModules().forEach((e4) => { + const i3 = p[e4.instanceId]; + (null == i3 ? void 0 : i3.length) && t3.push(...i3.slice()); + }), t3; + } + t2.NO_VERSION = void 0, l.serviceListen(l.cleanUpFlow, (e3) => { + delete p[e3.instanceId]; + }); + }, 17512: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.FindSkillActionModel = void 0; + const n2 = i2(49574), r2 = i2(30801); + class o extends n2.BaseFindSystemObjectByNameActionModel { + constructor(e3) { + super(e3), this.__type = o.__type; + } + } + t2.FindSkillActionModel = o, o.__type = r2.findSkillActionType, o.registerType(); + }, 17548: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importDefault(i2(323)), o = n2.__importDefault(i2(22322)), a = n2.__importDefault(i2(29659)), s = { ArchTtsEngine: r2.default, archTtsEngines: o.default, ArchTtsVoice: a.default }; + t2.default = s; + }, 17552: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.getSmsPhoneNumber = t2.getSmsPhoneNumbers = void 0; + const n2 = i2(31635), r2 = i2(49756), o = i2(33416), a = n2.__importDefault(i2(36019)); + t2.getSmsPhoneNumbers = a.default.request("GET", "{public-api.apps}/api/v2/routing/sms/phonenumbers?phoneNumberStatus=active", o.SmsPhoneNumberList, { ignoreBadResponse: true }), t2.getSmsPhoneNumber = a.default.request("GET", "{public-api.apps}/api/v2/routing/sms/phonenumbers/{phoneNumber}", r2.SmsPhoneNumber, { ignoreBadResponse: true }); + }, 17599: (e2, t2, i2) => { + function n2() { + this.id = void 0, n2.baseConstructor.apply(this, arguments); + } + i2(45214).extend(n2, "DigitalBotFlowLaunchResult"), e2.exports = n2; + }, 17604: (e2, t2, i2) => { + var n2; + !(function() { + "use strict"; + var r2 = { not_string: /[^s]/, not_bool: /[^t]/, not_type: /[^T]/, not_primitive: /[^v]/, number: /[diefg]/, numeric_arg: /[bcdiefguxX]/, json: /[j]/, not_json: /[^j]/, text: /^[^\x25]+/, modulo: /^\x25{2}/, placeholder: /^\x25(?:([1-9]\d*)\$|\(([^\)]+)\))?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-gijostTuvxX])/, key: /^([a-z_][a-z_\d]*)/i, key_access: /^\.([a-z_][a-z_\d]*)/i, index_access: /^\[(\d+)\]/, sign: /^[\+\-]/ }; + function o(e3) { + return (function(e4, t3) { + var i3, n3, a2, s2, l, u, d, c, p, _ = 1, h = e4.length, m = ""; + for (n3 = 0; n3 < h; n3++) if ("string" == typeof e4[n3]) m += e4[n3]; + else if (Array.isArray(e4[n3])) { + if ((s2 = e4[n3])[2]) for (i3 = t3[_], a2 = 0; a2 < s2[2].length; a2++) { + if (!i3.hasOwnProperty(s2[2][a2])) throw new Error(o('[sprintf] property "%s" does not exist', s2[2][a2])); + i3 = i3[s2[2][a2]]; + } + else i3 = s2[1] ? t3[s2[1]] : t3[_++]; + if (r2.not_type.test(s2[8]) && r2.not_primitive.test(s2[8]) && i3 instanceof Function && (i3 = i3()), r2.numeric_arg.test(s2[8]) && "number" != typeof i3 && isNaN(i3)) throw new TypeError(o("[sprintf] expecting number but found %T", i3)); + switch (r2.number.test(s2[8]) && (c = i3 >= 0), s2[8]) { + case "b": + i3 = parseInt(i3, 10).toString(2); + break; + case "c": + i3 = String.fromCharCode(parseInt(i3, 10)); + break; + case "d": + case "i": + i3 = parseInt(i3, 10); + break; + case "j": + i3 = JSON.stringify(i3, null, s2[6] ? parseInt(s2[6]) : 0); + break; + case "e": + i3 = s2[7] ? parseFloat(i3).toExponential(s2[7]) : parseFloat(i3).toExponential(); + break; + case "f": + i3 = s2[7] ? parseFloat(i3).toFixed(s2[7]) : parseFloat(i3); + break; + case "g": + i3 = s2[7] ? String(Number(i3.toPrecision(s2[7]))) : parseFloat(i3); + break; + case "o": + i3 = (parseInt(i3, 10) >>> 0).toString(8); + break; + case "s": + i3 = String(i3), i3 = s2[7] ? i3.substring(0, s2[7]) : i3; + break; + case "t": + i3 = String(!!i3), i3 = s2[7] ? i3.substring(0, s2[7]) : i3; + break; + case "T": + i3 = Object.prototype.toString.call(i3).slice(8, -1).toLowerCase(), i3 = s2[7] ? i3.substring(0, s2[7]) : i3; + break; + case "u": + i3 = parseInt(i3, 10) >>> 0; + break; + case "v": + i3 = i3.valueOf(), i3 = s2[7] ? i3.substring(0, s2[7]) : i3; + break; + case "x": + i3 = (parseInt(i3, 10) >>> 0).toString(16); + break; + case "X": + i3 = (parseInt(i3, 10) >>> 0).toString(16).toUpperCase(); + } + r2.json.test(s2[8]) ? m += i3 : (!r2.number.test(s2[8]) || c && !s2[3] ? p = "" : (p = c ? "+" : "-", i3 = i3.toString().replace(r2.sign, "")), u = s2[4] ? "0" === s2[4] ? "0" : s2[4].charAt(1) : " ", d = s2[6] - (p + i3).length, l = s2[6] && d > 0 ? u.repeat(d) : "", m += s2[5] ? p + i3 + l : "0" === u ? p + l + i3 : l + p + i3); + } + return m; + })((function(e4) { + if (s[e4]) return s[e4]; + for (var t3, i3 = e4, n3 = [], o2 = 0; i3; ) { + if (null !== (t3 = r2.text.exec(i3))) n3.push(t3[0]); + else if (null !== (t3 = r2.modulo.exec(i3))) n3.push("%"); + else { + if (null === (t3 = r2.placeholder.exec(i3))) throw new SyntaxError("[sprintf] unexpected placeholder"); + if (t3[2]) { + o2 |= 1; + var a2 = [], l = t3[2], u = []; + if (null === (u = r2.key.exec(l))) throw new SyntaxError("[sprintf] failed to parse named argument key"); + for (a2.push(u[1]); "" !== (l = l.substring(u[0].length)); ) if (null !== (u = r2.key_access.exec(l))) a2.push(u[1]); + else { + if (null === (u = r2.index_access.exec(l))) throw new SyntaxError("[sprintf] failed to parse named argument key"); + a2.push(u[1]); + } + t3[2] = a2; + } else o2 |= 2; + if (3 === o2) throw new Error("[sprintf] mixing positional and named placeholders is not (yet) supported"); + n3.push(t3); + } + i3 = i3.substring(t3[0].length); + } + return s[e4] = n3; + })(e3), arguments); + } + function a(e3, t3) { + return o.apply(null, [e3].concat(t3 || [])); + } + var s = /* @__PURE__ */ Object.create(null); + t2.sprintf = o, t2.vsprintf = a, "undefined" != typeof window && (window.sprintf = o, window.vsprintf = a, void 0 === (n2 = function() { + return { sprintf: o, vsprintf: a }; + }.call(t2, i2, t2, e2)) || (e2.exports = n2)); + })(); + }, 17637: (e2, t2, i2) => { + "use strict"; + const n2 = i2(31635), r2 = n2.__importDefault(i2(92140)), o = i2(81516), a = n2.__importStar(i2(36781)), s = n2.__importStar(i2(1115)), l = i2(12179), u = n2.__importDefault(i2(97891)), d = n2.__importDefault(i2(5730)), c = i2(80428), p = i2(47957); + class _ extends d.default { + static get managedProperties() { + return [{ label: p.callBotFlowAction.intent, options: o.ExpressionTypeStringOptions.create((e3) => e3.setIninTestingField("intent").setUiPropertyOrder(0).facets.setAllowNull(false)), property: "intent", type: c.expressionTypeNames.string }]; + } + constructor(e3, t3) { + super(e3.parentFlow, e3), this.onNluIntentConfigurationUpdated = (e4) => { + var t4; + this.parentFlow === e4 && (null === (t4 = this.parentFlow) || void 0 === t4 ? void 0 : t4.initializeDesignTimeCalled) && !this.parentFlow.isDestroyedOrDestroying && this._configureIntentAllowableValues(); + }, this._loadModel(t3); + } + _configureIntentAllowableValues() { + this.intent.options.facets.setAllowableValues(this.parentFlow.nluMetaData.allowableIntentValues), s.validateAction(this, false, true); + } + _initializeDesignTime() { + super._initializeDesignTime(), this.addAutoCleanedUpEventListener(a.nluIntentConfigurationUpdated, this.onNluIntentConfigurationUpdated), this._configureIntentAllowableValues(), this.intent.attachValidator((e3, t3) => { + const i3 = this.parentFlow.nluMetaData.allowableIntentValues; + (!r2.default.isArray(i3) || i3.length < 1) && t3.setParseError(p.setIntent.nluMustHaveOneIntentToSetIntent); + }); + } + } + _.info = u.default.createActionInfo({ actionClass: _, canBeInTask: true, helpTopic: l.helpTopics.actions.setActiveIntent, modelClass: i2(94639), name: p.actions.setIntent, scriptingName: "ArchActionSetIntent" }), t2.A = _; + }, 17666: (e2, t2) => { + "use strict"; + var i2, n2, r2, o, a, s; + Object.defineProperty(t2, "__esModule", { value: true }), t2.CodeArchitectYamlParserToken = t2.CodeArchitectJsonParserToken = t2.CodeSuggestionWhatToDo = t2.CodeSuggestionType = t2.CodeParseItemMessageType = t2.CodeLanguage = void 0, (function(e3) { + e3.architectJson = "jsn__architect", e3.architectYaml = "yaml__architect", e3.architectExpression = "expression", e3.jsn = "jsn", e3.yaml = "yaml"; + })(i2 || (t2.CodeLanguage = i2 = {})), (function(e3) { + e3.architectExpression = "architectExpression", e3.architectExpressionUnavailable = "architectExpressionUnavailable", e3.architectLiteral = "architectLiteral", e3.arrayLengthTooSmall = "arrayLengthTooSmall", e3.arrayLengthTooBig = "arrayLengthTooBig", e3.duplicateProperty = "duplicateProperty", e3.invalidIndent = "invalidIndent", e3.invalidTypeValue = "invalidTypeValue", e3.invalidSyntax = "invalidSyntax", e3.propertyNotValidForType = "propertyNotValidForType", e3.requiredPropertiesMissing = "requiredPropertiesMissing", e3.stringLengthTooBig = "stringLengthTooBig", e3.stringLengthTooSmall = "stringLengthTooSmall", e3.tokenAfterEndOfValue = "tokenAfterEndOfValue", e3.tokenDuplicate = "tokenDuplicate", e3.tokenInvalid = "tokenInvalid", e3.tokenInvalidType = "tokenInvalidType", e3.tokenMissing = "tokenMissing", e3.tokenUnexpected = "tokenUnexpected", e3.totalTextLengthTooBig = "totalTextLengthTooBig", e3.typeIncompatible = "typeIncompatible", e3.typeIncompatibleAssignment = "typeIncompatibleAssignment", e3.unnecessarySeparator = "unnecessarySeparator", e3.valueExtra = "valueExtra", e3.valueIncomplete = "valueIncomplete", e3.valueMissing = "valueMissing", e3.valueNotInAllowableValues = "valueNotInAllowableValues", e3.valueTooBig = "valueTooBig", e3.valueTooSmall = "valueTooSmall"; + })(n2 || (t2.CodeParseItemMessageType = n2 = {})), (function(e3) { + e3.fix = "fix", e3.convert = "convert"; + })(r2 || (t2.CodeSuggestionType = r2 = {})), (function(e3) { + e3.appendText = "appendText", e3.replaceText = "replaceText", e3.removeText = "removeText", e3.wrapText = "wrapText"; + })(o || (t2.CodeSuggestionWhatToDo = o = {})), (function(e3) { + e3.ArchitectExpression = "ArchitectExpression", e3.ArchitectExpressionContent = "ArchitectExpressionContent", e3.ArchitectLiteral = "ArchitectLiteral", e3.ArchitectLiteralContent = "ArchitectLiteralContent", e3.Array = "Array", e3.ArrayEnd = "]", e3.ArrayStart = "[", e3.False = "False", e3.JsonText = "JsonText", e3.LineComment = "LineComment", e3.ItemSeparator = "ItemSeparator", e3.Null = "Null", e3.Number = "Number", e3.Object = "Object", e3.ObjectStart = "{", e3.ObjectEnd = "}", e3.Property = "Property", e3.PropertyName = "PropertyName", e3.String = "String", e3.True = "True"; + })(a || (t2.CodeArchitectJsonParserToken = a = {})), (function(e3) { + e3.ArrayItemStartSeparator = "-", e3.BlockMapping = "BlockMapping", e3.BlockSequence = "BlockSequence", e3.Document = "Document", e3.FlowMapping = "FlowMapping", e3.Item = "Item", e3.Key = "Key", e3.KeyValueSeparator = ":", e3.Literal = "Literal", e3.Pair = "Pair", e3.QuotedLiteral = "QuotedLiteral", e3.Stream = "Stream", e3.ArchitectExpression = "ArchitectExpression", e3.ArchitectExpressionContent = "ArchitectExpressionContent", e3.ArchitectLiteral = "ArchitectLiteral", e3.ArchitectLiteralContent = "ArchitectLiteralContent"; + })(s || (t2.CodeArchitectYamlParserToken = s = {})); + }, 17749: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.ClearSkillExpressionFiltersActionModel = void 0; + const n2 = i2(5894), r2 = i2(30801); + class o extends n2.BaseFailureOutputsActionModel { + constructor(e3) { + super(e3), this.__type = o.__type; + } + } + t2.ClearSkillExpressionFiltersActionModel = o, o.__type = r2.clearSkillExpressionFiltersActionType, o.registerType(); + }, 17769: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(54063)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "chatGuestCollection"; + } + get displayTypeName() { + return "ArchValueChatGuestCollection"; + } + get isArchValueChatGuestCollection() { + return true; + } + } + t2.default = r2; + }, 17782: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.shareReplay = void 0; + var n2 = i2(10381), r2 = i2(93405); + t2.shareReplay = function(e3, t3, i3) { + var o, a, s, l, u = false; + return e3 && "object" == typeof e3 ? (o = e3.bufferSize, l = void 0 === o ? 1 / 0 : o, a = e3.windowTime, t3 = void 0 === a ? 1 / 0 : a, u = void 0 !== (s = e3.refCount) && s, i3 = e3.scheduler) : l = null != e3 ? e3 : 1 / 0, r2.share({ connector: function() { + return new n2.ReplaySubject(l, t3, i3); + }, resetOnError: true, resetOnComplete: false, resetOnRefCountZero: u }); + }; + }, 17785: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.ExpressionTypeListPickerOptions = void 0; + const n2 = i2(65615); + class r2 extends n2.BaseExpressionTypeCollectionOptions { + static create(e3, t3) { + return new this(t3).invokeOptionsCallback(e3); + } + constructor(e3) { + super(e3); + } + get className() { + return "ExpressionTypeListPickerOptions"; + } + get isExpressionTypeListPickerOptions() { + return true; + } + } + t2.ExpressionTypeListPickerOptions = r2; + }, 17802: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.finalize = void 0; + var n2 = i2(65212); + t2.finalize = function(e3) { + return n2.operate(function(t3, i3) { + try { + t3.subscribe(i3); + } finally { + i3.add(e3); + } + }); + }; + }, 17812: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.connect = void 0; + var n2 = i2(76808), r2 = i2(19724), o = i2(65212), a = i2(51071), s = { connector: function() { + return new n2.Subject(); + } }; + t2.connect = function(e3, t3) { + void 0 === t3 && (t3 = s); + var i3 = t3.connector; + return o.operate(function(t4, n3) { + var o2 = i3(); + r2.innerFrom(e3(a.fromSubscribable(o2))).subscribe(n3), n3.add(t4.subscribe(o2)); + }); + }; + }, 17832: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.DialogflowAgentViewModel = void 0; + const n2 = i2(31635), r2 = i2(17604), o = n2.__importDefault(i2(92140)), a = n2.__importStar(i2(10798)), s = n2.__importDefault(i2(41510)), l = n2.__importDefault(i2(4648)), u = i2(43212), d = n2.__importDefault(i2(56133)), c = n2.__importDefault(i2(43277)), p = n2.__importDefault(i2(27579)), _ = i2(47957); + class h extends u.BaseConfigurationListViewModel { + constructor(e3) { + super(e3), this.fullBotNotLoaded = true, this._errorSchema = (0, p.default)(); + } + get className() { + return "DialogflowAgentViewModel"; + } + get description() { + return this.projectId ? (0, r2.sprintf)(_.dialogflow.projectIdLabel, this.projectId) : null; + } + get descriptionIntegrationName() { + return a.isFeatureAvailable(l.default.googleDialogflowEsResellV2Feature) && o.default.isString(this.integrationName) ? (0, r2.sprintf)(_.dialogflow.integrationNameLabel, o.default.escape(this.integrationName)) : null; + } + get errorSchema() { + return this._errorSchema; + } + getConfiguration() { + return this._model; + } + get id() { + return this._model.id; + } + get label() { + return this._model.name || ""; + } + get languages() { + return this._model.languages; + } + get model() { + return this._model; + } + set model(e3) { + this._model = e3, this.intents = [], this._model.intents && o.default.each(this._model.intents, (e4) => { + this.intents.push(new d.default(o.default.clone(e4))); + }), this.environments = [new c.default(s.default.dialogflow.draftEnvironmentId, s.default.dialogflow.draftEnvironmentName)], o.default.each(this.model.environments, (e4) => { + this.environments.push(new c.default(e4, e4, null)); + }); + } + get name() { + return this._model.name; + } + get projectId() { + var e3; + return null === (e3 = this._model.project) || void 0 === e3 ? void 0 : e3.id; + } + get integrationId() { + var e3; + return null === (e3 = this._model.integration) || void 0 === e3 ? void 0 : e3.id; + } + get integrationName() { + var e3; + return null === (e3 = this._model.integration) || void 0 === e3 ? void 0 : e3.name; + } + } + t2.DialogflowAgentViewModel = h; + }, 17848: (e2, t2, i2) => { + const n2 = i2(92140), r2 = i2(85386), o = i2(35635), a = i2(89982), s = i2(98962), l = i2(30068).default, u = i2(83462); + function d() { + Object.defineProperties(this, { _checkedInVersion: { writable: true }, _currentOperation: { writable: true }, _debugVersion: { writable: true }, _lockedClient: { writable: true }, _lockedUser: { writable: true }, _publishedVersion: { writable: true }, _savedVersion: { writable: true }, _supportedLanguages: { writable: true }, _alternateFlowInfos: { writable: true }, _state: { writable: true } }), this.active = void 0, this.deleted = void 0, this.nluInfo = void 0, this.system = void 0, this.type = void 0, this.generationId = void 0, this.datePublished = void 0, this.datePublishedEnd = void 0, this.inputSchema = void 0, this.outputSchema = void 0, this.agenticVirtualAgentEnabled = void 0, this.virtualAgentEnabled = void 0, this.version = void 0, this.surveyForm = void 0, d.baseConstructor.apply(this, arguments); + } + d.duplicateKeyListProperty = "alternateFlowInfos", d.getMasterItemIndexFromDuplicateKeyList = (e3) => { + const t3 = e3.findIndex((e4) => !e4.version); + return t3 >= 0 ? t3 : 0; + }, r2.extend(d, "FlowInfo"), Object.defineProperties(d.prototype, { alternateFlowInfos: { enumerable: true, get: function() { + return this._alternateFlowInfos; + }, set: function(e3) { + this._alternateFlowInfos = this.reviveArray(e3, d); + } }, checkedInVersion: { enumerable: true, get: function() { + return this._checkedInVersion; + }, set: function(e3) { + this._checkedInVersion = this.reviveItem(e3, s); + } }, currentOperation: { enumerable: true, get: function() { + return this._currentOperation; + }, set: function(e3) { + this._currentOperation = this.reviveItem(e3, o); + } }, debugVersion: { enumerable: true, get: function() { + return this._debugVersion; + }, set: function(e3) { + this._debugVersion = this.reviveItem(e3, s); + } }, isFlowInfo: { value: true }, lockedClient: { enumerable: true, get: function() { + return this._lockedClient; + }, set: function(e3) { + this._lockedClient = this.reviveItem(e3, l); + } }, lockedUser: { enumerable: true, get: function() { + return this._lockedUser; + }, set: function(e3) { + this._lockedUser = this.reviveItem(e3, u); + } }, publishedVersion: { enumerable: true, get: function() { + return this._publishedVersion; + }, set: function(e3) { + this._publishedVersion = this.reviveItem(e3, s); + } }, savedVersion: { enumerable: true, get: function() { + return this._savedVersion; + }, set: function(e3) { + this._savedVersion = this.reviveItem(e3, s); + } }, state: { get: function() { + return this._state; + }, set: function(e3) { + this._state = n2.isString(e3) ? e3.toLowerCase() : e3; + } }, schemas: { set: function(e3) { + this.inputSchema = e3.input, this.outputSchema = e3.output; + } }, supportedLanguages: { enumerable: true, get: function() { + return this._supportedLanguages; + }, set: function(e3) { + this._supportedLanguages = this.reviveArray(e3, a); + } } }), e2.exports = d; + }, 17873: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.scheduleAsyncIterable = void 0; + var n2 = i2(48051), r2 = i2(28619); + t2.scheduleAsyncIterable = function(e3, t3) { + if (!e3) throw new Error("Iterable cannot be null"); + return new n2.Observable(function(i3) { + r2.executeSchedule(i3, t3, function() { + var n3 = e3[Symbol.asyncIterator](); + r2.executeSchedule(i3, t3, function() { + n3.next().then(function(e4) { + e4.done ? i3.complete() : i3.next(e4.value); + }); + }, 0, true); + }); + }); + }; + }, 17894: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.buildFlowEntitiesFromSurveyForm = N, t2.createSurveyFlow = function(e3, t3, i3, r3) { + return n2.__awaiter(this, void 0, void 0, function* () { + var n3; + const s2 = { id: void 0 }; + let c2; + try { + c2 = yield d.surveyFormManager.apiCallSingle(e3); + } catch (e4) { + switch (null == e4 ? void 0 : e4.status) { + case 403: + s2.id = "voiceSurveyPermissionsError", s2.text = (0, o.sprintf)(y.voiceSurvey.surveyFormInsufficientPermissions, p.permissionStrings.external.externalAuthorizations.qualitySurveyFormView); + break; + case 404: + s2.id = "voiceSurveyFormNotFound", s2.text = y.voiceSurvey.voiceSurveyDoesNotExistError; + break; + default: + s2.id = "voiceSurveyUnspecifiedError", A.requestError(e4, "failed to create voice survey flow"); + } + return { error: s2 }; + } + const _2 = N(c2, t3); + (null === (n3 = _2.flowVariables) || void 0 === n3 ? void 0 : n3.length) && i3.variables.push(..._2.flowVariables); + const h2 = new u.default(r3), m2 = l.getFullFlow(h2); + m2.voiceSurveyFlowSettings.surveyFormInfo = _2.surveyInfo, yield T.loadTemplate(m2, i3); + const g2 = { flow: m2, nluDomainVersion: _2.nluDomainVersion }; + return a.default.isUndefined(s2.id) || (g2.error = s2), g2; + }); + }, t2.getFirstEntityErrorInfo = function(e3, t3) { + const i3 = { name: "", type: "", namesMatch: false, typesMatch: false }; + return t3.forEach((t4) => { + const n3 = e3.find((e4) => e4.name === t4.name); + return n3 ? (null == n3 ? void 0 : n3.type) !== t4.type ? (i3.name = t4.name, i3.type = t4.type, i3) : void 0 : (i3.name = t4.name, i3); + }), i3; + }, t2.getFirstEntityTypeErrorInfo = function(e3, t3) { + const i3 = { name: "", namesMatch: false, mechanismsMatch: true }; + return t3.forEach((t4) => { + var n3, r3, o2, a2, s2, l2; + const u2 = e3.find((e4) => e4.name === t4.name); + return u2 ? (null === (n3 = null == u2 ? void 0 : u2.mechanism) || void 0 === n3 ? void 0 : n3.type) !== (null === (r3 = null == t4 ? void 0 : t4.mechanism) || void 0 === r3 ? void 0 : r3.type) ? (i3.name = t4.name, i3.mechanismsMatch = (null === (o2 = t4.mechanism) || void 0 === o2 ? void 0 : o2.type) === (null === (a2 = u2.mechanism) || void 0 === a2 ? void 0 : a2.type) && (null === (s2 = t4.mechanism) || void 0 === s2 ? void 0 : s2.items.sort()) === (null === (l2 = u2.mechanism) || void 0 === l2 ? void 0 : l2.items.sort()), i3) : void 0 : (i3.name = t4.name, i3); + }), i3; + }; + const n2 = i2(31635), r2 = i2(68694), o = i2(17604), a = n2.__importDefault(i2(92140)), s = n2.__importStar(i2(24032)), l = n2.__importStar(i2(89884)), u = n2.__importDefault(i2(90396)), d = i2(99918), c = i2(12847), p = i2(44724), _ = i2(56969), h = i2(56969), m = i2(56969), g = i2(56969), f = i2(56969), T = i2(46920), y = i2(47957), S = i2(35825), A = s.getTopic("voiceSurveyFlow"); + function N(e3, t3) { + var i3; + const n3 = { language: (null === (i3 = t3.id) || void 0 === i3 ? void 0 : i3.toLowerCase()) || "en-us", intents: [] }, o2 = [], s2 = [], l2 = { archSurveyForm: { header: null == e3 ? void 0 : e3.header, footer: null == e3 ? void 0 : e3.footer, name: e3.name, id: e3.id, contextId: e3.contextId, language: e3.language, modifiedDate: e3.modifiedDate, questionGroups: [] }, formMappingInfo: { surveyFormId: e3.id, formVariableId: "__SURVEY_FORM__" }, questionGroupMappingInfo: o2, questionMappingInfo: s2, formToSlotVariableMappings: {} }, u2 = { nluDomainVersion: n3, surveyInfo: l2, flowVariables: [] }, d2 = l2.archSurveyForm; + e3.questionGroups.forEach((e4, t4) => { + const i4 = t4 + 1, c3 = `Form.QuestionGroup${i4}`, p2 = `__SURVEY_QUESTION_GROUP_${i4}__`, T2 = { variableId: p2, variableName: c3, visibilityCondition: e4.visibilityCondition ? e4.visibilityCondition : void 0, id: e4.id, name: e4.name, questions: [], groupIndex: i4 }; + d2.questionGroups.push(T2); + let y2 = 1; + e4.questions.forEach((t5) => { + const o3 = `Form.${(0, h.getSurveyQuestionSlotName)(i4, y2)}`, l3 = (0, _.getSurveyQuestionFormVariableId)(i4, y2), d3 = { variableId: l3, variableName: o3, visibilityCondition: t5.visibilityCondition ? t5.visibilityCondition : void 0, id: t5.id, questionType: O(t5.type), questionText: t5.text, naEnabled: t5.naEnabled, answerOptions: [], followUpQuestionText: null == t5 ? void 0 : t5.explanationPrompt, maxResponseCharacters: null == t5 ? void 0 : t5.maxResponseCharacters, questionIndex: y2, groupIndex: i4 }; + a.default.isEmpty(t5.helpText) || (d3.questionHelpText = t5.helpText), T2.questions.push(d3); + const c4 = []; + let p3; + const A3 = []; + switch (t5.type) { + case f.SurveyQuestionTypesEnum.freeTextQuestion: + const e5 = { name: (0, h.getSurveyQuestionSlotName)(i4, y2), type: r2.BuiltInEntityType.BuiltInAny }; + A3.push(e5); + break; + case f.SurveyQuestionTypesEnum.npsQuestion: + for (let e6 = 0; e6 <= 10; e6++) { + const t6 = e6.toString(), i5 = { value: t6, synonyms: [t6] }; + c4.push(i5); + } + p3 = { name: (0, m.getSurveyQuestionSlotTypeName)(i4, y2), description: void 0, mechanism: { type: "List", items: c4, restricted: true } }; + const n4 = { name: (0, h.getSurveyQuestionSlotName)(i4, y2), type: p3.name }; + A3.push(n4); + break; + case f.SurveyQuestionTypesEnum.multipleChoiceQuestion: + let o4 = 1; + t5.answerOptions.forEach((e6) => { + const t6 = { id: e6.id, text: e6.text, dtmf: o4.toString() }; + if (!d3.answerOptions.find((e7) => e7.text === t6.text)) { + if (void 0 !== t6.text) { + const t7 = { value: e6.text }; + c4.push(t7), t7.synonyms || (t7.synonyms = []), t7.synonyms.push(o4.toString()); + } + d3.answerOptions.push(t6), o4++; + } + }), p3 = { name: (0, m.getSurveyQuestionSlotTypeName)(i4, y2), description: void 0, mechanism: { type: "List", items: c4, restricted: true } }; + const a2 = { name: (0, h.getSurveyQuestionSlotName)(i4, y2), type: p3.name }; + A3.push(a2); + } + if ((0, g.surveyQuestionHasFollowUp)(t5)) { + const e5 = { name: (0, h.getSurveyQuestionSlotName)(i4, y2, true), type: r2.BuiltInEntityType.BuiltInAny }; + A3.push(e5); + } + const N3 = new S.SurveyQuestionVariable({ name: o3, id: l3, version: "1.0" }); + u2.flowVariables.push(N3), p3 && (n3.entityTypes || (n3.entityTypes = []), n3.entityTypes.push(p3)), A3.length > 0 && (n3.entities || (n3.entities = []), n3.entities.push(...A3)); + const I = { surveyQuestionId: t5.id, parentSurveyQuestionGroupId: e4.id, surveyQuestionIndex: y2, questionVariableId: N3.id }; + s2.push(I), y2++; + }); + const A2 = new S.SurveyQuestionGroupVariable({ name: c3, id: p2, version: "1.0" }); + u2.flowVariables.push(A2); + const N2 = { surveyQuestionGroupId: e4.id, parentSurveyFormId: l2.formMappingInfo.surveyFormId, questionGroupVariableId: A2.id, surveyQuestionGroupIndex: i4 }; + o2.push(N2); + }); + const c2 = new S.SurveyFormVariable({ name: "Form.FullSurvey", id: "__SURVEY_FORM__", version: "1.0", description: y.systemVariables.surveyForm }); + return u2.flowVariables.push(c2), u2; + } + function O(e3) { + if ("readOnlyTextBlockQuestion" === e3) return f.SurveyQuestionTypesEnum.readOnlyQuestion; + return f.SurveyQuestionTypesEnum[e3] || ((0, c.error)(`Unknown survey question type ${e3}`), e3); + } + }, 17954: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = i2(80295), o = n2.__importDefault(i2(95079)), a = i2(80295); + class s extends o.default { + constructor(e3) { + super(e3), (0, a.makeUnenumerable)(this, "_isDefault"), (0, a.makeUnenumerable)(this, "_voices"); + } + get isDefault() { + return this._isDefault; + } + set isDefault(e3) { + this._isDefault = e3; + } + get voices() { + return this._voices; + } + set voices(e3) { + Array.isArray(e3) ? this._voices = this.reviveArrayToMap(e3, Object) : this._voices = this.reviveMap(e3, Object, true); + } + } + t2.default = s, n2.__decorate([(0, r2.enumerable)(true), n2.__metadata("design:type", Boolean), n2.__metadata("design:paramtypes", [Boolean])], s.prototype, "isDefault", null), n2.__decorate([(0, r2.enumerable)(true), n2.__metadata("design:type", Object), n2.__metadata("design:paramtypes", [Object])], s.prototype, "voices", null); + }, 17977: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.exhaustAll = void 0; + var n2 = i2(86632), r2 = i2(87699); + t2.exhaustAll = function() { + return n2.exhaustMap(r2.identity); + }; + }, 18048: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = i2(80295), o = i2(15116), a = n2.__importDefault(i2(62100)); + class s extends o.PagedList { + constructor(e3) { + super(e3); + } + get entities() { + return this._entities; + } + set entities(e3) { + this._entities = this.reviveArray(e3, a.default); + } + } + t2.default = s, n2.__decorate([(0, r2.enumerable)(true), n2.__metadata("design:type", Array), n2.__metadata("design:paramtypes", [Array])], s.prototype, "entities", null); + }, 18126: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(54757)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "imageCollection"; + } + get displayTypeName() { + return "ArchValueImageCollection"; + } + get isArchValueImageCollection() { + return true; + } + } + t2.default = r2; + }, 18184: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importDefault(i2(83747)), o = i2(96618), a = n2.__importDefault(i2(56549)), s = i2(71528); + class l extends r2.default { + constructor(e3) { + super(e3), this._virtualAgentSettings = this.coreFactory.createArchWrapper(e3.virtualAgentSettings); + } + get _flowType() { + return o.flowTypes.flowTypeDigitalBot; + } + get displayTypeName() { + return "ArchFlowDigitalBot"; + } + get isArchFlowDigitalBot() { + return true; + } + get settingsVirtualAgent() { + return this._virtualAgentSettings; + } + loadResponseLibraryManager() { + return n2.__awaiter(this, void 0, void 0, function* () { + const e3 = yield a.default.loadAllItemsAsync(s.responseLibraryManager, "response library names", "name"); + this.logNote("found " + e3.length + " Response Libraries"); + }); + } + } + t2.default = l; + }, 18187: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(84655)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "file"; + } + get displayTypeName() { + return "ArchVariableFile"; + } + get initialValue() { + return this._initialValue; + } + get isArchVariableFile() { + return true; + } + } + t2.default = r2; + }, 18251: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.ArchFactoryDataTypes = void 0; + const n2 = i2(31635), r2 = n2.__importDefault(i2(92140)), o = n2.__importDefault(i2(78432)), a = i2(66314), s = n2.__importDefault(i2(71538)), l = n2.__importDefault(i2(87675)), u = n2.__importDefault(i2(99006)), d = i2(79519), c = i2(33264), p = n2.__importDefault(i2(85499)), _ = n2.__importDefault(i2(56549)), h = i2(85415), m = n2.__importDefault(i2(84783)); + class g extends m.default { + constructor() { + super(); + } + get displayTypeName() { + return "ArchFactoryDataTypes"; + } + get logStr() { + return this._createLogStrFromParts(["ArchFactoryDataTypes"]); + } + getOrCreateCustomJsonDataTypeAsync(e3, t3, i3, a2) { + return n2.__awaiter(this, void 0, void 0, function* () { + this._checkItem(this._infoParm("archBaseFlow", "getOrCreateCustomJsonDataTypeAsync"), !e3 || !e3.isArchBaseFlow, "you must pass in a valid ArchBaseFlow instance."), this._checkItemIsValidLiteralStringEnum(this._infoParm("customJsonNamespace", "getOrCreateCustomJsonDataTypeAsync"), t3, o.default.CUSTOM_JSON_TYPE_NAMESPACES_ALL), this._checkItemIsValidLiteralString(this._infoParm("entityName", "getOrCreateCustomJsonDataTypeAsync"), i3), this._checkItemIsValidLiteralStringEnum(this._infoParm("customJsonDataTypeSchemaType", "getOrCreateCustomJsonDataTypeAsync"), a2, o.default.CUSTOM_JSON_SCHEMA_TYPES_ALL); + const n3 = r2.default.find(e3.dataTypes, (e4) => { + if (e4.isCustomJsonType && e4._getCoreViewModel().customTypeNamespace === t3) { + if (e4._getCoreViewModel().customTypeNamespace === d.CustomJsonNamespace.decisionTable && e4._getCoreViewModel().decisionTableName !== i3) return false; + switch (a2) { + case o.default.CUSTOM_JSON_SCHEMA_TYPES.input: + if (e4._getCoreViewModel().isCustomTypeContextInput) return true; + break; + case o.default.CUSTOM_JSON_SCHEMA_TYPES.output: + if (e4._getCoreViewModel().isCustomTypeContextOutput) return true; + } + } + }); + if (n3) return n3; + switch (t3) { + case d.CustomJsonNamespace.architect: + const n4 = e3._getCoreViewModel().definitions.getCustomDataTypeDefinitionByName(d.CustomJsonNamespace.architect, i3); + return n4 || this.logErrorAndThrow(`was unable to find custom data type '${i3}' by name using namespace '${d.CustomJsonNamespace.architect}'`), this.coreFactory.createArchWrapper(n4); + case d.CustomJsonNamespace.decisionTable: + let r3, s2, l2; + try { + r3 = yield _.default.findItemByValueAsync(c.decisionTableManager, i3, "decision table", "name", "name"); + } catch (e4) { + } + r3 || this.logErrorAndThrow(`was unable to find decision table '${i3}' by name`); + try { + s2 = yield _.default.findItemByIdAsync(c.decisionTableManager, r3.id, "decision table"); + } catch (e4) { + } + switch (s2 || this.logErrorAndThrow(`was unable to find decision table '${i3}' by id '${r3.id}'`), a2) { + case o.default.CUSTOM_JSON_SCHEMA_TYPES.input: + l2 = p.default.getOrCreateDecisionTableCustomJsonManager(e3._getCoreViewModel(), s2.name, s2.id, true, "Inputs", "Outputs"), l2.tryUpdateParentExpressionPropTypeFromSchema(s2.model.publishedContract.executionInputSchema, true, e3.isReadOnly); + break; + case o.default.CUSTOM_JSON_SCHEMA_TYPES.output: + l2 = p.default.getOrCreateDecisionTableCustomJsonManager(e3._getCoreViewModel(), s2.name, s2.id, false, "Inputs", "Outputs"), l2.tryUpdateParentExpressionPropTypeFromSchema(s2.model.publishedContract.executionOutputSchema, true, e3.isReadOnly); + break; + case o.default.CUSTOM_JSON_SCHEMA_TYPES.error: + this.logErrorAndThrow(`Only input and output is allowed for ${t3}`); + } + if (!l2) return; + return this.coreFactory.createArchWrapper(l2.customDataType); + case d.CustomJsonNamespace.conversationAttribute: + let u2, m2, g2; + try { + u2 = yield _.default.findItemByValueAsync(h.conversationCustomAttributeSchemaManager, i3, "conversation custom attribute schema", "name", "name"); + } catch (e4) { + } + u2 || this.logErrorAndThrow(`was unable to find conversation custom attribute schema '${i3}' by name`); + try { + m2 = yield _.default.findItemByIdAsync(h.conversationCustomAttributeSchemaManager, u2.id, "conversation custom attribute schema"); + } catch (e4) { + } + switch (m2 || this.logErrorAndThrow(`was unable to find conversation custom attribute schema '${i3}' by id '${u2.id}'`), a2) { + case o.default.CUSTOM_JSON_SCHEMA_TYPES.input: + case o.default.CUSTOM_JSON_SCHEMA_TYPES.output: + g2 = p.default.getOrCreateConversationCustomAttributeSchemaCustomJsonManager(e3._getCoreViewModel(), m2.name, m2.id), g2.tryUpdateParentExpressionPropTypeFromSchema(m2.model.jsonSchema, true, e3.isReadOnly); + break; + case o.default.CUSTOM_JSON_SCHEMA_TYPES.error: + this.logErrorAndThrow(`Only input and output is allowed for ${t3}`); + } + if (!g2) return; + return this.coreFactory.createArchWrapper(g2.customDataType); + } + }); + } + createCustomJsonTypeSchema(e3, t3) { + const i3 = this._infoParm("name", "createCustomJsonTypeSchema"); + this._checkItemIsValidLiteralString(i3, e3), this._checkItem(i3, e3 !== e3.trim(), "custom JSON schema name cannot have leading or trailing whitespace"), this._checkItem(i3, "" === e3.trim(), "custom JSON schema name cannot be blank"), t3 && this._checkItemIsValidLiteralString(this._infoParm("description", "createCustomJsonTypeSchema"), t3); + const n3 = new s.default(); + n3.id = (0, a.createCustomJsonExpressionDataTypeStr)(d.CustomJsonNamespace.userDefined), n3.dataTypeId = n3.id, n3.name = e3, n3.description = t3; + const r3 = new l.default(n3); + return this.coreFactory.createArchWrapper(r3); + } + createCustomJsonTypeSchemaFromJsonSchema(e3) { + const t3 = this._infoParm("jsonSchema", "createCustomJsonTypeSchemaFromJsonSchema"); + this._checkItemIsValidJsonObject(t3, e3, false); + const i3 = new u.default(void 0, e3, d.CustomJsonNamespace.userDefined).createDataTypeDefViewModelsForJsonSchema(); + return i3.failure, this.coreFactory.createArchWrapper(i3.customDataTypeDefs[i3.rootDataTypeDefId]); + } + } + t2.ArchFactoryDataTypes = g, t2.default = new g(); + }, 18266: (e2, t2, i2) => { + e2.exports = { AbortSendActionViewModel: i2(13293).A, AbortSurveyActionViewModel: i2(2337).A, AddFlowMilestoneActionViewModel: i2(84896).A, AskForAuthenticationActionViewModel: i2(78105).A, AskForBooleanActionViewModel: i2(14273).A, AskForNLUIntentActionViewModel: i2(11332).A, AskForNextIntentLoopActionViewModel: i2(45626).A, AskForPaymentActionViewModel: i2(9687).A, AskForSlotActionViewModel: i2(60873).default, AskSurveyQuestionActionViewModel: i2(71020).A, AudioMonitoringActionViewModel: i2(14897).A, BotConnectorActionViewModel: i2(20549).A, BridgeServerActionViewModel: i2(28690).A, CallAgenticVirtualAgentActionViewModel: i2(57310).A, CallAudioConnectorActionViewModel: i2(78306).A, CallBotFlowActionViewModel: i2(73578).A, CallCommonModuleActionViewModel: i2(1438).A, CallDecisionTableActionViewModel: i2(34611).A, CallDigitalBotFlowActionViewModel: i2(31682).A, CallGuideActionViewModel: i2(56157).A, CallTaskActionViewModel: i2(72194).A, CallVoiceFlowActionViewModel: i2(84415).A, ChangeStateActionViewModel: i2(89690).A, ClearActiveIntentActionViewModel: i2(72378).A, ClearPostFlowActionViewModel: i2(25308).A, ClearSkillExpressionFiltersActionViewModel: i2(60440).A, ClearSlotActionViewModel: i2(47598).A, ClearUtilizationLabelActionViewModel: i2(95320).A, ClearVoicemailSnippetActionViewModel: i2(92244).A, CollectInputActionViewModel: i2(18543).A, CollectVoiceSnippetActionViewModel: i2(97505).A, CommunicateActionViewModel: i2(71530).A, CompleteSendActionViewModel: i2(66590).A, CompleteSurveyActionViewModel: i2(76218).A, CreateCallbackActionViewModel: i2(12992).A, CreateConversationAttributeActionViewModel: i2(42062).A, DataActionViewModel: i2(18468).A, DataTableLookupActionViewModel: i2(23308).A, DecisionActionViewModel: i2(35951).A, DecryptDataActionViewModel: i2(4294).A, DeflectActionViewModel: i2(86332).A, DetectIntentActionViewModel: i2(6666).A, DetectSilenceActionViewModel: i2(98151).A, DialExtensionActionViewModel: i2(74884).A, DialNameActionViewModel: i2(55510).A, DialogEngineActionViewModel: i2(93619).A, DialogflowActionViewModel: i2(29317).A, DialogflowCxActionViewModel: i2(20100).A, DigitalBotConnectorActionViewModel: i2(43629).A, DigitalMenuActionViewModel: i2(120).A, DisconnectActionViewModel: i2(81907).A, DisconnectWorkitemActionViewModel: i2(33853).A, EncryptDataActionViewModel: i2(75374).A, EndStateActionViewModel: i2(87759).A, EndTaskActionViewModel: i2(27313).A, EndWorkflowActionViewModel: i2(21045).A, EvaluateScheduleActionViewModel: i2(10555).A, EvaluateScheduleGroupActionViewModel: i2(70826).A, EvaluateSkillExpressionFiltersActionViewModel: i2(85714).A, ExitBotFlowActionViewModel: i2(24954).A, ExitLoopActionViewModel: i2(876).A, ExitWorkitemFlowActionViewModel: i2(24891).A, ExtractSecureDataActionViewModel: i2(51905).A, FindDivisionActionViewModel: i2(25162).A, FindDivisionsActionViewModel: i2(15091).A, FindEmergencyGroupActionViewModel: i2(23123).A, FindGrammarActionViewModel: i2(5828).A, FindGrammarByIdActionViewModel: i2(68108).A, FindGroupActionViewModel: i2(56146).A, FindKnowledgeBaseDocumentByIdActionViewModel: i2(78091).A, FindLanguageSkillActionViewModel: i2(3554).A, FindQueueActionViewModel: i2(49149).A, FindQueueByIdActionViewModel: i2(86758).A, FindScheduleActionViewModel: i2(77152).A, FindScheduleGroupActionViewModel: i2(59463).A, FindSkillActionViewModel: i2(80700).A, FindSystemPromptActionViewModel: i2(78534).A, FindUserActionViewModel: i2(12722).A, FindUserByIdActionViewModel: i2(5486).A, FindUserPromptActionViewModel: i2(67444).A, FindUsersByIdActionViewModel: i2(37687).A, FindUtilizationLabelActionViewModel: i2(78785).A, FlushAudioActionViewModel: i2(41053).A, FormActionViewModel: i2(71075).A, GetAssignedCustomerIntentsActionViewModel: i2(33924).A, GetAttributesActionViewModel: i2(72426).A, GetConversationAttributeActionViewModel: i2(28206).A, GetConversationAttributesActionViewModel: i2(17471).A, GetConversationDataActionViewModel: i2(79348).A, GetEmailHeadersActionViewModel: i2(60079).A, GetExternalContactActionViewModel: i2(36834).A, GetExternalOrganizationActionViewModel: i2(66033).A, GetJourneyOutcomeActionViewModel: i2(55048).A, GetJourneyOutcomeScoresBySessionActionViewModel: i2(184).A, GetJourneySegmentActionViewModel: i2(80251).A, GetJourneySessionActionViewModel: i2(84684).A, GetJourneySessionsByCustomerActionViewModel: i2(91606).A, GetJourneySessionsByExternalContactActionViewModel: i2(66347).A, GetRawSIPHeadersActionViewModel: i2(13221).A, GetResponseActionViewModel: i2(41108).A, GetSIPHeadersActionViewModel: i2(77479).A, GetSecuredDataActionViewModel: i2(22036).A, HoldMusicActionViewModel: i2(61289).A, InitializeFlowOutcomeActionViewModel: i2(62279).A, InlineTaskActionViewModel: i2(45817).A, JumpToTaskActionViewModel: i2(72577).A, LexActionViewModel: i2(78830).A, LexV2ActionViewModel: i2(82490).A, LoopActionViewModel: i2(47567).A, LoopUntilActionViewModel: i2(3287).A, MenuJumpActionViewModel: i2(80684).A, NextLoopActionViewModel: i2(80632).A, NuanceMixActionViewModel: i2(59421).A, ParticipantRecordActionViewModel: i2(95689).A, PlayAudioActionViewModel: i2(38750).A, PlayAudioOnSilenceActionViewModel: i2(42473).A, PlayEstimatedWaitTimeActionViewModel: i2(50293).A, PlayPositionInQueueActionViewModel: i2(69038).A, PlayUserGreetingActionViewModel: i2(20407).A, PlayUserNameActionViewModel: i2(86527).A, PreviousMenuActionViewModel: i2(39843).A, ProcessVoicemailInputActionViewModel: i2(93087).A, PromoteExternalContactActionViewModel: i2(5578).A, RepeatMenuActionViewModel: i2(61781).A, ReturnToAgentActionViewModel: i2(24669).A, ScreenPopActionViewModel: i2(77372).A, SearchExternalContactsActionViewModel: i2(72627).A, SecureActionViewModel: i2(69091).A, SendAutoReplyActionViewModel: i2(71516).A, SendDigitalContentActionViewModel: i2(43080).A, SendInteractiveApplicationActionViewModel: i2(76657).A, SendKnowledgeFeedbackActionViewModel: i2(71222).A, SendNotificationActionViewModel: i2(49450).A, SendResponseActionViewModel: i2(63150).A, SendRichLinkActionViewModel: i2(77953).A, SetActiveIntentActionViewModel: i2(17637).A, SetAttributesActionViewModel: i2(6174).A, SetConversationDataActionViewModel: i2(72040).A, SetExternalTagActionViewModel: i2(84378).A, SetFlowOutcomeActionViewModel: i2(21401).A, SetLocaleActionViewModel: i2(37595).A, SetPostFlowActionViewModel: i2(52423).A, SetPriorityActionViewModel: i2(93213).A, SetSecuredDataActionViewModel: i2(3416).A, SetSkillExpressionFiltersActionViewModel: i2(63003).A, SetSkillsActionViewModel: i2(97643).A, SetUUIDataActionViewModel: i2(71002).A, SetUtilizationLabelActionViewModel: i2(64315).A, SetWhisperAudioActionViewModel: i2(48289).A, SetWrapupCodeActionViewModel: i2(72749).A, ShowKnowledgeArticleActionViewModel: i2(10955).A, StateToolboxPlaceholderActionViewModel: i2(58778).A, SubMenuActionViewModel: i2(30346).A, SubmitVoiceSnippetActionViewModel: i2(83516).A, SubmitVoicemailSnippetActionViewModel: i2(37323).A, SwitchActionViewModel: i2(23753).A, TerminateWorkitemActionViewModel: i2(65878).A, TranscriptionActionViewModel: i2(87321).A, TransferExternalActionViewModel: i2(49717).A, TransferFlowActionViewModel: i2(84568).default, TransferFlowSecureActionViewModel: i2(64647).A, TransferGroupActionViewModel: i2(2499).A, TransferPureMatchActionViewModel: i2(99831).A, TransferUserActionViewModel: i2(17357).A, TransferVoicemailActionViewModel: i2(81453).A, UpdateConversationAttributeActionViewModel: i2(60599).A, UpdateVariablesActionViewModel: i2(86855).default, UpdateWorkitemActionViewModel: i2(340).A, VoiceBiometricsActionViewModel: i2(72830).A, WaitActionViewModel: i2(96422).A, WaitForInputActionViewModel: i2(49661).A }; + }, 18272: (e2) => { + e2.exports = { askCommon: { invalidInputReceived: "Det \xE4r inte giltigt.", noInputReceived: "Jag fick ingen inmatning." }, askForBoolean: { noInput: 'S\xE4g "ja" om du vill forts\xE4tta eller "nej" om du inte vill.', noMatch: 'S\xE4g "Ja" eller "Nej". Vill du forts\xE4tta?', question: "Vill du forts\xE4tta?", noInputDigitalBot: 'Ange "Ja" om du vill forts\xE4tta eller "Nej" om du inte vill g\xF6ra det.', noMatchDigitalBot: 'Ange "Ja" eller "Nej". Vill du forts\xE4tta?' }, askForIntent: { noInput: 'S\xE4g en kort mening som beskriver din fr\xE5ga. Till exempel "Kontrollera mitt saldo"', noMatch: "Tala om f\xF6r mig igen vad du vill g\xF6ra.", question: "Vad vill du g\xF6ra?", noInputDigitalBot: 'Skriv en kort mening som beskriver din fr\xE5ga. Till exempel "Kontrollera mitt saldo"' }, askForSlot: { askFor: "Fr\xE5ga efterr %1$s", noInput: "S\xE4g eller ange (ange ditt platsnamn h\xE4r).", noInputWithSlot: "S\xE4g eller ange %1$s.", noMatch: "Ge mig (ange ditt platsnamn h\xE4r) igen.", noMatchWithSlot: "Ge mig %1$s igen.", question: "Vad \xE4r (ange ditt platsnamn h\xE4r)?", questionWithSlot: "Vad \xE4r %1$s?", pleaseEnterSlotNameHere: "(ange platsnamn h\xE4r)", noInputDigitalBot: "Ange (ange ditt platsnamn h\xE4r).", noInputWithSlotDigitalBot: "Ange %1$s.", continuationPromptWithSlot: "Jag har {{Slot.%1$s}} hittills. Forts\xE4tt." }, askForNextSlot: { noInput: 'S\xE4g "ja" om du har en ytterligare fr\xE5ga, eller "nej" f\xF6r att avsluta samtalet.', noMatch: 'S\xE4g "Ja" om du har en ytterligare fr\xE5ga, eller "Nej" f\xF6r att avsluta sessionen.', question: "\xC4r det n\xE5got annat jag kan hj\xE4lpa dig med?", noInputDigitalBot: 'Ange "Ja" om du har fler fr\xE5gor, eller "Nej" f\xF6r att avsluta sessionen.', noMatchDigitalBot: 'Ange "Ja" om du har fler fr\xE5gor, eller "Nej" f\xF6r att avsluta sessionen.' }, askForPayment: { noInputDigitalBot: "Ange din betalningsinformation f\xF6r att forts\xE4tta.", noMatchDigitalBot: "Jag f\xF6rstod inte ditt svar. F\xF6rs\xF6k igen." }, askForAuthentication: { noInputDigitalBot: "Ange din autentiseringsinformation f\xF6r att forts\xE4tta.", noMatchDigitalBot: "Jag f\xF6rstod inte ditt svar. F\xF6rs\xF6k igen." }, askSurveyQuestion: { notApplicable: "Ej till\xE4mpligt", surveyAnswerOptionSequence: "Tryck p\xE5 %1$s f\xF6r %2$s.", surveyAnswerNotApplicableSequence: "Tryck p\xE5 stj\xE4rna f\xF6r Ej till\xE4mpligt.", surveyAnswerNotApplicableWithQuestionSequence: "%1$s. Tryck p\xE5 stj\xE4rna f\xF6r Ej till\xE4mpligt.", voiceSurveyNoInputText: "Var god besvara fr\xE5gan.", voiceSurveyNoMatchText: "Jag kunde inte f\xF6rst\xE5 dig." }, commonModule: { exitCommonModule: "L\xE4mna den gemensamma modulen" }, form: { noInputDigitalBot: "Fyll i formul\xE4ret f\xF6r att forts\xE4tta.", noMatchDigitalBot: "Fyll i formul\xE4ret f\xF6r att forts\xE4tta." }, messagingTemplate: { noInputDigitalBot: "V\xE4lj ett av de tillg\xE4ngliga alternativen.", noMatchDigitalBot: "V\xE4lj ett av de tillg\xE4ngliga alternativen." }, knowledgeSettings: { knowledgeAnswerHighlightFlowProgressionDefault: "Forts\xE4tt", knowledgeAnswerHighlightFullArticleDefault: "Visa fullst\xE4ndig artikel", knowledgeInitialResponseMulti: "Hj\xE4lp mig att f\xF6rst\xE5 ditt m\xE5l genom att v\xE4lja ett v\xE4rde i f\xF6ljande lista:", knowledgeInitialResponseMultiRetry: "V\xE4lj en siffra, till exempel 1.\nH\xE4r \xE4r listan med val igen:", knowledgeNoMatch: "Inget av dessa", knowledgeConfirmation: "Fick du svar p\xE5 din fr\xE5ga?", knowledgeFollowup: "Jag hoppas att jag svarade p\xE5 din fr\xE5ga. Du kan fr\xE5ga om n\xE5got annat du vill veta." }, noOverlay: { intent: { intentConfirmationStr1: "Jag tror att du vill", intentConfirmationStr2: "St\xE4mmer det?" }, youSaid: { youSaidConfirmationStr1: "Du sa", youSaidConfirmationStr2: "St\xE4mmer det?", youSaidConfirmationStr1DigitalBot: "Du har angivit" }, noInput: { noInputStr1: "S\xE4g eller ange", noInputStr1DigitalBot: "Ange" }, noMatch: { noMatchStr1: "Ge mig" }, whatIs: { whatIsQuestionStr1: "Vad \xE4r", whatIsQuestionStr2: "?" }, iGotContinuation: { iGotContinuationStr1: "Jag har", iGotContinuationStr2: "hittills. Forts\xE4tt." } }, defaultCallFlowOne: "Standard samtalsfl\xF6de", errorHandlingAgentEscalationConfirmation: "Du vill prata med en r\xE5dgivare, st\xE4mmer det?", errorHandlingAgentEscalationHandover: "Ett \xF6gonblick, jag kopplar dig.", errorHandlingErrorEventHandover: "Tyv\xE4rr uppstod det ett fel. Ett \xF6gonblick, jag kopplar dig till n\xE5gon som kan hj\xE4lpa dig.", errorHandlingErrorEventHandoverVoiceSurvey: "Tyv\xE4rr har ett fel intr\xE4ffat. Hej d\xE5.", errorHandlingRecognitionEventHandover: "Tyv\xE4rr har jag sv\xE5rt att f\xF6rst\xE5 dig. Ett \xF6gonblick, jag kopplar dig till n\xE5gon som kan hj\xE4lpa dig.", errorHandlingRecognitionEventHandoverVoiceSurvey: "Jag har tyv\xE4rr sv\xE5rt att f\xF6rst\xE5 dig. Hej d\xE5.", errorHandlingTTS: "Tyv\xE4rr uppstod det ett fel. F\xF6rs\xF6k igen.", initialGreetingTTS: "Hej, detta \xE4r din f\xF6rsta h\xE4lsning.", initialState: "Inledande tillst\xE5nd", initialBotState: "Standardrobot", initialDigitalBotState: "Inledande h\xE4lsning", initialSurveyBotState: "Unders\xF6kningsbot", intentConfirmation: "Jag tror att du vill %1$s, \xE4r det korrekt?", mainMenu: "Huvudmeny", mainMenuTTS: "Du \xE4r i huvudmenyn, tryck 9 f\xF6r att koppla bort", mainTask: "Uppgift", settingsConfirmationNoInputApology: "Urs\xE4kta, jag h\xF6rde inte. S\xE4g ja eller nej.", settingsConfirmationNoInputApologyDigitalBot: 'Jag har tyv\xE4rr inte f\xE5tt n\xE5gon information fr\xE5n dig. Ange "Ja" eller "Nej".', settingsConfirmationNoMatchApology: "Urs\xE4kta, s\xE4g ja eller nej.", settingsConfirmationNoMatchApologyDigitalBot: 'Var god ange "Ja" eller "Nej".', settingsNoInputApology: "Urs\xE4kta, jag h\xF6rde inte.", settingsNoInputApologyDigitalBot: "Jag har tyv\xE4rr inte f\xE5tt n\xE5gon information fr\xE5n dig.", settingsEndOfSessionMessageDigitalBot: "Jag har inte h\xF6rt fr\xE5n dig p\xE5 ett tag, s\xE5 jag st\xE4nger den h\xE4r chatten, kom tillbaka om du beh\xF6ver min hj\xE4lp igen. Tack.", settingsNoMatchApology: "Urs\xE4kta.", settingsNoToConfirmationApology: "Jag ber om urs\xE4kt.", periodicStateName: "\xC5terkommande tillst\xE5nd" }; + }, 18322: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(54757)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "listPickerItemCollection"; + } + get displayTypeName() { + return "ArchValueListPickerSectionCollection"; + } + get isArchValueListPickerSectionCollection() { + return true; + } + } + t2.default = r2; + }, 18325: (e2, t2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.published = t2.debug = t2.ver_1_0 = t2.saved = t2.latest = void 0, t2.latest = "latest", t2.saved = "saved", t2.ver_1_0 = "1.0", t2.debug = "debug", t2.published = "published"; + }, 18381: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(16434)), r2 = i2(96618); + class o extends n2.default { + constructor(e3) { + super(e3); + } + get _flowType() { + return r2.flowTypes.flowTypeSurveyInvite; + } + get displayTypeName() { + return "ArchFlowSurveyInvite"; + } + get isArchFlowSurveyInvite() { + return true; + } + } + t2.default = o; + }, 18431: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = i2(30801), o = n2.__importDefault(i2(21345)); + class a extends o.default { + constructor(e3) { + super(e3), e3.skillExpressionFilters && (this._skillExpressionFilters = this.coreFactory.createArchWrapper(e3.skillExpressionFilters)); + } + get _actionTypeId() { + return r2.setSkillExpressionFiltersActionType; + } + get displayTypeName() { + return this._scriptingName; + } + get isArchActionSetSkillExpressionFilters() { + return true; + } + get skillExpressionFilters() { + return this._skillExpressionFilters; + } + get setSkillExpressionFiltersOutputsFailure() { + return this.failureOutputs; + } + } + t2.default = a; + }, 18464: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.multicast = void 0; + var n2 = i2(14359), r2 = i2(10281), o = i2(17812); + t2.multicast = function(e3, t3) { + var i3 = r2.isFunction(e3) ? e3 : function() { + return e3; + }; + return r2.isFunction(t3) ? o.connect(t3, { connector: i3 }) : function(e4) { + return new n2.ConnectableObservable(e4, i3); + }; + }; + }, 18468: (e2, t2, i2) => { + "use strict"; + const n2 = i2(31635), r2 = i2(96618), o = n2.__importDefault(i2(92140)), a = i2(68128), s = i2(28264), l = n2.__importStar(i2(10798)), u = n2.__importDefault(i2(4648)), d = i2(12179), c = n2.__importDefault(i2(97891)), p = i2(28803), _ = i2(5426), h = n2.__importDefault(i2(52910)), m = i2(47957); + class g extends h.default { + constructor(e3, t3) { + super(e3, t3, s.dataActionManager), this.allowSecure = false, this.allowErrorSchema = l.isFeatureAvailable(u.default.callDataActionFailureResponsesFeature) || !o.default.contains(r2.flowTypes.flowTypesAllVxmlgen, this.parentFlow.type), this.resources = { actionLabel: m.dataAction.dataAction, actionNotFound: m.dataAction.actionNotFound, noActionsAvailable: m.dataAction.noActionsAvailable, savedVersionOfAction: m.dataAction.savedVersionOfAction, selectAction: m.dependencies.selectDataAction }; + } + get isDataAction() { + return true; + } + static get managedProperties() { + return [{ property: "actionSetting", createDetails: p.NetworkBasedActionProperty.createCreateDetails("actionId", "actionName", s.dataActionManager, m.dataAction.mustSelectAction, m.dataAction.actionNotFound, "categorySetting"), yamlOptions: g.createYamlOptions("actionSetting", (e3) => e3.setSkipProperty(true)) }, { allowSecure: false, dataList: true, property: "inputs" }, { createDetails: _.ServerActionSchemaCategoryReference.createCreateDetails(a.dataActionCategoryManager), property: "categorySetting", yamlOptions: g.createYamlOptions("categorySetting", (e3) => e3.setSkipProperty(true)) }, { dataList: true, isOutput: true, property: "errorBindings", yamlOptions: g.createYamlOptions("errorBindings", (e3) => e3.setPropertyName("failureOutputs")) }]; + } + postProcessYamlConfig(e3, t3, i3) { + this.commonServerActionPostProcessYamlConfig(e3, t3, i3); + } + } + g.info = c.default.createActionInfo({ actionClass: g, canBeInTask: true, helpTopic: d.helpTopics.actions.data, modelClass: i2(67825), name: m.actions.dataAction, scriptingName: "ArchActionCallData" }), t2.A = g; + }, 18516: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.getDigitalBotConnectorBotVersions = t2.getDigitalBotConnectorBot = t2.getDigitalBotConnectorBots = void 0; + const n2 = i2(31635).__importDefault(i2(36019)), r2 = i2(75601), o = i2(19413), a = i2(30345), s = { ignoreBadResponse: true }; + t2.getDigitalBotConnectorBots = n2.default.request("GET", "{public-api.apps}/api/v2/integrations/botconnectors/{integrationId}/bots/summaries", o, s), t2.getDigitalBotConnectorBot = n2.default.request("GET", "{public-api.apps}/api/v2/integrations/botconnectors/{integrationId}/bots/{botId}", r2, s), t2.getDigitalBotConnectorBotVersions = n2.default.request("GET", "{public-api.apps}/api/v2/integrations/botconnectors/{integrationId}/bots/{botId}", a, s); + }, 18534: (e2, t2, i2) => { + function n2() { + n2.baseConstructor.apply(this, arguments); + } + i2(11475).extend(n2, "GrammarVariable", true), Object.defineProperties(n2.prototype, { typeIdentifier: { writable: true } }), e2.exports = n2; + }, 18543: (e2, t2, i2) => { + "use strict"; + const n2 = i2(31635), r2 = i2(92794), o = n2.__importDefault(i2(92140)), a = n2.__importDefault(i2(73198)), s = n2.__importStar(i2(63824)), l = i2(80428), u = i2(67607), d = i2(79467), c = i2(78513), p = i2(81516), _ = i2(24235), h = n2.__importDefault(i2(27203)), m = n2.__importStar(i2(36781)), g = i2(10798), f = n2.__importStar(i2(58380)), T = i2(1115), y = n2.__importDefault(i2(4648)), S = i2(82632), A = i2(12179), N = i2(12457), O = n2.__importDefault(i2(97891)), I = n2.__importDefault(i2(5730)), v = i2(47957), C = i2(53486); + class b extends I.default { + static get managedProperties() { + return [{ label: v.collectInput.interDigitTimeout, options: d.ExpressionTypeDurationOptions.create((e3) => e3.setDefaultText(a.default.litDurationThreeSeconds).setAllowFlowLevelDefault(true).setScriptingPropertyName("interDigitTimeout").setDurationStyle(s.durationStyles.secondsAndTenthsDuration).setAsInput(true).facets.setMinDur(1e3, true).setMaxDur(99e3, true)), property: "interDigitTimeout", type: l.expressionTypeNames.duration }, { property: "digits", isJustForFlowYaml: true, yamlOptions: b.createYamlOptions("digits", (e3) => e3.setExportOrder(30)) }, { label: v.collectInput.noEntryTimeout, options: d.ExpressionTypeDurationOptions.create((e3) => e3.setDefaultText(a.default.litDurationFiveSeconds).setAllowFlowLevelDefault(true).setScriptingPropertyName("noEntryTimeout").setDurationStyle(s.durationStyles.secondsAndTenthsDuration).setAsInput(true).facets.setMinDur(1e3, true).setMaxDur(99e3, true)), property: "noEntryTimeout", type: l.expressionTypeNames.duration }, { label: v.collectInput.numberDigitsLabelExact, options: c.ExpressionTypeIntegerOptions.create((e3) => e3.setDefaultText("20").facets.setMinInt(1, true).setMaxInt(S.collectInput.maxDigits_32, true)), yamlOptions: b.createYamlOptions("numberOfDigitsMax", (e3) => e3.setPropertyName("max").setShouldBePlainJsType(true)), property: "numberOfDigitsMax", type: l.expressionTypeNames.integer }, { label: v.collectInput.numberDigitsLabelExact, options: c.ExpressionTypeIntegerOptions.create((e3) => e3.setDefaultText("1").facets.setMinInt(1, true).setMaxInt(S.collectInput.maxDigits_32, true)), yamlOptions: b.createYamlOptions("numberOfDigitsMin", (e3) => e3.setPropertyName("min").setShouldBePlainJsType(true)), property: "numberOfDigitsMin", type: l.expressionTypeNames.integer }, { audio: true, options: _.AudioViewModelOptions.create((e3) => e3.setIninTestingField("inputAudio").setLabel(v.collectInput.inputAudio)), property: "prompts", yamlOptions: b.createYamlOptions("inputAudio", (e3) => e3.setPropertyName("inputAudio")) }, { label: v.collectInput.dtmfVariable, options: p.ExpressionTypeStringOptions.create((e3) => e3.setAsOutput()), property: "resultData", type: l.expressionTypeNames.string, yamlOptions: b.createYamlOptions("resultData", (e3) => e3.setPropertyName("inputData").setExportOrder(20)) }, { audio: true, generatedPromptsDetails: { dependentProperties: ["verificationType"], sequenceDefinition: C, getPlaybackMode() { + return this.verificationType.name.toLocaleLowerCase(); + }, getReplacementValues() { + const e3 = {}; + return e3[C.parts.replacementLastInput] = "Flow.$lastInput", e3; + } }, options: _.AudioViewModelOptions.create((e3) => e3.setIsInternal(true).setIninTestingField("verificationAudio").setLabel(v.collectInput.verification)), yamlOptions: b.createYamlOptions("verificationPrompts", (e3) => e3.setSkipProperty(true)), property: "verificationPrompts" }, { label: v.collectInput.includeTerminatingDtmfInResultData, options: u.ExpressionTypeBooleanOptions.create((e3) => e3.setDefaultText("false").setUseCheckbox(true).setAllowModeLiteralOnly().setIninTestingField("includeTerminatingDtmfInResultData")), yamlOptions: b.createYamlOptions("includeTerminatingDtmfInResultData", (e3) => e3.setShouldBePlainJsType(true)), property: "includeTerminatingDtmfInResultData", type: l.expressionTypeNames.boolean }, { label: v.collectInput.acceptJustStar, options: u.ExpressionTypeBooleanOptions.create((e3) => e3.setDefaultText("false").setUseCheckbox(true).setAllowModeLiteralOnly().setIninTestingField("acceptJustStar")), property: "acceptJustStar", type: l.expressionTypeNames.boolean }, { label: v.collectInput.acceptJustPound, options: u.ExpressionTypeBooleanOptions.create((e3) => e3.setDefaultText("false").setUseCheckbox(true).setAllowModeLiteralOnly().setIninTestingField("acceptJustPound")), property: "acceptJustPound", type: l.expressionTypeNames.boolean }]; + } + constructor(e3, t3) { + super(e3.parentFlow, e3), this.prompts = null, this.verificationPrompts = null, this._loadModel(t3); + } + get amObjectEventSink() { + return true; + } + static get branchInfo() { + return h.default.successFailure; + } + getDetails() { + return this.resultData && this.resultData.text ? new N.ActionDetails([v.collectInput.dtmfVariable], [this.resultData.text]) : null; + } + initialize() { + super.initialize(), f.registerEventSinkForEventEmitter(this.parentFlow.languages.id, this); + } + objEvent_supportedLanguagesChanged() { + this.generateAudioExpression(), this.parentFlow.validationComplete$.pipe((0, r2.first)()).subscribe(() => { + this._updatePromptReferencesForAudioCases(); + }); + } + postProcessYamlConfig(e3, t3, i3) { + var n3; + if (e3.digits = {}, this.numberOfDigitsMax.text === this.numberOfDigitsMin.text) e3.digits.exact = e3.min, delete e3.min, delete e3.max; + else { + const r3 = e3.digits.range = {}; + r3.terminatingDtmf = null === (n3 = this.terminatingCharacter) || void 0 === n3 ? void 0 : n3.getConfiguration(t3, i3), o.default.moveAndDeleteProperty(e3, r3, "min"), o.default.moveAndDeleteProperty(e3, r3, "max"), o.default.moveAndDeleteProperty(e3, r3, "includeTerminatingDtmfInResultData"); + } + e3.verificationType = this.verificationType ? this.verificationType.getConfiguration(t3, i3) : "none"; + } + get terminatingCharacter() { + return this.model.terminatingCharacter; + } + set terminatingCharacter(e3) { + this.model.terminatingCharacter = e3, this._updateOutOfService(); + } + get verification() { + return this.model.verification; + } + set verification(e3) { + this.model.verification = e3; + } + get verificationType() { + return this.model.verificationType; + } + set verificationType(e3) { + this.model.verificationType = e3, this.generateAudioExpression(); + } + _initializeDesignTime() { + super._initializeDesignTime(), this.isReadOnly || !this.verificationPrompts || this.verificationPrompts.defaultAudio.customExpressionMode || this.generateAudioExpression(), this._updateOutOfService(), this._updatePromptReferencesForAudioCases(true), (0, g.isFeatureAvailable)(y.default.collectInput40Digits) && (this.numberOfDigitsMax.options.facets.setMaxInt(S.collectInput.maxDigits_40, true), this.numberOfDigitsMin.options.facets.setMaxInt(S.collectInput.maxDigits_40, true)), this.addAutoCleanedUpEventSinkWatch(m.expressionValueChanged, this.numberOfDigitsMin, () => (0, T.validateAction)(this, true, true)), this.addAutoCleanedUpEventSinkWatch(m.expressionValueChanged, this.numberOfDigitsMax, () => (0, T.validateAction)(this, true, true)); + } + _updatePromptReferencesForAudioCases(e3) { + this.verificationPrompts.cases.forEach((t3) => { + var i3; + const n3 = t3.audioExpression; + (null == n3 ? void 0 : n3.text) && !(null === (i3 = n3.getPromptReferences()) || void 0 === i3 ? void 0 : i3.length) && n3.processText(e3); + }); + } + _updateOutOfService() { + this.includeTerminatingDtmfInResultData.outOfService = !this.terminatingCharacter; + } + } + b.info = O.default.createActionInfo({ actionClass: b, canBeInTask: true, helpTopic: A.helpTopics.actions.collectInput, modelClass: i2(70339), name: v.actions.collectInput, scriptingName: "ArchActionCollectInput" }), t2.A = b; + }, 18594: (e2) => { + e2.exports = function(e3, t2, i2, n2) { + const r2 = { enumerable: true, configurable: true, get: function() { + return t2 ? t2[i2] : null; + } }; + n2 || (r2.set = function(e4) { + t2 && (t2[i2] = e4); + }); + try { + Object.defineProperty(e3, i2, r2); + } catch (e4) { + } + }; + }, 18637: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.AudioExpression = void 0; + const n2 = i2(31635), r2 = i2(17604), o = n2.__importDefault(i2(92140)), a = i2(9456), s = n2.__importStar(i2(24032)), l = n2.__importDefault(i2(7401)), u = i2(62017), d = n2.__importStar(i2(36781)), c = n2.__importStar(i2(43773)), p = n2.__importStar(i2(58380)), _ = n2.__importStar(i2(77147)), h = n2.__importStar(i2(43011)), m = n2.__importStar(i2(1115)), g = n2.__importDefault(i2(73198)), f = n2.__importStar(i2(14744)), T = n2.__importStar(i2(42989)), y = n2.__importStar(i2(33653)), S = i2(27491), A = n2.__importDefault(i2(22226)), N = n2.__importStar(i2(9345)), O = n2.__importDefault(i2(86833)), I = i2(14394), v = n2.__importDefault(i2(80145)), C = i2(46782), b = i2(59263), E = i2(39168), R = i2(47957), w = s.getTopic("audioExpression"); + function D(e3, t3, i3, n3) { + t3 = t3 || new l.default(); + const r3 = new b.ExpressionParameters(e3.parentFlow, e3.parent, t3, e3.label); + r3.type = I.globalTypes.audio, r3.options = o.default.isUndefined(n3) ? u.ExpressionTypeAudioOptions.create(function(e4) { + e4.setAllowSecure(true); + }) : n3, e3.parentAudioViewModel && r3.options.setFromOptions(e3.parentAudioViewModel.options), r3.options.setSuppressParserValidationMessages(true).setAllowModeExpression(true, false).setIsOptional(false).setAllowModeLiteral(false).setDoNotTrackUsages(true).setDisallowedFunctionMap(e3.options.disallowedFunctionMap), i3 && (r3.options.renameVariablesCallback = (e4) => { + i3.parameter = e4.text, i3.model = e4.model; + }), r3.parentAudio = e3; + const a2 = new E.NormalExpression(r3); + return e3.initializeDesignTimeCalled && a2.initializeDesignTime(), a2; + } + function P(e3) { + o.default.each(e3.sequenceItems, function(t3) { + e3.validateSequenceItem(t3); + }); + } + function M(e3) { + if (e3.isNoValueMode) return ""; + const t3 = []; + o.default.each(e3.sequenceItems, (i4) => { + const n3 = (function(e4, t4) { + if (!e4.parameter) return ""; + let i5, n4; + switch (e4.type) { + case T.tts: + return e4.parameter && e4.parameter.trim() ? (0, r2.sprintf)('ToAudioTTS("%s")', A.default.rawEscapeStringForExpressionMode(e4.parameter)) : null; + case T.prompt: + return i5 = h.getItem(e4.parameter), n4 = "", !i5 && e4.name ? n4 = e4.name : i5 && (n4 = i5.expressionName), (0, r2.sprintf)("ToAudio(%s)", n4); + case T.expression: + return e4.expression && (e4.expression.processText(true), e4.expression.config && e4.expression.config.root) ? e4.expression.config.text : e4.parameter; + case T.blank: + return e4.parameter ? (0, r2.sprintf)("ToAudioBlank(%s)", e4.parameter) : null; + case T.data: + try { + const i6 = t4.parentFlow.variableGroup.getExpandedVariable(e4.variableId); + if (i6) return (0, r2.sprintf)(e4.expressionFormat, i6.getExpressionTextWithNameFallback(), e4.parameter2 || ""); + } catch (e5) { + console.log(e5); + } + return (0, r2.sprintf)(e4.expressionFormat, e4.parameter, e4.parameter2 || ""); + default: + return w.error("Unknown sequence item type of " + e4.type), null; + } + })(i4, e3); + n3 && t3.push(n3); + }); + let i3 = ""; + return 1 === t3.length ? i3 = t3[0] : t3.length > 1 && (i3 = (0, r2.sprintf)("Append(%s)", t3.join(", "))), S.expressionDataService.expressionFuncOpsByOverloadId[v.default.audio_AudioPlaybackOptions_Barge] && !S.expressionDataService.expressionFuncOpsByOverloadId[v.default.audio_AudioPlaybackOptions_Barge].isUnavailable && "" !== i3 && e3.parentAudioViewModel.options.supportsBargeInExpression && e3.parentAudioViewModel.bargeInExpression && (i3 = (0, r2.sprintf)("AudioPlaybackOptions(%s, %s)", i3, e3.parentAudioViewModel.bargeInExpression.getEmbeddableExpressionText())), i3; + } + function F(e3) { + if (e3.parentFlow && !e3.parentFlow.loaded) return; + if (e3.customExpressionMode) return; + const t3 = M(e3); + e3.setText(t3, true, false), P(e3); + } + function L(e3, t3) { + return e3.sequenceItems.push(t3), e3.validateSequenceItem(t3), p.fireEvent(e3, d.sequenceItemsChanged, false), t3; + } + let x = 500; + class k extends C.BaseExpression { + get className() { + return "AudioExpression"; + } + constructor(e3) { + e3.type = I.globalTypes.audio, e3.options = e3.options || u.ExpressionTypeAudioOptions.create(function(e4) { + e4.setAllowSecure(true); + }), super(e3); + const t3 = this.model.uiMetaData ? this.model.uiMetaData.sequenceItems : []; + o.default.each(t3, function(e4) { + e4.$testId = (0, a.uuid)(); + }), this.sequenceItems = t3 || [], this.updateSequenceExpressionDebounced = o.default.debounce(F.bind(null, this), this.updateTime), this.buildExpressionText = M.bind(this), this._sequenceErrors = {}, this._initialize(); + } + get $testId() { + return this.model.uiMetaData.$testId; + } + get blankAudioDefault() { + return x; + } + set blankAudioDefault(e3) { + x = e3; + } + get customExpressionMode() { + return !!this.model.uiMetaData && !!this.model.uiMetaData.customExpressionMode; + } + set customExpressionMode(e3) { + this.model.uiMetaData.customExpressionMode = !!e3, e3 || 0 !== this.sequenceItems.length || this.addTtsSequence(); + } + getConfiguration(e3, t3) { + if (null == t3 ? void 0 : t3.isForComparison) return c.removePropertiesForComparison(this.model); + if (null == t3 ? void 0 : t3.isForFlowYaml) { + if (!this.hasAudioSet) return null; + const e4 = {}, t4 = this.isBargeInEnabled; + if (t4 && this.isTTSOnly) e4.tts = this.sequenceItems[0].parameter; + else if (t4 && this.isPromptOnly) e4.prompt = this.sequenceItems[0].name; + else { + if (!this.text) return null; + e4.exp = this.text; + } + return e4; + } + return this.model; + } + getDisplayName() { + return ""; + } + get isNoValueMode() { + const e3 = this.parentAudioViewModel; + return !!e3 && e3.noValueMode; + } + get isAudioExpression() { + return true; + } + get parentAudio() { + return this._parentAudio; + } + set parentAudio(e3) { + this._parentAudio = e3, this.updateSequenceExpression(true); + } + get isTTSOnly() { + return !this.customExpressionMode && this.sequenceItems && 1 === this.sequenceItems.length && this.sequenceItems[0].type === T.tts; + } + get isPromptOnly() { + return !this.customExpressionMode && this.sequenceItems && 1 === this.sequenceItems.length && this.sequenceItems[0].type === T.prompt; + } + get isPromptVariableOnly() { + if (!this.customExpressionMode && this.sequenceItems && 1 === this.sequenceItems.length && this.sequenceItems[0].type === T.data) { + const e3 = this.parentFlow.getVariable(this.sequenceItems[0].variableId); + return e3 && e3.type.isMatch(I.globalTypes.prompt, N.settings.exact); + } + return false; + } + get parentAudioViewModel() { + return !this.parentAudio || this.parentAudio.isAudioViewModel ? this.parentAudio : this.parentAudio.parentAudioViewModel; + } + get hasAudioSet() { + return this.customExpressionMode ? !this.isBlank : this.isTTSOnly ? !!this.sequenceItems[0].parameter : this.hasSequenceItems; + } + get hasSequenceItems() { + return this.sequenceItems && this.sequenceItems.length > 0; + } + get sequenceInError() { + return this._sequenceErrors && Object.keys(this._sequenceErrors).length > 0; + } + getErrorForSequenceItem(e3) { + if (this._sequenceErrors && e3) return this._sequenceErrors[e3.$testId]; + } + get isSequenceItemsEmptyOrTtsWithNoAudioSet() { + return !this.hasSequenceItems || this.isTTSOnly && !this.hasAudioSet; + } + _getHasError() { + return !!this.sequenceInError || super._getHasError(); + } + updateSequenceExpression(e3) { + e3 ? F(this) : this.updateSequenceExpressionDebounced(); + } + _initialize() { + o.default.each(this.sequenceItems, (e3) => { + if (e3.type === T.expression) { + const t3 = e3.model ? new l.default(e3.model) : new l.default(), i3 = D(this, t3, e3, this.options.clone()); + Object.defineProperty(e3, "expression", { enumerable: false, writable: true, value: i3 }), e3.expression.text = e3.parameter, e3.model = t3; + } + }), h.userPromptListManager.registerAudioExpression(this), super._initialize(); + } + _initializeDesignTime() { + super._initializeDesignTime(), this.parentFlow.isReadOnly || this.sequenceItems.forEach((e3) => { + if (e3.type === T.data && e3.expressionFormat) { + const t3 = this.parentFlow.variableGroup.getExpandedVariable(e3.variableId); + if (t3) { + const i3 = f.getPlaybackOptions(t3.type, this.parentFlow); + i3 ? f.updateDataSequenceItemExpressionFormat(i3, e3) : w.error(`did not find playbackOptions for ${t3.toString()}`); + } + } + }), this.sequenceItems.forEach((e3) => { + e3.type === T.expression && e3.expression && e3.expression.initializeDesignTime(); + }); + } + _ensureUiMetaData() { + super._ensureUiMetaData(), this.model.uiMetaData.sequenceItems = this.sequenceItems, this.model.uiMetaData.$testId = this.model.uiMetaData.$testId || (0, a.uuid)(); + } + addBlankSequence() { + return L(this, { $testId: (0, a.uuid)(), parameter: this.blankAudioDefault, type: T.blank }); + } + addClipboardDependencies(e3, t3) { + super.addClipboardDependencies(e3), o.default.each(this.sequenceItems, (i3) => { + let n3; + switch (i3.type) { + case T.data: + n3 = this.parentFlow.getVariable(i3.variableId), e3.copyCutAddDependencyVariable(n3, t3); + break; + case T.expression: + i3.expression && i3.expression.addClipboardDependencies(e3); + } + }), o.default.each(this.variables, function(i3) { + e3.copyCutAddDependencyVariable(i3, t3); + }); + } + addTtsSequence() { + return L(this, { $testId: (0, a.uuid)(), type: T.tts }); + } + addPromptSequence() { + return L(this, { $testId: (0, a.uuid)(), type: T.prompt }); + } + addDataSequence(e3) { + const t3 = { type: T.data, $testId: (0, a.uuid)() }; + return e3 && (t3.parameter = e3.name, t3.variableId = e3.id), L(this, t3); + } + addExpressionSequence(e3, t3) { + const i3 = { $testId: (0, a.uuid)(), type: T.expression }; + return Object.defineProperty(i3, "expression", { enumerable: false, writable: true, value: D(this, e3, void 0, t3) }), i3.model = i3.expression.model, L(this, i3); + } + allPromptsHaveAudio() { + return o.default.every(this.getOrderedPrompts(), (e3) => this.promptHasAudio(e3.id)); + } + cloneSequenceItems(e3) { + this.sequenceItems.length = 0, o.default.each(e3.sequenceItems, (e4) => { + let t3; + e4.type === T.expression ? (t3 = this.addExpressionSequence(new l.default(o.default.clone(e4.model)), e4.expression.options), t3.parameter = e4.parameter) : (t3 = o.default.clone(e4), t3.type === T.expression && (t3.expression = D(this, new l.default(t3.model), t3)), this.sequenceItems.push(t3)); + }); + } + copyExpressionValue(e3) { + this.customExpressionMode = e3.customExpressionMode, this.customExpressionMode && (this.text = e3.text), this.cloneSequenceItems(e3), this.updateSequenceExpression(true); + } + clear(e3) { + this._reset(e3), this.setConfigAndMetaData(O.default.getEmp(this)); + } + _destroy() { + h.userPromptListManager.unregisterAudioExpression(this), o.default.each(this.sequenceItems, (e3) => { + e3 && e3.type === T.expression && e3.expression && e3.expression.destroy(); + }), super._destroy(); + } + getOrderedPrompts() { + var e3; + let t3 = []; + if (this.customExpressionMode) { + const i3 = this.getPromptReferences(); + (null === (e3 = this.indirectlyUsedPrompts) || void 0 === e3 ? void 0 : e3.length) && this.indirectlyUsedPrompts.forEach((e4) => { + i3.push(e4); + }), o.default.each(i3, function(e4) { + const i4 = h.getItem(e4.id); + i4 && t3.push(i4); + }); + } else o.default.each(this.sequenceItems, (e4) => { + t3 = o.default.union(t3, this.getPromptsFromSequenceItem(e4)); + }); + return t3; + } + getPromptsFromSequenceItem(e3) { + const t3 = []; + let i3, n3; + switch (e3.type) { + case T.prompt: + i3 = h.getItem(e3.parameter), i3 && t3.push(i3); + break; + case T.expression: + n3 = e3.expression.getPromptReferences(), o.default.each(n3, function(e4) { + const i4 = h.getItem(e4.id); + i4 && t3.push(i4); + }); + break; + case T.data: + case T.tts: + case T.blank: + break; + default: + w.error("Unknown sequence item type of " + e3.type); + } + return t3; + } + promptSequenceHasAudio(e3) { + return e3.type !== T.prompt || !e3.parameter || this.promptHasAudio(e3.parameter); + } + promptHasAudio(e3) { + if (e3) { + const t3 = h.getItem(e3); + return !!t3 && _.promptHasRequiredMedia(this.parentFlow, t3, this.languages); + } + return false; + } + replaceUsages(e3, t3, i3) { + if (this.customExpressionMode) super.replaceUsages(e3, t3, i3); + else { + let n3 = false; + o.default.each(this.sequenceItems, (r3) => { + r3.type === T.data && r3.parameter === e3 ? (r3.parameter = t3, r3.type === T.data && i3 && i3.id && (r3.variableId = i3.id), n3 = true) : r3.type === T.expression && r3.parameter && r3.parameter.toLowerCase().indexOf(e3.toLowerCase()) > -1 && (r3.expression.replaceUsages(e3, t3, i3), r3.parameter = r3.expression.text, n3 = true); + }), n3 && this.updateSequenceExpression(true); + } + } + renamePromptVariables(e3) { + this.customExpressionMode ? super.renamePromptVariables(e3) : o.default.each(this.sequenceItems, (t3, i3) => { + if (t3.type === T.expression) t3.expression.renamePromptVariables(); + else if (t3.type === T.prompt && !t3.isSystem) { + let n3 = h.userPromptListManager.getItem(t3.parameter); + if (n3 && n3.expressionName !== t3.name) { + const r3 = t3.name; + w.info(`renaming prompt with id '${n3.id}' in expression with id '${this.id}' at sequence: ${i3}`), t3.name = n3.expressionName, e3 || d.emitter.emit(d.promptChanged, n3, r3); + } else !n3 && t3.name && (n3 = h.userPromptListManager.getItemByName(t3.name), n3 && (w.info(`updating prompt id in expression with id '${this.id}' sequence:${i3} from: '${t3.parameter}' to: '${n3.id}'`), t3.parameter = n3.id)); + } + }), this.updateSequenceExpression(true); + } + updateIfPromptIsUsed(e3) { + o.default.find(this.sequenceItems, function(t3) { + let i3 = t3.parameter === e3.id; + return i3 || (i3 = !!(t3.expression && t3.expression.variables && t3.expression.variables[e3.id])), i3; + }) && (this.renamePromptVariables(true), P(this)); + } + search(e3) { + this.customExpressionMode ? e3.checkText(this, this.text, this.label) : o.default.each(this.sequenceItems, (t3) => { + t3.type !== T.prompt && e3.checkText(this, t3.parameter, this.label); + }); + } + setExpressionOnly(e3) { + this.customExpressionMode = false, this.sequenceItems.length = 0, this.addExpressionSequence(); + const t3 = this.sequenceItems[0]; + (null == t3 ? void 0 : t3.expression) && delete this._sequenceErrors[t3.expression.id]; + const i3 = new b.ExpressionParameters(this.parentFlow, this.parent, new l.default(), this.label); + i3.type = I.globalTypes.audio, i3.options = u.ExpressionTypeAudioOptions.create(function(e4) { + e4.setAllowModeExpression(true).setAllowModeLiteral(false); + }); + const n3 = this.sequenceItems[0]; + n3.expression = new E.NormalExpression(i3), n3.expression.parentAudio = this.parentAudio, n3.expression.text = e3, n3.parameter = e3, this.updateSequenceExpression(); + } + moveSequenceItemUp(e3) { + const t3 = this.sequenceItems.indexOf(e3); + if (!(t3 - 1 >= 0)) return -1; + const i3 = this.sequenceItems[t3]; + return this.sequenceItems[t3] = this.sequenceItems[t3 - 1], this.sequenceItems[t3 - 1] = i3, this.updateSequenceExpression(), p.fireEvent(this, d.sequenceItemsChanged), t3 - 1; + } + moveSequenceItemDown(e3) { + const t3 = this.sequenceItems.indexOf(e3); + if (!(t3 + 1 < this.sequenceItems.length)) return -1; + const i3 = this.sequenceItems[t3]; + return this.sequenceItems[t3] = this.sequenceItems[t3 + 1], this.sequenceItems[t3 + 1] = i3, this.updateSequenceExpression(), p.fireEvent(this, d.sequenceItemsChanged), t3 + 1; + } + moveSequenceItemToIndex(e3, t3) { + const i3 = this.sequenceItems.indexOf(e3); + i3 >= this.sequenceItems.length || -1 === i3 || (this.sequenceItems.splice(i3, 1), this.sequenceItems.splice(t3, 0, e3), this.updateSequenceExpression(), p.fireEvent(this, d.sequenceItemsChanged)); + } + deleteSequenceItem(e3) { + const t3 = this.sequenceItems.indexOf(e3); + (t3 || 0 === t3) && (this.sequenceItems.splice(t3, 1), e3 && e3.expression && e3.expression.destroy(), this.updateSequenceExpression(true), m.validateItem(this, void 0, true), p.fireEvent(this, d.sequenceItemsChanged)); + } + setPromptOnly(e3) { + this.customExpressionMode = false, this.isPromptOnly || (this.sequenceItems.length = 0, this.addPromptSequence()); + const t3 = this.sequenceItems[0]; + e3.id !== t3.parameter && (t3.parameter = e3.id, t3.isSystem = e3.isSystem, t3.name = e3.expressionName, t3.expressionName = e3.expressionName), this.updateSequenceExpression(); + } + setTTSOnly(e3) { + this.customExpressionMode = false, this.isTTSOnly || (this.sequenceItems.length = 0, this.addTtsSequence()), e3 !== this.sequenceItems[0].parameter && (this.sequenceItems[0].parameter = e3), this.updateSequenceExpression(); + } + setPromptVariableOnly(e3) { + this.customExpressionMode = false, this.sequenceItems.length = 0, this.addDataSequence(e3), this.sequenceItems[0].expressionFormat = "ToAudio(%s)", this.updateSequenceExpression(); + } + validate(e3) { + if (this._sequenceErrors = {}, !this.outOfService) { + if (e3.isDeep && this.renamePromptVariables(), this.customExpressionMode) this.hasWarning && this._parseResult.resultMessage && e3.addWarning(this, this._parseResult.resultMessage, void 0, true); + else { + if (this.isNoValueMode ? this.processText(true) : o.default.each(this.sequenceItems, (t3, i3) => { + if (this.validateSequenceItem(t3)) { + const t4 = (0, r2.sprintf)(R.audio.sequenceError, i3 + 1, this.label); + e3.addError(this.parentAudioViewModel, t4, void 0, true); + } + this.getSequenceItemWarning(t3) && !this.isSequenceItemsEmptyOrTtsWithNoAudioSet && e3.addWarning(this.parentAudioViewModel, (0, r2.sprintf)(R.audio.sequenceWarn, i3 + 1, this.label), void 0, true); + }), this.sequenceInError) return void this.clearParseResult(); + this.processText(true); + } + if (!this.isBlank || this.isOptional && (this.options.allowBlankAudio || this.isNoValueMode)) return super.validate(e3); + e3.addError(this.parentAudioViewModel, (0, r2.sprintf)(R.expression.notSetWithContext, this.label), void 0, true); + } + } + validateSequenceItem(e3) { + let t3, i3; + switch (e3.type) { + case T.prompt: + t3 = (function(e4, t4) { + if (t4.parameter) { + const i4 = h.getItem(t4.parameter); + return !i4 && t4.name ? (0, r2.sprintf)(R.audio.errorPromptCouldNotBeFound, t4.name) : i4 ? (t4.warningText = y.checkPromptAudioDuration(e4, t4.parameter), e4.addVariableOrPromptReference(i4.expressionName), i4.getTtsExceedsMaxLengthError(e4) || (e4.promptSequenceHasAudio(t4) ? "" : e4.getPromptMissingResourcesErrorString(i4))) : R.audio.errorNoPrompt; + } + return R.audio.errorNoPrompt; + })(this, e3) || "", i3 = e3.$testId; + break; + case T.data: + t3 = (function(e4, t4) { + let i4, n3, o2; + if (t4.functionOverloadIds) for (let e5 = 0; e5 < t4.functionOverloadIds.length; e5++) { + const r3 = S.expressionDataService.expressionFuncOpsByOverloadId[t4.functionOverloadIds[e5]]; + r3 && !r3.isUnavailable || (i4 = true), r3 && (r3.runtimeSequencesSystemPrompts && (n3 = true), r3.runtimeRequiresTTSSupport && (o2 = true)); + } + for (let i5 = 0; i5 < e4.languages.length; i5++) { + const a2 = e4.languages[i5]; + if (n3 && !e4.parentFlow.getDestinationFlowTypesThatSupportTtsAndAsrAtRuntime().every((e5) => a2.getSupportsAudioDataPlaybackForFlowType(e5))) return (0, r2.sprintf)(R.audio.errorNoAudioPlaybackSupport, a2.text); + if (o2 && !e4.parentFlow.getDestinationFlowTypesThatSupportTtsAndAsrAtRuntime().every((t5) => a2.getSupportsTTSPlaybackForFlowType(t5, e4.parentFlow))) return (0, r2.sprintf)(R.audio.errorNoTTSSupport, a2.text); + if (o2 && !a2.getSupportsTTSPlaybackForFlow(e4.parentFlow.topParentFlow)) return e4.parentFlow.validationResults.missingTTSEngine[a2.text] = true, (0, r2.sprintf)(R.audio.errorNotValidTTS, a2.text); + if (t4.languageGender && (!a2.supportedLanguageContexts || !a2.supportedLanguageContexts[t4.languageGender.id])) return (0, r2.sprintf)(R.audio.errorNoLanguageGenderSupport, a2.id); + if (t4.languageCase && (!a2.supportedLanguageContexts || !a2.supportedLanguageContexts[t4.languageCase.id])) return (0, r2.sprintf)(R.audio.errorNoLanguageCaseSupport, a2.id); + } + if (i4) return R.audio.unavailableAudioOption; + if (t4.parameter || t4.variableId) { + const i5 = e4.parentFlow.variableGroup; + let n4; + return t4.variableId && (n4 = i5.getExpandedVariable(t4.variableId)), !n4 && t4.parameter && (n4 = i5.getVariableByName(t4.parameter, e4.getParentTask())), n4 ? !e4.options.allowSecure && n4.isSecure ? (0, r2.sprintf)(R.expression.secureVariableUsageNotAllowed, n4.name) : t4.expressionFormat ? "" : R.audio.errorNoDataOptions : R.audio.errorInvalidVariable; + } + return R.audio.errorNoVariable; + })(this, e3) || "", i3 = e3.$testId; + break; + case T.expression: + t3 = (function(e4, t4) { + if (t4.expression.parentFlow.validationResults.isDeep && t4.expression.processText(true), t4.expression && t4.expression.hasError) return t4.expression.resultMessage; + t4.expression && (t4.warningText = y.checkExpressionPromptReferences(e4)); + })(this, e3) || "", i3 = e3.expression.id; + break; + case T.tts: + t3 = (function(e4, t4) { + if (t4.parameter && t4.parameter.trim()) for (let i4 = 0; i4 < e4.languages.length; i4++) { + const n3 = e4.languages[i4]; + if (!e4.parentFlow.topParentFlow.getDestinationFlowTypesThatSupportTtsAndAsrAtRuntime().every((t5) => n3.getSupportsTTSPlaybackForFlowType(t5, e4.parentFlow))) return (0, r2.sprintf)(R.audio.errorNoTTSSupport, n3.text); + if (!n3.getSupportsTTSPlaybackForFlow(e4.parentFlow.topParentFlow)) return e4.parentFlow.validationResults.missingTTSEngine[n3.text] = true, (0, r2.sprintf)(R.audio.errorNotValidTTS, n3.text); + const o2 = n3.getStringExceedsMaxRequestLengthError(e4.parentFlow.topParentFlow, t4.parameter); + if (o2) return o2; + } + })(this, e3) || "", i3 = e3.$testId; + break; + case T.blank: + t3 = (function(e4, t4) { + if (!t4.parameter) return R.audio.errorNoBlankAudioLength; + t4.warningText = y.checkBlankAudioLength(e4, t4.parameter); + })(this, e3) || "", i3 = e3.$testId; + break; + default: + t3 = R.audio.typeNotRecognizedError; + } + return "" !== t3 ? this._sequenceErrors[i3] = t3 : this._sequenceErrors[i3] && delete this._sequenceErrors[i3], e3.error = t3, t3; + } + getSequenceItemWarning(e3) { + switch (e3.type) { + case T.tts: + if (!e3.parameter) return R.audio.blankTTSWarning; + break; + case T.expression: + return e3.expression && e3.expression.hasWarning ? e3.expression._parseResult.resultMessage : e3.warningText; + case T.prompt: + case T.blank: + return e3.warningText; + } + } + get runtimeConsumingFlowTypes() { + var e3, t3; + return (null === (t3 = null === (e3 = this.parentAudio) || void 0 === e3 ? void 0 : e3.supportedFlowTypes) || void 0 === t3 ? void 0 : t3.length) ? o.default.intersection(this.parentFlow.destinationFlowTypes, this.parentAudio.supportedFlowTypes) : this.parentFlow.destinationFlowTypes; + } + get isBargeInEnabled() { + var e3; + return this.parentAudioViewModel.options.supportsBargeInExpression && (null === (e3 = this.parentAudioViewModel.bargeInExpression) || void 0 === e3 ? void 0 : e3.text) === g.default.true; + } + allowExpandedVariableReference(e3) { + return !(null == e3 ? void 0 : e3.hierarchicalParent); + } + } + t2.AudioExpression = k; + }, 18638: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.permissionServiceHelper = void 0; + const n2 = i2(31635), r2 = i2(17604), o = n2.__importDefault(i2(92140)), a = n2.__importStar(i2(74359)), s = i2(67210), l = i2(44724), u = i2(8310), d = i2(47957); + t2.permissionServiceHelper = new class { + constructor() { + this.permissionMap = void 0; + } + canAddResponseAsset() { + return s.permissionService.checkHasPermissionInAtLeastOneDivision(a.getConnectedUser(), s.permissionService.staticPermissions[l.permissionStrings.responseAssets.asset.add]).hasPermission; + } + canViewResponseAsset() { + return s.permissionService.checkHasPermissionInAtLeastOneDivision(a.getConnectedUser(), s.permissionService.staticPermissions[l.permissionStrings.responseAssets.asset.view]).hasPermission; + } + getDivisionsWithAddResponseAssetPermission() { + return s.permissionService.getDivisionsForPermission(a.getConnectedUser(), s.permissionService.staticPermissions[l.permissionStrings.responseAssets.asset.add]); + } + canViewActionMap() { + return s.permissionService.checkHasPermissionInAtLeastOneDivision(a.getConnectedUser(), s.permissionService.staticPermissions[l.permissionStrings.journey.actionMap.view]).hasPermission; + } + canViewProcessAutomationTriggers() { + return s.permissionService.checkHasPermissionInAtLeastOneDivision(a.getConnectedUser(), s.permissionService.staticPermissions[l.permissionStrings.processAutomation.triggers.view]).hasPermission; + } + canViewWorkitems() { + return s.permissionService.checkHasPermissionInAtLeastOneDivision(a.getConnectedUser(), s.permissionService.staticPermissions[l.permissionStrings.external.externalAuthorizations.workitemsView]).hasPermission; + } + canRebuildDependencyTracking() { + return s.permissionService.checkHasPermissionInAtLeastOneDivision(a.getConnectedUser(), s.permissionService.staticPermissions[l.permissionStrings.architect.dependencyTracking.rebuild]).hasPermission; + } + canEditVirtualAgentFlow() { + return s.permissionService.checkHasPermissionInAtLeastOneDivision(a.getConnectedUser(), s.permissionService.staticPermissions[l.permissionStrings.architect.virtualAgentFlow.edit]).hasPermission; + } + canViewVirtualAgentWrapupCodeGrid() { + return s.permissionService.checkHasPermissionInAtLeastOneDivision(a.getConnectedUser(), s.permissionService.staticPermissions[l.permissionStrings.external.externalAuthorizations.wrapupCode]).hasPermission && s.permissionService.checkHasPermissionInAtLeastOneDivision(a.getConnectedUser(), s.permissionService.staticPermissions[l.permissionStrings.external.externalAuthorizations.wrapupCodeSearch]).hasPermission; + } + canViewDependencyTracking() { + return s.permissionService.checkHasPermissionInAtLeastOneDivision(a.getConnectedUser(), s.permissionService.staticPermissions[l.permissionStrings.architect.dependencyTracking.view]).hasPermission; + } + canViewFlowExecution() { + return s.permissionService.checkHasPermissionInAtLeastOneDivision(a.getConnectedUser(), s.permissionService.staticPermissions[l.permissionStrings.architect.flowExecution.view]).hasPermission; + } + canViewFlowDefaultLogLevelConfiguration() { + return s.permissionService.checkHasPermissionInAtLeastOneDivision(a.getConnectedUser(), s.permissionService.staticPermissions[l.permissionStrings.architect.flowLogLevelDefault.view]).hasPermission; + } + canViewFlowLogLevelConfiguration() { + return s.permissionService.checkHasPermissionInAtLeastOneDivision(a.getConnectedUser(), s.permissionService.staticPermissions[l.permissionStrings.architect.flowLogLevel.view]).hasPermission; + } + canViewLogLevelConfigurationForFlow(e3) { + return s.permissionService.checkFlowHasPermission(e3, a.getConnectedUser(), l.permissionStrings.architect.flowLogLevel.view).hasPermission; + } + canManageExecutionDataConfigurationInAdmin() { + return s.permissionService.checkHasPermissionInAtLeastOneDivision(a.getConnectedUser(), s.permissionService.staticPermissions[l.permissionStrings.architect.flowInstanceExecutionData.view]).hasPermission && s.permissionService.checkHasPermissionInAtLeastOneDivision(a.getConnectedUser(), s.permissionService.staticPermissions[l.permissionStrings.external.externalAuthorizations.directoryOrganizationAdmin]).hasPermission; + } + canViewSettingsExecutionData() { + return s.permissionService.checkHasPermissionInAtLeastOneDivision(a.getConnectedUser(), s.permissionService.staticPermissions[l.permissionStrings.external.externalAuthorizations.settingsExecutionDataView]).hasPermission; + } + canQueryAnalyticsFlowExecutionAggregate() { + return s.permissionService.checkHasPermissionInAtLeastOneDivision(a.getConnectedUser(), s.permissionService.staticPermissions[l.permissionStrings.external.externalAuthorizations.analyticsFlowExecutionAggregateView]).hasPermission; + } + canQueryFlowInstanceHistory() { + return s.permissionService.checkHasPermissionInAtLeastOneDivision(a.getConnectedUser(), s.permissionService.staticPermissions[l.permissionStrings.architect.flowInstance.search]).hasPermission; + } + canViewFlowInstanceHistory() { + return s.permissionService.checkHasPermissionInAtLeastOneDivision(a.getConnectedUser(), s.permissionService.staticPermissions[l.permissionStrings.architect.flowInstance.view]).hasPermission; + } + canViewUserPrompts() { + return this.checkCanViewUserPrompts().hasPermission; + } + checkCanViewUserPrompts() { + return s.permissionService.checkHasPermissionInAtLeastOneDivision(a.getConnectedUser(), s.permissionService.staticPermissions[l.permissionStrings.architect.userPrompt.view]); + } + canEditUserPrompts() { + return s.permissionService.checkHasPermissionInAtLeastOneDivision(a.getConnectedUser(), s.permissionService.staticPermissions[l.permissionStrings.architect.userPrompt.edit]).hasPermission; + } + canViewSystemPrompts() { + return this.checkCanViewSystemPrompts().hasPermission; + } + checkCanViewSystemPrompts() { + return s.permissionService.checkHasPermissionInAtLeastOneDivision(a.getConnectedUser(), s.permissionService.staticPermissions[l.permissionStrings.architect.systemPrompt.view]); + } + canEditSystemPrompts() { + return s.permissionService.checkHasPermissionInAtLeastOneDivision(a.getConnectedUser(), s.permissionService.staticPermissions[l.permissionStrings.architect.systemPrompt.edit]).hasPermission; + } + getDivisionsWithFlowView() { + return s.permissionService.getDivisionsForPermission(a.getConnectedUser(), s.permissionService.staticPermissions[l.permissionStrings.architect.flow.view]); + } + getDivisionsWithFlowAdd() { + const e3 = o.default.map(u.uiFeatureSetInfo.flowAddOrSaveAs.permissions, (e4) => s.permissionService.staticPermissions[e4]); + return s.permissionService.getDivisionsForPermission(a.getConnectedUser(), e3); + } + getDivisionsWithFlowChangeDivision() { + const e3 = o.default.map(u.uiFeatureSetInfo.flowEditDivision.permissions, (e4) => s.permissionService.staticPermissions[e4]); + return s.permissionService.getDivisionsForPermission(a.getConnectedUser(), e3); + } + canAddFlowToDivision(e3) { + const t3 = o.default.map(u.uiFeatureSetInfo.flowAddOrSaveAs.permissions, (e4) => s.permissionService.staticPermissions[e4]); + return s.permissionService.checkDivisionHasPermission(e3, t3).hasPermission; + } + canUnlockFlow(e3) { + return s.permissionService.checkFlowHasPermission(e3, a.getConnectedUser(), l.permissionStrings.architect.flow.unlock).hasPermission; + } + canDeleteFlow(e3) { + return this.checkCanDeleteFlow(e3).hasPermission; + } + checkCanDeleteFlow(e3) { + return s.permissionService.checkFlowHasPermission(e3, a.getConnectedUser(), l.permissionStrings.architect.flow.delete); + } + canEditFlow(e3) { + return this.checkCanEditFlow(e3).hasPermission; + } + checkCanEditFlow(e3) { + return s.permissionService.checkFlowHasPermission(e3, a.getConnectedUser(), l.permissionStrings.architect.flow.edit); + } + canPublishFlow(e3) { + return this.checkCanPublishFlow(e3).hasPermission; + } + checkCanPublishFlow(e3) { + return s.permissionService.checkFlowHasPermission(e3, a.getConnectedUser(), l.permissionStrings.architect.flow.publish); + } + checkCanUnlockFlow(e3) { + return s.permissionService.checkFlowHasPermission(e3, a.getConnectedUser(), l.permissionStrings.architect.flow.unlock); + } + canViewFlow(e3) { + return this.checkCanViewFlow(e3).hasPermission; + } + checkCanViewFlow(e3) { + return s.permissionService.checkFlowHasPermission(e3, a.getConnectedUser(), l.permissionStrings.architect.flow.view); + } + canViewBotSessions() { + return s.permissionService.checkHasPermissionInAtLeastOneDivision(a.getConnectedUser(), s.permissionService.staticPermissions[l.permissionStrings.external.externalAuthorizations.analyticsBotFlowReportingTurnView]).hasPermission; + } + canViewIntentMiner() { + return s.permissionService.checkHasPermissionInAtLeastOneDivision(a.getConnectedUser(), s.permissionService.staticPermissions[l.permissionStrings.external.externalAuthorizations.intentMinerView]).hasPermission; + } + canUsePreviewWidget() { + return s.permissionService.checkHasPermissionInAtLeastOneDivision(a.getConnectedUser(), s.permissionService.staticPermissions[l.permissionStrings.external.externalAuthorizations.previewWidgetView]).hasPermission; + } + canViewBotPerformanceReport() { + return [l.permissionStrings.external.externalAuthorizations.analyticsBotAggregateView, l.permissionStrings.architect.flow.search].every((e3) => s.permissionService.checkHasPermissionInAtLeastOneDivision(a.getConnectedUser(), s.permissionService.staticPermissions[e3]).hasPermission); + } + canViewVirtualAgentPerformanceReport() { + return [l.permissionStrings.external.externalAuthorizations.analyticsBotAggregateView, l.permissionStrings.external.externalAuthorizations.analyticsFlowAggregateView, l.permissionStrings.external.externalAuthorizations.analyticsKnowledgeAggregateView, l.permissionStrings.external.externalAuthorizations.analyticsSummaryAggregateView].every((e3) => s.permissionService.checkHasPermissionInAtLeastOneDivision(a.getConnectedUser(), s.permissionService.staticPermissions[e3]).hasPermission); + } + canViewInteractionReport() { + const e3 = [l.permissionStrings.external.externalAuthorizations.analyticsConversationAggregateView, l.permissionStrings.external.externalAuthorizations.analyticsConversationDetailView].every((e4) => s.permissionService.checkHasPermissionInAtLeastOneDivision(a.getConnectedUser(), s.permissionService.staticPermissions[e4]).hasPermission), t3 = [l.permissionStrings.external.externalAuthorizations.conversationCommunicationView, l.permissionStrings.external.externalAuthorizations.qualityCalibrationView, l.permissionStrings.external.externalAuthorizations.qualityEvaluationEditScore, l.permissionStrings.external.externalAuthorizations.qualityEvaluationAdd].some((e4) => s.permissionService.checkHasPermissionInAtLeastOneDivision(a.getConnectedUser(), s.permissionService.staticPermissions[e4]).hasPermission); + return e3 && t3; + } + canViewPathDiscovery() { + return s.permissionService.checkHasPermissionInAtLeastOneDivision(a.getConnectedUser(), s.permissionService.staticPermissions[l.permissionStrings.journey.flowpaths.view]).hasPermission; + } + canViewSurveyPerformanceReport() { + return [l.permissionStrings.external.externalAuthorizations.analyticsSurveyAggregateView, l.permissionStrings.external.externalAuthorizations.qualitySurveyFormView].every((e3) => s.permissionService.checkHasPermissionInAtLeastOneDivision(a.getConnectedUser(), s.permissionService.staticPermissions[e3]).hasPermission); + } + canAddGrammars() { + return s.permissionService.checkHasPermissionInAtLeastOneDivision(a.getConnectedUser(), s.permissionService.staticPermissions[l.permissionStrings.architect.grammar.add]).hasPermission; + } + canDeleteGrammars() { + return s.permissionService.checkHasPermissionInAtLeastOneDivision(a.getConnectedUser(), s.permissionService.staticPermissions[l.permissionStrings.architect.grammar.delete]).hasPermission; + } + canEditGrammars() { + return s.permissionService.checkHasPermissionInAtLeastOneDivision(a.getConnectedUser(), s.permissionService.staticPermissions[l.permissionStrings.architect.grammar.edit]).hasPermission; + } + canViewGrammars() { + return s.permissionService.checkHasPermissionInAtLeastOneDivision(a.getConnectedUser(), s.permissionService.staticPermissions[l.permissionStrings.architect.grammar.view]).hasPermission; + } + canFetchGeocoding() { + return s.permissionService.checkHasPermissionInAtLeastOneDivision(a.getConnectedUser(), s.permissionService.staticPermissions[l.permissionStrings.external.externalAuthorizations.geocodingGeolocationFetch]).hasPermission; + } + canViewOptimizationOverview() { + return s.permissionService.checkHasPermissionInAtLeastOneDivision(a.getConnectedUser(), s.permissionService.staticPermissions[l.permissionStrings.external.externalAuthorizations.analyticsBotFlowSessionView]).hasPermission; + } + canViewCopilotLauncher() { + return [l.permissionStrings.copilot.session.view, l.permissionStrings.copilot.message.view, l.permissionStrings.copilot.message.send].every((e3) => s.permissionService.checkHasPermissionInAtLeastOneDivision(a.getConnectedUser(), s.permissionService.staticPermissions[e3]).hasPermission); + } + generateArchitectPermissionMap() { + return this.permissionMap || (this.permissionMap = {}, o.default.each(a.getConnectedUser().divisions, function(e3) { + o.default.each(e3.permissions, function(t3) { + "architect" === t3.domain.value && (this.permissionMap[t3.object.value] || (this.permissionMap[t3.object.value] = {}), this.permissionMap[t3.object.value][t3.action.value] || (this.permissionMap[t3.object.value][t3.action.value] = []), o.default.contains(this.permissionMap[t3.object.value][t3.action.value], e3.name) || o.default.contains(this.permissionMap[t3.object.value][t3.action.value], d.generic.permissions.allDivisions) || (e3.isStarDivision ? this.permissionMap[t3.object.value][t3.action.value].push(d.generic.permissions.allDivisions) : this.permissionMap[t3.object.value][t3.action.value].push(e3.name))); + }.bind(this)); + }.bind(this)), o.default.each(this.permissionMap, function(e3, t3) { + o.default.each(e3, function(i3, n3) { + e3.permissionStrings || (e3.permissionStrings = {}), e3.permissionStrings[i3] || (e3.permissionStrings[i3] = { prefix: (0, r2.sprintf)("%s > %s > %s > ", i3, "architect", t3), actionList: [] }), e3.permissionStrings[i3].actionList.push(n3); + }); + }), o.default.each(this.permissionMap, function(e3) { + o.default.each(e3, function(t3) { + e3.permissionStrings[t3] && (e3.permissionStrings[t3].actionList = e3.permissionStrings[t3].actionList.sort(), e3.permissionStrings[t3].actions = e3.permissionStrings[t3].actionList.join(", ")); + }); + })), this.permissionMap; + } + }(); + }, 18685: (e2, t2, i2) => { + const n2 = i2(24005), r2 = i2(7401), o = i2(66848), a = i2(66445); + function s() { + Object.defineProperties(this, { _knowledgeConfirmation: { writable: true }, _knowledgeInitialResponseFollowup: { writable: true }, _knowledgeInitialResponseMulti: { writable: true }, _knowledgeInitialResponseMultiRetry: { writable: true }, _knowledgeInitialResponseSingle: { writable: true }, _knowledgeAnswerHighlight: { writable: true }, _knowledgeMultiArticleSource: { writable: true }, _knowledgeContextSearch: { writable: true }, _knowledgeAnswerContentType: { writable: true }, _knowledgeVersion: { writable: true }, _knowledgeAnswerHighlightFullArticle: { writable: true }, _knowledgeAnswerHighlightFlowProgression: { writable: true }, _knowledgeNoMatch: { writable: true }, _maxNumOfAnswersReturned: { writable: true }, _knowledgePathMode: { writable: true }, _knowledgeBase: { writable: true }, _knowledgeSetting: { writable: true }, _responseBias: { writable: true }, _sendKnowledgeFeedback: { writable: true }, _knowledgeSettingsMode: { writable: true } }), this.knowledgeBaseId = void 0, this.knowledgeSettingId = void 0, this.knowledgeBaseName = void 0, this.knowledgeSettingName = void 0, this.knowledgeBaseWelcomeDocumentId = void 0, this.knowledgeBaseWelcomeDocumentName = void 0, this.knowledgeFollowupTaskId = void 0, this.knowledgeFollowupTaskName = void 0, this.knowledgeCustomHandlerTaskId = void 0, this.knowledgeCustomHandlerTaskName = void 0, s.baseConstructor.apply(this, arguments); + } + n2.extend(s, "BotFlowKnowledgeSettings"), Object.defineProperties(s.prototype, { pasteReIdOrRename: { value: function(e3) { + s._super.pasteReIdOrRename.apply(this, arguments), this._knowledgeBase.pasteReIdOrRename(e3), this._knowledgeSetting.pasteReIdOrRename(e3), this._knowledgeConfirmation.pasteReIdOrRename(e3), this._knowledgeInitialResponseFollowup.pasteReIdOrRename(e3), this._knowledgeInitialResponseMulti.pasteReIdOrRename(e3), this._knowledgeInitialResponseMultiRetry.pasteReIdOrRename(e3), this._knowledgeInitialResponseSingle.pasteReIdOrRename(e3), this._knowledgeAnswerHighlight.pasteReIdOrRename(e3), this._knowledgeMultiArticleSource.pasteReIdOrRename(e3), this._knowledgeContextSearch.pasteReIdOrRename(e3), this._knowledgeAnswerContentType.pasteReIdOrRename(e3), this._knowledgeVersion.pasteReIdOrRename(e3), this._knowledgeAnswerHighlightFullArticle.pasteReIdOrRename(e3), this._knowledgeAnswerHighlightFlowProgression.pasteReIdOrRename(e3), this._knowledgeNoMatch.pasteReIdOrRename(e3), this._maxNumOfAnswersReturned.pasteReIdOrRename(e3), this._knowledgePathMode.pasteReIdOrRename(e3), this._responseBias.pasteReIdOrRename(e3), this._sendKnowledgeFeedback.pasteReIdOrRename(e3), this._knowledgeSettingsMode.pasteReIdOrRename(e3); + } }, pasteResolveOldToNewValues: { value: function(e3) { + s._super.pasteResolveOldToNewValues.apply(this, arguments), this._knowledgeBase.pasteResolveOldToNewValues(e3), this._knowledgeSetting.pasteResolveOldToNewValues(e3), this._knowledgeConfirmation.pasteResolveOldToNewValues(e3), this._knowledgeInitialResponseFollowup.pasteResolveOldToNewValues(e3), this._knowledgeInitialResponseMulti.pasteResolveOldToNewValues(e3), this._knowledgeInitialResponseMultiRetry.pasteResolveOldToNewValues(e3), this._knowledgeInitialResponseSingle.pasteResolveOldToNewValues(e3), this._knowledgeAnswerHighlight.pasteResolveOldToNewValues(e3), this._knowledgeMultiArticleSource.pasteResolveOldToNewValues(e3), this._knowledgeContextSearch.pasteResolveOldToNewValues(e3), this._knowledgeAnswerContentType.pasteResolveOldToNewValues(e3), this._knowledgeVersion.pasteResolveOldToNewValues(e3), this._knowledgeAnswerHighlightFullArticle.pasteResolveOldToNewValues(e3), this._knowledgeAnswerHighlightFlowProgression.pasteResolveOldToNewValues(e3), this._knowledgeNoMatch.pasteResolveOldToNewValues(e3), this._maxNumOfAnswersReturned.pasteResolveOldToNewValues(e3), this._knowledgePathMode.pasteResolveOldToNewValues(e3), this._responseBias.pasteResolveOldToNewValues(e3), this._sendKnowledgeFeedback.pasteResolveOldToNewValues(e3), this._knowledgeSettingsMode.pasteResolveOldToNewValues(e3); + } }, knowledgeConfirmation: { enumerable: true, get: function() { + return this._knowledgeConfirmation; + }, set: function(e3) { + this._knowledgeConfirmation = this.reviveItem(e3, r2); + } }, knowledgeInitialResponseFollowup: { enumerable: true, get: function() { + return this._knowledgeInitialResponseFollowup; + }, set: function(e3) { + this._knowledgeInitialResponseFollowup = this.reviveItem(e3, r2); + } }, knowledgeInitialResponseMulti: { enumerable: true, get: function() { + return this._knowledgeInitialResponseMulti; + }, set: function(e3) { + this._knowledgeInitialResponseMulti = this.reviveItem(e3, r2); + } }, knowledgeInitialResponseMultiRetry: { enumerable: true, get: function() { + return this._knowledgeInitialResponseMultiRetry; + }, set: function(e3) { + this._knowledgeInitialResponseMultiRetry = this.reviveItem(e3, r2); + } }, knowledgeInitialResponseSingle: { enumerable: true, get: function() { + return this._knowledgeInitialResponseSingle; + }, set: function(e3) { + this._knowledgeInitialResponseSingle = this.reviveItem(e3, r2); + } }, knowledgeAnswerHighlight: { enumerable: true, get: function() { + return this._knowledgeAnswerHighlight; + }, set: function(e3) { + this._knowledgeAnswerHighlight = this.reviveItem(e3, r2); + } }, knowledgeMultiArticleSource: { enumerable: true, get: function() { + return this._knowledgeMultiArticleSource; + }, set: function(e3) { + this._knowledgeMultiArticleSource = this.reviveItem(e3, r2); + } }, knowledgeContextSearch: { enumerable: true, get: function() { + return this._knowledgeContextSearch; + }, set: function(e3) { + this._knowledgeContextSearch = this.reviveItem(e3, r2); + } }, knowledgeAnswerContentType: { enumerable: true, get: function() { + return this._knowledgeAnswerContentType; + }, set: function(e3) { + this._knowledgeAnswerContentType = this.reviveItem(e3, r2); + } }, knowledgeVersion: { enumerable: true, get: function() { + return this._knowledgeVersion; + }, set: function(e3) { + this._knowledgeVersion = this.reviveItem(e3, r2); + } }, knowledgeAnswerHighlightFullArticle: { enumerable: true, get: function() { + return this._knowledgeAnswerHighlightFullArticle; + }, set: function(e3) { + this._knowledgeAnswerHighlightFullArticle = this.reviveItem(e3, r2); + } }, knowledgeAnswerHighlightFlowProgression: { enumerable: true, get: function() { + return this._knowledgeAnswerHighlightFlowProgression; + }, set: function(e3) { + this._knowledgeAnswerHighlightFlowProgression = this.reviveItem(e3, r2); + } }, knowledgeNoMatch: { enumerable: true, get: function() { + return this._knowledgeNoMatch; + }, set: function(e3) { + this._knowledgeNoMatch = this.reviveItem(e3, r2); + } }, maxNumOfAnswersReturned: { enumerable: true, get: function() { + return this._maxNumOfAnswersReturned; + }, set: function(e3) { + this._maxNumOfAnswersReturned = this.reviveItem(e3, r2); + } }, knowledgePathMode: { enumerable: true, get: function() { + return this._knowledgePathMode; + }, set: function(e3) { + this._knowledgePathMode = this.reviveItem(e3, r2); + } }, KnowledgeBase: { enumerable: true, get: function() { + return this._knowledgeBase; + }, set: function(e3) { + this._knowledgeBase = new o(e3); + } }, KnowledgeSetting: { enumerable: true, get: function() { + return this._knowledgeSetting; + }, set: function(e3) { + this._knowledgeSetting = new a(e3); + } }, responseBias: { enumerable: true, get: function() { + return this._responseBias; + }, set: function(e3) { + this._responseBias = this.reviveItem(e3, r2); + } }, sendKnowledgeFeedback: { enumerable: true, get: function() { + return this._sendKnowledgeFeedback; + }, set: function(e3) { + this._sendKnowledgeFeedback = this.reviveItem(e3, r2); + } }, knowledgeSettingsMode: { enumerable: true, get: function() { + return this._knowledgeSettingsMode; + }, set: function(e3) { + this._knowledgeSettingsMode = this.reviveItem(e3, r2); + } } }), e2.exports = s; + }, 18710: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(84655)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "video"; + } + get displayTypeName() { + return "ArchVariableVideo"; + } + get initialValue() { + return this._initialValue; + } + get isArchVariableVideo() { + return true; + } + } + t2.default = r2; + }, 18759: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(81574)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "journeyCustomerSession"; + } + get id() { + } + get type() { + } + get displayTypeName() { + return "ArchValueJourneyCustomerSession"; + } + get isArchValueJourneyCustomerSession() { + return true; + } + } + t2.default = r2; + }, 18818: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(17405)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "string"; + } + get displayTypeName() { + return "ArchValueString"; + } + get isArchValueString() { + return true; + } + setExpressionString(e3) { + null == e3 && (e3 = ""); + const t3 = this._infoParm("stringVal", "setExpressionString"); + this._checkItemIsValidLiteralString(t3, e3), this._setExpression(t3, '"' + this._escapeTextForExpression(e3) + '"'); + } + setLiteralString(e3) { + null == e3 && (e3 = ""); + const t3 = this._infoParm("stringVal", "setLiteralString"); + this._checkItemIsValidLiteralString(t3, e3), this._setLiteral(t3, e3); + } + } + t2.default = r2; + }, 18894: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.knowledgeSettingManager = t2.KnowledgeSettingManager = void 0; + const n2 = i2(31635), r2 = n2.__importStar(i2(36781)), o = n2.__importStar(i2(82298)), a = n2.__importStar(i2(1360)), s = n2.__importStar(i2(24032)), l = n2.__importDefault(i2(47532)), u = n2.__importDefault(i2(83231)), d = i2(47957), c = i2(27862); + class p extends l.default { + get dependencyType() { + return c.KnowledgeSetting; + } + constructor() { + super(), this.topic = s.getTopic("KnowledgeSettingManager"), this._rawServerCache = {}, this.apiCallList = o.getKnowledgeSettings, this.apiCallSingle = o.getKnowledgeSetting, this.className = "KnowledgeSettingManager", this.defaultMatchingStyle = a.exactMatch, this.defaultPageSize = 200, this.dependencyContext = d.knowledgeSettings.knowledgeSetting, this.securityError = true, this.suppressSearch = false, this.uiMetadataSectionName = "KnowledgeSettings", this.actionsForUsageSearch = [], this.actionPropertyForUsageSearch = "", this._initialize(), r2.serviceListen(r2.cleanUpFlow, () => this.resetState()); + } + _createItemViewModel(e3) { + return new u.default(e3); + } + } + t2.KnowledgeSettingManager = p, t2.knowledgeSettingManager = new p(); + }, 18953: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(88827)), r2 = i2(30801); + class o extends n2.default { + constructor(e3) { + super(e3), this._externalId = this.coreFactory.createArchWrapper(e3.externalId), this._externalResult = this.coreFactory.createArchWrapper(e3.externalResult); + } + get _actionTypeId() { + return r2.getExternalOrganizationActionType; + } + get displayTypeName() { + return this._scriptingName; + } + get isArchActionGetExternalOrganization() { + return true; + } + get externalId() { + return this._externalId; + } + get externalResult() { + return this._externalResult; + } + } + t2.default = o; + }, 18993: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importDefault(i2(39292)), o = n2.__importDefault(i2(78432)), a = i2(30801); + class s extends r2.default { + constructor(e3) { + super(e3), this._flowOutcomeValue = this.coreFactory.createArchWrapper(e3.outcomeValue); + } + get _actionTypeId() { + return a.setFlowOutcomeActionType; + } + get displayTypeName() { + return this._scriptingName; + } + get isArchActionSetFlowOutcome() { + return true; + } + get flowOutcomeValue() { + return this._flowOutcomeValue; + } + setFlowOutcomeValue(e3) { + const t3 = this._infoPropSet("newValue", "flowOutcome"); + this._checkItemIsValidLiteralStringEnum(t3, e3, o.default.FLOW_OUTCOMES_ALL), this._coreActionViewModel.outcomeValue.setAsLiteral(e3), this.logNote("Flow outcome value set to '" + this.flowOutcomeValue.valueText + "'"); + } + } + t2.default = s; + }, 19039: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.ContactType = void 0; + const n2 = i2(31635), r2 = i2(17604), o = n2.__importDefault(i2(92140)), a = i2(71056), s = i2(43610), l = n2.__importStar(i2(36781)), u = n2.__importStar(i2(1115)), d = i2(94765), c = i2(80428), p = i2(47957); + class _ extends d.ExpressionType { + constructor(e3, t3, i3) { + super(e3, t3, i3), this._listenerUnsubscribe = l.listen(l.contactListChanged, (e4) => { + return void ((t4 = e4) && (this.changeProperties(t4), u.validateNode(t4.parent))); + var t4; + }); + } + get className() { + return "ContactType"; + } + createExpressionOptionClass() { + return new a.ExpressionTypeNetworkObjectOptions(this.isCollection); + } + canConvertLitToExpression(e3) { + return false; + } + destroy() { + super.destroy(), this._listenerUnsubscribe(), o.default.keys(this.singletonProperties).forEach((e3) => { + delete this.singletonProperties[e3]; + }); + } + changeProperties(e3) { + const t3 = s.contactListManager.getItem(e3.val); + t3 && (o.default.keys(this.singletonProperties).forEach((e4) => { + delete this.singletonProperties[e4]; + }), o.default.each(t3.columnNames, function(e4) { + const i3 = o.default.findWhere(t3.phoneColumns, { columnName: e4 }); + this._addProperty(e4, e4, "str", (0, r2.sprintf)(i3 ? p.contact.phonePropertyDescription : p.contact.propertyDescription, e4), "1.0"); + }.bind(this)), this.parentFlow && this.parentFlow.uiMetaData && (this.parentFlow.uiMetaData.contactList = []), s.contactListManager.addItemToFlowMetadata(this.parentFlow, t3.name, t3.id), l.emitter.emit(l.typeChanged, this)); + } + get isContactType() { + return true; + } + get listManager() { + return s.contactListManager; + } + } + t2.ContactType = _, _.typeIdentifier = c.expressionTypeNames.contact; + }, 19044: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(20692)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "listPickerSectionCollection"; + } + get displayTypeName() { + return "ArchVariableListPickerSectionCollection"; + } + get initialValue() { + return this._initialValue; + } + get isArchVariableListPickerSectionCollection() { + return true; + } + } + t2.default = r2; + }, 19047: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(88827)); + class r2 extends n2.default { + constructor(e3) { + super(e3), this._findResult = this.coreFactory.createArchWrapper(e3.findResult); + } + get displayTypeName() { + return "ArchBaseActionFindSystemObject"; + } + get isArchBaseActionFindSystemObject() { + return true; + } + get findResult() { + this.logErrorAndThrow(`findResult should be overridden by derived class ${this.logStr}`); + } + } + t2.default = r2; + }, 19069: (e2, t2, i2) => { + function n2() { + n2.baseConstructor.apply(this, arguments); + } + i2(11475).extend(n2, "CustomerSegmentVariable", true), e2.exports = n2; + }, 19071: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(84655)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "journeyOutcomeScore"; + } + get initialValue() { + return this._initialValue; + } + get displayTypeName() { + return "ArchVariableJourneyOutcomeScore"; + } + get isArchVariableJourneyOutcomeScore() { + return true; + } + } + t2.default = r2; + }, 19098: (e2, t2, i2) => { + const n2 = i2(7401); + function r2() { + Object.defineProperties(this, { _suppressRecording: { writable: true } }), r2.baseConstructor.apply(this, arguments); + } + i2(24893).extend(r2, "VoiceSurveyFlowConfiguration"), Object.defineProperties(r2.prototype, { suppressRecording: { enumerable: true, get: function() { + return this._suppressRecording; + }, set: function(e3) { + this._suppressRecording = this.reviveItem(e3, n2); + } } }), e2.exports = r2; + }, 19102: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.createGlobalTypes = function() { + return r2.default.each(me.type, function(e3) { + e3.support && "con" !== e3.support.expressionDataType && (Se.map[e3.support.expressionDataType] = { single: Ae(e3, false), collection: e3.allowArray || e3.allowArray_altAvailability ? Ae(e3, true) : void 0 }); + }), r2.default.each(ye, function(e3) { + var t3, i3; + let n3; + (null === (t3 = e3.model) || void 0 === t3 ? void 0 : t3.additionalProperties) && (n3 = true === (null === (i3 = e3.model) || void 0 === i3 ? void 0 : i3.additionalProperties)); + const r3 = new e3.ctor(null, e3.model, e3.isCollection, n3), o2 = r3.model.support.expressionDataType; + (0, R.isCollectionType)(r3) ? (Se.collections.push(r3), Se.map[o2].collection = r3) : (Se.singletons.push(r3), Se.map[o2].single = r3); + }), ye.length = 0, Se; + }; + const n2 = i2(31635), r2 = n2.__importDefault(i2(92140)), o = n2.__importDefault(i2(73198)), a = n2.__importDefault(i2(65302)), s = i2(83645), l = i2(42974), u = i2(73545), d = i2(14375), c = i2(82133), p = i2(47101), _ = i2(85889), h = i2(1492), m = i2(28614), g = i2(76319), f = i2(64287), T = i2(29115), y = i2(67644), S = i2(38661), A = i2(30758), N = i2(27314), O = i2(65307), I = i2(84), v = i2(93105), C = i2(43440), b = i2(33235), E = i2(91919), R = i2(94765), w = i2(94765), D = i2(39145), P = i2(59005), M = i2(54822), F = i2(11304), L = i2(40522), x = i2(53561), k = i2(81993), V = i2(70131), U = i2(54872), B = i2(27362), G = i2(25118), j = i2(98598), W = i2(92457), q = i2(17314), Y = i2(53397), H = i2(28080), J = i2(95682), z = i2(7878), K = i2(1107), $ = i2(81778), Q = i2(54876), X = i2(87022), Z = i2(60454), ee = i2(28462), te = i2(76159), ie = i2(77054), ne = i2(64229), re = i2(58436), oe = i2(78354), ae = i2(78350), se = i2(60776), le = i2(92217), ue = i2(21044), de = i2(30268), ce = i2(15129), pe = i2(53774), _e = i2(71111), he = n2.__importStar(i2(69850)), me = i2(34005), ge = [s.AssignedCustomerIntentType, l.AssignedCustomerSegmentType, u.AudioType, d.BooleanType, w.ExpressionType, c.CampaignType, p.CardType, _.CarouselType, h.ChoiceType, m.ChooserType, g.CommunicationType, T.ContactListType, y.CurrencyType, S.CustomerIntentType, A.CustomerSegmentType, O.DateType, N.DateTimeType, I.DecimalType, v.DigitalAudioType, C.DivisionType, b.DurationType, E.EmergencyGroupType, D.FileType, P.FormInputType, M.GrammarType, F.GroupType, L.ImageType, x.IntegerType, k.JsonType, V.KnowledgeBaseDocumentType, U.LanguageSkillType, B.LineItemType, G.ListPickerItemType, j.ListPickerSectionType, W.ListPickerType, q.PhoneNumberType, Y.PromptType, H.QueueType, J.QuickRepliesType, z.ResponseAssetType, $.ScheduleType, K.ScheduleGroupType, X.SkillType, Z.StringType, Q.ShippingOptionType, ee.SurveyAnswerOptionType, te.SurveyFormType, ie.SurveyQuestionGroupType, ne.SurveyQuestionType, ae.TimeType, re.TimePickerType, oe.TimeslotType, se.UserType, le.UtilizationLabelType, ue.VideoType, de.VoiceSnippetType, pe.WheelPickerType, ce.WheelPickerItemType, _e.WrapupCodeType], fe = {}; + r2.default.each(ge, function(e3) { + e3 && (fe[e3.typeIdentifier] = e3); + }); + class Te { + constructor(e3, t3, i3, n3) { + this.type = e3, this.ctor = t3, this.model = i3, this.isCollection = n3; + } + } + const ye = [], Se = a.default.getGlobalTypeGroup(); + function Ae(e3, t3) { + let i3, n3 = w.ExpressionType; + if (e3.support.expressionDataType && e3.support.expressionDataType.substring(0, 3) === o.default.exprDataTypePrefixComplex ? n3 = i3 = f.ComplexType : e3.support.expressionDataType && e3.support.expressionDataType.substring(0, 3) === o.default.exprDataTypePrefixJson ? n3 = i3 = k.JsonType : (t3 || (n3 = fe[e3.support.expressionDataType] || w.ExpressionType), i3 = n3), e3.dynamicPropertyProvider) { + const t4 = he[e3.dynamicPropertyProvider]; + t4 ? e3.nativeProperties = e3.nativeProperties.concat(t4) : console.error("INTERNAL ERROR: The '" + e3.dataType + "' is set up to have dynamic properties added at startup but unable to find the '" + e3.dynamicPropertyProvider + "' dynamic property provider to create them. :("); + } + return ye.push(new Te(i3, n3, e3, t3)), i3; + } + }, 19131: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.FindDivisionsActionModel = void 0; + const n2 = i2(59821), r2 = i2(30801); + class o extends n2.BaseFindSystemObjectsByNameActionModel { + constructor(e3) { + super(e3), this.__type = o.__type; + } + } + t2.FindDivisionsActionModel = o, o.__type = r2.findDivisionsActionType, o.registerType(); + }, 19202: (e2, t2, i2) => { + const n2 = i2(87290), r2 = i2(30702), o = i2(46387), a = i2(10438), s = i2(20730), l = i2(83959), u = i2(36019).default; + class d { + } + const c = new d(); + d.prototype.getBots = u.request("GET", "{public-api.apps}/api/v2/integrations/speech/lex/bots", o), d.prototype.getAliases = u.request("GET", "{public-api.apps}/api/v2/integrations/speech/lex/bot/{botId}/aliases", r2), d.prototype.getAlias = u.request("GET", "{public-api.apps}/api/v2/integrations/speech/lex/bot/alias/{aliasId}", n2), d.prototype.getV2Bots = u.request("GET", "{public-api.apps}/api/v2/integrations/speech/lexv2/bots", l), d.prototype.getV2Aliases = u.request("GET", "{public-api.apps}/api/v2/integrations/speech/lexv2/bot/{botId}/aliases", s), d.prototype.getV2Alias = u.request("GET", "{public-api.apps}/api/v2/integrations/speech/lexv2/bot/alias/{aliasId}", a); + const p = { ignoreBadResponse: true }; + c.getBots.addOptions(p), c.getAliases.addOptions(p), c.getAlias.addOptions(p), c.getV2Bots.addOptions(p), c.getV2Aliases.addOptions(p), c.getV2Alias.addOptions(p), e2.exports = c; + }, 19284: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.speechToTextEngineManager = t2.SpeechToTextEngineManager = void 0; + const n2 = i2(31635), r2 = n2.__importStar(i2(1360)), o = n2.__importStar(i2(40728)), a = n2.__importStar(i2(24032)), s = i2(30801), l = n2.__importDefault(i2(47532)), u = i2(81801), d = n2.__importDefault(i2(40773)), c = i2(47957), p = i2(27862); + class _ extends l.default { + get requiredAuth() { + return u.externalAuthorizations.authStrings.integrationView; + } + get dependencyType() { + return p.SpeechToTextEngine; + } + constructor() { + super(), this.topic = a.getTopic("SpeechToTextEngineManager"), this._rawServerCache = {}, this.actionsForUsageSearch = [s.askForSlotActionType], this.actionPropertyForUsageSearch = "", this.apiCallList = o.getSpeechToTextEngines, this.apiCallSingle = o.getSpeechToTextEngine, this.className = "SpeechToTextEngineManager", this.defaultMatchingStyle = r2.containsAssumed, this.defaultPageSize = 100, this.dependencyContext = c.speechToText.speechToTextEngineLabel, this.securityError = true, this.suppressSearch = false, this.uiMetadataSectionName = "speechToTextEngines", this._initialize(); + } + _createItemViewModel(e3) { + return new d.default(e3); + } + } + t2.SpeechToTextEngineManager = _, t2.speechToTextEngineManager = new _(); + }, 19296: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = i2(30801), o = n2.__importDefault(i2(21345)); + class a extends o.default { + constructor(e3) { + super(e3), this._externalTag = this.coreFactory.createArchWrapper(e3.externalTag); + } + get _actionTypeId() { + return r2.setExternalTagActionType; + } + get displayTypeName() { + return this._scriptingName; + } + get isArchActionSetExternalTag() { + return true; + } + get externalTag() { + return this._externalTag; + } + } + t2.default = a; + }, 19312: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.flowNameIsInvalidMessage = function(e3) { + return e3 ? e3.trim().match(/-debug$/i) ? r2.editFlow.noDebugPostfix : e3.indexOf("/") > -1 ? r2.editFlow.flowNameInvalidCharacter : (0, n2.getStringContainsValidCharacter)(e3, true) ? null : r2.editFlow.flowNameIsInvalidMessageNoAlphaNumericError : r2.editFlow.flowNameCannotBeBlank; + }; + const n2 = i2(66381), r2 = i2(47957); + }, 19328: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(54982)); + class r2 extends n2.default { + constructor(e3) { + super(e3), this._coreCommonModuleTaskViewModel = e3; + } + get displayTypeName() { + return "ArchTaskCommonModule"; + } + get isArchTaskCommonModule() { + return true; + } + get logStr() { + if (!this._coreCommonModuleTaskViewModel) return this.logStrTypeOnly; + const e3 = []; + return this._appendLogStrTrackingIdNameType(e3, this.trackingId, this.name, this.displayTypeName), this._createLogStrFromParts(e3); + } + } + t2.default = r2; + }, 19359: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importDefault(i2(2318)), o = i2(12179), a = n2.__importDefault(i2(17102)), s = i2(47957), l = "pathDiscovery"; + class u extends a.default { + get outOfService() { + return !r2.default.currentUserCanUsePathDiscovery && !r2.default.currentUserCanUsePathDiscoveryCallFlows && !r2.default.currentUserCanUsePathDiscoveryV3Flows; + } + get id() { + return l; + } + static get id() { + return l; + } + get showInFlowSize() { + return false; + } + get className() { + return "PathDiscoveryViewModel"; + } + getDisplayName() { + return s.pathDiscovery.pathDiscoveryLabel; + } + get nodeGuxIcon() { + return "fa/diagram-project-regular"; + } + get helpTopic() { + return o.helpTopics.treeNodes.journeyFlows; + } + get isPathDiscoveryNode() { + return true; + } + get pathDiscoveryNodeArchName() { + return l; + } + } + t2.default = u; + }, 19360: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.ExpressionTypeQuickRepliesOptions = void 0; + const n2 = i2(65615); + class r2 extends n2.BaseExpressionTypeCollectionOptions { + static create(e3) { + return new this().invokeOptionsCallback(e3); + } + constructor(e3) { + super(e3); + } + get className() { + return "ExpressionTypeQuickRepliesOptions"; + } + get isExpressionTypeQuickRepliesOptions() { + return true; + } + } + t2.ExpressionTypeQuickRepliesOptions = r2; + }, 19384: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.flowElementRegistrationService = void 0; + const n2 = i2(31635), r2 = i2(56673), o = n2.__importStar(i2(12847)); + class a extends r2.BaseRegistrationService { + constructor() { + super(); + } + get className() { + return "FlowElementRegistrationService"; + } + registerItem(e3) { + super.registerItem(e3), this._getFlowSpecificMap(e3)[e3.id] = e3; + } + unregisterItem(e3) { + var t3; + super.unregisterItem(e3); + const i3 = this._getFlowSpecificMap(e3); + i3 ? (null === (t3 = null == e3 ? void 0 : e3.parentFlow) || void 0 === t3 ? void 0 : t3.loaded) && delete i3[e3.id] : o.error(`${e3.id} not found to unregister - no flow bucket available for flow id '${e3.parentFlow.id}'`); + } + getItemById(e3, t3) { + return this._getFlowSpecificMap(e3)[t3]; + } + } + t2.flowElementRegistrationService = new a(); + }, 19413: (e2, t2, i2) => { + const n2 = i2(75601); + function r2() { + r2.baseConstructor.apply(this, arguments); + } + i2(22124).extend(r2, "BotConnectorList"), Object.defineProperties(r2.prototype, { entities: { enumerable: true, get: function() { + return this._entities; + }, set: function(e3) { + this._entities = this.reviveArray(e3, n2); + } } }), e2.exports = r2; + }, 19420: (e2, t2, i2) => { + function n2() { + n2.baseConstructor.apply(this, arguments); + } + i2(11475).extend(n2, "EnumContainerVariable", true), Object.defineProperties(n2.prototype, { isEnumContainerVariable: { value: true } }), e2.exports = n2; + }, 19444: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.queueManager = t2.QueueManager = void 0; + const n2 = i2(31635), r2 = i2(24032), o = i2(23503), a = n2.__importDefault(i2(47532)), s = i2(81801), l = i2(27862), u = i2(55190); + class d extends a.default { + get requiredAuth() { + return s.externalAuthorizations.authStrings.queuesView; + } + get dependencyType() { + return l.Queue; + } + constructor() { + super(), this.topic = (0, r2.getTopic)("queueManager"), this.apiCallList = u.getQueues, this.apiCallSingle = u.getQueue, this.briefManager = o.briefQueueManager, this.className = "QueueManager", this.dependencyContext = null, this._initialize(); + } + } + t2.QueueManager = d, t2.queueManager = new d(); + }, 19496: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(16434)), r2 = i2(96618); + class o extends n2.default { + constructor(e3) { + super(e3); + } + get _flowType() { + return r2.flowTypes.flowTypeWorkflow; + } + get displayTypeName() { + return "ArchFlowWorkflow"; + } + get isArchFlowWorkflow() { + return true; + } + } + t2.default = o; + }, 19502: (e2, t2, i2) => { + const n2 = i2(83697); + e2.exports = { AED: { displayName: n2.AED.displayName, symbol: "AED", code: "AED" }, AFN: { displayName: n2.AFN.displayName, symbol: "AFN", code: "AFN" }, ALL: { displayName: n2.ALL.displayName, symbol: "ALL", code: "ALL" }, AMD: { displayName: n2.AMD.displayName, symbol: "AMD", code: "AMD" }, ANG: { displayName: n2.ANG.displayName, symbol: "ANG", code: "ANG" }, AOA: { displayName: n2.AOA.displayName, symbol: "AOA", code: "AOA" }, ARS: { displayName: n2.ARS.displayName, symbol: "ARS", code: "ARS" }, AUD: { displayName: n2.AUD.displayName, symbol: "A$", code: "AUD" }, AWG: { displayName: n2.AWG.displayName, symbol: "AWG", code: "AWG" }, AZN: { displayName: n2.AZN.displayName, symbol: "AZN", code: "AZN" }, BAM: { displayName: n2.BAM.displayName, symbol: "BAM", code: "BAM" }, BBD: { displayName: n2.BBD.displayName, symbol: "BBD", code: "BBD" }, BDT: { displayName: n2.BDT.displayName, symbol: "BDT", code: "BDT" }, BGN: { displayName: n2.BGN.displayName, symbol: "BGN", code: "BGN" }, BHD: { displayName: n2.BHD.displayName, symbol: "BHD", code: "BHD" }, BIF: { displayName: n2.BIF.displayName, symbol: "BIF", code: "BIF" }, BMD: { displayName: n2.BMD.displayName, symbol: "BMD", code: "BMD" }, BND: { displayName: n2.BND.displayName, symbol: "BND", code: "BND" }, BOB: { displayName: n2.BOB.displayName, symbol: "BOB", code: "BOB" }, BRL: { displayName: n2.BRL.displayName, symbol: "R$", code: "BRL" }, BSD: { displayName: n2.BSD.displayName, symbol: "BSD", code: "BSD" }, BTN: { displayName: n2.BTN.displayName, symbol: "BTN", code: "BTN" }, BWP: { displayName: n2.BWP.displayName, symbol: "BWP", code: "BWP" }, BYR: { displayName: n2.BYR.displayName, symbol: "BYR", code: "BYR" }, BZD: { displayName: n2.BZD.displayName, symbol: "BZD", code: "BZD" }, CAD: { displayName: n2.CAD.displayName, symbol: "CA$", code: "CAD" }, CDF: { displayName: n2.CDF.displayName, symbol: "CDF", code: "CDF" }, CHF: { displayName: n2.CHF.displayName, symbol: "CHF", code: "CHF" }, CLP: { displayName: n2.CLP.displayName, symbol: "CLP", code: "CLP" }, CNY: { displayName: n2.CNY.displayName, symbol: "CN\xA5", code: "CNY" }, COP: { displayName: n2.COP.displayName, symbol: "COP", code: "COP" }, CRC: { displayName: n2.CRC.displayName, symbol: "CRC", code: "CRC" }, CUC: { displayName: n2.CUC.displayName, symbol: "CUC", code: "CUC" }, CUP: { displayName: n2.CUP.displayName, symbol: "CUP", code: "CUP" }, CVE: { displayName: n2.CVE.displayName, symbol: "CVE", code: "CVE" }, CZK: { displayName: n2.CZK.displayName, symbol: "CZK", code: "CZK" }, DJF: { displayName: n2.DJF.displayName, symbol: "DJF", code: "DJF" }, DKK: { displayName: n2.DKK.displayName, symbol: "DKK", code: "DKK" }, DOP: { displayName: n2.DOP.displayName, symbol: "DOP", code: "DOP" }, DZD: { displayName: n2.DZD.displayName, symbol: "DZD", code: "DZD" }, EGP: { displayName: n2.EGP.displayName, symbol: "EGP", code: "EGP" }, ERN: { displayName: n2.ERN.displayName, symbol: "ERN", code: "ERN" }, ETB: { displayName: n2.ETB.displayName, symbol: "ETB", code: "ETB" }, EUR: { displayName: n2.EUR.displayName, symbol: "\u20AC", code: "EUR" }, FJD: { displayName: n2.FJD.displayName, symbol: "FJD", code: "FJD" }, FKP: { displayName: n2.FKP.displayName, symbol: "FKP", code: "FKP" }, GBP: { displayName: n2.GBP.displayName, symbol: "\xA3", code: "GBP" }, GEL: { displayName: n2.GEL.displayName, symbol: "GEL", code: "GEL" }, GHS: { displayName: n2.GHS.displayName, symbol: "GHS", code: "GHS" }, GIP: { displayName: n2.GIP.displayName, symbol: "GIP", code: "GIP" }, GMD: { displayName: n2.GMD.displayName, symbol: "GMD", code: "GMD" }, GNF: { displayName: n2.GNF.displayName, symbol: "GNF", code: "GNF" }, GTQ: { displayName: n2.GTQ.displayName, symbol: "GTQ", code: "GTQ" }, GWP: { displayName: n2.GWP.displayName, symbol: "GWP", code: "GWP" }, GYD: { displayName: n2.GYD.displayName, symbol: "GYD", code: "GYD" }, HKD: { displayName: n2.HKD.displayName, symbol: "HK$", code: "HKD" }, HNL: { displayName: n2.HNL.displayName, symbol: "HNL", code: "HNL" }, HRK: { displayName: n2.HRK.displayName, symbol: "HRK", code: "HRK" }, HTG: { displayName: n2.HTG.displayName, symbol: "HTG", code: "HTG" }, HUF: { displayName: n2.HUF.displayName, symbol: "HUF", code: "HUF" }, IDR: { displayName: n2.IDR.displayName, symbol: "IDR", code: "IDR" }, ILS: { displayName: n2.ILS.displayName, symbol: "\u20AA", code: "ILS" }, INR: { displayName: n2.INR.displayName, symbol: "\u20B9", code: "INR" }, IQD: { displayName: n2.IQD.displayName, symbol: "IQD", code: "IQD" }, IRR: { displayName: n2.IRR.displayName, symbol: "IRR", code: "IRR" }, ISK: { displayName: n2.ISK.displayName, symbol: "ISK", code: "ISK" }, JMD: { displayName: n2.JMD.displayName, symbol: "JMD", code: "JMD" }, JOD: { displayName: n2.JOD.displayName, symbol: "JOD", code: "JOD" }, JPY: { displayName: n2.JPY.displayName, symbol: "\xA5", code: "JPY" }, KES: { displayName: n2.KES.displayName, symbol: "KES", code: "KES" }, KGS: { displayName: n2.KGS.displayName, symbol: "KGS", code: "KGS" }, KHR: { displayName: n2.KHR.displayName, symbol: "KHR", code: "KHR" }, KMF: { displayName: n2.KMF.displayName, symbol: "KMF", code: "KMF" }, KPW: { displayName: n2.KPW.displayName, symbol: "KPW", code: "KPW" }, KRW: { displayName: n2.KRW.displayName, symbol: "\u20A9", code: "KRW" }, KWD: { displayName: n2.KWD.displayName, symbol: "KWD", code: "KWD" }, KYD: { displayName: n2.KYD.displayName, symbol: "KYD", code: "KYD" }, KZT: { displayName: n2.KZT.displayName, symbol: "KZT", code: "KZT" }, LAK: { displayName: n2.LAK.displayName, symbol: "LAK", code: "LAK" }, LBP: { displayName: n2.LBP.displayName, symbol: "LBP", code: "LBP" }, LKR: { displayName: n2.LKR.displayName, symbol: "LKR", code: "LKR" }, LRD: { displayName: n2.LRD.displayName, symbol: "LRD", code: "LRD" }, LSL: { displayName: n2.LSL.displayName, symbol: "LSL", code: "LSL" }, LTL: { displayName: n2.LTL.displayName, symbol: "LTL", code: "LTL" }, LVL: { displayName: n2.LVL.displayName, symbol: "LVL", code: "LVL" }, LYD: { displayName: n2.LYD.displayName, symbol: "LYD", code: "LYD" }, MAD: { displayName: n2.MAD.displayName, symbol: "MAD", code: "MAD" }, MDL: { displayName: n2.MDL.displayName, symbol: "MDL", code: "MDL" }, MGA: { displayName: n2.MGA.displayName, symbol: "MGA", code: "MGA" }, MKD: { displayName: n2.MKD.displayName, symbol: "MKD", code: "MKD" }, MMK: { displayName: n2.MMK.displayName, symbol: "MMK", code: "MMK" }, MNT: { displayName: n2.MNT.displayName, symbol: "MNT", code: "MNT" }, MOP: { displayName: n2.MOP.displayName, symbol: "MOP", code: "MOP" }, MRO: { displayName: n2.MRO.displayName, symbol: "MRO", code: "MRO" }, MUR: { displayName: n2.MUR.displayName, symbol: "MUR", code: "MUR" }, MVR: { displayName: n2.MVR.displayName, symbol: "MVR", code: "MVR" }, MWK: { displayName: n2.MWK.displayName, symbol: "MWK", code: "MWK" }, MXN: { displayName: n2.MXN.displayName, symbol: "MX$", code: "MXN" }, MYR: { displayName: n2.MYR.displayName, symbol: "MYR", code: "MYR" }, MZE: { displayName: n2.MZE.displayName, symbol: "MZE", code: "MZE" }, MZN: { displayName: n2.MZN.displayName, symbol: "MZN", code: "MZN" }, NAD: { displayName: n2.NAD.displayName, symbol: "NAD", code: "NAD" }, NGN: { displayName: n2.NGN.displayName, symbol: "NGN", code: "NGN" }, NIO: { displayName: n2.NIO.displayName, symbol: "NIO", code: "NIO" }, NOK: { displayName: n2.NOK.displayName, symbol: "NOK", code: "NOK" }, NPR: { displayName: n2.NPR.displayName, symbol: "NPR", code: "NPR" }, NZD: { displayName: n2.NZD.displayName, symbol: "NZ$", code: "NZD" }, OMR: { displayName: n2.OMR.displayName, symbol: "OMR", code: "OMR" }, PAB: { displayName: n2.PAB.displayName, symbol: "PAB", code: "PAB" }, PEN: { displayName: n2.PEN.displayName, symbol: "PEN", code: "PEN" }, PGK: { displayName: n2.PGK.displayName, symbol: "PGK", code: "PGK" }, PHP: { displayName: n2.PHP.displayName, symbol: "PHP", code: "PHP" }, PKR: { displayName: n2.PKR.displayName, symbol: "PKR", code: "PKR" }, PLN: { displayName: n2.PLN.displayName, symbol: "PLN", code: "PLN" }, PYG: { displayName: n2.PYG.displayName, symbol: "PYG", code: "PYG" }, QAR: { displayName: n2.QAR.displayName, symbol: "QAR", code: "QAR" }, RON: { displayName: n2.RON.displayName, symbol: "RON", code: "RON" }, RSD: { displayName: n2.RSD.displayName, symbol: "RSD", code: "RSD" }, RUB: { displayName: n2.RUB.displayName, symbol: "RUB", code: "RUB" }, RWF: { displayName: n2.RWF.displayName, symbol: "RWF", code: "RWF" }, SAR: { displayName: n2.SAR.displayName, symbol: "SAR", code: "SAR" }, SBD: { displayName: n2.SBD.displayName, symbol: "SBD", code: "SBD" }, SCR: { displayName: n2.SCR.displayName, symbol: "SCR", code: "SCR" }, SDG: { displayName: n2.SDG.displayName, symbol: "SDG", code: "SDG" }, SEK: { displayName: n2.SEK.displayName, symbol: "SEK", code: "SEK" }, SGD: { displayName: n2.SGD.displayName, symbol: "SGD", code: "SGD" }, SHP: { displayName: n2.SHP.displayName, symbol: "SHP", code: "SHP" }, SKK: { displayName: n2.SKK.displayName, symbol: "SKK", code: "SKK" }, SLL: { displayName: n2.SLL.displayName, symbol: "SLL", code: "SLL" }, SOS: { displayName: n2.SOS.displayName, symbol: "SOS", code: "SOS" }, SRD: { displayName: n2.SRD.displayName, symbol: "SRD", code: "SRD" }, SSP: { displayName: n2.SSP.displayName, symbol: "SSP", code: "SSP" }, STD: { displayName: n2.STD.displayName, symbol: "STD", code: "STD" }, SVC: { displayName: n2.SVC.displayName, symbol: "SVC", code: "SVC" }, SYP: { displayName: n2.SYP.displayName, symbol: "SYP", code: "SYP" }, SZL: { displayName: n2.SZL.displayName, symbol: "SZL", code: "SZL" }, THB: { displayName: n2.THB.displayName, symbol: "\u0E3F", code: "THB" }, TJS: { displayName: n2.TJS.displayName, symbol: "TJS", code: "TJS" }, TMT: { displayName: n2.TMT.displayName, symbol: "TMT", code: "TMT" }, TND: { displayName: n2.TND.displayName, symbol: "TND", code: "TND" }, TOP: { displayName: n2.TOP.displayName, symbol: "TOP", code: "TOP" }, TRY: { displayName: n2.TRY.displayName, symbol: "TRY", code: "TRY" }, TTD: { displayName: n2.TTD.displayName, symbol: "TTD", code: "TTD" }, TWD: { displayName: n2.TWD.displayName, symbol: "NT$", code: "TWD" }, TZS: { displayName: n2.TZS.displayName, symbol: "TZS", code: "TZS" }, UAH: { displayName: n2.UAH.displayName, symbol: "UAH", code: "UAH" }, UGX: { displayName: n2.UGX.displayName, symbol: "UGX", code: "UGX" }, USD: { displayName: n2.USD.displayName, symbol: "$", code: "USD" }, UYU: { displayName: n2.UYU.displayName, symbol: "UYU", code: "UYU" }, UZS: { displayName: n2.UZS.displayName, symbol: "UZS", code: "UZS" }, VEF: { displayName: n2.VEF.displayName, symbol: "VEF", code: "VEF" }, VND: { displayName: n2.VND.displayName, symbol: "\u20AB", code: "VND" }, VUV: { displayName: n2.VUV.displayName, symbol: "VUV", code: "VUV" }, WST: { displayName: n2.WST.displayName, symbol: "WST", code: "WST" }, XAF: { displayName: n2.XAF.displayName, symbol: "FCFA", code: "XAF" }, XCD: { displayName: n2.XCD.displayName, symbol: "EC$", code: "XCD" }, XOF: { displayName: n2.XOF.displayName, symbol: "CFA", code: "XOF" }, XPF: { displayName: n2.XPF.displayName, symbol: "CFPF", code: "XPF" }, YER: { displayName: n2.YER.displayName, symbol: "YER", code: "YER" }, ZAR: { displayName: n2.ZAR.displayName, symbol: "ZAR", code: "ZAR" }, ZMW: { displayName: n2.ZMW.displayName, symbol: "ZMW", code: "ZMW" } }; + }, 19507: (e2, t2, i2) => { + "use strict"; + var n2, r2, o, a, s, l; + Object.defineProperty(t2, "__esModule", { value: true }), t2.BaseExpressionTypeOptions = void 0, t2.isExpressionTypeOptions = function(e3) { + return !!(null == e3 ? void 0 : e3.isExpressionOptions); + }; + const u = i2(31635), d = i2(79364), c = i2(17604), p = u.__importDefault(i2(92140)), _ = i2(63352), h = i2(47875), m = u.__importStar(i2(35315)), g = i2(35315), f = i2(99472), T = u.__importDefault(i2(96629)), y = i2(55909), S = i2(33951), A = u.__importDefault(i2(41510)), N = u.__importDefault(i2(49416)), O = u.__importStar(i2(66381)), I = i2(74761), v = i2(9456), C = i2(80295), b = i2(80295), E = i2(14187), R = i2(63029), w = i2(15786), D = i2(47957); + class P extends R.BaseOptionsWithOptional { + constructor() { + super(), this._allowEmptyConfig = false, this._allowFlowLevelDefault = false, this._allowEmbeddedExpressionsInLiteralMode = true, this._allowModeBuilder = true, this._allowModeExpression = false, this._allowModeLiteral = false, this._allowModeVariable = false, this._allowNotSet = true, this._allowNoValueModeWithNoFallback = false, this._allowSecure = false, this._assignablePropertiesNoExpression = false, this._authToCheck = [], this._collectionItemsWantCollectionDescriptionInfo = false, this._defaultToExpression = false, this._defaultToNoValue = false, this._defaultToVariable = false, this._descriptionInfo = {}, this._descriptionInfoFull = {}, this._doNotTrackUsages = false, this._doNotTransitionToNoValue = false, this._doNotWantBlankRuntimeOutput = false, this._emitNonConfigItemForEmptyAndNoDefault = false, this._exprTextMustBeVarOrVarPropRef = false, this._flowLevelDefaultHasDefault = false, this._flowLevelDefaultSameModes = false, this._hideDefaultTextDescription = false, this._isExpressionPart = false, this._isFlowLevelDefaultExpression = false, this._isInternal = false, this._modeNoValueRuntimeEvaluationSetting = new w.OptionSettingWithFlowTypes(), this._modeNoValueSelectionLabel = D.expression.noValue.selection.noValue, this._useDefaultValueNodeIcons = false, this._noOriginalType = false, this._outputExprTextAllowsReadOnlyVarType = false, this._readOnly = false, this._requiresFlowQuickRepliesSetting = false, this._restrictToFlowGlobalVariables = false, this._suppressBuilderModePromptResourceChecks = true, this._usedAsReplacementValueInOtherExpressions = false, this._suppressParserValidationMessages = false, this._isUpdateWorkitemActionVariable = false, this._labelBadge = null, this._useLabelBadge = false, this._disallowExpressionFunctions = false, this._hideLabel = false, this._useSeparator = false, this._canIgnoreRequired = false, this._additionalBuilderPartDefs = [], (0, b.makeUnenumerable)(this, "_descriptionAdditionalInfoSection"), (0, b.makeUnenumerable)(this, "_additionalRequiredDataType"), (0, b.makeUnenumerable)(this, "_allowEmptyConfig"), (0, b.makeUnenumerable)(this, "_allowFlowLevelDefault"), (0, b.makeUnenumerable)(this, "_allowLiteralEmbeddedExpressions"), (0, b.makeUnenumerable)(this, "_allowedBuilderCategoryIdFilter"), (0, b.makeUnenumerable)(this, "_allowedBuilderIds"), (0, b.makeUnenumerable)(this, "_allowModeBuilder"), (0, b.makeUnenumerable)(this, "_allowModeExpression"), (0, b.makeUnenumerable)(this, "_allowModeLiteral"), (0, b.makeUnenumerable)(this, "_allowModeVariable"), (0, b.makeUnenumerable)(this, "_allowNotSet"), (0, b.makeUnenumerable)(this, "_allowNoValueModeWithNoFallback"), (0, b.makeUnenumerable)(this, "_allowSecure"), (0, b.makeUnenumerable)(this, "_assignablePropertiesNoExpression"), (0, b.makeUnenumerable)(this, "_builderLanguagesSequenceConfig"), (0, b.makeUnenumerable)(this, "_authToCheck"), (0, b.makeUnenumerable)(this, "_collectionItemsWantCollectionDescriptionInfo"), (0, b.makeUnenumerable)(this, "_customLiteralValidator"), (0, b.makeUnenumerable)(this, "_defaultText"), (0, b.makeUnenumerable)(this, "_defaultToBuilderId"), (0, b.makeUnenumerable)(this, "_defaultToExpression"), (0, b.makeUnenumerable)(this, "_defaultToNoValue"), (0, b.makeUnenumerable)(this, "_defaultToVariable"), (0, b.makeUnenumerable)(this, "_descriptionInfo"), (0, b.makeUnenumerable)(this, "_descriptionInfoFull"), (0, b.makeUnenumerable)(this, "_doNotTrackUsages"), (0, b.makeUnenumerable)(this, "_doNotTransitionToNoValue"), (0, b.makeUnenumerable)(this, "_doNotWantBlankRuntimeOutput"), (0, b.makeUnenumerable)(this, "_emitNonConfigItemForEmptyAndNoDefault"), (0, b.makeUnenumerable)(this, "_exprTextMustBeVarOrVarPropRef"), (0, b.makeUnenumerable)(this, "_exprTextRootVariableNameMustBe"), (0, b.makeUnenumerable)(this, "_examples"), (0, b.makeUnenumerable)(this, "_flowLevelDefaultHasDefault"), (0, b.makeUnenumerable)(this, "_flowLevelDefaultSameModes"), (0, b.makeUnenumerable)(this, "_hideDefaultTextDescription"), (0, b.makeUnenumerable)(this, "_initializedForDesignTimeCallback"), (0, b.makeUnenumerable)(this, "_isExpressionPart"), (0, b.makeUnenumerable)(this, "_isFlowLevelDefaultExpression"), (0, b.makeUnenumerable)(this, "_isInternal"), (0, b.makeUnenumerable)(this, "_labelOverride"), (0, b.makeUnenumerable)(this, "_labelBadge"), (0, b.makeUnenumerable)(this, "_useLabelBadge"), (0, b.makeUnenumerable)(this, "_descriptionNote"), (0, b.makeUnenumerable)(this, "_localizedLabelPrefix"), (0, b.makeUnenumerable)(this, "_literalValidatorName"), (0, b.makeUnenumerable)(this, "_modeNoValueRuntimeEvaluationSetting"), (0, b.makeUnenumerable)(this, "_modeNoValueSelectionLabel"), (0, b.makeUnenumerable)(this, "_outputExprTextAllowsReadOnlyVarType"), (0, b.makeUnenumerable)(this, "_useDefaultValueNodeIcons"), (0, b.makeUnenumerable)(this, "_noOriginalType"), (0, b.makeUnenumerable)(this, "_readOnly"), (0, b.makeUnenumerable)(this, "_restrictToFlowGlobalVariables"), (0, b.makeUnenumerable)(this, "_suppressBuilderModePromptResourceChecks"), (0, b.makeUnenumerable)(this, "_usedAsReplacementValueInOtherExpressions"), (0, b.makeUnenumerable)(this, "_valueChangedCallback"), (0, b.makeUnenumerable)(this, "_newInstanceDefaultExpressionCallback"), (0, b.makeUnenumerable)(this, "_extraRealtimeValidationEventSinkName"), (0, b.makeUnenumerable)(this, "_suppressParserValidationMessages"), (0, b.makeUnenumerable)(this, "_scriptingPropertyName"), (0, b.makeUnenumerable)(this, "_subLabel"), (0, b.makeUnenumerable)(this, "_isInput"), (0, b.makeUnenumerable)(this, "_isOutput"), (0, b.makeUnenumerable)(this, "_isUpdateWorkitemActionVariable"), (0, b.makeUnenumerable)(this, "_validVariableReferenceCallback"), (0, b.makeUnenumerable)(this, "_disallowFunctions"), (0, b.makeUnenumerable)(this, "_hideLabel"), (0, b.makeUnenumerable)(this, "_useSeparator"), (0, b.makeUnenumerable)(this, "_canIgnoreRequired"), (0, b.makeUnenumerable)(this, "_additionalBuilderPartDefs"), this.setAsInput(), this.descriptionInfoGenerationId$ = new d.BehaviorSubject(void 0); + } + resolveDefaultText(e3) { + p.default.isString(this.defaultText) && this.setDefaultText(N.default.resolveString(this.defaultText, null == e3 ? void 0 : e3.parentFlow)); + } + _setFromOptions(e3) { + var t3, i3; + if (super._setFromOptions(e3), e3.isExpressionOptions) this._configureInputOutputState(e3.isInput, e3.allowModeLiteral, e3.allowModeVariable, e3._allowModeExpression, e3.allowModeBuilder); + else { + const n3 = e3; + if (null === (t3 = n3.direction) || void 0 === t3 ? void 0 : t3.output) this.setAsOutput(); + else if (null === (i3 = n3.direction) || void 0 === i3 ? void 0 : i3.input) if (n3.direction.input[_.modeCombinations.expressionOnly]) this.setAllowModeExpressionOnly(false); + else if (n3.direction.input[_.modeCombinations.expressionOrBuilderOnly]) this.setAllowModeExpressionOnly(true); + else if (n3.direction.input[_.modeCombinations.literalOnly]) this.setAllowModeLiteralOnly(); + else if (n3.direction.input[_.modeCombinations.variableOnly]) this.setAsVariableInput(); + else if (n3.direction.input[_.modeCombinations.variableAndExpression]) this.setAsVariableInput(), this.setAllowModeExpression(true); + else { + const e4 = Object.keys(n3.direction.input); + e4.length && console.error(`unexpected actionMetaData values ${e4}`), this.setAsInput(false); + } + } + e3._modeNoValueRuntimeEvaluationSetting && e3._modeNoValueRuntimeEvaluationSetting.copyValuesTo(this._modeNoValueRuntimeEvaluationSetting), this._setOptionIfSet(this.setAllowedBuilderCategoryIdFilter, e3.allowedBuilderCategoryIdFilter), this._setOptionIfSet(this.setAllowedBuilderIds, e3.allowedBuilderIds), this._setOptionIfSet(this.setAllowEmptyConfig, e3.allowEmptyConfig), this._setOptionIfSet(this.setAllowFlowLevelDefault, e3.allowFlowLevelDefault), this._setOptionIfSet(this.setAllowEmbeddedExpressionsInLiteralMode, e3.allowEmbeddedExpressionsInLiteralMode), this._setOptionIfSet(this.setAllowNotSet, e3.allowNotSet), this._setOptionIfSet(this.setAllowNoValueModeWithNoFallback, e3._allowNoValueModeWithNoFallback), this._setOptionIfSet(this.setAllowSecure, e3.allowSecure), this._setOptionIfSet(this.setAssignablePropertiesNoExpression, e3.assignablePropertiesNoExpression), this._setOptionIfSet(this.setBuilderLanguagesSequenceConfig, e3.builderLanguagesSequenceConfig), this._setOptionIfSet(this.setCollectionItemFromCollectionOptions, e3.collectionItemsWantCollectionDescriptionInfo), this._setOptionIfSet(this.setDefaultToBuilderId, e3.defaultToBuilderId), this._setOptionIfSet(this.setDefaultToExpression, e3.defaultToExpression), this._setOptionIfSet(this.setDefaultToNoValue, e3.defaultToNoValue), this._setOptionIfSet(this.setDefaultToVariable, e3.defaultToVariable), this._setOptionIfSet(this.setDescriptionAdditionalInfoSection, e3.descriptionAdditionalInfoSection), e3.descriptionInfo && this.setDescriptionInfo(e3.descriptionInfo.name, e3.descriptionInfo.description), this._setOptionIfSet(this.setDoNotTrackUsages, e3.doNotTrackUsages), this._setOptionIfSet(this.setDoNotWantBlankRuntimeOutput, e3.doNotWantBlankRuntimeOutput), this._setOptionIfSet(this.setRestrictToFlowGlobalVariables, e3.restrictToFlowGlobalVariables), this._setOptionIfSet(this.setDoNotTransitionToNoValue, e3.doNotTransitionToNoValue), this._setOptionIfSet(this.setExprTextMustBeVarOrVarPropRef, e3.exprTextMustBeVarOrVarPropRef), this._setOptionIfSet(this.setExprTextRootVariableNameMustBe, e3.exprTextRootVariableNameMustBe), this._setOptionIfSet(this.setOutputExprTextAllowsReadOnlyVarType, e3.outputExprTextAllowsReadOnlyVarType), this._setOptionIfSet(this.setEmitNonConfigItemForEmptyAndNoDefault, e3.emitNonConfigItemForEmptyAndNoDefault), this._setOptionIfSet(this.setFlowLevelDefaultHasDefault, e3.flowLevelDefaultHasDefault), this._setOptionIfSet(this.setFlowLevelDefaultSameModes, e3.flowLevelDefaultSameModes), this._setOptionIfSet(this.setHideDefaultTextDescription, e3.hideDefaultTextDescription), this._setOptionIfSet(this.setIsExpressionPart, e3.isExpressionPart), this._setOptionIfSet(this.setIsFlowLevelDefaultExpression, e3.isFlowLevelDefaultExpression), this._setOptionIfSet(this.setIsInternal, e3.isInternal), this._setOptionIfSet(this.setModeNoValueSelectionLabel, e3.modeNoValueSelectionLabel), this._setOptionIfSet(this.setNoOriginalType, e3.noOriginalType), this._setOptionIfSet(this.setSuppressBuilderModePromptResourceChecks, e3.suppressBuilderModePromptResourceChecks), this._setOptionIfSet(this.setSuppressParserValidationMessages, e3.suppressParserValidationMessages), this._setOptionIfSet(this.setReadOnly, e3.readOnly), this._setOptionIfSet(this.setRequiredFlowChannelType, e3.requiredFlowChannelType), this._setOptionIfSet(this.setUsedAsReplacementValueInOtherExpressions, e3.usedAsReplacementValueInOtherExpressions), this._setOptionIfSet(this.setUseDefaultValueNodeIcons, e3.useDefaultValueNodeIcons), this._setOptionIfSet(this.setRequiresFlowQuickRepliesSetting, e3.requiresFlowQuickRepliesSetting), this._setOptionIfSet(this.setCustomLiteralValidator, e3.customLiteralValidator, "_customLiteralValidator"), this._setOptionIfSet(this.setDefaultText, e3.defaultText, "_defaultText"), this._setOptionIfSet(this.setExtraRealtimeValidationEventSinkName, e3.extraRealtimeValidationEventSinkName, "_extraRealtimeValidationEventSinkName"), this._setOptionIfSet(this.setExamples, e3.examples, "_examples"), this._setOptionIfSet(this.setInitializedForDesignTimeCallback, e3.initializedForDesignTimeCallback, "_initializedForDesignTimeCallback"), this._setOptionIfSet(this.setLabelBadge, e3.labelBadge, "_labelBadge"), this._setOptionIfSet(this.setUseLabelBadge, e3.useLabelBadge, "_useLabelBadge"), this._setOptionIfSet(this.setDescriptionNote, e3.descriptionNote, "_descriptionNote"), this._setOptionIfSet(this.setLabelOverride, e3.labelOverride, "_labelOverride"), this._setOptionIfSet(this.setLiteralValidatorName, e3.literalValidatorName, "_literalValidatorName"), this._setOptionIfSet(this.setLocalizedLabelPrefix, e3.localizedLabelPrefix, "_localizedLabelPrefix"), this._setOptionIfSet(this.setValueChangedCallback, e3.valueChangedCallback, "_valueChangedCallback"), this._setOptionIfSet(this.setNewInstanceDefaultExpressionCallback, e3.newInstanceDefaultExpressionCallback, "_newInstanceDefaultExpressionCallback"), this._setOptionIfSet(this.setScriptingPropertyName, e3.scriptingPropertyName, "_scriptingPropertyName"), this._setOptionIfSet(this.setSubLabel, e3.subLabel, "_subLabel"), this._setOptionIfSet(this.setValidVariableReferenceCallback, e3._validVariableReferenceCallback, "_validVariableReferenceCallback"), this._setOptionIfSet(this.setDisallowExpressionFunctions, e3._disallowExpressionFunctions, "_disallowExpressionFunctions"), this._setOptionIfSet(this.setHideLabel, e3.hideLabel, "_hideLabel"), this._setOptionIfSet(this.setUseSeparator, e3.useSeparator, "_useSeparator"), this._setOptionIfSet(this.setCanIgnoreRequired, e3.canIgnoreRequired, "_canIgnoreRequired"), this._setOptionIfSet(this.setAdditionalBuilderPartDefs, e3.additionalBuilderPartDefs, "_additionalBuilderPartDefs"), e3.customizationsRoot && e3.customizations && this.setAndApplyCustomizations(e3.customizationsRoot, e3.customizations); + } + _configureInputOutputState(e3, t3, i3, n3, r3) { + return this._isInput = e3, this._isOutput = !e3, this.setAllowModeLiteral(!!t3).setAllowModeVariable(!!i3).setAllowModeExpression(!!n3, r3); + } + _incrementDescriptionInfoGenId() { + this._descriptionInfoFull.generationId = (0, v.uuid)(), this.descriptionInfoGenerationId$.next(this._descriptionInfoFull.generationId); + } + getAllowableModeCount(e3) { + let t3 = 0; + return this.allowModeLiteral && t3++, this.allowModeVariable && t3++, this.getAllowModeExpression(e3) && t3++, this.allowModeNoValue && t3++, this.allowModeBuilder && t3++, t3; + } + get isInput() { + return this._isInput; + } + get isOutput() { + return this._isOutput; + } + get className() { + return "BaseExpressionTypeOptions"; + } + get isExpressionOptions() { + return true; + } + get allowModeExpression() { + return this._allowModeExpression; + } + getAllowModeExpression(e3) { + return !!this._allowModeExpression && (!!this._isInput || !!this._outputExprTextAllowsReadOnlyVarType || e3.parentFlow.definition.outputValuesSupportVariableExpressions); + } + get allowEmptyConfig() { + return this._allowEmptyConfig; + } + set allowEmptyConfig(e3) { + this._allowEmptyConfig = S.ParameterValidator.expectBool(e3, () => y.ParameterInfo.createPropertySet(this.className, "allowEmptyConfig", "value")); + } + get allowFlowLevelDefault() { + return this._allowFlowLevelDefault; + } + set allowFlowLevelDefault(e3) { + this._allowFlowLevelDefault = S.ParameterValidator.expectBool(e3, () => y.ParameterInfo.createPropertySet(this.className, "allowFlowLevelDefault", "value")); + } + get allowModeLiteral() { + return this._allowModeLiteral && this.supportsLiteralMode; + } + get descriptionAdditionalInfoSection() { + return this._descriptionAdditionalInfoSection; + } + set descriptionAdditionalInfoSection(e3) { + this._descriptionAdditionalInfoSection = S.ParameterValidator.expectObject(e3, () => y.ParameterInfo.createPropertySet(this.className, "descriptionAdditionalInfoSection", "value"), true), this._incrementDescriptionInfoGenId(); + } + clearDescriptionAdditionalInfoSection() { + return this.descriptionAdditionalInfoSection = void 0, this; + } + setDescriptionAdditionalInfoSection(e3) { + return this.descriptionAdditionalInfoSection = e3, this; + } + get labelBadge() { + return this._labelBadge; + } + set labelBadge(e3) { + this._labelBadge = e3; + } + setLabelBadge(e3) { + return this.labelBadge = e3, this; + } + get useLabelBadge() { + return this._useLabelBadge; + } + set useLabelBadge(e3) { + this._useLabelBadge = e3; + } + setUseLabelBadge(e3) { + return this.useLabelBadge = e3, this; + } + get descriptionNote() { + return this._descriptionNote; + } + set descriptionNote(e3) { + this._descriptionNote = e3; + } + setDescriptionNote(e3) { + return this.descriptionNote = e3, this; + } + setVirtualAgentLabelBadge() { + return this.setLabelBadge(f.aiPoweredBadgeWithText); + } + get customizations() { + return this._customizations; + } + get customizationsRoot() { + return this._customizationsRoot; + } + setAndApplyCustomizations(e3, t3) { + return (t3 = m.resolveCustomization(e3, t3)) ? (this._customizations = t3, this._customizationsRoot = e3, (null == t3 ? void 0 : t3.isLiteralOnly) && this.setAllowModeLiteralOnly(), this) : (this._customizations = void 0, void (this._customizationsRoot = void 0)); + } + get doNotWantBlankRuntimeOutput() { + return this._doNotWantBlankRuntimeOutput; + } + set doNotWantBlankRuntimeOutput(e3) { + this._doNotWantBlankRuntimeOutput = S.ParameterValidator.expectBool(e3, () => y.ParameterInfo.createPropertySet(this.className, "doNotWantBlankRuntimeOutput", "value")); + } + setDoNotWantBlankRuntimeOutput(e3) { + return this.doNotWantBlankRuntimeOutput = e3, this; + } + get supportsLiteralMode() { + return true; + } + get suppressBuilderModePromptResourceChecks() { + return this._suppressBuilderModePromptResourceChecks; + } + set suppressBuilderModePromptResourceChecks(e3) { + this._suppressBuilderModePromptResourceChecks = S.ParameterValidator.expectBool(e3, () => y.ParameterInfo.createPropertySet(this.className, "suppressBuilderModePromptResourceChecks", "value")); + } + get allowModeBuilder() { + return this._allowModeExpression && this.isInput && this._allowModeBuilder; + } + get allowModeNoValue() { + return this.isOptional || this.isInheritingExpression || !this.allowModeLiteral && !this.allowModeVariable && !this._allowModeExpression; + } + get allowedBuilderCategoryIdFilter() { + return this._allowedBuilderCategoryIdFilter; + } + set allowedBuilderCategoryIdFilter(e3) { + this._allowedBuilderCategoryIdFilter = S.ParameterValidator.expectString(e3, () => y.ParameterInfo.createPropertySet(this.className, "allowedBuilderCategoryIdFilter", "value"), true); + } + get allowedBuilderIds() { + return this._allowedBuilderIds; + } + set allowedBuilderIds(e3) { + this._allowedBuilderIds = S.ParameterValidator.expectArray(e3, () => y.ParameterInfo.createPropertySet(this.className, "allowedBuilderIds", "value"), true); + } + get allowSecure() { + return this._allowSecure; + } + set allowSecure(e3) { + this._allowSecure = S.ParameterValidator.expectBool(e3, () => y.ParameterInfo.createPropertySet(this.className, "allowSecure", "value")); + } + get assignablePropertiesNoExpression() { + return this._assignablePropertiesNoExpression; + } + set assignablePropertiesNoExpression(e3) { + this._assignablePropertiesNoExpression = S.ParameterValidator.expectBool(e3, () => y.ParameterInfo.createPropertySet(this.className, "assignablePropertiesNoExpression", "value")); + } + setAssignablePropertiesNoExpression(e3) { + return this.assignablePropertiesNoExpression = e3, this; + } + get allowModeVariable() { + return this._allowModeVariable; + } + get authToCheck() { + return this._authToCheck; + } + get allowNotSet() { + return this._allowNotSet; + } + set allowNotSet(e3) { + this._allowNotSet = S.ParameterValidator.expectBool(e3, () => y.ParameterInfo.createPropertySet(this.className, "allowNotSet", "value")); + } + get allowNoValueModeWithNoFallback() { + return this._allowNoValueModeWithNoFallback && this.allowModeNoValue && !this.isFlowLevelDefaultExpression; + } + set allowNoValueModeWithNoFallback(e3) { + this._allowNoValueModeWithNoFallback = S.ParameterValidator.expectBool(e3, () => y.ParameterInfo.createPropertySet(this.className, "allowNoValueModeWithNoFallback", "value")); + } + get collectionItemsWantCollectionDescriptionInfo() { + return this._collectionItemsWantCollectionDescriptionInfo; + } + set collectionItemsWantCollectionDescriptionInfo(e3) { + this._collectionItemsWantCollectionDescriptionInfo = S.ParameterValidator.expectBool(e3, () => y.ParameterInfo.createPropertySet(this.className, "collectionItemsWantCollectionDescriptionInfo", "value")); + } + get builderLanguagesSequenceConfig() { + return this._builderLanguagesSequenceConfig; + } + set builderLanguagesSequenceConfig(e3) { + this._builderLanguagesSequenceConfig = e3; + } + setBuilderLanguagesSequenceConfig(e3) { + return this.builderLanguagesSequenceConfig = e3, this; + } + get customLiteralValidator() { + return this._customLiteralValidator; + } + set customLiteralValidator(e3) { + this._customLiteralValidator = e3; + } + get defaultText() { + return this._defaultText; + } + set defaultText(e3) { + this._defaultText = S.ParameterValidator.expectNumberOrString(e3, () => y.ParameterInfo.createPropertySet(this.className, "defaultText", "value")); + } + get hasDefaultText() { + return void 0 !== this.defaultText; + } + get defaultToBuilderId() { + return this._defaultToBuilderId; + } + set defaultToBuilderId(e3) { + this._defaultToBuilderId = e3; + } + get defaultToExpression() { + return this._defaultToExpression; + } + set defaultToExpression(e3) { + this._defaultToExpression = S.ParameterValidator.expectBool(e3, () => y.ParameterInfo.createPropertySet(this.className, "defaultToExpression", "value")); + } + get defaultToNoValue() { + return this._defaultToNoValue; + } + set defaultToNoValue(e3) { + this._defaultToNoValue = S.ParameterValidator.expectBool(e3, () => y.ParameterInfo.createPropertySet(this.className, "defaultToNoValue", "value")); + } + get defaultVariableScope() { + return this._defaultVariableScope; + } + set defaultVariableScope(e3) { + this._defaultVariableScope = S.ParameterValidator.expectString(e3, () => y.ParameterInfo.createPropertySet(this.className, "defaultVariableScope", "value")); + } + get defaultToVariable() { + return this._defaultToVariable && this.allowModeVariable; + } + set defaultToVariable(e3) { + this._defaultToVariable = S.ParameterValidator.expectBool(e3, () => y.ParameterInfo.createPropertySet(this.className, "defaultToVariable", "value")); + } + get doNotTransitionToNoValue() { + return this._doNotTransitionToNoValue; + } + set doNotTransitionToNoValue(e3) { + this._doNotTransitionToNoValue = S.ParameterValidator.expectBool(e3, () => y.ParameterInfo.createPropertySet(this.className, "doNotTransitionToNoValue", "value")); + } + get doNotTrackUsages() { + return this._doNotTrackUsages; + } + set doNotTrackUsages(e3) { + this._doNotTrackUsages = S.ParameterValidator.expectBool(e3, () => y.ParameterInfo.createPropertySet(this.className, "doNotTrackUsages", "value")); + } + get emitNonConfigItemForEmptyAndNoDefault() { + return this._emitNonConfigItemForEmptyAndNoDefault; + } + set emitNonConfigItemForEmptyAndNoDefault(e3) { + this._emitNonConfigItemForEmptyAndNoDefault = S.ParameterValidator.expectBool(e3, () => y.ParameterInfo.createPropertySet(this.className, "emitNonConfigItemForEmptyAndNoDefault", "value")); + } + get exprTextMustBeVarOrVarPropRef() { + return this._exprTextMustBeVarOrVarPropRef; + } + set exprTextMustBeVarOrVarPropRef(e3) { + this._exprTextMustBeVarOrVarPropRef = S.ParameterValidator.expectBool(e3, () => y.ParameterInfo.createPropertySet(this.className, "exprTextMustBeVarOrVarPropRef", "value")); + } + get exprTextRootVariableNameMustBe() { + if (this.exprTextMustBeVarOrVarPropRef) return this._exprTextRootVariableNameMustBe; + } + set exprTextRootVariableNameMustBe(e3) { + this._exprTextRootVariableNameMustBe = S.ParameterValidator.expectString(e3, () => y.ParameterInfo.createPropertySet(this.className, "exprTextRootVariableNameMustBe", "variableName")); + } + setExprTextRootVariableNameMustBe(e3) { + return this.exprTextRootVariableNameMustBe = e3, this; + } + get outputExprTextAllowsReadOnlyVarType() { + return !!this._exprTextMustBeVarOrVarPropRef && this._outputExprTextAllowsReadOnlyVarType; + } + set outputExprTextAllowsReadOnlyVarType(e3) { + this._outputExprTextAllowsReadOnlyVarType = S.ParameterValidator.expectBool(e3, () => y.ParameterInfo.createPropertySet(this.className, "outputExprTextAllowsReadOnlyVarType", "value")); + } + setOutputExprTextAllowsReadOnlyVarType(e3) { + return this.outputExprTextAllowsReadOnlyVarType = e3, this; + } + get initializedForDesignTimeCallback() { + return this._initializedForDesignTimeCallback; + } + set initializedForDesignTimeCallback(e3) { + this._initializedForDesignTimeCallback = S.ParameterValidator.expectFunction(e3, () => y.ParameterInfo.createPropertySet(this.className, "initializedForDesignTimeCallback", "callbackFunction")); + } + get literalValidatorName() { + return this._literalValidatorName; + } + set literalValidatorName(e3) { + this._literalValidatorName = S.ParameterValidator.expectString(e3, () => y.ParameterInfo.createPropertySet(this.className, "literalValidatorName", "value"), true); + } + get flowLevelDefaultHasDefault() { + return this._flowLevelDefaultHasDefault && this.allowFlowLevelDefault; + } + set flowLevelDefaultHasDefault(e3) { + this._flowLevelDefaultHasDefault = S.ParameterValidator.expectBool(e3, () => y.ParameterInfo.createPropertySet(this.className, "flowLevelDefaultHasDefault", "value")); + } + get flowLevelDefaultSameModes() { + return this._flowLevelDefaultSameModes && this.allowFlowLevelDefault; + } + set flowLevelDefaultSameModes(e3) { + this._flowLevelDefaultSameModes = S.ParameterValidator.expectBool(e3, () => y.ParameterInfo.createPropertySet(this.className, "flowLevelDefaultSameModes", "value")); + } + get hideDefaultTextDescription() { + return this._hideDefaultTextDescription; + } + set hideDefaultTextDescription(e3) { + this._hideDefaultTextDescription = S.ParameterValidator.expectBool(e3, () => y.ParameterInfo.createPropertySet(this.className, "hideDefaultTextDescription", "value")); + } + get allowEmbeddedExpressionsInLiteralMode() { + return this._allowEmbeddedExpressionsInLiteralMode; + } + set allowEmbeddedExpressionsInLiteralMode(e3) { + this._allowEmbeddedExpressionsInLiteralMode = S.ParameterValidator.expectBool(e3, () => y.ParameterInfo.createPropertySet(this.className, "allowEmbeddedExpressionsInLiteralMode", "value")); + } + get isInternal() { + return this._isInternal; + } + set isInternal(e3) { + this._isInternal = S.ParameterValidator.expectBool(e3, () => y.ParameterInfo.createPropertySet(this.className, "isInternal", "value")); + } + get isOptional() { + return this._isOptional || this.isInheritingExpression; + } + set isOptional(e3) { + super.isOptional = e3; + } + get isExpressionPart() { + return this._isExpressionPart; + } + set isExpressionPart(e3) { + this._isExpressionPart = S.ParameterValidator.expectBool(e3, () => y.ParameterInfo.createPropertySet(this.className, "isFlowLevelDefaultExpression", "value")); + } + get isFlowLevelDefaultExpression() { + return this._isFlowLevelDefaultExpression; + } + set isFlowLevelDefaultExpression(e3) { + this._isFlowLevelDefaultExpression = S.ParameterValidator.expectBool(e3, () => y.ParameterInfo.createPropertySet(this.className, "isFlowLevelDefaultExpression", "value")); + } + get isFlowLevelInheritingExpression() { + return this.isFlowLevelDefaultExpression && this.flowLevelDefaultHasDefault; + } + get isNonFlowLevelInheritingExpression() { + return !this.isFlowLevelDefaultExpression && this.allowFlowLevelDefault; + } + get isInheritingExpression() { + return this.isNonFlowLevelInheritingExpression || this.isFlowLevelInheritingExpression; + } + get noOriginalType() { + return this._noOriginalType; + } + set noOriginalType(e3) { + this._noOriginalType = S.ParameterValidator.expectBool(e3, () => y.ParameterInfo.createPropertySet(this.className, "noOriginalType", "value")); + } + get readOnly() { + return this._readOnly; + } + set readOnly(e3) { + this._readOnly = S.ParameterValidator.expectBool(e3, () => y.ParameterInfo.createPropertySet(this.className, "readOnly", "value")); + } + get requiredFlowChannelType() { + return this._requiredFlowChannelType; + } + set requiredFlowChannelType(e3) { + this._requiredFlowChannelType = S.ParameterValidator.expectChannelType(e3, () => y.ParameterInfo.createPropertySet(this.className, "requiredFlowChannelType", "value")); + } + get requiresFlowQuickRepliesSetting() { + return this._requiresFlowQuickRepliesSetting; + } + set requiresFlowQuickRepliesSetting(e3) { + this._requiresFlowQuickRepliesSetting = S.ParameterValidator.expectBool(e3, () => y.ParameterInfo.createPropertySet(this.className, "requiresFlowQuickRepliesSetting", "value")); + } + setRequiresFlowQuickRepliesSetting(e3) { + return this.requiresFlowQuickRepliesSetting = e3, this; + } + setRestrictionsFromOperandDef(e3) { + return e3 && (this.setAllowNotSet(e3.allowNotSet).setLiteralValidatorName(e3.literalValidatorName), this._setRestrictionsFromOperandDef(e3)), this; + } + _setRestrictionsFromOperandDef(e3) { + } + get allowableValues() { + return this.facets ? this.facets.allowableValues : void 0; + } + get hasAllowableValues() { + var e3; + return !!(null === (e3 = this.facets) || void 0 === e3 ? void 0 : e3.hasAllowableValues); + } + get hasIAllowableValueTypeAllowableValues() { + var e3; + return !!(null === (e3 = this.facets) || void 0 === e3 ? void 0 : e3.hasIAllowableValueAllowableValues); + } + get hasStringTypeAllowableValues() { + var e3; + return !!(null === (e3 = this.facets) || void 0 === e3 ? void 0 : e3.hasStringTypeAllowableValues); + } + getAllowableValueForValue(e3) { + var t3; + return null === (t3 = this.facets) || void 0 === t3 ? void 0 : t3.getAllowableValueForValue(e3); + } + get descriptionInfo() { + return this._descriptionInfo; + } + hasDescriptionInfo(e3) { + return (this._descriptionInfo.name || e3 && e3.label) && (this._descriptionInfo.description || this.isCollection && (this.minItems || this.maxItems) || this.examples || this.hasDefaultText || !this.isCollection && !this.allowNotSet || this.facets && this.facets.hasDescriptionInfo || this._descriptionAdditionalInfoSection || e3.parentFlow.getUnsupportedFlowTypes(e3.supportedFlowTypes).length) || this.readOnly; + } + getFullDescription(e3) { + var t3, i3, n3, r3, o2, a2; + let s2, l2; + if (this._descriptionInfoFull.name = this._descriptionInfo.name || (e3 ? e3.label : ""), this._descriptionInfoFull.description = this._descriptionInfo.description, (null === (t3 = this._descriptionInfo.description) || void 0 === t3 ? void 0 : t3.length) && (this._descriptionInfo.description = N.default.resolveString(this._descriptionInfo.description, e3.parentFlow)), e3 && (this._descriptionInfoFull.subHeader = (0, c.sprintf)(D.expression.editExpressionType, e3.type.displayString)), this._descriptionInfoFull.additionalInfo = [], this._descriptionInfoFull.additionalInfoSections = [], this.isCollection) { + const e4 = []; + p.default.isActualNumber(this.minItems) && e4.push((0, c.sprintf)(D.expression.collectionMinLength, this.minItems)), p.default.isActualNumber(this.maxItems) && e4.push((0, c.sprintf)(D.expression.collectionMaxLength, this.maxItems)), e4.length && this._descriptionInfoFull.additionalInfoSections.push({ title: D.expression.collectionSingular, entries: e4 }), s2 = [], l2 = { title: D.expressionsHelp.collectionItemsTitle, entries: s2 }, this._descriptionInfoFull.additionalInfoSections.push(l2); + } else s2 = this._descriptionInfoFull.additionalInfo; + switch (this._getDefaultTextForDisplay() && !this.hideDefaultTextDescription && s2.push((0, c.sprintf)(D.defaultForDescription, this._getDefaultTextForDisplay())), this.isCollection || this.allowNotSet || s2.push(this.isExpressionTypeCurrencyOptions ? D.expressionsHelp.parameters.notAllowedNotSetCurrency : D.expressionsHelp.parameters.notAllowedNotSet), p.default.isObject(this.descriptionAdditionalInfoSection) && this._descriptionInfoFull.additionalInfoSections.push(this.descriptionAdditionalInfoSection), this.readOnly && s2.push(D.generic.readonly), this.facets && this.facets.addDescriptionInfo(this._descriptionInfoFull, s2), this.literalValidatorName) { + case h.literalValidatorNames.dialingCodes: + s2.push(D.expressionsHelp.parameters.valueMustBeLiteralDialingCode); + break; + case h.literalValidatorNames.iso4217: + s2.push(D.expressionsHelp.parameters.valueMustBeLiteralISO4217); + break; + case h.literalValidatorNames.supportedTTSLangs: + s2.push(D.expressionsHelp.parameters.valueMustBeLiteralSupportedTTSLangTag); + } + if (e3 && this._descriptionInfo.name) { + const t4 = null === (a2 = null === (o2 = null === (r3 = null === (n3 = null === (i3 = e3.propertyParent) || void 0 === i3 ? void 0 : i3.originalType) || void 0 === n3 ? void 0 : n3._model) || void 0 === r3 ? void 0 : r3.nativeProperties) || void 0 === o2 ? void 0 : o2.find((e4) => e4.id === this._descriptionInfo.name)) || void 0 === a2 ? void 0 : a2.supportedSessionSources; + if (null == t4 ? void 0 : t4.length) { + const e4 = t4.map((e5) => "unknown" === e5 ? D.generic.unknown : A.default.sessionSources[e5]), i4 = { title: D.generic.note, entries: [(0, c.sprintf)(D.generic.sessionSourcesNote, O.getListDisplayString(e4), O.getListDisplayString(t4, false, true, true))] }; + this._descriptionInfoFull.additionalInfoSections.push(i4); + } + } + if (p.default.isArray(this.examples) && this.examples.length > 0) { + const e4 = { title: 1 === this.examples.length ? D.expression.facets.example : D.expression.facets.examples, entries: [] }; + this._descriptionInfoFull.additionalInfoSections.push(e4), p.default.each(this.examples, function(t4) { + e4.entries.push(t4); + }); + } + if (l2 && 0 === l2.entries.length) { + const e4 = this._descriptionInfoFull.additionalInfoSections.indexOf(l2); + this._descriptionInfoFull.additionalInfoSections.splice(e4, 1); + } + const u2 = e3.parentFlow.getUnsupportedFlowTypes(e3.supportedFlowTypes); + return u2.length ? this._descriptionInfoFull.info = (0, c.sprintf)(D.commonModule.notAvailableInFlowTypes, O.getFlowTypesDisplayString(u2)) : delete this._descriptionInfoFull.info, this._descriptionInfoFull; + } + _getDefaultTextForDisplay() { + return this.defaultText; + } + get namedExpressionMode() { + return this.expressionOnly ? _.modeCombinations.expressionOnly : this.expressionOrBuilderOnly ? _.modeCombinations.expressionOrBuilderOnly : this.literalOnly ? _.modeCombinations.literalOnly : this.variableAndExpression ? _.modeCombinations.variableAndExpression : this.variableOnly ? _.modeCombinations.variableOnly : void 0; + } + get literalOnly() { + return this.allowModeLiteral && !this._allowModeExpression && !this.allowModeVariable && !this.allowModeNoValue && !this.allowModeBuilder; + } + get literalOrNoValueOnly() { + return this.allowModeLiteral && !this._allowModeExpression && !this.allowModeVariable && this.allowModeNoValue && !this.allowModeBuilder; + } + get expressionOnly() { + return this._allowModeExpression && !this.allowModeLiteral && !this.allowModeVariable && !this.allowModeNoValue && !this.allowModeBuilder; + } + get expressionOrBuilderOnly() { + return this._allowModeExpression && !this.allowModeLiteral && !this.allowModeVariable && !this.allowModeNoValue && this.allowModeBuilder; + } + get variableAndExpression() { + return this._allowModeVariable && this._allowModeExpression && !this.allowModeLiteral; + } + get variableOnly() { + return !this.allowModeLiteral && !this._allowModeExpression && this.allowModeVariable && !this.allowModeNoValue; + } + get modeNoValueSelectionLabel() { + return this._modeNoValueSelectionLabel; + } + set modeNoValueSelectionLabel(e3) { + this._modeNoValueSelectionLabel = S.ParameterValidator.expectString(e3, () => y.ParameterInfo.createPropertySet(this.className, "modeNoValueSelectionLabel", "value")); + } + get modeNoValueSelectionLabelForContext() { + return this.isFlowLevelInheritingExpression ? D.expression.noValue.selection.useDefault : this.isNonFlowLevelInheritingExpression ? D.expression.noValue.selection.useFlowDefault : this._modeNoValueSelectionLabel; + } + getModeNoValueRuntimeEvaluationStr(e3) { + return this._modeNoValueRuntimeEvaluationSetting.getValueForFlowType(e3.parentFlow.type) || (this._allowModeExpression || this.allowModeLiteral || !this.allowModeVariable ? this.allowFlowLevelDefault && !e3.isOverride ? D.expression.noValue.selectionRuntimeEvaluation.noDefaultValueSpecified : D.expression.noValue.selectionRuntimeEvaluation.noValueSpecified : D.expression.noValue.selectionRuntimeEvaluation.noVariableSpecified); + } + setModeNoValueRuntimeEvaluationStr(e3, t3) { + return this._modeNoValueRuntimeEvaluationSetting.setValueForFlowTypeOrTypes(e3, t3), this; + } + getModeNoValueRuntimeEvaluationStrForContext(e3) { + return this.isNonFlowLevelInheritingExpression && !e3.isNoValueModeWithNoFallback ? D.expression.noValue.selectionRuntimeEvaluation.useFlowDefault : this.getModeNoValueRuntimeEvaluationStr(e3); + } + get anySpecificModeAvailable() { + return this.allowModeLiteral || this._allowModeExpression || this.allowModeVariable || this.allowModeNoValue; + } + get useDefaultValueNodeIcons() { + return this._useDefaultValueNodeIcons; + } + set useDefaultValueNodeIcons(e3) { + this._useDefaultValueNodeIcons = S.ParameterValidator.expectBool(e3, () => y.ParameterInfo.createPropertySet(this.className, "useDefaultValueNodeIcons", "value")); + } + get usedAsReplacementValueInOtherExpressions() { + return this._usedAsReplacementValueInOtherExpressions; + } + set usedAsReplacementValueInOtherExpressions(e3) { + this._usedAsReplacementValueInOtherExpressions = S.ParameterValidator.expectBool(e3, () => y.ParameterInfo.createPropertySet(this.className, "usedAsReplacementValueInOtherExpressions", "value")); + } + get valueChangedCallback() { + return this._valueChangedCallback; + } + set valueChangedCallback(e3) { + this._valueChangedCallback = S.ParameterValidator.expectFunction(e3, () => y.ParameterInfo.createPropertySet(this.className, "valueChangedCallback", "callbackFunction")); + } + get newInstanceDefaultExpressionCallback() { + return this._newInstanceDefaultExpressionCallback; + } + set newInstanceDefaultExpressionCallback(e3) { + this._newInstanceDefaultExpressionCallback = S.ParameterValidator.expectFunction(e3, () => y.ParameterInfo.createPropertySet(this.className, "newInstanceDefaultExpressionCallback", "callbackFunction")); + } + get extraRealtimeValidationEventSinkName() { + return this._extraRealtimeValidationEventSinkName; + } + set extraRealtimeValidationEventSinkName(e3) { + this._extraRealtimeValidationEventSinkName = e3; + } + get scriptingPropertyName() { + return this._scriptingPropertyName; + } + set scriptingPropertyName(e3) { + this._scriptingPropertyName = S.ParameterValidator.expectString(e3, () => y.ParameterInfo.createPropertySet(this.className, "scriptingPropertyName", "value")); + } + addAuthToCheck(e3, t3) { + return S.ParameterValidator.expectString(e3, () => y.ParameterInfo.createFunctionParameter(this.className, "addAuthToCheck", "authStringParameter")), S.ParameterValidator.expectBool(t3, () => y.ParameterInfo.createFunctionParameter(this.className, "addAuthToCheck", "isWarningParameter")), this.authToCheck.push({ authString: e3, isWarning: t3 }), this; + } + setAllowedBuilderCategoryIdFilter(e3) { + return this.allowedBuilderCategoryIdFilter = e3, this; + } + setAllowedBuilderIds(e3) { + return this.allowedBuilderIds = e3, this; + } + setAllowModeBuilder(e3) { + return this._allowModeBuilder = S.ParameterValidator.expectBool(e3, () => y.ParameterInfo.createPropertySet(this.className, "allowModeBuilder", "value")), this; + } + setAllowModeExpression(e3, t3) { + return this._allowModeExpression = S.ParameterValidator.expectBool(e3, () => y.ParameterInfo.createFunctionParameter(this.className, "setAllowModeExpression", "value")), S.ParameterValidator.expectBool(t3, () => y.ParameterInfo.createFunctionParameter(this.className, "setAllowModeExpression", "allowBuilder"), true), p.default.isBoolean(t3) && this.setAllowModeBuilder(t3), this; + } + setAllowModeExpressionOnly(e3) { + return this._configureInputOutputState(this.isInput, false, false, true, e3), this; + } + setAllowModeLiteralOnly() { + return this._configureInputOutputState(this.isInput, true, false, false, false), this; + } + setAllowEmptyConfig(e3) { + return this.allowEmptyConfig = e3, this; + } + setAllowModeLiteral(e3) { + return this._allowModeLiteral = S.ParameterValidator.expectBool(e3, () => y.ParameterInfo.createFunctionParameter(this.className, "setAllowModeLiteral", "value")), this; + } + setAllowSecure(e3) { + return this.allowSecure = e3, this; + } + setAllowNotSet(e3) { + return this.allowNotSet = e3, this; + } + setLiteralValidatorName(e3) { + return this.literalValidatorName = e3, this; + } + setAllowModeVariable(e3) { + return this._allowModeVariable = S.ParameterValidator.expectBool(e3, () => y.ParameterInfo.createFunctionParameter(this.className, "setAllowModeVariable", "value")), this; + } + setRequiredFlowChannelType(e3) { + return this.requiredFlowChannelType = e3, this; + } + setAllowFlowLevelDefault(e3) { + return this.allowFlowLevelDefault = e3, this; + } + setAllowNoValueModeWithNoFallback(e3) { + return this.allowNoValueModeWithNoFallback = e3, this; + } + setSuppressBuilderModePromptResourceChecks(e3) { + return this.suppressBuilderModePromptResourceChecks = e3, this; + } + setAsInput(e3) { + S.ParameterValidator.expectBool(e3, () => y.ParameterInfo.createFunctionParameter(this.className, "setAsInput", "restrictToLiteral"), true); + const t3 = !(true === e3); + return this._configureInputOutputState(true, true, false, t3); + } + setAsVariableInput() { + return this._configureInputOutputState(true, false, true, false, false); + } + setAsOutput() { + const e3 = this.isUpdateWorkitemActionVariable; + return this._configureInputOutputState(false, false, !e3, e3, false).setAllowSecure(true).setExprTextMustBeVarOrVarPropRef(e3); + } + get isUpdateWorkitemActionVariable() { + return this._isUpdateWorkitemActionVariable; + } + set isUpdateWorkitemActionVariable(e3) { + this._isUpdateWorkitemActionVariable = e3; + } + setAsOutputExpressionOnly() { + return this._configureInputOutputState(false, false, false, true, false).setAllowSecure(true).setExprTextMustBeVarOrVarPropRef(true); + } + setCollectionItemsWantCollectionDescriptionInfo(e3) { + return this.collectionItemsWantCollectionDescriptionInfo = e3, this; + } + setCustomLiteralValidator(e3) { + return this.customLiteralValidator = e3, this; + } + setFlowLevelDefaultSameModes(e3) { + return this.flowLevelDefaultSameModes = e3, this; + } + setFlowLevelDefaultHasDefault(e3) { + return this.flowLevelDefaultHasDefault = e3, this; + } + setHideDefaultTextDescription(e3) { + return this.hideDefaultTextDescription = e3, this; + } + setIsExpressionPart(e3) { + return this.isExpressionPart = e3, this; + } + setAllowEmbeddedExpressionsInLiteralMode(e3) { + return this.allowEmbeddedExpressionsInLiteralMode = e3, this; + } + setIsInternal(e3) { + return this.isInternal = e3, this; + } + setDefaultText(e3) { + return this.defaultText = e3, this; + } + setDoNotTrackUsages(e3) { + return this.doNotTrackUsages = e3, this; + } + setDefaultToBuilderId(e3) { + return this.defaultToBuilderId = e3, this; + } + setDefaultToExpression(e3) { + return this.defaultToExpression = e3, this; + } + setDefaultToNoValue(e3) { + return this.defaultToNoValue = e3, this; + } + setDefaultToVariable(e3) { + return this.defaultToVariable = e3, this; + } + setDefaultVariableScope(e3) { + return this.defaultVariableScope = e3, this; + } + setDoNotTransitionToNoValue(e3) { + return this.doNotTransitionToNoValue = e3, this; + } + setExprTextMustBeVarOrVarPropRef(e3) { + return this.exprTextMustBeVarOrVarPropRef = e3, this; + } + setInitializedForDesignTimeCallback(e3) { + return this.initializedForDesignTimeCallback = e3, this; + } + setIsFlowLevelDefaultExpression(e3) { + return this.isFlowLevelDefaultExpression = e3, this; + } + setModeNoValueSelectionLabel(e3) { + return this.modeNoValueSelectionLabel = e3, this; + } + setModeNoValueSelectionLabelToDefault() { + return this.setModeNoValueSelectionLabel(D.expression.noValue.selection.default); + } + setNoOriginalType(e3) { + return this.noOriginalType = e3, this; + } + clearDescriptionInfo() { + return this.setDescriptionInfo(void 0, void 0); + } + setDescriptionInfo(e3, t3) { + return this._descriptionInfo.name = e3, this._descriptionInfo.description = t3, this._incrementDescriptionInfoGenId(), this; + } + setReadOnly(e3) { + return this.readOnly = e3, this; + } + setUsedAsReplacementValueInOtherExpressions(e3) { + return this.usedAsReplacementValueInOtherExpressions = e3, this; + } + setExtraRealtimeValidationEventSinkName(e3) { + return this.extraRealtimeValidationEventSinkName = e3, this; + } + setUseDefaultValueNodeIcons(e3) { + return this.useDefaultValueNodeIcons = e3, this; + } + setValueChangedCallback(e3) { + return this.valueChangedCallback = e3, this; + } + setNewInstanceDefaultExpressionCallback(e3) { + return this.newInstanceDefaultExpressionCallback = e3, this; + } + setCollectionItemFromCollectionOptions(e3) { + var t3, i3, n3, r3; + if (e3) return this._setFacetsFromOptions(e3), this._setOptionIfSet(this.setIninTestingField, e3.ininTestingField, "_ininTestingField"), this._setOptionIfSet(this.setUiPropertyGroup, e3.uiPropertyGroup, "_uiPropertyGroup"), this._setOptionIfSet(this.setFeatureConfigName, e3.featureConfigName, "_featureConfigName"), this._setOptionIfSet(this.setAllowSecure, e3.allowSecure, "_allowSecure"), this._setOptionIfSet(this.setBuilderLanguagesSequenceConfig, e3.builderLanguagesSequenceConfig, "_builderLanguagesSequenceConfig"), this._setOptionIfSet(this.setCustomLiteralValidator, e3.customLiteralValidator, "_customLiteralValidator"), e3.collectionItemsWantCollectionDescriptionInfo && this.setDescriptionInfo(null === (t3 = e3.descriptionInfo) || void 0 === t3 ? void 0 : t3.name, null === (i3 = e3.descriptionInfo) || void 0 === i3 ? void 0 : i3.description), true === e3._assignablePropertiesNoExpression && this.setAssignablePropertiesNoExpression(true), (false === e3._allowModeExpression || e3._assignablePropertiesNoExpression) && this.setAllowModeExpression(false), e3.isExpressionTypeJsonOptions && e3.isCustomJsonType && this.setAllowEmbeddedExpressionsInLiteralMode(e3.allowEmbeddedExpressionsInLiteralMode), this.setIsCollection(false), (null === (n3 = e3.customizations) || void 0 === n3 ? void 0 : n3.items) && this.setAndApplyCustomizations(e3.customizationsRoot, null === (r3 = e3.customizations) || void 0 === r3 ? void 0 : r3.items), this; + } + get examples() { + return this._examples; + } + set examples(e3) { + this._examples = S.ParameterValidator.expectArrayOrString(e3, () => y.ParameterInfo.createPropertySet(this.className, "examples", "value")); + } + setExamples(e3) { + return this.examples = e3, this; + } + get labelOverride() { + return this._labelOverride; + } + set labelOverride(e3) { + this._labelOverride = S.ParameterValidator.expectString(e3, () => y.ParameterInfo.createPropertySet(this.className, "labelOverride", "value")); + } + setLabelOverride(e3) { + return this.labelOverride = e3, this; + } + get localizedLabelPrefix() { + return this._localizedLabelPrefix; + } + set localizedLabelPrefix(e3) { + this._localizedLabelPrefix = S.ParameterValidator.expectString(e3, () => y.ParameterInfo.createPropertySet(this.className, "localizedLabelPrefix", "value")); + } + setLocalizedLabelPrefix(e3) { + return this.localizedLabelPrefix = e3, this; + } + setEmitNonConfigItemForEmptyAndNoDefault(e3) { + return this.emitNonConfigItemForEmptyAndNoDefault = e3, this; + } + get suppressParserValidationMessages() { + return this._suppressParserValidationMessages; + } + set suppressParserValidationMessages(e3) { + this._suppressParserValidationMessages = S.ParameterValidator.expectBool(e3, () => y.ParameterInfo.createPropertySet(this.className, "suppressParserValidationMessages", "value")); + } + setSuppressParserValidationMessages(e3) { + return this.suppressParserValidationMessages = e3, this; + } + setScriptingPropertyName(e3) { + return this.scriptingPropertyName = e3, this; + } + get restrictToFlowGlobalVariables() { + return this._restrictToFlowGlobalVariables; + } + set restrictToFlowGlobalVariables(e3) { + this._restrictToFlowGlobalVariables = S.ParameterValidator.expectBool(e3, () => y.ParameterInfo.createPropertySet(this.className, "restrictToFlowGlobalVariables", "value")); + } + setRestrictToFlowGlobalVariables(e3) { + return this.restrictToFlowGlobalVariables = e3, this; + } + get wantVariableMode() { + return this.defaultToVariable || this.variableOnly || this.allowModeVariable && this._allowModeExpression && this.isOutput && !this.isOptional; + } + getDependencyTrackingId(e3) { + return null == e3 ? void 0 : e3.val; + } + get subLabel() { + return this._subLabel; + } + set subLabel(e3) { + this._subLabel = S.ParameterValidator.expectString(e3, () => y.ParameterInfo.createPropertySet(this.className, "subLabel", "value"), true); + } + setSubLabel(e3) { + return this.subLabel = e3, this; + } + set validVariableReferenceCallback(e3) { + this._validVariableReferenceCallback = e3; + } + get validVariableReferenceCallback() { + return this._validVariableReferenceCallback; + } + setValidVariableReferenceCallback(e3) { + return this._validVariableReferenceCallback = e3, this; + } + set disallowExpressionFunctions(e3) { + this._disallowExpressionFunctions = e3; + } + get disallowExpressionFunctions() { + return this._disallowExpressionFunctions; + } + setDisallowExpressionFunctions(e3) { + return this._disallowExpressionFunctions = e3, this; + } + get hideLabel() { + return this._hideLabel; + } + set hideLabel(e3) { + this._hideLabel = e3; + } + setHideLabel(e3) { + return this._hideLabel = e3, this; + } + get useSeparator() { + return this._useSeparator; + } + set useSeparator(e3) { + this._useSeparator = e3; + } + setUseSeparator(e3) { + return this._useSeparator = e3, this; + } + get canIgnoreRequired() { + return this._canIgnoreRequired; + } + setCanIgnoreRequired(e3) { + return this._canIgnoreRequired = e3, this; + } + get additionalBuilderPartDefs() { + return this._additionalBuilderPartDefs; + } + set additionalBuilderPartDefs(e3) { + this._additionalBuilderPartDefs = e3; + } + setAdditionalBuilderPartDefs(e3) { + return this._additionalBuilderPartDefs = e3, this; + } + } + t2.BaseExpressionTypeOptions = P, u.__decorate([(0, C.enumerable)(true), u.__metadata("design:type", Boolean), u.__metadata("design:paramtypes", [Object])], P.prototype, "allowEmptyConfig", null), u.__decorate([(0, C.enumerable)(true), u.__metadata("design:type", Boolean), u.__metadata("design:paramtypes", [Object])], P.prototype, "allowFlowLevelDefault", null), u.__decorate([(0, C.enumerable)(true), u.__metadata("design:type", "function" == typeof (n2 = void 0 !== I.IAdditionalInfoSection && I.IAdditionalInfoSection) ? n2 : Object), u.__metadata("design:paramtypes", [Object])], P.prototype, "descriptionAdditionalInfoSection", null), u.__decorate([(0, C.enumerable)(true), u.__metadata("design:type", "function" == typeof (r2 = void 0 !== g.IExpressionOptionsCustomization && g.IExpressionOptionsCustomization) ? r2 : Object), u.__metadata("design:paramtypes", [])], P.prototype, "customizations", null), u.__decorate([(0, C.enumerable)(true), u.__metadata("design:type", Boolean), u.__metadata("design:paramtypes", [Object])], P.prototype, "doNotWantBlankRuntimeOutput", null), u.__decorate([(0, C.enumerable)(true), u.__metadata("design:type", Boolean), u.__metadata("design:paramtypes", [Object])], P.prototype, "suppressBuilderModePromptResourceChecks", null), u.__decorate([(0, C.enumerable)(true), u.__metadata("design:type", Object), u.__metadata("design:paramtypes", [Object])], P.prototype, "allowedBuilderCategoryIdFilter", null), u.__decorate([(0, C.enumerable)(true), u.__metadata("design:type", Array), u.__metadata("design:paramtypes", [Array])], P.prototype, "allowedBuilderIds", null), u.__decorate([(0, C.enumerable)(true), u.__metadata("design:type", Boolean), u.__metadata("design:paramtypes", [Object])], P.prototype, "allowSecure", null), u.__decorate([(0, C.enumerable)(true), u.__metadata("design:type", Boolean), u.__metadata("design:paramtypes", [Object])], P.prototype, "assignablePropertiesNoExpression", null), u.__decorate([(0, C.enumerable)(true), u.__metadata("design:type", Array), u.__metadata("design:paramtypes", [])], P.prototype, "authToCheck", null), u.__decorate([(0, C.enumerable)(true), u.__metadata("design:type", Boolean), u.__metadata("design:paramtypes", [Object])], P.prototype, "allowNoValueModeWithNoFallback", null), u.__decorate([(0, C.enumerable)(true), u.__metadata("design:type", Boolean), u.__metadata("design:paramtypes", [Object])], P.prototype, "collectionItemsWantCollectionDescriptionInfo", null), u.__decorate([(0, C.enumerable)(true), u.__metadata("design:type", Object), u.__metadata("design:paramtypes", [Object])], P.prototype, "builderLanguagesSequenceConfig", null), u.__decorate([(0, C.enumerable)(true), u.__metadata("design:type", Function), u.__metadata("design:paramtypes", [Object])], P.prototype, "customLiteralValidator", null), u.__decorate([(0, C.enumerable)(true), u.__metadata("design:type", String), u.__metadata("design:paramtypes", [Object])], P.prototype, "defaultText", null), u.__decorate([(0, C.enumerable)(true), u.__metadata("design:type", Object), u.__metadata("design:paramtypes", [Object])], P.prototype, "defaultToBuilderId", null), u.__decorate([(0, C.enumerable)(true), u.__metadata("design:type", Boolean), u.__metadata("design:paramtypes", [Object])], P.prototype, "defaultToExpression", null), u.__decorate([(0, C.enumerable)(true), u.__metadata("design:type", Boolean), u.__metadata("design:paramtypes", [Object])], P.prototype, "defaultToNoValue", null), u.__decorate([(0, C.enumerable)(true), u.__metadata("design:type", "function" == typeof (o = void 0 !== E.Scope && E.Scope) ? o : Object), u.__metadata("design:paramtypes", ["function" == typeof (a = void 0 !== E.Scope && E.Scope) ? a : Object])], P.prototype, "defaultVariableScope", null), u.__decorate([(0, C.enumerable)(true), u.__metadata("design:type", Boolean), u.__metadata("design:paramtypes", [Object])], P.prototype, "defaultToVariable", null), u.__decorate([(0, C.enumerable)(true), u.__metadata("design:type", Boolean), u.__metadata("design:paramtypes", [Object])], P.prototype, "doNotTransitionToNoValue", null), u.__decorate([(0, C.enumerable)(true), u.__metadata("design:type", Boolean), u.__metadata("design:paramtypes", [Object])], P.prototype, "doNotTrackUsages", null), u.__decorate([(0, C.enumerable)(true), u.__metadata("design:type", Boolean), u.__metadata("design:paramtypes", [Object])], P.prototype, "emitNonConfigItemForEmptyAndNoDefault", null), u.__decorate([(0, C.enumerable)(true), u.__metadata("design:type", Boolean), u.__metadata("design:paramtypes", [Object])], P.prototype, "exprTextMustBeVarOrVarPropRef", null), u.__decorate([(0, C.enumerable)(true), u.__metadata("design:type", String), u.__metadata("design:paramtypes", [String])], P.prototype, "exprTextRootVariableNameMustBe", null), u.__decorate([(0, C.enumerable)(true), u.__metadata("design:type", Function), u.__metadata("design:paramtypes", [Object])], P.prototype, "initializedForDesignTimeCallback", null), u.__decorate([(0, C.enumerable)(true), u.__metadata("design:type", String), u.__metadata("design:paramtypes", [Object])], P.prototype, "literalValidatorName", null), u.__decorate([(0, C.enumerable)(true), u.__metadata("design:type", Boolean), u.__metadata("design:paramtypes", [Object])], P.prototype, "flowLevelDefaultHasDefault", null), u.__decorate([(0, C.enumerable)(true), u.__metadata("design:type", Boolean), u.__metadata("design:paramtypes", [Object])], P.prototype, "flowLevelDefaultSameModes", null), u.__decorate([(0, C.enumerable)(true), u.__metadata("design:type", Boolean), u.__metadata("design:paramtypes", [Object])], P.prototype, "hideDefaultTextDescription", null), u.__decorate([(0, C.enumerable)(true), u.__metadata("design:type", Boolean), u.__metadata("design:paramtypes", [Boolean])], P.prototype, "allowEmbeddedExpressionsInLiteralMode", null), u.__decorate([(0, C.enumerable)(true), u.__metadata("design:type", Boolean), u.__metadata("design:paramtypes", [Object])], P.prototype, "isInternal", null), u.__decorate([(0, C.enumerable)(true), u.__metadata("design:type", Boolean), u.__metadata("design:paramtypes", [Object])], P.prototype, "isOptional", null), u.__decorate([(0, C.enumerable)(true), u.__metadata("design:type", Boolean), u.__metadata("design:paramtypes", [Object])], P.prototype, "isExpressionPart", null), u.__decorate([(0, C.enumerable)(true), u.__metadata("design:type", Boolean), u.__metadata("design:paramtypes", [Object])], P.prototype, "isFlowLevelDefaultExpression", null), u.__decorate([(0, C.enumerable)(true), u.__metadata("design:type", Boolean), u.__metadata("design:paramtypes", [])], P.prototype, "isFlowLevelInheritingExpression", null), u.__decorate([(0, C.enumerable)(true), u.__metadata("design:type", Boolean), u.__metadata("design:paramtypes", [])], P.prototype, "isNonFlowLevelInheritingExpression", null), u.__decorate([(0, C.enumerable)(true), u.__metadata("design:type", Boolean), u.__metadata("design:paramtypes", [Object])], P.prototype, "noOriginalType", null), u.__decorate([(0, C.enumerable)(true), u.__metadata("design:type", Boolean), u.__metadata("design:paramtypes", [Object])], P.prototype, "readOnly", null), u.__decorate([(0, C.enumerable)(true), u.__metadata("design:type", "function" == typeof (s = void 0 !== T.default && T.default) ? s : Object), u.__metadata("design:paramtypes", ["function" == typeof (l = void 0 !== T.default && T.default) ? l : Object])], P.prototype, "requiredFlowChannelType", null), u.__decorate([(0, C.enumerable)(true), u.__metadata("design:type", Boolean), u.__metadata("design:paramtypes", [Boolean])], P.prototype, "requiresFlowQuickRepliesSetting", null), u.__decorate([(0, C.enumerable)(true), u.__metadata("design:type", Object), u.__metadata("design:paramtypes", [])], P.prototype, "descriptionInfo", null), u.__decorate([(0, C.enumerable)(true), u.__metadata("design:type", String), u.__metadata("design:paramtypes", [Object])], P.prototype, "modeNoValueSelectionLabel", null), u.__decorate([(0, C.enumerable)(true), u.__metadata("design:type", String), u.__metadata("design:paramtypes", [])], P.prototype, "modeNoValueSelectionLabelForContext", null), u.__decorate([(0, C.enumerable)(true), u.__metadata("design:type", Boolean), u.__metadata("design:paramtypes", [Object])], P.prototype, "useDefaultValueNodeIcons", null), u.__decorate([(0, C.enumerable)(true), u.__metadata("design:type", Boolean), u.__metadata("design:paramtypes", [Object])], P.prototype, "usedAsReplacementValueInOtherExpressions", null), u.__decorate([(0, C.enumerable)(true), u.__metadata("design:type", String), u.__metadata("design:paramtypes", [Object])], P.prototype, "extraRealtimeValidationEventSinkName", null), u.__decorate([(0, C.enumerable)(true), u.__metadata("design:type", String), u.__metadata("design:paramtypes", [Object])], P.prototype, "scriptingPropertyName", null), u.__decorate([(0, C.enumerable)(true), u.__metadata("design:type", Object), u.__metadata("design:paramtypes", [Object])], P.prototype, "examples", null), u.__decorate([(0, C.enumerable)(true), u.__metadata("design:type", String), u.__metadata("design:paramtypes", [String])], P.prototype, "labelOverride", null), u.__decorate([(0, C.enumerable)(true), u.__metadata("design:type", String), u.__metadata("design:paramtypes", [String])], P.prototype, "localizedLabelPrefix", null), u.__decorate([(0, C.enumerable)(true), u.__metadata("design:type", Boolean), u.__metadata("design:paramtypes", [Boolean])], P.prototype, "suppressParserValidationMessages", null), u.__decorate([(0, C.enumerable)(true), u.__metadata("design:type", Boolean), u.__metadata("design:paramtypes", [Boolean])], P.prototype, "restrictToFlowGlobalVariables", null), u.__decorate([(0, C.enumerable)(true), u.__metadata("design:type", String), u.__metadata("design:paramtypes", [Object])], P.prototype, "subLabel", null); + }, 19533: function(e2, t2, i2) { + "use strict"; + var n2, r2 = this && this.__extends || (n2 = function(e3, t3) { + return n2 = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(e4, t4) { + e4.__proto__ = t4; + } || function(e4, t4) { + for (var i3 in t4) Object.prototype.hasOwnProperty.call(t4, i3) && (e4[i3] = t4[i3]); + }, n2(e3, t3); + }, function(e3, t3) { + if ("function" != typeof t3 && null !== t3) throw new TypeError("Class extends value " + String(t3) + " is not a constructor or null"); + function i3() { + this.constructor = e3; + } + n2(e3, t3), e3.prototype = null === t3 ? Object.create(t3) : (i3.prototype = t3.prototype, new i3()); + }); + Object.defineProperty(t2, "__esModule", { value: true }), t2.AsyncScheduler = void 0; + var o = i2(65881), a = (function(e3) { + function t3(t4, i3) { + void 0 === i3 && (i3 = o.Scheduler.now); + var n3 = e3.call(this, t4, i3) || this; + return n3.actions = [], n3._active = false, n3; + } + return r2(t3, e3), t3.prototype.flush = function(e4) { + var t4 = this.actions; + if (this._active) t4.push(e4); + else { + var i3; + this._active = true; + do { + if (i3 = e4.execute(e4.state, e4.delay)) break; + } while (e4 = t4.shift()); + if (this._active = false, i3) { + for (; e4 = t4.shift(); ) e4.unsubscribe(); + throw i3; + } + } + }, t3; + })(o.Scheduler); + t2.AsyncScheduler = a; + }, 19563: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importDefault(i2(56549)), o = n2.__importDefault(i2(94225)), a = i2(30801), s = n2.__importDefault(i2(65485)), { formResponseManager: l } = i2(87889), { responseLibraryManager: u } = i2(71528); + class d extends s.default { + constructor(e3) { + super(e3); + } + get _actionTypeId() { + return a.formActionType; + } + get displayTypeName() { + return "ArchActionForm"; + } + get isArchActionForm() { + return true; + } + get libraryName() { + var e3; + return null === (e3 = this._getCoreViewModel().responseLibrary) || void 0 === e3 ? void 0 : e3.name; + } + get formName() { + return this._getCoreViewModel().formName; + } + get formCompletionTimeout() { + return this.coreFactory.createArchWrapper(this._getCoreViewModel().formCompletionTimeout); + } + get formOutputs() { + return this.coreFactory.createArchWrapper(this._getCoreViewModel().outputs); + } + setFormByIdAsync(e3, t3) { + return n2.__awaiter(this, void 0, void 0, function* () { + return this._checkItemIsValidLiteralString(this._infoParm("formId", "setFormByIdAsync"), e3, false), this._checkItemIsValidFunction(this._infoParm("callbackFunction", "setFormByIdAsync"), t3, true), r2.default.findItemByIdAsync(l, e3, "form").then(function(i3) { + return this.logNote("found the form named '" + i3.name + "' by the form Id '" + e3 + "'"), this._coreActionViewModel.form.setValue(i3), o.default.executeCallback(this, "setFormByIdAsync", t3, this); + }.bind(this)); + }); + } + setFormByNameAsync(e3, t3, i3) { + return n2.__awaiter(this, void 0, void 0, function* () { + let n3; + this._checkItemIsValidLiteralString(this._infoParm("formName", "setFormByNameAsync"), e3), this._checkItemIsValidLiteralString(this._infoParm("responseLibraryName", "setFormByNameAsync"), t3, true), this._checkItemIsValidFunction(this._infoParm("callbackFunction", "setFormByNameAsync"), i3, true), (null == t3 ? void 0 : t3.length) && (n3 = (e4) => e4.libraries && e4.libraries.some((e5) => e5.name === t3)); + const a2 = yield r2.default.findItemByValueAsync(l, e3, "form", null, null, n3, { queryPhrase: e3 }); + return this.logNote(`found the response named '${a2.name}' by the form Id '${a2.id}'`), this._getCoreViewModel().form.setValue(a2), o.default.executeCallback(this, "setFormByNameAsync", i3, this); + }); + } + setResponseLibraryByNameAsync(e3, t3) { + return n2.__awaiter(this, void 0, void 0, function* () { + this._checkItemIsValidLiteralString(this._infoParm("responseLibraryName", "setResponseLibraryByNameAsync"), e3, false), this._checkItemIsValidFunction(this._infoParm("callbackFunction", "setResponseLibraryByNameAsync"), t3, true); + const i3 = yield r2.default.findItemByValueAsync(u, e3, "response library", "name"); + return this.logNote(`found the response library named '${i3.name}' by the library Id '${i3.id}'`), this._getCoreViewModel().library.setValue(i3), o.default.executeCallback(this, "setResponseLibraryByNameAsync", t3, this); + }); + } + setResponseLibraryByIdAsync(e3, t3) { + return n2.__awaiter(this, void 0, void 0, function* () { + this._checkItemIsValidLiteralString(this._infoParm("responseLibraryName", "setResponseLibraryByIdAsync"), e3, false), this._checkItemIsValidFunction(this._infoParm("callbackFunction", "setResponseLibraryByIdAsync"), t3, true); + const i3 = yield r2.default.findItemByIdAsync(u, e3, "response library"); + return this.logNote(`found the response library named '${i3.name}' by the library Id '${i3.id}'`), this._getCoreViewModel().library.setValue(i3), o.default.executeCallback(this, "setResponseLibraryByIdAsync", t3, this); + }); + } + } + t2.default = d; + }, 19596: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.DataContract = void 0; + const n2 = i2(31635).__importDefault(i2(92140)), r2 = i2(80295), o = i2(24032), a = i2(43096), s = (0, o.getTopic)("DataContract"); + t2.DataContract = class { + constructor(e3) { + n2.default.isString(e3) && (e3 = this._jsonParse(e3)), this._clone(e3, this), this.autoUnEnumeratePrivateVariables(); + } + get result() { + return this._result; + } + set result(e3) { + this._result = e3; + } + flatten() { + return this._flatten(this); + } + toJSON() { + return this.flatten(); + } + valueOf() { + return this.flatten(); + } + getConfiguration(e3, t3) { + return this; + } + handleError(e3) { + s.errorWithStack(e3, "Ignored Configuration Item"); + } + _flatten(e3) { + const t3 = {}; + for (const i3 in e3) t3[i3] = e3[i3]; + return t3; + } + _clone(e3, t3) { + if (e3 && t3) for (const i3 of Object.getOwnPropertyNames(e3)) t3[i3] = e3[i3]; + } + autoUnEnumeratePrivateVariables() { + const e3 = Object.getOwnPropertyNames(this); + for (const t3 of e3) t3.match(/^_[^_].*$/) && (0, r2.makeUnenumerable)(this, t3); + } + _jsonParse(e3) { + return JSON.parse(e3, this._jsonReviver); + } + _jsonReviver(e3, t3) { + return t3 && t3.__type && n2.default.isFunction(a[t3.__type]) ? new a[t3.__type](t3) : t3; + } + populateFromJSON(e3) { + this._clone(e3, this); + } + pasteReIdOrRename(e3) { + } + pasteResolveOldToNewValues(e3) { + } + reviveArray(e3, t3) { + if (!Array.isArray(e3)) return []; + for (let i3 = 0; i3 < e3.length; i3++) { + const n3 = e3[i3]; + try { + if (!n3) { + e3.splice(i3--, 1); + continue; + } + n3 instanceof (t3 = a[n3.__type] || t3) || (e3[i3] = new t3(n3)); + } catch (t4) { + e3.splice(i3--, 1), this.handleError(t4); + } + } + return e3; + } + reviveArrayToMap(e3, t3) { + return n2.default.chain(e3).map((e4) => { + try { + return this.reviveItem(e4, t3); + } catch (e5) { + this.handleError(e5); + } + }).filter((e4) => e4).groupBy((e4) => { + const i3 = e4[t3.keyProperty || "id"]; + if (!i3) throw new Error(`revived item has no id or keyProperty ${JSON.stringify(e4)}`); + return i3; + }).reduce((e4, i3, r3) => { + let o2, a2 = i3[0]; + if (i3.length > 1) if (n2.default.isFunction(t3.getMasterItemIndexFromDuplicateKeyList)) { + const e5 = t3.getMasterItemIndexFromDuplicateKeyList(i3); + i3[e5] ? (a2 = i3.splice(e5, 1)[0], o2 = i3) : s.error(`Failed to get master item for group of duplicate ids: ${r3}, using first item, ignoring the rest`); + } else s.error(`Unexpected array with duplicate keys: ${r3}, using first item, ignoring the rest`); + return o2 && (t3.duplicateKeyListProperty ? a2[t3.duplicateKeyListProperty] = o2 : s.error(`Throwing away duplicates for key ${r3} because no duplicateKeyCombineProperty found`)), e4[r3] = a2, e4; + }, {}).value(); + } + reviveEnum(e3, t3) { + if (e3 || 0 === e3) return e3 instanceof t3 ? e3 : t3.getInstance(e3); + } + reviveItem(e3, t3) { + let i3; + try { + if (!e3) return; + e3.__type && (t3 = a[e3.__type] || t3), i3 = e3 instanceof t3 ? e3 : new t3(e3); + } catch (e4) { + i3 = void 0, this.handleError(e4); + } + return i3; + } + reviveMap(e3, t3, i3) { + const r3 = {}; + return n2.default.each(e3, (e4, n3) => { + const o2 = this.reviveItem(e4, t3); + i3 && (o2.id = n3), r3[n3] = o2; + }), r3; + } + static registerType() { + a[this.__type] = this; + } + }; + }, 19613: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importStar(i2(36781)), o = n2.__importDefault(i2(5478)), a = n2.__importDefault(i2(85499)), s = i2(21305), l = i2(80428), u = i2(47957); + class d extends o.default { + constructor(e3, t3) { + super(e3.parentFlow, e3); + } + static createCustomJsonProperties() { + return this.createManagedPropertiesFromConfig({ includeInput: true, includeOutput: true }); + } + static get managedProperties() { + return []; + } + static createManagedPropertiesFromConfig(e3) { + const t3 = []; + if (e3.includeInput) { + let i3; + i3 = e3.inputOptionsFactory ? e3.inputOptionsFactory() : s.ExpressionTypeJsonOptions.create((e4) => { + e4.setAsInput().setUiPropertyGroup(u.variable.input).setIsCustomJsonType(true).setUiSingleItemSectionPropertyGroup(true).setHideLabel(true).setIninTestingField("customJsonInput"); + }), t3.push({ label: u.variable.input, property: a.default.CUSTOM_JSON_INPUT, yamlOptions: d.createYamlOptions(a.default.CUSTOM_JSON_INPUT, (e4) => e4.setPropertyName(a.default.CUSTOM_JSON_INPUT).setExportOrder(10)), options: i3, type: l.expressionTypeNames.json, typeOfJsonShouldBeCustom: true }); + } + if (e3.includeOutput) { + let i3; + i3 = e3.outputOptionsFactory ? e3.outputOptionsFactory() : s.ExpressionTypeJsonOptions.create((e4) => { + e4.setAsOutput().setUiPropertyGroup(u.variable.output).setIsCustomJsonType(true).setUiSingleItemSectionPropertyGroup(true).setLabelOverride(u.json.customJson.outputJson).setIninTestingField("customJsonOutput"); + }), t3.push({ label: u.variable.output, property: a.default.CUSTOM_JSON_TABLE_OUTPUT, isOutput: true, yamlOptions: d.createYamlOptions(a.default.CUSTOM_JSON_TABLE_OUTPUT, (e4) => e4.setPropertyName(a.default.CUSTOM_JSON_TABLE_OUTPUT).setExportOrder(20)), options: i3, type: l.expressionTypeNames.json, typeOfJsonShouldBeCustom: true }); + } + return t3; + } + setSelectedActionByViewModel(e3) { + return n2.__awaiter(this, void 0, void 0, function* () { + e3 && (this.selectedItemNetworkProperty.setValue(e3), this.createOrUpdateCustomJsonTypes(), this._updateForItemSelection()); + }); + } + _initializeDesignTime() { + super._initializeDesignTime(), this.setCachedCustomJsonTypesForInputOutput(), this._updateForItemSelection(), this.addAutoCleanedUpEventSinkWatch(r2.valueChanged, this.selectedItemNetworkProperty, () => n2.__awaiter(this, void 0, void 0, function* () { + this._clearInputsAndOutputs(), this.selectedItemNetworkProperty.getItem() && (this.isReadOnly ? this.setCachedCustomJsonTypesForInputOutput() : yield this.createOrUpdateCustomJsonTypes()), this._updateForItemSelection(); + })); + } + _updateForItemSelection() { + const e3 = !!this.selectedItemNetworkProperty.getItem(); + this.input && (this.input.outOfService = !e3 || !this.input.type.isCustomType), this.output && (this.output.outOfService = !e3 || !this.output.type.isCustomType); + } + _clearInputsAndOutputs() { + var e3, t3; + this.inputCustomJsonTypeManager = null, this.outputCustomJsonTypeManager = null, this.input && (null === (e3 = this.input.type.getCustomDataTypeDefinition()) || void 0 === e3 || e3.removeUsage(this.input), this.input.clear(true)), this.output && (null === (t3 = this.output.type.getCustomDataTypeDefinition()) || void 0 === t3 || t3.removeUsage(this.output), this.output.clear(true)), this._updateForItemSelection(); + } + _preDestroy() { + var e3, t3; + super._preDestroy(), this.input && (null === (e3 = this.input.type.getCustomDataTypeDefinition()) || void 0 === e3 || e3.removeUsage(this.input)), this.output && (null === (t3 = this.output.type.getCustomDataTypeDefinition()) || void 0 === t3 || t3.removeUsage(this.output)); + } + } + t2.default = d; + }, 19681: (e2) => { + "use strict"; + e2.exports = { Z_NO_FLUSH: 0, Z_PARTIAL_FLUSH: 1, Z_SYNC_FLUSH: 2, Z_FULL_FLUSH: 3, Z_FINISH: 4, Z_BLOCK: 5, Z_TREES: 6, Z_OK: 0, Z_STREAM_END: 1, Z_NEED_DICT: 2, Z_ERRNO: -1, Z_STREAM_ERROR: -2, Z_DATA_ERROR: -3, Z_BUF_ERROR: -5, Z_NO_COMPRESSION: 0, Z_BEST_SPEED: 1, Z_BEST_COMPRESSION: 9, Z_DEFAULT_COMPRESSION: -1, Z_FILTERED: 1, Z_HUFFMAN_ONLY: 2, Z_RLE: 3, Z_FIXED: 4, Z_DEFAULT_STRATEGY: 0, Z_BINARY: 0, Z_TEXT: 1, Z_UNKNOWN: 2, Z_DEFLATED: 8 }; + }, 19724: function(e2, t2, i2) { + "use strict"; + var n2 = this && this.__awaiter || function(e3, t3, i3, n3) { + return new (i3 || (i3 = Promise))(function(r3, o2) { + function a2(e4) { + try { + l2(n3.next(e4)); + } catch (e5) { + o2(e5); + } + } + function s2(e4) { + try { + l2(n3.throw(e4)); + } catch (e5) { + o2(e5); + } + } + function l2(e4) { + var t4; + e4.done ? r3(e4.value) : (t4 = e4.value, t4 instanceof i3 ? t4 : new i3(function(e5) { + e5(t4); + })).then(a2, s2); + } + l2((n3 = n3.apply(e3, t3 || [])).next()); + }); + }, r2 = this && this.__generator || function(e3, t3) { + var i3, n3, r3, o2, a2 = { label: 0, sent: function() { + if (1 & r3[0]) throw r3[1]; + return r3[1]; + }, trys: [], ops: [] }; + return o2 = { next: s2(0), throw: s2(1), return: s2(2) }, "function" == typeof Symbol && (o2[Symbol.iterator] = function() { + return this; + }), o2; + function s2(o3) { + return function(s3) { + return (function(o4) { + if (i3) throw new TypeError("Generator is already executing."); + for (; a2; ) try { + if (i3 = 1, n3 && (r3 = 2 & o4[0] ? n3.return : o4[0] ? n3.throw || ((r3 = n3.return) && r3.call(n3), 0) : n3.next) && !(r3 = r3.call(n3, o4[1])).done) return r3; + switch (n3 = 0, r3 && (o4 = [2 & o4[0], r3.value]), o4[0]) { + case 0: + case 1: + r3 = o4; + break; + case 4: + return a2.label++, { value: o4[1], done: false }; + case 5: + a2.label++, n3 = o4[1], o4 = [0]; + continue; + case 7: + o4 = a2.ops.pop(), a2.trys.pop(); + continue; + default: + if (!((r3 = (r3 = a2.trys).length > 0 && r3[r3.length - 1]) || 6 !== o4[0] && 2 !== o4[0])) { + a2 = 0; + continue; + } + if (3 === o4[0] && (!r3 || o4[1] > r3[0] && o4[1] < r3[3])) { + a2.label = o4[1]; + break; + } + if (6 === o4[0] && a2.label < r3[1]) { + a2.label = r3[1], r3 = o4; + break; + } + if (r3 && a2.label < r3[2]) { + a2.label = r3[2], a2.ops.push(o4); + break; + } + r3[2] && a2.ops.pop(), a2.trys.pop(); + continue; + } + o4 = t3.call(e3, a2); + } catch (e4) { + o4 = [6, e4], n3 = 0; + } finally { + i3 = r3 = 0; + } + if (5 & o4[0]) throw o4[1]; + return { value: o4[0] ? o4[1] : void 0, done: true }; + })([o3, s3]); + }; + } + }, o = this && this.__asyncValues || function(e3) { + if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); + var t3, i3 = e3[Symbol.asyncIterator]; + return i3 ? i3.call(e3) : (e3 = "function" == typeof a ? a(e3) : e3[Symbol.iterator](), t3 = {}, n3("next"), n3("throw"), n3("return"), t3[Symbol.asyncIterator] = function() { + return this; + }, t3); + function n3(i4) { + t3[i4] = e3[i4] && function(t4) { + return new Promise(function(n4, r3) { + !(function(e4, t5, i5, n5) { + Promise.resolve(n5).then(function(t6) { + e4({ value: t6, done: i5 }); + }, t5); + })(n4, r3, (t4 = e3[i4](t4)).done, t4.value); + }); + }; + } + }, a = this && this.__values || function(e3) { + var t3 = "function" == typeof Symbol && Symbol.iterator, i3 = t3 && e3[t3], n3 = 0; + if (i3) return i3.call(e3); + if (e3 && "number" == typeof e3.length) return { next: function() { + return e3 && n3 >= e3.length && (e3 = void 0), { value: e3 && e3[n3++], done: !e3 }; + } }; + throw new TypeError(t3 ? "Object is not iterable." : "Symbol.iterator is not defined."); + }; + Object.defineProperty(t2, "__esModule", { value: true }), t2.fromReadableStreamLike = t2.fromAsyncIterable = t2.fromIterable = t2.fromPromise = t2.fromArrayLike = t2.fromInteropObservable = t2.innerFrom = void 0; + var s = i2(94975), l = i2(67552), u = i2(48051), d = i2(80629), c = i2(78263), p = i2(86297), _ = i2(12187), h = i2(95462), m = i2(10281), g = i2(32980), f = i2(2884); + function T(e3) { + return new u.Observable(function(t3) { + var i3 = e3[f.observable](); + if (m.isFunction(i3.subscribe)) return i3.subscribe(t3); + throw new TypeError("Provided object does not correctly implement Symbol.observable"); + }); + } + function y(e3) { + return new u.Observable(function(t3) { + for (var i3 = 0; i3 < e3.length && !t3.closed; i3++) t3.next(e3[i3]); + t3.complete(); + }); + } + function S(e3) { + return new u.Observable(function(t3) { + e3.then(function(e4) { + t3.closed || (t3.next(e4), t3.complete()); + }, function(e4) { + return t3.error(e4); + }).then(null, g.reportUnhandledError); + }); + } + function A(e3) { + return new u.Observable(function(t3) { + var i3, n3; + try { + for (var r3 = a(e3), o2 = r3.next(); !o2.done; o2 = r3.next()) { + var s2 = o2.value; + if (t3.next(s2), t3.closed) return; + } + } catch (e4) { + i3 = { error: e4 }; + } finally { + try { + o2 && !o2.done && (n3 = r3.return) && n3.call(r3); + } finally { + if (i3) throw i3.error; + } + } + t3.complete(); + }); + } + function N(e3) { + return new u.Observable(function(t3) { + (function(e4, t4) { + var i3, a2, s2, l2; + return n2(this, void 0, void 0, function() { + var n3, u2; + return r2(this, function(r3) { + switch (r3.label) { + case 0: + r3.trys.push([0, 5, 6, 11]), i3 = o(e4), r3.label = 1; + case 1: + return [4, i3.next()]; + case 2: + if ((a2 = r3.sent()).done) return [3, 4]; + if (n3 = a2.value, t4.next(n3), t4.closed) return [2]; + r3.label = 3; + case 3: + return [3, 1]; + case 4: + return [3, 11]; + case 5: + return u2 = r3.sent(), s2 = { error: u2 }, [3, 11]; + case 6: + return r3.trys.push([6, , 9, 10]), a2 && !a2.done && (l2 = i3.return) ? [4, l2.call(i3)] : [3, 8]; + case 7: + r3.sent(), r3.label = 8; + case 8: + return [3, 10]; + case 9: + if (s2) throw s2.error; + return [7]; + case 10: + return [7]; + case 11: + return t4.complete(), [2]; + } + }); + }); + })(e3, t3).catch(function(e4) { + return t3.error(e4); + }); + }); + } + function O(e3) { + return N(h.readableStreamLikeToAsyncGenerator(e3)); + } + t2.innerFrom = function(e3) { + if (e3 instanceof u.Observable) return e3; + if (null != e3) { + if (d.isInteropObservable(e3)) return T(e3); + if (s.isArrayLike(e3)) return y(e3); + if (l.isPromise(e3)) return S(e3); + if (c.isAsyncIterable(e3)) return N(e3); + if (_.isIterable(e3)) return A(e3); + if (h.isReadableStreamLike(e3)) return O(e3); + } + throw p.createInvalidObservableTypeError(e3); + }, t2.fromInteropObservable = T, t2.fromArrayLike = y, t2.fromPromise = S, t2.fromIterable = A, t2.fromAsyncIterable = N, t2.fromReadableStreamLike = O; + }, 19760: (e2, t2, i2) => { + function n2() { + n2.baseConstructor.apply(this, arguments); + } + i2(52722).extend(n2, "KnowledgeSource"), e2.exports = n2; + }, 19784: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = i2(30801), o = n2.__importDefault(i2(62028)); + class a extends o.default { + constructor(e3) { + super(e3); + } + get _actionTypeId() { + return r2.transferGroupActionType; + } + get displayTypeName() { + return "ArchMenuTransferToGroup"; + } + get actionTransferToGroup() { + return this._archAction; + } + get isArchMenuTransferToGroup() { + return true; + } + } + t2.default = a; + }, 19791: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = i2(30801), o = n2.__importDefault(i2(11210)); + class a extends o.default { + constructor(e3) { + super(e3); + } + get _actionTypeId() { + return r2.exitWorkitemFlowActionType; + } + get displayTypeName() { + return this._scriptingName; + } + get isArchExitWorkitemFlow() { + return true; + } + } + t2.default = a; + }, 19818: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.dematerialize = void 0; + var n2 = i2(31245), r2 = i2(65212), o = i2(17214); + t2.dematerialize = function() { + return r2.operate(function(e3, t3) { + e3.subscribe(o.createOperatorSubscriber(t3, function(e4) { + return n2.observeNotification(e4, t3); + })); + }); + }; + }, 19819: (e2, t2, i2) => { + const n2 = i2(92140), { isoLanguages: r2 } = i2(24812), o = {}; + n2.each(r2, function(e3) { + const t3 = e3.id.replace("-", ""); + o[t3] && console.error("duplicate language property id of " + t3), o[t3] = e3; + }), e2.exports = { propIdLanguages: o }; + }, 19859: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.flowHasUnpublishedWarning = function(e3, t3) { + return !!e3 && (e3.id !== t3.id && (![n2.flowTypes.flowTypeCommonModule, n2.flowTypes.flowTypeDigitalBot, n2.flowTypes.flowTypeBot].includes(e3.type) && (!e3.hasBriefModel && !(e3.versions && e3.versions.publishedVersion || t3.displayName === e3.displayName)))); + }, t2.getUnpublishedWarning = function(e3, t3) { + if (!(e3.versions && e3.versions.publishedVersion || t3.displayName === e3.displayName)) return e3.isInQueueCallFlow ? (0, r2.sprintf)(o.errors.unPublishedFlow, e3.displayName) : (0, r2.sprintf)(o.errors.transferToUnpublishedFlow, e3.displayName); + }; + const n2 = i2(96618), r2 = i2(17604), o = i2(47957); + }, 19886: (e2, t2, i2) => { + const n2 = i2(82149), { callAudioConnectorActionType: r2 } = i2(30801), o = i2(7401), a = i2(42217); + function s() { + Object.defineProperties(this, { _connectorId: { writable: true }, _outputSessionVariables: { writable: true } }), this.integrationId = void 0, this.integrationName = void 0, s.baseConstructor.apply(this, arguments); + } + n2.extend(s, r2, true), Object.defineProperties(s.prototype, { pasteReIdOrRename: { value: function(e3) { + s._super.pasteReIdOrRename.apply(this, arguments), this.connectorId.pasteReIdOrRename(e3); + for (let t3 = 0; t3 < this.outputSessionVariables.length; t3++) this.outputSessionVariables[t3].pasteReIdOrRename(e3); + } }, pasteResolveOldToNewValues: { value: function(e3) { + s._super.pasteResolveOldToNewValues.apply(this, arguments), this.connectorId.pasteResolveOldToNewValues(e3); + for (let t3 = 0; t3 < this.outputSessionVariables.length; t3++) this.outputSessionVariables[t3].pasteResolveOldToNewValues(e3); + } }, outputSessionVariables: { enumerable: true, get: function() { + return this._outputSessionVariables; + }, set: function(e3) { + this._outputSessionVariables = this.reviveArray(e3, a); + } }, connectorId: { enumerable: true, get: function() { + return this._connectorId; + }, set: function(e3) { + this._connectorId = this.reviveItem(e3, o); + } } }), e2.exports = s; + }, 19913: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.concatMapTo = void 0; + var n2 = i2(29512), r2 = i2(10281); + t2.concatMapTo = function(e3, t3) { + return r2.isFunction(t3) ? n2.concatMap(function() { + return e3; + }, t3) : n2.concatMap(function() { + return e3; + }); + }; + }, 19975: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.FlowVersionManager = void 0; + const n2 = i2(31635), r2 = n2.__importDefault(i2(92140)), o = n2.__importStar(i2(18325)), a = i2(55299), s = i2(80295); + class l extends a.BaseClass { + constructor(e3) { + super(), this._inferredVersions = [], (0, s.makeUnenumerable)(this, "flowInfo"), this.flowInfo = e3; + } + get className() { + return "FlowVersionManager"; + } + alreadyLoaded(e3) { + return !(e3 !== this._currentVersionNumber && (this.savedVersion || !this.checkedInVersion || e3 !== o.latest && this._currentVersionNumber !== o.latest || this.checkedInVersion.name !== this._currentVersionNumber && this.checkedInVersion.name !== e3)); + } + convertVersionUrl(e3) { + if (!e3 && !this.checkedInVersion) return o.latest; + if ((e3 = e3 || o.latest) === o.latest) return e3; + const t3 = e3.replace("v", "").replace("-", "."), i3 = this._getVersionNumber(t3); + return r2.default.isNaN(i3) || i3 <= 0 || this.checkedInVersion && this._getVersionNumber(this.checkedInVersion.name) < i3 ? o.latest : i3 + ".0"; + } + get checkedInDisplay() { + return this.checkedInVersion && this.checkedInVersion.name ? this.checkedInVersion.name : ""; + } + get checkedInVersion() { + return this._checkedInVersion; + } + get currentVersionNumber() { + return this.checkedInVersion ? this._currentVersionNumber === o.latest ? this.flowInfo.isLocked && this.flowInfo.currentUserHasLock ? this.nextVersionNumber : this.latestVersionNumber : this._currentVersionNumber || this.checkedInVersion.name : o.ver_1_0; + } + get rawCurrentVersionNumber() { + return this._currentVersionNumber; + } + getInferredVersions() { + if (this._inferredVersions.length > 0) return this._inferredVersions; + const e3 = this._getVersionNumber(this.latestVersionNumber); + let t3; + this.checkedInVersion && this.flowInfo.currentUserHasLock && (t3 = this._createInferredVersion(e3 + 1), t3.isSavedVersion = true, t3.versionId = o.latest, this._inferredVersions.push(t3)); + for (let t4 = e3; t4 >= 1; t4--) this._inferredVersions.push(this._createInferredVersion(t4)); + return !this.checkedInVersion && this.savedVersion && 1 === e3 && (t3 = this._inferredVersions[0], t3.isSavedVersion = true, t3.versionId = o.latest), this._inferredVersions; + } + getVersionNumber(e3) { + return r2.default.find(this.getInferredVersions(), (t3) => t3.displayName === e3); + } + getVersionExtension() { + return "_v" + this.currentVersionNumber.replace(/\./, "-"); + } + get isLatestVersion() { + return !(this._currentVersionNumber || this.savedVersion || this.checkedInVersion || this.publishedVersion) || this._currentVersionNumber === o.latest || this.checkedInVersion && !this.savedVersion && this.checkedInVersion.name === this._currentVersionNumber; + } + get isVersionOne() { + return this.currentVersionNumber === o.ver_1_0; + } + get latestVersion() { + return this.savedVersion ? this.savedVersion : this.checkedInVersion ? this.checkedInVersion : null; + } + get latestVersionNumber() { + const e3 = this.checkedInVersion; + return e3 ? e3.name : o.ver_1_0; + } + loadedConfigurationVersion(e3) { + this._currentVersionNumber = e3, this.flowInfo.resetCurrentUserCanEdit(); + } + get nextVersionNumber() { + const e3 = this.checkedInVersion; + return (this._getVersionNumber(e3 ? e3.name : null) + 1).toString() + ".0"; + } + get publishedDisplay() { + return this.publishedVersion && this.publishedVersion.name ? this.publishedVersion.name : ""; + } + get debugDisplay() { + return this.debugVersion && this.debugVersion.name ? this.debugVersion.name : ""; + } + get debugVersion() { + return this._debugVersion; + } + get publishedVersion() { + return this._publishedVersion; + } + get savedVersion() { + return this._savedVersion; + } + updateInfoVersions(e3, t3, i3, n3) { + this._inferredVersions.length = 0, this._savedVersion = e3, this._checkedInVersion = t3, this._debugVersion = n3, this._publishedVersion = i3; + } + _createInferredVersion(e3) { + return { versionId: "v" + e3 + "-0", displayName: e3 + ".0", isVersionOne: 1 === e3 }; + } + _getVersionNumber(e3, t3) { + let i3 = t3 || 0; + return e3 && (i3 = parseFloat(e3)), i3; + } + } + t2.FlowVersionManager = l; + }, 19980: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.first = void 0; + var n2 = i2(59328), r2 = i2(85934), o = i2(54383), a = i2(58799), s = i2(30632), l = i2(87699); + t2.first = function(e3, t3) { + var i3 = arguments.length >= 2; + return function(u) { + return u.pipe(e3 ? r2.filter(function(t4, i4) { + return e3(t4, i4, u); + }) : l.identity, o.take(1), i3 ? a.defaultIfEmpty(t3) : s.throwIfEmpty(function() { + return new n2.EmptyError(); + })); + }; + }; + }, 20030: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importDefault(i2(92140)), o = n2.__importStar(i2(10798)), a = n2.__importStar(i2(24032)), s = i2(19384), l = n2.__importStar(i2(58380)), u = n2.__importStar(i2(1115)), d = i2(12457), c = i2(4333), p = n2.__importDefault(i2(5730)), _ = i2(47957), h = "id"; + class m extends p.default { + static createManagedProperties(e3) { + const t3 = [{ createDetails: c.ContainerActionProperty.createCreateDetails({ itemDoesNotExistBaseString: _.task.label, modelIdPropName: "taskReference", modelNamePropName: "taskName", noReferenceString: _.task.noReference, referencesTasks: true, validReferenceCallback: e3.validReferenceCallback }), yamlOptions: m.createYamlOptions("containerActionProperty", (e4) => e4.setPropertyName("targetTaskRef")), property: "containerActionProperty" }]; + return e3.inputsFeatureConfigName && !o.isFeatureAvailable(e3.inputsFeatureConfigName) || t3.push({ dataList: true, label: _.inputOutputList.inputs, property: "inputs", yamlOptions: m.createYamlOptions("inputs", (e4) => e4.setPropertyName("taskInputs").setWrapDataPairNameAndValueInTypeString(true)) }), e3.suppressOutputs || t3.push({ dataList: true, isOutput: true, label: _.inputOutputList.outputs, property: "outputs", yamlOptions: m.createYamlOptions("outputs", (e4) => e4.setPropertyName("taskOutputs").setWrapDataPairNameAndValueInString("taskOutput")) }), t3; + } + constructor(e3) { + super(e3.parentFlow, e3), this._removedInputs = {}, this._removedOutputs = {}; + } + updateTraceTopic() { + super.updateTraceTopic(), this._topicIOList = a.getTopic("taskRefIO").withMultipleContext(this.topic.context); + } + getDetails() { + return this.referencedTaskViewModel ? new d.ActionDetails([_.task.label], [this.taskName]) : null; + } + linkTask(e3) { + this.parentFlow.tryRemoveUiMetadataInfo(this, "task", this.taskReference, [this.model.__type], "taskReference", false), e3 && this.parentFlow.setUiMetadataInfo("task", { id: e3.id, name: e3.name }), this.setTask(e3 && e3.id); + } + objEvent_variableAdded(e3, t3) { + let i3 = false; + this.inputs && t3.isInput && !this.inputs.getItem(t3.name) && (this._topicIOList.info(`adding new input variable for ${t3[h]} because of variableAdded event`), this.inputs.addItem(this.inputs.createFromVariable(t3)), i3 = true), this.outputs && t3.isOutput && !this.outputs.getItem(t3.name) && (this._topicIOList.info(`adding new output variable for ${t3[h]} because of variableAdded event`), this.outputs.addItem(this.outputs.createFromVariable(t3)), i3 = true), i3 && u.validateNode(this.topParent, true); + } + objEvent_terminatingStateChanged(e3) { + u.validateNode(this, true); + } + objEvent_variableChanged(e3, t3) { + const i3 = t3.newVariable, n3 = t3.oldVariable.name, r3 = t3.oldVariable._destroyed; + let o2 = false; + if (i3.parentId === this.taskReference) { + if (this.inputs) { + const e4 = this.inputs.getItem(i3.name), t4 = this.inputs.getItem(n3) || this._removedInputs[n3], a2 = t4 ? t4.value : e4 ? e4.value : i3.initValue; + t4 && r3 && (this.inputs.removeChild(t4, true) && (this._topicIOList.info(`removing oldInputItem for ${t4[h]} because of variableChanged event`), o2 = true), delete this._removedInputs[n3]), e4 && this.inputs.removeChild(e4, true) && (this._topicIOList.info(`removing inputItem for ${e4[h]} because of variableChanged event`), o2 = true), i3.isInput ? (this._topicIOList.info(`adding back input variable for ${i3[h]} because of variableChanged event`), this.inputs.addItem(this.inputs.createFromVariable(i3, a2)), o2 = true) : this._topicIOList.warning(`NOT adding back input variable for ${i3[h]} because it isOutput is false`); + } + if (this.outputs) { + const e4 = this.outputs.getItem(i3.name), t4 = this.outputs.getItem(n3) || this._removedOutputs[n3], a2 = t4 ? t4.value : e4 ? e4.value : null; + t4 && r3 && (this.outputs.removeChild(t4, true) && (this._topicIOList.info(`removing oldInputItem for ${t4[h]} because of variableChanged event`), o2 = true), delete this._removedOutputs[n3]), e4 && this.outputs.removeChild(e4, true) && (this._topicIOList.info(`removing outputItem for ${e4[h]} because of variableChanged event`), o2 = true), i3.isOutput ? (this._topicIOList.info(`adding back output variable for ${i3[h]} because of variableChanged event`), this.outputs.addItem(this.outputs.createFromVariable(i3, a2)), o2 = true) : this._topicIOList.warning(`NOT adding back output variable for ${i3[h]} because it isOutput is false`); + } + o2 && u.validateNode(this.topParent, true); + } + } + objEvent_variableRemoved(e3, t3) { + if (this.parent.isDestroyed || this.parentFlow.isDestroyed) return; + let i3 = false; + if (this.inputs) { + const e4 = this.inputs.getItem(t3.name); + e4 && (this._removedInputs[e4.name] = e4, this.inputs.removeChild(e4, true) && (this._topicIOList.info(`removing input for ${e4[h]} because of variableRemoved event`), i3 = true)); + } + if (this.outputs) { + const e4 = this.outputs.getItem(t3.name); + e4 && (this._removedOutputs[e4.name] = e4, this.outputs.removeChild(e4, true) && (this._topicIOList.info(`removing output for ${e4[h]} because of variableRemoved event`), i3 = true)); + } + i3 && u.validateNode(this.topParent, true); + } + get amObjectEventSink() { + return true; + } + get referencedTaskViewModel() { + return this.taskReference ? s.flowElementRegistrationService.getItemById(this.parentFlow, this.taskReference) : null; + } + search(e3) { + super.search(e3); + const t3 = this.referencedTaskViewModel; + t3 && e3.checkText(this, t3.name, _.task.label); + } + setTask(e3) { + let t3; + if (this.initializeDesignTimeCalled && (this.parentFlow.loaded ? this._topicIOList.info(`Setting new task ref: ${e3}, clearing outputs`) : this._topicIOList.error(`Flow not loaded but setting new task ref: ${e3}, clearing outputs`), this.outputs && this.outputs.destroyChildren(), this.inputs && this.inputs.destroyChildren()), e3) if (t3 = r2.default.find(this.parentFlow.tasks, (t4) => t4.id === e3), t3) { + if (this.outputs) { + const e4 = t3.getOutputVariables(); + this._resolveToVariableList(this.outputs, e4, "output"); + } + if (this.inputs) { + const e4 = t3.getInputVariables(); + this._resolveToVariableList(this.inputs, e4, "input"); + } + } else this.initializeDesignTimeCalled ? this.topic.error(`BaseTaskReferenceActionViewModel.setTask - can't find task '${e3}' on parent flow`) : this._topicIOList.warning(`BaseTaskReferenceActionViewModel.setTask - can't find task '${e3}' on parent flow`); + l.changeEventEmitterForEventSink(this, this.taskReference, e3), this.containerActionProperty.setReferenceIdAndName(e3, t3 ? t3.name : null); + } + _resolveToVariableList(e3, t3, i3) { + const n3 = [], o2 = []; + e3.items.forEach((e4) => { + const i4 = e4.name ? e4.name.toLowerCase() : e4.name, a2 = r2.default.find(t3, (t4) => { + const n4 = t4.name ? t4.name.toLowerCase() : t4.name; + return i4 === n4 && e4.type.isMatch(t4.type); + }); + a2 && (n3.push(e4), e4.referenceId = a2.id, o2.push(a2)); + }); + for (let t4 = e3.items.length - 1; t4 >= 0; t4--) { + const o3 = e3.items[t4]; + if (!r2.default.contains(n3, o3)) { + const t5 = `removing ${i3} for ${o3[h]} during _resolveToVariableList`; + this.initializeDesignTimeCalled ? this._topicIOList.info(t5) : this._topicIOList.error("before initialized - " + t5), e3.removeChild(o3); + } + } + r2.default.each(t3, (t4) => { + if (!r2.default.contains(o2, t4)) { + const n4 = `adding ${i3} for variable ${t4[h]} during _resolveToVariableList`; + this.initializeDesignTimeCalled ? this._topicIOList.info(n4) : this._topicIOList.error("before initialized - " + n4), e3.addItem(e3.createFromVariable(t4)); + } + }); + } + _initializeDesignTime() { + if (super._initializeDesignTime(), this.initializeDesignTimeCalled) { + const e3 = `initializeDesignTimeCalled being called a second time for ${this.toString()}`; + return void this.topic.traceOnce("repeat initializeDesignTimeCalled", (t3) => t3.errorWithStack(void 0, e3)); + } + this.setTask(this.taskReference); + } + _preDestroy() { + super._preDestroy(), this.parentFlow.tryRemoveUiMetadataInfo(this, "task", this.taskReference, [this.model.__type], "taskReference", false); + } + } + t2.default = m, m.className = "BaseTaskReferenceActionViewModel"; + }, 20083: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.ExpressionTypeKnowledgeBaseDocumentOptions = void 0; + const n2 = i2(31635), r2 = i2(80295), o = i2(71056), a = i2(55909), s = i2(33951); + class l extends o.ExpressionTypeNetworkObjectOptions { + static create(e3, t3) { + return new this(t3).invokeOptionsCallback(e3); + } + _setFromOptions(e3) { + super._setFromOptions(e3), this._setOptionIfSet(this.setKnowledgeBaseIdCallback, e3._knowledgeBaseIdCallback); + } + constructor(e3) { + super(e3), this._knowledgeBaseIdCallback = (e4) => { + var t3; + return { knowledgeId: null === (t3 = e4.parentFlow.knowledgeSettings) || void 0 === t3 ? void 0 : t3.knowledgeBaseId }; + }, (0, r2.makeUnenumerable)(this, "_knowledgeBaseIdCallback"); + } + get className() { + return "ExpressionTypeKnowledgeBaseDocumentOptions"; + } + get isExpressionTypeKnowledgeBaseDocumentOptions() { + return true; + } + get knowledgeBaseIdCallback() { + return this._knowledgeBaseIdCallback; + } + set knowledgeBaseIdCallback(e3) { + this._knowledgeBaseIdCallback = s.ParameterValidator.expectFunction(e3, () => a.ParameterInfo.createPropertySet(this.className, "knowledgeBaseIdCallback", "value")); + } + setKnowledgeBaseIdCallback(e3) { + return this.knowledgeBaseIdCallback = e3, this; + } + getDependencyTrackingId(e3) { + if (this.knowledgeBaseIdCallback) { + const t3 = this.knowledgeBaseIdCallback(e3); + if ((null == t3 ? void 0 : t3.knowledgeId) && e3.val) return `${t3.knowledgeId}/${e3.val}`; + } + return super.getDependencyTrackingId(e3); + } + } + t2.ExpressionTypeKnowledgeBaseDocumentOptions = l, n2.__decorate([(0, r2.enumerable)(true), n2.__metadata("design:type", Function), n2.__metadata("design:paramtypes", [Object])], l.prototype, "knowledgeBaseIdCallback", null); + }, 20084: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importDefault(i2(92140)), o = n2.__importDefault(i2(33667)), a = n2.__importStar(i2(24032)), s = n2.__importStar(i2(12847)), l = n2.__importStar(i2(17498)), u = i2(71314), d = n2.__importDefault(i2(68460)); + class c extends d.default { + constructor(e3, t3, i3) { + super(e3), this._managedPropertyViewModels = [], this._modelPropertyName = t3, this._modelSettingsClass = i3, this.createTraceTopic(); + } + get modelPropertyName() { + return this._modelPropertyName; + } + createTraceTopic() { + this.className || s.error("missing class name!"), this.traceTopic = a.getTopic(this.className); + } + get isBaseFlowSettingsViewModel() { + return true; + } + get managedPropertyViewModels() { + const e3 = []; + return Object.values(this._managedPropertyViewModels).forEach((t3) => { + t3.isExpressionList ? e3.push(...t3.items) : e3.push(t3); + }), e3; + } + createModelConfigSection(e3) { + this._modelPropertyName && (e3[this._modelPropertyName] || (e3[this._modelPropertyName] = new this._modelSettingsClass())); + } + getConfiguration(e3, t3) { + if (!this._modelPropertyName) return; + if (null == t3 ? void 0 : t3.isForFlowYaml) { + const i4 = {}; + return Object.entries(this._managedPropertyViewModels).forEach(([n3, o2]) => { + var a2; + const s2 = (null === (a2 = o2.metaData) || void 0 === a2 ? void 0 : a2.yamlOptions) || o2.yamlOptions; + if (null == s2 ? void 0 : s2.skipProperty) return; + const l2 = o2.getConfiguration(e3, t3, s2); + if (!r2.default.isNullOrUndefined(o2)) { + if (r2.default.isObject(l2)) { + const e4 = o2.propertyName || (null == s2 ? void 0 : s2.propertyName); + i4[e4] = l2; + } else if (r2.default.isString(l2) && o2.isContainerActionProperty) { + const e4 = o2.propertyName || (null == s2 ? void 0 : s2.propertyName); + (null == s2 ? void 0 : s2.wrappedObjectName) ? i4[s2.wrappedObjectName] = r2.default.tryWrapObject(l2, e4) : i4[e4] = l2; + } + } + }), i4; + } + this.createModelConfigSection(e3); + const i3 = e3[this._modelPropertyName]; + Object.entries(this._managedPropertyViewModels).forEach(([e4, n3]) => { + i3[n3.modelPropertyName || e4] = n3.getConfiguration(i3, t3); + }), Object.entries(this.uiMetaData).length && (i3.uiMetaData = Object.assign({}, this.uiMetaData)); + } + loadConfiguration(e3) { + this.createModelConfigSection(e3), this.model = e3[this._modelPropertyName], (0, u.getManagedProperties)(this).forEach((e4) => { + var t3; + const i3 = (0, o.default)(this, e4); + this._managedPropertyViewModels[e4.property] = i3, !e4.yamlOptions || i3.yamlOptions || (null === (t3 = i3.metaData) || void 0 === t3 ? void 0 : t3.yamlOptions) || (i3.yamlOptions = e4.yamlOptions), l.registerExpression(i3); + }); + } + updateDependencies() { + super.updateDependencies(), Object.values(this._managedPropertyViewModels).forEach((e3) => { + r2.default.isFunction(e3.updateDependencies) && e3.updateDependencies(), e3.isNormalExpression && l.registerExpression(e3); + }); + } + _initializeDesignTime() { + this.currentUiVersion && (!this.hasSavedUiVersion || this.currentUiVersion > this.savedUiVersion) && !this.parentFlow.isReadOnly && (this.traceTopic.info(`upgrading uiVersion from version: ${this.savedUiVersion} to version:${this.currentUiVersion}`), this.updateConfiguration(this.savedUiVersion, this.currentUiVersion), this.savedUiVersion = this.currentUiVersion), super._initializeDesignTime(), Object.values(this._managedPropertyViewModels).forEach((e3) => e3.initializeDesignTime()); + } + search(e3) { + Object.values(this._managedPropertyViewModels).forEach((t3) => e3.addToQueue(t3)); + } + validate(e3) { + super.validate(e3), Object.values(this._managedPropertyViewModels).forEach((t3) => t3.validate(e3)); + } + _destroy() { + super._destroy(), Object.values(this._managedPropertyViewModels).forEach((e3) => e3.destroy()), this._managedPropertyViewModels.length = 0; + } + setNewInstanceDefaults() { + } + get uiMetaData() { + if (this.model) return this.model.uiMetaData || (this.model.uiMetaData = {}), this.model.uiMetaData; + } + get currentUiVersion() { + } + get hasSavedUiVersion() { + return !r2.default.isUndefined(this.uiMetaData.currentUiVersion); + } + get savedUiVersion() { + return this.uiMetaData.currentUiVersion; + } + set savedUiVersion(e3) { + this.uiMetaData.currentUiVersion = e3; + } + updateConfiguration(e3, t3) { + } + get nodeId() { + return this.id; + } + } + t2.default = c; + }, 20100: (e2, t2, i2) => { + "use strict"; + const n2 = i2(31635), r2 = n2.__importStar(i2(63352)), o = i2(14394), a = i2(36128), s = n2.__importDefault(i2(27203)), l = i2(32678), u = n2.__importStar(i2(1115)), d = i2(12179), c = n2.__importDefault(i2(97891)), p = i2(28803), _ = n2.__importDefault(i2(92566)), h = i2(51294), m = i2(47957); + class g extends _.default { + get botRunnableNetworkGetCall() { + return h.getCxAgent; + } + addLiveAgentHandoffMetadataOutput() { + const e3 = this.liveAgentHandoffMetadata.add(null, o.globalTypes.string); + return e3.expression.mode = r2.variable, e3.expression.setAsOutput(), u.validateAction(this, true, true), e3.id; + } + static get branchInfo() { + return s.default.successFailure; + } + get doesNotSupportIntents() { + return true; + } + get environmentName() { + return this.model.environmentName; + } + set environmentName(e3) { + this.model.environmentName = e3; + } + get isDialogflowCxAction() { + return true; + } + static get managedProperties() { + return [{ property: "liveAgentHandoffMetadata", namedItems: true, isOutput: true, options: a.NameValuePairsOptions.create((e3) => e3.setAllowLiteralModeOnlyOnName(true).setNameLabel(m.dialogflow.sessionKeyLabel).setValueLabel(m.getAttributes.variableLabel)), yamlOptions: _.default.createYamlOptions("liveAgentHandoffMetadata", (e3) => e3.setWrappedCollectionItemName("liveAgentHandoffMetadataOutput").setNameValuePairShouldUseVariableProperty(true).setExportOrder(7)) }, { property: "bot", createDetails: p.NetworkBasedActionProperty.createCreateDetails("botId", "botName", l.dialogflowCxAgentManager, m.dialogflowCx.mustSelectCxAgent, m.dialogflowCx.cxAgentNotFound, null), skipNetworkPropertyDependencyUpdate: true, yamlOptions: g.createYamlOptions("bot", (e3) => e3.setSkipProperty(true)) }, { property: "outputSessionVariables", namedItems: true, isOutput: true, options: a.NameValuePairsOptions.create((e3) => e3.setAllowLiteralModeOnlyOnName(true).setNameLabel(m.dialogflow.sessionKeyLabel).setValueLabel(m.getAttributes.variableLabel)), yamlOptions: g.createYamlOptions("outputSessionVariables", (e3) => e3.setPropertyName("outputSessionParameters").setWrappedCollectionItemName("outputSessionParameter").setNameValuePairShouldUseVariableProperty(true).setExportOrder(6)) }, { label: m.dialogflow.sessionLabel, property: "sessionVariables", namedItems: true, isOutput: false, options: a.NameValuePairsOptions.create((e3) => e3.setAllowLiteralModeOnlyOnName(true).setNameLabel(m.dialogflow.sessionKeyLabel).setValueLabel(m.updateVariables.variableValue)), yamlOptions: g.createYamlOptions("sessionVariables", (e3) => e3.setPropertyName("sessionParameters").setWrappedCollectionItemName("sessionParameter").setExportOrder(5)) }]; + } + setEnvironment(e3) { + super.setEnvironment(e3), this.environmentName = null == e3 ? void 0 : e3.name; + } + updateBotRunnablePropertyDependency() { + (this.botRunnableProperty.nameValue || this.botRunnableProperty.idValue) && this.botRunnableManager.registerConsumer(this, this.botRunnableProperty.nameValue, this.getDependencyTrackingId(), { environments: this.environmentId }); + } + } + g.info = c.default.createActionInfo({ actionClass: g, canBeInTask: true, helpTopic: d.helpTopics.actions.dialogflowCx, modelClass: i2(56716), name: m.actions.dialogflowCx, scriptingName: "ArchActionCallDialogflowCxBot" }), t2.A = g; + }, 20125: (e2, t2, i2) => { + function n2() { + this.id = void 0, this.state = void 0, n2.baseConstructor.apply(this, arguments); + } + i2(45214).extend(n2, "NuanceMixBotJob"), e2.exports = n2; + }, 20236: (e2, t2, i2) => { + const n2 = i2(45214), r2 = i2(7401); + function o() { + Object.defineProperties(this, { _holdMusic: { writable: true } }), o.baseConstructor.apply(this, arguments); + } + n2.extend(o, "InQueueCallFlowSettings"), Object.defineProperties(o.prototype, { holdMusic: { enumerable: true, get: function() { + return this._holdMusic; + }, set: function(e3) { + this._holdMusic = this.reviveItem(e3, r2); + } } }), e2.exports = o; + }, 20254: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(20692)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "languageSkillCollection"; + } + get displayTypeName() { + return "ArchVariableLanguageSkillCollection"; + } + get initialValue() { + return this._initialValue; + } + get isArchVariableLanguageSkillCollection() { + return true; + } + } + t2.default = r2; + }, 20275: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(20692)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "assignedCustomerIntentCollection"; + } + get displayTypeName() { + return "ArchVariableAssignedCustomerIntentCollection"; + } + get initialValue() { + return this._initialValue; + } + get isArchVariableAssignedCustomerIntentCollection() { + return true; + } + } + t2.default = r2; + }, 20374: (e2, t2, i2) => { + const n2 = i2(45214), r2 = i2(7401); + function o() { + Object.defineProperties(this, { _contactList: { writable: true }, _defaultWrapupCode: { writable: true } }), o.baseConstructor.apply(this, arguments); + } + n2.extend(o, "OutboundCallSettings"), Object.defineProperties(o.prototype, { pasteReIdOrRename: { value: function(e3) { + o._super.pasteReIdOrRename.apply(this, arguments), this.contactList.pasteReIdOrRename(e3), this.defaultWrapupCode.pasteReIdOrRename(e3); + } }, pasteResolveOldToNewValues: { value: function(e3) { + o._super.pasteReIdOrRename.apply(this, arguments), this.contactList.pasteResolveOldToNewValues(e3), this.defaultWrapupCode.pasteResolveOldToNewValues(e3); + } }, contactList: { enumerable: true, get: function() { + return this._contactList; + }, set: function(e3) { + this._contactList = this.reviveItem(e3, r2); + } }, defaultWrapupCode: { enumerable: true, get: function() { + return this._defaultWrapupCode; + }, set: function(e3) { + this._defaultWrapupCode = this.reviveItem(e3, r2); + } } }), e2.exports = o; + }, 20391: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.getDisplayInfoForComponent = function(e3) { + var t3, i3; + switch (e3.formComponentType) { + case "ListPicker": { + const o = null === (i3 = null === (t3 = e3.listPicker.sections) || void 0 === t3 ? void 0 : t3[0]) || void 0 === i3 ? void 0 : i3.multipleSelection; + return { id: e3.listPicker.id, displayName: o ? r2.form.formActionListPickerMultiSelect : r2.form.formActionListPickerSingle, type: o ? n2.globalTypes.stringCollection : n2.globalTypes.string }; + } + case "WheelPicker": + return { id: e3.wheelPicker.id, displayName: r2.form.formActionListPickerSingle, type: n2.globalTypes.string }; + case "Input": + return { id: e3.input.id, displayName: r2.form.formActionInput, type: n2.globalTypes.string }; + case "DatePicker": + return { id: e3.datePicker.id, displayName: r2.form.formActionDatePicker, type: n2.globalTypes.date }; + } + }; + const n2 = i2(14394), r2 = i2(47957); + }, 20403: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(93523)), r2 = i2(30801); + class o extends n2.default { + constructor(e3) { + super(e3); + } + get _actionTypeId() { + return r2.findQueueByIdActionType; + } + get displayTypeName() { + return this._scriptingName; + } + get isArchActionFindQueueById() { + return true; + } + get findResult() { + return this._findResult; + } + } + t2.default = o; + }, 20407: (e2, t2, i2) => { + "use strict"; + const n2 = i2(31635), r2 = i2(12179), o = i2(12457), a = n2.__importDefault(i2(5730)), s = i2(26954), l = n2.__importDefault(i2(97891)), u = i2(80428), d = i2(47957); + class c extends a.default { + constructor(e3, t3) { + super(e3.parentFlow, e3), this.user = null, this._loadModel(t3); + } + getDetails() { + var e3; + return (null === (e3 = this.user) || void 0 === e3 ? void 0 : e3.isLiteralMode) && this.user.text ? new o.ActionDetails([d.user.label], [this.user.text]) : super.getDetails(); + } + static get managedProperties() { + return [{ label: d.user.label, options: s.ExpressionTypeUserOptions.create((e3) => e3.setUiPropertyOrder(10).setIninTestingField("userTransferExpression")), yamlOptions: c.createYamlOptions("user", (e3) => e3.setPropertyName("targetUser").setExportOrder(20)), property: "user", type: u.expressionTypeNames.userQueue }]; + } + } + c.info = l.default.createActionInfo({ actionClass: c, canBeInTask: true, helpTopic: r2.helpTopics.actions.playUserGreeting, modelClass: i2(71507), name: d.actions.playUserGreeting, scriptingName: "ArchActionPlayUserGreeting" }), t2.A = c; + }, 20450: (e2, t2, i2) => { + const n2 = i2(92140), r2 = i2(93476), o = i2(91625), a = i2(95812), { digitalMenuActionType: s } = i2(30801), l = i2(7401); + function u() { + Object.defineProperties(this, { _choices: { writable: true }, _chooser: { writable: true }, _customizeNoMatch: { writable: true }, _knowledgeSearchResult: { writable: true }, _noMatches: { writable: true }, _noMatchReprompts: { writable: true }, _paths: { writable: true }, _selection: { writable: true } }), u.baseConstructor.apply(this, arguments), this.paths || (this.paths = []); + } + o.extend(u, s, true), Object.defineProperties(u.prototype, { pasteResolveOldToNewValues: { value: function(e3) { + u._super.pasteResolveOldToNewValues.apply(this, arguments), n2.each(this.choices, (t3) => { + t3.pasteResolveOldToNewValues(e3); + }), n2.each(this.paths, (t3) => { + t3.pasteResolveOldToNewValues(e3); + }), this.chooser?.pasteResolveOldToNewValues(e3), this.noMatches && this.noMatches.forEach((t3) => t3.pasteResolveOldToNewValues(e3)), this.customizeNoMatch && this.customizeNoMatch.pasteResolveOldToNewValues(e3), this.noMatchReprompts && this.noMatchReprompts.pasteResolveOldToNewValues(e3); + } }, pasteReIdOrRename: { value: function(e3) { + u._super.pasteReIdOrRename.apply(this, arguments), n2.each(this.choices, (t3) => { + t3.pasteReIdOrRename(e3); + }), n2.each(this.paths, (t3) => { + t3.pasteReIdOrRename(e3); + }), this.chooser?.pasteReIdOrRename(e3), this.noMatches && this.noMatches.forEach((t3) => t3.pasteReIdOrRename(e3)), this.customizeNoMatch && this.customizeNoMatch.pasteReIdOrRename(e3), this.noMatchReprompts && this.noMatchReprompts.pasteReIdOrRename(e3); + } }, choices: { enumerable: true, get: function() { + return this._choices; + }, set: function(e3) { + this._choices = this.reviveArray(e3, a); + } }, chooser: { enumerable: true, get: function() { + return this._chooser; + }, set: function(e3) { + this._chooser = this.reviveItem(e3, l); + } }, noMatch: { enumerable: false, get: function() { + return this.noMatches && this.noMatches[0]; + }, set: function(e3) { + this.noMatches = [e3]; + } }, noMatches: { enumerable: true, get: function() { + return this._noMatches; + }, set: function(e3) { + this._noMatches = this.reviveArray(e3, l); + } }, customizeNoMatch: { enumerable: true, get: function() { + return this._customizeNoMatch; + }, set: function(e3) { + this._customizeNoMatch = this.reviveItem(e3, l); + } }, noMatchReprompts: { enumerable: true, get: function() { + return this._noMatchReprompts; + }, set: function(e3) { + this._noMatchReprompts = this.reviveItem(e3, l); + } }, paths: { enumerable: true, get: function() { + return this._paths; + }, set: function(e3) { + this._paths = this.reviveArray(e3, r2); + } }, selection: { enumerable: true, get: function() { + return this._selection; + }, set: function(e3) { + this._selection = this.reviveItem(e3, l); + } }, knowledgeSearchResult: { enumerable: true, get: function() { + return this._knowledgeSearchResult; + }, set: function(e3) { + this._knowledgeSearchResult = this.reviveItem(e3, l); + } } }), e2.exports = u; + }, 20498: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(81574)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "assignedCustomerSegment"; + } + get displayTypeName() { + return "ArchValueAssignedCustomerSegment"; + } + get name() { + var e3; + return null === (e3 = this._getAssignableProperty("customerSegment")) || void 0 === e3 ? void 0 : e3.name; + } + get isArchValueAssignedCustomerSegment() { + return true; + } + } + t2.default = r2; + }, 20549: (e2, t2, i2) => { + "use strict"; + const n2 = i2(31635), r2 = i2(96618), o = n2.__importDefault(i2(92140)), a = n2.__importDefault(i2(73198)), s = n2.__importStar(i2(63824)), l = n2.__importStar(i2(80911)), u = n2.__importDefault(i2(51499)), d = i2(79467), c = i2(81516), p = i2(99469), _ = i2(36128), h = n2.__importDefault(i2(27203)), m = i2(99835), g = i2(96950), f = i2(25130), T = n2.__importStar(i2(17498)), y = n2.__importStar(i2(10798)), S = n2.__importDefault(i2(4648)), A = i2(12179), N = n2.__importDefault(i2(97891)), O = i2(28803), I = n2.__importDefault(i2(88391)), v = i2(80428), C = i2(27862), b = i2(47957); + class E extends I.default { + constructor(e3, t3) { + super(e3, t3); + } + get botRunnableProperty() { + return this.botVersion; + } + get botCategoryProperty() { + return this.bot; + } + get botIntegrationProperty() { + return this.botIntegration; + } + static get branchInfo() { + return [h.default.failure]; + } + get botRunnableNetworkGetCall() { + return l.getBotConnectorBotVersion; + } + get isBotConnectorAction() { + return true; + } + static get managedProperties() { + return [{ dataList: true, isOutput: true, property: "errorBindings", yamlOptions: E.createYamlOptions("errorBindings", (e3) => e3.setPropertyName("failureOutputs")) }, { property: "botVersion", skipNetworkPropertyDependencyUpdate: true, createDetails: O.NetworkBasedActionProperty.createCreateDetails("versionId", "versionName", f.botConnectorVersionManager, b.botConnector.mustSelectBotVersion, b.botConnector.botVersionNotFound, "bot"), yamlOptions: E.createYamlOptions("botVersion", (e3) => e3.setSkipProperty(true)) }, { property: "bot", skipNetworkPropertyDependencyUpdate: true, createDetails: O.NetworkBasedActionProperty.createCreateDetails("botId", "botName", g.botConnectorManager, b.botConnector.mustSelectBotName, b.botConnector.botNameNotFound, "botIntegration"), yamlOptions: E.createYamlOptions("bot", (e3) => e3.setSkipProperty(true)) }, { property: "botIntegration", skipNetworkPropertyDependencyUpdate: true, createDetails: O.NetworkBasedActionProperty.createCreateDetails("botIntegrationId", "botIntegrationName", m.botConnectorIntegrationManager, b.botConnector.mustSelectBotIntegration, b.botConnector.botIntegrationNotFound, null), yamlOptions: E.createYamlOptions("botIntegration", (e3) => e3.setSkipProperty(true)) }, { property: "outputs", dataPairListCollection: true, isOutput: true, options: p.ManagedPropertyOptions.create((e3) => e3.setIsOptional(true)), yamlOptions: E.createYamlOptions("outputs", (e3) => e3.setPropertyName("intents")) }, { label: b.bot.followupResponseTimeoutLabel, type: v.expressionTypeNames.duration, options: d.ExpressionTypeDurationOptions.create((e3) => e3.setDefaultText(a.default.litDurationTwelveHours).setDescriptionInfo(b.bot.followupResponseTimeoutLabel, b.bot.followupResponseTimeoutDescription).setDurationStyle(s.durationStyles.fullDuration).setIninTestingField("followupResponseTimeoutExpression").facets.setMinDur(0, true)), yamlOptions: E.createYamlOptions("followupResponseTimeout", (e3) => e3.setExportOrder(2)), property: "followupResponseTimeout" }, { property: "sessionVariables", namedItems: true, isOutput: false, options: _.NameValuePairsOptions.create((e3) => e3.setNameLabel(b.updateVariables.variableName).setValueLabel(b.updateVariables.variableValue).setAllowLiteralModeOnlyOnName(true)), yamlOptions: E.createYamlOptions("sessionVariables", (e3) => e3.setWrappedCollectionItemName("sessionVariable").setExportOrder(3)) }, { property: "outputSessionVariables", namedItems: true, isOutput: true, options: _.NameValuePairsOptions.create((e3) => e3.setAllowLiteralModeOnlyOnName(true).setNameLabel(b.updateVariables.variableName).setValueLabel(b.getAttributes.variableLabel)), yamlOptions: E.createYamlOptions("outputSessionVariables", (e3) => e3.setWrappedCollectionItemName("outputSessionVariable").setNameValuePairShouldUseVariableProperty(true).setExportOrder(4)) }, { label: b.botConnector.inputTextLabel, type: v.expressionTypeNames.string, options: c.ExpressionTypeStringOptions.create((e3) => e3.setDescriptionInfo(b.botConnector.inputTextLabel, b.botConnector.inputTextDescription).setIninTestingField("inputTextExpression").setIsOptional(true)), optionsForSpecificFlowTypes: [{ flowTypes: [r2.flowTypes.flowTypeInboundShortMessage, r2.flowTypes.flowTypeInQueueShortMessage], options: c.ExpressionTypeStringOptions.create((e3) => e3.setDefaultText(a.default.messageBodyVariable).setDefaultToExpression(true).setIninTestingField("inputTextExpression").setIsOptional(y.isFeatureAvailable(S.default.autoStartConversations)).setDoNotTransitionToNoValue(true)) }], yamlOptions: E.createYamlOptions("inputText", (e3) => e3.setExportOrder(1)), property: "inputText" }]; + } + getDependencyTrackingId() { + return this.botCompositeTag; + } + getUniqueBotCategoryId() { + return this.botIntegration.idValue && this.bot.idValue ? `${this.botIntegration.idValue}:${this.bot.idValue}` : null; + } + getUniqueBotRunnableId() { + return this.botIntegration.idValue && this.bot.idValue && this.botVersion.idValue ? `${this.getUniqueBotCategoryId()}:${this.botVersion.idValue}` : null; + } + get botCompositeTag() { + return this.model.botCompositeTag; + } + set botCompositeTag(e3) { + this.model.botCompositeTag = e3; + } + updateBotCategoryPropertyDependency() { + } + updateBotRunnablePropertyDependency() { + var e3; + const t3 = this.botRunnableProperty.nameValue || this.botRunnableProperty.idValue; + (null === (e3 = this.botCategoryProperty) || void 0 === e3 ? void 0 : e3.nameValue) && this.botCategoryProperty.idValue && t3 && T.registerConsumer(this, b.botConnector.botName, this.botCategoryProperty.nameValue, this.getDependencyTrackingId(), t3, C.BotConnectorBot); + } + postProcessYamlConfig(e3, t3, i3) { + if (this.botRunnableProperty.idValue || this.removeYamlExportPropsThatRequireRunnable(e3), !this.botIntegration.nameValue) return; + e3.botIntegration = {}; + const n3 = e3.botIntegration[this.botIntegration.nameValue] = {}; + if (!this.botName) return void o.default.ensureYamlNoneTrue(n3); + const r3 = n3[this.botName] = {}; + if (!this.versionName) return void o.default.ensureYamlNoneTrue(r3); + const a2 = r3[this.versionName] = {}; + this.commonBotPostProcessYamlConfig(e3, a2); + } + getAdditionalParams() { + return new u.default(this.botRunnableManager, { additionalParams: { integrationId: this.botIntegrationProperty.idValue, botId: this.botCategoryProperty.idValue } }); + } + get supportsInputsOutputs() { + return true; + } + _setBotCategoryProperties(e3) { + e3 && (this.botCategoryProperty.nameValue = e3.botName, this.botCategoryProperty.idValue = e3.botId); + } + _setBotIntegrationProperties(e3) { + e3 && (this.botIntegrationProperty.idValue = e3.integrationId); + } + setBotCategoryByViewModel(e3) { + super.setBotCategoryByViewModel(e3); + const t3 = this.botIntegrationProperty.configListManager, i3 = this.botCategoryProperty.configListManager; + this.botIntegrationProperty && this.botIntegrationProperty.idValue && T.unRegisterConsumer(this, t3.dependencyContext), this.botCompositeTag = e3 ? e3.botCompositeTag : "", this._setBotIntegrationProperties(e3), this.botCategoryProperty.idValue && i3.addItemToFlowMetadata(this, null, this.botCategoryProperty.idValue); + } + get yamlNoBotRunnablePropName() { + return "noBotIntegration"; + } + } + E.info = N.default.createActionInfo({ actionClass: E, canBeInTask: true, canBeTreeNode: false, helpTopic: A.helpTopics.actions.botConnector, modelClass: i2(16369), name: b.actions.botConnector, scriptingName: "ArchActionCallBotConnector" }), t2.A = E; + }, 20557: (e2, t2, i2) => { + function n2() { + n2.baseConstructor.apply(this, arguments); + } + i2(74817).extend(n2, "ClipboardManifestItemMenuModel", true), e2.exports = n2; + }, 20611: (e2, t2, i2) => { + const n2 = i2(28730), { endTaskActionType: r2 } = i2(30801); + function o() { + this.pathReference = void 0, this.pathName = void 0, o.baseConstructor.apply(this, arguments); + } + n2.extend(o, r2, true), Object.defineProperties(o.prototype, { pasteResolveOldToNewValues: { value: function(e3) { + o._super.pasteResolveOldToNewValues.apply(this, arguments), this.pathReference = e3.pasteResolveOldIdToNewId(this.pathReference); + } } }), e2.exports = o; + }, 20650: (e2) => { + e2.exports = { expression: { AR_CT_AUDIO: "Audio", AR_CT_DSC_AUDIO: "Contains non type casting Audio functions.", AR_CT_CAST: "Type Cast", AR_CT_DSC_CAST: "Contains functions that cast values from one type to another type.", AR_CT_COMPARISON: "Comparison", AR_CT_DSC_COMPARISON: "Contains operators and functions that compare values.", AR_CT_COMPLEX: "Complex", AR_CT_DSC_COMPLEX: "Contains generic complex value related functions.", AR_CT_DTM: "DateTime", AR_CT_DSC_DTM: "Contains DateTime related functions.", AR_CT_EMAIL: "Email", AR_CT_DSC_EMAIL: "Contains Email related functions.", AR_CT_FINANCIAL: "Financial", AR_CT_DSC_FINANCIAL: "Contains financial related functions.", AR_CT_LIST: "List", AR_CT_DSC_LIST: "Contains functions applicable to collections.", AR_CT_LOGICAL: "Logical", AR_CT_DSC_LOGICAL: "Contains logical functions like And, Or and If.", AR_CT_LANGUAGE: "Language", AR_CT_DSC_LANGUAGE: "Contains language related functions.", AR_CT_JSON: "JSON", AR_CT_DSC_JSON: "Contains JSON related functions.", AR_CT_MATHEMATICAL: "Mathematical", AR_CT_DSC_MATHEMATICAL: "Contains mathematical functions like Round, Sum, mathematical operators including bitwise operators.", AR_CT_OPERATORS: "Operators", AR_CT_DSC_OPERATORS: "Contains equality, comparison, math and unary operators.", AR_CT_PROMPT: "Prompt", AR_CT_DSC_PROMPT: "Contains Prompt related functions.", AR_CT_SEARCH: "Search", AR_CT_DSC_SEARCH: "Contains search functions that allow for lookups.", AR_CT_STATISTICAL: "Statistical", AR_CT_DSC_STATISTICAL: "Contains statistical functions like Average.", AR_CT_SURVEY: "Survey", AR_CT_DSC_SURVEY: "Contains voice survey related functions.", AR_CT_TEXT: "Text", AR_CT_DSC_TEXT: "Contains functions that work with strings.", AR_CT_UNARY: "Unary", AR_CT_DSC_UNARY: "Contains negation and Boolean not operators." } }; + }, 20692: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(31824)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get displayTypeName() { + return "ArchBaseVariableCollection"; + } + setInitialValueEmptyCollection() { + this.initialValue.setNoValue(); + } + } + t2.default = r2; + }, 20695: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(81574)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "journeyOutcome"; + } + get id() { + } + get description() { + } + get displayName() { + } + get version() { + } + get createdDateUtc() { + } + get modifiedDateUtc() { + } + get isActive() { + } + get displayTypeName() { + return "ArchValueJourneyOutcome"; + } + get isArchValueJourneyOutcome() { + return true; + } + } + t2.default = r2; + }, 20730: (e2, t2, i2) => { + const n2 = i2(10438); + function r2() { + r2.baseConstructor.apply(this, arguments); + } + i2(22124).extend(r2, "LexV2AliasList"), Object.defineProperties(r2.prototype, { entities: { enumerable: true, get: function() { + return this._entities; + }, set: function(e3) { + this._entities = this.reviveArray(e3, n2); + } } }), e2.exports = r2; + }, 20812: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(37873)); + class r2 extends n2.default { + constructor(e3) { + super(e3), e3.defaultAbortMessage && (this._defaultAbortMessage = this.coreFactory.createArchWrapper(e3.defaultAbortMessage)); + } + get displayTypeName() { + return "ArchSettingsEmailSendFlow"; + } + get isArchSettingsEmailSendFlow() { + return true; + } + get defaultAbortMessage() { + return this._defaultAbortMessage; + } + } + t2.default = r2; + }, 20815: (e2, t2, i2) => { + "use strict"; + var n2, r2; + Object.defineProperty(t2, "__esModule", { value: true }), t2.EvaluateSkillExpressionFiltersActionModel = void 0; + const o = i2(31635), a = i2(5894), s = i2(30801), l = i2(80295), u = i2(80295), d = o.__importDefault(i2(7401)); + class c extends a.BaseFailureOutputsActionModel { + constructor(e3) { + super(e3), this.__type = c.__type, (0, u.makeUnenumerable)(this, "_skillExpressionFilters"), (0, u.makeUnenumerable)(this, "_skillExpressionFiltersResult"); + } + pasteReIdOrRename(e3) { + var t3, i3; + super.pasteReIdOrRename(e3), null === (t3 = this.skillExpressionFilters) || void 0 === t3 || t3.pasteReIdOrRename(e3), null === (i3 = this.skillExpressionFiltersResult) || void 0 === i3 || i3.pasteReIdOrRename(e3); + } + pasteResolveOldToNewValues(e3) { + var t3, i3; + super.pasteResolveOldToNewValues(e3), null === (t3 = this.skillExpressionFilters) || void 0 === t3 || t3.pasteResolveOldToNewValues(e3), null === (i3 = this.skillExpressionFiltersResult) || void 0 === i3 || i3.pasteResolveOldToNewValues(e3); + } + get skillExpressionFilters() { + return this._skillExpressionFilters; + } + set skillExpressionFilters(e3) { + this._skillExpressionFilters = this.reviveItem(e3, d.default); + } + get skillExpressionFiltersResult() { + return this._skillExpressionFiltersResult; + } + set skillExpressionFiltersResult(e3) { + this._skillExpressionFiltersResult = this.reviveItem(e3, d.default); + } + } + t2.EvaluateSkillExpressionFiltersActionModel = c, c.__type = s.evaluateSkillExpressionFiltersActionType, o.__decorate([(0, l.enumerable)(true), o.__metadata("design:type", "function" == typeof (n2 = void 0 !== d.default && d.default) ? n2 : Object), o.__metadata("design:paramtypes", ["function" == typeof (r2 = void 0 !== d.default && d.default) ? r2 : Object])], c.prototype, "skillExpressionFilters", null), o.__decorate([(0, l.enumerable)(true), o.__metadata("design:type", Object), o.__metadata("design:paramtypes", [Object])], c.prototype, "skillExpressionFiltersResult", null), c.registerType(); + }, 20846: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importDefault(i2(94225)), o = i2(4861), a = n2.__importDefault(i2(45894)); + class s extends a.default { + constructor(e3) { + super(e3, o.scheduleManager); + } + get _globalTypeName() { + return "schedule"; + } + get displayTypeName() { + return "ArchValueSchedule"; + } + get isArchValueSchedule() { + return true; + } + setLiteralByScheduleIdAsync(e3, t3) { + return n2.__awaiter(this, void 0, void 0, function* () { + return this._checkItemIsValidLiteralString(this._infoParm("scheduleId", "setLiteralByScheduleIdAsync"), e3), this._checkItemIsValidFunction(this._infoParm("callbackFunction", "setLiteralByScheduleIdAsync"), t3, true), this._setLiteralByIdAsync(e3).then(() => r2.default.executeCallback(this, "setLiteralByScheduleIdAsync", t3, this)); + }); + } + setLiteralByScheduleNameAsync(e3, t3) { + return n2.__awaiter(this, void 0, void 0, function* () { + return this._checkItemIsValidLiteralString(this._infoParm("scheduleName", "setLiteralByScheduleNameAsync"), e3), this._checkItemIsValidFunction(this._infoParm("callbackFunction", "setLiteralByScheduleNameAsync"), t3, true), this._setLiteralByValueAsync(e3).then(() => r2.default.executeCallback(this, "setLiteralByScheduleNameAsync", t3, this)); + }); + } + } + t2.default = s; + }, 20850: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.archFlowStubbing = t2.ArchFlowStubbing = void 0; + const n2 = i2(31635), r2 = i2(96618), o = i2(68694), a = i2(10798), s = n2.__importDefault(i2(98114)), l = i2(30801), u = i2(30801), d = i2(30801), c = i2(30801), p = i2(30801), _ = i2(30801), h = i2(30801), m = i2(30801), g = i2(30801), f = i2(94453), T = n2.__importDefault(i2(4648)), y = i2(50474), S = i2(14187), A = i2(14187), N = n2.__importDefault(i2(78432)), O = n2.__importDefault(i2(94225)), I = n2.__importDefault(i2(3220)), v = i2(47957); + class C { + get _archFactoryFlows() { + return this._archFactoryFlowsInstance || (this._archFactoryFlowsInstance = i2(89059).default), this._archFactoryFlowsInstance; + } + canStubFlowType(e3) { + const t3 = null == e3 ? void 0 : e3.toLowerCase(); + if (!t3) return this._archFactoryFlows.logError("no flow type was provided to the canStubFlowType function."), false; + if (!s.default.getIsValidFlowType(t3)) return this._archFactoryFlows.logError(`the flow type '${t3}' is not a valid flow type.`), false; + if (!s.default.getFlowTypeIsAvailable(t3)) return this._archFactoryFlows.logError(`the flow type '${t3}' is not available in the organization.`), false; + if (!s.default.getDefinitionForFlowType(t3).isCreatable) return this._archFactoryFlows.logError(`the flow type '${t3}' is not creatable in the organization.`), false; + switch (t3) { + case r2.flowTypes.flowTypeBot: + case r2.flowTypes.flowTypeDigitalBot: + return (0, a.isFeatureAvailable)(T.default.botFlowsBotsCallingBots) || (0, a.isFeatureAvailable)(T.default.flowStubbing); + case r2.flowTypes.flowTypeInboundCall: + case r2.flowTypes.flowTypeSecureCall: + return true; + case r2.flowTypes.flowTypeVoicemail: + return this._archFactoryFlows.logError("voicemail flows cannot be stubbed because only have a single voicemail flow is allowed in an organization."), false; + case r2.flowTypes.flowTypeInboundChat: + return false; + default: + return (0, a.isFeatureAvailable)(T.default.flowStubbing); + } + } + createStubFlowAsync(e3, t3, i3, o2, a2) { + return n2.__awaiter(this, void 0, void 0, function* () { + var n3; + this._archFactoryFlows._checkItemIsValidLiteralStringEnum(this._archFactoryFlows._infoParm("stubFlowType", "createStubFlowAsync"), e3, N.default.FLOW_TYPES_ALL); + const s2 = this._archFactoryFlows._infoPropSet("stubFlowAdditionalInfo", "createStubFlowAsync"); + if (this._archFactoryFlows._checkItemIsValidJsonObject(s2, a2, true), a2 && (this._archFactoryFlows._checkItemIsValidLiteralString(s2, a2.division, true), this._archFactoryFlows._checkItemIsValidLiteralString(s2, a2.defaultLanguage, true), r2.flowTypes.flowTypeOutboundCall === e3 && (this._archFactoryFlows._checkItemIsValidLiteralString(s2, a2.contactList, true), this._archFactoryFlows._checkItemIsValidLiteralString(s2, a2.wrapupCode, true)), r2.flowTypes.flowTypeVoiceSurvey === e3 && this._archFactoryFlows._checkItemIsValidLiteralString(s2, a2.surveyForm, true), r2.flowTypes.flowTypeCommonModule === e3 && this._archFactoryFlows._checkItem(s2, void 0 !== a2.compatibleFlowTypes && null !== a2.compatibleFlowTypes && !Array.isArray(a2.compatibleFlowTypes), "expected compatibleFlowTypes to be a string array, but got " + typeof a2.compatibleFlowTypes), r2.flowTypes.flowTypeWorkitem === e3 && this._archFactoryFlows._checkItemIsValidLiteralString(s2, a2.worktype, true), !(0, y.isUndefined)(a2.variables))) { + this._archFactoryFlows._checkItem(s2, !Array.isArray(a2.variables), "expected variables to be an array, but got " + typeof a2.variables); + for (const e4 of a2.variables) this._archFactoryFlows._checkItemIsValidJsonObject(s2, e4), this._archFactoryFlows._checkItemIsValidLiteralString(s2, e4.name), this._archFactoryFlows._checkItem(s2, !(null === (n3 = e4.type) || void 0 === n3 ? void 0 : n3.isArchDataType), `expected variable type to be an ArchDataType, but got ${typeof e4.type} for variable ${e4.type}`), this._archFactoryFlows._checkItemIsValidLiteralBool(s2, e4.isInput, true), this._archFactoryFlows._checkItemIsValidLiteralBool(s2, e4.isOutput, true); + } + this._archFactoryFlows.logNote(`Creating stub flow with type [${e3}], name [${t3}], division [${i3}], defaultLanguage [${o2}]`); + const l2 = e3.toLowerCase(); + this.canStubFlowType(l2) || this._archFactoryFlows.logErrorAndThrow(`the ability to stub flows of type '${e3}' is not available in this organization.`), this._validateStubFlowRequirements(l2, a2); + const { archDefaultLanguage: u2, archDivision: d2 } = this._getDefaultLanguageAndDivision(o2, i3), c2 = this._buildCreationData(l2, u2, a2), p2 = this._getFlowDefinitionForFlowType(l2), _2 = yield this._archFactoryFlows.createFlowFromDefinitionAsync(p2, t3, "", u2, void 0, d2, c2, null == a2 ? void 0 : a2.compatibleFlowTypes, l2 === r2.flowTypes.flowTypeVoiceSurvey); + yield this._performFlowTypeSpecificSetup(l2, _2, a2), this._processVariables(_2, null == a2 ? void 0 : a2.variables), this._addTerminatingActionsToFlow(l2, _2), this._setupInitialAudio(_2), yield _2.publishAsync(true), this._archFactoryFlows.logNote(`Stub flow [${t3}] published.`); + }); + } + _validateStubFlowRequirements(e3, t3) { + var i3; + switch (e3) { + case r2.flowTypes.flowTypeVoiceSurvey: + (null == t3 ? void 0 : t3.surveyForm) || this._archFactoryFlows.logErrorAndThrow("a survey form must be specified when creating a voice survey stub flow"); + break; + case r2.flowTypes.flowTypeCommonModule: + (null === (i3 = null == t3 ? void 0 : t3.compatibleFlowTypes) || void 0 === i3 ? void 0 : i3.length) || this._archFactoryFlows.logErrorAndThrow("at least one compatible flow type must be specified when creating a common module stub flow"); + break; + case r2.flowTypes.flowTypeWorkitem: + (null == t3 ? void 0 : t3.worktype) || this._archFactoryFlows.logErrorAndThrow("a worktype must be specified when creating a workitem stub flow"); + } + } + _buildCreationData(e3, t3, i3) { + var n3; + switch (e3) { + case r2.flowTypes.flowTypeBot: + case r2.flowTypes.flowTypeDigitalBot: { + const e4 = (null === (n3 = null == i3 ? void 0 : i3.variables) || void 0 === n3 ? void 0 : n3.filter((e5) => e5.name.startsWith("Slot."))) || []; + return e4.length ? this._createStubNluData(t3, e4) : void 0; + } + case r2.flowTypes.flowTypeVoiceSurvey: + return { surveyForm: { name: null == i3 ? void 0 : i3.surveyForm } }; + case r2.flowTypes.flowTypeWorkitem: + return { worktype: { name: null == i3 ? void 0 : i3.worktype } }; + default: + return; + } + } + _performFlowTypeSpecificSetup(e3, t3, i3) { + return n2.__awaiter(this, void 0, void 0, function* () { + switch (e3) { + case r2.flowTypes.flowTypeBot: + case r2.flowTypes.flowTypeDigitalBot: + case r2.flowTypes.flowTypeVoice: + yield this._processBotSlotSettings(t3, i3); + break; + case r2.flowTypes.flowTypeInboundCall: + case r2.flowTypes.flowTypeSecureCall: + this._setStartingTask(t3); + break; + case r2.flowTypes.flowTypeOutboundCall: + const e4 = t3; + yield e4.settingsOutboundCall.setContactListLiteralByContactListNameAsync(null == i3 ? void 0 : i3.contactList), yield e4.settingsOutboundCall.defaultWrapupCode.setLiteralByWrapupCodeNameAsync(null == i3 ? void 0 : i3.wrapupCode), this._setStartingTask(t3); + } + }); + } + _processBotSlotSettings(e3, t3) { + return n2.__awaiter(this, void 0, void 0, function* () { + var i3; + const n3 = (null === (i3 = null == t3 ? void 0 : t3.variables) || void 0 === i3 ? void 0 : i3.filter((e4) => e4.name.startsWith("Slot."))) || []; + for (const t4 of n3) if (t4.type.isCollection) { + const i4 = null == e3 ? void 0 : e3.botFlowSettings.getSlotSettingsBySlotName(this._getSlotNameFromSlotVariableName(t4.name)); + i4 && (i4.captureValue = N.default.CAPTURE_TYPES.multiple); + } + yield e3.saveAsync(); + }); + } + _setupInitialAudio(e3) { + e3.initialAudio && e3.initialAudio.setDefaultCaseExpression('ToAudioTTS("stub")'); + } + _setStartingTask(e3) { + const t3 = e3._getCoreViewModel().createTask(); + t3.name = "Initial Task"; + const i3 = this._archFactoryFlows.coreFactory.createArchWrapper(t3); + e3.setStartingTask(i3); + } + _addTerminatingActionsToFlow(e3, t3) { + this._addTerminatingAction(e3, t3.startUpObject._getCoreViewModel()), t3.definition.supportsPeriodicState && this._addTerminatingAction(e3, t3.periodicState._getCoreViewModel()); + } + _getSlotNameFromSlotVariableName(e3) { + let t3 = e3.replace("Slot.", ""); + return t3.endsWith("_Collection") && (t3 = t3.substring(0, t3.length - 11)), t3; + } + _createStubNluData(e3, t3) { + const i3 = { nluDomainVersion: { intents: [], entities: [], entityTypes: [], language: null == e3 ? void 0 : e3.tag.toLowerCase(), languageVersions: {} } }; + return t3.forEach(({ name: e4, type: t4 }) => { + var n3, r3, a2, s2; + let l2; + const u2 = this._getSlotNameFromSlotVariableName(e4); + (null == t4 ? void 0 : t4.isCollection) ? (l2 = `${u2}Type`, (null !== (n3 = (a2 = i3.nluDomainVersion).entityTypes) && void 0 !== n3 ? n3 : a2.entityTypes = []).push({ name: l2, description: `The description of the Entity Type "${u2}"`, mechanism: { type: "List", restricted: true, items: [{ value: "dummy value", synonyms: [] }] } })) : l2 = (0, f.getNluTypeForArchitectType)(null == t4 ? void 0 : t4._getCoreViewModel()).nluDataType || o.BuiltInEntityType.BuiltInAny, (null !== (r3 = (s2 = i3.nluDomainVersion).entities) && void 0 !== r3 ? r3 : s2.entities = []).push({ name: u2, type: l2 }); + }), i3; + } + _createStubFlowVariable(e3, t3, i3, n3) { + var r3; + const o2 = (0, A.setScope)(n3 || S.scopes.flow, t3), a2 = i3.dataType || e3.dataTypes.string; + let s2 = null === (r3 = e3.variables) || void 0 === r3 ? void 0 : r3.find((e4) => (null == e4 ? void 0 : e4.name) === o2); + return s2 || (s2 = e3.addVariable(o2, a2)), s2 && (s2.isInput = i3.isInput || false, s2.isOutput = i3.isOutput || false), s2; + } + _configureStubFlowVariables(e3, t3, i3) { + if ((null == t3 ? void 0 : t3.length) && e3) for (const n3 of t3) { + const t4 = { isInput: n3.isInput || false, isOutput: n3.isOutput || false, dataType: n3.type }; + this._createStubFlowVariable(e3, n3.name, t4, i3); + } + } + _getDefaultLanguageAndDivision(e3, t3) { + let i3, n3 = I.default.englishUnitedStates; + return e3 && (n3 = I.default.getByLanguageTag(e3) || I.default.englishUnitedStates), i3 = t3 && O.default.orgInfo.getDivisionByName(t3) || this._archFactoryFlows.getDefaultDivisionWhereUserCanAdd(), { archDefaultLanguage: n3, archDivision: i3 }; + } + _addTerminatingAction(e3, t3) { + switch (e3) { + case r2.flowTypes.flowTypeCommonModule: + t3.addAction(_.endTaskActionType, t3.topAction).name = "Exit Common Module"; + break; + case r2.flowTypes.flowTypeBot: + case r2.flowTypes.flowTypeDigitalBot: + case r2.flowTypes.flowTypeVoice: + t3.addAction(h.exitBotFlowActionType, t3.topAction).name = v.actions.exitBotFlow; + break; + case r2.flowTypes.flowTypeInQueueEmail: + case r2.flowTypes.flowTypeInQueueShortMessage: + t3.addAction(p.endStateActionType, t3.topAction).name = "End State"; + break; + case r2.flowTypes.flowTypeInQueueCall: { + const e4 = t3.addAction(g.playAudioActionType, t3.topAction); + e4.name = "Play Audio", e4.prompts.defaultAudio.setExpressionOnly("ToAudioBlank(10000)"), t3.addAction(m.flushAudioActionType, e4).name = "Flush Audio"; + break; + } + case r2.flowTypes.flowTypeInboundCall: + case r2.flowTypes.flowTypeInboundEmail: + case r2.flowTypes.flowTypeInboundShortMessage: + case r2.flowTypes.flowTypeOutboundCall: + case r2.flowTypes.flowTypeSecureCall: + case r2.flowTypes.flowTypeVoiceSurvey: + t3.addAction(u.disconnectActionType, t3.topAction).name = "Disconnect"; + break; + case r2.flowTypes.flowTypeSurveyInvite: { + const e4 = t3.addAction(l.abortSurveyActionType, t3.topAction); + e4.disposition.setAsLiteral("optOut"), e4.name = "Abort Survey"; + break; + } + case r2.flowTypes.flowTypeWorkflow: + t3.addAction(d.endWorkflowActionType, t3.topAction).name = "End Workflow"; + break; + case r2.flowTypes.flowTypeWorkitem: + t3.addAction(c.exitWorkitemFlowActionType, t3.topAction).name = "Exit Workitem Flow"; + break; + default: + this._archFactoryFlows.logErrorAndThrow(`archFlowStubbing._addTerminatingAction: Unable to add a terminating action to a flow of type '${e3}'`); + } + } + _processVariables(e3, t3) { + if (!(null == t3 ? void 0 : t3.length) || !e3) return; + const i3 = (null == t3 ? void 0 : t3.filter((e4) => e4.name.startsWith("Flow."))) || [], n3 = (null == t3 ? void 0 : t3.filter((e4) => e4.name.startsWith("Common."))) || [], r3 = (null == t3 ? void 0 : t3.filter((e4) => e4.name.startsWith("Slot."))) || []; + i3.length && this._configureStubFlowVariables(e3, i3), n3.length && this._configureStubFlowVariables(e3, n3, S.scopes.common), r3.length && this._configureStubFlowVariables(e3, r3, S.scopes.slot); + } + _getFlowDefinitionForFlowType(e3) { + return this._archFactoryFlows.coreFactory.createArchWrapper(s.default.getDefinitionForFlowType(e3)); + } + } + t2.ArchFlowStubbing = C, t2.archFlowStubbing = new C(); + }, 21030: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.FindUserPromptActionModel = void 0; + const n2 = i2(49574), r2 = i2(30801); + class o extends n2.BaseFindSystemObjectByNameActionModel { + constructor(e3) { + super(e3), this.__type = o.__type; + } + } + t2.FindUserPromptActionModel = o, o.__type = r2.findUserPromptActionType, o.registerType(); + }, 21042: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.allListManagers = t2.BootstrapListManager = void 0; + const n2 = i2(31635).__importDefault(i2(92140)), r2 = i2(55299), o = i2(24032), a = i2(97361), s = (0, o.getTopic)("bootstrapListManager"), l = []; + t2.allListManagers = l; + class u extends r2.BaseClass { + constructor(e3, t3) { + super(), this.dependencyType = e3, this._networkModel = t3, l.push(this), this.items = {}, this.dependencyType && this._networkModel && a.registerObject(this.dependencyType.value, this._networkModel); + } + get className() { + return "BootstrapListManager"; + } + get isBootstrapListManager() { + return true; + } + getItemById(e3) { + return this.items[e3]; + } + getItemByName(e3) { + return n2.default.find(this.items, (t3) => t3.name.toLocaleLowerCase() === e3.toLocaleLowerCase()); + } + updateItem(e3) { + if (!e3.id) return null; + const t3 = this.items[e3.id]; + return t3 ? t3.updateItem ? t3.updateItem(e3) : (s.errorWithStack(null, `updateItem not implemented for viewmodel class '${t3.className}' with id '${t3.id}' from manager '${this.className}'`), null) : null; + } + removeItemWithId(e3) { + delete this.items[e3]; + } + removeItemWithName(e3) { + const t3 = n2.default.findWhere(this.items, { name: e3 }); + t3 && delete this.items[t3.id]; + } + resetState() { + this.items = {}; + } + } + t2.BootstrapListManager = u; + }, 21044: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.VideoType = void 0; + const n2 = i2(31635), r2 = i2(27491), o = i2(94765), a = i2(80428), s = i2(28290), l = n2.__importDefault(i2(4648)), u = i2(14394), d = i2(10798), c = i2(39139), p = i2(22226); + class _ extends o.ExpressionType { + constructor(e3, t3, i3) { + super(e3, t3, i3); + } + get className() { + return "VideoType"; + } + canConvertLitToExpression(e3) { + return r2.expressionDataService.isFunctionTextAvailableForFlowTypeAndOperandTypes("ToVideo", e3, [u.globalTypes.responseAsset, u.globalTypes.video]) && r2.expressionDataService.isFunctionTextAvailableForFlowTypeAndOperandTypes("FindResponseAsset", e3, [u.globalTypes.string]); + } + convertLitToExpression(e3, t3) { + return t3 && this.canConvertLitToExpression(e3) ? `ToVideo(FindResponseAsset(${p.getQuotedExpressionStringLiteral(t3)}), NOT_SET)` : ""; + } + _getLiteralValueOfExpression() { + return ""; + } + get supportsLiteralEditor() { + return (0, d.isFeatureAvailable)(l.default.cannedResponseAttachmentsPostGaFeature); + } + get listManager() { + return c.videoManager; + } + createExpressionOptionClass() { + return new s.ExpressionTypeVideoOptions(); + } + } + t2.VideoType = _, _.typeIdentifier = a.expressionTypeNames.video; + }, 21045: (e2, t2, i2) => { + "use strict"; + const n2 = i2(31635), r2 = i2(81516), o = i2(12179), a = n2.__importDefault(i2(97891)), s = i2(24383), l = n2.__importDefault(i2(5730)), u = i2(80428), d = i2(47957); + class c extends l.default { + static get managedProperties() { + return [{ label: d.endWorkflow.exitReasonLabel, options: r2.ExpressionTypeStringOptions.create((e3) => e3.setAsInput().setIninTestingField("ExitReason").setDisableSpellcheck(true).setIsOptional(true)), property: "exitReason", type: u.expressionTypeNames.string }]; + } + constructor(e3, t3) { + super(e3.parentFlow, e3), this._loadModel(t3); + } + } + c.info = a.default.createActionInfo({ actionClass: c, canBeInTask: true, helpTopic: o.helpTopics.actions.endWorkflow, modelClass: i2(77315), name: d.actions.endWorkflow, scriptingName: "ArchActionEndWorkflow", termination: s.terminatesFlow }), t2.A = c; + }, 21046: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(54063)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "externalContactCollection"; + } + get displayTypeName() { + return "ArchValueExternalContactCollection"; + } + get isArchValueExternalContactCollection() { + return true; + } + } + t2.default = r2; + }, 21095: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.EntityUtil = void 0; + const n2 = i2(14443), r2 = i2(30058), o = i2(65654); + t2.EntityUtil = class { + static getEntityTypeByName(e3, t3) { + return (null == e3 ? void 0 : e3.entityTypes) && t3 && e3.entityTypes.find((e4) => { + var i3; + return (null === (i3 = e4.name) || void 0 === i3 ? void 0 : i3.toLowerCase()) === t3.toLowerCase(); + }) || {}; + } + static getListTypeEntityTypeValueLabels(e3, t3, i3) { + if (!e3 || !t3 || !i3) return {}; + const r3 = this.getListTypeEntityTypeItem(t3, i3); + if ((0, n2.isEmptyObject)(r3)) return {}; + const o2 = r3.value, a = {}; + o2 && (a._default = o2, a[e3.language] = o2); + for (let e4 in r3.additionalLanguages) { + const t4 = r3.additionalLanguages[e4]; + a[e4.toLowerCase()] = t4.synonyms ? t4.synonyms[0] : o2; + } + return a; + } + static getListTypeEntityTypeByNameValueLabels(e3, t3, i3) { + return this.getListTypeEntityTypeValueLabels(e3, this.getEntityTypeByName(e3, t3), i3); + } + static getListTypeEntityTypeValueLabelForLanguage(e3, t3, i3, r3) { + if (!(e3 && t3 && r3 && i3 && this.isEntityTypeOfTypeList(t3))) return ""; + const o2 = this.getListTypeEntityTypeItem(t3, i3); + if ((0, n2.isEmptyObject)(o2)) return ""; + r3 = r3.toLowerCase(); + const a = o2.value; + if (r3 === e3.language.toLowerCase()) return a; + let s = {}; + for (let e4 in o2.additionalLanguages) e4.toLowerCase() === r3 && (s = o2.additionalLanguages[e4]); + return (0, n2.isEmptyObject)(s) ? a : s.synonyms[0] || a; + } + static getListTypeEntityTypeByNameValueLabelForLanguage(e3, t3, i3, n3) { + return this.getListTypeEntityTypeValueLabelForLanguage(e3, this.getEntityTypeByName(e3, t3), i3, n3); + } + static getEntities(e3) { + return (null == e3 ? void 0 : e3.entities) ? e3.entities : []; + } + static getEntityByName(e3, t3) { + return (null == e3 ? void 0 : e3.entities) && t3 && e3.entities.find((e4) => (null == e4 ? void 0 : e4.name.toLowerCase()) === t3.toLowerCase()) || {}; + } + static getEntityNames(e3) { + var t3; + if (!e3) return []; + const i3 = []; + return null === (t3 = e3.entities) || void 0 === t3 || t3.forEach((e4) => { + i3.push(e4.name); + }), i3; + } + static getEntityTypeNames(e3) { + var t3; + if (!e3) return []; + const i3 = []; + return null === (t3 = e3.entityTypes) || void 0 === t3 || t3.forEach((e4) => { + i3.push(e4.name); + }), i3; + } + static isEntityTypeOfType(e3, t3) { + var i3, n3; + return !(!e3 || !t3) && (null === (n3 = null === (i3 = null == e3 ? void 0 : e3.mechanism) || void 0 === i3 ? void 0 : i3.type) || void 0 === n3 ? void 0 : n3.toLowerCase()) === t3; + } + static getEntityTypeFromEntity(e3, t3) { + return this.getEntityTypeByName(e3, null == t3 ? void 0 : t3.type); + } + static getListTypeEntityTypeByName(e3, t3) { + const i3 = this.getEntityTypeByName(e3, t3); + return this.isEntityTypeOfTypeList(i3) ? i3 : {}; + } + static getEntityTypeAllowableValues(e3) { + var t3; + if (!(null === (t3 = null == e3 ? void 0 : e3.mechanism) || void 0 === t3 ? void 0 : t3.items) || !this.isEntityTypeOfTypeList(e3)) return []; + const i3 = []; + return e3.mechanism.items.forEach((e4) => { + "string" == typeof e4.value && e4.value.length && i3.push(e4.value); + }), i3; + } + static getListTypeEntityTypeByNameAllowableValues(e3, t3) { + return e3 && t3 ? this.getEntityTypeAllowableValues(this.getEntityTypeByName(e3, t3)) : []; + } + static getEntityTypeItemFromEntityTypeByName(e3, t3, i3) { + return e3 && t3 && i3 ? this.getListTypeEntityTypeItem(this.getEntityTypeByName(e3, t3), i3) : {}; + } + static getListTypeEntityTypeItem(e3, t3) { + var i3; + if (!e3 || !this.isEntityTypeOfTypeList(e3) || !t3) return {}; + if (e3.mechanism.items) { + t3 = t3.toLowerCase(); + const n3 = e3.mechanism.items; + for (let e4 = 0; e4 < n3.length; e4++) if ((null === (i3 = n3[e4].value) || void 0 === i3 ? void 0 : i3.toLowerCase()) === t3) return n3[e4]; + } + return {}; + } + static isEntityTypeOfTypeDynamicDateTime(e3) { + return this.isEntityTypeOfType(e3, r2.EntityTypeMechanismType.DynamicDateTime); + } + static isEntityTypeOfTypeAI(e3) { + return this.isEntityTypeOfType(e3, r2.EntityTypeMechanismType.AI); + } + static isEntityTypeOfTypeDynamicList(e3) { + return this.isEntityTypeOfType(e3, r2.EntityTypeMechanismType.DynamicList); + } + static isEntityTypeOfTypeEnum(e3) { + return this.isEntityTypeOfType(e3, r2.EntityTypeMechanismType.Enum); + } + static isEntityTypeOfTypeList(e3) { + return this.isEntityTypeOfType(e3, r2.EntityTypeMechanismType.List); + } + static isEntityTypeOfTypeRegex(e3) { + return this.isEntityTypeOfType(e3, r2.EntityTypeMechanismType.Regex); + } + static isEntityTypeABuiltInType(e3) { + var t3, i3; + return null === (i3 = null === (t3 = null == e3 ? void 0 : e3.type) || void 0 === t3 ? void 0 : t3.toLowerCase()) || void 0 === i3 ? void 0 : i3.startsWith(r2.BuiltInEntityType.BuiltInPrefix); + } + static getArchFlowSummaryNluDomainVersion(e3) { + return new o.SummaryUtil().getArchFlowSummaryNluDomainVersion(e3); + } + static hasMinLengthForEntityType(e3) { + var t3; + return void 0 !== (null === (t3 = null == e3 ? void 0 : e3.mechanism) || void 0 === t3 ? void 0 : t3.minLength); + } + }; + }, 21224: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = i2(30801), o = n2.__importDefault(i2(11210)); + class a extends o.default { + constructor(e3) { + super(e3); + } + get _actionTypeId() { + return r2.participantRecordActionType; + } + get displayTypeName() { + return this._scriptingName; + } + get isArchActionEnableParticipantRecord() { + return true; + } + } + t2.default = a; + }, 21270: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.getAudioConnectorBots = l, t2.getAudioConnectorBot = u; + const n2 = i2(31635), r2 = n2.__importStar(i2(24032)), o = n2.__importStar(i2(33067)), a = n2.__importDefault(i2(36019)), s = r2.getTopic("audioConnectorApi"); + function l() { + return n2.__awaiter(this, void 0, void 0, function* () { + try { + const e3 = a.default.build(o.getAudioConnectorBots); + return yield e3.call(); + } catch (e3) { + throw s.exception(e3, "Error fetching audio connector bots:"), new Error("Failed to fetch audio connector bots."); + } + }); + } + function u(e3) { + return n2.__awaiter(this, void 0, void 0, function* () { + if (!e3) throw s.error("Invalid getAudioConnectorBot request parameters"), new Error("Invalid getAudioConnectorBot request parameters"); + const t3 = { integrationId: e3 }, i3 = a.default.build(o.getAudioConnectorBot).templateParams(t3); + return yield i3.call(); + }); + } + l.api = o.getAudioConnectorBots, u.api = o.getAudioConnectorBot; + }, 21273: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importDefault(i2(92140)), o = n2.__importDefault(i2(37873)); + class a extends o.default { + constructor(e3) { + super(e3), this._coreFlowInfoViewModel = e3; + } + _getArchFlowInfoVersionForVersion(e3) { + if (r2.default.isObject(e3) && r2.default.isString(e3.commitVersion)) return this.coreFactory.createArchFlowInfoVersion(e3); + } + get displayTypeName() { + return "ArchFlowInfo"; + } + get logStr() { + if (!this._coreFlowInfoViewModel) return this.logStrTypeOnly; + const e3 = []; + return this._appendLogStrFlowId(e3, this.id), this._appendLogStrName(e3, this.name), this._appendLogStrType(e3, this.displayTypeName), this._createLogStrFromParts(e3); + } + get hasSavedVersion() { + return !!this._coreFlowInfoViewModel.versions && !r2.default.isUndefined(this._getArchFlowInfoVersionForVersion(this._coreFlowInfoViewModel.versions.savedVersion)); + } + get isArchFlowInfo() { + return true; + } + get isCheckedIn() { + return !this.isLocked; + } + get isLocked() { + return !!this._coreFlowInfoViewModel.isLocked; + } + get isLockedByAnotherUser() { + return this.isLocked && !!this._coreFlowInfoViewModel.isLockedByOtherUser; + } + get isLockedByCurrentUser() { + return this.isLocked && !this.isLockedByAnotherUser; + } + get isPublished() { + return !!this._coreFlowInfoViewModel.isPublished; + } + get isSystem() { + return !!this._coreFlowInfoViewModel.system; + } + get name() { + return this._coreFlowInfoViewModel.label; + } + get type() { + return this._coreFlowInfoViewModel.type; + } + get versionCheckedIn() { + if (this._coreFlowInfoViewModel.versions) return this._getArchFlowInfoVersionForVersion(this._coreFlowInfoViewModel.versions.checkedInVersion); + } + get versionPublished() { + if (this._coreFlowInfoViewModel.versions) return this._getArchFlowInfoVersionForVersion(this._coreFlowInfoViewModel.versions.publishedVersion); + } + } + t2.default = a; + }, 21305: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.ExpressionTypeJsonOptions = void 0; + const n2 = i2(31635), r2 = i2(65615), o = i2(80295), a = i2(80428), s = i2(80295), l = i2(55909), u = i2(33951), d = n2.__importDefault(i2(65302)), c = i2(34005); + class p extends r2.BaseExpressionTypeCollectionOptions { + static create(e3, t3) { + return new this(t3).invokeOptionsCallback(e3); + } + constructor(e3) { + super(e3), this._isCustomJsonType = false, (0, s.makeUnenumerable)(this, "_typeIdentifier"), (0, s.makeUnenumerable)(this, "_isCustomJsonType"); + } + _setFromOptions(e3) { + super._setFromOptions(e3), this._setOptionIfSet(this.setIsCustomJsonType, e3.isCustomJsonType, "_isCustomJsonType"), this._setOptionIfSet(this.setTypeIdentifier, e3.typeIdentifier, "_typeIdentifier"); + } + get isExpressionTypeJsonOptions() { + return true; + } + get className() { + return "ExpressionTypeJsonOptions"; + } + get isJson() { + return true; + } + get typeIdentifier() { + return this._typeIdentifier; + } + set typeIdentifier(e3) { + this.isCustomJsonType ? this._typeIdentifier = u.ParameterValidator.expectCustomJsonIdentifier(e3, () => l.ParameterInfo.createPropertySet(this.className, "typeIdentifier", "value")) : this._typeIdentifier = u.ParameterValidator.expectStringComplexIdentifier(e3, () => l.ParameterInfo.createPropertySet(this.className, "typeIdentifier", "value")); + } + setTypeIdentifier(e3) { + return this.typeIdentifier = e3, this; + } + get isCustomJsonType() { + return this._isCustomJsonType; + } + setIsCustomJsonType(e3) { + return this._isCustomJsonType = e3, this; + } + get issueInfoTypes() { + var e3, t3, i3, n3; + if (this.typeIdentifier === a.expressionTypeNames.skillExpressionFilter) { + const r3 = null === (i3 = null === (t3 = null === (e3 = c.type) || void 0 === e3 ? void 0 : e3.SkillExpressionFilter) || void 0 === t3 ? void 0 : t3.nativeProperties) || void 0 === i3 ? void 0 : i3.find((e4) => "errors" === e4.id); + return null !== (n3 = null == r3 ? void 0 : r3.issueInfoTypes) && void 0 !== n3 ? n3 : []; + } + return []; + } + get supportsLiteralMode() { + if (this.isCustomJsonType) { + if (void 0 === this._customJsonTypeSupportsLiteralMode) { + const e3 = d.default.getGlobalTypeGroup().getType(this.typeIdentifier, false); + this._customJsonTypeSupportsLiteralMode = !e3 || !e3.hasPropertiesAndAllAreReadOnly; + } + return this._customJsonTypeSupportsLiteralMode; + } + return super.supportsLiteralMode; + } + } + t2.ExpressionTypeJsonOptions = p, n2.__decorate([(0, o.enumerable)(true), n2.__metadata("design:type", Boolean), n2.__metadata("design:paramtypes", [])], p.prototype, "isJson", null), n2.__decorate([(0, o.enumerable)(true), n2.__metadata("design:type", String), n2.__metadata("design:paramtypes", [Object])], p.prototype, "typeIdentifier", null), n2.__decorate([(0, o.enumerable)(true), n2.__metadata("design:type", Array), n2.__metadata("design:paramtypes", [])], p.prototype, "issueInfoTypes", null); + }, 21345: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = i2(26847), o = n2.__importDefault(i2(62957)); + class a extends o.default { + constructor(e3) { + super(e3); + } + get displayTypeName() { + return "ArchBaseActionWithOutputsSuccessFailure"; + } + get isArchBaseActionWithOutputsSuccessFailure() { + return true; + } + get outputSuccess() { + return this._getOutputById(r2.outputIds.success, true); + } + } + t2.default = a; + }, 21361: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.every = void 0; + var n2 = i2(65212), r2 = i2(17214); + t2.every = function(e3, t3) { + return n2.operate(function(i3, n3) { + var o = 0; + i3.subscribe(r2.createOperatorSubscriber(n3, function(r3) { + e3.call(t3, r3, o++, i3) || (n3.next(false), n3.complete()); + }, function() { + n3.next(true), n3.complete(); + })); + }); + }; + }, 21401: (e2, t2, i2) => { + "use strict"; + const n2 = i2(31635), r2 = i2(12179), o = i2(12457), a = i2(81516), s = n2.__importDefault(i2(97891)), l = n2.__importDefault(i2(33644)), u = i2(80428), d = i2(65011), c = i2(47957); + class p extends l.default { + constructor(e3, t3) { + super(e3.parentFlow, e3), this._loadModel(t3); + } + getDetails() { + return this.outcomeId ? new o.ActionDetails([c.flowOutcomes.flowOutcome, c.generic.value], [this.outcomeName, this.outcomeValue.text]) : null; + } + static get managedProperties() { + return [{ property: "outcomeValue", label: c.generic.value, options: a.ExpressionTypeStringOptions.create((e3) => e3.setAllowModeLiteralOnly().setIninTestingField("outcome-value-expression").setUiPropertyOrder(1).facets.setTrim(true).setAllowableValues(d)), yamlOptions: p.createYamlOptions("outcomeValue", (e3) => e3.setPropertyName("flowOutcomeValue").setShouldBePlainJsType(true)), type: u.expressionTypeNames.string }]; + } + } + p.info = s.default.createActionInfo({ actionClass: p, canBeInTask: true, helpTopic: r2.helpTopics.actions.setFlowOutcome, modelClass: i2(67277), name: c.actions.setFlowOutcome, scriptingName: "ArchActionSetFlowOutcome" }), t2.A = p; + }, 21413: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importDefault(i2(94241)), o = n2.__importDefault(i2(84821)), a = n2.__importDefault(i2(79635)), s = n2.__importDefault(i2(13523)), l = { ArchDataType: r2.default, ArchDataTypeJsonCustomProperty: o.default, ArchDataTypeJsonCustomSchema: a.default, ArchDataTypes: s.default }; + t2.default = l; + }, 21434: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(67336)); + class r2 extends n2.default { + constructor(e3) { + super(e3), this._coreNameValuePair = e3; + } + get displayTypeName() { + return "ArchBaseNameValuePair"; + } + get isArchBaseNameValuePair() { + return true; + } + get logStr() { + if (!this._getCoreViewModel()) return this.logStrTypeOnly; + const e3 = [], t3 = this.name.valueText; + return t3 && this._appendLogStrName(e3, t3), this._appendLogStrType(e3, this.displayTypeName), this._createLogStrFromParts(e3); + } + get name() { + return this.coreFactory.createArchWrapper(this._coreNameValuePair.name); + } + get value() { + return this.coreFactory.createArchWrapper(this._coreNameValuePair.expression); + } + } + t2.default = r2; + }, 21453: (e2, t2, i2) => { + const { askForSlotActionType: n2 } = i2(30801), r2 = i2(2444), o = i2(7401); + function a() { + Object.defineProperties(this, { _askResult: { writable: true }, _chooser: { writable: true }, _confirmationMode: { writable: true }, _confirmationQuestion: { writable: true }, _customValidation: { writable: true }, _grammar: { writable: true }, _speechToTextEngine: { writable: true }, _speechToTextEngineCompleteTimeout: { writable: true }, _speechToTextEngineConfidenceLevel: { writable: true }, _repromptHandling: { writable: true }, _continuationPrompt: { writable: true }, _customizeContinuation: { writable: true }, _continuationReprompts: { writable: true } }), this.selectedSlot = void 0, this.selectedSlotType = void 0, this.speechToTextEngineName = void 0, this.speechToTextEngineId = void 0, a.baseConstructor.apply(this, arguments); + } + r2.extend(a, n2, true), e2.exports = a, Object.defineProperties(a.prototype, { pasteResolveOldToNewValues: { value: function(e3) { + a._super.pasteResolveOldToNewValues.apply(this, arguments), this.askResult.pasteResolveOldToNewValues(e3), this.grammar && this.grammar.pasteResolveOldToNewValues(e3), this.chooser && this.chooser.pasteResolveOldToNewValues(e3), this.confirmationMode && this.confirmationMode.pasteResolveOldToNewValues(e3), this.confirmationQuestion && this.confirmationQuestion.pasteResolveOldToNewValues(e3), this.customValidation.pasteResolveOldToNewValues(e3), this.repromptHandling && this.repromptHandling.pasteResolveOldToNewValues(e3), this.continuationPrompt && this.continuationPrompt.pasteResolveOldToNewValues(e3), this.customizeContinuation && this.customizeContinuation.pasteResolveOldToNewValues(e3), this.continuationReprompts && this.continuationReprompts.pasteResolveOldToNewValues(e3); + } }, pasteReIdOrRename: { value: function(e3) { + a._super.pasteReIdOrRename.apply(this, arguments), this.askResult.pasteReIdOrRename(e3), this.grammar && this.grammar.pasteReIdOrRename(e3), this.chooser && this.chooser.pasteReIdOrRename(e3), this.confirmationMode && this.confirmationMode.pasteReIdOrRename(e3), this.confirmationQuestion && this.confirmationQuestion.pasteReIdOrRename(e3), this.customValidation.pasteReIdOrRename(e3), this.repromptHandling && this.repromptHandling.pasteReIdOrRename(e3), this.continuationPrompt && this.continuationPrompt.pasteReIdOrRename(e3), this.customizeContinuation && this.customizeContinuation.pasteReIdOrRename(e3), this.continuationReprompts && this.continuationReprompts.pasteReIdOrRename(e3); + } }, askResult: { enumerable: true, get: function() { + return this._askResult; + }, set: function(e3) { + this._askResult = this.reviveItem(e3, o); + } }, chooser: { enumerable: true, get: function() { + return this._chooser; + }, set: function(e3) { + this._chooser = this.reviveItem(e3, o); + } }, confirmationMode: { enumerable: true, get: function() { + return this._confirmationMode; + }, set: function(e3) { + this._confirmationMode = this.reviveItem(e3, o); + } }, confirmationQuestion: { enumerable: true, get: function() { + return this._confirmationQuestion; + }, set: function(e3) { + this._confirmationQuestion = this.reviveItem(e3, o); + } }, customValidation: { enumerable: true, get: function() { + return this._customValidation; + }, set: function(e3) { + this._customValidation = this.reviveItem(e3, o); + } }, grammar: { enumerable: true, get: function() { + return this._grammar; + }, set: function(e3) { + this._grammar = this.reviveItem(e3, o); + } }, speechToTextEngine: { enumerable: true, get: function() { + return this._speechToTextEngine; + }, set: function(e3) { + this._speechToTextEngine = this.reviveItem(e3, o); + } }, speechToTextEngineCompleteTimeout: { enumerable: true, get: function() { + return this._speechToTextEngineCompleteTimeout; + }, set: function(e3) { + this._speechToTextEngineCompleteTimeout = this.reviveItem(e3, o); + } }, speechToTextEngineConfidenceLevel: { enumerable: true, get: function() { + return this._speechToTextEngineConfidenceLevel; + }, set: function(e3) { + this._speechToTextEngineConfidenceLevel = this.reviveItem(e3, o); + } }, repromptHandling: { enumerable: true, get: function() { + return this._repromptHandling; + }, set: function(e3) { + this._repromptHandling = this.reviveItem(e3, o); + } }, continuationPrompt: { enumerable: true, get: function() { + return this._continuationPrompt; + }, set: function(e3) { + this._continuationPrompt = this.reviveItem(e3, o); + } }, customizeContinuation: { enumerable: true, get: function() { + return this._customizeContinuation; + }, set: function(e3) { + this._customizeContinuation = this.reviveItem(e3, o); + } }, continuationReprompts: { enumerable: true, get: function() { + return this._continuationReprompts; + }, set: function(e3) { + this._continuationReprompts = this.reviveItem(e3, o); + } } }), e2.exports = a; + }, 21556: (e2, t2, i2) => { + const n2 = i2(24005), r2 = i2(7401), o = i2(15244); + function a() { + Object.defineProperties(this, { _enableBargeIn: { writable: true }, _enableAutomaticQuickReplies: { writable: true }, _noMatchesMax: { writable: true }, _noInputsMax: { writable: true }, _noInputsMaxExceededHandlingType: { writable: true }, _endOfSessionMessage: { writable: true }, _noInputsTimeout: { writable: true }, _speechToTextSpeechDetectionSensitivity: { writable: true }, _speechToTextMaxSpeechTimeout: { writable: true }, _enableIntentClassificationHinting: { writable: true }, _interDigitTimeout: { writable: true }, _dtmfTerminatingCharacter: { writable: true }, _confirmationRejectionsMax: { writable: true }, _collectionLowConfidenceThreshold: { writable: true }, _collectionHighConfidenceThreshold: { writable: true }, _confirmationLowConfidenceThreshold: { writable: true }, _noMatchApologies: { writable: true }, _noInputsApologies: { writable: true }, _noToConfirmationApologies: { writable: true }, _confirmationNoMatchApologies: { writable: true }, _confirmationNoInputApologies: { writable: true } }), this.noInputsMaxExceededTaskId = void 0, this.noInputsMaxExceededTaskName = void 0, a.baseConstructor.apply(this, arguments); + } + n2.extend(a, "BotFlowUserInputSettings"), Object.defineProperties(a.prototype, { pasteReIdOrRename: { value: function(e3) { + a._super.pasteReIdOrRename.apply(this, arguments), this._enableBargeIn.pasteReIdOrRename(e3), this._enableAutomaticQuickReplies.pasteReIdOrRename(e3), this._noMatchesMax.pasteReIdOrRename(e3), this._noInputsMax.pasteReIdOrRename(e3), this._noInputsTimeout.pasteReIdOrRename(e3), this._speechToTextSpeechDetectionSensitivity.pasteReIdOrRename(e3), this._speechToTextMaxSpeechTimeout.pasteReIdOrRename(e3), this._enableIntentClassificationHinting.pasteResolveOldToNewValues(e3), this._interDigitTimeout.pasteReIdOrRename(e3), this._dtmfTerminatingCharacter.pasteReIdOrRename(e3), this._endOfSessionMessage.pasteReIdOrRename(e3), this._confirmationRejectionsMax.pasteReIdOrRename(e3), this._collectionLowConfidenceThreshold.pasteReIdOrRename(e3), this._collectionHighConfidenceThreshold.pasteReIdOrRename(e3), this._confirmationLowConfidenceThreshold.pasteReIdOrRename(e3), this._noMatchApologies.forEach((t3) => t3.pasteReIdOrRename(e3)), this._noInputsApologies.forEach((t3) => t3.pasteReIdOrRename(e3)), this._noToConfirmationApologies.forEach((t3) => t3.pasteReIdOrRename(e3)), this._confirmationNoMatchApologies.forEach((t3) => t3.pasteReIdOrRename(e3)), this._confirmationNoInputApologies.forEach((t3) => t3.pasteReIdOrRename(e3)); + } }, pasteResolveOldToNewValues: { value: function(e3) { + a._super.pasteResolveOldToNewValues.apply(this, arguments), this._enableBargeIn.pasteResolveOldToNewValues(e3), this._enableAutomaticQuickReplies.pasteResolveOldToNewValues(e3), this._noMatchesMax.pasteResolveOldToNewValues(e3), this._noInputsMax.pasteResolveOldToNewValues(e3), this._endOfSessionMessage.pasteResolveOldToNewValues(e3), this._noInputsTimeout.pasteResolveOldToNewValues(e3), this._speechToTextSpeechDetectionSensitivity.pasteResolveOldToNewValues(e3), this._speechToTextMaxSpeechTimeout.pasteResolveOldToNewValues(e3), this._enableIntentClassificationHinting.pasteResolveOldToNewValues(e3), this._interDigitTimeout.pasteResolveOldToNewValues(e3), this._dtmfTerminatingCharacter.pasteResolveOldToNewValues(e3), this._confirmationRejectionsMax.pasteResolveOldToNewValues(e3), this._collectionLowConfidenceThreshold.pasteResolveOldToNewValues(e3), this._collectionHighConfidenceThreshold.pasteResolveOldToNewValues(e3), this._confirmationLowConfidenceThreshold.pasteResolveOldToNewValues(e3), this._noMatchApologies.forEach((t3) => t3.pasteResolveOldToNewValues(e3)), this._noInputsApologies.forEach((t3) => t3.pasteResolveOldToNewValues(e3)), this._noToConfirmationApologies.forEach((t3) => t3.pasteResolveOldToNewValues(e3)), this._confirmationNoMatchApologies.forEach((t3) => t3.pasteResolveOldToNewValues(e3)), this._confirmationNoInputApologies.forEach((t3) => t3.pasteResolveOldToNewValues(e3)); + } }, enableBargeIn: { enumerable: true, get: function() { + return this._enableBargeIn; + }, set: function(e3) { + this._enableBargeIn = this.reviveItem(e3, r2); + } }, enableAutomaticQuickReplies: { enumerable: true, get: function() { + return this._enableAutomaticQuickReplies; + }, set: function(e3) { + this._enableAutomaticQuickReplies = this.reviveItem(e3, r2); + } }, noMatchesMax: { enumerable: true, get: function() { + return this._noMatchesMax; + }, set: function(e3) { + this._noMatchesMax = this.reviveItem(e3, r2); + } }, noInputsMax: { enumerable: true, get: function() { + return this._noInputsMax; + }, set: function(e3) { + this._noInputsMax = this.reviveItem(e3, r2); + } }, noInputsMaxExceededHandlingType: { enumerable: true, get: function() { + return this._noInputsMaxExceededHandlingType; + }, set: function(e3) { + this._noInputsMaxExceededHandlingType = this.reviveEnum(e3, o); + } }, endOfSessionMessage: { enumerable: true, get: function() { + return this._endOfSessionMessage; + }, set: function(e3) { + this._endOfSessionMessage = this.reviveItem(e3, r2); + } }, noInputsTimeout: { enumerable: true, get: function() { + return this._noInputsTimeout; + }, set: function(e3) { + this._noInputsTimeout = this.reviveItem(e3, r2); + } }, speechToTextSpeechDetectionSensitivity: { enumerable: true, get: function() { + return this._speechToTextSpeechDetectionSensitivity; + }, set: function(e3) { + this._speechToTextSpeechDetectionSensitivity = this.reviveItem(e3, r2); + } }, speechToTextMaxSpeechTimeout: { enumerable: true, get: function() { + return this._speechToTextMaxSpeechTimeout; + }, set: function(e3) { + this._speechToTextMaxSpeechTimeout = this.reviveItem(e3, r2); + } }, enableIntentClassificationHinting: { enumerable: true, get: function() { + return this._enableIntentClassificationHinting; + }, set: function(e3) { + this._enableIntentClassificationHinting = this.reviveItem(e3, r2); + } }, interDigitTimeout: { enumerable: true, get: function() { + return this._interDigitTimeout; + }, set: function(e3) { + this._interDigitTimeout = this.reviveItem(e3, r2); + } }, dtmfTerminatingCharacter: { enumerable: true, get: function() { + return this._dtmfTerminatingCharacter; + }, set: function(e3) { + this._dtmfTerminatingCharacter = this.reviveItem(e3, r2); + } }, confirmationRejectionsMax: { enumerable: true, get: function() { + return this._confirmationRejectionsMax; + }, set: function(e3) { + this._confirmationRejectionsMax = this.reviveItem(e3, r2); + } }, collectionLowConfidenceThreshold: { enumerable: true, get: function() { + return this._collectionLowConfidenceThreshold; + }, set: function(e3) { + this._collectionLowConfidenceThreshold = this.reviveItem(e3, r2); + } }, collectionHighConfidenceThreshold: { enumerable: true, get: function() { + return this._collectionHighConfidenceThreshold; + }, set: function(e3) { + this._collectionHighConfidenceThreshold = this.reviveItem(e3, r2); + } }, confirmationLowConfidenceThreshold: { enumerable: true, get: function() { + return this._confirmationLowConfidenceThreshold; + }, set: function(e3) { + this._confirmationLowConfidenceThreshold = this.reviveItem(e3, r2); + } }, noMatchApologies: { enumerable: true, get: function() { + return this._noMatchApologies; + }, set: function(e3) { + e3 && (this._noMatchApologies = this.reviveArray(e3, r2)); + } }, noInputsApologies: { enumerable: true, get: function() { + return this._noInputsApologies; + }, set: function(e3) { + e3 && (this._noInputsApologies = this.reviveArray(e3, r2)); + } }, noToConfirmationApologies: { enumerable: true, get: function() { + return this._noToConfirmationApologies; + }, set: function(e3) { + e3 && (this._noToConfirmationApologies = this.reviveArray(e3, r2)); + } }, confirmationNoMatchApologies: { enumerable: true, get: function() { + return this._confirmationNoMatchApologies; + }, set: function(e3) { + e3 && (this._confirmationNoMatchApologies = this.reviveArray(e3, r2)); + } }, confirmationNoInputApologies: { enumerable: true, get: function() { + return this._confirmationNoInputApologies; + }, set: function(e3) { + e3 && (this._confirmationNoInputApologies = this.reviveArray(e3, r2)); + } } }), e2.exports = a; + }, 21601: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.ArchDefinitionVariable = void 0; + const n2 = i2(39637); + class r2 extends n2.ArchBaseDefinition { + constructor(e3) { + super(e3); + } + get dataType() { + return this.coreFactory.createArchWrapper(this._getCoreViewModel()); + } + get displayTypeName() { + return "ArchDefinitionVariable"; + } + get isArchDefinitionVariable() { + return true; + } + } + t2.ArchDefinitionVariable = r2; + }, 21623: (e2, t2, i2) => { + const n2 = i2(12614), r2 = i2(92378), o = i2(95275), a = i2(36019).default; + class s { + } + const l = new s(), u = { ignoreBadResponse: true }; + s.prototype.getBots = a.request("GET", "{public-api.apps}/api/v2/dialog/integrations/bots", r2, u), s.prototype.getBot = a.request("GET", "{public-api.apps}/api/v2/dialog/integrations/bots/{id}", n2, u), s.prototype.getVersion = a.request("GET", "{public-api.apps}/api/v2/dialog/integrations/bots/{botId}/versions/{versionId}", o, u), e2.exports = l; + }, 21637: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.ExpressionTypeCardOptions = void 0; + const n2 = i2(65615); + class r2 extends n2.BaseExpressionTypeCollectionOptions { + static create(e3, t3) { + return new this(t3).invokeOptionsCallback(e3); + } + constructor(e3) { + super(e3); + } + get className() { + return "ExpressionTypeCardOptions"; + } + get isExpressionTypeCardOptions() { + return true; + } + } + t2.ExpressionTypeCardOptions = r2; + }, 21647: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.ExpressionTypeComplexOptions = void 0; + const n2 = i2(31635), r2 = i2(80295), o = i2(80295), a = i2(65615), s = i2(55909), l = i2(33951), u = n2.__importDefault(i2(65302)); + class d extends a.BaseExpressionTypeCollectionOptions { + static create(e3, t3) { + return new this(t3).invokeOptionsCallback(e3); + } + constructor(e3) { + super(e3), (0, o.makeUnenumerable)(this, "_typeIdentifier"), (0, o.makeUnenumerable)(this, "_supportsLiteralMode"); + } + _setFromOptions(e3) { + super._setFromOptions(e3), this._setOptionIfSet(this.setTypeIdentifier, e3.typeIdentifier, "_typeIdentifier"); + } + get isExpressionTypeComplexOptions() { + return true; + } + get className() { + return "ExpressionTypeComplexOptions"; + } + get supportsLiteralMode() { + const e3 = u.default.getGlobalTypeGroup().getType(this._typeIdentifier); + return e3 && (!this.isCollection || (null == e3 ? void 0 : e3.supportsLiteralEditor)) && this.isInput; + } + get allowModeLiteral() { + const e3 = u.default.getGlobalTypeGroup().getType(this._typeIdentifier); + return !(!e3 || !(null == e3 ? void 0 : e3.allowLiteralSelect)) && this.supportsLiteralMode; + } + setAsInput(e3) { + l.ParameterValidator.expectBool(e3, () => s.ParameterInfo.createFunctionParameter(this.className, "setAsInput", "restrictToLiteral"), true); + const t3 = !(true === e3); + return this._configureInputOutputState(true, this.supportsLiteralMode, false, t3); + } + setAsOutput() { + return this._configureInputOutputState(false, false, true, false); + } + get typeIdentifier() { + return this._typeIdentifier; + } + get isCollection() { + return super.isCollection; + } + set isCollection(e3) { + super.isCollection = e3; + } + set typeIdentifier(e3) { + this._typeIdentifier = l.ParameterValidator.expectStringComplexIdentifier(e3, () => s.ParameterInfo.createPropertySet(this.className, "typeIdentifier", "value")); + } + setTypeIdentifier(e3) { + return this.typeIdentifier = e3, this; + } + } + t2.ExpressionTypeComplexOptions = d, n2.__decorate([(0, r2.enumerable)(true), n2.__metadata("design:type", String), n2.__metadata("design:paramtypes", [Object])], d.prototype, "typeIdentifier", null), n2.__decorate([(0, r2.enumerable)(true), n2.__metadata("design:type", Boolean), n2.__metadata("design:paramtypes", [Object])], d.prototype, "isCollection", null); + }, 21706: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.briefVoiceSurveyFlowListManager = void 0; + const n2 = i2(31635).__importStar(i2(24032)), r2 = i2(70726), o = i2(96618), a = i2(27862); + class s extends r2.BriefFlowListManager { + get dependencyType() { + return a.VoiceSurveyFlow; + } + constructor() { + super(), this.topic = n2.getTopic("BriefVoiceSurveyFlowListManager"), this.additionalQueryParams = { type: o.flowTypes.flowTypeVoiceSurvey }, this.className = "BriefVoiceSurveyFlowListManager", this.uiMetadataSectionName = "voiceSurveyFlows", this.actionsForUsageSearch = [], this.actionPropertyForUsageSearch = "voiceSurveyFlow", this.flowType = o.flowTypes.flowTypeVoiceSurvey, this._initialize(); + } + } + t2.briefVoiceSurveyFlowListManager = new s(); + }, 21733: (e2, t2, i2) => { + let n2 = null; + if (!i2(6697)) try { + n2 = i2(33089); + } catch (e3) { + n2 = null; + } + e2.exports = function(e3) { + e3 = e3.toLowerCase(); + try { + return n2 ? n2("./" + e3 + "/templates.js") : i2(4444)("./" + e3 + "/templates"); + } catch (e4) { + return i2(6142); + } + }; + }, 21762: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.debounceTime = void 0; + var n2 = i2(62326), r2 = i2(65212), o = i2(17214); + t2.debounceTime = function(e3, t3) { + return void 0 === t3 && (t3 = n2.asyncScheduler), r2.operate(function(i3, n3) { + var r3 = null, a = null, s = null, l = function() { + if (r3) { + r3.unsubscribe(), r3 = null; + var e4 = a; + a = null, n3.next(e4); + } + }; + function u() { + var i4 = s + e3, o2 = t3.now(); + if (o2 < i4) return r3 = this.schedule(void 0, i4 - o2), void n3.add(r3); + l(); + } + i3.subscribe(o.createOperatorSubscriber(n3, function(i4) { + a = i4, s = t3.now(), r3 || (r3 = t3.schedule(u, e3), n3.add(r3)); + }, function() { + l(), n3.complete(); + }, void 0, function() { + a = r3 = null; + })); + }); + }; + }, 21770: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(54757)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "surveyAnswerOptionCollection"; + } + get displayTypeName() { + return "ArchValueSurveyAnswerOptionCollection"; + } + get isArchValueSurveyAnswerOptionCollection() { + return true; + } + getAnswerOptionForAnswerOptionText(e3) { + var t3, i3; + const n3 = this._infoParm("answerOptionText", "getAnswerOptionForAnswerOptionText"); + if (this._checkItemIsValidLiteralString(n3, e3), !(null == e3 ? void 0 : e3.length)) return void this.logNote("the answer option text specified in the answerOptionText parameter is blank. Exiting."); + const r3 = this.length; + if (r3) { + this.logNoteVerbose(`looking for an answer option in this collection with the text '${e3}'.`); + for (let n4 = 0; n4 < r3; n4++) { + const r4 = this.getItemByIndex(n4); + if ((null === (t3 = r4.text) || void 0 === t3 ? void 0 : t3.isLiteral) && (null === (i3 = r4.text) || void 0 === i3 ? void 0 : i3.valueText) === e3) return this.logNoteVerbose(`success, the answer option at index ${n4} matched.`), r4; + } + this.logNoteVerbose(`there is no answer option in this collection that could be found for the answer text '${e3}'.`); + } else this.logNote("there are no answer options in this survey answer option collection. Exiting."); + } + } + t2.default = r2; + }, 21875: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.animationFrames = void 0; + var n2 = i2(48051), r2 = i2(22931), o = i2(35726); + function a(e3) { + return new n2.Observable(function(t3) { + var i3 = e3 || r2.performanceTimestampProvider, n3 = i3.now(), a2 = 0, s2 = function() { + t3.closed || (a2 = o.animationFrameProvider.requestAnimationFrame(function(r3) { + a2 = 0; + var o2 = i3.now(); + t3.next({ timestamp: e3 ? o2 : r3, elapsed: o2 - n3 }), s2(); + })); + }; + return s2(), function() { + a2 && o.animationFrameProvider.cancelAnimationFrame(a2); + }; + }); + } + t2.animationFrames = function(e3) { + return e3 ? a(e3) : s; + }; + var s = a(); + }, 21946: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.bindNodeCallback = void 0; + var n2 = i2(17474); + t2.bindNodeCallback = function(e3, t3, i3) { + return n2.bindCallbackInternals(true, e3, t3, i3); + }; + }, 21954: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(84655)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "worktypeStatus"; + } + get initialValue() { + return this._initialValue; + } + get displayTypeName() { + return "ArchVariableWorktypeStatus"; + } + get isArchVariableWorktypeStatus() { + return true; + } + } + t2.default = r2; + }, 21998: (e2, t2, i2) => { + "use strict"; + var n2 = i2(9805), r2 = [3, 4, 5, 6, 7, 8, 9, 10, 11, 13, 15, 17, 19, 23, 27, 31, 35, 43, 51, 59, 67, 83, 99, 115, 131, 163, 195, 227, 258, 0, 0], o = [16, 16, 16, 16, 16, 16, 16, 16, 17, 17, 17, 17, 18, 18, 18, 18, 19, 19, 19, 19, 20, 20, 20, 20, 21, 21, 21, 21, 16, 72, 78], a = [1, 2, 3, 4, 5, 7, 9, 13, 17, 25, 33, 49, 65, 97, 129, 193, 257, 385, 513, 769, 1025, 1537, 2049, 3073, 4097, 6145, 8193, 12289, 16385, 24577, 0, 0], s = [16, 16, 16, 16, 17, 17, 18, 18, 19, 19, 20, 20, 21, 21, 22, 22, 23, 23, 24, 24, 25, 25, 26, 26, 27, 27, 28, 28, 29, 29, 64, 64]; + e2.exports = function(e3, t3, i3, l, u, d, c, p) { + var _, h, m, g, f, T, y, S, A, N = p.bits, O = 0, I = 0, v = 0, C = 0, b = 0, E = 0, R = 0, w = 0, D = 0, P = 0, M = null, F = 0, L = new n2.Buf16(16), x = new n2.Buf16(16), k = null, V = 0; + for (O = 0; O <= 15; O++) L[O] = 0; + for (I = 0; I < l; I++) L[t3[i3 + I]]++; + for (b = N, C = 15; C >= 1 && 0 === L[C]; C--) ; + if (b > C && (b = C), 0 === C) return u[d++] = 20971520, u[d++] = 20971520, p.bits = 1, 0; + for (v = 1; v < C && 0 === L[v]; v++) ; + for (b < v && (b = v), w = 1, O = 1; O <= 15; O++) if (w <<= 1, (w -= L[O]) < 0) return -1; + if (w > 0 && (0 === e3 || 1 !== C)) return -1; + for (x[1] = 0, O = 1; O < 15; O++) x[O + 1] = x[O] + L[O]; + for (I = 0; I < l; I++) 0 !== t3[i3 + I] && (c[x[t3[i3 + I]]++] = I); + if (0 === e3 ? (M = k = c, T = 19) : 1 === e3 ? (M = r2, F -= 257, k = o, V -= 257, T = 256) : (M = a, k = s, T = -1), P = 0, I = 0, O = v, f = d, E = b, R = 0, m = -1, g = (D = 1 << b) - 1, 1 === e3 && D > 852 || 2 === e3 && D > 592) return 1; + for (; ; ) { + y = O - R, c[I] < T ? (S = 0, A = c[I]) : c[I] > T ? (S = k[V + c[I]], A = M[F + c[I]]) : (S = 96, A = 0), _ = 1 << O - R, v = h = 1 << E; + do { + u[f + (P >> R) + (h -= _)] = y << 24 | S << 16 | A; + } while (0 !== h); + for (_ = 1 << O - 1; P & _; ) _ >>= 1; + if (0 !== _ ? (P &= _ - 1, P += _) : P = 0, I++, 0 === --L[O]) { + if (O === C) break; + O = t3[i3 + c[I]]; + } + if (O > b && (P & g) !== m) { + for (0 === R && (R = b), f += v, w = 1 << (E = O - R); E + R < C && !((w -= L[E + R]) <= 0); ) E++, w <<= 1; + if (D += 1 << E, 1 === e3 && D > 852 || 2 === e3 && D > 592) return 1; + u[m = P & g] = b << 24 | E << 16 | f - d; + } + } + return 0 !== P && (u[f + P] = O - R << 24 | 64 << 16), p.bits = b, 0; + }; + }, 22028: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = i2(30801), o = n2.__importDefault(i2(21345)); + class a extends o.default { + constructor(e3) { + super(e3); + } + get _actionTypeId() { + return r2.terminateWorkitemActionType; + } + get displayTypeName() { + return this._scriptingName; + } + get isArchActionTerminateWorkitem() { + return true; + } + get terminateWorkitemOutputsFailure() { + return this._coreActionViewModel.errorBindings ? this.coreFactory.createArchWrapper(this._coreActionViewModel.errorBindings) : null; + } + } + t2.default = a; + }, 22036: (e2, t2, i2) => { + "use strict"; + const n2 = i2(31635), r2 = i2(17604), o = n2.__importDefault(i2(27203)), a = i2(12179), s = n2.__importDefault(i2(97891)), l = i2(87870), u = n2.__importDefault(i2(55581)), d = i2(47957); + class c extends u.default { + constructor(e3, t3) { + super(e3), this._loadModel(t3); + } + static get branchInfo() { + return o.default.successFailure; + } + get isSecureDataAction() { + return true; + } + static get managedProperties() { + return [{ createDetails: l.NoteActionProperty.createCreateDetails((0, r2.sprintf)(d.securedActions.securedActionsInformationalMessage, d.generic.branches.matchExact), "info", "getSecureDataNote"), property: "actionInformationalMessage", yamlOptions: c.createYamlOptions("actionInformationalMessage", (e3) => e3.setSkipProperty(true)) }]; + } + } + c.info = s.default.createActionInfo({ actionClass: c, canBeInTask: true, canBeTreeNode: false, helpTopic: a.helpTopics.actions.getSecuredData, modelClass: i2(29680), name: d.actions.getSecuredData, scriptingName: "ArchActionGetSecuredData" }), t2.A = c; + }, 22044: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.distinctUntilChanged = void 0; + var n2 = i2(87699), r2 = i2(65212), o = i2(17214); + function a(e3, t3) { + return e3 === t3; + } + t2.distinctUntilChanged = function(e3, t3) { + return void 0 === t3 && (t3 = n2.identity), e3 = null != e3 ? e3 : a, r2.operate(function(i3, n3) { + var r3, a2 = true; + i3.subscribe(o.createOperatorSubscriber(n3, function(i4) { + var o2 = t3(i4); + !a2 && e3(r3, o2) || (a2 = false, r3 = o2, n3.next(i4)); + })); + }); + }; + }, 22047: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(84655)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "json"; + } + get displayTypeName() { + return "ArchVariableJson"; + } + get initialValue() { + return this._initialValue; + } + get dataType() { + return this.coreFactory.createArchWrapper(this._coreVariableViewModel.type); + } + get isArchVariableJson() { + return true; + } + } + t2.default = r2; + }, 22105: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.asap = t2.asapScheduler = void 0; + var n2 = i2(78051), r2 = i2(23952); + t2.asapScheduler = new r2.AsapScheduler(n2.AsapAction), t2.asap = t2.asapScheduler; + }, 22124: (e2, t2, i2) => { + const n2 = i2(92140); + function r2() { + Object.defineProperties(this, { _entities: { value: [], writable: true } }), this.pageCount = void 0, this.pageNumber = void 0, this.pageSize = void 0, this.total = void 0, r2.baseConstructor.apply(this, arguments); + } + i2(45214).extend(r2, "PagedList"), Object.defineProperties(r2.prototype, { entities: { enumerable: true, get: function() { + return this._entities; + }, set: function(e3) { + n2.isArray(e3) && (this._entities = e3); + } }, results: { enumerable: true, get: function() { + return this.entities; + }, set: function(e3) { + this.entities = e3; + } } }), e2.exports = r2; + }, 22226: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.textIsExpressionStringLiteral = a, t2.rawEscapeStringForExpressionMode = s, t2.rawUnescapeExpressionModeString = l, t2.getQuotedExpressionStringLiteral = u, t2.getUnquotedExpressionStringLiteralContents = d; + const n2 = i2(31635).__importDefault(i2(92140)); + function r2(e3) { + return e3 ? e3.replace(/\\"/g, '"').replace(/\\\\/g, "\\").replace(/\r/g, "\r").replace(/\n/g, "\n").replace(/\t/g, " ") : ""; + } + function o(e3) { + return e3 ? e3.replace(/\\/g, "\\\\").replace(/\"/g, '\\"').replace(/\t/g, "\\t").replace(/\r/g, "\\r").replace(/\n/g, "\\n") : ""; + } + function a(e3, t3) { + return !(!n2.default.isString(e3) || (t3 || (e3 = e3.trim()), e3.length < 2 || '"' !== e3[0] || '"' !== e3[e3.length - 1])); + } + function s(e3) { + return o(e3); + } + function l(e3) { + return r2(e3); + } + function u(e3) { + return e3 ? `"${o(e3)}"` : '""'; + } + function d(e3) { + return e3 && 1 !== e3.length ? '"' !== e3[0] || '"' !== e3[e3.length - 1] ? e3 : r2(e3.substring(1, e3.length - 1)) : e3; + } + t2.default = { textIsExpressionStringLiteral: a, rawEscapeStringForExpressionMode: s, rawUnescapeExpressionModeString: l, getQuotedExpressionStringLiteral: u, getUnquotedExpressionStringLiteralContents: d }; + }, 22274: function(e2, t2, i2) { + !(function(e3) { + "use strict"; + e3.defineLocale("nb", { months: "januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"), monthsShort: "jan._feb._mars_apr._mai_juni_juli_aug._sep._okt._nov._des.".split("_"), monthsParseExact: true, weekdays: "s\xF8ndag_mandag_tirsdag_onsdag_torsdag_fredag_l\xF8rdag".split("_"), weekdaysShort: "s\xF8._ma._ti._on._to._fr._l\xF8.".split("_"), weekdaysMin: "s\xF8_ma_ti_on_to_fr_l\xF8".split("_"), weekdaysParseExact: true, longDateFormat: { LT: "HH:mm", LTS: "HH:mm:ss", L: "DD.MM.YYYY", LL: "D. MMMM YYYY", LLL: "D. MMMM YYYY [kl.] HH:mm", LLLL: "dddd D. MMMM YYYY [kl.] HH:mm" }, calendar: { sameDay: "[i dag kl.] LT", nextDay: "[i morgen kl.] LT", nextWeek: "dddd [kl.] LT", lastDay: "[i g\xE5r kl.] LT", lastWeek: "[forrige] dddd [kl.] LT", sameElse: "L" }, relativeTime: { future: "om %s", past: "%s siden", s: "noen sekunder", ss: "%d sekunder", m: "ett minutt", mm: "%d minutter", h: "en time", hh: "%d timer", d: "en dag", dd: "%d dager", w: "en uke", ww: "%d uker", M: "en m\xE5ned", MM: "%d m\xE5neder", y: "ett \xE5r", yy: "%d \xE5r" }, dayOfMonthOrdinalParse: /\d{1,2}\./, ordinal: "%d.", week: { dow: 1, doy: 4 } }); + })(i2(95093)); + }, 22309: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(46210)), r2 = i2(30801), o = i2(32678), a = i2(26847); + class s extends n2.default { + constructor(e3) { + super(e3), this._agentManager = o.dialogflowCxAgentManager; + } + get _actionTypeId() { + return r2.dialogflowCxActionType; + } + addSessionParameterNameValuePair(e3, t3) { + return this.addSessionVariableNameValuePair(e3, t3); + } + addSessionParameterOutputNameValuePair(e3, t3) { + return this._addSessionVariableOutputNameValuePair(e3, t3); + } + addLiveAgentHandoffMetadataNameValuePair(e3, t3) { + return this._checkItemIsValidLiteralString(this._infoParm("nameLiteral", "addLiveAgentHandoffMetadataNameValuePair"), e3, true), this._checkItemIsValidLiteralStringOrArchVariableString(this._infoParm("outputVariable", "addLiveAgentHandoffMetadataNameValuePair"), t3, true), this.liveAgentHandoffMetadata._addNameValueAssignment(e3, t3, true, true); + } + get displayTypeName() { + return this._scriptingName; + } + getOutputByIntentName(e3) { + throw this.logErrorAndThrow(`The Call Dialogflow CX Bot action does not support getting outputs by an intent name (requested: '${e3}').`), new Error("unreachable"); + } + get isArchActionCallDialogflowCxBot() { + return true; + } + get liveAgentHandoffMetadata() { + const e3 = this._getCoreViewModel().liveAgentHandoffMetadata; + if (e3) return this.coreFactory.createArchBaseValueContainer(e3); + } + get outputSuccess() { + return this._getOutputById(a.outputIds.success, true); + } + get sessionParameterOutputs() { + return this._sessionVariableOutputs; + } + get sessionParameters() { + return this.sessionVariables; + } + } + t2.default = s; + }, 22322: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.ArchTtsEngines = void 0; + const n2 = i2(31635), r2 = n2.__importDefault(i2(94225)), o = n2.__importDefault(i2(6953)), a = n2.__importDefault(i2(8471)); + class s extends a.default { + get logStr() { + const e3 = []; + return this._appendLogStrType(e3, this.displayTypeName), this._createLogStrFromParts(e3); + } + get displayTypeName() { + return "ArchTtsEngines"; + } + getEngineByName(e3) { + const t3 = this._infoMethod("getEngineByName"); + this._ensureTtsInfoAvailable(t3, r2.default); + const i3 = this._infoParm("engineName", "getEngineByName"); + this._checkItemIsValidLiteralString(i3, e3); + const n3 = o.default.getItemByName(e3); + if (n3) return this.logNoteVerbose(`a text to speech engine with the name '${e3}' was found.`), this.coreFactory.createArchWrapper(n3); + this.logItemWarning(i3, `a text to speech engine with the name '${e3}' was not found.`); + } + get ttsEngineGenesys() { + const e3 = this._infoPropGet("ttsEngineGenesys"); + return this._ensureTtsInfoAvailable(e3, r2.default), this.coreFactory.createArchWrapper(o.default.getGenesysEngine()); + } + } + t2.ArchTtsEngines = s; + const l = new s(); + t2.default = l; + }, 22456: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = i2(17604), o = n2.__importDefault(i2(41510)), a = n2.__importStar(i2(98442)), s = n2.__importDefault(i2(83630)), l = i2(15717), u = i2(47957); + class d extends s.default { + constructor({ builderViewModel: e3, owningExpressionViewModel: t3, builderPartModel: i3, reId: n3 }) { + super({ builderViewModel: e3, owningExpressionViewModel: t3, builderPartModel: i3, reId: n3 }); + } + get className() { + return "LanguageOutputModeBuilderPartContainerViewModel"; + } + get isLanguageOutputModeBuilderPartContainerViewModel() { + return true; + } + get outputMode() { + return this.criteria ? this.criteria.outputMode : ""; + } + get containerDisplayString() { + let e3 = ""; + const t3 = a.getLanguageEntry(this.languageTag); + t3 && (e3 = (0, r2.sprintf)(u.language.labelAndTagDisplayStr, t3.text), e3 += o.default.itemListing.itemSeparator); + const i3 = l.getOutputModeForOutputModeId(this.outputMode); + return e3 += (0, r2.sprintf)(u.flow.outputMode.labelAndValue, i3 ? i3.displayStr : this.outputMode), e3; + } + _validateContainerOnly(e3, t3) { + return super._validateContainerOnly(e3, t3); + } + } + t2.default = d; + }, 22465: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importDefault(i2(92140)), o = n2.__importDefault(i2(22226)), a = n2.__importDefault(i2(70310)); + class s extends a.default { + constructor() { + super(), this._displayFacetsAsInputWhenOnlyOneValueAllowed = false; + } + static create() { + return new s(); + } + static createMinMaxLength(e3, t3, i3) { + const n3 = new s(); + return r2.default.isUndefined(e3) || n3.setMinLength(e3), r2.default.isUndefined(t3) || n3.setMaxLength(t3), r2.default.isUndefined(i3) || n3.setTrim(i3), n3; + } + get isStringFacets() { + return true; + } + _facetGetExpressionItemLitValue(e3) { + const t3 = e3.getLitAsString(); + return t3 ? o.default.rawUnescapeExpressionModeString(t3) : t3; + } + _setFromFacets(e3) { + super._setFromFacets(e3), this._setFacetIfSet(this.setDisplayFacetsAsInputWhenOnlyOneValueAllowed, e3.displayFacetsAsInputWhenOnlyOneValueAllowed); + } + setDisplayFacetsAsInputWhenOnlyOneValueAllowed(e3) { + this._displayFacetsAsInputWhenOnlyOneValueAllowed = e3; + } + get displayFacetsAsInputWhenOnlyOneValueAllowed() { + return this._displayFacetsAsInputWhenOnlyOneValueAllowed; + } + } + t2.default = s; + }, 22488: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importDefault(i2(94225)), o = i2(98835), a = n2.__importDefault(i2(40559)); + class s extends a.default { + constructor(e3) { + super(e3, o.groupManager); + } + get _globalTypeName() { + return "groupCollection"; + } + get displayTypeName() { + return "ArchValueGroupCollection"; + } + get _searchByValueSearchProperty() { + return "name"; + } + addLiteralByGroupIdAsync(e3, t3) { + return n2.__awaiter(this, void 0, void 0, function* () { + return this._checkItemIsValidLiteralString(this._infoParm("groupId", "addLiteralByGroupIdAsync"), e3), this._checkItemIsValidFunction(this._infoParm("callbackFunction", "addLiteralByGroupIdAsync"), t3, true), this._addLiteralByIdAsync(e3, "group").then(() => r2.default.executeCallback(this, "addLiteralByGroupIdAsync", t3, this)); + }); + } + addLiteralByGroupNameAsync(e3, t3) { + return n2.__awaiter(this, void 0, void 0, function* () { + return this._checkItemIsValidLiteralString(this._infoParm("groupName", "addLiteralByGroupNameAsync"), e3), this._checkItemIsValidFunction(this._infoParm("callbackFunction", "addLiteralByGroupNameAsync"), t3, true), this._addLiteralByValueAsync(e3, "group").then(() => r2.default.executeCallback(this, "addLiteralByGroupNameAsync", t3, this)); + }); + } + get isArchValueGroupCollection() { + return true; + } + } + t2.default = s; + }, 22599: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = i2(17604), o = n2.__importDefault(i2(92140)), a = i2(55909), s = i2(33951), l = n2.__importDefault(i2(73198)), u = n2.__importDefault(i2(2315)), d = n2.__importDefault(i2(35882)), c = i2(16958), p = i2(24032).getTopic("ExpressionGenerator"); + class _ { + constructor() { + Object.defineProperties(this, { _aboutToAddGenerationCallback: { writable: true }, _defaultGenerationBucketName: { writable: true }, _generationDescription: { writable: true }, _generationBlueprintOrigMetaData: { value: [], writable: true }, _generationBlueprintBuiltResults: { value: [], writable: true }, _generationBlueprintBuiltMetaData: { value: [], writable: true }, _initialized: { value: false, writable: true }, _sprintfString: { writable: true } }); + } + static create() { + return new _(); + } + _initialize() { + let e3 = ""; + o.default.each(this._generationBlueprintOrigMetaData, (t3) => { + switch (t3.type) { + case 1: + case 2: + case 11: + case 12: + case 13: + case 10: + case 5: + case 8: + o.default.isString(e3) && e3.length > 0 && (this._generationBlueprintBuiltResults.push(e3), this._generationBlueprintBuiltMetaData.push(void 0), e3 = ""), this._generationBlueprintBuiltMetaData.push(t3), this._generationBlueprintBuiltResults.push(void 0); + break; + case 3: + case 4: + e3 += t3.operatorText; + break; + case 6: + e3 += t3.propertyAccessText; + break; + case 9: + e3 += t3.text; + break; + case 7: + e3 += t3.token; + break; + default: + throw p.error(`Unhandled Type for expressionBitMetaData: ${JSON.stringify(t3)}`), "unhandled type!"; + } + }), e3.length > 0 && (this._generationBlueprintBuiltResults.push(e3), this._generationBlueprintBuiltMetaData.push(void 0)), this._initialized = true; + } + addFuncCall(e3) { + return this._generationBlueprintOrigMetaData.push({ type: 1, funcName: e3, funcCallText: `${e3}(` }), this; + } + _addGenerationBucket(e3, t3, i3, n3) { + return this._generationBlueprintOrigMetaData.push({ type: n3, generationBucketName: e3, separatorText: o.default.isString(i3) ? i3 : "" }), true === t3 && (this._defaultGenerationBucketName = e3), this; + } + addSingleGenerationBucket(e3, t3) { + return this._addGenerationBucket(e3, t3, "", 13); + } + addFuncCallParmGenerationBucket(e3, t3) { + return this._addGenerationBucket(e3, t3, " ", 11); + } + addLogicalAndParmGenerationBucket(e3, t3) { + return this._addGenerationBucket(e3, t3, " And ", 12); + } + addLogicalOrParmGenerationBucket(e3, t3) { + return this._addGenerationBucket(e3, t3, " Or ", 12); + } + createGeneration() { + return d.default.createForGenerator(this); + } + get defaultGenerationBucketName() { + return this._defaultGenerationBucketName; + } + addFuncCallEnd() { + return this._generationBlueprintOrigMetaData.push({ type: 2 }), this; + } + addTokenReplacement(e3) { + return this._generationBlueprintOrigMetaData.push({ type: 8, tokenIndex: e3 }), this; + } + addToken(e3) { + return this._generationBlueprintOrigMetaData.push({ type: 7, token: e3 }), this; + } + addText(e3) { + return this._generationBlueprintOrigMetaData.push({ type: 9, text: e3 }), this; + } + addTokenBooleanFalse() { + return this.addToken(l.default.false); + } + addTokenBooleanTrue() { + return this.addToken(l.default.true); + } + addTokenNotSet() { + return this.addToken(l.default.notSet); + } + addPropertyAccess(e3) { + return this._generationBlueprintOrigMetaData.push({ type: 6, propertyName: e3, propertyAccessText: `.${e3}` }), this; + } + addOperatorOneOperand(e3) { + return this._generationBlueprintOrigMetaData.push({ type: 3, operator: e3, operatorText: `${e3}` }), this; + } + addOperatorTwoOperand(e3) { + return this._generationBlueprintOrigMetaData.push({ type: 4, operator: e3, operatorText: ` ${e3} ` }), this; + } + addOperatorMinus() { + return this.addOperatorTwoOperand("-"); + } + addOperatorAnd() { + return this.addOperatorTwoOperand("And"); + } + addOpenParen() { + return this.addToken("("); + } + addCloseParen() { + return this.addToken(")"); + } + addNotSet() { + return this.addToken(l.default.notSet); + } + addLastGeneratedText() { + return this._generationBlueprintOrigMetaData.push({ type: 10 }), this; + } + addOperatorNot() { + return this.addOperatorOneOperand("!"); + } + addOperatorEquals() { + return this.addOperatorTwoOperand("=="); + } + addOperatorNotEquals() { + return this.addOperatorTwoOperand("!="); + } + addOperatorGreaterThan() { + return this.addOperatorTwoOperand(">"); + } + addOperatorGreaterThanOrEqualTo() { + return this.addOperatorTwoOperand(">="); + } + addOperatorLessThan() { + return this.addOperatorTwoOperand("<"); + } + addOperatorLessThanOrEqualTo() { + return this.addOperatorTwoOperand("<="); + } + addOperatorOr() { + return this.addOperatorTwoOperand("Or"); + } + addOperatorPlus() { + return this.addOperatorTwoOperand("+"); + } + addFuncParameterSeparator() { + return this._generationBlueprintOrigMetaData.push({ type: 5 }), this; + } + get className() { + return "ExpressionGenerator"; + } + get sprintfString() { + if (o.default.isUndefined(this._sprintfString)) { + let e3, t3; + try { + e3 = d.default.createSprintfGeneration(this), t3 = u.default.createSprintfBuildTextHelper(), this._sprintfString = e3.generate(t3); + } catch (e4) { + console.error(`Exception caught in sprintfString prop get of '${e4.message}'`); + } finally { + e3 && e3.destroy(), t3 && t3.destroy(); + } + } + return this._sprintfString; + } + _generate(e3, t3) { + this._initialized || console.error("bad!"); + const i3 = o.default.clone(this._generationBlueprintBuiltResults); + let n3, r3, a2; + for (let s2 = 0; s2 < i3.length; s2++) if (void 0 === i3[s2]) switch (n3 = this._generationBlueprintBuiltMetaData[s2], n3.type) { + case 1: + t3.addFuncCall(n3.funcCallText); + break; + case 2: + t3.endFuncCall(); + break; + case 10: + t3.addResultPart(t3.buildTextHelper.allowSprintfCustomizations ? "" : t3.lastBucketGenerationText); + break; + case 11: + r3 = e3.getGenerationForBucket(n3.generationBucketName), o.default.isUndefined(r3) ? t3.addResultPart(t3.buildTextHelper.allowSprintfCustomizations ? `` : "") : o.default.each(r3, (e4) => { + t3.addFuncParmSeparator(), t3.setBucketGenerationStart(true), e4._generate(t3), t3.setBucketGenerationEnd(); + }); + break; + case 12: + r3 = e3.getGenerationForBucket(n3.generationBucketName), o.default.isUndefined(r3) ? t3.addResultPart(t3.buildTextHelper.allowSprintfCustomizations ? `` : "") : (a2 = 0, o.default.each(r3, (e4) => { + a2 > 0 && t3.addGenerationSeparator(n3.separatorText), t3.setBucketGenerationStart(), e4._generate(t3), t3.setBucketGenerationEnd(), a2++; + })); + break; + case 13: + r3 = e3.getGenerationForBucket(n3.generationBucketName), o.default.isUndefined(r3) ? t3.addResultPart(t3.buildTextHelper.allowSprintfCustomizations ? `` : "") : o.default.each(r3, (e4) => { + t3.setBucketGenerationStart(true), e4._generate(t3), t3.setBucketGenerationEnd(); + }); + break; + case 5: + t3.addFuncParmSeparator(); + break; + case 8: + t3.addResultPart(e3.getReplacementTokenAtIndex(n3.tokenIndex)); + break; + default: + throw p.error(`Unhandled Type for expressionBitMetaData: ${JSON.stringify(n3)}`), "Unhandled Type"; + } + else t3.addResultPart(i3[s2]); + } + getWillGenerateNotSetOrStringLiteral(e3) { + if (1 !== this._generationBlueprintBuiltResults.length) return false; + let t3 = e3.generate(); + return !(!o.default.isString(t3) || 0 === t3.length || (t3 = t3.trim(), t3 !== l.default.notSet && (t3.length < 2 || '"' !== t3[0] || t3.indexOf('"', 1) !== t3.length - 1))); + } + get aboutToAddGenerationCallback() { + return this._aboutToAddGenerationCallback; + } + set aboutToAddGenerationCallback(e3) { + this._aboutToAddGenerationCallback = e3; + } + get generationDescription() { + return this._generationDescription; + } + set generationDescription(e3) { + this._generationDescription = s.ParameterValidator.expectString(e3, () => a.ParameterInfo.createPropertySet(this.className, "generationDescription", "value"), true); + } + setGenerationDescription(e3) { + return this.generationDescription = e3, this; + } + setGenerationDescriptionFromType(e3) { + if (s.ParameterValidator.expectExpressionType(e3, () => a.ParameterInfo.createPropertySet(this.className, "setGenerationDescriptionFromType", "value")), e3) return this.setGenerationDescription(e3.isCollection ? (0, r2.sprintf)(c.generators.common.emptyCollectionTypeGenerationDescription, e3.displayString) : (0, r2.sprintf)(c.generators.common.notSetSingletonTypeGenerationDescription, e3.displayString)); + } + setAboutToAddGenerationCallback(e3) { + return this.aboutToAddGenerationCallback = s.ParameterValidator.expectFunction(e3, () => a.ParameterInfo.createFunctionParameter(this.className, "aboutToAddGenerationCallbackFunction")), this; + } + verifySprintfStringAndInitialize(e3) { + return this._initialize(), this; + } + } + t2.default = _; + }, 22604: (e2, t2, i2) => { + "use strict"; + const n2 = i2(31635), r2 = i2(80295), o = i2(19596); + class a extends o.DataContract { + constructor(e3) { + super(e3); + } + get grammarId() { + return this._grammarId; + } + set grammarId(e3) { + this._grammarId = e3; + } + get language() { + return this._language; + } + set language(e3) { + this._language = e3; + } + get fileUrl() { + return this._fileUrl; + } + set fileUrl(e3) { + this._fileUrl = e3; + } + } + t2.A = a, n2.__decorate([(0, r2.enumerable)(true), n2.__metadata("design:type", String), n2.__metadata("design:paramtypes", [String])], a.prototype, "grammarId", null), n2.__decorate([(0, r2.enumerable)(true), n2.__metadata("design:type", String), n2.__metadata("design:paramtypes", [String])], a.prototype, "language", null), n2.__decorate([(0, r2.enumerable)(true), n2.__metadata("design:type", String), n2.__metadata("design:paramtypes", [String])], a.prototype, "fileUrl", null); + }, 22668: (e2, t2, i2) => { + const n2 = i2(92140), r2 = i2(45421), o = i2(25190), { ParameterInfo: a } = i2(55909), { ParameterValidator: s } = i2(33951); + e2.exports = class extends r2 { + constructor(e3) { + super(e3), Object.defineProperties(this, { _clipboardObject: { writable: true, enumerable: false }, _pasteCurrentContent: { writable: true, enumerable: false }, _pasteDestActionContainer: { writable: true, enumerable: false }, _pasteDestMenuOrStateOrTaskArray: { writable: true, enumerable: false }, _pasteDestFlowVariableGroup: { writable: true, enumerable: false }, _pasteDestFlowViewModel: { writable: true, enumerable: false }, _pasteDestViewModelTaskOrState: { writable: true, enumerable: false }, _pasteDestViewModel: { writable: true, enumerable: false }, _pasteInProgress: { writable: true, enumerable: false }, _pasteOldIdToNewIdMap: { writable: true, enumerable: false, value: new o(this.clipboardLogging, "ID Map") }, _pasteOldMenuNameToNewMenuNameMap: { writable: true, enumerable: false, value: new o(this.clipboardLogging, "Menu Name Map") }, _pasteOldTaskNameToNewTaskNameMap: { writable: true, enumerable: false, value: new o(this.clipboardLogging, "Task Name Map") }, _pasteOldTrackingIdToNewTrackingIdMap: { writable: true, enumerable: false, value: new o(this.clipboardLogging, "Tracking ID Map") }, _pasteOldStateNameToNewStateNameMap: { writable: true, enumerable: false, value: new o(this.clipboardLogging, "State Name Map") }, _pasteOldVariableNameToNewVariableNameArray: { writable: true, enumerable: false }, _pasteSettings: { writable: true, enumerable: false } }), this.reset(); + } + _fixDestinationViewModel(e3) { + return e3 ? e3.isMenuChoice && e3.isSubMenu && e3.menu ? e3.menu : e3 : null; + } + get pasteActionsToEndOfActionContainer() { + return !!this._pasteSettings && this._pasteSettings.pasteActionsToEndOfActionContainer; + } + get additionalInfo() { + return this._pasteSettings ? this._pasteSettings.additionalInfoResults : void 0; + } + get className() { + return "ClipboardPasteContext"; + } + get clipboardObject() { + return this._clipboardObject; + } + get destAllowableClipboardContentTypes() { + return this._pasteSettings ? this._pasteSettings.allowableClipboardContentTypes : void 0; + } + get currentContent() { + return this._pasteCurrentContent; + } + get destFlowViewModel() { + return this._pasteDestFlowViewModel; + } + get destFlowVariableGroup() { + return this._pasteDestFlowVariableGroup; + } + get destActionContainer() { + return this._pasteDestActionContainer; + } + get destMenuOrStateOrTaskArray() { + return this._pasteDestMenuOrStateOrTaskArray; + } + get destViewModel() { + return this._pasteDestViewModel; + } + get destViewModelTaskOrState() { + return this._pasteDestViewModelTaskOrState; + } + set destViewModelTaskOrState(e3) { + this._pasteDestViewModelTaskOrState = s.expectTrue(!n2.isUndefined(e3) && e3.isTaskLike, e3, "BaseTaskViewModel", () => a.createPropertySet(this.className, "destViewModelTaskOrState", "newValue is not a state or task")); + } + getDestFlowNameAndIdStr() { + return this._getNameAndIdStr(this._pasteDestFlowViewModel); + } + get pasteInProgress() { + return this._pasteInProgress; + } + get pasteSettings() { + return this._pasteSettings; + } + get oldIdToNewIdMap() { + return this._pasteOldIdToNewIdMap; + } + get oldMenuNameToNewMenuNameMap() { + return this._pasteOldMenuNameToNewMenuNameMap; + } + get oldStateNameToNewStateNameMap() { + return this._pasteOldStateNameToNewStateNameMap; + } + get oldTaskNameToNewTaskNameMap() { + return this._pasteOldTaskNameToNewTaskNameMap; + } + _performDestroy() { + this.reset(); + } + dump() { + if (!this.shouldLog) return; + const e3 = this.suppressLogHeaders; + this.suppressLogHeaders = true, this.log("----------------------------------------------------------------------------------------"), this.log(" Paste Context Contents"), this.log(" ----------------------"), this._pasteOldIdToNewIdMap.dump(), this.log("> Variable Name Map"), n2.isEmpty(this._pasteOldVariableNameToNewVariableNameArray) ? this.log(" None.") : n2.each(this._pasteOldVariableNameToNewVariableNameArray, function(e4) { + this.log(" " + e4.oldVarName + " -> " + e4.newVarName); + }.bind(this)), this.log(""), this._pasteOldTrackingIdToNewTrackingIdMap.dump(), this._pasteOldStateNameToNewStateNameMap.dump(), this._pasteOldTaskNameToNewTaskNameMap.dump(), this._pasteOldMenuNameToNewMenuNameMap.dump(), this.log("----------------------------------------------------------------------------------------"), this.suppressLogHeaders = e3; + } + get isClipboardPasteContext() { + return true; + } + get currentContentFlowId() { + return this.currentContent.originalObjectFlowId; + } + resetCurrentContent() { + this._pasteCurrentContent = void 0; + } + setCurrentContent(e3) { + this._pasteCurrentContent = s.expectTrue(!n2.isUndefined(e3) && e3.isBaseClipboardContentViewModel, e3, "BaseClipboardContentViewModel", () => a.createFunctionParameter(this.className, "setCurrentContent", "clipboardContentViewModel is a base clipboard content view model")); + } + setContentDestViewModel(e3) { + this._pasteContentDestViewModel = e3; + } + setPasteContext(e3, t3, i3, r3) { + this.reset(), this._clipboardObject = s.expectTrue(!n2.isUndefined(e3) && e3.isClipboardObject, e3, "ClipboardObjectViewModel", () => a.createFunctionParameter(this.className, "setPasteContext", "clipboardObjectViewModel is a clipboard object instance")), this._pasteInProgress = true, r3 && (this._pasteSettings = s.expectTrue(r3.isClipboardPasteSettings, r3, "ClipboardPasteSettings", () => a.createFunctionParameter(this.className, "setPasteContext", "pasteSettings is a clipboard paste settings instance"))), i3 = this._fixDestinationViewModel(i3), this._pasteDestFlowViewModel = s.expectTrue(!n2.isUndefined(t3) && t3.isFlowViewModel, t3, "FlowViewModel", () => a.createFunctionParameter(this.className, "setPasteContext", "destFlowViewModel is a flow view model")), this._pasteDestViewModel = s.expectObject(i3, () => a.createFunctionParameter(this.className, "setPasteContext", "destViewModel is an object")), this._pasteDestViewModel.isFlowViewModel || this._pasteDestViewModel.isSubMenu || this._pasteDestViewModel.isMenu || this._pasteDestViewModel.isMenuChoice ? this._pasteDestViewModelTaskOrState = void 0 : (this._pasteDestViewModelTaskOrState = this._pasteDestViewModel.isTaskLike ? this._pasteDestViewModel : this._pasteDestViewModel.topParent, s.expectObject(this._pasteDestViewModelTaskOrState, () => a.createFunctionParameter(this.className, "setPasteContext", "destViewModel cannot determine local scoped variable container"))), this._pasteDestViewModel.parent !== this._pasteDestFlowViewModel || this._pasteDestViewModel !== this._pasteDestFlowViewModel.states && this._pasteDestViewModel !== this._pasteDestFlowViewModel.tasks && this._pasteDestViewModel !== this._pasteDestFlowViewModel.menus || (this._pasteDestMenuOrStateOrTaskArray = this._pasteDestViewModel, this._pasteDestViewModelTaskOrState = void 0); + let o2 = this._pasteDestViewModel; + for (; o2 && !o2.isActionContainerViewModel; ) o2 = o2.parent; + this._pasteDestActionContainer = o2 && o2.isActionContainerViewModel ? o2 : void 0, this._pasteDestFlowVariableGroup = this._pasteDestFlowViewModel.variableGroup; + } + resolveOldId(e3) { + return this._pasteOldIdToNewIdMap.resolveFlowGroupedMapping(this.currentContentFlowId, e3); + } + setOldIdToNewIdMapping(e3, t3) { + this._pasteOldIdToNewIdMap.addFlowGroupedMapping(this.currentContentFlowId, e3, t3); + } + resolveOldIdToOldName(e3) { + return this.currentContent.resolveOldIdToOldName(e3); + } + resolveOldMenuName(e3) { + return this._pasteOldMenuNameToNewMenuNameMap.resolveFlowGroupedMapping(this.currentContentFlowId, e3); + } + setOldMenuNameToNewMenuNameMapping(e3, t3) { + this._pasteOldMenuNameToNewMenuNameMap.addFlowGroupedMapping(this.currentContentFlowId, e3, t3); + } + resolveOldStateName(e3) { + return this._pasteOldStateNameToNewStateNameMap.resolveFlowGroupedMapping(this.currentContentFlowId, e3); + } + setOldStateNameToNewStateNameMapping(e3, t3) { + this._pasteOldStateNameToNewStateNameMap.addFlowGroupedMapping(this.currentContentFlowId, e3, t3); + } + resolveOldTaskName(e3) { + return this._pasteOldTaskNameToNewTaskNameMap.resolveFlowGroupedMapping(this.currentContentFlowId, e3); + } + setOldTaskNameToNewTaskNameMapping(e3, t3) { + this._pasteOldTaskNameToNewTaskNameMap.addFlowGroupedMapping(this.currentContentFlowId, e3, t3); + } + resolveOldTrackingId(e3) { + return this._pasteOldTrackingIdToNewTrackingIdMap.resolveFlowGroupedMapping(this.currentContentFlowId, e3); + } + setOldTrackingIdToNewTrackingId(e3, t3) { + this._pasteOldTrackingIdToNewTrackingIdMap.addFlowGroupedMapping(this.currentContentFlowId, e3, t3); + } + setOldVariableNameToNewVariableNameMapping(e3, t3) { + if (s.expectString(e3, () => a.createFunctionParameter(this.className, "setOldVariableNameToNewVariableNameMapping", "oldVariableName")), s.expectString(t3, () => a.createFunctionParameter(this.className, "setOldVariableNameToNewVariableNameMapping", "newVariableName")), e3 && t3) { + const i3 = e3.toLowerCase(), r3 = { newVarName: t3, oldVarName: i3 }; + if (0 === this._pasteOldVariableNameToNewVariableNameArray.length) this._pasteOldVariableNameToNewVariableNameArray.push(r3); + else { + const e4 = n2.findIndex(this._pasteOldVariableNameToNewVariableNameArray, function(e5) { + return e5.oldVarName === i3; + }.bind(this)); + if (e4 >= 0) this._pasteOldVariableNameToNewVariableNameArray[e4].newVarName = t3; + else { + let e5 = 0; + const t4 = i3.length; + for (; e5 < this._pasteOldVariableNameToNewVariableNameArray.length && !(t4 >= this._pasteOldVariableNameToNewVariableNameArray[e5].oldVarName.length); ) e5++; + this._pasteOldVariableNameToNewVariableNameArray.splice(e5, 0, r3); + } + } + this.log("Saved old variable name '" + e3 + "' to new variable name '" + t3 + "' mapping."); + } + } + getOldVariableNameToNewNameArray() { + return this._pasteOldVariableNameToNewVariableNameArray; + } + reset() { + this._pasteInProgress = false, this._pasteCurrentContent = void 0, this._pasteDestActionContainer = void 0, this._pasteDestFlowViewModel = void 0, this._pasteDestViewModel = void 0, this._pasteDestViewModelTaskOrState = void 0, this._pasteOldIdToNewIdMap.reset(), this._pasteOldMenuNameToNewMenuNameMap.reset(), this._pasteOldStateNameToNewStateNameMap.reset(), this._pasteOldTrackingIdToNewTrackingIdMap.reset(), this._pasteOldTaskNameToNewTaskNameMap.reset(), this._pasteOldVariableNameToNewVariableNameArray = []; + } + }; + }, 22685: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(84655)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "wrapupCode"; + } + get displayTypeName() { + return "ArchVariableWrapupCode"; + } + get initialValue() { + return this._initialValue; + } + get isArchVariableWrapupCode() { + return true; + } + } + t2.default = r2; + }, 22717: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.poll = function(e3, t3, i3, o) { + return n2.__awaiter(this, void 0, void 0, function* () { + let n3 = yield e3(); + for (r2.default.isActualNumber(o) ? o < 0 && (o = 0) : o = 10, (!r2.default.isActualNumber(i3) || i3 < 0) && (i3 = 1e3); true !== t3(n3) && o; ) yield new Promise((e4) => setTimeout(() => e4(true), i3)), n3 = yield e3(), o--; + return n3; + }); + }; + const n2 = i2(31635), r2 = n2.__importDefault(i2(92140)); + }, 22754: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.storage = void 0; + const n2 = i2(31635), r2 = i2(79364), o = i2(92794), a = n2.__importStar(i2(36781)), s = n2.__importStar(i2(24032)), l = n2.__importDefault(i2(92140)), u = n2.__importDefault(i2(73198)), d = { actionEditorCollapsed: "actionEditorCollapsed", bottomPanelSplitter: "bottomPanelSplitter", callPromptsGrid: "overviewCallPromptsSettings", chatLegacyRoutingMessageShown: "chatLegacyRoutingMessageShown", clipboard: "clipboard", commonModuleTasksExpanded: "commonModuleTasksExpanded", configurationExpanded: "flowTreeConfigurationExpanded", debugLocaleOverride: "debugLocaleOverride", defaultDivisionId: "defaultDivisionId", defaultDestinationFlowTypes: "defaultDestinationFlowTypes", flowDefaultLanguage: "flowDefaultLanguage", flowGridFilters: "flowGridFilters", flowTreeExpanded: "flowTreeExpanded", flowVisualizationReplay: "flowVisualizationReplay", flowVisualizationSize: "flowVisualizationSize", hostName: "hostName", generateFlowLogic: "generateFlowLogic", iframeTimeMachineSegments: "iframeTimeMachineSegments", insightsOptimizationExpanded: "flowTreeInsightsOptimizationExpanded", lastExecutionEnhancedQuery: "lastExecutionEnhancedQuery", lastExecutionQuery: "lastExecutionQuery", lastTimeZone: "lastTimeZone", multipleStatesExpanded: "multipleStatesExpanded", nluExpanded: "flowTreeNluExpanded", nluCortexExpanded: "flowTreeNluCortexExpanded", overviewDefaultFlowState: "overviewDefaultFlowType", overviewDefaultPromptState: "overviewDefaultPromptType", pcAuthToken: "pc_auth", pcLocale: "pcAuth-userPrefLangTag", pcLocaleOld: "pcAuth-userPrefLocale", periodicStateExpanded: "periodicStateExpanded", previewReplayAllFlowTypes: "previewReplayAllFlowTypes", printPageSize: "printPageSize", queryBuilderPartsPositions: "queryBuilderPartsPositions", resourcesExpanded: "flowTreeResourcesExpanded", reusableMenusExpanded: "reusableMenusExpanded", reusableTasksExpanded: "reusableTasksExpanded", savedExecutionEnhancedQuery: "savedExecutionEnhancedQuery", savedExecutionQuery: "savedExecutionQuery", sawInfoPreviewCallableFlow: "sawInfoPreviewCallableFlow", sawInfoPreviewDigitalBotFlow: "sawInfoPreviewDigitalBotFlow", sawInfoPreviewLaunchableWorkflowFlow: "sawInfoPreviewLaunchableFlow", sawInfoPreviewLaunchableWorkitemFlow: "sawInfoPreviewLaunchableWorkitemFlow", showGeneratedExpression: "showGeneratedExpression", showIdentifiers: "showIdentifiers", showInternalErrors: "showInternalErrors", storedHash: "architect-hash-", shortcuts: "shortcuts", showArchitectBuiltInCustomTypes: "showArchitectBuiltInCustomTypes", sidePanelSplitter: "sidePanelSplitter", toolboxExpanded: "toolboxExpanded", taskZoomValues: "taskZoomSettings", userName: "userName", customThemeData: "customThemeData" }; + class c { + constructor(e3) { + this.nativeStorage = e3, this.retryCount = 0, this.maxRetryCount = 5, this.processingCleanup = false, this.topic = s.getTopic("storage"); + } + get(e3) { + return e3 && l.default.isString(e3) ? this.nativeStorage.getItem(c._getKey(e3)) : (console.error("Tried to get data with a non-string or empty key: {}", e3), null); + } + isTrue(e3) { + return "true" === this.get(e3); + } + createKeyObservable$(e3) { + const t3 = c._getKey(e3); + return (0, r2.fromEvent)(window, "storage").pipe((0, o.filter)((e4) => e4.key === t3)); + } + static _getKey(e3) { + const t3 = [d.pcAuthToken]; + return l.default.contains(t3, e3) || e3 && e3.contains("architect.") ? e3 : "architect." + e3; + } + parse(e3, t3) { + let i3 = this.get(e3); + if (i3) try { + i3 = JSON.parse(i3); + } catch (e4) { + console.log(e4), i3 = t3; + } + return null != i3 ? i3 : t3; + } + remove(e3) { + return this.nativeStorage.removeItem(c._getKey(e3)); + } + set(e3, t3) { + if (!this.processingCleanup) { + if (!e3 || !l.default.isString(e3)) return console.error("Tried to save data with a non-string or empty key: {}", e3), null; + try { + this.nativeStorage.setItem(c._getKey(e3), t3), this.retryCount = 0; + } catch (i3) { + if (!i3 || i3.code !== i3.QUOTA_EXCEEDED_ERR && "NS_ERROR_DOM_QUOTA_REACHED" !== i3.name) i3 && "NS_ERROR_FILE_CORRUPTED" === i3.name ? this.topic.info("Failed to set local storage key '{}'. Error: {}", e3, i3) : this.topic.error("Error setting local storage key '{}'. Error: {}", e3, i3); + else if (this.retryCount < this.maxRetryCount) { + this.retryCount++, 1 === this.retryCount && this.topic.info("Local storage QuotaExceededError. key '{}'. Attempting cleanup", e3); + try { + this.processingCleanup = true, a.emitter.emit(a.localStorageCleanup, { key: e3, value: t3 }); + } finally { + this.processingCleanup = false; + } + this.set(e3, t3); + } else this.topic.info("No more retries will be attempted for key: {{}}", e3); + } + } + } + stringify(e3, t3) { + return this.set(e3, JSON.stringify(t3)); + } + } + const p = "undefined" != typeof window && window; + t2.storage = { local: new c(p.localStorage), session: new c(p.sessionStorage), cookies: new class { + get(e3) { + if (!e3 || !l.default.isString(e3)) return console.error("Tried to get cookie with a non-string or empty key: {}", e3), null; + let t3; + e3 = encodeURIComponent(e3), t3 = -1 === document.cookie.indexOf(";") ? [document.cookie] : document.cookie.split("; "); + for (let i3 = 0; i3 < t3.length; i3++) { + const n3 = t3[i3].split("="); + if (n3[0] === e3) return decodeURIComponent(n3[1]); + } + return null; + } + remove(e3) { + e3 = encodeURIComponent(e3), document.cookie = e3 + "=;expires=Thu, 01 Jan 1970 00:00:01 GMT;path=/"; + } + set(e3, t3, i3, n3) { + if (!e3 || !l.default.isString(e3)) return console.error("Tried to save cookie with a non-string or empty key: {}", e3), null; + const r3 = /* @__PURE__ */ new Date(); + r3.setTime(r3.getTime() + (i3 || u.default.msPerDay)); + let o2 = encodeURIComponent(e3) + "=" + encodeURIComponent(t3); + o2 += "; expires=" + r3.toGMTString() + ";path=/", "https:" === location.protocol && (o2 += "; secure"), n3 && (o2 += `;domain=${n3}`), document.cookie = o2; + } + }(), keys: d, constructPcAuthObject: function(e3, t3) { + if (!e3) return void console.error("Tried to write PC auth token without a token string."); + const i3 = { authenticator: "authenticator:architect", access_token: e3, token_type: "bearer", expires_in: t3 || 1440 }; + return JSON.stringify({ authenticated: i3, secure: i3 }); + }, parsePcAuthToken: function(e3) { + try { + const t3 = JSON.parse(e3); + if (t3) { + if (t3.authenticated) return t3.authenticated.access_token; + if (t3.secure) return t3.secure.access_token; + } + } catch (e4) { + console.log(e4); + } + return ""; + } }; + }, 22780: (e2, t2, i2) => { + const n2 = i2(28730), r2 = i2(7401), { showKnowledgeArticleActionActionType: o } = i2(30801); + function a() { + Object.defineProperties(this, { _knowledgeArticle: { writable: true } }), a.baseConstructor.apply(this, arguments); + } + Object.defineProperties(a.prototype, { pasteReIdOrRename: { value: function(e3) { + a._super.pasteReIdOrRename.apply(this, arguments), this.knowledgeArticle.pasteReIdOrRename(e3); + } }, pasteResolveOldToNewValues: { value: function(e3) { + a._super.pasteResolveOldToNewValues.apply(this, arguments), this.knowledgeArticle.pasteResolveOldToNewValues(e3); + } }, knowledgeArticle: { enumerable: true, get: function() { + return this._knowledgeArticle; + }, set: function(e3) { + this._knowledgeArticle = this.reviveItem(e3, r2); + } } }), n2.extend(a, o, true), e2.exports = a; + }, 22917: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = i2(80295), o = n2.__importDefault(i2(92140)), a = /* @__PURE__ */ new Map(); + class s { + constructor() { + (0, r2.makeUnenumerable)(this, "_propertyName"), (0, r2.makeUnenumerable)(this, "_convertToSingleItem"), (0, r2.makeUnenumerable)(this, "_exportOrder"), (0, r2.makeUnenumerable)(this, "_nameValuePairShouldUseVariableProperty"), (0, r2.makeUnenumerable)(this, "_shouldBeBoolIndicatingIfSet"), (0, r2.makeUnenumerable)(this, "_shouldBePlainJsType"), (0, r2.makeUnenumerable)(this, "_useNoneTrueForExpressionContainerClass"), (0, r2.makeUnenumerable)(this, "_skipProperty"), (0, r2.makeUnenumerable)(this, "_valueShouldBeLowercase"), (0, r2.makeUnenumerable)(this, "_serializeOutOfService"), (0, r2.makeUnenumerable)(this, "_wrapDataPairNameAndValueInTypeString"), (0, r2.makeUnenumerable)(this, "_wrapDataPairNameAndValueInString"), (0, r2.makeUnenumerable)(this, "_wrappedCollectionItemName"), (0, r2.makeUnenumerable)(this, "_wrapListItemValueInPropertyName"), (0, r2.makeUnenumerable)(this, "_wrapValueAndActionsInPropertyName"), (0, r2.makeUnenumerable)(this, "_wrappedValueName"), (0, r2.makeUnenumerable)(this, "_wrappedObjectName"); + } + static create(e3, t3) { + if (!o.default.isFunction(t3)) return l; + if (e3) { + const t4 = a.get(e3); + if (t4) return t4; + } + const i3 = new this(); + return i3.invokeOptionsCallback(t3), e3 && a.set(e3, i3), i3; + } + static sortObjectByPropertyMap(e3, t3) { + return t3 ? o.default.sortObjectPropertiesByKey(e3, (e4, i3) => { + let n3 = t3[e4], r3 = t3[i3]; + return "outputs" !== e4 || o.default.isActualNumber(r3) || (r3 = n3 - 1), "outputs" !== i3 || o.default.isActualNumber(n3) || (n3 = r3 - 1), o.default.isActualNumber(n3) ? o.default.isActualNumber(r3) ? n3 - r3 : -1 : 1; + }) : e3; + } + invokeOptionsCallback(e3) { + return o.default.isFunction(e3) && e3(this), this; + } + setPropertyName(e3) { + return this.propertyName = e3, this; + } + get propertyName() { + return this._propertyName; + } + set propertyName(e3) { + this._propertyName = e3; + } + setConvertToSingleItem(e3) { + return this.convertToSingleItem = e3, this; + } + get convertToSingleItem() { + return this._convertToSingleItem; + } + set convertToSingleItem(e3) { + this._convertToSingleItem = e3; + } + setDoNotExportAsExpressionForFlowTypes(e3) { + return this.doNotExportAsExpressionForFlowTypes = e3, this; + } + get doNotExportAsExpressionForFlowTypes() { + return this._doNotExportAsExpressionForFlowTypes; + } + set doNotExportAsExpressionForFlowTypes(e3) { + this._doNotExportAsExpressionForFlowTypes = e3; + } + setDoNotExportForFlowTypes(e3) { + return this.doNotExportForFlowTypes = e3, this; + } + get doNotExportForFlowTypes() { + return this._doNotExportForFlowTypes; + } + set doNotExportForFlowTypes(e3) { + this._doNotExportForFlowTypes = e3; + } + setExportOrder(e3) { + return this.exportOrder = e3, this; + } + get exportOrder() { + return this._exportOrder; + } + set exportOrder(e3) { + this._exportOrder = e3; + } + setSerializeOutOfService(e3) { + return this.serializeOutOfService = e3, this; + } + get serializeOutOfService() { + return this._serializeOutOfService; + } + set serializeOutOfService(e3) { + this._serializeOutOfService = e3; + } + setNameValuePairShouldUseVariableProperty(e3) { + return this.nameValuePairShouldUseVariableProperty = e3, this; + } + get nameValuePairShouldUseVariableProperty() { + return this._nameValuePairShouldUseVariableProperty; + } + set nameValuePairShouldUseVariableProperty(e3) { + this._nameValuePairShouldUseVariableProperty = e3; + } + setValueShouldBeLowercase(e3) { + return this.valueShouldBeLowercase = e3, this; + } + get valueShouldBeLowercase() { + return this._valueShouldBeLowercase; + } + set valueShouldBeLowercase(e3) { + this._valueShouldBeLowercase = e3; + } + setShouldBePlainJsType(e3) { + return this.shouldBePlainJsType = e3, this; + } + get shouldBePlainJsType() { + return this._shouldBePlainJsType; + } + set shouldBePlainJsType(e3) { + this._shouldBePlainJsType = e3; + } + setShouldBeBoolIndicatingIfSet(e3) { + return this.shouldBeBoolIndicatingIfSet = e3, this; + } + get shouldBeBoolIndicatingIfSet() { + return this._shouldBeBoolIndicatingIfSet; + } + set shouldBeBoolIndicatingIfSet(e3) { + this._shouldBeBoolIndicatingIfSet = e3; + } + setUseNoneTrueForExpressionContainerClass(e3) { + return this.useNoneTrueForExpressionContainerClass = e3, this; + } + get useNoneTrueForExpressionContainerClass() { + return this._useNoneTrueForExpressionContainerClass; + } + set useNoneTrueForExpressionContainerClass(e3) { + this._useNoneTrueForExpressionContainerClass = e3; + } + setWrapDataPairNameAndValueInTypeString(e3) { + return this.wrapDataPairNameAndValueInTypeString = e3, this; + } + get wrapDataPairNameAndValueInTypeString() { + return this._wrapDataPairNameAndValueInTypeString; + } + set wrapDataPairNameAndValueInTypeString(e3) { + this._wrapDataPairNameAndValueInTypeString = e3; + } + setWrapDataPairNameAndValueInString(e3) { + return this.wrapDataPairNameAndValueInString = e3, this; + } + get wrapDataPairNameAndValueInString() { + return this._wrapDataPairNameAndValueInString; + } + set wrapDataPairNameAndValueInString(e3) { + this._wrapDataPairNameAndValueInString = e3; + } + setWrapListItemValueInPropertyName(e3) { + return this.wrapListItemValueInPropertyName = e3, this; + } + get wrapListItemValueInPropertyName() { + return this._wrapListItemValueInPropertyName; + } + set wrapListItemValueInPropertyName(e3) { + this._wrapListItemValueInPropertyName = e3; + } + setWrapValueAndActionsInPropertyName(e3) { + return this.wrapValueAndActionsInPropertyName = e3, this; + } + get wrapValueAndActionsInPropertyName() { + return this._wrapValueAndActionsInPropertyName; + } + set wrapValueAndActionsInPropertyName(e3) { + this._wrapValueAndActionsInPropertyName = e3; + } + setSkipProperty(e3) { + return this.skipProperty = e3, this; + } + get skipProperty() { + return this._skipProperty; + } + set skipProperty(e3) { + this._skipProperty = e3; + } + setWrappedCollectionItemName(e3) { + return this.wrappedCollectionItemName = e3, this; + } + get wrappedCollectionItemName() { + return this._wrappedCollectionItemName; + } + set wrappedCollectionItemName(e3) { + this._wrappedCollectionItemName = e3; + } + setWrappedObjectName(e3) { + return this.wrappedObjectName = e3, this; + } + get wrappedObjectName() { + return this._wrappedObjectName; + } + set wrappedObjectName(e3) { + this._wrappedObjectName = e3; + } + setWrappedValueName(e3) { + return this.wrappedValueName = e3, this; + } + get wrappedValueName() { + return this._wrappedValueName; + } + set wrappedValueName(e3) { + this._wrappedValueName = e3; + } + } + t2.default = s, n2.__decorate([(0, r2.enumerable)(true), n2.__metadata("design:type", String), n2.__metadata("design:paramtypes", [String])], s.prototype, "propertyName", null), n2.__decorate([(0, r2.enumerable)(true), n2.__metadata("design:type", Boolean), n2.__metadata("design:paramtypes", [Boolean])], s.prototype, "convertToSingleItem", null), n2.__decorate([(0, r2.enumerable)(true), n2.__metadata("design:type", Number), n2.__metadata("design:paramtypes", [Number])], s.prototype, "exportOrder", null), n2.__decorate([(0, r2.enumerable)(true), n2.__metadata("design:type", Boolean), n2.__metadata("design:paramtypes", [Boolean])], s.prototype, "serializeOutOfService", null), n2.__decorate([(0, r2.enumerable)(true), n2.__metadata("design:type", Boolean), n2.__metadata("design:paramtypes", [Boolean])], s.prototype, "nameValuePairShouldUseVariableProperty", null), n2.__decorate([(0, r2.enumerable)(true), n2.__metadata("design:type", Boolean), n2.__metadata("design:paramtypes", [Boolean])], s.prototype, "valueShouldBeLowercase", null), n2.__decorate([(0, r2.enumerable)(true), n2.__metadata("design:type", Boolean), n2.__metadata("design:paramtypes", [Boolean])], s.prototype, "shouldBePlainJsType", null), n2.__decorate([(0, r2.enumerable)(true), n2.__metadata("design:type", Boolean), n2.__metadata("design:paramtypes", [Boolean])], s.prototype, "shouldBeBoolIndicatingIfSet", null), n2.__decorate([(0, r2.enumerable)(true), n2.__metadata("design:type", String), n2.__metadata("design:paramtypes", [String])], s.prototype, "useNoneTrueForExpressionContainerClass", null), n2.__decorate([(0, r2.enumerable)(true), n2.__metadata("design:type", Boolean), n2.__metadata("design:paramtypes", [Boolean])], s.prototype, "wrapDataPairNameAndValueInTypeString", null), n2.__decorate([(0, r2.enumerable)(true), n2.__metadata("design:type", String), n2.__metadata("design:paramtypes", [String])], s.prototype, "wrapDataPairNameAndValueInString", null), n2.__decorate([(0, r2.enumerable)(true), n2.__metadata("design:type", String), n2.__metadata("design:paramtypes", [String])], s.prototype, "wrapListItemValueInPropertyName", null), n2.__decorate([(0, r2.enumerable)(true), n2.__metadata("design:type", String), n2.__metadata("design:paramtypes", [String])], s.prototype, "wrapValueAndActionsInPropertyName", null), n2.__decorate([(0, r2.enumerable)(true), n2.__metadata("design:type", Boolean), n2.__metadata("design:paramtypes", [Boolean])], s.prototype, "skipProperty", null), n2.__decorate([(0, r2.enumerable)(true), n2.__metadata("design:type", String), n2.__metadata("design:paramtypes", [String])], s.prototype, "wrappedCollectionItemName", null), n2.__decorate([(0, r2.enumerable)(true), n2.__metadata("design:type", String), n2.__metadata("design:paramtypes", [String])], s.prototype, "wrappedValueName", null); + const l = new s(); + }, 22928: (e2, t2, i2) => { + "use strict"; + var n2, r2; + Object.defineProperty(t2, "__esModule", { value: true }); + const o = i2(31635), a = o.__importStar(i2(24032)), s = o.__importStar(i2(12847)), l = o.__importStar(i2(36781)), u = i2(80295), d = o.__importStar(i2(9345)), c = i2(71004), p = o.__importStar(i2(29133)), _ = i2(29133), h = o.__importDefault(i2(92140)), m = a.getTopic("variableGroup"); + class g { + static getExpandedKey(e3, t3, i3) { + return i3 && i3.isTaskLike ? e3.toLocaleLowerCase() + " " + t3 + " " + i3.id : e3.toLocaleLowerCase(); + } + constructor(e3) { + this.formatVariables = [], this.flowVariables = [], this.languageVariables = [], this.systemVariables = [], this.taskVariables = [], this.map = {}, this.hasExpanded = {}, this._expansions = {}, this._expansionsNameToId = {}, this._expansionsDeprecatedNameToId = {}, n2.set(this, []), r2.set(this, false), this.parentFlow = e3, (0, u.makeUnenumerable)(this, "_expansions"), (0, u.makeUnenumerable)(this, "_expansionsNameToId"), (0, u.makeUnenumerable)(this, "_expansionsDeprecatedNameToId"), o.__classPrivateFieldGet(this, n2, "f").push(l.listen(l.variableDestroyed, (e4) => { + this.isDestroyedCheck(), e4.parentFlow.instanceId === this.parentFlow.instanceId && this.removeVariable(e4); + })), o.__classPrivateFieldGet(this, n2, "f").push(l.listen(l.typeChanged, (e4) => { + this.isDestroyedCheck(), e4.parentFlow.instanceId === this.parentFlow.instanceId && (0, _.updateType)(this, e4); + })); + } + addExpansionVariable(e3) { + e3.hideFromAutocomplete || this.hasExpanded[e3.expandedKey] || (e3.isClone || (this.map[e3.id] = e3), this._expansions[e3.id] = e3, this._expansionsNameToId[this.getMapIdForContainer(e3.parent)] || (this._expansionsNameToId[this.getMapIdForContainer(e3.parent)] = {}), this._expansionsNameToId[this.getMapIdForContainer(e3.parent)][e3.lowerName] = e3.id, e3.deprecatedName && (this._expansionsDeprecatedNameToId[this.getMapIdForContainer(e3.parent)] || (this._expansionsDeprecatedNameToId[this.getMapIdForContainer(e3.parent)] = {}), this._expansionsDeprecatedNameToId[this.getMapIdForContainer(e3.parent)][e3.deprecatedName] = e3.id)); + } + expandVariable(e3) { + if (this.hasExpanded[e3.expandedKey]) return; + this.hasExpanded[e3.expandedKey] = true; + const t3 = p.addVariable(this, e3, true); + return h.default.each(t3, (e4) => this.hasExpanded[e4.expandedKey] = true), t3; + } + expandVariableByName(e3, t3, i3) { + let n3; + if (i3 = this.fixParent(i3), !t3) { + if (n3 = this.getVariableByName(e3, i3, true), !n3) return; + t3 = n3.id; + } + const r3 = n3 ? n3.expandedKey : g.getExpandedKey(e3, t3, i3); + if (!this.hasExpanded[r3] && (n3 || (n3 = this.getVariableByName(e3, i3, true)), n3)) { + this.hasExpanded[n3.expandedKey] = true; + const e4 = p.addVariable(this, n3); + return h.default.each(e4, (e5) => this.hasExpanded[e5.expandedKey] = true), e4; + } + } + addFormatVariable(e3) { + this.formatVariables.push(e3), this.addExpansionVariable(e3), this.expandVariable(e3); + } + addLanguageVariable(e3) { + this.languageVariables.push(e3), this.addExpansionVariable(e3), this.expandVariable(e3); + } + addSystemVariable(e3) { + this.systemVariables.push(e3), this.addExpansionVariable(e3), this.expandVariable(e3); + } + initializeDesignTime() { + h.default.each(this.taskVariables, (e3) => { + e3.initializeDesignTime(); + }), h.default.each(this.flowVariables, (e3) => { + e3.initializeDesignTime(); + }), h.default.each(this.systemVariables, (e3) => { + e3.initializeDesignTime(); + }); + } + addVariable(e3, t3 = false) { + if (this.isDestroyedCheck(), !e3 || !e3.parent) return; + const i3 = e3.parent.isTaskLike ? this.taskVariables : this.flowVariables, n3 = i3.find((t4) => (t4.lowerName === e3.lowerName || t4.id === e3.id) && t4.parent.id === e3.parent.id); + if (n3) { + if (t3) return; + m.errorWithStack(void 0, `Trying to add variable with duplicate name or id: Existing: ${n3.toString()} -- New: ${e3.toString()}`); + } + i3.push(e3), this.addExpansionVariable(e3), this.expandVariable(e3), this.parentFlow && this.parentFlow.initializeDesignTimeCalled && l.emitter.emit(l.variableAdded, this); + } + getExpansions() { + return h.default.clone(this._expansions); + } + getVariableByName(e3, t3, i3, n3) { + this.isDestroyedCheck(), e3 = e3.toLocaleLowerCase(); + const r3 = (t3 = this.fixParent(t3)).isFlowViewModel ? t3 : t3.parentFlow; + let o2, a2, s2, l2; + const u2 = this._expansionsNameToId[this.getMapIdForContainer(t3)], d2 = this._expansionsDeprecatedNameToId[this.getMapIdForContainer(t3)]; + let c2; + return r3 && (s2 = this._expansionsNameToId[this.getMapIdForContainer(r3)], l2 = this._expansionsDeprecatedNameToId[this.getMapIdForContainer(r3)]), u2 && (o2 = u2[e3]), !o2 && s2 && (o2 = s2[e3]), !n3 && d2 && (c2 = d2[e3]), !n3 && l2 && (c2 = l2[e3]), c2 ? a2 = this._expansions[c2] : o2 && (a2 = this._expansions[o2]), a2 && !a2.transferring ? a2 : void 0; + } + hasPrefixVariable(e3) { + return e3 = e3.toLocaleLowerCase(), h.default.find(this._expansions, (t3) => 0 === t3.lowerName.indexOf(e3) || 0 === t3.lowerUnscopedName.indexOf(e3)); + } + getExpandedVariable(e3) { + if (!e3) return; + const t3 = h.default.find(this._expansions, (t4) => t4.id === e3); + if (!t3) { + const t4 = /^([A-Za-z_-]+)\..*$/.exec(e3); + if (t4) { + const e4 = this.map[t4[1]]; + e4 && this.expandVariable(e4); + } + } + return t3; + } + getSlotVariables() { + return this.parentFlow.isNluFlow ? h.default.where(this.flowVariables, { isSlotVariable: true }) : []; + } + getSystemVariablesWithInitialValues() { + return this.systemVariables.filter((e3) => e3.initValue); + } + filterByTask(e3) { + const t3 = this.getExpansions(); + return h.default.filter(t3, (t4) => !(t4.isInternal || t4.isTaskVariable && (!e3 || !e3.isTaskLike || t4.parent !== e3))); + } + filterVariable(e3) { + return h.default.filter(this.filterByTask(e3.task), (t3) => (0, c.isVariableAllowedForExpression)(t3, e3)); + } + removeVariable(e3) { + if (e3.isSystemVariable || e3.isInternal) return false; + p.removeVariable(this, e3), delete this.map[e3.id]; + const t3 = e3.isTaskVariable ? this.taskVariables : this.flowVariables, i3 = t3.indexOf(e3); + return i3 >= 0 && t3.splice(i3, 1), e3.destroy(), true; + } + reexpandVariable(e3) { + p.removeVariable(this, e3), this.addExpansionVariable(e3), this.expandVariable(e3); + } + reexpandVariablesForType(e3) { + h.default.each(this.taskVariables, (t3) => { + var i3; + (null === (i3 = null == t3 ? void 0 : t3.type) || void 0 === i3 ? void 0 : i3.isMatch(e3, d.settings.exactMatch)) && this.reexpandVariable(t3); + }), h.default.each(this.flowVariables, (t3) => { + var i3; + (null === (i3 = null == t3 ? void 0 : t3.type) || void 0 === i3 ? void 0 : i3.isMatch(e3, d.settings.exactMatch)) && this.reexpandVariable(t3); + }), h.default.each(this.systemVariables, (t3) => { + var i3; + (null === (i3 = null == t3 ? void 0 : t3.type) || void 0 === i3 ? void 0 : i3.isMatch(e3, d.settings.exactMatch)) && this.reexpandVariable(t3); + }); + } + getVariablesWithDeprecatedNames(e3) { + return h.default.filter(this.filterByTask(e3), (e4) => !(!h.default.isString(e4.deprecatedName) || !e4.deprecatedName.length)); + } + getVariableIds(e3) { + return h.default.pluck(e3, "id"); + } + getVariableModelTypes(e3) { + return h.default.pluck(e3, "modelType"); + } + destroy() { + this.reset(), this.parentFlow = null, o.__classPrivateFieldGet(this, n2, "f").forEach((e3) => e3()), o.__classPrivateFieldSet(this, r2, true, "f"); + } + reset() { + this.formatVariables.length = 0, this.flowVariables.length = 0, this.languageVariables.length = 0, this.systemVariables.length = 0, this.taskVariables.length = 0, h.default.deleteAllKeys(this._expansions), h.default.deleteAllKeys(this._expansionsDeprecatedNameToId), h.default.deleteAllKeys(this._expansionsNameToId), h.default.deleteAllKeys(this.hasExpanded), h.default.deleteAllKeys(this.map); + } + getAllVariables() { + return h.default.values(this.map); + } + clearOldName(e3, t3, i3) { + t3 && (t3 = t3.toLowerCase(), delete this._expansionsNameToId[this.getMapIdForContainer(e3)][t3], delete this.hasExpanded[t3], delete this._expansions[i3]); + } + getUserVisibleExpansions(e3) { + return e3 = this.fixParent(e3), h.default.filter(this._expansions, (t3) => !(t3.isUnavailable || t3.isInternal || !t3.isSystemOrFlowVariable && (!e3 || t3.parent !== e3))); + } + getUserVisibleVariables(e3) { + return h.default.filter(e3, (e4) => !(e4.isUnavailable || e4.isInternal)); + } + getVariable(e3) { + return this.isDestroyedCheck(), this.map[e3] || h.default.find(this.map, function(t3) { + return t3.deprecatedId === e3; + }); + } + getVariablesWithUsages(e3) { + this.isDestroyedCheck(); + const t3 = []; + return h.default.each(e3, (e4) => { + (!e4.isInternal && e4.hasVisibleUsages || e4.allowInitialValueForReadOnly) && t3.push(e4); + }), t3; + } + getVariableFromExpression(e3) { + if (this.isDestroyedCheck(), !e3 || !e3.config) return null; + if (!e3.config.ref && !e3.config.sysref) return null; + const t3 = e3.config.ref ? e3.config.ref.val : e3.config.sysref.val; + return this.getExpandedVariable(t3); + } + isDestroyedCheck() { + o.__classPrivateFieldGet(this, r2, "f") && s.error("Accessing destroyed VariableGroup"); + } + fixParent(e3) { + return e3 || this.parentFlow; + } + getMapIdForContainer(e3) { + return e3 && !e3.isFlowViewModel ? e3.id : this.parentFlow.instanceId; + } + } + n2 = /* @__PURE__ */ new WeakMap(), r2 = /* @__PURE__ */ new WeakMap(), t2.default = g; + }, 22931: (e2, t2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.performanceTimestampProvider = void 0, t2.performanceTimestampProvider = { now: function() { + return (t2.performanceTimestampProvider.delegate || performance).now(); + }, delegate: void 0 }; + }, 22999: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = i2(96618), o = n2.__importDefault(i2(15244)), a = n2.__importStar(i2(14187)), s = n2.__importDefault(i2(95955)), l = n2.__importDefault(i2(26519)), u = n2.__importDefault(i2(71824)), d = i2(66273); + class c extends u.default { + constructor(e3) { + super(e3), this.callPrompts = new s.default(this), this.errorHandling = new l.default(this), this._addToAutoManageSettings(this.callPrompts), this._addToAutoManageSettings(this.errorHandling); + } + get className() { + return "InboundChatViewModel"; + } + get builtInVariableScopes() { + return [...super.builtInVariableScopes, a.scopes.chat]; + } + get isInboundChat() { + return true; + } + get type() { + return r2.flowTypes.flowTypeInboundChat; + } + get wrappedYamlName() { + return "inboundChat"; + } + setNewInstanceDefaults(e3) { + const t3 = e3 && e3.transferQueue ? e3.transferQueue : null; + return t3 ? (this.errorHandling.loadErrorSettings(t3), this.errorHandling.handlingType = o.default.Queue) : this.errorHandling.handlingType = o.default.Disconnect, super.setNewInstanceDefaults(e3); + } + _createInitialActions() { + return n2.__awaiter(this, void 0, void 0, function* () { + return d(this), this; + }); + } + search(e3) { + super.search(e3); + } + } + t2.default = c; + }, 23041: (e2, t2, i2) => { + var n2 = { "./cs-cz/expressionsPc.js": [10938, 8557], "./de-de/expressionsPc.js": [77739, 120], "./en-us/expressionsPc.js": [44911], "./es-us/expressionsPc.js": [9338, 9338], "./fr-ca/expressionsPc.js": [96550, 6550], "./it-it/expressionsPc.js": [25224, 5224], "./ja-jp/expressionsPc.js": [80583, 583], "./ko-kr/expressionsPc.js": [7361, 7361], "./nb-no/expressionsPc.js": [2125, 2125], "./nl-nl/expressionsPc.js": [78678, 8678], "./pl-pl/expressionsPc.js": [170, 170], "./pt-br/expressionsPc.js": [84714, 4714], "./ru-ru/expressionsPc.js": [23948, 3948], "./sv-se/expressionsPc.js": [7449, 7449], "./tr-tr/expressionsPc.js": [906, 906], "./zh-cn/expressionsPc.js": [75157, 5157], "./zh-tw/expressionsPc.js": [42141, 2141] }; + function r2(e3) { + if (!i2.o(n2, e3)) return Promise.resolve().then(() => { + var t4 = new Error("Cannot find module '" + e3 + "'"); + throw t4.code = "MODULE_NOT_FOUND", t4; + }); + var t3 = n2[e3], r3 = t3[0]; + return Promise.all(t3.slice(1).map(i2.e)).then(() => i2(r3)); + } + r2.keys = () => Object.keys(n2), r2.id = 23041, e2.exports = r2; + }, 23079: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.skip = void 0; + var n2 = i2(85934); + t2.skip = function(e3) { + return n2.filter(function(t3, i3) { + return e3 <= i3; + }); + }; + }, 23106: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importDefault(i2(92140)), o = n2.__importStar(i2(12847)), a = n2.__importStar(i2(24032)), s = n2.__importStar(i2(62829)), l = i2(55299), u = n2.__importDefault(i2(93555)), d = a.getTopic("ValidationIssues"); + class c extends l.BaseClass { + constructor(e3, t3) { + super(), e3 || d.errorWithStack(null, `Null item passed to ValidationIssues with id: '${t3}'`), this.id = t3, this.errors = [], this.warnings = [], this.rollupErrors = [], this.rollupWarnings = [], this.item = e3, e3 && (this.model = e3.model, this.displayName = e3.getDisplayName ? e3.getDisplayName() : e3.name), this.guxIcon = s.getGuxIcon(e3); + } + get className() { + return "ValidationIssues"; + } + addRollUpError(e3) { + this.rollupErrors.push(e3); + } + addRollUpWarning(e3) { + this.rollupWarnings.push(e3); + } + clearRollupErrorAndWarnings() { + this.rollupErrors = [], this.rollupWarnings = []; + } + clearErrorsAndWarnings() { + this.errors = [], this.warnings = []; + } + getErrorTexts() { + return r2.default.pluck(this.errors, "text"); + } + getWarningTexts() { + return r2.default.pluck(this.warnings, "text"); + } + getRollupErrorTexts() { + return this.rollupErrors; + } + getRollupWarningTexts() { + return this.rollupWarnings; + } + tryAddError(e3, t3, i3, n3) { + return !this.validationObjectAlreadyExists(this.errors, e3, t3) && (this.errors.push(this.createValidationIssue(e3, t3, i3, n3)), this.errors = r2.default.sortByNumericDesc(this.errors), true); + } + tryAddWarning(e3, t3, i3, n3) { + return !this.validationObjectAlreadyExists(this.warnings, e3, t3) && (this.warnings.push(this.createValidationIssue(e3, t3, i3, n3)), this.warnings = r2.default.sortByNumericDesc(this.warnings), true); + } + createValidationIssue(e3, t3, i3, n3) { + return new u.default(e3, t3, i3, this.item, this.displayName, this.guxIcon, n3); + } + validationObjectAlreadyExists(e3, t3, i3) { + return !!r2.default.findWhere(e3, { text: t3, flowElementId: i3 }) && (o.error("Validation error already exists: " + t3), true); + } + } + t2.default = c; + }, 23123: (e2, t2, i2) => { + "use strict"; + const n2 = i2(31635), r2 = n2.__importDefault(i2(942)), o = i2(68039), a = i2(80428), s = i2(44565), l = i2(12179), u = n2.__importDefault(i2(97891)), d = i2(47957); + class c extends r2.default { + constructor(e3, t3) { + super(e3.parentFlow, e3), this._loadModel(t3); + } + static get managedProperties() { + return r2.default.createManagedProperties({ searchFieldLabel: d.findActions.findEmergencyGroup.findEmergencyGroupNameLabel, searchResultLabel: d.findActions.findEmergencyGroup.findEmergencyGroupResultLabel, searchResultExpressionOptions: o.ExpressionTypeEmergencyGroupOptions.create(), searchResultItemType: a.expressionTypeNames.emergencyGroup }); + } + } + c.info = u.default.createActionInfo({ actionClass: c, canBeInTask: true, helpTopic: l.helpTopics.actions.findEmergencyGroup, modelClass: s.FindEmergencyGroupActionModel, name: d.actions.findEmergencyGroupActionLabel, scriptingName: "ArchActionFindEmergencyGroup" }), t2.A = c; + }, 23206: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(81574)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "externalWhatsAppInfo"; + } + get displayName() { + } + get phoneNumber() { + } + get displayTypeName() { + return "ArchValueExternalWhatsAppInfo"; + } + get isArchValueExternalWhatsAppInfo() { + return true; + } + } + t2.default = r2; + }, 23208: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = i2(17604), o = n2.__importDefault(i2(92140)), a = n2.__importDefault(i2(48)), s = n2.__importStar(i2(36781)), l = n2.__importDefault(i2(98114)), u = n2.__importStar(i2(58380)), d = i2(12179), c = n2.__importDefault(i2(68460)), p = i2(47957); + class _ extends c.default { + constructor(e3) { + super(e3), this.modelPropertyName = "commonModuleFlowSettings"; + } + get id() { + return "commonModuleSettings"; + } + get className() { + return "CommonModuleFlowSettingsViewModel"; + } + get amObjectEventEmitter() { + return true; + } + _postDestroy() { + super._postDestroy(), u.removeEventEmitter(this); + } + getConfiguration(e3, t3) { + let i3; + return (null == t3 ? void 0 : t3.isForFlowYaml) ? (i3 = { compatibleFlowTypes: [] }, o.default.each(this.destinationFlowTypes, (e4) => { + i3.compatibleFlowTypes.push(o.default.tryWrapObject(e4, "flowType")); + }), i3) : (i3 = new a.default(null), i3.destinationFlowTypes = this.destinationFlowTypes, i3); + } + getDisplayName() { + return p.commonModule.settingsNodeName; + } + get isCommonModuleSettingsNode() { + return true; + } + loadConfiguration(e3) { + e3.commonModuleFlowSettings || (e3.commonModuleFlowSettings = new a.default(null)), this._config = e3.commonModuleFlowSettings; + } + get destinationFlowTypes() { + return this._config.destinationFlowTypes || (this._config.destinationFlowTypes = []), this._config.destinationFlowTypes; + } + get destinationFlowTypesMap() { + if (void 0 === this._destinationFlowTypesMap) { + this._destinationFlowTypesMap = {}; + for (const e3 of this.destinationFlowTypes) this._destinationFlowTypesMap[e3] = true; + } + return this._destinationFlowTypesMap; + } + set destinationFlowTypes(e3) { + this._config.destinationFlowTypes = [...e3], this._destinationFlowTypesMap = void 0, u.fireEvent(this, s.destinationFlowTypesChanged); + } + get nodeGuxIcon() { + return "fa/gears-regular"; + } + get helpTopic() { + return d.helpTopics.treeNodes.commonModuleSettings; + } + get wrappedYamlName() { + return "settingsCommonModule"; + } + validate(e3) { + super.validate(e3), this.getDestinationFlowTypesInError(e3); + } + getDestinationFlowTypesInError(e3) { + let t3; + return 0 === this.destinationFlowTypes.length ? t3 = p.commonModule.mustSelectFlowType : this.destinationFlowTypes.find((e4) => { + if (!l.default.getDefinitionForFlowType(e4).isEmbeddable) return t3 = (0, r2.sprintf)(p.commonModule.flowTypeNotSupported, e4), true; + }), e3 && t3 && e3.addError(this, t3), t3; + } + } + t2.default = _; + }, 23215: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importDefault(i2(92140)), o = i2(9456), a = i2(79056), s = n2.__importStar(i2(58380)), l = n2.__importDefault(i2(4648)), u = i2(14394), d = n2.__importStar(i2(81116)), c = n2.__importDefault(i2(51695)), p = i2(47957); + class _ extends c.default { + constructor(e3, t3) { + super(), this.model = e3, this._parentFlow = t3, this.id = (0, o.uuid)(), this.timeslots = this._createNewTimeslotsExpression(this.model.timeslots); + } + get parentFlow() { + return this._parentFlow; + } + get name() { + return this.model.name; + } + get cardLabel() { + return this.name; + } + get contents() { + return [this.timeslots]; + } + get referenceId() { + return this.name; + } + get className() { + return "DynamicTimeslotTypeViewModel"; + } + getConfiguration(e3, t3) { + return this.model; + } + get amObjectEventSink() { + return true; + } + initializeDesignTime() { + super.initializeDesignTime(), s.registerEventSinkForEventEmitter(this.timeslots.id, this); + } + objEvent_listOrderChanged() { + this._handleSlotTypeInfoUpdated(); + } + objEvent_expressionValueChanged() { + this._handleSlotTypeInfoUpdated(); + } + get isDynamicTimeslotTypeViewModel() { + return true; + } + destroy() { + var e3; + s.unregisterEventSinkForEventEmitter(null === (e3 = this.timeslots) || void 0 === e3 ? void 0 : e3.id, this), super.destroy(); + } + _handleSlotTypeInfoUpdated() { + const e3 = this.parentFlow; + r2.default.isFunction(e3.updateWorkbenchDynamicSlotTypesUpdated) && e3.updateWorkbenchDynamicSlotTypesUpdated(); + } + _createNewTimeslotsExpression(e3) { + const t3 = e3 || null, i3 = a.ExpressionTypeTimeslotOptions.create((e4) => { + e4.setDescriptionInfo(p.dynamicTimeslots.settings.dynamicTimeslotSettingTimeslotsLabel, p.dynamicTimeslots.settings.dynamicTimeslotSettingTimeslotsDescription).setFeatureConfigName(l.default.botFlowsMessagingDatePicker).setIninTestingField("timeslot-type-timeslots"); + }); + return d.expression(this.parentFlow, this.parentFlow.botFlowSettings, t3, p.dynamicTimeslots.settings.dynamicTimeslotSettingTimeslotsLabel, u.globalTypes.timeslotCollection, null, i3); + } + } + t2.default = _; + }, 23217: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(54757)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "digitalAudioCollection"; + } + get displayTypeName() { + return "ArchValueDigitalAudioCollection"; + } + get isArchValueDigitalAudioCollection() { + return true; + } + } + t2.default = r2; + }, 23293: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.userPromptListManager = t2.UserPromptListManager = void 0; + const n2 = i2(31635), r2 = n2.__importDefault(i2(92140)), o = n2.__importStar(i2(36781)), a = n2.__importStar(i2(97920)), s = i2(50474), l = n2.__importStar(i2(27854)), u = n2.__importDefault(i2(47532)), d = i2(24032), c = n2.__importDefault(i2(85660)), p = i2(81801), _ = i2(47957), h = i2(27862), m = { name: _.sectionUserPrompts, singularName: _.audio.promptUser }; + class g extends u.default { + get requiredAuth() { + return p.externalAuthorizations.authStrings.promptsUserView; + } + get dependencyType() { + return h.UserPrompt; + } + constructor() { + super(), this.topic = (0, d.getTopic)("userPromptListManager"), this.apiCallList = a.getUserPromptContainers_ignoreBadResponse, this.apiCallSingle = a.getUserPromptContainer_ignoreBadResponse, this.className = "UserPromptListManager", this.dependencyContext = null, this.knownEmptySearches = [], this.isPromptManager = true, this.registeredAudioExpressions = {}, o.serviceListen(o.promptChanged, (e3, t3) => { + this.updatePromptNameAndUsages(e3, t3), this.updateRegisteredAudioExpressions(e3); + }), o.serviceListen(o.promptResourceDeleted, (e3) => { + e3.isUser && this.addItem(e3._model, true); + }), o.serviceListen(o.cleanUpFlow, (e3) => { + this.registeredAudioExpressions = {}, r2.default.each(this.items, (t3) => t3.removeUsageForFlow(e3)); + }), this._initialize(); + } + getItemByName(e3) { + if (!e3) return null; + if (l.hasSystemPromptPrefix(e3)) return null; + const t3 = l.removePrefix(e3).toLowerCase(); + return r2.default.find(this.items, (e4) => e4.lowerDisplayName === t3); + } + removeItemWithName(e3) { + const t3 = this.getItemByName(e3); + t3 && delete this.items[t3.id]; + } + getBulkPromptContainers(e3) { + return a.getBulkUserPromptContainers(e3).then((e4) => { + r2.default.each(e4.entities, (e5) => { + this.addItem(e5, true); + }); + }); + } + _createItemViewModel(e3) { + return new c.default(e3, false); + } + createPrompt(e3, t3) { + return a.createPromptContainer(e3, t3).then((e4) => (this.topic.info("Successfully created call prompt with ID: {}", e4.id), this.addItem(this._createItemViewModel(e4)))); + } + deletePrompt(e3) { + return a.deletePromptContainer(e3).then(() => { + this.topic.info("Successfully deleted prompt container: {}", e3), this.getItem(e3) && this.removeItemWithId(e3, true); + }); + } + getGroupForItem(e3) { + if ((e3 = e3.isPromptContainer ? e3 : this.getItem(e3.id)) && e3.isUser) return Object.assign(Object.assign({}, m), { audioPreview: this.audioPreview }); + } + refreshSinglePrompt(e3) { + return a.getPromptContainer(e3, false, { includeMediaUris: true }).then((e4) => { + const t3 = this._createItemViewModel(e4); + return this.items[e4.id] && (t3.usages = this.items[e4.id].usages), this.items[e4.id] = t3, t3; + }); + } + registerAudioExpression(e3) { + e3 && e3.id && (this.registeredAudioExpressions[e3.id] = e3); + } + unregisterAudioExpression(e3) { + e3 && e3.id && delete this.registeredAudioExpressions[e3.id]; + } + updatePromptNameAndUsages(e3, t3) { + const i3 = this.items[e3.id]; + if (i3) { + const n3 = r2.default.clone(i3.usages); + if (t3 !== e3.expressionName) { + const i4 = r2.default.keys(n3); + r2.default.each(i4, (i5) => { + (0, s.isBaseExpression)(n3[i5].expression) && n3[i5].expression.replaceUsages(t3, e3.expressionName), e3.usages[i5] = n3[i5]; + }); + } + return this.items[e3.id] = e3, true; + } + return false; + } + updateRegisteredAudioExpressions(e3) { + r2.default.each(this.registeredAudioExpressions, (t3) => { + t3.updateIfPromptIsUsed(e3); + }); + } + } + t2.UserPromptListManager = g, t2.userPromptListManager = new g(); + }, 23308: (e2, t2, i2) => { + "use strict"; + const n2 = i2(31635), r2 = n2.__importDefault(i2(92140)), o = i2(15364), a = n2.__importDefault(i2(34015)), s = n2.__importDefault(i2(22465)), l = i2(81516), u = n2.__importDefault(i2(27203)), d = i2(11181), c = i2(12179), p = i2(12457), _ = n2.__importDefault(i2(97891)), h = i2(28803), m = n2.__importDefault(i2(61086)), g = i2(80428), f = i2(47957), T = i2(3916); + class y extends m.default { + constructor(e3, t3) { + super(e3, t3, d.dataTablesManager), this.allowErrorSchema = true, this.resources = { actionLabel: f.dataTable.dataTable, actionNotFound: f.dataTable.tableNotFound, outputsHeader: f.inputOutputList.foundOutputs, savedVersionOfAction: f.dataTable.savedVersionOfAction, selectAction: f.dataTable.selectDataTable }; + } + get actionName() { + return this.datatableName; + } + set actionName(e3) { + this.datatableName = e3; + } + get actionId() { + return this.datatableId; + } + set actionId(e3) { + this.datatableId = e3; + } + getDetails() { + return this.actionName ? new p.ActionDetails([f.dataTable.dataTable], [this.actionName]) : null; + } + setNewInstanceDefaults() { + super.setNewInstanceDefaults(), this.lookupKeyValue.outOfService = true; + } + get isDataTableLookupAction() { + return true; + } + _loadModel(e3) { + super._loadModel(e3), this.inputs = new o.DataPairList(this, [], false); + const t3 = new a.default(this.model.lookupKeyValue, this.lookupKeyValue.type, this.lookupKeyValue); + t3.name = "lookupKeyValue", this.inputs.addItem(t3); + } + clearSchemaBindings() { + var e3, t3; + r2.default.isFunction(null === (e3 = this.outputs) || void 0 === e3 ? void 0 : e3.destroyChildren) && this.outputs.destroyChildren(), this.lookupKeyValue && this.lookupKeyValue.clear(true), r2.default.isFunction(null === (t3 = this.errorBindings) || void 0 === t3 ? void 0 : t3.destroyChildren) && this.errorBindings.destroyChildren(); + } + static get managedProperties() { + return [{ property: "dataTable", isJustForFlowYaml: true, yamlOptions: m.default.createYamlOptions("dataTable", (e3) => e3.setSkipProperty(true).setExportOrder(60)) }, { property: "actionSetting", createDetails: h.NetworkBasedActionProperty.createCreateDetails("datatableId", "datatableName", d.dataTablesManager, f.dataTable.mustSelectTable, f.dataTable.tableNotFound, void 0), yamlOptions: y.createYamlOptions("actionSetting", (e3) => e3.setSkipProperty(true)) }, { options: l.ExpressionTypeStringOptions.create((e3) => e3.setDefaultToExpression(true).setIninTestingField("lookupKeyValue").setAllowNotSet(false).facets = s.default.create().setAllowNull(false)), yamlOptions: y.createYamlOptions("lookupKeyValue", (e3) => e3.setPropertyName("lookupValue").setExportOrder(50)), type: g.expressionTypeNames.string, property: "lookupKeyValue" }, { dataList: true, isOutput: true, property: "outputs", yamlOptions: y.createYamlOptions("outputs", (e3) => e3.setPropertyName("foundOutputs")) }, { dataList: true, isOutput: true, property: "errorBindings", yamlOptions: y.createYamlOptions("errorBindings", (e3) => e3.setPropertyName("failureOutputs")) }]; + } + mergeSchemaProperties(e3) { + e3 && (e3.errorSchema && this.serverManager.mergeSchemaProperties(e3.errorSchema.properties, this.errorBindings), e3.successSchema && this.serverManager.mergeSchemaProperties(e3.successSchema.properties, this.outputs), e3.name !== this.actionName && (this.topic.info(`updating actionName for action '${this.actionId}'`), this.actionName = e3.name)); + const t3 = e3 && e3.inputSchema && e3.inputSchema.properties ? e3.inputSchema.properties[0] : void 0; + t3 && T.setExpressionWithSchemaProperty(this.lookupKeyValue, t3), this.lookupKeyValue.outOfService = r2.default.isUndefined(t3); + } + postProcessYamlConfig(e3, t3, i3) { + if (this.actionName) { + e3.dataTable = {}; + const t4 = e3.dataTable[this.actionName] = {}; + r2.default.moveAndDeleteProperty(e3, t4, "foundOutputs"), r2.default.moveAndDeleteProperty(e3, t4, "failureOutputs"); + } + } + static get branchInfo() { + return u.default.foundNotFoundFailure; + } + getCachedServerPropertyByName(e3, t3) { + return this._serverManager.getCachedServerPropertyByName(e3, this.datatableId, t3, this); + } + loadDataSchemas(e3) { + return e3 ? this.serverManager.fetchItem(e3.id) : Promise.resolve(); + } + } + y.info = _.default.createActionInfo({ actionClass: y, canBeInTask: true, helpTopic: c.helpTopics.actions.dataTableLookup, modelClass: i2(98009), name: f.actions.dataTableLookup, scriptingName: "ArchActionDataTableLookup" }), t2.A = y; + }, 23316: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.BaseFlowItemWithNameAndId = void 0; + const n2 = i2(31635).__importDefault(i2(92140)), r2 = i2(64015), o = i2(9456); + class a extends r2.BaseFlowItem { + constructor(e3) { + var t3; + super(e3), this.id = null !== (t3 = null == e3 ? void 0 : e3.id) && void 0 !== t3 ? t3 : (0, o.uuid)(), this.name = null == e3 ? void 0 : e3.name; + } + pasteReIdOrRename(e3) { + this.id = e3.pasteGenerateNewGuid(this.id); + } + pasteResolveOldToNewValues(e3) { + } + pasteResolveReferenceAndName(e3, t3, i3, r3) { + const o2 = { reference: e3.pasteResolveOldIdToNewId(i3), name: "" }; + switch (t3) { + case "menu": + o2.name = e3.pasteResolveOldMenuNameToNewMenuName(r3); + break; + case "state": + o2.name = e3.pasteResolveOldStateNameToNewStateName(r3); + break; + case "task": + o2.name = e3.pasteResolveOldTaskNameToNewTaskName(r3); + break; + default: + throw "unsupported resolve type passed to pasteResolveReferenceAndName"; + } + if (o2.reference !== i3) return o2; + let a2; + switch (t3) { + case "menu": + a2 = e3.pasteContext.destFlowViewModel.menus; + break; + case "state": + a2 = e3.pasteContext.destFlowViewModel.states; + break; + case "task": + a2 = e3.pasteContext.destFlowViewModel.tasks; + break; + default: + throw "unsupported resolve type passed to pasteResolveReferenceAndName"; + } + if (!a2) return o2; + let s = n2.default.find(a2, function(e4) { + return e4.id === i3; + }); + return n2.default.isUndefined(s) && n2.default.isString(r3) && (s = n2.default.find(a2, function(e4) { + return e4.name === r3; + })), s && (o2.reference = s.id, o2.name = s.name), o2; + } + } + t2.BaseFlowItemWithNameAndId = a; + }, 23335: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importDefault(i2(92140)), o = i2(71004), a = n2.__importDefault(i2(94225)), s = n2.__importDefault(i2(82926)), l = i2(63352), u = i2(27491), d = n2.__importDefault(i2(22226)), c = i2(14394), p = i2(9345), _ = i2(26403), h = i2(14187), m = i2(14187), g = i2(14187), f = i2(14187), T = n2.__importDefault(i2(67336)); + class y extends T.default { + constructor(e3) { + super(e3), this._checkItem(this._infoParmCtor("coreExpression"), !e3.parentFlow, "INTERNAL ERROR - there is no parent flow set on the expression"), this._coreExpressionInternal = e3, this._dataType = e3.type ? this.coreFactory.createArchWrapper(e3.type) : void 0, this._settings = this.coreFactory.createArchValueSettings(this); + } + get _coreExpression() { + return this._coreExpressionInternal; + } + _getCoreExpression() { + return this._coreExpression; + } + get _globalTypeName() { + return console.log(`INTERNAL ERROR - _globalTypeName not implemented for '${this.displayTypeName}'`), ""; + } + get consumesSecureData() { + return this._coreExpression.consumesSecureData; + } + get displayTypeName() { + return "ArchBaseValue"; + } + get definition() { + if (!this._globalTypeName) return null; + const e3 = c.globalTypes[this._globalTypeName]; + return this._checkItem(this._infoVal("globalType", "definition(get)"), !e3, `INTERNAL ERROR - unable to find global type for '${this._globalTypeName}'`), this.coreFactory.createArchDefinitionValue(e3); + } + get logStr() { + if (!this._coreExpression) return this.logStrTypeOnly; + const e3 = []; + return this._appendLogStrParentParts(e3, this._coreExpression.parent), this._appendLogStrProperty(e3, this._coreExpression.label), this._createLogStrFromParts(e3); + } + _createStringLiteralForText(e3) { + return '"' + this._escapeTextForExpression(e3) + '"'; + } + _escapeTextForExpression(e3) { + return d.default.rawEscapeStringForExpressionMode(e3); + } + _failIfOutput(e3) { + this._settings.isOutput && this.logErrorAndThrow("assignment is invalid because this value is an output."); + } + _getCoreExpressionText() { + return this._coreExpression.text; + } + _getAssignableProperty(e3) { + if (this._getCoreViewModel().isLiteralMode) return this.coreFactory.createArchWrapper(this._getCoreViewModel().getProperty(e3)); + } + _getValueTextCommon() { + if (this.isExpression) return this.getExpressionText(); + if (this.isVariable) { + const e3 = this.getVariable(); + return e3 ? e3.name : ""; + } + if (this.isNoValue) return ""; + if (this.isBuilder) return this._getCoreExpressionText(); + if (this.isLiteral && this.isCollection) { + const e3 = this.length; + if (!r2.default.isUndefined(e3) && r2.default.isFunction(this.getItemByIndex)) { + const t3 = []; + for (let i3 = 0; i3 < e3; i3++) { + const e4 = this.getItemByIndex(i3); + if (e4) { + const n3 = e4.valueText; + r2.default.isUndefined(n3) ? (this._logErrorInternal(`Item ${i3} in collection isn't returning a string for the valueText property. Using a blank string for the item's valueText.`), t3.push("")) : t3.push(n3); + } else this._logErrorInternal(`Item ${i3} in collection isn't an ArchBaseValue. Using a blank string for the item's valueText.`), t3.push(""); + } + return t3; + } + } + } + _processTextAndFailIfInvalid(e3) { + this._coreExpression.processText(true), this._coreExpression.resultType !== _.ParseResultTypes.error || e3 || this.logErrorAndThrow("expression text of '" + this._coreExpression.text + "' is in error. Reason: " + (this._coreExpression.resultMessage ? this._coreExpression.resultMessage : "Invalid.")); + } + _processValueOverridden() { + this.settings.hasFlowLevelDefault && (this.logNote("setting the value so it overrides a flow level default"), this._coreExpression.isOverride = true); + } + _setExpression(e3, t3) { + null == t3 && (t3 = ""), this._checkItemIsValidLiteralString(e3, t3), this._checkItem(e3, !this._settings.isWritable, "you cannot assign the expression text '" + t3 + "' because this value " + this.settings.logStr + " is not writable."), this._checkItem(e3, !this._settings.canBeExpression, "you cannot assign the expression text '" + t3 + "' because this value " + this.settings.logStr + " cannot be an expression."), this.logNote("assigning expression [Text: '" + t3 + "', ValueType: '" + this.displayTypeName + "']"), this._coreExpression.isNormalExpression || this._coreExpression.isCollectionExpression ? this._coreExpression.setAsExpression(t3) : this._coreExpression.setText(t3), this._processValueOverridden(), this._processTextAndFailIfInvalid(s.default.allowInvalidExpressionText); + } + _setNotWritableOverride(e3) { + return this.settings._setNotWritableOverride(e3); + } + _setWritableOverride(e3) { + return this.settings._setWritableOverride(e3); + } + _setLiteral(e3, t3, i3) { + this._checkItem(e3, !this._settings.isWritable, "you cannot assign a literal because this value " + this.settings.logStr + " is not writable."), this._checkItem(e3, !this._settings.canBeLiteral, "you cannot assign a literal because this value " + this.settings.logStr + " cannot be a literal."); + const n3 = r2.default.isString(i3) && i3.length > 0 ? `, Val: '${i3}'` : ""; + this.logNote(`assigning literal [Text: '${t3}', ValueType: '${this.displayTypeName}'${n3}]`), this._coreExpression.isNormalExpression || this._coreExpression.isCollectionExpression ? this._coreExpression.setAsLiteral(t3) : this._coreExpression.setText(t3), r2.default.isString(i3) && i3.length > 0 && this._coreExpression.config && this._coreExpression.config.root && (this._coreExpression.config.root.val = i3, this.logNote("literal value successfully applied to config root.")), this._processValueOverridden(), this._processTextAndFailIfInvalid(); + } + get dataType() { + return this._dataType; + } + get flowLevelDefault() { + if (this._coreExpression.options && this._coreExpression.options.isFlowLevelDefaultExpression) return null; + const e3 = this._coreExpression.propertyName; + if (!e3) return null; + if (!this._settings.hasFlowLevelDefault) return null; + const t3 = this._coreExpression.parentFlow.defaultSettings.getDefaultExpression(this.parent._actionTypeId, e3); + return t3 || this.logErrorAndThrow("flow level default not found for '" + e3 + "'"), this.coreFactory.createArchWrapper(t3); + } + getExpressionText() { + if (this.isExpression) return this._coreExpression.text; + } + getVariable() { + const e3 = this._coreExpression.variableReference; + if (e3 && e3.val) { + const t3 = this._coreExpression.parentFlow.variableGroup.getVariable(e3.val); + if (t3) return this.coreFactory.createArchWrapper(t3); + } + } + get hasError() { + return this._coreExpression.hasError; + } + get hasErrorOrWarning() { + return this.hasError || this.hasWarning; + } + get hasWarning() { + return this._coreExpression.hasWarning; + } + get isArchBaseValue() { + return true; + } + get isBuilder() { + return this._coreExpression.mode === l.ExpressionModes.builder; + } + get isExpression() { + return this._coreExpression.isAudioExpression && true === this._coreExpression.customExpressionMode || this._coreExpression.mode === l.ExpressionModes.expression; + } + get isNoValue() { + return this._coreExpression.mode === l.ExpressionModes.noValue; + } + get isNoValueNoFallback() { + return this._coreExpression.isNoValueModeWithNoFallback; + } + get isVariableInitialValue() { + return this._coreExpression.isVariableInitialValue; + } + get isLiteral() { + return this._coreExpression.mode === l.ExpressionModes.literal; + } + get isVariable() { + return this._coreExpression.mode === l.ExpressionModes.variable; + } + get isCollection() { + return false; + } + get overridesDefaultValue() { + return this._coreExpression.isOverride; + } + get parent() { + return this.coreFactory.createArchWrapper(this._coreExpression.parent); + } + get parentFlow() { + return this.coreFactory.createArchWrapper(this._coreExpression.parentFlow); + } + get settings() { + return this._settings; + } + setExpression(e3) { + this._setExpression(this._infoParm("expressionText", "setExpression"), e3); + } + _getUserCreatableVariableScopes(e3) { + const t3 = this._coreExpression.getParentTask() ? this._coreExpression.getParentTask().userCreatableVariableScopes : [], i3 = e3 ? this._coreExpression.parentFlow.userCreatableVariableScopes : []; + return t3.concat(i3); + } + _resolveToCoreVariable(e3, t3) { + let i3, n3; + if (t3.isArchBaseVariable) { + if (i3 = t3._coreVariableViewModel, this._checkItem(e3, !i3, "INTERNAL ERROR - there is no core variable associated with this Architect variable."), n3 = i3.parent, t3 = i3.name, i3.isTaskVariable) { + const n4 = i3.parent, r3 = this._coreExpression.getParentTask(); + n4 !== r3 && this._itemIsInvalid(e3, "you cannot assign '" + t3 + "' to this value because it is declared in a different task from this value. The variable exists in the task '" + (n4 ? n4.name : "unknown") + "' and this value exists in the task '" + (r3 ? r3.name : "") + "'"); + } + } else { + const a2 = this._coreExpression.parentFlow; + let s2, l2 = false; + const d2 = false, c2 = false; + let p2, _2, T2 = false; + const y2 = (0, h.getScope)(t3); + switch (y2) { + case g.scopes.call: + case g.scopes.chat: + case g.scopes.email: + case g.scopes.form: + case g.scopes.interaction: + case g.scopes.menu: + case g.scopes.message: + case g.scopes.prompt: + case g.scopes.promptSystem: + case g.scopes.session: + case g.scopes.slot: + case g.scopes.survey: + case g.scopes.workflow: + case g.scopes.workitem: + l2 = true, _2 = g.scopes[y2], p2 = (0, m.getUnscopedName)(t3), n3 = a2, s2 = n3.displayName; + break; + case g.scopes.common: + case g.scopes.flow: + T2 = true, _2 = g.scopes[y2], p2 = (0, m.getUnscopedName)(t3), n3 = a2, s2 = n3.displayName; + break; + case g.scopes.bot: + case g.scopes.state: + case g.scopes.task: + _2 = g.scopes[y2], p2 = (0, m.getUnscopedName)(t3), n3 = this._coreExpression.getParentTask(), n3 || this.logItemErrorAndThrow(e3, `the variable '${t3}' is not valid for use here because it is a '${y2}' scoped variable and there is no container available in which it could belong.`), s2 = n3.name; + break; + default: { + const t4 = this._getUserCreatableVariableScopes(true); + this._itemIsInvalid(e3, `the scoped variable name must begin with one of the following scope(s): '${r2.default.isArray(t4) && t4.length ? t4.join(".', '") : "flow"}.'`); + } + } + const S = a2.variableGroup; + if (t3 = (0, f.setScope)(_2, p2), this._checkItem(e3, !p2, "there is no variable name specified after the prefix '" + _2 + "'"), this._checkItem(e3, p2 !== u.expressionDataService.cleanseForIdentifierName(p2), "the '" + p2 + "' in '" + t3 + "' is not valid. It must start with a letter and then be followed by one or more letters, numbers or underscore characters."), i3 = S.getVariableByName(t3, n3), !i3 && !l2) { + if (_2 && n3) { + const i4 = this._getUserCreatableVariableScopes(true); + this._checkItem(e3, !r2.default.contains(n3.userCreatableVariableScopes, _2), `Unable to create the variable '${t3}' because the creatable variable scope(s) are ( '${r2.default.isArray(i4) && i4.length ? i4.join(".', '") : "flow"}.' ) and the submitted variable scope is '${_2}.'.`); + } + this._dataType.isScriptCreatableForFlow(this.parentFlow) || this._itemIsInvalid(e3, "unable to create the variable '" + t3 + "' because its Architect data type ( not Architect Scripting type ) of '" + this.dataType.label + "' is not creatable from scripting."), T2 && (d2 && !this._dataType.isAvailableAsInputForFlowType(this._coreExpression.parentFlow.type) && this._itemIsInvalid(e3, "unable to create the variable '" + t3 + "' because its Architect data type ( not Architect Scripting type ) of '" + this.dataType.label + "' cannot be used as a flow input."), c2 && !this._dataType.isAvailableAsOutputForFlowType(this._coreExpression.parentFlow.type) && this._itemIsInvalid(e3, "unable to create the variable '" + t3 + "' because its Architect data type ( not Architect Scripting type ) of '" + this.dataType.label + "' cannot be used as a flow output.")), this.logNote("creating and assigning the variable named '" + t3 + "' in the " + _2 + " named '" + s2 + "'"), i3 = (0, o.addVariable)(t3, this._coreExpression, n3); + } + } + return i3 || this._itemIsInvalid(e3, `the variable '${t3}' does not exist and cannot be created.`), i3.isUnavailable && this._itemIsInvalid(e3, "the variable '" + i3.name + "' cannot be set because it is unavailable."), (0, p.isMatch)(i3.type, this._coreExpression.type, p.settings.exact) || this._itemIsInvalid(e3, "the variable named '" + i3.name + "' with type of '" + i3.type.displayString + "' cannot be assigned to a value with type of '" + this._coreExpression.type.displayString + "' since they do not match."), i3; + } + setExpressionFromVariable(e3) { + const t3 = this._infoParm("variableToAssign", "setExpressionFromVariable"); + this._checkItemUndefinedOrNull(t3, e3); + const i3 = "string" == typeof e3 ? !this.isValidString(e3) : !e3.isArchBaseVariable; + this._checkItem(t3, i3, "you must pass in either an Architect variable or string like 'Flow.MyString' that identifies the variable to set."), this._checkItem(t3, !this._settings.isWritable, "you cannot assign a variable because this value " + this.settings.logStr + " is not writable."), this._checkItem(t3, !this._settings.canBeExpression, "you cannot assign a variable because this value " + this.settings.logStr + " cannot be an expression."); + const n3 = this._resolveToCoreVariable(t3, e3); + return this._coreExpression.mode = l.ExpressionModes.expression, this._coreExpression.setText(n3.name), this._processValueOverridden(), "string" == typeof e3 ? this.coreFactory.createArchWrapper(n3) : e3; + } + setFromValue(e3) { + var t3, i3; + const n3 = this._infoParm("sourceValue", "setFromValue"); + this._checkItemUndefinedOrNull(n3, e3), this._checkItem(n3, !e3.isArchBaseValue, "you must pass in an ArchBaseValue instance."), this._checkItem(n3, !this._settings.isWritable, "you cannot set from value because this value " + this.settings.logStr + " is not writable."), this._checkItem(n3, !(0, p.isMatch)(e3._coreExpression.type, this._coreExpression.type, p.settings.exact), "the source value type '" + (null === (t3 = e3._coreExpression.type) || void 0 === t3 ? void 0 : t3.displayString) + "' does not match the destination value type '" + (null === (i3 = this._coreExpression.type) || void 0 === i3 ? void 0 : i3.displayString) + "'."), this._coreExpression.copyExpressionValue(e3._coreExpression), this._processValueOverridden(); + } + setNoValue() { + const e3 = this._infoMethod("setNoValue"); + this._checkItem(e3, !this._settings.canBeNoValue, "you cannot assign no value because this value " + this.settings.logStr + " needs to have a value assigned to it."), this._checkItem(e3, !this._settings.isWritable, "you cannot assign no value because this value " + this.settings.logStr + " is not writable."), this._coreExpression.setAsNoValue(), this._processValueOverridden(); + } + setNoValueNoFallback() { + const e3 = this._infoMethod("setNoValueNoFallback"); + this._checkItem(e3, !this._settings.canBeNoValue, "you cannot assign no value because this value " + this.settings.logStr + " needs to have a value assigned to it."), this._checkItem(e3, !this._settings.canBeNoValueNoFallback, "you cannot assign no value with no fallback because this value " + this.settings.logStr + " does not allow it."), this._checkItem(e3, !this._settings.isWritable, "you cannot assign no value because this value " + this.settings.logStr + " is not writable."), this._coreExpression.setAsNoValueNoFallback(), this._processValueOverridden(); + } + setVariable(e3) { + const t3 = this._infoParm("variableToAssign", "setVariable"); + this._checkItemUndefinedOrNull(t3, e3), this._checkItem(t3, !e3.isArchBaseVariable && !this.isValidString(e3), "you must pass in either an Architect variable or string like 'Flow.MyString' that identifies the variable to set."), this._checkItem(t3, !this._settings.canBeVariable, "you cannot assign a variable because this value " + this.settings.logStr + " cannot be a variable."), this._checkItem(t3, !this._settings.isWritable, "you cannot assign a variable because this value " + this.settings.logStr + " is not writable."); + const i3 = this._resolveToCoreVariable(t3, e3); + return this._settings.isOutput && i3.isReadOnly && this._itemIsInvalid(t3, "the variable '" + i3.name + "' cannot be set on this output value because it is read-only."), this._coreExpression.mode = l.ExpressionModes.variable, this._coreExpression.setText(i3.name), this._processValueOverridden(), e3.isArchBaseVariable ? e3 : this.coreFactory.createArchWrapper(i3); + } + get valueText() { + } + } + t2.default = y, Object.defineProperty(y, "definition", { get: function() { + return this.prototype._globalTypeName ? (this.prototype._ensureSessionIsConnected(this.prototype._infoPropGet("definition"), a.default), this.prototype.coreFactory.createArchDefinitionValue(c.globalTypes[this.prototype._globalTypeName])) : null; + }, enumerable: true, configurable: true }); + }, 23340: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.UtilizationLabelList = void 0; + const n2 = i2(31635), r2 = i2(80295), o = i2(15116), a = i2(64288); + class s extends o.PagedList { + constructor(e3) { + super(e3); + } + get entities() { + return this._entities; + } + set entities(e3) { + this._entities = this.reviveArray(e3, a.UtilizationLabel); + } + } + t2.UtilizationLabelList = s, n2.__decorate([(0, r2.enumerable)(true), n2.__metadata("design:type", Array), n2.__metadata("design:paramtypes", [Array])], s.prototype, "entities", null); + }, 23343: (e2, t2, i2) => { + "use strict"; + var n2, r2, o, a, s, l; + Object.defineProperty(t2, "__esModule", { value: true }), t2.ResponseAsset = void 0; + const u = i2(31635), d = i2(80295), c = i2(8820), p = i2(80295), _ = i2(84050); + class h extends _.NameIdDescriptionModel { + constructor(e3) { + super(e3), (0, p.makeUnenumerable)(this, "_division"), (0, p.makeUnenumerable)(this, "_contentLength"), (0, p.makeUnenumerable)(this, "_contentLocation"), (0, p.makeUnenumerable)(this, "_contentType"), (0, p.makeUnenumerable)(this, "_dateCreated"), (0, p.makeUnenumerable)(this, "_createdBy"), (0, p.makeUnenumerable)(this, "_dateModified"), (0, p.makeUnenumerable)(this, "_modifiedBy"), (0, p.makeUnenumerable)(this, "_responses"); + } + get division() { + return this._division; + } + set division(e3) { + this._division = e3; + } + get contentLength() { + return this._contentLength; + } + set contentLength(e3) { + this._contentLength = e3; + } + get contentLocation() { + return this._contentLocation; + } + set contentLocation(e3) { + this._contentLocation = e3; + } + get contentType() { + return this._contentType; + } + set contentType(e3) { + this._contentType = e3; + } + get dateCreated() { + return this._dateCreated; + } + set dateCreated(e3) { + this._dateCreated = e3; + } + get createdBy() { + return this._createdBy; + } + set createdBy(e3) { + this._createdBy = e3; + } + get dateModified() { + return this._dateModified; + } + set dateModified(e3) { + this._dateModified = e3; + } + get modifiedBy() { + return this._modifiedBy; + } + set modifiedBy(e3) { + this._modifiedBy = e3; + } + get responses() { + return this._responses; + } + set responses(e3) { + this._responses = e3; + } + } + t2.ResponseAsset = h, u.__decorate([(0, d.enumerable)(true), u.__metadata("design:type", "function" == typeof (n2 = void 0 !== c.IDataContractId && c.IDataContractId) ? n2 : Object), u.__metadata("design:paramtypes", ["function" == typeof (r2 = void 0 !== c.IDataContractId && c.IDataContractId) ? r2 : Object])], h.prototype, "division", null), u.__decorate([(0, d.enumerable)(true), u.__metadata("design:type", Number), u.__metadata("design:paramtypes", [Number])], h.prototype, "contentLength", null), u.__decorate([(0, d.enumerable)(true), u.__metadata("design:type", String), u.__metadata("design:paramtypes", [String])], h.prototype, "contentLocation", null), u.__decorate([(0, d.enumerable)(true), u.__metadata("design:type", String), u.__metadata("design:paramtypes", [String])], h.prototype, "contentType", null), u.__decorate([(0, d.enumerable)(true), u.__metadata("design:type", String), u.__metadata("design:paramtypes", [String])], h.prototype, "dateCreated", null), u.__decorate([(0, d.enumerable)(true), u.__metadata("design:type", "function" == typeof (o = void 0 !== c.IDataContractId && c.IDataContractId) ? o : Object), u.__metadata("design:paramtypes", ["function" == typeof (a = void 0 !== c.IDataContractId && c.IDataContractId) ? a : Object])], h.prototype, "createdBy", null), u.__decorate([(0, d.enumerable)(true), u.__metadata("design:type", String), u.__metadata("design:paramtypes", [String])], h.prototype, "dateModified", null), u.__decorate([(0, d.enumerable)(true), u.__metadata("design:type", "function" == typeof (s = void 0 !== c.IDataContractId && c.IDataContractId) ? s : Object), u.__metadata("design:paramtypes", ["function" == typeof (l = void 0 !== c.IDataContractId && c.IDataContractId) ? l : Object])], h.prototype, "modifiedBy", null), u.__decorate([(0, d.enumerable)(true), u.__metadata("design:type", Array), u.__metadata("design:paramtypes", [Array])], h.prototype, "responses", null); + }, 23399: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(81574)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "externalOrganization"; + } + get id() { + } + get createDateTimeUtc() { + } + get modifyDateTimeUtc() { + } + get kind() { + } + get name() { + } + get companyType() { + } + get industry() { + } + get primaryContactId() { + } + get address() { + } + get phoneNumber() { + } + get faxNumber() { + } + get employeeCount() { + } + get revenue() { + } + get tags() { + } + get tickers() { + } + get twitterInfo() { + } + get externalSystemUrl() { + } + get websites() { + } + get divisionId() { + } + get displayTypeName() { + return "ArchValueExternalOrganization"; + } + get isArchValueExternalOrganization() { + return true; + } + } + t2.default = r2; + }, 23436: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.ResponseLibrary = void 0; + const n2 = i2(84050); + class r2 extends n2.NameIdDescriptionModel { + constructor(e3) { + super(e3); + } + } + t2.ResponseLibrary = r2; + }, 23488: (e2, t2, i2) => { + "use strict"; + var n2, r2; + Object.defineProperty(t2, "__esModule", { value: true }); + const o = i2(31635), a = i2(80295), s = o.__importDefault(i2(90152)), l = o.__importDefault(i2(95079)), u = o.__importStar(i2(75800)); + class d extends l.default { + constructor(e3) { + super(e3), (0, a.makeUnenumerable)(this, "_categoryInfo"), (0, a.makeUnenumerable)(this, "_flowTypesDeprecated"); + } + get categoryInfo() { + return this._categoryInfo; + } + set categoryInfo(e3) { + this._categoryInfo = this.reviveItem(e3, s.default); + } + setExpandedFlowTypesDeprecated(e3) { + this._flowTypesDeprecated = e3; + } + get flowTypesDeprecated() { + return this._flowTypesDeprecated; + } + set flowTypesDeprecated(e3) { + this._reviveFlowTypeMap(e3, "_flowTypesDeprecated"); + } + } + t2.default = d, o.__decorate([(0, a.enumerable)(true), o.__metadata("design:type", "function" == typeof (n2 = void 0 !== s.default && s.default) ? n2 : Object), o.__metadata("design:paramtypes", [Object])], d.prototype, "categoryInfo", null), o.__decorate([(0, a.enumerable)(false), o.__metadata("design:type", "function" == typeof (r2 = void 0 !== u && u.IAvailabilitySupportMap) ? r2 : Object), o.__metadata("design:paramtypes", [Object])], d.prototype, "flowTypesDeprecated", null); + }, 23503: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.briefQueueManager = void 0; + const n2 = i2(31635), r2 = n2.__importStar(i2(1360)), o = n2.__importDefault(i2(47532)), a = i2(81801), s = i2(24032), l = i2(27862), u = i2(55190); + class d extends o.default { + get requiredAuth() { + return a.externalAuthorizations.authStrings.queuesSearch; + } + get dependencyType() { + return l.Queue; + } + constructor() { + super(), this.topic = (0, s.getTopic)("briefQueueManager"), this.apiCallList = u.getQueuesDivisionViews, this.className = "BriefQueueManager", this.defaultMatchingStyle = r2.exactMatch, this.dependencyContext = null, this.isBriefObjectManager = true, this.noApiCallSingle = true, this.defaultPageSize = 100, this.maxSupportedPageCount = 5, this.apiCallSingle = void 0, this._initialize(); + } + } + t2.briefQueueManager = new d(); + }, 23506: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.NotFoundError = void 0; + var n2 = i2(9619); + t2.NotFoundError = n2.createErrorClass(function(e3) { + return function(t3) { + e3(this), this.name = "NotFoundError", this.message = t3; + }; + }); + }, 23516: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(67336)); + class r2 extends n2.default { + constructor(e3) { + super(e3), this._notWritableOverride = false; + const t3 = this._infoParmCtor("coreAudioViewModel"); + this._checkItem(t3, !e3.parentFlow, "the coreAudioViewModel does not have a parent flow"), this._coreAudioViewModel = e3; + } + _setNotWritableOverride(e3) { + return this._notWritableOverride = e3, this; + } + get displayTypeName() { + return "ArchAudio"; + } + get logStr() { + if (!this._coreAudioViewModel) return this.logStrTypeOnly; + const e3 = []; + return this._appendLogStrParentParts(e3, this._coreAudioViewModel.parent), this._appendLogStrProperty(e3, this._coreAudioViewModel.label), this._createLogStrFromParts(e3); + } + get defaultCase() { + return this.coreFactory.createArchWrapper(this._coreAudioViewModel.defaultAudio)._setNotWritableOverride(this._notWritableOverride); + } + getAudioCaseByLanguage(e3) { + const t3 = this._infoParm("archLanguage", "getAudioCaseByLanguage"); + this._checkItem(t3, !e3 || !e3.isArchLanguage, "you must pass in a valid ArchLanguage instance when requesting an audio case."), this._checkItem(t3, !this._coreAudioViewModel.parentFlow.languages.isFlowSupportedLanguage(e3.tag), "the language " + e3.logStr + " is not a supported language in the flow."); + let i3 = this._coreAudioViewModel.getCaseForLang(e3.tag, true); + return i3 || (this.logNote("adding a core audio case for " + e3.logStr + " since it did not exist for that language."), i3 = this._coreAudioViewModel.addAudioCase(e3.tag)), this.coreFactory.createArchWrapper(i3)._setNotWritableOverride(this._notWritableOverride); + } + get isArchAudio() { + return true; + } + get isWritable() { + return !this._notWritableOverride; + } + get label() { + return this._coreAudioViewModel.label; + } + get parent() { + return this.coreFactory.createArchWrapper(this._coreAudioViewModel.parent); + } + setDefaultCaseExpression(e3) { + this.defaultCase.setExpression(e3); + } + setDefaultCaseExpressionToAudioTTS(e3, t3) { + this.defaultCase.setExpressionToAudioTTS(e3, t3); + } + setDefaultCaseLiteralTTS(e3) { + this.defaultCase.setLiteralTTS(e3); + } + setFromArchAudio(e3) { + this._checkItem(this._infoObject(this), this._notWritableOverride, "you cannot assign an ArchAudio instance because this ArchAudio " + this.logStr + " is not writable."), this._coreAudioViewModel.copyAudioViewModel(e3._coreAudioViewModel); + } + } + t2.default = r2; + }, 23540: (e2, t2, i2) => { + const n2 = i2(75458), { updateWorkitemActionType: r2 } = i2(30801), o = i2(42217); + function a() { + Object.defineProperties(this, { _variables: { writable: true } }), a.baseConstructor.apply(this, arguments); + } + n2.extend(a, r2, true), Object.defineProperties(a.prototype, { variables: { enumerable: true, get: function() { + return this._variables; + }, set: function(e3) { + this._variables = this.reviveArray(e3, o); + } }, pasteResolveOldToNewValues: { value: function(e3) { + a._super.pasteResolveOldToNewValues.apply(this, arguments), this.variables.forEach((t3) => { + t3.pasteResolveOldToNewValues(e3); + }); + } }, pasteReIdOrRename: { value: function(e3) { + a._super.pasteReIdOrRename.apply(this, arguments), this.variables.forEach((t3) => { + t3.pasteReIdOrRename(e3); + }); + } } }), e2.exports = a; + }, 23581: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importDefault(i2(92140)), o = n2.__importStar(i2(24032)), a = n2.__importDefault(i2(98134)), s = n2.__importDefault(i2(5532)), l = n2.__importDefault(i2(45148)), u = o.getTopic("BaseBuilderWithBuilderPartsDef"); + class d extends l.default { + constructor(e3, t3, i3, n3, r3, o2, a2, s2, l2, d2, c, p, _, h, m, g, f, T) { + if (super(e3, t3, i3, n3, r3, o2, a2, s2, c || o2.getArchIcon(), p, _, h, m), Object.defineProperties(this, { _builderManagesContainerOrder: { value: !!T }, _builderPartDefCategoryIdentifierOrIdentifiers: { value: l2 }, _builderPartTypes: { value: f }, _defaultBuilderPartId: { value: d2 }, _fixedBuilderPart: { value: !!g && !!g.fixedBuilderPart }, _maxBuilderPartCount: { value: g ? g.maxBuilderPartCount : void 0 }, _minBuilderPartCount: { value: g ? g.minBuilderPartCount : 1 }, _warnOnNoParts: { value: g ? g.warnOnNoParts : void 0 } }), !this.generators || !this.generators.noOrDisabledPartsGenerator) { + const e4 = `${this.id} does not have a disabled or no parts generator defined.`; + u.error(e4); + } + } + get className() { + return "BaseBuilderWithBuilderPartsDef"; + } + createOrReviveBuilder(e3, t3) { + var i3, n3; + try { + const r3 = null === (n3 = null === (i3 = e3.model) || void 0 === i3 ? void 0 : i3.uiMetaData) || void 0 === n3 ? void 0 : n3.builder; + if (r3 && this.id === r3.builderDefId) return this.reviveBuilder(e3, e3.model.uiMetaData.builder, t3); + r3 && delete e3.model.uiMetaData.builder; + } catch (e4) { + console.error(e4); + } + return this.createBuilder(e3); + } + get defaultBuilderPartId() { + return this._defaultBuilderPartId; + } + get isBaseBuilderWithBuilderPartsDef() { + return true; + } + get fixedBuilderPart() { + return this._fixedBuilderPart; + } + get builderManagesContainerOrder() { + return this._builderManagesContainerOrder; + } + get hasMaxBuilderPartCount() { + return r2.default.isActualNumber(this.maxBuilderPartCount); + } + get maxBuilderPartCount() { + return this._maxBuilderPartCount; + } + get hasMinBuilderPartCount() { + return r2.default.isActualNumber(this.minBuilderPartCount); + } + get minBuilderPartCount() { + return this._minBuilderPartCount; + } + get warnOnNoParts() { + return this._warnOnNoParts; + } + _isAvailableForFlowType(e3) { + return !!super._isAvailableForFlowType(e3) && this.getAvailableBuilderPartDefinitionsForFlowType(e3).length > 0; + } + getSupportedBuilderPartTypes() { + return r2.default.isArray(this._builderPartTypes) ? this._builderPartTypes : [this.resultExpressionType]; + } + getAvailableBuilderPartDefinitionsForFlowType(e3, t3) { + return s.default.getBuilderPartDefinitions(this.getSupportedBuilderPartTypes(), e3, this._builderPartDefCategoryIdentifierOrIdentifiers || t3); + } + getAvailableBuilderPartContainerDefinitionsForFlowType(e3) { + return s.default.getBuilderPartContainerDefinitions(this.getSupportedBuilderPartTypes(), e3, this._builderPartDefCategoryIdentifierOrIdentifiers); + } + createDefaultBuilderPartsModel() { + return new a.default({ builderDefId: this.id, version: this.version }); + } + get modelType() { + return a.default; + } + } + t2.default = d; + }, 23657: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.ExpressionTypeShippingOptions = void 0; + const n2 = i2(65615); + class r2 extends n2.BaseExpressionTypeCollectionOptions { + static create(e3, t3) { + return new this(t3).invokeOptionsCallback(e3); + } + constructor(e3) { + super(e3); + } + get isExpressionTypeShippingOptions() { + return true; + } + get className() { + return "ExpressionTypeShippingOptions"; + } + } + t2.ExpressionTypeShippingOptions = r2; + }, 23665: (e2, t2, i2) => { + "use strict"; + var n2 = i2(9805); + function r2(e3) { + for (var t3 = e3.length; --t3 >= 0; ) e3[t3] = 0; + } + var o = [0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 0], a = [0, 0, 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 13, 13], s = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 3, 7], l = [16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15], u = new Array(576); + r2(u); + var d = new Array(60); + r2(d); + var c = new Array(512); + r2(c); + var p = new Array(256); + r2(p); + var _ = new Array(29); + r2(_); + var h, m, g, f = new Array(30); + function T(e3, t3, i3, n3, r3) { + this.static_tree = e3, this.extra_bits = t3, this.extra_base = i3, this.elems = n3, this.max_length = r3, this.has_stree = e3 && e3.length; + } + function y(e3, t3) { + this.dyn_tree = e3, this.max_code = 0, this.stat_desc = t3; + } + function S(e3) { + return e3 < 256 ? c[e3] : c[256 + (e3 >>> 7)]; + } + function A(e3, t3) { + e3.pending_buf[e3.pending++] = 255 & t3, e3.pending_buf[e3.pending++] = t3 >>> 8 & 255; + } + function N(e3, t3, i3) { + e3.bi_valid > 16 - i3 ? (e3.bi_buf |= t3 << e3.bi_valid & 65535, A(e3, e3.bi_buf), e3.bi_buf = t3 >> 16 - e3.bi_valid, e3.bi_valid += i3 - 16) : (e3.bi_buf |= t3 << e3.bi_valid & 65535, e3.bi_valid += i3); + } + function O(e3, t3, i3) { + N(e3, i3[2 * t3], i3[2 * t3 + 1]); + } + function I(e3, t3) { + var i3 = 0; + do { + i3 |= 1 & e3, e3 >>>= 1, i3 <<= 1; + } while (--t3 > 0); + return i3 >>> 1; + } + function v(e3, t3, i3) { + var n3, r3, o2 = new Array(16), a2 = 0; + for (n3 = 1; n3 <= 15; n3++) o2[n3] = a2 = a2 + i3[n3 - 1] << 1; + for (r3 = 0; r3 <= t3; r3++) { + var s2 = e3[2 * r3 + 1]; + 0 !== s2 && (e3[2 * r3] = I(o2[s2]++, s2)); + } + } + function C(e3) { + var t3; + for (t3 = 0; t3 < 286; t3++) e3.dyn_ltree[2 * t3] = 0; + for (t3 = 0; t3 < 30; t3++) e3.dyn_dtree[2 * t3] = 0; + for (t3 = 0; t3 < 19; t3++) e3.bl_tree[2 * t3] = 0; + e3.dyn_ltree[512] = 1, e3.opt_len = e3.static_len = 0, e3.last_lit = e3.matches = 0; + } + function b(e3) { + e3.bi_valid > 8 ? A(e3, e3.bi_buf) : e3.bi_valid > 0 && (e3.pending_buf[e3.pending++] = e3.bi_buf), e3.bi_buf = 0, e3.bi_valid = 0; + } + function E(e3, t3, i3, n3) { + var r3 = 2 * t3, o2 = 2 * i3; + return e3[r3] < e3[o2] || e3[r3] === e3[o2] && n3[t3] <= n3[i3]; + } + function R(e3, t3, i3) { + for (var n3 = e3.heap[i3], r3 = i3 << 1; r3 <= e3.heap_len && (r3 < e3.heap_len && E(t3, e3.heap[r3 + 1], e3.heap[r3], e3.depth) && r3++, !E(t3, n3, e3.heap[r3], e3.depth)); ) e3.heap[i3] = e3.heap[r3], i3 = r3, r3 <<= 1; + e3.heap[i3] = n3; + } + function w(e3, t3, i3) { + var n3, r3, s2, l2, u2 = 0; + if (0 !== e3.last_lit) do { + n3 = e3.pending_buf[e3.d_buf + 2 * u2] << 8 | e3.pending_buf[e3.d_buf + 2 * u2 + 1], r3 = e3.pending_buf[e3.l_buf + u2], u2++, 0 === n3 ? O(e3, r3, t3) : (O(e3, (s2 = p[r3]) + 256 + 1, t3), 0 !== (l2 = o[s2]) && N(e3, r3 -= _[s2], l2), O(e3, s2 = S(--n3), i3), 0 !== (l2 = a[s2]) && N(e3, n3 -= f[s2], l2)); + } while (u2 < e3.last_lit); + O(e3, 256, t3); + } + function D(e3, t3) { + var i3, n3, r3, o2 = t3.dyn_tree, a2 = t3.stat_desc.static_tree, s2 = t3.stat_desc.has_stree, l2 = t3.stat_desc.elems, u2 = -1; + for (e3.heap_len = 0, e3.heap_max = 573, i3 = 0; i3 < l2; i3++) 0 !== o2[2 * i3] ? (e3.heap[++e3.heap_len] = u2 = i3, e3.depth[i3] = 0) : o2[2 * i3 + 1] = 0; + for (; e3.heap_len < 2; ) o2[2 * (r3 = e3.heap[++e3.heap_len] = u2 < 2 ? ++u2 : 0)] = 1, e3.depth[r3] = 0, e3.opt_len--, s2 && (e3.static_len -= a2[2 * r3 + 1]); + for (t3.max_code = u2, i3 = e3.heap_len >> 1; i3 >= 1; i3--) R(e3, o2, i3); + r3 = l2; + do { + i3 = e3.heap[1], e3.heap[1] = e3.heap[e3.heap_len--], R(e3, o2, 1), n3 = e3.heap[1], e3.heap[--e3.heap_max] = i3, e3.heap[--e3.heap_max] = n3, o2[2 * r3] = o2[2 * i3] + o2[2 * n3], e3.depth[r3] = (e3.depth[i3] >= e3.depth[n3] ? e3.depth[i3] : e3.depth[n3]) + 1, o2[2 * i3 + 1] = o2[2 * n3 + 1] = r3, e3.heap[1] = r3++, R(e3, o2, 1); + } while (e3.heap_len >= 2); + e3.heap[--e3.heap_max] = e3.heap[1], (function(e4, t4) { + var i4, n4, r4, o3, a3, s3, l3 = t4.dyn_tree, u3 = t4.max_code, d2 = t4.stat_desc.static_tree, c2 = t4.stat_desc.has_stree, p2 = t4.stat_desc.extra_bits, _2 = t4.stat_desc.extra_base, h2 = t4.stat_desc.max_length, m2 = 0; + for (o3 = 0; o3 <= 15; o3++) e4.bl_count[o3] = 0; + for (l3[2 * e4.heap[e4.heap_max] + 1] = 0, i4 = e4.heap_max + 1; i4 < 573; i4++) (o3 = l3[2 * l3[2 * (n4 = e4.heap[i4]) + 1] + 1] + 1) > h2 && (o3 = h2, m2++), l3[2 * n4 + 1] = o3, n4 > u3 || (e4.bl_count[o3]++, a3 = 0, n4 >= _2 && (a3 = p2[n4 - _2]), s3 = l3[2 * n4], e4.opt_len += s3 * (o3 + a3), c2 && (e4.static_len += s3 * (d2[2 * n4 + 1] + a3))); + if (0 !== m2) { + do { + for (o3 = h2 - 1; 0 === e4.bl_count[o3]; ) o3--; + e4.bl_count[o3]--, e4.bl_count[o3 + 1] += 2, e4.bl_count[h2]--, m2 -= 2; + } while (m2 > 0); + for (o3 = h2; 0 !== o3; o3--) for (n4 = e4.bl_count[o3]; 0 !== n4; ) (r4 = e4.heap[--i4]) > u3 || (l3[2 * r4 + 1] !== o3 && (e4.opt_len += (o3 - l3[2 * r4 + 1]) * l3[2 * r4], l3[2 * r4 + 1] = o3), n4--); + } + })(e3, t3), v(o2, u2, e3.bl_count); + } + function P(e3, t3, i3) { + var n3, r3, o2 = -1, a2 = t3[1], s2 = 0, l2 = 7, u2 = 4; + for (0 === a2 && (l2 = 138, u2 = 3), t3[2 * (i3 + 1) + 1] = 65535, n3 = 0; n3 <= i3; n3++) r3 = a2, a2 = t3[2 * (n3 + 1) + 1], ++s2 < l2 && r3 === a2 || (s2 < u2 ? e3.bl_tree[2 * r3] += s2 : 0 !== r3 ? (r3 !== o2 && e3.bl_tree[2 * r3]++, e3.bl_tree[32]++) : s2 <= 10 ? e3.bl_tree[34]++ : e3.bl_tree[36]++, s2 = 0, o2 = r3, 0 === a2 ? (l2 = 138, u2 = 3) : r3 === a2 ? (l2 = 6, u2 = 3) : (l2 = 7, u2 = 4)); + } + function M(e3, t3, i3) { + var n3, r3, o2 = -1, a2 = t3[1], s2 = 0, l2 = 7, u2 = 4; + for (0 === a2 && (l2 = 138, u2 = 3), n3 = 0; n3 <= i3; n3++) if (r3 = a2, a2 = t3[2 * (n3 + 1) + 1], !(++s2 < l2 && r3 === a2)) { + if (s2 < u2) do { + O(e3, r3, e3.bl_tree); + } while (0 !== --s2); + else 0 !== r3 ? (r3 !== o2 && (O(e3, r3, e3.bl_tree), s2--), O(e3, 16, e3.bl_tree), N(e3, s2 - 3, 2)) : s2 <= 10 ? (O(e3, 17, e3.bl_tree), N(e3, s2 - 3, 3)) : (O(e3, 18, e3.bl_tree), N(e3, s2 - 11, 7)); + s2 = 0, o2 = r3, 0 === a2 ? (l2 = 138, u2 = 3) : r3 === a2 ? (l2 = 6, u2 = 3) : (l2 = 7, u2 = 4); + } + } + r2(f); + var F = false; + function L(e3, t3, i3, r3) { + N(e3, 0 + (r3 ? 1 : 0), 3), (function(e4, t4, i4) { + b(e4), A(e4, i4), A(e4, ~i4), n2.arraySet(e4.pending_buf, e4.window, t4, i4, e4.pending), e4.pending += i4; + })(e3, t3, i3); + } + t2._tr_init = function(e3) { + F || ((function() { + var e4, t3, i3, n3, r3, l2 = new Array(16); + for (i3 = 0, n3 = 0; n3 < 28; n3++) for (_[n3] = i3, e4 = 0; e4 < 1 << o[n3]; e4++) p[i3++] = n3; + for (p[i3 - 1] = n3, r3 = 0, n3 = 0; n3 < 16; n3++) for (f[n3] = r3, e4 = 0; e4 < 1 << a[n3]; e4++) c[r3++] = n3; + for (r3 >>= 7; n3 < 30; n3++) for (f[n3] = r3 << 7, e4 = 0; e4 < 1 << a[n3] - 7; e4++) c[256 + r3++] = n3; + for (t3 = 0; t3 <= 15; t3++) l2[t3] = 0; + for (e4 = 0; e4 <= 143; ) u[2 * e4 + 1] = 8, e4++, l2[8]++; + for (; e4 <= 255; ) u[2 * e4 + 1] = 9, e4++, l2[9]++; + for (; e4 <= 279; ) u[2 * e4 + 1] = 7, e4++, l2[7]++; + for (; e4 <= 287; ) u[2 * e4 + 1] = 8, e4++, l2[8]++; + for (v(u, 287, l2), e4 = 0; e4 < 30; e4++) d[2 * e4 + 1] = 5, d[2 * e4] = I(e4, 5); + h = new T(u, o, 257, 286, 15), m = new T(d, a, 0, 30, 15), g = new T(new Array(0), s, 0, 19, 7); + })(), F = true), e3.l_desc = new y(e3.dyn_ltree, h), e3.d_desc = new y(e3.dyn_dtree, m), e3.bl_desc = new y(e3.bl_tree, g), e3.bi_buf = 0, e3.bi_valid = 0, C(e3); + }, t2._tr_stored_block = L, t2._tr_flush_block = function(e3, t3, i3, n3) { + var r3, o2, a2 = 0; + e3.level > 0 ? (2 === e3.strm.data_type && (e3.strm.data_type = (function(e4) { + var t4, i4 = 4093624447; + for (t4 = 0; t4 <= 31; t4++, i4 >>>= 1) if (1 & i4 && 0 !== e4.dyn_ltree[2 * t4]) return 0; + if (0 !== e4.dyn_ltree[18] || 0 !== e4.dyn_ltree[20] || 0 !== e4.dyn_ltree[26]) return 1; + for (t4 = 32; t4 < 256; t4++) if (0 !== e4.dyn_ltree[2 * t4]) return 1; + return 0; + })(e3)), D(e3, e3.l_desc), D(e3, e3.d_desc), a2 = (function(e4) { + var t4; + for (P(e4, e4.dyn_ltree, e4.l_desc.max_code), P(e4, e4.dyn_dtree, e4.d_desc.max_code), D(e4, e4.bl_desc), t4 = 18; t4 >= 3 && 0 === e4.bl_tree[2 * l[t4] + 1]; t4--) ; + return e4.opt_len += 3 * (t4 + 1) + 5 + 5 + 4, t4; + })(e3), r3 = e3.opt_len + 3 + 7 >>> 3, (o2 = e3.static_len + 3 + 7 >>> 3) <= r3 && (r3 = o2)) : r3 = o2 = i3 + 5, i3 + 4 <= r3 && -1 !== t3 ? L(e3, t3, i3, n3) : 4 === e3.strategy || o2 === r3 ? (N(e3, 2 + (n3 ? 1 : 0), 3), w(e3, u, d)) : (N(e3, 4 + (n3 ? 1 : 0), 3), (function(e4, t4, i4, n4) { + var r4; + for (N(e4, t4 - 257, 5), N(e4, i4 - 1, 5), N(e4, n4 - 4, 4), r4 = 0; r4 < n4; r4++) N(e4, e4.bl_tree[2 * l[r4] + 1], 3); + M(e4, e4.dyn_ltree, t4 - 1), M(e4, e4.dyn_dtree, i4 - 1); + })(e3, e3.l_desc.max_code + 1, e3.d_desc.max_code + 1, a2 + 1), w(e3, e3.dyn_ltree, e3.dyn_dtree)), C(e3), n3 && b(e3); + }, t2._tr_tally = function(e3, t3, i3) { + return e3.pending_buf[e3.d_buf + 2 * e3.last_lit] = t3 >>> 8 & 255, e3.pending_buf[e3.d_buf + 2 * e3.last_lit + 1] = 255 & t3, e3.pending_buf[e3.l_buf + e3.last_lit] = 255 & i3, e3.last_lit++, 0 === t3 ? e3.dyn_ltree[2 * i3]++ : (e3.matches++, t3--, e3.dyn_ltree[2 * (p[i3] + 256 + 1)]++, e3.dyn_dtree[2 * S(t3)]++), e3.last_lit === e3.lit_bufsize - 1; + }, t2._tr_align = function(e3) { + N(e3, 2, 3), O(e3, 256, u), (function(e4) { + 16 === e4.bi_valid ? (A(e4, e4.bi_buf), e4.bi_buf = 0, e4.bi_valid = 0) : e4.bi_valid >= 8 && (e4.pending_buf[e4.pending++] = 255 & e4.bi_buf, e4.bi_buf >>= 8, e4.bi_valid -= 8); + })(e3); + }; + }, 23695: (e2, t2, i2) => { + const n2 = i2(13265), r2 = i2(2053), o = i2(58996), a = i2(5024).default; + function s() { + Object.defineProperties(this, { _debugSettings: { writable: true }, _errorHandling: { writable: true } }), this.nextTrackingNumber = a.minTrackingId, this.periodicStateId = void 0, s.baseConstructor.apply(this, arguments); + } + o.extend(s, "WorkflowConfiguration"), Object.defineProperties(s.prototype, { debugSettings: { enumerable: true, get: function() { + return this._debugSettings; + }, set: function(e3) { + this._debugSettings = new n2(e3); + } }, errorHandling: { enumerable: true, get: function() { + return this._errorHandling; + }, set: function(e3) { + this._errorHandling = this.reviveItem(e3, r2); + } } }), e2.exports = s; + }, 23714: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(88308)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + _deleteMenuChoices(e3) { + for (let t3 = e3.choices.length - 1; t3 >= 0; t3--) { + const i3 = e3.choices[t3]; + i3.choices && this._deleteMenuChoices(i3); + } + e3.parentFlow.deleteNode(e3); + } + deleteMenu(e3) { + const t3 = this._infoParm("reusableMenuToDelete", "deleteMenu"); + this._checkItem(t3, !e3 || !e3.isArchMenu, "The parameter value must be an ArchMenu instance."), this._checkItem(t3, !e3.isReusableMenu, "The menu to delete must be a reusable menu instance."), this._checkItem(t3, e3.parentFlow._getCoreViewModel() !== this._getCoreViewModel(), "The menu to delete is not part of this flow."); + const i3 = e3.logStr; + this.logNote("deleting the reusable menu " + i3), this._deleteMenuChoices(e3._getCoreViewModel()), this.logNote("reusable menu deletion complete for " + i3); + } + get menusReusable() { + const e3 = []; + return this._getCoreViewModel().menus.forEach((t3) => { + const i3 = this.coreFactory.createArchWrapper(t3); + i3.isReusableMenu && e3.push(i3); + }), e3; + } + } + t2.default = r2; + }, 23753: (e2, t2, i2) => { + "use strict"; + const n2 = i2(31635), r2 = i2(17604), o = n2.__importDefault(i2(92140)), a = i2(9456), s = n2.__importDefault(i2(73198)), l = n2.__importStar(i2(9345)), u = n2.__importStar(i2(8462)), d = n2.__importStar(i2(36781)), c = n2.__importStar(i2(63352)), p = n2.__importDefault(i2(65302)), _ = i2(49892), h = n2.__importStar(i2(74359)), m = i2(36781), g = n2.__importDefault(i2(41510)), f = n2.__importStar(i2(1115)), T = i2(82632), y = i2(12179), S = i2(68038), A = i2(50474), N = i2(12457), O = n2.__importDefault(i2(97891)), I = n2.__importDefault(i2(5730)), v = i2(26847), C = i2(80428), b = i2(11276), E = i2(47957); + class R extends I.default { + constructor(e3, t3) { + super(e3.parentFlow, e3), this._loadModel(t3), this._updateOutOfService(), this.cases.items.forEach((e4) => e4.collapsed = false), this.addAutoCleanedUpEventSinkWatch(m.listOrderChanged, this.cases, () => { + this._renameAllCases(); + }), this.addAutoCleanedUpEventSinkWatch(d.expressionValueChanged, this.expression, () => { + this._hasCaseMismatch(true) && f.validateAction(this, false, true); + }); + } + findBranchIndex(e3) { + let t3; + for (let i3 = 0; i3 < this.branches.length; i3++) if (this.branches[i3].model.outputId === e3.model.referenceId) { + t3 = i3; + break; + } + return t3; + } + _createCaseExpressionOptions() { + const e3 = u.buildOptions(this._getSwitchExpressionType(), void 0, this.parentFlow); + return e3.setFromOptions(R.managedProperties.find((e4) => "cases" === e4.property).options), e3; + } + _getSwitchExpressionType() { + return this.switchStyle === S.SwitchStyles.matchExpression ? this.expression.type : p.default.getGlobalTypeGroup().getType(C.expressionTypeNames.boolean); + } + _transitionAction() { + if (this.model.paths && this.model.paths.length > 0 && "__1__" === this.model.paths[0].outputId) for (let e3 = 0; e3 < this.cases.items.length; e3++) this.cases.items[e3].model.referenceId = this.cases.items[e3].model.referenceId ? this.cases.items[e3].model.referenceId : (0, a.uuid)(), this.model.paths[e3].outputId = this.cases.items[e3].model.referenceId; + } + _renameCase(e3, t3) { + this.cases.items[t3].name = e3, this.cases.model[t3].label = e3, this.cases.items[t3].value.label = this.cases.getLabel((t3 + 1).toString()), this.model.paths[t3].label = e3; + } + _renameAllCases() { + this.cases.items.forEach((e3, t3) => { + this._renameCase((0, r2.sprintf)(g.default.switchAction.caseNumber, t3 + 1), t3); + }); + } + get switchStyle() { + return this.model.switchStyle; + } + set switchStyle(e3) { + this.model.switchStyle = e3, this._updateOutOfService(); + } + _updateOutOfService() { + this.expression.outOfService = this.switchStyle !== S.SwitchStyles.matchExpression; + } + get branchInfos() { + return this.createBranchInfo(); + } + get canAddMore() { + return this.cases.items.length < T.switchActionCaseLimits.numMaxCases; + } + get canDeleteMore() { + return this.cases.items.length > 1; + } + createBranchInfo() { + const e3 = []; + if (this.version || (this._transitionAction(), this.version = "1.0"), !(this.cases && this.cases.items.length > 0)) return this.createCaseDefaults(), this.createBranchInfo(); + for (let t3 = 0; t3 < this.cases.items.length; t3++) e3.push({ localizedLabel: (0, r2.sprintf)(E.switch.caseNum, t3 + 1), label: (0, r2.sprintf)(g.default.switchAction.caseNumber, t3 + 1), outputId: this.cases.items[t3].model.referenceId, required: true }); + return e3.push({ localizedLabel: E.switch.default, label: g.default.switchAction.default, outputId: v.outputIds.default, required: true }), e3; + } + createCaseDefaults() { + for (let e3 = 0; e3 < T.switchActionCaseLimits.numDefaultCases; e3++) this.addCase(true); + } + addCase(e3) { + if (this.canAddMore) { + const t3 = this._getSwitchExpressionType(), i3 = { name: (0, r2.sprintf)(g.default.switchAction.caseNumber, this.cases.items.length + 1) }; + let n3; + if (n3 = t3.isCollection ? this.cases.createItem(i3, t3, null, this._createCaseExpressionOptions()) : this.cases.createItem(i3, t3, t3.expressionType !== C.expressionTypeNames.string || "", this._createCaseExpressionOptions()), h.isRunningInBrowser() && this.cases.items.length > 0) { + const e4 = this.cases.items[this.cases.items.length - 1].value, t4 = e4.isBuilderMode ? c.expression : e4.mode; + t4 !== n3.value.mode && (n3.value.clear(true), n3.value.setModeWithTransition(t4, null)); + } + return this.cases.addItem(n3), this.cases.items[this.cases.items.length - 1].model.referenceId = (0, a.uuid)(), e3 || this.reloadBranches(), this.cases.expandNewItem(n3), n3; + } + } + deleteCase(e3) { + if (this.canDeleteMore) { + let t3 = false; + for (let i3 = 0; i3 < this.cases.items.length; i3++) t3 && this._renameCase((0, r2.sprintf)(g.default.switchAction.caseNumber, i3 + 1), i3), this.cases.items[i3].model.referenceId !== e3.model.referenceId || t3 || (this.cases.items.splice(i3, 1), this.cases.model.splice(i3, 1), this.model.paths.splice(i3, 1), t3 = true, i3--); + this.reloadBranches(); + } + } + getDetails() { + return this.switchStyle === S.SwitchStyles.firstTrueCase ? new N.ActionDetails([null], [E.switch.firstTrueCase]) : this.expression && this.expression.text ? new N.ActionDetails([null], [this.expression.text]) : null; + } + _hasCaseMismatch(e3) { + let t3; + this.switchStyle === S.SwitchStyles.firstTrueCase ? t3 = p.default.getGlobalTypeGroup().getType(C.expressionTypeNames.boolean) : ((e3 || this.expression.type.isAny) && this.expression.processText(true), t3 = this.expression.type); + for (let e4 = 0; e4 < this.cases.items.length; e4++) if (!this.cases.items[e4].value.type.isMatch(t3, l.settings.exactMatch)) return true; + } + _initializeDesignTime() { + super._initializeDesignTime(); + for (let e3 = 0; e3 < this.cases.items.length; e3++) this.cases.items[e3].model.name = (0, r2.sprintf)(g.default.switchAction.caseNumber, e3 + 1); + } + setNewInstanceDefaults() { + super.setNewInstanceDefaults(...arguments), o.default.isUndefined(this.switchStyle) && (this.switchStyle = S.SwitchStyles.firstTrueCase); + } + static get managedProperties() { + return [{ property: "cases", options: _.ExpressionTypelessOptions.create((e3) => e3.setIsOptional(true).setNoOriginalType(true).setLocalizedLabelPrefix(E.switch.caseNum)), yamlOptions: R.createYamlOptions("cases", (e3) => e3.setWrapValueAndActionsInPropertyName("case")), dataList: true }, { property: "expression", label: E.expression.label, type: C.expressionTypeNames.any, options: _.ExpressionTypelessOptions.create((e3) => e3.setAllowModeExpressionOnly().setIninTestingField("decisionExpression")), yamlOptions: R.createYamlOptions("expression", (e3) => e3.setPropertyName("value")) }]; + } + moveCaseUp(e3) { + const t3 = this.findBranchIndex(e3), i3 = this.cases.moveUp(e3); + if (i3 >= 0) return this._renameCase((0, r2.sprintf)(g.default.switchAction.caseNumber, t3 + 1), t3), this._renameCase((0, r2.sprintf)(g.default.switchAction.caseNumber, t3), t3 - 1), this.reloadBranches(), i3; + } + moveCaseDown(e3) { + const t3 = this.findBranchIndex(e3), i3 = this.cases.moveDown(e3); + if (i3 >= 0) return this._renameCase((0, r2.sprintf)(g.default.switchAction.caseNumber, t3 + 2), t3 + 1), this._renameCase((0, r2.sprintf)(g.default.switchAction.caseNumber, t3 + 1), t3), this.reloadBranches(), i3; + } + moveToIndex(e3, t3) { + this.cases.moveToIndex(e3, t3), this._renameAllCases(), this.reloadBranches(); + } + postProcessYamlConfig(e3, t3, i3) { + let n3; + if (e3.evaluate = {}, this.switchStyle === S.SwitchStyles.matchExpression) { + e3.evaluate.firstMatch = {}; + const t4 = this.expression.type.yamlTypeName; + n3 = e3.evaluate.firstMatch[t4] = {}, o.default.moveAndDeleteProperty(e3, n3, "value"); + } else this.switchStyle === S.SwitchStyles.firstTrueCase && (n3 = e3.evaluate.firstTrue = {}, delete e3.value); + const r3 = this.getBranch(v.outputIds.default); + if (r3) { + const e4 = r3.getConfiguration(t3, i3); + e4 && (n3.default = e4); + } + delete e3.outputs, o.default.moveAndDeleteProperty(e3, n3, "cases"); + } + updateCaseTypes(e3, t3) { + if (!t3) { + for (let e4 = 0; e4 < this.cases.items.length; e4++) if (this.cases.items[e4].value.isLiteralMode) return void f.validateAction(this, false, true); + } + const i3 = this.cases; + for (let t4 = 0; t4 < i3.items.length; t4++) { + const n3 = i3.items[t4]; + if (n3.value.type.isMatch(e3, l.settings.exactMatch)) continue; + const r3 = n3.value, o2 = r3.isExpressionMode, a2 = r3.isLiteralMode, u2 = r3.text, d2 = this.cases.createItem({ name: this.cases.items[t4].name, referenceId: this.cases.items[t4].model.referenceId }, e3, null, this._createCaseExpressionOptions(), (t4 + 1).toString()); + i3.replaceItemAtIndex(t4, d2); + const _2 = d2.value; + if (o2) _2.setAsExpression(u2); + else if (a2) { + const e4 = p.default.getType(this.parentFlow, C.expressionTypeNames.boolean); + _2.type.isMatch(e4, l.settings.exactMatch) ? _2.setAsLiteral(s.default.true) : (0, A.isCollectionExpression)(_2) ? _2.setAsLiteral(_2) : _2.setAsLiteral(""), _2.options.allowModeLiteral || _2.setModeWithTransition(c.noValue); + } + _2.processText(); + } + f.validateAction(this, false, true); + } + reloadBranches() { + b.loadBranches(this); + for (let e3 = 0; e3 < this.branches.length; e3++) this.branches[e3].initialize(), this.branches[e3].updateTermination(); + d.emitter.emit(d.branchesChanged); + } + validate(e3) { + super.validate(e3), this.expression.options.setIsOptional(this.switchStyle !== S.SwitchStyles.matchExpression), this._updateOutOfService(), this.hasInvalidTypeError = false, this.switchStyle === S.SwitchStyles.matchExpression && this.expression && (this.expression.type.isUserCreatableForFlow(this.parentFlow) || (this.hasInvalidTypeError = true, e3.addExpressionError(this.expression, (0, r2.sprintf)(E.switch.expressionTypeInvalid, this.expression.type.displayString)))), this._hasCaseMismatch(false) ? (this.caseMisMatchError = E.switch.mustChangeType, e3.addError(this, E.switch.mustChangeType)) : delete this.caseMisMatchError; + } + get version() { + return this.model.version; + } + set version(e3) { + this.model.version = e3; + } + } + R.info = O.default.createActionInfo({ actionClass: R, canBeInTask: true, helpTopic: y.helpTopics.actions.switch, modelClass: i2(32601), name: E.actions.switch, scriptingName: "ArchActionSwitch" }), t2.A = R; + }, 23827: function(e2, t2, i2) { + !(function(e3) { + "use strict"; + e3.defineLocale("ja", { eras: [{ since: "2019-05-01", offset: 1, name: "\u4EE4\u548C", narrow: "\u32FF", abbr: "R" }, { since: "1989-01-08", until: "2019-04-30", offset: 1, name: "\u5E73\u6210", narrow: "\u337B", abbr: "H" }, { since: "1926-12-25", until: "1989-01-07", offset: 1, name: "\u662D\u548C", narrow: "\u337C", abbr: "S" }, { since: "1912-07-30", until: "1926-12-24", offset: 1, name: "\u5927\u6B63", narrow: "\u337D", abbr: "T" }, { since: "1873-01-01", until: "1912-07-29", offset: 6, name: "\u660E\u6CBB", narrow: "\u337E", abbr: "M" }, { since: "0001-01-01", until: "1873-12-31", offset: 1, name: "\u897F\u66A6", narrow: "AD", abbr: "AD" }, { since: "0000-12-31", until: -1 / 0, offset: 1, name: "\u7D00\u5143\u524D", narrow: "BC", abbr: "BC" }], eraYearOrdinalRegex: /(元|\d+)年/, eraYearOrdinalParse: function(e4, t3) { + return "\u5143" === t3[1] ? 1 : parseInt(t3[1] || e4, 10); + }, months: "1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"), monthsShort: "1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"), weekdays: "\u65E5\u66DC\u65E5_\u6708\u66DC\u65E5_\u706B\u66DC\u65E5_\u6C34\u66DC\u65E5_\u6728\u66DC\u65E5_\u91D1\u66DC\u65E5_\u571F\u66DC\u65E5".split("_"), weekdaysShort: "\u65E5_\u6708_\u706B_\u6C34_\u6728_\u91D1_\u571F".split("_"), weekdaysMin: "\u65E5_\u6708_\u706B_\u6C34_\u6728_\u91D1_\u571F".split("_"), longDateFormat: { LT: "HH:mm", LTS: "HH:mm:ss", L: "YYYY/MM/DD", LL: "YYYY\u5E74M\u6708D\u65E5", LLL: "YYYY\u5E74M\u6708D\u65E5 HH:mm", LLLL: "YYYY\u5E74M\u6708D\u65E5 dddd HH:mm", l: "YYYY/MM/DD", ll: "YYYY\u5E74M\u6708D\u65E5", lll: "YYYY\u5E74M\u6708D\u65E5 HH:mm", llll: "YYYY\u5E74M\u6708D\u65E5(ddd) HH:mm" }, meridiemParse: /午前|午後/i, isPM: function(e4) { + return "\u5348\u5F8C" === e4; + }, meridiem: function(e4, t3, i3) { + return e4 < 12 ? "\u5348\u524D" : "\u5348\u5F8C"; + }, calendar: { sameDay: "[\u4ECA\u65E5] LT", nextDay: "[\u660E\u65E5] LT", nextWeek: function(e4) { + return e4.week() !== this.week() ? "[\u6765\u9031]dddd LT" : "dddd LT"; + }, lastDay: "[\u6628\u65E5] LT", lastWeek: function(e4) { + return this.week() !== e4.week() ? "[\u5148\u9031]dddd LT" : "dddd LT"; + }, sameElse: "L" }, dayOfMonthOrdinalParse: /\d{1,2}日/, ordinal: function(e4, t3) { + switch (t3) { + case "y": + return 1 === e4 ? "\u5143\u5E74" : e4 + "\u5E74"; + case "d": + case "D": + case "DDD": + return e4 + "\u65E5"; + default: + return e4; + } + }, relativeTime: { future: "%s\u5F8C", past: "%s\u524D", s: "\u6570\u79D2", ss: "%d\u79D2", m: "1\u5206", mm: "%d\u5206", h: "1\u6642\u9593", hh: "%d\u6642\u9593", d: "1\u65E5", dd: "%d\u65E5", M: "1\u30F6\u6708", MM: "%d\u30F6\u6708", y: "1\u5E74", yy: "%d\u5E74" } }); + })(i2(95093)); + }, 23862: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(37873)); + class r2 extends n2.default { + constructor(e3) { + super(e3), this._coreWorkitemFlowSettingsViewModel = e3; + } + get displayTypeName() { + return "ArchSettingsWorkitemFlow"; + } + get isArchSettingsWorkitemFlow() { + return true; + } + get worktypeName() { + var e3; + return null === (e3 = this._coreWorkitemFlowSettingsViewModel.worktype) || void 0 === e3 ? void 0 : e3.name; + } + get worktypeId() { + var e3; + return null === (e3 = this._coreWorkitemFlowSettingsViewModel.worktype) || void 0 === e3 ? void 0 : e3.id; + } + } + t2.default = r2; + }, 23906: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(81574)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "stringKeyValuePair"; + } + get key() { + } + get value() { + } + get displayTypeName() { + return "ArchValueStringKeyValuePair"; + } + get isArchValueStringKeyValuePair() { + return true; + } + } + t2.default = r2; + }, 23952: function(e2, t2, i2) { + "use strict"; + var n2, r2 = this && this.__extends || (n2 = function(e3, t3) { + return n2 = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(e4, t4) { + e4.__proto__ = t4; + } || function(e4, t4) { + for (var i3 in t4) Object.prototype.hasOwnProperty.call(t4, i3) && (e4[i3] = t4[i3]); + }, n2(e3, t3); + }, function(e3, t3) { + if ("function" != typeof t3 && null !== t3) throw new TypeError("Class extends value " + String(t3) + " is not a constructor or null"); + function i3() { + this.constructor = e3; + } + n2(e3, t3), e3.prototype = null === t3 ? Object.create(t3) : (i3.prototype = t3.prototype, new i3()); + }); + Object.defineProperty(t2, "__esModule", { value: true }), t2.AsapScheduler = void 0; + var o = (function(e3) { + function t3() { + return null !== e3 && e3.apply(this, arguments) || this; + } + return r2(t3, e3), t3.prototype.flush = function(e4) { + this._active = true; + var t4 = this._scheduled; + this._scheduled = void 0; + var i3, n3 = this.actions; + e4 = e4 || n3.shift(); + do { + if (i3 = e4.execute(e4.state, e4.delay)) break; + } while ((e4 = n3[0]) && e4.id === t4 && n3.shift()); + if (this._active = false, i3) { + for (; (e4 = n3[0]) && e4.id === t4 && n3.shift(); ) e4.unsubscribe(); + throw i3; + } + }, t3; + })(i2(19533).AsyncScheduler); + t2.AsapScheduler = o; + }, 24005: (e2, t2, i2) => { + const n2 = i2(45214), r2 = i2(43773); + function o() { + this.uiMetaData = void 0, o.baseConstructor.apply(this, arguments); + } + n2.extend(o, "BaseFlowItem"), Object.defineProperties(o.prototype, { getConfiguration: { value: function(e3, t3) { + return t3?.isForComparison ? r2.removePropertiesForComparison(this) : this; + } } }), e2.exports = o; + }, 24027: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(84655)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "wheelPickerItem"; + } + get displayTypeName() { + return "ArchVariableWheelPickerItem"; + } + get isArchVariableWheelPickerItem() { + return true; + } + } + t2.default = r2; + }, 24032: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.getTopic = a; + const n2 = i2(31635).__importDefault(i2(68208)), r2 = {}, o = a("architect"); + function a(e3) { + if (!e3) return o; + let t3 = r2[e3]; + if (t3) return t3; + const i3 = "architect." + e3; + return t3 = r2[i3], t3 || (t3 = new n2.default(i3), r2[e3] = t3, t3); + } + }, 24156: (e2, t2, i2) => { + "use strict"; + var n2, r2, o; + Object.defineProperty(t2, "__esModule", { value: true }); + const a = i2(31635), s = i2(30801), l = a.__importDefault(i2(21345)); + class u extends l.default { + constructor(e3) { + super(e3), n2.set(this, void 0), r2.set(this, void 0), o.set(this, void 0), a.__classPrivateFieldSet(this, n2, this.coreFactory.createArchWrapper(e3.dataToDecrypt), "f"), a.__classPrivateFieldSet(this, r2, this.coreFactory.createArchWrapper(e3.decryptedDataOutput), "f"), e3.errorBindings && a.__classPrivateFieldSet(this, o, this.coreFactory.createArchWrapper(e3.errorBindings), "f"); + } + get _actionTypeId() { + return s.decryptDataActionType; + } + get displayTypeName() { + return this._scriptingName; + } + get isArchActionDecryptData() { + return true; + } + get dataToDecrypt() { + return a.__classPrivateFieldGet(this, n2, "f"); + } + get decryptedData() { + return a.__classPrivateFieldGet(this, r2, "f"); + } + get decryptDataOutputsFailure() { + return a.__classPrivateFieldGet(this, o, "f"); + } + } + n2 = /* @__PURE__ */ new WeakMap(), r2 = /* @__PURE__ */ new WeakMap(), o = /* @__PURE__ */ new WeakMap(), t2.default = u; + }, 24171: (e2, t2, i2) => { + function n2() { + this.name = void 0, this.id = void 0, n2.baseConstructor.apply(this, arguments); + } + i2(45214).extend(n2, "LexBot"), Object.defineProperties(n2.prototype, { label: { get: function() { + return this.name; + }, set: function(e3) { + this.name = e3; + } } }), e2.exports = n2; + }, 24175: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(54982)); + class r2 extends n2.default { + constructor(e3) { + super(e3), this._coreLoopingTaskViewModel = e3; + } + get displayTypeName() { + return "ArchTaskLoop"; + } + get isArchTaskLoop() { + return true; + } + get logStr() { + if (!this._coreLoopingTaskViewModel) return this.logStrTypeOnly; + const e3 = []; + return this._appendLogStrTrackingIdNameType(e3, this.trackingId, this.name, this.displayTypeName), this._createLogStrFromParts(e3); + } + } + t2.default = r2; + }, 24212: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importDefault(i2(92140)), o = i2(96618), a = n2.__importDefault(i2(71071)), s = n2.__importDefault(i2(95955)), l = n2.__importDefault(i2(39521)), u = n2.__importDefault(i2(37039)), d = n2.__importDefault(i2(81948)), c = i2(59684); + class p extends d.default { + constructor(e3) { + super(e3), this.callPrompts = new s.default(this), this.errorHandling = new l.default(this), this.inQueueSettings = new u.default(this), this._addToAutoManageSettings(this.callPrompts), this._addToAutoManageSettings(this.errorHandling), this._addToAutoManageSettings(this.inQueueSettings); + } + get className() { + return "InQueueCallViewModel"; + } + get isInQueueCallFlow() { + return true; + } + getFlowConfigurationClass() { + return c; + } + _loadConfiguration(e3) { + if (this._setInitialTrackingNumberFromConfiguration(e3.nextTrackingNumber), r2.default.destroyContents(this.tasks), super._loadConfiguration(e3), e3.flowSequenceItemList && 1 === e3.flowSequenceItemList.length && e3.flowSequenceItemList[0].__type === a.default.info.typeId) { + const t3 = new a.default(this, e3.flowSequenceItemList[0]); + t3.initialize(), this.tasks.push(t3); + } + } + get type() { + return o.flowTypes.flowTypeInQueueCall; + } + updateDependencies() { + this.inQueueSettings.holdMusic.registerDependencies(), super.updateDependencies(); + } + get wrappedYamlName() { + return "inqueueCall"; + } + } + t2.default = p; + }, 24215: (e2, t2, i2) => { + const { extractSecureDataActionType: n2 } = i2(30801), r2 = i2(73954); + function o() { + Object.defineProperties(this, { _variables: { writable: true } }), this.acknowledgementUserId = void 0, this.acknowledgementUserDisplayName = void 0, this.acknowledgementDate = void 0, this.acknowledgementUserIsOAuthClient = void 0, r2.baseConstructor.apply(this, arguments); + } + r2.extend(o, n2, true), e2.exports = o; + }, 24235: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.AudioViewModelOptions = void 0; + const n2 = i2(31635), r2 = n2.__importStar(i2(63824)), o = n2.__importStar(i2(66381)), a = n2.__importDefault(i2(92140)), s = i2(63029), l = i2(80295), u = i2(80295), d = i2(17604), c = n2.__importDefault(i2(41510)), p = i2(55909), _ = i2(33951), h = i2(47957); + class m extends s.BaseOptionsWithOptional { + static create(e3) { + return new this().invokeOptionsCallback(e3); + } + constructor() { + super(), this._allowSecure = true, this._allowBlankAudio = true, this._emitNonConfigItemForEmptyAndNoDefault = false, this._maxDurInclusive = false, this._isInternal = false, this._descriptionInfo = {}, (0, u.makeUnenumerable)(this, "_allowSecure"), (0, u.makeUnenumerable)(this, "_allowBlankAudio"), (0, u.makeUnenumerable)(this, "_emitNonConfigItemForEmptyAndNoDefault"), (0, u.makeUnenumerable)(this, "_maxDuration"), (0, u.makeUnenumerable)(this, "_maxDurInclusive"), (0, u.makeUnenumerable)(this, "_isInternal"), (0, u.makeUnenumerable)(this, "_label"), (0, u.makeUnenumerable)(this, "_noValueRuntimeEvaluationStr"), (0, u.makeUnenumerable)(this, "_noValueSelectionLabel"), (0, u.makeUnenumerable)(this, "_descriptionInfo"), this._isOptional = true; + } + get className() { + return "AudioViewModelOptions"; + } + get isAudioViewModelOptions() { + return true; + } + _setFromOptions(e3) { + super._setFromOptions(e3), this._setOptionIfSet(this.setAllowSecure, e3.allowSecure), this._setOptionIfSet(this.setIsInternal, e3.isInternal), this._setOptionIfSet(this.setAllowBlankAudio, e3.allowBlankAudio), this._setOptionIfSet(this.setEmitNonConfigItemForEmptyAndNoDefault, e3.emitNonConfigItemForEmptyAndNoDefault), a.default.isActualNumber(e3.maxDuration) && this.setMaxDuration(e3.maxDuration, e3.maxDurInclusive), this._setOptionIfSet(this.setLabel, e3.label, "_label"), this._setOptionIfSet(this.setModeNoValueRuntimeEvaluationStr, e3.noValueRuntimeEvaluationStr, "_noValueRuntimeEvaluationStr"), this._setOptionIfSet(this.setModeNoValueSelectionLabel, e3.noValueSelectionLabel, "_noValueSelectionLabel"); + } + hasDescriptionInfo(e3) { + return !!e3 && (!!a.default.isActualNumber(this.maxDuration) || e3.parentFlow.getUnsupportedFlowTypes(e3.supportedFlowTypes).length > 0); + } + getFullDescription(e3) { + if (this.hasDescriptionInfo(e3)) { + const t3 = e3.parentFlow.getUnsupportedFlowTypes(e3.supportedFlowTypes); + return t3.length && (this._descriptionInfo.info = (0, d.sprintf)(h.commonModule.notAvailableInFlowTypes, o.getFlowTypesDisplayString(t3))), this._descriptionInfo; + } + } + get allowSecure() { + return this._allowSecure; + } + set allowSecure(e3) { + this._allowSecure = _.ParameterValidator.expectBool(e3, () => p.ParameterInfo.createPropertySet(this.className, "allowSecure", "value")); + } + get allowBlankAudio() { + return this._allowBlankAudio; + } + set allowBlankAudio(e3) { + this._allowBlankAudio = _.ParameterValidator.expectBool(e3, () => p.ParameterInfo.createPropertySet(this.className, "allowBlankAudio", "value")); + } + get emitNonConfigItemForEmptyAndNoDefault() { + return this._emitNonConfigItemForEmptyAndNoDefault; + } + set emitNonConfigItemForEmptyAndNoDefault(e3) { + this._emitNonConfigItemForEmptyAndNoDefault = _.ParameterValidator.expectBool(e3, () => p.ParameterInfo.createPropertySet(this.className, "emitNonConfigItemForEmptyAndNoDefault", "value")); + } + get noValueRuntimeEvaluationStr() { + return this._noValueRuntimeEvaluationStr; + } + set noValueRuntimeEvaluationStr(e3) { + this._noValueRuntimeEvaluationStr = _.ParameterValidator.expectString(e3, () => p.ParameterInfo.createPropertySet(this.className, "noValueRuntimeEvaluationStr", "value")); + } + get noValueSelectionLabel() { + return this._noValueSelectionLabel; + } + set noValueSelectionLabel(e3) { + this._noValueSelectionLabel = _.ParameterValidator.expectString(e3, () => p.ParameterInfo.createPropertySet(this.className, "noValueSelectionLabel", "value")); + } + get isInternal() { + return this._isInternal; + } + set isInternal(e3) { + this._isInternal = _.ParameterValidator.expectBool(e3, () => p.ParameterInfo.createPropertySet(this.className, "isInternal", "value")); + } + get maxDurInclusive() { + return this._maxDurInclusive; + } + set maxDurInclusive(e3) { + this._maxDurInclusive = e3; + } + get maxDuration() { + return this._maxDuration; + } + set maxDuration(e3) { + this._maxDuration = _.ParameterValidator.expectNumber(e3, () => p.ParameterInfo.createPropertySet(this.className, "isInternal", "value")), this._descriptionInfo.additionalInfo || (this._descriptionInfo.additionalInfo = []), this._descriptionInfo.additionalInfo.push((0, d.sprintf)(c.default.itemColonValue, h.expressionsHelp.parameters.maxValue, r2.getSearchStringFromMilliseconds(this.maxDuration))); + } + get label() { + return this._label; + } + set label(e3) { + this._label = _.ParameterValidator.expectString(e3, () => p.ParameterInfo.createPropertySet(this.className, "label", "value")), this._descriptionInfo.name = this.label; + } + get supportsBargeInExpression() { + return a.default.isUndefined(this.disallowedFunctionMap) || this.disallowedFunctionMap && !this.disallowedFunctionMap.audioplaybackoptions; + } + setAllowSecure(e3) { + return this.allowSecure = e3, this; + } + setIsInternal(e3) { + return this.isInternal = e3, this; + } + setLabel(e3) { + return this.label = e3, this; + } + setModeNoValueRuntimeEvaluationStr(e3) { + return this.noValueRuntimeEvaluationStr = e3, this; + } + setModeNoValueSelectionLabel(e3) { + return this.noValueSelectionLabel = e3, this; + } + setMaxDuration(e3, t3) { + return this.maxDuration = e3, this.maxDurInclusive = t3, this; + } + setAllowBlankAudio(e3) { + return this.allowBlankAudio = e3, this; + } + setEmitNonConfigItemForEmptyAndNoDefault(e3) { + return this.emitNonConfigItemForEmptyAndNoDefault = e3, this; + } + } + t2.AudioViewModelOptions = m, n2.__decorate([(0, l.enumerable)(true), n2.__metadata("design:type", Boolean), n2.__metadata("design:paramtypes", [Object])], m.prototype, "allowSecure", null), n2.__decorate([(0, l.enumerable)(true), n2.__metadata("design:type", Boolean), n2.__metadata("design:paramtypes", [Object])], m.prototype, "allowBlankAudio", null), n2.__decorate([(0, l.enumerable)(true), n2.__metadata("design:type", Boolean), n2.__metadata("design:paramtypes", [Object])], m.prototype, "emitNonConfigItemForEmptyAndNoDefault", null), n2.__decorate([(0, l.enumerable)(true), n2.__metadata("design:type", String), n2.__metadata("design:paramtypes", [Object])], m.prototype, "noValueRuntimeEvaluationStr", null), n2.__decorate([(0, l.enumerable)(true), n2.__metadata("design:type", String), n2.__metadata("design:paramtypes", [Object])], m.prototype, "noValueSelectionLabel", null), n2.__decorate([(0, l.enumerable)(true), n2.__metadata("design:type", Boolean), n2.__metadata("design:paramtypes", [Object])], m.prototype, "isInternal", null), n2.__decorate([(0, l.enumerable)(true), n2.__metadata("design:type", Boolean), n2.__metadata("design:paramtypes", [Object])], m.prototype, "maxDurInclusive", null), n2.__decorate([(0, l.enumerable)(true), n2.__metadata("design:type", Number), n2.__metadata("design:paramtypes", [Object])], m.prototype, "maxDuration", null), n2.__decorate([(0, l.enumerable)(true), n2.__metadata("design:type", String), n2.__metadata("design:paramtypes", [Object])], m.prototype, "label", null), n2.__decorate([(0, l.enumerable)(true), n2.__metadata("design:type", Boolean), n2.__metadata("design:paramtypes", [])], m.prototype, "supportsBargeInExpression", null); + }, 24237: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.all = t2.address = t2.phone = t2.name = t2.email = void 0; + const n2 = i2(47957); + t2.email = { displayString: n2.actions.email, id: "email" }, t2.name = { displayString: n2.generic.name, id: "name" }, t2.phone = { displayString: n2.askForPayment.askForPaymentContactInformationPhone, id: "phone" }, t2.address = { displayString: n2.cardsAndCars.timePickerType.addressPlaceHolder, id: "address" }, t2.all = [t2.email, t2.name, t2.phone, t2.address]; + }, 24247: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.ResponseList = void 0; + const n2 = i2(31635), r2 = i2(80295), o = i2(15116), a = i2(4251); + class s extends o.PagedList { + constructor(e3) { + super(e3.results); + } + get entities() { + return this._entities; + } + set entities(e3) { + this._entities = this.reviveArray(e3, a.Response); + } + } + t2.ResponseList = s, n2.__decorate([(0, r2.enumerable)(true), n2.__metadata("design:type", Array), n2.__metadata("design:paramtypes", [Array])], s.prototype, "entities", null); + }, 24338: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.ResponseLibraryProperty = void 0; + const n2 = i2(31635), r2 = n2.__importStar(i2(36781)), o = n2.__importStar(i2(58380)), a = n2.__importStar(i2(1115)), s = i2(55867), l = i2(71528), u = i2(9456), d = i2(47957); + class c extends s.BaseActionProperty { + constructor(e3, t3, i3, n3, r3) { + super(e3, t3), this._wrongLibraryWarning = i3, this._invalidLibraryWarning = n3, this._selectLibraryError = r3, this.id = (0, u.uuid)(), this.configListManager = l.responseLibraryManager, this.featureConfigUnavailable = false; + } + get parent() { + return this.action; + } + getAdditionalSearchParams() { + } + get isConfigListProperty() { + return true; + } + searchResultsFilter(e3) { + return true; + } + get idValue() { + var e3; + return null === (e3 = this.action.responseLibrary) || void 0 === e3 ? void 0 : e3.id; + } + get nameValue() { + var e3; + return null === (e3 = this.action.responseLibrary) || void 0 === e3 ? void 0 : e3.name; + } + getConfiguration(e3, t3, i3) { + if (!this.featureConfigUnavailable && (null == t3 ? void 0 : t3.isForFlowYaml)) { + if (null == i3 ? void 0 : i3.skipProperty) return; + return this.nameValue ? { name: this.nameValue } : null; + } + } + setValue(e3) { + this.configListManager.tryRemoveItemFromFlowMetadata(this.action, this.idValue), (this.idValue || e3) && (this.nameValue === (null == e3 ? void 0 : e3.name) && this.idValue === (null == e3 ? void 0 : e3.id) || (this.action.responseLibrary = e3 ? { name: e3.name, id: e3.id } : null, o.fireEvent(this, r2.valueChanged), a.validateAction(this.action, void 0, true))); + } + get selectedResponseLibrary() { + if (this.idValue) return this.configListManager.getItem(this.idValue); + } + get amObjectEventEmitter() { + return true; + } + get isResponseLibraryProperty() { + return true; + } + search(e3) { + super.search(e3), e3.checkText(this, this.nameValue, d.getResponse.library); + } + validate(e3) { + if (super.validate(e3), this.currentUiWarningMessages = void 0, this.currentUiErrorMessage = void 0, this.currentUiInfoMessage = void 0, this.idValue) { + const t3 = l.responseLibraryManager.getItem(this.idValue); + if (this.action.selectedResponse && !this.action.responseManager.isResponseInSelectedResponseLibrary(this.action.selectedResponse, t3)) if (this.action.selectedResponse.libraries.length > 0) { + this.currentUiWarningMessages = [this._wrongLibraryWarning], e3.addWarning(this, this.currentUiWarningMessages[0]); + let t4 = `${1 === this.action.selectedResponse.libraries.length ? d.getResponse.suggestedLibraryOne : d.getResponse.suggestedLibraryMoreThanOne}`; + t4 += `: ${this.action.selectedResponse.libraries.map((e4) => e4.displayName).join(", ")}`, this.currentUiWarningMessages.push(t4); + } else this.currentUiWarningMessages = [this._invalidLibraryWarning], e3.addWarning(this, this.currentUiWarningMessages[0]); + } else this.currentUiErrorMessage = this._selectLibraryError, e3.addError(this, this.currentUiErrorMessage, false, true); + } + static createCreateDetails(e3, t3, i3) { + return { create: function(n3, r3) { + return new c(n3, r3, e3, t3, i3); + }, getCreateClass: function() { + return c; + }, modelProperties: [], manager: l.responseLibraryManager }; + } + } + t2.ResponseLibraryProperty = c; + }, 24364: (e2, t2, i2) => { + const n2 = i2(92140), r2 = i2(45741), o = i2(36019).default; + function a() { + } + function s(e3, t3) { + return e3.context ? (t3 += "\n", n2.each(e3.context, function(e4, i3) { + t3 += i3 + ": " + e4 + ", "; + }), t3.substring(0, t3.length - 2)) : t3; + } + r2(a, { debug: function(e3) { + let t3 = "TRACE:[" + e3.name + "] "; + t3 += o.formatStringForTracing.apply(this, n2.rest(arguments)), console.debug(s(e3, t3)); + }, error: function(e3, t3, i3) { + let r3 = "TRACE:[" + e3.name + "] "; + n2.isString(i3) && (r3 += o.formatStringForTracing.apply(null, n2.rest(arguments, 2))), n2.isString(t3) ? r3 = `${t3} -- ${r3}` : t3 || i3 || (r3 += "No error message"), console.error(s(e3, r3)); + }, info: function(e3) { + let t3 = "TRACE:[" + e3.name + "] "; + t3 += o.formatStringForTracing.apply(this, n2.rest(arguments)), console.info(s(e3, t3)); + }, infoWithObject: function(e3, t3) { + let i3 = "TRACE:[" + e3.name + "] "; + i3 += o.formatStringForTracing.apply(this, n2.rest(arguments, 2)), console.info(s(e3, i3)), console.info(t3); + }, warning: function(e3) { + let t3 = "TRACE:[" + e3.name + "] "; + t3 += o.formatStringForTracing.apply(this, n2.rest(arguments)), console.warn(s(e3, t3)); + } }), e2.exports = new a(); + }, 24383: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.terminatesFlow = t2.terminatesTask = t2.terminatesNextLoop = t2.terminatesExitLoop = t2.terminatesNone = t2.terminatesState = t2.TerminationInfo = void 0; + const n2 = i2(47957); + class r2 { + constructor(e3) { + this.isTerminationInfo = true, this.flow = e3.terminatesFlow, this.task = e3.terminatesTask, this.state = e3.terminatesState, this.loop = e3.terminatesLoop, this.restartsLoop = e3.restartsLoop; + } + get doesTerminate() { + return this.flow || this.task || this.state || this.loop || this.restartsLoop; + } + get isNonLoopTerminating() { + return this.flow || this.task || this.state; + } + get terminatesLoop() { + return this.loop || this.restartsLoop; + } + get label() { + return this.flow ? n2.task.endFlow : this.state ? n2.state.endState : this.task ? n2.task.endTask : this.loop ? n2.task.endLoop : this.restartsLoop ? n2.task.nextLoop : void 0; + } + } + t2.TerminationInfo = r2, t2.terminatesState = new r2({ terminatesState: true }), t2.terminatesNone = new r2({}), t2.terminatesExitLoop = new r2({ terminatesLoop: true }), t2.terminatesNextLoop = new r2({ restartsLoop: true }), t2.terminatesTask = new r2({ terminatesTask: true }), t2.terminatesFlow = new r2({ terminatesFlow: true }); + }, 24409: (e2, t2, i2) => { + const n2 = i2(36019).default, r2 = i2(87200); + e2.exports = { featureToggles: function(e3) { + const t3 = n2.build(r2.featureToggles); + return t3.queryParams(e3), t3.call(); + } }; + }, 24421: (e2, t2, i2) => { + const n2 = i2(54976), r2 = i2(7401), o = i2(67641), { transferPureMatchActionType: a } = i2(30801); + function s() { + Object.defineProperties(this, { _alertOnTransfer: { writable: true }, _appendSkills: { writable: true }, _languageSkill: { writable: true }, _preferredAgents: { writable: true }, _directAgent: { writable: true }, _priority: { writable: true }, _queues: { writable: true }, _skills: { writable: true }, _skillExpressionFilters: { writable: true } }), this.inQueueFlowId = void 0, this.inQueueFlowName = void 0, this.useDefaultHandling = void 0, s.baseConstructor.apply(this, arguments); + } + n2.extend(s, a, true), Object.defineProperties(s.prototype, { pasteReIdOrRename: { value: function(e3) { + s._super.pasteReIdOrRename.apply(this, arguments), this.alertOnTransfer?.pasteReIdOrRename(e3), this.appendSkills.pasteReIdOrRename(e3), this.directAgent.pasteReIdOrRename(e3), this.languageSkill.pasteReIdOrRename(e3), this.preferredAgents.pasteReIdOrRename(e3), this.priority.pasteReIdOrRename(e3), this.skillExpressionFilters?.pasteReIdOrRename(e3); + for (let t3 = 0; t3 < this.queues.length; t3++) this.queues[t3].pasteReIdOrRename(e3); + for (let t3 = 0; t3 < this.skills.length; t3++) this.skills[t3].pasteReIdOrRename(e3); + } }, pasteResolveOldToNewValues: { value: function(e3) { + s._super.pasteResolveOldToNewValues.apply(this, arguments), this.alertOnTransfer?.pasteResolveOldToNewValues(e3), this.appendSkills.pasteResolveOldToNewValues(e3), this.directAgent.pasteResolveOldToNewValues(e3), this.languageSkill.pasteResolveOldToNewValues(e3), this.preferredAgents.pasteResolveOldToNewValues(e3), this.priority.pasteResolveOldToNewValues(e3), this.skillExpressionFilters?.pasteResolveOldToNewValues(e3); + for (let t3 = 0; t3 < this.queues.length; t3++) this.queues[t3].pasteResolveOldToNewValues(e3); + for (let t3 = 0; t3 < this.skills.length; t3++) this.skills[t3].pasteResolveOldToNewValues(e3); + } }, alertOnTransfer: { enumerable: true, get: function() { + return this._alertOnTransfer; + }, set: function(e3) { + this._alertOnTransfer = this.reviveItem(e3, r2); + } }, appendSkills: { enumerable: true, get: function() { + return this._appendSkills; + }, set: function(e3) { + this._appendSkills = this.reviveItem(e3, r2); + } }, directAgent: { enumerable: true, get: function() { + return this._directAgent; + }, set: function(e3) { + this._directAgent = this.reviveItem(e3, r2); + } }, languageSkill: { enumerable: true, get: function() { + return this._languageSkill; + }, set: function(e3) { + this._languageSkill = this.reviveItem(e3, r2); + } }, preferredAgents: { enumerable: true, get: function() { + return this._preferredAgents; + }, set: function(e3) { + this._preferredAgents = this.reviveItem(e3, r2); + } }, priority: { enumerable: true, get: function() { + return this._priority; + }, set: function(e3) { + this._priority = this.reviveItem(e3, r2); + } }, queues: { enumerable: true, get: function() { + return this._queues; + }, set: function(e3) { + this._queues = this.reviveArray(e3, r2); + } }, skills: { enumerable: true, get: function() { + return this._skills; + }, set: function(e3) { + this._skills = this.reviveArray(e3, o); + } }, skillExpressionFilters: { enumerable: true, get: function() { + return this._skillExpressionFilters; + }, set: function(e3) { + this._skillExpressionFilters = this.reviveItem(e3, r2); + } } }), e2.exports = s; + }, 24434: (e2) => { + "use strict"; + e2.exports = require("events"); + }, 24528: (e2, t2, i2) => { + const n2 = i2(84584); + function r2() { + r2.baseConstructor.apply(this, arguments); + } + i2(22124).extend(r2, "NuanceMixBotList"), Object.defineProperties(r2.prototype, { entities: { enumerable: true, get: function() { + return this._entities; + }, set: function(e3) { + this._entities = this.reviveArray(e3, n2); + } } }), e2.exports = r2; + }, 24601: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.createNluDomain = function(e3, t3) { + return r2.default.build(o.createDomain).content({ name: e3, language: t3 }).call(); + }, t2.getNluDomain = a, t2.getNluDomains = s, t2.getNluDomainVersion = function(e3, t3) { + return r2.default.build(o.getDomainVersion).templateParams({ domainId: e3, domainVersionId: t3 }).call(); + }; + const n2 = i2(31635), r2 = n2.__importDefault(i2(36019)), o = n2.__importStar(i2(74168)); + function a(e3) { + return r2.default.build(o.getDomain).templateParams({ domainId: e3 }).call(); + } + function s(e3) { + return r2.default.build(o.getDomains).queryParams(e3.getSearchQueryParams()).call(); + } + a.api = o.getDomain, s.api = o.getDomains; + }, 24629: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(81574)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "chatGuest"; + } + get id() { + } + get displayName() { + } + get avatarImageUrl() { + } + get isAuthenticated() { + } + get customFields() { + } + get authenticatedCustomFields() { + } + get displayTypeName() { + return "ArchValueChatGuest"; + } + get isArchValueChatGuest() { + return true; + } + } + t2.default = r2; + }, 24669: (e2, t2, i2) => { + "use strict"; + const n2 = i2(31635), r2 = n2.__importDefault(i2(92140)), o = i2(12179), a = i2(12457), s = i2(81516), l = i2(96618), u = n2.__importDefault(i2(97891)), d = i2(24383), c = i2(87870), p = n2.__importDefault(i2(5730)), _ = i2(80428), h = i2(47957); + class m extends p.default { + constructor(e3, t3) { + super(e3.parentFlow, e3), this._loadModel(t3), this.reasonCode.outOfService = true; + } + getDetails() { + return !this.reasonCode || this.reasonCode.isBlank || this.reasonCode.isNotSet ? null : new a.ActionDetails([h.returnToAgent.reasonCodeLabel], [this.reasonCode.text]); + } + static get managedProperties() { + return [{ label: h.returnToAgent.reasonCodeLabel, options: s.ExpressionTypeStringOptions.create((e3) => e3.setIsOptional(true).setIninTestingField("endFlowReasonExpression").facets.setAllowableValuePlaceholder(h.returnToAgent.reasonCodeWatermark)), property: "reasonCode", type: _.expressionTypeNames.string }, { createDetails: c.NoteActionProperty.createCreateDetails(h.returnToAgent.helpText, "info", "returnToAgentNote"), property: "helpInfo", yamlOptions: m.createYamlOptions("helpInfo", (e3) => e3.setSkipProperty(true)) }]; + } + _initializeDesignTime() { + super._initializeDesignTime(), this.reasonCode.outOfService = !this.parentFlow.isAutomateFlowType, this.helpInfo.outOfService = !!this.parentFlow.isAutomateFlowType; + } + } + m.info = u.default.createActionInfo({ actionClass: m, canBeInTask: true, canBeTreeNode: true, helpTopic: o.helpTopics.actions.returnToAgent, modelClass: i2(63007), name: h.actions.returnToAgent, scriptingName: "ArchActionReturnToAgent", termination: d.terminatesFlow, availabilityCallback: function(e3, t3, i3) { + return !r2.default.contains(l.flowTypes.flowTypesAllAutomate, e3) || !(!i3 || !t3.isState); + } }), t2.A = m; + }, 24710: (e2, t2, i2) => { + const n2 = i2(45214), r2 = i2(73303); + function o() { + Object.defineProperties(this, { _engine: { writable: true } }), o.baseConstructor.apply(this, arguments); + } + n2.extend(o, "STTData"), Object.defineProperties(o.prototype, { engine: { enumerable: true, get: function() { + return this._engine; + }, set: function(e3) { + this._engine = this.reviveItem(e3, r2); + } } }), e2.exports = o; + }, 24714: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importDefault(i2(11210)), o = i2(30801), a = n2.__importDefault(i2(94225)); + class s extends r2.default { + constructor(e3) { + super(e3), this._knowledgeArticle = this.coreFactory.createArchValueFromExpression(e3.knowledgeArticle); + } + get _actionTypeId() { + return o.showKnowledgeArticleActionActionType; + } + get displayTypeName() { + return "ArchActionShowKnowledgeArticle"; + } + get isArchActionShowKnowledgeArticle() { + return true; + } + get knowledgeArticle() { + return this._knowledgeArticle; + } + setLiteralByKnowledgeBaseDocumentNameAsync(e3, t3) { + return n2.__awaiter(this, void 0, void 0, function* () { + var i3; + return this._checkItemIsValidLiteralString(this._infoParm("knowledgeBaseDocumentName", "setLiteralByKnowledgeBaseDocumentNameAsync"), e3), this._checkItemIsValidFunction(this._infoParm("callbackFunction", "setLiteralByKnowledgeBaseDocumentNameAsync"), t3, true), this._checkItem(this._infoParm("knowledgeBaseDocumentName", "setLiteralByKnowledgeBaseDocumentNameAsync"), !(null === (i3 = this._getCoreViewModel().parentFlow.knowledgeSettings) || void 0 === i3 ? void 0 : i3.knowledgeBaseId), "cannot set the knowledge article on this action to a knowledge base document when there is no knowledge base configured on the flow. Please set the knowledge base on the flow first and then set the knowledge article."), yield this.knowledgeArticle.setLiteralByKnowledgeBaseDocumentNameAsync(e3), a.default.executeCallback(this, "setLiteralByKnowledgeBaseDocumentNameAsync", t3, this); + }); + } + setLiteralByKnowledgeBaseDocumentIdAsync(e3, t3) { + return n2.__awaiter(this, void 0, void 0, function* () { + var i3; + return this._checkItemIsValidLiteralString(this._infoParm("knowledgeBaseDocumentId", "setLiteralByKnowledgeBaseDocumentIdAsync"), e3), this._checkItemIsValidFunction(this._infoParm("callbackFunction", "setLiteralByKnowledgeBaseDocumentIdAsync"), t3, true), this._checkItem(this._infoParm("knowledgeBaseDocumentId", "setLiteralByKnowledgeBaseDocumentIdAsync"), !(null === (i3 = this._getCoreViewModel().parentFlow.knowledgeSettings) || void 0 === i3 ? void 0 : i3.knowledgeBaseId), "cannot set the knowledge article on this action to a knowledge base document when there is no knowledge base configured on the flow. Please set the knowledge base on the flow first and then set the knowledge article."), yield this.knowledgeArticle.setLiteralByKnowledgeBaseDocumentIdAsync(e3), a.default.executeCallback(this, "setLiteralByKnowledgeBaseDocumentIdAsync", t3, this); + }); + } + } + t2.default = s; + }, 24739: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.default = function(e3, t3) { + t3 || (t3 = e3); + const i3 = o.supportsTTSPlaybackForFlowType(e3, r2.flowTypes.flowTypeVoicemail), n3 = (0, a.default)(e3, t3, r2.flowTypes.flowTypeVoicemail); + n3.variables = [], n3.initialPrompts = i3 ? (0, l.toAudioTtsJson)(c(e3).initialGreetingTTS) : s.emptyAudio; + const m = new p(); + m.name = c(t3).mainMenu, m.prompts = i3 ? (0, l.toAudioTtsJson)(c(e3).mainMenuTTS) : s.emptyAudio; + const g = new _(); + g.name = h.actions.disconnect, g.digit = u.Nine; + const f = new d(); + return f.name = h.actions.disconnect, g.action = f, m.menuChoiceList = [g], n3.flowSequenceItemList = [m], n3.initialSequence = m.id, n3; + }; + const n2 = i2(31635), r2 = i2(96618), o = n2.__importStar(i2(98442)), a = n2.__importDefault(i2(64499)), s = i2(12104), l = i2(46503), u = i2(31178), d = i2(44095), c = i2(21733), p = i2(85160), _ = i2(27359), h = i2(47957); + }, 24812: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.isoLanguages = void 0; + const n2 = i2(31635), r2 = n2.__importDefault(i2(92140)), o = i2(74359), a = i2(74359), s = n2.__importDefault(i2(88802)), l = i2(12268), u = n2.__importStar(i2(24032)).getTopic("runtimeLanguageFeatures"); + t2.isoLanguages = new class { + constructor() { + this.viewModels = /* @__PURE__ */ new Map(), a.bootstrapDataLoaded.then((e3) => (0, o.autoResolveBootstrapLanguageDataLoadedPromise)(() => { + const t3 = {}; + return r2.default.each(e3.languages, (e4) => { + if (null == e4 ? void 0 : e4.id) { + const i3 = e4.id.toLowerCase(), n3 = this.viewModels[i3]; + t3[i3] ? u.error("Unexpected duplicate runtime language setting for: {}", i3) : n3 && (n3.addServerData(e4), t3[i3] = n3); + } + }), t3; + })); + for (const e3 in l.languageData) l.languageData.hasOwnProperty(e3) && (this.viewModels[e3.toLocaleLowerCase()] = new s.default(l.languageData[e3])); + } + }().viewModels; + }, 24844: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(20692)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "phoneNumberCollection"; + } + get displayTypeName() { + return "ArchVariablePhoneNumberCollection"; + } + get initialValue() { + return this._initialValue; + } + get isArchVariablePhoneNumberCollection() { + return true; + } + } + t2.default = r2; + }, 24886: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(16434)), r2 = i2(96618); + class o extends n2.default { + constructor(e3) { + super(e3); + } + get _flowType() { + return r2.flowTypes.flowTypeInboundChat; + } + get displayTypeName() { + return "ArchFlowInboundChat"; + } + get isArchFlowInboundChat() { + return true; + } + } + t2.default = o; + }, 24891: (e2, t2, i2) => { + "use strict"; + const n2 = i2(31635), r2 = i2(12179), o = n2.__importDefault(i2(97891)), a = n2.__importDefault(i2(5730)), s = i2(24383), l = i2(47957); + class u extends a.default { + constructor(e3, t3) { + super(e3.parentFlow, e3), this._loadModel(t3); + } + } + u.info = o.default.createActionInfo({ actionClass: u, canBeInTask: true, helpTopic: r2.helpTopics.actions.exitWorkitemFlow, modelClass: i2(96603), name: l.actions.exitWorkitemFlow, termination: s.terminatesFlow, scriptingName: "ArchActionExitWorkitemFlow" }), t2.A = u; + }, 24893: (e2, t2, i2) => { + const n2 = i2(12323), r2 = i2(15008), o = i2(18685), a = i2(42515), s = i2(21556), l = i2(96563); + function u() { + Object.defineProperties(this, { _botFlowSettings: { writable: true }, _nluMetaData: { writable: true }, _userInputSettings: { writable: true }, _knowledgeSettings: { writable: true }, _virtualAgentSettings: { writable: true } }), u.baseConstructor.apply(this, arguments); + } + i2(23695).extend(u, "BotFlowConfiguration"), Object.defineProperties(u.prototype, { botFlowSettings: { enumerable: true, get: function() { + return this._botFlowSettings; + }, set: function(e3) { + this._botFlowSettings = new a(e3); + } }, userInputSettings: { enumerable: true, get: function() { + return this._userInputSettings; + }, set: function(e3) { + this._userInputSettings = new s(e3); + } }, errorHandling: { enumerable: true, get: function() { + return this._errorHandling; + }, set: function(e3) { + this._errorHandling = this.reviveItem(e3, r2); + } }, nluMetaData: { enumerable: true, get: function() { + return this._nluMetaData; + }, set: function(e3) { + this._nluMetaData = new l(e3); + } }, knowledgeSettings: { enumerable: true, get: function() { + return this._knowledgeSettings; + }, set: function(e3) { + this._knowledgeSettings = new o(e3); + } }, virtualAgentSettings: { enumerable: true, get: function() { + return this._virtualAgentSettings; + }, set: function(e3) { + this._virtualAgentSettings = new n2(e3); + } } }), e2.exports = u; + }, 24954: (e2, t2, i2) => { + "use strict"; + const n2 = i2(31635), r2 = i2(12179), o = n2.__importDefault(i2(97891)), a = i2(24383), s = n2.__importDefault(i2(5730)), l = i2(47957); + class u extends s.default { + constructor(e3, t3) { + super(e3.parentFlow, e3), this._loadModel(t3); + } + } + u.info = o.default.createActionInfo({ actionClass: u, canBeInTask: true, helpTopic: r2.helpTopics.actions.exitBotFlow, modelClass: i2(54540), name: l.actions.exitBotFlow, termination: a.terminatesFlow, scriptingName: "ArchActionExitBotFlow" }), t2.A = u; + }, 24962: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importDefault(i2(94225)), o = i2(77841), a = n2.__importDefault(i2(56549)), s = n2.__importDefault(i2(40559)); + class l extends s.default { + constructor(e3) { + super(e3, o.grammarManager); + } + get _globalTypeName() { + return "grammarCollection"; + } + get displayTypeName() { + return "ArchValueGrammarCollection"; + } + get isArchValueGrammarCollection() { + return true; + } + get _searchByValueSearchProperty() { + return "name"; + } + addLiteralByGrammarIdAsync(e3, t3) { + return n2.__awaiter(this, void 0, void 0, function* () { + this._checkItemIsValidLiteralString(this._infoParm("grammarName", "addLiteralByGrammarIdAsync"), e3), this._checkItemIsValidFunction(this._infoParm("callbackFunction", "addLiteralByGrammarIdAsync"), t3, true); + const i3 = yield a.default.findItemByIdAsync(o.grammarManager, e3, "grammar"); + return this._addNetworkModelToCollection(i3), r2.default.executeCallback(this, "addLiteralByGrammarIdAsync", t3, this); + }); + } + addLiteralByGrammarNameAsync(e3, t3) { + return n2.__awaiter(this, void 0, void 0, function* () { + this._checkItemIsValidLiteralString(this._infoParm("grammarName", "addLiteralByGrammarNameAsync"), e3), this._checkItemIsValidFunction(this._infoParm("callbackFunction", "addLiteralByGrammarNameAsync"), t3, true); + const i3 = yield a.default.findItemByValueAsync(o.grammarManager, e3, "grammar"); + return this._addNetworkModelToCollection(i3), r2.default.executeCallback(this, "addLiteralByGrammarNameAsync", t3, this); + }); + } + } + t2.default = l; + }, 25015: (e2, t2, i2) => { + const n2 = i2(92140), r2 = i2(27099), o = i2(68899), { VersionItem: a } = i2(82485), s = i2(57141), l = n2.keys(o); + function u() { + } + Object.defineProperties(u.prototype, { canAppSupport: { value: function(e3) { + if ((e3 = e3 || s.one.zero) === this.currentVersion) return true; + const t3 = new a(); + t3.version = e3; + const i3 = new a(); + return i3.version = this.currentVersion, i3.isGreater(t3); + } }, canServerSupport: { value: function() { + return true; + } }, canSupportFeatures: { value: function(e3) { + return !e3 || !e3.length || !n2.find(e3, function(e4) { + return !!n2.contains(l, e4) && !r2[e4]; + }); + } }, currentVersion: { get: function() { + return s.one.one; + } }, getVersionInfo: { value: function(e3) { + const t3 = new a(); + return e3.checkVersion(t3), t3; + } }, serverVersion: { value: "1.0" } }), e2.exports = new u(); + }, 25016: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(37873)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get displayTypeName() { + return "ArchSpeechToTextEngine"; + } + get isArchSpeechToTextEngine() { + return true; + } + get logStr() { + if (!this._getCoreViewModel()) return this.logStrTypeOnly; + const e3 = []; + return this.id && this._appendLogStrId(e3, this.id), this.name && this._appendLogStrName(e3, this.name), this._appendLogStrType(e3, this.displayTypeName), this._createLogStrFromParts(e3); + } + get name() { + return this._getCoreViewModel().name; + } + get id() { + return this._getCoreViewModel().id; + } + } + t2.default = r2; + }, 25021: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.addGlobalSpeechTracking = function(e3, t3) { + r2[e3.instanceId] || (r2[e3.instanceId] = []), r2[e3.instanceId].indexOf(t3) < 0 && r2[e3.instanceId].push(t3); + }, t2.removeGlobalSpeechTracking = function(e3, t3) { + if (!r2[e3.instanceId]) return; + const i3 = r2[e3.instanceId].indexOf(t3); + i3 >= 0 && r2[e3.instanceId].splice(i3, 1); + }, t2.getGlobalSpeechForFlow = function(e3) { + return r2[e3.instanceId] || []; + }, t2.addGlobalDtmfTracking = function(e3, t3) { + o[e3.instanceId] || (o[e3.instanceId] = []), o[e3.instanceId].indexOf(t3) < 0 && o[e3.instanceId].push(t3); + }, t2.removeGlobalDtmfTracking = function(e3, t3) { + if (!o[e3.instanceId]) return; + const i3 = o[e3.instanceId].indexOf(t3); + i3 >= 0 && o[e3.instanceId].splice(i3, 1); + }, t2.getGlobalDtmfForFlow = function(e3) { + return o[e3.instanceId] || []; + }; + const n2 = i2(36781), r2 = {}, o = {}; + n2.serviceListen(n2.cleanUpFlow, (e3) => { + delete r2[e3.instanceId], delete o[e3.instanceId]; + }); + }, 25054: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.ArchDefinitionMenu = void 0; + const n2 = i2(92448); + class r2 extends n2.ArchBaseDefinitionActionMenu { + constructor(e3) { + super(e3); + } + get displayTypeName() { + return "ArchDefinitionMenu"; + } + get isArchDefinitionMenu() { + return true; + } + } + t2.ArchDefinitionMenu = r2; + }, 25088: (e2, t2, i2) => { + const n2 = i2(92140), r2 = i2(17604).sprintf, o = i2(78446), a = i2(39041).default, s = i2(13126), l = i2(14547), u = i2(58858), d = i2(57391), c = i2(35158), p = i2(93852), _ = i2(62120), h = i2(20557), m = i2(88715), g = i2(4491), f = i2(65302), { ExpressionType: T } = i2(94765), y = i2(98114).default, { flowTypes: S } = i2(96618), { MenuChoiceViewModel: A } = i2(63883), { MenuViewModel: N } = i2(1782), O = i2(62829), { ParameterInfo: I } = i2(55909), { ParameterValidator: v } = i2(33951), C = i2(47957), { isCustomJsonExpressionDataType: b } = i2(66314), E = i2(46521), R = i2(96651).default, w = i2(12889).default; + e2.exports = class extends o { + constructor(e3, t3) { + super(t3), Object.defineProperties(this, { _canPasteByFlowType: { value: {}, writable: true, enumerable: false }, _contentModel: { writable: true, enumerable: true }, _copyCutFlowTypes: { writable: true, enumerable: true }, _dependenciesViewModel: { writable: true, enumerable: false }, _contextualFlowTypes: { value: S.flowTypesAll, writable: true, enumerable: true }, _pasteJsonObjects: { writable: true, enumerable: false }, _pastedTaskOrMenuModel: { writable: true, enumerable: false } }), e3 && this._loadModel(e3); + } + _loadModel(e3) { + this._contentModel = e3, this._dependenciesViewModel = new l(this.contentModel.dependencies, this.clipboardLogging); + } + _addManifestItemAction(e3) { + const t3 = n2.find(this._contentModel.manifest.actions, function(t4) { + return t4.id === e3.id; + }); + n2.isUndefined(t3) && (n2.isArray(this.contentModel.manifest.actionItems) || (this.contentModel.manifest.actionItems = []), this._contentModel.manifest.actionItems.push(new c({ actionTypeId: e3.info.typeId, id: e3.id, trackingId: e3.trackingId }))); + } + _addManifestItemDataType(e3, t3) { + const i3 = n2.find(this._contentModel.manifest.dataTypeItems, function(t4) { + return t4.dataTypeId === e3.dataType; + }); + n2.isUndefined(i3) ? (n2.isArray(this._contentModel.manifest.dataTypeItems) || (this._contentModel.manifest.dataTypeItems = []), this._contentModel.manifest.dataTypeItems.push(new p({ dataTypeId: e3.dataType, applicableFlowTypes: t3 }))) : n2.isUndefined(i3.applicableFlowTypes) || (i3.applicableFlowTypes = n2.isUndefined(t3) ? void 0 : n2.union(i3.applicableFlowTypes, t3)); + } + _addManifestItemMenu(e3) { + const t3 = n2.find(this._contentModel.manifest.menus, function(t4) { + return t4.id === e3.id; + }); + n2.isUndefined(t3) && (n2.isArray(this._contentModel.manifest.menuItems) || (this._contentModel.manifest.menuItems = []), this._contentModel.manifest.menuItems.push(new h({ id: e3.id, trackingId: e3.trackingId }))); + } + _addManifestItemMenuChoice(e3) { + const t3 = n2.find(this._contentModel.manifest.menuChoices, function(t4) { + return t4.id === e3.id; + }); + n2.isUndefined(t3) && (n2.isArray(this._contentModel.manifest.menuChoiceItems) || (this._contentModel.manifest.menuChoiceItems = []), this._contentModel.manifest.menuChoiceItems.push(new _({ actionTypeId: e3.action.info.typeId, id: e3.id, trackingId: e3.trackingId }))); + } + _addManifestItemState(e3) { + const t3 = n2.find(this._contentModel.manifest.states, function(t4) { + return t4.id === e3.id; + }); + n2.isUndefined(t3) && (n2.isArray(this._contentModel.manifest.stateItems) || (this._contentModel.manifest.stateItems = []), this._contentModel.manifest.stateItems.push(new m({ id: e3.id, trackingId: e3.trackingId }))); + } + _addManifestItemTask(e3) { + const t3 = n2.find(this._contentModel.manifest.tasks, function(t4) { + return t4.id === e3.id; + }); + n2.isUndefined(t3) && (n2.isArray(this._contentModel.manifest.taskItems) || (this._contentModel.manifest.taskItems = []), this._contentModel.manifest.taskItems.push(new g({ id: e3.id, trackingId: e3.trackingId }))); + } + _canPasteToFlowType(e3) { + const t3 = e3 ? e3.type : "", i3 = this._canPasteByFlowType[t3]; + if (i3) return i3; + const o2 = e3 ? y.getFlowTypeDisplayName(e3.type) : ""; + let s2, l2; + if (n2.isUndefined(s2) && this._contentModel.manifest.stateItems && this._contentModel.manifest.stateItems.length > 0 && (e3.supportsMultipleStates || (s2 = this.createClipboardResultFailure(r2(C.clipboard.content.notSupportedByFlowType.states, o2)))), n2.isUndefined(s2) && this._contentModel.manifest.taskItems && this._contentModel.manifest.taskItems.length > 0 && t3 === S.flowTypeInQueueCall && (s2 = this.createClipboardResultFailure(r2(C.clipboard.content.notSupportedByFlowType.tasks, o2))), n2.isUndefined(s2) && this._contentModel.manifest.menuItems && this._contentModel.manifest.menuItems.length > 0 && (n2.contains(y.getFlowTypesThatSupportMenus(), t3) || (s2 = this.createClipboardResultFailure(r2(C.clipboard.content.notSupportedByFlowType.menusOrMenuChoices, o2)))), n2.isUndefined(s2) && this._contentModel.manifest.actionItems && this._contentModel.manifest.actionItems.length > 0) { + const e4 = n2.find(this._contentModel.manifest.actionItems, (e5) => !O.getInfo(e5.actionTypeId).isAvailableForFlowType(t3, true)); + if (e4) { + const t4 = O.getInfo(e4.actionTypeId); + return this.createClipboardResultFailure(r2(C.clipboard.content.notSupportedByFlowType.action, t4.name, o2)); + } + } + if (n2.isUndefined(s2) && this._contentModel.contentRawJSON?.length > 0) { + const t4 = e3.definition.type; + let i4; + n2.find(this._contentModel.contentRawJSON[0], (e4) => { + if (e4?.uiMetaData?.builder) { + const n3 = e4.uiMetaData.builder.builderDefId; + if (0 === a.getAvailableBuilderDefinitions(void 0, t4, void 0, [n3]).length) return i4 = a.getBuilderDefById(n3), true; + } + return false; + }) && (l2 = r2(C.clipboard.content.notSupportedByFlowType.builder, i4.name, o2)); + } + if (n2.isUndefined(s2) && this._contentModel.manifest.dataTypeItems && this._contentModel.manifest.dataTypeItems.length > 0) { + const i4 = f.getTypeGroup(e3); + i4 ? n2.find(this._contentModel.manifest.dataTypeItems, function(a2) { + if (n2.isUndefined(a2.applicableFlowTypes) || n2.contains(a2.applicableFlowTypes, t3)) { + if (b(a2.dataTypeId)) return true; + const t4 = i4.getType(a2.dataTypeId); + if (!t4) { + const e4 = T.prototype.getDisplayStrForExpressionDataType(a2.dataTypeId); + return s2 = this.createClipboardResultFailure(n2.isString(e4) && e4.length ? r2(C.clipboard.content.notSupportedByFlowType.dataTypeKnown, e4, o2) : r2(C.clipboard.content.notSupportedByFlowType.dataTypeUnknown, o2)), true; + } + if (!t4.isAvailableForFlowType(e3.type, true)) return s2 = this.createClipboardResultFailure(r2(C.clipboard.content.notSupportedByFlowType.dataTypeKnown, t4.displayString, o2)), true; + } + }.bind(this)) : s2 = this.createClipboardResultFailurePasteGeneric("unable to get expression group for destination flow to resolve data types."); + } + return n2.isUndefined(s2) && (s2 = this.createClipboardResultSuccess(l2)), this._canPasteToFlowType[t3] = s2, s2; + } + _pasteBefore(e3) { + return this.createClipboardResultSuccess(); + } + _pasteAfter(e3) { + return this.createClipboardResultSuccess(); + } + _formatResourceStrForDestFlowType(e3, t3) { + return r2(t3, y.getFlowTypeDisplayName(e3.destFlowViewModel.info.type)); + } + _pasteAddActionViewModelForActionModel(e3, t3, i3, r3) { + !r3 && e3.destViewModel.isTaskLike && e3.pasteActionsToEndOfActionContainer && (r3 = this.getLastActionForStateOrTask(e3.destViewModel)); + const o2 = O.createActionWithModel(t3, i3); + return e3.destActionContainer._insertAction(o2, r3), n2.isFunction(o2.initializeDesignTime) && o2.initializeDesignTime(), o2; + } + _pasteAddMenuChoiceViewModelForMenuChoiceModel(e3, t3, i3) { + this.log("Adding menu choice view model for " + this._getNameAndIdStr(i3) + " to parent " + this._getNameAndIdStr(t3.model) + " that currently has " + t3.choices.length + " choice(s)."); + const r3 = A.loadMenuChoice(t3, i3); + return r3.initialize(), r3._isInlineTask() || r3.isSubMenu || (r3.name = e3.clipboardObject.pasteGetUniqueMenuChoiceName(r3.name, t3, false, false)), t3.choices.push(r3), n2.isUndefined(r3.dtmf) || r3.resetDtmfToUniqueDtmf(), n2.isFunction(r3.initializeDesignTime) && r3.initializeDesignTime(), t3.invokeMenuChoicesChanged(), r3; + } + _pasteAddMenuChoiceViewModelForMenuChoiceViewModel(e3, t3) { + return this.log("Adding menu choice view model for " + this._getNameAndIdStr(t3) + " to parent " + this._getNameAndIdStr(e3.model) + " that currently has " + e3.choices.length + " choice(s)."), t3.initialize(), e3.choices.push(t3), n2.isFunction(t3.initializeDesignTime) && t3.initializeDesignTime(), e3.invokeMenuChoicesChanged(), t3; + } + _pasteAddMenuViewModelForMenuModel(e3, t3) { + this.log("Adding menu view model for " + this._getNameAndIdStr(t3) + " to flow " + this._getNameAndIdStr(e3.destFlowViewModel) + " that currently has " + e3.destFlowViewModel.menus.length + " menu(s)."); + const i3 = new N(e3.destFlowViewModel, t3); + return e3.destFlowViewModel.addNewChild(i3), i3; + } + _pasteAddStateViewModelForStateModel(e3, t3) { + this.log("Adding state view model for " + this._getNameAndIdStr(t3) + " to flow " + this._getNameAndIdStr(e3.destFlowViewModel) + " that currently has " + e3.destFlowViewModel.states.length + " state(s)."); + const i3 = new R(e3.destFlowViewModel, t3); + return e3.destFlowViewModel.addNewChild(i3), i3; + } + _pasteAddTaskViewModelForTaskModel(e3, t3) { + this.log("Adding task view model for " + this._getNameAndIdStr(t3) + " to flow " + this._getNameAndIdStr(e3.destFlowViewModel) + " that currently has " + e3.destFlowViewModel.tasks.length + " task(s)."); + const i3 = new w(e3.destFlowViewModel, t3); + return e3.destFlowViewModel.addNewChild(i3), i3; + } + _performPaste(e3) { + } + _processExpressionType(e3, t3) { + v.expectExpressionType(e3, () => I.createFunctionParameter(this.className, "_processExpressionType", "expressionTypeViewModel")), e3 && e3.isExpressionType && this._addManifestItemDataType(e3, t3); + } + _resetUpconvertViewModels() { + } + get contentModel() { + return this._contentModel; + } + get nodeInformation() { + return O.getInfo(this._contentModel.nodeInformationId); + } + checkCanPaste(e3) { + let t3; + return e3 && (t3 = e3.isFlowViewModel ? e3 : e3.parentFlow), t3 ? t3.info && t3.info.currentUserCanEdit ? this._canPasteToFlowType(t3) : (this.createClipboardResultFailure(C.clipboard.paste.flowNotEditableByCurrentUser), "Clipboard contents cannot be pasted because the current user cannot edit. Normally this is due to the flow not being locked for edit.") : this.createClipboardResultFailure(C.clipboard.paste.flowTypeCouldNotBeDetermined, "Sigh! This should not happen. The paste destination flow type could not be determined."); + } + checkCanPasteClipboardContextWithDetails(e3) { + return e3.destFlowViewModel ? this.createClipboardResultSuccess() : this.createClipboardResultFailure(C.clipboard.paste.noDestFlow, "No destination flow specified for paste operation."); + } + get className() { + return "BaseClipboardContentImplViewModel"; + } + get clipboardContentType() { + return s.unknown; + } + copyCutAddDependencyFlowUiMetaData(e3, t3, i3) { + v.expectString(e3, () => I.createFunctionParameter(this.className, "copyCutAddDependencyFlowUiMetaData", "uiMetaDataSectionName")), v.expectString(t3, () => I.createFunctionParameter(this.className, "copyCutAddDependencyFlowUiMetaData", "rawEntityId")), v.expectObject(i3, () => I.createFunctionParameter(this.className, "copyCutAddDependencyFlowUiMetaData", "rawEntityJSON")); + let n3 = u.create(e3, t3, i3, this.clipboardLogging); + this.dependencies.addClipboardDependencyFlowUiMetaDataViewModel(n3) || (n3.destroy(), n3 = void 0); + } + copyCutAddDependencyVariable(e3, t3) { + if (!e3 || !e3.isVariableViewModel || e3.isPromptContainer) return; + const i3 = this._contentModel.dependencies.dependencyVariableModels[e3.id]; + if (i3) return void i3.applySupportedFlowTypes(this._contextualFlowTypes); + if (this._processExpressionType(e3.type, t3), e3.isSystemVariable || e3.isSlotVariable || e3.isFormScopedVariable) return; + if (this.isVariableScopedToClipboardContent(e3)) return; + let n3 = d.create(e3, this.clipboardLogging, this._contextualFlowTypes); + this.dependencies.addClipboardDependencyVariableViewModel(n3) || (n3.destroy(), n3 = void 0); + } + copyCutAddDependencyCustomType(e3) { + if (!e3) return; + const t3 = [], i3 = e3?.getCustomDataTypeDefinitions(true); + if (i3 && t3.push(...i3), e3.isCollection) { + const i4 = e3?.singleType?.getCustomDataTypeDefinitions(true); + i4 && t3.push(...i4); + } + const r3 = this.clipboardLogging, o2 = this.dependencies; + n2.each(t3, function(e4) { + let t4 = E.create(e4, r3); + o2.addClipboardDependencyCustomDataTypeDefViewModel(t4) || (t4.destroy(), t4 = void 0); + }); + } + _processActionViewModel(e3) { + e3 && e3.isBaseAction && e3.info && this._addManifestItemAction(e3); + } + addOldIdToOldNameMapping(e3, t3) { + return this.contentModel.addOldIdToOldNameMapping(e3, t3); + } + resolveOldIdToOldName(e3) { + if (n2.isFunction(this.contentModel.resolveOldIdToOldName)) return this.contentModel.resolveOldIdToOldName(e3); + } + copyCutProcessActionViewModel(e3) { + v.expectTrue(e3 && true === e3.isBaseAction, e3, "BaseActionViewModel", () => I.createFunctionParameter(this.className, "copyCutProcessActionViewModel", "actionViewModel")), this._processActionViewModel(e3, false); + } + copyCutProcessMenuChoiceViewModel(e3) { + v.expectTrue(e3 && true === e3.isMenuChoice, e3, "MenuChoiceViewModel", () => I.createFunctionParameter(this.className, "copyCutProcessMenuChoiceViewModel", "menuChoiceViewModel")), e3 && e3.isMenuChoice && (this._processActionViewModel(e3.action), this._addManifestItemMenuChoice(e3)); + } + copyCutProcessMenuViewModel(e3) { + v.expectTrue(e3 && true === e3.isMenu, e3, "MenuViewModel", () => I.createFunctionParameter(this.className, "copyCutProcessMenuViewModel", "menuViewModel")), e3 && e3.isMenu && this._addManifestItemMenu(e3); + } + copyCutProcessStateViewModel(e3) { + v.expectTrue(e3 && true === e3.isState, e3, "StateViewModel", () => I.createFunctionParameter(this.className, "copyCutProcessStateViewModel", "stateViewModel")), e3 && e3.isState && this._addManifestItemState(e3); + } + copyCutProcessTaskViewModel(e3) { + v.expectTrue(e3 && true === e3.isTask, e3, "TaskViewModel", () => I.createFunctionParameter(this.className, "copyCutProcessTaskViewModel", "taskViewModel")), e3 && e3.isTask && this._addManifestItemTask(e3); + } + copyCutResetSupportedFlowTypeFilter() { + n2.isUndefined(this._copyCutFlowTypes) || (this._copyCutFlowTypes = void 0, this._contextualFlowTypes = S.flowTypesAll, this.log("Resetting copy cut supported flow types to all flow types.")); + } + copyCutSetSupportedFlowTypeFilter(e3) { + v.expectArray(e3, () => I.createFunctionParameter(this.className, "setCutCopySupportedFlowTypeScope", "supportedFlowTypesFilter"), true), e3 && 0 !== e3.length ? (this._contextualFlowTypes = e3, this.log("Set copy cut supported flow type filter to -> " + this._contextualFlowTypes.join(","))) : this.copyCutResetSupportedFlowTypeFilter(); + } + get dependencies() { + return this._dependenciesViewModel; + } + _performDestroy() { + try { + super._performDestroy(), this._resetUpconvertViewModels(), this.dependencies.destroy(), this._contentModel.dependencies = {}, this._clipboardObject = void 0, this._contentModel = void 0, this._contextualFlowTypes = [], this._copyCutFlowTypes = void 0, this._pasteJsonObjects = void 0, this._pastedTaskOrMenuModel = void 0; + } catch (e3) { + this.logException(e3, "Exception encountered cleaning up clipboard content."); + } + } + get isBaseClipboardContentViewModel() { + return true; + } + get logHeader() { + return this.originalObjectLogStr; + } + get name() { + return this._contentModel.name; + } + set name(e3) { + this._contentModel.name = v.expectString(e3, () => I.createPropertySet(this.className, "name"), true); + } + get originalObjectInfo() { + return this._contentModel.originalObjectInfo; + } + get originalObjectId() { + return this.originalObjectInfo.objectId; + } + get originalObjectFlowId() { + return this.originalObjectInfo.flowId; + } + get originalObjectFlowType() { + return this.originalObjectInfo.flowType; + } + get originalObjectLogStr() { + return "content_type: '" + this.clipboardContentType + "', orig_name: '" + (this.originalObjectInfo.objectName ? this.originalObjectInfo.objectName : "") + "', orig_id: '" + (this.originalObjectInfo.objectId ? this.originalObjectInfo.objectId : "") + "', orig_flowName: '" + (this.originalObjectInfo.flowDisplayName ? this.originalObjectInfo.flowDisplayName : "") + "'"; + } + get originalObjectLogStrFull() { + return "content_type: '" + this.clipboardContentType + "', orig_name: '" + (this.originalObjectInfo.objectName ? this.originalObjectInfo.objectName : "") + "', orig_id: '" + (this.originalObjectInfo.objectId ? this.originalObjectInfo.objectId : "") + "', orig_flowName: '" + (this.originalObjectInfo.flowDisplayName ? this.originalObjectInfo.flowDisplayName : "") + "', orig_flowId: '" + (this.originalObjectInfo.flowId ? this.originalObjectInfo.flowId : "") + "', content_id: '" + this.id + "'"; + } + paste(e3) { + let t3; + this.pushLogHeader(this.logHeader); + try { + this.log("Content object paste operation begin."), this._pasteJsonObjects = {}, this._pasteJsonObjects.content = this.cloneToRawJsonObject(this.contentModel.contentRawJSON), this._resetUpconvertViewModels(); + const i3 = this._pasteBefore(e3); + if (i3.isFailure) return i3; + const n3 = this.dependencies.paste(e3); + if (n3.isFailure) return n3; + if (t3 = this._performPaste(e3), t3.isFailure) return t3; + t3 = this._pasteAfter(e3); + } catch (e4) { + t3 = this.createClipboardResultFailure("An error occurred during the content paste operation."); + } finally { + this.log("Content object paste operation end."), this.popLogHeader(), this._pastedTaskOrMenuModel = void 0, this._resetUpconvertViewModels(); + } + return t3; + } + get pastedMenuOrTaskOrActionViewModel() { + return this._pastedTaskOrMenuModel; + } + set pastedMenuOrTaskOrActionViewModel(e3) { + this._pastedTaskOrMenuModel = v.expectObject(e3, () => I.createPropertySet(this.className, "pastedMenuOrTaskOrActionViewModel", "coreViewModel")); + } + }; + }, 25118: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.ListPickerItemType = t2.MANAGED_SLOT_TYPE_VALUE = t2.PROP_IMAGE = t2.PROP_SUBTITLE = t2.PROP_TITLE = void 0; + const n2 = i2(31635), r2 = i2(36444), o = i2(99434), a = i2(28562), s = n2.__importDefault(i2(73198)), l = i2(27491), u = i2(80428), d = i2(14394), c = i2(94765), p = i2(53476), _ = i2(47957); + t2.PROP_TITLE = "title", t2.PROP_SUBTITLE = "subtitle", t2.PROP_IMAGE = "image", t2.MANAGED_SLOT_TYPE_VALUE = "managedSlotTypeValue"; + class h extends c.ExpressionType { + constructor(e3, t3, i3) { + super(e3, t3, i3); + } + get className() { + return "ListPickerItemType"; + } + canConvertLitToExpression(e3) { + return l.expressionDataService.isFunctionTextAvailableForFlowTypeAndOperandTypes("MakeListPickerItem", e3, [d.globalTypes.string, d.globalTypes.string, d.globalTypes.image]); + } + convertLitToExpression(e3, t3, i3, n3) { + var r3, o2, a2; + return n3 && this.canConvertLitToExpression(e3) ? `MakeListPickerItem(${(null === (r3 = this.getPropTitle(n3)) || void 0 === r3 ? void 0 : r3.getEmbeddableExpressionText()) || s.default.notSet}, ${(null === (o2 = this.getPropSubtitle(n3)) || void 0 === o2 ? void 0 : o2.getEmbeddableExpressionText()) || s.default.notSet}, ${(null === (a2 = this.getPropImage(n3)) || void 0 === a2 ? void 0 : a2.getEmbeddableExpressionText()) || s.default.notSet})` : ""; + } + _getLiteralValueOfExpression() { + return ""; + } + createExpressionOptionClass() { + return new r2.ExpressionTypeListPickerItemOptions(); + } + get supportsLiteralEditor() { + return true; + } + getPropTitle(e3) { + return e3.getProperty(t2.PROP_TITLE); + } + getPropSubtitle(e3) { + return e3.getProperty(t2.PROP_SUBTITLE); + } + getPropImage(e3) { + return e3.getProperty(t2.PROP_IMAGE); + } + configurePropertyCreationParams(e3, i3, n3) { + var r3; + switch (super.configurePropertyCreationParams(e3, i3, n3), n3.options.setIninTestingField(`list-picker-item-${i3.name}`), null === (r3 = i3.name) || void 0 === r3 ? void 0 : r3.toLowerCase()) { + case t2.PROP_TITLE: + n3.options.setIsOptional(false), n3.options.setAllowedBuilderIds([a.builderIds.parts.genericString]); + break; + case t2.PROP_SUBTITLE: + n3.options.setIsOptional(true), n3.options.setAllowedBuilderIds([a.builderIds.parts.genericString]); + break; + case t2.PROP_IMAGE: + n3.options.setIsOptional(true), n3.options.setAllowNotSet(true), n3.options.setDefaultToNoValue(true); + } + } + get hasRichLiteralEditor() { + return true; + } + isValueUnknownAtDesignTime(e3) { + var t3; + return !e3.isLiteralMode || !(null === (t3 = this.getPropTitle(e3)) || void 0 === t3 ? void 0 : t3.isLiteralMode); + } + isTypeUnknownAtDesignTime(e3) { + return false; + } + getIsSlotOrSlotTypeChoice(e3) { + return true; + } + isPostbackChoice(e3) { + return true; + } + getValueStr(e3) { + var t3; + return null === (t3 = this.getPropTitle(e3)) || void 0 === t3 ? void 0 : t3.text; + } + getReferenceId(e3) { + } + setReferenceId(e3, t3) { + } + getPossibleStringFacetValue(e3, t3) { + const i3 = this.getValueStr(e3); + if (i3) return { id: i3, displayString: i3 }; + } + setAsManagedValue(e3, i3) { + this.getPropTitle(e3).setAsLiteral(i3), e3.setUiMetaData(t2.MANAGED_SLOT_TYPE_VALUE, i3); + } + isManagedValue(e3) { + return !!e3.getUiMetaData(t2.MANAGED_SLOT_TYPE_VALUE); + } + isValidNluValue(e3) { + var t3, i3; + if (!this.isManagedValue(e3)) return false; + const n3 = this._findChooserExprInParentChain(e3); + if (!n3) return false; + if (!n3.type.getIsSlotOrSlotTypeChooser(n3)) return false; + const r3 = n3.type.getSlotTypeName(n3); + if (!r3) return false; + const o2 = null === (i3 = null === (t3 = n3.parentFlow) || void 0 === t3 ? void 0 : t3.nluMetaData) || void 0 === i3 ? void 0 : i3.getEntityTypeAllowableValues(r3); + if (!o2) return false; + const a2 = this.getValueStr(e3); + return o2.includes(a2); + } + _findChooserExprInParentChain(e3) { + let t3 = null == e3 ? void 0 : e3.parent; + for (; t3; ) { + if (t3.chooser && (0, p.isChooserExpressionType)(t3.chooser.type)) return t3.chooser; + t3 = t3.parent; + } + } + _getChooserExpr(e3) { + var t3, i3; + return (0, p.isChooserExpressionType)(null === (i3 = null === (t3 = e3.parent) || void 0 === t3 ? void 0 : t3.chooser) || void 0 === i3 ? void 0 : i3.type) ? e3.parent.chooser : void 0; + } + getListPickerItemTitle(e3) { + var t3, i3, n3, r3, a2, s2; + if (this.isManagedValue) { + const o2 = this._getChooserExpr(e3); + if (o2) { + const l3 = o2.type.getSlotTypeName(o2); + if (l3) { + let u2; + if ((null === (i3 = null === (t3 = o2.parentFlow) || void 0 === t3 ? void 0 : t3.flowViewFilterOptions) || void 0 === i3 ? void 0 : i3.enabled) && (u2 = null === (n3 = o2.parentFlow) || void 0 === n3 ? void 0 : n3.flowViewFilterOptions.language), u2 || (u2 = null === (a2 = null === (r3 = o2.parentFlow) || void 0 === r3 ? void 0 : r3.defaultLanguage) || void 0 === a2 ? void 0 : a2.toLowerCase()), u2) { + const t4 = this.getValueStr(e3), i4 = null === (s2 = o2.parentFlow) || void 0 === s2 ? void 0 : s2.nluMetaData.getEntityTypeValueLabelForLanguage(l3, t4, u2); + if (i4) return i4; + } + } + } + } + const l2 = this.getPropTitle(e3); + return (null == l2 ? void 0 : l2.text) && (0, o.getDisplayText)(l2) || _.collectionEditor.itemLabel; + } + copyExpressionValue(e3, i3) { + e3.setUiMetaData(t2.MANAGED_SLOT_TYPE_VALUE, i3.getUiMetaData(t2.MANAGED_SLOT_TYPE_VALUE)); + } + } + t2.ListPickerItemType = h, h.typeIdentifier = u.expressionTypeNames.listPickerItem; + }, 25130: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.botConnectorVersionManager = t2.BotConnectorVersionManager = void 0; + const n2 = i2(31635), r2 = n2.__importDefault(i2(92140)), o = n2.__importStar(i2(80911)), a = n2.__importStar(i2(1360)), s = n2.__importStar(i2(24032)), l = i2(30801), u = i2(96950), d = i2(74267), c = n2.__importDefault(i2(47532)), p = i2(81801), _ = i2(47957), h = i2(58597), m = i2(27862); + class g extends c.default { + get requiredAuth() { + return p.externalAuthorizations.authStrings.botConnectorView; + } + get dependencyType() { + return m.BotConnectorBot; + } + constructor() { + super(), this.topic = s.getTopic("BotConnectorVersionManager"), this._rawServerCache = {}, this.actionPropertyForUsageSearch = "version", this.actionsForUsageSearch = [l.botConnectorActionType], this.apiCallList = o.getBotConnectorBotVersions, this.apiCallSingle = o.getBotConnectorBotVersion, this.caseSensitiveIds = true, this.className = "BotConnectorVersionManager", this.defaultMatchingStyle = a.exactMatch, this.dependencyContext = _.botConnector.botConnectorVersion, this.idEquivalent = "archInternalId", this.isDependentOnCategory = true, this.searchField = "name", this.securityError = true, this.suppressSearch = true, this.uiMetadataSectionName = "botConnectorVersion", this._initialize(); + } + addItem(e3, t3, i3) { + e3.isFromAdsValidationResults && (u.botConnectorManager.createAndAddBot(e3.id, e3.name, e3.botId, e3.integrationId), e3 = o.ensureCorrectVersionProperties(e3, null, e3.id, e3.integrationId)); + const n3 = !!e3.intents; + return super.addItem(e3, n3); + } + addItemToFlowMetadata(e3, t3, i3) { + const n3 = r2.default.isFunction(null == e3 ? void 0 : e3.getUniqueBotRunnableId) ? e3.getUniqueBotRunnableId() : i3; + return super.addItemToFlowMetadata(e3, t3, n3); + } + get _networkModel() { + return h; + } + _createItemViewModel(e3) { + return new d.BotConnectorVersionViewModel(e3); + } + getItemFromFlowMetadata(e3, t3) { + const i3 = r2.default.isFunction(null == e3 ? void 0 : e3.getUniqueBotRunnableId) ? e3.getUniqueBotRunnableId() : t3, n3 = super.getItemFromFlowMetadata(e3, i3); + return n3 && (n3.model = o.ensureCorrectVersionProperties(n3.model, n3.botId, e3.bot.idValue, n3.integrationId)), n3; + } + getBotCategoryForBotRunnable(e3, t3) { + if (!r2.default.isString(e3)) return this.topic.error("Object passed to getBotCategoryForBotRunnable was not a string: " + e3), null; + const i3 = this.getItem(e3.toLowerCase(), t3); + return i3 ? u.botConnectorManager.getItem(i3.botId, t3) : null; + } + getItem(e3, t3) { + const i3 = t3, n3 = r2.default.isFunction(null == i3 ? void 0 : i3.getUniqueBotRunnableId) ? i3.getUniqueBotRunnableId() : e3; + return super.getItem(n3); + } + } + t2.BotConnectorVersionManager = g, t2.botConnectorVersionManager = new g(); + }, 25149: (e2, t2, i2) => { + const n2 = i2(36370), r2 = i2(84670), o = i2(71698), a = i2(36019).default; + function s() { + } + const l = new s(); + s.prototype.getQueues = a.request("GET", "{public-api.apps}/api/v2/routing/queues", o), l.getQueues.addOptions({ allowRequestChunking: true, chunkingNumber: 25, chunkingParamName: "id" }), s.prototype.getQueue = a.request("GET", "{public-api.apps}/api/v2/routing/queues/{id}", r2), s.prototype.getQueuesDivisionViews = a.request("GET", "{public-api.apps}/api/v2/routing/queues/divisionViews", n2), l.getQueues.addOptions({ ignoreBadResponse: true }), l.getQueuesDivisionViews.addOptions({ ignoreBadResponse: true }), e2.exports = l; + }, 25154: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(92140)), r2 = i2(55299); + class o extends r2.BaseClass { + constructor(e3) { + super(), this.id = e3.id, this.model = e3; + } + get className() { + return "NuanceMixChannelViewModel"; + } + get isNuanceMixChannelViewModel() { + return true; + } + get displayString() { + return this.model.name; + } + get isVoiceChannel() { + return n2.default.contains(this.model.modes, "TTS"); + } + get isTextChannel() { + return n2.default.contains(this.model.modes, "RICH_TEXT") || this.isVoiceChannel; + } + } + t2.default = o; + }, 25162: (e2, t2, i2) => { + "use strict"; + const n2 = i2(31635), r2 = n2.__importDefault(i2(942)), o = i2(80428), a = i2(29586), s = i2(50584), l = i2(12179), u = n2.__importDefault(i2(97891)), d = i2(47957); + class c extends r2.default { + constructor(e3, t3) { + super(e3.parentFlow, e3), this._loadModel(t3); + } + static get managedProperties() { + return r2.default.createManagedProperties({ searchFieldLabel: d.findActions.findDivision.findDivisionNameLabel, searchResultLabel: d.findActions.findDivision.findDivisionResultLabel, searchResultExpressionOptions: a.ExpressionTypeDivisionOptions.create(), searchResultItemType: o.expressionTypeNames.division }); + } + } + c.info = u.default.createActionInfo({ actionClass: c, canBeInTask: true, helpTopic: l.helpTopics.actions.findDivision, modelClass: s.FindDivisionActionModel, name: d.actions.findDivision, scriptingName: "ArchActionFindDivision" }), t2.A = c; + }, 25190: (e2, t2, i2) => { + const n2 = i2(92140), r2 = i2(62115), { ParameterInfo: o } = i2(55909), { ParameterValidator: a } = i2(33951); + e2.exports = class extends r2 { + constructor(e3, t3) { + super(e3, t3); + } + _dumpContent() { + n2.each(this.map, function(e3, t3) { + this.log(" flow id -> " + this._valueLogStr(t3)), n2.each(e3, function(e4, t4) { + this.log(" " + this._valueLogStr(t4) + " -> " + this._valueLogStr(e4)); + }.bind(this)); + }.bind(this)); + } + _getFlowContainer(e3, t3) { + let i3 = this.map[e3]; + return !i3 && t3 && (this.map[e3] = {}, i3 = this.map[e3]), i3; + } + addFlowGroupedMapping(e3, t3, i3) { + a.expectString(e3, () => o.createFunctionParameter(this.className, "addFlowGroupedMapping", "flowId")), a.expectIntOrString(t3, () => o.createFunctionParameter(this.className, "addFlowGroupedMapping", "oldValue")), a.expectIntOrString(i3, () => o.createFunctionParameter(this.className, "addFlowGroupedMapping", "newValue")), this._getFlowContainer(e3, true)[t3] = i3, this.shouldLog && this.log(this.titleLogPrefix + "flow ID " + this._valueLogStr(e3) + " > Added mapping for old ID " + this._valueLogStr(t3) + " -> new ID " + this._valueLogStr(i3)); + } + get className() { + return "OldValueToNewValueFlowGroupedMap"; + } + get isOldValueToNewValueFlowGroupedMap() { + return true; + } + resolveFlowGroupedMapping(e3, t3) { + if (a.expectString(e3, () => o.createFunctionParameter(this.className, "resolveFlowGroupedMapping", "flowId")), a.expectIntOrString(t3, () => o.createFunctionParameter(this.className, "resolveFlowGroupedMapping", "oldValue"), true), n2.isUndefined(t3) || null === t3 || "" === t3) return t3; + const i3 = this._getFlowContainer(e3); + if (!i3) return t3; + let r3 = i3[t3]; + if (!r3 && t3.indexOf(".") >= 1) { + const e4 = t3.split("."); + let n3 = false; + for (let t4 = 0; t4 < e4.length; t4++) { + const r4 = i3[e4[t4]]; + r4 && (e4[t4] = r4, n3 = true); + } + n3 && (r3 = e4.join(".")); + } + return r3 ? (this.shouldLog && this.log(this.titleLogPrefix + "flow ID " + this._valueLogStr(e3) + " > Resolved mapping " + this._valueLogStr(t3) + " -> " + this._valueLogStr(r3)), r3) : t3; + } + getValuesAsArray(e3) { + const t3 = this._getFlowContainer(e3); + return t3 ? n2.values(t3) : []; + } + }; + }, 25234: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importStar(i2(63824)), o = n2.__importDefault(i2(5730)), a = n2.__importDefault(i2(27203)), s = n2.__importDefault(i2(73198)), l = i2(79467), u = i2(80428), d = i2(47957); + class c extends o.default { + static get managedProperties() { + return [{ label: d.detectSilence.silenceDuration, options: l.ExpressionTypeDurationOptions.create((e3) => e3.setIninTestingField("detectSilenceDuration").setDefaultText(s.default.litDurationOneSecond).setDescriptionInfo(void 0, d.detectSilence.silenceDurationDescription).setAllowFlowLevelDefault(true).setScriptingPropertyName("silenceDuration").setDurationStyle(r2.durationStyles.secondsAndTenthsDuration).setUiPropertyOrder(20).facets.setMinDur(250, true).setMaxDur(1e4, true)), property: "silenceDuration", type: u.expressionTypeNames.duration }, { label: d.generic.branches.timeout, options: l.ExpressionTypeDurationOptions.create((e3) => e3.setIninTestingField("detectSilenceTimeout").setDefaultText(s.default.litDurationFortySeconds).setDescriptionInfo(void 0, d.detectSilence.timeoutDescription).setAllowFlowLevelDefault(true).setScriptingPropertyName("timeout").setDurationStyle(r2.durationStyles.secondsAndTenthsDuration).setUiPropertyOrder(21).facets.setMinDur(1e3, true).setMaxDur(6e4, true)), property: "timeout", type: u.expressionTypeNames.duration }]; + } + static get branchInfo() { + return a.default.successTimeout; + } + constructor(e3) { + super(e3.parentFlow, e3); + } + } + t2.default = c, c.className = "BaseDetectSilenceActionViewModel"; + }, 25255: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = i2(30801), o = n2.__importDefault(i2(11210)); + class a extends o.default { + constructor(e3) { + super(e3); + } + get _actionTypeId() { + return r2.disconnectActionType; + } + get displayTypeName() { + return this._scriptingName; + } + get isArchActionDisconnect() { + return true; + } + } + t2.default = a; + }, 25298: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = i2(26847), o = n2.__importDefault(i2(15453)); + class a extends o.default { + constructor(e3) { + super(e3); + } + get displayTypeName() { + return "ArchBaseActionWithOutputLoopMaxLoopsNextLoop"; + } + get isArchBaseActionWithOutputLoopMaxLoopsNextLoop() { + return true; + } + get outputLoopNext() { + return this._getOutputById(r2.outputIds.loopNext, true); + } + get outputLoopsMax() { + return this._getOutputById(r2.outputIds.loopsMax, true); + } + } + t2.default = a; + }, 25301: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.allModes = t2.never = t2.always = void 0; + const n2 = i2(47957); + t2.always = { displayString: n2.askForSlot.confirmationModes.confirmationModeAlways, id: "always" }, t2.never = { displayString: n2.askForSlot.confirmationModes.confirmationModeNever, id: "never" }, t2.allModes = [t2.always, t2.never]; + }, 25308: (e2, t2, i2) => { + "use strict"; + const n2 = i2(31635), r2 = i2(89134), o = i2(12179), a = n2.__importDefault(i2(5730)), s = i2(81516), l = n2.__importDefault(i2(97891)), u = i2(80428), d = i2(47957); + class c extends a.default { + constructor(e3, t3) { + super(e3.parentFlow, e3), this._loadModel(t3); + } + static get managedProperties() { + return [{ label: d.setPostFlow.target, options: s.ExpressionTypeStringOptions.create((e3) => e3.setDescriptionInfo(d.setPostFlow.target, d.setPostFlow.targetTypeDescription).setAsInput().setIsOptional(false).setAllowModeLiteralOnly().setIninTestingField("ClearPostFlowAction-target").setUiPropertyOrder(1).facets.setTrim(true).setAllowableValues(r2.allPostCallFlowTargetTypes).setAllowableValuePlaceholder(d.setPostFlow.targetPlaceholder)), property: "target", type: u.expressionTypeNames.string }]; + } + } + c.info = l.default.createActionInfo({ actionClass: c, canBeInTask: true, helpTopic: o.helpTopics.actions.clearPostFlow, modelClass: i2(97534), name: d.actions.clearPostFlow, scriptingName: "ArchActionClearPostFlow" }), t2.A = c; + }, 25420: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(84655)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "string"; + } + get displayTypeName() { + return "ArchVariableString"; + } + get initialValue() { + return this._initialValue; + } + get isArchVariableString() { + return true; + } + } + t2.default = r2; + }, 25446: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(37873)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get _allowBlankObjectId() { + return false; + } + get displayTypeName() { + return "ArchBasePrompt"; + } + get isArchBasePrompt() { + return true; + } + get name() { + return this._getCoreViewModel().name; + } + get nameWithPrefix() { + return this._getCoreViewModel().expressionName; + } + get isSystemPrompt() { + return this._getCoreViewModel().isSystem; + } + get isUserPrompt() { + return this._getCoreViewModel().isUser; + } + } + t2.default = r2; + }, 25498: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(23714)); + class r2 extends n2.default { + constructor(e3) { + super(e3), this._initialAudio = this.coreFactory.createArchWrapper(e3.initialPrompts), this._menuSettings = this.coreFactory.createArchWrapper(e3.menuSettings), this._promptSettings = this.coreFactory.createArchWrapper(e3.callPrompts), this._speechRecSettings = this.coreFactory.createArchWrapper(e3.speechRecognition); + } + get displayTypeName() { + return "ArchBaseFlowInboundOutboundSecureCall"; + } + get initialAudio() { + return this._initialAudio; + } + get isArchBaseFlowInboundOutboundSecureCall() { + return true; + } + setStartingMenu(e3) { + this._checkItem(this._infoParm("archMenu", "setStartingMenu"), !e3 || !e3.isArchMenu, "you must pass in a valid ArchMenu instance to set it as the starting menu on a flow."), this.logNote("setting the starting menu to " + e3.logStr), this._coreFlowViewModel.initialSequence = e3.id; + } + setStartingTask(e3) { + this._checkItem(this._infoParm("archTask", "setStartingTask"), !e3 || !e3.isArchTask, "you must pass in a valid ArchTask instance to set it as the starting task on a flow."), this.logNote("setting the starting task to " + e3.logStr), this._coreFlowViewModel.initialSequence = e3.id; + } + get settingsMenu() { + return this._menuSettings; + } + get settingsPrompts() { + return this._promptSettings; + } + get settingsSpeechRec() { + return this._speechRecSettings; + } + get startUpObject() { + const e3 = this._getCoreViewModel().startUpObject; + return e3 ? this.coreFactory.createArchWrapper(e3) : null; + } + } + t2.default = r2; + }, 25609: (e2, t2, i2) => { + "use strict"; + var n2, r2, o; + Object.defineProperty(t2, "__esModule", { value: true }); + const a = i2(31635), s = i2(96618), l = a.__importDefault(i2(16731)); + class u extends l.default { + constructor(e3) { + super(e3), n2.set(this, void 0), r2.set(this, void 0), o.set(this, void 0), a.__classPrivateFieldSet(this, n2, this.coreFactory.createArchWrapper(e3.callPrompts), "f"), a.__classPrivateFieldSet(this, r2, this.coreFactory.createArchWrapper(e3.voiceSurveyFlowSettings), "f"), a.__classPrivateFieldSet(this, o, this.coreFactory.createArchWrapper(e3.speechRecognition), "f"); + } + get _flowType() { + return s.flowTypes.flowTypeVoiceSurvey; + } + get displayTypeName() { + return "ArchFlowVoiceSurvey"; + } + get isArchFlowVoiceSurvey() { + return true; + } + get settingsPrompts() { + if (!this._getCoreViewModel().callPrompts.outOfService) return a.__classPrivateFieldGet(this, n2, "f"); + } + get settingsSpeechRec() { + return a.__classPrivateFieldGet(this, o, "f"); + } + get voiceSurveySettings() { + return a.__classPrivateFieldGet(this, r2, "f"); + } + } + n2 = /* @__PURE__ */ new WeakMap(), r2 = /* @__PURE__ */ new WeakMap(), o = /* @__PURE__ */ new WeakMap(), t2.default = u; + }, 25632: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.Operand = void 0; + const n2 = i2(31635), r2 = n2.__importDefault(i2(15508)), o = n2.__importStar(i2(9345)); + t2.Operand = class { + constructor(e3, t3, i3) { + this.className = "Operand", this.isOperand = true, this.allowNotSet = !e3.required, this.canAppearMoreThanOnce = e3.repeatable, this.description = i3, this.name = e3.identifier, this.type = t3, this.allowCustomJson = e3.allowCustomJson, void 0 !== e3.helpDisplayIdx && (this.helpDisplayIdx = e3.helpDisplayIdx), e3.isDecimalPlaces && (this.isDecimalPlaces = true); + let n3 = false, o2 = false, a = false; + void 0 !== e3.allowNotSet && (n3 = true), void 0 !== e3.min && (this.min = parseInt(e3.min, 10), a = true), void 0 !== e3.max && (this.max = parseInt(e3.max, 10), a = true), e3.disallowZero && (this.disallowZero = true, n3 = true), void 0 !== e3.minLength && (this.minLength = parseInt(e3.minLength, 10), a = true), e3.mustBeLiteral && (this.mustBeLiteral = true, n3 = true), e3.mustBeVariable && (this.mustBeVariable = true, e3.mustBeVariableScope && (this.mustBeVariableScope = e3.mustBeVariableScope), n3 = true), e3.literalValidatorName && (this.literalValidatorName = e3.literalValidatorName, n3 = true), e3.checkPromptTTSLength && (this.checkPromptTTSLength = e3.checkPromptTTSLength, n3 = true), void 0 !== e3.itemAllowNotSet && (this.itemAllowNotSet = e3.itemAllowNotSet, o2 = true), void 0 !== e3.itemMax && (this.itemMax = parseInt(e3.itemMax, 10), o2 = true), void 0 !== e3.itemMin && (this.itemMin = parseInt(e3.itemMin, 10), o2 = true), void 0 !== e3.maxItems && (this.maxItems = parseInt(e3.maxItems, 10), n3 = true), void 0 !== e3.minItems && (this.minItems = parseInt(e3.minItems, 10), n3 = true), o2 && (this.hasCollectionItemRestrictions = true), a && (this.facets = r2.default.createMinMax(this.min, void 0 !== this.min, this.max, void 0 !== this.max)), (o2 || a || n3) && (this.hasRestrictions = true); + } + isExpressionMatch(e3) { + let t3; + if (this.allowNotSet) t3 = o.settings.typeOfOrAnyOrNotSet; + else { + if (e3.isNotSet) return false; + t3 = this.type.isAnyComplex ? o.settings.anyComplex : o.settings.typeOfOrAny; + } + return o.isMatch(e3.type, this.type, t3, this.allowCustomJson); + } + checkMaxIntRestriction(e3) { + return !(void 0 !== this.max && e3 > this.max); + } + checkMinIntRestriction(e3) { + return !(void 0 !== this.min && e3 < this.min); + } + checkZeroRestriction(e3) { + return !(this.disallowZero && 0 === e3); + } + }; + }, 25638: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(76117)); + class r2 extends n2.default { + constructor({ builderViewModel: e3, owningExpressionViewModel: t3, builderPartModel: i3, reId: n3 }) { + super(e3, t3, i3, void 0, n3); + } + get className() { + return "OutputModeBuilderPartContainerViewModel"; + } + get isOutputModeBuilderPartContainerViewModel() { + return true; + } + get outputMode() { + return this.criteria ? this.criteria.outputMode : ""; + } + get containerDisplayString() { + return this.outputMode; + } + _validateContainerOnly(e3, t3) { + return super._validateContainerOnly(e3, t3); + } + } + t2.default = r2; + }, 25653: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.askForNextSlotSequences = void 0; + const n2 = i2(31635), r2 = i2(28562), o = i2(80295), a = i2(73324); + class s extends a.BaseBotActionSettingsSequence { + constructor() { + super("askForNextSlot"); + } + get noInputSequence() { + const e3 = this.generateLanguageSequencesDefaultSequence("noInput"); + return this.generateLanguageSequenceConfig("AskForNextSlotNoInput", r2.builderIds.parts.genericCommunication, e3); + } + get noInputDigitalBotSequence() { + const e3 = this.generateLanguageSequencesDefaultSequence("noInputDigitalBot"); + return this.generateLanguageSequenceConfig("AskForNextSlotNoInputDigitalBot", r2.builderIds.parts.markdownCommunication, e3); + } + get noMatchSequence() { + const e3 = this.generateLanguageSequencesDefaultSequence("noMatch"); + return this.generateLanguageSequenceConfig("AskForNextSlotNoMatch", r2.builderIds.parts.genericCommunication, e3); + } + get noMatchDigitalBotSequence() { + const e3 = this.generateLanguageSequencesDefaultSequence("noMatch"); + return this.generateLanguageSequenceConfig("AskForNextSlotNoMatch", r2.builderIds.parts.markdownCommunication, e3); + } + get questionSequence() { + const e3 = this.generateLanguageSequencesDefaultSequence("question"), t3 = { digitalbot: { builderId: r2.builderIds.parts.markdownCommunication, languageSequences: e3 } }; + return this.generateLanguageSequenceConfig("AskForNextSlotQuestion", r2.builderIds.parts.genericCommunication, e3, t3); + } + } + n2.__decorate([(0, o.enumerable)(true), n2.__metadata("design:type", Object), n2.__metadata("design:paramtypes", [])], s.prototype, "noInputSequence", null), n2.__decorate([(0, o.enumerable)(true), n2.__metadata("design:type", Object), n2.__metadata("design:paramtypes", [])], s.prototype, "noInputDigitalBotSequence", null), n2.__decorate([(0, o.enumerable)(true), n2.__metadata("design:type", Object), n2.__metadata("design:paramtypes", [])], s.prototype, "noMatchSequence", null), n2.__decorate([(0, o.enumerable)(true), n2.__metadata("design:type", Object), n2.__metadata("design:paramtypes", [])], s.prototype, "noMatchDigitalBotSequence", null), n2.__decorate([(0, o.enumerable)(true), n2.__metadata("design:type", Object), n2.__metadata("design:paramtypes", [])], s.prototype, "questionSequence", null), t2.askForNextSlotSequences = new s(); + }, 25657: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.getKnowledgeSource = a; + const n2 = i2(31635), r2 = n2.__importDefault(i2(36019)), o = n2.__importStar(i2(94604)); + function a(e3) { + return r2.default.build(o.getKnowledgeSource).templateParams({ id: e3 }).call(); + } + a.api = o.getKnowledgeSource; + }, 25679: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(54063)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "externalOrganizationCollection"; + } + get displayTypeName() { + return "ArchValueExternalOrganizationCollection"; + } + get isArchValueExternalOrganizationCollection() { + return true; + } + } + t2.default = r2; + }, 25760: (e2, t2, i2) => { + function n2() { + Object.defineProperties(this, { _dateCreated: { writable: true }, _dateModified: { writable: true } }), this.dateCreated = void 0, this.dateModified = void 0, this.engineVersion = void 0, this.draftVersion = void 0, this.lastPublishedVersion = void 0, this.intents = void 0, this.entities = void 0, this.entityTypes = void 0, this.language = void 0, n2.baseConstructor.apply(this, arguments); + } + i2(52722).extend(n2, "NLUDomain"), Object.defineProperties(n2.prototype, { dateCreated: { get: function() { + return this._dateCreated; + }, set: function(e3) { + this._dateCreated = Date.parse(e3); + } }, dateModified: { get: function() { + return this._dateModified; + }, set: function(e3) { + this._dateModified = Date.parse(e3); + } }, isNLUDomainModel: { get: () => true } }), e2.exports = n2; + }, 25767: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importStar(i2(10798)), o = n2.__importDefault(i2(4648)), a = n2.__importDefault(i2(37873)); + class s extends a.default { + constructor(e3) { + super(e3), this._coreBotSettingsViewModel = e3; + } + get displayTypeName() { + return "ArchSettingsBotFlow"; + } + get logStr() { + if (!this._coreBotSettingsViewModel) return this.logStrTypeOnly; + const e3 = []; + return this._appendLogStrType(e3, this.displayTypeName), this._appendLogStrParentFlowInfo(e3, this._getCoreViewModel()), this._createLogStrFromParts(e3); + } + get isArchSettingsBotFlow() { + return true; + } + get agenticVirtualAgentEnabled() { + return this._getCoreViewModel().agenticVirtualAgentEnabled; + } + getDynamicSlotTypeSettingsByName(e3) { + const t3 = this._infoParm("dynamicSlotTypeName", "getDynamicSlotTypeSettingsByName"); + this._checkItemIsValidLiteralString(t3, e3); + const i3 = this._coreBotSettingsViewModel.parent.nluMetaData.dynamicSlotTypesMap.items, n3 = e3.toLowerCase(), r3 = i3.find((e4) => { + var t4; + return (null === (t4 = null == e4 ? void 0 : e4.model) || void 0 === t4 ? void 0 : t4.name.toLowerCase()) === n3; + }); + if (r3) return this.coreFactory.createArchSettingsNluDynamicSlotType(r3); + this.logItemWarning(t3, `could not find the slot type with name '${e3}', returning nothing.`); + } + getDynamicTimeslotTypeSettingsByName(e3) { + const t3 = this._infoParm("dynamicTimeslotTypeName", "getDynamicTimeslotTypeSettingsByName"); + this._checkItemIsValidLiteralString(t3, e3); + const i3 = this._coreBotSettingsViewModel.parent.nluMetaData.dynamicTimeslotTypeList.items, n3 = e3.toLowerCase(), r3 = i3.find((e4) => { + var t4; + return (null === (t4 = null == e4 ? void 0 : e4.model) || void 0 === t4 ? void 0 : t4.name.toLowerCase()) === n3; + }); + if (r3) return this.coreFactory.createArchSettingsNluDynamicTimeslotType(r3); + this.logItemWarning(t3, `could not find the slot type with name '${e3}', returning nothing.`); + } + getIntentSettingsByIntentName(e3) { + this._checkItemIsValidLiteralString(this._infoParm("intentName", "getIntentSettingsByIntentName"), e3); + const t3 = this._coreBotSettingsViewModel.parent.nluMetaData.intentSettingsMap[e3]; + if (t3) return this.coreFactory.createArchSettingsNluIntent(t3); + } + getSlotSettingsBySlotName(e3) { + this._checkItemIsValidLiteralString(this._infoParm("slotName", "getSlotSettingsBySlotName"), e3); + const t3 = this._coreBotSettingsViewModel.parent.nluMetaData.slotSettingsMap[e3]; + if (t3) return this.coreFactory.createArchSettingsNluSlot(t3); + } + get virtualAgentEnabled() { + return this._getCoreViewModel().virtualAgentEnabled; + } + set virtualAgentEnabled(e3) { + const t3 = this._infoPropSet("newValue", "virtualAgentEnabled"); + this._checkItemIsValidLiteralBool(t3, e3), true !== e3 || r2.isFeatureAvailable(o.default.botFlowsVirtualAgentOffering) || this.logItemErrorAndThrow(t3, "unable to enable Virtual Agent functionality on this flow because this organization does not have Virtual Agent functionality available to it."), this._getCoreViewModel().virtualAgentEnabled = !!e3; + } + get voiceProcessingPrompt() { + return this.coreFactory.createArchWrapper(this._coreBotSettingsViewModel.voiceProcessingPrompt); + } + get minimumPlaybackTime() { + return this.coreFactory.createArchWrapper(this._coreBotSettingsViewModel.minimumPlaybackTime); + } + get initialPlaybackDelay() { + return this.coreFactory.createArchWrapper(this._coreBotSettingsViewModel.initialPlaybackDelay); + } + } + t2.default = s; + }, 25884: (e2) => { + "use strict"; + e2.exports = (e3, t2) => { + t2 = t2 || process.argv; + const i2 = e3.startsWith("-") ? "" : 1 === e3.length ? "-" : "--", n2 = t2.indexOf(i2 + e3), r2 = t2.indexOf("--"); + return -1 !== n2 && (-1 === r2 || n2 < r2); + }; + }, 25965: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.messagingTemplateResponseManager = t2.MessagingTemplateResponseManager = void 0; + const n2 = i2(24032), r2 = i2(10535), o = i2(30801), a = i2(60609); + class s extends r2.ResponseManager { + constructor() { + super(...arguments), this.topic = (0, n2.getTopic)("MessagingTemplateResponseManager"), this.responseType = a.CannedResponseType.messagingTemplate, this.actionsForUsageSearch = [o.sendDigitalContentActionType]; + } + additionalItemFilter(e3) { + return e3.filter((e4) => e4.responseType === this.responseType); + } + } + t2.MessagingTemplateResponseManager = s, t2.messagingTemplateResponseManager = new s(); + }, 26031: (e2, t2, i2) => { + const n2 = i2(36019).default, r2 = i2(87200); + function o() { + } + o.prototype.orgInfo = function() { + return n2.build(r2.orgInfo).call(); + }, o.prototype.getAuthToken = function(e3) { + const t3 = n2.build(r2.getAuthToken); + return t3.addTokenRequestHeaders(), t3.content("grant_type=authorization_code&code=" + e3 + "&redirect_uri=http://localhost:9001/callback"), t3.call(); + }, o.prototype.getAuthTokenClientCredentials = function() { + const e3 = n2.build(r2.getAuthToken); + return e3.addTokenRequestHeaders(), e3.content("grant_type=client_credentials&redirect_uri=http://localhost:9001/callback"), e3.call(); + }, o.prototype.getTimeZones = function() { + return n2.build(r2.getTimeZones).call(); + }, o.prototype.mainAppHtml = function() { + return n2.build(r2.mainAppHtml).call(); + }, o.prototype.reportError = function(e3, t3, i3, o2, a) { + const s = n2.build(r2.reportError); + return s.content({ topic: e3, description: t3, priority: i3, type: o2, data: a }), s.call(); + }, e2.exports = new o(); + }, 26063: (e2, t2, i2) => { + function n2() { + this.region = void 0, n2.baseConstructor.apply(this, arguments); + } + i2(24171).extend(n2, "LexV2Bot"), Object.defineProperties(n2.prototype, { isLexV2Bot: { get: function() { + return true; + } } }), e2.exports = n2; + }, 26151: (e2, t2, i2) => { + const n2 = i2(92140), r2 = i2(57731), o = {}; + function a(e3, t3) { + o[e3] = this, o[t3] = this, a.baseConstructor.apply(this, arguments); + } + r2.extend(a, "PlaybackModeEstimatedWaitTime"), a.getInstance = function(e3) { + return o[e3 || 0] || o[0]; + }, a.about = new a(0, "About"), a.range = new a(1, "Range"), a.exact = new a(2, "Exact"), a.lessThan = new a(3, "LessThan"), Object.defineProperties(a.prototype, { getConfiguration: { value: function(e3, t3) { + return t3?.isForFlowYaml ? n2.lowercaseFirstLetter(this.name) : this; + } } }), e2.exports = a; + }, 26166: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(91981)), r2 = i2(30801); + class o extends n2.default { + constructor(e3) { + super(e3), this._conversationId = this.coreFactory.createArchWrapper(e3.conversationId); + } + get _actionTypeId() { + return r2.getSecuredDataActionType; + } + get conversationId() { + return this._conversationId; + } + get isArchActionGetSecuredData() { + return true; + } + } + t2.default = o; + }, 26232: (e2) => { + function t2(e3, t3) { + return !!e3 && e3.type.getPropertyDefinition(t3); + } + e2.exports = function(e3, i2) { + for (let n2 = 1; n2 < e3.length; n2++) { + if (!i2.canAttachProperty) return null; + const r2 = t2(i2, e3[n2]); + if (!r2) return null; + i2.attachProperty(r2); + } + return i2; + }; + }, 26349: (e2, t2, i2) => { + var n2 = { "./cs-cz/serverErrors.js": [66515, 6515], "./de-de/serverErrors.js": [520, 520], "./en-us/serverErrors.js": [70425], "./es-us/serverErrors.js": [26966, 6966], "./fr-ca/serverErrors.js": [49154, 9154], "./it-it/serverErrors.js": [1368, 1368], "./ja-jp/serverErrors.js": [49425, 9425], "./ko-kr/serverErrors.js": [89943, 9943], "./nb-no/serverErrors.js": [11539, 1539], "./nl-nl/serverErrors.js": [44946, 4946], "./pl-pl/serverErrors.js": [13638, 3638], "./pt-br/serverErrors.js": [62822, 2822], "./ru-ru/serverErrors.js": [50860, 860], "./sv-se/serverErrors.js": [91439, 1439], "./tr-tr/serverErrors.js": [2278, 2278], "./zh-cn/serverErrors.js": [44571, 4571], "./zh-tw/serverErrors.js": [51203, 1203] }; + function r2(e3) { + if (!i2.o(n2, e3)) return Promise.resolve().then(() => { + var t4 = new Error("Cannot find module '" + e3 + "'"); + throw t4.code = "MODULE_NOT_FOUND", t4; + }); + var t3 = n2[e3], r3 = t3[0]; + return Promise.all(t3.slice(1).map(i2.e)).then(() => i2(r3)); + } + r2.keys = () => Object.keys(n2), r2.id = 26349, e2.exports = r2; + }, 26403: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.ParseResult = t2.ParseResultTypes = void 0; + const n2 = i2(31635), r2 = i2(82485), o = n2.__importDefault(i2(73198)); + t2.ParseResultTypes = { error: "error", info: "info", warn: "warn" }; + class a extends r2.VersionItem { + get resultType() { + return this._resultType; + } + set resultType(e3) { + this._resultType = e3; + } + constructor(e3) { + super(), this._maxCallStack = o.default.maxExpressionCallStack, this._maxExpressionSize = o.default.maxExpressionTextLength, this._brackets = [], this._parens = [], this._lineExtents = [], this.consumesSecureData = false, this.properties = [], this.resultExpression = void 0, this.resultHelpTopic = void 0, this.expression = e3, this.languages = e3.languages, this.parentFlow = e3.parentFlow; + } + get className() { + return "ParsedExpression"; + } + } + t2.ParseResult = a; + }, 26404: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.popNumber = t2.popScheduler = t2.popResultSelector = void 0; + var n2 = i2(10281), r2 = i2(68596); + function o(e3) { + return e3[e3.length - 1]; + } + t2.popResultSelector = function(e3) { + return n2.isFunction(o(e3)) ? e3.pop() : void 0; + }, t2.popScheduler = function(e3) { + return r2.isScheduler(o(e3)) ? e3.pop() : void 0; + }, t2.popNumber = function(e3, t3) { + return "number" == typeof o(e3) ? e3.pop() : t3; + }; + }, 26435: function(e2, t2, i2) { + !(function(e3) { + "use strict"; + e3.defineLocale("fr-ca", { months: "janvier_f\xE9vrier_mars_avril_mai_juin_juillet_ao\xFBt_septembre_octobre_novembre_d\xE9cembre".split("_"), monthsShort: "janv._f\xE9vr._mars_avr._mai_juin_juil._ao\xFBt_sept._oct._nov._d\xE9c.".split("_"), monthsParseExact: true, weekdays: "dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"), weekdaysShort: "dim._lun._mar._mer._jeu._ven._sam.".split("_"), weekdaysMin: "di_lu_ma_me_je_ve_sa".split("_"), weekdaysParseExact: true, longDateFormat: { LT: "HH:mm", LTS: "HH:mm:ss", L: "YYYY-MM-DD", LL: "D MMMM YYYY", LLL: "D MMMM YYYY HH:mm", LLLL: "dddd D MMMM YYYY HH:mm" }, calendar: { sameDay: "[Aujourd\u2019hui \xE0] LT", nextDay: "[Demain \xE0] LT", nextWeek: "dddd [\xE0] LT", lastDay: "[Hier \xE0] LT", lastWeek: "dddd [dernier \xE0] LT", sameElse: "L" }, relativeTime: { future: "dans %s", past: "il y a %s", s: "quelques secondes", ss: "%d secondes", m: "une minute", mm: "%d minutes", h: "une heure", hh: "%d heures", d: "un jour", dd: "%d jours", M: "un mois", MM: "%d mois", y: "un an", yy: "%d ans" }, dayOfMonthOrdinalParse: /\d{1,2}(er|e)/, ordinal: function(e4, t3) { + switch (t3) { + default: + case "M": + case "Q": + case "D": + case "DDD": + case "d": + return e4 + (1 === e4 ? "er" : "e"); + case "w": + case "W": + return e4 + (1 === e4 ? "re" : "e"); + } + } }); + })(i2(95093)); + }, 26448: (e2, t2, i2) => { + "use strict"; + var n2; + Object.defineProperty(t2, "__esModule", { value: true }); + const r2 = i2(31635), o = i2(30801), a = r2.__importDefault(i2(65305)); + class s extends a.default { + constructor(e3) { + super(e3), n2.set(this, void 0), r2.__classPrivateFieldSet(this, n2, this.coreFactory.createArchWrapper(e3.detectedIntent), "f"); + } + get _actionTypeId() { + return o.detectIntentActionType; + } + get displayTypeName() { + return this._scriptingName; + } + get isArchActionDetectIntent() { + return true; + } + get detectedIntent() { + return r2.__classPrivateFieldGet(this, n2, "f"); + } + } + n2 = /* @__PURE__ */ new WeakMap(), t2.default = s; + }, 26461: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(20692)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "booleanCollection"; + } + get displayTypeName() { + return "ArchVariableBooleanCollection"; + } + get initialValue() { + return this._initialValue; + } + get isArchVariableBooleanCollection() { + return true; + } + } + t2.default = r2; + }, 26519: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = i2(96618), o = i2(17604), a = n2.__importStar(i2(69453)), s = i2(4333), l = n2.__importStar(i2(81116)), u = i2(14394), d = n2.__importDefault(i2(15244)), c = n2.__importStar(i2(17498)), p = n2.__importStar(i2(53128)), _ = n2.__importStar(i2(10798)), h = i2(19384), m = n2.__importDefault(i2(4648)), g = i2(12179), f = i2(10016), T = i2(2053), y = i2(47957), S = i2(1115); + class A extends f.BaseEventHandlingViewModel { + constructor(e3) { + super(e3, T); + } + get className() { + return "ErrorHandlingViewModel"; + } + get helpTopic() { + return g.helpTopics.treeNodes.eventHandling; + } + getConfiguration(e3, t3) { + if (null == t3 ? void 0 : t3.isForFlowYaml) return super.getConfiguration(e3, t3); + super.getConfiguration(e3, t3), e3.errorHandling.queue = this.queue.getConfiguration(e3, t3), e3.errorHandling.menuReference = this.menuReference, e3.errorHandling.taskReference = this.taskReference, e3.errorHandling.stateReference = this.stateReference, e3.errorHandling.menuReferenceName = this.menuReferenceName, e3.errorHandling.taskReferenceName = this.taskReferenceName, e3.errorHandling.stateReferenceName = this.stateReferenceName; + } + get handlingType() { + return super.handlingType; + } + set handlingType(e3) { + super.handlingType = e3, this._config && this._config.errorHandling && (this._updateQueueOutOfService(), S.validateNode(this, true)); + } + get handlingTypes() { + const e3 = p.getHandlingTypesForFlowType(this.parentFlow.type); + return this._updateQueueDescription(e3), e3; + } + get isErrorHandlingNode() { + return true; + } + loadConfiguration(e3) { + super.loadConfiguration(e3), e3.errorHandling.handlingType || (e3.errorHandling.handlingType = this.handlingTypes[0]), this._queue = l.expression(this.parentFlow, this, e3.errorHandling.queue, y.transferPureMatch.queue, u.globalTypes.queue, null, u.globalTypes.queue.createExpressionOptionClass().setAllowEmptyConfig(true).setIninTestingField("queue")), this._config = e3, this._createReferenceProperties(), this._updateQueueOutOfService(); + } + loadErrorSettings(e3) { + this._queue = l.expression(this.parentFlow, this, null, y.transferPureMatch.queue, u.globalTypes.queue, null, u.globalTypes.queue.createExpressionOptionClass().setAllowEmptyConfig(true)), this.queue.update(e3.name, e3.id), this._updateQueueOutOfService(); + } + get queue() { + return this._queue; + } + search(e3) { + switch (this.handlingType) { + case d.default.Queue: + e3.addToQueue(this.queue); + break; + case d.default.Menu: + this._searchReference(e3, this.menuReference, y.menu.label); + break; + case d.default.State: + this._searchReference(e3, this.stateReference, y.state.label); + break; + case d.default.Task: + this._searchReference(e3, this.taskReference, y.task.label); + } + } + updateDependencies() { + this._queue.outOfService || c.registerExpression(this.queue); + } + validate(e3) { + var t3, i3, n3, r3; + if (super.validate(e3), this.handlingType && !(null === (t3 = this.parentFlow.definition) || void 0 === t3 ? void 0 : t3.errorHandlingTypesMap[this.handlingType.value])) e3.addError(this, (0, o.sprintf)(y.customNodes.errorHandling.errorHandlingTypeNotAvailableForFlowType, null === (i3 = this.handlingType) || void 0 === i3 ? void 0 : i3.label, null === (r3 = null === (n3 = this.parentFlow) || void 0 === n3 ? void 0 : n3.definition) || void 0 === r3 ? void 0 : r3.typeDisplayName)); + else switch (this.handlingType) { + case d.default.CompleteSend: + case d.default.Disconnect: + case d.default.EndFlow: + case d.default.EndInQueueState: + case d.default.EndWorkflow: + case d.default.Exit: + case d.default.AbortSend: + break; + case d.default.Queue: + this.queue.validate(e3); + break; + case d.default.Menu: + this.menuProperty.validate(e3); + break; + case d.default.State: + this.stateProperty.validate(e3); + break; + case d.default.Task: + this.taskProperty.validate(e3); + break; + default: + e3.addError(this, (0, o.sprintf)(y.errors.invalidValue, y.customNodes.errorHandling.handling)); + } + } + _destroy() { + super._destroy(), this._queue && this._queue.destroy(); + } + _initializeDesignTime() { + super._initializeDesignTime(), this.menuProperty.initializeDesignTime(), this.stateProperty.initializeDesignTime(), this.taskProperty.initializeDesignTime(), this._queue.initializeDesignTime(); + } + _createReferenceProperties() { + this.menuProperty || (this.menuProperty = new s.ContainerActionProperty(this, {}, "menuReference", "menuReferenceName", y.menu.label, y.menu.noReference, y.menu.invalidReference, true, false, false, false, false, (e3) => { + if (!e3 || !e3.isMenu) return { error: y.menu.invalidReference }; + }), this.stateProperty = new s.ContainerActionProperty(this, {}, "stateReference", "stateReferenceName", y.state.label, y.state.noReference, y.state.invalidReference, false, false, true, false, false, (e3) => e3 && e3.isState ? e3.isStartUpObject ? { warning: y.customNodes.errorHandling.changeStateToFlowStartup } : void 0 : { error: y.state.invalidReference }), this.taskProperty = new s.ContainerActionProperty(this, {}, "taskReference", "taskReferenceName", y.task.label, y.task.noReference, y.task.invalidReference, false, true, false, false, false, (e3) => { + if (!e3 || !e3.isTask || !e3.isTransferable) return { error: y.task.invalidReference }; + })); + } + _searchReference(e3, t3, i3) { + if (t3) { + const n3 = h.flowElementRegistrationService.getItemById(this.parentFlow, t3); + n3 && e3.checkText(this, n3.name, i3); + } + } + _updateQueueDescription(e3) { + const t3 = e3.find((e4) => e4.value === d.default.Queue.value); + if (!t3) return; + const i3 = this.parentFlow.type; + i3 !== r2.flowTypes.flowTypeInQueueEmail && i3 !== r2.flowTypes.flowTypeInQueueShortMessage || !_.isFeatureAvailable(m.default.transferToQueueErrorHandlingAutomate) ? t3.description = void 0 : t3.description = a.errorHandling.transferToQueueDigitalAutomateDescription; + } + _updateQueueOutOfService() { + var e3; + const t3 = this.handlingType && this.handlingType.value === d.default.Queue.value, i3 = !!(null === (e3 = this.parentFlow.definition) || void 0 === e3 ? void 0 : e3.errorHandlingTypesMap[d.default.Queue.value]); + this._queue.outOfService = !(t3 && i3); + } + } + t2.default = A; + }, 26567: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(66872)), r2 = i2(96618); + class o extends n2.default { + constructor(e3) { + super(e3), this._promptSettings = this.coreFactory.createArchWrapper(e3.callPrompts); + } + get _flowType() { + return r2.flowTypes.flowTypeInQueueCall; + } + get displayTypeName() { + return "ArchFlowInQueueCall"; + } + get isArchFlowInQueueCall() { + return true; + } + get settingsInQueueCall() { + return this.coreFactory.createArchWrapper(this._getCoreViewModel().inQueueSettings); + } + get settingsPrompts() { + return this._promptSettings; + } + get startUpObject() { + return this.coreFactory.createArchWrapper(this._coreFlowViewModel.startUpObject); + } + } + t2.default = o; + }, 26569: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.publishLast = void 0; + var n2 = i2(5130), r2 = i2(14359); + t2.publishLast = function() { + return function(e3) { + var t3 = new n2.AsyncSubject(); + return new r2.ConnectableObservable(e3, function() { + return t3; + }); + }; + }; + }, 26680: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.throwError = void 0; + var n2 = i2(48051), r2 = i2(10281); + t2.throwError = function(e3, t3) { + var i3 = r2.isFunction(e3) ? e3 : function() { + return e3; + }, o = function(e4) { + return e4.error(i3()); + }; + return new n2.Observable(t3 ? function(e4) { + return t3.schedule(o, 0, e4); + } : o); + }; + }, 26744: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.pairwise = void 0; + var n2 = i2(65212), r2 = i2(17214); + t2.pairwise = function() { + return n2.operate(function(e3, t3) { + var i3, n3 = false; + e3.subscribe(r2.createOperatorSubscriber(t3, function(e4) { + var r3 = i3; + i3 = e4, n3 && t3.next([r3, e4]), n3 = true; + })); + }); + }; + }, 26749: function(e2, t2, i2) { + "use strict"; + var n2 = this && this.__read || function(e3, t3) { + var i3 = "function" == typeof Symbol && e3[Symbol.iterator]; + if (!i3) return e3; + var n3, r3, o2 = i3.call(e3), a2 = []; + try { + for (; (void 0 === t3 || t3-- > 0) && !(n3 = o2.next()).done; ) a2.push(n3.value); + } catch (e4) { + r3 = { error: e4 }; + } finally { + try { + n3 && !n3.done && (i3 = o2.return) && i3.call(o2); + } finally { + if (r3) throw r3.error; + } + } + return a2; + }, r2 = this && this.__spreadArray || function(e3, t3) { + for (var i3 = 0, n3 = t3.length, r3 = e3.length; i3 < n3; i3++, r3++) e3[r3] = t3[i3]; + return e3; + }; + Object.defineProperty(t2, "__esModule", { value: true }), t2.zip = void 0; + var o = i2(11415), a = i2(65212); + t2.zip = function() { + for (var e3 = [], t3 = 0; t3 < arguments.length; t3++) e3[t3] = arguments[t3]; + return a.operate(function(t4, i3) { + o.zip.apply(void 0, r2([t4], n2(e3))).subscribe(i3); + }); + }; + }, 26847: (e2, t2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.outputIds = void 0, t2.outputIds = { _placeholder: "__PLACE_HOLDER__", active: "__ACTIVE__", addBranch: "__ADD_BRANCH__", canceled: "__CANCELED__", closed: "__CLOSED__", conditionsNotMet: "__CONDITIONS_NOT_MET__", default: "__DEFAULT__", disconnect: "__DISCONNECT__", emergency: "__EMERGENCY__", error: "__ERROR__", event: "__EVENT__", failure: "__FAILURE__", found: "__FOUND__", fake: "__FAKE__", holiday: "__HOLIDAY__", inactive: "__INACTIVE__", knowledge: "__KNOWLEDGE__", loop: "__LOOP__", loopNext: "__LOOP_NEXT__", loopsMax: "__LOOP_MAX__", matchExact: "__MATCH_EXACT__", matchMultiple: "__MATCH_MULTIPLE__", maxNoInputs: "__MAX_NO_INPUTS__", maxNoMatches: "__MAX_NO_MATCHES__", no: "__NO__", noEvent: "__NO_EVENT__", noInput: "__NO_INPUT__", noIntent: "__NO_INTENT__", notFound: "__NOT_FOUND__", open: "__OPEN__", partiallyFound: "__PARTIALLY_FOUND__", processed: "__PROCESSED__", skipResponseCapture: "__SKIP_RESPONSE_CAPTURE__", success: "__SUCCESS__", timeout: "__TIMEOUT__", valid: "__VALID__", invalid: "__INVALID__", voicemail: "__VOICEMAIL__", yes: "__YES__" }; + }, 26872: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.map = void 0; + var n2 = i2(65212), r2 = i2(17214); + t2.map = function(e3, t3) { + return n2.operate(function(i3, n3) { + var o = 0; + i3.subscribe(r2.createOperatorSubscriber(n3, function(i4) { + n3.next(e3.call(t3, i4, o++)); + })); + }); + }; + }, 26920: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.fromEventPattern = void 0; + var n2 = i2(48051), r2 = i2(10281), o = i2(13916); + t2.fromEventPattern = function e3(t3, i3, a) { + return a ? e3(t3, i3).pipe(o.mapOneOrManyArgs(a)) : new n2.Observable(function(e4) { + var n3 = function() { + for (var t4 = [], i4 = 0; i4 < arguments.length; i4++) t4[i4] = arguments[i4]; + return e4.next(1 === t4.length ? t4[0] : t4); + }, o2 = t3(n3); + return r2.isFunction(i3) ? function() { + return i3(n3, o2); + } : void 0; + }); + }; + }, 26928: (e2) => { + e2.exports = { askCommon: { invalidInputReceived: "Th\xF4ng tin \u0111\u1EA7u v\xE0o \u0111\xF3 kh\xF4ng h\u1EE3p l\u1EC7.", noInputReceived: "T\xF4i ch\u01B0a nh\u1EADn \u0111\u01B0\u1EE3c th\xF4ng tin \u0111\u1EA7u v\xE0o n\xE0o." }, askForBoolean: { noInput: 'N\xF3i "c\xF3" n\u1EBFu b\u1EA1n mu\u1ED1n ti\u1EBFp t\u1EE5c ho\u1EB7c "kh\xF4ng" n\u1EBFu b\u1EA1n kh\xF4ng mu\u1ED1n ti\u1EBFp t\u1EE5c.', noMatch: 'Vui l\xF2ng n\xF3i "c\xF3" ho\u1EB7c "kh\xF4ng". B\u1EA1n c\xF3 mu\u1ED1n ti\u1EBFp t\u1EE5c kh\xF4ng?', question: "B\u1EA1n c\xF3 mu\u1ED1n ti\u1EBFp t\u1EE5c kh\xF4ng?", noInputDigitalBot: 'Nh\u1EADp "C\xF3" n\u1EBFu b\u1EA1n mu\u1ED1n ti\u1EBFp t\u1EE5c ho\u1EB7c "Kh\xF4ng" n\u1EBFu b\u1EA1n kh\xF4ng mu\u1ED1n ti\u1EBFp t\u1EE5c.', noMatchDigitalBot: 'Vui l\xF2ng nh\u1EADp "C\xF3" ho\u1EB7c "Kh\xF4ng". B\u1EA1n c\xF3 mu\u1ED1n ti\u1EBFp t\u1EE5c kh\xF4ng?' }, askForIntent: { noInput: 'Ch\u1EC9 c\u1EA7n n\xF3i m\u1ED9t c\xE2u ng\u1EAFn g\u1ECDn m\xF4 t\u1EA3 truy v\u1EA5n c\u1EE7a b\u1EA1n. V\xED d\u1EE5: "Ki\u1EC3m tra s\u1ED1 d\u01B0 t\xE0i kho\u1EA3n c\u1EE7a t\xF4i"', noMatch: "Vui l\xF2ng n\xF3i l\u1EA1i cho t\xF4i bi\u1EBFt b\u1EA1n mu\u1ED1n l\xE0m g\xEC.", question: "B\u1EA1n mu\u1ED1n l\xE0m g\xEC?", noInputDigitalBot: 'Vui l\xF2ng nh\u1EADp m\u1ED9t c\xE2u ng\u1EAFn g\u1ECDn m\xF4 t\u1EA3 truy v\u1EA5n c\u1EE7a b\u1EA1n. V\xED d\u1EE5: "Ki\u1EC3m tra s\u1ED1 d\u01B0 t\xE0i kho\u1EA3n c\u1EE7a t\xF4i"' }, askForSlot: { askFor: "Y\xEAu c\u1EA7u cung c\u1EA5p %1$s", noInput: "Vui l\xF2ng n\xF3i ho\u1EB7c nh\u1EADp (vui l\xF2ng \u0111i\u1EC1n t\xEAn \u0111o\u1EA1n th\xF4ng tin c\u1EE7a b\u1EA1n \u1EDF \u0111\xE2y).", noInputWithSlot: "Vui l\xF2ng n\xF3i ho\u1EB7c nh\u1EADp %1$s.", noMatch: "Vui l\xF2ng cung c\u1EA5p l\u1EA1i cho t\xF4i (vui l\xF2ng \u0111i\u1EC1n t\xEAn \u0111o\u1EA1n th\xF4ng tin c\u1EE7a b\u1EA1n \u1EDF \u0111\xE2y).", noMatchWithSlot: "Vui l\xF2ng cung c\u1EA5p l\u1EA1i cho t\xF4i %1$s.", question: "(Vui l\xF2ng \u0111i\u1EC1n t\xEAn \u0111o\u1EA1n th\xF4ng tin c\u1EE7a b\u1EA1n \u1EDF \u0111\xE2y) l\xE0 g\xEC?", questionWithSlot: "%1$s l\xE0 g\xEC?", pleaseEnterSlotNameHere: "(vui l\xF2ng \u0111i\u1EC1n t\xEAn \u0111o\u1EA1n th\xF4ng tin c\u1EE7a b\u1EA1n \u1EDF \u0111\xE2y)", noInputDigitalBot: "Vui l\xF2ng nh\u1EADp (vui l\xF2ng \u0111i\u1EC1n t\xEAn \u0111o\u1EA1n th\xF4ng tin c\u1EE7a b\u1EA1n \u1EDF \u0111\xE2y).", noInputWithSlotDigitalBot: "Vui l\xF2ng nh\u1EADp %1$s.", continuationPromptWithSlot: "T\xF4i \u0111\xE3 nh\u1EADn \u0111\u01B0\u1EE3c {{Slot.%1$s}} t\xEDnh \u0111\u1EBFn th\u1EDDi \u0111i\u1EC3m n\xE0y, vui l\xF2ng ti\u1EBFp t\u1EE5c." }, askForNextSlot: { noInput: 'N\xF3i "c\xF3" n\u1EBFu b\u1EA1n c\xF3 truy v\u1EA5n kh\xE1c ho\u1EB7c "kh\xF4ng" \u0111\u1EC3 k\u1EBFt th\xFAc cu\u1ED9c g\u1ECDi.', noMatch: 'N\xF3i "c\xF3" n\u1EBFu b\u1EA1n c\xF3 truy v\u1EA5n kh\xE1c ho\u1EB7c "kh\xF4ng" \u0111\u1EC3 k\u1EBFt th\xFAc phi\xEAn.', question: "T\xF4i c\xF3 th\u1EC3 gi\xFAp g\xEC kh\xE1c cho b\u1EA1n kh\xF4ng?", noInputDigitalBot: 'Nh\u1EADp "C\xF3" n\u1EBFu b\u1EA1n c\xF3 truy v\u1EA5n kh\xE1c ho\u1EB7c "Kh\xF4ng" \u0111\u1EC3 k\u1EBFt th\xFAc phi\xEAn.', noMatchDigitalBot: 'Nh\u1EADp "C\xF3" n\u1EBFu b\u1EA1n c\xF3 truy v\u1EA5n kh\xE1c ho\u1EB7c "Kh\xF4ng" \u0111\u1EC3 k\u1EBFt th\xFAc phi\xEAn.' }, askForPayment: { noInputDigitalBot: "Vui l\xF2ng cung c\u1EA5p th\xF4ng tin thanh to\xE1n c\u1EE7a b\u1EA1n \u0111\u1EC3 ti\u1EBFp t\u1EE5c.", noMatchDigitalBot: "T\xF4i kh\xF4ng hi\u1EC3u ph\u1EA3n h\u1ED3i c\u1EE7a b\u1EA1n. Vui l\xF2ng th\u1EED l\u1EA1i." }, askForAuthentication: { noInputDigitalBot: "Vui l\xF2ng cung c\u1EA5p th\xF4ng tin x\xE1c th\u1EF1c c\u1EE7a b\u1EA1n \u0111\u1EC3 ti\u1EBFp t\u1EE5c.", noMatchDigitalBot: "T\xF4i kh\xF4ng hi\u1EC3u ph\u1EA3n h\u1ED3i c\u1EE7a b\u1EA1n. Vui l\xF2ng th\u1EED l\u1EA1i." }, askSurveyQuestion: { notApplicable: "Kh\xF4ng \xE1p d\u1EE5ng", surveyAnswerOptionSequence: "Nh\u1EA5n %1$s cho '%2$s'.", surveyAnswerNotApplicableSequence: "Nh\u1EA5n d\u1EA5u sao cho Kh\xF4ng \xE1p d\u1EE5ng.", surveyAnswerNotApplicableWithQuestionSequence: "%1$s. Nh\u1EA5n d\u1EA5u sao cho Kh\xF4ng \xE1p d\u1EE5ng.", voiceSurveyNoInputText: "Vui l\xF2ng tr\u1EA3 l\u1EDDi c\xE2u h\u1ECFi.", voiceSurveyNoMatchText: "T\xF4i ch\u01B0a hi\u1EC3u \xFD b\u1EA1n." }, commonModule: { exitCommonModule: "Tho\xE1t M\xF4-\u0111un chung" }, form: { noInputDigitalBot: "Vui l\xF2ng ho\xE0n th\xE0nh bi\u1EC3u m\u1EABu \u0111\u1EC3 ti\u1EBFp t\u1EE5c.", noMatchDigitalBot: "Vui l\xF2ng ho\xE0n th\xE0nh bi\u1EC3u m\u1EABu \u0111\u1EC3 ti\u1EBFp t\u1EE5c." }, messagingTemplate: { noInputDigitalBot: "Vui l\xF2ng ch\u1ECDn m\u1ED9t trong c\xE1c t\xF9y ch\u1ECDn s\u1EB5n c\xF3.", noMatchDigitalBot: "Vui l\xF2ng ch\u1ECDn m\u1ED9t trong c\xE1c t\xF9y ch\u1ECDn s\u1EB5n c\xF3." }, knowledgeSettings: { knowledgeAnswerHighlightFlowProgressionDefault: "Ti\u1EBFp t\u1EE5c", knowledgeAnswerHighlightFullArticleDefault: "Xem to\xE0n b\u1ED9 b\xE0i vi\u1EBFt", knowledgeInitialResponseMulti: "\u0110\u1EC3 gi\xFAp t\xF4i hi\u1EC3u r\xF5 m\u1EE5c ti\xEAu c\u1EE7a b\u1EA1n, vui l\xF2ng ch\u1ECDn m\u1ED9t s\u1ED1 t\u1EEB danh s\xE1ch sau:", knowledgeInitialResponseMultiRetry: "Vui l\xF2ng ch\u1ECDn m\u1ED9t s\u1ED1, v\xED d\u1EE5 nh\u01B0 '1'.\nSau \u0111\xE2y l\xE0 danh s\xE1ch c\xE1c t\xF9y ch\u1ECDn:", knowledgeNoMatch: "Kh\xF4ng m\u1EE5c n\xE0o trong s\u1ED1 n\xE0y", knowledgeConfirmation: "N\u1ED9i dung n\xE0y c\xF3 tr\u1EA3 l\u1EDDi \u0111\u01B0\u1EE3c c\xE2u h\u1ECFi c\u1EE7a b\u1EA1n kh\xF4ng?", knowledgeFollowup: "T\xF4i hy v\u1ECDng m\xECnh \u0111\xE3 tr\u1EA3 l\u1EDDi \u0111\u01B0\u1EE3c c\xE2u h\u1ECFi c\u1EE7a b\u1EA1n. B\u1EA1n c\xF3 th\u1EC3 h\u1ECFi b\u1EA5t c\u1EE9 \u0111i\u1EC1u g\xEC kh\xE1c m\xE0 b\u1EA1n mu\u1ED1n bi\u1EBFt." }, noOverlay: { intent: { intentConfirmationStr1: "T\xF4i ngh\u0129 b\u1EA1n mu\u1ED1n", intentConfirmationStr2: "C\xF3 \u0111\xFAng v\u1EADy kh\xF4ng?" }, youSaid: { youSaidConfirmationStr1: "B\u1EA1n \u0111\xE3 n\xF3i", youSaidConfirmationStr2: "C\xF3 \u0111\xFAng v\u1EADy kh\xF4ng?", youSaidConfirmationStr1DigitalBot: "B\u1EA1n \u0111\xE3 nh\u1EADp" }, noInput: { noInputStr1: "Vui l\xF2ng n\xF3i ho\u1EB7c nh\u1EADp", noInputStr1DigitalBot: "Vui l\xF2ng nh\u1EADp" }, noMatch: { noMatchStr1: "Vui l\xF2ng cung c\u1EA5p cho t\xF4i" }, whatIs: { whatIsQuestionStr1: "\u0110\u1ECBnh ngh\u0129a c\u1EE7a", whatIsQuestionStr2: "l\xE0 g\xEC?" }, iGotContinuation: { iGotContinuationStr1: "T\xF4i \u0111\xE3 nh\u1EADn \u0111\u01B0\u1EE3c", iGotContinuationStr2: "t\xEDnh \u0111\u1EBFn th\u1EDDi \u0111i\u1EC3m n\xE0y, vui l\xF2ng ti\u1EBFp t\u1EE5c." } }, defaultCallFlowOne: "Lu\u1ED3ng cu\u1ED9c g\u1ECDi m\u1EB7c \u0111\u1ECBnh", errorHandlingAgentEscalationConfirmation: "B\u1EA1n mu\u1ED1n n\xF3i chuy\u1EC7n v\u1EDBi t\u01B0 v\u1EA5n vi\xEAn. C\xF3 \u0111\xFAng v\u1EADy kh\xF4ng?", errorHandlingAgentEscalationHandover: "Vui l\xF2ng \u0111\u1EE3i m\u1ED9t l\xE1t, t\xF4i s\u1EBD k\u1EBFt n\u1ED1i b\u1EA1n v\u1EDBi m\u1ED9t t\u01B0 v\u1EA5n vi\xEAn.", errorHandlingErrorEventHandover: "R\u1EA5t ti\u1EBFc, \u0111\xE3 x\u1EA3y ra l\u1ED7i. Vui l\xF2ng \u0111\u1EE3i m\u1ED9t l\xE1t trong khi t\xF4i k\u1EBFt n\u1ED1i b\u1EA1n v\u1EDBi m\u1ED9t t\u01B0 v\u1EA5n vi\xEAn c\xF3 th\u1EC3 tr\u1EE3 gi\xFAp cho b\u1EA1n.", errorHandlingErrorEventHandoverVoiceSurvey: "R\u1EA5t ti\u1EBFc, \u0111\xE3 x\u1EA3y ra l\u1ED7i. T\u1EA1m bi\u1EC7t b\u1EA1n.", errorHandlingRecognitionEventHandover: "Xin l\u1ED7i, t\xF4i ch\u01B0a hi\u1EC3u \xFD b\u1EA1n. Vui l\xF2ng \u0111\u1EE3i m\u1ED9t l\xE1t trong khi t\xF4i k\u1EBFt n\u1ED1i b\u1EA1n v\u1EDBi m\u1ED9t t\u01B0 v\u1EA5n vi\xEAn c\xF3 th\u1EC3 tr\u1EE3 gi\xFAp cho b\u1EA1n.", errorHandlingRecognitionEventHandoverVoiceSurvey: "Xin l\u1ED7i, t\xF4i ch\u01B0a hi\u1EC3u \xFD b\u1EA1n. T\u1EA1m bi\u1EC7t b\u1EA1n.", errorHandlingTTS: "R\u1EA5t ti\u1EBFc, \u0111\xE3 x\u1EA3y ra l\u1ED7i. Vui l\xF2ng th\u1EED g\u1ECDi l\u1EA1i.", initialGreetingTTS: "Xin ch\xE0o, \u0111\xE2y l\xE0 l\u1EDDi ch\xE0o \u0111\u1EA7u ti\xEAn.", initialState: "Tr\u1EA1ng th\xE1i ban \u0111\u1EA7u", initialBotState: "Bot m\u1EB7c \u0111\u1ECBnh", initialDigitalBotState: "L\u1EDDi ch\xE0o \u0111\u1EA7u ti\xEAn", initialSurveyBotState: "Bot kh\u1EA3o s\xE1t", intentConfirmation: "T\xF4i ngh\u0129 b\u1EA1n mu\u1ED1n %1$s, c\xF3 \u0111\xFAng v\u1EADy kh\xF4ng?", mainMenu: "Menu ch\xEDnh", mainMenuTTS: "B\u1EA1n \u0111ang \u1EDF Menu ch\xEDnh, vui l\xF2ng nh\u1EA5n ph\xEDm 9 \u0111\u1EC3 ng\u1EAFt k\u1EBFt n\u1ED1i", mainTask: "Nhi\u1EC7m v\u1EE5", settingsConfirmationNoInputApology: "Xin l\u1ED7i, t\xF4i ch\u01B0a nghe th\u1EA5y b\u1EA1n. Vui l\xF2ng n\xF3i c\xF3 ho\u1EB7c kh\xF4ng.", settingsConfirmationNoInputApologyDigitalBot: 'Xin l\u1ED7i, t\xF4i ch\u01B0a nh\u1EADn \u0111\u01B0\u1EE3c th\xF4ng tin \u0111\u1EA7u v\xE0o n\xE0o t\u1EEB b\u1EA1n. Vui l\xF2ng nh\u1EADp "C\xF3" ho\u1EB7c "Kh\xF4ng".', settingsConfirmationNoMatchApology: "Xin l\u1ED7i, vui l\xF2ng n\xF3i c\xF3 ho\u1EB7c kh\xF4ng.", settingsConfirmationNoMatchApologyDigitalBot: 'Xin l\u1ED7i, vui l\xF2ng nh\u1EADp "C\xF3" ho\u1EB7c "Kh\xF4ng".', settingsNoInputApology: "Xin l\u1ED7i, t\xF4i ch\u01B0a nghe th\u1EA5y b\u1EA1n.", settingsNoInputApologyDigitalBot: "Xin l\u1ED7i, t\xF4i ch\u01B0a nh\u1EADn \u0111\u01B0\u1EE3c th\xF4ng tin \u0111\u1EA7u v\xE0o n\xE0o t\u1EEB b\u1EA1n.", settingsEndOfSessionMessageDigitalBot: "\u0110\xE3 kh\xE1 l\xE2u r\u1ED3i t\xF4i ch\u01B0a nh\u1EADn \u0111\u01B0\u1EE3c ph\u1EA3n h\u1ED3i c\u1EE7a b\u1EA1n n\xEAn t\xF4i s\u1EBD \u0111\xF3ng cu\u1ED9c tr\xF2 chuy\u1EC7n n\xE0y. Vui l\xF2ng quay l\u1EA1i n\u1EBFu b\u1EA1n v\u1EABn c\u1EA7n t\xF4i tr\u1EE3 gi\xFAp. C\u1EA3m \u01A1n b\u1EA1n.", settingsNoMatchApology: "Xin l\u1ED7i.", settingsNoToConfirmationApology: "T\xF4i nh\u1EA7m.", periodicStateName: "Tr\u1EA1ng th\xE1i theo \u0111\u1ECBnh k\u1EF3" }; + }, 26940: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(84655)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "lineItem"; + } + get displayTypeName() { + return "ArchVariableLineItem"; + } + get initialValue() { + return this._initialValue; + } + get isArchVariableLineItem() { + return true; + } + } + t2.default = r2; + }, 26954: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.ExpressionTypeUserOptions = void 0; + const n2 = i2(71056); + class r2 extends n2.ExpressionTypeNetworkObjectOptions { + static create(e3, t3) { + return new this(t3).invokeOptionsCallback(e3); + } + constructor(e3) { + super(e3); + } + get className() { + return "ExpressionTypeUserOptions"; + } + get isExpressionTypeUserOptions() { + return true; + } + } + t2.ExpressionTypeUserOptions = r2; + }, 27059: (e2, t2, i2) => { + const n2 = i2(92140), r2 = i2(78446), o = i2(59957), a = i2(13126), s = i2(62829); + class l extends r2 { + constructor(e3) { + super(e3), Object.defineProperties(this, { _clipboardContentType: { value: a.unknown, writable: true, enumerable: false }, _dependentVariableViewModels: { value: {}, writable: true, enumerable: false }, _nodeInformationId: { writable: true, enumerable: false }, _originalObjectInfo: { writable: true, enumerable: false } }); + } + static create(e3, t3) { + if (!n2.isObject(e3)) return null; + let i3; + if (e3.isBaseAction) i3 = a.action; + else if (e3.isMenu) i3 = a.menu; + else if (e3.isMenuChoice) i3 = a.menuChoice; + else if (e3.isState) i3 = a.state; + else { + if (!e3.isTask) return null; + i3 = a.task; + } + const r3 = new l(t3); + return r3._clipboardContentType = i3, r3._nodeInformationId = e3.info ? e3.info.typeId : "", r3._originalObjectInfo = new o(), r3._originalObjectInfo.configure(e3.parentFlow, e3), e3.addClipboardDependencies(r3), r3; + } + get nodeInformation() { + return s.getInfo(this._nodeInformationId); + } + canPaste(e3) { + return this.createClipboardResultFailureCanPasteGeneric("Cannot paste a dependent variable processor."); + } + checkCanPasteClipboardContextWithDetails(e3) { + return this.createClipboardResultFailureCanPasteGeneric("Cannot paste a dependent variable processor."); + } + get dependentVariables() { + return n2.values(this._dependentVariableViewModels); + } + get className() { + return "ClipboardProcessorDependentVariables"; + } + get clipboardContentType() { + return this._clipboardContentType; + } + copyCutAddDependencyFlowUiMetaData(e3, t3, i3) { + } + copyCutAddDependencyVariable(e3, t3) { + !e3 || !e3.isVariableViewModel || e3.isPromptContainer || e3.isSlotVariable || e3.isSystemVariable || this.isVariableScopedToClipboardContent(e3) || this._dependentVariableViewModels[e3.id] || (this.log(`Adding dependent variable ${this._getNameAndIdStr(e3)} to dependent variable map.`), this._dependentVariableViewModels[e3.id] = e3); + } + copyCutAddDependencyCustomType(e3) { + } + addOldIdToOldNameMapping(e3, t3) { + } + resolveOldIdToOldName(e3) { + } + copyCutProcessActionViewModel(e3) { + } + copyCutProcessMenuChoiceViewModel(e3) { + } + copyCutProcessMenuViewModel(e3) { + } + copyCutProcessStateViewModel(e3) { + } + copyCutProcessTaskViewModel(e3) { + } + copyCutResetSupportedFlowTypeFilter() { + } + copyCutSetSupportedFlowTypeFilter(e3) { + } + get isBaseClipboardContentViewModel() { + return true; + } + get logHeader() { + return this.originalObjectLogStr; + } + get name() { + return ""; + } + set name(e3) { + } + get originalObjectInfo() { + return this._originalObjectInfo; + } + get originalObjectId() { + return this.originalObjectInfo.objectId; + } + get originalObjectFlowId() { + return this.originalObjectInfo.flowId; + } + get originalObjectLogStr() { + return this.className + ", content_type: '" + this.clipboardContentType + "', orig_name: '" + (this.originalObjectInfo.objectName ? this.originalObjectInfo.objectName : "") + "', orig_id: '" + (this.originalObjectInfo.objectId ? this.originalObjectInfo.objectId : "") + "', orig_flowName: '" + (this.originalObjectInfo.flowDisplayName ? this.originalObjectInfo.flowDisplayName : "") + "'"; + } + get originalObjectLogStrFull() { + return this.className + ", content_type: '" + this.clipboardContentType + "', orig_name: '" + (this.originalObjectInfo.objectName ? this.originalObjectInfo.objectName : "") + "', orig_id: '" + (this.originalObjectInfo.objectId ? this.originalObjectInfo.objectId : "") + "', orig_flowName: '" + (this.originalObjectInfo.flowDisplayName ? this.originalObjectInfo.flowDisplayName : "") + "', orig_flowId: '" + (this.originalObjectInfo.flowId ? this.originalObjectInfo.flowId : "") + "', content_id: '" + this.id + "'"; + } + paste(e3) { + return this.createClipboardResultFailureCanPasteGeneric("Cannot paste a dependent variable processor."); + } + get pastedMenuOrTaskOrActionViewModel() { + } + set pastedMenuOrTaskOrActionViewModel(e3) { + } + _performDestroy() { + this._dependentVariableViewModels = {}, super._performDestroy(); + } + } + e2.exports = l; + }, 27069: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.ArchFactoryMenus = void 0; + const n2 = i2(31635), r2 = n2.__importDefault(i2(92140)), o = n2.__importDefault(i2(84783)), a = n2.__importDefault(i2(38689)), s = i2(30801), l = i2(30801), u = i2(30801), d = i2(30801), c = i2(30801), p = i2(30801), _ = i2(30801), h = i2(30801), m = i2(30801), g = i2(30801), f = i2(30801), T = i2(30801), y = i2(30801), S = i2(30801), A = i2(30801), N = i2(30801); + function O(e3) { + return e3._coreMenuViewModel; + } + class I extends o.default { + get displayTypeName() { + return "ArchFactoryMenus"; + } + get logStr() { + return this._createLogStrFromParts(["ArchFactoryMenus"]); + } + get isArchFactoryMenus() { + return true; + } + createArchMenuChoice(e3, t3, i3, n3, o2, s2) { + this._checkItem(this._infoParm("archParentMenuOrSubMenu", s2), !e3 || !e3.isArchMenu && !e3.isArchMenuSubMenu, "you can only add a sub menu or menu action to an ArchMenu or ArchMenuSubMenu"), this._verifyFlowSupportsMenus(this._infoVal("archParentMenuOrSubMenu.parentFlow", s2), e3.parentFlow), a.default.validateActionDefId(o2, O(e3).parentFlow), this._checkItemIsValidLiteralBool(this._infoParm("dtmfIsGlobal", s2), n3, true); + const l2 = O(e3).addChild(o2), u2 = a.default.createArchMenuChoice(l2); + return t3 && (u2.name = t3), r2.default.isUndefined(i3) || (u2.dtmf = i3), n3 && (r2.default.isUndefined(i3) && this.logErrorAndThrow("when creating a menu choice, you should not attempt to set dtmf as global when there is no dtmf specified"), u2.dtmfIsGlobal = n3), this.logNote("adding menu " + u2.logStr + " to " + e3.logStr), u2; + } + createArchTransferMenuChoice(e3, t3, i3, n3, o2, a2, s2) { + this._checkItemIsValidLiteralString(this._infoParm("preTransferTTS", s2), o2, true); + const l2 = this.createArchMenuChoice(e3, t3, i3, n3, a2, s2); + return r2.default.isString(o2) && l2._archAction.preTransferAudio.setDefaultCaseLiteralTTS(o2), l2; + } + _verifyFlowSupportsMenus(e3, t3) { + this._checkItem(e3, !t3 || !t3.isArchBaseFlow, "you must pass in a valid ArchBaseFlow instance."), this._checkItem(e3, !t3.definition.supportsMenusReusable, `the flow type '${t3.flowType}' does not support menus.`); + } + addMenu(e3, t3, i3, n3) { + const o2 = this._infoParm("archBaseFlow", "addMenu"); + this._verifyFlowSupportsMenus(o2, e3), this._checkItemIsValidLiteralString(this._infoParm("name", "addMenu"), t3, true), this._checkItemIsValidLiteralString(this._infoParm("menuAudioTTS", "addMenu"), i3, true), this._checkItemIsValidLiteralBool(this._infoParm("setAsStartingMenu", "addMenu"), n3, true), n3 && this._checkItem(o2, !e3.definition.startUpObjectCanBeMenu, `a menu cannot be the startup object for the flow type '${e3.flowType}'.`); + const s2 = e3._getCoreViewModel().createMenu(t3), l2 = a.default.createArchMenu(s2); + return r2.default.isString(t3) && t3.length && (l2.name = t3), n3 && e3.setStartingMenu(l2), r2.default.isString(i3) && l2.audio.setDefaultCaseLiteralTTS(i3), l2; + } + addMenuDialByExtension(e3, t3, i3, n3, o2, a2, l2, u2) { + this._checkItemIsValidLiteralInt(this._infoParm("repromptCount", "addMenuDialByExtension"), a2, true), this._checkItemIsValidLiteralString(this._infoParm("repromptTTS", "addMenuDialByExtension"), o2, true), this._checkItemIsValidLiteralString(this._infoParm("interDigitTimeoutExpression", "addMenuDialByExtension"), l2, true); + const d2 = this.createArchMenuChoice(e3, t3, i3, u2, s.dialExtensionActionType, "addMenuDialByExtension"); + return n3 && d2.actionDialByExtension.extensionVariable.setVariable(n3), r2.default.isString(o2) && d2.actionDialByExtension.repromptAudio.setDefaultCaseLiteralTTS(o2), void 0 !== a2 && (this._checkItemIsValidLiteralInt(this._infoParm("repromptCount", "addMenuDialByExtension"), a2), d2.actionDialByExtension.repromptCount.setLiteralInt(a2)), r2.default.isString(l2) && d2.actionDialByExtension.interDigitTimeout.setExpression(l2), d2; + } + addMenuDisconnect(e3, t3, i3, n3) { + return this.createArchMenuChoice(e3, t3, i3, n3, l.disconnectActionType, "addMenuDisconnect"); + } + addMenuJumpToMenu(e3, t3, i3, n3, r3) { + const o2 = this.createArchMenuChoice(e3, t3, i3, r3, T.transferMenuActionType, "addMenuJumpToMenu"); + return n3 && (o2.actionJumpToMenu.targetMenu = n3), o2; + } + addMenuJumpToTask(e3, t3, i3, n3, r3) { + const o2 = this.createArchMenuChoice(e3, t3, i3, r3, S.transferTaskActionType, "addMenuJumpToTask"); + return n3 && (o2.actionJumpToTask.targetTask = n3), o2; + } + addMenuPreviousMenu(e3, t3, i3, n3) { + return this.createArchMenuChoice(e3, t3, i3, n3, d.previousMenuActionType, "addMenuPreviousMenu"); + } + addMenuRepeatMenu(e3, t3, i3, n3) { + return this.createArchMenuChoice(e3, t3, i3, n3, c.repeatMenuActionType, "addMenuRepeatMenu"); + } + addMenuReturnToAgent(e3, t3, i3, n3) { + return this.createArchMenuChoice(e3, t3, i3, n3, p.returnToAgentActionType, "addMenuReturnToAgent"); + } + addMenuSubMenu(e3, t3, i3, n3, o2) { + this._checkItemIsValidLiteralString(this._infoParm("subMenuTTS", "addMenuSubMenu"), n3, true); + const a2 = this.createArchMenuChoice(e3, t3, i3, o2, u.menuActionActionType, "addMenuSubMenu"); + return r2.default.isString(n3) && a2.audio.setDefaultCaseLiteralTTS(n3), a2; + } + addMenuTask(e3, t3, i3, n3) { + return this.createArchMenuChoice(e3, t3, i3, n3, _.taskActionActionType, "addMenuTask"); + } + addMenuTransferToAcd(e3, t3, i3, n3, r3) { + return this.createArchTransferMenuChoice(e3, t3, i3, r3, n3, y.transferPureMatchActionType, "addMenuTransferToAcd"); + } + addMenuTransferToFlow(e3, t3, i3, n3, r3) { + return this.createArchTransferMenuChoice(e3, t3, i3, r3, n3, m.transferFlowActionType, "addMenuTransferToFlow"); + } + addMenuTransferToFlowSecure(e3, t3, i3, n3, r3) { + return this.createArchTransferMenuChoice(e3, t3, i3, r3, n3, g.transferFlowSecureActionType, "addMenuTransferToFlowSecure"); + } + addMenuTransferToGroup(e3, t3, i3, n3, r3) { + return this.createArchTransferMenuChoice(e3, t3, i3, r3, n3, f.transferGroupActionType, "addMenuTransferToGroup"); + } + addMenuTransferToNumber(e3, t3, i3, n3, r3) { + return this.createArchTransferMenuChoice(e3, t3, i3, r3, n3, h.transferExternalActionType, "addMenuTransferToNumber"); + } + addMenuTransferToUser(e3, t3, i3, n3, r3) { + return this.createArchTransferMenuChoice(e3, t3, i3, r3, n3, A.transferUserActionType, "addMenuTransferToUser"); + } + addMenuTransferToVoicemail(e3, t3, i3, n3, r3) { + return this.createArchTransferMenuChoice(e3, t3, i3, r3, n3, N.transferVoicemailActionType, "addMenuTransferToVoicemail"); + } + addMenuChoiceFromDefinition(e3, t3, i3, n3, r3, o2) { + const a2 = this._infoParm("archDefinitionMenuChoice", "addMenuChoiceFromDefinition"); + return this._checkItem(a2, !e3 || !e3.isArchDefinitionMenu, "you must pass in a valid ArchBaseMenuChoice instance."), this._checkItem(a2, !e3.canCreateFromDefinition, `instances of '${e3.label}' menu choices are not creatable from a menu definition. The menu definition has a canCreateFromDefinition property you can check before trying to create an instance of it.`), this.createArchMenuChoice(t3, i3, n3, o2, e3.actionNodeInformation.typeId, "addMenuChoiceFromDefinition"); + } + } + t2.ArchFactoryMenus = I, t2.default = new I(); + }, 27099: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.__localFeatures = void 0, t2.isEnabled = p, t2.isDisabled = function(e3) { + return !p(e3); + }; + const n2 = i2(31635), r2 = n2.__importDefault(i2(92140)), o = (n2.__importStar(i2(81858)), n2.__importStar(i2(24032))), a = n2.__importStar(i2(74359)), s = i2(24409), l = o.getTopic("featureToggles"), u = {}, d = {}; + function c(e3) { + r2.default.each(u, (e4, t4) => { + true === e4 && delete u[t4]; + }), r2.default.each(e3, (e4, t4) => { + !(function(e5, t5) { + u[e5] = t5; + })(t4, e4); + }); + const t3 = r2.default.filter(r2.default.keys(u), (e4) => u[e4]); + l.infoWithObject({ features: t3 || [] }, "enabled features"), a.setFeatureTogglesLoaded(u); + } + function p(e3) { + return u[e3]; + } + d.archExpressionBuilders = true, d.archExpressionNoConfigError = true, d.archFuncToAudioTTSWithLang = true, d.archPhoneNumberPhase2 = true, d.archRenumber = true, d.archShortcuts = true, t2.__localFeatures = d, Promise.all([a.loaded, a.getAuthenticatedPromise()]).then(() => { + s.featureToggles({ feature: r2.default.keys(d) }).then((e3) => { + c(e3 || {}); + }).catch((e3) => { + l.errorPromise(e3, "failed to get feature toggles"), c({}); + }); + }); + }, 27183: (e2, t2, i2) => { + function n2() { + n2.baseConstructor.apply(this, arguments); + } + i2(11475).extend(n2, "LanguageContextEnumVariable", true), e2.exports = { LanguageContextEnumVariable: n2 }; + }, 27197: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.SkillValuePairs = void 0; + const n2 = i2(31635), r2 = i2(17604), o = n2.__importStar(i2(36781)), a = n2.__importStar(i2(58380)), s = n2.__importStar(i2(1115)), l = n2.__importStar(i2(81116)), u = i2(14394), d = i2(44703), c = n2.__importDefault(i2(11877)), p = i2(7401), _ = i2(47957), h = i2(67641); + class m extends d.ExpressionContainer { + constructor(e3, t3, i3) { + super(e3.parentFlow, e3, t3, null, i3), this._initialize(); + } + _validateValue(e3, t3, i3) { + if (t3.validate(e3) && t3.isLiteralMode) { + const n3 = parseInt(t3.text, 10); + if (n3 < 0 || n3 > 10) { + const t4 = _.transferPureMatch.invalidProficiency; + e3.addError(this.parent, (0, r2.sprintf)(t4, i3 + 1)); + } + } + } + addItem(e3) { + this.items.push(e3), this.model.push(e3.model), e3.outOfService = this.outOfService, e3.initializeDesignTime(), this.expandNewItem(e3), this.orderChanged(); + } + createItem(e3) { + (e3 = e3 || new h()).skill = e3.skill || new p(); + const t3 = l.expression(this.parentFlow, this.parent, e3.skill, this.getSkillLabel(this.items.length), u.globalTypes.skill, null, u.globalTypes.skill.createExpressionOptionClass().setExtraRealtimeValidationEventSinkName(o.skillValueChanged)), i3 = new c.default(e3, t3), n3 = a.createEventSinkObject("skillValueChanged", i3.skill, () => { + s.validateItem(this.parent, false, true); + }); + return a.registerEventSinkForEventEmitter(i3.skill.id, n3), i3; + } + getExpressions() { + const e3 = []; + return this.items.forEach((t3) => { + e3.push(...t3.skill.getExpressions()); + }), e3; + } + getSkillLabel(e3) { + return (0, r2.sprintf)(_.transferPureMatch.skill, e3 + 1); + } + get isSkillValuePairs() { + return true; + } + orderChanged() { + this.items.forEach((e3, t3) => { + e3.skill.label = this.getSkillLabel(t3); + }), super.orderChanged(); + } + validate(e3) { + let t3; + this._extraValidator && (t3 = [], this.items.forEach((e4) => { + e4.skill.isLiteralMode && t3.push(e4.skill); + })), this.items.forEach((i3) => { + i3.skill.validate(e3) && i3.skill.isLiteralMode && t3 && this._extraValidator(e3, i3.skill, t3); + }); + } + get className() { + return "SkillValuePairs"; + } + } + t2.SkillValuePairs = m; + }, 27203: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importDefault(i2(4648)), o = i2(26847), a = i2(55909), s = i2(33951), l = n2.__importDefault(i2(92140)), u = i2(47957), d = new class { + constructor() { + this.outputIdsToLabels = {}, this.outputIdsToLabels[o.outputIds.active] = u.generic.branches.active, this.outputIdsToLabels[o.outputIds.canceled] = u.generic.branches.canceled, this.outputIdsToLabels[o.outputIds.closed] = u.generic.branches.closed, this.outputIdsToLabels[o.outputIds.conditionsNotMet] = u.voiceSurvey.voiceSurveyConditionsNotMetLabel, this.outputIdsToLabels[o.outputIds.default] = u.switch.default, this.outputIdsToLabels[o.outputIds.emergency] = u.generic.branches.emergency, this.outputIdsToLabels[o.outputIds.error] = u.generic.branches.error, this.outputIdsToLabels[o.outputIds.event] = u.generic.branches.event, this.outputIdsToLabels[o.outputIds.failure] = u.generic.branches.failure, this.outputIdsToLabels[o.outputIds.found] = u.generic.branches.found, this.outputIdsToLabels[o.outputIds.fake] = u.generic.branches.success, this.outputIdsToLabels[o.outputIds.holiday] = u.generic.branches.holiday, this.outputIdsToLabels[o.outputIds.inactive] = u.generic.branches.inactive, this.outputIdsToLabels[o.outputIds.knowledge] = u.generic.branches.knowledgeDialogEngine, this.outputIdsToLabels[o.outputIds.loop] = u.actions.loop, this.outputIdsToLabels[o.outputIds.loopNext] = u.generic.branches.loopNext, this.outputIdsToLabels[o.outputIds.loopsMax] = u.generic.branches.loopsMax, this.outputIdsToLabels[o.outputIds.matchExact] = u.generic.branches.matchExact, this.outputIdsToLabels[o.outputIds.matchMultiple] = u.generic.branches.matchMultiple, this.outputIdsToLabels[o.outputIds.maxNoInputs] = u.generic.branches.maxNoInputsBranch, this.outputIdsToLabels[o.outputIds.maxNoMatches] = u.generic.branches.maxNoMatchesBranch, this.outputIdsToLabels[o.outputIds.no] = u.generic.no, this.outputIdsToLabels[o.outputIds.noEvent] = u.generic.branches.noEvent, this.outputIdsToLabels[o.outputIds.noInput] = u.generic.branches.noInputBranch, this.outputIdsToLabels[o.outputIds.noIntent] = u.generic.branches.noIntent, this.outputIdsToLabels[o.outputIds.notFound] = u.generic.branches.notFound, this.outputIdsToLabels[o.outputIds.open] = u.generic.branches.open, this.outputIdsToLabels[o.outputIds.partiallyFound] = u.generic.branches.partiallyFound, this.outputIdsToLabels[o.outputIds.processed] = u.generic.branches.processed, this.outputIdsToLabels[o.outputIds.skipResponseCapture] = u.generic.branches.skipResponseCapture, this.outputIdsToLabels[o.outputIds.success] = u.generic.branches.success, this.outputIdsToLabels[o.outputIds.timeout] = u.generic.branches.timeout, this.outputIdsToLabels[o.outputIds.valid] = u.generic.branches.valid, this.outputIdsToLabels[o.outputIds.invalid] = u.generic.branches.invalid, this.outputIdsToLabels[o.outputIds.voicemail] = u.generic.branches.voicemail, this.outputIdsToLabels[o.outputIds.yes] = u.generic.yes; + } + get className() { + return "BranchInfos"; + } + get active() { + return { canTerminate: true, isActionInternal: false, label: this.outputIdsToLabels[o.outputIds.active], outputId: o.outputIds.active, required: true }; + } + get activeInactive() { + return [this.active, this.inactive]; + } + get canceled() { + return { canTerminate: true, isActionInternal: false, label: this.outputIdsToLabels[o.outputIds.canceled], outputId: o.outputIds.canceled, required: true }; + } + get closed() { + return { canTerminate: true, isActionInternal: false, label: this.outputIdsToLabels[o.outputIds.closed], outputId: o.outputIds.closed, required: true }; + } + get conditionsNotMet() { + return { canTerminate: true, isActionInternal: false, label: this.outputIdsToLabels[o.outputIds.conditionsNotMet], outputId: o.outputIds.conditionsNotMet, required: true }; + } + get default() { + return { canTerminate: true, isActionInternal: false, label: this.outputIdsToLabels[o.outputIds.default], outputId: o.outputIds.default, required: true, sortIndex: 4 }; + } + get emergency() { + return { canTerminate: true, isActionInternal: false, label: this.outputIdsToLabels[o.outputIds.emergency], outputId: o.outputIds.emergency, required: true }; + } + get event() { + return { canTerminate: true, isActionInternal: false, label: this.outputIdsToLabels[o.outputIds.event], outputId: o.outputIds.event, required: true }; + } + get eventNoEventFailure() { + return [this.event, this.noEvent, this.failure]; + } + get fake() { + return { canTerminate: false, isActionInternal: false, label: this.outputIdsToLabels[o.outputIds.fake], outputId: o.outputIds.fake, required: true }; + } + get fakeDisconnect() { + return { canTerminate: false, isActionInternal: false, label: u.actions.disconnect, outputId: o.outputIds.fake, required: true }; + } + get fakeNoLabel() { + return { canTerminate: false, isActionInternal: false, outputId: o.outputIds.fake, required: true }; + } + get fakeFailure() { + return [this.fake, this.failure]; + } + get failure() { + return { canTerminate: true, isActionInternal: false, label: this.outputIdsToLabels[o.outputIds.failure], outputId: o.outputIds.failure, required: true }; + } + get found() { + return { canTerminate: true, isActionInternal: false, label: this.outputIdsToLabels[o.outputIds.found], outputId: o.outputIds.found, required: true }; + } + get foundNotFound() { + return [this.found, this.notFound]; + } + get foundPartiallyFoundNotFound() { + return [this.found, this.partiallyFound, this.notFound]; + } + get foundNotFoundFailure() { + return [this.found, this.notFound, this.failure]; + } + get holiday() { + return { canTerminate: true, isActionInternal: false, label: this.outputIdsToLabels[o.outputIds.holiday], outputId: o.outputIds.holiday, required: true }; + } + get inactive() { + return { canTerminate: true, isActionInternal: false, label: this.outputIdsToLabels[o.outputIds.inactive], outputId: o.outputIds.inactive, required: true }; + } + get knowledgeOptional() { + return { canTerminate: true, featureConfigName: r2.default.botFlowsKnowledge, isActionInternal: false, label: this.outputIdsToLabels[o.outputIds.knowledge], outputId: o.outputIds.knowledge, required: false, yamlOptions: { exportOutOfService: true } }; + } + get loop() { + return { canTerminate: true, isActionInternal: true, label: this.outputIdsToLabels[o.outputIds.loop], outputId: o.outputIds.loop, required: true }; + } + get loopNext() { + return { canTerminate: false, isActionInternal: true, label: this.outputIdsToLabels[o.outputIds.loopNext], outputId: o.outputIds.loopNext, required: true }; + } + get matchExactMultipleNotFound() { + return [this.matchExact, this.matchMultiple, this.notFound]; + } + get matchExact() { + return { canTerminate: true, isActionInternal: false, label: this.outputIdsToLabels[o.outputIds.matchExact], outputId: o.outputIds.matchExact, required: true }; + } + get loopsMax() { + return { canTerminate: true, isActionInternal: false, label: this.outputIdsToLabels[o.outputIds.loopsMax], outputId: o.outputIds.loopsMax, required: true, sortIndex: 6 }; + } + get matchMultiple() { + return { canTerminate: true, isActionInternal: false, label: this.outputIdsToLabels[o.outputIds.matchMultiple], outputId: o.outputIds.matchMultiple, required: true }; + } + get skipResponseCaptureOptional() { + return { canTerminate: true, isActionInternal: false, label: this.outputIdsToLabels[o.outputIds.skipResponseCapture], outputId: o.outputIds.skipResponseCapture, featureConfigName: r2.default.botFlowsSupportDontKnowAnswers, required: false, defaultToOutOfService: true, sortIndex: 10, yamlOptions: { exportOutOfService: true } }; + } + get maxNoInputsOptional() { + return { canTerminate: true, isActionInternal: false, label: this.outputIdsToLabels[o.outputIds.maxNoInputs], outputId: o.outputIds.maxNoInputs, required: false, defaultToOutOfService: true, sortIndex: 8, yamlOptions: { exportOutOfService: true } }; + } + get maxNoMatchesOptional() { + return { canTerminate: true, isActionInternal: false, label: this.outputIdsToLabels[o.outputIds.maxNoMatches], outputId: o.outputIds.maxNoMatches, featureConfigName: r2.default.botFlowsEnhancedRecognitionFailureHandling, required: false, defaultToOutOfService: true, sortIndex: 9, yamlOptions: { exportOutOfService: true } }; + } + get no() { + return { canTerminate: true, isActionInternal: false, label: this.outputIdsToLabels[o.outputIds.no], outputId: o.outputIds.no, required: true }; + } + get noEvent() { + return { canTerminate: true, isActionInternal: false, label: this.outputIdsToLabels[o.outputIds.noEvent], outputId: o.outputIds.noEvent, required: true }; + } + get noInput() { + return { canTerminate: true, isActionInternal: false, label: this.outputIdsToLabels[o.outputIds.noInput], outputId: o.outputIds.noInput, required: true }; + } + get noIntent() { + return { canTerminate: true, isActionInternal: false, label: this.outputIdsToLabels[o.outputIds.noIntent], outputId: o.outputIds.noIntent, required: true }; + } + get noIntentOptional() { + return { canTerminate: true, isActionInternal: false, label: this.outputIdsToLabels[o.outputIds.noIntent], outputId: o.outputIds.noIntent, required: false, yamlOptions: { exportOutOfService: true } }; + } + get notFound() { + return { canTerminate: true, isActionInternal: false, label: this.outputIdsToLabels[o.outputIds.notFound], outputId: o.outputIds.notFound, required: true }; + } + get open() { + return { canTerminate: true, isActionInternal: false, label: this.outputIdsToLabels[o.outputIds.open], outputId: o.outputIds.open, required: true }; + } + get openClosed() { + return [this.open, this.closed]; + } + get openClosedHolidayEmergency() { + return [this.open, this.closed, this.holiday, this.emergency]; + } + get partiallyFound() { + return { canTerminate: true, isActionInternal: false, label: this.outputIdsToLabels[o.outputIds.partiallyFound], outputId: o.outputIds.partiallyFound, required: true }; + } + get processed() { + return { canTerminate: true, isActionInternal: false, label: this.outputIdsToLabels[o.outputIds.processed], outputId: o.outputIds.processed, required: true }; + } + get processedTimeoutFailure() { + return [this.processed, this.timeout, this.failure]; + } + get success() { + return { canTerminate: true, isActionInternal: false, label: this.outputIdsToLabels[o.outputIds.success], outputId: o.outputIds.success, required: true }; + } + get successFailure() { + return [this.success, this.failure]; + } + get successFailureTimeout() { + return [this.success, this.failure, this.timeout]; + } + get successNoInputFailure() { + return [this.success, this.noInput, this.failure]; + } + get successFailureCanceled() { + return [this.success, this.failure, this.canceled]; + } + get successTimeout() { + return [this.success, this.timeout]; + } + get validInvalidFailure() { + return [this.valid, this.invalid, this.failure]; + } + get timeout() { + return { canTerminate: true, isActionInternal: false, label: this.outputIdsToLabels[o.outputIds.timeout], outputId: o.outputIds.timeout, required: true }; + } + get valid() { + return { canTerminate: true, isActionInternal: false, label: this.outputIdsToLabels[o.outputIds.valid], outputId: o.outputIds.valid, required: true }; + } + get invalid() { + return { canTerminate: true, isActionInternal: false, label: this.outputIdsToLabels[o.outputIds.invalid], outputId: o.outputIds.invalid, required: true }; + } + get yes() { + return { canTerminate: true, isActionInternal: false, label: this.outputIdsToLabels[o.outputIds.yes], outputId: o.outputIds.yes, required: true }; + } + get yesNo() { + return [this.yes, this.no]; + } + get fakeFaxProcessed() { + return { canTerminate: true, isActionInternal: false, label: u.generic.branches.faxProcessed, outputId: o.outputIds.fake, required: true }; + } + get voicemail() { + return { canTerminate: false, isActionInternal: false, label: u.generic.branches.voicemail, outputId: o.outputIds.voicemail, required: true }; + } + get faxProcessedVoicemailNoInputFailure() { + return [this.fakeFaxProcessed, this.voicemail, this.noInput, this.failure]; + } + setSupportedFlowTypes(e3, t3) { + return s.ParameterValidator.expectArrayOrObject(e3, () => a.ParameterInfo.createFunctionParameter(this.className, "restrictToFlowTypes", "branchInfoOrInfos")), s.ParameterValidator.expectArray(t3, () => a.ParameterInfo.createFunctionParameter(this.className, "restrictToFlowTypes", "supportedFlowTypes")), l.default.isArray(e3) ? l.default.each(e3, (e4) => { + e4.supportedFlowTypes = t3; + }) : e3.supportedFlowTypes = t3, e3; + } + }(); + t2.default = d; + }, 27244: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.GetJourneySessionActionModel = void 0; + const n2 = i2(28904), r2 = i2(30801); + class o extends n2.BaseFindSystemObjectByIdActionModel { + constructor(e3) { + super(e3), this.__type = o.__type; + } + } + t2.GetJourneySessionActionModel = o, o.__type = r2.getJourneySessionActionType, o.registerType(); + }, 27277: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importDefault(i2(2318)), o = i2(12179), a = n2.__importDefault(i2(17102)), s = i2(47957), l = "intentMiner"; + class u extends a.default { + constructor() { + super(...arguments), this._actionId = ""; + } + get actionId() { + return this._actionId; + } + set actionId(e3) { + this._actionId = e3; + } + get outOfService() { + return !r2.default.currentUserCanUseIntentMiner; + } + get id() { + return l; + } + static get id() { + return l; + } + get showInFlowSize() { + return false; + } + get className() { + return "IntentMinerViewModel"; + } + getDisplayName() { + return s.intentMiner.intentMinerLabel; + } + get isIntentMinerNode() { + return true; + } + get nodeGuxIcon() { + return "fa/gem-regular"; + } + get helpTopic() { + return o.helpTopics.treeNodes.intentMiner; + } + get intentMinerArchNodeName() { + return l; + } + } + t2.default = u; + }, 27283: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.queuedNetworkCallService = void 0; + const n2 = i2(31635), r2 = n2.__importDefault(i2(92140)), o = n2.__importStar(i2(36781)), a = n2.__importDefault(i2(73198)), s = n2.__importDefault(i2(36019)), l = i2(79516), u = i2(52023), d = a.default.msPerMinute, c = 3 * a.default.msPerSecond; + t2.queuedNetworkCallService = new class { + constructor() { + this._queuedNetworkCalls = [], this._rateLimitRestricted = false, this._rateResetRateLimit = 0, this._delayingRequests = false, this._resources = void 0; + } + get rateLimitRestricted() { + return this._rateLimitRestricted; + } + set rateLimitRestricted(e3) { + this._rateLimitRestricted = e3; + } + get rateResetRateLimit() { + return this._rateResetRateLimit; + } + set rateResetRateLimit(e3) { + this._rateResetRateLimit = e3; + } + get resources() { + return r2.default.isUndefined(this._resources) && (this._resources = i2(47957)), this._resources; + } + enqueueNetworkCall(e3) { + const t3 = new u.PromiseDefer(); + return this._queuedNetworkCalls.push({ request: e3, defer: t3 }), this._processQueue(), t3.promise; + } + _retryNetworkCall(e3) { + this._queuedNetworkCalls.push(e3), this._processQueue(); + } + _createNewRequest(e3) { + const t3 = s.default.build(e3.request.info); + t3.content(e3.request._content), t3.templateParams(e3.request._templateParams), t3.queryParams(e3.request._queryParams), e3.request = t3; + } + _rateLimitHandling(e3, t3) { + if (!this.rateLimitRestricted) { + this.rateLimitRestricted = true; + try { + this.rateResetRateLimit = (parseInt(t3.headers["retry-after"]) + 1) * a.default.msPerSecond, r2.default.isActualNumber(this.rateResetRateLimit) || (this.rateResetRateLimit = d); + } catch (e4) { + this.rateResetRateLimit = d; + } + o.emitter.emit(o.rateLimited, this.rateResetRateLimit), o.emitter.emit(o.alert, { message: this.resources.alertService.architectBusy, type: l.AlertTypeEnum.info, delay: this.rateResetRateLimit }); + } + this._createNewRequest(e3), this._retryNetworkCall(e3); + } + _nonRateLimitedRetry(e3) { + !r2.default.isActualNumber(e3.retryCount) || e3.retryCount < 0 ? e3.retryCount = 1 : e3.retryCount++, setTimeout(() => { + this._createNewRequest(e3), this._retryNetworkCall(e3); + }, c); + } + _shiftAndMakeNetworkCall() { + const e3 = this._queuedNetworkCalls.shift(); + e3.request.makeNetworkRequest().then((t3) => { + e3.defer.resolve(t3); + }).catch((t3) => { + 429 === t3.status ? this._rateLimitHandling(e3, t3) : [408, 502, 503, 504].includes(t3.status) ? !r2.default.isActualNumber(e3.retryCount) || e3.retryCount < 5 ? this._nonRateLimitedRetry(e3) : (e3.request.info.options.ignoreBadResponse || o.emitter.emit(o.alert, { message: this.resources.lostConnection.connectionFailedNoRetry, requestError: t3, type: l.AlertTypeEnum.error }), e3.defer.reject(t3)) : "ETIMEDOUT" === t3.code || "ENOTFOUND" === t3.code || "ECONNRESET" === t3.code ? this._nonRateLimitedRetry(e3) : e3.defer.reject(t3); + }), this._processQueue(); + } + _processQueue() { + this.rateLimitRestricted && !this._delayingRequests ? (this._delayingRequests = true, setTimeout(() => { + this.rateLimitRestricted = false, this._delayingRequests = false, this._processQueue(); + }, this.rateResetRateLimit)) : !this.rateLimitRestricted && this._queuedNetworkCalls.length > 0 && this._shiftAndMakeNetworkCall(); + } + }(); + }, 27313: (e2, t2, i2) => { + "use strict"; + const n2 = i2(31635), r2 = i2(17604), o = n2.__importDefault(i2(92140)), a = n2.__importStar(i2(59288)), s = n2.__importStar(i2(58380)), l = n2.__importStar(i2(1115)), u = i2(12179), d = i2(12457), c = n2.__importDefault(i2(97891)), p = i2(24383), _ = n2.__importDefault(i2(5730)), h = n2.__importStar(i2(12847)), m = i2(26847), g = i2(47957); + class f extends _.default { + constructor(e3, t3) { + super(e3.parentFlow, e3), this._loadModel(t3); + } + get amObjectEventSink() { + return true; + } + _preDestroy() { + super._preDestroy(), this.model.pathReference && a.removeBranchConsumer(this.topParent.id, this.model.pathReference, this); + } + _getParentTaskDefaultBranch() { + return this.topParent.getBranches().find((e3) => e3.outputId === m.outputIds.default); + } + getDetails() { + return this.pathName ? new d.ActionDetails([g.task.path], [this.pathName]) : null; + } + get _isInCommonModuleTask() { + return this.topParent.isCommonModuleTaskViewModel; + } + _initializeDesignTime() { + if (this._isInCommonModuleTask && (this.pathReference || this.pathName)) this.pathReference = void 0, this.pathName = void 0; + else if (!this.pathName && this.pathReference === m.outputIds.default) { + const e3 = this._getParentTaskDefaultBranch(); + this.linkPath(e3); + } + super._initializeDesignTime(); + } + initialize() { + super.initialize(), this.pathReference && a.setBranchConsumer(this.topParent.id, this.pathReference, this, (0, r2.sprintf)(g.task.outputPathForTask, this.topParent.name)), s.registerEventSinkForEventEmitter(this.parent.id, this); + } + get isEndTask() { + return true; + } + linkPath(e3) { + this.pathReference = e3.outputId, this.pathName = e3.label; + } + objEvent_outputBranchRemoved(e3, t3) { + t3 === this.pathReference && (this.pathReference = null); + } + get pathName() { + return this.model.pathName; + } + set pathName(e3) { + this._isInCommonModuleTask && e3 && (h.error("this action does not support output paths"), e3 = void 0), this.model.pathName = e3; + } + get pathReference() { + return this.model.pathReference; + } + set pathReference(e3) { + this._isInCommonModuleTask && e3 && (h.error("this action does not support output paths"), e3 = void 0), e3 !== this.model.pathReference && (this.model.pathReference && a.removeBranchConsumer(this.topParent.id, this.model.pathReference, this), this.model.pathReference = e3, this.model.pathReference && a.setBranchConsumer(this.topParent.id, this.model.pathReference, this, (0, r2.sprintf)(g.task.outputPathForTask, this.topParent.name)), this.initializeDesignTimeCalled && l.validateAction(this)); + } + postProcessYamlConfig(e3, t3, i3) { + var n3, r3; + this.pathName && ((null === (n3 = this.pathReference) || void 0 === n3 ? void 0 : n3.startsWith("__")) && (null === (r3 = this.pathReference) || void 0 === r3 ? void 0 : r3.endsWith("__")) ? e3.outputPath = { name: this.getYamlOutputId(this.pathReference) } : e3.outputPath = { name: this.pathName }); + } + search(e3) { + super.search(e3), this.pathName && e3.checkText(this, this.pathName, g.task.path); + } + validate(e3) { + super.validate(e3), this.topParent && this.topParent.supportsCustomOutputPaths && (this.pathReference ? o.default.find(this.topParent.getBranches(), (e4) => e4.outputId === this.pathReference) || (this.pathName ? e3.addError(this, (0, r2.sprintf)(g.expression.literalDropDownValueDoesNotExist, g.task.path, this.pathName)) : e3.addError(this, g.task.invalidBranchReference)) : e3.addError(this, g.task.noPathReference)); + } + } + f.info = c.default.createActionInfo({ actionClass: f, canBeInTask: true, helpTopic: u.helpTopics.actions.endTask, modelClass: i2(20611), name: g.actions.endTask, scriptingName: "ArchActionEndTask", termination: p.terminatesTask, availabilityCallback: function(e3, t3, i3) { + return !(!i3 || !t3.supportsCustomOutputPaths) || t3.isCommonModuleTaskViewModel; + } }), t2.A = f; + }, 27314: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.DateTimeType = void 0; + const n2 = i2(31635).__importDefault(i2(95093)), r2 = i2(17604), o = i2(64472), a = i2(90342), s = i2(80428); + class l extends a.BaseTypeWithDate { + constructor(e3, t3, i3) { + super(e3, t3, i3); + } + get className() { + return "DateTimeType"; + } + createExpressionOptionClass() { + return new o.ExpressionTypeDateTimeOptions(this.isCollection); + } + convertLitToExpression(e3, t3) { + const i3 = this.getParsedDate(t3, null, false); + return i3 ? (0, r2.sprintf)("MakeDateTime(%s, %s, %s, %s, %s, %s)", i3.year, i3.month, i3.date, i3.hours, i3.minutes, i3.seconds) : t3; + } + _getLiteralValueOfExpression() { + return ""; + } + getYamlObjectForLiteralSingleton(e3) { + super.getYamlObjectForLiteralSingleton.apply(this, arguments); + const t3 = this.getParsedDate(e3.text, e3, true); + return { year: t3.year, month: t3.month, day: t3.date, hour: t3.hours, minute: t3.minutes, second: t3.seconds }; + } + searchExpression(e3, t3) { + const i3 = n2.default.utc(t3.text); + if (t3.isLiteralMode && i3) { + let n3 = i3.hours(); + const o2 = n3 >= 12 ? "PM" : "AM"; + n3 = n3 > 12 ? n3 - 12 : n3; + const a2 = (0, r2.sprintf)("%s-%02d-%02d %s:%02d:%02d %s", i3.year(), i3.month() + 1, i3.date(), n3, i3.minutes(), i3.seconds(), o2); + e3.checkText(t3, a2, t3.label); + } else super.searchExpression(e3, t3); + } + convertLitToCustomJsonStr(e3, t3, i3, n3) { + return `"${i3 || t3 || ""}"`; + } + } + t2.DateTimeType = l, l.typeIdentifier = s.expressionTypeNames.dateTime; + }, 27341: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.GENERETIVE_AI_TYPE = void 0, t2.switchToNewIntentPaths = function(e3, t3, i3) { + let n3; + t3.forEach((t4) => { + n3 = e3.getBranch(t4.outputId), n3 ? (n3.model.label = t4.label, n3.outOfService || n3.enableFull()) : (n3 = e3.addOptionalBranchInfo(t4), o.default.isFunction(i3) && i3(n3)); + }); + const r3 = o.default.reject(e3.branchInfoList, (e4) => !e4.isDynamicBranch); + o.default.filter(r3, (e4) => !o.default.findWhere(t3, { outputId: e4.outputId })).forEach((t4) => { + n3 = e3.getBranch(t4.outputId), n3 && n3.hasChildren ? n3.isUnreachable = true : e3.removeOptionalBranchInfoById(t4.outputId); + }), e3.sortBranches(); + }, t2.translateEmailIntentsToBranchItems = function(e3, t3) { + return t3.map((t4) => r2.createBranchItemDynamic(e3.id, t4.name, null, true, t4.id)); + }; + const n2 = i2(31635), r2 = n2.__importStar(i2(59288)), o = n2.__importDefault(i2(92140)); + t2.GENERETIVE_AI_TYPE = "GenerativeAI"; + }, 27359: (e2, t2, i2) => { + const n2 = i2(28730), r2 = i2(76768), o = i2(31178), { menuActionActionType: a } = i2(30801), { taskActionActionType: s } = i2(30801), { uuid: l } = i2(9456); + function u() { + Object.defineProperties(this, { _action: { writable: true }, _digit: { writable: true } }), this.globalDtmf = void 0, this.globalSpeech = void 0, this.speechRecTerms = void 0, u.baseConstructor.apply(this, arguments), this.id || (this.id = l()); + } + r2.extend(u, "MenuChoice"), Object.defineProperties(u.prototype, { pasteReIdOrRename: { value: function(e3) { + u._super.pasteReIdOrRename.apply(this, arguments), this.action.pasteReIdOrRename(e3); + } }, pasteResolveOldToNewValues: { value: function(e3) { + if (u._super.pasteResolveOldToNewValues.apply(this, arguments), this.action.pasteResolveOldToNewValues(e3), this.action) switch (this.action.__type) { + case a: + this.name = e3.pasteResolveOldMenuNameToNewMenuName(this.name); + break; + case s: + this.name = e3.pasteResolveOldTaskNameToNewTaskName(this.name); + } + } }, action: { enumerable: true, get: function() { + return this._action; + }, set: function(e3) { + this._action = this.reviveItem(e3, n2); + } }, digit: { enumerable: true, get: function() { + return this._digit; + }, set: function(e3) { + this._digit = this.reviveEnum(e3, o); + } } }), e2.exports = u; + }, 27362: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.LineItemType = t2.PROP_LISTING_PRICE = t2.PROP_LISTING_NAME = void 0; + const n2 = i2(31635), r2 = i2(30801), o = n2.__importDefault(i2(73198)), a = i2(27491), s = i2(94765), l = i2(70812), u = i2(80428), d = i2(14394), c = i2(47957); + t2.PROP_LISTING_NAME = "listingname", t2.PROP_LISTING_PRICE = "listingprice"; + class p extends s.ExpressionType { + constructor(e3, t3, i3) { + super(e3, t3, i3); + } + get className() { + return "LineItemType"; + } + canConvertLitToExpression(e3) { + return a.expressionDataService.isFunctionTextAvailableForFlowTypeAndOperandTypes("MakeLineItem", e3, [d.globalTypes.string, d.globalTypes.currency]); + } + convertLitToExpression(e3, t3, i3, n3) { + var r3, a2; + return n3 && this.canConvertLitToExpression(e3) ? `MakeLineItem(${(null === (r3 = n3.type.getPropListingName(n3)) || void 0 === r3 ? void 0 : r3.getEmbeddableExpressionText()) || o.default.notSet}, ${(null === (a2 = n3.type.getPropListingPrice(n3)) || void 0 === a2 ? void 0 : a2.getEmbeddableExpressionText()) || o.default.notSet})` : ""; + } + _getLiteralValueOfExpression() { + return ""; + } + createExpressionOptionClass() { + return new l.ExpressionTypeLineItemOptions(this.isCollection); + } + get supportsLiteralEditor() { + return true; + } + getPropListingName(e3) { + return e3.getProperty(t2.PROP_LISTING_NAME); + } + getPropListingPrice(e3) { + return e3.getProperty(t2.PROP_LISTING_PRICE); + } + configurePropertyCreationParams(e3, i3, n3) { + var o2; + switch (super.configurePropertyCreationParams(e3, i3, n3), n3.options.setIninTestingField(`line-item-${i3.name}`), n3.options.setAsInput(true), n3.options.setDefaultToNoValue(true), i3.name.toLowerCase()) { + case t2.PROP_LISTING_NAME: + n3.options.setIsOptional(false), n3.options.setDescriptionInfo(c.askForPayment.askForPaymentListingName, c.askForPayment.askForPaymentListingNameDesc), n3.options.facets.setMaxLength(512).setAllowNull(false).setMinLength(1); + break; + case t2.PROP_LISTING_PRICE: + n3.options.setIsOptional(false), (null === (o2 = e3.parent.info) || void 0 === o2 ? void 0 : o2.typeId) === r2.askForPaymentActionType && n3.options.setCurrencyAmountOnly(true), n3.options.setDescriptionInfo(c.askForPayment.askForPaymentListingPrice, c.askForPayment.askForPaymentListingPriceDesc), n3.options.facets.setMinValInclusive(true).setMinDec(-1e9).setMaxValInclusive(true).setMaxDec(1e9).setDecimalPlaces(3); + } + } + get hasRichLiteralEditor() { + return true; + } + } + t2.LineItemType = p, p.typeIdentifier = u.expressionTypeNames.lineItem; + }, 27368: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(81574)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "journeySessionOutcomeAchievement"; + } + get id() { + } + get achievedDate() { + } + get displayTypeName() { + return "ArchValueJourneySessionOutcomeAchievement"; + } + get isArchValueJourneySessionOutcomeAchievement() { + return true; + } + } + t2.default = r2; + }, 27377: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importDefault(i2(92140)), o = n2.__importStar(i2(24032)), a = n2.__importDefault(i2(68460)), s = i2(99472), l = o.getTopic("BaseWorkbenchSettingsNode"); + class u extends a.default { + constructor() { + super(...arguments), this.labelBadge = s.aiPoweredBadgeWithNoText; + } + get isWorkbenchSettingsNode() { + return true; + } + get virtualAgentEnabled() { + var e3; + return null === (e3 = this.parentFlow.botFlowSettings) || void 0 === e3 ? void 0 : e3.virtualAgentEnabled; + } + validate(e3) { + var t3; + const i3 = r2.default.where(null === (t3 = this.parentFlow.nluMetaData.currentWorkbenchMessage) || void 0 === t3 ? void 0 : t3.validationResults, { archNode: this.workbenchArchNodeName }); + r2.default.each(i3, (e4) => { + if (r2.default.isString(e4.message)) if ("error" === e4.type) this.parentFlow.validationResults.addError(this, e4.message); + else { + if ("warn" !== e4.type) return "info" === e4.type ? void l.error(`Validation result for ${this.className} had info type but info isn't supported yet. Object: '${e4}`) : void l.error(`Validation result for ${this.className} had unrecognized type '${e4.type}'. Object: '${e4}`); + this.parentFlow.validationResults.addWarning(this, e4.message); + } + else l.error(`Validation result for ${this.className} had no message. Object: '${e4}`); + }); + } + } + t2.default = u; + }, 27381: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(81574)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "workbin"; + } + get id() { + } + get name() { + } + get divisionId() { + } + get displayTypeName() { + return "ArchValueWorkbin"; + } + get isArchValueWorkbin() { + return true; + } + } + t2.default = r2; + }, 27395: (e2, t2, i2) => { + const n2 = i2(36019).default, r2 = i2(42660); + function o() { + } + o.prototype.getContactListsDivisionViews = function(e3) { + const t3 = r2.getContactListsDivisionViews, i3 = n2.build(t3); + return e3.sortOrder = void 0, i3.queryParams(e3.getSearchQueryParams()).call(); + }, o.prototype.getContactList = function(e3) { + return n2.build(r2.getContactList).templateParams({ id: e3 }).call(); + }, o.prototype.getContactList.api = r2.getContactList, e2.exports = new o(); + }, 27450: (e2, t2, i2) => { + const n2 = i2(92140), r2 = i2(82149), o = i2(90807), a = i2(7401), { nuanceMixActionType: s } = i2(30801); + function l() { + Object.defineProperties(this, { _channelId: { writable: true }, _botVariables: { writable: true } }), this.botId = void 0, this.botName = void 0, this.botIntegrationId = void 0, this.botIntegrationName = void 0, l.baseConstructor.apply(this, arguments); + } + r2.extend(l, s, true), Object.defineProperties(l.prototype, { pasteReIdOrRename: { value: function(e3) { + if (l._super.pasteReIdOrRename.apply(this, arguments), n2.isArray(this.variables)) for (let t3 = 0; t3 < this.variables.length; t3++) this.botVariables[t3].pasteReIdOrRename(e3); + } }, pasteResolveOldToNewValues: { value: function(e3) { + if (l._super.pasteResolveOldToNewValues.apply(this, arguments), n2.isArray(this.variables)) for (let t3 = 0; t3 < this.variables.length; t3++) this.botVariables[t3].pasteResolveOldToNewValues(e3); + } }, botVariables: { enumerable: true, get: function() { + return this._botVariables; + }, set: function(e3) { + this._botVariables = this.reviveArray(e3, o); + } }, channelId: { enumerable: true, get: function() { + return this._channelId; + }, set: function(e3) { + this._channelId = this.reviveItem(e3, a); + } } }), e2.exports = l; + }, 27491: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.expressionDataService = void 0; + const n2 = i2(31635), r2 = (i2(96618), i2(17604)), o = n2.__importDefault(i2(92140)), a = n2.__importStar(i2(74359)), s = i2(16321), l = n2.__importStar(i2(12847)), u = n2.__importStar(i2(85705)), d = i2(24812), c = n2.__importDefault(i2(41510)), p = n2.__importStar(i2(66381)), _ = i2(53e3), h = i2(13139), m = n2.__importStar(i2(14187)), g = n2.__importStar(i2(58801)), f = n2.__importDefault(i2(22226)), T = n2.__importStar(i2(9345)), y = i2(14394), S = i2(47875), A = n2.__importStar(i2(55656)), N = i2(27862), O = i2(40810), I = i2(19502), v = i2(44051), C = i2(36470), b = i2(47957), E = {}; + t2.expressionDataService = new class { + constructor() { + this.expressionFuncOps = [], this.expressionFuncOpsByText = [], this.expressionFuncOpsById = {}, this.expressionFuncOpsByOverloadId = {}, this.expressionFuncOpCategories = {}, this.expressionFuncOpCollections = [], Promise.all([a.getAuthenticatedPromise(), a.bootstrapLanguageDataLoaded, a.featureTogglesLoaded]).then((e3) => { + const t3 = o.default.find(e3, function(e4) { + return e4["en-us"]; + }); + this.startupConnectedAndReady(t3); + }); + } + _doOperandsMatchRegisteredOperands(e3, t3) { + if (t3.length < e3.length) return false; + if (t3.length > e3.length && (!e3.length || !o.default.last(e3).canAppearMoreThanOnce)) return false; + const i3 = t3.length, n3 = e3.length; + let r3; + for (let o2 = 0; o2 < i3; o2++) if (r3 = o2 >= n3 ? n3 - 1 : o2, !e3[r3].isExpressionMatch(t3[o2])) return false; + return true; + } + _errorStrWithFuncOpAndPosPrefix(e3, ...t3) { + const i3 = [arguments[1], (0, r2.sprintf)(b.expression.functions.funcOpPosPrefix, e3.getTextWithFuncOpTextFallback(), e3.position)]; + if (arguments.length > 2) for (let e4 = 2; e4 < arguments.length; e4++) i3.push(arguments[e4]); + return r2.sprintf.apply(null, i3); + } + _errorResult(e3, t3, i3) { + return g.createDataResult(false, null, e3, t3, i3); + } + _evaluateRegisteredOverloadAudioSupport(e3, t3, i3, n3) { + var r3; + if (t3.runtimeSequencesSystemPrompts) for (let t4 = 0; t4 < i3.length; t4++) { + const r4 = i3[t4]; + if (!n3.parentFlow.getDestinationFlowTypesThatSupportTtsAndAsrAtRuntime().every((e4) => r4.getSupportsAudioDataPlaybackForFlowType(e4))) return this._getRuntimePlaybackNotSupportedErrorResult(e3, r4); + } + if (t3.runtimeRequiresTTSSupport) { + const a2 = n3.runtimeConsumingFlowTypes; + if (null == a2 ? void 0 : a2.length) { + const i4 = o.default.difference(a2, o.default.values(t3.supportedFlowTypes)); + if (i4.length) return this._getTTSNotSupportedForFlowTypeErrorResult(e3, i4); + } + for (let t4 = 0; t4 < i3.length; t4++) { + const o2 = i3[t4]; + if (!o2) { + null === (r3 = null == n3 ? void 0 : n3.parentFlow) || void 0 === r3 || r3.topic.error(`null entry found at languages[${t4}] in _evaluateRegisteredOverloadAudioSupport`); + continue; + } + if (!n3.parentFlow.getDestinationFlowTypesThatSupportTtsAndAsrAtRuntime().every((e4) => o2.getSupportsTTSPlaybackForFlowType(e4, n3.parentFlow))) return this._getTTSEngineNotSupportedErrorResult(e3, o2); + if (!o2.getSupportsTTSPlaybackForFlow(n3.parentFlow)) return this._getTTSEngineNotValidErrorResult(e3, o2); + const a3 = e3.getOperands(); + if (a3 && 1 === a3.length) { + const t5 = a3[0]; + if (t5.isLit && t5.type.isMatch(y.globalTypes.string, T.settings.exact)) { + const i4 = o2.getStringExceedsMaxRequestLengthError(n3.parentFlow, t5.text); + if (i4) return this._getGenericFuncOpError(e3, i4); + } + } + } + } + } + _evaluateRegisteredOverloadLanguageFilter(e3, t3, i3) { + if (t3.supportedLanguageFilter) { + for (let n3 = 0; n3 < i3.length; n3++) if (!t3.supportedLanguageFilter[i3[n3].id]) return this._getOverloadNotSupportedForLanguageErrorResult(e3, i3[n3]); + } + } + _evaluateRegisteredOverloadRestrictions(e3, t3, i3, n3, r3) { + let o2; + if (n3) { + if (o2 = this._evaluateRegisteredOverloadAudioSupport(e3, t3, n3, r3), o2) return o2; + if (o2 = this._evaluateRegisteredOverloadLanguageFilter(e3, t3, n3), o2) return o2; + } + const a2 = t3.operands.length; + for (let n4 = 0; n4 < i3.length; n4++) { + const s2 = t3.operands[n4 >= a2 ? a2 - 1 : n4]; + if (o2 = this._evaluateRegisteredOperandRestrictions(e3, i3[n4], s2, r3), o2) return o2; + } + } + _evaluateRegisteredOperandRestrictions(e3, t3, i3, n3) { + var r3; + if (t3.isLit) { + if (void 0 !== i3.minLength && (null === (r3 = t3.text) || void 0 === r3 ? void 0 : r3.length) < i3.minLength) return this._getLiteralLessThanMinLength(e3, t3, i3); + if (i3.literalValidatorName) { + const r4 = this._validateLiteralWithProvider(i3.literalValidatorName, t3, n3); + if (r4.parameterErrorStr) return r4.parameterErrorStrIsFullSentence ? this._getLiteralNotValidResult(e3, t3, i3, r4.parameterErrorStr) : this._getLiteralNotInProviderResult(e3, t3, i3, r4.parameterErrorStr); + r4.providerFixedValue && (t3.text = r4.providerFixedValue); + } + } else if (i3.mustBeLiteral) return this._getParameterValueMustBeLiteral(e3, t3, i3); + if (i3.mustBeVariable) { + if (i3.mustBeVariableScope) { + if (!t3.getIsVariableRefWithScope(i3.mustBeVariableScope)) return this._getParameterValueMustBeVariableScope(e3, t3, i3); + } else if (!t3.isVariableRef) return this._getParameterValueMustBeVariable(e3, t3, i3); + } + if (i3.checkPromptTTSLength && t3.isPromptRef) { + const i4 = n3._getReferenceByName(t3.text); + if (i4 && i4.isPromptContainer) { + const t4 = i4.getTtsExceedsMaxLengthError(n3); + if (t4) return this._getGenericFuncOpError(e3, t4); + } + } + const o2 = parseFloat(t3.getText()); + return i3.checkMaxIntRestriction(o2) ? i3.checkMinIntRestriction(o2) ? i3.checkZeroRestriction(o2) ? void 0 : this._getZeroNotAllowedErrorResult(e3, t3, i3) : this._getLessThanMinErrorResult(e3, t3, i3) : this._getGreaterThanMaxErrorResult(e3, t3, i3); + } + evaluateRegisteredFuncOp(e3, t3, i3, n3, r3) { + let o2; + for (let a2 = 0; a2 < t3.overloads.length; a2++) { + const s2 = t3.overloads[a2]; + if (this._doOperandsMatchRegisteredOperands(s2.operands, i3)) return s2.isUnavailable ? this._getUnavailableOverloadErrorResult(e3, s2) : s2.hasRestrictions ? (o2 = this._evaluateRegisteredOverloadRestrictions(e3, s2, i3, n3, r3), o2 || this._result(s2)) : this._result(s2); + } + } + _getFuncOpForText(e3) { + return e3 ? this.expressionFuncOpsByText["_" + e3.toLowerCase()] : null; + } + _getFuncOpForIdentifier(e3) { + if (!e3) return null; + const t3 = this.expressionFuncOpsById[e3]; + return t3 || "toUser" !== e3 ? t3 : this.expressionFuncOpsById.toUserQueue; + } + _getGenericFuncOpError(e3, t3) { + return this._errorResult(this._errorStrWithFuncOpAndPosPrefix(e3, b.expression.functions.genericFunctionErrorTemplate, t3), e3.position, e3.getTextWithFuncOpTextFallback()); + } + _getGreaterThanMaxErrorResult(e3, t3, i3) { + return this._errorResult(this._errorStrWithFuncOpAndPosPrefix(e3, b.expression.functions.parameterValueGreaterThanMax, t3.getText(), i3.name, t3.position, i3.max), t3.position, e3.getTextWithFuncOpTextFallback()); + } + _getLessThanMinErrorResult(e3, t3, i3) { + return this._errorResult(this._errorStrWithFuncOpAndPosPrefix(e3, b.expression.functions.parameterValueLessThanMin, t3.getText(), i3.name, t3.position, i3.min), t3.position, e3.getTextWithFuncOpTextFallback()); + } + _getLiteralLessThanMinLength(e3, t3, i3) { + return 1 === i3.minLength ? this._errorResult(this._errorStrWithFuncOpAndPosPrefix(e3, b.expression.functions.parameterTextLengthLessThanMin, i3.name, t3.position), t3.position, e3.getTextWithFuncOpTextFallback()) : this._errorResult(this._errorStrWithFuncOpAndPosPrefix(e3, b.expression.functions.parameterTextLengthLessThanMinMoreThanOne, i3.name, t3.position, i3.minLength), t3.position, e3.getTextWithFuncOpTextFallback()); + } + _getLiteralNotInProviderResult(e3, t3, i3, n3) { + return this._errorResult(this._errorStrWithFuncOpAndPosPrefix(e3, b.expression.functions.parameterLiteralValueNotInProvider, t3.getTextWithFuncOpTextFallback(), i3.name, t3.position, n3), t3.position, e3.getTextWithFuncOpTextFallback()); + } + _getLiteralNotValidResult(e3, t3, i3, n3) { + return this._errorResult(this._errorStrWithFuncOpAndPosPrefix(e3, b.expression.functions.parameterLiteralValueNotValid, t3.getTextWithFuncOpTextFallback(), i3.name, t3.position, n3), t3.position, e3.getTextWithFuncOpTextFallback()); + } + _getNoOverloadErrorResult(e3, t3) { + if (1 === e3.length) return this._errorResult(this._errorStrWithFuncOpAndPosPrefix(t3, b.expression.functions.noOverloadOneParm, e3[0].getErrorDisplayText()), t3.position, t3.rootText); + if (e3.length > 0) { + let i3 = ""; + for (let t4 = 0; t4 < e3.length; t4++) t4 > 0 && (t4 === e3.length - 1 ? i3 += b.itemListing.lastItemAndSeparator : i3 += c.default.itemListing.itemSeparator), i3 += e3[t4].getErrorDisplayText(); + return this._errorResult(this._errorStrWithFuncOpAndPosPrefix(t3, b.expression.functions.noOverloadMoreThanOneParm, i3), t3.position, t3.getTextWithFuncOpTextFallback()); + } + return this._errorResult(this._errorStrWithFuncOpAndPosPrefix(t3, b.expression.functions.noOverloadNoParm), t3.position, t3.getTextWithFuncOpTextFallback()); + } + _getParameterValueMustBeLiteral(e3, t3, i3) { + return this._errorResult(this._errorStrWithFuncOpAndPosPrefix(e3, b.expression.functions.parameterValueMustBeLiteral, i3.name, t3.position, i3.type.displayString), t3.position, e3.getTextWithFuncOpTextFallback()); + } + _getParameterValueMustBeVariable(e3, t3, i3) { + return this._errorResult(this._errorStrWithFuncOpAndPosPrefix(e3, b.expression.functions.parameterValueMustBeVariable, i3.name, t3.position, i3.type.displayString), t3.position, e3.getTextWithFuncOpTextFallback()); + } + _getParameterValueMustBeVariableScope(e3, t3, i3) { + return this._errorResult(this._errorStrWithFuncOpAndPosPrefix(e3, b.expression.functions.parameterValueMustBeVariableScope, i3.name, t3.position, `${m.getCasedScope(i3.mustBeVariableScope)}.`), t3.position, e3.getTextWithFuncOpTextFallback()); + } + _getRuntimePlaybackNotSupportedErrorResult(e3, t3) { + return this._errorResult(this._errorStrWithFuncOpAndPosPrefix(e3, b.expression.dataPlaybackNotSupportedForLanguage, (0, r2.sprintf)(c.default.language.formatDisplayStringAndCode, t3.text, t3.idExpressionText)), e3.position, e3.getTextWithFuncOpTextFallback()); + } + _getOverloadNotSupportedForLanguageErrorResult(e3, t3) { + return this._errorResult(this._errorStrWithFuncOpAndPosPrefix(e3, b.expression.overloadNotSupportedForLanguage, (0, r2.sprintf)(c.default.language.formatDisplayStringAndCode, t3.text, t3.idExpressionText)), e3.position, e3.getTextWithFuncOpTextFallback()); + } + _getTTSEngineNotValidErrorResult(e3, t3) { + return this._errorResult(this._errorStrWithFuncOpAndPosPrefix(e3, b.expression.ttsEngineNotValidForLanguage, (0, r2.sprintf)(c.default.language.formatDisplayStringAndCode, t3.text, t3.idExpressionText)), e3.position, e3.getTextWithFuncOpTextFallback()); + } + _getTTSEngineNotSupportedErrorResult(e3, t3) { + return this._errorResult(this._errorStrWithFuncOpAndPosPrefix(e3, b.expression.ttsNotSupportedForLanguage, (0, r2.sprintf)(c.default.language.formatDisplayStringAndCode, t3.text, t3.idExpressionText)), e3.position, e3.getTextWithFuncOpTextFallback()); + } + _getTTSNotSupportedForFlowTypeErrorResult(e3, t3) { + const i3 = (null == t3 ? void 0 : t3.length) > 1 ? b.expression.ttsNotSupportedForFlowTypes : b.expression.ttsNotSupportedForFlowType; + return this._errorResult(this._errorStrWithFuncOpAndPosPrefix(e3, i3, p.getFlowTypesDisplayString(t3)), e3.position, e3.getTextWithFuncOpTextFallback()); + } + _getUnavailableOverloadErrorResult(e3, t3) { + return this._errorResult(this._errorStrWithFuncOpAndPosPrefix(e3, b.expression.functions.unavailableOverloadNeedsFeatureToggle), e3.position, e3.getTextWithFuncOpTextFallback()); + } + _getZeroNotAllowedErrorResult(e3, t3, i3) { + return this._errorResult(this._errorStrWithFuncOpAndPosPrefix(e3, b.expression.functions.parameterCannotBeZero, i3.name, t3.getText(), t3.position), t3.position, e3.getTextWithFuncOpTextFallback()); + } + _result(e3) { + return g.createDataResult(true, e3); + } + isValidIdentifierCharacter(e3, t3) { + return !!p.getStringContainsValidCharacter(e3, false) || !t3 && ("_" === e3 || e3 >= "0" && e3 <= "9"); + } + _validateLiteralWithProvider(e3, t3, i3) { + if (!t3 || !t3.isLit) return {}; + switch (e3) { + case S.literalValidatorNames.dialingCodes: { + const e4 = t3.getStringLit(), i4 = u.dialingCodes[e4]; + return i4 ? { providerFixedValue: i4 } : { parameterErrorStr: b.expression.functions.parameterTypeDialingCode }; + } + case S.literalValidatorNames.supportedTTSLangs: { + const e4 = t3.getStringLit(), n3 = d.isoLanguages[e4.toLowerCase()]; + return n3 && n3.getSupportsTTSPlaybackForFlow(i3.parentFlow) ? { providerFixedValue: n3.id } : { parameterErrorStr: b.expression.functions.parameterTypeTTSEngineLang }; + } + case S.literalValidatorNames.iso4217: { + const e4 = t3.getStringLit(); + return I[e4.toUpperCase()] ? { providerFixedValue: e4.toUpperCase() } : { parameterErrorStr: b.expression.functions.parameterTypeCurrencyCode }; + } + case S.literalValidatorNames.timeZones: { + const e4 = t3.getStringLit(); + return _.timeZoneService.timeZoneKeyIsValid(e4) ? {} : { parameterErrorStr: b.expression.notValidTimeZone }; + } + case S.literalValidatorNames.phoneNumber: { + const e4 = t3.getStringLit(), i4 = A.validateLiteralString(e4); + return i4 ? { parameterErrorStr: i4, parameterErrorStrIsFullSentence: true } : { providerFixedValue: e4 }; + } + case S.literalValidatorNames.supportedDigitalChannels: { + const e4 = t3.getStringLit(); + return h.SupportedDigitalChannel[e4.toLowerCase()] ? { providerFixedValue: e4.toLowerCase() } : { parameterErrorStr: b.expression.functions.parameterTypeDigitalChannel }; + } + default: + return { parameterErrorStr: b.expression.functions.parameterTypeUnknown }; + } + } + cleanseForIdentifierNameWithProps(e3) { + if (!e3) return e3; + let t3 = ""; + for (let i3 = 0; i3 < e3.length; i3++) ("." === e3.charAt(i3) || this.isValidIdentifierCharacter(e3.charAt(i3), 0 === t3.length)) && (t3 += e3.charAt(i3)); + return t3; + } + cleanseForIdentifierName(e3, t3, i3) { + if (!e3) return e3; + e3 = e3.trim(); + const n3 = []; + for (let r3 = 0; r3 < e3.length; r3++) this.isValidIdentifierCharacter(e3.charAt(r3), 0 === n3.length) ? n3.push(e3.charAt(r3)) : t3 && (i3 && r3 && n3[n3.length - 1] === t3 || n3.push(t3)); + return n3.join(""); + } + isFunctionTextAvailableForFlowTypeAndOperandTypes(e3, t3, i3) { + const n3 = this.getRegisteredFuncOpsByText(e3); + return !!n3 && !!n3[0].overloads.find((e4) => { + if (i3.length !== e4.operands.length) return; + if (!o.default.contains(e4.supportedFlowTypes, t3)) return false; + let n4 = true; + return i3.find((t4, i4) => { + if (!e4.operands[i4].type.isMatch(t4, T.settings.typeOfOrAny)) return n4 = false, true; + }), n4; + }); + } + getExpansions(e3, t3, i3) { + const n3 = {}; + return o.default.each(i3.properties, (i4) => { + const r3 = e3 + "." + i4.name; + n3[r3] = { text: r3, expressionText: t3 + "." + i4.expressionText, description: i4.description, guxIcon: i4.type.getIconGux(), propertyName: i4.name }; + }), n3; + } + getAllFuncOpDisplayNames() { + return o.default.pluck(this.expressionFuncOps, "displayName"); + } + getAvailableFuncOpNamesAndCategories(e3, t3, i3) { + const n3 = (e3 ? "yes_desc" : "no_desc") + "|" + (t3 ? "yes_ops" : "no_ops"), r3 = E[n3]; + if (r3) return r3; + const a2 = o.default.filter(this.expressionFuncOps, function(e4) { + return !(e4.isUnavailable || !e4.funcCategory) && (t3 || e4.isFunction); + }); + return E[n3] = o.default.map(a2, function(t4) { + let n4 = { identifier: t4.identifier, displayName: t4.text, category: t4.funcCategory }; + return e3 && (n4 = o.default.extend(n4, { description: t4.description })), i3 && (n4 = o.default.extend(n4, { supportedFlowTypes: t4.supportedFlowTypes })), n4; + }.bind(this)), E[n3]; + } + getExpressionIdentifier(e3) { + if (!e3) return e3; + let t3, i3, n3; + try { + const r3 = new O.runtime.ANTLRStringStream(e3); + i3 = new v(r3), i3.displayRecognitionError = function(e4, t4) { + }; + const o2 = new O.runtime.CommonTokenStream(i3); + n3 = new C(o2), n3.displayRecognitionError = function(e4, t4) { + }.bind(this); + const a2 = n3.designerexpression().getTree(); + a2 && (t3 = a2.getType() === v.IDENTIFIER); + } catch (e4) { + } + return i3 && (i3.displayRecognitionError = null), n3 && (n3.displayRecognitionError = null), t3 ? e3 : f.default.getQuotedExpressionStringLiteral(e3); + } + getFunctionsForCategory(e3) { + const t3 = o.default.find(this.expressionFuncOpCollections, function(t4) { + return t4.funcCategory === e3; + }); + return t3 ? t3.functions : null; + } + getHelp(e3) { + if (e3) return this._getFuncOpForIdentifier(e3); + } + getNonOperatorFuncOpDisplayNames() { + const e3 = o.default.filter(this.expressionFuncOps, function(e4) { + return e4.funcCategory !== this.expressionFuncOpCategories.operator; + }.bind(this)); + return o.default.pluck(e3, "displayName"); + } + getOverload(e3, t3, i3) { + const n3 = this.getRegisteredFuncOps(e3); + if (n3 || this._errorResult((0, r2.sprintf)(b.expression.notFuncOrRef, e3.getTextWithFuncOpTextFallback, e3.position), e3.position, e3.rootText), i3 && i3.options && i3.options.hasDisallowedFunctionMap && i3.options.disallowedFunctionMap[n3[0].identifier.toLowerCase()]) return this._errorResult((0, r2.sprintf)(b.expression.functions.notAvailableInExpression, e3.getTextWithFuncOpTextFallback(), e3.position), e3.position, e3.rootText); + const o2 = e3.getOperands(); + for (let r3 = 0; r3 < n3.length; r3++) { + const a2 = this.evaluateRegisteredFuncOp(e3, n3[r3], o2, t3, i3); + if (a2) return a2; + } + return this._getNoOverloadErrorResult(o2, e3); + } + getRegisteredFuncOps(e3) { + return this.getRegisteredFuncOpsByText(e3.rootText); + } + getRegisteredFuncOpsByText(e3) { + return e3 ? this.expressionFuncOpsByText["_" + e3.toLowerCase()] : null; + } + getFuncIdByText(e3) { + return this._getFuncOpForText(e3); + } + getStringConversionExamples(e3, t3) { + const i3 = [], n3 = t3.getDefaultImplicitConversionFunc(e3), r3 = null == n3 ? void 0 : n3.overloads.find((t4) => 1 === t4.operands.length && T.isMatch(t4.operands[0].type, e3, T.settings.exact)); + return r3 && Array.isArray(null == r3 ? void 0 : r3.examples) && r3.examples.forEach((e4) => { + if (e4.input.indexOf("NOT_SET") < 0) { + const t4 = `${n3.text}(`, r4 = e4.input.indexOf(t4) + t4.length, o2 = e4.input.lastIndexOf(")"); + r4 >= 0 && o2 >= r4 && i3.push(e4.input.substring(r4, o2)); + } + }), i3; + } + isValidIdentifierName(e3) { + if (!e3) return false; + for (let t3 = 0; t3 < e3.length; t3++) if (!this.isValidIdentifierCharacter(e3.charAt(t3), 0 === t3)) return false; + return true; + } + getInvalidIdentifierCharacters(e3) { + if (!e3) return []; + const t3 = []; + for (let i3 = 0; i3 < e3.length; i3++) this.isValidIdentifierCharacter(e3.charAt(i3), 0 === i3) || "." === e3.charAt(i3) || t3.push(e3.charAt(i3)); + return o.default.uniq(t3); + } + getInvalidIdentifierCharPos(e3) { + if (!o.default.isString(e3) || !e3.length) return -1; + for (let t3 = 0; t3 < e3.length; t3++) if (!this.isValidIdentifierCharacter(e3.charAt(t3), 0 === t3)) return t3; + return null; + } + _configureFuncOpModel(e3, t3, i3, n3) { + const r3 = this._getFuncOpForIdentifier(n3); + r3 && (r3.startupConfigureFromBootstrapInfo(i3, t3), o.default.each(r3.overloads, function(t4) { + e3[t4.id] = o.default.union(o.default.keys(t4.supportedLanguageFilter), o.default.keys(t4.supportedFlowTypes)); + })); + } + getPromptsFromExpressionText(e3) { + if (!o.default.isString(e3)) return null; + const t3 = []; + e3 = this.removeStringLiterals(e3); + const i3 = /((Prompt(System)?)\.[0-9\u0041-\u005a\u0061-\u007a\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u1FFF\u3040-\u318F\u3300-\u337F\u3400-\u3D2D\u4E00-\u9FFF\uF900-\uFAFF\.\_]*)/gi; + let n3, r3; + do { + if (n3 = i3.exec(e3), n3 && 1 === (n3[1].match(/\./g) || []).length) { + const e4 = n3[1].split("."); + e4.splice(0, 1), r3 = { name: e4.join(""), type: /PromptSystem./g.exec(n3[1]) ? N.SystemPrompt : N.UserPrompt }, r3.type === N.SystemPrompt ? r3.isSystemPrompt = true : r3.isUserPrompt = true, t3.push(r3); + } + } while (n3); + return t3; + } + removeStringLiterals(e3) { + if (!o.default.isString(e3)) return null; + let t3 = false; + const i3 = e3.split(""), n3 = i3.length, r3 = "__"; + for (let e4 = 0; e4 < n3; e4++) switch (i3[e4]) { + case '"': + t3 = !t3, i3[e4] = r3; + break; + case "\\": + if (!t3) break; + if (e4 + 1 >= n3) { + i3[e4] = r3; + break; + } + switch (i3[e4 + 1]) { + case "\\": + case "n": + case "r": + case "t": + case '"': + i3[e4] = i3[e4 + 1] = r3, e4++; + break; + default: + i3[e4] = r3; + } + break; + default: + t3 && (i3[e4] = r3); + } + return o.default.without(i3, r3).join(""); + } + startupConnectedAndReady(e3) { + const t3 = {}; + o.default.each(e3, (e4) => { + o.default.each(e4.functions, (i3, n3) => this._configureFuncOpModel(t3, e4, i3, n3)); + }), o.default.each(s.bootstrapService.functions, (e4, i3) => this._configureFuncOpModel(t3, null, e4, i3)), l.table("Bootstrap expression support", t3), o.default.each(this.expressionFuncOps, function(e4) { + e4.startupFinalize(); + }); + } + unitTestEnableAllFunctions() { + console.error("ExpressionDataService.unitTestEnableAllFunctions should only be called in unit tests!"); + } + unitTestEnableLanguageForNeedServerInfoFuncOps(e3, t3, i3) { + return console.error("ExpressionDataService.unitTestEnableLanguageForNeedServerInfoFuncOps should only be called in unit tests!"), false; + } + unitTestRestoreNeedServerInfoSnapshot() { + console.error("ExpressionDataService.unitTestRestoreNeedServerInfoSnapshot should only be called in unit tests!"); + } + }(); + }, 27579: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.default = function(e3 = []) { + let t3 = ["FeatureNotEnabledError", "InternalServerError", "NoInputError", "NoMatchError", "NoResourceError", "VersionMismatchError"]; + return e3.length > 0 && (t3 = t3.concat(e3), t3.sort()), new n2.default({ properties: { errorType: { allowableValues: t3, description: r2.errorSchema.errorTypeDescription, type: "string" }, errorMessage: { description: r2.errorSchema.errorMessageDescription, type: "string" } } }, false); + }; + const n2 = i2(31635).__importDefault(i2(57606)), r2 = i2(47957); + }, 27667: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.allHeaderTypeChoicesMap = t2.allHeaderTypeChoices = t2.headerTypeTextChoice = t2.headerTypeImageChoice = void 0; + const n2 = i2(47957); + t2.headerTypeImageChoice = { displayString: n2.sendRichLink.headerTypeImageChoice, id: "image" }, t2.headerTypeTextChoice = { displayString: n2.sendRichLink.headerTypeTextChoice, id: "text" }, t2.allHeaderTypeChoices = [t2.headerTypeImageChoice, t2.headerTypeTextChoice], t2.allHeaderTypeChoicesMap = {}; + for (const e3 of t2.allHeaderTypeChoices) t2.allHeaderTypeChoicesMap[e3.id] = e3; + }, 27687: (e2, t2, i2) => { + "use strict"; + const n2 = i2(70857), r2 = i2(25884), o = process.env; + let a; + function s(e3) { + const t3 = (function(e4) { + if (false === a) return 0; + if (r2("color=16m") || r2("color=full") || r2("color=truecolor")) return 3; + if (r2("color=256")) return 2; + if (e4 && !e4.isTTY && true !== a) return 0; + const t4 = a ? 1 : 0; + if ("win32" === process.platform) { + const e5 = n2.release().split("."); + return Number(process.versions.node.split(".")[0]) >= 8 && Number(e5[0]) >= 10 && Number(e5[2]) >= 10586 ? Number(e5[2]) >= 14931 ? 3 : 2 : 1; + } + if ("CI" in o) return ["TRAVIS", "CIRCLECI", "APPVEYOR", "GITLAB_CI"].some((e5) => e5 in o) || "codeship" === o.CI_NAME ? 1 : t4; + if ("TEAMCITY_VERSION" in o) return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(o.TEAMCITY_VERSION) ? 1 : 0; + if ("truecolor" === o.COLORTERM) return 3; + if ("TERM_PROGRAM" in o) { + const e5 = parseInt((o.TERM_PROGRAM_VERSION || "").split(".")[0], 10); + switch (o.TERM_PROGRAM) { + case "iTerm.app": + return e5 >= 3 ? 3 : 2; + case "Apple_Terminal": + return 2; + } + } + return /-256(color)?$/i.test(o.TERM) ? 2 : /^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(o.TERM) || "COLORTERM" in o ? 1 : (o.TERM, t4); + })(e3); + return (function(e4) { + return 0 !== e4 && { level: e4, hasBasic: true, has256: e4 >= 2, has16m: e4 >= 3 }; + })(t3); + } + r2("no-color") || r2("no-colors") || r2("color=false") ? a = false : (r2("color") || r2("colors") || r2("color=true") || r2("color=always")) && (a = true), "FORCE_COLOR" in o && (a = 0 === o.FORCE_COLOR.length || 0 !== parseInt(o.FORCE_COLOR, 10)), e2.exports = { supportsColor: s, stdout: s(process.stdout), stderr: s(process.stderr) }; + }, 27702: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importDefault(i2(92140)), o = n2.__importDefault(i2(62121)), a = i2(7401); + class s extends o.default { + constructor(e3) { + super(e3), Object.defineProperties(this, { _builderPartExpressions: { value: [], writable: true } }), this.populateFromJSON(e3); + } + pasteReIdOrRename(e3) { + super.pasteReIdOrRename(e3), r2.default.each(this._builderPartExpressions, function(t3) { + t3.pasteReIdOrRename(e3); + }.bind(this)); + } + pasteResolveOldToNewValues(e3) { + super.pasteResolveOldToNewValues(e3), r2.default.each(this._builderPartExpressions, function(t3) { + t3.pasteResolveOldToNewValues(e3); + }.bind(this)); + } + } + t2.default = s, Object.defineProperties(s.prototype, { builderPartExpressions: { enumerable: true, get: function() { + return this._builderPartExpressions; + }, set: function(e3) { + this._builderPartExpressions = this.reviveArray(e3, a); + } } }); + }, 27716: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.ObjectValueDisplay = void 0; + const n2 = i2(55299); + class r2 extends n2.BaseClass { + constructor(e3) { + super(), this._object = e3; + } + _getDisplayString(e3) { + return null == e3 ? "" : e3.displayString ? e3.displayString : e3.label ? e3.label : e3.name ? e3.name : e3.toString(); + } + get className() { + return "ObjectValueDisplay"; + } + get object() { + return this._object; + } + get displayString() { + return this._getDisplayString(this._object); + } + get isObjectValueDisplay() { + return true; + } + } + t2.ObjectValueDisplay = r2; + }, 27727: (e2, t2, i2) => { + const n2 = i2(13240), r2 = i2(90807), o = i2(7401); + function a() { + Object.defineProperties(this, { _inputs: { writable: true }, _outputs: { writable: true }, _processingPrompt: { writable: true }, _timeout: { writable: true } }), this.actionName = void 0, this.actionId = void 0, this.category = void 0, this.useSuggestedTimeout = void 0, a.baseConstructor.apply(this, arguments); + } + n2.extend(a, "BaseServerActionModel"), Object.defineProperties(a.prototype, { pasteReIdOrRename: { value: function(e3) { + a._super.pasteReIdOrRename.apply(this, arguments), this.timeout.pasteReIdOrRename(e3); + for (let t3 = 0; t3 < this.inputs.length; t3++) this.inputs[t3].pasteReIdOrRename(e3); + for (let t3 = 0; t3 < this.outputs.length; t3++) this.outputs[t3].pasteReIdOrRename(e3); + this.errorData && this.errorData.pasteReIdOrRename(e3), this.messageData && this.message.pasteReIdOrRename(e3), this.status && this.status.pasteReIdOrRename(e3); + } }, pasteResolveOldToNewValues: { value: function(e3) { + a._super.pasteResolveOldToNewValues.apply(this, arguments), this.timeout.pasteResolveOldToNewValues(e3); + for (let t3 = 0; t3 < this.inputs.length; t3++) this.inputs[t3].pasteResolveOldToNewValues(e3); + for (let t3 = 0; t3 < this.outputs.length; t3++) this.outputs[t3].pasteResolveOldToNewValues(e3); + this.errorData && this.errorData.pasteResolveOldToNewValues(e3), this.messageData && this.message.pasteResolveOldToNewValues(e3), this.status && this.status.pasteResolveOldToNewValues(e3); + } }, processingPrompt: { enumerable: true, get: function() { + return this._processingPrompt; + }, set: function(e3) { + this._processingPrompt = this.reviveItem(e3, o); + } }, inputs: { enumerable: true, get: function() { + return this._inputs; + }, set: function(e3) { + this._inputs = this.reviveArray(e3, r2); + } }, outputs: { enumerable: true, get: function() { + return this._outputs; + }, set: function(e3) { + this._outputs = this.reviveArray(e3, r2); + } }, timeout: { enumerable: true, get: function() { + return this._timeout; + }, set: function(e3) { + this._timeout = this.reviveItem(e3, o); + } } }), e2.exports = a; + }, 27752: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = i2(30801), o = n2.__importDefault(i2(78432)), a = n2.__importDefault(i2(11210)); + class s extends a.default { + constructor(e3) { + super(e3), this._disposition = this.coreFactory.createArchWrapper(e3.disposition); + } + get _actionTypeId() { + return r2.abortSurveyActionType; + } + get displayTypeName() { + return this._scriptingName; + } + get isArchActionAbortSurveyInvite() { + return true; + } + get disposition() { + return this._disposition; + } + setLiteralDisposition(e3) { + const t3 = this._infoPropSet("newDisposition", "disposition"); + this._checkItemIsValidLiteralStringEnum(t3, e3, o.default.ABORT_SURVEY_INVITE_DISPOSITIONS_ALL), this._coreActionViewModel.disposition.setAsLiteral(e3), this.logNote("disposition set to '" + this.disposition + "'"); + } + } + t2.default = s; + }, 27816: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.default = function(e3, t3, i3) { + const a = (0, n2.default)(e3, t3, i3), s = new o(); + s.name = r2.actions.exitWorkitemFlow; + const l = a.flowSequenceItemList[0]; + return l.actionList = [s], l.startAction = s.id, a; + }; + const n2 = i2(31635).__importDefault(i2(42193)), r2 = i2(47957), o = i2(96603); + }, 27839: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.workitemFlowListManager = t2.WorkitemFlowListManager = void 0; + const n2 = i2(31635).__importStar(i2(24032)), r2 = i2(6109), o = i2(96618), a = i2(27862); + class s extends r2.FlowListManager { + get dependencyType() { + return a.WorkItemFlow; + } + constructor() { + super(), this.topic = n2.getTopic("WorkitemFlowListManager"), this.additionalQueryParams = { type: o.flowTypes.flowTypeWorkitem }, this.className = "WorkitemFlowListManager", this.flowType = o.flowTypes.flowTypeWorkitem, this._rawServerCache = {}, this._initialize(); + } + } + t2.WorkitemFlowListManager = s, t2.workitemFlowListManager = new s(); + }, 27844: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.smsPhoneNumberManager = t2.SmsPhoneNumberManager = void 0; + const n2 = i2(31635), r2 = n2.__importStar(i2(1360)), o = n2.__importStar(i2(60453)), a = n2.__importStar(i2(24032)), s = n2.__importDefault(i2(47532)), l = i2(81801), u = i2(27862); + class d extends s.default { + get requiredAuth() { + return l.externalAuthorizations.authStrings.smsPhoneNumberView; + } + get dependencyType() { + return u.SmsPhoneNumber; + } + constructor() { + super(), this.topic = a.getTopic("SmsPhoneNumberManager"), this.apiCallList = o.getSmsPhoneNumbers, this.apiCallSingle = o.getSmsPhoneNumber, this._rawServerCache = {}, this.actionPropertyForUsageSearch = "", this.actionsForUsageSearch = [], this.className = "SmsPhoneNumberManager", this.defaultMatchingStyle = r2.startsWith, this.dependencyContext = null, this.securityError = true, this.suppressSearch = false, this.uiMetadataSectionName = "smsPhoneNumber", this.useStartsWithKeywordForExactMatch = true, this._initialize(); + } + } + t2.SmsPhoneNumberManager = d, t2.smsPhoneNumberManager = new d(); + }, 27854: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.prefixes = void 0, t2.hasSystemPromptPrefix = o, t2.hasUserPromptPrefix = a, t2.hasPromptPrefix = function(e3) { + return a(e3) || o(e3); + }, t2.removePrefix = function(e3) { + return a(e3) ? e3.substring(r2.user.length) : o(e3) ? e3.substring(r2.system.length) : e3; + }, t2.addPrefix = function(e3, i3) { + return e3 ? n2.default.isString(i3) && 0 === i3.indexOf("__") ? t2.prefixes.system + e3 : t2.prefixes.user + e3 : ""; + }; + const n2 = i2(31635).__importDefault(i2(92140)), r2 = { user: "prompt.", system: "promptsystem." }; + function o(e3) { + return !!e3 && 0 === e3.toLowerCase().lastIndexOf(r2.system, 0); + } + function a(e3) { + return !!e3 && 0 === e3.toLowerCase().lastIndexOf(r2.user, 0); + } + t2.prefixes = { user: "Prompt.", system: "PromptSystem." }; + }, 27862: (e2, t2, i2) => { + const n2 = i2(57731), r2 = i2(47957), o = {}; + function a(e3, t3, i3) { + o[e3] = this, a.baseConstructor.apply(this, [e3, t3, void 0, i3]); + } + Object.defineProperties(a.prototype, { configurationListManager: { writable: true }, hideFromGrid: { value: false, writable: true }, isDependencyType: { get: function() { + return true; + } }, getConfigItem: { value: function(e3, t3, i3) { + if (t3) { + const t4 = this.configurationListManager?.getBriefManagerWithFallback().getItem(e3, i3); + if (t4) return t4; + } + return this.configurationListManager?.getItem(e3, i3); + } } }), n2.extend(a, "DependencyType"), a.getInstance = function(e3) { + return o[e3 || 0] || o[0]; + }, a.AgenticVirtualAgent = new a("agenticVirtualAgent", r2.agenticVirtualAgent.agenticVirtualAgent, r2.externalAuths.agenticVirtualAgentView.displayTitle), a.AgenticVirtualAgentVersion = new a("agenticVirtualAgentVersion", r2.agenticVirtualAgent.agenticVirtualAgentVersion, r2.externalAuths.agenticVirtualAgentVersionView.displayTitle), a.AudioConnectorBot = new a("audioConnectorBot", r2.callAudioConnector.audioConnectorType), a.BridgeServer = new a("bridgeAction", r2.bridgeServer.bridgeAction, r2.externalAuths.bridgeActionView.displayTitle), a.BotConnectorBot = new a("botConnectorBot", r2.botConnector.botConnector, r2.externalAuths.botConnectorView.displayTitle), a.ConversationCustomAttributeSchema = new a("conversationCustomAttributeSchema", r2.conversationAttribute.conversationAttributeSchemaLabel), a.CustomerIntent = new a("customerIntent", r2.customerIntent.customerIntentLabel, r2.externalAuths.customerIntentsView.customerIntentsViewDisplayTitle), a.DigitalBotConnector = new a("digitalBotConnector", r2.botConnector.digitalBotConnector, r2.externalAuths.botConnectorView.displayTitle), a.DigitalBotConnectorIntegration = new a("digitalBotConnectorIntegration", r2.botConnector.digitalBotConnectorIntegration, r2.externalAuths.botConnectorView.displayTitle), a.DigitalBotFlow = new a("digitalBotFlow", r2.flow.types.digitalBotFlow, r2.navigationDropDown.sectionDigitalBotFlows), a.Division = new a("division", r2.flow.gridColumns.division), a.Guide = new a("guide", r2.guide.guide, r2.externalAuths.guideView.displayTitle), a.GuideVersion = new a("guideVersion", r2.guide.guideVersion, r2.externalAuths.guideVersionView.displayTitle), a.Integration = new a("integration", r2.integration.name, r2.externalAuths.integrationView.displayTitle), a.BotConnectorIntegration = new a("botConnectorIntegration", r2.botConnector.botConnectorIntegration), a.BotFlow = new a("botFlow", r2.flow.types.bot, r2.navigationDropDown.sectionBotFlows), a.LexBotAlias = new a("lexBotAlias", r2.lex.lexBotAlias), a.LexBot = new a("lexBot", r2.lex.lexBot), a.LexV2BotAlias = new a("lexV2BotAlias", r2.lex.lexV2BotAlias), a.LexV2Bot = new a("lexV2Bot", r2.lex.lexV2Bot), a.NuanceMixIntegration = new a("nuanceMixIntegration", r2.nuanceMix.nuanceMixIntegration), a.NuanceMixBot = new a("nuanceMixBot", r2.nuanceMix.nuanceMixBot), a.ContactList = new a("contactList", r2.expression.contactList, r2.externalAuths.contactListsView.displayTitle), a.EmergencyGroup = new a("emergencyGroup", r2.evaluateSchedules.emergencyGroup, r2.externalAuths.emergencyGroupView.displayTitle), a.CommonModuleFlow = new a("commonModuleFlow", r2.flow.types.commonModule, r2.navigationDropDown.sectionCommonModuleFlows), a.InboundCallFlow = new a("inboundCallFlow", r2.flow.types.inboundCall, r2.navigationDropDown.sectionInboundCallFlows), a.InqueueCallFlow = new a("inqueueCallFlow", r2.flow.types.inQueueCall, r2.navigationDropDown.sectionInQueueCallFlows), a.InqueueEmailFlow = new a("inqueueEmailFlow", r2.flow.types.inQueueEmail, r2.navigationDropDown.sectionInQueueEmailFlows), a.InqueueShortMessageFlow = new a("inqueueShortMessageFlow", r2.flow.types.inQueueShortMessage, r2.navigationDropDown.sectionInQueueShortMessageFlows), a.InboundChatFlow = new a("inboundChatFlow", r2.flow.types.inboundChat, r2.navigationDropDown.sectionInboundChatFlows), a.InboundEmailFlow = new a("inboundEmailFlow", r2.flow.types.inboundEmail, r2.navigationDropDown.sectionInboundEmailFlows), a.InboundShortMessageFlow = new a("inboundShortMessageFlow", r2.flow.types.inboundShortMessage, r2.navigationDropDown.sectionInboundShortMessageFlows), a.SurveyInviteFlow = new a("surveyInviteFlow", r2.flow.types.surveyInviteWebPrefix, r2.sectionSurveyInviteFlowsWebPrefix), a.Language = new a("language", r2.setLocale.headerLanguage, r2.expression.languages), a.LanguageSkill = new a("acdLanguage", r2.transferPureMatch.languageSkill, r2.externalAuths.languageSkillsView.displayTitle), a.OutboundCallFlow = new a("outboundCallFlow", r2.flow.types.outboundCall, r2.navigationDropDown.sectionOutboundCallFlows), a.Queue = new a("queue", r2.configurations.queue, r2.externalAuths.queuesView.displayTitle), a.Group = new a("group", r2.group.label, r2.group.groupLabelPlural), a.ScreenPop = new a("composerScript", r2.createCallback.script, r2.externalAuths.scriptsView.displayTitle), a.Response = new a("response", r2.getResponse.response, r2.externalAuths.responseView.displayTitle), a.DecisionTable = new a("decisionTable", r2.decisionTable.decisionTableLabel, r2.decisionTable.decisionTablePlural), a.Schedule = new a("schedule", r2.evaluateSchedules.schedule, r2.externalAuths.schedulesView.displayTitle), a.ScheduleGroup = new a("scheduleGroup", r2.evaluateSchedules.scheduleGroup, r2.externalAuths.scheduleGroupView.displayTitle), a.SecureCallFlow = new a("secureCallFlow", r2.flow.types.secureCall, r2.navigationDropDown.sectionSecureCallFlows), a.Skill = new a("acdSkill", r2.configurations.skill, r2.configurations.skillsPlural), a.SmsPhoneNumber = new a("smsPhoneNumber", r2.deflect.smsPhoneNumber, r2.externalAuths.smsPhoneNumberView.smsPhoneNumberViewDisplayTitle), a.SystemPrompt = new a("systemPrompt", r2.audio.promptSystem, r2.externalAuths.promptsSystemView.displayTitle), a.UtilizationLabel = new a("utilizationLabel", r2.utilizationLabel.utilizationLabelLabel, r2.externalAuths.utilizationLabelView.utilizationLabelViewDisplayTitle), a.User = new a("user", r2.user.label, r2.user.userLabelPlural), a.UserPrompt = new a("userPrompt", r2.audio.promptUser, r2.externalAuths.promptsUserView.displayTitle), a.WrapupCode = new a("acdWrapupCode", r2.setWrapupCode.wrapupCode, r2.externalAuths.wrapupCodesView.displayTitle), a.SecureAction = new a("secureAction", r2.secureAction.secureAction), a.DataAction = new a("dataAction", r2.dataAction.dataAction), a.Video = new a("video", r2.generic.video), a.EmailSendFlow = new a("emailSendFlow", r2.emailSendFlow.emailSendFlowTypeDisplayName, r2.emailSendFlow.emailSendFlowsSectionLabel), a.VoiceFlow = new a("voiceFlow", r2.flow.types.voiceFlow), a.VoicemailFlow = new a("voicemailFlow", r2.flow.types.voicemailFlow, r2.navigationDropDown.sectionVoicemailFlows), a.VoiceSurveyFlow = new a("voiceSurveyFlow", r2.flow.types.voiceSurveyFlow, r2.navigationDropDown.sectionVoiceSurveyFlows), a.Workflow = new a("workflow", r2.flow.types.workflow, r2.navigationDropDown.sectionWorkflowFlows), a.WorkItemFlow = new a("workItemFlow", r2.flow.types.workItem, r2.navigationDropDown.sectionWorkItemFlows), a.DataTable = new a("dataTable", r2.dataTable.dataTable, r2.externalAuths.dataTablesView.displayTitle), a.DigitalAudio = new a("digitalAudio", r2.generic.digitalAudio), a.File = new a("file", r2.file.file), a.FlowMilestone = new a("flowMilestone", r2.flowOutcomes.flowMilestone, r2.externalAuths.flowMilestonesView.displayTitle), a.FlowOutcome = new a("flowOutcome", r2.flowOutcomes.flowOutcome, r2.externalAuths.flowOutcomesView.displayTitle), a.TtsEngine = new a("ttsEngine", r2.textToSpeech.ttsEngineDependencyString), a.TtsVoice = new a("ttsVoice", r2.textToSpeech.ttsVoice), a.DialogflowAgent = new a("dialogflowAgent", r2.dialogflow.dialogflowAgent), a.DialogflowCxAgent = new a("dialogflowCxAgent", r2.dialogflowCx.dialogflowCxAgent), a.DialogEngineBot = new a("dialogEngineBot", r2.dialogEngine.dialogEngineBot), a.DialogEngineBotVersion = new a("dialogEngineBotVersion", r2.dialogEngine.dialogEngineBotVersion), a.FlowAction = new a("flowAction", r2.action.action), a.FlowDataType = new a("flowDataType", r2.generic.type), a.NLUDomain = new a("nluDomain", r2.bot.naturalLanguageUnderstanding), a.NLUDomain.hideFromGrid = true, a.KnowledgeBase = new a("knowledgeBase", r2.knowledgeSettings.knowledgeBase, r2.externalAuths.knowledgeBaseView.knowledgeBaseViewDisplayTitle), a.ConversationSummarySetting = new a("conversationSummarySetting", r2.customNodes.virtualAgentSettings.conversationSummarySettingsTitle, r2.customNodes.virtualAgentSettings.conversationSummarySettingsTitle), a.KnowledgeSetting = new a("knowledgeSetting", r2.knowledgeSettings.knowledgeSetting, r2.knowledgeSettings.knowledgeSetting), a.KnowledgeBaseDocument = new a("knowledgeBaseDocument", r2.knowledgeSettings.knowledgeBaseDocument, r2.externalAuths.knowledgeBaseDocumentView.knowledgeBaseDocumentViewDisplayTitle), a.Image = new a("image", r2.image.image), a.OAuthClient = new a("oAuthClient", r2.oauthClient.label), a.ResponseAsset = new a("responseAsset", r2.responseAsset.responseAsset), a.SpeechToTextEngine = new a("sttEngine", r2.speechToText.speechToTextEngineLabel), a.Grammar = new a("grammar", r2.grammars.grammarLabel, r2.externalAuths.grammarView.displayTitle), a.SurveyForm = new a("surveyForm", r2.voiceSurvey.surveyFormLabel, r2.externalAuths.surveyFormView.displayTitle), a.Schema = new a("schema", r2.workitem.schemaLabel), a.Worktype = new a("worktype", r2.workitem.worktypeLabel, r2.externalAuths.worktypesView.displayTitle), Object.defineProperties(a.prototype, { toJSON: { value: function() { + return this.value; + } } }), e2.exports = a; + }, 27873: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = i2(26847), o = n2.__importDefault(i2(62957)); + class a extends o.default { + constructor(e3) { + super(e3); + } + get displayTypeName() { + return "ArchBaseActionWithOutputsFailureNoInput"; + } + get isArchBaseActionWithOutputsFailureNoInput() { + return true; + } + get outputNoInput() { + return this._getOutputById(r2.outputIds.noInput, true); + } + } + t2.default = a; + }, 27936: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = i2(96618), o = i2(77685), a = n2.__importStar(i2(77685)), s = i2(12179), l = n2.__importStar(i2(34475)), u = i2(47957), d = new class { + constructor() { + this.linkIdsToLinkUrl = {}, this.linkIdsToLinkUrl[this.aboutGenesysVirtualAgent.id] = this.aboutGenesysVirtualAgent, this.linkIdsToLinkUrl[this.adminOrganizationSettings.id] = this.adminOrganizationSettings, this.linkIdsToLinkUrl[this.decisionTableUsageFees.id] = this.decisionTableUsageFees, this.linkIdsToLinkUrl[this.flowsCallingFlows.id] = this.flowsCallingFlows, this.linkIdsToLinkUrl[this.genesysCloudTokensBasedPricingModel.id] = this.genesysCloudTokensBasedPricingModel, this.linkIdsToLinkUrl[this.resourceCenter.id] = this.resourceCenter, this.linkIdsToLinkUrl[this.resourceCenterExecutionData.id] = this.resourceCenterExecutionData, this.linkIdsToLinkUrl[this.resourceCenterUrlCustomKnowledge.id] = this.resourceCenterUrlCustomKnowledge, this.linkIdsToLinkUrl[this.resourceCenterUrlInNewWindow.id] = this.resourceCenterUrlInNewWindow, this.linkIdsToLinkUrl[this.sttEngineOverview.id] = this.sttEngineOverview, this.linkIdsToLinkUrl[this.surveyFormsAdmin.id] = this.surveyFormsAdmin, this.linkIdsToLinkUrl[this.surveyFormAdmin.id] = this.surveyFormAdmin, this.linkIdsToLinkUrl[this.voiceMismatchHelp.id] = this.voiceMismatchHelp, this.linkIdsToLinkUrl[this.voiceSurveyFlows.id] = this.voiceSurveyFlows, this.linkIdsToLinkUrl[this.webChatDeprecation.id] = this.webChatDeprecation, this.linkIdsToLinkUrl[this.workitemFlows.id] = this.workitemFlows, this.linkIdsToLinkUrl[this.workTypesAdmin.id] = this.workTypesAdmin, this.linkIdsToLinkUrl[this.workTypeCustomAttributesAdmin.id] = this.workTypeCustomAttributesAdmin, this.linkIdsToLinkUrl[this.botFlowSettingsNode.id] = this.botFlowSettingsNode, this.linkIdsToLinkUrl[this.summaryWorkbench.id] = this.summaryWorkbench; + } + get className() { + return "LinkInfo"; + } + get adminOrganizationSettings() { + return { id: "__ORGANIZATION_SETTINGS__", linkTitle: u.admin.adminOrganizationSettingsLabel, getLinkUrl: () => l.getAdminOrganizationSettingsUrl(), name: "Link.OrganizationSettings" }; + } + get flowsCallingFlows() { + return { id: "__FLOWS_CALLING_FLOWS__", getLinkUrl: () => (0, o.getHelpUrl)(s.helpTopics.articles.flowsCallingFlows), linkTitle: u.help.resourceCenter, name: "Link.FlowsCallingFlows", helpTopic: s.helpTopics.articles.flowsCallingFlows }; + } + get resourceCenter() { + return { id: "__RESOURCE_CENTER__", getLinkUrl: () => a.getHelpUrl(s.helpTopics.articles.resourceCenter), linkTitle: u.help.resourceCenter, name: "Link.ResourceCenter", helpTopic: s.helpTopics.articles.resourceCenter }; + } + get decisionTableUsageFees() { + return { id: "__DECISION_TABLE_USAGE_FEES__", getLinkUrl: () => a.getHelpUrl(s.helpTopics.articles.decisionTableUsageFees), linkTitle: u.help.resourceCenter, name: "Link.DecisionTablesUsageFees", helpTopic: s.helpTopics.articles.decisionTableUsageFees }; + } + get summaryWorkbench() { + return { id: "__SUMMARY_WORKBENCH__", linkTitle: u.customNodes.virtualAgentSettings.conversationSummarySettingsWorkbenchBanner, getLinkUrl: () => l.getAdminConversationSummarySettingUrl() }; + } + get resourceCenterUrlInNewWindow() { + return { id: "__RESOURCE_CENTER_URL_NEW_WINDOW__", getLinkUrl: () => a.getHelpUrl(s.helpTopics.articles.resourceCenter), helpTopic: s.helpTopics.articles.resourceCenter, name: "Link.ResourceCenterNewWindow", onClick: () => a.openHelpTopic(s.helpTopics.articles.resourceCenter, { forceNewWindow: true }) }; + } + get resourceCenterUrlCustomKnowledge() { + return { id: "__RESOURCE_CENTER_URL_CUSTOM_KNOWLEDGE__", getLinkUrl: () => a.getHelpUrl(s.helpTopics.articles.customKnowledge), helpTopic: s.helpTopics.articles.customKnowledge, name: "Link.ResourceCenterCustomKnowledge" }; + } + get resourceCenterExecutionData() { + return { id: "__RESOURCE_CENTER_EXECUTION_DATA__", getLinkUrl: () => a.getHelpUrl(s.helpTopics.articles.historicalExecutionDataOverview), linkTitle: u.help.resourceCenter, name: "Link.ResourceCenterExecutionData", helpTopic: s.helpTopics.articles.historicalExecutionDataOverview }; + } + get aboutGenesysVirtualAgent() { + return { id: "__VIRTUAL_AGENT_HELP__", getLinkUrl: () => a.getHelpUrl(s.helpTopics.articles.aboutGenesysVirtualAgent), name: "Link.ResourceCenterVirtualAgent", helpTopic: s.helpTopics.articles.aboutGenesysVirtualAgent }; + } + get genesysCloudTokensBasedPricingModel() { + return { id: "__GENESYS_CLOUD_TOKENS_BASED_PRICING_MODEL__", getLinkUrl: () => a.getHelpUrl(s.helpTopics.articles.genesysCloudTokensBasedPricingModel), linkTitle: u.help.resourceCenter, name: "Link.ResourceCenterTokenBasedPricingModel", helpTopic: s.helpTopics.articles.genesysCloudTokensBasedPricingModel }; + } + get sttEngineOverview() { + return { id: "__STT_ENGINE_OVERVIEW__", getLinkUrl: () => a.getHelpUrl(s.helpTopics.articles.sttEngineOverview), name: "link.sttEngineOverview", helpTopic: s.helpTopics.articles.sttEngineOverview }; + } + get surveyFormsAdmin() { + return { id: "__SURVEY_FORMS__", getLinkUrl: () => l.getAdminSurveyFormsUrl() }; + } + get surveyFormAdmin() { + return { id: "__SURVEY_FORM__", getLinkUrl: () => l.getAdminSurveyFormsUrl() }; + } + get voiceMismatchHelp() { + return { id: "__VOICE_MISMATCH_LINK__", getLinkUrl: () => (0, o.getHelpUrl)(s.helpTopics.articles.ttsOverview), helpTopic: s.helpTopics.articles.ttsOverview }; + } + get voiceSurveyFlows() { + return { id: "__VOICE_SURVEY_FLOWS__", getLinkUrl: () => l.getArchitectFlowsBaseUrl(r2.flowTypes.flowTypeVoiceSurvey) }; + } + get webChatDeprecation() { + return { id: "__CHAT_DEPRECATION__", getLinkUrl: () => a.getHelpUrl(s.helpTopics.articles.chatDeprecation), linkTitle: u.webChatDeprecationLinkText, name: "Link.WebChatDeprecation" }; + } + get workitemFlows() { + return { id: "__WORKITEM_FLOWS__", getLinkUrl: () => l.getArchitectFlowsBaseUrl(r2.flowTypes.flowTypeWorkitem) }; + } + get workTypesAdmin() { + return { id: "__WORKTYPES__", getLinkUrl: () => l.getAdminWorktypesUrl() }; + } + get workTypeCustomAttributesAdmin() { + return { id: "__CUSTOM_ATTRIBUTES__", getLinkUrl: () => l.getAdminWorktypeCustomAttributesUrl() }; + } + get botFlowSettingsNode() { + return { id: "__BOT_FLOW_SETTINGS_NODE__", linkTitle: u.botFlowSettings.titleWithSettings, getLinkUrl: () => "#", navigateToNodeId: "botFlowSettings", name: "Link.BotFlowSettings" }; + } + }(); + t2.default = d; + }, 28031: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.WorktypeStatusCategories = void 0, t2.getWorktypeStatusCategoryLabel = function(e3) { + switch (e3) { + case a.closed: + return r2.workitem.worktypeStatusClosed; + case a.inProgress: + return r2.workitem.worktypeStatusInProgress; + case a.open: + return r2.workitem.worktypeStatusOpen; + case a.waiting: + return r2.workitem.worktypeStatusWaiting; + default: + return o.traceOnce("missingWorktypeStatus", (t3) => t3.error(`No worktype status found for category: '${e3}'. You may need to add a new entry to the worktype status enum.`)), e3; + } + }; + const n2 = i2(24032), r2 = i2(47957), o = (0, n2.getTopic)("workitemFlowStatusCategories"); + var a; + !(function(e3) { + e3.open = "Open", e3.inProgress = "InProgress", e3.waiting = "Waiting", e3.closed = "Closed"; + })(a || (t2.WorktypeStatusCategories = a = {})); + }, 28033: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.ExpressionTypeCarouselOptions = void 0; + const n2 = i2(19507); + class r2 extends n2.BaseExpressionTypeOptions { + static create(e3) { + return new this().invokeOptionsCallback(e3); + } + constructor() { + super(); + } + get className() { + return "ExpressionTypeCarouselOptions"; + } + get isExpressionTypeCarouselOptions() { + return true; + } + } + t2.ExpressionTypeCarouselOptions = r2; + }, 28044: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.ArchFactoryTasks = void 0; + const n2 = i2(31635), r2 = n2.__importDefault(i2(92140)), o = n2.__importDefault(i2(84783)), a = n2.__importDefault(i2(38689)); + class s extends o.default { + get displayTypeName() { + return "ArchFactoryTasks"; + } + get logStr() { + return this._createLogStrFromParts(["ArchFactoryTasks"]); + } + get isArchFactoryTasks() { + return true; + } + addTask(e3, t3, i3) { + const n3 = this._infoParm("archBaseFlow", "addTask"); + this._checkItem(n3, !e3 || !e3.isArchBaseFlow, "you must pass in a valid ArchBaseFlow instance."), this._checkItem(n3, !e3.definition.supportsTasksReusable, `the flow type '${e3.flowType}' does not support tasks.`), this._checkItemIsValidLiteralString(this._infoParm("name", "addTask"), t3, true), this._checkItemIsValidLiteralBool(this._infoParm("setAsStartingTask", "addTask"), i3, true), i3 && this._checkItem(n3, !e3.definition.startUpObjectCanBeTask, `a task cannot be the startup object for the flow type '${e3.flowType}'.`); + const o2 = e3._getCoreViewModel().createTask(); + r2.default.isString(t3) && t3.length && (o2.name = t3); + const s2 = a.default.createArchWrapper(o2); + return i3 && e3.setStartingTask(s2), s2; + } + } + t2.ArchFactoryTasks = s, t2.default = new s(); + }, 28071: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(81574)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "journeySessionSegmentAssignment"; + } + get id() { + } + get assignedDate() { + } + get displayTypeName() { + return "ArchValueJourneySessionSegmentAssignment"; + } + get isArchValueJourneySessionSegmentAssignment() { + return true; + } + } + t2.default = r2; + }, 28080: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.QueueType = void 0; + const n2 = i2(31635), r2 = i2(71056), o = i2(19444), a = i2(27491), s = n2.__importDefault(i2(22226)), l = i2(80428), u = i2(14394), d = i2(94765); + class c extends d.ExpressionType { + constructor(e3, t3, i3) { + super(e3, t3, i3); + } + get className() { + return "QueueType"; + } + createExpressionOptionClass() { + return new r2.ExpressionTypeNetworkObjectOptions(this.isCollection); + } + get listManager() { + return o.queueManager.getBriefManagerWithFallback(); + } + canConvertLitToExpression(e3) { + return a.expressionDataService.isFunctionTextAvailableForFlowTypeAndOperandTypes("FindQueue", e3, [u.globalTypes.string]); + } + convertLitToExpression(e3, t3) { + return t3 && this.canConvertLitToExpression(e3) ? `FindQueue(${s.default.getQuotedExpressionStringLiteral(t3)})` : ""; + } + } + t2.QueueType = c, c.typeIdentifier = l.expressionTypeNames.queue; + }, 28126: (e2, t2, i2) => { + const n2 = i2(13240), { dialNameActionType: r2 } = i2(30801), o = i2(46056), a = i2(94745), s = i2(7401); + function l() { + Object.defineProperties(this, { _matchByType: { writable: true }, _matchingStyle: { writable: true }, _specificNumChars: { writable: true } }), l.baseConstructor.apply(this, arguments); + } + n2.extend(l, r2, true), Object.defineProperties(l.prototype, { pasteReIdOrRename: { value: function(e3) { + l._super.pasteReIdOrRename.apply(this, arguments), this.specificNumChars.pasteReIdOrRename(e3); + } }, pasteResolveOldToNewValues: { value: function(e3) { + l._super.pasteResolveOldToNewValues.apply(this, arguments), this.specificNumChars.pasteResolveOldToNewValues(e3); + } }, matchByType: { enumerable: true, get: function() { + return this._matchByType; + }, set: function(e3) { + this._matchByType = this.reviveEnum(e3, a); + } }, matchingStyle: { enumerable: true, get: function() { + return this._matchingStyle; + }, set: function(e3) { + this._matchingStyle = this.reviveEnum(e3, o); + } }, specificNumChars: { enumerable: true, get: function() { + return this._specificNumChars; + }, set: function(e3) { + this._specificNumChars = this.reviveItem(e3, s); + } } }), e2.exports = l; + }, 28130: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(55909), r2 = i2(33951); + class o { + constructor() { + this._actions = []; + } + static create(e3, t3, i3) { + return new o()._setId(e3)._setName(t3)._setIcon(i3); + } + get actions() { + return this._actions; + } + addActionClass(e3) { + if (this._actions.includes(e3)) return; + let t3 = 0; + for (; t3 < this._actions.length && !(e3.info.displayIndex < this._actions[t3].info.displayIndex); ) t3++; + this._actions.splice(t3, 0, e3); + } + get className() { + return "ActionCategory"; + } + get guxIcon() { + return this._icon.gux; + } + get id() { + return this._id; + } + get name() { + return this._name; + } + _setIcon(e3) { + return this._icon = e3, this; + } + _setId(e3) { + return this._id = r2.ParameterValidator.expectString(e3, () => n2.ParameterInfo.createPropertySet(this.className, "id", "value")), this; + } + _setName(e3) { + return this._name = r2.ParameterValidator.expectString(e3, () => n2.ParameterInfo.createPropertySet(this.className, "name", "value")), this; + } + } + t2.default = o; + }, 28195: (e2) => { + e2.exports = { callback: "callback", chat: "chat", email: "email", message: "message", screenPop: "screenPop" }; + }, 28206: (e2, t2, i2) => { + "use strict"; + const n2 = i2(31635), r2 = n2.__importDefault(i2(27203)), o = i2(53755), a = i2(21305), s = i2(77787), l = i2(12786), u = i2(12179), d = n2.__importDefault(i2(97891)), c = i2(47957); + class p extends o.BaseConversationAttributeActionViewModel { + constructor(e3, t3) { + super(e3, t3), this._loadModel(t3); + } + static createCustomJsonProperties() { + return this.createManagedPropertiesFromConfig({ includeInput: false, includeOutput: true, outputOptionsFactory: () => a.ExpressionTypeJsonOptions.create((e3) => { + e3.setAsOutput().setIsCustomJsonType(true).setLabelOverride(c.conversationAttribute.resultLabel).setIninTestingField("customJsonOutput"); + }) }); + } + static get managedProperties() { + return [...this.createBaseManagedProperties(), this.createRecordIdManagedProperty(), ...this.createCustomJsonProperties()]; + } + static get branchInfo() { + return r2.default.foundNotFound; + } + _getPossibleErrors() { + return l.getConversationAttributeFailureReasons; + } + } + p.info = d.default.createActionInfo({ actionClass: p, canBeInTask: true, helpTopic: u.helpTopics.actions.getConversationAttribute, modelClass: s.GetConversationAttributeActionModel, name: c.actions.getConversationAttribute, scriptingName: "ArchActionGetConversationAttribute" }), t2.A = p; + }, 28264: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.dataActionManager = t2.DataActionManager = void 0; + const n2 = i2(84822), r2 = i2(30801), o = i2(24032), a = i2(47957), s = i2(27862); + class l extends n2.BaseIntegrationsActionManager { + get dependencyType() { + return s.DataAction; + } + constructor() { + super(), this.topic = (0, o.getTopic)("dataActionManager"), this.actionsForUsageSearch = [r2.dataActionActionType], this.additionalQueryParams = { secure: false }, this.defaultInputsWithNoDefaultToNotSet = true, this.dependencyContext = a.dataAction.dataAction, this.className = "DataActionManager", this._initialize(); + } + } + t2.DataActionManager = l, t2.dataActionManager = new l(); + }, 28267: (e2, t2, i2) => { + function n2() { + this.format = void 0, this.inputSchema = void 0, this.method = void 0, this.successSchema = void 0, n2.baseConstructor.apply(this, arguments); + } + i2(45214).extend(n2, "BridgeServerRequest"), e2.exports = n2; + }, 28290: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.ExpressionTypeVideoOptions = void 0; + const n2 = i2(65615); + class r2 extends n2.BaseExpressionTypeCollectionOptions { + static create(e3, t3) { + return new this(t3).invokeOptionsCallback(e3); + } + constructor(e3) { + super(e3); + } + get className() { + return "ExpressionTypeVideoOptions"; + } + get isExpressionTypeVideoOptions() { + return true; + } + } + t2.ExpressionTypeVideoOptions = r2; + }, 28323: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(11210)), r2 = i2(30801); + class o extends n2.default { + constructor(e3) { + super(e3), this._intent = this.coreFactory.createArchValueFromExpression(e3.intent); + } + get _actionTypeId() { + return r2.setActiveIntentActionType; + } + get displayTypeName() { + return "ArchActionSetIntent"; + } + get intent() { + return this._intent; + } + get isArchActionSetIntent() { + return true; + } + } + t2.default = o; + }, 28326: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = i2(38249), o = n2.__importDefault(i2(78432)), a = n2.__importDefault(i2(37873)); + class s extends a.default { + constructor(e3) { + super(e3), this._coreErrorHandlingSettingsViewModel = e3, e3.audio && (this._preHandlingAudio = this.coreFactory.createArchWrapper(e3.audio)), e3.queue && (this._targetArchQueue = this.coreFactory.createArchWrapper(e3.queue)), e3.abortMessage && (this._abortMessage = this.coreFactory.createArchWrapper(e3.abortMessage)); + } + get displayTypeName() { + return "ArchSettingsEventErrorFlow"; + } + get logStr() { + if (!this._coreErrorHandlingSettingsViewModel) return this.logStrTypeOnly; + const e3 = []; + let t3; + switch (this._appendLogStrType(e3, this.displayTypeName), this._appendLogStrParentFlowInfo(e3, this._getCoreViewModel()), this._appendLogStrSettingErrorHandlingFlow(e3, this.handling), this.handling) { + case o.default.EVENTS_FLOW_ERROR_HANDLING.jumpToMenu: + this._targetArchMenu && (t3 = this._targetArchMenu.logStr); + break; + case o.default.EVENTS_FLOW_ERROR_HANDLING.transferToQueue: + this._targetArchQueue && (t3 = this._targetArchQueue.logStr); + break; + case o.default.EVENTS_FLOW_ERROR_HANDLING.jumpToTask: + this._targetArchTask && (t3 = this._targetArchTask.logStr); + break; + case o.default.EVENTS_FLOW_ERROR_HANDLING.abortSend: + this._abortMessage && (t3 = this._abortMessage.logStr); + } + return t3 && this._appendLogStrPartRawString(e3, t3), this._createLogStrFromParts(e3); + } + get isArchSettingsEventErrorFlow() { + return true; + } + get parentFlow() { + return this.coreFactory.createArchWrapper(this._getCoreViewModel().parentFlow); + } + get preHandlingAudio() { + return this._preHandlingAudio; + } + get handling() { + return r2.archHandlingTypeConversion.getArchEnumHandlingForCoreHandling(this._coreErrorHandlingSettingsViewModel.handlingType); + } + set handling(e3) { + const t3 = this._infoPropSet("newErrorEventHandlingTypeValue", "handling"); + this._checkItemIsValidLiteralStringEnum(t3, e3, o.default.EVENTS_FLOW_ERROR_HANDLING_ALL), this.isErrorHandlingTypeAvailable(e3) || this.logItemErrorAndThrow(t3, `the handling type of '${e3}' is not available for the flow type '${this.parentFlow.flowType}'.`); + const i3 = r2.archHandlingTypeConversion.getCoreHandlingTypeForEnum(e3); + this.logNote(`setting the flow error handling type to '${e3}'.`), this._coreErrorHandlingSettingsViewModel.handlingType = i3; + } + isErrorHandlingTypeAvailable(e3) { + return this._checkItemIsValidLiteralStringEnum(this._infoParm("errorHandlingEnumValue", "isErrorHandlingValueAvailable"), e3, o.default.EVENTS_FLOW_ERROR_HANDLING_ALL), r2.archHandlingTypeConversion.findHandlingTypeForValue(this._coreErrorHandlingSettingsViewModel.handlingTypes, e3); + } + isRecognitionErrorHandlingTypeAvailable(e3) { + return this._checkItemIsValidLiteralStringEnum(this._infoParm("errorHandlingEnumValue", "isRecognitionErrorHandlingTypeAvailable"), e3, o.default.EVENTS_FLOW_ERROR_HANDLING_ALL), r2.archHandlingTypeConversion.findHandlingTypeForValue(this._getCoreViewModel().recognitionHandlingTypes, e3); + } + isAgentEscalationHandlingTypeAvailable(e3) { + return this._checkItemIsValidLiteralStringEnum(this._infoParm("errorHandlingEnumValue", "isAgentEscalationHandlingTypeAvailable"), e3, o.default.EVENTS_FLOW_ERROR_HANDLING_ALL), r2.archHandlingTypeConversion.findHandlingTypeForValue(this._getCoreViewModel().agentEscalationHandling.handlingTypes, e3); + } + get targetMenu() { + return this._targetArchMenu; + } + set targetMenu(e3) { + this._checkItem(this._infoPropSet("archMenuTarget", "targetMenu"), !e3 || !e3.isArchMenu, "you cannot set the targetMenu to an object that is not an Architect menu"), this.logNote("setting the event error handling menu of " + e3.logStr), this._targetArchMenu = e3, this._getCoreViewModel().menuReference = e3.id; + } + get targetState() { + return this._targetArchState; + } + set targetState(e3) { + this._checkItem(this._infoPropSet("archStateTarget", "targetState"), !e3 || !e3.isArchState, "you cannot set the targetState to an object that is not an Architect state"), this.logNote("setting the event error handling state of " + e3.logStr), this._targetArchState = e3, this._getCoreViewModel().stateReference = e3.id; + } + get targetTask() { + return this._targetArchTask; + } + set targetTask(e3) { + this._checkItem(this._infoPropSet("archTaskTarget", "targetTask"), !e3 || !e3.isArchTask, "you cannot set the targetTask to an object that is not an Architect task"), this.logNote("setting the event error handling task of " + e3.logStr), this._targetArchTask = e3, this._getCoreViewModel().taskReference = e3.id; + } + get targetQueue() { + return this._targetArchQueue; + } + get abortMessage() { + return this._abortMessage; + } + } + t2.default = s; + }, 28333: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importDefault(i2(94225)), o = i2(27854), a = i2(27854), s = i2(27854), l = i2(27854), u = i2(43011), d = i2(43011), c = n2.__importDefault(i2(56549)), p = n2.__importDefault(i2(40559)); + class _ extends p.default { + constructor(e3) { + super(e3, d.userPromptListManager); + } + get _globalTypeName() { + return "promptCollection"; + } + get displayTypeName() { + return "ArchValuePromptCollection"; + } + addLiteralByPromptNameAsync(e3, t3) { + return n2.__awaiter(this, void 0, void 0, function* () { + const i3 = this._infoParm("promptName", "addLiteralByPromptNameAsync"); + this._checkItemIsValidLiteralString(this._infoParm("promptName", "addLiteralByPromptNameAsync"), e3), this._checkItemIsValidFunction(this._infoParm("callbackFunction", "addLiteralByPromptNameAsync"), t3, true), this._checkItem(i3, !this._settings.canBeLiteral, `you cannot assign a prompt literal because this value ${this.settings.logStr} cannot be a literal.`); + const n3 = (0, o.hasSystemPromptPrefix)(e3), p2 = !n3 && (0, a.hasUserPromptPrefix)(e3); + n3 || p2 || this._itemIsInvalid(i3, `the name in promptName did not start with '${s.prefixes.user}' or '${s.prefixes.system}'`); + const _2 = n3 ? u.systemPromptListManager : d.userPromptListManager; + e3 = (0, l.removePrefix)(e3); + const h = yield c.default.findItemByValueAsync(_2, e3, "prompt"); + return this._addNetworkModelToCollection(h), r2.default.executeCallback(this, "addLiteralByPromptNameAsync", t3, this); + }); + } + addLiteralByPromptIdAsync(e3, t3) { + return n2.__awaiter(this, void 0, void 0, function* () { + const i3 = this._infoParm("promptId", "addLiteralByPromptIdAsync"); + this._checkItemIsValidLiteralString(i3, e3), this._checkItemIsValidFunction(this._infoParm("callbackFunction", "addLiteralByPromptIdAsync"), t3, true), this._checkItem(i3, !this._settings.canBeLiteral, `you cannot assign a prompt literal because this value ${this.settings.logStr} cannot be a literal.`); + const n3 = yield c.default.findItemByIdAsync(d.userPromptListManager, e3, "prompt"); + return this._addNetworkModelToCollection(n3), r2.default.executeCallback(this, "addLiteralByPromptIdAsync", t3, this); + }); + } + get isArchValuePromptCollection() { + return true; + } + } + t2.default = _; + }, 28350: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.createWorkitem = t2.getSchema = t2.getWorktype = t2.getWorktypes = void 0; + const n2 = i2(31635), r2 = n2.__importDefault(i2(80408)), o = n2.__importDefault(i2(48019)), a = i2(42607), s = n2.__importDefault(i2(67377)), l = n2.__importDefault(i2(36019)), u = { ignoreBadResponse: true }; + t2.getWorktypes = l.default.request("POST", "{public-api.apps}/api/v2/taskmanagement/worktypes/query", a.WorktypeList, u), t2.getWorktype = l.default.request("GET", "{public-api.apps}/api/v2/taskmanagement/worktypes/{id}?expands=defaultQueue,defaultLanguage,schema,defaultSkills", o.default, u), t2.getSchema = l.default.request("GET", "{public-api.apps}/api/v2/taskmanagement/workitems/schemas/{id}", s.default, u), t2.createWorkitem = l.default.request("POST", "{public-api.apps}/api/v2/taskmanagement/workitems/", r2.default, u); + }, 28403: (e2, t2, i2) => { + const n2 = i2(92140), r2 = i2(93805), o = i2(45214), { uuid: a } = i2(9456); + function s() { + this.createDateTimeStr = void 0, this.id = void 0, s.baseConstructor.apply(this, arguments), n2.isUndefined(this.createDateTimeStr) && (this.createDateTimeStr = (/* @__PURE__ */ new Date()).toISOString()), n2.isUndefined(this.id) && (this.id = a()); + } + o.extend(s, "BaseClipboardModel"), Object.defineProperties(s.prototype, { cloneToRawJsonObject: { value: function(e3) { + return n2.isUndefined(e3) || null === e3 ? e3 : n2.deepClone(e3); + } }, dependencies: { enumerable: true, get: function() { + return this._dependencies; + }, set: function(e3) { + this._variables = this.reviveItem(e3, r2); + } } }), e2.exports = s; + }, 28443: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.screenPopManager = t2.ScreenPopManager = void 0; + const n2 = i2(31635).__importDefault(i2(92140)), r2 = i2(24032), o = i2(30801), a = i2(82915), s = i2(47957), l = i2(52124), u = i2(28195); + class d extends a.ScriptManager { + constructor() { + super("ScreenPopManager"), this.topic = (0, r2.getTopic)("screenPopManager"), this.actionsForUsageSearch = [o.screenPopActionType], this.apiCallList = n2.default.partial(l.getScriptsForFeature, u.screenPop), this.dependencyContext = s.screenPop.selectedScreenPop, this.scriptFeatureType = u.screenPop; + } + } + t2.ScreenPopManager = d, t2.screenPopManager = new d(); + }, 28447: (e2, t2, i2) => { + "use strict"; + var n2; + Object.defineProperty(t2, "__esModule", { value: true }); + const r2 = i2(31635), o = r2.__importDefault(i2(2257)), a = r2.__importDefault(i2(56549)), s = i2(30801), l = i2(77667), u = i2(77681), d = r2.__importDefault(i2(66978)); + class c extends o.default { + constructor(e3) { + super(e3), n2.set(this, void 0), this._aliasManager = l.lexAliasManager, this._botNameManager = u.lexBotNameManager, r2.__classPrivateFieldSet(this, n2, this.coreFactory.createArchWrapper(e3.prompts), "f"); + } + get _actionTypeId() { + return s.lexActionType; + } + get displayTypeName() { + return this._scriptingName; + } + get isArchActionCallLexBot() { + return true; + } + setLexBotAliasByIdAsync(e3, t3) { + return this._checkItemIsValidLiteralString(this._infoParm("lexBotAliasId", "setLexBotAliasByIdAsync"), e3, false), this._checkItemIsValidFunction(this._infoParm("callbackFunction", "setLexBotAliasByIdAsync"), t3, true), this._setLexBotAliasByIdAsync("setLexBotAliasByIdAsync", e3, t3); + } + setLexBotAliasByNameAsync(e3, t3, i3, n3) { + return this._checkItemIsValidLiteralString(this._infoParm("aliasName", "setLexBotAliasByNameAsync"), e3), this._checkItemIsValidLiteralString(this._infoParm("botName", "setLexBotAliasByNameAsync"), t3), this._checkItemIsValidLiteralBool(this._infoParm("searchByBotName", "setLexBotAliasByNameAsync"), i3), this._checkItemIsValidFunction(this._infoParm("callbackFunction", "setLexBotAliasByNameAsync"), n3, true), i3 ? a.default.findItemByValueAsync(this._botNameManager, t3, "lex bot", null, null).then((i4) => (this.logNote(`Found partial info for the Lex Bot named '${i4.name}' for the passed bot name of '${t3}'. Getting full bot details.`), this._getCoreViewModel().setBotCategoryByViewModel(i4), a.default.findItemByValueAsync(this._aliasManager, e3, "lex alias", null, null, null, { botId: i4.id }).then((t4) => (this.logNote(`Found partial info for the Lex Bot Alias named '${t4.name}' for the passed alias name of '${e3}'. Getting full alias details.`), d.default.addPromise(this._setLexBotAliasByIdAsync("setLexBotAliasByNameAsync", t4.id, n3), "setLexBotAliasByNameAsync"))))) : a.default.findItemByValueAsync(this._aliasManager, e3, "lex alias", null, null, null, { botId: t3 }).then((t4) => (this.logNote(`Found partial info for the Lex Bot Alias named '${t4.name}' for the passed alias name of '${e3}'. Getting full alias details.`), d.default.addPromise(this._setLexBotAliasByIdAsync("setLexBotAliasByNameAsync", t4.id, n3), "setLexBotAliasByNameAsync"))); + } + get startAudio() { + return r2.__classPrivateFieldGet(this, n2, "f"); + } + } + n2 = /* @__PURE__ */ new WeakMap(), t2.default = c; + }, 28462: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.SurveyAnswerOptionType = t2.PROP_TEXT = t2.PROP_DTMF = t2.PROP_ID = void 0; + const n2 = i2(31635), r2 = n2.__importDefault(i2(92140)), o = i2(14394), a = n2.__importDefault(i2(7401)), s = i2(8532), l = i2(44351), u = n2.__importStar(i2(63352)), d = i2(80428), c = i2(59263), p = i2(39168), _ = i2(94765), h = i2(47957); + t2.PROP_ID = "id", t2.PROP_DTMF = "dtmf", t2.PROP_TEXT = "text"; + class m extends _.ExpressionType { + constructor(e3, t3, i3) { + super(e3, t3, i3); + } + get className() { + return "SurveyAnswerOptionType"; + } + createExpressionOptionClass() { + return new s.ExpressionTypeSurveyAnswerOptionOptions(); + } + _getLiteralValueOfExpression() { + return ""; + } + validateLiteral(e3, t3) { + return true; + } + get supportsLiteralEditor() { + return true; + } + getYamlObjectForLiteralSingleton(e3, t3, i3, n3) { + const r3 = super.getYamlObjectForLiteralSingleton(e3, t3, i3, n3); + return null == r3 || delete r3.id, r3; + } + setDtmf(e3, i3) { + var n3; + if (!(null == e3 ? void 0 : e3.isLiteralMode)) return false; + const r3 = e3.getProperty(t2.PROP_ID, true); + if (!r3) return false; + const o2 = r3.text; + if (!o2) return false; + const a2 = e3.getProperty(t2.PROP_DTMF, true); + return !!a2 && !!(null === (n3 = e3.parentFlow) || void 0 === n3 ? void 0 : n3.setAnswerOptionDtmf(o2, i3)) && void (i3 !== a2.text && a2.setAsLiteral(i3)); + } + static createExpressionOptionClass() { + return new s.ExpressionTypeSurveyAnswerOptionOptions(); + } + static create(e3, t3, i3) { + const n3 = m.createExpressionOptionClass(), r3 = new a.default(), s2 = new c.ExpressionParameters(e3, t3, r3); + s2.type = o.globalTypes.surveyAnswerOption, s2.options = n3; + const l2 = new p.NormalExpression(s2); + return l2.type.populateFromSurveyAnswerOption(l2, i3), l2; + } + populateFromSurveyAnswerOption(e3, i3) { + if (!e3) return; + e3.mode = u.literal; + const n3 = e3.getProperty(t2.PROP_ID), r3 = e3.getProperty(t2.PROP_TEXT), o2 = e3.getProperty(t2.PROP_DTMF); + n3 && (n3.options.setAllowModeLiteralOnly().setReadOnly(true), n3.setAsLiteral(i3.id)), r3 && (r3.options.setAllowModeLiteralOnly().setLabelOverride(h.voiceSurvey.voiceSurveyAnswerOptionValueLabel).setDescriptionInfo(void 0, void 0).setReadOnly(true), r3.setAsLiteral(i3.text)), o2 && (o2.options.setAllowModeLiteral(true).setAllowModeExpression(false).setReadOnly(false).setLabelOverride(h.voiceSurvey.voiceSurveyAnswerOptionDtmfLabel).setDescriptionInfo(void 0, void 0).facets.setMaxLength(2).setAllowableValues(l.surveyFormDtmfValues).setAllowableValuesUseInlineSelect(true).setAllowableValuesDisabledCallback(m._disableDTMFChoiceCallback).setAllowableValueUseOriginalDisplayString(true).setAllowableValuePlaceholder(h.voiceSurvey.voiceSurveyAnswerOptionDtmfLabel), o2.setAsLiteral(i3.dtmf)); + } + static _disableDTMFChoiceCallback(e3, t3) { + var i3, n3, r3; + const o2 = null === (n3 = null === (i3 = e3.parentFlow.userInputSettings) || void 0 === i3 ? void 0 : i3.dtmfTerminatingCharacter) || void 0 === n3 ? void 0 : n3.text; + if (o2 && o2 === t3.id) return true; + const a2 = null === (r3 = e3.propertyParent) || void 0 === r3 ? void 0 : r3.parentList; + return !!(null == a2 ? void 0 : a2.collectionItems.items.find((e4) => { + const i4 = e4.type.getDtmf(e4); + return i4 && i4 === t3.id; + })); + } + getDtmf(e3) { + var i3; + return null === (i3 = null == e3 ? void 0 : e3.getProperty(t2.PROP_DTMF, true)) || void 0 === i3 ? void 0 : i3.text; + } + populateFromSurveyAnswerOptions(e3, i3) { + e3 && (e3.setAsNoValue(), e3.setModeWithTransition(u.literal, void 0), r2.default.each(i3, (i4, n3) => { + const r3 = e3.collectionItems.createItem(null, null, e3.options), o2 = `surveyAnswerOption_${n3}`; + r3.options.setIninTestingField(o2), e3.collectionItems.addItem(r3), r3.type.populateFromSurveyAnswerOption(r3, i4); + const a2 = r3.getProperty(t2.PROP_DTMF, true); + null == a2 || a2.options.setIninTestingField(`${o2}_DTMF`); + const s2 = r3.getProperty(t2.PROP_TEXT, true); + null == s2 || s2.options.setIninTestingField(`${o2}_TEXT`); + })); + } + } + t2.SurveyAnswerOptionType = m, m.typeIdentifier = d.expressionTypeNames.surveyAnswerOption; + }, 28562: (e2, t2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.builderIds = void 0, t2.builderIds = { parts: { email: "__BUILDER_PARTS_EMAIL__", genericAgentScorePair: "__BUILDER_PARTS_GENERIC_AGENT_SCORE_PAIR__", genericAudio: "__BUILDER_PARTS_GENERIC_AUDIO__", genericBoolean: "__BUILDER_PARTS_GENERIC_BOOLEAN__", genericCommunication: "__BUILDER_PARTS_GENERIC_COMMUNICATION__", genericDateTime: "__BUILDER_PARTS_GENERIC_DATETIME__", genericDuration: "__BUILDER_PARTS_GENERIC_DURATION__", genericImage: "__BUILDER_PARTS_GENERIC_IMAGE__", genericInteger: "__BUILDER_PARTS_GENERIC_INTEGER__", genericString: "__BUILDER_PARTS_GENERIC_STRING__", genericPrompt: "__BUILDER_PARTS_GENERIC_PROMPT__", genericVideo: "__BUILDER_PARTS_GENERIC_VIDEO__", markdownCommunication: "__BUILDER_MARKDOWN_COMMUNICATION__", markdownString: "__BUILDER_MARKDOWN_STRING__", labelString: "__BUILDER_PARTS_LABEL_STRING__" } }; + }, 28614: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.ChooserType = t2.slotTypeValueMergeMode = t2.VALUE_SOURCE_TYPE_SLOT_TYPE = t2.VALUE_SOURCE_TYPE_SLOT = t2.VALUE_SOURCE_TYPE_CUSTOM = t2.PROP_TIMEPICKER = t2.PROP_QUICK_REPLIES = t2.PROP_LISTPICKER = t2.PROP_CAROUSEL = t2.PROP_CARD = t2.PROP_PRESENTATION = t2.PRESENTATION_MODE_LISTPICKER = t2.PRESENTATION_MODE_TIMEPICKER = t2.PRESENTATION_MODE_CAROUSEL = t2.PRESENTATION_MODE_QUICK_REPLIES = void 0; + const n2 = i2(31635), r2 = i2(68694), o = i2(68694), a = i2(17604), s = n2.__importDefault(i2(92140)), l = n2.__importStar(i2(63352)), u = i2(39964), d = n2.__importStar(i2(12847)), c = n2.__importStar(i2(36781)), p = n2.__importStar(i2(10798)), _ = n2.__importStar(i2(58380)), h = n2.__importStar(i2(66381)), m = n2.__importStar(i2(1115)), g = n2.__importDefault(i2(4648)), f = i2(82632), T = i2(80428), y = i2(44521), S = i2(1492), A = i2(1492), N = i2(53476), O = i2(53476), I = i2(92457), v = i2(47957); + t2.PRESENTATION_MODE_QUICK_REPLIES = "quickReplies", t2.PRESENTATION_MODE_CAROUSEL = "carousel", t2.PRESENTATION_MODE_TIMEPICKER = "timePicker", t2.PRESENTATION_MODE_LISTPICKER = "listPicker", t2.PROP_PRESENTATION = "presentation", t2.PROP_CARD = "card", t2.PROP_CAROUSEL = "carousel", t2.PROP_LISTPICKER = "listPicker", t2.PROP_QUICK_REPLIES = "quickReplies", t2.PROP_TIMEPICKER = "timePicker", t2.VALUE_SOURCE_TYPE_CUSTOM = "custom", t2.VALUE_SOURCE_TYPE_SLOT = "slot", t2.VALUE_SOURCE_TYPE_SLOT_TYPE = "slotType"; + const C = "valueSourceType", b = "valueSourceValue", E = { chooserNoChoicesConfiguredForSlotTypeValues: v.cardsAndCars.expression.chooserNoChoicesConfiguredForSlotTypeValues, chooserInvalidChoiceValueForSlotTypeExpressionMode: v.cardsAndCars.expression.chooserInvalidChoiceValueForSlotTypeExpressionMode, chooserInvalidChoiceValueForSlotType: v.cardsAndCars.expression.chooserInvalidChoiceValueForSlotType, chooserInvalidChoiceCountForSlotType: v.cardsAndCars.expression.chooserInvalidChoiceCountForSlotType }; + var R, w; + !(function(e3) { + e3.asIndividualValues = "individualValues", e3.asStackedValues = "stackedValues"; + })(R || (t2.slotTypeValueMergeMode = R = {})), (function(e3) { + e3.custom = "custom", e3.slot = "slot", e3.slotType = "slotType"; + })(w || (w = {})); + class D extends y.BasedOnChoicesType { + constructor(e3, t3, i3) { + super(e3, t3, i3); + } + get className() { + return "ChooserType"; + } + get isChooserType() { + return true; + } + getPropQuickReplies(e3, i3) { + return e3.getProperty(t2.PROP_QUICK_REPLIES, i3); + } + canConvertLitToExpression(e3) { + return false; + } + convertLitToExpression(e3, t3, i3) { + return ""; + } + createExpressionOptionClass() { + return new u.ExpressionTypeChooserOptions(); + } + getYamlObjectForLiteralSingleton(e3, i3, n3, r3) { + const o2 = super.getYamlObjectForLiteralSingleton(e3, i3, n3, r3); + return p.isFeatureAvailable(g.default.botFlowsMessagingDatePicker) && this.isSelectedSlotTypeDynamicDateTime(e3) ? this.isSelectedSlotTypeDynamicDateTime(e3) && (delete o2[t2.PROP_QUICK_REPLIES], delete o2[t2.PROP_CAROUSEL]) : delete o2[t2.PROP_TIMEPICKER], o2; + } + deleteChoiceAtIndex(e3, i3) { + if (i3 < 0) return false; + switch (this.getPresentationModeStr(e3)) { + case t2.PRESENTATION_MODE_QUICK_REPLIES: { + const t3 = this.getPropQuickReplies(e3); + return t3.type.deleteChoiceAtIndex(t3, i3); + } + case t2.PRESENTATION_MODE_CAROUSEL: { + const n3 = e3.getProperty(t2.PROP_CAROUSEL); + return n3.type.deleteChoiceAtIndex(n3, i3); + } + } + return false; + } + get supportsLiteralEditor() { + return true; + } + getPropPresentation(e3) { + return null == e3 ? void 0 : e3.getProperty(t2.PROP_PRESENTATION, true); + } + getPresentationModeStr(e3) { + var i3; + return null === (i3 = null == e3 ? void 0 : e3.getProperty(t2.PROP_PRESENTATION, true)) || void 0 === i3 ? void 0 : i3.text; + } + getPresentationModeIsQuickReplies(e3) { + return this.getPresentationModeStr(e3) === t2.PRESENTATION_MODE_QUICK_REPLIES; + } + getPresentationModeIsCarousel(e3) { + return this.getPresentationModeStr(e3) === t2.PRESENTATION_MODE_CAROUSEL; + } + getPresentationModeIsTimePicker(e3) { + return this.getPresentationModeStr(e3) === t2.PRESENTATION_MODE_TIMEPICKER; + } + getPresentationModeIsListPicker(e3) { + return this.getPresentationModeStr(e3) === t2.PRESENTATION_MODE_LISTPICKER; + } + getPossibleChoices(e3, i3, n3) { + switch (this.getPresentationModeStr(e3)) { + case t2.PRESENTATION_MODE_QUICK_REPLIES: { + const r3 = e3.getProperty(t2.PROP_QUICK_REPLIES); + return r3.type.getPossibleChoices(r3, i3, n3); + } + case t2.PRESENTATION_MODE_CAROUSEL: { + const r3 = e3.getProperty(t2.PROP_CAROUSEL); + return r3.type.getPossibleChoices(r3, i3, n3); + } + case t2.PRESENTATION_MODE_LISTPICKER: { + const i4 = e3.getProperty(t2.PROP_LISTPICKER); + return i4.type.getPossibleChoices(i4, n3); + } + } + return []; + } + getPresentationModeExpression(e3) { + switch (this.getPresentationModeStr(e3)) { + case t2.PRESENTATION_MODE_QUICK_REPLIES: + return this.getPropQuickReplies(e3); + case t2.PRESENTATION_MODE_CAROUSEL: + return e3.getProperty(t2.PROP_CAROUSEL); + case t2.PRESENTATION_MODE_TIMEPICKER: + return e3.getProperty(t2.PROP_TIMEPICKER); + case t2.PRESENTATION_MODE_LISTPICKER: + return e3.getProperty(t2.PROP_LISTPICKER); + } + } + getChoiceErrorsExpression(e3) { + var t3; + const i3 = null === (t3 = this.getPresentationModeExpression(e3)) || void 0 === t3 ? void 0 : t3.type; + return (0, O.isListPickerExpressionType)(i3) ? i3.invalidChoicesErrors : E; + } + getHasAtLeastOnePostbackChoice(e3) { + if ((null == e3 ? void 0 : e3.isLiteralMode) && !e3.outOfService) switch (this.getPresentationModeStr(e3)) { + case t2.PRESENTATION_MODE_QUICK_REPLIES: { + const t3 = this.getPropQuickReplies(e3); + return t3.type.getHasAtLeastOnePostbackChoice(t3); + } + case t2.PRESENTATION_MODE_CAROUSEL: { + const i3 = e3.getProperty(t2.PROP_CAROUSEL); + return i3.type.getHasAtLeastOnePostbackChoice(i3); + } + case t2.PRESENTATION_MODE_LISTPICKER: { + const i3 = e3.getProperty(t2.PROP_LISTPICKER); + return i3.type.getHasAtLeastOnePostbackChoice(i3); + } + } + } + isUnknownAtDesignTime(e3) { + switch (this.getPresentationModeStr(e3)) { + case t2.PRESENTATION_MODE_QUICK_REPLIES: { + const t3 = this.getPropQuickReplies(e3); + return t3.type.isUnknownAtDesignTime(t3); + } + case t2.PRESENTATION_MODE_CAROUSEL: { + const i3 = e3.getProperty(t2.PROP_CAROUSEL); + return i3.type.isUnknownAtDesignTime(i3); + } + case t2.PRESENTATION_MODE_LISTPICKER: { + const i3 = e3.getProperty(t2.PROP_LISTPICKER); + return i3.type.isUnknownAtDesignTime(i3); + } + } + } + getPossibleStringFacetValues(e3) { + const t3 = [], i3 = this.getPossibleChoices(e3, true); + return s.default.each(i3, (e4) => { + const i4 = e4.type.getPossibleStringFacetValue(e4); + i4 && t3.push(i4); + }), t3; + } + getUsesDynamicListSlotType(e3) { + var t3; + return null === (t3 = this.getChooserSlotTypeNluInfo(e3)) || void 0 === t3 ? void 0 : t3.slotTypeIsDynamicList; + } + getQuickRepliesIsOosForDynamicListSlotType(e3) { + var i3; + if (this.getPresentationModeStr(e3) !== t2.PRESENTATION_MODE_QUICK_REPLIES) return false; + const n3 = this.getChooserSlotTypeNluInfo(e3); + return !(!n3 || !n3.slotTypeIsDynamicList) && (null === (i3 = this.getPropQuickReplies(e3)) || void 0 === i3 ? void 0 : i3.outOfService); + } + configureForMode(e3, i3, n3, r3) { + switch (this.getPresentationModeStr(e3)) { + case t2.PRESENTATION_MODE_QUICK_REPLIES: + const o2 = this.getPropQuickReplies(e3); + o2.type.configureFromChoices(o2, i3); + break; + case t2.PRESENTATION_MODE_CAROUSEL: + const a2 = e3.getProperty(t2.PROP_CAROUSEL); + a2.type.configureFromChoices(a2, i3, void 0, void 0, r3); + break; + case t2.PRESENTATION_MODE_LISTPICKER: + const s2 = e3.getProperty(t2.PROP_LISTPICKER); + s2.type.configureFromChoices(s2, n3); + } + } + transitionToPresentationMode(e3, i3, n3, r3) { + const o2 = e3.getProperty(t2.PROP_PRESENTATION); + if (this.getPresentationModeStr(e3) !== i3) try { + let t3; + e3.parentFlow.validationResults.addSuppressPassiveValidation(this), r3 = r3 || R.asIndividualValues, n3 && (t3 = this.getPossibleChoices(e3)), o2.setAsLiteral(i3), n3 && this.configureForMode(e3, t3, void 0, r3), this.updatePropertiesOutOfServiceStatus(e3); + } finally { + e3.parentFlow.validationResults.removeSuppressPassiveValidation(this), m.validateAction(e3.parent, void 0, true); + } + } + _ensureCorrectExpressionModes(e3, t3, i3, n3) { + null == e3 || e3.options.setAllowModeLiteral(!n3 || !n3.slotTypeIsDynamicList), null == t3 || t3.options.setAllowModeLiteral(!n3 || !n3.slotTypeIsDynamicList), null == i3 || i3.options.setAllowModeLiteral(!n3 || !n3.slotTypeIsDynamicList); + } + getMaxChoiceCountForPresentation(e3) { + switch (this.getPresentationModeStr(e3)) { + case t2.PRESENTATION_MODE_CAROUSEL: + case t2.PRESENTATION_MODE_QUICK_REPLIES: + return f.dataTypeLimits.quickRepliesDataType.properties.buttons.maxItems.count; + case t2.PRESENTATION_MODE_LISTPICKER: + return f.dataTypeLimits.listPickerSectionType.properties.items.maxItems.count; + } + } + totalChoiceCountIsWithinLimits(e3) { + var t3; + if (null == e3 ? void 0 : e3.isLiteralMode) { + const i3 = (null === (t3 = this.getAllowableValues(e3)) || void 0 === t3 ? void 0 : t3.length) || 0, n3 = this.getMaxChoiceCountForPresentation(e3); + if (s.default.isActualNumber(n3) && i3 > n3) return false; + } + return true; + } + updatePropertiesOutOfServiceStatus(e3) { + if (!e3.isLiteralMode) return; + let i3 = false, n3 = false, r3 = false, o2 = true; + const a2 = this.getChooserSlotTypeNluInfo(e3); + if (this.getPropPresentation(e3).isLiteralMode) switch (this.getPresentationModeStr(e3)) { + case t2.PRESENTATION_MODE_QUICK_REPLIES: + i3 = false, n3 = true, r3 = true, o2 = true, (null == a2 ? void 0 : a2.slotTypeIsDynamicList) ? i3 = true : a2 && (i3 = !this.totalChoiceCountIsWithinLimits(e3)); + break; + case t2.PRESENTATION_MODE_CAROUSEL: + n3 = false, r3 = true, o2 = true, i3 = true, a2 && (n3 = !this.totalChoiceCountIsWithinLimits(e3)); + break; + case t2.PRESENTATION_MODE_TIMEPICKER: + n3 = true, r3 = true, o2 = false, i3 = true; + break; + case t2.PRESENTATION_MODE_LISTPICKER: + n3 = true, r3 = false, o2 = true, i3 = true, a2 && (r3 = !this.totalChoiceCountIsWithinLimits(e3)); + break; + default: + this.isSelectedSlotTypeDynamicDateTime(e3) ? (i3 = n3 = true, o2 = false) : n3 = i3 = false; + } + const s2 = e3.getProperty(t2.PROP_CAROUSEL); + s2 && (s2.outOfService = n3); + const l2 = e3.getProperty(t2.PROP_LISTPICKER); + l2 && (l2.outOfService = r3, l2.type.updatePropertiesOutOfServiceStatus(l2)); + const u2 = this.getPropQuickReplies(e3); + u2 && (u2.outOfService = i3); + const d2 = e3.getProperty(t2.PROP_TIMEPICKER); + d2 && (d2.outOfService = o2), this._ensureCorrectExpressionModes(u2, s2, l2, a2); + } + configurePropertyCreationParams(e3, i3, n3) { + switch (super.configurePropertyCreationParams(e3, i3, n3), i3.name) { + case t2.PRESENTATION_MODE_QUICK_REPLIES: + n3.label = v.cardsAndCars.quickRepliesLabel, n3.options.setIninTestingField("chooser-quickReplies"); + break; + case t2.PRESENTATION_MODE_CAROUSEL: + n3.label = v.cardsAndCars.carouselLabel, n3.options.setIninTestingField("chooser-carousel"); + break; + case t2.PRESENTATION_MODE_TIMEPICKER: + n3.label = v.askForSlot.timePicker, n3.options.setIninTestingField("chooser-timePicker"); + break; + case t2.PRESENTATION_MODE_LISTPICKER: + n3.label = v.cardsAndCars.listPickerType.listPicker, n3.options.setIninTestingField("chooser-listPicker"); + break; + case t2.PROP_PRESENTATION: + n3.options.setIninTestingField("chooser-presentation"); + const e4 = s.default.findWhere(this.model.nativeProperties, { id: t2.PROP_PRESENTATION }); + if (null == e4 ? void 0 : e4.allowableValues) { + const i4 = e4.allowableValues.split(","), r3 = []; + p.isFeatureAvailable(g.default.botFlowsMessagingDatePicker) && !i4.includes(t2.PRESENTATION_MODE_TIMEPICKER) && r3.push(t2.PRESENTATION_MODE_TIMEPICKER), p.isFeatureAvailable(g.default.botFlowsAppleListPicker) && !i4.includes(t2.PRESENTATION_MODE_LISTPICKER) && r3.push(t2.PRESENTATION_MODE_LISTPICKER), r3.length && n3.options.facets.setAllowableValues([...i4, ...r3]); + } + } + } + initializeDesignTime(e3) { + super.initializeDesignTime(e3), e3.type.updatePropertiesOutOfServiceStatus(e3); + } + propertiesCreatedForThisTypeInstance(e3) { + e3.type.updatePropertiesOutOfServiceStatus(e3), null == e3 || e3.addAutoCleanedUpSubscription(_.createObservableForEvent$(c.expressionValueChanged, e3).subscribe(() => this.updatePropertiesOutOfServiceStatus(e3))); + } + updateNluInfo(e3) { + this.updateAllowableValues(e3), this.updatePropertiesOutOfServiceStatus(e3); + } + setValueSourceTypeToCustom(e3) { + this.isAvailableForFlowType(e3.parentFlow.type) ? e3.type.setValueSourceType(e3, t2.VALUE_SOURCE_TYPE_CUSTOM, void 0) : d.error(`trying to call setValueSourceTypeToCustom for a chooser that is not available for flow type: ${e3.parentFlow.type}`); + } + setValueSourceTypeToSlot(e3, i3) { + this.isAvailableForFlowType(e3.parentFlow.type) ? e3.type.setValueSourceType(e3, t2.VALUE_SOURCE_TYPE_SLOT, i3) : d.error(`trying to call setValueSourceTypeToSlot for a chooser that is not available for flow type: ${e3.parentFlow.type}`); + } + setValueSourceType(e3, t3, i3) { + this.isAvailableForFlowType(e3.parentFlow.type) ? (e3.setUiMetaData(C, t3), e3.setUiMetaData(b, i3)) : d.error(`trying to call setValueSourceType for a chooser that is not available for flow type: ${e3.parentFlow.type}`); + } + getValueSourceType(e3) { + return e3.getUiMetaData(C); + } + getValueSourceTypeEnum(e3) { + return e3.getUiMetaData(C); + } + getValueSourceValue(e3) { + return e3.getUiMetaData(b); + } + updateAllowableValues(e3) { + var i3; + if (!e3) return; + if (this.getPresentationModeIsTimePicker(e3)) return; + const n3 = this.getPossibleStringFacetValues(e3), r3 = e3.getProperty(t2.PROP_CAROUSEL); + if (r3 && !r3.outOfService) return r3.type.updateAllowableValues(r3, n3); + const o2 = e3.getProperty(t2.PROP_CARD); + if (o2 && !o2.outOfService) return o2.type.updateAllowableValues(o2, n3); + const a2 = this.getPropQuickReplies(e3); + a2 && !a2.outOfService && a2.isLiteralMode && s.default.each(null === (i3 = a2.collectionItems) || void 0 === i3 ? void 0 : i3.items, (e4) => { + e4.type.updateAllowableValues(e4, n3); + }); + } + configureForSlotBySlotName(e3, i3, n3) { + if (!this.isAvailableForFlowType(e3.parentFlow.type)) return void d.error(`trying to call configureForSlotBySlotName for a chooser that is not available for flow type: ${e3.parentFlow.type}`); + const r3 = []; + this.setValueSourceTypeToSlot(e3, i3), this.updatePropertiesOutOfServiceStatus(e3); + const o2 = this.getPropQuickReplies(e3), a2 = e3.getProperty(t2.PROP_CAROUSEL), u2 = e3.getProperty(t2.PROP_LISTPICKER), c2 = this.getChooserSlotTypeNluInfo(e3), p2 = null == c2 ? void 0 : c2.slotTypeIsDynamicList; + if (this._ensureCorrectExpressionModes(o2, a2, u2, c2), o2 && (o2.mode = p2 ? l.expression : l.literal), a2 && (a2.mode = p2 ? l.expression : l.literal), u2 && (u2.mode = p2 ? l.expression : l.literal), p2) return; + let _2; + n3 || (_2 = this.getAllowableValues(e3), this.getPresentationModeIsListPicker(e3) || s.default.each(_2, (t3) => { + r3.push(S.ChoiceType.createPostbackChoice(t3, true, e3.parentFlow, e3.parent)); + })), this.configureForMode(e3, r3, _2), s.default.each(r3, (e4) => { + e4.destroy(); + }), r3.length = 0; + } + getAllowableValues(e3) { + switch (this.getValueSourceType(e3)) { + case t2.VALUE_SOURCE_TYPE_SLOT: + return this.getSlotValues(e3, this.getValueSourceValue(e3)); + case t2.VALUE_SOURCE_TYPE_SLOT_TYPE: + return this.getSlotTypeValues(e3, this.getValueSourceValue(e3)); + } + } + getIsSlotOrSlotTypeChooser(e3) { + if (e3) { + switch (this.getValueSourceTypeEnum(e3)) { + case w.slot: + case w.slotType: + return true; + } + return false; + } + } + getCanUserAddChoices(e3) { + var t3; + return !(null === (t3 = e3.parent) || void 0 === t3 ? void 0 : t3.isAskForSlotActionViewModel); + } + getSlotTypeName(e3) { + switch (this.getValueSourceType(e3)) { + case t2.VALUE_SOURCE_TYPE_SLOT: + return this.getSlotTypeNameForSlotName(e3, this.getValueSourceValue(e3)); + case t2.VALUE_SOURCE_TYPE_SLOT_TYPE: + return this.getValueSourceValue(e3); + } + } + getSlotValues(e3, t3) { + const i3 = this.getSlotTypeNameForSlotName(e3, t3); + if (i3) return this.getSlotTypeValues(e3, i3); + } + getSlotTypeValues(e3, t3) { + var i3; + if (t3) return null === (i3 = e3.parentFlow) || void 0 === i3 ? void 0 : i3.nluMetaData.getEntityTypeAllowableValues(t3); + } + getSlotTypeNameForSlotName(e3, t3) { + var i3, n3; + if (t3) { + const r3 = t3.toLowerCase(); + return s.default.find(null === (n3 = null === (i3 = e3.parentFlow) || void 0 === i3 ? void 0 : i3.nluMetaData) || void 0 === n3 ? void 0 : n3.slotToEntityTypesMapping, (e4, t4) => (null == t4 ? void 0 : t4.toLowerCase()) === r3); + } + } + setLiteralQuickRepliesFromChoiceListViewModel(e3, i3) { + if (!this.isAvailableForFlowType(e3.parentFlow.type)) return void d.error(`trying to call setLiteralQuickRepliesFromChoiceListViewModel for a chooser that is not available for flow type: ${e3.parentFlow.type}`); + if (!e3) return; + e3.getProperty(t2.PROP_PRESENTATION).setAsLiteral(t2.PRESENTATION_MODE_QUICK_REPLIES); + const n3 = this.getPropQuickReplies(e3); + n3.type.setLiteralFromChoiceListViewModel(n3, i3); + } + isSelectedSlotTypeList(e3) { + var t3; + return !!(null === (t3 = this.getChooserSlotTypeNluInfo(e3)) || void 0 === t3 ? void 0 : t3.slotTypeIsList); + } + isSelectedSlotTypeListOrDynamicList(e3) { + const t3 = this.getChooserSlotTypeNluInfo(e3); + return !!t3 && (t3.slotTypeIsList || t3.slotTypeIsDynamicList); + } + isSelectedSlotTypeDynamicDateTime(e3) { + const t3 = this.getChooserSlotTypeNluInfo(e3); + return !!t3 && t3.slotTypeIsDynamicDateTime; + } + hasNluDiffs(e3) { + if (!this.canApplyNluDiffs(e3)) return false; + const t3 = this.getChooserToSlotTypeDiffs(e3); + return !!t3 && (!t3.hasUnknownAtDesignTimeContents && !s.default.isUndefined(t3.missingSlotTypeValues) || !s.default.isUndefined(t3.invalidPostbackValueChoices) || t3.orderHasChanged); + } + _applyNluDiffs(e3, i3, n3, r3) { + if (r3 || (r3 = this.getChooserToSlotTypeDiffs(i3)), !r3) return; + const o2 = this.getPresentationModeStr(i3), a2 = this.getAllowableValues(i3); + switch (o2) { + case t2.PRESENTATION_MODE_QUICK_REPLIES: { + const t3 = this.getPropQuickReplies(i3); + t3.type.applyNluDiffs(e3, t3, r3), r3.orderHasChanged && (null == a2 ? void 0 : a2.length) && t3.type.reorderItemsByAllowableValues(t3, a2); + break; + } + case t2.PRESENTATION_MODE_CAROUSEL: { + const o3 = i3.getProperty(t2.PROP_CAROUSEL); + o3.type.applyNluDiffs(e3, o3, n3, r3); + break; + } + case t2.PRESENTATION_MODE_LISTPICKER: { + const o3 = i3.getProperty(t2.PROP_LISTPICKER); + o3.type.applyNluDiffs(e3, o3, n3, r3); + break; + } + default: + return; + } + r3.invalidPostbackValueChoices && (e3.invalidSlotTypeValuesNotRemoved = [], s.default.keys(r3.invalidPostbackValueChoices, (t3) => { + s.default.contains(e3.invalidSlotTypeValuesRemoved, t3) || (e3.invalidSlotTypeValuesNotRemoved || (e3.invalidSlotTypeValuesNotRemoved = []), e3.invalidSlotTypeValuesNotRemoved.push(t3)); + })), r3.missingSlotTypeValues && (e3.missingSlotTypeValuesNotAdded = [], s.default.each(r3.missingSlotTypeValues, (t3) => { + s.default.contains(e3.missingSlotTypeValuesAdded, t3) || (e3.missingSlotTypeValuesNotAdded || (e3.missingSlotTypeValuesNotAdded = []), e3.missingSlotTypeValuesNotAdded.push(t3)); + })), r3.orderHasChanged && (e3.valuesReordered = true), m.validateAction(i3.parent, void 0, true); + } + _logNluDiffs(e3) { + } + applyNluDiffs(e3, t3, i3) { + var n3, r3, o2, a2, s2, l2, u2, d2; + const c2 = {}; + return this._applyNluDiffs(c2, e3, t3, i3), ((null === (n3 = c2.missingSlotTypeValuesAdded) || void 0 === n3 ? void 0 : n3.length) || (null === (r3 = c2.missingSlotTypeValuesNotAdded) || void 0 === r3 ? void 0 : r3.length) || (null === (o2 = c2.invalidSlotTypeValuesRemoved) || void 0 === o2 ? void 0 : o2.length) || (null === (a2 = c2.invalidSlotTypeValuesNotRemoved) || void 0 === a2 ? void 0 : a2.length)) && this._logNluDiffs("--------------------------------------------"), (null === (s2 = c2.missingSlotTypeValuesAdded) || void 0 === s2 ? void 0 : s2.length) && (this._logNluDiffs("Slot Type Values Added"), c2.missingSlotTypeValuesAdded.forEach((e4) => { + this._logNluDiffs(` * ${e4}`); + })), (null === (l2 = c2.missingSlotTypeValuesNotAdded) || void 0 === l2 ? void 0 : l2.length) && (this._logNluDiffs("Slot Type Values *Not* Added"), c2.missingSlotTypeValuesNotAdded.forEach((e4) => { + this._logNluDiffs(` * ${e4}`); + })), (null === (u2 = c2.invalidSlotTypeValuesRemoved) || void 0 === u2 ? void 0 : u2.length) && (this._logNluDiffs("Slot Type Values Removed"), c2.invalidSlotTypeValuesRemoved.forEach((e4) => { + this._logNluDiffs(` * ${e4}`); + })), (null === (d2 = c2.invalidSlotTypeValuesNotRemoved) || void 0 === d2 ? void 0 : d2.length) && (this._logNluDiffs("Slot Type Values *Not* Removed"), c2.invalidSlotTypeValuesNotRemoved.forEach((e4) => { + this._logNluDiffs(` * ${e4}`); + })), this.updatePropertiesOutOfServiceStatus(e3), c2; + } + getChooserSlotTypeNluInfo(e3) { + var t3; + if (!e3) return; + const i3 = this.getValueSourceTypeEnum(e3); + switch (i3) { + case w.slot: + case w.slotType: + break; + default: + return; + } + const n3 = null === (t3 = e3.parentFlow) || void 0 === t3 ? void 0 : t3.nlu; + if (!n3) return; + let a2, s2, l2, u2, d2 = false, c2 = false, p2 = false; + switch (i3) { + case w.slot: + if (a2 = this.getValueSourceValue(e3), !a2) break; + if (s2 = o.EntityUtil.getEntityByName(n3, a2), !s2) break; + if (u2 = s2.name, l2 = o.EntityUtil.getEntityTypeByName(n3, s2.type), !l2) break; + d2 = o.EntityUtil.isEntityTypeOfType(l2, r2.EntityTypeMechanismType.List), c2 = o.EntityUtil.isEntityTypeOfType(l2, r2.EntityTypeMechanismType.DynamicList), p2 = o.EntityUtil.isEntityTypeOfType(l2, r2.EntityTypeMechanismType.DynamicDateTime); + break; + case w.slotType: + if (u2 = this.getValueSourceValue(e3), !u2) break; + if (l2 = o.EntityUtil.getEntityTypeByName(n3, u2), !l2) break; + d2 = o.EntityUtil.isEntityTypeOfType(l2, r2.EntityTypeMechanismType.List), c2 = o.EntityUtil.isEntityTypeOfType(l2, r2.EntityTypeMechanismType.DynamicList), p2 = o.EntityUtil.isEntityTypeOfType(l2, r2.EntityTypeMechanismType.DynamicDateTime); + } + return { nlu: n3, valueSourceType: i3, slotName: a2, slotTypeName: u2, slotNluEntity: s2, slotNluEntityType: l2, slotTypeIsList: d2, slotTypeIsDynamicList: c2, slotTypeIsDynamicDateTime: p2 }; + } + validateNluInfo(e3, t3, i3) { + if (!t3) return true; + if (t3.slotName) { + if (!t3.slotNluEntity) return i3.addExpressionError(e3, (0, a.sprintf)(v.cardsAndCars.expression.chooserInvalidSlotName, t3.slotName)), false; + if (!t3.slotNluEntityType) return i3.addExpressionError(e3, (0, a.sprintf)(v.cardsAndCars.expression.chooserNoSlotTypeConfiguredForSlot, t3.slotNluEntity.name)), false; + } + return t3.slotNluEntityType ? t3.slotTypeIsList || t3.slotTypeIsDynamicList || t3.slotTypeIsDynamicDateTime ? (this.updatePropertiesOutOfServiceStatus(e3), true) : (i3.addExpressionError(e3, (0, a.sprintf)(v.cardsAndCars.expression.chooserSlotTypeNotListOrDynamicListType, t3.slotNluEntityType.name)), false) : (i3.addExpressionError(e3, (0, a.sprintf)(v.cardsAndCars.expression.chooserSlotTypeNameIsNotValid, t3.slotTypeName)), false); + } + _getChooserToSlotTypeDiffsHeader(e3) { + if (!e3) return; + if (!this.getIsSlotOrSlotTypeChooser(e3)) return; + let i3, n3 = true; + switch (this.getPresentationModeStr(e3)) { + case t2.PRESENTATION_MODE_QUICK_REPLIES: + i3 = this.getPropQuickReplies(e3, true), n3 = this.getCanUserAddChoices(e3); + break; + case t2.PRESENTATION_MODE_CAROUSEL: + i3 = e3.getProperty(t2.PROP_CAROUSEL, true); + break; + case t2.PRESENTATION_MODE_LISTPICKER: + i3 = e3.getProperty(t2.PROP_LISTPICKER, true); + } + if (!i3) return; + let r3 = this.isUnknownAtDesignTime(e3); + return !r3 && s.default.isUndefined(e3.type.getHasAtLeastOnePostbackChoice(e3)) && (r3 = true), { canReorderItems: n3, hasUnknownAtDesignTimeContents: r3 }; + } + getSlotTypeDiffsForChoices(e3, t3, i3, n3) { + let r3, o2, a2 = 0; + const l2 = {}, u2 = (e4, i4) => { + if (!(s.default.contains(t3, e4) || (0, N.isChoiceExpression)(i4) && i4.type.isSkipChoice(i4))) { + o2 || (o2 = {}); + let t4 = o2[e4]; + t4 ? t4.push(i4) : (t4 = [i4], o2[e4] = t4); + } + }; + let d2; + e3.forEach((e4) => { + if (!e4.isLiteralMode) { + const t4 = e4.getUiMetaData(A.MANAGED_SLOT_TYPE_VALUE); + return void (t4 && (u2(t4, e4), l2[t4] = true)); + } + if (e4.type.isTypeUnknownAtDesignTime(e4)) a2++; + else if (e4.type.getIsSlotOrSlotTypeChoice(e4)) { + if (e4.type.isValueUnknownAtDesignTime(e4)) return; + const t4 = e4.type.getValueStr(e4); + if (t4 || "" === t4) { + if (l2[t4]) { + r3 || (r3 = {}); + let i4 = r3[t4]; + return void (i4 ? i4.push(e4) : (i4 = [e4], r3[t4] = i4)); + } + u2(t4, e4), l2[t4] = true; + } + } else e4.type.isPostbackChoice(e4); + }), t3.forEach((e4) => { + l2[e4] || (d2 || (d2 = []), d2.push(e4)); + }); + let c2 = false; + if ((null == d2 ? void 0 : d2.length) > 0) c2 = true; + else if ((null == t3 ? void 0 : t3.length) > 0 && (null == e3 ? void 0 : e3.length) > 0) { + const n4 = []; + if (e3.forEach((e4) => { + if (e4.isLiteralMode && e4.type.getIsSlotOrSlotTypeChoice(e4) && !e4.type.isValueUnknownAtDesignTime(e4)) { + const i4 = e4.type.getValueStr(e4); + i4 && t3.includes(i4) && n4.push(i4); + } + }), !i3 && n4.length > 0 && t3.length === n4.length) { + for (let e4 = 0; e4 < t3.length; e4++) if (t3[e4] !== n4[e4]) { + c2 = true; + break; + } + } + } + return { duplicatePostbackValueChoices: r3, invalidPostbackValueChoices: o2, missingSlotTypeValues: d2, possibleChoices: e3, slotTypeAllowableValues: t3, unknownAtDesignTimeChoiceCount: a2, hasUnknownAtDesignTimeContents: n3, orderHasChanged: c2 }; + } + getChooserToSlotTypeDiffsForPossibleChoices(e3, t3) { + const i3 = this._getChooserToSlotTypeDiffsHeader(e3); + if (!i3) return; + const n3 = this.getAllowableValues(e3); + return this.getSlotTypeDiffsForChoices(t3, n3, i3.canReorderItems, i3.hasUnknownAtDesignTimeContents); + } + getChooserToSlotTypeDiffs(e3) { + const t3 = this._getChooserToSlotTypeDiffsHeader(e3); + if (!t3) return; + const i3 = this.getPossibleChoices(e3), n3 = this.getAllowableValues(e3); + return this.getSlotTypeDiffsForChoices(i3, n3, t3.canReorderItems, t3.hasUnknownAtDesignTimeContents); + } + canApplyNluDiffs(e3) { + var i3, n3; + if (!e3 || (null === (i3 = e3.parentFlow) || void 0 === i3 ? void 0 : i3.isReadOnly)) return false; + if (!this.getIsSlotOrSlotTypeChooser(e3)) return false; + if (null === (n3 = this.getPresentationModeExpression(e3)) || void 0 === n3 ? void 0 : n3.outOfService) return false; + switch (this.getPresentationModeStr(e3)) { + case t2.PRESENTATION_MODE_QUICK_REPLIES: + return this.getPropQuickReplies(e3).isLiteralMode; + case t2.PRESENTATION_MODE_CAROUSEL: + return e3.getProperty(t2.PROP_CAROUSEL).isLiteralMode; + case t2.PRESENTATION_MODE_LISTPICKER: { + const i4 = e3.getProperty(t2.PROP_LISTPICKER); + return !!i4.isLiteralMode && i4.getProperty(I.PROP_SECTIONS).isLiteralMode; + } + } + return false; + } + validateLiteral(e3, t3) { + if (!t3) return true; + if (!this.getIsSlotOrSlotTypeChooser(t3)) return this.validateDuplicates(e3, t3); + const i3 = this.getChooserSlotTypeNluInfo(t3); + if (!i3) return false; + if (this.updatePropertiesOutOfServiceStatus(t3), i3.slotTypeIsDynamicList) return true; + if (!this.validateNluInfo(t3, i3, e3)) return false; + const n3 = this.getChooserToSlotTypeDiffs(t3); + if (!n3) return true; + let r3; + if (s.default.each(n3.duplicatePostbackValueChoices, (i4, n4) => (r3 || (r3 = t3.type.getSlotTypeName(t3)), e3.addExpressionError(t3, (0, a.sprintf)(v.cardsAndCars.expression.chooserMultipleChoicesForSlotTypeValue, n4, r3)), false)), s.default.each(n3.invalidPostbackValueChoices, (i4, n4) => { + r3 || (r3 = t3.type.getSlotTypeName(t3)); + const o2 = i4[0].isExpressionMode ? (0, a.sprintf)(this.getChoiceErrorsExpression(t3).chooserInvalidChoiceValueForSlotTypeExpressionMode, n4, r3) : (0, a.sprintf)(this.getChoiceErrorsExpression(t3).chooserInvalidChoiceValueForSlotType, n4, r3); + return e3.addExpressionError(t3, o2), false; + }), n3.hasUnknownAtDesignTimeContents) return true; + if (n3.unknownAtDesignTimeChoiceCount) { + if (n3.slotTypeAllowableValues && n3.possibleChoices && n3.slotTypeAllowableValues.length !== n3.possibleChoices.length) return e3.addExpressionError(t3, (0, a.sprintf)(this.getChoiceErrorsExpression(t3).chooserInvalidChoiceCountForSlotType, i3.slotTypeName)), false; + } else if (n3.missingSlotTypeValues) { + if (1 === n3.missingSlotTypeValues.length) e3.addExpressionError(t3, (0, a.sprintf)(this.getChoiceErrorsExpression(t3).chooserNoChoicesConfiguredForSlotTypeValues, i3.slotTypeName, `'${n3.missingSlotTypeValues[0]}'`)); + else { + const r4 = h.getListDisplayString(`'${n3.missingSlotTypeValues.join("', '")}'`); + e3.addExpressionError(t3, (0, a.sprintf)(this.getChoiceErrorsExpression(t3).chooserNoChoicesConfiguredForSlotTypeValues, i3.slotTypeName, r4)); + } + return false; + } + return super.validateLiteral(e3, t3); + } + couldHaveUnknownPostbackValue(e3, i3) { + if (!e3 || e3.outOfService) return false; + switch (e3.mode) { + case l.noValue: + return false; + case l.literal: + break; + default: + return i3; + } + const n3 = this.getPresentationModeStr(e3), r3 = !n3 || n3 === t2.PRESENTATION_MODE_QUICK_REPLIES, o2 = !n3 || n3 === t2.PRESENTATION_MODE_CAROUSEL; + if (r3) { + const t3 = this.getPropQuickReplies(e3); + if (null == t3 ? void 0 : t3.type.couldHaveUnknownPostbackValue(t3)) return true; + } + if (o2) { + const i4 = e3.getProperty(t2.PROP_CAROUSEL); + if (null == i4 ? void 0 : i4.type.couldHaveUnknownPostbackValue(i4)) return true; + } + return false; + } + get hasRichLiteralEditor() { + return true; + } + } + t2.ChooserType = D, D.typeIdentifier = T.expressionTypeNames.chooser; + }, 28619: (e2, t2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.executeSchedule = void 0, t2.executeSchedule = function(e3, t3, i2, n2, r2) { + void 0 === n2 && (n2 = 0), void 0 === r2 && (r2 = false); + var o = t3.schedule(function() { + i2(), r2 ? e3.add(this.schedule(null, n2)) : this.unsubscribe(); + }, n2); + if (e3.add(o), !r2) return o; + }; + }, 28689: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(84655)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "scheduleGroup"; + } + get displayTypeName() { + return "ArchVariableScheduleGroup"; + } + get initialValue() { + return this._initialValue; + } + get isArchVariableScheduleGroup() { + return true; + } + } + t2.default = r2; + }, 28690: (e2, t2, i2) => { + "use strict"; + const n2 = i2(31635), r2 = n2.__importDefault(i2(73198)), o = n2.__importStar(i2(63824)), a = i2(80428), s = i2(79467), l = n2.__importDefault(i2(27203)), u = i2(38185), d = i2(46824), c = i2(12179), p = n2.__importDefault(i2(97891)), _ = i2(28803), h = i2(5426), m = i2(47628), g = n2.__importDefault(i2(61086)), f = i2(47957); + class T extends g.default { + constructor(e3, t3) { + super(e3, t3, d.bridgeServerManager), this.loadDataSchemas = void 0, this.resources = { actionLabel: f.bridgeServer.bridgeAction, actionNotFound: f.bridgeServer.actionNotFound, noActionsAvailable: f.bridgeServer.noActionsAvailable, savedVersionOfAction: f.bridgeServer.savedVersionOfAction, selectAction: f.bridgeServer.selectAction }; + } + static get branchInfo() { + return l.default.successFailureTimeout; + } + get isBridgeAction() { + return true; + } + static get managedProperties() { + const e3 = [{ property: "actionSetting", createDetails: _.NetworkBasedActionProperty.createCreateDetails("actionId", "actionName", d.bridgeServerManager, f.bridgeServer.mustSelectAction, f.bridgeServer.actionNotFound, "categorySetting"), yamlOptions: T.createYamlOptions("actionSetting", (e4) => e4.setSkipProperty(true)) }, { dataList: true, property: "inputs" }, { dataList: true, isOutput: true, property: "outputs", yamlOptions: T.createYamlOptions("outputs", (e4) => e4.setPropertyName("successOutputs")) }, { createDetails: h.ServerActionSchemaCategoryReference.createCreateDetails(u.bridgeCategoryManager), property: "categorySetting", yamlOptions: T.createYamlOptions("categorySetting", (e4) => e4.setSkipProperty(true)) }, { label: f.bridgeServer.timeout, options: s.ExpressionTypeDurationOptions.create((e4) => e4.setIninTestingField("cbaTimeout").setDurationStyle(o.durationStyles.secondsAndTenthsDuration).facets.setMinDur(100, true)), property: "timeout", yamlOptions: T.createYamlOptions("timeout", (e4) => e4.setExportOrder(40)), type: a.expressionTypeNames.duration }, { createDetails: m.ServerActionTimeoutSettings.createCreateDetails(r2.default.litDurationFiveSeconds), property: "serverActionTimeoutSettings", yamlOptions: T.createYamlOptions("serverActionTimeoutSettings", (e4) => e4.setSkipProperty(true)) }]; + return e3.push(g.default.createProcessingManagedExpression()), e3; + } + updateDependencies() { + this.actionName && !this.actionId && (this.actionId = this.actionName), super.updateDependencies(); + } + postProcessYamlConfig(e3, t3, i3) { + this.commonServerActionPostProcessYamlConfig(e3, t3, i3); + } + get yamlActionSectionName() { + return "bridgeAction"; + } + } + T.info = p.default.createActionInfo({ actionClass: T, canBeInTask: true, helpTopic: c.helpTopics.actions.bridgeServer, modelClass: i2(98099), name: f.actions.callBridgeAction, scriptingName: "ArchActionCallBridge" }), t2.A = T; + }, 28722: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.AgenticVirtualAgentVersionViewModel = void 0; + const n2 = i2(31635), r2 = n2.__importDefault(i2(57606)), o = n2.__importDefault(i2(92140)); + t2.AgenticVirtualAgentVersionViewModel = class { + constructor(e3) { + if (this._schemasNotLoaded = false, this._model = e3, this._schemasNotLoaded = true, this._model.inputs || this._model.outputs) { + this._schemasNotLoaded = false; + const e4 = { properties: {}, required: [] }, t3 = { properties: {}, required: [] }; + o.default.each(this._model.inputs, (t4) => { + o.default.isObject(t4) && (e4.properties[t4.name] = Object.assign({}, t4)); + }), o.default.each(this._model.outputs, (e5) => { + o.default.isObject(e5) && (t3.properties[e5.name] = Object.assign({}, e5), e5.required && t3.required.push(e5.name)); + }), this._inputSchema = new r2.default(e4, true), this._outputSchema = new r2.default(t3, false); + } else this._schemasNotLoaded = true; + } + get className() { + return "AgenticVirtualAgentVersionViewModel"; + } + get isBaseClass() { + return false; + } + get id() { + return this._model.id; + } + get name() { + return this._model.version; + } + get label() { + return this.name; + } + get version() { + return this._model.version; + } + get inputSchema() { + return this._inputSchema; + } + get outputSchema() { + return this._outputSchema; + } + get schemasNotLoaded() { + return this._schemasNotLoaded; + } + }; + }, 28730: (e2, t2, i2) => { + const n2 = i2(92140), r2 = i2(76768); + function o() { + this.nextAction = void 0, this.trackingId = void 0, this.result = void 0, o.baseConstructor.apply(this, arguments); + } + Object.defineProperties(o.prototype, { pasteReIdOrRename: { value: function(e3) { + o._super.pasteReIdOrRename.apply(this, arguments), n2.isUndefined(this.trackingId) || (this.trackingId = e3.pasteGetNewTrackingId(this.trackingId)); + } }, pasteResolveOldToNewValues: { value: function(e3) { + o._super.pasteResolveOldToNewValues.apply(this, arguments), this.nextAction = e3.pasteResolveOldIdToNewId(this.nextAction); + } }, type: { get: function() { + return this.__type; + } } }), r2.extend(o, "BaseActionModel"), e2.exports = o; + }, 28803: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.NetworkBasedActionProperty = void 0, t2.isNetworkBasedActionProperty = function(e3) { + return null == e3 ? void 0 : e3.isConfigListProperty; + }; + const n2 = i2(31635), r2 = i2(17604), o = n2.__importDefault(i2(92140)), a = i2(9456), s = n2.__importStar(i2(17498)), l = n2.__importStar(i2(36781)), u = i2(10798), d = i2(10798), c = n2.__importStar(i2(58380)), p = i2(88473), _ = n2.__importStar(i2(1115)), h = i2(55867); + class m extends h.BaseActionProperty { + constructor(e3, t3, i3, n3, r3, o2, s2, l2, c2, _2) { + var h2, m2, g, f; + super(e3, t3), this._configListManager = i3, this._modelIdPropName = n3, this._modelNamePropName = r3, this._notSelectedErrorMessage = o2, this.notFoundErrorMessage = s2, this._predecessorProp = l2, this._additionalSearchParamsCallback = c2, this._searchResultsFilterCallback = _2, this.id = (0, a.uuid)(), this.currentUiErrorMessage = null, this.isOptional = false, this._featureConfigUnavailable = false, this._skipValidationCheck = false, this._outOfServiceProvider = (0, p.addOutOfServiceProperties)(this), this.parent = e3, (null === (m2 = null === (h2 = this.metaData) || void 0 === h2 ? void 0 : h2.options) || void 0 === m2 ? void 0 : m2.featureConfigName) && (this._outOfServiceProvider.featureConfigName = this.metaData.options.featureConfigName, this._featureConfigUnavailable = (0, d.isFeatureUnavailable)(this.metaData.options.featureConfigName)), (null === (f = null === (g = this.metaData) || void 0 === g ? void 0 : g.options) || void 0 === f ? void 0 : f.antiFeatureConfigName) && (this._outOfServiceProvider.antiFeatureConfigName = this.metaData.options.antiFeatureConfigName, this._featureConfigUnavailable = (0, u.isFeatureAvailable)(this.metaData.options.antiFeatureConfigName)), this.attachActionProperty(this._modelIdPropName, () => e3.model[this._modelIdPropName], (t4) => { + t4 !== e3.model[this._modelIdPropName] && this.configListManager.tryRemoveItemFromFlowMetadata(e3, e3.model[this._modelIdPropName]), (e3.model[this._modelIdPropName] !== t4 || this._predecessorProp) && (e3.model[this._modelIdPropName] = t4, this.containedValidation()); + }), this.attachActionProperty(this._modelNamePropName, () => e3.model[this._modelNamePropName], (t4) => e3.model[this._modelNamePropName] = t4); + } + get configListManager() { + return this._configListManager; + } + set configListManager(e3) { + this._configListManager = e3; + } + setConfigListMangerAndUpdateDependencies(e3) { + this._configListManager.tryRemoveItemFromFlowMetadata(this.action, this.idValue), this.idValue = void 0, this.nameValue = void 0, this._configListManager = e3, this.updateDependencies(); + } + addClipboardDependencies(e3) { + super.addClipboardDependencies(e3), this.action && this.idValue && this.configListManager.addClipboardDependencies(e3, this.idValue, this.action.parentFlow); + } + destroy() { + this.configListManager.tryRemoveItemFromFlowMetadata(this.action, this.idValue), this._outOfServiceProvider.destroy(), delete this.idValue, delete this.nameValue, super.destroy(); + } + getConfiguration(e3, t3, i3) { + if (!this.featureConfigUnavailable) { + if (null == t3 ? void 0 : t3.isForFlowYaml) { + if (null == i3 ? void 0 : i3.skipProperty) return; + return (null == i3 ? void 0 : i3.shouldBeBoolIndicatingIfSet) ? !!this.idValue : this.nameValue ? { name: this.nameValue } : null; + } + return this.parent.isAction ? console.error("Trying to access NetworkBasedActionProperty.getConfiguration for non-flow-YAML") : (e3[this._modelIdPropName] = this.parent.model[this._modelIdPropName], e3[this._modelNamePropName] = this.parent.model[this._modelNamePropName]), null; + } + } + get modelIdPropName() { + return this._modelIdPropName; + } + get modelNamePropName() { + return this._modelNamePropName; + } + get idValue() { + return this.action[this._modelIdPropName]; + } + set idValue(e3) { + this.action[this._modelIdPropName] = e3; + } + get isNetworkBasedActionProperty() { + return true; + } + get isConfigListProperty() { + return true; + } + get nameValue() { + return this.action[this._modelNamePropName]; + } + set nameValue(e3) { + this.action[this._modelNamePropName] = e3; + } + get featureConfigUnavailable() { + return this._featureConfigUnavailable; + } + outOfServiceChanged() { + this.containedValidation(); + } + get skipValidationCheck() { + return this._skipValidationCheck; + } + set skipValidationCheck(e3) { + this._skipValidationCheck = e3; + } + search(e3) { + super.search(e3), e3.checkText(this.action, this.nameValue, this.configListManager.dependencyContext); + } + reset() { + this.setValue(void 0), c.fireEvent(this, l.valueChanged); + } + setValue(e3) { + (this.idValue || e3) && (this.nameValue === (null == e3 ? void 0 : e3.name) && this.idValue === (null == e3 ? void 0 : e3.id) || (e3 ? (this.nameValue = e3.name, this.idValue = e3.id) : (this.nameValue = null, this.idValue = null), c.fireEvent(this, l.valueChanged))); + } + get amObjectEventEmitter() { + return true; + } + containedValidation() { + this.initializeDesignTimeCalled && _.validateItem(this, true, true); + } + updateDependencies() { + if (super.updateDependencies(), !this.metaData.skipNetworkPropertyDependencyUpdate && this.idValue) if (this.outOfService) s.registerNonDependencyValidationItem(this.action, this.configListManager.dependencyContext, this.nameValue, this.idValue, this.configListManager.dependencyType.value); + else { + const e3 = this.configListManager.hasDependencyTrackingId && this.action.getDependencyTrackingId ? this.action.getDependencyTrackingId() : this.idValue; + this.configListManager.registerConsumer(this.action, this.nameValue, e3); + } + } + getItem() { + return this.configListManager.getItem(this.idValue, this.action); + } + validate(e3) { + var t3; + if (super.validate(e3), this.currentUiErrorMessage = null, !this.outOfService && !this.skipValidationCheck) if (this.idValue || this.isOptional || (null === (t3 = this.action.uiMetaData) || void 0 === t3 ? void 0 : t3.isLoadingAutoManagedBotRunnable)) { + if (this.idValue) { + let t4 = this.configListManager.getItem(this.idValue, this.action); + if (!t4 && this.action.hasAutoSelectedBotRunnable && this._predecessorProp && !this.action.isReadOnly) { + const e4 = this.action[this._predecessorProp]._modelIdPropName; + t4 = o.default.find(this.configListManager.items, (t5) => t5[e4] === this.action[this._predecessorProp].idValue), o.default.isObject(t4) && (this.idValue = t4.id, this.nameValue = t4.name); + } + if (!t4 || t4.isFlowCachedVersion) if (this.configListManager.viewModelIsAutoSelectedBotRunnable && this.action.isReadOnly) ; + else if (this.configListManager.viewModelIsAutoSelectedBotRunnable && this._predecessorProp && this.action[this._predecessorProp].notFoundErrorMessage) ; + else { + const t5 = (0, r2.sprintf)(this.notFoundErrorMessage, this.nameValue); + e3.addError(this, t5, false, true), this.currentUiErrorMessage = t5; + } + else e3.isDeep && (this.configListManager.registerConsumer(this.action, t4.name, t4.id), this.nameValue = t4.name, this.configListManager.addItemToFlowMetadata(this.action, this.nameValue, this.idValue)); + } + } else this._predecessorProp && this.action[this._predecessorProp].isNetworkBasedActionProperty && !this.action[this._predecessorProp].idValue || (e3.addError(this, this._notSelectedErrorMessage, false, true), this.currentUiErrorMessage = this._notSelectedErrorMessage, s.unRegisterConsumer(this.action, this.configListManager.dependencyType.value)); + } + static get managedProperties() { + return []; + } + getAdditionalSearchParams() { + if (this._additionalSearchParamsCallback) return this._additionalSearchParamsCallback(this); + } + searchResultsFilter(e3) { + return !this._searchResultsFilterCallback || this._searchResultsFilterCallback(this, e3); + } + static createCreateDetails(e3, t3, i3, n3, r3, o2, a2, s2) { + return { create: function(l2, u2) { + return new m(l2, u2, i3, e3, t3, n3, r3, o2, a2, s2); + }, getCreateClass: function() { + return m; + }, modelProperties: [e3, t3], manager: i3 }; + } + } + t2.NetworkBasedActionProperty = m; + }, 28817: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(54757)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "jsonCollection"; + } + get displayTypeName() { + return "ArchValueJsonCollection"; + } + get isArchValueJsonCollection() { + return true; + } + } + t2.default = r2; + }, 28850: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(81574)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "journeySegment"; + } + get id() { + } + get color() { + } + get createdDateUtc() { + } + get description() { + } + get displayName() { + } + get isActive() { + } + get modifiedDateUtc() { + } + get shouldDisplayToAgent() { + } + get version() { + } + get displayTypeName() { + return "ArchValueJourneySegment"; + } + get isArchValueJourneySegment() { + return true; + } + } + t2.default = r2; + }, 28904: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.BaseFindSystemObjectByIdActionModel = void 0; + const n2 = i2(31635), r2 = i2(7340), o = i2(80295), a = i2(80295), s = i2(7401); + class l extends r2.BaseFindSystemObjectActionModel { + constructor(e3) { + super(e3), (0, a.makeUnenumerable)(this, "_findId"); + } + get findId() { + return this._findId; + } + set findId(e3) { + this._findId = this.reviveItem(e3, s); + } + pasteReIdOrRename(e3) { + super.pasteReIdOrRename(e3), this._findId.pasteReIdOrRename(e3); + } + pasteResolveOldToNewValues(e3) { + super.pasteResolveOldToNewValues(e3), this._findId.pasteResolveOldToNewValues(e3); + } + } + t2.BaseFindSystemObjectByIdActionModel = l, n2.__decorate([(0, o.enumerable)(true), n2.__metadata("design:type", Object), n2.__metadata("design:paramtypes", [Object])], l.prototype, "findId", null); + }, 28912: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importDefault(i2(94225)), o = i2(39139), a = n2.__importDefault(i2(45894)); + class s extends a.default { + constructor(e3) { + super(e3, o.videoManager); + } + get _globalTypeName() { + return "video"; + } + get displayTypeName() { + return "ArchValueVideo"; + } + get isArchValueVideo() { + return true; + } + setLiteralByVideoIdAsync(e3, t3) { + return n2.__awaiter(this, void 0, void 0, function* () { + return this._checkItemIsValidLiteralString(this._infoParm("videoId", "setLiteralByVideoIdAsync"), e3), this._checkItemIsValidFunction(this._infoParm("callbackFunction", "setLiteralByVideoIdAsync"), t3, true), this._setLiteralByIdAsync(e3).then(() => r2.default.executeCallback(this, "setLiteralByVideoIdAsync", t3, this)); + }); + } + setLiteralByVideoNameAsync(e3, t3) { + return n2.__awaiter(this, void 0, void 0, function* () { + return this._checkItemIsValidLiteralString(this._infoParm("videoName", "setLiteralByVideoNameAsync"), e3), this._checkItemIsValidFunction(this._infoParm("callbackFunction", "setLiteralByVideoNameAsync"), t3, true), this._setLiteralByValueAsync(e3).then(() => r2.default.executeCallback(this, "setLiteralByVideoNameAsync", t3, this)); + }); + } + } + t2.default = s; + }, 28996: function(e2, t2, i2) { + "use strict"; + var n2 = this && this.__values || function(e3) { + var t3 = "function" == typeof Symbol && Symbol.iterator, i3 = t3 && e3[t3], n3 = 0; + if (i3) return i3.call(e3); + if (e3 && "number" == typeof e3.length) return { next: function() { + return e3 && n3 >= e3.length && (e3 = void 0), { value: e3 && e3[n3++], done: !e3 }; + } }; + throw new TypeError(t3 ? "Object is not iterable." : "Symbol.iterator is not defined."); + }; + Object.defineProperty(t2, "__esModule", { value: true }), t2.windowToggle = void 0; + var r2 = i2(76808), o = i2(69879), a = i2(65212), s = i2(19724), l = i2(17214), u = i2(5717), d = i2(54830); + t2.windowToggle = function(e3, t3) { + return a.operate(function(i3, a2) { + var c = [], p = function(e4) { + for (; 0 < c.length; ) c.shift().error(e4); + a2.error(e4); + }; + s.innerFrom(e3).subscribe(l.createOperatorSubscriber(a2, function(e4) { + var i4 = new r2.Subject(); + c.push(i4); + var n3, _ = new o.Subscription(); + try { + n3 = s.innerFrom(t3(e4)); + } catch (e5) { + return void p(e5); + } + a2.next(i4.asObservable()), _.add(n3.subscribe(l.createOperatorSubscriber(a2, function() { + d.arrRemove(c, i4), i4.complete(), _.unsubscribe(); + }, u.noop, p))); + }, u.noop)), i3.subscribe(l.createOperatorSubscriber(a2, function(e4) { + var t4, i4, r3 = c.slice(); + try { + for (var o2 = n2(r3), a3 = o2.next(); !a3.done; a3 = o2.next()) a3.value.next(e4); + } catch (e5) { + t4 = { error: e5 }; + } finally { + try { + a3 && !a3.done && (i4 = o2.return) && i4.call(o2); + } finally { + if (t4) throw t4.error; + } + } + }, function() { + for (; 0 < c.length; ) c.shift().complete(); + a2.complete(); + }, p, function() { + for (; 0 < c.length; ) c.shift().unsubscribe(); + })); + }); + }; + }, 29017: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.ExpressionTypeDigitalAudioOptions = void 0; + const n2 = i2(65615); + class r2 extends n2.BaseExpressionTypeCollectionOptions { + static create(e3, t3) { + return new this(t3).invokeOptionsCallback(e3); + } + constructor(e3) { + super(e3); + } + get className() { + return "ExpressionTypeDigitalAudioOptions"; + } + get isExpressionTypeDigitalAudioOptions() { + return true; + } + } + t2.ExpressionTypeDigitalAudioOptions = r2; + }, 29035: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.findIndex = void 0; + var n2 = i2(65212), r2 = i2(98183); + t2.findIndex = function(e3, t3) { + return n2.operate(r2.createFind(e3, t3, "index")); + }; + }, 29102: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importDefault(i2(92140)), o = n2.__importStar(i2(63824)), a = n2.__importStar(i2(81116)), s = i2(14394), l = i2(67607), u = i2(79467), d = i2(78513), c = n2.__importDefault(i2(61864)), p = n2.__importStar(i2(1115)), _ = i2(12179), h = n2.__importDefault(i2(68460)), m = i2(74803), g = i2(7401), f = i2(47957); + class T extends h.default { + constructor(e3, t3) { + super(e3, t3), this.isValidatingExtDelay = false, this.isValidatingPromptDelay = false, this.modelPropertyName = "defaultSettings.Menu", Object.defineProperties(this, { isFlowSettings: { value: !t3 } }); + } + get id() { + return "menuSettings"; + } + get className() { + return "MenuSettingsViewModel"; + } + get showInFlowSize() { + return false; + } + getConfiguration(e3, t3) { + if (null == t3 ? void 0 : t3.isForFlowYaml) return { extensionDialingMaxDelay: this.extensionDialingDelay.getConfiguration(e3, t3), listenForExtensionDialing: this.useExtensionDialing.getConfiguration(e3, t3), menuSelectionTimeout: this.promptRepeatDelay.getConfiguration(e3, t3), repeatCount: this.promptRepeatCount.getConfiguration(e3, t3) }; + this.isFlowSettings && (e3.defaultSettings || (e3.defaultSettings = new m()), e3.defaultSettings.Menu || (e3.defaultSettings.Menu = {}), e3.defaultSettings.Menu.promptRepeatCount = this.promptRepeatCount.getConfiguration(e3, t3), e3.defaultSettings.Menu.promptRepeatDelay = this.promptRepeatDelay.getConfiguration(e3, t3), e3.defaultSettings.Menu.extensionDialingDelay = this.extensionDialingDelay.getConfiguration(e3, t3), e3.defaultSettings.Menu.useExtensionDialing = this.useExtensionDialing.getConfiguration(e3, t3)); + } + getDisplayName() { + return f.menu.defaultMenuSettings; + } + getNodeName() { + return f.customNodes.menus; + } + get isMenuSettingsNode() { + return true; + } + loadConfiguration(e3) { + var t3; + this.isFlowSettings && !e3.defaultSettings && (e3.defaultSettings = new m()); + const i3 = (e4) => e4.setAllowFlowLevelDefault(true).setIsOptional(true).setDefaultToExpression(true), n3 = d.ExpressionTypeIntegerOptions.create((e4) => e4.setIninTestingField("promptRepeatCount").facets.setMinInt(0, true).setMaxInt(10, true)), r3 = u.ExpressionTypeDurationOptions.create((e4) => e4.setDurationStyle(o.durationStyles.secondsAndTenthsDuration).setAllowModeLiteralOnly().setIninTestingField("promptRepeatDelay").facets.setMinDur(0, true).setMaxDur(6e4, true)).setCustomLiteralValidator((e4) => (this.isValidatingPromptDelay = true, this.validateExtDialDelayIsLessThanRepeatDelay(e4))), c2 = u.ExpressionTypeDurationOptions.create((e4) => e4.setDurationStyle(o.durationStyles.secondsAndTenthsDuration).setAllowModeLiteralOnly().setIninTestingField("extensionDialingDelayNum").facets.setMinDur(0, true).setMaxDur(6e4, true)).setCustomLiteralValidator((e4) => (this.isValidatingExtDelay = true, this.validateExtDialDelayIsLessThanRepeatDelay(e4))), p2 = new l.ExpressionTypeBooleanOptions().setAllowModeLiteralOnly().setIninTestingField("shouldUseExtensionDialing"); + this.isFlowSettings ? (n3.setDefaultText("3"), r3.setDefaultText("P0D0H0M10S0F"), c2.setDefaultText("P0D0H0M1S0F"), p2.setDefaultText("true")) : (i3(n3), i3(r3), i3(c2), i3(p2)); + const _2 = (null === (t3 = this.parent) || void 0 === t3 ? void 0 : t3.isFlowViewModel) ? this : this.parent; + this.promptRepeatCount = a.expression(this.parentFlow, _2, this._prepareModel(e3, "promptRepeatCount"), f.menu.promptRepeatCount, s.globalTypes.integer, null, n3), this.promptRepeatDelay = a.expression(this.parentFlow, _2, this._prepareModel(e3, "promptRepeatDelay"), f.menu.menuSelectionTimeout, s.globalTypes.duration, null, r3), this.extensionDialingDelay = a.expression(this.parentFlow, _2, this._prepareModel(e3, "extensionDialingDelay"), f.menu.extensionDialingMaxDelay, s.globalTypes.duration, null, c2), this.useExtensionDialing = a.expression(this.parentFlow, _2, this._prepareModel(e3, "useExtensionDialing"), f.menu.useExtensionDialing, s.globalTypes.boolean, null, p2); + } + get nodeGuxIcon() { + return c.default.menu.gux; + } + get helpTopic() { + return _.helpTopics.treeNodes.menuSettings; + } + search(e3) { + e3.addToQueue(this.promptRepeatCount), e3.addToQueue(this.promptRepeatDelay), e3.addToQueue(this.extensionDialingDelay), e3.addToQueue(this.useExtensionDialing); + } + validate(e3) { + this.isValidatingExtDelay = true, this.promptRepeatDelay.validate(e3), this.promptRepeatCount.validate(e3), this.useExtensionDialing.validate(e3), this.isValidatingPromptDelay = true, this.extensionDialingDelay.validate(e3); + } + validateExtDialDelayIsLessThanRepeatDelay(e3) { + const t3 = e3 === this.extensionDialingDelay ? f.menu.extDialDelayTooBigError : f.menu.promptRepeatDelayTooSmallError; + e3 !== this.extensionDialingDelay || this.isValidatingPromptDelay ? this.isValidatingExtDelay || p.validateItem(this.extensionDialingDelay, false, true) : p.validateItem(this.promptRepeatDelay, false, true), this.isValidatingExtDelay = false, this.isValidatingPromptDelay = false; + const i3 = this.parentFlow.menuSettings; + if (i3 !== this || this.parentFlow.isValidating || this.parentFlow.menus.forEach((e4) => p.validateNode(e4)), e3.hasValidationError) return; + const n3 = (e4, t4) => e4.isBlank ? t4 : e4, o2 = n3(this.useExtensionDialing, i3.useExtensionDialing); + if (!this.isFlowSettings && "false" === o2.text) return; + if (!this.isFlowSettings && this.extensionDialingDelay.isBlank && this.promptRepeatDelay.isBlank) return; + const a2 = n3(this.extensionDialingDelay, i3.extensionDialingDelay).toNumber(), s2 = n3(this.promptRepeatDelay, i3.promptRepeatDelay).toNumber(); + return r2.default.isUndefined(a2) || r2.default.isUndefined(s2) ? void 0 : a2 >= s2 ? t3 : void 0; + } + get wrappedYamlName() { + return "settingsMenu"; + } + _destroy() { + super._destroy(), this.promptRepeatDelay && this.promptRepeatDelay.destroy(), this.promptRepeatCount && this.promptRepeatCount.destroy(), this.extensionDialingDelay && this.extensionDialingDelay.destroy(), this.useExtensionDialing && this.useExtensionDialing.destroy(); + } + _initializeDesignTime() { + super._initializeDesignTime(), this.promptRepeatCount.initializeDesignTime(), this.promptRepeatDelay.initializeDesignTime(), this.extensionDialingDelay.initializeDesignTime(), this.useExtensionDialing.initializeDesignTime(); + } + _prepareModel(e3, t3) { + const i3 = this.isFlowSettings ? e3.defaultSettings : e3; + return this.isFlowSettings ? (i3.Menu || (i3.Menu = {}), i3.Menu[t3] && !r2.default.isEmpty(i3.Menu[t3]) || (i3.Menu[t3] = new g()), i3.Menu[t3]) : (i3[t3] && !r2.default.isEmpty(i3[t3]) || (i3[t3] = new g()), i3[t3]); + } + } + t2.default = T; + }, 29115: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.ContactListType = void 0; + const n2 = i2(71056), r2 = i2(43610), o = i2(80428), a = i2(94765); + class s extends a.ExpressionType { + constructor(e3, t3, i3) { + super(e3, t3, i3); + } + get className() { + return "ContactListType"; + } + createExpressionOptionClass() { + return new n2.ExpressionTypeNetworkObjectOptions(); + } + canConvertLitToExpression(e3) { + return false; + } + convertLitToExpression(e3, t3) { + return ""; + } + _getLiteralValueOfExpression() { + return ""; + } + get listManager() { + return r2.contactListManager; + } + } + t2.ContactListType = s, s.typeIdentifier = o.expressionTypeNames.contactList; + }, 29133: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.addVariable = s, t2.removeVariable = u, t2.updateType = function(e3, t3) { + let i3 = []; + o.default.each(e3._expansions, (e4) => { + e4.type === t3 && (i3 = o.default.union(i3, [e4.realVariable || e4])); + }), o.default.each(i3, (t4) => { + u(e3, t4); + const i4 = s(e3, t4, true); + e3.hasExpanded = o.default.union(e3.hasExpanded, o.default.pluck(i4, "expandedKey"), [t4.expandedKey]); + }); + }; + const n2 = i2(31635), r2 = n2.__importStar(i2(9345)), o = n2.__importDefault(i2(92140)), a = i2(26232); + function s(e3, t3, i3) { + if (!t3) return; + const n3 = []; + !t3.hideFromAutocomplete && i3 && (o.default.contains(e3._expansions, t3) || e3.addExpansionVariable(t3)); + const s2 = (i4, l2, u2) => { + i4.canAttachProperty && o.default.each(i4.type.properties, (d) => { + var c; + const p = o.default.union(l2, [d.name]), _ = a(p, t3.clone()); + _ && (i4.isReadOnly && (_.isReadOnly = true), _.hierarchicalParent = i4, e3.addExpansionVariable(_), u2.expansionList.push(_), n3.push(_), (null === (c = _.type) || void 0 === c ? void 0 : c.isMatch(i4.type, r2.settings.exact)) || s2(_, p, u2)); + }); + }; + return t3.type && o.default.each(t3.type.properties, (i4) => { + const r3 = [t3.name, i4.name], o2 = a(r3, t3.clone()); + o2 && (o2.hierarchicalParent = t3, o2.description = i4.description, o2.ids = [t3.id, i4.id], o2.displayValue = i4.displayValue, (t3.isReadOnly || i4.isReadOnly || i4.isComputed) && (o2.isReadOnly = true), e3.addExpansionVariable(o2), t3.expansionList.push(o2), n3.push(o2), s2(o2, r3, t3)); + }), n3; + } + function l(e3, t3) { + const i3 = t3.parent ? t3.parent.id : t3.parentFlow.id; + delete e3._expansions[t3.id], e3._expansionsNameToId[i3] && e3._expansionsNameToId[i3][t3.lowerName] === t3.id && delete e3._expansionsNameToId[i3][t3.name], e3._expansionsDeprecatedNameToId[i3] && e3._expansionsDeprecatedNameToId[i3][t3.lowerName] === t3.id && delete e3._expansionsDeprecatedNameToId[i3][t3.deprecatedName]; + } + function u(e3, t3) { + t3 && (l(e3, t3), delete e3.hasExpanded[t3.expandedKey]), o.default.each(t3.expansionList, (t4) => { + l(e3, t4), delete e3.hasExpanded[t4.expandedKey]; + }); + } + }, 29268: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(54063)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "worktypeStatusCollection"; + } + get displayTypeName() { + return "ArchValueWorktypeStatusCollection"; + } + get isArchValueWorktypeStatusCollection() { + return true; + } + } + t2.default = r2; + }, 29269: (e2, t2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.utf8EncodedSizeCalc = function(e3, t3) { + if ("string" != typeof e3) return console.error("Non-string value passed into utf8EncodedSizeCalc."), 0; + let i2 = e3.length; + for (let n2 = e3.length - 1; n2 >= 0; n2--) { + const r2 = e3.charCodeAt(n2); + if (r2 > 127 && r2 <= 2047 ? i2++ : r2 > 2047 && r2 <= 65535 && (i2 += 2), r2 >= 56320 && r2 <= 57343 && n2--, t3 && i2 > t3) return t3 + 1; + } + return i2; + }; + }, 29304: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importDefault(i2(83663)); + class o extends r2.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "timePicker"; + } + get displayTypeName() { + return "ArchValueTimePicker"; + } + get isArchValueTimePicker() { + return true; + } + get title() { + return this._getAssignableProperty("title"); + } + get subtitle() { + return this._getAssignableProperty("subtitle"); + } + get image() { + return this._getAssignableProperty("image"); + } + get address() { + return this._getAssignableProperty("address"); + } + get longitude() { + return this._getAssignableProperty("longitude"); + } + get latitude() { + return this._getAssignableProperty("latitude"); + } + setLiteralTimePicker(e3, t3, i3, r3, o2, a) { + return n2.__awaiter(this, void 0, void 0, function* () { + this.title.setLiteralString(e3), t3 && this.subtitle.setLiteralString(t3), i3 && (yield this.image.setLiteralByImageNameAsync(i3)), r3 && o2 && a && (this.address.setLiteralString(r3), this.longitude.setLiteralDecimal(o2), this.latitude.setLiteralDecimal(a)); + }); + } + } + t2.default = o; + }, 29317: (e2, t2, i2) => { + "use strict"; + const n2 = i2(31635), r2 = n2.__importDefault(i2(92140)), o = i2(61870), a = i2(99469), s = i2(36128), l = i2(8625), u = n2.__importDefault(i2(41510)), d = i2(12179), c = n2.__importDefault(i2(97891)), p = i2(28803), _ = n2.__importDefault(i2(92566)), h = i2(80428), m = i2(51294), g = i2(47957); + class f extends _.default { + _initializeDesignTime() { + this.botId && r2.default.isUndefined(this.environmentId) && (this.environmentId = u.default.dialogflow.draftEnvironmentId), super._initializeDesignTime(); + } + get botRunnableNetworkGetCall() { + return m.getAgent; + } + get isDialogflowAction() { + return true; + } + static get managedProperties() { + return [{ label: g.dialogflow.intentProbabilityLabel, options: o.ExpressionTypeDecimalOptions.create((e3) => e3.setDescriptionInfo(g.dialogflow.intentProbabilityLabel, g.dialogflow.intentProbabilityDescription).setIninTestingField("intentProbability").setIsOptional(true).setAsOutput()), property: "intentProbability", type: h.expressionTypeNames.decimal, yamlOptions: _.default.createYamlOptions("intentProbability", (e3) => e3.setExportOrder(4)) }, { property: "bot", createDetails: p.NetworkBasedActionProperty.createCreateDetails("botId", "botName", l.dialogflowAgentManager, g.dialogflow.mustSelectAgent, g.dialogflow.agentNotFound, null), yamlOptions: f.createYamlOptions("bot", (e3) => e3.setSkipProperty(true)) }, { property: "outputs", dataPairListCollection: true, isOutput: true, options: a.ManagedPropertyOptions.create((e3) => e3.setIsOptional(true)), yamlOptions: _.default.createYamlOptions(`${this.name}-outputs`, (e3) => e3.setPropertyName("intents")) }, { property: "outputSessionVariables", namedItems: true, isOutput: true, options: s.NameValuePairsOptions.create((e3) => e3.setAllowLiteralModeOnlyOnName(true).setNameLabel(g.dialogflow.sessionKeyLabel).setValueLabel(g.getAttributes.variableLabel)), yamlOptions: _.default.createYamlOptions("outputSessionVariables", (e3) => e3.setWrappedCollectionItemName("outputSessionVariable").setNameValuePairShouldUseVariableProperty(true).setExportOrder(6)) }, { label: g.dialogflow.sessionLabel, property: "sessionVariables", namedItems: true, isOutput: false, options: s.NameValuePairsOptions.create((e3) => e3.setAllowLiteralModeOnlyOnName(true).setNameLabel(g.dialogflow.sessionKeyLabel).setValueLabel(g.updateVariables.variableValue)), yamlOptions: _.default.createYamlOptions("sessionVariables", (e3) => e3.setWrappedCollectionItemName("sessionVariable").setExportOrder(5)) }]; + } + validate(e3) { + super.validate(e3); + const t3 = this.botRunnableManager.getItem(this.botRunnableProperty.idValue); + 0 === (null == t3 ? void 0 : t3.intents.length) && e3.addError(this, g.dialogflow.agentHasNoIntents); + } + } + f.info = c.default.createActionInfo({ actionClass: f, canBeInTask: true, helpTopic: d.helpTopics.actions.dialogflow, modelClass: i2(79857), name: g.actions.dialogflow, scriptingName: "ArchActionCallDialogflowBot" }), t2.A = f; + }, 29374: (e2, t2, i2) => { + function n2() { + this.id = void 0, this.name = void 0, this.color = void 0, this.modes = void 0, n2.baseConstructor.apply(this, arguments); + } + i2(45214).extend(n2, "NuanceMixChannel"), Object.defineProperties(n2.prototype, { displayName: { get: function() { + return this.name; + }, set: function(e3) { + this.name = e3; + } }, label: { get: function() { + return this.name; + }, set: function(e3) { + this.name = e3; + } } }), e2.exports = n2; + }, 29390: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = i2(30801), o = n2.__importDefault(i2(11210)); + class a extends o.default { + constructor(e3) { + super(e3), this._target = this.coreFactory.createArchWrapper(e3.target); + } + get _actionTypeId() { + return r2.clearPostFlowActionType; + } + get displayTypeName() { + return this._scriptingName; + } + get isArchActionClearPostFlow() { + return true; + } + get target() { + return this._target; + } + } + t2.default = a; + }, 29433: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(92661)), r2 = i2(30801); + class o extends n2.default { + constructor(e3) { + super(e3); + } + get _actionTypeId() { + return r2.findGrammarActionType; + } + get displayTypeName() { + return this._scriptingName; + } + get isArchActionFindGrammar() { + return true; + } + get findResult() { + return this._findResult; + } + } + t2.default = o; + }, 29463: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = i2(80295), o = n2.__importDefault(i2(55015)); + class a extends o.default { + constructor(e3) { + super(e3), (0, r2.makeUnenumerable)(this, "_language"), this.isAvailable = !!this.language; + } + get language() { + return this._language; + } + set language(e3) { + this._language = e3; + } + } + t2.default = a, n2.__decorate([(0, r2.enumerable)(true), n2.__metadata("design:type", String), n2.__metadata("design:paramtypes", [String])], a.prototype, "language", null); + }, 29485: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.NameValuePairs = void 0; + const n2 = i2(31635), r2 = i2(17604), o = n2.__importStar(i2(8462)), a = n2.__importStar(i2(81116)), s = i2(14394), l = i2(44703), u = n2.__importDefault(i2(45623)), d = i2(7401), c = i2(47957), p = i2(42217); + class _ extends l.ExpressionContainer { + constructor(e3, t3, i3, n3, r3) { + super(e3.parentFlow, e3, t3, n3, r3), Object.defineProperties(this, { isOutput: { value: i3 } }), this._initialize(); + } + createItem(e3, t3) { + (e3 = e3 || new p()).variable = e3.variable || new d(), e3.expression = e3.expression || new d(); + const i3 = s.globalTypes.string.createExpressionOptionClass().setAsInput(); + i3.facets.setMinLength(1), this.options && this.options.allowLiteralOnlyOnName && i3.setAllowModeLiteralOnly(); + const n3 = a.expression(this.parentFlow, this.parent, e3.variable, this.getNameLabel(this.items.length), s.globalTypes.string, void 0, i3), r3 = o.buildOptions(t3 || e3.expression.type, void 0, this.parentFlow); + this.isOutput && r3.setAsOutput(); + const l2 = a.expression(this.parentFlow, this.parent, e3.expression, this.getValueLabel(this.items.length), t3, void 0, r3); + return new u.default(e3, n3, l2); + } + getValueLabel(e3) { + const t3 = this.options && this.options.valueLabel ? this.options.valueLabel : c.updateVariables.variableValue; + return (0, r2.sprintf)(t3, e3 + 1); + } + getAddButtonLabel() { + return this.options && this.options.addButtonLabel ? this.options.addButtonLabel : c.collectionEditor.addItem; + } + getSectionLabel() { + return this.options && this.options.sectionLabel ? this.options.sectionLabel : c.setAttributes.attribute; + } + getEmptySectionLabel() { + return c.setAttributes.noAttributesDefined; + } + getNameLabel(e3) { + const t3 = this.options && this.options.nameLabel ? this.options.nameLabel : c.setAttributes.nameLabel; + return (0, r2.sprintf)(t3, e3 + 1); + } + get isNameValuePairs() { + return true; + } + orderChanged() { + this.updateItemLabels(), super.orderChanged(); + } + updateItemLabels() { + this.items.forEach((e3, t3) => { + e3.name.label = this.getNameLabel(t3), e3.expression.label = this.getValueLabel(t3); + }); + } + get className() { + return "NameValuePairs"; + } + isVariableListEmpty(e3) { + const t3 = this.parent, i3 = t3.variables ? t3.variables.items : null; + i3 && 0 !== i3.length || e3.addWarning(t3, c.getAttributes.noAttributesError); + } + } + t2.NameValuePairs = _; + }, 29505: (e2, t2, i2) => { + "use strict"; + var n2, r2; + Object.defineProperty(t2, "__esModule", { value: true }), t2.ExpressionTypeUtilizationLabelOptions = void 0; + const o = i2(31635), a = o.__importDefault(i2(40370)), s = i2(80295), l = i2(71056), u = i2(80295), d = i2(55909), c = i2(33951); + class p extends l.ExpressionTypeNetworkObjectOptions { + static create(e3, t3) { + return new this(t3).invokeOptionsCallback(e3); + } + constructor(e3) { + super(e3), this._utilizationLabelFacets = new a.default(), (0, u.makeUnenumerable)(this, "_utilizationLabelFacets"); + } + get className() { + return "ExpressionTypeUtilizationLabelOptions"; + } + get isExpressionTypeUtilizationLabelOptions() { + return true; + } + get facets() { + return this._utilizationLabelFacets; + } + set facets(e3) { + this._utilizationLabelFacets = c.ParameterValidator.expectTrue(e3 && true === e3.isUtilizationLabelFacets, e3, "UtilizationLabelFacets", () => d.ParameterInfo.createPropertySet(this.className, "facets", "value")); + } + } + t2.ExpressionTypeUtilizationLabelOptions = p, o.__decorate([(0, s.enumerable)(true), o.__metadata("design:type", "function" == typeof (n2 = void 0 !== a.default && a.default) ? n2 : Object), o.__metadata("design:paramtypes", ["function" == typeof (r2 = void 0 !== a.default && a.default) ? r2 : Object])], p.prototype, "facets", null); + }, 29512: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.concatMap = void 0; + var n2 = i2(67478), r2 = i2(10281); + t2.concatMap = function(e3, t3) { + return r2.isFunction(t3) ? n2.mergeMap(e3, t3, 1) : n2.mergeMap(e3, 1); + }; + }, 29526: (e2, t2, i2) => { + const n2 = i2(22124), r2 = i2(31938); + function o() { + o.baseConstructor.apply(this, arguments); + } + n2.extend(o, "TimeZoneList"), Object.defineProperties(o.prototype, { entities: { enumerable: true, get: function() { + return this._entities; + }, set: function(e3) { + this._entities = this.reviveArrayToMap(e3, r2); + } } }), e2.exports = o; + }, 29527: (e2, t2, i2) => { + function n2() { + n2.baseConstructor.apply(this, arguments); + } + i2(39950).extend(n2, "ClipboardContentActionModel", true), Object.defineProperties(n2.prototype, { configure: { value: function(e3, t3, i3, r2) { + n2._super.configure.apply(this, arguments); + } } }), e2.exports = n2; + }, 29546: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.determineGenesysCloudToArchitectLocale = m, t2.getCurrentLanguageDirection = function() { + const e3 = r2.default.findWhere(d, { id: s.getCurrentLanguage() }); + return e3 ? e3.direction : u.leftToRight; + }, t2.getCurrentLanguage = function() { + return _; + }; + const n2 = i2(31635), r2 = n2.__importDefault(i2(92140)), o = i2(24032), a = i2(6256), s = n2.__importStar(i2(74359)), l = i2(22754), u = i2(37675), d = i2(98261), c = (0, o.getTopic)("languageManager"), p = "en-us"; + let _; + const h = ["fi", "th", "da"]; + function m(e3) { + const t3 = l.storage.cookies.get(l.storage.keys.pcLocale), i3 = l.storage.cookies.get(l.storage.keys.pcLocaleOld); + if (c.info("New cookie value: '" + t3 + "', old cookie value: '" + i3 + "'"), e3 || (e3 = t3 || i3), !e3) return c.info("No language found in cookie storage."), null; + const n3 = (0, a.getGenesysCloudToArchitectLocale)(e3); + return n3 ? (c.info("Using language " + JSON.stringify(n3)), n3.id) : (r2.default.contains(h, e3) || c.error(`No matching language found for "${e3}".`), null); + } + { + let e3; + e3 = m(), e3 ? (c.info("Setting currentLanguage to: " + e3), _ = e3) : (c.info("Setting currentLanguage to default language: " + p), _ = p); + } + if (s.setCurrentLanguage(_), r2.default.findWhere(d, { id: _ }).italic) { + const e3 = document.createElement("style"); + e3.type = "text/css", e3.innerHTML = ".italicize { font-style: italic; }", document.getElementsByTagName("head")[0].appendChild(e3); + } + }, 29565: (e2, t2, i2) => { + const n2 = i2(94830), r2 = i2(36019).default, o = i2(50778); + function a() { + } + const s = new a(); + a.prototype.getDivisions = r2.request("GET", "{public-api.apps}/api/v2/authorization/divisions", n2), a.prototype.getDivision = r2.request("GET", "{public-api.apps}/api/v2/authorization/divisions/{id}", o), s.getDivisions.addOptions({ ignoreBadResponse: true }), e2.exports = s; + }, 29586: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.ExpressionTypeDivisionOptions = void 0; + const n2 = i2(71056); + class r2 extends n2.ExpressionTypeNetworkObjectOptions { + static create(e3, t3) { + return new this(t3).invokeOptionsCallback(e3); + } + constructor(e3) { + super(e3); + } + get className() { + return "ExpressionTypeDivisionOptions"; + } + get isExpressionTypeDivisionOptions() { + return true; + } + } + t2.ExpressionTypeDivisionOptions = r2; + }, 29626: (e2, t2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.getSendRichLinkFailureReasons = void 0; + t2.getSendRichLinkFailureReasons = ["ActionInvocationLimitExceeded", "GeneralError"]; + }, 29651: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importDefault(i2(94225)), o = i2(91674), a = n2.__importDefault(i2(45894)); + class s extends a.default { + constructor(e3) { + super(e3, o.emergencyGroupManager); + } + get _globalTypeName() { + return "emergencyGroup"; + } + get displayTypeName() { + return "ArchValueEmergencyGroup"; + } + get isArchValueEmergencyGroup() { + return true; + } + setLiteralByEmergencyGroupIdAsync(e3, t3) { + return n2.__awaiter(this, void 0, void 0, function* () { + return this._checkItemIsValidLiteralString(this._infoParm("emergencyGroupId", "setLiteralByEmergencyGroupIdAsync"), e3), this._checkItemIsValidFunction(this._infoParm("callbackFunction", "setLiteralByEmergencyGroupIdAsync"), t3, true), this._setLiteralByIdAsync(e3).then(() => r2.default.executeCallback(this, "setLiteralByEmergencyGroupIdAsync", t3, this)); + }); + } + setLiteralByEmergencyGroupNameAsync(e3, t3) { + return n2.__awaiter(this, void 0, void 0, function* () { + return this._checkItemIsValidLiteralString(this._infoParm("emergencyGroupName", "setLiteralByEmergencyGroupNameAsync"), e3), this._checkItemIsValidFunction(this._infoParm("callbackFunction", "setLiteralByEmergencyGroupNameAsync"), t3, true), this._setLiteralByValueAsync(e3).then(() => r2.default.executeCallback(this, "setLiteralByEmergencyGroupNameAsync", t3, this)); + }); + } + } + t2.default = s; + }, 29659: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importDefault(i2(3220)), o = n2.__importDefault(i2(37873)); + class a extends o.default { + constructor(e3) { + super(e3); + } + get displayTypeName() { + return "ArchTtsVoice"; + } + get isArchTtsVoice() { + return true; + } + get logStr() { + if (!this._getCoreViewModel()) return this.logStrTypeOnly; + const e3 = []; + return this.id && this._appendLogStrId(e3, this.id), this.name && this._appendLogStrName(e3, this.name), this._appendLogStrType(e3, this.displayTypeName), this._createLogStrFromParts(e3); + } + get name() { + return this._getCoreViewModel().name; + } + get parentEngine() { + return this.coreFactory.createArchWrapper(this._getCoreViewModel().engine); + } + get supportedLanguage() { + const e3 = this._getCoreViewModel().language; + return this.logItemVerboseNote(this._infoPropGet("supportedLanguage"), `looking up ArchLanguage for voice language tag '${e3}' to return.`), r2.default.getByLanguageTag(e3); + } + getLanguageSupport(e3) { + const t3 = this._infoParm("archLanguage", "getLanguageSupport"); + this._checkItem(t3, !e3 || !e3.isArchLanguage, "you must specify an Architect language for which to retrieve language support."); + const i3 = this._getCoreViewModel(), n3 = e3.tag.toLowerCase(); + return i3.getVoiceSupportsLanguage(n3) ? "exact" : i3.getVoiceSupportsLanguageNoRegion(n3.split("-")[0]) ? "languageOnly" : "none"; + } + } + t2.default = a; + }, 29680: (e2, t2, i2) => { + const n2 = i2(60475), { getSecuredDataActionType: r2 } = i2(30801); + function o() { + o.baseConstructor.apply(this, arguments); + } + n2.extend(o, r2, true), e2.exports = o; + }, 29762: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + var n2 = i2(41827), r2 = i2(67359); + const o = r2.styleTags({ String: r2.tags.string, Number: r2.tags.number, "True False": r2.tags.bool, PropertyName: r2.tags.propertyName, Null: r2.tags.null, ",": r2.tags.separator, "[ ]": r2.tags.squareBracket, "{ }": r2.tags.brace, LineComment: r2.tags.lineComment }), a = n2.LRParser.deserialize({ version: 14, states: "%pOYQPOOO!PQPO'#CkO!WQPO'#CaQOQPOOOOQO'#Ch'#ChO!`QPO'#C{OOQO,59V,59VO!hQPO,59VO!mQQO'#CmO!uQQO'#CoOOQO'#Cz'#CzOOQO'#Cc'#CcO!}QPO'#CbO#SQPO'#CwOOQO,58{,58{O#[QPO,58{ObQPO'#CqO#aQPO,59gOOQO1G.q1G.qOOQO'#Cr'#CrO#iQQO'#CnO#qQQO,59XO#vQQO'#CpO$OQQO,59ZObQPO,58|O!ZQPO'#CsO$TQPO,59cOOQO1G.g1G.gOOQO,59],59]OOQO-E6o-E6oOOQO-E6p-E6pOOQO1G.s1G.sOOQO1G.u1G.uOOQO1G.h1G.hOOQO,59_,59_OOQO-E6q-E6q", stateData: "$b~OPOSjOS~OSQO^PO~OSQOWYOXYOYYOZYO^POlSOqWOtXO~O]UO~PbOR^OlZO~O``O]oX~O]bO~OrcOpbP~OrcOsdP~OmhO~O`iORkX~ORkO~O``O]oa~OrcOpbX~OpoO~OrcOsdX~OspO~O`iORka~OPrjr~", goto: "#QpPPPPPqy!PPPPPtPPqPt!Tt!W!Z!a!kPPP!qPP!t!}QROVYP`hQ]QRriT[QiReWRgXQaTRmaQdWQfXTndfQj]RsjR_QQTPQl`RqhRVP", nodeNames: "\u26A0 LineComment JsonText } { Object Property PropertyName True False Null Number String ] [ Array ItemSeparator ArchitectExpression ArchitectExpressionContent ArchitectLiteral ArchitectLiteralContent", maxTerm: 36, nodeProps: [["openedBy", 3, "{", 13, "["], ["closedBy", 4, "}", 14, "]"], ["isolate", -2, 7, 12, ""]], propSources: [o], skippedNodes: [0, 1], repeatNodeCount: 3, tokenData: "0O~RqOX#YXY#_YZ#_Z]#Y]^#_^p#Ypq#_qr#Yrs#fs|#Y|})m}!O)t!O!P+b!P!Q+j!Q![,Z![!],n!]!}#Y!}#O,u#O#P#Y#P#Q-U#Q#Y#Y#Y#Z-e#Z#b#Y#b#c.U#c#h#Y#h#i.o#i#o#Y#o#p/Y#p#q#Y#q#r/i#r;'S#Y;'S;=`/x<%lO#YQ#_OrQ~#fOrQj~R#korQpq%lqr%lrs'ps!c%l!c!}%l!}#O%l#O#P'u#P#T%l#T#o%l#o%W%l%W%o%l%o%p%l%p&a%l&a&b%l&b&j%l&j$IS%l$IS&Gh%l&Gh&Nv%l&Nv'(v%l'(v'+l%l'+l'.b%l'.b(3f%l(3f*5S%l*5S41d%l41d;'S%l;'S;=`)g<%l?&r%l?&r?1x%l?1x?HU%l?HU?M`%l?M`O%lP%oopq%lqr%lrs'ps!c%l!c!}%l!}#O%l#O#P'u#P#T%l#T#o%l#o%W%l%W%o%l%o%p%l%p&a%l&a&b%l&b&j%l&j$IS%l$IS&Gh%l&Gh&Nv%l&Nv'(v%l'(v'+l%l'+l'.b%l'.b(3f%l(3f*5S%l*5S41d%l41d;'S%l;'S;=`)g<%l?&r%l?&r?1x%l?1x?HU%l?HU?M`%l?M`O%lP'uOlPP'xXrs%l!P!Q%l#O#P%l#U#V%l#Y#Z%l#b#c%l#f#g%l#h#i%l#i#j(eP(hR!Q![(q!c!i(q#T#Z(qP(tR!Q![(}!c!i(}#T#Z(}P)QR!Q![)Z!c!i)Z#T#Z)ZP)^R!Q![%l!c!i%l#T#Z%lP)jP;=`<%l%lR)tO`PrQR)yQrQ!O!P*P!Q![+PP*SP!Q![*VP*[RZP!Q![*V!g!h*e#X#Y*eP*hR{|*q}!O*q!Q![*wP*tP!Q![*wP*|PZP!Q![*wP+USZP!O!P*P!Q![+P!g!h*e#X#Y*eR+gPrQ!Q![*V~+oPrQ!P!Q+r~+wSP~OY+rZ;'S+r;'S;=`,T<%lO+r~,WP;=`<%l+rR,bSZPrQ!O!P*P!Q![+P!g!h*e#X#Y*eR,uOmPrQR,|P^PrQ!}#O-PP-UOtPR-]P]PrQ#P#Q-`Q-eOsQR-jPrQ#T#U-mP-pP#`#a-sP-vP#g#h-yP-|P#X#Y.PP.UOXPR.ZPrQ#i#j.^P.aP#`#a.dP.gP#`#a.jP.oOYPR.tPrQ#f#g.wP.zP#i#j.}P/QP#X#Y/TP/YOWPR/aPSPrQ#o#p/dP/iOqPR/pPRPrQ#q#r/sQ/xOpQQ/{P;=`<%l#Y", tokenizers: [0, 1], topRules: { JsonText: [0, 2] }, tokenPrec: 151 }); + t2.parser = a; + }, 29795: (e2, t2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.jsonSchemaTypeNames = t2.aiGuidePrimitiveTypes = t2.agenticVirtualAgentPrimitiveTypes = void 0, t2.agenticVirtualAgentPrimitiveTypes = { boolean: "boolean", integer: "integer", number: "number", string: "string" }, t2.aiGuidePrimitiveTypes = { Boolean: "Boolean", Integer: "Integer", Number: "Number", String: "String" }, t2.jsonSchemaTypeNames = { array: "array", boolean: "boolean", date: "date", integer: "integer", number: "number", object: "object", string: "string" }; + }, 29824: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = i2(80295), o = n2.__importDefault(i2(8471)); + class a extends o.default { + constructor(e3) { + super(), this._checkItemUndefinedOrNull(this._infoParmCtor("coreDetectionJobIntentSettingsViewModel"), e3), this._coreDetectionJobIntentSettingsViewModel = e3, (0, r2.makeUnenumerable)(this, "_coreDetectionJobIntentSettingsViewModel"); + } + get displayTypeName() { + return "ArchSettingsDetectionJobIntent"; + } + get isArchSettingsDetectionJobIntent() { + return true; + } + get logStr() { + return this.logStrTypeOnly; + } + get name() { + return this._coreDetectionJobIntentSettingsViewModel.name; + } + get description() { + return this._coreDetectionJobIntentSettingsViewModel.description; + } + } + t2.default = a; + }, 29829: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(11210)), r2 = i2(30801); + class o extends n2.default { + constructor(e3) { + super(e3); + } + get _actionTypeId() { + return r2.returnToAgentActionType; + } + get displayTypeName() { + return this._scriptingName; + } + get isArchActionReturnToAgent() { + return true; + } + } + t2.default = o; + }, 29907: (e2) => { + "use strict"; + e2.exports = require("cluster"); + }, 29925: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(81574)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "externalTwitterInfo"; + } + get id() { + } + get name() { + } + get screenName() { + } + get displayTypeName() { + return "ArchValueExternalTwitterInfo"; + } + get isArchValueExternalTwitterInfo() { + return true; + } + } + t2.default = r2; + }, 29926: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.RequestInfo = void 0; + const n2 = i2(31635), r2 = n2.__importDefault(i2(92140)), o = 30 * n2.__importDefault(i2(73198)).default.msPerSecond; + class a { + constructor(e3, t3, i3) { + this.options = {}, this.protocol = "https:", this.urlTemplate = t3 || "", this.method = e3, this.DataContract = (null == i3 ? void 0 : i3.default) ? i3.default : i3; + } + get hasMock() { + return !!this._mockFunction; + } + get manualRequestTimeoutMs() { + return this._manualRequestTimeoutMs || o; + } + set manualRequestTimeoutMs(e3) { + Number.isInteger && !Number.isInteger(e3) || (this._manualRequestTimeoutMs = e3); + } + addOptions(e3) { + r2.default.extend(this.options, e3); + } + callMock(e3) { + if (this.hasMock) return this._mockFunction(e3); + } + clone(e3) { + const t3 = new a(this.method, this.urlTemplate, this.DataContract); + return t3._mockFunction = this._mockFunction, t3.addOptions(this.options), t3.addOptions(e3), t3; + } + ignore(e3) { + let t3; + this.options.codesToIgnore || (this.options.codesToIgnore = []), r2.default.isArray(e3) ? r2.default.each(e3, function(e4) { + t3 = e4.replace(/_/g, ".").toLowerCase(), this.options.codesToIgnore.push(e4), this.options.codesToIgnore.push(t3); + }.bind(this)) : (t3 = e3.replace(/_/g, ".").toLowerCase(), this.options.codesToIgnore.push(e3), this.options.codesToIgnore.push(t3)); + } + mock(e3) { + r2.default.isFunction(e3) ? this._mockFunction = e3 : this._mockFunction = void 0; + } + } + t2.RequestInfo = a; + }, 30015: (e2, t2, i2) => { + const n2 = i2(14961), r2 = { replacementDuration: "$estimatedWaitTimeDuration", replacementRoundingInterval: "$estimatedWaitTimeRoundingInterval", replacementSpecificRoundingInterval: "$estimatedWaitTimeSpecificRoundingIntervals", subExpressions: { toAudioBlank: { _label: "blank_0ms", ids: ["Audio_ONE ToAudioBlank(Long_ONE)"], value: "ToAudioBlank(0)" }, toAudioDuration: { _label: "ewt_duration", ids: ["Audio_ONE ToAudioDuration(Duration_ONE)"], value: "ToAudioDuration($estimatedWaitTimeDuration)" }, toAudioDurationRoundUp: { _label: "ewt_duration_rounded_up", ids: ["Audio_ONE ToAudioDuration(Duration_ONE)", "Duration_ONE RoundUp(Duration_ONE,Duration_ONE,Duration_COLL)"], value: "ToAudioDuration(RoundUp($estimatedWaitTimeDuration, $estimatedWaitTimeRoundingInterval, $estimatedWaitTimeSpecificRoundingIntervals))" }, toAudioTimeRange: { _label: "ewt_duration_as_time_range", ids: ["Audio_ONE ToAudioTimeRange(Long_ONE,Long_ONE,TimePartEnumDataType_ONE)", "Long_ONE toInt(Decimal_ONE)", "Long_ONE toInt(Duration_ONE)", "Duration_COLL Range(Duration_ONE,Duration_ONE)", "Duration_ONE RoundUp(Duration_ONE,Duration_ONE)", "Duration_ONE makeDuration(Long_ONE,Long_ONE,Long_ONE,Long_ONE)"], value: "ToAudioTimeRange(ToInt(ToInt(If(Range(RoundUp($estimatedWaitTimeDuration, MakeDuration(0, 0, 1, 0)),$estimatedWaitTimeRoundingInterval)[0] < MakeDuration(0,0,1,0),MakeDuration(0,0,1,0),Range(RoundUp($estimatedWaitTimeDuration, MakeDuration(0, 0, 1, 0)),$estimatedWaitTimeRoundingInterval)[0])) / 60000),ToInt(ToInt(If(Range(RoundUp($estimatedWaitTimeDuration, MakeDuration(0, 0, 1, 0)),$estimatedWaitTimeRoundingInterval)[1] < MakeDuration(0,0,1,0),MakeDuration(0,0,1,0),Range(RoundUp($estimatedWaitTimeDuration, MakeDuration(0, 0, 1, 0)),$estimatedWaitTimeRoundingInterval)[1])) / 60000),Format.TimePart.minutes)" } }, systemPrompts: { estimated_wait_time_about: "estimated_wait_time_about", estimated_wait_time_about_2: "estimated_wait_time_about_2", estimated_wait_time_is: "estimated_wait_time_is", estimated_wait_time_is_2: "estimated_wait_time_is_2", estimated_wait_time_exact: "estimated_wait_time_exact", estimated_wait_time_less_than: "estimated_wait_time_less_than", estimated_wait_time_less_than_2: "estimated_wait_time_less_than_2", estimated_wait_time_range_1: "estimated_wait_time_range_1", desu: "desu", time_range_separator: "time_range_separator" }, sequenceTypes: { tts: "tts", subExpression: "subExpression", systemPrompt: "systemPrompt" } }; + function o() { + o._super.constructor.call(this), Object.defineProperties(this, { _label: { value: "EWT" }, className: { value: "EstimatedWaitTimeSequences" }, parts: { value: r2 }, adsSectionName: { value: "estimatedWaitTime" }, languageSequences: { value: { "da-dk": "mainSequence", "de-de": "mainSequence", "de-ch": "mainSequence", "el-gr": "mainSequence", "en-au": "mainSequence", "en-gb": "mainSequence", "en-us": "mainSequence", "es-es": "localizedSequence2", "es-us": "localizedSequence2", "fi-fi": "mainSequence", "fil-ph": "mainSequence", "fr-ca": "localizedSequence2", "fr-fr": "localizedSequence2", "it-it": "localizedSequence2", "nl-nl": "localizedSequence2", "ms-my": "mainSequence", "ja-jp": "jaJpOnly", "nb-no": "mainSequence", "pl-pl": "mainSequence", "pt-br": "localizedSequence2", "pt-pt": "localizedSequence2", "sv-se": "mainSequence", "th-th": "mainSequence", "zh-cn": "mainSequence", "zh-hk": "mainSequence" } }, allSequences: { value: { allModes: { _label: "mode_all_no_duration", conditions: [{ _label: "caller_ewt_not_set", condition: "IsNotSetOrEmpty($estimatedWaitTimeDuration)", sequence: [{ type: r2.sequenceTypes.subExpression, value: r2.subExpressions.toAudioBlank }] }] } } }, mainSequence: { value: { about: { _label: "mode_about", conditions: [{ _label: "caller_ewt_is_about", sequence: [{ type: r2.sequenceTypes.systemPrompt, value: "estimated_wait_time_about" }, { type: r2.sequenceTypes.subExpression, value: r2.subExpressions.toAudioDurationRoundUp }] }] }, exact: { _label: "mode_exact", conditions: [{ _label: "caller_ewt_is_exactly", sequence: [{ type: r2.sequenceTypes.systemPrompt, value: "estimated_wait_time_is" }, { type: r2.sequenceTypes.subExpression, value: r2.subExpressions.toAudioDuration }] }] }, lessthan: { _label: "mode_less_than", conditions: [{ _label: "caller_ewt_is_less_than", sequence: [{ type: r2.sequenceTypes.systemPrompt, value: "estimated_wait_time_less_than" }, { type: r2.sequenceTypes.subExpression, value: r2.subExpressions.toAudioDurationRoundUp }] }] }, range: { _label: "mode_range", conditions: [{ _label: "caller_ewt_as_range", sequence: [{ type: r2.sequenceTypes.systemPrompt, value: "estimated_wait_time_is" }, { type: r2.sequenceTypes.subExpression, value: r2.subExpressions.toAudioTimeRange }], indirectlyUsedPrompts: [{ type: r2.sequenceTypes.systemPrompt, value: "time_range_separator", id: "__time_range_separator__" }] }] } } }, jaJpOnly: { value: { about: { _label: "mode_about", conditions: [{ _label: "caller_ewt_is_about", sequence: [{ type: r2.sequenceTypes.systemPrompt, value: "estimated_wait_time_about" }, { type: r2.sequenceTypes.subExpression, value: r2.subExpressions.toAudioDurationRoundUp }, { type: r2.sequenceTypes.systemPrompt, value: "desu" }] }] }, exact: { _label: "mode_exact", conditions: [{ _label: "caller_ewt_is_exactly", sequence: [{ type: r2.sequenceTypes.systemPrompt, value: "estimated_wait_time_is" }, { type: r2.sequenceTypes.subExpression, value: r2.subExpressions.toAudioDuration }, { type: r2.sequenceTypes.systemPrompt, value: "desu" }] }] }, lessthan: { _label: "mode_less_than", conditions: [{ _label: "caller_ewt_is_less_than", sequence: [{ type: r2.sequenceTypes.systemPrompt, value: "estimated_wait_time_less_than" }, { type: r2.sequenceTypes.subExpression, value: r2.subExpressions.toAudioDurationRoundUp }, { type: r2.sequenceTypes.systemPrompt, value: "estimated_wait_time_less_than_2" }] }] }, range: { _label: "mode_range", conditions: [{ _label: "caller_ewt_as_range", sequence: [{ type: r2.sequenceTypes.systemPrompt, value: "estimated_wait_time_is" }, { type: r2.sequenceTypes.subExpression, value: r2.subExpressions.toAudioTimeRange }, { type: r2.sequenceTypes.systemPrompt, value: "desu" }] }] } } }, localizedSequence2: { value: { about: { _label: "mode_about", conditions: [{ _label: "caller_ewt_is_about", sequence: [{ type: r2.sequenceTypes.systemPrompt, value: "estimated_wait_time_about" }, { type: r2.sequenceTypes.subExpression, value: r2.subExpressions.toAudioDurationRoundUp }] }] }, exact: { _label: "mode_exact", conditions: [{ _label: "caller_ewt_is_exactly", sequence: [{ type: r2.sequenceTypes.systemPrompt, value: "estimated_wait_time_is" }, { type: r2.sequenceTypes.subExpression, value: r2.subExpressions.toAudioDuration }] }] }, lessthan: { _label: "mode_less_than", conditions: [{ _label: "caller_ewt_is_less_than", sequence: [{ type: r2.sequenceTypes.systemPrompt, value: "estimated_wait_time_less_than" }, { type: r2.sequenceTypes.subExpression, value: r2.subExpressions.toAudioDurationRoundUp }] }] }, range: { _label: "mode_range", conditions: [{ _label: "caller_ewt_as_range", sequence: [{ type: r2.sequenceTypes.systemPrompt, value: "estimated_wait_time_range_1" }, { type: r2.sequenceTypes.subExpression, value: r2.subExpressions.toAudioTimeRange }] }] } } } }); + } + n2.extend(o), e2.exports = new o(); + }, 30021: (e2, t2, i2) => { + function n2() { + n2.baseConstructor.apply(this, arguments); + } + i2(11475).extend(n2, "AssignedCustomerSegmentVariable", true), e2.exports = n2; + }, 30028: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.InqueueFlowActionProperty = void 0; + const n2 = i2(31635), r2 = i2(96618), o = i2(17604), a = n2.__importDefault(i2(92140)), s = i2(4085), l = i2(36843), u = i2(33690), d = n2.__importStar(i2(17498)), c = n2.__importStar(i2(36781)), p = i2(82453), _ = i2(28803), h = n2.__importStar(i2(19859)), m = i2(44307), g = i2(47957); + class f extends _.NetworkBasedActionProperty { + constructor(e3, t3, i3, n3, r3) { + super(e3, t3, (0, p.getSupportedInQueueFlowManager)(e3.parentFlow), n3, r3), e3.parentFlow.isCommonModuleFlow && this.addAutoCleanedUpEventSinkWatch(c.destinationFlowTypesChanged, this.parentFlow.commonModuleSettings, () => { + this.setConfigListMangerAndUpdateDependencies((0, p.getSupportedInQueueFlowManager)(e3.parentFlow)); + }); + } + getConfiguration(e3, t3) { + var i3; + if (null == t3 ? void 0 : t3.isForFlowYaml) { + if (!(null === (i3 = this.action.supportedInQueueFlowType) || void 0 === i3 ? void 0 : i3.length) || this.action.useDefaultHandling) return null; + const t4 = this.action[this._modelNamePropName], n3 = this.action[this._modelIdPropName], r3 = this.configListManager.getItem(n3); + return (0, m.snapshotReferencedObject)(e3, this.action.supportedInQueueFlowType, t4, r3.defaultLanguage), a.default.tryWrapObject(t4, "name"); + } + return console.error("Trying to access InqueueFlowActionProperty.getConfiguration for non-flow-YAML"), null; + } + setInQueueFlow(e3, t3) { + this.action.inQueueFlowId = e3, this.action.inQueueFlowName = t3, e3 && (this.action.useDefaultHandling = false), this.updateDependencies(); + } + updateDependencies() { + this.action[this._modelNamePropName] && this.action[this._modelIdPropName] && !this.action.useDefaultHandling ? this.configListManager.registerConsumer(this.action, this.action[this._modelNamePropName], this.action[this._modelIdPropName]) : d.unRegisterConsumer(this.action, "flow"); + } + validate(e3) { + if (!this.action.supportedInQueueFlowType || this.action.useDefaultHandling) return; + if (!this.action[this._modelIdPropName]) return void e3.addError(this, (0, o.sprintf)(g.expression.notSetWithContext, this.action.supportedInQueueFlowTypeDefinition.typeDisplayName), false, true); + const t3 = this.action[this._modelIdPropName]; + let i3 = this.configListManager.getItem(t3); + i3 || (i3 = this.configListManager.getItemFromFullManager(t3)), !i3 || i3.deleted ? e3.addError(this, (0, o.sprintf)(g.expression.literalDropDownValueDoesNotExist, this.action.supportedInQueueFlowTypeDefinition.typeDisplayName, this.action[this._modelNamePropName] || this.action[this._modelIdPropName]), false, true) : (this.action[this._modelNamePropName] !== i3.displayName && this.setInQueueFlow(this.action[this._modelIdPropName], i3.displayName), h.flowHasUnpublishedWarning(i3, this.parentFlow) && e3.addError(this.action, h.getUnpublishedWarning(i3, this.parentFlow))); + } + static createCreateDetails(e3, t3) { + return { create: function(i3, n3) { + let o2; + return r2.flowTypes.isVxmlgenFlowType(i3.parentFlow.type) ? o2 = s.inqueueCallFlowListManager.getBriefManagerWithFallback() : r2.flowTypes.isShortMessageFlowType(i3.parentFlow.type) ? o2 = u.inqueueShortMessageFlowListManager.getBriefManagerWithFallback() : r2.flowTypes.isEmailFlowType(i3.parentFlow.type) && (o2 = l.inqueueEmailFlowListManager.getBriefManagerWithFallback()), new f(i3, n3, o2, e3, t3); + }, getCreateClass: function() { + return f; + }, modelProperties: [e3, t3] }; + } + } + t2.InqueueFlowActionProperty = f; + }, 30042: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(54757)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "listPickerItemCollection"; + } + get displayTypeName() { + return "ArchValueListPickerItemCollection"; + } + get isArchValueListPickerItemCollection() { + return true; + } + } + t2.default = r2; + }, 30058: (e2, t2) => { + "use strict"; + var i2, n2, r2, o; + Object.defineProperty(t2, "__esModule", { value: true }), t2.NluUtteranceSource = t2.EntityTypeMechanismSubType = t2.BuiltInEntityType = t2.EntityTypeMechanismType = void 0, (o = t2.EntityTypeMechanismType || (t2.EntityTypeMechanismType = {})).AI = "ai", o.DynamicDateTime = "dynamicdatetime", o.DynamicList = "dynamiclist", o.Enum = "enum", o.List = "list", o.Regex = "regex", (r2 = t2.BuiltInEntityType || (t2.BuiltInEntityType = {})).BuiltInPrefix = "builtin:", r2.BuiltInAmountOfMoney = "builtin:amountOfMoney", r2.BuiltInDate = "builtin:date", r2.BuiltInDateTime = "builtin:datetime", r2.BuiltInDuration = "builtin:duration", r2.BuiltInInteger = "builtin:integer", r2.BuiltInNumber = "builtin:number", r2.BuiltInTime = "builtin:time", r2.BuiltInAny = "builtin:any", (n2 = t2.EntityTypeMechanismSubType || (t2.EntityTypeMechanismSubType = {})).Alphanumeric = "Alphanumeric", n2.FreeForm = "FreeForm", n2.NumberSequence = "NumberSequence", (i2 = t2.NluUtteranceSource || (t2.NluUtteranceSource = {})).Generated = "Generated", i2.User = "User"; + }, 30065: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.all = t2.applePay = void 0; + const n2 = i2(47957); + t2.applePay = { displayString: n2.askForPayment.applePay, id: "applePay" }, t2.all = [t2.applePay]; + }, 30068: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = i2(67210), o = n2.__importDefault(i2(92140)), a = i2(52722); + t2.default = class extends a { + constructor(e3) { + super(e3), this.divisions = {}; + } + get isOAuthClient() { + return true; + } + get divisions() { + return this._divisions; + } + set divisions(e3) { + this._divisions = e3; + } + get permissions() { + return this._permissions; + } + set permissions(e3) { + this._permissions = e3, o.default.each(e3, (e4) => { + r2.permissionService.addPermissionToUser(e4, this); + }); + } + }; + }, 30097: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.getConversationSummarySetting = t2.getConversationSummarySettings = void 0; + const n2 = i2(31635), r2 = n2.__importDefault(i2(32798)), o = n2.__importDefault(i2(71474)), a = n2.__importDefault(i2(36019)), s = { ignoreBadResponse: true }; + t2.getConversationSummarySettings = a.default.request("GET", "{public-api.apps}/api/v2/conversations/summaries/settings", o.default, s), t2.getConversationSummarySetting = a.default.request("GET", "{public-api.apps}/api/v2/conversations/summaries/settings/{id}", r2.default, s); + }, 30131: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.scheduled = void 0; + var n2 = i2(65650), r2 = i2(54530), o = i2(34950), a = i2(36805), s = i2(17873), l = i2(80629), u = i2(67552), d = i2(94975), c = i2(12187), p = i2(78263), _ = i2(86297), h = i2(95462), m = i2(30380); + t2.scheduled = function(e3, t3) { + if (null != e3) { + if (l.isInteropObservable(e3)) return n2.scheduleObservable(e3, t3); + if (d.isArrayLike(e3)) return o.scheduleArray(e3, t3); + if (u.isPromise(e3)) return r2.schedulePromise(e3, t3); + if (p.isAsyncIterable(e3)) return s.scheduleAsyncIterable(e3, t3); + if (c.isIterable(e3)) return a.scheduleIterable(e3, t3); + if (h.isReadableStreamLike(e3)) return m.scheduleReadableStreamLike(e3, t3); + } + throw _.createInvalidObservableTypeError(e3); + }; + }, 30163: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.userManager = t2.UserManager = void 0; + const n2 = i2(31635).__importDefault(i2(47532)), r2 = i2(30801), o = i2(24032), a = i2(27862), s = i2(33588); + class l extends n2.default { + get dependencyType() { + return a.User; + } + constructor() { + super(), this.topic = (0, o.getTopic)("userManager"), this._rawServerCache = {}, this.apiCallList = s.getUsers, this.apiCallSingle = s.getUser, this.className = "UserManager", this.dependencyContext = null, this.networkType = "users", this.uiMetadataSectionName = "users", this.actionsForUsageSearch = [r2.extractSecureDataActionType], this.actionPropertyForUsageSearch = "acknowledgementUser", this._initialize(); + } + } + t2.UserManager = l, t2.userManager = new l(); + }, 30218: (e2, t2, i2) => { + const { builderCategoryIds: n2 } = i2(73062), r2 = i2(5532).default, { builderPartIds: o } = i2(69149), a = i2(42290).default, s = i2(16958), l = i2(76486).default, u = i2(22599).default, { flowTypes: d } = i2(96618), { globalTypes: c } = i2(14394); + function p({ builderPartId: e3, builderPartName: t3, builderPartDescription: i3, expressionDescription: o2, expressionLabel: s2, expressionName: u2, expressionTestingField: p2, generators: _ }) { + const h = new l({ configureOptionsCallback: (e4) => e4.setIninTestingField(p2), descriptionInfo: { name: u2, description: o2 }, expressionType: c.string, label: s2 }); + return r2.addBuilderPartDef(new a({ categoryIdentifierOrIdentifiers: n2.email, description: i3, expressionDefs: [h], generators: _, id: e3, name: t3, restrictToFlowTypeOrTypes: d.flowTypeInboundEmail, resultExpressionType: c.boolean, version: 1 })); + } + e2.exports = { create: () => { + p({ builderPartId: o.email.emailSubjectContains, builderPartName: s.builderParts.email.subjectContains.name, builderPartDescription: s.builderParts.email.subjectContains.description, expressionLabel: s.builderParts.email.subjectContains.expressions.stringToCheck.label, expressionTestingField: "emailSubjectContains", generators: { expressionGenerator: u.create().addFuncCall("If").addFuncCall("IsSet").addToken("Email.Message.subject").addFuncCallEnd().addFuncParameterSeparator().addFuncCall("Contains").addToken("Email.Message.subject").addFuncParameterSeparator().addTokenReplacement(0).addFuncCallEnd().addFuncParameterSeparator().addTokenBooleanFalse().addFuncCallEnd().verifySprintfStringAndInitialize("If(IsSet(Email.Message.subject), Contains(Email.Message.subject, %1$s), false)") } }), p({ builderPartId: o.email.emailBodyContains, builderPartName: s.builderParts.email.bodyContains.name, builderPartDescription: s.builderParts.email.bodyContains.description, expressionLabel: s.builderParts.email.bodyContains.expressions.stringToCheck.label, expressionTestingField: "emailBodyContains", generators: { expressionGenerator: u.create().addFuncCall("If").addFuncCall("IsSet").addToken("Email.Message.body").addFuncCallEnd().addFuncParameterSeparator().addFuncCall("Contains").addToken("Email.Message.body").addFuncParameterSeparator().addTokenReplacement(0).addFuncCallEnd().addFuncParameterSeparator().addTokenBooleanFalse().addFuncCallEnd().verifySprintfStringAndInitialize("If(IsSet(Email.Message.body), Contains(Email.Message.body, %1$s), false)") } }), p({ builderPartId: o.email.emailBodyOrSubjectContains, builderPartName: s.builderParts.email.subjectOrBodyContains.name, builderPartDescription: s.builderParts.email.subjectOrBodyContains.description, expressionLabel: s.builderParts.email.subjectOrBodyContains.expressions.stringToCheck.label, expressionTestingField: "emailSubjectOrBodyContains", generators: { expressionGenerator: u.create().addFuncCall("If").addFuncCall("IsSet").addToken("Email.Message.subject").addFuncCallEnd().addFuncParameterSeparator().addFuncCall("Contains").addToken("Email.Message.subject").addFuncParameterSeparator().addTokenReplacement(0).addFuncCallEnd().addFuncParameterSeparator().addTokenBooleanFalse().addFuncCallEnd().addOperatorOr().addFuncCall("If").addFuncCall("IsSet").addToken("Email.Message.body").addFuncCallEnd().addFuncParameterSeparator().addFuncCall("Contains").addToken("Email.Message.body").addFuncParameterSeparator().addTokenReplacement(0).addFuncCallEnd().addFuncParameterSeparator().addTokenBooleanFalse().addFuncCallEnd().verifySprintfStringAndInitialize("If(IsSet(Email.Message.subject), Contains(Email.Message.subject, %1$s), false) Or If(IsSet(Email.Message.body), Contains(Email.Message.body, %1$s), false)") } }), p({ builderPartId: o.email.emailFromDomainPartContains, builderPartName: s.builderParts.email.fromDomainPartContains.name, builderPartDescription: s.builderParts.email.fromDomainPartContains.description, expressionLabel: s.builderParts.email.fromDomainPartContains.expressions.stringToCheck.label, expressionTestingField: "emailSendersEmailAddressDomainContains", generators: { expressionGenerator: u.create().addFuncCall("If").addFuncCall("IsSet").addFuncCall("EmailAddressDomainPart").addToken("Email.Message.from").addFuncCallEnd().addFuncCallEnd().addFuncParameterSeparator().addFuncCall("Contains").addFuncCall("EmailAddressDomainPart").addToken("Email.Message.from").addFuncCallEnd().addFuncParameterSeparator().addTokenReplacement(0).addFuncCallEnd().addFuncParameterSeparator().addTokenBooleanFalse().addFuncCallEnd().verifySprintfStringAndInitialize("If(IsSet(EmailAddressDomainPart(Email.Message.from)), Contains(EmailAddressDomainPart(Email.Message.from), %1$s), false)") } }), p({ builderPartId: o.email.emailFromLocalPartContains, builderPartName: s.builderParts.email.fromLocalPartContains.name, builderPartDescription: s.builderParts.email.fromLocalPartContains.description, expressionLabel: s.builderParts.email.fromLocalPartContains.expressions.stringToCheck.label, expressionTestingField: "emailSendersEmailAddressNameContains", generators: { expressionGenerator: u.create().addFuncCall("If").addFuncCall("IsSet").addFuncCall("EmailAddressLocalPart").addToken("Email.Message.from").addFuncCallEnd().addFuncCallEnd().addFuncParameterSeparator().addFuncCall("Contains").addFuncCall("EmailAddressLocalPart").addToken("Email.Message.from").addFuncCallEnd().addFuncParameterSeparator().addTokenReplacement(0).addFuncCallEnd().addFuncParameterSeparator().addTokenBooleanFalse().addFuncCallEnd().verifySprintfStringAndInitialize("If(IsSet(EmailAddressLocalPart(Email.Message.from)), Contains(EmailAddressLocalPart(Email.Message.from), %1$s), false)") } }); + } }; + }, 30231: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(92140)), r2 = i2(69675); + class o { + constructor(e3, t3, i3) { + Object.defineProperties(this, { _doNotDestroyResults: { value: true === i3 }, _builderObjectId: { value: e3, writable: true }, _rollupErrorCount: { value: 0, writable: true }, _rollupInfoCount: { value: 0, writable: true }, _rollupWarningCount: { value: 0, writable: true }, _validationResultArray: { value: t3, writable: true } }), n2.default.each(t3, (e4) => { + this._processRollupCounts(e4, 1); + }); + } + static create(e3, t3, i3) { + return n2.default.isArray(t3) || (t3 = [t3]), new o(e3, t3, i3); + } + _processRollupCounts(e3, t3) { + if (e3 && e3.getIsRollupForBuilderObject(this._builderObjectId)) switch (e3.type) { + case r2.error: + this._rollupErrorCount = this._rollupErrorCount + t3; + break; + case r2.info: + this._rollupInfoCount = this._rollupInfoCount + t3; + break; + case r2.warning: + this._rollupWarningCount = this._rollupWarningCount + t3; + } + } + addValidationResult(e3) { + this._validationResultArray.push(e3), this._processRollupCounts(e3, 1); + } + get builderObjectId() { + return this._builderObjectId; + } + _getResultsByType(e3, t3, i3) { + const r3 = []; + return n2.default.each(this._validationResultArray, (n3) => { + if (n3.type === e3) { + let e4 = true; + true === t3 && (e4 = n3.getIsRollupForBuilderObject(this._builderObjectId)), true === i3 && (e4 = !n3.getIsRollupForBuilderObject(this._builderObjectId)), e4 && r3.push(n3); + } + }), r3.length > 0 ? i3 ? r3[0] : r3 : void 0; + } + _getStringFromResult(e3) { + return e3 ? e3.message : void 0; + } + _getStringsFromResultsArray(e3) { + if (!n2.default.isArray(e3) || 0 === e3.length) return; + const t3 = []; + return n2.default.each(e3, (e4) => { + t3.push(e4.message); + }), t3; + } + getBuilderObjectResults(e3, t3) { + return n2.default.isArray(t3) || (t3 = []), n2.default.each(this._validationResultArray, (i3) => { + i3.hasId(e3) && t3.push(i3); + }), t3; + } + getBuilderObjectResultsByType(e3, t3, i3) { + return n2.default.isArray(t3) || (t3 = []), n2.default.each(this._validationResultArray, (n3) => { + n3.type === i3 && n3.hasId(e3) && t3.push(n3); + }), t3; + } + getBuilderObjectErrors(e3, t3) { + return this.getBuilderObjectResultsByType(e3, t3, r2.error); + } + getBuilderObjectInfos(e3, t3) { + return this.getBuilderObjectResultsByType(e3, t3, r2.info); + } + getBuilderObjectWarnings(e3, t3) { + return this.getBuilderObjectResultsByType(e3, t3, r2.warning); + } + getBuilderObjectHasResultOfType(e3, t3) { + return !n2.default.isUndefined(n2.default.find(this._validationResultArray, (i3) => i3.type === t3 && i3.hasId(e3))); + } + getBuilderObjectHasError(e3) { + return this.getBuilderObjectHasResultOfType(e3, r2.error); + } + getBuilderObjectHasInfo(e3) { + return this.getBuilderObjectHasResultOfType(e3, r2.info); + } + getBuilderObjectHasWarning(e3) { + return this.getBuilderObjectHasResultOfType(e3, r2.warning); + } + getHasResultOfType(e3) { + return !n2.default.isUndefined(n2.default.find(this._validationResultArray, (t3) => t3.type === e3)); + } + get errorResultsArray() { + return this._getResultsByType(r2.error); + } + get infoResultsArray() { + return this._getResultsByType(r2.info); + } + get warningResultsArray() { + return this._getResultsByType(r2.warning); + } + get rollupErrorResultsArray() { + return this._getResultsByType(r2.error, true); + } + get rollupInfoResultsArray() { + return this._getResultsByType(r2.info, true); + } + get rollupWarningResultsArray() { + return this._getResultsByType(r2.warning, true); + } + get objectErrorResult() { + return this._getResultsByType(r2.error, void 0, true); + } + get objectInfoResult() { + return this._getResultsByType(r2.info, void 0, true); + } + get objectWarningResult() { + return this._getResultsByType(r2.warning, void 0, true); + } + get objectErrorString() { + return this._getStringFromResult(this._getResultsByType(r2.error, void 0, true)); + } + get objectInfoString() { + return this._getStringFromResult(this._getResultsByType(r2.info, void 0, true)); + } + get objectWarningString() { + return this._getStringFromResult(this._getResultsByType(r2.warning, void 0, true)); + } + get errorStringsArray() { + return this._getStringsFromResultsArray(this._getResultsByType(r2.error)); + } + get infoStringsArray() { + return this._getStringsFromResultsArray(this._getResultsByType(r2.info)); + } + get warningStringsArray() { + return this._getStringsFromResultsArray(this._getResultsByType(r2.warning)); + } + get rollupErrorStringsArray() { + return this._getStringsFromResultsArray(this._getResultsByType(r2.error, true)); + } + get rollupInfoStringsArray() { + return this._getStringsFromResultsArray(this._getResultsByType(r2.info, true)); + } + get rollupWarningStringsArray() { + return this._getStringsFromResultsArray(this._getResultsByType(r2.warning, true)); + } + get hasError() { + return this.getHasResultOfType(r2.error); + } + get hasInfo() { + return this.getHasResultOfType(r2.info); + } + get hasWarning() { + return this.getHasResultOfType(r2.warning); + } + get rollupErrorCount() { + return this._rollupErrorCount; + } + get rollupInfoCount() { + return this._rollupInfoCount; + } + get rollupWarningCount() { + return this._rollupWarningCount; + } + get results() { + return this._validationResultArray; + } + destroy() { + this._doNotDestroyResults || n2.default.each(this._validationResultArray, (e3) => { + try { + e3.destroy(); + } catch (e4) { + } + }), this._validationResultArray = void 0, this._builderObjectId = void 0, this._rollupErrorCount = void 0, this._rollupInfoCount = void 0, this._rollupWarningCount = void 0; + } + } + t2.default = o; + }, 30249: (e2, t2, i2) => { + const n2 = i2(75458), { callDecisionTableActionType: r2 } = i2(30801), o = i2(7401); + function a() { + Object.defineProperties(this, { _input: { writable: true }, _output: { writable: true } }), this.decisionTableId = void 0, this.decisionTableName = void 0, a.baseConstructor.apply(this, arguments); + } + n2.extend(a, r2, true), Object.defineProperties(a.prototype, { input: { enumerable: true, get: function() { + return this._input; + }, set: function(e3) { + this._input = this.reviveItem(e3, o); + } }, output: { enumerable: true, get: function() { + return this._output; + }, set: function(e3) { + this._output = this.reviveItem(e3, o); + } }, pasteResolveOldToNewValues: { value: function(e3) { + a._super.pasteResolveOldToNewValues.apply(this, arguments), this.input && this.input.pasteResolveOldToNewValues(e3), this.output && this.output.pasteResolveOldToNewValues(e3); + } }, pasteReIdOrRename: { value: function(e3) { + a._super.pasteReIdOrRename.apply(this, arguments), this.input && this.input.pasteReIdOrRename(e3), this.output && this.output.pasteReIdOrRename(e3); + } } }), e2.exports = a; + }, 30260: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.getAllFlowListManagers = l, t2.getItem = function(e3) { + if (!e3) return; + let t3; + return r2.default.find(l(), (i3) => (t3 = i3.getItem(e3), !!t3)), t3; + }, t2.removeItem = function(e3) { + e3 && r2.default.find(l(), (t3) => t3.flowType === e3.type && (t3.removeItemWithId(e3.id, false), true)); + }, t2.getManagerForFlowType = function(e3, t3) { + let i3 = a.default.allListManagers.find((i4) => i4.isFlowListManager && i4.flowType === e3 && !!i4.isBriefObjectManager == !!t3); + return i3 || (i3 = a.default.allListManagers.find((t4) => t4.isFlowListManager && t4.flowType === e3)), i3 || o.error(`Missing flow manager for ${e3}`), i3; + }; + const n2 = i2(31635), r2 = n2.__importDefault(i2(92140)), o = n2.__importStar(i2(12847)), a = n2.__importDefault(i2(47532)); + let s; + function l() { + return s || (s = r2.default.where(a.default.allListManagers, { isFlowListManager: true }), s); + } + i2(10384), i2(99678), i2(64410), i2(68297), i2(13106), i2(94564), i2(90480), i2(61343), i2(4085), i2(36843), i2(33690), i2(10125), i2(81562), i2(66908), i2(8249), i2(15787), i2(91156), i2(27839), i2(48002); + }, 30268: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.VoiceSnippetType = void 0; + const n2 = i2(91546), r2 = i2(94765), o = i2(80428); + class a extends r2.ExpressionType { + constructor(e3, t3, i3) { + super(e3, t3, i3); + } + get className() { + return "VoiceSnippetType"; + } + canConvertLitToExpression(e3) { + return false; + } + convertLitToExpression(e3, t3) { + return ""; + } + createExpressionOptionClass() { + return new n2.ExpressionTypeVoiceSnippetOptions(); + } + get supportsLiteralEditor() { + return false; + } + } + t2.VoiceSnippetType = a, a.typeIdentifier = o.expressionTypeNames.voiceSnippet; + }, 30276: (e2, t2, i2) => { + const n2 = i2(28730), { nextLoopActionType: r2 } = i2(30801); + function o() { + o.baseConstructor.apply(this, arguments); + } + n2.extend(o, r2, true), e2.exports = o; + }, 30345: (e2, t2, i2) => { + const n2 = i2(58597), r2 = i2(22124), o = i2(24032).getTopic("BotConnectorVersionList"); + function a() { + a.baseConstructor.apply(this, arguments); + } + r2.extend(a, "BotConnectorVersionList"), Object.defineProperties(a.prototype, { entities: { enumerable: true, get: function() { + return this._entities; + }, set: function(e3) { + this._entities.length > 0 && o.error("Overwriting already existing list of BotConnector versions"), this._entities = this.reviveArray(e3, n2); + } }, versions: { enumerable: true, get: function() { + return this._entities; + }, set: function(e3) { + this._entities.length > 0 && o.error("Overwriting already existing list of BotConnector versions"), this._entities = this.reviveArray(e3, n2); + } } }), e2.exports = a; + }, 30346: (e2, t2, i2) => { + "use strict"; + const n2 = i2(31635), r2 = i2(19384), o = i2(12179), a = n2.__importDefault(i2(97891)), s = n2.__importDefault(i2(5730)), l = i2(47957); + class u extends s.default { + constructor(e3, t3) { + super(e3.parentFlow, e3), this._loadModel(t3); + } + static get notRealAction() { + return false; + } + get menuReference() { + return this.model.menuReference; + } + set menuReference(e3) { + this.model.menuReference = e3; + } + initialize() { + super.initialize(); + const e3 = this.parentFlow; + if (this.menu) return; + const t3 = this.menuReference; + if (!t3) return; + if (!e3) return; + const i3 = e3.getChild(t3); + this.linkMenu(i3); + } + get canCollapse() { + return this.menu && this.menu.canCollapse; + } + get collapsed() { + return !!this.menu && this.menu.collapsed; + } + set collapsed(e3) { + this.menu && (this.menu.collapsed = e3); + } + get isSubMenuActionViewModel() { + return true; + } + linkMenu(e3) { + this.menuReference = e3.id, this.menu = e3; + } + validate(e3) { + this.menuReference ? r2.flowElementRegistrationService.getItemById(this.parentFlow, this.menuReference) || e3.addInternalError(this, l.menu.invalidReference) : e3.addInternalError(this, l.menu.noReference); + } + } + u.info = a.default.createActionInfo({ actionClass: u, canBeInTask: false, canBeTreeNode: true, helpTopic: o.helpTopics.actions.subMenu, modelClass: i2(1248), name: l.actions.menu, scriptingName: "ArchActionMenu" }), t2.A = u; + }, 30356: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.FormPageViewModel = void 0; + const n2 = i2(43212), r2 = i2(68823), o = i2(20391); + class a extends n2.BaseConfigurationListViewModel { + constructor(e3) { + super(e3), this._pageComponents = e3.pageComponents.map((e4) => new r2.FormPageComponentViewModel(e4)); + } + get className() { + return "FormPageViewModel"; + } + get title() { + return this._model.title; + } + get subtitle() { + return this._model.subtitle; + } + get pageComponents() { + return this._pageComponents; + } + get componentInfo() { + return (0, o.getDisplayInfoForComponent)(this.pageComponents[0]); + } + } + t2.FormPageViewModel = a; + }, 30380: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.scheduleReadableStreamLike = void 0; + var n2 = i2(17873), r2 = i2(95462); + t2.scheduleReadableStreamLike = function(e3, t3) { + return n2.scheduleAsyncIterable(r2.readableStreamLikeToAsyncGenerator(e3), t3); + }; + }, 30502: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.FindQueueByIdActionModel = void 0; + const n2 = i2(28904), r2 = i2(30801); + class o extends n2.BaseFindSystemObjectByIdActionModel { + constructor(e3) { + super(e3), this.__type = o.__type; + } + } + t2.FindQueueByIdActionModel = o, o.__type = r2.findQueueByIdActionType, o.registerType(); + }, 30632: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.throwIfEmpty = void 0; + var n2 = i2(59328), r2 = i2(65212), o = i2(17214); + function a() { + return new n2.EmptyError(); + } + t2.throwIfEmpty = function(e3) { + return void 0 === e3 && (e3 = a), r2.operate(function(t3, i3) { + var n3 = false; + t3.subscribe(o.createOperatorSubscriber(i3, function(e4) { + n3 = true, i3.next(e4); + }, function() { + return n3 ? i3.complete() : i3.error(e3()); + })); + }); + }; + }, 30702: (e2, t2, i2) => { + const n2 = i2(87290); + function r2() { + r2.baseConstructor.apply(this, arguments); + } + i2(22124).extend(r2, "LexAliasList"), Object.defineProperties(r2.prototype, { entities: { enumerable: true, get: function() { + return this._entities; + }, set: function(e3) { + this._entities = this.reviveArray(e3, n2); + } } }), e2.exports = r2; + }, 30758: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.CustomerSegmentType = void 0; + const n2 = i2(80428), r2 = i2(94765), o = i2(56884); + class a extends r2.ExpressionType { + constructor(e3, t3, i3) { + super(e3, t3, i3); + } + get className() { + return "CustomerSegmentType"; + } + createExpressionOptionClass() { + return new o.ExpressionTypeCustomerSegmentOptions(); + } + get supportsLiteralEditor() { + return false; + } + } + t2.CustomerSegmentType = a, a.typeIdentifier = n2.expressionTypeNames.customerSegment; + }, 30785: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = i2(96618), o = i2(14394), a = i2(36128), s = n2.__importStar(i2(1115)), l = i2(87870), u = n2.__importDefault(i2(49487)), d = i2(47957); + class c extends u.default { + constructor(e3) { + super(e3); + } + addAttribute() { + const e3 = this.variables.add(null, o.globalTypes.string); + return s.validateAction(this, true, true), e3.id; + } + static get managedProperties() { + return [{ property: "variables", namedItems: true, isOutput: false, options: a.NameValuePairsOptions.create((e3) => e3.setAddButtonLabel(d.setAttributes.addAttributeButton)), yamlOptions: c.createYamlOptions("attributes", (e3) => e3.setPropertyName("attributes").setWrappedCollectionItemName("attribute")) }, { createDetails: l.NoteActionProperty.createCreateDetails(d.setAttributes.applyWarning, "info", "SetAttributes-applyWarning", r2.flowTypes.flowTypesAllVxmlgen), property: "setAttributesWarning", yamlOptions: c.createYamlOptions("setAttributesWarning", (e3) => e3.setSkipProperty(true)) }]; + } + } + t2.default = c; + }, 30801: (e2, t2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.dialogEngineActionType = t2.dialNameActionType = t2.dialExtensionActionType = t2.detectSilenceActionType = t2.detectIntentActionType = t2.deflectActionType = t2.decryptDataActionType = t2.decisionActionType = t2.dataTableLookupActionType = t2.dataActionActionType = t2.createCallbackActionType = t2.createConversationAttributeActionType = t2.completeSurveyActionType = t2.completeSendActionType = t2.communicateActionType = t2.commonModuleTaskActionType = t2.collectVoiceSnippetActionType = t2.collectInputActionType = t2.clearSkillExpressionFiltersActionType = t2.clearVoicemailSnippetActionType = t2.clearUtilizationLabelActionType = t2.clearSlotActionType = t2.clearPostFlowActionType = t2.clearActiveIntentActionType = t2.changeStateActionType = t2.callTaskActionType = t2.callAudioConnectorActionType = t2.callDigitalBotFlowActionType = t2.digitalBotConnectorActionType = t2.callGuideActionType = t2.callDecisionTableActionType = t2.callCommonModuleActionType = t2.callVoiceFlowActionType = t2.callBotFlowActionType = t2.callAgenticVirtualAgentActionType = t2.bridgeServerActionType = t2.botStateActionType = t2.botConnectorActionType = t2.audioMonitoringActionType = t2.askSurveyQuestionActionType = t2.askForSlotActionType = t2.askForPaymentActionType = t2.askForNLUNextIntentActionActionType = t2.askForNLUIntentActionType = t2.askForBooleanActionType = t2.askForAuthenticationActionType = t2.addFlowMilestoneActionType = t2.abortSurveyActionType = t2.abortSendActionType = t2.actionTypeValues = void 0, t2.getJourneySessionsByCustomerActionType = t2.getJourneySessionActionType = t2.getJourneySegmentActionType = t2.getJourneyOutcomeScoresBySessionActionType = t2.getJourneyOutcomeActionType = t2.getExternalOrganizationActionType = t2.getExternalContactActionType = t2.getEmailHeadersActionType = t2.getConversationDataActionType = t2.getConversationAttributesActionType = t2.getConversationAttributeActionType = t2.getAttributesActionType = t2.getAssignedCustomerIntentsActionType = t2.formActionType = t2.flushAudioActionType = t2.findUtilizationLabelActionType = t2.findUsersByIdActionType = t2.findUserPromptActionType = t2.findUserByIdActionType = t2.findUserActionType = t2.findSystemPromptActionType = t2.findSkillActionType = t2.findScheduleGroupActionType = t2.findScheduleActionType = t2.findQueueByIdActionType = t2.findQueueActionType = t2.findLanguageSkillActionType = t2.findKnowledgeBaseDocumentByIdActionType = t2.findGroupActionType = t2.findGrammarByIdActionType = t2.findGrammarActionType = t2.findEmergencyGroupActionType = t2.findDivisionsActionType = t2.findDivisionActionType = t2.extractSecureDataActionType = t2.exitWorkitemFlowActionType = t2.exitLoopActionType = t2.exitBotFlowActionType = t2.evaluateSkillExpressionFiltersActionType = t2.evaluateScheduleGroupActionType = t2.evaluateScheduleActionType = t2.endWorkflowActionType = t2.endTaskActionType = t2.endStateActionType = t2.encryptDataActionType = t2.disconnectWorkitemActionType = t2.disconnectActionType = t2.digitalMenuActionType = t2.dialogflowCxActionType = t2.dialogflowActionType = void 0, t2.setUtilizationLabelActionType = t2.setSkillsActionType = t2.setSkillExpressionFiltersActionType = t2.setSecuredDataActionType = t2.setPriorityActionType = t2.setPostFlowActionType = t2.setLocaleActionType = t2.setFlowOutcomeActionType = t2.setExternalTagActionType = t2.setConversationDataActionType = t2.setAttributesActionType = t2.setActiveIntentActionType = t2.sendRichLinkActionType = t2.sendResponseActionType = t2.sendNotificationActionType = t2.sendKnowledgeFeedbackActionActionType = t2.sendInteractiveApplicationActionActionType = t2.sendDigitalContentActionType = t2.sendAutoReplyActionType = t2.secureActionActionType = t2.searchExternalContactsActionType = t2.screenPopActionType = t2.returnToAgentActionType = t2.repeatMenuActionType = t2.promoteExternalContactActionType = t2.processVoicemailInputActionType = t2.previousMenuActionType = t2.playUserNameActionType = t2.playUserGreetingActionType = t2.playPositionInQueueActionType = t2.playEstimatedWaitTimeActionType = t2.playAudioOnSilenceActionType = t2.playAudioActionType = t2.participantRecordActionType = t2.nuanceMixActionType = t2.nextLoopActionType = t2.menuActionActionType = t2.menuActionType = t2.loopUntilActionType = t2.loopTaskActionType = t2.loopActionType = t2.lexV2ActionType = t2.lexActionType = t2.initializeFlowOutcomeActionType = t2.holdMusicActionType = t2.getSIPHeadersActionType = t2.getSecuredDataActionType = t2.getResponseActionType = t2.getRawSIPHeadersActionType = t2.getJourneySessionsByExternalContactActionType = void 0, t2.terminateWorkitemActionType = t2.waitForInputActionType = t2.waitActionType = t2.voiceBiometricsActionType = t2.updateWorkitemActionType = t2.updateVariableActionType = t2.updateConversationAttributeActionType = t2.transferVoicemailActionType = t2.transferUserActionType = t2.transferTaskActionType = t2.transferPureMatchActionType = t2.transferMenuActionType = t2.transferGroupActionType = t2.transferFlowSecureActionType = t2.transferFlowActionType = t2.transferExternalActionType = t2.transcriptionActionType = t2.taskActionActionType = t2.taskActionType = t2.switchActionActionType = t2.submitVoiceSnippetActionType = t2.submitVoicemailSnippetActionType = t2.stateActionType = t2.showKnowledgeArticleActionActionType = t2.setWrapupCodeActionType = t2.setWhisperAudioActionType = t2.setUUIDataActionType = void 0, t2.isActionType = function(e3) { + return t2.actionTypeValues.includes(e3); + }; + const i2 = { abortSendActionType: "AbortSendAction", abortSurveyActionType: "AbortSurveyInviteAction", addFlowMilestoneActionType: "AddFlowMilestoneAction", askForAuthenticationActionType: "AskForAuthenticationAction", askForBooleanActionType: "AskForBooleanAction", askForNLUIntentActionType: "AskForNLUIntentAction", askForNLUNextIntentActionActionType: "AskForNLUNextIntentAction", askForPaymentActionType: "AskForPaymentAction", askForSlotActionType: "AskForSlotAction", askSurveyQuestionActionType: "AskSurveyQuestionAction", audioMonitoringActionType: "AudioMonitoringAction", botConnectorActionType: "CallBotConnectorAction", botStateActionType: "BotState", bridgeServerActionType: "BridgeServerAction", callAgenticVirtualAgentActionType: "CallAgenticVirtualAgentAction", callBotFlowActionType: "CallBotFlowAction", callVoiceFlowActionType: "CallVoiceFlowAction", callCommonModuleActionType: "CallCommonModuleAction", callDecisionTableActionType: "CallDecisionTableAction", callGuideActionType: "CallGuideAction", digitalBotConnectorActionType: "CallDigitalBotConnectorAction", callDigitalBotFlowActionType: "CallDigitalBotFlowAction", callAudioConnectorActionType: "CallAudioConnectorAction", callTaskActionType: "CallTaskAction", changeStateActionType: "ChangeStateAction", clearActiveIntentActionType: "ClearActiveIntentAction", clearPostFlowActionType: "ClearPostFlowAction", clearSlotActionType: "ClearSlotAction", clearUtilizationLabelActionType: "ClearUtilizationLabelAction", clearVoicemailSnippetActionType: "ClearVoicemailSnippetAction", clearSkillExpressionFiltersActionType: "ClearSkillExpressionFiltersAction", collectInputActionType: "CollectInputAction", collectVoiceSnippetActionType: "CollectVoiceSnippetAction", commonModuleTaskActionType: "CommonModuleTask", communicateActionType: "CommunicateAction", completeSendActionType: "CompleteSendAction", completeSurveyActionType: "CompleteSurveyInviteAction", createCallbackActionType: "CreateCallbackAction", createConversationAttributeActionType: "CreateConversationAttributeAction", dataActionActionType: "DataAction", dataTableLookupActionType: "DataTableLookupAction", decisionActionType: "DecisionAction", decryptDataActionType: "DecryptDataAction", deflectActionType: "DeflectAction", detectIntentActionType: "DetectIntentAction", detectSilenceActionType: "DetectSilenceAction", dialExtensionActionType: "DialExtensionAction", dialNameActionType: "DialNameAction", dialogEngineActionType: "CallDialogEngineBotAction", dialogflowActionType: "CallDialogflowBotAction", dialogflowCxActionType: "CallDialogflowCxBotAction", digitalMenuActionType: "DigitalMenuAction", disconnectActionType: "DisconnectAction", disconnectWorkitemActionType: "DisconnectWorkitemAction", encryptDataActionType: "EncryptDataAction", endStateActionType: "EndStateAction", endTaskActionType: "EndTaskAction", endWorkflowActionType: "EndWorkflowAction", evaluateScheduleActionType: "EvaluateScheduleAction", evaluateScheduleGroupActionType: "EvaluateScheduleGroupAction", evaluateSkillExpressionFiltersActionType: "EvaluateSkillExpressionFiltersAction", exitBotFlowActionType: "ExitBotFlowAction", exitLoopActionType: "ExitLoopAction", exitWorkitemFlowActionType: "ExitWorkitemFlowAction", extractSecureDataActionType: "ExtractSecureDataAction", findDivisionActionType: "FindDivisionAction", findDivisionsActionType: "FindDivisionsAction", findEmergencyGroupActionType: "FindEmergencyGroupAction", findGrammarActionType: "FindGrammarAction", findGrammarByIdActionType: "FindGrammarByIdAction", findGroupActionType: "FindGroupAction", findKnowledgeBaseDocumentByIdActionType: "FindKnowledgeBaseDocumentByIdAction", findLanguageSkillActionType: "FindLanguageSkillAction", findQueueActionType: "FindQueueAction", findQueueByIdActionType: "FindQueueByIdAction", findScheduleActionType: "FindScheduleAction", findScheduleGroupActionType: "FindScheduleGroupAction", findSkillActionType: "FindSkillAction", findSystemPromptActionType: "FindSystemPromptAction", findUserActionType: "FindUserAction", findUserByIdActionType: "FindUserByIdAction", findUserPromptActionType: "FindUserPromptAction", findUsersByIdActionType: "FindUsersByIdAction", findUtilizationLabelActionType: "FindUtilizationLabelAction", flushAudioActionType: "FlushAudioAction", formActionType: "FormAction", getAssignedCustomerIntentsActionType: "GetAssignedCustomerIntentsAction", getAttributesActionType: "GetAttributesAction", getConversationAttributeActionType: "GetConversationAttributeAction", getConversationAttributesActionType: "GetConversationAttributesAction", getConversationDataActionType: "GetConversationDataAction", getEmailHeadersActionType: "GetEmailHeadersAction", getExternalContactActionType: "GetExternalContactAction", getExternalOrganizationActionType: "GetExternalOrganizationAction", getJourneyOutcomeActionType: "GetJourneyOutcomeAction", getJourneyOutcomeScoresBySessionActionType: "GetJourneyOutcomeScoresBySessionAction", getJourneySegmentActionType: "GetJourneySegmentAction", getJourneySessionActionType: "GetJourneySessionAction", getJourneySessionsByCustomerActionType: "GetJourneySessionsByCustomerAction", getJourneySessionsByExternalContactActionType: "GetJourneySessionsByExternalContactAction", getRawSIPHeadersActionType: "GetRawSIPHeadersAction", getResponseActionType: "GetResponseAction", getSecuredDataActionType: "GetSecuredDataAction", getSIPHeadersActionType: "GetSIPHeadersAction", holdMusicActionType: "HoldMusicAction", initializeFlowOutcomeActionType: "InitializeFlowOutcomeAction", lexActionType: "CallLexBotAction", lexV2ActionType: "CallLexV2BotAction", loopActionType: "LoopAction", loopTaskActionType: "LoopTask", loopUntilActionType: "LoopUntilAction", menuActionType: "Menu", menuActionActionType: "MenuAction", nextLoopActionType: "NextLoopAction", nuanceMixActionType: "CallNuanceMixBotAction", participantRecordActionType: "ParticipantRecordAction", playAudioActionType: "PlayAudioAction", playAudioOnSilenceActionType: "PlayAudioOnSilenceAction", playEstimatedWaitTimeActionType: "PlayEstimatedWaitTimeAction", playPositionInQueueActionType: "PlayPositionInQueueAction", playUserGreetingActionType: "PlayUserGreetingAudioAction", playUserNameActionType: "PlayUserNameAudioAction", previousMenuActionType: "PreviousMenuAction", processVoicemailInputActionType: "ProcessVoicemailInputAction", promoteExternalContactActionType: "PromoteExternalContactAction", repeatMenuActionType: "RepeatMenuAction", returnToAgentActionType: "EndFlowAction", screenPopActionType: "ScreenPopAction", searchExternalContactsActionType: "SearchExternalContactsAction", secureActionActionType: "SecureAction", sendAutoReplyActionType: "SendAutoReplyAction", sendDigitalContentActionType: "SendDigitalContentAction", sendInteractiveApplicationActionActionType: "SendInteractiveApplicationAction", sendKnowledgeFeedbackActionActionType: "SendKnowledgeFeedbackAction", sendNotificationActionType: "SendNotificationAction", sendResponseActionType: "SendResponseAction", sendRichLinkActionType: "SendRichLinkAction", setActiveIntentActionType: "SetActiveIntentAction", setAttributesActionType: "SetAttributesAction", setConversationDataActionType: "SetConversationDataAction", setExternalTagActionType: "SetExternalTagAction", setFlowOutcomeActionType: "SetFlowOutcomeAction", setLocaleActionType: "SetLocaleAction", setPostFlowActionType: "SetPostFlowAction", setPriorityActionType: "SetPriorityAction", setSecuredDataActionType: "SetSecuredDataAction", setSkillExpressionFiltersActionType: "SetSkillExpressionFiltersAction", setSkillsActionType: "SetSkillsAction", setUtilizationLabelActionType: "SetUtilizationLabelAction", setUUIDataActionType: "SetUUIDataAction", setWhisperAudioActionType: "SetWhisperAudio", setWrapupCodeActionType: "SetWrapupCodeAction", showKnowledgeArticleActionActionType: "ShowKnowledgeArticleAction", stateActionType: "State", submitVoicemailSnippetActionType: "SubmitVoicemailSnippetAction", submitVoiceSnippetActionType: "SubmitVoiceSnippetAction", switchActionActionType: "SwitchAction", taskActionType: "Task", taskActionActionType: "TaskAction", transcriptionActionType: "TranscriptionAction", transferExternalActionType: "TransferExternalAction", transferFlowActionType: "TransferFlowAction", transferFlowSecureActionType: "TransferFlowSecureAction", transferGroupActionType: "TransferGroupAction", transferMenuActionType: "TransferMenuAction", transferPureMatchActionType: "TransferPureMatchAction", transferTaskActionType: "TransferTaskAction", transferUserActionType: "TransferUserAction", transferVoicemailActionType: "TransferVoicemailAction", updateConversationAttributeActionType: "UpdateConversationAttributeAction", updateVariableActionType: "UpdateVariableAction", updateWorkitemActionType: "UpdateWorkitemAction", voiceBiometricsActionType: "VoiceBiometricsAction", waitActionType: "WaitAction", waitForInputActionType: "WaitForInputAction", terminateWorkitemActionType: "TerminateWorkitemAction" }; + t2.actionTypeValues = Object.values(i2), t2.abortSendActionType = i2.abortSendActionType, t2.abortSurveyActionType = i2.abortSurveyActionType, t2.addFlowMilestoneActionType = i2.addFlowMilestoneActionType, t2.askForAuthenticationActionType = i2.askForAuthenticationActionType, t2.askForBooleanActionType = i2.askForBooleanActionType, t2.askForNLUIntentActionType = i2.askForNLUIntentActionType, t2.askForNLUNextIntentActionActionType = i2.askForNLUNextIntentActionActionType, t2.askForPaymentActionType = i2.askForPaymentActionType, t2.askForSlotActionType = i2.askForSlotActionType, t2.askSurveyQuestionActionType = i2.askSurveyQuestionActionType, t2.audioMonitoringActionType = i2.audioMonitoringActionType, t2.botConnectorActionType = i2.botConnectorActionType, t2.botStateActionType = i2.botStateActionType, t2.bridgeServerActionType = i2.bridgeServerActionType, t2.callAgenticVirtualAgentActionType = i2.callAgenticVirtualAgentActionType, t2.callBotFlowActionType = i2.callBotFlowActionType, t2.callVoiceFlowActionType = i2.callVoiceFlowActionType, t2.callCommonModuleActionType = i2.callCommonModuleActionType, t2.callDecisionTableActionType = i2.callDecisionTableActionType, t2.callGuideActionType = i2.callGuideActionType, t2.digitalBotConnectorActionType = i2.digitalBotConnectorActionType, t2.callDigitalBotFlowActionType = i2.callDigitalBotFlowActionType, t2.callAudioConnectorActionType = i2.callAudioConnectorActionType, t2.callTaskActionType = i2.callTaskActionType, t2.changeStateActionType = i2.changeStateActionType, t2.clearActiveIntentActionType = i2.clearActiveIntentActionType, t2.clearPostFlowActionType = i2.clearPostFlowActionType, t2.clearSlotActionType = i2.clearSlotActionType, t2.clearUtilizationLabelActionType = i2.clearUtilizationLabelActionType, t2.clearVoicemailSnippetActionType = i2.clearVoicemailSnippetActionType, t2.clearSkillExpressionFiltersActionType = i2.clearSkillExpressionFiltersActionType, t2.collectInputActionType = i2.collectInputActionType, t2.collectVoiceSnippetActionType = i2.collectVoiceSnippetActionType, t2.commonModuleTaskActionType = i2.commonModuleTaskActionType, t2.communicateActionType = i2.communicateActionType, t2.completeSendActionType = i2.completeSendActionType, t2.completeSurveyActionType = i2.completeSurveyActionType, t2.createConversationAttributeActionType = i2.createConversationAttributeActionType, t2.createCallbackActionType = i2.createCallbackActionType, t2.dataActionActionType = i2.dataActionActionType, t2.dataTableLookupActionType = i2.dataTableLookupActionType, t2.decisionActionType = i2.decisionActionType, t2.decryptDataActionType = i2.decryptDataActionType, t2.deflectActionType = i2.deflectActionType, t2.detectIntentActionType = i2.detectIntentActionType, t2.detectSilenceActionType = i2.detectSilenceActionType, t2.dialExtensionActionType = i2.dialExtensionActionType, t2.dialNameActionType = i2.dialNameActionType, t2.dialogEngineActionType = i2.dialogEngineActionType, t2.dialogflowActionType = i2.dialogflowActionType, t2.dialogflowCxActionType = i2.dialogflowCxActionType, t2.digitalMenuActionType = i2.digitalMenuActionType, t2.disconnectActionType = i2.disconnectActionType, t2.disconnectWorkitemActionType = i2.disconnectWorkitemActionType, t2.encryptDataActionType = i2.encryptDataActionType, t2.endStateActionType = i2.endStateActionType, t2.endTaskActionType = i2.endTaskActionType, t2.endWorkflowActionType = i2.endWorkflowActionType, t2.evaluateScheduleActionType = i2.evaluateScheduleActionType, t2.evaluateScheduleGroupActionType = i2.evaluateScheduleGroupActionType, t2.evaluateSkillExpressionFiltersActionType = i2.evaluateSkillExpressionFiltersActionType, t2.exitBotFlowActionType = i2.exitBotFlowActionType, t2.exitLoopActionType = i2.exitLoopActionType, t2.exitWorkitemFlowActionType = i2.exitWorkitemFlowActionType, t2.extractSecureDataActionType = i2.extractSecureDataActionType, t2.findDivisionActionType = i2.findDivisionActionType, t2.findDivisionsActionType = i2.findDivisionsActionType, t2.findEmergencyGroupActionType = i2.findEmergencyGroupActionType, t2.findGrammarActionType = i2.findGrammarActionType, t2.findGrammarByIdActionType = i2.findGrammarByIdActionType, t2.findGroupActionType = i2.findGroupActionType, t2.findKnowledgeBaseDocumentByIdActionType = i2.findKnowledgeBaseDocumentByIdActionType, t2.findLanguageSkillActionType = i2.findLanguageSkillActionType, t2.findQueueActionType = i2.findQueueActionType, t2.findQueueByIdActionType = i2.findQueueByIdActionType, t2.findScheduleActionType = i2.findScheduleActionType, t2.findScheduleGroupActionType = i2.findScheduleGroupActionType, t2.findSkillActionType = i2.findSkillActionType, t2.findSystemPromptActionType = i2.findSystemPromptActionType, t2.findUserActionType = i2.findUserActionType, t2.findUserByIdActionType = i2.findUserByIdActionType, t2.findUserPromptActionType = i2.findUserPromptActionType, t2.findUsersByIdActionType = i2.findUsersByIdActionType, t2.findUtilizationLabelActionType = i2.findUtilizationLabelActionType, t2.flushAudioActionType = i2.flushAudioActionType, t2.formActionType = i2.formActionType, t2.getAssignedCustomerIntentsActionType = i2.getAssignedCustomerIntentsActionType, t2.getAttributesActionType = i2.getAttributesActionType, t2.getConversationAttributeActionType = i2.getConversationAttributeActionType, t2.getConversationAttributesActionType = i2.getConversationAttributesActionType, t2.getConversationDataActionType = i2.getConversationDataActionType, t2.getEmailHeadersActionType = i2.getEmailHeadersActionType, t2.getExternalContactActionType = i2.getExternalContactActionType, t2.getExternalOrganizationActionType = i2.getExternalOrganizationActionType, t2.getJourneyOutcomeActionType = i2.getJourneyOutcomeActionType, t2.getJourneyOutcomeScoresBySessionActionType = i2.getJourneyOutcomeScoresBySessionActionType, t2.getJourneySegmentActionType = i2.getJourneySegmentActionType, t2.getJourneySessionActionType = i2.getJourneySessionActionType, t2.getJourneySessionsByCustomerActionType = i2.getJourneySessionsByCustomerActionType, t2.getJourneySessionsByExternalContactActionType = i2.getJourneySessionsByExternalContactActionType, t2.getRawSIPHeadersActionType = i2.getRawSIPHeadersActionType, t2.getResponseActionType = i2.getResponseActionType, t2.getSecuredDataActionType = i2.getSecuredDataActionType, t2.getSIPHeadersActionType = i2.getSIPHeadersActionType, t2.holdMusicActionType = i2.holdMusicActionType, t2.initializeFlowOutcomeActionType = i2.initializeFlowOutcomeActionType, t2.lexActionType = i2.lexActionType, t2.lexV2ActionType = i2.lexV2ActionType, t2.loopActionType = i2.loopActionType, t2.loopTaskActionType = i2.loopTaskActionType, t2.loopUntilActionType = i2.loopUntilActionType, t2.menuActionType = i2.menuActionType, t2.menuActionActionType = i2.menuActionActionType, t2.nextLoopActionType = i2.nextLoopActionType, t2.nuanceMixActionType = i2.nuanceMixActionType, t2.participantRecordActionType = i2.participantRecordActionType, t2.playAudioActionType = i2.playAudioActionType, t2.playAudioOnSilenceActionType = i2.playAudioOnSilenceActionType, t2.playEstimatedWaitTimeActionType = i2.playEstimatedWaitTimeActionType, t2.playPositionInQueueActionType = i2.playPositionInQueueActionType, t2.playUserGreetingActionType = i2.playUserGreetingActionType, t2.playUserNameActionType = i2.playUserNameActionType, t2.previousMenuActionType = i2.previousMenuActionType, t2.processVoicemailInputActionType = i2.processVoicemailInputActionType, t2.promoteExternalContactActionType = i2.promoteExternalContactActionType, t2.repeatMenuActionType = i2.repeatMenuActionType, t2.returnToAgentActionType = i2.returnToAgentActionType, t2.screenPopActionType = i2.screenPopActionType, t2.searchExternalContactsActionType = i2.searchExternalContactsActionType, t2.secureActionActionType = i2.secureActionActionType, t2.sendAutoReplyActionType = i2.sendAutoReplyActionType, t2.sendDigitalContentActionType = i2.sendDigitalContentActionType, t2.sendInteractiveApplicationActionActionType = i2.sendInteractiveApplicationActionActionType, t2.sendKnowledgeFeedbackActionActionType = i2.sendKnowledgeFeedbackActionActionType, t2.sendNotificationActionType = i2.sendNotificationActionType, t2.sendResponseActionType = i2.sendResponseActionType, t2.sendRichLinkActionType = i2.sendRichLinkActionType, t2.setActiveIntentActionType = i2.setActiveIntentActionType, t2.setAttributesActionType = i2.setAttributesActionType, t2.setConversationDataActionType = i2.setConversationDataActionType, t2.setExternalTagActionType = i2.setExternalTagActionType, t2.setFlowOutcomeActionType = i2.setFlowOutcomeActionType, t2.setLocaleActionType = i2.setLocaleActionType, t2.setPostFlowActionType = i2.setPostFlowActionType, t2.setPriorityActionType = i2.setPriorityActionType, t2.setSecuredDataActionType = i2.setSecuredDataActionType, t2.setSkillExpressionFiltersActionType = i2.setSkillExpressionFiltersActionType, t2.setSkillsActionType = i2.setSkillsActionType, t2.setUtilizationLabelActionType = i2.setUtilizationLabelActionType, t2.setUUIDataActionType = i2.setUUIDataActionType, t2.setWhisperAudioActionType = i2.setWhisperAudioActionType, t2.setWrapupCodeActionType = i2.setWrapupCodeActionType, t2.showKnowledgeArticleActionActionType = i2.showKnowledgeArticleActionActionType, t2.stateActionType = i2.stateActionType, t2.submitVoicemailSnippetActionType = i2.submitVoicemailSnippetActionType, t2.submitVoiceSnippetActionType = i2.submitVoiceSnippetActionType, t2.switchActionActionType = i2.switchActionActionType, t2.taskActionType = i2.taskActionType, t2.taskActionActionType = i2.taskActionActionType, t2.transcriptionActionType = i2.transcriptionActionType, t2.transferExternalActionType = i2.transferExternalActionType, t2.transferFlowActionType = i2.transferFlowActionType, t2.transferFlowSecureActionType = i2.transferFlowSecureActionType, t2.transferGroupActionType = i2.transferGroupActionType, t2.transferMenuActionType = i2.transferMenuActionType, t2.transferPureMatchActionType = i2.transferPureMatchActionType, t2.transferTaskActionType = i2.transferTaskActionType, t2.transferUserActionType = i2.transferUserActionType, t2.transferVoicemailActionType = i2.transferVoicemailActionType, t2.updateConversationAttributeActionType = i2.updateConversationAttributeActionType, t2.updateVariableActionType = i2.updateVariableActionType, t2.updateWorkitemActionType = i2.updateWorkitemActionType, t2.voiceBiometricsActionType = i2.voiceBiometricsActionType, t2.waitActionType = i2.waitActionType, t2.waitForInputActionType = i2.waitForInputActionType, t2.terminateWorkitemActionType = i2.terminateWorkitemActionType; + }, 30825: (e2, t2, i2) => { + const n2 = i2(2210), r2 = i2(81084), o = i2(7401), { playAudioOnSilenceActionType: a } = i2(30801); + function s() { + Object.defineProperties(this, { _actualRepeatCount: { writable: true }, _allowedRepeatCount: { writable: true }, _audio: { writable: true } }), s.baseConstructor.apply(this, arguments); + } + r2.extend(s, a, "PlayAudioOnSilenceActionModel"), Object.defineProperties(s.prototype, { pasteResolveOldToNewValues: { value: function(e3) { + s._super.pasteResolveOldToNewValues.apply(this, arguments), this.actualRepeatCount.pasteReIdOrRename(e3), this.allowedRepeatCount.pasteReIdOrRename(e3), this.audio.pasteReIdOrRename(e3); + } }, pasteReIdOrRename: { value: function(e3) { + s._super.pasteReIdOrRename.apply(this, arguments), this.actualRepeatCount.pasteResolveOldToNewValues(e3), this.allowedRepeatCount.pasteResolveOldToNewValues(e3), this.audio.pasteResolveOldToNewValues(e3); + } }, actualRepeatCount: { enumerable: true, get: function() { + return this._actualRepeatCount; + }, set: function(e3) { + this._actualRepeatCount = this.reviveItem(e3, o); + } }, allowedRepeatCount: { enumerable: true, get: function() { + return this._allowedRepeatCount; + }, set: function(e3) { + this._allowedRepeatCount = this.reviveItem(e3, o); + } }, audio: { enumerable: true, get: function() { + return this._audio; + }, set: function(e3) { + this._audio = this.reviveItem(e3, n2); + } } }), e2.exports = s; + }, 30879: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.getCurrencies = function() { + return o.length || o.push(...n2.default.map(r2, (e3, t3) => { + const i3 = s(e3); + return a.push(i3), e3.code || n2.default.extend(e3, { code: t3 }), n2.default.extend(e3, { description: i3 }); + })), o; + }, t2.getCurrencyEntryFromCode = function(e3) { + return r2[e3]; + }, t2.getDescriptionStringFromCode = function(e3) { + const t3 = r2[e3]; + return t3 ? s(t3) : null; + }, t2.getCurrencyCodeAllowableValues = function() { + return void 0 === l && (l = [], Object.values(r2).forEach((e3) => { + l.push({ id: e3.code, displayString: e3.displayName }); + })), l; + }; + const n2 = i2(31635).__importDefault(i2(92140)), r2 = i2(19502), o = [], a = []; + function s(e3) { + return (e3.code || e3.symbol) + " - " + e3.displayName; + } + let l; + }, 30888: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.dialogEngineBotManager = t2.DialogEngineBotManager = void 0; + const n2 = i2(31635), r2 = n2.__importStar(i2(1360)), o = n2.__importStar(i2(24032)), a = n2.__importDefault(i2(47532)), s = i2(30801), l = n2.__importDefault(i2(14994)), u = i2(81801), d = i2(47957), c = i2(27862), p = i2(94384); + class _ extends a.default { + get requiredAuth() { + return u.externalAuthorizations.authStrings.integrationView; + } + get dependencyType() { + return c.DialogEngineBot; + } + constructor() { + super(), this.topic = o.getTopic("DialogEngineBotManager"), this._rawServerCache = {}, this.actionPropertyForUsageSearch = "bot", this.actionsForUsageSearch = [s.dialogEngineActionType], this.apiCallList = p.getBots, this.apiCallSingle = p.getBot, this.className = "DialogEngineBotManager", this.defaultMatchingStyle = r2.exactMatch, this.defaultPageSize = 1e3, this.dependencyContext = d.dialogEngine.dialogEngineBot, this.searchField = "name", this.securityError = true, this.suppressSearch = true, this.uiMetadataSectionName = "dialogEngineBots", this._initialize(); + } + _createItemViewModel(e3) { + return new l.default(e3); + } + } + t2.DialogEngineBotManager = _, t2.dialogEngineBotManager = new _(); + }, 30905: (e2, t2, i2) => { + const n2 = i2(28730), { flushAudioActionType: r2 } = i2(30801); + function o() { + o.baseConstructor.apply(this, arguments); + } + n2.extend(o, r2, true), e2.exports = o; + }, 31006: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(84655)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "workitemEventRule"; + } + get initialValue() { + return this._initialValue; + } + get displayTypeName() { + return "ArchVariableWorkitemEventRule"; + } + get isArchVariableWorkitemEventRule() { + return true; + } + } + t2.default = r2; + }, 31061: (e2, t2, i2) => { + const n2 = i2(28730), { transferMenuActionType: r2 } = i2(30801); + function o() { + this.menuReference = void 0, this.menuName = void 0, o.baseConstructor.apply(this, arguments); + } + n2.extend(o, r2, true), Object.defineProperties(o.prototype, { pasteResolveOldToNewValues: { value: function(e3) { + o._super.pasteResolveOldToNewValues.apply(this, arguments); + const t3 = e3.pasteResolveOldIdToOldName(this.menuReference); + this.menuReference = this.pasteResolveReferenceAndName(e3, "menu", this.menuReference, t3).reference; + } } }), e2.exports = o; + }, 31140: (e2, t2, i2) => { + function n2() { + Object.defineProperties(this, { name: { writable: true, enumerable: true } }), n2.baseConstructor.apply(this, arguments); + } + i2(45214).extend(n2, "HedwigActionCategory"), Object.defineProperties(n2.prototype, { id: { get: function() { + return this.name; + }, set: function(e3) { + this.name = e3; + }, enumerable: false } }), e2.exports = n2; + }, 31145: (e2, t2, i2) => { + "use strict"; + var n2; + Object.defineProperty(t2, "__esModule", { value: true }), t2.NluFlowViewModel = void 0; + const r2 = i2(31635), o = r2.__importStar(i2(68694)), a = i2(68694), s = i2(17604), l = r2.__importDefault(i2(92140)), u = r2.__importStar(i2(24601)), d = r2.__importStar(i2(98442)), c = r2.__importStar(i2(9345)), p = i2(14394), _ = i2(79516), h = i2(77841), m = i2(63689), g = r2.__importStar(i2(12847)), f = r2.__importStar(i2(36781)), T = i2(10798), y = r2.__importStar(i2(46920)), S = r2.__importDefault(i2(77862)), A = r2.__importStar(i2(58380)), N = r2.__importStar(i2(1115)), O = r2.__importDefault(i2(4648)), I = i2(84041), v = r2.__importStar(i2(44392)), C = r2.__importStar(i2(22717)), b = i2(13116), E = r2.__importStar(i2(14187)), R = r2.__importDefault(i2(8066)), w = r2.__importDefault(i2(71729)), D = r2.__importDefault(i2(71901)), P = r2.__importDefault(i2(71655)), M = r2.__importDefault(i2(95955)), F = r2.__importDefault(i2(27277)), L = r2.__importDefault(i2(75228)), x = r2.__importDefault(i2(84693)), k = r2.__importDefault(i2(76533)), V = r2.__importDefault(i2(4406)), U = r2.__importDefault(i2(19359)), B = r2.__importDefault(i2(57443)), G = r2.__importDefault(i2(15179)), j = r2.__importDefault(i2(48263)), W = r2.__importDefault(i2(86767)), q = r2.__importDefault(i2(71824)), Y = i2(79364), H = i2(24893), J = i2(16926), z = i2(47957), K = i2(64420); + class $ extends q.default { + constructor(e3) { + super(e3), n2.set(this, false), this._nluWbMessageProcessingShouldCacheFlowConfig = true, this.callPrompts = this._addToAutoManageSettings(new M.default(this)), this.errorHandling = this._addToAutoManageSettings(new R.default(this)), this.botFlowSettings = this._addToAutoManageSettings(this._createBotFlowSettings()), this.supportsNluIntents && (this.intentsSettings = this._addToAutoManageSettings(new L.default(this))), this.learningSettings = this._addToAutoManageSettings(new k.default(this)), this.nluMetaData = this._addToAutoManageSettings(new W.default(this)), this.slotSettings = this._addToAutoManageSettings(new B.default(this)), this.slotTypeSettings = this._addToAutoManageSettings(new G.default(this)), this.userInputSettings = this._addToAutoManageSettings(new D.default(this)), this.botSessionViewer = this._addToAutoManageSettings(new P.default(this)), this.supportsKnowledge && (this.knowledgeSettings = this._addToAutoManageSettings(new x.default(this))), this.supportsNluIntents && (this.intentMiner = this._addToAutoManageSettings(new F.default(this))), this.pathDiscovery = this._addToAutoManageSettings(new U.default(this)), this.optimizationOverview = this._addToAutoManageSettings(new V.default(this)), this.virtualAgentSettings = this._addToAutoManageSettings(new j.default(this)), this.debouncedValidateFlow = l.default.debounce(N.validateFlow.bind(N, this), 500); + } + _createBotFlowSettings() { + return new w.default(this); + } + validate(e3) { + var t3, i3, n3; + if (super.validate(e3), this.supportsGrammars) for (const n4 in this.nluMetaData.slotsToGrammarsMapping) { + const r4 = null === (t3 = this.nluMetaData.slotsToGrammarsMapping[n4]) || void 0 === t3 ? void 0 : t3.id; + if ((!r4 || !h.grammarManager.getItem(r4)) && r4) { + const t4 = n4, o2 = null === (i3 = this.nluMetaData.slotsToGrammarsMapping[n4]) || void 0 === i3 ? void 0 : i3.name, a2 = o2 ? (0, s.sprintf)(z.grammars.modal.errors.grammarNameDoesNotExistOnSlot, o2, t4) : (0, s.sprintf)(z.grammars.modal.errors.grammarIdDoesNotExistOnSlot, r4, t4); + e3.addError(this.slotSettings, a2); + } + } + const r3 = o.EntityUtil.getEntityTypeNames(this.nlu); + r3.length && r3.forEach((t4) => { + var i4, n4; + const r4 = o.EntityUtil.getEntityTypeByName(this.nlu, t4); + "List" === (null === (i4 = null == r4 ? void 0 : r4.mechanism) || void 0 === i4 ? void 0 : i4.type) && (null === (n4 = null == r4 ? void 0 : r4.mechanism) || void 0 === n4 ? void 0 : n4.items.length) && r4.mechanism.items.forEach((t5) => { + var i5; + if (t5.value !== t5.value.trim()) { + const n5 = (0, s.sprintf)(z.bot.whitespacePresentInSlotTypeValue, t5.value, r4.name); + (null === (i5 = e3.issuesMap.slotTypeSettings) || void 0 === i5 ? void 0 : i5.warnings.find((e4) => e4.text === n5)) || e3.addWarning(this.slotTypeSettings, n5); + } + }); + }), (0, T.isFeatureAvailable)(O.default.botFlowsVirtualAgentGuideBillingDowngrade) && (this.botFlowSettings.hasCallAVAAction || true !== (null === (n3 = this.info) || void 0 === n3 ? void 0 : n3.agenticVirtualAgentEnabled) || e3.addWarning(this, z.virtualAgent.agenticVirtualAgentDowngradeTooltip, true)); + } + get isNluFlow() { + return true; + } + get languageForFlowCreation() { + return this.defaultLanguage; + } + get hasIntentTaskMappings() { + return false; + } + get supportsNluIntents() { + return this.definition.supportsNluIntents; + } + get supportsKnowledge() { + return this.definition.supportsKnowledge; + } + get supportsConversationSummary() { + return this.definition.supportsConversationSummary && this.botFlowSettings.virtualAgentEnabled; + } + createState(e3) { + if (this.definition.supportsMultipleStates) return super.createState(e3); + g.error("Multiple states not supported"); + } + get builtInVariableScopes() { + return [...super.builtInVariableScopes, E.scopes.session, E.scopes.flow, E.scopes.slot]; + } + get allowedAssignableVariableScopes() { + return [...super.allowedAssignableVariableScopes, E.scopes.slot]; + } + getFlowConfigurationClass() { + return H; + } + get overrideWireFlowConfiguration() { + return K.getBotFlowConfiguration; + } + get overrideWireFlowVersionConfiguration() { + return K.getVersionBotFlowConfiguration; + } + get grammarsInUse() { + return l.default.isNullOrUndefined(this.nluMetaData.slotsToGrammarsMapping) ? [] : [...Object.values(this.nluMetaData.slotsToGrammarsMapping)]; + } + get speechToTextEnginesInUse() { + var e3; + const t3 = []; + if (!l.default.isEmpty(this.nluMetaData.slotsToGrammarsMapping)) { + for (const i3 in this.nluMetaData.slotsToGrammarsMapping) { + const n3 = null === (e3 = this.nluMetaData.slotsToGrammarsMapping[i3]) || void 0 === e3 ? void 0 : e3.sttEngine; + t3.includes(n3) || t3.push(n3); + } + return t3; + } + return []; + } + get nluSettingsHaveUnsavedChanges() { + return !this.isReadOnly && r2.__classPrivateFieldGet(this, n2, "f"); + } + set nluSettingsHaveUnsavedChanges(e3) { + r2.__classPrivateFieldSet(this, n2, e3, "f"), A.fireEvent(this, f.nluSettingsHaveUnsavedChangesChanged); + } + setBotFlowNluSettings(e3) { + this.botFlowSettings.loadSettings(null == e3 ? void 0 : e3.nluDomainId, null == e3 ? void 0 : e3.nluDomainVersionId, void 0); + } + postCreate(e3) { + return r2.__awaiter(this, void 0, void 0, function* () { + var t3; + e3 || (e3 = {}); + let i3 = null === (t3 = e3.nluVersionTemplate) || void 0 === t3 ? void 0 : t3.templateObject; + i3 || (i3 = l.default.findWhere(v.templates, { id: v.nluVersionIds.blankBot }).templateObject), this.nluMetaData.setRawNluAndCompressionFormat(i3, S.default.compressionFormats.none), this.botFlowSettings.setNluDomainInfo(e3.createdNluDomainId || null, e3.createdEngineVersion || null), this.botFlowSettings.nluDomainVersionId = null, l.default.isBoolean(e3.virtualAgentEnabled) && (this.botFlowSettings.virtualAgentEnabled = e3.virtualAgentEnabled); + }); + } + getSaveAsConfig(e3) { + return r2.__awaiter(this, void 0, void 0, function* () { + var t3, i3, n3; + const r3 = y.getStringifiedConfiguration(this); + let o2 = JSON.parse(r3); + return o2 = yield this.preExport(o2), o2.botFlowSettings.nluDomainId = null === (i3 = null === (t3 = e3.nluInfo) || void 0 === t3 ? void 0 : t3.domain) || void 0 === i3 ? void 0 : i3.id, o2.botFlowSettings.engineVersion = null === (n3 = e3.nluInfo) || void 0 === n3 ? void 0 : n3.engineVersion, delete o2.botFlowSettings.nluDomainVersionId, { newConfig: y.stringifyConfig(o2) }; + }); + } + updateNluIdsInConfig(e3, t3, i3, n3, r3, o2, a2) { + var s2, u2, d2, c2, p2, _2, h2, m2; + if (e3.botFlowSettings || (e3.botFlowSettings = {}), e3.botFlowSettings.nluDomainId = t3, e3.botFlowSettings.engineVersion = i3, e3.botFlowSettings.nluDomainVersionId = n3, e3.nluMetaData.archNlu && e3.nluMetaData.archNlu.id !== t3 && (e3.nluMetaData.archNlu.id = t3), l.default.isArray(null === (s2 = e3.manifest) || void 0 === s2 ? void 0 : s2.nluDomain)) if (e3.manifest.nluDomain.length > 1) this.topic.error("why is there more than one nluDomain on the manifest?"); + else { + const i4 = null === (d2 = null === (u2 = e3.manifest) || void 0 === u2 ? void 0 : u2.nluDomain) || void 0 === d2 ? void 0 : d2[0]; + i4 && (i4.id = t3, i4.name = r3, i4.version = n3); + } + if (a2 && l.default.isArray(null === (c2 = e3.manifest) || void 0 === c2 ? void 0 : c2.language) && (e3.manifest.language = [{ id: a2 }]), (null === (_2 = null === (p2 = e3.uiMetaData) || void 0 === p2 ? void 0 : p2.nluDomains) || void 0 === _2 ? void 0 : _2.length) > 1) this.topic.error("why is there more than one nluDomain in uiMetaData?"); + else { + const i4 = null === (m2 = null === (h2 = e3.uiMetaData) || void 0 === h2 ? void 0 : h2.nluDomains) || void 0 === m2 ? void 0 : m2[0]; + i4 && (i4.id = t3, i4.name = r3, i4.description = o2, a2 && (i4.language = a2)); + } + } + waitForNluTrainingCompletion(e3, t3) { + return r2.__awaiter(this, void 0, void 0, function* () { + let i3 = 0; + return C.poll(() => r2.__awaiter(this, void 0, void 0, function* () { + return u.getNluDomainVersion(e3, t3); + }), (e4) => { + if (i3++, l.default.isObject(e4)) return e4.trainingStatus === S.default.trainingStatuses.trained || e4.trainingStatus === S.default.trainingStatuses.error || e4.trainingStatus === S.default.trainingStatuses.untrained && i3 >= 3; + }, 1500, 60); + }); + } + postScriptingCreateFlowAsync(e3) { + var t3; + if (l.default.isObject(e3)) { + this.cachedCreationDataFromScripting = e3; + const i3 = null === (t3 = null == e3 ? void 0 : e3.nluVersionTemplate) || void 0 === t3 ? void 0 : t3.templateObject; + if (i3) { + const t4 = m.nluDomainManager.checkNluDomainVersionJson(i3, this.supportsNluIntents); + if (t4) throw `An invalid Natural Language Understanding configuration was supplied. Error: ${t4}`; + if (!v.checkIsoLanguageIsSupportedByTemplate(this.languages.defaultLanguage, i3)) throw `The Natural Language Understanding configuration's language of ${i3.language} is not compatible with the flow's language of ${this.languages.defaultLanguage}.`; + const n3 = new J(i3); + m.nluDomainManager.addFakeNluDomain(n3, this), this.setBotFlowNluSettings({ nluDomainId: m.nluDomainManager.getFakeNonCreatedNluDomainId(this), nluDomainVersionId: m.nluDomainManager.fakeNonCreatedNluDomainVersionId }), this.nluMetaData.updateIntents(this.botFlowSettings.nluDomain), this.nluMetaData.updateDynamicSlotTypes(this.botFlowSettings.nluDomain), this.nluMetaData.updateDynamicTimeslotTypes(this.botFlowSettings.nluDomain), this.nluMetaData.updateMutedUtteranceIds((null == e3 ? void 0 : e3.mutedUtterances) || []); + } + } + } + preExport(e3, t3) { + const i3 = Object.create(null, { preExport: { get: () => super.preExport } }); + return r2.__awaiter(this, void 0, void 0, function* () { + var n3, r3; + let o2; + if (e3 = yield i3.preExport.call(this, e3, t3), !this.nluMetaData.rawNlu && (null === (n3 = this.botFlowSettings.nluDomain) || void 0 === n3 ? void 0 : n3.isFake) ? (o2 = this.botFlowSettings.nluDomain.model, (null == t3 ? void 0 : t3.isForFlowYaml) || (e3.nluMetaData.rawNlu = o2)) : o2 = this.nluMetaData.rawNlu, (null == t3 ? void 0 : t3.isForFlowYaml) && l.default.isObject(o2)) { + e3[this.wrappedYamlName].settingsNaturalLanguageUnderstanding = {}; + const i4 = e3[this.wrappedYamlName].settingsNaturalLanguageUnderstanding, n4 = new J(o2).getConfiguration(e3, t3); + i4.nluDomainVersion = n4, e3[this.wrappedYamlName].settingsNaturalLanguageUnderstanding = { nluDomainVersion: n4, mutedUtterances: null === (r3 = this.nluMetaData.intentHealthInfo) || void 0 === r3 ? void 0 : r3.mutedUtterances }; + } + return e3; + }); + } + preImport(e3) { + const t3 = Object.create(null, { preImport: { get: () => super.preImport } }); + return r2.__awaiter(this, void 0, void 0, function* () { + var i3, n3, r3; + yield t3.preImport.call(this, e3); + const o2 = {}; + if (null === (i3 = null == e3 ? void 0 : e3.nluMetaData) || void 0 === i3 ? void 0 : i3.rawNlu) { + let t4; + const i4 = e3.nluMetaData.rawNlu; + t4 = l.default.isObject(i4) ? i4 : this.nluMetaData.unpackRawNlu(e3.nluMetaData), this.cachedCreationDataFromScripting = { nluVersionTemplate: { templateObject: t4 } }; + } + let a2; + e3.defaultLanguage !== this.defaultLanguage && (o2.oldLanguage = e3.defaultLanguage, a2 = this.defaultLanguage, e3.supportedLanguages = [a2], e3.supportedLanguageOptions = [{ language: a2 }], e3.defaultLanguage = a2); + const s2 = this.botFlowSettings.nluDomainId, u2 = this.botFlowSettings.engineVersion, d2 = null === (n3 = this.botFlowSettings.nluDomain) || void 0 === n3 ? void 0 : n3.name, c2 = null === (r3 = this.botFlowSettings.nluDomain) || void 0 === r3 ? void 0 : r3.description, p2 = this.botFlowSettings.nluDomainVersionId; + return this.updateNluIdsInConfig(e3, s2, u2, p2, d2, c2, a2), o2; + }); + } + postImport(e3, t3, i3) { + const n3 = Object.create(null, { postImport: { get: () => super.postImport } }); + return r2.__awaiter(this, void 0, void 0, function* () { + if (yield n3.postImport.call(this, t3, e3), this._nluWbMessageProcessingShouldCacheFlowConfig = false, t3 || this.updateWorkbench(), e3.oldLanguage) { + const t4 = d.getDisplayName(e3.oldLanguage), i4 = d.getDisplayName(this.defaultLanguage); + f.emitter.emit(f.alert, { message: (0, s.sprintf)(z.flow.operations.load.importSupportedLanguageMismatch, this.definition.typeDisplayName, i4, t4), type: _.AlertTypeEnum.info }); + } + }); + } + processNluWorkbenchMessage(e3) { + if (e3) { + if (this.nluMetaData.currentWorkbenchMessage = e3, this.intentsSettings && N.validateItem(this.intentsSettings), N.validateItem(this.slotSettings), N.validateItem(this.learningSettings), N.validateItem(this.slotTypeSettings), this.nluMetaData.setRawNluFromWorkbench(e3.rawNlu), this.nluMetaData.archNlu = e3.archNlu, l.default.isObject(null == e3 ? void 0 : e3.archNlu)) { + const t3 = this.parentFlow.variableGroup.getSlotVariables(), i3 = this.parentFlow.variableGroup.getVariableIds(t3), n3 = this.parentFlow.variableGroup.getVariableModelTypes(t3); + e3.archNlu.id = this.botFlowSettings.nluDomainId; + const r3 = m.nluDomainManager.addItem(e3.archNlu, true), o2 = this.nluMetaData.updateDynamicSlotTypes(), a2 = this.nluMetaData.updateDynamicTimeslotTypes(); + this.nluMetaData.updateListPickerMappings(e3.listPickerMappings), this.nluMetaData.updateIntents(r3), this.hasIntentTaskMappings && this.nluMetaData.updateIntentTaskMappings(e3.intentTaskMappings), this.supportsGrammars && this.nluMetaData.updateSlotGrammarMappings(e3.slotGrammarMappings), this.nluMetaData.setIntentHealthInfo(e3.intentHealthInfo), this.nluMetaData.setNluGeneratedInputInfo(e3.nluGeneratedInputInfo); + const s2 = this.parentFlow.variableGroup.getSlotVariables(), u2 = this.parentFlow.variableGroup.getVariableIds(s2), d2 = this.parentFlow.variableGroup.getVariableModelTypes(s2); + null == s2 || s2.forEach((e4) => { + e4.isSecure && N.validateItem(e4, true); + }), l.default.isEqual(i3, u2) && l.default.isEqual(n3, d2) && !this.hasIntentTaskMappings || this.debouncedValidateFlow(), f.emitter.emit(f.nluUpdatedByWorkbench), (o2 || a2) && this.updateWorkbenchDynamicSlotTypesUpdated(); + } + this._nluWbMessageProcessingShouldCacheFlowConfig && (this._nluWbMessageProcessingShouldCacheFlowConfig = false, y.cacheConfiguration(this, true)); + } + } + updateBotSessionViewer() { + f.emitter.emit(f.botSessionViewerUpdated); + } + updateWorkbenchDynamicSlotTypesUpdated() { + this.updateWorkbench(I.NluUpdateType.dynamicSlotTypes); + } + updateWorkbench(e3 = I.NluUpdateType.nluUpdated, t3) { + this && !this.isDestroyedOrDestroying && (t3 ? (this._pendingUpdateWorkbenchTimeoutId && (clearTimeout(this._pendingUpdateWorkbenchTimeoutId), this._pendingUpdateWorkbenchTimeoutId = void 0), this._pendingUpdateWorkbenchTimeoutId = setTimeout(() => { + this._pendingUpdateWorkbenchTimeoutId = void 0, f.emitter.emit(f.nluInfoUpdatedForWorkbench, this, e3); + }, t3)) : f.emitter.emit(f.nluInfoUpdatedForWorkbench, this, e3)); + } + get areFlowFilterPreviewOptionsAvailable() { + return this.definition.supportsMoreThanOneOutputMode || this.definition.supportsMoreThanOneLanguage; + } + getFlowFilterPreviewOptionsExpressionDisplayOptions(e3) { + var t3; + return e3.isBuilderMode && !this.areFlowFilterPreviewOptionsAvailable && (c.isMatch(e3.type, p.globalTypes.communication, c.settings.exact) || c.isMatch(e3.type, p.globalTypes.string, c.settings.exact)) ? { richSummary: true } : e3.isBuilderMode && !(null === (t3 = this.flowViewFilterOptions) || void 0 === t3 ? void 0 : t3.enabled) && c.isMatch(e3.type, p.globalTypes.boolean, c.settings.exact) ? {} : super.getFlowFilterPreviewOptionsExpressionDisplayOptions(e3); + } + postSave(e3, t3) { + return r2.__awaiter(this, void 0, void 0, function* () { + var i3, n3, r3; + const o2 = null === (i3 = e3.nluInfo.domain) || void 0 === i3 ? void 0 : i3.id, a2 = e3.nluInfo.engineVersion, s2 = null === (n3 = e3.nluInfo.version) || void 0 === n3 ? void 0 : n3.id; + o2 && this.botFlowSettings.setNluDomainInfo(o2, a2); + const l2 = this.botFlowSettings.nluDomainVersionId; + s2 && (this.botFlowSettings.nluDomainVersionId = s2); + const u2 = s2 && s2 !== l2; + if (u2 && (this.nluMetaData.trainingStatus = S.default.trainingStatuses.unknown, (0, T.isFeatureAvailable)(O.default.botFlowsIntentHealthUIFeature) && (this.nluMetaData.rawNlu = null === (r3 = e3.nluInfo) || void 0 === r3 ? void 0 : r3.nluData)), this._nluWbMessageProcessingShouldCacheFlowConfig = true, this.updateWorkbench(), this.updateBotSessionViewer(), u2) if (null == t3 ? void 0 : t3.shouldAwaitNluTraining) { + const e4 = yield this.waitForNluTrainingCompletion(o2, s2); + this._processLastPolledNluDomainVersion(e4); + } else this.waitForNluTrainingCompletion(o2, s2).then((e4) => { + this._processLastPolledNluDomainVersion(e4); + }, (e4) => { + let t4; + try { + t4 = JSON.parse(JSON.stringify(e4)); + } catch (e5) { + } + 403 === (null == t4 ? void 0 : t4._status) ? this.topic.warning(`Error waiting for NLU training completion: '${e4}'`) : this.topic.error(`Error waiting for NLU training completion: '${e4}'`); + }); + }); + } + _processLastPolledNluDomainVersion(e3) { + e3 || this.topic.error("No lastPolledNluDomainVersion passed into processLastPolledNluDomainVersion"), this.nluMetaData.trainingStatus = e3.trainingStatus, e3.trainingStatus === S.default.trainingStatuses.error && f.emitter.emit(f.alert, { message: z.bot.nluTrainingFailed, type: _.AlertTypeEnum.error }), this.updateWorkbench(); + } + _initializeDesignTime() { + if (super._initializeDesignTime(), this.addAutoCleanedUpSubscription(this.info.newModelLoaded$.pipe((0, Y.skip)(1)).subscribe(() => { + this.debouncedValidateFlow(); + })), this.hasIntentTaskMappings) { + const e3 = (e4, t3) => { + t3 && t3.isTask && e4 === this && this.updateWorkbench(I.NluUpdateType.taskUpdate); + }; + this.addAutoCleanedUpEventSinkWatch(f.containerListChanged, this, e3), this.addAutoCleanedUpEventSinkWatch(f.taskNameChanged, this, e3); + } + this.addAutoCleanedUpEventSinkWatch(f.supportedLanguagesChanged, this.parentFlow.languages, () => this._configureNluLanguageVersionsForScripting()); + } + _configureNluLanguageVersionsForScripting() { + var e3, t3; + const i3 = a.LanguageVersionsUtil.ensureLanguageVersions(this.nlu, this.parentFlow.languages.supportedLanguages); + i3 && this.nluMetaData.setRawNluAndCompressionFormat(i3, S.default.compressionFormats.none), (null === (t3 = null === (e3 = this.cachedCreationDataFromScripting) || void 0 === e3 ? void 0 : e3.nluVersionTemplate) || void 0 === t3 ? void 0 : t3.templateObject) && (this.cachedCreationDataFromScripting.nluVersionTemplate.templateObject = a.LanguageVersionsUtil.ensureLanguageVersions(this.cachedCreationDataFromScripting.nluVersionTemplate.templateObject, this.parentFlow.languages.supportedLanguages)); + } + get nlu() { + var e3, t3, i3; + let n3 = null === (e3 = this.nluMetaData) || void 0 === e3 ? void 0 : e3.rawNlu; + return n3 || (n3 = null === (i3 = null === (t3 = this.botFlowSettings) || void 0 === t3 ? void 0 : t3.nluDomain) || void 0 === i3 ? void 0 : i3.model), n3; + } + get hasAISlotType() { + var e3, t3; + return !!(null === (t3 = null === (e3 = this.nlu) || void 0 === e3 ? void 0 : e3.entityTypes) || void 0 === t3 ? void 0 : t3.length) && this.nlu.entityTypes.some((e4) => o.EntityUtil.isEntityTypeOfTypeAI(e4)); + } + getAllSlotNames() { + const e3 = []; + return l.default.each(o.EntityUtil.getEntities(this.nlu), (t3) => { + t3.name && e3.push(t3.name); + }), e3; + } + getAvailableSlotNames(e3, t3) { + return Array.from(this.getSlotToSlotHandlingMap(e3, t3).keys()); + } + getSlotToSlotTypeMap(e3, t3) { + const i3 = /* @__PURE__ */ new Map(), n3 = this.getSlotToSlotHandlingMap(e3, t3); + return l.default.each(o.EntityUtil.getEntities(this.nlu), (e4) => { + n3.get(e4.name) && i3.set(e4.name, e4.type); + }), i3; + } + getAllSlotsToSlotHandlingMap() { + return this.getSlotToSlotHandlingMap(true, true); + } + getSlotToSlotHandlingMap(e3, t3) { + if (!e3 && !t3) return /* @__PURE__ */ new Map(); + const i3 = this._getFlowManagedSlotToSlotHandlingMap() || /* @__PURE__ */ new Map(); + if (!e3) return i3; + const n3 = /* @__PURE__ */ new Map(); + if (l.default.each(o.EntityUtil.getEntities(this.nlu), (e4) => { + if (e4.name) { + const r3 = i3.get(e4.name); + if (r3) { + if (!t3) return; + n3.set(e4.name, r3); + } else n3.set(e4.name, b.SlotHandlingType.standardSlot); + } + }), o.IntentUtil.hasIntents(this.nlu)) for (const e4 of o.IntentUtil.getIntentNames(this.nlu)) l.default.each(o.IntentUtil.getIntentEntityTypeBindings(this.nlu, e4), (e5) => { + if (e5.entityName) { + const r3 = i3.get(e5.entityName); + if (r3) { + if (!t3) return; + n3.set(e5.entityName, r3); + } else n3.set(e5.entityName, b.SlotHandlingType.standardSlot); + } + }); + return n3; + } + _getFlowManagedSlotToSlotHandlingMap() { + } + updateNluEngineVersion(e3) { + this.botFlowSettings.engineVersion = e3; + } + canAddLanguage() { + const e3 = super.canAddLanguage(); + return 0 === this.supportedLanguageOptions.length ? e3 : e3 && this.botFlowSettings.allowsMoreThanOneSupportedLanguage; + } + get _canOnlyAddLanguageInAnotherFlowInstance() { + return !this.botFlowSettings.allowsMoreThanOneSupportedLanguage || super._canOnlyAddLanguageInAnotherFlowInstance; + } + } + t2.NluFlowViewModel = $, n2 = /* @__PURE__ */ new WeakMap(); + }, 31151: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importDefault(i2(92140)), o = n2.__importStar(i2(17498)), a = n2.__importStar(i2(43011)), s = i2(12179), l = n2.__importDefault(i2(17102)), u = i2(27862), d = i2(47957); + function c(e3) { + return { actionName: e3.info ? e3.info.name : void 0, id: e3.id, name: e3.name }; + } + function p(e3) { + const t3 = []; + if (r2.default.each(e3, (e4) => { + t3.push(c(e4.referenceElement.parent)); + }), t3.length) return t3; + } + function _(e3, t3, i3) { + const n3 = o.getDependenciesForFlow(e3), a2 = r2.default.groupBy(n3, (e4) => e4.type.value); + r2.default.each(a2, (e4, i4) => { + t3[i4] = []; + }); + const s2 = r2.default.groupBy(n3, (e4) => `${e4.type.value}-${e4.id}-${e4.version}`); + r2.default.each(s2, (e4) => { + const n4 = r2.default.pick(e4[0], ["name", "id", "version"]); + i3 || (n4.context = [], r2.default.each(e4, (e5) => { + e5.consumer && n4.context.push(c(e5.consumer)), e5.extraPropertiesObject && r2.default.each(e5.extraPropertiesObject, (e6, t4) => { + r2.default.isArray(n4[t4]) || (n4[t4] = []), n4[t4].includes(e6) || n4[t4].push(e6); + }); + })), t3[e4[0].type.value].push(n4); + }); + } + function h(e3, t3) { + if (e3.supportsLanguages) { + const i3 = e3 ? e3.languages.supportedLanguages : []; + i3.length > 0 && (t3[u.Language.value] = [], r2.default.each(i3, (e4) => { + t3[u.Language.value].push({ id: e4 }); + })); + } + } + function m(e3, t3) { + var i3; + if (e3.supportsGrammars) { + const n3 = (null === (i3 = e3.grammarsInUse) || void 0 === i3 ? void 0 : i3.length) ? e3.grammarsInUse : []; + t3[u.Grammar.value] || (t3[u.Grammar.value] = []), n3.length > 0 && r2.default.each(n3, (e4) => { + e4.id && !t3[u.Grammar.value].some((t4) => t4.id === e4.id) && t3[u.Grammar.value].push({ id: e4.id }); + }); + } + } + function g(e3, t3) { + var i3; + if (e3.supportsGrammars) { + const n3 = (null === (i3 = e3.speechToTextEnginesInUse) || void 0 === i3 ? void 0 : i3.length) ? e3.speechToTextEnginesInUse : []; + t3[u.SpeechToTextEngine.value] || (t3[u.SpeechToTextEngine.value] = []), n3.length > 0 && r2.default.each(n3, (e4) => { + r2.default.isUndefined(e4) || t3[u.SpeechToTextEngine.value].some((t4) => t4.id === e4.id) || t3[u.SpeechToTextEngine.value].push({ name: e4.name, id: e4.id }); + }); + } + } + class f extends l.default { + constructor() { + super(...arguments), this.modelPropertyName = "manifest"; + } + get className() { + return "DependenciesViewModel"; + } + get isDependenciesNode() { + return true; + } + get nodeGuxIcon() { + return "fa/life-ring-regular"; + } + get id() { + return "dependencies"; + } + get showInFlowSize() { + return false; + } + get helpTopic() { + return s.helpTopics.treeNodes.dependencies; + } + getConfiguration(e3, t3) { + try { + if (this.parentFlow.isEmbeddedFlow) return; + e3.manifest = {}, o.updateDependencies(this.parentFlow, true), _(this.parentFlow, e3.manifest), h(this.parentFlow, e3.manifest), m(this.parentFlow, e3.manifest), g(this.parentFlow, e3.manifest), (function(e4, t4) { + const i3 = []; + t4[u.UserPrompt.value] = i3, r2.default.each(a.userPromptListManager.items, (e5) => { + e5.visibleUsages && e5.visibleUsages.length > 0 && i3.push({ context: p(e5.visibleUsages), id: e5.id, name: e5.displayName }); + }); + const n3 = []; + t4[u.SystemPrompt.value] = n3, r2.default.each(a.systemPromptListManager.items, (e5) => { + e5.visibleUsages && e5.visibleUsages.length > 0 && n3.push({ context: p(e5.visibleUsages), id: e5.id, name: e5.displayName }); + }); + })(this.parentFlow, e3.manifest); + } catch (t4) { + e3.manifest = void 0, console.error(t4); + } + } + getValidationManifest() { + const e3 = {}; + return o.updateDependencies(this.parentFlow, true), _(this.parentFlow, e3, true), (function(e4, t3) { + o.getUnverifiedPrompts(e4).forEach((e5) => { + t3[e5.type.value] || (t3[e5.type.value] = []), t3[e5.type.value].push({ name: e5.name, id: e5.id }); + }); + })(this.parentFlow, e3), h(this.parentFlow, e3), m(this.parentFlow, e3), g(this.parentFlow, e3), (function(e4, t3) { + const i3 = o.getValidationOnlyItems(e4); + r2.default.each(i3, (e5, i4) => { + !(function(e6, t4, i5) { + i5[t4] || (i5[t4] = []), r2.default.each(e6, (e7) => { + r2.default.findWhere(i5[t4], { id: e7.id }) || r2.default.findWhere(i5[t4], { name: e7.name }) || i5[t4].push(e7); + }); + })(e5, i4, t3); + }); + })(this.parentFlow, e3), e3; + } + getDisplayName() { + return d.customNodes.dependencies.label; + } + } + t2.default = f; + }, 31178: (e2, t2, i2) => { + const n2 = i2(92140), r2 = i2(57731), o = {}; + function a(e3, t3) { + o[e3] = this, a.baseConstructor.apply(this, arguments); + } + r2.extend(a, "Digit"), a.getInstance = function(e3) { + return o[e3 || 0] || o[0]; + }, a.Zero = new a(0, "0"), a.One = new a(1, "1"), a.Two = new a(2, "2"), a.Three = new a(3, "3"), a.Four = new a(4, "4"), a.Five = new a(5, "5"), a.Six = new a(6, "6"), a.Seven = new a(7, "7"), a.Eight = new a(8, "8"), a.Nine = new a(9, "9"), a.Pound = new a(10, "#"), a.Star = new a(11, "*"), Object.defineProperties(a.prototype, { toJSON: { value: function() { + return this.value; + } }, getConfiguration: { value: function(e3, t3) { + if (t3?.isForFlowYaml) { + if (n2.isNullOrUndefined(this.value)) return null; + let e4 = this.value; + return 10 === this.value ? e4 = "#" : 11 === this.value && (e4 = "*"), `digit_${e4}`; + } + return this; + } } }), e2.exports = a; + }, 31245: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.observeNotification = t2.Notification = t2.NotificationKind = void 0; + var n2, r2 = i2(44885), o = i2(61587), a = i2(26680), s = i2(10281); + (n2 = t2.NotificationKind || (t2.NotificationKind = {})).NEXT = "N", n2.ERROR = "E", n2.COMPLETE = "C"; + var l = (function() { + function e3(e4, t3, i3) { + this.kind = e4, this.value = t3, this.error = i3, this.hasValue = "N" === e4; + } + return e3.prototype.observe = function(e4) { + return u(this, e4); + }, e3.prototype.do = function(e4, t3, i3) { + var n3 = this, r3 = n3.kind, o2 = n3.value, a2 = n3.error; + return "N" === r3 ? null == e4 ? void 0 : e4(o2) : "E" === r3 ? null == t3 ? void 0 : t3(a2) : null == i3 ? void 0 : i3(); + }, e3.prototype.accept = function(e4, t3, i3) { + var n3; + return s.isFunction(null === (n3 = e4) || void 0 === n3 ? void 0 : n3.next) ? this.observe(e4) : this.do(e4, t3, i3); + }, e3.prototype.toObservable = function() { + var e4 = this, t3 = e4.kind, i3 = e4.value, n3 = e4.error, s2 = "N" === t3 ? o.of(i3) : "E" === t3 ? a.throwError(function() { + return n3; + }) : "C" === t3 ? r2.EMPTY : 0; + if (!s2) throw new TypeError("Unexpected notification kind " + t3); + return s2; + }, e3.createNext = function(t3) { + return new e3("N", t3); + }, e3.createError = function(t3) { + return new e3("E", void 0, t3); + }, e3.createComplete = function() { + return e3.completeNotification; + }, e3.completeNotification = new e3("C"), e3; + })(); + function u(e3, t3) { + var i3, n3, r3, o2 = e3, a2 = o2.kind, s2 = o2.value, l2 = o2.error; + if ("string" != typeof a2) throw new TypeError('Invalid notification, missing "kind"'); + "N" === a2 ? null === (i3 = t3.next) || void 0 === i3 || i3.call(t3, s2) : "E" === a2 ? null === (n3 = t3.error) || void 0 === n3 || n3.call(t3, l2) : null === (r3 = t3.complete) || void 0 === r3 || r3.call(t3); + } + t2.Notification = l, t2.observeNotification = u; + }, 31278: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.ResponseViewModel = void 0; + const n2 = i2(31635), r2 = n2.__importDefault(i2(92140)), o = n2.__importDefault(i2(3916)), a = i2(43212), s = i2(89125), l = i2(6225); + class u extends a.BaseConfigurationListViewModel { + constructor(e3) { + super(e3), this._model.substitutionsSchema && this.loadSubstitutionSchema(this._model.substitutionsSchema); + } + get className() { + return "ResponseViewModel"; + } + get library() { + return this._model.libraries && this._model.libraries[0]; + } + get libraries() { + return this._model.libraries || []; + } + get form() { + return new s.FormViewModel(this._model.form); + } + get messagingTemplate() { + return new l.MessagingTemplateViewModel(this._model.messagingTemplate); + } + getConfiguration() { + return { name: this.name, library: this.library, responseType: this.responseType, substitutions: this._model.substitutionsSchema }; + } + get id() { + return this._model.id; + } + get label() { + return this._model.name || ""; + } + get name() { + return this._model.name; + } + get responseType() { + return this._model.responseType; + } + hasLibrary(e3) { + return e3 && r2.default.findWhere(this.libraries, { id: e3.id }); + } + loadSubstitutionSchema(e3) { + this.substitutions = o.default.createSchemaPropertyList(e3.properties); + } + } + t2.ResponseViewModel = u; + }, 31349: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(21345)), r2 = i2(30801); + class o extends n2.default { + constructor(e3) { + super(e3), this._wrapupCode = this.coreFactory.createArchValueFromExpression(e3.wrapupCode); + } + get _actionTypeId() { + return r2.setWrapupCodeActionType; + } + get displayTypeName() { + return this._scriptingName; + } + get isArchActionSetWrapupCode() { + return true; + } + get wrapupCode() { + return this._wrapupCode; + } + } + t2.default = o; + }, 31375: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = i2(96618), o = i2(94453), a = n2.__importDefault(i2(66700)), s = i2(31145); + class l extends s.NluFlowViewModel { + get hasIntentTaskMappings() { + return true; + } + get className() { + return "DigitalBotFlowViewModel"; + } + get isDigitalBotFlow() { + return true; + } + get stateViewModel() { + return a.default; + } + get type() { + return r2.flowTypes.flowTypeDigitalBot; + } + get wrappedYamlName() { + return "digitalBot"; + } + get statesYamlPropertyName() { + return "bots"; + } + _createInitialActions() { + return n2.__awaiter(this, void 0, void 0, function* () { + return (0, o.addBotFlowActions)(this), this; + }); + } + canAddLanguage() { + return this.botFlowSettings.allowsMoreThanOneSupportedLanguage || this.topic.traceOnce("DigitalBotFlow engine version is below 3.0", (e3) => e3.warning("Wait a minute, how is this Digital Bot Flow engine version below 3.0? That's umpossible!")), super.canAddLanguage(); + } + } + t2.default = l; + }, 31485: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(54063)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "emailAttachmentCollection"; + } + get displayTypeName() { + return "ArchValueEmailAttachmentCollection"; + } + get isArchValueEmailAttachmentCollection() { + return true; + } + } + t2.default = r2; + }, 31498: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(67432)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get isVideoViewModel() { + return true; + } + } + t2.default = r2; + }, 31517: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importDefault(i2(92140)), o = n2.__importDefault(i2(6953)), a = n2.__importDefault(i2(78432)), s = n2.__importDefault(i2(94225)), l = n2.__importDefault(i2(4648)), u = i2(10798), { isoLanguages: d } = i2(24812), c = n2.__importDefault(i2(67336)); + class p extends c.default { + constructor(e3) { + super(e3); + const t3 = this._infoParmCtor("coreIsoLanguageViewModel"); + this._checkItem(t3, !e3.id, "the specified core isoLanguage does not have an id specified"), this._checkItem(t3, !d[e3.id.toLowerCase()], "the specified core isoLanguage does not have a valid id"); + } + get displayTypeName() { + return "ArchLanguage"; + } + getTtsEnginesForFlowType(e3) { + return this._ensureSessionIsConnected(this._infoMethod("getTtsEnginesForFlowType"), s.default), this._checkItemIsValidLiteralStringEnum(this._infoParm("flowType", "getTtsEnginesForFlowType"), e3, a.default.FLOW_TYPES_ALL), (0, u.isFeatureAvailable)(l.default.flexibleTtsSelection) ? o.default.getSelectableEnginesForLanguageAndFlowTypeOrTypes(this.tag, e3).map((e4) => this.coreFactory.createArchWrapper(e4)) : o.default.getEnginesForLanguageAndFlowTypeOrTypes(this.tag, e3).map((e4) => this.coreFactory.createArchWrapper(e4)); + } + getDefaultTtsEngine() { + this._ensureSessionIsConnected(this._infoMethod("getDefaultEngineForLanguage"), s.default); + const e3 = o.default.getDefaultEngineForLanguage(this._getCoreViewModel().id); + if (e3) return this.coreFactory.createArchWrapper(e3); + } + getDefaultTtsEngineVoice() { + this._ensureSessionIsConnected(this._infoMethod("getDefaultEngineVoiceForLanguage"), s.default); + const e3 = this.getDefaultTtsEngine(); + return e3 ? e3.getDefaultVoiceForLanguage(this) : void 0; + } + get hasFlowCreationTTS() { + return true === this._getCoreViewModel().hasFlowCreationTTS; + } + get isArchLanguage() { + return true; + } + isRuntimeDataPlaybackSupported(e3) { + return true === this._getCoreViewModel().getSupportsAudioDataPlaybackForFlowType(e3); + } + isSpeechRecSupported(e3) { + return true === this._getCoreViewModel().getSupportsSpeechRecForFlowType(e3); + } + isTextToSpeechSupported(e3) { + return true === this._getCoreViewModel().getSupportsTTSPlaybackForFlowType(e3); + } + get label() { + return this._getCoreViewModel().text; + } + get logStr() { + if (!this._getCoreViewModel()) return this.logStrTypeOnly; + const e3 = []; + return this._appendLogStrLabel(e3, this.label), this._appendLogStrTag(e3, this.tag), this._appendLogStrType(e3, this.displayTypeName), this._createLogStrFromParts(e3); + } + get supportsCase() { + return this.supportsCaseArticle || this.supportsCaseAccusative || this.supportsCaseDative || this.supportsCaseGenitive || this.supportsCaseNominative; + } + get supportsCaseArticle() { + return void 0 !== this._getCoreViewModel().supportedLanguageContexts && true === this._getCoreViewModel().supportedLanguageContexts.caseArticle; + } + get supportsCaseAccusative() { + return void 0 !== this._getCoreViewModel().supportedLanguageContexts && true === this._getCoreViewModel().supportedLanguageContexts.caseAccusative; + } + get supportsCaseDative() { + return void 0 !== this._getCoreViewModel().supportedLanguageContexts && true === this._getCoreViewModel().supportedLanguageContexts.caseDative; + } + get supportsCaseGenitive() { + return void 0 !== this._getCoreViewModel().supportedLanguageContexts && true === this._getCoreViewModel().supportedLanguageContexts.caseGenitive; + } + get supportsCaseNominative() { + return void 0 !== this._getCoreViewModel().supportedLanguageContexts && true === this._getCoreViewModel().supportedLanguageContexts.caseNomninative; + } + get supportsGender() { + return this.supportsGenderFeminine || this.supportsGenderNeuter || this.supportsGenderMasculine || this.supportsGenderCommon; + } + get supportsGenderCommon() { + return void 0 !== this._getCoreViewModel().supportedLanguageContexts && true === this._getCoreViewModel().supportedLanguageContexts.genderCommon; + } + get supportsGenderFeminine() { + return void 0 !== this._getCoreViewModel().supportedLanguageContexts && true === this._getCoreViewModel().supportedLanguageContexts.genderFeminine; + } + get supportsGenderMasculine() { + return void 0 !== this._getCoreViewModel().supportedLanguageContexts && true === this._getCoreViewModel().supportedLanguageContexts.genderMasculine; + } + get supportsGenderNeuter() { + return void 0 !== this._getCoreViewModel().supportedLanguageContexts && true === this._getCoreViewModel().supportedLanguageContexts.genderNeuter; + } + get tag() { + return this._getCoreViewModel().id; + } + get ttsEngines() { + const e3 = this._infoPropGet("ttsEngines"); + return this._ensureTtsInfoAvailable(e3, s.default), (0, u.isFeatureAvailable)(l.default.flexibleTtsSelection) ? r2.default.map(o.default.getSelectableEnginesForLanguage(this.tag), (e4) => this.coreFactory.createArchWrapper(e4)) : r2.default.map(o.default.getEnginesForLanguage(this.tag), (e4) => this.coreFactory.createArchWrapper(e4)); + } + } + t2.default = p; + }, 31635: (e2, t2, i2) => { + "use strict"; + i2.r(t2), i2.d(t2, { __addDisposableResource: () => F, __assign: () => o, __asyncDelegator: () => v, __asyncGenerator: () => I, __asyncValues: () => C, __await: () => O, __awaiter: () => h, __classPrivateFieldGet: () => D, __classPrivateFieldIn: () => M, __classPrivateFieldSet: () => P, __createBinding: () => g, __decorate: () => s, __disposeResources: () => x, __esDecorate: () => u, __exportStar: () => f, __extends: () => r2, __generator: () => m, __importDefault: () => w, __importStar: () => R, __makeTemplateObject: () => b, __metadata: () => _, __param: () => l, __propKey: () => c, __read: () => y, __rest: () => a, __runInitializers: () => d, __setFunctionName: () => p, __spread: () => S, __spreadArray: () => N, __spreadArrays: () => A, __values: () => T, default: () => k }); + var n2 = function(e3, t3) { + return n2 = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(e4, t4) { + e4.__proto__ = t4; + } || function(e4, t4) { + for (var i3 in t4) Object.prototype.hasOwnProperty.call(t4, i3) && (e4[i3] = t4[i3]); + }, n2(e3, t3); + }; + function r2(e3, t3) { + if ("function" != typeof t3 && null !== t3) throw new TypeError("Class extends value " + String(t3) + " is not a constructor or null"); + function i3() { + this.constructor = e3; + } + n2(e3, t3), e3.prototype = null === t3 ? Object.create(t3) : (i3.prototype = t3.prototype, new i3()); + } + var o = function() { + return o = Object.assign || function(e3) { + for (var t3, i3 = 1, n3 = arguments.length; i3 < n3; i3++) for (var r3 in t3 = arguments[i3]) Object.prototype.hasOwnProperty.call(t3, r3) && (e3[r3] = t3[r3]); + return e3; + }, o.apply(this, arguments); + }; + function a(e3, t3) { + var i3 = {}; + for (var n3 in e3) Object.prototype.hasOwnProperty.call(e3, n3) && t3.indexOf(n3) < 0 && (i3[n3] = e3[n3]); + if (null != e3 && "function" == typeof Object.getOwnPropertySymbols) { + var r3 = 0; + for (n3 = Object.getOwnPropertySymbols(e3); r3 < n3.length; r3++) t3.indexOf(n3[r3]) < 0 && Object.prototype.propertyIsEnumerable.call(e3, n3[r3]) && (i3[n3[r3]] = e3[n3[r3]]); + } + return i3; + } + function s(e3, t3, i3, n3) { + var r3, o2 = arguments.length, a2 = o2 < 3 ? t3 : null === n3 ? n3 = Object.getOwnPropertyDescriptor(t3, i3) : n3; + if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a2 = Reflect.decorate(e3, t3, i3, n3); + else for (var s2 = e3.length - 1; s2 >= 0; s2--) (r3 = e3[s2]) && (a2 = (o2 < 3 ? r3(a2) : o2 > 3 ? r3(t3, i3, a2) : r3(t3, i3)) || a2); + return o2 > 3 && a2 && Object.defineProperty(t3, i3, a2), a2; + } + function l(e3, t3) { + return function(i3, n3) { + t3(i3, n3, e3); + }; + } + function u(e3, t3, i3, n3, r3, o2) { + function a2(e4) { + if (void 0 !== e4 && "function" != typeof e4) throw new TypeError("Function expected"); + return e4; + } + for (var s2, l2 = n3.kind, u2 = "getter" === l2 ? "get" : "setter" === l2 ? "set" : "value", d2 = !t3 && e3 ? n3.static ? e3 : e3.prototype : null, c2 = t3 || (d2 ? Object.getOwnPropertyDescriptor(d2, n3.name) : {}), p2 = false, _2 = i3.length - 1; _2 >= 0; _2--) { + var h2 = {}; + for (var m2 in n3) h2[m2] = "access" === m2 ? {} : n3[m2]; + for (var m2 in n3.access) h2.access[m2] = n3.access[m2]; + h2.addInitializer = function(e4) { + if (p2) throw new TypeError("Cannot add initializers after decoration has completed"); + o2.push(a2(e4 || null)); + }; + var g2 = (0, i3[_2])("accessor" === l2 ? { get: c2.get, set: c2.set } : c2[u2], h2); + if ("accessor" === l2) { + if (void 0 === g2) continue; + if (null === g2 || "object" != typeof g2) throw new TypeError("Object expected"); + (s2 = a2(g2.get)) && (c2.get = s2), (s2 = a2(g2.set)) && (c2.set = s2), (s2 = a2(g2.init)) && r3.unshift(s2); + } else (s2 = a2(g2)) && ("field" === l2 ? r3.unshift(s2) : c2[u2] = s2); + } + d2 && Object.defineProperty(d2, n3.name, c2), p2 = true; + } + function d(e3, t3, i3) { + for (var n3 = arguments.length > 2, r3 = 0; r3 < t3.length; r3++) i3 = n3 ? t3[r3].call(e3, i3) : t3[r3].call(e3); + return n3 ? i3 : void 0; + } + function c(e3) { + return "symbol" == typeof e3 ? e3 : "".concat(e3); + } + function p(e3, t3, i3) { + return "symbol" == typeof t3 && (t3 = t3.description ? "[".concat(t3.description, "]") : ""), Object.defineProperty(e3, "name", { configurable: true, value: i3 ? "".concat(i3, " ", t3) : t3 }); + } + function _(e3, t3) { + if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(e3, t3); + } + function h(e3, t3, i3, n3) { + return new (i3 || (i3 = Promise))(function(r3, o2) { + function a2(e4) { + try { + l2(n3.next(e4)); + } catch (e5) { + o2(e5); + } + } + function s2(e4) { + try { + l2(n3.throw(e4)); + } catch (e5) { + o2(e5); + } + } + function l2(e4) { + var t4; + e4.done ? r3(e4.value) : (t4 = e4.value, t4 instanceof i3 ? t4 : new i3(function(e5) { + e5(t4); + })).then(a2, s2); + } + l2((n3 = n3.apply(e3, t3 || [])).next()); + }); + } + function m(e3, t3) { + var i3, n3, r3, o2, a2 = { label: 0, sent: function() { + if (1 & r3[0]) throw r3[1]; + return r3[1]; + }, trys: [], ops: [] }; + return o2 = { next: s2(0), throw: s2(1), return: s2(2) }, "function" == typeof Symbol && (o2[Symbol.iterator] = function() { + return this; + }), o2; + function s2(s3) { + return function(l2) { + return (function(s4) { + if (i3) throw new TypeError("Generator is already executing."); + for (; o2 && (o2 = 0, s4[0] && (a2 = 0)), a2; ) try { + if (i3 = 1, n3 && (r3 = 2 & s4[0] ? n3.return : s4[0] ? n3.throw || ((r3 = n3.return) && r3.call(n3), 0) : n3.next) && !(r3 = r3.call(n3, s4[1])).done) return r3; + switch (n3 = 0, r3 && (s4 = [2 & s4[0], r3.value]), s4[0]) { + case 0: + case 1: + r3 = s4; + break; + case 4: + return a2.label++, { value: s4[1], done: false }; + case 5: + a2.label++, n3 = s4[1], s4 = [0]; + continue; + case 7: + s4 = a2.ops.pop(), a2.trys.pop(); + continue; + default: + if (!((r3 = (r3 = a2.trys).length > 0 && r3[r3.length - 1]) || 6 !== s4[0] && 2 !== s4[0])) { + a2 = 0; + continue; + } + if (3 === s4[0] && (!r3 || s4[1] > r3[0] && s4[1] < r3[3])) { + a2.label = s4[1]; + break; + } + if (6 === s4[0] && a2.label < r3[1]) { + a2.label = r3[1], r3 = s4; + break; + } + if (r3 && a2.label < r3[2]) { + a2.label = r3[2], a2.ops.push(s4); + break; + } + r3[2] && a2.ops.pop(), a2.trys.pop(); + continue; + } + s4 = t3.call(e3, a2); + } catch (e4) { + s4 = [6, e4], n3 = 0; + } finally { + i3 = r3 = 0; + } + if (5 & s4[0]) throw s4[1]; + return { value: s4[0] ? s4[1] : void 0, done: true }; + })([s3, l2]); + }; + } + } + var g = Object.create ? function(e3, t3, i3, n3) { + void 0 === n3 && (n3 = i3); + var r3 = Object.getOwnPropertyDescriptor(t3, i3); + r3 && !("get" in r3 ? !t3.__esModule : r3.writable || r3.configurable) || (r3 = { enumerable: true, get: function() { + return t3[i3]; + } }), Object.defineProperty(e3, n3, r3); + } : function(e3, t3, i3, n3) { + void 0 === n3 && (n3 = i3), e3[n3] = t3[i3]; + }; + function f(e3, t3) { + for (var i3 in e3) "default" === i3 || Object.prototype.hasOwnProperty.call(t3, i3) || g(t3, e3, i3); + } + function T(e3) { + var t3 = "function" == typeof Symbol && Symbol.iterator, i3 = t3 && e3[t3], n3 = 0; + if (i3) return i3.call(e3); + if (e3 && "number" == typeof e3.length) return { next: function() { + return e3 && n3 >= e3.length && (e3 = void 0), { value: e3 && e3[n3++], done: !e3 }; + } }; + throw new TypeError(t3 ? "Object is not iterable." : "Symbol.iterator is not defined."); + } + function y(e3, t3) { + var i3 = "function" == typeof Symbol && e3[Symbol.iterator]; + if (!i3) return e3; + var n3, r3, o2 = i3.call(e3), a2 = []; + try { + for (; (void 0 === t3 || t3-- > 0) && !(n3 = o2.next()).done; ) a2.push(n3.value); + } catch (e4) { + r3 = { error: e4 }; + } finally { + try { + n3 && !n3.done && (i3 = o2.return) && i3.call(o2); + } finally { + if (r3) throw r3.error; + } + } + return a2; + } + function S() { + for (var e3 = [], t3 = 0; t3 < arguments.length; t3++) e3 = e3.concat(y(arguments[t3])); + return e3; + } + function A() { + for (var e3 = 0, t3 = 0, i3 = arguments.length; t3 < i3; t3++) e3 += arguments[t3].length; + var n3 = Array(e3), r3 = 0; + for (t3 = 0; t3 < i3; t3++) for (var o2 = arguments[t3], a2 = 0, s2 = o2.length; a2 < s2; a2++, r3++) n3[r3] = o2[a2]; + return n3; + } + function N(e3, t3, i3) { + if (i3 || 2 === arguments.length) for (var n3, r3 = 0, o2 = t3.length; r3 < o2; r3++) !n3 && r3 in t3 || (n3 || (n3 = Array.prototype.slice.call(t3, 0, r3)), n3[r3] = t3[r3]); + return e3.concat(n3 || Array.prototype.slice.call(t3)); + } + function O(e3) { + return this instanceof O ? (this.v = e3, this) : new O(e3); + } + function I(e3, t3, i3) { + if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); + var n3, r3 = i3.apply(e3, t3 || []), o2 = []; + return n3 = {}, a2("next"), a2("throw"), a2("return"), n3[Symbol.asyncIterator] = function() { + return this; + }, n3; + function a2(e4) { + r3[e4] && (n3[e4] = function(t4) { + return new Promise(function(i4, n4) { + o2.push([e4, t4, i4, n4]) > 1 || s2(e4, t4); + }); + }); + } + function s2(e4, t4) { + try { + (i4 = r3[e4](t4)).value instanceof O ? Promise.resolve(i4.value.v).then(l2, u2) : d2(o2[0][2], i4); + } catch (e5) { + d2(o2[0][3], e5); + } + var i4; + } + function l2(e4) { + s2("next", e4); + } + function u2(e4) { + s2("throw", e4); + } + function d2(e4, t4) { + e4(t4), o2.shift(), o2.length && s2(o2[0][0], o2[0][1]); + } + } + function v(e3) { + var t3, i3; + return t3 = {}, n3("next"), n3("throw", function(e4) { + throw e4; + }), n3("return"), t3[Symbol.iterator] = function() { + return this; + }, t3; + function n3(n4, r3) { + t3[n4] = e3[n4] ? function(t4) { + return (i3 = !i3) ? { value: O(e3[n4](t4)), done: false } : r3 ? r3(t4) : t4; + } : r3; + } + } + function C(e3) { + if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); + var t3, i3 = e3[Symbol.asyncIterator]; + return i3 ? i3.call(e3) : (e3 = T(e3), t3 = {}, n3("next"), n3("throw"), n3("return"), t3[Symbol.asyncIterator] = function() { + return this; + }, t3); + function n3(i4) { + t3[i4] = e3[i4] && function(t4) { + return new Promise(function(n4, r3) { + !(function(e4, t5, i5, n5) { + Promise.resolve(n5).then(function(t6) { + e4({ value: t6, done: i5 }); + }, t5); + })(n4, r3, (t4 = e3[i4](t4)).done, t4.value); + }); + }; + } + } + function b(e3, t3) { + return Object.defineProperty ? Object.defineProperty(e3, "raw", { value: t3 }) : e3.raw = t3, e3; + } + var E = Object.create ? function(e3, t3) { + Object.defineProperty(e3, "default", { enumerable: true, value: t3 }); + } : function(e3, t3) { + e3.default = t3; + }; + function R(e3) { + if (e3 && e3.__esModule) return e3; + var t3 = {}; + if (null != e3) for (var i3 in e3) "default" !== i3 && Object.prototype.hasOwnProperty.call(e3, i3) && g(t3, e3, i3); + return E(t3, e3), t3; + } + function w(e3) { + return e3 && e3.__esModule ? e3 : { default: e3 }; + } + function D(e3, t3, i3, n3) { + if ("a" === i3 && !n3) throw new TypeError("Private accessor was defined without a getter"); + if ("function" == typeof t3 ? e3 !== t3 || !n3 : !t3.has(e3)) throw new TypeError("Cannot read private member from an object whose class did not declare it"); + return "m" === i3 ? n3 : "a" === i3 ? n3.call(e3) : n3 ? n3.value : t3.get(e3); + } + function P(e3, t3, i3, n3, r3) { + if ("m" === n3) throw new TypeError("Private method is not writable"); + if ("a" === n3 && !r3) throw new TypeError("Private accessor was defined without a setter"); + if ("function" == typeof t3 ? e3 !== t3 || !r3 : !t3.has(e3)) throw new TypeError("Cannot write private member to an object whose class did not declare it"); + return "a" === n3 ? r3.call(e3, i3) : r3 ? r3.value = i3 : t3.set(e3, i3), i3; + } + function M(e3, t3) { + if (null === t3 || "object" != typeof t3 && "function" != typeof t3) throw new TypeError("Cannot use 'in' operator on non-object"); + return "function" == typeof e3 ? t3 === e3 : e3.has(t3); + } + function F(e3, t3, i3) { + if (null != t3) { + if ("object" != typeof t3 && "function" != typeof t3) throw new TypeError("Object expected."); + var n3; + if (i3) { + if (!Symbol.asyncDispose) throw new TypeError("Symbol.asyncDispose is not defined."); + n3 = t3[Symbol.asyncDispose]; + } + if (void 0 === n3) { + if (!Symbol.dispose) throw new TypeError("Symbol.dispose is not defined."); + n3 = t3[Symbol.dispose]; + } + if ("function" != typeof n3) throw new TypeError("Object not disposable."); + e3.stack.push({ value: t3, dispose: n3, async: i3 }); + } else i3 && e3.stack.push({ async: true }); + return t3; + } + var L = "function" == typeof SuppressedError ? SuppressedError : function(e3, t3, i3) { + var n3 = new Error(i3); + return n3.name = "SuppressedError", n3.error = e3, n3.suppressed = t3, n3; + }; + function x(e3) { + function t3(t4) { + e3.error = e3.hasError ? new L(t4, e3.error, "An error was suppressed during disposal.") : t4, e3.hasError = true; + } + return (function i3() { + for (; e3.stack.length; ) { + var n3 = e3.stack.pop(); + try { + var r3 = n3.dispose && n3.dispose.call(n3.value); + if (n3.async) return Promise.resolve(r3).then(i3, function(e4) { + return t3(e4), i3(); + }); + } catch (e4) { + t3(e4); + } + } + if (e3.hasError) throw e3.error; + })(); + } + const k = { __extends: r2, __assign: o, __rest: a, __decorate: s, __param: l, __metadata: _, __awaiter: h, __generator: m, __createBinding: g, __exportStar: f, __values: T, __read: y, __spread: S, __spreadArrays: A, __spreadArray: N, __await: O, __asyncGenerator: I, __asyncDelegator: v, __asyncValues: C, __makeTemplateObject: b, __importStar: R, __importDefault: w, __classPrivateFieldGet: D, __classPrivateFieldSet: P, __classPrivateFieldIn: M, __addDisposableResource: F, __disposeResources: x }; + }, 31682: (e2, t2, i2) => { + "use strict"; + const n2 = i2(31635), r2 = i2(96618), o = i2(12179), a = n2.__importDefault(i2(97891)), s = i2(33381), l = n2.__importDefault(i2(9183)), u = i2(99469), d = i2(47957); + class c extends l.default { + static get managedProperties() { + return [{ createDetails: s.FlowReferenceProperty.createCreateDetails({ flowType: r2.flowTypes.flowTypeDigitalBot, supportsSpecificVersion: false }), options: u.ManagedPropertyOptions.create((e3) => e3.setUiPropertyOrder(1).setCanCreateObjectInAction(true)), property: "botFlow", yamlOptions: c.createYamlOptions("botFlow", (e3) => e3.setExportOrder(6).setPropertyName("digitalBotFlow")) }]; + } + get targetFlowType() { + return this.botFlow; + } + } + c.className = "CallDigitalBotFlowAction", c.info = a.default.createActionInfo({ actionClass: c, canBeInTask: true, helpTopic: o.helpTopics.actions.callDigitalBotFlow, modelClass: i2(90562), name: d.actions.callDigitalBotFlow, scriptingName: "ArchActionCallDigitalBotFlow" }), t2.A = c; + }, 31736: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.PermissionShiro = void 0; + const n2 = i2(31635), r2 = i2(17604), o = n2.__importDefault(i2(92140)), a = n2.__importStar(i2(97591)), s = i2(1234), l = i2(58491), u = i2(44724), d = i2(11015), c = i2(24032).getTopic("permission"), p = {}; + o.default.each(u.permissionStrings.external.externalAuthorizations, (e3) => p[e3] = true), o.default.each(u.permissionStrings.copilot.message, (e3) => p[e3] = true), p[u.permissionStrings.copilot.session.view] = true; + class _ { + constructor() { + Object.defineProperties(this, { _displayErrorString: { writable: true }, _domain: { writable: true }, _object: { writable: true }, _action: { writable: true, value: {} }, _originalShiroString: { writable: true } }); + } + static get className() { + return "PermissionShiro"; + } + get isPermissionShiro() { + return true; + } + _fromShiroString(e3) { + const t3 = e3.split(":"); + if (0 !== t3.length) { + switch (t3.length) { + case 1: + this._domain = new d.PermissionShiroValue(t3[0]), this._object = new d.PermissionShiroValue("*"), this._action = new d.PermissionShiroValue("*"); + break; + case 2: + this._domain = new d.PermissionShiroValue(t3[0]), this._object = new d.PermissionShiroValue(t3[1]), this._action = new d.PermissionShiroValue("*"); + break; + case 3: + this._domain = new d.PermissionShiroValue(t3[0]), this._object = new d.PermissionShiroValue(t3[1]), this._action = new d.PermissionShiroValue(t3[2]); + break; + default: + c.error((0, r2.sprintf)("Invalid permission string - %s", e3)); + } + this._originalShiroString = e3; + } + } + get action() { + return this._action; + } + get domain() { + return this._domain; + } + get object() { + return this._object; + } + get displayErrorString() { + return this._displayErrorString; + } + toString() { + return this._cachedToString || (this._cachedToString = (0, r2.sprintf)("%s:%s:%s", this.domain.value, this.object.value, this.action.value)), this._cachedToString; + } + static isAllowedArchitectPermission(e3) { + if (p[e3]) return true; + const t3 = e3.split(":"); + if (0 === t3.length) return false; + switch (t3.length) { + case 1: + return o.default.isEqual(t3[0], "architect") || o.default.isEqual(t3[0], "authorization") || o.default.isEqual(t3[0], "*"); + case 2: + case 3: + return (o.default.isEqual(t3[0], "architect") || o.default.isEqual(t3[0], "authorization") || o.default.isEqual(t3[0], "*")) && (l.allowedPermissionList[t3[1]] || o.default.isEqual(t3[0], "*")); + default: + c.error((0, r2.sprintf)("Invalid permission string - %s", e3)); + } + } + static createOnDivision(e3, t3, i3) { + i3 || (t3.divisions[a.starDivision] || (t3.divisions[a.starDivision] = s.DivisionViewModel.create(a.starDivision, "Star Division")), i3 = t3.divisions[a.starDivision]), this.isAllowedArchitectPermission(e3) && i3.addPermission(_.create(e3)); + } + static createOnUser(e3, t3) { + const i3 = e3.split(":"); + e3.contains(",") || 4 === i3.length ? 3 === i3.length ? o.default.each(i3[2].split(","), (e4) => _.createOnDivision(`${i3[0]}:${i3[1]}:${e4}`, t3)) : 4 === i3.length && o.default.each(i3[2].split(","), (e4) => { + o.default.each(i3[3].split(","), (n3) => { + "00000000-0000-0000-0000-000000000000" !== n3 && (t3.divisions[n3] || (t3.divisions[n3] = s.DivisionViewModel.create(n3, void 0)), _.createOnDivision(`${i3[0]}:${i3[1]}:${e4}`, t3, t3.divisions[n3])); + }); + }) : _.createOnDivision(e3, t3); + } + static create(e3, t3) { + const i3 = new _(); + return i3._fromShiroString(e3), i3._displayErrorString = t3, i3; + } + hasPermission(e3) { + return e3 && e3.isPermissionShiro && this.domain.isMatch(e3.domain) && this.object.isMatch(e3.object) && this.action.isMatch(e3.action); + } + } + t2.PermissionShiro = _; + }, 31758: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = { archEnums: i2(31635).__importDefault(i2(78432)).default }; + t2.default = n2; + }, 31824: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importDefault(i2(37873)), o = n2.__importDefault(i2(94225)), a = i2(92140), { expressionDataService: s } = i2(27491), { globalTypes: l } = i2(14394), u = i2(71004), { variablePropertySupportedSetService: d } = i2(11201), c = i2(14187); + class p extends r2.default { + static get definition() { + const e3 = this.prototype; + return e3._globalTypeName ? (e3._ensureSessionIsConnected(e3._infoPropGet("definition"), o.default), e3.coreFactory.createArchDefinitionVariable(l[e3._globalTypeName])) : null; + } + constructor(e3) { + super(e3), this._coreVariableViewModel = e3; + } + get _globalTypeName() { + console.log(`INTERNAL ERROR - _globalTypeName not implemented for '${this.displayTypeName}'`); + } + get displayTypeName() { + return "ArchBaseVariable"; + } + get definition() { + return this._globalTypeName ? this.coreFactory.createArchDefinitionVariable(l[this._globalTypeName]) : null; + } + get hasUsages() { + return this._coreVariableViewModel.hasUsages; + } + get _initialValue() { + if (this._coreVariableViewModel.initValue) return this.coreFactory.createArchValueFromExpression(this._coreVariableViewModel.initValue); + } + get canDelete() { + return this._coreVariableViewModel.canDelete() && !this.cannotDeleteReason; + } + get cannotDeleteReason() { + return this._coreVariableViewModel.getDeletionTooltip(true); + } + get dataType() { + return this.coreFactory.createArchWrapper(this._coreVariableViewModel.type); + } + get description() { + return this._coreVariableViewModel.description; + } + set description(e3) { + const t3 = this._infoParm("value", "description"); + this._checkItemIsValidLiteralString(t3, e3, true), this._coreVariableViewModel.description = a.isNullOrUndefined(e3) || "" === e3 ? void 0 : e3; + } + get isArchBaseVariable() { + return true; + } + get isInput() { + return this._coreVariableViewModel.isInput; + } + set isInput(e3) { + const t3 = this._infoPropSet("newValue", "isInput"); + this._checkItemIsValidLiteralBool(t3, e3); + const i3 = {}; + e3 && this.isSecure && (d.getIsSecureInputOk(i3, e3, this.isSecure) || this._itemIsInvalid(t3, i3.displayString)), this._coreVariableViewModel.isInput = e3, this._checkItem(t3, this.isInput !== e3, "The isInput setting of '" + e3 + "' could not be set on the variable."), this.logNote("isInput now set to " + e3), this._coreVariableViewModel.fireVariableChanged(); + } + get isOutput() { + return this._coreVariableViewModel.isOutput; + } + set isOutput(e3) { + const t3 = this._infoPropSet("newValue", "isOutput"); + this._checkItemIsValidLiteralBool(t3, e3); + const i3 = {}; + if (!this._coreVariableViewModel.getIsOutputCanSet(i3)) { + if (false === e3) return; + this._itemIsInvalid(t3, i3.displayString); + } + e3 && this.isSecure && (d.getIsSecureOutputOk(i3, e3, this.isSecure) || this._itemIsInvalid(t3, i3.displayString)), this._coreVariableViewModel.isOutput = e3, this._checkItem(t3, this.isOutput !== e3, "The isOutput setting of '" + e3 + "' could not be set on the variable."), this.logNote("isOutput now set to " + e3), this._coreVariableViewModel.fireVariableChanged(); + } + get isReadOnly() { + return this._coreVariableViewModel.isReadOnly; + } + get isSecure() { + return this._coreVariableViewModel.isSecure; + } + set isSecure(e3) { + const t3 = this._infoPropSet("newValue", "isSecure"); + this._checkItemIsValidLiteralBool(t3, e3); + const i3 = {}; + this._coreVariableViewModel.getIsSecureCanSet(i3) || this._itemIsInvalid(t3, i3.displayString), e3 && (d.getIsSecureInputOk(i3, this.isInput, e3) || this._itemIsInvalid(t3, i3.displayString), d.getIsSecureOutputOk(i3, this.isOutput, e3) || this._itemIsInvalid(t3, i3.displayString)), this._coreVariableViewModel.isSecure = e3, this._checkItem(t3, this.isSecure !== e3, "The secure setting of '" + e3 + "' could not be set on the variable. Remember that flow input or output variables cannot be set to secure."), this.logNote("isSecure now set to " + e3), this._coreVariableViewModel.fireVariableChanged(); + } + get isFlowVariable() { + return !!this._coreVariableViewModel.isFlowScopedVariable; + } + get isStateVariable() { + return this._coreVariableViewModel.isStateVariable; + } + get isSystemVariable() { + return this._coreVariableViewModel.isSystemVariable; + } + get isFlowManagedVariable() { + return this._coreVariableViewModel.isFlowManagedVariable; + } + get isTaskVariable() { + return this._coreVariableViewModel.isTaskVariable; + } + get isUnavailable() { + return this._coreVariableViewModel.isUnavailable; + } + get logStr() { + if (!this._coreVariableViewModel) return this.logStrTypeOnly; + const e3 = []; + return this._appendLogStrType(e3, this.displayTypeName), this._appendLogStrName(e3, this.name), this._createLogStrFromParts(e3); + } + get name() { + return this._coreVariableViewModel.name; + } + set name(e3) { + if (!e3) throw "you cannot have a blank name set on a variable"; + this.rename(e3); + } + rename(e3) { + const t3 = this._infoParm("newName", "rename"); + this._checkItemIsValidLiteralString(t3, e3, false), s.isValidIdentifierName(e3) || this._itemIsInvalid(t3, "The new variable name '" + e3 + "' is not valid. It must be at least one character long and start with a letter. Subsequent characters must either be a letter, digit or underscore. You should not have any scope prefix like Flow., Task. or State. in the newName parameter either."); + const i3 = c.getCasedScope(this._coreVariableViewModel.scope) + "." + e3; + i3.toLowerCase() !== this.name.toLowerCase() && this._coreVariableViewModel.parentFlow.variableGroup.getVariableByName(i3, this._coreVariableViewModel.parent) && this._itemIsInvalid(t3, "unable to rename the variable. There is another variable that already exists with the name '" + i3 + "'"); + const n3 = this.name, r3 = u.transferUsages(this._coreVariableViewModel, this._coreVariableViewModel.usages, i3); + r3 || this.logErrorAndThrow("unable to rename the variable to '" + e3 + "'"), this._coreVariableViewModel = r3, this.logNote("successfully renamed to '" + this.name + "' from the old name of'" + n3 + "'"); + } + get parentFlow() { + return this.coreFactory.createArchWrapper(this._coreVariableViewModel.parentFlow); + } + get scope() { + return this._coreVariableViewModel.scope; + } + get canAssignInitialValue() { + return !!this._coreVariableViewModel.getInitialValueSupported(); + } + get type() { + return this._coreVariableViewModel.type; + } + get settings() { + return this.coreFactory.createArchVariableSettings(this); + } + } + t2.default = p; + }, 31938: (e2, t2, i2) => { + function n2() { + this.id = void 0, this.offset = void 0, n2.baseConstructor.apply(this, arguments); + } + i2(45214).extend(n2, "TimeZone"), Object.defineProperties(n2.prototype, {}), e2.exports = n2; + }, 31983: function(e2, t2, i2) { + "use strict"; + var n2, r2 = this && this.__extends || (n2 = function(e3, t3) { + return n2 = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(e4, t4) { + e4.__proto__ = t4; + } || function(e4, t4) { + for (var i3 in t4) Object.prototype.hasOwnProperty.call(t4, i3) && (e4[i3] = t4[i3]); + }, n2(e3, t3); + }, function(e3, t3) { + if ("function" != typeof t3 && null !== t3) throw new TypeError("Class extends value " + String(t3) + " is not a constructor or null"); + function i3() { + this.constructor = e3; + } + n2(e3, t3), e3.prototype = null === t3 ? Object.create(t3) : (i3.prototype = t3.prototype, new i3()); + }); + Object.defineProperty(t2, "__esModule", { value: true }), t2.QueueAction = void 0; + var o = (function(e3) { + function t3(t4, i3) { + var n3 = e3.call(this, t4, i3) || this; + return n3.scheduler = t4, n3.work = i3, n3; + } + return r2(t3, e3), t3.prototype.schedule = function(t4, i3) { + return void 0 === i3 && (i3 = 0), i3 > 0 ? e3.prototype.schedule.call(this, t4, i3) : (this.delay = i3, this.state = t4, this.scheduler.flush(this), this); + }, t3.prototype.execute = function(t4, i3) { + return i3 > 0 || this.closed ? e3.prototype.execute.call(this, t4, i3) : this._execute(t4, i3); + }, t3.prototype.requestAsyncId = function(t4, i3, n3) { + return void 0 === n3 && (n3 = 0), null != n3 && n3 > 0 || null == n3 && this.delay > 0 ? e3.prototype.requestAsyncId.call(this, t4, i3, n3) : (t4.flush(this), 0); + }, t3; + })(i2(64772).AsyncAction); + t2.QueueAction = o; + }, 32018: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(84655)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "queue"; + } + get displayTypeName() { + return "ArchVariableQueue"; + } + get initialValue() { + return this._initialValue; + } + get isArchVariableQueue() { + return true; + } + } + t2.default = r2; + }, 32036: function(e2, t2, i2) { + "use strict"; + var n2, r2 = this && this.__extends || (n2 = function(e3, t3) { + return n2 = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(e4, t4) { + e4.__proto__ = t4; + } || function(e4, t4) { + for (var i3 in t4) Object.prototype.hasOwnProperty.call(t4, i3) && (e4[i3] = t4[i3]); + }, n2(e3, t3); + }, function(e3, t3) { + if ("function" != typeof t3 && null !== t3) throw new TypeError("Class extends value " + String(t3) + " is not a constructor or null"); + function i3() { + this.constructor = e3; + } + n2(e3, t3), e3.prototype = null === t3 ? Object.create(t3) : (i3.prototype = t3.prototype, new i3()); + }); + Object.defineProperty(t2, "__esModule", { value: true }), t2.QueueScheduler = void 0; + var o = (function(e3) { + function t3() { + return null !== e3 && e3.apply(this, arguments) || this; + } + return r2(t3, e3), t3; + })(i2(19533).AsyncScheduler); + t2.QueueScheduler = o; + }, 32050: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(11210)), r2 = i2(30801); + class o extends n2.default { + constructor(e3) { + super(e3); + } + get _actionTypeId() { + return r2.menuActionActionType; + } + get displayTypeName() { + return this._scriptingName; + } + get isArchActionMenu() { + return true; + } + } + t2.default = o; + }, 32071: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.observeOn = void 0; + var n2 = i2(28619), r2 = i2(65212), o = i2(17214); + t2.observeOn = function(e3, t3) { + return void 0 === t3 && (t3 = 0), r2.operate(function(i3, r3) { + i3.subscribe(o.createOperatorSubscriber(r3, function(i4) { + return n2.executeSchedule(r3, e3, function() { + return r3.next(i4); + }, t3); + }, function() { + return n2.executeSchedule(r3, e3, function() { + return r3.complete(); + }, t3); + }, function(i4) { + return n2.executeSchedule(r3, e3, function() { + return r3.error(i4); + }, t3); + })); + }); + }; + }, 32100: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(84655)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "grammar"; + } + get displayTypeName() { + return "ArchVariableGrammar"; + } + get initialValue() { + return this._initialValue; + } + get isArchVariableGrammar() { + return true; + } + } + t2.default = r2; + }, 32108: (e2, t2) => { + "use strict"; + var i2; + Object.defineProperty(t2, "__esModule", { value: true }), t2.ttsOnly = t2.audioAndTTS = t2.audioOnly = t2.promptMediaTypes = void 0, t2.hasMediaType = function(e3, t3) { + return e3 && e3.includes(t3); + }, (function(e3) { + e3.audio = "audio", e3.tts = "tts", e3.text = "text"; + })(i2 || (t2.promptMediaTypes = i2 = {})), t2.audioOnly = [i2.audio], t2.audioAndTTS = [i2.audio, i2.tts], t2.ttsOnly = [i2.tts]; + }, 32224: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(68460)), r2 = i2(47957); + class o extends n2.default { + constructor(e3, t3, i3) { + super(t3, i3), this.name = e3; + } + get className() { + return "SlotSettingsViewModel"; + } + getDisplayName() { + return r2.clearSlot.slotsLabel; + } + } + t2.default = o; + }, 32236: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.getIntegration = a, t2.getDigitalBotConnectorIntegrations = s, t2.getBotConnectorIntegrations = l, t2.getNuanceMixIntegrations = u; + const n2 = i2(31635), r2 = n2.__importDefault(i2(36019)), o = n2.__importStar(i2(63569)); + function a(e3) { + return r2.default.build(o.getIntegration).templateParams({ id: e3 }).call(); + } + function s(e3) { + return r2.default.build(o.getDigitalBotConnectorIntegrations).queryParams(e3.getSearchQueryParams()).call(); + } + function l(e3) { + return r2.default.build(o.getBotConnectorIntegrations).queryParams(e3.getSearchQueryParams()).call(); + } + function u(e3) { + return r2.default.build(o.getNuanceMixIntegrations).queryParams(e3.getSearchQueryParams()).call(); + } + a.api = o.getIntegration, s.api = o.getDigitalBotConnectorIntegrations, l.api = o.getBotConnectorIntegrations, u.api = o.getNuanceMixIntegrations; + }, 32282: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.scheduleGroupManager = t2.ScheduleGroupManager = void 0; + const n2 = i2(31635), r2 = n2.__importStar(i2(50461)), o = n2.__importDefault(i2(47532)), a = i2(30801), s = i2(81801), l = n2.__importDefault(i2(4648)), u = i2(24032), d = i2(10798), c = i2(11675), p = i2(47957), _ = i2(27862); + class h extends o.default { + get requiredAuth() { + return (0, d.isFeatureAvailable)(l.default.divisionedRoutingObjects) ? s.externalAuthorizations.authStrings.scheduleGroupSearch : s.externalAuthorizations.authStrings.scheduleGroupView; + } + get dependencyType() { + return _.ScheduleGroup; + } + constructor() { + super(), this.topic = (0, u.getTopic)("scheduleGroupManager"), this._rawServerCache = {}, this.actionsForUsageSearch = [a.evaluateScheduleGroupActionType], this.actionPropertyForUsageSearch = "scheduleGroupId", this.apiCallList = r2.getScheduleGroups, this.apiCallSingle = r2.getScheduleGroup, this.uiMetadataSectionName = "scheduleGroups", this.dependencyContext = p.evaluateSchedules.scheduleGroup, this.className = "ScheduleGroupManager", this._initialize(); + } + _createItemViewModel(e3) { + return new c.ScheduleGroupViewModel(e3); + } + } + t2.ScheduleGroupManager = h, t2.scheduleGroupManager = new h(); + }, 32307: (e2, t2, i2) => { + "use strict"; + var n2, r2; + Object.defineProperty(t2, "__esModule", { value: true }), t2.CallAgenticVirtualAgentActionModel = void 0; + const o = i2(31635), a = i2(30801), s = i2(80295), l = i2(80295), u = o.__importDefault(i2(7401)), d = i2(80934), c = o.__importDefault(i2(92140)), p = i2(90807); + class _ extends d.BaseActionWithOutputsModel { + constructor(e3) { + super(e3), this.__type = _.__type, (0, l.makeUnenumerable)(this, "_inputs"), (0, l.makeUnenumerable)(this, "_outputs"), (0, l.makeUnenumerable)(this, "_voiceProcessingPrompt"), (0, l.makeUnenumerable)(this, "_exitReason"), (0, l.makeUnenumerable)(this, "_agenticVirtualAgentId"), (0, l.makeUnenumerable)(this, "_agenticVirtualAgentName"), (0, l.makeUnenumerable)(this, "_agenticVirtualAgentVersion"), (0, l.makeUnenumerable)(this, "_agenticVirtualAgentLatestVersion"); + } + pasteReIdOrRename(e3) { + super.pasteReIdOrRename(e3), c.default.each(this._inputs, (t3) => { + t3.pasteReIdOrRename(e3); + }), c.default.each(this._outputs, (t3) => { + t3.pasteReIdOrRename(e3); + }); + } + pasteResolveOldToNewValues(e3) { + super.pasteResolveOldToNewValues(e3), c.default.each(this.inputs, (t3) => { + t3.pasteResolveOldToNewValues(e3); + }), c.default.each(this.outputs, (t3) => { + t3.pasteResolveOldToNewValues(e3); + }); + } + get agenticVirtualAgentId() { + return this._agenticVirtualAgentId; + } + set agenticVirtualAgentId(e3) { + this._agenticVirtualAgentId = e3; + } + get agenticVirtualAgentName() { + return this._agenticVirtualAgentName; + } + set agenticVirtualAgentName(e3) { + this._agenticVirtualAgentName = e3; + } + get agenticVirtualAgentVersion() { + return this._agenticVirtualAgentVersion; + } + set agenticVirtualAgentVersion(e3) { + this._agenticVirtualAgentVersion = e3; + } + get agenticVirtualAgentLatestVersion() { + return this._agenticVirtualAgentLatestVersion; + } + set agenticVirtualAgentLatestVersion(e3) { + this._agenticVirtualAgentLatestVersion = e3; + } + get inputs() { + return this._inputs; + } + set inputs(e3) { + this._inputs = this.reviveArray(e3, p); + } + get outputs() { + return this._outputs; + } + set outputs(e3) { + this._outputs = this.reviveArray(e3, p); + } + get voiceProcessingPrompt() { + return this._voiceProcessingPrompt; + } + set voiceProcessingPrompt(e3) { + this._voiceProcessingPrompt = this.reviveItem(e3, u.default); + } + get exitReason() { + return this._exitReason; + } + set exitReason(e3) { + this._exitReason = this.reviveItem(e3, u.default); + } + } + t2.CallAgenticVirtualAgentActionModel = _, _.__type = a.callAgenticVirtualAgentActionType, o.__decorate([(0, s.enumerable)(true), o.__metadata("design:type", String), o.__metadata("design:paramtypes", [Object])], _.prototype, "agenticVirtualAgentId", null), o.__decorate([(0, s.enumerable)(true), o.__metadata("design:type", String), o.__metadata("design:paramtypes", [Object])], _.prototype, "agenticVirtualAgentName", null), o.__decorate([(0, s.enumerable)(true), o.__metadata("design:type", String), o.__metadata("design:paramtypes", [Object])], _.prototype, "agenticVirtualAgentVersion", null), o.__decorate([(0, s.enumerable)(true), o.__metadata("design:type", Boolean), o.__metadata("design:paramtypes", [Object])], _.prototype, "agenticVirtualAgentLatestVersion", null), o.__decorate([(0, s.enumerable)(true), o.__metadata("design:type", Object), o.__metadata("design:paramtypes", [Object])], _.prototype, "inputs", null), o.__decorate([(0, s.enumerable)(true), o.__metadata("design:type", Object), o.__metadata("design:paramtypes", [Object])], _.prototype, "outputs", null), o.__decorate([(0, s.enumerable)(true), o.__metadata("design:type", "function" == typeof (n2 = void 0 !== u.default && u.default) ? n2 : Object), o.__metadata("design:paramtypes", [Object])], _.prototype, "voiceProcessingPrompt", null), o.__decorate([(0, s.enumerable)(true), o.__metadata("design:type", "function" == typeof (r2 = void 0 !== u.default && u.default) ? r2 : Object), o.__metadata("design:paramtypes", [Object])], _.prototype, "exitReason", null), _.registerType(); + }, 32345: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = i2(30801), o = n2.__importDefault(i2(92661)); + class a extends o.default { + constructor(e3) { + super(e3); + } + get _actionTypeId() { + return r2.findDivisionActionType; + } + get displayTypeName() { + return this._scriptingName; + } + get isArchActionFindDivision() { + return true; + } + get findResult() { + return this._findResult; + } + } + t2.default = a; + }, 32392: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = i2(26847), o = n2.__importDefault(i2(57382)); + class a extends o.default { + constructor(e3) { + super(e3); + } + get displayTypeName() { + return "ArchBaseActionWithOutputsYesNo"; + } + get isArchBaseActionWithOutputsYesNo() { + return true; + } + get outputNo() { + return this._getOutputById(r2.outputIds.no, true); + } + get outputYes() { + return this._getOutputById(r2.outputIds.yes, true); + } + } + t2.default = a; + }, 32504: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importDefault(i2(82985)), o = n2.__importDefault(i2(78432)), a = i2(30801); + class s extends r2.default { + get _actionTypeId() { + return a.callDigitalBotFlowActionType; + } + get botFlowTypeEnum() { + return o.default.FLOW_TYPES.digitalBot; + } + get displayTypeName() { + return this._scriptingName; + } + get isArchActionCallDigitalBotFlow() { + return true; + } + } + t2.default = s; + }, 32508: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.TimeInterval = t2.timeInterval = void 0; + var n2 = i2(62326), r2 = i2(65212), o = i2(17214); + t2.timeInterval = function(e3) { + return void 0 === e3 && (e3 = n2.asyncScheduler), r2.operate(function(t3, i3) { + var n3 = e3.now(); + t3.subscribe(o.createOperatorSubscriber(i3, function(t4) { + var r3 = e3.now(), o2 = r3 - n3; + n3 = r3, i3.next(new a(t4, o2)); + })); + }); + }; + var a = function(e3, t3) { + this.value = e3, this.interval = t3; + }; + t2.TimeInterval = a; + }, 32531: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.FlowCustomDefinitionsViewModel = void 0; + const n2 = i2(31635), r2 = n2.__importStar(i2(12847)), o = n2.__importStar(i2(14592)), a = n2.__importDefault(i2(65302)), s = n2.__importStar(i2(58380)), l = n2.__importStar(i2(24032)), u = n2.__importDefault(i2(39938)), d = n2.__importDefault(i2(87675)), c = i2(79519), p = n2.__importDefault(i2(17102)), _ = i2(89917), h = l.getTopic("FlowCustomDefinitionSettings"); + class m extends p.default { + constructor(e3) { + super(e3), this._customDataTypesMap = {}, this.amObjectEventSink = true; + } + objEvent_customDataTypeRegistered(e3, t3) { + this.registerCustomExpressionType(t3); + } + objEvent_customDataTypeUnregistered(e3, t3) { + this.unregisterCustomExpressionType(t3); + } + get className() { + return "FlowDefinitionsViewModel"; + } + getDisplayName() { + return "Flow Definitions"; + } + get nodeGuxIcon() { + return "graph-pie"; + } + get id() { + return "flowDefinitions"; + } + get showInFlowSize() { + return false; + } + loadConfiguration(e3) { + var t3; + e3.customDefinitions || (e3.customDefinitions = new u.default()); + const i3 = null === (t3 = e3.customDefinitions.dataTypeDefinitions) || void 0 === t3 ? void 0 : t3.length; + if (i3) { + h.info(`loading ${i3} custom data type definition${1 !== i3 ? "s" : ""}`); + const t4 = []; + for (const i4 of e3.customDefinitions.dataTypeDefinitions) { + const e4 = new d.default(i4); + (null == e4 ? void 0 : e4.dataTypeId) && (t4.push(e4), this._customDataTypesMap[e4.dataTypeId] = { dataTypeDefViewModel: e4 }); + } + o.createCustomExpressionTypesFromDataTypeDefs(this.parentFlow, t4, true); + } + } + addCustomTypesToFlowExpressionTypeGroup() { + r2.info("Adding custom types to the flow expression type group"); + const e3 = this.customDataTypeDefinitionViewModels; + (null == e3 ? void 0 : e3.length) && o.createCustomExpressionTypesFromDataTypeDefs(this.parentFlow, e3, true); + } + registerExpressionTypeGroupEventSink() { + const e3 = a.default.getTypeGroup(this.parentFlow); + e3 && s.registerEventSinkForEventEmitter(e3.id, this); + } + getCustomDataTypeDefinition(e3) { + var t3; + return null === (t3 = this._customDataTypesMap[e3]) || void 0 === t3 ? void 0 : t3.dataTypeDefViewModel; + } + getCustomDataTypeDefinitionByName(e3, t3) { + return this.customDataTypeDefinitionViewModels.find((i3) => i3.customJsonIdentifierInfo.namespace === e3 && i3.name === t3); + } + get customDataTypeDefinitionViewModels() { + const e3 = []; + for (const t3 of Object.values(this._customDataTypesMap)) t3.dataTypeDefViewModel && e3.push(t3.dataTypeDefViewModel); + return e3; + } + get customDataTypeDefinitionModels() { + var e3; + const t3 = []; + for (const i3 of Object.values(this._customDataTypesMap)) { + const n3 = null === (e3 = i3.dataTypeDefViewModel) || void 0 === e3 ? void 0 : e3.model; + n3 && t3.push(n3); + } + return t3; + } + get customDataTypeExpressionType() { + const e3 = []; + for (const t3 of Object.values(this._customDataTypesMap)) { + const i3 = t3.expressionType; + i3 && e3.push(i3); + } + return e3; + } + registerCustomExpressionType(e3) { + var t3; + if (!(null === (t3 = null == e3 ? void 0 : e3.dataTypeDefViewModel) || void 0 === t3 ? void 0 : t3.dataTypeId)) return; + const i3 = this._customDataTypesMap[e3.dataTypeDefViewModel.dataTypeId]; + i3 ? (i3.expressionType = e3.expressionType, i3.dataTypeDefViewModel = e3.dataTypeDefViewModel) : this._customDataTypesMap[e3.dataTypeDefViewModel.dataTypeId] = { dataTypeDefViewModel: e3.dataTypeDefViewModel, expressionType: e3.expressionType }; + } + unregisterCustomExpressionType(e3) { + (null == e3 ? void 0 : e3.dataTypeIdentifier) && delete this._customDataTypesMap[e3.dataTypeIdentifier]; + } + getConfiguration(e3, t3, i3) { + super.getConfiguration(e3, t3, i3); + const n3 = this.customDataTypeDefinitionModels.filter((e4) => { + if (null == t3 ? void 0 : t3.isForFlowYaml) return true; + let i4; + const n4 = this.getCustomDataTypeDefinition(e4.dataTypeId); + if (!n4 || n4.isCollection) i4 = false; + else if (n4.isInUse()) i4 = true; + else switch (_.CustomJsonIdentifierInfo.createFromDataTypeDef(e4).namespace) { + case c.CustomJsonNamespace.architect: + case c.CustomJsonNamespace.userDefined: + case c.CustomJsonNamespace.worktype: + i4 = true; + break; + case c.CustomJsonNamespace.decisionTable: + case c.CustomJsonNamespace.conversationAttribute: + default: + i4 = false; + } + return i4; + }); + e3.customDefinitions = new u.default({ dataTypeDefinitions: n3 }); + } + _preDestroy() { + this.amObjectEventSink && s.unregisterEventSink(this), this._customDataTypesMap = {}, super._preDestroy(); + } + getDataTypeDefViewModelForCustomDataTypeId(e3) { + var t3; + return null === (t3 = this._customDataTypesMap[e3]) || void 0 === t3 ? void 0 : t3.dataTypeDefViewModel; + } + getExpressionTypeForCustomDataTypeId(e3) { + var t3; + return null === (t3 = this._customDataTypesMap[e3]) || void 0 === t3 ? void 0 : t3.expressionType; + } + } + t2.FlowCustomDefinitionsViewModel = m; + }, 32556: (e2, t2, i2) => { + function n2() { + n2.baseConstructor.apply(this, arguments); + } + i2(39950).extend(n2, "ClipboardContentStateModel", true), Object.defineProperties(n2.prototype, { configure: { value: function(e3, t3, i3, r2) { + n2._super.configure.apply(this, arguments); + } } }), e2.exports = n2; + }, 32568: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.last = void 0; + var n2 = i2(59328), r2 = i2(85934), o = i2(65279), a = i2(30632), s = i2(58799), l = i2(87699); + t2.last = function(e3, t3) { + var i3 = arguments.length >= 2; + return function(u) { + return u.pipe(e3 ? r2.filter(function(t4, i4) { + return e3(t4, i4, u); + }) : l.identity, o.takeLast(1), i3 ? s.defaultIfEmpty(t3) : a.throwIfEmpty(function() { + return new n2.EmptyError(); + })); + }; + }; + }, 32592: (e2, t2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.AgenticVirtualAgentViewModel = void 0, t2.AgenticVirtualAgentViewModel = class { + constructor(e3) { + this._model = e3; + } + get className() { + return "AgenticVirtualAgentViewModel"; + } + get isBaseClass() { + return false; + } + get id() { + return this._model.id; + } + get name() { + return this._model.name; + } + set name(e3) { + this._model.name = e3; + } + get label() { + return this.name; + } + get version() { + var e3; + return null === (e3 = this._model.latestProductionReadyVersion) || void 0 === e3 ? void 0 : e3.version; + } + }; + }, 32595: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.schemaTypeHelper = void 0; + const n2 = i2(29795), r2 = i2(29795), o = i2(29795); + t2.schemaTypeHelper = new class { + isJsonSchemaType(e3) { + return !!o.jsonSchemaTypeNames[e3]; + } + isAgenticVirtualAgentPrimitiveType(e3) { + return !!n2.agenticVirtualAgentPrimitiveTypes[e3]; + } + isAiGuidePrimitiveType(e3) { + return !!r2.aiGuidePrimitiveTypes[e3]; + } + }(); + }, 32601: (e2, t2, i2) => { + const n2 = i2(13240), r2 = i2(90807), o = i2(7401), { switchActionActionType: a } = i2(30801); + function s() { + Object.defineProperties(this, { _expression: { writable: true }, _cases: { writable: true } }), this.switchStyle = void 0, this.version = void 0, s.baseConstructor.apply(this, arguments); + } + n2.extend(s, a, true), Object.defineProperties(s.prototype, { pasteReIdOrRename: { value: function(e3) { + s._super.pasteReIdOrRename.apply(this, arguments), this.expression.pasteReIdOrRename(e3); + for (let t3 = 0; t3 < this.cases.length; t3++) this.cases[t3].pasteReIdOrRename(e3); + } }, pasteResolveOldToNewValues: { value: function(e3) { + s._super.pasteResolveOldToNewValues.apply(this, arguments), this.expression.pasteResolveOldToNewValues(e3); + for (let t3 = 0; t3 < this.cases.length; t3++) this.cases[t3].pasteResolveOldToNewValues(e3); + } }, expression: { enumerable: true, get: function() { + return this._expression; + }, set: function(e3) { + this._expression = this.reviveItem(e3, o); + } }, cases: { enumerable: true, get: function() { + return this._cases; + }, set: function(e3) { + this._cases = this.reviveArray(e3, r2); + } } }), e2.exports = s; + }, 32624: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(84655)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "skill"; + } + get displayTypeName() { + return "ArchVariableSkill"; + } + get initialValue() { + return this._initialValue; + } + get isArchVariableSkill() { + return true; + } + } + t2.default = r2; + }, 32678: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.dialogflowCxAgentManager = t2.DialogflowCxAgentManager = void 0; + const n2 = i2(31635), r2 = n2.__importStar(i2(1360)), o = n2.__importDefault(i2(47532)), a = i2(30801), s = n2.__importDefault(i2(53943)), l = i2(81801), u = i2(24032), d = i2(47957), c = i2(27862), p = i2(51294); + class _ extends o.default { + get requiredAuth() { + return l.externalAuthorizations.authStrings.integrationView; + } + get dependencyType() { + return c.DialogflowCxAgent; + } + constructor() { + super(), this.topic = (0, u.getTopic)("DialogflowCxAgentManager"), this.apiCallList = p.getCxAgents, this.apiCallSingle = p.getCxAgent, this._rawServerCache = {}, this.actionsForUsageSearch = [a.dialogflowCxActionType], this.actionPropertyForUsageSearch = "bot", this.className = "DialogflowCxAgentManager", this.defaultMatchingStyle = r2.exactMatch, this.dependencyContext = d.dialogflowCx.dialogflowCxAgent, this.searchField = "name", this.securityError = true, this.uiMetadataSectionName = "dialogflowCxAgents", this._initialize(); + } + _createItemViewModel(e3) { + return new s.default(e3); + } + } + t2.DialogflowCxAgentManager = _, t2.dialogflowCxAgentManager = new _(); + }, 32726: (e2, t2, i2) => { + const n2 = i2(92140), r2 = i2(82149), o = i2(7401), a = i2(42217); + function s() { + Object.defineProperties(this, { _eventName: { writable: true }, _outputSessionVariables: { writable: true } }), this.environmentId = void 0, this.languages = void 0, this.integrationId = void 0, this.integrationName = void 0, s.baseConstructor.apply(this, arguments); + } + r2.extend(s, "BaseDialogflowActionModel"), Object.defineProperties(s.prototype, { pasteReIdOrRename: { value: function(e3) { + s._super.pasteReIdOrRename.apply(this, arguments), this.eventName.pasteReIdOrRename(e3), n2.each(this.outputSessionVariables, (t3) => { + t3.pasteReIdOrRename(e3); + }); + } }, pasteResolveOldToNewValues: { value: function(e3) { + s._super.pasteResolveOldToNewValues.apply(this, arguments), this.eventName.pasteResolveOldToNewValues(e3), n2.each(this.outputSessionVariables, (t3) => { + t3.pasteResolveOldToNewValues(e3); + }); + } }, eventName: { enumerable: true, get: function() { + return this._eventName; + }, set: function(e3) { + this._eventName = this.reviveItem(e3, o); + } }, outputSessionVariables: { enumerable: true, get: function() { + return this._outputSessionVariables; + }, set: function(e3) { + this._outputSessionVariables = this.reviveArray(e3, a); + } } }), e2.exports = s; + }, 32732: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(82472)), r2 = i2(30801); + class o extends n2.default { + constructor(e3) { + super(e3), this._alertOnTransfer = this.coreFactory.createArchValueFromExpression(e3.alertOnTransfer), this._allowVoicemail = this.coreFactory.createArchWrapper(e3.allowVoicemail), this._targetUser = this.coreFactory.createArchWrapper(e3.user); + } + get _actionTypeId() { + return r2.transferUserActionType; + } + get allowVoicemailRollover() { + return this._allowVoicemail; + } + get displayTypeName() { + return this._scriptingName; + } + get isArchActionTransferToUser() { + return true; + } + get targetUser() { + return this._targetUser; + } + get alertOnTransfer() { + return this._alertOnTransfer; + } + } + t2.default = o; + }, 32756: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importDefault(i2(23581)), o = n2.__importDefault(i2(16230)); + class a extends r2.default { + constructor({ id: e3, name: t3, description: i3, version: n3, generators: r3, resultExpressionType: o2, restrictToFlowTypeOrTypes: a2, categoryIdentifierOrIdentifiers: s, builderPartDefCategoryIdentifierOrIdentifiers: l, defaultBuilderPartId: u, icon: d, helpTopic: c, requiredFeatureToggle: p, requiredFeatureConfig: _, requiredChannelTypeOrTypes: h, minMaxInfo: m }) { + super(e3, t3, i3, n3, r3, o2, a2, s, l, u, d, c, p, _, h, m); + } + get className() { + return "StringBuilderWithBuilderPartsDef"; + } + get isStringBuilderWithBuilderPartsDef() { + return true; + } + createBuilder(e3) { + const t3 = this.reviveBuilder(e3, this.createDefaultBuilderPartsModel()); + return t3.setNewInstanceDefaults(), t3; + } + reviveBuilder(e3, t3, i3) { + return new o.default({ owningExpression: e3, model: t3, reId: true === i3 }); + } + } + t2.default = a; + }, 32773: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.chatScriptManager = t2.ChatScriptManager = void 0; + const n2 = i2(31635).__importDefault(i2(92140)), r2 = i2(24032), o = i2(30801), a = i2(82915), s = i2(47957), l = i2(52124), u = i2(28195); + class d extends a.ScriptManager { + constructor() { + super("ChatScriptManager"), this.topic = (0, r2.getTopic)("ChatScriptManager"), this.actionsForUsageSearch = [o.screenPopActionType], this.apiCallList = n2.default.partial(l.getScriptsForFeature, u.chat), this.dependencyContext = s.screenPop.selectedChatScript, this.scriptFeatureType = u.chat; + } + } + t2.ChatScriptManager = d, t2.chatScriptManager = new d(); + }, 32798: (e2, t2, i2) => { + function n2() { + this.language = void 0, this.summaryType = void 0, n2.baseConstructor.apply(this, arguments); + } + i2(52722).extend(n2, "ConversationSummarySetting"), e2.exports = n2; + }, 32829: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = i2(30801), o = n2.__importDefault(i2(62028)); + class a extends o.default { + constructor(e3) { + super(e3); + } + get _actionTypeId() { + return r2.transferTaskActionType; + } + get displayTypeName() { + return "ArchMenuJumpToTask"; + } + get actionJumpToTask() { + return this._archAction; + } + get isArchMenuJumpToTask() { + return true; + } + } + t2.default = a; + }, 32854: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.CustomTypesViewModel = void 0; + const n2 = i2(31635), r2 = n2.__importStar(i2(69453)), o = n2.__importDefault(i2(17102)); + class a extends o.default { + constructor(e3) { + super(e3), this.modelPropertyName = "customDefinitions"; + } + get className() { + return "CustomTypesViewModel"; + } + get id() { + return "customTypes"; + } + getDisplayName() { + return this.getNodeName(); + } + getNodeName() { + return r2.customDataTypes.customTypesNodeTitle; + } + get nodeGuxIcon() { + return "view-grid"; + } + loadConfiguration() { + } + get helpTopic() { + } + } + t2.CustomTypesViewModel = a; + }, 32967: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(20692)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "journeyOutcomeScoreCollection"; + } + get initialValue() { + return this._initialValue; + } + get displayTypeName() { + return "ArchVariableJourneyOutcomeScoreCollection"; + } + get isArchVariableJourneyOutcomeScoreCollection() { + return true; + } + } + t2.default = r2; + }, 32980: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.reportUnhandledError = void 0; + var n2 = i2(93728), r2 = i2(94808); + t2.reportUnhandledError = function(e3) { + r2.timeoutProvider.setTimeout(function() { + var t3 = n2.config.onUnhandledError; + if (!t3) throw e3; + t3(e3); + }); + }; + }, 33022: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(84655)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "languageSkill"; + } + get displayTypeName() { + return "ArchVariableLanguageSkill"; + } + get initialValue() { + return this._initialValue; + } + get isArchVariableLanguageSkill() { + return true; + } + } + t2.default = r2; + }, 33050: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = i2(17604), o = n2.__importDefault(i2(93646)), a = i2(28562), s = n2.__importStar(i2(81116)), l = n2.__importStar(i2(63352)), u = i2(14394), d = n2.__importStar(i2(17498)), c = n2.__importDefault(i2(68460)), p = i2(7401), _ = i2(21733), h = i2(47957); + class m extends c.default { + constructor(e3, t3, i3) { + super(t3, i3), this.modelPropertyName = "nluMetaData.intents", this.name = e3; + } + get id() { + return this.name; + } + get cardLabel() { + return this.name; + } + get className() { + return "IntentSettingsViewModel"; + } + getDisplayName() { + return h.intents.label; + } + getConfiguration(e3, t3) { + var i3; + e3.nluMetaData && e3.nluMetaData.intents && (e3.nluMetaData.intents[this.name] = { confirmation: null === (i3 = this.confirmationExpression) || void 0 === i3 ? void 0 : i3.getConfiguration(e3, t3) }); + } + loadConfiguration(e3) { + var t3, i3; + const n3 = (null === (t3 = e3.nluMetaData) || void 0 === t3 ? void 0 : t3.intents) && (null === (i3 = e3.nluMetaData) || void 0 === i3 ? void 0 : i3.intents[this.name]); + if (!n3) return; + if (!n3.confirmation && !this.parentFlow.isReadOnly) return void this.createNewConfirmationExpression(); + const r3 = new p(n3.confirmation); + this.confirmationExpression = s.expression(this.parentFlow, this.parentFlow.botFlowSettings, r3, h.intents.settings.confirmation, u.globalTypes.communication, null, null); + } + updateDependencies() { + d.registerExpression(this.confirmationExpression); + } + _setConfirmationDesciptionInfo(e3) { + null == e3 || e3.options.setDescriptionInfo(h.intents.settings.confirmation, h.intents.settings.intentSettingConfirmationDescription); + } + createNewConfirmationExpression() { + const e3 = s.expression(this.parentFlow, this.parentFlow.botFlowSettings, null, h.intents.settings.confirmation, u.globalTypes.communication, null, null); + e3.options.setDefaultToBuilderId(a.builderIds.parts.genericCommunication).setBuilderLanguagesSequenceConfig(o.default), e3.setModeWithTransition(l.builder, a.builderIds.parts.genericCommunication), e3.builder.addOrSetStringLiteralBuilderPart((0, r2.sprintf)(_(this.parentFlow.defaultLanguage).intentConfirmation, this.name)), this._setConfirmationDesciptionInfo(e3), e3.initializeDesignTime(), this.confirmationExpression = e3; + } + validate(e3) { + var t3, i3; + (null === (t3 = this.confirmationExpression) || void 0 === t3 ? void 0 : t3.builder) && !this.confirmationExpression.config && this.confirmationExpression.builder.updateOwningExpression(), null === (i3 = this.confirmationExpression) || void 0 === i3 || i3.validate(e3); + } + destroy() { + var e3; + return null === (e3 = this.confirmationExpression) || void 0 === e3 || e3.destroy(), super.destroy(); + } + search(e3) { + e3.addToQueue(this.confirmationExpression); + } + initializeDesignTime() { + var e3; + super.initializeDesignTime(), this._setConfirmationDesciptionInfo(this.confirmationExpression), null === (e3 = this.confirmationExpression) || void 0 === e3 || e3.initializeDesignTime(); + } + } + t2.default = m; + }, 33067: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.getAudioConnectorBot = t2.getAudioConnectorBots = void 0; + const n2 = i2(55892), r2 = i2(7452), o = i2(36019).default, a = { ignoreBadResponse: true }; + t2.getAudioConnectorBots = o.request("GET", "{public-api.apps}/api/v2/integrations/speech/audioconnector/", r2, a), t2.getAudioConnectorBot = o.request("GET", "{public-api.apps}/api/v2/integrations/speech/audioconnector/{integrationId}", n2, a); + }, 33073: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(84655)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "date"; + } + get displayTypeName() { + return "ArchVariableDate"; + } + get initialValue() { + return this._initialValue; + } + get isArchVariableDate() { + return true; + } + } + t2.default = r2; + }, 33089: (e2, t2, i2) => { + var n2 = { "./ar-ae/templates.js": 5700, "./ar-eg/templates.js": 94434, "./ar-sa/templates.js": 61510, "./ca-es/templates.js": 8895, "./cs-cz/templates.js": 61044, "./da-dk/templates.js": 44379, "./de-ch/templates.js": 58873, "./de-de/templates.js": 69549, "./el-gr/templates.js": 91709, "./en-au/templates.js": 49108, "./en-gb/templates.js": 16435, "./en-us/templates.js": 6142, "./es-es/templates.js": 88439, "./es-mx/templates.js": 73374, "./es-us/templates.js": 8487, "./eu-es/templates.js": 94681, "./fi-fi/templates.js": 66593, "./fil-ph/templates.js": 5284, "./fr-be/templates.js": 79186, "./fr-ca/templates.js": 52179, "./fr-fr/templates.js": 86875, "./he-il/templates.js": 92475, "./hi-in/templates.js": 46377, "./hu-hu/templates.js": 79133, "./it-it/templates.js": 48093, "./ja-jp/templates.js": 55958, "./ko-kr/templates.js": 82984, "./ms-my/templates.js": 15897, "./nb-no/templates.js": 35476, "./nl-be/templates.js": 55836, "./nl-nl/templates.js": 68227, "./pl-pl/templates.js": 3863, "./pt-br/templates.js": 74423, "./pt-pt/templates.js": 40551, "./ru-ru/templates.js": 76641, "./sv-se/templates.js": 18272, "./th-th/templates.js": 10135, "./tr-tr/templates.js": 33943, "./uk-ua/templates.js": 41593, "./vi-vn/templates.js": 26928, "./zh-cn/templates.js": 93500, "./zh-hk/templates.js": 14372, "./zh-tw/templates.js": 6500 }; + function r2(e3) { + var t3 = o(e3); + return i2(t3); + } + function o(e3) { + if (!i2.o(n2, e3)) { + var t3 = new Error("Cannot find module '" + e3 + "'"); + throw t3.code = "MODULE_NOT_FOUND", t3; + } + return n2[e3]; + } + r2.keys = function() { + return Object.keys(n2); + }, r2.resolve = o, e2.exports = r2, r2.id = 33089; + }, 33139: (e2, t2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.default = { actions: "actions", actionList: "actionList", choices: "choices", flowSequenceItemList: "flowSequenceItemList", menuChoiceList: "menuChoiceList", menus: "menus", outputPaths: "outputPaths", paths: "paths", tasks: "tasks", states: "states" }; + }, 33143: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.BotConnectorViewModel = void 0; + const n2 = i2(43212); + class r2 extends n2.BaseConfigurationListViewModel { + constructor(e3) { + super(e3); + } + get className() { + return "BotConnectorViewModel"; + } + get botCompositeTag() { + return this._model.botCompositeTag; + } + get botName() { + return this._model.name; + } + get dependencySearchId() { + return this.botCompositeTag; + } + get id() { + return this._model.id; + } + get integrationId() { + return this._model.integrationId; + } + getConfiguration() { + return this._model; + } + get label() { + return this._model.name || ""; + } + get name() { + return this._model.name; + } + get versions() { + return this._model.versions; + } + } + t2.BotConnectorViewModel = r2; + }, 33169: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(54757)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "integerCollection"; + } + get displayTypeName() { + return "ArchValueIntegerCollection"; + } + get isArchValueIntegerCollection() { + return true; + } + } + t2.default = r2; + }, 33230: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.switchToNewIntentPaths = function(e3, t3, i3) { + let n3; + for (let r4 = 0; r4 < t3.length; r4++) { + const a2 = t3[r4]; + n3 = e3.getBranch(a2.outputId) || e3.getBranchByLabel(a2.localizedLabel || a2.label, true), n3 ? (n3.model.localizedLabel = a2.localizedLabel, n3.outOfService || n3.enableFull()) : (n3 = e3.addOptionalBranchInfo(a2), o.default.isFunction(i3) && i3(n3)); + } + const r3 = o.default.reject(e3.branchInfoList, (e4) => !e4.isDynamicBranch), a = o.default.filter(r3, (e4) => e4.localizedLabel ? !o.default.findWhere(t3, { localizedLabel: e4.localizedLabel }) : !o.default.findWhere(t3, { label: e4.label })); + for (let t4 = 0; t4 < a.length; t4++) { + const i4 = a[t4].localizedLabel || a[t4].label; + n3 = e3.getBranchByLabel(i4, a[t4].isDynamicBranch), n3 && n3.hasChildren ? n3.isUnreachable = true : e3.removeOptionalBranchInfoByLabel(i4); + } + e3.sortBranches(); + }, t2.translateIntentsToBranchItems = function(e3, t3) { + const i3 = []; + return o.default.each(t3, (t4) => { + const n3 = r2.createBranchItem(e3.id, t4.name, null, true, t4.builtInPathId); + n3.isDynamicBranch = !t4.builtInPathId, n3.builtInPathId = t4.builtInPathId, n3.localizedLabel = t4.localizedLabel, i3.push(n3); + }), i3; + }; + const n2 = i2(31635), r2 = n2.__importStar(i2(59288)), o = n2.__importDefault(i2(92140)); + }, 33231: (e2) => { + !(function(t2) { + "use strict"; + "function" == typeof bootstrap ? bootstrap("promise", t2) : e2.exports = t2(); + })(function() { + "use strict"; + var e3 = false; + try { + throw new Error(); + } catch (t3) { + e3 = !!t3.stack; + } + var t2, i2 = A(), n2 = function() { + }, r2 = (function() { + var e4 = { task: void 0, next: null }, t3 = e4, i3 = false, n3 = void 0, o2 = false; + function a2() { + for (; e4.next; ) { + var t4 = (e4 = e4.next).task; + e4.task = void 0; + var n4 = e4.domain; + n4 && (e4.domain = void 0, n4.enter()); + try { + t4(); + } catch (e5) { + if (o2) throw n4 && n4.exit(), setTimeout(a2, 0), n4 && n4.enter(), e5; + setTimeout(function() { + throw e5; + }, 0); + } + n4 && n4.exit(); + } + i3 = false; + } + if (r2 = function(e5) { + t3 = t3.next = { task: e5, domain: o2 && process.domain, next: null }, i3 || (i3 = true, n3()); + }, "undefined" != typeof process && process.nextTick) o2 = true, n3 = function() { + process.nextTick(a2); + }; + else if ("function" == typeof setImmediate) n3 = "undefined" != typeof window ? setImmediate.bind(window, a2) : function() { + setImmediate(a2); + }; + else if ("undefined" != typeof MessageChannel) { + var s2 = new MessageChannel(); + s2.port1.onmessage = function() { + n3 = l2, s2.port1.onmessage = a2, a2(); + }; + var l2 = function() { + s2.port2.postMessage(0); + }; + n3 = function() { + setTimeout(a2, 0), l2(); + }; + } else n3 = function() { + setTimeout(a2, 0); + }; + return r2; + })(), o = Function.call; + function a(e4) { + return function() { + return o.apply(e4, arguments); + }; + } + var s, l = a(Array.prototype.slice), u = a(Array.prototype.reduce || function(e4, t3) { + var i3 = 0, n3 = this.length; + if (1 === arguments.length) for (; ; ) { + if (i3 in this) { + t3 = this[i3++]; + break; + } + if (++i3 >= n3) throw new TypeError(); + } + for (; i3 < n3; i3++) i3 in this && (t3 = e4(t3, this[i3], i3)); + return t3; + }), d = a(Array.prototype.indexOf || function(e4) { + for (var t3 = 0; t3 < this.length; t3++) if (this[t3] === e4) return t3; + return -1; + }), c = a(Array.prototype.map || function(e4, t3) { + var i3 = this, n3 = []; + return u(i3, function(r3, o2, a2) { + n3.push(e4.call(t3, o2, a2, i3)); + }, void 0), n3; + }), p = Object.create || function(e4) { + function t3() { + } + return t3.prototype = e4, new t3(); + }, _ = a(Object.prototype.hasOwnProperty), h = Object.keys || function(e4) { + var t3 = []; + for (var i3 in e4) _(e4, i3) && t3.push(i3); + return t3; + }, m = a(Object.prototype.toString); + s = "undefined" != typeof ReturnValue ? ReturnValue : function(e4) { + this.value = e4; + }; + var g = "From previous event:"; + function f(t3, i3) { + if (e3 && i3.stack && "object" == typeof t3 && null !== t3 && t3.stack && -1 === t3.stack.indexOf(g)) { + for (var n3 = [], r3 = i3; r3; r3 = r3.source) r3.stack && n3.unshift(r3.stack); + n3.unshift(t3.stack); + var o2 = n3.join("\n" + g + "\n"); + t3.stack = (function(e4) { + for (var t4 = e4.split("\n"), i4 = [], n4 = 0; n4 < t4.length; ++n4) { + var r4 = t4[n4]; + S(r4) || T(r4) || !r4 || i4.push(r4); + } + return i4.join("\n"); + })(o2); + } + } + function T(e4) { + return -1 !== e4.indexOf("(module.js:") || -1 !== e4.indexOf("(node.js:"); + } + function y(e4) { + var t3 = /at .+ \((.+):(\d+):(?:\d+)\)$/.exec(e4); + if (t3) return [t3[1], Number(t3[2])]; + var i3 = /at ([^ ]+):(\d+):(?:\d+)$/.exec(e4); + if (i3) return [i3[1], Number(i3[2])]; + var n3 = /.*@(.+):(\d+)$/.exec(e4); + return n3 ? [n3[1], Number(n3[2])] : void 0; + } + function S(e4) { + var n3 = y(e4); + if (!n3) return false; + var r3 = n3[0], o2 = n3[1]; + return r3 === t2 && o2 >= i2 && o2 <= W; + } + function A() { + if (e3) try { + throw new Error(); + } catch (e4) { + var i3 = e4.stack.split("\n"), n3 = y(i3[0].indexOf("@") > 0 ? i3[1] : i3[2]); + if (!n3) return; + return t2 = n3[0], n3[1]; + } + } + function N(e4) { + return e4 instanceof C ? e4 : w(e4) ? (function(e5) { + var t3 = O(); + return N.nextTick(function() { + try { + e5.then(t3.resolve, t3.reject, t3.notify); + } catch (e6) { + t3.reject(e6); + } + }), t3.promise; + })(e4) : k(e4); + } + function O() { + var t3, i3 = [], n3 = [], r3 = p(O.prototype), o2 = p(C.prototype); + if (o2.promiseDispatch = function(e4, r4, o3) { + var a3 = l(arguments); + i3 ? (i3.push(a3), "when" === r4 && o3[1] && n3.push(o3[1])) : N.nextTick(function() { + t3.promiseDispatch.apply(t3, a3); + }); + }, o2.valueOf = function() { + if (i3) return o2; + var e4 = E(t3); + return R(e4) && (t3 = e4), e4; + }, o2.inspect = function() { + return t3 ? t3.inspect() : { state: "pending" }; + }, N.longStackSupport && e3) try { + throw new Error(); + } catch (e4) { + o2.stack = e4.stack.substring(e4.stack.indexOf("\n") + 1); + } + function a2(e4) { + t3 = e4, o2.source = e4, u(i3, function(t4, i4) { + N.nextTick(function() { + e4.promiseDispatch.apply(e4, i4); + }); + }, void 0), i3 = void 0, n3 = void 0; + } + return r3.promise = o2, r3.resolve = function(e4) { + t3 || a2(N(e4)); + }, r3.fulfill = function(e4) { + t3 || a2(k(e4)); + }, r3.reject = function(e4) { + t3 || a2(x(e4)); + }, r3.notify = function(e4) { + t3 || u(n3, function(t4, i4) { + N.nextTick(function() { + i4(e4); + }); + }, void 0); + }, r3; + } + function I(e4) { + if ("function" != typeof e4) throw new TypeError("resolver must be a function."); + var t3 = O(); + try { + e4(t3.resolve, t3.reject, t3.notify); + } catch (e5) { + t3.reject(e5); + } + return t3.promise; + } + function v(e4) { + return I(function(t3, i3) { + for (var n3 = 0, r3 = e4.length; n3 < r3; n3++) N(e4[n3]).then(t3, i3); + }); + } + function C(e4, t3, i3) { + void 0 === t3 && (t3 = function(e5) { + return x(new Error("Promise does not support operation: " + e5)); + }), void 0 === i3 && (i3 = function() { + return { state: "unknown" }; + }); + var n3 = p(C.prototype); + if (n3.promiseDispatch = function(i4, r4, o2) { + var a2; + try { + a2 = e4[r4] ? e4[r4].apply(n3, o2) : t3.call(n3, r4, o2); + } catch (e5) { + a2 = x(e5); + } + i4 && i4(a2); + }, n3.inspect = i3, i3) { + var r3 = i3(); + "rejected" === r3.state && (n3.exception = r3.reason), n3.valueOf = function() { + var e5 = i3(); + return "pending" === e5.state || "rejected" === e5.state ? n3 : e5.value; + }; + } + return n3; + } + function b(e4, t3, i3, n3) { + return N(e4).then(t3, i3, n3); + } + function E(e4) { + if (R(e4)) { + var t3 = e4.inspect(); + if ("fulfilled" === t3.state) return t3.value; + } + return e4; + } + function R(e4) { + return e4 instanceof C; + } + function w(e4) { + return (t3 = e4) === Object(t3) && "function" == typeof e4.then; + var t3; + } + N.resolve = N, N.nextTick = r2, N.longStackSupport = false, "object" == typeof process && process && process.env && process.env.Q_DEBUG && (N.longStackSupport = true), N.defer = O, O.prototype.makeNodeResolver = function() { + var e4 = this; + return function(t3, i3) { + t3 ? e4.reject(t3) : arguments.length > 2 ? e4.resolve(l(arguments, 1)) : e4.resolve(i3); + }; + }, N.Promise = I, N.promise = I, I.race = v, I.all = B, I.reject = x, I.resolve = N, N.passByCopy = function(e4) { + return e4; + }, C.prototype.passByCopy = function() { + return this; + }, N.join = function(e4, t3) { + return N(e4).join(t3); + }, C.prototype.join = function(e4) { + return N([this, e4]).spread(function(e5, t3) { + if (e5 === t3) return e5; + throw new Error("Can't join: not the same: " + e5 + " " + t3); + }); + }, N.race = v, C.prototype.race = function() { + return this.then(N.race); + }, N.makePromise = C, C.prototype.toString = function() { + return "[object Promise]"; + }, C.prototype.then = function(e4, t3, i3) { + var n3 = this, r3 = O(), o2 = false; + return N.nextTick(function() { + n3.promiseDispatch(function(t4) { + o2 || (o2 = true, r3.resolve((function(t5) { + try { + return "function" == typeof e4 ? e4(t5) : t5; + } catch (e5) { + return x(e5); + } + })(t4))); + }, "when", [function(e5) { + o2 || (o2 = true, r3.resolve((function(e6) { + if ("function" == typeof t3) { + f(e6, n3); + try { + return t3(e6); + } catch (e7) { + return x(e7); + } + } + return x(e6); + })(e5))); + }]); + }), n3.promiseDispatch(void 0, "when", [void 0, function(e5) { + var t4, n4 = false; + try { + t4 = (function(e6) { + return "function" == typeof i3 ? i3(e6) : e6; + })(e5); + } catch (e6) { + if (n4 = true, !N.onerror) throw e6; + N.onerror(e6); + } + n4 || r3.notify(t4); + }]), r3.promise; + }, N.tap = function(e4, t3) { + return N(e4).tap(t3); + }, C.prototype.tap = function(e4) { + return e4 = N(e4), this.then(function(t3) { + return e4.fcall(t3).thenResolve(t3); + }); + }, N.when = b, C.prototype.thenResolve = function(e4) { + return this.then(function() { + return e4; + }); + }, N.thenResolve = function(e4, t3) { + return N(e4).thenResolve(t3); + }, C.prototype.thenReject = function(e4) { + return this.then(function() { + throw e4; + }); + }, N.thenReject = function(e4, t3) { + return N(e4).thenReject(t3); + }, N.nearer = E, N.isPromise = R, N.isPromiseAlike = w, N.isPending = function(e4) { + return R(e4) && "pending" === e4.inspect().state; + }, C.prototype.isPending = function() { + return "pending" === this.inspect().state; + }, N.isFulfilled = function(e4) { + return !R(e4) || "fulfilled" === e4.inspect().state; + }, C.prototype.isFulfilled = function() { + return "fulfilled" === this.inspect().state; + }, N.isRejected = function(e4) { + return R(e4) && "rejected" === e4.inspect().state; + }, C.prototype.isRejected = function() { + return "rejected" === this.inspect().state; + }; + var D, P = [], M = [], F = true; + function L() { + P.length = 0, M.length = 0, F || (F = true); + } + function x(e4) { + var t3 = C({ when: function(t4) { + return t4 && (function(e5) { + if (F) { + var t5 = d(M, e5); + -1 !== t5 && (M.splice(t5, 1), P.splice(t5, 1)); + } + })(this), t4 ? t4(e4) : this; + } }, function() { + return this; + }, function() { + return { state: "rejected", reason: e4 }; + }); + return (function(e5, t4) { + F && (M.push(e5), t4 && void 0 !== t4.stack ? P.push(t4.stack) : P.push("(no stack) " + t4)); + })(t3, e4), t3; + } + function k(e4) { + return C({ when: function() { + return e4; + }, get: function(t3) { + return e4[t3]; + }, set: function(t3, i3) { + e4[t3] = i3; + }, delete: function(t3) { + delete e4[t3]; + }, post: function(t3, i3) { + return null == t3 ? e4.apply(void 0, i3) : e4[t3].apply(e4, i3); + }, apply: function(t3, i3) { + return e4.apply(t3, i3); + }, keys: function() { + return h(e4); + } }, void 0, function() { + return { state: "fulfilled", value: e4 }; + }); + } + function V(e4, t3, i3) { + return N(e4).spread(t3, i3); + } + function U(e4, t3, i3) { + return N(e4).dispatch(t3, i3); + } + function B(e4) { + return b(e4, function(e5) { + var t3 = 0, i3 = O(); + return u(e5, function(n3, r3, o2) { + var a2; + R(r3) && "fulfilled" === (a2 = r3.inspect()).state ? e5[o2] = a2.value : (++t3, b(r3, function(n4) { + e5[o2] = n4, 0 === --t3 && i3.resolve(e5); + }, i3.reject, function(e6) { + i3.notify({ index: o2, value: e6 }); + })); + }, void 0), 0 === t3 && i3.resolve(e5), i3.promise; + }); + } + function G(e4) { + if (0 === e4.length) return N.resolve(); + var t3 = N.defer(), i3 = 0; + return u(e4, function(n3, r3, o2) { + var a2 = e4[o2]; + i3++, b(a2, function(e5) { + t3.resolve(e5); + }, function() { + 0 === --i3 && t3.reject(new Error("Can't get fulfillment value from any promise, all promises were rejected.")); + }, function(e5) { + t3.notify({ index: o2, value: e5 }); + }); + }, void 0), t3.promise; + } + function j(e4) { + return b(e4, function(e5) { + return e5 = c(e5, N), b(B(c(e5, function(e6) { + return b(e6, n2, n2); + })), function() { + return e5; + }); + }); + } + N.resetUnhandledRejections = L, N.getUnhandledReasons = function() { + return P.slice(); + }, N.stopUnhandledRejectionTracking = function() { + L(), F = false; + }, L(), N.reject = x, N.fulfill = k, N.master = function(e4) { + return C({ isDef: function() { + } }, function(t3, i3) { + return U(e4, t3, i3); + }, function() { + return N(e4).inspect(); + }); + }, N.spread = V, C.prototype.spread = function(e4, t3) { + return this.all().then(function(t4) { + return e4.apply(void 0, t4); + }, t3); + }, N.async = function(e4) { + return function() { + function t3(e5, t4) { + var o2; + if ("undefined" == typeof StopIteration) { + try { + o2 = i3[e5](t4); + } catch (e6) { + return x(e6); + } + return o2.done ? N(o2.value) : b(o2.value, n3, r3); + } + try { + o2 = i3[e5](t4); + } catch (e6) { + return (function(e7) { + return "[object StopIteration]" === m(e7) || e7 instanceof s; + })(e6) ? N(e6.value) : x(e6); + } + return b(o2, n3, r3); + } + var i3 = e4.apply(this, arguments), n3 = t3.bind(t3, "next"), r3 = t3.bind(t3, "throw"); + return n3(); + }; + }, N.spawn = function(e4) { + N.done(N.async(e4)()); + }, N.return = function(e4) { + throw new s(e4); + }, N.promised = function(e4) { + return function() { + return V([this, B(arguments)], function(t3, i3) { + return e4.apply(t3, i3); + }); + }; + }, N.dispatch = U, C.prototype.dispatch = function(e4, t3) { + var i3 = this, n3 = O(); + return N.nextTick(function() { + i3.promiseDispatch(n3.resolve, e4, t3); + }), n3.promise; + }, N.get = function(e4, t3) { + return N(e4).dispatch("get", [t3]); + }, C.prototype.get = function(e4) { + return this.dispatch("get", [e4]); + }, N.set = function(e4, t3, i3) { + return N(e4).dispatch("set", [t3, i3]); + }, C.prototype.set = function(e4, t3) { + return this.dispatch("set", [e4, t3]); + }, N.del = N.delete = function(e4, t3) { + return N(e4).dispatch("delete", [t3]); + }, C.prototype.del = C.prototype.delete = function(e4) { + return this.dispatch("delete", [e4]); + }, N.mapply = N.post = function(e4, t3, i3) { + return N(e4).dispatch("post", [t3, i3]); + }, C.prototype.mapply = C.prototype.post = function(e4, t3) { + return this.dispatch("post", [e4, t3]); + }, N.send = N.mcall = N.invoke = function(e4, t3) { + return N(e4).dispatch("post", [t3, l(arguments, 2)]); + }, C.prototype.send = C.prototype.mcall = C.prototype.invoke = function(e4) { + return this.dispatch("post", [e4, l(arguments, 1)]); + }, N.fapply = function(e4, t3) { + return N(e4).dispatch("apply", [void 0, t3]); + }, C.prototype.fapply = function(e4) { + return this.dispatch("apply", [void 0, e4]); + }, N.try = N.fcall = function(e4) { + return N(e4).dispatch("apply", [void 0, l(arguments, 1)]); + }, C.prototype.fcall = function() { + return this.dispatch("apply", [void 0, l(arguments)]); + }, N.fbind = function(e4) { + var t3 = N(e4), i3 = l(arguments, 1); + return function() { + return t3.dispatch("apply", [this, i3.concat(l(arguments))]); + }; + }, C.prototype.fbind = function() { + var e4 = this, t3 = l(arguments); + return function() { + return e4.dispatch("apply", [this, t3.concat(l(arguments))]); + }; + }, N.keys = function(e4) { + return N(e4).dispatch("keys", []); + }, C.prototype.keys = function() { + return this.dispatch("keys", []); + }, N.all = B, C.prototype.all = function() { + return B(this); + }, N.any = G, C.prototype.any = function() { + return G(this); + }, N.allResolved = (D = j, function() { + return "undefined" != typeof console && "function" == typeof console.warn && console.warn("allResolved is deprecated, use allSettled instead.", new Error("").stack), D.apply(D, arguments); + }), C.prototype.allResolved = function() { + return j(this); + }, N.allSettled = function(e4) { + return N(e4).allSettled(); + }, C.prototype.allSettled = function() { + return this.then(function(e4) { + return B(c(e4, function(e5) { + function t3() { + return e5.inspect(); + } + return (e5 = N(e5)).then(t3, t3); + })); + }); + }, N.fail = N.catch = function(e4, t3) { + return N(e4).then(void 0, t3); + }, C.prototype.fail = C.prototype.catch = function(e4) { + return this.then(void 0, e4); + }, N.progress = function(e4, t3) { + return N(e4).then(void 0, void 0, t3); + }, C.prototype.progress = function(e4) { + return this.then(void 0, void 0, e4); + }, N.fin = N.finally = function(e4, t3) { + return N(e4).finally(t3); + }, C.prototype.fin = C.prototype.finally = function(e4) { + return e4 = N(e4), this.then(function(t3) { + return e4.fcall().then(function() { + return t3; + }); + }, function(t3) { + return e4.fcall().then(function() { + throw t3; + }); + }); + }, N.done = function(e4, t3, i3, n3) { + return N(e4).done(t3, i3, n3); + }, C.prototype.done = function(e4, t3, i3) { + var n3 = function(e5) { + N.nextTick(function() { + if (f(e5, r3), !N.onerror) throw e5; + N.onerror(e5); + }); + }, r3 = e4 || t3 || i3 ? this.then(e4, t3, i3) : this; + "object" == typeof process && process && process.domain && (n3 = process.domain.bind(n3)), r3.then(void 0, n3); + }, N.timeout = function(e4, t3, i3) { + return N(e4).timeout(t3, i3); + }, C.prototype.timeout = function(e4, t3) { + var i3 = O(), n3 = setTimeout(function() { + t3 && "string" != typeof t3 || ((t3 = new Error(t3 || "Timed out after " + e4 + " ms")).code = "ETIMEDOUT"), i3.reject(t3); + }, e4); + return this.then(function(e5) { + clearTimeout(n3), i3.resolve(e5); + }, function(e5) { + clearTimeout(n3), i3.reject(e5); + }, i3.notify), i3.promise; + }, N.delay = function(e4, t3) { + return void 0 === t3 && (t3 = e4, e4 = void 0), N(e4).delay(t3); + }, C.prototype.delay = function(e4) { + return this.then(function(t3) { + var i3 = O(); + return setTimeout(function() { + i3.resolve(t3); + }, e4), i3.promise; + }); + }, N.nfapply = function(e4, t3) { + return N(e4).nfapply(t3); + }, C.prototype.nfapply = function(e4) { + var t3 = O(), i3 = l(e4); + return i3.push(t3.makeNodeResolver()), this.fapply(i3).fail(t3.reject), t3.promise; + }, N.nfcall = function(e4) { + var t3 = l(arguments, 1); + return N(e4).nfapply(t3); + }, C.prototype.nfcall = function() { + var e4 = l(arguments), t3 = O(); + return e4.push(t3.makeNodeResolver()), this.fapply(e4).fail(t3.reject), t3.promise; + }, N.nfbind = N.denodeify = function(e4) { + var t3 = l(arguments, 1); + return function() { + var i3 = t3.concat(l(arguments)), n3 = O(); + return i3.push(n3.makeNodeResolver()), N(e4).fapply(i3).fail(n3.reject), n3.promise; + }; + }, C.prototype.nfbind = C.prototype.denodeify = function() { + var e4 = l(arguments); + return e4.unshift(this), N.denodeify.apply(void 0, e4); + }, N.nbind = function(e4, t3) { + var i3 = l(arguments, 2); + return function() { + var n3 = i3.concat(l(arguments)), r3 = O(); + return n3.push(r3.makeNodeResolver()), N(function() { + return e4.apply(t3, arguments); + }).fapply(n3).fail(r3.reject), r3.promise; + }; + }, C.prototype.nbind = function() { + var e4 = l(arguments, 0); + return e4.unshift(this), N.nbind.apply(void 0, e4); + }, N.nmapply = N.npost = function(e4, t3, i3) { + return N(e4).npost(t3, i3); + }, C.prototype.nmapply = C.prototype.npost = function(e4, t3) { + var i3 = l(t3 || []), n3 = O(); + return i3.push(n3.makeNodeResolver()), this.dispatch("post", [e4, i3]).fail(n3.reject), n3.promise; + }, N.nsend = N.nmcall = N.ninvoke = function(e4, t3) { + var i3 = l(arguments, 2), n3 = O(); + return i3.push(n3.makeNodeResolver()), N(e4).dispatch("post", [t3, i3]).fail(n3.reject), n3.promise; + }, C.prototype.nsend = C.prototype.nmcall = C.prototype.ninvoke = function(e4) { + var t3 = l(arguments, 1), i3 = O(); + return t3.push(i3.makeNodeResolver()), this.dispatch("post", [e4, t3]).fail(i3.reject), i3.promise; + }, N.nodeify = function(e4, t3) { + return N(e4).nodeify(t3); + }, C.prototype.nodeify = function(e4) { + if (!e4) return this; + this.then(function(t3) { + N.nextTick(function() { + e4(null, t3); + }); + }, function(t3) { + N.nextTick(function() { + e4(t3); + }); + }); + }; + var W = A(); + return N; + }); + }, 33235: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.DurationType = void 0; + const n2 = i2(31635), r2 = i2(17604), o = n2.__importDefault(i2(73198)), a = i2(79467), s = i2(80428), l = i2(94765), u = i2(63824); + class d extends l.ExpressionType { + constructor(e3, t3, i3) { + super(e3, t3, i3), this.expressionOptionClass = a.ExpressionTypeDurationOptions; + } + get className() { + return "DurationType"; + } + createExpressionOptionClass() { + return new a.ExpressionTypeDurationOptions(); + } + convertLitToExpression(e3, t3) { + const i3 = u.matchText(t3); + return i3 ? (0, r2.sprintf)("MakeDuration(%s,%s,%s,%s,%s)", i3[0], i3[1], i3[2], i3[3], i3[4]) : t3; + } + _getLiteralValueOfExpression(e3) { + const t3 = u.matchExpression(e3.text); + return u.getXsdString(t3) || e3.text || ""; + } + getYamlObjectForLiteralSingleton(e3) { + super.getYamlObjectForLiteralSingleton(e3); + const t3 = u.matchText(e3.text); + if (!t3) return ""; + const i3 = {}; + return t3[0] && (i3.days = t3[0]), t3[1] && (i3.hours = t3[1]), t3[2] && (i3.minutes = t3[2]), t3[3] && (i3.seconds = t3[3]), !t3[4] && Object.keys(i3).length || (i3.ms = t3[4]), i3; + } + searchExpression(e3, t3) { + if (t3.isLiteralMode) { + const i3 = u.getSearchStringFromLiteral(t3.text); + e3.checkText(t3, i3, t3.label); + } else super.searchExpression(e3, t3); + } + toNumber(e3) { + return u.toSeconds(e3); + } + toMilliseconds(e3) { + const t3 = u.toSeconds(e3); + return void 0 !== t3 ? t3 * o.default.msPerSecond : null; + } + } + t2.DurationType = d, d.typeIdentifier = s.expressionTypeNames.duration; + }, 33237: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.ExpressionTypeSurveyQuestionOptions = void 0; + const n2 = i2(65615); + class r2 extends n2.BaseExpressionTypeCollectionOptions { + static create(e3, t3) { + return new this(t3).invokeOptionsCallback(e3); + } + constructor(e3) { + super(e3); + } + get className() { + return "ExpressionTypeSurveyQuestionOptions"; + } + get isExpressionTypeSurveyQuestionOptions() { + return true; + } + } + t2.ExpressionTypeSurveyQuestionOptions = r2; + }, 33264: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.decisionTableManager = t2.DecisionTableManager = void 0; + const n2 = i2(31635), r2 = n2.__importStar(i2(83277)), o = n2.__importStar(i2(1360)), a = n2.__importStar(i2(24032)), s = i2(30801), l = n2.__importDefault(i2(47532)), u = n2.__importDefault(i2(62979)), d = i2(53649), c = i2(81801), p = i2(27862); + class _ extends l.default { + constructor() { + super(), this.topic = a.getTopic("DecisionTableManager"), this.apiCallList = r2.getDecisionTables, this.apiCallSingle = r2.getDecisionTable, this._rawServerCache = {}, this.actionPropertyForUsageSearch = "actionId", this.actionsForUsageSearch = [s.callDecisionTableActionType], this.additionalQueryParams = { withPublishedVersion: true }, this.className = "DecisionTableManager", this.defaultMatchingStyle = o.startsWith, this.dependencyContext = null, this.idEquivalent = "tableId", this.securityError = true, this.suppressSearch = false, this.uiMetadataSectionName = "decisionTable", this.useStartsWithKeywordForExactMatch = true, this.defaultPageSize = 100, this._initialize(); + } + get requiredAuth() { + return c.externalAuthorizations.authStrings.decisionTablesSearch; + } + get dependencyType() { + return p.DecisionTable; + } + _createItemViewModel(e3) { + return new d.DecisionTableViewModel(e3); + } + get _networkModel() { + return u.default; + } + get isDecisionTableManager() { + return true; + } + getOrFetchItem(e3) { + return n2.__awaiter(this, void 0, void 0, function* () { + const t3 = this.getItem(e3); + return (null == t3 ? void 0 : t3.successSchema) && (null == t3 ? void 0 : t3.inputSchema) ? Promise.resolve(t3) : this.fetchItem(e3); + }); + } + addItemToFlowMetadata(e3, t3, i3) { + const n3 = e3.isFlowViewModel ? e3 : e3.parentFlow; + return n3.getUiMetadataInfoById(this.uiMetadataSectionName, i3) && n3.tryRemoveUiMetadataInfo(e3, this.uiMetadataSectionName, i3, this.actionsForUsageSearch, this.actionPropertyForUsageSearch, true), n3.setUiMetadataInfo(this.uiMetadataSectionName, { tableId: i3, name: t3 }, this.idEquivalent), true; + } + } + t2.DecisionTableManager = _, t2.decisionTableManager = new _(); + }, 33286: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(81574)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "journeyNetworkConnectivity"; + } + get carrier() { + } + get bluetoothEnabled() { + } + get cellularEnabled() { + } + get wifiEnabled() { + } + get displayTypeName() { + return "ArchValueJourneyNetworkConnectivity"; + } + get isArchValueJourneyNetworkConnectivity() { + return true; + } + } + t2.default = r2; + }, 33296: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.BaseOptionSetting = void 0; + const n2 = i2(98126); + t2.BaseOptionSetting = class { + clone() { + return (0, n2.clone)(this); + } + }; + }, 33336: (e2, t2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.getIndentPositionForNode = function(e3, t3, i2) { + if (null == e3 ? void 0 : e3.length) for (let n2 = t3; n2 < i2; n2++) switch (e3.charCodeAt(n2)) { + case 9: + case 10: + case 13: + case 32: + break; + default: + return n2; + } + return t3; + }; + }, 33344: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(20692)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "surveyAnswerOptionCollection"; + } + get displayTypeName() { + return "ArchVariableSurveyAnswerOptionCollection"; + } + get initialValue() { + return this._initialValue; + } + get isArchVariableSurveyAnswerOptionCollection() { + return true; + } + } + t2.default = r2; + }, 33380: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.botFlowKnowledgeSettingsSequences = void 0; + const n2 = i2(31635), r2 = i2(28562), o = i2(80295), a = i2(73324); + class s extends a.BaseBotActionSettingsSequence { + constructor() { + super("knowledgeSettings"); + } + get knowledgeInitialResponseMultiSequence() { + const e3 = this.generateLanguageSequencesDefaultSequence("knowledgeInitialResponseMulti"), t3 = { digitalbot: { builderId: r2.builderIds.parts.markdownCommunication, languageSequences: e3 } }; + return this.generateLanguageSequenceConfig("KnowledgeInitialResponseMulti", r2.builderIds.parts.genericCommunication, e3, t3); + } + get knowledgeInitialResponseMultiRetrySequence() { + const e3 = this.generateLanguageSequencesDefaultSequence("knowledgeInitialResponseMultiRetry"), t3 = { digitalbot: { builderId: r2.builderIds.parts.markdownCommunication, languageSequences: e3 } }; + return this.generateLanguageSequenceConfig("KnowledgeInitialResponseMultiRetry", r2.builderIds.parts.genericCommunication, e3, t3); + } + get knowledgeNoMatchSequence() { + const e3 = this.generateLanguageSequencesDefaultSequence("knowledgeNoMatch"), t3 = { digitalbot: { builderId: r2.builderIds.parts.markdownCommunication, languageSequences: e3 } }; + return this.generateLanguageSequenceConfig("KnowledgeNoMatch", r2.builderIds.parts.genericCommunication, e3, t3); + } + get knowledgeConfirmationSequence() { + const e3 = this.generateLanguageSequencesDefaultSequence("knowledgeConfirmation"), t3 = { digitalbot: { builderId: r2.builderIds.parts.markdownCommunication, languageSequences: e3 } }; + return this.generateLanguageSequenceConfig("KnowledgeConfirmation", r2.builderIds.parts.genericCommunication, e3, t3); + } + get knowledgeFollowupSequence() { + const e3 = this.generateLanguageSequencesDefaultSequence("knowledgeFollowup"), t3 = { digitalbot: { builderId: r2.builderIds.parts.markdownCommunication, languageSequences: e3 } }; + return this.generateLanguageSequenceConfig("KnowledgeFollowup", r2.builderIds.parts.genericCommunication, e3, t3); + } + } + n2.__decorate([(0, o.enumerable)(true), n2.__metadata("design:type", Object), n2.__metadata("design:paramtypes", [])], s.prototype, "knowledgeInitialResponseMultiSequence", null), n2.__decorate([(0, o.enumerable)(true), n2.__metadata("design:type", Object), n2.__metadata("design:paramtypes", [])], s.prototype, "knowledgeInitialResponseMultiRetrySequence", null), n2.__decorate([(0, o.enumerable)(true), n2.__metadata("design:type", Object), n2.__metadata("design:paramtypes", [])], s.prototype, "knowledgeNoMatchSequence", null), n2.__decorate([(0, o.enumerable)(true), n2.__metadata("design:type", Object), n2.__metadata("design:paramtypes", [])], s.prototype, "knowledgeConfirmationSequence", null), n2.__decorate([(0, o.enumerable)(true), n2.__metadata("design:type", Object), n2.__metadata("design:paramtypes", [])], s.prototype, "knowledgeFollowupSequence", null), t2.botFlowKnowledgeSettingsSequences = new s(); + }, 33381: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.FlowReferenceProperty = void 0; + const n2 = i2(31635), r2 = i2(96618), o = i2(17604), a = n2.__importDefault(i2(92140)), s = n2.__importStar(i2(30260)), l = n2.__importStar(i2(17498)), u = n2.__importDefault(i2(98114)), d = n2.__importStar(i2(18325)), c = i2(88473), p = i2(55867), _ = i2(44307), h = i2(37345), m = i2(47957); + class g extends p.BaseActionProperty { + constructor(e3, t3, i3, n3, r3, o2) { + super(e3, t3), this._supportsSpecificVersion = true, this._showVersionSelection = true, this._isRefreshingFlowReferenceCounter = 0, this._actionWithFlowSchemaRef = e3, this._flowType = i3, this._flowListManager = s.getManagerForFlowType(this._flowType, true), this._modelPropNames = g.createModelPropNames(o2, this._flowType), this._outOfServiceProvider = (0, c.addOutOfServiceProperties)(this), false === n3 && (this._supportsSpecificVersion = false), false === r3 && (this._showVersionSelection = false); + } + get isFlowReferenceProperty() { + return true; + } + get className() { + return "FlowReferenceProperty"; + } + get isRefreshingFlowReference() { + return this._isRefreshingFlowReferenceCounter > 0; + } + setIsRefreshingFlowReference(e3) { + e3 ? this._isRefreshingFlowReferenceCounter++ : this._isRefreshingFlowReferenceCounter--; + } + getConfiguration(e3, t3) { + var i3, n3, r3, o2; + if (null == t3 ? void 0 : t3.isForFlowYaml) { + (0, _.snapshotReferencedObject)(e3, this.flowType, this.flowName, this.flowDefaultLanguage, this.flowInputs, this.flowOutputs); + const s2 = {}, l2 = this.getReferencedFlowName(); + if (!l2) return a.default.ensureYamlNoneTrue(s2), s2; + const u2 = (s2[l2] = {}).ver_latestPublished = {}; + return (null === (i3 = this.flowInputs) || void 0 === i3 ? void 0 : i3.length) || (null === (n3 = this.flowOutputs) || void 0 === n3 ? void 0 : n3.length) ? ((null === (r3 = this.flowInputs) || void 0 === r3 ? void 0 : r3.length) && (u2.inputs = this.flowInputs.getConfiguration(e3, t3)), (null === (o2 = this.flowOutputs) || void 0 === o2 ? void 0 : o2.length) && (u2.outputs = this.flowOutputs.getConfiguration(e3, t3)), s2) : (a.default.ensureYamlNoneTrue(u2), s2); + } + return console.error("Trying to access FlowReferenceProperty.getConfiguration for non-flow-YAML"), null; + } + getReferencedFlowName() { + var e3; + const t3 = null === (e3 = this._flowListManager) || void 0 === e3 ? void 0 : e3.getItem(this.flowId); + return (null == t3 ? void 0 : t3.displayName) || this.flowName; + } + getReferencedFlowDefaultLanguage() { + var e3, t3; + const i3 = null === (e3 = this._flowListManager) || void 0 === e3 ? void 0 : e3.getItem(this.flowId); + if (null === (t3 = null == i3 ? void 0 : i3.supportedLanguages) || void 0 === t3 ? void 0 : t3.length) { + for (const e4 of i3.supportedLanguages) if (e4.isDefault) return e4.language; + } + } + getDetailDescription() { + const e3 = this.getReferencedFlowName(); + return e3 ? { label: u.default.getFlowTypeDisplayName(this.flowType), value: this.flowVersion ? (0, o.sprintf)(m.nameAndVersion, e3, this.flowVersion) : e3 } : null; + } + get flowId() { + return this.action.model[this._modelPropNames.idPropName]; + } + set flowId(e3) { + this.action.model[this._modelPropNames.idPropName] = e3; + } + get flowDefaultLanguage() { + return this.getReferencedFlowDefaultLanguage(); + } + get flowName() { + return this.action.model[this._modelPropNames.namePropName]; + } + set flowName(e3) { + this.action.model[this._modelPropNames.namePropName] = e3; + } + get flowVersion() { + return this.action.model[this._modelPropNames.versionPropName]; + } + set flowVersion(e3) { + this.action.model[this._modelPropNames.versionPropName] = e3; + } + outOfServiceChanged() { + this.action.model[this._modelPropNames.outOfServicePropName] = this.outOfService; + } + get isFlowRefLatestPublished() { + return this.action.model[this._modelPropNames.latestVersionPropName]; + } + set isFlowRefLatestPublished(e3) { + this.action.model[this._modelPropNames.latestVersionPropName] = e3; + } + get isFlowRefDebugPublish() { + return this.action.model[this._modelPropNames.debugPublishedPropName]; + } + set isFlowRefDebugPublish(e3) { + this.action.model[this._modelPropNames.debugPublishedPropName] = e3; + } + get flowType() { + return this._flowType; + } + setFlowById(e3, t3, i3) { + return n2.__awaiter(this, void 0, void 0, function* () { + return yield this.setReferenceWithFlowInfo(this.getFlowInfoReference(e3), i3, t3); + }); + } + setReferenceWithFlowInfo(e3, t3, i3) { + return n2.__awaiter(this, void 0, void 0, function* () { + if (e3 && e3.type !== this.flowType) throw new Error(`flowInfoViewModel is not of type ${this.flowType}`); + return e3 ? (this.flowName = e3.displayName, this.flowId = e3.id, this.flowVersion = t3, this.isFlowRefLatestPublished = !t3, this.isFlowRefDebugPublish = i3, yield this.refreshFlowSchema(e3), this.validateAction(), e3) : (this.clearReference(), void this.validateAction()); + }); + } + destroy() { + this.flowListManager.tryRemoveItemFromFlowMetadata(this.action, this.flowId), this._outOfServiceProvider.destroy(); + } + get hasError() { + return this.getErrors(false).length > 0; + } + getErrors(e3) { + if (!this.outOfService) { + const e4 = this.getFlowInfoReference(this.flowId); + if (!e4 || e4.deleted) return [(0, o.sprintf)(m.missingReference, u.default.getFlowTypeDisplayName(this.flowType))]; + } + return []; + } + validate(e3) { + super.validate(e3), this.getErrors(true).forEach((t4) => e3.addError(this.action, t4)); + const t3 = this.getFlowInfoReference(this.flowId); + t3 && e3.isDeep && this.mergeSchemaProperties(t3); + } + updateDependencies() { + if (super.updateDependencies(), this.flowName && this.flowId && !this.outOfService) { + const e3 = this.isFlowRefLatestPublished ? d.published : this.isFlowRefDebugPublish ? d.debug : this.flowVersion; + l.registerConsumer(this.action, this.flowListManager.dependencyContext, this.flowName, this.flowId, e3, this.flowListManager.dependencyType); + } else l.unRegisterConsumer(this.action, this.flowListManager.dependencyContext); + } + get flowListManager() { + return this._flowListManager; + } + get supportsSpecificVersion() { + return this._supportsSpecificVersion; + } + get showVersionSelection() { + return this._showVersionSelection; + } + getFlowInfoReference(e3) { + let t3; + return !e3 || (t3 = this.flowListManager.getItem(e3), !this.flowListManager.fullManager || t3 && this.hasCorrectFlowInfo(t3)) || (t3 = this.flowListManager.getItemFromFullManager(e3) || t3), t3; + } + search(e3) { + var t3, i3; + super.search(e3), this.flowName && !this.outOfService && e3.checkText(this.action, this.flowName, null !== (i3 = null === (t3 = this.getDetailDescription()) || void 0 === t3 ? void 0 : t3.label) && void 0 !== i3 ? i3 : m.commonModule.hardcodedTaskName); + } + _initializeDesignTime() { + if (super._initializeDesignTime(), this.flowId) { + const e3 = this.getFlowInfoReference(this.flowId); + e3 ? e3.deleted || (this.flowVersion || this.isFlowRefLatestPublished || (this.isFlowRefLatestPublished = true), this.refreshFlowSchema(e3)) : this.traceTopic.warning(`missing flowInfoViewModel for id:${this.flowId}`); + } + } + get flowInputs() { + return this._actionWithFlowSchemaRef.flowInputs; + } + get flowOutputs() { + return this._actionWithFlowSchemaRef.flowOutputs; + } + clearReference() { + this.flowListManager.tryRemoveItemFromFlowMetadata(this.action, this.flowId), this.flowName = void 0, this.flowId = void 0, this.flowVersion = void 0, this.isFlowRefDebugPublish = false, this.flowOutputs && this.flowOutputs.destroyChildren(), this.flowInputs && this.flowInputs.destroyChildren(), this.invokeSchemaRefreshedCallback(); + } + mergeSchemaProperties(e3) { + if (!this.parentFlow.isReadOnly) { + if (e3) { + if (this.flowOutputs) { + const t3 = this.getSchema(e3, false); + t3 && this.flowListManager.mergeSchemaProperties(t3.properties, this.flowOutputs); + } + if (this.flowInputs && e3.inputSchema) { + const t3 = this.getSchema(e3, true); + t3 && this.flowListManager.mergeSchemaProperties(t3.properties, this.flowInputs); + } + this.flowName = e3.displayName, this.flowListManager.addItemToFlowMetadata(this.action, this.flowName, this.flowId); + } + this.invokeSchemaRefreshedCallback(); + } + } + refreshFlowSchema(e3) { + return n2.__awaiter(this, void 0, void 0, function* () { + if (this.parentFlow.isReadOnly) return e3; + if (this.hasCorrectFlowInfo(e3)) return this.mergeSchemaProperties(e3), e3; + if (!this.flowVersion) return e3; + this.traceTopic.info(`fetching flow schema for flow id:${this.flowId} version: ${this.flowVersion}`), this.setIsRefreshingFlowReference(true); + try { + const t3 = yield h.getFlowInfoForVersion(this.flowId, this.flowVersion); + return e3.loadAlternateSchema(this.flowVersion, t3), e3; + } catch (e4) { + this.traceTopic.requestError(e4, `failed to get flow schema for flow id:${this.flowId} version: ${this.flowVersion} to get its schema`); + } finally { + this.mergeSchemaProperties(e3), this.setIsRefreshingFlowReference(false); + } + }); + } + hasCorrectFlowInfo(e3) { + if (e3.hasLoadedSchemas) { + if (this.isFlowRefLatestPublished || this.isFlowRefDebugPublish) return true; + if (this.flowVersion && e3.alternateOutputSchemas[this.flowVersion] || e3.alternateInputSchemas[this.flowVersion]) return true; + } + return false; + } + getFlowInfo() { + return this.getFlowInfoReference(this.flowId); + } + getSchema(e3, t3) { + return !t3 || !this.isFlowRefLatestPublished && e3.alternateInputSchemas[this.flowVersion] ? t3 ? e3.alternateInputSchemas[this.flowVersion] : this.isFlowRefLatestPublished || !e3.alternateOutputSchemas[this.flowVersion] ? e3.outputSchema : e3.alternateOutputSchemas[this.flowVersion] : e3.inputSchema; + } + setSchemaRefreshedCallback(e3) { + a.default.isFunction(e3) && (this._schemaRefreshedCallback = e3); + } + invokeSchemaRefreshedCallback() { + if (a.default.isFunction(this._schemaRefreshedCallback)) try { + this._schemaRefreshedCallback(); + } catch (e3) { + this.traceTopic.exception(e3, "exception calling _schemaRefreshedCallback"); + } + } + static createModelPropNames(e3, t3) { + const i3 = e3 ? `${r2.flowTypes.getCamelCasedFlowTypeStr(t3)}Flow` : "flow"; + return { debugPublishedPropName: `${i3}DebugPublished`, idPropName: `${i3}Id`, latestVersionPropName: `${i3}LatestVersion`, namePropName: `${i3}Name`, outOfServicePropName: `${i3}OutOfService`, versionPropName: `${i3}Version` }; + } + static createCreateDetails(e3) { + const t3 = this.createModelPropNames(e3.useFlowTypeSpecificModelProps, null == e3 ? void 0 : e3.flowType); + return { create: (t4, i3) => new g(t4, i3, e3.flowType, e3.supportsSpecificVersion, e3.showVersionSelection, e3.useFlowTypeSpecificModelProps), getCreateClass: () => g, modelProperties: [t3.idPropName, t3.namePropName, t3.versionPropName, t3.latestVersionPropName, t3.debugPublishedPropName] }; + } + } + t2.FlowReferenceProperty = g; + }, 33416: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.SmsPhoneNumberList = void 0; + const n2 = i2(31635), r2 = i2(80295), o = i2(15116), a = i2(49756); + class s extends o.PagedList { + constructor(e3) { + super(e3); + } + get entities() { + return this._entities; + } + set entities(e3) { + this._entities = this.reviveArray(e3, a.SmsPhoneNumber); + } + } + t2.SmsPhoneNumberList = s, n2.__decorate([(0, r2.enumerable)(true), n2.__metadata("design:type", Array), n2.__metadata("design:paramtypes", [Array])], s.prototype, "entities", null); + }, 33423: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(13720)); + class r2 extends n2.default { + get displayTypeName() { + return "ArchBaseFilterClause"; + } + get isArchBaseFilterClause() { + return true; + } + } + t2.default = r2; + }, 33513: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importDefault(i2(92140)), o = i2(30801), a = n2.__importDefault(i2(11210)); + class s extends a.default { + constructor(e3) { + super(e3); + } + get _actionTypeId() { + return o.endTaskActionType; + } + get displayTypeName() { + return this._scriptingName; + } + get isArchActionEndTask() { + return true; + } + get targetBranch() { + if (!this._targetArchBranch && this._getCoreViewModel().pathReference) { + const e3 = this._coreActionViewModel.topParent; + if (e3 && r2.default.isFunction(e3.getBranches)) { + const t3 = e3.getBranches(), i3 = r2.default.findWhere(t3, { outputId: this._getCoreViewModel().pathReference }); + i3 && (this._targetArchBranch = this.coreFactory.createArchWrapper(i3)); + } + } + return this._targetArchBranch; + } + set targetBranch(e3) { + this._checkItem(this._infoPropSet("newValue", "targetBranch"), !e3 || !e3.isArchBranch, "you cannot set the output to an object that is not an Architect branch object"), this._targetArchBranch = e3, this.logNote("setting the end task output branch to " + e3.logStr), this._getCoreViewModel().linkPath(e3._getCoreViewModel()); + } + } + t2.default = s; + }, 33527: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.createFunctions = function() { + h.expression = r2.default.pick(h.expression, function(e3) { + return e3.overloads = r2.default.pick(e3.overloads, function(e4) { + return !e4.hidden; + }), r2.default.each(e3.overloads, function(e4) { + r2.default.isBoolean(e4) || r2.default.isUndefined(e4) || (e4.examples = r2.default.pick(e4.examples, function(e5) { + return !e5.hidden; + })); + }), !r2.default.isEmpty(e3.overloads); + }), r2.default.each(h.category, function(e3, t3) { + const i3 = o.default[e3.name], n3 = o.default[e3.description]; + T[t3] = (0, c.createFuncOpCategory)(e3, i3, n3); + }), r2.default.each(h.expression, N), a.expressionDataService.makeListFunc = a.expressionDataService._getFuncOpForIdentifier("makeList"); + }; + const n2 = i2(31635), r2 = n2.__importDefault(i2(92140)), o = n2.__importDefault(i2(7342)), a = i2(27491), s = n2.__importDefault(i2(65302)), l = i2(71615), u = i2(80428), d = i2(58801), c = i2(58801), p = i2(58801), _ = i2(58801), h = i2(34005), m = a.expressionDataService.expressionFuncOps, g = a.expressionDataService.expressionFuncOpsByText, f = a.expressionDataService.expressionFuncOpsById, T = a.expressionDataService.expressionFuncOpCategories, y = a.expressionDataService.expressionFuncOpsByOverloadId; + function S(e3) { + return o.default[e3] || e3; + } + function A(e3, t3) { + return s.default.getGlobalTypeGroup().getType(e3, t3); + } + function N(e3) { + const t3 = e3.symbol || e3.name, i3 = S(e3.description); + let n3; + e3.category && (n3 = T[e3.category], n3 || console.error("Unknown category '" + e3.category + "' for function '" + e3.identifier + "'")); + const o2 = []; + let a2 = 0; + if (r2.default.each(e3.overloads, function(t4) { + const i4 = (function(e4, t5) { + if (!t5.support) return; + const i5 = []; + r2.default.each(t5.parameters, function(n5) { + const r3 = A(n5.type, n5.isArray); + r3 || console.error("Unknown parameter type '" + n5.type + "' for parameter '" + n5.identifier + "' in overload '" + t5.identifier + "' for function '" + e4.identifier + "' "); + const o4 = S(n5.description); + i5.push((0, _.createOperand)(n5, r3, o4)); + }); + const n4 = l.expressionResolvers.getResolver(t5.support.resolver); + !n4 && t5.support && "None" !== t5.support.resolver && console.error("No resolver found for: '" + t5.support.resolver + "'"); + const o3 = A(t5.returnValue.type, t5.returnValue.isArray); + o3 || console.error("Unknown return type '" + t5.returnValue.type + "' in overload '" + t5.identifier + "' for function + '" + e4.identifier + "'"); + const a3 = []; + let s2; + r2.default.each(t5.examples, function(e5) { + const t6 = { input: S(e5.input), output: S(e5.output) }; + e5.outputFlowCurrentLanguage && (t6.outputFlowCurrentLanguage = e5.outputFlowCurrentLanguage), e5.hidden && (t6.hidden = true), e5.featureConfigName && (t6.featureConfigName = e5.featureConfigName), e5.featureToggleName && (t6.featureToggleName = e5.featureToggleName), e5.addNewLineInfo && (t6.addNewLineInfo = true), a3.push(t6); + }), t5.passThrough && (s2 = { dataTypes: [], funcOpOverloadId: t5.passThrough.funcOpOverloadId, isArrayItemPassThrough: true === t5.passThrough.isArrayItemPassThrough }, r2.default.each(t5.passThrough.dataTypes, (i6) => { + const n5 = A(i6.type, i6.isArray); + n5 ? s2.dataTypes.push(n5) : console.error("Unknown return type '" + t5.returnValue.type + "' in overload '" + t5.identifier + "' for function + '" + e4.identifier + "'"); + })); + const u2 = S(t5.description), d2 = S(t5.returnValue.description); + return (0, p.createFuncOpOverload)(t5, u2, o3, d2, n4, i5, a3, s2); + })(e3, t4); + if (i4) { + let e4 = false; + if (t4.parameters && t4.parameters.length > 0) { + for (let i5 = 0; i5 < t4.parameters.length; i5++) if (t4.parameters[i5].type === u.expressionTypeNames.any) { + e4 = true; + break; + } + } + e4 ? o2.push(i4) : (o2.splice(a2, 0, i4), a2++), y[t4.identifier] = i4; + } + }), 0 !== o2.length) { + const a3 = (0, d.createFuncOp)(e3, t3, i3, n3, o2); + r2.default.each(o2, function(e4) { + e4.parent = a3; + }), m.push(a3); + const s2 = "_" + a3.text.toLocaleLowerCase(); + g[s2] || (g[s2] = []), g[s2].push(a3), f[a3.identifier] = a3; + } + } + }, 33534: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(84655)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "voiceSnippet"; + } + get initialValue() { + return this._initialValue; + } + get displayTypeName() { + return "ArchVariableVoiceSnippet"; + } + get isArchVariableVoiceSnippet() { + return true; + } + } + t2.default = r2; + }, 33577: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.getAgenticVirtualAgents = a, t2.getAgenticVirtualAgent = s, t2.getAgenticVirtualAgentVersion = l; + const n2 = i2(31635), r2 = n2.__importDefault(i2(36019)), o = n2.__importStar(i2(39424)); + function a(e3) { + return r2.default.build(o.getAgenticVirtualAgents).queryParams(e3.getSearchQueryParams()).call(); + } + function s(e3) { + const t3 = { agenticVirtualAgentId: e3 }; + return r2.default.build(o.getAgenticVirtualAgent).templateParams(t3).call(); + } + function l(e3, t3) { + const i3 = { agenticVirtualAgentId: e3, agenticVirtualAgentVersionId: null == t3 ? void 0 : t3.version }; + return r2.default.build(o.getAgenticVirtualAgentVersion).templateParams(i3).call(); + } + a.api = o.getAgenticVirtualAgents, s.api = o.getAgenticVirtualAgent, l.api = o.getAgenticVirtualAgentVersion; + }, 33588: (e2, t2, i2) => { + const n2 = i2(36019).default, r2 = i2(80517); + function o() { + } + o.prototype.getCurrentToken = function() { + return n2.build(r2.getCurrentToken).call(); + }, o.prototype.getCurrentUser = function() { + return n2.build(r2.getCurrentUser).call(); + }, o.prototype.getUser = function(e3) { + const t3 = n2.build(r2.getUser); + return t3.queryParams({ expand: "authorization" }), t3.templateParams({ id: e3 }).call(); + }, o.prototype.getUser.api = r2.getUser, o.prototype.getUserRolesAndPermissions = function(e3) { + return n2.build(r2.getUserRolesAndPermissions).templateParams({ id: e3 }).call(); + }, o.prototype.getUsers = function(e3) { + const t3 = n2.build(r2.getUsers), i3 = e3.get_q64searchContent(); + return t3.content(i3), t3.call(); + }, e2.exports = new o(); + }, 33631: (e2, t2, i2) => { + const n2 = i2(13240), { decisionActionType: r2 } = i2(30801), o = i2(7401); + function a() { + Object.defineProperties(this, { _expression: { writable: true } }), a.baseConstructor.apply(this, arguments); + } + n2.extend(a, r2, true), Object.defineProperties(a.prototype, { pasteResolveOldToNewValues: { value: function(e3) { + a._super.pasteResolveOldToNewValues.apply(this, arguments), this.expression.pasteResolveOldToNewValues(e3); + } }, pasteReIdOrRename: { value: function(e3) { + a._super.pasteReIdOrRename.apply(this, arguments), this.expression.pasteReIdOrRename(e3); + } }, expression: { enumerable: true, get: function() { + return this._expression; + }, set: function(e3) { + this._expression = this.reviveItem(e3, o); + } } }), e2.exports = a; + }, 33644: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = i2(99469), o = i2(51306), a = i2(28803), s = n2.__importDefault(i2(5730)), l = i2(47957); + class u extends s.default { + constructor(e3, t3) { + super(e3, t3); + } + static get managedProperties() { + return [{ property: "outcome", label: l.flowOutcomes.flowOutcome, options: r2.ManagedPropertyOptions.create((e3) => e3.setIninTestingField("outcome-selector").setDropdownPlaceholder(l.flowOutcomes.selectFlowOutcome).setUiPropertyOrder(0)), yamlOptions: u.createYamlOptions("flowOutcome", (e3) => e3.setPropertyName("flowOutcome")), createDetails: a.NetworkBasedActionProperty.createCreateDetails("outcomeId", "outcomeName", o.outcomeManager, l.flowOutcomes.mustSelectFlowOutcome, l.flowOutcomes.flowOutcomeNotFound, null) }]; + } + } + u.className = "BaseFlowOutcomeAction", t2.default = u; + }, 33653: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.checkPromptAudioDuration = c, t2.checkExpressionPromptReferences = function(e3) { + if (!e3.options || !e3.options.durationFacets) return; + let t3; + return o.default.find(e3.variables, function(i3) { + return i3.isPromptContainer && (t3 = c(e3, i3.id)), !!t3; + }), t3; + }, t2.checkBlankAudioLength = function(e3, t3) { + if (e3.options && e3.options.durationFacets) return e3.options.durationFacets.validateMilliseconds(t3, e3).isValid ? void 0 : (0, r2.sprintf)(d.expression.audioBlankExpressionTooLong, u.getSearchStringFromMilliseconds(e3.options.durationFacets.maxVal)); + }; + const n2 = i2(31635), r2 = i2(17604), o = n2.__importDefault(i2(92140)), a = i2(48109), s = n2.__importStar(i2(43011)), l = n2.__importDefault(i2(73198)), u = n2.__importStar(i2(63824)), d = i2(47957); + function c(e3, t3) { + if (!t3 || !e3.options || !e3.options.durationFacets) return; + const i3 = s.getItem(t3); + if (!i3) return; + const n3 = []; + return o.default.each(e3.languages, function(t4) { + const r3 = i3.getResource(t4.id.toLowerCase()); + if (r3) { + const i4 = r3.getAudioLength() * l.default.msPerSecond; + e3.options.durationFacets.validateMilliseconds(i4, e3).isValid || n3.push(t4.id); + } + }), n3.length > 0 ? (0, r2.sprintf)(d.expression.promptDurationTooLong, i3.expressionName, (0, a.getListDisplayString)(n3), u.getSearchStringFromMilliseconds(e3.options.durationFacets.maxVal)) : void 0; + } + }, 33667: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.default = function(e3, t3) { + if (t3.createDetails && t3.createDetails.create) { + e3[t3.property] && (o.default.isFunction(e3[t3.property].destroy) && e3[t3.property].destroy(), delete e3[t3.property]); + const i4 = e3[t3.property] = t3.createDetails.create(e3, t3); + return t3.supportedFlowTypes && i4.hasOutOfServiceProvider && (i4.supportedFlowTypes = t3.supportedFlowTypes, o.default.isFunction(i4.outOfServiceChanged) && i4.outOfServiceChanged(true)), i4; + } + if (t3.isJustForFlowYaml) return null; + let i3, n3, y, S = e3.model[t3.property]; + if (Array.isArray(t3.optionsForSpecificFlowTypes)) { + const i4 = t3.optionsForSpecificFlowTypes.find((t4) => t4.flowTypes.find((t5) => t5 === e3.parentFlow.type)); + o.default.isUndefined(i4) || (y = i4.options); + } + return y || (y = t3.options), e3.propertyChanged && (y = o.default.extend(y || {}, { valueChangedCallback: e3.propertyChanged.bind(e3) })), t3.audio ? (S = S || new r2(), i3 = new h.AudioViewModel(e3.parentFlow, e3, S, y), "preTransferAudio" === t3.property ? i3.defaultAudio.propertyName = "preTransferAudio" : "failureTransferAudio" === t3.property && (i3.defaultAudio.propertyName = "failureTransferAudio")) : t3.skills ? (S = S || [], i3 = new p.SkillValuePairs(e3, S, t3.yamlOptions)) : t3.variables ? (S = S || [], i3 = new _.VariableValuePairs(e3, S, y, t3.yamlOptions)) : t3.list ? (S = S || [], n3 = T.default.getType(e3.parentFlow, t3.type, false), i3 = t3.listHasReferenceId ? new d.ExpressionListWithReferenceId(e3, S, t3.label, n3, t3.property, y, t3.yamlOptions) : new u.ExpressionList(e3, S, t3.label, n3, t3.property, y, t3.yamlOptions)) : t3.dataList ? (S = S || [], i3 = new s.DataPairList(e3, S, !t3.isOutput, t3.allowSecure, y, t3.yamlOptions)) : t3.dataPairListCollection ? (S = S || [], i3 = new l.DataPairListCollection(e3, S, !t3.isOutput, t3.allowSecure, y)) : t3.namedItems ? (S = S || [], i3 = new c.NameValuePairs(e3, S, t3.isOutput, y, t3.yamlOptions)) : t3.choiceList ? (S = S || [], i3 = new a.default(e3, S, y)) : (S = S || new g.default(), n3 = T.default.getType(e3.parentFlow, t3.type, !!y && y.isCollection), y && y.className || (y = m.buildOptions(n3, t3 ? y : void 0, e3.parentFlow)), i3 = f.expression(e3.parentFlow, e3, S, t3.label, n3, t3.property, y)), i3.isExpressionContainer && t3.label && (i3.label = t3.label), i3.hasOutOfServiceProvider && (t3 && t3.supportedFlowTypes && (i3.supportedFlowTypes = t3.supportedFlowTypes, o.default.isFunction(i3.outOfServiceChanged) && i3.outOfServiceChanged(true)), t3 && (t3.featureFlags || y.featureToggleName) && (!t3.featureFlagEnabledForFlowTypes || t3.featureFlagEnabledForFlowTypes && o.default.contains(t3.featureFlagEnabledForFlowTypes, e3.parentFlow.type)) && ((function(e4, t4) { + e4 && t4 && (o.default.isArray(t4) || (t4 = [t4]), e4.featureFlags ? o.default.each(t4, function(t5) { + o.default.findIndex(e4.featureFlags, t5) || e4.featureFlags.push(t5); + }) : e4.featureFlags = t4); + })(i3, t3.featureFlags), o.default.isFunction(i3.outOfServiceChanged) && i3.outOfServiceChanged(true))), t3.hideFromModel || (e3.model[t3.property] = S), e3[t3.property] = i3, i3; + }; + const n2 = i2(31635), r2 = i2(2210), o = n2.__importDefault(i2(92140)), a = n2.__importDefault(i2(9386)), s = i2(15364), l = i2(39296), u = i2(71514), d = i2(60420), c = i2(29485), p = i2(27197), _ = i2(3986), h = i2(96353), m = n2.__importStar(i2(8462)), g = n2.__importDefault(i2(7401)), f = n2.__importStar(i2(81116)), T = n2.__importDefault(i2(65302)); + }, 33668: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.ExpressionTypeSurveyQuestionGroupOptions = void 0; + const n2 = i2(65615); + class r2 extends n2.BaseExpressionTypeCollectionOptions { + static create(e3, t3) { + return new this(t3).invokeOptionsCallback(e3); + } + constructor(e3) { + super(e3); + } + get className() { + return "ExpressionTypeSurveyQuestionGroupOptions"; + } + get isExpressionTypeSurveyQuestionGroupOptions() { + return true; + } + } + t2.ExpressionTypeSurveyQuestionGroupOptions = r2; + }, 33690: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.inqueueShortMessageFlowListManager = t2.InqueueShortMessageFlowListManager = void 0; + const n2 = i2(31635).__importStar(i2(24032)), r2 = i2(17475), o = i2(6109), a = i2(96618), s = i2(27862); + class l extends o.FlowListManager { + get dependencyType() { + return s.InqueueShortMessageFlow; + } + constructor() { + super(), this.topic = n2.getTopic("InqueueShortMessageFlowListManager"), this.briefManager = r2.briefInQueueShortMessageFlowListManager, this.additionalQueryParams = { type: a.flowTypes.flowTypeInQueueShortMessage }, this.className = "InqueueShortMessageFlowListManager", this.flowType = a.flowTypes.flowTypeInQueueShortMessage, this._rawServerCache = {}, this._initialize(); + } + } + t2.InqueueShortMessageFlowListManager = l, t2.inqueueShortMessageFlowListManager = new l(); + }, 33726: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(28562), r2 = i2(69149), o = { _label: "BotSlotQuestion", availableLanguages: { "ar-ae": "defaultSequence", "ar-eg": "defaultSequence", "ar-sa": "defaultSequence", "ca-es": "defaultSequence", "cs-cz": "defaultSequence", "da-dk": "defaultSequence", "de-ch": "defaultSequence", "de-de": "defaultSequence", "el-gr": "defaultSequence", "en-au": "defaultSequence", "en-gb": "defaultSequence", "en-us": "defaultSequence", "es-es": "defaultSequence", "es-mx": "defaultSequence", "es-us": "defaultSequence", "eu-es": "defaultSequence", "fi-fi": "defaultSequence", "fil-ph": "defaultSequence", "fr-be": "defaultSequence", "fr-ca": "defaultSequence", "fr-fr": "defaultSequence", "he-il": "defaultSequence", "hi-in": "localizedSequence1", "hu-hu": "defaultSequence", "it-it": "defaultSequence", "ja-jp": "localizedSequence1", "ko-kr": "localizedSequence1", "ms-my": "defaultSequence", "nb-no": "defaultSequence", "nl-be": "defaultSequence", "nl-nl": "defaultSequence", "pl-pl": "defaultSequence", "pt-br": "defaultSequence", "pt-pt": "defaultSequence", "ru-ru": "defaultSequence", "sv-se": "defaultSequence", "th-th": "localizedSequence2", "tr-tr": "defaultSequence", "uk-ua": "defaultSequence", "vi-vn": "defaultSequence", "zh-cn": "defaultSequence", "zh-hk": "defaultSequence", "zh-tw": "defaultSequence" }, builderId: n2.builderIds.parts.genericCommunication, flowTypeOverrides: { digitalbot: { builderId: n2.builderIds.parts.markdownCommunication, languageSequences: { defaultSequence: { _label: "bot_slot_question", partContents: [{ builderPartId: r2.builderPartIds.communication.text, parameters: { templateNoOverlaySection: "whatIs", templateNoOverlaySectionKey: "whatIsQuestionStr1" } }, { builderPartId: r2.builderPartIds.communication.text, parameters: { reference: "$selectedSlotName" } }, { builderPartId: r2.builderPartIds.communication.text, parameters: { templateNoOverlaySection: "whatIs", templateNoOverlaySectionKey: "whatIsQuestionStr2" } }] }, localizedSequence1: { _label: "bot_slot_question_seq_1", partContents: [{ builderPartId: r2.builderPartIds.communication.text, parameters: { reference: "$selectedSlotName" } }, { builderPartId: r2.builderPartIds.communication.text, parameters: { templateNoOverlaySection: "whatIs", templateNoOverlaySectionKey: "whatIsQuestionStr1" } }, { builderPartId: r2.builderPartIds.communication.text, parameters: { templateNoOverlaySection: "whatIs", templateNoOverlaySectionKey: "whatIsQuestionStr2" } }] }, localizedSequence2: { _label: "bot_slot_question_seq_2", partContents: [{ builderPartId: r2.builderPartIds.communication.text, parameters: { reference: "$selectedSlotName" } }, { builderPartId: r2.builderPartIds.communication.text, parameters: { templateNoOverlaySection: "whatIs", templateNoOverlaySectionKey: "whatIsQuestionStr1" } }] } } } }, languageSequences: { defaultSequence: { _label: "bot_slot_question", parts: [{ builderPartId: r2.builderPartIds.communication.text, parameters: { templateNoOverlaySection: "whatIs", templateNoOverlaySectionKey: "whatIsQuestionStr1" } }, { builderPartId: r2.builderPartIds.communication.text, parameters: { reference: "$selectedSlotName" } }, { builderPartId: r2.builderPartIds.communication.text, parameters: { templateNoOverlaySection: "whatIs", templateNoOverlaySectionKey: "whatIsQuestionStr2" } }] }, localizedSequence1: { _label: "bot_slot_question_seq_1", parts: [{ builderPartId: r2.builderPartIds.communication.text, parameters: { reference: "$selectedSlotName" } }, { builderPartId: r2.builderPartIds.communication.text, parameters: { templateNoOverlaySection: "whatIs", templateNoOverlaySectionKey: "whatIsQuestionStr1" } }, { builderPartId: r2.builderPartIds.communication.text, parameters: { templateNoOverlaySection: "whatIs", templateNoOverlaySectionKey: "whatIsQuestionStr2" } }] }, localizedSequence2: { _label: "bot_slot_question_seq_2", parts: [{ builderPartId: r2.builderPartIds.communication.text, parameters: { reference: "$selectedSlotName" } }, { builderPartId: r2.builderPartIds.communication.text, parameters: { templateNoOverlaySection: "whatIs", templateNoOverlaySectionKey: "whatIsQuestionStr1" } }] } } }; + t2.default = o; + }, 33805: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(54063)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "externalIdInfoCollection"; + } + get displayTypeName() { + return "ArchValueExternalIdInfoCollection"; + } + get isArchValueExternalIdInfoCollection() { + return true; + } + } + t2.default = r2; + }, 33853: (e2, t2, i2) => { + "use strict"; + const n2 = i2(31635), r2 = i2(12179), o = n2.__importDefault(i2(5478)), a = n2.__importDefault(i2(27203)), s = n2.__importDefault(i2(97891)), l = i2(3219), u = i2(47957); + class d extends o.default { + constructor(e3, t3) { + super(e3.parentFlow, e3), this._loadModel(t3); + } + static get branchInfo() { + return a.default.successFailure; + } + _getPossibleErrors() { + return l.getDisconnectWorkitemFailureReasons; + } + } + d.info = s.default.createActionInfo({ actionClass: d, canBeInTask: true, helpTopic: r2.helpTopics.actions.disconnectWorkitem, modelClass: i2(37417), name: u.actions.disconnectWorkitem, scriptingName: "ArchActionDisconnectWorkitem" }), t2.A = d; + }, 33909: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.formatErrorString = function(e3, t3) { + return e3 ? t3 ? (0, r2.sprintf)(e3, t3) : e3 : ""; + }, t2.isErrorMatch = function(e3, t3) { + if ("string" == typeof t3 && (t3 = { code: t3 }), !e3 || !t3 || !t3.code) return false; + let i3 = t3.code; + return t3 && i3 && i3.match(d) && (i3 = this.sanitizeErrorCode(i3)), i3 && e3 === i3; + }, t2.getErrorInformation = function(e3) { + const t3 = this.getErrorText(e3.code, e3.messageParams); + let i3; + if (e3.code === a.permissionService.missingDivisionPermissionString && e3.messageParams) { + let t4 = []; + e3.messageParams.divisionUris && (t4 = a.permissionService.getDivisionListFromDivisionUrisErrorString(e3.messageParams.divisionUris)), !t4.length && e3.messageParams.divisions && (t4 = a.permissionService.getDivisionListFromDivisionsErrorString(e3.messageParams.divisions)), t4.length && (i3 = [{ title: t4.length > 1 ? u.generic.permissions.divisionHeaderMoreThanOne : u.generic.permissions.divisionHeader, entries: t4 }]); + } + return new s.ErrorInformation(t3, void 0, null, i3); + }, t2.getErrorText = function(e3, t3) { + if (!e3) return; + e3 = this.sanitizeErrorCode(e3); + const i3 = o.default.findWhere(l, { code: e3 }); + return i3 ? this.formatErrorString(i3.message, t3) : ""; + }, t2.log = function(e3, t3, i3) { + t3 ? (t3.code = this.sanitizeErrorCode(t3.code), l[t3.code] ? this.isErrorMatch(t3.code, l.ARCHITECT_UNSPECIFIED_ERROR.code) ? e3.error("{}: Error Code: {{}}, Error Message: {{}}", i3, t3.code, t3.message) : e3.info("{}: Error Code: {{}}, Error Message: {{}}", i3, t3.code, t3.message) : e3.error("Unknown Error Code: {{}} for error {{}}", t3.code, i3)) : e3.error("Error not passed in for logging."); + }, t2.sanitizeErrorCode = function(e3) { + return e3 && e3.match(d) ? e3.replace(/^(VXMLGEN_)/, "ARCHITECT_").replace(/\./g, "_").toUpperCase() : e3; + }; + const n2 = i2(31635), r2 = i2(17604), o = n2.__importDefault(i2(92140)), a = i2(67210), s = i2(50100), l = i2(69773), u = i2(47957), d = /^(VXMLGEN_)|\./; + }, 33923: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(51695)); + class r2 extends n2.default { + constructor(e3, t3) { + super(), this.model = e3, this.value = t3; + } + get contents() { + return [this.value]; + } + get id() { + return "eri-" + this.value.id; + } + get cardLabel() { + } + get className() { + return "ExpressionWithReferenceId"; + } + getConfiguration(e3, t3, i3) { + return (null == t3 ? void 0 : t3.isForFlowYaml) ? { value: this.value.getConfiguration(e3, t3, i3) } : this.model; + } + get referenceId() { + return this.model.referenceId; + } + set referenceId(e3) { + this.model.referenceId = e3; + } + get value() { + return this._value; + } + set value(e3) { + this._value = e3, this.model.value = this._value.model; + } + get label() { + return this.value.label; + } + set label(e3) { + this.value.label = e3; + } + } + t2.default = r2; + }, 33924: (e2, t2, i2) => { + "use strict"; + const n2 = i2(31635), r2 = i2(80428), o = i2(53477), a = i2(81516), s = n2.__importDefault(i2(27203)), l = i2(50514), u = i2(12179), d = n2.__importDefault(i2(97891)), c = n2.__importDefault(i2(5478)), p = i2(47957); + class _ extends c.default { + constructor(e3, t3) { + super(e3.parentFlow, e3), this._loadModel(t3); + } + static get branchInfo() { + return s.default.foundNotFoundFailure; + } + _getPossibleErrors() { + return l.getGetAssignedCustomerIntentsFailureReasons; + } + static get managedProperties() { + return [{ label: p.assignedCustomerIntents.assignedCustomerIntentsLabel, options: a.ExpressionTypeStringOptions.create((e3) => e3.setAsInput().setIninTestingField("ExternalContactIdExpression").setDisableSpellcheck(true).setDefaultToExpression(true).facets.setMinLength(1)), property: "externalContactId", type: r2.expressionTypeNames.string }, { label: p.assignedCustomerIntents.assignedCustomerIntentsResult, options: o.ExpressionTypeAssignedCustomerIntentOptions.create((e3) => e3.setIninTestingField("AssignedCustomerIntentsExpression").setIsCollection(true).setAsOutput().setAllowSecure(true)), property: "getAssignedCustomerIntentsResult", type: r2.expressionTypeNames.assignedCustomerIntent }]; + } + } + _.info = d.default.createActionInfo({ actionClass: _, canBeInTask: true, helpTopic: u.helpTopics.actions.getAssignedCustomerIntents, modelClass: i2(88176), name: p.actions.getAssignedCustomerIntents, scriptingName: "ArchActionGetAssignedCustomerIntents" }), t2.A = _; + }, 33943: (e2) => { + e2.exports = { askCommon: { invalidInputReceived: "Bu ge\xE7erli de\u011Fil.", noInputReceived: "Herhangi bir girdi almad\u0131m." }, askForBoolean: { noInput: 'Devam etmek istiyorsan\u0131z "evet", istemiyorsan\u0131z "hay\u0131r" deyin.', noMatch: 'L\xFCtfen "evet" veya "hay\u0131r" deyin. Devam etmek istiyor musunuz?', question: "Devam etmek istiyor musunuz?", noInputDigitalBot: 'Devam etmek istiyorsan\u0131z "Evet" veya devam etmek istemiyorsan\u0131z "Hay\u0131r" giri\u015Fi yap\u0131n.', noMatchDigitalBot: 'L\xFCtfen "Evet" veya "Hay\u0131r" giri\u015Fi yap\u0131n. Devam etmek istiyor musunuz?' }, askForIntent: { noInput: 'Sorgunuzu a\xE7\u0131klayan k\u0131sa bir c\xFCmle s\xF6ylemeniz yeterlidir, \xF6rne\u011Fin: "Hesap bakiyemi kontrol et"', noMatch: "Ne yapmak istedi\u011Finizi bana tekrar s\xF6yleyin.", question: "Ne yapmak istersiniz?", noInputDigitalBot: 'L\xFCtfen sorgunuzu a\xE7\u0131klayan k\u0131sa bir c\xFCmle girin. \xD6rne\u011Fin, "Hesap bakiyemi kontrol et"' }, askForSlot: { askFor: "%1$s sor", noInput: "L\xFCtfen (buraya yuvan\u0131z\u0131n ad\u0131n\u0131 girin) de\u011Ferini s\xF6yleyin veya girin.", noInputWithSlot: "L\xFCtfen %1$s de\u011Ferini s\xF6yleyin veya girin.", noMatch: "L\xFCtfen (buraya yuvan\u0131z\u0131n ad\u0131n\u0131 girin) de\u011Ferini bana tekrar verin.", noMatchWithSlot: "L\xFCtfen %1$s de\u011Ferini bana tekrar verin.", question: "(L\xFCtfen buraya yuvan\u0131z\u0131n ad\u0131n\u0131 girin) nedir?", questionWithSlot: "%1$s nedir?", pleaseEnterSlotNameHere: "(L\xFCtfen buraya yuvan\u0131z\u0131n ad\u0131n\u0131 girin)", noInputDigitalBot: "L\xFCtfen (l\xFCtfen yuva ad\u0131n\u0131z\u0131 buraya girin) giri\u015Fi yap\u0131n.", noInputWithSlotDigitalBot: "L\xFCtfen %1$s giri\u015Fi yap\u0131n.", continuationPromptWithSlot: "\u015Eu ana kadar {{Slot.%1$s}} ald\u0131m, l\xFCtfen devam edin." }, askForNextSlot: { noInput: 'Ba\u015Fka bir sorgunuz varsa "evet" deyin ya da \xE7a\u011Fr\u0131y\u0131 sonland\u0131rmak i\xE7in "hay\u0131r" deyin.', noMatch: 'Ba\u015Fka bir sorgunuz varsa "evet" deyin ya da oturumu sonland\u0131rmak i\xE7in "hay\u0131r" deyin.', question: "Size yard\u0131mc\u0131 olabilece\u011Fim ba\u015Fka bir konu var m\u0131?", noInputDigitalBot: 'Ba\u015Fka bir sorgunuz varsa "Evet" giri\u015Fi yap\u0131n veya oturumu sonland\u0131rmak i\xE7in "Hay\u0131r" giri\u015Fi yap\u0131n.', noMatchDigitalBot: 'Ba\u015Fka bir sorgunuz varsa "Evet" giri\u015Fi yap\u0131n veya oturumu sonland\u0131rmak i\xE7in "Hay\u0131r" giri\u015Fi yap\u0131n.' }, askForPayment: { noInputDigitalBot: "Devam etmek i\xE7in l\xFCtfen \xF6deme bilgilerinizi girin.", noMatchDigitalBot: "Cevab\u0131n\u0131z\u0131 anlamad\u0131m. L\xFCtfen tekrar deneyin." }, askForAuthentication: { noInputDigitalBot: "Devam etmek i\xE7in l\xFCtfen kimlik do\u011Frulama bilgilerinizi girin.", noMatchDigitalBot: "Cevab\u0131n\u0131z\u0131 anlamad\u0131m. L\xFCtfen tekrar deneyin." }, askSurveyQuestion: { notApplicable: "Ge\xE7erli De\u011Fil", surveyAnswerOptionSequence: "'%2$s's i\xE7in %1$s \xF6\u011Fesine bas\u0131n.", surveyAnswerNotApplicableSequence: "Ge\xE7erli De\u011Fil i\xE7in y\u0131ld\u0131za bas\u0131n.", surveyAnswerNotApplicableWithQuestionSequence: "%1$s. Ge\xE7erli De\u011Fil i\xE7in y\u0131ld\u0131za bas\u0131n.", voiceSurveyNoInputText: "L\xFCtfen soruyu yan\u0131tlay\u0131n.", voiceSurveyNoMatchText: "Sizi anlayamad\u0131m." }, commonModule: { exitCommonModule: "\xC7\u0131k\u0131\u015F Ortak Mod\xFCl" }, form: { noInputDigitalBot: "Devam etmek i\xE7in l\xFCtfen formu doldurun.", noMatchDigitalBot: "Devam etmek i\xE7in l\xFCtfen formu doldurun." }, messagingTemplate: { noInputDigitalBot: "L\xFCtfen mevcut se\xE7eneklerden birini belirleyin.", noMatchDigitalBot: "L\xFCtfen mevcut se\xE7eneklerden birini belirleyin." }, knowledgeSettings: { knowledgeAnswerHighlightFlowProgressionDefault: "Devam et", knowledgeAnswerHighlightFullArticleDefault: "Makalenin Tamam\u0131n\u0131 G\xF6r\xFCnt\xFCle", knowledgeInitialResponseMulti: "Hedefinizi netle\u015Ftirmeme yard\u0131mc\u0131 olmak i\xE7in l\xFCtfen a\u015Fa\u011F\u0131daki listeden bir say\u0131 se\xE7in:", knowledgeInitialResponseMultiRetry: "L\xFCtfen bir say\u0131 se\xE7in, \xF6rne\u011Fin '1'.\n\u0130\u015Fte tekrar se\xE7eneklerin listesi:", knowledgeNoMatch: "Bunlardan hi\xE7biri", knowledgeConfirmation: "Bu, sorunuza cevap verdi mi?", knowledgeFollowup: "Umar\u0131m sorunuzu yan\u0131tlayabildim. Bilmek istedi\u011Finiz herhangi bir konuyu sorabilirsiniz." }, noOverlay: { intent: { intentConfirmationStr1: "San\u0131r\u0131m \u015Fu i\u015Flemi yapmak istiyorsunuz:", intentConfirmationStr2: "Bu do\u011Fru mu?" }, youSaid: { youSaidConfirmationStr1: "\u015Eunu s\xF6ylediniz:", youSaidConfirmationStr2: "Bu do\u011Fru mu?", youSaidConfirmationStr1DigitalBot: "\u015Eunu girdiniz:" }, noInput: { noInputStr1: "L\xFCtfen \u015Funu s\xF6yleyin veya girin:", noInputStr1DigitalBot: "L\xFCtfen \u015Funu girin:" }, noMatch: { noMatchStr1: "L\xFCtfen \u015Funu bana verin:" }, whatIs: { whatIsQuestionStr1: "\u015Eu nedir:", whatIsQuestionStr2: "?" }, iGotContinuation: { iGotContinuationStr1: "\u015Eu ana kadar", iGotContinuationStr2: "ald\u0131m. L\xFCtfen devam edin." } }, defaultCallFlowOne: "Varsay\u0131lan Arama Ak\u0131\u015F\u0131", errorHandlingAgentEscalationConfirmation: "Bir dan\u0131\u015Fmanla konu\u015Fmak istiyorsunuz, de\u011Fil mi?", errorHandlingAgentEscalationHandover: "L\xFCtfen bekleyin, sizi birine aktar\u0131yorum.", errorHandlingErrorEventHandover: "\xDCzg\xFCn\xFCm, bir hata olu\u015Ftu. Sizi yard\u0131mc\u0131 olabilecek birine aktar\u0131rken l\xFCtfen bekleyin.", errorHandlingErrorEventHandoverVoiceSurvey: "\xDCzg\xFCn\xFCm, bir hata olu\u015Ftu. Ho\u015F\xE7a kal\u0131n.", errorHandlingRecognitionEventHandover: "\xDCzg\xFCn\xFCm, sizi anlamakta zorlan\u0131yorum. Sizi yard\u0131mc\u0131 olabilecek birine aktar\u0131rken l\xFCtfen bekleyin.", errorHandlingRecognitionEventHandoverVoiceSurvey: "\xDCzg\xFCn\xFCm, sizi anlamakta zorlan\u0131yorum. Ho\u015F\xE7a kal\u0131n.", errorHandlingTTS: "Maalesef bir hata olu\u015Ftu. L\xFCtfen tekrar aramay\u0131 deneyin.", initialGreetingTTS: "Merhaba, bu ilk selamlamad\u0131r.", initialState: "\u0130lk Durum", initialBotState: "Varsay\u0131lan Bot", initialDigitalBotState: "\u0130lk Selamlama", initialSurveyBotState: "Anket Botu", intentConfirmation: "San\u0131r\u0131m %1$s i\u015Flemini yapmak istiyorsunuz, do\u011Fru mudur?", mainMenu: "Ana Men\xFC", mainMenuTTS: "Ana Men\xFCdesiniz, ba\u011Flant\u0131y\u0131 kesmek i\xE7in 9'a bas\u0131n", mainTask: "G\xF6rev", settingsConfirmationNoInputApology: "\xDCzg\xFCn\xFCm sizi duyamad\u0131m. L\xFCtfen evet ya da hay\u0131r deyin.", settingsConfirmationNoInputApologyDigitalBot: '\xDCzg\xFCn\xFCm, sizden herhangi bir giri\u015F almad\u0131m. L\xFCtfen "Evet" veya "Hay\u0131r" giri\u015Fi yap\u0131n.', settingsConfirmationNoMatchApology: "\xDCzg\xFCn\xFCm, l\xFCtfen evet ya da hay\u0131r deyin.", settingsConfirmationNoMatchApologyDigitalBot: '\xDCzg\xFCn\xFCm, l\xFCtfen "Evet" veya "Hay\u0131r" giri\u015Fi yap\u0131n.', settingsNoInputApology: "\xDCzg\xFCn\xFCm sizi duyamad\u0131m.", settingsNoInputApologyDigitalBot: "\xDCzg\xFCn\xFCm, sizden herhangi bir giri\u015F almad\u0131m.", settingsEndOfSessionMessageDigitalBot: "Sizden bir s\xFCredir haber alamad\u0131\u011F\u0131m i\xE7in bu sohbeti kapat\u0131yorum, tekrar yard\u0131ma ihtiyac\u0131n\u0131z olursa l\xFCtfen yine gelin. Te\u015Fekk\xFCrler.", settingsNoMatchApology: "\xDCzg\xFCn\xFCm.", settingsNoToConfirmationApology: "Benim hatam.", periodicStateName: "Yineleme Durumu" }; + }, 33948: (e2) => { + e2.exports = { created: "created", transcoded: "transcoded", transcodeFailed: "transcodeFailed", uploaded: "uploaded" }; + }, 33951: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.ParameterValidator = void 0; + const n2 = i2(31635), r2 = n2.__importDefault(i2(92140)), o = n2.__importStar(i2(14187)), a = i2(30801), s = n2.__importDefault(i2(73198)), l = n2.__importDefault(i2(4648)), u = i2(96618), d = {}; + r2.default.each(a.actionTypeValues, function(e3) { + d[e3] = true; + }), t2.ParameterValidator = class { + static _logError(e3, t3) { + return console.error(e3), t3; + } + static _logExpectedTypeError(e3, t3, i3, n3) { + let r3; + r3 = void 0 !== r3 ? i3().logStringHeader : "", this._logError(r3 + "Expected: " + t3 + (n3 ? ", null or undefined" : "") + ", Received: '" + e3 + "' (type: " + typeof e3 + ")", e3); + } + static _okIfNullOrUndefined(e3, t3) { + return t3 && null == e3; + } + static _expectTrue(e3, t3, i3, n3, r3) { + if (true === e3 || this._okIfNullOrUndefined(t3, r3)) return t3; + this._logExpectedTypeError(t3, i3, n3, r3); + } + static expectActionType(e3, t3, i3) { + return this._expectTrue("string" == typeof e3 && true === d[e3], e3, "actionType string", t3, i3); + } + static expectArray(e3, t3, i3) { + return this._expectTrue(r2.default.isArray(e3), e3, "array", t3, i3); + } + static expectArrayOrObject(e3, t3, i3) { + return this._expectTrue(r2.default.isArray(e3) || r2.default.isObject(e3), e3, "array or object", t3, i3); + } + static expectArrayOrString(e3, t3, i3) { + return this._expectTrue(r2.default.isArray(e3) || r2.default.isString(e3), e3, "array or string", t3, i3); + } + static expectBool(e3, t3, i3) { + return this._expectTrue(r2.default.isBoolean(e3), e3, "boolean", t3, i3); + } + static expectChannelType(e3, t3, i3) { + return this._expectTrue(null == e3 ? void 0 : e3.isChannelType, e3, "ChannelType", t3, i3); + } + static expectExpression(e3, t3, i3) { + return this._expectTrue(null == e3 ? void 0 : e3.isExpression, e3, "expression", t3, i3); + } + static expectExpressionOptions(e3, t3, i3) { + return this._expectTrue(null == e3 ? void 0 : e3.isExpressionOptions, e3, "expression options", t3, i3); + } + static expectExpressionType(e3, t3, i3) { + return this._expectTrue(null == e3 ? void 0 : e3.isExpressionType, e3, "expressionType", t3, i3); + } + static expectExpressionTypeOrTypes(e3, t3, i3, n3) { + let o2; + return r2.default.isArray(e3) ? (r2.default.isUndefined(i3) && (i3 = true), r2.default.isUndefined(n3) && (n3 = true), o2 = r2.default.isEmpty(n3) ? n3 : r2.default.isUndefined(r2.default.find(e3, (t4) => t4 ? !(null == e3 ? void 0 : e3.isExpressionType) : !i3))) : o2 = null == e3 ? void 0 : e3.isExpressionType, this._expectTrue(o2, e3, "expressionType", t3, false); + } + static expectExpressionTypeOrString(e3, t3, i3) { + return this._expectTrue((null == e3 ? void 0 : e3.isExpressionType) || r2.default.isString(e3), e3, "expressionType or string", t3, i3); + } + static expectFeatureConfigName(e3, t3, i3) { + return this._expectTrue(r2.default.isString(e3) && !r2.default.isUndefined(l.default[e3]), e3, "feature config name", t3, i3); + } + static expectFlowType(e3, t3, i3) { + return this._expectTrue(r2.default.isString(e3) && r2.default.contains(u.flowTypes.flowTypesAll, e3), e3, "flowType string", t3, i3); + } + static expectFlowViewModel(e3, t3, i3) { + return this._expectTrue(null == e3 ? void 0 : e3.isFlowViewModel, e3, "flow view model", t3, i3); + } + static expectBaseClassObject(e3, t3, i3) { + return this._expectTrue(null == e3 ? void 0 : e3.isBaseClass, e3, "not a baseClass", t3, i3); + } + static expectInt(e3, t3, i3) { + return this._expectTrue(r2.default.isActualNumber(e3) && e3 === parseInt(e3, 10), e3, "integer ( number with integral value )", t3, i3); + } + static expectIntLessThan(e3, t3, i3, n3) { + if (!r2.default.isUndefined(this.expectInt(e3, i3, n3))) return r2.default.isUndefined(t3) ? e3 : this._expectTrue(e3 < t3, e3, "integer is not less than a max value", i3, false); + } + static expectIntLessThanOrEqualTo(e3, t3, i3, n3) { + if (!r2.default.isUndefined(this.expectInt(e3, i3, n3))) return r2.default.isUndefined(t3) ? e3 : this._expectTrue(e3 <= t3, e3, "integer is not less than or equal to a max value", i3, false); + } + static expectIntMoreThan(e3, t3, i3, n3) { + if (!r2.default.isUndefined(this.expectInt(e3, i3, n3))) return r2.default.isUndefined(t3) ? e3 : this._expectTrue(e3 > t3, e3, "integer is not more than a max value", i3, false); + } + static expectIntMoreThanOrEqualTo(e3, t3, i3, n3) { + if (!r2.default.isUndefined(this.expectInt(e3, i3, n3))) return r2.default.isUndefined(t3) ? e3 : this._expectTrue(e3 >= t3, e3, "integer is not more than or equal to a max value", i3, false); + } + static expectIntOrString(e3, t3, i3) { + return this._expectTrue(r2.default.isString(e3) || r2.default.isActualNumber(e3) && e3 === parseInt(e3, 10), e3, "string or integer ( number with integral value )", t3, i3); + } + static expectMatchSettings(e3, t3, i3) { + return this._expectTrue(null == e3 ? void 0 : e3.isMatchSettings, e3, "match settings instance", t3, i3); + } + static expectNodeInformation(e3, t3, i3) { + return this._expectTrue(null == e3 ? void 0 : e3.isNodeInformation, e3, "NodeInformation", t3, i3); + } + static expectNumber(e3, t3, i3) { + return this._expectTrue(r2.default.isActualNumber(e3), e3, "number", t3, i3); + } + static expectNumberOrString(e3, t3, i3) { + return this._expectTrue(r2.default.isString(e3) || r2.default.isActualNumber(e3), e3, "number or string", t3, i3); + } + static expectObject(e3, t3, i3) { + return this._expectTrue(r2.default.isObject(e3) || r2.default.isActualNumber(e3), e3, "object", t3, i3); + } + static expectFunction(e3, t3, i3) { + return this._expectTrue(r2.default.isFunction(e3), e3, "function", t3, i3); + } + static expectString(e3, t3, i3) { + return this._expectTrue(r2.default.isString(e3), e3, "string", t3, i3); + } + static expectStringComplexIdentifier(e3, t3, i3) { + return this._expectTrue(r2.default.isString(e3) && e3.slice(0, s.default.exprDataTypePrefixComplex.length) === s.default.exprDataTypePrefixComplex, e3, "complex identifier string", t3, i3); + } + static expectCustomJsonIdentifier(e3, t3, i3) { + return this._expectTrue(r2.default.isString(e3) && e3.slice(0, s.default.exprDataTypePrefixJsonArch.length) === s.default.exprDataTypePrefixJsonArch, e3, "custom json identifier", t3, i3); + } + static expectTrue(e3, t3, i3, n3, r3) { + return this._expectTrue(e3, t3, i3, n3, r3); + } + static expectValidationResults(e3, t3, i3) { + return this._expectTrue(null == e3 ? void 0 : e3.isValidationResults, e3, "validation results view model", t3, i3); + } + static expectVariableScope(e3, t3, i3) { + return this._expectTrue(o.scopes[e3], e3, "number or string", t3, i3); + } + static valueIsInvalid(e3, t3, i3, n3) { + this._logError((r2.default.isFunction(t3) ? t3().logStringHeader : "") + (n3 ? "" : "Invalid Value: '" + e3 + "', ") + "Message: '" + i3 + "'", e3); + } + }; + }, 33965: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(84655)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "journeyOutcome"; + } + get initialValue() { + return this._initialValue; + } + get displayTypeName() { + return "ArchVariableJourneyOutcome"; + } + get isArchVariableJourneyOutcome() { + return true; + } + } + t2.default = r2; + }, 34005: (e2) => { + e2.exports = { category: { audio: { identifier: "audio", name: "AR_CT_AUDIO", description: "AR_CT_DSC_AUDIO" }, cast: { identifier: "cast", name: "AR_CT_CAST", description: "AR_CT_DSC_CAST" }, comparison: { identifier: "comparison", name: "AR_CT_COMPARISON", description: "AR_CT_DSC_COMPARISON" }, complex: { identifier: "complex", name: "AR_CT_COMPLEX", description: "AR_CT_DSC_COMPLEX" }, datetime: { identifier: "datetime", name: "AR_CT_DTM", description: "AR_CT_DSC_DTM" }, email: { identifier: "email", name: "AR_CT_EMAIL", description: "AR_CT_DSC_EMAIL" }, financial: { identifier: "financial", name: "AR_CT_FINANCIAL", description: "AR_CT_DSC_FINANCIAL" }, list: { identifier: "list", name: "AR_CT_LIST", description: "AR_CT_DSC_LIST" }, logical: { identifier: "logical", name: "AR_CT_LOGICAL", description: "AR_CT_DSC_LOGICAL" }, language: { identifier: "language", name: "AR_CT_LANGUAGE", description: "AR_CT_DSC_LANGUAGE" }, json: { identifier: "json", name: "AR_CT_JSON", description: "AR_CT_DSC_JSON" }, mathematical: { identifier: "mathematical", name: "AR_CT_MATHEMATICAL", description: "AR_CT_DSC_MATHEMATICAL" }, operators: { identifier: "operators", name: "AR_CT_OPERATORS", description: "AR_CT_DSC_OPERATORS" }, prompt: { identifier: "prompt", name: "AR_CT_PROMPT", description: "AR_CT_DSC_PROMPT" }, search: { identifier: "search", name: "AR_CT_SEARCH", description: "AR_CT_DSC_SEARCH" }, statistical: { identifier: "statistical", name: "AR_CT_STATISTICAL", description: "AR_CT_DSC_STATISTICAL" }, survey: { identifier: "survey", name: "AR_CT_SURVEY", description: "AR_CT_DSC_SURVEY" }, text: { identifier: "text", name: "AR_CT_TEXT", description: "AR_CT_DSC_TEXT" }, unary: { identifier: "unary", name: "AR_CT_UNARY", description: "AR_CT_DSC_UNARY" } }, type: { AgentScorePair: { name: "AR_TP_AGENTSCOREPAIR", allowArray: true, dataType: "ComplexDataType", support: { classType: "ComplexVariable", expressionDataType: "cpx_agent_score_pair", isSupportedByAny: true, userCanCreate: true, supportedFlowTypes: { bot: { featureConfigName: "botFlowsQueueSupportFeature" }, digitalbot: { featureConfigName: "botFlowsQueueSupportFeature" }, emailsend: {}, inboundcall: {}, inboundchat: {}, inboundemail: {}, inboundshortmessage: {}, inqueuecall: {}, inqueueemail: {}, inqueueshortmessage: {}, securecall: {}, commonmodule: { flowInputSingleton: true, flowInputCollection: true, flowOutputSingleton: true, flowOutputCollection: true }, voice: {}, voicemail: {}, workitem: {} }, version: "1.0", featureConfigName: "knownAgentRouting" }, nativeProperties: [{ id: "agent", name: "agent", descriptionId: "AR_TP_AGENTSCOREPAIR_PROP_AGENT_DSC", type: "usr", isCollection: false, isComputed: false, version: "1.0", readOnly: false }, { id: "score", name: "score", descriptionId: "AR_TP_AGENTSCOREPAIR_PROP_SCORE_DSC", type: "int", isCollection: false, isComputed: false, version: "1.0", readOnly: false }] }, Audio: { name: "AR_TP_AUDIO", allowArray: false, dataType: "AudioDataType", support: { classType: "AudioVariable", expressionDataType: "aud", expressionBaseDataType: "aud", isSupportedByAny: false, userCanCreate: false, supportedFlowTypes: { inboundcall: {}, inqueuecall: {}, outboundcall: {}, securecall: {}, voicemail: {} }, version: "1.0" }, nativeProperties: [] }, Boolean: { name: "AR_TP_BLN", allowArray: true, dataType: "BooleanDataType", support: { classType: "BoolVariable", expressionDataType: "bln", expressionBaseDataType: "bln", isSupportedByAny: true, userCanCreate: true, supportedFlowTypes: { emailsend: {}, inboundchat: { flowOutputSingleton: true, flowOutputCollection: true }, inboundemail: { flowOutputSingleton: true, flowOutputCollection: true }, inboundshortmessage: { flowOutputSingleton: true, flowOutputCollection: true }, inqueueemail: {}, inqueueshortmessage: {}, surveyinvite: { flowOutputSingleton: true, flowOutputCollection: true }, workflow: { flowInputSingleton: true, flowInputCollection: true, flowOutputSingleton: true, flowOutputCollection: true }, workitem: { flowInputSingleton: true, flowInputCollection: true, flowOutputSingleton: true, flowOutputCollection: true }, inboundcall: {}, inqueuecall: {}, outboundcall: {}, securecall: {}, voicemail: {}, bot: { flowInputSingleton: true, flowInputCollection: true, flowOutputSingleton: true, flowOutputCollection: true }, digitalbot: { flowInputSingleton: true, flowInputCollection: true, flowOutputSingleton: true, flowOutputCollection: true }, commonmodule: { flowInputSingleton: true, flowInputCollection: true, flowOutputSingleton: true, flowOutputCollection: true }, voice: { flowInputSingleton: true, flowInputCollection: true, flowOutputSingleton: true, flowOutputCollection: true }, voicesurvey: {} }, version: "1.0" }, nativeProperties: [] }, StringKeyValuePair: { name: "AR_TP_STRINGKEYVALUEPAIR", allowArray: true, dataType: "ComplexDataType", support: { classType: "ComplexVariable", expressionDataType: "cpx_string_key_value_pair", isSupportedByAny: true, userCanCreate: false, supportedFlowTypes: { inboundchat: {}, commonmodule: {} }, version: "1.0" }, nativeProperties: [{ id: "key", name: "key", descriptionId: "AR_TP_STRINGKEYVALUEPAIR_PROP_KEY_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: true }, { id: "value", name: "value", descriptionId: "AR_TP_STRINGKEYVALUEPAIR_PROP_VALUE_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: true }] }, ChatGuest: { name: "AR_TP_CHATGUEST", allowArray: true, dataType: "ComplexDataType", support: { classType: "ComplexVariable", expressionDataType: "cpx_chat_guest", isSupportedByAny: true, userCanCreate: false, supportedFlowTypes: { inboundchat: {}, commonmodule: {} }, version: "1.0" }, nativeProperties: [{ id: "id", name: "id", descriptionId: "AR_TP_CHATGUEST_PROP_ID_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: true }, { id: "displayName", name: "displayName", descriptionId: "AR_TP_CHATGUEST_PROP_DISPLAYNAME_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: true }, { id: "avatarImageUrl", name: "avatarImageUrl", descriptionId: "AR_TP_CHATGUEST_PROP_AVATARIMAGEURL_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: true }, { id: "isAuthenticated", name: "isAuthenticated", descriptionId: "AR_TP_CHATGUEST_PROP_ISAUTHENTICATED_DSC", type: "bln", isCollection: false, isComputed: false, version: "1.0", readOnly: true }, { id: "customFields", name: "customFields", descriptionId: "AR_TP_CHATGUEST_PROP_CUSTOMFIELDS_DSC", type: "cpx_string_key_value_pair", isCollection: true, isComputed: false, version: "1.0", readOnly: true }, { id: "authenticatedCustomFields", name: "authenticatedCustomFields", descriptionId: "AR_TP_CHATGUEST_PROP_AUTHENTICATEDCUSTOMFIELDS_DSC", type: "cpx_string_key_value_pair", isCollection: true, isComputed: false, version: "1.0", readOnly: true }] }, Currency: { name: "AR_TP_CUR", allowArray: true, dataType: "CurrencyDataType", support: { classType: "CurrencyVariable", expressionDataType: "cur", isSupportedByAny: true, userCanCreate: true, supportedFlowTypes: { emailsend: {}, inboundchat: { flowOutputSingleton: true, flowOutputCollection: true }, inboundemail: { flowOutputSingleton: true, flowOutputCollection: true }, inboundshortmessage: { flowOutputSingleton: true, flowOutputCollection: true }, inqueueemail: { flowOutputSingleton: true, flowOutputCollection: true }, inqueueshortmessage: { flowOutputSingleton: true, flowOutputCollection: true }, surveyinvite: { flowOutputSingleton: true, flowOutputCollection: true }, workflow: { flowOutputSingleton: true, flowOutputCollection: true }, workitem: { flowOutputSingleton: true, flowOutputCollection: true }, inboundcall: {}, inqueuecall: {}, outboundcall: {}, securecall: {}, voicemail: {}, bot: { flowInputSingleton: true, flowInputCollection: true, flowOutputSingleton: true, flowOutputCollection: true }, digitalbot: { flowInputSingleton: true, flowInputCollection: true, flowOutputSingleton: true, flowOutputCollection: true }, voice: { flowInputSingleton: true, flowInputCollection: true, flowOutputSingleton: true, flowOutputCollection: true }, voicesurvey: {}, commonmodule: { flowInputSingleton: true, flowInputCollection: true, flowOutputSingleton: true, flowOutputCollection: true } }, version: "1.0" }, nativeProperties: [{ id: "amount", name: "amount", descriptionId: "AR_TP_CUR_PROP_AMOUNT_DSC", type: "dec", isCollection: false, isComputed: false, version: "1.0", readOnly: false }, { id: "code", name: "code", descriptionId: "AR_TP_CUR_PROP_CODE_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: false }] }, AssignedCustomerIntent: { name: "AR_TP_ASSIGNEDCUSTOMERINTENT", allowArray: true, dataType: "AssignedCustomerIntentDataType", support: { classType: "AssignedCustomerIntentVariable", expressionDataType: "aci", isSupportedByAny: true, userCanCreate: true, supportedFlowTypes: { inboundcall: { featureConfigName: "customerIntentsPhase2AutomateAndVXML" }, inqueuecall: { featureConfigName: "customerIntentsPhase2AutomateAndVXML" }, outboundcall: { featureConfigName: "customerIntentsPhase2AutomateAndVXML" }, securecall: { featureConfigName: "customerIntentsPhase2AutomateAndVXML" }, voicemail: { featureConfigName: "customerIntentsPhase2AutomateAndVXML" }, bot: { featureConfigName: "customerIntentsPhase1Cicero" }, digitalbot: { featureConfigName: "customerIntentsPhase1Cicero" }, emailsend: { featureConfigName: "customerIntentsPhase2AutomateAndVXML" }, inboundemail: { featureConfigName: "customerIntentsPhase2AutomateAndVXML" }, inboundshortmessage: { featureConfigName: "customerIntentsPhase2AutomateAndVXML" }, inqueueemail: { featureConfigName: "customerIntentsPhase2AutomateAndVXML" }, inqueueshortmessage: { featureConfigName: "customerIntentsPhase2AutomateAndVXML" }, surveyinvite: { featureConfigName: "customerIntentsPhase2AutomateAndVXML" } }, version: "1.0" }, nativeProperties: [{ id: "customerIntent", name: "customerIntent", descriptionId: "AR_TP_ASSIGNEDCUSTOMERINTENT_PROP_CUSTOMERINTENT_DSC", type: "cin", isCollection: false, isComputed: false, version: "1.0", readOnly: true }, { id: "dateMostRecentlyAssigned", name: "dateMostRecentlyAssigned", descriptionId: "AR_TP_ASSIGNEDCUSTOMERINTENT_PROP_DATEMOSTRECENTLYASSIGNED_DSC", type: "dtm", isCollection: false, isComputed: false, version: "1.0", readOnly: true }] }, AssignedCustomerSegment: { name: "AR_TP_ASSIGNEDCUSTOMERSEGMENT", allowArray: true, dataType: "AssignedCustomerSegmentDataType", support: { classType: "AssignedCustomerSegmentVariable", expressionDataType: "acs", isSupportedByAny: true, userCanCreate: true, supportedFlowTypes: { bot: { featureConfigName: "botFlowsCustomerSegmentsFeature" }, digitalbot: { featureConfigName: "botFlowsCustomerSegmentsFeature" } }, version: "1.0" }, nativeProperties: [{ id: "customerSegment", name: "customerSegment", descriptionId: "AR_TP_ASSIGNEDCUSTOMERSEGMENT_PROP_CUSTOMERSEGMENT_DSC", type: "csg", isCollection: false, isComputed: false, version: "1.0", readOnly: true }, { id: "dateAssigned", name: "dateAssigned", descriptionId: "AR_TP_ASSIGNEDCUSTOMERSEGMENT_PROP_DATEASSIGNED_DSC", type: "dtm", isCollection: false, isComputed: false, version: "1.0", readOnly: true }] }, CustomerSegment: { name: "AR_TP_CUSTOMERSEGMENT", allowArray: true, dataType: "CustomerSegmentDataType", support: { classType: "CustomerSegmentVariable", expressionDataType: "csg", isSupportedByAny: true, userCanCreate: true, supportedFlowTypes: { bot: { featureConfigName: "botFlowsCustomerSegmentsFeature" }, digitalbot: { featureConfigName: "botFlowsCustomerSegmentsFeature" } }, version: "1.0" }, nativeProperties: [{ id: "id", name: "id", descriptionId: "AR_TP_CUSTOMERSEGMENT_PROP_ID_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: true }, { id: "name", name: "name", descriptionId: "AR_TP_CUSTOMERSEGMENT_PROP_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: true }] }, CustomerIntent: { name: "AR_TP_CUSTOMERINTENT", allowArray: true, dataType: "CustomerIntentDataType", support: { classType: "CustomerIntentVariable", expressionDataType: "cin", isSupportedByAny: true, userCanCreate: true, supportedFlowTypes: { inboundcall: { featureConfigName: "customerIntentsPhase2AutomateAndVXML" }, inqueuecall: { featureConfigName: "customerIntentsPhase2AutomateAndVXML" }, outboundcall: { featureConfigName: "customerIntentsPhase2AutomateAndVXML" }, securecall: { featureConfigName: "customerIntentsPhase2AutomateAndVXML" }, voicemail: { featureConfigName: "customerIntentsPhase2AutomateAndVXML" }, bot: { featureConfigName: "customerIntentsPhase1Cicero" }, digitalbot: { featureConfigName: "customerIntentsPhase1Cicero" }, inboundemail: { featureConfigName: "customerIntentsPhase2AutomateAndVXML" }, emailsend: { featureConfigName: "customerIntentsPhase2AutomateAndVXML" }, inboundshortmessage: { featureConfigName: "customerIntentsPhase2AutomateAndVXML" }, inqueueemail: { featureConfigName: "customerIntentsPhase2AutomateAndVXML" }, inqueueshortmessage: { featureConfigName: "customerIntentsPhase2AutomateAndVXML" }, surveyinvite: { featureConfigName: "customerIntentsPhase2AutomateAndVXML" } }, version: "1.0" }, nativeProperties: [{ id: "id", name: "id", descriptionId: "AR_TP_CUSTOMERINTENT_PROP_ID_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: true }, { id: "name", name: "name", descriptionId: "AR_TP_CUSTOMERINTENT_PROP_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: true }, { id: "categoryId", name: "categoryId", descriptionId: "AR_TP_CUSTOMERINTENT_PROP_CATEGORYID_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: true }] }, DateTime: { name: "AR_TP_DTM", allowArray: true, dataType: "DateTimeDataType", support: { classType: "DateTimeVariable", expressionDataType: "dtm", isSupportedByAny: true, userCanCreate: true, supportedFlowTypes: { emailsend: {}, inboundchat: { flowOutputSingleton: true, flowOutputCollection: true }, inboundemail: { flowOutputSingleton: true, flowOutputCollection: true }, inboundshortmessage: { flowOutputSingleton: true, flowOutputCollection: true }, inqueueemail: {}, inqueueshortmessage: {}, surveyinvite: { flowOutputSingleton: true, flowOutputCollection: true }, workflow: { flowInputSingleton: true, flowInputCollection: true, flowOutputSingleton: true, flowOutputCollection: true }, workitem: { flowInputSingleton: true, flowInputCollection: true, flowOutputSingleton: true, flowOutputCollection: true }, inboundcall: {}, inqueuecall: {}, outboundcall: {}, securecall: {}, voicemail: {}, bot: { flowInputSingleton: true, flowInputCollection: true, flowOutputSingleton: true, flowOutputCollection: true }, commonmodule: { flowInputSingleton: true, flowInputCollection: true, flowOutputSingleton: true, flowOutputCollection: true }, digitalbot: { flowInputSingleton: true, flowInputCollection: true, flowOutputSingleton: true, flowOutputCollection: true }, voice: { flowInputSingleton: true, flowInputCollection: true, flowOutputSingleton: true, flowOutputCollection: true }, voicesurvey: {} }, version: "1.0" }, nativeProperties: [] }, Date: { name: "AR_TP_DATE", allowArray: true, dataType: "DateDataType", support: { classType: "DateVariable", expressionDataType: "dat", isSupportedByAny: true, userCanCreate: true, supportedFlowTypes: { inboundcall: {}, inqueuecall: {}, outboundcall: {}, securecall: {}, voicemail: {}, bot: { flowInputSingleton: true, flowInputCollection: true, flowOutputSingleton: true, flowOutputCollection: true }, digitalbot: { flowInputSingleton: true, flowInputCollection: true, flowOutputSingleton: true, flowOutputCollection: true }, commonmodule: {}, emailsend: {}, inboundemail: {}, inboundshortmessage: {}, inqueueemail: {}, inqueueshortmessage: {}, surveyinvite: {}, voice: { flowInputSingleton: true, flowInputCollection: true, flowOutputSingleton: true, flowOutputCollection: true }, voicesurvey: {}, workflow: { flowInputSingleton: true, flowInputCollection: true, flowOutputSingleton: true, flowOutputCollection: true }, workitem: { flowInputSingleton: true, flowInputCollection: true, flowOutputSingleton: true, flowOutputCollection: true } }, version: "1.0" }, nativeProperties: [] }, Decimal: { name: "AR_TP_DEC", allowArray: true, dataType: "DecimalDataType", support: { classType: "DecimalVariable", expressionDataType: "dec", isSupportedByAny: true, userCanCreate: true, supportedFlowTypes: { emailsend: {}, inboundchat: { flowOutputSingleton: true, flowOutputCollection: true }, inboundemail: { flowOutputSingleton: true, flowOutputCollection: true }, inboundshortmessage: { flowOutputSingleton: true, flowOutputCollection: true }, inqueueemail: {}, inqueueshortmessage: {}, surveyinvite: { flowOutputSingleton: true, flowOutputCollection: true }, workflow: { flowInputSingleton: true, flowInputCollection: true, flowOutputSingleton: true, flowOutputCollection: true }, workitem: { flowInputSingleton: true, flowInputCollection: true, flowOutputSingleton: true, flowOutputCollection: true }, inboundcall: {}, inqueuecall: {}, outboundcall: {}, securecall: {}, voicemail: {}, bot: { flowInputSingleton: true, flowInputCollection: true, flowOutputSingleton: true, flowOutputCollection: true }, digitalbot: { flowInputSingleton: true, flowInputCollection: true, flowOutputSingleton: true, flowOutputCollection: true }, commonmodule: { flowInputSingleton: true, flowInputCollection: true, flowOutputSingleton: true, flowOutputCollection: true }, voice: { flowInputSingleton: true, flowInputCollection: true, flowOutputSingleton: true, flowOutputCollection: true }, voicesurvey: {} }, version: "1.0" }, nativeProperties: [] }, Division: { name: "AR_TP_DIVISION", allowArray: true, dataType: "DivisionDataType", support: { classType: "DivisionVariable", expressionDataType: "dvn", isSupportedByAny: true, userCanCreate: true, supportedFlowTypes: { inboundcall: {}, inboundshortmessage: {}, inboundemail: {}, emailsend: { featureConfigName: "emailSendFlows" }, inqueuecall: {}, inqueueshortmessage: {}, inqueueemail: {}, surveyinvite: {}, outboundcall: {}, securecall: {}, voicemail: {}, workflow: {}, commonmodule: { flowInputSingleton: true, flowInputCollection: true, flowOutputSingleton: true, flowOutputCollection: true } }, version: "1.0", featureConfigName: "customConversationAttributes" }, nativeProperties: [{ id: "id", name: "id", descriptionId: "AR_TP_DIVISION_PROP_ID_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: true }, { id: "name", name: "name", descriptionId: "AR_TP_DIVISION_PROP_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: true }] }, Duration: { name: "AR_TP_DUR", allowArray: true, dataType: "DurationDataType", support: { classType: "DurationVariable", expressionDataType: "dur", isSupportedByAny: true, userCanCreate: true, supportedFlowTypes: { emailsend: {}, inboundchat: { flowOutputSingleton: true, flowOutputCollection: true }, inboundemail: { flowOutputSingleton: true, flowOutputCollection: true }, inboundshortmessage: { flowOutputSingleton: true, flowOutputCollection: true }, inqueueemail: {}, inqueueshortmessage: {}, surveyinvite: { flowOutputSingleton: true, flowOutputCollection: true }, workflow: { flowInputSingleton: true, flowInputCollection: true, flowOutputSingleton: true, flowOutputCollection: true }, workitem: { flowInputSingleton: true, flowInputCollection: true, flowOutputSingleton: true, flowOutputCollection: true }, inboundcall: {}, inqueuecall: {}, outboundcall: {}, securecall: {}, voicemail: {}, bot: { flowInputSingleton: true, flowInputCollection: true, flowOutputSingleton: true, flowOutputCollection: true }, digitalbot: { flowInputSingleton: true, flowInputCollection: true, flowOutputSingleton: true, flowOutputCollection: true }, commonmodule: { flowInputSingleton: true, flowInputCollection: true, flowOutputSingleton: true, flowOutputCollection: true }, voice: { flowInputSingleton: true, flowInputCollection: true, flowOutputSingleton: true, flowOutputCollection: true }, voicesurvey: {} }, version: "1.0" }, nativeProperties: [] }, Long: { name: "AR_TP_LNG", allowArray: true, dataType: "LongDataType", support: { classType: "IntegerVariable", expressionDataType: "int", isSupportedByAny: true, userCanCreate: true, supportedFlowTypes: { emailsend: {}, inboundchat: { flowOutputSingleton: true, flowOutputCollection: true }, inboundemail: { flowOutputSingleton: true, flowOutputCollection: true }, inboundshortmessage: { flowOutputSingleton: true, flowOutputCollection: true }, inqueueemail: {}, inqueueshortmessage: {}, surveyinvite: { flowOutputSingleton: true, flowOutputCollection: true }, workflow: { flowInputSingleton: true, flowInputCollection: true, flowOutputSingleton: true, flowOutputCollection: true }, workitem: { flowInputSingleton: true, flowInputCollection: true, flowOutputSingleton: true, flowOutputCollection: true }, bot: { flowInputSingleton: true, flowInputCollection: true, flowOutputSingleton: true, flowOutputCollection: true }, digitalbot: { flowInputSingleton: true, flowInputCollection: true, flowOutputSingleton: true, flowOutputCollection: true }, voice: { flowInputSingleton: true, flowInputCollection: true, flowOutputSingleton: true, flowOutputCollection: true }, voicesurvey: {}, inboundcall: {}, inqueuecall: {}, outboundcall: {}, securecall: {}, voicemail: {}, commonmodule: { flowInputSingleton: true, flowInputCollection: true, flowOutputSingleton: true, flowOutputCollection: true } }, version: "1.0" }, nativeProperties: [] }, Email: { name: "AR_TP_EMAIL", allowArray: true, dataType: "ComplexDataType", support: { classType: "ComplexVariable", expressionDataType: "cpx_email", isSupportedByAny: true, userCanCreate: false, supportedFlowTypes: { inboundemail: {}, inqueueemail: {}, commonmodule: {} }, version: "1.0" }, nativeProperties: [{ id: "id", name: "id", descriptionId: "AR_TP_EMAIL_PROP_ID_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: true }, { id: "autoGenerated", name: "autoGenerated", descriptionId: "AR_TP_EMAIL_PROP_AUTOGENERATED_DSC", type: "bln", isCollection: false, isComputed: false, version: "1.0", readOnly: true }, { id: "spam", name: "spam", descriptionId: "AR_TP_EMAIL_PROP_SPAM_DSC", type: "bln", isCollection: false, isComputed: false, version: "1.0", readOnly: true }, { id: "from", name: "from", descriptionId: "AR_TP_EMAIL_PROP_FROM_DSC", type: "cpx_email_address", isCollection: false, isComputed: false, version: "1.0", readOnly: true }, { id: "to", name: "to", descriptionId: "AR_TP_EMAIL_PROP_TO_DSC", type: "cpx_email_address", isCollection: true, isComputed: false, version: "1.0", readOnly: true }, { id: "cc", name: "cc", descriptionId: "AR_TP_EMAIL_PROP_CC_DSC", type: "cpx_email_address", isCollection: true, isComputed: false, version: "1.0", readOnly: true }, { id: "bcc", name: "bcc", descriptionId: "AR_TP_EMAIL_PROP_BCC_DSC", type: "cpx_email_address", isCollection: true, isComputed: false, version: "1.0", readOnly: true }, { id: "subject", name: "subject", descriptionId: "AR_TP_EMAIL_PROP_SUBJECT_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: true }, { id: "direction", name: "direction", descriptionId: "AR_TP_EMAIL_PROP_DIRECTION_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: true }, { id: "replyTo", name: "replyTo", descriptionId: "AR_TP_EMAIL_PROP_REPLYTO_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: true }, { id: "route", name: "route", descriptionId: "AR_TP_EMAIL_PROP_ROUTE_DSC", type: "cpx_email_address", isCollection: false, isComputed: false, version: "1.0", readOnly: true, featureConfigName: "emailRouteFeature" }, { id: "body", name: "body", descriptionId: "AR_TP_EMAIL_PROP_BODY_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: true }, { id: "htmlBody", name: "htmlBody", descriptionId: "AR_TP_EMAIL_PROP_HTMLBODY_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: true }, { id: "attachments", name: "attachments", descriptionId: "AR_TP_EMAIL_PROP_ATTACHMENTS_DSC", type: "cpx_email_attachment", isCollection: true, isComputed: false, version: "1.0", readOnly: true }, { id: "dateTimeUtc", name: "dateTimeUtc", descriptionId: "AR_TP_EMAIL_PROP_DATETIMEUTC_DSC", type: "dtm", isCollection: false, isComputed: false, version: "1.0", readOnly: true }] }, EmailAddress: { name: "AR_TP_EMAILADDRESS", allowArray: true, dataType: "ComplexDataType", support: { classType: "ComplexVariable", expressionDataType: "cpx_email_address", isSupportedByAny: true, userCanCreate: false, supportedFlowTypes: { commonmodule: {}, emailsend: {}, inboundemail: {}, inqueueemail: {}, inqueueshortmessage: {}, surveyinvite: {}, workflow: { featureConfigName: "sendNotificationAction" }, workitem: {} }, version: "1.0" }, nativeProperties: [{ id: "name", name: "name", descriptionId: "AR_TP_EMAILADDRESS_PROP_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: true }, { id: "id", name: "id", descriptionId: "AR_TP_EMAILADDRESS_PROP_ID_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: true }] }, EmailAttachment: { name: "AR_TP_EMAILATTACHMENT", allowArray: true, dataType: "ComplexDataType", support: { classType: "ComplexVariable", expressionDataType: "cpx_email_attachment", isSupportedByAny: true, userCanCreate: false, supportedFlowTypes: { emailsend: {}, inboundemail: {}, inqueueemail: {}, inboundshortmessage: {}, inqueueshortmessage: {}, commonmodule: {} }, version: "1.0" }, nativeProperties: [{ id: "id", name: "id", descriptionId: "AR_TP_EMAILATTACHMENT_PROP_ID_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: true }, { id: "contentLength", name: "contentLength", descriptionId: "AR_TP_EMAILATTACHMENT_PROP_CONTENTLENGTH_DSC", type: "int", isCollection: false, isComputed: false, version: "1.0", readOnly: true }, { id: "contentType", name: "contentType", descriptionId: "AR_TP_EMAILATTACHMENT_PROP_CONTENTTYPE_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: true }, { id: "contentUri", name: "contentUri", descriptionId: "AR_TP_EMAILATTACHMENT_PROP_CONTENTURI_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: true }, { id: "name", name: "name", descriptionId: "AR_TP_EMAILATTACHMENT_PROP_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: true }] }, DraftEmail: { name: "AR_TP_DRAFTEMAIL", allowArray: false, additionalProperties: "false", dataType: "JsonDataType", support: { classType: "JsonVariable", expressionDataType: "jsn__architect::draft_email", expressionBaseDataType: "jsn", isSupportedByAny: true, userCanCreate: true, supportedFlowTypes: { emailsend: {} }, version: "1.0", featureConfigName: "emailSendFlows" }, nativeProperties: [{ id: "attachments", name: "attachments", descriptionId: "AR_TP_DRAFTEMAIL_PROP_ATTACHMENTS_DSC", type: "jsn__architect::draft_email_attachment", isCollection: true, isComputed: false, version: "1.0", readOnly: true }, { id: "bcc", name: "bcc", descriptionId: "AR_TP_DRAFTEMAIL_PROP_BCC_DSC", type: "jsn__architect::draft_email_address", isCollection: true, isComputed: false, version: "1.0", readOnly: true }, { id: "cc", name: "cc", descriptionId: "AR_TP_DRAFTEMAIL_PROP_CC_DSC", type: "jsn__architect::draft_email_address", isCollection: true, isComputed: false, version: "1.0", readOnly: true }, { id: "from", name: "from", descriptionId: "AR_TP_DRAFTEMAIL_PROP_FROM_DSC", type: "jsn__architect::draft_email_address", isCollection: false, isComputed: false, version: "1.0", readOnly: true }, { id: "headers", name: "headers", descriptionId: "AR_TP_DRAFTEMAIL_PROP_HEADERS_DSC", type: "jsn", isCollection: false, isComputed: false, version: "1.0", readOnly: true }, { id: "subject", name: "subject", descriptionId: "AR_TP_DRAFTEMAIL_PROP_SUBJECT_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: true }, { id: "to", name: "to", descriptionId: "AR_TP_DRAFTEMAIL_PROP_TO_DSC", type: "jsn__architect::draft_email_address", isCollection: true, isComputed: false, version: "1.0", readOnly: true }] }, DraftEmailAddress: { name: "AR_TP_DRAFTEMAILADDRESS", allowArray: true, additionalProperties: "false", dataType: "JsonDataType", support: { classType: "JsonVariable", expressionDataType: "jsn__architect::draft_email_address", expressionBaseDataType: "jsn", isSupportedByAny: true, userCanCreate: true, supportedFlowTypes: { emailsend: {} }, version: "1.0", featureConfigName: "emailSendFlows" }, nativeProperties: [{ id: "email", name: "email", descriptionId: "AR_TP_DRAFTEMAILADDRESS_PROP_EMAIL_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: false }, { id: "name", name: "name", descriptionId: "AR_TP_DRAFTEMAILADDRESS_PROP_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: false, isOptional: true }] }, DraftEmailAttachment: { name: "AR_TP_DRAFTEMAILATTACHMENT", allowArray: true, additionalProperties: "false", dataType: "JsonDataType", support: { classType: "JsonVariable", expressionDataType: "jsn__architect::draft_email_attachment", expressionBaseDataType: "jsn", isSupportedByAny: true, userCanCreate: true, supportedFlowTypes: { emailsend: {} }, version: "1.0", featureConfigName: "emailSendFlows" }, nativeProperties: [{ id: "attachmentId", name: "attachmentId", descriptionId: "AR_TP_DRAFTEMAILATTACHMENT_PROP_ATTACHMENTID_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: true }, { id: "contentLength", name: "contentLength", descriptionId: "AR_TP_DRAFTEMAILATTACHMENT_PROP_CONTENTLENGTH_DSC", type: "int", isCollection: false, isComputed: false, version: "1.0", readOnly: true }, { id: "contentType", name: "contentType", descriptionId: "AR_TP_DRAFTEMAILATTACHMENT_PROP_CONTENTTYPE_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: true }, { id: "contentUri", name: "contentUri", descriptionId: "AR_TP_DRAFTEMAILATTACHMENT_PROP_CONTENTURI_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: true }, { id: "name", name: "name", descriptionId: "AR_TP_DRAFTEMAILATTACHMENT_PROP_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: true }] }, ExternalOrganization: { name: "AR_TP_EXTERNALORGANIZATION", allowArray: true, dataType: "ComplexDataType", support: { classType: "ComplexVariable", expressionDataType: "cpx_external_organization", isSupportedByAny: true, userCanCreate: true, supportedFlowTypes: { emailsend: {}, inboundchat: {}, inboundemail: {}, inboundshortmessage: {}, inqueueemail: {}, inqueueshortmessage: {}, surveyinvite: {}, workflow: {}, workitem: {}, inboundcall: { featureConfigName: "externalContactUpdatesPhase1" }, inqueuecall: { featureConfigName: "externalContactUpdatesPhase1" }, outboundcall: { featureConfigName: "externalContactUpdatesPhase1" }, securecall: { featureConfigName: "externalContactUpdatesPhase1" }, voicemail: { featureConfigName: "externalContactUpdatesPhase1" }, bot: { featureConfigName: "botFlowsExternalEntitySupportFeature" }, commonmodule: { flowInputSingleton: true, flowInputCollection: true, flowOutputSingleton: true, flowOutputCollection: true }, digitalbot: { featureConfigName: "botFlowsExternalEntitySupportFeature" }, voice: {}, voicesurvey: {} }, version: "1.0" }, nativeProperties: [{ id: "id", name: "id", descriptionId: "AR_TP_EXTERNALORGANIZATION_PROP_ID_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: true }, { id: "createDateTimeUtc", name: "createDateTimeUtc", descriptionId: "AR_TP_EXTERNALORGANIZATION_PROP_CREATEDATETIMEUTC_DSC", type: "dtm", isCollection: false, isComputed: false, version: "1.0", readOnly: true }, { id: "modifyDateTimeUtc", name: "modifyDateTimeUtc", descriptionId: "AR_TP_EXTERNALORGANIZATION_PROP_MODIFYDATETIMEUTC_DSC", type: "dtm", isCollection: false, isComputed: false, version: "1.0", readOnly: true }, { id: "kind", name: "kind", descriptionId: "AR_TP_EXTERNALORGANIZATION_PROP_KIND_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: true }, { id: "name", name: "name", descriptionId: "AR_TP_EXTERNALORGANIZATION_PROP_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: true }, { id: "companyType", name: "companyType", descriptionId: "AR_TP_EXTERNALORGANIZATION_PROP_COMPANYTYPE_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: true }, { id: "industry", name: "industry", descriptionId: "AR_TP_EXTERNALORGANIZATION_PROP_INDUSTRY_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: true }, { id: "primaryContactId", name: "primaryContactId", descriptionId: "AR_TP_EXTERNALORGANIZATION_PROP_PRIMARYCONTACTID_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: true }, { id: "address", name: "address", descriptionId: "AR_TP_EXTERNALORGANIZATION_PROP_ADDRESS_DSC", type: "cpx_external_address", isCollection: false, isComputed: false, version: "1.0", readOnly: true }, { id: "phoneNumber", name: "phoneNumber", descriptionId: "AR_TP_EXTERNALORGANIZATION_PROP_PHNBR_DSC", type: "cpx_external_phone_number", isCollection: false, isComputed: false, version: "1.0", readOnly: true }, { id: "faxNumber", name: "faxNumber", descriptionId: "AR_TP_EXTERNALORGANIZATION_PROP_FAXNUMBER_DSC", type: "cpx_external_phone_number", isCollection: false, isComputed: false, version: "1.0", readOnly: true }, { id: "employeeCount", name: "employeeCount", descriptionId: "AR_TP_EXTERNALORGANIZATION_PROP_EMPLOYEECOUNT_DSC", type: "int", isCollection: false, isComputed: false, version: "1.0", readOnly: true }, { id: "revenue", name: "revenue", descriptionId: "AR_TP_EXTERNALORGANIZATION_PROP_REVENUE_DSC", type: "int", isCollection: false, isComputed: false, version: "1.0", readOnly: true }, { id: "tags", name: "tags", descriptionId: "AR_TP_EXTERNALORGANIZATION_PROP_TAGS_DSC", type: "str", isCollection: true, isComputed: false, version: "1.0", readOnly: true }, { id: "tickers", name: "tickers", descriptionId: "AR_TP_EXTERNALORGANIZATION_PROP_TICKERS_DSC", type: "str", isCollection: true, isComputed: false, version: "1.0", readOnly: true }, { id: "twitterInfo", name: "twitterInfo", descriptionId: "AR_TP_EXTERNALORGANIZATION_PROP_TWITTERINFO_DSC", type: "cpx_external_twitter_info", isCollection: false, isComputed: false, version: "1.0", readOnly: true }, { id: "externalSystemUrl", name: "externalSystemUrl", descriptionId: "AR_TP_EXTERNALORGANIZATION_PROP_EXTERNALSYSTEMURL_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: true }, { id: "websites", name: "websites", descriptionId: "AR_TP_EXTERNALORGANIZATION_PROP_WEBSITES_DSC", type: "str", isCollection: true, isComputed: false, version: "1.0", readOnly: true }, { id: "divisionId", name: "divisionId", descriptionId: "AR_TP_EXTERNALORGANIZATION_PROP_DIVISIONID_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: true, featureConfigName: "divisionedExternalContacts" }] }, ExternalAddress: { name: "AR_TP_EXTERNALADDRESS", allowArray: true, dataType: "ComplexDataType", support: { classType: "ComplexVariable", expressionDataType: "cpx_external_address", isSupportedByAny: true, userCanCreate: false, supportedFlowTypes: { emailsend: {}, inboundchat: {}, inboundemail: {}, inboundshortmessage: {}, inqueueemail: {}, inqueueshortmessage: {}, surveyinvite: {}, workflow: {}, workitem: {}, inboundcall: { featureConfigName: "externalContactUpdatesPhase1" }, inqueuecall: { featureConfigName: "externalContactUpdatesPhase1" }, outboundcall: { featureConfigName: "externalContactUpdatesPhase1" }, securecall: { featureConfigName: "externalContactUpdatesPhase1" }, voicemail: { featureConfigName: "externalContactUpdatesPhase1" }, bot: { featureConfigName: "botFlowsExternalEntitySupportFeature" }, commonmodule: {}, digitalbot: { featureConfigName: "botFlowsExternalEntitySupportFeature" }, voice: {}, voicesurvey: {} }, version: "1.0" }, nativeProperties: [{ id: "address1", name: "address1", descriptionId: "AR_TP_EXTERNALADDRESS_PROP_ADDRESS1_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: true }, { id: "address2", name: "address2", descriptionId: "AR_TP_EXTERNALADDRESS_PROP_ADDRESS2_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: true }, { id: "city", name: "city", descriptionId: "AR_TP_EXTERNALADDRESS_PROP_CITY_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: true }, { id: "state", name: "state", descriptionId: "AR_TP_EXTERNALADDRESS_PROP_STATE_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: true }, { id: "postalCode", name: "postalCode", descriptionId: "AR_TP_EXTERNALADDRESS_PROP_POSTALCODE_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: true }, { id: "countryCode", name: "countryCode", descriptionId: "AR_TP_EXTERNALADDRESS_PROP_COUNTRYCODE_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: true }] }, Card: { name: "AR_TP_CARD", allowArray: true, dataType: "CardDataType", propertiesAllowAssignment: true, support: { classType: "CardVariable", expressionDataType: "crd", isSupportedByAny: true, userCanCreate: true, supportedFlowTypes: { digitalbot: {} }, version: "1.0" }, nativeProperties: [{ id: "title", name: "title", descriptionId: "AR_TP_CARD_PROP_TITLE_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: false, minLength: 1, displayValue: "AR_TP_CARD_PROP_TITLE_DISP_VAL" }, { id: "description", name: "description", descriptionId: "AR_TP_CARD_PROP_DESCRIPTION_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: false, displayValue: "AR_TP_CARD_PROP_DESCRIPTION_DISP_VAL" }, { id: "image", name: "image", descriptionId: "AR_TP_CARD_PROP_IMAGE_DSC", type: "img", isCollection: false, isComputed: false, version: "1.0", readOnly: false, displayValue: "AR_TP_CARD_PROP_IMAGE_DISP_VAL" }, { id: "buttons", name: "buttons", descriptionId: "AR_TP_CARD_PROP_BUTTONS_DSC", type: "chc", isCollection: true, isComputed: false, version: "1.0", readOnly: true, minItems: 1, maxItems: 3, displayValue: "AR_TP_CARD_PROP_BUTTONS_DISP_VAL" }] }, Choice: { name: "AR_TP_CHOICE", allowArray: true, dataType: "ChoiceDataType", propertiesAllowAssignment: true, support: { classType: "ChoiceVariable", expressionDataType: "chc", isSupportedByAny: true, userCanCreate: true, supportedFlowTypes: { digitalbot: {} }, version: "1.0" }, nativeProperties: [{ id: "label", name: "label", descriptionId: "AR_TP_CHOICE_PROP_LABEL_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: false, isOptional: true, noValueRuntimeStr: "", displayValue: "AR_TP_CHOICE_PROP_LABEL_DISP_VAL" }, { id: "value", name: "value", descriptionId: "AR_TP_CHOICE_PROP_VALUE_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: false, minLength: 1, noValueRuntimeStr: "Button Name", displayValue: "AR_TP_CHOICE_PROP_VALUE_DISP_VAL" }, { id: "type", name: "type", descriptionId: "AR_TP_CHOICE_PROP_TYPE_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: false, yamlSerializeIfOutOfService: true, allowableValues: "postback,url", defaultValue: "postback", displayValue: "AR_TP_CHOICE_PROP_TYPE_DISP_VAL" }, { id: "command", name: "command", descriptionId: "AR_TP_CHOICE_PROP_COMMAND_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: false, featureConfigName: "botFlowsSupportDontKnowAnswers", yamlSerializeIfOutOfService: true, allowableValues: "skip,none", defaultValue: "none", displayValue: "AR_TP_CHOICE_PROP_COMMAND_DISP_VAL" }] }, QuickReplies: { name: "AR_TP_QUICKREPLIES", allowArray: false, dataType: "QuickRepliesDataType", propertiesAllowAssignment: true, support: { classType: "QuickRepliesVariable", expressionDataType: "qrl", isSupportedByAny: true, userCanCreate: true, supportedFlowTypes: { digitalbot: {} }, version: "1.0" }, nativeProperties: [{ id: "buttons", name: "buttons", descriptionId: "AR_TP_QUICKREPLIES_PROP_BUTTONS_DSC", type: "chc", isCollection: true, isComputed: false, version: "1.0", readOnly: true, minItems: 1, maxItems: 10, maxItemsIsSoftLimit: true, displayValue: "AR_TP_QUICKREPLIES_PROP_BUTTONS_DISP_VAL" }, { id: "quickReplySummary", name: "quickReplySummary", descriptionId: "AR_TP_QUICKREPLIES_PROP_QUICKREPLYSUMMARY_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: false, featureConfigName: "digitalBotFlowsAppleMessaging", maxLength: 512, displayValue: "AR_TP_QUICKREPLIES_PROP_QUICKREPLYSUMMARY_DISP_VAL" }] }, Carousel: { name: "AR_TP_CAROUSEL", allowArray: false, dataType: "CarouselDataType", propertiesAllowAssignment: true, support: { classType: "CarouselVariable", expressionDataType: "crs", isSupportedByAny: true, userCanCreate: true, supportedFlowTypes: { digitalbot: {} }, version: "1.0" }, nativeProperties: [{ id: "cards", name: "cards", descriptionId: "AR_TP_CAROUSEL_PROP_CARDS_DSC", type: "crd", isCollection: true, isComputed: false, version: "1.0", readOnly: false, minItems: 1, maxItems: 10 }] }, Chooser: { name: "AR_TP_CHOOSER", allowArray: false, dataType: "ChooserDataType", propertiesAllowAssignment: true, support: { classType: "ChooserVariable", expressionDataType: "chs", isSupportedByAny: true, userCanCreate: true, supportedFlowTypes: { digitalbot: {} }, version: "1.0" }, nativeProperties: [{ id: "presentation", name: "presentation", descriptionId: "AR_TP_CHOOSER_PROP_PRESENTATION_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: true, allowableValues: "carousel,quickReplies" }, { id: "carousel", name: "carousel", descriptionId: "AR_TP_CHOOSER_PROP_CAROUSEL_DSC", type: "crs", isCollection: false, isComputed: false, version: "1.0", readOnly: false }, { id: "quickReplies", name: "quickReplies", descriptionId: "AR_TP_CHOOSER_PROP_QUICKREPLIES_DSC", type: "qrl", isCollection: false, isComputed: false, version: "1.0", readOnly: false }, { id: "timePicker", name: "timePicker", descriptionId: "AR_TP_CHOOSER_PROP_TIMEPICKER_DSC", type: "tpk", isCollection: false, isComputed: false, version: "1.0", readOnly: false, featureConfigName: "botFlowsMessagingDatePicker" }, { id: "listPicker", name: "listPicker", descriptionId: "AR_TP_CHOOSER_PROP_LISTPICKER_DSC", type: "lpk", isCollection: false, isComputed: false, version: "1.0", readOnly: false, featureConfigName: "botFlowsAppleListPicker" }] }, ExternalFacebookInfo: { name: "AR_TP_EXTERNALFACEBOOKINFO", allowArray: true, dataType: "ComplexDataType", support: { classType: "ComplexVariable", expressionDataType: "cpx_external_facebook_info", isSupportedByAny: true, userCanCreate: false, supportedFlowTypes: { emailsend: {}, inboundchat: {}, inboundemail: {}, inboundshortmessage: {}, inqueueemail: {}, inqueueshortmessage: {}, surveyinvite: {}, workflow: {}, workitem: {}, inboundcall: { featureConfigName: "externalContactUpdatesPhase1" }, inqueuecall: { featureConfigName: "externalContactUpdatesPhase1" }, outboundcall: { featureConfigName: "externalContactUpdatesPhase1" }, securecall: { featureConfigName: "externalContactUpdatesPhase1" }, voicemail: { featureConfigName: "externalContactUpdatesPhase1" }, bot: { featureConfigName: "botFlowsExternalEntitySupportFeature" }, commonmodule: {}, digitalbot: { featureConfigName: "botFlowsExternalEntitySupportFeature" }, voice: {}, voicesurvey: {} }, version: "1.0" }, nativeProperties: [{ id: "displayName", name: "displayName", descriptionId: "AR_TP_EXTERNALFACEBOOKINFO_PROP_DISPLAYNAME_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: true }, { id: "ids", name: "ids", descriptionId: "AR_TP_EXTERNALFACEBOOKINFO_PROP_IDS_DSC", type: "cpx_external_facebook_id", isCollection: true, isComputed: false, version: "1.0", readOnly: true }] }, ExternalFacebookId: { name: "AR_TP_EXTERNALFACEBOOKID", allowArray: true, dataType: "ComplexDataType", support: { classType: "ComplexVariable", expressionDataType: "cpx_external_facebook_id", isSupportedByAny: true, userCanCreate: false, supportedFlowTypes: { emailsend: {}, inboundchat: {}, inboundemail: {}, inboundshortmessage: {}, inqueueemail: {}, inqueueshortmessage: {}, surveyinvite: {}, workflow: {}, workitem: {}, inboundcall: { featureConfigName: "externalContactUpdatesPhase1" }, inqueuecall: { featureConfigName: "externalContactUpdatesPhase1" }, outboundcall: { featureConfigName: "externalContactUpdatesPhase1" }, securecall: { featureConfigName: "externalContactUpdatesPhase1" }, voicemail: { featureConfigName: "externalContactUpdatesPhase1" }, bot: { featureConfigName: "botFlowsExternalEntitySupportFeature" }, commonmodule: {}, digitalbot: { featureConfigName: "botFlowsExternalEntitySupportFeature" }, voice: {}, voicesurvey: {} }, version: "1.0" }, nativeProperties: [{ id: "scopedId", name: "scopedId", descriptionId: "AR_TP_EXTERNALFACEBOOKID_PROP_SCOPEDID_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: true }] }, ExternalLineInfo: { name: "AR_TP_EXTERNALLINEINFO", allowArray: true, dataType: "ComplexDataType", support: { classType: "ComplexVariable", expressionDataType: "cpx_external_line_info", isSupportedByAny: true, userCanCreate: false, supportedFlowTypes: { emailsend: {}, inboundchat: {}, inboundemail: {}, inboundshortmessage: {}, inqueueemail: {}, inqueueshortmessage: {}, surveyinvite: {}, workflow: {}, workitem: {}, inboundcall: { featureConfigName: "externalContactUpdatesPhase1" }, inqueuecall: { featureConfigName: "externalContactUpdatesPhase1" }, outboundcall: { featureConfigName: "externalContactUpdatesPhase1" }, securecall: { featureConfigName: "externalContactUpdatesPhase1" }, voicemail: { featureConfigName: "externalContactUpdatesPhase1" }, bot: { featureConfigName: "botFlowsExternalEntitySupportFeature" }, commonmodule: {}, digitalbot: { featureConfigName: "botFlowsExternalEntitySupportFeature" }, voice: {}, voicesurvey: {} }, version: "1.0" }, nativeProperties: [{ id: "displayName", name: "displayName", descriptionId: "AR_TP_EXTERNALLINEINFO_PROP_DISPLAYNAME_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: true }, { id: "ids", name: "ids", descriptionId: "AR_TP_EXTERNALLINEINFO_PROP_IDS_DSC", type: "cpx_external_line_id", isCollection: true, isComputed: false, version: "1.0", readOnly: true }] }, ExternalLineId: { name: "AR_TP_EXTERNALLINEID", allowArray: true, dataType: "ComplexDataType", support: { classType: "ComplexVariable", expressionDataType: "cpx_external_line_id", isSupportedByAny: true, userCanCreate: false, supportedFlowTypes: { emailsend: {}, inboundchat: {}, inboundemail: {}, inboundshortmessage: {}, inqueueemail: {}, inqueueshortmessage: {}, surveyinvite: {}, workflow: {}, workitem: {}, inboundcall: { featureConfigName: "externalContactUpdatesPhase1" }, inqueuecall: { featureConfigName: "externalContactUpdatesPhase1" }, outboundcall: { featureConfigName: "externalContactUpdatesPhase1" }, securecall: { featureConfigName: "externalContactUpdatesPhase1" }, voicemail: { featureConfigName: "externalContactUpdatesPhase1" }, bot: { featureConfigName: "botFlowsExternalEntitySupportFeature" }, commonmodule: {}, digitalbot: { featureConfigName: "botFlowsExternalEntitySupportFeature" }, voice: {}, voicesurvey: {} }, version: "1.0" }, nativeProperties: [{ id: "userId", name: "userId", descriptionId: "AR_TP_EXTERNALLINEID_PROP_USERID_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: true }] }, ExternalTwitterInfo: { name: "AR_TP_EXTERNALTWITTERINFO", allowArray: true, dataType: "ComplexDataType", support: { classType: "ComplexVariable", expressionDataType: "cpx_external_twitter_info", isSupportedByAny: true, userCanCreate: false, supportedFlowTypes: { emailsend: {}, inboundchat: {}, inboundemail: {}, inboundshortmessage: {}, inqueueemail: {}, inqueueshortmessage: {}, surveyinvite: {}, workflow: {}, workitem: {}, inboundcall: { featureConfigName: "externalContactUpdatesPhase1" }, inqueuecall: { featureConfigName: "externalContactUpdatesPhase1" }, outboundcall: { featureConfigName: "externalContactUpdatesPhase1" }, securecall: { featureConfigName: "externalContactUpdatesPhase1" }, voicemail: { featureConfigName: "externalContactUpdatesPhase1" }, bot: { featureConfigName: "botFlowsExternalEntitySupportFeature" }, commonmodule: {}, digitalbot: { featureConfigName: "botFlowsExternalEntitySupportFeature" }, voice: {}, voicesurvey: {} }, version: "1.0" }, nativeProperties: [{ id: "id", name: "id", descriptionId: "AR_TP_EXTERNALTWITTERINFO_PROP_ID_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: true }, { id: "name", name: "name", descriptionId: "AR_TP_EXTERNALTWITTERINFO_PROP_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: true }, { id: "screenName", name: "screenName", descriptionId: "AR_TP_EXTERNALTWITTERINFO_PROP_SCREENNAME_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: true }] }, ExternalPhoneNumber: { name: "AR_TP_EXTERNALPHONENUMBER", allowArray: true, dataType: "ComplexDataType", support: { classType: "ComplexVariable", expressionDataType: "cpx_external_phone_number", isSupportedByAny: true, userCanCreate: false, supportedFlowTypes: { emailsend: {}, inboundchat: {}, inboundemail: {}, inboundshortmessage: {}, inqueueemail: {}, inqueueshortmessage: {}, surveyinvite: {}, workflow: {}, workitem: {}, inboundcall: { featureConfigName: "externalContactUpdatesPhase1" }, inqueuecall: { featureConfigName: "externalContactUpdatesPhase1" }, outboundcall: { featureConfigName: "externalContactUpdatesPhase1" }, securecall: { featureConfigName: "externalContactUpdatesPhase1" }, voicemail: { featureConfigName: "externalContactUpdatesPhase1" }, bot: { featureConfigName: "botFlowsExternalEntitySupportFeature" }, commonmodule: {}, digitalbot: { featureConfigName: "botFlowsExternalEntitySupportFeature" }, voice: {}, voicesurvey: {} }, version: "1.0" }, nativeProperties: [{ id: "display", name: "display", descriptionId: "AR_TP_EXTERNALPHONENUMBER_PROP_DISPLAY_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: true }, { id: "extension", name: "extension", descriptionId: "AR_TP_EXTERNALPHONENUMBER_PROP_EXTENSION_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: true }, { id: "userInput", name: "userInput", descriptionId: "AR_TP_EXTERNALPHONENUMBER_PROP_USERINPUT_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: true }, { id: "e164", name: "e164", descriptionId: "AR_TP_EXTERNALPHONENUMBER_PROP_E164_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: true }, { id: "countryCode", name: "countryCode", descriptionId: "AR_TP_EXTERNALPHONENUMBER_PROP_COUNTRYCODE_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: true }, { id: "acceptsSMS", name: "acceptsSMS", descriptionId: "AR_TP_EXTERNALPHONENUMBER_PROP_ACCEPTSSMS_DSC", type: "bln", isCollection: false, isComputed: false, version: "1.0", readOnly: true }] }, ExternalWhatsAppInfo: { name: "AR_TP_EXTERNALWHATSAPPINFO", allowArray: true, dataType: "ComplexDataType", support: { classType: "ComplexVariable", expressionDataType: "cpx_external_whats_app_info", isSupportedByAny: true, userCanCreate: false, supportedFlowTypes: { emailsend: {}, inboundchat: {}, inboundemail: {}, inboundshortmessage: {}, inqueueemail: {}, inqueueshortmessage: {}, surveyinvite: {}, workflow: {}, workitem: {}, inboundcall: { featureConfigName: "externalContactUpdatesPhase1" }, inqueuecall: { featureConfigName: "externalContactUpdatesPhase1" }, outboundcall: { featureConfigName: "externalContactUpdatesPhase1" }, securecall: { featureConfigName: "externalContactUpdatesPhase1" }, voicemail: { featureConfigName: "externalContactUpdatesPhase1" }, bot: { featureConfigName: "botFlowsExternalEntitySupportFeature" }, commonmodule: {}, digitalbot: { featureConfigName: "botFlowsExternalEntitySupportFeature" }, voice: {}, voicesurvey: {} }, version: "1.0" }, nativeProperties: [{ id: "displayName", name: "displayName", descriptionId: "AR_TP_EXTERNALWHATSAPPINFO_PROP_DISPLAYNAME_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: true }, { id: "phoneNumber", name: "phoneNumber", descriptionId: "AR_TP_EXTERNALWHATSAPPINFO_PROP_PHNBR_DSC", type: "cpx_external_phone_number", isCollection: false, isComputed: false, version: "1.0", readOnly: true }] }, ExternalContact: { name: "AR_TP_EXTERNALCONTACT", allowArray: true, dataType: "ComplexDataType", support: { classType: "ComplexVariable", expressionDataType: "cpx_external_contact", isSupportedByAny: true, userCanCreate: true, supportedFlowTypes: { emailsend: {}, inboundchat: {}, inboundemail: {}, inboundshortmessage: {}, inqueueemail: {}, inqueueshortmessage: {}, surveyinvite: {}, workflow: {}, workitem: {}, inboundcall: { featureConfigName: "externalContactUpdatesPhase1" }, inqueuecall: { featureConfigName: "externalContactUpdatesPhase1" }, outboundcall: { featureConfigName: "externalContactUpdatesPhase1" }, securecall: { featureConfigName: "externalContactUpdatesPhase1" }, voicemail: { featureConfigName: "externalContactUpdatesPhase1" }, bot: { featureConfigName: "botFlowsExternalEntitySupportFeature" }, commonmodule: { flowInputSingleton: true, flowInputCollection: true, flowOutputSingleton: true, flowOutputCollection: true }, digitalbot: { featureConfigName: "botFlowsExternalEntitySupportFeature" }, voice: {}, voicesurvey: {} }, version: "1.0" }, nativeProperties: [{ id: "id", name: "id", descriptionId: "AR_TP_EXTERNALCONTACT_PROP_ID_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: true }, { id: "createDateTimeUtc", name: "createDateTimeUtc", descriptionId: "AR_TP_EXTERNALCONTACT_PROP_CREATEDATETIMEUTC_DSC", type: "dtm", isCollection: false, isComputed: false, version: "1.0", readOnly: true }, { id: "modifyDateTimeUtc", name: "modifyDateTimeUtc", descriptionId: "AR_TP_EXTERNALCONTACT_PROP_MODIFYDATETIMEUTC_DSC", type: "dtm", isCollection: false, isComputed: false, version: "1.0", readOnly: true }, { id: "kind", name: "kind", descriptionId: "AR_TP_EXTERNALCONTACT_PROP_KIND_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: true }, { id: "divisionId", name: "divisionId", descriptionId: "AR_TP_EXTERNALCONTACT_PROP_DIVISIONID_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: true, featureConfigName: "divisionedExternalContacts" }, { id: "externalOrganization", name: "externalOrganization", descriptionId: "AR_TP_EXTERNALCONTACT_PROP_EXTERNALORGANIZATION_DSC", type: "cpx_external_organization", isCollection: false, isComputed: false, version: "1.0", readOnly: true }, { id: "facebookInfo", name: "facebookInfo", descriptionId: "AR_TP_EXTERNALCONTACT_PROP_FACEBOOKINFO_DSC", type: "cpx_external_facebook_info", isCollection: false, isComputed: false, version: "1.0", readOnly: true }, { id: "firstName", name: "firstName", descriptionId: "AR_TP_EXTERNALCONTACT_PROP_FIRSTNAME_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: true }, { id: "middleName", name: "middleName", descriptionId: "AR_TP_EXTERNALCONTACT_PROP_MIDDLENAME_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: true }, { id: "lastName", name: "lastName", descriptionId: "AR_TP_EXTERNALCONTACT_PROP_LASTNAME_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: true }, { id: "lineInfo", name: "lineInfo", descriptionId: "AR_TP_EXTERNALCONTACT_PROP_LINEINFO_DSC", type: "cpx_external_line_info", isCollection: false, isComputed: false, version: "1.0", readOnly: true }, { id: "salutation", name: "salutation", descriptionId: "AR_TP_EXTERNALCONTACT_PROP_SALUTATION_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: true }, { id: "title", name: "title", descriptionId: "AR_TP_EXTERNALCONTACT_PROP_TITLE_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: true }, { id: "twitterInfo", name: "twitterInfo", descriptionId: "AR_TP_EXTERNALCONTACT_PROP_TWITTERINFO_DSC", type: "cpx_external_twitter_info", isCollection: false, isComputed: false, version: "1.0", readOnly: true }, { id: "whatsAppInfo", name: "whatsAppInfo", descriptionId: "AR_TP_EXTERNALCONTACT_PROP_WHATSAPPINFO_DSC", type: "cpx_external_whats_app_info", isCollection: false, isComputed: false, version: "1.0", readOnly: true }, { id: "workPhone", name: "workPhone", descriptionId: "AR_TP_EXTERNALCONTACT_PROP_WORKPHONE_DSC", type: "cpx_external_phone_number", isCollection: false, isComputed: false, version: "1.0", readOnly: true }, { id: "cellPhone", name: "cellPhone", descriptionId: "AR_TP_EXTERNALCONTACT_PROP_CELLPHONE_DSC", type: "cpx_external_phone_number", isCollection: false, isComputed: false, version: "1.0", readOnly: true }, { id: "homePhone", name: "homePhone", descriptionId: "AR_TP_EXTERNALCONTACT_PROP_HOMEPHONE_DSC", type: "cpx_external_phone_number", isCollection: false, isComputed: false, version: "1.0", readOnly: true }, { id: "otherPhone", name: "otherPhone", descriptionId: "AR_TP_EXTERNALCONTACT_PROP_OTHERPHONE_DSC", type: "cpx_external_phone_number", isCollection: false, isComputed: false, version: "1.0", readOnly: true }, { id: "workEmail", name: "workEmail", descriptionId: "AR_TP_EXTERNALCONTACT_PROP_WORKEMAIL_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: true }, { id: "personalEmail", name: "personalEmail", descriptionId: "AR_TP_EXTERNALCONTACT_PROP_PERSONALEMAIL_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: true }, { id: "otherEmail", name: "otherEmail", descriptionId: "AR_TP_EXTERNALCONTACT_PROP_OTHEREMAIL_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: true }, { id: "address", name: "address", descriptionId: "AR_TP_EXTERNALCONTACT_PROP_ADDRESS_DSC", type: "cpx_external_address", isCollection: false, isComputed: false, version: "1.0", readOnly: true }, { id: "surveyOptOut", name: "surveyOptOut", descriptionId: "AR_TP_EXTERNALCONTACT_PROP_SURVEYOPTOUT_DSC", type: "bln", isCollection: false, isComputed: false, version: "1.0", readOnly: true }, { id: "externalSystemUrl", name: "externalSystemUrl", descriptionId: "AR_TP_EXTERNALCONTACT_PROP_EXTERNALSYSTEMURL_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: true }, { id: "type", name: "type", descriptionId: "AR_TP_EXTERNALCONTACT_PROP_TYPE_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: true, featureConfigName: "externalContactUpdateAction", allowableValues: "Ephemeral,Identified,Curated" }, { id: "instagramInfo", name: "instagramInfo", descriptionId: "AR_TP_EXTERNALCONTACT_PROP_INSTAGRAMINFO_DSC", type: "cpx_external_instagram_info", isCollection: false, isComputed: false, version: "1.0", readOnly: true, featureConfigName: "externalContactUpdateAction" }, { id: "externalIdInfo", name: "externalIdInfo", descriptionId: "AR_TP_EXTERNALCONTACT_PROP_EXTERNALIDINFO_DSC", type: "cpx_external_id_info", isCollection: true, isComputed: false, version: "1.0", readOnly: true, featureConfigName: "externalContactUpdateAction" }, { id: "appleInfo", name: "appleInfo", descriptionId: "AR_TP_EXTERNALCONTACT_PROP_APPLEINFO_DSC", type: "cpx_external_apple_info", isCollection: true, isComputed: false, version: "1.0", readOnly: true, featureConfigName: "externalContactUpdateAction" }, { id: "canonicalContactId", name: "canonicalContactId", descriptionId: "AR_TP_EXTERNALCONTACT_PROP_CANONICALCONTACTID_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: true, featureConfigName: "externalContactUpdateAction" }, { id: "mergedFrom", name: "mergedFrom", descriptionId: "AR_TP_EXTERNALCONTACT_PROP_MERGEDFROM_DSC", type: "str", isCollection: true, isComputed: false, version: "1.0", readOnly: true, featureConfigName: "externalContactUpdateAction" }, { id: "mergedTo", name: "mergedTo", descriptionId: "AR_TP_EXTERNALCONTACT_PROP_MERGEDTO_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: true, featureConfigName: "externalContactUpdateAction" }, { id: "mergeSet", name: "mergeSet", descriptionId: "AR_TP_EXTERNALCONTACT_PROP_MERGESET_DSC", type: "str", isCollection: true, isComputed: false, version: "1.0", readOnly: true, featureConfigName: "externalContactUpdateAction" }, { id: "customFields", name: "customFields", descriptionId: "AR_TP_EXTERNALCONTACT_PROP_CUSTOMFIELDS_DSC", type: "jsn", isCollection: false, isComputed: false, version: "1.0", readOnly: true, featureConfigName: "externalContactUpdateAction" }] }, ExternalInstagramInfo: { name: "AR_TP_EXTERNALINSTAGRAMINFO", allowArray: true, dataType: "ComplexDataType", support: { classType: "ComplexVariable", expressionDataType: "cpx_external_instagram_info", isSupportedByAny: true, userCanCreate: false, supportedFlowTypes: { emailsend: {}, inboundchat: {}, inboundemail: {}, inboundshortmessage: {}, inqueueemail: {}, inqueueshortmessage: {}, surveyinvite: {}, workflow: {}, workitem: {}, bot: {}, digitalbot: {}, voice: {}, voicesurvey: {}, inboundcall: {}, inqueuecall: {}, outboundcall: {}, securecall: {}, voicemail: {}, commonmodule: {} }, version: "1.0", featureConfigName: "externalContactUpdateAction" }, nativeProperties: [{ id: "displayName", name: "displayName", descriptionId: "AR_TP_EXTERNALINSTAGRAMINFO_PROP_DISPLAYNAME_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: true }, { id: "handle", name: "handle", descriptionId: "AR_TP_EXTERNALINSTAGRAMINFO_PROP_HANDLE_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: true }, { id: "ids", name: "ids", descriptionId: "AR_TP_EXTERNALINSTAGRAMINFO_PROP_IDS_DSC", type: "cpx_external_instagram_scoped_id", isCollection: true, isComputed: false, version: "1.0", readOnly: true }] }, ExternalInstagramScopedId: { name: "AR_TP_EXTERNALINSTAGRAMSCOPEDID", allowArray: true, dataType: "ComplexDataType", support: { classType: "ComplexVariable", expressionDataType: "cpx_external_instagram_scoped_id", isSupportedByAny: true, userCanCreate: false, supportedFlowTypes: { emailsend: {}, inboundchat: {}, inboundemail: {}, inboundshortmessage: {}, inqueueemail: {}, inqueueshortmessage: {}, surveyinvite: {}, workflow: {}, workitem: {}, bot: {}, digitalbot: {}, voice: {}, voicesurvey: {}, inboundcall: {}, inqueuecall: {}, outboundcall: {}, securecall: {}, voicemail: {}, commonmodule: {} }, version: "1.0", featureConfigName: "externalContactUpdateAction" }, nativeProperties: [{ id: "scopedId", name: "scopedId", descriptionId: "AR_TP_EXTERNALINSTAGRAMSCOPEDID_PROP_SCOPEDID_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: true }] }, ExternalAppleInfo: { name: "AR_TP_EXTERNALAPPLEINFO", allowArray: true, dataType: "ComplexDataType", support: { classType: "ComplexVariable", expressionDataType: "cpx_external_apple_info", isSupportedByAny: true, userCanCreate: false, supportedFlowTypes: { emailsend: {}, inboundchat: {}, inboundemail: {}, inboundshortmessage: {}, inqueueemail: {}, inqueueshortmessage: {}, surveyinvite: {}, workflow: {}, workitem: {}, bot: {}, digitalbot: {}, voice: {}, voicesurvey: {}, inboundcall: {}, inqueuecall: {}, outboundcall: {}, securecall: {}, voicemail: {}, commonmodule: {} }, version: "1.0", featureConfigName: "externalContactUpdateAction" }, nativeProperties: [{ id: "id", name: "id", descriptionId: "AR_TP_EXTERNALAPPLEINFO_PROP_ID_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: true }] }, ExternalIdInfo: { name: "AR_TP_EXTERNALIDINFO", allowArray: true, dataType: "ComplexDataType", support: { classType: "ComplexVariable", expressionDataType: "cpx_external_id_info", isSupportedByAny: true, userCanCreate: false, supportedFlowTypes: { emailsend: {}, inboundchat: {}, inboundemail: {}, inboundshortmessage: {}, inqueueemail: {}, inqueueshortmessage: {}, surveyinvite: {}, workflow: {}, workitem: {}, bot: {}, digitalbot: {}, voice: {}, voicesurvey: {}, inboundcall: {}, inqueuecall: {}, outboundcall: {}, securecall: {}, voicemail: {}, commonmodule: {} }, version: "1.0", featureConfigName: "externalContactUpdateAction" }, nativeProperties: [{ id: "externalSource", name: "externalSource", descriptionId: "AR_TP_EXTERNALIDINFO_PROP_EXTERNALSOURCE_DSC", type: "cpx_external_source", isCollection: false, isComputed: false, version: "1.0", readOnly: true }, { id: "value", name: "value", descriptionId: "AR_TP_EXTERNALIDINFO_PROP_VALUE_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: true }] }, ExternalSource: { name: "AR_TP_EXTERNALSOURCE", allowArray: true, dataType: "ComplexDataType", support: { classType: "ComplexVariable", expressionDataType: "cpx_external_source", isSupportedByAny: true, userCanCreate: false, supportedFlowTypes: { emailsend: {}, inboundchat: {}, inboundemail: {}, inboundshortmessage: {}, inqueueemail: {}, inqueueshortmessage: {}, surveyinvite: {}, workflow: {}, workitem: {}, bot: {}, digitalbot: {}, voice: {}, voicesurvey: {}, inboundcall: {}, inqueuecall: {}, outboundcall: {}, securecall: {}, voicemail: {}, commonmodule: {} }, version: "1.0", featureConfigName: "externalContactUpdateAction" }, nativeProperties: [{ id: "id", name: "id", descriptionId: "AR_TP_EXTERNALSOURCE_PROP_ID_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: true }, { id: "name", name: "name", descriptionId: "AR_TP_EXTERNALSOURCE_PROP_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: true }, { id: "active", name: "active", descriptionId: "AR_TP_EXTERNALSOURCE_PROP_ACTIVE_DSC", type: "bln", isCollection: false, isComputed: false, version: "1.0", readOnly: true }, { id: "linkConfiguration", name: "linkConfiguration", descriptionId: "AR_TP_EXTERNALSOURCE_PROP_LINKCONFIGURATION_DSC", type: "cpx_external_link_configuration", isCollection: false, isComputed: false, version: "1.0", readOnly: true }] }, ExternalLinkConfiguration: { name: "AR_TP_EXTERNALLINKCONFIGURATION", allowArray: true, dataType: "ComplexDataType", support: { classType: "ComplexVariable", expressionDataType: "cpx_external_link_configuration", isSupportedByAny: true, userCanCreate: false, supportedFlowTypes: { emailsend: {}, inboundchat: {}, inboundemail: {}, inboundshortmessage: {}, inqueueemail: {}, inqueueshortmessage: {}, surveyinvite: {}, workflow: {}, workitem: {}, bot: {}, digitalbot: {}, voice: {}, voicesurvey: {}, inboundcall: {}, inqueuecall: {}, outboundcall: {}, securecall: {}, voicemail: {}, commonmodule: {} }, version: "1.0", featureConfigName: "externalContactUpdateAction" }, nativeProperties: [{ id: "uriTemplate", name: "uriTemplate", descriptionId: "AR_TP_EXTERNALLINKCONFIGURATION_PROP_URITEMPLATE_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: true }] }, Image: { name: "AR_TP_IMAGE", allowArray: true, dataType: "ImageDataType", support: { classType: "ImageVariable", expressionDataType: "img", isSupportedByAny: true, userCanCreate: true, supportedFlowTypes: { digitalbot: {} }, version: "1.0" }, nativeProperties: [{ id: "id", name: "id", descriptionId: "AR_TP_IMAGE_PROP_ID_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: true }, { id: "name", name: "name", descriptionId: "AR_TP_IMAGE_PROP_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: true }, { id: "url", name: "url", descriptionId: "AR_TP_IMAGE_PROP_URL_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: true }] }, EmptyJson: { name: "AR_TP_EMPTYJSON", allowArray: true, dataType: "JsonDataType", support: { classType: "JsonVariable", expressionDataType: "jsn__architect::empty_json", isSupportedByAny: true, userCanCreate: false, supportedFlowTypes: { workitem: {}, commonmodule: {} }, version: "1.0" }, nativeProperties: [] }, json: { name: "AR_TP_JSON", allowArray: true, dataType: "JsonDataType", support: { classType: "JsonVariable", expressionDataType: "jsn", isSupportedByAny: true, userCanCreate: true, supportedFlowTypes: { inboundcall: {}, inqueuecall: {}, outboundcall: {}, securecall: {}, voicemail: {}, bot: { flowInputSingleton: true, flowInputCollection: true, flowOutputSingleton: true, flowOutputCollection: true, featureConfigName: "botFlowsDigitalBotFlowsJSONFeature" }, commonmodule: {}, digitalbot: { flowInputSingleton: true, flowInputCollection: true, flowOutputSingleton: true, flowOutputCollection: true, featureConfigName: "botFlowsDigitalBotFlowsJSONFeature" }, inboundemail: {}, emailsend: {}, inboundshortmessage: {}, inqueueemail: {}, inqueueshortmessage: {}, surveyinvite: {}, voice: { flowInputSingleton: true, flowInputCollection: true, flowOutputSingleton: true, flowOutputCollection: true }, voicesurvey: {}, workflow: { flowInputSingleton: true, flowInputCollection: true, flowOutputSingleton: true, flowOutputCollection: true }, workitem: {} }, version: "1.0" }, nativeProperties: [] }, FormInput: { name: "AR_TP_FORMINPUT", allowArray: false, dataType: "FormInputDataType", propertiesAllowAssignment: true, support: { classType: "FormInputVariable", expressionDataType: "fip", isSupportedByAny: true, userCanCreate: true, supportedFlowTypes: { digitalbot: {} }, version: "1.0", featureConfigName: "botFlowsAppleFormsPhase2" }, nativeProperties: [{ id: "title", name: "title", descriptionId: "AR_TP_FORMINPUT_PROP_TITLE_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: false, maxLength: 512, displayValue: "AR_TP_FORMINPUT_PROP_TITLE_DISP_VAL" }, { id: "subtitle", name: "subtitle", descriptionId: "AR_TP_FORMINPUT_PROP_SUBTITLE_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: false, maxLength: 512, displayValue: "AR_TP_FORMINPUT_PROP_SUBTITLE_DISP_VAL" }, { id: "placeholderText", name: "placeholderText", descriptionId: "AR_TP_FORMINPUT_PROP_PLACEHOLDERTEXT_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: false, maxLength: 512, displayValue: "AR_TP_FORMINPUT_PROP_PLACEHOLDERTEXT_DISP_VAL" }, { id: "isMultipleLine", name: "isMultipleLine", descriptionId: "AR_TP_FORMINPUT_PROP_ISMULTIPLELINE_DSC", type: "bln", isCollection: false, isComputed: false, version: "1.0", readOnly: false, displayValue: "AR_TP_FORMINPUT_PROP_ISMULTIPLELINE_DISP_VAL" }, { id: "isRequired", name: "isRequired", descriptionId: "AR_TP_FORMINPUT_PROP_ISREQUIRED_DSC", type: "bln", isCollection: false, isComputed: false, version: "1.0", readOnly: false, displayValue: "AR_TP_FORMINPUT_PROP_ISREQUIRED_DISP_VAL" }] }, JourneyApp: { name: "AR_TP_JOURNEYAPP", allowArray: false, dataType: "ComplexDataType", support: { classType: "ComplexVariable", expressionDataType: "cpx_journey_app", isSupportedByAny: true, userCanCreate: false, supportedFlowTypes: { inboundcall: { featureConfigName: "callFlowJourneySupportPhase1" }, inqueuecall: { featureConfigName: "callFlowJourneySupportPhase1" }, outboundcall: { featureConfigName: "callFlowJourneySupportPhase1" }, securecall: { featureConfigName: "callFlowJourneySupportPhase1" }, voicemail: { featureConfigName: "callFlowJourneySupportPhase1" }, bot: { featureConfigName: "botFlowsPhase2" }, commonmodule: {}, digitalbot: { featureConfigName: "botFlowsDigitalBotFlowsPhase2" }, inboundchat: {}, inboundshortmessage: {}, inqueueshortmessage: {}, voice: { featureConfigName: "voiceFlowsPhase2" }, workflow: {} }, version: "1.0", featureConfigName: "journeyMobileAppData" }, nativeProperties: [{ id: "name", name: "name", descriptionId: "AR_TP_JOURNEYAPP_PROP_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: true }, { id: "namespace", name: "namespace", descriptionId: "AR_TP_JOURNEYAPP_PROP_NAMESPACE_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: true }, { id: "version", name: "version", descriptionId: "AR_TP_JOURNEYAPP_PROP_VERSION_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: true }, { id: "buildNumber", name: "buildNumber", descriptionId: "AR_TP_JOURNEYAPP_PROP_BUILDNUMBER_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: true }] }, JourneyAction: { name: "AR_TP_JOURNEYACTION", allowArray: false, dataType: "ComplexDataType", support: { classType: "ComplexVariable", expressionDataType: "cpx_journey_action", isSupportedByAny: true, userCanCreate: false, supportedFlowTypes: { inboundcall: { featureConfigName: "callFlowJourneySupportPhase1" }, inqueuecall: { featureConfigName: "callFlowJourneySupportPhase1" }, outboundcall: { featureConfigName: "callFlowJourneySupportPhase1" }, securecall: { featureConfigName: "callFlowJourneySupportPhase1" }, voicemail: { featureConfigName: "callFlowJourneySupportPhase1" }, bot: { featureConfigName: "botFlowsPhase2" }, commonmodule: {}, digitalbot: { featureConfigName: "botFlowsDigitalBotFlowsPhase2" }, inboundchat: {}, inboundshortmessage: {}, inqueueshortmessage: {}, voice: { featureConfigName: "voiceFlowsPhase2" }, workflow: {} }, version: "1.0", featureConfigName: "orgAvailabilityJourneySessions" }, nativeProperties: [{ id: "id", name: "id", descriptionId: "AR_TP_JOURNEYACTION_PROP_ID_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: true }, { id: "actionMap", name: "actionMap", descriptionId: "AR_TP_JOURNEYACTION_PROP_ACTIONMAP_DSC", type: "cpx_journey_action_map", isCollection: false, isComputed: false, version: "1.0", readOnly: true }] }, JourneyActionMap: { name: "AR_TP_JOURNEYACTIONMAP", allowArray: false, dataType: "ComplexDataType", support: { classType: "ComplexVariable", expressionDataType: "cpx_journey_action_map", isSupportedByAny: true, userCanCreate: false, supportedFlowTypes: { inboundcall: { featureConfigName: "callFlowJourneySupportPhase1" }, inqueuecall: { featureConfigName: "callFlowJourneySupportPhase1" }, outboundcall: { featureConfigName: "callFlowJourneySupportPhase1" }, securecall: { featureConfigName: "callFlowJourneySupportPhase1" }, voicemail: { featureConfigName: "callFlowJourneySupportPhase1" }, bot: { featureConfigName: "botFlowsPhase2" }, commonmodule: {}, digitalbot: { featureConfigName: "botFlowsDigitalBotFlowsPhase2" }, inboundchat: {}, inboundshortmessage: {}, inqueueshortmessage: {}, voice: { featureConfigName: "voiceFlowsPhase2" }, workflow: {} }, version: "1.0", featureConfigName: "orgAvailabilityJourneySessions" }, nativeProperties: [{ id: "id", name: "id", descriptionId: "AR_TP_JOURNEYACTIONMAP_PROP_ID_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: true }, { id: "version", name: "version", descriptionId: "AR_TP_JOURNEYACTIONMAP_PROP_VERSION_DSC", type: "int", isCollection: false, isComputed: false, version: "1.0", readOnly: true }] }, JourneyBrowser: { name: "AR_TP_JOURNEYBROWSER", allowArray: false, dataType: "ComplexDataType", support: { classType: "ComplexVariable", expressionDataType: "cpx_journey_browser", isSupportedByAny: true, userCanCreate: false, supportedFlowTypes: { inboundcall: { featureConfigName: "callFlowJourneySupportPhase1" }, inqueuecall: { featureConfigName: "callFlowJourneySupportPhase1" }, outboundcall: { featureConfigName: "callFlowJourneySupportPhase1" }, securecall: { featureConfigName: "callFlowJourneySupportPhase1" }, voicemail: { featureConfigName: "callFlowJourneySupportPhase1" }, bot: { featureConfigName: "botFlowsPhase2" }, commonmodule: {}, digitalbot: { featureConfigName: "botFlowsDigitalBotFlowsPhase2" }, inboundchat: {}, inboundshortmessage: {}, inqueueshortmessage: {}, voice: { featureConfigName: "voiceFlowsPhase2" }, workflow: {} }, version: "1.0", featureConfigName: "orgAvailabilityJourneySessions" }, nativeProperties: [{ id: "family", name: "family", descriptionId: "AR_TP_JOURNEYBROWSER_PROP_FAMILY_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: true }, { id: "version", name: "version", descriptionId: "AR_TP_JOURNEYBROWSER_PROP_VERSION_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: true }, { id: "lang", name: "lang", descriptionId: "AR_TP_JOURNEYBROWSER_PROP_LANG_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: true }, { id: "fingerprint", name: "fingerprint", descriptionId: "AR_TP_JOURNEYBROWSER_PROP_FINGERPRINT_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: true }, { id: "isMobile", name: "isMobile", descriptionId: "AR_TP_JOURNEYBROWSER_PROP_ISMOBILE_DSC", type: "bln", isCollection: false, isComputed: false, version: "1.0", readOnly: true }, { id: "viewHeight", name: "viewHeight", descriptionId: "AR_TP_JOURNEYBROWSER_PROP_VIEWHEIGHT_DSC", type: "int", isCollection: false, isComputed: false, version: "1.0", readOnly: true }, { id: "viewWidth", name: "viewWidth", descriptionId: "AR_TP_JOURNEYBROWSER_PROP_VIEWWIDTH_DSC", type: "int", isCollection: false, isComputed: false, version: "1.0", readOnly: true }, { id: "featuresFlash", name: "featuresFlash", descriptionId: "AR_TP_JOURNEYBROWSER_PROP_FEATURESFLASH_DSC", type: "bln", isCollection: false, isComputed: false, version: "1.0", readOnly: true }, { id: "featuresJava", name: "featuresJava", descriptionId: "AR_TP_JOURNEYBROWSER_PROP_FEATURESJAVA_DSC", type: "bln", isCollection: false, isComputed: false, version: "1.0", readOnly: true }, { id: "featuresPdf", name: "featuresPdf", descriptionId: "AR_TP_JOURNEYBROWSER_PROP_FEATURESPDF_DSC", type: "bln", isCollection: false, isComputed: false, version: "1.0", readOnly: true }, { id: "featuresWebrtc", name: "featuresWebrtc", descriptionId: "AR_TP_JOURNEYBROWSER_PROP_FEATURESWEBRTC_DSC", type: "bln", isCollection: false, isComputed: false, version: "1.0", readOnly: true }] }, JourneyCampaign: { name: "AR_TP_JOURNEYCAMPAIGN", allowArray: false, dataType: "ComplexDataType", support: { classType: "ComplexVariable", expressionDataType: "cpx_journey_campaign", isSupportedByAny: true, userCanCreate: false, supportedFlowTypes: { inboundcall: { featureConfigName: "callFlowJourneySupportPhase1" }, inqueuecall: { featureConfigName: "callFlowJourneySupportPhase1" }, outboundcall: { featureConfigName: "callFlowJourneySupportPhase1" }, securecall: { featureConfigName: "callFlowJourneySupportPhase1" }, voicemail: { featureConfigName: "callFlowJourneySupportPhase1" }, bot: { featureConfigName: "botFlowsPhase2" }, commonmodule: {}, digitalbot: { featureConfigName: "botFlowsDigitalBotFlowsPhase2" }, inboundchat: {}, inboundshortmessage: {}, inqueueshortmessage: {}, voice: { featureConfigName: "voiceFlowsPhase2" }, workflow: {} }, version: "1.0", featureConfigName: "orgAvailabilityJourneySessions" }, nativeProperties: [{ id: "content", name: "content", descriptionId: "AR_TP_JOURNEYCAMPAIGN_PROP_CONTENT_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: true }, { id: "medium", name: "medium", descriptionId: "AR_TP_JOURNEYCAMPAIGN_PROP_MEDIUM_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: true }, { id: "name", name: "name", descriptionId: "AR_TP_JOURNEYCAMPAIGN_PROP_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: true }, { id: "source", name: "source", descriptionId: "AR_TP_JOURNEYCAMPAIGN_PROP_SOURCE_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: true }, { id: "term", name: "term", descriptionId: "AR_TP_JOURNEYCAMPAIGN_PROP_TERM_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: true }, { id: "clickId", name: "clickId", descriptionId: "AR_TP_JOURNEYCAMPAIGN_PROP_CLICKID_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: true }, { id: "network", name: "network", descriptionId: "AR_TP_JOURNEYCAMPAIGN_PROP_NETWORK_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: true }] }, JourneyContext: { name: "AR_TP_JOURNEYCONTEXT", allowArray: false, dataType: "ComplexDataType", support: { classType: "ComplexVariable", expressionDataType: "cpx_journey_context", isSupportedByAny: true, userCanCreate: false, supportedFlowTypes: { inboundcall: { featureConfigName: "callFlowJourneySupportPhase1" }, inqueuecall: { featureConfigName: "callFlowJourneySupportPhase1" }, outboundcall: { featureConfigName: "callFlowJourneySupportPhase1" }, securecall: { featureConfigName: "callFlowJourneySupportPhase1" }, voicemail: { featureConfigName: "callFlowJourneySupportPhase1" }, bot: { featureConfigName: "botFlowsPhase2" }, commonmodule: {}, digitalbot: { featureConfigName: "botFlowsDigitalBotFlowsPhase2" }, inboundchat: {}, inboundshortmessage: {}, inqueueshortmessage: {}, voice: { featureConfigName: "voiceFlowsPhase2" }, workflow: {} }, version: "1.0", featureConfigName: "orgAvailabilityJourneySessions" }, nativeProperties: [{ id: "customer", name: "customer", descriptionId: "AR_TP_JOURNEYCONTEXT_PROP_CUSTOMER_DSC", type: "cpx_journey_customer", isCollection: false, isComputed: false, version: "1.0", readOnly: true }, { id: "customerSession", name: "customerSession", descriptionId: "AR_TP_JOURNEYCONTEXT_PROP_CUSTOMERSESSION_DSC", type: "cpx_journey_customer_session", isCollection: false, isComputed: false, version: "1.0", readOnly: true }, { id: "triggeringAction", name: "triggeringAction", descriptionId: "AR_TP_JOURNEYCONTEXT_PROP_TRIGGERINGACTION_DSC", type: "cpx_journey_action", isCollection: false, isComputed: false, version: "1.0", readOnly: true }] }, JourneyCustomEventAttribute: { name: "AR_TP_JOURNEYCUSTOMEVENTATTRIBUTE", allowArray: true, dataType: "ComplexDataType", support: { classType: "ComplexVariable", expressionDataType: "cpx_journey_custom_event_attribute", isSupportedByAny: true, userCanCreate: false, supportedFlowTypes: { inboundcall: { featureConfigName: "callFlowJourneySupportPhase1" }, inqueuecall: { featureConfigName: "callFlowJourneySupportPhase1" }, outboundcall: { featureConfigName: "callFlowJourneySupportPhase1" }, securecall: { featureConfigName: "callFlowJourneySupportPhase1" }, voicemail: { featureConfigName: "callFlowJourneySupportPhase1" }, bot: { featureConfigName: "botFlowsPhase2" }, commonmodule: {}, digitalbot: { featureConfigName: "botFlowsDigitalBotFlowsPhase2" }, inboundchat: {}, inboundshortmessage: {}, inqueueshortmessage: {}, voice: { featureConfigName: "voiceFlowsPhase2" }, workflow: {} }, version: "1.0", featureConfigName: "orgAvailabilityJourneySessions" }, nativeProperties: [{ id: "name", name: "name", descriptionId: "AR_TP_JOURNEYCUSTOMEVENTATTRIBUTE_PROP_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: true }, { id: "dataType", name: "dataType", descriptionId: "AR_TP_JOURNEYCUSTOMEVENTATTRIBUTE_PROP_DATATYPE_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: true }, { id: "value", name: "value", descriptionId: "AR_TP_JOURNEYCUSTOMEVENTATTRIBUTE_PROP_VALUE_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: true }] }, JourneyCustomEventAttributeList: { name: "AR_TP_JOURNEYCUSTOMEVENTATTRIBUTELIST", allowArray: true, dataType: "ComplexDataType", support: { classType: "ComplexVariable", expressionDataType: "cpx_journey_custom_event_attribute_list", isSupportedByAny: true, userCanCreate: false, supportedFlowTypes: { inboundcall: { featureConfigName: "callFlowJourneySupportPhase1" }, inqueuecall: { featureConfigName: "callFlowJourneySupportPhase1" }, outboundcall: { featureConfigName: "callFlowJourneySupportPhase1" }, securecall: { featureConfigName: "callFlowJourneySupportPhase1" }, voicemail: { featureConfigName: "callFlowJourneySupportPhase1" }, bot: { featureConfigName: "botFlowsPhase2" }, commonmodule: {}, digitalbot: { featureConfigName: "botFlowsDigitalBotFlowsPhase2" }, inboundchat: {}, inboundshortmessage: {}, inqueueshortmessage: {}, voice: { featureConfigName: "voiceFlowsPhase2" }, workflow: {} }, version: "1.0", featureConfigName: "orgAvailabilityJourneySessions" }, nativeProperties: [{ id: "name", name: "name", descriptionId: "AR_TP_JOURNEYCUSTOMEVENTATTRIBUTELIST_PROP_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: true }, { id: "dataType", name: "dataType", descriptionId: "AR_TP_JOURNEYCUSTOMEVENTATTRIBUTELIST_PROP_DATATYPE_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: true }, { id: "values", name: "values", descriptionId: "AR_TP_JOURNEYCUSTOMEVENTATTRIBUTELIST_PROP_VALUES_DSC", type: "str", isCollection: true, isComputed: false, version: "1.0", readOnly: true }] }, JourneyCustomer: { name: "AR_TP_JOURNEYCUSTOMER", allowArray: false, dataType: "ComplexDataType", support: { classType: "ComplexVariable", expressionDataType: "cpx_journey_customer", isSupportedByAny: true, userCanCreate: false, supportedFlowTypes: { inboundcall: { featureConfigName: "callFlowJourneySupportPhase1" }, inqueuecall: { featureConfigName: "callFlowJourneySupportPhase1" }, outboundcall: { featureConfigName: "callFlowJourneySupportPhase1" }, securecall: { featureConfigName: "callFlowJourneySupportPhase1" }, voicemail: { featureConfigName: "callFlowJourneySupportPhase1" }, bot: { featureConfigName: "botFlowsPhase2" }, commonmodule: {}, digitalbot: { featureConfigName: "botFlowsDigitalBotFlowsPhase2" }, inboundchat: {}, inboundshortmessage: {}, inqueueshortmessage: {}, voice: { featureConfigName: "voiceFlowsPhase2" }, workflow: {} }, version: "1.0", featureConfigName: "orgAvailabilityJourneySessions" }, nativeProperties: [{ id: "id", name: "id", descriptionId: "AR_TP_JOURNEYCUSTOMER_PROP_ID_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: true }, { id: "idType", name: "idType", descriptionId: "AR_TP_JOURNEYCUSTOMER_PROP_IDTYPE_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: true }] }, JourneyCustomerSession: { name: "AR_TP_JOURNEYCUSTOMERSESSION", allowArray: false, dataType: "ComplexDataType", support: { classType: "ComplexVariable", expressionDataType: "cpx_journey_customer_session", isSupportedByAny: true, userCanCreate: false, supportedFlowTypes: { inboundcall: { featureConfigName: "callFlowJourneySupportPhase1" }, inqueuecall: { featureConfigName: "callFlowJourneySupportPhase1" }, outboundcall: { featureConfigName: "callFlowJourneySupportPhase1" }, securecall: { featureConfigName: "callFlowJourneySupportPhase1" }, voicemail: { featureConfigName: "callFlowJourneySupportPhase1" }, bot: { featureConfigName: "botFlowsPhase2" }, commonmodule: {}, digitalbot: { featureConfigName: "botFlowsDigitalBotFlowsPhase2" }, inboundchat: {}, inboundshortmessage: {}, inqueueshortmessage: {}, voice: { featureConfigName: "voiceFlowsPhase2" }, workflow: {} }, version: "1.0", featureConfigName: "orgAvailabilityJourneySessions" }, nativeProperties: [{ id: "id", name: "id", descriptionId: "AR_TP_JOURNEYCUSTOMERSESSION_PROP_ID_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: true }, { id: "type", name: "type", descriptionId: "AR_TP_JOURNEYCUSTOMERSESSION_PROP_TYPE_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: true }] }, JourneyDevice: { name: "AR_TP_JOURNEYDEVICE", allowArray: false, dataType: "ComplexDataType", support: { classType: "ComplexVariable", expressionDataType: "cpx_journey_device", isSupportedByAny: true, userCanCreate: false, supportedFlowTypes: { inboundcall: { featureConfigName: "callFlowJourneySupportPhase1" }, inqueuecall: { featureConfigName: "callFlowJourneySupportPhase1" }, outboundcall: { featureConfigName: "callFlowJourneySupportPhase1" }, securecall: { featureConfigName: "callFlowJourneySupportPhase1" }, voicemail: { featureConfigName: "callFlowJourneySupportPhase1" }, bot: { featureConfigName: "botFlowsPhase2" }, commonmodule: {}, digitalbot: { featureConfigName: "botFlowsDigitalBotFlowsPhase2" }, inboundchat: {}, inboundshortmessage: {}, inqueueshortmessage: {}, voice: { featureConfigName: "voiceFlowsPhase2" }, workflow: {} }, version: "1.0", featureConfigName: "orgAvailabilityJourneySessions" }, nativeProperties: [{ id: "category", name: "category", descriptionId: "AR_TP_JOURNEYDEVICE_PROP_CATEGORY_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: true }, { id: "type", name: "type", descriptionId: "AR_TP_JOURNEYDEVICE_PROP_TYPE_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: true }, { id: "isMobile", name: "isMobile", descriptionId: "AR_TP_JOURNEYDEVICE_PROP_ISMOBILE_DSC", type: "bln", isCollection: false, isComputed: false, version: "1.0", readOnly: true }, { id: "screenHeight", name: "screenHeight", descriptionId: "AR_TP_JOURNEYDEVICE_PROP_SCREENHEIGHT_DSC", type: "int", isCollection: false, isComputed: false, version: "1.0", readOnly: true }, { id: "screenWidth", name: "screenWidth", descriptionId: "AR_TP_JOURNEYDEVICE_PROP_SCREENWIDTH_DSC", type: "int", isCollection: false, isComputed: false, version: "1.0", readOnly: true }, { id: "fingerprint", name: "fingerprint", descriptionId: "AR_TP_JOURNEYDEVICE_PROP_FINGERPRINT_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: true }, { id: "manufacturer", name: "manufacturer", descriptionId: "AR_TP_JOURNEYDEVICE_PROP_MANUFACTURER_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: true, featureConfigName: "journeyMobileAppData" }, { id: "osFamily", name: "osFamily", descriptionId: "AR_TP_JOURNEYDEVICE_PROP_OSFAMILY_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: true }, { id: "osVersion", name: "osVersion", descriptionId: "AR_TP_JOURNEYDEVICE_PROP_OSVERSION_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: true }, { id: "screenDensity", name: "screenDensity", descriptionId: "AR_TP_JOURNEYDEVICE_PROP_SCREENDENSITY_DSC", type: "int", isCollection: false, isComputed: false, version: "1.0", readOnly: true, featureConfigName: "journeyMobileAppData" }] }, JourneyGeolocation: { name: "AR_TP_JOURNEYGEOLOCATION", allowArray: false, dataType: "ComplexDataType", support: { classType: "ComplexVariable", expressionDataType: "cpx_journey_geolocation", isSupportedByAny: true, userCanCreate: false, supportedFlowTypes: { inboundcall: { featureConfigName: "callFlowJourneySupportPhase1" }, inqueuecall: { featureConfigName: "callFlowJourneySupportPhase1" }, outboundcall: { featureConfigName: "callFlowJourneySupportPhase1" }, securecall: { featureConfigName: "callFlowJourneySupportPhase1" }, voicemail: { featureConfigName: "callFlowJourneySupportPhase1" }, bot: { featureConfigName: "botFlowsPhase2" }, commonmodule: {}, digitalbot: { featureConfigName: "botFlowsDigitalBotFlowsPhase2" }, inboundchat: {}, inboundshortmessage: {}, inqueueshortmessage: {}, voice: { featureConfigName: "voiceFlowsPhase2" }, workflow: {} }, version: "1.0", featureConfigName: "orgAvailabilityJourneySessions" }, nativeProperties: [{ id: "country", name: "country", descriptionId: "AR_TP_JOURNEYGEOLOCATION_PROP_COUNTRY_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: true }, { id: "countryName", name: "countryName", descriptionId: "AR_TP_JOURNEYGEOLOCATION_PROP_COUNTRYNAME_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: true }, { id: "latitude", name: "latitude", descriptionId: "AR_TP_JOURNEYGEOLOCATION_PROP_LATITUDE_DSC", type: "dec", isCollection: false, isComputed: false, version: "1.0", readOnly: true }, { id: "longitude", name: "longitude", descriptionId: "AR_TP_JOURNEYGEOLOCATION_PROP_LONGITUDE_DSC", type: "dec", isCollection: false, isComputed: false, version: "1.0", readOnly: true }, { id: "locality", name: "locality", descriptionId: "AR_TP_JOURNEYGEOLOCATION_PROP_LOCALITY_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: true }, { id: "postalCode", name: "postalCode", descriptionId: "AR_TP_JOURNEYGEOLOCATION_PROP_POSTALCODE_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: true }, { id: "region", name: "region", descriptionId: "AR_TP_JOURNEYGEOLOCATION_PROP_REGION_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: true }, { id: "regionName", name: "regionName", descriptionId: "AR_TP_JOURNEYGEOLOCATION_PROP_REGIONNAME_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: true }, { id: "source", name: "source", descriptionId: "AR_TP_JOURNEYGEOLOCATION_PROP_SOURCE_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: true }, { id: "timezone", name: "timezone", descriptionId: "AR_TP_JOURNEYGEOLOCATION_PROP_TIMEZONE_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: true }] }, JourneyNetworkConnectivity: { name: "AR_TP_JOURNEYNETWORKCONNECTIVITY", allowArray: false, dataType: "ComplexDataType", support: { classType: "ComplexVariable", expressionDataType: "cpx_journey_network_connectivity", isSupportedByAny: true, userCanCreate: false, supportedFlowTypes: { inboundcall: { featureConfigName: "callFlowJourneySupportPhase1" }, inqueuecall: { featureConfigName: "callFlowJourneySupportPhase1" }, outboundcall: { featureConfigName: "callFlowJourneySupportPhase1" }, securecall: { featureConfigName: "callFlowJourneySupportPhase1" }, voicemail: { featureConfigName: "callFlowJourneySupportPhase1" }, bot: { featureConfigName: "botFlowsPhase2" }, commonmodule: {}, digitalbot: { featureConfigName: "botFlowsDigitalBotFlowsPhase2" }, inboundchat: {}, inboundshortmessage: {}, inqueueshortmessage: {}, voice: { featureConfigName: "voiceFlowsPhase2" }, workflow: {} }, version: "1.0", featureConfigName: "journeyMobileAppData" }, nativeProperties: [{ id: "carrier", name: "carrier", descriptionId: "AR_TP_JOURNEYNETWORKCONNECTIVITY_PROP_CARRIER_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: true }, { id: "bluetoothEnabled", name: "bluetoothEnabled", descriptionId: "AR_TP_JOURNEYNETWORKCONNECTIVITY_PROP_BLUETOOTHENABLED_DSC", type: "bln", isCollection: false, isComputed: false, version: "1.0", readOnly: true }, { id: "cellularEnabled", name: "cellularEnabled", descriptionId: "AR_TP_JOURNEYNETWORKCONNECTIVITY_PROP_CELLULARENABLED_DSC", type: "bln", isCollection: false, isComputed: false, version: "1.0", readOnly: true }, { id: "wifiEnabled", name: "wifiEnabled", descriptionId: "AR_TP_JOURNEYNETWORKCONNECTIVITY_PROP_WIFIENABLED_DSC", type: "bln", isCollection: false, isComputed: false, version: "1.0", readOnly: true }] }, JourneySessionOutcomeAchievement: { name: "AR_TP_JOURNEYSESSIONOUTCOMEACHIEVEMENT", allowArray: true, dataType: "ComplexDataType", support: { classType: "ComplexVariable", expressionDataType: "cpx_journey_session_outcome_achievement", isSupportedByAny: true, userCanCreate: false, supportedFlowTypes: { inboundcall: { featureConfigName: "callFlowJourneySupportPhase1" }, inqueuecall: { featureConfigName: "callFlowJourneySupportPhase1" }, outboundcall: { featureConfigName: "callFlowJourneySupportPhase1" }, securecall: { featureConfigName: "callFlowJourneySupportPhase1" }, voicemail: { featureConfigName: "callFlowJourneySupportPhase1" }, bot: { featureConfigName: "botFlowsPhase2" }, commonmodule: {}, digitalbot: { featureConfigName: "botFlowsDigitalBotFlowsPhase2" }, inboundchat: {}, inboundshortmessage: {}, inqueueshortmessage: {}, voice: { featureConfigName: "voiceFlowsPhase2" }, workflow: {} }, version: "1.0", featureConfigName: "orgAvailabilityJourneySessions" }, nativeProperties: [{ id: "id", name: "id", descriptionId: "AR_TP_JOURNEYSESSIONOUTCOMEACHIEVEMENT_PROP_ID_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: true }, { id: "achievedDate", name: "achievedDate", descriptionId: "AR_TP_JOURNEYSESSIONOUTCOMEACHIEVEMENT_PROP_ACHIEVEDDATE_DSC", type: "dtm", isCollection: false, isComputed: false, version: "1.0", readOnly: true }] }, JourneySdkLibrary: { name: "AR_TP_JOURNEYSDKLIBRARY", allowArray: false, dataType: "ComplexDataType", support: { classType: "ComplexVariable", expressionDataType: "cpx_journey_sdk_library", isSupportedByAny: true, userCanCreate: false, supportedFlowTypes: { inboundcall: { featureConfigName: "callFlowJourneySupportPhase1" }, inqueuecall: { featureConfigName: "callFlowJourneySupportPhase1" }, outboundcall: { featureConfigName: "callFlowJourneySupportPhase1" }, securecall: { featureConfigName: "callFlowJourneySupportPhase1" }, voicemail: { featureConfigName: "callFlowJourneySupportPhase1" }, bot: { featureConfigName: "botFlowsPhase2" }, commonmodule: {}, digitalbot: { featureConfigName: "botFlowsDigitalBotFlowsPhase2" }, inboundchat: {}, inboundshortmessage: {}, inqueueshortmessage: {}, voice: { featureConfigName: "voiceFlowsPhase2" }, workflow: {} }, version: "1.0", featureConfigName: "journeyMobileAppData" }, nativeProperties: [{ id: "name", name: "name", descriptionId: "AR_TP_JOURNEYSDKLIBRARY_PROP_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: true }, { id: "version", name: "version", descriptionId: "AR_TP_JOURNEYSDKLIBRARY_PROP_VERSION_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: true }] }, JourneyOutcome: { name: "AR_TP_JOURNEYOUTCOME", allowArray: true, dataType: "ComplexDataType", support: { classType: "ComplexVariable", expressionDataType: "cpx_journey_outcome", isSupportedByAny: true, userCanCreate: true, supportedFlowTypes: { inboundcall: { featureConfigName: "callFlowJourneySupportPhase1" }, inqueuecall: { featureConfigName: "callFlowJourneySupportPhase1" }, outboundcall: { featureConfigName: "callFlowJourneySupportPhase1" }, securecall: { featureConfigName: "callFlowJourneySupportPhase1" }, voicemail: { featureConfigName: "callFlowJourneySupportPhase1" }, bot: { featureConfigName: "botFlowsPhase2" }, commonmodule: {}, digitalbot: { featureConfigName: "botFlowsDigitalBotFlowsPhase2" }, inboundchat: {}, inboundshortmessage: {}, inqueueshortmessage: {}, voice: { featureConfigName: "voiceFlowsPhase2" }, workflow: {} }, version: "1.0", featureConfigName: "orgAvailabilityJourneyOutcomes" }, nativeProperties: [{ id: "id", name: "id", descriptionId: "AR_TP_JOURNEYOUTCOME_PROP_ID_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: true }, { id: "description", name: "description", descriptionId: "AR_TP_JOURNEYOUTCOME_PROP_DESCRIPTION_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: true }, { id: "displayName", name: "displayName", descriptionId: "AR_TP_JOURNEYOUTCOME_PROP_DISPLAYNAME_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: true }, { id: "version", name: "version", descriptionId: "AR_TP_JOURNEYOUTCOME_PROP_VERSION_DSC", type: "int", isCollection: false, isComputed: false, version: "1.0", readOnly: true }, { id: "createdDateUtc", name: "createdDateUtc", descriptionId: "AR_TP_JOURNEYOUTCOME_PROP_CREATEDDATEUTC_DSC", type: "dtm", isCollection: false, isComputed: false, version: "1.0", readOnly: true }, { id: "modifiedDateUtc", name: "modifiedDateUtc", descriptionId: "AR_TP_JOURNEYOUTCOME_PROP_MODIFIEDDATEUTC_DSC", type: "dtm", isCollection: false, isComputed: false, version: "1.0", readOnly: true }, { id: "isActive", name: "isActive", descriptionId: "AR_TP_JOURNEYOUTCOME_PROP_ISACTIVE_DSC", type: "bln", isCollection: false, isComputed: false, version: "1.0", readOnly: true }] }, JourneyOutcomeScore: { name: "AR_TP_JOURNEYOUTCOMESCORE", allowArray: true, dataType: "ComplexDataType", support: { classType: "ComplexVariable", expressionDataType: "cpx_journey_outcome_score", isSupportedByAny: true, userCanCreate: true, supportedFlowTypes: { inboundcall: { featureConfigName: "callFlowJourneySupportPhase1" }, inqueuecall: { featureConfigName: "callFlowJourneySupportPhase1" }, outboundcall: { featureConfigName: "callFlowJourneySupportPhase1" }, securecall: { featureConfigName: "callFlowJourneySupportPhase1" }, voicemail: { featureConfigName: "callFlowJourneySupportPhase1" }, bot: { featureConfigName: "botFlowsPhase2" }, commonmodule: {}, digitalbot: { featureConfigName: "botFlowsDigitalBotFlowsPhase2" }, inboundchat: { featureConfigName: "journeyOutcomeScoresBySessionId" }, inboundshortmessage: { featureConfigName: "journeyOutcomeScoresBySessionId" }, inqueueshortmessage: { featureConfigName: "journeyOutcomeScoresBySessionId" }, voice: { featureConfigName: "voiceFlowsPhase2" }, workflow: { featureConfigName: "journeyOutcomeScoresBySessionId" } }, version: "1.0", featureConfigName: "orgAvailabilityJourneyOutcomeScores" }, nativeProperties: [{ id: "id", name: "id", descriptionId: "AR_TP_JOURNEYOUTCOMESCORE_PROP_ID_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: true }, { id: "probability", name: "probability", descriptionId: "AR_TP_JOURNEYOUTCOMESCORE_PROP_PROBABILITY_DSC", type: "dec", isCollection: false, isComputed: false, version: "1.0", readOnly: true }, { id: "sessionMaxProbability", name: "sessionMaxProbability", descriptionId: "AR_TP_JOURNEYOUTCOMESCORE_PROP_SESSIONMAXPROBABILITY_DSC", type: "dec", isCollection: false, isComputed: false, version: "1.0", readOnly: true }] }, JourneyPage: { name: "AR_TP_JOURNEYPAGE", allowArray: false, dataType: "ComplexDataType", support: { classType: "ComplexVariable", expressionDataType: "cpx_journey_page", isSupportedByAny: true, userCanCreate: false, supportedFlowTypes: { inboundcall: { featureConfigName: "callFlowJourneySupportPhase1" }, inqueuecall: { featureConfigName: "callFlowJourneySupportPhase1" }, outboundcall: { featureConfigName: "callFlowJourneySupportPhase1" }, securecall: { featureConfigName: "callFlowJourneySupportPhase1" }, voicemail: { featureConfigName: "callFlowJourneySupportPhase1" }, bot: { featureConfigName: "botFlowsPhase2" }, commonmodule: {}, digitalbot: { featureConfigName: "botFlowsDigitalBotFlowsPhase2" }, inboundchat: {}, inboundshortmessage: {}, inqueueshortmessage: {}, voice: { featureConfigName: "voiceFlowsPhase2" }, workflow: {} }, version: "1.0", featureConfigName: "orgAvailabilityJourneySessions" }, nativeProperties: [{ id: "url", name: "url", descriptionId: "AR_TP_JOURNEYPAGE_PROP_URL_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: true }, { id: "title", name: "title", descriptionId: "AR_TP_JOURNEYPAGE_PROP_TITLE_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: true }, { id: "domain", name: "domain", descriptionId: "AR_TP_JOURNEYPAGE_PROP_DOMAIN_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: true }, { id: "fragment", name: "fragment", descriptionId: "AR_TP_JOURNEYPAGE_PROP_FRAGMENT_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: true }, { id: "hostname", name: "hostname", descriptionId: "AR_TP_JOURNEYPAGE_PROP_HOSTNAME_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: true }, { id: "keywords", name: "keywords", descriptionId: "AR_TP_JOURNEYPAGE_PROP_KEYWORDS_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: true }, { id: "lang", name: "lang", descriptionId: "AR_TP_JOURNEYPAGE_PROP_LANG_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: true }, { id: "pathname", name: "pathname", descriptionId: "AR_TP_JOURNEYPAGE_PROP_PATHNAME_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: true }, { id: "queryString", name: "queryString", descriptionId: "AR_TP_JOURNEYPAGE_PROP_QUERYSTRING_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: true }, { id: "breadcrumb", name: "breadcrumb", descriptionId: "AR_TP_JOURNEYPAGE_PROP_BREADCRUMB_DSC", type: "str", isCollection: true, isComputed: false, version: "1.0", readOnly: true }] }, JourneyReferrer: { name: "AR_TP_JOURNEYREFERRER", allowArray: false, dataType: "ComplexDataType", support: { classType: "ComplexVariable", expressionDataType: "cpx_journey_referrer", isSupportedByAny: true, userCanCreate: false, supportedFlowTypes: { inboundcall: { featureConfigName: "callFlowJourneySupportPhase1" }, inqueuecall: { featureConfigName: "callFlowJourneySupportPhase1" }, outboundcall: { featureConfigName: "callFlowJourneySupportPhase1" }, securecall: { featureConfigName: "callFlowJourneySupportPhase1" }, voicemail: { featureConfigName: "callFlowJourneySupportPhase1" }, bot: { featureConfigName: "botFlowsPhase2" }, commonmodule: {}, digitalbot: { featureConfigName: "botFlowsDigitalBotFlowsPhase2" }, inboundchat: {}, inboundshortmessage: {}, inqueueshortmessage: {}, voice: { featureConfigName: "voiceFlowsPhase2" }, workflow: {} }, version: "1.0", featureConfigName: "orgAvailabilityJourneySessions" }, nativeProperties: [{ id: "url", name: "url", descriptionId: "AR_TP_JOURNEYREFERRER_PROP_URL_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: true }, { id: "domain", name: "domain", descriptionId: "AR_TP_JOURNEYREFERRER_PROP_DOMAIN_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: true }, { id: "hostname", name: "hostname", descriptionId: "AR_TP_JOURNEYREFERRER_PROP_HOSTNAME_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: true }, { id: "keywords", name: "keywords", descriptionId: "AR_TP_JOURNEYREFERRER_PROP_KEYWORDS_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: true }, { id: "pathname", name: "pathname", descriptionId: "AR_TP_JOURNEYREFERRER_PROP_PATHNAME_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: true }, { id: "queryString", name: "queryString", descriptionId: "AR_TP_JOURNEYREFERRER_PROP_QUERYSTRING_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: true }, { id: "fragment", name: "fragment", descriptionId: "AR_TP_JOURNEYREFERRER_PROP_FRAGMENT_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: true }, { id: "name", name: "name", descriptionId: "AR_TP_JOURNEYREFERRER_PROP_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: true }, { id: "medium", name: "medium", descriptionId: "AR_TP_JOURNEYREFERRER_PROP_MEDIUM_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: true }] }, JourneySegment: { name: "AR_TP_JOURNEYSEGMENT", allowArray: true, dataType: "ComplexDataType", support: { classType: "ComplexVariable", expressionDataType: "cpx_journey_segment", isSupportedByAny: true, userCanCreate: true, supportedFlowTypes: { inboundcall: { featureConfigName: "callFlowJourneySupportPhase1" }, inqueuecall: { featureConfigName: "callFlowJourneySupportPhase1" }, outboundcall: { featureConfigName: "callFlowJourneySupportPhase1" }, securecall: { featureConfigName: "callFlowJourneySupportPhase1" }, voicemail: { featureConfigName: "callFlowJourneySupportPhase1" }, bot: { featureConfigName: "botFlowsPhase2" }, digitalbot: { featureConfigName: "botFlowsDigitalBotFlowsPhase2" }, commonmodule: {}, inboundchat: {}, inboundshortmessage: {}, inqueueshortmessage: {}, voice: { featureConfigName: "voiceFlowsPhase2" }, workflow: {} }, version: "1.0", featureConfigName: "orgAvailabilityJourneySegments" }, nativeProperties: [{ id: "id", name: "id", descriptionId: "AR_TP_JOURNEYSEGMENT_PROP_ID_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: true }, { id: "color", name: "color", descriptionId: "AR_TP_JOURNEYSEGMENT_PROP_COLOR_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: true }, { id: "createdDateUtc", name: "createdDateUtc", descriptionId: "AR_TP_JOURNEYSEGMENT_PROP_CREATEDDATEUTC_DSC", type: "dtm", isCollection: false, isComputed: false, version: "1.0", readOnly: true }, { id: "description", name: "description", descriptionId: "AR_TP_JOURNEYSEGMENT_PROP_DESCRIPTION_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: true }, { id: "displayName", name: "displayName", descriptionId: "AR_TP_JOURNEYSEGMENT_PROP_DISPLAYNAME_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: true }, { id: "isActive", name: "isActive", descriptionId: "AR_TP_JOURNEYSEGMENT_PROP_ISACTIVE_DSC", type: "bln", isCollection: false, isComputed: false, version: "1.0", readOnly: true }, { id: "modifiedDateUtc", name: "modifiedDateUtc", descriptionId: "AR_TP_JOURNEYSEGMENT_PROP_MODIFIEDDATEUTC_DSC", type: "dtm", isCollection: false, isComputed: false, version: "1.0", readOnly: true }, { id: "shouldDisplayToAgent", name: "shouldDisplayToAgent", descriptionId: "AR_TP_JOURNEYSEGMENT_PROP_SHOULDDISPLAYTOAGENT_DSC", type: "bln", isCollection: false, isComputed: false, version: "1.0", readOnly: true }, { id: "version", name: "version", descriptionId: "AR_TP_JOURNEYSEGMENT_PROP_VERSION_DSC", type: "int", isCollection: false, isComputed: false, version: "1.0", readOnly: true }] }, JourneySessionSegmentAssignment: { name: "AR_TP_JOURNEYSESSIONSEGMENTASSIGNMENT", allowArray: true, dataType: "ComplexDataType", support: { classType: "ComplexVariable", expressionDataType: "cpx_journey_session_segment_assignment", isSupportedByAny: true, userCanCreate: false, supportedFlowTypes: { inboundcall: { featureConfigName: "callFlowJourneySupportPhase1" }, inqueuecall: { featureConfigName: "callFlowJourneySupportPhase1" }, outboundcall: { featureConfigName: "callFlowJourneySupportPhase1" }, securecall: { featureConfigName: "callFlowJourneySupportPhase1" }, voicemail: { featureConfigName: "callFlowJourneySupportPhase1" }, bot: { featureConfigName: "botFlowsPhase2" }, commonmodule: {}, digitalbot: { featureConfigName: "botFlowsDigitalBotFlowsPhase2" }, inboundchat: {}, inboundshortmessage: {}, inqueueshortmessage: {}, voice: { featureConfigName: "voiceFlowsPhase2" }, workflow: {} }, version: "1.0", featureConfigName: "orgAvailabilityJourneySessions" }, nativeProperties: [{ id: "id", name: "id", descriptionId: "AR_TP_JOURNEYSESSIONSEGMENTASSIGNMENT_PROP_ID_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: true }, { id: "assignedDate", name: "assignedDate", descriptionId: "AR_TP_JOURNEYSESSIONSEGMENTASSIGNMENT_PROP_ASSIGNEDDATE_DSC", type: "dtm", isCollection: false, isComputed: false, version: "1.0", readOnly: true }] }, JourneySession: { name: "AR_TP_JOURNEYSESSION", allowArray: true, dataType: "ComplexDataType", support: { classType: "ComplexVariable", expressionDataType: "cpx_journey_session", isSupportedByAny: true, userCanCreate: true, supportedFlowTypes: { inboundcall: { featureConfigName: "callFlowJourneySupportPhase1" }, inqueuecall: { featureConfigName: "callFlowJourneySupportPhase1" }, outboundcall: { featureConfigName: "callFlowJourneySupportPhase1" }, securecall: { featureConfigName: "callFlowJourneySupportPhase1" }, voicemail: { featureConfigName: "callFlowJourneySupportPhase1" }, bot: { featureConfigName: "botFlowsPhase2" }, commonmodule: {}, digitalbot: { featureConfigName: "botFlowsDigitalBotFlowsPhase2" }, inboundchat: {}, inboundshortmessage: {}, inqueueshortmessage: {}, voice: { featureConfigName: "voiceFlowsPhase2" }, workflow: {} }, version: "1.0", featureConfigName: "orgAvailabilityJourneySessions" }, nativeProperties: [{ id: "id", name: "id", descriptionId: "AR_TP_JOURNEYSESSION_PROP_ID_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: true }, { id: "createdDate", name: "createdDate", descriptionId: "AR_TP_JOURNEYSESSION_PROP_CREATEDDATE_DSC", type: "dtm", isCollection: false, isComputed: false, version: "1.0", readOnly: true }, { id: "customerId", name: "customerId", descriptionId: "AR_TP_JOURNEYSESSION_PROP_CUSTOMERID_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: true }, { id: "customerIdType", name: "customerIdType", descriptionId: "AR_TP_JOURNEYSESSION_PROP_CUSTOMERIDTYPE_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: true }, { id: "divisionIds", name: "divisionIds", descriptionId: "AR_TP_JOURNEYSESSION_PROP_DIVISIONIDS_DSC", type: "str", isCollection: true, isComputed: false, version: "1.0", readOnly: true, featureConfigName: "journeySessionDivisionIds" }, { id: "type", name: "type", descriptionId: "AR_TP_JOURNEYSESSION_PROP_TYPE_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: true }, { id: "externalId", name: "externalId", descriptionId: "AR_TP_JOURNEYSESSION_PROP_EXTERNALID_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: true }, { id: "externalUrl", name: "externalUrl", descriptionId: "AR_TP_JOURNEYSESSION_PROP_EXTERNALURL_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: true }, { id: "outcomeAchievements", name: "outcomeAchievements", descriptionId: "AR_TP_JOURNEYSESSION_PROP_OUTCOMEACHIEVEMENTS_DSC", type: "cpx_journey_session_outcome_achievement", isCollection: true, isComputed: false, version: "1.0", readOnly: true }, { id: "segmentAssignments", name: "segmentAssignments", descriptionId: "AR_TP_JOURNEYSESSION_PROP_SEGMENTASSIGNMENTS_DSC", type: "cpx_journey_session_segment_assignment", isCollection: true, isComputed: false, version: "1.0", readOnly: true }, { id: "attributes", name: "attributes", descriptionId: "AR_TP_JOURNEYSESSION_PROP_ATTRIBUTES_DSC", type: "cpx_journey_custom_event_attribute", isCollection: true, isComputed: false, version: "1.0", readOnly: true }, { id: "attributeLists", name: "attributeLists", descriptionId: "AR_TP_JOURNEYSESSION_PROP_ATTRIBUTELISTS_DSC", type: "cpx_journey_custom_event_attribute_list", isCollection: true, isComputed: false, version: "1.0", readOnly: true }, { id: "awayDate", name: "awayDate", descriptionId: "AR_TP_JOURNEYSESSION_PROP_AWAYDATE_DSC", type: "dtm", isCollection: false, isComputed: false, version: "1.0", readOnly: true }, { id: "browser", name: "browser", descriptionId: "AR_TP_JOURNEYSESSION_PROP_BROWSER_DSC", type: "cpx_journey_browser", isCollection: false, isComputed: false, version: "1.0", readOnly: true }, { id: "device", name: "device", descriptionId: "AR_TP_JOURNEYSESSION_PROP_DEVICE_DSC", type: "cpx_journey_device", isCollection: false, isComputed: false, version: "1.0", readOnly: true }, { id: "geolocation", name: "geolocation", descriptionId: "AR_TP_JOURNEYSESSION_PROP_GEOLOCATION_DSC", type: "cpx_journey_geolocation", isCollection: false, isComputed: false, version: "1.0", readOnly: true }, { id: "idleDate", name: "idleDate", descriptionId: "AR_TP_JOURNEYSESSION_PROP_IDLEDATE_DSC", type: "dtm", isCollection: false, isComputed: false, version: "1.0", readOnly: true }, { id: "ipAddress", name: "ipAddress", descriptionId: "AR_TP_JOURNEYSESSION_PROP_IPADDRESS_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: true }, { id: "ipOrganization", name: "ipOrganization", descriptionId: "AR_TP_JOURNEYSESSION_PROP_IPORGANIZATION_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: true }, { id: "lastPage", name: "lastPage", descriptionId: "AR_TP_JOURNEYSESSION_PROP_LASTPAGE_DSC", type: "cpx_journey_page", isCollection: false, isComputed: false, version: "1.0", readOnly: true }, { id: "mktCampaign", name: "mktCampaign", descriptionId: "AR_TP_JOURNEYSESSION_PROP_MKTCAMPAIGN_DSC", type: "cpx_journey_campaign", isCollection: false, isComputed: false, version: "1.0", readOnly: true }, { id: "referrer", name: "referrer", descriptionId: "AR_TP_JOURNEYSESSION_PROP_REFERRER_DSC", type: "cpx_journey_referrer", isCollection: false, isComputed: false, version: "1.0", readOnly: true }, { id: "searchTerms", name: "searchTerms", descriptionId: "AR_TP_JOURNEYSESSION_PROP_SEARCHTERMS_DSC", type: "str", isCollection: true, isComputed: false, version: "1.0", readOnly: true }, { id: "userAgentString", name: "userAgentString", descriptionId: "AR_TP_JOURNEYSESSION_PROP_USERAGENTSTRING_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: true }, { id: "durationInSeconds", name: "durationInSeconds", descriptionId: "AR_TP_JOURNEYSESSION_PROP_DURATIONINSECONDS_DSC", type: "int", isCollection: false, isComputed: false, version: "1.0", readOnly: true }, { id: "eventCount", name: "eventCount", descriptionId: "AR_TP_JOURNEYSESSION_PROP_EVENTCOUNT_DSC", type: "int", isCollection: false, isComputed: false, version: "1.0", readOnly: true }, { id: "pageviewCount", name: "pageviewCount", descriptionId: "AR_TP_JOURNEYSESSION_PROP_PAGEVIEWCOUNT_DSC", type: "int", isCollection: false, isComputed: false, version: "1.0", readOnly: true }, { id: "screenviewCount", name: "screenviewCount", descriptionId: "AR_TP_JOURNEYSESSION_PROP_SCREENVIEWCOUNT_DSC", type: "int", isCollection: false, isComputed: false, version: "1.0", readOnly: true }, { id: "app", name: "app", descriptionId: "AR_TP_JOURNEYSESSION_PROP_APP_DSC", type: "cpx_journey_app", isCollection: false, isComputed: false, version: "1.0", readOnly: true, featureConfigName: "journeyMobileAppData" }, { id: "networkConnectivity", name: "networkConnectivity", descriptionId: "AR_TP_JOURNEYSESSION_PROP_NETWORKCONNECTIVITY_DSC", type: "cpx_journey_network_connectivity", isCollection: false, isComputed: false, version: "1.0", readOnly: true, featureConfigName: "journeyMobileAppData" }, { id: "sdkLibrary", name: "sdkLibrary", descriptionId: "AR_TP_JOURNEYSESSION_PROP_SDKLIBRARY_DSC", type: "cpx_journey_sdk_library", isCollection: false, isComputed: false, version: "1.0", readOnly: true, featureConfigName: "journeyMobileAppData" }] }, LineItem: { name: "AR_TP_LINEITEM", allowArray: true, dataType: "LineItemType", propertiesAllowAssignment: true, support: { classType: "LineItemVariable", expressionDataType: "lni", isSupportedByAny: true, userCanCreate: true, supportedFlowTypes: { digitalbot: {} }, version: "1.0", featureConfigName: "botFlowsApplePay" }, nativeProperties: [{ id: "listingName", name: "listingName", descriptionId: "AR_TP_LINEITEM_PROP_LISTINGNAME_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: false, displayValue: "AR_TP_LINEITEM_PROP_LISTINGNAME_DISP_VAL" }, { id: "listingPrice", name: "listingPrice", descriptionId: "AR_TP_LINEITEM_PROP_LISTINGPRICE_DSC", type: "cur", isCollection: false, isComputed: false, version: "1.0", readOnly: false, displayValue: "AR_TP_LINEITEM_PROP_LISTINGPRICE_DISP_VAL" }] }, ShippingOption: { name: "AR_TP_SHIPPINGOPTION", allowArray: true, dataType: "ShippingOptionType", propertiesAllowAssignment: true, support: { classType: "ShippingOptionVariable", expressionDataType: "sho", isSupportedByAny: true, userCanCreate: true, supportedFlowTypes: { digitalbot: {} }, version: "1.0", featureConfigName: "botFlowsApplePay" }, nativeProperties: [{ id: "label", name: "label", descriptionId: "AR_TP_SHIPPINGOPTION_PROP_LABEL_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: false, displayValue: "AR_TP_SHIPPINGOPTION_PROP_LABEL_DISP_VAL" }, { id: "identifier", name: "identifier", descriptionId: "AR_TP_SHIPPINGOPTION_PROP_IDENTIFIER_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: false, displayValue: "AR_TP_SHIPPINGOPTION_PROP_IDENTIFIER_DISP_VAL" }, { id: "shippingDetails", name: "shippingDetails", descriptionId: "AR_TP_SHIPPINGOPTION_PROP_SHIPPINGDETAILS_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: false, displayValue: "AR_TP_SHIPPINGOPTION_PROP_SHIPPINGDETAILS_DISP_VAL" }, { id: "price", name: "price", descriptionId: "AR_TP_SHIPPINGOPTION_PROP_PRICE_DSC", type: "cur", isCollection: false, isComputed: false, version: "1.0", readOnly: false, displayValue: "AR_TP_SHIPPINGOPTION_PROP_PRICE_DISP_VAL" }] }, ListPicker: { name: "AR_TP_LISTPICKER", allowArray: false, dataType: "ListPickerType", propertiesAllowAssignment: true, support: { classType: "ListPickerVariable", expressionDataType: "lpk", isSupportedByAny: true, userCanCreate: true, supportedFlowTypes: { digitalbot: {} }, version: "1.0", featureConfigName: "botFlowsAppleListPicker" }, nativeProperties: [{ id: "sections", name: "sections", descriptionId: "AR_TP_LISTPICKER_PROP_SECTIONS_DSC", type: "lps", isCollection: true, isComputed: false, version: "1.0", readOnly: false, minItems: 1, maxItems: 10, displayValue: "AR_TP_LISTPICKER_PROP_SECTIONS_DISP_VAL" }, { id: "receivedMessageImage", name: "receivedMessageImage", descriptionId: "AR_TP_LISTPICKER_PROP_RECEIVEDMESSAGEIMAGE_DSC", type: "img", isCollection: false, isComputed: false, version: "1.0", readOnly: false, displayValue: "AR_TP_LISTPICKER_PROP_RECEIVEDMESSAGEIMAGE_DISP_VAL" }, { id: "receivedMessageTitle", name: "receivedMessageTitle", descriptionId: "AR_TP_LISTPICKER_PROP_RECEIVEDMESSAGETITLE_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: false, minLength: 1, maxLength: 256, displayValue: "AR_TP_LISTPICKER_PROP_RECEIVEDMESSAGETITLE_DISP_VAL", overrides: [{ propertyName: "maxLength", newValue: "1024", featureConfigName: "whatsAppListPickerFeature" }] }, { id: "receivedMessageSubtitle", name: "receivedMessageSubtitle", descriptionId: "AR_TP_LISTPICKER_PROP_RECEIVEDMESSAGESUBTITLE_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: false, maxLength: 256, displayValue: "AR_TP_LISTPICKER_PROP_RECEIVEDMESSAGESUBTITLE_DISP_VAL" }, { id: "receivedMessageButtonText", name: "receivedMessageButtonText", descriptionId: "AR_TP_LISTPICKER_PROP_RECEIVEDMESSAGEBUTTONTEXT_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: false, featureConfigName: "whatsAppListPickerFeature", minLength: 1, maxLength: 20, displayValue: "AR_TP_LISTPICKER_PROP_RECEIVEDMESSAGEBUTTONTEXT_DISP_VAL", supportedSessionSources: ["whatsapp"] }, { id: "replyMessageImage", name: "replyMessageImage", descriptionId: "AR_TP_LISTPICKER_PROP_REPLYMESSAGEIMAGE_DSC", type: "img", isCollection: false, isComputed: false, version: "1.0", readOnly: false, displayValue: "AR_TP_LISTPICKER_PROP_REPLYMESSAGEIMAGE_DISP_VAL", supportedSessionSources: ["applebusinesschat"] }, { id: "replyMessageSubtitle", name: "replyMessageSubtitle", descriptionId: "AR_TP_LISTPICKER_PROP_REPLYMESSAGESUBTITLE_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: false, maxLength: 256, displayValue: "AR_TP_LISTPICKER_PROP_REPLYMESSAGESUBTITLE_DISP_VAL", supportedSessionSources: ["applebusinesschat"] }] }, ListPickerItem: { name: "AR_TP_LISTPICKERITEM", allowArray: true, dataType: "ListPickerItemType", propertiesAllowAssignment: true, support: { classType: "ListPickerItemVariable", expressionDataType: "lpi", isSupportedByAny: true, userCanCreate: true, supportedFlowTypes: { digitalbot: {} }, version: "1.0", featureConfigName: "botFlowsAppleListPicker" }, nativeProperties: [{ id: "title", name: "title", descriptionId: "AR_TP_LISTPICKERITEM_PROP_TITLE_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: false, minLength: 1, maxLength: 50, displayValue: "AR_TP_LISTPICKERITEM_PROP_TITLE_DISP_VAL" }, { id: "subtitle", name: "subtitle", descriptionId: "AR_TP_LISTPICKERITEM_PROP_SUBTITLE_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: false, maxLength: 256, displayValue: "AR_TP_LISTPICKERITEM_PROP_SUBTITLE_DISP_VAL" }, { id: "image", name: "image", descriptionId: "AR_TP_LISTPICKERITEM_PROP_IMAGE_DSC", type: "img", isCollection: false, isComputed: false, version: "1.0", readOnly: false, displayValue: "AR_TP_LISTPICKERITEM_PROP_IMAGE_DISP_VAL" }] }, ListPickerSection: { name: "AR_TP_LISTPICKERSECTION", allowArray: true, dataType: "ListPickerSectionType", propertiesAllowAssignment: true, support: { classType: "ListPickerSectionVariable", expressionDataType: "lps", isSupportedByAny: true, userCanCreate: true, supportedFlowTypes: { digitalbot: {} }, version: "1.0", featureConfigName: "botFlowsAppleListPicker" }, nativeProperties: [{ id: "title", name: "title", descriptionId: "AR_TP_LISTPICKERSECTION_PROP_TITLE_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: false, minLength: 1, maxLength: 256, displayValue: "AR_TP_LISTPICKERSECTION_PROP_TITLE_DISP_VAL" }, { id: "multiSelectEnabled", name: "multiSelectEnabled", descriptionId: "AR_TP_LISTPICKERSECTION_PROP_MULTISELECTENABLED_DSC", type: "bln", isCollection: false, isComputed: false, version: "1.0", readOnly: false, displayValue: "AR_TP_LISTPICKERSECTION_PROP_MULTISELECTENABLED_DISP_VAL" }, { id: "items", name: "items", descriptionId: "AR_TP_LISTPICKERSECTION_PROP_ITEMS_DSC", type: "lpi", isCollection: true, isComputed: false, version: "1.0", readOnly: false, maxItems: 100, displayValue: "AR_TP_LISTPICKERSECTION_PROP_ITEMS_DISP_VAL" }] }, WheelPicker: { name: "AR_TP_WHEELPICKER", allowArray: false, dataType: "WheelPickerDataType", propertiesAllowAssignment: true, support: { classType: "WheelPickerVariable", expressionDataType: "wpk", isSupportedByAny: true, userCanCreate: true, supportedFlowTypes: { digitalbot: {} }, version: "1.0", featureConfigName: "botFlowsAppleFormsPhase2" }, nativeProperties: [{ id: "items", name: "items", descriptionId: "AR_TP_WHEELPICKER_PROP_ITEMS_DSC", type: "wpi", isCollection: true, isComputed: false, version: "1.0", readOnly: false, minItems: 1, maxItems: 100, displayValue: "AR_TP_WHEELPICKER_PROP_ITEMS_DISP_VAL" }] }, WheelPickerItem: { name: "AR_TP_WHEELPICKERITEM", allowArray: true, dataType: "WheelPickerItemDataType", propertiesAllowAssignment: true, support: { classType: "WheelPickerItemVariable", expressionDataType: "wpi", isSupportedByAny: true, userCanCreate: true, supportedFlowTypes: { digitalbot: {} }, version: "1.0", featureConfigName: "botFlowsAppleFormsPhase2" }, nativeProperties: [{ id: "title", name: "title", descriptionId: "AR_TP_WHEELPICKERITEM_PROP_TITLE_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: false, displayValue: "AR_TP_WHEELPICKERITEM_PROP_TITLE_DISP_VAL" }, { id: "value", name: "value", descriptionId: "AR_TP_WHEELPICKERITEM_PROP_VALUE_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: false, displayValue: "AR_TP_WHEELPICKERITEM_PROP_VALUE_DISP_VAL" }] }, KnowledgeBaseDocument: { name: "AR_TP_KNOWLEDGEBASEDOCUMENT", allowArray: true, dataType: "KnowledgeBaseDocumentDataType", support: { classType: "KnowledgeBaseDocumentVariable", expressionDataType: "kbd", isSupportedByAny: true, userCanCreate: true, supportedFlowTypes: { commonmodule: { featureConfigName: "botFlowsDigitalBotFlows" }, digitalbot: {}, bot: { featureConfigName: "botFlowsFindKnowledgeBaseDocumentById" }, voice: {} }, version: "1.0" }, nativeProperties: [{ id: "id", name: "id", descriptionId: "AR_TP_KNOWLEDGEBASEDOCUMENT_PROP_ID_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: true }, { id: "name", name: "name", descriptionId: "AR_TP_KNOWLEDGEBASEDOCUMENT_PROP_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: true }, { id: "content", name: "content", descriptionId: "AR_TP_KNOWLEDGEBASEDOCUMENT_PROP_CONTENT_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: true }, { id: "category", name: "category", descriptionId: "AR_TP_KNOWLEDGEBASEDOCUMENT_PROP_CATEGORY_DSC", type: "cpx_knowledge_base_document_category", isCollection: false, isComputed: false, version: "1.0", readOnly: true, featureConfigName: "botFlowsDigitalBotFlowsKnowledgeEndToEndFeature" }, { id: "labels", name: "labels", descriptionId: "AR_TP_KNOWLEDGEBASEDOCUMENT_PROP_LABELS_DSC", type: "cpx_knowledge_base_document_label", isCollection: true, isComputed: false, version: "1.0", readOnly: true, featureConfigName: "botFlowsDigitalBotFlowsKnowledgeEndToEndFeature" }] }, KnowledgeBaseDocumentCategory: { name: "AR_TP_KNOWLEDGEBASEDOCUMENTCATEGORY", allowArray: false, dataType: "ComplexDataType", support: { classType: "ComplexVariable", expressionDataType: "cpx_knowledge_base_document_category", isSupportedByAny: true, userCanCreate: false, supportedFlowTypes: { bot: { featureConfigName: "botFlowsDigitalBotFlowsKnowledgeEndToEndFeature" }, digitalbot: { featureConfigName: "botFlowsDigitalBotFlowsKnowledgeEndToEndFeature" }, voice: {} }, version: "1.0" }, nativeProperties: [{ id: "id", name: "id", descriptionId: "AR_TP_KNOWLEDGEBASEDOCUMENTCATEGORY_PROP_ID_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: true }, { id: "name", name: "name", descriptionId: "AR_TP_KNOWLEDGEBASEDOCUMENTCATEGORY_PROP_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: true }] }, KnowledgeBaseDocumentLabel: { name: "AR_TP_KNOWLEDGEBASEDOCUMENTLABEL", allowArray: true, dataType: "ComplexDataType", support: { classType: "ComplexVariable", expressionDataType: "cpx_knowledge_base_document_label", isSupportedByAny: true, userCanCreate: false, supportedFlowTypes: { bot: { featureConfigName: "botFlowsDigitalBotFlowsKnowledgeEndToEndFeature" }, digitalbot: { featureConfigName: "botFlowsDigitalBotFlowsKnowledgeEndToEndFeature" }, voice: {} }, version: "1.0" }, nativeProperties: [{ id: "id", name: "id", descriptionId: "AR_TP_KNOWLEDGEBASEDOCUMENTLABEL_PROP_ID_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: true }, { id: "name", name: "name", descriptionId: "AR_TP_KNOWLEDGEBASEDOCUMENTLABEL_PROP_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: true }] }, MessageStickerInfo: { name: "AR_TP_MESSAGESTICKERINFO", allowArray: true, dataType: "ComplexDataType", support: { classType: "ComplexVariable", expressionDataType: "cpx_message_sticker_info", isSupportedByAny: true, userCanCreate: false, supportedFlowTypes: { inboundshortmessage: {}, inqueueshortmessage: {}, commonmodule: {} }, version: "1.0" }, nativeProperties: [{ id: "id", name: "id", descriptionId: "AR_TP_MESSAGESTICKERINFO_PROP_ID_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: true }, { id: "url", name: "url", descriptionId: "AR_TP_MESSAGESTICKERINFO_PROP_URL_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: true }] }, MessageAddressInfo: { name: "AR_TP_MESSAGEADDRESSINFO", allowArray: true, dataType: "ComplexDataType", support: { classType: "ComplexVariable", expressionDataType: "cpx_message_address_info", isSupportedByAny: true, userCanCreate: false, supportedFlowTypes: { inboundshortmessage: {}, inqueueshortmessage: {}, commonmodule: {} }, version: "1.0" }, nativeProperties: [{ id: "name", name: "name", descriptionId: "AR_TP_MESSAGEADDRESSINFO_PROP_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: true }, { id: "addressRaw", name: "addressRaw", descriptionId: "AR_TP_MESSAGEADDRESSINFO_PROP_ADDRESSRAW_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: true }, { id: "addressNormalized", name: "addressNormalized", descriptionId: "AR_TP_MESSAGEADDRESSINFO_PROP_ADDRESSNORMALIZED_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: true }, { id: "addressDisplayable", name: "addressDisplayable", descriptionId: "AR_TP_MESSAGEADDRESSINFO_PROP_ADDRESSDISPLAYABLE_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: true }, { id: "email", name: "email", descriptionId: "AR_TP_MESSAGEADDRESSINFO_PROP_EMAIL_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: true, featureConfigName: "messageAddressInfoEmail" }] }, ShortMessage: { name: "AR_TP_SHORTMESSAGE", allowArray: true, dataType: "ComplexDataType", support: { classType: "ComplexVariable", expressionDataType: "cpx_short_message", isSupportedByAny: true, userCanCreate: false, supportedFlowTypes: { inboundshortmessage: {}, inqueueshortmessage: {}, commonmodule: {} }, version: "1.0" }, nativeProperties: [{ id: "id", name: "id", descriptionId: "AR_TP_SHORTMESSAGE_PROP_ID_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: true }, { id: "type", name: "type", descriptionId: "AR_TP_SHORTMESSAGE_PROP_TYPE_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: true }, { id: "attachments", name: "attachments", descriptionId: "AR_TP_SHORTMESSAGE_PROP_ATTACHMENTS_DSC", type: "cpx_email_attachment", isCollection: true, isComputed: false, version: "1.0", readOnly: true }, { id: "body", name: "body", descriptionId: "AR_TP_SHORTMESSAGE_PROP_BODY_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: true }, { id: "bodyType", name: "bodyType", descriptionId: "AR_TP_SHORTMESSAGE_PROP_BODYTYPE_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: true }, { id: "senderAddress", name: "senderAddress", descriptionId: "AR_TP_SHORTMESSAGE_PROP_SENDERADDRESS_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: true }, { id: "senderAddressInfo", name: "senderAddressInfo", descriptionId: "AR_TP_SHORTMESSAGE_PROP_SENDERADDRESSINFO_DSC", type: "cpx_message_address_info", isCollection: false, isComputed: false, version: "1.0", readOnly: true }, { id: "targetAddresses", name: "targetAddresses", descriptionId: "AR_TP_SHORTMESSAGE_PROP_TARGETADDRESSES_DSC", type: "str", isCollection: true, isComputed: false, version: "1.0", readOnly: true }, { id: "targetAddressesInfo", name: "targetAddressesInfo", descriptionId: "AR_TP_SHORTMESSAGE_PROP_TARGETADDRESSESINFO_DSC", type: "cpx_message_address_info", isCollection: true, isComputed: false, version: "1.0", readOnly: true }, { id: "dateTimeUtc", name: "dateTimeUtc", descriptionId: "AR_TP_SHORTMESSAGE_PROP_DATETIMEUTC_DSC", type: "dtm", isCollection: false, isComputed: false, version: "1.0", readOnly: true }, { id: "referenceId", name: "referenceId", descriptionId: "AR_TP_SHORTMESSAGE_PROP_REFERENCEID_DSC", type: "jsn", isCollection: false, isComputed: false, version: "1.0", readOnly: true, featureConfigName: "appleInvitationFeature" }, { id: "stickers", name: "stickers", descriptionId: "AR_TP_SHORTMESSAGE_PROP_STICKERS_DSC", type: "cpx_message_sticker_info", isCollection: true, isComputed: false, version: "1.0", readOnly: true }, { id: "socialVisibility", name: "socialVisibility", descriptionId: "AR_TP_SHORTMESSAGE_PROP_SOCIALVISIBILITY_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: true, featureConfigName: "publicInboundMessageFlagFeature" }] }, Communication: { name: "AR_TP_COMMUNICATION", allowArray: false, allowArray_altAvailability: "botFlowsDynamicSlotTypePhase2Feature", dataType: "CommunicationDataType", support: { classType: "CommunicationVariable", expressionDataType: "com", expressionBaseDataType: "com", isSupportedByAny: true, userCanCreate: true, supportedFlowTypes: { bot: {}, digitalbot: {}, voice: {}, voicesurvey: {}, commonmodule: {} }, version: "1.0" }, nativeProperties: [] }, Null: { name: "AR_TP_NTS", allowArray: false, dataType: "NullDataType", isAbstract: true, support: { expressionDataType: "nts", isSupportedByAny: false, userCanCreate: false, supportedFlowTypes: { inboundcall: {}, inqueuecall: {}, outboundcall: {}, securecall: {}, voicemail: {}, emailsend: {}, inboundchat: {}, inboundemail: {}, inboundshortmessage: {}, inqueueemail: {}, inqueueshortmessage: {}, surveyinvite: {}, workflow: {}, workitem: {}, bot: {}, digitalbot: {}, voice: {}, voicesurvey: {}, commonmodule: {} }, version: "1.0" }, nativeProperties: [] }, Prompt: { name: "AR_TP_PROMPT", allowArray: true, dataType: "PromptDataType", support: { classType: "PromptVariable", expressionDataType: "pmt", expressionBaseDataType: "pmt", isSupportedByAny: true, userCanCreate: true, supportedFlowTypes: { inboundcall: {}, inqueuecall: {}, outboundcall: {}, securecall: {}, voicemail: {}, bot: {}, digitalbot: {}, inboundchat: {}, emailsend: {}, inboundemail: {}, inqueueemail: {}, inqueueshortmessage: {}, inboundshortmessage: {}, commonmodule: { flowInputSingleton: true, flowInputCollection: true, flowOutputSingleton: true, flowOutputCollection: true }, voice: {}, voicesurvey: {} }, version: "1.0" }, nativeProperties: [{ id: "id", name: "id", descriptionId: "AR_TP_PROMPT_PROP_ID_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: true }, { id: "name", name: "name", descriptionId: "AR_TP_PROMPT_PROP_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: true }, { id: "type", name: "type", descriptionId: "AR_TP_PROMPT_PROP_TYPE_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: true }] }, VoicemailSnippet: { name: "AR_TP_VOICEMAILSNIPPET", allowArray: false, dataType: "ComplexDataType", support: { classType: "ComplexVariable", expressionDataType: "cpx_voicemail_snippet", isSupportedByAny: true, userCanCreate: false, supportedFlowTypes: { voicemail: {} }, version: "1.0" }, nativeProperties: [{ id: "id", name: "id", descriptionId: "AR_TP_VOICEMAILSNIPPET_PROP_ID_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: true }, { id: "startDateTime", name: "startDateTime", descriptionId: "AR_TP_VOICEMAILSNIPPET_PROP_STARTDATETIME_DSC", type: "dtm", isCollection: false, isComputed: false, version: "1.0", readOnly: true }, { id: "length", name: "length", descriptionId: "AR_TP_VOICEMAILSNIPPET_PROP_LENGTH_DSC", type: "dur", isCollection: false, isComputed: false, version: "1.0", readOnly: true }, { id: "maxLengthReached", name: "maxLengthReached", descriptionId: "AR_TP_VOICEMAILSNIPPET_PROP_MAXLENGTHREACHED_DSC", type: "bln", isCollection: false, isComputed: false, version: "1.0", readOnly: true, featureConfigName: "voicemailRecordingMaxTime" }] }, VoiceSnippet: { name: "AR_TP_VOICESNIPPET", allowArray: false, dataType: "ComplexDataType", support: { classType: "ComplexVariable", expressionDataType: "cpx_voice_snippet", isSupportedByAny: true, userCanCreate: true, supportedFlowTypes: { bot: { featureConfigName: "botFlowsVoiceSnippets" }, digitalbot: { featureConfigName: "botFlowsVoiceSnippets" }, voice: { featureConfigName: "botFlowsVoiceSnippets" }, voicesurvey: { featureConfigName: "botFlowsVoiceSnippets" }, commonmodule: { flowInputSingleton: true, flowOutputSingleton: true, featureConfigName: "voiceSnippets" }, inboundcall: { featureConfigName: "voiceSnippets" }, inqueuecall: { featureConfigName: "voiceSnippets" }, outboundcall: { featureConfigName: "voiceSnippets" }, voicemail: { featureConfigName: "voiceSnippets" } }, version: "1.0" }, nativeProperties: [{ id: "id", name: "id", descriptionId: "AR_TP_VOICESNIPPET_PROP_ID_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: true }, { id: "startDateTime", name: "startDateTime", descriptionId: "AR_TP_VOICESNIPPET_PROP_STARTDATETIME_DSC", type: "dtm", isCollection: false, isComputed: false, version: "1.0", readOnly: true }, { id: "length", name: "length", descriptionId: "AR_TP_VOICESNIPPET_PROP_LENGTH_DSC", type: "dur", isCollection: false, isComputed: false, version: "1.0", readOnly: true }] }, Skill: { name: "AR_TP_SKL", allowArray: true, dataType: "SkillDataType", support: { classType: "SkillVariable", expressionDataType: "skl", expressionBaseDataType: "skl", isSupportedByAny: true, userCanCreate: true, supportedFlowTypes: { emailsend: {}, inboundchat: { flowOutputSingleton: true, flowOutputCollection: true }, inboundemail: { flowOutputSingleton: true, flowOutputCollection: true }, inboundshortmessage: { flowOutputSingleton: true, flowOutputCollection: true }, inqueueemail: { flowOutputSingleton: true, flowOutputCollection: true }, inqueueshortmessage: { flowOutputSingleton: true, flowOutputCollection: true }, surveyinvite: { flowOutputSingleton: true, flowOutputCollection: true }, workflow: { flowOutputSingleton: true, flowOutputCollection: true }, workitem: { flowOutputSingleton: true, flowOutputCollection: true }, inboundcall: {}, inqueuecall: {}, outboundcall: {}, securecall: {}, voicemail: {}, bot: { featureConfigName: "botFlowsQueueSupportFeature" }, digitalbot: { featureConfigName: "botFlowsQueueSupportFeature" }, voice: { featureConfigName: "botFlowsQueueSupportFeature" }, commonmodule: { flowInputSingleton: true, flowInputCollection: true, flowOutputSingleton: true, flowOutputCollection: true } }, version: "1.0", featureConfigName: "orgAvailabilityRoutingSkills" }, nativeProperties: [{ id: "id", name: "id", descriptionId: "AR_TP_SKL_PROP_ID_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: true }, { id: "name", name: "name", descriptionId: "AR_TP_SKL_PROP_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: true }] }, String: { name: "AR_TP_STR", allowArray: true, dataType: "StringDataType", support: { classType: "StringVariable", expressionDataType: "str", isSupportedByAny: true, userCanCreate: true, supportedFlowTypes: { emailsend: {}, inboundchat: { flowOutputSingleton: true, flowOutputCollection: true }, inboundemail: { flowOutputSingleton: true, flowOutputCollection: true }, inboundshortmessage: { flowOutputSingleton: true, flowOutputCollection: true }, inqueueemail: {}, inqueueshortmessage: {}, surveyinvite: { flowOutputSingleton: true, flowOutputCollection: true }, workflow: { flowInputSingleton: true, flowInputCollection: true, flowOutputSingleton: true, flowOutputCollection: true }, workitem: { flowInputSingleton: true, flowInputCollection: true, flowOutputSingleton: true, flowOutputCollection: true }, inboundcall: {}, inqueuecall: {}, outboundcall: {}, securecall: {}, voicemail: {}, bot: { flowInputSingleton: true, flowInputCollection: true, flowOutputSingleton: true, flowOutputCollection: true }, commonmodule: { flowInputSingleton: true, flowInputCollection: true, flowOutputSingleton: true, flowOutputCollection: true }, digitalbot: { flowInputSingleton: true, flowInputCollection: true, flowOutputSingleton: true, flowOutputCollection: true }, voice: { flowInputSingleton: true, flowInputCollection: true, flowOutputSingleton: true, flowOutputCollection: true }, voicesurvey: {} }, version: "1.0" }, nativeProperties: [] }, UserQueue: { name: "AR_TP_USQ", allowArray: true, dataType: "UserQueueDataType", support: { classType: "UserVariable", expressionDataType: "usr", expressionBaseDataType: "usr", isSupportedByAny: true, userCanCreate: true, supportedFlowTypes: { emailsend: {}, inboundchat: { flowOutputSingleton: true, flowOutputCollection: true }, inboundemail: { flowOutputSingleton: true, flowOutputCollection: true }, inboundshortmessage: { flowOutputSingleton: true, flowOutputCollection: true }, inqueueemail: { flowOutputSingleton: true, flowOutputCollection: true }, inqueueshortmessage: { flowOutputSingleton: true, flowOutputCollection: true }, surveyinvite: { flowOutputSingleton: true, flowOutputCollection: true }, workflow: { flowOutputSingleton: true, flowOutputCollection: true }, workitem: { flowOutputSingleton: true, flowOutputCollection: true }, inboundcall: {}, inqueuecall: {}, outboundcall: {}, securecall: {}, voicemail: {}, bot: { featureConfigName: "botFlowsQueueSupportFeature" }, commonmodule: { flowInputSingleton: true, flowInputCollection: true, flowOutputSingleton: true, flowOutputCollection: true }, digitalbot: { featureConfigName: "botFlowsQueueSupportFeature" }, voice: { flowOutputSingleton: true, flowOutputCollection: true } }, version: "1.0", featureConfigName: "orgAvailabilityUsers" }, nativeProperties: [{ id: "id", name: "id", descriptionId: "AR_TP_USQ_PROP_ID_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: true }, { id: "name", name: "name", descriptionId: "AR_TP_USQ_PROP_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: true }, { id: "username", name: "username", descriptionId: "AR_TP_USQ_PROP_USERNAME_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: true }] }, Video: { name: "AR_TP_VIDEO", allowArray: true, dataType: "VideoDataType", support: { classType: "VideoVariable", expressionDataType: "vid", isSupportedByAny: true, userCanCreate: true, supportedFlowTypes: { digitalbot: {} }, version: "1.0", featureConfigName: "botFlowsAttachmentsFeature" }, nativeProperties: [{ id: "id", name: "id", descriptionId: "AR_TP_VIDEO_PROP_ID_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: true, featureConfigName: "botFlowsDigitalBotFlowsPhase2" }, { id: "name", name: "name", descriptionId: "AR_TP_VIDEO_PROP_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: true, featureConfigName: "botFlowsDigitalBotFlowsPhase2" }, { id: "url", name: "url", descriptionId: "AR_TP_VIDEO_PROP_URL_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: true }] }, SurveyQuestion: { name: "AR_TP_SURVEYQUESTION", allowArray: true, dataType: "SurveyQuestionType", support: { classType: "SurveyQuestionVariable", expressionDataType: "squ", expressionBaseDataType: "squ", isSupportedByAny: true, userCanCreate: false, supportedFlowTypes: { voicesurvey: {} }, version: "1.0" }, nativeProperties: [{ id: "id", name: "id", descriptionId: "AR_TP_SURVEYQUESTION_PROP_ID_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: true }, { id: "questionType", name: "questionType", descriptionId: "AR_TP_SURVEYQUESTION_PROP_QUESTIONTYPE_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: true, allowableValues: "multipleChoiceQuestion, freeTextQuestion, npsQuestion, readOnlyQuestion" }, { id: "answerOptions", name: "answerOptions", descriptionId: "AR_TP_SURVEYQUESTION_PROP_ANSWEROPTIONS_DSC", type: "sao", isCollection: true, isComputed: false, version: "1.0", readOnly: true }, { id: "naEnabled", name: "naEnabled", descriptionId: "AR_TP_SURVEYQUESTION_PROP_NAENABLED_DSC", type: "bln", isCollection: false, isComputed: false, version: "1.0", readOnly: true }, { id: "maxResponseCharacters", name: "maxResponseCharacters", descriptionId: "AR_TP_SURVEYQUESTION_PROP_MAXRESPONSECHARACTERS_DSC", type: "int", isCollection: false, isComputed: false, version: "1.0", readOnly: true }, { id: "questionText", name: "questionText", descriptionId: "AR_TP_SURVEYQUESTION_PROP_QUESTIONTEXT_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: true }, { id: "questionHelpText", name: "questionHelpText", descriptionId: "AR_TP_SURVEYQUESTION_PROP_QUESTIONHELPTEXT_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: true }, { id: "followUpQuestionText", name: "followUpQuestionText", descriptionId: "AR_TP_SURVEYQUESTION_PROP_FOLLOWUPQUESTIONTEXT_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: true }] }, SurveyQuestionGroup: { name: "AR_TP_SURVEYQUESTIONGROUP", allowArray: true, dataType: "SurveyQuestionType", support: { classType: "SurveyQuestionGroupVariable", expressionDataType: "sqg", expressionBaseDataType: "sqg", isSupportedByAny: true, userCanCreate: false, supportedFlowTypes: { voicesurvey: {} }, version: "1.0" }, nativeProperties: [{ id: "id", name: "id", descriptionId: "AR_TP_SURVEYQUESTIONGROUP_PROP_ID_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: true }, { id: "name", name: "name", descriptionId: "AR_TP_SURVEYQUESTIONGROUP_PROP_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: true }, { id: "questions", name: "questions", descriptionId: "AR_TP_SURVEYQUESTIONGROUP_PROP_QUESTIONS_DSC", type: "squ", isCollection: true, isComputed: false, version: "1.0", readOnly: true }] }, SurveyForm: { name: "AR_TP_SURVEYFORM", allowArray: false, dataType: "SurveyFormType", support: { classType: "SurveyFormVariable", expressionDataType: "sfo", expressionBaseDataType: "sfo", isSupportedByAny: true, userCanCreate: false, supportedFlowTypes: { voicesurvey: {} }, version: "1.0" }, nativeProperties: [{ id: "id", name: "id", descriptionId: "AR_TP_SURVEYFORM_PROP_ID_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: true }, { id: "name", name: "name", descriptionId: "AR_TP_SURVEYFORM_PROP_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: true }, { id: "language", name: "language", descriptionId: "AR_TP_SURVEYFORM_PROP_LANGUAGE_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: true }, { id: "questionGroups", name: "questionGroups", descriptionId: "AR_TP_SURVEYFORM_PROP_QUESTIONGROUPS_DSC", type: "sqg", isCollection: true, isComputed: false, version: "1.0", readOnly: true }] }, SurveyAnswerOption: { name: "AR_TP_SURVEYANSWEROPTION", allowArray: true, dataType: "SurveyAnswerOptionType", propertiesAllowAssignment: true, support: { classType: "SurveyAnswerOptionVariable", expressionDataType: "sao", expressionBaseDataType: "sao", isSupportedByAny: true, userCanCreate: false, supportedFlowTypes: { voicesurvey: {} }, version: "1.0" }, nativeProperties: [{ id: "id", name: "id", descriptionId: "AR_TP_SURVEYANSWEROPTION_PROP_ID_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: true }, { id: "dtmf", name: "dtmf", descriptionId: "AR_TP_SURVEYANSWEROPTION_PROP_DTMF_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: true }, { id: "text", name: "text", descriptionId: "AR_TP_SURVEYANSWEROPTION_PROP_TEXT_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: true }] }, Queue: { name: "AR_TP_QUEUE", allowArray: true, dataType: "QueueDataType", support: { classType: "QueueVariable", expressionDataType: "que", expressionBaseDataType: "que", isSupportedByAny: true, userCanCreate: true, supportedFlowTypes: { emailsend: {}, inboundchat: { flowOutputSingleton: true, flowOutputCollection: true }, inboundemail: { flowOutputSingleton: true, flowOutputCollection: true }, inboundshortmessage: { flowOutputSingleton: true, flowOutputCollection: true }, inqueueemail: { flowOutputSingleton: true, flowOutputCollection: true }, inqueueshortmessage: { flowOutputSingleton: true, flowOutputCollection: true }, surveyinvite: { flowOutputSingleton: true, flowOutputCollection: true }, workflow: { flowOutputSingleton: true, flowOutputCollection: true }, workitem: { flowOutputSingleton: true, flowOutputCollection: true }, inboundcall: {}, inqueuecall: {}, outboundcall: {}, securecall: {}, voicemail: {}, bot: { featureConfigName: "botFlowsQueueSupportFeature" }, commonmodule: { flowInputSingleton: true, flowInputCollection: true, flowOutputSingleton: true, flowOutputCollection: true }, digitalbot: { featureConfigName: "botFlowsQueueSupportFeature" }, voice: {} }, version: "1.0", featureConfigName: "orgAvailabilityQueues" }, nativeProperties: [{ id: "id", name: "id", descriptionId: "AR_TP_QUEUE_PROP_ID_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: true }, { id: "name", name: "name", descriptionId: "AR_TP_QUEUE_PROP_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: true }] }, UtilizationLabel: { name: "AR_TP_UTILIZATIONLABEL", allowArray: true, dataType: "UtilizationLabelDataType", support: { classType: "UtilizationLabelVariable", expressionDataType: "cul", expressionBaseDataType: "cul", isSupportedByAny: true, userCanCreate: true, supportedFlowTypes: { inboundcall: {}, inqueuecall: {}, outboundcall: {}, securecall: {}, voicemail: {}, bot: {}, commonmodule: {}, digitalbot: {}, emailsend: {}, inboundemail: {}, inboundshortmessage: {}, inboundchat: {}, inqueueemail: {}, inqueueshortmessage: {}, voice: {}, workitem: {} }, version: "1.0", featureConfigName: "conversationUtilizationLabels" }, nativeProperties: [{ id: "id", name: "id", descriptionId: "AR_TP_UTILIZATIONLABEL_PROP_ID_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: true }, { id: "name", name: "name", descriptionId: "AR_TP_UTILIZATIONLABEL_PROP_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: true }] }, ConversationTypeEnum: { name: "AR_TP_CONVERSATIONTYPEENUM", allowArray: false, dataType: "ConversationTypeEnumDataType", isEnumContainer: true, support: { classType: "ConversationTypeEnumVariable", expressionDataType: "cte", expressionBaseDataType: "cte", isSupportedByAny: false, userCanCreate: false, supportedFlowTypes: { emailsend: {}, inboundchat: {}, inboundemail: {}, inboundshortmessage: {}, inqueueemail: {}, inqueueshortmessage: {}, surveyinvite: {}, workflow: {}, workitem: {}, bot: { featureConfigName: "botFlowsPhase2" }, digitalbot: { featureConfigName: "botFlowsPhase2" }, voice: { featureConfigName: "botFlowsPhase2" }, voicesurvey: { featureConfigName: "botFlowsPhase2" }, commonmodule: {} }, version: "1.0" }, nativeProperties: [{ id: "call", name: "call", descriptionId: "AR_TP_CONVERSATIONTYPEENUM_PROP_CALL_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: true, propertyToLiteralResolver: "propIDToConversationType" }, { id: "callback", name: "callback", descriptionId: "AR_TP_CONVERSATIONTYPEENUM_PROP_CALLBACK_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: true, propertyToLiteralResolver: "propIDToConversationType" }, { id: "chat", name: "chat", descriptionId: "AR_TP_CONVERSATIONTYPEENUM_PROP_CHAT_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: true, propertyToLiteralResolver: "propIDToConversationType" }, { id: "cobrowse", name: "cobrowse", descriptionId: "AR_TP_CONVERSATIONTYPEENUM_PROP_COBROWSE_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: true, propertyToLiteralResolver: "propIDToConversationType" }, { id: "email", name: "email", descriptionId: "AR_TP_CONVERSATIONTYPEENUM_PROP_EMAIL_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: true, propertyToLiteralResolver: "propIDToConversationType" }, { id: "screenShare", name: "screenShare", descriptionId: "AR_TP_CONVERSATIONTYPEENUM_PROP_SCREENSHARE_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: true, propertyToLiteralResolver: "propIDToConversationType" }, { id: "socialExpression", name: "socialExpression", descriptionId: "AR_TP_CONVERSATIONTYPEENUM_PROP_SOCIALEXPRESSION_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: true, propertyToLiteralResolver: "propIDToConversationType" }, { id: "videoComm", name: "videoComm", descriptionId: "AR_TP_CONVERSATIONTYPEENUM_PROP_VIDEOCOMM_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: true, propertyToLiteralResolver: "propIDToConversationType" }, { id: "unknown", name: "unknown", descriptionId: "AR_TP_CONVERSATIONTYPEENUM_PROP_UNKNOWN_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: true, propertyToLiteralResolver: "propIDToConversationType" }] }, CurrencyEnum: { name: "AR_TP_CURRENCYENUM", allowArray: false, dataType: "CurrencyEnumDataType", isEnumContainer: true, support: { classType: "CurrencyEnumVariable", expressionDataType: "cre", expressionBaseDataType: "cre", isSupportedByAny: false, userCanCreate: false, supportedFlowTypes: { inboundcall: {}, inqueuecall: {}, outboundcall: {}, securecall: {}, voicemail: {}, emailsend: {}, inboundchat: {}, inboundemail: {}, inboundshortmessage: {}, inqueueemail: {}, inqueueshortmessage: {}, surveyinvite: {}, workflow: {}, workitem: {}, bot: {}, digitalbot: {}, voice: {}, voicesurvey: {}, commonmodule: {} }, version: "1.0" }, nativeProperties: [{ id: "code", name: "code", descriptionId: "AR_TP_CURRENCYENUM_PROP_CODE_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: true, propertyToLiteralResolver: "propIDToCurrencyCode" }] }, LanguageEnum: { name: "AR_TP_LANGUAGEENUM", allowArray: false, dataType: "LanguageEnumDataType", isEnumContainer: true, support: { classType: "LanguageEnumVariable", expressionDataType: "lge", expressionBaseDataType: "lge", isSupportedByAny: false, userCanCreate: false, supportedFlowTypes: { inboundcall: {}, inqueuecall: {}, outboundcall: {}, securecall: {}, voicemail: {}, emailsend: {}, inboundchat: {}, inboundemail: {}, inboundshortmessage: {}, inqueueemail: {}, inqueueshortmessage: {}, surveyinvite: {}, workflow: {}, workitem: {}, bot: {}, digitalbot: {}, voice: {}, voicesurvey: {}, commonmodule: {} }, version: "1.0" }, nativeProperties: [{ id: "code", name: "tag", descriptionId: "AR_TP_LANGUAGEENUM_PROP_TAG_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: true, propertyToLiteralResolver: "propIDToLanguageTag" }] }, RegionEnum: { name: "AR_TP_REGIONENUM", allowArray: false, dataType: "RegionEnumDataType", isEnumContainer: true, support: { classType: "RegionEnumVariable", expressionDataType: "rge", expressionBaseDataType: "rge", isSupportedByAny: false, userCanCreate: false, supportedFlowTypes: { inboundcall: {}, inqueuecall: {}, outboundcall: {}, securecall: {}, voicemail: {}, emailsend: {}, inboundchat: {}, inboundemail: {}, inboundshortmessage: {}, inqueueemail: {}, inqueueshortmessage: {}, surveyinvite: {}, workflow: {}, workitem: {}, bot: {}, digitalbot: {}, voice: {}, voicesurvey: {}, commonmodule: {} }, version: "1.0" }, nativeProperties: [{ id: "dialingCode", name: "dialingCode", descriptionId: "AR_TP_REGIONENUM_PROP_DIALINGCODE_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: true, propertyToLiteralResolver: "propIDToDialingCode" }, { id: "countryCode", name: "countryCode", descriptionId: "AR_TP_REGIONENUM_PROP_COUNTRYCODE_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: true, propertyToLiteralResolver: "propIDToCountryCode" }] }, MessageBodyStyleEnum: { name: "AR_TP_MESSAGEBODYSTYLEENUM", allowArray: false, dataType: "MessageBodyStyleEnumDataType", isEnumContainer: true, support: { classType: "MessageBodyStyleEnumVariable", expressionDataType: "mbe", expressionBaseDataType: "mbe", isSupportedByAny: false, userCanCreate: false, supportedFlowTypes: { inboundchat: {}, commonmodule: {} }, version: "1.0" }, nativeProperties: [{ id: "notice", name: "notice", descriptionId: "AR_TP_MESSAGEBODYSTYLEENUM_PROP_NOTICE_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: true, propertyToLiteralResolver: "propIDToSendResponseBodyType" }, { id: "standard", name: "standard", descriptionId: "AR_TP_MESSAGEBODYSTYLEENUM_PROP_STANDARD_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: true, propertyToLiteralResolver: "propIDToSendResponseBodyType" }] }, SurveyDispositionEnum: { name: "AR_TP_SURVEYDISPOSITIONENUM", allowArray: false, dataType: "SurveyDispositionEnumDataType", isEnumContainer: true, support: { classType: "SurveyDispositionEnumVariable", expressionDataType: "sde", expressionBaseDataType: "sde", isSupportedByAny: false, userCanCreate: false, supportedFlowTypes: { surveyinvite: {}, commonmodule: {} }, version: "1.0" }, nativeProperties: [{ id: "error", name: "error", descriptionId: "AR_TP_SURVEYDISPOSITIONENUM_PROP_ERROR_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: true, propertyToLiteralResolver: "propIDToSurveyDisposition" }, { id: "optOut", name: "optOut", descriptionId: "AR_TP_SURVEYDISPOSITIONENUM_PROP_OPTOUT_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: true, propertyToLiteralResolver: "propIDToSurveyDisposition" }] }, CurrenciesEnumContainer: { name: "AR_TP_CURRENCIESENUMCONTAINER", allowArray: false, dataType: "CurrenciesEnumContainer", isEnumContainer: true, support: { classType: "CurrenciesEnumContainerVariable", expressionDataType: "cec", expressionBaseDataType: "cec", isSupportedByAny: false, userCanCreate: false, supportedFlowTypes: { inboundcall: {}, inqueuecall: {}, outboundcall: {}, securecall: {}, voicemail: {}, emailsend: {}, inboundchat: {}, inboundemail: {}, inboundshortmessage: {}, inqueueemail: {}, inqueueshortmessage: {}, surveyinvite: {}, workflow: {}, workitem: {}, bot: {}, digitalbot: {}, voice: {}, voicesurvey: {}, commonmodule: {} }, version: "1.0" }, dynamicPropertyProvider: "Currencies", nativeProperties: [] }, DayOfWeekEnumContainer: { name: "AR_TP_DAYOFWEEKENUMCONTAINER", allowArray: false, dataType: "DayOfWeekEnumContainer", isEnumContainer: true, support: { classType: "DayOfWeekEnumContainerVariable", expressionDataType: "dwc", isSupportedByAny: false, userCanCreate: false, supportedFlowTypes: { inboundcall: {}, inqueuecall: {}, outboundcall: {}, securecall: {}, voicemail: {}, commonmodule: {} }, version: "1.0" }, nativeProperties: [{ id: "sunday", name: "sunday", descriptionId: "AR_TP_DAYOFWEEKENUMCONTAINER_PROP_SUNDAY_DSC", type: "int", isCollection: false, isComputed: false, version: "1.0", readOnly: true, displayValue: "AR_TP_DAYOFWEEKENUMCONTAINER_PROP_SUNDAY_DISP_VAL", propertyResolvedLiteralValue: "1" }, { id: "monday", name: "monday", descriptionId: "AR_TP_DAYOFWEEKENUMCONTAINER_PROP_MONDAY_DSC", type: "int", isCollection: false, isComputed: false, version: "1.0", readOnly: true, displayValue: "AR_TP_DAYOFWEEKENUMCONTAINER_PROP_MONDAY_DISP_VAL", propertyResolvedLiteralValue: "2" }, { id: "tuesday", name: "tuesday", descriptionId: "AR_TP_DAYOFWEEKENUMCONTAINER_PROP_TUESDAY_DSC", type: "int", isCollection: false, isComputed: false, version: "1.0", readOnly: true, displayValue: "AR_TP_DAYOFWEEKENUMCONTAINER_PROP_TUESDAY_DISP_VAL", propertyResolvedLiteralValue: "3" }, { id: "wednesday", name: "wednesday", descriptionId: "AR_TP_DAYOFWEEKENUMCONTAINER_PROP_WEDNESDAY_DSC", type: "int", isCollection: false, isComputed: false, version: "1.0", readOnly: true, displayValue: "AR_TP_DAYOFWEEKENUMCONTAINER_PROP_WEDNESDAY_DISP_VAL", propertyResolvedLiteralValue: "4" }, { id: "thursday", name: "thursday", descriptionId: "AR_TP_DAYOFWEEKENUMCONTAINER_PROP_THURSDAY_DSC", type: "int", isCollection: false, isComputed: false, version: "1.0", readOnly: true, displayValue: "AR_TP_DAYOFWEEKENUMCONTAINER_PROP_THURSDAY_DISP_VAL", propertyResolvedLiteralValue: "5" }, { id: "friday", name: "friday", descriptionId: "AR_TP_DAYOFWEEKENUMCONTAINER_PROP_FRIDAY_DSC", type: "int", isCollection: false, isComputed: false, version: "1.0", readOnly: true, displayValue: "AR_TP_DAYOFWEEKENUMCONTAINER_PROP_FRIDAY_DISP_VAL", propertyResolvedLiteralValue: "6" }, { id: "saturday", name: "saturday", descriptionId: "AR_TP_DAYOFWEEKENUMCONTAINER_PROP_SATURDAY_DSC", type: "int", isCollection: false, isComputed: false, version: "1.0", readOnly: true, displayValue: "AR_TP_DAYOFWEEKENUMCONTAINER_PROP_SATURDAY_DISP_VAL", propertyResolvedLiteralValue: "7" }] }, DateTimeEnumContainer: { name: "AR_TP_DATETIMEENUMCONTAINER", allowArray: false, dataType: "DateTimeEnumContainer", isEnumContainer: true, support: { classType: "DateTimeEnumContainerVariable", expressionDataType: "dlc", expressionBaseDataType: "dlc", isSupportedByAny: false, userCanCreate: false, supportedFlowTypes: { bot: {}, digitalbot: {}, voice: {}, voicesurvey: {}, inboundcall: {}, inqueuecall: {}, outboundcall: {}, securecall: {}, voicemail: {}, commonmodule: {} }, version: "1.0" }, nativeProperties: [{ id: "dayOfWeek", name: "dayOfWeek", descriptionId: "AR_TP_DATETIMEENUMCONTAINER_PROP_DAYOFWEEK_DSC", type: "dwc", isCollection: false, isComputed: false, version: "1.0", readOnly: true, displayValue: "AR_TP_DATETIMEENUMCONTAINER_PROP_DAYOFWEEK_DISP_VAL" }] }, DigitalAudio: { name: "AR_TP_DIGITALAUDIO", allowArray: true, dataType: "DigitalAudioDataType", support: { classType: "DigitalAudioVariable", expressionDataType: "dia", isSupportedByAny: true, userCanCreate: true, supportedFlowTypes: { digitalbot: {} }, version: "1.0", featureConfigName: "botFlowsAttachmentsFeature" }, nativeProperties: [{ id: "id", name: "id", descriptionId: "AR_TP_DIGITALAUDIO_PROP_ID_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: true, featureConfigName: "botFlowsDigitalBotFlowsPhase2" }, { id: "name", name: "name", descriptionId: "AR_TP_DIGITALAUDIO_PROP_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: true, featureConfigName: "botFlowsDigitalBotFlowsPhase2" }, { id: "url", name: "url", descriptionId: "AR_TP_DIGITALAUDIO_PROP_URL_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: true }] }, File: { name: "AR_TP_FILE", allowArray: true, dataType: "FileDataType", support: { classType: "FileVariable", expressionDataType: "fil", isSupportedByAny: true, userCanCreate: true, supportedFlowTypes: { digitalbot: {} }, version: "1.0", featureConfigName: "botFlowsAttachmentsFeature" }, nativeProperties: [{ id: "id", name: "id", descriptionId: "AR_TP_FILE_PROP_ID_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: true, featureConfigName: "botFlowsDigitalBotFlowsPhase2" }, { id: "name", name: "name", descriptionId: "AR_TP_FILE_PROP_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: true, featureConfigName: "botFlowsDigitalBotFlowsPhase2" }, { id: "url", name: "url", descriptionId: "AR_TP_FILE_PROP_URL_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: true }] }, LanguagesEnumContainer: { name: "AR_TP_LANGUAGESENUMCONTAINER", allowArray: false, dataType: "LanguagesEnumContainer", isEnumContainer: true, support: { classType: "LanguagesEnumContainerVariable", expressionDataType: "lnc", expressionBaseDataType: "lnc", isSupportedByAny: false, userCanCreate: false, supportedFlowTypes: { inboundcall: {}, inqueuecall: {}, outboundcall: {}, securecall: {}, voicemail: {}, emailsend: {}, inboundchat: {}, inboundemail: {}, inboundshortmessage: {}, inqueueemail: {}, inqueueshortmessage: {}, surveyinvite: {}, workflow: {}, workitem: {}, bot: {}, digitalbot: {}, voice: {}, voicesurvey: {}, commonmodule: {} }, version: "1.0" }, dynamicPropertyProvider: "Languages", nativeProperties: [] }, RegionsEnumContainer: { name: "AR_TP_REGIONSENUMCONTAINER", allowArray: false, dataType: "RegionsEnumContainer", isEnumContainer: true, support: { classType: "RegionsEnumContainerVariable", expressionDataType: "rec", expressionBaseDataType: "rec", isSupportedByAny: false, userCanCreate: false, supportedFlowTypes: { inboundcall: {}, inqueuecall: {}, outboundcall: {}, securecall: {}, voicemail: {}, emailsend: {}, inboundchat: {}, inboundemail: {}, inboundshortmessage: {}, inqueueemail: {}, inqueueshortmessage: {}, surveyinvite: {}, workflow: {}, workitem: {}, bot: {}, digitalbot: {}, voice: {}, voicesurvey: {}, commonmodule: {} }, version: "1.0" }, dynamicPropertyProvider: "Regions", nativeProperties: [] }, ResponseAsset: { name: "AR_TP_RESPONSEASSET", allowArray: true, dataType: "ResponseAssetDataType", support: { classType: "ResponseAssetVariable", expressionDataType: "rpa", isSupportedByAny: true, userCanCreate: true, supportedFlowTypes: { emailsend: {}, inboundchat: {}, inboundemail: {}, inboundshortmessage: {}, inqueueemail: {}, inqueueshortmessage: {}, surveyinvite: {}, workflow: {}, workitem: {}, commonmodule: {}, digitalbot: {} }, version: "1.0", featureConfigName: "cannedResponseAttachmentsFeature" }, nativeProperties: [{ id: "id", name: "id", descriptionId: "AR_TP_RESPONSEASSET_PROP_ID_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: true }, { id: "name", name: "name", descriptionId: "AR_TP_RESPONSEASSET_PROP_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: true }, { id: "type", name: "type", descriptionId: "AR_TP_RESPONSEASSET_PROP_TYPE_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: true }, { id: "length", name: "length", descriptionId: "AR_TP_RESPONSEASSET_PROP_LENGTH_DSC", type: "int", isCollection: false, isComputed: false, version: "1.0", readOnly: true }, { id: "url", name: "url", descriptionId: "AR_TP_RESPONSEASSET_PROP_URL_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: true }] }, SurveyDispositionsEnumContainer: { name: "AR_TP_SURVEYDISPOSITIONSENUMCONTAINER", allowArray: false, dataType: "SurveyDispositionsEnumContainer", isEnumContainer: true, support: { classType: "SurveyDispositionsEnumContainerVariable", expressionDataType: "sec", expressionBaseDataType: "sec", isSupportedByAny: false, userCanCreate: false, supportedFlowTypes: { inboundcall: {}, inqueuecall: {}, outboundcall: {}, securecall: {}, voicemail: {}, emailsend: {}, inboundchat: {}, inboundemail: {}, inboundshortmessage: {}, inqueueemail: {}, inqueueshortmessage: {}, surveyinvite: {}, workflow: {}, workitem: {}, bot: {}, digitalbot: {}, voice: {}, voicesurvey: {}, commonmodule: {} }, version: "1.0" }, dynamicPropertyProvider: "SurveyDispositions", nativeProperties: [] }, ConversationTypesEnumContainer: { name: "AR_TP_CONVERSATIONTYPESENUMCONTAINER", allowArray: false, dataType: "ConversationTypesEnumContainer", isEnumContainer: true, support: { classType: "ConversationTypesEnumContainerVariable", expressionDataType: "ctc", expressionBaseDataType: "ctc", isSupportedByAny: false, userCanCreate: false, supportedFlowTypes: { inboundcall: {}, inqueuecall: {}, outboundcall: {}, securecall: {}, voicemail: {}, emailsend: {}, inboundchat: {}, inboundemail: {}, inboundshortmessage: {}, inqueueemail: {}, inqueueshortmessage: {}, surveyinvite: {}, workflow: {}, workitem: {}, bot: {}, digitalbot: {}, voice: {}, voicesurvey: {}, commonmodule: {} }, version: "1.0" }, dynamicPropertyProvider: "ConversationTypes", nativeProperties: [] }, Time: { name: "AR_TP_TIME", allowArray: true, dataType: "TimeDataType", support: { classType: "TimeVariable", expressionDataType: "tim", isSupportedByAny: true, userCanCreate: true, supportedFlowTypes: { bot: { flowInputSingleton: true, flowInputCollection: true, flowOutputSingleton: true, flowOutputCollection: true }, digitalbot: { flowInputSingleton: true, flowInputCollection: true, flowOutputSingleton: true, flowOutputCollection: true }, voice: { flowInputSingleton: true, flowInputCollection: true, flowOutputSingleton: true, flowOutputCollection: true }, voicesurvey: {} }, version: "1.0" }, nativeProperties: [] }, TimePartEnumContainer: { name: "AR_TP_TIMEPARTENUMCONTAINER", allowArray: false, dataType: "TimePartEnumContainer", isEnumContainer: true, support: { classType: "TimePartEnumContainerVariable", expressionDataType: "tpc", isSupportedByAny: false, userCanCreate: false, supportedFlowTypes: { bot: {}, digitalbot: {}, voice: {}, voicesurvey: {}, inboundcall: {}, inqueuecall: {}, outboundcall: {}, securecall: {}, voicemail: {}, commonmodule: {} }, version: "1.0" }, nativeProperties: [{ id: "timePartDays", name: "days", descriptionId: "AR_TP_TIMEPARTENUMCONTAINER_PROP_DAYS_DSC", type: "tpf", isCollection: false, isComputed: false, version: "1.0", readOnly: true, displayValue: "AR_TP_TIMEPARTENUMCONTAINER_PROP_DAYS_DISP_VAL" }, { id: "timePartHours", name: "hours", descriptionId: "AR_TP_TIMEPARTENUMCONTAINER_PROP_HOURS_DSC", type: "tpf", isCollection: false, isComputed: false, version: "1.0", readOnly: true, displayValue: "AR_TP_TIMEPARTENUMCONTAINER_PROP_HOURS_DISP_VAL" }, { id: "timePartMinutes", name: "minutes", descriptionId: "AR_TP_TIMEPARTENUMCONTAINER_PROP_MINUTES_DSC", type: "tpf", isCollection: false, isComputed: false, version: "1.0", readOnly: true, displayValue: "AR_TP_TIMEPARTENUMCONTAINER_PROP_MINUTES_DISP_VAL" }, { id: "timePartSeconds", name: "seconds", descriptionId: "AR_TP_TIMEPARTENUMCONTAINER_PROP_SECONDS_DSC", type: "tpf", isCollection: false, isComputed: false, version: "1.0", readOnly: true, displayValue: "AR_TP_TIMEPARTENUMCONTAINER_PROP_SECONDS_DISP_VAL" }] }, TimePartEnum: { name: "AR_TP_TIMEPARTENUM", allowArray: false, dataType: "TimePartEnumDataType", isEnum: true, support: { classType: "TimePartEnumVariable", expressionDataType: "tpf", expressionBaseDataType: "tpf", isSupportedByAny: false, userCanCreate: false, supportedFlowTypes: { inboundcall: {}, inqueuecall: {}, outboundcall: {}, securecall: {}, voicemail: {}, commonmodule: {} }, version: "1.0" }, nativeProperties: [] }, TimePicker: { name: "AR_TP_TIMEPICKER", allowArray: false, dataType: "TimePickerDataType", propertiesAllowAssignment: true, support: { classType: "TimePickerVariable", expressionDataType: "tpk", isSupportedByAny: true, userCanCreate: true, supportedFlowTypes: { digitalbot: {} }, version: "1.0", featureConfigName: "botFlowsMessagingDatePicker" }, nativeProperties: [{ id: "title", name: "title", descriptionId: "AR_TP_TIMEPICKER_PROP_TITLE_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: false, minLength: 1 }, { id: "subtitle", name: "subtitle", descriptionId: "AR_TP_TIMEPICKER_PROP_SUBTITLE_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: false }, { id: "image", name: "image", descriptionId: "AR_TP_TIMEPICKER_PROP_IMAGE_DSC", type: "img", isCollection: false, isComputed: false, version: "1.0", readOnly: false, displayValue: "AR_TP_TIMEPICKER_PROP_IMAGE_DISP_VAL" }, { id: "address", name: "address", descriptionId: "AR_TP_TIMEPICKER_PROP_ADDRESS_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: false, displayValue: "AR_TP_TIMEPICKER_PROP_ADDRESS_DISP_VAL" }, { id: "longitude", name: "longitude", descriptionId: "AR_TP_TIMEPICKER_PROP_LONGITUDE_DSC", type: "dec", isCollection: false, isComputed: false, version: "1.0", readOnly: false, displayValue: "AR_TP_TIMEPICKER_PROP_LONGITUDE_DISP_VAL" }, { id: "latitude", name: "latitude", descriptionId: "AR_TP_TIMEPICKER_PROP_LATITUDE_DSC", type: "dec", isCollection: false, isComputed: false, version: "1.0", readOnly: false, displayValue: "AR_TP_TIMEPICKER_PROP_LATITUDE_DISP_VAL" }] }, Timeslot: { name: "AR_TP_TIMESLOT", allowArray: true, dataType: "TimeslotDataType", propertiesAllowAssignment: true, support: { classType: "TimeslotVariable", expressionDataType: "tsl", isSupportedByAny: true, userCanCreate: true, supportedFlowTypes: { digitalbot: {} }, version: "1.0", featureConfigName: "botFlowsMessagingDatePicker" }, nativeProperties: [{ id: "dateTime", name: "dateTime", descriptionId: "AR_TP_TIMESLOT_PROP_DTM_DSC", type: "dtm", isCollection: false, isComputed: false, version: "1.0", readOnly: false }, { id: "duration", name: "duration", descriptionId: "AR_TP_TIMESLOT_PROP_DUR_DSC", type: "dur", isCollection: false, isComputed: false, version: "1.0", readOnly: false }] }, WrapupCode: { name: "AR_TP_WRC", allowArray: true, dataType: "WrapupCodeDataType", support: { classType: "WrapupCodeVariable", expressionDataType: "wrc", expressionBaseDataType: "wrc", isSupportedByAny: true, userCanCreate: true, supportedFlowTypes: { inboundcall: {}, inqueuecall: {}, outboundcall: {}, securecall: {}, voicemail: {}, bot: { featureConfigName: "botFlowsDigitalBotFlowsBotSummarization" }, digitalbot: { featureConfigName: "botFlowsDigitalBotFlowsBotSummarization" }, emailsend: {}, inboundchat: {}, inboundemail: {}, inboundshortmessage: {}, commonmodule: { flowInputSingleton: true, flowInputCollection: true, flowOutputSingleton: true, flowOutputCollection: true }, voice: {} }, version: "1.0", featureConfigName: "orgAvailabilityRoutingWrapupCodes" }, nativeProperties: [{ id: "id", name: "id", descriptionId: "AR_TP_WRC_PROP_ID_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: true }, { id: "name", name: "name", descriptionId: "AR_TP_WRC_PROP_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: true }] }, Grammar: { name: "AR_TP_GRAMMAR", allowArray: true, dataType: "GrammarDataType", support: { classType: "GrammarVariable", expressionDataType: "gmr", isSupportedByAny: true, userCanCreate: true, supportedFlowTypes: { bot: {}, commonmodule: {}, voice: {}, voicesurvey: {} }, version: "1.0", featureConfigName: "orgAvailabilityGrammars" }, nativeProperties: [{ id: "id", name: "id", descriptionId: "AR_TP_GRAMMAR_PROP_ID_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: true }, { id: "name", name: "name", descriptionId: "AR_TP_GRAMMAR_PROP_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: true }] }, Group: { name: "AR_TP_GRP", allowArray: true, dataType: "GroupDataType", support: { classType: "GroupVariable", expressionDataType: "grp", expressionBaseDataType: "grp", isSupportedByAny: true, userCanCreate: true, supportedFlowTypes: { inboundcall: {}, inqueuecall: {}, outboundcall: {}, securecall: {}, voicemail: {}, bot: { featureConfigName: "botFlowsAlignTransferActions" }, commonmodule: { flowInputSingleton: true, flowInputCollection: true, flowOutputSingleton: true, flowOutputCollection: true }, digitalbot: { featureConfigName: "botFlowsGroupSupportFeature" }, workflow: { featureConfigName: "sendNotificationChatGroupFeature" }, voice: { featureConfigName: "botFlowsGroupSupportFeature" } }, version: "1.0", featureConfigName: "orgAvailabilityGroups" }, nativeProperties: [{ id: "id", name: "id", descriptionId: "AR_TP_GRP_PROP_ID_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: true }, { id: "name", name: "name", descriptionId: "AR_TP_GRP_PROP_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: true }] }, PhoneNumber: { name: "AR_TP_PHNBR", allowArray: true, dataType: "PhoneNumberDataType", support: { classType: "PhoneNumberVariable", expressionDataType: "phn", expressionBaseDataType: "phn", isSupportedByAny: true, userCanCreate: true, supportedFlowTypes: { emailsend: {}, inboundchat: {}, inboundemail: {}, inboundshortmessage: {}, inqueueemail: {}, inqueueshortmessage: {}, surveyinvite: {}, workflow: {}, workitem: {}, bot: {}, digitalbot: {}, voice: {}, voicesurvey: {}, inboundcall: {}, inqueuecall: {}, outboundcall: {}, securecall: {}, voicemail: {}, commonmodule: { flowInputSingleton: true, flowInputCollection: true, flowOutputSingleton: true, flowOutputCollection: true } }, version: "1.0" }, nativeProperties: [{ id: "dialingCode", name: "dialingCode", descriptionId: "AR_TP_PHNBR_PROP_DIALINGCODE_DSC", type: "str", isCollection: false, isComputed: true, version: "1.0", readOnly: true }, { id: "e164", name: "e164", descriptionId: "AR_TP_PHNBR_PROP_E164_DSC", type: "str", isCollection: false, isComputed: true, version: "1.0", readOnly: true }, { id: "subscriberNumber", name: "subscriberNumber", descriptionId: "AR_TP_PHNBR_PROP_SUBSCRIBERNUMBER_DSC", type: "str", isCollection: false, isComputed: true, version: "1.0", readOnly: true }, { id: "isGlobal", name: "isGlobal", descriptionId: "AR_TP_PHNBR_PROP_ISGLOBAL_DSC", type: "bln", isCollection: false, isComputed: true, version: "1.0", readOnly: true }, { id: "isSip", name: "isSip", descriptionId: "AR_TP_PHNBR_PROP_ISSIP_DSC", type: "bln", isCollection: false, isComputed: true, version: "1.0", readOnly: true }, { id: "isTel", name: "isTel", descriptionId: "AR_TP_PHNBR_PROP_ISTEL_DSC", type: "bln", isCollection: false, isComputed: true, version: "1.0", readOnly: true }, { id: "raw", name: "raw", descriptionId: "AR_TP_PHNBR_PROP_RAW_DSC", type: "str", isCollection: false, isComputed: true, version: "1.0", readOnly: true }, { id: "scheme", name: "scheme", descriptionId: "AR_TP_PHNBR_PROP_SCHEME_DSC", type: "str", isCollection: false, isComputed: true, version: "1.0", readOnly: true }, { id: "uri", name: "uri", descriptionId: "AR_TP_PHNBR_PROP_URI_DSC", type: "str", isCollection: false, isComputed: true, version: "1.0", readOnly: true }] }, EmergencyGroup: { name: "AR_TP_EMERGRP", allowArray: true, dataType: "EmergencyGroupDataType", support: { classType: "EmergencyGroupVariable", expressionDataType: "emg", expressionBaseDataType: "emg", isSupportedByAny: true, userCanCreate: true, supportedFlowTypes: { inboundcall: {}, inqueuecall: {}, outboundcall: {}, securecall: {}, voicemail: {}, emailsend: {}, inboundchat: {}, inboundemail: {}, inboundshortmessage: {}, inqueueemail: {}, inqueueshortmessage: {}, surveyinvite: {}, workflow: {}, workitem: {}, bot: { featureConfigName: "botFlowsScheduleSupportFeature" }, digitalbot: { featureConfigName: "botFlowsScheduleSupportFeature" }, commonmodule: { flowInputSingleton: true, flowInputCollection: true, flowOutputSingleton: true, flowOutputCollection: true }, voice: {} }, version: "1.0", featureConfigName: "orgAvailabilityRoutingEmergencyGroups" }, nativeProperties: [{ id: "id", name: "id", descriptionId: "AR_TP_EMERGRP_PROP_ID_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: true }, { id: "name", name: "name", descriptionId: "AR_TP_EMERGRP_PROP_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: true }] }, Schedule: { name: "AR_TP_SCHED", allowArray: true, dataType: "ScheduleDataType", support: { classType: "ScheduleVariable", expressionDataType: "sch", expressionBaseDataType: "sch", isSupportedByAny: true, userCanCreate: true, supportedFlowTypes: { inboundcall: {}, inqueuecall: {}, outboundcall: {}, securecall: {}, voicemail: {}, emailsend: {}, inboundchat: {}, inboundemail: {}, inboundshortmessage: {}, inqueueemail: {}, inqueueshortmessage: {}, surveyinvite: {}, workflow: {}, workitem: {}, bot: { featureConfigName: "botFlowsScheduleSupportFeature" }, digitalbot: { featureConfigName: "botFlowsScheduleSupportFeature" }, commonmodule: { flowInputSingleton: true, flowInputCollection: true, flowOutputSingleton: true, flowOutputCollection: true }, voice: {} }, version: "1.0", featureConfigName: "orgAvailabilityRoutingSchedules" }, nativeProperties: [{ id: "id", name: "id", descriptionId: "AR_TP_SCHED_PROP_ID_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: true }, { id: "name", name: "name", descriptionId: "AR_TP_SCHED_PROP_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: true }] }, ScheduleGroup: { name: "AR_TP_SCHEDGRP", allowArray: true, dataType: "ScheduleGroupDataType", support: { classType: "ScheduleGroupVariable", expressionDataType: "scg", expressionBaseDataType: "scg", isSupportedByAny: true, userCanCreate: true, supportedFlowTypes: { inboundcall: {}, inqueuecall: {}, outboundcall: {}, securecall: {}, voicemail: {}, emailsend: {}, inboundchat: {}, inboundemail: {}, inboundshortmessage: {}, inqueueemail: {}, inqueueshortmessage: {}, surveyinvite: {}, workflow: {}, workitem: {}, bot: { featureConfigName: "botFlowsScheduleSupportFeature" }, digitalbot: { featureConfigName: "botFlowsScheduleSupportFeature" }, commonmodule: { flowInputSingleton: true, flowInputCollection: true, flowOutputSingleton: true, flowOutputCollection: true }, voice: {} }, version: "1.0", featureConfigName: "orgAvailabilityRoutingScheduleGroups" }, nativeProperties: [{ id: "id", name: "id", descriptionId: "AR_TP_SCHEDGRP_PROP_ID_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: true }, { id: "name", name: "name", descriptionId: "AR_TP_SCHEDGRP_PROP_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: true }, { id: "timeZone", name: "timeZone", descriptionId: "AR_TP_SCHEDGRP_PROP_TIMEZONE_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: true }] }, Any: { name: "AR_TP_ANY", allowArray: true, dataType: "Any", isAbstract: true, support: { expressionDataType: "any", isSupportedByAny: false, userCanCreate: false, supportedFlowTypes: { inboundcall: {}, inqueuecall: {}, outboundcall: {}, securecall: {}, voicemail: {}, emailsend: {}, inboundchat: {}, inboundemail: {}, inboundshortmessage: {}, inqueueemail: {}, inqueueshortmessage: {}, surveyinvite: {}, workflow: {}, workitem: {}, bot: {}, digitalbot: {}, voice: {}, voicesurvey: {}, commonmodule: {} }, version: "1.0" }, nativeProperties: [] }, AnyComplex: { name: "AR_TP_ANYCOMPLEX", allowArray: true, dataType: "AnyComplex", isAbstract: true, support: { expressionDataType: "acp", isSupportedByAny: false, userCanCreate: false, supportedFlowTypes: { inboundcall: {}, inqueuecall: {}, outboundcall: {}, securecall: {}, voicemail: {}, emailsend: {}, inboundchat: {}, inboundemail: {}, inboundshortmessage: {}, inqueueemail: {}, inqueueshortmessage: {}, surveyinvite: {}, workflow: {}, workitem: {}, bot: {}, digitalbot: {}, voice: {}, voicesurvey: {}, commonmodule: {} }, version: "1.0" }, nativeProperties: [] }, AnyPromptOrAudio: { name: "AR_TP_ANYPROMPTORAUDIO", allowArray: true, dataType: "AnyPromptOrAudio", isAbstract: true, support: { expressionDataType: "apa", isSupportedByAny: false, userCanCreate: false, supportedFlowTypes: { inboundcall: {}, inqueuecall: {}, outboundcall: {}, securecall: {}, voicemail: {}, commonmodule: {} }, version: "1.0" }, nativeProperties: [] }, DateFormatEnum: { name: "AR_TP_DATEFORMATENUM", allowArray: false, dataType: "DateFormatEnum", isEnum: true, support: { classType: "DateFormatEnumVariable", expressionDataType: "daf", isSupportedByAny: false, userCanCreate: false, supportedFlowTypes: { bot: {}, digitalbot: {}, voice: {}, voicesurvey: {}, inboundcall: {}, inqueuecall: {}, outboundcall: {}, securecall: {}, voicemail: {}, commonmodule: {} }, version: "1.0" }, nativeProperties: [] }, DateTimeFormatEnum: { name: "AR_TP_DATETIMEFORMATENUM", allowArray: false, dataType: "DateTimeFormatEnum", isEnum: true, support: { classType: "DateTimeFormatEnumVariable", expressionDataType: "dtf", isSupportedByAny: false, userCanCreate: false, supportedFlowTypes: { bot: {}, digitalbot: {}, voice: {}, voicesurvey: {}, inboundcall: {}, inqueuecall: {}, outboundcall: {}, securecall: {}, voicemail: {}, commonmodule: {} }, version: "1.0" }, nativeProperties: [] }, TimeFormatEnum: { name: "AR_TP_TIMEFORMATENUM", allowArray: false, dataType: "TimeFormatEnum", isEnum: true, support: { classType: "TimeFormatEnumVariable", expressionDataType: "tif", isSupportedByAny: false, userCanCreate: false, supportedFlowTypes: { bot: {}, digitalbot: {}, voice: {}, voicesurvey: {}, inboundcall: {}, inqueuecall: {}, outboundcall: {}, securecall: {}, voicemail: {}, commonmodule: {} }, version: "1.0" }, nativeProperties: [] }, BoolFormatEnum: { name: "AR_TP_BOOLFORMATENUM", allowArray: false, dataType: "BoolFormatEnum", isEnum: true, support: { classType: "BoolFormatEnumVariable", expressionDataType: "bof", isSupportedByAny: false, userCanCreate: false, supportedFlowTypes: { bot: {}, digitalbot: {}, voice: {}, voicesurvey: {}, inboundcall: {}, inqueuecall: {}, outboundcall: {}, securecall: {}, voicemail: {}, commonmodule: {} }, version: "1.0" }, nativeProperties: [] }, CurrencyFormatEnum: { name: "AR_TP_CURRENCYFORMATENUM", allowArray: false, dataType: "CurrencyFormatEnum", isEnum: true, support: { classType: "CurrencyFormatEnumVariable", expressionDataType: "cuf", isSupportedByAny: false, userCanCreate: false, supportedFlowTypes: { bot: {}, digitalbot: {}, voice: {}, voicesurvey: {}, inboundcall: {}, inqueuecall: {}, outboundcall: {}, securecall: {}, voicemail: {}, commonmodule: {} }, version: "1.0" }, nativeProperties: [] }, NumberFormatEnum: { name: "AR_TP_NUMBERFORMATENUM", allowArray: false, dataType: "NumberFormatEnum", isEnum: true, support: { classType: "NumberFormatEnumVariable", expressionDataType: "nuf", isSupportedByAny: false, userCanCreate: false, supportedFlowTypes: { bot: {}, digitalbot: {}, voice: {}, voicesurvey: {}, inboundcall: {}, inqueuecall: {}, outboundcall: {}, securecall: {}, voicemail: {}, commonmodule: {} }, version: "1.0" }, nativeProperties: [] }, PhoneNumberFormatEnum: { name: "AR_TP_PHONENUMBERFORMATENUM", allowArray: false, dataType: "PhoneNumberFormatEnum", isEnum: true, support: { classType: "PhoneNumberFormatEnumVariable", expressionDataType: "phf", isSupportedByAny: false, userCanCreate: false, supportedFlowTypes: { inboundcall: {}, inqueuecall: {}, outboundcall: {}, securecall: {}, voicemail: {}, commonmodule: {} }, version: "1.0", featureToggleName: "archPhoneNumberPhase2" }, nativeProperties: [] }, LanguageContextEnum: { name: "AR_TP_LANGUAGECONTEXTENUM", allowArray: false, dataType: "LanguageContextEnum", isAbstract: true, isEnum: true, support: { classType: "LanguageContextEnumVariable", expressionDataType: "lne", isSupportedByAny: false, userCanCreate: false, supportedFlowTypes: { bot: { featureConfigName: "botFlowsLanguageContextPhase1Feature" }, digitalbot: { featureConfigName: "botFlowsLanguageContextPhase1Feature" }, voice: { featureConfigName: "botFlowsLanguageContextPhase1Feature" }, voicesurvey: { featureConfigName: "botFlowsLanguageContextPhase1Feature" }, inboundcall: {}, inqueuecall: {}, outboundcall: {}, securecall: {}, voicemail: {}, commonmodule: {} }, version: "1.0" }, nativeProperties: [] }, StringFormatEnum: { name: "AR_TP_STRINGFORMATENUM", allowArray: false, dataType: "StringFormatEnum", isEnum: true, support: { classType: "StringFormatEnumVariable", expressionDataType: "stf", isSupportedByAny: false, userCanCreate: false, supportedFlowTypes: { bot: {}, digitalbot: {}, voice: {}, voicesurvey: {}, inboundcall: {}, inqueuecall: {}, outboundcall: {}, securecall: {}, voicemail: {}, commonmodule: {} }, version: "1.0" }, nativeProperties: [] }, DateFormatEnumContainer: { name: "AR_TP_DATEFORMATENUMCONTAINER", allowArray: false, dataType: "DateFormatEnumContainer", isEnumContainer: true, support: { classType: "DateFormatEnumContainerVariable", expressionDataType: "dac", isSupportedByAny: false, userCanCreate: false, supportedFlowTypes: { bot: {}, digitalbot: {}, voice: {}, voicesurvey: {}, inboundcall: {}, inqueuecall: {}, outboundcall: {}, securecall: {}, voicemail: {}, commonmodule: {} }, version: "1.0" }, nativeProperties: [{ id: "dateLongYear", name: "longYear", descriptionId: "AR_TP_DATEFORMATENUMCONTAINER_PROP_LONGYEAR_DSC", type: "daf", isCollection: false, isComputed: false, version: "1.0", readOnly: true, displayValue: "AR_TP_DATEFORMATENUMCONTAINER_PROP_LONGYEAR_DISP_VAL" }, { id: "dateShortYear", name: "shortYear", descriptionId: "AR_TP_DATEFORMATENUMCONTAINER_PROP_SHORTYEAR_DSC", type: "daf", isCollection: false, isComputed: false, version: "1.0", readOnly: true, displayValue: "AR_TP_DATEFORMATENUMCONTAINER_PROP_SHORTYEAR_DISP_VAL" }, { id: "dateShortMonthAndDay", name: "shortMonthAndDay", descriptionId: "AR_TP_DATEFORMATENUMCONTAINER_PROP_SHORTMONTHANDDAY_DSC", type: "daf", isCollection: false, isComputed: false, version: "1.0", readOnly: true, displayValue: "AR_TP_DATEFORMATENUMCONTAINER_PROP_SHORTMONTHANDDAY_DISP_VAL" }, { id: "dateDayOfWeekOnly", name: "dayOfWeekOnly", descriptionId: "AR_TP_DATEFORMATENUMCONTAINER_PROP_DAYOFWEEKONLY_DSC", type: "daf", isCollection: false, isComputed: false, version: "1.0", readOnly: true, displayValue: "AR_TP_DATEFORMATENUMCONTAINER_PROP_DAYOFWEEKONLY_DISP_VAL" }, { id: "dateDayOnly", name: "dayOnly", descriptionId: "AR_TP_DATEFORMATENUMCONTAINER_PROP_DAYONLY_DSC", type: "daf", isCollection: false, isComputed: false, version: "1.0", readOnly: true, displayValue: "AR_TP_DATEFORMATENUMCONTAINER_PROP_DAYONLY_DISP_VAL" }, { id: "dateMonthOnly", name: "monthOnly", descriptionId: "AR_TP_DATEFORMATENUMCONTAINER_PROP_MONTHONLY_DSC", type: "daf", isCollection: false, isComputed: false, version: "1.0", readOnly: true, displayValue: "AR_TP_DATEFORMATENUMCONTAINER_PROP_MONTHONLY_DISP_VAL" }, { id: "dateShortYearOnly", name: "shortYearOnly", descriptionId: "AR_TP_DATEFORMATENUMCONTAINER_PROP_SHORTYEARONLY_DSC", type: "daf", isCollection: false, isComputed: false, version: "1.0", readOnly: true, displayValue: "AR_TP_DATEFORMATENUMCONTAINER_PROP_SHORTYEARONLY_DISP_VAL" }, { id: "dateLongYearOnly", name: "longYearOnly", descriptionId: "AR_TP_DATEFORMATENUMCONTAINER_PROP_LONGYEARONLY_DSC", type: "daf", isCollection: false, isComputed: false, version: "1.0", readOnly: true, displayValue: "AR_TP_DATEFORMATENUMCONTAINER_PROP_LONGYEARONLY_DISP_VAL" }] }, SkillExpressionFilter: { name: "AR_TP_SKILLEXPRESSIONFILTER", allowArray: true, additionalProperties: "false", dataType: "JsonDataType", support: { classType: "JsonVariable", expressionDataType: "jsn__architect::skill_expression_filter", expressionBaseDataType: "jsn", isSupportedByAny: true, userCanCreate: true, supportedFlowTypes: { inboundcall: {}, inqueuecall: {}, outboundcall: {}, securecall: {}, voicemail: {}, commonmodule: {}, emailsend: {}, inboundemail: {}, inboundshortmessage: {}, inqueueemail: {}, inqueueshortmessage: {} }, version: "1.0", featureConfigName: "routingSkillExpressionsFeature" }, nativeProperties: [{ id: "raw", name: "raw", descriptionId: "AR_TP_SKILLEXPRESSIONFILTER_PROP_RAW_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: true }, { id: "normalized", name: "normalized", descriptionId: "AR_TP_SKILLEXPRESSIONFILTER_PROP_NORMALIZED_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: true }, { id: "acdSkills", name: "acdSkills", descriptionId: "AR_TP_SKILLEXPRESSIONFILTER_PROP_ACDSKILLS_DSC", type: "skl", isCollection: true, isComputed: false, version: "1.0", readOnly: true }, { id: "languageSkills", name: "languageSkills", descriptionId: "AR_TP_SKILLEXPRESSIONFILTER_PROP_LANGUAGESKILLS_DSC", type: "lac", isCollection: true, isComputed: false, version: "1.0", readOnly: true }, { id: "errors", name: "errors", descriptionId: "AR_TP_SKILLEXPRESSIONFILTER_PROP_ERRORS_DSC", type: "jsn__architect::issue_info", isCollection: true, isComputed: false, version: "1.0", readOnly: true, issueInfoTypes: ["INVALID_CHARACTERS", "LIMITS_EXCEEDED", "SYNTAX_ERROR", "UNKNOWN_SKILL"] }] }, IssueInfo: { name: "AR_TP_ISSUEINFO", allowArray: true, additionalProperties: "false", dataType: "JsonDataType", support: { classType: "JsonVariable", expressionDataType: "jsn__architect::issue_info", expressionBaseDataType: "jsn", isSupportedByAny: true, userCanCreate: true, supportedFlowTypes: { inboundcall: {}, inqueuecall: {}, outboundcall: {}, securecall: {}, voicemail: {}, commonmodule: {}, emailsend: {}, inboundemail: {}, inboundshortmessage: {}, inqueueemail: {}, inqueueshortmessage: {} }, version: "1.0", featureConfigName: "routingSkillExpressionsFeature" }, nativeProperties: [{ id: "type", name: "type", descriptionId: "AR_TP_ISSUEINFO_PROP_TYPE_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: true }, { id: "message", name: "message", descriptionId: "AR_TP_ISSUEINFO_PROP_MESSAGE_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: true }] }, BoolFormatEnumContainer: { name: "AR_TP_BOOLFORMATENUMCONTAINER", allowArray: false, dataType: "BoolFormatEnumContainer", isEnumContainer: true, support: { classType: "BoolFormatEnumContainerVariable", expressionDataType: "blc", isSupportedByAny: false, userCanCreate: false, supportedFlowTypes: { bot: {}, digitalbot: {}, voice: {}, voicesurvey: {}, inboundcall: {}, inqueuecall: {}, outboundcall: {}, securecall: {}, voicemail: {}, commonmodule: {} }, version: "1.0" }, nativeProperties: [{ id: "boolPlayYesNo", name: "playYesNo", descriptionId: "AR_TP_BOOLFORMATENUMCONTAINER_PROP_PLAYYESNO_DSC", type: "bof", isCollection: false, isComputed: false, version: "1.0", readOnly: true, displayValue: "AR_TP_BOOLFORMATENUMCONTAINER_PROP_PLAYYESNO_DISP_VAL" }] }, TimeFormatEnumContainer: { name: "AR_TP_TIMEFORMATENUMCONTAINER", allowArray: false, dataType: "TimeFormatEnumContainer", isEnumContainer: true, support: { classType: "TimeFormatEnumContainerVariable", expressionDataType: "tic", isSupportedByAny: false, userCanCreate: false, supportedFlowTypes: { bot: {}, digitalbot: {}, voice: {}, voicesurvey: {}, inboundcall: {}, inqueuecall: {}, outboundcall: {}, securecall: {}, voicemail: {}, commonmodule: {} }, version: "1.0" }, nativeProperties: [{ id: "timeTwentyFourHours", name: "twentyFourHours", descriptionId: "AR_TP_TIMEFORMATENUMCONTAINER_PROP_TWENTYFOURHOURS_DSC", type: "tif", isCollection: false, isComputed: false, version: "1.0", readOnly: true, displayValue: "AR_TP_TIMEFORMATENUMCONTAINER_PROP_TWENTYFOURHOURS_DISP_VAL" }, { id: "timeTwelveHours", name: "twelveHours", descriptionId: "AR_TP_TIMEFORMATENUMCONTAINER_PROP_TWELVEHOURS_DSC", type: "tif", isCollection: false, isComputed: false, version: "1.0", readOnly: true, displayValue: "AR_TP_TIMEFORMATENUMCONTAINER_PROP_TWELVEHOURS_DISP_VAL" }] }, CurrencyFormatEnumContainer: { name: "AR_TP_CURRENCYFORMATENUMCONTAINER", allowArray: false, dataType: "CurrencyFormatEnumContainer", isEnumContainer: true, support: { classType: "CurrencyFormatEnumContainerVariable", expressionDataType: "cuc", isSupportedByAny: false, userCanCreate: false, supportedFlowTypes: { bot: {}, digitalbot: {}, voice: {}, voicesurvey: {}, inboundcall: {}, inqueuecall: {}, outboundcall: {}, securecall: {}, voicemail: {}, commonmodule: {} }, version: "1.0" }, nativeProperties: [{ id: "currencyAsMinorUnits", name: "asMinorUnits", descriptionId: "AR_TP_CURRENCYFORMATENUMCONTAINER_PROP_ASMINORUNITS_DSC", type: "cuf", isCollection: false, isComputed: false, version: "1.0", readOnly: true, displayValue: "AR_TP_CURRENCYFORMATENUMCONTAINER_PROP_ASMINORUNITS_DISP_VAL" }, { id: "currencyMajorUnitsOnly", name: "majorUnitsOnly", descriptionId: "AR_TP_CURRENCYFORMATENUMCONTAINER_PROP_MAJORUNITSONLY_DSC", type: "cuf", isCollection: false, isComputed: false, version: "1.0", readOnly: true, displayValue: "AR_TP_CURRENCYFORMATENUMCONTAINER_PROP_MAJORUNITSONLY_DISP_VAL" }, { id: "currencyMinorUnitsOnly", name: "minorUnitsOnly", descriptionId: "AR_TP_CURRENCYFORMATENUMCONTAINER_PROP_MINORUNITSONLY_DSC", type: "cuf", isCollection: false, isComputed: false, version: "1.0", readOnly: true, displayValue: "AR_TP_CURRENCYFORMATENUMCONTAINER_PROP_MINORUNITSONLY_DISP_VAL" }, { id: "currencyPlayDigits", name: "playDigits", descriptionId: "AR_TP_CURRENCYFORMATENUMCONTAINER_PROP_PLAYDIGITS_DSC", type: "cuf", isCollection: false, isComputed: false, version: "1.0", readOnly: true, displayValue: "AR_TP_CURRENCYFORMATENUMCONTAINER_PROP_PLAYDIGITS_DISP_VAL" }] }, NumberFormatEnumContainer: { name: "AR_TP_NUMBERFORMATENUMCONTAINER", allowArray: false, dataType: "NumberFormatEnumContainer", isEnumContainer: true, support: { classType: "NumberFormatEnumContainerVariable", expressionDataType: "nuc", isSupportedByAny: false, userCanCreate: false, supportedFlowTypes: { bot: {}, digitalbot: {}, voice: {}, voicesurvey: {}, inboundcall: {}, inqueuecall: {}, outboundcall: {}, securecall: {}, voicemail: {}, commonmodule: {} }, version: "1.0" }, nativeProperties: [{ id: "numberPlayDigits", name: "playDigits", descriptionId: "AR_TP_NUMBERFORMATENUMCONTAINER_PROP_PLAYDIGITS_DSC", type: "nuf", isCollection: false, isComputed: false, version: "1.0", readOnly: true, displayValue: "AR_TP_NUMBERFORMATENUMCONTAINER_PROP_PLAYDIGITS_DISP_VAL" }] }, PhoneNumberFormatEnumContainer: { name: "AR_TP_PHONENUMBERFORMATENUMCONTAINER", allowArray: false, dataType: "PhoneNumberFormatEnumContainer", isEnumContainer: true, support: { classType: "PhoneNumberFormatEnumContainerVariable", expressionDataType: "phc", isSupportedByAny: false, userCanCreate: false, supportedFlowTypes: { inboundcall: {}, inqueuecall: {}, outboundcall: {}, securecall: {}, voicemail: {}, commonmodule: {} }, version: "1.0", featureToggleName: "archPhoneNumberPhase2" }, nativeProperties: [{ id: "phoneNumberGlobal", name: "global", descriptionId: "AR_TP_PHONENUMBERFORMATENUMCONTAINER_PROP_GLOBAL_DSC", type: "phf", isCollection: false, isComputed: false, version: "1.0", readOnly: true, displayValue: "AR_TP_PHONENUMBERFORMATENUMCONTAINER_PROP_GLOBAL_DISP_VAL" }, { id: "phoneNumberLocal", name: "local", descriptionId: "AR_TP_PHONENUMBERFORMATENUMCONTAINER_PROP_LOCAL_DSC", type: "phf", isCollection: false, isComputed: false, version: "1.0", readOnly: true, displayValue: "AR_TP_PHONENUMBERFORMATENUMCONTAINER_PROP_LOCAL_DISP_VAL" }] }, StringFormatEnumContainer: { name: "AR_TP_STRINGFORMATENUMCONTAINER", allowArray: false, dataType: "StringFormatEnumContainer", isEnumContainer: true, support: { classType: "StringFormatEnumContainerVariable", expressionDataType: "stc", isSupportedByAny: false, userCanCreate: false, supportedFlowTypes: { bot: {}, digitalbot: {}, voice: {}, voicesurvey: {}, inboundcall: {}, inqueuecall: {}, outboundcall: {}, securecall: {}, voicemail: {}, commonmodule: {} }, version: "1.0" }, nativeProperties: [{ id: "stringPlayChars", name: "playChars", descriptionId: "AR_TP_STRINGFORMATENUMCONTAINER_PROP_PLAYCHARS_DSC", type: "stf", isCollection: false, isComputed: false, version: "1.0", readOnly: true, displayValue: "AR_TP_STRINGFORMATENUMCONTAINER_PROP_PLAYCHARS_DISP_VAL" }] }, LanguageQuantityEnumContainer: { name: "AR_TP_LANGUAGEQUANTITYENUMCONTAINER", allowArray: false, dataType: "LanguageQuantityEnumContainer", isEnumContainer: true, support: { classType: "LanguageQuantityEnumContainerVariable", expressionDataType: "lqc", isSupportedByAny: false, userCanCreate: false, supportedFlowTypes: { bot: { featureConfigName: "botFlowsLanguageContextPhase1Feature" }, digitalbot: { featureConfigName: "botFlowsLanguageContextPhase1Feature" }, voice: { featureConfigName: "botFlowsLanguageContextPhase1Feature" }, voicesurvey: { featureConfigName: "botFlowsLanguageContextPhase1Feature" }, inboundcall: {}, inqueuecall: {}, outboundcall: {}, securecall: {}, voicemail: {}, commonmodule: {} }, version: "1.0" }, nativeProperties: [{ id: "quantityPlural", name: "plural", descriptionId: "AR_TP_LANGUAGEQUANTITYENUMCONTAINER_PROP_PLURAL_DSC", type: "lne", isCollection: false, isComputed: false, version: "1.0", readOnly: true, group: "langQuantity", usageValidation: "supportedLanguageContexts", displayValue: "AR_TP_LANGUAGEQUANTITYENUMCONTAINER_PROP_PLURAL_DISP_VAL" }, { id: "quantitySingular", name: "singular", descriptionId: "AR_TP_LANGUAGEQUANTITYENUMCONTAINER_PROP_SINGULAR_DSC", type: "lne", isCollection: false, isComputed: false, version: "1.0", readOnly: true, group: "langQuantity", usageValidation: "supportedLanguageContexts", displayValue: "AR_TP_LANGUAGEQUANTITYENUMCONTAINER_PROP_SINGULAR_DISP_VAL" }] }, LanguageCaseEnumContainer: { name: "AR_TP_LANGUAGECASEENUMCONTAINER", allowArray: false, dataType: "LanguageCaseEnumContainer", isEnumContainer: true, support: { classType: "LanguageCaseEnumContainerVariable", expressionDataType: "lcc", isSupportedByAny: false, userCanCreate: false, supportedFlowTypes: { bot: { featureConfigName: "botFlowsLanguageContextPhase1Feature" }, digitalbot: { featureConfigName: "botFlowsLanguageContextPhase1Feature" }, voice: { featureConfigName: "botFlowsLanguageContextPhase1Feature" }, voicesurvey: { featureConfigName: "botFlowsLanguageContextPhase1Feature" }, inboundcall: {}, inqueuecall: {}, outboundcall: {}, securecall: {}, voicemail: {}, commonmodule: {} }, version: "1.0" }, nativeProperties: [{ id: "caseArticle", name: "article", descriptionId: "AR_TP_LANGUAGECASEENUMCONTAINER_PROP_ARTICLE_DSC", type: "lne", isCollection: false, isComputed: false, version: "1.0", readOnly: true, group: "langCase", usageValidation: "supportedLanguageContexts", displayValue: "AR_TP_LANGUAGECASEENUMCONTAINER_PROP_ARTICLE_DISP_VAL" }, { id: "caseAccusative", name: "accusative", descriptionId: "AR_TP_LANGUAGECASEENUMCONTAINER_PROP_ACCUSATIVE_DSC", type: "lne", isCollection: false, isComputed: false, version: "1.0", readOnly: true, group: "langCase", usageValidation: "supportedLanguageContexts", displayValue: "AR_TP_LANGUAGECASEENUMCONTAINER_PROP_ACCUSATIVE_DISP_VAL" }, { id: "caseDative", name: "dative", descriptionId: "AR_TP_LANGUAGECASEENUMCONTAINER_PROP_DATIVE_DSC", type: "lne", isCollection: false, isComputed: false, version: "1.0", readOnly: true, group: "langCase", usageValidation: "supportedLanguageContexts", displayValue: "AR_TP_LANGUAGECASEENUMCONTAINER_PROP_DATIVE_DISP_VAL" }, { id: "caseGenitive", name: "genitive", descriptionId: "AR_TP_LANGUAGECASEENUMCONTAINER_PROP_GENITIVE_DSC", type: "lne", isCollection: false, isComputed: false, version: "1.0", readOnly: true, group: "langCase", usageValidation: "supportedLanguageContexts", displayValue: "AR_TP_LANGUAGECASEENUMCONTAINER_PROP_GENITIVE_DISP_VAL" }, { id: "caseNominative", name: "nominative", descriptionId: "AR_TP_LANGUAGECASEENUMCONTAINER_PROP_NOMINATIVE_DSC", type: "lne", isCollection: false, isComputed: false, version: "1.0", readOnly: true, group: "langCase", usageValidation: "supportedLanguageContexts", displayValue: "AR_TP_LANGUAGECASEENUMCONTAINER_PROP_NOMINATIVE_DISP_VAL" }] }, LanguageGenderEnumContainer: { name: "AR_TP_LANGUAGEGENDERENUMCONTAINER", allowArray: false, dataType: "LanguageGenderEnumContainer", isEnumContainer: true, support: { classType: "LanguageGenderEnumContainerVariable", expressionDataType: "lgc", isSupportedByAny: false, userCanCreate: false, supportedFlowTypes: { bot: { featureConfigName: "botFlowsLanguageContextPhase1Feature" }, digitalbot: { featureConfigName: "botFlowsLanguageContextPhase1Feature" }, voice: { featureConfigName: "botFlowsLanguageContextPhase1Feature" }, voicesurvey: { featureConfigName: "botFlowsLanguageContextPhase1Feature" }, inboundcall: {}, inqueuecall: {}, outboundcall: {}, securecall: {}, voicemail: {}, commonmodule: {} }, version: "1.0" }, nativeProperties: [{ id: "genderCommon", name: "common", descriptionId: "AR_TP_LANGUAGEGENDERENUMCONTAINER_PROP_COMMON_DSC", type: "lne", isCollection: false, isComputed: false, version: "1.0", readOnly: true, group: "langGender", usageValidation: "supportedLanguageContexts", displayValue: "AR_TP_LANGUAGEGENDERENUMCONTAINER_PROP_COMMON_DISP_VAL" }, { id: "genderFeminine", name: "feminine", descriptionId: "AR_TP_LANGUAGEGENDERENUMCONTAINER_PROP_FEMININE_DSC", type: "lne", isCollection: false, isComputed: false, version: "1.0", readOnly: true, group: "langGender", usageValidation: "supportedLanguageContexts", displayValue: "AR_TP_LANGUAGEGENDERENUMCONTAINER_PROP_FEMININE_DISP_VAL" }, { id: "genderMasculine", name: "masculine", descriptionId: "AR_TP_LANGUAGEGENDERENUMCONTAINER_PROP_MASCULINE_DSC", type: "lne", isCollection: false, isComputed: false, version: "1.0", readOnly: true, group: "langGender", usageValidation: "supportedLanguageContexts", displayValue: "AR_TP_LANGUAGEGENDERENUMCONTAINER_PROP_MASCULINE_DISP_VAL" }, { id: "genderNeuter", name: "neuter", descriptionId: "AR_TP_LANGUAGEGENDERENUMCONTAINER_PROP_NEUTER_DSC", type: "lne", isCollection: false, isComputed: false, version: "1.0", readOnly: true, group: "langGender", usageValidation: "supportedLanguageContexts", displayValue: "AR_TP_LANGUAGEGENDERENUMCONTAINER_PROP_NEUTER_DISP_VAL" }] }, LanguageSkill: { name: "AR_TP_LANGUAGESKILL", allowArray: true, dataType: "LanguageSkill", support: { classType: "LanguageSkillVariable", expressionDataType: "lac", isSupportedByAny: true, userCanCreate: true, supportedFlowTypes: { emailsend: { featureConfigName: "orgAvailabilityRoutingSkills" }, inboundchat: { featureConfigName: "orgAvailabilityRoutingSkills" }, inboundemail: { featureConfigName: "orgAvailabilityRoutingSkills" }, inboundshortmessage: { featureConfigName: "orgAvailabilityRoutingSkills" }, inqueueemail: { featureConfigName: "orgAvailabilityRoutingSkills" }, inqueueshortmessage: { featureConfigName: "orgAvailabilityRoutingSkills" }, surveyinvite: { featureConfigName: "orgAvailabilityRoutingSkills" }, workflow: { featureConfigName: "orgAvailabilityRoutingSkills" }, workitem: { featureConfigName: "orgAvailabilityRoutingSkills" }, inboundcall: {}, inqueuecall: {}, outboundcall: {}, securecall: {}, voicemail: {}, bot: { featureConfigName: "orgAvailabilityRoutingSkills", featureConfigName2: "botFlowsQueueSupportFeature", featureConfigsAllOf: true }, commonmodule: { flowInputSingleton: true, flowInputCollection: true, flowOutputSingleton: true, flowOutputCollection: true }, digitalbot: { featureConfigName: "orgAvailabilityRoutingSkills", featureConfigName2: "botFlowsQueueSupportFeature", featureConfigsAllOf: true }, voice: { featureConfigName: "orgAvailabilityRoutingSkills" } }, version: "1.0" }, nativeProperties: [{ id: "id", name: "id", descriptionId: "AR_TP_LANGUAGESKILL_PROP_ID_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: true }, { id: "name", name: "name", descriptionId: "AR_TP_LANGUAGESKILL_PROP_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: true }] }, ContactList: { name: "AR_TP_CONTACTLIST", allowArray: false, dataType: "ContactList", support: { classType: "ContactListVariable", expressionDataType: "cnl", isSupportedByAny: true, userCanCreate: false, supportedFlowTypes: { inboundemail: { featureConfigName: "outboundEmailCampaigns" }, inboundshortmessage: {}, commonmodule: {}, outboundcall: {} }, version: "1.0", featureConfigName: "orgAvailabilityOutboundContactLists" }, nativeProperties: [{ id: "id", name: "id", descriptionId: "AR_TP_CONTACTLIST_PROP_ID_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: true }, { id: "name", name: "name", descriptionId: "AR_TP_CONTACTLIST_PROP_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: true }] }, Campaign: { name: "AR_TP_CAMPAIGN", allowArray: false, dataType: "Campaign", support: { classType: "CampaignVariable", expressionDataType: "cam", isSupportedByAny: true, userCanCreate: false, supportedFlowTypes: { commonmodule: {}, inboundemail: { featureConfigName: "outboundEmailCampaigns" }, inboundshortmessage: {}, outboundcall: {} }, version: "1.0" }, nativeProperties: [{ id: "id", name: "id", descriptionId: "AR_TP_CAMPAIGN_PROP_ID_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: true }, { id: "name", name: "name", descriptionId: "AR_TP_CAMPAIGN_PROP_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: true }] }, Contact: { name: "AR_TP_CONTACT", allowArray: false, dataType: "Contact", support: { classType: "ContactVariable", expressionDataType: "con", isSupportedByAny: true, userCanCreate: false, supportedFlowTypes: { outboundcall: {}, commonmodule: {} }, version: "1.0" }, nativeProperties: [] }, WorkitemEventData: { name: "AR_TP_WORKITEMEVENTDATA", allowArray: false, dataType: "JsonDataType", support: { classType: "JsonVariable", expressionDataType: "jsn__architect::workitem_event_data", expressionBaseDataType: "jsn", isSupportedByAny: true, userCanCreate: true, supportedFlowTypes: { workitem: {} }, version: "1.0", featureConfigName: "workitemDateAutomationFeature" }, nativeProperties: [{ id: "rule", name: "rule", descriptionId: "AR_TP_WORKITEMEVENTDATA_PROP_RULE_DSC", type: "jsn__architect::workitem_event_rule", isCollection: false, isComputed: false, version: "1.0", readOnly: false, featureConfigName: "workitemDateAutomationFeature" }] }, WorkitemEventRule: { name: "AR_TP_WORKITEMEVENTRULE", allowArray: false, dataType: "JsonDataType", support: { classType: "JsonVariable", expressionDataType: "jsn__architect::workitem_event_rule", expressionBaseDataType: "jsn", isSupportedByAny: true, userCanCreate: true, supportedFlowTypes: { workitem: {} }, version: "1.0", featureConfigName: "workitemDateAutomationFeature" }, nativeProperties: [{ id: "name", name: "name", descriptionId: "AR_TP_WORKITEMEVENTRULE_PROP_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: false, featureConfigName: "workitemDateAutomationFeature" }] }, Workitem: { name: "AR_TP_WORKITEM", allowArray: false, dataType: "ComplexDataType", isCustomizablePerFlow: true, support: { classType: "ComplexVariable", expressionDataType: "cpx_workitem", isSupportedByAny: true, userCanCreate: false, supportedFlowTypes: { workitem: {} }, version: "1.0" }, nativeProperties: [{ id: "id", name: "id", descriptionId: "AR_TP_WORKITEM_PROP_ID_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: true }, { id: "name", name: "name", descriptionId: "AR_TP_WORKITEM_PROP_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: false }, { id: "assignee", name: "assignee", descriptionId: "AR_TP_WORKITEM_PROP_ASSIGNEE_DSC", type: "usr", isCollection: false, isComputed: false, version: "1.0", readOnly: false }, { id: "assignmentState", name: "assignmentState", descriptionId: "AR_TP_WORKITEM_PROP_ASSIGNMENTSTATE_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: true }, { id: "autoStatusTransition", name: "autoStatusTransition", descriptionId: "AR_TP_WORKITEM_PROP_AUTOSTATUSTRANSITION_DSC", type: "bln", isCollection: false, isComputed: false, version: "1.0", readOnly: true }, { id: "customFields", name: "customFields", descriptionId: "AR_TP_WORKITEM_PROP_CUSTOMFIELDS_DSC", type: "jsn__architect::empty_json", isCollection: false, isComputed: false, version: "1.0", readOnly: false }, { id: "dateCreated", name: "dateCreated", descriptionId: "AR_TP_WORKITEM_PROP_DATECREATED_DSC", type: "dtm", isCollection: false, isComputed: false, version: "1.0", readOnly: true }, { id: "dateAssignmentStateChanged", name: "dateAssignmentStateChanged", descriptionId: "AR_TP_WORKITEM_PROP_DATEASSIGNMENTSTATECHANGED_DSC", type: "dtm", isCollection: false, isComputed: false, version: "1.0", readOnly: true }, { id: "dateDue", name: "dateDue", descriptionId: "AR_TP_WORKITEM_PROP_DATEDUE_DSC", type: "dtm", isCollection: false, isComputed: false, version: "1.0", readOnly: false }, { id: "dateExpires", name: "dateExpires", descriptionId: "AR_TP_WORKITEM_PROP_DATEEXPIRES_DSC", type: "dtm", isCollection: false, isComputed: false, version: "1.0", readOnly: false }, { id: "dateModified", name: "dateModified", descriptionId: "AR_TP_WORKITEM_PROP_DATEMODIFIED_DSC", type: "dtm", isCollection: false, isComputed: false, version: "1.0", readOnly: true }, { id: "dateStatusChanged", name: "dateStatusChanged", descriptionId: "AR_TP_WORKITEM_PROP_DATESTATUSCHANGED_DSC", type: "dtm", isCollection: false, isComputed: false, version: "1.0", readOnly: true }, { id: "dateClosed", name: "dateClosed", descriptionId: "AR_TP_WORKITEM_PROP_DATECLOSED_DSC", type: "dtm", isCollection: false, isComputed: false, version: "1.0", readOnly: true }, { id: "description", name: "description", descriptionId: "AR_TP_WORKITEM_PROP_DESCRIPTION_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: false }, { id: "duration", name: "duration", descriptionId: "AR_TP_WORKITEM_PROP_DUR_DSC", type: "dur", isCollection: false, isComputed: false, version: "1.0", readOnly: true }, { id: "divisionId", name: "divisionId", descriptionId: "AR_TP_WORKITEM_PROP_DIVISIONID_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: true }, { id: "externalContact", name: "externalContact", descriptionId: "AR_TP_WORKITEM_PROP_EXTERNALCONTACT_DSC", type: "cpx_external_contact", isCollection: false, isComputed: false, version: "1.0", readOnly: false }, { id: "externalTag", name: "externalTag", descriptionId: "AR_TP_WORKITEM_PROP_EXTERNALTAG_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: false }, { id: "languageSkill", name: "languageSkill", descriptionId: "AR_TP_WORKITEM_PROP_LANGUAGESKILL_DSC", type: "lac", isCollection: false, isComputed: false, version: "1.0", readOnly: false }, { id: "modifiedBy", name: "modifiedBy", descriptionId: "AR_TP_WORKITEM_PROP_MODIFIEDBY_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: true }, { id: "priority", name: "priority", descriptionId: "AR_TP_WORKITEM_PROP_PRIORITY_DSC", type: "int", isCollection: false, isComputed: false, version: "1.0", readOnly: false }, { id: "queue", name: "queue", descriptionId: "AR_TP_WORKITEM_PROP_QUEUE_DSC", type: "que", isCollection: false, isComputed: false, version: "1.0", readOnly: false }, { id: "reporter", name: "reporter", descriptionId: "AR_TP_WORKITEM_PROP_REPORTER_DSC", type: "usr", isCollection: false, isComputed: false, version: "1.0", readOnly: true }, { id: "scoredAgents", name: "scoredAgents", descriptionId: "AR_TP_WORKITEM_PROP_SCOREDAGENTS_DSC", type: "cpx_agent_score_pair", isCollection: true, isComputed: false, version: "1.0", readOnly: false }, { id: "skills", name: "skills", descriptionId: "AR_TP_WORKITEM_PROP_SKILLS_DSC", type: "skl", isCollection: true, isComputed: false, version: "1.0", readOnly: false }, { id: "status", name: "status", descriptionId: "AR_TP_WORKITEM_PROP_STATUS_DSC", type: "cpx_worktype_status", isCollection: false, isComputed: false, version: "1.0", readOnly: false }, { id: "ttlDateTime", name: "ttlDateTime", descriptionId: "AR_TP_WORKITEM_PROP_TTLDATETIME_DSC", type: "dtm", isCollection: false, isComputed: false, version: "1.0", readOnly: false }, { id: "typeId", name: "typeId", descriptionId: "AR_TP_WORKITEM_PROP_TYPEID_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: true }, { id: "utilizationLabel", name: "utilizationLabel", descriptionId: "AR_TP_WORKITEM_PROP_UTILIZATIONLABEL_DSC", type: "cul", isCollection: false, isComputed: false, version: "1.0", readOnly: false }, { id: "version", name: "version", descriptionId: "AR_TP_WORKITEM_PROP_VERSION_DSC", type: "int", isCollection: false, isComputed: false, version: "1.0", readOnly: true }, { id: "workbin", name: "workbin", descriptionId: "AR_TP_WORKITEM_PROP_WORKBIN_DSC", type: "cpx_workbin", isCollection: false, isComputed: false, version: "1.0", readOnly: true }] }, Workbin: { name: "AR_TP_WORKBIN", allowArray: true, dataType: "ComplexDataType", support: { classType: "ComplexVariable", expressionDataType: "cpx_workbin", isSupportedByAny: true, userCanCreate: true, supportedFlowTypes: { commonmodule: { flowInputSingleton: true, flowInputCollection: true, flowOutputSingleton: true, flowOutputCollection: true }, workitem: {} }, version: "1.0" }, nativeProperties: [{ id: "id", name: "id", descriptionId: "AR_TP_WORKBIN_PROP_ID_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: true }, { id: "name", name: "name", descriptionId: "AR_TP_WORKBIN_PROP_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: true }, { id: "divisionId", name: "divisionId", descriptionId: "AR_TP_WORKBIN_PROP_DIVISIONID_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: true }] }, WorktypeStatus: { name: "AR_TP_WORKTYPESTATUS", allowArray: true, allowLiteralSelect: true, allowLiteralSelectFeatureConfig: "workitemDateAutomationFeature", additionalProperties: "category", dataType: "ComplexDataType", additionalPropertiesAreManaged: true, support: { classType: "ComplexVariable", expressionDataType: "cpx_worktype_status", isSupportedByAny: true, userCanCreate: true, supportedFlowTypes: { commonmodule: { flowInputSingleton: true, flowInputCollection: true, flowOutputSingleton: true, flowOutputCollection: true }, workitem: {} }, version: "1.0" }, nativeProperties: [{ id: "id", name: "id", descriptionId: "AR_TP_WORKTYPESTATUS_PROP_ID_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: true }, { id: "name", name: "name", descriptionId: "AR_TP_WORKTYPESTATUS_PROP_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: true }, { id: "category", name: "category", descriptionId: "AR_TP_WORKTYPESTATUS_PROP_CATEGORY_DSC", type: "str", isCollection: false, isComputed: false, version: "1.0", readOnly: true, allowableValues: "Open,InProgress,Waiting,Closed" }] } }, expression: { add: { identifier: "add", description: "AR_OP_DSC_ADD", type: "operator", symbol: "+", category: "mathematical", overloads: [{ description: "AR_OP_LNG_ADD_LNG_LNG_DSC", identifier: "Long_ONE add(Long_ONE,Long_ONE)", support: { version: "1.0", resolver: "None" }, returnValue: { description: "AR_OP_LNG_ADD_LNG_LNG_RV", isArray: false, type: "int" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_OP_LNG_ADD_LNG_LNG_PRM_DSC_0", identifier: "augend", isArray: false, helpDisplayIdx: 0, repeatable: false, required: true, type: "int" }, { allowNotSet: false, allowCustomJson: false, description: "AR_OP_LNG_ADD_LNG_LNG_PRM_DSC_1", identifier: "addend", isArray: false, helpDisplayIdx: 1, repeatable: false, required: true, type: "int" }], examples: [{ input: "2 + 3", output: "5" }] }, { description: "AR_OP_DEC_ADD_DEC_LNG_DSC", identifier: "Decimal_ONE add(Decimal_ONE,Long_ONE)", support: { version: "1.0", resolver: "None" }, returnValue: { description: "AR_OP_DEC_ADD_DEC_LNG_RV", isArray: false, type: "dec" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_OP_DEC_ADD_DEC_LNG_PRM_DSC_0", identifier: "augend", isArray: false, helpDisplayIdx: 0, repeatable: false, required: true, type: "dec" }, { allowNotSet: false, allowCustomJson: false, description: "AR_OP_DEC_ADD_DEC_LNG_PRM_DSC_1", identifier: "addend", isArray: false, helpDisplayIdx: 1, repeatable: false, required: true, type: "int" }], examples: [{ input: "2.5 + 3", output: "5.5" }] }, { description: "AR_OP_DEC_ADD_LNG_DEC_DSC", identifier: "Decimal_ONE add(Long_ONE,Decimal_ONE)", support: { version: "1.0", resolver: "None" }, returnValue: { description: "AR_OP_DEC_ADD_LNG_DEC_RV", isArray: false, type: "dec" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_OP_DEC_ADD_LNG_DEC_PRM_DSC_0", identifier: "augend", isArray: false, helpDisplayIdx: 0, repeatable: false, required: true, type: "int" }, { allowNotSet: false, allowCustomJson: false, description: "AR_OP_DEC_ADD_LNG_DEC_PRM_DSC_1", identifier: "addend", isArray: false, helpDisplayIdx: 1, repeatable: false, required: true, type: "dec" }], examples: [{ input: "2 + 33.7", output: "35.7" }] }, { description: "AR_OP_CUR_ADD_CUR_CUR_DSC", identifier: "Currency_ONE add(Currency_ONE,Currency_ONE)", support: { version: "1.0", resolver: "None" }, returnValue: { description: "AR_OP_CUR_ADD_CUR_CUR_RV", isArray: false, type: "cur" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_OP_CUR_ADD_CUR_CUR_PRM_DSC_0", identifier: "augend", isArray: false, helpDisplayIdx: 0, repeatable: false, required: true, type: "cur" }, { allowNotSet: false, allowCustomJson: false, description: "AR_OP_CUR_ADD_CUR_CUR_PRM_DSC_1", identifier: "addend", isArray: false, helpDisplayIdx: 1, repeatable: false, required: true, type: "cur" }], examples: [{ input: 'MakeCurrency(5.25, "USD") + ToCurrency("-3.00|USD")', output: "AR_OP_CUR_ADD_CUR_CUR_EX_OUT_0" }, { input: 'ToCurrency("5.25|") + MakeCurrency(-3.00, ToString(NOT_SET))', output: "AR_OP_CUR_ADD_CUR_CUR_EX_OUT_1" }] }, { description: "AR_OP_AUDIO_ADD_AUDIO_AUDIO_DSC", identifier: "Audio_ONE add(Audio_ONE,Audio_ONE)", support: { version: "1.0", resolver: "None" }, supportedFlowTypes: { inboundcall: "inboundcall", inqueuecall: "inqueuecall", outboundcall: "outboundcall", securecall: "securecall", voicemail: "voicemail" }, returnValue: { description: "AR_OP_AUDIO_ADD_AUDIO_AUDIO_RV", isArray: false, type: "aud" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_OP_AUDIO_ADD_AUDIO_AUDIO_PRM_DSC_0", identifier: "augend", isArray: false, helpDisplayIdx: 0, repeatable: false, required: true, type: "aud" }, { allowNotSet: false, allowCustomJson: false, description: "AR_OP_AUDIO_ADD_AUDIO_AUDIO_PRM_DSC_1", identifier: "addend", isArray: false, helpDisplayIdx: 1, repeatable: false, required: true, type: "aud" }], examples: [{ input: 'ToAudioTTS("Hello ") + ToAudioTTS("World")', output: "AR_OP_AUDIO_ADD_AUDIO_AUDIO_EX_OUT_0" }] }, { description: "AR_OP_AUDIO_ADD_PROMPT_PROMPT_DSC", identifier: "Audio_ONE add(Prompt_ONE,Prompt_ONE)", support: { version: "1.0", resolver: "None" }, supportedFlowTypes: { inboundcall: "inboundcall", inqueuecall: "inqueuecall", outboundcall: "outboundcall", securecall: "securecall", voicemail: "voicemail" }, returnValue: { description: "AR_OP_AUDIO_ADD_PROMPT_PROMPT_RV", isArray: false, type: "aud" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_OP_AUDIO_ADD_PROMPT_PROMPT_PRM_DSC_0", identifier: "augend", isArray: false, helpDisplayIdx: 0, repeatable: false, required: true, type: "pmt" }, { allowNotSet: false, allowCustomJson: false, description: "AR_OP_AUDIO_ADD_PROMPT_PROMPT_PRM_DSC_1", identifier: "addend", isArray: false, helpDisplayIdx: 1, repeatable: false, required: true, type: "pmt" }], examples: [{ input: "Prompt.Hello + Prompt.There", output: "AR_OP_AUDIO_ADD_PROMPT_PROMPT_EX_OUT_0" }] }, { description: "AR_OP_AUDIO_ADD_AUDIO_PROMPT_DSC", identifier: "Audio_ONE add(Audio_ONE,Prompt_ONE)", support: { version: "1.0", resolver: "None" }, supportedFlowTypes: { inboundcall: "inboundcall", inqueuecall: "inqueuecall", outboundcall: "outboundcall", securecall: "securecall", voicemail: "voicemail" }, returnValue: { description: "AR_OP_AUDIO_ADD_AUDIO_PROMPT_RV", isArray: false, type: "aud" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_OP_AUDIO_ADD_AUDIO_PROMPT_PRM_DSC_0", identifier: "augend", isArray: false, helpDisplayIdx: 0, repeatable: false, required: true, type: "aud" }, { allowNotSet: false, allowCustomJson: false, description: "AR_OP_AUDIO_ADD_AUDIO_PROMPT_PRM_DSC_1", identifier: "addend", isArray: false, helpDisplayIdx: 1, repeatable: false, required: true, type: "pmt" }], examples: [{ input: 'ToAudioTTS("Hello") + Prompt.There', output: "AR_OP_AUDIO_ADD_AUDIO_PROMPT_EX_OUT_0" }] }, { description: "AR_OP_AUDIO_ADD_PROMPT_AUDIO_DSC", identifier: "Audio_ONE add(Prompt_ONE,Audio_ONE)", support: { version: "1.0", resolver: "None" }, supportedFlowTypes: { inboundcall: "inboundcall", inqueuecall: "inqueuecall", outboundcall: "outboundcall", securecall: "securecall", voicemail: "voicemail" }, returnValue: { description: "AR_OP_AUDIO_ADD_PROMPT_AUDIO_RV", isArray: false, type: "aud" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_OP_AUDIO_ADD_PROMPT_AUDIO_PRM_DSC_0", identifier: "augend", isArray: false, helpDisplayIdx: 0, repeatable: false, required: true, type: "pmt" }, { allowNotSet: false, allowCustomJson: false, description: "AR_OP_AUDIO_ADD_PROMPT_AUDIO_PRM_DSC_1", identifier: "addend", isArray: false, helpDisplayIdx: 1, repeatable: false, required: true, type: "aud" }], examples: [{ input: 'Prompt.Hello + ToAudioTTS("There")', output: "AR_OP_AUDIO_ADD_PROMPT_AUDIO_EX_OUT_0" }] }, { description: "AR_OP_DEC_ADD_DEC_DEC_DSC", identifier: "Decimal_ONE add(Decimal_ONE,Decimal_ONE)", support: { version: "1.0", resolver: "None" }, returnValue: { description: "AR_OP_DEC_ADD_DEC_DEC_RV", isArray: false, type: "dec" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_OP_DEC_ADD_DEC_DEC_PRM_DSC_0", identifier: "augend", isArray: false, helpDisplayIdx: 0, repeatable: false, required: true, type: "dec" }, { allowNotSet: false, allowCustomJson: false, description: "AR_OP_DEC_ADD_DEC_DEC_PRM_DSC_1", identifier: "addend", isArray: false, helpDisplayIdx: 1, repeatable: false, required: true, type: "dec" }], examples: [{ input: "2.2 + 3.9", output: "6.1" }] }, { description: "AR_OP_DTM_ADD_DUR_DTM_DSC", identifier: "DateTime_ONE add(Duration_ONE,DateTime_ONE)", support: { version: "1.0", resolver: "None" }, returnValue: { description: "AR_OP_DTM_ADD_DUR_DTM_RV", isArray: false, type: "dtm" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_OP_DTM_ADD_DUR_DTM_PRM_DSC_0", identifier: "augend", isArray: false, helpDisplayIdx: 0, repeatable: false, required: true, type: "dur" }, { allowNotSet: false, allowCustomJson: false, description: "AR_OP_DTM_ADD_DUR_DTM_PRM_DSC_1", identifier: "addend", isArray: false, helpDisplayIdx: 1, repeatable: false, required: true, type: "dtm" }], examples: [{ input: "MakeDuration(0, 1, 1, 1) + MakeDateTime(2003, 6, 1, 0, 0, 0)", output: "AR_OP_DTM_ADD_DUR_DTM_EX_OUT_0" }] }, { description: "AR_OP_DTM_ADD_DTM_DUR_DSC", identifier: "DateTime_ONE add(DateTime_ONE,Duration_ONE)", support: { version: "1.0", resolver: "None" }, returnValue: { description: "AR_OP_DTM_ADD_DTM_DUR_RV", isArray: false, type: "dtm" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_OP_DTM_ADD_DTM_DUR_PRM_DSC_0", identifier: "augend", isArray: false, helpDisplayIdx: 0, repeatable: false, required: true, type: "dtm" }, { allowNotSet: false, allowCustomJson: false, description: "AR_OP_DTM_ADD_DTM_DUR_PRM_DSC_1", identifier: "addend", isArray: false, helpDisplayIdx: 1, repeatable: false, required: true, type: "dur" }], examples: [{ input: "MakeDateTime(2003, 6, 1, 0, 0, 0) + MakeDuration(0, 1, 1, 1)", output: "AR_OP_DTM_ADD_DTM_DUR_EX_OUT_0" }] }, { description: "AR_OP_DATE_ADD_DUR_DATE_DSC", identifier: "Date_ONE add(Duration_ONE,Date_ONE)", support: { version: "1.0", resolver: "None" }, needsServerInfo: true, returnValue: { description: "AR_OP_DATE_ADD_DUR_DATE_RV", isArray: false, type: "dat" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_OP_DATE_ADD_DUR_DATE_PRM_DSC_0", identifier: "augend", isArray: false, helpDisplayIdx: 0, repeatable: false, required: true, type: "dur" }, { allowNotSet: false, allowCustomJson: false, description: "AR_OP_DATE_ADD_DUR_DATE_PRM_DSC_1", identifier: "addend", isArray: false, helpDisplayIdx: 1, repeatable: false, required: true, type: "dat" }], examples: [{ input: "MakeDuration(1, 1, 1, 1) + MakeDate(2003, 6, 1)", output: "AR_OP_DATE_ADD_DUR_DATE_EX_OUT_0" }] }, { description: "AR_OP_DATE_ADD_DATE_DUR_DSC", identifier: "Date_ONE add(Date_ONE,Duration_ONE)", support: { version: "1.0", resolver: "None" }, needsServerInfo: true, returnValue: { description: "AR_OP_DATE_ADD_DATE_DUR_RV", isArray: false, type: "dat" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_OP_DATE_ADD_DATE_DUR_PRM_DSC_0", identifier: "augend", isArray: false, helpDisplayIdx: 0, repeatable: false, required: true, type: "dat" }, { allowNotSet: false, allowCustomJson: false, description: "AR_OP_DATE_ADD_DATE_DUR_PRM_DSC_1", identifier: "addend", isArray: false, helpDisplayIdx: 1, repeatable: false, required: true, type: "dur" }], examples: [{ input: "MakeDate(2003, 6, 1) + MakeDuration(2, 1, 1, 1)", output: "AR_OP_DATE_ADD_DATE_DUR_EX_OUT_0" }] }, { description: "AR_OP_TIME_ADD_DUR_TIME_DSC", identifier: "Time_ONE add(Duration_ONE,Time_ONE)", support: { version: "1.0", resolver: "None" }, needsServerInfo: true, returnValue: { description: "AR_OP_TIME_ADD_DUR_TIME_RV", isArray: false, type: "tim" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_OP_TIME_ADD_DUR_TIME_PRM_DSC_0", identifier: "augend", isArray: false, helpDisplayIdx: 0, repeatable: false, required: true, type: "dur" }, { allowNotSet: false, allowCustomJson: false, description: "AR_OP_TIME_ADD_DUR_TIME_PRM_DSC_1", identifier: "addend", isArray: false, helpDisplayIdx: 1, repeatable: false, required: true, type: "tim" }], examples: [{ input: "MakeDuration(0, 1, 1, 1) + MakeTime(1, 1, 5)", output: "AR_OP_TIME_ADD_DUR_TIME_EX_OUT_0" }] }, { description: "AR_OP_TIME_ADD_TIME_DUR_DSC", identifier: "Time_ONE add(Time_ONE,Duration_ONE)", support: { version: "1.0", resolver: "None" }, needsServerInfo: true, returnValue: { description: "AR_OP_TIME_ADD_TIME_DUR_RV", isArray: false, type: "tim" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_OP_TIME_ADD_TIME_DUR_PRM_DSC_0", identifier: "augend", isArray: false, helpDisplayIdx: 0, repeatable: false, required: true, type: "tim" }, { allowNotSet: false, allowCustomJson: false, description: "AR_OP_TIME_ADD_TIME_DUR_PRM_DSC_1", identifier: "addend", isArray: false, helpDisplayIdx: 1, repeatable: false, required: true, type: "dur" }], examples: [{ input: "MakeTime(12, 0, 0) + MakeDuration(0, 14, 1, 1)", output: "AR_OP_TIME_ADD_TIME_DUR_EX_OUT_0" }] }, { description: "AR_OP_DUR_ADD_DUR_DUR_DSC", identifier: "Duration_ONE add(Duration_ONE,Duration_ONE)", support: { version: "1.0", resolver: "None" }, returnValue: { description: "AR_OP_DUR_ADD_DUR_DUR_RV", isArray: false, type: "dur" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_OP_DUR_ADD_DUR_DUR_PRM_DSC_0", identifier: "augend", isArray: false, helpDisplayIdx: 0, repeatable: false, required: true, type: "dur" }, { allowNotSet: false, allowCustomJson: false, description: "AR_OP_DUR_ADD_DUR_DUR_PRM_DSC_1", identifier: "addend", isArray: false, helpDisplayIdx: 1, repeatable: false, required: true, type: "dur" }], examples: [{ input: "MakeDuration(0, 10, 30, 0) + MakeDuration(1, 1, 15, 30)", output: "AR_OP_DUR_ADD_DUR_DUR_EX_OUT_0" }] }, { description: "AR_OP_STR_ADD_STR_STR_DSC", identifier: "String_ONE add(String_ONE,String_ONE)", support: { version: "1.0", resolver: "None" }, returnValue: { description: "AR_OP_STR_ADD_STR_STR_RV", isArray: false, type: "str" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_OP_STR_ADD_STR_STR_PRM_DSC_0", identifier: "augend", isArray: false, helpDisplayIdx: 0, repeatable: false, required: true, type: "str" }, { allowNotSet: false, allowCustomJson: false, description: "AR_OP_STR_ADD_STR_STR_PRM_DSC_1", identifier: "addend", isArray: false, helpDisplayIdx: 1, repeatable: false, required: true, type: "str" }], examples: [{ input: '"Hello " + "There"', output: '"Hello There"' }] }], needsServerInfo: true }, bitAnd: { identifier: "bitAnd", description: "AR_OP_DSC_BITAND", type: "operator", symbol: "&", category: "mathematical", overloads: [{ description: "AR_OP_LNG_BITAND_LNG_LNG_DSC", identifier: "Long_ONE bitAnd(Long_ONE,Long_ONE)", support: { version: "1.0", resolver: "None" }, returnValue: { description: "AR_OP_LNG_BITAND_LNG_LNG_RV", isArray: false, type: "int" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_OP_LNG_BITAND_LNG_LNG_PRM_DSC_0", identifier: "value1", isArray: false, helpDisplayIdx: 0, repeatable: false, required: true, type: "int" }, { allowNotSet: false, allowCustomJson: false, description: "AR_OP_LNG_BITAND_LNG_LNG_PRM_DSC_1", identifier: "value2", isArray: false, helpDisplayIdx: 1, repeatable: false, required: true, type: "int" }], examples: [{ input: "3 & 9", output: "1" }, { input: "7 & 15", output: "7" }, { input: "-2 & 5", output: "4" }] }] }, bitNot: { identifier: "bitNot", description: "AR_OP_DSC_BITNOT", type: "operator", symbol: "~", category: "mathematical", overloads: [{ description: "AR_OP_LNG_BITNOT_LNG_DSC", identifier: "Long_ONE bitNot(Long_ONE)", support: { version: "1.0", resolver: "None" }, returnValue: { description: "AR_OP_LNG_BITNOT_LNG_RV", isArray: false, type: "int" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_OP_LNG_BITNOT_LNG_PRM_DSC_0", identifier: "value1", isArray: false, helpDisplayIdx: 0, repeatable: false, required: true, type: "int" }], examples: [{ input: "~ 5", output: "-6" }, { input: "~ 256", output: "-257" }] }] }, bitOr: { identifier: "bitOr", description: "AR_OP_DSC_BITOR", type: "operator", symbol: "|", category: "mathematical", overloads: [{ description: "AR_OP_LNG_BITOR_LNG_LNG_DSC", identifier: "Long_ONE bitOr(Long_ONE,Long_ONE)", support: { version: "1.0", resolver: "None" }, returnValue: { description: "AR_OP_LNG_BITOR_LNG_LNG_RV", isArray: false, type: "int" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_OP_LNG_BITOR_LNG_LNG_PRM_DSC_0", identifier: "value1", isArray: false, helpDisplayIdx: 0, repeatable: false, required: true, type: "int" }, { allowNotSet: false, allowCustomJson: false, description: "AR_OP_LNG_BITOR_LNG_LNG_PRM_DSC_1", identifier: "value2", isArray: false, helpDisplayIdx: 1, repeatable: false, required: true, type: "int" }], examples: [{ input: "3 | 9", output: "11" }, { input: "7 | 15", output: "15" }, { input: "-2 | 5", output: "-1" }] }] }, sub: { identifier: "sub", description: "AR_OP_DSC_SUB", type: "operator", symbol: "-", category: "mathematical", overloads: [{ description: "AR_OP_DATE_SUB_DATE_DUR_DSC", identifier: "Date_ONE sub(Date_ONE,Duration_ONE)", support: { version: "1.0", resolver: "None" }, needsServerInfo: true, returnValue: { description: "AR_OP_DATE_SUB_DATE_DUR_RV", isArray: false, type: "dat" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_OP_DATE_SUB_DATE_DUR_PRM_DSC_0", identifier: "minuend", isArray: false, helpDisplayIdx: 0, repeatable: false, required: true, type: "dat" }, { allowNotSet: false, allowCustomJson: false, description: "AR_OP_DATE_SUB_DATE_DUR_PRM_DSC_1", identifier: "subtrahend", isArray: false, helpDisplayIdx: 1, repeatable: false, required: true, type: "dur" }], examples: [{ input: "MakeDate(2009, 1, 10) - MakeDuration(10, 0, 30, 0)", output: "AR_OP_DATE_SUB_DATE_DUR_EX_OUT_0" }, { input: "MakeDate(2020, 2, 28) - MakeDuration(3, 0, 0, 0)", output: "AR_OP_DATE_SUB_DATE_DUR_EX_OUT_1" }] }, { description: "AR_OP_LNG_SUB_LNG_LNG_DSC", identifier: "Long_ONE sub(Long_ONE,Long_ONE)", support: { version: "1.0", resolver: "None" }, returnValue: { description: "AR_OP_LNG_SUB_LNG_LNG_RV", isArray: false, type: "int" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_OP_LNG_SUB_LNG_LNG_PRM_DSC_0", identifier: "minuend", isArray: false, helpDisplayIdx: 0, repeatable: false, required: true, type: "int" }, { allowNotSet: false, allowCustomJson: false, description: "AR_OP_LNG_SUB_LNG_LNG_PRM_DSC_1", identifier: "subtrahend", isArray: false, helpDisplayIdx: 1, repeatable: false, required: true, type: "int" }], examples: [{ input: "2 - 3", output: "-1" }, { input: "100 - 35", output: "65" }] }, { description: "AR_OP_CUR_SUB_CUR_CUR_DSC", identifier: "Currency_ONE sub(Currency_ONE,Currency_ONE)", support: { version: "1.0", resolver: "None" }, returnValue: { description: "AR_OP_CUR_SUB_CUR_CUR_RV", isArray: false, type: "cur" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_OP_CUR_SUB_CUR_CUR_PRM_DSC_0", identifier: "minuend", isArray: false, helpDisplayIdx: 0, repeatable: false, required: true, type: "cur" }, { allowNotSet: false, allowCustomJson: false, description: "AR_OP_CUR_SUB_CUR_CUR_PRM_DSC_1", identifier: "subtrahend", isArray: false, helpDisplayIdx: 1, repeatable: false, required: true, type: "cur" }], examples: [{ input: 'ToCurrency("5.25|USD") - MakeCurrency(4.00, "USD")', output: "AR_OP_CUR_SUB_CUR_CUR_EX_OUT_0" }, { input: 'ToCurrency("5.25|") - ToCurrency("2.50|")', output: "AR_OP_CUR_SUB_CUR_CUR_EX_OUT_1" }] }, { description: "AR_OP_DEC_SUB_DEC_DEC_DSC", identifier: "Decimal_ONE sub(Decimal_ONE,Decimal_ONE)", support: { version: "1.0", resolver: "None" }, returnValue: { description: "AR_OP_DEC_SUB_DEC_DEC_RV", isArray: false, type: "dec" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_OP_DEC_SUB_DEC_DEC_PRM_DSC_0", identifier: "minuend", isArray: false, helpDisplayIdx: 0, repeatable: false, required: true, type: "dec" }, { allowNotSet: false, allowCustomJson: false, description: "AR_OP_DEC_SUB_DEC_DEC_PRM_DSC_1", identifier: "subtrahend", isArray: false, helpDisplayIdx: 1, repeatable: false, required: true, type: "dec" }], examples: [{ input: "20.5 - 5.3", output: "15.2" }, { input: "24.5 - 7.1", output: "17.4" }] }, { description: "AR_OP_DEC_SUB_DEC_LNG_DSC", identifier: "Decimal_ONE sub(Decimal_ONE,Long_ONE)", support: { version: "1.0", resolver: "None" }, returnValue: { description: "AR_OP_DEC_SUB_DEC_LNG_RV", isArray: false, type: "dec" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_OP_DEC_SUB_DEC_LNG_PRM_DSC_0", identifier: "minuend", isArray: false, helpDisplayIdx: 0, repeatable: false, required: true, type: "dec" }, { allowNotSet: false, allowCustomJson: false, description: "AR_OP_DEC_SUB_DEC_LNG_PRM_DSC_1", identifier: "subtrahend", isArray: false, helpDisplayIdx: 1, repeatable: false, required: true, type: "int" }], examples: [{ input: "20.5 - 5", output: "15.5" }, { input: "24.5 - 7", output: "17.5" }] }, { description: "AR_OP_DEC_SUB_LNG_DEC_DSC", identifier: "Decimal_ONE sub(Long_ONE,Decimal_ONE)", support: { version: "1.0", resolver: "None" }, returnValue: { description: "AR_OP_DEC_SUB_LNG_DEC_RV", isArray: false, type: "dec" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_OP_DEC_SUB_LNG_DEC_PRM_DSC_0", identifier: "minuend", isArray: false, helpDisplayIdx: 0, repeatable: false, required: true, type: "int" }, { allowNotSet: false, allowCustomJson: false, description: "AR_OP_DEC_SUB_LNG_DEC_PRM_DSC_1", identifier: "subtrahend", isArray: false, helpDisplayIdx: 1, repeatable: false, required: true, type: "dec" }], examples: [{ input: "20 - 5.5", output: "14.5" }, { input: "24 - 7.5", output: "16.5" }] }, { description: "AR_OP_DTM_SUB_DUR_DUR_DSC", identifier: "DateTime_ONE sub(Duration_ONE,Duration_ONE)", support: { version: "1.0", resolver: "None" }, returnValue: { description: "AR_OP_DTM_SUB_DUR_DUR_RV", isArray: false, type: "dur" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_OP_DTM_SUB_DUR_DUR_PRM_DSC_0", identifier: "minuend", isArray: false, helpDisplayIdx: 0, repeatable: false, required: true, type: "dur" }, { allowNotSet: false, allowCustomJson: false, description: "AR_OP_DTM_SUB_DUR_DUR_PRM_DSC_1", identifier: "subtrahend", isArray: false, helpDisplayIdx: 1, repeatable: false, required: true, type: "dur" }], examples: [{ input: "MakeDuration(0, 10, 30, 0) - MakeDuration(0, 5, 15, 0)", output: "AR_OP_DTM_SUB_DUR_DUR_EX_OUT_0" }] }, { description: "AR_OP_DTM_SUB_DTM_DUR_DSC", identifier: "DateTime_ONE sub(DateTime_ONE,Duration_ONE)", support: { version: "1.0", resolver: "None" }, returnValue: { description: "AR_OP_DTM_SUB_DTM_DUR_RV", isArray: false, type: "dtm" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_OP_DTM_SUB_DTM_DUR_PRM_DSC_0", identifier: "minuend", isArray: false, helpDisplayIdx: 0, repeatable: false, required: true, type: "dtm" }, { allowNotSet: false, allowCustomJson: false, description: "AR_OP_DTM_SUB_DTM_DUR_PRM_DSC_1", identifier: "subtrahend", isArray: false, helpDisplayIdx: 1, repeatable: false, required: true, type: "dur" }], examples: [{ input: "MakeDateTime(2003, 6, 3, 0, 0, 0) - MakeDuration(0, 1, 1, 1)", output: "AR_OP_DTM_SUB_DTM_DUR_EX_OUT_0" }] }, { description: "AR_OP_TIME_SUB_TIME_DUR_DSC", identifier: "Time_ONE sub(Time_ONE,Duration_ONE)", support: { version: "1.0", resolver: "None" }, needsServerInfo: true, returnValue: { description: "AR_OP_TIME_SUB_TIME_DUR_RV", isArray: false, type: "tim" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_OP_TIME_SUB_TIME_DUR_PRM_DSC_0", identifier: "minuend", isArray: false, helpDisplayIdx: 0, repeatable: false, required: true, type: "tim" }, { allowNotSet: false, allowCustomJson: false, description: "AR_OP_TIME_SUB_TIME_DUR_PRM_DSC_1", identifier: "subtrahend", isArray: false, helpDisplayIdx: 1, repeatable: false, required: true, type: "dur" }], examples: [{ input: "MakeTime(2, 30, 0) - MakeDuration(10, -3, -30, 0)", output: "AR_OP_TIME_SUB_TIME_DUR_EX_OUT_0" }, { input: "MakeTime(2, 30, 0) - MakeDuration(0, -3, -30, 0)", output: "AR_OP_TIME_SUB_TIME_DUR_EX_OUT_1" }, { input: "MakeTime(2, 30, 0) - MakeDuration(3, 3, 30, 0)", output: "AR_OP_TIME_SUB_TIME_DUR_EX_OUT_2" }] }], needsServerInfo: true }, mul: { identifier: "mul", description: "AR_OP_DSC_MUL", type: "operator", symbol: "*", category: "mathematical", overloads: [{ description: "AR_OP_LNG_MUL_LNG_LNG_DSC", identifier: "Long_ONE mul(Long_ONE,Long_ONE)", support: { version: "1.0", resolver: "None" }, returnValue: { description: "AR_OP_LNG_MUL_LNG_LNG_RV", isArray: false, type: "int" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_OP_LNG_MUL_LNG_LNG_PRM_DSC_0", identifier: "multiplicand", isArray: false, helpDisplayIdx: 0, repeatable: false, required: true, type: "int" }, { allowNotSet: false, allowCustomJson: false, description: "AR_OP_LNG_MUL_LNG_LNG_PRM_DSC_1", identifier: "multiplier", isArray: false, helpDisplayIdx: 1, repeatable: false, required: true, type: "int" }], examples: [{ input: "7 * 12", output: "84" }, { input: "9 * 1000", output: "9000" }] }, { description: "AR_OP_DEC_MUL_DEC_DEC_DSC", identifier: "Decimal_ONE mul(Decimal_ONE,Decimal_ONE)", support: { version: "1.0", resolver: "None" }, returnValue: { description: "AR_OP_DEC_MUL_DEC_DEC_RV", isArray: false, type: "dec" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_OP_DEC_MUL_DEC_DEC_PRM_DSC_0", identifier: "multiplicand", isArray: false, helpDisplayIdx: 0, repeatable: false, required: true, type: "dec" }, { allowNotSet: false, allowCustomJson: false, description: "AR_OP_DEC_MUL_DEC_DEC_PRM_DSC_1", identifier: "multiplier", isArray: false, helpDisplayIdx: 1, repeatable: false, required: true, type: "dec" }], examples: [{ input: "7.5 * 12.2", output: "91.5" }] }, { description: "AR_OP_DEC_MUL_LNG_DEC_DSC", identifier: "Decimal_ONE mul(Long_ONE,Decimal_ONE)", support: { version: "1.0", resolver: "None" }, returnValue: { description: "AR_OP_DEC_MUL_LNG_DEC_RV", isArray: false, type: "dec" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_OP_DEC_MUL_LNG_DEC_PRM_DSC_0", identifier: "multiplicand", isArray: false, helpDisplayIdx: 0, repeatable: false, required: true, type: "int" }, { allowNotSet: false, allowCustomJson: false, description: "AR_OP_DEC_MUL_LNG_DEC_PRM_DSC_1", identifier: "multiplier", isArray: false, helpDisplayIdx: 1, repeatable: false, required: true, type: "dec" }], examples: [{ input: "7 * 12.2", output: "85.4" }, { input: "-7 * 12.2", output: "-85.4" }] }, { description: "AR_OP_DEC_MUL_DEC_LNG_DSC", identifier: "Decimal_ONE mul(Decimal_ONE,Long_ONE)", support: { version: "1.0", resolver: "None" }, returnValue: { description: "AR_OP_DEC_MUL_DEC_LNG_RV", isArray: false, type: "dec" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_OP_DEC_MUL_DEC_LNG_PRM_DSC_0", identifier: "multiplicand", isArray: false, helpDisplayIdx: 0, repeatable: false, required: true, type: "dec" }, { allowNotSet: false, allowCustomJson: false, description: "AR_OP_DEC_MUL_DEC_LNG_PRM_DSC_1", identifier: "multiplier", isArray: false, helpDisplayIdx: 1, repeatable: false, required: true, type: "int" }], examples: [{ input: "7.2 * 12", output: "86.4" }, { input: "5.1 * -3", output: "-15.3" }] }, { description: "AR_OP_CUR_MUL_DEC_CUR_DSC", identifier: "Currency_ONE mul(Decimal_ONE,Currency_ONE)", support: { version: "1.0", resolver: "None" }, returnValue: { description: "AR_OP_CUR_MUL_DEC_CUR_RV", isArray: false, type: "cur" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_OP_CUR_MUL_DEC_CUR_PRM_DSC_0", identifier: "multiplicand", isArray: false, helpDisplayIdx: 0, repeatable: false, required: true, type: "dec" }, { allowNotSet: false, allowCustomJson: false, description: "AR_OP_CUR_MUL_DEC_CUR_PRM_DSC_1", identifier: "multiplier", isArray: false, helpDisplayIdx: 1, repeatable: false, required: true, type: "cur" }], examples: [{ input: '7.2 * ToCurrency("5.25|USD")', output: "AR_OP_CUR_MUL_DEC_CUR_EX_OUT_0" }] }, { description: "AR_OP_CUR_MUL_CUR_DEC_DSC", identifier: "Currency_ONE mul(Currency_ONE,Decimal_ONE)", support: { version: "1.0", resolver: "None" }, returnValue: { description: "AR_OP_CUR_MUL_CUR_DEC_RV", isArray: false, type: "cur" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_OP_CUR_MUL_CUR_DEC_PRM_DSC_0", identifier: "multiplicand", isArray: false, helpDisplayIdx: 0, repeatable: false, required: true, type: "cur" }, { allowNotSet: false, allowCustomJson: false, description: "AR_OP_CUR_MUL_CUR_DEC_PRM_DSC_1", identifier: "multiplier", isArray: false, helpDisplayIdx: 1, repeatable: false, required: true, type: "dec" }], examples: [{ input: 'ToCurrency("-5.25|USD") * 7.2', output: "AR_OP_CUR_MUL_CUR_DEC_EX_OUT_0" }] }, { description: "AR_OP_CUR_MUL_LNG_CUR_DSC", identifier: "Currency_ONE mul(Long_ONE,Currency_ONE)", support: { version: "1.0", resolver: "None" }, returnValue: { description: "AR_OP_CUR_MUL_LNG_CUR_RV", isArray: false, type: "cur" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_OP_CUR_MUL_LNG_CUR_PRM_DSC_0", identifier: "multiplicand", isArray: false, helpDisplayIdx: 0, repeatable: false, required: true, type: "int" }, { allowNotSet: false, allowCustomJson: false, description: "AR_OP_CUR_MUL_LNG_CUR_PRM_DSC_1", identifier: "multiplier", isArray: false, helpDisplayIdx: 1, repeatable: false, required: true, type: "cur" }], examples: [{ input: '7 * MakeCurrency(5.25, "USD")', output: "AR_OP_CUR_MUL_LNG_CUR_EX_OUT_0" }] }, { description: "AR_OP_CUR_MUL_CUR_LNG_DSC", identifier: "Currency_ONE mul(Currency_ONE,Long_ONE)", support: { version: "1.0", resolver: "None" }, returnValue: { description: "AR_OP_CUR_MUL_CUR_LNG_RV", isArray: false, type: "cur" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_OP_CUR_MUL_CUR_LNG_PRM_DSC_0", identifier: "multiplicand", isArray: false, helpDisplayIdx: 0, repeatable: false, required: true, type: "cur" }, { allowNotSet: false, allowCustomJson: false, description: "AR_OP_CUR_MUL_CUR_LNG_PRM_DSC_1", identifier: "multiplier", isArray: false, helpDisplayIdx: 1, repeatable: false, required: true, type: "int" }], examples: [{ input: 'MakeCurrency(5.25, "USD") * 7', output: "AR_OP_CUR_MUL_CUR_LNG_EX_OUT_0" }] }] }, div: { identifier: "div", description: "AR_OP_DSC_DIV", type: "operator", symbol: "/", category: "mathematical", overloads: [{ description: "AR_OP_DEC_DIV_LNG_DEC_DSC", identifier: "Decimal_ONE div(Long_ONE,Decimal_ONE)", support: { version: "1.0", resolver: "None" }, returnValue: { description: "AR_OP_DEC_DIV_LNG_DEC_RV", isArray: false, type: "dec" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_OP_DEC_DIV_LNG_DEC_PRM_DSC_0", identifier: "dividend", isArray: false, helpDisplayIdx: 0, repeatable: false, required: true, type: "int" }, { allowNotSet: false, allowCustomJson: false, description: "AR_OP_DEC_DIV_LNG_DEC_PRM_DSC_1", identifier: "divisor", isArray: false, helpDisplayIdx: 1, repeatable: false, required: true, type: "dec", disallowZero: true }], examples: [{ input: "42 / (3.0 + 3.0)", output: "7.0" }] }, { description: "AR_OP_DEC_DIV_DEC_LNG_DSC", identifier: "Decimal_ONE div(Decimal_ONE,Long_ONE)", support: { version: "1.0", resolver: "None" }, returnValue: { description: "AR_OP_DEC_DIV_DEC_LNG_RV", isArray: false, type: "dec" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_OP_DEC_DIV_DEC_LNG_PRM_DSC_0", identifier: "dividend", isArray: false, helpDisplayIdx: 0, repeatable: false, required: true, type: "dec" }, { allowNotSet: false, allowCustomJson: false, description: "AR_OP_DEC_DIV_DEC_LNG_PRM_DSC_1", identifier: "divisor", isArray: false, helpDisplayIdx: 1, repeatable: false, required: true, type: "int", disallowZero: true }], examples: [{ input: "42.7 / 7", output: "6.1" }] }, { description: "AR_OP_DEC_DIV_LNG_LNG_DSC", identifier: "Decimal_ONE div(Long_ONE,Long_ONE)", support: { version: "1.0", resolver: "None" }, returnValue: { description: "AR_OP_DEC_DIV_LNG_LNG_RV", isArray: false, type: "dec" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_OP_DEC_DIV_LNG_LNG_PRM_DSC_0", identifier: "dividend", isArray: false, helpDisplayIdx: 0, repeatable: false, required: true, type: "int" }, { allowNotSet: false, allowCustomJson: false, description: "AR_OP_DEC_DIV_LNG_LNG_PRM_DSC_1", identifier: "divisor", isArray: false, helpDisplayIdx: 1, repeatable: false, required: true, type: "int", disallowZero: true }], examples: [{ input: "42 / 8", output: "5.25" }] }, { description: "AR_OP_DEC_DIV_DEC_DEC_DSC", identifier: "Decimal_ONE div(Decimal_ONE,Decimal_ONE)", support: { version: "1.0", resolver: "None" }, returnValue: { description: "AR_OP_DEC_DIV_DEC_DEC_RV", isArray: false, type: "dec" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_OP_DEC_DIV_DEC_DEC_PRM_DSC_0", identifier: "dividend", isArray: false, helpDisplayIdx: 0, repeatable: false, required: true, type: "dec" }, { allowNotSet: false, allowCustomJson: false, description: "AR_OP_DEC_DIV_DEC_DEC_PRM_DSC_1", identifier: "divisor", isArray: false, helpDisplayIdx: 1, repeatable: false, required: true, type: "dec", disallowZero: true }], examples: [{ input: "44.7741 / 6.21", output: "7.21" }] }, { description: "AR_OP_CUR_DIV_CUR_DEC_DSC", identifier: "Currency_ONE div(Currency_ONE,Decimal_ONE)", support: { version: "1.0", resolver: "None" }, returnValue: { description: "AR_OP_CUR_DIV_CUR_DEC_RV", isArray: false, type: "cur" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_OP_CUR_DIV_CUR_DEC_PRM_DSC_0", identifier: "dividend", isArray: false, helpDisplayIdx: 0, repeatable: false, required: true, type: "cur" }, { allowNotSet: false, allowCustomJson: false, description: "AR_OP_CUR_DIV_CUR_DEC_PRM_DSC_1", identifier: "divisor", isArray: false, helpDisplayIdx: 1, repeatable: false, required: true, type: "dec", disallowZero: true }], examples: [{ input: 'ToCurrency("44.7741|USD") / 6.21', output: "AR_OP_CUR_DIV_CUR_DEC_EX_OUT_0" }] }, { description: "AR_OP_CUR_DIV_CUR_LNG_DSC", identifier: "Currency_ONE div(Currency_ONE,Long_ONE)", support: { version: "1.0", resolver: "None" }, returnValue: { description: "AR_OP_CUR_DIV_CUR_LNG_RV", isArray: false, type: "cur" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_OP_CUR_DIV_CUR_LNG_PRM_DSC_0", identifier: "dividend", isArray: false, helpDisplayIdx: 0, repeatable: false, required: true, type: "cur" }, { allowNotSet: false, allowCustomJson: false, description: "AR_OP_CUR_DIV_CUR_LNG_PRM_DSC_1", identifier: "divisor", isArray: false, helpDisplayIdx: 1, repeatable: false, required: true, type: "int", disallowZero: true }], examples: [{ input: 'ToCurrency("45.00|USD") / 6', output: "AR_OP_CUR_DIV_CUR_LNG_EX_OUT_0" }] }] }, pow: { identifier: "pow", description: "AR_OP_DSC_POW", type: "operator", symbol: "^", category: "mathematical", overloads: [{ description: "AR_OP_LNG_POW_LNG_LNG_DSC", identifier: "Long_ONE pow(Long_ONE,Long_ONE)", support: { version: "1.0", resolver: "None" }, returnValue: { description: "AR_OP_LNG_POW_LNG_LNG_RV", isArray: false, type: "dec" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_OP_LNG_POW_LNG_LNG_PRM_DSC_0", identifier: "base", isArray: false, helpDisplayIdx: 0, repeatable: false, required: true, type: "int" }, { allowNotSet: false, allowCustomJson: false, description: "AR_OP_LNG_POW_LNG_LNG_PRM_DSC_1", identifier: "exponent", isArray: false, helpDisplayIdx: 1, repeatable: false, required: true, type: "int" }], examples: [{ input: "2 ^ 3", output: "8.0" }, { input: "2 ^ -1", output: "0.5" }] }, { description: "AR_OP_DEC_POW_LNG_DEC_DSC", identifier: "Decimal_ONE pow(Long_ONE,Decimal_ONE)", support: { version: "1.0", resolver: "None" }, returnValue: { description: "AR_OP_DEC_POW_LNG_DEC_RV", isArray: false, type: "dec" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_OP_DEC_POW_LNG_DEC_PRM_DSC_0", identifier: "base", isArray: false, helpDisplayIdx: 0, repeatable: false, required: true, type: "int" }, { allowNotSet: false, allowCustomJson: false, description: "AR_OP_DEC_POW_LNG_DEC_PRM_DSC_1", identifier: "exponent", isArray: false, helpDisplayIdx: 1, repeatable: false, required: true, type: "dec" }], examples: [{ input: "2 ^ 3.0", output: "8.0" }, { input: "81 ^ 0.5", output: "9.0" }] }, { description: "AR_OP_DEC_POW_DEC_LNG_DSC", identifier: "Decimal_ONE pow(Decimal_ONE,Long_ONE)", support: { version: "1.0", resolver: "None" }, returnValue: { description: "AR_OP_DEC_POW_DEC_LNG_RV", isArray: false, type: "dec" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_OP_DEC_POW_DEC_LNG_PRM_DSC_0", identifier: "base", isArray: false, helpDisplayIdx: 0, repeatable: false, required: true, type: "dec" }, { allowNotSet: false, allowCustomJson: false, description: "AR_OP_DEC_POW_DEC_LNG_PRM_DSC_1", identifier: "exponent", isArray: false, helpDisplayIdx: 1, repeatable: false, required: true, type: "int" }], examples: [{ input: "2.0 ^ 3", output: "8.0" }, { input: "5.5 ^ 3", output: "166.375" }, { input: "2.0 ^ -1", output: "0.5" }] }, { description: "AR_OP_DEC_POW_DEC_DEC_DSC", identifier: "Decimal_ONE pow(Decimal_ONE,Decimal_ONE)", support: { version: "1.0", resolver: "None" }, returnValue: { description: "AR_OP_DEC_POW_DEC_DEC_RV", isArray: false, type: "dec" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_OP_DEC_POW_DEC_DEC_PRM_DSC_0", identifier: "base", isArray: false, helpDisplayIdx: 0, repeatable: false, required: true, type: "dec" }, { allowNotSet: false, allowCustomJson: false, description: "AR_OP_DEC_POW_DEC_DEC_PRM_DSC_1", identifier: "exponent", isArray: false, helpDisplayIdx: 1, repeatable: false, required: true, type: "dec" }], examples: [{ input: "2.5 ^ 3.0", output: "15.625" }] }] }, ter: { identifier: "ter", description: "AR_OP_DSC_TER", type: "operator", symbol: "?", category: "logical", overloads: [{ description: "AR_OP_ANY_TER_BLN_ANY_ANY_DSC", identifier: "Any_ONE ter(Boolean_ONE,Any_ONE,Any_ONE)", support: { version: "1.0", resolver: "If" }, returnValue: { description: "AR_OP_ANY_TER_BLN_ANY_ANY_RV", isArray: false, type: "any" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_OP_ANY_TER_BLN_ANY_ANY_PRM_DSC_0", identifier: "condition", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "bln" }, { allowNotSet: true, allowCustomJson: false, description: "AR_OP_ANY_TER_BLN_ANY_ANY_PRM_DSC_1", identifier: "trueValue", isArray: false, helpDisplayIdx: 1, repeatable: false, required: false, type: "any" }, { allowNotSet: true, allowCustomJson: false, description: "AR_OP_ANY_TER_BLN_ANY_ANY_PRM_DSC_2", identifier: "falseValue", isArray: false, helpDisplayIdx: 2, repeatable: false, required: false, type: "any" }], examples: [{ input: "5>3 ? true : false", output: "true" }, { input: '5>3 ? "hello" : "world"', output: '"hello"' }, { input: "5>3 ? 100 : 200", output: "100" }, { input: "5>3 ? 100.5 : 200.0", output: "100.5" }, { input: 'MakeCurrency(5.00, "USD") > MakeCurrency(2.00, "USD") ? MakeCurrency(10.00, "USD") : ToCurrency(NOT_SET)', output: "AR_OP_ANY_TER_BLN_ANY_ANY_EX_OUT_4" }, { input: "5>3 ? MakeDateTime(2009, 5, 5, 10, 30, 0) : MakeDateTime(2005, 1, 1, 0, 0, 0)", output: "AR_OP_ANY_TER_BLN_ANY_ANY_EX_OUT_5" }, { input: "5>3 ? MakeDuration(0, 1, 0, 0) : MakeDuration(2, 0, 0, 0)", output: "AR_OP_ANY_TER_BLN_ANY_ANY_EX_OUT_6" }, { input: '5>3 ? ToUser("john.doe@company.com") : ToUser("mary.doe@company.com")', output: "AR_OP_ANY_TER_BLN_ANY_ANY_EX_OUT_7", hidden: "true" }, { input: '5>3 ? ToSkill("Spanish") : ToSkill("German")', output: "AR_OP_ANY_TER_BLN_ANY_ANY_EX_OUT_8", hidden: "true" }, { input: "3<5 ? MakeDate(2010, 6, 1) : MakeDate(2015, 6, 1)", output: "AR_OP_ANY_TER_BLN_ANY_ANY_EX_OUT_9", featureConfigName: "botFlows" }, { input: "3<5 ? MakeTime(12, 0, 0) : MakeTime(2, 30, 0)", output: "AR_OP_ANY_TER_BLN_ANY_ANY_EX_OUT_10", featureConfigName: "botFlows" }], examplesHaveFeatureToggleOrConfig: true }, { description: "AR_OP_ANY_COLL_TER_BLN_ANY_COLL_ANY_COLL_DSC", identifier: "Any_COLL ter(Boolean_ONE,Any_COLL,Any_COLL)", support: { version: "1.0", resolver: "If" }, returnValue: { description: "AR_OP_ANY_COLL_TER_BLN_ANY_COLL_ANY_COLL_RV", isArray: true, type: "any" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_OP_ANY_COLL_TER_BLN_ANY_COLL_ANY_COLL_PRM_DSC_0", identifier: "condition", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "bln" }, { allowNotSet: false, allowCustomJson: false, description: "AR_OP_ANY_COLL_TER_BLN_ANY_COLL_ANY_COLL_PRM_DSC_1", identifier: "trueValue", isArray: true, helpDisplayIdx: 1, repeatable: false, required: true, type: "any" }, { allowNotSet: false, allowCustomJson: false, description: "AR_OP_ANY_COLL_TER_BLN_ANY_COLL_ANY_COLL_PRM_DSC_2", identifier: "falseValue", isArray: true, helpDisplayIdx: 2, repeatable: false, required: true, type: "any" }], examples: [{ input: 'MakeCurrency(5.00, "USD") > MakeCurrency(2.00, "USD") ? MakeList(MakeCurrency(10.00, "USD")) : MakeList(ToCurrency(NOT_SET))', output: "AR_OP_ANY_COLL_TER_BLN_ANY_COLL_ANY_COLL_EX_OUT_0" }, { input: "5>3 ? MakeList(true) : MakeList(false)", output: "AR_OP_ANY_COLL_TER_BLN_ANY_COLL_ANY_COLL_EX_OUT_1" }, { input: '5>3 ? MakeList("hello") : MakeList("world")', output: "AR_OP_ANY_COLL_TER_BLN_ANY_COLL_ANY_COLL_EX_OUT_2" }, { input: "5>3 ? MakeList(100) : MakeList(200)", output: "AR_OP_ANY_COLL_TER_BLN_ANY_COLL_ANY_COLL_EX_OUT_3" }, { input: "5>3 ? MakeList(100.5) : MakeList(200.0)", output: "AR_OP_ANY_COLL_TER_BLN_ANY_COLL_ANY_COLL_EX_OUT_4" }, { input: "5>3 ? MakeList(MakeDateTime(2009, 5, 5, 10, 30, 0)) : MakeList(MakeDateTime(2005, 1, 1, 0, 0, 0))", output: "AR_OP_ANY_COLL_TER_BLN_ANY_COLL_ANY_COLL_EX_OUT_5" }, { input: "5>3 ? MakeList(MakeDuration(0, 1, 0, 0)) : MakeList(MakeDuration(2, 0, 0, 0))", output: "AR_OP_ANY_COLL_TER_BLN_ANY_COLL_ANY_COLL_EX_OUT_6" }, { input: '5>3 ? MakeList(ToUser("john.doe@company.com")) : MakeList(ToUser("mary.doe@company.com"))', output: "AR_OP_ANY_COLL_TER_BLN_ANY_COLL_ANY_COLL_EX_OUT_7", hidden: "true" }, { input: '5>3 ? MakeList(ToSkill("Spanish")) : MakeList(ToSkill("German"))', output: "AR_OP_ANY_COLL_TER_BLN_ANY_COLL_ANY_COLL_EX_OUT_8", hidden: "true" }, { input: "3<5 ? MakeList(MakeDate(2010, 6, 1)) : MakeList(MakeDate(2015, 6, 1))", output: "AR_OP_ANY_COLL_TER_BLN_ANY_COLL_ANY_COLL_EX_OUT_9", featureConfigName: "botFlows" }, { input: "3<5 ? MakeList(MakeTime(12, 0, 0)) : MakeList(MakeTime(2, 30, 0))", output: "AR_OP_ANY_COLL_TER_BLN_ANY_COLL_ANY_COLL_EX_OUT_10", featureConfigName: "botFlows" }], examplesHaveFeatureToggleOrConfig: true }, { description: "AR_OP_AUDIO_TER_BLN_AUDIO_AUDIO_DSC", identifier: "Audio_ONE ter(Boolean_ONE,Audio_ONE,Audio_ONE)", support: { version: "1.0", resolver: "If" }, returnValue: { description: "AR_OP_AUDIO_TER_BLN_AUDIO_AUDIO_RV", isArray: false, type: "aud" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_OP_AUDIO_TER_BLN_AUDIO_AUDIO_PRM_DSC_0", identifier: "condition", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "bln" }, { allowNotSet: false, allowCustomJson: false, description: "AR_OP_AUDIO_TER_BLN_AUDIO_AUDIO_PRM_DSC_1", identifier: "trueValueAudio", isArray: false, helpDisplayIdx: 1, repeatable: false, required: true, type: "aud" }, { allowNotSet: false, allowCustomJson: false, description: "AR_OP_AUDIO_TER_BLN_AUDIO_AUDIO_PRM_DSC_2", identifier: "falseValueAudio", isArray: false, helpDisplayIdx: 2, repeatable: false, required: true, type: "aud" }], examples: [{ input: '5>3 ? ToAudioTTS("Hello") : ToAudioTTS("World")', output: "AR_OP_AUDIO_TER_BLN_AUDIO_AUDIO_EX_OUT_0" }] }] }, mod: { identifier: "mod", description: "AR_OP_DSC_MOD", type: "operator", symbol: "%", category: "mathematical", overloads: [{ description: "AR_OP_LNG_MOD_LNG_LNG_DSC", identifier: "Long_ONE mod(Long_ONE,Long_ONE)", support: { version: "1.0", resolver: "None" }, returnValue: { description: "AR_OP_LNG_MOD_LNG_LNG_RV", isArray: false, type: "int" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_OP_LNG_MOD_LNG_LNG_PRM_DSC_0", identifier: "dividend", isArray: false, helpDisplayIdx: 0, repeatable: false, required: true, type: "int" }, { allowNotSet: false, allowCustomJson: false, description: "AR_OP_LNG_MOD_LNG_LNG_PRM_DSC_1", identifier: "divisor", isArray: false, helpDisplayIdx: 1, repeatable: false, required: true, type: "int", disallowZero: true }], examples: [{ input: "27 % 5", output: "2" }] }, { description: "AR_OP_DEC_MOD_DEC_DEC_DSC", identifier: "Decimal_ONE mod(Decimal_ONE,Decimal_ONE)", support: { version: "1.0", resolver: "None" }, returnValue: { description: "AR_OP_DEC_MOD_DEC_DEC_RV", isArray: false, type: "dec" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_OP_DEC_MOD_DEC_DEC_PRM_DSC_0", identifier: "dividend", isArray: false, helpDisplayIdx: 0, repeatable: false, required: true, type: "dec" }, { allowNotSet: false, allowCustomJson: false, description: "AR_OP_DEC_MOD_DEC_DEC_PRM_DSC_1", identifier: "divisor", isArray: false, helpDisplayIdx: 1, repeatable: false, required: true, type: "dec", disallowZero: true }], examples: [{ input: "37.3 % 12.8", output: "11.7" }] }, { description: "AR_OP_DEC_MOD_LNG_DEC_DSC", identifier: "Decimal_ONE mod(Long_ONE,Decimal_ONE)", support: { version: "1.0", resolver: "None" }, returnValue: { description: "AR_OP_DEC_MOD_LNG_DEC_RV", isArray: false, type: "dec" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_OP_DEC_MOD_LNG_DEC_PRM_DSC_0", identifier: "dividend", isArray: false, helpDisplayIdx: 0, repeatable: false, required: true, type: "int" }, { allowNotSet: false, allowCustomJson: false, description: "AR_OP_DEC_MOD_LNG_DEC_PRM_DSC_1", identifier: "divisor", isArray: false, helpDisplayIdx: 1, repeatable: false, required: true, type: "dec", disallowZero: true }], examples: [{ input: "37 % 12.8", output: "11.4" }] }, { description: "AR_OP_DEC_MOD_DEC_LNG_DSC", identifier: "Decimal_ONE mod(Decimal_ONE,Long_ONE)", support: { version: "1.0", resolver: "None" }, returnValue: { description: "AR_OP_DEC_MOD_DEC_LNG_RV", isArray: false, type: "dec" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_OP_DEC_MOD_DEC_LNG_PRM_DSC_0", identifier: "dividend", isArray: false, helpDisplayIdx: 0, repeatable: false, required: true, type: "dec" }, { allowNotSet: false, allowCustomJson: false, description: "AR_OP_DEC_MOD_DEC_LNG_PRM_DSC_1", identifier: "divisor", isArray: false, helpDisplayIdx: 1, repeatable: false, required: true, type: "int", disallowZero: true }], examples: [{ input: "37.9 % 9", output: "1.9" }] }, { description: "AR_OP_CUR_MOD_CUR_DEC_DSC", identifier: "Currency_ONE mod(Currency_ONE,Decimal_ONE)", support: { version: "1.0", resolver: "None" }, returnValue: { description: "AR_OP_CUR_MOD_CUR_DEC_RV", isArray: false, type: "cur" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_OP_CUR_MOD_CUR_DEC_PRM_DSC_0", identifier: "dividend", isArray: false, helpDisplayIdx: 0, repeatable: false, required: true, type: "cur" }, { allowNotSet: false, allowCustomJson: false, description: "AR_OP_CUR_MOD_CUR_DEC_PRM_DSC_1", identifier: "divisor", isArray: false, helpDisplayIdx: 1, repeatable: false, required: true, type: "dec", disallowZero: true }], examples: [{ input: 'ToCurrency("37.9|USD") % 9.5', output: "AR_OP_CUR_MOD_CUR_DEC_EX_OUT_0" }] }, { description: "AR_OP_CUR_MOD_CUR_LNG_DSC", identifier: "Currency_ONE mod(Currency_ONE,Long_ONE)", support: { version: "1.0", resolver: "None" }, returnValue: { description: "AR_OP_CUR_MOD_CUR_LNG_RV", isArray: false, type: "cur" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_OP_CUR_MOD_CUR_LNG_PRM_DSC_0", identifier: "dividend", isArray: false, helpDisplayIdx: 0, repeatable: false, required: true, type: "cur" }, { allowNotSet: false, allowCustomJson: false, description: "AR_OP_CUR_MOD_CUR_LNG_PRM_DSC_1", identifier: "divisor", isArray: false, helpDisplayIdx: 1, repeatable: false, required: true, type: "int", disallowZero: true }], examples: [{ input: 'MakeCurrency(37.95, "USD") % 9', output: "AR_OP_CUR_MOD_CUR_LNG_EX_OUT_0" }] }] }, not: { identifier: "not", description: "AR_OP_DSC_NOT", type: "operator", symbol: "!", category: "unary", overloads: [{ description: "AR_OP_BLN_NOT_BLN_DSC", identifier: "Boolean_ONE not(Boolean_ONE)", support: { version: "1.0", resolver: "None" }, returnValue: { description: "AR_OP_BLN_NOT_BLN_RV", isArray: false, type: "bln" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_OP_BLN_NOT_BLN_PRM_DSC_0", identifier: "booleanValue", isArray: false, helpDisplayIdx: 0, repeatable: false, required: true, type: "bln" }], examples: [{ input: "!true", output: "false" }, { input: "!( 5 == 3 )", output: "true" }] }] }, neg: { identifier: "neg", description: "AR_OP_DSC_NEG", type: "operator", symbol: "-", category: "unary", overloads: [{ description: "AR_OP_CUR_NEG_CUR_DSC", identifier: "Currency_ONE neg(Currency_ONE)", support: { version: "1.0", resolver: "None" }, returnValue: { description: "AR_OP_CUR_NEG_CUR_RV", isArray: false, type: "cur" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_OP_CUR_NEG_CUR_PRM_DSC_0", identifier: "valueToNegate", isArray: false, helpDisplayIdx: 0, repeatable: false, required: true, type: "cur" }], examples: [{ input: '- MakeCurrency(5.25, "USD")', output: "AR_OP_CUR_NEG_CUR_EX_OUT_0" }, { input: '- MakeCurrency(0.0, "USD")', output: "AR_OP_CUR_NEG_CUR_EX_OUT_1" }] }, { description: "AR_OP_LNG_NEG_LNG_DSC", identifier: "Long_ONE neg(Long_ONE)", support: { version: "1.0", resolver: "None" }, returnValue: { description: "AR_OP_LNG_NEG_LNG_RV", isArray: false, type: "int" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_OP_LNG_NEG_LNG_PRM_DSC_0", identifier: "valueToNegate", isArray: false, helpDisplayIdx: 0, repeatable: false, required: true, type: "int" }], examples: [{ input: "-( 3 + 2 )", output: "-5" }, { input: "-( 0 )", output: "0" }] }, { description: "AR_OP_DEC_NEG_DEC_DSC", identifier: "Decimal_ONE neg(Decimal_ONE)", support: { version: "1.0", resolver: "None" }, returnValue: { description: "AR_OP_DEC_NEG_DEC_RV", isArray: false, type: "dec" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_OP_DEC_NEG_DEC_PRM_DSC_0", identifier: "valueToNegate", isArray: false, helpDisplayIdx: 0, repeatable: false, required: true, type: "dec" }], examples: [{ input: "-( 3.5 + 2.7 )", output: "-6.2" }, { input: "- ( 0.0 )", output: "0.0" }] }, { description: "AR_OP_DUR_NEG_DUR_DSC", identifier: "Duration_ONE neg(Duration_ONE)", support: { version: "1.0", resolver: "None" }, returnValue: { description: "AR_OP_DUR_NEG_DUR_RV", isArray: false, type: "dur" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_OP_DUR_NEG_DUR_PRM_DSC_0", identifier: "valueToNegate", isArray: false, helpDisplayIdx: 0, repeatable: false, required: true, type: "dur" }], examples: [{ input: "- MakeDuration(10, 0, 0, 0)", output: "AR_OP_DUR_NEG_DUR_EX_OUT_0" }] }] }, and: { identifier: "and", description: "AR_OP_DSC_AND", type: "operator", symbol: "and", category: "logical", overloads: [{ description: "AR_OP_BLN_LOGICALAND_BLN_BLN_DSC", identifier: "Boolean_ONE logicalAnd(Boolean_ONE,Boolean_ONE)", support: { version: "1.0", resolver: "None" }, returnValue: { description: "AR_OP_BLN_LOGICALAND_BLN_BLN_RV", isArray: false, type: "bln" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_OP_BLN_LOGICALAND_BLN_BLN_PRM_DSC_0", identifier: "value1", isArray: false, helpDisplayIdx: 0, repeatable: false, required: true, type: "bln" }, { allowNotSet: false, allowCustomJson: false, description: "AR_OP_BLN_LOGICALAND_BLN_BLN_PRM_DSC_1", identifier: "value2", isArray: false, helpDisplayIdx: 1, repeatable: false, required: true, type: "bln" }], examples: [{ input: "true And false", output: "false" }, { input: "( 5 == 5 ) and ( 3 != 4 )", output: "true" }, { input: "true AND ( 3 > 4 )", output: "false" }] }] }, or: { identifier: "or", description: "AR_OP_DSC", type: "operator", symbol: "or", category: "logical", overloads: [{ description: "AR_OP_BLN_LOGICALOR_BLN_BLN_DSC", identifier: "Boolean_ONE logicalOr(Boolean_ONE,Boolean_ONE)", support: { version: "1.0", resolver: "None" }, returnValue: { description: "AR_OP_BLN_LOGICALOR_BLN_BLN_RV", isArray: false, type: "bln" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_OP_BLN_LOGICALOR_BLN_BLN_PRM_DSC_0", identifier: "value1", isArray: false, helpDisplayIdx: 0, repeatable: false, required: true, type: "bln" }, { allowNotSet: false, allowCustomJson: false, description: "AR_OP_BLN_LOGICALOR_BLN_BLN_PRM_DSC_1", identifier: "value2", isArray: false, helpDisplayIdx: 1, repeatable: false, required: true, type: "bln" }], examples: [{ input: "true Or false", output: "true" }, { input: "( 5 == 5 ) or ( 3 != 4 )", output: "true" }, { input: "false OR ( 3 > 4 )", output: "false" }] }] }, gt: { identifier: "gt", description: "AR_OP_DSC_GT", type: "operator", symbol: ">", category: "comparison", overloads: [{ description: "AR_OP_BLN_GT_DATE_DATE_DSC", identifier: "Boolean_ONE gt(Date_ONE,Date_ONE)", support: { version: "1.0", resolver: "None" }, needsServerInfo: true, returnValue: { description: "AR_OP_BLN_GT_DATE_DATE_RV", isArray: false, type: "bln" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_OP_BLN_GT_DATE_DATE_PRM_DSC_0", identifier: "valueToCompare", isArray: false, helpDisplayIdx: 0, repeatable: false, required: true, type: "dat" }, { allowNotSet: false, allowCustomJson: false, description: "AR_OP_BLN_GT_DATE_DATE_PRM_DSC_1", identifier: "valueToCompareTo", isArray: false, helpDisplayIdx: 1, repeatable: false, required: true, type: "dat" }], examples: [{ input: "MakeDate(2011, 3, 20) > MakeDate(2010, 3, 20)", output: "true" }, { input: "MakeDate(2010, 1, 15) > MakeDate(2010, 1, 15)", output: "false" }] }, { description: "AR_OP_BLN_GT_LNG_DEC_DSC", identifier: "Boolean_ONE gt(Long_ONE,Decimal_ONE)", support: { version: "1.0", resolver: "None" }, returnValue: { description: "AR_OP_BLN_GT_LNG_DEC_RV", isArray: false, type: "bln" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_OP_BLN_GT_LNG_DEC_PRM_DSC_0", identifier: "valueToCompare", isArray: false, helpDisplayIdx: 0, repeatable: false, required: true, type: "int" }, { allowNotSet: false, allowCustomJson: false, description: "AR_OP_BLN_GT_LNG_DEC_PRM_DSC_1", identifier: "valueToCompareTo", isArray: false, helpDisplayIdx: 1, repeatable: false, required: true, type: "dec" }], examples: [{ input: "7 > 5.2", output: "true" }] }, { description: "AR_OP_BLN_GT_DEC_LNG_DSC", identifier: "Boolean_ONE gt(Decimal_ONE,Long_ONE", support: { version: "1.0", resolver: "None" }, returnValue: { description: "AR_OP_BLN_GT_DEC_LNG_RV", isArray: false, type: "bln" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_OP_BLN_GT_DEC_LNG_PRM_DSC_0", identifier: "valueToCompare", isArray: false, helpDisplayIdx: 0, repeatable: false, required: true, type: "dec" }, { allowNotSet: false, allowCustomJson: false, description: "AR_OP_BLN_GT_DEC_LNG_PRM_DSC_1", identifier: "valueToCompareTo", isArray: false, helpDisplayIdx: 1, repeatable: false, required: true, type: "int" }], examples: [{ input: "7.2 > 5", output: "true" }] }, { description: "AR_OP_BLN_GT_CUR_CUR_DSC", identifier: "Boolean_ONE gt(Currency_ONE,Currency_ONE)", support: { version: "1.0", resolver: "None" }, returnValue: { description: "AR_OP_BLN_GT_CUR_CUR_RV", isArray: false, type: "bln" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_OP_BLN_GT_CUR_CUR_PRM_DSC_0", identifier: "valueToCompare", isArray: false, helpDisplayIdx: 0, repeatable: false, required: true, type: "cur" }, { allowNotSet: false, allowCustomJson: false, description: "AR_OP_BLN_GT_CUR_CUR_PRM_DSC_1", identifier: "valueToCompareTo", isArray: false, helpDisplayIdx: 1, repeatable: false, required: true, type: "cur" }], examples: [{ input: 'ToCurrency("6.50|USD") > MakeCurrency(6.10, "USD")', output: "true" }] }, { description: "AR_OP_BLN_GT_DTM_DTM_DSC", identifier: "Boolean_ONE gt(DateTime_ONE,DateTime_ONE)", support: { version: "1.0", resolver: "None" }, returnValue: { description: "AR_OP_BLN_GT_DTM_DTM_RV", isArray: false, type: "bln" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_OP_BLN_GT_DTM_DTM_PRM_DSC_0", identifier: "valueToCompare", isArray: false, helpDisplayIdx: 0, repeatable: false, required: true, type: "dtm" }, { allowNotSet: false, allowCustomJson: false, description: "AR_OP_BLN_GT_DTM_DTM_PRM_DSC_1", identifier: "valueToCompareTo", isArray: false, helpDisplayIdx: 1, repeatable: false, required: true, type: "dtm" }], examples: [{ input: "MakeDateTime(2009, 3, 20, 12, 00, 00) > MakeDateTime(2010, 3, 20, 12, 00, 00)", output: "false" }, { input: "MakeDateTime(2025, 3, 24, 12, 00, 00) > MakeDateTime(2010, 3, 20, 12, 00, 00)", output: "true" }] }, { description: "AR_OP_BLN_GT_DEC_DEC_DSC", identifier: "Boolean_ONE gt(Decimal_ONE,Decimal_ONE)", support: { version: "1.0", resolver: "None" }, returnValue: { description: "AR_OP_BLN_GT_DEC_DEC_RV", isArray: false, type: "bln" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_OP_BLN_GT_DEC_DEC_PRM_DSC_0", identifier: "valueToCompare", isArray: false, helpDisplayIdx: 0, repeatable: false, required: true, type: "dec" }, { allowNotSet: false, allowCustomJson: false, description: "AR_OP_BLN_GT_DEC_DEC_PRM_DSC_1", identifier: "valueToCompareTo", isArray: false, helpDisplayIdx: 1, repeatable: false, required: true, type: "dec" }], examples: [{ input: "9.2 > 7.7", output: "true" }, { input: "9.2 > 11.7", output: "false" }] }, { description: "AR_OP_BLN_GT_DUR_DUR_DSC", identifier: "Boolean_ONE gt(Duration_ONE,Duration_ONE)", support: { version: "1.0", resolver: "None" }, returnValue: { description: "AR_OP_BLN_GT_DUR_DUR_RV", isArray: false, type: "bln" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_OP_BLN_GT_DUR_DUR_PRM_DSC_0", identifier: "valueToCompare", isArray: false, helpDisplayIdx: 0, repeatable: false, required: true, type: "dur" }, { allowNotSet: false, allowCustomJson: false, description: "AR_OP_BLN_GT_DUR_DUR_PRM_DSC_1", identifier: "valueToCompareTo", isArray: false, helpDisplayIdx: 1, repeatable: false, required: true, type: "dur" }], examples: [{ input: "MakeDuration(0, 2, 30, 0) > MakeDuration(0, 1, 59, 59)", output: "true" }] }, { description: "AR_OP_BLN_GT_LNG_LNG_DSC", identifier: "Boolean_ONE gt(Long_ONE,Long_ONE)", support: { version: "1.0", resolver: "None" }, returnValue: { description: "AR_OP_BLN_GT_LNG_LNG_RV", isArray: false, type: "bln" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_OP_BLN_GT_LNG_LNG_PRM_DSC_0", identifier: "valueToCompare", isArray: false, helpDisplayIdx: 0, repeatable: false, required: true, type: "int" }, { allowNotSet: false, allowCustomJson: false, description: "AR_OP_BLN_GT_LNG_LNG_PRM_DSC_1", identifier: "valueToCompareTo", isArray: false, helpDisplayIdx: 1, repeatable: false, required: true, type: "int" }], examples: [{ input: "150 > 125", output: "true" }] }, { description: "AR_OP_BLN_GT_STR_STR_DSC", identifier: "Boolean_ONE gt(String_ONE,String_ONE)", support: { version: "1.0", resolver: "None" }, returnValue: { description: "AR_OP_BLN_GT_STR_STR_RV", isArray: false, type: "bln" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_OP_BLN_GT_STR_STR_PRM_DSC_0", identifier: "valueToCompare", isArray: false, helpDisplayIdx: 0, repeatable: false, required: true, type: "str" }, { allowNotSet: false, allowCustomJson: false, description: "AR_OP_BLN_GT_STR_STR_PRM_DSC_1", identifier: "valueToCompareTo", isArray: false, helpDisplayIdx: 1, repeatable: false, required: true, type: "str" }], examples: [{ input: '"Hello" > "World"', output: "false" }] }, { description: "AR_OP_BLN_GT_TIME_TIME_DSC", identifier: "Boolean_ONE gt(Time_ONE,Time_ONE)", support: { version: "1.0", resolver: "None" }, needsServerInfo: true, returnValue: { description: "AR_OP_BLN_GT_TIME_TIME_RV", isArray: false, type: "bln" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_OP_BLN_GT_TIME_TIME_PRM_DSC_0", identifier: "valueToCompare", isArray: false, helpDisplayIdx: 0, repeatable: false, required: true, type: "tim" }, { allowNotSet: false, allowCustomJson: false, description: "AR_OP_BLN_GT_TIME_TIME_PRM_DSC_1", identifier: "valueToCompareTo", isArray: false, helpDisplayIdx: 1, repeatable: false, required: true, type: "tim" }], examples: [{ input: "MakeTime(15, 30, 0) > MakeTime(12, 0, 0)", output: "true" }, { input: "MakeTime(1, 0, 0) > MakeTime(1, 0, 0)", output: "false" }] }], needsServerInfo: true }, gte: { identifier: "gte", description: "AR_OP_DSC_GTE", type: "operator", symbol: ">=", category: "comparison", overloads: [{ description: "AR_OP_BLN_GTE_DATE_DATE_DSC", identifier: "Boolean_ONE gte(Date_ONE,Date_ONE)", support: { version: "1.0", resolver: "None" }, needsServerInfo: true, returnValue: { description: "AR_OP_BLN_GTE_DATE_DATE_RV", isArray: false, type: "bln" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_OP_BLN_GTE_DATE_DATE_PRM_DSC_0", identifier: "valueToCompare", isArray: false, helpDisplayIdx: 0, repeatable: false, required: true, type: "dat" }, { allowNotSet: false, allowCustomJson: false, description: "AR_OP_BLN_GTE_DATE_DATE_PRM_DSC_1", identifier: "valueToCompareTo", isArray: false, helpDisplayIdx: 1, repeatable: false, required: true, type: "dat" }], examples: [{ input: "MakeDate(2011, 3, 20) >= MakeDate(2010, 3, 20)", output: "true" }, { input: "MakeDate(2009, 3, 20) >= MakeDate(2010, 3, 20)", output: "false" }, { input: "MakeDate(2010, 1, 15) >= MakeDate(2010, 1, 15)", output: "true" }] }, { description: "AR_OP_BLN_GTE_LNG_DEC_DSC", identifier: "Boolean_ONE gte(Long_ONE,Decimal_ONE)", support: { version: "1.0", resolver: "None" }, returnValue: { description: "AR_OP_BLN_GTE_LNG_DEC_RV", isArray: false, type: "bln" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_OP_BLN_GTE_LNG_DEC_PRM_DSC_0", identifier: "valueToCompare", isArray: false, helpDisplayIdx: 0, repeatable: false, required: true, type: "int" }, { allowNotSet: false, allowCustomJson: false, description: "AR_OP_BLN_GTE_LNG_DEC_PRM_DSC_1", identifier: "valueToCompareTo", isArray: false, helpDisplayIdx: 1, repeatable: false, required: true, type: "dec" }], examples: [{ input: "7 >= 5.2", output: "true" }] }, { description: "AR_OP_BLN_GTE_DEC_LNG_DSC", identifier: "Boolean_ONE gte(Decimal_ONE,Long_ONE", support: { version: "1.0", resolver: "None" }, returnValue: { description: "AR_OP_BLN_GTE_DEC_LNG_RV", isArray: false, type: "bln" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_OP_BLN_GTE_DEC_LNG_PRM_DSC_0", identifier: "valueToCompare", isArray: false, helpDisplayIdx: 0, repeatable: false, required: true, type: "dec" }, { allowNotSet: false, allowCustomJson: false, description: "AR_OP_BLN_GTE_DEC_LNG_PRM_DSC_1", identifier: "valueToCompareTo", isArray: false, helpDisplayIdx: 1, repeatable: false, required: true, type: "int" }], examples: [{ input: "7.2 >= 5", output: "true" }] }, { description: "AR_OP_BLN_GTE_CUR_CUR_DSC", identifier: "Boolean_ONE gte(Currency_ONE,Currency_ONE)", support: { version: "1.0", resolver: "None" }, returnValue: { description: "AR_OP_BLN_GTE_CUR_CUR_RV", isArray: false, type: "bln" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_OP_BLN_GTE_CUR_CUR_PRM_DSC_0", identifier: "valueToCompare", isArray: false, helpDisplayIdx: 0, repeatable: false, required: true, type: "cur" }, { allowNotSet: false, allowCustomJson: false, description: "AR_OP_BLN_GTE_CUR_CUR_PRM_DSC_1", identifier: "valueToCompareTo", isArray: false, helpDisplayIdx: 1, repeatable: false, required: true, type: "cur" }], examples: [{ input: 'ToCurrency("6.50|USD") >= ToCurrency("6.10|USD")', output: "true" }] }, { description: "AR_OP_BLN_GTE_DTM_DTM_DSC", identifier: "Boolean_ONE gte(DateTime_ONE,DateTime_ONE)", support: { version: "1.0", resolver: "None" }, returnValue: { description: "AR_OP_BLN_GTE_DTM_DTM_RV", isArray: false, type: "bln" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_OP_BLN_GTE_DTM_DTM_PRM_DSC_0", identifier: "valueToCompare", isArray: false, helpDisplayIdx: 0, repeatable: false, required: true, type: "dtm" }, { allowNotSet: false, allowCustomJson: false, description: "AR_OP_BLN_GTE_DTM_DTM_PRM_DSC_1", identifier: "valueToCompareTo", isArray: false, helpDisplayIdx: 1, repeatable: false, required: true, type: "dtm" }], examples: [{ input: "MakeDateTime(2009, 3, 20, 12, 00, 00) >= MakeDateTime(2010, 3, 20, 12, 00, 00)", output: "false" }] }, { description: "AR_OP_BLN_GTE_DEC_DEC_DSC", identifier: "Boolean_ONE gte(Decimal_ONE,Decimal_ONE)", support: { version: "1.0", resolver: "None" }, returnValue: { description: "AR_OP_BLN_GTE_DEC_DEC_RV", isArray: false, type: "bln" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_OP_BLN_GTE_DEC_DEC_PRM_DSC_0", identifier: "valueToCompare", isArray: false, helpDisplayIdx: 0, repeatable: false, required: true, type: "dec" }, { allowNotSet: false, allowCustomJson: false, description: "AR_OP_BLN_GTE_DEC_DEC_PRM_DSC_1", identifier: "valueToCompareTo", isArray: false, helpDisplayIdx: 1, repeatable: false, required: true, type: "dec" }], examples: [{ input: "9.2 >= 7.7", output: "true" }, { input: "9.2 >= 11.7", output: "false" }] }, { description: "AR_OP_BLN_GTE_DUR_DUR_DSC", identifier: "Boolean_ONE gte(Duration_ONE,Duration_ONE)", support: { version: "1.0", resolver: "None" }, returnValue: { description: "AR_OP_BLN_GTE_DUR_DUR_RV", isArray: false, type: "bln" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_OP_BLN_GTE_DUR_DUR_PRM_DSC_0", identifier: "valueToCompare", isArray: false, helpDisplayIdx: 0, repeatable: false, required: true, type: "dur" }, { allowNotSet: false, allowCustomJson: false, description: "AR_OP_BLN_GTE_DUR_DUR_PRM_DSC_1", identifier: "valueToCompareTo", isArray: false, helpDisplayIdx: 1, repeatable: false, required: true, type: "dur" }], examples: [{ input: "MakeDuration(0, 2, 30, 0) >= MakeDuration(0, 1, 59, 59)", output: "true" }] }, { description: "AR_OP_BLN_GTE_LNG_LNG_DSC", identifier: "Boolean_ONE gte(Long_ONE,Long_ONE)", support: { version: "1.0", resolver: "None" }, returnValue: { description: "AR_OP_BLN_GTE_LNG_LNG_RV", isArray: false, type: "bln" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_OP_BLN_GTE_LNG_LNG_PRM_DSC_0", identifier: "valueToCompare", isArray: false, helpDisplayIdx: 0, repeatable: false, required: true, type: "int" }, { allowNotSet: false, allowCustomJson: false, description: "AR_OP_BLN_GTE_LNG_LNG_PRM_DSC_1", identifier: "valueToCompareTo", isArray: false, helpDisplayIdx: 1, repeatable: false, required: true, type: "int" }], examples: [{ input: "150 >= 125", output: "true" }] }, { description: "AR_OP_BLN_GTE_STR_STR_DSC", identifier: "Boolean_ONE gte(String_ONE,String_ONE)", support: { version: "1.0", resolver: "None" }, returnValue: { description: "AR_OP_BLN_GTE_STR_STR_RV", isArray: false, type: "bln" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_OP_BLN_GTE_STR_STR_PRM_DSC_0", identifier: "valueToCompare", isArray: false, helpDisplayIdx: 0, repeatable: false, required: true, type: "str" }, { allowNotSet: false, allowCustomJson: false, description: "AR_OP_BLN_GTE_STR_STR_PRM_DSC_1", identifier: "valueToCompareTo", isArray: false, helpDisplayIdx: 1, repeatable: false, required: true, type: "str" }], examples: [{ input: '"Hello" >= "World"', output: "false" }] }, { description: "AR_OP_BLN_GTE_TIME_TIME_DSC", identifier: "Boolean_ONE gte(Time_ONE,Time_ONE)", support: { version: "1.0", resolver: "None" }, needsServerInfo: true, returnValue: { description: "AR_OP_BLN_GTE_TIME_TIME_RV", isArray: false, type: "bln" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_OP_BLN_GTE_TIME_TIME_PRM_DSC_0", identifier: "valueToCompare", isArray: false, helpDisplayIdx: 0, repeatable: false, required: true, type: "tim" }, { allowNotSet: false, allowCustomJson: false, description: "AR_OP_BLN_GTE_TIME_TIME_PRM_DSC_1", identifier: "valueToCompareTo", isArray: false, helpDisplayIdx: 1, repeatable: false, required: true, type: "tim" }], examples: [{ input: "MakeTime(15, 30, 0) >= MakeTime(12, 0, 0)", output: "true" }, { input: "MakeTime(0, 30, 0) >= MakeTime(1, 0, 0)", output: "false" }, { input: "MakeTime(1, 0, 0) >= MakeTime(1, 0, 0)", output: "true" }] }], needsServerInfo: true }, lt: { identifier: "lt", description: "AR_OP_DSC_LT", type: "operator", symbol: "<", category: "comparison", overloads: [{ description: "AR_OP_BLN_LT_LNG_DEC_DSC", identifier: "Boolean_ONE lt(Long_ONE,Decimal_ONE)", support: { version: "1.0", resolver: "None" }, returnValue: { description: "AR_OP_BLN_LT_LNG_DEC_RV", isArray: false, type: "bln" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_OP_BLN_LT_LNG_DEC_PRM_DSC_0", identifier: "valueToCompare", isArray: false, helpDisplayIdx: 0, repeatable: false, required: true, type: "int" }, { allowNotSet: false, allowCustomJson: false, description: "AR_OP_BLN_LT_LNG_DEC_PRM_DSC_1", identifier: "valueToCompareTo", isArray: false, helpDisplayIdx: 1, repeatable: false, required: true, type: "dec" }], examples: [{ input: "7 < 5.2", output: "false" }] }, { description: "AR_OP_BLN_LT_DEC_LNG_DSC", identifier: "Boolean_ONE lt(Decimal_ONE,Long_ONE", support: { version: "1.0", resolver: "None" }, returnValue: { description: "AR_OP_BLN_LT_DEC_LNG_RV", isArray: false, type: "bln" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_OP_BLN_LT_DEC_LNG_PRM_DSC_0", identifier: "valueToCompare", isArray: false, helpDisplayIdx: 0, repeatable: false, required: true, type: "dec" }, { allowNotSet: false, allowCustomJson: false, description: "AR_OP_BLN_LT_DEC_LNG_PRM_DSC_1", identifier: "valueToCompareTo", isArray: false, helpDisplayIdx: 1, repeatable: false, required: true, type: "int" }], examples: [{ input: "7.2 < 5", output: "false" }] }, { description: "AR_OP_BLN_LT_CUR_CUR_DSC", identifier: "Boolean_ONE lt(Currency_ONE,Currency_ONE)", support: { version: "1.0", resolver: "None" }, returnValue: { description: "AR_OP_BLN_LT_CUR_CUR_RV", isArray: false, type: "bln" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_OP_BLN_LT_CUR_CUR_PRM_DSC_0", identifier: "valueToCompare", isArray: false, helpDisplayIdx: 0, repeatable: false, required: true, type: "cur" }, { allowNotSet: false, allowCustomJson: false, description: "AR_OP_BLN_LT_CUR_CUR_PRM_DSC_1", identifier: "valueToCompareTo", isArray: false, helpDisplayIdx: 1, repeatable: false, required: true, type: "cur" }], examples: [{ input: 'ToCurrency("6.50|USD") < ToCurrency("6.10|USD")', output: "false" }] }, { description: "AR_OP_BLN_LT_DATE_DATE_DSC", identifier: "Boolean_ONE lt(Date_ONE,Date_ONE)", support: { version: "1.0", resolver: "None" }, needsServerInfo: true, returnValue: { description: "AR_OP_BLN_LT_DATE_DATE_RV", isArray: false, type: "bln" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_OP_BLN_LT_DATE_DATE_PRM_DSC_0", identifier: "valueToCompare", isArray: false, helpDisplayIdx: 0, repeatable: false, required: true, type: "dat" }, { allowNotSet: false, allowCustomJson: false, description: "AR_OP_BLN_LT_DATE_DATE_PRM_DSC_1", identifier: "valueToCompareTo", isArray: false, helpDisplayIdx: 1, repeatable: false, required: true, type: "dat" }], examples: [{ input: "MakeDate(2009, 3, 20) < MakeDate(2010, 3, 20)", output: "true" }, { input: "MakeDate(2010, 1, 15) < MakeDate(2010, 1, 15)", output: "false" }] }, { description: "AR_OP_BLN_LT_DTM_DTM_DSC", identifier: "Boolean_ONE lt(DateTime_ONE,DateTime_ONE)", support: { version: "1.0", resolver: "None" }, returnValue: { description: "AR_OP_BLN_LT_DTM_DTM_RV", isArray: false, type: "bln" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_OP_BLN_LT_DTM_DTM_PRM_DSC_0", identifier: "valueToCompare", isArray: false, helpDisplayIdx: 0, repeatable: false, required: true, type: "dtm" }, { allowNotSet: false, allowCustomJson: false, description: "AR_OP_BLN_LT_DTM_DTM_PRM_DSC_1", identifier: "valueToCompareTo", isArray: false, helpDisplayIdx: 1, repeatable: false, required: true, type: "dtm" }], examples: [{ input: "MakeDateTime(2009, 3, 20, 12, 00, 00) < MakeDateTime(2010, 3, 20, 12, 00, 00)", output: "true" }] }, { description: "AR_OP_BLN_LT_DEC_DEC_DSC", identifier: "Boolean_ONE lt(Decimal_ONE,Decimal_ONE)", support: { version: "1.0", resolver: "None" }, returnValue: { description: "AR_OP_BLN_LT_DEC_DEC_RV", isArray: false, type: "bln" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_OP_BLN_LT_DEC_DEC_PRM_DSC_0", identifier: "valueToCompare", isArray: false, helpDisplayIdx: 0, repeatable: false, required: true, type: "dec" }, { allowNotSet: false, allowCustomJson: false, description: "AR_OP_BLN_LT_DEC_DEC_PRM_DSC_1", identifier: "valueToCompareTo", isArray: false, helpDisplayIdx: 1, repeatable: false, required: true, type: "dec" }], examples: [{ input: "9.2 < 7.7", output: "false" }, { input: "9.2 < 11.7", output: "true" }] }, { description: "AR_OP_BLN_LT_DUR_DUR_DSC", identifier: "Boolean_ONE lt(Duration_ONE,Duration_ONE)", support: { version: "1.0", resolver: "None" }, returnValue: { description: "AR_OP_BLN_LT_DUR_DUR_RV", isArray: false, type: "bln" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_OP_BLN_LT_DUR_DUR_PRM_DSC_0", identifier: "valueToCompare", isArray: false, helpDisplayIdx: 0, repeatable: false, required: true, type: "dur" }, { allowNotSet: false, allowCustomJson: false, description: "AR_OP_BLN_LT_DUR_DUR_PRM_DSC_1", identifier: "valueToCompareTo", isArray: false, helpDisplayIdx: 1, repeatable: false, required: true, type: "dur" }], examples: [{ input: "MakeDuration(0, 2, 30, 0) < MakeDuration(0, 1, 59, 59)", output: "false" }] }, { description: "AR_OP_BLN_LT_LNG_LNG_DSC", identifier: "Boolean_ONE lt(Long_ONE,Long_ONE)", support: { version: "1.0", resolver: "None" }, returnValue: { description: "AR_OP_BLN_LT_LNG_LNG_RV", isArray: false, type: "bln" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_OP_BLN_LT_LNG_LNG_PRM_DSC_0", identifier: "valueToCompare", isArray: false, helpDisplayIdx: 0, repeatable: false, required: true, type: "int" }, { allowNotSet: false, allowCustomJson: false, description: "AR_OP_BLN_LT_LNG_LNG_PRM_DSC_1", identifier: "valueToCompareTo", isArray: false, helpDisplayIdx: 1, repeatable: false, required: true, type: "int" }], examples: [{ input: "150 < 125", output: "false" }] }, { description: "AR_OP_BLN_LT_STR_STR_DSC", identifier: "Boolean_ONE lt(String_ONE,String_ONE)", support: { version: "1.0", resolver: "None" }, returnValue: { description: "AR_OP_BLN_LT_STR_STR_RV", isArray: false, type: "bln" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_OP_BLN_LT_STR_STR_PRM_DSC_0", identifier: "valueToCompare", isArray: false, helpDisplayIdx: 0, repeatable: false, required: true, type: "str" }, { allowNotSet: false, allowCustomJson: false, description: "AR_OP_BLN_LT_STR_STR_PRM_DSC_1", identifier: "valueToCompareTo", isArray: false, helpDisplayIdx: 1, repeatable: false, required: true, type: "str" }], examples: [{ input: '"Hello" < "World"', output: "true" }] }, { description: "AR_OP_BLN_LT_TIME_TIME_DSC", identifier: "Boolean_ONE lt(Time_ONE,Time_ONE)", support: { version: "1.0", resolver: "None" }, needsServerInfo: true, returnValue: { description: "AR_OP_BLN_LT_TIME_TIME_RV", isArray: false, type: "bln" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_OP_BLN_LT_TIME_TIME_PRM_DSC_0", identifier: "valueToCompare", isArray: false, helpDisplayIdx: 0, repeatable: false, required: true, type: "tim" }, { allowNotSet: false, allowCustomJson: false, description: "AR_OP_BLN_LT_TIME_TIME_PRM_DSC_1", identifier: "valueToCompareTo", isArray: false, helpDisplayIdx: 1, repeatable: false, required: true, type: "tim" }], examples: [{ input: "MakeTime(3, 30, 0) < MakeTime(12, 0, 0)", output: "true" }, { input: "MakeTime(1, 0, 0) < MakeTime(1, 0, 0)", output: "false" }] }], needsServerInfo: true }, lte: { identifier: "lte", description: "AR_OP_DSC_LTE", type: "operator", symbol: "<=", category: "comparison", overloads: [{ description: "AR_OP_BLN_LTE_LNG_DEC_DSC", identifier: "Boolean_ONE lte(Long_ONE,Decimal_ONE)", support: { version: "1.0", resolver: "None" }, returnValue: { description: "AR_OP_BLN_LTE_LNG_DEC_RV", isArray: false, type: "bln" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_OP_BLN_LTE_LNG_DEC_PRM_DSC_0", identifier: "valueToCompare", isArray: false, helpDisplayIdx: 0, repeatable: false, required: true, type: "int" }, { allowNotSet: false, allowCustomJson: false, description: "AR_OP_BLN_LTE_LNG_DEC_PRM_DSC_1", identifier: "valueToCompareTo", isArray: false, helpDisplayIdx: 1, repeatable: false, required: true, type: "dec" }], examples: [{ input: "7 <= 5.2", output: "false" }] }, { description: "AR_OP_BLN_LTE_DATE_DATE_DSC", identifier: "Boolean_ONE lte(Date_ONE,Date_ONE)", support: { version: "1.0", resolver: "None" }, needsServerInfo: true, returnValue: { description: "AR_OP_BLN_LTE_DATE_DATE_RV", isArray: false, type: "bln" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_OP_BLN_LTE_DATE_DATE_PRM_DSC_0", identifier: "valueToCompare", isArray: false, helpDisplayIdx: 0, repeatable: false, required: true, type: "dat" }, { allowNotSet: false, allowCustomJson: false, description: "AR_OP_BLN_LTE_DATE_DATE_PRM_DSC_1", identifier: "valueToCompareTo", isArray: false, helpDisplayIdx: 1, repeatable: false, required: true, type: "dat" }], examples: [{ input: "MakeDate(2009, 3, 20) <= MakeDate(2010, 3, 20)", output: "true" }, { input: "MakeDate(2010, 1, 15) <= MakeDate(2010, 1, 15)", output: "true" }] }, { description: "AR_OP_BLN_LTE_DEC_LNG_DSC", identifier: "Boolean_ONE lte(Decimal_ONE,Long_ONE", support: { version: "1.0", resolver: "None" }, returnValue: { description: "AR_OP_BLN_LTE_DEC_LNG_RV", isArray: false, type: "bln" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_OP_BLN_LTE_DEC_LNG_PRM_DSC_0", identifier: "valueToCompare", isArray: false, helpDisplayIdx: 0, repeatable: false, required: true, type: "dec" }, { allowNotSet: false, allowCustomJson: false, description: "AR_OP_BLN_LTE_DEC_LNG_PRM_DSC_1", identifier: "valueToCompareTo", isArray: false, helpDisplayIdx: 1, repeatable: false, required: true, type: "int" }], examples: [{ input: "7.2 <= 5", output: "false" }] }, { description: "AR_OP_BLN_LTE_CUR_CUR_DSC", identifier: "Boolean_ONE lte(Currency_ONE,Currency_ONE)", support: { version: "1.0", resolver: "None" }, returnValue: { description: "AR_OP_BLN_LTE_CUR_CUR_RV", isArray: false, type: "bln" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_OP_BLN_LTE_CUR_CUR_PRM_DSC_0", identifier: "valueToCompare", isArray: false, helpDisplayIdx: 0, repeatable: false, required: true, type: "cur" }, { allowNotSet: false, allowCustomJson: false, description: "AR_OP_BLN_LTE_CUR_CUR_PRM_DSC_1", identifier: "valueToCompareTo", isArray: false, helpDisplayIdx: 1, repeatable: false, required: true, type: "cur" }], examples: [{ input: 'ToCurrency("6.50|USD") <= ToCurrency("6.10|USD")', output: "false" }] }, { description: "AR_OP_BLN_LTE_DTM_DTM_DSC", identifier: "Boolean_ONE lte(DateTime_ONE,DateTime_ONE)", support: { version: "1.0", resolver: "None" }, returnValue: { description: "AR_OP_BLN_LTE_DTM_DTM_RV", isArray: false, type: "bln" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_OP_BLN_LTE_DTM_DTM_PRM_DSC_0", identifier: "valueToCompare", isArray: false, helpDisplayIdx: 0, repeatable: false, required: true, type: "dtm" }, { allowNotSet: false, allowCustomJson: false, description: "AR_OP_BLN_LTE_DTM_DTM_PRM_DSC_1", identifier: "valueToCompareTo", isArray: false, helpDisplayIdx: 1, repeatable: false, required: true, type: "dtm" }], examples: [{ input: "MakeDateTime(2009, 3, 20, 12, 00, 00) <= MakeDateTime(2010, 3, 20, 12, 00, 00)", output: "true" }] }, { description: "AR_OP_BLN_LTE_DEC_DEC_DSC", identifier: "Boolean_ONE lte(Decimal_ONE,Decimal_ONE)", support: { version: "1.0", resolver: "None" }, returnValue: { description: "AR_OP_BLN_LTE_DEC_DEC_RV", isArray: false, type: "bln" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_OP_BLN_LTE_DEC_DEC_PRM_DSC_0", identifier: "valueToCompare", isArray: false, helpDisplayIdx: 0, repeatable: false, required: true, type: "dec" }, { allowNotSet: false, allowCustomJson: false, description: "AR_OP_BLN_LTE_DEC_DEC_PRM_DSC_1", identifier: "valueToCompareTo", isArray: false, helpDisplayIdx: 1, repeatable: false, required: true, type: "dec" }], examples: [{ input: "9.2 <= 7.7", output: "false" }, { input: "9.2 <= 11.7", output: "true" }] }, { description: "AR_OP_BLN_LTE_DUR_DUR_DSC", identifier: "Boolean_ONE lte(Duration_ONE,Duration_ONE)", support: { version: "1.0", resolver: "None" }, returnValue: { description: "AR_OP_BLN_LTE_DUR_DUR_RV", isArray: false, type: "bln" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_OP_BLN_LTE_DUR_DUR_PRM_DSC_0", identifier: "valueToCompare", isArray: false, helpDisplayIdx: 0, repeatable: false, required: true, type: "dur" }, { allowNotSet: false, allowCustomJson: false, description: "AR_OP_BLN_LTE_DUR_DUR_PRM_DSC_1", identifier: "valueToCompareTo", isArray: false, helpDisplayIdx: 1, repeatable: false, required: true, type: "dur" }], examples: [{ input: "MakeDuration(0, 2, 30, 0) <= MakeDuration(0, 1, 59, 59)", output: "false" }] }, { description: "AR_OP_BLN_LTE_LNG_LNG_DSC", identifier: "Boolean_ONE lte(Long_ONE,Long_ONE)", support: { version: "1.0", resolver: "None" }, returnValue: { description: "AR_OP_BLN_LTE_LNG_LNG_RV", isArray: false, type: "bln" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_OP_BLN_LTE_LNG_LNG_PRM_DSC_0", identifier: "valueToCompare", isArray: false, helpDisplayIdx: 0, repeatable: false, required: true, type: "int" }, { allowNotSet: false, allowCustomJson: false, description: "AR_OP_BLN_LTE_LNG_LNG_PRM_DSC_1", identifier: "valueToCompareTo", isArray: false, helpDisplayIdx: 1, repeatable: false, required: true, type: "int" }], examples: [{ input: "150 <= 125", output: "false" }] }, { description: "AR_OP_BLN_LTE_STR_STR_DSC", identifier: "Boolean_ONE lte(String_ONE,String_ONE)", support: { version: "1.0", resolver: "None" }, returnValue: { description: "AR_OP_BLN_LTE_STR_STR_RV", isArray: false, type: "bln" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_OP_BLN_LTE_STR_STR_PRM_DSC_0", identifier: "valueToCompare", isArray: false, helpDisplayIdx: 0, repeatable: false, required: true, type: "str" }, { allowNotSet: false, allowCustomJson: false, description: "AR_OP_BLN_LTE_STR_STR_PRM_DSC_1", identifier: "valueToCompareTo", isArray: false, helpDisplayIdx: 1, repeatable: false, required: true, type: "str" }], examples: [{ input: '"Hello" <= "World"', output: "true" }] }, { description: "AR_OP_BLN_LTE_TIME_TIME_DSC", identifier: "Boolean_ONE lte(Time_ONE,Time_ONE)", support: { version: "1.0", resolver: "None" }, needsServerInfo: true, returnValue: { description: "AR_OP_BLN_LTE_TIME_TIME_RV", isArray: false, type: "bln" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_OP_BLN_LTE_TIME_TIME_PRM_DSC_0", identifier: "valueToCompare", isArray: false, helpDisplayIdx: 0, repeatable: false, required: true, type: "tim" }, { allowNotSet: false, allowCustomJson: false, description: "AR_OP_BLN_LTE_TIME_TIME_PRM_DSC_1", identifier: "valueToCompareTo", isArray: false, helpDisplayIdx: 1, repeatable: false, required: true, type: "tim" }], examples: [{ input: "MakeTime(3, 30, 0) <= MakeTime(12, 0, 0)", output: "true" }, { input: "MakeTime(3, 0, 0) <= MakeTime(3, 0, 0)", output: "true" }, { input: "MakeTime(4, 0, 0) <= MakeTime(3, 0, 0)", output: "false" }] }], needsServerInfo: true }, bkt: { identifier: "bkt", description: "AR_OP_DSC_BKT", type: "operator", closingSymbol: "]", symbol: "[", category: "list", overloads: [{ description: "AR_OP_ANY_BKT_LNG_ANY_COLL_DSC", identifier: "Any_ONE bkt(Long_ONE,Any_COLL)", support: { version: "1.0", resolver: "CollectionBrackets" }, reverseOpsForHelp: true, returnValue: { description: "AR_OP_ANY_BKT_LNG_ANY_COLL_RV", isArray: false, type: "any" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_OP_ANY_BKT_LNG_ANY_COLL_PRM_DSC_0", identifier: "index", isArray: false, helpDisplayIdx: 1, repeatable: false, required: true, type: "int" }, { allowNotSet: false, allowCustomJson: false, description: "AR_OP_ANY_BKT_LNG_ANY_COLL_PRM_DSC_1", identifier: "collection", isArray: true, helpDisplayIdx: 0, repeatable: false, required: true, type: "any" }], examples: [{ input: 'MakeList(MakeCurrency(5.25, "USD"), MakeCurrency(2.25, "EUR"))[1]', output: "AR_OP_ANY_BKT_LNG_ANY_COLL_EX_OUT_0" }, { input: "MakeList(1, 2, 3)[2]", output: "3" }, { input: 'MakeList("Hello", "There")[0]', output: '"Hello"' }] }, { description: "AR_OP_ANY_BKT_STR_ANY_DSC", identifier: "Any_ONE bkt(String_ONE,Any_ONE)", support: { version: "1.0", resolver: "PropertyBrackets" }, reverseOpsForHelp: true, returnValue: { description: "AR_OP_ANY_BKT_STR_ANY_RV", isArray: false, type: "any" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_OP_ANY_BKT_STR_ANY_PRM_DSC_0", identifier: "propertyName", isArray: false, helpDisplayIdx: 1, repeatable: false, required: true, type: "str" }, { allowNotSet: false, allowCustomJson: false, description: "AR_OP_ANY_BKT_STR_ANY_PRM_DSC_1", identifier: "objectWithProperties", isArray: false, helpDisplayIdx: 0, repeatable: false, required: true, type: "any" }], examples: [{ input: 'MakeCurrency(5.25, "USD")["amount"]', output: "5.25" }, { input: 'MakeCurrency(5.25, "USD")["code"]', output: '"USD"' }] }, { description: "AR_OP_JSON_BKT_LNG_JSON_DSC", identifier: "JSON_ONE bkt(Long_ONE,JSON_ONE)", support: { version: "1.0", resolver: "None" }, reverseOpsForHelp: true, needsServerInfo: true, returnValue: { description: "AR_OP_JSON_BKT_LNG_JSON_RV", isArray: false, type: "jsn" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_OP_JSON_BKT_LNG_JSON_PRM_DSC_0", identifier: "index", isArray: false, helpDisplayIdx: 1, repeatable: false, required: true, type: "int" }, { allowNotSet: false, allowCustomJson: false, description: "AR_OP_JSON_BKT_LNG_JSON_PRM_DSC_1", identifier: "jsonValue", isArray: false, helpDisplayIdx: 0, repeatable: false, required: true, type: "jsn" }], examples: [{ input: 'JsonParse("[ 1, 2, 3 ]")[2]', output: "AR_OP_JSON_BKT_LNG_JSON_EX_OUT_0" }, { input: 'JsonParse("[ \\"Apple\\", \\"Banana\\", \\"Orange\\" ]")[0]', output: 'A JSON value containing the String value "Apple"' }, { input: 'JsonParse("\\"Hello\\"")[2]', output: "AR_OP_JSON_BKT_LNG_JSON_EX_OUT_2" }] }], needsServerInfo: true }, equ: { identifier: "equ", description: "AR_OP_DSC_EQU", type: "operator", symbol: "==", category: "comparison", overloads: [{ description: "AR_OP_BLN_EQU_ANY_ANY_DSC", identifier: "Boolean_ONE equ(Any_ONE,Any_ONE)", support: { version: "1.0", resolver: "SameType" }, returnValue: { description: "AR_OP_BLN_EQU_ANY_ANY_RV", isArray: false, type: "bln" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_OP_BLN_EQU_ANY_ANY_PRM_DSC_0", identifier: "valueToCompare", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "any" }, { allowNotSet: true, allowCustomJson: false, description: "AR_OP_BLN_EQU_ANY_ANY_PRM_DSC_1", identifier: "valueToCompareTo", isArray: false, helpDisplayIdx: 1, repeatable: false, required: false, type: "any" }], examples: [{ input: "5 == 3", output: "false" }, { input: "true == ! ( true and false )", output: "true" }, { input: 'ToJson("\\"8\\"" + "\\"3\\"") == JsonParse("\\"83\\"")', output: "true", featureConfigName: "encryptDecryptDataFeature" }, { input: 'ToJson("8" + "3") == JsonParse("83")', output: "false", featureConfigName: "encryptDecryptDataFeature" }, { input: 'ToJson(NOT_SET) == JsonParse("null")', output: "false", featureConfigName: "encryptDecryptDataFeature" }, { input: 'JsonParse("{\\"a\\":true,\\"b\\":false}") == JsonParse("{\\"b\\":false,\\"a\\":true}")', output: "true", featureConfigName: "encryptDecryptDataFeature" }], examplesHaveFeatureToggleOrConfig: true }, { description: "AR_OP_BLN_EQU_DEC_LNG_DSC", identifier: "Boolean_ONE equ(Decimal_ONE_Long_ONE)", support: { version: "1.0", resolver: "None" }, returnValue: { description: "AR_OP_BLN_EQU_DEC_LNG_RV", isArray: false, type: "bln" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_OP_BLN_EQU_DEC_LNG_PRM_DSC_0", identifier: "valueToCompare", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "dec" }, { allowNotSet: true, allowCustomJson: false, description: "AR_OP_BLN_EQU_DEC_LNG_PRM_DSC_1", identifier: "valueToCompareTo", isArray: false, helpDisplayIdx: 1, repeatable: false, required: false, type: "int" }], examples: [{ input: "-5.0 == 3", output: "false" }, { input: "5.0 == 5", output: "true" }, { input: "ToDecimal(NOT_SET) == ToInt(NOT_SET)", output: "true" }] }, { description: "AR_OP_BLN_EQU_LNG_DEC_DSC", identifier: "Boolean_ONE equ(Long_ONE_Decimal_ONE)", support: { version: "1.0", resolver: "None" }, returnValue: { description: "AR_OP_BLN_EQU_LNG_DEC_RV", isArray: false, type: "bln" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_OP_BLN_EQU_LNG_DEC_PRM_DSC_0", identifier: "valueToCompare", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "int" }, { allowNotSet: true, allowCustomJson: false, description: "AR_OP_BLN_EQU_LNG_DEC_PRM_DSC_1", identifier: "valueToCompareTo", isArray: false, helpDisplayIdx: 1, repeatable: false, required: false, type: "dec" }], examples: [{ input: "5 == 3.0", output: "false" }, { input: "5 == 5.0", output: "true" }, { input: "ToInt(NOT_SET) == ToDecimal(NOT_SET)", output: "true" }] }, { description: "AR_OP_BLN_EQU_LNG_COLL_DEC_COLL_DSC", identifier: "Boolean_ONE equ(Long_COLL,Decimal_COLL)", support: { version: "1.0", resolver: "None" }, returnValue: { description: "AR_OP_BLN_EQU_LNG_COLL_DEC_COLL_RV", isArray: false, type: "bln" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_OP_BLN_EQU_LNG_COLL_DEC_COLL_PRM_DSC_0", identifier: "valueToCompare", isArray: true, helpDisplayIdx: 0, repeatable: false, required: false, type: "int" }, { allowNotSet: true, allowCustomJson: false, description: "AR_OP_BLN_EQU_LNG_COLL_DEC_COLL_PRM_DSC_1", identifier: "valueToCompareTo", isArray: true, helpDisplayIdx: 1, repeatable: false, required: false, type: "dec" }], examples: [{ input: "MakeList(1+4, 2+1, 3) == MakeList(5.0, 3.0, 3.0)", output: "true" }, { input: "MakeList(1+4, 2+1, 3, 0) == MakeList(4.0, 2.0, 0.0, 1.0)", output: "false" }, { input: "MakeList(ToInt(NOT_SET), 1) == MakeList(ToDecimal(NOT_SET), 1.0)", output: "true" }] }, { description: "AR_OP_BLN_EQU_DEC_COLL_LNG_COLL_DSC", identifier: "Boolean_ONE equ(Decimal_COLL,Long_COLL)", support: { version: "1.0", resolver: "None" }, returnValue: { description: "AR_OP_BLN_EQU_DEC_COLL_LNG_COLL_RV", isArray: false, type: "bln" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_OP_BLN_EQU_DEC_COLL_LNG_COLL_PRM_DSC_0", identifier: "valueToCompare", isArray: true, helpDisplayIdx: 0, repeatable: false, required: false, type: "dec" }, { allowNotSet: true, allowCustomJson: false, description: "AR_OP_BLN_EQU_DEC_COLL_LNG_COLL_PRM_DSC_1", identifier: "valueToCompareTo", isArray: true, helpDisplayIdx: 1, repeatable: false, required: false, type: "int" }], examples: [{ input: "MakeList(5.0, 3.0, 1.0) == MakeList(5, 3, 1)", output: "true" }, { input: "MakeList(5.0, 3.0, 1.0) == MakeList(5, 2, 1)", output: "false" }, { input: "MakeList(ToDecimal(NOT_SET), 1.0) == MakeList(ToInt(NOT_SET), 1)", output: "true" }] }, { description: "AR_OP_BLN_EQU_PHNBR_PHNBR_DSC", identifier: "Boolean_ONE equ(PhoneNumber_ONE,PhoneNumber_ONE)", support: { version: "1.0", resolver: "None" }, returnValue: { description: "AR_OP_BLN_EQU_PHNBR_PHNBR_RV", isArray: false, type: "bln" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_OP_BLN_EQU_PHNBR_PHNBR_PRM_DSC_0", identifier: "valueToCompare", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "phn" }, { allowNotSet: true, allowCustomJson: false, description: "AR_OP_BLN_EQU_PHNBR_PHNBR_PRM_DSC_1", identifier: "valueToCompareTo", isArray: false, helpDisplayIdx: 1, repeatable: false, required: false, type: "phn" }], examples: [{ input: 'ToPhoneNumber("tel:+13178723000") == ToPhoneNumber("+13178723000")', output: "true" }, { input: 'ToPhoneNumber("+13178723000") == ToPhoneNumber("13178723000")', output: "true" }, { input: 'ToPhoneNumber("sip:john.doe@company.com") == ToPhoneNumber("sips:john.doe@company.com")', output: "false" }, { input: 'ToPhoneNumber("sips:john.doe@company.com@") == ToPhoneNumber("sips:john.doe@company.com")', output: "true" }] }, { description: "AR_OP_BLN_EQU_ANY_COLL_ANY_COLL_DSC", identifier: "Boolean_ONE equ(Any_COLL,Any_COLL)", support: { version: "1.0", resolver: "SameType" }, returnValue: { description: "AR_OP_BLN_EQU_ANY_COLL_ANY_COLL_RV", isArray: false, type: "bln" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_OP_BLN_EQU_ANY_COLL_ANY_COLL_PRM_DSC_0", identifier: "valueToCompare", isArray: true, helpDisplayIdx: 0, repeatable: false, required: false, type: "any" }, { allowNotSet: true, allowCustomJson: false, description: "AR_OP_BLN_EQU_ANY_COLL_ANY_COLL_PRM_DSC_1", identifier: "valueToCompareTo", isArray: true, helpDisplayIdx: 1, repeatable: false, required: false, type: "any" }], examples: [{ input: "MakeList(1, 2, 3) == MakeList(5-4, 1+1, 3)", output: "true" }, { input: "MakeList(false, false, true, true) == MakeList(false, !true, !false, !true)", output: "false" }] }] }, neq: { identifier: "neq", description: "AR_OP_DSC_NEQ", type: "operator", symbol: "!=", category: "comparison", overloads: [{ description: "AR_OP_BLN_NEQ_ANY_ANY_DSC", identifier: "Boolean_ONE neq(Any_ONE,Any_ONE)", support: { version: "1.0", resolver: "SameType" }, returnValue: { description: "AR_OP_BLN_NEQ_ANY_ANY_RV", isArray: false, type: "bln" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_OP_BLN_NEQ_ANY_ANY_PRM_DSC_0", identifier: "valueToCompare", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "any" }, { allowNotSet: true, allowCustomJson: false, description: "AR_OP_BLN_NEQ_ANY_ANY_PRM_DSC_1", identifier: "valueToCompareTo", isArray: false, helpDisplayIdx: 1, repeatable: false, required: false, type: "any" }], examples: [{ input: "5 != 3", output: "true" }, { input: "true != ! ( true and false )", output: "false" }, { input: 'ToJson("8" + "3") != JsonParse("83")', output: "false", featureConfigName: "encryptDecryptDataFeature" }], examplesHaveFeatureToggleOrConfig: true }, { description: "AR_OP_BLN_NEQ_DEC_LNG_DSC", identifier: "Boolean_ONE neq(Decimal_ONE,Long_ONE)", support: { version: "1.0", resolver: "None" }, returnValue: { description: "AR_OP_BLN_NEQ_DEC_LNG_RV", isArray: false, type: "bln" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_OP_BLN_NEQ_DEC_LNG_PRM_DSC_0", identifier: "valueToCompare", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "dec" }, { allowNotSet: true, allowCustomJson: false, description: "AR_OP_BLN_NEQ_DEC_LNG_PRM_DSC_1", identifier: "valueToCompareTo", isArray: false, helpDisplayIdx: 1, repeatable: false, required: false, type: "int" }], examples: [{ input: "5.0 != 3", output: "true" }, { input: "5.0 != 5", output: "false" }, { input: "ToDecimal(NOT_SET) != ToInt(NOT_SET)", output: "false" }] }, { description: "AR_OP_BLN_NEQ_LNG_DEC_DSC", identifier: "Boolean_ONE neq(Long_ONE,Decimal_ONE)", support: { version: "1.0", resolver: "None" }, returnValue: { description: "AR_OP_BLN_NEQ_LNG_DEC_RV", isArray: false, type: "bln" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_OP_BLN_NEQ_LNG_DEC_PRM_DSC_0", identifier: "valueToCompare", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "int" }, { allowNotSet: true, allowCustomJson: false, description: "AR_OP_BLN_NEQ_LNG_DEC_PRM_DSC_1", identifier: "valueToCompareTo", isArray: false, helpDisplayIdx: 1, repeatable: false, required: false, type: "dec" }], examples: [{ input: "5 != 3.0", output: "true" }, { input: "5 != 5.0", output: "false" }, { input: "ToInt(NOT_SET) != ToDecimal(NOT_SET)", output: "false" }] }, { description: "AR_OP_BLN_NEQ_PHNBR_PHNBR_DSC", identifier: "Boolean_ONE neq(PhoneNumber_ONE,PhoneNumber_ONE)", support: { version: "1.0", resolver: "None" }, returnValue: { description: "AR_OP_BLN_NEQ_PHNBR_PHNBR_RV", isArray: false, type: "bln" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_OP_BLN_NEQ_PHNBR_PHNBR_PRM_DSC_0", identifier: "valueToCompare", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "phn" }, { allowNotSet: true, allowCustomJson: false, description: "AR_OP_BLN_NEQ_PHNBR_PHNBR_PRM_DSC_1", identifier: "valueToCompareTo", isArray: false, helpDisplayIdx: 1, repeatable: false, required: false, type: "phn" }], examples: [{ input: 'ToPhoneNumber("tel:+13178723000") != ToPhoneNumber("+13178723000")', output: "false" }, { input: 'ToPhoneNumber("+13178723000") != ToPhoneNumber("13178723000")', output: "false" }, { input: 'ToPhoneNumber("sip:john.doe@company.com") != ToPhoneNumber("sips:john.doe@company.com")', output: "true" }, { input: 'ToPhoneNumber("sips:john.doe@company.com@") != ToPhoneNumber("sips:john.doe@company.com")', output: "false" }] }, { description: "AR_OP_BLN_NEQ_LNG_COLL_DEC_COLL_DSC", identifier: "Boolean_ONE neq(Long_COLL,Decimal_COLL)", support: { version: "1.0", resolver: "None" }, returnValue: { description: "AR_OP_BLN_NEQ_LNG_COLL_DEC_COLL_RV", isArray: false, type: "bln" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_OP_BLN_NEQ_LNG_COLL_DEC_COLL_PRM_DSC_0", identifier: "valueToCompare", isArray: true, helpDisplayIdx: 0, repeatable: false, required: false, type: "int" }, { allowNotSet: true, allowCustomJson: false, description: "AR_OP_BLN_NEQ_LNG_COLL_DEC_COLL_PRM_DSC_1", identifier: "valueToCompareTo", isArray: true, helpDisplayIdx: 1, repeatable: false, required: false, type: "dec" }], examples: [{ input: "MakeList(1+4, 2+1, 3) != MakeList(5.0, 3.0, 3.0)", output: "false" }, { input: "MakeList(1+4, 2+1, 3, 0) != MakeList(4.0, 2.0, 0.0, 1.0)", output: "true" }, { input: "MakeList(ToInt(NOT_SET), 1) != MakeList(ToDecimal(NOT_SET), 1.0)", output: "false" }] }, { description: "AR_OP_BLN_NEQ_DEC_COLL_LNG_COLL_DSC", identifier: "Boolean_ONE neq(Decimal_COLL,Long_COLL)", support: { version: "1.0", resolver: "None" }, returnValue: { description: "AR_OP_BLN_NEQ_DEC_COLL_LNG_COLL_RV", isArray: false, type: "bln" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_OP_BLN_NEQ_DEC_COLL_LNG_COLL_PRM_DSC_0", identifier: "valueToCompare", isArray: true, helpDisplayIdx: 0, repeatable: false, required: false, type: "dec" }, { allowNotSet: true, allowCustomJson: false, description: "AR_OP_BLN_NEQ_DEC_COLL_LNG_COLL_PRM_DSC_1", identifier: "valueToCompareTo", isArray: true, helpDisplayIdx: 1, repeatable: false, required: false, type: "int" }], examples: [{ input: "MakeList(5.0, 3.0, 1.0) != MakeList(5, 3, 1)", output: "false" }, { input: "MakeList(5.0, 3.0, 1.0) != MakeList(5, 2, 1)", output: "true" }, { input: "MakeList(ToDecimal(NOT_SET), 1.0) != MakeList(ToInt(NOT_SET), 1)", output: "false" }] }, { description: "AR_OP_BLN_NEQ_ANY_COLL_ANY_COLL_DSC", identifier: "Boolean_ONE neq(Any_COLL,Any_COLL)", support: { version: "1.0", resolver: "SameType" }, returnValue: { description: "AR_OP_BLN_NEQ_ANY_COLL_ANY_COLL_RV", isArray: false, type: "bln" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_OP_BLN_NEQ_ANY_COLL_ANY_COLL_PRM_DSC_0", identifier: "valueToCompare", isArray: true, helpDisplayIdx: 0, repeatable: false, required: false, type: "any" }, { allowNotSet: true, allowCustomJson: false, description: "AR_OP_BLN_NEQ_ANY_COLL_ANY_COLL_PRM_DSC_1", identifier: "valueToCompareTo", isArray: true, helpDisplayIdx: 1, repeatable: false, required: false, type: "any" }], examples: [{ input: "MakeList(1, 2, 3) != MakeList(5-4, 1+1, 3)", output: "false" }, { input: "MakeList(false, false, true, true) != MakeList(false, !true, !false, !true)", output: "true" }] }] }, propAccess: { identifier: "propAccess", description: "AR_OP_DSC_PROPACCESS", type: "operator", symbol: ".", overloads: [{ description: "AR_OP_ANY_PROPACCESS_STR_ANY_DSC", identifier: "Any propAccess(String_ONE,Any_ONE)", support: { version: "1.0", resolver: "Accessor" }, returnValue: { description: "AR_OP_ANY_PROPACCESS_STR_ANY_RV", isArray: false, type: "any" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_OP_ANY_PROPACCESS_STR_ANY_PRM_DSC_0", identifier: "propertyToAccess", isArray: false, helpDisplayIdx: 0, repeatable: false, required: true, type: "str" }, { allowNotSet: false, allowCustomJson: false, description: "AR_OP_ANY_PROPACCESS_STR_ANY_PRM_DSC_1", identifier: "value", isArray: false, helpDisplayIdx: 1, repeatable: false, required: true, type: "any" }] }, { description: "AR_OP_ANY_PROPACCESS_STR_COMPLEX_DSC", identifier: "Any propAccess(String_ONE,Complex_ONE)", support: { version: "1.0", resolver: "Accessor" }, returnValue: { description: "AR_OP_ANY_PROPACCESS_STR_COMPLEX_RV", isArray: false, type: "any" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_OP_ANY_PROPACCESS_STR_COMPLEX_PRM_DSC_0", identifier: "propertyToAccess", isArray: false, helpDisplayIdx: 0, repeatable: false, required: true, type: "str" }, { allowNotSet: false, allowCustomJson: false, description: "AR_OP_ANY_PROPACCESS_STR_COMPLEX_PRM_DSC_1", identifier: "value", isArray: false, helpDisplayIdx: 1, repeatable: false, required: true, type: "acp" }] }, { description: "AR_OP_BOOLFORMATENUM_PROPACCESS_STR_BOOLFORMATENUMCONTAINER_DSC", identifier: "BoolFormatEnum_ONE propAccess(String_ONE,BoolFormatEnumContainer_ONE)", support: { version: "1.0", resolver: "None" }, returnValue: { description: "AR_OP_BOOLFORMATENUM_PROPACCESS_STR_BOOLFORMATENUMCONTAINER_RV", isArray: false, type: "bof" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_OP_BOOLFORMATENUM_PROPACCESS_STR_BOOLFORMATENUMCONTAINER_PRM_DSC_0", identifier: "BoolFormatEnum", isArray: false, helpDisplayIdx: 0, repeatable: false, required: true, type: "str" }, { allowNotSet: false, allowCustomJson: false, description: "AR_OP_BOOLFORMATENUM_PROPACCESS_STR_BOOLFORMATENUMCONTAINER_PRM_DSC_1", identifier: "value", isArray: false, helpDisplayIdx: 1, repeatable: false, required: true, type: "blc" }], examples: [{ input: "Format.Bool.playYesNo", output: "AR_OP_BOOLFORMATENUM_PROPACCESS_STR_BOOLFORMATENUMCONTAINER_EX_OUT_0" }] }, { description: "AR_OP_CURRENCYFORMATENUM_PROPACCESS_STR_CURRENCYFORMATENUMCONTAINER_DSC", identifier: "CurrencyFormatEnum_ONE propAccess(String_ONE,CurrencyFormatEnumContainer_ONE)", support: { version: "1.0", resolver: "None" }, returnValue: { description: "AR_OP_CURRENCYFORMATENUM_PROPACCESS_STR_CURRENCYFORMATENUMCONTAINER_RV", isArray: false, type: "cuf" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_OP_CURRENCYFORMATENUM_PROPACCESS_STR_CURRENCYFORMATENUMCONTAINER_PRM_DSC_0", identifier: "CurrencyFormatEnum", isArray: false, helpDisplayIdx: 0, repeatable: false, required: true, type: "str" }, { allowNotSet: false, allowCustomJson: false, description: "AR_OP_CURRENCYFORMATENUM_PROPACCESS_STR_CURRENCYFORMATENUMCONTAINER_PRM_DSC_1", identifier: "value", isArray: false, helpDisplayIdx: 1, repeatable: false, required: true, type: "cuc" }], examples: [{ input: "Format.Currency.playDigits", output: "AR_OP_CURRENCYFORMATENUM_PROPACCESS_STR_CURRENCYFORMATENUMCONTAINER_EX_OUT_0" }, { input: "Format.Currency.majorUnitsOnly", output: "AR_OP_CURRENCYFORMATENUM_PROPACCESS_STR_CURRENCYFORMATENUMCONTAINER_EX_OUT_1" }, { input: "Format.Currency.minorUnitsOnly", output: "AR_OP_CURRENCYFORMATENUM_PROPACCESS_STR_CURRENCYFORMATENUMCONTAINER_EX_OUT_2" }] }, { description: "AR_OP_DATEFORMATENUM_PROPACCESS_STR_DATEFORMATENUMCONTAINER_DSC", identifier: "DateFormatEnum_ONE propAccess(String_ONE,DateFormatEnumContainer_ONE)", support: { version: "1.0", resolver: "None" }, returnValue: { description: "AR_OP_DATEFORMATENUM_PROPACCESS_STR_DATEFORMATENUMCONTAINER_RV", isArray: false, type: "daf" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_OP_DATEFORMATENUM_PROPACCESS_STR_DATEFORMATENUMCONTAINER_PRM_DSC_0", identifier: "DateFormatEnum", isArray: false, helpDisplayIdx: 0, repeatable: false, required: true, type: "str" }, { allowNotSet: false, allowCustomJson: false, description: "AR_OP_DATEFORMATENUM_PROPACCESS_STR_DATEFORMATENUMCONTAINER_PRM_DSC_1", identifier: "value", isArray: false, helpDisplayIdx: 1, repeatable: false, required: true, type: "dac" }], examples: [{ input: "Format.Date.longYear", output: "AR_OP_DATEFORMATENUM_PROPACCESS_STR_DATEFORMATENUMCONTAINER_EX_OUT_0" }, { input: "Format.Date.shortYear", output: "AR_OP_DATEFORMATENUM_PROPACCESS_STR_DATEFORMATENUMCONTAINER_EX_OUT_1" }, { input: "Format.Date.shortMonthAndDay", output: "AR_OP_DATEFORMATENUM_PROPACCESS_STR_DATEFORMATENUMCONTAINER_EX_OUT_2" }, { input: "Format.Date.dayOnly", output: "AR_OP_DATEFORMATENUM_PROPACCESS_STR_DATEFORMATENUMCONTAINER_EX_OUT_3" }, { input: "Format.Date.monthOnly", output: "AR_OP_DATEFORMATENUM_PROPACCESS_STR_DATEFORMATENUMCONTAINER_EX_OUT_4" }, { input: "Format.Date.shortYearOnly", output: "AR_OP_DATEFORMATENUM_PROPACCESS_STR_DATEFORMATENUMCONTAINER_EX_OUT_5" }, { input: "Format.Date.longYearOnly", output: "AR_OP_DATEFORMATENUM_PROPACCESS_STR_DATEFORMATENUMCONTAINER_EX_OUT_6" }, { input: "Format.Date.dayOfWeekOnly", output: "AR_OP_DATEFORMATENUM_PROPACCESS_STR_DATEFORMATENUMCONTAINER_EX_OUT_7" }] }, { description: "AR_OP_NUMBERFORMATENUM_PROPACCESS_STR_NUMBERFORMATENUMCONTAINER_DSC", identifier: "NumberFormatEnum_ONE propAccess(String_ONE,NumberFormatEnumContainer_ONE)", support: { version: "1.0", resolver: "None" }, returnValue: { description: "AR_OP_NUMBERFORMATENUM_PROPACCESS_STR_NUMBERFORMATENUMCONTAINER_RV", isArray: false, type: "nuf" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_OP_NUMBERFORMATENUM_PROPACCESS_STR_NUMBERFORMATENUMCONTAINER_PRM_DSC_0", identifier: "NumberFormatEnum", isArray: false, helpDisplayIdx: 0, repeatable: false, required: true, type: "str" }, { allowNotSet: false, allowCustomJson: false, description: "AR_OP_NUMBERFORMATENUM_PROPACCESS_STR_NUMBERFORMATENUMCONTAINER_PRM_DSC_1", identifier: "value", isArray: false, helpDisplayIdx: 1, repeatable: false, required: true, type: "nuc" }], examples: [{ input: "Format.Number.playDigits", output: "AR_OP_NUMBERFORMATENUM_PROPACCESS_STR_NUMBERFORMATENUMCONTAINER_EX_OUT_0" }] }, { description: "AR_OP_PHONENUMBERFORMATENUM_PROPACCESS_STR_PHONENUMBERFORMATENUMCONTAINER_DSC", identifier: "PhoneNumberFormatEnum_ONE propAccess(String_ONE,PhoneNumberFormatEnumContainer_ONE)", support: { version: "1.0", resolver: "None" }, featureToggleName: "archPhoneNumberPhase2", returnValue: { description: "AR_OP_PHONENUMBERFORMATENUM_PROPACCESS_STR_PHONENUMBERFORMATENUMCONTAINER_RV", isArray: false, type: "phf" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_OP_PHONENUMBERFORMATENUM_PROPACCESS_STR_PHONENUMBERFORMATENUMCONTAINER_PRM_DSC_0", identifier: "PhoneNumberFormatEnum", isArray: false, helpDisplayIdx: 0, repeatable: false, required: true, type: "str" }, { allowNotSet: false, allowCustomJson: false, description: "AR_OP_PHONENUMBERFORMATENUM_PROPACCESS_STR_PHONENUMBERFORMATENUMCONTAINER_PRM_DSC_1", identifier: "value", isArray: false, helpDisplayIdx: 1, repeatable: false, required: true, type: "phc" }], examples: [{ input: "Format.PhoneNumber.global", output: "AR_OP_PHONENUMBERFORMATENUM_PROPACCESS_STR_PHONENUMBERFORMATENUMCONTAINER_EX_OUT_0" }, { input: "Format.PhoneNumber.local", output: "AR_OP_PHONENUMBERFORMATENUM_PROPACCESS_STR_PHONENUMBERFORMATENUMCONTAINER_EX_OUT_1" }] }, { description: "AR_OP_CONVERSATIONTYPEENUM_PROPACCESS_STR_CONVERSATIONTYPESENUMCONTAINER_DSC", identifier: "ConversationTypeEnum_ONE propAccess(String_ONE,ConversationTypesEnumContainer_ONE)", support: { version: "1.0", resolver: "None" }, returnValue: { description: "AR_OP_CONVERSATIONTYPEENUM_PROPACCESS_STR_CONVERSATIONTYPESENUMCONTAINER_RV", isArray: false, type: "cte" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_OP_CONVERSATIONTYPEENUM_PROPACCESS_STR_CONVERSATIONTYPESENUMCONTAINER_PRM_DSC_0", identifier: "conversationTypeEnum", isArray: false, helpDisplayIdx: 0, repeatable: false, required: true, type: "str" }, { allowNotSet: false, allowCustomJson: false, description: "AR_OP_CONVERSATIONTYPEENUM_PROPACCESS_STR_CONVERSATIONTYPESENUMCONTAINER_PRM_DSC_1", identifier: "value", isArray: false, helpDisplayIdx: 1, repeatable: false, required: true, type: "ctc" }], examples: [{ input: "System.Conversation.Types", output: "AR_OP_CONVERSATIONTYPEENUM_PROPACCESS_STR_CONVERSATIONTYPESENUMCONTAINER_EX_OUT_0" }] }, { description: "AR_OP_CURRENCYENUM_PROPACCESS_STR_CURRENCIESENUMCONTAINER_DSC", identifier: "CurrencyEnum_ONE propAccess(String_ONE,CurrenciesEnumContainer_ONE)", support: { version: "1.0", resolver: "None" }, returnValue: { description: "AR_OP_CURRENCYENUM_PROPACCESS_STR_CURRENCIESENUMCONTAINER_RV", isArray: false, type: "cre" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_OP_CURRENCYENUM_PROPACCESS_STR_CURRENCIESENUMCONTAINER_PRM_DSC_0", identifier: "currencyEnum", isArray: false, helpDisplayIdx: 0, repeatable: false, required: true, type: "str" }, { allowNotSet: false, allowCustomJson: false, description: "AR_OP_CURRENCYENUM_PROPACCESS_STR_CURRENCIESENUMCONTAINER_PRM_DSC_1", identifier: "value", isArray: false, helpDisplayIdx: 1, repeatable: false, required: true, type: "cec" }], examples: [{ input: "System.Currencies.USD", output: "AR_OP_CURRENCYENUM_PROPACCESS_STR_CURRENCIESENUMCONTAINER_EX_OUT_0" }] }, { description: "AR_OP_DAYOFWEEKENUMCONTAINER_PROPACCESS_STR_DATETIMEENUMCONTAINER_DSC", identifier: "DayOfWeekEnumContainer_ONE propAccess(String_ONE,DateTimeEnumContainer_ONE)", support: { version: "1.0", resolver: "None" }, returnValue: { description: "AR_OP_DAYOFWEEKENUMCONTAINER_PROPACCESS_STR_DATETIMEENUMCONTAINER_RV", isArray: false, type: "dwc" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_OP_DAYOFWEEKENUMCONTAINER_PROPACCESS_STR_DATETIMEENUMCONTAINER_PRM_DSC_0", identifier: "dateTime", isArray: false, helpDisplayIdx: 0, repeatable: false, required: true, type: "str" }, { allowNotSet: false, allowCustomJson: false, description: "AR_OP_DAYOFWEEKENUMCONTAINER_PROPACCESS_STR_DATETIMEENUMCONTAINER_PRM_DSC_1", identifier: "value", isArray: false, helpDisplayIdx: 1, repeatable: false, required: true, type: "dlc" }], examples: [{ input: "System.DateTime.dayOfWeek", output: "AR_OP_DAYOFWEEKENUMCONTAINER_PROPACCESS_STR_DATETIMEENUMCONTAINER_EX_OUT_0" }] }, { description: "AR_OP_LANGUAGEENUM_PROPACCESS_STR_LANGUAGESENUMCONTAINER_DSC", identifier: "LanguageEnum_ONE propAccess(String_ONE,LanguagesEnumContainer_ONE)", support: { version: "1.0", resolver: "None" }, returnValue: { description: "AR_OP_LANGUAGEENUM_PROPACCESS_STR_LANGUAGESENUMCONTAINER_RV", isArray: false, type: "lge" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_OP_LANGUAGEENUM_PROPACCESS_STR_LANGUAGESENUMCONTAINER_PRM_DSC_0", identifier: "languageEnum", isArray: false, helpDisplayIdx: 0, repeatable: false, required: true, type: "str" }, { allowNotSet: false, allowCustomJson: false, description: "AR_OP_LANGUAGEENUM_PROPACCESS_STR_LANGUAGESENUMCONTAINER_PRM_DSC_1", identifier: "value", isArray: false, helpDisplayIdx: 1, repeatable: false, required: true, type: "lnc" }], examples: [{ input: "System.Languages.enUS", output: "AR_OP_LANGUAGEENUM_PROPACCESS_STR_LANGUAGESENUMCONTAINER_EX_OUT_0" }] }, { description: "AR_OP_REGIONENUM_PROPACCESS_STR_REGIONSENUMCONTAINER_DSC", identifier: "RegionEnum_ONE propAccess(String_ONE,RegionsEnumContainer_ONE)", support: { version: "1.0", resolver: "None" }, returnValue: { description: "AR_OP_REGIONENUM_PROPACCESS_STR_REGIONSENUMCONTAINER_RV", isArray: false, type: "rge" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_OP_REGIONENUM_PROPACCESS_STR_REGIONSENUMCONTAINER_PRM_DSC_0", identifier: "regionEnum", isArray: false, helpDisplayIdx: 0, repeatable: false, required: true, type: "str" }, { allowNotSet: false, allowCustomJson: false, description: "AR_OP_REGIONENUM_PROPACCESS_STR_REGIONSENUMCONTAINER_PRM_DSC_1", identifier: "value", isArray: false, helpDisplayIdx: 1, repeatable: false, required: true, type: "rec" }], examples: [{ input: "System.Regions.US", output: "AR_OP_REGIONENUM_PROPACCESS_STR_REGIONSENUMCONTAINER_EX_OUT_0" }] }, { description: "AR_OP_SURVEYDISPOSITIONENUM_PROPACCESS_STR_SURVEYDISPOSITIONSENUMCONTAINER_DSC", identifier: "SurveyDispositionEnum_ONE propAccess(String_ONE,SurveyDispositionsEnumContainer_ONE)", support: { version: "1.0", resolver: "None" }, returnValue: { description: "AR_OP_SURVEYDISPOSITIONENUM_PROPACCESS_STR_SURVEYDISPOSITIONSENUMCONTAINER_RV", isArray: false, type: "sde" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_OP_SURVEYDISPOSITIONENUM_PROPACCESS_STR_SURVEYDISPOSITIONSENUMCONTAINER_PRM_DSC_0", identifier: "surveyDispositionEnum", isArray: false, helpDisplayIdx: 0, repeatable: false, required: true, type: "str" }, { allowNotSet: false, allowCustomJson: false, description: "AR_OP_SURVEYDISPOSITIONENUM_PROPACCESS_STR_SURVEYDISPOSITIONSENUMCONTAINER_PRM_DSC_1", identifier: "value", isArray: false, helpDisplayIdx: 1, repeatable: false, required: true, type: "sec" }], examples: [{ input: "System.Survey.Dispositions", output: "AR_OP_SURVEYDISPOSITIONENUM_PROPACCESS_STR_SURVEYDISPOSITIONSENUMCONTAINER_EX_OUT_0" }] }, { description: "AR_OP_STRINGFORMATENUM_PROPACCESS_STR_STRINGFORMATENUMCONTAINER_DSC", identifier: "StringFormatEnum_ONE propAccess(String_ONE,StringFormatEnumContainer_ONE)", support: { version: "1.0", resolver: "None" }, returnValue: { description: "AR_OP_STRINGFORMATENUM_PROPACCESS_STR_STRINGFORMATENUMCONTAINER_RV", isArray: false, type: "stf" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_OP_STRINGFORMATENUM_PROPACCESS_STR_STRINGFORMATENUMCONTAINER_PRM_DSC_0", identifier: "StringFormatEnum", isArray: false, helpDisplayIdx: 0, repeatable: false, required: true, type: "str" }, { allowNotSet: false, allowCustomJson: false, description: "AR_OP_STRINGFORMATENUM_PROPACCESS_STR_STRINGFORMATENUMCONTAINER_PRM_DSC_1", identifier: "value", isArray: false, helpDisplayIdx: 1, repeatable: false, required: true, type: "stc" }], examples: [{ input: "Format.String.playChars", output: "AR_OP_STRINGFORMATENUM_PROPACCESS_STR_STRINGFORMATENUMCONTAINER_EX_OUT_0" }] }, { description: "AR_OP_TIMEFORMATENUM_PROPACCESS_STR_TIMEFORMATENUMCONTAINER_DSC", identifier: "TimeFormatEnum_ONE propAccess(String_ONE,TimeFormatEnumContainer_ONE)", support: { version: "1.0", resolver: "None" }, returnValue: { description: "AR_OP_TIMEFORMATENUM_PROPACCESS_STR_TIMEFORMATENUMCONTAINER_RV", isArray: false, type: "tif" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_OP_TIMEFORMATENUM_PROPACCESS_STR_TIMEFORMATENUMCONTAINER_PRM_DSC_0", identifier: "TimeFormatEnum", isArray: false, helpDisplayIdx: 0, repeatable: false, required: true, type: "str" }, { allowNotSet: false, allowCustomJson: false, description: "AR_OP_TIMEFORMATENUM_PROPACCESS_STR_TIMEFORMATENUMCONTAINER_PRM_DSC_1", identifier: "value", isArray: false, helpDisplayIdx: 1, repeatable: false, required: true, type: "tic" }], examples: [{ input: "Format.Time.twelveHours", output: "AR_OP_TIMEFORMATENUM_PROPACCESS_STR_TIMEFORMATENUMCONTAINER_EX_OUT_0" }, { input: "Format.Time.twentyFourHours", output: "AR_OP_TIMEFORMATENUM_PROPACCESS_STR_TIMEFORMATENUMCONTAINER_EX_OUT_1" }] }, { description: "AR_OP_LANGUAGECONTEXTENUM_PROPACCESS_STR_LANGUAGECASEENUMCONTAINER_DSC", identifier: "LanguageContextEnum_ONE propAccess(String_ONE,LanguageCaseEnumContainer_ONE)", support: { version: "1.0", resolver: "None" }, returnValue: { description: "AR_OP_LANGUAGECONTEXTENUM_PROPACCESS_STR_LANGUAGECASEENUMCONTAINER_RV", isArray: false, type: "lne" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_OP_LANGUAGECONTEXTENUM_PROPACCESS_STR_LANGUAGECASEENUMCONTAINER_PRM_DSC_0", identifier: "genderLanguageContextEnum", isArray: false, helpDisplayIdx: 0, repeatable: false, required: true, type: "str" }, { allowNotSet: false, allowCustomJson: false, description: "AR_OP_LANGUAGECONTEXTENUM_PROPACCESS_STR_LANGUAGECASEENUMCONTAINER_PRM_DSC_1", identifier: "value", isArray: false, helpDisplayIdx: 1, repeatable: false, required: true, type: "lcc" }], examples: [{ input: "Language.Case.article", output: "AR_OP_LANGUAGECONTEXTENUM_PROPACCESS_STR_LANGUAGECASEENUMCONTAINER_EX_OUT_0" }, { input: "Language.Case.accusative", output: "AR_OP_LANGUAGECONTEXTENUM_PROPACCESS_STR_LANGUAGECASEENUMCONTAINER_EX_OUT_1" }, { input: "Language.Case.genitive", output: "AR_OP_LANGUAGECONTEXTENUM_PROPACCESS_STR_LANGUAGECASEENUMCONTAINER_EX_OUT_2" }] }, { description: "AR_OP_LANGUAGECONTEXTENUM_PROPACCESS_STR_LANGUAGEGENDERENUMCONTAINER_DSC", identifier: "LanguageContextEnum_ONE propAccess(String_ONE,LanguageGenderEnumContainer_ONE)", support: { version: "1.0", resolver: "None" }, returnValue: { description: "AR_OP_LANGUAGECONTEXTENUM_PROPACCESS_STR_LANGUAGEGENDERENUMCONTAINER_RV", isArray: false, type: "lne" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_OP_LANGUAGECONTEXTENUM_PROPACCESS_STR_LANGUAGEGENDERENUMCONTAINER_PRM_DSC_0", identifier: "genderLanguageContextEnum", isArray: false, helpDisplayIdx: 0, repeatable: false, required: true, type: "str" }, { allowNotSet: false, allowCustomJson: false, description: "AR_OP_LANGUAGECONTEXTENUM_PROPACCESS_STR_LANGUAGEGENDERENUMCONTAINER_PRM_DSC_1", identifier: "value", isArray: false, helpDisplayIdx: 1, repeatable: false, required: true, type: "lgc" }], examples: [{ input: "Language.Gender.common", output: "AR_OP_LANGUAGECONTEXTENUM_PROPACCESS_STR_LANGUAGEGENDERENUMCONTAINER_EX_OUT_0" }, { input: "Language.Gender.feminine", output: "AR_OP_LANGUAGECONTEXTENUM_PROPACCESS_STR_LANGUAGEGENDERENUMCONTAINER_EX_OUT_1" }, { input: "Language.Gender.masculine", output: "AR_OP_LANGUAGECONTEXTENUM_PROPACCESS_STR_LANGUAGEGENDERENUMCONTAINER_EX_OUT_2" }, { input: "Language.Gender.neuter", output: "AR_OP_LANGUAGECONTEXTENUM_PROPACCESS_STR_LANGUAGEGENDERENUMCONTAINER_EX_OUT_3" }] }, { description: "AR_OP_LANGUAGECONTEXTENUM_PROPACCESS_STR_LANGUAGEQUANTITYENUMCONTAINER_DSC", identifier: "LanguageContextEnum_ONE propAccess(String_ONE,LanguageQuantityEnumContainer_ONE)", support: { version: "1.0", resolver: "None" }, returnValue: { description: "AR_OP_LANGUAGECONTEXTENUM_PROPACCESS_STR_LANGUAGEQUANTITYENUMCONTAINER_RV", isArray: false, type: "lne" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_OP_LANGUAGECONTEXTENUM_PROPACCESS_STR_LANGUAGEQUANTITYENUMCONTAINER_PRM_DSC_0", identifier: "quantityLanguageContextEnum", isArray: false, helpDisplayIdx: 0, repeatable: false, required: true, type: "str" }, { allowNotSet: false, allowCustomJson: false, description: "AR_OP_LANGUAGECONTEXTENUM_PROPACCESS_STR_LANGUAGEQUANTITYENUMCONTAINER_PRM_DSC_1", identifier: "value", isArray: false, helpDisplayIdx: 1, repeatable: false, required: true, type: "lqc" }], examples: [{ input: "Language.Quantity.plural", output: "AR_OP_LANGUAGECONTEXTENUM_PROPACCESS_STR_LANGUAGEQUANTITYENUMCONTAINER_EX_OUT_0" }, { input: "Language.Quantity.singular", output: "AR_OP_LANGUAGECONTEXTENUM_PROPACCESS_STR_LANGUAGEQUANTITYENUMCONTAINER_EX_OUT_1" }] }, { description: "AR_OP_TIMEPARTENUM_PROPACCESS_STR_TIMEPARTENUMCONTAINER_DSC", identifier: "TimePartEnum_ONE propAccess(String_ONE,TimePartEnumContainer_ONE)", support: { version: "1.0", resolver: "None" }, returnValue: { description: "AR_OP_TIMEPARTENUM_PROPACCESS_STR_TIMEPARTENUMCONTAINER_RV", isArray: false, type: "tpf" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_OP_TIMEPARTENUM_PROPACCESS_STR_TIMEPARTENUMCONTAINER_PRM_DSC_0", identifier: "timePartEnum", isArray: false, helpDisplayIdx: 0, repeatable: false, required: true, type: "str" }, { allowNotSet: false, allowCustomJson: false, description: "AR_OP_TIMEPARTENUM_PROPACCESS_STR_TIMEPARTENUMCONTAINER_PRM_DSC_1", identifier: "value", isArray: false, helpDisplayIdx: 1, repeatable: false, required: true, type: "tpc" }], examples: [{ input: "Format.TimePart.days", output: "AR_OP_TIMEPARTENUM_PROPACCESS_STR_TIMEPARTENUMCONTAINER_EX_OUT_0" }, { input: "Format.TimePart.hours", output: "AR_OP_TIMEPARTENUM_PROPACCESS_STR_TIMEPARTENUMCONTAINER_EX_OUT_1" }, { input: "Format.TimePart.minutes", output: "AR_OP_TIMEPARTENUM_PROPACCESS_STR_TIMEPARTENUMCONTAINER_EX_OUT_2" }, { input: "Format.TimePart.seconds", output: "AR_OP_TIMEPARTENUM_PROPACCESS_STR_TIMEPARTENUMCONTAINER_EX_OUT_3" }] }] }, audioPlaybackOptions: { identifier: "audioPlaybackOptions", description: "AR_FN_DSC_AUDIOPLAYBACKOPTIONS", type: "function", name: "AudioPlaybackOptions", category: "audio", overloads: [{ description: "AR_FN_AUDIO_AUDIOPLAYBACKOPTIONS_ANYPROMPTORAUDIO_BLN_DSC", identifier: "Audio_ONE audioPlaybackOptions(AnyPromptOrAudio_ONE,Boolean_ONE)", support: { version: "1.0", resolver: "None" }, mustBeLastOperationOrFunction: true, needsServerInfo: true, returnValue: { description: "AR_FN_AUDIO_AUDIOPLAYBACKOPTIONS_ANYPROMPTORAUDIO_BLN_RV", isArray: false, type: "aud" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_AUDIO_AUDIOPLAYBACKOPTIONS_ANYPROMPTORAUDIO_BLN_PRM_DSC_0", identifier: "audio", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "apa" }, { allowNotSet: false, allowCustomJson: false, description: "AR_FN_AUDIO_AUDIOPLAYBACKOPTIONS_ANYPROMPTORAUDIO_BLN_PRM_DSC_1", identifier: "bargeIn", isArray: false, helpDisplayIdx: 1, repeatable: false, required: true, type: "bln", mustBeLiteral: true }], examples: [{ input: "AudioPlaybackOptions(Prompt.Welcome, false)", output: "AR_FN_AUDIO_AUDIOPLAYBACKOPTIONS_ANYPROMPTORAUDIO_BLN_EX_OUT_0" }, { input: "AudioPlaybackOptions(ToAudioNumber(5), false)", output: "AR_FN_AUDIO_AUDIOPLAYBACKOPTIONS_ANYPROMPTORAUDIO_BLN_EX_OUT_1" }, { input: "AudioPlaybackOptions(Append(ToAudioNumber(5), ToAudioBlank(500), ToAudioNumber(4)), true)", output: "AR_FN_AUDIO_AUDIOPLAYBACKOPTIONS_ANYPROMPTORAUDIO_BLN_EX_OUT_2" }] }, { description: "AR_FN_AUDIO_AUDIOPLAYBACKOPTIONS_ANYPROMPTORAUDIO_BLN_BLN_DSC", identifier: "Audio_ONE audioPlaybackOptions(AnyPromptOrAudio_ONE,Boolean_ONE,Boolean_ONE)", support: { version: "1.0", resolver: "None" }, hidden: true, mustBeLastOperationOrFunction: true, needsServerInfo: true, returnValue: { description: "AR_FN_AUDIO_AUDIOPLAYBACKOPTIONS_ANYPROMPTORAUDIO_BLN_BLN_RV", isArray: false, type: "aud" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_AUDIO_AUDIOPLAYBACKOPTIONS_ANYPROMPTORAUDIO_BLN_BLN_PRM_DSC_0", identifier: "audio", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "apa" }, { allowNotSet: false, allowCustomJson: false, description: "AR_FN_AUDIO_AUDIOPLAYBACKOPTIONS_ANYPROMPTORAUDIO_BLN_BLN_PRM_DSC_1", identifier: "bargeIn", isArray: false, helpDisplayIdx: 1, repeatable: false, required: true, type: "bln", mustBeLiteral: true }, { allowNotSet: false, allowCustomJson: false, description: "AR_FN_AUDIO_AUDIOPLAYBACKOPTIONS_ANYPROMPTORAUDIO_BLN_BLN_PRM_DSC_2", identifier: "flushNow", isArray: false, helpDisplayIdx: 2, repeatable: false, required: true, type: "bln", mustBeLiteral: true }] }], needsServerInfo: true }, ceiling: { identifier: "ceiling", description: "AR_FN_DSC_CEILING", type: "function", name: "Ceiling", category: "mathematical", overloads: [{ description: "AR_FN_CUR_CEILING_CUR_DSC", identifier: "Currency_ONE ceiling(Currency_ONE)", support: { version: "1.0", resolver: "None" }, returnValue: { description: "AR_FN_CUR_CEILING_CUR_RV", isArray: false, type: "cur" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_FN_CUR_CEILING_CUR_PRM_DSC_0", identifier: "currencyValue", isArray: false, helpDisplayIdx: 0, repeatable: false, required: true, type: "cur" }], examples: [{ input: 'Ceiling(MakeCurrency(2.30, "USD"))', output: "AR_FN_CUR_CEILING_CUR_EX_OUT_0" }, { input: 'Ceiling(MakeCurrency(3.20, "USD"))', output: "AR_FN_CUR_CEILING_CUR_EX_OUT_1" }, { input: 'Ceiling(MakeCurrency(-3.20, "USD"))', output: "AR_FN_CUR_CEILING_CUR_EX_OUT_2" }, { input: 'Ceiling(MakeCurrency(5.00, "USD"))', output: "AR_FN_CUR_CEILING_CUR_EX_OUT_3" }] }, { description: "AR_FN_DEC_CEILING_DEC_DSC", identifier: "Decimal_ONE ceiling(Decimal_ONE)", support: { version: "1.0", resolver: "None" }, returnValue: { description: "AR_FN_DEC_CEILING_DEC_RV", isArray: false, type: "dec" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_FN_DEC_CEILING_DEC_PRM_DSC_0", identifier: "decimalValue", isArray: false, helpDisplayIdx: 0, repeatable: false, required: true, type: "dec" }], examples: [{ input: "Ceiling(2.3)", output: "3.0" }, { input: "Ceiling(3.2)", output: "4.0" }, { input: "Ceiling(-3.2)", output: "-3.0" }, { input: "Ceiling(5.0)", output: "5.0" }] }, { description: "AR_FN_LNG_CEILING_LNG_DSC", identifier: "Long_ONE ceiling(Long_ONE)", support: { version: "1.0", resolver: "None" }, returnValue: { description: "AR_FN_LNG_CEILING_LNG_RV", isArray: false, type: "int" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_FN_LNG_CEILING_LNG_PRM_DSC_0", identifier: "integerValue", isArray: false, helpDisplayIdx: 0, repeatable: false, required: true, type: "int" }], examples: [{ input: "Ceiling(3)", output: "3" }, { input: "Ceiling(3+7)", output: "10" }, { input: "Ceiling(-3)", output: "-3" }, { input: "Ceiling(0)", output: "0" }] }] }, floor: { identifier: "floor", description: "AR_FN_DSC_FLOOR", type: "function", name: "Floor", category: "mathematical", overloads: [{ description: "AR_FN_CUR_FLOOR_CUR_DSC", identifier: "Currency_ONE floor(Currency_ONE)", support: { version: "1.0", resolver: "None" }, returnValue: { description: "AR_FN_CUR_FLOOR_CUR_RV", isArray: false, type: "cur" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_FN_CUR_FLOOR_CUR_PRM_DSC_0", identifier: "currencyValue", isArray: false, helpDisplayIdx: 0, repeatable: false, required: true, type: "cur" }], examples: [{ input: 'Floor(MakeCurrency(2.30, "USD"))', output: "AR_FN_CUR_FLOOR_CUR_EX_OUT_0" }, { input: 'Floor(MakeCurrency(3.20, "USD"))', output: "AR_FN_CUR_FLOOR_CUR_EX_OUT_1" }, { input: 'Floor(MakeCurrency(-3.20, "USD"))', output: "AR_FN_CUR_FLOOR_CUR_EX_OUT_2" }, { input: 'Floor(MakeCurrency(5.00, "USD"))', output: "AR_FN_CUR_FLOOR_CUR_EX_OUT_3" }, { input: 'Floor(MakeCurrency(NOT_SET, "USD"))', output: "AR_FN_CUR_FLOOR_CUR_EX_OUT_4" }] }, { description: "AR_FN_DEC_FLOOR_DEC_DSC", identifier: "Decimal_ONE floor(Decimal_ONE)", support: { version: "1.0", resolver: "None" }, returnValue: { description: "AR_FN_DEC_FLOOR_DEC_RV", isArray: false, type: "dec" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_FN_DEC_FLOOR_DEC_PRM_DSC_0", identifier: "decimalValue", isArray: false, helpDisplayIdx: 0, repeatable: false, required: true, type: "dec" }], examples: [{ input: "Floor(2.3)", output: "2.0" }, { input: "Floor(3.2)", output: "3.0" }, { input: "Floor(-3.2)", output: "-4.0" }, { input: "Floor(5.0)", output: "5.0" }] }, { description: "AR_FN_LNG_FLOOR_LNG_DSC", identifier: "Long_ONE floor(Long_ONE)", support: { version: "1.0", resolver: "None" }, returnValue: { description: "AR_FN_LNG_FLOOR_LNG_RV", isArray: false, type: "int" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_FN_LNG_FLOOR_LNG_PRM_DSC_0", identifier: "integerValue", isArray: false, helpDisplayIdx: 0, repeatable: false, required: true, type: "int" }], examples: [{ input: "Floor(3)", output: "3" }, { input: "Floor(3+7)", output: "10" }, { input: "Floor(-3)", output: "-3" }, { input: "Floor(0)", output: "0" }] }] }, round: { identifier: "round", description: "AR_FN_DSC_ROUND", type: "function", name: "Round", category: "mathematical", overloads: [{ description: "AR_FN_CUR_ROUND_CUR_DSC", identifier: "Currency_ONE round(Currency_ONE)", support: { version: "1.0", resolver: "None" }, returnValue: { description: "AR_FN_CUR_ROUND_CUR_RV", isArray: false, type: "cur" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_FN_CUR_ROUND_CUR_PRM_DSC_0", identifier: "currencyValue", isArray: false, helpDisplayIdx: 0, repeatable: false, required: true, type: "cur" }], examples: [{ input: 'Round(MakeCurrency(3.22, "USD"))', output: "AR_FN_CUR_ROUND_CUR_EX_OUT_0" }, { input: 'Round(MakeCurrency(1.50, "USD"))', output: "AR_FN_CUR_ROUND_CUR_EX_OUT_1" }, { input: 'Round(MakeCurrency(1.49, "USD"))', output: "AR_FN_CUR_ROUND_CUR_EX_OUT_2" }, { input: 'Round(MakeCurrency(0.00, "USD"))', output: "AR_FN_CUR_ROUND_CUR_EX_OUT_3" }, { input: 'Round(MakeCurrency(-3.20, "USD"))', output: "AR_FN_CUR_ROUND_CUR_EX_OUT_4" }, { input: 'Round(MakeCurrency(-3.60, "USD"))', output: "AR_FN_CUR_ROUND_CUR_EX_OUT_5" }] }, { description: "AR_FN_DEC_ROUND_DEC_DSC", identifier: "Decimal_ONE round(Decimal_ONE)", support: { version: "1.0", resolver: "None" }, returnValue: { description: "AR_FN_DEC_ROUND_DEC_RV", isArray: false, type: "dec" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_FN_DEC_ROUND_DEC_PRM_DSC_0", identifier: "value", isArray: false, helpDisplayIdx: 0, repeatable: false, required: true, type: "dec" }], examples: [{ input: "Round(3.225)", output: "3.0" }, { input: "Round(1.5)", output: "2.0" }, { input: "Round(1.49)", output: "1.0" }, { input: "Round(0.0)", output: "0.0" }, { input: "Round(-3.2)", output: "-3.0" }, { input: "Round(-3.6)", output: "-4.0" }, { input: "Round(-3.614)", output: "-4.0" }] }, { description: "AR_FN_DEC_ROUND_DEC_LNG_DSC", identifier: "Decimal_ONE round(Decimal_ONE,Long_ONE)", support: { version: "1.0", resolver: "None" }, returnValue: { description: "AR_FN_DEC_ROUND_DEC_LNG_RV", isArray: false, type: "dec" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_FN_DEC_ROUND_DEC_LNG_PRM_DSC_0", identifier: "value", isArray: false, helpDisplayIdx: 0, repeatable: false, required: true, type: "dec" }, { allowNotSet: false, allowCustomJson: false, description: "AR_FN_DEC_ROUND_DEC_LNG_PRM_DSC_1", identifier: "digits", isArray: false, helpDisplayIdx: 1, max: "28", min: "0", repeatable: false, required: true, type: "int" }], examples: [{ input: "Round(3.225, 1)", output: "3.2" }, { input: "Round(3.225, 2)", output: "3.23" }, { input: "Round(1.5, 0)", output: "2.0" }, { input: "Round(1.49, 1)", output: "1.5" }, { input: "Round(0.0, 2)", output: "0.0" }, { input: "Round(-3.2, 0)", output: "-3.0" }, { input: "Round(-3.2, 1)", output: "-3.2" }, { input: "Round(-3.6, 0)", output: "-4.0" }, { input: "Round(-3.6, 1)", output: "-3.6" }, { input: "Round(-3.614, 0)", output: "-4.0" }, { input: "Round(-3.614, 2)", output: "-3.61" }] }, { description: "AR_FN_CUR_ROUND_CUR_LNG_DSC", identifier: "Currency_ONE round(Currency_ONE,Long_ONE)", support: { version: "1.0", resolver: "None" }, returnValue: { description: "AR_FN_CUR_ROUND_CUR_LNG_RV", isArray: false, type: "cur" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_FN_CUR_ROUND_CUR_LNG_PRM_DSC_0", identifier: "value", isArray: false, helpDisplayIdx: 0, repeatable: false, required: true, type: "cur" }, { allowNotSet: false, allowCustomJson: false, description: "AR_FN_CUR_ROUND_CUR_LNG_PRM_DSC_1", identifier: "digits", isArray: false, helpDisplayIdx: 1, max: "28", min: "0", repeatable: false, required: true, type: "int" }], examples: [{ input: 'Round(MakeCurrency(3.225, "USD"), 1)', output: "AR_FN_CUR_ROUND_CUR_LNG_EX_OUT_0" }, { input: 'Round(MakeCurrency(3.225, "USD"), 2)', output: "AR_FN_CUR_ROUND_CUR_LNG_EX_OUT_1" }, { input: 'Round(MakeCurrency(1.50, "USD"), 0)', output: "AR_FN_CUR_ROUND_CUR_LNG_EX_OUT_2" }, { input: 'Round(MakeCurrency(1.49, "USD"), 1)', output: "AR_FN_CUR_ROUND_CUR_LNG_EX_OUT_3" }, { input: 'Round(MakeCurrency(0.00, "USD"), 2)', output: "AR_FN_CUR_ROUND_CUR_LNG_EX_OUT_4" }, { input: 'Round(MakeCurrency(-3.20, "USD"), 0)', output: "AR_FN_CUR_ROUND_CUR_LNG_EX_OUT_5" }, { input: 'Round(MakeCurrency(-3.20, "USD"), 1)', output: "AR_FN_CUR_ROUND_CUR_LNG_EX_OUT_6" }, { input: 'Round(MakeCurrency(-3.60, "USD"), 0)', output: "AR_FN_CUR_ROUND_CUR_LNG_EX_OUT_7" }, { input: 'Round(MakeCurrency(-3.60, "USD"), 1)', output: "AR_FN_CUR_ROUND_CUR_LNG_EX_OUT_8" }, { input: 'Round(MakeCurrency(-3.614, "USD"), 2)', output: "AR_FN_CUR_ROUND_CUR_LNG_EX_OUT_9" }, { input: 'Round(MakeCurrency(-3.614, "USD"), 0)', output: "AR_FN_CUR_ROUND_CUR_LNG_EX_OUT_10" }] }] }, sum: { identifier: "sum", description: "AR_FN_DSC_SUM", type: "function", name: "Sum", category: "mathematical", overloads: [{ description: "AR_FN_LNG_SUM_LNG_LNG_MORE_DSC", identifier: "Long_ONE sum(Long_ONE,Long_ONE...)", support: { version: "1.0", resolver: "n-SameType" }, returnValue: { description: "AR_FN_LNG_SUM_LNG_LNG_MORE_RV", isArray: false, type: "int" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_LNG_SUM_LNG_LNG_MORE_PRM_DSC_0", identifier: "integerValue", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "int" }, { allowNotSet: true, allowCustomJson: false, description: "AR_FN_LNG_SUM_LNG_LNG_MORE_PRM_DSC_1", identifier: "nextIntegerValue", isArray: false, helpDisplayIdx: 1, repeatable: true, required: false, type: "int" }], examples: [{ input: "Sum(3, 5)", output: "8" }, { input: "Sum(0, 5)", output: "5" }, { input: "Sum(3, 5, -8)", output: "0" }, { input: "Sum(NOT_SET, 5)", output: "5" }, { input: "Sum(3, NOT_SET)", output: "3" }, { input: "Sum(ToInt(NOT_SET), ToInt(NOT_SET))", output: "0" }] }, { description: "AR_FN_CUR_SUM_CUR_CUR_MORE_DSC", identifier: "Currency_ONE sum(Currency_ONE,Currency_ONE...)", support: { version: "1.0", resolver: "n-SameType" }, returnValue: { description: "AR_FN_CUR_SUM_CUR_CUR_MORE_RV", isArray: false, type: "cur" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_CUR_SUM_CUR_CUR_MORE_PRM_DSC_0", identifier: "currencyValue", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "cur" }, { allowNotSet: true, allowCustomJson: false, description: "AR_FN_CUR_SUM_CUR_CUR_MORE_PRM_DSC_1", identifier: "nextCurrencyValue", isArray: false, helpDisplayIdx: 1, repeatable: true, required: false, type: "cur" }], examples: [{ input: 'Sum(MakeCurrency(3.50, "USD"), MakeCurrency(5.50, "USD"))', output: "AR_FN_CUR_SUM_CUR_CUR_MORE_EX_OUT_0" }, { input: 'Sum(MakeCurrency(0.00, "USD"), MakeCurrency(-5.20, "USD"))', output: "AR_FN_CUR_SUM_CUR_CUR_MORE_EX_OUT_1" }, { input: 'Sum(MakeCurrency(3.00, "USD"), MakeCurrency(5.00, "USD"), MakeCurrency(-8.40, "USD"))', output: "AR_FN_CUR_SUM_CUR_CUR_MORE_EX_OUT_2" }, { input: 'Sum(MakeCurrency(NOT_SET, "USD"), MakeCurrency(5.00, "USD"))', output: "AR_FN_CUR_SUM_CUR_CUR_MORE_EX_OUT_3" }, { input: 'Sum(MakeCurrency(-3.00, "USD"), MakeCurrency(NOT_SET, "USD"))', output: "AR_FN_CUR_SUM_CUR_CUR_MORE_EX_OUT_4" }, { input: 'Sum(MakeCurrency(ToDecimal(NOT_SET), "USD"), MakeCurrency(ToDecimal(NOT_SET), "USD"))', output: "AR_FN_CUR_SUM_CUR_CUR_MORE_EX_OUT_5" }, { input: "Sum(ToCurrency(NOT_SET), ToCurrency(NOT_SET))", output: "AR_FN_CUR_SUM_CUR_CUR_MORE_EX_OUT_6" }] }, { description: "AR_FN_DEC_SUM_DEC_DEC_MORE_DSC", identifier: "Decimal_ONE sum(Decimal_ONE,Decimal_ONE...)", support: { version: "1.0", resolver: "n-SameType" }, returnValue: { description: "AR_FN_DEC_SUM_DEC_DEC_MORE_RV", isArray: false, type: "dec" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_DEC_SUM_DEC_DEC_MORE_PRM_DSC_0", identifier: "decimalValue", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "dec" }, { allowNotSet: true, allowCustomJson: false, description: "AR_FN_DEC_SUM_DEC_DEC_MORE_PRM_DSC_1", identifier: "nextDecimalValue", isArray: false, helpDisplayIdx: 1, repeatable: true, required: false, type: "dec" }], examples: [{ input: "Sum(3.5, 5.5)", output: "9.0" }, { input: "Sum(0.0, -5.2)", output: "-5.2" }, { input: "Sum(3.0, 5.0, -8.4)", output: "-0.4" }, { input: "Sum(NOT_SET, 5.0)", output: "5.0" }, { input: "Sum(-3.0, NOT_SET)", output: "-3.0" }, { input: "Sum(ToDecimal(NOT_SET), ToDecimal(NOT_SET))", output: "0.0" }] }, { description: "AR_FN_DUR_SUM_DUR_DUR_MORE_DSC", identifier: "Duration_ONE sum(Duration_ONE,Duration_ONE...)", support: { version: "1.0", resolver: "n-SameType" }, returnValue: { description: "AR_FN_DUR_SUM_DUR_DUR_MORE_RV", isArray: false, type: "dur" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_DUR_SUM_DUR_DUR_MORE_PRM_DSC_0", identifier: "value", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "dur" }, { allowNotSet: true, allowCustomJson: false, description: "AR_FN_DUR_SUM_DUR_DUR_MORE_PRM_DSC_1", identifier: "nextValue", isArray: false, helpDisplayIdx: 1, repeatable: true, required: false, type: "dur" }], examples: [{ input: 'Sum(ToDuration("P1DT1H0M3S"), ToDuration("P1DT0H30M3S"))', output: "AR_FN_DUR_SUM_DUR_DUR_MORE_EX_OUT_0" }, { input: 'Sum(ToDuration("P1DT1H0M3S"), NOT_SET)', output: "AR_FN_DUR_SUM_DUR_DUR_MORE_EX_OUT_1" }, { input: "Sum(ToDuration(NOT_SET), ToDuration(NOT_SET))", output: "AR_FN_DUR_SUM_DUR_DUR_MORE_EX_OUT_2" }] }, { description: "AR_FN_LNG_SUM_LNG_COLL_DSC", identifier: "Long_ONE sum(Long_COLL)", support: { version: "1.0", resolver: "n-SameType" }, returnValue: { description: "AR_FN_LNG_SUM_LNG_COLL_RV", isArray: false, type: "int" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_FN_LNG_SUM_LNG_COLL_PRM_DSC_0", identifier: "integerCollection", isArray: true, helpDisplayIdx: 0, repeatable: false, required: true, type: "int" }], examples: [{ input: "Sum(MakeList(3, 5, 5))", output: "13" }, { input: "Sum(MakeList(3, ToInt(NOT_SET), 5))", output: "8" }, { input: "Sum(MakeList(ToInt(NOT_SET), ToInt(NOT_SET)))", output: "0" }, { input: "Sum(MakeEmptyList(ToInt(NOT_SET)))", output: "0" }] }, { description: "AR_FN_CUR_SUM_CUR_COLL_DSC", identifier: "Currency_ONE sum(Currency_COLL)", support: { version: "1.0", resolver: "n-SameType" }, returnValue: { description: "AR_FN_CUR_SUM_CUR_COLL_RV", isArray: false, type: "cur" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_FN_CUR_SUM_CUR_COLL_PRM_DSC_0", identifier: "currencyCollection", isArray: true, helpDisplayIdx: 0, repeatable: false, required: true, type: "cur" }], examples: [{ input: 'Sum(MakeList(MakeCurrency(3.50, "USD"), MakeCurrency(5.50, "USD")))', output: "AR_FN_CUR_SUM_CUR_COLL_EX_OUT_0" }, { input: 'Sum(MakeList(MakeCurrency(0.00, "USD"), MakeCurrency(-5.20, "USD")))', output: "AR_FN_CUR_SUM_CUR_COLL_EX_OUT_1" }, { input: 'Sum(MakeList(MakeCurrency(3.00, "USD"), MakeCurrency(5.00, "USD"), MakeCurrency(-8.40, "USD")))', output: "AR_FN_CUR_SUM_CUR_COLL_EX_OUT_2" }, { input: 'Sum(MakeList(MakeCurrency(ToDecimal(NOT_SET), "USD"), MakeCurrency(5.00, "USD")))', output: "AR_FN_CUR_SUM_CUR_COLL_EX_OUT_3" }, { input: 'Sum(MakeList(MakeCurrency(-3.00, "USD"), MakeCurrency(ToDecimal(NOT_SET), "USD")))', output: "AR_FN_CUR_SUM_CUR_COLL_EX_OUT_4" }, { input: 'Sum(MakeList(MakeCurrency(ToDecimal(NOT_SET), "USD"), MakeCurrency(ToDecimal(NOT_SET), "USD")))', output: "AR_FN_CUR_SUM_CUR_COLL_EX_OUT_5" }, { input: "Sum(MakeEmptyList(ToCurrency(NOT_SET)))", output: "AR_FN_CUR_SUM_CUR_COLL_EX_OUT_6" }] }, { description: "AR_FN_DEC_SUM_DEC_COLL_DSC", identifier: "Decimal_ONE sum(Decimal_COLL)", support: { version: "1.0", resolver: "n-SameType" }, returnValue: { description: "AR_FN_DEC_SUM_DEC_COLL_RV", isArray: false, type: "dec" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_FN_DEC_SUM_DEC_COLL_PRM_DSC_0", identifier: "decimalCollection", isArray: true, helpDisplayIdx: 0, repeatable: false, required: true, type: "dec" }], examples: [{ input: "Sum(MakeList(3.5, 5.5, 5.2))", output: "14.2" }, { input: "Sum(MakeList(3.5, ToDecimal(NOT_SET), 5.5))", output: "9.0" }, { input: "Sum(MakeList(ToDecimal(NOT_SET), ToDecimal(NOT_SET)))", output: "0.0" }, { input: "Sum(MakeEmptyList(ToDecimal(NOT_SET)))", output: "0.0" }] }, { description: "AR_FN_DUR_SUM_DUR_COLL_DSC", identifier: "Duration_ONE sum(Duration_COLL)", support: { version: "1.0", resolver: "n-SameType" }, returnValue: { description: "AR_FN_DUR_SUM_DUR_COLL_RV", isArray: false, type: "dur" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_FN_DUR_SUM_DUR_COLL_PRM_DSC_0", identifier: "value", isArray: true, helpDisplayIdx: 0, repeatable: false, required: true, type: "dur" }], examples: [{ input: 'Sum(MakeList(ToDuration("P1DT1H0M3S"), ToDuration("P1DT0H30M3S")))', output: "AR_FN_DUR_SUM_DUR_COLL_EX_OUT_0" }, { input: 'Sum(MakeList(ToDuration("P1DT1H0M3S"), ToDuration(NOT_SET)))', output: "AR_FN_DUR_SUM_DUR_COLL_EX_OUT_1" }, { input: "Sum(MakeList(ToDuration(NOT_SET), ToDuration(NOT_SET)))", output: "AR_FN_DUR_SUM_DUR_COLL_EX_OUT_2" }, { input: "Sum(MakeEmptyList(ToDuration(NOT_SET)))", output: "AR_FN_DUR_SUM_DUR_COLL_EX_OUT_3" }] }] }, average: { identifier: "average", description: "AR_FN_DSC_AVERAGE", type: "function", name: "Average", category: "statistical", overloads: [{ description: "AR_FN_CUR_AVERAGE_CUR_MORE_DSC", identifier: "Currency_ONE average(Currency_ONE...)", support: { version: "1.0", resolver: "None" }, returnValue: { description: "AR_FN_CUR_AVERAGE_CUR_MORE_RV", isArray: false, type: "cur" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_CUR_AVERAGE_CUR_MORE_PRM_DSC_0", identifier: "value", isArray: false, helpDisplayIdx: 0, repeatable: true, required: false, type: "cur" }], examples: [{ input: 'Average(MakeCurrency(8.50, "USD"), MakeCurrency(4.50, "USD"))', output: "AR_FN_CUR_AVERAGE_CUR_MORE_EX_OUT_0" }, { input: 'Average(MakeCurrency(8.00, "USD"), MakeCurrency(0.00, "USD"), MakeCurrency(-4.00,"USD"), MakeCurrency(14.00,"USD"))', output: "AR_FN_CUR_AVERAGE_CUR_MORE_EX_OUT_1" }, { input: 'Average(MakeCurrency(8.00, "USD"), MakeCurrency(NOT_SET, "USD"))', output: "AR_FN_CUR_AVERAGE_CUR_MORE_EX_OUT_2" }, { input: "Average(ToCurrency(NOT_SET))", output: "AR_FN_CUR_AVERAGE_CUR_MORE_EX_OUT_3" }] }, { description: "AR_FN_DEC_AVERAGE_DEC_MORE_DSC", identifier: "Decimal_ONE average(Decimal_ONE...)", support: { version: "1.0", resolver: "None" }, returnValue: { description: "AR_FN_DEC_AVERAGE_DEC_MORE_RV", isArray: false, type: "dec" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_DEC_AVERAGE_DEC_MORE_PRM_DSC_0", identifier: "decimalValue", isArray: false, helpDisplayIdx: 0, repeatable: true, required: false, type: "dec" }], examples: [{ input: "Average(8.5, 4.5)", output: "6.5" }, { input: "Average(8.0, 0.0, -4.0, 14.0)", output: "4.5" }, { input: "Average(8.0, NOT_SET)", output: "8.0" }, { input: "Average(ToDecimal(NOT_SET), ToDecimal(NOT_SET))", output: "0.0" }] }, { description: "AR_FN_DUR_AVERAGE_DUR_MORE_DSC", identifier: "Duration_ONE average(Duration_ONE...)", support: { version: "1.0", resolver: "None" }, returnValue: { description: "AR_FN_DUR_AVERAGE_DUR_MORE_RV", isArray: false, type: "dur" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_DUR_AVERAGE_DUR_MORE_PRM_DSC_0", identifier: "durationValue", isArray: false, helpDisplayIdx: 0, repeatable: true, required: false, type: "dur" }], examples: [{ input: "Average(MakeDuration(0, 4, 0, 0), MakeDuration(0, 2, 0, 0))", output: "AR_FN_DUR_AVERAGE_DUR_MORE_EX_OUT_0" }, { input: "Average(MakeDuration(0, 8, 0, 0), MakeDuration(0, 0, 0, 0), MakeDuration(0, -4, 0, 0), MakeDuration(0, 14, 0, 0))", output: "AR_FN_DUR_AVERAGE_DUR_MORE_EX_OUT_1" }, { input: "Average(MakeDuration(0, 8, 0, 0), ToDuration(NOT_SET))", output: "AR_FN_DUR_AVERAGE_DUR_MORE_EX_OUT_2" }, { input: "Average(ToDuration(NOT_SET), ToDuration(NOT_SET))", output: "AR_FN_DUR_AVERAGE_DUR_MORE_EX_OUT_3" }] }, { description: "AR_FN_DEC_AVERAGE_LNG_MORE_DSC", identifier: "Decimal_ONE average(Long_ONE...)", support: { version: "1.0", resolver: "None" }, returnValue: { description: "AR_FN_DEC_AVERAGE_LNG_MORE_RV", isArray: false, type: "dec" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_DEC_AVERAGE_LNG_MORE_PRM_DSC_0", identifier: "integerValue", isArray: false, helpDisplayIdx: 0, repeatable: true, required: false, type: "int" }], examples: [{ input: "Average(8, 4)", output: "6.0" }, { input: "Average(8, 0, -4, 14)", output: "4.5" }, { input: "Average(8, NOT_SET)", output: "8.0" }, { input: "Average(ToInt(NOT_SET), ToInt(NOT_SET))", output: "0.0" }] }, { description: "AR_FN_CUR_AVERAGE_CUR_COLL_DSC", identifier: "Currency_ONE average(Currency_COLL)", support: { version: "1.0", resolver: "None" }, returnValue: { description: "AR_FN_CUR_AVERAGE_CUR_COLL_RV", isArray: false, type: "cur" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_FN_CUR_AVERAGE_CUR_COLL_PRM_DSC_0", identifier: "currencyCollection", isArray: true, helpDisplayIdx: 0, repeatable: false, required: true, type: "cur" }], examples: [{ input: 'Average(MakeList(MakeCurrency(8.50, "USD"), MakeCurrency(4.50, "USD")))', output: "AR_FN_CUR_AVERAGE_CUR_COLL_EX_OUT_0" }, { input: 'Average(MakeList(MakeCurrency(8.00, "USD"), MakeCurrency(0.00, "USD"), MakeCurrency(-4.00, "USD"), MakeCurrency(14.00, "USD")))', output: "AR_FN_CUR_AVERAGE_CUR_COLL_EX_OUT_1" }, { input: 'Average(MakeList(MakeCurrency(8.00, "USD"), MakeCurrency(ToDecimal(NOT_SET), "USD")))', output: "AR_FN_CUR_AVERAGE_CUR_COLL_EX_OUT_2" }, { input: "Average(MakeList(ToCurrency(NOT_SET)))", output: "AR_FN_CUR_AVERAGE_CUR_COLL_EX_OUT_3" }, { input: "Average(MakeEmptyList(ToCurrency(NOT_SET)))", output: "AR_FN_CUR_AVERAGE_CUR_COLL_EX_OUT_4" }] }, { description: "AR_FN_DEC_AVERAGE_DEC_COLL_DSC", identifier: "Decimal_ONE average(Decimal_COLL)", support: { version: "1.0", resolver: "None" }, returnValue: { description: "AR_FN_DEC_AVERAGE_DEC_COLL_RV", isArray: false, type: "dec" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_FN_DEC_AVERAGE_DEC_COLL_PRM_DSC_0", identifier: "decimalCollection", isArray: true, helpDisplayIdx: 0, repeatable: false, required: true, type: "dec" }], examples: [{ input: "Average(MakeList(8.5, 4.5))", output: "6.5" }, { input: "Average(MakeList(8.0, 0.0, -4.0, 14.0))", output: "4.5" }, { input: "Average(MakeList(8.0, ToDecimal(NOT_SET)))", output: "8.0" }, { input: "Average(MakeList(ToDecimal(NOT_SET)))", output: "0.0" }, { input: "Average(MakeEmptyList(ToDecimal(NOT_SET)))", output: "0.0" }] }, { description: "AR_FN_DEC_AVERAGE_LNG_COLL_DSC", identifier: "Decimal_ONE average(Long_COLL)", support: { version: "1.0", resolver: "None" }, returnValue: { description: "AR_FN_DEC_AVERAGE_LNG_COLL_RV", isArray: false, type: "dec" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_FN_DEC_AVERAGE_LNG_COLL_PRM_DSC_0", identifier: "integerCollection", isArray: true, helpDisplayIdx: 0, repeatable: false, required: true, type: "int" }], examples: [{ input: "Average(MakeList(8, 4))", output: "6.0" }, { input: "Average(MakeList(8, 0, -4, 14))", output: "4.5" }, { input: "Average(MakeList(8, ToInt(NOT_SET)))", output: "8.0" }, { input: "Average(MakeList(ToInt(NOT_SET)))", output: "0.0" }, { input: "Average(MakeEmptyList(ToInt(NOT_SET)))", output: "0.0" }] }, { description: "AR_FN_DUR_AVERAGE_DUR_COLL_DSC", identifier: "Duration_ONE average(Duration_COLL)", support: { version: "1.0", resolver: "None" }, returnValue: { description: "AR_FN_DUR_AVERAGE_DUR_COLL_RV", isArray: false, type: "dur" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_FN_DUR_AVERAGE_DUR_COLL_PRM_DSC_0", identifier: "durationCollection", isArray: true, helpDisplayIdx: 0, repeatable: false, required: true, type: "dur" }], examples: [{ input: "Average(MakeList(MakeDuration(0, 4, 0, 0), MakeDuration(0, 2, 0, 0)))", output: "AR_FN_DUR_AVERAGE_DUR_COLL_EX_OUT_0" }, { input: "Average(MakeList(MakeDuration(0, 8, 0, 0), MakeDuration(0, 0, 0, 0), MakeDuration(0, -4, 0, 0), MakeDuration(0, 14, 0, 0)))", output: "AR_FN_DUR_AVERAGE_DUR_COLL_EX_OUT_1" }, { input: "Average(MakeList(MakeDuration(0, 8, 0, 0), ToDuration(NOT_SET)))", output: "AR_FN_DUR_AVERAGE_DUR_COLL_EX_OUT_2" }, { input: "Average(MakeList(ToDuration(NOT_SET), ToDuration(NOT_SET)))", output: "AR_FN_DUR_AVERAGE_DUR_COLL_EX_OUT_3" }] }] }, findSystemPrompt: { identifier: "findSystemPrompt", description: "AR_FN_DSC_FINDSYSTEMPROMPT", type: "function", name: "FindSystemPrompt", category: "search", overloads: [{ description: "AR_FN_PROMPT_FINDSYSTEMPROMPT_STR_DSC", identifier: "Prompt_ONE findSystemPrompt(String_ONE)", support: { version: "1.0", resolver: "None" }, needsServerInfo: true, returnValue: { description: "AR_FN_PROMPT_FINDSYSTEMPROMPT_STR_RV", isArray: false, type: "pmt" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_PROMPT_FINDSYSTEMPROMPT_STR_PRM_DSC_0", identifier: "promptName", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "str" }], examples: [{ input: 'FindSystemPrompt("boolean_false")', output: "AR_FN_PROMPT_FINDSYSTEMPROMPT_STR_EX_OUT_0" }, { input: 'FindSystemPrompt("PromptSystem.boolean_false")', output: "AR_FN_PROMPT_FINDSYSTEMPROMPT_STR_EX_OUT_1" }, { input: 'FindSystemPrompt("foo")', output: "AR_FN_PROMPT_FINDSYSTEMPROMPT_STR_EX_OUT_2" }, { input: 'FindSystemPrompt("")', output: "AR_FN_PROMPT_FINDSYSTEMPROMPT_STR_EX_OUT_3" }, { input: "FindSystemPrompt(ToString(NOT_SET))", output: "AR_FN_PROMPT_FINDSYSTEMPROMPT_STR_EX_OUT_4" }] }, { description: "AR_FN_PROMPT_FINDSYSTEMPROMPT_NTS_DSC", identifier: "Prompt_ONE findSystemPrompt(Null_ONE)", support: { version: "1.0", resolver: "None" }, needsServerInfo: true, returnValue: { description: "AR_FN_PROMPT_FINDSYSTEMPROMPT_NTS_RV", isArray: false, type: "pmt" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_PROMPT_FINDSYSTEMPROMPT_NTS_PRM_DSC_0", identifier: "promptName", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "nts" }], examples: [{ input: "FindSystemPrompt(NOT_SET)", output: "AR_FN_PROMPT_FINDSYSTEMPROMPT_NTS_EX_OUT_0" }] }], needsServerInfo: true }, findUserPrompt: { identifier: "findUserPrompt", description: "AR_FN_DSC_FINDUSERPROMPT", type: "function", name: "FindUserPrompt", category: "search", overloads: [{ description: "AR_FN_PROMPT_FINDUSERPROMPT_STR_DSC", identifier: "Prompt_ONE findUserPrompt(String_ONE)", support: { version: "1.0", resolver: "None" }, needsServerInfo: true, returnValue: { description: "AR_FN_PROMPT_FINDUSERPROMPT_STR_RV", isArray: false, type: "pmt" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_PROMPT_FINDUSERPROMPT_STR_PRM_DSC_0", identifier: "promptName", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "str" }], examples: [{ input: 'FindUserPrompt("Greeting")', output: "AR_FN_PROMPT_FINDUSERPROMPT_STR_EX_OUT_0" }, { input: 'FindUserPrompt("Prompt.Greeting")', output: "AR_FN_PROMPT_FINDUSERPROMPT_STR_EX_OUT_1" }, { input: 'FindUserPrompt("")', output: "AR_FN_PROMPT_FINDUSERPROMPT_STR_EX_OUT_2" }, { input: "FindUserPrompt(ToString(NOT_SET))", output: "AR_FN_PROMPT_FINDUSERPROMPT_STR_EX_OUT_3" }] }, { description: "AR_FN_PROMPT_FINDUSERPROMPT_NTS_DSC", identifier: "Prompt_ONE findUserPrompt(Null_ONE)", support: { version: "1.0", resolver: "None" }, needsServerInfo: true, returnValue: { description: "AR_FN_PROMPT_FINDUSERPROMPT_NTS_RV", isArray: false, type: "pmt" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_PROMPT_FINDUSERPROMPT_NTS_PRM_DSC_0", identifier: "promptName", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "nts" }], examples: [{ input: "FindUserPrompt(NOT_SET)", output: "AR_FN_PROMPT_FINDUSERPROMPT_NTS_EX_OUT_0" }] }], needsServerInfo: true }, findString: { identifier: "findString", description: "AR_FN_DSC_FINDSTRING", type: "function", name: "FindString", category: "text", overloads: [{ description: "AR_FN_LNG_FINDSTRING_STR_STR_DSC", identifier: "Long_ONE findString(String_ONE,String_ONE)", support: { version: "1.0", resolver: "None" }, returnValue: { description: "AR_FN_LNG_FINDSTRING_STR_STR_RV", isArray: false, type: "int" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_FN_LNG_FINDSTRING_STR_STR_PRM_DSC_0", identifier: "stringToSearch", isArray: false, helpDisplayIdx: 0, repeatable: false, required: true, type: "str" }, { allowNotSet: false, allowCustomJson: false, description: "AR_FN_LNG_FINDSTRING_STR_STR_PRM_DSC_1", identifier: "textToFind", isArray: false, helpDisplayIdx: 1, repeatable: false, required: true, type: "str" }], examples: [{ input: 'FindString("Hello", "ll")', output: "2" }, { input: 'FindString("Hello", "he")', output: "-1" }, { input: 'FindString("Hello", "abc")', output: "-1" }, { input: 'FindString("Hello", "")', output: "0" }] }, { description: "AR_FN_LNG_FINDSTRING_STR_STR_BLN_DSC", identifier: "Long_ONE findString(String_ONE,String_ONE,Boolean_ONE)", support: { version: "1.0", resolver: "None" }, needsServerInfo: true, returnValue: { description: "AR_FN_LNG_FINDSTRING_STR_STR_BLN_RV", isArray: false, type: "int" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_FN_LNG_FINDSTRING_STR_STR_BLN_PRM_DSC_0", identifier: "stringToSearch", isArray: false, helpDisplayIdx: 0, repeatable: false, required: true, type: "str" }, { allowNotSet: false, allowCustomJson: false, description: "AR_FN_LNG_FINDSTRING_STR_STR_BLN_PRM_DSC_1", identifier: "textToFind", isArray: false, helpDisplayIdx: 1, repeatable: false, required: true, type: "str" }, { allowNotSet: false, allowCustomJson: false, description: "AR_FN_LNG_FINDSTRING_STR_STR_BLN_PRM_DSC_2", identifier: "ignoreCase", isArray: false, helpDisplayIdx: 2, repeatable: false, required: true, type: "bln" }], examples: [{ input: 'FindString("Hello", "ll", true)', output: "2" }, { input: 'FindString("Hello", "he", true)', output: "0" }, { input: 'FindString("Hello", "he", false)', output: "-1" }, { input: 'FindString("Hello", "abc", true)', output: "-1" }, { input: 'FindString("Hello", "", true)', output: "0" }, { input: 'FindString("le \xC9lever", "\xE9", true)', output: "3" }, { input: 'FindString("le \xC9lever", "\xE9", false)', output: "-1" }, { input: 'FindString("\u4E2D\u570B\u53F0\u7063KD1", "\u53F0", true)', output: "2" }, { input: 'FindString("\u4E2D\u570B\u53F0\u7063KD1", "\u53F0", false)', output: "2" }] }, { description: "AR_FN_LNG_FINDSTRING_STR_STR_LNG_DSC", identifier: "Long_ONE findString(String_ONE,String_ONE,Long_ONE)", support: { version: "1.0", resolver: "None" }, returnValue: { description: "AR_FN_LNG_FINDSTRING_STR_STR_LNG_RV", isArray: false, type: "int" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_FN_LNG_FINDSTRING_STR_STR_LNG_PRM_DSC_0", identifier: "stringToSearch", isArray: false, helpDisplayIdx: 0, repeatable: false, required: true, type: "str" }, { allowNotSet: false, allowCustomJson: false, description: "AR_FN_LNG_FINDSTRING_STR_STR_LNG_PRM_DSC_1", identifier: "textToFind", isArray: false, helpDisplayIdx: 1, repeatable: false, required: true, type: "str" }, { allowNotSet: false, allowCustomJson: false, description: "AR_FN_LNG_FINDSTRING_STR_STR_LNG_PRM_DSC_2", identifier: "occurrenceNumber", isArray: false, helpDisplayIdx: 2, min: "1", repeatable: false, required: true, type: "int" }], examples: [{ input: 'FindString("Hello Hello", "l", 3)', output: "8" }, { input: 'FindString("Hello Hello", "l", 5)', output: "-1" }, { input: 'FindString("Hello", "he", 1)', output: "-1" }, { input: 'FindString("Hello", "He", 1)', output: "0" }, { input: 'FindString("Hello", "", 1)', output: "0" }] }, { description: "AR_FN_LNG_FINDSTRING_STR_STR_LNG_BLN_DSC", identifier: "Long_ONE findString(String_ONE,String_ONE,Long_ONE,Boolean_ONE)", support: { version: "1.0", resolver: "None" }, needsServerInfo: true, returnValue: { description: "AR_FN_LNG_FINDSTRING_STR_STR_LNG_BLN_RV", isArray: false, type: "int" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_FN_LNG_FINDSTRING_STR_STR_LNG_BLN_PRM_DSC_0", identifier: "stringToSearch", isArray: false, helpDisplayIdx: 0, repeatable: false, required: true, type: "str" }, { allowNotSet: false, allowCustomJson: false, description: "AR_FN_LNG_FINDSTRING_STR_STR_LNG_BLN_PRM_DSC_1", identifier: "textToFind", isArray: false, helpDisplayIdx: 1, repeatable: false, required: true, type: "str" }, { allowNotSet: false, allowCustomJson: false, description: "AR_FN_LNG_FINDSTRING_STR_STR_LNG_BLN_PRM_DSC_2", identifier: "occurrenceNumber", isArray: false, helpDisplayIdx: 2, min: "1", repeatable: false, required: true, type: "int" }, { allowNotSet: false, allowCustomJson: false, description: "AR_FN_LNG_FINDSTRING_STR_STR_LNG_BLN_PRM_DSC_3", identifier: "ignoreCase", isArray: false, helpDisplayIdx: 3, repeatable: false, required: true, type: "bln" }], examples: [{ input: 'FindString("Hello Hello", "l", 3, true)', output: "8" }, { input: 'FindString("Hello Hello", "l", 5, true)', output: "-1" }, { input: 'FindString("Hello", "he", 1, true)', output: "0" }, { input: 'FindString("Hello", "he", 1, false)', output: "-1" }, { input: 'FindString("Hello", "He", 1, true)', output: "0" }, { input: 'FindString("Hello", "", 1, true)', output: "0" }, { input: 'FindString("le \xC9lever le \xC9lever", "\xE9", 2, true)', output: "13" }, { input: 'FindString("le \xC9lever", "\xE9", 1, false)', output: "-1" }, { input: 'FindString("\u4E2D\u570B\u53F0\u7063KD1", "\u53F0", 1, true)', output: "2" }, { input: 'FindString("\u4E2D\u570B\u53F0\u7063KD1 \u4E2D\u570B\u53F0\u7063KD1", "\u53F0", 2, false)', output: "10" }] }], needsServerInfo: true }, findUser: { identifier: "findUser", description: "AR_FN_DSC_FINDUSER", type: "function", name: "FindUser", category: "search", overloads: [{ description: "AR_FN_USR_FINDUSER_STR_DSC", identifier: "User_ONE findUser(String_ONE)", support: { version: "1.0", resolver: "None" }, needsServerInfo: true, returnValue: { description: "AR_FN_USR_FINDUSER_STR_RV", isArray: false, type: "usr" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_USR_FINDUSER_STR_PRM_DSC_0", identifier: "userEmail", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "str" }], examples: [{ input: 'FindUser("john.doe@company.com")', output: "AR_FN_USR_FINDUSER_STR_EX_OUT_0" }, { input: "FindUser(ToString(NOT_SET))", output: "AR_FN_USR_FINDUSER_STR_EX_OUT_1" }] }, { description: "AR_FN_USR_FINDUSER_NTS_DSC", identifier: "User_ONE findUser(Null_ONE)", support: { version: "1.0", resolver: "None" }, needsServerInfo: true, returnValue: { description: "AR_FN_USR_FINDUSER_NTS_RV", isArray: false, type: "usr" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_USR_FINDUSER_NTS_PRM_DSC_0", identifier: "userEmail", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "nts" }], examples: [{ input: "FindUser(NOT_SET)", output: "AR_FN_USR_FINDUSER_NTS_EX_OUT_0" }] }], needsServerInfo: true }, findUserById: { identifier: "findUserById", description: "AR_FN_DSC_FINDUSERBYID", type: "function", name: "FindUserById", category: "search", overloads: [{ description: "AR_FN_USR_FINDUSERBYID_STR_DSC", identifier: "User_ONE findUserById(String_ONE)", support: { version: "1.0", resolver: "None" }, needsServerInfo: true, returnValue: { description: "AR_FN_USR_FINDUSERBYID_STR_RV", isArray: false, type: "usr" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_USR_FINDUSERBYID_STR_PRM_DSC_0", identifier: "userId", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "str" }], examples: [{ input: 'FindUserById("5B943B5F-4205-B70F-8BE1-A245A94B2919")', output: "AR_FN_USR_FINDUSERBYID_STR_EX_OUT_0" }, { input: "FindUserById(ToString(NOT_SET))", output: "AR_FN_USR_FINDUSERBYID_STR_EX_OUT_1" }] }, { description: "AR_FN_USR_FINDUSERBYID_NTS_DSC", identifier: "User_ONE findUserById(Null_ONE)", support: { version: "1.0", resolver: "NotSetToRetType" }, needsServerInfo: true, returnValue: { description: "AR_FN_USR_FINDUSERBYID_NTS_RV", isArray: false, type: "usr" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_USR_FINDUSERBYID_NTS_PRM_DSC_0", identifier: "userId", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "nts" }], examples: [{ input: "FindUserById(NOT_SET)", output: "AR_FN_USR_FINDUSERBYID_NTS_EX_OUT_0" }] }], needsServerInfo: true }, findUsersById: { identifier: "findUsersById", description: "AR_FN_DSC_FINDUSERSBYID", type: "function", name: "FindUsersById", category: "search", overloads: [{ description: "AR_FN_USR_COLL_FINDUSERSBYID_STR_COLL_DSC", identifier: "User_COLL findUsersById(String_COLL)", support: { version: "1.0", resolver: "None" }, needsServerInfo: true, returnValue: { description: "AR_FN_USR_COLL_FINDUSERSBYID_STR_COLL_RV", isArray: true, type: "usr" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_FN_USR_COLL_FINDUSERSBYID_STR_COLL_PRM_DSC_0", identifier: "userIds", isArray: true, helpDisplayIdx: 0, repeatable: false, required: true, type: "str", maxItems: "50" }], examples: [{ input: 'FindUsersById(MakeList("5B943B5F-4205-B70F-8BE1-A245A94B2919", ToString(NOT_SET)))', output: "AR_FN_USR_COLL_FINDUSERSBYID_STR_COLL_EX_OUT_0" }, { input: "FindUsersById(MakeEmptyList(ToString(NOT_SET)))", output: "AR_FN_USR_COLL_FINDUSERSBYID_STR_COLL_EX_OUT_1" }, { input: "FindUsersById(MakeList(ToString(NOT_SET)))", output: "AR_FN_USR_COLL_FINDUSERSBYID_STR_COLL_EX_OUT_2" }] }], needsServerInfo: true }, findDivision: { identifier: "findDivision", description: "AR_FN_DSC_FINDDIVISION", type: "function", name: "FindDivision", category: "search", overloads: [{ description: "AR_FN_DIVISION_FINDDIVISION_STR_DSC", identifier: "Division_ONE findDivision(String_ONE)", support: { version: "1.0", resolver: "None" }, needsServerInfo: true, returnValue: { description: "AR_FN_DIVISION_FINDDIVISION_STR_RV", isArray: false, type: "dvn" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_DIVISION_FINDDIVISION_STR_PRM_DSC_0", identifier: "divisionToFind", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "str" }], examples: [{ input: 'FindDivision("Fire")', output: "AR_FN_DIVISION_FINDDIVISION_STR_EX_OUT_0" }, { input: "FindDivision(ToString(NOT_SET))", output: "AR_FN_DIVISION_FINDDIVISION_STR_EX_OUT_1" }] }, { description: "AR_FN_DIVISION_FINDDIVISION_NTS_DSC", identifier: "Division_ONE findDivision(Null_ONE)", support: { version: "1.0", resolver: "None" }, needsServerInfo: true, returnValue: { description: "AR_FN_DIVISION_FINDDIVISION_NTS_RV", isArray: false, type: "dvn" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_DIVISION_FINDDIVISION_NTS_PRM_DSC_0", identifier: "divisionName", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "nts" }], examples: [{ input: "FindDivision(NOT_SET)", output: "AR_FN_DIVISION_FINDDIVISION_NTS_EX_OUT_0" }] }], needsServerInfo: true }, findDivisionById: { identifier: "findDivisionById", description: "AR_FN_DSC_FINDDIVISIONBYID", type: "function", name: "FindDivisionById", category: "search", overloads: [{ description: "AR_FN_DIVISION_FINDDIVISIONBYID_STR_DSC", identifier: "Division_ONE findDivisionById(String_ONE)", support: { version: "1.0", resolver: "None" }, needsServerInfo: true, returnValue: { description: "AR_FN_DIVISION_FINDDIVISIONBYID_STR_RV", isArray: false, type: "dvn" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_DIVISION_FINDDIVISIONBYID_STR_PRM_DSC_0", identifier: "divisionId", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "str" }], examples: [{ input: 'FindDivisionById("5B943B5F-4205-B70F-8BE1-A245A94B2919")', output: "AR_FN_DIVISION_FINDDIVISIONBYID_STR_EX_OUT_0" }, { input: "FindDivisionById(ToString(NOT_SET))", output: "AR_FN_DIVISION_FINDDIVISIONBYID_STR_EX_OUT_1" }] }, { description: "AR_FN_DIVISION_FINDDIVISIONBYID_NTS_DSC", identifier: "Division_ONE findDivisionById(Null_ONE)", support: { version: "1.0", resolver: "NotSetToRetType" }, needsServerInfo: true, returnValue: { description: "AR_FN_DIVISION_FINDDIVISIONBYID_NTS_RV", isArray: false, type: "dvn" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_DIVISION_FINDDIVISIONBYID_NTS_PRM_DSC_0", identifier: "divisionId", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "nts" }], examples: [{ input: "FindDivisionById(NOT_SET)", output: "AR_FN_DIVISION_FINDDIVISIONBYID_NTS_EX_OUT_0" }] }], needsServerInfo: true }, findDivisions: { identifier: "findDivisions", description: "AR_FN_DSC_FINDDIVISIONS", type: "function", name: "FindDivisions", category: "search", overloads: [{ description: "AR_FN_DIVISION_COLL_FINDDIVISIONS_STR_COLL_DSC", identifier: "Division_COLL findDivisions(String_COLL)", support: { version: "1.0", resolver: "None" }, needsServerInfo: true, returnValue: { description: "AR_FN_DIVISION_COLL_FINDDIVISIONS_STR_COLL_RV", isArray: true, type: "dvn" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_DIVISION_COLL_FINDDIVISIONS_STR_COLL_PRM_DSC_0", identifier: "divisionNames", isArray: true, helpDisplayIdx: 0, repeatable: false, required: false, type: "str", maxItems: "50" }], examples: [{ input: 'FindDivisions(MakeList("Fire", ToString(NOT_SET)))', output: "AR_FN_DIVISION_COLL_FINDDIVISIONS_STR_COLL_EX_OUT_0" }, { input: "FindDivisions(MakeEmptyList(ToString(NOT_SET)))", output: "AR_FN_DIVISION_COLL_FINDDIVISIONS_STR_COLL_EX_OUT_1" }, { input: "FindDivisions(MakeList(ToString(NOT_SET)))", output: "AR_FN_DIVISION_COLL_FINDDIVISIONS_STR_COLL_EX_OUT_2" }] }], needsServerInfo: true }, findDivisionsById: { identifier: "findDivisionsById", description: "AR_FN_DSC_FINDDIVISIONSBYID", type: "function", name: "FindDivisionsById", category: "search", overloads: [{ description: "AR_FN_DIVISION_COLL_FINDDIVISIONSBYID_STR_COLL_DSC", identifier: "Division_COLL findDivisionsById(String_COLL)", support: { version: "1.0", resolver: "None" }, needsServerInfo: true, returnValue: { description: "AR_FN_DIVISION_COLL_FINDDIVISIONSBYID_STR_COLL_RV", isArray: true, type: "dvn" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_FN_DIVISION_COLL_FINDDIVISIONSBYID_STR_COLL_PRM_DSC_0", identifier: "divisionIds", isArray: true, helpDisplayIdx: 0, repeatable: false, required: true, type: "str", maxItems: "50" }], examples: [{ input: 'FindDivisionsById(MakeList("5B943B5F-4205-B70F-8BE1-A245A94B2919", ToString(NOT_SET)))', output: "AR_FN_DIVISION_COLL_FINDDIVISIONSBYID_STR_COLL_EX_OUT_0" }, { input: "FindDivisionsById(MakeEmptyList(ToString(NOT_SET)))", output: "AR_FN_DIVISION_COLL_FINDDIVISIONSBYID_STR_COLL_EX_OUT_1" }, { input: "FindDivisionsById(MakeList(ToString(NOT_SET)))", output: "AR_FN_DIVISION_COLL_FINDDIVISIONSBYID_STR_COLL_EX_OUT_2" }] }], needsServerInfo: true }, findEmergencyGroup: { identifier: "findEmergencyGroup", description: "AR_FN_DSC_FINDEMERGENCYGROUP", type: "function", name: "FindEmergencyGroup", category: "search", overloads: [{ description: "AR_FN_EMERGRP_FINDEMERGENCYGROUP_STR_DSC", identifier: "EmergencyGroup_ONE findEmergencyGroup(String_ONE)", support: { version: "1.0", resolver: "None" }, needsServerInfo: true, returnValue: { description: "AR_FN_EMERGRP_FINDEMERGENCYGROUP_STR_RV", isArray: false, type: "emg" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_EMERGRP_FINDEMERGENCYGROUP_STR_PRM_DSC_0", identifier: "emergencyGroupToFind", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "str" }], examples: [{ input: 'FindEmergencyGroup("Fire")', output: "AR_FN_EMERGRP_FINDEMERGENCYGROUP_STR_EX_OUT_0" }, { input: "FindEmergencyGroup(ToString(NOT_SET))", output: "AR_FN_EMERGRP_FINDEMERGENCYGROUP_STR_EX_OUT_1" }] }, { description: "AR_FN_EMERGRP_FINDEMERGENCYGROUP_NTS_DSC", identifier: "EmergencyGroup_ONE findEmergencyGroup(Null_ONE)", support: { version: "1.0", resolver: "None" }, needsServerInfo: true, returnValue: { description: "AR_FN_EMERGRP_FINDEMERGENCYGROUP_NTS_RV", isArray: false, type: "emg" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_EMERGRP_FINDEMERGENCYGROUP_NTS_PRM_DSC_0", identifier: "emergencyGroupName", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "nts" }], examples: [{ input: "FindEmergencyGroup(NOT_SET)", output: "AR_FN_EMERGRP_FINDEMERGENCYGROUP_NTS_EX_OUT_0" }] }], needsServerInfo: true }, findGrammar: { identifier: "findGrammar", description: "AR_FN_DSC_FINDGRAMMAR", type: "function", name: "FindGrammar", category: "search", overloads: [{ description: "AR_FN_GRAMMAR_FINDGRAMMAR_STR_DSC", identifier: "Grammar_ONE findGrammar(String_ONE)", support: { version: "1.0", resolver: "None" }, needsServerInfo: true, returnValue: { description: "AR_FN_GRAMMAR_FINDGRAMMAR_STR_RV", isArray: false, type: "gmr" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_GRAMMAR_FINDGRAMMAR_STR_PRM_DSC_0", identifier: "grammarToFind", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "str" }], examples: [{ input: 'FindGrammar("Customer Account")', output: "AR_FN_GRAMMAR_FINDGRAMMAR_STR_EX_OUT_0" }, { input: "FindGrammar(ToString(NOT_SET))", output: "AR_FN_GRAMMAR_FINDGRAMMAR_STR_EX_OUT_1" }] }, { description: "AR_FN_GRAMMAR_FINDGRAMMAR_NTS_DSC", identifier: "Grammar_ONE findGrammar(Null_ONE)", support: { version: "1.0", resolver: "None" }, needsServerInfo: true, returnValue: { description: "AR_FN_GRAMMAR_FINDGRAMMAR_NTS_RV", isArray: false, type: "gmr" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_GRAMMAR_FINDGRAMMAR_NTS_PRM_DSC_0", identifier: "grammarName", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "nts" }], examples: [{ input: "FindGrammar(NOT_SET)", output: "AR_FN_GRAMMAR_FINDGRAMMAR_NTS_EX_OUT_0" }] }], needsServerInfo: true }, findGrammarById: { identifier: "findGrammarById", description: "AR_FN_DSC_FINDGRAMMARBYID", type: "function", name: "FindGrammarById", category: "search", overloads: [{ description: "AR_FN_GRAMMAR_FINDGRAMMARBYID_STR_DSC", identifier: "Grammar_ONE findGrammarById(String_ONE)", support: { version: "1.0", resolver: "None" }, needsServerInfo: true, returnValue: { description: "AR_FN_GRAMMAR_FINDGRAMMARBYID_STR_RV", isArray: false, type: "gmr" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_GRAMMAR_FINDGRAMMARBYID_STR_PRM_DSC_0", identifier: "grammarId", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "str" }], examples: [{ input: 'FindGrammarById("5B943B5F-4205-B70F-8BE1-A245A94B2919")', output: "AR_FN_GRAMMAR_FINDGRAMMARBYID_STR_EX_OUT_0" }] }, { description: "AR_FN_GRAMMAR_FINDGRAMMARBYID_NTS_DSC", identifier: "Grammar_ONE findGrammarById(Null_ONE)", support: { version: "1.0", resolver: "NotSetToRetType" }, needsServerInfo: true, returnValue: { description: "AR_FN_GRAMMAR_FINDGRAMMARBYID_NTS_RV", isArray: false, type: "gmr" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_GRAMMAR_FINDGRAMMARBYID_NTS_PRM_DSC_0", identifier: "grammarId", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "nts" }], examples: [{ input: "FindGrammarById(NOT_SET)", output: "AR_FN_GRAMMAR_FINDGRAMMARBYID_NTS_EX_OUT_0" }] }], needsServerInfo: true }, findGroup: { identifier: "findGroup", description: "AR_FN_DSC_FINDGROUP", type: "function", name: "FindGroup", category: "search", overloads: [{ description: "AR_FN_GRP_FINDGROUP_STR_DSC", identifier: "Group_ONE findGroup(String_ONE)", support: { version: "1.0", resolver: "None" }, needsServerInfo: true, returnValue: { description: "AR_FN_GRP_FINDGROUP_STR_RV", isArray: false, type: "grp" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_GRP_FINDGROUP_STR_PRM_DSC_0", identifier: "groupToFind", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "str" }], examples: [{ input: 'FindGroup("Warranty Specialists")', output: "AR_FN_GRP_FINDGROUP_STR_EX_OUT_0" }, { input: "FindGroup(ToString(NOT_SET))", output: "AR_FN_GRP_FINDGROUP_STR_EX_OUT_1" }] }, { description: "AR_FN_GRP_FINDGROUP_NTS_DSC", identifier: "Group_ONE findGroup(Null_ONE)", support: { version: "1.0", resolver: "None" }, needsServerInfo: true, returnValue: { description: "AR_FN_GRP_FINDGROUP_NTS_RV", isArray: false, type: "grp" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_GRP_FINDGROUP_NTS_PRM_DSC_0", identifier: "groupName", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "nts" }], examples: [{ input: "FindGroup(NOT_SET)", output: "AR_FN_GRP_FINDGROUP_NTS_EX_OUT_0" }] }], needsServerInfo: true }, findImage: { identifier: "findImage", description: "AR_FN_DSC_FINDIMAGE", type: "function", name: "FindImage", category: "search", overloads: [{ description: "AR_FN_IMAGE_FINDIMAGE_STR_DSC", identifier: "Image_ONE findImage(String_ONE)", support: { version: "1.0", resolver: "None" }, supportedFlowTypes: { digitalbot: "digitalbot" }, needsServerInfo: true, returnValue: { description: "AR_FN_IMAGE_FINDIMAGE_STR_RV", isArray: false, type: "img" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_IMAGE_FINDIMAGE_STR_PRM_DSC_0", identifier: "imageNameToFind", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "str" }], examples: [{ input: 'FindImage("ArchitectLogo")', output: "AR_FN_IMAGE_FINDIMAGE_STR_EX_OUT_0" }, { input: "FindImage(ToString(NOT_SET))", output: "AR_FN_IMAGE_FINDIMAGE_STR_EX_OUT_1" }] }, { description: "AR_FN_IMAGE_FINDIMAGE_NTS_DSC", identifier: "Image_ONE findImage(Null_ONE)", support: { version: "1.0", resolver: "None" }, needsServerInfo: true, returnValue: { description: "AR_FN_IMAGE_FINDIMAGE_NTS_RV", isArray: false, type: "img" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_IMAGE_FINDIMAGE_NTS_PRM_DSC_0", identifier: "imageName", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "nts" }], examples: [{ input: "FindImage(NOT_SET)", output: "AR_FN_IMAGE_FINDIMAGE_NTS_EX_OUT_0" }] }], needsServerInfo: true }, findImageById: { identifier: "findImageById", description: "AR_FN_DSC_FINDIMAGEBYID", type: "function", name: "FindImageById", category: "search", overloads: [{ description: "AR_FN_IMAGE_FINDIMAGEBYID_STR_DSC", identifier: "Image_ONE findImageById(String_ONE)", support: { version: "1.0", resolver: "None" }, needsServerInfo: true, returnValue: { description: "AR_FN_IMAGE_FINDIMAGEBYID_STR_RV", isArray: false, type: "img" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_IMAGE_FINDIMAGEBYID_STR_PRM_DSC_0", identifier: "imageId", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "str" }], examples: [{ input: 'FindImageById("32952010-9ac2-469f-a2d8-85123e03763b")', output: "AR_FN_IMAGE_FINDIMAGEBYID_STR_EX_OUT_0" }] }, { description: "AR_FN_IMAGE_FINDIMAGEBYID_NTS_DSC", identifier: "Image_ONE findImageById(Null_ONE)", support: { version: "1.0", resolver: "NotSetToRetType" }, needsServerInfo: true, returnValue: { description: "AR_FN_IMAGE_FINDIMAGEBYID_NTS_RV", isArray: false, type: "img" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_IMAGE_FINDIMAGEBYID_NTS_PRM_DSC_0", identifier: "imageId", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "nts" }], examples: [{ input: "FindImageById(NOT_SET)", output: "AR_FN_IMAGE_FINDIMAGEBYID_NTS_EX_OUT_0" }] }], needsServerInfo: true }, findKnowledgeBaseDocumentById: { identifier: "findKnowledgeBaseDocumentById", description: "AR_FN_DSC_FINDKNOWLEDGEBASEDOCUMENTBYID", type: "function", name: "FindKnowledgeBaseDocumentById", category: "search", overloads: [{ description: "AR_FN_KNOWLEDGEBASEDOCUMENT_FINDKNOWLEDGEBASEDOCUMENTBYID_STR_DSC", identifier: "KnowledgeBaseDocument_ONE findKnowledgeBaseDocumentById(String_ONE)", support: { version: "1.0", resolver: "None" }, needsServerInfo: true, returnValue: { description: "AR_FN_KNOWLEDGEBASEDOCUMENT_FINDKNOWLEDGEBASEDOCUMENTBYID_STR_RV", isArray: false, type: "kbd" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_KNOWLEDGEBASEDOCUMENT_FINDKNOWLEDGEBASEDOCUMENTBYID_STR_PRM_DSC_0", identifier: "knowledgeBaseDocumentId", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "str" }], examples: [{ input: 'FindKnowledgeBaseDocumentById("5B943B5F-4205-B70F-8BE1-A245A94B2919")', output: "AR_FN_KNOWLEDGEBASEDOCUMENT_FINDKNOWLEDGEBASEDOCUMENTBYID_STR_EX_OUT_0" }] }, { description: "AR_FN_KNOWLEDGEBASEDOCUMENT_FINDKNOWLEDGEBASEDOCUMENTBYID_NTS_DSC", identifier: "KnowledgeBaseDocument_ONE findKnowledgeBaseDocumentById(Null_ONE)", support: { version: "1.0", resolver: "NotSetToRetType" }, needsServerInfo: true, returnValue: { description: "AR_FN_KNOWLEDGEBASEDOCUMENT_FINDKNOWLEDGEBASEDOCUMENTBYID_NTS_RV", isArray: false, type: "kbd" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_KNOWLEDGEBASEDOCUMENT_FINDKNOWLEDGEBASEDOCUMENTBYID_NTS_PRM_DSC_0", identifier: "knowledgeBaseDocumentId", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "nts" }], examples: [{ input: "FindKnowledgeBaseDocumentById(NOT_SET)", output: "AR_FN_KNOWLEDGEBASEDOCUMENT_FINDKNOWLEDGEBASEDOCUMENTBYID_NTS_EX_OUT_0" }] }], needsServerInfo: true }, findUtilizationLabel: { identifier: "findUtilizationLabel", description: "AR_FN_DSC_FINDUTILIZATIONLABEL", type: "function", name: "FindUtilizationLabel", category: "search", overloads: [{ description: "AR_FN_UTILIZATIONLABEL_FINDUTILIZATIONLABEL_STR_DSC", identifier: "UtilizationLabel_ONE findUtilizationLabel(String_ONE)", support: { version: "1.0", resolver: "None" }, needsServerInfo: true, returnValue: { description: "AR_FN_UTILIZATIONLABEL_FINDUTILIZATIONLABEL_STR_RV", isArray: false, type: "cul" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_UTILIZATIONLABEL_FINDUTILIZATIONLABEL_STR_PRM_DSC_0", identifier: "utilizationLabelToFind", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "str" }], examples: [{ input: 'FindUtilizationLabel("Green")', output: "AR_FN_UTILIZATIONLABEL_FINDUTILIZATIONLABEL_STR_EX_OUT_0" }, { input: "FindUtilizationLabel(ToString(NOT_SET))", output: "AR_FN_UTILIZATIONLABEL_FINDUTILIZATIONLABEL_STR_EX_OUT_1" }] }, { description: "AR_FN_UTILIZATIONLABEL_FINDUTILIZATIONLABEL_NTS_DSC", identifier: "UtilizationLabel_ONE findUtilizationLabel(Null_ONE)", support: { version: "1.0", resolver: "None" }, needsServerInfo: true, returnValue: { description: "AR_FN_UTILIZATIONLABEL_FINDUTILIZATIONLABEL_NTS_RV", isArray: false, type: "cul" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_UTILIZATIONLABEL_FINDUTILIZATIONLABEL_NTS_PRM_DSC_0", identifier: "utilizationLabelName", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "nts" }], examples: [{ input: "FindUtilizationLabel(NOT_SET)", output: "AR_FN_UTILIZATIONLABEL_FINDUTILIZATIONLABEL_NTS_EX_OUT_0" }] }], needsServerInfo: true }, findUtilizationLabelById: { identifier: "findUtilizationLabelById", description: "AR_FN_DSC_FINDUTILIZATIONLABELBYID", type: "function", name: "FindUtilizationLabelById", category: "search", overloads: [{ description: "AR_FN_UTILIZATIONLABEL_FINDUTILIZATIONLABELBYID_STR_DSC", identifier: "UtilizationLabel_ONE findUtilizationLabelById(String_ONE)", support: { version: "1.0", resolver: "None" }, needsServerInfo: true, returnValue: { description: "AR_FN_UTILIZATIONLABEL_FINDUTILIZATIONLABELBYID_STR_RV", isArray: false, type: "cul" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_UTILIZATIONLABEL_FINDUTILIZATIONLABELBYID_STR_PRM_DSC_0", identifier: "utilizationLabelId", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "str" }] }, { description: "AR_FN_UTILIZATIONLABEL_FINDUTILIZATIONLABELBYID_NTS_DSC", identifier: "UtilizationLabel_ONE findUtilizationLabelById(Null_ONE)", support: { version: "1.0", resolver: "NotSetToRetType" }, needsServerInfo: true, returnValue: { description: "AR_FN_UTILIZATIONLABEL_FINDUTILIZATIONLABELBYID_NTS_RV", isArray: false, type: "cul" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_UTILIZATIONLABEL_FINDUTILIZATIONLABELBYID_NTS_PRM_DSC_0", identifier: "utilizationLabelId", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "nts" }], examples: [{ input: "FindUtilizationLabelById(NOT_SET)", output: "AR_FN_UTILIZATIONLABEL_FINDUTILIZATIONLABELBYID_NTS_EX_OUT_0" }] }], needsServerInfo: true }, findQueue: { identifier: "findQueue", description: "AR_FN_DSC_FINDQUEUE", type: "function", name: "FindQueue", category: "search", overloads: [{ description: "AR_FN_QUEUE_FINDQUEUE_STR_DSC", identifier: "Queue_ONE findQueue(String_ONE)", support: { version: "1.0", resolver: "None" }, needsServerInfo: true, returnValue: { description: "AR_FN_QUEUE_FINDQUEUE_STR_RV", isArray: false, type: "que" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_QUEUE_FINDQUEUE_STR_PRM_DSC_0", identifier: "queueToFind", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "str" }], examples: [{ input: 'FindQueue("Marketing")', output: "AR_FN_QUEUE_FINDQUEUE_STR_EX_OUT_0" }, { input: "FindQueue(ToString(NOT_SET))", output: "AR_FN_QUEUE_FINDQUEUE_STR_EX_OUT_1" }] }, { description: "AR_FN_QUEUE_FINDQUEUE_NTS_DSC", identifier: "Queue_ONE findQueue(Null_ONE)", support: { version: "1.0", resolver: "None" }, needsServerInfo: true, returnValue: { description: "AR_FN_QUEUE_FINDQUEUE_NTS_RV", isArray: false, type: "que" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_QUEUE_FINDQUEUE_NTS_PRM_DSC_0", identifier: "queueName", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "nts" }], examples: [{ input: "FindQueue(NOT_SET)", output: "AR_FN_QUEUE_FINDQUEUE_NTS_EX_OUT_0" }] }], needsServerInfo: true }, findQueueById: { identifier: "findQueueById", description: "AR_FN_DSC_FINDQUEUEBYID", type: "function", name: "FindQueueById", category: "search", overloads: [{ description: "AR_FN_QUEUE_FINDQUEUEBYID_STR_DSC", identifier: "Queue_ONE findQueueById(String_ONE)", support: { version: "1.0", resolver: "None" }, needsServerInfo: true, returnValue: { description: "AR_FN_QUEUE_FINDQUEUEBYID_STR_RV", isArray: false, type: "que" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_QUEUE_FINDQUEUEBYID_STR_PRM_DSC_0", identifier: "queueId", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "str" }], examples: [{ input: 'FindQueueById("5B943B5F-4205-B70F-8BE1-A245A94B2919")', output: "AR_FN_QUEUE_FINDQUEUEBYID_STR_EX_OUT_0" }] }, { description: "AR_FN_QUEUE_FINDQUEUEBYID_NTS_DSC", identifier: "Queue_ONE findQueueById(Null_ONE)", support: { version: "1.0", resolver: "NotSetToRetType" }, needsServerInfo: true, returnValue: { description: "AR_FN_QUEUE_FINDQUEUEBYID_NTS_RV", isArray: false, type: "que" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_QUEUE_FINDQUEUEBYID_NTS_PRM_DSC_0", identifier: "queueId", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "nts" }], examples: [{ input: "FindQueueById(NOT_SET)", output: "AR_FN_QUEUE_FINDQUEUEBYID_NTS_EX_OUT_0" }] }], needsServerInfo: true }, findWorktypeStatus: { identifier: "findWorktypeStatus", description: "AR_FN_DSC_FINDWORKTYPESTATUS", type: "function", name: "FindWorktypeStatus", category: "search", overloads: [{ description: "AR_FN_WORKTYPESTATUS_FINDWORKTYPESTATUS_STR_DSC", identifier: "WorktypeStatus_ONE findWorktypeStatus(String_ONE)", support: { version: "1.0", resolver: "None" }, needsServerInfo: true, returnValue: { description: "AR_FN_WORKTYPESTATUS_FINDWORKTYPESTATUS_STR_RV", isArray: false, type: "cpx_worktype_status" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_WORKTYPESTATUS_FINDWORKTYPESTATUS_STR_PRM_DSC_0", identifier: "worktypeStatusNameToFind", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "str" }], examples: [{ input: 'FindWorktypeStatus("NewOpportunity")', output: "AR_FN_WORKTYPESTATUS_FINDWORKTYPESTATUS_STR_EX_OUT_0" }] }, { description: "AR_FN_WORKTYPESTATUS_FINDWORKTYPESTATUS_NTS_DSC", identifier: "WorktypeStatus_ONE findWorktypeStatus(Null_ONE)", support: { version: "1.0", resolver: "None" }, needsServerInfo: true, returnValue: { description: "AR_FN_WORKTYPESTATUS_FINDWORKTYPESTATUS_NTS_RV", isArray: false, type: "cpx_worktype_status" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_WORKTYPESTATUS_FINDWORKTYPESTATUS_NTS_PRM_DSC_0", identifier: "worktypeStatusNameToFind", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "nts" }], examples: [{ input: "FindWorktypeStatus(NOT_SET)", output: "AR_FN_WORKTYPESTATUS_FINDWORKTYPESTATUS_NTS_EX_OUT_0" }] }], needsServerInfo: true }, findWorktypeStatusById: { identifier: "findWorktypeStatusById", description: "AR_FN_DSC_FINDWORKTYPESTATUSBYID", type: "function", name: "FindWorktypeStatusById", category: "search", overloads: [{ description: "AR_FN_WORKTYPESTATUS_FINDWORKTYPESTATUSBYID_STR_DSC", identifier: "WorktypeStatus_ONE findWorktypeStatusById(String_ONE)", support: { version: "1.0", resolver: "None" }, needsServerInfo: true, returnValue: { description: "AR_FN_WORKTYPESTATUS_FINDWORKTYPESTATUSBYID_STR_RV", isArray: false, type: "cpx_worktype_status" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_WORKTYPESTATUS_FINDWORKTYPESTATUSBYID_STR_PRM_DSC_0", identifier: "worktypeStatusId", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "str" }], examples: [{ input: 'FindWorktypeStatusById("8dd32bf3-5f81-4601-9db7-fbce97b09441")', output: "AR_FN_WORKTYPESTATUS_FINDWORKTYPESTATUSBYID_STR_EX_OUT_0" }] }, { description: "AR_FN_WORKTYPESTATUS_FINDWORKTYPESTATUSBYID_NTS_DSC", identifier: "WorktypeStatus_ONE findWorktypeStatusById(Null_ONE)", support: { version: "1.0", resolver: "NotSetToRetType" }, needsServerInfo: true, returnValue: { description: "AR_FN_WORKTYPESTATUS_FINDWORKTYPESTATUSBYID_NTS_RV", isArray: false, type: "cpx_worktype_status" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_WORKTYPESTATUS_FINDWORKTYPESTATUSBYID_NTS_PRM_DSC_0", identifier: "worktypeStatusId", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "nts" }], examples: [{ input: "FindWorktypeStatusById(NOT_SET)", output: "AR_FN_WORKTYPESTATUS_FINDWORKTYPESTATUSBYID_NTS_EX_OUT_0" }] }], needsServerInfo: true }, findQueueEstimatedWaitTime: { identifier: "findQueueEstimatedWaitTime", description: "AR_FN_DSC_FINDQUEUEESTIMATEDWAITTIME", type: "function", name: "FindQueueEstimatedWaitTime", category: "statistical", overloads: [{ description: "AR_FN_DUR_FINDQUEUEESTIMATEDWAITTIME_STR_DSC", identifier: "Duration_ONE findQueueEstimatedWaitTime(String_ONE)", support: { version: "1.0", resolver: "None" }, supportedFlowTypes: { inboundcall: "inboundcall", inqueuecall: "inqueuecall", outboundcall: "outboundcall", securecall: "securecall", voicemail: "voicemail", inboundchat: "inboundchat", inboundemail: "inboundemail", inboundshortmessage: "inboundshortmessage", emailsend: "emailsend", inqueueemail: "inqueueemail", inqueueshortmessage: "inqueueshortmessage", commonmodule: "commonmodule" }, featureConfigName: "queueEstimatedWaitTime", needsServerInfo: true, returnValue: { description: "AR_FN_DUR_FINDQUEUEESTIMATEDWAITTIME_STR_RV", isArray: false, type: "dur" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_DUR_FINDQUEUEESTIMATEDWAITTIME_STR_PRM_DSC_0", identifier: "queueToFind", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "str" }], examples: [{ input: 'FindQueueEstimatedWaitTime("Marketing")', output: "AR_FN_DUR_FINDQUEUEESTIMATEDWAITTIME_STR_EX_OUT_0" }, { input: "FindQueueEstimatedWaitTime(ToString(NOT_SET))", output: "AR_FN_DUR_FINDQUEUEESTIMATEDWAITTIME_STR_EX_OUT_1" }] }, { description: "AR_FN_DUR_FINDQUEUEESTIMATEDWAITTIME_STR_STR_DSC", identifier: "Duration_ONE findQueueEstimatedWaitTime(String_ONE,String_ONE)", support: { version: "1.0", resolver: "None" }, supportedFlowTypes: { inboundcall: "inboundcall", inqueuecall: "inqueuecall", outboundcall: "outboundcall", securecall: "securecall", voicemail: "voicemail", emailsend: "emailsend", inboundchat: "inboundchat", inboundemail: "inboundemail", inboundshortmessage: "inboundshortmessage", inqueueemail: "inqueueemail", inqueueshortmessage: "inqueueshortmessage", surveyinvite: "surveyinvite", workflow: "workflow", workitem: "workitem", commonmodule: "commonmodule" }, featureConfigName: "queueEstimatedWaitTime", needsServerInfo: true, returnValue: { description: "AR_FN_DUR_FINDQUEUEESTIMATEDWAITTIME_STR_STR_RV", isArray: false, type: "dur" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_DUR_FINDQUEUEESTIMATEDWAITTIME_STR_STR_PRM_DSC_0", identifier: "queueToFind", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "str" }, { allowNotSet: true, allowCustomJson: false, description: "AR_FN_DUR_FINDQUEUEESTIMATEDWAITTIME_STR_STR_PRM_DSC_1", identifier: "mediaType", isArray: false, helpDisplayIdx: 1, repeatable: false, required: false, type: "str" }], examples: [{ input: 'FindQueueEstimatedWaitTime("Marketing", "call")', output: "AR_FN_DUR_FINDQUEUEESTIMATEDWAITTIME_STR_STR_EX_OUT_0" }, { input: 'FindQueueEstimatedWaitTime("Marketing", ToString(NOT_SET))', output: "AR_FN_DUR_FINDQUEUEESTIMATEDWAITTIME_STR_STR_EX_OUT_1" }, { input: 'FindQueueEstimatedWaitTime(ToString(NOT_SET), "call")', output: "AR_FN_DUR_FINDQUEUEESTIMATEDWAITTIME_STR_STR_EX_OUT_2" }] }, { description: "AR_FN_DUR_COLL_FINDQUEUEESTIMATEDWAITTIME_STR_STR_COLL_DSC", identifier: "Duration_COLL findQueueEstimatedWaitTime(String_ONE,String_COLL)", support: { version: "1.0", resolver: "None" }, supportedFlowTypes: { inboundcall: "inboundcall", inqueuecall: "inqueuecall", outboundcall: "outboundcall", securecall: "securecall", voicemail: "voicemail", emailsend: "emailsend", inboundchat: "inboundchat", inboundemail: "inboundemail", inboundshortmessage: "inboundshortmessage", inqueueemail: "inqueueemail", inqueueshortmessage: "inqueueshortmessage", surveyinvite: "surveyinvite", workflow: "workflow", workitem: "workitem", commonmodule: "commonmodule" }, featureConfigName: "queueEstimatedWaitTime", needsServerInfo: true, returnValue: { description: "AR_FN_DUR_COLL_FINDQUEUEESTIMATEDWAITTIME_STR_STR_COLL_RV", isArray: true, type: "dur" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_DUR_COLL_FINDQUEUEESTIMATEDWAITTIME_STR_STR_COLL_PRM_DSC_0", identifier: "queueToFind", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "str" }, { allowNotSet: true, allowCustomJson: false, description: "AR_FN_DUR_COLL_FINDQUEUEESTIMATEDWAITTIME_STR_STR_COLL_PRM_DSC_1", identifier: "mediaTypes", isArray: true, helpDisplayIdx: 1, repeatable: false, required: false, type: "str" }], examples: [{ input: 'FindQueueEstimatedWaitTime("Marketing", MakeList("call"))', output: "AR_FN_DUR_COLL_FINDQUEUEESTIMATEDWAITTIME_STR_STR_COLL_EX_OUT_0" }, { input: 'FindQueueEstimatedWaitTime("Marketing", MakeList(ToString(NOT_SET)))', output: "AR_FN_DUR_COLL_FINDQUEUEESTIMATEDWAITTIME_STR_STR_COLL_EX_OUT_1" }, { input: 'FindQueueEstimatedWaitTime(ToString(NOT_SET), MakeList("call"))', output: "AR_FN_DUR_COLL_FINDQUEUEESTIMATEDWAITTIME_STR_STR_COLL_EX_OUT_2" }] }], needsServerInfo: true }, getQueueEstimatedWaitTime: { identifier: "getQueueEstimatedWaitTime", description: "AR_FN_DSC_GETQUEUEESTIMATEDWAITTIME", type: "function", name: "GetQueueEstimatedWaitTime", category: "statistical", overloads: [{ description: "AR_FN_DUR_GETQUEUEESTIMATEDWAITTIME_QUEUE_DSC", identifier: "Duration_ONE getQueueEstimatedWaitTime(Queue_ONE)", support: { version: "1.0", resolver: "None" }, supportedFlowTypes: { inboundcall: "inboundcall", inqueuecall: "inqueuecall", outboundcall: "outboundcall", securecall: "securecall", voicemail: "voicemail", inboundchat: "inboundchat", inboundemail: "inboundemail", inboundshortmessage: "inboundshortmessage", emailsend: "emailsend", inqueueemail: "inqueueemail", inqueueshortmessage: "inqueueshortmessage", commonmodule: "commonmodule" }, featureConfigName: "queueEstimatedWaitTime", needsServerInfo: true, returnValue: { description: "AR_FN_DUR_GETQUEUEESTIMATEDWAITTIME_QUEUE_RV", isArray: false, type: "dur" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_DUR_GETQUEUEESTIMATEDWAITTIME_QUEUE_PRM_DSC_0", identifier: "queueToQuery", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "que" }], examples: [{ input: 'GetQueueEstimatedWaitTime(FindQueue("Marketing"))', output: "AR_FN_DUR_GETQUEUEESTIMATEDWAITTIME_QUEUE_EX_OUT_0" }, { input: "GetQueueEstimatedWaitTime(ToQueue(NOT_SET))", output: "AR_FN_DUR_GETQUEUEESTIMATEDWAITTIME_QUEUE_EX_OUT_1" }] }, { description: "AR_FN_DUR_GETQUEUEESTIMATEDWAITTIME_QUEUE_STR_DSC", identifier: "Duration_ONE getQueueEstimatedWaitTime(Queue_ONE,String_ONE)", support: { version: "1.0", resolver: "None" }, supportedFlowTypes: { inboundcall: "inboundcall", inqueuecall: "inqueuecall", outboundcall: "outboundcall", securecall: "securecall", voicemail: "voicemail", emailsend: "emailsend", inboundchat: "inboundchat", inboundemail: "inboundemail", inboundshortmessage: "inboundshortmessage", inqueueemail: "inqueueemail", inqueueshortmessage: "inqueueshortmessage", surveyinvite: "surveyinvite", workflow: "workflow", workitem: "workitem", commonmodule: "commonmodule" }, featureConfigName: "queueEstimatedWaitTime", needsServerInfo: true, returnValue: { description: "AR_FN_DUR_GETQUEUEESTIMATEDWAITTIME_QUEUE_STR_RV", isArray: false, type: "dur" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_DUR_GETQUEUEESTIMATEDWAITTIME_QUEUE_STR_PRM_DSC_0", identifier: "queueToQuery", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "que" }, { allowNotSet: true, allowCustomJson: false, description: "AR_FN_DUR_GETQUEUEESTIMATEDWAITTIME_QUEUE_STR_PRM_DSC_1", identifier: "mediaType", isArray: false, helpDisplayIdx: 1, repeatable: false, required: false, type: "str" }], examples: [{ input: 'GetQueueEstimatedWaitTime(FindQueue("Marketing"), "call")', output: "AR_FN_DUR_GETQUEUEESTIMATEDWAITTIME_QUEUE_STR_EX_OUT_0" }, { input: 'GetQueueEstimatedWaitTime(FindQueue("Marketing"), ToString(NOT_SET))', output: "AR_FN_DUR_GETQUEUEESTIMATEDWAITTIME_QUEUE_STR_EX_OUT_1" }, { input: 'GetQueueEstimatedWaitTime(ToQueue(NOT_SET), "call")', output: "AR_FN_DUR_GETQUEUEESTIMATEDWAITTIME_QUEUE_STR_EX_OUT_2" }] }, { description: "AR_FN_DUR_COLL_GETQUEUEESTIMATEDWAITTIME_QUEUE_STR_COLL_DSC", identifier: "Duration_COLL getQueueEstimatedWaitTime(Queue_ONE,String_COLL)", support: { version: "1.0", resolver: "None" }, supportedFlowTypes: { inboundcall: "inboundcall", inqueuecall: "inqueuecall", outboundcall: "outboundcall", securecall: "securecall", voicemail: "voicemail", emailsend: "emailsend", inboundchat: "inboundchat", inboundemail: "inboundemail", inboundshortmessage: "inboundshortmessage", inqueueemail: "inqueueemail", inqueueshortmessage: "inqueueshortmessage", surveyinvite: "surveyinvite", workflow: "workflow", workitem: "workitem", commonmodule: "commonmodule" }, featureConfigName: "queueEstimatedWaitTime", needsServerInfo: true, returnValue: { description: "AR_FN_DUR_COLL_GETQUEUEESTIMATEDWAITTIME_QUEUE_STR_COLL_RV", isArray: true, type: "dur" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_DUR_COLL_GETQUEUEESTIMATEDWAITTIME_QUEUE_STR_COLL_PRM_DSC_0", identifier: "queueToQuery", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "que" }, { allowNotSet: true, allowCustomJson: false, description: "AR_FN_DUR_COLL_GETQUEUEESTIMATEDWAITTIME_QUEUE_STR_COLL_PRM_DSC_1", identifier: "mediaTypes", isArray: true, helpDisplayIdx: 1, repeatable: false, required: false, type: "str" }], examples: [{ input: 'GetQueueEstimatedWaitTime(FindQueue("Marketing"), MakeList("call"))', output: "AR_FN_DUR_COLL_GETQUEUEESTIMATEDWAITTIME_QUEUE_STR_COLL_EX_OUT_0" }, { input: 'GetQueueEstimatedWaitTime(FindQueue("Marketing"), MakeList(ToString(NOT_SET)))', output: "AR_FN_DUR_COLL_GETQUEUEESTIMATEDWAITTIME_QUEUE_STR_COLL_EX_OUT_1" }, { input: 'GetQueueEstimatedWaitTime(ToQueue(NOT_SET), MakeList("call"))', output: "AR_FN_DUR_COLL_GETQUEUEESTIMATEDWAITTIME_QUEUE_STR_COLL_EX_OUT_2" }] }], needsServerInfo: true }, findResponseAsset: { identifier: "findResponseAsset", description: "AR_FN_DSC_FINDRESPONSEASSET", type: "function", name: "FindResponseAsset", category: "search", overloads: [{ description: "AR_FN_RESPONSEASSET_FINDRESPONSEASSET_STR_DSC", identifier: "ResponseAsset_ONE findResponseAsset(String_ONE)", support: { version: "1.0", resolver: "None" }, needsServerInfo: true, returnValue: { description: "AR_FN_RESPONSEASSET_FINDRESPONSEASSET_STR_RV", isArray: false, type: "rpa" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_RESPONSEASSET_FINDRESPONSEASSET_STR_PRM_DSC_0", identifier: "responseAssetNameToFind", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "str" }], examples: [{ input: 'FindResponseAsset("ArchitectAsset")', output: "AR_FN_RESPONSEASSET_FINDRESPONSEASSET_STR_EX_OUT_0" }, { input: "FindResponseAsset(ToString(NOT_SET))", output: "AR_FN_RESPONSEASSET_FINDRESPONSEASSET_STR_EX_OUT_1" }] }, { description: "AR_FN_RESPONSEASSET_FINDRESPONSEASSET_NTS_DSC", identifier: "ResponseAsset_ONE findResponseAsset(Null_ONE)", support: { version: "1.0", resolver: "None" }, needsServerInfo: true, returnValue: { description: "AR_FN_RESPONSEASSET_FINDRESPONSEASSET_NTS_RV", isArray: false, type: "rpa" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_RESPONSEASSET_FINDRESPONSEASSET_NTS_PRM_DSC_0", identifier: "responseAssetName", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "nts" }], examples: [{ input: "FindResponseAsset(NOT_SET)", output: "AR_FN_RESPONSEASSET_FINDRESPONSEASSET_NTS_EX_OUT_0" }] }], needsServerInfo: true }, findResponseAssetById: { identifier: "findResponseAssetById", description: "AR_FN_DSC_FINDRESPONSEASSETBYID", type: "function", name: "FindResponseAssetById", category: "search", overloads: [{ description: "AR_FN_RESPONSEASSET_FINDRESPONSEASSETBYID_STR_DSC", identifier: "ResponseAsset_ONE findResponseAssetById(String_ONE)", support: { version: "1.0", resolver: "None" }, needsServerInfo: true, returnValue: { description: "AR_FN_RESPONSEASSET_FINDRESPONSEASSETBYID_STR_RV", isArray: false, type: "rpa" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_RESPONSEASSET_FINDRESPONSEASSETBYID_STR_PRM_DSC_0", identifier: "responseAssetId", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "str" }], examples: [{ input: 'FindResponseAssetById("0bfba8bc-37cd-4fa2-b986-86fa0523aeec")', output: "AR_FN_RESPONSEASSET_FINDRESPONSEASSETBYID_STR_EX_OUT_0" }] }, { description: "AR_FN_RESPONSEASSET_FINDRESPONSEASSETBYID_NTS_DSC", identifier: "ResponseAsset_ONE findResponseAssetById(Null_ONE)", support: { version: "1.0", resolver: "NotSetToRetType" }, needsServerInfo: true, returnValue: { description: "AR_FN_RESPONSEASSET_FINDRESPONSEASSETBYID_NTS_RV", isArray: false, type: "rpa" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_RESPONSEASSET_FINDRESPONSEASSETBYID_NTS_PRM_DSC_0", identifier: "responseAssetId", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "nts" }], examples: [{ input: "FindResponseAssetById(NOT_SET)", output: "AR_FN_RESPONSEASSET_FINDRESPONSEASSETBYID_NTS_EX_OUT_0" }] }], needsServerInfo: true }, findSchedule: { identifier: "findSchedule", description: "AR_FN_DSC_FINDSCHEDULE", type: "function", name: "FindSchedule", category: "search", overloads: [{ description: "AR_FN_SCHED_FINDSCHEDULE_STR_DSC", identifier: "Schedule_ONE findSchedule(String_ONE)", support: { version: "1.0", resolver: "None" }, needsServerInfo: true, returnValue: { description: "AR_FN_SCHED_FINDSCHEDULE_STR_RV", isArray: false, type: "sch" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_SCHED_FINDSCHEDULE_STR_PRM_DSC_0", identifier: "scheduleToFind", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "str" }], examples: [{ input: 'FindSchedule("OpenHours")', output: "AR_FN_SCHED_FINDSCHEDULE_STR_EX_OUT_0" }, { input: "FindSchedule(ToString(NOT_SET))", output: "AR_FN_SCHED_FINDSCHEDULE_STR_EX_OUT_1" }] }, { description: "AR_FN_SCHED_FINDSCHEDULE_NTS_DSC", identifier: "Schedule_ONE findSchedule(Null_ONE)", support: { version: "1.0", resolver: "None" }, needsServerInfo: true, returnValue: { description: "AR_FN_SCHED_FINDSCHEDULE_NTS_RV", isArray: false, type: "sch" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_SCHED_FINDSCHEDULE_NTS_PRM_DSC_0", identifier: "scheduleName", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "nts" }], examples: [{ input: "FindSchedule(NOT_SET)", output: "AR_FN_SCHED_FINDSCHEDULE_NTS_EX_OUT_0" }] }], needsServerInfo: true }, findScheduleGroup: { identifier: "findScheduleGroup", description: "AR_FN_DSC_FINDSCHEDULEGROUP", type: "function", name: "FindScheduleGroup", category: "search", overloads: [{ description: "AR_FN_SCHEDGRP_FINDSCHEDULEGROUP_STR_DSC", identifier: "ScheduleGroup_ONE findScheduleGroup(String_ONE)", support: { version: "1.0", resolver: "None" }, needsServerInfo: true, returnValue: { description: "AR_FN_SCHEDGRP_FINDSCHEDULEGROUP_STR_RV", isArray: false, type: "scg" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_SCHEDGRP_FINDSCHEDULEGROUP_STR_PRM_DSC_0", identifier: "scheduleGroupToFind", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "str" }], examples: [{ input: 'FindScheduleGroup("OpenHoursEastCoast")', output: "AR_FN_SCHEDGRP_FINDSCHEDULEGROUP_STR_EX_OUT_0" }, { input: "FindScheduleGroup(ToString(NOT_SET))", output: "AR_FN_SCHEDGRP_FINDSCHEDULEGROUP_STR_EX_OUT_1" }] }, { description: "AR_FN_SCHEDGRP_FINDSCHEDULEGROUP_NTS_DSC", identifier: "ScheduleGroup_ONE findScheduleGroup(Null_ONE)", support: { version: "1.0", resolver: "None" }, needsServerInfo: true, returnValue: { description: "AR_FN_SCHEDGRP_FINDSCHEDULEGROUP_NTS_RV", isArray: false, type: "scg" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_SCHEDGRP_FINDSCHEDULEGROUP_NTS_PRM_DSC_0", identifier: "scheduleGroupName", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "nts" }], examples: [{ input: "FindScheduleGroup(NOT_SET)", output: "AR_FN_SCHEDGRP_FINDSCHEDULEGROUP_NTS_EX_OUT_0" }] }], needsServerInfo: true }, findSkill: { identifier: "findSkill", description: "AR_FN_DSC_FINDSKILL", type: "function", name: "FindSkill", category: "search", overloads: [{ description: "AR_FN_SKL_FINDSKILL_STR_DSC", identifier: "Skill_ONE findSkill(String_ONE)", support: { version: "1.0", resolver: "None" }, needsServerInfo: true, returnValue: { description: "AR_FN_SKL_FINDSKILL_STR_RV", isArray: false, type: "skl" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_SKL_FINDSKILL_STR_PRM_DSC_0", identifier: "skillToFind", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "str" }], examples: [{ input: 'FindSkill("JavaScript")', output: "AR_FN_SKL_FINDSKILL_STR_EX_OUT_0" }, { input: "FindSkill(ToString(NOT_SET))", output: "AR_FN_SKL_FINDSKILL_STR_EX_OUT_1" }] }, { description: "AR_FN_SKL_FINDSKILL_NTS_DSC", identifier: "Skill_ONE findSkill(Null_ONE)", support: { version: "1.0", resolver: "None" }, needsServerInfo: true, returnValue: { description: "AR_FN_SKL_FINDSKILL_NTS_RV", isArray: false, type: "skl" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_SKL_FINDSKILL_NTS_PRM_DSC_0", identifier: "skillName", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "nts" }], examples: [{ input: "FindSkill(NOT_SET)", output: "AR_FN_SKL_FINDSKILL_NTS_EX_OUT_0" }] }], needsServerInfo: true }, evaluateSkillExpressionFilter: { identifier: "evaluateSkillExpressionFilter", description: "AR_FN_DSC_EVALUATESKILLEXPRESSIONFILTER", type: "function", name: "EvaluateSkillExpressionFilter", category: "complex", overloads: [{ description: "AR_FN_SKILLEXPRESSIONFILTER_EVALUATESKILLEXPRESSIONFILTER_STR_BLN_DSC", identifier: "SkillExpressionFilter_ONE evaluateSkillExpressionFilter(String_ONE,Boolean_ONE)", support: { version: "1.0", resolver: "None" }, supportedFlowTypes: { inboundcall: "inboundcall", inqueuecall: "inqueuecall", outboundcall: "outboundcall", securecall: "securecall", voicemail: "voicemail", commonmodule: "commonmodule", emailsend: "emailsend", inboundemail: "inboundemail", inboundshortmessage: "inboundshortmessage", inqueueemail: "inqueueemail", inqueueshortmessage: "inqueueshortmessage" }, featureConfigName: "routingSkillExpressionsFeature", needsServerInfo: true, returnValue: { description: "AR_FN_SKILLEXPRESSIONFILTER_EVALUATESKILLEXPRESSIONFILTER_STR_BLN_RV", isArray: false, type: "jsn__architect::skill_expression_filter" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_FN_SKILLEXPRESSIONFILTER_EVALUATESKILLEXPRESSIONFILTER_STR_BLN_PRM_DSC_0", identifier: "filterText", isArray: false, helpDisplayIdx: 0, repeatable: false, required: true, type: "str", minLength: "1", maxLength: "1024" }, { allowNotSet: true, allowCustomJson: false, description: "AR_FN_SKILLEXPRESSIONFILTER_EVALUATESKILLEXPRESSIONFILTER_STR_BLN_PRM_DSC_1", identifier: "notSetIfInvalid", isArray: false, helpDisplayIdx: 1, repeatable: false, required: false, type: "bln" }], examples: [{ input: 'EvaluateSkillExpressionFilter("((Skill(\\"iPhone\\")>1 | (Skill(\\"CarPlay\\")=10)) & LanguageSkill(\\"Spanish\\") > 0)", false)', output: "AR_FN_SKILLEXPRESSIONFILTER_EVALUATESKILLEXPRESSIONFILTER_STR_BLN_EX_OUT_0" }, { input: 'EvaluateSkillExpressionFilter("invalid filter text", true)', output: "AR_FN_SKILLEXPRESSIONFILTER_EVALUATESKILLEXPRESSIONFILTER_STR_BLN_EX_OUT_1" }] }, { description: "AR_FN_SKILLEXPRESSIONFILTER_EVALUATESKILLEXPRESSIONFILTER_STR_DSC", identifier: "SkillExpressionFilter_ONE evaluateSkillExpressionFilter(String_ONE)", support: { version: "1.0", resolver: "None" }, supportedFlowTypes: { inboundcall: "inboundcall", inqueuecall: "inqueuecall", outboundcall: "outboundcall", securecall: "securecall", voicemail: "voicemail", commonmodule: "commonmodule", inboundemail: "inboundemail", inboundshortmessage: "inboundshortmessage", emailsend: "emailsend", inqueueemail: "inqueueemail", inqueueshortmessage: "inqueueshortmessage" }, featureConfigName: "routingSkillExpressionsFeature", needsServerInfo: true, returnValue: { description: "AR_FN_SKILLEXPRESSIONFILTER_EVALUATESKILLEXPRESSIONFILTER_STR_RV", isArray: false, type: "jsn__architect::skill_expression_filter" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_FN_SKILLEXPRESSIONFILTER_EVALUATESKILLEXPRESSIONFILTER_STR_PRM_DSC_0", identifier: "filterText", isArray: false, helpDisplayIdx: 0, repeatable: false, required: true, type: "str", minLength: "1", maxLength: "1024" }], examples: [{ input: 'EvaluateSkillExpressionFilter("((Skill(\\"iPhone\\")>1 | (Skill(\\"CarPlay\\")=10)) & LanguageSkill(\\"Spanish\\") > 0)")', output: "AR_FN_SKILLEXPRESSIONFILTER_EVALUATESKILLEXPRESSIONFILTER_STR_EX_OUT_0" }, { input: 'EvaluateSkillExpressionFilter("invalid filter text")', output: "AR_FN_SKILLEXPRESSIONFILTER_EVALUATESKILLEXPRESSIONFILTER_STR_EX_OUT_1" }] }], needsServerInfo: true }, findLanguageSkill: { identifier: "findLanguageSkill", description: "AR_FN_DSC_FINDLANGUAGESKILL", type: "function", name: "FindLanguageSkill", category: "search", overloads: [{ description: "AR_FN_LANGUAGESKILL_FINDLANGUAGESKILL_STR_DSC", identifier: "LanguageSkill_ONE findLanguageSkill(String_ONE)", support: { version: "1.0", resolver: "None" }, needsServerInfo: true, returnValue: { description: "AR_FN_LANGUAGESKILL_FINDLANGUAGESKILL_STR_RV", isArray: false, type: "lac" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_LANGUAGESKILL_FINDLANGUAGESKILL_STR_PRM_DSC_0", identifier: "skillToFind", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "str" }], examples: [{ input: 'FindLanguageSkill("Spanish - Written")', output: "AR_FN_LANGUAGESKILL_FINDLANGUAGESKILL_STR_EX_OUT_0" }, { input: "FindLanguageSkill(ToString(NOT_SET))", output: "AR_FN_LANGUAGESKILL_FINDLANGUAGESKILL_STR_EX_OUT_1" }] }, { description: "AR_FN_LANGUAGESKILL_FINDLANGUAGESKILL_NTS_DSC", identifier: "LanguageSkill_ONE findLanguageSkill(Null_ONE)", support: { version: "1.0", resolver: "NotSetToRetType" }, needsServerInfo: true, returnValue: { description: "AR_FN_LANGUAGESKILL_FINDLANGUAGESKILL_NTS_RV", isArray: false, type: "lac" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_LANGUAGESKILL_FINDLANGUAGESKILL_NTS_PRM_DSC_0", identifier: "valueToConvert", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "nts" }], examples: [{ input: "FindLanguageSkill(NOT_SET)", output: "AR_FN_LANGUAGESKILL_FINDLANGUAGESKILL_NTS_EX_OUT_0" }] }], needsServerInfo: true }, append: { identifier: "append", description: "AR_FN_DSC_APPEND", type: "function", name: "Append", category: "text", overloads: [{ description: "AR_FN_STR_APPEND_STR_STR_MORE_DSC", identifier: "String_ONE append(String_ONE,String_ONE...)", support: { version: "1.0", resolver: "n-SameType" }, returnValue: { description: "AR_FN_STR_APPEND_STR_STR_MORE_RV", isArray: false, type: "str" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_STR_APPEND_STR_STR_MORE_PRM_DSC_0", identifier: "initialText", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "str" }, { allowNotSet: true, allowCustomJson: false, description: "AR_FN_STR_APPEND_STR_STR_MORE_PRM_DSC_1", identifier: "textToAppend", isArray: false, helpDisplayIdx: 1, repeatable: true, required: false, type: "str" }], examples: [{ input: 'Append("Hello", " World")', output: '"Hello World"' }, { input: 'Append("Hello", "-", "World")', output: '"Hello-World"' }, { input: 'Append("Hello", NOT_SET)', output: '"Hello"' }, { input: 'Append(NOT_SET, "Hello")', output: '"Hello"' }, { input: "Append(ToString(NOT_SET), NOT_SET)", output: '""' }] }, { description: "AR_FN_AUDIO_APPENDAUDIO_ANY_ANY_MORE_DSC", identifier: "Audio_ONE appendAudio(Any_ONE,Any_ONE...)", support: { version: "1.0", resolver: "None" }, supportedFlowTypes: { inboundcall: "inboundcall", inqueuecall: "inqueuecall", outboundcall: "outboundcall", securecall: "securecall", voicemail: "voicemail" }, returnValue: { description: "AR_FN_AUDIO_APPENDAUDIO_ANY_ANY_MORE_RV", isArray: false, type: "aud" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_AUDIO_APPENDAUDIO_ANY_ANY_MORE_PRM_DSC_0", identifier: "initialAudioOrPrompt", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "apa" }, { allowNotSet: true, allowCustomJson: false, description: "AR_FN_AUDIO_APPENDAUDIO_ANY_ANY_MORE_PRM_DSC_1", identifier: "audioOrPromptToAppend", isArray: false, helpDisplayIdx: 1, repeatable: true, required: false, type: "apa" }], examples: [{ input: 'Append(Prompt.Welcome, ToAudioTTS("John"))', output: "AR_FN_AUDIO_APPENDAUDIO_ANY_ANY_MORE_EX_OUT_0" }] }, { description: "AR_FN_COMMUNICATION_APPEND_COMMUNICATION_ANY_MORE_DSC", identifier: "Communication_ONE append(Communication_ONE,Any_ONE...)", support: { version: "1.0", resolver: "None" }, needsServerInfo: true, returnValue: { description: "AR_FN_COMMUNICATION_APPEND_COMMUNICATION_ANY_MORE_RV", isArray: false, type: "com" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_FN_COMMUNICATION_APPEND_COMMUNICATION_ANY_MORE_PRM_DSC_0", identifier: "initialCommunication", isArray: false, helpDisplayIdx: 0, repeatable: false, required: true, type: "com" }, { allowNotSet: true, allowCustomJson: false, description: "AR_FN_COMMUNICATION_APPEND_COMMUNICATION_ANY_MORE_PRM_DSC_1", identifier: "valueToAppend", isArray: false, helpDisplayIdx: 1, repeatable: true, required: false, type: "any" }], examples: [{ input: 'Append(MakeCommunication(Prompt.Welcome, "John"), ToCommunicationBlank(1000), "Your account balance is", MakeCurrency(350, "USD"))', output: "A Communication with five items in it." }] }], needsServerInfo: true }, makeCommunication: { identifier: "makeCommunication", description: "AR_FN_DSC_MAKECOMMUNICATION", type: "function", name: "MakeCommunication", category: "text", overloads: [{ description: "AR_FN_COMMUNICATION_MAKECOMMUNICATION_ANY_MORE_DSC", identifier: "Communication_ONE makeCommunication(Any_ONE...)", support: { version: "1.0", resolver: "None" }, supportedFlowTypes: { bot: "bot", digitalbot: "digitalbot", voice: "voice", voicesurvey: "voicesurvey", commonmodule: "commonmodule" }, needsServerInfo: true, returnValue: { description: "AR_FN_COMMUNICATION_MAKECOMMUNICATION_ANY_MORE_RV", isArray: false, type: "com" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_COMMUNICATION_MAKECOMMUNICATION_ANY_MORE_PRM_DSC_0", identifier: "anyValue", isArray: false, helpDisplayIdx: 0, repeatable: true, required: false, type: "any" }], examples: [{ input: 'MakeCommunication(Prompt.Welcome, "John", ToCommunicationBlank(1000), ToCommunication("ABC", Format.String.playChars))', output: "A Communication with four items." }] }], needsServerInfo: true }, left: { identifier: "left", description: "AR_FN_DSC_LEFT", type: "function", name: "Left", category: "text", overloads: [{ description: "AR_FN_STR_LEFT_STR_LNG_DSC", identifier: "String_ONE left(String_ONE,Long_ONE)", support: { version: "1.0", resolver: "None" }, returnValue: { description: "AR_FN_STR_LEFT_STR_LNG_RV", isArray: false, type: "str" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_FN_STR_LEFT_STR_LNG_PRM_DSC_0", identifier: "srcString", isArray: false, helpDisplayIdx: 0, repeatable: false, required: true, type: "str" }, { allowNotSet: false, allowCustomJson: false, description: "AR_FN_STR_LEFT_STR_LNG_PRM_DSC_1", identifier: "length", isArray: false, helpDisplayIdx: 1, min: "0", repeatable: false, required: true, type: "int" }], examples: [{ input: 'Left("Hello", 2)', output: '"He"' }, { input: 'Left("Hello", 6)', output: '"Hello"' }, { input: 'Left("Hello", 0)', output: '""' }] }] }, length: { identifier: "length", description: "AR_FN_DSC_LENGTH", type: "function", name: "Length", category: "text", overloads: [{ description: "AR_FN_LNG_LENGTH_STR_DSC", identifier: "Long_ONE length(String_ONE)", support: { version: "1.0", resolver: "None" }, returnValue: { description: "AR_FN_LNG_LENGTH_STR_RV", isArray: false, type: "int" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_FN_LNG_LENGTH_STR_PRM_DSC_0", identifier: "text", isArray: false, helpDisplayIdx: 0, repeatable: false, required: true, type: "str" }], examples: [{ input: 'Length("Hello World")', output: "11" }, { input: 'Length("")', output: "0" }] }, { description: "AR_FN_LNG_LENGTH_JSON_DSC", identifier: "Long_ONE length(JSON_ONE)", support: { version: "1.0", resolver: "None" }, needsServerInfo: true, returnValue: { description: "AR_FN_LNG_LENGTH_JSON_RV", isArray: false, type: "int" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_FN_LNG_LENGTH_JSON_PRM_DSC_0", identifier: "jsonString", isArray: false, helpDisplayIdx: 0, repeatable: false, required: true, type: "jsn" }], examples: [{ input: 'Length(JsonParse("\\"Hello World\\""))', output: "11" }] }], needsServerInfo: true }, lower: { identifier: "lower", description: "AR_FN_DSC_LOWER", type: "function", name: "Lower", category: "text", overloads: [{ description: "AR_FN_STR_LOWER_STR_DSC", identifier: "String_ONE lower(String_ONE)", support: { version: "1.0", resolver: "None" }, returnValue: { description: "AR_FN_STR_LOWER_STR_RV", isArray: false, type: "str" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_FN_STR_LOWER_STR_PRM_DSC_0", identifier: "text", isArray: false, helpDisplayIdx: 0, repeatable: false, required: true, type: "str" }], examples: [{ input: 'Lower("Hello World")', output: '"hello world"' }, { input: 'Lower("")', output: '""' }] }] }, ltrim: { identifier: "ltrim", description: "AR_FN_DSC_LTRIM", type: "function", name: "LTrim", category: "text", overloads: [{ description: "AR_FN_STR_LTRIM_STR_DSC", identifier: "String_ONE ltrim(String_ONE)", support: { version: "1.0", resolver: "None" }, returnValue: { description: "AR_FN_STR_LTRIM_STR_RV", isArray: false, type: "str" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_FN_STR_LTRIM_STR_PRM_DSC_0", identifier: "stringToTrim", isArray: false, helpDisplayIdx: 0, repeatable: false, required: true, type: "str" }], examples: [{ input: 'LTrim(" Hello")', output: '"Hello"' }, { input: 'LTrim(" Hello ")', output: '"Hello "' }, { input: 'LTrim("Hello ")', output: '"Hello "' }, { input: 'LTrim("")', output: '""' }] }] }, replace: { identifier: "replace", description: "AR_FN_DSC_REPLACE", type: "function", name: "Replace", category: "text", overloads: [{ description: "AR_FN_STR_REPLACE_STR_STR_STR_DSC", identifier: "String_ONE replace(String_ONE,String_ONE,String_ONE)", support: { version: "1.0", resolver: "None" }, returnValue: { description: "AR_FN_STR_REPLACE_STR_STR_STR_RV", isArray: false, type: "str" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_FN_STR_REPLACE_STR_STR_STR_PRM_DSC_0", identifier: "text", isArray: false, helpDisplayIdx: 0, repeatable: false, required: true, type: "str" }, { allowNotSet: false, allowCustomJson: false, description: "AR_FN_STR_REPLACE_STR_STR_STR_PRM_DSC_1", identifier: "findString", isArray: false, helpDisplayIdx: 1, repeatable: false, required: true, type: "str" }, { allowNotSet: true, allowCustomJson: false, description: "AR_FN_STR_REPLACE_STR_STR_STR_PRM_DSC_2", identifier: "replacementString", isArray: false, helpDisplayIdx: 2, repeatable: false, required: false, type: "str" }], examples: [{ input: 'Replace("Hello World", "Hello", "World")', output: '"World World"' }, { input: 'Replace("Hello World", "Hello", NOT_SET)', output: '" World"' }, { input: 'Replace("Hello World", "Soccer", "Ball")', output: '"Hello World"' }, { input: 'Replace("Hello World", "hello", "")', output: '"Hello World"' }, { input: 'Replace("Hello World", "", "Ball")', output: '"Hello World"' }, { input: 'Replace("Hello World", "Test", "test")', output: '"Hello World"' }] }] }, reverse: { identifier: "reverse", description: "AR_FN_DSC_REVERSE", type: "function", name: "Reverse", category: "text", overloads: [{ description: "AR_FN_STR_REVERSE_STR_DSC", identifier: "String_ONE reverse(String_ONE)", support: { version: "1.0", resolver: "None" }, returnValue: { description: "AR_FN_STR_REVERSE_STR_RV", isArray: false, type: "str" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_FN_STR_REVERSE_STR_PRM_DSC_0", identifier: "text", isArray: false, helpDisplayIdx: 0, repeatable: false, required: true, type: "str" }], examples: [{ input: 'Reverse("Hello")', output: '"olleH"' }] }] }, right: { identifier: "right", description: "AR_FN_DSC_RIGHT", type: "function", name: "Right", category: "text", overloads: [{ description: "AR_FN_STR_RIGHT_STR_LNG_DSC", identifier: "String_ONE right(String_ONE,Long_ONE)", support: { version: "1.0", resolver: "None" }, returnValue: { description: "AR_FN_STR_RIGHT_STR_LNG_RV", isArray: false, type: "str" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_FN_STR_RIGHT_STR_LNG_PRM_DSC_0", identifier: "srcString", isArray: false, helpDisplayIdx: 0, repeatable: false, required: true, type: "str" }, { allowNotSet: false, allowCustomJson: false, description: "AR_FN_STR_RIGHT_STR_LNG_PRM_DSC_1", identifier: "length", isArray: false, helpDisplayIdx: 1, min: "0", repeatable: false, required: true, type: "int" }], examples: [{ input: 'Right("Hello", 3)', output: '"llo"' }, { input: 'Right("Hello", 6)', output: '"Hello"' }, { input: 'Right("Hello", 0)', output: '""' }] }] }, rtrim: { identifier: "rtrim", description: "AR_FN_DSC_RTRIM", type: "function", name: "RTrim", category: "text", overloads: [{ description: "AR_FN_STR_RTRIM_STR_DSC", identifier: "String_ONE rtrim(String_ONE)", support: { version: "1.0", resolver: "None" }, returnValue: { description: "AR_FN_STR_RTRIM_STR_RV", isArray: false, type: "str" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_FN_STR_RTRIM_STR_PRM_DSC_0", identifier: "stringToTrim", isArray: false, helpDisplayIdx: 0, repeatable: false, required: true, type: "str" }], examples: [{ input: 'RTrim("Hello ")', output: '"Hello"' }, { input: 'RTrim(" Hello ")', output: '" Hello"' }, { input: 'RTrim(" Hello")', output: '" Hello"' }, { input: 'RTrim("")', output: '""' }] }] }, substring: { identifier: "substring", description: "AR_FN_DSC_SUBSTRING", type: "function", name: "Substring", category: "text", overloads: [{ description: "AR_FN_STR_SUBSTRING_STR_LNG_LNG_DSC", identifier: "String_ONE substring(String_ONE,Long_ONE,Long_ONE)", support: { version: "1.0", resolver: "None" }, returnValue: { description: "AR_FN_STR_SUBSTRING_STR_LNG_LNG_RV", isArray: false, type: "str" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_FN_STR_SUBSTRING_STR_LNG_LNG_PRM_DSC_0", identifier: "text", isArray: false, helpDisplayIdx: 0, repeatable: false, required: true, type: "str" }, { allowNotSet: false, allowCustomJson: false, description: "AR_FN_STR_SUBSTRING_STR_LNG_LNG_PRM_DSC_1", identifier: "start", isArray: false, helpDisplayIdx: 1, min: "0", repeatable: false, required: true, type: "int" }, { allowNotSet: false, allowCustomJson: false, description: "AR_FN_STR_SUBSTRING_STR_LNG_LNG_PRM_DSC_2", identifier: "length", isArray: false, helpDisplayIdx: 2, min: "0", repeatable: false, required: true, type: "int" }], examples: [{ input: 'Substring("Hello", 0, 3)', output: '"Hel"' }, { input: 'Substring("Hello", 2, 3)', output: '"llo"' }, { input: 'Substring("Hello", 3, 3)', output: '"lo"' }, { input: 'Substring("Hello", 0, 27)', output: '"Hello"' }, { input: 'Substring("Hello", 10, 5)', output: '""' }] }] }, trim: { identifier: "trim", description: "AR_FN_DSC_TRIM", type: "function", name: "Trim", category: "text", overloads: [{ description: "AR_FN_STR_TRIM_STR_DSC", identifier: "String_ONE trim(String_ONE)", support: { version: "1.0", resolver: "None" }, returnValue: { description: "AR_FN_STR_TRIM_STR_RV", isArray: false, type: "str" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_FN_STR_TRIM_STR_PRM_DSC_0", identifier: "stringToTrim", isArray: false, helpDisplayIdx: 0, repeatable: false, required: true, type: "str" }], examples: [{ input: 'Trim(" Hello ")', output: '"Hello"' }, { input: 'Trim("Hello ")', output: '"Hello"' }, { input: 'Trim(" Hello")', output: '"Hello"' }, { input: 'Trim("")', output: '""' }] }] }, upper: { identifier: "upper", description: "AR_FN_DSC_UPPER", type: "function", name: "Upper", category: "text", overloads: [{ description: "AR_FN_STR_UPPER_STR_DSC", identifier: "String_ONE upper(String_ONE)", support: { version: "1.0", resolver: "None" }, returnValue: { description: "AR_FN_STR_UPPER_STR_RV", isArray: false, type: "str" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_FN_STR_UPPER_STR_PRM_DSC_0", identifier: "text", isArray: false, helpDisplayIdx: 0, repeatable: false, required: true, type: "str" }], examples: [{ input: 'Upper("Hello World")', output: '"HELLO WORLD"' }, { input: 'Upper("")', output: '""' }] }] }, contains: { identifier: "contains", description: "AR_FN_DSC_CONTAINS", type: "function", name: "Contains", category: "text", overloads: [{ description: "AR_FN_BLN_CONTAINS_STR_STR_DSC", identifier: "Boolean_ONE contains(String_ONE,String_ONE)", support: { version: "1.0", resolver: "None" }, returnValue: { description: "AR_FN_BLN_CONTAINS_STR_STR_RV", isArray: false, type: "bln" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_FN_BLN_CONTAINS_STR_STR_PRM_DSC_0", identifier: "stringToSearch", isArray: false, helpDisplayIdx: 0, repeatable: false, required: true, type: "str" }, { allowNotSet: false, allowCustomJson: false, description: "AR_FN_BLN_CONTAINS_STR_STR_PRM_DSC_1", identifier: "textToFind", isArray: false, helpDisplayIdx: 1, repeatable: false, required: true, type: "str" }], examples: [{ input: 'Contains("Hello", "ll")', output: "true" }, { input: 'Contains("Hello", "he")', output: "false" }, { input: 'Contains("Hello", "abc")', output: "false" }, { input: 'Contains("Hello", "")', output: "true" }] }, { description: "AR_FN_BLN_CONTAINS_STR_STR_BLN_DSC", identifier: "Boolean_ONE contains(String_ONE,String_ONE,Boolean_ONE)", support: { version: "1.0", resolver: "None" }, needsServerInfo: true, returnValue: { description: "AR_FN_BLN_CONTAINS_STR_STR_BLN_RV", isArray: false, type: "bln" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_FN_BLN_CONTAINS_STR_STR_BLN_PRM_DSC_0", identifier: "stringToSearch", isArray: false, helpDisplayIdx: 0, repeatable: false, required: true, type: "str" }, { allowNotSet: false, allowCustomJson: false, description: "AR_FN_BLN_CONTAINS_STR_STR_BLN_PRM_DSC_1", identifier: "textToFind", isArray: false, helpDisplayIdx: 1, repeatable: false, required: true, type: "str" }, { allowNotSet: false, allowCustomJson: false, description: "AR_FN_BLN_CONTAINS_STR_STR_BLN_PRM_DSC_2", identifier: "ignoreCase", isArray: false, helpDisplayIdx: 2, repeatable: false, required: true, type: "bln" }], examples: [{ input: 'Contains("Hello", "ll", true)', output: "true" }, { input: 'Contains("Hello", "he", false)', output: "false" }, { input: 'Contains("Hello", "he", true)', output: "true" }, { input: 'Contains("Hello", "abc", true)', output: "false" }, { input: 'Contains("Hello", "", true)', output: "true" }, { input: 'Contains("le \xC9lever", "\xE9", true)', output: "true" }, { input: 'Contains("le \xC9lever", "\xE9", false)', output: "false" }, { input: 'Contains("\u4E2D\u570B\u53F0\u7063KD1", "\u53F0", true)', output: "true" }, { input: 'Contains("\u4E2D\u570B\u53F0\u7063KD1", "\u53F0", false)', output: "true" }] }], needsServerInfo: true }, compare: { identifier: "compare", description: "AR_FN_DSC_COMPARE", type: "function", name: "Compare", category: "text", overloads: [{ description: "AR_FN_LNG_COMPARE_STR_STR_DSC", identifier: "Long_ONE compare(String_ONE,String_ONE)", support: { version: "1.0", resolver: "None" }, returnValue: { description: "AR_FN_LNG_COMPARE_STR_STR_RV", isArray: false, type: "int" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_LNG_COMPARE_STR_STR_PRM_DSC_0", identifier: "stringToCompare", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "str" }, { allowNotSet: true, allowCustomJson: false, description: "AR_FN_LNG_COMPARE_STR_STR_PRM_DSC_1", identifier: "stringToCompareTo", isArray: false, helpDisplayIdx: 1, repeatable: false, required: false, type: "str" }], examples: [{ input: 'Compare("hello", "Hello")', output: "-1" }, { input: 'Compare("Hello", "hello")', output: "1" }, { input: 'Compare("2", "10")', output: "AR_FN_LNG_COMPARE_STR_STR_EX_OUT_2" }, { input: 'Compare("Hello", "Hello")', output: "0" }, { input: 'Compare("Hel", "Hello")', output: "-1" }, { input: 'Compare("Hello", NOT_SET)', output: "1" }, { input: 'Compare("", NOT_SET)', output: "1" }, { input: 'Compare(NOT_SET, "")', output: "-1" }, { input: 'Compare(NOT_SET, "Hello")', output: "-1" }, { input: "Compare(NOT_SET, NOT_SET)", output: "0" }] }, { description: "AR_FN_LNG_COMPARE_STR_STR_BLN_DSC", identifier: "Long_ONE compare(String_ONE,String_ONE,Boolean_ONE)", support: { version: "1.0", resolver: "None" }, returnValue: { description: "AR_FN_LNG_COMPARE_STR_STR_BLN_RV", isArray: false, type: "int" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_LNG_COMPARE_STR_STR_BLN_PRM_DSC_0", identifier: "stringToCompare", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "str" }, { allowNotSet: true, allowCustomJson: false, description: "AR_FN_LNG_COMPARE_STR_STR_BLN_PRM_DSC_1", identifier: "stringToCompareTo", isArray: false, helpDisplayIdx: 1, repeatable: false, required: false, type: "str" }, { allowNotSet: false, allowCustomJson: false, description: "AR_FN_LNG_COMPARE_STR_STR_BLN_PRM_DSC_2", identifier: "ignoreCase", isArray: false, helpDisplayIdx: 2, repeatable: false, required: true, type: "bln" }], examples: [{ input: 'Compare("hello", "Hello", true)', output: "0" }, { input: 'Compare("hello", "Hello", false)', output: "-1" }, { input: 'Compare("2", "10", false)', output: "1" }, { input: 'Compare("Hel", "Hello", true)', output: "-1" }, { input: 'Compare("Hello", "Hello", true)', output: "0" }, { input: 'Compare("Hello", NOT_SET, false)', output: "1" }, { input: 'Compare(NOT_SET, "Hello", true)', output: "-1" }] }] }, split: { identifier: "split", description: "AR_FN_DSC_SPLIT", type: "function", name: "Split", category: "text", overloads: [{ description: "AR_FN_STR_COLL_SPLIT_STR_STR_DSC", identifier: "String_COLL split(String_ONE,String_ONE)", support: { version: "1.0", resolver: "None" }, returnValue: { description: "AR_FN_STR_COLL_SPLIT_STR_STR_RV", isArray: true, type: "str" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_FN_STR_COLL_SPLIT_STR_STR_PRM_DSC_0", identifier: "textToSplit", isArray: false, helpDisplayIdx: 0, repeatable: false, required: true, type: "str" }, { allowNotSet: false, allowCustomJson: false, description: "AR_FN_STR_COLL_SPLIT_STR_STR_PRM_DSC_1", identifier: "delimiter", isArray: false, helpDisplayIdx: 1, repeatable: false, required: true, type: "str" }], examples: [{ input: 'Split("Hello World", "l")', output: "AR_FN_STR_COLL_SPLIT_STR_STR_EX_OUT_0" }, { input: 'Split("", "l")', output: "AR_FN_STR_COLL_SPLIT_STR_STR_EX_OUT_1" }, { input: 'Split("Hello World", "")', output: "AR_FN_STR_COLL_SPLIT_STR_STR_EX_OUT_2" }] }] }, day: { identifier: "day", description: "AR_FN_DSC_DAY", type: "function", name: "Day", category: "datetime", overloads: [{ description: "AR_FN_LNG_DAY_DATE_DSC", identifier: "Long_ONE day(Date_ONE)", support: { version: "1.0", resolver: "None" }, needsServerInfo: true, returnValue: { description: "AR_FN_LNG_DAY_DATE_RV", isArray: false, type: "int" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_FN_LNG_DAY_DATE_PRM_DSC_0", identifier: "value", isArray: false, helpDisplayIdx: 0, repeatable: false, required: true, type: "dat" }], examples: [{ input: "Day(MakeDate(2017, 2, 14))", output: "14" }] }, { description: "AR_FN_LNG_DAY_DTM_DSC", identifier: "Long_ONE day(DateTime_ONE)", support: { version: "1.0", resolver: "None" }, returnValue: { description: "AR_FN_LNG_DAY_DTM_RV", isArray: false, type: "int" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_FN_LNG_DAY_DTM_PRM_DSC_0", identifier: "value", isArray: false, helpDisplayIdx: 0, repeatable: false, required: true, type: "dtm" }], examples: [{ input: "Day(MakeDateTime(2009, 3, 20, 12, 00, 00))", output: "20" }] }], needsServerInfo: true }, month: { identifier: "month", description: "AR_FN_DSC_MONTH", type: "function", name: "Month", category: "datetime", overloads: [{ description: "AR_FN_LNG_MONTH_DATE_DSC", identifier: "Long_ONE month(Date_ONE)", support: { version: "1.0", resolver: "None" }, needsServerInfo: true, returnValue: { description: "AR_FN_LNG_MONTH_DATE_RV", isArray: false, type: "int" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_FN_LNG_MONTH_DATE_PRM_DSC_0", identifier: "value", isArray: false, helpDisplayIdx: 0, repeatable: false, required: true, type: "dat" }], examples: [{ input: "Month(MakeDate(2009, 3, 20))", output: "3" }] }, { description: "AR_FN_LNG_MONTH_DTM_DSC", identifier: "Long_ONE month(DateTime_ONE)", support: { version: "1.0", resolver: "None" }, returnValue: { description: "AR_FN_LNG_MONTH_DTM_RV", isArray: false, type: "int" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_FN_LNG_MONTH_DTM_PRM_DSC_0", identifier: "value", isArray: false, helpDisplayIdx: 0, repeatable: false, required: true, type: "dtm" }], examples: [{ input: "Month(MakeDateTime(2009, 3, 20, 12, 00, 00))", output: "3" }] }], needsServerInfo: true }, year: { identifier: "year", description: "AR_FN_DSC_YEAR", type: "function", name: "Year", category: "datetime", overloads: [{ description: "AR_FN_LNG_YEAR_DATE_DSC", identifier: "Long_ONE year(Date_ONE)", support: { version: "1.0", resolver: "None" }, needsServerInfo: true, returnValue: { description: "AR_FN_LNG_YEAR_DATE_RV", isArray: false, type: "int" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_FN_LNG_YEAR_DATE_PRM_DSC_0", identifier: "value", isArray: false, helpDisplayIdx: 0, repeatable: false, required: true, type: "dat" }], examples: [{ input: "Year(MakeDate(2019, 3, 20))", output: "2019" }] }, { description: "AR_FN_LNG_YEAR_DTM_DSC", identifier: "Long_ONE year(DateTime_ONE)", support: { version: "1.0", resolver: "None" }, returnValue: { description: "AR_FN_LNG_YEAR_DTM_RV", isArray: false, type: "int" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_FN_LNG_YEAR_DTM_PRM_DSC_0", identifier: "value", isArray: false, helpDisplayIdx: 0, repeatable: false, required: true, type: "dtm" }], examples: [{ input: "Year(MakeDateTime(2009, 3, 20, 12, 00, 00))", output: "2009" }] }], needsServerInfo: true }, hour: { identifier: "hour", description: "AR_FN_DSC_HOUR", type: "function", name: "Hour", category: "datetime", overloads: [{ description: "AR_FN_LNG_HOUR_TIME_DSC", identifier: "Long_ONE hour(Time_ONE)", support: { version: "1.0", resolver: "None" }, needsServerInfo: true, returnValue: { description: "AR_FN_LNG_HOUR_TIME_RV", isArray: false, type: "int" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_FN_LNG_HOUR_TIME_PRM_DSC_0", identifier: "value", isArray: false, helpDisplayIdx: 0, repeatable: false, required: true, type: "tim" }], examples: [{ input: "Hour(MakeTime(12, 00, 00))", output: "12" }] }, { description: "AR_FN_LNG_HOUR_DTM_DSC", identifier: "Long_ONE hour(DateTime_ONE)", support: { version: "1.0", resolver: "None" }, returnValue: { description: "AR_FN_LNG_HOUR_DTM_RV", isArray: false, type: "int" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_FN_LNG_HOUR_DTM_PRM_DSC_0", identifier: "value", isArray: false, helpDisplayIdx: 0, repeatable: false, required: true, type: "dtm" }], examples: [{ input: "Hour(MakeDateTime(2007, 2, 10, 12, 00, 00))", output: "12" }] }], needsServerInfo: true }, minute: { identifier: "minute", description: "AR_FN_DSC_MINUTE", type: "function", name: "Minute", category: "datetime", overloads: [{ description: "AR_FN_LNG_MINUTE_DTM_DSC", identifier: "Long_ONE minute(DateTime_ONE)", support: { version: "1.0", resolver: "None" }, returnValue: { description: "AR_FN_LNG_MINUTE_DTM_RV", isArray: false, type: "int" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_FN_LNG_MINUTE_DTM_PRM_DSC_0", identifier: "value", isArray: false, helpDisplayIdx: 0, repeatable: false, required: true, type: "dtm" }], examples: [{ input: "Minute(MakeDateTime(2007, 2, 10, 12, 30, 0))", output: "30" }, { input: "Minute(MakeDateTime(2019, 3, 1, 1, 5, 0))", output: "5" }, { input: "Minute(MakeDateTime(2015, 7, 15, 16, 0, 0))", output: "0" }] }, { description: "AR_FN_LNG_MINUTE_TIME_DSC", identifier: "Long_ONE minute(Time_ONE)", support: { version: "1.0", resolver: "None" }, needsServerInfo: true, returnValue: { description: "AR_FN_LNG_MINUTE_TIME_RV", isArray: false, type: "int" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_FN_LNG_MINUTE_TIME_PRM_DSC_0", identifier: "value", isArray: false, helpDisplayIdx: 0, repeatable: false, required: true, type: "tim" }], examples: [{ input: "Minute(MakeTime(12, 30, 0))", output: "30" }, { input: "Minute(MakeTime(1, 5, 0))", output: "5" }, { input: "Minute(MakeTime(16, 0, 0))", output: "0" }] }], needsServerInfo: true }, second: { identifier: "second", description: "AR_FN_DSC_SECOND", type: "function", name: "Second", category: "datetime", overloads: [{ description: "AR_FN_LNG_SECOND_DTM_DSC", identifier: "Long_ONE second(DateTime_ONE)", support: { version: "1.0", resolver: "None" }, returnValue: { description: "AR_FN_LNG_SECOND_DTM_RV", isArray: false, type: "int" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_FN_LNG_SECOND_DTM_PRM_DSC_0", identifier: "value", isArray: false, helpDisplayIdx: 0, repeatable: false, required: true, type: "dtm" }], examples: [{ input: "Second(MakeDateTime(2007, 2, 10, 12, 30, 45))", output: "45" }] }, { description: "AR_FN_LNG_SECOND_TIME_DSC", identifier: "Long_ONE second(Time_ONE)", support: { version: "1.0", resolver: "None" }, needsServerInfo: true, returnValue: { description: "AR_FN_LNG_SECOND_TIME_RV", isArray: false, type: "int" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_FN_LNG_SECOND_TIME_PRM_DSC_0", identifier: "value", isArray: false, helpDisplayIdx: 0, repeatable: false, required: true, type: "tim" }], examples: [{ input: "Second(MakeTime(12, 30, 45))", output: "45" }] }], needsServerInfo: true }, dateDiff: { identifier: "dateDiff", description: "AR_FN_DSC_DATEDIFF", type: "function", name: "DateDiff", category: "datetime", overloads: [{ description: "AR_FN_DUR_DATEDIFF_DATE_DATE_DSC", identifier: "Duration_ONE dateDiff(Date_ONE,Date_ONE)", support: { version: "1.0", resolver: "None" }, supportedFlowTypes: { bot: "bot", digitalbot: "digitalbot", voice: "voice", voicesurvey: "voicesurvey", inboundcall: "inboundcall", inqueuecall: "inqueuecall", outboundcall: "outboundcall", securecall: "securecall", voicemail: "voicemail" }, needsServerInfo: true, returnValue: { description: "AR_FN_DUR_DATEDIFF_DATE_DATE_RV", isArray: false, type: "dur" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_FN_DUR_DATEDIFF_DATE_DATE_PRM_DSC_0", identifier: "date1", isArray: false, helpDisplayIdx: 0, repeatable: false, required: true, type: "dat" }, { allowNotSet: false, allowCustomJson: false, description: "AR_FN_DUR_DATEDIFF_DATE_DATE_PRM_DSC_1", identifier: "date2", isArray: false, helpDisplayIdx: 1, repeatable: false, required: true, type: "dat" }], examples: [{ input: "DateDiff(MakeDate(2009, 3, 22), MakeDate(2009, 3, 20))", output: "AR_FN_DUR_DATEDIFF_DATE_DATE_EX_OUT_0" }, { input: "DateDiff(MakeDate(2009, 3, 20), MakeDate(2009, 3, 22))", output: "AR_FN_DUR_DATEDIFF_DATE_DATE_EX_OUT_1" }] }], needsServerInfo: true }, dateTimeDiff: { identifier: "dateTimeDiff", description: "AR_FN_DSC_DATETIMEDIFF", type: "function", name: "DateTimeDiff", category: "datetime", overloads: [{ description: "AR_FN_DUR_DATETIMEDIFF_DTM_DTM_DSC", identifier: "Duration_ONE dateTimeDiff(DateTime_ONE,DateTime_ONE)", support: { version: "1.0", resolver: "None" }, returnValue: { description: "AR_FN_DUR_DATETIMEDIFF_DTM_DTM_RV", isArray: false, type: "dur" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_FN_DUR_DATETIMEDIFF_DTM_DTM_PRM_DSC_0", identifier: "dateTime1", isArray: false, helpDisplayIdx: 0, repeatable: false, required: true, type: "dtm" }, { allowNotSet: false, allowCustomJson: false, description: "AR_FN_DUR_DATETIMEDIFF_DTM_DTM_PRM_DSC_1", identifier: "dateTime2", isArray: false, helpDisplayIdx: 1, repeatable: false, required: true, type: "dtm" }], examples: [{ input: "DateTimeDiff(MakeDateTime(2009, 3, 20, 14, 0, 0), MakeDateTime(2009, 3, 20, 12, 0, 0))", output: "AR_FN_DUR_DATETIMEDIFF_DTM_DTM_EX_OUT_0" }, { input: "DateTimeDiff(MakeDateTime(2009, 3, 20, 10, 0, 0), MakeDateTime(2009, 3, 20, 12, 0, 0))", output: "AR_FN_DUR_DATETIMEDIFF_DTM_DTM_EX_OUT_1" }] }] }, timeDiff: { identifier: "timeDiff", description: "AR_FN_DSC_TIMEDIFF", type: "function", name: "TimeDiff", category: "datetime", overloads: [{ description: "AR_FN_DUR_TIMEDIFF_TIME_TIME_DSC", identifier: "Duration_ONE timeDiff(Time_ONE,Time_ONE)", support: { version: "1.0", resolver: "None" }, supportedFlowTypes: { bot: "bot", digitalbot: "digitalbot", voice: "voice", voicesurvey: "voicesurvey" }, needsServerInfo: true, returnValue: { description: "AR_FN_DUR_TIMEDIFF_TIME_TIME_RV", isArray: false, type: "dur" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_FN_DUR_TIMEDIFF_TIME_TIME_PRM_DSC_0", identifier: "time1", isArray: false, helpDisplayIdx: 0, repeatable: false, required: true, type: "tim" }, { allowNotSet: false, allowCustomJson: false, description: "AR_FN_DUR_TIMEDIFF_TIME_TIME_PRM_DSC_1", identifier: "time2", isArray: false, helpDisplayIdx: 1, repeatable: false, required: true, type: "tim" }], examples: [{ input: "TimeDiff(MakeTime(14, 0, 0), MakeTime(12, 0, 0))", output: "AR_FN_DUR_TIMEDIFF_TIME_TIME_EX_OUT_0" }, { input: "TimeDiff(MakeTime(10, 0, 0), MakeTime(12, 0, 0))", output: "AR_FN_DUR_TIMEDIFF_TIME_TIME_EX_OUT_1" }] }], needsServerInfo: true }, dayOfWeek: { identifier: "dayOfWeek", description: "AR_FN_DSC_DAYOFWEEK", type: "function", name: "DayOfWeek", category: "datetime", overloads: [{ description: "AR_FN_LNG_DAYOFWEEK_DATE_DSC", identifier: "Long_ONE dayOfWeek(Date_ONE)", support: { version: "1.0", resolver: "None" }, needsServerInfo: true, returnValue: { description: "AR_FN_LNG_DAYOFWEEK_DATE_RV", isArray: false, type: "int" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_FN_LNG_DAYOFWEEK_DATE_PRM_DSC_0", identifier: "value", isArray: false, helpDisplayIdx: 0, repeatable: false, required: true, type: "dat" }], examples: [{ input: "DayOfWeek(MakeDate(2009, 4, 5))", output: "1" }] }, { description: "AR_FN_LNG_DAYOFWEEK_DTM_DSC", identifier: "Long_ONE dayOfWeek(DateTime_ONE)", support: { version: "1.0", resolver: "None" }, returnValue: { description: "AR_FN_LNG_DAYOFWEEK_DTM_RV", isArray: false, type: "int" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_FN_LNG_DAYOFWEEK_DTM_PRM_DSC_0", identifier: "value", isArray: false, helpDisplayIdx: 0, repeatable: false, required: true, type: "dtm" }], examples: [{ input: "DayOfWeek(MakeDateTime(2009, 4, 5, 3, 0, 0))", output: "1" }] }], needsServerInfo: true }, getDayOfWeekOccurrence: { identifier: "getDayOfWeekOccurrence", description: "AR_FN_DSC_GETDAYOFWEEKOCCURRENCE", type: "function", name: "GetDayOfWeekOccurrence", category: "datetime", overloads: [{ description: "AR_FN_DTM_GETDAYOFWEEKOCCURRENCE_LNG_LNG_LNG_DSC", identifier: "DateTime_ONE getDayOfWeekOccurrence(Long_ONE,Long_ONE,Long_ONE)", support: { version: "1.0", resolver: "None" }, returnValue: { description: "AR_FN_DTM_GETDAYOFWEEKOCCURRENCE_LNG_LNG_LNG_RV", isArray: false, type: "dtm" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_FN_DTM_GETDAYOFWEEKOCCURRENCE_LNG_LNG_LNG_PRM_DSC_0", identifier: "dayOfWeek", isArray: false, helpDisplayIdx: 0, max: "7", min: "1", repeatable: false, required: true, type: "int" }, { allowNotSet: false, allowCustomJson: false, description: "AR_FN_DTM_GETDAYOFWEEKOCCURRENCE_LNG_LNG_LNG_PRM_DSC_1", identifier: "occurrence", isArray: false, helpDisplayIdx: 1, max: "53", min: "-53", repeatable: false, required: true, type: "int", disallowZero: true }, { allowNotSet: false, allowCustomJson: false, description: "AR_FN_DTM_GETDAYOFWEEKOCCURRENCE_LNG_LNG_LNG_PRM_DSC_2", identifier: "year", isArray: false, helpDisplayIdx: 2, max: "2200", min: "1800", repeatable: false, required: true, type: "int" }], examples: [{ input: "GetDayOfWeekOccurrence(1, 10, 2017)", output: "AR_FN_DTM_GETDAYOFWEEKOCCURRENCE_LNG_LNG_LNG_EX_OUT_0" }, { input: "GetDayOfWeekOccurrence(6, -1, 2017)", output: "AR_FN_DTM_GETDAYOFWEEKOCCURRENCE_LNG_LNG_LNG_EX_OUT_1" }, { input: "GetDayOfWeekOccurrence(6, -2, 2017)", output: "AR_FN_DTM_GETDAYOFWEEKOCCURRENCE_LNG_LNG_LNG_EX_OUT_2" }, { input: "GetDayOfWeekOccurrence(2, 53, 2017)", output: "AR_FN_DTM_GETDAYOFWEEKOCCURRENCE_LNG_LNG_LNG_EX_OUT_3" }] }, { description: "AR_FN_DTM_GETDAYOFWEEKOCCURRENCE_LNG_LNG_LNG_LNG_DSC", identifier: "DateTime_ONE getDayOfWeekOccurrence(Long_ONE,Long_ONE,Long_ONE,Long_ONE)", support: { version: "1.0", resolver: "None" }, returnValue: { description: "AR_FN_DTM_GETDAYOFWEEKOCCURRENCE_LNG_LNG_LNG_LNG_RV", isArray: false, type: "dtm" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_FN_DTM_GETDAYOFWEEKOCCURRENCE_LNG_LNG_LNG_LNG_PRM_DSC_0", identifier: "dayOfWeek", isArray: false, helpDisplayIdx: 0, max: "7", min: "1", repeatable: false, required: true, type: "int" }, { allowNotSet: false, allowCustomJson: false, description: "AR_FN_DTM_GETDAYOFWEEKOCCURRENCE_LNG_LNG_LNG_LNG_PRM_DSC_1", identifier: "occurrence", isArray: false, helpDisplayIdx: 1, max: "5", min: "-5", repeatable: false, required: true, type: "int", disallowZero: true }, { allowNotSet: false, allowCustomJson: false, description: "AR_FN_DTM_GETDAYOFWEEKOCCURRENCE_LNG_LNG_LNG_LNG_PRM_DSC_2", identifier: "year", isArray: false, helpDisplayIdx: 2, max: "2200", min: "1800", repeatable: false, required: true, type: "int" }, { allowNotSet: false, allowCustomJson: false, description: "AR_FN_DTM_GETDAYOFWEEKOCCURRENCE_LNG_LNG_LNG_LNG_PRM_DSC_3", identifier: "month", isArray: false, helpDisplayIdx: 3, max: "12", min: "1", repeatable: false, required: true, type: "int" }], examples: [{ input: "GetDayOfWeekOccurrence(1, 2, 2017, 4)", output: "AR_FN_DTM_GETDAYOFWEEKOCCURRENCE_LNG_LNG_LNG_LNG_EX_OUT_0" }, { input: "GetDayOfWeekOccurrence(6, -1, 2017, 2)", output: "AR_FN_DTM_GETDAYOFWEEKOCCURRENCE_LNG_LNG_LNG_LNG_EX_OUT_1" }, { input: "GetDayOfWeekOccurrence(6, -2, 2017, 2)", output: "AR_FN_DTM_GETDAYOFWEEKOCCURRENCE_LNG_LNG_LNG_LNG_EX_OUT_2" }, { input: "GetDayOfWeekOccurrence(3, 5, 2017, 4)", output: "AR_FN_DTM_GETDAYOFWEEKOCCURRENCE_LNG_LNG_LNG_LNG_EX_OUT_3" }] }, { description: "AR_FN_DTM_GETDAYOFWEEKOCCURRENCE_LNG_LNG_LNG_LNG_LNG_LNG_DSC", identifier: "DateTime_ONE getDayOfWeekOccurrence(Long_ONE,Long_ONE,Long_ONE,Long_ONE,Long_ONE,Long_ONE)", support: { version: "1.0", resolver: "None" }, returnValue: { description: "AR_FN_DTM_GETDAYOFWEEKOCCURRENCE_LNG_LNG_LNG_LNG_LNG_LNG_RV", isArray: false, type: "dtm" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_FN_DTM_GETDAYOFWEEKOCCURRENCE_LNG_LNG_LNG_LNG_LNG_LNG_PRM_DSC_0", identifier: "dayOfWeek", isArray: false, helpDisplayIdx: 0, max: "7", min: "1", repeatable: false, required: true, type: "int" }, { allowNotSet: false, allowCustomJson: false, description: "AR_FN_DTM_GETDAYOFWEEKOCCURRENCE_LNG_LNG_LNG_LNG_LNG_LNG_PRM_DSC_1", identifier: "occurrence", isArray: false, helpDisplayIdx: 1, max: "53", min: "-53", repeatable: false, required: true, type: "int", disallowZero: true }, { allowNotSet: false, allowCustomJson: false, description: "AR_FN_DTM_GETDAYOFWEEKOCCURRENCE_LNG_LNG_LNG_LNG_LNG_LNG_PRM_DSC_2", identifier: "year", isArray: false, helpDisplayIdx: 2, max: "2200", min: "1800", repeatable: false, required: true, type: "int" }, { allowNotSet: false, allowCustomJson: false, description: "AR_FN_DTM_GETDAYOFWEEKOCCURRENCE_LNG_LNG_LNG_LNG_LNG_LNG_PRM_DSC_3", identifier: "hour", isArray: false, helpDisplayIdx: 3, max: "23", min: "0", repeatable: false, required: true, type: "int" }, { allowNotSet: false, allowCustomJson: false, description: "AR_FN_DTM_GETDAYOFWEEKOCCURRENCE_LNG_LNG_LNG_LNG_LNG_LNG_PRM_DSC_4", identifier: "minute", isArray: false, helpDisplayIdx: 4, max: "59", min: "0", repeatable: false, required: true, type: "int" }, { allowNotSet: false, allowCustomJson: false, description: "AR_FN_DTM_GETDAYOFWEEKOCCURRENCE_LNG_LNG_LNG_LNG_LNG_LNG_PRM_DSC_5", identifier: "second", isArray: false, helpDisplayIdx: 5, max: "59", min: "0", repeatable: false, required: true, type: "int" }], examples: [{ input: "GetDayOfWeekOccurrence(6, -1, 2017, 2, 14, 30)", output: "AR_FN_DTM_GETDAYOFWEEKOCCURRENCE_LNG_LNG_LNG_LNG_LNG_LNG_EX_OUT_0" }, { input: "GetDayOfWeekOccurrence(6, -2, 2017, 2, 5, 0)", output: "AR_FN_DTM_GETDAYOFWEEKOCCURRENCE_LNG_LNG_LNG_LNG_LNG_LNG_EX_OUT_1" }, { input: "GetDayOfWeekOccurrence(1, 20, 2017, 2, 11, 15)", output: "AR_FN_DTM_GETDAYOFWEEKOCCURRENCE_LNG_LNG_LNG_LNG_LNG_LNG_EX_OUT_2" }, { input: "GetDayOfWeekOccurrence(3, 53, 2017, 12, 0, 0)", output: "AR_FN_DTM_GETDAYOFWEEKOCCURRENCE_LNG_LNG_LNG_LNG_LNG_LNG_EX_OUT_3" }] }, { description: "AR_FN_DTM_GETDAYOFWEEKOCCURRENCE_LNG_LNG_LNG_LNG_LNG_LNG_LNG_DSC", identifier: "DateTime_ONE getDayOfWeekOccurrence(Long_ONE,Long_ONE,Long_ONE,Long_ONE,Long_ONE,Long_ONE,Long_ONE)", support: { version: "1.0", resolver: "None" }, returnValue: { description: "AR_FN_DTM_GETDAYOFWEEKOCCURRENCE_LNG_LNG_LNG_LNG_LNG_LNG_LNG_RV", isArray: false, type: "dtm" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_FN_DTM_GETDAYOFWEEKOCCURRENCE_LNG_LNG_LNG_LNG_LNG_LNG_LNG_PRM_DSC_0", identifier: "dayOfWeek", isArray: false, helpDisplayIdx: 0, max: "7", min: "1", repeatable: false, required: true, type: "int" }, { allowNotSet: false, allowCustomJson: false, description: "AR_FN_DTM_GETDAYOFWEEKOCCURRENCE_LNG_LNG_LNG_LNG_LNG_LNG_LNG_PRM_DSC_1", identifier: "occurrence", isArray: false, helpDisplayIdx: 1, max: "5", min: "-5", repeatable: false, required: true, type: "int", disallowZero: true }, { allowNotSet: false, allowCustomJson: false, description: "AR_FN_DTM_GETDAYOFWEEKOCCURRENCE_LNG_LNG_LNG_LNG_LNG_LNG_LNG_PRM_DSC_2", identifier: "year", isArray: false, helpDisplayIdx: 2, max: "2200", min: "1800", repeatable: false, required: true, type: "int" }, { allowNotSet: false, allowCustomJson: false, description: "AR_FN_DTM_GETDAYOFWEEKOCCURRENCE_LNG_LNG_LNG_LNG_LNG_LNG_LNG_PRM_DSC_3", identifier: "month", isArray: false, helpDisplayIdx: 3, max: "12", min: "1", repeatable: false, required: true, type: "int" }, { allowNotSet: false, allowCustomJson: false, description: "AR_FN_DTM_GETDAYOFWEEKOCCURRENCE_LNG_LNG_LNG_LNG_LNG_LNG_LNG_PRM_DSC_4", identifier: "hour", isArray: false, helpDisplayIdx: 4, max: "23", min: "0", repeatable: false, required: true, type: "int" }, { allowNotSet: false, allowCustomJson: false, description: "AR_FN_DTM_GETDAYOFWEEKOCCURRENCE_LNG_LNG_LNG_LNG_LNG_LNG_LNG_PRM_DSC_5", identifier: "minute", isArray: false, helpDisplayIdx: 5, max: "59", min: "0", repeatable: false, required: true, type: "int" }, { allowNotSet: false, allowCustomJson: false, description: "AR_FN_DTM_GETDAYOFWEEKOCCURRENCE_LNG_LNG_LNG_LNG_LNG_LNG_LNG_PRM_DSC_6", identifier: "second", isArray: false, helpDisplayIdx: 6, max: "59", min: "0", repeatable: false, required: true, type: "int" }], examples: [{ input: "GetDayOfWeekOccurrence(1, 2, 2017, 4, 11, 15, 0)", output: "AR_FN_DTM_GETDAYOFWEEKOCCURRENCE_LNG_LNG_LNG_LNG_LNG_LNG_LNG_EX_OUT_0" }, { input: "GetDayOfWeekOccurrence(6, -1, 2017, 2, 14, 30, 0)", output: "AR_FN_DTM_GETDAYOFWEEKOCCURRENCE_LNG_LNG_LNG_LNG_LNG_LNG_LNG_EX_OUT_1" }, { input: "GetDayOfWeekOccurrence(6, -2, 2017, 2, 5, 0, 0)", output: "AR_FN_DTM_GETDAYOFWEEKOCCURRENCE_LNG_LNG_LNG_LNG_LNG_LNG_LNG_EX_OUT_2" }, { input: "GetDayOfWeekOccurrence(3, 5, 2015, 4, 12, 0, 0)", output: "AR_FN_DTM_GETDAYOFWEEKOCCURRENCE_LNG_LNG_LNG_LNG_LNG_LNG_LNG_EX_OUT_3" }] }] }, getMenusSupportSpeechRecognition: { identifier: "getMenusSupportSpeechRecognition", description: "AR_FN_DSC_GETMENUSSUPPORTSPEECHRECOGNITION", type: "function", name: "GetMenusSupportSpeechRecognition", category: "audio", overloads: [{ description: "AR_FN_BLN_GETMENUSSUPPORTSPEECHRECOGNITION_DSC", identifier: "Boolean_ONE getMenusSupportSpeechRecognition()", support: { version: "1.0", resolver: "None" }, needsServerInfo: true, returnValue: { description: "AR_FN_BLN_GETMENUSSUPPORTSPEECHRECOGNITION_RV", isArray: false, type: "bln" }, parameters: [], examples: [{ input: "GetMenusSupportSpeechRecognition()", output: "false" }] }, { description: "AR_FN_BLN_GETMENUSSUPPORTSPEECHRECOGNITION_STR_DSC", identifier: "Boolean_ONE getMenusSupportSpeechRecognition(String_ONE)", support: { version: "1.0", resolver: "None" }, needsServerInfo: true, returnValue: { description: "AR_FN_BLN_GETMENUSSUPPORTSPEECHRECOGNITION_STR_RV", isArray: false, type: "bln" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_BLN_GETMENUSSUPPORTSPEECHRECOGNITION_STR_PRM_DSC_0", identifier: "languageTag", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "str" }], examples: [{ input: 'GetMenusSupportSpeechRecognition("en-us")', output: "true" }, { input: "GetMenusSupportSpeechRecognition(ToString(NOT_SET))", output: "A NOT_SET Boolean" }] }], needsServerInfo: true }, weekNum: { identifier: "weekNum", description: "AR_FN_DSC_WEEKNUM", type: "function", name: "WeekNum", category: "datetime", overloads: [{ description: "AR_FN_LNG_WEEKNUM_DATE_DSC", identifier: "Long_ONE weekNum(Date_ONE)", support: { version: "1.0", resolver: "None" }, needsServerInfo: true, returnValue: { description: "AR_FN_LNG_WEEKNUM_DATE_RV", isArray: false, type: "int" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_FN_LNG_WEEKNUM_DATE_PRM_DSC_0", identifier: "value", isArray: false, helpDisplayIdx: 0, repeatable: false, required: true, type: "dat" }], examples: [{ input: "WeekNum(MakeDate(2017, 1, 1))", output: "1" }, { input: "WeekNum(MakeDate(2009, 12, 10))", output: "50" }, { input: "WeekNum(MakeDate(2009, 12, 31))", output: "53" }] }, { description: "AR_FN_LNG_WEEKNUM_DTM_DSC", identifier: "Long_ONE weekNum(DateTime_ONE)", support: { version: "1.0", resolver: "None" }, returnValue: { description: "AR_FN_LNG_WEEKNUM_DTM_RV", isArray: false, type: "int" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_FN_LNG_WEEKNUM_DTM_PRM_DSC_0", identifier: "value", isArray: false, helpDisplayIdx: 0, repeatable: false, required: true, type: "dtm" }], examples: [{ input: "WeekNum(MakeDateTime(2007, 1, 1, 3, 0, 0))", output: "1" }, { input: "WeekNum(MakeDateTime(2009, 12, 10, 3, 0, 0))", output: "50" }, { input: "WeekNum(MakeDateTime(2009, 12, 31, 3, 0, 0))", output: "53" }] }], needsServerInfo: true }, makeDate: { identifier: "makeDate", description: "AR_FN_DSC_MAKEDATE", type: "function", name: "MakeDate", category: "datetime", overloads: [{ description: "AR_FN_DATE_MAKEDATE_LNG_LNG_LNG_DSC", identifier: "Date_ONE makeDate(Long_ONE,Long_ONE,Long_ONE)", support: { version: "1.0", resolver: "None" }, needsServerInfo: true, returnValue: { description: "AR_FN_DATE_MAKEDATE_LNG_LNG_LNG_RV", isArray: false, type: "dat" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_FN_DATE_MAKEDATE_LNG_LNG_LNG_PRM_DSC_0", identifier: "year", isArray: false, helpDisplayIdx: 0, max: "2200", min: "1800", repeatable: false, required: true, type: "int" }, { allowNotSet: false, allowCustomJson: false, description: "AR_FN_DATE_MAKEDATE_LNG_LNG_LNG_PRM_DSC_1", identifier: "month", isArray: false, helpDisplayIdx: 1, max: "12", min: "1", repeatable: false, required: true, type: "int" }, { allowNotSet: false, allowCustomJson: false, description: "AR_FN_DATE_MAKEDATE_LNG_LNG_LNG_PRM_DSC_2", identifier: "day", isArray: false, helpDisplayIdx: 2, max: "31", min: "1", repeatable: false, required: true, type: "int" }], examples: [{ input: "MakeDate(2014, 5, 20)", output: "AR_FN_DATE_MAKEDATE_LNG_LNG_LNG_EX_OUT_0" }, { input: "MakeDate(2018, 1, 1)", output: "AR_FN_DATE_MAKEDATE_LNG_LNG_LNG_EX_OUT_1" }] }], needsServerInfo: true }, makeDateTime: { identifier: "makeDateTime", description: "AR_FN_DSC_MAKEDATETIME", type: "function", name: "MakeDateTime", category: "datetime", overloads: [{ description: "AR_FN_DTM_MAKEDATETIME_LNG_LNG_LNG_LNG_LNG_LNG_DSC", identifier: "DateTime_ONE makeDateTime(Long_ONE,Long_ONE,Long_ONE,Long_ONE,Long_ONE,Long_ONE)", support: { version: "1.0", resolver: "None" }, returnValue: { description: "AR_FN_DTM_MAKEDATETIME_LNG_LNG_LNG_LNG_LNG_LNG_RV", isArray: false, type: "dtm" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_FN_DTM_MAKEDATETIME_LNG_LNG_LNG_LNG_LNG_LNG_PRM_DSC_0", identifier: "year", isArray: false, helpDisplayIdx: 0, max: "2200", min: "1800", repeatable: false, required: true, type: "int" }, { allowNotSet: false, allowCustomJson: false, description: "AR_FN_DTM_MAKEDATETIME_LNG_LNG_LNG_LNG_LNG_LNG_PRM_DSC_1", identifier: "month", isArray: false, helpDisplayIdx: 1, max: "12", min: "1", repeatable: false, required: true, type: "int" }, { allowNotSet: false, allowCustomJson: false, description: "AR_FN_DTM_MAKEDATETIME_LNG_LNG_LNG_LNG_LNG_LNG_PRM_DSC_2", identifier: "day", isArray: false, helpDisplayIdx: 2, max: "31", min: "1", repeatable: false, required: true, type: "int" }, { allowNotSet: false, allowCustomJson: false, description: "AR_FN_DTM_MAKEDATETIME_LNG_LNG_LNG_LNG_LNG_LNG_PRM_DSC_3", identifier: "hour", isArray: false, helpDisplayIdx: 3, max: "23", min: "0", repeatable: false, required: true, type: "int" }, { allowNotSet: false, allowCustomJson: false, description: "AR_FN_DTM_MAKEDATETIME_LNG_LNG_LNG_LNG_LNG_LNG_PRM_DSC_4", identifier: "minute", isArray: false, helpDisplayIdx: 4, max: "59", min: "0", repeatable: false, required: true, type: "int" }, { allowNotSet: false, allowCustomJson: false, description: "AR_FN_DTM_MAKEDATETIME_LNG_LNG_LNG_LNG_LNG_LNG_PRM_DSC_5", identifier: "second", isArray: false, helpDisplayIdx: 5, max: "59", min: "0", repeatable: false, required: true, type: "int" }], examples: [{ input: "MakeDateTime(2009, 3, 20, 12, 00, 00)", output: "AR_FN_DTM_MAKEDATETIME_LNG_LNG_LNG_LNG_LNG_LNG_EX_OUT_0" }] }, { description: "AR_FN_DTM_MAKEDATETIME_LNG_LNG_LNG_DSC", identifier: "DateTime_ONE makeDateTime(Long_ONE,Long_ONE,Long_ONE)", support: { version: "1.0", resolver: "None" }, returnValue: { description: "AR_FN_DTM_MAKEDATETIME_LNG_LNG_LNG_RV", isArray: false, type: "dtm" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_FN_DTM_MAKEDATETIME_LNG_LNG_LNG_PRM_DSC_0", identifier: "year", isArray: false, helpDisplayIdx: 0, max: "2200", min: "1800", repeatable: false, required: true, type: "int" }, { allowNotSet: false, allowCustomJson: false, description: "AR_FN_DTM_MAKEDATETIME_LNG_LNG_LNG_PRM_DSC_1", identifier: "month", isArray: false, helpDisplayIdx: 1, max: "12", min: "1", repeatable: false, required: true, type: "int" }, { allowNotSet: false, allowCustomJson: false, description: "AR_FN_DTM_MAKEDATETIME_LNG_LNG_LNG_PRM_DSC_2", identifier: "day", isArray: false, helpDisplayIdx: 2, max: "31", min: "1", repeatable: false, required: true, type: "int" }], examples: [{ input: "MakeDateTime(2009, 3, 20)", output: "AR_FN_DTM_MAKEDATETIME_LNG_LNG_LNG_EX_OUT_0" }] }, { description: "AR_FN_DTM_MAKEDATETIME_DATE_TIME_DSC", identifier: "DateTime_ONE makeDateTime(Date_ONE,Time_ONE)", support: { version: "1.0", resolver: "None" }, supportedFlowTypes: { bot: "bot", digitalbot: "digitalbot", voice: "voice", voicesurvey: "voicesurvey" }, needsServerInfo: true, returnValue: { description: "AR_FN_DTM_MAKEDATETIME_DATE_TIME_RV", isArray: false, type: "dtm" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_DTM_MAKEDATETIME_DATE_TIME_PRM_DSC_0", identifier: "date", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "dat" }, { allowNotSet: true, allowCustomJson: false, description: "AR_FN_DTM_MAKEDATETIME_DATE_TIME_PRM_DSC_1", identifier: "time", isArray: false, helpDisplayIdx: 1, repeatable: false, required: false, type: "tim" }], examples: [{ input: "MakeDateTime(MakeDate(2009, 3, 20), MakeTime(3, 30, 0))", output: "A DateTime whose value is March 20th, 2009 at 03:30:00AM." }, { input: "MakeDateTime(MakeDate(2018, 1, 1), ToTime(NOT_SET))", output: "A DateTime whose value is January 1st, 2018 at 12:00:00AM." }, { input: "MakeDateTime(ToDate(NOT_SET), MakeTime(15, 0, 0))", output: "A DateTime whose value is January 1st, 1970 at 03:00:00PM." }] }], needsServerInfo: true }, makeDuration: { identifier: "makeDuration", description: "AR_FN_DSC_MAKEDURATION", type: "function", name: "MakeDuration", category: "datetime", overloads: [{ description: "AR_FN_DUR_MAKEDURATION_LNG_LNG_LNG_LNG_DSC", identifier: "Duration_ONE makeDuration(Long_ONE,Long_ONE,Long_ONE,Long_ONE)", support: { version: "1.0", resolver: "None" }, returnValue: { description: "AR_FN_DUR_MAKEDURATION_LNG_LNG_LNG_LNG_RV", isArray: false, type: "dur" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_FN_DUR_MAKEDURATION_LNG_LNG_LNG_LNG_PRM_DSC_0", identifier: "day", isArray: false, helpDisplayIdx: 0, repeatable: false, required: true, type: "int" }, { allowNotSet: false, allowCustomJson: false, description: "AR_FN_DUR_MAKEDURATION_LNG_LNG_LNG_LNG_PRM_DSC_1", identifier: "hour", isArray: false, helpDisplayIdx: 1, repeatable: false, required: true, type: "int" }, { allowNotSet: false, allowCustomJson: false, description: "AR_FN_DUR_MAKEDURATION_LNG_LNG_LNG_LNG_PRM_DSC_2", identifier: "minute", isArray: false, helpDisplayIdx: 2, repeatable: false, required: true, type: "int" }, { allowNotSet: false, allowCustomJson: false, description: "AR_FN_DUR_MAKEDURATION_LNG_LNG_LNG_LNG_PRM_DSC_3", identifier: "second", isArray: false, helpDisplayIdx: 3, repeatable: false, required: true, type: "int" }], examples: [{ input: "MakeDuration(10, 0, 30, 0)", output: "AR_FN_DUR_MAKEDURATION_LNG_LNG_LNG_LNG_EX_OUT_0" }, { input: "MakeDuration(-10, 0, 30, 0)", output: "AR_FN_DUR_MAKEDURATION_LNG_LNG_LNG_LNG_EX_OUT_1" }, { input: "MakeDuration(-10, 0, -30, 0)", output: "AR_FN_DUR_MAKEDURATION_LNG_LNG_LNG_LNG_EX_OUT_2" }] }, { description: "AR_FN_DUR_MAKEDURATION_LNG_LNG_LNG_LNG_LNG_DSC", identifier: "Duration_ONE makeDuration(Long_ONE,Long_ONE,Long_ONE,Long_ONE,Long_ONE)", support: { version: "1.0", resolver: "None" }, returnValue: { description: "AR_FN_DUR_MAKEDURATION_LNG_LNG_LNG_LNG_LNG_RV", isArray: false, type: "dur" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_FN_DUR_MAKEDURATION_LNG_LNG_LNG_LNG_LNG_PRM_DSC_0", identifier: "day", isArray: false, helpDisplayIdx: 0, repeatable: false, required: true, type: "int" }, { allowNotSet: false, allowCustomJson: false, description: "AR_FN_DUR_MAKEDURATION_LNG_LNG_LNG_LNG_LNG_PRM_DSC_1", identifier: "hour", isArray: false, helpDisplayIdx: 1, repeatable: false, required: true, type: "int" }, { allowNotSet: false, allowCustomJson: false, description: "AR_FN_DUR_MAKEDURATION_LNG_LNG_LNG_LNG_LNG_PRM_DSC_2", identifier: "minute", isArray: false, helpDisplayIdx: 2, repeatable: false, required: true, type: "int" }, { allowNotSet: false, allowCustomJson: false, description: "AR_FN_DUR_MAKEDURATION_LNG_LNG_LNG_LNG_LNG_PRM_DSC_3", identifier: "second", isArray: false, helpDisplayIdx: 3, repeatable: false, required: true, type: "int" }, { allowNotSet: false, allowCustomJson: false, description: "AR_FN_DUR_MAKEDURATION_LNG_LNG_LNG_LNG_LNG_PRM_DSC_4", identifier: "milliseconds", isArray: false, helpDisplayIdx: 4, repeatable: false, required: true, type: "int" }], examples: [{ input: "MakeDuration(10, 0, 30, 0, 0)", output: "AR_FN_DUR_MAKEDURATION_LNG_LNG_LNG_LNG_LNG_EX_OUT_0" }, { input: "MakeDuration(-10, 0, 30, 10, 500)", output: "AR_FN_DUR_MAKEDURATION_LNG_LNG_LNG_LNG_LNG_EX_OUT_1" }, { input: "MakeDuration(-10, 0, -30, 0, 0)", output: "AR_FN_DUR_MAKEDURATION_LNG_LNG_LNG_LNG_LNG_EX_OUT_2" }] }] }, makeTime: { identifier: "makeTime", description: "AR_FN_DSC_MAKETIME", type: "function", name: "MakeTime", category: "datetime", overloads: [{ description: "AR_FN_TIME_MAKETIME_LNG_LNG_LNG_DSC", identifier: "Time_ONE makeTime(Long_ONE,Long_ONE,Long_ONE)", support: { version: "1.0", resolver: "None" }, supportedFlowTypes: { bot: "bot", digitalbot: "digitalbot", voice: "voice", voicesurvey: "voicesurvey" }, needsServerInfo: true, returnValue: { description: "AR_FN_TIME_MAKETIME_LNG_LNG_LNG_RV", isArray: false, type: "tim" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_FN_TIME_MAKETIME_LNG_LNG_LNG_PRM_DSC_0", identifier: "hour", isArray: false, helpDisplayIdx: 0, max: "23", min: "0", repeatable: false, required: true, type: "int" }, { allowNotSet: false, allowCustomJson: false, description: "AR_FN_TIME_MAKETIME_LNG_LNG_LNG_PRM_DSC_1", identifier: "minute", isArray: false, helpDisplayIdx: 1, max: "59", min: "0", repeatable: false, required: true, type: "int" }, { allowNotSet: false, allowCustomJson: false, description: "AR_FN_TIME_MAKETIME_LNG_LNG_LNG_PRM_DSC_2", identifier: "second", isArray: false, helpDisplayIdx: 2, max: "59", min: "0", repeatable: false, required: true, type: "int" }], examples: [{ input: "MakeTime(12, 5, 0)", output: "AR_FN_TIME_MAKETIME_LNG_LNG_LNG_EX_OUT_0" }] }, { description: "AR_FN_TIME_MAKETIME_LNG_LNG_LNG_LNG_DSC", identifier: "Time_ONE makeTime(Long_ONE,Long_ONE,Long_ONE,Long_ONE)", support: { version: "1.0", resolver: "None" }, needsServerInfo: true, returnValue: { description: "AR_FN_TIME_MAKETIME_LNG_LNG_LNG_LNG_RV", isArray: false, type: "tim" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_FN_TIME_MAKETIME_LNG_LNG_LNG_LNG_PRM_DSC_0", identifier: "hour", isArray: false, helpDisplayIdx: 0, max: "23", min: "0", repeatable: false, required: true, type: "int" }, { allowNotSet: false, allowCustomJson: false, description: "AR_FN_TIME_MAKETIME_LNG_LNG_LNG_LNG_PRM_DSC_1", identifier: "minute", isArray: false, helpDisplayIdx: 1, max: "59", min: "0", repeatable: false, required: true, type: "int" }, { allowNotSet: false, allowCustomJson: false, description: "AR_FN_TIME_MAKETIME_LNG_LNG_LNG_LNG_PRM_DSC_2", identifier: "second", isArray: false, helpDisplayIdx: 2, max: "59", min: "0", repeatable: false, required: true, type: "int" }, { allowNotSet: false, allowCustomJson: false, description: "AR_FN_TIME_MAKETIME_LNG_LNG_LNG_LNG_PRM_DSC_3", identifier: "milliseconds", isArray: false, helpDisplayIdx: 3, max: "999", min: "0", repeatable: false, required: true, type: "int" }], examples: [{ input: "MakeTime(2, 30, 10, 0)", output: "AR_FN_TIME_MAKETIME_LNG_LNG_LNG_LNG_EX_OUT_0" }, { input: "MakeTime(12, 0, 10, 200)", output: "AR_FN_TIME_MAKETIME_LNG_LNG_LNG_LNG_EX_OUT_1" }] }], needsServerInfo: true }, addDays: { identifier: "addDays", description: "AR_FN_DSC_ADDDAYS", type: "function", name: "AddDays", category: "datetime", overloads: [{ description: "AR_FN_DTM_ADDDAYS_DTM_LNG_DSC", identifier: "DateTime_ONE addDays(DateTime_ONE,Long_ONE)", support: { version: "1.0", resolver: "None" }, returnValue: { description: "AR_FN_DTM_ADDDAYS_DTM_LNG_RV", isArray: false, type: "dtm" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_FN_DTM_ADDDAYS_DTM_LNG_PRM_DSC_0", identifier: "startDateTime", isArray: false, helpDisplayIdx: 0, repeatable: false, required: true, type: "dtm" }, { allowNotSet: false, allowCustomJson: false, description: "AR_FN_DTM_ADDDAYS_DTM_LNG_PRM_DSC_1", identifier: "days", isArray: false, helpDisplayIdx: 1, repeatable: false, required: true, type: "int" }], examples: [{ input: "AddDays(MakeDateTime(2009, 3, 2, 12, 00, 00), 5)", output: "AR_FN_DTM_ADDDAYS_DTM_LNG_EX_OUT_0" }] }, { description: "AR_FN_DATE_ADDDAYS_DATE_LNG_DSC", identifier: "Date_ONE addDays(Date_ONE,Long_ONE)", support: { version: "1.0", resolver: "None" }, needsServerInfo: true, returnValue: { description: "AR_FN_DATE_ADDDAYS_DATE_LNG_RV", isArray: false, type: "dat" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_FN_DATE_ADDDAYS_DATE_LNG_PRM_DSC_0", identifier: "startDate", isArray: false, helpDisplayIdx: 0, repeatable: false, required: true, type: "dat" }, { allowNotSet: false, allowCustomJson: false, description: "AR_FN_DATE_ADDDAYS_DATE_LNG_PRM_DSC_1", identifier: "days", isArray: false, helpDisplayIdx: 1, repeatable: false, required: true, type: "int" }], examples: [{ input: "AddDays(MakeDate(2009, 3, 2), 5)", output: "AR_FN_DATE_ADDDAYS_DATE_LNG_EX_OUT_0" }] }], needsServerInfo: true }, addDuration: { identifier: "addDuration", description: "AR_FN_DSC_ADDDURATION", type: "function", name: "AddDuration", category: "datetime", overloads: [{ description: "AR_FN_DATE_ADDDURATION_DATE_DUR_DSC", identifier: "Date_ONE addDuration(Date_ONE,Duration_ONE)", support: { version: "1.0", resolver: "None" }, needsServerInfo: true, returnValue: { description: "AR_FN_DATE_ADDDURATION_DATE_DUR_RV", isArray: false, type: "dat" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_FN_DATE_ADDDURATION_DATE_DUR_PRM_DSC_0", identifier: "startDate", isArray: false, helpDisplayIdx: 0, repeatable: false, required: true, type: "dat" }, { allowNotSet: false, allowCustomJson: false, description: "AR_FN_DATE_ADDDURATION_DATE_DUR_PRM_DSC_1", identifier: "durationDaysToAdd", isArray: false, helpDisplayIdx: 1, repeatable: false, required: true, type: "dur" }], examples: [{ input: "AddDuration(MakeDate(2009, 1, 10), MakeDuration(10, 0, 30, 0))", output: "AR_FN_DATE_ADDDURATION_DATE_DUR_EX_OUT_0" }, { input: "AddDuration(MakeDate(2020, 2, 28), MakeDuration(3, 0, 0, 0))", output: "AR_FN_DATE_ADDDURATION_DATE_DUR_EX_OUT_1" }, { input: "AddDuration(MakeDate(2020, 1, 2), MakeDuration(-3, -4, 0, 0))", output: "AR_FN_DATE_ADDDURATION_DATE_DUR_EX_OUT_2" }] }, { description: "AR_FN_DTM_ADDDURATION_DTM_DUR_DSC", identifier: "DateTime_ONE addDuration(DateTime_ONE,Duration_ONE)", support: { version: "1.0", resolver: "None" }, returnValue: { description: "AR_FN_DTM_ADDDURATION_DTM_DUR_RV", isArray: false, type: "dtm" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_FN_DTM_ADDDURATION_DTM_DUR_PRM_DSC_0", identifier: "startDateTime", isArray: false, helpDisplayIdx: 0, repeatable: false, required: true, type: "dtm" }, { allowNotSet: false, allowCustomJson: false, description: "AR_FN_DTM_ADDDURATION_DTM_DUR_PRM_DSC_1", identifier: "durationToAdd", isArray: false, helpDisplayIdx: 1, repeatable: false, required: true, type: "dur" }], examples: [{ input: "AddDuration(MakeDateTime(2009, 1, 10, 6, 30, 0), MakeDuration(10, 0, 30, 0))", output: "AR_FN_DTM_ADDDURATION_DTM_DUR_EX_OUT_0" }] }, { description: "AR_FN_TIME_ADDDURATION_TIME_DUR_DSC", identifier: "Time_ONE addDuration(Time_ONE,Duration_ONE)", support: { version: "1.0", resolver: "None" }, needsServerInfo: true, returnValue: { description: "AR_FN_TIME_ADDDURATION_TIME_DUR_RV", isArray: false, type: "tim" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_FN_TIME_ADDDURATION_TIME_DUR_PRM_DSC_0", identifier: "startTime", isArray: false, helpDisplayIdx: 0, repeatable: false, required: true, type: "tim" }, { allowNotSet: false, allowCustomJson: false, description: "AR_FN_TIME_ADDDURATION_TIME_DUR_PRM_DSC_1", identifier: "durationToAdd", isArray: false, helpDisplayIdx: 1, repeatable: false, required: true, type: "dur" }], examples: [{ input: "AddDuration(MakeTime(22, 0, 0), MakeDuration(2, 3, 30, 0))", output: "A Time whose value is 01:30:00AM." }, { input: "AddDuration(MakeTime(12, 30, 0), MakeDuration(-1, 3, 30, 0))", output: "A Time whose value is 04:00:00PM." }, { input: "AddDuration(MakeTime(12, 30, 0), MakeDuration(-1, -3, -30, 0))", output: "A Time whose value is 09:00:00AM." }] }], needsServerInfo: true }, addMonths: { identifier: "addMonths", description: "AR_FN_DSC_ADDMONTHS", type: "function", name: "AddMonths", category: "datetime", overloads: [{ description: "AR_FN_DTM_ADDMONTHS_DTM_LNG_DSC", identifier: "DateTime_ONE addMonths(DateTime_ONE,Long_ONE)", support: { version: "1.0", resolver: "None" }, returnValue: { description: "AR_FN_DTM_ADDMONTHS_DTM_LNG_RV", isArray: false, type: "dtm" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_FN_DTM_ADDMONTHS_DTM_LNG_PRM_DSC_0", identifier: "startDateTime", isArray: false, helpDisplayIdx: 0, repeatable: false, required: true, type: "dtm" }, { allowNotSet: false, allowCustomJson: false, description: "AR_FN_DTM_ADDMONTHS_DTM_LNG_PRM_DSC_1", identifier: "monthsToAdd", isArray: false, helpDisplayIdx: 1, repeatable: false, required: true, type: "int" }], examples: [{ input: "AddMonths(MakeDateTime(2009, 1, 10, 6, 30, 0), 3)", output: "AR_FN_DTM_ADDMONTHS_DTM_LNG_EX_OUT_0" }, { input: "AddMonths(MakeDateTime(2009, 1, 31, 6, 30, 0), 1)", output: "AR_FN_DTM_ADDMONTHS_DTM_LNG_EX_OUT_1" }] }, { description: "AR_FN_DATE_ADDMONTHS_DATE_LNG_DSC", identifier: "Date_ONE addMonths(Date_ONE,Long_ONE)", support: { version: "1.0", resolver: "None" }, needsServerInfo: true, returnValue: { description: "AR_FN_DATE_ADDMONTHS_DATE_LNG_RV", isArray: false, type: "dat" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_FN_DATE_ADDMONTHS_DATE_LNG_PRM_DSC_0", identifier: "startDate", isArray: false, helpDisplayIdx: 0, repeatable: false, required: true, type: "dat" }, { allowNotSet: false, allowCustomJson: false, description: "AR_FN_DATE_ADDMONTHS_DATE_LNG_PRM_DSC_1", identifier: "monthsToAdd", isArray: false, helpDisplayIdx: 1, repeatable: false, required: true, type: "int" }], examples: [{ input: "AddMonths(MakeDate(2009, 1, 10), 3)", output: "AR_FN_DATE_ADDMONTHS_DATE_LNG_EX_OUT_0" }, { input: "AddMonths(MakeDate(2008, 1, 29), 1)", output: "AR_FN_DATE_ADDMONTHS_DATE_LNG_EX_OUT_1" }, { input: "AddMonths(MakeDate(2009, 1, 29), 1)", output: "AR_FN_DATE_ADDMONTHS_DATE_LNG_EX_OUT_2" }, { input: "AddMonths(MakeDate(2020, 3, 1), -2)", output: "AR_FN_DATE_ADDMONTHS_DATE_LNG_EX_OUT_3" }] }], needsServerInfo: true }, addYears: { identifier: "addYears", description: "AR_FN_DSC_ADDYEARS", type: "function", name: "AddYears", category: "datetime", overloads: [{ description: "AR_FN_DTM_ADDYEARS_DTM_LNG_DSC", identifier: "DateTime_ONE addYears(DateTime_ONE,Long_ONE)", support: { version: "1.0", resolver: "None" }, returnValue: { description: "AR_FN_DTM_ADDYEARS_DTM_LNG_RV", isArray: false, type: "dtm" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_FN_DTM_ADDYEARS_DTM_LNG_PRM_DSC_0", identifier: "startDateTime", isArray: false, helpDisplayIdx: 0, repeatable: false, required: true, type: "dtm" }, { allowNotSet: false, allowCustomJson: false, description: "AR_FN_DTM_ADDYEARS_DTM_LNG_PRM_DSC_1", identifier: "yearsToAdd", isArray: false, helpDisplayIdx: 1, repeatable: false, required: true, type: "int" }], examples: [{ input: "AddYears(MakeDateTime(2009, 1, 10, 6, 30, 0), 3)", output: "AR_FN_DTM_ADDYEARS_DTM_LNG_EX_OUT_0" }] }, { description: "AR_FN_DATE_ADDYEARS_DATE_LNG_DSC", identifier: "Date_ONE addYears(Date_ONE,Long_ONE)", support: { version: "1.0", resolver: "None" }, needsServerInfo: true, returnValue: { description: "AR_FN_DATE_ADDYEARS_DATE_LNG_RV", isArray: false, type: "dat" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_FN_DATE_ADDYEARS_DATE_LNG_PRM_DSC_0", identifier: "startDate", isArray: false, helpDisplayIdx: 0, repeatable: false, required: true, type: "dat" }, { allowNotSet: false, allowCustomJson: false, description: "AR_FN_DATE_ADDYEARS_DATE_LNG_PRM_DSC_1", identifier: "yearsToAdd", isArray: false, helpDisplayIdx: 1, repeatable: false, required: true, type: "int" }], examples: [{ input: "AddYears(MakeDate(2012, 1, 10), 3)", output: "AR_FN_DATE_ADDYEARS_DATE_LNG_EX_OUT_0" }, { input: "AddYears(MakeDate(2012, 1, 10), 0)", output: "AR_FN_DATE_ADDYEARS_DATE_LNG_EX_OUT_1" }, { input: "AddYears(MakeDate(2012, 1, 10), -3)", output: "AR_FN_DATE_ADDYEARS_DATE_LNG_EX_OUT_2" }] }], needsServerInfo: true }, addHours: { identifier: "addHours", description: "AR_FN_DSC_ADDHOURS", type: "function", name: "AddHours", category: "datetime", overloads: [{ description: "AR_FN_DTM_ADDHOURS_DTM_LNG_DSC", identifier: "DateTime_ONE addHours(DateTime_ONE,Long_ONE)", support: { version: "1.0", resolver: "None" }, returnValue: { description: "AR_FN_DTM_ADDHOURS_DTM_LNG_RV", isArray: false, type: "dtm" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_FN_DTM_ADDHOURS_DTM_LNG_PRM_DSC_0", identifier: "startDateTime", isArray: false, helpDisplayIdx: 0, repeatable: false, required: true, type: "dtm" }, { allowNotSet: false, allowCustomJson: false, description: "AR_FN_DTM_ADDHOURS_DTM_LNG_PRM_DSC_1", identifier: "hoursToAdd", isArray: false, helpDisplayIdx: 1, repeatable: false, required: true, type: "int" }], examples: [{ input: "AddHours(MakeDateTime(2009, 1, 10, 6, 30, 0), 3)", output: "AR_FN_DTM_ADDHOURS_DTM_LNG_EX_OUT_0" }] }, { description: "AR_FN_TIME_ADDHOURS_TIME_LNG_DSC", identifier: "Time_ONE addHours(Time_ONE,Long_ONE)", support: { version: "1.0", resolver: "None" }, needsServerInfo: true, returnValue: { description: "AR_FN_TIME_ADDHOURS_TIME_LNG_RV", isArray: false, type: "tim" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_FN_TIME_ADDHOURS_TIME_LNG_PRM_DSC_0", identifier: "startTime", isArray: false, helpDisplayIdx: 0, repeatable: false, required: true, type: "tim" }, { allowNotSet: false, allowCustomJson: false, description: "AR_FN_TIME_ADDHOURS_TIME_LNG_PRM_DSC_1", identifier: "hoursToAdd", isArray: false, helpDisplayIdx: 1, repeatable: false, required: true, type: "int" }], examples: [{ input: "AddHours(MakeTime(6, 30, 0), 3)", output: "AR_FN_TIME_ADDHOURS_TIME_LNG_EX_OUT_0" }, { input: "AddHours(MakeTime(6, 30, 0, 500), -9)", output: "AR_FN_TIME_ADDHOURS_TIME_LNG_EX_OUT_1" }, { input: "AddHours(MakeTime(0, 0, 0), 36)", output: "AR_FN_TIME_ADDHOURS_TIME_LNG_EX_OUT_2" }] }], needsServerInfo: true }, addMinutes: { identifier: "addMinutes", description: "AR_FN_DSC_ADDMINUTES", type: "function", name: "AddMinutes", category: "datetime", overloads: [{ description: "AR_FN_DTM_ADDMINUTES_DTM_LNG_DSC", identifier: "DateTime_ONE addMinutes(DateTime_ONE,Long_ONE)", support: { version: "1.0", resolver: "None" }, returnValue: { description: "AR_FN_DTM_ADDMINUTES_DTM_LNG_RV", isArray: false, type: "dtm" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_FN_DTM_ADDMINUTES_DTM_LNG_PRM_DSC_0", identifier: "startDateTime", isArray: false, helpDisplayIdx: 0, repeatable: false, required: true, type: "dtm" }, { allowNotSet: false, allowCustomJson: false, description: "AR_FN_DTM_ADDMINUTES_DTM_LNG_PRM_DSC_1", identifier: "minutesToAdd", isArray: false, helpDisplayIdx: 1, repeatable: false, required: true, type: "int" }], examples: [{ input: "AddMinutes(MakeDateTime(2009, 1, 10, 6, 30, 0), 3)", output: "AR_FN_DTM_ADDMINUTES_DTM_LNG_EX_OUT_0" }] }, { description: "AR_FN_TIME_ADDMINUTES_TIME_LNG_DSC", identifier: "Time_ONE addMinutes(Time_ONE,Long_ONE)", support: { version: "1.0", resolver: "None" }, needsServerInfo: true, returnValue: { description: "AR_FN_TIME_ADDMINUTES_TIME_LNG_RV", isArray: false, type: "tim" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_FN_TIME_ADDMINUTES_TIME_LNG_PRM_DSC_0", identifier: "startTime", isArray: false, helpDisplayIdx: 0, repeatable: false, required: true, type: "tim" }, { allowNotSet: false, allowCustomJson: false, description: "AR_FN_TIME_ADDMINUTES_TIME_LNG_PRM_DSC_1", identifier: "minutesToAdd", isArray: false, helpDisplayIdx: 1, repeatable: false, required: true, type: "int" }], examples: [{ input: "AddMinutes(MakeTime(6, 30, 0), 150)", output: "AR_FN_TIME_ADDMINUTES_TIME_LNG_EX_OUT_0" }, { input: "AddMinutes(MakeTime(6, 30, 0, 500), -600)", output: "AR_FN_TIME_ADDMINUTES_TIME_LNG_EX_OUT_1" }, { input: "AddMinutes(MakeTime(0, 0, 0), -1440)", output: "AR_FN_TIME_ADDMINUTES_TIME_LNG_EX_OUT_2" }, { input: "AddMinutes(MakeTime(0, 0, 0), -1410)", output: "AR_FN_TIME_ADDMINUTES_TIME_LNG_EX_OUT_3" }] }], needsServerInfo: true }, addSeconds: { identifier: "addSeconds", description: "AR_FN_DSC_ADDSECONDS", type: "function", name: "AddSeconds", category: "datetime", overloads: [{ description: "AR_FN_DTM_ADDSECONDS_DTM_LNG_DSC", identifier: "DateTime_ONE addSeconds(DateTime_ONE,Long_ONE)", support: { version: "1.0", resolver: "None" }, returnValue: { description: "AR_FN_DTM_ADDSECONDS_DTM_LNG_RV", isArray: false, type: "dtm" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_FN_DTM_ADDSECONDS_DTM_LNG_PRM_DSC_0", identifier: "startDateTime", isArray: false, helpDisplayIdx: 0, repeatable: false, required: true, type: "dtm" }, { allowNotSet: false, allowCustomJson: false, description: "AR_FN_DTM_ADDSECONDS_DTM_LNG_PRM_DSC_1", identifier: "secondsToAdd", isArray: false, helpDisplayIdx: 1, repeatable: false, required: true, type: "int" }], examples: [{ input: "AddSeconds(MakeDateTime(2009, 1, 10, 6, 30, 0), 3)", output: "AR_FN_DTM_ADDSECONDS_DTM_LNG_EX_OUT_0" }] }, { description: "AR_FN_TIME_ADDSECONDS_TIME_LNG_DSC", identifier: "Time_ONE addSeconds(Time_ONE,Long_ONE)", support: { version: "1.0", resolver: "None" }, needsServerInfo: true, returnValue: { description: "AR_FN_TIME_ADDSECONDS_TIME_LNG_RV", isArray: false, type: "tim" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_FN_TIME_ADDSECONDS_TIME_LNG_PRM_DSC_0", identifier: "startTime", isArray: false, helpDisplayIdx: 0, repeatable: false, required: true, type: "tim" }, { allowNotSet: false, allowCustomJson: false, description: "AR_FN_TIME_ADDSECONDS_TIME_LNG_PRM_DSC_1", identifier: "secondsToAdd", isArray: false, helpDisplayIdx: 1, repeatable: false, required: true, type: "int" }], examples: [{ input: "AddSeconds(MakeTime(0, 30, 0), 330)", output: "AR_FN_TIME_ADDSECONDS_TIME_LNG_EX_OUT_0" }, { input: "AddSeconds(MakeTime(0, 30, 0), -3600)", output: "AR_FN_TIME_ADDSECONDS_TIME_LNG_EX_OUT_1" }, { input: "AddSeconds(MakeTime(6, 30, 0, 500), 86400)", output: "AR_FN_TIME_ADDSECONDS_TIME_LNG_EX_OUT_2" }] }], needsServerInfo: true }, logicalIf: { identifier: "logicalIf", description: "AR_FN_DSC_LOGICALIF", type: "function", name: "If", category: "logical", overloads: [{ description: "AR_FN_ANY_LOGICALIF_BLN_ANY_ANY_DSC", identifier: "Any_ONE logicalIf(Boolean_ONE,Any_ONE,Any_ONE)", support: { version: "1.0", resolver: "If" }, returnValue: { description: "AR_FN_ANY_LOGICALIF_BLN_ANY_ANY_RV", isArray: false, type: "any" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_ANY_LOGICALIF_BLN_ANY_ANY_PRM_DSC_0", identifier: "condition", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "bln" }, { allowNotSet: true, allowCustomJson: false, description: "AR_FN_ANY_LOGICALIF_BLN_ANY_ANY_PRM_DSC_1", identifier: "trueValue", isArray: false, helpDisplayIdx: 1, repeatable: false, required: false, type: "any" }, { allowNotSet: true, allowCustomJson: false, description: "AR_FN_ANY_LOGICALIF_BLN_ANY_ANY_PRM_DSC_2", identifier: "falseValue", isArray: false, helpDisplayIdx: 2, repeatable: false, required: false, type: "any" }], examples: [{ input: "If(5>3, true, false)", output: "true" }, { input: 'If(5>3, "hello", "world")', output: '"hello"' }, { input: "If(5>3, 100, 200)", output: "100" }, { input: "If(5>3, 100.5, 200.0)", output: "100.5" }, { input: 'If(MakeCurrency(5.00, "USD") > MakeCurrency(2.00, "USD"), MakeCurrency(10.00, "USD"), ToCurrency(NOT_SET))', output: "AR_FN_ANY_LOGICALIF_BLN_ANY_ANY_EX_OUT_4" }, { input: "If(5>3, MakeDateTime(2009, 5, 5, 10, 30, 0), MakeDateTime(2005, 1, 1, 0, 0, 0))", output: "AR_FN_ANY_LOGICALIF_BLN_ANY_ANY_EX_OUT_5" }, { input: "If(5>3, MakeDuration(0, 1, 0, 0), MakeDuration(2, 0, 0, 0))", output: "AR_FN_ANY_LOGICALIF_BLN_ANY_ANY_EX_OUT_6" }, { input: 'If(5>3, ToUser("john.doe@company.com"), ToUser("mary.doe@company.com"))', output: "AR_FN_ANY_LOGICALIF_BLN_ANY_ANY_EX_OUT_7", hidden: "true" }, { input: 'If(5>3, ToSkill("Spanish"), ToSkill("German"))', output: "AR_FN_ANY_LOGICALIF_BLN_ANY_ANY_EX_OUT_8", hidden: "true" }, { input: "If(3<5, MakeDate(2010, 6, 1), MakeDate(2015, 6, 1))", output: "AR_FN_ANY_LOGICALIF_BLN_ANY_ANY_EX_OUT_9", featureConfigName: "botFlows" }, { input: "If(3<5, MakeTime(12, 0, 0), MakeTime(2, 30, 0))", output: "AR_FN_ANY_LOGICALIF_BLN_ANY_ANY_EX_OUT_10", featureConfigName: "botFlows" }], examplesHaveFeatureToggleOrConfig: true }, { description: "AR_FN_ANY_COLL_LOGICALIF_BLN_ANY_COLL_ANY_COLL_DSC", identifier: "Any_COLL logicalIf(Boolean_ONE,Any_COLL,Any_COLL)", support: { version: "1.0", resolver: "If" }, returnValue: { description: "AR_FN_ANY_COLL_LOGICALIF_BLN_ANY_COLL_ANY_COLL_RV", isArray: true, type: "any" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_ANY_COLL_LOGICALIF_BLN_ANY_COLL_ANY_COLL_PRM_DSC_0", identifier: "condition", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "bln" }, { allowNotSet: false, allowCustomJson: false, description: "AR_FN_ANY_COLL_LOGICALIF_BLN_ANY_COLL_ANY_COLL_PRM_DSC_1", identifier: "trueValue", isArray: true, helpDisplayIdx: 1, repeatable: false, required: true, type: "any" }, { allowNotSet: false, allowCustomJson: false, description: "AR_FN_ANY_COLL_LOGICALIF_BLN_ANY_COLL_ANY_COLL_PRM_DSC_2", identifier: "falseValue", isArray: true, helpDisplayIdx: 2, repeatable: false, required: true, type: "any" }], examples: [{ input: 'If(MakeCurrency(5.00, "USD") > MakeCurrency(2.00, "USD"), MakeList(MakeCurrency(10.00, "USD")), MakeList(ToCurrency(NOT_SET)))', output: "AR_FN_ANY_COLL_LOGICALIF_BLN_ANY_COLL_ANY_COLL_EX_OUT_0" }, { input: "If(5>3, MakeList(true), MakeList(false))", output: "AR_FN_ANY_COLL_LOGICALIF_BLN_ANY_COLL_ANY_COLL_EX_OUT_1" }, { input: 'If(5>3, MakeList("hello"), MakeList("world"))', output: "AR_FN_ANY_COLL_LOGICALIF_BLN_ANY_COLL_ANY_COLL_EX_OUT_2" }, { input: "If(5>3, MakeList(100), MakeList(200))", output: "AR_FN_ANY_COLL_LOGICALIF_BLN_ANY_COLL_ANY_COLL_EX_OUT_3" }, { input: "If(5>3, MakeList(100.5), MakeList(200.0))", output: "AR_FN_ANY_COLL_LOGICALIF_BLN_ANY_COLL_ANY_COLL_EX_OUT_4" }, { input: "If(5>3, MakeList(MakeDateTime(2009, 5, 5, 10, 30, 0)), MakeList(MakeDateTime(2005, 1, 1, 0, 0, 0)))", output: "AR_FN_ANY_COLL_LOGICALIF_BLN_ANY_COLL_ANY_COLL_EX_OUT_5" }, { input: "If(5>3, MakeList(MakeDuration(0, 1, 0, 0)), MakeList(MakeDuration(2, 0, 0, 0)))", output: "AR_FN_ANY_COLL_LOGICALIF_BLN_ANY_COLL_ANY_COLL_EX_OUT_6" }, { input: 'If(5>3, MakeList(ToUser("john.doe@company.com")), MakeList(ToUser("mary.doe@company.com")))', output: "AR_FN_ANY_COLL_LOGICALIF_BLN_ANY_COLL_ANY_COLL_EX_OUT_7", hidden: "true" }, { input: 'If(5>3, MakeList(ToSkill("Spanish")), MakeList(ToSkill("German")))', output: "AR_FN_ANY_COLL_LOGICALIF_BLN_ANY_COLL_ANY_COLL_EX_OUT_8", hidden: "true" }, { input: "If(5>3, MakeList(ToSkill(NOT_SET)), MakeList(ToSkill(NOT_SET), ToSkill(NOT_SET)))", output: "AR_FN_ANY_COLL_LOGICALIF_BLN_ANY_COLL_ANY_COLL_EX_OUT_9" }, { input: "If(3<5, MakeList(MakeDate(2010, 6, 1)), MakeList(MakeDate(2015, 6, 1)))", output: "AR_FN_ANY_COLL_LOGICALIF_BLN_ANY_COLL_ANY_COLL_EX_OUT_10", featureConfigName: "botFlows" }, { input: "If(3<5, MakeList(MakeTime(12, 0, 0)), MakeList(MakeTime(2, 30, 0)))", output: "AR_FN_ANY_COLL_LOGICALIF_BLN_ANY_COLL_ANY_COLL_EX_OUT_11", featureConfigName: "botFlows" }], examplesHaveFeatureToggleOrConfig: true }, { description: "AR_FN_AUDIO_LOGICALIF_BLN_AUDIO_AUDIO_DSC", identifier: "Audio_ONE logicalIf(Boolean_ONE,Audio_ONE,Audio_ONE)", support: { version: "1.0", resolver: "If" }, supportedFlowTypes: { inboundcall: "inboundcall", inqueuecall: "inqueuecall", outboundcall: "outboundcall", securecall: "securecall", voicemail: "voicemail" }, returnValue: { description: "AR_FN_AUDIO_LOGICALIF_BLN_AUDIO_AUDIO_RV", isArray: false, type: "aud" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_AUDIO_LOGICALIF_BLN_AUDIO_AUDIO_PRM_DSC_0", identifier: "condition", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "bln" }, { allowNotSet: false, allowCustomJson: false, description: "AR_FN_AUDIO_LOGICALIF_BLN_AUDIO_AUDIO_PRM_DSC_1", identifier: "trueValueAudio", isArray: false, helpDisplayIdx: 1, repeatable: false, required: true, type: "aud" }, { allowNotSet: false, allowCustomJson: false, description: "AR_FN_AUDIO_LOGICALIF_BLN_AUDIO_AUDIO_PRM_DSC_2", identifier: "falseValueAudio", isArray: false, helpDisplayIdx: 2, repeatable: false, required: true, type: "aud" }], examples: [{ input: 'If(5>3, ToAudioTTS("Hello"), ToAudioTTS("World"))', output: "AR_FN_AUDIO_LOGICALIF_BLN_AUDIO_AUDIO_EX_OUT_0" }] }] }, areEqual: { identifier: "areEqual", description: "AR_FN_DSC_AREEQUAL", type: "function", name: "AreEqual", category: "comparison", overloads: [{ description: "AR_FN_BLN_AREEQUAL_ANY_ANY_MORE_DSC", identifier: "Boolean_ONE areEqual(Any_ONE,Any_ONE...)", support: { version: "1.0", resolver: "n-SameTypeParmNotSetToString" }, returnValue: { description: "AR_FN_BLN_AREEQUAL_ANY_ANY_MORE_RV", isArray: false, type: "bln" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_BLN_AREEQUAL_ANY_ANY_MORE_PRM_DSC_0", identifier: "valueToCompare", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "any" }, { allowNotSet: true, allowCustomJson: false, description: "AR_FN_BLN_AREEQUAL_ANY_ANY_MORE_PRM_DSC_1", identifier: "valueToCompareTo", isArray: false, helpDisplayIdx: 1, repeatable: true, required: false, type: "any" }], examples: [{ input: "AreEqual(true, false, ToBool(NOT_SET))", output: "false" }, { input: "AreEqual(5>3, true)", output: "true" }, { input: 'AreEqual("Hello", "Hel" + "lo")', output: "true" }, { input: 'AreEqual(MakeCurrency(5.00, "USD"), MakeCurrency(2.00, "USD"))', output: "false" }, { input: 'AreEqual(MakeCurrency(5.00, "USD"), MakeCurrency(5.00, "EUR"))', output: "false" }, { input: "AreEqual(ToString(NOT_SET), ToString(NOT_SET))", output: "true" }, { input: "AreEqual(100+5, 105, 110)", output: "false" }, { input: "AreEqual(105, 105)", output: "true" }, { input: "AreEqual(100.5, 120.0, 125.5)", output: "false" }, { input: "AreEqual(100.5, 100.5, 100.5)", output: "true" }, { input: "AreEqual(MakeDateTime(2009, 3, 20, 14, 0, 0), MakeDateTime(2009, 3, 20, 12, 0, 0))", output: "false" }, { input: "AreEqual(MakeDateTime(2009, 3, 20, 14, 0, 0), MakeDateTime(2009, 3, 20, 14, 0, 0))", output: "true" }, { input: "AreEqual(MakeDuration(0, 1, 0, 0), MakeDuration(2, 0, 0, 0))", output: "false" }, { input: "AreEqual(MakeDuration(2, 0, 0, 0), MakeDuration(2, 0, 0, 0))", output: "true" }, { input: 'AreEqual(ToUser("john.doe@company.com"), ToUser("Doe, Jane"))', output: "false", hidden: "true" }, { input: 'AreEqual(ToUser("john.doe@company.com"), ToUser("john.doe@company.com"))', output: "true", hidden: "true" }, { input: 'AreEqual(ToSkill("Spanish"), ToSkill("German"))', output: "false", hidden: "true" }, { input: 'AreEqual(ToSkill("Spanish"), ToSkill("Spanish"))', output: "true", hidden: "true" }, { input: "AreEqual(NOT_SET, NOT_SET)", output: "true" }, { input: "AreEqual(ToUser(NOT_SET), ToUser(NOT_SET))", output: "true" }, { input: "AreEqual(ToSkill(NOT_SET), ToSkill(NOT_SET))", output: "true" }, { input: 'AreEqual(MakeEmptyJsonObject(), JsonParse("{}"))', output: "true", featureConfigName: "encryptDecryptDataFeature" }], examplesHaveFeatureToggleOrConfig: true }, { description: "AR_FN_BLN_AREEQUAL_ANY_COLL_ANY_COLL_DSC", identifier: "Boolean_ONE areEqual(Any_COLL,Any_COLL)", support: { version: "1.0", resolver: "SameType" }, returnValue: { description: "AR_FN_BLN_AREEQUAL_ANY_COLL_ANY_COLL_RV", isArray: false, type: "bln" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_FN_BLN_AREEQUAL_ANY_COLL_ANY_COLL_PRM_DSC_0", identifier: "valueToCompare", isArray: true, helpDisplayIdx: 0, repeatable: false, required: true, type: "any" }, { allowNotSet: false, allowCustomJson: false, description: "AR_FN_BLN_AREEQUAL_ANY_COLL_ANY_COLL_PRM_DSC_1", identifier: "valueToCompareTo", isArray: true, helpDisplayIdx: 1, repeatable: false, required: true, type: "any" }], examples: [{ input: "AreEqual(MakeList(true, false), MakeList(true, false))", output: "true" }, { input: "AreEqual(MakeList(true, ToBool(NOT_SET), false), MakeList(true, false, ToBool(NOT_SET)))", output: "false" }, { input: "AreEqual(MakeList(true, ToBool(NOT_SET), false), MakeList(true, ToBool(NOT_SET), false))", output: "true" }, { input: "AreEqual(MakeList(true), MakeEmptyList(ToBool(NOT_SET)))", output: "false" }, { input: 'AreEqual(MakeList(MakeCurrency(5.00, "USD")), MakeList(MakeCurrency(5.00, "USD")))', output: "true" }, { input: 'AreEqual(MakeList(MakeCurrency(5.00, "USD")), MakeList(MakeCurrency(5.00, "EUR")))', output: "false" }, { input: 'AreEqual(MakeList("hello"), MakeList("world"))', output: "false" }, { input: 'AreEqual(MakeList("hello"), MakeList("Hello"))', output: "false" }, { input: 'AreEqual(MakeList("hello"), MakeList("hello"))', output: "true" }, { input: 'AreEqual(MakeList("hello"), MakeEmptyList(ToString(NOT_SET)))', output: "false" }, { input: "AreEqual(MakeList(5, 3, 1), MakeList(1, 3, 5))", output: "false" }, { input: "AreEqual(MakeList(5, ToInt(NOT_SET), 1), MakeList(5, 3, 1))", output: "false" }, { input: "AreEqual(MakeList(5, ToInt(NOT_SET), 1), MakeList(5, ToInt(NOT_SET), 1))", output: "true" }, { input: "AreEqual(MakeList(1), MakeEmptyList(ToInt(NOT_SET)))", output: "false" }, { input: "AreEqual(MakeList(5.0, 3.0, 1.0), MakeList(1.0, 3.0, 5.0))", output: "false" }, { input: "AreEqual(MakeList(5.0, ToDecimal(NOT_SET), 1.0), MakeList(5.0, 3.0, 1.0))", output: "false" }, { input: "AreEqual(MakeList(5.0, ToDecimal(NOT_SET), 1.0), MakeList(5.0, ToDecimal(NOT_SET), 1.0))", output: "true" }, { input: "AreEqual(MakeList(1.0), MakeEmptyList(ToDecimal(NOT_SET)))", output: "false" }, { input: "AreEqual(MakeList(MakeDateTime(2009, 5, 5, 10, 30, 0), MakeDateTime(2009, 5, 5, 11, 30, 0)), MakeList(MakeDateTime(2009, 5, 5, 10, 30, 0), MakeDateTime(2009, 5, 5, 11, 30, 0)))", output: "true" }, { input: "AreEqual(MakeList(MakeDateTime(2009, 5, 5, 10, 30, 0), ToDateTime(NOT_SET)), MakeList(MakeDateTime(2009, 5, 5, 10, 30, 0), ToDateTime(NOT_SET)))", output: "true" }, { input: "AreEqual(MakeList(ToDateTime(NOT_SET)), MakeEmptyList(ToDateTime(NOT_SET)))", output: "false" }, { input: "AreEqual(MakeList(MakeDuration(10, 0, 30, 0), MakeDuration(0, 0, 30, 30)), MakeList(MakeDuration(10, 0, 30, 0), MakeDuration(0, 0, 30, 30)))", output: "true" }, { input: "AreEqual(MakeList(MakeDuration(10, 0, 30, 0), MakeDuration(0, 0, 30, 30)), MakeList(MakeDuration(10, 0, 30, 0), ToDuration(NOT_SET)))", output: "false" }, { input: "AreEqual(MakeList(ToDuration(NOT_SET)), MakeEmptyList(ToDuration(NOT_SET)))", output: "false" }, { input: 'AreEqual(MakeList(ToUser("john.doe@company.com"), ToUser("mary.doe@company.com")), MakeList(ToUser("john.doe@company.com"), ToUser("mary.doe@company.com")))', output: "true", hidden: "true" }, { input: 'AreEqual(MakeList(ToUser("john.doe@company.com"), ToUser(NOT_SET)), MakeList(ToUser("john.doe@company.com"), ToUser(NOT_SET)))', output: "true", hidden: "true" }, { input: "AreEqual(MakeList(ToUser(NOT_SET)), MakeEmptyList(ToUser(NOT_SET)))", output: "false" }, { input: 'AreEqual(MakeList(ToSkill("Spanish"), ToSkill("German")), MakeList(ToSkill("Spanish"), ToSkill("German")))', output: "true", hidden: "true" }, { input: 'AreEqual(MakeList(ToSkill("Spanish"), ToSkill(NOT_SET)), MakeList(ToSkill("Spanish"), ToSkill(NOT_SET)))', output: "true", hidden: "true" }, { input: "AreEqual(MakeList(ToSkill(NOT_SET)), MakeEmptyList(ToSkill(NOT_SET)))", output: "false" }, { input: "AreEqual(MakeList(ToUser(NOT_SET), ToUser(NOT_SET)), MakeList(ToUser(NOT_SET), ToUser(NOT_SET)))", output: "true", hidden: "true" }, { input: "AreEqual(MakeList(ToSkill(NOT_SET), ToSkill(NOT_SET)), MakeList(ToSkill(NOT_SET), ToSkill(NOT_SET)))", output: "true", hidden: "true" }] }, { description: "AR_FN_BLN_AREEQUAL_BLN_STR_STR_MORE_DSC", identifier: "Boolean_ONE areEqual(Boolean_ONE,String_ONE,String_ONE...)", support: { version: "1.0", resolver: "None" }, returnValue: { description: "AR_FN_BLN_AREEQUAL_BLN_STR_STR_MORE_RV", isArray: false, type: "bln" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_FN_BLN_AREEQUAL_BLN_STR_STR_MORE_PRM_DSC_0", identifier: "ignoreCase", isArray: false, helpDisplayIdx: 0, repeatable: false, required: true, type: "bln" }, { allowNotSet: true, allowCustomJson: false, description: "AR_FN_BLN_AREEQUAL_BLN_STR_STR_MORE_PRM_DSC_1", identifier: "valueToCompare", isArray: false, helpDisplayIdx: 1, repeatable: false, required: false, type: "str" }, { allowNotSet: true, allowCustomJson: false, description: "AR_FN_BLN_AREEQUAL_BLN_STR_STR_MORE_PRM_DSC_2", identifier: "valueToCompareTo", isArray: false, helpDisplayIdx: 2, repeatable: true, required: false, type: "str" }], examples: [{ input: 'AreEqual(false, "Hello", "hel" + "lo")', output: "false" }, { input: 'AreEqual(true, "Hello", "hel" + "lo", "hello")', output: "true" }, { input: "AreEqual(false, ToString(NOT_SET), ToString(NOT_SET))", output: "true" }] }, { description: "AR_FN_BLN_AREEQUAL_BLN_STR_COLL_STR_COLL_DSC", identifier: "Boolean_ONE areEqual(Boolean_ONE,String_COLL,String_COLL)", support: { version: "1.0", resolver: "None" }, returnValue: { description: "AR_FN_BLN_AREEQUAL_BLN_STR_COLL_STR_COLL_RV", isArray: false, type: "bln" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_FN_BLN_AREEQUAL_BLN_STR_COLL_STR_COLL_PRM_DSC_0", identifier: "ignoreCase", isArray: false, helpDisplayIdx: 0, repeatable: false, required: true, type: "bln" }, { allowNotSet: false, allowCustomJson: false, description: "AR_FN_BLN_AREEQUAL_BLN_STR_COLL_STR_COLL_PRM_DSC_1", identifier: "valueToCompare", isArray: true, helpDisplayIdx: 1, repeatable: false, required: true, type: "str" }, { allowNotSet: false, allowCustomJson: false, description: "AR_FN_BLN_AREEQUAL_BLN_STR_COLL_STR_COLL_PRM_DSC_2", identifier: "valueToCompareTo", isArray: true, helpDisplayIdx: 2, repeatable: false, required: true, type: "str" }], examples: [{ input: 'AreEqual(false, MakeList("hello"), MakeList("world"))', output: "false" }, { input: 'AreEqual(false, MakeList("hello"), MakeList("Hello"))', output: "false" }, { input: 'AreEqual(true, MakeList("hello"), MakeList("Hello"))', output: "true" }, { input: 'AreEqual(false, MakeList("hello"), MakeList("hello"))', output: "true" }, { input: 'AreEqual(false, MakeList("hello"), MakeEmptyList(ToString(NOT_SET)))', output: "false" }] }] }, isSkillExpressionFilterValid: { identifier: "isSkillExpressionFilterValid", description: "AR_FN_DSC_ISSKILLEXPRESSIONFILTERVALID", type: "function", name: "IsSkillExpressionFilterValid", category: "logical", overloads: [{ description: "AR_FN_BLN_ISSKILLEXPRESSIONFILTERVALID_SKILLEXPRESSIONFILTER_DSC", identifier: "Boolean_ONE isSkillExpressionFilterValid(SkillExpressionFilter_ONE)", support: { version: "1.0", resolver: "None" }, supportedFlowTypes: { inboundcall: "inboundcall", inqueuecall: "inqueuecall", outboundcall: "outboundcall", securecall: "securecall", voicemail: "voicemail", commonmodule: "commonmodule", inboundemail: "inboundemail", inboundshortmessage: "inboundshortmessage", emailsend: "emailsend", inqueueemail: "inqueueemail", inqueueshortmessage: "inqueueshortmessage" }, featureConfigName: "routingSkillExpressionsFeature", needsServerInfo: true, returnValue: { description: "AR_FN_BLN_ISSKILLEXPRESSIONFILTERVALID_SKILLEXPRESSIONFILTER_RV", isArray: false, type: "bln" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_BLN_ISSKILLEXPRESSIONFILTERVALID_SKILLEXPRESSIONFILTER_PRM_DSC_0", identifier: "skillExpressionFilter", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "jsn__architect::skill_expression_filter" }], examples: [{ input: 'IsSkillExpressionFilterValid(EvaluateSkillExpressionFilter("((Skill(\\"iPhone\\")>1 | (Skill(\\"CarPlay\\")=10)) & LanguageSkill(\\"Spanish\\") > 0)"))', output: "AR_FN_BLN_ISSKILLEXPRESSIONFILTERVALID_SKILLEXPRESSIONFILTER_EX_OUT_0" }, { input: "IsSkillExpressionFilterValid(NOT_SET)", output: "AR_FN_BLN_ISSKILLEXPRESSIONFILTERVALID_SKILLEXPRESSIONFILTER_EX_OUT_1" }] }], needsServerInfo: true }, areSkillExpressionFiltersValid: { identifier: "areSkillExpressionFiltersValid", description: "AR_FN_DSC_ARESKILLEXPRESSIONFILTERSVALID", type: "function", name: "AreSkillExpressionFiltersValid", category: "search", overloads: [{ description: "AR_FN_BLN_ARESKILLEXPRESSIONFILTERSVALID_SKILLEXPRESSIONFILTER_COLL_DSC", identifier: "Boolean_ONE areSkillExpressionFiltersValid(SkillExpressionFilter_COLL)", support: { version: "1.0", resolver: "None" }, supportedFlowTypes: { inboundcall: "inboundcall", inqueuecall: "inqueuecall", outboundcall: "outboundcall", securecall: "securecall", voicemail: "voicemail", commonmodule: "commonmodule", emailsend: "emailsend", inboundemail: "inboundemail", inboundshortmessage: "inboundshortmessage", inqueueemail: "inqueueemail", inqueueshortmessage: "inqueueshortmessage" }, featureConfigName: "routingSkillExpressionsFeature", needsServerInfo: true, returnValue: { description: "AR_FN_BLN_ARESKILLEXPRESSIONFILTERSVALID_SKILLEXPRESSIONFILTER_COLL_RV", isArray: false, type: "bln" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_FN_BLN_ARESKILLEXPRESSIONFILTERSVALID_SKILLEXPRESSIONFILTER_COLL_PRM_DSC_0", identifier: "skillExpressionFilters", isArray: true, helpDisplayIdx: 0, repeatable: false, required: true, type: "jsn__architect::skill_expression_filter" }], examples: [{ input: 'AreSkillExpressionFiltersValid(MakeList(EvaluateSkillExpressionFilter("((Skill(\\"iPhone\\")>1 | (Skill(\\"CarPlay\\")=10)) & LanguageSkill(\\"Spanish\\") > 0)")))', output: "AR_FN_BLN_ARESKILLEXPRESSIONFILTERSVALID_SKILLEXPRESSIONFILTER_COLL_EX_OUT_0" }, { input: 'AreSkillExpressionFiltersValid(MakeEmptyList(EvaluateSkillExpressionFilter("((Skill(\\"iPhone\\")>1 | (Skill(\\"CarPlay\\")=10)) & LanguageSkill(\\"Spanish\\") > 0)")))', output: "AR_FN_BLN_ARESKILLEXPRESSIONFILTERSVALID_SKILLEXPRESSIONFILTER_COLL_EX_OUT_1" }] }], needsServerInfo: true }, isSet: { identifier: "isSet", description: "AR_FN_DSC_ISSET", type: "function", name: "IsSet", category: "logical", overloads: [{ description: "AR_FN_BLN_ISSET_ANY_DSC", identifier: "Boolean_ONE isSet(Any_ONE)", support: { version: "1.0", resolver: "None" }, returnValue: { description: "AR_FN_BLN_ISSET_ANY_RV", isArray: false, type: "bln" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_BLN_ISSET_ANY_PRM_DSC_0", identifier: "item", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "any" }], examples: [{ input: "IsSet(true)", output: "true" }, { input: "IsSet(false)", output: "true" }, { input: "IsSet(ToBool(NOT_SET))", output: "false" }, { input: 'IsSet("Hello")', output: "true" }, { input: 'IsSet("")', output: "true" }, { input: "IsSet(ToString(NOT_SET))", output: "false" }, { input: "IsSet(100)", output: "true" }, { input: "IsSet(ToInt(NOT_SET))", output: "false" }, { input: "IsSet(100.5)", output: "true" }, { input: "IsSet(ToDecimal(NOT_SET))", output: "false" }, { input: "IsSet(ToCurrency(NOT_SET))", output: "false" }, { input: "IsSet(MakeCurrency(5.00, ToString(NOT_SET)))", output: "true" }, { input: 'IsSet(MakeCurrency(ToDecimal(NOT_SET), "USD"))', output: "true" }, { input: "IsSet(MakeCurrency(ToDecimal(NOT_SET), ToString(NOT_SET)))", output: "true" }, { input: 'IsSet(MakeCurrency(5.00, "USD"))', output: "true" }, { input: "IsSet(MakeDate(2018, 12, 4))", output: "true", featureConfigName: "botFlows" }, { input: "IsSet(ToDate(NOT_SET))", output: "false", featureConfigName: "botFlows" }, { input: "IsSet(MakeTime(1, 30, 0))", output: "true", featureConfigName: "botFlows" }, { input: "IsSet(ToTime(NOT_SET))", output: "false", featureConfigName: "botFlows" }, { input: "IsSet(JsonParse(NOT_SET))", output: "false", featureConfigName: "encryptDecryptDataFeature" }, { input: "IsSet(ToJson(NOT_SET))", output: "false", featureConfigName: "encryptDecryptDataFeature" }, { input: 'IsSet(JsonParse("null"))', output: "true", featureConfigName: "encryptDecryptDataFeature" }, { input: 'IsSet(JsonParse("true"))', output: "true", featureConfigName: "encryptDecryptDataFeature" }, { input: "IsSet(MakeEmptyJsonObject())", output: "true", featureConfigName: "encryptDecryptDataFeature" }, { input: 'IsSet(JsonParse("{\\"a\\": false}"))', output: "true", featureConfigName: "encryptDecryptDataFeature" }, { input: 'IsSet(ToJson(""))', output: "true", featureConfigName: "encryptDecryptDataFeature" }], examplesHaveFeatureToggleOrConfig: true }, { description: "AR_FN_BLN_ISSET_AUDIO_DSC", identifier: "Boolean_ONE isSet(Audio_ONE)", support: { version: "1.0", resolver: "None" }, needsServerInfo: true, returnValue: { description: "AR_FN_BLN_ISSET_AUDIO_RV", isArray: false, type: "bln" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_FN_BLN_ISSET_AUDIO_PRM_DSC_0", identifier: "item", isArray: false, helpDisplayIdx: 0, repeatable: false, required: true, type: "aud" }], examples: [{ input: 'IsSet(ToAudioTTS("Hello"))', output: "true" }, { input: "IsSet(ToAudioBlank(2000))", output: "true" }, { input: "IsSet(ToAudio(ToPrompt(NOT_SET)))", output: "false" }] }, { description: "AR_FN_BLN_ISSET_NTS_DSC", identifier: "Boolean_ONE isSet(Null_ONE)", support: { version: "1.0", resolver: "NotSetToRetType" }, returnValue: { description: "AR_FN_BLN_ISSET_NTS_RV", isArray: false, type: "bln" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_BLN_ISSET_NTS_PRM_DSC_0", identifier: "item", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "nts" }], examples: [{ input: "IsSet(NOT_SET)", output: "false" }] }], needsServerInfo: true }, getAt: { identifier: "getAt", description: "AR_FN_DSC_GETAT", type: "function", name: "GetAt", category: "list", overloads: [{ description: "AR_FN_ANY_GETAT_ANY_COLL_LNG_DSC", identifier: "Any_ONE getAt(Any_COLL,Long_ONE)", support: { version: "1.0", resolver: "GetAt" }, returnValue: { description: "AR_FN_ANY_GETAT_ANY_COLL_LNG_RV", isArray: false, type: "any" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_FN_ANY_GETAT_ANY_COLL_LNG_PRM_DSC_0", identifier: "collection", isArray: true, helpDisplayIdx: 0, repeatable: false, required: true, type: "any" }, { allowNotSet: false, allowCustomJson: false, description: "AR_FN_ANY_GETAT_ANY_COLL_LNG_PRM_DSC_1", identifier: "index", isArray: false, helpDisplayIdx: 1, min: "0", repeatable: false, required: true, type: "int" }], examples: [{ input: "GetAt(MakeList(true, false), 0)", output: "true" }, { input: 'GetAt(MakeList("Hello", "World"), 0)', output: '"Hello"' }, { input: "GetAt(MakeList(100, 200), 0)", output: "100" }, { input: "GetAt(MakeList(100.5, 200.5), 0)", output: "100.5" }, { input: 'GetAt(MakeList(MakeCurrency(5.00, "USD"), MakeCurrency(ToDecimal(NOT_SET), "USD")), 1)', output: "AR_FN_ANY_GETAT_ANY_COLL_LNG_EX_OUT_4" }, { input: "GetAt(MakeList(MakeDateTime(2009, 5, 5, 10, 30, 0), MakeDateTime(2005, 1, 1, 0, 0, 0)), 0)", output: "AR_FN_ANY_GETAT_ANY_COLL_LNG_EX_OUT_5" }, { input: "GetAt(MakeList(MakeDuration(10, 0, 30, 0), MakeDuration(0, 0, 30, 30)), 0)", output: "AR_FN_ANY_GETAT_ANY_COLL_LNG_EX_OUT_6" }, { input: 'GetAt(MakeList(ToSkill("Spanish"), ToSkill("German")), 0)', output: "AR_FN_ANY_GETAT_ANY_COLL_LNG_EX_OUT_7", hidden: "true" }, { input: 'GetAt(MakeList(ToUser("john.doe@company.com"), ToUser("mary.doe@company.com")), 0)', output: "AR_FN_ANY_GETAT_ANY_COLL_LNG_EX_OUT_8", hidden: "true" }, { input: "GetAt(MakeList(ToSkill(NOT_SET)), 0)", output: "AR_FN_ANY_GETAT_ANY_COLL_LNG_EX_OUT_9" }, { input: "GetAt(MakeList(MakeDate(2015, 1, 10), MakeDate(2018, 2, 14)), 0)", output: "AR_FN_ANY_GETAT_ANY_COLL_LNG_EX_OUT_10", featureConfigName: "botFlows" }, { input: "GetAt(MakeList(MakeTime(4, 30, 0), MakeTime(14, 15, 0)), 1)", output: "AR_FN_ANY_GETAT_ANY_COLL_LNG_EX_OUT_11", featureConfigName: "botFlows" }], examplesHaveFeatureToggleOrConfig: true }, { description: "AR_FN_JSON_GETAT_JSON_LNG_DSC", identifier: "JSON_ONE getAt(JSON_ONE,Long_ONE)", support: { version: "1.0", resolver: "None" }, needsServerInfo: true, returnValue: { description: "AR_FN_JSON_GETAT_JSON_LNG_RV", isArray: false, type: "jsn" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_FN_JSON_GETAT_JSON_LNG_PRM_DSC_0", identifier: "jsonValue", isArray: false, helpDisplayIdx: 0, repeatable: false, required: true, type: "jsn" }, { allowNotSet: false, allowCustomJson: false, description: "AR_FN_JSON_GETAT_JSON_LNG_PRM_DSC_1", identifier: "index", isArray: false, helpDisplayIdx: 1, min: "0", repeatable: false, required: true, type: "int" }], examples: [{ input: 'GetAt(JsonParse( "[\\"a\\", \\"b\\", \\"c\\"]" ), 1)', output: "AR_FN_JSON_GETAT_JSON_LNG_EX_OUT_0" }, { input: 'GetAt(JsonParse("\\"Hello\\""), 2)', output: "AR_FN_JSON_GETAT_JSON_LNG_EX_OUT_1" }] }], needsServerInfo: true }, count: { identifier: "count", description: "AR_FN_DSC_COUNT", type: "function", name: "Count", category: "list", overloads: [{ description: "AR_FN_LNG_COUNT_ANY_COLL_DSC", identifier: "Long_ONE count(Any_COLL)", support: { version: "1.0", resolver: "None" }, returnValue: { description: "AR_FN_LNG_COUNT_ANY_COLL_RV", isArray: false, type: "int" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_FN_LNG_COUNT_ANY_COLL_PRM_DSC_0", identifier: "value", isArray: true, helpDisplayIdx: 0, repeatable: false, required: true, type: "any" }], examples: [{ input: "Count(MakeList(true, false))", output: "2" }, { input: "Count(MakeList(true, ToBool(NOT_SET)))", output: "2" }, { input: "Count(MakeList(ToBool(NOT_SET)))", output: "1" }, { input: 'Count(MakeList(MakeCurrency(5.00, "EUR"), MakeCurrency(ToDecimal(NOT_SET), "USD")))', output: "2" }, { input: 'Count(MakeList("hello", "world"))', output: "2" }, { input: 'Count(MakeList("hello", ToString(NOT_SET)))', output: "2" }, { input: "Count(MakeList(ToString(NOT_SET)))", output: "1" }, { input: "Count(MakeList(5, 3))", output: "2" }, { input: "Count(MakeList(5, ToInt(NOT_SET)))", output: "2" }, { input: "Count(MakeList(ToInt(NOT_SET)))", output: "1" }, { input: "Count(MakeList(3.5, -2.2))", output: "2" }, { input: "Count(MakeList(3.5, ToDecimal(NOT_SET)))", output: "2" }, { input: "Count(MakeList(ToDecimal(NOT_SET)))", output: "1" }, { input: "Count(MakeList(MakeDateTime(2009, 5, 5, 10, 30, 0), MakeDateTime(2008, 4, 5, 10, 30, 0)))", output: "2" }, { input: "Count(MakeList(GetCurrentDateTimeUtc(), ToDateTime(NOT_SET)))", output: "2" }, { input: "Count(MakeList(ToDateTime(NOT_SET)))", output: "1" }, { input: "Count(MakeList(MakeDuration(10, 0, 30, 0), MakeDuration(0, 0, 30, 30)))", output: "2" }, { input: "Count(MakeList(MakeDuration(10, 0, 30, 0), ToDuration(NOT_SET)))", output: "2" }, { input: "Count(MakeList(ToDuration(NOT_SET)))", output: "1" }, { input: 'Count(MakeList(ToUser("john.doe@company.com"), ToUser("mary.doe@company.com")))', output: "2", hidden: "true" }, { input: 'Count(MakeList(ToUser("john.doe@company.com"), ToUser(NOT_SET)))', output: "2", hidden: "true" }, { input: "Count(MakeList(ToUser(NOT_SET)))", output: "1" }, { input: 'Count(MakeList(ToSkill("Spanish"), ToSkill("German")))', output: "2", hidden: "true" }, { input: 'Count(MakeList(ToSkill("Spanish"), ToSkill(NOT_SET)))', output: "2", hidden: "true" }, { input: "Count(MakeList(ToSkill(NOT_SET)))", output: "1" }, { input: "Count(MakeList(ToUser(NOT_SET), ToUser(NOT_SET)))", output: "2" }, { input: "Count(MakeList(ToSkill(NOT_SET)))", output: "1" }, { input: "Count(MakeList(MakeDate(2015, 1, 10), MakeDate(2018, 2, 14)))", output: "2", featureConfigName: "botFlows" }, { input: "Count(MakeList(MakeTime(4, 30, 0), MakeTime(14, 15, 0)))", output: "2", featureConfigName: "botFlows" }, { input: "Count(MakeEmptyJsonArray())", output: "0", featureConfigName: "encryptDecryptDataFeature" }], examplesHaveFeatureToggleOrConfig: true }, { description: "AR_FN_LNG_COUNT_JSON_DSC", identifier: "Long_ONE count(JSON_ONE)", support: { version: "1.0", resolver: "None" }, needsServerInfo: true, returnValue: { description: "AR_FN_LNG_COUNT_JSON_RV", isArray: false, type: "int" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_FN_LNG_COUNT_JSON_PRM_DSC_0", identifier: "jsonArray", isArray: false, helpDisplayIdx: 0, repeatable: false, required: true, type: "jsn" }], examples: [{ input: 'Count(JsonParse("[ \\"a\\", \\"b\\", \\"c\\" ]"))', output: "3", featureConfigName: "encryptDecryptDataFeature" }, { input: 'Count(JsonParse("[ 1, 3, 20 ]"))', output: "3", featureConfigName: "encryptDecryptDataFeature" }], examplesHaveFeatureToggleOrConfig: true }], needsServerInfo: true }, escapeForMarkdown: { identifier: "escapeForMarkdown", description: "AR_FN_DSC_ESCAPEFORMARKDOWN", type: "function", name: "EscapeForMarkdown", category: "text", overloads: [{ description: "AR_FN_STR_ESCAPEFORMARKDOWN_STR_DSC", identifier: "String_ONE escapeForMarkdown(String_ONE)", support: { version: "1.0", resolver: "None" }, needsServerInfo: true, returnValue: { description: "AR_FN_STR_ESCAPEFORMARKDOWN_STR_RV", isArray: false, type: "str" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_STR_ESCAPEFORMARKDOWN_STR_PRM_DSC_0", identifier: "stringToEscape", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "str" }], examples: [{ input: 'EscapeForMarkdown("# Hello")', output: '"\\# Hello"' }, { input: 'EscapeForMarkdown("_More **example** text._")', output: '"\\_More \\*\\*example\\*\\* text.\\_"' }, { input: "EscapeForMarkdown(ToString(NOT_SET))", output: "AR_FN_STR_ESCAPEFORMARKDOWN_STR_EX_OUT_2" }] }], needsServerInfo: true }, escapeForXml: { identifier: "escapeForXml", description: "AR_FN_DSC_ESCAPEFORXML", type: "function", name: "EscapeForXml", category: "text", overloads: [{ description: "AR_FN_STR_ESCAPEFORXML_STR_DSC", identifier: "String_ONE escapeForXml(String_ONE)", support: { version: "1.0", resolver: "None" }, needsServerInfo: true, returnValue: { description: "AR_FN_STR_ESCAPEFORXML_STR_RV", isArray: false, type: "str" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_STR_ESCAPEFORXML_STR_PRM_DSC_0", identifier: "stringToEscape", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "str" }], examples: [{ input: 'EscapeForXml("5>3")', output: '"5>3"' }, { input: 'EscapeForXml("\\"Hello\\"")', output: '""Hello""' }, { input: "EscapeForXml(ToString(NOT_SET))", output: "AR_FN_STR_ESCAPEFORXML_STR_EX_OUT_2" }] }], needsServerInfo: true }, find: { identifier: "find", description: "AR_FN_DSC_FIND", type: "function", name: "Find", category: "list", overloads: [{ description: "AR_FN_LNG_COLL_FIND_ANY_COLL_ANY_DSC", identifier: "Long_COLL find(Any_COLL,Any_ONE)", support: { version: "1.0", resolver: "Find" }, returnValue: { description: "AR_FN_LNG_COLL_FIND_ANY_COLL_ANY_RV", isArray: true, type: "int" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_FN_LNG_COLL_FIND_ANY_COLL_ANY_PRM_DSC_0", identifier: "list", isArray: true, helpDisplayIdx: 0, repeatable: false, required: true, type: "any" }, { allowNotSet: true, allowCustomJson: false, description: "AR_FN_LNG_COLL_FIND_ANY_COLL_ANY_PRM_DSC_1", identifier: "item", isArray: false, helpDisplayIdx: 1, repeatable: false, required: false, type: "any" }], examples: [{ input: "Find(MakeList(true, false, true, ToBool(NOT_SET)), false)", output: "[1]" }, { input: "Find(MakeList(true, false, true, ToBool(NOT_SET)), ToBool(NOT_SET))", output: "[3]" }, { input: 'Find(MakeList(MakeCurrency(5.00, "USD"), MakeCurrency(ToDecimal(NOT_SET), "USD")), MakeCurrency(2.00, "EUR"))', output: "[]" }, { input: 'Find(MakeList("hello", "world", ToString(NOT_SET)), "hello")', output: "[0]" }, { input: 'Find(MakeList("hello", "world", ToString(NOT_SET)), "Hello")', output: "[]" }, { input: 'Find(MakeList("hello", "world", ToString(NOT_SET)), ToString(NOT_SET))', output: "[2]" }, { input: "Find(MakeList(100, 200, ToInt(NOT_SET)), 100)", output: "[0]" }, { input: "Find(MakeList(100, 200, ToInt(NOT_SET)), 300)", output: "[]" }, { input: "Find(MakeList(100, 200, ToInt(NOT_SET)), ToInt(NOT_SET))", output: "[2]" }, { input: "Find(MakeList(100.5, 200.0, ToDecimal(NOT_SET)), 100.5)", output: "[0]" }, { input: "Find(MakeList(100.5, 200.0, ToDecimal(NOT_SET)), 300.0)", output: "[]" }, { input: "Find(MakeList(100.5, 200.0, ToDecimal(NOT_SET)), ToDecimal(NOT_SET))", output: "[2]" }, { input: "Find(MakeList(MakeDateTime(2009, 1, 10, 6, 30, 0), MakeDateTime(2009, 1, 10, 6, 30, 0), ToDateTime(NOT_SET)), MakeDateTime(2009, 1, 10, 6, 30, 0))", output: "[0, 1]" }, { input: "Find(MakeList(MakeDateTime(2009, 1, 10, 6, 30, 0), MakeDateTime(2009, 1, 10, 6, 30, 0), ToDateTime(NOT_SET)), MakeDateTime(2007, 1, 1, 0, 0, 0))", output: "[]" }, { input: "Find(MakeList(MakeDateTime(2009, 1, 10, 6, 30, 0), MakeDateTime(2009, 1, 10, 6, 30, 0), ToDateTime(NOT_SET)), ToDateTime(NOT_SET))", output: "[2]" }, { input: "Find(MakeList(MakeDuration(1, 0, 0, 0), MakeDuration(0, 6, 0, 0), ToDuration(NOT_SET)), MakeDuration(1, 0, 0, 0))", output: "[0]" }, { input: "Find(MakeList(MakeDuration(1, 0, 0, 0), MakeDuration(0, 6, 0, 0), ToDuration(NOT_SET)), MakeDuration(3, 3, 0, 0))", output: "[]" }, { input: "Find(MakeList(MakeDuration(1, 0, 0, 0), MakeDuration(0, 6, 0, 0), ToDuration(NOT_SET)), ToDuration(NOT_SET))", output: "[2]" }, { input: 'Find(MakeList(ToUser("john.doe@company.com"), ToUser("jane.doe@company.com"), ToUser(NOT_SET)), ToUser("john.doe@company.com"))', output: "[0]", hidden: "true" }, { input: 'Find(MakeList(ToUser("john.doe@company.com"), ToUser("jane.doe@company.com"), ToUser(NOT_SET)), ToUser("joe.schmo@company.com"))', output: "[]", hidden: "true" }, { input: 'Find(MakeList(ToUser("john.doe@company.com"), ToUser("jane.doe@company.com"), ToUser(NOT_SET)), ToUser(NOT_SET))', output: "[2]", hidden: "true" }, { input: 'Find(MakeList(ToSkill("Spanish"), ToSkill("German"), ToSkill(NOT_SET)), ToSkill("Spanish"))', output: "[0]", hidden: "true" }, { input: 'Find(MakeList(ToSkill("Spanish"), ToSkill("German"), ToSkill(NOT_SET)), ToSkill("French"))', output: "[]", hidden: "true" }, { input: 'Find(MakeList(ToSkill("Spanish"), ToSkill("German"), ToSkill(NOT_SET)), ToSkill(NOT_SET))', output: "[2]", hidden: "true" }, { input: "Find(MakeList(ToSkill(NOT_SET), ToSkill(NOT_SET)), ToSkill(NOT_SET))", output: "[0, 1]" }, { input: "Find(MakeList(ToUser(NOT_SET), ToUser(NOT_SET)), ToUser(NOT_SET))", output: "[0, 1]" }, { input: 'Find(MakeList(ToPhoneNumber("tel:+13178723000"), ToPhoneNumber("+13178723000")), ToPhoneNumber("13178723000"))', output: "[0, 1]" }, { input: 'Find(MakeList(ToPhoneNumber("sip:john.doe@company.com"), ToPhoneNumber("sips:john.doe@company.com")), ToPhoneNumber("sip:john.doe@company.com"))', output: "[0]" }, { input: "Find(MakeList(MakeDate(2015, 1, 10), MakeDate(2018, 2, 14)), MakeDate(2018, 2, 14))", output: "[1]", featureConfigName: "botFlows" }, { input: "Find(MakeList(MakeTime(4, 30, 0), MakeTime(14, 15, 0)), MakeTime(4, 30, 0))", output: "[0]", featureConfigName: "botFlows" }], examplesHaveFeatureToggleOrConfig: true }] }, findFirst: { identifier: "findFirst", description: "AR_FN_DSC_FINDFIRST", type: "function", name: "FindFirst", category: "list", overloads: [{ description: "AR_FN_LNG_FINDFIRST_ANY_COLL_ANY_DSC", identifier: "Long_ONE findFirst(Any_COLL,Any_ONE)", support: { version: "1.0", resolver: "Find" }, returnValue: { description: "AR_FN_LNG_FINDFIRST_ANY_COLL_ANY_RV", isArray: false, type: "int" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_FN_LNG_FINDFIRST_ANY_COLL_ANY_PRM_DSC_0", identifier: "list", isArray: true, helpDisplayIdx: 0, repeatable: false, required: true, type: "any" }, { allowNotSet: true, allowCustomJson: false, description: "AR_FN_LNG_FINDFIRST_ANY_COLL_ANY_PRM_DSC_1", identifier: "item", isArray: false, helpDisplayIdx: 1, repeatable: false, required: false, type: "any" }], examples: [{ input: "FindFirst(MakeList(true, false, true, ToBool(NOT_SET)), false)", output: "1" }, { input: "FindFirst(MakeList(true, false, true, ToBool(NOT_SET)), ToBool(NOT_SET))", output: "3" }, { input: 'FindFirst(MakeList(MakeCurrency(5.00, "USD"), MakeCurrency(ToDecimal(NOT_SET), "USD")), MakeCurrency(2.00, "EUR"))', output: "-1" }, { input: 'FindFirst(MakeList("hello", "world", ToString(NOT_SET)), "hello")', output: "0" }, { input: 'FindFirst(MakeList("hello", "world", ToString(NOT_SET)), "Hello")', output: "-1" }, { input: 'FindFirst(MakeList("hello", "world", ToString(NOT_SET)), ToString(NOT_SET))', output: "2" }, { input: "FindFirst(MakeList(100, 200, ToInt(NOT_SET)), 100)", output: "0" }, { input: "FindFirst(MakeList(100, 200, ToInt(NOT_SET)), 300)", output: "-1" }, { input: "FindFirst(MakeList(100, 200, ToInt(NOT_SET)), ToInt(NOT_SET))", output: "2" }, { input: "FindFirst(MakeList(100.5, 200.0, ToDecimal(NOT_SET)), 100.5)", output: "0" }, { input: "FindFirst(MakeList(100.5, 200.0, ToDecimal(NOT_SET)), 300.0)", output: "-1" }, { input: "FindFirst(MakeList(100.5, 200.0, ToDecimal(NOT_SET)), ToDecimal(NOT_SET))", output: "2" }, { input: "FindFirst(MakeList(MakeDateTime(2009, 1, 10, 6, 30, 0), MakeDateTime(2009, 1, 10, 6, 30, 0), ToDateTime(NOT_SET)), MakeDateTime(2009, 1, 10, 6, 30, 0))", output: "0" }, { input: "FindFirst(MakeList(MakeDateTime(2009, 1, 10, 6, 30, 0), MakeDateTime(2009, 1, 10, 6, 30, 0), ToDateTime(NOT_SET)), MakeDateTime(2007, 1, 1, 0, 0, 0))", output: "-1" }, { input: "FindFirst(MakeList(MakeDateTime(2009, 1, 10, 6, 30, 0), MakeDateTime(2009, 1, 10, 6, 30, 0), ToDateTime(NOT_SET)), ToDateTime(NOT_SET))", output: "2" }, { input: "FindFirst(MakeList(MakeDuration(1, 0, 0, 0), MakeDuration(0, 6, 0, 0), ToDuration(NOT_SET)), MakeDuration(1, 0, 0, 0))", output: "0" }, { input: "FindFirst(MakeList(MakeDuration(1, 0, 0, 0), MakeDuration(0, 6, 0, 0), ToDuration(NOT_SET)), MakeDuration(3, 3, 0, 0))", output: "-1" }, { input: "FindFirst(MakeList(MakeDuration(1, 0, 0, 0), MakeDuration(0, 6, 0, 0), ToDuration(NOT_SET)), ToDuration(NOT_SET))", output: "2" }, { input: 'FindFirst(MakeList(ToUser("john.doe@company.com"), ToUser("jane.doe@company.com"), ToUser(NOT_SET)), ToUser("john.doe@company.com"))', output: "0", hidden: "true" }, { input: 'FindFirst(MakeList(ToUser("john.doe@company.com"), ToUser("jane.doe@company.com"), ToUser(NOT_SET)), ToUser("joe.schmo@company.com"))', output: "-1", hidden: "true" }, { input: 'FindFirst(MakeList(ToUser("john.doe@company.com"), ToUser("jane.doe@company.com"), ToUser(NOT_SET)), ToUser(NOT_SET))', output: "2", hidden: "true" }, { input: 'FindFirst(MakeList(ToSkill("Spanish"), ToSkill("German"), ToSkill(NOT_SET)), ToSkill("Spanish"))', output: "0", hidden: "true" }, { input: 'FindFirst(MakeList(ToSkill("Spanish"), ToSkill("German"), ToSkill(NOT_SET)), ToSkill("French"))', output: "-1", hidden: "true" }, { input: 'FindFirst(MakeList(ToSkill("Spanish"), ToSkill("German"), ToSkill(NOT_SET)), ToSkill(NOT_SET))', output: "2", hidden: "true" }, { input: "FindFirst(MakeList(ToSkill(NOT_SET), ToSkill(NOT_SET)), ToSkill(NOT_SET))", output: "0" }, { input: "FindFirst(MakeList(ToUser(NOT_SET), ToUser(NOT_SET)), ToUser(NOT_SET))", output: "0" }, { input: 'FindFirst(MakeList(ToPhoneNumber("tel:+13178723000"), ToPhoneNumber("13175555555")), ToPhoneNumber("+13178723000"))', output: "0" }, { input: 'FindFirst(MakeList(ToPhoneNumber("sip:john.doe@company.com"), ToPhoneNumber("sips:john.doe@company.com")), ToPhoneNumber("sip:john.doe@company.com"))', output: "0" }, { input: "FindFirst(MakeList(MakeDate(2015, 1, 10), MakeDate(2018, 2, 14)), MakeDate(2018, 2, 14))", output: "1", featureConfigName: "botFlows" }, { input: "FindFirst(MakeList(MakeTime(4, 30, 0), MakeTime(14, 15, 0)), MakeTime(14, 15, 0))", output: "1", featureConfigName: "botFlows" }], examplesHaveFeatureToggleOrConfig: true }] }, findItems: { identifier: "findItems", description: "AR_FN_DSC_FINDITEMS", type: "function", name: "FindItems", category: "list", overloads: [{ description: "AR_FN_LNG_COLL_FINDITEMS_KNOWLEDGEBASEDOCUMENTLABEL_COLL_STR_DSC", identifier: "Long_COLL findItems(KnowledgeBaseDocumentLabel_COLL,String_ONE)", support: { version: "1.0", resolver: "None" }, supportedFlowTypes: { digitalbot: "digitalbot" }, needsServerInfo: true, returnValue: { description: "AR_FN_LNG_COLL_FINDITEMS_KNOWLEDGEBASEDOCUMENTLABEL_COLL_STR_RV", isArray: true, type: "int" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_LNG_COLL_FINDITEMS_KNOWLEDGEBASEDOCUMENTLABEL_COLL_STR_PRM_DSC_0", identifier: "knowledgeBaseDocumentLabelCollection", isArray: true, helpDisplayIdx: 0, repeatable: false, required: false, type: "cpx_knowledge_base_document_label" }, { allowNotSet: true, allowCustomJson: false, description: "AR_FN_LNG_COLL_FINDITEMS_KNOWLEDGEBASEDOCUMENTLABEL_COLL_STR_PRM_DSC_1", identifier: "labelName", isArray: false, helpDisplayIdx: 1, repeatable: false, required: false, type: "str" }], examples: [{ input: 'FindItems(Flow.KnowledgeBaseDocument.labels, "Product Label")', output: "[0]" }, { input: 'FindItems(Flow.KnowledgeBaseDocument.labels, "Welcome Article")', output: "AR_FN_LNG_COLL_FINDITEMS_KNOWLEDGEBASEDOCUMENTLABEL_COLL_STR_EX_OUT_1" }] }, { description: "AR_FN_LNG_COLL_FINDITEMS_KNOWLEDGEBASEDOCUMENTLABEL_COLL_STR_STR_DSC", identifier: "Long_COLL findItems(KnowledgeBaseDocumentLabel_COLL,String_ONE,String_ONE)", support: { version: "1.0", resolver: "None" }, supportedFlowTypes: { digitalbot: "digitalbot" }, needsServerInfo: true, returnValue: { description: "AR_FN_LNG_COLL_FINDITEMS_KNOWLEDGEBASEDOCUMENTLABEL_COLL_STR_STR_RV", isArray: true, type: "int" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_LNG_COLL_FINDITEMS_KNOWLEDGEBASEDOCUMENTLABEL_COLL_STR_STR_PRM_DSC_0", identifier: "knowledgeBaseDocumentLabelCollection", isArray: true, helpDisplayIdx: 0, repeatable: false, required: false, type: "cpx_knowledge_base_document_label" }, { allowNotSet: true, allowCustomJson: false, description: "AR_FN_LNG_COLL_FINDITEMS_KNOWLEDGEBASEDOCUMENTLABEL_COLL_STR_STR_PRM_DSC_1", identifier: "propertyName", isArray: false, helpDisplayIdx: 1, repeatable: false, required: false, type: "str", mustBeLiteral: true }, { allowNotSet: true, allowCustomJson: false, description: "AR_FN_LNG_COLL_FINDITEMS_KNOWLEDGEBASEDOCUMENTLABEL_COLL_STR_STR_PRM_DSC_2", identifier: "propertyValue", isArray: false, helpDisplayIdx: 2, repeatable: false, required: false, type: "str", mustBeLiteral: true }], examples: [{ input: 'FindItems(Flow.KnowledgeBaseDocument.labels, "Product Label", "name")', output: "[0]" }, { input: 'FindItems(Flow.KnowledgeBaseDocument.labels, "Welcome Article", "name")', output: "AR_FN_LNG_COLL_FINDITEMS_KNOWLEDGEBASEDOCUMENTLABEL_COLL_STR_STR_EX_OUT_1" }] }], needsServerInfo: true }, findFirstItem: { identifier: "findFirstItem", description: "AR_FN_DSC_FINDFIRSTITEM", type: "function", name: "FindFirstItem", category: "list", overloads: [{ description: "AR_FN_LNG_FINDFIRSTITEM_KNOWLEDGEBASEDOCUMENTLABEL_COLL_STR_DSC", identifier: "Long_ONE findFirstItem(KnowledgeBaseDocumentLabel_COLL,String_ONE)", support: { version: "1.0", resolver: "None" }, supportedFlowTypes: { digitalbot: "digitalbot" }, needsServerInfo: true, returnValue: { description: "AR_FN_LNG_FINDFIRSTITEM_KNOWLEDGEBASEDOCUMENTLABEL_COLL_STR_RV", isArray: false, type: "int" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_LNG_FINDFIRSTITEM_KNOWLEDGEBASEDOCUMENTLABEL_COLL_STR_PRM_DSC_0", identifier: "knowledgeBaseDocumentLabelCollection", isArray: true, helpDisplayIdx: 0, repeatable: false, required: false, type: "cpx_knowledge_base_document_label" }, { allowNotSet: true, allowCustomJson: false, description: "AR_FN_LNG_FINDFIRSTITEM_KNOWLEDGEBASEDOCUMENTLABEL_COLL_STR_PRM_DSC_1", identifier: "labelName", isArray: false, helpDisplayIdx: 1, repeatable: false, required: false, type: "str" }], examples: [{ input: 'FindFirstItem(Flow.KnowledgeBaseDocument.labels, "Product Label")', output: "0" }, { input: 'FindFirstItem(Flow.KnowledgeBaseDocument.labels, "Welcome Article")', output: "AR_FN_LNG_FINDFIRSTITEM_KNOWLEDGEBASEDOCUMENTLABEL_COLL_STR_EX_OUT_1" }] }, { description: "AR_FN_LNG_FINDFIRSTITEM_KNOWLEDGEBASEDOCUMENT_COLL_STR_STR_DSC", identifier: "Long_ONE findFirstItem(KnowledgeBaseDocument_COLL,String_ONE,String_ONE)", support: { version: "1.0", resolver: "None" }, supportedFlowTypes: { digitalbot: "digitalbot" }, needsServerInfo: true, returnValue: { description: "AR_FN_LNG_FINDFIRSTITEM_KNOWLEDGEBASEDOCUMENT_COLL_STR_STR_RV", isArray: false, type: "int" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_LNG_FINDFIRSTITEM_KNOWLEDGEBASEDOCUMENT_COLL_STR_STR_PRM_DSC_0", identifier: "knowledgeBaseDocumentLabelCollection", isArray: true, helpDisplayIdx: 0, repeatable: false, required: false, type: "cpx_knowledge_base_document_label" }, { allowNotSet: true, allowCustomJson: false, description: "AR_FN_LNG_FINDFIRSTITEM_KNOWLEDGEBASEDOCUMENT_COLL_STR_STR_PRM_DSC_1", identifier: "propertyName", isArray: false, helpDisplayIdx: 1, repeatable: false, required: false, type: "str", mustBeLiteral: true }, { allowNotSet: true, allowCustomJson: false, description: "AR_FN_LNG_FINDFIRSTITEM_KNOWLEDGEBASEDOCUMENT_COLL_STR_STR_PRM_DSC_2", identifier: "propertyValue", isArray: false, helpDisplayIdx: 2, repeatable: false, required: false, type: "str", mustBeLiteral: true }], examples: [{ input: 'FindFirstItem(Flow.KnowledgeBaseDocument.labels, "Product Label", "name")', output: "0" }, { input: 'FindFirstItem(Flow.KnowledgeBaseDocument.labels, "Welcome Article", "name")', output: "AR_FN_LNG_FINDFIRSTITEM_KNOWLEDGEBASEDOCUMENT_COLL_STR_STR_EX_OUT_1" }] }], needsServerInfo: true }, findJsonArrayItem: { identifier: "findJsonArrayItem", description: "AR_FN_DSC_FINDJSONARRAYITEM", type: "function", name: "FindJsonArrayItem", category: "list", overloads: [{ description: "AR_FN_LNG_COLL_FINDJSONARRAYITEM_JSON_ANY_DSC", identifier: "Long_COLL findJsonArrayItem(JSON_ONE,Any_ONE)", support: { version: "1.0", resolver: "None" }, needsServerInfo: true, returnValue: { description: "AR_FN_LNG_COLL_FINDJSONARRAYITEM_JSON_ANY_RV", isArray: true, type: "int" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_FN_LNG_COLL_FINDJSONARRAYITEM_JSON_ANY_PRM_DSC_0", identifier: "srcJsonValue", isArray: false, helpDisplayIdx: 0, repeatable: false, required: true, type: "jsn" }, { allowNotSet: true, allowCustomJson: false, description: "AR_FN_LNG_COLL_FINDJSONARRAYITEM_JSON_ANY_PRM_DSC_1", identifier: "item", isArray: false, helpDisplayIdx: 1, repeatable: false, required: false, type: "any" }], examples: [{ input: 'FindJsonArrayItem(JsonParse("[0, 2, 3, 5, 8]"), 2)', output: "[1]" }, { input: 'FindJsonArrayItem(JsonParse("[0, { \\"a\\": true, \\"b\\": false }, 100, { \\"b\\": false, \\"a\\": true }]"), JsonParse("{ \\"b\\": false, \\"a\\": true }"))', output: "[1, 3]" }] }], needsServerInfo: true }, findJsonArrayItemFirst: { identifier: "findJsonArrayItemFirst", description: "AR_FN_DSC_FINDJSONARRAYITEMFIRST", type: "function", name: "FindJsonArrayItemFirst", category: "list", overloads: [{ description: "AR_FN_LNG_FINDJSONARRAYITEMFIRST_JSON_ANY_DSC", identifier: "Long_ONE findJsonArrayItemFirst(JSON_ONE,Any_ONE)", support: { version: "1.0", resolver: "None" }, needsServerInfo: true, returnValue: { description: "AR_FN_LNG_FINDJSONARRAYITEMFIRST_JSON_ANY_RV", isArray: false, type: "int" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_FN_LNG_FINDJSONARRAYITEMFIRST_JSON_ANY_PRM_DSC_0", identifier: "srcJsonValue", isArray: false, helpDisplayIdx: 0, repeatable: false, required: true, type: "any" }, { allowNotSet: true, allowCustomJson: false, description: "AR_FN_LNG_FINDJSONARRAYITEMFIRST_JSON_ANY_PRM_DSC_1", identifier: "item", isArray: false, helpDisplayIdx: 1, repeatable: false, required: false, type: "any" }], examples: [{ input: 'FindJsonArrayItemFirst(JsonParse("[0, 2, 2, 5, 5]"), 5)', output: "3" }, { input: 'FindJsonArrayItemFirst(JsonParse("[0, 2, 2, 5, 8]"), 1)', output: "-1" }, { input: 'FindJsonArrayItemFirst(JsonParse("[0, { \\"a\\": true, \\"b\\": false }, 100, { \\"b\\": false, \\"a\\": true }]"), JsonParse("{ \\"b\\": false, \\"a\\": true }"))', output: "1" }] }], needsServerInfo: true }, makeList: { identifier: "makeList", description: "AR_FN_DSC_MAKELIST", type: "function", name: "MakeList", category: "list", overloads: [{ description: "AR_FN_ANY_COLL_MAKELIST_ANY_MORE_DSC", identifier: "Any_COLL makeList(Any_ONE...)", support: { version: "1.0", resolver: "n-SameTypeRetColl" }, maxOperands: "getFromEnvLimitsCollectionItemsMax", returnValue: { description: "AR_FN_ANY_COLL_MAKELIST_ANY_MORE_RV", isArray: true, type: "any" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_ANY_COLL_MAKELIST_ANY_MORE_PRM_DSC_0", identifier: "item", isArray: false, helpDisplayIdx: 0, repeatable: true, required: false, type: "any" }], examples: [{ input: 'MakeList(MakeCurrency(5.00, "USD"), MakeCurrency(ToDecimal(NOT_SET), "USD"))', output: "AR_FN_ANY_COLL_MAKELIST_ANY_MORE_EX_OUT_0" }, { input: "MakeList(MakeDateTime(2009, 5, 5, 10, 30, 0), MakeDateTime(2005, 1, 1, 0, 0, 0))", output: "AR_FN_ANY_COLL_MAKELIST_ANY_MORE_EX_OUT_1" }, { input: "MakeList(100.5, 200.5)", output: "AR_FN_ANY_COLL_MAKELIST_ANY_MORE_EX_OUT_2" }, { input: "MakeList(MakeDuration(0, 1, 0, 0), MakeDuration(-10, 5, 30, 0))", output: "AR_FN_ANY_COLL_MAKELIST_ANY_MORE_EX_OUT_3" }, { input: "MakeList(100, 200)", output: "AR_FN_ANY_COLL_MAKELIST_ANY_MORE_EX_OUT_4" }, { input: 'MakeList("hello", "world")', output: "AR_FN_ANY_COLL_MAKELIST_ANY_MORE_EX_OUT_5" }, { input: "MakeList(true, false)", output: "AR_FN_ANY_COLL_MAKELIST_ANY_MORE_EX_OUT_6" }, { input: 'MakeList(ToUser("john.doe@company.com"), ToUser("mary.doe@company.com"))', output: "AR_FN_ANY_COLL_MAKELIST_ANY_MORE_EX_OUT_7", hidden: "true" }, { input: 'MakeList(ToSkill("Spanish"), ToSkill("German"))', output: "AR_FN_ANY_COLL_MAKELIST_ANY_MORE_EX_OUT_8", hidden: "true" }, { input: "MakeList(ToSkill(NOT_SET), ToSkill(NOT_SET))", output: "AR_FN_ANY_COLL_MAKELIST_ANY_MORE_EX_OUT_9", hidden: "true" }, { input: 'MakeList(MakeListPickerItem("Fries", NOT_SET, MakeImageFromUrl(NOT_SET)), MakeListPickerItem("Soup", NOT_SET, MakeImageFromUrl(NOT_SET)))', output: "AR_FN_ANY_COLL_MAKELIST_ANY_MORE_EX_OUT_10", featureConfigName: "botFlowsAppleListPicker" }, { input: 'MakeList(MakeListPickerSection("Sides", true, MakeList(MakeListPickerItem("Fries", NOT_SET, MakeImageFromUrl(NOT_SET)), MakeListPickerItem("Soup", NOT_SET, MakeImageFromUrl(NOT_SET)))))', output: "AR_FN_ANY_COLL_MAKELIST_ANY_MORE_EX_OUT_11", featureConfigName: "botFlowsAppleListPicker" }], examplesHaveFeatureToggleOrConfig: true }] }, makeEmptyList: { identifier: "makeEmptyList", description: "AR_FN_DSC_MAKEEMPTYLIST", type: "function", name: "MakeEmptyList", category: "list", overloads: [{ description: "AR_FN_ANY_COLL_MAKEEMPTYLIST_ANY_MORE_DSC", identifier: "Any_COLL makeEmptyList(Any_ONE...)", support: { version: "1.0", resolver: "EmptyList" }, returnValue: { description: "AR_FN_ANY_COLL_MAKEEMPTYLIST_ANY_MORE_RV", isArray: true, type: "any" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_ANY_COLL_MAKEEMPTYLIST_ANY_MORE_PRM_DSC_0", identifier: "item", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "any" }], examples: [{ input: "MakeEmptyList(ToCurrency(NOT_SET))", output: "AR_FN_ANY_COLL_MAKEEMPTYLIST_ANY_MORE_EX_OUT_0" }, { input: "MakeEmptyList(ToDateTime(NOT_SET))", output: "AR_FN_ANY_COLL_MAKEEMPTYLIST_ANY_MORE_EX_OUT_1" }, { input: "MakeEmptyList(ToDecimal(NOT_SET))", output: "AR_FN_ANY_COLL_MAKEEMPTYLIST_ANY_MORE_EX_OUT_2" }, { input: "MakeEmptyList(ToDuration(NOT_SET))", output: "AR_FN_ANY_COLL_MAKEEMPTYLIST_ANY_MORE_EX_OUT_3" }, { input: "MakeEmptyList(ToInt(NOT_SET))", output: "AR_FN_ANY_COLL_MAKEEMPTYLIST_ANY_MORE_EX_OUT_4" }, { input: "MakeEmptyList(ToString(NOT_SET))", output: "AR_FN_ANY_COLL_MAKEEMPTYLIST_ANY_MORE_EX_OUT_5" }, { input: "MakeEmptyList(ToBool(NOT_SET))", output: "AR_FN_ANY_COLL_MAKEEMPTYLIST_ANY_MORE_EX_OUT_6" }, { input: "MakeEmptyList(ToUser(NOT_SET))", output: "AR_FN_ANY_COLL_MAKEEMPTYLIST_ANY_MORE_EX_OUT_7" }, { input: "MakeEmptyList(ToSkill(NOT_SET))", output: "AR_FN_ANY_COLL_MAKEEMPTYLIST_ANY_MORE_EX_OUT_8" }] }] }, addItem: { identifier: "addItem", description: "AR_FN_DSC_ADDITEM", type: "function", name: "AddItem", category: "list", overloads: [{ description: "AR_FN_ANY_COLL_ADDITEM_ANY_COLL_ANY_DSC", identifier: "Any_COLL addItem(Any_COLL,Any_ONE)", support: { version: "1.0", resolver: "CollectionMods" }, addsToCollection: true, needsServerInfo: true, returnValue: { description: "AR_FN_ANY_COLL_ADDITEM_ANY_COLL_ANY_RV", isArray: true, type: "any" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_FN_ANY_COLL_ADDITEM_ANY_COLL_ANY_PRM_DSC_0", identifier: "srcCollection", isArray: true, helpDisplayIdx: 0, repeatable: false, required: true, type: "any" }, { allowNotSet: true, allowCustomJson: false, description: "AR_FN_ANY_COLL_ADDITEM_ANY_COLL_ANY_PRM_DSC_1", identifier: "valueToAdd", isArray: false, helpDisplayIdx: 1, repeatable: false, required: false, type: "any" }], examples: [{ input: 'AddItem(MakeEmptyList(ToString(NOT_SET)), "Hello")', output: '[ "Hello" ]' }, { input: "AddItem(MakeList(0, 1, 2), 3)", output: "[0, 1, 2, 3]" }] }], needsServerInfo: true }, addJsonArrayItem: { identifier: "addJsonArrayItem", description: "AR_FN_DSC_ADDJSONARRAYITEM", type: "function", name: "AddJsonArrayItem", category: "list", overloads: [{ description: "AR_FN_JSON_ADDJSONARRAYITEM_JSON_ANY_DSC", identifier: "JSON_ONE addJsonArrayItem(JSON_ONE,Any_ONE)", support: { version: "1.0", resolver: "None" }, needsServerInfo: true, returnValue: { description: "AR_FN_JSON_ADDJSONARRAYITEM_JSON_ANY_RV", isArray: false, type: "jsn" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_FN_JSON_ADDJSONARRAYITEM_JSON_ANY_PRM_DSC_0", identifier: "jsonArray", isArray: false, helpDisplayIdx: 0, repeatable: false, required: true, type: "jsn" }, { allowNotSet: true, allowCustomJson: false, description: "AR_FN_JSON_ADDJSONARRAYITEM_JSON_ANY_PRM_DSC_1", identifier: "valueToAdd", isArray: false, helpDisplayIdx: 1, repeatable: false, required: false, type: "any" }], examples: [{ input: 'AddJsonArrayItem(JsonParse("[ \\"a\\", 2, \\"c\\" ]"), "d")', output: "AR_FN_JSON_ADDJSONARRAYITEM_JSON_ANY_EX_OUT_0" }] }], needsServerInfo: true }, addItemAt: { identifier: "addItemAt", description: "AR_FN_DSC_ADDITEMAT", type: "function", name: "AddItemAt", category: "list", overloads: [{ description: "AR_FN_ANY_COLL_ADDITEMAT_ANY_COLL_LNG_ANY_DSC", identifier: "Any_COLL addItemAt(Any_COLL,Long_ONE,Any_ONE)", support: { version: "1.0", resolver: "CollectionMods" }, addsToCollection: true, needsServerInfo: true, returnValue: { description: "AR_FN_ANY_COLL_ADDITEMAT_ANY_COLL_LNG_ANY_RV", isArray: true, type: "any" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_FN_ANY_COLL_ADDITEMAT_ANY_COLL_LNG_ANY_PRM_DSC_0", identifier: "srcCollection", isArray: true, helpDisplayIdx: 0, repeatable: false, required: true, type: "any" }, { allowNotSet: false, allowCustomJson: false, description: "AR_FN_ANY_COLL_ADDITEMAT_ANY_COLL_LNG_ANY_PRM_DSC_1", identifier: "insertIndex", isArray: false, helpDisplayIdx: 1, min: "0", repeatable: false, required: true, type: "int" }, { allowNotSet: true, allowCustomJson: false, description: "AR_FN_ANY_COLL_ADDITEMAT_ANY_COLL_LNG_ANY_PRM_DSC_2", identifier: "valueToAdd", isArray: false, helpDisplayIdx: 2, repeatable: false, required: false, type: "any" }], examples: [{ input: 'AddItemAt(MakeList("Hello"), 1, "Goodbye")', output: '[ "Hello", "Goodbye" ]' }, { input: 'AddItemAt(MakeEmptyList(ToString(NOT_SET)), 0, "Hello")', output: '[ "Hello" ]' }, { input: 'AddItemAt(AddItemAt(MakeEmptyList(ToString(NOT_SET)), 0, "There"), 0, "Hello")', output: '[ "Hello", "There" ]' }, { input: "AddItemAt(MakeList(0, 1, 2), 0, 3)", output: "[3, 0, 1, 2]" }, { input: "AddItemAt(MakeList(0, 1, 2), 10, 3)", output: "[0, 1, 2, 3]" }] }], needsServerInfo: true }, addJsonArrayItemAt: { identifier: "addJsonArrayItemAt", description: "AR_FN_DSC_ADDJSONARRAYITEMAT", type: "function", name: "AddJsonArrayItemAt", category: "list", overloads: [{ description: "AR_FN_JSON_ADDJSONARRAYITEMAT_JSON_LNG_ANY_DSC", identifier: "JSON_ONE addJsonArrayItemAt(JSON_ONE,Long_ONE,Any_ONE)", support: { version: "1.0", resolver: "None" }, needsServerInfo: true, returnValue: { description: "AR_FN_JSON_ADDJSONARRAYITEMAT_JSON_LNG_ANY_RV", isArray: false, type: "jsn" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_FN_JSON_ADDJSONARRAYITEMAT_JSON_LNG_ANY_PRM_DSC_0", identifier: "jsonArray", isArray: false, helpDisplayIdx: 0, repeatable: false, required: true, type: "jsn" }, { allowNotSet: false, allowCustomJson: false, description: "AR_FN_JSON_ADDJSONARRAYITEMAT_JSON_LNG_ANY_PRM_DSC_1", identifier: "insertIndex", isArray: false, helpDisplayIdx: 1, min: "0", repeatable: false, required: true, type: "int" }, { allowNotSet: true, allowCustomJson: false, description: "AR_FN_JSON_ADDJSONARRAYITEMAT_JSON_LNG_ANY_PRM_DSC_2", identifier: "valueToAdd", isArray: false, helpDisplayIdx: 2, repeatable: false, required: false, type: "any" }], examples: [{ input: 'AddJsonArrayItemAt(JsonParse("[ 0, 1, 2 ]"), 3, "Hello")', output: "AR_FN_JSON_ADDJSONARRAYITEMAT_JSON_LNG_ANY_EX_OUT_0" }, { input: 'AddJsonArrayItemAt(JsonParse("[\\"Hello\\"]"), 0, "Goodbye")', output: "AR_FN_JSON_ADDJSONARRAYITEMAT_JSON_LNG_ANY_EX_OUT_1" }] }], needsServerInfo: true }, removeDups: { identifier: "removeDups", description: "AR_FN_DSC_REMOVEDUPS", type: "function", name: "RemoveDups", category: "list", overloads: [{ description: "AR_FN_ANY_COLL_REMOVEDUPS_ANY_COLL_DSC", identifier: "Any_COLL removeDups(Any_COLL)", support: { version: "1.0", resolver: "CollectionMods" }, needsServerInfo: true, returnValue: { description: "AR_FN_ANY_COLL_REMOVEDUPS_ANY_COLL_RV", isArray: true, type: "any" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_FN_ANY_COLL_REMOVEDUPS_ANY_COLL_PRM_DSC_0", identifier: "srcCollection", isArray: true, helpDisplayIdx: 0, repeatable: false, required: true, type: "any" }], examples: [{ input: 'RemoveDups(MakeList("Hello", "Hello"))', output: '[ "Hello" ]' }, { input: "RemoveDups(MakeList(true, true, false))", output: "[ true, false ]" }, { input: "RemoveDups(MakeList(4.5, NOT_SET, -3.1, NOT_SET))", output: "[4.5, NOT_SET, -3.1]" }, { input: "RemoveDups(MakeList(0, 1, 1, 2, 2, 1, NOT_SET, 2))", output: "[0, 1, 2, NOT_SET]" }] }, { description: "AR_FN_STR_COLL_REMOVEDUPS_STR_COLL_BLN_DSC", identifier: "String_COLL removeDups(String_COLL,Boolean_ONE)", support: { version: "1.0", resolver: "None" }, needsServerInfo: true, returnValue: { description: "AR_FN_STR_COLL_REMOVEDUPS_STR_COLL_BLN_RV", isArray: true, type: "str" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_FN_STR_COLL_REMOVEDUPS_STR_COLL_BLN_PRM_DSC_0", identifier: "srcCollection", isArray: true, helpDisplayIdx: 0, repeatable: false, required: true, type: "str" }, { allowNotSet: false, allowCustomJson: false, description: "AR_FN_STR_COLL_REMOVEDUPS_STR_COLL_BLN_PRM_DSC_1", identifier: "ignoreCase", isArray: false, helpDisplayIdx: 1, repeatable: false, required: true, type: "bln" }], examples: [{ input: 'RemoveDups(MakeList("Hello", "hello"), true)', output: '[ "Hello" ]' }, { input: 'RemoveDups(MakeList("Hello", "hello"), false)', output: '[ "Hello", "hello" ]' }] }], needsServerInfo: true }, removeJsonArrayDups: { identifier: "removeJsonArrayDups", description: "AR_FN_DSC_REMOVEJSONARRAYDUPS", type: "function", name: "RemoveJsonArrayDups", category: "list", overloads: [{ description: "AR_FN_JSON_REMOVEJSONARRAYDUPS_JSON_DSC", identifier: "JSON_ONE removeJsonArrayDups(JSON_ONE)", support: { version: "1.0", resolver: "None" }, needsServerInfo: true, returnValue: { description: "AR_FN_JSON_REMOVEJSONARRAYDUPS_JSON_RV", isArray: false, type: "jsn" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_FN_JSON_REMOVEJSONARRAYDUPS_JSON_PRM_DSC_0", identifier: "jsonArray", isArray: false, helpDisplayIdx: 0, repeatable: false, required: true, type: "jsn" }], examples: [{ input: 'RemoveJsonArrayDups(JsonParse("[ 100, 150, 100, false, false, { \\"a\\": 5 } ]"))', output: "AR_FN_JSON_REMOVEJSONARRAYDUPS_JSON_EX_OUT_0" }] }], needsServerInfo: true }, removeItem: { identifier: "removeItem", description: "AR_FN_DSC_REMOVEITEM", type: "function", name: "RemoveItem", category: "list", overloads: [{ description: "AR_FN_ANY_COLL_REMOVEITEM_ANY_COLL_ANY_DSC", identifier: "Any_COLL removeItem(Any_COLL,Any_ONE)", support: { version: "1.0", resolver: "CollectionMods" }, needsServerInfo: true, returnValue: { description: "AR_FN_ANY_COLL_REMOVEITEM_ANY_COLL_ANY_RV", isArray: true, type: "any" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_FN_ANY_COLL_REMOVEITEM_ANY_COLL_ANY_PRM_DSC_0", identifier: "srcCollection", isArray: true, helpDisplayIdx: 0, repeatable: false, required: true, type: "any" }, { allowNotSet: true, allowCustomJson: false, description: "AR_FN_ANY_COLL_REMOVEITEM_ANY_COLL_ANY_PRM_DSC_1", identifier: "valueToRemove", isArray: false, helpDisplayIdx: 1, repeatable: false, required: false, type: "any" }], examples: [{ input: 'RemoveItem(MakeList("Hello", "There"), "Hello")', output: '[ "There" ]' }, { input: "RemoveItem(MakeList(true, true, false), true)", output: "[ false ]" }, { input: "RemoveItem(MakeList(4.5, NOT_SET, -3.1, NOT_SET), NOT_SET)", output: "[4.5, -3.1]" }, { input: "RemoveItem(MakeList(0, 1, 1, 2, 2), 1)", output: "[0, 2, 2]" }, { input: "RemoveItem(MakeEmptyList(ToInt(NOT_SET)), 1)", output: "AR_FN_ANY_COLL_REMOVEITEM_ANY_COLL_ANY_EX_OUT_4" }] }, { description: "AR_FN_STR_COLL_REMOVEITEM_STR_COLL_STR_BLN_DSC", identifier: "String_COLL removeItem(String_COLL,String_ONE,Boolean_ONE)", support: { version: "1.0", resolver: "CollectionMods" }, needsServerInfo: true, returnValue: { description: "AR_FN_STR_COLL_REMOVEITEM_STR_COLL_STR_BLN_RV", isArray: true, type: "str" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_FN_STR_COLL_REMOVEITEM_STR_COLL_STR_BLN_PRM_DSC_0", identifier: "srcCollection", isArray: true, helpDisplayIdx: 0, repeatable: false, required: true, type: "str" }, { allowNotSet: true, allowCustomJson: false, description: "AR_FN_STR_COLL_REMOVEITEM_STR_COLL_STR_BLN_PRM_DSC_1", identifier: "valueToRemove", isArray: false, helpDisplayIdx: 1, repeatable: false, required: false, type: "str" }, { allowNotSet: false, allowCustomJson: false, description: "AR_FN_STR_COLL_REMOVEITEM_STR_COLL_STR_BLN_PRM_DSC_2", identifier: "ignoreCase", isArray: false, helpDisplayIdx: 2, repeatable: false, required: true, type: "bln" }], examples: [{ input: 'RemoveItem(MakeList("hello", "There"), "Hello", true)', output: '[ "There" ]' }, { input: 'RemoveItem(MakeList("Hello", "There"), "hello", false)', output: '[ "Hello", "There" ]' }] }], needsServerInfo: true }, removeJsonArrayItem: { identifier: "removeJsonArrayItem", description: "AR_FN_DSC_REMOVEJSONARRAYITEM", type: "function", name: "RemoveJsonArrayItem", category: "list", overloads: [{ description: "AR_FN_JSON_REMOVEJSONARRAYITEM_JSON_ANY_DSC", identifier: "JSON_ONE removeJsonArrayItem(JSON_ONE,Any_ONE)", support: { version: "1.0", resolver: "None" }, needsServerInfo: true, returnValue: { description: "AR_FN_JSON_REMOVEJSONARRAYITEM_JSON_ANY_RV", isArray: false, type: "jsn" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_FN_JSON_REMOVEJSONARRAYITEM_JSON_ANY_PRM_DSC_0", identifier: "jsonArray", isArray: false, helpDisplayIdx: 0, repeatable: false, required: true, type: "jsn" }, { allowNotSet: true, allowCustomJson: false, description: "AR_FN_JSON_REMOVEJSONARRAYITEM_JSON_ANY_PRM_DSC_1", identifier: "valueToRemove", isArray: false, helpDisplayIdx: 1, repeatable: false, required: false, type: "any" }], examples: [{ input: 'RemoveJsonArrayItem(JsonParse("[ \\"Hello\\", \\"There\\" ]"), "Hello")', output: "AR_FN_JSON_REMOVEJSONARRAYITEM_JSON_ANY_EX_OUT_0" }, { input: 'RemoveJsonArrayItem(JsonParse("[ 0, 1, 2, 3 ]"), 1)', output: "A JSON value that contains an array of [ 0, 2, 3 ]." }] }], needsServerInfo: true }, removeItemAt: { identifier: "removeItemAt", description: "AR_FN_DSC_REMOVEITEMAT", type: "function", name: "RemoveItemAt", category: "list", overloads: [{ description: "AR_FN_ANY_COLL_REMOVEITEMAT_ANY_COLL_LNG_DSC", identifier: "Any_COLL removeItemAt(Any_COLL,Long_ONE)", support: { version: "1.0", resolver: "CollectionMods" }, needsServerInfo: true, returnValue: { description: "AR_FN_ANY_COLL_REMOVEITEMAT_ANY_COLL_LNG_RV", isArray: true, type: "any" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_FN_ANY_COLL_REMOVEITEMAT_ANY_COLL_LNG_PRM_DSC_0", identifier: "srcCollection", isArray: true, helpDisplayIdx: 0, repeatable: false, required: true, type: "any" }, { allowNotSet: false, allowCustomJson: false, description: "AR_FN_ANY_COLL_REMOVEITEMAT_ANY_COLL_LNG_PRM_DSC_1", identifier: "removeIndex", isArray: false, helpDisplayIdx: 1, min: "0", repeatable: false, required: true, type: "int" }], examples: [{ input: 'RemoveItemAt(MakeList("Hello"), 0)', output: "AR_FN_ANY_COLL_REMOVEITEMAT_ANY_COLL_LNG_EX_OUT_0" }, { input: 'RemoveItemAt(MakeList("Hello", "Goodbye"), 0)', output: '[ "Goodbye" ]' }, { input: "RemoveItemAt(MakeList(2, 4, 5, 6, 8), 2)", output: "[2, 4, 6, 8]" }] }], needsServerInfo: true }, removeJsonArrayItemAt: { identifier: "removeJsonArrayItemAt", description: "AR_FN_DSC_REMOVEJSONARRAYITEMAT", type: "function", name: "RemoveJsonArrayItemAt", category: "list", overloads: [{ description: "AR_FN_JSON_REMOVEJSONARRAYITEMAT_JSON_LNG_DSC", identifier: "JSON_ONE removeJsonArrayItemAt(JSON_ONE,Long_ONE)", support: { version: "1.0", resolver: "None" }, needsServerInfo: true, returnValue: { description: "AR_FN_JSON_REMOVEJSONARRAYITEMAT_JSON_LNG_RV", isArray: false, type: "jsn" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_FN_JSON_REMOVEJSONARRAYITEMAT_JSON_LNG_PRM_DSC_0", identifier: "jsonArray", isArray: false, helpDisplayIdx: 0, repeatable: false, required: true, type: "jsn" }, { allowNotSet: false, allowCustomJson: false, description: "AR_FN_JSON_REMOVEJSONARRAYITEMAT_JSON_LNG_PRM_DSC_1", identifier: "removeIndex", isArray: false, helpDisplayIdx: 1, min: "0", repeatable: false, required: true, type: "int" }], examples: [{ input: 'RemoveJsonArrayItemAt(JsonParse("[ 100, false, { \\"a\\": 5 } ]"), 2)', output: "AR_FN_JSON_REMOVEJSONARRAYITEMAT_JSON_LNG_EX_OUT_0" }, { input: 'RemoveJsonArrayItemAt(RemoveJsonArrayItemAt(JsonParse("[ 100, false, { \\"a\\": 5 } ]"), 2), 0)', output: "AR_FN_JSON_REMOVEJSONARRAYITEMAT_JSON_LNG_EX_OUT_1" }] }], needsServerInfo: true }, replaceItem: { identifier: "replaceItem", description: "AR_FN_DSC_REPLACEITEM", type: "function", name: "ReplaceItem", category: "list", overloads: [{ description: "AR_FN_ANY_COLL_REPLACEITEM_ANY_COLL_ANY_ANY_DSC", identifier: "Any_COLL replaceItem(Any_COLL,Any_ONE,Any_ONE)", support: { version: "1.0", resolver: "CollectionMods" }, needsServerInfo: true, returnValue: { description: "AR_FN_ANY_COLL_REPLACEITEM_ANY_COLL_ANY_ANY_RV", isArray: true, type: "any" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_FN_ANY_COLL_REPLACEITEM_ANY_COLL_ANY_ANY_PRM_DSC_0", identifier: "srcCollection", isArray: true, helpDisplayIdx: 0, repeatable: false, required: true, type: "any" }, { allowNotSet: true, allowCustomJson: false, description: "AR_FN_ANY_COLL_REPLACEITEM_ANY_COLL_ANY_ANY_PRM_DSC_1", identifier: "valueToReplace", isArray: false, helpDisplayIdx: 1, repeatable: false, required: false, type: "any" }, { allowNotSet: true, allowCustomJson: false, description: "AR_FN_ANY_COLL_REPLACEITEM_ANY_COLL_ANY_ANY_PRM_DSC_2", identifier: "newValue", isArray: false, helpDisplayIdx: 2, repeatable: false, required: false, type: "any" }], examples: [{ input: 'ReplaceItem(MakeList("Hello"), "Hello", "Goodbye")', output: '[ "Goodbye" ]' }, { input: 'ReplaceItem(MakeList("Hello", "Hello"), "Hello", "Goodbye")', output: '["Goodbye", "Goodbye"]' }, { input: 'ReplaceItem(MakeList("Hello", NOT_SET), NOT_SET, "Goodbye")', output: '["Hello", "Goodbye"]' }, { input: "ReplaceItem(MakeList(0, 2, 4, 5, 8), 5, 6)", output: "[0, 2, 4, 6, 8]" }, { input: "ReplaceItem(MakeList(0, 2, 4, NOT_SET, 8), NOT_SET, 6)", output: "[0, 2, 4, 6, 8]" }] }, { description: "AR_FN_STR_COLL_REPLACEITEM_STR_COLL_STR_STR_BLN_DSC", identifier: "String_COLL replaceItem(String_COLL,String_ONE,String_ONE,Boolean_ONE)", support: { version: "1.0", resolver: "CollectionMods" }, needsServerInfo: true, returnValue: { description: "AR_FN_STR_COLL_REPLACEITEM_STR_COLL_STR_STR_BLN_RV", isArray: true, type: "str" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_FN_STR_COLL_REPLACEITEM_STR_COLL_STR_STR_BLN_PRM_DSC_0", identifier: "srcCollection", isArray: true, helpDisplayIdx: 0, repeatable: false, required: true, type: "str" }, { allowNotSet: true, allowCustomJson: false, description: "AR_FN_STR_COLL_REPLACEITEM_STR_COLL_STR_STR_BLN_PRM_DSC_1", identifier: "valueToReplace", isArray: false, helpDisplayIdx: 1, repeatable: false, required: false, type: "str" }, { allowNotSet: true, allowCustomJson: false, description: "AR_FN_STR_COLL_REPLACEITEM_STR_COLL_STR_STR_BLN_PRM_DSC_2", identifier: "newValue", isArray: false, helpDisplayIdx: 2, repeatable: false, required: false, type: "str" }, { allowNotSet: false, allowCustomJson: false, description: "AR_FN_STR_COLL_REPLACEITEM_STR_COLL_STR_STR_BLN_PRM_DSC_3", identifier: "ignoreCase", isArray: false, helpDisplayIdx: 3, repeatable: false, required: true, type: "bln" }], examples: [{ input: 'ReplaceItem(MakeList("hello"), "Hello", "Goodbye", true)', output: '[ "Goodbye" ]' }, { input: 'ReplaceItem(MakeList("hello"), "Hello", "Goodbye", false)', output: '[ "hello" ]' }, { input: 'ReplaceItem(MakeList("hello", "HeLLo"), "Hello", "Goodbye", true)', output: '["Goodbye", "Goodbye"]' }, { input: 'ReplaceItem(MakeList("Hello", NOT_SET), NOT_SET, "Goodbye", true)', output: '["Hello", "Goodbye"]' }] }], needsServerInfo: true }, replaceJsonArrayItem: { identifier: "replaceJsonArrayItem", description: "AR_FN_DSC_REPLACEJSONARRAYITEM", type: "function", name: "ReplaceJsonArrayItem", category: "list", overloads: [{ description: "AR_FN_JSON_REPLACEJSONARRAYITEM_JSON_ANY_ANY_DSC", identifier: "JSON_ONE replaceJsonArrayItem(JSON_ONE,Any_ONE,Any_ONE)", support: { version: "1.0", resolver: "None" }, needsServerInfo: true, returnValue: { description: "AR_FN_JSON_REPLACEJSONARRAYITEM_JSON_ANY_ANY_RV", isArray: false, type: "jsn" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_FN_JSON_REPLACEJSONARRAYITEM_JSON_ANY_ANY_PRM_DSC_0", identifier: "srcJsonValue", isArray: false, helpDisplayIdx: 0, repeatable: false, required: true, type: "jsn" }, { allowNotSet: true, allowCustomJson: false, description: "AR_FN_JSON_REPLACEJSONARRAYITEM_JSON_ANY_ANY_PRM_DSC_1", identifier: "valueToReplace", isArray: false, helpDisplayIdx: 1, repeatable: false, required: false, type: "any" }, { allowNotSet: true, allowCustomJson: false, description: "AR_FN_JSON_REPLACEJSONARRAYITEM_JSON_ANY_ANY_PRM_DSC_2", identifier: "newValue", isArray: false, helpDisplayIdx: 2, repeatable: false, required: false, type: "any" }], examples: [{ input: 'ReplaceJsonArrayItem(ToJson(MakeList("Hello")), "Hello", "Goodbye")', output: "AR_FN_JSON_REPLACEJSONARRAYITEM_JSON_ANY_ANY_EX_OUT_0" }, { input: 'ReplaceJsonArrayItem(JsonParse("[0, 2, 4, 5, 8]"), 5, 6)', output: "AR_FN_JSON_REPLACEJSONARRAYITEM_JSON_ANY_ANY_EX_OUT_1" }, { input: 'ReplaceJsonArrayItem(JsonParse("[0, { \\"a\\": true, \\"b\\": false }, 100]"), JsonParse("{ \\"b\\": false, \\"a\\": true }"), ToString(NOT_SET))', output: "AR_FN_JSON_REPLACEJSONARRAYITEM_JSON_ANY_ANY_EX_OUT_2" }] }], needsServerInfo: true }, replaceItemAt: { identifier: "replaceItemAt", description: "AR_FN_DSC_REPLACEITEMAT", type: "function", name: "ReplaceItemAt", category: "list", overloads: [{ description: "AR_FN_ANY_COLL_REPLACEITEMAT_ANY_COLL_LNG_ANY_DSC", identifier: "Any_COLL replaceItemAt(Any_COLL,Long_ONE,Any_ONE)", support: { version: "1.0", resolver: "CollectionMods" }, needsServerInfo: true, returnValue: { description: "AR_FN_ANY_COLL_REPLACEITEMAT_ANY_COLL_LNG_ANY_RV", isArray: true, type: "any" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_FN_ANY_COLL_REPLACEITEMAT_ANY_COLL_LNG_ANY_PRM_DSC_0", identifier: "srcCollection", isArray: true, helpDisplayIdx: 0, repeatable: false, required: true, type: "any" }, { allowNotSet: false, allowCustomJson: false, description: "AR_FN_ANY_COLL_REPLACEITEMAT_ANY_COLL_LNG_ANY_PRM_DSC_1", identifier: "replaceIndex", isArray: false, helpDisplayIdx: 1, min: "0", repeatable: false, required: true, type: "int" }, { allowNotSet: true, allowCustomJson: false, description: "AR_FN_ANY_COLL_REPLACEITEMAT_ANY_COLL_LNG_ANY_PRM_DSC_2", identifier: "newValue", isArray: false, helpDisplayIdx: 2, repeatable: false, required: false, type: "any" }], examples: [{ input: 'ReplaceItemAt(MakeList("Hello"), 0, "Goodbye")', output: '[ "Goodbye" ]' }, { input: 'ReplaceItemAt(MakeList("Hello", "Hello"), 1, "Goodbye")', output: '["Hello", "Goodbye"]' }, { input: "ReplaceItemAt(MakeList(0, 2, 4, 5, 8), 2, 6)", output: "[0, 2, 6, 5, 8]" }] }], needsServerInfo: true }, replaceJsonArrayItemAt: { identifier: "replaceJsonArrayItemAt", description: "AR_FN_DSC_REPLACEJSONARRAYITEMAT", type: "function", name: "ReplaceJsonArrayItemAt", category: "list", overloads: [{ description: "AR_FN_JSON_REPLACEJSONARRAYITEMAT_JSON_LNG_ANY_DSC", identifier: "JSON_ONE replaceJsonArrayItemAt(JSON_ONE,Long_ONE,Any_ONE)", support: { version: "1.0", resolver: "None" }, needsServerInfo: true, returnValue: { description: "AR_FN_JSON_REPLACEJSONARRAYITEMAT_JSON_LNG_ANY_RV", isArray: false, type: "jsn" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_FN_JSON_REPLACEJSONARRAYITEMAT_JSON_LNG_ANY_PRM_DSC_0", identifier: "srcJsonValue", isArray: false, helpDisplayIdx: 0, repeatable: false, required: true, type: "jsn" }, { allowNotSet: false, allowCustomJson: false, description: "AR_FN_JSON_REPLACEJSONARRAYITEMAT_JSON_LNG_ANY_PRM_DSC_1", identifier: "replaceIndex", isArray: false, helpDisplayIdx: 1, min: "0", repeatable: false, required: true, type: "int" }, { allowNotSet: true, allowCustomJson: false, description: "AR_FN_JSON_REPLACEJSONARRAYITEMAT_JSON_LNG_ANY_PRM_DSC_2", identifier: "newValue", isArray: false, helpDisplayIdx: 2, repeatable: false, required: false, type: "any" }], examples: [{ input: 'ReplaceJsonArrayItemAt(ToJson(MakeList("Hello")), 0, "Goodbye")', output: "AR_FN_JSON_REPLACEJSONARRAYITEMAT_JSON_LNG_ANY_EX_OUT_0" }, { input: 'ReplaceJsonArrayItemAt(JsonParse("[0, 2, 4, 5, 8]"), 2, false)', output: "AR_FN_JSON_REPLACEJSONARRAYITEMAT_JSON_LNG_ANY_EX_OUT_1" }, { input: 'ReplaceJsonArrayItemAt(JsonParse("[0, { \\"a\\": true, \\"b\\": false }, 100]"), 1, ToString(NOT_SET))', output: "AR_FN_JSON_REPLACEJSONARRAYITEMAT_JSON_LNG_ANY_EX_OUT_2" }] }], needsServerInfo: true }, replaceItemFirst: { identifier: "replaceItemFirst", description: "AR_FN_DSC_REPLACEITEMFIRST", type: "function", name: "ReplaceItemFirst", category: "list", overloads: [{ description: "AR_FN_ANY_COLL_REPLACEITEMFIRST_ANY_COLL_ANY_ANY_DSC", identifier: "Any_COLL replaceItemFirst(Any_COLL,Any_ONE,Any_ONE)", support: { version: "1.0", resolver: "CollectionMods" }, needsServerInfo: true, returnValue: { description: "AR_FN_ANY_COLL_REPLACEITEMFIRST_ANY_COLL_ANY_ANY_RV", isArray: true, type: "any" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_FN_ANY_COLL_REPLACEITEMFIRST_ANY_COLL_ANY_ANY_PRM_DSC_0", identifier: "srcCollection", isArray: true, helpDisplayIdx: 0, repeatable: false, required: true, type: "any" }, { allowNotSet: true, allowCustomJson: false, description: "AR_FN_ANY_COLL_REPLACEITEMFIRST_ANY_COLL_ANY_ANY_PRM_DSC_1", identifier: "valueToReplace", isArray: false, helpDisplayIdx: 1, repeatable: false, required: false, type: "any" }, { allowNotSet: true, allowCustomJson: false, description: "AR_FN_ANY_COLL_REPLACEITEMFIRST_ANY_COLL_ANY_ANY_PRM_DSC_2", identifier: "newValue", isArray: false, helpDisplayIdx: 2, repeatable: false, required: false, type: "any" }], examples: [{ input: 'ReplaceItemFirst(MakeList("Hello"), "Hello", "Goodbye")', output: '[ "Goodbye" ]' }, { input: 'ReplaceItemFirst(MakeList("Goodbye", "Goodbye"), "Goodbye", "Hello")', output: '[ "Hello", "Goodbye" ]' }, { input: "ReplaceItemFirst(MakeList(0, 2, 6, 6, 8), 6, 4)", output: "[0, 2, 4, 6, 8]" }, { input: "ReplaceItemFirst(MakeList(0, 2, NOT_SET, 6, 8), NOT_SET, 4)", output: "[0, 2, 4, 6, 8]" }] }, { description: "AR_FN_STR_COLL_REPLACEITEMFIRST_STR_COLL_STR_STR_BLN_DSC", identifier: "String_COLL replaceItemFirst(String_COLL,String_ONE,String_ONE,Boolean_ONE)", support: { version: "1.0", resolver: "CollectionMods" }, needsServerInfo: true, returnValue: { description: "AR_FN_STR_COLL_REPLACEITEMFIRST_STR_COLL_STR_STR_BLN_RV", isArray: true, type: "any" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_FN_STR_COLL_REPLACEITEMFIRST_STR_COLL_STR_STR_BLN_PRM_DSC_0", identifier: "srcCollection", isArray: true, helpDisplayIdx: 0, repeatable: false, required: true, type: "str" }, { allowNotSet: true, allowCustomJson: false, description: "AR_FN_STR_COLL_REPLACEITEMFIRST_STR_COLL_STR_STR_BLN_PRM_DSC_1", identifier: "valueToReplace", isArray: false, helpDisplayIdx: 1, repeatable: false, required: false, type: "str" }, { allowNotSet: true, allowCustomJson: false, description: "AR_FN_STR_COLL_REPLACEITEMFIRST_STR_COLL_STR_STR_BLN_PRM_DSC_2", identifier: "newValue", isArray: false, helpDisplayIdx: 2, repeatable: false, required: false, type: "str" }, { allowNotSet: false, allowCustomJson: false, description: "AR_FN_STR_COLL_REPLACEITEMFIRST_STR_COLL_STR_STR_BLN_PRM_DSC_3", identifier: "ignoreCase", isArray: false, helpDisplayIdx: 3, repeatable: false, required: true, type: "bln" }], examples: [{ input: 'ReplaceItemFirst(MakeList("hello"), "Hello", "Goodbye", true)', output: '[ "Goodbye" ]' }, { input: 'ReplaceItemFirst(MakeList("hello"), "Hello", "Goodbye", false)', output: '[ "hello" ]' }, { input: 'ReplaceItemFirst(MakeList("goodbye", "Goodbye"), "Goodbye", "Hello", true)', output: '[ "Hello", "Goodbye" ]' }] }], needsServerInfo: true }, replaceJsonArrayItemFirst: { identifier: "replaceJsonArrayItemFirst", description: "AR_FN_DSC_REPLACEJSONARRAYITEMFIRST", type: "function", name: "ReplaceJsonArrayItemFirst", category: "list", overloads: [{ description: "AR_FN_JSON_REPLACEJSONARRAYITEMFIRST_JSON_ANY_ANY_DSC", identifier: "JSON_ONE replaceJsonArrayItemFirst(JSON_ONE,Any_ONE,Any_ONE)", support: { version: "1.0", resolver: "None" }, needsServerInfo: true, returnValue: { description: "AR_FN_JSON_REPLACEJSONARRAYITEMFIRST_JSON_ANY_ANY_RV", isArray: false, type: "jsn" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_FN_JSON_REPLACEJSONARRAYITEMFIRST_JSON_ANY_ANY_PRM_DSC_0", identifier: "srcJsonValue", isArray: false, helpDisplayIdx: 0, repeatable: false, required: true, type: "jsn" }, { allowNotSet: true, allowCustomJson: false, description: "AR_FN_JSON_REPLACEJSONARRAYITEMFIRST_JSON_ANY_ANY_PRM_DSC_1", identifier: "valueToReplace", isArray: false, helpDisplayIdx: 1, repeatable: false, required: false, type: "any" }, { allowNotSet: true, allowCustomJson: false, description: "AR_FN_JSON_REPLACEJSONARRAYITEMFIRST_JSON_ANY_ANY_PRM_DSC_2", identifier: "newValue", isArray: false, helpDisplayIdx: 2, repeatable: false, required: false, type: "any" }], examples: [{ input: 'ReplaceJsonArrayItemFirst(ToJson(MakeList("Hello")), "Hello", "Goodbye")', output: "AR_FN_JSON_REPLACEJSONARRAYITEMFIRST_JSON_ANY_ANY_EX_OUT_0" }, { input: 'ReplaceJsonArrayItemFirst(JsonParse("[0, 2, 4, 5, 8, 5, 4, false]"), 5, 6)', output: "AR_FN_JSON_REPLACEJSONARRAYITEMFIRST_JSON_ANY_ANY_EX_OUT_1" }, { input: 'ReplaceJsonArrayItemFirst(JsonParse("[0, { \\"a\\": true, \\"b\\": false }, { \\"a\\": true, \\"b\\": false }, 100]"), JsonParse("{ \\"b\\": false, \\"a\\": true }"), ToString(NOT_SET))', output: "AR_FN_JSON_REPLACEJSONARRAYITEMFIRST_JSON_ANY_ANY_EX_OUT_2" }] }], needsServerInfo: true }, toBool: { identifier: "toBool", description: "AR_FN_DSC_TOBOOL", type: "function", name: "ToBool", category: "cast", overloads: [{ description: "AR_FN_BLN_TOBOOL_DEC_DSC", identifier: "Boolean_ONE toBool(Decimal_ONE)", support: { version: "1.0", resolver: "None" }, returnValue: { description: "AR_FN_BLN_TOBOOL_DEC_RV", isArray: false, type: "bln" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_BLN_TOBOOL_DEC_PRM_DSC_0", identifier: "valueToConvert", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "dec" }], examples: [{ input: "ToBool(1.5)", output: "true" }, { input: "ToBool(-31.5)", output: "true" }, { input: "ToBool(0.0)", output: "false" }, { input: "ToBool(ToDecimal(NOT_SET))", output: "AR_FN_BLN_TOBOOL_DEC_EX_OUT_3" }] }, { description: "AR_FN_BLN_TOBOOL_STR_DSC", identifier: "Boolean_ONE toBool(String_ONE)", support: { version: "1.0", resolver: "None" }, returnValue: { description: "AR_FN_BLN_TOBOOL_STR_RV", isArray: false, type: "bln" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_BLN_TOBOOL_STR_PRM_DSC_0", identifier: "valueToConvert", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "str" }], examples: [{ input: 'ToBool("True")', output: "true" }, { input: 'ToBool("TRUE")', output: "true" }, { input: 'ToBool("true")', output: "true" }, { input: 'ToBool("T")', output: "true" }, { input: 'ToBool("1")', output: "true" }, { input: 'ToBool("False")', output: "false" }, { input: 'ToBool("false")', output: "false" }, { input: 'ToBool("F")', output: "false" }, { input: 'ToBool("0")', output: "false" }, { input: "ToBool(ToString(NOT_SET))", output: "AR_FN_BLN_TOBOOL_STR_EX_OUT_9" }] }, { description: "AR_FN_BLN_TOBOOL_STR_BLN_DSC", identifier: "Boolean_ONE toBool(String_ONE,Boolean_ONE)", support: { version: "1.0", resolver: "None" }, needsServerInfo: true, returnValue: { description: "AR_FN_BLN_TOBOOL_STR_BLN_RV", isArray: false, type: "bln" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_BLN_TOBOOL_STR_BLN_PRM_DSC_0", identifier: "valueToConvert", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "str" }, { allowNotSet: true, allowCustomJson: false, description: "AR_FN_BLN_TOBOOL_STR_BLN_PRM_DSC_1", identifier: "default", isArray: false, helpDisplayIdx: 1, repeatable: false, required: false, type: "bln" }], examples: [{ input: 'ToBool("True", false)', output: "true" }, { input: 'ToBool("FALSEE", true)', output: "true" }, { input: 'ToBool("TrueTrue", false)', output: "false" }, { input: 'ToBool("0", true)', output: "false" }] }, { description: "AR_FN_BLN_TOBOOL_LNG_DSC", identifier: "Boolean_ONE toBool(Long_ONE)", support: { version: "1.0", resolver: "None" }, returnValue: { description: "AR_FN_BLN_TOBOOL_LNG_RV", isArray: false, type: "bln" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_BLN_TOBOOL_LNG_PRM_DSC_0", identifier: "valueToConvert", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "int" }], examples: [{ input: "ToBool(1)", output: "true" }, { input: "ToBool(-10)", output: "true" }, { input: "ToBool(0)", output: "false" }, { input: "ToBool(ToInt(NOT_SET))", output: "AR_FN_BLN_TOBOOL_LNG_EX_OUT_3" }] }, { description: "AR_FN_BLN_TOBOOL_NTS_DSC", identifier: "Boolean_ONE toBool(Null_ONE)", support: { version: "1.0", resolver: "NotSetToRetType" }, returnValue: { description: "AR_FN_BLN_TOBOOL_NTS_RV", isArray: false, type: "bln" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_BLN_TOBOOL_NTS_PRM_DSC_0", identifier: "valueToConvert", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "nts" }], examples: [{ input: "ToBool(NOT_SET)", output: "AR_FN_BLN_TOBOOL_NTS_EX_OUT_0" }] }, { description: "AR_FN_BLN_TOBOOL_BLN_DSC", identifier: "Boolean_ONE toBool(Boolean_ONE)", support: { version: "1.0", resolver: "None" }, returnValue: { description: "AR_FN_BLN_TOBOOL_BLN_RV", isArray: false, type: "bln" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_FN_BLN_TOBOOL_BLN_PRM_DSC_0", identifier: "valueToReturn", isArray: false, helpDisplayIdx: 0, repeatable: false, required: true, type: "bln" }], examples: [{ input: "ToBool(true)", output: "true" }] }, { description: "AR_FN_BLN_TOBOOL_JSON_DSC", identifier: "Boolean_ONE toBool(JSON_ONE)", support: { version: "1.0", resolver: "None" }, needsServerInfo: true, returnValue: { description: "AR_FN_BLN_TOBOOL_JSON_RV", isArray: false, type: "bln" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_BLN_TOBOOL_JSON_PRM_DSC_0", identifier: "jsonValue", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "jsn" }], examples: [{ input: 'ToBool(JsonParse("true"))', output: "true" }, { input: 'ToBool(JsonParse("false"))', output: "false" }, { input: 'ToBool(JsonParse("\\"False\\""))', output: "false" }, { input: 'ToBool(JsonParse("4.25"))', output: "true" }, { input: 'ToBool(JsonParse("null"))', output: "AR_FN_BLN_TOBOOL_JSON_EX_OUT_4" }, { input: "ToBool(ToJson(NOT_SET))", output: "AR_FN_BLN_TOBOOL_JSON_EX_OUT_5" }] }, { description: "AR_FN_BLN_TOBOOL_JSON_BLN_DSC", identifier: "Boolean_ONE toBool(JSON_ONE,Boolean_ONE)", support: { version: "1.0", resolver: "None" }, needsServerInfo: true, returnValue: { description: "AR_FN_BLN_TOBOOL_JSON_BLN_RV", isArray: false, type: "bln" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_BLN_TOBOOL_JSON_BLN_PRM_DSC_0", identifier: "jsonValue", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "jsn" }, { allowNotSet: true, allowCustomJson: false, description: "AR_FN_BLN_TOBOOL_JSON_BLN_PRM_DSC_1", identifier: "default", isArray: false, helpDisplayIdx: 1, repeatable: false, required: false, type: "bln" }], examples: [{ input: 'ToBool(JsonParse("true"), false)', output: "true" }, { input: 'ToBool(JsonParse("\\"apple\\""), true)', output: "true" }, { input: 'ToBool(JsonParse("[1,2]"), false)', output: "false" }, { input: 'ToBool(JsonParse("null"), true)', output: "A NOT_SET Boolean." }] }], needsServerInfo: true }, toDigitalAudio: { identifier: "toDigitalAudio", description: "AR_FN_DSC_TODIGITALAUDIO", type: "function", name: "ToDigitalAudio", category: "cast", overloads: [{ description: "AR_FN_DIGITALAUDIO_TODIGITALAUDIO_DIGITALAUDIO_DSC", identifier: "DigitalAudio_ONE toDigitalAudio(DigitalAudio_ONE)", support: { version: "1.0", resolver: "None" }, needsServerInfo: true, returnValue: { description: "AR_FN_DIGITALAUDIO_TODIGITALAUDIO_DIGITALAUDIO_RV", isArray: false, type: "dia" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_DIGITALAUDIO_TODIGITALAUDIO_DIGITALAUDIO_PRM_DSC_0", identifier: "valueToReturn", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "dia" }], examples: [{ input: "ToDigitalAudio(ToDigitalAudio(NOT_SET))", output: "AR_FN_DIGITALAUDIO_TODIGITALAUDIO_DIGITALAUDIO_EX_OUT_0" }] }, { description: "AR_FN_DIGITALAUDIO_TODIGITALAUDIO_NTS_DSC", identifier: "DigitalAudio_ONE toDigitalAudio(Null_ONE)", support: { version: "1.0", resolver: "NotSetToRetType" }, needsServerInfo: true, returnValue: { description: "AR_FN_DIGITALAUDIO_TODIGITALAUDIO_NTS_RV", isArray: false, type: "dia" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_DIGITALAUDIO_TODIGITALAUDIO_NTS_PRM_DSC_0", identifier: "valueToConvert", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "nts" }], examples: [{ input: "ToDigitalAudio(NOT_SET)", output: "AR_FN_DIGITALAUDIO_TODIGITALAUDIO_NTS_EX_OUT_0" }] }, { description: "AR_FN_DIGITALAUDIO_TODIGITALAUDIO_RESPONSEASSET_DSC", identifier: "DigitalAudio_ONE toDigitalAudio(ResponseAsset_ONE)", support: { version: "1.0", resolver: "None" }, needsServerInfo: true, returnValue: { description: "AR_FN_DIGITALAUDIO_TODIGITALAUDIO_RESPONSEASSET_RV", isArray: false, type: "dia" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_DIGITALAUDIO_TODIGITALAUDIO_RESPONSEASSET_PRM_DSC_0", identifier: "valueToConvert", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "rpa" }], examples: [{ input: "ToDigitalAudio(Flow.ResponseAsset)", output: "AR_FN_DIGITALAUDIO_TODIGITALAUDIO_RESPONSEASSET_EX_OUT_0" }, { input: "ToDigitalAudio(ToResponseAsset(NOT_SET))", output: "AR_FN_DIGITALAUDIO_TODIGITALAUDIO_RESPONSEASSET_EX_OUT_1" }] }, { description: "AR_FN_DIGITALAUDIO_TODIGITALAUDIO_RESPONSEASSET_DIGITALAUDIO_DSC", identifier: "DigitalAudio_ONE toDigitalAudio(ResponseAsset_ONE,DigitalAudio_ONE)", support: { version: "1.0", resolver: "None" }, needsServerInfo: true, returnValue: { description: "AR_FN_DIGITALAUDIO_TODIGITALAUDIO_RESPONSEASSET_DIGITALAUDIO_RV", isArray: false, type: "dia" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_DIGITALAUDIO_TODIGITALAUDIO_RESPONSEASSET_DIGITALAUDIO_PRM_DSC_0", identifier: "valueToConvert", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "rpa" }, { allowNotSet: true, allowCustomJson: false, description: "AR_FN_DIGITALAUDIO_TODIGITALAUDIO_RESPONSEASSET_DIGITALAUDIO_PRM_DSC_1", identifier: "default", isArray: false, helpDisplayIdx: 1, repeatable: false, required: false, type: "dia" }], examples: [{ input: 'ToDigitalAudio(Flow.ResponseAsset, MakeDigitalAudioFromUrl("https://www.genesys.com/media/genesys-digital-bot-flows.mp3"))', output: "AR_FN_DIGITALAUDIO_TODIGITALAUDIO_RESPONSEASSET_DIGITALAUDIO_EX_OUT_0" }, { input: 'ToDigitalAudio(ToResponseAsset(NOT_SET), MakeDigitalAudioFromUrl("https://www.genesys.com/media/genesys-digital-bot-flows.mp3"))', output: "AR_FN_DIGITALAUDIO_TODIGITALAUDIO_RESPONSEASSET_DIGITALAUDIO_EX_OUT_1" }, { input: 'ToDigitalAudio(Flow.ResponseAssetThatCannotBeConvertedToDigitalAudio, MakeDigitalAudioFromUrl("https://www.genesys.com/media/genesys-digital-bot-flows.mp3"))', output: "AR_FN_DIGITALAUDIO_TODIGITALAUDIO_RESPONSEASSET_DIGITALAUDIO_EX_OUT_2" }] }], needsServerInfo: true }, toDigitalAudioCollection: { identifier: "toDigitalAudioCollection", description: "AR_FN_DSC_TODIGITALAUDIOCOLLECTION", type: "function", name: "ToDigitalAudioCollection", category: "cast", overloads: [{ description: "AR_FN_DIGITALAUDIO_COLL_TODIGITALAUDIOCOLLECTION_RESPONSEASSET_COLL_DSC", identifier: "DigitalAudio_COLL toDigitalAudioCollection(ResponseAsset_COLL)", support: { version: "1.0", resolver: "None" }, featureConfigName: "cannedResponseAttachmentsPostGaFeature", needsServerInfo: true, returnValue: { description: "AR_FN_DIGITALAUDIO_COLL_TODIGITALAUDIOCOLLECTION_RESPONSEASSET_COLL_RV", isArray: true, type: "dia" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_FN_DIGITALAUDIO_COLL_TODIGITALAUDIOCOLLECTION_RESPONSEASSET_COLL_PRM_DSC_0", identifier: "valueToConvert", isArray: true, helpDisplayIdx: 0, repeatable: false, required: true, type: "rpa" }], examples: [{ input: "ToDigitalAudioCollection(MakeList(Flow.ResponseAsset, Flow.ResponseAsset2))", output: "AR_FN_DIGITALAUDIO_COLL_TODIGITALAUDIOCOLLECTION_RESPONSEASSET_COLL_EX_OUT_0" }] }], needsServerInfo: true }, toDisplayString: { identifier: "toDisplayString", description: "AR_FN_DSC_TODISPLAYSTRING", type: "function", name: "ToDisplayString", category: "cast", overloads: [{ description: "AR_FN_STR_TODISPLAYSTRING_ANY_DSC", identifier: "String_ONE toDisplayString(Any_ONE)", support: { version: "1.0", resolver: "None" }, passThrough: { dataTypes: [{ type: "acp" }, { type: "bln" }, { type: "lac" }, { type: "phn" }, { type: "pmt" }, { type: "que" }, { type: "skl" }, { type: "str" }, { type: "usr" }], funcOpOverloadId: "String_ONE toString(Any_ONE)" }, disallowAsDefaultCast: true, needsServerInfo: true, returnValue: { description: "AR_FN_STR_TODISPLAYSTRING_ANY_RV", isArray: false, type: "str" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_STR_TODISPLAYSTRING_ANY_PRM_DSC_0", identifier: "valueToConvert", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "any" }], examples: [{ input: "ToDisplayString(true)", output: '"true"' }, { input: "ToDisplayString(2112)", output: '"2,112"', outputFlowCurrentLanguage: "en-US" }, { input: "ToDisplayString(2112)", output: '"2.112"', outputFlowCurrentLanguage: "de-DE" }, { input: 'ToDisplayString(MakeCurrency(3.14159, "EUR"))', output: '"\u20AC3.14159"', outputFlowCurrentLanguage: "en-US" }, { input: 'ToDisplayString(MakeCurrency(3.14159, "EUR"))', output: '"3,14159\xA0\u20AC"', outputFlowCurrentLanguage: "de-DE" }, { input: "ToDisplayString(210125.12)", output: '"210,125.12"', outputFlowCurrentLanguage: "en-GB" }, { input: "ToDisplayString(210125.12)", output: '"210.125,12"', outputFlowCurrentLanguage: "de-DE" }, { input: "ToDisplayString(MakeDateTime(2018, 07, 18, 19, 35, 39))", output: '"July 18, 2018 at 7:35 PM"', outputFlowCurrentLanguage: "en-US" }, { input: "ToDisplayString(MakeDateTime(2018, 07, 18, 19, 35, 39))", output: '"18 July 2018 at 19:35"', outputFlowCurrentLanguage: "en-GB" }, { input: "ToDisplayString(MakeDateTime(2018, 07, 18, 19, 35, 39))", output: '"18. Juli 2018 um 19:35"', outputFlowCurrentLanguage: "de-DE" }, { input: "ToDisplayString(MakeDuration(2, 3, 4, 50, 200))", output: '"2 days, 3 hours, 4 minutes, 50.2 seconds"', outputFlowCurrentLanguage: "en-US" }, { input: "ToDisplayString(MakeDuration(2, 3, 4, 50, 200))", output: '"2 Tage, 3 Stunden, 4 Minuten und 50,2 Sekunden"', outputFlowCurrentLanguage: "de-DE" }, { input: "ToDisplayString(MakeDuration(-2, -3, -4, -50, -200))", output: '"-2 days, -3 hours, -4 minutes, -50.2 seconds"', outputFlowCurrentLanguage: "en-US" }, { input: "ToDisplayString(MakeDuration(-2, -3, -4, -50, -200))", output: '"-2 Tage, -3 Stunden, -4 Minuten und -50,2 Sekunden"', outputFlowCurrentLanguage: "de-DE" }, { input: "ToDisplayString(MakeDuration(2, 0, 0, 0))", output: '"2 days"', outputFlowCurrentLanguage: "en-US" }, { input: "ToDisplayString(MakeDuration(2112, 0, 0, 0))", output: '"2.112 Tage"', outputFlowCurrentLanguage: "de-DE" }, { input: "ToDisplayString(MakeDate(2018, 07, 18))", output: '"July 18, 2018"', outputFlowCurrentLanguage: "en-US", featureConfigName: "botFlows" }, { input: "ToDisplayString(MakeTime(19, 35, 39))", output: '"7:35 PM"', outputFlowCurrentLanguage: "en-US", featureConfigName: "botFlows" }, { input: 'ToDisplayString(ToCommunication(MakeCurrency(3.14159, "EUR")))', output: '"3,14159\xA0\u20AC"', outputFlowCurrentLanguage: "de-DE", featureConfigName: "botFlows" }, { input: 'ToDisplayString(JsonParse("[ true, false]"))', output: '"[true,false]"', featureConfigName: "encryptDecryptDataFeature" }, { input: 'ToDisplayString(MakeListPickerItem("Fries", NOT_SET, MakeImageFromUrl(NOT_SET)))', output: '"Fries"', featureConfigName: "botFlowsAppleListPicker" }, { input: 'ToDisplayString(MakeListPickerSection("Sides", true, MakeList(MakeListPickerItem("Fries", NOT_SET, MakeImageFromUrl(NOT_SET)))))', output: '"Sides"', featureConfigName: "botFlowsAppleListPicker" }, { input: 'ToDisplayString(MakeListPicker(MakeList(MakeListPickerSection("Sides", true, MakeList(MakeListPickerItem("Fries", NOT_SET, MakeImageFromUrl(NOT_SET))))), MakeImageFromUrl(NOT_SET), "Menu", "Items to order", MakeImageFromUrl(NOT_SET), NOT_SET))', output: '"Sides"', featureConfigName: "botFlowsAppleListPicker" }], examplesHaveFeatureToggleOrConfig: true }, { description: "AR_FN_STR_TODISPLAYSTRING_ANY_COLL_DSC", identifier: "String_ONE toDisplayString(Any_COLL)", support: { version: "1.0", resolver: "None" }, passThrough: { dataTypes: [{ type: "acp", isArray: true }, { type: "bln", isArray: true }, { type: "lac", isArray: true }, { type: "phn", isArray: true }, { type: "pmt", isArray: true }, { type: "que", isArray: true }, { type: "skl", isArray: true }, { type: "str", isArray: true }, { type: "usr", isArray: true }], funcOpOverloadId: "String_ONE toString(Any_ONE)", isArrayItemPassThrough: true }, disallowAsDefaultCast: true, needsServerInfo: true, returnValue: { description: "AR_FN_STR_TODISPLAYSTRING_ANY_COLL_RV", isArray: false, type: "str" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_FN_STR_TODISPLAYSTRING_ANY_COLL_PRM_DSC_0", identifier: "valueToConvert", isArray: true, helpDisplayIdx: 0, repeatable: false, required: true, type: "any" }], examples: [{ input: "ToDisplayString(MakeList(90125, 2112))", output: '"90,125\\n2,112"', outputFlowCurrentLanguage: "en-US", addNewLineInfo: true }, { input: "ToDisplayString(MakeList(90125, ToInt(NOT_SET)))", output: '"90,125\\n"', outputFlowCurrentLanguage: "en-US", addNewLineInfo: true }, { input: "ToDisplayString(MakeList(90125, 2112))", output: '"90.125\\n2.112"', outputFlowCurrentLanguage: "de-DE", addNewLineInfo: true }, { input: "ToDisplayString(MakeList(90125, ToInt(NOT_SET)))", output: '"90.125\\n"', outputFlowCurrentLanguage: "de-DE", addNewLineInfo: true }, { input: 'ToDisplayString(MakeList(MakeListPickerItem("Fries", NOT_SET, MakeImageFromUrl(NOT_SET)), MakeListPickerItem("Soup", NOT_SET, MakeImageFromUrl(NOT_SET))))', output: '"Fries\\nSoup"', addNewLineInfo: true, featureConfigName: "botFlowsAppleListPicker" }, { input: 'ToDisplayString(MakeList(MakeListPickerSection("Sides", true, MakeList(MakeListPickerItem("Fries", NOT_SET, MakeImageFromUrl(NOT_SET)))), MakeListPickerSection("Desserts", true, MakeList(MakeListPickerItem("Cookie", NOT_SET, MakeImageFromUrl(NOT_SET))))))', output: '"Sides\\nDessert"', addNewLineInfo: true, featureConfigName: "botFlowsAppleListPicker" }], examplesHaveFeatureToggleOrConfig: true }, { description: "AR_FN_STR_TODISPLAYSTRING_ANY_COLL_STR_DSC", identifier: "String_ONE toDisplayString(Any_COLL,String_ONE)", support: { version: "1.0", resolver: "None" }, passThrough: { dataTypes: [{ type: "acp", isArray: true }, { type: "bln", isArray: true }, { type: "lac", isArray: true }, { type: "phn", isArray: true }, { type: "pmt", isArray: true }, { type: "que", isArray: true }, { type: "skl", isArray: true }, { type: "str", isArray: true }, { type: "usr", isArray: true }], funcOpOverloadId: "String_ONE toString(Any_ONE)", isArrayItemPassThrough: true }, disallowAsDefaultCast: true, needsServerInfo: true, returnValue: { description: "AR_FN_STR_TODISPLAYSTRING_ANY_COLL_STR_RV", isArray: false, type: "str" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_FN_STR_TODISPLAYSTRING_ANY_COLL_STR_PRM_DSC_0", identifier: "valueToConvert", isArray: true, helpDisplayIdx: 0, repeatable: false, required: true, type: "any" }, { allowNotSet: true, allowCustomJson: false, description: "AR_FN_STR_TODISPLAYSTRING_ANY_COLL_STR_PRM_DSC_1", identifier: "delimiter", isArray: false, helpDisplayIdx: 1, repeatable: false, required: false, type: "str" }], examples: [{ input: 'ToDisplayString(MakeList(8675309, 2112, 90125), "|")', output: '"8,675,309|2,112|90,125"', outputFlowCurrentLanguage: "en-US" }, { input: 'ToDisplayString(MakeList(8675309, 2112, 90125), "|")', output: '"8.675.309|2.112|90.125"', outputFlowCurrentLanguage: "de-DE" }, { input: 'ToDisplayString(MakeList(MakeListPickerItem("Fries", NOT_SET, MakeImageFromUrl(NOT_SET)), MakeListPickerItem("Soup", NOT_SET, MakeImageFromUrl(NOT_SET))), "|")', output: '"Fries|Soup"', featureConfigName: "botFlowsAppleListPicker" }, { input: 'ToDisplayString(MakeList(MakeListPickerSection("Sides", true, MakeList(MakeListPickerItem("Fries", NOT_SET, MakeImageFromUrl(NOT_SET)))), MakeListPickerSection("Desserts", true, MakeList(MakeListPickerItem("Cookie", NOT_SET, MakeImageFromUrl(NOT_SET))))), "|")', output: '"Sides|Dessert"', featureConfigName: "botFlowsAppleListPicker" }], examplesHaveFeatureToggleOrConfig: true }, { description: "AR_FN_STR_TODISPLAYSTRING_CUR_LNG_DSC", identifier: "String_ONE toDisplayString(Currency_ONE,Long_ONE)", support: { version: "1.0", resolver: "None" }, needsServerInfo: true, returnValue: { description: "AR_FN_STR_TODISPLAYSTRING_CUR_LNG_RV", isArray: false, type: "str" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_STR_TODISPLAYSTRING_CUR_LNG_PRM_DSC_0", identifier: "currencyValueToConvert", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "cur" }, { allowNotSet: false, allowCustomJson: false, description: "AR_FN_STR_TODISPLAYSTRING_CUR_LNG_PRM_DSC_1", identifier: "decimalPlaces", isArray: false, helpDisplayIdx: 1, max: "28", min: "0", repeatable: false, required: true, type: "int", isDecimalPlaces: true }], examples: [{ input: 'ToDisplayString(MakeCurrency(3.14, "USD"), 2)', output: '"$3.14"', outputFlowCurrentLanguage: "en-US" }, { input: 'ToDisplayString(MakeCurrency(3.14159, "EUR"), 3)', output: '"3,142\xA0\u20AC"', outputFlowCurrentLanguage: "de-DE" }, { input: 'ToDisplayString(MakeCurrency(3.14159, "EUR"), 3)', output: '"\u20AC3.142"', outputFlowCurrentLanguage: "en-US" }] }, { description: "AR_FN_STR_TODISPLAYSTRING_CUR_COLL_LNG_DSC", identifier: "String_ONE toDisplayString(Currency_COLL,Long_ONE)", support: { version: "1.0", resolver: "None" }, disallowAsDefaultCast: true, needsServerInfo: true, returnValue: { description: "AR_FN_STR_TODISPLAYSTRING_CUR_COLL_LNG_RV", isArray: false, type: "str" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_STR_TODISPLAYSTRING_CUR_COLL_LNG_PRM_DSC_0", identifier: "currencyCollectionToConvert", isArray: true, helpDisplayIdx: 0, repeatable: false, required: false, type: "cur" }, { allowNotSet: false, allowCustomJson: false, description: "AR_FN_STR_TODISPLAYSTRING_CUR_COLL_LNG_PRM_DSC_1", identifier: "decimalPlaces", isArray: false, helpDisplayIdx: 1, max: "28", min: "0", repeatable: false, required: true, type: "int", isDecimalPlaces: true }], examples: [{ input: 'ToDisplayString(MakeList(MakeCurrency(21.12, "USD"), MakeCurrency(9.0125, "GBP")), 1)', output: '"$21.1\\n\xA39.0"', outputFlowCurrentLanguage: "en-US", addNewLineInfo: true }, { input: 'ToDisplayString(MakeList(MakeCurrency(21.12, "USD"), MakeCurrency(9.0125, "GBP")), 5)', output: '"21,12000\xA0$\\n9,01250\xA0\xA3"', outputFlowCurrentLanguage: "de-DE", addNewLineInfo: true }] }, { description: "AR_FN_STR_TODISPLAYSTRING_CUR_COLL_STR_LNG_DSC", identifier: "String_ONE toDisplayString(Currency_COLL,String_ONE,Long_ONE)", support: { version: "1.0", resolver: "None" }, disallowAsDefaultCast: true, needsServerInfo: true, returnValue: { description: "AR_FN_STR_TODISPLAYSTRING_CUR_COLL_STR_LNG_RV", isArray: false, type: "str" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_STR_TODISPLAYSTRING_CUR_COLL_STR_LNG_PRM_DSC_0", identifier: "currencyCollectionToConvert", isArray: true, helpDisplayIdx: 0, repeatable: false, required: false, type: "cur" }, { allowNotSet: true, allowCustomJson: false, description: "AR_FN_STR_TODISPLAYSTRING_CUR_COLL_STR_LNG_PRM_DSC_1", identifier: "delimiter", isArray: false, helpDisplayIdx: 1, repeatable: false, required: false, type: "str" }, { allowNotSet: false, allowCustomJson: false, description: "AR_FN_STR_TODISPLAYSTRING_CUR_COLL_STR_LNG_PRM_DSC_2", identifier: "decimalPlaces", isArray: false, helpDisplayIdx: 2, max: "28", min: "0", repeatable: false, required: true, type: "int", isDecimalPlaces: true }], examples: [{ input: 'ToDisplayString(MakeList(MakeCurrency(21.12, "USD"), MakeCurrency(9.0125, "GBP")), "|", 1)', output: '"$21.1|\xA39.0"', outputFlowCurrentLanguage: "en-US" }, { input: 'ToDisplayString(MakeList(MakeCurrency(21.12, "USD"), MakeCurrency(9.0125, "GBP")), "|", 5)', output: '"21,12000\xA0$|9,01250\xA0\xA3"', outputFlowCurrentLanguage: "de-DE" }] }, { description: "AR_FN_STR_TODISPLAYSTRING_DEC_LNG_DSC", identifier: "String_ONE toDisplayString(Decimal_ONE,Long_ONE)", support: { version: "1.0", resolver: "None" }, disallowAsDefaultCast: true, needsServerInfo: true, returnValue: { description: "AR_FN_STR_TODISPLAYSTRING_DEC_LNG_RV", isArray: false, type: "str" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_STR_TODISPLAYSTRING_DEC_LNG_PRM_DSC_0", identifier: "decimalValueToConvert", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "dec" }, { allowNotSet: false, allowCustomJson: false, description: "AR_FN_STR_TODISPLAYSTRING_DEC_LNG_PRM_DSC_1", identifier: "decimalPlaces", isArray: false, helpDisplayIdx: 1, max: "28", min: "0", repeatable: false, required: true, type: "int", isDecimalPlaces: true }], examples: [{ input: "ToDisplayString(3.141, 2)", output: '"3.14"', outputFlowCurrentLanguage: "en-US" }, { input: "ToDisplayString(3.14159, 3)", output: '"3,142"', outputFlowCurrentLanguage: "de-DE" }] }, { description: "AR_FN_STR_TODISPLAY_DEC_COLL_LNG_DSC", identifier: "String_ONE toDisplay(Decimal_COLL,Long_ONE)", support: { version: "1.0", resolver: "None" }, disallowAsDefaultCast: true, needsServerInfo: true, returnValue: { description: "AR_FN_STR_TODISPLAY_DEC_COLL_LNG_RV", isArray: false, type: "str" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_FN_STR_TODISPLAY_DEC_COLL_LNG_PRM_DSC_0", identifier: "valueToConvert", isArray: true, helpDisplayIdx: 0, repeatable: false, required: true, type: "dec" }, { allowNotSet: false, allowCustomJson: false, description: "AR_FN_STR_TODISPLAY_DEC_COLL_LNG_PRM_DSC_1", identifier: "decimalPlaces", isArray: false, helpDisplayIdx: 1, max: "28", min: "0", repeatable: false, required: true, type: "int", isDecimalPlaces: true }], examples: [{ input: "ToDisplayString(MakeList(21.12, 9.0125), 1)", output: '"21.1\\n9.0"', outputFlowCurrentLanguage: "en-US", addNewLineInfo: true }, { input: "ToDisplayString(MakeList(21.12, 9.0125), 5)", output: '"21,12000\\n9,01250"', outputFlowCurrentLanguage: "de-DE", addNewLineInfo: true }] }, { description: "AR_FN_STR_TODISPLAYSTRING_DEC_COLL_STR_LNG_DSC", identifier: "String_ONE toDisplayString(Decimal_COLL,String_ONE,Long_ONE)", support: { version: "1.0", resolver: "None" }, disallowAsDefaultCast: true, needsServerInfo: true, returnValue: { description: "AR_FN_STR_TODISPLAYSTRING_DEC_COLL_STR_LNG_RV", isArray: false, type: "str" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_FN_STR_TODISPLAYSTRING_DEC_COLL_STR_LNG_PRM_DSC_0", identifier: "valueToConvert", isArray: true, helpDisplayIdx: 0, repeatable: false, required: true, type: "dec" }, { allowNotSet: true, allowCustomJson: false, description: "AR_FN_STR_TODISPLAYSTRING_DEC_COLL_STR_LNG_PRM_DSC_1", identifier: "delimiter", isArray: false, helpDisplayIdx: 1, repeatable: false, required: false, type: "str" }, { allowNotSet: false, allowCustomJson: false, description: "AR_FN_STR_TODISPLAYSTRING_DEC_COLL_STR_LNG_PRM_DSC_2", identifier: "decimalPlaces", isArray: false, helpDisplayIdx: 2, max: "28", min: "0", repeatable: false, required: true, type: "int", isDecimalPlaces: true }], examples: [{ input: 'ToDisplayString(MakeList(21.12, 9.0125), "|", 1)', output: '"21.1|9.0"', outputFlowCurrentLanguage: "en-US" }, { input: 'ToDisplayString(MakeList(21.12, 9.0125), "|", 5)', output: '"21,12000|9,01250"', outputFlowCurrentLanguage: "de-DE" }] }, { description: "AR_FN_STR_TODISPLAYSTRING_NTS_DSC", identifier: "String_ONE toDisplayString(Null_ONE)", support: { version: "1.0", resolver: "NotSetToRetType" }, disallowAsDefaultCast: true, needsServerInfo: true, returnValue: { description: "AR_FN_STR_TODISPLAYSTRING_NTS_RV", isArray: false, type: "str" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_STR_TODISPLAYSTRING_NTS_PRM_DSC_0", identifier: "nullValue", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "nts" }], examples: [{ input: "ToDisplayString(NOT_SET)", output: "AR_FN_STR_TODISPLAYSTRING_NTS_EX_OUT_0" }] }], needsServerInfo: true }, toString: { identifier: "toString", description: "AR_FN_DSC_TOSTRING", type: "function", name: "ToString", category: "cast", overloads: [{ description: "AR_FN_STR_TOSTRING_ANY_DSC", identifier: "String_ONE toString(Any_ONE)", support: { version: "1.0", resolver: "None" }, returnValue: { description: "AR_FN_STR_TOSTRING_ANY_RV", isArray: false, type: "str" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_STR_TOSTRING_ANY_PRM_DSC_0", identifier: "valueToConvert", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "any" }], examples: [{ input: "ToString(true)", output: '"true"' }, { input: "ToString(5 > 3)", output: '"true"' }, { input: "ToString(false)", output: '"false"' }, { input: "ToString(5 < 3)", output: '"false"' }, { input: "ToString(ToBool(NOT_SET))", output: "AR_FN_STR_TOSTRING_ANY_EX_OUT_4" }, { input: 'ToString(MakeCurrency(10.00, "USD"))', output: "AR_FN_STR_TOSTRING_ANY_EX_OUT_5" }, { input: "ToString(MakeDateTime(2009, 1, 10, 6, 30, 0))", output: '"2009-01-10T06:30:00.000Z"' }, { input: "ToString(ToDateTime(NOT_SET))", output: "AR_FN_STR_TOSTRING_ANY_EX_OUT_7" }, { input: "ToString(2000.5)", output: '"2000.5"' }, { input: "ToString(-1.0)", output: '"-1.0"' }, { input: "ToString(ToDecimal(NOT_SET))", output: "AR_FN_STR_TOSTRING_ANY_EX_OUT_10" }, { input: "ToString(MakeDuration(0, 1, 0, 0))", output: '"PT1H"' }, { input: "ToString(MakeDuration(-10, 5, 30, 0, 456))", output: '"-P9DT18H29M59.544S"' }, { input: "ToString(ToDuration(NOT_SET))", output: "AR_FN_STR_TOSTRING_ANY_EX_OUT_13" }, { input: "ToString(2000)", output: '"2000"' }, { input: "ToString(-1)", output: '"-1"' }, { input: "ToString(ToInt(NOT_SET))", output: "AR_FN_STR_TOSTRING_ANY_EX_OUT_16" }, { input: 'ToString(ToSkill("Spanish"))', output: '"Spanish"', hidden: "true" }, { input: "ToString(ToSkill(NOT_SET))", output: "AR_FN_STR_TOSTRING_ANY_EX_OUT_18" }, { input: 'ToString(FindUser("john.doe@company.com"))', output: "AR_FN_STR_TOSTRING_ANY_EX_OUT_19" }, { input: 'ToString(ToWrapupCode("Call back in a week"))', output: "AR_FN_STR_TOSTRING_ANY_EX_OUT_20", hidden: "true" }, { input: "ToString(ToSkill(NOT_SET))", output: "AR_FN_STR_TOSTRING_ANY_EX_OUT_21" }, { input: "ToString(ToUser(NOT_SET))", output: "AR_FN_STR_TOSTRING_ANY_EX_OUT_22" }, { input: "ToString(ToWrapupCode(NOT_SET))", output: "AR_FN_STR_TOSTRING_ANY_EX_OUT_23" }, { input: 'ToString(ToPhoneNumber("+1 (317) 872-3000"))', output: "AR_FN_STR_TOSTRING_ANY_EX_OUT_24" }, { input: "ToString(Flow.PhoneNumberVariable)", output: "AR_FN_STR_TOSTRING_ANY_EX_OUT_25" }, { input: "ToString(Flow.SkillVariable)", output: "AR_FN_STR_TOSTRING_ANY_EX_OUT_26" }, { input: "ToString(Flow.UserVariable)", output: "AR_FN_STR_TOSTRING_ANY_EX_OUT_27" }, { input: "ToString(Flow.WrapupCodeVariable)", output: "AR_FN_STR_TOSTRING_ANY_EX_OUT_28" }, { input: "ToString(Call.Contact)", output: "AR_FN_STR_TOSTRING_ANY_EX_OUT_29" }, { input: "ToString(Email.Message)", output: "AR_FN_STR_TOSTRING_ANY_EX_OUT_30" }, { input: "ToString(Email.Message.from)", output: "AR_FN_STR_TOSTRING_ANY_EX_OUT_31" }, { input: "ToString(Email.Message.attachments[0])", output: "AR_FN_STR_TOSTRING_ANY_EX_OUT_32" }, { input: "ToString(Flow.ExternalOrganization)", output: "AR_FN_STR_TOSTRING_ANY_EX_OUT_33" }, { input: "ToString(Flow.ExternalContact)", output: "AR_FN_STR_TOSTRING_ANY_EX_OUT_34" }, { input: "ToString(Flow.ExternalAddress)", output: "AR_FN_STR_TOSTRING_ANY_EX_OUT_35" }, { input: "ToString(Flow.ExternalPhoneNumber)", output: "AR_FN_STR_TOSTRING_ANY_EX_OUT_36" }, { input: "ToString(Prompt.Welcome)", output: "AR_FN_STR_TOSTRING_ANY_EX_OUT_37" }, { input: 'ToString(MakeAgentScorePair(FindUser("john.doe@company.com"), 50))', output: '"[john.doe@company.com,50]"', featureConfigName: "knownAgentRouting" }, { input: "ToString(MakeDate(2015, 1, 10))", output: '"2015-01-10"', featureConfigName: "botFlows" }, { input: "ToString(MakeTime(2, 30, 0))", output: '"02:30:00.000"', featureConfigName: "botFlows" }, { input: 'ToString(ToCommunication("Hello"))', output: '"hello"', featureConfigName: "botFlows" }, { input: "ToString(Workitem.Workitem)", output: "AR_FN_STR_TOSTRING_ANY_EX_OUT_42", featureConfigName: "workItemFlows" }, { input: 'ToString(FindEmergencyGroup("Flooding"))', output: "Returns the name property from the supplied Emergency Group. If Emergency Group value is NOT_SET, a NOT_SET String is returned.", featureConfigName: "orgAvailabilityRoutingEmergencyGroups" }, { input: 'ToString(FindSchedule("Morning Hours"))', output: "Returns the name property from the supplied Schedule. If Schedule value is NOT_SET, a NOT_SET String is returned.", featureConfigName: "orgAvailabilityRoutingSchedules" }, { input: 'ToString(FindScheduleGroup("West Coast"))', output: "Returns the name property from the supplied Schedule Group. If Schedule Group value is NOT_SET, a NOT_SET String is returned.", featureConfigName: "orgAvailabilityRoutingScheduleGroups" }, { input: "ToString(MakeEmptyJsonObject())", output: '"{}"', featureConfigName: "encryptDecryptDataFeature" }, { input: 'ToString(JsonParse("{ \\"a\\": true }"))', output: '"{"a":true}"', featureConfigName: "encryptDecryptDataFeature" }, { input: 'ToString(JsonParse(Append("[1, 2, ", ToString(3>5), "]")))', output: '"[1,2,false]"', featureConfigName: "encryptDecryptDataFeature" }, { input: 'ToString(FindUtilizationLabel("green"))', output: "AR_FN_STR_TOSTRING_ANY_EX_OUT_49", featureConfigName: "conversationUtilizationLabels" }, { input: 'ToString(FindWorktypeStatus("NewOpportunity"))', output: "AR_FN_STR_TOSTRING_ANY_EX_OUT_50", featureConfigName: "workItemFlows" }, { input: 'ToString(MakeTimePicker("Schedule Appointment"))', output: "AR_FN_STR_TOSTRING_ANY_EX_OUT_51", featureConfigName: "botFlowsMessagingDatePicker" }, { input: "ToString(MakeTimeslot(MakeDateTime(2009, 1, 10, 6, 30, 0), MakeDuration(0, 1, 0, 0)))", output: '"2009-01-10T06:30:00.000Z|PT1H"', featureConfigName: "botFlowsMessagingDatePicker" }, { input: 'ToString(MakeListPickerItem("Fries", NOT_SET, MakeImageFromUrl(NOT_SET)))', output: '"Fries"', featureConfigName: "botFlowsAppleListPicker" }, { input: 'ToString(MakeListPickerSection("Sides", true, MakeList(MakeListPickerItem("Fries", NOT_SET, MakeImageFromUrl(NOT_SET)))))', output: '"Sides"', featureConfigName: "botFlowsAppleListPicker" }, { input: 'ToString(MakeListPicker(MakeList(MakeListPickerSection("Sides", true, MakeList(MakeListPickerItem("Fries", NOT_SET, MakeImageFromUrl(NOT_SET))))), MakeImageFromUrl(NOT_SET), "Menu", "Items to order", MakeImageFromUrl(NOT_SET), NOT_SET))', output: '"Sides"', featureConfigName: "botFlowsAppleListPicker" }], examplesHaveFeatureToggleOrConfig: true }, { description: "AR_FN_STR_TOSTRING_NTS_DSC", identifier: "String_ONE toString(Null_ONE)", support: { version: "1.0", resolver: "NotSetToRetType" }, returnValue: { description: "AR_FN_STR_TOSTRING_NTS_RV", isArray: false, type: "str" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_STR_TOSTRING_NTS_PRM_DSC_0", identifier: "nullValue", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "nts" }], examples: [{ input: "ToString(NOT_SET)", output: "AR_FN_STR_TOSTRING_NTS_EX_OUT_0" }] }, { description: "AR_FN_STR_TOSTRING_ANY_COLL_DSC", identifier: "String_ONE toString(Any_COLL)", support: { version: "1.0", resolver: "None" }, returnValue: { description: "AR_FN_STR_TOSTRING_ANY_COLL_RV", isArray: false, type: "str" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_FN_STR_TOSTRING_ANY_COLL_PRM_DSC_0", identifier: "valueToConvert", isArray: true, helpDisplayIdx: 0, repeatable: false, required: true, type: "any" }], examples: [{ input: "ToString(MakeList(true, false))", output: '"true\\nfalse"', addNewLineInfo: true }, { input: "ToString(MakeList(ToBool(NOT_SET), false))", output: '"\\nfalse"', addNewLineInfo: true }, { input: 'ToString(MakeList(MakeCurrency(10.00, "USD"), MakeCurrency(5.00, "EUR")))', output: '"10.00|USD\\n5.00|EUR"', addNewLineInfo: true }, { input: "ToString(MakeList(ToDateTime(NOT_SET), MakeDateTime(2009, 1, 10, 6, 30, 0)))", output: '"\\n2009-01-10T06:30:00.000Z"', addNewLineInfo: true }, { input: "ToString(MakeList(2000.5, -1.0))", output: '"2000.5\\n-1.0"', addNewLineInfo: true }, { input: "ToString(MakeList(ToDecimal(NOT_SET), -1.0))", output: '"\\n-1.0"', addNewLineInfo: true }, { input: "ToString(MakeList(MakeDuration(0, 1, 0, 0), MakeDuration(-10, 5, 30, 0)))", output: '"PT1H\\n-P9DT18H30M"', addNewLineInfo: true }, { input: "ToString(MakeList(ToDuration(NOT_SET), MakeDuration(-10, 5, 30, 0)))", output: '"\\n-P9DT18H30M"', addNewLineInfo: true }, { input: "ToString(MakeList(2000, -1))", output: '"2000\\n-1"', addNewLineInfo: true }, { input: "ToString(MakeList(ToInt(NOT_SET), -1))", output: '"\\n-1"', addNewLineInfo: true }, { input: 'ToString(MakeList(ToSkill("Spanish"), ToSkill("German")))', output: '"Spanish\\nGerman"', addNewLineInfo: true, hidden: "true" }, { input: 'ToString(MakeList(ToSkill(NOT_SET), ToSkill("German")))', output: '"\\nGerman"', addNewLineInfo: true, hidden: "true" }, { input: 'ToString(MakeList("Hello", "World"))', output: '"Hello\\nWorld"', addNewLineInfo: true }, { input: 'ToString(MakeList("Hello", ToString(NOT_SET)))', output: '"Hello\\n"', addNewLineInfo: true }, { input: 'ToString(MakeList(FindUser("john.doe@company.com"), FindUser("jane.doe@company.com")))', output: '"john.doe@company.com\\njane.doe@company.com"', addNewLineInfo: true }, { input: 'ToString(MakeList(ToUser(NOT_SET), ToUser("jane.doe@company.com")))', output: '"\\njane.doe@company.com"', addNewLineInfo: true, hidden: "true" }, { input: "ToString(MakeList(ToSkill(NOT_SET), ToSkill(NOT_SET)))", output: '"\\n"', addNewLineInfo: true }, { input: "ToString(MakeList(ToUser(NOT_SET), ToUser(NOT_SET)))", output: '"\\n"', addNewLineInfo: true }, { input: 'ToString(MakeList(MakeListPickerItem("Fries", NOT_SET, MakeImageFromUrl(NOT_SET)), MakeListPickerItem("Soup", NOT_SET, MakeImageFromUrl(NOT_SET))))', output: '"Fries\\nSoup"', addNewLineInfo: true, featureConfigName: "botFlowsAppleListPicker" }, { input: 'ToString(MakeList(MakeListPickerSection("Sides", true, MakeList(MakeListPickerItem("Fries", NOT_SET, MakeImageFromUrl(NOT_SET)))), MakeListPickerSection("Desserts", true, MakeList(MakeListPickerItem("Cookie", NOT_SET, MakeImageFromUrl(NOT_SET))))))', output: '"Sides\\nDessert"', addNewLineInfo: true, featureConfigName: "botFlowsAppleListPicker" }], examplesHaveFeatureToggleOrConfig: true }, { description: "AR_FN_STR_TOSTRING_ANY_COLL_STR_DSC", identifier: "String_ONE toString(Any_COLL,String_ONE)", support: { version: "1.0", resolver: "None" }, returnValue: { description: "AR_FN_STR_TOSTRING_ANY_COLL_STR_RV", isArray: false, type: "str" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_FN_STR_TOSTRING_ANY_COLL_STR_PRM_DSC_0", identifier: "valueToConvert", isArray: true, helpDisplayIdx: 0, repeatable: false, required: true, type: "any" }, { allowNotSet: true, allowCustomJson: false, description: "AR_FN_STR_TOSTRING_ANY_COLL_STR_PRM_DSC_1", identifier: "delimiter", isArray: false, helpDisplayIdx: 1, repeatable: false, required: false, type: "str" }], examples: [{ input: 'ToString(MakeList(true, false), "|")', output: '"true|false"' }, { input: 'ToString(MakeList(NOT_SET, false), "|")', output: '"|false"' }, { input: 'ToString(MakeList(MakeCurrency(10.00, "USD"), MakeCurrency(5.00, "EUR")), "#")', output: '"10.00|USD#5.00|EUR"' }, { input: 'ToString(MakeList(NOT_SET, MakeDateTime(2009, 1, 10, 6, 30, 0)), "|")', output: '"|2009-01-10T06:30:00.000Z"' }, { input: 'ToString(MakeList(2000.5, -1.0), "|")', output: '"2000.5|-1.0"' }, { input: 'ToString(MakeList(NOT_SET, -1.0), "|")', output: '"|-1.0"' }, { input: 'ToString(MakeList(MakeDuration(0, 1, 0, 0), MakeDuration(-10, 5, 30, 0)), "|")', output: '"PT1H|-P9DT18H30M"' }, { input: 'ToString(MakeList(NOT_SET, MakeDuration(-10, 5, 30, 0)), "|")', output: '"|-P9DT18H30M"' }, { input: 'ToString(MakeList(2000, -1), "|")', output: '"2000|-1"' }, { input: 'ToString(MakeList(NOT_SET, -1), "|")', output: '"|-1"' }, { input: 'ToString(MakeList(ToSkill("Spanish"), ToSkill("German")), "|")', output: '"Spanish|German"', hidden: "true" }, { input: 'ToString(MakeList(NOT_SET, ToSkill("German")), "|")', output: '"|German"', hidden: "true" }, { input: 'ToString(MakeList("Hello", "World"), "|")', output: '"Hello|World"' }, { input: 'ToString(MakeList("Hello", NOT_SET), "|")', output: '"Hello|"' }, { input: 'ToString(MakeList(ToUser("john.doe@company.com"), ToUser("jane.doe@company.com")), "|")', output: '"john.doe@company.com|jane.doe@company.com"', hidden: "true" }, { input: 'ToString(MakeList(NOT_SET, ToUser("jane.doe@company.com")), "|")', output: '"|jane.doe@company.com"', hidden: "true" }, { input: 'ToString(MakeList(ToUser(NOT_SET), ToUser(NOT_SET)), "|")', output: '"|"' }, { input: 'ToString(MakeList(MakeListPickerItem("Fries", NOT_SET, MakeImageFromUrl(NOT_SET)), MakeListPickerItem("Soup", NOT_SET, MakeImageFromUrl(NOT_SET))), "|")', output: '"Fries|Soup"', featureConfigName: "botFlowsAppleListPicker" }, { input: 'ToString(MakeList(MakeListPickerSection("Sides", true, MakeList(MakeListPickerItem("Fries", NOT_SET, MakeImageFromUrl(NOT_SET)))), MakeListPickerSection("Desserts", true, MakeList(MakeListPickerItem("Cookie", NOT_SET, MakeImageFromUrl(NOT_SET))))), "|")', output: '"Sides|Dessert"', featureConfigName: "botFlowsAppleListPicker" }], examplesHaveFeatureToggleOrConfig: true }, { description: "AR_FN_STR_TOSTRING_DEC_LNG_DSC", identifier: "String_ONE toString(Decimal_ONE,Long_ONE)", support: { version: "1.0", resolver: "None" }, returnValue: { description: "AR_FN_STR_TOSTRING_DEC_LNG_RV", isArray: false, type: "str" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_STR_TOSTRING_DEC_LNG_PRM_DSC_0", identifier: "decimalValueToConvert", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "dec" }, { allowNotSet: false, allowCustomJson: false, description: "AR_FN_STR_TOSTRING_DEC_LNG_PRM_DSC_1", identifier: "decimalPlaces", isArray: false, helpDisplayIdx: 1, max: "28", min: "1", repeatable: false, required: true, type: "int", isDecimalPlaces: true }], examples: [{ input: "ToString(2000.506, 2)", output: '"2000.51"' }, { input: "ToString(1.125, 2)", output: '"1.13"' }, { input: "ToString(-1.0, 3)", output: '"-1.000"' }, { input: "ToString(ToDecimal(NOT_SET), 2)", output: "AR_FN_STR_TOSTRING_DEC_LNG_EX_OUT_3" }] }, { description: "AR_FN_STR_TOSTRING_CUR_LNG_DSC", identifier: "String_ONE toString(Currency_ONE,Long_ONE)", support: { version: "1.0", resolver: "None" }, returnValue: { description: "AR_FN_STR_TOSTRING_CUR_LNG_RV", isArray: false, type: "str" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_STR_TOSTRING_CUR_LNG_PRM_DSC_0", identifier: "currencyValueToConvert", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "cur" }, { allowNotSet: false, allowCustomJson: false, description: "AR_FN_STR_TOSTRING_CUR_LNG_PRM_DSC_1", identifier: "decimalPlaces", isArray: false, helpDisplayIdx: 1, max: "28", min: "1", repeatable: false, required: true, type: "int", isDecimalPlaces: true }], examples: [{ input: 'ToString(MakeCurrency(2000.506, "USD"), 2)', output: '"2000.51|USD"' }, { input: 'ToString(MakeCurrency(1.125, "USD"), 2)', output: '"1.13|USD"' }, { input: 'ToString(MakeCurrency(-1.0, "USD"), 3)', output: '"-1.000|USD"' }, { input: 'ToString(MakeCurrency(ToDecimal(NOT_SET), "USD"), 2)', output: "|USD" }, { input: "ToString(MakeCurrency(ToDecimal(NOT_SET), ToString(NOT_SET)), 2)", output: "|" }] }, { description: "AR_FN_STR_TOSTRING_DEC_COLL_LNG_DSC", identifier: "String_ONE toString(Decimal_COLL,Long_ONE)", support: { version: "1.0", resolver: "None" }, returnValue: { description: "AR_FN_STR_TOSTRING_DEC_COLL_LNG_RV", isArray: false, type: "str" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_FN_STR_TOSTRING_DEC_COLL_LNG_PRM_DSC_0", identifier: "valueToConvert", isArray: true, helpDisplayIdx: 0, repeatable: false, required: true, type: "dec" }, { allowNotSet: false, allowCustomJson: false, description: "AR_FN_STR_TOSTRING_DEC_COLL_LNG_PRM_DSC_1", identifier: "decimalPlaces", isArray: false, helpDisplayIdx: 1, max: "28", min: "1", repeatable: false, required: true, type: "int", isDecimalPlaces: true }], examples: [{ input: "ToString(MakeList(2000.5, -1.0), 2)", output: '"2000.50\\n-1.00"', addNewLineInfo: true }, { input: "ToString(MakeList(NOT_SET, -1.0), 4)", output: '"\\n-1.0000"', addNewLineInfo: true }] }, { description: "AR_FN_STR_TOSTRING_CUR_COLL_LNG_DSC", identifier: "String_ONE toString(Currency_COLL,Long_ONE)", support: { version: "1.0", resolver: "None" }, returnValue: { description: "AR_FN_STR_TOSTRING_CUR_COLL_LNG_RV", isArray: false, type: "str" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_STR_TOSTRING_CUR_COLL_LNG_PRM_DSC_0", identifier: "currencyCollectionToConvert", isArray: true, helpDisplayIdx: 0, repeatable: false, required: false, type: "cur" }, { allowNotSet: false, allowCustomJson: false, description: "AR_FN_STR_TOSTRING_CUR_COLL_LNG_PRM_DSC_1", identifier: "decimalPlaces", isArray: false, helpDisplayIdx: 1, max: "28", min: "1", repeatable: false, required: true, type: "int", isDecimalPlaces: true }], examples: [{ input: 'ToString(MakeList(MakeCurrency(2000.50, "USD"), MakeCurrency(-1.00, "USD")), 2)', output: '"2000.50|USD\\n-1.00|USD"', addNewLineInfo: true }, { input: 'ToString(MakeList(MakeCurrency(ToDecimal(NOT_SET), "USD"), MakeCurrency(-1.00, ToString(NOT_SET))), 2)', output: '"|USD\\n-1.00|"', addNewLineInfo: true }] }, { description: "AR_FN_STR_TOSTRING_DEC_COLL_STR_LNG_DSC", identifier: "String_ONE toString(Decimal_COLL,String_ONE,Long_ONE)", support: { version: "1.0", resolver: "None" }, returnValue: { description: "AR_FN_STR_TOSTRING_DEC_COLL_STR_LNG_RV", isArray: false, type: "str" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_FN_STR_TOSTRING_DEC_COLL_STR_LNG_PRM_DSC_0", identifier: "valueToConvert", isArray: true, helpDisplayIdx: 0, repeatable: false, required: true, type: "dec" }, { allowNotSet: true, allowCustomJson: false, description: "AR_FN_STR_TOSTRING_DEC_COLL_STR_LNG_PRM_DSC_1", identifier: "delimiter", isArray: false, helpDisplayIdx: 1, repeatable: false, required: false, type: "str" }, { allowNotSet: false, allowCustomJson: false, description: "AR_FN_STR_TOSTRING_DEC_COLL_STR_LNG_PRM_DSC_2", identifier: "decimalPlaces", isArray: false, helpDisplayIdx: 2, max: "28", min: "1", repeatable: false, required: true, type: "int", isDecimalPlaces: true }], examples: [{ input: 'ToString(MakeList(2000.5, -1.0), "|", 2)', output: '"2000.50|-1.00"' }, { input: 'ToString(MakeList(ToDecimal(NOT_SET), -1.0), "|", 4)', output: '"|-1.0000"' }] }, { description: "AR_FN_STR_TOSTRING_CUR_COLL_STR_LNG_DSC", identifier: "String_ONE toString(Currency_COLL,String_ONE,Long_ONE)", support: { version: "1.0", resolver: "None" }, returnValue: { description: "AR_FN_STR_TOSTRING_CUR_COLL_STR_LNG_RV", isArray: false, type: "str" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_STR_TOSTRING_CUR_COLL_STR_LNG_PRM_DSC_0", identifier: "currencyCollectionToConvert", isArray: true, helpDisplayIdx: 0, repeatable: false, required: false, type: "cur" }, { allowNotSet: true, allowCustomJson: false, description: "AR_FN_STR_TOSTRING_CUR_COLL_STR_LNG_PRM_DSC_1", identifier: "delimiter", isArray: false, helpDisplayIdx: 1, repeatable: false, required: false, type: "str" }, { allowNotSet: false, allowCustomJson: false, description: "AR_FN_STR_TOSTRING_CUR_COLL_STR_LNG_PRM_DSC_2", identifier: "decimalPlaces", isArray: false, helpDisplayIdx: 2, max: "28", min: "1", repeatable: false, required: true, type: "int", isDecimalPlaces: true }], examples: [{ input: 'ToString(MakeList(MakeCurrency(2000.50, "USD"), MakeCurrency(-1.00, "USD")), "^", 2)', output: '"2000.50|USD^-1.00|USD"' }, { input: 'ToString(MakeList(MakeCurrency(ToDecimal(NOT_SET), "USD"), MakeCurrency(-1.00, ToString(NOT_SET))), "^", 2)', output: '"|USD^-1.00|"' }] }] }, toInt: { identifier: "toInt", description: "AR_FN_DSC_TOINT", type: "function", name: "ToInt", category: "cast", overloads: [{ description: "AR_FN_LNG_TOINT_BLN_DSC", identifier: "Long_ONE toInt(Boolean_ONE)", support: { version: "1.0", resolver: "None" }, returnValue: { description: "AR_FN_LNG_TOINT_BLN_RV", isArray: false, type: "int" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_LNG_TOINT_BLN_PRM_DSC_0", identifier: "valueToConvert", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "bln" }], examples: [{ input: "ToInt(true)", output: "1" }, { input: "ToInt(false)", output: "0" }, { input: "ToInt(ToBool(NOT_SET))", output: "AR_FN_LNG_TOINT_BLN_EX_OUT_2" }] }, { description: "AR_FN_LNG_TOINT_DEC_DSC", identifier: "Long_ONE toInt(Decimal_ONE)", support: { version: "1.0", resolver: "None" }, returnValue: { description: "AR_FN_LNG_TOINT_DEC_RV", isArray: false, type: "int" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_LNG_TOINT_DEC_PRM_DSC_0", identifier: "valueToConvert", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "dec" }], examples: [{ input: "ToInt(1.0)", output: "1" }, { input: "ToInt(3.7)", output: "3" }, { input: "ToInt(3.2)", output: "3" }, { input: "ToInt(-5.2)", output: "-5" }, { input: "ToInt(-5.7)", output: "-5" }, { input: "ToInt(ToDecimal(NOT_SET))", output: "AR_FN_LNG_TOINT_DEC_EX_OUT_5" }] }, { description: "AR_FN_LNG_TOINT_STR_DSC", identifier: "Long_ONE toInt(String_ONE)", support: { version: "1.0", resolver: "None" }, returnValue: { description: "AR_FN_LNG_TOINT_STR_RV", isArray: false, type: "int" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_LNG_TOINT_STR_PRM_DSC_0", identifier: "valueToConvert", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "str" }], examples: [{ input: 'ToInt("25")', output: "25" }, { input: 'ToInt("-55")', output: "-55" }, { input: 'ToInt("0")', output: "0" }, { input: "ToInt(ToString(NOT_SET))", output: "AR_FN_LNG_TOINT_STR_EX_OUT_3" }, { input: 'ToInt("")', output: "AR_FN_LNG_TOINT_STR_EX_OUT_4" }, { input: 'ToInt("\xA0\xA0")', output: "AR_FN_LNG_TOINT_STR_EX_OUT_5" }, { input: 'ToInt("A String")', output: "AR_FN_LNG_TOINT_STR_EX_OUT_6" }] }, { description: "AR_FN_LNG_TOINT_STR_LNG_DSC", identifier: "Long_ONE toInt(String_ONE,Long_ONE)", support: { version: "1.0", resolver: "None" }, needsServerInfo: true, returnValue: { description: "AR_FN_LNG_TOINT_STR_LNG_RV", isArray: false, type: "int" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_LNG_TOINT_STR_LNG_PRM_DSC_0", identifier: "valueToConvert", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "str" }, { allowNotSet: true, allowCustomJson: false, description: "AR_FN_LNG_TOINT_STR_LNG_PRM_DSC_1", identifier: "default", isArray: false, helpDisplayIdx: 1, repeatable: false, required: false, type: "int" }], examples: [{ input: 'ToInt("25", 15)', output: "25" }, { input: 'ToInt("five", 20)', output: "20" }, { input: 'ToInt("~0", 10)', output: "10" }, { input: "ToInt(ToString(NOT_SET), 15)", output: "AR_FN_LNG_TOINT_STR_LNG_EX_OUT_3" }, { input: 'ToInt("", 15)', output: "AR_FN_LNG_TOINT_STR_LNG_EX_OUT_4" }, { input: 'ToInt("A String", 12)', output: "12" }] }, { description: "AR_FN_LNG_TOINT_NTS_DSC", identifier: "Long_ONE toInt(Null_ONE)", support: { version: "1.0", resolver: "NotSetToRetType" }, returnValue: { description: "AR_FN_LNG_TOINT_NTS_RV", isArray: false, type: "int" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_LNG_TOINT_NTS_PRM_DSC_0", identifier: "valueToConvert", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "nts" }], examples: [{ input: "ToInt(NOT_SET)", output: "AR_FN_LNG_TOINT_NTS_EX_OUT_0" }] }, { description: "AR_FN_LNG_TOINT_LNG_DSC", identifier: "Long_ONE toInt(Long_ONE)", support: { version: "1.0", resolver: "None" }, returnValue: { description: "AR_FN_LNG_TOINT_LNG_RV", isArray: false, type: "int" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_LNG_TOINT_LNG_PRM_DSC_0", identifier: "valueToReturn", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "int" }], examples: [{ input: "ToInt(5)", output: "5" }] }, { description: "AR_FN_LNG_TOINT_DUR_DSC", identifier: "Long_ONE toInt(Duration_ONE)", support: { version: "1.0", resolver: "None" }, returnValue: { description: "AR_FN_LNG_TOINT_DUR_RV", isArray: false, type: "int" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_LNG_TOINT_DUR_PRM_DSC_0", identifier: "valueToConvert", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "dur" }], examples: [{ input: "ToInt(MakeDuration(0,0,0,1))", output: "1000" }, { input: "ToInt(MakeDuration(0,0,1,0))", output: "60000" }, { input: "ToInt(MakeDuration(0,-1,5,0,500))", output: "-3299500" }, { input: "ToInt(ToDuration(NOT_SET))", output: "AR_FN_LNG_TOINT_DUR_EX_OUT_3" }] }, { description: "AR_FN_LNG_TOINT_JSON_DSC", identifier: "Long_ONE toInt(JSON_ONE)", support: { version: "1.0", resolver: "None" }, needsServerInfo: true, returnValue: { description: "AR_FN_LNG_TOINT_JSON_RV", isArray: false, type: "int" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_LNG_TOINT_JSON_PRM_DSC_0", identifier: "jsonValue", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "jsn" }], examples: [{ input: 'ToInt(JsonParse("5"))', output: "5" }, { input: 'ToInt(JsonParse("-5.2"))', output: "-5" }, { input: 'ToInt(JsonParse("true"))', output: "1" }, { input: 'ToInt(JsonParse(ToString("A" > "B")))', output: "0" }, { input: 'ToInt(JsonParse("null"))', output: "AR_FN_LNG_TOINT_JSON_EX_OUT_4" }, { input: "ToInt(ToJson(NOT_SET))", output: "AR_FN_LNG_TOINT_JSON_EX_OUT_5" }] }, { description: "AR_FN_LNG_TOINT_JSON_LNG_DSC", identifier: "Long_ONE toInt(JSON_ONE,Long_ONE)", support: { version: "1.0", resolver: "None" }, needsServerInfo: true, returnValue: { description: "AR_FN_LNG_TOINT_JSON_LNG_RV", isArray: false, type: "int" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_LNG_TOINT_JSON_LNG_PRM_DSC_0", identifier: "jsonValue", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "jsn" }, { allowNotSet: true, allowCustomJson: false, description: "AR_FN_LNG_TOINT_JSON_LNG_PRM_DSC_1", identifier: "default", isArray: false, helpDisplayIdx: 1, repeatable: false, required: false, type: "int" }], examples: [{ input: 'ToInt(JsonParse("5"), -1)', output: "5" }, { input: 'ToInt(JsonParse("\\"apple\\""), 10)', output: "10" }, { input: 'ToInt(JsonParse("[1, 2]"), 7)', output: "7" }, { input: 'ToInt(JsonParse(ToString("A" > "B")), ToInt(NOT_SET))', output: "0" }, { input: "ToInt(ToJson(NOT_SET), 4)", output: "AR_FN_LNG_TOINT_JSON_LNG_EX_OUT_4" }] }], needsServerInfo: true }, toDecimal: { identifier: "toDecimal", description: "AR_FN_DSC_TODECIMAL", type: "function", name: "ToDecimal", category: "cast", overloads: [{ description: "AR_FN_DEC_TODECIMAL_BLN_DSC", identifier: "Decimal_ONE toDecimal(Boolean_ONE)", support: { version: "1.0", resolver: "None" }, returnValue: { description: "AR_FN_DEC_TODECIMAL_BLN_RV", isArray: false, type: "dec" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_DEC_TODECIMAL_BLN_PRM_DSC_0", identifier: "valueToConvert", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "bln" }], examples: [{ input: "ToDecimal(true)", output: "1.0" }, { input: "ToDecimal(false)", output: "0.0" }, { input: "ToDecimal(ToBool(NOT_SET))", output: "AR_FN_DEC_TODECIMAL_BLN_EX_OUT_2" }] }, { description: "AR_FN_DEC_TODECIMAL_CUR_DSC", identifier: "Decimal_ONE toDecimal(Currency_ONE)", support: { version: "1.0", resolver: "None" }, returnValue: { description: "AR_FN_DEC_TODECIMAL_CUR_RV", isArray: false, type: "dec" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_DEC_TODECIMAL_CUR_PRM_DSC_0", identifier: "valueToConvert", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "cur" }], examples: [{ input: 'ToDecimal(MakeCurrency(5.25, "USD"))', output: "5.25" }, { input: 'ToDecimal(MakeCurrency(2.00, "EUR"))', output: "2.00" }, { input: 'ToDecimal(MakeCurrency(NOT_SET, "USD"))', output: "AR_FN_DEC_TODECIMAL_CUR_EX_OUT_2" }] }, { description: "AR_FN_DEC_TODECIMAL_STR_DSC", identifier: "Decimal_ONE toDecimal(String_ONE)", support: { version: "1.0", resolver: "None" }, returnValue: { description: "AR_FN_DEC_TODECIMAL_STR_RV", isArray: false, type: "dec" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_DEC_TODECIMAL_STR_PRM_DSC_0", identifier: "valueToConvert", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "str" }], examples: [{ input: 'ToDecimal("0.0")', output: "0.0" }, { input: 'ToDecimal("-100.5")', output: "-100.5" }, { input: "ToDecimal(ToString(NOT_SET))", output: "AR_FN_DEC_TODECIMAL_STR_EX_OUT_2" }, { input: 'ToDecimal("")', output: "AR_FN_DEC_TODECIMAL_STR_EX_OUT_3" }, { input: 'ToDecimal("\xA0\xA0")', output: "AR_FN_DEC_TODECIMAL_STR_EX_OUT_4" }, { input: 'ToDecimal("A String")', output: "AR_FN_DEC_TODECIMAL_STR_EX_OUT_5" }] }, { description: "AR_FN_DEC_TODECIMAL_STR_DEC_DSC", identifier: "Decimal_ONE toDecimal(String_ONE,Decimal_ONE)", support: { version: "1.0", resolver: "None" }, needsServerInfo: true, returnValue: { description: "AR_FN_DEC_TODECIMAL_STR_DEC_RV", isArray: false, type: "dec" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_DEC_TODECIMAL_STR_DEC_PRM_DSC_0", identifier: "valueToConvert", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "str" }, { allowNotSet: true, allowCustomJson: false, description: "AR_FN_DEC_TODECIMAL_STR_DEC_PRM_DSC_1", identifier: "default", isArray: false, helpDisplayIdx: 1, repeatable: false, required: false, type: "dec" }], examples: [{ input: 'ToDecimal("one hundred point five", 7.5)', output: "7.5" }, { input: 'ToDecimal("0.0", 15.0)', output: "0.0" }, { input: "ToDecimal(ToString(NOT_SET), 10.75)", output: "AR_FN_DEC_TODECIMAL_STR_DEC_EX_OUT_2" }, { input: 'ToDecimal("", -5.25)', output: "AR_FN_DEC_TODECIMAL_STR_DEC_EX_OUT_3" }, { input: 'ToDecimal("A String", -12.15)', output: "-12.15" }] }, { description: "AR_FN_DEC_TODECIMAL_LNG_DSC", identifier: "Decimal_ONE toDecimal(Long_ONE)", support: { version: "1.0", resolver: "None" }, returnValue: { description: "AR_FN_DEC_TODECIMAL_LNG_RV", isArray: false, type: "dec" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_DEC_TODECIMAL_LNG_PRM_DSC_0", identifier: "valueToConvert", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "int" }], examples: [{ input: "ToDecimal(100)", output: "100.0" }, { input: "ToDecimal(-1010)", output: "-1010.0" }, { input: "ToDecimal(0)", output: "0.0" }] }, { description: "AR_FN_DEC_TODECIMAL_NTS_DSC", identifier: "Decimal_ONE toDecimal(Null_ONE)", support: { version: "1.0", resolver: "NotSetToRetType" }, returnValue: { description: "AR_FN_DEC_TODECIMAL_NTS_RV", isArray: false, type: "dec" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_DEC_TODECIMAL_NTS_PRM_DSC_0", identifier: "valueToConvert", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "nts" }], examples: [{ input: "ToDecimal(NOT_SET)", output: "AR_FN_DEC_TODECIMAL_NTS_EX_OUT_0" }] }, { description: "AR_FN_DEC_TODECIMAL_DEC_DSC", identifier: "Decimal_ONE toDecimal(Decimal_ONE)", support: { version: "1.0", resolver: "None" }, returnValue: { description: "AR_FN_DEC_TODECIMAL_DEC_RV", isArray: false, type: "dec" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_DEC_TODECIMAL_DEC_PRM_DSC_0", identifier: "valueToReturn", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "dec" }], examples: [{ input: "ToDecimal(5.5)", output: "5.5" }] }, { description: "AR_FN_DEC_TODECIMAL_JSON_DSC", identifier: "Decimal_ONE toDecimal(JSON_ONE)", support: { version: "1.0", resolver: "None" }, needsServerInfo: true, returnValue: { description: "AR_FN_DEC_TODECIMAL_JSON_RV", isArray: false, type: "dec" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_DEC_TODECIMAL_JSON_PRM_DSC_0", identifier: "jsonValue", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "jsn" }], examples: [{ input: 'ToDecimal(JsonParse("5"))', output: "5.0" }, { input: 'ToDecimal(JsonParse("-5.2"))', output: "-5.2" }, { input: 'ToDecimal(JsonParse("true"))', output: "1.0" }, { input: 'ToDecimal(JsonParse("null"))', output: "AR_FN_DEC_TODECIMAL_JSON_EX_OUT_3" }, { input: "ToDecimal(ToJson(NOT_SET))", output: "AR_FN_DEC_TODECIMAL_JSON_EX_OUT_4" }] }, { description: "AR_FN_DEC_TODECIMAL_JSON_DEC_DSC", identifier: "Decimal_ONE toDecimal(JSON_ONE,Decimal_ONE)", support: { version: "1.0", resolver: "None" }, needsServerInfo: true, returnValue: { description: "AR_FN_DEC_TODECIMAL_JSON_DEC_RV", isArray: false, type: "dec" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_DEC_TODECIMAL_JSON_DEC_PRM_DSC_0", identifier: "jsonValue", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "jsn" }, { allowNotSet: true, allowCustomJson: false, description: "AR_FN_DEC_TODECIMAL_JSON_DEC_PRM_DSC_1", identifier: "default", isArray: false, helpDisplayIdx: 1, repeatable: false, required: false, type: "dec" }], examples: [{ input: 'ToDecimal(JsonParse("\\"apple\\""), 2.25)', output: "2.25" }, { input: 'ToDecimal(JsonParse("-5.2"), 0.0)', output: "-5.2" }, { input: "ToDecimal(ToJson(NOT_SET), 1.0)", output: "AR_FN_DEC_TODECIMAL_JSON_DEC_EX_OUT_2" }, { input: 'ToDecimal(JsonParse("[1,false]"), 1.5)', output: "1.5" }] }], needsServerInfo: true }, toDate: { identifier: "toDate", description: "AR_FN_DSC_TODATE", type: "function", name: "ToDate", category: "cast", overloads: [{ description: "AR_FN_DATE_TODATE_STR_DSC", identifier: "Date_ONE toDate(String_ONE)", support: { version: "1.0", resolver: "None" }, needsServerInfo: true, returnValue: { description: "AR_FN_DATE_TODATE_STR_RV", isArray: false, type: "dat" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_DATE_TODATE_STR_PRM_DSC_0", identifier: "text", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "str" }], examples: [{ input: 'ToDate("2009-01-10")', output: "AR_FN_DATE_TODATE_STR_EX_OUT_0" }, { input: "ToDate(ToString(NOT_SET))", output: "AR_FN_DATE_TODATE_STR_EX_OUT_1" }] }, { description: "AR_FN_DATE_TODATE_NTS_DSC", identifier: "Date_ONE toDate(Null_ONE)", support: { version: "1.0", resolver: "NotSetToRetType" }, needsServerInfo: true, returnValue: { description: "AR_FN_DATE_TODATE_NTS_RV", isArray: false, type: "dat" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_DATE_TODATE_NTS_PRM_DSC_0", identifier: "valueToConvert", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "nts" }], examples: [{ input: "ToDate(NOT_SET)", output: "AR_FN_DATE_TODATE_NTS_EX_OUT_0" }] }, { description: "AR_FN_DATE_TODATE_DTM_DSC", identifier: "Date_ONE toDate(DateTime_ONE)", support: { version: "1.0", resolver: "None" }, needsServerInfo: true, returnValue: { description: "AR_FN_DATE_TODATE_DTM_RV", isArray: false, type: "dat" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_DATE_TODATE_DTM_PRM_DSC_0", identifier: "valueToConvert", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "dtm" }], examples: [{ input: "ToDate(MakeDateTime(2012, 9, 22, 2, 30, 0))", output: "AR_FN_DATE_TODATE_DTM_EX_OUT_0" }, { input: "ToDate(ToDateTime(NOT_SET))", output: "AR_FN_DATE_TODATE_DTM_EX_OUT_1" }] }, { description: "AR_FN_DATE_TODATE_DATE_DSC", identifier: "Date_ONE toDate(Date_ONE)", support: { version: "1.0", resolver: "None" }, needsServerInfo: true, returnValue: { description: "AR_FN_DATE_TODATE_DATE_RV", isArray: false, type: "dat" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_DATE_TODATE_DATE_PRM_DSC_0", identifier: "valueToReturn", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "dat" }], examples: [{ input: "ToDate(MakeDate(2003, 1, 1))", output: "AR_FN_DATE_TODATE_DATE_EX_OUT_0" }, { input: "ToDate(ToDate(NOT_SET))", output: "AR_FN_DATE_TODATE_DATE_EX_OUT_1" }] }], needsServerInfo: true }, toDateTime: { identifier: "toDateTime", description: "AR_FN_DSC_TODATETIME", type: "function", name: "ToDateTime", category: "cast", overloads: [{ description: "AR_FN_DTM_TODATETIME_STR_DSC", identifier: "DateTime_ONE toDateTime(String_ONE)", support: { version: "1.0", resolver: "None" }, returnValue: { description: "AR_FN_DTM_TODATETIME_STR_RV", isArray: false, type: "dtm" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_DTM_TODATETIME_STR_PRM_DSC_0", identifier: "text", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "str" }], examples: [{ input: 'ToDateTime("2009-01-10T06:30:00Z")', output: "AR_FN_DTM_TODATETIME_STR_EX_OUT_0" }, { input: 'ToDateTime("2009-01-10T06:30:00-07:00")', output: "AR_FN_DTM_TODATETIME_STR_EX_OUT_1" }, { input: 'ToDateTime("2009-01-10T06:30:00+02:00")', output: "AR_FN_DTM_TODATETIME_STR_EX_OUT_2" }, { input: "ToDateTime(ToString(NOT_SET))", output: "AR_FN_DTM_TODATETIME_STR_EX_OUT_3" }, { input: 'ToDateTime("2009T06:30:00Z")', output: "AR_FN_DTM_TODATETIME_STR_EX_OUT_4" }, { input: 'ToDateTime("2010-03-20T06:30Z")', output: "AR_FN_DTM_TODATETIME_STR_EX_OUT_5" }, { input: 'ToDateTime("2011-03T06:30Z")', output: "AR_FN_DTM_TODATETIME_STR_EX_OUT_6" }, { input: 'ToDateTime("2009T06:30Z")', output: "AR_FN_DTM_TODATETIME_STR_EX_OUT_7" }, { input: 'ToDateTime("2012T01:30-05:00")', output: "AR_FN_DTM_TODATETIME_STR_EX_OUT_8" }, { input: 'ToDateTime("T06:30:00Z")', output: "AR_FN_DTM_TODATETIME_STR_EX_OUT_9" }, { input: 'ToDateTime("T06:30Z")', output: "AR_FN_DTM_TODATETIME_STR_EX_OUT_10" }, { input: 'ToDateTime("T06Z")', output: "AR_FN_DTM_TODATETIME_STR_EX_OUT_11" }, { input: 'ToDateTime("T06")', output: "AR_FN_DTM_TODATETIME_STR_EX_OUT_12" }, { input: 'ToDateTime("2009-03-20")', output: "AR_FN_DTM_TODATETIME_STR_EX_OUT_13" }, { input: 'ToDateTime("2009-03")', output: "AR_FN_DTM_TODATETIME_STR_EX_OUT_14" }, { input: 'ToDateTime("2009")', output: "AR_FN_DTM_TODATETIME_STR_EX_OUT_15" }] }, { description: "AR_FN_DTM_TODATETIME_LNG_DSC", identifier: "DateTime_ONE toDateTime(Long_ONE)", support: { version: "1.0", resolver: "None" }, returnValue: { description: "AR_FN_DTM_TODATETIME_LNG_RV", isArray: false, type: "dtm" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_DTM_TODATETIME_LNG_PRM_DSC_0", identifier: "valueToConvert", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "int" }], examples: [{ input: "ToDateTime(3600)", output: "AR_FN_DTM_TODATETIME_LNG_EX_OUT_0" }, { input: "ToDateTime(ToInt(NOT_SET))", output: "AR_FN_DTM_TODATETIME_LNG_EX_OUT_1" }] }, { description: "AR_FN_DTM_TODATETIME_NTS_DSC", identifier: "DateTime_ONE toDateTime(Null_ONE)", support: { version: "1.0", resolver: "NotSetToRetType" }, returnValue: { description: "AR_FN_DTM_TODATETIME_NTS_RV", isArray: false, type: "dtm" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_DTM_TODATETIME_NTS_PRM_DSC_0", identifier: "valueToConvert", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "nts" }], examples: [{ input: "ToDateTime(NOT_SET)", output: "AR_FN_DTM_TODATETIME_NTS_EX_OUT_0" }] }, { description: "AR_FN_DTM_TODATETIME_DTM_DSC", identifier: "DateTime_ONE toDateTime(DateTime_ONE)", support: { version: "1.0", resolver: "None" }, returnValue: { description: "AR_FN_DTM_TODATETIME_DTM_RV", isArray: false, type: "dtm" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_DTM_TODATETIME_DTM_PRM_DSC_0", identifier: "valueToReturn", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "dtm" }], examples: [{ input: "ToDateTime(MakeDateTime(2003, 1, 1, 0, 0, 0))", output: "AR_FN_DTM_TODATETIME_DTM_EX_OUT_0" }] }, { description: "AR_FN_DTM_TODATETIME_JSON_DSC", identifier: "DateTime_ONE toDateTime(JSON_ONE)", support: { version: "1.0", resolver: "None" }, needsServerInfo: true, returnValue: { description: "AR_FN_DTM_TODATETIME_JSON_RV", isArray: false, type: "dtm" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_DTM_TODATETIME_JSON_PRM_DSC_0", identifier: "valueToConvert", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "jsn" }], examples: [{ input: 'ToDateTime(JsonParse("3600"))', output: "AR_FN_DTM_TODATETIME_JSON_EX_OUT_0" }, { input: 'ToDateTime(JsonParse("3600.0258"))', output: "AR_FN_DTM_TODATETIME_JSON_EX_OUT_1" }, { input: 'ToDateTime(JsonParse("\\"2009-01-10T06:30:00Z\\""))', output: "AR_FN_DTM_TODATETIME_JSON_EX_OUT_2" }, { input: 'ToDateTime(JsonParse("\\"2009-01-10T06:30:00+02:00\\""))', output: "AR_FN_DTM_TODATETIME_JSON_EX_OUT_3" }, { input: 'ToDateTime(JsonParse("\\"2009T06:30:00Z\\""))', output: "AR_FN_DTM_TODATETIME_JSON_EX_OUT_4" }, { input: 'ToDateTime(JsonParse("\\"2010-03-20T06:30Z\\""))', output: "AR_FN_DTM_TODATETIME_JSON_EX_OUT_5" }, { input: 'ToDateTime(JsonParse("\\"2011-03T06:30Z\\""))', output: "AR_FN_DTM_TODATETIME_JSON_EX_OUT_6" }, { input: 'ToDateTime(JsonParse("\\"2009T06:30Z\\""))', output: "AR_FN_DTM_TODATETIME_JSON_EX_OUT_7" }, { input: 'ToDateTime(JsonParse("\\"2012T01:30-05:00\\""))', output: "AR_FN_DTM_TODATETIME_JSON_EX_OUT_8" }, { input: 'ToDateTime(JsonParse("\\"T06:30:00Z\\""))', output: "AR_FN_DTM_TODATETIME_JSON_EX_OUT_9" }, { input: 'ToDateTime(JsonParse("\\"T06:30Z\\""))', output: "AR_FN_DTM_TODATETIME_JSON_EX_OUT_10" }, { input: 'ToDateTime(JsonParse("\\"T06Z\\""))', output: "AR_FN_DTM_TODATETIME_JSON_EX_OUT_11" }, { input: 'ToDateTime(JsonParse("\\"T06\\""))', output: "AR_FN_DTM_TODATETIME_JSON_EX_OUT_12" }, { input: 'ToDateTime(JsonParse("\\"2009-03-20\\""))', output: "AR_FN_DTM_TODATETIME_JSON_EX_OUT_13" }, { input: 'ToDateTime(JsonParse("\\"2009-03\\""))', output: "AR_FN_DTM_TODATETIME_JSON_EX_OUT_14" }, { input: 'ToDateTime(JsonParse("\\"2009\\""))', output: "AR_FN_DTM_TODATETIME_JSON_EX_OUT_15" }, { input: 'ToDateTime(JsonParse("null"))', output: "AR_FN_DTM_TODATETIME_JSON_EX_OUT_16" }, { input: "ToDateTime(ToJson(NOT_SET))", output: "AR_FN_DTM_TODATETIME_JSON_EX_OUT_17" }] }, { description: "AR_FN_DTM_TODATETIME_JSON_DTM_DSC", identifier: "DateTime_ONE toDateTime(JSON_ONE,DateTime_ONE)", support: { version: "1.0", resolver: "None" }, needsServerInfo: true, returnValue: { description: "AR_FN_DTM_TODATETIME_JSON_DTM_RV", isArray: false, type: "dtm" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_DTM_TODATETIME_JSON_DTM_PRM_DSC_0", identifier: "valueToConvert", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "jsn" }, { allowNotSet: true, allowCustomJson: false, description: "AR_FN_DTM_TODATETIME_JSON_DTM_PRM_DSC_1", identifier: "default", isArray: false, helpDisplayIdx: 1, repeatable: false, required: false, type: "dtm" }], examples: [{ input: 'ToDateTime(JsonParse("3600.75"), MakeDateTime(2009, 3, 20, 12, 00, 00))', output: "AR_FN_DTM_TODATETIME_JSON_DTM_EX_OUT_0" }, { input: 'ToDateTime(JsonParse("\\"2009-01-10T06:30:00Z\\""), MakeDateTime(2009, 3, 20, 12, 00, 00))', output: "AR_FN_DTM_TODATETIME_JSON_DTM_EX_OUT_1" }, { input: 'ToDateTime(JsonParse("\\"September 5th, 2022\\""), MakeDateTime(2019, 4, 20, 12, 00, 00))', output: "AR_FN_DTM_TODATETIME_JSON_DTM_EX_OUT_2" }, { input: 'ToDateTime(JsonParse("\\"2509-03\\""), MakeDateTime(2011, 2, 20, 12, 00, 00))', output: "AR_FN_DTM_TODATETIME_JSON_DTM_EX_OUT_3" }, { input: 'ToDateTime(JsonParse("\\"two thousand nine\\""), MakeDateTime(2009, 3, 15, 12, 00, 00))', output: "AR_FN_DTM_TODATETIME_JSON_DTM_EX_OUT_4" }, { input: 'ToDateTime(JsonParse("null"), MakeDateTime(2009, 3, 20, 12, 00, 00))', output: "AR_FN_DTM_TODATETIME_JSON_DTM_EX_OUT_5" }] }], needsServerInfo: true }, toTime: { identifier: "toTime", description: "AR_FN_DSC_TOTIME", type: "function", name: "ToTime", category: "cast", overloads: [{ description: "AR_FN_TIME_TOTIME_STR_DSC", identifier: "Time_ONE toTime(String_ONE)", support: { version: "1.0", resolver: "None" }, needsServerInfo: true, returnValue: { description: "AR_FN_TIME_TOTIME_STR_RV", isArray: false, type: "tim" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_TIME_TOTIME_STR_PRM_DSC_0", identifier: "text", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "str" }], examples: [{ input: 'ToTime("02:30:15")', output: "AR_FN_TIME_TOTIME_STR_EX_OUT_0" }, { input: "ToTime(ToString(NOT_SET))", output: "AR_FN_TIME_TOTIME_STR_EX_OUT_1" }, { input: 'ToTime("02:30")', output: "AR_FN_TIME_TOTIME_STR_EX_OUT_2" }, { input: 'ToTime("14:59:00")', output: "AR_FN_TIME_TOTIME_STR_EX_OUT_3" }] }, { description: "AR_FN_TIME_TOTIME_NTS_DSC", identifier: "Time_ONE toTime(Null_ONE)", support: { version: "1.0", resolver: "NotSetToRetType" }, needsServerInfo: true, returnValue: { description: "AR_FN_TIME_TOTIME_NTS_RV", isArray: false, type: "tim" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_TIME_TOTIME_NTS_PRM_DSC_0", identifier: "valueToConvert", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "nts" }], examples: [{ input: "ToTime(NOT_SET)", output: "AR_FN_TIME_TOTIME_NTS_EX_OUT_0" }] }, { description: "AR_FN_TIME_TOTIME_TIME_DSC", identifier: "Time_ONE toTime(Time_ONE)", support: { version: "1.0", resolver: "None" }, needsServerInfo: true, returnValue: { description: "AR_FN_TIME_TOTIME_TIME_RV", isArray: false, type: "tim" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_TIME_TOTIME_TIME_PRM_DSC_0", identifier: "valueToReturn", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "tim" }], examples: [{ input: "ToTime(MakeTime(2, 45, 0))", output: "AR_FN_TIME_TOTIME_TIME_EX_OUT_0" }, { input: "ToTime(ToTime(NOT_SET))", output: "AR_FN_TIME_TOTIME_TIME_EX_OUT_1" }] }, { description: "AR_FN_TIME_TOTIME_DTM_DSC", identifier: "Time_ONE toTime(DateTime_ONE)", support: { version: "1.0", resolver: "None" }, needsServerInfo: true, returnValue: { description: "AR_FN_TIME_TOTIME_DTM_RV", isArray: false, type: "tim" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_TIME_TOTIME_DTM_PRM_DSC_0", identifier: "valueToConvert", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "dtm" }], examples: [{ input: "ToTime(MakeDateTime(2012, 9, 22, 3, 5, 0))", output: "AR_FN_TIME_TOTIME_DTM_EX_OUT_0" }, { input: "ToTime(ToDateTime(NOT_SET))", output: "AR_FN_TIME_TOTIME_DTM_EX_OUT_1" }] }], needsServerInfo: true }, toDivision: { identifier: "toDivision", description: "AR_FN_DSC_TODIVISION", type: "function", name: "ToDivision", category: "cast", overloads: [{ description: "AR_FN_DIVISION_TODIVISION_DIVISION_DSC", identifier: "Division_ONE toDivision(Division_ONE)", support: { version: "1.0", resolver: "None" }, needsServerInfo: true, returnValue: { description: "AR_FN_DIVISION_TODIVISION_DIVISION_RV", isArray: false, type: "dvn" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_DIVISION_TODIVISION_DIVISION_PRM_DSC_0", identifier: "valueToReturn", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "dvn" }], examples: [{ input: "ToDivision(ToDivision(NOT_SET))", output: "AR_FN_DIVISION_TODIVISION_DIVISION_EX_OUT_0" }] }, { description: "AR_FN_DIVISION_TODIVISION_NTS_DSC", identifier: "Division_ONE toDivision(Null_ONE)", support: { version: "1.0", resolver: "NotSetToRetType" }, needsServerInfo: true, returnValue: { description: "AR_FN_DIVISION_TODIVISION_NTS_RV", isArray: false, type: "dvn" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_DIVISION_TODIVISION_NTS_PRM_DSC_0", identifier: "valueToConvert", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "nts" }], examples: [{ input: "ToDivision(NOT_SET)", output: "AR_FN_DIVISION_TODIVISION_NTS_EX_OUT_0" }] }], needsServerInfo: true }, toDuration: { identifier: "toDuration", description: "AR_FN_DSC_TODURATION", type: "function", name: "ToDuration", category: "cast", overloads: [{ description: "AR_FN_DUR_TODURATION_STR_DSC", identifier: "Duration_ONE toDuration(String_ONE)", support: { version: "1.0", resolver: "None" }, returnValue: { description: "AR_FN_DUR_TODURATION_STR_RV", isArray: false, type: "dur" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_DUR_TODURATION_STR_PRM_DSC_0", identifier: "valueToConvert", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "str" }], examples: [{ input: 'ToDuration("PT0S")', output: "AR_FN_DUR_TODURATION_STR_EX_OUT_0" }, { input: 'ToDuration("P1DT3H")', output: "AR_FN_DUR_TODURATION_STR_EX_OUT_1" }, { input: 'ToDuration("-P1DT3H")', output: "AR_FN_DUR_TODURATION_STR_EX_OUT_2" }, { input: 'ToDuration("PT1H15M30.250S")', output: "AR_FN_DUR_TODURATION_STR_EX_OUT_3" }, { input: 'ToDuration("PT1H15M30.250567S")', output: "AR_FN_DUR_TODURATION_STR_EX_OUT_4" }, { input: "ToDuration(ToString(NOT_SET))", output: "AR_FN_DUR_TODURATION_STR_EX_OUT_5" }] }, { description: "AR_FN_DUR_TODURATION_LNG_DSC", identifier: "Duration_ONE toDuration(Long_ONE)", support: { version: "1.0", resolver: "None" }, returnValue: { description: "AR_FN_DUR_TODURATION_LNG_RV", isArray: false, type: "dur" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_DUR_TODURATION_LNG_PRM_DSC_0", identifier: "valueToConvert", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "int" }], examples: [{ input: "ToDuration(1000 * 60 * 60)", output: "AR_FN_DUR_TODURATION_LNG_EX_OUT_0" }, { input: "ToDuration(1000 * 60 * 60 * 24)", output: "AR_FN_DUR_TODURATION_LNG_EX_OUT_1" }, { input: "ToDuration(ToInt(NOT_SET))", output: "AR_FN_DUR_TODURATION_LNG_EX_OUT_2" }] }, { description: "AR_FN_DUR_TODURATION_NTS_DSC", identifier: "Duration_ONE toDuration(Null_ONE)", support: { version: "1.0", resolver: "NotSetToRetType" }, returnValue: { description: "AR_FN_DUR_TODURATION_NTS_RV", isArray: false, type: "dur" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_DUR_TODURATION_NTS_PRM_DSC_0", identifier: "valueToConvert", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "nts" }], examples: [{ input: "ToDuration(NOT_SET)", output: "AR_FN_DUR_TODURATION_NTS_EX_OUT_0" }] }, { description: "AR_FN_DUR_TODURATION_DUR_DSC", identifier: "Duration_ONE toDuration(Duration_ONE)", support: { version: "1.0", resolver: "None" }, returnValue: { description: "AR_FN_DUR_TODURATION_DUR_RV", isArray: false, type: "dur" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_DUR_TODURATION_DUR_PRM_DSC_0", identifier: "valueToReturn", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "dur" }], examples: [{ input: "ToDuration(MakeDuration(0, 1, 0, 0))", output: "AR_FN_DUR_TODURATION_DUR_EX_OUT_0" }] }] }, toTimeslot: { identifier: "toTimeslot", description: "AR_FN_DSC_TOTIMESLOT", type: "function", name: "ToTimeslot", category: "datetime", overloads: [{ description: "AR_FN_TIMESLOT_TOTIMESLOT_TIMESLOT_DSC", identifier: "Timeslot_ONE toTimeslot(Timeslot_ONE)", support: { version: "1.0", resolver: "None" }, supportedFlowTypes: { digitalbot: "digitalbot" }, featureConfigName: "botFlowsMessagingDatePicker", needsServerInfo: true, returnValue: { description: "AR_FN_TIMESLOT_TOTIMESLOT_TIMESLOT_RV", isArray: false, type: "tsl" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_TIMESLOT_TOTIMESLOT_TIMESLOT_PRM_DSC_0", identifier: "valueToReturn", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "tsl" }], examples: [{ input: "ToTimeslot(ToTimeslot(NOT_SET))", output: "AR_FN_TIMESLOT_TOTIMESLOT_TIMESLOT_EX_OUT_0" }] }, { description: "AR_FN_TIMESLOT_TOTIMESLOT_STR_DSC", identifier: "Timeslot_ONE toTimeslot(String_ONE)", support: { version: "1.0", resolver: "None" }, supportedFlowTypes: { digitalbot: "digitalbot" }, featureConfigName: "botFlowsMessagingDatePicker", needsServerInfo: true, returnValue: { description: "AR_FN_TIMESLOT_TOTIMESLOT_STR_RV", isArray: false, type: "tsl" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_TIMESLOT_TOTIMESLOT_STR_PRM_DSC_0", identifier: "valueToConvert", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "str" }], examples: [{ input: 'ToTimeslot("2009-01-10T06:30:00.000Z|PT1H")', output: "AR_FN_TIMESLOT_TOTIMESLOT_STR_EX_OUT_0" }] }, { description: "AR_FN_TIMESLOT_TOTIMESLOT_NTS_DSC", identifier: "Timeslot_ONE toTimeslot(Null_ONE)", support: { version: "1.0", resolver: "NotSetToRetType" }, supportedFlowTypes: { digitalbot: "digitalbot" }, featureConfigName: "botFlowsMessagingDatePicker", needsServerInfo: true, returnValue: { description: "AR_FN_TIMESLOT_TOTIMESLOT_NTS_RV", isArray: false, type: "tsl" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_TIMESLOT_TOTIMESLOT_NTS_PRM_DSC_0", identifier: "valueToConvert", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "nts" }], examples: [{ input: "ToTimeslot(NOT_SET)", output: "AR_FN_TIMESLOT_TOTIMESLOT_NTS_EX_OUT_0" }] }], needsServerInfo: true }, toGrammar: { identifier: "toGrammar", description: "AR_FN_DSC_TOGRAMMAR", type: "function", name: "ToGrammar", category: "cast", overloads: [{ description: "AR_FN_GRAMMAR_TOGRAMMAR_STR_DSC", identifier: "Grammar_ONE toGrammar(String_ONE)", support: { version: "1.0", resolver: "None" }, supportedFlowTypes: { bot: "bot", voice: "voice" }, hidden: true, returnValue: { description: "AR_FN_GRAMMAR_TOGRAMMAR_STR_RV", isArray: false, type: "gmr" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_GRAMMAR_TOGRAMMAR_STR_PRM_DSC_0", identifier: "GrammarName", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "str" }] }, { description: "AR_FN_GRAMMAR_TOGRAMMAR_NTS_DSC", identifier: "Grammar_ONE toGrammar(Null_ONE)", support: { version: "1.0", resolver: "NotSetToRetType" }, supportedFlowTypes: { bot: "bot", voice: "voice" }, needsServerInfo: true, returnValue: { description: "AR_FN_GRAMMAR_TOGRAMMAR_NTS_RV", isArray: false, type: "gmr" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_GRAMMAR_TOGRAMMAR_NTS_PRM_DSC_0", identifier: "valueToConvert", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "nts" }], examples: [{ input: "ToGrammar(NOT_SET)", output: "AR_FN_GRAMMAR_TOGRAMMAR_NTS_EX_OUT_0" }] }, { description: "AR_FN_GRAMMAR_TOGRAMMAR_GRAMMAR_DSC", identifier: "Grammar_ONE toGrammar(Grammar_ONE)", support: { version: "1.0", resolver: "None" }, supportedFlowTypes: { bot: "bot", voice: "voice" }, needsServerInfo: true, returnValue: { description: "AR_FN_GRAMMAR_TOGRAMMAR_GRAMMAR_RV", isArray: false, type: "gmr" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_GRAMMAR_TOGRAMMAR_GRAMMAR_PRM_DSC_0", identifier: "valueToReturn", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "gmr" }], examples: [{ input: "ToGrammar(ToGrammar(NOT_SET))", output: "AR_FN_GRAMMAR_TOGRAMMAR_GRAMMAR_EX_OUT_0" }] }], needsServerInfo: true }, toImage: { identifier: "toImage", description: "AR_FN_DSC_TOIMAGE", type: "function", name: "ToImage", category: "cast", overloads: [{ description: "AR_FN_IMAGE_TOIMAGE_IMAGE_DSC", identifier: "Image_ONE toImage(Image_ONE)", support: { version: "1.0", resolver: "None" }, supportedFlowTypes: { commonmodule: "commonmodule", digitalbot: "digitalbot" }, needsServerInfo: true, returnValue: { description: "AR_FN_IMAGE_TOIMAGE_IMAGE_RV", isArray: false, type: "img" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_IMAGE_TOIMAGE_IMAGE_PRM_DSC_0", identifier: "valueToReturn", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "img" }], examples: [{ input: "ToImage(ToImage(NOT_SET))", output: "AR_FN_IMAGE_TOIMAGE_IMAGE_EX_OUT_0" }] }, { description: "AR_FN_IMAGE_TOIMAGE_NTS_DSC", identifier: "Image_ONE toImage(Null_ONE)", support: { version: "1.0", resolver: "NotSetToRetType" }, supportedFlowTypes: { commonmodule: "commonmodule", digitalbot: "digitalbot" }, needsServerInfo: true, returnValue: { description: "AR_FN_IMAGE_TOIMAGE_NTS_RV", isArray: false, type: "img" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_IMAGE_TOIMAGE_NTS_PRM_DSC_0", identifier: "valueToConvert", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "nts" }], examples: [{ input: "ToImage(NOT_SET)", output: "AR_FN_IMAGE_TOIMAGE_NTS_EX_OUT_0" }] }, { description: "AR_FN_IMAGE_TOIMAGE_RESPONSEASSET_DSC", identifier: "Image_ONE toImage(ResponseAsset_ONE)", support: { version: "1.0", resolver: "None" }, supportedFlowTypes: { commonmodule: "commonmodule", digitalbot: "digitalbot" }, needsServerInfo: true, returnValue: { description: "AR_FN_IMAGE_TOIMAGE_RESPONSEASSET_RV", isArray: false, type: "img" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_IMAGE_TOIMAGE_RESPONSEASSET_PRM_DSC_0", identifier: "valueToConvert", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "rpa" }], examples: [{ input: "ToImage(Flow.ResponseAsset)", output: "AR_FN_IMAGE_TOIMAGE_RESPONSEASSET_EX_OUT_0" }] }, { description: "AR_FN_IMAGE_TOIMAGE_RESPONSEASSET_IMAGE_DSC", identifier: "Image_ONE toImage(ResponseAsset_ONE,Image_ONE)", support: { version: "1.0", resolver: "None" }, supportedFlowTypes: { commonmodule: "commonmodule", digitalbot: "digitalbot" }, needsServerInfo: true, returnValue: { description: "AR_FN_IMAGE_TOIMAGE_RESPONSEASSET_IMAGE_RV", isArray: false, type: "img" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_IMAGE_TOIMAGE_RESPONSEASSET_IMAGE_PRM_DSC_0", identifier: "valueToConvert", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "rpa" }, { allowNotSet: true, allowCustomJson: false, description: "AR_FN_IMAGE_TOIMAGE_RESPONSEASSET_IMAGE_PRM_DSC_1", identifier: "default", isArray: false, helpDisplayIdx: 1, repeatable: false, required: false, type: "img" }], examples: [{ input: 'ToImage(Flow.ResponseAsset, MakeImageFromUrl("https://www.genesys.com/media/genesys-logo.png"))', output: "AR_FN_IMAGE_TOIMAGE_RESPONSEASSET_IMAGE_EX_OUT_0" }, { input: 'ToImage(ToResponseAsset(NOT_SET), MakeImageFromUrl("https://www.genesys.com/media/genesys-logo.png"))', output: "AR_FN_IMAGE_TOIMAGE_RESPONSEASSET_IMAGE_EX_OUT_1" }, { input: 'ToImage(Flow.ResponseAssetThatCannotBeConvertedToImage, MakeImageFromUrl("https://www.genesys.com/media/genesys-logo.png"))', output: "AR_FN_IMAGE_TOIMAGE_RESPONSEASSET_IMAGE_EX_OUT_2" }] }], needsServerInfo: true }, toImageCollection: { identifier: "toImageCollection", description: "AR_FN_DSC_TOIMAGECOLLECTION", type: "function", name: "ToImageCollection", category: "cast", overloads: [{ description: "AR_FN_IMAGE_COLL_TOIMAGECOLLECTION_RESPONSEASSET_COLL_DSC", identifier: "Image_COLL toImageCollection(ResponseAsset_COLL)", support: { version: "1.0", resolver: "None" }, supportedFlowTypes: { commonmodule: "commonmodule", digitalbot: "digitalbot" }, featureConfigName: "cannedResponseAttachmentsPostGaFeature", needsServerInfo: true, returnValue: { description: "AR_FN_IMAGE_COLL_TOIMAGECOLLECTION_RESPONSEASSET_COLL_RV", isArray: true, type: "img" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_FN_IMAGE_COLL_TOIMAGECOLLECTION_RESPONSEASSET_COLL_PRM_DSC_0", identifier: "valueToConvert", isArray: true, helpDisplayIdx: 0, repeatable: false, required: true, type: "rpa" }], examples: [{ input: "ToImageCollection(MakeList(Flow.ResponseAsset, Flow.ResponseAsset2))", output: "AR_FN_IMAGE_COLL_TOIMAGECOLLECTION_RESPONSEASSET_COLL_EX_OUT_0" }] }], needsServerInfo: true }, toResponseAsset: { identifier: "toResponseAsset", description: "AR_FN_DSC_TORESPONSEASSET", type: "function", name: "ToResponseAsset", category: "cast", overloads: [{ description: "AR_FN_RESPONSEASSET_TORESPONSEASSET_RESPONSEASSET_DSC", identifier: "ResponseAsset_ONE toResponseAsset(ResponseAsset_ONE)", support: { version: "1.0", resolver: "None" }, needsServerInfo: true, returnValue: { description: "AR_FN_RESPONSEASSET_TORESPONSEASSET_RESPONSEASSET_RV", isArray: false, type: "rpa" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_RESPONSEASSET_TORESPONSEASSET_RESPONSEASSET_PRM_DSC_0", identifier: "valueToReturn", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "rpa" }], examples: [{ input: "ToResponseAsset(ToResponseAsset(NOT_SET))", output: "AR_FN_RESPONSEASSET_TORESPONSEASSET_RESPONSEASSET_EX_OUT_0" }] }, { description: "AR_FN_RESPONSEASSET_TORESPONSEASSET_NTS_DSC", identifier: "ResponseAsset_ONE toResponseAsset(Null_ONE)", support: { version: "1.0", resolver: "NotSetToRetType" }, needsServerInfo: true, returnValue: { description: "AR_FN_RESPONSEASSET_TORESPONSEASSET_NTS_RV", isArray: false, type: "rpa" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_RESPONSEASSET_TORESPONSEASSET_NTS_PRM_DSC_0", identifier: "valueToConvert", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "nts" }], examples: [{ input: "ToResponseAsset(NOT_SET)", output: "AR_FN_RESPONSEASSET_TORESPONSEASSET_NTS_EX_OUT_0" }] }], needsServerInfo: true }, toSkill: { identifier: "toSkill", description: "AR_FN_DSC_TOSKILL", type: "function", name: "ToSkill", category: "cast", overloads: [{ description: "AR_FN_SKL_TOSKILL_STR_DSC", identifier: "Skill_ONE toSkill(String_ONE)", support: { version: "1.0", resolver: "None" }, supportedFlowTypes: { emailsend: "emailsend", inboundchat: "inboundchat", inboundemail: "inboundemail", inboundshortmessage: "inboundshortmessage", inqueueemail: "inqueueemail", inqueueshortmessage: "inqueueshortmessage", surveyinvite: "surveyinvite", workflow: "workflow", workitem: "workitem", inboundcall: "inboundcall", inqueuecall: "inqueuecall", outboundcall: "outboundcall", securecall: "securecall", voicemail: "voicemail", commonmodule: "commonmodule" }, hidden: true, returnValue: { description: "AR_FN_SKL_TOSKILL_STR_RV", isArray: false, type: "skl" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_SKL_TOSKILL_STR_PRM_DSC_0", identifier: "skillName", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "str" }] }, { description: "AR_FN_SKL_TOSKILL_NTS_DSC", identifier: "Skill_ONE toSkill(Null_ONE)", support: { version: "1.0", resolver: "NotSetToRetType" }, supportedFlowTypes: { emailsend: "emailsend", inboundchat: "inboundchat", inboundemail: "inboundemail", inboundshortmessage: "inboundshortmessage", inqueueemail: "inqueueemail", inqueueshortmessage: "inqueueshortmessage", surveyinvite: "surveyinvite", workflow: "workflow", workitem: "workitem", inboundcall: "inboundcall", inqueuecall: "inqueuecall", outboundcall: "outboundcall", securecall: "securecall", voicemail: "voicemail", commonmodule: "commonmodule" }, needsServerInfo: true, returnValue: { description: "AR_FN_SKL_TOSKILL_NTS_RV", isArray: false, type: "skl" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_SKL_TOSKILL_NTS_PRM_DSC_0", identifier: "valueToConvert", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "nts" }], examples: [{ input: "ToSkill(NOT_SET)", output: "AR_FN_SKL_TOSKILL_NTS_EX_OUT_0" }] }, { description: "AR_FN_SKL_TOSKILL_SKL_DSC", identifier: "Skill_ONE toSkill(Skill_ONE)", support: { version: "1.0", resolver: "None" }, supportedFlowTypes: { emailsend: "emailsend", inboundchat: "inboundchat", inboundemail: "inboundemail", inboundshortmessage: "inboundshortmessage", inqueueemail: "inqueueemail", inqueueshortmessage: "inqueueshortmessage", surveyinvite: "surveyinvite", workflow: "workflow", workitem: "workitem", inboundcall: "inboundcall", inqueuecall: "inqueuecall", outboundcall: "outboundcall", securecall: "securecall", voicemail: "voicemail", commonmodule: "commonmodule" }, needsServerInfo: true, returnValue: { description: "AR_FN_SKL_TOSKILL_SKL_RV", isArray: false, type: "skl" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_SKL_TOSKILL_SKL_PRM_DSC_0", identifier: "valueToReturn", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "skl" }], examples: [{ input: "ToSkill(ToSkill(NOT_SET))", output: "AR_FN_SKL_TOSKILL_SKL_EX_OUT_0" }] }], needsServerInfo: true }, toUserQueue: { identifier: "toUserQueue", description: "AR_FN_DSC_TOUSERQUEUE", type: "function", name: "ToUser", category: "cast", overloads: [{ description: "AR_FN_USR_TOUSER_STR_DSC", identifier: "User_ONE toUser(String_ONE)", support: { version: "1.0", resolver: "None" }, hidden: true, returnValue: { description: "AR_FN_USR_TOUSER_STR_RV", isArray: false, type: "usr" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_USR_TOUSER_STR_PRM_DSC_0", identifier: "userName", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "str" }] }, { description: "AR_FN_USR_TOUSER_NTS_DSC", identifier: "User_ONE toUser(Null_ONE)", support: { version: "1.0", resolver: "NotSetToRetType" }, supportedFlowTypes: { emailsend: "emailsend", inboundchat: "inboundchat", inboundemail: "inboundemail", inboundshortmessage: "inboundshortmessage", inqueueemail: "inqueueemail", inqueueshortmessage: "inqueueshortmessage", surveyinvite: "surveyinvite", workflow: "workflow", workitem: "workitem", inboundcall: "inboundcall", inqueuecall: "inqueuecall", outboundcall: "outboundcall", securecall: "securecall", voicemail: "voicemail", commonmodule: "commonmodule" }, needsServerInfo: true, returnValue: { description: "AR_FN_USR_TOUSER_NTS_RV", isArray: false, type: "usr" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_USR_TOUSER_NTS_PRM_DSC_0", identifier: "valueToConvert", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "nts" }], examples: [{ input: "ToUser(NOT_SET)", output: "AR_FN_USR_TOUSER_NTS_EX_OUT_0" }] }, { description: "AR_FN_USR_TOUSER_USR_DSC", identifier: "User_ONE toUser(User_ONE)", support: { version: "1.0", resolver: "None" }, supportedFlowTypes: { emailsend: "emailsend", inboundchat: "inboundchat", inboundemail: "inboundemail", inboundshortmessage: "inboundshortmessage", inqueueemail: "inqueueemail", inqueueshortmessage: "inqueueshortmessage", surveyinvite: "surveyinvite", workflow: "workflow", workitem: "workitem", inboundcall: "inboundcall", inqueuecall: "inqueuecall", outboundcall: "outboundcall", securecall: "securecall", voicemail: "voicemail", commonmodule: "commonmodule" }, needsServerInfo: true, returnValue: { description: "AR_FN_USR_TOUSER_USR_RV", isArray: false, type: "usr" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_USR_TOUSER_USR_PRM_DSC_0", identifier: "valueToReturn", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "usr" }], examples: [{ input: "ToUser(ToUser(NOT_SET))", output: "AR_FN_USR_TOUSER_USR_EX_OUT_0" }] }], needsServerInfo: true }, toLanguageSkill: { identifier: "toLanguageSkill", description: "AR_FN_DSC_TOLANGUAGESKILL", type: "function", name: "ToLanguageSkill", category: "cast", overloads: [{ description: "AR_FN_LANGUAGESKILL_TOLANGUAGESKILL_STR_DSC", identifier: "LanguageSkill_ONE toLanguageSkill(String_ONE)", support: { version: "1.0", resolver: "None" }, hidden: true, needsServerInfo: true, returnValue: { description: "AR_FN_LANGUAGESKILL_TOLANGUAGESKILL_STR_RV", isArray: false, type: "lac" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_LANGUAGESKILL_TOLANGUAGESKILL_STR_PRM_DSC_0", identifier: "languageTag", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "str" }] }, { description: "AR_FN_LANGUAGESKILL_TOLANGUAGESKILL_NTS_DSC", identifier: "LanguageSkill_ONE toLanguageSkill(Null_ONE)", support: { version: "1.0", resolver: "NotSetToRetType" }, needsServerInfo: true, returnValue: { description: "AR_FN_LANGUAGESKILL_TOLANGUAGESKILL_NTS_RV", isArray: false, type: "lac" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_LANGUAGESKILL_TOLANGUAGESKILL_NTS_PRM_DSC_0", identifier: "valueToConvert", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "nts" }], examples: [{ input: "ToLanguageSkill(NOT_SET)", output: "AR_FN_LANGUAGESKILL_TOLANGUAGESKILL_NTS_EX_OUT_0" }] }, { description: "AR_FN_LANGUAGESKILL_TOLANGUAGESKILL_LANGUAGESKILL_DSC", identifier: "LanguageSkill_ONE toLanguageSkill(LanguageSkill_ONE)", support: { version: "1.0", resolver: "None" }, needsServerInfo: true, returnValue: { description: "AR_FN_LANGUAGESKILL_TOLANGUAGESKILL_LANGUAGESKILL_RV", isArray: false, type: "lac" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_FN_LANGUAGESKILL_TOLANGUAGESKILL_LANGUAGESKILL_PRM_DSC_0", identifier: "valueToReturn", isArray: false, helpDisplayIdx: 0, repeatable: false, required: true, type: "lac" }], examples: [{ input: "ToLanguageSkill(ToLanguageSkill(NOT_SET))", output: "AR_FN_LANGUAGESKILL_TOLANGUAGESKILL_LANGUAGESKILL_EX_OUT_0" }] }], needsServerInfo: true }, toQueue: { identifier: "toQueue", description: "AR_FN_DSC_TOQUEUE", type: "function", name: "ToQueue", category: "cast", overloads: [{ description: "AR_FN_QUEUE_TOQUEUE_STR_DSC", identifier: "Queue_ONE toQueue(String_ONE)", support: { version: "1.0", resolver: "None" }, supportedFlowTypes: { emailsend: "emailsend", inboundchat: "inboundchat", inboundemail: "inboundemail", inboundshortmessage: "inboundshortmessage", inqueueemail: "inqueueemail", inqueueshortmessage: "inqueueshortmessage", surveyinvite: "surveyinvite", workflow: "workflow", workitem: "workitem", inboundcall: "inboundcall", inqueuecall: "inqueuecall", outboundcall: "outboundcall", securecall: "securecall", voicemail: "voicemail", commonmodule: "commonmodule" }, hidden: true, returnValue: { description: "AR_FN_QUEUE_TOQUEUE_STR_RV", isArray: false, type: "que" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_QUEUE_TOQUEUE_STR_PRM_DSC_0", identifier: "valueToConvert", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "str" }] }, { description: "AR_FN_QUEUE_TOQUEUE_NTS_DSC", identifier: "Queue_ONE toQueue(Null_ONE)", support: { version: "1.0", resolver: "NotSetToRetType" }, supportedFlowTypes: { emailsend: "emailsend", inboundchat: "inboundchat", inboundemail: "inboundemail", inboundshortmessage: "inboundshortmessage", inqueueemail: "inqueueemail", inqueueshortmessage: "inqueueshortmessage", surveyinvite: "surveyinvite", workflow: "workflow", workitem: "workitem", inboundcall: "inboundcall", inqueuecall: "inqueuecall", outboundcall: "outboundcall", securecall: "securecall", voicemail: "voicemail", commonmodule: "commonmodule" }, needsServerInfo: true, returnValue: { description: "AR_FN_QUEUE_TOQUEUE_NTS_RV", isArray: false, type: "que" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_QUEUE_TOQUEUE_NTS_PRM_DSC_0", identifier: "valueToConvert", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "nts" }], examples: [{ input: "ToQueue(NOT_SET)", output: "AR_FN_QUEUE_TOQUEUE_NTS_EX_OUT_0" }] }, { description: "AR_FN_QUEUE_TOQUEUE_QUEUE_DSC", identifier: "Queue_ONE toQueue(Queue_ONE)", support: { version: "1.0", resolver: "None" }, supportedFlowTypes: { emailsend: "emailsend", inboundchat: "inboundchat", inboundemail: "inboundemail", inboundshortmessage: "inboundshortmessage", inqueueemail: "inqueueemail", inqueueshortmessage: "inqueueshortmessage", surveyinvite: "surveyinvite", workflow: "workflow", workitem: "workitem", inboundcall: "inboundcall", inqueuecall: "inqueuecall", outboundcall: "outboundcall", securecall: "securecall", voicemail: "voicemail", commonmodule: "commonmodule" }, needsServerInfo: true, returnValue: { description: "AR_FN_QUEUE_TOQUEUE_QUEUE_RV", isArray: false, type: "que" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_QUEUE_TOQUEUE_QUEUE_PRM_DSC_0", identifier: "valueToReturn", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "que" }], examples: [{ input: "ToQueue(ToQueue(NOT_SET))", output: "AR_FN_QUEUE_TOQUEUE_QUEUE_EX_OUT_0" }] }], needsServerInfo: true }, toEmergencyGroup: { identifier: "toEmergencyGroup", description: "AR_FN_DSC_TOEMERGENCYGROUP", type: "function", name: "ToEmergencyGroup", category: "cast", overloads: [{ description: "AR_FN_EMERGRP_TOEMERGENCYGROUP_NTS_DSC", identifier: "EmergencyGroup_ONE toEmergencyGroup(Null_ONE)", support: { version: "1.0", resolver: "NotSetToRetType" }, supportedFlowTypes: { emailsend: "emailsend", inboundchat: "inboundchat", inboundemail: "inboundemail", inboundshortmessage: "inboundshortmessage", inqueueemail: "inqueueemail", inqueueshortmessage: "inqueueshortmessage", surveyinvite: "surveyinvite", workflow: "workflow", workitem: "workitem", inboundcall: "inboundcall", inqueuecall: "inqueuecall", outboundcall: "outboundcall", securecall: "securecall", voicemail: "voicemail", commonmodule: "commonmodule" }, needsServerInfo: true, returnValue: { description: "AR_FN_EMERGRP_TOEMERGENCYGROUP_NTS_RV", isArray: false, type: "emg" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_EMERGRP_TOEMERGENCYGROUP_NTS_PRM_DSC_0", identifier: "valueToConvert", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "nts" }], examples: [{ input: "ToEmergencyGroup(NOT_SET)", output: "AR_FN_EMERGRP_TOEMERGENCYGROUP_NTS_EX_OUT_0" }] }, { description: "AR_FN_EMERGRP_TOEMERGENCYGROUP_EMERGRP_DSC", identifier: "EmergencyGroup_ONE toEmergencyGroup(EmergencyGroup_ONE)", support: { version: "1.0", resolver: "None" }, supportedFlowTypes: { emailsend: "emailsend", inboundchat: "inboundchat", inboundemail: "inboundemail", inboundshortmessage: "inboundshortmessage", inqueueemail: "inqueueemail", inqueueshortmessage: "inqueueshortmessage", surveyinvite: "surveyinvite", workflow: "workflow", workitem: "workitem", inboundcall: "inboundcall", inqueuecall: "inqueuecall", outboundcall: "outboundcall", securecall: "securecall", voicemail: "voicemail", commonmodule: "commonmodule" }, needsServerInfo: true, returnValue: { description: "AR_FN_EMERGRP_TOEMERGENCYGROUP_EMERGRP_RV", isArray: false, type: "emg" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_EMERGRP_TOEMERGENCYGROUP_EMERGRP_PRM_DSC_0", identifier: "valueToReturn", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "emg" }], examples: [{ input: "ToEmergencyGroup(ToEmergencyGroup(NOT_SET))", output: "AR_FN_EMERGRP_TOEMERGENCYGROUP_EMERGRP_EX_OUT_0" }] }], needsServerInfo: true }, toFile: { identifier: "toFile", description: "AR_FN_DSC_TOFILE", type: "function", name: "ToFile", category: "cast", overloads: [{ description: "AR_FN_FILE_TOFILE_FILE_DSC", identifier: "File_ONE toFile(File_ONE)", support: { version: "1.0", resolver: "None" }, needsServerInfo: true, returnValue: { description: "AR_FN_FILE_TOFILE_FILE_RV", isArray: false, type: "fil" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_FILE_TOFILE_FILE_PRM_DSC_0", identifier: "valueToReturn", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "fil" }], examples: [{ input: "ToFile(ToFile(NOT_SET))", output: "AR_FN_FILE_TOFILE_FILE_EX_OUT_0" }] }, { description: "AR_FN_FILE_TOFILE_NTS_DSC", identifier: "File_ONE toFile(Null_ONE)", support: { version: "1.0", resolver: "NotSetToRetType" }, needsServerInfo: true, returnValue: { description: "AR_FN_FILE_TOFILE_NTS_RV", isArray: false, type: "fil" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_FILE_TOFILE_NTS_PRM_DSC_0", identifier: "valueToConvert", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "nts" }], examples: [{ input: "ToFile(NOT_SET)", output: "AR_FN_FILE_TOFILE_NTS_EX_OUT_0" }] }, { description: "AR_FN_FILE_TOFILE_RESPONSEASSET_DSC", identifier: "File_ONE toFile(ResponseAsset_ONE)", support: { version: "1.0", resolver: "None" }, needsServerInfo: true, returnValue: { description: "AR_FN_FILE_TOFILE_RESPONSEASSET_RV", isArray: false, type: "fil" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_FILE_TOFILE_RESPONSEASSET_PRM_DSC_0", identifier: "valueToConvert", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "rpa" }], examples: [{ input: "ToFile(Flow.ResponseAsset)", output: "AR_FN_FILE_TOFILE_RESPONSEASSET_EX_OUT_0" }] }, { description: "AR_FN_FILE_TOFILE_RESPONSEASSET_FILE_DSC", identifier: "File_ONE toFile(ResponseAsset_ONE,File_ONE)", support: { version: "1.0", resolver: "None" }, needsServerInfo: true, returnValue: { description: "AR_FN_FILE_TOFILE_RESPONSEASSET_FILE_RV", isArray: false, type: "fil" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_FILE_TOFILE_RESPONSEASSET_FILE_PRM_DSC_0", identifier: "valueToConvert", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "rpa" }, { allowNotSet: true, allowCustomJson: false, description: "AR_FN_FILE_TOFILE_RESPONSEASSET_FILE_PRM_DSC_1", identifier: "default", isArray: false, helpDisplayIdx: 1, repeatable: false, required: false, type: "fil" }], examples: [{ input: 'ToFile(Flow.ResponseAsset, MakeFileFromUrl("https://www.genesys.com/documents/genesys-digital-bot-flows.pdf"))', output: "AR_FN_FILE_TOFILE_RESPONSEASSET_FILE_EX_OUT_0" }, { input: 'ToFile(ToResponseAsset(NOT_SET), MakeFileFromUrl("https://www.genesys.com/documents/genesys-digital-bot-flows.pdf"))', output: "AR_FN_FILE_TOFILE_RESPONSEASSET_FILE_EX_OUT_1" }, { input: 'ToFile(Flow.ResponseAssetThatCannotBeConvertedToFile, MakeFileFromUrl("https://www.genesys.com/documents/genesys-digital-bot-flows.pdf"))', output: "AR_FN_FILE_TOFILE_RESPONSEASSET_FILE_EX_OUT_2" }] }], needsServerInfo: true }, toFileCollection: { identifier: "toFileCollection", description: "AR_FN_DSC_TOFILECOLLECTION", type: "function", name: "ToFileCollection", category: "cast", overloads: [{ description: "AR_FN_FILE_COLL_TOFILECOLLECTION_RESPONSEASSET_COLL_DSC", identifier: "File_COLL toFileCollection(ResponseAsset_COLL)", support: { version: "1.0", resolver: "None" }, featureConfigName: "cannedResponseAttachmentsPostGaFeature", needsServerInfo: true, returnValue: { description: "AR_FN_FILE_COLL_TOFILECOLLECTION_RESPONSEASSET_COLL_RV", isArray: true, type: "fil" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_FN_FILE_COLL_TOFILECOLLECTION_RESPONSEASSET_COLL_PRM_DSC_0", identifier: "valueToConvert", isArray: true, helpDisplayIdx: 0, repeatable: false, required: true, type: "rpa" }], examples: [{ input: "ToFileCollection(MakeList(Flow.ResponseAsset, Flow.ResponseAsset2))", output: "AR_FN_FILE_COLL_TOFILECOLLECTION_RESPONSEASSET_COLL_EX_OUT_0" }] }], needsServerInfo: true }, toGroup: { identifier: "toGroup", description: "AR_FN_DSC_TOGROUP", type: "function", name: "ToGroup", category: "cast", overloads: [{ description: "AR_FN_GRP_TOGROUP_STR_DSC", identifier: "Group_ONE toGroup(String_ONE)", support: { version: "1.0", resolver: "None" }, hidden: true, needsServerInfo: true, returnValue: { description: "AR_FN_GRP_TOGROUP_STR_RV", isArray: false, type: "grp" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_GRP_TOGROUP_STR_PRM_DSC_0", identifier: "valueToConvert", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "str" }] }, { description: "AR_FN_GRP_TOGROUP_NTS_DSC", identifier: "Group_ONE toGroup(Null_ONE)", support: { version: "1.0", resolver: "NotSetToRetType" }, needsServerInfo: true, returnValue: { description: "AR_FN_GRP_TOGROUP_NTS_RV", isArray: false, type: "grp" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_GRP_TOGROUP_NTS_PRM_DSC_0", identifier: "valueToConvert", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "nts" }], examples: [{ input: "ToGroup(NOT_SET)", output: "AR_FN_GRP_TOGROUP_NTS_EX_OUT_0" }] }, { description: "AR_FN_GRP_TOGROUP_GRP_DSC", identifier: "Group_ONE toGroup(Group_ONE)", support: { version: "1.0", resolver: "None" }, needsServerInfo: true, returnValue: { description: "AR_FN_GRP_TOGROUP_GRP_RV", isArray: false, type: "grp" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_GRP_TOGROUP_GRP_PRM_DSC_0", identifier: "valueToReturn", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "grp" }], examples: [{ input: "ToGroup(ToGroup(NOT_SET))", output: "AR_FN_GRP_TOGROUP_GRP_EX_OUT_0" }] }], needsServerInfo: true }, toKnowledgeBaseDocument: { identifier: "toKnowledgeBaseDocument", description: "AR_FN_DSC_TOKNOWLEDGEBASEDOCUMENT", type: "function", name: "ToKnowledgeBaseDocument", category: "cast", overloads: [{ description: "AR_FN_KNOWLEDGEBASEDOCUMENT_TOKNOWLEDGEBASEDOCUMENT_KNOWLEDGEBASEDOCUMENT_DSC", identifier: "KnowledgeBaseDocument_ONE toKnowledgeBaseDocument(KnowledgeBaseDocument_ONE)", support: { version: "1.0", resolver: "None" }, needsServerInfo: true, returnValue: { description: "AR_FN_KNOWLEDGEBASEDOCUMENT_TOKNOWLEDGEBASEDOCUMENT_KNOWLEDGEBASEDOCUMENT_RV", isArray: false, type: "kbd" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_KNOWLEDGEBASEDOCUMENT_TOKNOWLEDGEBASEDOCUMENT_KNOWLEDGEBASEDOCUMENT_PRM_DSC_0", identifier: "valueToReturn", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "kbd" }], examples: [{ input: "ToKnowledgeBaseDocument(ToKnowledgeBaseDocument(NOT_SET))", output: "AR_FN_KNOWLEDGEBASEDOCUMENT_TOKNOWLEDGEBASEDOCUMENT_KNOWLEDGEBASEDOCUMENT_EX_OUT_0" }] }, { description: "AR_FN_KNOWLEDGEBASEDOCUMENT_TOKNOWLEDGEBASEDOCUMENT_NTS_DSC", identifier: "KnowledgeBaseDocument_ONE toKnowledgeBaseDocument(Null_ONE)", support: { version: "1.0", resolver: "NotSetToRetType" }, needsServerInfo: true, returnValue: { description: "AR_FN_KNOWLEDGEBASEDOCUMENT_TOKNOWLEDGEBASEDOCUMENT_NTS_RV", isArray: false, type: "kbd" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_KNOWLEDGEBASEDOCUMENT_TOKNOWLEDGEBASEDOCUMENT_NTS_PRM_DSC_0", identifier: "valueToConvert", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "nts" }], examples: [{ input: "ToKnowledgeBaseDocument(NOT_SET)", output: "AR_FN_KNOWLEDGEBASEDOCUMENT_TOKNOWLEDGEBASEDOCUMENT_NTS_EX_OUT_0" }] }], needsServerInfo: true }, toVideo: { identifier: "toVideo", description: "AR_FN_DSC_TOVIDEO", type: "function", name: "ToVideo", category: "cast", overloads: [{ description: "AR_FN_VIDEO_TOVIDEO_VIDEO_DSC", identifier: "Video_ONE toVideo(Video_ONE)", support: { version: "1.0", resolver: "None" }, needsServerInfo: true, returnValue: { description: "AR_FN_VIDEO_TOVIDEO_VIDEO_RV", isArray: false, type: "vid" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_VIDEO_TOVIDEO_VIDEO_PRM_DSC_0", identifier: "valueToReturn", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "vid" }], examples: [{ input: "ToVideo(ToVideo(NOT_SET))", output: "AR_FN_VIDEO_TOVIDEO_VIDEO_EX_OUT_0" }] }, { description: "AR_FN_VIDEO_TOVIDEO_NTS_DSC", identifier: "Video_ONE toVideo(Null_ONE)", support: { version: "1.0", resolver: "NotSetToRetType" }, needsServerInfo: true, returnValue: { description: "AR_FN_VIDEO_TOVIDEO_NTS_RV", isArray: false, type: "vid" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_VIDEO_TOVIDEO_NTS_PRM_DSC_0", identifier: "valueToConvert", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "nts" }], examples: [{ input: "ToVideo(NOT_SET)", output: "AR_FN_VIDEO_TOVIDEO_NTS_EX_OUT_0" }] }, { description: "AR_FN_VIDEO_TOVIDEO_RESPONSEASSET_DSC", identifier: "Video_ONE toVideo(ResponseAsset_ONE)", support: { version: "1.0", resolver: "None" }, needsServerInfo: true, returnValue: { description: "AR_FN_VIDEO_TOVIDEO_RESPONSEASSET_RV", isArray: false, type: "vid" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_VIDEO_TOVIDEO_RESPONSEASSET_PRM_DSC_0", identifier: "valueToConvert", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "rpa" }], examples: [{ input: "ToVideo(Flow.ResponseAsset)", output: "AR_FN_VIDEO_TOVIDEO_RESPONSEASSET_EX_OUT_0" }] }, { description: "AR_FN_VIDEO_TOVIDEO_RESPONSEASSET_VIDEO_DSC", identifier: "Video_ONE toVideo(ResponseAsset_ONE,Video_ONE)", support: { version: "1.0", resolver: "None" }, needsServerInfo: true, returnValue: { description: "AR_FN_VIDEO_TOVIDEO_RESPONSEASSET_VIDEO_RV", isArray: false, type: "vid" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_VIDEO_TOVIDEO_RESPONSEASSET_VIDEO_PRM_DSC_0", identifier: "valueToConvert", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "rpa" }, { allowNotSet: true, allowCustomJson: false, description: "AR_FN_VIDEO_TOVIDEO_RESPONSEASSET_VIDEO_PRM_DSC_1", identifier: "default", isArray: false, helpDisplayIdx: 1, repeatable: false, required: false, type: "vid" }], examples: [{ input: 'ToVideo(Flow.ResponseAsset, MakeVideoFromUrl("https://www.genesys.com/media/genesys-digital-bot-flows.mov"))', output: "AR_FN_VIDEO_TOVIDEO_RESPONSEASSET_VIDEO_EX_OUT_0" }, { input: 'ToVideo(ToResponseAsset(NOT_SET), MakeVideoFromUrl("https://www.genesys.com/media/genesys-digital-bot-flows.mov"))', output: "AR_FN_VIDEO_TOVIDEO_RESPONSEASSET_VIDEO_EX_OUT_1" }, { input: 'ToVideo(Flow.ResponseAssetThatCannotBeConvertedToVideo, MakeVideoFromUrl("https://www.genesys.com/media/genesys-digital-bot-flows.mov"))', output: "AR_FN_VIDEO_TOVIDEO_RESPONSEASSET_VIDEO_EX_OUT_2" }] }], needsServerInfo: true }, toVideoCollection: { identifier: "toVideoCollection", description: "AR_FN_DSC_TOVIDEOCOLLECTION", type: "function", name: "ToVideoCollection", category: "cast", overloads: [{ description: "AR_FN_VIDEO_COLL_TOVIDEOCOLLECTION_RESPONSEASSET_COLL_DSC", identifier: "Video_COLL toVideoCollection(ResponseAsset_COLL)", support: { version: "1.0", resolver: "None" }, featureConfigName: "cannedResponseAttachmentsPostGaFeature", needsServerInfo: true, returnValue: { description: "AR_FN_VIDEO_COLL_TOVIDEOCOLLECTION_RESPONSEASSET_COLL_RV", isArray: true, type: "vid" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_FN_VIDEO_COLL_TOVIDEOCOLLECTION_RESPONSEASSET_COLL_PRM_DSC_0", identifier: "valueToConvert", isArray: true, helpDisplayIdx: 0, repeatable: false, required: true, type: "rpa" }], examples: [{ input: "ToVideoCollection(MakeList(Flow.ResponseAsset, Flow.ResponseAsset2))", output: "AR_FN_VIDEO_COLL_TOVIDEOCOLLECTION_RESPONSEASSET_COLL_EX_OUT_0" }] }], needsServerInfo: true }, toPhoneNumber: { identifier: "toPhoneNumber", description: "AR_FN_DSC_TOPHONENUMBER", type: "function", name: "ToPhoneNumber", category: "cast", overloads: [{ description: "AR_FN_PHNBR_TOPHONENUMBER_STR_DSC", identifier: "PhoneNumber_ONE toPhoneNumber(String_ONE)", support: { version: "1.0", resolver: "None" }, needsServerInfo: true, returnValue: { description: "AR_FN_PHNBR_TOPHONENUMBER_STR_RV", isArray: false, type: "phn" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_FN_PHNBR_TOPHONENUMBER_STR_PRM_DSC_0", identifier: "valueToConvert", isArray: false, helpDisplayIdx: 0, repeatable: false, required: true, type: "str" }], examples: [{ input: "ToPhoneNumber(Call.Ani)", output: "AR_FN_PHNBR_TOPHONENUMBER_STR_EX_OUT_0" }, { input: 'ToPhoneNumber("tel:+13178723000")', output: "AR_FN_PHNBR_TOPHONENUMBER_STR_EX_OUT_1" }, { input: "AR_FN_PHNBR_TOPHONENUMBER_STR_EX_IN_2", output: "AR_FN_PHNBR_TOPHONENUMBER_STR_EX_OUT_2" }, { input: "ToPhoneNumber(ToString(NOT_SET))", output: "AR_FN_PHNBR_TOPHONENUMBER_STR_EX_OUT_3" }, { input: 'ToPhoneNumber("+13178723000")', output: "AR_FN_PHNBR_TOPHONENUMBER_STR_EX_OUT_4" }, { input: 'ToPhoneNumber("13178723000")', output: "AR_FN_PHNBR_TOPHONENUMBER_STR_EX_OUT_5" }, { input: "AR_FN_PHNBR_TOPHONENUMBER_STR_EX_IN_6", output: "AR_FN_PHNBR_TOPHONENUMBER_STR_EX_OUT_6" }] }, { description: "AR_FN_PHNBR_TOPHONENUMBER_NTS_DSC", identifier: "PhoneNumber_ONE toPhoneNumber(Null_ONE)", support: { version: "1.0", resolver: "NotSetToRetType" }, needsServerInfo: true, returnValue: { description: "AR_FN_PHNBR_TOPHONENUMBER_NTS_RV", isArray: false, type: "phn" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_PHNBR_TOPHONENUMBER_NTS_PRM_DSC_0", identifier: "valueToConvert", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "nts" }], examples: [{ input: "ToPhoneNumber(NOT_SET)", output: "AR_FN_PHNBR_TOPHONENUMBER_NTS_EX_OUT_0" }] }, { description: "AR_FN_PHNBR_TOPHONENUMBER_PHNBR_DSC", identifier: "PhoneNumber_ONE toPhoneNumber(PhoneNumber_ONE)", support: { version: "1.0", resolver: "None" }, needsServerInfo: true, returnValue: { description: "AR_FN_PHNBR_TOPHONENUMBER_PHNBR_RV", isArray: false, type: "phn" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_PHNBR_TOPHONENUMBER_PHNBR_PRM_DSC_0", identifier: "valueToReturn", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "phn" }], examples: [{ input: "ToPhoneNumber(ToPhoneNumber(NOT_SET))", output: "AR_FN_PHNBR_TOPHONENUMBER_PHNBR_EX_OUT_0" }] }], needsServerInfo: true }, toPrompt: { identifier: "toPrompt", description: "AR_FN_DSC_TOPROMPT", type: "function", name: "ToPrompt", category: "cast", overloads: [{ description: "AR_FN_PROMPT_TOPROMPT_NTS_DSC", identifier: "Prompt_ONE toPrompt(Null_ONE)", support: { version: "1.0", resolver: "NotSetToRetType" }, needsServerInfo: true, returnValue: { description: "AR_FN_PROMPT_TOPROMPT_NTS_RV", isArray: false, type: "pmt" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_PROMPT_TOPROMPT_NTS_PRM_DSC_0", identifier: "valueToConvert", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "nts" }], examples: [{ input: "ToPrompt(NOT_SET)", output: "AR_FN_PROMPT_TOPROMPT_NTS_EX_OUT_0" }] }, { description: "AR_FN_PROMPT_TOPROMPT_PROMPT_DSC", identifier: "Prompt_ONE toPrompt(Prompt_ONE)", support: { version: "1.0", resolver: "None" }, needsServerInfo: true, returnValue: { description: "AR_FN_PROMPT_TOPROMPT_PROMPT_RV", isArray: false, type: "pmt" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_PROMPT_TOPROMPT_PROMPT_PRM_DSC_0", identifier: "valueToReturn", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "pmt" }], examples: [{ input: "ToPrompt(ToPrompt(NOT_SET))", output: "AR_FN_PROMPT_TOPROMPT_PROMPT_EX_OUT_0" }] }], needsServerInfo: true }, toSchedule: { identifier: "toSchedule", description: "AR_FN_DSC_TOSCHEDULE", type: "function", name: "ToSchedule", category: "cast", overloads: [{ description: "AR_FN_SCHED_TOSCHEDULE_NTS_DSC", identifier: "Schedule_ONE toSchedule(Null_ONE)", support: { version: "1.0", resolver: "NotSetToRetType" }, supportedFlowTypes: { emailsend: "emailsend", inboundchat: "inboundchat", inboundemail: "inboundemail", inboundshortmessage: "inboundshortmessage", inqueueemail: "inqueueemail", inqueueshortmessage: "inqueueshortmessage", surveyinvite: "surveyinvite", workflow: "workflow", workitem: "workitem", inboundcall: "inboundcall", inqueuecall: "inqueuecall", outboundcall: "outboundcall", securecall: "securecall", voicemail: "voicemail", commonmodule: "commonmodule" }, needsServerInfo: true, returnValue: { description: "AR_FN_SCHED_TOSCHEDULE_NTS_RV", isArray: false, type: "sch" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_SCHED_TOSCHEDULE_NTS_PRM_DSC_0", identifier: "valueToConvert", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "nts" }], examples: [{ input: "ToSchedule(NOT_SET)", output: "AR_FN_SCHED_TOSCHEDULE_NTS_EX_OUT_0" }] }, { description: "AR_FN_SCHED_TOSCHEDULE_SCHED_DSC", identifier: "Schedule_ONE toSchedule(Schedule_ONE)", support: { version: "1.0", resolver: "None" }, supportedFlowTypes: { emailsend: "emailsend", inboundchat: "inboundchat", inboundemail: "inboundemail", inboundshortmessage: "inboundshortmessage", inqueueemail: "inqueueemail", inqueueshortmessage: "inqueueshortmessage", surveyinvite: "surveyinvite", workflow: "workflow", workitem: "workitem", inboundcall: "inboundcall", inqueuecall: "inqueuecall", outboundcall: "outboundcall", securecall: "securecall", voicemail: "voicemail", commonmodule: "commonmodule" }, needsServerInfo: true, returnValue: { description: "AR_FN_SCHED_TOSCHEDULE_SCHED_RV", isArray: false, type: "sch" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_SCHED_TOSCHEDULE_SCHED_PRM_DSC_0", identifier: "valueToReturn", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "sch" }], examples: [{ input: "ToSchedule(ToSchedule(NOT_SET))", output: "AR_FN_SCHED_TOSCHEDULE_SCHED_EX_OUT_0" }] }], needsServerInfo: true }, toScheduleGroup: { identifier: "toScheduleGroup", description: "AR_FN_DSC_TOSCHEDULEGROUP", type: "function", name: "ToScheduleGroup", category: "cast", overloads: [{ description: "AR_FN_SCHEDGRP_TOSCHEDULEGROUP_NTS_DSC", identifier: "ScheduleGroup_ONE toScheduleGroup(Null_ONE)", support: { version: "1.0", resolver: "NotSetToRetType" }, supportedFlowTypes: { emailsend: "emailsend", inboundchat: "inboundchat", inboundemail: "inboundemail", inboundshortmessage: "inboundshortmessage", inqueueemail: "inqueueemail", inqueueshortmessage: "inqueueshortmessage", surveyinvite: "surveyinvite", workflow: "workflow", workitem: "workitem", inboundcall: "inboundcall", inqueuecall: "inqueuecall", outboundcall: "outboundcall", securecall: "securecall", voicemail: "voicemail", commonmodule: "commonmodule" }, needsServerInfo: true, returnValue: { description: "AR_FN_SCHEDGRP_TOSCHEDULEGROUP_NTS_RV", isArray: false, type: "scg" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_SCHEDGRP_TOSCHEDULEGROUP_NTS_PRM_DSC_0", identifier: "valueToConvert", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "nts" }], examples: [{ input: "ToScheduleGroup(NOT_SET)", output: "AR_FN_SCHEDGRP_TOSCHEDULEGROUP_NTS_EX_OUT_0" }] }, { description: "AR_FN_SCHEDGRP_TOSCHEDULEGROUP_SCHEDGRP_DSC", identifier: "ScheduleGroup_ONE toScheduleGroup(ScheduleGroup_ONE)", support: { version: "1.0", resolver: "None" }, supportedFlowTypes: { emailsend: "emailsend", inboundchat: "inboundchat", inboundemail: "inboundemail", inboundshortmessage: "inboundshortmessage", inqueueemail: "inqueueemail", inqueueshortmessage: "inqueueshortmessage", surveyinvite: "surveyinvite", workflow: "workflow", workitem: "workitem", inboundcall: "inboundcall", inqueuecall: "inqueuecall", outboundcall: "outboundcall", securecall: "securecall", voicemail: "voicemail", commonmodule: "commonmodule" }, needsServerInfo: true, returnValue: { description: "AR_FN_SCHEDGRP_TOSCHEDULEGROUP_SCHEDGRP_RV", isArray: false, type: "scg" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_SCHEDGRP_TOSCHEDULEGROUP_SCHEDGRP_PRM_DSC_0", identifier: "valueToReturn", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "scg" }], examples: [{ input: "ToScheduleGroup(ToScheduleGroup(NOT_SET))", output: "AR_FN_SCHEDGRP_TOSCHEDULEGROUP_SCHEDGRP_EX_OUT_0" }] }], needsServerInfo: true }, toUtilizationLabel: { identifier: "toUtilizationLabel", description: "AR_FN_DSC_TOUTILIZATIONLABEL", type: "function", name: "ToUtilizationLabel", category: "cast", overloads: [{ description: "AR_FN_UTILIZATIONLABEL_TOUTILIZATIONLABEL_NTS_DSC", identifier: "UtilizationLabel_ONE toUtilizationLabel(Null_ONE)", support: { version: "1.0", resolver: "NotSetToRetType" }, needsServerInfo: true, returnValue: { description: "AR_FN_UTILIZATIONLABEL_TOUTILIZATIONLABEL_NTS_RV", isArray: false, type: "cul" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_UTILIZATIONLABEL_TOUTILIZATIONLABEL_NTS_PRM_DSC_0", identifier: "valueToConvert", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "nts" }], examples: [{ input: "ToUtilizationLabel(NOT_SET)", output: "AR_FN_UTILIZATIONLABEL_TOUTILIZATIONLABEL_NTS_EX_OUT_0" }] }, { description: "AR_FN_UTILIZATIONLABEL_TOUTILIZATIONLABEL_UTILIZATIONLABEL_DSC", identifier: "UtilizationLabel_ONE toUtilizationLabel(UtilizationLabel_ONE)", support: { version: "1.0", resolver: "None" }, needsServerInfo: true, returnValue: { description: "AR_FN_UTILIZATIONLABEL_TOUTILIZATIONLABEL_UTILIZATIONLABEL_RV", isArray: false, type: "cul" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_UTILIZATIONLABEL_TOUTILIZATIONLABEL_UTILIZATIONLABEL_PRM_DSC_0", identifier: "valueToReturn", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "cul" }], examples: [{ input: "ToUtilizationLabel(ToUtilizationLabel(NOT_SET))", output: "AR_FN_UTILIZATIONLABEL_TOUTILIZATIONLABEL_UTILIZATIONLABEL_EX_OUT_0" }] }], needsServerInfo: true }, toWorktypeStatus: { identifier: "toWorktypeStatus", description: "AR_FN_DSC_TOWORKTYPESTATUS", type: "function", name: "ToWorktypeStatus", category: "cast", overloads: [{ description: "AR_FN_WORKTYPESTATUS_TOWORKTYPESTATUS_WORKTYPESTATUS_DSC", identifier: "WorktypeStatus_ONE toWorktypeStatus(WorktypeStatus_ONE)", support: { version: "1.0", resolver: "None" }, needsServerInfo: true, returnValue: { description: "AR_FN_WORKTYPESTATUS_TOWORKTYPESTATUS_WORKTYPESTATUS_RV", isArray: false, type: "cpx_worktype_status" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_WORKTYPESTATUS_TOWORKTYPESTATUS_WORKTYPESTATUS_PRM_DSC_0", identifier: "valueToReturn", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "cpx_worktype_status" }], examples: [{ input: "ToWorktypeStatus(ToWorktypeStatus(NOT_SET))", output: "AR_FN_WORKTYPESTATUS_TOWORKTYPESTATUS_WORKTYPESTATUS_EX_OUT_0" }] }, { description: "AR_FN_WORKTYPESTATUS_TOWORKTYPESTATUS_NTS_DSC", identifier: "WorktypeStatus_ONE toWorktypeStatus(Null_ONE)", support: { version: "1.0", resolver: "NotSetToRetType" }, supportedFlowTypes: { workitem: "workitem", commonmodule: "commonmodule" }, needsServerInfo: true, returnValue: { description: "AR_FN_WORKTYPESTATUS_TOWORKTYPESTATUS_NTS_RV", isArray: false, type: "cpx_worktype_status" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_WORKTYPESTATUS_TOWORKTYPESTATUS_NTS_PRM_DSC_0", identifier: "valueToConvert", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "nts" }], examples: [{ input: "ToWorktypeStatus(NOT_SET)", output: "AR_FN_WORKTYPESTATUS_TOWORKTYPESTATUS_NTS_EX_OUT_0" }] }], needsServerInfo: true }, toWrapupCode: { identifier: "toWrapupCode", description: "AR_FN_DSC_TOWRAPUPCODE", type: "function", name: "ToWrapupCode", category: "cast", overloads: [{ description: "AR_FN_WRC_TOWRAPUPCODE_STR_DSC", identifier: "WrapupCode_ONE toWrapupCode(String_ONE)", support: { version: "1.0", resolver: "None" }, supportedFlowTypes: { inboundcall: "inboundcall", inqueuecall: "inqueuecall", outboundcall: "outboundcall", securecall: "securecall", voicemail: "voicemail", inboundchat: "inboundchat", inboundemail: "inboundemail", inboundshortmessage: "inboundshortmessage", commonmodule: "commonmodule", voice: "voice" }, hidden: true, returnValue: { description: "AR_FN_WRC_TOWRAPUPCODE_STR_RV", isArray: false, type: "wrc" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_WRC_TOWRAPUPCODE_STR_PRM_DSC_0", identifier: "valueToConvert", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "str" }] }, { description: "AR_FN_WRC_TOWRAPUPCODE_NTS_DSC", identifier: "WrapupCode_ONE toWrapupCode(Null_ONE)", support: { version: "1.0", resolver: "NotSetToRetType" }, supportedFlowTypes: { inboundcall: "inboundcall", inqueuecall: "inqueuecall", outboundcall: "outboundcall", securecall: "securecall", voicemail: "voicemail", inboundchat: "inboundchat", inboundemail: "inboundemail", inboundshortmessage: "inboundshortmessage", commonmodule: "commonmodule" }, needsServerInfo: true, returnValue: { description: "AR_FN_WRC_TOWRAPUPCODE_NTS_RV", isArray: false, type: "wrc" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_WRC_TOWRAPUPCODE_NTS_PRM_DSC_0", identifier: "valueToConvert", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "nts" }], examples: [{ input: "ToWrapupCode(NOT_SET)", output: "AR_FN_WRC_TOWRAPUPCODE_NTS_EX_OUT_0" }] }, { description: "AR_FN_WRC_TOWRAPUPCODE_WRC_DSC", identifier: "WrapupCode_ONE toWrapupCode(WrapupCode_ONE)", support: { version: "1.0", resolver: "None" }, supportedFlowTypes: { inboundcall: "inboundcall", inqueuecall: "inqueuecall", outboundcall: "outboundcall", securecall: "securecall", voicemail: "voicemail", inboundchat: "inboundchat", inboundemail: "inboundemail", inboundshortmessage: "inboundshortmessage", commonmodule: "commonmodule" }, needsServerInfo: true, returnValue: { description: "AR_FN_WRC_TOWRAPUPCODE_WRC_RV", isArray: false, type: "wrc" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_WRC_TOWRAPUPCODE_WRC_PRM_DSC_0", identifier: "valueToReturn", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "wrc" }], examples: [{ input: "ToWrapupCode(ToWrapupCode(NOT_SET))", output: "AR_FN_WRC_TOWRAPUPCODE_WRC_EX_OUT_0" }] }], needsServerInfo: true }, isNotSetOrEmpty: { identifier: "isNotSetOrEmpty", description: "AR_FN_DSC_ISNOTSETOREMPTY", type: "function", name: "IsNotSetOrEmpty", category: "comparison", overloads: [{ description: "AR_FN_BLN_ISNOTSETOREMPTY_ANY_DSC", identifier: "Boolean_ONE isNotSetOrEmpty(Any_ONE)", support: { version: "1.0", resolver: "None" }, returnValue: { description: "AR_FN_BLN_ISNOTSETOREMPTY_ANY_RV", isArray: false, type: "bln" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_BLN_ISNOTSETOREMPTY_ANY_PRM_DSC_0", identifier: "item", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "any" }], examples: [{ input: "IsNotSetOrEmpty(true)", output: "false" }, { input: "IsNotSetOrEmpty(false)", output: "false" }, { input: 'IsNotSetOrEmpty(MakeCurrency(10.00, "USD"))', output: "false" }, { input: 'IsNotSetOrEmpty(MakeCurrency(ToDecimal(NOT_SET), "USD"))', output: "true" }, { input: "IsNotSetOrEmpty(ToBool(NOT_SET))", output: "true" }, { input: 'IsNotSetOrEmpty("Hello")', output: "false" }, { input: 'IsNotSetOrEmpty("")', output: "true" }, { input: "IsNotSetOrEmpty(ToString(NOT_SET))", output: "true" }, { input: "IsNotSetOrEmpty(100)", output: "false" }, { input: "IsNotSetOrEmpty(ToInt(NOT_SET))", output: "true" }, { input: "IsNotSetOrEmpty(100.5)", output: "false" }, { input: "IsNotSetOrEmpty(ToDecimal(NOT_SET))", output: "true" }, { input: "IsNotSetOrEmpty(MakeDateTime(2009, 3, 20, 12, 00, 00))", output: "false" }, { input: "IsNotSetOrEmpty(ToDateTime(NOT_SET))", output: "true" }, { input: "IsNotSetOrEmpty(MakeDuration(10, 0, 30, 0))", output: "false" }, { input: "IsNotSetOrEmpty(ToDuration(NOT_SET))", output: "true" }, { input: 'IsNotSetOrEmpty(ToUser("john.doe@company.com"))', output: "false", hidden: "true" }, { input: "IsNotSetOrEmpty(ToUser(NOT_SET))", output: "true" }, { input: 'IsNotSetOrEmpty(ToSkill("Spanish"))', output: "false", hidden: "true" }, { input: "IsNotSetOrEmpty(ToSkill(NOT_SET))", output: "true" }, { input: "IsNotSetOrEmpty(MakeDate(2018, 12, 4))", output: "false", featureConfigName: "botFlows" }, { input: "IsNotSetOrEmpty(ToDate(NOT_SET))", output: "true", featureConfigName: "botFlows" }, { input: "IsNotSetOrEmpty(MakeTime(1, 30, 0))", output: "false", featureConfigName: "botFlows" }, { input: "IsNotSetOrEmpty(ToTime(NOT_SET))", output: "true", featureConfigName: "botFlows" }, { input: "IsNotSetOrEmpty(ToJson(NOT_SET))", output: "true", featureConfigName: "encryptDecryptDataFeature" }, { input: 'IsNotSetOrEmpty(JsonParse("null"))', output: "true", featureConfigName: "encryptDecryptDataFeature" }, { input: "IsNotSetOrEmpty(MakeEmptyJsonString())", output: "true", featureConfigName: "encryptDecryptDataFeature" }, { input: "IsNotSetOrEmpty(MakeEmptyJsonArray())", output: "true", featureConfigName: "encryptDecryptDataFeature" }, { input: "IsNotSetOrEmpty(MakeEmptyJsonObject())", output: "true", featureConfigName: "encryptDecryptDataFeature" }], examplesHaveFeatureToggleOrConfig: true }, { description: "AR_FN_BLN_ISNOTSETOREMPTY_AUDIO_DSC", identifier: "Boolean_ONE isNotSetOrEmpty(Audio_ONE)", support: { version: "1.0", resolver: "None" }, needsServerInfo: true, returnValue: { description: "AR_FN_BLN_ISNOTSETOREMPTY_AUDIO_RV", isArray: false, type: "bln" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_FN_BLN_ISNOTSETOREMPTY_AUDIO_PRM_DSC_0", identifier: "item", isArray: false, helpDisplayIdx: 0, repeatable: false, required: true, type: "aud" }], examples: [{ input: 'IsNotSetOrEmpty(ToAudioTTS("Hello"))', output: "false" }, { input: "IsNotSetOrEmpty(ToAudioBlank(2000))", output: "false" }, { input: "IsNotSetOrEmpty(ToAudioBlank(0))", output: "true" }, { input: "IsNotSetOrEmpty(ToAudio(ToPrompt(NOT_SET)))", output: "true" }] }, { description: "AR_FN_BLN_ISNOTSETOREMPTY_ANY_COLL_DSC", identifier: "Boolean_ONE isNotSetOrEmpty(Any_COLL)", support: { version: "1.0", resolver: "None" }, returnValue: { description: "AR_FN_BLN_ISNOTSETOREMPTY_ANY_COLL_RV", isArray: false, type: "bln" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_FN_BLN_ISNOTSETOREMPTY_ANY_COLL_PRM_DSC_0", identifier: "collection", isArray: true, helpDisplayIdx: 0, repeatable: false, required: true, type: "any" }], examples: [{ input: "IsNotSetOrEmpty(MakeList(true, false))", output: "false" }, { input: "IsNotSetOrEmpty(MakeEmptyList(ToBool(NOT_SET)))", output: "true" }, { input: 'IsNotSetOrEmpty(MakeList(MakeCurrency(10.00, "USD")))', output: "false" }, { input: "IsNotSetOrEmpty(MakeEmptyList(ToCurrency(NOT_SET)))", output: "true" }, { input: 'IsNotSetOrEmpty(MakeList("hello"))', output: "false" }, { input: "IsNotSetOrEmpty(MakeEmptyList(ToString(NOT_SET)))", output: "true" }, { input: "IsNotSetOrEmpty(MakeList(5, 3, 1))", output: "false" }, { input: "IsNotSetOrEmpty(MakeEmptyList(ToInt(NOT_SET)))", output: "true" }, { input: "IsNotSetOrEmpty(MakeList(5.0, 3.0, 1.0))", output: "false" }, { input: "IsNotSetOrEmpty(MakeEmptyList(ToDecimal(NOT_SET)))", output: "true" }, { input: "IsNotSetOrEmpty(MakeList(MakeDateTime(2009, 5, 5, 10, 30, 0)))", output: "false" }, { input: "IsNotSetOrEmpty(MakeEmptyList(ToDateTime(NOT_SET)))", output: "true" }, { input: "IsNotSetOrEmpty(MakeList(MakeDuration(10, 0, 30, 0)))", output: "false" }, { input: "IsNotSetOrEmpty(MakeEmptyList(ToDuration(NOT_SET)))", output: "true" }, { input: 'IsNotSetOrEmpty(MakeList(ToUser("john.doe@company.com")))', output: "false", hidden: "true" }, { input: "IsNotSetOrEmpty(MakeEmptyList(ToUser(NOT_SET)))", output: "true" }, { input: 'IsNotSetOrEmpty(MakeList(ToSkill("Spanish")))', output: "false", hidden: "true" }, { input: "IsNotSetOrEmpty(MakeEmptyList(ToSkill(NOT_SET)))", output: "true" }, { input: "IsNotSetOrEmpty(MakeEmptyList(ToDate(NOT_SET)))", output: "true", featureConfigName: "botFlows" }, { input: "IsNotSetOrEmpty(MakeEmptyList(ToTime(NOT_SET)))", output: "true", featureConfigName: "botFlows" }], examplesHaveFeatureToggleOrConfig: true }, { description: "AR_FN_BLN_ISNOTSETOREMPTY_NTS_DSC", identifier: "Boolean_ONE isNotSetOrEmpty(Null_ONE)", support: { version: "1.0", resolver: "NotSetToRetType" }, returnValue: { description: "AR_FN_BLN_ISNOTSETOREMPTY_NTS_RV", isArray: false, type: "bln" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_BLN_ISNOTSETOREMPTY_NTS_PRM_DSC_0", identifier: "item", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "nts" }], examples: [{ input: "IsNotSetOrEmpty(NOT_SET)", output: "true" }] }], needsServerInfo: true }, makeAgentScorePair: { identifier: "makeAgentScorePair", description: "AR_FN_DSC_MAKEAGENTSCOREPAIR", type: "function", name: "MakeAgentScorePair", category: "complex", overloads: [{ description: "AR_FN_AGENTSCOREPAIR_MAKEAGENTSCOREPAIR_USR_LNG_DSC", identifier: "AgentScorePair_ONE makeAgentScorePair(User_ONE,Long_ONE)", support: { version: "1.0", resolver: "None" }, supportedFlowTypes: { bot: "bot", digitalbot: "digitalbot", commonmodule: "commonmodule", emailsend: "emailsend", inboundcall: "inboundcall", inboundchat: "inboundchat", inboundemail: "inboundemail", inboundshortmessage: "inboundshortmessage", inqueuecall: "inqueuecall", inqueueemail: "inqueueemail", inqueueshortmessage: "inqueueshortmessage", securecall: "securecall", workitem: "workitem", voice: "voice", voicemail: "voicemail" }, needsServerInfo: true, returnValue: { description: "AR_FN_AGENTSCOREPAIR_MAKEAGENTSCOREPAIR_USR_LNG_RV", isArray: false, type: "cpx_agent_score_pair" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_FN_AGENTSCOREPAIR_MAKEAGENTSCOREPAIR_USR_LNG_PRM_DSC_0", identifier: "agent", isArray: false, helpDisplayIdx: 0, repeatable: false, required: true, type: "usr" }, { allowNotSet: false, allowCustomJson: false, description: "AR_FN_AGENTSCOREPAIR_MAKEAGENTSCOREPAIR_USR_LNG_PRM_DSC_1", identifier: "score", isArray: false, helpDisplayIdx: 1, max: "100", min: "0", repeatable: false, required: true, type: "int" }], examples: [{ input: 'MakeAgentScorePair(FindUserById("5B943B5F-4205-B70F-8BE1-A245A94B2919"), 25)', output: 'An AgentScorePair value with an agent property User value with the ID "5b943b5F-4205-b70F-8be1-a245a94b2919" and score property value of 25.' }] }], needsServerInfo: true }, makeCard: { identifier: "makeCard", description: "AR_FN_DSC_MAKECARD", type: "function", name: "MakeCard", category: "complex", overloads: [{ description: "AR_FN_CARD_MAKECARD_STR_STR_CHOICE_COLL_IMAGE_DSC", identifier: "Card_ONE makeCard(String_ONE,String_ONE,Choice_COLL,Image_ONE)", support: { version: "1.0", resolver: "None" }, supportedFlowTypes: { digitalbot: "digitalbot" }, needsServerInfo: true, returnValue: { description: "AR_FN_CARD_MAKECARD_STR_STR_CHOICE_COLL_IMAGE_RV", isArray: false, type: "crd" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_CARD_MAKECARD_STR_STR_CHOICE_COLL_IMAGE_PRM_DSC_0", identifier: "title", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "str", minLength: "1" }, { allowNotSet: true, allowCustomJson: false, description: "AR_FN_CARD_MAKECARD_STR_STR_CHOICE_COLL_IMAGE_PRM_DSC_1", identifier: "description", isArray: false, helpDisplayIdx: 1, repeatable: false, required: false, type: "str" }, { allowNotSet: false, allowCustomJson: false, description: "AR_FN_CARD_MAKECARD_STR_STR_CHOICE_COLL_IMAGE_PRM_DSC_2", identifier: "buttons", isArray: true, helpDisplayIdx: 2, repeatable: false, required: true, type: "chc", maxItems: "3" }, { allowNotSet: true, allowCustomJson: false, description: "AR_FN_CARD_MAKECARD_STR_STR_CHOICE_COLL_IMAGE_PRM_DSC_3", identifier: "image", isArray: false, helpDisplayIdx: 3, repeatable: false, required: false, type: "img" }], examples: [{ input: 'MakeCard("Pizza Size", "Please select your pizza size.", MakeList(MakePostbackChoice("small", "Small"), MakePostbackChoice("medium", "Medium"), MakePostbackChoice("large", "Large")), FindImage("Pizza Size"))', output: "AR_FN_CARD_MAKECARD_STR_STR_CHOICE_COLL_IMAGE_EX_OUT_0" }] }], needsServerInfo: true }, makeCarousel: { identifier: "makeCarousel", description: "AR_FN_DSC_MAKECAROUSEL", type: "function", name: "MakeCarousel", category: "complex", overloads: [{ description: "AR_FN_CAROUSEL_MAKECAROUSEL_CARD_COLL_DSC", identifier: "Carousel_ONE makeCarousel(Card_COLL)", support: { version: "1.0", resolver: "None" }, supportedFlowTypes: { digitalbot: "digitalbot" }, needsServerInfo: true, returnValue: { description: "AR_FN_CAROUSEL_MAKECAROUSEL_CARD_COLL_RV", isArray: false, type: "crs" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_CAROUSEL_MAKECAROUSEL_CARD_COLL_PRM_DSC_0", identifier: "cards", isArray: true, helpDisplayIdx: 0, repeatable: false, required: false, type: "crd", maxItems: "10" }], examples: [{ input: 'MakeCarousel(MakeList(MakeCard("Beginner Class", "Learn how to author cards, carousels and quick replies in Architect.", MakeList(MakePostbackChoice("signupBeginner", "Sign Me Up!")), FindImage("Beginner Class")), MakeCard("Intermediate Class", "Learn about button choices and slot types.", MakeList(MakePostbackChoice("signupIntermediate", "Sign Me Up!")), FindImage("Intermediate Class")), MakeCard("Advanced Class", "Create cards, carousels and quick replies using expressions.", MakeList(MakePostbackChoice("signupAdvanced", "Sign Me Up!")), FindImage("Advanced Class"))))', output: "AR_FN_CAROUSEL_MAKECAROUSEL_CARD_COLL_EX_OUT_0" }] }], needsServerInfo: true }, makeChoice: { identifier: "makeChoice", description: "AR_FN_DSC_MAKECHOICE", type: "function", name: "MakeChoice", category: "complex", overloads: [{ description: "AR_FN_CHOICE_MAKECHOICE_STR_STR_STR_DSC", identifier: "Choice_ONE makeChoice(String_ONE,String_ONE,String_ONE)", support: { version: "1.0", resolver: "None" }, supportedFlowTypes: { digitalbot: "digitalbot" }, needsServerInfo: true, returnValue: { description: "AR_FN_CHOICE_MAKECHOICE_STR_STR_STR_RV", isArray: false, type: "chc" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_FN_CHOICE_MAKECHOICE_STR_STR_STR_PRM_DSC_0", identifier: "type", isArray: false, helpDisplayIdx: 0, repeatable: false, required: true, type: "str" }, { allowNotSet: false, allowCustomJson: false, description: "AR_FN_CHOICE_MAKECHOICE_STR_STR_STR_PRM_DSC_1", identifier: "value", isArray: false, helpDisplayIdx: 1, repeatable: false, required: true, type: "str" }, { allowNotSet: true, allowCustomJson: false, description: "AR_FN_CHOICE_MAKECHOICE_STR_STR_STR_PRM_DSC_2", identifier: "label", isArray: false, helpDisplayIdx: 2, repeatable: false, required: false, type: "str" }], examples: [{ input: 'MakeChoice("url", "https://www.genesys.com", "Genesys")', output: "AR_FN_CHOICE_MAKECHOICE_STR_STR_STR_EX_OUT_0" }, { input: 'MakeChoice("postback", "support", "Help and Support")', output: "AR_FN_CHOICE_MAKECHOICE_STR_STR_STR_EX_OUT_1" }] }, { description: "AR_FN_CHOICE_MAKECHOICE_STR_STR_STR_STR_DSC", identifier: "Choice_ONE makeChoice(String_ONE,String_ONE,String_ONE,String_ONE)", support: { version: "1.0", resolver: "None" }, supportedFlowTypes: { digitalbot: "digitalbot" }, needsServerInfo: true, returnValue: { description: "AR_FN_CHOICE_MAKECHOICE_STR_STR_STR_STR_RV", isArray: false, type: "chc" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_FN_CHOICE_MAKECHOICE_STR_STR_STR_STR_PRM_DSC_0", identifier: "type", isArray: false, helpDisplayIdx: 0, repeatable: false, required: true, type: "str" }, { allowNotSet: false, allowCustomJson: false, description: "AR_FN_CHOICE_MAKECHOICE_STR_STR_STR_STR_PRM_DSC_1", identifier: "value", isArray: false, helpDisplayIdx: 1, repeatable: false, required: true, type: "str" }, { allowNotSet: true, allowCustomJson: false, description: "AR_FN_CHOICE_MAKECHOICE_STR_STR_STR_STR_PRM_DSC_2", identifier: "label", isArray: false, helpDisplayIdx: 2, repeatable: false, required: false, type: "str" }, { allowNotSet: true, allowCustomJson: false, description: "AR_FN_CHOICE_MAKECHOICE_STR_STR_STR_STR_PRM_DSC_3", identifier: "command", isArray: false, helpDisplayIdx: 3, repeatable: false, required: false, type: "str" }], examples: [{ input: 'MakeChoice("url", "https://www.genesys.com", "Genesys", "skip")', output: "AR_FN_CHOICE_MAKECHOICE_STR_STR_STR_STR_EX_OUT_0" }] }], needsServerInfo: true }, makePostbackChoice: { identifier: "makePostbackChoice", description: "AR_FN_DSC_MAKEPOSTBACKCHOICE", type: "function", name: "MakePostbackChoice", category: "complex", overloads: [{ description: "AR_FN_CHOICE_MAKEPOSTBACKCHOICE_STR_DSC", identifier: "Choice_ONE makePostbackChoice(String_ONE)", support: { version: "1.0", resolver: "None" }, supportedFlowTypes: { digitalbot: "digitalbot" }, needsServerInfo: true, returnValue: { description: "AR_FN_CHOICE_MAKEPOSTBACKCHOICE_STR_RV", isArray: false, type: "chc" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_FN_CHOICE_MAKEPOSTBACKCHOICE_STR_PRM_DSC_0", identifier: "value", isArray: false, helpDisplayIdx: 0, repeatable: false, required: true, type: "str" }], examples: [{ input: 'MakePostbackChoice("support")', output: "AR_FN_CHOICE_MAKEPOSTBACKCHOICE_STR_EX_OUT_0" }] }, { description: "AR_FN_CHOICE_MAKEPOSTBACKCHOICE_STR_STR_DSC", identifier: "Choice_ONE makePostbackChoice(String_ONE,String_ONE)", support: { version: "1.0", resolver: "None" }, supportedFlowTypes: { digitalbot: "digitalbot" }, needsServerInfo: true, returnValue: { description: "AR_FN_CHOICE_MAKEPOSTBACKCHOICE_STR_STR_RV", isArray: false, type: "chc" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_FN_CHOICE_MAKEPOSTBACKCHOICE_STR_STR_PRM_DSC_0", identifier: "value", isArray: false, helpDisplayIdx: 0, repeatable: false, required: true, type: "str" }, { allowNotSet: true, allowCustomJson: false, description: "AR_FN_CHOICE_MAKEPOSTBACKCHOICE_STR_STR_PRM_DSC_1", identifier: "label", isArray: false, helpDisplayIdx: 1, repeatable: false, required: false, type: "str" }], examples: [{ input: 'MakePostbackChoice("support", "Help and Support")', output: "AR_FN_CHOICE_MAKEPOSTBACKCHOICE_STR_STR_EX_OUT_0" }] }, { description: "AR_FN_CHOICE_MAKEPOSTBACKCHOICE_STR_STR_STR_DSC", identifier: "Choice_ONE makePostbackChoice(String_ONE,String_ONE,String_ONE)", support: { version: "1.0", resolver: "None" }, supportedFlowTypes: { digitalbot: "digitalbot" }, needsServerInfo: true, returnValue: { description: "AR_FN_CHOICE_MAKEPOSTBACKCHOICE_STR_STR_STR_RV", isArray: false, type: "chc" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_FN_CHOICE_MAKEPOSTBACKCHOICE_STR_STR_STR_PRM_DSC_0", identifier: "value", isArray: false, helpDisplayIdx: 0, repeatable: false, required: true, type: "str" }, { allowNotSet: true, allowCustomJson: false, description: "AR_FN_CHOICE_MAKEPOSTBACKCHOICE_STR_STR_STR_PRM_DSC_1", identifier: "label", isArray: false, helpDisplayIdx: 1, repeatable: false, required: false, type: "str" }, { allowNotSet: true, allowCustomJson: false, description: "AR_FN_CHOICE_MAKEPOSTBACKCHOICE_STR_STR_STR_PRM_DSC_2", identifier: "command", isArray: false, helpDisplayIdx: 2, repeatable: false, required: false, type: "str" }], examples: [{ input: 'MakePostbackChoice("support", "Help and Support", "skip")', output: "AR_FN_CHOICE_MAKEPOSTBACKCHOICE_STR_STR_STR_EX_OUT_0" }] }], needsServerInfo: true }, makeUrlChoice: { identifier: "makeUrlChoice", description: "AR_FN_DSC_MAKEURLCHOICE", type: "function", name: "MakeUrlChoice", category: "complex", overloads: [{ description: "AR_FN_CHOICE_MAKEURLCHOICE_STR_DSC", identifier: "Choice_ONE makeUrlChoice(String_ONE)", support: { version: "1.0", resolver: "None" }, supportedFlowTypes: { digitalbot: "digitalbot" }, needsServerInfo: true, returnValue: { description: "AR_FN_CHOICE_MAKEURLCHOICE_STR_RV", isArray: false, type: "chc" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_FN_CHOICE_MAKEURLCHOICE_STR_PRM_DSC_0", identifier: "url", isArray: false, helpDisplayIdx: 0, repeatable: false, required: true, type: "str" }], examples: [{ input: 'MakeUrlChoice("https://www.genesys.com")', output: "AR_FN_CHOICE_MAKEURLCHOICE_STR_EX_OUT_0" }] }, { description: "AR_FN_CHOICE_MAKEURLCHOICE_STR_STR_DSC", identifier: "Choice_ONE makeUrlChoice(String_ONE,String_ONE)", support: { version: "1.0", resolver: "None" }, supportedFlowTypes: { digitalbot: "digitalbot" }, needsServerInfo: true, returnValue: { description: "AR_FN_CHOICE_MAKEURLCHOICE_STR_STR_RV", isArray: false, type: "chc" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_FN_CHOICE_MAKEURLCHOICE_STR_STR_PRM_DSC_0", identifier: "url", isArray: false, helpDisplayIdx: 0, repeatable: false, required: true, type: "str" }, { allowNotSet: true, allowCustomJson: false, description: "AR_FN_CHOICE_MAKEURLCHOICE_STR_STR_PRM_DSC_1", identifier: "linkLabel", isArray: false, helpDisplayIdx: 1, repeatable: false, required: false, type: "str" }], examples: [{ input: 'MakeUrlChoice("https://www.genesys.com", "Genesys")', output: "AR_FN_CHOICE_MAKEURLCHOICE_STR_STR_EX_OUT_0" }] }], needsServerInfo: true }, makeChooser: { identifier: "makeChooser", description: "AR_FN_DSC_MAKECHOOSER", type: "function", name: "MakeChooser", category: "complex", overloads: [{ description: "AR_FN_CHOOSER_MAKECHOOSER_CARD_DSC", identifier: "Chooser_ONE makeChooser(Card_ONE)", support: { version: "1.0", resolver: "None" }, supportedFlowTypes: { digitalbot: "digitalbot" }, needsServerInfo: true, returnValue: { description: "AR_FN_CHOOSER_MAKECHOOSER_CARD_RV", isArray: false, type: "chs" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_CHOOSER_MAKECHOOSER_CARD_PRM_DSC_0", identifier: "card", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "crd" }], examples: [{ input: 'MakeChooser(MakeCard("Shirt Colors", "Please select a shirt color.", MakeList(MakePostbackChoice("red", "Red"), MakePostbackChoice("green", "Green"), MakePostbackChoice("blue", "Blue")), FindImage("shirtSizes.png")))', output: "AR_FN_CHOOSER_MAKECHOOSER_CARD_EX_OUT_0" }] }, { description: "AR_FN_CHOOSER_MAKECHOOSER_CAROUSEL_DSC", identifier: "Chooser_ONE makeChooser(Carousel_ONE)", support: { version: "1.0", resolver: "None" }, supportedFlowTypes: { digitalbot: "digitalbot" }, needsServerInfo: true, returnValue: { description: "AR_FN_CHOOSER_MAKECHOOSER_CAROUSEL_RV", isArray: false, type: "chs" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_CHOOSER_MAKECHOOSER_CAROUSEL_PRM_DSC_0", identifier: "carousel", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "crs" }], examples: [{ input: 'MakeChooser(MakeCarousel(MakeList(MakeCard("Beginner Class", "Learn how to author cards, carousels and quick replies in Architect.", MakeList(MakePostbackChoice("signupBeginner", "Sign Me Up!")), FindImage("Beginner Class")), MakeCard("Intermediate Class", "Learn about button choices and slot types.", MakeList(MakePostbackChoice("signupIntermediate", "Sign Me Up!")), FindImage("Intermediate Class")), MakeCard("Advanced Class", "Create cards, carousels and quick replies using expressions.", MakeList(MakePostbackChoice("signupAdvanced", "Sign Me Up!")), FindImage("Advanced Class")))))', output: "AR_FN_CHOOSER_MAKECHOOSER_CAROUSEL_EX_OUT_0" }] }, { description: "AR_FN_CHOOSER_MAKECHOOSER_QUICKREPLIES_DSC", identifier: "Chooser_ONE makeChooser(QuickReplies_ONE)", support: { version: "1.0", resolver: "None" }, supportedFlowTypes: { digitalbot: "digitalbot" }, needsServerInfo: true, returnValue: { description: "AR_FN_CHOOSER_MAKECHOOSER_QUICKREPLIES_RV", isArray: false, type: "chs" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_CHOOSER_MAKECHOOSER_QUICKREPLIES_PRM_DSC_0", identifier: "quickReplies", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "qrl" }], examples: [{ input: 'MakeChooser(MakeQuickReplies(MakeList(MakePostbackChoice("red", "Red"), MakePostbackChoice("blue", "Blue"))))', output: "AR_FN_CHOOSER_MAKECHOOSER_QUICKREPLIES_EX_OUT_0" }, { input: 'MakeChooser(MakeQuickReplies(MakeList(MakePostbackChoice("red", "Red"), MakePostbackChoice("blue", "Blue")), "Thanks for your selection"))', output: "AR_FN_CHOOSER_MAKECHOOSER_QUICKREPLIES_EX_OUT_1", featureConfigName: "digitalBotFlowsAppleMessaging" }], examplesHaveFeatureToggleOrConfig: true }, { description: "AR_FN_CHOOSER_MAKECHOOSER_TIMEPICKER_DSC", identifier: "Chooser_ONE makeChooser(TimePicker_ONE)", support: { version: "1.0", resolver: "None" }, supportedFlowTypes: { digitalbot: "digitalbot" }, featureConfigName: "botFlowsMessagingDatePicker", needsServerInfo: true, returnValue: { description: "AR_FN_CHOOSER_MAKECHOOSER_TIMEPICKER_RV", isArray: false, type: "chs" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_CHOOSER_MAKECHOOSER_TIMEPICKER_PRM_DSC_0", identifier: "timePicker", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "tpk" }], examples: [{ input: 'MakeChooser(MakeTimePicker("Schedule Appointment"))', output: "AR_FN_CHOOSER_MAKECHOOSER_TIMEPICKER_EX_OUT_0" }] }, { description: "AR_FN_CHOOSER_MAKECHOOSER_LISTPICKER_DSC", identifier: "Chooser_ONE makeChooser(ListPicker_ONE)", support: { version: "1.0", resolver: "None" }, supportedFlowTypes: { digitalbot: "digitalbot" }, featureConfigName: "botFlowsAppleListPicker", needsServerInfo: true, returnValue: { description: "AR_FN_CHOOSER_MAKECHOOSER_LISTPICKER_RV", isArray: false, type: "chs" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_CHOOSER_MAKECHOOSER_LISTPICKER_PRM_DSC_0", identifier: "listPicker", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "lpk" }], examples: [{ input: 'MakeChooser(MakeListPicker(MakeList(MakeListPickerSection("Sides", true, MakeList(MakeListPickerItem("Fries", NOT_SET, MakeImageFromUrl(NOT_SET))))), MakeImageFromUrl(NOT_SET), "Menu", "Items to order", MakeImageFromUrl(NOT_SET), NOT_SET))', output: "AR_FN_CHOOSER_MAKECHOOSER_LISTPICKER_EX_OUT_0" }] }], needsServerInfo: true }, makeCurrency: { identifier: "makeCurrency", description: "AR_FN_DSC_MAKECURRENCY", type: "function", name: "MakeCurrency", category: "financial", overloads: [{ description: "AR_FN_CUR_MAKECURRENCY_DEC_STR_DSC", identifier: "Currency_ONE makeCurrency(Decimal_ONE,String_ONE)", support: { version: "1.0", resolver: "None" }, returnValue: { description: "AR_FN_CUR_MAKECURRENCY_DEC_STR_RV", isArray: false, type: "cur" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_CUR_MAKECURRENCY_DEC_STR_PRM_DSC_0", identifier: "amount", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "dec" }, { allowNotSet: true, allowCustomJson: false, description: "AR_FN_CUR_MAKECURRENCY_DEC_STR_PRM_DSC_1", identifier: "currencyCode", isArray: false, helpDisplayIdx: 1, repeatable: false, required: false, type: "str", literalValidatorName: "ISO4217" }], examples: [{ input: 'MakeCurrency(10.50, "USD")', output: "AR_FN_CUR_MAKECURRENCY_DEC_STR_EX_OUT_0" }, { input: 'MakeCurrency(5.00, "EUR")', output: "AR_FN_CUR_MAKECURRENCY_DEC_STR_EX_OUT_1" }, { input: 'MakeCurrency(NOT_SET, "USD")', output: "AR_FN_CUR_MAKECURRENCY_DEC_STR_EX_OUT_2" }, { input: "MakeCurrency(100.00, NOT_SET)", output: "AR_FN_CUR_MAKECURRENCY_DEC_STR_EX_OUT_3" }] }, { description: "AR_FN_CUR_MAKECURRENCY_LNG_STR_DSC", identifier: "Currency_ONE makeCurrency(Long_ONE,String_ONE)", support: { version: "1.0", resolver: "None" }, returnValue: { description: "AR_FN_CUR_MAKECURRENCY_LNG_STR_RV", isArray: false, type: "cur" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_CUR_MAKECURRENCY_LNG_STR_PRM_DSC_0", identifier: "amount", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "int" }, { allowNotSet: true, allowCustomJson: false, description: "AR_FN_CUR_MAKECURRENCY_LNG_STR_PRM_DSC_1", identifier: "currencyCode", isArray: false, helpDisplayIdx: 1, repeatable: false, required: false, type: "str", literalValidatorName: "ISO4217" }], examples: [{ input: 'MakeCurrency(10, "USD")', output: "AR_FN_CUR_MAKECURRENCY_LNG_STR_EX_OUT_0" }, { input: 'MakeCurrency(5, "EUR")', output: "AR_FN_CUR_MAKECURRENCY_LNG_STR_EX_OUT_1" }, { input: 'MakeCurrency(NOT_SET, "USD")', output: "AR_FN_CUR_MAKECURRENCY_LNG_STR_EX_OUT_2" }, { input: "MakeCurrency(100, NOT_SET)", output: "AR_FN_CUR_MAKECURRENCY_LNG_STR_EX_OUT_3" }] }] }, makeDigitalAudioFromUrl: { identifier: "makeDigitalAudioFromUrl", description: "AR_FN_DSC_MAKEDIGITALAUDIOFROMURL", type: "function", name: "MakeDigitalAudioFromUrl", category: "complex", overloads: [{ description: "AR_FN_DIGITALAUDIO_MAKEDIGITALAUDIOFROMURL_STR_DSC", identifier: "DigitalAudio_ONE makeDigitalAudioFromUrl(String_ONE)", support: { version: "1.0", resolver: "None" }, needsServerInfo: true, returnValue: { description: "AR_FN_DIGITALAUDIO_MAKEDIGITALAUDIOFROMURL_STR_RV", isArray: false, type: "dia" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_DIGITALAUDIO_MAKEDIGITALAUDIOFROMURL_STR_PRM_DSC_0", identifier: "url", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "str" }], examples: [{ input: 'MakeDigitalAudioFromUrl("https://www.genesys.com/media/genesys-digital-bot-flows.mp3")', output: "AR_FN_DIGITALAUDIO_MAKEDIGITALAUDIOFROMURL_STR_EX_OUT_0" }] }, { description: "AR_FN_DIGITALAUDIO_MAKEDIGITALAUDIOFROMURL_NTS_DSC", identifier: "DigitalAudio_ONE makeDigitalAudioFromUrl(Null_ONE)", support: { version: "1.0", resolver: "None" }, needsServerInfo: true, returnValue: { description: "AR_FN_DIGITALAUDIO_MAKEDIGITALAUDIOFROMURL_NTS_RV", isArray: false, type: "dia" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_DIGITALAUDIO_MAKEDIGITALAUDIOFROMURL_NTS_PRM_DSC_0", identifier: "nullValue", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "nts" }], examples: [{ input: "MakeDigitalAudioFromUrl(NOT_SET)", output: "AR_FN_DIGITALAUDIO_MAKEDIGITALAUDIOFROMURL_NTS_EX_OUT_0" }] }], needsServerInfo: true }, makeFileFromUrl: { identifier: "makeFileFromUrl", description: "AR_FN_DSC_MAKEFILEFROMURL", type: "function", name: "MakeFileFromUrl", category: "complex", overloads: [{ description: "AR_FN_FILE_MAKEFILEFROMURL_STR_DSC", identifier: "File_ONE makeFileFromUrl(String_ONE)", support: { version: "1.0", resolver: "None" }, needsServerInfo: true, returnValue: { description: "AR_FN_FILE_MAKEFILEFROMURL_STR_RV", isArray: false, type: "fil" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_FILE_MAKEFILEFROMURL_STR_PRM_DSC_0", identifier: "url", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "str" }], examples: [{ input: 'MakeFileFromUrl("https://www.genesys.com/documents/genesys-digital-bot-flows.pdf")', output: "AR_FN_FILE_MAKEFILEFROMURL_STR_EX_OUT_0" }] }, { description: "AR_FN_FILE_MAKEFILEFROMURL_NTS_DSC", identifier: "File_ONE makeFileFromUrl(Null_ONE)", support: { version: "1.0", resolver: "None" }, needsServerInfo: true, returnValue: { description: "AR_FN_FILE_MAKEFILEFROMURL_NTS_RV", isArray: false, type: "fil" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_FILE_MAKEFILEFROMURL_NTS_PRM_DSC_0", identifier: "nullValue", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "nts" }], examples: [{ input: "MakeFileFromUrl(NOT_SET)", output: "AR_FN_FILE_MAKEFILEFROMURL_NTS_EX_OUT_0" }] }], needsServerInfo: true }, makeImageFromUrl: { identifier: "makeImageFromUrl", description: "AR_FN_DSC_MAKEIMAGEFROMURL", type: "function", name: "MakeImageFromUrl", category: "complex", overloads: [{ description: "AR_FN_IMAGE_MAKEIMAGEFROMURL_STR_DSC", identifier: "Image_ONE makeImageFromUrl(String_ONE)", support: { version: "1.0", resolver: "None" }, needsServerInfo: true, returnValue: { description: "AR_FN_IMAGE_MAKEIMAGEFROMURL_STR_RV", isArray: false, type: "img" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_IMAGE_MAKEIMAGEFROMURL_STR_PRM_DSC_0", identifier: "url", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "str" }], examples: [{ input: 'MakeImageFromUrl("https://www.genesys.com/media/genesys-logo.png")', output: "AR_FN_IMAGE_MAKEIMAGEFROMURL_STR_EX_OUT_0" }] }, { description: "AR_FN_IMAGE_MAKEIMAGEFROMURL_STR_STR_DSC", identifier: "Image_ONE makeImageFromUrl(String_ONE,String_ONE)", support: { version: "1.0", resolver: "None" }, needsServerInfo: true, returnValue: { description: "AR_FN_IMAGE_MAKEIMAGEFROMURL_STR_STR_RV", isArray: false, type: "img" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_IMAGE_MAKEIMAGEFROMURL_STR_STR_PRM_DSC_0", identifier: "url", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "str" }, { allowNotSet: true, allowCustomJson: false, description: "AR_FN_IMAGE_MAKEIMAGEFROMURL_STR_STR_PRM_DSC_1", identifier: "name", isArray: false, helpDisplayIdx: 1, repeatable: false, required: false, type: "str" }], examples: [{ input: 'MakeImageFromUrl("https://www.genesys.com/media/genesys-logo.png", "Genesys Logo")', output: "AR_FN_IMAGE_MAKEIMAGEFROMURL_STR_STR_EX_OUT_0" }] }, { description: "AR_FN_IMAGE_MAKEIMAGEFROMURL_NTS_DSC", identifier: "Image_ONE makeImageFromUrl(Null_ONE)", support: { version: "1.0", resolver: "None" }, needsServerInfo: true, returnValue: { description: "AR_FN_IMAGE_MAKEIMAGEFROMURL_NTS_RV", isArray: false, type: "img" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_IMAGE_MAKEIMAGEFROMURL_NTS_PRM_DSC_0", identifier: "nullValue", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "nts" }], examples: [{ input: "MakeImageFromUrl(NOT_SET)", output: "AR_FN_IMAGE_MAKEIMAGEFROMURL_NTS_EX_OUT_0" }] }], needsServerInfo: true }, makeLineItem: { identifier: "makeLineItem", description: "AR_FN_DSC_MAKELINEITEM", type: "function", name: "MakeLineItem", category: "complex", overloads: [{ description: "AR_FN_LINEITEM_MAKELINEITEM_STR_CUR_DSC", identifier: "LineItem_ONE makeLineItem(String_ONE,Currency_ONE)", support: { version: "1.0", resolver: "None" }, supportedFlowTypes: { digitalbot: "digitalbot" }, featureConfigName: "botFlowsApplePay", returnValue: { description: "AR_FN_LINEITEM_MAKELINEITEM_STR_CUR_RV", isArray: false, type: "lni" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_FN_LINEITEM_MAKELINEITEM_STR_CUR_PRM_DSC_0", identifier: "listingName", isArray: false, helpDisplayIdx: 0, repeatable: false, required: true, type: "str", minLength: "1" }, { allowNotSet: false, allowCustomJson: false, description: "AR_FN_LINEITEM_MAKELINEITEM_STR_CUR_PRM_DSC_1", identifier: "listingPrice", isArray: false, helpDisplayIdx: 1, repeatable: false, required: true, type: "cur" }], examples: [{ input: 'MakeLineItem("T-Shirt", MakeCurrency(19.99, "USD"))', output: "AR_FN_LINEITEM_MAKELINEITEM_STR_CUR_EX_OUT_0" }] }] }, toLineItem: { identifier: "toLineItem", description: "AR_FN_DSC_TOLINEITEM", type: "function", name: "ToLineItem", category: "cast", overloads: [{ description: "AR_FN_LINEITEM_TOLINEITEM_LINEITEM_DSC", identifier: "LineItem_ONE ToLineItem(LineItem_ONE)", support: { version: "1.0", resolver: "None" }, featureConfigName: "botFlowsApplePay", needsServerInfo: true, returnValue: { description: "AR_FN_LINEITEM_TOLINEITEM_LINEITEM_RV", isArray: false, type: "lni" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_LINEITEM_TOLINEITEM_LINEITEM_PRM_DSC_0", identifier: "lineItem", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "lni" }], examples: [{ input: 'ToLineItem(MakeLineItem("Fishing Road", MakeCurrency(200.0, "USD")))', output: "AR_FN_LINEITEM_TOLINEITEM_LINEITEM_EX_OUT_0" }] }, { description: "AR_FN_LINEITEM_TOLINEITEM_NTS_DSC", identifier: "LineItem_ONE toLineItem(Null_ONE)", support: { version: "1.0", resolver: "NotSetToRetType" }, needsServerInfo: true, returnValue: { description: "AR_FN_LINEITEM_TOLINEITEM_NTS_RV", isArray: false, type: "lni" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_LINEITEM_TOLINEITEM_NTS_PRM_DSC_0", identifier: "nullValue", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "nts" }], examples: [{ input: "ToLineItem(NOT_SET)", output: "AR_FN_LINEITEM_TOLINEITEM_NTS_EX_OUT_0" }] }], needsServerInfo: true }, makeListPickerItem: { identifier: "makeListPickerItem", description: "AR_FN_DSC_MAKELISTPICKERITEM", type: "function", name: "MakeListPickerItem", category: "complex", overloads: [{ description: "AR_FN_LISTPICKERITEM_MAKELISTPICKERITEM_STR_STR_IMAGE_DSC", identifier: "ListPickerItem_ONE makeListPickerItem(String_ONE,String_ONE,Image_ONE)", support: { version: "1.0", resolver: "None" }, supportedFlowTypes: { digitalbot: "digitalbot" }, featureConfigName: "botFlowsAppleListPicker", needsServerInfo: true, returnValue: { description: "AR_FN_LISTPICKERITEM_MAKELISTPICKERITEM_STR_STR_IMAGE_RV", isArray: false, type: "lpi" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_FN_LISTPICKERITEM_MAKELISTPICKERITEM_STR_STR_IMAGE_PRM_DSC_0", identifier: "title", isArray: false, helpDisplayIdx: 0, repeatable: false, required: true, type: "str", minLength: "1" }, { allowNotSet: true, allowCustomJson: false, description: "AR_FN_LISTPICKERITEM_MAKELISTPICKERITEM_STR_STR_IMAGE_PRM_DSC_1", identifier: "subtitle", isArray: false, helpDisplayIdx: 1, repeatable: false, required: false, type: "str", minLength: "1" }, { allowNotSet: true, allowCustomJson: false, description: "AR_FN_LISTPICKERITEM_MAKELISTPICKERITEM_STR_STR_IMAGE_PRM_DSC_2", identifier: "image", isArray: false, helpDisplayIdx: 2, repeatable: false, required: false, type: "img" }], examples: [{ input: 'MakeListPickerItem("Fries", NOT_SET, MakeImageFromUrl(NOT_SET))', output: "AR_FN_LISTPICKERITEM_MAKELISTPICKERITEM_STR_STR_IMAGE_EX_OUT_0" }, { input: 'MakeListPickerItem("Fries", NOT_SET, MakeImageFromUrl(NOT_SET))', output: "AR_FN_LISTPICKERITEM_MAKELISTPICKERITEM_STR_STR_IMAGE_EX_OUT_1" }, { input: 'MakeListPickerItem("Fries", NOT_SET, NOT_SET)', output: "AR_FN_LISTPICKERITEM_MAKELISTPICKERITEM_STR_STR_IMAGE_EX_OUT_2" }] }], needsServerInfo: true }, makeListPickerSection: { identifier: "makeListPickerSection", description: "AR_FN_DSC_MAKELISTPICKERSECTION", type: "function", name: "MakeListPickerSection", category: "complex", overloads: [{ description: "AR_FN_LISTPICKERSECTION_MAKELISTPICKERSECTION_STR_BLN_LISTPICKERITEM_COLL_DSC", identifier: "ListPickerSection_ONE makeListPickerSection(String_ONE,Boolean_ONE,ListPickerItem_COLL)", support: { version: "1.0", resolver: "None" }, supportedFlowTypes: { digitalbot: "digitalbot" }, featureConfigName: "botFlowsAppleListPicker", needsServerInfo: true, returnValue: { description: "AR_FN_LISTPICKERSECTION_MAKELISTPICKERSECTION_STR_BLN_LISTPICKERITEM_COLL_RV", isArray: false, type: "lps" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_FN_LISTPICKERSECTION_MAKELISTPICKERSECTION_STR_BLN_LISTPICKERITEM_COLL_PRM_DSC_0", identifier: "title", isArray: false, helpDisplayIdx: 0, repeatable: false, required: true, type: "str", minLength: "1" }, { allowNotSet: true, allowCustomJson: false, description: "AR_FN_LISTPICKERSECTION_MAKELISTPICKERSECTION_STR_BLN_LISTPICKERITEM_COLL_PRM_DSC_1", identifier: "multiSelectEnabled", isArray: false, helpDisplayIdx: 1, repeatable: false, required: false, type: "bln" }, { allowNotSet: true, allowCustomJson: false, description: "AR_FN_LISTPICKERSECTION_MAKELISTPICKERSECTION_STR_BLN_LISTPICKERITEM_COLL_PRM_DSC_2", identifier: "items", isArray: true, helpDisplayIdx: 2, repeatable: false, required: false, type: "lpi" }], examples: [{ input: 'MakeListPickerSection("Sides", true, MakeList(MakeListPickerItem("Fries", NOT_SET, MakeImageFromUrl(NOT_SET)), MakeListPickerItem("Soup", NOT_SET, MakeImageFromUrl(NOT_SET))))', output: "AR_FN_LISTPICKERSECTION_MAKELISTPICKERSECTION_STR_BLN_LISTPICKERITEM_COLL_EX_OUT_0" }] }], needsServerInfo: true }, makeListPicker: { identifier: "makeListPicker", description: "AR_FN_DSC_MAKELISTPICKER", type: "function", name: "MakeListPicker", category: "complex", overloads: [{ description: "AR_FN_LISTPICKER_MAKELISTPICKER_LISTPICKERSECTION_COLL_IMAGE_STR_STR_IMAGE_STR_DSC", identifier: "ListPicker_ONE makeListPicker(ListPickerSection_COLL,Image_ONE,String_ONE,String_ONE,Image_ONE,String_ONE)", support: { version: "1.0", resolver: "None" }, supportedFlowTypes: { digitalbot: "digitalbot" }, featureConfigName: "botFlowsAppleListPicker", needsServerInfo: true, returnValue: { description: "AR_FN_LISTPICKER_MAKELISTPICKER_LISTPICKERSECTION_COLL_IMAGE_STR_STR_IMAGE_STR_RV", isArray: false, type: "lpk" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_FN_LISTPICKER_MAKELISTPICKER_LISTPICKERSECTION_COLL_IMAGE_STR_STR_IMAGE_STR_PRM_DSC_0", identifier: "sections", isArray: true, helpDisplayIdx: 0, repeatable: false, required: true, type: "lps" }, { allowNotSet: true, allowCustomJson: false, description: "AR_FN_LISTPICKER_MAKELISTPICKER_LISTPICKERSECTION_COLL_IMAGE_STR_STR_IMAGE_STR_PRM_DSC_1", identifier: "receivedMessageImage", isArray: false, helpDisplayIdx: 1, repeatable: false, required: false, type: "img" }, { allowNotSet: true, allowCustomJson: false, description: "AR_FN_LISTPICKER_MAKELISTPICKER_LISTPICKERSECTION_COLL_IMAGE_STR_STR_IMAGE_STR_PRM_DSC_2", identifier: "receivedMessageTitle", isArray: false, helpDisplayIdx: 2, repeatable: false, required: false, type: "str", minLength: "1" }, { allowNotSet: true, allowCustomJson: false, description: "AR_FN_LISTPICKER_MAKELISTPICKER_LISTPICKERSECTION_COLL_IMAGE_STR_STR_IMAGE_STR_PRM_DSC_3", identifier: "receivedMessageSubtitle", isArray: false, helpDisplayIdx: 3, repeatable: false, required: false, type: "str" }, { allowNotSet: true, allowCustomJson: false, description: "AR_FN_LISTPICKER_MAKELISTPICKER_LISTPICKERSECTION_COLL_IMAGE_STR_STR_IMAGE_STR_PRM_DSC_4", identifier: "replyMessageImage", isArray: false, helpDisplayIdx: 4, repeatable: false, required: false, type: "img" }, { allowNotSet: true, allowCustomJson: false, description: "AR_FN_LISTPICKER_MAKELISTPICKER_LISTPICKERSECTION_COLL_IMAGE_STR_STR_IMAGE_STR_PRM_DSC_5", identifier: "replyMessageSubtitle", isArray: false, helpDisplayIdx: 5, repeatable: false, required: false, type: "str" }], examples: [{ input: 'MakeListPicker(MakeList(MakeListPickerSection("Sides", true, MakeList(MakeListPickerItem("Fries", NOT_SET, MakeImageFromUrl(NOT_SET))))), MakeImageFromUrl(NOT_SET), "Menu", "Items to order", MakeImageFromUrl(NOT_SET), NOT_SET)', output: "AR_FN_LISTPICKER_MAKELISTPICKER_LISTPICKERSECTION_COLL_IMAGE_STR_STR_IMAGE_STR_EX_OUT_0" }] }, { description: "AR_FN_LISTPICKER_MAKELISTPICKER_LISTPICKERSECTION_COLL_IMAGE_STR_STR_IMAGE_STR_STR_DSC", identifier: "ListPicker_ONE makeListPicker(ListPickerSection_COLL,Image_ONE,String_ONE,String_ONE,Image_ONE,String_ONE,String_ONE)", support: { version: "1.0", resolver: "None" }, supportedFlowTypes: { digitalbot: "digitalbot" }, featureConfigName: "whatsAppListPickerFeature", needsServerInfo: true, returnValue: { description: "AR_FN_LISTPICKER_MAKELISTPICKER_LISTPICKERSECTION_COLL_IMAGE_STR_STR_IMAGE_STR_STR_RV", isArray: false, type: "lpk" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_FN_LISTPICKER_MAKELISTPICKER_LISTPICKERSECTION_COLL_IMAGE_STR_STR_IMAGE_STR_STR_PRM_DSC_0", identifier: "sections", isArray: true, helpDisplayIdx: 0, repeatable: false, required: true, type: "lps" }, { allowNotSet: true, allowCustomJson: false, description: "AR_FN_LISTPICKER_MAKELISTPICKER_LISTPICKERSECTION_COLL_IMAGE_STR_STR_IMAGE_STR_STR_PRM_DSC_1", identifier: "receivedMessageImage", isArray: false, helpDisplayIdx: 1, repeatable: false, required: false, type: "img" }, { allowNotSet: true, allowCustomJson: false, description: "AR_FN_LISTPICKER_MAKELISTPICKER_LISTPICKERSECTION_COLL_IMAGE_STR_STR_IMAGE_STR_STR_PRM_DSC_2", identifier: "receivedMessageTitle", isArray: false, helpDisplayIdx: 2, repeatable: false, required: false, type: "str", minLength: "1" }, { allowNotSet: true, allowCustomJson: false, description: "AR_FN_LISTPICKER_MAKELISTPICKER_LISTPICKERSECTION_COLL_IMAGE_STR_STR_IMAGE_STR_STR_PRM_DSC_3", identifier: "receivedMessageSubtitle", isArray: false, helpDisplayIdx: 3, repeatable: false, required: false, type: "str" }, { allowNotSet: true, allowCustomJson: false, description: "AR_FN_LISTPICKER_MAKELISTPICKER_LISTPICKERSECTION_COLL_IMAGE_STR_STR_IMAGE_STR_STR_PRM_DSC_4", identifier: "replyMessageImage", isArray: false, helpDisplayIdx: 4, repeatable: false, required: false, type: "img" }, { allowNotSet: true, allowCustomJson: false, description: "AR_FN_LISTPICKER_MAKELISTPICKER_LISTPICKERSECTION_COLL_IMAGE_STR_STR_IMAGE_STR_STR_PRM_DSC_5", identifier: "replyMessageSubtitle", isArray: false, helpDisplayIdx: 5, repeatable: false, required: false, type: "str" }, { allowNotSet: false, allowCustomJson: false, description: "AR_FN_LISTPICKER_MAKELISTPICKER_LISTPICKERSECTION_COLL_IMAGE_STR_STR_IMAGE_STR_STR_PRM_DSC_6", identifier: "receivedMessageButtonText", isArray: false, helpDisplayIdx: 6, repeatable: false, required: true, type: "str", minLength: "1" }], examples: [{ input: 'MakeListPicker(MakeList(MakeListPickerSection("Sides", true, MakeList(MakeListPickerItem("Fries", NOT_SET, MakeImageFromUrl(NOT_SET))))), MakeImageFromUrl(NOT_SET), "Menu", "Items to order", MakeImageFromUrl(NOT_SET), NOT_SET, "Click Me")', output: "AR_FN_LISTPICKER_MAKELISTPICKER_LISTPICKERSECTION_COLL_IMAGE_STR_STR_IMAGE_STR_STR_EX_OUT_0" }] }], needsServerInfo: true }, makeTimePicker: { identifier: "makeTimePicker", description: "AR_FN_DSC_MAKETIMEPICKER", type: "function", name: "MakeTimePicker", category: "datetime", overloads: [{ description: "AR_FN_TIMEPICKER_MAKETIMEPICKER_STR_STR_IMAGE_ADDRESS_LATITUDE_LONGITUDE_DSC", identifier: "TimePicker_ONE makeTimePicker(String_ONE,String_ONE,Image_ONE,ADDRESS_ONE,LATITUDE_ONE,LONGITUDE_ONE)", support: { version: "1.0", resolver: "None" }, supportedFlowTypes: { digitalbot: "digitalbot" }, featureConfigName: "botFlowsMessagingDatePicker", needsServerInfo: true, returnValue: { description: "AR_FN_TIMEPICKER_MAKETIMEPICKER_STR_STR_IMAGE_ADDRESS_LATITUDE_LONGITUDE_RV", isArray: false, type: "tpk" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_FN_TIMEPICKER_MAKETIMEPICKER_STR_STR_IMAGE_ADDRESS_LATITUDE_LONGITUDE_PRM_DSC_0", identifier: "title", isArray: false, helpDisplayIdx: 0, repeatable: false, required: true, type: "str", minLength: "1" }, { allowNotSet: true, allowCustomJson: false, description: "AR_FN_TIMEPICKER_MAKETIMEPICKER_STR_STR_IMAGE_ADDRESS_LATITUDE_LONGITUDE_PRM_DSC_1", identifier: "subtitle", isArray: false, helpDisplayIdx: 1, repeatable: false, required: false, type: "str" }, { allowNotSet: true, allowCustomJson: false, description: "AR_FN_TIMEPICKER_MAKETIMEPICKER_STR_STR_IMAGE_ADDRESS_LATITUDE_LONGITUDE_PRM_DSC_2", identifier: "image", isArray: false, helpDisplayIdx: 2, repeatable: false, required: false, type: "img" }, { allowNotSet: true, allowCustomJson: false, description: "AR_FN_TIMEPICKER_MAKETIMEPICKER_STR_STR_IMAGE_ADDRESS_LATITUDE_LONGITUDE_PRM_DSC_3", identifier: "address", isArray: false, helpDisplayIdx: 3, repeatable: false, required: false, type: "str" }, { allowNotSet: true, allowCustomJson: false, description: "AR_FN_TIMEPICKER_MAKETIMEPICKER_STR_STR_IMAGE_ADDRESS_LATITUDE_LONGITUDE_PRM_DSC_4", identifier: "latitude", isArray: false, helpDisplayIdx: 4, repeatable: false, required: false, type: "dec" }, { allowNotSet: true, allowCustomJson: false, description: "AR_FN_TIMEPICKER_MAKETIMEPICKER_STR_STR_IMAGE_ADDRESS_LATITUDE_LONGITUDE_PRM_DSC_5", identifier: "longitutude", isArray: false, helpDisplayIdx: 5, repeatable: false, required: false, type: "dec" }], examples: [{ input: 'MakeTimePicker("Schedule Appointment", "Choose a Time", MakeImageFromUrl(NOT_SET), NOT_SET, NOT_SET, NOT_SET)', output: "AR_FN_TIMEPICKER_MAKETIMEPICKER_STR_STR_IMAGE_ADDRESS_LATITUDE_LONGITUDE_EX_OUT_0" }, { input: 'MakeTimePicker("Schedule Appointment", NOT_SET, MakeImageFromUrl(NOT_SET), NOT_SET, NOT_SET, NOT_SET)', output: "AR_FN_TIMEPICKER_MAKETIMEPICKER_STR_STR_IMAGE_ADDRESS_LATITUDE_LONGITUDE_EX_OUT_1" }, { input: 'MakeTimePicker("Schedule Appointment", NOT_SET, NOT_SET, NOT_SET, NOT_SET, NOT_SET)', output: "AR_FN_TIMEPICKER_MAKETIMEPICKER_STR_STR_IMAGE_ADDRESS_LATITUDE_LONGITUDE_EX_OUT_2" }, { input: 'MakeTimePicker("Schedule Appointment", NOT_SET, NOT_SET, "4807 Emperor Boulevard", 35.8785875, -78.8408308)', output: "AR_FN_TIMEPICKER_MAKETIMEPICKER_STR_STR_IMAGE_ADDRESS_LATITUDE_LONGITUDE_EX_OUT_3" }] }, { description: "AR_FN_TIMEPICKER_MAKETIMEPICKER_STR_STR_DSC", identifier: "TimePicker_ONE makeTimePicker(String_ONE,String_ONE)", support: { version: "1.0", resolver: "None" }, supportedFlowTypes: { digitalbot: "digitalbot" }, featureConfigName: "botFlowsMessagingDatePicker", needsServerInfo: true, returnValue: { description: "AR_FN_TIMEPICKER_MAKETIMEPICKER_STR_STR_RV", isArray: false, type: "tpk" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_FN_TIMEPICKER_MAKETIMEPICKER_STR_STR_PRM_DSC_0", identifier: "title", isArray: false, helpDisplayIdx: 0, repeatable: false, required: true, type: "str", minLength: "1" }, { allowNotSet: true, allowCustomJson: false, description: "AR_FN_TIMEPICKER_MAKETIMEPICKER_STR_STR_PRM_DSC_1", identifier: "subtitle", isArray: false, helpDisplayIdx: 1, repeatable: false, required: false, type: "str" }], examples: [{ input: 'MakeTimePicker("Schedule Appointment", "Choose a Time")', output: "AR_FN_TIMEPICKER_MAKETIMEPICKER_STR_STR_EX_OUT_0" }] }, { description: "AR_FN_TIMEPICKER_MAKETIMEPICKER_STR_DSC", identifier: "TimePicker_ONE makeTimePicker(String_ONE)", support: { version: "1.0", resolver: "None" }, supportedFlowTypes: { digitalbot: "digitalbot" }, featureConfigName: "botFlowsMessagingDatePicker", needsServerInfo: true, returnValue: { description: "AR_FN_TIMEPICKER_MAKETIMEPICKER_STR_RV", isArray: false, type: "tpk" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_FN_TIMEPICKER_MAKETIMEPICKER_STR_PRM_DSC_0", identifier: "title", isArray: false, helpDisplayIdx: 0, repeatable: false, required: true, type: "str", minLength: "1" }], examples: [{ input: 'MakeTimePicker("Schedule Appointment")', output: "AR_FN_TIMEPICKER_MAKETIMEPICKER_STR_EX_OUT_0" }] }], needsServerInfo: true }, makeTimeslot: { identifier: "makeTimeslot", description: "AR_FN_DSC_MAKETIMESLOT", type: "function", name: "MakeTimeslot", category: "datetime", overloads: [{ description: "AR_FN_TIMESLOT_MAKETIMESLOT_DTM_DUR_DSC", identifier: "Timeslot_ONE makeTimeslot(DateTime_ONE,Duration_ONE)", support: { version: "1.0", resolver: "None" }, supportedFlowTypes: { digitalbot: "digitalbot" }, featureConfigName: "botFlowsMessagingDatePicker", needsServerInfo: true, returnValue: { description: "AR_FN_TIMESLOT_MAKETIMESLOT_DTM_DUR_RV", isArray: false, type: "tsl" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_FN_TIMESLOT_MAKETIMESLOT_DTM_DUR_PRM_DSC_0", identifier: "dateTime", isArray: false, helpDisplayIdx: 0, repeatable: false, required: true, type: "dtm" }, { allowNotSet: false, allowCustomJson: false, description: "AR_FN_TIMESLOT_MAKETIMESLOT_DTM_DUR_PRM_DSC_1", identifier: "duration", isArray: false, helpDisplayIdx: 1, repeatable: false, required: true, type: "dur" }], examples: [{ input: "MakeTimeslot(MakeDateTime(2024, 8, 4, 0, 0, 0), MakeDuration(0, 1, 30, 0))", output: "AR_FN_TIMESLOT_MAKETIMESLOT_DTM_DUR_EX_OUT_0" }] }], needsServerInfo: true }, makeListTimeslot: { identifier: "makeListTimeslot", description: "AR_FN_DSC_MAKELISTTIMESLOT", type: "function", name: "MakeListTimeslot", category: "datetime", overloads: [{ description: "AR_FN_TIMESLOT_COLL_MAKELISTTIMESLOT_DTM_COLL_DUR_DSC", identifier: "Timeslot_COLL makeListTimeslot(DateTime_COLL,Duration_ONE)", support: { version: "1.0", resolver: "None" }, supportedFlowTypes: { digitalbot: "digitalbot" }, featureConfigName: "botFlowsMessagingDatePicker", needsServerInfo: true, returnValue: { description: "AR_FN_TIMESLOT_COLL_MAKELISTTIMESLOT_DTM_COLL_DUR_RV", isArray: true, type: "tsl" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_FN_TIMESLOT_COLL_MAKELISTTIMESLOT_DTM_COLL_DUR_PRM_DSC_0", identifier: "dateTimes", isArray: true, helpDisplayIdx: 0, repeatable: false, required: true, type: "dtm" }, { allowNotSet: false, allowCustomJson: false, description: "AR_FN_TIMESLOT_COLL_MAKELISTTIMESLOT_DTM_COLL_DUR_PRM_DSC_1", identifier: "duration", isArray: false, helpDisplayIdx: 1, repeatable: false, required: true, type: "dur" }], examples: [{ input: "MakeListTimeslot(MakeList(MakeDateTime(2024, 8, 4, 14, 0, 0), MakeDateTime(2024, 8, 4, 15, 0, 0)), MakeDuration(0, 1, 0, 0))", output: "AR_FN_TIMESLOT_COLL_MAKELISTTIMESLOT_DTM_COLL_DUR_EX_OUT_0" }] }, { description: "AR_FN_TIMESLOT_COLL_MAKELISTTIMESLOT_DTM_COLL_DUR_COLL_DSC", identifier: "Timeslot_COLL makeListTimeslot(DateTime_COLL,Duration_COLL)", support: { version: "1.0", resolver: "None" }, supportedFlowTypes: { digitalbot: "digitalbot" }, featureConfigName: "botFlowsMessagingDatePicker", needsServerInfo: true, returnValue: { description: "AR_FN_TIMESLOT_COLL_MAKELISTTIMESLOT_DTM_COLL_DUR_COLL_RV", isArray: true, type: "tsl" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_FN_TIMESLOT_COLL_MAKELISTTIMESLOT_DTM_COLL_DUR_COLL_PRM_DSC_0", identifier: "dateTimes", isArray: true, helpDisplayIdx: 0, repeatable: false, required: true, type: "dtm" }, { allowNotSet: false, allowCustomJson: false, description: "AR_FN_TIMESLOT_COLL_MAKELISTTIMESLOT_DTM_COLL_DUR_COLL_PRM_DSC_1", identifier: "durations", isArray: true, helpDisplayIdx: 1, repeatable: false, required: true, type: "dur" }], examples: [{ input: "MakeListTimeslot(MakeList(MakeDateTime(2024, 8, 4, 14, 0, 0), MakeDateTime(2024, 8, 4, 15, 0, 0)), MakeList(MakeDuration(0, 1, 0, 0), MakeDuration(0, 2, 0, 0)))", output: "AR_FN_TIMESLOT_COLL_MAKELISTTIMESLOT_DTM_COLL_DUR_COLL_EX_OUT_0" }] }], needsServerInfo: true }, makeShippingOption: { identifier: "makeShippingOption", description: "AR_FN_DSC_MAKESHIPPINGOPTION", type: "function", name: "MakeShippingOption", category: "complex", overloads: [{ description: "AR_FN_SHIPPINGOPTION_MAKESHIPPINGOPTION_STR_STR_STR_CUR_DSC", identifier: "ShippingOption_ONE makeShippingOption(String_ONE,String_ONE,String_ONE,Currency_ONE)", support: { version: "1.0", resolver: "None" }, supportedFlowTypes: { digitalbot: "digitalbot" }, featureConfigName: "botFlowsApplePay", returnValue: { description: "AR_FN_SHIPPINGOPTION_MAKESHIPPINGOPTION_STR_STR_STR_CUR_RV", isArray: false, type: "sho" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_FN_SHIPPINGOPTION_MAKESHIPPINGOPTION_STR_STR_STR_CUR_PRM_DSC_0", identifier: "label", isArray: false, helpDisplayIdx: 0, repeatable: false, required: true, type: "str", minLength: "1" }, { allowNotSet: false, allowCustomJson: false, description: "AR_FN_SHIPPINGOPTION_MAKESHIPPINGOPTION_STR_STR_STR_CUR_PRM_DSC_1", identifier: "identifier", isArray: false, helpDisplayIdx: 1, repeatable: false, required: true, type: "str", minLength: "1" }, { allowNotSet: false, allowCustomJson: false, description: "AR_FN_SHIPPINGOPTION_MAKESHIPPINGOPTION_STR_STR_STR_CUR_PRM_DSC_2", identifier: "shippingDetails", isArray: false, helpDisplayIdx: 2, repeatable: false, required: true, type: "str", minLength: "1" }, { allowNotSet: false, allowCustomJson: false, description: "AR_FN_SHIPPINGOPTION_MAKESHIPPINGOPTION_STR_STR_STR_CUR_PRM_DSC_3", identifier: "price", isArray: false, helpDisplayIdx: 3, repeatable: false, required: true, type: "cur" }], examples: [{ input: 'MakeShippingOption("Standard Shipping", "standard", "3-4 business Days", MakeCurrency(5.99, "USD"))', output: "AR_FN_SHIPPINGOPTION_MAKESHIPPINGOPTION_STR_STR_STR_CUR_EX_OUT_0" }] }] }, toShippingOption: { identifier: "toShippingOption", description: "AR_FN_DSC_TOSHIPPINGOPTION", type: "function", name: "ToShippingOption", category: "cast", overloads: [{ description: "AR_FN_SHIPPINGOPTION_TOSHIPPINGOPTION_SHIPPINGOPTION_DSC", identifier: "ShippingOption_ONE ToShippingOption(ShippingOption_ONE)", support: { version: "1.0", resolver: "None" }, featureConfigName: "botFlowsApplePay", needsServerInfo: true, returnValue: { description: "AR_FN_SHIPPINGOPTION_TOSHIPPINGOPTION_SHIPPINGOPTION_RV", isArray: false, type: "sho" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_SHIPPINGOPTION_TOSHIPPINGOPTION_SHIPPINGOPTION_PRM_DSC_0", identifier: "shippingOption", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "sho" }], examples: [{ input: 'ToShippingOption(MakeShippingOption("Standard Shipping", "standard", "3-4 Days", MakeCurrency(5.99, "USD")))', output: "AR_FN_SHIPPINGOPTION_TOSHIPPINGOPTION_SHIPPINGOPTION_EX_OUT_0" }] }, { description: "AR_FN_SHIPPINGOPTION_TOSHIPPINGOPTION_NTS_DSC", identifier: "ShippingOption_ONE toShippingOption(Null_ONE)", support: { version: "1.0", resolver: "NotSetToRetType" }, needsServerInfo: true, returnValue: { description: "AR_FN_SHIPPINGOPTION_TOSHIPPINGOPTION_NTS_RV", isArray: false, type: "sho" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_SHIPPINGOPTION_TOSHIPPINGOPTION_NTS_PRM_DSC_0", identifier: "nullValue", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "nts" }], examples: [{ input: "ToShippingOption(NOT_SET)", output: "AR_FN_SHIPPINGOPTION_TOSHIPPINGOPTION_NTS_EX_OUT_0" }] }], needsServerInfo: true }, makeListAgentScorePair: { identifier: "makeListAgentScorePair", description: "AR_FN_DSC_MAKELISTAGENTSCOREPAIR", type: "function", name: "MakeListAgentScorePair", category: "list", overloads: [{ description: "AR_FN_AGENTSCOREPAIR_COLL_MAKELISTAGENTSCOREPAIR_USR_COLL_LNG_COLL_DSC", identifier: "AgentScorePair_COLL makeListAgentScorePair(User_COLL,Long_COLL)", support: { version: "1.0", resolver: "None" }, needsServerInfo: true, returnValue: { description: "AR_FN_AGENTSCOREPAIR_COLL_MAKELISTAGENTSCOREPAIR_USR_COLL_LNG_COLL_RV", isArray: true, type: "cpx_agent_score_pair" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_FN_AGENTSCOREPAIR_COLL_MAKELISTAGENTSCOREPAIR_USR_COLL_LNG_COLL_PRM_DSC_0", identifier: "propertyAgent", isArray: true, helpDisplayIdx: 0, repeatable: false, required: true, type: "usr", itemAllowNotSet: false }, { allowNotSet: false, allowCustomJson: false, description: "AR_FN_AGENTSCOREPAIR_COLL_MAKELISTAGENTSCOREPAIR_USR_COLL_LNG_COLL_PRM_DSC_1", identifier: "propertyScore", isArray: true, helpDisplayIdx: 1, repeatable: false, required: true, type: "int", itemAllowNotSet: false, itemMin: "0", itemMax: "100" }], examples: [{ input: 'MakeListAgentScorePair(FindUsersById(MakeList("5B943B5F-4205-B70F-8BE1-A245A94B2919", "cd287b63-09c5-4470-a45b-913755799cb2")), MakeList(50, 90))', output: 'An AgentScorePair collection with two items. The first AgentScorePair item has an agent property User with ID "5b943b5F-4205-b70F-8be1-a245a94b2919" and score property value of 50. The second AgentScorePair item has an agent property User ID of "cd287b63-09c5-4470-a45b-913755799cb2" and score property value of 90.' }] }, { description: "AR_FN_AGENTSCOREPAIR_COLL_MAKELISTAGENTSCOREPAIR_STR_COLL_LNG_COLL_DSC", identifier: "AgentScorePair_COLL makeListAgentScorePair(String_COLL,Long_COLL)", support: { version: "1.0", resolver: "None" }, needsServerInfo: true, returnValue: { description: "AR_FN_AGENTSCOREPAIR_COLL_MAKELISTAGENTSCOREPAIR_STR_COLL_LNG_COLL_RV", isArray: true, type: "cpx_agent_score_pair" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_FN_AGENTSCOREPAIR_COLL_MAKELISTAGENTSCOREPAIR_STR_COLL_LNG_COLL_PRM_DSC_0", identifier: "agentIds", isArray: true, helpDisplayIdx: 0, repeatable: false, required: true, type: "str", itemAllowNotSet: false, maxItems: "50" }, { allowNotSet: false, allowCustomJson: false, description: "AR_FN_AGENTSCOREPAIR_COLL_MAKELISTAGENTSCOREPAIR_STR_COLL_LNG_COLL_PRM_DSC_1", identifier: "propertyScore", isArray: true, helpDisplayIdx: 1, repeatable: false, required: true, type: "int", itemAllowNotSet: false, itemMin: "0", itemMax: "100", maxItems: "50" }], examples: [{ input: 'MakeListAgentScorePair(MakeList("5B943B5F-4205-B70F-8BE1-A245A94B2919", "cd287b63-09c5-4470-a45b-913755799cb2"), MakeList(30, 70))', output: 'An AgentScorePair collection with two items. The first AgentScorePair item has an agent property User with ID "5b943b5F-4205-b70F-8be1-a245a94b2919" and score property value of 30. The second AgentScorePair item has an agent property User ID of "cd287b63-09c5-4470-a45b-913755799cb2" and score property value of 70.' }] }], needsServerInfo: true }, makeListCommunication: { identifier: "makeListCommunication", description: "AR_FN_DSC_MAKELISTCOMMUNICATION", type: "function", name: "MakeListCommunication", category: "cast", overloads: [{ description: "AR_FN_COMMUNICATION_COLL_MAKELISTCOMMUNICATION_ANY_COLL_DSC", identifier: "Communication_COLL makeListCommunication(Any_COLL)", support: { version: "1.0", resolver: "None" }, supportedFlowTypes: { bot: "bot", digitalbot: "digitalbot", voice: "voice", voicesurvey: "voicesurvey" }, needsServerInfo: true, returnValue: { description: "AR_FN_COMMUNICATION_COLL_MAKELISTCOMMUNICATION_ANY_COLL_RV", isArray: true, type: "com" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_FN_COMMUNICATION_COLL_MAKELISTCOMMUNICATION_ANY_COLL_PRM_DSC_0", identifier: "anAnyCollection", isArray: true, helpDisplayIdx: 0, repeatable: false, required: true, type: "any" }], examples: [{ input: 'MakeListCommunication(MakeList("Value Label 1", "Value Label 2"))', output: "AR_FN_COMMUNICATION_COLL_MAKELISTCOMMUNICATION_ANY_COLL_EX_OUT_0" }] }], needsServerInfo: true }, makeQuickReplies: { identifier: "makeQuickReplies", description: "AR_FN_DSC_MAKEQUICKREPLIES", type: "function", name: "MakeQuickReplies", category: "complex", overloads: [{ description: "AR_FN_QUICKREPLIES_MAKEQUICKREPLIES_CHOICES_COLL_DSC", identifier: "QuickReplies_ONE makeQuickReplies(Choices_COLL)", support: { version: "1.0", resolver: "None" }, supportedFlowTypes: { digitalbot: "digitalbot" }, needsServerInfo: true, returnValue: { description: "AR_FN_QUICKREPLIES_MAKEQUICKREPLIES_CHOICES_COLL_RV", isArray: false, type: "qrl" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_FN_QUICKREPLIES_MAKEQUICKREPLIES_CHOICES_COLL_PRM_DSC_0", identifier: "buttons", isArray: true, helpDisplayIdx: 0, repeatable: false, required: true, type: "chc", maxItems: "10" }], examples: [{ input: 'MakeQuickReplies(MakeList(MakePostbackChoice("small"), MakePostbackChoice("medium")))', output: 'A quick replies value that contains two postback button choices with the values "small" and "medium".' }, { input: 'MakeQuickReplies(MakeList(MakePostbackChoice("red", "Red"), MakePostbackChoice("blue", "Blue")))', output: 'A quick replies value that contains two button choices. The first choice has a value of "red" with a label of "Red" and the second has a value of "blue" with a label of "Blue".' }] }, { description: "AR_FN_QUICKREPLIES_MAKEQUICKREPLIES_CHOICES_COLL_STR_DSC", identifier: "QuickReplies_ONE makeQuickReplies(Choices_COLL,String_ONE)", support: { version: "1.0", resolver: "None" }, supportedFlowTypes: { digitalbot: "digitalbot" }, featureConfigName: "digitalBotFlowsAppleMessaging", needsServerInfo: true, returnValue: { description: "AR_FN_QUICKREPLIES_MAKEQUICKREPLIES_CHOICES_COLL_STR_RV", isArray: false, type: "qrl" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_FN_QUICKREPLIES_MAKEQUICKREPLIES_CHOICES_COLL_STR_PRM_DSC_0", identifier: "buttons", isArray: true, helpDisplayIdx: 0, repeatable: false, required: true, type: "chc", maxItems: "10" }, { allowNotSet: true, allowCustomJson: false, description: "AR_FN_QUICKREPLIES_MAKEQUICKREPLIES_CHOICES_COLL_STR_PRM_DSC_1", identifier: "quickReplySummary", isArray: false, helpDisplayIdx: 1, repeatable: false, required: false, type: "str" }], examples: [{ input: 'MakeQuickReplies(MakeList(MakePostbackChoice("small"), MakePostbackChoice("medium")), "Thanks for your selection")', output: 'A quick replies value that contains two postback button choices with the values "small" and "medium" and quick reply summary "Thanks for your selection".' }, { input: 'MakeQuickReplies(MakeList(MakePostbackChoice("red", "Red"), MakePostbackChoice("blue", "Blue")), "Thanks for your selection")', output: 'A quick replies value that contains two button choices. The first choice has a value of "red" with a label of "Red" and the second has a value of "blue" with a label of "Blue" and quick reply summary "Thanks for your selection".' }] }], needsServerInfo: true }, makeVideoFromUrl: { identifier: "makeVideoFromUrl", description: "AR_FN_DSC_MAKEVIDEOFROMURL", type: "function", name: "MakeVideoFromUrl", category: "complex", overloads: [{ description: "AR_FN_VIDEO_MAKEVIDEOFROMURL_STR_DSC", identifier: "Video_ONE makeVideoFromUrl(String_ONE)", support: { version: "1.0", resolver: "None" }, needsServerInfo: true, returnValue: { description: "AR_FN_VIDEO_MAKEVIDEOFROMURL_STR_RV", isArray: false, type: "vid" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_VIDEO_MAKEVIDEOFROMURL_STR_PRM_DSC_0", identifier: "url", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "str" }], examples: [{ input: 'MakeVideoFromUrl("https://www.genesys.com/media/genesys-digital-bot-flows.mov")', output: "AR_FN_VIDEO_MAKEVIDEOFROMURL_STR_EX_OUT_0" }] }, { description: "AR_FN_VIDEO_MAKEVIDEOFROMURL_NTS_DSC", identifier: "Video_ONE makeVideoFromUrl(Null_ONE)", support: { version: "1.0", resolver: "None" }, needsServerInfo: true, returnValue: { description: "AR_FN_VIDEO_MAKEVIDEOFROMURL_NTS_RV", isArray: false, type: "vid" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_VIDEO_MAKEVIDEOFROMURL_NTS_PRM_DSC_0", identifier: "nullValue", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "nts" }], examples: [{ input: "MakeVideoFromUrl(NOT_SET)", output: "AR_FN_VIDEO_MAKEVIDEOFROMURL_NTS_EX_OUT_0" }] }], needsServerInfo: true }, resolveSlot: { identifier: "resolveSlot", description: "AR_FN_DSC_RESOLVESLOT", type: "function", name: "ResolveSlot", category: "language", overloads: [{ description: "AR_FN_ANY_RESOLVESLOT_ANY_DSC", identifier: "Any_ONE resolveSlot(Any_ONE)", support: { version: "1.0", resolver: "n-SameType" }, supportedFlowTypes: { bot: "bot", digitalbot: "digitalbot", voice: "voice", voicesurvey: "voicesurvey" }, needsServerInfo: true, returnValue: { description: "AR_FN_ANY_RESOLVESLOT_ANY_RV", isArray: false, type: "any" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_FN_ANY_RESOLVESLOT_ANY_PRM_DSC_0", identifier: "slotVariable", isArray: false, helpDisplayIdx: 0, repeatable: false, required: true, type: "any", mustBeVariable: true, mustBeVariableScope: "slot" }], examples: [{ input: "ResolveSlot(Slot.PizzaSize)", output: "AR_FN_ANY_RESOLVESLOT_ANY_EX_OUT_0" }, { input: "ResolveSlot(Slot.QuantityInt)", output: "5" }] }, { description: "AR_FN_ANY_RESOLVESLOT_ANY_ANY_DSC", identifier: "Any_ONE resolveSlot(Any_ONE,Any_ONE)", support: { version: "1.0", resolver: "n-SameType" }, supportedFlowTypes: { bot: "bot", digitalbot: "digitalbot", voice: "voice", voicesurvey: "voicesurvey" }, needsServerInfo: true, returnValue: { description: "AR_FN_ANY_RESOLVESLOT_ANY_ANY_RV", isArray: false, type: "any" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_FN_ANY_RESOLVESLOT_ANY_ANY_PRM_DSC_0", identifier: "slotVariable", isArray: false, helpDisplayIdx: 0, repeatable: false, required: true, type: "any", mustBeVariable: true, mustBeVariableScope: "slot" }, { allowNotSet: true, allowCustomJson: false, description: "AR_FN_ANY_RESOLVESLOT_ANY_ANY_PRM_DSC_1", identifier: "slotNotSetReturnValue", isArray: false, helpDisplayIdx: 1, repeatable: false, required: false, type: "any" }], examples: [{ input: 'ResolveSlot(Slot.AccountType, "")', output: "AR_FN_ANY_RESOLVESLOT_ANY_ANY_EX_OUT_0" }] }], needsServerInfo: true }, resolveSlotTypeListValue: { identifier: "resolveSlotTypeListValue", description: "AR_FN_DSC_RESOLVESLOTTYPELISTVALUE", type: "function", name: "ResolveSlotTypeListValue", category: "language", overloads: [{ description: "AR_FN_STR_RESOLVESLOTTYPELISTVALUE_STR_STR_DSC", identifier: "String_ONE resolveSlotTypeListValue(String_ONE,String_ONE)", support: { version: "1.0", resolver: "None" }, supportedFlowTypes: { bot: "bot", digitalbot: "digitalbot", voice: "voice", voicesurvey: "voicesurvey" }, needsServerInfo: true, returnValue: { description: "AR_FN_STR_RESOLVESLOTTYPELISTVALUE_STR_STR_RV", isArray: false, type: "str" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_STR_RESOLVESLOTTYPELISTVALUE_STR_STR_PRM_DSC_0", identifier: "listSlotTypeName", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "str" }, { allowNotSet: true, allowCustomJson: false, description: "AR_FN_STR_RESOLVESLOTTYPELISTVALUE_STR_STR_PRM_DSC_1", identifier: "slotTypeValue", isArray: false, helpDisplayIdx: 1, repeatable: false, required: false, type: "str" }], examples: [{ input: 'ResolveSlotTypeListValue("PizzaSizeType", "small")', output: "AR_FN_STR_RESOLVESLOTTYPELISTVALUE_STR_STR_EX_OUT_0", outputFlowCurrentLanguage: "es-us" }] }], needsServerInfo: true }, makeListCurrency: { identifier: "makeListCurrency", description: "AR_FN_DSC_MAKELISTCURRENCY", type: "function", name: "MakeListCurrency", category: "financial", overloads: [{ description: "AR_FN_CUR_COLL_MAKELISTCURRENCY_DEC_COLL_STR_DSC", identifier: "Currency_COLL makeListCurrency(Decimal_COLL,String_ONE)", support: { version: "1.0", resolver: "None" }, returnValue: { description: "AR_FN_CUR_COLL_MAKELISTCURRENCY_DEC_COLL_STR_RV", isArray: true, type: "cur" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_FN_CUR_COLL_MAKELISTCURRENCY_DEC_COLL_STR_PRM_DSC_0", identifier: "amounts", isArray: true, helpDisplayIdx: 0, repeatable: false, required: true, type: "dec" }, { allowNotSet: true, allowCustomJson: false, description: "AR_FN_CUR_COLL_MAKELISTCURRENCY_DEC_COLL_STR_PRM_DSC_1", identifier: "currencyCode", isArray: false, helpDisplayIdx: 1, repeatable: false, required: false, type: "str", literalValidatorName: "ISO4217" }], examples: [{ input: 'MakeListCurrency(MakeList(10.50, 2.50), "USD")', output: "AR_FN_CUR_COLL_MAKELISTCURRENCY_DEC_COLL_STR_EX_OUT_0" }, { input: 'MakeListCurrency(MakeList(10.50, ToDecimal(NOT_SET)), "USD")', output: "AR_FN_CUR_COLL_MAKELISTCURRENCY_DEC_COLL_STR_EX_OUT_1" }] }, { description: "AR_FN_CUR_COLL_MAKELISTCURRENCY_DEC_COLL_STR_COLL_DSC", identifier: "Currency_COLL makeListCurrency(Decimal_COLL,String_COLL)", support: { version: "1.0", resolver: "None" }, returnValue: { description: "AR_FN_CUR_COLL_MAKELISTCURRENCY_DEC_COLL_STR_COLL_RV", isArray: true, type: "cur" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_FN_CUR_COLL_MAKELISTCURRENCY_DEC_COLL_STR_COLL_PRM_DSC_0", identifier: "amounts", isArray: true, helpDisplayIdx: 0, repeatable: false, required: true, type: "dec" }, { allowNotSet: false, allowCustomJson: false, description: "AR_FN_CUR_COLL_MAKELISTCURRENCY_DEC_COLL_STR_COLL_PRM_DSC_1", identifier: "currencyCodes", isArray: true, helpDisplayIdx: 1, repeatable: false, required: true, type: "str" }], examples: [{ input: 'MakeListCurrency(MakeList(10.50, 2.50), MakeList("USD", "EUR"))', output: "AR_FN_CUR_COLL_MAKELISTCURRENCY_DEC_COLL_STR_COLL_EX_OUT_0" }, { input: 'MakeListCurrency(MakeList(10.50, ToDecimal(NOT_SET)), MakeList(ToString(NOT_SET), "EUR"))', output: "AR_FN_CUR_COLL_MAKELISTCURRENCY_DEC_COLL_STR_COLL_EX_OUT_1" }] }] }, toCurrency: { identifier: "toCurrency", description: "AR_FN_DSC_TOCURRENCY", type: "function", name: "ToCurrency", category: "cast", overloads: [{ description: "AR_FN_CUR_TOCURRENCY_STR_DSC", identifier: "Currency_ONE toCurrency(String_ONE)", support: { version: "1.0", resolver: "None" }, returnValue: { description: "AR_FN_CUR_TOCURRENCY_STR_RV", isArray: false, type: "cur" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_CUR_TOCURRENCY_STR_PRM_DSC_0", identifier: "valueToConvert", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "str" }], examples: [{ input: 'ToCurrency("5.00|USD")', output: "AR_FN_CUR_TOCURRENCY_STR_EX_OUT_0" }, { input: 'ToCurrency("|EUR")', output: "AR_FN_CUR_TOCURRENCY_STR_EX_OUT_1" }, { input: 'ToCurrency("5.00|")', output: "AR_FN_CUR_TOCURRENCY_STR_EX_OUT_2" }, { input: 'ToCurrency("5.00")', output: "AR_FN_CUR_TOCURRENCY_STR_EX_OUT_3" }, { input: "ToCurrency(NOT_SET)", output: "AR_FN_CUR_TOCURRENCY_STR_EX_OUT_4" }] }, { description: "AR_FN_CUR_TOCURRENCY_DEC_DSC", identifier: "Currency_ONE toCurrency(Decimal_ONE)", support: { version: "1.0", resolver: "None" }, returnValue: { description: "AR_FN_CUR_TOCURRENCY_DEC_RV", isArray: false, type: "cur" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_CUR_TOCURRENCY_DEC_PRM_DSC_0", identifier: "valueToConvert", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "dec" }], examples: [{ input: "ToCurrency(5.00)", output: "AR_FN_CUR_TOCURRENCY_DEC_EX_OUT_0" }] }, { description: "AR_FN_CUR_TOCURRENCY_LNG_DSC", identifier: "Currency_ONE toCurrency(Long_ONE)", support: { version: "1.0", resolver: "None" }, returnValue: { description: "AR_FN_CUR_TOCURRENCY_LNG_RV", isArray: false, type: "cur" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_CUR_TOCURRENCY_LNG_PRM_DSC_0", identifier: "valueToConvert", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "int" }], examples: [{ input: "ToCurrency(5)", output: "AR_FN_CUR_TOCURRENCY_LNG_EX_OUT_0" }] }, { description: "AR_FN_CUR_TOCURRENCY_NTS_DSC", identifier: "Currency_ONE toCurrency(Null_ONE)", support: { version: "1.0", resolver: "NotSetToRetType" }, returnValue: { description: "AR_FN_CUR_TOCURRENCY_NTS_RV", isArray: false, type: "cur" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_CUR_TOCURRENCY_NTS_PRM_DSC_0", identifier: "nullValue", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "nts" }], examples: [{ input: "ToCurrency(NOT_SET)", output: "AR_FN_CUR_TOCURRENCY_NTS_EX_OUT_0" }] }, { description: "AR_FN_CUR_TOCURRENCY_CUR_DSC", identifier: "Currency_ONE toCurrency(Currency_ONE)", support: { version: "1.0", resolver: "None" }, returnValue: { description: "AR_FN_CUR_TOCURRENCY_CUR_RV", isArray: false, type: "cur" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_CUR_TOCURRENCY_CUR_PRM_DSC_0", identifier: "valueToReturn", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "cur" }], examples: [{ input: 'ToCurrency(MakeCurrency(5.25, "USD"))', output: "AR_FN_CUR_TOCURRENCY_CUR_EX_OUT_0" }] }] }, getCurrencySymbol: { identifier: "getCurrencySymbol", description: "AR_FN_DSC_GETCURRENCYSYMBOL", type: "function", name: "GetCurrencySymbol", category: "financial", overloads: [{ description: "AR_FN_STR_GETCURRENCYSYMBOL_STR_DSC", identifier: "String_One getCurrencySymbol(String_ONE)", support: { version: "1.0", resolver: "None" }, returnValue: { description: "AR_FN_STR_GETCURRENCYSYMBOL_STR_RV", isArray: false, type: "str" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_FN_STR_GETCURRENCYSYMBOL_STR_PRM_DSC_0", identifier: "currencyCode", isArray: false, helpDisplayIdx: 0, repeatable: false, required: true, type: "str", literalValidatorName: "ISO4217" }], examples: [{ input: 'GetCurrencySymbol("USD")', output: '"$"' }, { input: 'GetCurrencySymbol("EUR")', output: '"\u20AC"' }] }, { description: "AR_FN_STR_GETCURRENCYSYMBOL_CUR_DSC", identifier: "String_One getCurrencySymbol(Currency_ONE)", support: { version: "1.0", resolver: "None" }, returnValue: { description: "AR_FN_STR_GETCURRENCYSYMBOL_CUR_RV", isArray: false, type: "str" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_STR_GETCURRENCYSYMBOL_CUR_PRM_DSC_0", identifier: "currency", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "cur" }], examples: [{ input: 'GetCurrencySymbol(MakeCurrency(1.00, "USD"))', output: '"$"' }, { input: 'GetCurrencySymbol(MakeCurrency(5.25, "EUR"))', output: '"\u20AC"' }] }] }, convertCurrency: { identifier: "convertCurrency", description: "AR_FN_DSC_CONVERTCURRENCY", type: "function", name: "ConvertCurrency", category: "financial", overloads: [{ description: "AR_FN_CUR_CONVERTCURRENCY_CUR_STR_DSC", identifier: "Currency_One convertCurrency(Currency_ONE,String_ONE)", support: { version: "1.0", resolver: "None" }, returnValue: { description: "AR_FN_CUR_CONVERTCURRENCY_CUR_STR_RV", isArray: false, type: "cur" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_CUR_CONVERTCURRENCY_CUR_STR_PRM_DSC_0", identifier: "sourceCurrency", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "cur" }, { allowNotSet: true, allowCustomJson: false, description: "AR_FN_CUR_CONVERTCURRENCY_CUR_STR_PRM_DSC_1", identifier: "destinationCurrencyCode", isArray: false, helpDisplayIdx: 1, repeatable: false, required: false, type: "str", literalValidatorName: "ISO4217" }], examples: [{ input: 'ConvertCurrency(MakeCurrency(5.00, "USD"), "EUR")', output: "AR_FN_CUR_CONVERTCURRENCY_CUR_STR_EX_OUT_0" }, { input: 'ConvertCurrency(MakeCurrency(5.00, ToString(NOT_SET)), "EUR")', output: "AR_FN_CUR_CONVERTCURRENCY_CUR_STR_EX_OUT_1" }, { input: 'ConvertCurrency(MakeCurrency(NOT_SET, "USD"), "EUR")', output: "AR_FN_CUR_CONVERTCURRENCY_CUR_STR_EX_OUT_2" }, { input: 'ConvertCurrency(MakeCurrency(NOT_SET, "USD"), ToString(NOT_SET))', output: "AR_FN_CUR_CONVERTCURRENCY_CUR_STR_EX_OUT_3" }, { input: 'ConvertCurrency(ToCurrency(NOT_SET), "USD")', output: "AR_FN_CUR_CONVERTCURRENCY_CUR_STR_EX_OUT_4" }] }, { description: "AR_FN_CUR_CONVERTCURRENCY_CUR_STR_DEC_DSC", identifier: "Currency_One convertCurrency(Currency_ONE,String_ONE,Decimal_ONE)", support: { version: "1.0", resolver: "None" }, returnValue: { description: "AR_FN_CUR_CONVERTCURRENCY_CUR_STR_DEC_RV", isArray: false, type: "cur" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_CUR_CONVERTCURRENCY_CUR_STR_DEC_PRM_DSC_0", identifier: "sourceCurrency", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "cur" }, { allowNotSet: true, allowCustomJson: false, description: "AR_FN_CUR_CONVERTCURRENCY_CUR_STR_DEC_PRM_DSC_1", identifier: "destinationCurrencyCode", isArray: false, helpDisplayIdx: 1, repeatable: false, required: false, type: "str", literalValidatorName: "ISO4217" }, { allowNotSet: false, allowCustomJson: false, description: "AR_FN_CUR_CONVERTCURRENCY_CUR_STR_DEC_PRM_DSC_2", identifier: "sourcePerDestExchangeRate", isArray: false, helpDisplayIdx: 2, repeatable: false, required: true, type: "dec" }], examples: [{ input: 'ConvertCurrency(MakeCurrency(5.00, "USD"), "EUR", 0.6937)', output: "AR_FN_CUR_CONVERTCURRENCY_CUR_STR_DEC_EX_OUT_0" }, { input: 'ConvertCurrency(MakeCurrency(5.00, ToString(NOT_SET)), "EUR", 0.6937)', output: "AR_FN_CUR_CONVERTCURRENCY_CUR_STR_DEC_EX_OUT_1" }, { input: 'ConvertCurrency(MakeCurrency(ToDecimal(NOT_SET), ToString(NOT_SET)), "EUR", 0.6937)', output: "AR_FN_CUR_CONVERTCURRENCY_CUR_STR_DEC_EX_OUT_2" }, { input: 'ConvertCurrency(ToCurrency(NOT_SET), "EUR", 0.6937)', output: "AR_FN_CUR_CONVERTCURRENCY_CUR_STR_DEC_EX_OUT_3" }] }] }, toAudioTTS: { identifier: "toAudioTTS", description: "AR_FN_DSC_TOAUDIOTTS", type: "function", runtimeRequiresTTSSupport: true, name: "ToAudioTTS", category: "cast", overloads: [{ description: "AR_FN_AUDIO_TOAUDIOTTS_STR_DSC", identifier: "Audio_ONE ToAudioTTS(String_ONE)", support: { version: "1.0", resolver: "None" }, supportedFlowTypes: { inboundcall: "inboundcall", inqueuecall: "inqueuecall", outboundcall: "outboundcall", securecall: "securecall", voicemail: "voicemail" }, runtimeRequiresTTSSupport: true, returnValue: { description: "AR_FN_AUDIO_TOAUDIOTTS_STR_RV", isArray: false, type: "aud" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_AUDIO_TOAUDIOTTS_STR_PRM_DSC_0", identifier: "text", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "str" }], examples: [{ input: 'ToAudioTTS("Hello")', output: "AR_FN_AUDIO_TOAUDIOTTS_STR_EX_OUT_0" }, { input: "ToAudioTTS(ToString(NOT_SET))", output: "AR_FN_AUDIO_TOAUDIOTTS_STR_EX_OUT_1" }] }, { description: "AR_FN_AUDIO_TOAUDIOTTS_STR_STR_DSC", identifier: "Audio_ONE ToAudioTTS(String_ONE,String_ONE)", support: { version: "1.0", resolver: "None" }, supportedFlowTypes: { inboundcall: "inboundcall", inqueuecall: "inqueuecall", outboundcall: "outboundcall", securecall: "securecall", voicemail: "voicemail" }, runtimeRequiresTTSSupport: true, featureToggleName: "archFuncToAudioTTSWithLang", returnValue: { description: "AR_FN_AUDIO_TOAUDIOTTS_STR_STR_RV", isArray: false, type: "aud" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_AUDIO_TOAUDIOTTS_STR_STR_PRM_DSC_0", identifier: "text", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "str" }, { allowNotSet: false, allowCustomJson: false, description: "AR_FN_AUDIO_TOAUDIOTTS_STR_STR_PRM_DSC_1", identifier: "IETFLanguageTag", isArray: false, helpDisplayIdx: 1, repeatable: false, required: true, type: "str", mustBeLiteral: true, literalValidatorName: "SupportedTTSLangs" }], examples: [{ input: 'ToAudioTTS("Hello", "en-US" )', output: "AR_FN_AUDIO_TOAUDIOTTS_STR_STR_EX_OUT_0" }, { input: 'ToAudioTTS("Bonjour", "fr-CA" )', output: "AR_FN_AUDIO_TOAUDIOTTS_STR_STR_EX_OUT_1" }, { input: 'ToAudioTTS("Hola", "es-US" )', output: "AR_FN_AUDIO_TOAUDIOTTS_STR_STR_EX_OUT_2" }, { input: 'ToAudioTTS(ToString(NOT_SET), "en-US" )', output: "AR_FN_AUDIO_TOAUDIOTTS_STR_STR_EX_OUT_3" }] }, { description: "AR_FN_AUDIO_TOAUDIOTTS_STR_STRINGFORMAT_DSC", identifier: "Audio_ONE ToAudioTTS(String_ONE,StringFormat_ONE)", support: { version: "1.0", resolver: "None" }, supportedFlowTypes: { inboundcall: "inboundcall", inqueuecall: "inqueuecall", outboundcall: "outboundcall", securecall: "securecall", voicemail: "voicemail" }, runtimeRequiresTTSSupport: true, returnValue: { description: "AR_FN_AUDIO_TOAUDIOTTS_STR_STRINGFORMAT_RV", isArray: false, type: "aud" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_AUDIO_TOAUDIOTTS_STR_STRINGFORMAT_PRM_DSC_0", identifier: "text", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "str" }, { allowNotSet: false, allowCustomJson: false, description: "AR_FN_AUDIO_TOAUDIOTTS_STR_STRINGFORMAT_PRM_DSC_1", identifier: "stringAudioFormat", isArray: false, helpDisplayIdx: 1, repeatable: false, required: true, type: "stf" }], examples: [{ input: 'ToAudioTTS("Hello", Format.String.playChars)', output: "AR_FN_AUDIO_TOAUDIOTTS_STR_STRINGFORMAT_EX_OUT_0" }, { input: "ToAudioTTS(ToString(NOT_SET), Format.String.playChars)", output: "AR_FN_AUDIO_TOAUDIOTTS_STR_STRINGFORMAT_EX_OUT_1" }] }] }, toAudioBlank: { identifier: "toAudioBlank", description: "AR_FN_DSC_TOAUDIOBLANK", type: "function", name: "ToAudioBlank", category: "cast", overloads: [{ description: "AR_FN_AUDIO_TOAUDIOBLANK_LNG_DSC", identifier: "Audio_ONE ToAudioBlank(Long_ONE)", support: { version: "1.0", resolver: "None" }, supportedFlowTypes: { inboundcall: "inboundcall", inqueuecall: "inqueuecall", outboundcall: "outboundcall", securecall: "securecall", voicemail: "voicemail" }, returnValue: { description: "AR_FN_AUDIO_TOAUDIOBLANK_LNG_RV", isArray: false, type: "aud" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_FN_AUDIO_TOAUDIOBLANK_LNG_PRM_DSC_0", identifier: "lengthMs", isArray: false, helpDisplayIdx: 0, max: "10000", min: "0", repeatable: false, required: true, type: "int", mustBeLiteral: true }], examples: [{ input: "ToAudioBlank(500)", output: "AR_FN_AUDIO_TOAUDIOBLANK_LNG_EX_OUT_0" }, { input: 'Append(ToAudioTTS("Hello"), ToAudioBlank(1000), ToAudioTTS("World"))', output: "AR_FN_AUDIO_TOAUDIOBLANK_LNG_EX_OUT_1" }] }] }, toAudioBool: { identifier: "toAudioBool", description: "AR_FN_DSC_TOAUDIOBOOL", type: "function", runtimeSequencesSystemPrompts: true, name: "ToAudioBool", category: "cast", overloads: [{ description: "AR_FN_AUDIO_TOAUDIOBOOL_BLN_DSC", identifier: "Audio_ONE ToAudioBool(Boolean_ONE)", support: { version: "1.0", resolver: "None" }, supportedFlowTypes: { inboundcall: "inboundcall", inqueuecall: "inqueuecall", outboundcall: "outboundcall", securecall: "securecall", voicemail: "voicemail" }, runtimeSequencesSystemPrompts: true, returnValue: { description: "AR_FN_AUDIO_TOAUDIOBOOL_BLN_RV", isArray: false, type: "aud" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_AUDIO_TOAUDIOBOOL_BLN_PRM_DSC_0", identifier: "boolToConvert", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "bln" }], examples: [{ input: "ToAudioBool(true)", output: "AR_FN_AUDIO_TOAUDIOBOOL_BLN_EX_OUT_0", outputFlowCurrentLanguage: "en-US" }, { input: "ToAudioBool(ToBool(NOT_SET))", output: "AR_FN_AUDIO_TOAUDIOBOOL_BLN_EX_OUT_1" }] }, { description: "AR_FN_AUDIO_TOAUDIOBOOL_BLN_BOOLFORMATENUM_DSC", identifier: "Audio_ONE ToAudioBool(Boolean_ONE,BoolFormatEnum_ONE)", support: { version: "1.0", resolver: "None" }, supportedFlowTypes: { inboundcall: "inboundcall", inqueuecall: "inqueuecall", outboundcall: "outboundcall", securecall: "securecall", voicemail: "voicemail" }, runtimeSequencesSystemPrompts: true, returnValue: { description: "AR_FN_AUDIO_TOAUDIOBOOL_BLN_BOOLFORMATENUM_RV", isArray: false, type: "aud" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_AUDIO_TOAUDIOBOOL_BLN_BOOLFORMATENUM_PRM_DSC_0", identifier: "boolToConvert", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "bln" }, { allowNotSet: false, allowCustomJson: false, description: "AR_FN_AUDIO_TOAUDIOBOOL_BLN_BOOLFORMATENUM_PRM_DSC_1", identifier: "boolAudioFormat", isArray: false, helpDisplayIdx: 1, repeatable: false, required: true, type: "bof" }], examples: [{ input: "ToAudioBool(false, Format.Bool.playYesNo)", output: "AR_FN_AUDIO_TOAUDIOBOOL_BLN_BOOLFORMATENUM_EX_OUT_0", outputFlowCurrentLanguage: "en-US" }, { input: "ToAudioBool(5 == 5, Format.Bool.playYesNo)", output: "AR_FN_AUDIO_TOAUDIOBOOL_BLN_BOOLFORMATENUM_EX_OUT_1", outputFlowCurrentLanguage: "en-US" }, { input: "ToAudioBool(ToBool(NOT_SET), Format.Bool.playYesNo)", output: "AR_FN_AUDIO_TOAUDIOBOOL_BLN_BOOLFORMATENUM_EX_OUT_2" }] }] }, toAudioDuration: { identifier: "toAudioDuration", description: "AR_FN_DSC_TOAUDIODURATION", type: "function", runtimeSequencesSystemPrompts: true, name: "ToAudioDuration", category: "cast", overloads: [{ description: "AR_FN_AUDIO_TOAUDIODURATION_DUR_DSC", identifier: "Audio_ONE ToAudioDuration(Duration_ONE)", support: { version: "1.0", resolver: "None" }, supportedFlowTypes: { inboundcall: "inboundcall", inqueuecall: "inqueuecall", outboundcall: "outboundcall", securecall: "securecall", voicemail: "voicemail" }, runtimeSequencesSystemPrompts: true, returnValue: { description: "AR_FN_AUDIO_TOAUDIODURATION_DUR_RV", isArray: false, type: "aud" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_AUDIO_TOAUDIODURATION_DUR_PRM_DSC_0", identifier: "durationToConvert", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "dur" }], examples: [{ input: "ToAudioDuration(MakeDuration(0, 1, 30, 0))", output: "AR_FN_AUDIO_TOAUDIODURATION_DUR_EX_OUT_0", outputFlowCurrentLanguage: "en-US" }, { input: "ToAudioDuration(MakeDuration(0, -1, 30, 0))", output: "AR_FN_AUDIO_TOAUDIODURATION_DUR_EX_OUT_1", outputFlowCurrentLanguage: "en-US" }, { input: "ToAudioDuration(MakeDuration(0, 1, 30, 5, 700))", output: "AR_FN_AUDIO_TOAUDIODURATION_DUR_EX_OUT_2", outputFlowCurrentLanguage: "en-US" }, { input: "ToAudioDuration(ToDuration(NOT_SET))", output: "AR_FN_AUDIO_TOAUDIODURATION_DUR_EX_OUT_3" }] }] }, toAudioPhoneNumber: { identifier: "toAudioPhoneNumber", description: "AR_FN_DSC_TOAUDIOPHONENUMBER", type: "function", runtimeSequencesSystemPrompts: true, name: "ToAudioPhoneNumber", category: "cast", overloads: [{ description: "AR_FN_AUDIO_TOAUDIOPHONENUMBER_PHNBR_DSC", identifier: "Audio_ONE ToAudioPhoneNumber(PhoneNumber_ONE)", support: { version: "1.0", resolver: "None" }, supportedFlowTypes: { inboundcall: "inboundcall", inqueuecall: "inqueuecall", outboundcall: "outboundcall", securecall: "securecall", voicemail: "voicemail" }, disallowAsDefaultCast: true, blankAudioForSipPhoneNumber: true, runtimeSequencesSystemPrompts: true, returnValue: { description: "AR_FN_AUDIO_TOAUDIOPHONENUMBER_PHNBR_RV", isArray: false, type: "aud" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_AUDIO_TOAUDIOPHONENUMBER_PHNBR_PRM_DSC_0", identifier: "phoneNumberToConvert", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "phn" }], examples: [{ input: 'ToAudioPhoneNumber(ToPhoneNumber("tel:+13178723000"))', output: "AR_FN_AUDIO_TOAUDIOPHONENUMBER_PHNBR_EX_OUT_0", outputFlowCurrentLanguage: "en-US" }, { input: "ToAudioPhoneNumber(ToPhoneNumber(Call.Ani))", output: "AR_FN_AUDIO_TOAUDIOPHONENUMBER_PHNBR_EX_OUT_1", outputFlowCurrentLanguage: "en-US" }, { input: 'ToAudioPhoneNumber(ToPhoneNumber("sip:john.doe@example.com"))', output: "AR_FN_AUDIO_TOAUDIOPHONENUMBER_PHNBR_EX_OUT_2" }, { input: "ToAudioPhoneNumber(ToPhoneNumber(NOT_SET))", output: "AR_FN_AUDIO_TOAUDIOPHONENUMBER_PHNBR_EX_OUT_3" }] }, { description: "AR_FN_AUDIO_TOAUDIOPHONENUMBER_PHNBR_PHONENUMBERFORMATENUM_DSC", identifier: "Audio_ONE ToAudioPhoneNumber(PhoneNumber_ONE,PhoneNumberFormatEnum_ONE)", support: { version: "1.0", resolver: "None" }, supportedFlowTypes: { inboundcall: "inboundcall", inqueuecall: "inqueuecall", outboundcall: "outboundcall", securecall: "securecall", voicemail: "voicemail" }, disallowAsDefaultCast: true, blankAudioForSipPhoneNumber: true, runtimeSequencesSystemPrompts: true, featureToggleName: "archPhoneNumberPhase2", returnValue: { description: "AR_FN_AUDIO_TOAUDIOPHONENUMBER_PHNBR_PHONENUMBERFORMATENUM_RV", isArray: false, type: "aud" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_AUDIO_TOAUDIOPHONENUMBER_PHNBR_PHONENUMBERFORMATENUM_PRM_DSC_0", identifier: "phoneNumberToConvert", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "phn" }, { allowNotSet: false, allowCustomJson: false, description: "AR_FN_AUDIO_TOAUDIOPHONENUMBER_PHNBR_PHONENUMBERFORMATENUM_PRM_DSC_1", identifier: "phoneNumberFormat", isArray: false, helpDisplayIdx: 1, repeatable: false, required: true, type: "phf" }], examples: [{ input: 'ToAudioPhoneNumber(ToPhoneNumber("tel:+13178723000"), Format.PhoneNumber.local)', output: "AR_FN_AUDIO_TOAUDIOPHONENUMBER_PHNBR_PHONENUMBERFORMATENUM_EX_OUT_0", outputFlowCurrentLanguage: "en-US" }, { input: 'ToAudioPhoneNumber(ToPhoneNumber("tel:+13178723000"), Format.PhoneNumber.global)', output: "AR_FN_AUDIO_TOAUDIOPHONENUMBER_PHNBR_PHONENUMBERFORMATENUM_EX_OUT_1", outputFlowCurrentLanguage: "en-US" }, { input: 'ToAudioPhoneNumber(ToPhoneNumber("tel:+31755551212"), Format.PhoneNumber.local)', output: "AR_FN_AUDIO_TOAUDIOPHONENUMBER_PHNBR_PHONENUMBERFORMATENUM_EX_OUT_2", outputFlowCurrentLanguage: "en-US" }, { input: "ToAudioPhoneNumber(ToPhoneNumber(Call.Ani), Format.PhoneNumber.global)", output: "AR_FN_AUDIO_TOAUDIOPHONENUMBER_PHNBR_PHONENUMBERFORMATENUM_EX_OUT_3", outputFlowCurrentLanguage: "en-US" }, { input: 'ToAudioPhoneNumber(ToPhoneNumber("sip:john.doe@example.com"), Format.PhoneNumber.global)', output: "AR_FN_AUDIO_TOAUDIOPHONENUMBER_PHNBR_PHONENUMBERFORMATENUM_EX_OUT_4" }, { input: "ToAudioPhoneNumber(ToPhoneNumber(NOT_SET), Format.PhoneNumber.local)", output: "AR_FN_AUDIO_TOAUDIOPHONENUMBER_PHNBR_PHONENUMBERFORMATENUM_EX_OUT_5" }] }, { description: "AR_FN_AUDIO_TOAUDIOPHONENUMBER_PHNBR_STR_DSC", identifier: "Audio_ONE ToAudioPhoneNumber(PhoneNumber_ONE,String_ONE)", support: { version: "1.0", resolver: "None" }, supportedFlowTypes: { inboundcall: "inboundcall", inqueuecall: "inqueuecall", outboundcall: "outboundcall", securecall: "securecall", voicemail: "voicemail" }, disallowAsDefaultCast: true, blankAudioForSipPhoneNumber: true, runtimeSequencesSystemPrompts: true, featureToggleName: "archPhoneNumberPhase2", returnValue: { description: "AR_FN_AUDIO_TOAUDIOPHONENUMBER_PHNBR_STR_RV", isArray: false, type: "aud" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_AUDIO_TOAUDIOPHONENUMBER_PHNBR_STR_PRM_DSC_0", identifier: "phoneNumberToConvert", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "phn" }, { allowNotSet: true, allowCustomJson: false, description: "AR_FN_AUDIO_TOAUDIOPHONENUMBER_PHNBR_STR_PRM_DSC_1", identifier: "dialingCode", isArray: false, helpDisplayIdx: 1, repeatable: false, required: false, type: "str", literalValidatorName: "DialingCodes" }], examples: [{ input: 'ToAudioPhoneNumber(ToPhoneNumber("tel:+13178723000"), System.Regions.US.dialingCode)', output: "AR_FN_AUDIO_TOAUDIOPHONENUMBER_PHNBR_STR_EX_OUT_0", outputFlowCurrentLanguage: "en-US" }, { input: 'ToAudioPhoneNumber(ToPhoneNumber("tel:+13178723000"), ToString(NOT_SET))', output: "AR_FN_AUDIO_TOAUDIOPHONENUMBER_PHNBR_STR_EX_OUT_1", outputFlowCurrentLanguage: "en-US" }, { input: 'ToAudioPhoneNumber(ToPhoneNumber("tel:+13178723000"), System.Regions.NL.dialingCode)', output: "AR_FN_AUDIO_TOAUDIOPHONENUMBER_PHNBR_STR_EX_OUT_2", outputFlowCurrentLanguage: "en-US" }, { input: 'ToAudioPhoneNumber(ToPhoneNumber("tel:+31755551212"), "31")', output: "AR_FN_AUDIO_TOAUDIOPHONENUMBER_PHNBR_STR_EX_OUT_3", outputFlowCurrentLanguage: "en-US" }, { input: 'ToAudioPhoneNumber(ToPhoneNumber(Call.Ani), "1")', output: "AR_FN_AUDIO_TOAUDIOPHONENUMBER_PHNBR_STR_EX_OUT_4", outputFlowCurrentLanguage: "en-US" }, { input: 'ToAudioPhoneNumber(ToPhoneNumber("sip:john.doe@example.com"))', output: "AR_FN_AUDIO_TOAUDIOPHONENUMBER_PHNBR_STR_EX_OUT_5" }, { input: 'ToAudioPhoneNumber(ToPhoneNumber(NOT_SET), "1")', output: "AR_FN_AUDIO_TOAUDIOPHONENUMBER_PHNBR_STR_EX_OUT_6" }] }, { description: "AR_FN_AUDIO_TOAUDIOPHONENUMBER_STR_DSC", identifier: "Audio_ONE ToAudioPhoneNumber(String_ONE)", support: { version: "1.0", resolver: "None" }, supportedFlowTypes: { inboundcall: "inboundcall", inqueuecall: "inqueuecall", outboundcall: "outboundcall", securecall: "securecall", voicemail: "voicemail" }, disallowAsDefaultCast: true, runtimeSequencesSystemPrompts: true, returnValue: { description: "AR_FN_AUDIO_TOAUDIOPHONENUMBER_STR_RV", isArray: false, type: "aud" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_AUDIO_TOAUDIOPHONENUMBER_STR_PRM_DSC_0", identifier: "stringToConvert", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "str" }], examples: [{ input: 'ToAudioPhoneNumber("8125551234")', output: "AR_FN_AUDIO_TOAUDIOPHONENUMBER_STR_EX_OUT_0", outputFlowCurrentLanguage: "en-US" }, { input: 'ToAudioPhoneNumber("812.555.1234")', output: "AR_FN_AUDIO_TOAUDIOPHONENUMBER_STR_EX_OUT_1", outputFlowCurrentLanguage: "en-US" }, { input: 'ToAudioPhoneNumber("812-555-1234")', output: "AR_FN_AUDIO_TOAUDIOPHONENUMBER_STR_EX_OUT_2", outputFlowCurrentLanguage: "en-US" }, { input: "ToAudioPhoneNumber(ToString(NOT_SET))", output: "AR_FN_AUDIO_TOAUDIOPHONENUMBER_STR_EX_OUT_3" }] }] }, toAudioCurrency: { identifier: "toAudioCurrency", description: "AR_FN_DSC_TOAUDIOCURRENCY", type: "function", runtimeSequencesSystemPrompts: true, name: "ToAudioCurrency", category: "cast", overloads: [{ description: "AR_FN_AUDIO_TOAUDIOCURRENCY_CUR_DSC", identifier: "Audio_ONE ToAudioCurrency(Currency_ONE)", support: { version: "1.0", resolver: "None" }, supportedFlowTypes: { inboundcall: "inboundcall", inqueuecall: "inqueuecall", outboundcall: "outboundcall", securecall: "securecall", voicemail: "voicemail" }, runtimeSequencesSystemPrompts: true, returnValue: { description: "AR_FN_AUDIO_TOAUDIOCURRENCY_CUR_RV", isArray: false, type: "aud" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_AUDIO_TOAUDIOCURRENCY_CUR_PRM_DSC_0", identifier: "currencyToConvert", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "cur" }], examples: [{ input: 'ToAudioCurrency(MakeCurrency(1234567.0, "USD"))', output: "AR_FN_AUDIO_TOAUDIOCURRENCY_CUR_EX_OUT_0", outputFlowCurrentLanguage: "en-US" }, { input: 'ToAudioCurrency(ToCurrency("1.23|USD"))', output: "AR_FN_AUDIO_TOAUDIOCURRENCY_CUR_EX_OUT_1", outputFlowCurrentLanguage: "en-US" }, { input: 'ToAudioCurrency(MakeCurrency(1.23456789, "USD"))', output: "AR_FN_AUDIO_TOAUDIOCURRENCY_CUR_EX_OUT_2", outputFlowCurrentLanguage: "en-US" }, { input: "ToAudioCurrency(ToCurrency(NOT_SET))", output: "AR_FN_AUDIO_TOAUDIOCURRENCY_CUR_EX_OUT_3" }, { input: 'ToAudioCurrency(MakeCurrency(1.567, "USD"))', output: "AR_FN_AUDIO_TOAUDIOCURRENCY_CUR_EX_OUT_4", outputFlowCurrentLanguage: "en-US" }] }, { description: "AR_FN_AUDIO_TOAUDIOCURRENCY_CUR_CURRENCYFORMAT_DSC", identifier: "Audio_ONE ToAudioCurrency(Currency_ONE,CurrencyFormat_ONE)", support: { version: "1.0", resolver: "None" }, supportedFlowTypes: { inboundcall: "inboundcall", inqueuecall: "inqueuecall", outboundcall: "outboundcall", securecall: "securecall", voicemail: "voicemail" }, runtimeSequencesSystemPrompts: true, returnValue: { description: "AR_FN_AUDIO_TOAUDIOCURRENCY_CUR_CURRENCYFORMAT_RV", isArray: false, type: "aud" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_AUDIO_TOAUDIOCURRENCY_CUR_CURRENCYFORMAT_PRM_DSC_0", identifier: "currencyToConvert", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "cur" }, { allowNotSet: false, allowCustomJson: false, description: "AR_FN_AUDIO_TOAUDIOCURRENCY_CUR_CURRENCYFORMAT_PRM_DSC_1", identifier: "currencyAudioFormat", isArray: false, helpDisplayIdx: 1, repeatable: false, required: true, type: "cuf" }], examples: [{ input: 'ToAudioCurrency(MakeCurrency(1234567.80, "USD"), Format.Currency.majorUnitsOnly)', output: "AR_FN_AUDIO_TOAUDIOCURRENCY_CUR_CURRENCYFORMAT_EX_OUT_0", outputFlowCurrentLanguage: "en-US" }, { input: 'ToAudioCurrency(MakeCurrency(1234567.80, "USD"), Format.Currency.minorUnitsOnly)', output: "AR_FN_AUDIO_TOAUDIOCURRENCY_CUR_CURRENCYFORMAT_EX_OUT_1", outputFlowCurrentLanguage: "en-US" }, { input: 'ToAudioCurrency(MakeCurrency(2.80, "USD"), Format.Currency.asMinorUnits)', output: "AR_FN_AUDIO_TOAUDIOCURRENCY_CUR_CURRENCYFORMAT_EX_OUT_2", outputFlowCurrentLanguage: "en-US" }, { input: 'ToAudioCurrency(ToCurrency("1.23|USD"), Format.Currency.playDigits)', output: "AR_FN_AUDIO_TOAUDIOCURRENCY_CUR_CURRENCYFORMAT_EX_OUT_3", outputFlowCurrentLanguage: "en-US" }, { input: 'ToAudioCurrency(ToCurrency("30.20|USD"), Format.Currency.playDigits)', output: "AR_FN_AUDIO_TOAUDIOCURRENCY_CUR_CURRENCYFORMAT_EX_OUT_4", outputFlowCurrentLanguage: "en-US" }, { input: 'ToAudioCurrency(ToCurrency("0.20|USD"), Format.Currency.playDigits)', output: "AR_FN_AUDIO_TOAUDIOCURRENCY_CUR_CURRENCYFORMAT_EX_OUT_5", outputFlowCurrentLanguage: "en-US" }, { input: "ToAudioCurrency(ToCurrency(NOT_SET), Format.Currency.playDigits)", output: "AR_FN_AUDIO_TOAUDIOCURRENCY_CUR_CURRENCYFORMAT_EX_OUT_6" }] }, { description: "AR_FN_AUDIO_TOAUDIOCURRENCY_CUR_LNG_DSC", identifier: "Audio_ONE ToAudioCurrency(Currency_ONE,Long_ONE)", support: { version: "1.0", resolver: "None" }, supportedFlowTypes: { inboundcall: "inboundcall", inqueuecall: "inqueuecall", outboundcall: "outboundcall", securecall: "securecall", voicemail: "voicemail" }, runtimeSequencesSystemPrompts: true, returnValue: { description: "AR_FN_AUDIO_TOAUDIOCURRENCY_CUR_LNG_RV", isArray: false, type: "aud" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_AUDIO_TOAUDIOCURRENCY_CUR_LNG_PRM_DSC_0", identifier: "currencyToConvert", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "cur" }, { allowNotSet: false, allowCustomJson: false, description: "AR_FN_AUDIO_TOAUDIOCURRENCY_CUR_LNG_PRM_DSC_1", identifier: "numberOfDecimalPlaces", isArray: false, helpDisplayIdx: 1, repeatable: false, required: true, type: "int", isDecimalPlaces: true }], examples: [{ input: 'ToAudioCurrency(MakeCurrency(1.23, "USD"), 1)', output: "AR_FN_AUDIO_TOAUDIOCURRENCY_CUR_LNG_EX_OUT_0", outputFlowCurrentLanguage: "en-US" }, { input: 'ToAudioCurrency(MakeCurrency(1.23, "USD"), 2)', output: "AR_FN_AUDIO_TOAUDIOCURRENCY_CUR_LNG_EX_OUT_1", outputFlowCurrentLanguage: "en-US" }, { input: 'ToAudioCurrency(MakeCurrency(-35.23, "USD"), 2)', output: "AR_FN_AUDIO_TOAUDIOCURRENCY_CUR_LNG_EX_OUT_2", outputFlowCurrentLanguage: "en-US" }, { input: 'ToAudioCurrency(MakeCurrency(1.23, "USD"), 3)', output: "AR_FN_AUDIO_TOAUDIOCURRENCY_CUR_LNG_EX_OUT_3", outputFlowCurrentLanguage: "en-US" }, { input: 'ToAudioCurrency(MakeCurrency(1.23456, "USD"), 2)', output: "AR_FN_AUDIO_TOAUDIOCURRENCY_CUR_LNG_EX_OUT_4", outputFlowCurrentLanguage: "en-US" }, { input: 'ToAudioCurrency(MakeCurrency(21.23456, "USD"), 2)', output: "AR_FN_AUDIO_TOAUDIOCURRENCY_CUR_LNG_EX_OUT_5", outputFlowCurrentLanguage: "en-US" }, { input: "ToAudioCurrency(ToCurrency(NOT_SET), 2)", output: "AR_FN_AUDIO_TOAUDIOCURRENCY_CUR_LNG_EX_OUT_6" }] }] }, toAudioPercent: { identifier: "toAudioPercent", description: "AR_FN_DSC_TOAUDIOPERCENT", type: "function", runtimeSequencesSystemPrompts: true, name: "ToAudioPercent", category: "cast", overloads: [{ description: "AR_FN_AUDIO_TOAUDIOPERCENT_LNG_DSC", identifier: "Audio_ONE ToAudioPercent(Long_ONE)", support: { version: "1.0", resolver: "None" }, supportedFlowTypes: { inboundcall: "inboundcall", inqueuecall: "inqueuecall", outboundcall: "outboundcall", securecall: "securecall", voicemail: "voicemail" }, disallowAsDefaultCast: true, runtimeSequencesSystemPrompts: true, returnValue: { description: "AR_FN_AUDIO_TOAUDIOPERCENT_LNG_RV", isArray: false, type: "aud" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_AUDIO_TOAUDIOPERCENT_LNG_PRM_DSC_0", identifier: "integerToConvert", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "int" }], examples: [{ input: "ToAudioPercent(123)", output: "AR_FN_AUDIO_TOAUDIOPERCENT_LNG_EX_OUT_0", outputFlowCurrentLanguage: "en-US" }, { input: "ToAudioPercent(5)", output: "AR_FN_AUDIO_TOAUDIOPERCENT_LNG_EX_OUT_1", outputFlowCurrentLanguage: "en-US" }, { input: "ToAudioPercent(ToInt(NOT_SET))", output: "AR_FN_AUDIO_TOAUDIOPERCENT_LNG_EX_OUT_2" }] }, { description: "AR_FN_AUDIO_TOAUDIOPERCENT_DEC_DSC", identifier: "Audio_ONE ToAudioPercent(Decimal_ONE)", support: { version: "1.0", resolver: "None" }, supportedFlowTypes: { inboundcall: "inboundcall", inqueuecall: "inqueuecall", outboundcall: "outboundcall", securecall: "securecall", voicemail: "voicemail" }, disallowAsDefaultCast: true, runtimeSequencesSystemPrompts: true, returnValue: { description: "AR_FN_AUDIO_TOAUDIOPERCENT_DEC_RV", isArray: false, type: "aud" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_AUDIO_TOAUDIOPERCENT_DEC_PRM_DSC_0", identifier: "decimalToConvert", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "dec" }], examples: [{ input: "ToAudioPercent(123.12)", output: "AR_FN_AUDIO_TOAUDIOPERCENT_DEC_EX_OUT_0", outputFlowCurrentLanguage: "en-US" }, { input: "ToAudioPercent(0.2)", output: "AR_FN_AUDIO_TOAUDIOPERCENT_DEC_EX_OUT_1", outputFlowCurrentLanguage: "en-US" }, { input: "ToAudioPercent(ToDecimal(NOT_SET))", output: "AR_FN_AUDIO_TOAUDIOPERCENT_DEC_EX_OUT_2" }] }, { description: "AR_FN_AUDIO_TOAUDIOPERCENT_DEC_LNG_DSC", identifier: "Audio_ONE ToAudioPercent(Decimal_ONE,Long_ONE)", support: { version: "1.0", resolver: "None" }, supportedFlowTypes: { inboundcall: "inboundcall", inqueuecall: "inqueuecall", outboundcall: "outboundcall", securecall: "securecall", voicemail: "voicemail" }, runtimeSequencesSystemPrompts: true, returnValue: { description: "AR_FN_AUDIO_TOAUDIOPERCENT_DEC_LNG_RV", isArray: false, type: "aud" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_AUDIO_TOAUDIOPERCENT_DEC_LNG_PRM_DSC_0", identifier: "decimalToConvert", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "dec" }, { allowNotSet: false, allowCustomJson: false, description: "AR_FN_AUDIO_TOAUDIOPERCENT_DEC_LNG_PRM_DSC_1", identifier: "numberOfDecimalPlaces", isArray: false, helpDisplayIdx: 1, repeatable: false, required: true, type: "int", isDecimalPlaces: true }], examples: [{ input: "ToAudioPercent(123.12, 2)", output: "AR_FN_AUDIO_TOAUDIOPERCENT_DEC_LNG_EX_OUT_0", outputFlowCurrentLanguage: "en-US" }, { input: "ToAudioPercent(123.17, 1)", output: "AR_FN_AUDIO_TOAUDIOPERCENT_DEC_LNG_EX_OUT_1", outputFlowCurrentLanguage: "en-US" }, { input: "ToAudioPercent(123.12, 3)", output: "AR_FN_AUDIO_TOAUDIOPERCENT_DEC_LNG_EX_OUT_2", outputFlowCurrentLanguage: "en-US" }, { input: "ToAudioPercent(ToDecimal(NOT_SET), 1)", output: "AR_FN_AUDIO_TOAUDIOPERCENT_DEC_LNG_EX_OUT_3" }] }] }, toAudioDate: { identifier: "toAudioDate", description: "AR_FN_DSC_TOAUDIODATE", type: "function", runtimeSequencesSystemPrompts: true, name: "ToAudioDate", category: "cast", overloads: [{ description: "AR_FN_AUDIO_TOAUDIODATE_DTM_DSC", identifier: "Audio_ONE ToAudioDate(DateTime_ONE)", support: { version: "1.0", resolver: "None" }, supportedFlowTypes: { inboundcall: "inboundcall", inqueuecall: "inqueuecall", outboundcall: "outboundcall", securecall: "securecall", voicemail: "voicemail" }, disallowAsDefaultCast: true, runtimeSequencesSystemPrompts: true, returnValue: { description: "AR_FN_AUDIO_TOAUDIODATE_DTM_RV", isArray: false, type: "aud" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_AUDIO_TOAUDIODATE_DTM_PRM_DSC_0", identifier: "dateTimeToConvert", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "dtm" }], examples: [{ input: "ToAudioDate(MakeDateTime(1989, 11, 30, 14, 22, 11))", output: "AR_FN_AUDIO_TOAUDIODATE_DTM_EX_OUT_0", outputFlowCurrentLanguage: "en-US" }, { input: "ToAudioDate(ToDateTime(NOT_SET))", output: "AR_FN_AUDIO_TOAUDIODATE_DTM_EX_OUT_1" }] }, { description: "AR_FN_AUDIO_TOAUDIODATE_DTM_DATETIMEFORMATENUM_DSC", identifier: "Audio_ONE ToAudioDate(DateTime_ONE,DateTimeFormatEnum_ONE)", support: { version: "1.0", resolver: "None" }, supportedFlowTypes: { inboundcall: "inboundcall", inqueuecall: "inqueuecall", outboundcall: "outboundcall", securecall: "securecall", voicemail: "voicemail" }, disallowAsDefaultCast: true, runtimeSequencesSystemPrompts: true, returnValue: { description: "AR_FN_AUDIO_TOAUDIODATE_DTM_DATETIMEFORMATENUM_RV", isArray: false, type: "aud" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_AUDIO_TOAUDIODATE_DTM_DATETIMEFORMATENUM_PRM_DSC_0", identifier: "dateTimeToConvert", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "dtm" }, { allowNotSet: false, allowCustomJson: false, description: "AR_FN_AUDIO_TOAUDIODATE_DTM_DATETIMEFORMATENUM_PRM_DSC_1", identifier: "dateAudioFormat", isArray: false, helpDisplayIdx: 1, repeatable: false, required: true, type: "daf" }], examples: [{ input: "ToAudioDate(MakeDateTime(1989, 11, 30, 14, 22, 11), Format.Date.longYear)", output: "AR_FN_AUDIO_TOAUDIODATE_DTM_DATETIMEFORMATENUM_EX_OUT_0", outputFlowCurrentLanguage: "en-US" }, { input: "ToAudioDate(MakeDateTime(1989, 11, 30, 14, 22, 11), Format.Date.shortYear)", output: "AR_FN_AUDIO_TOAUDIODATE_DTM_DATETIMEFORMATENUM_EX_OUT_1", outputFlowCurrentLanguage: "en-US" }, { input: "ToAudioDate(MakeDateTime(1989, 11, 30, 14, 22, 11), Format.Date.shortMonthAndDay)", output: "AR_FN_AUDIO_TOAUDIODATE_DTM_DATETIMEFORMATENUM_EX_OUT_2", outputFlowCurrentLanguage: "en-US" }, { input: "ToAudioDate(MakeDateTime(2014, 4, 7, 14, 22, 11), Format.Date.dayOnly)", output: "AR_FN_AUDIO_TOAUDIODATE_DTM_DATETIMEFORMATENUM_EX_OUT_3", outputFlowCurrentLanguage: "en-US" }, { input: "ToAudioDate(MakeDateTime(2014, 4, 7, 14, 22, 11), Format.Date.monthOnly)", output: "AR_FN_AUDIO_TOAUDIODATE_DTM_DATETIMEFORMATENUM_EX_OUT_4", outputFlowCurrentLanguage: "en-US" }, { input: "ToAudioDate(MakeDateTime(2014, 4, 7, 14, 22, 11), Format.Date.shortYearOnly)", output: "AR_FN_AUDIO_TOAUDIODATE_DTM_DATETIMEFORMATENUM_EX_OUT_5", outputFlowCurrentLanguage: "en-US" }, { input: "ToAudioDate(MakeDateTime(2014, 4, 7, 14, 22, 11), Format.Date.longYearOnly)", output: "AR_FN_AUDIO_TOAUDIODATE_DTM_DATETIMEFORMATENUM_EX_OUT_6", outputFlowCurrentLanguage: "en-US" }, { input: "ToAudioDate(MakeDateTime(2014, 11, 5, 12, 00, 00), Format.Date.dayOfWeekOnly)", output: "AR_FN_AUDIO_TOAUDIODATE_DTM_DATETIMEFORMATENUM_EX_OUT_7", outputFlowCurrentLanguage: "en-US" }, { input: "ToAudioDate(ToDateTime(NOT_SET), Format.Date.longYearOnly)", output: "AR_FN_AUDIO_TOAUDIODATE_DTM_DATETIMEFORMATENUM_EX_OUT_8" }] }, { description: "AR_FN_AUDIO_TOAUDIODATE_DATE_DSC", identifier: "Audio_ONE ToAudioDate(Date_ONE)", support: { version: "1.0", resolver: "None" }, supportedFlowTypes: { inboundcall: "inboundcall", inqueuecall: "inqueuecall", outboundcall: "outboundcall", securecall: "securecall", voicemail: "voicemail" }, disallowAsDefaultCast: true, runtimeSequencesSystemPrompts: true, needsServerInfo: true, returnValue: { description: "AR_FN_AUDIO_TOAUDIODATE_DATE_RV", isArray: false, type: "aud" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_AUDIO_TOAUDIODATE_DATE_PRM_DSC_0", identifier: "dateToConvert", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "dat" }], examples: [{ input: "ToAudioDate(MakeDate(1989, 11, 30))", output: "AR_FN_AUDIO_TOAUDIODATE_DATE_EX_OUT_0", outputFlowCurrentLanguage: "en-US" }, { input: "ToAudioDate(ToDate(NOT_SET))", output: "AR_FN_AUDIO_TOAUDIODATE_DATE_EX_OUT_1" }] }, { description: "AR_FN_AUDIO_TOAUDIODATE_DATE_DATEFORMATENUM_DSC", identifier: "Audio_ONE ToAudioDate(Date_ONE,DateFormatEnum_ONE)", support: { version: "1.0", resolver: "None" }, supportedFlowTypes: { inboundcall: "inboundcall", inqueuecall: "inqueuecall", outboundcall: "outboundcall", securecall: "securecall", voicemail: "voicemail" }, disallowAsDefaultCast: true, runtimeSequencesSystemPrompts: true, needsServerInfo: true, returnValue: { description: "AR_FN_AUDIO_TOAUDIODATE_DATE_DATEFORMATENUM_RV", isArray: false, type: "aud" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_AUDIO_TOAUDIODATE_DATE_DATEFORMATENUM_PRM_DSC_0", identifier: "dateToConvert", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "dat" }, { allowNotSet: false, allowCustomJson: false, description: "AR_FN_AUDIO_TOAUDIODATE_DATE_DATEFORMATENUM_PRM_DSC_1", identifier: "dateAudioFormat", isArray: false, helpDisplayIdx: 1, repeatable: false, required: true, type: "daf" }], examples: [{ input: "ToAudioDate(MakeDate(1989, 11, 30), Format.Date.longYear)", output: "AR_FN_AUDIO_TOAUDIODATE_DATE_DATEFORMATENUM_EX_OUT_0", outputFlowCurrentLanguage: "en-US" }, { input: "ToAudioDate(MakeDate(1989, 11, 30), Format.Date.shortYear)", output: "AR_FN_AUDIO_TOAUDIODATE_DATE_DATEFORMATENUM_EX_OUT_1", outputFlowCurrentLanguage: "en-US" }, { input: "ToAudioDate(MakeDate(1989, 11, 30), Format.Date.shortMonthAndDay)", output: "AR_FN_AUDIO_TOAUDIODATE_DATE_DATEFORMATENUM_EX_OUT_2", outputFlowCurrentLanguage: "en-US" }, { input: "ToAudioDate(MakeDate(2014, 4, 7), Format.Date.dayOnly)", output: "AR_FN_AUDIO_TOAUDIODATE_DATE_DATEFORMATENUM_EX_OUT_3", outputFlowCurrentLanguage: "en-US" }, { input: "ToAudioDate(MakeDate(2014, 4, 7), Format.Date.monthOnly)", output: "AR_FN_AUDIO_TOAUDIODATE_DATE_DATEFORMATENUM_EX_OUT_4", outputFlowCurrentLanguage: "en-US" }, { input: "ToAudioDate(MakeDate(2014, 4, 7), Format.Date.shortYearOnly)", output: "AR_FN_AUDIO_TOAUDIODATE_DATE_DATEFORMATENUM_EX_OUT_5", outputFlowCurrentLanguage: "en-US" }, { input: "ToAudioDate(MakeDate(2014, 4, 7), Format.Date.longYearOnly)", output: "AR_FN_AUDIO_TOAUDIODATE_DATE_DATEFORMATENUM_EX_OUT_6", outputFlowCurrentLanguage: "en-US" }, { input: "ToAudioDate(MakeDate(2014, 11, 5), Format.Date.dayOfWeekOnly)", output: "AR_FN_AUDIO_TOAUDIODATE_DATE_DATEFORMATENUM_EX_OUT_7", outputFlowCurrentLanguage: "en-US" }, { input: "ToAudioDate(ToDate(NOT_SET), Format.Date.longYearOnly)", output: "AR_FN_AUDIO_TOAUDIODATE_DATE_DATEFORMATENUM_EX_OUT_8" }] }], needsServerInfo: true }, toAudioDateTime: { identifier: "toAudioDateTime", description: "AR_FN_DSC_TOAUDIODATETIME", type: "function", runtimeSequencesSystemPrompts: true, name: "ToAudioDateTime", category: "cast", overloads: [{ description: "AR_FN_AUDIO_TOAUDIODATETIME_DTM_DSC", identifier: "Audio_ONE ToAudioDateTime(DateTime_ONE)", support: { version: "1.0", resolver: "None" }, supportedFlowTypes: { inboundcall: "inboundcall", inqueuecall: "inqueuecall", outboundcall: "outboundcall", securecall: "securecall", voicemail: "voicemail" }, runtimeSequencesSystemPrompts: true, returnValue: { description: "AR_FN_AUDIO_TOAUDIODATETIME_DTM_RV", isArray: false, type: "aud" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_AUDIO_TOAUDIODATETIME_DTM_PRM_DSC_0", identifier: "dateTimeToConvert", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "dtm" }], examples: [{ input: "ToAudioDateTime(MakeDateTime(1989, 11, 30, 14, 22, 11))", output: "AR_FN_AUDIO_TOAUDIODATETIME_DTM_EX_OUT_0", outputFlowCurrentLanguage: "en-US" }, { input: "ToAudioDateTime(MakeDateTime(1989, 11, 30, 14, 22, 11))", output: "AR_FN_AUDIO_TOAUDIODATETIME_DTM_EX_OUT_1", outputFlowCurrentLanguage: "en-US" }, { input: "ToAudioDateTime(MakeDateTime(1989, 11, 30))", output: "AR_FN_AUDIO_TOAUDIODATETIME_DTM_EX_OUT_2", outputFlowCurrentLanguage: "en-US" }, { input: "ToAudioDateTime(ToDateTime(NOT_SET))", output: "AR_FN_AUDIO_TOAUDIODATETIME_DTM_EX_OUT_3" }] }] }, toAudioTime: { identifier: "toAudioTime", description: "AR_FN_DSC_TOAUDIOTIME", type: "function", runtimeSequencesSystemPrompts: true, name: "ToAudioTime", category: "cast", overloads: [{ description: "AR_FN_AUDIO_TOAUDIOTIME_DTM_DSC", identifier: "Audio_ONE ToAudioTime(DateTime_ONE)", support: { version: "1.0", resolver: "None" }, supportedFlowTypes: { inboundcall: "inboundcall", inqueuecall: "inqueuecall", outboundcall: "outboundcall", securecall: "securecall", voicemail: "voicemail" }, disallowAsDefaultCast: true, runtimeSequencesSystemPrompts: true, returnValue: { description: "AR_FN_AUDIO_TOAUDIOTIME_DTM_RV", isArray: false, type: "aud" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_AUDIO_TOAUDIOTIME_DTM_PRM_DSC_0", identifier: "dateTimeToConvert", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "dtm" }], examples: [{ input: "ToAudioTime(MakeDateTime(1989, 11, 30, 14, 22, 11))", output: "AR_FN_AUDIO_TOAUDIOTIME_DTM_EX_OUT_0" }, { input: "ToAudioTime(MakeDateTime(1989, 11, 30))", output: "AR_FN_AUDIO_TOAUDIOTIME_DTM_EX_OUT_1" }, { input: "ToAudioTime(ToDateTime(NOT_SET))", output: "AR_FN_AUDIO_TOAUDIOTIME_DTM_EX_OUT_2" }] }, { description: "AR_FN_AUDIO_TOAUDIOTIME_DTM_TIMEFORMATENUM_DSC", identifier: "Audio_ONE ToAudioTime(DateTime_ONE,TimeFormatEnum_ONE)", support: { version: "1.0", resolver: "None" }, supportedFlowTypes: { inboundcall: "inboundcall", inqueuecall: "inqueuecall", outboundcall: "outboundcall", securecall: "securecall", voicemail: "voicemail" }, disallowAsDefaultCast: true, runtimeSequencesSystemPrompts: true, returnValue: { description: "AR_FN_AUDIO_TOAUDIOTIME_DTM_TIMEFORMATENUM_RV", isArray: false, type: "aud" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_AUDIO_TOAUDIOTIME_DTM_TIMEFORMATENUM_PRM_DSC_0", identifier: "dateTimeToConvert", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "dtm" }, { allowNotSet: false, allowCustomJson: false, description: "AR_FN_AUDIO_TOAUDIOTIME_DTM_TIMEFORMATENUM_PRM_DSC_1", identifier: "timeAudioFormat", isArray: false, helpDisplayIdx: 1, repeatable: false, required: true, type: "tif" }], examples: [{ input: "ToAudioTime(MakeDateTime(2014, 4, 7, 14, 22, 11), Format.Time.twentyFourHours)", output: "AR_FN_AUDIO_TOAUDIOTIME_DTM_TIMEFORMATENUM_EX_OUT_0", outputFlowCurrentLanguage: "en-US" }, { input: "ToAudioTime(MakeDateTime(2014, 4, 7, 14, 22, 11), Format.Time.twelveHours)", output: "AR_FN_AUDIO_TOAUDIOTIME_DTM_TIMEFORMATENUM_EX_OUT_1", outputFlowCurrentLanguage: "en-US" }, { input: "ToAudioTime(ToDateTime(NOT_SET), Format.Time.twelveHours)", output: "AR_FN_AUDIO_TOAUDIOTIME_DTM_TIMEFORMATENUM_EX_OUT_2" }] }] }, toAudio: { identifier: "toAudio", description: "AR_FN_DSC_TOAUDIO", type: "function", name: "ToAudio", category: "cast", overloads: [{ description: "AR_FN_AUDIO_TOAUDIO_PROMPT_DSC", identifier: "Audio_ONE toAudio(Prompt_ONE)", support: { version: "1.0", resolver: "None" }, supportedFlowTypes: { inboundcall: "inboundcall", inqueuecall: "inqueuecall", outboundcall: "outboundcall", securecall: "securecall", voicemail: "voicemail" }, returnValue: { description: "AR_FN_AUDIO_TOAUDIO_PROMPT_RV", isArray: false, type: "aud" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_FN_AUDIO_TOAUDIO_PROMPT_PRM_DSC_0", identifier: "promptToConvert", isArray: false, helpDisplayIdx: 0, repeatable: false, required: true, type: "pmt", checkPromptTTSLength: true }], examples: [{ input: "ToAudio(Prompt.Welcome)", output: "AR_FN_AUDIO_TOAUDIO_PROMPT_EX_OUT_0" }] }, { description: "AR_FN_AUDIO_TOAUDIO_PROMPT_COLL_DSC", identifier: "Audio_ONE toAudio(Prompt_COLL)", support: { version: "1.0", resolver: "None" }, supportedFlowTypes: { inboundcall: "inboundcall", inqueuecall: "inqueuecall", outboundcall: "outboundcall", securecall: "securecall", voicemail: "voicemail" }, needsServerInfo: true, returnValue: { description: "AR_FN_AUDIO_TOAUDIO_PROMPT_COLL_RV", isArray: false, type: "aud" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_FN_AUDIO_TOAUDIO_PROMPT_COLL_PRM_DSC_0", identifier: "promptCollectionToConvert", isArray: true, helpDisplayIdx: 0, repeatable: false, required: true, type: "pmt" }], examples: [{ input: "ToAudio(MakeList(Prompt.Hello, Prompt.World))", output: "AR_FN_AUDIO_TOAUDIO_PROMPT_COLL_EX_OUT_0" }] }, { description: "AR_FN_AUDIO_TOAUDIO_VOICEMAILSNIPPET_DSC", identifier: "Audio_ONE toAudio(VoicemailSnippet_ONE)", support: { version: "1.0", resolver: "None" }, supportedFlowTypes: { voicemail: "voicemail" }, needsServerInfo: true, returnValue: { description: "AR_FN_AUDIO_TOAUDIO_VOICEMAILSNIPPET_RV", isArray: false, type: "aud" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_FN_AUDIO_TOAUDIO_VOICEMAILSNIPPET_PRM_DSC_0", identifier: "snippetToConvert", isArray: false, helpDisplayIdx: 0, repeatable: false, required: true, type: "cpx_voicemail_snippet" }], examples: [{ input: "ToAudio(Voicemail.VoicemailSnippet)", output: "AR_FN_AUDIO_TOAUDIO_VOICEMAILSNIPPET_EX_OUT_0" }, { input: "ToAudio(ToVoicemailSnippet(NOT_SET))", output: "AR_FN_AUDIO_TOAUDIO_VOICEMAILSNIPPET_EX_OUT_1" }] }, { description: "AR_FN_AUDIO_TOAUDIO_VOICESNIPPET_DSC", identifier: "Audio_ONE toAudio(VoiceSnippet_ONE)", support: { version: "1.0", resolver: "None" }, needsServerInfo: true, returnValue: { description: "AR_FN_AUDIO_TOAUDIO_VOICESNIPPET_RV", isArray: false, type: "aud" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_FN_AUDIO_TOAUDIO_VOICESNIPPET_PRM_DSC_0", identifier: "snippetToConvert", isArray: false, helpDisplayIdx: 0, repeatable: false, required: true, type: "cpx_voice_snippet" }], examples: [{ input: "ToAudio(Flow.ParticipantSnippet)", output: "AR_FN_AUDIO_TOAUDIO_VOICESNIPPET_EX_OUT_0" }, { input: "ToAudio(ToVoiceSnippet(NOT_SET))", output: "AR_FN_AUDIO_TOAUDIO_VOICESNIPPET_EX_OUT_1" }] }, { description: "AR_FN_AUDIO_TOAUDIO_NTS_DSC", identifier: "Audio_ONE toAudio(Null_ONE)", support: { version: "1.0", resolver: "None" }, supportedFlowTypes: { inboundcall: "inboundcall", inqueuecall: "inqueuecall", outboundcall: "outboundcall", securecall: "securecall", voicemail: "voicemail" }, needsServerInfo: true, returnValue: { description: "AR_FN_AUDIO_TOAUDIO_NTS_RV", isArray: false, type: "aud" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_AUDIO_TOAUDIO_NTS_PRM_DSC_0", identifier: "valueToConvert", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "nts" }], examples: [{ input: "ToAudio(NOT_SET)", output: "AR_FN_AUDIO_TOAUDIO_NTS_EX_OUT_0" }] }], needsServerInfo: true }, toCommunication: { identifier: "toCommunication", description: "AR_FN_DSC_TOCOMMUNICATION", type: "function", name: "ToCommunication", category: "cast", overloads: [{ description: "AR_FN_COMMUNICATION_TOCOMMUNICATION_ANY_DSC", identifier: "Communication_ONE ToCommunication(Any_ONE)", support: { version: "1.0", resolver: "None" }, supportedFlowTypes: { bot: "bot", digitalbot: "digitalbot", voice: "voice", voicesurvey: "voicesurvey", commonmodule: "commonmodule" }, needsServerInfo: true, returnValue: { description: "AR_FN_COMMUNICATION_TOCOMMUNICATION_ANY_RV", isArray: false, type: "com" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_COMMUNICATION_TOCOMMUNICATION_ANY_PRM_DSC_0", identifier: "anyValueToConvert", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "any" }], examples: [{ input: "ToCommunication(1)", output: "AR_FN_COMMUNICATION_TOCOMMUNICATION_ANY_EX_OUT_0", outputFlowCurrentLanguage: "es-US" }] }, { description: "AR_FN_COMMUNICATION_TOCOMMUNICATION_ANY_COLL_DSC", identifier: "Communication_ONE ToCommunication(Any_COLL)", support: { version: "1.0", resolver: "None" }, supportedFlowTypes: { bot: "bot", digitalbot: "digitalbot", voice: "voice", voicesurvey: "voicesurvey", commonmodule: "commonmodule" }, needsServerInfo: true, returnValue: { description: "AR_FN_COMMUNICATION_TOCOMMUNICATION_ANY_COLL_RV", isArray: false, type: "com" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_FN_COMMUNICATION_TOCOMMUNICATION_ANY_COLL_PRM_DSC_0", identifier: "anyValueToConvert", isArray: true, helpDisplayIdx: 0, repeatable: false, required: true, type: "any" }], examples: [{ input: "ToCommunication(MakeList(1, 2))", output: "AR_FN_COMMUNICATION_TOCOMMUNICATION_ANY_COLL_EX_OUT_0", outputFlowCurrentLanguage: "es-US" }] }, { description: "AR_FN_COMMUNICATION_TOCOMMUNICATION_ANY_COLL_STR_DSC", identifier: "Communication_ONE ToCommunication(Any_COLL,String_ONE)", support: { version: "1.0", resolver: "None" }, supportedFlowTypes: { bot: "bot", digitalbot: "digitalbot", voice: "voice", voicesurvey: "voicesurvey", commonmodule: "commonmodule" }, needsServerInfo: true, returnValue: { description: "AR_FN_COMMUNICATION_TOCOMMUNICATION_ANY_COLL_STR_RV", isArray: false, type: "com" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_FN_COMMUNICATION_TOCOMMUNICATION_ANY_COLL_STR_PRM_DSC_0", identifier: "anyValueToConvert", isArray: true, helpDisplayIdx: 0, repeatable: false, required: true, type: "any" }, { allowNotSet: true, allowCustomJson: false, description: "AR_FN_COMMUNICATION_TOCOMMUNICATION_ANY_COLL_STR_PRM_DSC_1", identifier: "delimiter", isArray: false, helpDisplayIdx: 1, repeatable: false, required: false, type: "str" }], examples: [{ input: 'ToCommunication(MakeList(1, 2), ", ")', output: "AR_FN_COMMUNICATION_TOCOMMUNICATION_ANY_COLL_STR_EX_OUT_0", outputFlowCurrentLanguage: "es-US" }] }, { description: "AR_FN_COMMUNICATION_TOCOMMUNICATION_BLN_BOOLFORMATENUM_DSC", identifier: "Communication_ONE ToCommunication(Boolean_ONE,BoolFormatEnum_ONE)", support: { version: "1.0", resolver: "None" }, supportedFlowTypes: { bot: "bot", digitalbot: "digitalbot", voice: "voice", voicesurvey: "voicesurvey", commonmodule: "commonmodule" }, needsServerInfo: true, returnValue: { description: "AR_FN_COMMUNICATION_TOCOMMUNICATION_BLN_BOOLFORMATENUM_RV", isArray: false, type: "com" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_COMMUNICATION_TOCOMMUNICATION_BLN_BOOLFORMATENUM_PRM_DSC_0", identifier: "boolToConvert", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "bln" }, { allowNotSet: false, allowCustomJson: false, description: "AR_FN_COMMUNICATION_TOCOMMUNICATION_BLN_BOOLFORMATENUM_PRM_DSC_1", identifier: "boolCommunicationFormat", isArray: false, helpDisplayIdx: 1, repeatable: false, required: true, type: "bof" }], examples: [{ input: "ToCommunication(false, Format.Bool.playYesNo)", output: "AR_FN_COMMUNICATION_TOCOMMUNICATION_BLN_BOOLFORMATENUM_EX_OUT_0", outputFlowCurrentLanguage: "en-US" }, { input: "ToCommunication(5 == 5, Format.Bool.playYesNo)", output: "AR_FN_COMMUNICATION_TOCOMMUNICATION_BLN_BOOLFORMATENUM_EX_OUT_1", outputFlowCurrentLanguage: "en-US" }, { input: "ToCommunication(ToBool(NOT_SET), Format.Bool.playYesNo)", output: "AR_FN_COMMUNICATION_TOCOMMUNICATION_BLN_BOOLFORMATENUM_EX_OUT_2" }] }, { description: "AR_FN_COMMUNICATION_TOCOMMUNICATION_CUR_CURRENCYFORMAT_DSC", identifier: "Communication_ONE ToCommunication(Currency_ONE,CurrencyFormat_ONE)", support: { version: "1.0", resolver: "None" }, supportedFlowTypes: { bot: "bot", digitalbot: "digitalbot", voice: "voice", voicesurvey: "voicesurvey" }, needsServerInfo: true, returnValue: { description: "AR_FN_COMMUNICATION_TOCOMMUNICATION_CUR_CURRENCYFORMAT_RV", isArray: false, type: "com" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_COMMUNICATION_TOCOMMUNICATION_CUR_CURRENCYFORMAT_PRM_DSC_0", identifier: "currencyToConvert", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "cur" }, { allowNotSet: false, allowCustomJson: false, description: "AR_FN_COMMUNICATION_TOCOMMUNICATION_CUR_CURRENCYFORMAT_PRM_DSC_1", identifier: "currencyCommunicationFormat", isArray: false, helpDisplayIdx: 1, repeatable: false, required: true, type: "cuf" }], examples: [{ input: 'ToCommunication(MakeCurrency(1234567.80, "USD"), Format.Currency.majorUnitsOnly)', output: "AR_FN_COMMUNICATION_TOCOMMUNICATION_CUR_CURRENCYFORMAT_EX_OUT_0", outputFlowCurrentLanguage: "en-US" }, { input: 'ToCommunication(MakeCurrency(1234567.80, "USD"), Format.Currency.minorUnitsOnly)', output: "AR_FN_COMMUNICATION_TOCOMMUNICATION_CUR_CURRENCYFORMAT_EX_OUT_1", outputFlowCurrentLanguage: "en-US" }, { input: 'ToCommunication(MakeCurrency(2.80, "USD"), Format.Currency.asMinorUnits)', output: "AR_FN_COMMUNICATION_TOCOMMUNICATION_CUR_CURRENCYFORMAT_EX_OUT_2", outputFlowCurrentLanguage: "en-US" }, { input: "ToCommunication(ToCurrency(NOT_SET), Format.Currency.playDigits)", output: "AR_FN_COMMUNICATION_TOCOMMUNICATION_CUR_CURRENCYFORMAT_EX_OUT_3" }] }, { description: "AR_FN_COMMUNICATION_TOCOMMUNICATION_CUR_LNG_DSC", identifier: "Communication_ONE ToCommunication(Currency_ONE,Long_ONE)", support: { version: "1.0", resolver: "None" }, supportedFlowTypes: { bot: "bot", digitalbot: "digitalbot", voice: "voice", voicesurvey: "voicesurvey", commonmodule: "commonmodule" }, needsServerInfo: true, returnValue: { description: "AR_FN_COMMUNICATION_TOCOMMUNICATION_CUR_LNG_RV", isArray: false, type: "com" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_COMMUNICATION_TOCOMMUNICATION_CUR_LNG_PRM_DSC_0", identifier: "currencyToConvert", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "cur" }, { allowNotSet: false, allowCustomJson: false, description: "AR_FN_COMMUNICATION_TOCOMMUNICATION_CUR_LNG_PRM_DSC_1", identifier: "numberOfDecimalPlaces", isArray: false, helpDisplayIdx: 1, repeatable: false, required: true, type: "int", isDecimalPlaces: true }], examples: [{ input: 'ToCommunication(MakeCurrency(1.27, "USD"), 1)', output: "AR_FN_COMMUNICATION_TOCOMMUNICATION_CUR_LNG_EX_OUT_0", outputFlowCurrentLanguage: "en-US" }, { input: 'ToCommunication(MakeCurrency(1.234, "USD"), 2)', output: "AR_FN_COMMUNICATION_TOCOMMUNICATION_CUR_LNG_EX_OUT_1", outputFlowCurrentLanguage: "en-US" }, { input: 'ToCommunication(MakeCurrency(1.23, "USD"), 3)', output: "AR_FN_COMMUNICATION_TOCOMMUNICATION_CUR_LNG_EX_OUT_2", outputFlowCurrentLanguage: "en-US" }, { input: 'ToCommunication(MakeCurrency(-35.23, "USD"), 2)', output: "AR_FN_COMMUNICATION_TOCOMMUNICATION_CUR_LNG_EX_OUT_3", outputFlowCurrentLanguage: "en-US" }, { input: "ToCommunication(ToCurrency(NOT_SET), 2)", output: "AR_FN_COMMUNICATION_TOCOMMUNICATION_CUR_LNG_EX_OUT_4" }] }, { description: "AR_FN_COMMUNICATION_TOCOMMUNICATION_DATE_DATEFORMATENUM_DSC", identifier: "Communication_ONE ToCommunication(Date_ONE,DateFormatEnum_ONE)", support: { version: "1.0", resolver: "None" }, supportedFlowTypes: { bot: "bot", digitalbot: "digitalbot", voice: "voice", voicesurvey: "voicesurvey" }, disallowAsDefaultCast: true, needsServerInfo: true, returnValue: { description: "AR_FN_COMMUNICATION_TOCOMMUNICATION_DATE_DATEFORMATENUM_RV", isArray: false, type: "com" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_COMMUNICATION_TOCOMMUNICATION_DATE_DATEFORMATENUM_PRM_DSC_0", identifier: "dateToConvert", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "dat" }, { allowNotSet: false, allowCustomJson: false, description: "AR_FN_COMMUNICATION_TOCOMMUNICATION_DATE_DATEFORMATENUM_PRM_DSC_1", identifier: "dateCommunicationFormat", isArray: false, helpDisplayIdx: 1, repeatable: false, required: true, type: "daf" }], examples: [{ input: "ToCommunication(MakeDate(1989, 11, 30), Format.Date.longYear)", output: "AR_FN_COMMUNICATION_TOCOMMUNICATION_DATE_DATEFORMATENUM_EX_OUT_0", outputFlowCurrentLanguage: "en-US" }, { input: "ToCommunication(MakeDate(1989, 11, 30), Format.Date.shortYear)", output: "AR_FN_COMMUNICATION_TOCOMMUNICATION_DATE_DATEFORMATENUM_EX_OUT_1", outputFlowCurrentLanguage: "en-US" }, { input: "ToCommunication(MakeDate(1989, 11, 30), Format.Date.shortMonthAndDay)", output: "AR_FN_COMMUNICATION_TOCOMMUNICATION_DATE_DATEFORMATENUM_EX_OUT_2", outputFlowCurrentLanguage: "en-US" }, { input: "ToCommunication(MakeDate(2014, 4, 7), Format.Date.dayOnly)", output: "AR_FN_COMMUNICATION_TOCOMMUNICATION_DATE_DATEFORMATENUM_EX_OUT_3", outputFlowCurrentLanguage: "en-US" }, { input: "ToCommunication(MakeDate(2014, 4, 7), Format.Date.monthOnly)", output: "AR_FN_COMMUNICATION_TOCOMMUNICATION_DATE_DATEFORMATENUM_EX_OUT_4", outputFlowCurrentLanguage: "en-US" }, { input: "ToCommunication(MakeDate(2014, 4, 7), Format.Date.shortYearOnly)", output: "AR_FN_COMMUNICATION_TOCOMMUNICATION_DATE_DATEFORMATENUM_EX_OUT_5", outputFlowCurrentLanguage: "en-US" }, { input: "ToCommunication(MakeDate(2014, 4, 7), Format.Date.longYearOnly)", output: "AR_FN_COMMUNICATION_TOCOMMUNICATION_DATE_DATEFORMATENUM_EX_OUT_6", outputFlowCurrentLanguage: "en-US" }, { input: "ToCommunication(MakeDate(2014, 11, 5), Format.Date.dayOfWeekOnly)", output: "AR_FN_COMMUNICATION_TOCOMMUNICATION_DATE_DATEFORMATENUM_EX_OUT_7", outputFlowCurrentLanguage: "en-US" }, { input: "ToCommunication(ToDate(NOT_SET), Format.Date.longYearOnly)", output: "A NOT_SET Communication." }] }, { description: "AR_FN_COMMUNICATION_TOCOMMUNICATION_DEC_NUMBERFORMATENUM_DSC", identifier: "Communication_ONE ToCommunication(Decimal_ONE,NumberFormatEnum_ONE)", support: { version: "1.0", resolver: "None" }, supportedFlowTypes: { bot: "bot", digitalbot: "digitalbot", voice: "voice", voicesurvey: "voicesurvey" }, needsServerInfo: true, returnValue: { description: "AR_FN_COMMUNICATION_TOCOMMUNICATION_DEC_NUMBERFORMATENUM_RV", isArray: false, type: "com" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_COMMUNICATION_TOCOMMUNICATION_DEC_NUMBERFORMATENUM_PRM_DSC_0", identifier: "decimalToConvert", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "dec" }, { allowNotSet: false, allowCustomJson: false, description: "AR_FN_COMMUNICATION_TOCOMMUNICATION_DEC_NUMBERFORMATENUM_PRM_DSC_1", identifier: "numberCommunicationFormat", isArray: false, helpDisplayIdx: 1, repeatable: false, required: true, type: "nuf" }], examples: [{ input: "ToCommunication(5.5, Format.Number.playDigits)", output: "AR_FN_COMMUNICATION_TOCOMMUNICATION_DEC_NUMBERFORMATENUM_EX_OUT_0", outputFlowCurrentLanguage: "en-US" }, { input: "ToCommunication(-500.0, Format.Number.playDigits)", output: "AR_FN_COMMUNICATION_TOCOMMUNICATION_DEC_NUMBERFORMATENUM_EX_OUT_1", outputFlowCurrentLanguage: "en-US" }, { input: "ToCommunication(ToDecimal(NOT_SET), Format.Number.playDigits)", output: "AR_FN_COMMUNICATION_TOCOMMUNICATION_DEC_NUMBERFORMATENUM_EX_OUT_2" }] }, { description: "AR_FN_COMMUNICATION_TOCOMMUNICATION_DEC_LNG_DSC", identifier: "Communication_ONE ToCommunication(Decimal_ONE,Long_ONE)", support: { version: "1.0", resolver: "None" }, supportedFlowTypes: { bot: "bot", digitalbot: "digitalbot", voice: "voice", voicesurvey: "voicesurvey" }, needsServerInfo: true, returnValue: { description: "AR_FN_COMMUNICATION_TOCOMMUNICATION_DEC_LNG_RV", isArray: false, type: "com" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_COMMUNICATION_TOCOMMUNICATION_DEC_LNG_PRM_DSC_0", identifier: "decimalToConvert", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "dec" }, { allowNotSet: false, allowCustomJson: false, description: "AR_FN_COMMUNICATION_TOCOMMUNICATION_DEC_LNG_PRM_DSC_1", identifier: "numberOfDecimalPlaces", isArray: false, helpDisplayIdx: 1, repeatable: false, required: true, type: "int", isDecimalPlaces: true }], examples: [{ input: "ToCommunication(1.27, 1)", output: "AR_FN_COMMUNICATION_TOCOMMUNICATION_DEC_LNG_EX_OUT_0", outputFlowCurrentLanguage: "en-US" }, { input: "ToCommunication(1.234, 2)", output: "AR_FN_COMMUNICATION_TOCOMMUNICATION_DEC_LNG_EX_OUT_1", outputFlowCurrentLanguage: "en-US" }, { input: "ToCommunication(1.23, 3)", output: "AR_FN_COMMUNICATION_TOCOMMUNICATION_DEC_LNG_EX_OUT_2", outputFlowCurrentLanguage: "en-US" }, { input: "ToCommunication(-35.17, 2)", output: "AR_FN_COMMUNICATION_TOCOMMUNICATION_DEC_LNG_EX_OUT_3", outputFlowCurrentLanguage: "en-US" }, { input: "ToCommunication(ToDecimal(NOT_SET), 2)", output: "AR_FN_COMMUNICATION_TOCOMMUNICATION_DEC_LNG_EX_OUT_4" }] }, { description: "AR_FN_COMMUNICATION_TOCOMMUNICATION_LNG_LANGUAGECONTEXTENUM_MORE_DSC", identifier: "Communication_ONE ToCommunication(Long_ONE,LanguageContextEnum_ONE...)", support: { version: "1.0", resolver: "LanguageUniqueContext" }, supportedFlowTypes: { bot: "bot", digitalbot: "digitalbot", voice: "voice", voicesurvey: "voicesurvey", commonmodule: "commonmodule" }, needsServerInfo: true, returnValue: { description: "AR_FN_COMMUNICATION_TOCOMMUNICATION_LNG_LANGUAGECONTEXTENUM_MORE_RV", isArray: false, type: "com" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_COMMUNICATION_TOCOMMUNICATION_LNG_LANGUAGECONTEXTENUM_MORE_PRM_DSC_0", identifier: "integerToConvert", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "int" }, { allowNotSet: false, allowCustomJson: false, description: "AR_FN_COMMUNICATION_TOCOMMUNICATION_LNG_LANGUAGECONTEXTENUM_MORE_PRM_DSC_1", identifier: "languageContext", isArray: false, helpDisplayIdx: 1, repeatable: true, required: true, type: "lne" }], examples: [{ input: "ToCommunication(1, Language.Gender.masculine)", output: "AR_FN_COMMUNICATION_TOCOMMUNICATION_LNG_LANGUAGECONTEXTENUM_MORE_EX_OUT_0", outputFlowCurrentLanguage: "es-US" }, { input: "ToCommunication(1, Language.Gender.masculine, Language.Case.article)", output: "AR_FN_COMMUNICATION_TOCOMMUNICATION_LNG_LANGUAGECONTEXTENUM_MORE_EX_OUT_1", outputFlowCurrentLanguage: "es-US" }, { input: "ToCommunication(5, Language.Gender.masculine, Language.Case.article)", output: "AR_FN_COMMUNICATION_TOCOMMUNICATION_LNG_LANGUAGECONTEXTENUM_MORE_EX_OUT_2", outputFlowCurrentLanguage: "es-US" }, { input: "ToCommunication(1, Language.Gender.feminine)", output: "AR_FN_COMMUNICATION_TOCOMMUNICATION_LNG_LANGUAGECONTEXTENUM_MORE_EX_OUT_3", outputFlowCurrentLanguage: "es-US" }, { input: "ToCommunication(1, Language.Gender.feminine, Language.Case.article)", output: "AR_FN_COMMUNICATION_TOCOMMUNICATION_LNG_LANGUAGECONTEXTENUM_MORE_EX_OUT_4", outputFlowCurrentLanguage: "es-US" }, { input: "ToCommunication(5, Language.Gender.feminine, Language.Case.article)", output: "AR_FN_COMMUNICATION_TOCOMMUNICATION_LNG_LANGUAGECONTEXTENUM_MORE_EX_OUT_5", outputFlowCurrentLanguage: "es-US" }, { input: "ToCommunication(ToInt(NOT_SET), Language.Gender.neuter)", output: "AR_FN_COMMUNICATION_TOCOMMUNICATION_LNG_LANGUAGECONTEXTENUM_MORE_EX_OUT_6", outputFlowCurrentLanguage: "es-US" }] }, { description: "AR_FN_COMMUNICATION_TOCOMMUNICATION_LNG_NUMBERFORMATENUM_DSC", identifier: "Communication_ONE ToCommunication(Long_ONE,NumberFormatEnum_ONE)", support: { version: "1.0", resolver: "None" }, supportedFlowTypes: { bot: "bot", digitalbot: "digitalbot", voice: "voice", voicesurvey: "voicesurvey" }, needsServerInfo: true, returnValue: { description: "AR_FN_COMMUNICATION_TOCOMMUNICATION_LNG_NUMBERFORMATENUM_RV", isArray: false, type: "com" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_COMMUNICATION_TOCOMMUNICATION_LNG_NUMBERFORMATENUM_PRM_DSC_0", identifier: "integerToConvert", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "int" }, { allowNotSet: false, allowCustomJson: false, description: "AR_FN_COMMUNICATION_TOCOMMUNICATION_LNG_NUMBERFORMATENUM_PRM_DSC_1", identifier: "numberFormatting", isArray: false, helpDisplayIdx: 1, repeatable: false, required: true, type: "nuf" }], examples: [{ input: "ToCommunication(500, Format.Number.playDigits)", output: "AR_FN_COMMUNICATION_TOCOMMUNICATION_LNG_NUMBERFORMATENUM_EX_OUT_0", outputFlowCurrentLanguage: "en-US" }, { input: "ToCommunication(ToInt(NOT_SET), Format.Number.playDigits)", output: "AR_FN_COMMUNICATION_TOCOMMUNICATION_LNG_NUMBERFORMATENUM_EX_OUT_1" }] }, { description: "AR_FN_COMMUNICATION_TOCOMMUNICATION_LNG_NUMBERFORMATENUM_LANGUAGECONTEXTENUM_MORE_DSC", identifier: "Communication_ONE ToCommunication(Long_ONE,NumberFormatEnum_ONE,LanguageContextEnum_ONE...)", support: { version: "1.0", resolver: "None" }, supportedFlowTypes: { bot: "bot", digitalbot: "digitalbot", voice: "voice", voicesurvey: "voicesurvey" }, needsServerInfo: true, returnValue: { description: "AR_FN_COMMUNICATION_TOCOMMUNICATION_LNG_NUMBERFORMATENUM_LANGUAGECONTEXTENUM_MORE_RV", isArray: false, type: "com" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_COMMUNICATION_TOCOMMUNICATION_LNG_NUMBERFORMATENUM_LANGUAGECONTEXTENUM_MORE_PRM_DSC_0", identifier: "integerToConvert", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "int" }, { allowNotSet: false, allowCustomJson: false, description: "AR_FN_COMMUNICATION_TOCOMMUNICATION_LNG_NUMBERFORMATENUM_LANGUAGECONTEXTENUM_MORE_PRM_DSC_1", identifier: "numberFormatting", isArray: false, helpDisplayIdx: 1, repeatable: false, required: true, type: "nuf" }, { allowNotSet: false, allowCustomJson: false, description: "AR_FN_COMMUNICATION_TOCOMMUNICATION_LNG_NUMBERFORMATENUM_LANGUAGECONTEXTENUM_MORE_PRM_DSC_2", identifier: "languageContext", isArray: false, helpDisplayIdx: 2, repeatable: true, required: true, type: "lne" }], examples: [{ input: "ToCommunication(12, Format.Number.playDigits, Language.Gender.masculine)", output: "AR_FN_COMMUNICATION_TOCOMMUNICATION_LNG_NUMBERFORMATENUM_LANGUAGECONTEXTENUM_MORE_EX_OUT_0", outputFlowCurrentLanguage: "es-US" }, { input: "ToCommunication(11, Format.Number.playDigits, Language.Gender.masculine, Language.Case.article)", output: "AR_FN_COMMUNICATION_TOCOMMUNICATION_LNG_NUMBERFORMATENUM_LANGUAGECONTEXTENUM_MORE_EX_OUT_1", outputFlowCurrentLanguage: "es-US" }, { input: "ToCommunication(55, Format.Number.playDigits, Language.Gender.masculine, Language.Case.article)", output: "AR_FN_COMMUNICATION_TOCOMMUNICATION_LNG_NUMBERFORMATENUM_LANGUAGECONTEXTENUM_MORE_EX_OUT_2", outputFlowCurrentLanguage: "es-US" }, { input: "ToCommunication(12, Format.Number.playDigits, Language.Gender.feminine)", output: "AR_FN_COMMUNICATION_TOCOMMUNICATION_LNG_NUMBERFORMATENUM_LANGUAGECONTEXTENUM_MORE_EX_OUT_3", outputFlowCurrentLanguage: "es-US" }, { input: "ToCommunication(12, Format.Number.playDigits, Language.Gender.feminine, Language.Case.article)", output: "AR_FN_COMMUNICATION_TOCOMMUNICATION_LNG_NUMBERFORMATENUM_LANGUAGECONTEXTENUM_MORE_EX_OUT_4", outputFlowCurrentLanguage: "es-US" }, { input: "ToCommunication(ToInt(NOT_SET), Format.Number.playDigits, Language.Gender.neuter)", output: "AR_FN_COMMUNICATION_TOCOMMUNICATION_LNG_NUMBERFORMATENUM_LANGUAGECONTEXTENUM_MORE_EX_OUT_5", outputFlowCurrentLanguage: "es-US" }] }, { description: "AR_FN_COMMUNICATION_TOCOMMUNICATION_NTS_DSC", identifier: "Communication_ONE ToCommunication(Null_ONE)", support: { version: "1.0", resolver: "NotSetToRetType" }, supportedFlowTypes: { bot: "bot", digitalbot: "digitalbot", voice: "voice", voicesurvey: "voicesurvey", commonmodule: "commonmodule" }, needsServerInfo: true, returnValue: { description: "AR_FN_COMMUNICATION_TOCOMMUNICATION_NTS_RV", isArray: false, type: "com" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_COMMUNICATION_TOCOMMUNICATION_NTS_PRM_DSC_0", identifier: "valueToConvert", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "nts" }], examples: [{ input: "ToCommunication(NOT_SET)", output: "AR_FN_COMMUNICATION_TOCOMMUNICATION_NTS_EX_OUT_0" }] }, { description: "AR_FN_COMMUNICATION_TOCOMMUNICATION_STR_STRINGFORMAT_DSC", identifier: "Communication_ONE ToCommunication(String_ONE,StringFormat_ONE)", support: { version: "1.0", resolver: "None" }, supportedFlowTypes: { bot: "bot", digitalbot: "digitalbot", voice: "voice", voicesurvey: "voicesurvey" }, needsServerInfo: true, returnValue: { description: "AR_FN_COMMUNICATION_TOCOMMUNICATION_STR_STRINGFORMAT_RV", isArray: false, type: "com" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_COMMUNICATION_TOCOMMUNICATION_STR_STRINGFORMAT_PRM_DSC_0", identifier: "text", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "str" }, { allowNotSet: false, allowCustomJson: false, description: "AR_FN_COMMUNICATION_TOCOMMUNICATION_STR_STRINGFORMAT_PRM_DSC_1", identifier: "stringCommunicationFormat", isArray: false, helpDisplayIdx: 1, repeatable: false, required: true, type: "stf" }], examples: [{ input: 'ToCommunication("Hello", Format.String.playChars)', output: "AR_FN_COMMUNICATION_TOCOMMUNICATION_STR_STRINGFORMAT_EX_OUT_0" }, { input: "ToCommunication(ToString(NOT_SET), Format.String.playChars)", output: "AR_FN_COMMUNICATION_TOCOMMUNICATION_STR_STRINGFORMAT_EX_OUT_1" }] }, { description: "AR_FN_COMMUNICATION_TOCOMMUNICATION_TIME_TIMEFORMATENUM_DSC", identifier: "Communication_ONE ToCommunication(Time_ONE,TimeFormatEnum_ONE)", support: { version: "1.0", resolver: "None" }, supportedFlowTypes: { bot: "bot", digitalbot: "digitalbot", voice: "voice", voicesurvey: "voicesurvey" }, disallowAsDefaultCast: true, needsServerInfo: true, returnValue: { description: "AR_FN_COMMUNICATION_TOCOMMUNICATION_TIME_TIMEFORMATENUM_RV", isArray: false, type: "com" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_COMMUNICATION_TOCOMMUNICATION_TIME_TIMEFORMATENUM_PRM_DSC_0", identifier: "timeToConvert", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "tim" }, { allowNotSet: false, allowCustomJson: false, description: "AR_FN_COMMUNICATION_TOCOMMUNICATION_TIME_TIMEFORMATENUM_PRM_DSC_1", identifier: "timeCommunicationFormat", isArray: false, helpDisplayIdx: 1, repeatable: false, required: true, type: "tif" }], examples: [{ input: "ToCommunication(MakeTime(14, 22, 11), Format.Time.twentyFourHours)", output: "AR_FN_COMMUNICATION_TOCOMMUNICATION_TIME_TIMEFORMATENUM_EX_OUT_0", outputFlowCurrentLanguage: "en-US" }, { input: "ToCommunication(MakeTime(14, 22, 11), Format.Time.twelveHours)", output: "AR_FN_COMMUNICATION_TOCOMMUNICATION_TIME_TIMEFORMATENUM_EX_OUT_1", outputFlowCurrentLanguage: "en-US" }, { input: "ToCommunication(ToTime(NOT_SET), Format.Time.twelveHours)", output: "AR_FN_COMMUNICATION_TOCOMMUNICATION_TIME_TIMEFORMATENUM_EX_OUT_2", outputFlowCurrentLanguage: "en-US" }] }, { description: "AR_FN_COMMUNICATION_TOCOMMUNICATION_TIME_TIMEPARTENUM_DSC", identifier: "Communication_ONE ToCommunication(Time_ONE,TimePartEnum_ONE)", support: { version: "1.0", resolver: "None" }, supportedFlowTypes: { bot: "bot", digitalbot: "digitalbot", voice: "voice", voicesurvey: "voicesurvey" }, disallowAsDefaultCast: true, needsServerInfo: true, returnValue: { description: "AR_FN_COMMUNICATION_TOCOMMUNICATION_TIME_TIMEPARTENUM_RV", isArray: false, type: "com" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_COMMUNICATION_TOCOMMUNICATION_TIME_TIMEPARTENUM_PRM_DSC_0", identifier: "timeToConvert", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "tim" }, { allowNotSet: false, allowCustomJson: false, description: "AR_FN_COMMUNICATION_TOCOMMUNICATION_TIME_TIMEPARTENUM_PRM_DSC_1", identifier: "timePart", isArray: false, helpDisplayIdx: 1, repeatable: false, required: true, type: "tpf" }], examples: [{ input: "ToCommunication(MakeTime(9, 22, 11), Format.TimePart.hours)", output: "AR_FN_COMMUNICATION_TOCOMMUNICATION_TIME_TIMEPARTENUM_EX_OUT_0", outputFlowCurrentLanguage: "en-US" }, { input: "ToCommunication(MakeTime(14, 22, 11), Format.TimePart.minutes)", output: "AR_FN_COMMUNICATION_TOCOMMUNICATION_TIME_TIMEPARTENUM_EX_OUT_1", outputFlowCurrentLanguage: "en-US" }] }], needsServerInfo: true }, toCommunicationBlank: { identifier: "toCommunicationBlank", description: "AR_FN_DSC_TOCOMMUNICATIONBLANK", type: "function", name: "ToCommunicationBlank", category: "cast", overloads: [{ description: "AR_FN_COMMUNICATION_TOCOMMUNICATIONBLANK_LNG_DSC", identifier: "Communication_ONE ToCommunicationBlank(Long_ONE)", support: { version: "1.0", resolver: "None" }, supportedFlowTypes: { bot: "bot", voice: "voice", voicesurvey: "voicesurvey" }, disallowAsDefaultCast: true, needsServerInfo: true, returnValue: { description: "AR_FN_COMMUNICATION_TOCOMMUNICATIONBLANK_LNG_RV", isArray: false, type: "com" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_COMMUNICATION_TOCOMMUNICATIONBLANK_LNG_PRM_DSC_0", identifier: "lengthMs", isArray: false, helpDisplayIdx: 0, max: "10000", min: "0", repeatable: false, required: false, type: "int" }], examples: [{ input: "ToCommunicationBlank(500)", output: "AR_FN_COMMUNICATION_TOCOMMUNICATIONBLANK_LNG_EX_OUT_0" }, { input: "ToCommunicationBlank(ToInt(NOT_SET))", output: "AR_FN_COMMUNICATION_TOCOMMUNICATIONBLANK_LNG_EX_OUT_1" }] }], needsServerInfo: true }, toCommunicationOrdinal: { identifier: "toCommunicationOrdinal", description: "AR_FN_DSC_TOCOMMUNICATIONORDINAL", type: "function", name: "ToCommunicationOrdinal", category: "cast", overloads: [{ description: "AR_FN_COMMUNICATION_TOCOMMUNICATIONORDINAL_LNG_DSC", identifier: "Communication_ONE ToCommunicationOrdinal(Long_ONE)", support: { version: "1.0", resolver: "None" }, disallowAsDefaultCast: true, needsServerInfo: true, returnValue: { description: "AR_FN_COMMUNICATION_TOCOMMUNICATIONORDINAL_LNG_RV", isArray: false, type: "com" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_COMMUNICATION_TOCOMMUNICATIONORDINAL_LNG_PRM_DSC_0", identifier: "integerToConvert", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "int" }], examples: [{ input: "ToCommunicationOrdinal(1)", output: "AR_FN_COMMUNICATION_TOCOMMUNICATIONORDINAL_LNG_EX_OUT_0", outputFlowCurrentLanguage: "en-US" }, { input: "ToCommunicationOrdinal(201)", output: "AR_FN_COMMUNICATION_TOCOMMUNICATIONORDINAL_LNG_EX_OUT_1", outputFlowCurrentLanguage: "en-US" }, { input: "ToCommunicationOrdinal(500)", output: "AR_FN_COMMUNICATION_TOCOMMUNICATIONORDINAL_LNG_EX_OUT_2", outputFlowCurrentLanguage: "en-US" }, { input: "ToCommunicationOrdinal(5000)", output: "AR_FN_COMMUNICATION_TOCOMMUNICATIONORDINAL_LNG_EX_OUT_3", outputFlowCurrentLanguage: "en-US" }, { input: "ToCommunicationOrdinal(-500)", output: "AR_FN_COMMUNICATION_TOCOMMUNICATIONORDINAL_LNG_EX_OUT_4", outputFlowCurrentLanguage: "en-US" }, { input: "ToCommunicationOrdinal(ToInt(NOT_SET))", output: "AR_FN_COMMUNICATION_TOCOMMUNICATIONORDINAL_LNG_EX_OUT_5", outputFlowCurrentLanguage: "en-US" }] }, { description: "AR_FN_COMMUNICATION_TOCOMMUNICATIONORDINAL_LNG_LANGUAGECONTEXTENUM_MORE_DSC", identifier: "Communication_ONE ToCommunicationOrdinal(Long_ONE,LanguageContextEnum_ONE...)", support: { version: "1.0", resolver: "LanguageUniqueContext" }, disallowAsDefaultCast: true, needsServerInfo: true, returnValue: { description: "AR_FN_COMMUNICATION_TOCOMMUNICATIONORDINAL_LNG_LANGUAGECONTEXTENUM_MORE_RV", isArray: false, type: "com" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_COMMUNICATION_TOCOMMUNICATIONORDINAL_LNG_LANGUAGECONTEXTENUM_MORE_PRM_DSC_0", identifier: "integerToConvert", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "int" }, { allowNotSet: false, allowCustomJson: false, description: "AR_FN_COMMUNICATION_TOCOMMUNICATIONORDINAL_LNG_LANGUAGECONTEXTENUM_MORE_PRM_DSC_1", identifier: "languageContext", isArray: false, helpDisplayIdx: 1, repeatable: true, required: true, type: "lne" }], examples: [{ input: "ToCommunicationOrdinal(1, Language.Gender.masculine)", output: "AR_FN_COMMUNICATION_TOCOMMUNICATIONORDINAL_LNG_LANGUAGECONTEXTENUM_MORE_EX_OUT_0", outputFlowCurrentLanguage: "fr-FR" }, { input: "ToCommunicationOrdinal(1, Language.Gender.feminine)", output: "AR_FN_COMMUNICATION_TOCOMMUNICATIONORDINAL_LNG_LANGUAGECONTEXTENUM_MORE_EX_OUT_1", outputFlowCurrentLanguage: "fr-FR" }, { input: "ToCommunicationOrdinal(1, Language.Gender.neuter)", output: "AR_FN_COMMUNICATION_TOCOMMUNICATIONORDINAL_LNG_LANGUAGECONTEXTENUM_MORE_EX_OUT_2", outputFlowCurrentLanguage: "fr-FR" }, { input: "ToCommunicationOrdinal(-1, Language.Gender.masculine)", output: "AR_FN_COMMUNICATION_TOCOMMUNICATIONORDINAL_LNG_LANGUAGECONTEXTENUM_MORE_EX_OUT_3", outputFlowCurrentLanguage: "fr-FR" }, { input: "ToCommunicationOrdinal(ToInt(NOT_SET), Language.Gender.masculine)", output: "AR_FN_COMMUNICATION_TOCOMMUNICATIONORDINAL_LNG_LANGUAGECONTEXTENUM_MORE_EX_OUT_4", outputFlowCurrentLanguage: "fr-FR" }] }], needsServerInfo: true }, toCommunicationSsml: { identifier: "toCommunicationSsml", description: "AR_FN_DSC_TOCOMMUNICATIONSSML", type: "function", name: "ToCommunicationSsml", category: "cast", overloads: [{ description: "AR_FN_COMMUNICATION_TOCOMMUNICATIONSSML_STR_DSC", identifier: "Communication_ONE ToCommunicationSsml(String_ONE)", support: { version: "1.0", resolver: "None" }, supportedFlowTypes: { bot: "bot", voice: "voice", voicesurvey: "voicesurvey" }, disallowAsDefaultCast: true, needsServerInfo: true, returnValue: { description: "AR_FN_COMMUNICATION_TOCOMMUNICATIONSSML_STR_RV", isArray: false, type: "com" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_COMMUNICATION_TOCOMMUNICATIONSSML_STR_PRM_DSC_0", identifier: "ssmlFragment", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "str" }], examples: [{ input: 'ToCommunicationSsml("SSML")', output: "AR_FN_COMMUNICATION_TOCOMMUNICATIONSSML_STR_EX_OUT_0" }, { input: 'ToCommunicationSsml("5")', output: "AR_FN_COMMUNICATION_TOCOMMUNICATIONSSML_STR_EX_OUT_1", outputFlowCurrentLanguage: "en-us" }, { input: "ToCommunicationSsml(NOT_SET)", output: "AR_FN_COMMUNICATION_TOCOMMUNICATIONSSML_STR_EX_OUT_2" }] }], needsServerInfo: true }, toMultimodalCommunication: { identifier: "toMultimodalCommunication", description: "AR_FN_DSC_TOMULTIMODALCOMMUNICATION", type: "function", name: "ToMultimodalCommunication", category: "cast", overloads: [{ description: "AR_FN_COMMUNICATION_TOMULTIMODALCOMMUNICATION_COMMUNICATION_COMMUNICATION_DSC", identifier: "Communication_ONE ToMultimodalCommunication(Communication_ONE,Communication_ONE)", support: { version: "1.0", resolver: "None" }, needsServerInfo: true, returnValue: { description: "AR_FN_COMMUNICATION_TOMULTIMODALCOMMUNICATION_COMMUNICATION_COMMUNICATION_RV", isArray: false, type: "com" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_COMMUNICATION_TOMULTIMODALCOMMUNICATION_COMMUNICATION_COMMUNICATION_PRM_DSC_0", identifier: "voiceModeCommunication", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "com" }, { allowNotSet: true, allowCustomJson: false, description: "AR_FN_COMMUNICATION_TOMULTIMODALCOMMUNICATION_COMMUNICATION_COMMUNICATION_PRM_DSC_1", identifier: "textModeCommunication", isArray: false, helpDisplayIdx: 1, repeatable: false, required: false, type: "com" }], examples: [{ input: "ToMultimodalCommunication(ToCommunication(1), ToCommunication(false, Format.Bool.playYesNo))", output: "AR_FN_COMMUNICATION_TOMULTIMODALCOMMUNICATION_COMMUNICATION_COMMUNICATION_EX_OUT_0", outputFlowCurrentLanguage: "en-US" }, { input: "ToMultimodalCommunication(ToCommunication(NOT_SET), ToCommunication(NOT_SET))", output: "AR_FN_COMMUNICATION_TOMULTIMODALCOMMUNICATION_COMMUNICATION_COMMUNICATION_EX_OUT_1", outputFlowCurrentLanguage: "en-US" }] }], needsServerInfo: true }, toAudioNumber: { identifier: "toAudioNumber", description: "AR_FN_DSC_TOAUDIONUMBER", type: "function", runtimeSequencesSystemPrompts: true, name: "ToAudioNumber", category: "cast", overloads: [{ description: "AR_FN_AUDIO_TOAUDIONUMBER_LNG_DSC", identifier: "Audio_ONE ToAudioNumber(Long_ONE)", support: { version: "1.0", resolver: "None" }, supportedFlowTypes: { inboundcall: "inboundcall", inqueuecall: "inqueuecall", outboundcall: "outboundcall", securecall: "securecall", voicemail: "voicemail" }, runtimeSequencesSystemPrompts: true, returnValue: { description: "AR_FN_AUDIO_TOAUDIONUMBER_LNG_RV", isArray: false, type: "aud" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_AUDIO_TOAUDIONUMBER_LNG_PRM_DSC_0", identifier: "integerToConvert", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "int" }], examples: [{ input: "ToAudioNumber(1)", output: "AR_FN_AUDIO_TOAUDIONUMBER_LNG_EX_OUT_0", outputFlowCurrentLanguage: "es-US" }, { input: "ToAudioNumber(500)", output: "AR_FN_AUDIO_TOAUDIONUMBER_LNG_EX_OUT_1", outputFlowCurrentLanguage: "en-US" }, { input: "ToAudioNumber(-500)", output: "AR_FN_AUDIO_TOAUDIONUMBER_LNG_EX_OUT_2", outputFlowCurrentLanguage: "en-US" }, { input: "ToAudioNumber(ToInt(NOT_SET))", output: "AR_FN_AUDIO_TOAUDIONUMBER_LNG_EX_OUT_3" }] }, { description: "AR_FN_AUDIO_TOAUDIONUMBER_LNG_LANGUAGECONTEXTENUM_MORE_DSC", identifier: "Audio_ONE ToAudioNumber(Long_ONE,LanguageContextEnum_ONE...)", support: { version: "1.0", resolver: "LanguageUniqueContext" }, supportedFlowTypes: { inboundcall: "inboundcall", inqueuecall: "inqueuecall", outboundcall: "outboundcall", securecall: "securecall", voicemail: "voicemail" }, runtimeSequencesSystemPrompts: true, returnValue: { description: "AR_FN_AUDIO_TOAUDIONUMBER_LNG_LANGUAGECONTEXTENUM_MORE_RV", isArray: false, type: "aud" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_AUDIO_TOAUDIONUMBER_LNG_LANGUAGECONTEXTENUM_MORE_PRM_DSC_0", identifier: "integerToConvert", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "int" }, { allowNotSet: false, allowCustomJson: false, description: "AR_FN_AUDIO_TOAUDIONUMBER_LNG_LANGUAGECONTEXTENUM_MORE_PRM_DSC_1", identifier: "languageContext", isArray: false, helpDisplayIdx: 1, repeatable: true, required: true, type: "lne" }], examples: [{ input: "ToAudioNumber(1, Language.Gender.masculine)", output: "AR_FN_AUDIO_TOAUDIONUMBER_LNG_LANGUAGECONTEXTENUM_MORE_EX_OUT_0", outputFlowCurrentLanguage: "es-US" }, { input: "ToAudioNumber(1, Language.Gender.masculine, Language.Case.article)", output: "AR_FN_AUDIO_TOAUDIONUMBER_LNG_LANGUAGECONTEXTENUM_MORE_EX_OUT_1", outputFlowCurrentLanguage: "es-US" }, { input: "ToAudioNumber(5, Language.Gender.masculine, Language.Case.article)", output: "AR_FN_AUDIO_TOAUDIONUMBER_LNG_LANGUAGECONTEXTENUM_MORE_EX_OUT_2", outputFlowCurrentLanguage: "es-US" }, { input: "ToAudioNumber(1, Language.Gender.feminine)", output: "AR_FN_AUDIO_TOAUDIONUMBER_LNG_LANGUAGECONTEXTENUM_MORE_EX_OUT_3", outputFlowCurrentLanguage: "es-US" }, { input: "ToAudioNumber(1, Language.Gender.feminine, Language.Case.article)", output: "AR_FN_AUDIO_TOAUDIONUMBER_LNG_LANGUAGECONTEXTENUM_MORE_EX_OUT_4", outputFlowCurrentLanguage: "es-US" }, { input: "ToAudioNumber(5, Language.Gender.feminine, Language.Case.article)", output: "AR_FN_AUDIO_TOAUDIONUMBER_LNG_LANGUAGECONTEXTENUM_MORE_EX_OUT_5", outputFlowCurrentLanguage: "es-US" }, { input: "ToAudioNumber(ToInt(NOT_SET), Language.Gender.neuter)", output: "AR_FN_AUDIO_TOAUDIONUMBER_LNG_LANGUAGECONTEXTENUM_MORE_EX_OUT_6", outputFlowCurrentLanguage: "es-US" }] }, { description: "AR_FN_AUDIO_TOAUDIONUMBER_LNG_NUMBERFORMATENUM_DSC", identifier: "Audio_ONE ToAudioNumber(Long_ONE,NumberFormatEnum_ONE)", support: { version: "1.0", resolver: "None" }, supportedFlowTypes: { inboundcall: "inboundcall", inqueuecall: "inqueuecall", outboundcall: "outboundcall", securecall: "securecall", voicemail: "voicemail" }, runtimeSequencesSystemPrompts: true, returnValue: { description: "AR_FN_AUDIO_TOAUDIONUMBER_LNG_NUMBERFORMATENUM_RV", isArray: false, type: "aud" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_AUDIO_TOAUDIONUMBER_LNG_NUMBERFORMATENUM_PRM_DSC_0", identifier: "integerToConvert", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "int" }, { allowNotSet: false, allowCustomJson: false, description: "AR_FN_AUDIO_TOAUDIONUMBER_LNG_NUMBERFORMATENUM_PRM_DSC_1", identifier: "numberAudioFormat", isArray: false, helpDisplayIdx: 1, repeatable: false, required: true, type: "nuf" }], examples: [{ input: "ToAudioNumber(500, Format.Number.playDigits)", output: "AR_FN_AUDIO_TOAUDIONUMBER_LNG_NUMBERFORMATENUM_EX_OUT_0", outputFlowCurrentLanguage: "en-US" }, { input: "ToAudioNumber(-500, Format.Number.playDigits)", output: "AR_FN_AUDIO_TOAUDIONUMBER_LNG_NUMBERFORMATENUM_EX_OUT_1", outputFlowCurrentLanguage: "en-US" }, { input: "ToAudioNumber(ToInt(NOT_SET), Format.Number.playDigits)", output: "AR_FN_AUDIO_TOAUDIONUMBER_LNG_NUMBERFORMATENUM_EX_OUT_2" }] }, { description: "AR_FN_AUDIO_TOAUDIONUMBER_LNG_NUMBERFORMATENUM_LANGUAGECONTEXTENUM_MORE_DSC", identifier: "Audio_ONE ToAudioNumber(Long_ONE,NumberFormatEnum_ONE,LanguageContextEnum_ONE...)", support: { version: "1.0", resolver: "None" }, supportedFlowTypes: { inboundcall: "inboundcall", inqueuecall: "inqueuecall", outboundcall: "outboundcall", securecall: "securecall", voicemail: "voicemail" }, runtimeSequencesSystemPrompts: true, returnValue: { description: "AR_FN_AUDIO_TOAUDIONUMBER_LNG_NUMBERFORMATENUM_LANGUAGECONTEXTENUM_MORE_RV", isArray: false, type: "aud" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_AUDIO_TOAUDIONUMBER_LNG_NUMBERFORMATENUM_LANGUAGECONTEXTENUM_MORE_PRM_DSC_0", identifier: "integerToConvert", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "int" }, { allowNotSet: false, allowCustomJson: false, description: "AR_FN_AUDIO_TOAUDIONUMBER_LNG_NUMBERFORMATENUM_LANGUAGECONTEXTENUM_MORE_PRM_DSC_1", identifier: "numberAudioFormat", isArray: false, helpDisplayIdx: 1, repeatable: false, required: true, type: "nuf" }, { allowNotSet: false, allowCustomJson: false, description: "AR_FN_AUDIO_TOAUDIONUMBER_LNG_NUMBERFORMATENUM_LANGUAGECONTEXTENUM_MORE_PRM_DSC_2", identifier: "languageContext", isArray: false, helpDisplayIdx: 2, repeatable: true, required: true, type: "lne" }], examples: [{ input: "ToAudioNumber(12, Format.Number.playDigits, Language.Gender.masculine)", output: "AR_FN_AUDIO_TOAUDIONUMBER_LNG_NUMBERFORMATENUM_LANGUAGECONTEXTENUM_MORE_EX_OUT_0", outputFlowCurrentLanguage: "es-US" }, { input: "ToAudioNumber(11, Format.Number.playDigits, Language.Gender.masculine, Language.Case.article)", output: "AR_FN_AUDIO_TOAUDIONUMBER_LNG_NUMBERFORMATENUM_LANGUAGECONTEXTENUM_MORE_EX_OUT_1", outputFlowCurrentLanguage: "es-US" }, { input: "ToAudioNumber(55, Format.Number.playDigits, Language.Gender.masculine, Language.Case.article)", output: "AR_FN_AUDIO_TOAUDIONUMBER_LNG_NUMBERFORMATENUM_LANGUAGECONTEXTENUM_MORE_EX_OUT_2", outputFlowCurrentLanguage: "es-US" }, { input: "ToAudioNumber(12, Format.Number.playDigits, Language.Gender.feminine)", output: "AR_FN_AUDIO_TOAUDIONUMBER_LNG_NUMBERFORMATENUM_LANGUAGECONTEXTENUM_MORE_EX_OUT_3", outputFlowCurrentLanguage: "es-US" }, { input: "ToAudioNumber(12, Format.Number.playDigits, Language.Gender.feminine, Language.Case.article)", output: "AR_FN_AUDIO_TOAUDIONUMBER_LNG_NUMBERFORMATENUM_LANGUAGECONTEXTENUM_MORE_EX_OUT_4", outputFlowCurrentLanguage: "es-US" }, { input: "ToAudioNumber(ToInt(NOT_SET), Format.Number.playDigits, Language.Gender.neuter)", output: "AR_FN_AUDIO_TOAUDIONUMBER_LNG_NUMBERFORMATENUM_LANGUAGECONTEXTENUM_MORE_EX_OUT_5", outputFlowCurrentLanguage: "es-US" }] }, { description: "AR_FN_AUDIO_TOAUDIONUMBER_DEC_DSC", identifier: "Audio_ONE ToAudioNumber(Decimal_ONE)", support: { version: "1.0", resolver: "None" }, supportedFlowTypes: { inboundcall: "inboundcall", inqueuecall: "inqueuecall", outboundcall: "outboundcall", securecall: "securecall", voicemail: "voicemail" }, runtimeSequencesSystemPrompts: true, returnValue: { description: "AR_FN_AUDIO_TOAUDIONUMBER_DEC_RV", isArray: false, type: "aud" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_AUDIO_TOAUDIONUMBER_DEC_PRM_DSC_0", identifier: "decimalToConvert", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "dec" }], examples: [{ input: "ToAudioNumber(500.00)", output: "AR_FN_AUDIO_TOAUDIONUMBER_DEC_EX_OUT_0", outputFlowCurrentLanguage: "en-US" }, { input: "ToAudioNumber(-500.00)", output: "AR_FN_AUDIO_TOAUDIONUMBER_DEC_EX_OUT_1", outputFlowCurrentLanguage: "en-US" }, { input: "ToAudioNumber(125.25)", output: "AR_FN_AUDIO_TOAUDIONUMBER_DEC_EX_OUT_2", outputFlowCurrentLanguage: "en-US" }, { input: "ToAudioNumber(ToDecimal(NOT_SET))", output: "AR_FN_AUDIO_TOAUDIONUMBER_DEC_EX_OUT_3" }] }, { description: "AR_FN_AUDIO_TOAUDIONUMBER_DEC_LANGUAGECONTEXTENUM_MORE_DSC", identifier: "Audio_ONE ToAudioNumber(Decimal_ONE,LanguageContextEnum_ONE...)", support: { version: "1.0", resolver: "None" }, supportedFlowTypes: { inboundcall: "inboundcall", inqueuecall: "inqueuecall", outboundcall: "outboundcall", securecall: "securecall", voicemail: "voicemail" }, runtimeSequencesSystemPrompts: true, returnValue: { description: "AR_FN_AUDIO_TOAUDIONUMBER_DEC_LANGUAGECONTEXTENUM_MORE_RV", isArray: false, type: "aud" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_AUDIO_TOAUDIONUMBER_DEC_LANGUAGECONTEXTENUM_MORE_PRM_DSC_0", identifier: "decimalToConvert", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "dec" }, { allowNotSet: false, allowCustomJson: false, description: "AR_FN_AUDIO_TOAUDIONUMBER_DEC_LANGUAGECONTEXTENUM_MORE_PRM_DSC_1", identifier: "languageContext", isArray: false, helpDisplayIdx: 1, repeatable: true, required: true, type: "lne" }], examples: [{ input: "ToAudioNumber(1.4, Language.Gender.feminine)", output: "AR_FN_AUDIO_TOAUDIONUMBER_DEC_LANGUAGECONTEXTENUM_MORE_EX_OUT_0", outputFlowCurrentLanguage: "es-US" }, { input: "ToAudioNumber(1.765, Language.Gender.feminine)", output: "AR_FN_AUDIO_TOAUDIONUMBER_DEC_LANGUAGECONTEXTENUM_MORE_EX_OUT_1", outputFlowCurrentLanguage: "es-US" }, { input: "ToAudioNumber(1.765, Language.Gender.masculine)", output: "AR_FN_AUDIO_TOAUDIONUMBER_DEC_LANGUAGECONTEXTENUM_MORE_EX_OUT_2", outputFlowCurrentLanguage: "es-US" }, { input: "ToAudioNumber(1.765, Language.Gender.masculine, Language.Case.article)", output: "AR_FN_AUDIO_TOAUDIONUMBER_DEC_LANGUAGECONTEXTENUM_MORE_EX_OUT_3", outputFlowCurrentLanguage: "es-US" }, { input: "ToAudioNumber(2.765, Language.Gender.feminine)", output: "AR_FN_AUDIO_TOAUDIONUMBER_DEC_LANGUAGECONTEXTENUM_MORE_EX_OUT_4", outputFlowCurrentLanguage: "es-US" }, { input: "ToAudioNumber(ToDecimal(NOT_SET), Language.Case.article)", output: "AR_FN_AUDIO_TOAUDIONUMBER_DEC_LANGUAGECONTEXTENUM_MORE_EX_OUT_5", outputFlowCurrentLanguage: "es-US" }] }, { description: "AR_FN_AUDIO_TOAUDIONUMBER_DEC_NUMBERFORMATENUM_DSC", identifier: "Audio_ONE ToAudioNumber(Decimal_ONE,NumberFormatEnum_ONE)", support: { version: "1.0", resolver: "None" }, supportedFlowTypes: { inboundcall: "inboundcall", inqueuecall: "inqueuecall", outboundcall: "outboundcall", securecall: "securecall", voicemail: "voicemail" }, runtimeSequencesSystemPrompts: true, returnValue: { description: "AR_FN_AUDIO_TOAUDIONUMBER_DEC_NUMBERFORMATENUM_RV", isArray: false, type: "aud" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_AUDIO_TOAUDIONUMBER_DEC_NUMBERFORMATENUM_PRM_DSC_0", identifier: "decimalToConvert", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "dec" }, { allowNotSet: false, allowCustomJson: false, description: "AR_FN_AUDIO_TOAUDIONUMBER_DEC_NUMBERFORMATENUM_PRM_DSC_1", identifier: "numberAudioFormat", isArray: false, helpDisplayIdx: 1, repeatable: false, required: true, type: "nuf" }], examples: [{ input: "ToAudioNumber(5.5, Format.Number.playDigits)", output: "AR_FN_AUDIO_TOAUDIONUMBER_DEC_NUMBERFORMATENUM_EX_OUT_0", outputFlowCurrentLanguage: "en-US" }, { input: "ToAudioNumber(-500.0, Format.Number.playDigits)", output: "AR_FN_AUDIO_TOAUDIONUMBER_DEC_NUMBERFORMATENUM_EX_OUT_1", outputFlowCurrentLanguage: "en-US" }, { input: "ToAudioNumber(500.0, Format.Number.playDigits)", output: "AR_FN_AUDIO_TOAUDIONUMBER_DEC_NUMBERFORMATENUM_EX_OUT_2", outputFlowCurrentLanguage: "en-US" }, { input: "ToAudioNumber(ToDecimal(NOT_SET), Format.Number.playDigits)", output: "AR_FN_AUDIO_TOAUDIONUMBER_DEC_NUMBERFORMATENUM_EX_OUT_3" }] }, { description: "AR_FN_AUDIO_TOAUDIONUMBER_DEC_NUMBERFORMATENUM_LANGUAGECONTEXTENUM_MORE_DSC", identifier: "Audio_ONE ToAudioNumber(Decimal_ONE,NumberFormatEnum_ONE,LanguageContextEnum_ONE...)", support: { version: "1.0", resolver: "None" }, supportedFlowTypes: { inboundcall: "inboundcall", inqueuecall: "inqueuecall", outboundcall: "outboundcall", securecall: "securecall", voicemail: "voicemail" }, runtimeSequencesSystemPrompts: true, returnValue: { description: "AR_FN_AUDIO_TOAUDIONUMBER_DEC_NUMBERFORMATENUM_LANGUAGECONTEXTENUM_MORE_RV", isArray: false, type: "aud" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_AUDIO_TOAUDIONUMBER_DEC_NUMBERFORMATENUM_LANGUAGECONTEXTENUM_MORE_PRM_DSC_0", identifier: "decimalToConvert", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "dec" }, { allowNotSet: false, allowCustomJson: false, description: "AR_FN_AUDIO_TOAUDIONUMBER_DEC_NUMBERFORMATENUM_LANGUAGECONTEXTENUM_MORE_PRM_DSC_1", identifier: "numberAudioFormat", isArray: false, helpDisplayIdx: 1, repeatable: false, required: true, type: "nuf" }, { allowNotSet: false, allowCustomJson: false, description: "AR_FN_AUDIO_TOAUDIONUMBER_DEC_NUMBERFORMATENUM_LANGUAGECONTEXTENUM_MORE_PRM_DSC_2", identifier: "languageContext", isArray: false, helpDisplayIdx: 2, repeatable: true, required: true, type: "lne" }], examples: [{ input: "ToAudioNumber(100.00, Format.Number.playDigits, Language.Gender.feminine)", output: "AR_FN_AUDIO_TOAUDIONUMBER_DEC_NUMBERFORMATENUM_LANGUAGECONTEXTENUM_MORE_EX_OUT_0", outputFlowCurrentLanguage: "es-US" }, { input: "ToAudioNumber(100.00, Format.Number.playDigits, Language.Gender.masculine)", output: "AR_FN_AUDIO_TOAUDIONUMBER_DEC_NUMBERFORMATENUM_LANGUAGECONTEXTENUM_MORE_EX_OUT_1", outputFlowCurrentLanguage: "es-US" }, { input: "ToAudioNumber(100.00, Format.Number.playDigits, Language.Gender.masculine, Language.Case.article)", output: "AR_FN_AUDIO_TOAUDIONUMBER_DEC_NUMBERFORMATENUM_LANGUAGECONTEXTENUM_MORE_EX_OUT_2", outputFlowCurrentLanguage: "es-US" }, { input: "ToAudioNumber(1.765, Format.Number.playDigits, Language.Gender.feminine)", output: "AR_FN_AUDIO_TOAUDIONUMBER_DEC_NUMBERFORMATENUM_LANGUAGECONTEXTENUM_MORE_EX_OUT_3", outputFlowCurrentLanguage: "es-US" }, { input: "ToAudioNumber(1.765, Format.Number.playDigits, Language.Gender.masculine)", output: "AR_FN_AUDIO_TOAUDIONUMBER_DEC_NUMBERFORMATENUM_LANGUAGECONTEXTENUM_MORE_EX_OUT_4", outputFlowCurrentLanguage: "es-US" }, { input: "ToAudioNumber(2.765, Format.Number.playDigits, Language.Gender.feminine)", output: "AR_FN_AUDIO_TOAUDIONUMBER_DEC_NUMBERFORMATENUM_LANGUAGECONTEXTENUM_MORE_EX_OUT_5", outputFlowCurrentLanguage: "es-US" }, { input: "ToAudioNumber(ToDecimal(NOT_SET), Format.Number.playDigits, Language.Case.article)", output: "AR_FN_AUDIO_TOAUDIONUMBER_DEC_NUMBERFORMATENUM_LANGUAGECONTEXTENUM_MORE_EX_OUT_6", outputFlowCurrentLanguage: "es-US" }] }, { description: "AR_FN_AUDIO_TOAUDIONUMBER_DEC_LNG_DSC", identifier: "Audio_ONE ToAudioNumber(Decimal_ONE,Long_ONE)", support: { version: "1.0", resolver: "None" }, supportedFlowTypes: { inboundcall: "inboundcall", inqueuecall: "inqueuecall", outboundcall: "outboundcall", securecall: "securecall", voicemail: "voicemail" }, runtimeSequencesSystemPrompts: true, returnValue: { description: "AR_FN_AUDIO_TOAUDIONUMBER_DEC_LNG_RV", isArray: false, type: "aud" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_AUDIO_TOAUDIONUMBER_DEC_LNG_PRM_DSC_0", identifier: "decimalToConvert", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "dec" }, { allowNotSet: false, allowCustomJson: false, description: "AR_FN_AUDIO_TOAUDIONUMBER_DEC_LNG_PRM_DSC_1", identifier: "numberOfDecimalPlaces", isArray: false, helpDisplayIdx: 1, repeatable: false, required: true, type: "int", isDecimalPlaces: true }], examples: [{ input: "ToAudioNumber(123.127, 2)", output: "AR_FN_AUDIO_TOAUDIONUMBER_DEC_LNG_EX_OUT_0", outputFlowCurrentLanguage: "en-US" }, { input: "ToAudioNumber(-123.12, 4)", output: "AR_FN_AUDIO_TOAUDIONUMBER_DEC_LNG_EX_OUT_1", outputFlowCurrentLanguage: "en-US" }, { input: "ToAudioNumber(0.234859, 3)", output: "AR_FN_AUDIO_TOAUDIONUMBER_DEC_LNG_EX_OUT_2", outputFlowCurrentLanguage: "en-US" }, { input: "ToAudioNumber(ToDecimal(NOT_SET), 3)", output: "AR_FN_AUDIO_TOAUDIONUMBER_DEC_LNG_EX_OUT_3" }] }, { description: "AR_FN_AUDIO_TOAUDIONUMBER_DEC_LNG_LANGUAGECONTEXTENUM_MORE_DSC", identifier: "Audio_ONE ToAudioNumber(Decimal_ONE,Long_ONE,LanguageContextEnum_ONE...)", support: { version: "1.0", resolver: "None" }, supportedFlowTypes: { inboundcall: "inboundcall", inqueuecall: "inqueuecall", outboundcall: "outboundcall", securecall: "securecall", voicemail: "voicemail" }, runtimeSequencesSystemPrompts: true, returnValue: { description: "AR_FN_AUDIO_TOAUDIONUMBER_DEC_LNG_LANGUAGECONTEXTENUM_MORE_RV", isArray: false, type: "aud" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_AUDIO_TOAUDIONUMBER_DEC_LNG_LANGUAGECONTEXTENUM_MORE_PRM_DSC_0", identifier: "decimalToConvert", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "dec" }, { allowNotSet: false, allowCustomJson: false, description: "AR_FN_AUDIO_TOAUDIONUMBER_DEC_LNG_LANGUAGECONTEXTENUM_MORE_PRM_DSC_1", identifier: "numberOfDecimalPlaces", isArray: false, helpDisplayIdx: 1, repeatable: false, required: true, type: "int", isDecimalPlaces: true }, { allowNotSet: false, allowCustomJson: false, description: "AR_FN_AUDIO_TOAUDIONUMBER_DEC_LNG_LANGUAGECONTEXTENUM_MORE_PRM_DSC_2", identifier: "languageContext", isArray: false, helpDisplayIdx: 2, repeatable: true, required: true, type: "lne" }], examples: [{ input: "ToAudioNumber(1.127, 2, Language.Gender.feminine)", output: "AR_FN_AUDIO_TOAUDIONUMBER_DEC_LNG_LANGUAGECONTEXTENUM_MORE_EX_OUT_0", outputFlowCurrentLanguage: "es-US" }, { input: "ToAudioNumber(1.127, 2, Language.Gender.masculine)", output: "AR_FN_AUDIO_TOAUDIONUMBER_DEC_LNG_LANGUAGECONTEXTENUM_MORE_EX_OUT_1", outputFlowCurrentLanguage: "es-US" }, { input: "ToAudioNumber(ToDecimal(NOT_SET), 3, Language.Gender.neuter)", output: "AR_FN_AUDIO_TOAUDIONUMBER_DEC_LNG_LANGUAGECONTEXTENUM_MORE_EX_OUT_2", outputFlowCurrentLanguage: "es-US" }] }, { description: "AR_FN_AUDIO_TOAUDIONUMBER_DEC_NUMBERFORMATENUM_LNG_DSC", identifier: "Audio_ONE ToAudioNumber(Decimal_ONE,NumberFormatEnum_ONE,Long_ONE)", support: { version: "1.0", resolver: "None" }, supportedFlowTypes: { inboundcall: "inboundcall", inqueuecall: "inqueuecall", outboundcall: "outboundcall", securecall: "securecall", voicemail: "voicemail" }, runtimeSequencesSystemPrompts: true, returnValue: { description: "AR_FN_AUDIO_TOAUDIONUMBER_DEC_NUMBERFORMATENUM_LNG_RV", isArray: false, type: "aud" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_AUDIO_TOAUDIONUMBER_DEC_NUMBERFORMATENUM_LNG_PRM_DSC_0", identifier: "decimalToConvert", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "dec" }, { allowNotSet: false, allowCustomJson: false, description: "AR_FN_AUDIO_TOAUDIONUMBER_DEC_NUMBERFORMATENUM_LNG_PRM_DSC_1", identifier: "numberAudioFormat", isArray: false, helpDisplayIdx: 1, repeatable: false, required: true, type: "nuf" }, { allowNotSet: false, allowCustomJson: false, description: "AR_FN_AUDIO_TOAUDIONUMBER_DEC_NUMBERFORMATENUM_LNG_PRM_DSC_2", identifier: "numberOfDecimalPlaces", isArray: false, helpDisplayIdx: 2, repeatable: false, required: true, type: "int", isDecimalPlaces: true }], examples: [{ input: "ToAudioNumber(123.1234, Format.Number.playDigits, 3)", output: "AR_FN_AUDIO_TOAUDIONUMBER_DEC_NUMBERFORMATENUM_LNG_EX_OUT_0", outputFlowCurrentLanguage: "en-US" }, { input: "ToAudioNumber(ToDecimal(NOT_SET), Format.Number.playDigits, 3)", output: "AR_FN_AUDIO_TOAUDIONUMBER_DEC_NUMBERFORMATENUM_LNG_EX_OUT_1" }] }, { description: "AR_FN_AUDIO_TOAUDIONUMBER_DEC_NUMBERFORMATENUM_LNG_LANGUAGECONTEXTENUM_MORE_DSC", identifier: "Audio_ONE ToAudioNumber(Decimal_ONE,NumberFormatEnum_ONE,Long_ONE,LanguageContextEnum_ONE...)", support: { version: "1.0", resolver: "None" }, supportedFlowTypes: { inboundcall: "inboundcall", inqueuecall: "inqueuecall", outboundcall: "outboundcall", securecall: "securecall", voicemail: "voicemail" }, runtimeSequencesSystemPrompts: true, returnValue: { description: "AR_FN_AUDIO_TOAUDIONUMBER_DEC_NUMBERFORMATENUM_LNG_LANGUAGECONTEXTENUM_MORE_RV", isArray: false, type: "aud" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_AUDIO_TOAUDIONUMBER_DEC_NUMBERFORMATENUM_LNG_LANGUAGECONTEXTENUM_MORE_PRM_DSC_0", identifier: "decimalToConvert", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "dec" }, { allowNotSet: false, allowCustomJson: false, description: "AR_FN_AUDIO_TOAUDIONUMBER_DEC_NUMBERFORMATENUM_LNG_LANGUAGECONTEXTENUM_MORE_PRM_DSC_1", identifier: "numberAudioFormat", isArray: false, helpDisplayIdx: 1, repeatable: false, required: true, type: "nuf" }, { allowNotSet: false, allowCustomJson: false, description: "AR_FN_AUDIO_TOAUDIONUMBER_DEC_NUMBERFORMATENUM_LNG_LANGUAGECONTEXTENUM_MORE_PRM_DSC_2", identifier: "numberOfDecimalPlaces", isArray: false, helpDisplayIdx: 2, repeatable: false, required: true, type: "int", isDecimalPlaces: true }, { allowNotSet: false, allowCustomJson: false, description: "AR_FN_AUDIO_TOAUDIONUMBER_DEC_NUMBERFORMATENUM_LNG_LANGUAGECONTEXTENUM_MORE_PRM_DSC_3", identifier: "languageContext", isArray: false, helpDisplayIdx: 3, repeatable: true, required: true, type: "lne" }], examples: [{ input: "ToAudioNumber(1.1234, Format.Number.playDigits, 3, Language.Gender.masculine)", output: "AR_FN_AUDIO_TOAUDIONUMBER_DEC_NUMBERFORMATENUM_LNG_LANGUAGECONTEXTENUM_MORE_EX_OUT_0", outputFlowCurrentLanguage: "es-US" }, { input: "ToAudioNumber(1.1234, Format.Number.playDigits, 3, Language.Gender.feminine)", output: "AR_FN_AUDIO_TOAUDIONUMBER_DEC_NUMBERFORMATENUM_LNG_LANGUAGECONTEXTENUM_MORE_EX_OUT_1", outputFlowCurrentLanguage: "es-US" }, { input: "ToAudioNumber(ToDecimal(NOT_SET), Format.Number.playDigits, 3, Language.Case.article)", output: "AR_FN_AUDIO_TOAUDIONUMBER_DEC_NUMBERFORMATENUM_LNG_LANGUAGECONTEXTENUM_MORE_EX_OUT_2", outputFlowCurrentLanguage: "es-US" }] }] }, toAudioNumberOrdinal: { identifier: "toAudioNumberOrdinal", description: "AR_FN_DSC_TOAUDIONUMBERORDINAL", type: "function", runtimeSequencesSystemPrompts: true, name: "ToAudioNumberOrdinal", category: "cast", overloads: [{ description: "AR_FN_AUDIO_TOAUDIONUMBERORDINAL_LNG_DSC", identifier: "Audio_ONE ToAudioNumberOrdinal(Long_ONE)", support: { version: "1.0", resolver: "None" }, disallowAsDefaultCast: true, runtimeSequencesSystemPrompts: true, needsServerInfo: true, returnValue: { description: "AR_FN_AUDIO_TOAUDIONUMBERORDINAL_LNG_RV", isArray: false, type: "aud" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_AUDIO_TOAUDIONUMBERORDINAL_LNG_PRM_DSC_0", identifier: "integerToConvert", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "int" }], examples: [{ input: "ToAudioNumberOrdinal(1)", output: "AR_FN_AUDIO_TOAUDIONUMBERORDINAL_LNG_EX_OUT_0", outputFlowCurrentLanguage: "en-US" }, { input: "ToAudioNumberOrdinal(201)", output: "AR_FN_AUDIO_TOAUDIONUMBERORDINAL_LNG_EX_OUT_1", outputFlowCurrentLanguage: "en-US" }, { input: "ToAudioNumberOrdinal(500)", output: "AR_FN_AUDIO_TOAUDIONUMBERORDINAL_LNG_EX_OUT_2", outputFlowCurrentLanguage: "en-US" }, { input: "ToAudioNumberOrdinal(5000)", output: "AR_FN_AUDIO_TOAUDIONUMBERORDINAL_LNG_EX_OUT_3", outputFlowCurrentLanguage: "en-US" }, { input: "ToAudioNumberOrdinal(-500)", output: "AR_FN_AUDIO_TOAUDIONUMBERORDINAL_LNG_EX_OUT_4", outputFlowCurrentLanguage: "en-US" }, { input: "ToAudioNumberOrdinal(ToInt(NOT_SET))", output: "AR_FN_AUDIO_TOAUDIONUMBERORDINAL_LNG_EX_OUT_5" }] }, { description: "AR_FN_AUDIO_TOAUDIONUMBERORDINAL_LNG_LANGUAGECONTEXTENUM_MORE_DSC", identifier: "Audio_ONE ToAudioNumberOrdinal(Long_ONE,LanguageContextEnum_ONE...)", support: { version: "1.0", resolver: "LanguageUniqueContext" }, runtimeSequencesSystemPrompts: true, needsServerInfo: true, returnValue: { description: "AR_FN_AUDIO_TOAUDIONUMBERORDINAL_LNG_LANGUAGECONTEXTENUM_MORE_RV", isArray: false, type: "aud" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_AUDIO_TOAUDIONUMBERORDINAL_LNG_LANGUAGECONTEXTENUM_MORE_PRM_DSC_0", identifier: "integerToConvert", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "int" }, { allowNotSet: false, allowCustomJson: false, description: "AR_FN_AUDIO_TOAUDIONUMBERORDINAL_LNG_LANGUAGECONTEXTENUM_MORE_PRM_DSC_1", identifier: "languageContext", isArray: false, helpDisplayIdx: 1, repeatable: true, required: true, type: "lne" }], examples: [{ input: "ToAudioNumberOrdinal(1, Language.Gender.masculine)", output: "AR_FN_AUDIO_TOAUDIONUMBERORDINAL_LNG_LANGUAGECONTEXTENUM_MORE_EX_OUT_0", outputFlowCurrentLanguage: "fr-FR" }, { input: "ToAudioNumberOrdinal(1, Language.Gender.feminine)", output: "AR_FN_AUDIO_TOAUDIONUMBERORDINAL_LNG_LANGUAGECONTEXTENUM_MORE_EX_OUT_1", outputFlowCurrentLanguage: "fr-FR" }, { input: "ToAudioNumberOrdinal(1, Language.Gender.neuter)", output: "AR_FN_AUDIO_TOAUDIONUMBERORDINAL_LNG_LANGUAGECONTEXTENUM_MORE_EX_OUT_2", outputFlowCurrentLanguage: "da-DK" }, { input: "ToAudioNumberOrdinal(-1, Language.Gender.masculine)", output: "AR_FN_AUDIO_TOAUDIONUMBERORDINAL_LNG_LANGUAGECONTEXTENUM_MORE_EX_OUT_3", outputFlowCurrentLanguage: "fr-FR" }, { input: "ToAudioNumberOrdinal(ToInt(NOT_SET), Language.Gender.neuter)", output: "AR_FN_AUDIO_TOAUDIONUMBERORDINAL_LNG_LANGUAGECONTEXTENUM_MORE_EX_OUT_4", outputFlowCurrentLanguage: "da-DK" }] }], needsServerInfo: true }, toVoicemailSnippet: { identifier: "toVoicemailSnippet", description: "AR_FN_DSC_TOVOICEMAILSNIPPET", type: "function", name: "ToVoicemailSnippet", category: "cast", overloads: [{ description: "AR_FN_VOICEMAILSNIPPET_TOVOICEMAILSNIPPET_NTS_DSC", identifier: "VoicemailSnippet_ONE toVoicemailSnippet(Null_ONE)", support: { version: "1.0", resolver: "NotSetToRetType" }, needsServerInfo: true, returnValue: { description: "AR_FN_VOICEMAILSNIPPET_TOVOICEMAILSNIPPET_NTS_RV", isArray: false, type: "cpx_voicemail_snippet" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_VOICEMAILSNIPPET_TOVOICEMAILSNIPPET_NTS_PRM_DSC_0", identifier: "valueToConvert", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "nts" }], examples: [{ input: "ToVoicemailSnippet(NOT_SET)", output: "AR_FN_VOICEMAILSNIPPET_TOVOICEMAILSNIPPET_NTS_EX_OUT_0" }] }, { description: "AR_FN_VOICEMAILSNIPPET_TOVOICEMAILSNIPPET_VOICEMAILSNIPPET_DSC", identifier: "VoicemailSnippet_ONE toVoicemailSnippet(VoicemailSnippet_ONE)", support: { version: "1.0", resolver: "None" }, needsServerInfo: true, returnValue: { description: "AR_FN_VOICEMAILSNIPPET_TOVOICEMAILSNIPPET_VOICEMAILSNIPPET_RV", isArray: false, type: "cpx_voicemail_snippet" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_FN_VOICEMAILSNIPPET_TOVOICEMAILSNIPPET_VOICEMAILSNIPPET_PRM_DSC_0", identifier: "valueToReturn", isArray: false, helpDisplayIdx: 0, repeatable: false, required: true, type: "cpx_voicemail_snippet" }], examples: [{ input: "ToVoicemailSnippet(Voicemail.VoicemailSnippet)", output: "AR_FN_VOICEMAILSNIPPET_TOVOICEMAILSNIPPET_VOICEMAILSNIPPET_EX_OUT_0" }] }], needsServerInfo: true }, toVoiceSnippet: { identifier: "toVoiceSnippet", description: "AR_FN_DSC_TOVOICESNIPPET", type: "function", name: "ToVoiceSnippet", category: "cast", overloads: [{ description: "AR_FN_VOICESNIPPET_TOVOICESNIPPET_NTS_DSC", identifier: "VoiceSnippet_ONE toVoiceSnippet(Null_ONE)", support: { version: "1.0", resolver: "NotSetToRetType" }, needsServerInfo: true, returnValue: { description: "AR_FN_VOICESNIPPET_TOVOICESNIPPET_NTS_RV", isArray: false, type: "cpx_voice_snippet" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_VOICESNIPPET_TOVOICESNIPPET_NTS_PRM_DSC_0", identifier: "valueToConvert", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "nts" }], examples: [{ input: "ToVoiceSnippet(NOT_SET)", output: "AR_FN_VOICESNIPPET_TOVOICESNIPPET_NTS_EX_OUT_0" }] }, { description: "AR_FN_VOICESNIPPET_TOVOICESNIPPET_VOICESNIPPET_DSC", identifier: "VoiceSnippet_ONE toVoiceSnippet(VoiceSnippet_ONE)", support: { version: "1.0", resolver: "None" }, needsServerInfo: true, returnValue: { description: "AR_FN_VOICESNIPPET_TOVOICESNIPPET_VOICESNIPPET_RV", isArray: false, type: "cpx_voice_snippet" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_FN_VOICESNIPPET_TOVOICESNIPPET_VOICESNIPPET_PRM_DSC_0", identifier: "valueToReturn", isArray: false, helpDisplayIdx: 0, repeatable: false, required: true, type: "cpx_voice_snippet" }], examples: [{ input: "ToVoiceSnippet(ToVoiceSnippet(NOT_SET))", output: "AR_FN_VOICESNIPPET_TOVOICESNIPPET_VOICESNIPPET_EX_OUT_0" }] }], needsServerInfo: true }, getDefaultLanguage: { identifier: "getDefaultLanguage", description: "AR_FN_DSC_GETDEFAULTLANGUAGE", type: "function", name: "GetDefaultLanguage", category: "language", overloads: [{ description: "AR_FN_STR_GETDEFAULTSUPPORTEDLANGUAGE_DSC", identifier: "String_ONE getDefaultSupportedLanguage()", support: { version: "1.0", resolver: "None" }, hidden: true, returnValue: { description: "AR_FN_STR_GETDEFAULTSUPPORTEDLANGUAGE_RV", isArray: false, type: "str" }, parameters: [] }] }, getSupportedLanguages: { identifier: "getSupportedLanguages", description: "AR_FN_DSC_GETSUPPORTEDLANGUAGES", type: "function", name: "GetSupportedLanguages", category: "language", overloads: [{ description: "AR_FN_STR_COLL_GETSUPPORTEDLANGUAGES_DSC", identifier: "String_COLL getSupportedLanguages()", support: { version: "1.0", resolver: "None" }, hidden: true, returnValue: { description: "AR_FN_STR_COLL_GETSUPPORTEDLANGUAGES_RV", isArray: true, type: "str" }, parameters: [] }] }, getCurrentDateTimeUtc: { identifier: "getCurrentDateTimeUtc", description: "AR_FN_DSC_GETCURRENTDATETIMEUTC", type: "function", name: "GetCurrentDateTimeUtc", category: "datetime", overloads: [{ description: "AR_FN_DTM_GETCURRENTDATETIMEUTC_DSC", identifier: "DateTime_ONE getCurrentDateTimeUtc()", support: { version: "1.0", resolver: "None" }, returnValue: { description: "AR_FN_DTM_GETCURRENTDATETIMEUTC_RV", isArray: false, type: "dtm" }, parameters: [], examples: [{ input: "GetCurrentDateTimeUtc()", output: "AR_FN_DTM_GETCURRENTDATETIMEUTC_EX_OUT_0" }] }] }, getDeflectionUrl: { identifier: "getDeflectionUrl", description: "AR_FN_DSC_GETDEFLECTIONURL", type: "function", name: "GetDeflectionUrl", category: "text", overloads: [{ description: "AR_FN_STR_GETDEFLECTIONURL_STR_STR_DSC", identifier: "String_ONE getDeflectionUrl(String_ONE,String_ONE)", support: { version: "1.0", resolver: "None" }, supportedFlowTypes: { inboundcall: "inboundcall", inqueuecall: "inqueuecall", commonmodule: "commonmodule" }, needsServerInfo: true, returnValue: { description: "AR_FN_STR_GETDEFLECTIONURL_STR_STR_RV", isArray: false, type: "str" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_FN_STR_GETDEFLECTIONURL_STR_STR_PRM_DSC_0", identifier: "service", isArray: false, helpDisplayIdx: 0, repeatable: false, required: true, type: "str", literalValidatorName: "SupportedDigitalChannels" }, { allowNotSet: false, allowCustomJson: false, description: "AR_FN_STR_GETDEFLECTIONURL_STR_STR_PRM_DSC_1", identifier: "accountId", isArray: false, helpDisplayIdx: 1, repeatable: false, required: true, type: "str", minLength: "1" }], examples: [{ input: 'GetDeflectionUrl("facebook", "genesys")', output: "AR_FN_STR_GETDEFLECTIONURL_STR_STR_EX_OUT_0" }] }], needsServerInfo: true }, getSurveyQuestionAnswer: { identifier: "getSurveyQuestionAnswer", description: "AR_FN_DSC_GETSURVEYQUESTIONANSWER", type: "function", name: "GetSurveyQuestionAnswer", category: "survey", overloads: [{ description: "AR_FN_STR_GETSURVEYQUESTIONANSWER_SURVEYQUESTION_DSC", identifier: "String_ONE getSurveyQuestionAnswer(SurveyQuestion_ONE)", support: { version: "1.0", resolver: "None" }, needsServerInfo: true, returnValue: { description: "AR_FN_STR_GETSURVEYQUESTIONANSWER_SURVEYQUESTION_RV", isArray: false, type: "str" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_STR_GETSURVEYQUESTIONANSWER_SURVEYQUESTION_PRM_DSC_0", identifier: "surveyQuestion", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "squ" }], examples: [{ input: "getSurveyQuestionAnswer(Form.Group1_Question1)", output: "AR_FN_STR_GETSURVEYQUESTIONANSWER_SURVEYQUESTION_EX_OUT_0" }, { input: "getSurveyQuestionAnswer(NOT_SET)", output: "AR_FN_STR_GETSURVEYQUESTIONANSWER_SURVEYQUESTION_EX_OUT_1" }] }, { description: "AR_FN_STR_GETSURVEYQUESTIONANSWER_SURVEYQUESTION_BLN_DSC", identifier: "String_ONE getSurveyQuestionAnswer(SurveyQuestion_ONE,Boolean_ONE)", support: { version: "1.0", resolver: "None" }, needsServerInfo: true, returnValue: { description: "AR_FN_STR_GETSURVEYQUESTIONANSWER_SURVEYQUESTION_BLN_RV", isArray: false, type: "str" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_STR_GETSURVEYQUESTIONANSWER_SURVEYQUESTION_BLN_PRM_DSC_0", identifier: "surveyQuestion", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "squ" }, { allowNotSet: true, allowCustomJson: false, description: "AR_FN_STR_GETSURVEYQUESTIONANSWER_SURVEYQUESTION_BLN_PRM_DSC_1", identifier: "isForFollowUp", isArray: false, helpDisplayIdx: 1, repeatable: false, required: false, type: "bln" }], examples: [{ input: "getSurveyQuestionAnswer(Form.Group1_Question1, true)", output: "AR_FN_STR_GETSURVEYQUESTIONANSWER_SURVEYQUESTION_BLN_EX_OUT_0" }, { input: "getSurveyQuestionAnswer(Form.Group1_Question1, false)", output: "AR_FN_STR_GETSURVEYQUESTIONANSWER_SURVEYQUESTION_BLN_EX_OUT_1" }, { input: "getSurveyQuestionAnswer(NOT_SET, true)", output: "AR_FN_STR_GETSURVEYQUESTIONANSWER_SURVEYQUESTION_BLN_EX_OUT_2" }, { input: "getSurveyQuestionAnswer(Form.Group1_Question1, NOT_SET)", output: "AR_FN_STR_GETSURVEYQUESTIONANSWER_SURVEYQUESTION_BLN_EX_OUT_3" }] }], needsServerInfo: true }, getSurveyQuestionIsAnswered: { identifier: "getSurveyQuestionIsAnswered", description: "AR_FN_DSC_GETSURVEYQUESTIONISANSWERED", type: "function", name: "GetSurveyQuestionIsAnswered", category: "survey", overloads: [{ description: "AR_FN_BLN_GETSURVEYQUESTIONISANSWERED_SURVEYQUESTION_DSC", identifier: "Boolean_ONE getSurveyQuestionIsAnswered(SurveyQuestion_ONE)", support: { version: "1.0", resolver: "None" }, needsServerInfo: true, returnValue: { description: "AR_FN_BLN_GETSURVEYQUESTIONISANSWERED_SURVEYQUESTION_RV", isArray: false, type: "bln" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_BLN_GETSURVEYQUESTIONISANSWERED_SURVEYQUESTION_PRM_DSC_0", identifier: "surveyQuestion", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "squ" }], examples: [{ input: "getSurveyQuestionIsAnswered(Form.Group1_Question1)", output: "AR_FN_BLN_GETSURVEYQUESTIONISANSWERED_SURVEYQUESTION_EX_OUT_0" }, { input: "getSurveyQuestionIsAnswered(NOT_SET)", output: "false" }] }], needsServerInfo: true }, getSurveyQuestionNpsCategory: { identifier: "getSurveyQuestionNpsCategory", description: "AR_FN_DSC_GETSURVEYQUESTIONNPSCATEGORY", type: "function", name: "GetSurveyQuestionNpsCategory", category: "survey", overloads: [{ description: "AR_FN_STR_GETSURVEYQUESTIONNPSCATEGORY_SURVEYQUESTION_DSC", identifier: "String_ONE getSurveyQuestionNpsCategory(SurveyQuestion_ONE)", support: { version: "1.0", resolver: "None" }, needsServerInfo: true, returnValue: { description: "AR_FN_STR_GETSURVEYQUESTIONNPSCATEGORY_SURVEYQUESTION_RV", isArray: false, type: "str" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_STR_GETSURVEYQUESTIONNPSCATEGORY_SURVEYQUESTION_PRM_DSC_0", identifier: "surveyQuestion", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "squ" }], examples: [{ input: "getSurveyQuestionNpsCategory(Form.Group1_Question1)", output: "AR_FN_STR_GETSURVEYQUESTIONNPSCATEGORY_SURVEYQUESTION_EX_OUT_0" }, { input: "getSurveyQuestionNpsCategory(NOT_SET)", output: "AR_FN_STR_GETSURVEYQUESTIONNPSCATEGORY_SURVEYQUESTION_EX_OUT_1" }] }], needsServerInfo: true }, random: { identifier: "random", description: "AR_FN_DSC_RANDOM", type: "function", name: "Random", category: "mathematical", overloads: [{ description: "AR_FN_DEC_RANDOM_DSC", identifier: "Decimal_ONE random()", support: { version: "1.0", resolver: "None" }, needsServerInfo: true, returnValue: { description: "AR_FN_DEC_RANDOM_RV", isArray: false, type: "dec" }, parameters: [], examples: [{ input: "random()", output: "0.1307734" }] }], needsServerInfo: true }, randomInt: { identifier: "randomInt", description: "AR_FN_DSC_RANDOMINT", type: "function", name: "RandomInt", category: "mathematical", overloads: [{ description: "AR_FN_LNG_RANDOMINT_LNG_DSC", identifier: "Long_ONE randomInt(Long_ONE)", support: { version: "1.0", resolver: "None" }, needsServerInfo: true, returnValue: { description: "AR_FN_LNG_RANDOMINT_LNG_RV", isArray: false, type: "int" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_FN_LNG_RANDOMINT_LNG_PRM_DSC_0", identifier: "limit", isArray: false, helpDisplayIdx: 0, repeatable: false, required: true, type: "int" }], examples: [{ input: "randomInt(3)", output: "1" }, { input: "randomInt(3)", output: "3" }, { input: "randomInt(-5)", output: "-4" }, { input: "randomInt(0)", output: "0" }, { input: "randomInt(100)", output: "AR_FN_LNG_RANDOMINT_LNG_EX_OUT_4" }, { input: "randomInt(99) + 1", output: "AR_FN_LNG_RANDOMINT_LNG_EX_OUT_5" }] }], needsServerInfo: true }, roundUp: { identifier: "roundUp", description: "AR_FN_DSC_ROUNDUP", type: "function", name: "RoundUp", category: "datetime", overloads: [{ description: "AR_FN_DUR_ROUNDUP_DUR_DSC", identifier: "Duration_ONE RoundUp(Duration_ONE)", support: { version: "1.0", resolver: "None" }, returnValue: { description: "AR_FN_DUR_ROUNDUP_DUR_RV", isArray: false, type: "dur" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_FN_DUR_ROUNDUP_DUR_PRM_DSC_0", identifier: "durationToRound", isArray: false, helpDisplayIdx: 0, repeatable: false, required: true, type: "dur" }], examples: [{ input: "RoundUp(MakeDuration(0, 0, 2, 35, 0))", output: "AR_FN_DUR_ROUNDUP_DUR_EX_OUT_0" }, { input: "RoundUp(MakeDuration(0, 0, 0, 37, 0))", output: "AR_FN_DUR_ROUNDUP_DUR_EX_OUT_1" }, { input: "RoundUp(MakeDuration(0, 0, 5, 0, 0))", output: "AR_FN_DUR_ROUNDUP_DUR_EX_OUT_2" }, { input: "RoundUp(MakeDuration(0, 0, 22, 30, 0))", output: "AR_FN_DUR_ROUNDUP_DUR_EX_OUT_3" }, { input: "RoundUp(MakeDuration(0, 1, 22, 30, 0))", output: "AR_FN_DUR_ROUNDUP_DUR_EX_OUT_4" }] }, { description: "AR_FN_DUR_ROUNDUP_DUR_DUR_DSC", identifier: "Duration_ONE RoundUp(Duration_ONE,Duration_ONE)", support: { version: "1.0", resolver: "None" }, returnValue: { description: "AR_FN_DUR_ROUNDUP_DUR_DUR_RV", isArray: false, type: "dur" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_FN_DUR_ROUNDUP_DUR_DUR_PRM_DSC_0", identifier: "durationToRound", isArray: false, helpDisplayIdx: 0, repeatable: false, required: true, type: "dur" }, { allowNotSet: false, allowCustomJson: false, description: "AR_FN_DUR_ROUNDUP_DUR_DUR_PRM_DSC_1", identifier: "intervalDurationValue", isArray: false, helpDisplayIdx: 1, repeatable: false, required: true, type: "dur" }], examples: [{ input: "RoundUp(MakeDuration(0, 0, 2, 35, 0), MakeDuration(0, 0, 3, 0, 0))", output: "AR_FN_DUR_ROUNDUP_DUR_DUR_EX_OUT_0" }, { input: "RoundUp(MakeDuration(0, 0, 5, 0, 0), MakeDuration(0, 0, 5, 0, 0))", output: "AR_FN_DUR_ROUNDUP_DUR_DUR_EX_OUT_1" }] }, { description: "AR_FN_DUR_ROUNDUP_DUR_DUR_DUR_COLL_DSC", identifier: "Duration_ONE RoundUp(Duration_ONE,Duration_ONE,Duration_COLL)", support: { version: "1.0", resolver: "None" }, returnValue: { description: "AR_FN_DUR_ROUNDUP_DUR_DUR_DUR_COLL_RV", isArray: false, type: "dur" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_FN_DUR_ROUNDUP_DUR_DUR_DUR_COLL_PRM_DSC_0", identifier: "durationToRound", isArray: false, helpDisplayIdx: 0, repeatable: false, required: true, type: "dur" }, { allowNotSet: false, allowCustomJson: false, description: "AR_FN_DUR_ROUNDUP_DUR_DUR_DUR_COLL_PRM_DSC_1", identifier: "intervalDurationValue", isArray: false, helpDisplayIdx: 1, repeatable: false, required: true, type: "dur" }, { allowNotSet: false, allowCustomJson: false, description: "AR_FN_DUR_ROUNDUP_DUR_DUR_DUR_COLL_PRM_DSC_2", identifier: "specificDurationValues", isArray: true, helpDisplayIdx: 2, repeatable: false, required: true, type: "dur" }], examples: [{ input: "RoundUp(MakeDuration(0, 0, 2, 35, 0), MakeDuration(0, 0, 5, 0, 0), MakeList(MakeDuration(0, 0, 1, 0, 0), MakeDuration(0, 0, 2, 30, 0), MakeDuration(0, 0, 4, 0, 0)))", output: "AR_FN_DUR_ROUNDUP_DUR_DUR_DUR_COLL_EX_OUT_0" }, { input: "RoundUp(MakeDuration(0, 0, 22, 35, 0), MakeDuration(0, 0, 5, 0, 0), MakeList(MakeDuration(0, 0, 1, 0, 0), MakeDuration(0, 0, 2, 30, 0), MakeDuration(0, 0, 15, 0, 0)))", output: "AR_FN_DUR_ROUNDUP_DUR_DUR_DUR_COLL_EX_OUT_1" }] }] }, range: { identifier: "range", description: "AR_FN_DSC_RANGE", type: "function", name: "Range", category: "datetime", overloads: [{ description: "AR_FN_DUR_COLL_RANGE_DUR_DUR_DSC", identifier: "Duration_COLL Range(Duration_ONE,Duration_ONE)", support: { version: "1.0", resolver: "None" }, returnValue: { description: "AR_FN_DUR_COLL_RANGE_DUR_DUR_RV", isArray: true, type: "dur" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_FN_DUR_COLL_RANGE_DUR_DUR_PRM_DSC_0", identifier: "durationToRound", isArray: false, helpDisplayIdx: 0, repeatable: false, required: true, type: "dur" }, { allowNotSet: false, allowCustomJson: false, description: "AR_FN_DUR_COLL_RANGE_DUR_DUR_PRM_DSC_1", identifier: "intervalDuration", isArray: false, helpDisplayIdx: 1, repeatable: false, required: true, type: "dur" }], examples: [{ input: "Range(MakeDuration(0, 5, 0, 0, 0), MakeDuration(0, 2, 0, 0, 0))", output: "AR_FN_DUR_COLL_RANGE_DUR_DUR_EX_OUT_0" }] }] }, toAudioTimeRange: { identifier: "toAudioTimeRange", description: "AR_FN_DSC_TOAUDIOTIMERANGE", type: "function", runtimeSequencesSystemPrompts: true, name: "ToAudioTimeRange", category: "cast", overloads: [{ description: "AR_FN_AUDIO_TOAUDIOTIMERANGE_LNG_LNG_TIMEPARTENUMDATATYPE_DSC", identifier: "Audio_ONE ToAudioTimeRange(Long_ONE,Long_ONE,TimePartEnumDataType_ONE)", support: { version: "1.0", resolver: "None" }, supportedFlowTypes: { inboundcall: "inboundcall", inqueuecall: "inqueuecall", outboundcall: "outboundcall", securecall: "securecall", voicemail: "voicemail" }, runtimeSequencesSystemPrompts: true, needsServerInfo: true, returnValue: { description: "AR_FN_AUDIO_TOAUDIOTIMERANGE_LNG_LNG_TIMEPARTENUMDATATYPE_RV", isArray: false, type: "aud" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_FN_AUDIO_TOAUDIOTIMERANGE_LNG_LNG_TIMEPARTENUMDATATYPE_PRM_DSC_0", identifier: "lowerBound", isArray: false, helpDisplayIdx: 0, repeatable: false, required: true, type: "int" }, { allowNotSet: false, allowCustomJson: false, description: "AR_FN_AUDIO_TOAUDIOTIMERANGE_LNG_LNG_TIMEPARTENUMDATATYPE_PRM_DSC_1", identifier: "upperBound", isArray: false, helpDisplayIdx: 1, repeatable: false, required: true, type: "int" }, { allowNotSet: true, allowCustomJson: false, description: "AR_FN_AUDIO_TOAUDIOTIMERANGE_LNG_LNG_TIMEPARTENUMDATATYPE_PRM_DSC_2", identifier: "timePart", isArray: false, helpDisplayIdx: 2, repeatable: false, required: false, type: "tpf" }], examples: [{ input: "ToAudioTimeRange(4, 6, Format.TimePart.minutes)", output: "AR_FN_AUDIO_TOAUDIOTIMERANGE_LNG_LNG_TIMEPARTENUMDATATYPE_EX_OUT_0" }, { input: "ToAudioTimeRange(15, 8, Format.TimePart.minutes)", output: "AR_FN_AUDIO_TOAUDIOTIMERANGE_LNG_LNG_TIMEPARTENUMDATATYPE_EX_OUT_1" }, { input: "ToAudioTimeRange(10, 15, Format.TimePart.hours)", output: "AR_FN_AUDIO_TOAUDIOTIMERANGE_LNG_LNG_TIMEPARTENUMDATATYPE_EX_OUT_2" }, { input: "ToAudioTimeRange(1, 1, Format.TimePart.hours)", output: "AR_FN_AUDIO_TOAUDIOTIMERANGE_LNG_LNG_TIMEPARTENUMDATATYPE_EX_OUT_3" }] }], needsServerInfo: true }, emailAddressDomainPart: { identifier: "emailAddressDomainPart", description: "AR_FN_DSC_EMAILADDRESSDOMAINPART", type: "function", name: "EmailAddressDomainPart", category: "email", overloads: [{ description: "AR_FN_STR_EMAILADDRESSDOMAINPART_EMAILADDRESS_DSC", identifier: "String_ONE EmailAddressDomainPart(EmailAddress_ONE)", support: { version: "1.0", resolver: "None" }, supportedFlowTypes: { inboundemail: "inboundemail", workitem: "workitem" }, needsServerInfo: true, returnValue: { description: "AR_FN_STR_EMAILADDRESSDOMAINPART_EMAILADDRESS_RV", isArray: false, type: "str" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_FN_STR_EMAILADDRESSDOMAINPART_EMAILADDRESS_PRM_DSC_0", identifier: "emailAddress", isArray: false, helpDisplayIdx: 0, repeatable: false, required: true, type: "cpx_email_address" }], examples: [{ input: "EmailAddressDomainPart(Email.Message.from)", output: "AR_FN_STR_EMAILADDRESSDOMAINPART_EMAILADDRESS_EX_OUT_0" }] }, { description: "AR_FN_STR_EMAILADDRESSDOMAINPART_STR_DSC", identifier: "String_ONE EmailAddressDomainPart(String_ONE)", support: { version: "1.0", resolver: "None" }, supportedFlowTypes: { inboundemail: "inboundemail", workitem: "workitem" }, needsServerInfo: true, returnValue: { description: "AR_FN_STR_EMAILADDRESSDOMAINPART_STR_RV", isArray: false, type: "str" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_STR_EMAILADDRESSDOMAINPART_STR_PRM_DSC_0", identifier: "emailAddressString", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "str" }], examples: [{ input: 'EmailAddressDomainPart("john.doe@company.com")', output: '"company.com"' }, { input: 'EmailAddressDomainPart("abc")', output: "AR_FN_STR_EMAILADDRESSDOMAINPART_STR_EX_OUT_1" }, { input: "EmailAddressDomainPart(ToString(NOT_SET))", output: "AR_FN_STR_EMAILADDRESSDOMAINPART_STR_EX_OUT_2" }] }], needsServerInfo: true }, emailAddressLocalPart: { identifier: "emailAddressLocalPart", description: "AR_FN_DSC_EMAILADDRESSLOCALPART", type: "function", name: "EmailAddressLocalPart", category: "email", overloads: [{ description: "AR_FN_STR_EMAILADDRESSLOCALPART_EMAILADDRESS_DSC", identifier: "String_ONE EmailAddressLocalPart(EmailAddress_ONE)", support: { version: "1.0", resolver: "None" }, supportedFlowTypes: { inboundemail: "inboundemail", workitem: "workitem" }, needsServerInfo: true, returnValue: { description: "AR_FN_STR_EMAILADDRESSLOCALPART_EMAILADDRESS_RV", isArray: false, type: "str" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_FN_STR_EMAILADDRESSLOCALPART_EMAILADDRESS_PRM_DSC_0", identifier: "emailAddress", isArray: false, helpDisplayIdx: 0, repeatable: false, required: true, type: "cpx_email_address" }], examples: [{ input: "EmailAddressLocalPart(Email.Message.from)", output: "AR_FN_STR_EMAILADDRESSLOCALPART_EMAILADDRESS_EX_OUT_0" }] }, { description: "AR_FN_STR_EMAILADDRESSLOCALPART_STR_DSC", identifier: "String_ONE EmailAddressLocalPart(String_ONE)", support: { version: "1.0", resolver: "None" }, supportedFlowTypes: { inboundemail: "inboundemail", workitem: "workitem" }, needsServerInfo: true, returnValue: { description: "AR_FN_STR_EMAILADDRESSLOCALPART_STR_RV", isArray: false, type: "str" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_STR_EMAILADDRESSLOCALPART_STR_PRM_DSC_0", identifier: "emailAddressString", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "str" }], examples: [{ input: 'EmailAddressLocalPart("john.doe@company.com")', output: '"john.doe"' }, { input: 'EmailAddressLocalPart("abc")', output: "AR_FN_STR_EMAILADDRESSLOCALPART_STR_EX_OUT_1" }, { input: "EmailAddressLocalPart(ToString(NOT_SET))", output: "AR_FN_STR_EMAILADDRESSLOCALPART_STR_EX_OUT_2" }] }], needsServerInfo: true }, makeEmailAddress: { identifier: "makeEmailAddress", description: "AR_FN_DSC_MAKEEMAILADDRESS", type: "function", name: "MakeEmailAddress", category: "email", overloads: [{ description: "AR_FN_EMAILADDRESS_MAKEEMAILADDRESS_STR_DSC", identifier: "EmailAddress_ONE makeEmailAddress(String_ONE)", support: { version: "1.0", resolver: "None" }, supportedFlowTypes: { emailsend: "emailsend", inboundchat: "inboundchat", inboundemail: "inboundemail", inboundshortmessage: "inboundshortmessage", inqueueemail: "inqueueemail", inqueueshortmessage: "inqueueshortmessage", surveyinvite: "surveyinvite", workflow: "workflow", workitem: "workitem" }, needsServerInfo: true, returnValue: { description: "AR_FN_EMAILADDRESS_MAKEEMAILADDRESS_STR_RV", isArray: false, type: "cpx_email_address" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_FN_EMAILADDRESS_MAKEEMAILADDRESS_STR_PRM_DSC_0", identifier: "address", isArray: false, helpDisplayIdx: 0, repeatable: false, required: true, type: "str" }], examples: [{ input: 'MakeEmailAddress("john.doe@company.com")', output: "AR_FN_EMAILADDRESS_MAKEEMAILADDRESS_STR_EX_OUT_0" }, { input: 'MakeEmailAddress("john.doe@company.com").id', output: '"john.doe@company.com"' }, { input: 'MakeEmailAddress("john.doe@company.com").name', output: "AR_FN_EMAILADDRESS_MAKEEMAILADDRESS_STR_EX_OUT_2" }] }, { description: "AR_FN_EMAILADDRESS_MAKEEMAILADDRESS_STR_STR_DSC", identifier: "EmailAddress_ONE makeEmailAddress(String_ONE,String_ONE)", support: { version: "1.0", resolver: "None" }, supportedFlowTypes: { emailsend: "emailsend", inboundchat: "inboundchat", inboundemail: "inboundemail", inboundshortmessage: "inboundshortmessage", inqueueemail: "inqueueemail", inqueueshortmessage: "inqueueshortmessage", surveyinvite: "surveyinvite", workflow: "workflow", workitem: "workitem" }, needsServerInfo: true, returnValue: { description: "AR_FN_EMAILADDRESS_MAKEEMAILADDRESS_STR_STR_RV", isArray: false, type: "cpx_email_address" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_FN_EMAILADDRESS_MAKEEMAILADDRESS_STR_STR_PRM_DSC_0", identifier: "address", isArray: false, helpDisplayIdx: 0, repeatable: false, required: true, type: "str" }, { allowNotSet: true, allowCustomJson: false, description: "AR_FN_EMAILADDRESS_MAKEEMAILADDRESS_STR_STR_PRM_DSC_1", identifier: "name", isArray: false, helpDisplayIdx: 1, repeatable: false, required: false, type: "str" }], examples: [{ input: 'MakeEmailAddress("john.doe@company.com", "John")', output: "AR_FN_EMAILADDRESS_MAKEEMAILADDRESS_STR_STR_EX_OUT_0" }, { input: 'MakeEmailAddress("john.doe@company.com", "John").id', output: '"john.doe@company.com"' }, { input: 'MakeEmailAddress("john.doe@company.com", "John").name', output: '"John"' }, { input: 'MakeEmailAddress("john.doe@company.com", ToString(NOT_SET)).name', output: "AR_FN_EMAILADDRESS_MAKEEMAILADDRESS_STR_STR_EX_OUT_3" }] }], needsServerInfo: true }, detectLanguage: { identifier: "detectLanguage", description: "AR_FN_DSC_DETECTLANGUAGE", type: "function", name: "DetectLanguage", category: "text", overloads: [{ description: "AR_FN_STR_DETECTLANGUAGE_STR_STR_DSC", identifier: "String_ONE detectLanguage(String_ONE,String_ONE)", support: { version: "1.0", resolver: "None" }, supportedReturnValueTypeInfo: "languageTag", supportedReturnValuesTitle: "possibleDetectedLanguages", supportedReturnValues: ["ar", "cs", "da", "de", "el", "en", "es", "fi", "fr", "hu", "it", "ja", "ko", "ms", "nl", "no", "pl", "pt", "ru", "sk", "sv", "th", "tr", "uk", "zh"], needsServerInfo: true, returnValue: { description: "AR_FN_STR_DETECTLANGUAGE_STR_STR_RV", isArray: false, type: "str" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_STR_DETECTLANGUAGE_STR_STR_PRM_DSC_0", identifier: "stringToSearch", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "str" }, { allowNotSet: true, allowCustomJson: false, description: "AR_FN_STR_DETECTLANGUAGE_STR_STR_PRM_DSC_1", identifier: "defaultString", isArray: false, helpDisplayIdx: 1, repeatable: false, required: false, type: "str" }], examples: [{ input: 'DetectLanguage(Email.Message.body, "")', output: "AR_FN_STR_DETECTLANGUAGE_STR_STR_EX_OUT_0" }, { input: 'DetectLanguage("This is a test that should verify our ability to find a language in a string of native text.", "")', output: '"en"' }, { input: 'DetectLanguage("Esta es una prueba que debe verificar nuestra capacidad de encontrar un lenguaje en una cadena de texto nativo.", "en")', output: '"es"' }, { input: 'DetectLanguage("Dies ist ein Test, dass unsere F\xE4higkeit \xFCberpr\xFCfen, sollte die Sprache in einer Reihe von nativen Text zu finden.", "en")', output: '"de"' }, { input: 'DetectLanguage("\uC774 \uAE30\uBCF8 \uD14D\uC2A4\uD2B8 \uBB38\uC790\uC5F4\uC758 \uC5B8\uC5B4\uB97C \uCC3E\uC744 \uC218\uC788\uB294 \uC6B0\uB9AC\uC758 \uB2A5\uB825\uC744 \uD655\uC778\uD574\uC57C\uD569\uB2C8\uB2E4 \uD14C\uC2A4\uD2B8\uC785\uB2C8\uB2E4.", ToString(NOT_SET))', output: '"ko"' }, { input: 'DetectLanguage(ToString(NOT_SET), "en")', output: '"en"' }, { input: 'DetectLanguage(" ", "auto")', output: '"auto"' }, { input: "DetectLanguage(ToString(NOT_SET), ToString(NOT_SET))", output: "AR_FN_STR_DETECTLANGUAGE_STR_STR_EX_OUT_7" }] }], needsServerInfo: true }, getPromptTextToSpeech: { identifier: "getPromptTextToSpeech", description: "AR_FN_DSC_GETPROMPTTEXTTOSPEECH", type: "function", name: "GetPromptTextToSpeech", category: "prompt", overloads: [{ description: "AR_FN_STR_GETPROMPTTEXTTOSPEECH_PROMPT_DSC", identifier: "String_ONE getPromptTextToSpeech(Prompt_ONE)", support: { version: "1.0", resolver: "None" }, needsServerInfo: true, returnValue: { description: "AR_FN_STR_GETPROMPTTEXTTOSPEECH_PROMPT_RV", isArray: false, type: "str" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_STR_GETPROMPTTEXTTOSPEECH_PROMPT_PRM_DSC_0", identifier: "prompt", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "pmt" }], examples: [{ input: "GetPromptTextToSpeech(PromptSystem.month_january)", output: '"enero"', outputFlowCurrentLanguage: "es-US" }, { input: "GetPromptTextToSpeech(Prompt.Greeting)", output: "AR_FN_STR_GETPROMPTTEXTTOSPEECH_PROMPT_EX_OUT_1" }, { input: "GetPromptTextToSpeech(FindUserPrompt(NOT_SET))", output: "AR_FN_STR_GETPROMPTTEXTTOSPEECH_PROMPT_EX_OUT_2" }] }], needsServerInfo: true }, getPromptDuration: { identifier: "getPromptDuration", description: "AR_FN_DSC_GETPROMPTDURATION", type: "function", name: "GetPromptDuration", category: "prompt", overloads: [{ description: "AR_FN_DUR_GETPROMPTDURATION_PROMPT_DSC", identifier: "Duration_ONE getPromptDuration(Prompt_ONE)", support: { version: "1.0", resolver: "None" }, needsServerInfo: true, returnValue: { description: "AR_FN_DUR_GETPROMPTDURATION_PROMPT_RV", isArray: false, type: "dur" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_DUR_GETPROMPTDURATION_PROMPT_PRM_DSC_0", identifier: "prompt", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "pmt" }], examples: [{ input: "GetPromptDuration(PromptSystem.month_january)", output: "AR_FN_DUR_GETPROMPTDURATION_PROMPT_EX_OUT_0", outputFlowCurrentLanguage: "es-US" }, { input: "GetPromptDuration(Prompt.Greeting)", output: "AR_FN_DUR_GETPROMPTDURATION_PROMPT_EX_OUT_1" }, { input: "GetPromptDuration(FindUserPrompt(NOT_SET))", output: "AR_FN_DUR_GETPROMPTDURATION_PROMPT_EX_OUT_2" }] }], needsServerInfo: true }, getPromptText: { identifier: "getPromptText", description: "AR_FN_DSC_GETPROMPTTEXT", type: "function", name: "GetPromptText", category: "prompt", overloads: [{ description: "AR_FN_STR_GETPROMPTTEXT_PROMPT_DSC", identifier: "String_ONE getPromptText(Prompt_ONE)", support: { version: "1.0", resolver: "None" }, needsServerInfo: true, returnValue: { description: "AR_FN_STR_GETPROMPTTEXT_PROMPT_RV", isArray: false, type: "str" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_STR_GETPROMPTTEXT_PROMPT_PRM_DSC_0", identifier: "prompt", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "pmt" }], examples: [{ input: "getPromptText(PromptSystem.month_january)", output: '"enero"', outputFlowCurrentLanguage: "es-US" }, { input: "getPromptText(Prompt.Greeting)", output: "AR_FN_STR_GETPROMPTTEXT_PROMPT_EX_OUT_1" }, { input: "getPromptText(FindUserPrompt(NOT_SET))", output: "AR_FN_STR_GETPROMPTTEXT_PROMPT_EX_OUT_2" }] }], needsServerInfo: true }, isJsonArray: { identifier: "isJsonArray", description: "AR_FN_DSC_ISJSONARRAY", type: "function", name: "IsJsonArray", category: "json", overloads: [{ description: "AR_FN_BLN_ISJSONARRAY_JSON_DSC", identifier: "Boolean_ONE isJsonArray(JSON_ONE)", support: { version: "1.0", resolver: "None" }, supportedFlowTypes: { inboundcall: "inboundcall", inqueuecall: "inqueuecall", outboundcall: "outboundcall", securecall: "securecall", voicemail: "voicemail", emailsend: "emailsend", inboundchat: "inboundchat", inboundemail: "inboundemail", inboundshortmessage: "inboundshortmessage", inqueueemail: "inqueueemail", inqueueshortmessage: "inqueueshortmessage", surveyinvite: "surveyinvite", workflow: "workflow", workitem: "workitem" }, needsServerInfo: true, returnValue: { description: "AR_FN_BLN_ISJSONARRAY_JSON_RV", isArray: false, type: "bln" }, parameters: [{ allowNotSet: true, allowCustomJson: true, description: "AR_FN_BLN_ISJSONARRAY_JSON_PRM_DSC_0", identifier: "valueToCheck", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "jsn" }], examples: [{ input: 'IsJsonArray(JsonParse("[ 1, 2, 3 ]"))', output: "true" }, { input: "IsJsonArray(MakeEmptyJsonObject())", output: "false" }, { input: "IsJsonArray(MakeEmptyJsonArray())", output: "true" }] }], needsServerInfo: true }, isJsonBool: { identifier: "isJsonBool", description: "AR_FN_DSC_ISJSONBOOL", type: "function", name: "IsJsonBool", category: "json", overloads: [{ description: "AR_FN_BLN_ISJSONBOOL_JSON_DSC", identifier: "Boolean_ONE isJsonBool(JSON_ONE)", support: { version: "1.0", resolver: "None" }, supportedFlowTypes: { inboundcall: "inboundcall", inqueuecall: "inqueuecall", outboundcall: "outboundcall", securecall: "securecall", voicemail: "voicemail", emailsend: "emailsend", inboundchat: "inboundchat", inboundemail: "inboundemail", inboundshortmessage: "inboundshortmessage", inqueueemail: "inqueueemail", inqueueshortmessage: "inqueueshortmessage", surveyinvite: "surveyinvite", workflow: "workflow", workitem: "workitem" }, needsServerInfo: true, returnValue: { description: "AR_FN_BLN_ISJSONBOOL_JSON_RV", isArray: false, type: "bln" }, parameters: [{ allowNotSet: true, allowCustomJson: true, description: "AR_FN_BLN_ISJSONBOOL_JSON_PRM_DSC_0", identifier: "valueToCheck", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "jsn" }], examples: [{ input: 'IsJsonBool(JsonParse("true"))', output: "true" }, { input: 'IsJsonBool(JsonParse("false"))', output: "true" }, { input: "IsJsonBool(ToJson(ToBool(NOT_SET)))", output: "false" }, { input: "IsJsonBool(MakeEmptyJsonObject())", output: "false" }] }], needsServerInfo: true }, isJsonNull: { identifier: "isJsonNull", description: "AR_FN_DSC_ISJSONNULL", type: "function", name: "IsJsonNull", category: "json", overloads: [{ description: "AR_FN_BLN_ISJSONNULL_JSON_DSC", identifier: "Boolean_ONE isJsonNull(JSON_ONE)", support: { version: "1.0", resolver: "None" }, supportedFlowTypes: { inboundcall: "inboundcall", inqueuecall: "inqueuecall", outboundcall: "outboundcall", securecall: "securecall", voicemail: "voicemail", emailsend: "emailsend", inboundchat: "inboundchat", inboundemail: "inboundemail", inboundshortmessage: "inboundshortmessage", inqueueemail: "inqueueemail", inqueueshortmessage: "inqueueshortmessage", surveyinvite: "surveyinvite", workflow: "workflow", workitem: "workitem" }, needsServerInfo: true, returnValue: { description: "AR_FN_BLN_ISJSONNULL_JSON_RV", isArray: false, type: "bln" }, parameters: [{ allowNotSet: true, allowCustomJson: true, description: "AR_FN_BLN_ISJSONNULL_JSON_PRM_DSC_0", identifier: "valueToCheck", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "jsn" }], examples: [{ input: 'IsJsonNull(JsonParse("null"))', output: "true" }, { input: "IsJsonNull(ToJson(NOT_SET))", output: "false" }, { input: 'IsJsonNull(JsonParse("{ \\"a\\": true, \\"b\\": 100, \\"c\\": [ true, false ] }"))', output: "false" }, { input: "IsJsonNull(MakeNullJson())", output: "true" }] }], needsServerInfo: true }, isJsonNumber: { identifier: "isJsonNumber", description: "AR_FN_DSC_ISJSONNUMBER", type: "function", name: "IsJsonNumber", category: "json", overloads: [{ description: "AR_FN_BLN_ISJSONNUMBER_JSON_DSC", identifier: "Boolean_ONE isJsonNumber(JSON_ONE)", support: { version: "1.0", resolver: "None" }, supportedFlowTypes: { inboundcall: "inboundcall", inqueuecall: "inqueuecall", outboundcall: "outboundcall", securecall: "securecall", voicemail: "voicemail", emailsend: "emailsend", inboundchat: "inboundchat", inboundemail: "inboundemail", inboundshortmessage: "inboundshortmessage", inqueueemail: "inqueueemail", inqueueshortmessage: "inqueueshortmessage", surveyinvite: "surveyinvite", workflow: "workflow", workitem: "workitem" }, needsServerInfo: true, returnValue: { description: "AR_FN_BLN_ISJSONNUMBER_JSON_RV", isArray: false, type: "bln" }, parameters: [{ allowNotSet: true, allowCustomJson: true, description: "AR_FN_BLN_ISJSONNUMBER_JSON_PRM_DSC_0", identifier: "valueToCheck", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "jsn" }], examples: [{ input: 'IsJsonNumber(JsonParse("null"))', output: "false" }, { input: "IsJsonNumber(ToJson(5))", output: "true" }, { input: "IsJsonNumber(ToJson(5 * 3.5))", output: "true" }, { input: 'IsJsonNumber(JsonParse("{ \\"a\\": true, \\"b\\": 100, \\"c\\": [ true, false ] }"))', output: "false" }] }], needsServerInfo: true }, isJsonObject: { identifier: "isJsonObject", description: "AR_FN_DSC_ISJSONOBJECT", type: "function", name: "IsJsonObject", category: "json", overloads: [{ description: "AR_FN_BLN_ISJSONOBJECT_JSON_DSC", identifier: "Boolean_ONE isJsonObject(JSON_ONE)", support: { version: "1.0", resolver: "None" }, supportedFlowTypes: { inboundcall: "inboundcall", inqueuecall: "inqueuecall", outboundcall: "outboundcall", securecall: "securecall", voicemail: "voicemail", emailsend: "emailsend", inboundchat: "inboundchat", inboundemail: "inboundemail", inboundshortmessage: "inboundshortmessage", inqueueemail: "inqueueemail", inqueueshortmessage: "inqueueshortmessage", surveyinvite: "surveyinvite", workflow: "workflow", workitem: "workitem" }, needsServerInfo: true, returnValue: { description: "AR_FN_BLN_ISJSONOBJECT_JSON_RV", isArray: false, type: "bln" }, parameters: [{ allowNotSet: true, allowCustomJson: true, description: "AR_FN_BLN_ISJSONOBJECT_JSON_PRM_DSC_0", identifier: "valueToCheck", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "jsn" }], examples: [{ input: 'IsJsonObject(JsonParse("null"))', output: "false" }, { input: 'IsJsonObject(JsonParse("{ \\"a\\": true, \\"b\\": 100, \\"c\\": [ true, false ] }"))', output: "true" }, { input: "IsJsonObject(MakeEmptyJsonObject())", output: "true" }, { input: 'IsJsonObject(ToJson("true"))', output: "false" }] }], needsServerInfo: true }, isJsonString: { identifier: "isJsonString", description: "AR_FN_DSC_ISJSONSTRING", type: "function", name: "IsJsonString", category: "json", overloads: [{ description: "AR_FN_BLN_ISJSONSTRING_JSON_DSC", identifier: "Boolean_ONE isJsonString(JSON_ONE)", support: { version: "1.0", resolver: "None" }, supportedFlowTypes: { inboundcall: "inboundcall", inqueuecall: "inqueuecall", outboundcall: "outboundcall", securecall: "securecall", voicemail: "voicemail", emailsend: "emailsend", inboundchat: "inboundchat", inboundemail: "inboundemail", inboundshortmessage: "inboundshortmessage", inqueueemail: "inqueueemail", inqueueshortmessage: "inqueueshortmessage", surveyinvite: "surveyinvite", workflow: "workflow", workitem: "workitem" }, needsServerInfo: true, returnValue: { description: "AR_FN_BLN_ISJSONSTRING_JSON_RV", isArray: false, type: "bln" }, parameters: [{ allowNotSet: true, allowCustomJson: true, description: "AR_FN_BLN_ISJSONSTRING_JSON_PRM_DSC_0", identifier: "valueToCheck", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "jsn" }], examples: [{ input: 'IsJsonString(JsonParse("null"))', output: "false" }, { input: 'IsJsonString(JsonParse("\\"Hello\\""))', output: "true" }, { input: "IsJsonString(ToJson(100))", output: "false" }, { input: "IsJsonString(MakeEmptyJsonString())", output: "true" }] }], needsServerInfo: true }, jsonParse: { identifier: "jsonParse", description: "AR_FN_DSC_JSONPARSE", type: "function", name: "JsonParse", category: "json", overloads: [{ description: "AR_FN_JSON_JSONPARSE_STR_DSC", identifier: "JSON_ONE jsonParse(String_ONE)", support: { version: "1.0", resolver: "None" }, supportedFlowTypes: { inboundcall: "inboundcall", inqueuecall: "inqueuecall", outboundcall: "outboundcall", securecall: "securecall", voicemail: "voicemail", emailsend: "emailsend", inboundchat: "inboundchat", inboundemail: "inboundemail", inboundshortmessage: "inboundshortmessage", inqueueemail: "inqueueemail", inqueueshortmessage: "inqueueshortmessage", surveyinvite: "surveyinvite", workflow: "workflow", workitem: "workitem" }, needsServerInfo: true, returnValue: { description: "AR_FN_JSON_JSONPARSE_STR_RV", isArray: false, type: "jsn" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_JSON_JSONPARSE_STR_PRM_DSC_0", identifier: "valueToParse", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "str" }], examples: [{ input: 'JsonParse("\\"Hello\\"")', output: "AR_FN_JSON_JSONPARSE_STR_EX_OUT_0" }, { input: 'JsonParse("[ 0, 1, 2 ]")', output: "AR_FN_JSON_JSONPARSE_STR_EX_OUT_1" }, { input: 'JsonParse("{ \\"a\\": true, \\"b\\": 100, \\"c\\": [ true, false ], \\"d\\": null }")', output: 'A JSON value that contains a JSON object of { "a": true, "b": 100, "c": [ true, false ], "c": null }' }, { input: "JsonParse(ToString(NOT_SET))", output: "AR_FN_JSON_JSONPARSE_STR_EX_OUT_3" }, { input: 'JsonParse("true")', output: "AR_FN_JSON_JSONPARSE_STR_EX_OUT_4" }] }], needsServerInfo: true }, makeEmptyJsonArray: { identifier: "makeEmptyJsonArray", description: "AR_FN_DSC_MAKEEMPTYJSONARRAY", type: "function", name: "MakeEmptyJsonArray", category: "json", overloads: [{ description: "AR_FN_JSON_MAKEEMPTYJSONARRAY_DSC", identifier: "JSON_ONE makeEmptyJsonArray()", support: { version: "1.0", resolver: "None" }, supportedFlowTypes: { inboundcall: "inboundcall", inqueuecall: "inqueuecall", outboundcall: "outboundcall", securecall: "securecall", voicemail: "voicemail", emailsend: "emailsend", inboundchat: "inboundchat", inboundemail: "inboundemail", inboundshortmessage: "inboundshortmessage", inqueueemail: "inqueueemail", inqueueshortmessage: "inqueueshortmessage", surveyinvite: "surveyinvite", workflow: "workflow", workitem: "workitem" }, needsServerInfo: true, returnValue: { description: "AR_FN_JSON_MAKEEMPTYJSONARRAY_RV", isArray: false, type: "jsn" }, parameters: [], examples: [{ input: "MakeEmptyJsonArray()", output: "AR_FN_JSON_MAKEEMPTYJSONARRAY_EX_OUT_0" }] }], needsServerInfo: true }, makeEmptyJsonObject: { identifier: "makeEmptyJsonObject", description: "AR_FN_DSC_MAKEEMPTYJSONOBJECT", type: "function", name: "MakeEmptyJsonObject", category: "json", overloads: [{ description: "AR_FN_JSON_MAKEEMPTYJSONOBJECT_DSC", identifier: "JSON_ONE makeEmptyJsonObject()", support: { version: "1.0", resolver: "None" }, supportedFlowTypes: { inboundcall: "inboundcall", inqueuecall: "inqueuecall", outboundcall: "outboundcall", securecall: "securecall", voicemail: "voicemail", emailsend: "emailsend", inboundchat: "inboundchat", inboundemail: "inboundemail", inboundshortmessage: "inboundshortmessage", inqueueemail: "inqueueemail", inqueueshortmessage: "inqueueshortmessage", surveyinvite: "surveyinvite", workflow: "workflow", workitem: "workitem" }, needsServerInfo: true, returnValue: { description: "AR_FN_JSON_MAKEEMPTYJSONOBJECT_RV", isArray: false, type: "jsn" }, parameters: [], examples: [{ input: "MakeEmptyJsonObject()", output: "AR_FN_JSON_MAKEEMPTYJSONOBJECT_EX_OUT_0" }] }], needsServerInfo: true }, makeEmptyJsonString: { identifier: "makeEmptyJsonString", description: "AR_FN_DSC_MAKEEMPTYJSONSTRING", type: "function", name: "MakeEmptyJsonString", category: "json", overloads: [{ description: "AR_FN_JSON_MAKEEMPTYJSONSTRING_DSC", identifier: "JSON_ONE makeEmptyJsonString()", support: { version: "1.0", resolver: "None" }, supportedFlowTypes: { inboundcall: "inboundcall", inqueuecall: "inqueuecall", outboundcall: "outboundcall", securecall: "securecall", voicemail: "voicemail", emailsend: "emailsend", inboundchat: "inboundchat", inboundemail: "inboundemail", inboundshortmessage: "inboundshortmessage", inqueueemail: "inqueueemail", inqueueshortmessage: "inqueueshortmessage", surveyinvite: "surveyinvite", workflow: "workflow", workitem: "workitem" }, needsServerInfo: true, returnValue: { description: "AR_FN_JSON_MAKEEMPTYJSONSTRING_RV", isArray: false, type: "jsn" }, parameters: [], examples: [{ input: "MakeEmptyJsonString()", output: "AR_FN_JSON_MAKEEMPTYJSONSTRING_EX_OUT_0" }] }], needsServerInfo: true }, makeNullJson: { identifier: "makeNullJson", description: "AR_FN_DSC_MAKENULLJSON", type: "function", name: "MakeNullJson", category: "json", overloads: [{ description: "AR_FN_JSON_MAKENULLJSON_DSC", identifier: "JSON_ONE makeNullJson()", support: { version: "1.0", resolver: "None" }, supportedFlowTypes: { inboundcall: "inboundcall", inqueuecall: "inqueuecall", outboundcall: "outboundcall", securecall: "securecall", voicemail: "voicemail", emailsend: "emailsend", inboundchat: "inboundchat", inboundemail: "inboundemail", inboundshortmessage: "inboundshortmessage", inqueueemail: "inqueueemail", inqueueshortmessage: "inqueueshortmessage", surveyinvite: "surveyinvite", workflow: "workflow", workitem: "workitem" }, needsServerInfo: true, returnValue: { description: "AR_FN_JSON_MAKENULLJSON_RV", isArray: false, type: "jsn" }, parameters: [], examples: [{ input: "MakeNullJson()", output: "AR_FN_JSON_MAKENULLJSON_EX_OUT_0" }] }], needsServerInfo: true }, toJson: { identifier: "toJson", description: "AR_FN_DSC_TOJSON", type: "function", name: "ToJson", category: "cast", overloads: [{ description: "AR_FN_JSON_TOJSON_ANY_DSC", identifier: "JSON_ONE toJson(Any_ONE)", support: { version: "1.0", resolver: "None" }, supportedFlowTypes: { inboundcall: "inboundcall", inqueuecall: "inqueuecall", outboundcall: "outboundcall", securecall: "securecall", voicemail: "voicemail", emailsend: "emailsend", inboundchat: "inboundchat", inboundemail: "inboundemail", inboundshortmessage: "inboundshortmessage", inqueueemail: "inqueueemail", inqueueshortmessage: "inqueueshortmessage", surveyinvite: "surveyinvite", workflow: "workflow", workitem: "workitem" }, needsServerInfo: true, returnValue: { description: "AR_FN_JSON_TOJSON_ANY_RV", isArray: false, type: "jsn" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_JSON_TOJSON_ANY_PRM_DSC_0", identifier: "value", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "any" }], examples: [{ input: "ToJson(MakeDateTime(2022, 8, 4, 0, 0, 0))", output: "AR_FN_JSON_TOJSON_ANY_EX_OUT_0" }, { input: 'ToJson("Hello")', output: "AR_FN_JSON_TOJSON_ANY_EX_OUT_1" }, { input: "ToJson(5)", output: "AR_FN_JSON_TOJSON_ANY_EX_OUT_2" }, { input: 'ToJson("{ \\"a\\": true }")', output: "AR_FN_JSON_TOJSON_ANY_EX_OUT_3" }, { input: 'ToJson(MakeCurrency(5.25, "USD"))', output: "AR_FN_JSON_TOJSON_ANY_EX_OUT_4" }, { input: 'ToJson(ToPhoneNumber("tel:+13178723000"))', output: "AR_FN_JSON_TOJSON_ANY_EX_OUT_5" }, { input: 'ToJson(MakeListPickerItem("Fries", NOT_SET, MakeImageFromUrl(NOT_SET)))', output: "AR_FN_JSON_TOJSON_ANY_EX_OUT_6", featureConfigName: "botFlowsAppleListPicker" }, { input: 'ToJson(MakeListPickerSection("Sides", true, MakeList(MakeListPickerItem("Fries", NOT_SET, MakeImageFromUrl(NOT_SET)))))', output: "AR_FN_JSON_TOJSON_ANY_EX_OUT_7", featureConfigName: "botFlowsAppleListPicker" }, { input: 'ToJson(MakeListPicker(MakeList(MakeListPickerSection("Sides", true, MakeList(MakeListPickerItem("Fries", NOT_SET, MakeImageFromUrl(NOT_SET))))), MakeImageFromUrl(NOT_SET), "Menu", "Items to order", MakeImageFromUrl(NOT_SET), NOT_SET))', output: "AR_FN_JSON_TOJSON_ANY_EX_OUT_8", featureConfigName: "botFlowsAppleListPicker" }], examplesHaveFeatureToggleOrConfig: true }, { description: "AR_FN_JSON_TOJSON_ANY_COLL_DSC", identifier: "JSON_ONE toJson(Any_COLL)", support: { version: "1.0", resolver: "None" }, supportedFlowTypes: { inboundcall: "inboundcall", inqueuecall: "inqueuecall", outboundcall: "outboundcall", securecall: "securecall", voicemail: "voicemail", emailsend: "emailsend", inboundchat: "inboundchat", inboundemail: "inboundemail", inboundshortmessage: "inboundshortmessage", inqueueemail: "inqueueemail", inqueueshortmessage: "inqueueshortmessage", surveyinvite: "surveyinvite", workflow: "workflow", workitem: "workitem" }, needsServerInfo: true, returnValue: { description: "AR_FN_JSON_TOJSON_ANY_COLL_RV", isArray: false, type: "jsn" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_FN_JSON_TOJSON_ANY_COLL_PRM_DSC_0", identifier: "value", isArray: true, helpDisplayIdx: 0, repeatable: false, required: true, type: "any" }], examples: [{ input: "ToJson(MakeList(1, 2, 3))", output: "AR_FN_JSON_TOJSON_ANY_COLL_EX_OUT_0" }, { input: 'ToJson(MakeList(MakeListPickerItem("Fries", NOT_SET, MakeImageFromUrl(NOT_SET)), MakeListPickerItem("Soup", NOT_SET, MakeImageFromUrl(NOT_SET))))', output: "AR_FN_JSON_TOJSON_ANY_COLL_EX_OUT_1", featureConfigName: "botFlowsAppleListPicker" }, { input: 'ToJson(MakeList(MakeListPickerSection("Sides", true, MakeList(MakeListPickerItem("Fries", NOT_SET, MakeImageFromUrl(NOT_SET))))))', output: "AR_FN_JSON_TOJSON_ANY_COLL_EX_OUT_2", featureConfigName: "botFlowsAppleListPicker" }], examplesHaveFeatureToggleOrConfig: true }, { description: "AR_FN_JSON_TOJSON_NTS_DSC", identifier: "JSON_ONE toJson(Null_ONE)", support: { version: "1.0", resolver: "NotSetToRetType" }, supportedFlowTypes: { inboundcall: "inboundcall", inqueuecall: "inqueuecall", outboundcall: "outboundcall", securecall: "securecall", voicemail: "voicemail", emailsend: "emailsend", inboundchat: "inboundchat", inboundemail: "inboundemail", inboundshortmessage: "inboundshortmessage", inqueueemail: "inqueueemail", inqueueshortmessage: "inqueueshortmessage", surveyinvite: "surveyinvite", workflow: "workflow", workitem: "workitem" }, needsServerInfo: true, returnValue: { description: "AR_FN_JSON_TOJSON_NTS_RV", isArray: false, type: "jsn" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_JSON_TOJSON_NTS_PRM_DSC_0", identifier: "value", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "nts" }], examples: [{ input: "ToJson(NOT_SET)", output: "AR_FN_JSON_TOJSON_NTS_EX_OUT_0" }] }], needsServerInfo: true }, toJsonCollection: { identifier: "toJsonCollection", description: "AR_FN_DSC_TOJSONCOLLECTION", type: "function", name: "ToJsonCollection", category: "cast", overloads: [{ description: "AR_FN_JSON_COLL_TOJSONCOLLECTION_JSON_DSC", identifier: "JSON_COLL toJsonCollection(JSON_ONE)", support: { version: "1.0", resolver: "None" }, supportedFlowTypes: { inboundcall: "inboundcall", inqueuecall: "inqueuecall", outboundcall: "outboundcall", securecall: "securecall", voicemail: "voicemail", emailsend: "emailsend", inboundchat: "inboundchat", inboundemail: "inboundemail", inboundshortmessage: "inboundshortmessage", inqueueemail: "inqueueemail", inqueueshortmessage: "inqueueshortmessage", surveyinvite: "surveyinvite", workflow: "workflow", workitem: "workitem" }, addsToCollection: true, needsServerInfo: true, returnValue: { description: "AR_FN_JSON_COLL_TOJSONCOLLECTION_JSON_RV", isArray: true, type: "jsn" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_FN_JSON_COLL_TOJSONCOLLECTION_JSON_PRM_DSC_0", identifier: "jsonArray", isArray: false, helpDisplayIdx: 0, repeatable: false, required: true, type: "jsn" }], examples: [{ input: 'ToJsonCollection(JsonParse("[ true, 100 ]"))', output: "AR_FN_JSON_COLL_TOJSONCOLLECTION_JSON_EX_OUT_0" }, { input: "ToJsonCollection(MakeEmptyJsonArray())", output: "AR_FN_JSON_COLL_TOJSONCOLLECTION_JSON_EX_OUT_1" }, { input: 'Count(ToJsonCollection(JsonParse("[ true, 100 ]")))', output: "2" }, { input: 'Count(AddItem(ToJsonCollection(JsonParse("[ true, 100 ]")), MakeEmptyJsonObject()))', output: "3" }] }], needsServerInfo: true }, jsonStringify: { identifier: "jsonStringify", description: "AR_FN_DSC_JSONSTRINGIFY", type: "function", name: "JsonStringify", category: "json", overloads: [{ description: "AR_FN_STR_JSONSTRINGIFY_ANY_DSC", identifier: "String_ONE jsonStringify(Any_ONE)", support: { version: "1.0", resolver: "None" }, supportedFlowTypes: { inboundcall: "inboundcall", inqueuecall: "inqueuecall", outboundcall: "outboundcall", securecall: "securecall", voicemail: "voicemail", emailsend: "emailsend", inboundchat: "inboundchat", inboundemail: "inboundemail", inboundshortmessage: "inboundshortmessage", inqueueemail: "inqueueemail", inqueueshortmessage: "inqueueshortmessage", surveyinvite: "surveyinvite", workflow: "workflow", workitem: "workitem" }, needsServerInfo: true, returnValue: { description: "AR_FN_STR_JSONSTRINGIFY_ANY_RV", isArray: false, type: "str" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_STR_JSONSTRINGIFY_ANY_PRM_DSC_0", identifier: "valueToConvert", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "any" }], examples: [{ input: "JsonStringify(5)", output: '"5"' }, { input: "JsonStringify(ToInt(NOT_SET))", output: '"null"' }, { input: 'JsonStringify("Hello World")', output: '"\\"Hello World\\""' }, { input: "JsonStringify(MakeEmptyJsonObject())", output: '"{}"' }] }, { description: "AR_FN_STR_JSONSTRINGIFY_ANY_COLL_DSC", identifier: "String_ONE jsonStringify(Any_COLL)", support: { version: "1.0", resolver: "None" }, supportedFlowTypes: { inboundcall: "inboundcall", inqueuecall: "inqueuecall", outboundcall: "outboundcall", securecall: "securecall", voicemail: "voicemail", emailsend: "emailsend", inboundchat: "inboundchat", inboundemail: "inboundemail", inboundshortmessage: "inboundshortmessage", inqueueemail: "inqueueemail", inqueueshortmessage: "inqueueshortmessage", surveyinvite: "surveyinvite", workflow: "workflow", workitem: "workitem" }, needsServerInfo: true, returnValue: { description: "AR_FN_STR_JSONSTRINGIFY_ANY_COLL_RV", isArray: false, type: "str" }, parameters: [{ allowNotSet: false, allowCustomJson: false, description: "AR_FN_STR_JSONSTRINGIFY_ANY_COLL_PRM_DSC_0", identifier: "valueToConvert", isArray: true, helpDisplayIdx: 0, repeatable: false, required: true, type: "any" }], examples: [{ input: "JsonStringify(MakeList(3, 5))", output: '"[3,5]"' }, { input: "JsonStringify(MakeList(ToInt(NOT_SET), 10))", output: '"[null,10]"' }, { input: 'JsonStringify(MakeList("Hello", "World"))', output: '"[\\"Hello\\",\\"World\\"]"' }, { input: 'JsonStringify(MakeList(MakeEmptyJsonObject(), JsonParse("{\\"a\\": true}")))', output: '"[{},{\\"a\\":true}]"' }] }, { description: "AR_FN_STR_JSONSTRINGIFY_NTS_DSC", identifier: "String_ONE jsonStringify(Null_ONE)", support: { version: "1.0", resolver: "None" }, supportedFlowTypes: { inboundcall: "inboundcall", inqueuecall: "inqueuecall", outboundcall: "outboundcall", securecall: "securecall", voicemail: "voicemail", emailsend: "emailsend", inboundchat: "inboundchat", inboundemail: "inboundemail", inboundshortmessage: "inboundshortmessage", inqueueemail: "inqueueemail", inqueueshortmessage: "inqueueshortmessage", surveyinvite: "surveyinvite", workflow: "workflow", workitem: "workitem" }, needsServerInfo: true, returnValue: { description: "AR_FN_STR_JSONSTRINGIFY_NTS_RV", isArray: false, type: "str" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_STR_JSONSTRINGIFY_NTS_PRM_DSC_0", identifier: "valueToConvert", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "nts" }], examples: [{ input: "JsonStringify(NOT_SET)", output: '"null"' }] }], needsServerInfo: true }, isJsonTruthy: { identifier: "isJsonTruthy", description: "AR_FN_DSC_ISJSONTRUTHY", type: "function", name: "IsJsonTruthy", category: "json", overloads: [{ description: "AR_FN_BLN_ISJSONTRUTHY_JSON_DSC", identifier: "Boolean_ONE IsJsonTruthy(JSON_ONE)", support: { version: "1.0", resolver: "None" }, supportedFlowTypes: { inboundcall: "inboundcall", inqueuecall: "inqueuecall", outboundcall: "outboundcall", securecall: "securecall", voicemail: "voicemail", emailsend: "emailsend", inboundchat: "inboundchat", inboundemail: "inboundemail", inboundshortmessage: "inboundshortmessage", inqueueemail: "inqueueemail", inqueueshortmessage: "inqueueshortmessage", surveyinvite: "surveyinvite", workflow: "workflow", workitem: "workitem" }, needsServerInfo: true, returnValue: { description: "AR_FN_BLN_ISJSONTRUTHY_JSON_RV", isArray: false, type: "bln" }, parameters: [{ allowNotSet: true, allowCustomJson: true, description: "AR_FN_BLN_ISJSONTRUTHY_JSON_PRM_DSC_0", identifier: "value", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "jsn" }], examples: [{ input: 'IsJsonTruthy(JsonParse("true"))', output: "true" }, { input: 'IsJsonTruthy(JsonParse("false"))', output: "false" }, { input: 'IsJsonTruthy(JsonParse("Hello World"))', output: "true" }, { input: "IsJsonTruthy(ToJson(0))", output: "false" }, { input: 'IsJsonTruthy(JsonParse("{ \\"a\\": true, \\"b\\": 100, \\"c\\": [ true, false ] }"))', output: "true" }, { input: "IsJsonTruthy(ToJson(5 * 5))", output: "true" }] }], needsServerInfo: true }, deleteJsonObjectProperty: { identifier: "deleteJsonObjectProperty", description: "AR_FN_DSC_DELETEJSONOBJECTPROPERTY", type: "function", name: "DeleteJsonObjectProperty", category: "json", overloads: [{ description: "AR_FN_JSON_DELETEJSONOBJECTPROPERTY_JSON_STR_DSC", identifier: "JSON_ONE deleteJsonObjectProperty(JSON_ONE,String_ONE)", support: { version: "1.0", resolver: "None" }, supportedFlowTypes: { inboundcall: "inboundcall", inqueuecall: "inqueuecall", outboundcall: "outboundcall", securecall: "securecall", voicemail: "voicemail", emailsend: "emailsend", inboundchat: "inboundchat", inboundemail: "inboundemail", inboundshortmessage: "inboundshortmessage", inqueueemail: "inqueueemail", inqueueshortmessage: "inqueueshortmessage", surveyinvite: "surveyinvite", workflow: "workflow", workitem: "workitem" }, needsServerInfo: true, returnValue: { description: "AR_FN_JSON_DELETEJSONOBJECTPROPERTY_JSON_STR_RV", isArray: false, type: "jsn" }, parameters: [{ allowNotSet: false, allowCustomJson: true, description: "AR_FN_JSON_DELETEJSONOBJECTPROPERTY_JSON_STR_PRM_DSC_0", identifier: "jsonObject", isArray: false, helpDisplayIdx: 0, repeatable: false, required: true, type: "jsn" }, { allowNotSet: false, allowCustomJson: false, description: "AR_FN_JSON_DELETEJSONOBJECTPROPERTY_JSON_STR_PRM_DSC_1", identifier: "propertyName", isArray: false, helpDisplayIdx: 1, repeatable: false, required: true, type: "str" }], examples: [{ input: 'DeleteJsonObjectProperty(JsonParse("{ \\"a\\": true, \\"b\\": 100, \\"c\\": [ true, false ] }"), "c")', output: "AR_FN_JSON_DELETEJSONOBJECTPROPERTY_JSON_STR_EX_OUT_0" }, { input: 'DeleteJsonObjectProperty(JsonParse("{ \\"a\\": true, \\"b\\": 100, \\"d\\": [ true, false ] }"), "c")', output: "AR_FN_JSON_DELETEJSONOBJECTPROPERTY_JSON_STR_EX_OUT_1" }] }], needsServerInfo: true }, getJsonObjectProperty: { identifier: "getJsonObjectProperty", description: "AR_FN_DSC_GETJSONOBJECTPROPERTY", type: "function", name: "GetJsonObjectProperty", category: "json", overloads: [{ description: "AR_FN_JSON_GETJSONOBJECTPROPERTY_JSON_STR_DSC", identifier: "JSON_ONE getJsonObjectProperty(JSON_ONE,String_ONE)", support: { version: "1.0", resolver: "None" }, supportedFlowTypes: { inboundcall: "inboundcall", inqueuecall: "inqueuecall", outboundcall: "outboundcall", securecall: "securecall", voicemail: "voicemail", emailsend: "emailsend", inboundchat: "inboundchat", inboundemail: "inboundemail", inboundshortmessage: "inboundshortmessage", inqueueemail: "inqueueemail", inqueueshortmessage: "inqueueshortmessage", surveyinvite: "surveyinvite", workflow: "workflow", workitem: "workitem" }, needsServerInfo: true, returnValue: { description: "AR_FN_JSON_GETJSONOBJECTPROPERTY_JSON_STR_RV", isArray: false, type: "jsn" }, parameters: [{ allowNotSet: false, allowCustomJson: true, description: "AR_FN_JSON_GETJSONOBJECTPROPERTY_JSON_STR_PRM_DSC_0", identifier: "jsonObject", isArray: false, helpDisplayIdx: 0, repeatable: false, required: true, type: "jsn" }, { allowNotSet: false, allowCustomJson: false, description: "AR_FN_JSON_GETJSONOBJECTPROPERTY_JSON_STR_PRM_DSC_1", identifier: "propertyName", isArray: false, helpDisplayIdx: 1, repeatable: false, required: true, type: "str" }], examples: [{ input: 'GetJsonObjectProperty(JsonParse("{ \\"firstName\\": \\"John\\", \\"lastName\\": \\"Doe\\" }"), "firstName")', output: "AR_FN_JSON_GETJSONOBJECTPROPERTY_JSON_STR_EX_OUT_0" }, { input: 'GetJsonObjectProperty(JsonParse("{ \\"firstName\\": \\"John\\", \\"lastName\\": \\"Doe\\" }"), Append("last", "Name"))', output: "AR_FN_JSON_GETJSONOBJECTPROPERTY_JSON_STR_EX_OUT_1" }, { input: 'GetJsonObjectProperty(JsonParse("{ \\"firstName\\": \\"John\\", \\"lastName\\": \\"Doe\\" }"), "FirstName")', output: "AR_FN_JSON_GETJSONOBJECTPROPERTY_JSON_STR_EX_OUT_2" }, { input: 'GetJsonObjectProperty(JsonParse("{ \\"additionalInfo\\": null }"), "additionalInfo")', output: "AR_FN_JSON_GETJSONOBJECTPROPERTY_JSON_STR_EX_OUT_3" }, { input: 'GetJsonObjectProperty(MakeEmptyJsonObject(), "accountId")', output: "AR_FN_JSON_GETJSONOBJECTPROPERTY_JSON_STR_EX_OUT_4" }] }], needsServerInfo: true }, getJsonObjectPropertyNames: { identifier: "getJsonObjectPropertyNames", description: "AR_FN_DSC_GETJSONOBJECTPROPERTYNAMES", type: "function", name: "GetJsonObjectPropertyNames", category: "json", overloads: [{ description: "AR_FN_STR_COLL_GETJSONOBJECTPROPERTYNAMES_JSON_DSC", identifier: "String_COLL getJsonObjectPropertyNames(JSON_ONE)", support: { version: "1.0", resolver: "None" }, supportedFlowTypes: { inboundcall: "inboundcall", inqueuecall: "inqueuecall", outboundcall: "outboundcall", securecall: "securecall", voicemail: "voicemail", emailsend: "emailsend", inboundchat: "inboundchat", inboundemail: "inboundemail", inboundshortmessage: "inboundshortmessage", inqueueemail: "inqueueemail", inqueueshortmessage: "inqueueshortmessage", surveyinvite: "surveyinvite", workflow: "workflow", workitem: "workitem" }, needsServerInfo: true, returnValue: { description: "AR_FN_STR_COLL_GETJSONOBJECTPROPERTYNAMES_JSON_RV", isArray: true, type: "str" }, parameters: [{ allowNotSet: false, allowCustomJson: true, description: "AR_FN_STR_COLL_GETJSONOBJECTPROPERTYNAMES_JSON_PRM_DSC_0", identifier: "jsonObject", isArray: false, helpDisplayIdx: 0, repeatable: false, required: true, type: "jsn" }], examples: [{ input: 'GetJsonObjectPropertyNames(JsonParse("{ \\"a\\": true, \\"b\\": 100, \\"c\\": [ true, false ] }"))', output: '[ "a", "b", "c" ]' }] }], needsServerInfo: true }, setJsonObjectProperty: { identifier: "setJsonObjectProperty", description: "AR_FN_DSC_SETJSONOBJECTPROPERTY", type: "function", name: "SetJsonObjectProperty", category: "json", overloads: [{ description: "AR_FN_JSON_SETJSONOBJECTPROPERTY_JSON_STR_ANY_DSC", identifier: "JSON_ONE setJsonObjectProperty(JSON_ONE,String_ONE,Any_ONE)", support: { version: "1.0", resolver: "None" }, supportedFlowTypes: { inboundcall: "inboundcall", inqueuecall: "inqueuecall", outboundcall: "outboundcall", securecall: "securecall", voicemail: "voicemail", emailsend: "emailsend", inboundchat: "inboundchat", inboundemail: "inboundemail", inboundshortmessage: "inboundshortmessage", inqueueemail: "inqueueemail", inqueueshortmessage: "inqueueshortmessage", surveyinvite: "surveyinvite", workflow: "workflow", workitem: "workitem" }, needsServerInfo: true, returnValue: { description: "AR_FN_JSON_SETJSONOBJECTPROPERTY_JSON_STR_ANY_RV", isArray: false, type: "jsn" }, parameters: [{ allowNotSet: false, allowCustomJson: true, description: "AR_FN_JSON_SETJSONOBJECTPROPERTY_JSON_STR_ANY_PRM_DSC_0", identifier: "jsonObject", isArray: false, helpDisplayIdx: 0, repeatable: false, required: true, type: "jsn" }, { allowNotSet: false, allowCustomJson: false, description: "AR_FN_JSON_SETJSONOBJECTPROPERTY_JSON_STR_ANY_PRM_DSC_1", identifier: "keyToSet", isArray: false, helpDisplayIdx: 1, repeatable: false, required: true, type: "str" }, { allowNotSet: true, allowCustomJson: false, description: "AR_FN_JSON_SETJSONOBJECTPROPERTY_JSON_STR_ANY_PRM_DSC_2", identifier: "valueToSet", isArray: false, helpDisplayIdx: 2, repeatable: false, required: false, type: "any" }], examples: [{ input: 'SetJsonObjectProperty(MakeEmptyJsonObject(), "myKey", 42)', output: "AR_FN_JSON_SETJSONOBJECTPROPERTY_JSON_STR_ANY_EX_OUT_0" }, { input: 'SetJsonObjectProperty(JsonParse("{ \\"a\\": true, \\"b\\": 100, \\"c\\": [ true, false ] }"), "A", 5)', output: "AR_FN_JSON_SETJSONOBJECTPROPERTY_JSON_STR_ANY_EX_OUT_1" }] }, { description: "AR_FN_JSON_SETJSONOBJECTPROPERTY_JSON_STR_ANY_COLL_DSC", identifier: "JSON_ONE setJsonObjectProperty(JSON_ONE,String_ONE,Any_COLL)", support: { version: "1.0", resolver: "None" }, supportedFlowTypes: { inboundcall: "inboundcall", inqueuecall: "inqueuecall", outboundcall: "outboundcall", securecall: "securecall", voicemail: "voicemail", emailsend: "emailsend", inboundchat: "inboundchat", inboundemail: "inboundemail", inboundshortmessage: "inboundshortmessage", inqueueemail: "inqueueemail", inqueueshortmessage: "inqueueshortmessage", surveyinvite: "surveyinvite", workflow: "workflow", workitem: "workitem" }, needsServerInfo: true, returnValue: { description: "AR_FN_JSON_SETJSONOBJECTPROPERTY_JSON_STR_ANY_COLL_RV", isArray: false, type: "jsn" }, parameters: [{ allowNotSet: false, allowCustomJson: true, description: "AR_FN_JSON_SETJSONOBJECTPROPERTY_JSON_STR_ANY_COLL_PRM_DSC_0", identifier: "jsonObject", isArray: false, helpDisplayIdx: 0, repeatable: false, required: true, type: "jsn" }, { allowNotSet: false, allowCustomJson: false, description: "AR_FN_JSON_SETJSONOBJECTPROPERTY_JSON_STR_ANY_COLL_PRM_DSC_1", identifier: "keyToSet", isArray: false, helpDisplayIdx: 1, repeatable: false, required: true, type: "str" }, { allowNotSet: false, allowCustomJson: false, description: "AR_FN_JSON_SETJSONOBJECTPROPERTY_JSON_STR_ANY_COLL_PRM_DSC_2", identifier: "valueToSet", isArray: true, helpDisplayIdx: 2, repeatable: false, required: true, type: "any" }], examples: [{ input: 'SetJsonObjectProperty(MakeEmptyJsonObject(), "myKeys", MakeList(42, 180))', output: "AR_FN_JSON_SETJSONOBJECTPROPERTY_JSON_STR_ANY_COLL_EX_OUT_0" }] }], needsServerInfo: true }, getKnowledgeBaseDocumentConfidence: { identifier: "getKnowledgeBaseDocumentConfidence", description: "AR_FN_DSC_GETKNOWLEDGEBASEDOCUMENTCONFIDENCE", type: "function", name: "GetKnowledgeBaseDocumentConfidence", category: "statistical", overloads: [{ description: "AR_FN_DEC_GETKNOWLEDGEBASEDOCUMENTCONFIDENCE_KNOWLEDGEBASEDOCUMENT_DSC", identifier: "Decimal_ONE getKnowledgeBaseDocumentConfidence(KnowledgeBaseDocument_ONE)", support: { version: "1.0", resolver: "None" }, needsServerInfo: true, returnValue: { description: "AR_FN_DEC_GETKNOWLEDGEBASEDOCUMENTCONFIDENCE_KNOWLEDGEBASEDOCUMENT_RV", isArray: false, type: "dec" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_DEC_GETKNOWLEDGEBASEDOCUMENTCONFIDENCE_KNOWLEDGEBASEDOCUMENT_PRM_DSC_0", identifier: "knowledgeBaseDocument", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "kbd" }], examples: [{ input: "GetKnowledgeBaseDocumentConfidence(Flow.document)", output: "AR_FN_DEC_GETKNOWLEDGEBASEDOCUMENTCONFIDENCE_KNOWLEDGEBASEDOCUMENT_EX_OUT_0" }] }, { description: "AR_FN_DEC_GETKNOWLEDGEBASEDOCUMENTCONFIDENCE_NTS_DSC", identifier: "Decimal_ONE getKnowledgeBaseDocumentConfidence(Null_ONE)", support: { version: "1.0", resolver: "NotSetToRetType" }, needsServerInfo: true, returnValue: { description: "AR_FN_DEC_GETKNOWLEDGEBASEDOCUMENTCONFIDENCE_NTS_RV", isArray: false, type: "dec" }, parameters: [{ allowNotSet: true, allowCustomJson: false, description: "AR_FN_DEC_GETKNOWLEDGEBASEDOCUMENTCONFIDENCE_NTS_PRM_DSC_0", identifier: "KnowledgeBaseDocument", isArray: false, helpDisplayIdx: 0, repeatable: false, required: false, type: "nts" }], examples: [{ input: "GetKnowledgeBaseDocumentConfidence(NOT_SET)", output: "AR_FN_DEC_GETKNOWLEDGEBASEDOCUMENTCONFIDENCE_NTS_EX_OUT_0" }] }], needsServerInfo: true } } }; + }, 34014: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = i2(30801), o = n2.__importDefault(i2(61203)); + class a extends o.default { + constructor(e3) { + super(e3); + } + get _actionTypeId() { + return r2.transferFlowSecureActionType; + } + get displayTypeName() { + return "ArchMenuTransferToFlowSecure"; + } + get actionTransferToFlowSecure() { + return this._archAction; + } + get isArchMenuTransferToFlowSecure() { + return true; + } + } + t2.default = a; + }, 34015: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importDefault(i2(92140)), o = n2.__importDefault(i2(51695)), a = i2(1115); + class s extends o.default { + constructor(e3, t3, i3) { + super(), this.model = e3, this.type = t3, this.value = i3; + } + get contents() { + return [this.value]; + } + get id() { + return "dpp-" + this.value.id; + } + get className() { + return "DataPairViewModel"; + } + getConfiguration(e3, t3, i3) { + if (null == t3 ? void 0 : t3.isForFlowYaml) { + let n3; + if ((null == i3 ? void 0 : i3.wrapDataPairNameAndValueInTypeString) ? n3 = this.type.yamlTypeName : r2.default.isString(null == i3 ? void 0 : i3.wrapDataPairNameAndValueInString) && (n3 = null == i3 ? void 0 : i3.wrapDataPairNameAndValueInString), r2.default.isString(n3)) { + const o2 = { name: this.name || "" }; + return this.value.outOfService || (o2.value = this.value.getConfiguration(e3, t3, i3)), r2.default.tryWrapObject(o2, n3); + } + return r2.default.tryWrapObject(this.value.getConfiguration(e3, t3), this.name); + } + return this.model; + } + get isDataPairViewModel() { + return true; + } + get cardLabel() { + return this.name; + } + get name() { + return this.model.name; + } + set name(e3) { + this.model.name === e3 && this.value.label === e3 || (this.model.name = e3, this.value.label = e3, this.value.parent && this.value.parent.initializeDesignTimeCalled && a.validateNode(this.value.parent, true)); + } + get referenceId() { + return this.model.referenceId; + } + set referenceId(e3) { + this.model.referenceId = e3; + } + } + t2.default = s; + }, 34345: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importDefault(i2(11210)), o = n2.__importDefault(i2(90077)), a = n2.__importDefault(i2(38142)), s = n2.__importDefault(i2(96481)), l = n2.__importDefault(i2(14820)), u = i2(74797), d = n2.__importDefault(i2(79200)), c = n2.__importDefault(i2(19047)), p = n2.__importDefault(i2(65294)), _ = n2.__importDefault(i2(93523)), h = n2.__importDefault(i2(92661)), m = n2.__importDefault(i2(35958)), g = n2.__importDefault(i2(91981)), f = n2.__importDefault(i2(2257)), T = n2.__importDefault(i2(65485)), y = n2.__importDefault(i2(56265)), S = n2.__importDefault(i2(67193)), A = n2.__importDefault(i2(82472)), N = n2.__importDefault(i2(62957)), O = n2.__importDefault(i2(15453)), I = n2.__importDefault(i2(25298)), v = n2.__importDefault(i2(57382)), C = n2.__importDefault(i2(65305)), b = n2.__importDefault(i2(27873)), E = n2.__importDefault(i2(1012)), R = n2.__importDefault(i2(13297)), w = n2.__importDefault(i2(90897)), D = n2.__importDefault(i2(15137)), P = n2.__importDefault(i2(21345)), M = n2.__importDefault(i2(97122)), F = n2.__importDefault(i2(13002)), L = n2.__importDefault(i2(95085)), x = n2.__importDefault(i2(32392)), k = n2.__importDefault(i2(67336)), V = n2.__importDefault(i2(37873)), U = i2(39637), B = n2.__importDefault(i2(33423)), G = n2.__importDefault(i2(91722)), j = n2.__importDefault(i2(74369)), W = n2.__importDefault(i2(66872)), q = n2.__importDefault(i2(16731)), Y = n2.__importDefault(i2(25498)), H = n2.__importDefault(i2(23714)), J = n2.__importDefault(i2(88308)), z = n2.__importDefault(i2(16434)), K = n2.__importDefault(i2(42175)), $ = n2.__importDefault(i2(62028)), Q = n2.__importDefault(i2(6074)), X = n2.__importDefault(i2(21434)), Z = n2.__importDefault(i2(4897)), ee = n2.__importDefault(i2(85383)), te = n2.__importDefault(i2(40559)), ie = n2.__importDefault(i2(16468)), ne = n2.__importDefault(i2(45894)), re = n2.__importDefault(i2(8471)), oe = n2.__importDefault(i2(13720)), ae = n2.__importDefault(i2(25446)), se = n2.__importDefault(i2(6458)), le = n2.__importDefault(i2(46209)), ue = n2.__importDefault(i2(23335)), de = n2.__importDefault(i2(17405)), ce = n2.__importDefault(i2(54063)), pe = n2.__importDefault(i2(54757)), _e = n2.__importDefault(i2(55988)), he = n2.__importDefault(i2(81574)), me = n2.__importDefault(i2(31824)), ge = n2.__importDefault(i2(20692)), fe = n2.__importDefault(i2(84655)), Te = n2.__importDefault(i2(47743)), ye = n2.__importDefault(i2(7990)), Se = { ArchBaseAction: r2.default, ArchBaseActionAsk: o.default, ArchBaseActionAskNoInputNoMatch: a.default, ArchBaseActionNoInputNoMatch: T.default, ArchBaseActionBot: s.default, ArchBaseActionBotWithSessionVariables: l.default, ArchBaseActionConversationAttribute: u.ArchBaseActionConversationAttribute, ArchBaseActionDataAction: d.default, ArchBaseDefinition: U.ArchBaseDefinition, ArchBaseActionFindSystemObject: c.default, ArchBaseActionFindSystemObjects: p.default, ArchBaseActionFindSystemObjectById: _.default, ArchBaseActionFindSystemObjectByName: h.default, ArchBaseActionFindSystemObjectsById: m.default, ArchBaseActionGetSecuredData: g.default, ArchBaseActionLex: f.default, ArchBaseActionSetSecuredData: y.default, ArchBaseActionTransfer: S.default, ArchBaseActionTransferWithConnectTimeout: A.default, ArchBaseActionWithOutputFailure: N.default, ArchBaseActionWithOutputLoop: O.default, ArchBaseActionWithOutputLoopMaxLoopsNextLoop: I.default, ArchBaseActionWithOutputs: v.default, ArchBaseActionWithOutputsDefaults: C.default, ArchBaseActionWithOutputsFailureNoInput: b.default, ArchBaseActionWithOutputsFakeSuccessFailure: E.default, ArchBaseActionWithOutputsFakeSuccessFailureTimeout: R.default, ArchBaseActionWithOutputsFoundNotFoundFailure: w.default, ArchBaseActionWithOutputsFoundNotFoundPartiallyFound: D.default, ArchBaseActionWithOutputsSuccessFailure: P.default, ArchBaseActionWithOutputsSuccessFailureNoInputNoMatch: F.default, ArchBaseActionWithOutputsSuccessFailureTimeout: L.default, ArchBaseActionWithOutputsSuccessFailureCanceled: M.default, ArchBaseActionWithOutputsYesNo: x.default, ArchBaseCoreObject: k.default, ArchBaseCoreObjectWithId: V.default, ArchBaseFilterClause: B.default, ArchBaseFilterClauseProperty: G.default, ArchBaseFilterClausePropertyValue: j.default, ArchBaseFilterMatching: oe.default, ArchBaseFlow: W.default, ArchBaseFlowBot: q.default, ArchBaseFlowInboundOutboundSecureCall: Y.default, ArchBaseFlowWithMenus: H.default, ArchBaseFlowWithTasks: J.default, ArchBaseFlowWorkflow: z.default, ArchBaseMenu: K.default, ArchBaseMenuChoice: $.default, ArchBaseMultiActionContainer: Q.default, ArchBaseNameValuePair: X.default, ArchBaseNameValuePairs: Z.default, ArchBaseNetworkValue: ee.default, ArchBaseNetworkValueCollection: te.default, ArchBaseNetworkValueContainer: ie.default, ArchBaseNetworkValueSingleton: ne.default, ArchBaseObject: re.default, ArchBasePrompt: ae.default, ArchBaseSkillValuePair: se.default, ArchBaseSkillValuePairs: le.default, ArchBaseValue: ue.default, ArchBaseValueBasic: de.default, ArchBaseValueCollection: ce.default, ArchBaseValueCollectionBasic: pe.default, ArchBaseValueContainer: _e.default, ArchBaseValueSingleton: he.default, ArchBaseVariable: me.default, ArchBaseVariableCollection: ge.default, ArchBaseVariableSingleton: fe.default, ArchBaseVariableValuePair: Te.default, ArchBaseVariableValuePairs: ye.default }; + t2.default = Se; + }, 34475: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.getAdminAgenticVirtualAgentUrl = function(e3) { + return `${r2}/ai-studio/agentic-virtual-agents${e3 ? `/agent/${e3}` : ""}`; + }, t2.getAdminCannedResponsesUrl = function(e3) { + if (e3) return `${r2}/responseManagement/responses/detail/${e3}/library/edit`; + }, t2.getAdminConversationSchemaUrl = function(e3) { + return `${r2}/conversation-schemas${e3 ? `/${e3}` : ""}`; + }, t2.getAdminConversationSummarySettingUrl = function(e3) { + return `${r2}/ai-studio/summary-workbench${e3 ? `/config/${e3}` : ""}`; + }, t2.getAdminGuideUrl = function(e3) { + return `${r2}/ai-studio/guides${e3 ? `/guide/${e3}` : ""}`; + }, t2.getCopilotBaseUrl = function() { + return `${n2}/copilot-framework/`; + }, t2.getAdminKnowledgeBaseUrl = function(e3) { + return `${r2}/knowledge/knowledgeBases/articles${e3 ? `?kbId=${e3}` : ""}`; + }, t2.getAdminKnowledgeSettingUrl = function(e3) { + return `${r2}/knowledge/knowledgeConfiguration/configurations/${e3 ? `${e3}/edit` : ""}`; + }, t2.getAdminOrganizationSettingsUrl = function() { + return `${r2}/organization/settings`; + }, t2.getAdminPredictiveEngagementActionMapUrl = function() { + return `${r2}/embed/engagement/action-map/`; + }, t2.getAdminProcessAutomationEventTriggersUrl = function() { + return `${r2}/triggers/edit/`; + }, t2.getAdminProcessAutomationScheduledTriggersUrl = function() { + return `${r2}/triggers/scheduled/edit/`; + }, t2.getAdminQualityPoliciesUrl = function() { + return `${s}/quality/admin/policies/mediaRetention/update/`; + }, t2.getWorkitemUrl = function() { + return l; + }, t2.getAdminSurveyFormsUrl = u, t2.getAdminSurveyFormUrl = function(e3) { + return `${u()}/${e3}`; + }, t2.getAdminWorktypeCustomAttributesUrl = d, t2.getAdminWorktypeCustomAttributeSchemaUrl = function(e3) { + return `${d()}/edit/${e3}`; + }, t2.getAdminWorktypesUrl = c, t2.getAdminWorktypeUrl = function(e3) { + return `${c()}/${e3}/preview`; + }, t2.getAnalyticsBotFlowPerformanceUrl = function(e3) { + return `${a}/bots/${e3}/performance`; + }, t2.getAnalyticsSurveyFormPerformanceUrl = function(e3) { + return `${a}/quality/surveys/${e3}/performance`; + }, t2.getAnalyticsInteractionReportForFlowUrl = function(e3) { + return `${a}/interactions?flow=${e3}`; + }, t2.getAnalyticsVirtualAgentPerformanceForFlowUrl = function(e3) { + return `${a}/virtual-agent/performance${e3 ? `?virtualAgent=${e3}` : ""}`; + }, t2.getArchitectFlowsBaseUrl = function(e3) { + return `${o}/${e3}/flows`; + }, t2.getDialogEngineWorkbenchUrl = function() { + return `${n2}/dialog-engine/#/`; + }, t2.getKnowledgeBaseWorkbenchUrl = function(e3) { + return `${n2}/knowledge-workbench/#/knowledgeBases${e3 ? `/${e3}` : ""}`; + }, t2.getPubApiWorktypeCustomAttributeSchemaUrl = function(e3) { + return `/api/v2/taskmanagement/workitems/schemas/${e3}`; + }; + const n2 = `https://${i2(31635).__importStar(i2(35515)).values.host}`, r2 = `${n2}/directory/#/admin`, o = `${n2}/architect/#`, a = `${n2}/directory/#/analytics`, s = `${n2}/directory/#/engage`, l = `${n2}/task-management-workitems/#/workitems`; + function u() { + return `${r2}/quality/surveyForms`; + } + function d() { + return `${r2}/custom-attributes`; + } + function c() { + return `${r2}/worktypes`; + } + }, 34490: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.LexAliasViewModel = void 0; + const n2 = i2(31635), r2 = n2.__importDefault(i2(92140)), o = i2(43212), a = n2.__importDefault(i2(56133)), s = n2.__importDefault(i2(27579)); + class l extends o.BaseConfigurationListViewModel { + constructor(e3) { + super(e3), this.fullBotNotLoaded = true, this._errorSchema = (0, s.default)(); + } + get className() { + return "LexAliasViewModel"; + } + get aliasId() { + return this.model.id; + } + get botId() { + var e3; + return null === (e3 = this.model.bot) || void 0 === e3 ? void 0 : e3.id; + } + get botName() { + return this.model.bot && this.model.bot.name; + } + get errorSchema() { + return this._errorSchema; + } + getConfiguration() { + return this.model; + } + get id() { + return this.model.id; + } + get label() { + return this.model.name || ""; + } + get languages() { + return [this.model.language]; + } + get model() { + return this._model; + } + set model(e3) { + this._model = e3, this.intents = [], this._model.intents && r2.default.each(this._model.intents, (e4) => { + this.intents.push(new a.default(r2.default.clone(e4))); + }); + } + get name() { + return this.model.name; + } + get status() { + return this.model.status || ""; + } + } + t2.LexAliasViewModel = l; + }, 34611: (e2, t2, i2) => { + "use strict"; + const n2 = i2(31635), r2 = n2.__importDefault(i2(19613)), o = i2(66314), a = n2.__importDefault(i2(85499)), s = i2(79519), l = i2(79519), u = i2(33264), d = i2(50661), c = i2(12179), p = i2(99469), _ = n2.__importDefault(i2(97891)), h = i2(87870), m = i2(28803), g = i2(17604), f = n2.__importDefault(i2(65302)), T = i2(47957); + class y extends r2.default { + get selectedItemNetworkProperty() { + return this.decisionTable; + } + constructor(e3, t3) { + super(e3, t3), this._loadModel(t3); + } + get isCallDecisionTableAction() { + return true; + } + static get managedProperties() { + const e3 = y.createCustomJsonProperties(); + return [{ property: "decisionTable", label: T.decisionTable.decisionTableLabel, createDetails: m.NetworkBasedActionProperty.createCreateDetails("decisionTableId", "decisionTableName", u.decisionTableManager, T.decisionTable.mustSelectDecisionTable, T.decisionTable.decisionTableNotFound, null), yamlOptions: y.createYamlOptions("callDecisionTable", (e4) => e4.setSkipProperty(true)), options: p.ManagedPropertyOptions.create((e4) => e4.setDescriptionInfo(T.decisionTable.decisionTableLabel, T.decisionTable.decisionTableDescription).setDropdownPlaceholder(T.decisionTable.selectDecisionTable).setIninTestingField("selectDecisionTable")) }, { createDetails: h.NoteActionProperty.createCreateDetails((0, g.sprintf)(T.decisionTable.decisionTableUsageFeesNote), "info", "callDecisionTableUsageFees"), property: "actionInformationalMessage", yamlOptions: y.createYamlOptions("actionInformationalMessage", (e4) => e4.setSkipProperty(true)) }, ...e3]; + } + getConfiguration(e3, t3) { + var i3; + if (e3 = super.getConfiguration(e3, t3), null == t3 ? void 0 : t3.isForFlowYaml) { + const n3 = null === (i3 = this.decisionTable) || void 0 === i3 ? void 0 : i3.getConfiguration(e3, t3); + if (!n3) return e3; + e3.callDecisionTable.decisionTable = n3; + } + return e3; + } + createOrUpdateCustomJsonTypes() { + return n2.__awaiter(this, void 0, void 0, function* () { + var e3, t3, i3, n3, r3, o2; + let a2 = this.decisionTable.getItem(); + if (!(null === (e3 = a2.model) || void 0 === e3 ? void 0 : e3.publishedContract)) try { + a2 = yield u.decisionTableManager.getOrFetchItem(this.decisionTable.idValue); + } catch (e4) { + return void this.topic.error(`Failed to fetch decision table: ${null === (t3 = this.decisionTable) || void 0 === t3 ? void 0 : t3.idValue}.`); + } + this.inputCustomJsonTypeManager = this._getOrCreateCustomJsonManager(a2, true), this.outputCustomJsonTypeManager = this._getOrCreateCustomJsonManager(a2, false); + const s2 = null === (n3 = null === (i3 = null == a2 ? void 0 : a2.model) || void 0 === i3 ? void 0 : i3.publishedContract) || void 0 === n3 ? void 0 : n3.executionInputSchema, l2 = null === (o2 = null === (r3 = null == a2 ? void 0 : a2.model) || void 0 === r3 ? void 0 : r3.publishedContract) || void 0 === o2 ? void 0 : o2.executionOutputSchema; + if (s2 && l2 || this.topic.error(`We did not receive the expected schemas. Here is the response object we received: ${JSON.stringify(a2)}`), this.inputCustomJsonTypeManager.tryUpdateParentExpressionPropTypeFromSchema(s2, true, this.isReadOnly, true, this.input), this.outputCustomJsonTypeManager.tryUpdateParentExpressionPropTypeFromSchema(l2, true, this.isReadOnly, true, this.output), !this.inputCustomJsonTypeManager.customDataType || !this.outputCustomJsonTypeManager.customDataType) { + const e4 = f.default.getType(this.parent, "jsn", false); + return this.input.type = e4, this.output.type = e4, void this.topic.error(`Custom type creation failed for a value of ${s2} for inputSchema and ${l2} for outputSchema. Cannot create custom types.`); + } + this.input.type = this.inputCustomJsonTypeManager.customDataType, this.output.type = this.outputCustomJsonTypeManager.customDataType; + }); + } + setCachedCustomJsonTypesForInputOutput() { + var e3; + const t3 = null === (e3 = this.parentFlow.definitions) || void 0 === e3 ? void 0 : e3.customDataTypeExpressionType, i3 = t3.find((e4) => e4.dataType === this._inputDataTypeId), n3 = this.parentFlow.definitions.getCustomDataTypeDefinition(this._inputDataTypeId); + i3 && (this.input.type = i3, n3.addReader(this.input)); + const r3 = t3.find((e4) => e4.dataType === this._outputDataTypeId), o2 = this.parentFlow.definitions.getCustomDataTypeDefinition(this._outputDataTypeId); + r3 && (this.output.type = r3, o2.addReader(this.output)); + } + validate(e3) { + var t3; + super.validate(e3), !(null === (t3 = this.selectedItemNetworkProperty) || void 0 === t3 ? void 0 : t3.idValue) || this.input.type.isCustomType && this.output.type.isCustomType || e3.addError(this, T.decisionTable.unableToLoadDecisionTableInputOutputSchema); + } + _getOrCreateCustomJsonManager(e3, t3) { + var i3, n3, r3, o2; + return (null === (i3 = e3.model) || void 0 === i3 ? void 0 : i3.id) && (null === (n3 = e3.model) || void 0 === n3 ? void 0 : n3.name) ? a.default.getOrCreateDecisionTableCustomJsonManager(this.parentFlow, null === (r3 = e3.model) || void 0 === r3 ? void 0 : r3.name, null === (o2 = e3.model) || void 0 === o2 ? void 0 : o2.id, t3, T.variable.input, T.variable.output) : null; + } + _getPossibleErrors() { + return d.getCallDecisionTableFailureReasons; + } + get _inputDataTypeId() { + return (0, o.createCustomJsonExpressionDataTypeStr)(l.CustomJsonNamespace.decisionTable, this.decisionTableId, s.CustomJsonContext.input); + } + get _outputDataTypeId() { + return (0, o.createCustomJsonExpressionDataTypeStr)(l.CustomJsonNamespace.decisionTable, this.decisionTableId, s.CustomJsonContext.output); + } + } + y.info = _.default.createActionInfo({ actionClass: y, canBeInTask: true, helpTopic: c.helpTopics.actions.callDecisionTable, modelClass: i2(30249), name: T.actions.callDecisionTable, scriptingName: "ArchActionCallDecisionTable" }), t2.A = y; + }, 34621: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.default = function(e3, t3, i3) { + t3 || (t3 = e3); + const d = (0, n2.default)(e3, t3, r2.flowTypes.flowTypeSecureCall); + d.variables = []; + const c = new u(); + let p; + return c.variables = [], c.name = o(t3).mainTask, d.flowSequenceItemList = [c], d.initialSequence = c.id, i3 ? (p = new l(), p.name = a.actions.returnToAgent) : (p = new s(), p.name = a.actions.disconnect), c.actionList = [p], c.startAction = p.id, d; + }; + const n2 = i2(31635).__importDefault(i2(64499)), r2 = i2(96618), o = i2(21733), a = i2(47957), s = i2(44095), l = i2(63007), u = i2(92330); + }, 34622: (e2, t2, i2) => { + const n2 = i2(22124), r2 = i2(15338); + function o() { + o.baseConstructor.apply(this, arguments); + } + n2.extend(o, "ScriptList"), Object.defineProperties(o.prototype, { entities: { enumerable: true, get: function() { + return this._entities; + }, set: function(e3) { + this._entities = this.reviveArray(e3, r2); + } } }), e2.exports = o; + }, 34630: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.createSuggestion = s, t2.createFix = l, t2.createAppendTextFix = u, t2.createFixReplaceText = d, t2.createFixRemoveText = c, t2.createWrapTextFix = function(e3, t3, i3, n3) { + return l(o.CodeSuggestionWhatToDo.wrapText, e3, n3, void 0, t3, i3); + }, t2.createFixImplicitCast = function(e3, t3, i3, r3) { + const o2 = `${i3}()`, s2 = []; + return s2.push((0, n2.sprintf)(a.codeEditor.types.returnValueTypeMismatch, e3.displayString, t3.displayString, o2)), d((0, n2.sprintf)(a.codeEditor.suggestions.addFunctionCall, o2), `${i3}(${r3 || ""})`, s2.join(" ")); + }, t2.createFixAddMissingSeparator = function(e3) { + return u((0, n2.sprintf)(a.codeEditor.suggestions.addMissingSeparator, e3), e3 || ","); + }, t2.createFixRemoveUnnecessarySeparator = function(e3) { + return c((0, n2.sprintf)(a.codeEditor.suggestions.removeUnnecessarySeparator, e3)); + }; + const n2 = i2(17604), r2 = i2(17666), o = i2(17666), a = i2(47957); + function s(e3, t3, i3, n3, r3, o2, a2) { + return { type: e3, whatToDo: t3, displayString: i3, displayStringDetails: n3, text: r3, textWrapBefore: o2, textWrapAfter: a2 }; + } + function l(e3, t3, i3, n3, o2, a2) { + return s(r2.CodeSuggestionType.fix, e3, t3, i3, n3, o2, a2); + } + function u(e3, t3, i3) { + return l(o.CodeSuggestionWhatToDo.appendText, e3, i3, t3); + } + function d(e3, t3, i3) { + return l(o.CodeSuggestionWhatToDo.replaceText, e3, i3, t3); + } + function c(e3, t3) { + return l(o.CodeSuggestionWhatToDo.removeText, e3, t3); + } + }, 34707: (e2, t2, i2) => { + "use strict"; + i2.r(t2), i2.d(t2, { default: () => g }); + const n2 = { "Amazon Silk": "amazon_silk", "Android Browser": "android", Bada: "bada", BlackBerry: "blackberry", Chrome: "chrome", Chromium: "chromium", Electron: "electron", Epiphany: "epiphany", Firefox: "firefox", Focus: "focus", Generic: "generic", "Google Search": "google_search", Googlebot: "googlebot", "Internet Explorer": "ie", "K-Meleon": "k_meleon", Maxthon: "maxthon", "Microsoft Edge": "edge", "MZ Browser": "mz", "NAVER Whale Browser": "naver", Opera: "opera", "Opera Coast": "opera_coast", PhantomJS: "phantomjs", Puffin: "puffin", QupZilla: "qupzilla", QQ: "qq", QQLite: "qqlite", Safari: "safari", Sailfish: "sailfish", "Samsung Internet for Android": "samsung_internet", SeaMonkey: "seamonkey", Sleipnir: "sleipnir", Swing: "swing", Tizen: "tizen", "UC Browser": "uc", Vivaldi: "vivaldi", "WebOS Browser": "webos", WeChat: "wechat", "Yandex Browser": "yandex", Roku: "roku" }, r2 = { amazon_silk: "Amazon Silk", android: "Android Browser", bada: "Bada", blackberry: "BlackBerry", chrome: "Chrome", chromium: "Chromium", electron: "Electron", epiphany: "Epiphany", firefox: "Firefox", focus: "Focus", generic: "Generic", googlebot: "Googlebot", google_search: "Google Search", ie: "Internet Explorer", k_meleon: "K-Meleon", maxthon: "Maxthon", edge: "Microsoft Edge", mz: "MZ Browser", naver: "NAVER Whale Browser", opera: "Opera", opera_coast: "Opera Coast", phantomjs: "PhantomJS", puffin: "Puffin", qupzilla: "QupZilla", qq: "QQ Browser", qqlite: "QQ Browser Lite", safari: "Safari", sailfish: "Sailfish", samsung_internet: "Samsung Internet for Android", seamonkey: "SeaMonkey", sleipnir: "Sleipnir", swing: "Swing", tizen: "Tizen", uc: "UC Browser", vivaldi: "Vivaldi", webos: "WebOS Browser", wechat: "WeChat", yandex: "Yandex Browser" }, o = { tablet: "tablet", mobile: "mobile", desktop: "desktop", tv: "tv" }, a = { WindowsPhone: "Windows Phone", Windows: "Windows", MacOS: "macOS", iOS: "iOS", Android: "Android", WebOS: "WebOS", BlackBerry: "BlackBerry", Bada: "Bada", Tizen: "Tizen", Linux: "Linux", ChromeOS: "Chrome OS", PlayStation4: "PlayStation 4", Roku: "Roku" }, s = { EdgeHTML: "EdgeHTML", Blink: "Blink", Trident: "Trident", Presto: "Presto", Gecko: "Gecko", WebKit: "WebKit" }; + class l { + static getFirstMatch(e3, t3) { + const i3 = t3.match(e3); + return i3 && i3.length > 0 && i3[1] || ""; + } + static getSecondMatch(e3, t3) { + const i3 = t3.match(e3); + return i3 && i3.length > 1 && i3[2] || ""; + } + static matchAndReturnConst(e3, t3, i3) { + if (e3.test(t3)) return i3; + } + static getWindowsVersionName(e3) { + switch (e3) { + case "NT": + return "NT"; + case "XP": + case "NT 5.1": + return "XP"; + case "NT 5.0": + return "2000"; + case "NT 5.2": + return "2003"; + case "NT 6.0": + return "Vista"; + case "NT 6.1": + return "7"; + case "NT 6.2": + return "8"; + case "NT 6.3": + return "8.1"; + case "NT 10.0": + return "10"; + default: + return; + } + } + static getMacOSVersionName(e3) { + const t3 = e3.split(".").splice(0, 2).map((e4) => parseInt(e4, 10) || 0); + if (t3.push(0), 10 === t3[0]) switch (t3[1]) { + case 5: + return "Leopard"; + case 6: + return "Snow Leopard"; + case 7: + return "Lion"; + case 8: + return "Mountain Lion"; + case 9: + return "Mavericks"; + case 10: + return "Yosemite"; + case 11: + return "El Capitan"; + case 12: + return "Sierra"; + case 13: + return "High Sierra"; + case 14: + return "Mojave"; + case 15: + return "Catalina"; + default: + return; + } + } + static getAndroidVersionName(e3) { + const t3 = e3.split(".").splice(0, 2).map((e4) => parseInt(e4, 10) || 0); + if (t3.push(0), !(1 === t3[0] && t3[1] < 5)) return 1 === t3[0] && t3[1] < 6 ? "Cupcake" : 1 === t3[0] && t3[1] >= 6 ? "Donut" : 2 === t3[0] && t3[1] < 2 ? "Eclair" : 2 === t3[0] && 2 === t3[1] ? "Froyo" : 2 === t3[0] && t3[1] > 2 ? "Gingerbread" : 3 === t3[0] ? "Honeycomb" : 4 === t3[0] && t3[1] < 1 ? "Ice Cream Sandwich" : 4 === t3[0] && t3[1] < 4 ? "Jelly Bean" : 4 === t3[0] && t3[1] >= 4 ? "KitKat" : 5 === t3[0] ? "Lollipop" : 6 === t3[0] ? "Marshmallow" : 7 === t3[0] ? "Nougat" : 8 === t3[0] ? "Oreo" : 9 === t3[0] ? "Pie" : void 0; + } + static getVersionPrecision(e3) { + return e3.split(".").length; + } + static compareVersions(e3, t3, i3 = false) { + const n3 = l.getVersionPrecision(e3), r3 = l.getVersionPrecision(t3); + let o2 = Math.max(n3, r3), a2 = 0; + const s2 = l.map([e3, t3], (e4) => { + const t4 = o2 - l.getVersionPrecision(e4), i4 = e4 + new Array(t4 + 1).join(".0"); + return l.map(i4.split("."), (e5) => new Array(20 - e5.length).join("0") + e5).reverse(); + }); + for (i3 && (a2 = o2 - Math.min(n3, r3)), o2 -= 1; o2 >= a2; ) { + if (s2[0][o2] > s2[1][o2]) return 1; + if (s2[0][o2] === s2[1][o2]) { + if (o2 === a2) return 0; + o2 -= 1; + } else if (s2[0][o2] < s2[1][o2]) return -1; + } + } + static map(e3, t3) { + const i3 = []; + let n3; + if (Array.prototype.map) return Array.prototype.map.call(e3, t3); + for (n3 = 0; n3 < e3.length; n3 += 1) i3.push(t3(e3[n3])); + return i3; + } + static find(e3, t3) { + let i3, n3; + if (Array.prototype.find) return Array.prototype.find.call(e3, t3); + for (i3 = 0, n3 = e3.length; i3 < n3; i3 += 1) { + const n4 = e3[i3]; + if (t3(n4, i3)) return n4; + } + } + static assign(e3, ...t3) { + const i3 = e3; + let n3, r3; + if (Object.assign) return Object.assign(e3, ...t3); + for (n3 = 0, r3 = t3.length; n3 < r3; n3 += 1) { + const e4 = t3[n3]; + "object" == typeof e4 && null !== e4 && Object.keys(e4).forEach((t4) => { + i3[t4] = e4[t4]; + }); + } + return e3; + } + static getBrowserAlias(e3) { + return n2[e3]; + } + static getBrowserTypeByAlias(e3) { + return r2[e3] || ""; + } + } + const u = /version\/(\d+(\.?_?\d+)+)/i, d = [{ test: [/googlebot/i], describe(e3) { + const t3 = { name: "Googlebot" }, i3 = l.getFirstMatch(/googlebot\/(\d+(\.\d+))/i, e3) || l.getFirstMatch(u, e3); + return i3 && (t3.version = i3), t3; + } }, { test: [/opera/i], describe(e3) { + const t3 = { name: "Opera" }, i3 = l.getFirstMatch(u, e3) || l.getFirstMatch(/(?:opera)[\s/](\d+(\.?_?\d+)+)/i, e3); + return i3 && (t3.version = i3), t3; + } }, { test: [/opr\/|opios/i], describe(e3) { + const t3 = { name: "Opera" }, i3 = l.getFirstMatch(/(?:opr|opios)[\s/](\S+)/i, e3) || l.getFirstMatch(u, e3); + return i3 && (t3.version = i3), t3; + } }, { test: [/SamsungBrowser/i], describe(e3) { + const t3 = { name: "Samsung Internet for Android" }, i3 = l.getFirstMatch(u, e3) || l.getFirstMatch(/(?:SamsungBrowser)[\s/](\d+(\.?_?\d+)+)/i, e3); + return i3 && (t3.version = i3), t3; + } }, { test: [/Whale/i], describe(e3) { + const t3 = { name: "NAVER Whale Browser" }, i3 = l.getFirstMatch(u, e3) || l.getFirstMatch(/(?:whale)[\s/](\d+(?:\.\d+)+)/i, e3); + return i3 && (t3.version = i3), t3; + } }, { test: [/MZBrowser/i], describe(e3) { + const t3 = { name: "MZ Browser" }, i3 = l.getFirstMatch(/(?:MZBrowser)[\s/](\d+(?:\.\d+)+)/i, e3) || l.getFirstMatch(u, e3); + return i3 && (t3.version = i3), t3; + } }, { test: [/focus/i], describe(e3) { + const t3 = { name: "Focus" }, i3 = l.getFirstMatch(/(?:focus)[\s/](\d+(?:\.\d+)+)/i, e3) || l.getFirstMatch(u, e3); + return i3 && (t3.version = i3), t3; + } }, { test: [/swing/i], describe(e3) { + const t3 = { name: "Swing" }, i3 = l.getFirstMatch(/(?:swing)[\s/](\d+(?:\.\d+)+)/i, e3) || l.getFirstMatch(u, e3); + return i3 && (t3.version = i3), t3; + } }, { test: [/coast/i], describe(e3) { + const t3 = { name: "Opera Coast" }, i3 = l.getFirstMatch(u, e3) || l.getFirstMatch(/(?:coast)[\s/](\d+(\.?_?\d+)+)/i, e3); + return i3 && (t3.version = i3), t3; + } }, { test: [/opt\/\d+(?:.?_?\d+)+/i], describe(e3) { + const t3 = { name: "Opera Touch" }, i3 = l.getFirstMatch(/(?:opt)[\s/](\d+(\.?_?\d+)+)/i, e3) || l.getFirstMatch(u, e3); + return i3 && (t3.version = i3), t3; + } }, { test: [/yabrowser/i], describe(e3) { + const t3 = { name: "Yandex Browser" }, i3 = l.getFirstMatch(/(?:yabrowser)[\s/](\d+(\.?_?\d+)+)/i, e3) || l.getFirstMatch(u, e3); + return i3 && (t3.version = i3), t3; + } }, { test: [/ucbrowser/i], describe(e3) { + const t3 = { name: "UC Browser" }, i3 = l.getFirstMatch(u, e3) || l.getFirstMatch(/(?:ucbrowser)[\s/](\d+(\.?_?\d+)+)/i, e3); + return i3 && (t3.version = i3), t3; + } }, { test: [/Maxthon|mxios/i], describe(e3) { + const t3 = { name: "Maxthon" }, i3 = l.getFirstMatch(u, e3) || l.getFirstMatch(/(?:Maxthon|mxios)[\s/](\d+(\.?_?\d+)+)/i, e3); + return i3 && (t3.version = i3), t3; + } }, { test: [/epiphany/i], describe(e3) { + const t3 = { name: "Epiphany" }, i3 = l.getFirstMatch(u, e3) || l.getFirstMatch(/(?:epiphany)[\s/](\d+(\.?_?\d+)+)/i, e3); + return i3 && (t3.version = i3), t3; + } }, { test: [/puffin/i], describe(e3) { + const t3 = { name: "Puffin" }, i3 = l.getFirstMatch(u, e3) || l.getFirstMatch(/(?:puffin)[\s/](\d+(\.?_?\d+)+)/i, e3); + return i3 && (t3.version = i3), t3; + } }, { test: [/sleipnir/i], describe(e3) { + const t3 = { name: "Sleipnir" }, i3 = l.getFirstMatch(u, e3) || l.getFirstMatch(/(?:sleipnir)[\s/](\d+(\.?_?\d+)+)/i, e3); + return i3 && (t3.version = i3), t3; + } }, { test: [/k-meleon/i], describe(e3) { + const t3 = { name: "K-Meleon" }, i3 = l.getFirstMatch(u, e3) || l.getFirstMatch(/(?:k-meleon)[\s/](\d+(\.?_?\d+)+)/i, e3); + return i3 && (t3.version = i3), t3; + } }, { test: [/micromessenger/i], describe(e3) { + const t3 = { name: "WeChat" }, i3 = l.getFirstMatch(/(?:micromessenger)[\s/](\d+(\.?_?\d+)+)/i, e3) || l.getFirstMatch(u, e3); + return i3 && (t3.version = i3), t3; + } }, { test: [/qqbrowser/i], describe(e3) { + const t3 = { name: /qqbrowserlite/i.test(e3) ? "QQ Browser Lite" : "QQ Browser" }, i3 = l.getFirstMatch(/(?:qqbrowserlite|qqbrowser)[/](\d+(\.?_?\d+)+)/i, e3) || l.getFirstMatch(u, e3); + return i3 && (t3.version = i3), t3; + } }, { test: [/msie|trident/i], describe(e3) { + const t3 = { name: "Internet Explorer" }, i3 = l.getFirstMatch(/(?:msie |rv:)(\d+(\.?_?\d+)+)/i, e3); + return i3 && (t3.version = i3), t3; + } }, { test: [/\sedg\//i], describe(e3) { + const t3 = { name: "Microsoft Edge" }, i3 = l.getFirstMatch(/\sedg\/(\d+(\.?_?\d+)+)/i, e3); + return i3 && (t3.version = i3), t3; + } }, { test: [/edg([ea]|ios)/i], describe(e3) { + const t3 = { name: "Microsoft Edge" }, i3 = l.getSecondMatch(/edg([ea]|ios)\/(\d+(\.?_?\d+)+)/i, e3); + return i3 && (t3.version = i3), t3; + } }, { test: [/vivaldi/i], describe(e3) { + const t3 = { name: "Vivaldi" }, i3 = l.getFirstMatch(/vivaldi\/(\d+(\.?_?\d+)+)/i, e3); + return i3 && (t3.version = i3), t3; + } }, { test: [/seamonkey/i], describe(e3) { + const t3 = { name: "SeaMonkey" }, i3 = l.getFirstMatch(/seamonkey\/(\d+(\.?_?\d+)+)/i, e3); + return i3 && (t3.version = i3), t3; + } }, { test: [/sailfish/i], describe(e3) { + const t3 = { name: "Sailfish" }, i3 = l.getFirstMatch(/sailfish\s?browser\/(\d+(\.\d+)?)/i, e3); + return i3 && (t3.version = i3), t3; + } }, { test: [/silk/i], describe(e3) { + const t3 = { name: "Amazon Silk" }, i3 = l.getFirstMatch(/silk\/(\d+(\.?_?\d+)+)/i, e3); + return i3 && (t3.version = i3), t3; + } }, { test: [/phantom/i], describe(e3) { + const t3 = { name: "PhantomJS" }, i3 = l.getFirstMatch(/phantomjs\/(\d+(\.?_?\d+)+)/i, e3); + return i3 && (t3.version = i3), t3; + } }, { test: [/slimerjs/i], describe(e3) { + const t3 = { name: "SlimerJS" }, i3 = l.getFirstMatch(/slimerjs\/(\d+(\.?_?\d+)+)/i, e3); + return i3 && (t3.version = i3), t3; + } }, { test: [/blackberry|\bbb\d+/i, /rim\stablet/i], describe(e3) { + const t3 = { name: "BlackBerry" }, i3 = l.getFirstMatch(u, e3) || l.getFirstMatch(/blackberry[\d]+\/(\d+(\.?_?\d+)+)/i, e3); + return i3 && (t3.version = i3), t3; + } }, { test: [/(web|hpw)[o0]s/i], describe(e3) { + const t3 = { name: "WebOS Browser" }, i3 = l.getFirstMatch(u, e3) || l.getFirstMatch(/w(?:eb)?[o0]sbrowser\/(\d+(\.?_?\d+)+)/i, e3); + return i3 && (t3.version = i3), t3; + } }, { test: [/bada/i], describe(e3) { + const t3 = { name: "Bada" }, i3 = l.getFirstMatch(/dolfin\/(\d+(\.?_?\d+)+)/i, e3); + return i3 && (t3.version = i3), t3; + } }, { test: [/tizen/i], describe(e3) { + const t3 = { name: "Tizen" }, i3 = l.getFirstMatch(/(?:tizen\s?)?browser\/(\d+(\.?_?\d+)+)/i, e3) || l.getFirstMatch(u, e3); + return i3 && (t3.version = i3), t3; + } }, { test: [/qupzilla/i], describe(e3) { + const t3 = { name: "QupZilla" }, i3 = l.getFirstMatch(/(?:qupzilla)[\s/](\d+(\.?_?\d+)+)/i, e3) || l.getFirstMatch(u, e3); + return i3 && (t3.version = i3), t3; + } }, { test: [/firefox|iceweasel|fxios/i], describe(e3) { + const t3 = { name: "Firefox" }, i3 = l.getFirstMatch(/(?:firefox|iceweasel|fxios)[\s/](\d+(\.?_?\d+)+)/i, e3); + return i3 && (t3.version = i3), t3; + } }, { test: [/electron/i], describe(e3) { + const t3 = { name: "Electron" }, i3 = l.getFirstMatch(/(?:electron)\/(\d+(\.?_?\d+)+)/i, e3); + return i3 && (t3.version = i3), t3; + } }, { test: [/MiuiBrowser/i], describe(e3) { + const t3 = { name: "Miui" }, i3 = l.getFirstMatch(/(?:MiuiBrowser)[\s/](\d+(\.?_?\d+)+)/i, e3); + return i3 && (t3.version = i3), t3; + } }, { test: [/chromium/i], describe(e3) { + const t3 = { name: "Chromium" }, i3 = l.getFirstMatch(/(?:chromium)[\s/](\d+(\.?_?\d+)+)/i, e3) || l.getFirstMatch(u, e3); + return i3 && (t3.version = i3), t3; + } }, { test: [/chrome|crios|crmo/i], describe(e3) { + const t3 = { name: "Chrome" }, i3 = l.getFirstMatch(/(?:chrome|crios|crmo)\/(\d+(\.?_?\d+)+)/i, e3); + return i3 && (t3.version = i3), t3; + } }, { test: [/GSA/i], describe(e3) { + const t3 = { name: "Google Search" }, i3 = l.getFirstMatch(/(?:GSA)\/(\d+(\.?_?\d+)+)/i, e3); + return i3 && (t3.version = i3), t3; + } }, { test(e3) { + const t3 = !e3.test(/like android/i), i3 = e3.test(/android/i); + return t3 && i3; + }, describe(e3) { + const t3 = { name: "Android Browser" }, i3 = l.getFirstMatch(u, e3); + return i3 && (t3.version = i3), t3; + } }, { test: [/playstation 4/i], describe(e3) { + const t3 = { name: "PlayStation 4" }, i3 = l.getFirstMatch(u, e3); + return i3 && (t3.version = i3), t3; + } }, { test: [/safari|applewebkit/i], describe(e3) { + const t3 = { name: "Safari" }, i3 = l.getFirstMatch(u, e3); + return i3 && (t3.version = i3), t3; + } }, { test: [/.*/i], describe(e3) { + const t3 = -1 !== e3.search("\\(") ? /^(.*)\/(.*)[ \t]\((.*)/ : /^(.*)\/(.*) /; + return { name: l.getFirstMatch(t3, e3), version: l.getSecondMatch(t3, e3) }; + } }], c = d, p = [{ test: [/Roku\/DVP/], describe(e3) { + const t3 = l.getFirstMatch(/Roku\/DVP-(\d+\.\d+)/i, e3); + return { name: a.Roku, version: t3 }; + } }, { test: [/windows phone/i], describe(e3) { + const t3 = l.getFirstMatch(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i, e3); + return { name: a.WindowsPhone, version: t3 }; + } }, { test: [/windows /i], describe(e3) { + const t3 = l.getFirstMatch(/Windows ((NT|XP)( \d\d?.\d)?)/i, e3), i3 = l.getWindowsVersionName(t3); + return { name: a.Windows, version: t3, versionName: i3 }; + } }, { test: [/Macintosh(.*?) FxiOS(.*?)\//], describe(e3) { + const t3 = { name: a.iOS }, i3 = l.getSecondMatch(/(Version\/)(\d[\d.]+)/, e3); + return i3 && (t3.version = i3), t3; + } }, { test: [/macintosh/i], describe(e3) { + const t3 = l.getFirstMatch(/mac os x (\d+(\.?_?\d+)+)/i, e3).replace(/[_\s]/g, "."), i3 = l.getMacOSVersionName(t3), n3 = { name: a.MacOS, version: t3 }; + return i3 && (n3.versionName = i3), n3; + } }, { test: [/(ipod|iphone|ipad)/i], describe(e3) { + const t3 = l.getFirstMatch(/os (\d+([_\s]\d+)*) like mac os x/i, e3).replace(/[_\s]/g, "."); + return { name: a.iOS, version: t3 }; + } }, { test(e3) { + const t3 = !e3.test(/like android/i), i3 = e3.test(/android/i); + return t3 && i3; + }, describe(e3) { + const t3 = l.getFirstMatch(/android[\s/-](\d+(\.\d+)*)/i, e3), i3 = l.getAndroidVersionName(t3), n3 = { name: a.Android, version: t3 }; + return i3 && (n3.versionName = i3), n3; + } }, { test: [/(web|hpw)[o0]s/i], describe(e3) { + const t3 = l.getFirstMatch(/(?:web|hpw)[o0]s\/(\d+(\.\d+)*)/i, e3), i3 = { name: a.WebOS }; + return t3 && t3.length && (i3.version = t3), i3; + } }, { test: [/blackberry|\bbb\d+/i, /rim\stablet/i], describe(e3) { + const t3 = l.getFirstMatch(/rim\stablet\sos\s(\d+(\.\d+)*)/i, e3) || l.getFirstMatch(/blackberry\d+\/(\d+([_\s]\d+)*)/i, e3) || l.getFirstMatch(/\bbb(\d+)/i, e3); + return { name: a.BlackBerry, version: t3 }; + } }, { test: [/bada/i], describe(e3) { + const t3 = l.getFirstMatch(/bada\/(\d+(\.\d+)*)/i, e3); + return { name: a.Bada, version: t3 }; + } }, { test: [/tizen/i], describe(e3) { + const t3 = l.getFirstMatch(/tizen[/\s](\d+(\.\d+)*)/i, e3); + return { name: a.Tizen, version: t3 }; + } }, { test: [/linux/i], describe: () => ({ name: a.Linux }) }, { test: [/CrOS/], describe: () => ({ name: a.ChromeOS }) }, { test: [/PlayStation 4/], describe(e3) { + const t3 = l.getFirstMatch(/PlayStation 4[/\s](\d+(\.\d+)*)/i, e3); + return { name: a.PlayStation4, version: t3 }; + } }], _ = [{ test: [/googlebot/i], describe: () => ({ type: "bot", vendor: "Google" }) }, { test: [/huawei/i], describe(e3) { + const t3 = l.getFirstMatch(/(can-l01)/i, e3) && "Nova", i3 = { type: o.mobile, vendor: "Huawei" }; + return t3 && (i3.model = t3), i3; + } }, { test: [/nexus\s*(?:7|8|9|10).*/i], describe: () => ({ type: o.tablet, vendor: "Nexus" }) }, { test: [/ipad/i], describe: () => ({ type: o.tablet, vendor: "Apple", model: "iPad" }) }, { test: [/Macintosh(.*?) FxiOS(.*?)\//], describe: () => ({ type: o.tablet, vendor: "Apple", model: "iPad" }) }, { test: [/kftt build/i], describe: () => ({ type: o.tablet, vendor: "Amazon", model: "Kindle Fire HD 7" }) }, { test: [/silk/i], describe: () => ({ type: o.tablet, vendor: "Amazon" }) }, { test: [/tablet(?! pc)/i], describe: () => ({ type: o.tablet }) }, { test(e3) { + const t3 = e3.test(/ipod|iphone/i), i3 = e3.test(/like (ipod|iphone)/i); + return t3 && !i3; + }, describe(e3) { + const t3 = l.getFirstMatch(/(ipod|iphone)/i, e3); + return { type: o.mobile, vendor: "Apple", model: t3 }; + } }, { test: [/nexus\s*[0-6].*/i, /galaxy nexus/i], describe: () => ({ type: o.mobile, vendor: "Nexus" }) }, { test: [/[^-]mobi/i], describe: () => ({ type: o.mobile }) }, { test: (e3) => "blackberry" === e3.getBrowserName(true), describe: () => ({ type: o.mobile, vendor: "BlackBerry" }) }, { test: (e3) => "bada" === e3.getBrowserName(true), describe: () => ({ type: o.mobile }) }, { test: (e3) => "windows phone" === e3.getBrowserName(), describe: () => ({ type: o.mobile, vendor: "Microsoft" }) }, { test(e3) { + const t3 = Number(String(e3.getOSVersion()).split(".")[0]); + return "android" === e3.getOSName(true) && t3 >= 3; + }, describe: () => ({ type: o.tablet }) }, { test: (e3) => "android" === e3.getOSName(true), describe: () => ({ type: o.mobile }) }, { test: (e3) => "macos" === e3.getOSName(true), describe: () => ({ type: o.desktop, vendor: "Apple" }) }, { test: (e3) => "windows" === e3.getOSName(true), describe: () => ({ type: o.desktop }) }, { test: (e3) => "linux" === e3.getOSName(true), describe: () => ({ type: o.desktop }) }, { test: (e3) => "playstation 4" === e3.getOSName(true), describe: () => ({ type: o.tv }) }, { test: (e3) => "roku" === e3.getOSName(true), describe: () => ({ type: o.tv }) }], h = [{ test: (e3) => "microsoft edge" === e3.getBrowserName(true), describe(e3) { + if (/\sedg\//i.test(e3)) return { name: s.Blink }; + const t3 = l.getFirstMatch(/edge\/(\d+(\.?_?\d+)+)/i, e3); + return { name: s.EdgeHTML, version: t3 }; + } }, { test: [/trident/i], describe(e3) { + const t3 = { name: s.Trident }, i3 = l.getFirstMatch(/trident\/(\d+(\.?_?\d+)+)/i, e3); + return i3 && (t3.version = i3), t3; + } }, { test: (e3) => e3.test(/presto/i), describe(e3) { + const t3 = { name: s.Presto }, i3 = l.getFirstMatch(/presto\/(\d+(\.?_?\d+)+)/i, e3); + return i3 && (t3.version = i3), t3; + } }, { test(e3) { + const t3 = e3.test(/gecko/i), i3 = e3.test(/like gecko/i); + return t3 && !i3; + }, describe(e3) { + const t3 = { name: s.Gecko }, i3 = l.getFirstMatch(/gecko\/(\d+(\.?_?\d+)+)/i, e3); + return i3 && (t3.version = i3), t3; + } }, { test: [/(apple)?webkit\/537\.36/i], describe: () => ({ name: s.Blink }) }, { test: [/(apple)?webkit/i], describe(e3) { + const t3 = { name: s.WebKit }, i3 = l.getFirstMatch(/webkit\/(\d+(\.?_?\d+)+)/i, e3); + return i3 && (t3.version = i3), t3; + } }], m = class { + constructor(e3, t3 = false) { + if (null == e3 || "" === e3) throw new Error("UserAgent parameter can't be empty"); + this._ua = e3, this.parsedResult = {}, true !== t3 && this.parse(); + } + getUA() { + return this._ua; + } + test(e3) { + return e3.test(this._ua); + } + parseBrowser() { + this.parsedResult.browser = {}; + const e3 = l.find(c, (e4) => { + if ("function" == typeof e4.test) return e4.test(this); + if (e4.test instanceof Array) return e4.test.some((e5) => this.test(e5)); + throw new Error("Browser's test function is not valid"); + }); + return e3 && (this.parsedResult.browser = e3.describe(this.getUA())), this.parsedResult.browser; + } + getBrowser() { + return this.parsedResult.browser ? this.parsedResult.browser : this.parseBrowser(); + } + getBrowserName(e3) { + return e3 ? String(this.getBrowser().name).toLowerCase() || "" : this.getBrowser().name || ""; + } + getBrowserVersion() { + return this.getBrowser().version; + } + getOS() { + return this.parsedResult.os ? this.parsedResult.os : this.parseOS(); + } + parseOS() { + this.parsedResult.os = {}; + const e3 = l.find(p, (e4) => { + if ("function" == typeof e4.test) return e4.test(this); + if (e4.test instanceof Array) return e4.test.some((e5) => this.test(e5)); + throw new Error("Browser's test function is not valid"); + }); + return e3 && (this.parsedResult.os = e3.describe(this.getUA())), this.parsedResult.os; + } + getOSName(e3) { + const { name: t3 } = this.getOS(); + return e3 ? String(t3).toLowerCase() || "" : t3 || ""; + } + getOSVersion() { + return this.getOS().version; + } + getPlatform() { + return this.parsedResult.platform ? this.parsedResult.platform : this.parsePlatform(); + } + getPlatformType(e3 = false) { + const { type: t3 } = this.getPlatform(); + return e3 ? String(t3).toLowerCase() || "" : t3 || ""; + } + parsePlatform() { + this.parsedResult.platform = {}; + const e3 = l.find(_, (e4) => { + if ("function" == typeof e4.test) return e4.test(this); + if (e4.test instanceof Array) return e4.test.some((e5) => this.test(e5)); + throw new Error("Browser's test function is not valid"); + }); + return e3 && (this.parsedResult.platform = e3.describe(this.getUA())), this.parsedResult.platform; + } + getEngine() { + return this.parsedResult.engine ? this.parsedResult.engine : this.parseEngine(); + } + getEngineName(e3) { + return e3 ? String(this.getEngine().name).toLowerCase() || "" : this.getEngine().name || ""; + } + parseEngine() { + this.parsedResult.engine = {}; + const e3 = l.find(h, (e4) => { + if ("function" == typeof e4.test) return e4.test(this); + if (e4.test instanceof Array) return e4.test.some((e5) => this.test(e5)); + throw new Error("Browser's test function is not valid"); + }); + return e3 && (this.parsedResult.engine = e3.describe(this.getUA())), this.parsedResult.engine; + } + parse() { + return this.parseBrowser(), this.parseOS(), this.parsePlatform(), this.parseEngine(), this; + } + getResult() { + return l.assign({}, this.parsedResult); + } + satisfies(e3) { + const t3 = {}; + let i3 = 0; + const n3 = {}; + let r3 = 0; + if (Object.keys(e3).forEach((o2) => { + const a2 = e3[o2]; + "string" == typeof a2 ? (n3[o2] = a2, r3 += 1) : "object" == typeof a2 && (t3[o2] = a2, i3 += 1); + }), i3 > 0) { + const e4 = Object.keys(t3), i4 = l.find(e4, (e5) => this.isOS(e5)); + if (i4) { + const e5 = this.satisfies(t3[i4]); + if (void 0 !== e5) return e5; + } + const n4 = l.find(e4, (e5) => this.isPlatform(e5)); + if (n4) { + const e5 = this.satisfies(t3[n4]); + if (void 0 !== e5) return e5; + } + } + if (r3 > 0) { + const e4 = Object.keys(n3), t4 = l.find(e4, (e5) => this.isBrowser(e5, true)); + if (void 0 !== t4) return this.compareVersion(n3[t4]); + } + } + isBrowser(e3, t3 = false) { + const i3 = this.getBrowserName().toLowerCase(); + let n3 = e3.toLowerCase(); + const r3 = l.getBrowserTypeByAlias(n3); + return t3 && r3 && (n3 = r3.toLowerCase()), n3 === i3; + } + compareVersion(e3) { + let t3 = [0], i3 = e3, n3 = false; + const r3 = this.getBrowserVersion(); + if ("string" == typeof r3) return ">" === e3[0] || "<" === e3[0] ? (i3 = e3.substr(1), "=" === e3[1] ? (n3 = true, i3 = e3.substr(2)) : t3 = [], ">" === e3[0] ? t3.push(1) : t3.push(-1)) : "=" === e3[0] ? i3 = e3.substr(1) : "~" === e3[0] && (n3 = true, i3 = e3.substr(1)), t3.indexOf(l.compareVersions(r3, i3, n3)) > -1; + } + isOS(e3) { + return this.getOSName(true) === String(e3).toLowerCase(); + } + isPlatform(e3) { + return this.getPlatformType(true) === String(e3).toLowerCase(); + } + isEngine(e3) { + return this.getEngineName(true) === String(e3).toLowerCase(); + } + is(e3, t3 = false) { + return this.isBrowser(e3, t3) || this.isOS(e3) || this.isPlatform(e3); + } + some(e3 = []) { + return e3.some((e4) => this.is(e4)); + } + }, g = class { + static getParser(e3, t3 = false) { + if ("string" != typeof e3) throw new Error("UserAgent should be a string"); + return new m(e3, t3); + } + static parse(e3) { + return new m(e3).getResult(); + } + static get BROWSER_MAP() { + return r2; + } + static get ENGINE_MAP() { + return s; + } + static get OS_MAP() { + return a; + } + static get PLATFORMS_MAP() { + return o; + } + }; + }, 34727: (e2, t2, i2) => { + "use strict"; + var n2, r2, o; + Object.defineProperty(t2, "__esModule", { value: true }); + const a = i2(31635), s = a.__importDefault(i2(92140)), l = i2(80295), u = a.__importDefault(i2(89034)), d = i2(47957); + class c extends u.default { + constructor(e3, t3, i3) { + super(), this.type = { name: d.task.pathType }, n2.set(this, void 0), r2.set(this, void 0), o.set(this, []), a.__classPrivateFieldSet(this, r2, e3, "f"), a.__classPrivateFieldSet(this, n2, t3, "f"), this.required = !!i3, (0, l.makeUnenumerable)(this, "isDynamicBranch"), (0, l.makeUnenumerable)(this, "required"), (0, l.makeUnenumerable)(this, "type"); + } + get consumerCount() { + return a.__classPrivateFieldGet(this, o, "f").length; + } + get visibleUsages() { + return this._visibleUsages.concat(a.__classPrivateFieldGet(this, o, "f")); + } + get name() { + return a.__classPrivateFieldGet(this, r2, "f").label; + } + set name(e3) { + a.__classPrivateFieldGet(this, r2, "f").label = e3; + } + get outputId() { + return a.__classPrivateFieldGet(this, r2, "f").outputId; + } + set outputId(e3) { + a.__classPrivateFieldGet(this, r2, "f").outputId = e3; + } + get branchItem() { + return a.__classPrivateFieldGet(this, r2, "f"); + } + canDelete() { + return !this.required; + } + addConsumer(e3, t3) { + return !(!e3 || !t3) && (-1 === s.default.findIndex(a.__classPrivateFieldGet(this, o, "f"), (t4) => t4.id === e3.id) && a.__classPrivateFieldGet(this, o, "f").push({ consumer: e3, context: t3 }), true); + } + get deletionTooltip() { + return d.variable.outputDeleteTooltip; + } + removeConsumer(e3) { + if (!e3) return false; + const t3 = s.default.findIndex(a.__classPrivateFieldGet(this, o, "f"), (t4) => t4.consumer.id === e3.id); + return t3 >= 0 && (a.__classPrivateFieldGet(this, o, "f").splice(t3, 1), true); + } + deleteItem() { + return this.canDelete() ? !(!a.__classPrivateFieldGet(this, n2, "f") || !a.__classPrivateFieldGet(this, n2, "f").call(this, this.outputId) || (a.__classPrivateFieldGet(this, o, "f").length = 0, 0)) : (console.error("cannot delete exit path: ", this.isDynamicBranch ? "" : this.outputId), false); + } + } + n2 = /* @__PURE__ */ new WeakMap(), r2 = /* @__PURE__ */ new WeakMap(), o = /* @__PURE__ */ new WeakMap(), t2.default = c; + }, 34763: (e2, t2, i2) => { + const n2 = i2(80259); + function r2() { + r2.baseConstructor.apply(this, arguments); + } + i2(22124).extend(r2, "EmergencyGroupList"), Object.defineProperties(r2.prototype, { entities: { enumerable: true, get: function() { + return this._entities; + }, set: function(e3) { + this._entities = this.reviveArray(e3, n2); + } } }), e2.exports = r2; + }, 34825: (e2, t2, i2) => { + function n2() { + this.id = void 0, this.selfUri = void 0, n2.baseConstructor.apply(this, arguments); + } + i2(45214).extend(n2, "CallCreatedResponse"), e2.exports = n2; + }, 34875: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importDefault(i2(66740)), o = n2.__importDefault(i2(42290)); + class a extends o.default { + get className() { + return "BuilderPartWithVariableFormattingPartDef"; + } + reviveItem(e3, t3, i3, n3) { + return new r2.default({ builderViewModel: e3, owningExpressionViewModel: t3, builderPartModel: i3, overrideBuilderPartDef: void 0, reId: !!n3 }); + } + } + t2.default = a; + }, 34891: (e2, t2) => { + "use strict"; + function i2() { + return "function" == typeof Symbol && Symbol.iterator ? Symbol.iterator : "@@iterator"; + } + Object.defineProperty(t2, "__esModule", { value: true }), t2.iterator = t2.getSymbolIterator = void 0, t2.getSymbolIterator = i2, t2.iterator = i2(); + }, 34950: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.scheduleArray = void 0; + var n2 = i2(48051); + t2.scheduleArray = function(e3, t3) { + return new n2.Observable(function(i3) { + var n3 = 0; + return t3.schedule(function() { + n3 === e3.length ? i3.complete() : (i3.next(e3[n3++]), i3.closed || this.schedule()); + }); + }); + }; + }, 35050: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importDefault(i2(23581)), o = n2.__importDefault(i2(74998)); + class a extends r2.default { + constructor({ id: e3, name: t3, description: i3, version: n3, generators: r3, resultExpressionType: o2, restrictToFlowTypeOrTypes: a2, categoryIdentifierOrIdentifiers: s, builderPartDefCategoryIdentifierOrIdentifiers: l, defaultBuilderPartId: u, icon: d, helpTopic: c, requiredFeatureToggle: p, requiredFeatureConfig: _, requiredChannelTypeOrTypes: h }) { + super(e3, t3, i3, n3, r3, o2, a2, s, l, u, d, c, p, _, h, { maxBuilderPartCount: 1, minBuilderPartCount: 1 }); + } + get className() { + return "BuilderWithSingleBuilderPartDef"; + } + get isBuilderWithSingleBuilderPartDef() { + return true; + } + createBuilder(e3) { + const t3 = this.reviveBuilder(e3, this.createDefaultBuilderPartsModel()); + return t3.setNewInstanceDefaults(), t3; + } + reviveBuilder(e3, t3, i3) { + return new o.default({ owningExpression: e3, model: t3, reId: true === i3 }); + } + } + t2.default = a; + }, 35133: (e2, t2, i2) => { + var n2 = { "./cs.js": 56464, "./de.js": 77853, "./es.js": 97650, "./fr-ca.js": 26435, "./it.js": 88383, "./ja.js": 23827, "./ko.js": 63164, "./nb.js": 22274, "./nl.js": 92572, "./pl.js": 94418, "./pt-br.js": 48303, "./ru.js": 82271, "./sv.js": 41011, "./tr.js": 85096, "./zh-cn.js": 52648, "./zh-tw.js": 50304, "moment/locale/cs.js": 56464, "moment/locale/de.js": 77853, "moment/locale/es.js": 97650, "moment/locale/fr-ca.js": 26435, "moment/locale/it.js": 88383, "moment/locale/ja.js": 23827, "moment/locale/ko.js": 63164, "moment/locale/nb.js": 22274, "moment/locale/nl.js": 92572, "moment/locale/pl.js": 94418, "moment/locale/pt-br.js": 48303, "moment/locale/ru.js": 82271, "moment/locale/sv.js": 41011, "moment/locale/tr.js": 85096, "moment/locale/zh-cn.js": 52648, "moment/locale/zh-tw.js": 50304, "node_modules/moment/locale/cs.js": 56464, "node_modules/moment/locale/de.js": 77853, "node_modules/moment/locale/es.js": 97650, "node_modules/moment/locale/fr-ca.js": 26435, "node_modules/moment/locale/it.js": 88383, "node_modules/moment/locale/ja.js": 23827, "node_modules/moment/locale/ko.js": 63164, "node_modules/moment/locale/nb.js": 22274, "node_modules/moment/locale/nl.js": 92572, "node_modules/moment/locale/pl.js": 94418, "node_modules/moment/locale/pt-br.js": 48303, "node_modules/moment/locale/ru.js": 82271, "node_modules/moment/locale/sv.js": 41011, "node_modules/moment/locale/tr.js": 85096, "node_modules/moment/locale/zh-cn.js": 52648, "node_modules/moment/locale/zh-tw.js": 50304 }; + function r2(e3) { + var t3 = o(e3); + return i2(t3); + } + function o(e3) { + if (!i2.o(n2, e3)) { + var t3 = new Error("Cannot find module '" + e3 + "'"); + throw t3.code = "MODULE_NOT_FOUND", t3; + } + return n2[e3]; + } + r2.keys = function() { + return Object.keys(n2); + }, r2.resolve = o, e2.exports = r2, r2.id = 35133; + }, 35158: (e2, t2, i2) => { + function n2() { + this.actionTypeId = void 0, n2.baseConstructor.apply(this, arguments); + } + i2(74817).extend(n2, "ClipboardManifestActionItemModel", true), e2.exports = n2; + }, 35284: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = i2(12361), o = i2(30801), a = n2.__importDefault(i2(94225)), s = n2.__importDefault(i2(56549)), l = i2(79364), u = i2(79364), d = n2.__importStar(i2(10798)), c = n2.__importDefault(i2(4648)), p = n2.__importDefault(i2(95085)); + class _ extends p.default { + constructor(e3) { + super(e3); + } + get _actionTypeId() { + return o.callAgenticVirtualAgentActionType; + } + get isArchActionCallAgenticVirtualAgent() { + return true; + } + get displayTypeName() { + return this._scriptingName; + } + get agentInputs() { + return this.coreFactory.createArchWrapper(this._getCoreViewModel().inputs); + } + get agentOutputs() { + return this.coreFactory.createArchWrapper(this._getCoreViewModel().outputs); + } + get voiceProcessingPrompt() { + return d.isFeatureAvailable(c.default.botFlowsVoiceProcessingPrompt) && this.logDeprecatedPropertyWarning(this._infoPropGet("voiceProcessingPrompt")), this.coreFactory.createArchWrapper(this._getCoreViewModel().voiceProcessingPrompt); + } + get exitReason() { + return this.coreFactory.createArchWrapper(this._getCoreViewModel().exitReason); + } + setAgenticVirtualAgentByIdAsync(e3, t3) { + return n2.__awaiter(this, void 0, void 0, function* () { + this._checkItemIsValidLiteralString(this._infoParm("agenticVirtualAgentId", "setAgenticVirtualAgentByIdAsync"), e3, false), this._checkItemIsValidFunction(this._infoParm("callbackFunction", "setAgenticVirtualAgentByIdAsync"), t3, true); + const i3 = yield s.default.findItemByIdAsync(r2.agenticVirtualAgentManager, e3, "agenticVirtualAgentId"); + return this.logNote("found the agenticVirtualAgent named '" + i3.name + "' for the agenticVirtualAgent ID of '" + e3 + "'"), this.validateAgenticVirtualAgentIsPublished(i3), this._getCoreViewModel().agenticVirtualAgentSetting.setValue(i3), yield this.waitForAgenticVirtualAgentVersionLoading(), a.default.executeCallback(this, "setAgenticVirtualAgentByIdAsync", t3, this); + }); + } + setAgenticVirtualAgentByNameAsync(e3, t3) { + return n2.__awaiter(this, void 0, void 0, function* () { + this._checkItemIsValidLiteralString(this._infoParm("agenticVirtualAgentName", "setAgenticVirtualAgentByNameAsync"), e3), this._checkItemIsValidFunction(this._infoParm("callbackFunction", "setAgenticVirtualAgentByNameAsync"), t3, true); + const i3 = yield s.default.findItemByValueAsync(r2.agenticVirtualAgentManager, e3, "agenticVirtualAgent", "name", "name"); + return this.logNote(`Found info for the agenticVirtualAgent named '${i3.name}' for the passed agenticVirtualAgent name of '${i3}'. Getting agenticVirtualAgent details.`), this.validateAgenticVirtualAgentIsPublished(i3), this._getCoreViewModel().agenticVirtualAgentSetting.setValue(i3), yield this.waitForAgenticVirtualAgentVersionLoading(), a.default.executeCallback(this, "setAgenticVirtualAgentByNameAsync", t3, this); + }); + } + waitForAgenticVirtualAgentVersionLoading() { + return n2.__awaiter(this, void 0, void 0, function* () { + this.logNoteVerbose(`Loading latest version definition for agenticVirtualAgent, agenticVirtualAgentId: ${this._getCoreViewModel().agenticVirtualAgentId}`), yield (0, u.firstValueFrom)(this._getCoreViewModel().agenticVirtualAgentVersionSetting.loadingReference$.pipe((0, l.first)((e3) => false === e3))), this._getCoreViewModel().agenticVirtualAgentVersionSetting.currentUiErrorMessage ? this.logError(`error loading latest agenticVirtualAgent version, agenticVirtualAgentId: ${this._getCoreViewModel().agenticVirtualAgentId} - ${this._getCoreViewModel().agenticVirtualAgentVersionSetting.currentUiErrorMessage}`) : this.logNoteVerbose(`Successfully loaded latest version definition for agenticVirtualAgent, agenticVirtualAgentId: ${this._getCoreViewModel().agenticVirtualAgentId}`); + }); + } + validateAgenticVirtualAgentIsPublished(e3) { + e3.version || this.logErrorAndThrow(`Agentic Virtual Agent '${e3.name}' is not published. Only published Agentic Virtual Agents can be used in Call Agentic Virtual Agent action.`); + } + } + t2.default = _; + }, 35291: (e2, t2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.getEmailHeadersFailureReasons = void 0; + t2.getEmailHeadersFailureReasons = ["ActionInvocationLimitExceeded", "GeneralError", "NoEmailHeadersExist", "EmailHeaderNamesCollectionItemLimitExceeded"]; + }, 35295: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.getDigitalBotConnectorBots = h, t2.getDigitalBotConnectorBotVersions = m, t2.getDigitalBotConnectorBotVersion = g, t2.getDigitalBotConnectorBot = f, t2.ensureCorrectVersionProperties = T; + const n2 = i2(31635), r2 = n2.__importStar(i2(18516)), o = n2.__importDefault(i2(36019)), a = n2.__importDefault(i2(73198)), s = i2(80428), l = n2.__importDefault(i2(92140)), u = i2(29795), d = (i2(58597), i2(75601), i2(24032).getTopic("botConnectorApi")), c = "Collection", p = c.length, _ = {}; + function h(e3) { + const t3 = (null == e3 ? void 0 : e3.additionalParams) || e3; + if (!(null == t3 ? void 0 : t3.integrationId)) return; + const i3 = e3.getSearchQueryParams(true); + return o.default.build(r2.getDigitalBotConnectorBots).templateParams({ integrationId: t3.integrationId }).queryParams(i3).call().then((e4) => (e4.entities.forEach((e5) => { + e5.setParentContextInfo(t3.integrationId); + }), e4)); + } + function m(e3) { + const t3 = (null == e3 ? void 0 : e3.additionalParams) || e3; + if (!(null == t3 ? void 0 : t3.integrationId) || !(null == t3 ? void 0 : t3.botId)) return; + const i3 = e3.getSearchQueryParams(true); + return o.default.build(r2.getDigitalBotConnectorBotVersions).templateParams({ integrationId: t3.integrationId, botId: t3.botId }).queryParams(i3).call().then(function(e4) { + return e4.entities = e4.entities.map(function(e5) { + return e5.setParentContextInfo(t3.integrationId), e5.id = t3.botId, T(e5, e5.id, t3.botId, t3.integrationId); + }), e4; + }); + } + function g(e3, t3) { + return n2.__awaiter(this, void 0, void 0, function* () { + const i3 = (null == t3 ? void 0 : t3.additionalParams) || t3; + if (!(null == i3 ? void 0 : i3.botId) || !(null == i3 ? void 0 : i3.integrationId)) return; + const n3 = { version: e3 }, a2 = o.default.build(r2.getDigitalBotConnectorBot).templateParams({ botId: i3.botId, integrationId: i3.integrationId }).queryParams(n3), s2 = yield a2.call(); + return l.default.find(s2.versions, (t4) => { + if (t4.version === e3) return T(t4, s2.name, i3.botId, i3.integrationId); + }); + }); + } + function f(e3, t3) { + return n2.__awaiter(this, void 0, void 0, function* () { + const i3 = (null == t3 ? void 0 : t3.additionalParams) || t3; + if (!(null == i3 ? void 0 : i3.integrationId)) return; + const n3 = { botId: e3, integrationId: i3.integrationId }, a2 = o.default.build(r2.getDigitalBotConnectorBot).templateParams(n3), s2 = yield a2.call(); + return s2 && s2.setParentContextInfo(i3.integrationId), s2; + }); + } + function T(e3, t3, i3, n3) { + if (!l.default.isObject(e3)) return; + const r3 = e3; + t3 && (r3.name = t3), r3.id = i3, r3.version = e3.version, r3.setParentContextInfo(n3); + const o2 = r3.isFromAdsValidationResults; + return r3.isFromAdsValidationResults = false, l.default.each(e3.intents, (e4) => { + o2 && (e4.entities = e4.slots), l.default.each(null == e4 ? void 0 : e4.entities, (e5) => { + var t5; + if (l.default.isString(null == e5 ? void 0 : e5.type)) { + if (e5.archDataTypeId = _[e5.type], !e5.archDataTypeId && e5.type === u.jsonSchemaTypeNames.array && (null === (t5 = e5.items) || void 0 === t5 ? void 0 : t5.type) && (e5.archDataTypeId = _[e5.items.type]), l.default.isUndefined(e5.archDataTypeId)) d.error(`invalid architect data type for slot. type: '${e5.type}'`); + else if (e5.type.endsWith(c)) { + const t6 = e5.type.slice(0, -p); + e5.archDataTypeId = _[t6], l.default.isUndefined(e5.archDataTypeId) ? d.error(`invalid architect data type for collection slot. name:${e5.name} type:${e5.type}`) : (e5.items = { type: t6 }, e5.type = u.jsonSchemaTypeNames.array); + } + } else d.error("missing type for slot"); + }); + const t4 = {}; + e4.entities && l.default.isArray(e4.entities) && (e4.entities.forEach((e5) => { + e5 && e5.name && (t4[e5.name] = e5); + }), e4.entities = t4); + }), r3; + } + ["Boolean", "Currency", "Datetime", "Decimal", "Duration", "Integer", "String"].forEach((e3) => { + const t3 = e3, i3 = "Datetime" !== e3 ? e3.toLowerCase() : "dateTime"; + _[t3] = s.expressionTypeNames[i3], _[`${t3}${c}`] = `${s.expressionTypeNames[i3]}${a.default.exprDataTypeSuffixCollection}`; + }), h.api = r2.getDigitalBotConnectorBots, m.api = r2.getDigitalBotConnectorBotVersions, g.api = r2.getDigitalBotConnectorBot, f.api = r2.getDigitalBotConnectorBot; + }, 35315: (e2, t2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.expressionTypeCustomizedModes = void 0, t2.resolveCustomization = function(e3, t3) { + if (!(null == t3 ? void 0 : t3.ref) || !e3) return t3; + let n2 = 0; + for (; (null == t3 ? void 0 : t3.ref) && n2 < i2; ) t3 = e3[t3.ref], n2++; + return n2 < i2 ? t3 : void 0; + }; + const i2 = 16; + t2.expressionTypeCustomizedModes = { literalCard: { isLiteralOnly: true, properties: { buttons: { ref: "literalChoices" } } }, literalCards: { isLiteralOnly: true, items: { ref: "literalCard" } }, literalCarousel: { isLiteralOnly: true, properties: { cards: { ref: "literalCards" } } }, literalChoice: { isLiteralOnly: true, properties: { value: { isLiteralOnly: true }, type: { isLiteralOnly: true } } }, literalChoices: { isLiteralOnly: true, items: { ref: "literalChoice" } }, literalChooser: { isLiteralOnly: true, properties: { presentation: { isLiteralOnly: true }, carousel: { ref: "literalCarousel" }, quickReplies: { ref: "literalQuickReplies" } } }, literalQuickReplies: { isLiteralOnly: true, properties: { buttons: { ref: "literalChoices" } } } }; + }, 35317: (e2) => { + "use strict"; + e2.exports = require("child_process"); + }, 35476: (e2) => { + e2.exports = { askCommon: { invalidInputReceived: "Det er ikke gyldig.", noInputReceived: "Jeg mottok ingen inndata." }, askForBoolean: { noInput: 'Si "ja" hvis du \xF8nsker \xE5 fortsette, eller "nei" hvis du ikke vil fortsette.', noMatch: 'Si "Ja" eller "Nei". \xD8nsker du \xE5 fortsette?', question: "\xD8nsker du \xE5 fortsette?", noInputDigitalBot: 'Angi "Ja" hvis du vil fortsette eller "Nei" hvis du ikke vil.', noMatchDigitalBot: 'Angi "Ja" eller "Nei". \xD8nsker du \xE5 fortsette?' }, askForIntent: { noInput: 'Si en kort setning som beskriver sp\xF8rsm\xE5let ditt, slikt som "Kontroller saldoen min"', noMatch: "Si igjen hva det er du \xF8nsker \xE5 gj\xF8re.", question: "Hva \xF8nsker du \xE5 gj\xF8re?", noInputDigitalBot: 'Skriv inn en kort setning som beskriver sp\xF8rringen din. For eksempel, "Sjekke saldoen p\xE5 kontoen min"' }, askForSlot: { askFor: "Sp\xF8r for %1$s", noInput: "Si eller skriv inn (angi spornavnet ditt her).", noInputWithSlot: "Si eller skriv inn %1$s.", noMatch: "Fortell meg (skriv inn spornavnet ditt her) igjen.", noMatchWithSlot: "Gi meg %1$s igjen.", question: "Hva er (skriv inn spornavnet ditt her)?", questionWithSlot: "Hva er %1$s?", pleaseEnterSlotNameHere: "(legg inn spornavnet ditt her)", noInputDigitalBot: "Angi (skriv inn spornavnet ditt her).", noInputWithSlotDigitalBot: "Angi %1$s.", continuationPromptWithSlot: "Jeg har {{Slot.%1$s}} s\xE5 langt, vennligst fortsett." }, askForNextSlot: { noInput: 'Si "ja" hvis du har et annet sp\xF8rsm\xE5l, eller "nei" for \xE5 avslutte oppringningen.', noMatch: 'Si "Ja" hvis du har et annet sp\xF8rsm\xE5l, eller "Nei" for \xE5 avslutte \xF8kten.', question: "Er det noe annet jeg kan hjelpe deg med?", noInputDigitalBot: 'Angi "Ja" hvis du har en sp\xF8rring til, eller "Nei" for \xE5 avslutte \xF8kten.', noMatchDigitalBot: 'Angi "Ja" hvis du har en sp\xF8rring til, eller "Nei" for \xE5 avslutte \xF8kten.' }, askForPayment: { noInputDigitalBot: "Angi betalingsopplysningene dine for \xE5 fortsette.", noMatchDigitalBot: "Jeg forsto ikke svaret ditt. Pr\xF8v igjen." }, askForAuthentication: { noInputDigitalBot: "Oppgi autentiseringsinformasjonen din for \xE5 fortsette.", noMatchDigitalBot: "Jeg forsto ikke svaret ditt. Pr\xF8v igjen." }, askSurveyQuestion: { notApplicable: "Ikke relevant", surveyAnswerOptionSequence: "Trykk p\xE5 %1$s for '%2$s'.", surveyAnswerNotApplicableSequence: "Trykk p\xE5 stjerne for Ikke relevant.", surveyAnswerNotApplicableWithQuestionSequence: "%1$s. Trykk p\xE5 stjerne for Ikke relevant.", voiceSurveyNoInputText: "Vennligst svar p\xE5 sp\xF8rsm\xE5let.", voiceSurveyNoMatchText: "Jeg forst\xE5r deg ikke." }, commonModule: { exitCommonModule: "Avslutt fellesmodul" }, form: { noInputDigitalBot: "Fullf\xF8r skjemaet for \xE5 fortsette.", noMatchDigitalBot: "Fullf\xF8r skjemaet for \xE5 fortsette." }, messagingTemplate: { noInputDigitalBot: "Velg ett av de tilgjengelige alternativene.", noMatchDigitalBot: "Velg ett av de tilgjengelige alternativene." }, knowledgeSettings: { knowledgeAnswerHighlightFlowProgressionDefault: "Fortsett", knowledgeAnswerHighlightFullArticleDefault: "Vis hele artikkelen", knowledgeInitialResponseMulti: "For \xE5 hjelpe meg med \xE5 tydeliggj\xF8re m\xE5let ditt, velger du et tall fra f\xF8lgende liste:", knowledgeInitialResponseMultiRetry: "Velg et tall, for eksempel '1'.\nHer har du listen over valg igjen:", knowledgeNoMatch: "Ingen av disse", knowledgeConfirmation: "Svarte dette p\xE5 sp\xF8rsm\xE5let ditt?", knowledgeFollowup: "Jeg h\xE5per jeg svarte p\xE5 sp\xF8rsm\xE5let ditt. Du kan sp\xF8rre om hva som helst du lurer p\xE5." }, noOverlay: { intent: { intentConfirmationStr1: "Jeg tror du vil", intentConfirmationStr2: "Er dette riktig?" }, youSaid: { youSaidConfirmationStr1: "Du sa", youSaidConfirmationStr2: "Er dette riktig?", youSaidConfirmationStr1DigitalBot: "Du skrev inn" }, noInput: { noInputStr1: "Si eller angi", noInputStr1DigitalBot: "Skriv inn" }, noMatch: { noMatchStr1: "Gi meg" }, whatIs: { whatIsQuestionStr1: "Hva er", whatIsQuestionStr2: "?" }, iGotContinuation: { iGotContinuationStr1: "Jeg har", iGotContinuationStr2: "s\xE5 langt, vennligst fortsett." } }, defaultCallFlowOne: "Standard samtaleflyt", errorHandlingAgentEscalationConfirmation: "Du \xF8nsker \xE5 snakke med en r\xE5dgiver. Er det riktig?", errorHandlingAgentEscalationHandover: "Et \xF8yeblikk, s\xE5 finner jeg noen du kan snakke med.", errorHandlingErrorEventHandover: "Beklager, det oppsto en feil. Vent et \xF8yeblikk mens jeg setter deg over til noen som kan hjelpe.", errorHandlingErrorEventHandoverVoiceSurvey: "Beklager, en feil har oppst\xE5tt. Adj\xF8.", errorHandlingRecognitionEventHandover: "Beklager. Jeg har vanskeligheter med \xE5 forst\xE5 deg. Vent et \xF8yeblikk mens jeg setter deg over til noen som kan hjelpe.", errorHandlingRecognitionEventHandoverVoiceSurvey: "Beklager, jeg har problemer med \xE5 forst\xE5 deg. Adj\xF8.", errorHandlingTTS: "Beklager, det oppstod en feil. Pr\xF8v anropet p\xE5 nytt.", initialGreetingTTS: "Hei, dette er den innledende hilsenen.", initialState: "Opprinnelig tilstand", initialBotState: "Standard bot", initialDigitalBotState: "Innledende hilsen", initialSurveyBotState: "Unders\xF8kelse-bot", intentConfirmation: "Jeg tror du \xF8nsker \xE5 %1$s, er det riktig?", mainMenu: "Hovedmeny", mainMenuTTS: "Du er p\xE5 hovedmenyen. Trykk p\xE5 9 for \xE5 legge p\xE5", mainTask: "Oppgave", settingsConfirmationNoInputApology: "Beklager, jeg h\xF8rte deg ikke. Si ja eller nei.", settingsConfirmationNoInputApologyDigitalBot: 'Beklager, jeg fikk ikke inndata fra deg. Angi "Ja" eller "Nei".', settingsConfirmationNoMatchApology: "Beklager, si ja eller nei.", settingsConfirmationNoMatchApologyDigitalBot: 'Beklager, angi "Ja" eller "Nei".', settingsNoInputApology: "Beklager, jeg h\xF8rte deg ikke.", settingsNoInputApologyDigitalBot: "Beklager, jeg fikk ikke svar fra deg.", settingsEndOfSessionMessageDigitalBot: "Jeg har ikke h\xF8rt fra deg p\xE5 en stund, s\xE5 jeg lukker denne chatten. Kom tilbake hvis du trenger hjelp av meg igjen. Tusen takk.", settingsNoMatchApology: "Beklager.", settingsNoToConfirmationApology: "Det var min feil.", periodicStateName: "Tilbakevendende tilstand" }; + }, 35481: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(21345)), r2 = i2(30801); + class o extends n2.default { + constructor(e3) { + super(e3), this._whisperAudio = this.coreFactory.createArchWrapper(e3.whisperAudio); + } + get _actionTypeId() { + return r2.setWhisperAudioActionType; + } + get displayTypeName() { + return this._scriptingName; + } + setUseDefaultWhisper() { + this.whisperAudio._getCoreViewModel().noValueMode = true; + } + get whisperAudio() { + return this._whisperAudio; + } + get isArchActionSetWhisperAudio() { + return true; + } + } + t2.default = o; + }, 35515: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.archSessionId = t2.pageSizes = t2.pageOrientationOptions = t2.pageSizeOptions = t2.osList = t2.buildNumber = t2.browserInfo = t2.values = t2.limits = t2.browser = void 0, t2.isConnected = function() { + return !!y(); + }, t2.isChrome = function() { + return null === t2.browserInfo || void 0 === t2.browserInfo ? void 0 : t2.browserInfo.is("chrome"); + }, t2.isChromium = function() { + return null === t2.browserInfo || void 0 === t2.browserInfo ? void 0 : t2.browserInfo.isEngine("Blink"); + }, t2.isEdge = function() { + return null === t2.browserInfo || void 0 === t2.browserInfo ? void 0 : t2.browserInfo.is("Microsoft Edge"); + }, t2.isFirefox = function() { + return null === t2.browserInfo || void 0 === t2.browserInfo ? void 0 : t2.browserInfo.is("firefox"); + }, t2.isSafari = function() { + return null === t2.browserInfo || void 0 === t2.browserInfo ? void 0 : t2.browserInfo.is("safari"); + }, t2.getNodeUserAgentHeader = function() { + var e3; + if (!_) { + const i3 = !!(null === (e3 = null === process || void 0 === process ? void 0 : process.env) || void 0 === e3 ? void 0 : e3.IS_ARCHY_CX_AS_CODE_LAMBDA); + _ = `ArchitectScripting-build-${t2.buildNumber}${i3 ? "-lambda)" : ""}`; + } + return _; + }, t2.getGenesysAppHeader = function() { + return `${`architect_webui/${t2.buildNumber}`}/scripting`; + }, t2.getAuthToken = y, t2.setAuthToken = function(e3) { + h = e3; + try { + null == p || p.sendTokenToClients(e3); + } catch (e4) { + u.error(`Encountered exception from pcUiAuthHost.sendTokenToClients: "${e4}"`); + } + }, t2.getConnectUrl = function(e3, t3, i3) { + return e3 = e3 || (0, a.uuid)(), "https://" + f.urls.auth + "/authorize?response_type=" + (i3 ? "code" : "token") + "&redirect_uri=" + t3 + "&state=" + e3 + "&client_id=" + f.client; + }, t2.getDirectoryUrl = function() { + return `https://${f.host}/directory/#/activity`; + }, t2.getDisconnectUrl = function() { + return "https://" + f.urls.auth + "/logout"; + }, t2.getAppsV2StreamingUrl = function() { + return f.host.includes("apps.") ? f.domain = f.host.replace("apps.", "") : f.domain = f.host.replace("app-regional.", ""), `wss://streaming.${f.domain}`; + }, t2.initialize = function(e3, i3, n3, r3, o2, a2) { + f.host = g.host || i3, f.env = g.env || e3, f.appsV2Env = g.appsV2Env || a2, f.urls = f.urls || {}, f.region = g.region || n3, f.isFedRamp = g.isFedRamp || o2, r3 || (f.domain = f.host.replace("apps", ""), f.domain = f.host.replace("app-regional", "")), f.client = g.client ? g.client : S, f.client_secret = g.client_secret, r3 ? (f.redirectUri = window.location.origin + window.location.pathname, f.local = true) : f.redirectUri = f.local ? "http://" + window.location.host : "https://" + f.host + "/architect/", f.coreRedirectUri = "http://localhost:9001/callback", (function() { + const e4 = t2.browser && window.navigator || null; + e4 ? e4.appVersion ? -1 !== e4.appVersion.toLowerCase().indexOf("win") ? m = t2.osList.windows : -1 !== e4.appVersion.toLowerCase().indexOf("mac") ? m = t2.osList.mac : -1 !== e4.appVersion.toLowerCase().indexOf("x11") ? m = t2.osList.unix : -1 !== e4.appVersion.toLowerCase().indexOf("linux") ? m = t2.osList.linux : console.error("OS could not be detected. appVersion: " + e4.appVersion) : (console.error("No navigator.appVersion detected."), m = t2.osList.unknown) : (console.log("navigator unavailable - setting operating system to unknown"), m = t2.osList.unknown); + })(); + }, t2.overrideProperties = function(e3) { + e3 && o.default.each(e3, function(e4, t3) { + g[t3] = e4; + }); + }, t2.loadProperties = function(e3) { + e3 && (function(e4) { + var t3; + f.urls.auth = g.auth || e4["auth.uri"], f.urls["public-api.apps"] = g["api.uri"] || g["public-api.apps"] || e4["api.uri"]; + let i3 = g["purecloud.uri"] || e4["purecloud.uri"]; + i3 && "/" === i3.slice(-1) && (i3 = i3.slice(0, -1)), (null === (t3 = f.host) || void 0 === t3 ? void 0 : t3.includes("app-regional")) && i3 && (i3 = i3.replace("apps.", "app-regional.")), f.urls["purecloud.uri"] = i3; + })((function(e4) { + const t3 = {}; + return o.default.each(e4.split("\n"), function(e5) { + e5 && (e5 = e5.split("="), t3[e5[0]] = e5[1].replace(/http(s|):\/\//, "")); + }), t3; + })(e3)); + }, t2.getCurrentBrowserPageSize = function(e3, i3) { + let n3, r3 = t2.pageSizes.windows.chrome.letter.portrait; + n3 = t2.pageSizes[m] ? t2.pageSizes[m] : t2.pageSizes.windows; + const a2 = t2.browserInfo.getBrowserName(); + return o.default.isString(a2) && n3[a2.toLowerCase()] ? (n3 = n3[t2.browserInfo.getBrowserName().toLowerCase()], n3[e3] && n3[e3][i3] && (r3 = n3[e3][i3]), r3) : (console.error('Did not recognize browser. Name: "' + a2 + '"'), r3); + }, t2.isRedirectingToOAuth = function() { + return A; + }, t2.setIsRedirectingToOAuth = function(e3) { + A = e3; + }, t2.desiredParameters = function() { + return N; + }, t2.setDesiredParameters = function(e3) { + N = e3; + }, t2.desiredHash = function() { + return O; + }, t2.setDesiredHash = function(e3) { + O = e3; + }, t2.desiredPath = function() { + return O ? O.substring(2, O.length) : null; + }, t2.isDevOrTest = function() { + return f.env === d.environmentEnum.dev || f.env === d.environmentEnum.test; + }; + const n2 = i2(31635), r2 = n2.__importDefault(i2(34707)), o = n2.__importDefault(i2(92140)), a = i2(9456), s = n2.__importDefault(i2(73198)), l = n2.__importStar(i2(74359)), u = n2.__importStar(i2(12847)), d = i2(75754), c = i2(287), p = l.isRunningInBrowser() ? i2(53067) : null; + let _; + null == p || p.onClient401(o.default.debounce((e3) => { + u.error(`Received error from pcUiAuthHost.onClient401: "${e3}"`), p.sendTokenToClients(y()); + }, 2 * s.default.msPerSecond)); + let h = null; + t2.browser = "object" == typeof window, t2.limits = new c.EnvironmentLimits(); + let m = null; + const g = {}, f = { urls: {} }; + let T; + function y() { + return h; + } + t2.values = f, t2.browser && (T = r2.default.getParser(window.navigator.userAgent)), t2.browserInfo = T, t2.buildNumber = o.default.isNumber("0.66.1") ? String("0.66.1") : "0.66.1"; + const S = "cd443cab-4821-487f-9fd2-465ec1735ba3"; + let A, N, O; + t2.osList = { windows: "windows", mac: "mac", unix: "unix", linux: "linux", unknown: "unknown" }, t2.pageSizeOptions = { letter: "letter", a4: "a4" }, t2.pageOrientationOptions = { portrait: "portrait" }, t2.pageSizes = { mac: { chrome: { letter: { portrait: { height: 1333, width: 1e3 } }, a4: { portrait: { height: 1427, width: 972.67 } } }, firefox: { letter: { portrait: { height: 1353.5, width: 1e3 } }, a4: { portrait: { height: 1451.25, width: 972.67 } } }, safari: { letter: { portrait: { height: 1198, width: 1e3 } }, a4: { portrait: { height: 1289, width: 972.67 } } } }, windows: { chrome: { letter: { portrait: { firstPageHeightOffset: 7, height: 1334, width: 1e3 } }, a4: { portrait: { firstPageHeightOffset: 7, height: 1429, width: 972.22 } } }, firefox: { letter: { portrait: { height: 1353.5, width: 1e3 } }, a4: { portrait: { height: 1450.75, width: 972.22 } } }, "microsoft edge": { letter: { portrait: { height: 1334, width: 1e3 } }, a4: { portrait: { height: 1429, width: 972.22 } } } } }, t2.archSessionId = i2(65824).generate(), u.infoHighlightAlways("ArchSessionId:" + t2.archSessionId); + }, 35520: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importDefault(i2(94225)), o = i2(54251), a = n2.__importDefault(i2(40559)); + class s extends a.default { + constructor(e3) { + super(e3, o.divisionManager); + } + get _globalTypeName() { + return "divisionCollection"; + } + get displayTypeName() { + return "ArchValueDivisionCollection"; + } + get _searchByValueSearchProperty() { + return "name"; + } + addLiteralByDivisionIdAsync(e3, t3) { + return n2.__awaiter(this, void 0, void 0, function* () { + return this._checkItemIsValidLiteralString(this._infoParm("divisionId", "addLiteralByDivisionIdAsync"), e3), this._checkItemIsValidFunction(this._infoParm("callbackFunction", "addLiteralByDivisionIdAsync"), t3, true), this._addLiteralByIdAsync(e3, "division").then(() => r2.default.executeCallback(this, "addLiteralByDivisionIdAsync", t3, this)); + }); + } + addLiteralByDivisionNameAsync(e3, t3) { + return n2.__awaiter(this, void 0, void 0, function* () { + return this._checkItemIsValidLiteralString(this._infoParm("divisionName", "addLiteralByDivisionNameAsync"), e3), this._checkItemIsValidFunction(this._infoParm("callbackFunction", "addLiteralByDivisionNameAsync"), t3, true), this._addLiteralByValueAsync(e3, "division").then(() => r2.default.executeCallback(this, "addLiteralByDivisionNameAsync", t3, this)); + }); + } + get isArchValueDivisionCollection() { + return true; + } + } + t2.default = s; + }, 35565: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.scan = void 0; + var n2 = i2(65212), r2 = i2(78531); + t2.scan = function(e3, t3) { + return n2.operate(r2.scanInternals(e3, t3, arguments.length >= 2, true)); + }; + }, 35583: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importDefault(i2(12138)), o = n2.__importDefault(i2(92140)); + class a extends r2.default { + constructor(e3, t3, i3, n3, r3) { + super(e3, t3, i3, n3, r3), this.operationIds = {}; + } + _applyOperationId(e3) { + o.default.each(o.default.isArray(e3) ? e3 : [e3], (e4) => { + e4 && e4.id ? (this.operationIds[e4.id] = e4.id, this.logTopic.addContext("opId", o.default.keys(this.operationIds).join(","))) : (this.logTopic.error("did not receive async operationId"), this._cleanOperation(false, this)); + }); + } + get firstOperationId() { + return o.default.keys(this.operationIds)[0]; + } + matchesOperationId(e3) { + return !!this.operationIds[e3]; + } + set operationToPerform(e3) { + super.operationToPerform = (t3) => e3(t3).then((e4) => this._applyOperationId(e4)); + } + get operationToPerform() { + return super.operationToPerform; + } + } + t2.default = a; + }, 35589: (e2, t2, i2) => { + "use strict"; + var n2, r2, o, a, s; + Object.defineProperty(t2, "__esModule", { value: true }); + const l = i2(31635), u = i2(30801), d = l.__importDefault(i2(11210)); + class c extends d.default { + constructor(e3) { + super(e3), n2.set(this, void 0), r2.set(this, void 0), o.set(this, void 0), a.set(this, void 0), s.set(this, void 0), l.__classPrivateFieldSet(this, n2, this.coreFactory.createArchWrapper(e3.noMatch), "f"), l.__classPrivateFieldSet(this, r2, this.coreFactory.createArchWrapper(e3.question), "f"), l.__classPrivateFieldSet(this, o, this.coreFactory.createArchWrapper(e3.knowledgeSearchResult), "f"), l.__classPrivateFieldSet(this, a, this.coreFactory.createArchWrapper(e3.customizeNoMatch), "f"), l.__classPrivateFieldSet(this, s, this.coreFactory.createArchWrapper(e3.noMatchReprompts), "f"); + } + get _actionTypeId() { + return u.waitForInputActionType; + } + get displayTypeName() { + return this._scriptingName; + } + get isArchActionWaitForInput() { + return true; + } + get knowledgeSearchResult() { + return l.__classPrivateFieldGet(this, o, "f"); + } + get noMatch() { + return l.__classPrivateFieldGet(this, n2, "f"); + } + get question() { + return l.__classPrivateFieldGet(this, r2, "f"); + } + get customizeNoMatch() { + return l.__classPrivateFieldGet(this, a, "f"); + } + get noMatchReprompts() { + return l.__classPrivateFieldGet(this, s, "f"); + } + } + n2 = /* @__PURE__ */ new WeakMap(), r2 = /* @__PURE__ */ new WeakMap(), o = /* @__PURE__ */ new WeakMap(), a = /* @__PURE__ */ new WeakMap(), s = /* @__PURE__ */ new WeakMap(), t2.default = c; + }, 35635: (e2, t2, i2) => { + function n2() { + this.extendProperties(this), n2.baseConstructor.apply(this, arguments); + } + i2(45214).extend(n2, "FlowOperation"), Object.defineProperties(n2.prototype, { extendProperties: { enumerable: false, value: function(e3) { + e3.actionName = void 0, e3.actionStatus = void 0, e3.complete = void 0, e3.id = void 0, e3.errorCode = void 0, e3.errorDetails = void 0, e3.errorMessage = void 0, e3.errorMessageParams = void 0; + } } }), e2.exports = n2; + }, 35648: (e2, t2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.default = { cardDataType: { properties: { title: { minLength: 1 }, buttons: { minItems: { count: 1 }, maxItems: { count: 3 } } } }, choiceDataType: { properties: { value: { minLength: 1 } } }, quickRepliesDataType: { properties: { buttons: { minItems: { count: 1 }, maxItems: { count: 10, isSoftLimit: true } }, quickReplySummary: { maxLength: 512 } } }, carouselDataType: { properties: { cards: { minItems: { count: 1 }, maxItems: { count: 10 } } } }, formInputDataType: { properties: { title: { maxLength: 512 }, subtitle: { maxLength: 512 }, placeholderText: { maxLength: 512 } } }, listPickerType: { properties: { sections: { minItems: { count: 1 }, maxItems: { count: 10 } }, receivedMessageTitle: { minLength: 1, maxLength: 256 }, receivedMessageSubtitle: { maxLength: 256 }, receivedMessageButtonText: { minLength: 1, maxLength: 20 }, replyMessageSubtitle: { maxLength: 256 } } }, listPickerItemType: { properties: { title: { minLength: 1, maxLength: 50 }, subtitle: { maxLength: 256 } } }, listPickerSectionType: { properties: { title: { minLength: 1, maxLength: 256 }, items: { maxItems: { count: 100 } } } }, wheelPickerDataType: { properties: { items: { minItems: { count: 1 }, maxItems: { count: 100 } } } }, timePickerDataType: { properties: { title: { minLength: 1 } } } }; + }, 35711: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.allPostFlowActionTypes = t2.inboundShortMessageFlow = t2.voiceSurveyFlow = t2.inboundCallFlow = void 0; + const n2 = i2(47957); + t2.inboundCallFlow = { displayString: n2.flow.types.inboundCall, id: "inboundCallFlow" }, t2.voiceSurveyFlow = { displayString: n2.flow.types.voiceSurveyFlow, id: "voiceSurveyFlow" }, t2.inboundShortMessageFlow = { displayString: n2.flow.types.inboundShortMessage, id: "inboundShortMessageFlow" }, t2.allPostFlowActionTypes = [t2.inboundCallFlow, t2.voiceSurveyFlow, t2.inboundShortMessageFlow]; + }, 35726: function(e2, t2, i2) { + "use strict"; + var n2 = this && this.__read || function(e3, t3) { + var i3 = "function" == typeof Symbol && e3[Symbol.iterator]; + if (!i3) return e3; + var n3, r3, o2 = i3.call(e3), a = []; + try { + for (; (void 0 === t3 || t3-- > 0) && !(n3 = o2.next()).done; ) a.push(n3.value); + } catch (e4) { + r3 = { error: e4 }; + } finally { + try { + n3 && !n3.done && (i3 = o2.return) && i3.call(o2); + } finally { + if (r3) throw r3.error; + } + } + return a; + }, r2 = this && this.__spreadArray || function(e3, t3) { + for (var i3 = 0, n3 = t3.length, r3 = e3.length; i3 < n3; i3++, r3++) e3[r3] = t3[i3]; + return e3; + }; + Object.defineProperty(t2, "__esModule", { value: true }), t2.animationFrameProvider = void 0; + var o = i2(69879); + t2.animationFrameProvider = { schedule: function(e3) { + var i3 = requestAnimationFrame, n3 = cancelAnimationFrame, r3 = t2.animationFrameProvider.delegate; + r3 && (i3 = r3.requestAnimationFrame, n3 = r3.cancelAnimationFrame); + var a = i3(function(t3) { + n3 = void 0, e3(t3); + }); + return new o.Subscription(function() { + return null == n3 ? void 0 : n3(a); + }); + }, requestAnimationFrame: function() { + for (var e3 = [], i3 = 0; i3 < arguments.length; i3++) e3[i3] = arguments[i3]; + var o2 = t2.animationFrameProvider.delegate; + return ((null == o2 ? void 0 : o2.requestAnimationFrame) || requestAnimationFrame).apply(void 0, r2([], n2(e3))); + }, cancelAnimationFrame: function() { + for (var e3 = [], i3 = 0; i3 < arguments.length; i3++) e3[i3] = arguments[i3]; + var o2 = t2.animationFrameProvider.delegate; + return ((null == o2 ? void 0 : o2.cancelAnimationFrame) || cancelAnimationFrame).apply(void 0, r2([], n2(e3))); + }, delegate: void 0 }; + }, 35730: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.ExpressionTypeTimePickerOptions = void 0; + const n2 = i2(65615); + class r2 extends n2.BaseExpressionTypeCollectionOptions { + static create(e3, t3) { + return new this(t3).invokeOptionsCallback(e3); + } + constructor(e3) { + super(e3); + } + get className() { + return "ExpressionTypeTimePickerOptions"; + } + get isExpressionTypeTimePickerOptions() { + return true; + } + } + t2.ExpressionTypeTimePickerOptions = r2; + }, 35786: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(81574)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "messageAddressInfo"; + } + get name() { + } + get addressRaw() { + } + get addressNormalized() { + } + get addressDisplayable() { + } + get email() { + } + get displayTypeName() { + return "ArchValueMessageAddressInfo"; + } + get isArchValueMessageAddressInfo() { + return true; + } + } + t2.default = r2; + }, 35825: (e2, t2, i2) => { + const n2 = i2(62532), r2 = i2(30021), o = i2(11475), a = i2(11384), s = i2(95372), l = i2(42161), u = i2(43452), d = i2(19069), c = i2(74871), p = i2(67692), _ = i2(1057), h = i2(83226), m = i2(7320), g = i2(18534), f = i2(15893), T = i2(82584), y = i2(73728), S = i2(40853), A = i2(45335), N = i2(42685); + function O() { + O.baseConstructor.apply(this, arguments); + } + function I() { + I.baseConstructor.apply(this, arguments); + } + function v() { + v.baseConstructor.apply(this, arguments); + } + function C() { + C.baseConstructor.apply(this, arguments); + } + function b() { + b.baseConstructor.apply(this, arguments); + } + function E() { + E.baseConstructor.apply(this, arguments); + } + function R() { + b.baseConstructor.apply(this, arguments); + } + function w() { + w.baseConstructor.apply(this, arguments); + } + function D() { + D.baseConstructor.apply(this, arguments); + } + function P() { + P.baseConstructor.apply(this, arguments); + } + function M() { + M.baseConstructor.apply(this, arguments); + } + function F() { + F.baseConstructor.apply(this, arguments); + } + function L() { + L.baseConstructor.apply(this, arguments); + } + function x() { + x.baseConstructor.apply(this, arguments); + } + function k() { + k.baseConstructor.apply(this, arguments); + } + function V() { + V.baseConstructor.apply(this, arguments); + } + function U() { + U.baseConstructor.apply(this, arguments); + } + function B() { + B.baseConstructor.apply(this, arguments); + } + function G() { + G.baseConstructor.apply(this, arguments); + } + function j() { + j.baseConstructor.apply(this, arguments); + } + function W() { + W.baseConstructor.apply(this, arguments); + } + function q() { + q.baseConstructor.apply(this, arguments); + } + function Y() { + Y.baseConstructor.apply(this, arguments); + } + function H() { + H.baseConstructor.apply(this, arguments); + } + function J() { + J.baseConstructor.apply(this, arguments); + } + function z() { + z.baseConstructor.apply(this, arguments); + } + function K() { + K.baseConstructor.apply(this, arguments); + } + function $() { + $.baseConstructor.apply(this, arguments); + } + function Q() { + Q.baseConstructor.apply(this, arguments); + } + function X() { + X.baseConstructor.apply(this, arguments); + } + function Z() { + Z.baseConstructor.apply(this, arguments); + } + function ee() { + ee.baseConstructor.apply(this, arguments); + } + function te() { + te.baseConstructor.apply(this, arguments); + } + function ie() { + ie.baseConstructor.apply(this, arguments); + } + function ne() { + ne.baseConstructor.apply(this, arguments); + } + function re() { + re.baseConstructor.apply(this, arguments); + } + function oe() { + oe.baseConstructor.apply(this, arguments); + } + function ae() { + ae.baseConstructor.apply(this, arguments); + } + function se() { + se.baseConstructor.apply(this, arguments); + } + function le() { + le.baseConstructor.apply(this, arguments); + } + function ue() { + ue.baseConstructor.apply(this, arguments); + } + o.extend(O, "AudioVariable", true), o.extend(I, "BoolVariable", true), o.extend(v, "ButtonVariable", true), o.extend(C, "CardVariable", true), o.extend(b, "CarouselVariable", true), o.extend(E, "ChoiceVariable", true), o.extend(R, "ChooserVariable", true), o.extend(w, "CampaignVariable", true), o.extend(D, "ContactVariable", true), o.extend(P, "ContactListVariable", true), o.extend(M, "DateVariable", true), o.extend(F, "DateTimeVariable", true), o.extend(L, "EmergencyGroupVariable", true), o.extend(x, "FormInputVariable", true), o.extend(k, "GroupVariable", true), o.extend(V, "IntegerVariable", true), o.extend(U, "LanguageSkillEnumVariable", true), o.extend(B, "LanguageSkillVariable", true), o.extend(function e3() { + e3.baseConstructor.apply(this, arguments); + }, "ListPickerVariable", true), o.extend(function e3() { + e3.baseConstructor.apply(this, arguments); + }, "ListPickerItemVariable", true), o.extend(function e3() { + e3.baseConstructor.apply(this, arguments); + }, "ListPickerSectionVariable", true), o.extend(G, "LineItemVariable", true), o.extend(j, "PhoneNumberVariable", true), o.extend(W, "PromptVariable", true), o.extend(q, "QueueVariable", true), o.extend(Y, "QuickRepliesVariable", true), o.extend(H, "RegionsVariable", true), o.extend(J, "ScheduleVariable", true), o.extend(z, "ScheduleGroupVariable", true), o.extend(K, "ShippingOptionVariable", true), o.extend($, "SkillVariable", true), o.extend(Q, "StringVariable", true), o.extend(X, "SurveyAnswerOptionVariable", true), o.extend(Z, "SurveyFormVariable", true), o.extend(ee, "SurveyQuestionGroupVariable", true), o.extend(te, "SurveyQuestionVariable", true), o.extend(ie, "TimeVariable", true), o.extend(ne, "TimePickerVariable", true), o.extend(re, "TimeslotVariable", true), o.extend(oe, "UserVariable", true), o.extend(ae, "UtilizationLabelVariable", true), o.extend(se, "WheelPickerVariable", true), o.extend(le, "WheelPickerItemVariable", true), o.extend(ue, "WrapupCodeVariable", true), e2.exports = { AssignedCustomerIntentVariable: n2, AssignedCustomerSegmentVariable: r2, AudioVariable: O, BoolVariable: I, ButtonVariable: v, CampaignVariable: w, CardVariable: C, CarouselVariable: b, ChoiceVariable: E, ChooserVariable: R, CommunicationVariable: a, ComplexVariable: s, ContactVariable: D, ContactListVariable: P, CurrencyVariable: l, CustomerIntentVariable: u, CustomerSegmentVariable: d, DateVariable: M, DateTimeVariable: F, DecimalVariable: c, DigitalAudioVariable: p, DivisionVariable: _, DurationVariable: h, EmergencyGroupVariable: L, FileVariable: m, FormInputVariable: x, GrammarVariable: g, GroupVariable: k, ImageVariable: f, IntegerVariable: V, JsonVariable: T, KnowledgeBaseDocumentVariable: y, LanguageSkillEnumVariable: U, LanguageSkillVariable: B, LineItemVariable: G, PhoneNumberVariable: j, PromptVariable: W, QueueVariable: q, QuickRepliesVariable: Y, RegionVariable: H, RegionsVariable: H, ResponseAssetVariable: S, ScheduleVariable: J, ScheduleGroupVariable: z, ShippingOptionVariable: K, SkillVariable: $, StringVariable: Q, SurveyAnswerOptionVariable: X, SurveyFormVariable: Z, SurveyQuestionGroupVariable: ee, SurveyQuestionVariable: te, TimeVariable: ie, TimePickerVariable: ne, TimeslotVariable: re, UserVariable: oe, UtilizationLabelVariable: ae, VideoVariable: A, VoiceSnippetVariable: N, WheelPickerVariable: se, WheelPickerItemVariable: le, WrapupCodeVariable: ue }; + }, 35859: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importDefault(i2(31517)), o = n2.__importDefault(i2(3220)), a = { ArchLanguage: r2.default, archLanguages: o.default }; + t2.default = a; + }, 35882: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importDefault(i2(2315)), o = n2.__importDefault(i2(39029)), a = n2.__importDefault(i2(92140)); + class s { + constructor() { + Object.defineProperties(this, { _defaultGenerationBucketName: { writable: true }, _expressionGenerator: { writable: true }, _generationBuckets: { value: {}, writable: true }, _replacementTokens: { writable: true } }); + } + static create(e3) { + const t3 = new s(); + return e3 ? t3.setGenerator(e3) : t3; + } + static createSprintfGeneration(e3) { + return this.create(e3).setReplacementTokens(["%1$s", "%2$s", "%3$s", "%4$s", "%5$s", "%6$s", "%7$s", "%8$s"]); + } + static createForGenerator(e3) { + return new s().setGenerator(e3); + } + get defaultGenerationBucketName() { + return this._defaultGenerationBucketName; + } + generate(e3) { + if (!this._expressionGenerator) return; + let t3, i3, n3; + try { + a.default.isUndefined(e3) && (e3 = r2.default.createNoFormattingBuildTextHelper(), i3 = true), t3 = o.default.create(e3), n3 = this._generate(t3); + } finally { + t3 && t3.destroy(), i3 && e3.destroy(); + } + return n3; + } + _generate(e3) { + let t3; + return e3.genDepthIncrement(), this._expressionGenerator._generate(this, e3), e3.genDepthDecrement(), 0 === e3.genDepth && (t3 = e3.getResult()), t3; + } + setGenerator(e3) { + return this._expressionGenerator = e3, this._defaultGenerationBucketName = e3.defaultGenerationBucketName, this; + } + setReplacementTokens(e3) { + return this._replacementTokens = a.default.isArray(e3) ? e3 : [e3], this; + } + get replacementTokens() { + return this._replacementTokens; + } + get generator() { + return this._expressionGenerator; + } + getReplacementTokenAtIndex(e3) { + return e3 < this._replacementTokens.length ? this._replacementTokens[e3] : ""; + } + get generationBuckets() { + return this._generationBuckets; + } + get willGenerateNotSetOrStringLiteral() { + return this._expressionGenerator.getWillGenerateNotSetOrStringLiteral(this); + } + addGenerationToBucket(e3, t3) { + a.default.isUndefined(t3) && (t3 = this._defaultGenerationBucketName); + let i3 = this._generationBuckets[t3]; + a.default.isUndefined(i3) && (i3 = [], this._generationBuckets[t3] = i3); + try { + !this._amInAboutToAddGenerationCallout && this._expressionGenerator && this._expressionGenerator.aboutToAddGenerationCallback && (this._amInAboutToAddGenerationCallout = true, this._expressionGenerator.aboutToAddGenerationCallback(this, t3, i3, e3)); + } finally { + this._amInAboutToAddGenerationCallout = false; + } + return i3.push(e3), this; + } + getGenerationForBucket(e3) { + return this._generationBuckets[e3]; + } + _destroyGenerationBucketMap(e3) { + a.default.each(e3, (e4) => { + a.default.each(e4, (e5) => { + try { + e5.destroy(); + } catch (e6) { + } + }); + }); + } + destroy() { + this._destroyGenerationBucketMap(this._generationBuckets), this._defaultGenerationBucketName = void 0, this._expressionGenerator = void 0, this._generationBuckets = void 0, this._replacementTokens = void 0; + } + } + t2.default = s; + }, 35884: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.defer = void 0; + var n2 = i2(48051), r2 = i2(19724); + t2.defer = function(e3) { + return new n2.Observable(function(t3) { + r2.innerFrom(e3()).subscribe(t3); + }); + }; + }, 35904: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.using = void 0; + var n2 = i2(48051), r2 = i2(19724), o = i2(44885); + t2.using = function(e3, t3) { + return new n2.Observable(function(i3) { + var n3 = e3(), a = t3(n3); + return (a ? r2.innerFrom(a) : o.EMPTY).subscribe(i3), function() { + n3 && n3.unsubscribe(); + }; + }); + }; + }, 35951: (e2, t2, i2) => { + "use strict"; + const n2 = i2(31635), r2 = i2(12179), o = i2(12457), a = i2(67607), s = n2.__importDefault(i2(27203)), l = n2.__importDefault(i2(97891)), u = n2.__importDefault(i2(5730)), d = i2(80428), c = i2(47957); + class p extends u.default { + constructor(e3, t3) { + super(e3.parentFlow, e3), this.expression = null, this._loadModel(t3); + } + static get branchInfo() { + return s.default.yesNo; + } + getDetails() { + return this.expression && this.expression.text ? new o.ActionDetails([""], [this.expression.text]) : null; + } + static get managedProperties() { + return [{ label: c.expression.label, options: a.ExpressionTypeBooleanOptions.create((e3) => e3.setIninTestingField("decisionExpression")), property: "expression", type: d.expressionTypeNames.boolean, yamlOptions: p.createYamlOptions("condition", (e3) => e3.setPropertyName("condition")) }]; + } + } + p.info = l.default.createActionInfo({ actionClass: p, canBeInTask: true, helpTopic: r2.helpTopics.actions.decision, modelClass: i2(33631), name: c.actions.decision, scriptingName: "ArchActionDecision" }), t2.A = p; + }, 35958: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(65294)); + class r2 extends n2.default { + constructor(e3) { + super(e3), this._findIds = this.coreFactory.createArchWrapper(e3.findIds); + } + get displayTypeName() { + return "ArchBaseActionFindSystemObjectsById"; + } + get isArchBaseActionFindSystemObjectsById() { + return true; + } + get findIds() { + return this._findIds; + } + } + t2.default = r2; + }, 35966: (e2, t2, i2) => { + const n2 = i2(57731), r2 = {}; + function o(e3, t3) { + r2[e3] = this, r2[t3] = this, o.baseConstructor.apply(this, arguments); + } + n2.extend(o, "CollectInputVerificationType"), o.getInstance = function(e3) { + return r2[e3 || 0] || r2[0]; + }, o.UniqueDigits = new o(0, "UniqueDigits"), o.Numeric = new o(1, "Numeric"), Object.defineProperties(o.prototype, { getConfiguration: { value: function(e3, t3) { + return t3?.isForFlowYaml ? this === o.UniqueDigits ? "individualDigits" : this === o.Numeric ? "numeric" : "none" : this; + } } }), e2.exports = o; + }, 36019: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importDefault(i2(92140)), o = n2.__importStar(i2(35515)), a = i2(52164), s = i2(50712), l = i2(29926), u = o.browser ? window : global; + u.TestKillConnection = function() { + console.debug("Testing - killing the connection"), o.setAuthToken(o.getAuthToken() + "_fake"); + }, u.TestTimeoutConnection = function() { + console.debug("Testing - timing out the connection"), u.__timeOutConnection = true; + }, u.TestFakeServerResponse = function(e3) { + e3 === parseInt(e3, 10) ? (console.debug("Testing - returning faked specified response type for all server calls"), u.__testFakeServerResponseCode = e3) : console.debug("Error: Must specify a valid HTTP response code for window.TestFakeServerResponse"); + }, u.TestFakeServerResponseOff = function() { + console.debug("Testing - turning off faked response types for server calls"), u.__testFakeServerResponseCode = null; + }; + const d = new class { + addRequestHandler(e3, t3) { + t3 ? a.BasicRequest.handlers.unshift(e3) : a.BasicRequest.handlers.splice(a.BasicRequest.handlers.length - 1, 0, e3); + } + makeRequest(e3, t3, i3, n3, r3) { + const o2 = new l.RequestInfo(e3, t3, i3); + return o2.addOptions(n3), this.build(o2, r3).call(); + } + request(e3, t3, i3, n3) { + const r3 = new l.RequestInfo(e3, t3, i3); + return n3 && r3.addOptions(n3), r3; + } + formatStringForTracing(e3) { + return e3 ? (e3 instanceof Error ? e3 = e3.toString() : r2.default.isString(e3) || (e3 = JSON.stringify(e3)), r2.default.each(r2.default.rest(arguments), function(t3) { + e3 = e3.replace(/{}/, t3); + }), e3) : ""; + } + build(e3, t3) { + return new ((0, s.getDefaultRequestModel)())(e3, t3); + } + }(); + t2.default = d; + }, 36024: (e2, t2, i2) => { + function n2() { + n2.baseConstructor.apply(this, arguments); + } + i2(39950).extend(n2, "ClipboardContentMenuModel", true), Object.defineProperties(n2.prototype, { configure: { value: function(e3, t3, i3, r2) { + n2._super.configure.apply(this, arguments); + } } }), e2.exports = n2; + }, 36128: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.NameValuePairsOptions = void 0; + const n2 = i2(31635), r2 = i2(42433), o = i2(80295), a = i2(55909), s = i2(33951); + class l extends r2.BaseOptions { + static create(e3) { + return new this().invokeOptionsCallback(e3); + } + constructor() { + super(), this._allowLiteralOnlyOnName = false, (0, o.makeUnenumerable)(this, "_addButtonLabel"), (0, o.makeUnenumerable)(this, "_allowLiteralOnlyOnName"), (0, o.makeUnenumerable)(this, "_nameLabel"), (0, o.makeUnenumerable)(this, "_sectionLabel"), (0, o.makeUnenumerable)(this, "_valueLabel"); + } + get className() { + return "NameValuePairsOptions"; + } + get isNameValuePairsOptions() { + return true; + } + _setFromOptions(e3) { + super._setFromOptions(e3), this._setOptionIfSet(this.setAddButtonLabel, e3.addButtonLabel), this._setOptionIfSet(this.setAllowLiteralModeOnlyOnName, e3.allowLiteralOnlyOnName), this._setOptionIfSet(this.setSectionLabel, e3.sectionLabel), this._setOptionIfSet(this.setNameLabel, e3.nameLabel, "_nameLabel"), this._setOptionIfSet(this.setValueLabel, e3.valueLabel, "_valueLabel"); + } + get addButtonLabel() { + return this._addButtonLabel; + } + set addButtonLabel(e3) { + this._addButtonLabel = s.ParameterValidator.expectString(e3, () => a.ParameterInfo.createPropertySet(this.className, "addButtonLabel", "value")); + } + get allowLiteralOnlyOnName() { + return this._allowLiteralOnlyOnName; + } + set allowLiteralOnlyOnName(e3) { + this._allowLiteralOnlyOnName = s.ParameterValidator.expectBool(e3, () => a.ParameterInfo.createPropertySet(this.className, "allowLiteralOnlyOnName", "value")); + } + get nameLabel() { + return this._nameLabel; + } + set nameLabel(e3) { + this._nameLabel = s.ParameterValidator.expectString(e3, () => a.ParameterInfo.createPropertySet(this.className, "nameLabel", "value")); + } + get sectionLabel() { + return this._sectionLabel; + } + set sectionLabel(e3) { + this._sectionLabel = s.ParameterValidator.expectString(e3, () => a.ParameterInfo.createPropertySet(this.className, "sectionLabel", "value")); + } + get valueLabel() { + return this._valueLabel; + } + set valueLabel(e3) { + this._valueLabel = s.ParameterValidator.expectString(e3, () => a.ParameterInfo.createPropertySet(this.className, "valueLabel", "value")); + } + setAddButtonLabel(e3) { + return this.addButtonLabel = e3, this; + } + setAllowLiteralModeOnlyOnName(e3) { + return this.allowLiteralOnlyOnName = e3, this; + } + setNameLabel(e3) { + return this.nameLabel = e3, this; + } + setValueLabel(e3) { + return this.valueLabel = e3, this; + } + setSectionLabel(e3) { + return this.sectionLabel = e3, this; + } + } + t2.NameValuePairsOptions = l, n2.__decorate([(0, o.enumerable)(true), n2.__metadata("design:type", String), n2.__metadata("design:paramtypes", [Object])], l.prototype, "addButtonLabel", null), n2.__decorate([(0, o.enumerable)(true), n2.__metadata("design:type", Boolean), n2.__metadata("design:paramtypes", [Object])], l.prototype, "allowLiteralOnlyOnName", null), n2.__decorate([(0, o.enumerable)(true), n2.__metadata("design:type", String), n2.__metadata("design:paramtypes", [Object])], l.prototype, "nameLabel", null), n2.__decorate([(0, o.enumerable)(true), n2.__metadata("design:type", String), n2.__metadata("design:paramtypes", [Object])], l.prototype, "sectionLabel", null), n2.__decorate([(0, o.enumerable)(true), n2.__metadata("design:type", String), n2.__metadata("design:paramtypes", [Object])], l.prototype, "valueLabel", null); + }, 36179: (e2, t2, i2) => { + const { builderCategoryIds: n2 } = i2(73062), r2 = i2(79904).default, o = i2(5532).default, { builderPartIds: a } = i2(69149), s = i2(42290).default, l = i2(16958), u = i2(73198).default, d = i2(76486).default, c = i2(22599).default, p = i2(98114).default, { globalTypes: _ } = i2(14394); + e2.exports = { create: function() { + const e3 = new d({ expressionType: _.dateTime, label: l.builderParts.shared.expressions.calculationDateTime.label, configureOptionsCallback: (e4) => e4.setDefaultToExpression(true).setDefaultText("GetCurrentDateTimeUtc()").setIninTestingField("dateTimeForCalculation") }), t3 = new d({ expressionType: _.dateTime, label: l.builderParts.shared.expressions.dateTimeBoolCheck.label, configureOptionsCallback: (e4) => e4.setDefaultToExpression(true).setDefaultText("GetCurrentDateTimeUtc()").setIninTestingField("dateTimeForCalculation") }); + o.addBuilderPartDef(new s({ categoryIdentifierOrIdentifiers: n2.dateTime, description: l.builderParts.dateTime.lastDayOfMonth.description, expressionDefs: [e3], generators: { expressionGenerator: c.create().addFuncCall("If").addFuncCall("IsSet").addTokenReplacement(0).addFuncCallEnd().addFuncParameterSeparator().addFuncCall("AddDays").addFuncCall("If").addFuncCall("Month").addTokenReplacement(0).addFuncCallEnd().addOperatorEquals().addToken("12").addFuncParameterSeparator().addFuncCall("MakeDateTime").addFuncCall("Year").addTokenReplacement(0).addFuncCallEnd().addOperatorPlus().addToken(1).addFuncParameterSeparator().addToken(1).addFuncParameterSeparator().addToken(1).addFuncParameterSeparator().addToken(0).addFuncParameterSeparator().addToken(0).addFuncParameterSeparator().addToken(0).addFuncCallEnd().addFuncParameterSeparator().addFuncCall("MakeDateTime").addFuncCall("Year").addTokenReplacement(0).addFuncCallEnd().addFuncParameterSeparator().addFuncCall("Month").addTokenReplacement(0).addFuncCallEnd().addOperatorPlus().addToken(1).addFuncParameterSeparator().addToken(1).addFuncParameterSeparator().addToken(0).addFuncParameterSeparator().addToken(0).addFuncParameterSeparator().addToken(0).addFuncCallEnd().addFuncCallEnd().addFuncParameterSeparator().addToken("-1").addFuncCallEnd().addFuncParameterSeparator().addFuncCall("ToDateTime").addTokenNotSet().addFuncCallEnd().addFuncCallEnd().verifySprintfStringAndInitialize("If(IsSet(%1$s), AddDays(If(Month(%1$s) == 12, MakeDateTime(Year(%1$s) + 1, 1, 1, 0, 0, 0), MakeDateTime(Year(%1$s), Month(%1$s) + 1, 1, 0, 0, 0)), -1), ToDateTime(NOT_SET))") }, id: a.dateTime.lastDayOfMonth, name: l.builderParts.dateTime.lastDayOfMonth.name, resultExpressionType: _.dateTime, version: 1 })), o.addBuilderPartDef(new s({ categoryIdentifierOrIdentifiers: n2.dateTime, description: l.builderParts.dateTime.firstDayOfNextMonth.description, expressionDefs: [e3], generators: { expressionGenerator: c.create().addFuncCall("If").addFuncCall("IsSet").addTokenReplacement(0).addFuncCallEnd().addFuncParameterSeparator().addFuncCall("If").addFuncCall("Month").addTokenReplacement(0).addFuncCallEnd().addOperatorEquals().addToken("12").addFuncParameterSeparator().addFuncCall("MakeDateTime").addFuncCall("Year").addTokenReplacement(0).addFuncCallEnd().addOperatorPlus().addToken(1).addFuncParameterSeparator().addToken(1).addFuncParameterSeparator().addToken(1).addFuncParameterSeparator().addToken(0).addFuncParameterSeparator().addToken(0).addFuncParameterSeparator().addToken(0).addFuncCallEnd().addFuncParameterSeparator().addFuncCall("MakeDateTime").addFuncCall("Year").addTokenReplacement(0).addFuncCallEnd().addFuncParameterSeparator().addFuncCall("Month").addTokenReplacement(0).addFuncCallEnd().addOperatorPlus().addToken(1).addFuncParameterSeparator().addToken(1).addFuncParameterSeparator().addToken(0).addFuncParameterSeparator().addToken(0).addFuncParameterSeparator().addToken(0).addFuncCallEnd().addFuncCallEnd().addFuncParameterSeparator().addFuncCall("ToDateTime").addTokenNotSet().addFuncCallEnd().addFuncCallEnd().verifySprintfStringAndInitialize("If(IsSet(%1$s), If(Month(%1$s) == 12, MakeDateTime(Year(%1$s) + 1, 1, 1, 0, 0, 0), MakeDateTime(Year(%1$s), Month(%1$s) + 1, 1, 0, 0, 0)), ToDateTime(NOT_SET))") }, id: a.dateTime.firstDayOfNextMonth, name: l.builderParts.dateTime.firstDayOfNextMonth.name, resultExpressionType: _.dateTime, version: 1 })), o.addBuilderPartDef(new s({ categoryIdentifierOrIdentifiers: n2.dateTime, description: l.builderParts.dateTime.nextDayOfWeek.description, expressionDefs: [e3, new d({ descriptionInfo: { description: l.builderParts.dateTime.nextDayOfWeek.expressions.dayOfWeek.description, name: l.builderParts.dateTime.nextDayOfWeek.expressions.dayOfWeek.name }, expressionType: _.integer, label: l.builderParts.dateTime.nextDayOfWeek.expressions.dayOfWeek.label, configureOptionsCallback: (e4) => e4.setDefaultText("6").setIninTestingField("dayOfWeek").facets.setMinInt(1, true).setMaxInt(7, true) }), new d({ descriptionInfo: { name: l.builderParts.dateTime.nextDayOfWeek.expressions.dayOfWeekMatch.name, description: l.builderParts.dateTime.nextDayOfWeek.expressions.dayOfWeekMatch.description }, expressionType: _.boolean, label: l.builderParts.dateTime.nextDayOfWeek.expressions.dayOfWeekMatch.label, configureOptionsCallback: (e4) => e4.setDefaultText(u.false).setIninTestingField("useSpecifiedDateTimeDateIfDayOfWeekMatches") })], generators: { expressionGenerator: c.create().addFuncCall("If").addFuncCall("IsSet").addTokenReplacement(0).addFuncCallEnd().addOperatorAnd().addFuncCall("IsSet").addTokenReplacement(1).addFuncCallEnd().addFuncParameterSeparator().addFuncCall("If").addOpenParen().addFuncCall("DayOfWeek").addTokenReplacement(0).addFuncCallEnd().addOperatorEquals().addTokenReplacement(1).addCloseParen().addOperatorAnd().addOpenParen().addTokenReplacement(2).addOperatorEquals().addTokenBooleanTrue().addCloseParen().addFuncParameterSeparator().addFuncCall("MakeDateTime").addFuncCall("Year").addTokenReplacement(0).addFuncCallEnd().addFuncParameterSeparator().addFuncCall("Month").addTokenReplacement(0).addFuncCallEnd().addFuncParameterSeparator().addFuncCall("Day").addTokenReplacement(0).addFuncCallEnd().addFuncParameterSeparator().addToken("0").addFuncParameterSeparator().addToken("0").addFuncParameterSeparator().addToken("0").addFuncCallEnd().addFuncParameterSeparator().addFuncCall("MakeDateTime").addFuncCall("Year").addFuncCall("AddDays").addTokenReplacement(0).addFuncParameterSeparator().addFuncCall("If").addTokenReplacement(1).addOperatorGreaterThan().addFuncCall("DayOfWeek").addTokenReplacement(0).addFuncCallEnd().addFuncParameterSeparator().addTokenReplacement(1).addOperatorMinus().addFuncCall("DayOfWeek").addTokenReplacement(0).addFuncCallEnd().addFuncParameterSeparator().addOpenParen().addTokenReplacement(1).addOperatorPlus().addToken("7").addCloseParen().addOperatorMinus().addFuncCall("DayOfWeek").addTokenReplacement(0).addFuncCallEnd().addFuncCallEnd().addFuncCallEnd().addFuncCallEnd().addFuncParameterSeparator().addFuncCall("Month").addFuncCall("AddDays").addTokenReplacement(0).addFuncParameterSeparator().addFuncCall("If").addTokenReplacement(1).addOperatorGreaterThan().addFuncCall("DayOfWeek").addTokenReplacement(0).addFuncCallEnd().addFuncParameterSeparator().addTokenReplacement(1).addOperatorMinus().addFuncCall("DayOfWeek").addTokenReplacement(0).addFuncCallEnd().addFuncParameterSeparator().addOpenParen().addTokenReplacement(1).addOperatorPlus().addToken("7").addCloseParen().addOperatorMinus().addFuncCall("DayOfWeek").addTokenReplacement(0).addFuncCallEnd().addFuncCallEnd().addFuncCallEnd().addFuncCallEnd().addFuncParameterSeparator().addFuncCall("Day").addFuncCall("AddDays").addTokenReplacement(0).addFuncParameterSeparator().addFuncCall("If").addTokenReplacement(1).addOperatorGreaterThan().addFuncCall("DayOfWeek").addTokenReplacement(0).addFuncCallEnd().addFuncParameterSeparator().addTokenReplacement(1).addOperatorMinus().addFuncCall("DayOfWeek").addTokenReplacement(0).addFuncCallEnd().addFuncParameterSeparator().addOpenParen().addTokenReplacement(1).addOperatorPlus().addToken("7").addCloseParen().addOperatorMinus().addFuncCall("DayOfWeek").addTokenReplacement(0).addFuncCallEnd().addFuncCallEnd().addFuncCallEnd().addFuncCallEnd().addFuncParameterSeparator().addToken("0").addFuncParameterSeparator().addToken("0").addFuncParameterSeparator().addToken("0").addFuncCallEnd().addFuncCallEnd().addFuncParameterSeparator().addFuncCall("ToDateTime").addTokenNotSet().addFuncCallEnd().addFuncCallEnd().verifySprintfStringAndInitialize("If(IsSet(%1$s) And IsSet(%2$s), If((DayOfWeek(%1$s) == %2$s) And (%3$s == true), MakeDateTime(Year(%1$s), Month(%1$s), Day(%1$s), 0, 0, 0), MakeDateTime(Year(AddDays(%1$s, If(%2$s > DayOfWeek(%1$s), %2$s - DayOfWeek(%1$s), (%2$s + 7) - DayOfWeek(%1$s)))), Month(AddDays(%1$s, If(%2$s > DayOfWeek(%1$s), %2$s - DayOfWeek(%1$s), (%2$s + 7) - DayOfWeek(%1$s)))), Day(AddDays(%1$s, If(%2$s > DayOfWeek(%1$s), %2$s - DayOfWeek(%1$s), (%2$s + 7) - DayOfWeek(%1$s)))), 0, 0, 0)), ToDateTime(NOT_SET))") }, id: a.dateTime.nextDayOfWeek, name: l.builderParts.dateTime.nextDayOfWeek.name, resultExpressionType: _.dateTime, version: 1 })), o.addBuilderPartDef(new s({ categoryIdentifierOrIdentifiers: n2.dateTime, description: l.builderParts.dateTime.isWeekday.description, expressionDefs: [t3], generators: { expressionGenerator: c.create().addFuncCall("IsSet").addTokenReplacement(0).addFuncCallEnd().addOperatorAnd().addOpenParen().addFuncCall("DayOfWeek").addTokenReplacement(0).addFuncCallEnd().addOperatorGreaterThan().addToken(1).addCloseParen().addOperatorAnd().addOpenParen().addFuncCall("DayOfWeek").addTokenReplacement(0).addFuncCallEnd().addOperatorLessThan().addToken(7).addCloseParen().verifySprintfStringAndInitialize("IsSet(%1$s) And (DayOfWeek(%1$s) > 1) And (DayOfWeek(%1$s) < 7)") }, id: a.dateTime.dateTimeIsWeekday, name: l.builderParts.dateTime.isWeekday.name, resultExpressionType: _.boolean, version: 1 })), o.addBuilderPartDef(new s({ categoryIdentifierOrIdentifiers: n2.dateTime, description: l.builderParts.dateTime.isWeekend.description, expressionDefs: [t3], generators: { expressionGenerator: c.create().addFuncCall("IsSet").addTokenReplacement(0).addFuncCallEnd().addOperatorAnd().addOpenParen().addOpenParen().addFuncCall("DayOfWeek").addTokenReplacement(0).addFuncCallEnd().addOperatorEquals().addToken(1).addCloseParen().addOperatorOr().addOpenParen().addFuncCall("DayOfWeek").addTokenReplacement(0).addFuncCallEnd().addOperatorEquals().addToken(7).addCloseParen().addCloseParen().verifySprintfStringAndInitialize("IsSet(%1$s) And ((DayOfWeek(%1$s) == 1) Or (DayOfWeek(%1$s) == 7))") }, id: a.dateTime.dateTimeIsWeekend, name: l.builderParts.dateTime.isWeekend.name, resultExpressionType: _.boolean, version: 1 })), o.addBuilderPartDef(new s({ categoryIdentifierOrIdentifiers: n2.dateTime, description: l.builderParts.dateTime.isInDateTimeRange.description, expressionDefs: [t3, new d({ expressionType: _.dateTime, label: l.builderParts.dateTime.isInDateTimeRange.dateTimeStart, configureOptionsCallback: (e4) => e4.setDefaultToExpression(true).setIninTestingField("startDateTime") }), new d({ expressionType: _.dateTime, label: l.builderParts.dateTime.isInDateTimeRange.dateTimeEnd, configureOptionsCallback: (e4) => e4.setDefaultToExpression(true).setIninTestingField("endDateTime") })], generators: { expressionGenerator: c.create().addFuncCall("IsSet").addTokenReplacement(0).addFuncCallEnd().addOperatorAnd().addFuncCall("IsSet").addTokenReplacement(1).addFuncCallEnd().addOperatorAnd().addFuncCall("IsSet").addTokenReplacement(2).addFuncCallEnd().addOperatorAnd().addOpenParen().addTokenReplacement(0).addOperatorGreaterThanOrEqualTo().addTokenReplacement(1).addCloseParen().addOperatorAnd().addOpenParen().addTokenReplacement(0).addOperatorLessThan().addTokenReplacement(2).addCloseParen().verifySprintfStringAndInitialize("IsSet(%1$s) And IsSet(%2$s) And IsSet(%3$s) And (%1$s >= %2$s) And (%1$s < %3$s)") }, id: a.dateTime.dateTimeInDateRange, name: l.builderParts.dateTime.isInDateTimeRange.name, resultExpressionType: _.boolean, version: 1 })), o.addBuilderPartDef(new s({ categoryIdentifierOrIdentifiers: n2.dateTime, description: l.builderParts.dateTime.isInTimeRange.description, expressionDefs: [t3, new d({ descriptionInfo: { description: l.builderParts.dateTime.isInTimeRange.dateTimeStart.description, name: l.builderParts.dateTime.isInTimeRange.dateTimeStart.name }, expressionType: _.dateTime, label: l.builderParts.dateTime.isInTimeRange.dateTimeStart.label, configureOptionsCallback: (e4) => e4.setTimeOnly(true).setIninTestingField("startDateTime") }), new d({ descriptionInfo: { description: l.builderParts.dateTime.isInTimeRange.dateTimeEnd.description, name: l.builderParts.dateTime.isInTimeRange.dateTimeEnd.name }, expressionType: _.dateTime, label: l.builderParts.dateTime.isInTimeRange.dateTimeEnd.label, configureOptionsCallback: (e4) => e4.setTimeOnly(true).setIninTestingField("endDateTime") })], generators: { expressionGenerator: c.create().addFuncCall("If").addFuncCall("IsSet").addTokenReplacement(2).addFuncCallEnd().addOperatorAnd().addFuncCall("IsSet").addTokenReplacement(1).addFuncCallEnd().addFuncParameterSeparator().addFuncCall("If").addTokenReplacement(1).addOperatorLessThan().addTokenReplacement(2).addFuncParameterSeparator().addOpenParen().addFuncCall("MakeDateTime").addFuncCall("Year").addTokenReplacement(0).addFuncCallEnd().addFuncParameterSeparator().addFuncCall("Month").addTokenReplacement(0).addFuncCallEnd().addFuncParameterSeparator().addFuncCall("Day").addTokenReplacement(0).addFuncCallEnd().addFuncParameterSeparator().addFuncCall("Hour").addTokenReplacement(1).addFuncCallEnd().addFuncParameterSeparator().addFuncCall("Minute").addTokenReplacement(1).addFuncCallEnd().addFuncParameterSeparator().addFuncCall("Second").addTokenReplacement(1).addFuncCallEnd().addFuncCallEnd().addOperatorLessThanOrEqualTo().addTokenReplacement(0).addCloseParen().addOperatorAnd().addOpenParen().addFuncCall("MakeDateTime").addFuncCall("Year").addTokenReplacement(0).addFuncCallEnd().addFuncParameterSeparator().addFuncCall("Month").addTokenReplacement(0).addFuncCallEnd().addFuncParameterSeparator().addFuncCall("Day").addTokenReplacement(0).addFuncCallEnd().addFuncParameterSeparator().addFuncCall("Hour").addTokenReplacement(2).addFuncCallEnd().addFuncParameterSeparator().addFuncCall("Minute").addTokenReplacement(2).addFuncCallEnd().addFuncParameterSeparator().addFuncCall("Second").addTokenReplacement(2).addFuncCallEnd().addFuncCallEnd().addOperatorGreaterThanOrEqualTo().addTokenReplacement(0).addCloseParen().addFuncParameterSeparator().addOpenParen().addFuncCall("AddDays").addFuncCall("MakeDateTime").addFuncCall("Year").addTokenReplacement(0).addFuncCallEnd().addFuncParameterSeparator().addFuncCall("Month").addTokenReplacement(0).addFuncCallEnd().addFuncParameterSeparator().addFuncCall("Day").addTokenReplacement(0).addFuncCallEnd().addFuncParameterSeparator().addFuncCall("Hour").addTokenReplacement(1).addFuncCallEnd().addFuncParameterSeparator().addFuncCall("Minute").addTokenReplacement(1).addFuncCallEnd().addFuncParameterSeparator().addFuncCall("Second").addTokenReplacement(1).addFuncCallEnd().addFuncCallEnd().addFuncParameterSeparator().addToken("-1").addFuncCallEnd().addOperatorLessThanOrEqualTo().addTokenReplacement(0).addCloseParen().addOperatorAnd().addOpenParen().addFuncCall("AddDays").addFuncCall("MakeDateTime").addFuncCall("Year").addTokenReplacement(0).addFuncCallEnd().addFuncParameterSeparator().addFuncCall("Month").addTokenReplacement(0).addFuncCallEnd().addFuncParameterSeparator().addFuncCall("Day").addTokenReplacement(0).addFuncCallEnd().addFuncParameterSeparator().addFuncCall("Hour").addTokenReplacement(2).addFuncCallEnd().addFuncParameterSeparator().addFuncCall("Minute").addTokenReplacement(2).addFuncCallEnd().addFuncParameterSeparator().addFuncCall("Second").addTokenReplacement(2).addFuncCallEnd().addFuncCallEnd().addFuncParameterSeparator().addToken("-1").addFuncCallEnd().addOperatorGreaterThanOrEqualTo().addTokenReplacement(0).addCloseParen().addFuncCallEnd().addFuncParameterSeparator().addTokenBooleanFalse().addFuncCallEnd().verifySprintfStringAndInitialize("If(IsSet(%3$s) And IsSet(%2$s), If(%2$s < %3$s, (MakeDateTime(Year(%1$s), Month(%1$s), Day(%1$s), Hour(%2$s), Minute(%2$s), Second(%2$s)) <= %1$s) And (MakeDateTime(Year(%1$s), Month(%1$s), Day(%1$s), Hour(%3$s), Minute(%3$s), Second(%3$s)) >= %1$s), (AddDays(MakeDateTime(Year(%1$s), Month(%1$s), Day(%1$s), Hour(%2$s), Minute(%2$s), Second(%2$s)), -1) <= %1$s) And (AddDays(MakeDateTime(Year(%1$s), Month(%1$s), Day(%1$s), Hour(%3$s), Minute(%3$s), Second(%3$s)), -1) >= %1$s)), false)") }, id: a.dateTime.dateTimeInTimeRange, name: l.builderParts.dateTime.isInTimeRange.name, resultExpressionType: _.boolean, version: 1 })), o.addBuilderPartContainerDef(new r2({ categoryIdentifierOrIdentifiers: n2.container, description: l.builderParts.container.language.description, generators: { containerPartsGenerator: c.create().addSingleGenerationBucket("builder_part", true).verifySprintfStringAndInitialize(""), languageCheckGenerator: c.create().addFuncCall("If").addFuncCall("AreEqual").addTokenBooleanTrue().addFuncParameterSeparator().addTokenReplacement(0).addFuncParameterSeparator().addTokenReplacement(1).addFuncCallEnd().addFuncParameterSeparator().addFuncCallParmGenerationBucket("part_generation", true).verifySprintfStringAndInitialize("If(AreEqual(true, %1$s, %2$s), ") }, id: a.dateTime.container.language, name: l.builderParts.container.language.name, resultExpressionType: _.dateTime, version: 1, restrictToFlowTypeOrTypes: p.getFlowTypesThatSupportLanguages() })); + } }; + }, 36243: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = i2(30801), o = n2.__importDefault(i2(62028)); + class a extends o.default { + constructor(e3) { + super(e3); + } + get _actionTypeId() { + return r2.previousMenuActionType; + } + get displayTypeName() { + return "ArchMenuPreviousMenu"; + } + get actionPreviousMenu() { + return this._archAction; + } + get isArchMenuPreviousMenu() { + return true; + } + } + t2.default = a; + }, 36370: (e2, t2, i2) => { + const n2 = i2(2398); + function r2() { + r2.baseConstructor.apply(this, arguments); + } + i2(22124).extend(r2, "BaseBriefEntityList"), Object.defineProperties(r2.prototype, { entities: { enumerable: true, get: function() { + return this._entities; + }, set: function(e3) { + this._entities = this.reviveArray(e3, n2); + } } }), e2.exports = r2; + }, 36444: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.ExpressionTypeListPickerItemOptions = void 0; + const n2 = i2(65615); + class r2 extends n2.BaseExpressionTypeCollectionOptions { + static create(e3, t3) { + return new this(t3).invokeOptionsCallback(e3); + } + constructor(e3) { + super(e3); + } + get className() { + return "ExpressionTypeListPickerItemOptions"; + } + get isExpressionTypeListPickerItemOptions() { + return true; + } + } + t2.ExpressionTypeListPickerItemOptions = r2; + }, 36470: (e2) => { + var t2, i2, n2, r2 = function(e3, t3) { + t3 || (t3 = new org.antlr.runtime.RecognizerSharedState()), function() { + }.call(this), r2.superclass.constructor.call(this, e3, t3), this.dfa18 = new r2.DFA18(this), this.dfa20 = new r2.DFA20(this), this.dfa24 = new r2.DFA24(this), this.dfa25 = new r2.DFA25(this), this.dfa29 = new r2.DFA29(this), this.dfa30 = new r2.DFA30(this), this.dfa31 = new r2.DFA31(this), this.dfa34 = new r2.DFA34(this), this.dfa39 = new r2.DFA39(this), this.adaptor = new org.antlr.runtime.tree.CommonTreeAdaptor(); + }; + org.antlr.lang.augmentObject(r2, { EOF: -1, BOOL_TRUE: 4, BOOL_FALSE: 5, NOT_SET: 6, TERNARY_IF: 7, TERNARY_THEN: 8, OP_LOG_OR: 9, OP_LOG_AND: 10, OP_BIT_INCL_OR: 11, OP_BIT_AND: 12, OP_EQU: 13, OP_NEQ: 14, OP_GTE: 15, OP_LTE: 16, OP_GT: 17, OP_LT: 18, OP_PLUS: 19, OP_MINUS: 20, OP_MULT: 21, OP_DIV: 22, OP_MOD: 23, OP_POW: 24, WS: 25, OP_NOT: 26, OP_BIT_NOT: 27, PAREN_LEFT: 28, PAREN_RIGHT: 29, IDENTIFIER: 30, PERIOD: 31, UNQUOTED_STRING_LITERAL: 32, BRACKET_LEFT: 33, BRACKET_RIGHT: 34, FIELD_ACCESS_IDENTIFIER: 35, FIELD_ACCESS_STRING_LITERAL: 36, FIELD_ACCESS_UNQUOTED_STRING_LITERAL: 37, COMMA: 38, STRING_LITERAL: 39, BAD_ESCAPE_STRING_LITERAL: 40, INTEGER: 41, DECIMAL: 42, NON_SUPPORTED: 43, UNDERSCORE: 44, QUOTE: 45, BACKSLASH: 46, DOLLAR_SIGN: 47, DIGIT: 48, ECSCAPE_CHARS: 49, ESCAPE_SEQUENCE: 50, STRING_LITERAL_CONTENTS: 51, LETTER: 52 }), t2 = -1, i2 = 25, n2 = 32, org.antlr.lang.extend(r2, org.antlr.runtime.Parser, { setTreeAdaptor: function(e3) { + this.adaptor = e3; + }, getTreeAdaptor: function() { + return this.adaptor; + }, getTokenNames: function() { + return r2.tokenNames; + }, getGrammarFileName: function() { + return "/Users/bliang/genesys_src/architect/src/core/expressions/metadata/grammar/Architect.g"; + } }), org.antlr.lang.augmentObject(r2.prototype, { designerexpression_return: (r2.designerexpression_return = function() { + }, void org.antlr.lang.extend(r2.designerexpression_return, org.antlr.runtime.ParserRuleReturnScope, { getTree: function() { + return this.tree; + } })), designerexpression: function() { + var e3 = new r2.designerexpression_return(); + e3.start = this.input.LT(1); + var t3 = null, i3 = null; + try { + t3 = this.adaptor.nil(), this.pushFollow(r2.FOLLOW_expr_in_designerexpression129), i3 = this.expr(), this.state._fsp--, this.adaptor.addChild(t3, i3.getTree()), e3.stop = this.input.LT(-1), e3.tree = this.adaptor.rulePostProcessing(t3), this.adaptor.setTokenBoundaries(e3.tree, e3.start, e3.stop); + } catch (t4) { + if (!(t4 instanceof org.antlr.runtime.RecognitionException)) throw t4; + this.reportError(t4), this.recover(this.input, t4), e3.tree = this.adaptor.errorNode(this.input, e3.start, this.input.LT(-1), t4); + } + return e3; + }, expr_return: (r2.expr_return = function() { + }, void org.antlr.lang.extend(r2.expr_return, org.antlr.runtime.ParserRuleReturnScope, { getTree: function() { + return this.tree; + } })), expr: function() { + var e3 = new r2.expr_return(); + e3.start = this.input.LT(1); + var t3 = null, i3 = null; + try { + t3 = this.adaptor.nil(), this.pushFollow(r2.FOLLOW_ternary_if_then_in_expr146), i3 = this.ternary_if_then(), this.state._fsp--, this.adaptor.addChild(t3, i3.getTree()), e3.stop = this.input.LT(-1), e3.tree = this.adaptor.rulePostProcessing(t3), this.adaptor.setTokenBoundaries(e3.tree, e3.start, e3.stop); + } catch (t4) { + if (!(t4 instanceof org.antlr.runtime.RecognitionException)) throw t4; + this.reportError(t4), this.recover(this.input, t4), e3.tree = this.adaptor.errorNode(this.input, e3.start, this.input.LT(-1), t4); + } + return e3; + }, ternary_if_then_return: (r2.ternary_if_then_return = function() { + }, void org.antlr.lang.extend(r2.ternary_if_then_return, org.antlr.runtime.ParserRuleReturnScope, { getTree: function() { + return this.tree; + } })), ternary_if_then: function() { + var e3 = new r2.ternary_if_then_return(); + e3.start = this.input.LT(1); + var i3 = null, n3 = null, o = null, a = null, s = null, l = null, u = null, d = null, c = null; + try { + i3 = this.adaptor.nil(), this.pushFollow(r2.FOLLOW_log_op_or_in_ternary_if_then165), a = this.log_op_or(), this.state._fsp--, this.adaptor.addChild(i3, a.getTree()); + e: for (; ; ) { + var p = 2; + if (7 == this.input.LA(1) && (p = 1), 1 !== p) break e; + n3 = this.match(this.input, 7, r2.FOLLOW_TERNARY_IF_in_ternary_if_then175), d = this.adaptor.create(n3), i3 = this.adaptor.becomeRoot(d, i3), this.pushFollow(r2.FOLLOW_log_op_and_in_ternary_if_then179), s = this.log_op_and(), this.state._fsp--, this.adaptor.addChild(i3, s.getTree()); + var _ = 2, h = this.input.LA(1); + if (8 == h) _ = 1; + else { + if (h != t2) throw new org.antlr.runtime.NoViableAltException("", 1, 0, this.input); + _ = 2; + } + switch (_) { + case 1: + o = this.match(this.input, 8, r2.FOLLOW_TERNARY_THEN_in_ternary_if_then183), c = this.adaptor.create(o), this.adaptor.addChild(i3, c); + break; + case 2: + this.pushFollow(r2.FOLLOW_not_done_yet_are_ya_in_ternary_if_then187), l = this.not_done_yet_are_ya(), this.state._fsp--, this.adaptor.addChild(i3, l.getTree()); + } + this.pushFollow(r2.FOLLOW_log_op_and_in_ternary_if_then191), u = this.log_op_and(), this.state._fsp--, this.adaptor.addChild(i3, u.getTree()); + } + e3.stop = this.input.LT(-1), e3.tree = this.adaptor.rulePostProcessing(i3), this.adaptor.setTokenBoundaries(e3.tree, e3.start, e3.stop); + } catch (t3) { + if (!(t3 instanceof org.antlr.runtime.RecognitionException)) throw t3; + this.reportError(t3), this.recover(this.input, t3), e3.tree = this.adaptor.errorNode(this.input, e3.start, this.input.LT(-1), t3); + } + return e3; + }, log_op_or_return: (r2.log_op_or_return = function() { + }, void org.antlr.lang.extend(r2.log_op_or_return, org.antlr.runtime.ParserRuleReturnScope, { getTree: function() { + return this.tree; + } })), log_op_or: function() { + var e3 = new r2.log_op_or_return(); + e3.start = this.input.LT(1); + var t3 = null, i3 = null, n3 = null, o = null, a = null; + try { + t3 = this.adaptor.nil(), this.pushFollow(r2.FOLLOW_log_op_and_in_log_op_or212), n3 = this.log_op_and(), this.state._fsp--, this.adaptor.addChild(t3, n3.getTree()); + e: for (; ; ) { + var s = 2; + if (9 == this.input.LA(1) && (s = 1), 1 !== s) break e; + i3 = this.match(this.input, 9, r2.FOLLOW_OP_LOG_OR_in_log_op_or216), a = this.adaptor.create(i3), t3 = this.adaptor.becomeRoot(a, t3), this.pushFollow(r2.FOLLOW_log_op_and_in_log_op_or221), o = this.log_op_and(), this.state._fsp--, this.adaptor.addChild(t3, o.getTree()); + } + e3.stop = this.input.LT(-1), e3.tree = this.adaptor.rulePostProcessing(t3), this.adaptor.setTokenBoundaries(e3.tree, e3.start, e3.stop); + } catch (t4) { + if (!(t4 instanceof org.antlr.runtime.RecognitionException)) throw t4; + this.reportError(t4), this.recover(this.input, t4), e3.tree = this.adaptor.errorNode(this.input, e3.start, this.input.LT(-1), t4); + } + return e3; + }, log_op_and_return: (r2.log_op_and_return = function() { + }, void org.antlr.lang.extend(r2.log_op_and_return, org.antlr.runtime.ParserRuleReturnScope, { getTree: function() { + return this.tree; + } })), log_op_and: function() { + var e3 = new r2.log_op_and_return(); + e3.start = this.input.LT(1); + var t3 = null, i3 = null, n3 = null, o = null, a = null; + try { + t3 = this.adaptor.nil(), this.pushFollow(r2.FOLLOW_bitwise_or_in_log_op_and241), n3 = this.bitwise_or(), this.state._fsp--, this.adaptor.addChild(t3, n3.getTree()); + e: for (; ; ) { + var s = 2; + if (10 == this.input.LA(1) && (s = 1), 1 !== s) break e; + i3 = this.match(this.input, 10, r2.FOLLOW_OP_LOG_AND_in_log_op_and246), a = this.adaptor.create(i3), t3 = this.adaptor.becomeRoot(a, t3), this.pushFollow(r2.FOLLOW_bitwise_or_in_log_op_and251), o = this.bitwise_or(), this.state._fsp--, this.adaptor.addChild(t3, o.getTree()); + } + e3.stop = this.input.LT(-1), e3.tree = this.adaptor.rulePostProcessing(t3), this.adaptor.setTokenBoundaries(e3.tree, e3.start, e3.stop); + } catch (t4) { + if (!(t4 instanceof org.antlr.runtime.RecognitionException)) throw t4; + this.reportError(t4), this.recover(this.input, t4), e3.tree = this.adaptor.errorNode(this.input, e3.start, this.input.LT(-1), t4); + } + return e3; + }, bitwise_or_return: (r2.bitwise_or_return = function() { + }, void org.antlr.lang.extend(r2.bitwise_or_return, org.antlr.runtime.ParserRuleReturnScope, { getTree: function() { + return this.tree; + } })), bitwise_or: function() { + var e3 = new r2.bitwise_or_return(); + e3.start = this.input.LT(1); + var t3 = null, i3 = null, n3 = null, o = null, a = null; + try { + t3 = this.adaptor.nil(), this.pushFollow(r2.FOLLOW_bitwise_and_in_bitwise_or271), n3 = this.bitwise_and(), this.state._fsp--, this.adaptor.addChild(t3, n3.getTree()); + e: for (; ; ) { + var s = 2; + if (11 == this.input.LA(1) && (s = 1), 1 !== s) break e; + i3 = this.match(this.input, 11, r2.FOLLOW_OP_BIT_INCL_OR_in_bitwise_or276), a = this.adaptor.create(i3), t3 = this.adaptor.becomeRoot(a, t3), this.pushFollow(r2.FOLLOW_bitwise_and_in_bitwise_or281), o = this.bitwise_and(), this.state._fsp--, this.adaptor.addChild(t3, o.getTree()); + } + e3.stop = this.input.LT(-1), e3.tree = this.adaptor.rulePostProcessing(t3), this.adaptor.setTokenBoundaries(e3.tree, e3.start, e3.stop); + } catch (t4) { + if (!(t4 instanceof org.antlr.runtime.RecognitionException)) throw t4; + this.reportError(t4), this.recover(this.input, t4), e3.tree = this.adaptor.errorNode(this.input, e3.start, this.input.LT(-1), t4); + } + return e3; + }, bitwise_and_return: (r2.bitwise_and_return = function() { + }, void org.antlr.lang.extend(r2.bitwise_and_return, org.antlr.runtime.ParserRuleReturnScope, { getTree: function() { + return this.tree; + } })), bitwise_and: function() { + var e3 = new r2.bitwise_and_return(); + e3.start = this.input.LT(1); + var t3 = null, i3 = null, n3 = null, o = null, a = null; + try { + t3 = this.adaptor.nil(), this.pushFollow(r2.FOLLOW_equ_op_in_bitwise_and301), n3 = this.equ_op(), this.state._fsp--, this.adaptor.addChild(t3, n3.getTree()); + e: for (; ; ) { + var s = 2; + if (12 == this.input.LA(1) && (s = 1), 1 !== s) break e; + i3 = this.match(this.input, 12, r2.FOLLOW_OP_BIT_AND_in_bitwise_and307), a = this.adaptor.create(i3), t3 = this.adaptor.becomeRoot(a, t3), this.pushFollow(r2.FOLLOW_equ_op_in_bitwise_and312), o = this.equ_op(), this.state._fsp--, this.adaptor.addChild(t3, o.getTree()); + } + e3.stop = this.input.LT(-1), e3.tree = this.adaptor.rulePostProcessing(t3), this.adaptor.setTokenBoundaries(e3.tree, e3.start, e3.stop); + } catch (t4) { + if (!(t4 instanceof org.antlr.runtime.RecognitionException)) throw t4; + this.reportError(t4), this.recover(this.input, t4), e3.tree = this.adaptor.errorNode(this.input, e3.start, this.input.LT(-1), t4); + } + return e3; + }, equ_op_return: (r2.equ_op_return = function() { + }, void org.antlr.lang.extend(r2.equ_op_return, org.antlr.runtime.ParserRuleReturnScope, { getTree: function() { + return this.tree; + } })), equ_op: function() { + var e3 = new r2.equ_op_return(); + e3.start = this.input.LT(1); + var t3 = null, i3 = null, n3 = null, o = null, a = null, s = null, l = null; + try { + t3 = this.adaptor.nil(), this.pushFollow(r2.FOLLOW_comp_op_in_equ_op331), o = this.comp_op(), this.state._fsp--, this.adaptor.addChild(t3, o.getTree()); + e: for (; ; ) { + var u = 2, d = this.input.LA(1); + if (d >= 13 && d <= 14 && (u = 1), 1 !== u) break e; + var c = 2, p = this.input.LA(1); + if (13 == p) c = 1; + else { + if (14 != p) throw new org.antlr.runtime.NoViableAltException("", 7, 0, this.input); + c = 2; + } + switch (c) { + case 1: + i3 = this.match(this.input, 13, r2.FOLLOW_OP_EQU_in_equ_op337), s = this.adaptor.create(i3), t3 = this.adaptor.becomeRoot(s, t3); + break; + case 2: + n3 = this.match(this.input, 14, r2.FOLLOW_OP_NEQ_in_equ_op342), l = this.adaptor.create(n3), t3 = this.adaptor.becomeRoot(l, t3); + } + this.pushFollow(r2.FOLLOW_comp_op_in_equ_op347), a = this.comp_op(), this.state._fsp--, this.adaptor.addChild(t3, a.getTree()); + } + e3.stop = this.input.LT(-1), e3.tree = this.adaptor.rulePostProcessing(t3), this.adaptor.setTokenBoundaries(e3.tree, e3.start, e3.stop); + } catch (t4) { + if (!(t4 instanceof org.antlr.runtime.RecognitionException)) throw t4; + this.reportError(t4), this.recover(this.input, t4), e3.tree = this.adaptor.errorNode(this.input, e3.start, this.input.LT(-1), t4); + } + return e3; + }, comp_op_return: (r2.comp_op_return = function() { + }, void org.antlr.lang.extend(r2.comp_op_return, org.antlr.runtime.ParserRuleReturnScope, { getTree: function() { + return this.tree; + } })), comp_op: function() { + var e3 = new r2.comp_op_return(); + e3.start = this.input.LT(1); + var t3 = null, i3 = null, n3 = null, o = null, a = null, s = null, l = null, u = null, d = null, c = null, p = null; + try { + t3 = this.adaptor.nil(), this.pushFollow(r2.FOLLOW_add_sub_expr_in_comp_op366), s = this.add_sub_expr(), this.state._fsp--, this.adaptor.addChild(t3, s.getTree()); + e: for (; ; ) { + var _ = 2, h = this.input.LA(1); + if (h >= 15 && h <= 18 && (_ = 1), 1 !== _) break e; + var m = 4; + switch (this.input.LA(1)) { + case 15: + m = 1; + break; + case 16: + m = 2; + break; + case 17: + m = 3; + break; + case 18: + m = 4; + break; + default: + throw new org.antlr.runtime.NoViableAltException("", 9, 0, this.input); + } + switch (m) { + case 1: + i3 = this.match(this.input, 15, r2.FOLLOW_OP_GTE_in_comp_op371), u = this.adaptor.create(i3), t3 = this.adaptor.becomeRoot(u, t3); + break; + case 2: + n3 = this.match(this.input, 16, r2.FOLLOW_OP_LTE_in_comp_op376), d = this.adaptor.create(n3), t3 = this.adaptor.becomeRoot(d, t3); + break; + case 3: + o = this.match(this.input, 17, r2.FOLLOW_OP_GT_in_comp_op381), c = this.adaptor.create(o), t3 = this.adaptor.becomeRoot(c, t3); + break; + case 4: + a = this.match(this.input, 18, r2.FOLLOW_OP_LT_in_comp_op386), p = this.adaptor.create(a), t3 = this.adaptor.becomeRoot(p, t3); + } + this.pushFollow(r2.FOLLOW_add_sub_expr_in_comp_op391), l = this.add_sub_expr(), this.state._fsp--, this.adaptor.addChild(t3, l.getTree()); + } + e3.stop = this.input.LT(-1), e3.tree = this.adaptor.rulePostProcessing(t3), this.adaptor.setTokenBoundaries(e3.tree, e3.start, e3.stop); + } catch (t4) { + if (!(t4 instanceof org.antlr.runtime.RecognitionException)) throw t4; + this.reportError(t4), this.recover(this.input, t4), e3.tree = this.adaptor.errorNode(this.input, e3.start, this.input.LT(-1), t4); + } + return e3; + }, add_sub_expr_return: (r2.add_sub_expr_return = function() { + }, void org.antlr.lang.extend(r2.add_sub_expr_return, org.antlr.runtime.ParserRuleReturnScope, { getTree: function() { + return this.tree; + } })), add_sub_expr: function() { + var e3 = new r2.add_sub_expr_return(); + e3.start = this.input.LT(1); + var t3 = null, i3 = null, n3 = null, o = null, a = null, s = null, l = null; + try { + t3 = this.adaptor.nil(), this.pushFollow(r2.FOLLOW_mul_div_mod_expr_in_add_sub_expr414), o = this.mul_div_mod_expr(), this.state._fsp--, this.adaptor.addChild(t3, o.getTree()); + e: for (; ; ) { + var u = 2, d = this.input.LA(1); + if (d >= 19 && d <= 20 && (u = 1), 1 !== u) break e; + var c = 2, p = this.input.LA(1); + if (19 == p) c = 1; + else { + if (20 != p) throw new org.antlr.runtime.NoViableAltException("", 11, 0, this.input); + c = 2; + } + switch (c) { + case 1: + i3 = this.match(this.input, 19, r2.FOLLOW_OP_PLUS_in_add_sub_expr419), s = this.adaptor.create(i3), t3 = this.adaptor.becomeRoot(s, t3); + break; + case 2: + n3 = this.match(this.input, 20, r2.FOLLOW_OP_MINUS_in_add_sub_expr425), l = this.adaptor.create(n3), t3 = this.adaptor.becomeRoot(l, t3); + } + this.pushFollow(r2.FOLLOW_mul_div_mod_expr_in_add_sub_expr430), a = this.mul_div_mod_expr(), this.state._fsp--, this.adaptor.addChild(t3, a.getTree()); + } + e3.stop = this.input.LT(-1), e3.tree = this.adaptor.rulePostProcessing(t3), this.adaptor.setTokenBoundaries(e3.tree, e3.start, e3.stop); + } catch (t4) { + if (!(t4 instanceof org.antlr.runtime.RecognitionException)) throw t4; + this.reportError(t4), this.recover(this.input, t4), e3.tree = this.adaptor.errorNode(this.input, e3.start, this.input.LT(-1), t4); + } + return e3; + }, mul_div_mod_expr_return: (r2.mul_div_mod_expr_return = function() { + }, void org.antlr.lang.extend(r2.mul_div_mod_expr_return, org.antlr.runtime.ParserRuleReturnScope, { getTree: function() { + return this.tree; + } })), mul_div_mod_expr: function() { + var e3 = new r2.mul_div_mod_expr_return(); + e3.start = this.input.LT(1); + var t3 = null, i3 = null, n3 = null, o = null, a = null, s = null, l = null, u = null, d = null; + try { + t3 = this.adaptor.nil(), this.pushFollow(r2.FOLLOW_pow_expr_in_mul_div_mod_expr453), a = this.pow_expr(), this.state._fsp--, this.adaptor.addChild(t3, a.getTree()); + e: for (; ; ) { + var c = 2, p = this.input.LA(1); + if (p >= 21 && p <= 23 && (c = 1), 1 !== c) break e; + var _ = 3; + switch (this.input.LA(1)) { + case 21: + _ = 1; + break; + case 22: + _ = 2; + break; + case 23: + _ = 3; + break; + default: + throw new org.antlr.runtime.NoViableAltException("", 13, 0, this.input); + } + switch (_) { + case 1: + i3 = this.match(this.input, 21, r2.FOLLOW_OP_MULT_in_mul_div_mod_expr458), l = this.adaptor.create(i3), t3 = this.adaptor.becomeRoot(l, t3); + break; + case 2: + n3 = this.match(this.input, 22, r2.FOLLOW_OP_DIV_in_mul_div_mod_expr463), u = this.adaptor.create(n3), t3 = this.adaptor.becomeRoot(u, t3); + break; + case 3: + o = this.match(this.input, 23, r2.FOLLOW_OP_MOD_in_mul_div_mod_expr468), d = this.adaptor.create(o), t3 = this.adaptor.becomeRoot(d, t3); + } + this.pushFollow(r2.FOLLOW_pow_expr_in_mul_div_mod_expr472), s = this.pow_expr(), this.state._fsp--, this.adaptor.addChild(t3, s.getTree()); + } + e3.stop = this.input.LT(-1), e3.tree = this.adaptor.rulePostProcessing(t3), this.adaptor.setTokenBoundaries(e3.tree, e3.start, e3.stop); + } catch (t4) { + if (!(t4 instanceof org.antlr.runtime.RecognitionException)) throw t4; + this.reportError(t4), this.recover(this.input, t4), e3.tree = this.adaptor.errorNode(this.input, e3.start, this.input.LT(-1), t4); + } + return e3; + }, pow_expr_return: (r2.pow_expr_return = function() { + }, void org.antlr.lang.extend(r2.pow_expr_return, org.antlr.runtime.ParserRuleReturnScope, { getTree: function() { + return this.tree; + } })), pow_expr: function() { + var e3 = new r2.pow_expr_return(); + e3.start = this.input.LT(1); + var t3 = null, i3 = null, n3 = null, o = null, a = null; + try { + t3 = this.adaptor.nil(), this.pushFollow(r2.FOLLOW_not_bitnot_expr_in_pow_expr495), n3 = this.not_bitnot_expr(), this.state._fsp--, this.adaptor.addChild(t3, n3.getTree()); + var s = 2; + 24 == this.input.LA(1) && (s = 1), 1 === s && (i3 = this.match(this.input, 24, r2.FOLLOW_OP_POW_in_pow_expr499), a = this.adaptor.create(i3), t3 = this.adaptor.becomeRoot(a, t3), this.pushFollow(r2.FOLLOW_pow_expr_in_pow_expr502), o = this.pow_expr(), this.state._fsp--, this.adaptor.addChild(t3, o.getTree())), e3.stop = this.input.LT(-1), e3.tree = this.adaptor.rulePostProcessing(t3), this.adaptor.setTokenBoundaries(e3.tree, e3.start, e3.stop); + } catch (t4) { + if (!(t4 instanceof org.antlr.runtime.RecognitionException)) throw t4; + this.reportError(t4), this.recover(this.input, t4), e3.tree = this.adaptor.errorNode(this.input, e3.start, this.input.LT(-1), t4); + } + return e3; + }, not_bitnot_expr_return: (r2.not_bitnot_expr_return = function() { + }, void org.antlr.lang.extend(r2.not_bitnot_expr_return, org.antlr.runtime.ParserRuleReturnScope, { getTree: function() { + return this.tree; + } })), not_bitnot_expr: function() { + var e3 = new r2.not_bitnot_expr_return(); + e3.start = this.input.LT(1); + var t3 = null, n3 = null, o = null, a = null, s = null, l = null, u = null; + try { + switch (this.dfa18.predict(this.input)) { + case 1: + t3 = this.adaptor.nil(); + e: for (; ; ) { + var d = 2; + if (this.input.LA(1) == i2 && (d = 1), 1 !== d) break e; + this.match(this.input, i2, r2.FOLLOW_WS_in_not_bitnot_expr529); + } + var c = 2, p = this.input.LA(1); + if (26 == p) c = 1; + else { + if (27 != p) throw new org.antlr.runtime.NoViableAltException("", 17, 0, this.input); + c = 2; + } + switch (c) { + case 1: + n3 = this.match(this.input, 26, r2.FOLLOW_OP_NOT_in_not_bitnot_expr535), l = this.adaptor.create(n3), t3 = this.adaptor.becomeRoot(l, t3); + break; + case 2: + o = this.match(this.input, 27, r2.FOLLOW_OP_BIT_NOT_in_not_bitnot_expr540), u = this.adaptor.create(o), t3 = this.adaptor.becomeRoot(u, t3); + } + this.pushFollow(r2.FOLLOW_not_bitnot_expr_in_not_bitnot_expr544), a = this.not_bitnot_expr(), this.state._fsp--, this.adaptor.addChild(t3, a.getTree()); + break; + case 2: + t3 = this.adaptor.nil(), this.pushFollow(r2.FOLLOW_neg_expr_in_not_bitnot_expr558), s = this.neg_expr(), this.state._fsp--, this.adaptor.addChild(t3, s.getTree()); + } + e3.stop = this.input.LT(-1), e3.tree = this.adaptor.rulePostProcessing(t3), this.adaptor.setTokenBoundaries(e3.tree, e3.start, e3.stop); + } catch (t4) { + if (!(t4 instanceof org.antlr.runtime.RecognitionException)) throw t4; + this.reportError(t4), this.recover(this.input, t4), e3.tree = this.adaptor.errorNode(this.input, e3.start, this.input.LT(-1), t4); + } + return e3; + }, neg_expr_return: (r2.neg_expr_return = function() { + }, void org.antlr.lang.extend(r2.neg_expr_return, org.antlr.runtime.ParserRuleReturnScope, { getTree: function() { + return this.tree; + } })), neg_expr: function() { + var e3 = new r2.neg_expr_return(); + e3.start = this.input.LT(1); + var t3 = null, n3 = null, o = null, a = null, s = null; + try { + switch (this.dfa20.predict(this.input)) { + case 1: + t3 = this.adaptor.nil(); + e: for (; ; ) { + var l = 2; + if (this.input.LA(1) == i2 && (l = 1), 1 !== l) break e; + this.match(this.input, i2, r2.FOLLOW_WS_in_neg_expr580); + } + n3 = this.match(this.input, 20, r2.FOLLOW_OP_MINUS_in_neg_expr586), s = this.adaptor.create(n3), t3 = this.adaptor.becomeRoot(s, t3), this.pushFollow(r2.FOLLOW_ws_primary_in_neg_expr590), o = this.ws_primary(), this.state._fsp--, this.adaptor.addChild(t3, o.getTree()); + break; + case 2: + t3 = this.adaptor.nil(), this.pushFollow(r2.FOLLOW_ws_primary_in_neg_expr604), a = this.ws_primary(), this.state._fsp--, this.adaptor.addChild(t3, a.getTree()); + } + e3.stop = this.input.LT(-1), e3.tree = this.adaptor.rulePostProcessing(t3), this.adaptor.setTokenBoundaries(e3.tree, e3.start, e3.stop); + } catch (t4) { + if (!(t4 instanceof org.antlr.runtime.RecognitionException)) throw t4; + this.reportError(t4), this.recover(this.input, t4), e3.tree = this.adaptor.errorNode(this.input, e3.start, this.input.LT(-1), t4); + } + return e3; + }, ws_primary_return: (r2.ws_primary_return = function() { + }, void org.antlr.lang.extend(r2.ws_primary_return, org.antlr.runtime.ParserRuleReturnScope, { getTree: function() { + return this.tree; + } })), ws_primary: function() { + var e3 = new r2.ws_primary_return(); + e3.start = this.input.LT(1); + var t3 = null, n3 = null; + try { + t3 = this.adaptor.nil(); + e: for (; ; ) { + var o = 2; + if (this.input.LA(1) == i2 && (o = 1), 1 !== o) break e; + this.match(this.input, i2, r2.FOLLOW_WS_in_ws_primary622); + } + this.pushFollow(r2.FOLLOW_primary_in_ws_primary627), n3 = this.primary(), this.state._fsp--, this.adaptor.addChild(t3, n3.getTree()); + e: for (; ; ) { + var a = 2; + if (this.input.LA(1) == i2 && (a = 1), 1 !== a) break e; + this.match(this.input, i2, r2.FOLLOW_WS_in_ws_primary630); + } + e3.stop = this.input.LT(-1), e3.tree = this.adaptor.rulePostProcessing(t3), this.adaptor.setTokenBoundaries(e3.tree, e3.start, e3.stop); + } catch (t4) { + if (!(t4 instanceof org.antlr.runtime.RecognitionException)) throw t4; + this.reportError(t4), this.recover(this.input, t4), e3.tree = this.adaptor.errorNode(this.input, e3.start, this.input.LT(-1), t4); + } + return e3; + }, primary_return: (r2.primary_return = function() { + }, void org.antlr.lang.extend(r2.primary_return, org.antlr.runtime.ParserRuleReturnScope, { getTree: function() { + return this.tree; + } })), primary: function() { + var e3 = new r2.primary_return(); + e3.start = this.input.LT(1); + var i3 = null, n3 = null, o = null, a = null, s = null, l = null, u = null, d = null, c = null, p = null, _ = null, h = null; + try { + switch (this.dfa24.predict(this.input)) { + case 1: + i3 = this.adaptor.nil(), n3 = this.match(this.input, 28, r2.FOLLOW_PAREN_LEFT_in_primary646), _ = this.adaptor.create(n3), this.adaptor.addChild(i3, _), this.pushFollow(r2.FOLLOW_expr_in_primary648), a = this.expr(), this.state._fsp--, this.adaptor.addChild(i3, a.getTree()); + var m = 2, g = this.input.LA(1); + if (29 == g) m = 1; + else { + if (g != t2) throw new org.antlr.runtime.NoViableAltException("", 23, 0, this.input); + m = 2; + } + switch (m) { + case 1: + o = this.match(this.input, 29, r2.FOLLOW_PAREN_RIGHT_in_primary652), h = this.adaptor.create(o), this.adaptor.addChild(i3, h); + break; + case 2: + this.pushFollow(r2.FOLLOW_not_done_yet_are_ya_in_primary656), s = this.not_done_yet_are_ya(), this.state._fsp--, this.adaptor.addChild(i3, s.getTree()); + } + break; + case 2: + i3 = this.adaptor.nil(), this.pushFollow(r2.FOLLOW_literal_in_primary666), l = this.literal(), this.state._fsp--, this.adaptor.addChild(i3, l.getTree()); + break; + case 3: + i3 = this.adaptor.nil(), this.pushFollow(r2.FOLLOW_variable_base_in_primary674), u = this.variable_base(), this.state._fsp--, this.adaptor.addChild(i3, u.getTree()); + break; + case 4: + i3 = this.adaptor.nil(), this.pushFollow(r2.FOLLOW_func_call_in_primary682), d = this.func_call(), this.state._fsp--, this.adaptor.addChild(i3, d.getTree()); + break; + case 5: + i3 = this.adaptor.nil(), this.pushFollow(r2.FOLLOW_not_done_yet_are_ya_in_primary690), c = this.not_done_yet_are_ya(), this.state._fsp--, this.adaptor.addChild(i3, c.getTree()); + break; + case 6: + i3 = this.adaptor.nil(), this.pushFollow(r2.FOLLOW_error_in_primary698), p = this.error(), this.state._fsp--, this.adaptor.addChild(i3, p.getTree()); + } + e3.stop = this.input.LT(-1), e3.tree = this.adaptor.rulePostProcessing(i3), this.adaptor.setTokenBoundaries(e3.tree, e3.start, e3.stop); + } catch (t3) { + if (!(t3 instanceof org.antlr.runtime.RecognitionException)) throw t3; + this.reportError(t3), this.recover(this.input, t3), e3.tree = this.adaptor.errorNode(this.input, e3.start, this.input.LT(-1), t3); + } + return e3; + }, variable_base_return: (r2.variable_base_return = function() { + }, void org.antlr.lang.extend(r2.variable_base_return, org.antlr.runtime.ParserRuleReturnScope, { getTree: function() { + return this.tree; + } })), variable_base: function() { + var e3 = new r2.variable_base_return(); + e3.start = this.input.LT(1); + var i3 = null, o = null, a = null, s = null, l = null, u = null, d = null, c = null, p = null, _ = null; + try { + for (i3 = this.adaptor.nil(), o = this.match(this.input, 30, r2.FOLLOW_IDENTIFIER_in_variable_base724), c = this.adaptor.create(o), this.adaptor.addChild(i3, c); 1 === this.dfa25.predict(this.input); ) this.pushFollow(r2.FOLLOW_datatype_property_access_in_variable_base728), l = this.datatype_property_access(), this.state._fsp--, this.adaptor.addChild(i3, l.getTree()); + var h = 2; + if (31 == this.input.LA(1) && (h = 1), 1 === h) { + a = this.match(this.input, 31, r2.FOLLOW_PERIOD_in_variable_base735), p = this.adaptor.create(a), i3 = this.adaptor.becomeRoot(p, i3); + var m = 2, g = this.input.LA(1); + if (g == n2) m = 1; + else { + if (g != t2) throw new org.antlr.runtime.NoViableAltException("", 26, 0, this.input); + m = 2; + } + switch (m) { + case 1: + s = this.match(this.input, n2, r2.FOLLOW_UNQUOTED_STRING_LITERAL_in_variable_base740), _ = this.adaptor.create(s), this.adaptor.addChild(i3, _); + break; + case 2: + this.pushFollow(r2.FOLLOW_not_done_yet_are_ya_in_variable_base744), u = this.not_done_yet_are_ya(), this.state._fsp--, this.adaptor.addChild(i3, u.getTree()); + } + } + var f = 2; + 33 == this.input.LA(1) && (f = 1), 1 === f && (this.pushFollow(r2.FOLLOW_variable_collection_access_in_variable_base751), d = this.variable_collection_access(), this.state._fsp--, i3 = this.adaptor.becomeRoot(d.getTree(), i3)), e3.stop = this.input.LT(-1), e3.tree = this.adaptor.rulePostProcessing(i3), this.adaptor.setTokenBoundaries(e3.tree, e3.start, e3.stop); + } catch (t3) { + if (!(t3 instanceof org.antlr.runtime.RecognitionException)) throw t3; + this.reportError(t3), this.recover(this.input, t3), e3.tree = this.adaptor.errorNode(this.input, e3.start, this.input.LT(-1), t3); + } + return e3; + }, name_return: (r2.name_return = function() { + }, void org.antlr.lang.extend(r2.name_return, org.antlr.runtime.ParserRuleReturnScope, { getTree: function() { + return this.tree; + } })), name: function() { + var e3 = new r2.name_return(); + e3.start = this.input.LT(1); + var t3 = null, i3 = null, n3 = null; + try { + t3 = this.adaptor.nil(), i3 = this.match(this.input, 30, r2.FOLLOW_IDENTIFIER_in_name772), n3 = this.adaptor.create(i3), this.adaptor.addChild(t3, n3), e3.stop = this.input.LT(-1), e3.tree = this.adaptor.rulePostProcessing(t3), this.adaptor.setTokenBoundaries(e3.tree, e3.start, e3.stop); + } catch (t4) { + if (!(t4 instanceof org.antlr.runtime.RecognitionException)) throw t4; + this.reportError(t4), this.recover(this.input, t4), e3.tree = this.adaptor.errorNode(this.input, e3.start, this.input.LT(-1), t4); + } + return e3; + }, variable_collection_access_return: (r2.variable_collection_access_return = function() { + }, void org.antlr.lang.extend(r2.variable_collection_access_return, org.antlr.runtime.ParserRuleReturnScope, { getTree: function() { + return this.tree; + } })), variable_collection_access: function() { + var e3 = new r2.variable_collection_access_return(); + e3.start = this.input.LT(1); + var t3 = null, i3 = null, n3 = null; + try { + t3 = this.adaptor.nil(), this.pushFollow(r2.FOLLOW_collection_access_in_variable_collection_access796), i3 = this.collection_access(), this.state._fsp--, t3 = this.adaptor.becomeRoot(i3.getTree(), t3), 1 === this.dfa29.predict(this.input) && (this.pushFollow(r2.FOLLOW_datatype_access_in_variable_collection_access800), n3 = this.datatype_access(), this.state._fsp--, t3 = this.adaptor.becomeRoot(n3.getTree(), t3)), e3.stop = this.input.LT(-1), e3.tree = this.adaptor.rulePostProcessing(t3), this.adaptor.setTokenBoundaries(e3.tree, e3.start, e3.stop); + } catch (t4) { + if (!(t4 instanceof org.antlr.runtime.RecognitionException)) throw t4; + this.reportError(t4), this.recover(this.input, t4), e3.tree = this.adaptor.errorNode(this.input, e3.start, this.input.LT(-1), t4); + } + return e3; + }, datatype_access_return: (r2.datatype_access_return = function() { + }, void org.antlr.lang.extend(r2.datatype_access_return, org.antlr.runtime.ParserRuleReturnScope, { getTree: function() { + return this.tree; + } })), datatype_access: function() { + var e3 = new r2.datatype_access_return(); + e3.start = this.input.LT(1); + var t3 = null, n3 = null, o = null, a = null, s = null, l = null, u = null; + try { + var d = 3; + switch (this.input.LA(1)) { + case i2: + case 35: + case 36: + case 37: + d = 1; + break; + case 33: + d = 2; + break; + case 31: + d = 3; + break; + default: + throw new org.antlr.runtime.NoViableAltException("", 32, 0, this.input); + } + switch (d) { + case 1: + t3 = this.adaptor.nil(), this.pushFollow(r2.FOLLOW_datatype_property_access_in_datatype_access823), o = this.datatype_property_access(), this.state._fsp--, t3 = this.adaptor.becomeRoot(o.getTree(), t3), 1 === this.dfa30.predict(this.input) && (this.pushFollow(r2.FOLLOW_datatype_access_in_datatype_access827), a = this.datatype_access(), this.state._fsp--, t3 = this.adaptor.becomeRoot(a.getTree(), t3)); + break; + case 2: + t3 = this.adaptor.nil(), this.pushFollow(r2.FOLLOW_collection_access_in_datatype_access838), s = this.collection_access(), this.state._fsp--, t3 = this.adaptor.becomeRoot(s.getTree(), t3), 1 === this.dfa31.predict(this.input) && (this.pushFollow(r2.FOLLOW_datatype_access_in_datatype_access842), l = this.datatype_access(), this.state._fsp--, t3 = this.adaptor.becomeRoot(l.getTree(), t3)); + break; + case 3: + t3 = this.adaptor.nil(), n3 = this.match(this.input, 31, r2.FOLLOW_PERIOD_in_datatype_access855), u = this.adaptor.create(n3), t3 = this.adaptor.becomeRoot(u, t3); + } + e3.stop = this.input.LT(-1), e3.tree = this.adaptor.rulePostProcessing(t3), this.adaptor.setTokenBoundaries(e3.tree, e3.start, e3.stop); + } catch (t4) { + if (!(t4 instanceof org.antlr.runtime.RecognitionException)) throw t4; + this.reportError(t4), this.recover(this.input, t4), e3.tree = this.adaptor.errorNode(this.input, e3.start, this.input.LT(-1), t4); + } + return e3; + }, func_call_return: (r2.func_call_return = function() { + }, void org.antlr.lang.extend(r2.func_call_return, org.antlr.runtime.ParserRuleReturnScope, { getTree: function() { + return this.tree; + } })), func_call: function() { + var e3 = new r2.func_call_return(); + e3.start = this.input.LT(1); + var t3 = null, n3 = null, o = null, a = null, s = null; + try { + t3 = this.adaptor.nil(), n3 = this.match(this.input, 30, r2.FOLLOW_IDENTIFIER_in_func_call879), s = this.adaptor.create(n3), t3 = this.adaptor.becomeRoot(s, t3); + e: for (; ; ) { + var l = 2; + if (this.input.LA(1) == i2 && (l = 1), 1 !== l) break e; + this.match(this.input, i2, r2.FOLLOW_WS_in_func_call883); + } + this.pushFollow(r2.FOLLOW_func_parens_in_func_call888), o = this.func_parens(), this.state._fsp--, this.adaptor.addChild(t3, o.getTree()), 1 === this.dfa34.predict(this.input) && (this.pushFollow(r2.FOLLOW_datatype_access_in_func_call891), a = this.datatype_access(), this.state._fsp--, t3 = this.adaptor.becomeRoot(a.getTree(), t3)), e3.stop = this.input.LT(-1), e3.tree = this.adaptor.rulePostProcessing(t3), this.adaptor.setTokenBoundaries(e3.tree, e3.start, e3.stop); + } catch (t4) { + if (!(t4 instanceof org.antlr.runtime.RecognitionException)) throw t4; + this.reportError(t4), this.recover(this.input, t4), e3.tree = this.adaptor.errorNode(this.input, e3.start, this.input.LT(-1), t4); + } + return e3; + }, collection_access_return: (r2.collection_access_return = function() { + }, void org.antlr.lang.extend(r2.collection_access_return, org.antlr.runtime.ParserRuleReturnScope, { getTree: function() { + return this.tree; + } })), collection_access: function() { + var e3 = new r2.collection_access_return(); + e3.start = this.input.LT(1); + var i3 = null, n3 = null, o = null, a = null, s = null, l = null, u = null; + try { + i3 = this.adaptor.nil(), n3 = this.match(this.input, 33, r2.FOLLOW_BRACKET_LEFT_in_collection_access915), l = this.adaptor.create(n3), i3 = this.adaptor.becomeRoot(l, i3), this.pushFollow(r2.FOLLOW_expr_in_collection_access919), a = this.expr(), this.state._fsp--, this.adaptor.addChild(i3, a.getTree()); + var d = 2, c = this.input.LA(1); + if (34 == c) d = 1; + else { + if (c != t2) throw new org.antlr.runtime.NoViableAltException("", 35, 0, this.input); + d = 2; + } + switch (d) { + case 1: + o = this.match(this.input, 34, r2.FOLLOW_BRACKET_RIGHT_in_collection_access923), u = this.adaptor.create(o), this.adaptor.addChild(i3, u); + break; + case 2: + this.pushFollow(r2.FOLLOW_not_done_yet_are_ya_in_collection_access927), s = this.not_done_yet_are_ya(), this.state._fsp--, this.adaptor.addChild(i3, s.getTree()); + } + e3.stop = this.input.LT(-1), e3.tree = this.adaptor.rulePostProcessing(i3), this.adaptor.setTokenBoundaries(e3.tree, e3.start, e3.stop); + } catch (t3) { + if (!(t3 instanceof org.antlr.runtime.RecognitionException)) throw t3; + this.reportError(t3), this.recover(this.input, t3), e3.tree = this.adaptor.errorNode(this.input, e3.start, this.input.LT(-1), t3); + } + return e3; + }, datatype_property_access_return: (r2.datatype_property_access_return = function() { + }, void org.antlr.lang.extend(r2.datatype_property_access_return, org.antlr.runtime.ParserRuleReturnScope, { getTree: function() { + return this.tree; + } })), datatype_property_access: function() { + var e3 = new r2.datatype_property_access_return(); + e3.start = this.input.LT(1); + var t3 = null, n3 = null, o = null, a = null, s = null, l = null, u = null; + try { + switch (this.dfa39.predict(this.input)) { + case 1: + t3 = this.adaptor.nil(); + e: for (; ; ) { + var d = 2; + if (this.input.LA(1) == i2 && (d = 1), 1 !== d) break e; + this.match(this.input, i2, r2.FOLLOW_WS_in_datatype_property_access951); + } + n3 = this.match(this.input, 35, r2.FOLLOW_FIELD_ACCESS_IDENTIFIER_in_datatype_property_access956), s = this.adaptor.create(n3), t3 = this.adaptor.becomeRoot(s, t3); + break; + case 2: + t3 = this.adaptor.nil(); + e: for (; ; ) { + var c = 2; + if (this.input.LA(1) == i2 && (c = 1), 1 !== c) break e; + this.match(this.input, i2, r2.FOLLOW_WS_in_datatype_property_access966); + } + o = this.match(this.input, 36, r2.FOLLOW_FIELD_ACCESS_STRING_LITERAL_in_datatype_property_access971), l = this.adaptor.create(o), t3 = this.adaptor.becomeRoot(l, t3); + break; + case 3: + t3 = this.adaptor.nil(); + e: for (; ; ) { + var p = 2; + if (this.input.LA(1) == i2 && (p = 1), 1 !== p) break e; + this.match(this.input, i2, r2.FOLLOW_WS_in_datatype_property_access981); + } + a = this.match(this.input, 37, r2.FOLLOW_FIELD_ACCESS_UNQUOTED_STRING_LITERAL_in_datatype_property_access986), u = this.adaptor.create(a), t3 = this.adaptor.becomeRoot(u, t3); + } + e3.stop = this.input.LT(-1), e3.tree = this.adaptor.rulePostProcessing(t3), this.adaptor.setTokenBoundaries(e3.tree, e3.start, e3.stop); + } catch (t4) { + if (!(t4 instanceof org.antlr.runtime.RecognitionException)) throw t4; + this.reportError(t4), this.recover(this.input, t4), e3.tree = this.adaptor.errorNode(this.input, e3.start, this.input.LT(-1), t4); + } + return e3; + }, func_parens_return: (r2.func_parens_return = function() { + }, void org.antlr.lang.extend(r2.func_parens_return, org.antlr.runtime.ParserRuleReturnScope, { getTree: function() { + return this.tree; + } })), func_parens: function() { + var e3 = new r2.func_parens_return(); + e3.start = this.input.LT(1); + var o = null, a = null, s = null, l = null, u = null, d = null, c = null; + try { + o = this.adaptor.nil(), a = this.match(this.input, 28, r2.FOLLOW_PAREN_LEFT_in_func_parens1012), d = this.adaptor.create(a), this.adaptor.addChild(o, d); + var p = 2, _ = this.input.LA(1); + _ >= 4 && _ <= 6 || 20 == _ || _ >= i2 && _ <= 28 || 30 == _ || _ == n2 || _ >= 39 && _ <= 42 ? p = 1 : _ != t2 && 43 != _ || (p = 1), 1 === p && (this.pushFollow(r2.FOLLOW_funcarglist_in_func_parens1014), l = this.funcarglist(), this.state._fsp--, this.adaptor.addChild(o, l.getTree())); + var h = 2, m = this.input.LA(1); + if (29 == m) h = 1; + else { + if (m != t2) throw new org.antlr.runtime.NoViableAltException("", 41, 0, this.input); + h = 2; + } + switch (h) { + case 1: + s = this.match(this.input, 29, r2.FOLLOW_PAREN_RIGHT_in_func_parens1019), c = this.adaptor.create(s), this.adaptor.addChild(o, c); + break; + case 2: + this.pushFollow(r2.FOLLOW_not_done_yet_are_ya_in_func_parens1023), u = this.not_done_yet_are_ya(), this.state._fsp--, this.adaptor.addChild(o, u.getTree()); + } + e3.stop = this.input.LT(-1), e3.tree = this.adaptor.rulePostProcessing(o), this.adaptor.setTokenBoundaries(e3.tree, e3.start, e3.stop); + } catch (t3) { + if (!(t3 instanceof org.antlr.runtime.RecognitionException)) throw t3; + this.reportError(t3), this.recover(this.input, t3), e3.tree = this.adaptor.errorNode(this.input, e3.start, this.input.LT(-1), t3); + } + return e3; + }, funcarglist_return: (r2.funcarglist_return = function() { + }, void org.antlr.lang.extend(r2.funcarglist_return, org.antlr.runtime.ParserRuleReturnScope, { getTree: function() { + return this.tree; + } })), funcarglist: function() { + var e3 = new r2.funcarglist_return(); + e3.start = this.input.LT(1); + var t3 = null, i3 = null, n3 = null, o = null, a = null; + try { + t3 = this.adaptor.nil(), this.pushFollow(r2.FOLLOW_expr_in_funcarglist1045), n3 = this.expr(), this.state._fsp--, this.adaptor.addChild(t3, n3.getTree()); + e: for (; ; ) { + var s = 2; + if (38 == this.input.LA(1) && (s = 1), 1 !== s) break e; + i3 = this.match(this.input, 38, r2.FOLLOW_COMMA_in_funcarglist1049), a = this.adaptor.create(i3), this.adaptor.addChild(t3, a), this.pushFollow(r2.FOLLOW_expr_in_funcarglist1053), o = this.expr(), this.state._fsp--, this.adaptor.addChild(t3, o.getTree()); + } + e3.stop = this.input.LT(-1), e3.tree = this.adaptor.rulePostProcessing(t3), this.adaptor.setTokenBoundaries(e3.tree, e3.start, e3.stop); + } catch (t4) { + if (!(t4 instanceof org.antlr.runtime.RecognitionException)) throw t4; + this.reportError(t4), this.recover(this.input, t4), e3.tree = this.adaptor.errorNode(this.input, e3.start, this.input.LT(-1), t4); + } + return e3; + }, literal_return: (r2.literal_return = function() { + }, void org.antlr.lang.extend(r2.literal_return, org.antlr.runtime.ParserRuleReturnScope, { getTree: function() { + return this.tree; + } })), literal: function() { + var e3 = new r2.literal_return(); + e3.start = this.input.LT(1); + var t3 = null, i3 = null, o = null, a = null, s = null; + try { + var l = 4; + switch (this.input.LA(1)) { + case 4: + case 5: + l = 1; + break; + case 41: + case 42: + l = 2; + break; + case n2: + case 39: + case 40: + l = 3; + break; + case 6: + l = 4; + break; + default: + throw new org.antlr.runtime.NoViableAltException("", 43, 0, this.input); + } + switch (l) { + case 1: + t3 = this.adaptor.nil(), this.pushFollow(r2.FOLLOW_boolean_literal_in_literal1076), i3 = this.boolean_literal(), this.state._fsp--, this.adaptor.addChild(t3, i3.getTree()); + break; + case 2: + t3 = this.adaptor.nil(), this.pushFollow(r2.FOLLOW_number_literal_in_literal1084), o = this.number_literal(), this.state._fsp--, this.adaptor.addChild(t3, o.getTree()); + break; + case 3: + t3 = this.adaptor.nil(), this.pushFollow(r2.FOLLOW_string_literal_core_in_literal1092), a = this.string_literal_core(), this.state._fsp--, this.adaptor.addChild(t3, a.getTree()); + break; + case 4: + t3 = this.adaptor.nil(), this.pushFollow(r2.FOLLOW_null_literal_in_literal1102), s = this.null_literal(), this.state._fsp--, this.adaptor.addChild(t3, s.getTree()); + } + e3.stop = this.input.LT(-1), e3.tree = this.adaptor.rulePostProcessing(t3), this.adaptor.setTokenBoundaries(e3.tree, e3.start, e3.stop); + } catch (t4) { + if (!(t4 instanceof org.antlr.runtime.RecognitionException)) throw t4; + this.reportError(t4), this.recover(this.input, t4), e3.tree = this.adaptor.errorNode(this.input, e3.start, this.input.LT(-1), t4); + } + return e3; + }, null_literal_return: (r2.null_literal_return = function() { + }, void org.antlr.lang.extend(r2.null_literal_return, org.antlr.runtime.ParserRuleReturnScope, { getTree: function() { + return this.tree; + } })), null_literal: function() { + var e3 = new r2.null_literal_return(); + e3.start = this.input.LT(1); + var t3 = null, i3 = null, n3 = null; + try { + t3 = this.adaptor.nil(), i3 = this.match(this.input, 6, r2.FOLLOW_NOT_SET_in_null_literal1123), n3 = this.adaptor.create(i3), this.adaptor.addChild(t3, n3), e3.stop = this.input.LT(-1), e3.tree = this.adaptor.rulePostProcessing(t3), this.adaptor.setTokenBoundaries(e3.tree, e3.start, e3.stop); + } catch (t4) { + if (!(t4 instanceof org.antlr.runtime.RecognitionException)) throw t4; + this.reportError(t4), this.recover(this.input, t4), e3.tree = this.adaptor.errorNode(this.input, e3.start, this.input.LT(-1), t4); + } + return e3; + }, boolean_literal_return: (r2.boolean_literal_return = function() { + }, void org.antlr.lang.extend(r2.boolean_literal_return, org.antlr.runtime.ParserRuleReturnScope, { getTree: function() { + return this.tree; + } })), boolean_literal: function() { + var e3 = new r2.boolean_literal_return(); + e3.start = this.input.LT(1); + var t3 = null, i3 = null; + try { + if (t3 = this.adaptor.nil(), i3 = this.input.LT(1), !(this.input.LA(1) >= 4 && this.input.LA(1) <= 5)) throw new org.antlr.runtime.MismatchedSetException(null, this.input); + this.input.consume(), this.adaptor.addChild(t3, this.adaptor.create(i3)), this.state.errorRecovery = false, e3.stop = this.input.LT(-1), e3.tree = this.adaptor.rulePostProcessing(t3), this.adaptor.setTokenBoundaries(e3.tree, e3.start, e3.stop); + } catch (t4) { + if (!(t4 instanceof org.antlr.runtime.RecognitionException)) throw t4; + this.reportError(t4), this.recover(this.input, t4), e3.tree = this.adaptor.errorNode(this.input, e3.start, this.input.LT(-1), t4); + } + return e3; + }, string_literal_core_return: (r2.string_literal_core_return = function() { + }, void org.antlr.lang.extend(r2.string_literal_core_return, org.antlr.runtime.ParserRuleReturnScope, { getTree: function() { + return this.tree; + } })), string_literal_core: function() { + var e3 = new r2.string_literal_core_return(); + e3.start = this.input.LT(1); + var t3 = null, i3 = null, o = null, a = null; + try { + var s = 3; + switch (this.input.LA(1)) { + case 39: + s = 1; + break; + case n2: + s = 2; + break; + case 40: + s = 3; + break; + default: + throw new org.antlr.runtime.NoViableAltException("", 44, 0, this.input); + } + switch (s) { + case 1: + t3 = this.adaptor.nil(), this.pushFollow(r2.FOLLOW_string_literal_in_string_literal_core1167), i3 = this.string_literal(), this.state._fsp--, this.adaptor.addChild(t3, i3.getTree()); + break; + case 2: + t3 = this.adaptor.nil(), this.pushFollow(r2.FOLLOW_unquoted_string_literal_in_string_literal_core1176), o = this.unquoted_string_literal(), this.state._fsp--, this.adaptor.addChild(t3, o.getTree()); + break; + case 3: + t3 = this.adaptor.nil(), this.pushFollow(r2.FOLLOW_bad_escape_string_literal_in_string_literal_core1186), a = this.bad_escape_string_literal(), this.state._fsp--, this.adaptor.addChild(t3, a.getTree()); + } + e3.stop = this.input.LT(-1), e3.tree = this.adaptor.rulePostProcessing(t3), this.adaptor.setTokenBoundaries(e3.tree, e3.start, e3.stop); + } catch (t4) { + if (!(t4 instanceof org.antlr.runtime.RecognitionException)) throw t4; + this.reportError(t4), this.recover(this.input, t4), e3.tree = this.adaptor.errorNode(this.input, e3.start, this.input.LT(-1), t4); + } + return e3; + }, unquoted_string_literal_return: (r2.unquoted_string_literal_return = function() { + }, void org.antlr.lang.extend(r2.unquoted_string_literal_return, org.antlr.runtime.ParserRuleReturnScope, { getTree: function() { + return this.tree; + } })), unquoted_string_literal: function() { + var e3 = new r2.unquoted_string_literal_return(); + e3.start = this.input.LT(1); + var t3 = null, i3 = null, o = null; + try { + t3 = this.adaptor.nil(), i3 = this.match(this.input, n2, r2.FOLLOW_UNQUOTED_STRING_LITERAL_in_unquoted_string_literal1203), o = this.adaptor.create(i3), this.adaptor.addChild(t3, o), e3.stop = this.input.LT(-1), e3.tree = this.adaptor.rulePostProcessing(t3), this.adaptor.setTokenBoundaries(e3.tree, e3.start, e3.stop); + } catch (t4) { + if (!(t4 instanceof org.antlr.runtime.RecognitionException)) throw t4; + this.reportError(t4), this.recover(this.input, t4), e3.tree = this.adaptor.errorNode(this.input, e3.start, this.input.LT(-1), t4); + } + return e3; + }, string_literal_return: (r2.string_literal_return = function() { + }, void org.antlr.lang.extend(r2.string_literal_return, org.antlr.runtime.ParserRuleReturnScope, { getTree: function() { + return this.tree; + } })), string_literal: function() { + var e3 = new r2.string_literal_return(); + e3.start = this.input.LT(1); + var t3 = null, i3 = null, n3 = null; + try { + t3 = this.adaptor.nil(), i3 = this.match(this.input, 39, r2.FOLLOW_STRING_LITERAL_in_string_literal1220), n3 = this.adaptor.create(i3), this.adaptor.addChild(t3, n3), e3.stop = this.input.LT(-1), e3.tree = this.adaptor.rulePostProcessing(t3), this.adaptor.setTokenBoundaries(e3.tree, e3.start, e3.stop); + } catch (t4) { + if (!(t4 instanceof org.antlr.runtime.RecognitionException)) throw t4; + this.reportError(t4), this.recover(this.input, t4), e3.tree = this.adaptor.errorNode(this.input, e3.start, this.input.LT(-1), t4); + } + return e3; + }, bad_escape_string_literal_return: (r2.bad_escape_string_literal_return = function() { + }, void org.antlr.lang.extend(r2.bad_escape_string_literal_return, org.antlr.runtime.ParserRuleReturnScope, { getTree: function() { + return this.tree; + } })), bad_escape_string_literal: function() { + var e3 = new r2.bad_escape_string_literal_return(); + e3.start = this.input.LT(1); + var t3 = null, i3 = null, n3 = null; + try { + t3 = this.adaptor.nil(), i3 = this.match(this.input, 40, r2.FOLLOW_BAD_ESCAPE_STRING_LITERAL_in_bad_escape_string_literal1239), n3 = this.adaptor.create(i3), this.adaptor.addChild(t3, n3), e3.stop = this.input.LT(-1), e3.tree = this.adaptor.rulePostProcessing(t3), this.adaptor.setTokenBoundaries(e3.tree, e3.start, e3.stop); + } catch (t4) { + if (!(t4 instanceof org.antlr.runtime.RecognitionException)) throw t4; + this.reportError(t4), this.recover(this.input, t4), e3.tree = this.adaptor.errorNode(this.input, e3.start, this.input.LT(-1), t4); + } + return e3; + }, number_literal_return: (r2.number_literal_return = function() { + }, void org.antlr.lang.extend(r2.number_literal_return, org.antlr.runtime.ParserRuleReturnScope, { getTree: function() { + return this.tree; + } })), number_literal: function() { + var e3 = new r2.number_literal_return(); + e3.start = this.input.LT(1); + var t3 = null, i3 = null, n3 = null; + try { + var o = 2, a = this.input.LA(1); + if (41 == a) o = 1; + else { + if (42 != a) throw new org.antlr.runtime.NoViableAltException("", 45, 0, this.input); + o = 2; + } + switch (o) { + case 1: + t3 = this.adaptor.nil(), this.pushFollow(r2.FOLLOW_integer_expr_in_number_literal1256), i3 = this.integer_expr(), this.state._fsp--, this.adaptor.addChild(t3, i3.getTree()); + break; + case 2: + t3 = this.adaptor.nil(), this.pushFollow(r2.FOLLOW_decimal_expr_in_number_literal1264), n3 = this.decimal_expr(), this.state._fsp--, this.adaptor.addChild(t3, n3.getTree()); + } + e3.stop = this.input.LT(-1), e3.tree = this.adaptor.rulePostProcessing(t3), this.adaptor.setTokenBoundaries(e3.tree, e3.start, e3.stop); + } catch (t4) { + if (!(t4 instanceof org.antlr.runtime.RecognitionException)) throw t4; + this.reportError(t4), this.recover(this.input, t4), e3.tree = this.adaptor.errorNode(this.input, e3.start, this.input.LT(-1), t4); + } + return e3; + }, integer_expr_return: (r2.integer_expr_return = function() { + }, void org.antlr.lang.extend(r2.integer_expr_return, org.antlr.runtime.ParserRuleReturnScope, { getTree: function() { + return this.tree; + } })), integer_expr: function() { + var e3 = new r2.integer_expr_return(); + e3.start = this.input.LT(1); + var t3 = null, i3 = null, n3 = null; + try { + t3 = this.adaptor.nil(), i3 = this.match(this.input, 41, r2.FOLLOW_INTEGER_in_integer_expr1281), n3 = this.adaptor.create(i3), this.adaptor.addChild(t3, n3), e3.stop = this.input.LT(-1), e3.tree = this.adaptor.rulePostProcessing(t3), this.adaptor.setTokenBoundaries(e3.tree, e3.start, e3.stop); + } catch (t4) { + if (!(t4 instanceof org.antlr.runtime.RecognitionException)) throw t4; + this.reportError(t4), this.recover(this.input, t4), e3.tree = this.adaptor.errorNode(this.input, e3.start, this.input.LT(-1), t4); + } + return e3; + }, decimal_expr_return: (r2.decimal_expr_return = function() { + }, void org.antlr.lang.extend(r2.decimal_expr_return, org.antlr.runtime.ParserRuleReturnScope, { getTree: function() { + return this.tree; + } })), decimal_expr: function() { + var e3 = new r2.decimal_expr_return(); + e3.start = this.input.LT(1); + var t3 = null, i3 = null, n3 = null; + try { + t3 = this.adaptor.nil(), i3 = this.match(this.input, 42, r2.FOLLOW_DECIMAL_in_decimal_expr1298), n3 = this.adaptor.create(i3), this.adaptor.addChild(t3, n3), e3.stop = this.input.LT(-1), e3.tree = this.adaptor.rulePostProcessing(t3), this.adaptor.setTokenBoundaries(e3.tree, e3.start, e3.stop); + } catch (t4) { + if (!(t4 instanceof org.antlr.runtime.RecognitionException)) throw t4; + this.reportError(t4), this.recover(this.input, t4), e3.tree = this.adaptor.errorNode(this.input, e3.start, this.input.LT(-1), t4); + } + return e3; + }, error_return: (r2.error_return = function() { + }, void org.antlr.lang.extend(r2.error_return, org.antlr.runtime.ParserRuleReturnScope, { getTree: function() { + return this.tree; + } })), error: function() { + var e3 = new r2.error_return(); + e3.start = this.input.LT(1); + var t3 = null, i3 = null, n3 = null; + try { + t3 = this.adaptor.nil(), i3 = this.match(this.input, 43, r2.FOLLOW_NON_SUPPORTED_in_error1321), n3 = this.adaptor.create(i3), this.adaptor.addChild(t3, n3), e3.stop = this.input.LT(-1), e3.tree = this.adaptor.rulePostProcessing(t3), this.adaptor.setTokenBoundaries(e3.tree, e3.start, e3.stop); + } catch (t4) { + if (!(t4 instanceof org.antlr.runtime.RecognitionException)) throw t4; + this.reportError(t4), this.recover(this.input, t4), e3.tree = this.adaptor.errorNode(this.input, e3.start, this.input.LT(-1), t4); + } + return e3; + }, not_done_yet_are_ya_return: (r2.not_done_yet_are_ya_return = function() { + }, void org.antlr.lang.extend(r2.not_done_yet_are_ya_return, org.antlr.runtime.ParserRuleReturnScope, { getTree: function() { + return this.tree; + } })), not_done_yet_are_ya: function() { + var e3 = new r2.not_done_yet_are_ya_return(); + e3.start = this.input.LT(1); + var i3 = null, n3 = null, o = null; + try { + i3 = this.adaptor.nil(), n3 = this.match(this.input, t2, r2.FOLLOW_EOF_in_not_done_yet_are_ya1348), o = this.adaptor.create(n3), this.adaptor.addChild(i3, o), e3.stop = this.input.LT(-1), e3.tree = this.adaptor.rulePostProcessing(i3), this.adaptor.setTokenBoundaries(e3.tree, e3.start, e3.stop); + } catch (t3) { + if (!(t3 instanceof org.antlr.runtime.RecognitionException)) throw t3; + this.reportError(t3), this.recover(this.input, t3), e3.tree = this.adaptor.errorNode(this.input, e3.start, this.input.LT(-1), t3); + } + return e3; + } }, true), org.antlr.lang.augmentObject(r2, { DFA18_eotS: "\uFFFF", DFA18_eofS: "\uFFFF", DFA18_minS: "\uFFFF", DFA18_maxS: "+\uFFFF", DFA18_acceptS: "\uFFFF", DFA18_specialS: "\uFFFF}>", DFA18_transitionS: ["\r\uFFFF\uFFFF\uFFFF\uFFFF\uFFFF", "\r\uFFFF\uFFFF\uFFFF\uFFFF\uFFFF", "", ""] }), org.antlr.lang.augmentObject(r2, { DFA18_eot: org.antlr.runtime.DFA.unpackEncodedString(r2.DFA18_eotS), DFA18_eof: org.antlr.runtime.DFA.unpackEncodedString(r2.DFA18_eofS), DFA18_min: org.antlr.runtime.DFA.unpackEncodedStringToUnsignedChars(r2.DFA18_minS), DFA18_max: org.antlr.runtime.DFA.unpackEncodedStringToUnsignedChars(r2.DFA18_maxS), DFA18_accept: org.antlr.runtime.DFA.unpackEncodedString(r2.DFA18_acceptS), DFA18_special: org.antlr.runtime.DFA.unpackEncodedString(r2.DFA18_specialS), DFA18_transition: (function() { + var e3, t3 = [], i3 = r2.DFA18_transitionS.length; + for (e3 = 0; e3 < i3; e3++) t3.push(org.antlr.runtime.DFA.unpackEncodedString(r2.DFA18_transitionS[e3])); + return t3; + })() }), r2.DFA18 = function(e3) { + this.recognizer = e3, this.decisionNumber = 18, this.eot = r2.DFA18_eot, this.eof = r2.DFA18_eof, this.min = r2.DFA18_min, this.max = r2.DFA18_max, this.accept = r2.DFA18_accept, this.special = r2.DFA18_special, this.transition = r2.DFA18_transition; + }, org.antlr.lang.extend(r2.DFA18, org.antlr.runtime.DFA, { getDescription: function() { + return "96:1: not_bitnot_expr : ( ( WS )* ( OP_NOT | OP_BIT_NOT ) not_bitnot_expr | neg_expr );"; + }, dummy: null }), org.antlr.lang.augmentObject(r2, { DFA20_eotS: "\uFFFF", DFA20_eofS: "\uFFFF", DFA20_minS: "\uFFFF", DFA20_maxS: "+\uFFFF", DFA20_acceptS: "\uFFFF", DFA20_specialS: "\uFFFF}>", DFA20_transitionS: ["\r\uFFFF\uFFFF\uFFFF\uFFFF\uFFFF\uFFFF", "\r\uFFFF\uFFFF\uFFFF\uFFFF\uFFFF\uFFFF", "", ""] }), org.antlr.lang.augmentObject(r2, { DFA20_eot: org.antlr.runtime.DFA.unpackEncodedString(r2.DFA20_eotS), DFA20_eof: org.antlr.runtime.DFA.unpackEncodedString(r2.DFA20_eofS), DFA20_min: org.antlr.runtime.DFA.unpackEncodedStringToUnsignedChars(r2.DFA20_minS), DFA20_max: org.antlr.runtime.DFA.unpackEncodedStringToUnsignedChars(r2.DFA20_maxS), DFA20_accept: org.antlr.runtime.DFA.unpackEncodedString(r2.DFA20_acceptS), DFA20_special: org.antlr.runtime.DFA.unpackEncodedString(r2.DFA20_specialS), DFA20_transition: (function() { + var e3, t3 = [], i3 = r2.DFA20_transitionS.length; + for (e3 = 0; e3 < i3; e3++) t3.push(org.antlr.runtime.DFA.unpackEncodedString(r2.DFA20_transitionS[e3])); + return t3; + })() }), r2.DFA20 = function(e3) { + this.recognizer = e3, this.decisionNumber = 20, this.eot = r2.DFA20_eot, this.eof = r2.DFA20_eof, this.min = r2.DFA20_min, this.max = r2.DFA20_max, this.accept = r2.DFA20_accept, this.special = r2.DFA20_special, this.transition = r2.DFA20_transition; + }, org.antlr.lang.extend(r2.DFA20, org.antlr.runtime.DFA, { getDescription: function() { + return "104:1: neg_expr : ( ( WS )* ( OP_MINUS ) ws_primary | ws_primary );"; + }, dummy: null }), org.antlr.lang.augmentObject(r2, { DFA24_eotS: " \uFFFF", DFA24_eofS: "\uFFFF\x07\uFFFF\x07\uFFFF", DFA24_minS: "\uFFFF\x07\uFFFF\x07\uFFFF", DFA24_maxS: "+\uFFFF&\uFFFF&\uFFFF", DFA24_acceptS: "\uFFFF\uFFFF\uFFFF", DFA24_specialS: " \uFFFF}>", DFA24_transitionS: ["\uFFFF\uFFFF\uFFFF\uFFFF", "", "", "\x07\uFFFF\b\x07\uFFFF\x07\uFFFF\x07", "", "", "\x07\uFFFF\b\x07\uFFFF\x07", "", ""] }), org.antlr.lang.augmentObject(r2, { DFA24_eot: org.antlr.runtime.DFA.unpackEncodedString(r2.DFA24_eotS), DFA24_eof: org.antlr.runtime.DFA.unpackEncodedString(r2.DFA24_eofS), DFA24_min: org.antlr.runtime.DFA.unpackEncodedStringToUnsignedChars(r2.DFA24_minS), DFA24_max: org.antlr.runtime.DFA.unpackEncodedStringToUnsignedChars(r2.DFA24_maxS), DFA24_accept: org.antlr.runtime.DFA.unpackEncodedString(r2.DFA24_acceptS), DFA24_special: org.antlr.runtime.DFA.unpackEncodedString(r2.DFA24_specialS), DFA24_transition: (function() { + var e3, t3 = [], i3 = r2.DFA24_transitionS.length; + for (e3 = 0; e3 < i3; e3++) t3.push(org.antlr.runtime.DFA.unpackEncodedString(r2.DFA24_transitionS[e3])); + return t3; + })() }), r2.DFA24 = function(e3) { + this.recognizer = e3, this.decisionNumber = 24, this.eot = r2.DFA24_eot, this.eof = r2.DFA24_eof, this.min = r2.DFA24_min, this.max = r2.DFA24_max, this.accept = r2.DFA24_accept, this.special = r2.DFA24_special, this.transition = r2.DFA24_transition; + }, org.antlr.lang.extend(r2.DFA24, org.antlr.runtime.DFA, { getDescription: function() { + return "113:1: primary : ( PAREN_LEFT expr ( PAREN_RIGHT | not_done_yet_are_ya ) | literal | variable_base | func_call | not_done_yet_are_ya | error );"; + }, dummy: null }), org.antlr.lang.augmentObject(r2, { DFA25_eotS: "\uFFFF", DFA25_eofS: "\uFFFF\uFFFF", DFA25_minS: "\x07\uFFFF\x07\uFFFF", DFA25_maxS: "&\uFFFF&\uFFFF", DFA25_acceptS: "\uFFFF\uFFFF", DFA25_specialS: "\uFFFF}>", DFA25_transitionS: ["\uFFFF\uFFFF\uFFFF", "", "\uFFFF\uFFFF", ""] }), org.antlr.lang.augmentObject(r2, { DFA25_eot: org.antlr.runtime.DFA.unpackEncodedString(r2.DFA25_eotS), DFA25_eof: org.antlr.runtime.DFA.unpackEncodedString(r2.DFA25_eofS), DFA25_min: org.antlr.runtime.DFA.unpackEncodedStringToUnsignedChars(r2.DFA25_minS), DFA25_max: org.antlr.runtime.DFA.unpackEncodedStringToUnsignedChars(r2.DFA25_maxS), DFA25_accept: org.antlr.runtime.DFA.unpackEncodedString(r2.DFA25_acceptS), DFA25_special: org.antlr.runtime.DFA.unpackEncodedString(r2.DFA25_specialS), DFA25_transition: (function() { + var e3, t3 = [], i3 = r2.DFA25_transitionS.length; + for (e3 = 0; e3 < i3; e3++) t3.push(org.antlr.runtime.DFA.unpackEncodedString(r2.DFA25_transitionS[e3])); + return t3; + })() }), r2.DFA25 = function(e3) { + this.recognizer = e3, this.decisionNumber = 25, this.eot = r2.DFA25_eot, this.eof = r2.DFA25_eof, this.min = r2.DFA25_min, this.max = r2.DFA25_max, this.accept = r2.DFA25_accept, this.special = r2.DFA25_special, this.transition = r2.DFA25_transition; + }, org.antlr.lang.extend(r2.DFA25, org.antlr.runtime.DFA, { getDescription: function() { + return "()* loopback of 131:18: ( datatype_property_access )*"; + }, dummy: null }), org.antlr.lang.augmentObject(r2, { DFA29_eotS: "\uFFFF", DFA29_eofS: "\uFFFF", DFA29_minS: "\x07\uFFFF", DFA29_maxS: "&\uFFFF", DFA29_acceptS: "\uFFFF", DFA29_specialS: "\uFFFF}>", DFA29_transitionS: ["\uFFFF\uFFFF\uFFFF", "\uFFFF\uFFFF", "", ""] }), org.antlr.lang.augmentObject(r2, { DFA29_eot: org.antlr.runtime.DFA.unpackEncodedString(r2.DFA29_eotS), DFA29_eof: org.antlr.runtime.DFA.unpackEncodedString(r2.DFA29_eofS), DFA29_min: org.antlr.runtime.DFA.unpackEncodedStringToUnsignedChars(r2.DFA29_minS), DFA29_max: org.antlr.runtime.DFA.unpackEncodedStringToUnsignedChars(r2.DFA29_maxS), DFA29_accept: org.antlr.runtime.DFA.unpackEncodedString(r2.DFA29_acceptS), DFA29_special: org.antlr.runtime.DFA.unpackEncodedString(r2.DFA29_specialS), DFA29_transition: (function() { + var e3, t3 = [], i3 = r2.DFA29_transitionS.length; + for (e3 = 0; e3 < i3; e3++) t3.push(org.antlr.runtime.DFA.unpackEncodedString(r2.DFA29_transitionS[e3])); + return t3; + })() }), r2.DFA29 = function(e3) { + this.recognizer = e3, this.decisionNumber = 29, this.eot = r2.DFA29_eot, this.eof = r2.DFA29_eof, this.min = r2.DFA29_min, this.max = r2.DFA29_max, this.accept = r2.DFA29_accept, this.special = r2.DFA29_special, this.transition = r2.DFA29_transition; + }, org.antlr.lang.extend(r2.DFA29, org.antlr.runtime.DFA, { getDescription: function() { + return "146:26: ( datatype_access )?"; + }, dummy: null }), org.antlr.lang.augmentObject(r2, { DFA30_eotS: "\uFFFF", DFA30_eofS: "\uFFFF", DFA30_minS: "\x07\uFFFF", DFA30_maxS: "&\uFFFF", DFA30_acceptS: "\uFFFF", DFA30_specialS: "\uFFFF}>", DFA30_transitionS: ["\uFFFF\uFFFF\uFFFF", "\uFFFF\uFFFF", "", ""] }), org.antlr.lang.augmentObject(r2, { DFA30_eot: org.antlr.runtime.DFA.unpackEncodedString(r2.DFA30_eotS), DFA30_eof: org.antlr.runtime.DFA.unpackEncodedString(r2.DFA30_eofS), DFA30_min: org.antlr.runtime.DFA.unpackEncodedStringToUnsignedChars(r2.DFA30_minS), DFA30_max: org.antlr.runtime.DFA.unpackEncodedStringToUnsignedChars(r2.DFA30_maxS), DFA30_accept: org.antlr.runtime.DFA.unpackEncodedString(r2.DFA30_acceptS), DFA30_special: org.antlr.runtime.DFA.unpackEncodedString(r2.DFA30_specialS), DFA30_transition: (function() { + var e3, t3 = [], i3 = r2.DFA30_transitionS.length; + for (e3 = 0; e3 < i3; e3++) t3.push(org.antlr.runtime.DFA.unpackEncodedString(r2.DFA30_transitionS[e3])); + return t3; + })() }), r2.DFA30 = function(e3) { + this.recognizer = e3, this.decisionNumber = 30, this.eot = r2.DFA30_eot, this.eof = r2.DFA30_eof, this.min = r2.DFA30_min, this.max = r2.DFA30_max, this.accept = r2.DFA30_accept, this.special = r2.DFA30_special, this.transition = r2.DFA30_transition; + }, org.antlr.lang.extend(r2.DFA30, org.antlr.runtime.DFA, { getDescription: function() { + return "153:33: ( datatype_access )?"; + }, dummy: null }), org.antlr.lang.augmentObject(r2, { DFA31_eotS: "\uFFFF", DFA31_eofS: "\uFFFF", DFA31_minS: "\x07\uFFFF", DFA31_maxS: "&\uFFFF", DFA31_acceptS: "\uFFFF", DFA31_specialS: "\uFFFF}>", DFA31_transitionS: ["\uFFFF\uFFFF\uFFFF", "\uFFFF\uFFFF", "", ""] }), org.antlr.lang.augmentObject(r2, { DFA31_eot: org.antlr.runtime.DFA.unpackEncodedString(r2.DFA31_eotS), DFA31_eof: org.antlr.runtime.DFA.unpackEncodedString(r2.DFA31_eofS), DFA31_min: org.antlr.runtime.DFA.unpackEncodedStringToUnsignedChars(r2.DFA31_minS), DFA31_max: org.antlr.runtime.DFA.unpackEncodedStringToUnsignedChars(r2.DFA31_maxS), DFA31_accept: org.antlr.runtime.DFA.unpackEncodedString(r2.DFA31_acceptS), DFA31_special: org.antlr.runtime.DFA.unpackEncodedString(r2.DFA31_specialS), DFA31_transition: (function() { + var e3, t3 = [], i3 = r2.DFA31_transitionS.length; + for (e3 = 0; e3 < i3; e3++) t3.push(org.antlr.runtime.DFA.unpackEncodedString(r2.DFA31_transitionS[e3])); + return t3; + })() }), r2.DFA31 = function(e3) { + this.recognizer = e3, this.decisionNumber = 31, this.eot = r2.DFA31_eot, this.eof = r2.DFA31_eof, this.min = r2.DFA31_min, this.max = r2.DFA31_max, this.accept = r2.DFA31_accept, this.special = r2.DFA31_special, this.transition = r2.DFA31_transition; + }, org.antlr.lang.extend(r2.DFA31, org.antlr.runtime.DFA, { getDescription: function() { + return "154:26: ( datatype_access )?"; + }, dummy: null }), org.antlr.lang.augmentObject(r2, { DFA34_eotS: "\uFFFF", DFA34_eofS: "\uFFFF", DFA34_minS: "\x07\uFFFF", DFA34_maxS: "&\uFFFF", DFA34_acceptS: "\uFFFF", DFA34_specialS: "\uFFFF}>", DFA34_transitionS: ["\uFFFF\uFFFF\uFFFF", "\uFFFF\uFFFF", "", ""] }), org.antlr.lang.augmentObject(r2, { DFA34_eot: org.antlr.runtime.DFA.unpackEncodedString(r2.DFA34_eotS), DFA34_eof: org.antlr.runtime.DFA.unpackEncodedString(r2.DFA34_eofS), DFA34_min: org.antlr.runtime.DFA.unpackEncodedStringToUnsignedChars(r2.DFA34_minS), DFA34_max: org.antlr.runtime.DFA.unpackEncodedStringToUnsignedChars(r2.DFA34_maxS), DFA34_accept: org.antlr.runtime.DFA.unpackEncodedString(r2.DFA34_acceptS), DFA34_special: org.antlr.runtime.DFA.unpackEncodedString(r2.DFA34_specialS), DFA34_transition: (function() { + var e3, t3 = [], i3 = r2.DFA34_transitionS.length; + for (e3 = 0; e3 < i3; e3++) t3.push(org.antlr.runtime.DFA.unpackEncodedString(r2.DFA34_transitionS[e3])); + return t3; + })() }), r2.DFA34 = function(e3) { + this.recognizer = e3, this.decisionNumber = 34, this.eot = r2.DFA34_eot, this.eof = r2.DFA34_eof, this.min = r2.DFA34_min, this.max = r2.DFA34_max, this.accept = r2.DFA34_accept, this.special = r2.DFA34_special, this.transition = r2.DFA34_transition; + }, org.antlr.lang.extend(r2.DFA34, org.antlr.runtime.DFA, { getDescription: function() { + return "165:38: ( datatype_access )?"; + }, dummy: null }), org.antlr.lang.augmentObject(r2, { DFA39_eotS: "\uFFFF", DFA39_eofS: "\uFFFF", DFA39_minS: "\uFFFF", DFA39_maxS: "%\uFFFF", DFA39_acceptS: "\uFFFF", DFA39_specialS: "\uFFFF}>", DFA39_transitionS: [" \uFFFF", " \uFFFF", "", "", ""] }), org.antlr.lang.augmentObject(r2, { DFA39_eot: org.antlr.runtime.DFA.unpackEncodedString(r2.DFA39_eotS), DFA39_eof: org.antlr.runtime.DFA.unpackEncodedString(r2.DFA39_eofS), DFA39_min: org.antlr.runtime.DFA.unpackEncodedStringToUnsignedChars(r2.DFA39_minS), DFA39_max: org.antlr.runtime.DFA.unpackEncodedStringToUnsignedChars(r2.DFA39_maxS), DFA39_accept: org.antlr.runtime.DFA.unpackEncodedString(r2.DFA39_acceptS), DFA39_special: org.antlr.runtime.DFA.unpackEncodedString(r2.DFA39_specialS), DFA39_transition: (function() { + var e3, t3 = [], i3 = r2.DFA39_transitionS.length; + for (e3 = 0; e3 < i3; e3++) t3.push(org.antlr.runtime.DFA.unpackEncodedString(r2.DFA39_transitionS[e3])); + return t3; + })() }), r2.DFA39 = function(e3) { + this.recognizer = e3, this.decisionNumber = 39, this.eot = r2.DFA39_eot, this.eof = r2.DFA39_eof, this.min = r2.DFA39_min, this.max = r2.DFA39_max, this.accept = r2.DFA39_accept, this.special = r2.DFA39_special, this.transition = r2.DFA39_transition; + }, org.antlr.lang.extend(r2.DFA39, org.antlr.runtime.DFA, { getDescription: function() { + return "180:1: datatype_property_access : ( ( WS )* FIELD_ACCESS_IDENTIFIER | ( WS )* FIELD_ACCESS_STRING_LITERAL | ( WS )* FIELD_ACCESS_UNQUOTED_STRING_LITERAL );"; + }, dummy: null }), org.antlr.lang.augmentObject(r2, { tokenNames: ["", "", "", "", "BOOL_TRUE", "BOOL_FALSE", "NOT_SET", "TERNARY_IF", "TERNARY_THEN", "OP_LOG_OR", "OP_LOG_AND", "OP_BIT_INCL_OR", "OP_BIT_AND", "OP_EQU", "OP_NEQ", "OP_GTE", "OP_LTE", "OP_GT", "OP_LT", "OP_PLUS", "OP_MINUS", "OP_MULT", "OP_DIV", "OP_MOD", "OP_POW", "WS", "OP_NOT", "OP_BIT_NOT", "PAREN_LEFT", "PAREN_RIGHT", "IDENTIFIER", "PERIOD", "UNQUOTED_STRING_LITERAL", "BRACKET_LEFT", "BRACKET_RIGHT", "FIELD_ACCESS_IDENTIFIER", "FIELD_ACCESS_STRING_LITERAL", "FIELD_ACCESS_UNQUOTED_STRING_LITERAL", "COMMA", "STRING_LITERAL", "BAD_ESCAPE_STRING_LITERAL", "INTEGER", "DECIMAL", "NON_SUPPORTED", "UNDERSCORE", "QUOTE", "BACKSLASH", "DOLLAR_SIGN", "DIGIT", "ECSCAPE_CHARS", "ESCAPE_SEQUENCE", "STRING_LITERAL_CONTENTS", "LETTER"], FOLLOW_expr_in_designerexpression129: new org.antlr.runtime.BitSet([2, 0]), FOLLOW_ternary_if_then_in_expr146: new org.antlr.runtime.BitSet([2, 0]), FOLLOW_log_op_or_in_ternary_if_then165: new org.antlr.runtime.BitSet([130, 0]), FOLLOW_TERNARY_IF_in_ternary_if_then175: new org.antlr.runtime.BitSet([1578106992, 3969]), FOLLOW_log_op_and_in_ternary_if_then179: new org.antlr.runtime.BitSet([256, 0]), FOLLOW_TERNARY_THEN_in_ternary_if_then183: new org.antlr.runtime.BitSet([1578106992, 3969]), FOLLOW_not_done_yet_are_ya_in_ternary_if_then187: new org.antlr.runtime.BitSet([1578106992, 3969]), FOLLOW_log_op_and_in_ternary_if_then191: new org.antlr.runtime.BitSet([130, 0]), FOLLOW_log_op_and_in_log_op_or212: new org.antlr.runtime.BitSet([514, 0]), FOLLOW_OP_LOG_OR_in_log_op_or216: new org.antlr.runtime.BitSet([1578106992, 3969]), FOLLOW_log_op_and_in_log_op_or221: new org.antlr.runtime.BitSet([514, 0]), FOLLOW_bitwise_or_in_log_op_and241: new org.antlr.runtime.BitSet([1026, 0]), FOLLOW_OP_LOG_AND_in_log_op_and246: new org.antlr.runtime.BitSet([1578106992, 3969]), FOLLOW_bitwise_or_in_log_op_and251: new org.antlr.runtime.BitSet([1026, 0]), FOLLOW_bitwise_and_in_bitwise_or271: new org.antlr.runtime.BitSet([2050, 0]), FOLLOW_OP_BIT_INCL_OR_in_bitwise_or276: new org.antlr.runtime.BitSet([1578106992, 3969]), FOLLOW_bitwise_and_in_bitwise_or281: new org.antlr.runtime.BitSet([2050, 0]), FOLLOW_equ_op_in_bitwise_and301: new org.antlr.runtime.BitSet([4098, 0]), FOLLOW_OP_BIT_AND_in_bitwise_and307: new org.antlr.runtime.BitSet([1578106992, 3969]), FOLLOW_equ_op_in_bitwise_and312: new org.antlr.runtime.BitSet([4098, 0]), FOLLOW_comp_op_in_equ_op331: new org.antlr.runtime.BitSet([24578, 0]), FOLLOW_OP_EQU_in_equ_op337: new org.antlr.runtime.BitSet([1578106992, 3969]), FOLLOW_OP_NEQ_in_equ_op342: new org.antlr.runtime.BitSet([1578106992, 3969]), FOLLOW_comp_op_in_equ_op347: new org.antlr.runtime.BitSet([24578, 0]), FOLLOW_add_sub_expr_in_comp_op366: new org.antlr.runtime.BitSet([491522, 0]), FOLLOW_OP_GTE_in_comp_op371: new org.antlr.runtime.BitSet([1578106992, 3969]), FOLLOW_OP_LTE_in_comp_op376: new org.antlr.runtime.BitSet([1578106992, 3969]), FOLLOW_OP_GT_in_comp_op381: new org.antlr.runtime.BitSet([1578106992, 3969]), FOLLOW_OP_LT_in_comp_op386: new org.antlr.runtime.BitSet([1578106992, 3969]), FOLLOW_add_sub_expr_in_comp_op391: new org.antlr.runtime.BitSet([491522, 0]), FOLLOW_mul_div_mod_expr_in_add_sub_expr414: new org.antlr.runtime.BitSet([1572866, 0]), FOLLOW_OP_PLUS_in_add_sub_expr419: new org.antlr.runtime.BitSet([1578106992, 3969]), FOLLOW_OP_MINUS_in_add_sub_expr425: new org.antlr.runtime.BitSet([1578106992, 3969]), FOLLOW_mul_div_mod_expr_in_add_sub_expr430: new org.antlr.runtime.BitSet([1572866, 0]), FOLLOW_pow_expr_in_mul_div_mod_expr453: new org.antlr.runtime.BitSet([14680066, 0]), FOLLOW_OP_MULT_in_mul_div_mod_expr458: new org.antlr.runtime.BitSet([1578106992, 3969]), FOLLOW_OP_DIV_in_mul_div_mod_expr463: new org.antlr.runtime.BitSet([1578106992, 3969]), FOLLOW_OP_MOD_in_mul_div_mod_expr468: new org.antlr.runtime.BitSet([1578106992, 3969]), FOLLOW_pow_expr_in_mul_div_mod_expr472: new org.antlr.runtime.BitSet([14680066, 0]), FOLLOW_not_bitnot_expr_in_pow_expr495: new org.antlr.runtime.BitSet([16777218, 0]), FOLLOW_OP_POW_in_pow_expr499: new org.antlr.runtime.BitSet([1578106992, 3969]), FOLLOW_pow_expr_in_pow_expr502: new org.antlr.runtime.BitSet([2, 0]), FOLLOW_WS_in_not_bitnot_expr529: new org.antlr.runtime.BitSet([234881024, 0]), FOLLOW_OP_NOT_in_not_bitnot_expr535: new org.antlr.runtime.BitSet([1578106992, 3969]), FOLLOW_OP_BIT_NOT_in_not_bitnot_expr540: new org.antlr.runtime.BitSet([1578106992, 3969]), FOLLOW_not_bitnot_expr_in_not_bitnot_expr544: new org.antlr.runtime.BitSet([2, 0]), FOLLOW_neg_expr_in_not_bitnot_expr558: new org.antlr.runtime.BitSet([2, 0]), FOLLOW_WS_in_neg_expr580: new org.antlr.runtime.BitSet([34603008, 0]), FOLLOW_OP_MINUS_in_neg_expr586: new org.antlr.runtime.BitSet([1578106992, 3969]), FOLLOW_ws_primary_in_neg_expr590: new org.antlr.runtime.BitSet([2, 0]), FOLLOW_ws_primary_in_neg_expr604: new org.antlr.runtime.BitSet([2, 0]), FOLLOW_WS_in_ws_primary622: new org.antlr.runtime.BitSet([1578106992, 3969]), FOLLOW_primary_in_ws_primary627: new org.antlr.runtime.BitSet([33554434, 0]), FOLLOW_WS_in_ws_primary630: new org.antlr.runtime.BitSet([33554434, 0]), FOLLOW_PAREN_LEFT_in_primary646: new org.antlr.runtime.BitSet([1578106992, 3969]), FOLLOW_expr_in_primary648: new org.antlr.runtime.BitSet([536870912, 0]), FOLLOW_PAREN_RIGHT_in_primary652: new org.antlr.runtime.BitSet([2, 0]), FOLLOW_not_done_yet_are_ya_in_primary656: new org.antlr.runtime.BitSet([2, 0]), FOLLOW_literal_in_primary666: new org.antlr.runtime.BitSet([2, 0]), FOLLOW_variable_base_in_primary674: new org.antlr.runtime.BitSet([2, 0]), FOLLOW_func_call_in_primary682: new org.antlr.runtime.BitSet([2, 0]), FOLLOW_not_done_yet_are_ya_in_primary690: new org.antlr.runtime.BitSet([2, 0]), FOLLOW_error_in_primary698: new org.antlr.runtime.BitSet([2, 0]), FOLLOW_IDENTIFIER_in_variable_base724: new org.antlr.runtime.BitSet([2181038082, 58]), FOLLOW_datatype_property_access_in_variable_base728: new org.antlr.runtime.BitSet([2181038082, 58]), FOLLOW_PERIOD_in_variable_base735: new org.antlr.runtime.BitSet([0, 1]), FOLLOW_UNQUOTED_STRING_LITERAL_in_variable_base740: new org.antlr.runtime.BitSet([2, 2]), FOLLOW_not_done_yet_are_ya_in_variable_base744: new org.antlr.runtime.BitSet([2, 2]), FOLLOW_variable_collection_access_in_variable_base751: new org.antlr.runtime.BitSet([2, 0]), FOLLOW_IDENTIFIER_in_name772: new org.antlr.runtime.BitSet([2, 0]), FOLLOW_collection_access_in_variable_collection_access796: new org.antlr.runtime.BitSet([2181038082, 58]), FOLLOW_datatype_access_in_variable_collection_access800: new org.antlr.runtime.BitSet([2, 0]), FOLLOW_datatype_property_access_in_datatype_access823: new org.antlr.runtime.BitSet([2181038082, 58]), FOLLOW_datatype_access_in_datatype_access827: new org.antlr.runtime.BitSet([2, 0]), FOLLOW_collection_access_in_datatype_access838: new org.antlr.runtime.BitSet([2181038082, 58]), FOLLOW_datatype_access_in_datatype_access842: new org.antlr.runtime.BitSet([2, 0]), FOLLOW_PERIOD_in_datatype_access855: new org.antlr.runtime.BitSet([2, 0]), FOLLOW_IDENTIFIER_in_func_call879: new org.antlr.runtime.BitSet([301989888, 0]), FOLLOW_WS_in_func_call883: new org.antlr.runtime.BitSet([301989888, 0]), FOLLOW_func_parens_in_func_call888: new org.antlr.runtime.BitSet([2181038082, 58]), FOLLOW_datatype_access_in_func_call891: new org.antlr.runtime.BitSet([2, 0]), FOLLOW_BRACKET_LEFT_in_collection_access915: new org.antlr.runtime.BitSet([1578106992, 3969]), FOLLOW_expr_in_collection_access919: new org.antlr.runtime.BitSet([0, 4]), FOLLOW_BRACKET_RIGHT_in_collection_access923: new org.antlr.runtime.BitSet([2, 0]), FOLLOW_not_done_yet_are_ya_in_collection_access927: new org.antlr.runtime.BitSet([2, 0]), FOLLOW_WS_in_datatype_property_access951: new org.antlr.runtime.BitSet([33554432, 8]), FOLLOW_FIELD_ACCESS_IDENTIFIER_in_datatype_property_access956: new org.antlr.runtime.BitSet([2, 0]), FOLLOW_WS_in_datatype_property_access966: new org.antlr.runtime.BitSet([33554432, 16]), FOLLOW_FIELD_ACCESS_STRING_LITERAL_in_datatype_property_access971: new org.antlr.runtime.BitSet([2, 0]), FOLLOW_WS_in_datatype_property_access981: new org.antlr.runtime.BitSet([33554432, 32]), FOLLOW_FIELD_ACCESS_UNQUOTED_STRING_LITERAL_in_datatype_property_access986: new org.antlr.runtime.BitSet([2, 0]), FOLLOW_PAREN_LEFT_in_func_parens1012: new org.antlr.runtime.BitSet([2114977904, 3969]), FOLLOW_funcarglist_in_func_parens1014: new org.antlr.runtime.BitSet([536870912, 0]), FOLLOW_PAREN_RIGHT_in_func_parens1019: new org.antlr.runtime.BitSet([2, 0]), FOLLOW_not_done_yet_are_ya_in_func_parens1023: new org.antlr.runtime.BitSet([2, 0]), FOLLOW_expr_in_funcarglist1045: new org.antlr.runtime.BitSet([2, 64]), FOLLOW_COMMA_in_funcarglist1049: new org.antlr.runtime.BitSet([1578106992, 3969]), FOLLOW_expr_in_funcarglist1053: new org.antlr.runtime.BitSet([2, 64]), FOLLOW_boolean_literal_in_literal1076: new org.antlr.runtime.BitSet([2, 0]), FOLLOW_number_literal_in_literal1084: new org.antlr.runtime.BitSet([2, 0]), FOLLOW_string_literal_core_in_literal1092: new org.antlr.runtime.BitSet([2, 0]), FOLLOW_null_literal_in_literal1102: new org.antlr.runtime.BitSet([2, 0]), FOLLOW_NOT_SET_in_null_literal1123: new org.antlr.runtime.BitSet([2, 0]), FOLLOW_set_in_boolean_literal0: new org.antlr.runtime.BitSet([2, 0]), FOLLOW_string_literal_in_string_literal_core1167: new org.antlr.runtime.BitSet([2, 0]), FOLLOW_unquoted_string_literal_in_string_literal_core1176: new org.antlr.runtime.BitSet([2, 0]), FOLLOW_bad_escape_string_literal_in_string_literal_core1186: new org.antlr.runtime.BitSet([2, 0]), FOLLOW_UNQUOTED_STRING_LITERAL_in_unquoted_string_literal1203: new org.antlr.runtime.BitSet([2, 0]), FOLLOW_STRING_LITERAL_in_string_literal1220: new org.antlr.runtime.BitSet([2, 0]), FOLLOW_BAD_ESCAPE_STRING_LITERAL_in_bad_escape_string_literal1239: new org.antlr.runtime.BitSet([2, 0]), FOLLOW_integer_expr_in_number_literal1256: new org.antlr.runtime.BitSet([2, 0]), FOLLOW_decimal_expr_in_number_literal1264: new org.antlr.runtime.BitSet([2, 0]), FOLLOW_INTEGER_in_integer_expr1281: new org.antlr.runtime.BitSet([2, 0]), FOLLOW_DECIMAL_in_decimal_expr1298: new org.antlr.runtime.BitSet([2, 0]), FOLLOW_NON_SUPPORTED_in_error1321: new org.antlr.runtime.BitSet([2, 0]), FOLLOW_EOF_in_not_done_yet_are_ya1348: new org.antlr.runtime.BitSet([2, 0]) }), e2.exports = r2; + }, 36479: (e2, t2, i2) => { + const n2 = i2(36019).default, r2 = i2(86991); + function o() { + } + o.prototype.connect = function(e3, t3) { + const i3 = n2.build(r2.connect); + return i3.content({ userIdentifier: e3, password: t3 }), i3.call(); + }, o.prototype.disconnect = function(e3) { + const t3 = n2.build(r2.disconnect); + return t3.templateParams({ id: e3 }), t3.call(); + }, e2.exports = new o(); + }, 36494: (e2, t2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.botFlowExitReasons = void 0, t2.botFlowExitReasons = ["AgentRequestedByUser", "TriggeredByFlow", "Error.DataAction.TooManyRequests", "Error.Expression.DivideByZero", "Error.InfiniteLoopDetected", "Error.Internal", "Error.Lookup.TooManySystemPromptRequests", "Error.Lookup.TooManyUserPromptRequests", "Error.TooManyTurns", "Error.TooManyActionsPerSession", "Error.TooManyActionsPerTurn", "Error.TooManyBotFlowInvocations", "RecognitionFailure.AllOptionsRejected", "RecognitionFailure.MaxNoInputs.Confirmation", "RecognitionFailure.MaxNoMatches.Confirmation", "RecognitionFailure.MaxNoInputs.Collection", "RecognitionFailure.MaxNoMatches.Collection", "RecognitionFailure.MaxNoToConfirms"]; + }, 36556: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.getAssistantsCopilotFeatureSupport = a; + const n2 = i2(31635), r2 = n2.__importDefault(i2(36019)), o = n2.__importStar(i2(8929)); + function a() { + return r2.default.build(o.getAssistantsCopilotFeatureSupport).call(); + } + a.api = o.getAssistantsCopilotFeatureSupport; + }, 36577: (e2, t2, i2) => { + const n2 = i2(52722), r2 = i2(66848); + function o() { + Object.defineProperties(this, { _knowledgeBase: { writable: true } }), this.title = void 0, o.baseConstructor.apply(this, arguments), this.name || (this.name = this.title); + } + n2.extend(o, "KnowledgeBaseDocument"), Object.defineProperties(o.prototype, { knowledgeBase: { get: function() { + return this._knowledgeBase; + }, set: function(e3) { + this._knowledgeBase = this.reviveItem(e3, r2); + } } }), e2.exports = o; + }, 36742: (e2, t2, i2) => { + function n2() { + n2.baseConstructor.apply(this, arguments); + } + i2(39950).extend(n2, "ClipboardContentTaskModel", true), Object.defineProperties(n2.prototype, { configure: { value: function(e3, t3, i3, r2) { + n2._super.configure.apply(this, arguments); + } } }), e2.exports = n2; + }, 36781: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.nluIntentConfigurationUpdated = t2.nluInfoUpdatedForWorkbench = t2.nluDomainVersionCreated = t2.nameChanged = t2.lastPathActionRemoved = t2.outputBranchRemoved = t2.localStorageCleanup = t2.outputBranchAdded = t2.showAudioPreview = t2.alert = t2.skillValueChanged = t2.sequenceItemsUpdated = t2.stateChangeFailed = t2.stateChangeStarted = t2.rateLimited = t2.collapseExpand = t2.selectedTaskAction = t2.scrollToAction = t2.renumber = t2.promptResourceDeleted = t2.promptResourceCreated = t2.botSessionViewerWorkbenchMessaging = t2.promptChanged = t2.listOrderChanged = t2.tokenRevoked = t2.idAboutToChange = t2.highlightCursorPosition = t2.flowFailedImport = t2.flowLoadFailed = t2.flowImportStarted = t2.flowLoadStarted = t2.flowLoaded = t2.sequenceItemsChanged = t2.expressionParseComplete = t2.expressionTypeChanged = t2.expressionOverrideChanged = t2.expressionModeChanged = t2.collectionItemValueChanged = t2.expressionValueChanged = t2.contactListChanged = t2.connectionLost = t2.cleanUpFlow = t2.builderValidated = t2.branchesChanged = t2.knowledgeVersionChanged = t2.builderPartExpressionTextChanged = t2.botFlowSettingChanged = t2.actionsChanged = t2.pasteAdditionalInformation = t2.emitter = void 0, t2.sparkThemeChanged = t2.slotListPickerMappingUpdated = t2.rangeValueSelected = t2.customDataTypeUnregistered = t2.customDataTypeRegistered = t2.nluCortexIntentClassificationMetadataUpdated = t2.uiLoaded = t2.autoRestartBotFlowPreviewSession = t2.newDigitalBotFlowPreviewSession = t2.closeDigitalBotFlowPreviewSession = t2.launchDigitalBotPreview = t2.menuChoicesChanged = t2.dtmfChanged = t2.openLargeExpressionEditor = t2.lastUpdatedFlowSizeChanged = t2.flowFilterPreviewOptionsChanged = t2.valueChanged = t2.destinationFlowTypesChanged = t2.containerListChanged = t2.workspaceChanged = t2.refreshTaskActionComponent = t2.checkSize = t2.ttsEngineVoiceChanged = t2.ttsEngineChanged = t2.taskNameChanged = t2.actionDestroyed = t2.startUpObjectChanged = t2.virtualAgentChanged = t2.supportedLanguagesChanged = t2.toolboxDragStarting = t2.toolboxDragMoved = t2.toolboxDragStopped = t2.variableRemoved = t2.variableDestroyed = t2.variableChanged = t2.variableRename = t2.variableAdded = t2.typeChanged = t2.terminatingStateChanged = t2.routeRefresh = t2.actionContainerDeleted = t2.botSessionViewerUpdated = t2.botSessionViewerActionUpdated = t2.nluSettingsHaveUnsavedChangesChanged = t2.nluUpdatedByWorkbench = void 0, t2.isFiringEvents = function() { + return s > 0; + }, t2.emitAndCatch = l, t2.listen = function(e3, t3) { + return a.on(e3, t3), () => a.removeListener(e3, t3); + }, t2.serviceListen = function(e3, t3) { + a.on(e3, t3); + }; + const n2 = i2(31635), r2 = i2(24434), o = n2.__importStar(i2(24032)), a = new r2.EventEmitter(); + a.setMaxListeners(500); + let s = 0; + function l(e3, ...t3) { + try { + s++, a.emit.apply(a, arguments); + } catch (t4) { + o.getTopic("events").exception(t4, "Exception during event emit for: " + e3); + } finally { + s > 0 && s--; + } + } + t2.emitter = { emit(e3, ...t3) { + return l.apply(a, arguments); + }, on(e3, t3) { + return a.on.apply(a, arguments); + }, once(e3, t3) { + return a.once.apply(a, arguments); + }, removeListener(e3, t3) { + return a.removeListener.apply(a, arguments); + }, removeAllListeners(e3) { + return a.removeAllListeners.apply(a, arguments); + } }, t2.pasteAdditionalInformation = "pasteAdditionalInformation", t2.actionsChanged = "actionsChanged", t2.botFlowSettingChanged = "botFlowSettingChanged", t2.builderPartExpressionTextChanged = "builderPartExpressionTextChanged", t2.knowledgeVersionChanged = "knowledgeVersionChanged", t2.branchesChanged = "branchesChanged", t2.builderValidated = "builderValidated", t2.cleanUpFlow = "cleanUpFlow", t2.connectionLost = "connection-lost", t2.contactListChanged = "contactListChanged", t2.expressionValueChanged = "expressionValueChanged", t2.collectionItemValueChanged = "collectionItemValueChanged", t2.expressionModeChanged = "expressionModeChanged", t2.expressionOverrideChanged = "expressionOverrideChanged", t2.expressionTypeChanged = "expressionTypeChanged", t2.expressionParseComplete = "expressionParseComplete", t2.sequenceItemsChanged = "sequenceItemsChanged", t2.flowLoaded = "flowLoaded", t2.flowLoadStarted = "flowLoadStarted", t2.flowImportStarted = "flowImportStarted", t2.flowLoadFailed = "flowLoadFailed", t2.flowFailedImport = "flowFailedImport", t2.highlightCursorPosition = "highlightCursorPosition", t2.idAboutToChange = "idAboutToChange", t2.tokenRevoked = "tokenRevoked", t2.listOrderChanged = "listOrderChanged", t2.promptChanged = "promptChanged", t2.botSessionViewerWorkbenchMessaging = "botSessionViewerWorkbenchMessaging", t2.promptResourceCreated = "promptResourceCreated", t2.promptResourceDeleted = "promptResourceDeleted", t2.renumber = "renumber", t2.scrollToAction = "scrollToAction", t2.selectedTaskAction = "selectedTaskAction", t2.collapseExpand = "collapseExpand", t2.rateLimited = "rateLimited", t2.stateChangeStarted = "stateChangeStarted", t2.stateChangeFailed = "stateChangeFailed", t2.sequenceItemsUpdated = "sequenceItemsUpdated", t2.skillValueChanged = "skillValueChanged", t2.alert = "alert", t2.showAudioPreview = "showAudioPreview", t2.outputBranchAdded = "outputBranchAdded", t2.localStorageCleanup = "localStorageCleanup", t2.outputBranchRemoved = "outputBranchRemoved", t2.lastPathActionRemoved = "lastPathActionRemoved", t2.nameChanged = "nameChanged", t2.nluDomainVersionCreated = "nluDomainVersionCreated", t2.nluInfoUpdatedForWorkbench = "nluInfoUpdatedForWorkbench", t2.nluIntentConfigurationUpdated = "nluIntentConfigurationUpdated", t2.nluUpdatedByWorkbench = "nluUpdatedByWorkbench", t2.nluSettingsHaveUnsavedChangesChanged = "nluSettingsHaveUnsavedChangesChanged", t2.botSessionViewerActionUpdated = "botSessionViewerActionUpdated", t2.botSessionViewerUpdated = "botSessionViewerUpdated", t2.actionContainerDeleted = "actionContainerDeleted", t2.routeRefresh = "routeRefresh", t2.terminatingStateChanged = "terminatingStateChanged", t2.typeChanged = "typeChanged", t2.variableAdded = "variableAdded", t2.variableRename = "variableRename", t2.variableChanged = "variableChanged", t2.variableDestroyed = "variableDestroyed", t2.variableRemoved = "variableRemoved", t2.toolboxDragStopped = "toolboxDragStopped", t2.toolboxDragMoved = "toolboxDragMoved", t2.toolboxDragStarting = "toolboxDragStarting", t2.supportedLanguagesChanged = "supportedLanguagesChanged", t2.virtualAgentChanged = "virtualAgentChanged", t2.startUpObjectChanged = "startUpObjectChanged", t2.actionDestroyed = "actionDestroyed", t2.taskNameChanged = "taskNameChanged", t2.ttsEngineChanged = "ttsEngineChanged", t2.ttsEngineVoiceChanged = "ttsEngineVoiceChanged", t2.checkSize = "checkSize", t2.refreshTaskActionComponent = "refreshTaskActionComponent", t2.workspaceChanged = "workspaceChanged", t2.containerListChanged = "containerListChanged", t2.destinationFlowTypesChanged = "destinationFlowTypesChanged", t2.valueChanged = "valueChanged", t2.flowFilterPreviewOptionsChanged = "flowFilterPreviewOptionsChanged", t2.lastUpdatedFlowSizeChanged = "lastUpdatedFlowSizeChanged", t2.openLargeExpressionEditor = "openLargeExpressionEditor", t2.dtmfChanged = "dtmfChanged", t2.menuChoicesChanged = "menuChoicesChanged", t2.launchDigitalBotPreview = "launchDigitalBotPreview", t2.closeDigitalBotFlowPreviewSession = "closeDigitalBotFlowPreviewSession", t2.newDigitalBotFlowPreviewSession = "newDigitalBotFlowPreviewSession", t2.autoRestartBotFlowPreviewSession = "autoRestartBotFlowPreviewSession", t2.uiLoaded = "uiLoaded", t2.nluCortexIntentClassificationMetadataUpdated = "nluCortexIntentClassificationMetadataUpdated", t2.customDataTypeRegistered = "customDataTypeRegistered", t2.customDataTypeUnregistered = "customDataTypeUnregistered", t2.rangeValueSelected = "rangeValueSelected", t2.slotListPickerMappingUpdated = "slotListPickerMappingUpdated", t2.sparkThemeChanged = "sparkThemeChanged"; + }, 36805: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.scheduleIterable = void 0; + var n2 = i2(48051), r2 = i2(34891), o = i2(10281), a = i2(28619); + t2.scheduleIterable = function(e3, t3) { + return new n2.Observable(function(i3) { + var n3; + return a.executeSchedule(i3, t3, function() { + n3 = e3[r2.iterator](), a.executeSchedule(i3, t3, function() { + var e4, t4, r3; + try { + t4 = (e4 = n3.next()).value, r3 = e4.done; + } catch (e5) { + return void i3.error(e5); + } + r3 ? i3.complete() : i3.next(t4); + }, 0, true); + }), function() { + return o.isFunction(null == n3 ? void 0 : n3.return) && n3.return(); + }; + }); + }; + }, 36825: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importDefault(i2(92140)), o = i2(64472), a = i2(68039), s = i2(91674), l = n2.__importStar(i2(1115)), u = n2.__importDefault(i2(5730)), d = i2(80428), c = i2(47957); + class p extends u.default { + constructor(e3) { + super(e3.parentFlow, e3), this.emergencyGroupManager = s.emergencyGroupManager; + } + _preDestroy() { + super._preDestroy(), this.emergencyGroupManager.tryRemoveItemFromFlowMetadata(this, this.emergencyGroupId); + } + get evaluateNow() { + return this.model.evaluateNow; + } + set evaluateNow(e3) { + this.model.evaluateNow = e3, this.setOutOfService(), e3 || l.validateAction(this, true); + } + _loadModel(e3) { + super._loadModel(e3), this.setOutOfService(), !this.emergencyGroup.text && this.model.emergencyGroupName && this.model.emergencyGroupId && this.emergencyGroup.update(this.model.emergencyGroupName, this.model.emergencyGroupId), this.emergencyGroup.text && this.model.emergencyGroupName && delete this.model.emergencyGroupName, this.emergencyGroup.text && this.model.emergencyGroupId && delete this.model.emergencyGroupId; + } + setOutOfService() { + this.evaluationDateTime.outOfService = this.evaluateNow; + } + _initializeDesignTime() { + super._initializeDesignTime(), !this.emergencyGroupName && !this.emergencyGroupId || this.emergencyGroup.text || (this.emergencyGroup.update(this.emergencyGroupName, this.emergencyGroupId), this.emergencyGroupName = void 0, this.emergencyGroupId = void 0); + } + getConfiguration(e3, t3) { + return e3 = super.getConfiguration(e3, t3), this.emergencyGroup.isLiteralMode && this.emergencyGroup.text ? (this.emergencyGroupId = this.emergencyGroup.val, this.emergencyGroupName = this.emergencyGroup.text) : (this.emergencyGroupId = void 0, this.emergencyGroupName = void 0), e3; + } + static get managedProperties() { + return [{ description: c.evaluateSchedules.evaluationDateTimeDescription, label: c.evaluateSchedules.evaluateAtDateTime, options: o.ExpressionTypeDateTimeOptions.create((e3) => e3.setIninTestingField("evaluationDateTime").setDefaultToExpression(true)), yamlOptions: p.createYamlOptions("evaluationDateTime", (e3) => e3.setPropertyName("specific")), property: "evaluationDateTime", type: d.expressionTypeNames.dateTime }, { property: "emergencyGroup", label: c.evaluateSchedules.emergencyGroup, type: d.expressionTypeNames.emergencyGroup, options: a.ExpressionTypeEmergencyGroupOptions.create((e3) => e3.setIsOptional(true).setDefaultToNoValue(true).setIninTestingField("emergencyGroup")) }, { property: "evaluate", isJustForFlowYaml: true, yamlOptions: p.createYamlOptions("evaluate", (e3) => e3.setExportOrder(50)) }]; + } + postProcessYamlConfig(e3, t3, i3) { + r2.default.renameProperty(e3, "emergencyGroupDeprecated", "emergencyGroup"), e3.evaluate = {}, this.evaluateNow ? e3.evaluate.now = true : r2.default.moveAndDeleteProperty(e3, e3.evaluate, "specific"); + } + setEmergencyGroup(e3) { + this.emergencyGroup.update(null == e3 ? void 0 : e3.name, null == e3 ? void 0 : e3.id); + } + get selectedEmergencyGroup() { + return this.emergencyGroup.isLiteralMode || this.emergencyGroup.isNoValueMode ? this.emergencyGroup.val ? this.emergencyGroupManager.getItem(this.emergencyGroup.val) : void 0 : void this.topic.error("selectedEmergencyGroup should not be getting called when this.emergencyGroup is not in literal mode"); + } + } + p.className = "BaseScheduleAction", t2.default = p; + }, 36834: (e2, t2, i2) => { + "use strict"; + const n2 = i2(31635), r2 = i2(12179), o = i2(12457), a = i2(21647), s = i2(81516), l = n2.__importDefault(i2(27203)), u = n2.__importStar(i2(99434)), d = n2.__importDefault(i2(97891)), c = n2.__importDefault(i2(5730)), p = i2(80428), _ = i2(47957); + class h extends c.default { + constructor(e3, t3) { + super(e3.parentFlow, e3), this.externalId = null, this.externalResult = null, this._loadModel(t3); + } + static get branchInfo() { + return l.default.foundNotFound; + } + getDetails() { + return this.externalId ? new o.ActionDetails([_.commonExternalContact.nameLabel], [u.getDisplayText(this.externalId)]) : null; + } + static get managedProperties() { + return [{ label: _.commonExternalContact.nameLabel, options: s.ExpressionTypeStringOptions.create((e3) => e3.setAsInput().setIninTestingField("ExternalIdExpression").setDisableSpellcheck(true).facets.setMinLength(1)), property: "externalId", type: p.expressionTypeNames.string }, { label: _.commonExternalContact.externalContactResult, options: a.ExpressionTypeComplexOptions.create((e3) => e3.setTypeIdentifier(p.expressionTypeNames.externalContact).setIninTestingField("ExternalContactExpression").setAsOutput().setAllowSecure(true)), property: "externalResult", type: p.expressionTypeNames.externalContact }]; + } + } + h.info = d.default.createActionInfo({ actionClass: h, canBeInTask: true, helpTopic: r2.helpTopics.actions.getExternalContact, modelClass: i2(2750), name: _.actions.getExternalContact, scriptingName: "ArchActionGetExternalContact" }), t2.A = h; + }, 36839: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.getGuideVersion = t2.getGuide = t2.getGuides = void 0; + const n2 = i2(31635), r2 = n2.__importDefault(i2(62100)), o = n2.__importDefault(i2(18048)), a = n2.__importDefault(i2(82630)), s = n2.__importDefault(i2(36019)), l = { ignoreBadResponse: true }; + t2.getGuides = s.default.request("GET", "{public-api.apps}/api/v2/guides", o.default, l), t2.getGuide = s.default.request("GET", "{public-api.apps}/api/v2/guides/{guideId}", r2.default, l), t2.getGuideVersion = s.default.request("GET", "{public-api.apps}/api/v2/guides/{guideId}/versions/{guideVersionId}", a.default, l); + }, 36843: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.inqueueEmailFlowListManager = t2.InqueueEmailFlowListManager = void 0; + const n2 = i2(31635).__importStar(i2(24032)), r2 = i2(5896), o = i2(6109), a = i2(96618), s = i2(27862); + class l extends o.FlowListManager { + get dependencyType() { + return s.InqueueEmailFlow; + } + constructor() { + super(), this.topic = n2.getTopic("InqueueEmailFlowListManager"), this.briefManager = r2.briefInQueueEmailFlowListManager, this.additionalQueryParams = { type: a.flowTypes.flowTypeInQueueEmail }, this.className = "InqueueEmailFlowListManager", this.flowType = a.flowTypes.flowTypeInQueueEmail, this._rawServerCache = {}, this._initialize(); + } + } + t2.InqueueEmailFlowListManager = l, t2.inqueueEmailFlowListManager = new l(); + }, 36932: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.formSequences = void 0; + const n2 = i2(31635), r2 = i2(28562), o = i2(80295), a = i2(73324); + class s extends a.BaseBotActionSettingsSequence { + constructor() { + super("form"); + } + get noInputDigitalBotSequence() { + const e3 = this.generateLanguageSequencesDefaultSequence("noInputDigitalBot"); + return this.generateLanguageSequenceConfig("FormNoInputDigitalBot", r2.builderIds.parts.markdownCommunication, e3); + } + get noMatchDigitalBotSequence() { + const e3 = this.generateLanguageSequencesDefaultSequence("noMatchDigitalBot"); + return this.generateLanguageSequenceConfig("FormNoMatchDigitalBot", r2.builderIds.parts.markdownCommunication, e3); + } + } + n2.__decorate([(0, o.enumerable)(true), n2.__metadata("design:type", Object), n2.__metadata("design:paramtypes", [])], s.prototype, "noInputDigitalBotSequence", null), n2.__decorate([(0, o.enumerable)(true), n2.__metadata("design:type", Object), n2.__metadata("design:paramtypes", [])], s.prototype, "noMatchDigitalBotSequence", null), t2.formSequences = new s(); + }, 36955: (e2, t2, i2) => { + const n2 = i2(28730), r2 = i2(7401), { playUserNameActionType: o } = i2(30801); + function a() { + Object.defineProperties(this, { _user: { writable: true } }), a.baseConstructor.apply(this, arguments); + } + n2.extend(a, o, true), Object.defineProperties(a.prototype, { pasteReIdOrRename: { value: function(e3) { + a._super.pasteReIdOrRename.apply(this, arguments), this.user.pasteReIdOrRename(e3); + } }, pasteResolveOldToNewValues: { value: function(e3) { + a._super.pasteResolveOldToNewValues.apply(this, arguments), this.user.pasteResolveOldToNewValues(e3); + } }, user: { enumerable: true, get: function() { + return this._user; + }, set: function(e3) { + this._user = this.reviveItem(e3, r2); + } } }), e2.exports = a; + }, 36967: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = i2(30801), o = i2(26847), a = n2.__importDefault(i2(90077)); + class s extends a.default { + constructor(e3) { + super(e3), this._knowledgeSearchResult = this.coreFactory.createArchWrapper(e3.knowledgeSearchResult); + } + get _actionTypeId() { + return r2.askForNLUIntentActionType; + } + get displayTypeName() { + return this._scriptingName; + } + get isArchActionAskForIntent() { + return true; + } + get outputKnowledge() { + return this._getOutputById(o.outputIds.knowledge, true); + } + get outputNoIntent() { + return this._getOutputById(o.outputIds.noIntent, true); + } + get outputMaxNoInputs() { + return this._getOutputById(o.outputIds.maxNoInputs, true); + } + get knowledgeSearchResult() { + return this._knowledgeSearchResult; + } + set knowledgeSearchResult(e3) { + this._knowledgeSearchResult = e3; + } + } + t2.default = s; + }, 36977: function(e2, t2, i2) { + "use strict"; + var n2 = this && this.__read || function(e3, t3) { + var i3 = "function" == typeof Symbol && e3[Symbol.iterator]; + if (!i3) return e3; + var n3, r3, o2 = i3.call(e3), a = []; + try { + for (; (void 0 === t3 || t3-- > 0) && !(n3 = o2.next()).done; ) a.push(n3.value); + } catch (e4) { + r3 = { error: e4 }; + } finally { + try { + n3 && !n3.done && (i3 = o2.return) && i3.call(o2); + } finally { + if (r3) throw r3.error; + } + } + return a; + }, r2 = this && this.__spreadArray || function(e3, t3) { + for (var i3 = 0, n3 = t3.length, r3 = e3.length; i3 < n3; i3++, r3++) e3[r3] = t3[i3]; + return e3; + }; + Object.defineProperty(t2, "__esModule", { value: true }), t2.zipWith = void 0; + var o = i2(26749); + t2.zipWith = function() { + for (var e3 = [], t3 = 0; t3 < arguments.length; t3++) e3[t3] = arguments[t3]; + return o.zip.apply(void 0, r2([], n2(e3))); + }; + }, 37007: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.FlowExportSettingAvailability = void 0; + const n2 = i2(31635), r2 = i2(10798), o = n2.__importDefault(i2(4648)); + t2.FlowExportSettingAvailability = class { + static get yamlTrackingIdsCanBeExported() { + return (0, r2.isFeatureAvailable)(o.default.yamlTrackingIdFeature); + } + static getFlowExportSettingAvailabilityInfo() { + return { yaml: { trackingIdsCanBeExported: this.yamlTrackingIdsCanBeExported } }; + } + static hasConfigurableFlowExportSettings() { + return this.getFlowExportSettingAvailabilityInfo().yaml.trackingIdsCanBeExported; + } + }; + }, 37039: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importStar(i2(24032)), o = i2(58525), a = n2.__importStar(i2(43011)), s = i2(12179), l = n2.__importDefault(i2(20084)), u = i2(80428), d = i2(20236), c = i2(47957), p = r2.getTopic("InQueueCallFlowSettingsViewModel"); + class _ extends l.default { + constructor(e3) { + super(e3, "inQueueCallFlowSettings", d), this.editor_testing_tag = "in-queue-settings"; + } + get id() { + return "inQueueSettings"; + } + get helpTopic() { + return s.helpTopics.treeNodes.inQueueCallFlowSettings; + } + get className() { + return "InQueueCallFlowSettingsViewModel"; + } + getDisplayName() { + return c.inQueueCallFlowSettings.label; + } + get isInQueueCallFlowSettingsNode() { + return true; + } + loadConfiguration(e3) { + super.loadConfiguration(e3); + } + static get managedProperties() { + return [{ label: c.holdMusic.promptLabel, options: o.ExpressionTypePromptOptions.create((e3) => e3.setAllowModeExpression(false).setAllowModeLiteral(true).setAllowModeVariable(true).setRequireAudio(true)), property: "holdMusic", type: u.expressionTypeNames.prompt }]; + } + get nodeGuxIcon() { + return "fa/gears-regular"; + } + validate(e3) { + this.holdMusic.validate(e3); + } + get wrappedYamlName() { + return "settingsInQueueCall"; + } + _initializeDesignTime() { + if (super._initializeDesignTime(), this.holdMusic && this.holdMusic.isVariableMode) { + const e3 = a.getItem(this.holdMusic.val); + e3 ? this.holdMusic.updateFromConfigListManagerItem(e3) : this.holdMusic.update(this.holdMusic.text, this.holdMusic.val), p.info(`Migrated hold music '${this.id} to prompt literal`); + } + this.holdMusic.options.setAllowModeVariable(false); + } + } + t2.default = _; + }, 37097: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.postDigitalBotFlowLaunch = function(e3, t3, i3, n3) { + const a = o.default.build(r2.postDigitalBotFlowLaunch); + return a.content({ channel: { inputModes: ["Text"], outputModes: ["Text"], name: "Messaging", userAgent: { name: "GenesysWebWidget" } }, externalSessionId: "", flow: { id: e3 }, inputData: { variables: i3 }, language: n3 || "" }), a.call(); + }, t2.postDigitalBotFlowTurns = function(e3, t3, i3, n3) { + const a = o.default.build(r2.postDigitalBotFlowTurns).templateParams({ sessionId: e3 }); + return a.content(i3), a.call(); + }; + const n2 = i2(31635), r2 = n2.__importStar(i2(80496)), o = n2.__importDefault(i2(36019)); + }, 37104: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.default = function(e3, t3, i3) { + const a = (0, n2.default)(e3, t3, i3), s = new r2(); + s.name = o.actions.endWorkflow; + const l = a.flowSequenceItemList[0]; + return l.actionList = [s], l.startAction = s.id, a; + }; + const n2 = i2(31635).__importDefault(i2(42193)), r2 = i2(77315), o = i2(47957); + }, 37120: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.milestoneManager = t2.MilestoneManager = void 0; + const n2 = i2(31635), r2 = n2.__importStar(i2(1360)), o = n2.__importStar(i2(24032)), a = i2(30801), s = n2.__importDefault(i2(47532)), l = i2(81801), u = n2.__importDefault(i2(43277)), d = i2(47957), c = i2(27862), p = i2(51851); + class _ extends s.default { + get requiredAuth() { + return l.externalAuthorizations.authStrings.flowMilestonesSearch; + } + get dependencyType() { + return c.FlowMilestone; + } + constructor() { + super(), this.topic = o.getTopic("MilestoneManager"), this._rawServerCache = {}, this.apiCallList = p.getMilestones, this.apiCallSingle = p.getMilestone, this.className = "MilestoneManager", this.defaultMatchingStyle = r2.contains, this.dependencyContext = d.flowOutcomes.flowMilestone, this.securityError = true, this.suppressSearch = false, this.uiMetadataSectionName = "flowMilestones", this.actionsForUsageSearch = [a.addFlowMilestoneActionType], this.actionPropertyForUsageSearch = "milestone", this.isMilestoneManager = true, this._initialize(); + } + _createItemViewModel(e3) { + return new u.default(e3.id, e3.name); + } + } + t2.MilestoneManager = _, t2.milestoneManager = new _(); + }, 37293: (e2, t2, i2) => { + const n2 = i2(7401), r2 = i2(14075), { transferExternalActionType: o } = i2(30801); + function a() { + Object.defineProperties(this, { _externalNumber: { writable: true }, _releaseLinkTransfer: { writable: true } }), a.baseConstructor.apply(this, arguments); + } + r2.extend(a, o, true), Object.defineProperties(a.prototype, { pasteReIdOrRename: { value: function(e3) { + a._super.pasteReIdOrRename.apply(this, arguments), this.externalNumber.pasteReIdOrRename(e3); + } }, pasteResolveOldToNewValues: { value: function(e3) { + a._super.pasteResolveOldToNewValues.apply(this, arguments), this.externalNumber.pasteResolveOldToNewValues(e3); + } }, externalNumber: { enumerable: true, get: function() { + return this._externalNumber; + }, set: function(e3) { + this._externalNumber = this.reviveItem(e3, n2); + } }, releaseLinkTransfer: { enumerable: true, get: function() { + return this._releaseLinkTransfer; + }, set: function(e3) { + this._releaseLinkTransfer = this.reviveItem(e3, n2); + } } }), e2.exports = a; + }, 37298: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(20692)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "decimalCollection"; + } + get displayTypeName() { + return "ArchVariableDecimalCollection"; + } + get initialValue() { + return this._initialValue; + } + get isArchVariableDecimalCollection() { + return true; + } + } + t2.default = r2; + }, 37323: (e2, t2, i2) => { + "use strict"; + const n2 = i2(31635), r2 = n2.__importDefault(i2(27203)), o = i2(12179), a = n2.__importDefault(i2(97891)), s = n2.__importDefault(i2(5730)), l = i2(47957); + class u extends s.default { + constructor(e3, t3) { + super(e3.parentFlow, e3), this._loadModel(t3); + } + static get branchInfo() { + return r2.default.successFailure; + } + } + u.info = a.default.createActionInfo({ actionClass: u, canBeInTask: true, helpTopic: o.helpTopics.actions.submitVoicemailSnippet, modelClass: i2(93443), name: l.actions.submitVoicemailSnippet, scriptingName: "ArchActionSubmitVoicemailSnippet" }), t2.A = u; + }, 37333: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = i2(30801), o = n2.__importDefault(i2(11210)); + class a extends o.default { + constructor(e3) { + super(e3), this._targetAddress = this.coreFactory.createArchWrapper(e3.targetAddress), this._inviteSubject = this.coreFactory.createArchWrapper(e3.inviteSubject), this._inviteBody = this.coreFactory.createArchWrapper(e3.inviteBody), this._reminderSubject = this.coreFactory.createArchWrapper(e3.reminderSubject), this._reminderBody = this.coreFactory.createArchWrapper(e3.reminderBody); + } + get _actionTypeId() { + return r2.completeSurveyActionType; + } + get targetAddress() { + return this._targetAddress; + } + get inviteSubject() { + return this._inviteSubject; + } + get inviteBody() { + return this._inviteBody; + } + get reminderSubject() { + return this._reminderSubject; + } + get reminderBody() { + return this._reminderBody; + } + get displayTypeName() { + return this._scriptingName; + } + get isArchActionCompleteSurveyInvite() { + return true; + } + } + t2.default = a; + }, 37338: (e2, t2, i2) => { + const n2 = i2(79238); + function r2() { + r2.baseConstructor.apply(this, arguments); + } + i2(22124).extend(r2, "GroupList"), Object.defineProperties(r2.prototype, { entities: { enumerable: true, get: function() { + return this._entities; + }, set: function(e3) { + this._entities = this.reviveArray(e3, n2); + } } }), e2.exports = r2; + }, 37345: (e2, t2, i2) => { + const n2 = i2(92140), r2 = i2(12847), o = i2(10798), a = i2(4648).default, s = i2(51668), l = i2(36019).default, u = i2(64420), d = i2(80496); + function c() { + } + c.prototype.checkIn = function(e3) { + const t3 = l.build(u.checkIn); + return t3.templateParams({ id: e3 }), t3.call(); + }, c.prototype.checkOut = function(e3) { + const t3 = l.build(u.checkOut); + return t3.templateParams({ id: e3 }), t3.call(); + }, c.prototype.createFlow = function(e3, t3, i3, r3, o2, a2) { + const s2 = l.build(u.createFlow), d2 = { type: e3, name: t3, description: i3 || "", division: { id: r3 }, worktypeId: a2 || null }; + return s2.content(d2), n2.isString(o2) && s2.queryParams({ language: o2.toLowerCase() }), s2.call(); + }, c.prototype.deactivate = function(e3) { + const t3 = l.build(u.deactivate); + return t3.templateParams({ id: e3 }), t3.call(); + }, c.prototype.deleteFlow = function(e3) { + const t3 = l.build(u.deleteFlow); + return t3.templateParams({ id: e3 }), t3.call(); + }, c.prototype.deleteBulkFlows = function(e3) { + const t3 = l.build(u.deleteBulkFlows); + return t3.queryParams({ id: e3 }), t3.call(); + }, c.prototype.getConfiguration = function(e3, t3, i3) { + const n3 = l.build(t3 || u.getConfiguration); + return i3 && n3.info.addOptions(i3), n3.templateParams({ id: e3 }).queryParams({ deleted: true }), n3.call(); + }, c.prototype.getFlow = function(e3, t3, i3) { + const n3 = l.build(u.getFlow); + let r3; + return (t3 || i3) && (r3 = {}, t3 && (r3.deleted = true), i3 && (r3.includeSchema = true)), n3.queryParams(r3), n3.templateParams({ id: e3 }), n3.call(); + }, c.prototype.getFlow.api = u.getFlow, c.prototype.getFlowInfoForVersion = function(e3, t3) { + const i3 = l.build(u.getFlowInfoForVersion); + return i3.templateParams({ flowId: e3, flowVersion: t3 }), i3.call(); + }, c.prototype.getFlows = function(e3) { + e3 = e3 || {}; + const t3 = l.build(u.getFlows); + return t3.queryParams(e3.isConfigListSearchParams ? e3.getSearchQueryParams() : e3), t3.call(); + }, c.prototype.getFlowsDivisionViews = function(e3) { + const t3 = l.build(u.getFlowsDivisionViews); + return t3.queryParams(e3.getSearchQueryParams()), t3.call(); + }, c.prototype.getFlowVersions = function(e3, t3, i3) { + const n3 = { pageNumber: i3 || 1, pageSize: t3 || 20, sortOrder: "dsc" }, r3 = l.build(u.getFlowVersions); + return r3.templateParams({ flowId: e3 }).queryParams(n3), r3.call(); + }, c.prototype.getVersionConfiguration = function(e3, t3, i3, n3) { + const r3 = l.build(i3 || u.getVersionConfiguration); + return n3 && r3.info.addOptions(n3), r3.templateParams({ id: e3, version: t3 }).queryParams({ deleted: true }), r3.call(); + }, c.prototype.publish = function(e3, t3) { + const i3 = l.build(u.publishAsync); + return i3.templateParams({ id: e3 }), t3 && i3.queryParams({ version: "default" }), i3.call(); + }, c.prototype.enableFlowDebug = function(e3, t3) { + const i3 = l.build(u.enableFlowDebug); + return i3.templateParams({ id: e3, version: t3 }), i3.call(); + }, c.prototype.revert = function(e3) { + const t3 = l.build(u.revert); + return t3.templateParams({ id: e3 }), t3.call(); + }, c.prototype.saveConfiguration = function(e3, t3) { + const i3 = l.build(u.saveConfiguration); + let d2, c2; + return d2 = o.isFeatureAvailable(a.flowV2_Transport), d2 ? (n2.isObject(t3) && (r2.error("Non-string configuration passed into flows.saveConfiguration!"), t3 = JSON.stringify(t3)), c2 = { flow: s.gzip(t3).toString(), flowMetaData: { flowDocumentVersion: "2.0" } }, r2.info(`Compressed flow for save, compressed length: ${c2.flow?.length}, uncompressed length ${t3?.length}`)) : c2 = t3, i3.content(c2).templateParams({ id: e3 }), i3.call(); + }, c.prototype.updateMetaData = function(e3, t3, i3, n3, r3) { + const o2 = l.build(u.updateMetaData), a2 = { type: e3, name: i3, description: n3 || "", division: { id: r3 } }; + return o2.content(a2).templateParams({ id: t3 }), o2.call(); + }, c.prototype.unlock = function(e3) { + const t3 = l.build(u.unlock); + return t3.templateParams({ id: e3 }), t3.call(); + }, c.prototype.postHistoryRequest = function(e3) { + const t3 = l.build(u.postHistoryRequest); + return t3.templateParams({ id: e3 }), t3.call(); + }, c.prototype.getHistoryResults = function(e3, t3, i3) { + return l.build(u.getHistoryResults).templateParams({ flowId: e3, operationId: t3 }).queryParams({ pageSize: 100, pageNumber: i3 || 1, action: ["checkin", "publish", "create", "delete"] }).call(); + }, c.prototype.postFlowLaunch = function(e3, t3, i3, n3) { + const r3 = l.build(u.postFlowLaunch); + return r3.content({ flowId: e3, flowVersion: t3, inputData: i3, name: n3 }), r3.call(); + }, c.prototype.postDigitalBotFlowLaunch = function(e3, t3, i3, n3) { + const r3 = l.build(u.postDigitalBotFlowLaunch); + return r3.content({ channel: { inputModes: ["Text"], outputModes: ["Text"], name: "Chat", userAgent: { name: "GenesysWebWidget" } }, externalSessionId: "", flow: { id: e3 }, inputData: { variables: i3 }, language: "" }), r3.call(); + }, c.prototype.postDigitalBotFlowTurns = function(e3, t3, i3, n3) { + const r3 = l.build(d.postDigitalBotFlowTurns).templateParams({ sessionId: e3 }); + return r3.content(i3), r3.call(); + }, e2.exports = new c(); + }, 37414: (e2) => { + "use strict"; + e2.exports = function() { + this.text = 0, this.time = 0, this.xflags = 0, this.os = 0, this.extra = null, this.extra_len = 0, this.name = "", this.comment = "", this.hcrc = 0, this.done = false; + }; + }, 37417: (e2, t2, i2) => { + const n2 = i2(75458), { disconnectWorkitemActionType: r2 } = i2(30801); + function o() { + o.baseConstructor.apply(this, arguments); + } + n2.extend(o, r2, true), e2.exports = o; + }, 37595: (e2, t2, i2) => { + "use strict"; + const n2 = i2(31635), r2 = i2(96618), o = n2.__importStar(i2(63352)), a = i2(81516), s = n2.__importStar(i2(58380)), l = n2.__importStar(i2(98442)), u = n2.__importStar(i2(1115)), d = i2(12179), c = i2(12457), p = n2.__importDefault(i2(97891)), _ = i2(87870), h = n2.__importDefault(i2(5730)), m = i2(80428), g = i2(47957); + class f extends h.default { + constructor(e3, t3) { + super(e3.parentFlow, e3), this.editor_testing_tag = "setLocaleActionController", this._loadModel(t3); + } + getDetails() { + return this.languageCode && this.languageCode.text ? new c.ActionDetails([g.actions.language], [this.languageCode.text]) : null; + } + get amObjectEventSink() { + return true; + } + objEvent_supportedLanguagesChanged() { + this._configureAllowableLanguageCodes(), u.validateAction(this, true, true); + } + static get managedProperties() { + return [{ label: g.setLocale.locale, property: "languageCode", type: m.expressionTypeNames.string, options: a.ExpressionTypeStringOptions.create((e3) => e3.setAllowModeLiteralOnly().setDescriptionInfo(g.setLocale.locale).setWantLowerCaseStringLiteralValue(true).facets.setTrim(true).setAllowableValueUseOriginalDisplayString(true).setAllowableValuePlaceholder(g.setLocale.localeWatermark)), optionsForSpecificFlowTypes: [{ flowTypes: r2.flowTypes.flowTypesAllAutomate, options: a.ExpressionTypeStringOptions.create((e3) => e3.setAllowModeExpression(true, true).facets.setTrim(true).setAllowableValueUseOriginalDisplayString(true).setAllowableValuePlaceholder(g.setLocale.localeWatermark)) }], yamlOptions: f.createYamlOptions("languageCode", (e3) => e3.setPropertyName("languageValue").setShouldBePlainJsType(false).setValueShouldBeLowercase(true)), deprecatedYamlOptions: f.createYamlOptions("languageCodeDeprecated", (e3) => e3.setPropertyName("language").setShouldBePlainJsType(true).setValueShouldBeLowercase(true).setDoNotExportAsExpressionForFlowTypes(r2.flowTypes.flowTypesAllAutomate)) }, { createDetails: _.NoteActionProperty.createCreateDetails("", "warning", "setLocaleNote"), property: "updateWarning", yamlOptions: f.createYamlOptions("updateWarning", (e3) => e3.setSkipProperty(true)) }]; + } + initializeDesignTime() { + super.initializeDesignTime(), s.registerEventSinkForEventEmitter(this.parentFlow.languages.id, this), this._configureAllowableLanguageCodes(), this.isSetLanguageWarningNoteApplicable(this.parentFlow) && (this.updateWarning.note = this.getSetLanguageWarningNote(this.parentFlow)); + } + getSetLanguageWarningNote(e3) { + return e3.isAutomateFlowType ? g.setLocale.warningAutomate : e3.isCommonModuleFlow || e3.isInQueueCallFlow || e3.isVoicemailFlow ? g.setLocale.warningImmediate : g.setLocale.warning; + } + isSetLanguageWarningNoteApplicable(e3) { + return !(e3.isNluFlow || e3.isSurveyInvite || e3.isWorkflow); + } + search(e3) { + if (super.search(e3), this.languageCode.text && this.languageCode.isLiteralMode) { + const t3 = l.getLanguageDisplayName(this.languageCode.text); + t3 && e3.checkText(this, t3, this.languageCode.label); + } + } + _configureAllowableLanguageCodes() { + this.languageCode.options.facets.setAllowableValues(l.getLanguageEntries(this.parentFlow.languages.supportedLanguages)); + } + _overrideProperties() { + var e3, t3, i3; + super._overrideProperties.apply(this, arguments), this.languageCode.mode === o.literal && (null === (e3 = this.languageCode) || void 0 === e3 ? void 0 : e3.text) !== (null === (i3 = null === (t3 = this.languageCode) || void 0 === t3 ? void 0 : t3.text) || void 0 === i3 ? void 0 : i3.toLowerCase()) && (this.languageCode.text = this.languageCode.text.toLowerCase()), this.languageCode.attachValidator((e4, t4) => { + t4.text && t4.mode === o.literal && (l.isValidLanguageCode(t4.text) ? this.parentFlow.languages.isFlowSupportedLanguage(t4.text) || e4.addError(this.languageCode, g.setLocale.defaultLanguageError, void 0, true) : e4.addError(this.languageCode, g.setLocale.invalidLocale, void 0, true)); + }); + } + } + f.info = p.default.createActionInfo({ actionClass: f, canBeInTask: true, helpTopic: d.helpTopics.actions.setLocale, modelClass: i2(71137), name: g.actions.setLocale, scriptingName: "ArchActionSetLanguage" }), t2.A = f; + }, 37603: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importDefault(i2(57382)), o = n2.__importDefault(i2(56549)), a = n2.__importDefault(i2(94225)), { emergencyGroupManager: s } = i2(91674); + class l extends r2.default { + constructor(e3) { + super(e3), this._evaluationDateTime = this.coreFactory.createArchWrapper(e3.evaluationDateTime), this._emergencyGroup = this.coreFactory.createArchWrapper(e3.emergencyGroup); + } + get displayTypeName() { + return "ArchBaseActionSchedule"; + } + get isArchBaseActionSchedule() { + return true; + } + get evaluateNow() { + return this._coreActionViewModel.evaluateNow; + } + set evaluateNow(e3) { + this._checkItemIsValidLiteralBool(this._infoPropSet("value", "evaluateNow"), e3, false), this._coreActionViewModel.evaluateNow = e3; + } + get evaluationDateTime() { + return this._evaluationDateTime; + } + get emergencyGroup() { + return this._emergencyGroup; + } + setEmergencyGroupByIdAsync(e3, t3) { + return this._checkItemIsValidLiteralString(this._infoParm("emergencyGroupId", "setEmergencyGroupByIdAsync"), e3, false), this._checkItemIsValidFunction(this._infoParm("callbackFunction", "setEmergencyGroupByIdAsync"), t3, true), o.default.findItemByIdAsync(s, e3, "emergency group", "id").then((e4) => (this.logNote("found the emergency group named '" + e4.name + "' with ID of '" + e4.id + "'."), this._coreActionViewModel.setEmergencyGroup(e4), a.default.executeCallback(this, "setEmergencyGroupByIdAsync", t3, this))); + } + setEmergencyGroupByNameAsync(e3, t3) { + return this._checkItemIsValidLiteralString(this._infoParm("emergencyGroupName", "setEmergencyGroupByNameAsync"), e3, false), this._checkItemIsValidFunction(this._infoParm("callbackFunction", "setEmergencyGroupByNameAsync"), t3, true), o.default.findItemByValueAsync(s, e3, "emergency group", "name").then((e4) => (this.logNote("found the emergency group named '" + e4.name + "' with ID of '" + e4.id + "'."), this._coreActionViewModel.setEmergencyGroup(e4), a.default.executeCallback(this, "setEmergencyGroupByNameAsync", t3, this))); + } + } + t2.default = l; + }, 37647: (e2, t2) => { + "use strict"; + var i2; + Object.defineProperty(t2, "__esModule", { value: true }), t2.KnowledgeAnswerContentType = void 0, (function(e3) { + e3.standard = "standard", e3.highlight = "highlight", e3.generative = "generative"; + })(i2 || (t2.KnowledgeAnswerContentType = i2 = {})); + }, 37661: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importDefault(i2(92140)), o = i2(30801), a = n2.__importDefault(i2(56549)), s = n2.__importDefault(i2(66978)), l = n2.__importDefault(i2(79200)); + class u extends l.default { + constructor(e3) { + super(e3); + } + get _actionTypeId() { + return o.dataActionActionType; + } + get displayTypeName() { + return this._scriptingName; + } + get isArchActionCallData() { + return true; + } + setDataActionByIdAsync(e3, t3) { + return this._checkItemIsValidLiteralString(this._infoParm("secureActionId", "setDataActionByIdAsync"), e3, false), this._checkItemIsValidFunction(this._infoParm("callbackFunction", "setDataActionByIdAsync"), t3, true), this._setIntegrationActionByIdAsync(e3, t3, "data"); + } + setDataActionByNameAsync(e3, t3, i3) { + let n3; + return this._checkItemIsValidLiteralString(this._infoParm("dataActionName", "setDataActionByNameAsync"), e3), this._checkItemIsValidFunction(this._infoParm("callbackFunction", "setDataActionByNameAsync"), t3, true), this._checkItemIsValidLiteralString(this._infoParm("categoryName", "setDataActionByNameAsync"), i3, true), r2.default.isString(i3) && i3.length && (n3 = { category: i3 }), a.default.findItemByValueAsync(this._getCoreViewModel().serverManager, e3, "data action", "name", "name", n3).then(function(o2) { + return this.logNote(`Found partial info for the data action named '${o2.name}' (id: ${o2.id}) for the passed data action name of '${e3}'${r2.default.isUndefined(n3) ? "." : ` in the passed category name of '${i3}'.`} Getting full data action details.`), s.default.addPromise(this.setDataActionByIdAsync(o2.id, t3), "setDataActionByNameAsync"); + }.bind(this)); + } + } + t2.default = u; + }, 37675: (e2) => { + e2.exports = { leftToRight: "ltr", rightToLeft: "rtl" }; + }, 37687: (e2, t2, i2) => { + "use strict"; + const n2 = i2(31635), r2 = n2.__importDefault(i2(942)), o = n2.__importDefault(i2(27203)), a = i2(80428), s = i2(26954), l = i2(82632), u = i2(84151), d = i2(12179), c = n2.__importDefault(i2(97891)), p = i2(47957); + class _ extends r2.default { + constructor(e3, t3) { + super(e3.parentFlow, e3), this._loadModel(t3); + } + static get branchInfo() { + return o.default.foundPartiallyFoundNotFound; + } + static get managedProperties() { + return r2.default.createManagedProperties({ searchFieldPropertyName: "findIds", searchFieldOptionsCallback: (e3) => e3.setIsCollection(true).setMaxItems(l.findLimits.maxBulkFindByName).setDescriptionInfo(p.findActions.findUser.idsLabel, p.findActions.findUser.idsDescription).facets.setLengthForUuid(), searchFieldLabel: p.findActions.findUser.idsLabel, searchResultLabel: p.findActions.findUser.resultsLabel, searchResultExpressionOptions: s.ExpressionTypeUserOptions.create((e3) => e3.setIsCollection(true)), searchResultItemType: a.expressionTypeNames.userQueue }); + } + } + _.info = c.default.createActionInfo({ actionClass: _, canBeInTask: true, helpTopic: d.helpTopics.actions.findUsersById, modelClass: u.FindUsersByIdActionModel, name: p.actions.findUsersById, scriptingName: "ArchActionFindUsersById" }), t2.A = _; + }, 37707: (e2, t2, i2) => { + "use strict"; + var n2, r2; + Object.defineProperty(t2, "__esModule", { value: true }), t2.Integration = void 0; + const o = i2(31635), a = i2(80295), s = i2(90715), l = i2(80295), u = i2(84050); + class d extends u.NameIdDescriptionModel { + constructor(e3) { + super(e3), (0, l.makeUnenumerable)(this, "_integrationType"); + } + get integrationType() { + return this._integrationType; + } + set integrationType(e3) { + this._integrationType = this.reviveItem(e3, s.IntegrationType); + } + } + t2.Integration = d, o.__decorate([(0, a.enumerable)(true), o.__metadata("design:type", "function" == typeof (n2 = void 0 !== s.IntegrationType && s.IntegrationType) ? n2 : Object), o.__metadata("design:paramtypes", ["function" == typeof (r2 = void 0 !== s.IntegrationType && s.IntegrationType) ? r2 : Object])], d.prototype, "integrationType", null); + }, 37752: (e2, t2, i2) => { + "use strict"; + var n2, r2, o, a; + Object.defineProperty(t2, "__esModule", { value: true }); + const s = i2(31635), l = i2(80295), u = i2(80295), d = i2(19596), c = s.__importDefault(i2(15244)), p = s.__importDefault(i2(7401)); + class _ extends d.DataContract { + constructor(e3) { + super(e3), (0, u.makeUnenumerable)(this, "_abortMessage"), (0, u.makeUnenumerable)(this, "_handlingType"); + } + pasteReIdOrRename(e3) { + super.pasteReIdOrRename(e3), this.abortMessage && this.abortMessage.pasteReIdOrRename(e3); + } + pasteResolveOldToNewValues(e3) { + super.pasteResolveOldToNewValues(e3), this.abortMessage && this.abortMessage.pasteResolveOldToNewValues(e3); + } + get abortMessage() { + return this._abortMessage; + } + set abortMessage(e3) { + this._abortMessage = this.reviveItem(e3, p.default); + } + get handlingType() { + return this._handlingType; + } + set handlingType(e3) { + this._handlingType = this.reviveEnum(e3, c.default); + } + } + t2.default = _, s.__decorate([(0, l.enumerable)(true), s.__metadata("design:type", "function" == typeof (n2 = void 0 !== p.default && p.default) ? n2 : Object), s.__metadata("design:paramtypes", ["function" == typeof (r2 = void 0 !== p.default && p.default) ? r2 : Object])], _.prototype, "abortMessage", null), s.__decorate([(0, l.enumerable)(true), s.__metadata("design:type", "function" == typeof (o = void 0 !== c.default && c.default) ? o : Object), s.__metadata("design:paramtypes", ["function" == typeof (a = void 0 !== c.default && c.default) ? a : Object])], _.prototype, "handlingType", null); + }, 37819: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importDefault(i2(92140)), o = n2.__importDefault(i2(52852)), a = n2.__importDefault(i2(8471)); + class s extends a.default { + constructor() { + super(...arguments), this._hierarchyItems = []; + } + static createContext() { + return new s(); + } + _addHierarchyItemPropAccess(e3, t3, i3) { + let n3 = this._hierarchyItems.length ? `${this.hierarchyStr}.${t3}` : `${e3.id ? e3.id : e3.logStr}.${t3}`; + r2.default.isUndefined(i3) || (n3 = `${n3}[${i3}]`); + const a2 = o.default.createObjectPropertyAccessItem(e3, t3, i3, n3); + return this._hierarchyItems.push(a2), this._hierarchyItemsModified(), a2; + } + _popHierarchyItem() { + const e3 = this._hierarchyItems.pop(); + return this._hierarchyItemsModified(), e3; + } + get hierarchy() { + return r2.default.clone(this._hierarchyItems); + } + get hierarchyStr() { + return r2.default.isUndefined(this._cachedHierarchyStr) && (this._cachedHierarchyStr = this._hierarchyItems.length ? this._hierarchyItems[this._hierarchyItems.length - 1].hierarchyStr : ""), this._cachedHierarchyStr; + } + get displayTypeName() { + return "ArchTraverseContext"; + } + get isArchTraverseContext() { + return true; + } + get logStr() { + const e3 = []; + return this._appendLogStrType(e3, this.displayTypeName), this._appendLogStrHierarchyStr(e3, this.hierarchyStr), this._createLogStrFromParts(e3); + } + _hierarchyItemsModified() { + this._cachedHierarchyStr = void 0; + } + } + t2.default = s; + }, 37824: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = i2(96618), o = n2.__importDefault(i2(15244)), a = n2.__importStar(i2(14187)), s = n2.__importDefault(i2(95955)), l = n2.__importDefault(i2(97675)), u = n2.__importDefault(i2(44035)), d = n2.__importDefault(i2(19359)), c = n2.__importDefault(i2(71824)), p = i2(49804), _ = i2(64420); + class h extends c.default { + constructor(e3) { + super(e3), this.callPrompts = this._addToAutoManageSettings(new s.default(this)), this.errorHandling = this._addToAutoManageSettings(new l.default(this)), this.pathDiscovery = this._addToAutoManageSettings(new d.default(this)), this.emailSendSettings = this._addToAutoManageSettings(new u.default(this)); + } + get className() { + return "EmailSendViewModel"; + } + get builtInVariableScopes() { + return [...super.builtInVariableScopes, a.scopes.email]; + } + get isEmailSendFlow() { + return true; + } + getFlowConfigurationClass() { + return p; + } + get overrideWireFlowConfiguration() { + return _.getEmailSendFlowConfiguration; + } + get overrideWireFlowVersionConfiguration() { + return _.getVersionEmailSendFlowConfiguration; + } + get type() { + return r2.flowTypes.flowTypeEmailSend; + } + get wrappedYamlName() { + return "emailSend"; + } + setNewInstanceDefaults(e3) { + return this.errorHandling.handlingType = o.default.AbortSend, super.setNewInstanceDefaults(e3); + } + } + t2.default = h; + }, 37830: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.ExpressionTypeQueueOptions = void 0; + const n2 = i2(71056); + class r2 extends n2.ExpressionTypeNetworkObjectOptions { + static create(e3, t3) { + return new this(t3).invokeOptionsCallback(e3); + } + constructor(e3) { + super(e3); + } + get className() { + return "ExpressionTypeQueueOptions"; + } + get isExpressionTypeQueueOptions() { + return true; + } + } + t2.ExpressionTypeQueueOptions = r2; + }, 37852: (e2, t2, i2) => { + const n2 = i2(46205), { callBotFlowActionType: r2 } = i2(30801); + function o() { + o.baseConstructor.apply(this, arguments); + } + n2.extend(o, r2, true), e2.exports = o; + }, 37873: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(67336)), { expressionDataService: r2 } = i2(27491), o = i2(43096), a = i2(71004), s = i2(14187), l = i2(94453), { uuid: u } = i2(9456); + class d extends n2.default { + constructor(e3) { + super(e3), this._checkItemIsValidLiteralString(this._infoParmCtor("coreViewModelWithId.id"), e3.id, this._allowBlankObjectId), this._coreViewModelWithId = e3; + } + _addVariable(e3, t3, i3, n3, d2, c) { + const p = this._infoParm("callingArchObject", t3); + e3._checkItemIsArchBaseObject(p, e3), e3._checkVariableContainer(t3, "Adding variables is not permitted."); + const _ = e3._infoParm("name", t3); + e3._checkItemIsValidLiteralString(_, i3); + const h = e3._infoParm("type", t3); + e3._checkItem(h, !n3 || !n3.isArchDataType, "The data type must be an ArchDataType instance."); + const m = e3._infoParm("description", t3); + e3._checkItemIsValidLiteralString(m, d2, true); + const g = e3._infoParm("forceSlotVariableCreation", t3); + e3._checkItemIsValidLiteralBool(g, c, true); + const f = s.getScope(i3), T = e3._getCoreViewModel().localVariableScope; + if (f && f !== T) { + let t4 = false, n4 = `When adding a variable to a ${e3.displayTypeName}, the variable name must have a '${T}' scope. The new variable name of '${i3}' has a scope of '${f}' which does not meet that criteria.`; + f === s.scopes.slot && this.isArchBaseFlowBot ? c || (t4 = true, n4 = "When adding a slot variable to a bot or digital bot flow, the 'forceSlotVariableCreation' parameter must be true.") : t4 = true, t4 && e3.logErrorAndThrow(n4); + } + const y = s.getUnscopedName(i3); + e3._checkItem(_, !y, "Unable to determine the unscoped variable name from '" + i3 + "'."), e3._checkItem(_, y !== r2.cleanseForIdentifierName(y), "the new variable unscoped name of '" + y + "' in '" + i3 + "' is not valid. It must start with a letter and then be followed by one or more letters, numbers or underscore characters."), f || (i3 = s.setScope(T, i3), e3.logNote("adding the scope of '" + T + "' to the the submitted new variable name so it will be '" + i3 + "' when added.")), e3.getVariableByName(i3) && e3.logErrorAndThrow("you cannot add the variable '" + i3 + "' to " + e3.logStr + " because a variable with that name already already exists."); + const S = e3.isArchBaseFlow ? e3 : e3.parentFlow; + n3.isScriptCreatableForFlow(S) || e3.logErrorAndThrow("the data type " + n3.logStr + " is not valid for use in flows of one of the types '" + S._getCoreViewModel().destinationFlowTypes.join(",") + "'"); + const A = e3._getCoreViewModel(), N = n3._getCoreViewModel(), O = new (0, o[N.icwsType])({ name: i3, id: u(), isCollection: n3.isCollection, typeIdentifier: N.expressionType }); + if (f === s.scopes.slot && this.isArchBaseFlowBot) { + const t4 = l.getNluTypeForArchitectType(N), r3 = this.botFlowSettings._getCoreViewModel().createSlotVarForSlotName(y, t4.nluDataType, t4.mechanism, n3.isCollection); + return e3.logNote(`successfully added the variable ${i3} to ${e3.logStr}`), r3.doNotCleanupIfOrphanedSlot = true, e3.coreFactory.createArchWrapper(r3); + } + { + const t4 = a.createVariable(O, A); + return t4.description = d2, e3.isArchBaseFlow || A.addVariable(t4), e3.logNote(`successfully added the variable ${i3} to ${e3.logStr}`), e3.coreFactory.createArchWrapper(t4); + } + } + _removeVariable(e3, t3) { + const i3 = t3._getCoreViewModel(); + if (!i3) return e3._logErrorInternal(`unable to resolve the Architect core variable from the ArchBaseVariable with id: ${t3.id}, name: ${t3.name}.`), false; + const n3 = i3.parentFlow; + if (!n3) return e3._logErrorInternal(`unable to resolve the Architect core flow view model for the ArchBaseVariable with id: ${t3.id}, name: ${t3.name}.`), false; + if (!i3.canDelete || i3.getDeletionTooltip(true)) return e3.logError(`unable to delete the variable: ${t3.id}, name: ${t3.name}. Reason: ${i3.getDeletionTooltip() || "unknown"}`), false; + e3.logNote(`removing the variable with id: ${t3.id}, name: ${t3.name}.`); + const r3 = n3.variableGroup.removeVariable(i3); + return r3 ? e3.logNote(`successfully removed the variable with id: ${t3.id}, name: ${t3.name}.`) : e3.logError(`did not remove the variable with id: ${t3.id}, name: ${t3.name}.`), r3; + } + _checkVariableContainer(e3, t3) { + const i3 = this._infoCalledObject(this, e3); + this._checkItem(i3, !this.isVariableContainer, "The " + this.displayTypeName + " is not a variable container." + (t3 ? " " + t3 : "")); + } + get displayTypeName() { + return "ArchBaseCoreObjectWithId"; + } + get id() { + return this._coreViewModelWithId.id; + } + get idMayBeBlank() { + return this._allowBlankObjectId; + } + get _allowBlankObjectId() { + return false; + } + get isArchBaseObjectWithId() { + return true; + } + } + t2.default = d; + }, 38142: (e2, t2, i2) => { + "use strict"; + var n2; + Object.defineProperty(t2, "__esModule", { value: true }); + const r2 = i2(31635), o = r2.__importDefault(i2(65485)); + class a extends o.default { + constructor(e3) { + super(e3), n2.set(this, void 0), r2.__classPrivateFieldSet(this, n2, this.coreFactory.createArchWrapper(e3.question), "f"); + } + get displayTypeName() { + return "ArchBaseActionAskNoInputNoMatch"; + } + get isArchBaseActionAskNoInputNoMatch() { + return true; + } + get question() { + return r2.__classPrivateFieldGet(this, n2, "f"); + } + } + n2 = /* @__PURE__ */ new WeakMap(), t2.default = a; + }, 38170: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(94147)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get displayTypeName() { + return "ArchStateBot"; + } + get isArchStateBot() { + return true; + } + } + t2.default = r2; + }, 38185: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.bridgeCategoryManager = t2.BridgeCategoryManager = void 0; + const n2 = i2(31635), r2 = i2(24032), o = n2.__importDefault(i2(47532)), a = i2(81801), s = i2(58300), l = i2(82185); + class u extends o.default { + get requiredAuth() { + return a.externalAuthorizations.authStrings.bridgeActionView; + } + constructor() { + super(), this.topic = (0, r2.getTopic)("BridgeCategoryManager"), this._rawServerCache = {}, this.caseSensitiveIds = true, this.apiCallList = s.getCategories, this.apiCallSingle = void 0, this.noApiCallSingle = true, this.dependencyContext = null, this.className = "BridgeCategoryManager", this.suppressSearch = true, this._initialize(); + } + _createItemViewModel(e3) { + return new l(e3); + } + } + t2.BridgeCategoryManager = u, t2.bridgeCategoryManager = new u(); + }, 38249: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.archHandlingTypeConversion = void 0; + const n2 = i2(31635), r2 = n2.__importDefault(i2(15244)), o = n2.__importDefault(i2(78432)), a = n2.__importDefault(i2(8471)); + class s extends a.default { + getArchEnumHandlingForCoreHandling(e3) { + switch (e3) { + case r2.default.AbortSend: + return o.default.EVENTS_FLOW_ERROR_HANDLING.abortSend; + case r2.default.CompleteSend: + return o.default.EVENTS_FLOW_ERROR_HANDLING.completeSend; + case r2.default.Disconnect: + return o.default.EVENTS_FLOW_ERROR_HANDLING.disconnect; + case r2.default.EndFlow: + return o.default.EVENTS_FLOW_ERROR_HANDLING.endFlow; + case r2.default.EndInQueueState: + return o.default.EVENTS_FLOW_ERROR_HANDLING.endInQueueState; + case r2.default.EndWorkflow: + return o.default.EVENTS_FLOW_ERROR_HANDLING.endWorkflow; + case r2.default.Exit: + return o.default.EVENTS_FLOW_ERROR_HANDLING.exit; + case r2.default.Menu: + return o.default.EVENTS_FLOW_ERROR_HANDLING.jumpToMenu; + case r2.default.Queue: + return o.default.EVENTS_FLOW_ERROR_HANDLING.transferToQueue; + case r2.default.State: + return o.default.EVENTS_FLOW_ERROR_HANDLING.changeState; + case r2.default.Task: + return o.default.EVENTS_FLOW_ERROR_HANDLING.jumpToTask; + case r2.default.Continue: + return o.default.EVENTS_FLOW_ERROR_HANDLING.continue; + default: + this._logErrorInternalAndThrow(`unknown core handling type '${e3}' passed to ArchHandlingTypeConversion#getArchEnumHandlingForCoreHandling.`); + } + } + getCoreHandlingTypeForEnum(e3) { + switch (e3) { + case o.default.EVENTS_FLOW_ERROR_HANDLING.abortSend: + return r2.default.AbortSend; + case o.default.EVENTS_FLOW_ERROR_HANDLING.completeSend: + return r2.default.CompleteSend; + case o.default.EVENTS_FLOW_ERROR_HANDLING.changeState: + return r2.default.State; + case o.default.EVENTS_FLOW_ERROR_HANDLING.disconnect: + return r2.default.Disconnect; + case o.default.EVENTS_FLOW_ERROR_HANDLING.endFlow: + return r2.default.EndFlow; + case o.default.EVENTS_FLOW_ERROR_HANDLING.endInQueueState: + return r2.default.EndInQueueState; + case o.default.EVENTS_FLOW_ERROR_HANDLING.endWorkflow: + return r2.default.EndWorkflow; + case o.default.EVENTS_FLOW_ERROR_HANDLING.exit: + return r2.default.Exit; + case o.default.EVENTS_FLOW_ERROR_HANDLING.jumpToMenu: + return r2.default.Menu; + case o.default.EVENTS_FLOW_ERROR_HANDLING.transferToQueue: + return r2.default.Queue; + case o.default.EVENTS_FLOW_ERROR_HANDLING.jumpToTask: + return r2.default.Task; + case o.default.EVENTS_FLOW_ERROR_HANDLING.continue: + return r2.default.Continue; + default: + this._logErrorInternalAndThrow(`the error handling type value '${e3}' was properly added to the ArchEnums.EVENTS_FLOW_ERROR_HANDLING but no support for it was added to the internal ArchHandlingTypeConversion#getCoreHandlingTypeForEnum function in Architect Scripting. :(`); + } + } + findHandlingTypeForValue(e3, i3) { + const n3 = t2.archHandlingTypeConversion.getCoreHandlingTypeForEnum(i3).value; + return !!e3.find((e4) => e4.value === n3); + } + } + t2.archHandlingTypeConversion = new s(); + }, 38296: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.getAllSendNotificationFailureReasons = t2.getSendNotificationFailureReasons = t2.getSendNotificationFailureReasonsNoBusy = void 0; + const n2 = i2(31635).__importDefault(i2(92140)), r2 = { actionInvocationLimitExceeded: "ActionInvocationLimitExceeded", busy: "Busy", generalError: "GeneralError", invalidChatMessage: "InvalidChatMessage", invalidEmailFrom: "InvalidEmailFrom", invalidGroup: "InvalidGroup", invalidNotificationType: "InvalidNotificationType", invalidSubject: "InvalidSubject", invalidUserCollection: "InvalidUserCollection", sendNotificationActionDisabled: "SendNotificationActionDisabled" }, o = [r2.generalError]; + t2.getSendNotificationFailureReasonsNoBusy = n2.default.uniq(o.concat([r2.actionInvocationLimitExceeded, r2.invalidChatMessage, r2.invalidEmailFrom, r2.invalidGroup, r2.invalidNotificationType, r2.invalidSubject, r2.invalidUserCollection, r2.sendNotificationActionDisabled])), t2.getSendNotificationFailureReasons = n2.default.uniq(t2.getSendNotificationFailureReasonsNoBusy.concat([r2.busy])), t2.getAllSendNotificationFailureReasons = r2; + }, 38297: (e2, t2, i2) => { + const n2 = i2(36019).default, r2 = i2(89878); + class o { + } + const a = new o(); + o.prototype.getValidationResults = function(e3, t3) { + return n2.build(r2.getValidationResults).templateParams({ flowId: e3, operationId: t3 }).call(); + }, o.prototype.postValidationManifest = function(e3, t3) { + return n2.build(r2.postValidationManifest).content(t3).queryParams({ flow: e3.id, flowType: e3.type }).call(); + }, e2.exports = a; + }, 38416: (e2, t2, i2) => { + "use strict"; + var n2, r2; + Object.defineProperty(t2, "__esModule", { value: true }); + const o = i2(31635), a = i2(80295), s = o.__importDefault(i2(48)), l = i2(58996); + class u extends l { + constructor(e3) { + super(e3), (0, a.makeUnenumerable)(this, "_commonModuleFlowSettings"); + } + get commonModuleFlowSettings() { + return this._commonModuleFlowSettings; + } + set commonModuleFlowSettings(e3) { + this._commonModuleFlowSettings = e3; + } + } + t2.default = u, o.__decorate([(0, a.enumerable)(true), o.__metadata("design:type", "function" == typeof (n2 = void 0 !== s.default && s.default) ? n2 : Object), o.__metadata("design:paramtypes", ["function" == typeof (r2 = void 0 !== s.default && s.default) ? r2 : Object])], u.prototype, "commonModuleFlowSettings", null), l.extend(u, "CommonModuleFlowConfiguration"); + }, 38422: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(54063)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "externalAppleInfoCollection"; + } + get displayTypeName() { + return "ArchValueExternalAppleInfoCollection"; + } + get isArchValueExternalAppleInfoCollection() { + return true; + } + } + t2.default = r2; + }, 38551: (e2, t2) => { + "use strict"; + var i2; + Object.defineProperty(t2, "__esModule", { value: true }), t2.KnowledgeVersionValues = void 0, (function(e3) { + e3.v2 = "v2", e3.v3 = "v3"; + })(i2 || (t2.KnowledgeVersionValues = i2 = {})); + }, 38557: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importDefault(i2(92140)), o = n2.__importDefault(i2(11210)), a = n2.__importDefault(i2(78432)), s = n2.__importDefault(i2(26151)), l = i2(30801); + class u extends o.default { + constructor(e3) { + super(e3), this._estimatedWaitTime = this.coreFactory.createArchValueFromExpression(e3.estimatedWaitTime), this._estimatedWaitTimeAudio = this.coreFactory.createArchWrapper(e3.prompts)._setNotWritableOverride(true), this._roundingInterval = this.coreFactory.createArchWrapper(e3.roundingInterval), this._specificRoundingIntervals = this.coreFactory.createArchWrapper(e3.specificRoundingIntervals); + } + get _actionTypeId() { + return l.playEstimatedWaitTimeActionType; + } + get displayTypeName() { + return this._scriptingName; + } + get estimatedWaitTime() { + return this._estimatedWaitTime; + } + get estimatedWaitTimeAudio() { + return this._estimatedWaitTimeAudio; + } + get isArchActionPlayEstimatedWaitTime() { + return true; + } + get playbackMode() { + switch (this._coreActionViewModel.playbackMode) { + case s.default.about: + return a.default.PLAY_ESTIMATED_WAIT_STYLES.about; + case s.default.exact: + return a.default.PLAY_ESTIMATED_WAIT_STYLES.exact; + case s.default.lessThan: + return a.default.PLAY_ESTIMATED_WAIT_STYLES.lessThan; + case s.default.range: + return a.default.PLAY_ESTIMATED_WAIT_STYLES.range; + default: + this._logErrorInternalAndThrow("unknown core estimated wait time playback mode"); + } + } + set playbackMode(e3) { + switch (this._checkItemIsValidLiteralStringEnum(this._infoPropSet("newPlaybackMode", "playbackMode"), e3, a.default.PLAY_ESTIMATED_WAIT_STYLES_ALL), this.logNote("setting the playback mode to '" + e3 + "'"), e3) { + case a.default.PLAY_ESTIMATED_WAIT_STYLES.about: + this._coreActionViewModel.playbackMode = s.default.about; + break; + case a.default.PLAY_ESTIMATED_WAIT_STYLES.exact: + this._coreActionViewModel.playbackMode = s.default.exact; + break; + case a.default.PLAY_ESTIMATED_WAIT_STYLES.lessThan: + this._coreActionViewModel.playbackMode = s.default.lessThan; + break; + case a.default.PLAY_ESTIMATED_WAIT_STYLES.range: + this._coreActionViewModel.playbackMode = s.default.range; + } + } + get roundingInterval() { + return this._roundingInterval; + } + get specificRoundingIntervals() { + const e3 = []; + return this.supportsSpecificRoundingIntervals ? (r2.default.each(this._specificRoundingIntervals._getCoreViewModel().items, (t3) => { + e3.push(this.coreFactory.createArchWrapper(t3)); + }), e3) : e3; + } + get specificRoundingIntervalsCount() { + return this.specificRoundingIntervals.length; + } + addSpecificRoundingInterval() { + this.supportsSpecificRoundingIntervals || this.logErrorAndThrow(`cannot add a specific rounding interval when the playback mode is set to '${this.playbackMode}'. ${this.logStr}`); + const e3 = this._getCoreViewModel().specificRoundingIntervals.items, t3 = e3.length; + if (this._getCoreViewModel().addSpecificInterval(), e3.length > t3) return this.coreFactory.createArchWrapper(e3[e3.length - 1]); + } + getSpecificRoundingIntervalByIndex(e3) { + const t3 = this._infoPropSet("index", "getSpecificRoundingIntervalByIndex"); + return this._validateSpecificRoundingIntervalByIndex(t3, e3), this.coreFactory.createArchWrapper(this._getCoreViewModel().specificRoundingIntervals.items[e3]); + } + deleteSpecificRoundingIntervalByIndex(e3) { + const t3 = this._infoPropSet("index", "deleteSpecificRoundingIntervalByIndex"); + this._validateSpecificRoundingIntervalByIndex(t3, e3); + const i3 = this._getCoreViewModel().specificRoundingIntervals.items[e3]; + i3 && (this.logNoteVerbose(`deleting specific rounding interval at index: ${e3}.`), this._getCoreViewModel().specificRoundingIntervals.removeChild(i3), this.logNote(`deleted the specific rounding interval at index ${e3}.`)); + } + get supportsSpecificRoundingIntervals() { + return this._getCoreViewModel().supportsSpecificRoundingIntervals(); + } + _validateSpecificRoundingIntervalByIndex(e3, t3) { + this._checkItemIsValidLiteralInt(e3, t3, false), this._checkItem(e3, t3 < 0 || t3 >= this.specificRoundingIntervalsCount, `the index parameter value of '${t3}' is invalid. It must be >= 0 and <${this.specificRoundingIntervalsCount}.`); + } + } + t2.default = u; + }, 38590: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importDefault(i2(92140)), o = n2.__importDefault(i2(84783)), a = n2.__importDefault(i2(38689)); + class s extends o.default { + get displayTypeName() { + return "ArchFactoryStates"; + } + get logStr() { + return this._createLogStrFromParts(["ArchFactoryStates"]); + } + get isArchFactoryStates() { + return true; + } + addState(e3, t3, i3) { + const n3 = this._infoParm("archBaseFlow", "addState"); + this._checkItem(n3, !e3 || !e3.isArchBaseFlow, "you must pass in a valid ArchBaseFlow instance."), this._checkItem(n3, !e3.definition.supportsMultipleStates, `the flow type '${e3.flowType}' does not support states.`), this._checkItemIsValidLiteralString(this._infoParm("name", "addState"), t3, true), this._checkItemIsValidLiteralBool(this._infoParm("setAsStartingState", "addState"), i3, true), i3 && this._checkItem(n3, !e3.definition.startUpObjectCanBeState, `a state cannot be the startup object for the flow type '${e3.flowType}'.`); + const o2 = e3._getCoreViewModel().createState(); + r2.default.isString(t3) && t3.length && (o2.name = t3); + const s2 = a.default.createArchWrapper(o2); + return i3 && e3.setStartingState(s2), s2; + } + } + t2.default = new s(); + }, 38597: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.CodeJsonBuilder = t2.ParseItemProcessingMode = void 0; + const n2 = i2(31635), r2 = n2.__importDefault(i2(92140)), o = n2.__importStar(i2(81116)), a = n2.__importStar(i2(8462)), s = i2(17666), l = i2(17666), u = i2(57653), d = i2(17666), c = i2(17666), p = i2(34630), _ = i2(34630), h = i2(34630), m = i2(34630), g = i2(34630), f = n2.__importDefault(i2(73198)), T = i2(51125), y = i2(33336), S = i2(59393), A = i2(26403), N = i2(17604), O = n2.__importDefault(i2(41510)), { globalTypes: I } = i2(14394), v = i2(47957), C = O.default.expression.genericJsonPropertyDefModelPropId, b = { day: 2, hour: 2, minute: 2, month: 2, second: 2, year: 4 }; + var E, R; + !(function(e3) { + e3.complete = "complete", e3.root = "root", e3.array = "array", e3.object = "object", e3.objectProperty = "objectProperty", e3.objectPropertyValue = "objectPropertyValue"; + })(E || (t2.ParseItemProcessingMode = E = {})), (function(e3) { + e3.archExpression = "archExpression", e3.archLiteral = "archLiteral", e3.boolean = "boolean", e3.null = "null", e3.number = "number", e3.string = "string"; + })(R || (R = {})), t2.CodeJsonBuilder = class { + constructor(e3, t3, i3, n3, r3) { + this._stack = [], this._parseResult = i3, this._parseSettings = n3, this._loggingEnabled = this._parseSettings.enableLogging, this._language = r3, this._languageCharacteristics = (0, T.getCharacteristicsForLanguage)(r3), this._rootExpression = e3, this._sourceText = t3, this._parseForUiOnly = this._parseSettings.parseForUiOnly; + const o2 = t3.split("\n"); + let a2 = 0; + this._sourceTextLineStartPos = []; + for (const e4 of o2) this._sourceTextLineStartPos.push(a2), a2 += e4.length + 1; + this._sourceTestLineStartPosLen = this._sourceTextLineStartPos.length, this._rootParseItem = { mode: E.root, expression: (null == n3 ? void 0 : n3.quickParse) ? void 0 : e3, type: e3.type, lineInfo: { lineNo: 0, charPos: 0 }, node: void 0, nodeFrom: void 0, nodeTo: void 0, propertyName: void 0, configVal: { json: void 0, exprs: {} }, dependencies: {} }; + } + _getNodeText(e3, t3) { + var i3; + return e3 ? null === (i3 = this._sourceText) || void 0 === i3 ? void 0 : i3.substring(e3.from, e3.to) : t3; + } + _arrayItemsRequirePrefixSeparator() { + return !!this._languageCharacteristics.arrayItemPrefixSeparator; + } + _propertyValuesRequirePrefixSeparator() { + return !!this._languageCharacteristics.objectPropertyNameValueSeparator; + } + get stack() { + return this._stack; + } + get currentParseItem() { + return 0 === this._stack.length ? this._rootParseItem : this._stack[this._stack.length - 1]; + } + getExpressionConfigVal() { + if (this.isParseItemComplete(this.currentParseItem) && (!this._parseResult.errorItems.length || this._parseForUiOnly)) return this._rootParseItem.configVal; + } + isParseItemArray(e3) { + return (null == e3 ? void 0 : e3.mode) === E.array; + } + isParseItemComplete(e3) { + return (null == e3 ? void 0 : e3.mode) === E.complete; + } + isParseItemObjectOrArray(e3) { + return this.isParseItemObject(e3) || this.isParseItemArray(e3); + } + isParseItemObject(e3) { + return (null == e3 ? void 0 : e3.mode) === E.object; + } + isParseItemObjectPropertyValue(e3) { + return (null == e3 ? void 0 : e3.mode) === E.objectPropertyValue; + } + _binarySearchLineStartPosIdx(e3) { + let t3 = 0, i3 = this._sourceTestLineStartPosLen; + for (; t3 <= i3; ) { + const n3 = Math.floor((t3 + i3) / 2); + if (this._sourceTextLineStartPos[n3] === e3) return n3; + if (this._sourceTextLineStartPos[n3] < e3) { + if (this._sourceTextLineStartPos[n3 + 1] > e3 || n3 + 1 === this._sourceTestLineStartPosLen) return n3; + t3 = n3 + 1; + } else i3 = n3 - 1; + } + } + getLineAndCharPosForPosition(e3, t3) { + const i3 = this._binarySearchLineStartPosIdx(e3); + return { lineNo: i3, charPos: e3 - this._sourceTextLineStartPos[i3] + (t3 ? 1 : 0) }; + } + getParseItemFromLineInfo(e3, t3) { + if (e3) return this.getLineAndCharPosForPosition(e3.nodeFrom, t3); + } + getParseItemToLineInfo(e3, t3) { + if (e3) return this.getLineAndCharPosForPosition(e3.nodeTo, t3); + } + getParseItemLineInfo(e3, t3) { + if (e3) return { from: this.getParseItemFromLineInfo(e3, t3), to: this.getParseItemToLineInfo(e3, t3) }; + } + addParseResultItem(e3, t3, i3, n3, r3, o2, a2, s2) { + var l2, u2, d2, c2; + const p2 = r3 || (t3 ? t3.from : 0), _2 = o2 || (t3 ? t3.to : 0), h2 = null === (l2 = this._sourceText) || void 0 === l2 ? void 0 : l2.substring(p2, _2), m2 = i3 === A.ParseResultTypes.warn ? "warning" : i3, g2 = this.getLineAndCharPosForPosition(p2), f2 = (null === (u2 = g2.lineNo) || void 0 === u2 ? void 0 : u2.toString()) || "-1", T2 = (null === (d2 = g2.charPos) || void 0 === d2 ? void 0 : d2.toString()) || "-1"; + let y2 = this._parseResult.itemsByLinePosMap[f2]; + y2 || (y2 = {}, this._parseResult.itemsByLinePosMap[f2] = y2); + let S2 = y2[T2]; + S2 || (S2 = {}, y2[T2] = S2); + const O2 = S2[m2]; + if (O2 && (!O2.isCodeParserGenericItem || a2)) return; + this._loggingEnabled && (this.logMessage(() => "------------------------"), this.logMessage(() => "Creating error object!"), this.logMessage(() => `Line: ${e3.lineInfo.lineNo}, ChPos: ${e3.lineInfo.charPos}, Position: ${p2}, Token: ${h2}`), this.logMessage(() => `Error: ${n3}`)); + const I2 = { severity: m2, resultType: i3, message: (null == e3 ? void 0 : e3.propertyName) ? (0, N.sprintf)(v.codeEditor.parseErrors.formatPropertyWithMessage, null == e3 ? void 0 : e3.propertyName, n3.message) : n3.message, displayMessage: (null == e3 ? void 0 : e3.propertyName) ? (0, N.sprintf)(v.codeEditor.parseErrors.formatPropertyWithMessage, null == e3 ? void 0 : e3.propertyName, n3.displayMessage) : n3.displayMessage, from: p2, to: _2, lineNo: e3.lineInfo.lineNo, lineCharPos: e3.lineInfo.charPos, facetInfo: n3.facetInfo, propertyId: null === (c2 = null == e3 ? void 0 : e3.expressionPropDef) || void 0 === c2 ? void 0 : c2.id, suggestions: n3.suggestions, isCodeParserGenericItem: a2, preventsJsonStandardModeSwitch: s2 }; + S2[m2] = I2, this.logMessage(() => `Parse Result: ${I2.severity} - ${I2.message}`); + } + _pushParseItem(e3, t3) { + if (this._checkCanAddNewParseItem(t3, e3.node)) return this._stack.push(e3), this.logMessage(() => `Pushed Item - Stack Depth: ${this._stack.length}, ${this._parseItemStr(e3)}`), this.isParseItemObjectOrArray(e3) && (this._currentObjectOrArray = e3), e3; + } + _parseItemStr(e3) { + return `Item: ${e3.mode} - ${this._getNodeText(e3.node)}`; + } + _updateLastAssignedForNode(e3) { + if (!this._currentObjectOrArray) return; + this._currentObjectOrArray.lastAssigned = { text: this._getNodeText(e3), from: e3.from, to: e3.to }; + const t3 = this._currentObjectOrArray.lastAssigned; + switch (e3.type.name) { + case s.CodeArchitectJsonParserToken.ArchitectExpressionContent: + for (; "}" !== this._sourceText[t3.to] && "}" !== this._sourceText[t3.to + 1] && t3.to < this._sourceText.length; ) t3.to = t3.to + 1; + for (t3.to = t3.to + 2; "{" !== this._sourceText[t3.from - 1] && "{" !== this._sourceText[t3.from] && t3.from >= 0; ) t3.from = t3.from - 1; + t3.from = t3.from - 2; + break; + case s.CodeArchitectJsonParserToken.ArchitectLiteralContent: + for (; "]" !== this._sourceText[t3.to] && "]" !== this._sourceText[t3.to + 1] && t3.to < this._sourceText.length; ) t3.to = t3.to + 1; + for (t3.to = t3.to + 2; "[" !== this._sourceText[t3.from - 1] && "[" !== this._sourceText[t3.from] && t3.from >= 0; ) t3.from = t3.from - 1; + t3.from = t3.from - 2; + } + } + _checkCanAddNewParseItem(e3, t3) { + return !(this._parseResult.items.length > 0 && !this._stack.length && (this.addParseResultItem(e3, t3, A.ParseResultTypes.error, u.CodeParseItemMessage.createExtraValue()), 1)); + } + _checkCanPopParseItem() { + return this._stack.length > 0; + } + _checkNotAlreadyDone(e3) { + const t3 = this.currentParseItem; + if (!this.isParseItemComplete(t3)) return t3; + this.addParseResultItem(t3, e3, A.ParseResultTypes.error, u.CodeParseItemMessage.createTokenUnexpectedAfterValue(this._getNodeText(e3)), null, null, null, this._parseForUiOnly); + } + _checkType(e3, t3, i3) { + var n3, r3; + switch (e3.mode) { + case E.root: + case E.array: + if (!this._checkTypeCompatibility(e3, t3, i3, null === (n3 = e3.type) || void 0 === n3 ? void 0 : n3.singletonType)) return false; + break; + case E.objectPropertyValue: + if (!this._checkTypeCompatibility(e3, t3, i3, (null === (r3 = null == e3 ? void 0 : e3.expressionPropDef) || void 0 === r3 ? void 0 : r3.type) || I.json)) return false; + } + } + _checkTypeCompatibility(e3, t3, i3, n3) { + return !!(i3.isMatch(n3) || i3.isMatch(I.json) && n3.supportsLiteralCustomJsonInput) || (this.addParseResultItem(e3, t3, A.ParseResultTypes.error, u.CodeParseItemMessage.createTypesIncompatible(i3.displayString, null == n3 ? void 0 : n3.displayString), null, null, null, this._parseForUiOnly), false); + } + _getIncompatibleTypeAssignmentSuggestions(e3, t3, i3) { + const n3 = []; + if (this._languageCharacteristics.supportsArchitectExpressions) { + const r3 = null == e3 ? void 0 : e3.getDefaultImplicitConversionFunc(t3); + (null == r3 ? void 0 : r3.text) && n3.push((0, g.createSuggestion)(d.CodeSuggestionType.convert, c.CodeSuggestionWhatToDo.replaceText, (0, N.sprintf)(v.codeEditor.types.typeCanBeConverted, t3.displayString, e3.displayString, null == r3 ? void 0 : r3.text), void 0, `{{${null == r3 ? void 0 : r3.text}(${i3})}}`)); + } + return n3; + } + _popContainerFromStack(e3, t3) { + return !!this._popParseItem(t3) && (e3 = this.currentParseItem, !this.isParseItemObjectPropertyValue(e3) || !!this._popParseItem(t3)); + } + _popParseItem(e3) { + var t3; + if (this._checkCanPopParseItem()) { + const i3 = this._stack.pop(); + if (this.logMessage(() => `Popped Item - Stack Depth: ${this._stack.length}, ${this._parseItemStr(i3)}`), this.isParseItemObjectOrArray(i3)) { + (null === (t3 = this._currentObjectOrArray) || void 0 === t3 ? void 0 : t3.hasSeparator) && this.addParseResultItem(i3, e3, A.ParseResultTypes.error, u.CodeParseItemMessage.createUnnecessarySeparator(this._languageCharacteristics.itemSeparator).addSuggestion((0, h.createFixRemoveUnnecessarySeparator)(this._languageCharacteristics.itemSeparator)), this._currentObjectOrArray.lastAssigned.to, this._currentObjectOrArray.lastAssigned.to), this._currentObjectOrArray = void 0; + for (let e4 = this._stack.length - 1; e4 >= 0; e4--) { + const t4 = this._stack[e4]; + if (this.isParseItemObjectOrArray(t4)) { + this._currentObjectOrArray = t4; + break; + } + } + this._currentObjectOrArray && (this._currentObjectOrArray.hasSeparator = false), this._updateLastAssignedForNode(e3); + } + return 0 === this._stack.length && (this._rootParseItem.mode = E.complete), i3; + } + this._rootParseItem.mode === E.root && (this._rootParseItem.mode = E.complete); + } + addAssignArchitectExpr(e3, t3) { + return this._assignArchitectValue(e3, t3, R.archExpression); + } + addAssignArchitectLiteral(e3, t3) { + return this._assignArchitectValue(e3, t3, R.archLiteral); + } + addPropertyAssignment(e3, t3) { + var i3, n3; + const r3 = this._checkNotAlreadyDone(e3); + if (!r3) return false; + if (r3.mode !== E.object) return this.addParseResultItem(r3, e3, A.ParseResultTypes.error, u.CodeParseItemMessage.createInvalidTypeValue(null === (i3 = r3.type) || void 0 === i3 ? void 0 : i3.displayString).addWhat(v.codeEditor.properties.propertyCannotBeAddedToNonObject)), false; + if (this._checkForMissingSeparator(r3, e3), null == t3 ? void 0 : t3.length) if (void 0 !== r3.configVal.json[t3]) this.addParseResultItem(r3, e3, A.ParseResultTypes.error, u.CodeParseItemMessage.createDuplicateProperty(t3)); + else { + let i4; + r3.configVal.json[t3] = { __placeHolder: true }; + const n4 = r3.type.getPropertyDefinition(t3); + n4 ? i4 = this.parseItemIsRawJson(r3) ? I.json : n4.type : (i4 = I.json, r3.type.additionalProperties || this.addParseResultItem(r3, e3, A.ParseResultTypes.error, u.CodeParseItemMessage.createPropertyNotValidForType(t3, r3.type.displayString))), (null == n4 ? void 0 : n4.isReadOnly) && this.addParseResultItem(r3, e3, A.ParseResultTypes.error, u.CodeParseItemMessage.createPropertyIsReadOnly(t3)), this._pushParseItem({ mode: E.objectPropertyValue, propertyName: t3, expressionPropDef: n4, lineInfo: this.getLineAndCharPosForPosition(e3.from), node: r3.node, nodeFrom: r3.nodeFrom, nodeTo: r3.nodeTo, expression: void 0, type: i4, configVal: r3.configVal, propertyValuePrefixSeparatorAdded: !this._propertyValuesRequirePrefixSeparator() }, r3); + } + else this.addParseResultItem(r3, e3, A.ParseResultTypes.error, u.CodeParseItemMessage.createInvalidTypeValue(null === (n3 = r3.type) || void 0 === n3 ? void 0 : n3.displayString).addWhat(v.codeEditor.properties.propertyNamesCannotBeBlank)); + } + addPropertyValueSeparator(e3, t3) { + const i3 = this._checkNotAlreadyDone(e3); + return !(!i3 || !this.isParseItemObjectPropertyValue(i3) || t3 !== this._languageCharacteristics.objectPropertyNameValueSeparator || (i3.propertyValuePrefixSeparatorAdded = true, 0)); + } + addArrayItemStartSeparator(e3, t3) { + const i3 = this._checkNotAlreadyDone(e3); + return !(!i3 || !this.isParseItemArray(i3) || t3 !== this._languageCharacteristics.arrayItemPrefixSeparator || (i3.arrayItemPrefixSeparatorAdded = true, 0)); + } + assignValueBoolean(e3, t3) { + return this._assignScalarValue(e3, R.boolean, t3); + } + assignValueNull(e3) { + return this._assignScalarValue(e3, R.null); + } + assignValueNumber(e3, t3) { + return this._assignScalarValue(e3, R.number, t3 || this._sourceText.substring(e3.from, e3.to)); + } + assignValueString(e3, t3) { + return this._assignScalarValue(e3, R.string, void 0 !== t3 ? t3 : this._sourceText.substring(e3.from, e3.to)); + } + assignScalarValue(e3, t3, i3) { + const n3 = void 0 !== t3 ? t3 : this._sourceText.substring(e3.from, e3.to); + if (!i3) switch (this._language) { + case l.CodeLanguage.yaml: + case l.CodeLanguage.architectYaml: + switch (n3) { + case f.default.true: + return this._assignScalarValue(e3, R.boolean, true); + case f.default.false: + return this._assignScalarValue(e3, R.boolean, false); + case "null": + return this._assignScalarValue(e3, R.null); + default: + if (n3.length >= 2 && '"' === n3[0] && '"' === n3[n3.length - 1]) this._assignScalarValue(e3, R.string, n3.substring(1, n3.length - 1)); + else { + const t4 = this._getNumberFromStr(n3, e3, this.currentParseItem, 0, true, true, void 0, false, void 0, void 0, true); + if (void 0 !== (null == t4 ? void 0 : t4.numValAsStr)) return this._assignScalarValue(e3, R.number, n3); + } + } + } + return this._assignScalarValue(e3, R.string, n3); + } + popArray(e3) { + var t3, i3, n3, o2, a2, l2, d2, c2, p2, _2; + const h2 = this._checkNotAlreadyDone(e3); + return !!h2 && (h2.mode !== E.array && this.addParseResultItem(h2, e3, A.ParseResultTypes.error, u.CodeParseItemMessage.createTokenUnexpected(s.CodeArchitectJsonParserToken.ArrayEnd), null, null, null, this._parseForUiOnly), this.logMessage(() => "checking max / max items"), r2.default.isActualNumber(null === (t3 = h2.expressionPropDef) || void 0 === t3 ? void 0 : t3.minItems) && r2.default.isArray(h2.configVal.json) && h2.configVal.json.length < (null === (i3 = h2.expressionPropDef) || void 0 === i3 ? void 0 : i3.minItems) && this.addParseResultItem(h2, e3, A.ParseResultTypes.error, u.CodeParseItemMessage.createArrayLengthTooSmall(h2.configVal.json.length, null === (n3 = h2.expressionPropDef) || void 0 === n3 ? void 0 : n3.minItems, null === (o2 = h2.expressionPropDef) || void 0 === o2 ? void 0 : o2.maxItems).setFacetInfo({ facet: S.jsonParseItemFacet.propFacetMaxItems, facetOutOfBoundsValue: h2.configVal.json.length, facetValue: null === (a2 = h2.expressionPropDef) || void 0 === a2 ? void 0 : a2.maxItems })), r2.default.isActualNumber(null === (l2 = h2.expressionPropDef) || void 0 === l2 ? void 0 : l2.maxItems) && r2.default.isArray(h2.configVal.json) && h2.configVal.json.length > (null === (d2 = h2.expressionPropDef) || void 0 === d2 ? void 0 : d2.maxItems) && this.addParseResultItem(h2, e3, A.ParseResultTypes.error, u.CodeParseItemMessage.createArrayLengthTooBig(h2.configVal.json.length, null === (c2 = h2.expressionPropDef) || void 0 === c2 ? void 0 : c2.minItems, null === (p2 = h2.expressionPropDef) || void 0 === p2 ? void 0 : p2.maxItems).setFacetInfo({ facet: S.jsonParseItemFacet.propFacetMaxItems, facetOutOfBoundsValue: h2.configVal.json.length, facetValue: null === (_2 = h2.expressionPropDef) || void 0 === _2 ? void 0 : _2.maxItems })), this._popContainerFromStack(h2, e3)); + } + popObject(e3) { + var t3, i3; + const n3 = this._checkNotAlreadyDone(e3); + if (!n3) return false; + n3.mode !== E.object && this.addParseResultItem(n3, e3, A.ParseResultTypes.error, u.CodeParseItemMessage.createTokenUnexpected(this._getNodeText(e3)), null, null, null, this._parseForUiOnly), this.logMessage(() => "checking missing properties"); + const o2 = [], a2 = null === (t3 = n3.type) || void 0 === t3 ? void 0 : t3.properties; + if (r2.default.each(a2, (e4) => { + var t4; + e4.isRequired && r2.default.isUndefined(n3.configVal.json[e4.name]) && !(null === (t4 = n3.expression) || void 0 === t4 ? void 0 : t4.options.canIgnoreRequired) && o2.push(e4.id); + }), null == o2 ? void 0 : o2.length) { + const t4 = []; + r2.default.each(a2, (e4) => { + t4.push(e4.id); + }), this.addParseResultItem(n3, e3, A.ParseResultTypes.error, u.CodeParseItemMessage.createRequiredPropertiesMissing(t4, o2, null === (i3 = n3.type) || void 0 === i3 ? void 0 : i3.displayString).setFacetInfo({ facet: S.jsonParseItemFacet.propFacetRequiredProperties, facetOutOfBoundsValue: o2, facetValue: t4 })); + } + return this._popContainerFromStack(n3, e3); + } + pushArray(e3) { + var t3, i3; + const n3 = this._checkNotAlreadyDone(e3); + if (!n3) return false; + if (this._checkType(n3, e3, this.parseItemIsRawJson(n3) ? I.json : null === (t3 = n3.type) || void 0 === t3 ? void 0 : t3.collectionType)) return false; + const r3 = []; + switch (n3.mode) { + case E.root: + n3.configVal.json = r3; + break; + case E.objectPropertyValue: + n3.configVal.json[n3.propertyName] = r3; + break; + case E.array: + n3.configVal.json.push(r3); + break; + default: + this.addParseResultItem(n3, n3.node, A.ParseResultTypes.error, u.CodeParseItemMessage.createTokenUnexpected(this._getNodeText(e3)), null, null, null, this._parseForUiOnly); + } + return this._pushParseItem({ mode: E.array, node: e3, lineInfo: this.getLineAndCharPosForPosition(e3.from), nodeFrom: e3.from, nodeTo: e3.to, configVal: { json: r3, exprs: n3.configVal.exprs }, type: null === (i3 = n3.type) || void 0 === i3 ? void 0 : i3.singletonType, expression: n3.expression, expressionPropDef: n3.expressionPropDef, arrayItemPrefixSeparatorAdded: !this._languageCharacteristics.arrayItemPrefixSeparator }, n3), true; + } + pushObject(e3) { + var t3, i3; + const n3 = this._checkNotAlreadyDone(e3); + if (!n3) return false; + if (this._checkType(n3, e3, I.json)) return false; + const r3 = {}; + switch (n3.mode) { + case E.root: + n3.configVal.json = r3; + break; + case E.objectPropertyValue: + (null === (t3 = n3.expressionPropDef) || void 0 === t3 ? void 0 : t3.id) === C ? n3.configVal.json[n3.propertyName] = r3 : n3.configVal.json[null === (i3 = n3.expressionPropDef) || void 0 === i3 ? void 0 : i3.id] = r3; + break; + case E.array: + n3.configVal.json.push(r3); + break; + default: + this.addParseResultItem(n3, n3.node, A.ParseResultTypes.error, u.CodeParseItemMessage.createTokenUnexpected(this._getNodeText(e3)), null, null, null, this._parseForUiOnly); + } + const o2 = this._language === l.CodeLanguage.architectYaml ? (0, y.getIndentPositionForNode)(this._sourceText, e3.from, e3.to) : e3.from; + return this._pushParseItem({ lineInfo: this.getLineAndCharPosForPosition(o2), mode: E.object, node: e3, nodeFrom: e3.from, nodeTo: e3.to, configVal: { json: r3, exprs: n3.configVal.exprs }, type: n3.type, expression: n3.expression, expressionPropDef: n3.expressionPropDef }, n3), true; + } + logMessage(e3) { + this._loggingEnabled && console.log(e3()); + } + _unwindLastStackParseItem() { + var e3; + const t3 = this._stack[this._stack.length - 1]; + if (!t3) return false; + switch (null === (e3 = this.currentParseItem) || void 0 === e3 ? void 0 : e3.mode) { + case E.array: + return this.popArray(t3.node); + case E.object: + return this.popObject(t3.node); + case E.objectPropertyValue: + return this._popValueAssignment(t3, t3.node); + default: + return false; + } + } + _unwindToIndex(e3) { + let t3 = false; + for (; this._stack.length - 1 > e3 && (t3 = this._unwindLastStackParseItem(), t3); ) ; + return t3; + } + _unwindToParseItemWithMode(e3, t3) { + let i3, n3; + for (i3 = this._stack.length - 1; i3 >= 0 && (n3 = this._stack[i3], n3.mode !== e3[0] && n3.mode !== e3[1] || !(void 0 === t3 || n3.lineInfo.charPos <= t3)); i3--) ; + if (i3 >= 0 && i3 !== this._stack.length - 1 && this._unwindToIndex(i3)) return this._stack[i3]; + } + unwindToArray(e3) { + return this._unwindToParseItemWithMode([E.array], e3); + } + unwindToArrayOrObject(e3) { + return this._unwindToParseItemWithMode([E.array, E.object], e3); + } + unwindToObject(e3) { + return this._unwindToParseItemWithMode([E.object], e3); + } + unwindEntireStack() { + let e3 = true; + for (; this._stack.length > 0 && e3; ) e3 = !!this._unwindLastStackParseItem(); + return e3; + } + parseComplete(e3) { + var t3; + this.unwindEntireStack(); + const i3 = this.currentParseItem; + let n3; + return e3 || this.isParseItemComplete(i3) ? n3 = true : (this.addParseResultItem(i3, i3.node, A.ParseResultTypes.error, u.CodeParseItemMessage.createValueIncomplete(null === (t3 = this._rootParseItem.type) || void 0 === t3 ? void 0 : t3.displayString), i3.nodeTo || 0, i3.nodeTo || 0), n3 = false), r2.default.each(this._parseResult.itemsByLinePosMap, (e4) => { + r2.default.each(e4, (e5) => { + r2.default.each(e5, (e6) => { + switch (this._parseResult.items.push(e6), e6.resultType) { + case A.ParseResultTypes.error: + this._parseResult.errorItems.push(e6); + break; + case A.ParseResultTypes.warn: + this._parseResult.warningItems.push(e6); + break; + case A.ParseResultTypes.info: + this._parseResult.infoItems.push(e6); + } + }); + }); + }), this._parseResult.dependencies = this._rootParseItem.dependencies, this.logMessage(() => `json config: +${JSON.stringify(i3.configVal, null, 2)}`), n3; + } + _createExpression(e3, t3, i3) { + return o.expression(this._rootExpression.parentFlow, this._rootExpression.parent, null, e3 || "", t3 || I.json, e3 || "", a.buildOptions(t3 || I.json).setIsOptional(!i3), true); + } + _assignArchitectValue(e3, t3, i3) { + var n3, o2; + const a2 = this._checkNotAlreadyDone(e3); + if (!a2) return false; + if (!this._checkValueAssignment(a2, e3)) return false; + let s2; + try { + switch (s2 = this._createExpression(a2.propertyName, a2.type, null === (n3 = a2.expressionPropDef) || void 0 === n3 ? void 0 : n3.isRequired), i3) { + case R.archExpression: + if (s2) { + this._rootExpression.options.allowEmbeddedExpressionsInLiteralMode || this.addParseResultItem(a2, e3, A.ParseResultTypes.error, u.CodeParseItemMessage.createArchitectExpressionUsageUnavailable(!!(null === (o2 = this._rootExpression.parent) || void 0 === o2 ? void 0 : o2.isVariableViewModel))), s2.setAsExpression(t3, true); + const i5 = s2._parseResult; + if (null == i5 ? void 0 : i5.resultType) { + let t4; + switch (r2.default.isNumber(i5.resultPosition) && -1 !== i5.resultPosition && (t4 = i5.resultPosition + e3.from + 1, r2.default.isString(i5.resultMessage) && (i5.resultMessage = i5.resultMessage.replace((i5.resultPosition + 1).toString(), t4.toString()))), i5.resultType) { + case A.ParseResultTypes.warn: + this.addParseResultItem(a2, e3, A.ParseResultTypes.warn, u.CodeParseItemMessage.createArchitectExpressionInfo(i5.resultMessage).addSuggestions(i5.fixes), t4, t4); + break; + case A.ParseResultTypes.info: + this.addParseResultItem(a2, e3, A.ParseResultTypes.info, u.CodeParseItemMessage.createArchitectExpressionInfo(i5.resultMessage).addSuggestions(i5.fixes), t4, t4); + break; + case A.ParseResultTypes.error: + default: + this.addParseResultItem(a2, e3, A.ParseResultTypes.error, u.CodeParseItemMessage.createArchitectExpressionInfo(i5.resultMessage).addSuggestions(i5.fixes), t4, t4, null, i5.preventsJsonStandardModeSwitch); + } + } + } + break; + case R.archLiteral: + const i4 = a2.type.listManager; + if (i4) { + const n4 = null == t3 ? void 0 : t3.trim(), r3 = (e4) => { + s2.updateFromConfigListManagerItem(e4); + let t4 = this._rootParseItem.dependencies[i4.dependencyType.value]; + t4 || (t4 = {}, this._rootParseItem.dependencies[i4.dependencyType.value] = t4), t4[e4.id] = { name: e4.name }; + }, o3 = () => { + this.addParseResultItem(a2, e3, A.ParseResultTypes.error, u.CodeParseItemMessage.createArchitectLiteralInfo((0, N.sprintf)(v.codeEditor.types.typeNotFoundError, a2.type.displayString, n4)).setFacetInfo({ facet: S.jsonParseItemFacet.propFacetReferencedObjectNotFound, facetOutOfBoundsValue: n4 }), null, null, null, this._parseForUiOnly); + }; + if (!(null === global || void 0 === global ? void 0 : global.window)) { + i4.findOrFetchItemByName(n4).then((e4) => { + r3(e4), this._setJsonValExpressionRef(a2, s2); + }).catch((e4) => { + throw o3(), (0, N.sprintf)(v.codeEditor.types.typeNotFoundError, a2.type.displayString, n4); + }); + break; + } + { + const e4 = i4.findItemByName(n4); + e4 ? r3(e4) : o3(); + } + } else { + const t4 = (0, N.sprintf)(v.codeEditor.types.typeDoesNotSupportLiteralDropdownError, a2.type.displayString), i5 = (0, N.sprintf)(v.generic.joinTwoSentences, t4, v.codeEditor.types.typeDoesNotSupportLiteralDropdownAddendum), n4 = a2.type.isJsonType && !a2.type.isCustomType; + this.addParseResultItem(a2, e3, A.ParseResultTypes.error, u.CodeParseItemMessage.createArchitectLiteralInfo(n4 ? i5 : t4)); + } + } + this._setJsonValExpressionRef(a2, s2); + } finally { + null == s2 || s2.destroy(); + } + return this._popValueAssignment(a2, e3); + } + _popValueAssignment(e3, t3) { + let i3 = true; + switch (e3.mode) { + case E.array: + break; + case E.objectPropertyValue: + i3 = !!this._popParseItem(t3); + break; + case E.root: + e3.mode = E.complete; + } + return this._updateLastAssignedForNode(t3), this._currentObjectOrArray && (this._currentObjectOrArray.hasSeparator = false), i3; + } + _setJsonValExpressionRef(e3, t3) { + const i3 = { __isArchExpr: true, expressionId: t3.id }; + if (void 0 === e3.configVal.json) e3.configVal.json = i3; + else switch (e3.mode) { + case E.array: + e3.configVal.json.push(i3); + break; + case E.objectPropertyValue: { + const n3 = e3.configVal.json[e3.propertyName]; + r2.default.isArray(n3) ? n3.push(i3) : e3.configVal.json[e3.propertyName || t3.id] = i3; + break; + } + } + e3.configVal.exprs[t3.id] = { propertiesBucketName: e3.propertyName, expression: (null == t3 ? void 0 : t3.model) ? r2.default.deepClone(t3.model) : void 0 }; + } + addSeparator(e3) { + const t3 = this._checkNotAlreadyDone(e3); + return !!t3 && (this._currentObjectOrArray && this._currentObjectOrArray.lastAssigned && !this._currentObjectOrArray.hasSeparator ? void (this._currentObjectOrArray.hasSeparator = true) : (this.addParseResultItem(t3, e3, A.ParseResultTypes.error, u.CodeParseItemMessage.createUnnecessarySeparator(this._getNodeText(e3)).addSuggestion((0, h.createFixRemoveUnnecessarySeparator)(this._languageCharacteristics.itemSeparator))), false)); + } + _checkForMissingSeparator(e3, t3) { + var i3, n3, o2, a2, s2; + this._languageCharacteristics.itemSeparator && ((null === (i3 = this._currentObjectOrArray) || void 0 === i3 ? void 0 : i3.hasSeparator) || r2.default.isEmpty(this._currentObjectOrArray.configVal.json) ? this._currentObjectOrArray.hasSeparator = false : this.addParseResultItem(e3, t3, A.ParseResultTypes.warn, u.CodeParseItemMessage.createTokenMissing(this._languageCharacteristics.itemSeparator).addSuggestion((0, _.createFixAddMissingSeparator)(this._languageCharacteristics.itemSeparator)), null === (o2 = null === (n3 = this._currentObjectOrArray) || void 0 === n3 ? void 0 : n3.lastAssigned) || void 0 === o2 ? void 0 : o2.to, null === (s2 = null === (a2 = this._currentObjectOrArray) || void 0 === a2 ? void 0 : a2.lastAssigned) || void 0 === s2 ? void 0 : s2.to)); + } + parseItemIsRawJson(e3) { + return e3 && e3.type.isJsonType && !e3.type.isCustomType; + } + wantZeroPaddedNumericValueForPart(e3, t3, i3, n3, r3, o2, a2, s2, l2, d2, c2) { + const p2 = (null == e3 ? void 0 : e3.length) || 0; + if (r3 >= p2) { + const e4 = l2(); + return void this.addParseResultItem(i3, t3, A.ParseResultTypes.error, u.CodeParseItemMessage.createInvalidTypeValue(n3).addWhat(e4.message).addSuggestions(e4.suggestions), t3.from + r3 + 1, t3.from + r3 + 1); + } + let _2; + for (_2 = r3; _2 < r3 + o2 && e3[_2] >= "0" && e3[_2] <= "9"; _2++) ; + const h2 = parseInt(e3.substring(r3, r3 + _2)); + if (_2 !== r3 + o2) { + if (h2 >= s2 && h2 <= s2 && _2 === p2) { + const e4 = c2(); + let l3 = h2.toString(); + for (; l3.length < o2; ) l3 = "0" + l3; + return void this.addParseResultItem(i3, t3, A.ParseResultTypes.error, u.CodeParseItemMessage.createValueIncomplete(n3).addWhat(e4.message).addFacetsMinMax(a2, s2).addSuggestion((0, m.createFixReplaceText)(l3, l3, `Update '${h2}' to '${l3}'.`)), t3.from + r3 + 1, t3.from + r3 + o2); + } + { + const e4 = c2(); + return void this.addParseResultItem(i3, t3, A.ParseResultTypes.error, u.CodeParseItemMessage.createValueIncomplete(n3).addWhat(e4.message).addFacetsMinMax(a2, s2), t3.from + r3 + 1, t3.from + r3 + o2); + } + } + if (h2 < a2 || h2 > s2) { + const e4 = d2(); + return void (h2 > s2 ? this.addParseResultItem(i3, t3, A.ParseResultTypes.error, u.CodeParseItemMessage.createValueTooBig(h2, a2, true, s2, true).addWhat(e4.message).addSuggestions(e4.suggestions), t3.from + r3 + 1, t3.from + r3 + o2 + 1) : this.addParseResultItem(i3, t3, A.ParseResultTypes.error, u.CodeParseItemMessage.createValueTooSmall(h2, a2, true, s2, true).addWhat(e4.message).addSuggestions(e4.suggestions), t3.from + r3 + 1, t3.from + r3 + o2 + 1)); + } + return h2; + } + _getNumberFromStr(e3, t3, i3, n3, r3, o2, a2, s2, l2, d2, c2) { + let p2, _2, h2, m2, g2, T2 = n3; + for ("-" === e3[T2] && (T2++, p2 = true); e3[T2] >= "0" && e3[T2] <= "9"; ) e3[T2] >= "1" && isNaN(g2) ? g2 = 1 : g2++, T2++; + if (o2 && "." === e3[T2]) { + h2 = T2, m2 = 0, _2 = true; + let r4 = e3[T2 + m2 + 1]; + for (; r4 >= "0" && r4 <= "9"; ) m2++, r4 >= "1" && isNaN(g2) ? g2 = 1 : g2++, r4 = e3[T2 + m2 + 1]; + if (void 0 !== l2 && m2 > l2) return void this.addParseResultItem(i3, t3, A.ParseResultTypes.error, u.CodeParseItemMessage.createTokenInvalid(e3.substring(n3, T2 + m2 + 1)).addWhat(v.codeEditor.parseErrors.tokens.tooManyDecimalPlaces, [m2.toString(), l2.toString()]), t3.from + n3 + 1, t3.from + T2 + m2 + 1); + T2 = T2 + m2 + 1; + } + if (n3 === T2) return void (c2 || this.addParseResultItem(i3, t3, A.ParseResultTypes.error, u.CodeParseItemMessage.createMissingValue("Missing number.").addWhat(a2), t3.from + n3 + 1, t3.from + T2 + 1)); + if (!s2 && void 0 !== e3[T2]) return void (c2 || this.addParseResultItem(i3, t3, A.ParseResultTypes.error, u.CodeParseItemMessage.createTokenInvalid(e3[T2]).addWhat(v.codeEditor.parseErrors.invalidNumericCharacter).addWhat(a2), t3.from + T2 + 1, t3.from + T2 + 2)); + const y2 = e3.substring(n3, T2); + if ((_2 || d2) && g2 > f.default.maxPrecision) return void this.addParseResultItem(i3, t3, A.ParseResultTypes.error, u.CodeParseItemMessage.createTokenInvalid(y2, I.decimal.displayString).addWhat(v.codeEditor.types.codeEditorValueTooPrecise).addWhat(v.codeEditor.types.decimalValueSignificantDigits, [null == g2 ? void 0 : g2.toString()]).addFacetsMinMax(void 0, f.default.maxPrecision), t3.from + n3, t3.to + 1); + const S2 = _2 ? parseFloat(y2) : parseInt(e3.substring(n3, T2), 10); + if (isNaN(S2)) c2 || this.addParseResultItem(i3, t3, A.ParseResultTypes.error, u.CodeParseItemMessage.createTokenInvalid(y2).addWhat(v.codeEditor.parseErrors.invalidNumber).addWhat(a2), t3.from + n3 + 1, t3.from + n3 + y2.length + 1); + else if (o2 || !_2) { + if (r3 || _2) return _2 || d2 || ((p2 ? y2.substring(1) : y2).length > f.default.maxIntAsStr.length || y2 > f.default.maxIntAsStr) && (p2 ? this.addParseResultItem(i3, t3, A.ParseResultTypes.error, u.CodeParseItemMessage.createValueStrTooSmall(y2, f.default.minInt, true, f.default.maxInt, true), t3.from + n3, t3.from + n3 + y2.length + 1) : this.addParseResultItem(i3, t3, A.ParseResultTypes.error, u.CodeParseItemMessage.createValueStrTooBig(y2, f.default.minInt, true, f.default.maxInt, true), t3.from + n3, t3.from + n3 + y2.length + 1)), { isDecimal: _2, decimalSeparatorPos: h2, nextCharPos: T2, numVal: S2, numValEqualsStrVal: (null == S2 ? void 0 : S2.toString()) === e3.substring(n3, T2), numValAsStr: e3.substring(n3, T2) }; + this.addParseResultItem(i3, t3, A.ParseResultTypes.error, u.CodeParseItemMessage.createTokenInvalid(y2, I.integer.displayString).addWhat(v.codeEditor.types.integerCannotBeUsedHere).addWhat(a2), t3.from + n3 + 1, t3.to + 1); + } else this.addParseResultItem(i3, t3, A.ParseResultTypes.error, u.CodeParseItemMessage.createTokenInvalid(y2, I.decimal.displayString).addWhat(v.codeEditor.types.decimalCannotBeUsedHere).addWhat(a2), t3.from + n3 + 1, t3.from + n3 + y2.length + 1); + } + _checkDurationStr(e3, t3, i3) { + const n3 = "-" === e3[0]; + let o2 = n3 ? 1 : 0; + if (!this._checkSeparator(e3, i3, t3, "P", o2, () => u.CodeParseItemMessage.createTokenMissing("P", I.duration.displayString).addWhat(v.codeEditor.types.durationXsdFormat))) return false; + o2++; + const a2 = {}; + let s2, l2 = 0; + const d2 = e3.length; + for (; o2 < d2; ) if ("T" === e3[o2]) { + if (s2) return this.addParseResultItem(t3, i3, A.ParseResultTypes.error, u.CodeParseItemMessage.createTokenDuplicate("T", I.duration.displayString).addWhat(v.codeEditor.types.durationXsdFormat), i3.from + o2 + 1, i3.from + o2 + 2), false; + s2 = true, o2++; + } else { + const n4 = this._getNumberFromStr(e3, i3, t3, o2, true, true, v.codeEditor.types.durationXsdFormat, true, 3); + if (!n4) return false; + o2 = n4.nextCharPos; + const r3 = e3[o2]; + let d3, c2; + switch (r3) { + case "D": + c2 = true, d3 = f.default.msPerDay; + break; + case "H": + d3 = f.default.msPerHour; + break; + case "M": + d3 = f.default.msPerMinute; + break; + case "S": + d3 = f.default.msPerSecond; + break; + default: + return void 0 !== r3 ? this.addParseResultItem(t3, i3, A.ParseResultTypes.error, u.CodeParseItemMessage.createTokenInvalid(r3, I.duration.displayString).addWhat(v.codeEditor.types.durationXsdFormat), i3.from + o2 + 1, i3.from + o2 + 1) : this.addParseResultItem(t3, i3, A.ParseResultTypes.error, u.CodeParseItemMessage.createInvalidTypeValue(I.duration.displayString).addWhat(v.codeEditor.types.durationMustSpecifyDHMS).addWhat(v.codeEditor.types.durationXsdFormat), i3.from + o2 + 1, i3.from + o2 + 1), false; + } + if ("S" !== r3 && n4.isDecimal) return this.addParseResultItem(t3, i3, A.ParseResultTypes.error, u.CodeParseItemMessage.createTypesIncompatible(I.decimal.displayString, I.integer.displayString).addWhat(v.codeEditor.types.durationOnlySecondsCanBeDecimal).addWhat(v.codeEditor.types.durationXsdFormat), i3.from + o2 + 1, i3.from + n4.nextCharPos), false; + if (a2[r3]) return this.addParseResultItem(t3, i3, A.ParseResultTypes.error, u.CodeParseItemMessage.createTokenDuplicate(r3, I.duration.displayString).addWhat(v.codeEditor.types.durationXsdFormat), i3.from + o2 + 1, i3.from + o2 + 2), false; + if (a2[r3] = true, o2++, d3) { + if (c2 && s2) return this.addParseResultItem(t3, i3, A.ParseResultTypes.error, u.CodeParseItemMessage.createTokenInvalid(r3).addWhat(v.codeEditor.parseErrors.tokens.invalidTokenOrderMustPrecede, [r3, "T"]).addWhat(v.codeEditor.types.durationXsdFormat), i3.from + o2 + 1, i3.from + o2 + 2), false; + if (!c2 && !s2) return this.addParseResultItem(t3, i3, A.ParseResultTypes.error, u.CodeParseItemMessage.createTokenInvalid(r3).addWhat(v.codeEditor.parseErrors.tokens.invalidTokenOrderMustFollow, [r3, "T"]).addWhat(v.codeEditor.types.durationXsdFormat), i3.from + o2 + 1, i3.from + o2 + 2), false; + void 0 === n4.numVal || isNaN(n4.numVal) || (l2 += n4.numVal * f.default.msPerDay); + } + } + return n3 && (l2 *= -1), l2 > f.default.maxDurationMs ? (this.addParseResultItem(t3, i3, A.ParseResultTypes.error, u.CodeParseItemMessage.createValueTooBig().addWhat(v.codeEditor.types.durationMaxValue)), false) : l2 < f.default.minDurationMs ? (this.addParseResultItem(t3, i3, A.ParseResultTypes.error, u.CodeParseItemMessage.createValueTooSmall().addWhat(v.codeEditor.types.durationMinValue)), false) : !r2.default.isEmpty(a2) || (this.addParseResultItem(t3, i3, A.ParseResultTypes.error, u.CodeParseItemMessage.createValueIncomplete(I.duration.displayString).addWhat(v.codeEditor.types.durationMustSpecifyMinimum).addWhat(v.codeEditor.types.durationXsdFormat)), false); + } + _checkDateStr(e3, t3, i3, n3) { + const o2 = n3 ? I.dateTime.displayString : I.date.displayString, a2 = this.wantZeroPaddedNumericValueForPart(e3, i3, t3, o2, 0, 4, f.default.minDateYear, f.default.maxDateYear, () => { + const e4 = (/* @__PURE__ */ new Date()).toISOString().substring(0, 19) + ".000"; + if (n3) return { message: (0, N.sprintf)(v.codeEditor.types.valueMustBeInGivenFormat, o2, f.default.dateTimeFormat), suggestions: [(0, m.createFixReplaceText)((0, N.sprintf)(v.codeEditor.suggestions.replaceWith, e4), e4, v.codeEditor.types.dateTimeSupplyCurrent)] }; + { + const t4 = e4.substring(0, 11); + return { message: (0, N.sprintf)(v.codeEditor.types.valueMustBeInGivenFormat, o2, f.default.dateTimeFormat), suggestions: [(0, m.createFixReplaceText)((0, N.sprintf)(v.codeEditor.suggestions.replaceWith, t4), t4, v.codeEditor.types.dateSupplyCurrent)] }; + } + }, () => ({ message: (0, N.sprintf)(v.codeEditor.types.timeOutOfBounds, v.codeEditor.units.yearUnitLabel) }), () => ({ message: (0, N.sprintf)(v.codeEditor.types.timeUnitNeedsDigitValue, v.codeEditor.units.yearUnitLabel, b.year.toString()) })); + if (!r2.default.isActualNumber(a2)) return false; + if (!this._checkSeparator(e3, i3, t3, "-", 4, () => u.CodeParseItemMessage.createInvalidTypeValue(o2).addWhat(v.codeEditor.types.timeInvalidSeparatorYearMonth))) return false; + const s2 = this.wantZeroPaddedNumericValueForPart(e3, i3, t3, o2, 5, 2, 1, 12, () => { + let e4 = ((/* @__PURE__ */ new Date()).getMonth() + 1).toString(); + return 1 === e4.length && (e4 = "0" + e4), { message: (0, N.sprintf)(v.codeEditor.types.timeUnitNeedsDigitValueForDataType, v.codeEditor.units.monthUnitLabel, b.month.toString(), o2), suggestions: [(0, m.createFixReplaceText)((0, N.sprintf)(v.codeEditor.suggestions.replaceWith, e4), e4, v.codeEditor.types.timeSupplyMonthFromToday)] }; + }, () => ({ message: (0, N.sprintf)(v.codeEditor.types.timeOutOfBounds, v.codeEditor.units.monthUnitLabel) }), () => ({ message: (0, N.sprintf)(v.codeEditor.types.timeUnitNeedsDigitValue, v.codeEditor.units.monthUnitLabel, b.month.toString()) })); + if (!r2.default.isActualNumber(s2)) return false; + if (!this._checkSeparator(e3, i3, t3, "-", 7, () => u.CodeParseItemMessage.createInvalidTypeValue(o2).addWhat(v.codeEditor.types.timeInvalidSeparatorMonthDay))) return false; + let l2; + switch (s2) { + case 1: + case 3: + case 5: + case 7: + case 8: + case 10: + case 12: + l2 = 31; + break; + case 2: + l2 = a2 % 4 != 0 || a2 % 100 == 0 && a2 % 400 != 0 ? 28 : 29; + break; + default: + l2 = 30; + } + const d2 = this.wantZeroPaddedNumericValueForPart(e3, i3, t3, o2, 8, 2, 1, l2, () => { + let e4 = (/* @__PURE__ */ new Date()).getDate().toString(); + return 1 === e4.length && (e4 = "0" + e4), { message: (0, N.sprintf)(v.codeEditor.types.timeUnitNeedsDigitValueForDataType, v.codeEditor.units.dayUnitLabel, b.day.toString(), o2), suggestions: [(0, m.createFixReplaceText)((0, N.sprintf)(v.codeEditor.suggestions.replaceWith, e4), e4, v.codeEditor.types.timeSupplyDayFromMonth)] }; + }, () => ({ message: (0, N.sprintf)(v.codeEditor.types.timeOutOfBounds, v.codeEditor.units.dayUnitLabel) }), () => ({ message: (0, N.sprintf)(v.codeEditor.types.timeUnitNeedsDigitValue, v.codeEditor.units.dayUnitLabel, b.day.toString()) })); + return r2.default.isActualNumber(d2); + } + _checkTimeStr(e3, t3, i3, n3) { + const o2 = n3 ? I.dateTime.displayString : I.date.displayString, a2 = n3 ? 11 : 0, s2 = this.wantZeroPaddedNumericValueForPart(e3, t3, i3, o2, a2, 2, 0, 23, () => ({ message: (0, N.sprintf)(v.codeEditor.types.timeUnitNeedsDigitValue, v.codeEditor.units.hourUnitLabel, b.hour.toString()), suggestions: [(0, m.createFixReplaceText)((0, N.sprintf)(v.codeEditor.suggestions.replaceWith, "00"), "00", (0, N.sprintf)(v.codeEditor.types.timeUseStringDoubleZero, v.codeEditor.units.hourUnitLabel))] }), () => ({ message: (0, N.sprintf)(v.codeEditor.types.timeOutOfBounds, v.codeEditor.units.hourUnitLabel) }), () => ({ message: (0, N.sprintf)(v.codeEditor.types.timeUnitNeedsDigitValue, v.codeEditor.units.hourUnitLabel, b.hour.toString()) })); + if (!r2.default.isActualNumber(s2)) return false; + if (!this._checkSeparator(e3, t3, i3, ":", 2 + a2, () => u.CodeParseItemMessage.createInvalidTypeValue(o2).addWhat(v.codeEditor.types.timeInvalidSeparatorHourMinute))) return false; + const l2 = this.wantZeroPaddedNumericValueForPart(e3, t3, i3, o2, 3 + a2, 2, 0, 59, () => ({ message: (0, N.sprintf)(v.codeEditor.types.timeUnitNeedsDigitValue, v.codeEditor.units.minuteUnitLabel, b.minute.toString()), suggestions: [(0, m.createFixReplaceText)((0, N.sprintf)(v.codeEditor.suggestions.replaceWith, "00"), "00", (0, N.sprintf)(v.codeEditor.types.timeUseStringDoubleZero, v.codeEditor.units.minuteUnitLabel))] }), () => ({ message: (0, N.sprintf)(v.codeEditor.types.timeOutOfBounds, v.codeEditor.units.minuteUnitLabel) }), () => ({ message: (0, N.sprintf)(v.codeEditor.types.timeUnitNeedsDigitValue, v.codeEditor.units.minuteUnitLabel, b.minute.toString()) })); + if (!r2.default.isActualNumber(l2)) return false; + if (!this._checkSeparator(e3, t3, i3, ":", 5 + a2, () => u.CodeParseItemMessage.createInvalidTypeValue(o2).addWhat(v.codeEditor.types.timeInvalidSeparatorMinuteSecond))) return false; + const d2 = this.wantZeroPaddedNumericValueForPart(e3, t3, i3, o2, 6 + a2, 2, 0, 59, () => ({ message: (0, N.sprintf)(v.codeEditor.types.timeUnitNeedsDigitValue, v.codeEditor.units.secondUnitLabel, b.second.toString()), suggestions: [(0, m.createFixReplaceText)((0, N.sprintf)(v.codeEditor.suggestions.replaceWith, "00"), "00", (0, N.sprintf)(v.codeEditor.types.timeUseStringDoubleZero, v.codeEditor.units.secondUnitLabel))] }), () => ({ message: (0, N.sprintf)(v.codeEditor.types.timeOutOfBounds, v.codeEditor.units.secondUnitLabel) }), () => ({ message: (0, N.sprintf)(v.codeEditor.types.timeUnitNeedsDigitValue, v.codeEditor.units.secondUnitLabel, b.second.toString()) })); + return r2.default.isActualNumber(d2); + } + _checkSeparator(e3, t3, i3, n3, r3, o2) { + if (e3[r3] !== n3) { + let a2, s2 = 0; + e3.length >= r3 && e3[r3] < "0" || e3[r3] > "9" ? (a2 = [(0, m.createFixReplaceText)(n3, n3, (0, N.sprintf)(v.codeEditor.suggestions.separators.replaceSeparatorSuggestion, n3))], s2 = 1) : e3.length === r3 && (a2 = [(0, p.createAppendTextFix)(n3, n3, (0, N.sprintf)(v.codeEditor.suggestions.separators.addSeparatorSuggestion, n3))]); + const l2 = o2(); + return this.addParseResultItem(i3, t3, A.ParseResultTypes.error, l2.addSuggestions(a2), t3.from + r3 + 1, t3.from + r3 + 1 + s2), false; + } + return true; + } + _checkDateTimeStr(e3, t3, i3) { + return !!this._checkDateStr(e3.substring(0, 11), i3, t3, true) && (10 === e3.length || !!this._checkSeparator(e3, t3, i3, "T", 10, () => u.CodeParseItemMessage.createInvalidTypeValue(I.dateTime.displayString).addWhat(v.codeEditor.types.dateTimeInvalid)) && this._checkTimeStr(e3, t3, i3, true)); + } + _resolveValueAssignment(e3, t3, i3, n3) { + var o2; + if (!(null == e3 ? void 0 : e3.type)) return; + let a2; + switch (void 0 === i3 && (i3 = this._sourceText.substring(t3.from, t3.to)), n3) { + case R.boolean: + r2.default.isBoolean(i3) ? a2 = { archType: I.boolean, archValue: i3 ? f.default.true : f.default.false, jsonValue: i3, isBoolean: true } : r2.default.isString(i3) && (i3 === f.default.true ? a2 = { archType: I.boolean, archValue: f.default.true, jsonValue: true, isBoolean: true } : i3 === f.default.false && (a2 = { archType: I.boolean, archValue: f.default.false, jsonValue: false, isBoolean: true })), void 0 === a2 && this.addParseResultItem(e3, t3, A.ParseResultTypes.error, u.CodeParseItemMessage.createTokenInvalidIsNotType(i3, I.boolean.displayString)); + break; + case R.null: + (null === i3 || r2.default.isString(i3) && ("null" === i3 || i3 === f.default.notSet)) && (a2 = { archType: e3.type, archValue: f.default.notSet, jsonValue: null, isNull: true }), void 0 === a2 && (this.parseItemIsRawJson(e3) ? this.addParseResultItem(e3, t3, A.ParseResultTypes.error, u.CodeParseItemMessage.createTokenInvalidIsNotType(i3, "null")) : this.addParseResultItem(e3, t3, A.ParseResultTypes.error, u.CodeParseItemMessage.createTokenInvalidIsNotType(i3, f.default.notSet))); + break; + case R.string: { + let n4; + r2.default.isString(i3) && (e3.type.isMatch(I.string) || e3.type.isMatch(I.json) ? a2 = { archType: e3.type, archValue: i3, jsonValue: i3, isString: true } : e3.type.isMatch(I.dateTime) ? (this._checkDateTimeStr(i3, t3, e3) && (a2 = { archType: e3.type, archValue: i3, jsonValue: i3, isDateTime: true }), n4 = true) : e3.type.isMatch(I.date) ? (this._checkDateStr(i3, e3, t3) && (a2 = { archType: e3.type, archValue: i3, jsonValue: i3, isDate: true }), n4 = true) : e3.type.isMatch(I.time) ? (this._checkTimeStr(i3, t3, e3) && (a2 = { archType: e3.type, archValue: i3, jsonValue: i3, isDate: true }), n4 = true) : e3.type.isMatch(I.duration) && (this._checkDurationStr(i3, e3, t3) && (a2 = { archType: e3.type, archValue: i3, jsonValue: i3, isDuration: true }), n4 = true)), void 0 !== a2 || n4 || this.addParseResultItem(e3, t3, A.ParseResultTypes.error, u.CodeParseItemMessage.createTokenInvalidIsNotType(i3, null === (o2 = e3.type) || void 0 === o2 ? void 0 : o2.displayString).addSuggestions(this._getIncompatibleTypeAssignmentSuggestions(e3.type, I.string, `"${i3}"`)), null, null, null, this._parseForUiOnly); + break; + } + case R.number: { + const n4 = this._getNumberFromStr(i3, t3, e3, 0, true, true, void 0, false); + n4 && (a2 = n4.isDecimal ? { archType: I.decimal, archValue: n4.numValAsStr, jsonValue: n4.numValEqualsStrVal ? n4.numVal : n4.numValAsStr, isInteger: true, isNumber: true } : { archType: I.integer, archValue: n4.numValAsStr, jsonValue: n4.numValEqualsStrVal ? n4.numVal : n4.numValAsStr, isInteger: true, isNumber: true }); + break; + } + } + return a2; + } + _assignValue(e3, t3, i3) { + var n3, r3, o2, a2, s2, l2, d2, c2, p2, _2, h2, g2, f2, T2, y2, O2, C2, b2, E2, R2, w, D, P, M, F, L, x, k, V, U, B; + const G = this.parseItemIsRawJson(e3), j = this.isParseItemArray(e3); + let W, q; + this.isParseItemArray(e3) && this._checkForMissingSeparator(e3, t3), G ? (W = I.json, q = i3.jsonValue) : (W = i3.isInteger && e3.type.isMatch(I.decimal) ? I.decimal : i3.archType, q = i3.archValue); + const Y = this._getNodeText(t3); + if (!(null == e3 ? void 0 : e3.type.isMatch(W))) return this.addParseResultItem(e3, t3, A.ParseResultTypes.error, u.CodeParseItemMessage.createIncompatibleTypesValueAssignment(W.displayString, Y, e3.type.displayString).addSuggestions(this._getIncompatibleTypeAssignmentSuggestions(e3.type, W, Y)), null, null, null, this._parseForUiOnly), false; + if ((null === (n3 = e3.expressionPropDef) || void 0 === n3 ? void 0 : n3.maxLength) && i3.isString && q.length > (null === (r3 = e3.expressionPropDef) || void 0 === r3 ? void 0 : r3.maxLength) && this.addParseResultItem(e3, t3, A.ParseResultTypes.error, u.CodeParseItemMessage.createStringLengthTooBig(q.length, null === (o2 = e3.expressionPropDef) || void 0 === o2 ? void 0 : o2.minLength, null === (a2 = e3.expressionPropDef) || void 0 === a2 ? void 0 : a2.maxLength).setFacetInfo({ facet: S.jsonParseItemFacet.propFacetMaxLength, facetOutOfBoundsValue: null == Y ? void 0 : Y.length, facetValue: null === (s2 = e3.expressionPropDef) || void 0 === s2 ? void 0 : s2.maxLength }).addSuggestion((0, m.createFixReplaceText)((0, N.sprintf)(v.codeEditor.types.truncateStringSuggestion, null === (l2 = e3.expressionPropDef) || void 0 === l2 ? void 0 : l2.maxLength), `"${q.substring(0, null === (d2 = e3.expressionPropDef) || void 0 === d2 ? void 0 : d2.maxLength)}"`))), (null === (c2 = e3.expressionPropDef) || void 0 === c2 ? void 0 : c2.minLength) && i3.isString && q.length < (null === (p2 = e3.expressionPropDef) || void 0 === p2 ? void 0 : p2.minLength)) { + let i4 = q; + for (; i4.length < (null === (_2 = e3.expressionPropDef) || void 0 === _2 ? void 0 : _2.minLength); ) i4 += " "; + this.addParseResultItem(e3, t3, A.ParseResultTypes.error, u.CodeParseItemMessage.createStringLengthTooSmall(q.length, null === (h2 = e3.expressionPropDef) || void 0 === h2 ? void 0 : h2.minLength, null === (g2 = e3.expressionPropDef) || void 0 === g2 ? void 0 : g2.maxLength).setFacetInfo({ facet: S.jsonParseItemFacet.propFacetMinLength, facetOutOfBoundsValue: null == Y ? void 0 : Y.length, facetValue: null === (f2 = e3.expressionPropDef) || void 0 === f2 ? void 0 : f2.minLength })); + } + if (void 0 !== (null === (T2 = e3.expressionPropDef) || void 0 === T2 ? void 0 : T2.maxValue) && i3.isNumber && (e3.expressionPropDef.maxValueInclusive ? q > e3.expressionPropDef.maxValue : q >= e3.expressionPropDef.maxValue)) { + const i4 = e3.expressionPropDef.maxValue - (e3.expressionPropDef.maxValueInclusive ? 0 : 1); + this.addParseResultItem(e3, t3, A.ParseResultTypes.error, u.CodeParseItemMessage.createValueTooBig(q, null === (y2 = e3.expressionPropDef) || void 0 === y2 ? void 0 : y2.minValue, !!(null === (O2 = e3.expressionPropDef) || void 0 === O2 ? void 0 : O2.minValueInclusive), null === (C2 = e3.expressionPropDef) || void 0 === C2 ? void 0 : C2.maxValue, !!(null === (b2 = e3.expressionPropDef) || void 0 === b2 ? void 0 : b2.maxValueInclusive)).setFacetInfo({ facet: S.jsonParseItemFacet.propFacetMaxValue, facetOutOfBoundsValue: Y, facetValue: null === (E2 = e3.expressionPropDef) || void 0 === E2 ? void 0 : E2.maxValue }).addSuggestion((0, m.createFixReplaceText)((0, N.sprintf)(v.codeEditor.suggestions.replaceWith, i4), i4.toString(), (0, N.sprintf)(v.codeEditor.suggestions.maxValueClosestTo, q)))); + } + if (void 0 !== (null === (R2 = e3.expressionPropDef) || void 0 === R2 ? void 0 : R2.minValue) && i3.isNumber && (e3.expressionPropDef.minValueInclusive ? q < e3.expressionPropDef.minValue : q <= e3.expressionPropDef.minValue)) { + const i4 = e3.expressionPropDef.minValue + (e3.expressionPropDef.minValueInclusive ? 0 : 1); + this.addParseResultItem(e3, t3, A.ParseResultTypes.error, u.CodeParseItemMessage.createValueTooSmall(q, null === (w = e3.expressionPropDef) || void 0 === w ? void 0 : w.minValue, !!(null === (D = e3.expressionPropDef) || void 0 === D ? void 0 : D.minValueInclusive), null === (P = e3.expressionPropDef) || void 0 === P ? void 0 : P.maxValue, !!(null === (M = e3.expressionPropDef) || void 0 === M ? void 0 : M.maxValueInclusive)).setFacetInfo({ facet: S.jsonParseItemFacet.propFacetMinValue, facetOutOfBoundsValue: Y, facetValue: null === (F = e3.expressionPropDef) || void 0 === F ? void 0 : F.minValue }).addSuggestion((0, m.createFixReplaceText)((0, N.sprintf)(v.codeEditor.suggestions.replaceWith, i4), i4.toString(), (0, N.sprintf)(v.codeEditor.suggestions.minValueClosestTo, q)))); + } + if (null === (x = null === (L = e3.expressionPropDef) || void 0 === L ? void 0 : L.allowableValues) || void 0 === x ? void 0 : x.length) { + const n4 = null === (k = i3.jsonValue) || void 0 === k ? void 0 : k.toString(); + (null === (V = e3.expressionPropDef) || void 0 === V ? void 0 : V.allowableValuesMap[n4]) || this.addParseResultItem(e3, t3, A.ParseResultTypes.error, u.CodeParseItemMessage.createValueNotInAllowableValues(n4, Object.keys(null === (U = e3.expressionPropDef) || void 0 === U ? void 0 : U.allowableValuesMap)).setFacetInfo({ facet: S.jsonParseItemFacet.propFacetAllowableValue, facetOutOfBoundsValue: n4, facetValue: null === (B = e3.expressionPropDef) || void 0 === B ? void 0 : B.allowableValues })); + } + return j ? e3.configVal.json.push(i3.jsonValue) : this.isParseItemObjectPropertyValue(e3) && (e3.configVal.json[e3.propertyName] = i3.jsonValue), this.isParseItemArray(e3) && (e3.arrayItemPrefixSeparatorAdded = false), true; + } + _checkValueAssignment(e3, t3) { + switch (e3.mode) { + case E.array: + this._arrayItemsRequirePrefixSeparator() && !e3.arrayItemPrefixSeparatorAdded && this.addParseResultItem(e3, t3, A.ParseResultTypes.error, u.CodeParseItemMessage.createExtraValue(), null, null, null, this._parseForUiOnly); + break; + case E.objectPropertyValue: + this._propertyValuesRequirePrefixSeparator() && !e3.propertyValuePrefixSeparatorAdded && this.addParseResultItem(e3, t3, A.ParseResultTypes.error, u.CodeParseItemMessage.createExtraValue(), null, null, null, this._parseForUiOnly); + } + return true; + } + _assignScalarValue(e3, t3, i3) { + const n3 = this._checkNotAlreadyDone(e3); + if (!n3) return false; + if (!this._checkValueAssignment(n3, e3)) return false; + let r3; + const o2 = this._resolveValueAssignment(n3, e3, i3, t3); + return r3 = !!o2 && this._assignValue(n3, e3, o2), this._popValueAssignment(n3, e3), r3; + } + }; + }, 38661: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.CustomerIntentType = void 0; + const n2 = i2(80428), r2 = i2(94765), o = i2(15117); + class a extends r2.ExpressionType { + constructor(e3, t3, i3) { + super(e3, t3, i3); + } + get className() { + return "CustomerIntentType"; + } + createExpressionOptionClass() { + return new o.ExpressionTypeCustomerIntentOptions(); + } + get supportsLiteralEditor() { + return false; + } + } + t2.CustomerIntentType = a, a.typeIdentifier = n2.expressionTypeNames.customerIntent; + }, 38663: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = i2(26847), o = n2.__importDefault(i2(21345)); + class a extends o.default { + constructor(e3) { + super(e3); + } + get displayTypeName() { + return "ArchBaseActionWithOutputsSuccessFailureNoInput"; + } + get isArchBaseActionWithOutputsSuccessFailureNoInput() { + return true; + } + get outputNoInput() { + return this._getOutputById(r2.outputIds.noInput, true); + } + } + t2.default = a; + }, 38676: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(25446)); + class r2 extends n2.default { + get displayTypeName() { + return "ArchPromptSystem"; + } + get isArchPromptSystem() { + return true; + } + } + t2.default = r2; + }, 38689: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.ArchCoreFactory = void 0; + const n2 = i2(31635), r2 = n2.__importStar(i2(30801)), o = n2.__importDefault(i2(73198)), a = i2(80428), s = i2(96618), l = i2(66314), u = n2.__importDefault(i2(84783)), d = n2.__importDefault(i2(21413)), c = n2.__importDefault(i2(35859)), p = n2.__importDefault(i2(87145)), _ = n2.__importDefault(i2(61427)); + class h extends u.default { + constructor() { + super(), new _.default.baseClasses.ArchBaseObject().coreFactory = this; + } + get logStr() { + return "ARCH_CORE_FACTORY"; + } + createArchWrapper(e3, t3) { + return this._createArchWrapperImpl(e3, t3); + } + _createArchWrapperImpl(e3, t3) { + this._checkItemUndefinedOrNull(this._infoParm("coreObjectViewModel", "createArchWrapper"), e3); + const i3 = e3; + return i3.isAction ? this.createArchActionFromCoreAction(i3) : i3.isFlowViewModel ? this.createArchFlowFromCoreFlowViewModel(i3) : i3.isFlowSizeNode ? this.createArchFlowFromCoreFlowViewModel(i3.parent) : i3.isMenuChoice ? this.createArchMenuChoice(i3) : i3.isAudioCaseViewModel ? this.createArchAudioCase(i3) : i3.isAudioExpression ? this._createArchValueFromExpressionImpl(i3) : i3.isDivisionViewModel ? this.createArchDivision(i3) : i3.isMenu ? this.createArchMenu(i3) : i3.isTask ? this.createArchTask(i3) : i3.isBotState ? this.createArchStateBot(i3) : i3.isState ? this.createArchState(i3) : i3.isBranchItem ? this.createArchBranch(i3) : i3.isExpressionType ? this.createArchDataType(i3) : i3.isExpressionList ? this._createArchValueFromExpressionImpl(i3) : i3.isCallPromptsNode ? this.createArchPromptsSettings(i3) : i3.isIsoLanguageViewModel ? this.createArchLanguage(i3) : i3.isFlowSupportedLanguageSetting ? this.createArchSettingsSupportedLanguage(i3) : i3.isKnowledgeSettingsNode ? this.createArchSettingsNluKnowledge(i3) : i3.isVirtualAgentSettingsNode ? this.createArchSettingsNluVirtualAgent(i3) : i3.isDynamicSlotTypeViewModel ? this.createArchSettingsNluDynamicSlotType(i3) : i3.isDynamicTimeslotTypeViewModel ? this.createArchSettingsNluDynamicTimeslotType(i3) : i3.isCommonModuleSettingsNode ? this.createArchCommonModuleFlowSettings(i3) : i3.isOutboundCallSettingsNode ? this.createArchOutboundCallFlowSettings(i3) : i3.isInboundEmailSettingsNode ? this.createArchInboundEmailFlowSettings(i3) : i3.isEmailSendSettingsNode ? this.createArchEmailSendFlowSettings(i3) : i3.isVoiceSurveyFlowSettingsNode ? this.createArchVoiceSurveyFlowSettings(i3) : i3.isWorkitemFlowSettingsNode ? this.createArchWorkitemFlowSettings(i3) : i3.isBotFlowSettingsNode ? this.createArchBotFlowSettings(i3) : i3.isDataTypeDefViewModel ? this.createArchDataTypeJsonCustomSchema(i3) : i3.isInQueueCallFlowSettingsNode ? this.createArchInQueueFlowSettings(i3) : i3.isIntentsSettingsNode ? this.createArchSettingsNluIntents(i3) : i3.model && i3.model.isDataPair ? this.createArchNamedValue(i3) : i3.isActionPathViewModel ? this.createArchActionOutput(i3) : i3.isAudioViewModel ? this.createArchAudio(i3) : i3.isDependenciesNode ? this.createArchDependencySettings(i3) : i3.isErrorHandlingNode || i3.isEmailErrorHandlingNode ? this.createArchErrorHandlingSettingsFlow(i3) : i3.isFlowInfo ? this.createArchFlowInfo(i3) : i3.isErrorHandlingWithAudioViewModel ? this.createArchErrorHandlingSettingsFlow(i3) : i3.isMenuSettingsNode ? this.createArchMenuSettings(i3) : i3.isPromptContainer ? this.createArchPrompt(i3) : i3.isSpeechRecNode ? this.createArchSpeechRecSettings(i3) : i3.isSpeechRecTermContainer ? this.createArchSpeechRecTermContainer(i3) : i3.isSpeechRecViewModel ? this.createArchSpeechRecTermContainers(i3) : i3.isValidationResults ? this.createArchValidationResults(i3) : i3.isVariableViewModel ? this.createArchVariableFromVariable(i3) : i3.isNormalExpression ? this._createArchValueFromExpressionImpl(i3) : i3.isDataPairList || i3.isDataPairListCollection ? this.createArchBaseValueContainer(i3) : i3.isContainedDataPairList ? this.createArchBaseValueContainer(i3.value) : i3.isDataPairViewModel ? this._createArchValueFromExpressionImpl(i3.value) : i3.isLanguageNode ? this.createArchSettingsSupportedLanguages(i3) : i3.isSpeechToTextEngineViewModel ? this.createArchSpeechToTextEngine(i3) : i3.isTTSEngineViewModel ? this.createArchTtsEngine(i3) : i3.isVoiceViewModel ? this.createArchTtsVoice(i3) : i3.isFlowDefinition ? this.createArchDefinitionFlow(i3) : i3.isArchMenuDefinition ? this.createArchDefinitionMenu(i3) : i3.isNodeInformation ? this.createArchDefinitionAction(i3) : i3.isDefaultSettingsNode ? this.createArchSettingsActionDefaults(i3) : i3.isBotFlowUserInputSettingsNode ? this.createArchSettingsUserInput(i3) : i3.isBotFlowEventHandlingViewModel ? this.createArchErrorHandlingSettingsFlowBot(i3) : i3.isNameValuePairViewModel ? this.createArchBaseNameValuePair(i3) : i3.isChoiceViewModel ? this.createArchChoice(i3) : i3.isSlotSettingsViewModel ? this.createArchSettingsNluSlot(i3) : void (t3 || this._itemIsInvalid(this._infoParm("coreObjectViewModel", "createArchWrapper"), "INTERNAL ERROR - could not determine the type of Architect script wrapper to create for the core object.\n JSON stringify of object: " + JSON.stringify(i3))); + } + createArchDefinitionAction(e3) { + return this._checkItemUndefinedOrNull(this._infoParm("coreNodeInformation", "createArchDefinitionAction"), e3), new _.default.definitions.ArchDefinitionAction(e3); + } + createArchDefinitionFlow(e3) { + return this._checkItemUndefinedOrNull(this._infoParm("coreNodeInformation", "createArchDefinitionFlow"), e3), new _.default.definitions.ArchDefinitionFlow(e3); + } + createArchDefinitionMenu(e3) { + return this._checkItemUndefinedOrNull(this._infoParm("coreNodeInformation", "createArchDefinitionMenu"), e3), new _.default.definitions.ArchDefinitionMenu(e3); + } + createArchAudio(e3) { + return this._checkItemUndefinedOrNull(this._infoParm("coreAudioViewModel", "createArchAudio"), e3), new _.default.audio.ArchAudio(e3); + } + createArchAudioCase(e3) { + return this._checkItemUndefinedOrNull(this._infoParm("coreAudioCaseViewModel", "createArchAudioCase"), e3), new _.default.audio.ArchAudioCase(e3); + } + createArchBaseVariableValuePair(e3) { + return this._checkItemUndefinedOrNull(this._infoParm("coreVariableValuePair", "createArchVariableValuePair"), e3), this._checkItemUndefinedOrNull(this._infoParm("coreVariableValuePair.variable", "createArchVariableValuePair"), e3.variable), this._checkItemUndefinedOrNull(this._infoParm("coreVariableValuePair.expression", "createArchVariableValuePair"), e3.expression), new _.default.baseClasses.ArchBaseVariableValuePair(e3); + } + createArchDataType(e3) { + return this._checkItemUndefinedOrNull(this._infoParm("coreArchDataType", "createArchDataType"), e3), new d.default.ArchDataType(e3, void 0); + } + createArchDefinitionValue(e3) { + return this._checkItemUndefinedOrNull(this._infoParm("coreExpressionType", "coreExpressionType"), e3), new _.default.definitions.ArchDefinitionValue(e3); + } + createArchDefinitionVariable(e3) { + return this._checkItemUndefinedOrNull(this._infoParm("coreExpressionType", "coreExpressionType"), e3), new _.default.definitions.ArchDefinitionVariable(e3); + } + createArchChoice(e3) { + return this._checkItem(this._infoParm("coreChoiceViewModel", "createArchChoice"), !(e3.model && e3.model.isChoice), "cannot create an ArchChoice from an object that is not a core choice"), new _.default.values.ArchChoice(e3); + } + createArchNamedValue(e3) { + return this._checkItem(this._infoParm("coreDataPair", "createArchNamedValue"), !(e3 && e3.model && e3.model.isDataPair), "cannot create an ArchNamedValue from an object that is not a core data pair"), new _.default.values.ArchNamedValue(e3); + } + createArchFlowFromParentFlow(e3) { + return this._checkItemUndefinedOrNull(this._infoParm("coreObject", "createArchFlowFromParentFlow"), e3), this.createArchFlowFromCoreFlowViewModel(e3.parentFlow); + } + createArchFlowFromCoreFlowViewModel(e3) { + const t3 = this._infoParm("coreFlowViewModel", "createArchFlowFromCoreFlowViewModel"); + switch (this._checkItemUndefinedOrNull(t3, e3), e3.type) { + case s.flowTypes.flowTypeBot: + return new _.default.flows.ArchFlowBot(e3); + case s.flowTypes.flowTypeDigitalBot: + return new _.default.flows.ArchFlowDigitalBot(e3); + case s.flowTypes.flowTypeCommonModule: + return new _.default.flows.ArchFlowCommonModule(e3); + case s.flowTypes.flowTypeEmailSend: + return new _.default.flows.ArchFlowEmailSend(e3); + case s.flowTypes.flowTypeInboundCall: + return new _.default.flows.ArchFlowInboundCall(e3); + case s.flowTypes.flowTypeInboundChat: + return new _.default.flows.ArchFlowInboundChat(e3); + case s.flowTypes.flowTypeInboundEmail: + return new _.default.flows.ArchFlowInboundEmail(e3); + case s.flowTypes.flowTypeInboundShortMessage: + return new _.default.flows.ArchFlowInboundShortMessage(e3); + case s.flowTypes.flowTypeInQueueCall: + return new _.default.flows.ArchFlowInQueueCall(e3); + case s.flowTypes.flowTypeInQueueEmail: + return new _.default.flows.ArchFlowInQueueEmail(e3); + case s.flowTypes.flowTypeInQueueShortMessage: + return new _.default.flows.ArchFlowInQueueShortMessage(e3); + case s.flowTypes.flowTypeOutboundCall: + return new _.default.flows.ArchFlowOutboundCall(e3); + case s.flowTypes.flowTypeSecureCall: + return new _.default.flows.ArchFlowSecureCall(e3); + case s.flowTypes.flowTypeSurveyInvite: + return new _.default.flows.ArchFlowSurveyInvite(e3); + case s.flowTypes.flowTypeVoice: + return new _.default.flows.ArchFlowVoice(e3); + case s.flowTypes.flowTypeVoicemail: + return new _.default.flows.ArchFlowVoicemail(e3); + case s.flowTypes.flowTypeVoiceSurvey: + return new _.default.flows.ArchFlowVoiceSurvey(e3); + case s.flowTypes.flowTypeWorkflow: + return new _.default.flows.ArchFlowWorkflow(e3); + case s.flowTypes.flowTypeWorkitem: + return new _.default.flows.ArchFlowWorkitem(e3); + } + this._itemIsInvalid(t3, "the core flow view model type of '" + e3.type + "' is not supported by this method."); + } + createArchPrompt(e3) { + const t3 = this._infoParm("promptContainerViewModel", "createArchPrompt"); + if (this._checkItemUndefinedOrNull(t3, e3), e3.isPromptContainer) { + if (e3.isUser) return new _.default.prompts.ArchPromptUser(e3); + if (e3.isSystem) return new _.default.prompts.ArchPromptSystem(e3); + } + this._itemIsInvalid(t3, "the core prompt container view model is not a valid user or system prompt container view model."); + } + createArchActionFromCoreAction(e3) { + const t3 = this._infoParm("coreActionViewModel", "createArchActionFromCoreAction"); + this._checkItemUndefinedOrNull(t3, e3); + const i3 = e3; + switch (this._checkItem(t3, !i3.info || !i3.info.typeId, "the core action does not have a type"), i3.info.typeId) { + case r2.abortSurveyActionType: + return new _.default.actions.ArchActionAbortSurveyInvite(i3); + case r2.addFlowMilestoneActionType: + return new _.default.actions.ArchActionAddFlowMilestone(i3); + case r2.askForAuthenticationActionType: + return new _.default.actions.ArchActionAskForAuthentication(i3); + case r2.askForBooleanActionType: + return new _.default.actions.ArchActionAskForBoolean(i3); + case r2.askForNLUIntentActionType: + return new _.default.actions.ArchActionAskForIntent(i3); + case r2.askForNLUNextIntentActionActionType: + return new _.default.actions.ArchActionLoopAnythingElse(i3); + case r2.askForSlotActionType: + return new _.default.actions.ArchActionAskForSlot(i3); + case r2.askForPaymentActionType: + return new _.default.actions.ArchActionAskForPayment(i3); + case r2.askSurveyQuestionActionType: + return new _.default.actions.ArchActionAskSurveyQuestion(i3); + case r2.audioMonitoringActionType: + return new _.default.actions.ArchActionAudioMonitoring(i3); + case r2.botConnectorActionType: + return new _.default.actions.ArchActionCallBotConnector(i3); + case r2.callAgenticVirtualAgentActionType: + return new _.default.actions.ArchActionCallAgenticVirtualAgent(i3); + case r2.callAudioConnectorActionType: + return new _.default.actions.ArchActionCallAudioConnector(i3); + case r2.callBotFlowActionType: + return new _.default.actions.ArchActionCallBotFlow(i3); + case r2.digitalBotConnectorActionType: + return new _.default.actions.ArchActionCallDigitalBotConnector(i3); + case r2.callDigitalBotFlowActionType: + return new _.default.actions.ArchActionCallDigitalBotFlow(i3); + case r2.callDecisionTableActionType: + return new _.default.actions.ArchActionCallDecisionTable(i3); + case r2.callGuideActionType: + return new _.default.actions.ArchActionCallGuide(i3); + case r2.callVoiceFlowActionType: + return new _.default.actions.ArchActionCallVoiceFlow(i3); + case r2.clearActiveIntentActionType: + return new _.default.actions.ArchActionClearActiveIntent(i3); + case r2.clearPostFlowActionType: + return new _.default.actions.ArchActionClearPostFlow(i3); + case r2.clearSlotActionType: + return new _.default.actions.ArchActionClearSlot(i3); + case r2.clearUtilizationLabelActionType: + return new _.default.actions.ArchActionClearUtilizationLabel(i3); + case r2.clearVoicemailSnippetActionType: + return new _.default.actions.ArchActionClearVoicemailSnippet(i3); + case r2.bridgeServerActionType: + return new _.default.actions.ArchActionCallBridge(i3); + case r2.dataActionActionType: + return new _.default.actions.ArchActionCallData(i3); + case r2.dataTableLookupActionType: + return new _.default.actions.ArchActionDataTableLookup(i3); + case r2.secureActionActionType: + return new _.default.actions.ArchActionCallDataSecure(i3); + case r2.collectInputActionType: + return new _.default.actions.ArchActionCollectInput(i3); + case r2.processVoicemailInputActionType: + return new _.default.actions.ArchActionProcessVoicemailInput(i3); + case r2.collectVoiceSnippetActionType: + return new _.default.actions.ArchActionCollectVoiceSnippet(i3); + case r2.communicateActionType: + return new _.default.actions.ArchActionCommunicate(i3); + case r2.abortSendActionType: + return new _.default.actions.ArchActionAbortSend(i3); + case r2.completeSendActionType: + return new _.default.actions.ArchActionCompleteSend(i3); + case r2.completeSurveyActionType: + return new _.default.actions.ArchActionCompleteSurveyInvite(i3); + case r2.createCallbackActionType: + return new _.default.actions.ArchActionCreateCallback(i3); + case r2.createConversationAttributeActionType: + return new _.default.actions.ArchActionCreateConversationAttribute(i3); + case r2.decisionActionType: + return new _.default.actions.ArchActionDecision(i3); + case r2.detectIntentActionType: + return new _.default.actions.ArchActionDetectIntent(i3); + case r2.detectSilenceActionType: + return new _.default.actions.ArchActionDetectSilence(i3); + case r2.decryptDataActionType: + return new _.default.actions.ArchActionDecryptData(i3); + case r2.deflectActionType: + return new _.default.actions.ArchActionDeflect(i3); + case r2.dialExtensionActionType: + return new _.default.actions.ArchActionDialByExtension(i3); + case r2.dialogflowActionType: + return new _.default.actions.ArchActionCallDialogflowBot(i3); + case r2.dialogflowCxActionType: + return new _.default.actions.ArchActionCallDialogflowCxBot(i3); + case r2.dialogEngineActionType: + return new _.default.actions.ArchActionCallDialogEngineBot(i3); + case r2.digitalMenuActionType: + return new _.default.actions.ArchActionDigitalMenu(i3); + case r2.disconnectActionType: + return new _.default.actions.ArchActionDisconnect(i3); + case r2.disconnectWorkitemActionType: + return new _.default.actions.ArchActionDisconnectWorkitem(i3); + case r2.encryptDataActionType: + return new _.default.actions.ArchActionEncryptData(i3); + case r2.endStateActionType: + return new _.default.actions.ArchActionEndState(i3); + case r2.endWorkflowActionType: + return new _.default.actions.ArchActionEndWorkflow(i3); + case r2.returnToAgentActionType: + return new _.default.actions.ArchActionReturnToAgent(i3); + case r2.evaluateScheduleActionType: + return new _.default.actions.ArchActionEvaluateSchedule(i3); + case r2.evaluateScheduleGroupActionType: + return new _.default.actions.ArchActionEvaluateScheduleGroup(i3); + case r2.evaluateSkillExpressionFiltersActionType: + return new _.default.actions.ArchActionEvaluateSkillExpressionFilters(i3); + case r2.exitBotFlowActionType: + return new _.default.actions.ArchActionExitBotFlow(i3); + case r2.exitWorkitemFlowActionType: + return new _.default.actions.ArchActionExitWorkitemFlow(i3); + case r2.extractSecureDataActionType: + return new _.default.actions.ArchActionExtractSecureData(i3); + case r2.findLanguageSkillActionType: + return new _.default.actions.ArchActionFindLanguageSkill(i3); + case r2.findDivisionActionType: + return new _.default.actions.ArchActionFindDivision(i3); + case r2.findDivisionsActionType: + return new _.default.actions.ArchActionFindDivisions(i3); + case r2.findEmergencyGroupActionType: + return new _.default.actions.ArchActionFindEmergencyGroup(i3); + case r2.findGrammarActionType: + return new _.default.actions.ArchActionFindGrammar(i3); + case r2.findGrammarByIdActionType: + return new _.default.actions.ArchActionFindGrammarById(i3); + case r2.findGroupActionType: + return new _.default.actions.ArchActionFindGroup(i3); + case r2.findKnowledgeBaseDocumentByIdActionType: + return new _.default.actions.ArchActionFindKnowledgeBaseDocumentById(i3); + case r2.findQueueActionType: + return new _.default.actions.ArchActionFindQueue(i3); + case r2.findQueueByIdActionType: + return new _.default.actions.ArchActionFindQueueById(i3); + case r2.findScheduleActionType: + return new _.default.actions.ArchActionFindSchedule(i3); + case r2.findScheduleGroupActionType: + return new _.default.actions.ArchActionFindScheduleGroup(i3); + case r2.findSkillActionType: + return new _.default.actions.ArchActionFindSkill(i3); + case r2.findSystemPromptActionType: + return new _.default.actions.ArchActionFindSystemPrompt(i3); + case r2.findUserActionType: + return new _.default.actions.ArchActionFindUser(i3); + case r2.findUserByIdActionType: + return new _.default.actions.ArchActionFindUserById(i3); + case r2.findUserPromptActionType: + return new _.default.actions.ArchActionFindUserPrompt(i3); + case r2.findUsersByIdActionType: + return new _.default.actions.ArchActionFindUsersById(i3); + case r2.findUtilizationLabelActionType: + return new _.default.actions.ArchActionFindUtilizationLabel(i3); + case r2.flushAudioActionType: + return new _.default.actions.ArchActionFlushAudio(i3); + case r2.formActionType: + return new _.default.actions.ArchActionForm(i3); + case r2.getAssignedCustomerIntentsActionType: + return new _.default.actions.ArchActionGetAssignedCustomerIntents(i3); + case r2.getExternalContactActionType: + return new _.default.actions.ArchActionGetExternalContact(i3); + case r2.getExternalOrganizationActionType: + return new _.default.actions.ArchActionGetExternalOrganization(i3); + case r2.getRawSIPHeadersActionType: + return new _.default.actions.ArchActionGetRawSIPHeaders(i3); + case r2.getEmailHeadersActionType: + return new _.default.actions.ArchActionGetEmailHeaders(i3); + case r2.getSIPHeadersActionType: + return new _.default.actions.ArchActionGetSIPHeaders(i3); + case r2.getJourneyOutcomeActionType: + return new _.default.actions.ArchActionGetJourneyOutcome(i3); + case r2.getJourneyOutcomeScoresBySessionActionType: + return new _.default.actions.ArchActionGetJourneyOutcomeScoresBySession(i3); + case r2.getJourneySegmentActionType: + return new _.default.actions.ArchActionGetJourneySegment(i3); + case r2.getJourneySessionActionType: + return new _.default.actions.ArchActionGetJourneySession(i3); + case r2.getJourneySessionsByExternalContactActionType: + return new _.default.actions.ArchActionGetJourneySessionsByExternalContact(i3); + case r2.getAttributesActionType: + return new _.default.actions.ArchActionGetParticipantData(i3); + case r2.getConversationAttributeActionType: + return new _.default.actions.ArchActionGetConversationAttribute(i3); + case r2.getConversationAttributesActionType: + return new _.default.actions.ArchActionGetConversationAttributes(i3); + case r2.getConversationDataActionType: + return new _.default.actions.ArchActionGetConversationData(i3); + case r2.getResponseActionType: + return new _.default.actions.ArchActionGetResponse(i3); + case r2.holdMusicActionType: + return new _.default.actions.ArchActionHoldMusic(i3); + case r2.lexActionType: + return new _.default.actions.ArchActionCallLexBot(i3); + case r2.lexV2ActionType: + return new _.default.actions.ArchActionCallLexV2Bot(i3); + case r2.loopActionType: + return new _.default.actions.ArchActionLoop(i3); + case r2.loopUntilActionType: + return new _.default.actions.ArchActionLoopUntil(i3); + case r2.exitLoopActionType: + return new _.default.actions.ArchActionLoopExit(i3); + case r2.menuActionActionType: + return new _.default.actions.ArchActionMenu(i3); + case r2.nextLoopActionType: + return new _.default.actions.ArchActionLoopNext(i3); + case r2.nuanceMixActionType: + return new _.default.actions.ArchActionCallNuanceMixBot(i3); + case r2.participantRecordActionType: + return new _.default.actions.ArchActionEnableParticipantRecord(i3); + case r2.playAudioActionType: + return new _.default.actions.ArchActionPlayAudio(i3); + case r2.playEstimatedWaitTimeActionType: + return new _.default.actions.ArchActionPlayEstimatedWaitTime(i3); + case r2.playAudioOnSilenceActionType: + return new _.default.actions.ArchActionPlayAudioOnSilence(i3); + case r2.playPositionInQueueActionType: + return new _.default.actions.ArchActionPlayPositionInQueue(i3); + case r2.playUserGreetingActionType: + return new _.default.actions.ArchActionPlayUserGreeting(i3); + case r2.playUserNameActionType: + return new _.default.actions.ArchActionPlayUserName(i3); + case r2.previousMenuActionType: + return new _.default.actions.ArchActionPreviousMenu(i3); + case r2.promoteExternalContactActionType: + return new _.default.actions.ArchActionPromoteExternalContact(i3); + case r2.repeatMenuActionType: + return new _.default.actions.ArchActionRepeatMenu(i3); + case r2.searchExternalContactsActionType: + return new _.default.actions.ArchActionSearchExternalContacts(i3); + case r2.getSecuredDataActionType: + return new _.default.actions.ArchActionGetSecuredData(i3); + case r2.sendAutoReplyActionType: + return new _.default.actions.ArchActionSendAutoReply(i3); + case r2.sendDigitalContentActionType: + return new _.default.actions.ArchActionSendDigitalContent(i3); + case r2.sendInteractiveApplicationActionActionType: + return new _.default.actions.ArchActionSendInteractiveApplication(i3); + case r2.sendKnowledgeFeedbackActionActionType: + return new _.default.actions.ArchActionSendKnowledgeFeedback(i3); + case r2.sendNotificationActionType: + return new _.default.actions.ArchActionSendNotification(i3); + case r2.sendResponseActionType: + return new _.default.actions.ArchActionSendResponse(i3); + case r2.sendRichLinkActionType: + return new _.default.actions.ArchActionSendRichLink(i3); + case r2.screenPopActionType: + return new _.default.actions.ArchActionSetScreenPop(i3); + case r2.setActiveIntentActionType: + return new _.default.actions.ArchActionSetIntent(i3); + case r2.setAttributesActionType: + return new _.default.actions.ArchActionSetParticipantData(i3); + case r2.setConversationDataActionType: + return new _.default.actions.ArchActionSetConversationData(i3); + case r2.setExternalTagActionType: + return new _.default.actions.ArchActionSetExternalTag(i3); + case r2.setLocaleActionType: + return new _.default.actions.ArchActionSetLanguage(i3); + case r2.setPriorityActionType: + return new _.default.actions.ArchActionSetPriority(i3); + case r2.setPostFlowActionType: + return new _.default.actions.ArchActionSetPostFlow(i3); + case r2.setSecuredDataActionType: + return new _.default.actions.ArchActionSetSecuredData(i3); + case r2.setSkillExpressionFiltersActionType: + return new _.default.actions.ArchActionSetSkillExpressionFilters(i3); + case r2.setSkillsActionType: + return new _.default.actions.ArchActionSetSkills(i3); + case r2.clearSkillExpressionFiltersActionType: + return new _.default.actions.ArchActionClearSkillExpressionFilters(i3); + case r2.setUtilizationLabelActionType: + return new _.default.actions.ArchActionSetUtilizationLabel(i3); + case r2.setUUIDataActionType: + return new _.default.actions.ArchActionSetUUIData(i3); + case r2.setWrapupCodeActionType: + return new _.default.actions.ArchActionSetWrapupCode(i3); + case r2.setWhisperAudioActionType: + return new _.default.actions.ArchActionSetWhisperAudio(i3); + case r2.showKnowledgeArticleActionActionType: + return new _.default.actions.ArchActionShowKnowledgeArticle(i3); + case r2.submitVoicemailSnippetActionType: + return new _.default.actions.ArchActionSubmitVoicemailSnippet(i3); + case r2.submitVoiceSnippetActionType: + return new _.default.actions.ArchActionSubmitVoiceSnippet(i3); + case r2.switchActionActionType: + return new _.default.actions.ArchActionSwitch(i3); + case r2.taskActionActionType: + return new _.default.actions.ArchActionTask(i3); + case r2.terminateWorkitemActionType: + return new _.default.actions.ArchActionTerminateWorkitem(i3); + case r2.transcriptionActionType: + return new _.default.actions.ArchActionTranscription(i3); + case r2.transferExternalActionType: + return new _.default.actions.ArchActionTransferToNumber(i3); + case r2.transferFlowActionType: + return new _.default.actions.ArchActionTransferToFlow(i3); + case r2.transferFlowSecureActionType: + return new _.default.actions.ArchActionTransferToFlowSecure(i3); + case r2.transferGroupActionType: + return new _.default.actions.ArchActionTransferToGroup(i3); + case r2.transferMenuActionType: + return new _.default.actions.ArchActionJumpToMenu(i3); + case r2.transferPureMatchActionType: + return new _.default.actions.ArchActionTransferToAcd(i3); + case r2.transferTaskActionType: + return new _.default.actions.ArchActionJumpToTask(i3); + case r2.transferUserActionType: + return new _.default.actions.ArchActionTransferToUser(i3); + case r2.transferVoicemailActionType: + return new _.default.actions.ArchActionTransferToVoicemail(i3); + case r2.updateConversationAttributeActionType: + return new _.default.actions.ArchActionUpdateConversationAttribute(i3); + case r2.updateVariableActionType: + return new _.default.actions.ArchActionUpdateData(i3); + case r2.updateWorkitemActionType: + return new _.default.actions.ArchActionUpdateWorkitem(i3); + case r2.callCommonModuleActionType: + return new _.default.actions.ArchActionCallCommonModule(i3); + case r2.callTaskActionType: + return new _.default.actions.ArchActionCallTask(i3); + case r2.changeStateActionType: + return new _.default.actions.ArchActionChangeState(i3); + case r2.endTaskActionType: + return new _.default.actions.ArchActionEndTask(i3); + case r2.waitActionType: + return new _.default.actions.ArchActionWait(i3); + case r2.waitForInputActionType: + return new _.default.actions.ArchActionWaitForInput(i3); + case r2.initializeFlowOutcomeActionType: + return new _.default.actions.ArchActionInitializeFlowOutcome(i3); + case r2.setFlowOutcomeActionType: + return new _.default.actions.ArchActionSetFlowOutcome(i3); + } + this._itemIsInvalid(t3, "the action type of '" + i3.info.scriptingName + "' is not supported by this method."); + } + createArchMenuChoice(e3) { + const t3 = this._infoParm("coreMenuChoiceViewModel", "createArchMenuChoice"); + switch (this._checkItemUndefinedOrNull(t3, e3), this._checkItem(t3, !e3.action || !e3.action.info || !e3.action.info.typeId, "the core menu type does not have a valid core action on it"), e3.action.info.typeId) { + case r2.dialExtensionActionType: + return new _.default.menus.ArchMenuDialByExtension(e3); + case r2.disconnectActionType: + return new _.default.menus.ArchMenuDisconnect(e3); + case r2.menuActionActionType: + return new _.default.menus.ArchMenuSubMenu(e3); + case r2.previousMenuActionType: + return new _.default.menus.ArchMenuPreviousMenu(e3); + case r2.repeatMenuActionType: + return new _.default.menus.ArchMenuRepeatMenu(e3); + case r2.returnToAgentActionType: + return new _.default.menus.ArchMenuReturnToAgent(e3); + case r2.taskActionActionType: + return new _.default.menus.ArchMenuTask(e3); + case r2.transferExternalActionType: + return new _.default.menus.ArchMenuTransferToNumber(e3); + case r2.transferFlowActionType: + return new _.default.menus.ArchMenuTransferToFlow(e3); + case r2.transferFlowSecureActionType: + return new _.default.menus.ArchMenuTransferToFlowSecure(e3); + case r2.transferGroupActionType: + return new _.default.menus.ArchMenuTransferToGroup(e3); + case r2.transferMenuActionType: + return new _.default.menus.ArchMenuJumpToMenu(e3); + case r2.transferTaskActionType: + return new _.default.menus.ArchMenuJumpToTask(e3); + case r2.transferPureMatchActionType: + return new _.default.menus.ArchMenuTransferToAcd(e3); + case r2.transferUserActionType: + return new _.default.menus.ArchMenuTransferToUser(e3); + case r2.transferVoicemailActionType: + return new _.default.menus.ArchMenuTransferToVoicemail(e3); + } + this._itemIsInvalid(t3, "the core menu choice action's type of '" + e3.action.info.typeId + "' is not supported by this method."); + } + createArchMenu(e3) { + return this._checkItemUndefinedOrNull(this._infoParm("coreMenuViewModel", "createArchMenu"), e3), new _.default.menus.ArchMenu(e3); + } + createArchDivision(e3) { + return this._checkItemUndefinedOrNull(this._infoParm("coreDivisionViewModel", "createArchDivision"), e3), new p.default.ArchDivision(e3); + } + createArchLanguage(e3) { + return this._checkItemUndefinedOrNull(this._infoParm("coreIsoLanguageViewModel", "createArchLanguage"), e3), new c.default.ArchLanguage(e3); + } + createArchValueFromExpression(e3) { + return this._createArchValueFromExpressionImpl(e3); + } + _createArchValueFromExpressionImpl(e3) { + const t3 = this._infoParm("coreExpression", "createArchValueFromExpression"); + this._checkItemUndefinedOrNull(t3, e3); + const i3 = e3; + let n3, r3; + this._checkItem(t3, !i3.type, "core expression does not have a type property on it"), i3.isAudioExpression ? (n3 = i3.type.isCollection, r3 = i3.type.expressionType) : i3.isExpressionList ? (n3 = true, r3 = i3.type.expressionType) : i3.isCollectionExpression ? (n3 = true, r3 = i3.singleType.expressionType) : i3.isNormalExpression ? (n3 = i3.isCollection, r3 = i3.type.singletonType.expressionType, (0, l.isCustomJsonExpressionDataType)(r3) && (r3 = a.expressionTypeNames.json)) : this._itemIsInvalid(t3, "unable to determine if the core expression is a collection or not."); + const o2 = i3; + if (n3) { + if ((0, l.isCustomJsonExpressionDataType)(r3)) return new _.default.values.ArchValueJsonCollection(o2); + switch (r3) { + case a.expressionTypeNames.agentScorePair: + return new _.default.values.ArchValueAgentScorePairCollection(o2); + case a.expressionTypeNames.any: + return new _.default.values.ArchValueAnyCollection(o2); + case a.expressionTypeNames.assignedCustomerIntent: + return new _.default.values.ArchValueAssignedCustomerIntentCollection(o2); + case a.expressionTypeNames.assignedCustomerSegment: + return new _.default.values.ArchValueAssignedCustomerSegmentCollection(o2); + case a.expressionTypeNames.boolean: + return new _.default.values.ArchValueBooleanCollection(o2); + case a.expressionTypeNames.card: + return new _.default.values.ArchValueCardCollection(o2); + case a.expressionTypeNames.choice: + return new _.default.values.ArchValueChoiceCollection(o2); + case a.expressionTypeNames.communication: + return new _.default.values.ArchValueCommunicationCollection(o2); + case a.expressionTypeNames.currency: + return new _.default.values.ArchValueCurrencyCollection(o2); + case a.expressionTypeNames.customerIntent: + return new _.default.values.ArchValueCustomerIntentCollection(o2); + case a.expressionTypeNames.customerSegment: + return new _.default.values.ArchValueCustomerSegmentCollection(o2); + case a.expressionTypeNames.date: + return new _.default.values.ArchValueDateCollection(o2); + case a.expressionTypeNames.dateTime: + return new _.default.values.ArchValueDateTimeCollection(o2); + case a.expressionTypeNames.decimal: + return new _.default.values.ArchValueDecimalCollection(o2); + case a.expressionTypeNames.digitalAudio: + return new _.default.values.ArchValueDigitalAudioCollection(o2); + case a.expressionTypeNames.division: + return new _.default.values.ArchValueDivisionCollection(o2); + case a.expressionTypeNames.duration: + return new _.default.values.ArchValueDurationCollection(o2); + case a.expressionTypeNames.emergencyGroup: + return new _.default.values.ArchValueEmergencyGroupCollection(o2); + case a.expressionTypeNames.emailAddress: + return new _.default.values.ArchValueEmailAddressCollection(o2); + case a.expressionTypeNames.externalContact: + return new _.default.values.ArchValueExternalContactCollection(o2); + case a.expressionTypeNames.externalOrganization: + return new _.default.values.ArchValueExternalOrganizationCollection(o2); + case a.expressionTypeNames.file: + return new _.default.values.ArchValueFileCollection(o2); + case a.expressionTypeNames.grammar: + return new _.default.values.ArchValueGrammarCollection(o2); + case a.expressionTypeNames.group: + return new _.default.values.ArchValueGroupCollection(o2); + case a.expressionTypeNames.image: + return new _.default.values.ArchValueImageCollection(o2); + case a.expressionTypeNames.integer: + return new _.default.values.ArchValueIntegerCollection(o2); + case a.expressionTypeNames.journeySession: + return new _.default.values.ArchValueJourneySessionCollection(o2); + case a.expressionTypeNames.json: + return new _.default.values.ArchValueJsonCollection(o2); + case a.expressionTypeNames.lineItem: + return new _.default.values.ArchValueLineItemCollection(o2); + case a.expressionTypeNames.languageSkill: + return new _.default.values.ArchValueLanguageSkillCollection(o2); + case a.expressionTypeNames.journeyOutcome: + return new _.default.values.ArchValueJourneyOutcomeCollection(o2); + case a.expressionTypeNames.journeyOutcomeScore: + return new _.default.values.ArchValueJourneyOutcomeScoreCollection(o2); + case a.expressionTypeNames.journeySegment: + return new _.default.values.ArchValueJourneySegmentCollection(o2); + case a.expressionTypeNames.knowledgeBaseDocument: + return new _.default.values.ArchValueKnowledgeBaseDocumentCollection(o2); + case a.expressionTypeNames.listPickerItem: + return new _.default.values.ArchValueListPickerItemCollection(o2); + case a.expressionTypeNames.listPickerSection: + return new _.default.values.ArchValueListPickerSectionCollection(o2); + case a.expressionTypeNames.queue: + return new _.default.values.ArchValueQueueCollection(o2); + case a.expressionTypeNames.phoneNumber: + return new _.default.values.ArchValuePhoneNumberCollection(o2); + case a.expressionTypeNames.prompt: + return new _.default.values.ArchValuePromptCollection(o2); + case a.expressionTypeNames.responseAsset: + return new _.default.values.ArchValueResponseAssetCollection(o2); + case a.expressionTypeNames.schedule: + return new _.default.values.ArchValueScheduleCollection(o2); + case a.expressionTypeNames.scheduleGroup: + return new _.default.values.ArchValueScheduleGroupCollection(o2); + case a.expressionTypeNames.shippingOption: + return new _.default.values.ArchValueShippingOptionCollection(o2); + case a.expressionTypeNames.skill: + return new _.default.values.ArchValueSkillCollection(o2); + case a.expressionTypeNames.string: + return new _.default.values.ArchValueStringCollection(o2); + case a.expressionTypeNames.surveyAnswerOption: + return new _.default.values.ArchValueSurveyAnswerOptionCollection(o2); + case a.expressionTypeNames.surveyQuestionGroup: + return new _.default.values.ArchValueSurveyQuestionGroupCollection(o2); + case a.expressionTypeNames.surveyQuestion: + return new _.default.values.ArchValueSurveyQuestionCollection(o2); + case a.expressionTypeNames.time: + return new _.default.values.ArchValueTimeCollection(o2); + case a.expressionTypeNames.timeslot: + return new _.default.values.ArchValueTimeslotCollection(o2); + case a.expressionTypeNames.userQueue: + return new _.default.values.ArchValueUserCollection(o2); + case a.expressionTypeNames.utilizationLabel: + return new _.default.values.ArchValueUtilizationLabelCollection(o2); + case a.expressionTypeNames.video: + return new _.default.values.ArchValueVideoCollection(o2); + case a.expressionTypeNames.wheelPickerItem: + return new _.default.values.ArchValueWheelPickerItemCollection(o2); + case a.expressionTypeNames.workbin: + return new _.default.values.ArchValueWorkbinCollection(o2); + case a.expressionTypeNames.worktypeStatus: + return new _.default.values.ArchValueWorktypeStatusCollection(o2); + case a.expressionTypeNames.wrapupCode: + return new _.default.values.ArchValueWrapupCodeCollection(o2); + } + } else switch (r3) { + case a.expressionTypeNames.agentScorePair: + return new _.default.values.ArchValueAgentScorePair(o2); + case a.expressionTypeNames.any: + return new _.default.values.ArchValueAny(o2); + case a.expressionTypeNames.assignedCustomerIntent: + return new _.default.values.ArchValueAssignedCustomerIntent(o2); + case a.expressionTypeNames.assignedCustomerSegment: + return new _.default.values.ArchValueAssignedCustomerSegment(o2); + case a.expressionTypeNames.audio: + return new _.default.values.ArchValueAudio(o2); + case a.expressionTypeNames.boolean: + return new _.default.values.ArchValueBoolean(o2); + case a.expressionTypeNames.card: + return new _.default.values.ArchValueCard(o2); + case a.expressionTypeNames.carousel: + return new _.default.values.ArchValueCarousel(o2); + case a.expressionTypeNames.choice: + return new _.default.values.ArchValueChoice(o2); + case a.expressionTypeNames.chooser: + return new _.default.values.ArchValueChooser(o2); + case a.expressionTypeNames.communication: + return new _.default.values.ArchValueCommunication(o2); + case a.expressionTypeNames.contactList: + return new _.default.values.ArchValueContactList(o2); + case a.expressionTypeNames.currency: + return new _.default.values.ArchValueCurrency(o2); + case a.expressionTypeNames.customerIntent: + return new _.default.values.ArchValueCustomerIntent(o2); + case a.expressionTypeNames.customerSegment: + return new _.default.values.ArchValueCustomerSegment(o2); + case a.expressionTypeNames.date: + return new _.default.values.ArchValueDate(o2); + case a.expressionTypeNames.dateTime: + return new _.default.values.ArchValueDateTime(o2); + case a.expressionTypeNames.decimal: + return new _.default.values.ArchValueDecimal(o2); + case a.expressionTypeNames.digitalAudio: + return new _.default.values.ArchValueDigitalAudio(o2); + case a.expressionTypeNames.division: + return new _.default.values.ArchValueDivision(o2); + case a.expressionTypeNames.duration: + return new _.default.values.ArchValueDuration(o2); + case a.expressionTypeNames.emergencyGroup: + return new _.default.values.ArchValueEmergencyGroup(o2); + case a.expressionTypeNames.emailAddress: + return new _.default.values.ArchValueEmailAddress(o2); + case a.expressionTypeNames.externalContact: + return new _.default.values.ArchValueExternalContact(o2); + case a.expressionTypeNames.externalOrganization: + return new _.default.values.ArchValueExternalOrganization(o2); + case a.expressionTypeNames.file: + return new _.default.values.ArchValueFile(o2); + case a.expressionTypeNames.formInput: + return new _.default.values.ArchValueFormInput(o2); + case a.expressionTypeNames.grammar: + return new _.default.values.ArchValueGrammar(o2); + case a.expressionTypeNames.group: + return new _.default.values.ArchValueGroup(o2); + case a.expressionTypeNames.image: + return new _.default.values.ArchValueImage(o2); + case a.expressionTypeNames.integer: + return new _.default.values.ArchValueInteger(o2); + case a.expressionTypeNames.journeyOutcome: + return new _.default.values.ArchValueJourneyOutcome(o2); + case a.expressionTypeNames.journeyOutcomeScore: + return new _.default.values.ArchValueJourneyOutcomeScore(o2); + case a.expressionTypeNames.journeySegment: + return new _.default.values.ArchValueJourneySegment(o2); + case a.expressionTypeNames.journeySession: + return new _.default.values.ArchValueJourneySession(o2); + case a.expressionTypeNames.json: + return new _.default.values.ArchValueJson(o2); + case a.expressionTypeNames.knowledgeBaseDocument: + return new _.default.values.ArchValueKnowledgeBaseDocument(o2); + case a.expressionTypeNames.languageSkill: + return new _.default.values.ArchValueLanguageSkill(o2); + case a.expressionTypeNames.lineItem: + return new _.default.values.ArchValueLineItem(o2); + case a.expressionTypeNames.listPicker: + return new _.default.values.ArchValueListPicker(o2); + case a.expressionTypeNames.listPickerItem: + return new _.default.values.ArchValueListPickerItem(o2); + case a.expressionTypeNames.listPickerSection: + return new _.default.values.ArchValueListPickerSection(o2); + case a.expressionTypeNames.phoneNumber: + return new _.default.values.ArchValuePhoneNumber(o2); + case a.expressionTypeNames.prompt: + return new _.default.values.ArchValuePrompt(o2); + case a.expressionTypeNames.queue: + return new _.default.values.ArchValueQueue(o2); + case a.expressionTypeNames.quickReplies: + return new _.default.values.ArchValueQuickReplies(o2); + case a.expressionTypeNames.responseAsset: + return new _.default.values.ArchValueResponseAsset(o2); + case a.expressionTypeNames.schedule: + return new _.default.values.ArchValueSchedule(o2); + case a.expressionTypeNames.scheduleGroup: + return new _.default.values.ArchValueScheduleGroup(o2); + case a.expressionTypeNames.surveyAnswerOption: + return new _.default.values.ArchValueSurveyAnswerOption(o2); + case a.expressionTypeNames.surveyQuestionGroup: + return new _.default.values.ArchValueSurveyQuestionGroup(o2); + case a.expressionTypeNames.surveyQuestion: + return new _.default.values.ArchValueSurveyQuestion(o2); + case a.expressionTypeNames.skill: + return new _.default.values.ArchValueSkill(o2); + case a.expressionTypeNames.string: + return new _.default.values.ArchValueString(o2); + case a.expressionTypeNames.time: + return new _.default.values.ArchValueTime(o2); + case a.expressionTypeNames.timePicker: + return new _.default.values.ArchValueTimePicker(o2); + case a.expressionTypeNames.timeslot: + return new _.default.values.ArchValueTimeslot(o2); + case a.expressionTypeNames.shippingOption: + return new _.default.values.ArchValueShippingOption(o2); + case a.expressionTypeNames.userQueue: + return new _.default.values.ArchValueUser(o2); + case a.expressionTypeNames.utilizationLabel: + return new _.default.values.ArchValueUtilizationLabel(o2); + case a.expressionTypeNames.video: + return new _.default.values.ArchValueVideo(o2); + case a.expressionTypeNames.voiceSnippet: + return new _.default.values.ArchValueVoiceSnippet(o2); + case a.expressionTypeNames.wheelPicker: + return new _.default.values.ArchValueWheelPicker(o2); + case a.expressionTypeNames.wheelPickerItem: + return new _.default.values.ArchValueWheelPickerItem(o2); + case a.expressionTypeNames.workbin: + return new _.default.values.ArchValueWorkbin(o2); + case a.expressionTypeNames.workitem: + return new _.default.values.ArchValueWorkitem(o2); + case a.expressionTypeNames.worktypeStatus: + return new _.default.values.ArchValueWorktypeStatus(o2); + case a.expressionTypeNames.wrapupCode: + return new _.default.values.ArchValueWrapupCode(o2); + } + this._itemIsInvalid(t3, "the core expression's expression type of '" + i3.type.expressionType + "' ( collection = " + !!n3 + ") is not supported by this method."); + } + createArchValueSettings(e3) { + return this._checkItem(this._infoParm("archBaseValue", "createArchValueSettings"), !e3 || !e3.isArchBaseValue, "no archBaseValue supplied"), new _.default.values.ArchValueSettings(e3); + } + createArchMenuSettings(e3) { + return this._checkItemUndefinedOrNull(this._infoParm("coreMenuSettingsViewModel", "createArchMenuSettings"), e3), e3.isFlowSettings ? new _.default.settings.ArchSettingsMenuFlow(e3) : new _.default.settings.ArchSettingsMenu(e3); + } + createArchPromptsSettings(e3) { + return this._checkItemUndefinedOrNull(this._infoParm("coreCallPromptsViewModel", "createArchPromptsSettings"), e3), new _.default.settings.ArchSettingsPromptsFlow(e3); + } + createArchCommonModuleFlowSettings(e3) { + return this._checkItemUndefinedOrNull(this._infoParm("coreCommonModuleFlowSettingsViewModel", "coreCommonModuleFlowSettingsViewModel"), e3), new _.default.settings.ArchSettingsCommonModuleFlow(e3); + } + createArchOutboundCallFlowSettings(e3) { + return this._checkItemUndefinedOrNull(this._infoParm("coreOutboundCallFlowSettingsViewModel", "createArchOutboundCallFlowSettings"), e3), new _.default.settings.ArchSettingsOutboundCallFlow(e3); + } + createArchVoiceSurveyFlowSettings(e3) { + return this._checkItemUndefinedOrNull(this._infoParm("coreVoiceSurveyFlowSettingsViewModel", "createArchVoiceSurveyFlowSettings"), e3), new _.default.settings.ArchSettingsVoiceSurveyFlow(e3); + } + createArchWorkitemFlowSettings(e3) { + return this._checkItemUndefinedOrNull(this._infoParm("coreWorkitemFlowSettingsViewModel", "createArchWorkitemFlowSettings"), e3), new _.default.settings.ArchSettingsWorkitemFlow(e3); + } + createArchBotFlowSettings(e3) { + return this._checkItemUndefinedOrNull(this._infoParm("coreBotFlowSettingsViewModel", "createArchBotFlowSettings"), e3), new _.default.settings.ArchSettingsBotFlow(e3); + } + createArchSettingsNluIntents(e3) { + return this._checkItemUndefinedOrNull(this._infoParm("coreSettingsIntentsViewModel", "createArchSettingsNluIntents"), e3), new _.default.settings.ArchSettingsNluIntents(e3); + } + createArchInboundEmailFlowSettings(e3) { + return this._checkItemUndefinedOrNull(this._infoParm("coreInboundEmailFlowSettingsViewModel", "createArchInboundEmailFlowSettings"), e3), new _.default.settings.ArchSettingsInboundEmailFlow(e3); + } + createArchEmailSendFlowSettings(e3) { + return this._checkItemUndefinedOrNull(this._infoParm("coreEmailSendFlowSettingsViewModel", "createArchEmailSendFlowSettings"), e3), new _.default.settings.ArchSettingsEmailSendFlow(e3); + } + createArchFlowInfo(e3) { + return this._checkItemUndefinedOrNull(this._infoParm("coreFlowInfoViewModel", "createArchFlowInfo"), e3), new _.default.flows.ArchFlowInfo(e3); + } + createArchFlowInfoBasic(e3, t3, i3) { + return new _.default.flows.ArchFlowInfoBasic({ id: e3, name: t3, type: i3 }); + } + createArchFlowInfoVersion(e3) { + return new _.default.flows.ArchFlowInfoVersion(e3); + } + createArchDataTypeJsonCustomSchema(e3) { + return this._checkItemUndefinedOrNull(this._infoParm("coreDataTypeDefViewModel", "createArchDataTypeJsonCustomSchema"), e3), new d.default.ArchDataTypeJsonCustomSchema(e3); + } + createArchInQueueFlowSettings(e3) { + return this._checkItemUndefinedOrNull(this._infoParm("coreInQueueFlowSettings", "createArchInQueueFlowSettings"), e3), new _.default.settings.ArchSettingsInQueueCallFlow(e3); + } + createArchErrorHandlingSettingsFlow(e3) { + return this._checkItemUndefinedOrNull(this._infoParm("coreErrorHandlingSettingsViewModel", "createArchErrorHandlingSettingsFlow"), e3), new _.default.settings.ArchSettingsEventErrorFlow(e3); + } + createArchErrorHandlingSettingsFlowBot(e3) { + return this._checkItemUndefinedOrNull(this._infoParm("coreBotErrorHandlingSettingsViewModel", "createArchErrorHandlingSettingsFlowBot"), e3), new _.default.settings.ArchSettingsEventErrorFlowBot(e3); + } + createArchSpeechRecSettings(e3) { + return this._checkItemUndefinedOrNull(this._infoParm("coreSpeechRecSettingsViewModel", "createArchSpeechRecSettings"), e3), e3.isFlowSettings ? new _.default.settings.ArchSettingsSpeechRecFlow(e3) : new _.default.settings.ArchSettingsSpeechRec(e3); + } + createArchVariableFromVariable(e3) { + const t3 = this._infoParm("coreVariable", "createArchVariableFromVariable"); + let i3; + switch (this._checkItemUndefinedOrNull(t3, e3), this._checkItem(t3, !e3.type, "core variable does not have a type property on it"), i3 = (0, l.isCustomJsonExpressionDataType)(e3.type.expressionType) ? a.expressionTypeNames.json : e3.type.expressionType, i3) { + case a.expressionTypeNames.agentScorePair: + return new _.default.variables.ArchVariableAgentScorePair(e3); + case a.expressionTypeNames.agentScorePair + o.default.exprDataTypeSuffixCollection: + return new _.default.variables.ArchVariableAgentScorePairCollection(e3); + case a.expressionTypeNames.assignedCustomerIntent: + return new _.default.variables.ArchVariableAssignedCustomerIntent(e3); + case a.expressionTypeNames.assignedCustomerIntent + o.default.exprDataTypeSuffixCollection: + return new _.default.variables.ArchVariableAssignedCustomerIntentCollection(e3); + case a.expressionTypeNames.assignedCustomerSegment: + return new _.default.variables.ArchVariableAssignedCustomerSegment(e3); + case a.expressionTypeNames.assignedCustomerSegment + o.default.exprDataTypeSuffixCollection: + return new _.default.variables.ArchVariableAssignedCustomerSegmentCollection(e3); + case a.expressionTypeNames.boolean: + return new _.default.variables.ArchVariableBoolean(e3); + case a.expressionTypeNames.boolean + o.default.exprDataTypeSuffixCollection: + return new _.default.variables.ArchVariableBooleanCollection(e3); + case a.expressionTypeNames.card: + return new _.default.variables.ArchVariableCard(e3); + case a.expressionTypeNames.card + o.default.exprDataTypeSuffixCollection: + return new _.default.variables.ArchVariableCardCollection(e3); + case a.expressionTypeNames.carousel: + return new _.default.variables.ArchVariableCarousel(e3); + case a.expressionTypeNames.choice: + return new _.default.variables.ArchVariableChoice(e3); + case a.expressionTypeNames.choice + o.default.exprDataTypeSuffixCollection: + return new _.default.variables.ArchVariableChoiceCollection(e3); + case a.expressionTypeNames.chooser: + return new _.default.variables.ArchVariableChooser(e3); + case a.expressionTypeNames.chooser + o.default.exprDataTypeSuffixCollection: + return new _.default.variables.ArchVariableChooserCollection(e3); + case a.expressionTypeNames.communication: + return new _.default.variables.ArchVariableCommunication(e3); + case a.expressionTypeNames.communication + o.default.exprDataTypeSuffixCollection: + return new _.default.variables.ArchVariableCommunicationCollection(e3); + case a.expressionTypeNames.customerIntent: + return new _.default.variables.ArchVariableCustomerIntent(e3); + case a.expressionTypeNames.customerIntent + o.default.exprDataTypeSuffixCollection: + return new _.default.variables.ArchVariableCustomerIntentCollection(e3); + case a.expressionTypeNames.customerSegment: + return new _.default.variables.ArchVariableCustomerSegment(e3); + case a.expressionTypeNames.customerSegment + o.default.exprDataTypeSuffixCollection: + return new _.default.variables.ArchVariableCustomerSegmentCollection(e3); + case a.expressionTypeNames.currency: + return new _.default.variables.ArchVariableCurrency(e3); + case a.expressionTypeNames.currency + o.default.exprDataTypeSuffixCollection: + return new _.default.variables.ArchVariableCurrencyCollection(e3); + case a.expressionTypeNames.date: + return new _.default.variables.ArchVariableDate(e3); + case a.expressionTypeNames.date + o.default.exprDataTypeSuffixCollection: + return new _.default.variables.ArchVariableDateCollection(e3); + case a.expressionTypeNames.dateTime: + return new _.default.variables.ArchVariableDateTime(e3); + case a.expressionTypeNames.dateTime + o.default.exprDataTypeSuffixCollection: + return new _.default.variables.ArchVariableDateTimeCollection(e3); + case a.expressionTypeNames.decimal: + return new _.default.variables.ArchVariableDecimal(e3); + case a.expressionTypeNames.decimal + o.default.exprDataTypeSuffixCollection: + return new _.default.variables.ArchVariableDecimalCollection(e3); + case a.expressionTypeNames.digitalAudio: + return new _.default.variables.ArchVariableDigitalAudio(e3); + case a.expressionTypeNames.digitalAudio + o.default.exprDataTypeSuffixCollection: + return new _.default.variables.ArchVariableDigitalAudioCollection(e3); + case a.expressionTypeNames.division: + return new _.default.variables.ArchVariableDivision(e3); + case a.expressionTypeNames.division + o.default.exprDataTypeSuffixCollection: + return new _.default.variables.ArchVariableDivisionCollection(e3); + case a.expressionTypeNames.duration: + return new _.default.variables.ArchVariableDuration(e3); + case a.expressionTypeNames.duration + o.default.exprDataTypeSuffixCollection: + return new _.default.variables.ArchVariableDurationCollection(e3); + case a.expressionTypeNames.emergencyGroup: + return new _.default.variables.ArchVariableEmergencyGroup(e3); + case a.expressionTypeNames.emergencyGroup + o.default.exprDataTypeSuffixCollection: + return new _.default.variables.ArchVariableEmergencyGroupCollection(e3); + case a.expressionTypeNames.emailAddress: + return new _.default.variables.ArchVariableEmailAddress(e3); + case a.expressionTypeNames.emailAddress + o.default.exprDataTypeSuffixCollection: + return new _.default.variables.ArchVariableEmailAddressCollection(e3); + case a.expressionTypeNames.externalContact: + return new _.default.variables.ArchVariableExternalContact(e3); + case a.expressionTypeNames.externalContact + o.default.exprDataTypeSuffixCollection: + return new _.default.variables.ArchVariableExternalContactCollection(e3); + case a.expressionTypeNames.externalOrganization: + return new _.default.variables.ArchVariableExternalOrganization(e3); + case a.expressionTypeNames.externalOrganization + o.default.exprDataTypeSuffixCollection: + return new _.default.variables.ArchVariableExternalOrganizationCollection(e3); + case a.expressionTypeNames.file: + return new _.default.variables.ArchVariableFile(e3); + case a.expressionTypeNames.file + o.default.exprDataTypeSuffixCollection: + return new _.default.variables.ArchVariableFileCollection(e3); + case a.expressionTypeNames.formInput: + return new _.default.variables.ArchVariableFormInput(e3); + case a.expressionTypeNames.grammar: + return new _.default.variables.ArchVariableGrammar(e3); + case a.expressionTypeNames.grammar + o.default.exprDataTypeSuffixCollection: + return new _.default.variables.ArchVariableGrammarCollection(e3); + case a.expressionTypeNames.group: + return new _.default.variables.ArchVariableGroup(e3); + case a.expressionTypeNames.group + o.default.exprDataTypeSuffixCollection: + return new _.default.variables.ArchVariableGroupCollection(e3); + case a.expressionTypeNames.image: + return new _.default.variables.ArchVariableImage(e3); + case a.expressionTypeNames.image + o.default.exprDataTypeSuffixCollection: + return new _.default.variables.ArchVariableImageCollection(e3); + case a.expressionTypeNames.integer: + return new _.default.variables.ArchVariableInteger(e3); + case a.expressionTypeNames.integer + o.default.exprDataTypeSuffixCollection: + return new _.default.variables.ArchVariableIntegerCollection(e3); + case a.expressionTypeNames.languageSkill: + return new _.default.variables.ArchVariableLanguageSkill(e3); + case a.expressionTypeNames.languageSkill + o.default.exprDataTypeSuffixCollection: + return new _.default.variables.ArchVariableLanguageSkillCollection(e3); + case a.expressionTypeNames.lineItem: + return new _.default.variables.ArchVariableLineItem(e3); + case a.expressionTypeNames.lineItem + o.default.exprDataTypeSuffixCollection: + return new _.default.variables.ArchVariableLineItemCollection(e3); + case a.expressionTypeNames.journeyOutcome: + return new _.default.variables.ArchVariableJourneyOutcome(e3); + case a.expressionTypeNames.journeyOutcome + o.default.exprDataTypeSuffixCollection: + return new _.default.variables.ArchVariableJourneyOutcomeCollection(e3); + case a.expressionTypeNames.journeyOutcomeScore: + return new _.default.variables.ArchVariableJourneyOutcomeScore(e3); + case a.expressionTypeNames.journeyOutcomeScore + o.default.exprDataTypeSuffixCollection: + return new _.default.variables.ArchVariableJourneyOutcomeScoreCollection(e3); + case a.expressionTypeNames.journeySegment: + return new _.default.variables.ArchVariableJourneySegment(e3); + case a.expressionTypeNames.journeySegment + o.default.exprDataTypeSuffixCollection: + return new _.default.variables.ArchVariableJourneySegmentCollection(e3); + case a.expressionTypeNames.journeySession: + return new _.default.variables.ArchVariableJourneySession(e3); + case a.expressionTypeNames.journeySession + o.default.exprDataTypeSuffixCollection: + return new _.default.variables.ArchVariableJourneySessionCollection(e3); + case a.expressionTypeNames.json: + return new _.default.variables.ArchVariableJson(e3); + case a.expressionTypeNames.json + o.default.exprDataTypeSuffixCollection: + return new _.default.variables.ArchVariableJsonCollection(e3); + case a.expressionTypeNames.knowledgeBaseDocument: + return new _.default.variables.ArchVariableKnowledgeBaseDocument(e3); + case a.expressionTypeNames.knowledgeBaseDocument + o.default.exprDataTypeSuffixCollection: + return new _.default.variables.ArchVariableKnowledgeBaseDocumentCollection(e3); + case a.expressionTypeNames.listPicker: + return new _.default.variables.ArchVariableListPicker(e3); + case a.expressionTypeNames.listPickerItem: + return new _.default.variables.ArchVariableListPickerItem(e3); + case a.expressionTypeNames.listPickerItem + o.default.exprDataTypeSuffixCollection: + return new _.default.variables.ArchVariableListPickerItemCollection(e3); + case a.expressionTypeNames.listPickerSection: + return new _.default.variables.ArchVariableListPickerSection(e3); + case a.expressionTypeNames.listPickerSection + o.default.exprDataTypeSuffixCollection: + return new _.default.variables.ArchVariableListPickerSectionCollection(e3); + case a.expressionTypeNames.phoneNumber: + return new _.default.variables.ArchVariablePhoneNumber(e3); + case a.expressionTypeNames.phoneNumber + o.default.exprDataTypeSuffixCollection: + return new _.default.variables.ArchVariablePhoneNumberCollection(e3); + case a.expressionTypeNames.queue: + return new _.default.variables.ArchVariableQueue(e3); + case a.expressionTypeNames.queue + o.default.exprDataTypeSuffixCollection: + return new _.default.variables.ArchVariableQueueCollection(e3); + case a.expressionTypeNames.quickReplies: + return new _.default.variables.ArchVariableQuickReplies(e3); + case a.expressionTypeNames.prompt: + return new _.default.variables.ArchVariablePrompt(e3); + case a.expressionTypeNames.prompt + o.default.exprDataTypeSuffixCollection: + return new _.default.variables.ArchVariablePromptCollection(e3); + case a.expressionTypeNames.responseAsset: + return new _.default.variables.ArchVariableResponseAsset(e3); + case a.expressionTypeNames.responseAsset + o.default.exprDataTypeSuffixCollection: + return new _.default.variables.ArchVariableResponseAssetCollection(e3); + case a.expressionTypeNames.schedule: + return new _.default.variables.ArchVariableSchedule(e3); + case a.expressionTypeNames.schedule + o.default.exprDataTypeSuffixCollection: + return new _.default.variables.ArchVariableScheduleCollection(e3); + case a.expressionTypeNames.scheduleGroup: + return new _.default.variables.ArchVariableScheduleGroup(e3); + case a.expressionTypeNames.scheduleGroup + o.default.exprDataTypeSuffixCollection: + return new _.default.variables.ArchVariableScheduleGroupCollection(e3); + case a.expressionTypeNames.shippingOption: + return new _.default.variables.ArchVariableShippingOption(e3); + case a.expressionTypeNames.shippingOption + o.default.exprDataTypeSuffixCollection: + return new _.default.variables.ArchVariableShippingOptionCollection(e3); + case a.expressionTypeNames.skill: + return new _.default.variables.ArchVariableSkill(e3); + case a.expressionTypeNames.skill + o.default.exprDataTypeSuffixCollection: + return new _.default.variables.ArchVariableSkillCollection(e3); + case a.expressionTypeNames.string: + return new _.default.variables.ArchVariableString(e3); + case a.expressionTypeNames.string + o.default.exprDataTypeSuffixCollection: + return new _.default.variables.ArchVariableStringCollection(e3); + case a.expressionTypeNames.surveyAnswerOption: + return new _.default.variables.ArchVariableSurveyAnswerOption(e3); + case a.expressionTypeNames.surveyAnswerOption + o.default.exprDataTypeSuffixCollection: + return new _.default.variables.ArchVariableSurveyAnswerOptionCollection(e3); + case a.expressionTypeNames.surveyQuestion: + return new _.default.variables.ArchVariableSurveyQuestion(e3); + case a.expressionTypeNames.surveyQuestion + o.default.exprDataTypeSuffixCollection: + return new _.default.variables.ArchVariableSurveyQuestionCollection(e3); + case a.expressionTypeNames.surveyQuestionGroup: + return new _.default.variables.ArchVariableSurveyQuestionGroup(e3); + case a.expressionTypeNames.surveyQuestionGroup + o.default.exprDataTypeSuffixCollection: + return new _.default.variables.ArchVariableSurveyQuestionGroupCollection(e3); + case a.expressionTypeNames.surveyForm: + return new _.default.variables.ArchVariableSurveyForm(e3); + case a.expressionTypeNames.time: + return new _.default.variables.ArchVariableTime(e3); + case a.expressionTypeNames.time + o.default.exprDataTypeSuffixCollection: + return new _.default.variables.ArchVariableTimeCollection(e3); + case a.expressionTypeNames.timePicker: + return new _.default.variables.ArchVariableTimePicker(e3); + case a.expressionTypeNames.timeslot: + return new _.default.variables.ArchVariableTimeslot(e3); + case a.expressionTypeNames.timeslot + o.default.exprDataTypeSuffixCollection: + return new _.default.variables.ArchVariableTimeslotCollection(e3); + case a.expressionTypeNames.userQueue: + return new _.default.variables.ArchVariableUser(e3); + case a.expressionTypeNames.userQueue + o.default.exprDataTypeSuffixCollection: + return new _.default.variables.ArchVariableUserCollection(e3); + case a.expressionTypeNames.utilizationLabel: + return new _.default.variables.ArchVariableUtilizationLabel(e3); + case a.expressionTypeNames.utilizationLabel + o.default.exprDataTypeSuffixCollection: + return new _.default.variables.ArchVariableUtilizationLabelCollection(e3); + case a.expressionTypeNames.video: + return new _.default.variables.ArchVariableVideo(e3); + case a.expressionTypeNames.video + o.default.exprDataTypeSuffixCollection: + return new _.default.variables.ArchVariableVideoCollection(e3); + case a.expressionTypeNames.voiceSnippet: + return new _.default.variables.ArchVariableVoiceSnippet(e3); + case a.expressionTypeNames.wheelPicker: + return new _.default.variables.ArchVariableWheelPicker(e3); + case a.expressionTypeNames.wheelPickerItem: + return new _.default.variables.ArchVariableWheelPickerItem(e3); + case a.expressionTypeNames.wheelPickerItem + o.default.exprDataTypeSuffixCollection: + return new _.default.variables.ArchVariableWheelPickerItemCollection(e3); + case a.expressionTypeNames.workbin: + return new _.default.variables.ArchVariableWorkbin(e3); + case a.expressionTypeNames.workbin + o.default.exprDataTypeSuffixCollection: + return new _.default.variables.ArchVariableWorkbinCollection(e3); + case a.expressionTypeNames.workitem: + return new _.default.variables.ArchVariableWorkitem(e3); + case a.expressionTypeNames.worktypeStatus: + return new _.default.variables.ArchVariableWorktypeStatus(e3); + case a.expressionTypeNames.worktypeStatus + o.default.exprDataTypeSuffixCollection: + return new _.default.variables.ArchVariableWorktypeStatusCollection(e3); + case a.expressionTypeNames.wrapupCode: + return new _.default.variables.ArchVariableWrapupCode(e3); + case a.expressionTypeNames.wrapupCode + o.default.exprDataTypeSuffixCollection: + return new _.default.variables.ArchVariableWrapupCodeCollection(e3); + } + this._itemIsInvalid(t3, "the core coreVariable's expression type of '" + e3.type.expressionType + "' is not supported by this method."); + } + createArchVariableSettings(e3) { + return this._checkItemUndefinedOrNull(this._infoParm("archBaseVariable", "createArchVariableSettings"), e3), new _.default.variables.ArchVariableSettings(e3); + } + createArchBaseValueContainer(e3) { + const t3 = this._infoParm("coreExpressionContainer", "createArchBaseValueContainer"); + return this._checkItemUndefinedOrNull(t3, e3), e3.isSkillValuePairs ? new _.default.baseClasses.ArchBaseSkillValuePairs(e3) : e3.isVariableValuePairs ? new _.default.baseClasses.ArchBaseVariableValuePairs(e3) : e3.isNameValuePairs ? new _.default.baseClasses.ArchBaseNameValuePairs(e3) : e3.isDataPairList || e3.isDataPairListCollection ? new _.default.values.ArchNamedValueList(e3) : void this._itemIsInvalid(t3, "the core expression container type is not supported."); + } + getArchLanguageForTag(e3) { + return this._checkItemIsValidLiteralString(this._infoParm("languageTag", "getArchLanguageForTag"), e3), c.default.archLanguages.getByLanguageTag(e3); + } + createArchSpeechRecTermContainer(e3) { + return this._checkItemUndefinedOrNull(this._infoParm("coreSpeechRecTermContainerViewModel", "createArchSpeechRecTermContainer"), e3), new _.default.speechRec.ArchSpeechRecTermContainer(e3); + } + createArchSpeechRecTermContainers(e3) { + return this._checkItemUndefinedOrNull(this._infoParm("coreSpeechRecViewModel", "createArchSpeechRecTermContainers"), e3), new _.default.speechRec.ArchSpeechRecTermContainers(e3); + } + createArchState(e3) { + return this._checkItemUndefinedOrNull(this._infoParm("coreStateViewModel", "createArchState"), e3), new _.default.tasks.ArchState(e3); + } + createArchStateBot(e3) { + return this._checkItemUndefinedOrNull(this._infoParm("coreBotStateViewModel", "createArchStateBot"), e3), new _.default.tasks.ArchStateBot(e3); + } + createArchBranch(e3) { + return this._checkItemUndefinedOrNull(this._infoParm("coreBranchInfoViewModel", "createArchBranch"), e3), new _.default.outputs.ArchBranch(e3); + } + createArchTask(e3) { + return this._checkItemUndefinedOrNull(this._infoParm("coreTaskViewModel", "createArchTask"), e3), e3.isLoopTaskViewModel ? new _.default.tasks.ArchTaskLoop(e3) : e3.isCommonModuleTaskViewModel ? new _.default.tasks.ArchTaskCommonModule(e3) : new _.default.tasks.ArchTask(e3); + } + createArchSettingsNluDynamicSlotType(e3) { + return this._checkItemUndefinedOrNull(this._infoParm("coreDynamicSlotTypeViewModel", "createArchSettingsNluDynamicSlotType"), e3), new _.default.settings.ArchSettingsNluDynamicSlotType(e3); + } + createArchSettingsNluDynamicTimeslotType(e3) { + return this._checkItemUndefinedOrNull(this._infoParm("coreDynamicTimeslotTypeViewModel", "createArchSettingsNluDynamicTimeslotType"), e3), new _.default.settings.ArchSettingsNluDynamicTimeslotType(e3); + } + createArchSettingsNluIntent(e3) { + return this._checkItemUndefinedOrNull(this._infoParm("coreIntentSettingsViewModel", "createArchSettingsNluIntent"), e3), new _.default.settings.ArchSettingsNluIntent(e3); + } + createArchSettingsDetectionJobIntent(e3) { + return this._checkItemUndefinedOrNull(this._infoParm("coreDetectionJobIntentSettingsViewModel", "createArchSettingsDetectionJobIntent"), e3), new _.default.settings.ArchSettingsDetectionJobIntent(e3); + } + createArchSettingsNluSlot(e3) { + return this._checkItemUndefinedOrNull(this._infoParm("coreSlotSettingsViewModel", "createArchSettingsNluSlot"), e3), new _.default.settings.ArchSettingsNluSlot(e3); + } + createArchSettingsNluKnowledge(e3) { + return this._checkItemUndefinedOrNull(this._infoParm("coreKnowledgeSettingsViewModel", "createArchSettingsNluKnowledge"), e3), new _.default.settings.ArchSettingsNluKnowledge(e3); + } + createArchSettingsNluVirtualAgent(e3) { + return this._checkItemUndefinedOrNull(this._infoParm("coreVirtualAgentSettingsViewModel", "createArchSettingsNluVirtualAgent"), e3), new _.default.settings.ArchSettingsNluVirtualAgent(e3); + } + createArchSettingsSupportedLanguage(e3) { + return this._checkItemUndefinedOrNull(this._infoParm("coreLanguageOptions", "createArchSettingsSupportedLanguage"), e3), new _.default.settings.ArchSettingsSupportedLanguage(e3); + } + createArchSettingsSupportedLanguages(e3) { + return this._checkItemUndefinedOrNull(this._infoParm("coreLanguageOptions", "createArchSettingsSupportedLanguages"), e3), new _.default.settings.ArchSettingsSupportedLanguagesFlow(e3); + } + createArchActionOutput(e3) { + return this._checkItemUndefinedOrNull(this._infoParm("coreActionPathViewModel", "createArchActionOutput"), e3), new _.default.outputs.ArchActionOutput(e3); + } + createArchValidationResults(e3) { + return this._checkItemUndefinedOrNull(this._infoParm("coreValidationResults", "createArchValidationResults"), e3), new _.default.validation.ArchValidationResults(e3); + } + createArchSpeechToTextEngine(e3) { + return this._checkItemUndefinedOrNull(this._infoParm("coreSpeechToTextEngine", "createArchSpeechToTextEngine"), e3), new _.default.speechToText.ArchSpeechToTextEngine(e3); + } + createArchTtsEngine(e3) { + return this._checkItemUndefinedOrNull(this._infoParm("coreTtsEngine", "createArchTtsEngine"), e3), new _.default.textToSpeech.ArchTtsEngine(e3); + } + createArchTtsVoice(e3) { + return this._checkItemUndefinedOrNull(this._infoParm("coreTtsVoice", "createArchTtsVoice"), e3), new _.default.textToSpeech.ArchTtsVoice(e3); + } + createArchSettingsActionDefaults(e3) { + return this._checkItemUndefinedOrNull(this._infoParm("coreDefaultActionSettingsNode", "createArchSettingsActionDefaults"), e3), new _.default.settings.ArchSettingsActionDefaults(e3); + } + createArchSettingsUserInput(e3) { + return this._checkItemUndefinedOrNull(this._infoParm("coreUserInputSettingsNode", "createArchSettingsUserInputs"), e3), new _.default.settings.ArchSettingsUserInput(e3); + } + createArchSettingActionPropertyDefault(e3, t3, i3) { + this._checkItemIsArchDefinitionAction(this._infoParm("archDefinitionAction", "createArchSettingActionPropertyDefault"), e3), this._checkItemIsValidLiteralString(this._infoParm("propertyName", "createArchSettingActionPropertyDefault"), t3), this._checkItemUndefinedOrNull(this._infoParm("coreExpression", "createArchSettingActionPropertyDefault"), i3); + const n3 = this.createArchWrapper(i3); + return new _.default.settings.ArchSettingActionPropertyDefault(e3, t3, n3); + } + createArchBaseNameValuePair(e3) { + return this._checkItemUndefinedOrNull(this._infoParm("nameValuePairViewModel", "createArchBaseNameValuePair"), e3), new _.default.baseClasses.ArchBaseNameValuePair(e3); + } + } + t2.ArchCoreFactory = h, t2.default = new h(); + }, 38725: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.worktypeManager = t2.WorktypeManager = void 0; + const n2 = i2(31635), r2 = n2.__importStar(i2(36781)), o = n2.__importStar(i2(1360)), a = n2.__importStar(i2(24032)), s = n2.__importStar(i2(73270)), l = n2.__importDefault(i2(47532)), u = n2.__importDefault(i2(48019)), d = i2(41676), c = i2(81801), p = i2(27862); + class _ extends l.default { + get requiredAuth() { + return c.externalAuthorizations.authStrings.worktypesView; + } + get dependencyType() { + return p.Worktype; + } + constructor() { + super(), this.topic = a.getTopic("WorktypeManager"), this.apiCallList = s.getWorktypes, this.apiCallSingle = s.getWorktype, this._rawServerCache = {}, this.actionPropertyForUsageSearch = "", this.actionsForUsageSearch = [], this.className = "WorktypeManager", this.defaultMatchingStyle = o.startsWith, this.dependencyContext = null, this.securityError = true, this.suppressSearch = false, this.sortNotSupported = true, this.uiMetadataSectionName = "workType", this.useStartsWithKeywordForExactMatch = true, this.defaultPageSize = 100, this._initialize(), r2.serviceListen(r2.cleanUpFlow, () => this.resetState()); + } + _createItemViewModel(e3) { + return new d.WorktypeViewModel(e3); + } + get _networkModel() { + return u.default; + } + get isWorktypeManager() { + return true; + } + } + t2.WorktypeManager = _, t2.worktypeManager = new _(); + }, 38750: (e2, t2, i2) => { + "use strict"; + const n2 = i2(31635), r2 = i2(12179), o = i2(12457), a = i2(24235), s = n2.__importDefault(i2(97891)), l = n2.__importDefault(i2(5730)), u = i2(47957); + class d extends l.default { + constructor(e3, t3) { + super(e3.parentFlow, e3), this.editor_testing_tag = "PlayAudioActionParent", this.prompts = null, this._loadModel(t3); + } + getDetails() { + const e3 = this.prompts ? this.prompts.getDescription() : void 0; + return e3 ? new o.ActionDetails([u.audio.audioLabel], [e3]) : null; + } + static get managedProperties() { + return [{ audio: true, options: a.AudioViewModelOptions.create((e3) => e3.setLabel(u.audio.audioLabel).setIsOptional(false).setIninTestingField("playAudioDefault")), property: "prompts", yamlOptions: d.createYamlOptions("prompts", (e3) => e3.setPropertyName("audio")) }]; + } + } + d.info = s.default.createActionInfo({ actionClass: d, canBeInTask: true, helpTopic: r2.helpTopics.actions.playAudio, modelClass: i2(12715), name: u.actions.playAudio, scriptingName: "ArchActionPlayAudio" }), t2.A = d; + }, 38752: (e2, t2, i2) => { + const n2 = i2(2210), r2 = i2(28730), o = i2(7401), a = i2(96946), { playPositionInQueueActionType: s } = i2(30801); + function l() { + Object.defineProperties(this, { _prompts: { writable: true }, _positionInQueue: { writable: true }, _playbackMode: { writable: true } }), l.baseConstructor.apply(this, arguments); + } + r2.extend(l, s, true), Object.defineProperties(l.prototype, { pasteReIdOrRename: { value: function(e3) { + l._super.pasteReIdOrRename.apply(this, arguments), this.positionInQueue.pasteReIdOrRename(e3), this.prompts.pasteReIdOrRename(e3); + } }, pasteResolveOldToNewValues: { value: function(e3) { + l._super.pasteResolveOldToNewValues.apply(this, arguments), this.positionInQueue.pasteResolveOldToNewValues(e3), this.prompts.pasteReIdOrRename(e3); + } }, positionInQueue: { enumerable: true, get: function() { + return this._positionInQueue; + }, set: function(e3) { + this._positionInQueue = this.reviveItem(e3, o); + } }, prompts: { enumerable: true, get: function() { + return this._prompts; + }, set: function(e3) { + this._prompts = this.reviveItem(e3, n2); + } }, playbackMode: { enumerable: true, get: function() { + return this._playbackMode; + }, set: function(e3) { + this._playbackMode = this.reviveEnum(e3, a); + } } }), e2.exports = l; + }, 38764: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(11210)), r2 = i2(30801); + class o extends n2.default { + constructor(e3) { + super(e3), this._duration = this.coreFactory.createArchWrapper(e3.duration), this._trimDurationNearMaxRunningTime = this.coreFactory.createArchWrapper(e3.trimDurationNearMaxRunningTime); + } + get _actionTypeId() { + return r2.waitActionType; + } + get displayTypeName() { + return this._scriptingName; + } + get isArchActionWait() { + return true; + } + get duration() { + return this._duration; + } + get trimDurationNearMaxRunningTime() { + return this._trimDurationNearMaxRunningTime; + } + } + t2.default = o; + }, 38809: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.getDecimalPlaces = a, t2.validateDecimalPlaces = function(e3, t3, i3, n3) { + if (!t3) return true; + const s = a(e3); + return !(s > t3) || (null == i3 || i3.setParseError((0, r2.sprintf)(o.codeEditor.parseErrors.tokens.tooManyDecimalPlaces, s, i3.options.facets.decimalPlaces)), null == n3 || n3.addError(i3, (0, r2.sprintf)(o.codeEditor.parseErrors.tokens.tooManyDecimalPlaces, s, i3.options.facets.decimalPlaces), false, true), false); + }; + const n2 = i2(31635).__importDefault(i2(92140)), r2 = i2(17604), o = i2(47957); + function a(e3) { + if (n2.default.isNullOrUndefined(e3) || isNaN(e3)) return 0; + const t3 = ("" + e3).match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/); + return t3 ? Math.max(0, (t3[1] ? t3[1].length : 0) - (t3[2] ? +t3[2] : 0)) : 0; + } + }, 38863: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importDefault(i2(17405)), o = i2(17604), a = n2.__importDefault(i2(73198)), s = n2.__importDefault(i2(98717)); + class l extends r2.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "date"; + } + get displayTypeName() { + return "ArchValueDate"; + } + _checkAndSetLiteral(e3, t3, i3, n3) { + this._checkItem(e3, t3 < a.default.minDateTime.getUTCFullYear(), `the supplied numeric value for the year of ${t3} of is less than the allowed minimum of ${a.default.minDateTime.getUTCFullYear()}.`), this._checkItem(e3, t3 > a.default.maxDateTime.getUTCFullYear() - 1, `the supplied numeric value for the year of ${t3} of is greater than the allowed maximum of ${a.default.maxDateTime.getUTCFullYear() - 1}.`), this._checkItem(e3, i3 < 1, `the supplied numeric value for the month of ${i3} of is less than the allowed minimum of 1.`), this._checkItem(e3, i3 > 12, `the supplied numeric value for the month of ${i3} of is greater than the allowed maximum of 12.`), this._checkItem(e3, n3 < 1, `the supplied numeric value for the day of ${n3} of is less than the allowed minimum of 1.`), this._checkItem(e3, n3 > 31, `the supplied numeric value for the day of ${n3} of is greater than the allowed maximum of 31.`), this._setLiteral(e3, (0, o.sprintf)("%d-%02d-%02d", t3, i3, n3)); + } + setLiteralDate(e3) { + const t3 = this._infoParm("date", "setLiteralDate"); + this._checkItemIsValidLiteralString(t3, e3), new RegExp("[0-9]{4}-[0-9]{2}-[0-9]{2}").test(e3) && 10 === e3.length || s.default.itemInvalid(t3, `invalid format. Expected YYYY-MM-DD for '${e3}' where YYYY is a four digit year, MM is a two digit month, and DD is a two digit day (ex: '2020-12-05').`, this.logStr, this.displayTypeName), this._checkAndSetLiteral(t3, parseInt(e3.substring(0, 4)), parseInt(e3.substring(5, 7)), parseInt(e3.substring(8))); + } + setLiteralDateParts(e3, t3, i3) { + const n3 = this._infoParm("year", "setLiteralDateParts"); + this._checkItemIsValidLiteralInt(n3, e3, false); + const r3 = this._infoParm("month", "setLiteralDateParts"); + this._checkItemIsValidLiteralInt(r3, t3, false); + const o2 = this._infoParm("day", "setLiteralDateParts"); + this._checkItemIsValidLiteralInt(o2, i3, false), this._checkAndSetLiteral(this._infoParm("calculated date", "setLiteralDateParts"), e3, t3, i3); + } + get isArchValueDate() { + return true; + } + } + t2.default = l; + }, 38944: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(20692)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "customerSegmentCollection"; + } + get displayTypeName() { + return "ArchVariableCustomerSegmentCollection"; + } + get initialValue() { + return this._initialValue; + } + get isArchVariableCustomerSegmentCollection() { + return true; + } + } + t2.default = r2; + }, 39029: (e2, t2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const i2 = ", "; + class n2 { + constructor(e3) { + Object.defineProperties(this, { _amInBucketGeneration: { value: false, writable: true }, _amInBucketGenerationCheckFunctionCall: { value: false, writable: true }, _buildTextHelper: { value: e3, writable: true }, _funcCallStack: { value: [], writable: true }, _funcCallDepth: { value: 0, writable: true }, _genDepth: { value: 0, writable: true }, _prevGenerationsStartIdx: { value: [], writable: true }, _prevGenerationsEndIdx: { value: [], writable: true }, _resultParts: { value: [], writable: true } }); + } + static create(e3) { + const t3 = new n2(e3); + return e3.reset(), t3; + } + get _lastResultPart() { + return this._resultParts.length ? this._resultParts[this._resultParts.length - 1] : ""; + } + _addResultPart(e3, t3) { + e3 && (this._resultParts.push(e3), !t3 && this._funcCallDepth && (this._funcCallStack[this._funcCallDepth - 1] = true)); + } + _disableBucketGenerationChecks() { + this._amInBucketGeneration = false, this._amInBucketGenerationCheckFunctionCall = false; + } + addFuncCall(e3) { + return this.addResultPart(e3), this._funcCallStack.push(false), this._funcCallDepth++, this._buildTextHelper.increaseIndent(), true; + } + addNewlineIndent() { + this._resultParts.length && this._addResultPart(`${this._buildTextHelper.newLine}${this._buildTextHelper.currentIndent}`, true); + } + addResultPart(e3) { + e3 && (this._amInBucketGeneration && (this._amInBucketGenerationCheckFunctionCall && !this._funcCallDepth || this.addNewlineIndent(), this._disableBucketGenerationChecks()), this._addResultPart(e3)); + } + addFuncParmSeparator() { + this._funcCallDepth && this._funcCallStack[this._funcCallDepth - 1] && this._lastResultPart !== i2 && this.addResultPart(i2); + } + destroy() { + this._buildTextHelper = void 0, this._funcCallStack = void 0, this._funcCallDepth = void 0, this._genDepth = void 0, this._prevGenerationsStartIdx = void 0, this._prevGenerationsEndIdx = void 0, this._resultParts = void 0, this._amInBucketGeneration = void 0, this._amInBucketGenerationCheckFunctionCall = void 0; + } + endFuncCall() { + return !!this._funcCallDepth && (this._funcCallStack.pop(), this._funcCallDepth--, this._buildTextHelper.decreaseIndent(), this.addResultPart(")"), true); + } + get buildTextHelper() { + return this._buildTextHelper; + } + clearBuildTextHelper() { + this._buildTextHelper = void 0; + } + get genDepth() { + return this._genDepth; + } + genDepthIncrement() { + return this._genDepth = this._genDepth + 1, this._genDepth; + } + genDepthDecrement() { + return this._genDepth = this._genDepth - 1, this._genDepth; + } + get lastBucketGenerationText() { + let e3; + for (e3 = this._prevGenerationsEndIdx.length - 1; e3 >= 0 && !(this._prevGenerationsEndIdx[e3] > -1); e3--) ; + if (e3 < 0) return ""; + let t3 = ""; + for (let n3 = this._prevGenerationsStartIdx[e3]; n3 <= this._prevGenerationsEndIdx[e3]; n3++) t3 += this._resultParts[n3] !== i2 ? this._resultParts[n3].trim() : i2; + return t3; + } + getResult() { + return this._resultParts.join(""); + } + addGenerationSeparator(e3) { + this._buildTextHelper.increaseIndent(), this.addGenerationText(e3), this._buildTextHelper.decreaseIndent(); + } + addGenerationText(e3) { + this.addNewlineIndent(), this.addResultPart(e3); + } + setBucketGenerationStart(e3) { + this._amInBucketGeneration = true, this._amInBucketGenerationCheckFunctionCall = !!e3, this._prevGenerationsStartIdx.push(this._resultParts.length), this._prevGenerationsEndIdx.push(-1); + } + setBucketGenerationEnd() { + this._prevGenerationsEndIdx[this._prevGenerationsEndIdx.length - 1] = this._resultParts.length - 1, this._disableBucketGenerationChecks(); + } + } + t2.default = n2; + }, 39041: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importDefault(i2(92140)), o = n2.__importStar(i2(9345)), a = i2(55909), s = i2(33951), l = new class { + constructor() { + Object.defineProperties(this, { _builderDefs: { value: {} } }); + } + get className() { + return "BuilderDefinitions"; + } + get isBuilderDefinitions() { + return true; + } + getAvailableBuilderDefinitions(e3, t3, i3, n3) { + s.ParameterValidator.expectExpressionType(e3, () => a.ParameterInfo.createFunctionParameter(this.className, "getAvailableBuilderDefinitions", "builderPartResultExpressionTypeFilter"), true), s.ParameterValidator.expectString(t3, () => a.ParameterInfo.createFunctionParameter(this.className, "getAvailableBuilderDefinitions", "flowTypeFilter"), true), s.ParameterValidator.expectString(i3, () => a.ParameterInfo.createFunctionParameter(this.className, "getAvailableBuilderDefinitions", "builderCategoryIdFilter"), true), s.ParameterValidator.expectArray(n3, () => a.ParameterInfo.createFunctionParameter(this.className, "getAvailableBuilderDefinitions", "allowedBuilderIds"), true); + const l2 = []; + return r2.default.each(this._builderDefs, function(r3) { + n3 && !n3.includes(r3.id) || e3 && !e3.isMatch(r3.resultExpressionType, o.settings.exact) || i3 && !r3.isInCategory(i3) || !r3.isAvailableForFlowType(t3, true) || l2.push(r3); + }), l2; + } + getBuilderDefById(e3, t3) { + return s.ParameterValidator.expectString(e3, () => a.ParameterInfo.createFunctionParameter(this.className, "getBuilderDefById", "builderDefId")), s.ParameterValidator.expectString(t3, () => a.ParameterInfo.createFunctionParameter(this.className, "getBuilderDefById", "flowTypeFilter"), true), r2.default.find(this._builderDefs, function(i3) { + return i3.id === e3 && (!t3 || i3.isAvailableForFlowType(t3, true)); + }); + } + addBuilderDef(e3) { + this._builderDefs[e3.id] = e3; + } + }(); + t2.default = l; + }, 39096: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = i2(80295), o = n2.__importDefault(i2(8471)); + class a extends o.default { + constructor(e3) { + super(), this._checkItemUndefinedOrNull(this._infoParmCtor("coreIntentSettingsViewModel"), e3), this._coreIntentsSettingsViewModel = e3, (0, r2.makeUnenumerable)(this, "_coreIntentsSettingsViewModel"); + } + get displayTypeName() { + return "ArchSettingsNluIntents"; + } + get isArchSettingsNluIntents() { + return true; + } + get logStr() { + return this.logStrTypeOnly; + } + } + t2.default = a; + }, 39123: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.FlowOutcomeViewModel = void 0; + const n2 = i2(74483); + class r2 extends n2.NameIdConfigurationListViewModel { + constructor(e3) { + super(e3); + } + get className() { + return "FlowOutcomeViewModal"; + } + get label() { + return this._model.name; + } + } + t2.FlowOutcomeViewModel = r2; + }, 39137: (e2, t2, i2) => { + const n2 = i2(7401), r2 = i2(14075), { transferGroupActionType: o } = i2(30801); + function a() { + Object.defineProperties(this, { _allowVoicemail: { writable: true }, _user: { writable: true }, _group: { writable: true } }), a.baseConstructor.apply(this, arguments); + } + r2.extend(a, o, true), Object.defineProperties(a.prototype, { pasteReIdOrRename: { value: function(e3) { + a._super.pasteReIdOrRename.apply(this, arguments), this.allowVoicemail.pasteReIdOrRename(e3), this.group.pasteReIdOrRename(e3); + } }, pasteResolveOldToNewValues: { value: function(e3) { + a._super.pasteResolveOldToNewValues.apply(this, arguments), this.allowVoicemail.pasteResolveOldToNewValues(e3), this.group.pasteResolveOldToNewValues(e3); + } }, allowVoicemail: { enumerable: true, get: function() { + return this._allowVoicemail; + }, set: function(e3) { + this._allowVoicemail = this.reviveItem(e3, n2); + } }, group: { get: function() { + return this._group; + }, set: function(e3) { + this._group = this.reviveItem(e3, n2); + }, enumerable: true } }), e2.exports = a; + }, 39139: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.videoManager = t2.VideoManager = void 0; + const n2 = i2(31635), r2 = n2.__importStar(i2(1360)), o = n2.__importStar(i2(24032)), a = n2.__importDefault(i2(47532)), s = i2(81801), l = n2.__importDefault(i2(31498)), u = n2.__importStar(i2(90891)), d = i2(47957), c = i2(27862); + class p extends a.default { + get requiredAuth() { + return s.externalAuthorizations.authStrings.responseAssetView; + } + get dependencyType() { + return c.Video; + } + constructor() { + super(), this.topic = o.getTopic("VideoManager"), this.apiCallList = u.getVideoResponseAssets, this.apiCallSingle = u.getResponseAsset, this._rawServerCache = {}, this.className = "VideoManager", this.defaultMatchingStyle = r2.startsWith, this.dependencyContext = d.generic.video, this.securityError = true, this.suppressSearch = false, this.uiMetadataSectionName = "videos", this.useStartsWithKeywordForExactMatch = true, this.actionsForUsageSearch = [], this.actionPropertyForUsageSearch = "", this._initialize(); + } + _createItemViewModel(e3) { + return new l.default(e3); + } + } + t2.VideoManager = p, t2.videoManager = new p(); + }, 39145: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.FileType = void 0; + const n2 = i2(31635), r2 = i2(27491), o = i2(94765), a = i2(4285), s = i2(80428), l = n2.__importDefault(i2(4648)), u = i2(65220), d = i2(14394), c = i2(10798), p = i2(22226); + class _ extends o.ExpressionType { + constructor(e3, t3, i3) { + super(e3, t3, i3); + } + get className() { + return "FileType"; + } + canConvertLitToExpression(e3) { + return r2.expressionDataService.isFunctionTextAvailableForFlowTypeAndOperandTypes("ToFile", e3, [d.globalTypes.responseAsset, d.globalTypes.file]) && r2.expressionDataService.isFunctionTextAvailableForFlowTypeAndOperandTypes("FindResponseAsset", e3, [d.globalTypes.string]); + } + convertLitToExpression(e3, t3) { + return t3 && this.canConvertLitToExpression(e3) ? `ToFile(FindResponseAsset(${p.getQuotedExpressionStringLiteral(t3)}), NOT_SET)` : ""; + } + _getLiteralValueOfExpression() { + return ""; + } + get supportsLiteralEditor() { + return (0, c.isFeatureAvailable)(l.default.cannedResponseAttachmentsPostGaFeature); + } + get listManager() { + return u.fileManager; + } + createExpressionOptionClass() { + return new a.ExpressionTypeFileOptions(); + } + } + t2.FileType = _, _.typeIdentifier = s.expressionTypeNames.file; + }, 39148: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(54063)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "choiceCollection"; + } + get displayTypeName() { + return "ArchValueChoiceCollection"; + } + get isArchValueChoiceCollection() { + return true; + } + } + t2.default = r2; + }, 39168: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.NormalExpression = void 0; + const n2 = i2(31635), r2 = i2(17604), o = n2.__importDefault(i2(92140)), a = n2.__importStar(i2(69453)), s = i2(51677), l = n2.__importStar(i2(8462)), u = n2.__importStar(i2(24032)), d = n2.__importDefault(i2(7401)), c = i2(66800), p = i2(65220), _ = i2(97629), h = i2(63345), m = i2(39139), g = i2(12847), f = i2(12847), T = n2.__importStar(i2(12847)), y = n2.__importStar(i2(17498)), S = n2.__importStar(i2(36781)), A = i2(10798), N = n2.__importStar(i2(10798)), O = n2.__importStar(i2(58380)), I = i2(55909), v = i2(33951), C = i2(18638), b = n2.__importStar(i2(1115)), E = i2(1115), R = n2.__importDefault(i2(4648)), w = i2(99772), D = i2(28562), P = n2.__importDefault(i2(39041)), M = n2.__importDefault(i2(73198)), F = i2(27491), L = i2(98552), x = n2.__importStar(i2(9345)), k = i2(63352), V = n2.__importStar(i2(63352)), U = i2(14394), B = i2(46782), G = i2(92908), j = i2(59263), W = i2(80428), q = n2.__importDefault(i2(86833)), Y = i2(47957), H = i2(27862), J = u.getTopic("expression"); + function z(e3, t3) { + const i3 = o.default.find(e3.variables); + i3 !== t3 && (i3 && i3.deleteReference(e3), t3 && (e3.options.doNotTrackUsages || e3._addVariableUsage(t3), e3.variables[t3.id] = t3)); + } + function K(e3) { + e3.outOfService ? y.unRegisterExpression(e3) : y.registerExpression(e3), o.default.each(e3.properties, (e4) => { + K(e4); + }); + } + class $ extends B.BaseExpression { + get className() { + return "NormalExpression"; + } + constructor(e3) { + super(e3), this._oldBuilderConfig = {}, this._mode = V.none, this.properties = {}, this.options.resolveDefaultText(this), this.parentAudio = e3.parentAudio, this.savedLit = "", this._initializeMode(), this._initialize(); + } + _initializeMode() { + var e3; + this.model.uiMetaData || (this.model.uiMetaData = {}); + let t3 = true; + (this.parentFlow && this.parentFlow.loaded || !this.hasConfig) && (t3 = this._transitionExpressionToNewVersion()), (null === (e3 = this.options) || void 0 === e3 ? void 0 : e3.antiFeatureConfigName) && N.isFeatureAvailable(this.options.antiFeatureConfigName) && (this.outOfServiceProvider.antiFeatureConfigName = this.options.antiFeatureConfigName, this.outOfServiceProvider.outOfService = true), t3 && (this.model && this.model.uiMetaData && this.model.uiMetaData.mode === V.noValue ? this._mode = V.noValue : !this.options.isFlowLevelDefaultExpression || !this.options.flowLevelDefaultHasDefault || this.model.uiMetaData && this.model.uiMetaData.mode !== V.none ? !this.options.literalOnly || this.model && this.model.uiMetaData && this.model.uiMetaData.mode === V.expression ? this.options.expressionOnly ? this._mode = V.expression : this.options.wantVariableMode ? this._mode = V.variable : this.options.anySpecificModeAvailable ? this.model.uiMetaData && (this.model.uiMetaData.mode || 0 === this.model.uiMetaData.mode) ? this._mode = this.model.uiMetaData.mode : this._initializedModeToBuilder() || (this.options.defaultToExpression && this.options.getAllowModeExpression(this) ? this._mode = V.expression : this.options.defaultToNoValue && this.options.allowModeNoValue ? this._mode = V.noValue : !this.options.allowModeLiteral && this.options.getAllowModeExpression(this) ? this._mode = V.expression : !this.options.allowModeLiteral && this.options.allowModeNoValue ? this._mode = V.noValue : this._mode = V.literal) : this._mode = V.none : this._mode = V.literal : this._mode = V.noValue); + } + _initializedModeToBuilder() { + if (!this.options.defaultToBuilderId || !this.options.allowModeBuilder) return false; + try { + const e3 = P.default.getBuilderDefById(this.options.defaultToBuilderId, this.parentFlow.type); + if (o.default.isObject(e3)) { + const t3 = e3.createBuilder(this); + if (o.default.isObject(t3)) return this._mode = V.builder, this.builder = t3, true; + } + } catch (e3) { + J.exception(e3, "Unhandled exception processing default builder settings on expression."); + } + return false; + } + _transitionExpressionToNewVersion() { + let e3 = true; + const t3 = this.model.version ? this.model.version : 1; + if (t3 < 2 && t3 < 2) { + let t4 = this.isBlank && this.options.allowModeNoValue; + t4 && this.isLiteralMode && this.type.isMatch(U.globalTypes.string, x.settings.exact) && (t4 = false), this.options.doNotTransitionToNoValue && (t4 = false), t4 && (this.mode = V.noValue, this.model.uiMetaData.mode = V.noValue, this.isOverride = false, e3 = false); + } + return this.model.version = 2, e3; + } + get builder() { + return this._builderViewModel; + } + set builder(e3) { + this._builderViewModel !== e3 && (this._builderViewModel && this._builderViewModel.destroy(), this._builderViewModel = v.ParameterValidator.expectTrue(e3 && e3.isBaseBuilderViewModel, e3, "expression builder view model", function() { + return I.ParameterInfo.createPropertySet(this.className, "allowEmptyConfig", "value"); + }.bind(this), true), this._ensureUiMetaData(), this.model.uiMetaData.builder = e3 ? e3.model : void 0); + } + get defaultExpression() { + return this.options.allowFlowLevelDefault && this.propertyName && this.parent.info && this.parentFlow ? this.parentFlow.defaultSettings.getDefaultExpression(this.parent.info.typeId, this.propertyName) : null; + } + getEmbeddableExpressionText() { + return this.isLiteralMode && this.type.canConvertLitToExpression(this.parentFlow.type) ? this.type.convertLitToExpression(this.parentFlow.type, this.text, this.val, this) : this.config && this.config.getTextWithFuncOpTextFallback ? this.config.getTextWithFuncOpTextFallback(true) : this.text; + } + getDesignTimeAllowableValue() { + var e3, t3; + if (!this.options.hasAllowableValues || !(null === (e3 = this.type) || void 0 === e3 ? void 0 : e3.isMatch(U.globalTypes.string, x.settings.exact))) return; + let i3; + if (this.isLiteralMode) i3 = this.text; + else { + const e4 = null === (t3 = this.getEmbeddableExpressionText()) || void 0 === t3 ? void 0 : t3.trim(); + (null == e4 ? void 0 : e4.length) > 2 && e4.startsWith('"') && e4.endsWith('"') && (i3 = e4.substring(1, e4.length - 1)); + } + return (null == i3 ? void 0 : i3.length) ? this.options.getAllowableValueForValue(i3) : void 0; + } + getCustomJsonText(e3) { + switch (this.mode) { + case k.ExpressionModes.expression: + case k.ExpressionModes.variable: + case k.ExpressionModes.builder: { + const t3 = this.getEmbeddableExpressionText(); + return (null == t3 ? void 0 : t3.length) ? this.getUiMetaData(G.uiMetaDataKey.cameFromNull) && t3.trim() === M.default.notSet ? M.default.null : e3 ? `{{ ${t3} }}` : `{{ ${t3.trim()} }}` : "{{}}"; + } + case k.ExpressionModes.literal: + return this.type.convertLitToCustomJsonStr(this.parentFlow.type, this.text, this.val); + case k.ExpressionModes.none: + case k.ExpressionModes.noValue: + default: + return ""; + } + } + get displayValue() { + return this.getEmbeddableExpressionText(); + } + getDisplayName() { + return this.displayValue; + } + get isExpressionMode() { + return this._mode === V.expression; + } + get isLiteralMode() { + return this._mode === V.literal; + } + get isNoValueMode() { + return this._mode === V.noValue; + } + get isNoValueModeWithNoFallback() { + return this.isEmptyNoFallback && this.isNoValueMode; + } + get isBuilderMode() { + return this._mode === V.builder; + } + get isVariableMode() { + return this._mode === V.variable; + } + get isBlankOrNotSetOrEmpty() { + return this.isBlank || this.isEmpty || this.isExpressionMode && (this.isNotSet || '""' === this.text); + } + get hasWarning() { + var e3; + return !(!this.isBuilderMode || !(null === (e3 = this.builder) || void 0 === e3 ? void 0 : e3.hasWarning)) || super.hasWarning; + } + get mode() { + return this._mode; + } + set mode(e3) { + this._mode !== e3 && (this._mode = e3, this._mode === V.literal && this._hydrateAssignableProperties(), this._reset(), this.processText(), this._ensureUiMetaData(), y.registerExpression(this), this._executeCallbacks(this.valueChangedCallbacks, "valueChangedCallbacks"), this._fireEvent(S.expressionValueChanged), this._fireEvent(S.expressionModeChanged), this.initializeDesignTimeCalled && !this.isTransitory && b.validateItem(this.parent, true)); + } + _initializeDesignTime() { + if (super._initializeDesignTime(), this._transitionExpressionToNewVersion(), this.type.initializeDesignTime(this), this.builder && this.builder.initializeDesignTime(), o.default.each(this.properties, (e3) => { + e3.initializeDesignTime(); + }), this.regenBuilderText(), o.default.isFunction(this.options.initializedForDesignTimeCallback)) try { + this.options.initializedForDesignTimeCallback(); + } catch (e3) { + this.topic.traceOnce(`expression options initializeDesignTimeCallback - ${this.id}`, (t3) => t3.exception(e3, "NormalExpression initializedForDesignTimeCallback")); + } + this.options.requiredFlowChannelType && (this.parentFlow.definition.hasChannelType(this.options.requiredFlowChannelType) || (this.outOfService = true)), this.options.requiresFlowQuickRepliesSetting && (this.parentFlow.definition.supportsQuickRepliesFlowLevelSetting || (this.outOfService = true)); + } + registerDependencies() { + var e3; + if (!this.isTransitory) if (this.isLiteralMode && this.val && (null === (e3 = this.type) || void 0 === e3 ? void 0 : e3.isMatch(U.globalTypes.prompt, x.settings.exact))) { + const e4 = L.expressionItems.isSystemId(this.val) ? H.SystemPrompt : H.UserPrompt; + y.registerPrompt(this.text, e4, this.parentFlow, this.val); + } else this._registerPromptsFromExpressionText(), this._registerJsonDependencies(); + } + outOfServiceChanged(e3) { + K(this), !e3 && this.initializeDesignTimeCalled && (this.regenBuilderText(), this.processText(true), b.validateItem(this, true, true)); + } + regenBuilderText() { + this.builder && this.mode === V.builder && !this.outOfService && this.setText(this.builder.buildExpressionText()); + } + resetToDefaultValue(e3) { + this._reset(); + const t3 = this.options.defaultText || ""; + this.model.uiMetaData && (this.model.uiMetaData.mode = void 0), this._initializeMode(), this.setText(t3, e3, null); + } + get suppressResetOnTextChange() { + return this.isLiteralMode; + } + get shouldBeNoValue() { + return this.isLiteralMode && !this.optionsAs().isCollection ? this.options.allowModeNoValue && this.isBlank && !this.optionsAs().allowEmpty : this.options.allowModeNoValue && this.isBlank; + } + get val() { + if (!this.config) return null; + const e3 = o.default.find(this.config, function(e4) { + return e4 && e4.val; + }); + return e3 ? e3.val : null; + } + getDependencyTrackingId() { + var e3; + return o.default.isFunction(null === (e3 = this.options) || void 0 === e3 ? void 0 : e3.getDependencyTrackingId) ? this.options.getDependencyTrackingId(this) : this.val; + } + get variableReference() { + return this.config && (this.config.sysref || this.config.ref) || null; + } + _getHasError() { + var e3; + if (this.isBuilderMode && (null === (e3 = this.builder) || void 0 === e3 ? void 0 : e3.hasError)) return true; + if (super._getHasError()) return true; + if (this.isLiteralMode) { + if (this._hasLiteralError) return true; + if (this.typeHasAssignableProperties && this.properties) return Object.values(this.properties).some((e4) => !e4.outOfService && e4.hasError); + if (this.isBlank && this.options && this.optionsAs().allowEmpty) return false; + } + return !!this.isBlank && (!this.shouldBeNoValue || !this.isNoValueMode) && (!this.isOptional || this.isOverride); + } + _addVariableUsage(e3) { + this.isVariableMode ? e3.addWriter(this) : e3.addReader(this); + } + getExpressions() { + if (this.isBuilderMode && this.builder) return this.builder.getInternalExpressions(); + const e3 = [this]; + return o.default.each(this.properties, (t3) => { + e3.push(...t3.getExpressions()); + }), e3; + } + get subProperties() { + return Object.values(this.properties); + } + getPropertyDefinition(e3) { + return this.type.getPropertyDefinition(e3); + } + getProperty(e3, t3) { + if (e3 && this.properties && this.isLiteralMode) { + if (!t3) return this.properties[e3.toLowerCase()]; + const i3 = this.properties[e3.toLowerCase()]; + if (null == i3 ? void 0 : i3.isLiteralMode) return i3; + } + } + get typeHasAssignableProperties() { + return this.type.propertiesAllowAssignment; + } + _destroyAssignableProperties(e3) { + this.properties && (o.default.each(this.properties, (e4) => { + e4._destroy(); + }), this.properties = void 0, e3 || (this.model.properties = void 0)); + } + _hydrateAssignableProperties(e3) { + if (!this.type.propertiesAllowAssignment) return; + const t3 = this.type.properties; + o.default.isEmpty(t3) || (e3 || o.default.isEmpty(this.properties)) && (this._destroyAssignableProperties(true), this.model.properties = this.model.properties || {}, o.default.each(t3, (e4) => { + const t4 = this.hydratePropertyFromPropertyDefinition(e4); + this.addAutoCleanedUpEventSinkWatch(S.listOrderChanged, t4, () => this._fireEvent(S.listOrderChanged)), this.addAutoCleanedUpEventSinkWatch(S.collectionItemValueChanged, t4, () => this._fireEvent(S.collectionItemValueChanged)), this.addAutoCleanedUpEventSinkWatch(S.expressionValueChanged, t4, () => this._fireEvent(S.expressionValueChanged)); + }), this.type.propertiesCreatedForThisTypeInstance(this), this.initializeDesignTimeCalled && o.default.each(this.properties, (e4) => { + e4.initializeDesignTime(); + })); + } + hydrateAssignableProperties(e3) { + this._hydrateAssignableProperties(e3); + } + hydratePropertyFromPropertyDefinition(e3, t3) { + var i3, n3, r3, o2, a2; + const s2 = null === (i3 = this.options.customizations) || void 0 === i3 ? void 0 : i3.properties, u2 = this.options.customizationsRoot, c2 = e3.name, p2 = c2.toLowerCase(); + let _2; + this.model.properties && (_2 = this.model.properties[c2]), _2 instanceof d.default || (_2 = new d.default({})); + const h2 = new j.ExpressionParameters(this.parentFlow, this.parent, _2, e3.displayValue); + let m2; + return h2.type = e3.type, h2.propertyName = p2, h2.label = e3.displayValue || e3.name, h2.options = l.buildOptions(e3.type, void 0, this.parentFlow), h2.transitory = this.isTransitory, e3.isOptional && (h2.options.isOptional = true), e3.noValueRuntimeStr && h2.options.setModeNoValueRuntimeEvaluationStr(e3.noValueRuntimeStr), e3.description && h2.options.setDescriptionInfo(c2, e3.description), e3.minLength && (null === (n3 = h2.options.facets) || void 0 === n3 ? void 0 : n3.setMinLength) && (null === (r3 = h2.options.facets) || void 0 === r3 || r3.setMinLength(e3.minLength)), e3.maxLength && (null === (o2 = h2.options.facets) || void 0 === o2 ? void 0 : o2.setMaxLength) && (null === (a2 = h2.options.facets) || void 0 === a2 || a2.setMaxLength(e3.maxLength)), e3.isReadOnly && h2.options.setReadOnly(true), this.type.configurePropertyCreationParams(this, e3, h2), s2 && h2.options.setAndApplyCustomizations(u2, s2[c2]), this.properties || t3 || (this.properties = {}), this.options.assignablePropertiesNoExpression && h2.options.setAssignablePropertiesNoExpression(true).setAllowModeExpression(false), m2 = h2.type && h2.type.isCollection ? new $.CollectionExpression(h2) : new $(h2), e3.featureConfigName && (m2.outOfService = (0, A.isFeatureUnavailable)(e3.featureConfigName)), e3.minItems && m2.options.setMinItems && m2.options.setMinItems(e3.minItems), e3.maxItems && m2.options.setMaxItems && m2.options.setMaxItems(e3.maxItems, e3.maxItemsIsSoftLimit), t3 || (this.properties[p2] = m2, this.model.properties[c2] = m2.model), m2._propertyParent = this, e3.defaultValue && !m2.text && m2.setText(e3.defaultValue, false, true), m2; + } + get propertyParent() { + return this._propertyParent; + } + get parentList() { + return this._parentList; + } + set parentList(e3) { + this._parentList ? (0, g.error)("can only set this once!") : this._parentList = e3; + } + get parentExpressionContainerItem() { + return this._parentExpressionContainerItem; + } + set parentExpressionContainerItem(e3) { + this._parentExpressionContainerItem = e3; + } + _initialize() { + this._hydrateBuilder(true), super._initialize(), this.isLiteralMode && this._hydrateAssignableProperties(), K(this); + } + _ensureUiMetaData() { + super._ensureUiMetaData(), this.model.uiMetaData.mode = this.mode; + } + _hydrateBuilder(e3) { + if ((!e3 || this.mode !== V.builder || !this.builder) && this.model && this.model.uiMetaData && this.model.uiMetaData.builder) { + const e4 = this.model.uiMetaData.builder.builderDefId; + let t3 = false; + const i3 = P.default.getBuilderDefById(e4); + if (i3) try { + this.builder = i3.reviveBuilder(this, this.model.uiMetaData.builder, true), t3 = true, this.initializeDesignTimeCalled && this.builder.initializeDesignTime(); + } catch (t4) { + this.topic.exception(t4, "Unable to revive the expression builder for id '" + e4 + "'. Switching back to regular expression mode to keep any builder generated expression text."); + } + else this.topic.error("Unable to find expression builder for id '" + e4 + "'. Switching back to regular expression mode to keep any builder generated expression text."); + t3 || (this.mode = V.expression); + } + } + _transitionLitToExpression() { + return this.mode === V.expression || this.mode === V.builder ? this.text : (this.savedLit = this.text || "", this.type.convertLitToExpression(this.parentFlow.type, this.text, this.val, this)); + } + addClipboardDependencies(e3) { + var t3; + super.addClipboardDependencies(e3); + try { + switch ((null === (t3 = this.type) || void 0 === t3 ? void 0 : t3.isCustomType) && e3.copyCutAddDependencyCustomType(this.type), this.mode) { + case V.variable: + e3.copyCutAddDependencyVariable(this._getReferenceByName(this.text), this.supportedFlowTypes); + break; + case V.builder: + case V.expression: + o.default.each(this.variables, function(t4) { + e3.copyCutAddDependencyVariable(t4, this.supportedFlowTypes), t4.type.isCustomType && e3.copyCutAddDependencyCustomType(t4.type); + }.bind(this)), this._builderViewModel && this._builderViewModel.addClipboardDependencies(e3); + } + } finally { + e3.copyCutResetSupportedFlowTypeFilter(); + } + } + get isOverride() { + return this.model && this.model.uiMetaData && this.model.uiMetaData.hasOwnProperty("isOverride"); + } + set isOverride(e3) { + true === e3 ? (this.model.uiMetaData || this._ensureUiMetaData(), this.model.uiMetaData.isOverride = true) : this.model.uiMetaData && delete this.model.uiMetaData.isOverride, O.fireEvent(this, S.expressionOverrideChanged); + } + copyExpressionValue(e3) { + this.mode = e3.mode, this.builder = void 0, e3.model && e3.model.uiMetaData && e3.model.uiMetaData.builder && (this._ensureUiMetaData(), this.model.uiMetaData.builder = o.default.deepClone(e3.model.uiMetaData.builder), this._hydrateBuilder(false)), e3._mode === V.literal ? (this._hydrateAssignableProperties(), this.properties && Object.entries(this.properties).forEach(([t3, i3]) => { + const n3 = e3.getProperty(t3); + n3 ? i3.copyExpressionValue(n3) : (0, f.warn)(`copyExpressionValue missing expression property: ${t3}`); + })) : this._destroyAssignableProperties(), this.type.copyExpressionValue(this, e3), super.copyExpressionValue(e3); + } + getAvailableExpressionBuilders() { + const e3 = this.type.getAvailableExpressionBuilders(this.parentFlow.type, this.options.allowedBuilderCategoryIdFilter, this.options.allowedBuilderIds) || [], t3 = o.default.uniq(e3, false, (e4) => { + let t4 = ""; + return o.default.each(e4.getAvailableBuilderPartDefinitionsForFlowType(this.parentFlow.type), (e5) => { + t4 += e5.id; + }), t4; + }); + return this.builder && (t3.find((e4) => e4.id === this.builder.builderDefId) || t3.push(this.builder.builderDef)), t3; + } + resetForBuilder(e3, t3) { + if (this.outOfService && !e3 || this.mode !== V.builder) return; + const i3 = this.builder; + if (!i3) return; + const n3 = this.options.builderLanguagesSequenceConfig; + n3 && i3.configureForLanguageSequence(n3, t3), this.setText(i3.buildExpressionText(), false, false); + } + _destroy() { + o.default.each(this.variables, (e3) => { + e3.deleteReference(this); + }), y.unRegisterExpression(this), this.builder && this.builder.destroy(), this._destroyAssignableProperties(), super._destroy(); + } + checkVariableModeType() { + return this.isVariableMode && this.getHasVariableTypeMismatch() ? (z(this, null), this.setConfigAndMetaData(null), this.consumesSecureData = false, (0, r2.sprintf)(Y.expression.variableTypeError, this.text, this.type.displayString)) : null; + } + getHasVariableTypeMismatch(e3) { + return e3 || (e3 = this._getReferenceByName(this.text)), e3 && !this.type.isMatch(e3.type); + } + get isNormalExpression() { + return true; + } + get isCollectionExpression() { + return false; + } + processText(e3, t3) { + if (!(this.isBuilderMode && this.builder && this.builder.hasError && this.builder.builderParts.length) || this.builder.owningExpression.isTransitory) try { + if (!this.isExpressionMode && !this.isBuilderMode || this.options.literalOnly) if (this.isVariableMode) { + if (!this.parentFlow.shouldParseExpressions) return; + !(function(e4) { + const t4 = e4.text ? e4._getReferenceByName(e4.text) : void 0; + t4 && !e4.getHasVariableTypeMismatch(t4) ? (z(e4, t4), e4.setConfigAndMetaData(L.expressionItems.reference(1, t4, e4.text)), e4.consumesSecureData = t4.isSecure) : (z(e4, null), e4.setConfigAndMetaData(L.expressionItems.empOrEnf(e4.type, e4.options)), e4.consumesSecureData = false); + })(this); + } else if (this.isLiteralMode) if (this.clearParseResult(), !this.options.allowFlowLevelDefault && !this.options.allowEmptyConfig || this.isOverride || !this.isBlank || this.typeHasAssignableProperties || this.isCollectionExpression) if (this.isCollectionExpression) this.processCollection(); + else { + let e4; + this.config && this.config.lit && this.type.additionLiteralProperties && (e4 = o.default.pick(this.config.lit, this.type.additionLiteralProperties)), this.setConfigAndMetaData(q.default.getLiteral(this, this.isLiteralMode && this.type.isCustomType ? void 0 : this.text, this.val, e4)), this.type.isCustomType && s.CodeParser.getParserForLanguage(this.customTypeLitCodeLanguage).parseAndSetExpressionConfig(this); + } + else this.setConfigAndMetaData(L.expressionItems.emp(this.type)); + else this.isNoValueMode && (this.isEmptyNoFallback ? this.setConfigAndMetaData(L.expressionItems.enf(this.type)) : this.setConfigAndMetaData(L.expressionItems.emp(this.type))); + else super.processText(e3, t3); + } catch (e4) { + T.error("error during processText", e4); + } finally { + this.hasValidationError = this.hasError, this.hasValidationWarning = this.hasWarning; + } + } + rebuildOrCreateBuilderByDefId(e3) { + if (this.isBuilderMode) if (this.builder && this.builder.builderDefId === e3) this.config || this.resetForBuilder(false, false); + else { + const t3 = P.default.getBuilderDefById(e3); + t3 ? (this.builder = t3.createOrReviveBuilder(this), this.initializeDesignTimeCalled && this.builder.initializeDesignTime()) : this.topic.error("Could not find builder definition for id " + e3); + } + } + get parseResult() { + return this._parseResult; + } + search(e3) { + this.isLiteralMode ? this.type.searchExpression(e3, this) : e3.checkText(this, this.text, this.label); + } + setAsExpression(e3, t3, i3) { + this.setText(e3, t3, void 0, V.expression, void 0, i3); + } + setAsLiteral(e3, t3) { + this.setText(e3, void 0, void 0, V.literal, t3); + } + setAsNoValue() { + this.setText("", void 0, void 0, V.noValue), this.setConfigAndMetaData(L.expressionItems.empOrEnf(this.type, this.options)), this._fireEvent(S.expressionValueChanged); + } + setAsNoValueNoFallback() { + this.options.allowNoValueModeWithNoFallback ? (this.setText("", void 0, void 0, V.noValue), this.setConfigAndMetaData(L.expressionItems.enf(this.type)), this._fireEvent(S.expressionValueChanged)) : (this.topic.errorWithErrorObjectInfo("Can not setAsNoValueNoFallback because it is not allowed expressionId", this, true), this.setAsNoValue()); + } + setCommunicationBuilderText(e3, t3) { + var i3; + if (N.isFeatureAvailable(R.default.botFlowsMsIntegration) && (null === (i3 = this.options) || void 0 === i3 ? void 0 : i3.builderLanguagesSequenceConfig) && Object.values(this.parentFlow.languages.supportedLanguagesLCase).every((e4) => this.options.builderLanguagesSequenceConfig.availableLanguages[e4])) return this.resetForBuilder(true, false), true; + if (!this.isBuilderMode) { + if (!t3 || !this.options.allowModeBuilder) return false; + this.setModeWithTransition(V.builder, D.builderIds.parts.genericCommunication); + } + const n3 = this.builder; + if (!n3) return false; + switch (n3.builderDef.id) { + case D.builderIds.parts.genericCommunication: + case D.builderIds.parts.markdownCommunication: + case D.builderIds.parts.markdownString: + break; + default: + return false; + } + n3.addOrSetStringLiteralBuilderPart(e3), this.setText(n3.buildExpressionText()), this._ensureUiMetaData(), this.model.uiMetaData.builder = n3.model; + } + setStringBuilderText(e3, t3) { + if (!this.isBuilderMode) { + if (!t3 || !this.options.allowModeBuilder) return false; + this.setModeWithTransition(V.builder, D.builderIds.parts.genericString); + } + const i3 = this.builder; + if (!i3) return false; + i3.addOrSetStringLiteralBuilderPart(e3), this.setText(i3.buildExpressionText()), this._ensureUiMetaData(), this.model.uiMetaData.builder = i3.model; + } + checkDefaultStringBuilderText(e3) { + this.text && this.text !== M.default.notSet || this.setStringBuilderText(e3, true); + } + _fireEvent(e3) { + O.fireEvent(this, e3); + } + get isOutput() { + var e3; + return null === (e3 = this.options) || void 0 === e3 ? void 0 : e3.isOutput; + } + setAsOutput(e3) { + this.options.setAsOutput().setAllowSecure(!e3), this.shouldBeNoValue ? this.setModeWithTransition(V.noValue) : this.options.wantVariableMode && this.setModeWithTransition(V.variable); + } + setModeWithTransition(e3, t3) { + this.mode === e3 && (e3 !== V.builder || this.builder && this.builder.builderDefId === t3) || (this.isBuilderMode && (e3 === V.expression || e3 === V.builder) && this.builder && (this._oldBuilderConfig[this.builder.builderDefId] = { builderConfig: this.model.uiMetaData.builder, text: this.text }, this.builder = void 0), e3 === V.builder && (this._ensureUiMetaData(), this._oldBuilderConfig[t3] && (this._oldBuilderConfig[t3].text === this.text && (this.model.uiMetaData.builder = this._oldBuilderConfig[t3].builderConfig), delete this._oldBuilderConfig[t3])), this.isLiteralMode && e3 === V.expression ? this.model.text = this._transitionLitToExpression() : this.isExpressionMode || this.isBuilderMode ? e3 === V.literal ? this.model.text = this._getLiteralValueOfExpression() : e3 === V.variable && this.type.dataType === W.expressionTypeNames.prompt && 0 === F.expressionDataService.getPromptsFromExpressionText(this.text).length && (this.model.text = "") : this.isNoValueMode && e3 !== V.variable && (this.model.text = this.options.defaultText), this.mode = e3, this.rebuildOrCreateBuilderByDefId(t3), this._fireEvent(S.expressionValueChanged)); + } + _getLiteralValueOfExpression() { + return (this.savedLit || "" === this.savedLit) && this.type.isMatch(U.globalTypes.string) ? this.savedLit : this.type.getLiteralValueOfExpression(this); + } + setText(e3, t3, i3, n3, r3, a2) { + var s2, l2; + this.getUiMetaData(G.uiMetaDataKey.cameFromNull) && e3 !== this.model.text && delete this.model.uiMetaData.cameFromNull, this.isLiteralMode && (null === (s2 = this.options) || void 0 === s2 ? void 0 : s2.wantLowerCaseStringLiteralValue) && o.default.isString(e3) && (e3 = e3.toLowerCase()), (null === (l2 = this.type) || void 0 === l2 ? void 0 : l2.isCustomType) && (this.customTypeLitCodeLanguage = r3), super.setText(e3, t3, i3, n3, r3, a2); + } + update(e3, t3, i3) { + this._reset(), this.mode = V.literal, this.model.text = e3, this.setConfigAndMetaData(q.default.getLiteral(this, e3, t3, i3)), y.registerExpression(this), (0, E.validateNode)(this.parent, true), this._executeCallbacks(this.valueChangedCallbacks, "valueChangedCallbacks"), this._fireEvent(S.expressionValueChanged); + } + updateFromConfigListManagerItem(e3) { + let t3; + this.type.isMatch(U.globalTypes.userQueue, x.settings.typeOf) && (t3 = {}, t3.username = e3.username), this.update(e3.label, e3.id, t3); + } + validate(e3) { + var t3, i3, n3, s2; + if (this.outOfService || this.isDestroyed) return true; + if (e3.isDeep && this.renamePromptVariables(), this.isExpressionMode) { + if (!this.options.getAllowModeExpression(this)) return this.setParseAndValidationError(Y.expression.expressionModeNotAllowed, e3), false; + } else if (this.isLiteralMode) { + if (!this.options.allowModeLiteral) return this.setParseAndValidationError(Y.expression.literalModeNotAllowed, e3), false; + if ((null === (t3 = this.text) || void 0 === t3 ? void 0 : t3.length) > M.default.maxExpressionTextLength) return this.setParseAndValidationError((0, r2.sprintf)(Y.expression.expressionLengthToLong, this.text.length, M.default.maxExpressionTextLength), e3), false; + let i4 = true; + if (o.default.each(this.properties, (t4) => { + var n4; + t4.outOfService || (t4.isNoValueMode ? (null === (n4 = this.getPropertyDefinition(t4.propertyName)) || void 0 === n4 ? void 0 : n4.isRequired) && this.typeHasAssignableProperties && (this.setParseAndValidationError((0, r2.sprintf)(a.architect.requiredPropertyMissing, t4.propertyName), e3), i4 = false) : t4.validate(e3) || (i4 = false)); + }), !i4) return i4; + } else if (this.isVariableMode) { + if (!this.options.allowModeVariable) return this.setParseAndValidationError(Y.expression.variableModeNotAllowed, e3), false; + } else if (this.isNoValueMode) { + if (!this.options.allowModeNoValue) return this.setParseAndValidationError(Y.expression.noValueModeNotAllowed, e3), false; + } else if (this.isBuilderMode) { + if (!this.options.allowModeBuilder) return this.setParseAndValidationError(Y.expression.builderModeNotAllowed, e3), false; + if (!this.builder) return this.setParseAndValidationError(Y.builders.noBuilderSpecified, e3), false; + if (!this.builder.validate(e3)) { + const t4 = this.builder.overrideErrorText || Y.expression.builderInError; + return this.setParseError(t4), super.validate(e3), false; + } + { + const t4 = null === (s2 = null === (n3 = null === (i3 = this.builder) || void 0 === i3 ? void 0 : i3.builderValidationResults) || void 0 === n3 ? void 0 : n3.warningStringsArray) || void 0 === s2 ? void 0 : s2[0]; + if (t4) { + const i4 = super.validate(e3); + return i4 || this.setParseWarning(t4), i4; + } + } + } + return super.validate(e3); + } + _getMediaAssetId() { + var e3, t3, i3, n3; + return null !== (n3 = null === (i3 = null === (t3 = null === (e3 = this.model) || void 0 === e3 ? void 0 : e3.config) || void 0 === t3 ? void 0 : t3.lit) || void 0 === i3 ? void 0 : i3.val) && void 0 !== n3 ? n3 : null; + } + get hasMediaReference() { + return !!this.getMediaReference(); + } + getMediaReference() { + var e3; + const t3 = this.type.isMatch(U.globalTypes.image, x.settings.exact), i3 = this.type.isMatch(U.globalTypes.responseAsset, x.settings.exact), n3 = this.type.isMatch(U.globalTypes.file, x.settings.exact), r3 = this.type.isMatch(U.globalTypes.video, x.settings.exact), o2 = this.type.isMatch(U.globalTypes.digitalAudio, x.settings.exact); + if ((t3 || i3 || n3 || r3 || o2) && C.permissionServiceHelper.canViewResponseAsset()) { + let a2; + if (this.isLiteralMode) a2 = this._getMediaAssetId(); + else if (this.isBuilderMode && (0, w.isBaseBuilderWithBuilderPartsViewModel)(this.builder)) { + let t4, i4; + if ((null === (e3 = this.parentFlow) || void 0 === e3 ? void 0 : e3.areFlowFilterPreviewOptionsActive) ? (t4 = this.parentFlow.getFlowFilterPreviewOptionsExpressionDisplayOptions(this), i4 = this.builder.findBestContainerPartForCriteria(t4.criteria) || this.builder) : i4 = this.builder, i4) { + let e4; + i4.getExpressionDetailParts(t4).find((t5) => { + t5.expression.hasMediaReference && (e4 = t5.expression); + }), e4 && (a2 = e4._getMediaAssetId()); + } + } + if (a2) { + if (t3) return _.imageManager.getItem(a2); + if (i3) return h.responseAssetManager.getItem(a2); + if (n3) return p.fileManager.getItem(a2); + if (r3) return m.videoManager.getItem(a2); + if (o2) return c.digitalAudioManager.getItem(a2); + } + } + } + get errorLabel() { + return this.propertyParent ? (this.label || (0, g.error)(`Missing label for expression: ${this.propertyName}`), `${this.propertyParent.errorLabel} \u2192 ${this.label || this.propertyName}`) : this.label || this.propertyName; + } + removeDependantValidationIssues(e3, t3, i3) { + t3.isNormalExpression && t3.properties && Object.entries(t3.properties).forEach(([t4, n3]) => { + e3.removeIssues(n3, i3); + }); + } + allowExpandedVariableReference(e3) { + return !(null == e3 ? void 0 : e3.hierarchicalParent) || !this.isVariableMode || !this.options.isOutput; + } + get isBooleanTrue() { + switch (this._mode) { + case V.expression: + return this.text === M.default.true; + case V.literal: + if (this.type.isMatch(U.globalTypes.boolean, x.settings.exact)) return this.text === M.default.true; + } + return false; + } + updateExpressionFromConfig(e3, t3) { + if (e3 && e3.id && t3) { + let i3; + switch (t3.searchManagers[0].configListManager.className) { + case "WhatsAppMessagingIntegrations": + case "FacebookMessagingIntegrations": + i3 = e3.accountId; + break; + default: + i3 = ""; + } + this.text = i3, this.config.lit.val = e3.id; + } else this.text = "", this.config.lit.val = void 0; + } + toString() { + return `${super.toString()} - mode:${this.mode}`; + } + } + t2.NormalExpression = $; + }, 39194: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.BaseActionNoInputNoMatchModel = void 0; + const n2 = i2(31635), r2 = i2(68794), o = i2(94858), a = i2(80295), s = n2.__importDefault(i2(7401)), l = i2(80295); + class u extends o.BaseActionModel { + constructor(e3) { + super(e3), (0, l.makeUnenumerable)(this, "_customizeNoInput"), (0, l.makeUnenumerable)(this, "_customizeNoInput"), (0, l.makeUnenumerable)(this, "_customizeNoMatch"), (0, l.makeUnenumerable)(this, "_noInputs"), (0, l.makeUnenumerable)(this, "_noInputReprompts"), (0, l.makeUnenumerable)(this, "_noMatches"), (0, l.makeUnenumerable)(this, "_noMatchReprompts"), (0, l.makeUnenumerable)(this, "_voiceEndOfInputTimeout"), (0, l.makeUnenumerable)(this, "_paths"); + } + get customizeNoInput() { + return this._customizeNoInput; + } + set customizeNoInput(e3) { + this._customizeNoInput = this.reviveItem(e3, s.default); + } + get customizeNoMatch() { + return this._customizeNoMatch; + } + set customizeNoMatch(e3) { + this._customizeNoMatch = this.reviveItem(e3, s.default); + } + get noInput() { + return this.noInputs && this.noInputs[0]; + } + set noInput(e3) { + this.noInputs = [e3]; + } + get noMatch() { + return this.noMatches && this.noMatches[0]; + } + set noMatch(e3) { + this.noMatches = [e3]; + } + get noInputs() { + return this._noInputs; + } + set noInputs(e3) { + this._noInputs = this.reviveArray(e3, s.default); + } + get noInputReprompts() { + return this._noInputReprompts; + } + set noInputReprompts(e3) { + this._noInputReprompts = this.reviveItem(e3, s.default); + } + get noMatches() { + return this._noMatches; + } + set noMatches(e3) { + this._noMatches = this.reviveArray(e3, s.default); + } + get noMatchReprompts() { + return this._noMatchReprompts; + } + set noMatchReprompts(e3) { + this._noMatchReprompts = this.reviveItem(e3, s.default); + } + get voiceEndOfInputTimeout() { + return this._voiceEndOfInputTimeout; + } + set voiceEndOfInputTimeout(e3) { + this._voiceEndOfInputTimeout = this.reviveItem(e3, s.default); + } + get paths() { + return this._paths; + } + set paths(e3) { + this._paths = this.reviveArray(e3, r2.ActionOutput); + } + pasteResolveOldToNewValues(e3) { + super.pasteResolveOldToNewValues(e3), this._customizeNoInput && this._customizeNoInput.pasteResolveOldToNewValues(e3), this._customizeNoMatch && this._customizeNoMatch.pasteResolveOldToNewValues(e3), this._noInputs && this._noInputs.forEach((t3) => t3.pasteResolveOldToNewValues(e3)), this._noInputReprompts && this._noInputReprompts.pasteResolveOldToNewValues(e3), this._noMatches && this._noMatches.forEach((t3) => t3.pasteResolveOldToNewValues(e3)), this._noMatchReprompts && this._noMatchReprompts.pasteResolveOldToNewValues(e3), this._voiceEndOfInputTimeout && this._voiceEndOfInputTimeout.pasteResolveOldToNewValues(e3), this._paths && this._paths.forEach((t3) => t3.pasteResolveOldToNewValues(e3)); + } + pasteReIdOrRename(e3) { + super.pasteReIdOrRename(e3), this._customizeNoInput && this._customizeNoInput.pasteReIdOrRename(e3), this._customizeNoMatch && this._customizeNoMatch.pasteReIdOrRename(e3), this._noInputs && this._noInputs.forEach((t3) => t3.pasteReIdOrRename(e3)), this._noInputReprompts && this._noInputReprompts.pasteReIdOrRename(e3), this._noMatches && this._noMatches.forEach((t3) => t3.pasteReIdOrRename(e3)), this._noMatchReprompts && this._noMatchReprompts.pasteReIdOrRename(e3), this._voiceEndOfInputTimeout && this._voiceEndOfInputTimeout.pasteReIdOrRename(e3), this._paths && this._paths.forEach((t3) => t3.pasteReIdOrRename(e3)); + } + } + t2.BaseActionNoInputNoMatchModel = u, n2.__decorate([(0, a.enumerable)(true), n2.__metadata("design:type", Object), n2.__metadata("design:paramtypes", [Object])], u.prototype, "customizeNoInput", null), n2.__decorate([(0, a.enumerable)(true), n2.__metadata("design:type", Object), n2.__metadata("design:paramtypes", [Object])], u.prototype, "customizeNoMatch", null), n2.__decorate([(0, a.enumerable)(false), n2.__metadata("design:type", Object), n2.__metadata("design:paramtypes", [Object])], u.prototype, "noInput", null), n2.__decorate([(0, a.enumerable)(false), n2.__metadata("design:type", Object), n2.__metadata("design:paramtypes", [Object])], u.prototype, "noMatch", null), n2.__decorate([(0, a.enumerable)(true), n2.__metadata("design:type", Object), n2.__metadata("design:paramtypes", [Object])], u.prototype, "noInputs", null), n2.__decorate([(0, a.enumerable)(true), n2.__metadata("design:type", Object), n2.__metadata("design:paramtypes", [Object])], u.prototype, "noInputReprompts", null), n2.__decorate([(0, a.enumerable)(true), n2.__metadata("design:type", Object), n2.__metadata("design:paramtypes", [Object])], u.prototype, "noMatches", null), n2.__decorate([(0, a.enumerable)(true), n2.__metadata("design:type", Object), n2.__metadata("design:paramtypes", [Object])], u.prototype, "noMatchReprompts", null), n2.__decorate([(0, a.enumerable)(true), n2.__metadata("design:type", Object), n2.__metadata("design:paramtypes", [Object])], u.prototype, "voiceEndOfInputTimeout", null), n2.__decorate([(0, a.enumerable)(true), n2.__metadata("design:type", Array), n2.__metadata("design:paramtypes", [Array])], u.prototype, "paths", null); + }, 39292: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importDefault(i2(11210)), o = n2.__importDefault(i2(56549)), a = n2.__importDefault(i2(94225)), s = i2(51306); + class l extends r2.default { + constructor(e3) { + super(e3); + } + get displayTypeName() { + return "ArchBaseActionFlowOutcome"; + } + get isArchBaseActionFlowOutcome() { + return true; + } + setFlowOutcomeByIdAsync(e3, t3) { + return this._checkItemIsValidLiteralString(this._infoParm("flowOutcomeId", "setFlowOutcomeByIdAsync"), e3, false), this._checkItemIsValidFunction(this._infoParm("callbackFunction", "setFlowOutcomeByIdAsync"), t3, true), o.default.findItemByIdAsync(s.outcomeManager, e3, "flow outcome").then((i3) => (this.logNote("found the flow outcome named '" + i3.name + "' for the flowOutcomeId ID of '" + e3 + "'"), this._coreActionViewModel.outcome.setValue(i3), a.default.executeCallback(this, "setFlowOutcomeByIdAsync", t3, this))); + } + setFlowOutcomeByNameAsync(e3, t3) { + return this._checkItemIsValidLiteralString(this._infoParm("flowOutcomeName", "setFlowOutcomeByNameAsync"), e3), this._checkItemIsValidFunction(this._infoParm("callbackFunction", "setFlowOutcomeByNameAsync"), t3, true), o.default.findItemByValueAsync(s.outcomeManager, e3, "flow outcome", "name", "name").then((i3) => (this.logNote(`Found info for the flow outcome named '${i3.name}' for the passed flow outcome name of '${e3}'.`), this._coreActionViewModel.outcome.setValue(i3), a.default.executeCallback(this, "setFlowOutcomeByNameAsync", t3, this))); + } + } + t2.default = l; + }, 39296: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.DataPairListCollection = void 0; + const n2 = i2(31635), r2 = i2(15364), o = i2(44703), a = n2.__importDefault(i2(87340)); + class s extends o.ExpressionContainer { + constructor(e3, t3, i3, n3, r3) { + super(e3.parentFlow, e3, t3, r3), this._initialize(); + } + createItem(e3) { + (e3 = e3 || {}).name || (e3.name = ""), e3.value || (e3.value = []); + const t3 = new r2.DataPairList(this.parent, e3.value, this.areInputLists, true); + return new a.default(e3, t3); + } + get isDataPairListCollection() { + return true; + } + get className() { + return "DataPairListCollection"; + } + } + t2.DataPairListCollection = s; + }, 39424: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.getAgenticVirtualAgentVersion = t2.getAgenticVirtualAgent = t2.getAgenticVirtualAgents = void 0; + const n2 = i2(31635), r2 = n2.__importDefault(i2(3542)), o = n2.__importDefault(i2(83726)), a = n2.__importDefault(i2(71960)), s = n2.__importDefault(i2(36019)), l = { ignoreBadResponse: true }; + t2.getAgenticVirtualAgents = s.default.request("GET", "{public-api.apps}/api/v2/apps/agentic/virtualagents", o.default, l), t2.getAgenticVirtualAgent = s.default.request("GET", "{public-api.apps}/api/v2/apps/agentic/virtualagents/{agenticVirtualAgentId}", r2.default, l), t2.getAgenticVirtualAgentVersion = s.default.request("GET", "{public-api.apps}/api/v2/apps/agentic/virtualagents/{agenticVirtualAgentId}/versions/{agenticVirtualAgentVersionId}", a.default, l); + }, 39504: (e2, t2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.toBinary = void 0, t2.toBinary = (e3) => "undefined" != typeof window ? window.atob(e3) : Buffer.from(e3, "base64").toString("binary"); + }, 39521: (e2, t2, i2) => { + "use strict"; + var n2; + Object.defineProperty(t2, "__esModule", { value: true }); + const r2 = i2(31635), o = i2(24235), a = r2.__importDefault(i2(26519)), { AudioViewModel: s } = i2(96353), l = i2(47957); + class u extends a.default { + constructor() { + super(...arguments), n2.set(this, void 0); + } + get audio() { + return r2.__classPrivateFieldGet(this, n2, "f"); + } + destroy() { + return r2.__classPrivateFieldGet(this, n2, "f") && r2.__classPrivateFieldGet(this, n2, "f").destroy(), super.destroy(); + } + getConfiguration(e3, t3) { + const i3 = super.getConfiguration(e3, t3); + if ((null == t3 ? void 0 : t3.isForFlowYaml) && i3) { + const n3 = this.audio.getConfiguration(e3, t3); + return i3.preHandlingAudio = n3 || { tts: "" }, i3; + } + e3.errorHandling.audio || (e3.errorHandling.audio = {}), e3.errorHandling.audio = this.audio.getConfiguration(e3, t3); + } + get isErrorHandlingWithAudioViewModel() { + return true; + } + loadConfiguration(e3) { + super.loadConfiguration(e3), e3.errorHandling.audio || (e3.errorHandling.audio = {}), r2.__classPrivateFieldSet(this, n2, new s(this.parentFlow, this, e3.errorHandling.audio, o.AudioViewModelOptions.create().setLabel(l.customNodes.errorHandling.audio).setIninTestingField("errorAudio")), "f"); + } + search(e3) { + super.search(e3), e3.addToQueue(this.audio); + } + updateDependencies() { + this.audio.outOfService || this.audio.updateDependencies(), super.updateDependencies(); + } + validate(e3) { + this.audio.validate(e3), super.validate(e3); + } + _initializeDesignTime() { + super._initializeDesignTime(), this.audio.initializeDesignTime(); + } + } + n2 = /* @__PURE__ */ new WeakMap(), t2.default = u; + }, 39533: (e2, t2, i2) => { + const n2 = i2(81084), { detectSilenceActionType: r2 } = i2(30801); + function o() { + o.baseConstructor.apply(this, arguments); + } + n2.extend(o, r2, "DetectSilenceActionModel"), e2.exports = o; + }, 39546: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.concat = void 0; + var n2 = i2(70201), r2 = i2(26404), o = i2(47058); + t2.concat = function() { + for (var e3 = [], t3 = 0; t3 < arguments.length; t3++) e3[t3] = arguments[t3]; + return n2.concatAll()(o.from(e3, r2.popScheduler(e3))); + }; + }, 39554: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(83663)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "wheelPicker"; + } + get displayTypeName() { + return "ArchValueWheelPicker"; + } + get isArchValueWheelPicker() { + return true; + } + get items() { + return this._getAssignableProperty("items"); + } + } + t2.default = r2; + }, 39568: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(84655)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "wheelPicker"; + } + get displayTypeName() { + return "ArchVariableWheelPicker"; + } + get isArchVariableWheelPicker() { + return true; + } + } + t2.default = r2; + }, 39635: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(54757)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "booleanCollection"; + } + get displayTypeName() { + return "ArchValueBooleanCollection"; + } + get isArchValueBooleanCollection() { + return true; + } + } + t2.default = r2; + }, 39637: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.ArchBaseDefinition = void 0; + const n2 = i2(31635).__importDefault(i2(67336)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get displayTypeName() { + return "ArchBaseDefinition"; + } + get isArchBaseDefinition() { + return true; + } + get logStr() { + if (!this._getCoreViewModel()) return this.logStrTypeOnly; + const e3 = []; + return this._appendLogStrType(e3, this.displayTypeName), this._createLogStrFromParts(e3); + } + } + t2.ArchBaseDefinition = r2; + }, 39729: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(81574)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "workitem"; + } + get id() { + } + get name() { + } + get assignee() { + } + get assignmentState() { + } + get autoStatusTransition() { + } + get customFields() { + } + get dateCreated() { + } + get dateAssignmentStateChanged() { + } + get dateDue() { + } + get dateExpires() { + } + get dateModified() { + } + get dateStatusChanged() { + } + get dateClosed() { + } + get description() { + } + get duration() { + } + get divisionId() { + } + get externalContact() { + } + get externalTag() { + } + get languageSkill() { + } + get modifiedBy() { + } + get priority() { + } + get queue() { + } + get reporter() { + } + get scoredAgents() { + } + get skills() { + } + get status() { + } + get ttlDateTime() { + } + get typeId() { + } + get utilizationLabel() { + } + get version() { + } + get workbin() { + } + get displayTypeName() { + return "ArchValueWorkitem"; + } + get isArchValueWorkitem() { + return true; + } + } + t2.default = r2; + }, 39732: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = i2(55909), o = i2(33951), a = n2.__importDefault(i2(11541)), s = n2.__importDefault(i2(88835)), l = "BaseBuilderPartContainerDef"; + class u extends s.default { + constructor(e3, t3, i3, n3, a2, s2, u2, d, c, p, _, h, m, g, f, T) { + super(e3, t3, i3, n3, a2, s2, u2, c, p, _, h, m, g, f, T), o.ParameterValidator.expectObject(d, () => r2.ParameterInfo.createConstructorParameter(l, "creationCriteria")), Object.defineProperties(this, { _creationCriteria: { value: d, enumerable: false } }); + } + get className() { + return l; + } + get creationCriteria() { + return this._creationCriteria; + } + get isBaseBuilderPartContainerDef() { + return true; + } + get isContainerPart() { + return true; + } + createBuilderPartViewModel(e3, t3, i3) { + throw "You must override the createBuilderPartViewModel method in inheriting classes"; + } + reviveItem(e3, t3, i3, n3) { + throw "You must override the reviveItem method in inheriting classes"; + } + get modelType() { + return a.default; + } + get supportsLanguageTag() { + return false; + } + get supportsOutputMode() { + return false; + } + } + t2.default = u; + }, 39776: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importDefault(i2(92140)), o = n2.__importDefault(i2(51695)); + class a extends o.default { + constructor(e3, t3, i3) { + super(), this.model = e3, this.variable = t3, this.expression = i3; + } + get contents() { + return [this.variable, this.expression]; + } + get id() { + return "vvp-" + this.variable.id; + } + get className() { + return "VariableValuePairViewModel"; + } + get isVariableValuePairViewModel() { + return true; + } + getConfiguration(e3, t3) { + if (null == t3 ? void 0 : t3.isForFlowYaml) { + const i3 = { variable: r2.default.getFirstPropertyValueInObj(this.variable.getConfiguration(e3, t3)) }; + return i3.value = this.expression.getConfiguration(e3, t3), this.expression.type.addYamlExportTypeInfo(i3), r2.default.tryWrapObject(i3, this.variable.type.yamlTypeName); + } + return this.model; + } + } + t2.default = a; + }, 39843: (e2, t2, i2) => { + "use strict"; + const n2 = i2(31635), r2 = i2(12179), o = n2.__importDefault(i2(97891)), a = i2(24383), s = n2.__importDefault(i2(5730)), l = i2(47957); + class u extends s.default { + constructor(e3, t3) { + super(e3.parentFlow, e3), this._loadModel(t3); + } + isInStartupObject() { + const e3 = this.topParent; + return (e3.isMenuChoice ? e3.parent : e3).isStartUpObject; + } + validate(e3) { + this.parentFlow.menus.length <= 0 ? e3.addError(this, l.previousMenu.noMenus) : this.isInStartupObject() && this.topParent.isTask && e3.addError(this, l.previousMenu.inStartupError), super.validate(e3); + } + } + u.info = o.default.createActionInfo({ actionClass: u, canBeInTask: true, canBeTreeNode: true, helpTopic: r2.helpTopics.actions.previousMenu, modelClass: i2(45279), name: l.actions.previousMenu, scriptingName: "ArchActionPreviousMenu", termination: a.terminatesTask }), t2.A = u; + }, 39865: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(54063)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "externalTwitterInfoCollection"; + } + get displayTypeName() { + return "ArchValueExternalTwitterInfoCollection"; + } + get isArchValueExternalTwitterInfoCollection() { + return true; + } + } + t2.default = r2; + }, 39907: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = i2(30801), o = n2.__importDefault(i2(32392)); + class a extends o.default { + constructor(e3) { + super(e3), this._condition = this.coreFactory.createArchValueFromExpression(e3.expression); + } + get _actionTypeId() { + return r2.decisionActionType; + } + get displayTypeName() { + return this._scriptingName; + } + get condition() { + return this._condition; + } + get isArchActionDecision() { + return true; + } + } + t2.default = a; + }, 39938: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = i2(80295), o = i2(80295), a = i2(19596), s = n2.__importDefault(i2(71538)); + class l extends a.DataContract { + constructor(e3) { + super(e3), (0, o.makeUnenumerable)(this, "_dataTypeDefinitions"); + } + get dataTypeDefinitions() { + return this._dataTypeDefinitions; + } + set dataTypeDefinitions(e3) { + this._dataTypeDefinitions = this.reviveArray(e3, s.default); + } + } + t2.default = l, n2.__decorate([(0, r2.enumerable)(true), n2.__metadata("design:type", Object), n2.__metadata("design:paramtypes", [Object])], l.prototype, "dataTypeDefinitions", null); + }, 39950: (e2, t2, i2) => { + const n2 = i2(92140), r2 = i2(28403), o = i2(59957), a = i2(93805), s = i2(97329); + function l() { + Object.defineProperties(this, { _dependencies: { value: new a(), writable: true }, _manifest: { value: new s(), writable: true }, _originalObjectInfo: { value: new o(), writable: true } }), this.contentRawJSON = void 0, this.nodeInformationId = void 0, this.name = void 0, this.originalIdToNameMap = {}, l.baseConstructor.apply(this, arguments); + } + r2.extend(l, "BaseClipboardContentModel"), Object.defineProperties(l.prototype, { addOldIdToOldNameMapping: { value: function(e3, t3) { + return !(!n2.isString(e3) || !n2.isString(t3) || (this.originalIdToNameMap[e3] = t3, 0)); + } }, configure: { value: function(e3, t3, i3, n3) { + this.contentRawJSON = this.cloneToRawJsonObject(i3), this.name = n3, this.nodeInformationId = t3.info.typeId, this.originalObjectInfo.configure(e3, t3); + } }, dependencies: { enumerable: true, get: function() { + return this._dependencies; + }, set: function(e3) { + this._dependencies = this.reviveItem(e3, a); + } }, manifest: { enumerable: true, get: function() { + return this._manifest; + }, set: function(e3) { + this._manifest = this.reviveItem(e3, s); + } }, originalObjectInfo: { enumerable: true, get: function() { + return this._originalObjectInfo; + }, set: function(e3) { + this._originalObjectInfo = this.reviveItem(e3, o); + } }, resolveOldIdToOldName: { value: function(e3) { + if (n2.isString(e3)) return this.originalIdToNameMap[e3]; + } } }), e2.exports = l; + }, 39958: (e2) => { + e2.exports = { builders: { partsBooleanEmail: { name: "Email Builder", description: "Use to build a boolean expression based on Email properties." }, partsGenericBoolean: { name: "Boolean Builder", description: "Use to build a boolean expression using data type helpers." }, genericAgentScorePair: { name: "AgentScorePair Builder", description: "Use to build an AgentScorePair value." }, partsGenericCommunication: { name: "Communication Sequence Builder", description: "Use to build a Communication value." }, genericDateTime: { name: "DateTime Builder", description: "Use to build a DateTime value." }, genericDuration: { name: "Duration Builder", description: "Use to build a Duration value." }, genericImage: { name: "Image Builder", description: "Use to build an Image value." }, genericInteger: { name: "Integer Builder", description: "Use to build an Integer value." }, genericVideo: { name: "Video Builder", description: "Use to build a Video value." }, partsGenericAudio: { name: "Audio Builder", description: "Use to build an audio expression using audio and prompt related helpers." }, partsLabelString: { name: "Label Builder", description: "Use to build a string expression using the label builder with string-related helpers." }, partsGenericPrompt: { name: "Prompt Builder", description: "Use to build a prompt expression using prompt related helpers." }, partsGenericString: { name: "String Builder", description: "Use to build a string expression using string-related helpers." }, partMarkdownCommunication: { name: "Rich Text Builder", description: "Build a Communication value using a rich text editor." }, partMarkdownString: { name: "Rich Text Builder", description: "Build a String value using a rich text editor." }, shared: { details: { builderPartsNone: "There are no items configured.", builderPartsOne: "There is one item configured.", builderPartsMoreThanOne: "There are %1$s items configured." } } }, builderParts: { agentScorePair: { makeAgentScorePair: { description: "Creates an AgentScorePair for given user and score.", name: "Make AgentScorePair", expressions: { user: "User", userDescription: "If a literal user is selected, the FindUserById function is used at runtime with that user's id. If that user is not found, a NOT_SET AgentScorePair value is returned.", score: "Score" } } }, audio: { text: { description: "Specifies an Audio value using a String literal.", name: "Text" } }, boolean: { checkDialingCode: { description: "Checks a phone number to see if it has a specified dialing code.", expressions: { phoneNumber: { label: "Phone number" }, dialingCode: { label: "Dialing code" } }, name: "Check phone number dialing code" }, expression: { description: "Specifies a Boolean value using a Boolean expression.", name: "Expression" }, literal: { description: "Specifies a Boolean value using a Boolean literal.", name: "Boolean" } }, communication: { data: { description: "Gets a Communication value for a variable. For a variable whose type is not directly convertible to a Communication value via. the ToCommunication function call, the variable will be converted to a string using ToDisplayString if the flow type supports it (otherwise ToString if ToDisplayString is not supported).", name: "Data" }, digitalAudioUrlText: { description: "Supply a String value to use as the URL for a Digital Audio.", name: "Digital Audio URL" }, expression: { description: "Specifies a Communication value from a Communication expression.", name: "Expression" }, fileUrlText: { description: "Supply a String value to use as the URL for a File.", name: "File URL" }, markdown: { description: "Use an editor to create a Communication value.", name: "Rich Text" }, prompt: { description: "Specifies a Communication value from a Prompt expression.", name: "Prompt" }, text: { description: "Specifies a Communication value from a Text expression.", name: "Text" }, imageUrlText: { description: "Supply a String value to use as the URL for an Image.", name: "Image URL" }, videoUrlText: { description: "Supply a String value to use as the URL for a Video.", name: "Video URL" }, blank: { blankCommunicationDescription: "Specifies a Communication value that supplies blank audio for a specified duration when the output mode is voice. For other output modes, this value is ignored at runtime.", blankCommunicationName: "Blank" } }, container: { language: { name: "Flow Language", description: "A container for flow supported language handling." }, languageAndOutputMode: { name: "Flow Language and Output Mode", description: "A container for flow supported language and output mode handling." }, outputMode: { name: "Output Mode", description: "A container for flow supported output mode handling." } }, dateTime: { firstDayOfNextMonth: { description: "For the given DateTime, calculates the first day of the next month at 12:00:00AM.", name: "First day of next month" }, isInDateTimeRange: { dateTimeEnd: "Ending DateTime", dateTimeStart: "Starting DateTime", description: "Checks a DateTime to see if it is greater than or equal to a starting DateTime and less than an ending DateTime.", name: "Is in DateTime Range" }, isInTimeRange: { dateTimeEnd: { description: "A DateTime value that will supply the ending time for the calculation.", label: "Ending Time", name: "End DateTime" }, dateTimeStart: { description: "A DateTime value that will supply the starting time for the calculation.", label: "Starting Time", name: "Start DateTime" }, description: "Checks the time portion of a DateTime to see if it is greater than or equal to the time portion of a starting DateTime and less than the time portion of an ending DateTime.", name: "Is in Time Range" }, isWeekday: { description: "Checks a DateTime to see if its day of week is Monday, Tuesday, Wednesday, Thursday or Friday.", name: "Is Weekday" }, isWeekend: { description: "Checks a DateTime to see if its day of week is Saturday or Sunday.", name: "Is Weekend" }, lastDayOfMonth: { description: "For the given DateTime, this calculates the last day of the month at 12:00:00AM.", name: "Last day of month" }, nextDayOfWeek: { description: "For the given DateTime and day of week, this calculates the next occurrence of a specified day of week at 12:00:00AM.", expressions: { dayOfWeek: { description: "The desired next day of week where Sunday=1, Monday=2, Tuesday=3, Wednesday=4, Thursday=5, Friday=6 and Saturday=7.", label: "Day of week", name: "Day of Week" }, dayOfWeekMatch: { description: "If False and the specified DateTime value matches the specified day of week, uses the specified DateTime plus 1 week.", label: "Use specified DateTime date if day of week matches", name: "Matching day of week handling" } }, name: "Next day of week" } }, duration: { literal: { description: "Specifies a Duration value using a Duration literal.", name: "Duration" } }, email: { subjectContains: { description: "Checks the Email subject to see if it contains specified String value.", expressions: { stringToCheck: { label: "Email subject contains:" } }, name: "Email subject contains" }, bodyContains: { description: "Checks to see if the body of the Email contains specified String value.", expressions: { stringToCheck: { label: "Email body contains:" } }, name: "Check email body" }, subjectOrBodyContains: { description: "Checks to see if the subject or body of the Email contains specified String value.", expressions: { stringToCheck: { label: "Email subject or body contains:" } }, name: "Check email subject or body" }, fromDomainPartContains: { description: `Checks to see if the domain part of the sender's email address contains a specified String value such as "example.com" from "john.doe@example.com".`, expressions: { stringToCheck: { label: "Email sender's email address domain contains:" } }, name: "Check email sender domain" }, fromLocalPartContains: { description: `Checks to see if the local part of the sender's email address contains a specified String value such as "john.doe" from "john.doe@example.com".`, expressions: { stringToCheck: { label: "Email sender's email address name contains:" } }, name: "Check email sender name" } }, image: { imageUrlText: { description: "Supply a String value to use as the URL for an Image.", name: "Image URL" }, expression: { description: "Specifies an Image value from an Image expression.", name: "Expression" }, literal: { description: "Specifies an Image value using an Image literal.", name: "Image" } }, integer: { literal: { description: "Specifies a Integer value using a Integer literal.", name: "Integer" } }, shared: { expressions: { calculationDateTime: { label: "DateTime for calculation" }, dateTimeBoolCheck: { label: "DateTime" } } }, string: { contains: { description: "Checks a String to see if is exists in another String.", testString: "Contains:", name: "Contains" }, data: { description: "Gets a String value for a variable. For non-String type variables, if used in call flows, the variable value will be converted to a String using a ToString function call. For non-call flow types, the variable value will be converted to a String using a ToDisplayString function call.", name: "Data" }, deflectionURL: { description: "Gets a String value for a Deflection URL. This includes the Service and the Account ID.", name: "Deflection URL", serviceLabel: "Service", accountLabel: "Account" }, endsWith: { description: "Checks a String value to see it ends with another String value.", testString: "Ends with:", name: "Ends with" }, expression: { description: "Specifies a String value using a String expression. For expression text that does not evaluate to a String, if used in call flows, the value will be converted to a String using a ToString function call. For non-call flow types, the value will be converted to a String using a ToDisplayString function call.", name: "Expression" }, followingString: "The Following String:", ignoreCase: { label: "Ignore Case" }, lastFour: { description: "Retrieves the last four characters from specified String value such as a credit card number.", sourceString: "Last four characters of:", name: "Last four characters" }, markdown: { description: "Use an editor to create a String value.", name: "Rich Text" }, prompt: { description: "Gets the text to speech or text String value from a prompt for the language the flow is currently running in.", name: "Prompt" }, startsWith: { description: "Checks a String value to see if it starts with another String value.", testString: "Starts with:", name: "Starts with" }, text: { description: "Specifies a String value using a String literal.", name: "Text" } }, video: { videoUrlText: { description: "Supply a String value to use as the URL for a Video.", name: "Video URL" } }, findPrompt: { fallbackLabel: "Fallback Prompt", system: { name: "Find system prompt with fallback", description: "Finds a system prompt by name at runtime with a fallback if not found.", findLabel: "System Prompt Name" }, user: { name: "Find user prompt with fallback", description: "Finds a user prompt by name at runtime with a fallback if not found.", findLabel: "User Prompt Name" } } }, categories: { agentScorePair: "AgentScorePair", agentScorePairDesc: "AgentScorePair functionality", communicationName: "Communication", communicationDesc: "Communication functionality", container: "Container", containerDesc: "Functionality to customize generated expression text based on a container filter such as a flow supported language", emailName: "Email", emailDesc: "Email functionality", labelStringName: "Label", labelStringDesc: "Functionality to create localized display label strings.", markdownName: "Rich Text", markdownDesc: "Functionality to build a rich text string", stringParsingName: "String Parsing", stringParsingDesc: "String parsing and checks", stringSequenceName: "String Sequence", stringSequenceDesc: "String Sequence building", phoneNumber: "Phone Number", phoneNumberDesc: "Phone Number value functionality", dateTime: "DateTime", dateTimeDesc: "DateTime functionality", prompt: "Prompt", promptDesc: "Prompt and Audio functionality" }, generators: { common: { emptyCollectionTypeGenerationDescription: "an empty %1$s collection", notSetSingletonTypeGenerationDescription: "a NOT_SET %1$s" }, emptyStringLiteral: { generationDescription: "an empty String" } } }; + }, 39964: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.ExpressionTypeChooserOptions = void 0; + const n2 = i2(65615); + class r2 extends n2.BaseExpressionTypeCollectionOptions { + static create(e3, t3) { + return new this(t3).invokeOptionsCallback(e3); + } + constructor(e3) { + super(e3); + } + get className() { + return "ExpressionTypeChooserOptions"; + } + get isExpressionTypeChooserOptions() { + return true; + } + } + t2.ExpressionTypeChooserOptions = r2; + }, 39983: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importDefault(i2(81901)), o = n2.__importDefault(i2(67222)), a = n2.__importDefault(i2(93229)), s = n2.__importDefault(i2(46422)), l = n2.__importDefault(i2(97354)), u = { ArchFilterClauseContainer: r2.default, ArchFilterClausePropertyCallback: o.default, ArchFilterClausePropertyValueEquals: a.default, ArchFilterClausePropertyValueNotEquals: s.default, ArchFilterObject: l.default }; + t2.default = u; + }, 40057: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(81574)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "customerIntent"; + } + get displayTypeName() { + return "ArchValueCustomerIntent"; + } + get name() { + return this._getAssignableProperty("name"); + } + get isArchValueCustomerIntent() { + return true; + } + } + t2.default = r2; + }, 40091: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(11210)), r2 = i2(30801); + class o extends n2.default { + constructor(e3) { + super(e3); + } + get _actionTypeId() { + return r2.exitLoopActionType; + } + get displayTypeName() { + return this._scriptingName; + } + get isArchActionLoopExit() { + return true; + } + } + t2.default = o; + }, 40122: (e2, t2, i2) => { + const n2 = i2(22124), r2 = i2(94886); + function o() { + o.baseConstructor.apply(this, arguments); + } + n2.extend(o, "ScheduleList"), Object.defineProperties(o.prototype, { entities: { enumerable: true, get: function() { + return this._entities; + }, set: function(e3) { + this._entities = this.reviveArray(e3, r2); + } } }), e2.exports = o; + }, 40174: (e2, t2, i2) => { + const n2 = i2(36019).default, r2 = i2(90729); + function o() { + } + o.prototype.getCategories = function(e3) { + return n2.build(r2.getCategoryList).queryParams(e3.getSearchQueryParams()).call(); + }, o.prototype.getActions = function(e3) { + return n2.build(r2.getActionList).queryParams(e3.getSearchQueryParams()).call(); + }, o.prototype.getAction = function(e3) { + return n2.build(r2.getAction).queryParams({ expand: "contract", flatten: true }).templateParams({ id: e3 }).call(); + }, o.prototype.getAction.api = r2.getAction, o.prototype.getSchema = function(e3) { + return n2.build(r2.getSchema).queryParams({ flatten: true }).templateParams({ schema_uri: e3 }).call(); + }, e2.exports = new o(); + }, 40192: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = i2(19039), o = i2(96618), a = n2.__importDefault(i2(51971)), s = n2.__importDefault(i2(6035)), l = n2.__importDefault(i2(19359)), u = i2(80428), d = n2.__importDefault(i2(65302)); + class c extends s.default { + constructor(e3) { + super(e3), this.outboundSettings = new a.default(this), this._addToAutoManageSettings(this.outboundSettings), this.pathDiscovery = this._addToAutoManageSettings(new l.default(this)); + } + get isOutboundCallFlow() { + return true; + } + buildConfiguration(e3, t3, i3) { + return super.buildConfiguration(e3, t3, i3), (null == i3 ? void 0 : i3.isForFlowYaml) || this.outboundSettings || e3.uiMetaData.outboundCallSettings || (e3.uiMetaData.contactList = []), e3; + } + get className() { + return "OutboundCallViewModel"; + } + createFlowConfiguration(e3, t3) { + const i3 = super.createFlowConfiguration(e3, t3); + return e3 || (null == t3 ? void 0 : t3.isForFlowYaml) || (i3.uiMetaData.contactList = []), i3; + } + setNewInstanceDefaults(e3) { + const t3 = e3 && e3.flowContactList ? e3.flowContactList : null, i3 = e3 && e3.wrapupCode ? e3.wrapupCode : null; + return t3 && i3 && this.outboundSettings.loadSettings(t3, i3), super.setNewInstanceDefaults(e3); + } + onTypeMapCreated() { + super.onTypeMapCreated(), d.default.createType(r2.ContactType, this); + } + validate(e3) { + d.default.getType(this, u.expressionTypeNames.contact).changeProperties(this.outboundSettings ? this.outboundSettings.contactList : void 0), super.validate(e3); + } + get type() { + return o.flowTypes.flowTypeOutboundCall; + } + get wrappedYamlName() { + return "outboundCall"; + } + } + t2.default = c; + }, 40209: (e2, t2, i2) => { + const n2 = i2(66445); + function r2() { + r2.baseConstructor.apply(this, arguments); + } + i2(22124).extend(r2, "KnowledgeSettingList"), Object.defineProperties(r2.prototype, { entities: { enumerable: true, get: function() { + return this._entities; + }, set: function(e3) { + this._entities = this.reviveArray(e3, n2); + } } }), e2.exports = r2; + }, 40311: (e2, t2, i2) => { + const n2 = i2(2210), r2 = i2(13240), { setWhisperAudioActionType: o } = i2(30801); + function a() { + Object.defineProperties(this, { _whisperAudio: { writable: true } }), a.baseConstructor.apply(this, arguments); + } + r2.extend(a, o, true), Object.defineProperties(a.prototype, { pasteReIdOrRename: { value: function(e3) { + a._super.pasteReIdOrRename.apply(this, arguments), this.whisperAudio.pasteReIdOrRename(e3); + } }, pasteResolveOldToNewValues: { value: function(e3) { + a._super.pasteResolveOldToNewValues.apply(this, arguments), this.whisperAudio.pasteResolveOldToNewValues(e3); + } }, whisperAudio: { enumerable: true, get: function() { + return this._whisperAudio; + }, set: function(e3) { + this._whisperAudio = this.reviveItem(e3, n2); + } } }), e2.exports = a; + }, 40370: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importDefault(i2(87921)), o = i2(80428), a = n2.__importDefault(i2(65302)); + class s extends r2.default { + get className() { + return "UtilizationLabelFacets"; + } + get isUtilizationLabelFacets() { + return true; + } + _facetGetExpressionItemLitValue(e3) { + return e3.getLitAsString(); + } + _facetGetExpressionType() { + return a.default.getGlobalTypeGroup().getType(o.expressionTypeNames.utilizationLabel, this.isCollection); + } + _facetValidateValue(e3, t3) { + } + } + t2.default = s; + }, 40522: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.ImageType = void 0; + const n2 = i2(31635), r2 = i2(64720), o = i2(97629), a = i2(27491), s = n2.__importDefault(i2(22226)), l = i2(80428), u = i2(14394), d = i2(94765); + class c extends d.ExpressionType { + constructor(e3, t3, i3) { + super(e3, t3, i3); + } + get className() { + return "ImageType"; + } + canConvertLitToExpression(e3) { + return a.expressionDataService.isFunctionTextAvailableForFlowTypeAndOperandTypes("FindImage", e3, [u.globalTypes.string]); + } + convertLitToExpression(e3, t3) { + return t3 && this.canConvertLitToExpression(e3) ? `FindImage(${s.default.getQuotedExpressionStringLiteral(t3)})` : ""; + } + _getLiteralValueOfExpression() { + return ""; + } + createExpressionOptionClass() { + return new r2.ExpressionTypeImageOptions(); + } + get listManager() { + return o.imageManager; + } + get supportsLiteralEditor() { + return true; + } + } + t2.ImageType = c, c.typeIdentifier = l.expressionTypeNames.image; + }, 40549: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(83663)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "carousel"; + } + get cards() { + return this._getAssignableProperty("cards"); + } + get displayTypeName() { + return "ArchValueCarousel"; + } + get isArchValueCarousel() { + return true; + } + } + t2.default = r2; + }, 40551: (e2) => { + e2.exports = { askCommon: { invalidInputReceived: "Isso n\xE3o \xE9 v\xE1lido.", noInputReceived: "N\xE3o recebi qualquer entrada." }, askForBoolean: { noInput: 'Diga "sim" se desejar continuar, caso contr\xE1rio, diga "n\xE3o".', noMatch: 'Diga "Sim" ou "N\xE3o". Deseja continuar?', question: "Deseja continuar?", noInputDigitalBot: 'Digite "Sim" se desejar continuar; caso contr\xE1rio, digite "N\xE3o".', noMatchDigitalBot: 'Digite "Sim" ou "N\xE3o". Deseja continuar?' }, askForIntent: { noInput: 'Diga uma frase curta que descreva sua consulta; por exemplo: "Verificar o saldo da minha conta"', noMatch: "Diga-me novamente o que gostaria de fazer.", question: "O que gostaria de fazer?", noInputDigitalBot: 'Digite uma breve frase que descreva sua consulta. Por exemplo, "Verificar o saldo da minha conta"' }, askForSlot: { askFor: "Solicite o %1$s", noInput: "Diga ou insira o (coloque o seu nome de slot aqui).", noInputWithSlot: "Diga ou insira o %1$s.", noMatch: "Repita o (coloque o seu nome de slot aqui).", noMatchWithSlot: "Repita o %1$s.", question: "Qual \xE9 o (coloque o seu nome de slot aqui)?", questionWithSlot: "Qual \xE9 o %1$s?", pleaseEnterSlotNameHere: "(coloque o seu nome de slot aqui)", noInputDigitalBot: "Digite o (insira o nome do slot aqui).", noInputWithSlotDigitalBot: "Digite o %1$s.", continuationPromptWithSlot: "Tenho {{Slot.%1$s}} at\xE9 o momento. Continue." }, askForNextSlot: { noInput: 'Diga "sim" se tiver outra consulta ou "n\xE3o" para encerrar a chamada.', noMatch: 'Diga "Sim" se tiver outra consulta ou "N\xE3o" para encerrar a sess\xE3o.', question: "Voc\xEA tem alguma outra d\xFAvida?", noInputDigitalBot: 'Digite "Sim" se tiver outra consulta ou "N\xE3o" para encerrar a sess\xE3o.', noMatchDigitalBot: 'Digite "Sim" se tiver outra consulta ou "N\xE3o" para encerrar a sess\xE3o.' }, askForPayment: { noInputDigitalBot: "Forne\xE7a as suas informa\xE7\xF5es de pagamento para continuar.", noMatchDigitalBot: "N\xE3o entendi a sua resposta. Tente novamente." }, askForAuthentication: { noInputDigitalBot: "Forne\xE7a as suas informa\xE7\xF5es de autentica\xE7\xE3o para continuar.", noMatchDigitalBot: "N\xE3o entendi a sua resposta. Tente novamente." }, askSurveyQuestion: { notApplicable: "N\xE3o aplic\xE1vel", surveyAnswerOptionSequence: "Pressione %1$s para '%2$s'.", surveyAnswerNotApplicableSequence: "Pressione asterisco para N\xE3o aplic\xE1vel.", surveyAnswerNotApplicableWithQuestionSequence: "%1$s. Pressione asterisco para N\xE3o aplic\xE1vel.", voiceSurveyNoInputText: "Por favor, responda \xE0 pergunta.", voiceSurveyNoMatchText: "N\xE3o entendi." }, commonModule: { exitCommonModule: "Sair do m\xF3dulo comum" }, form: { noInputDigitalBot: "Complete o formul\xE1rio para continuar.", noMatchDigitalBot: "Complete o formul\xE1rio para continuar." }, messagingTemplate: { noInputDigitalBot: "Selecione uma das op\xE7\xF5es dispon\xEDveis.", noMatchDigitalBot: "Selecione uma das op\xE7\xF5es dispon\xEDveis." }, knowledgeSettings: { knowledgeAnswerHighlightFlowProgressionDefault: "Continuar", knowledgeAnswerHighlightFullArticleDefault: "Ver artigo completo", knowledgeInitialResponseMulti: "Para me ajudar a esclarecer seu objetivo, escolha um n\xFAmero na lista a seguir:", knowledgeInitialResponseMultiRetry: "Escolha um n\xFAmero; por exemplo, '1'.\nAqui est\xE1 a lista de op\xE7\xF5es novamente:", knowledgeNoMatch: "Nenhuma delas", knowledgeConfirmation: "Esta resposta resolveu sua d\xFAvida?", knowledgeFollowup: "Espero ter respondido \xE0 sua pergunta. Voc\xEA pode fazer outras perguntas, se desejar." }, noOverlay: { intent: { intentConfirmationStr1: "Acho que voc\xEA quer", intentConfirmationStr2: "\xC9 isso?" }, youSaid: { youSaidConfirmationStr1: "Voc\xEA disse", youSaidConfirmationStr2: "\xC9 isso?", youSaidConfirmationStr1DigitalBot: "Voc\xEA digitou" }, noInput: { noInputStr1: "Diga ou insira", noInputStr1DigitalBot: "Digite o" }, noMatch: { noMatchStr1: "Forne\xE7a" }, whatIs: { whatIsQuestionStr1: "O que \xE9", whatIsQuestionStr2: "?" }, iGotContinuation: { iGotContinuationStr1: "Tenho", iGotContinuationStr2: "at\xE9 o momento. Continue." } }, defaultCallFlowOne: "Fluxo de chamadas padr\xE3o", errorHandlingAgentEscalationConfirmation: "Voc\xEA deseja falar com um assistente. \xC9 isso?", errorHandlingAgentEscalationHandover: "Aguarde um momento, vou transferi-lo para algu\xE9m.", errorHandlingErrorEventHandover: "Desculpe, ocorreu um erro. Aguarde um momento enquanto transfiro voc\xEA para algu\xE9m que possa ajudar.", errorHandlingErrorEventHandoverVoiceSurvey: "Desculpe, ocorreu um erro. Adeus.", errorHandlingRecognitionEventHandover: "Desculpe, n\xE3o estou entendendo. Aguarde um momento enquanto transfiro voc\xEA para algu\xE9m que possa ajudar.", errorHandlingRecognitionEventHandoverVoiceSurvey: "Desculpe, n\xE3o consigo entender. Adeus.", errorHandlingTTS: "Ocorreu um erro. Tente sua chamada novamente.", initialGreetingTTS: "Ol\xE1, esta \xE9 a sauda\xE7\xE3o inicial.", initialState: "Estado inicial", initialBotState: "Bot padr\xE3o", initialDigitalBotState: "Sauda\xE7\xE3o inicial", initialSurveyBotState: "Bot de pesquisa", intentConfirmation: "Acho que voc\xEA deseja %1$s, correto?", mainMenu: "Menu principal", mainMenuTTS: "Voc\xEA est\xE1 no menu principal, pressione 9 para desconectar", mainTask: "Tarefa", settingsConfirmationNoInputApology: "Desculpe, n\xE3o escutei. Por favor, diga sim ou n\xE3o.", settingsConfirmationNoInputApologyDigitalBot: 'N\xE3o recebi nenhuma resposta. Por favor, digite "Sim" ou "N\xE3o".', settingsConfirmationNoMatchApology: "Desculpe, diga sim ou n\xE3o.", settingsConfirmationNoMatchApologyDigitalBot: 'Por favor, digite "Sim" ou "N\xE3o".', settingsNoInputApology: "Desculpe, n\xE3o consegui escutar.", settingsNoInputApologyDigitalBot: "Desculpe, n\xE3o recebi nenhuma resposta.", settingsEndOfSessionMessageDigitalBot: "Voc\xEA n\xE3o respondeu, e por isso estou encerrando este chat. Por favor, volte se precisar de minha ajuda. Obrigado.", settingsNoMatchApology: "Desculpe.", settingsNoToConfirmationApology: "Enganei-me.", periodicStateName: "Estado recorrente" }; + }, 40559: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = i2(63352), o = n2.__importDefault(i2(85383)), a = i2(72155); + class s extends o.default { + constructor(e3, t3) { + super(e3, t3); + } + get displayTypeName() { + return "ArchBaseNetworkValueCollection"; + } + get isArchBaseNetworkValueCollection() { + return true; + } + get isCollection() { + return true; + } + getItemByIndex(e3) { + const t3 = this._infoParm("index", "getItemByIndex"); + return this._checkItemIsValidLiteralIntInRange(t3, e3, 0, this.length), this.isLiteral ? this.coreFactory.createArchWrapper(this._getCoreViewModel().collectionItems.items[e3]) : void 0; + } + addItemToCollection() { + return a.addItemToCollection(this); + } + get length() { + return this.isLiteral ? this._getCoreViewModel().collectionItems.items.length : void 0; + } + _addNetworkModelToCollection(e3) { + let t3; + this._coreExpression.isExpressionList ? (t3 = this._coreExpression.add(), t3.updateFromConfigListManagerItem(e3)) : this._coreExpression.isCollectionExpression ? (this._coreExpression.isLiteralMode || (this.logNote("switching value to literal collection since we are adding a literal value."), this._coreExpression.mode = r2.ExpressionModes.literal), t3 = this._coreExpression.collectionItems.createItem(), t3.updateFromConfigListManagerItem(e3), this._coreExpression.collectionItems.addItem(t3)) : this._itemIsInvalid(this._infoParm("this._coreExpression", "_addNetworkModelToCollection"), "do not know how to add an item to this collection."), this.logNote("added literal to " + this._coreExpression.type.displayString + " " + this.getLogStrForItemInfo(e3)); + } + clearCollection() { + this._coreExpression.destroyChildren(); + } + _addLiteralByIdAsync(e3, t3) { + return n2.__awaiter(this, void 0, void 0, function* () { + return this._findItemByIdAsync(e3, t3).then(this._addNetworkModelToCollection.bind(this)); + }); + } + _addLiteralByValueAsync(e3, t3, i3) { + return n2.__awaiter(this, void 0, void 0, function* () { + return this._findItemByValueAsync(e3, t3, i3).then(this._addNetworkModelToCollection.bind(this)); + }); + } + get valueText() { + return this._getValueTextCommon() || []; + } + setLiteralEmptyCollection() { + if (this.settings.canBeLiteral) { + const e3 = this._getCoreViewModel(); + null == e3 || e3.setLiteralEmptyCollection(); + } + } + } + t2.default = s; + }, 40568: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = i2(30801), o = n2.__importDefault(i2(56549)), a = n2.__importDefault(i2(94225)), s = n2.__importDefault(i2(95085)), { bridgeServerManager: l } = i2(46824); + class u extends s.default { + constructor(e3) { + super(e3), this._processingPrompt = this.coreFactory.createArchWrapper(e3.processingPrompt), this._timeout = this.coreFactory.createArchWrapper(e3.timeout); + } + get _actionTypeId() { + return r2.bridgeServerActionType; + } + _clearInputsOutputs() { + this._bridgeActionInputs = void 0, this._bridgeActionOutputsSuccess = void 0; + } + get displayTypeName() { + return this._scriptingName; + } + get bridgeActionInputs() { + return this._bridgeActionInputs || (this._bridgeActionInputs = this.coreFactory.createArchBaseValueContainer(this._getCoreViewModel().inputs)), this._bridgeActionInputs; + } + get bridgeActionOutputsSuccess() { + return this._bridgeActionOutputsSuccess || (this._bridgeActionOutputsSuccess = this.coreFactory.createArchBaseValueContainer(this._getCoreViewModel().outputs)), this._bridgeActionOutputsSuccess; + } + get isArchActionCallBridge() { + return true; + } + setBridgeActionByNameAsync(e3, t3) { + return this._checkItemIsValidLiteralString(this._infoParm("bridgeActionName", "setBridgeActionByNameAsync"), e3, false), this._checkItemIsValidFunction(this._infoParm("callbackFunction", "setBridgeActionByNameAsync"), t3, true), o.default.findItemByValueAsync(l, e3, "bridge action").then(function(e4) { + return this._coreActionViewModel.setIntegrationActionByViewModel(e4), this._clearInputsOutputs(), a.default.executeCallback(this, "setBridgeActionByNameAsync", t3, this); + }.bind(this)); + } + setBridgeActionByIdAsync(e3, t3) { + return this._checkItemIsValidLiteralString(this._infoParm("bridgeActionId", "setBridgeActionByIdAsync"), e3, false), this._checkItemIsValidFunction(this._infoParm("callbackFunction", "setBridgeActionByIdAsync"), t3, true), o.default.findItemByIdAsync(l, e3, "bridge action").then(function(e4) { + return this._coreActionViewModel.setIntegrationActionByViewModel(e4), this._clearInputsOutputs(), a.default.executeCallback(this, "setBridgeActionByIdAsync", t3, this); + }.bind(this)); + } + get timeout() { + return this._timeout; + } + get processingPrompt() { + return this._processingPrompt; + } + get useSuggestedTimeout() { + return this._coreActionViewModel.useSuggestedTimeout; + } + set useSuggestedTimeout(e3) { + this._coreActionViewModel.useSuggestedTimeout = e3; + } + } + t2.default = u; + }, 40721: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(16434)), r2 = i2(96618); + class o extends n2.default { + constructor(e3) { + super(e3); + } + get _flowType() { + return r2.flowTypes.flowTypeInboundShortMessage; + } + get displayTypeName() { + return "ArchFlowInboundShortMessage"; + } + get isArchFlowInboundShortMessage() { + return true; + } + setPeriodicState(e3) { + this._checkItem(this._infoParm("archState", "setPeriodicState"), !e3 || !e3.isArchState, "you must pass in a valid ArchState instance to set it as the periodic state on a flow."), this.logNote("setting the periodic state to " + e3.logStr), this._getCoreViewModel().periodicState = e3._getCoreViewModel(); + } + get periodicState() { + const e3 = this._getCoreViewModel().periodicState; + return e3 ? this.coreFactory.createArchWrapper(e3) : null; + } + } + t2.default = o; + }, 40728: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.getSpeechToTextEngine = a, t2.getSpeechToTextEngines = s; + const n2 = i2(31635), r2 = n2.__importStar(i2(2235)), o = n2.__importDefault(i2(36019)); + function a(e3) { + return o.default.build(r2.getSpeechToTextEngine).templateParams({ engineId: e3 }).call(); + } + function s(e3) { + return o.default.build(r2.getSpeechToTextEngines).queryParams(e3.getSearchQueryParams()).call(); + } + a.api = r2.getSpeechToTextEngine, s.api = r2.getSpeechToTextEngines; + }, 40762: (e2, t2, i2) => { + const n2 = i2(60475), r2 = i2(7401), { getConversationDataActionType: o } = i2(30801); + function a() { + Object.defineProperties(this, { _participantId: { writable: true } }), a.baseConstructor.apply(this, arguments); + } + n2.extend(a, o, true), Object.defineProperties(a.prototype, { pasteReIdOrRename: { value: function(e3) { + a._super.pasteReIdOrRename.apply(this, arguments), this.participantId.pasteReIdOrRename(e3); + } }, pasteResolveOldToNewValues: { value: function(e3) { + a._super.pasteResolveOldToNewValues.apply(this, arguments), this.participantId.pasteResolveOldToNewValues(e3); + } }, participantId: { enumerable: true, get: function() { + return this._participantId; + }, set: function(e3) { + this._participantId = this.reviveItem(e3, r2); + } } }), e2.exports = a; + }, 40773: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = i2(43212), o = i2(17604), a = i2(19284), s = n2.__importDefault(i2(65449)), l = i2(63221), u = i2(47957); + class d extends r2.BaseConfigurationListViewModel { + constructor(e3) { + super(e3); + } + get className() { + return "SpeechToTextEngineViewModel"; + } + getConfiguration(e3, t3) { + if (null == t3 ? void 0 : t3.isForFlowYaml) { + const e4 = {}; + if (!this.id || !this.name) return; + return e4.name = this.name, this.selection === l.engineSelectionTypes.engineSelectionDefault && (e4.defaultEngine = true), e4; + } + return { name: this.model.name, id: this.model.id, isDefault: this.model.isDefault, grammarBased: this.model.grammarBased, selection: this.model.selection }; + } + setEngine(e3, t3) { + this.model.id = e3.id, this.model.name = e3.name, this.model.isDefault = e3.isDefault, this.model.grammarBased = e3.grammarBased, this.selection = t3 ? l.engineSelectionTypes.engineSelectionDefault : l.engineSelectionTypes.engineSelectionSpecific; + } + get id() { + return this.model.id; + } + set id(e3) { + this.model.id = e3; + } + get isDefault() { + return this.model.isDefault; + } + set isDefault(e3) { + this.model.isDefault = e3; + } + get selection() { + return this.model.selection; + } + set selection(e3) { + this.model.selection = e3; + } + get isGenesysEngine() { + return this.model.id.startsWith("genesys~") || this.model.id === s.default.defaultId; + } + get label() { + return this.model.name; + } + get name() { + return this.model.name; + } + set name(e3) { + this.model.name = e3; + } + get grammarBased() { + return this.model.grammarBased || this.model.isGrammarBased; + } + set grammarBased(e3) { + this.model.grammarBased = e3; + } + get isGrammarBased() { + return !!this.grammarBased; + } + get supportedLanguages() { + return this.model.supportedLanguages; + } + set supportedLanguages(e3) { + this.model.supportedLanguages = e3; + } + get description() { + return this.isGenesysEngine ? "" : u.integration.name; + } + get isSpeechToTextEngineViewModel() { + return true; + } + isLanguageSupported(e3) { + return !this.supportedLanguages || 0 === this.supportedLanguages.length || this.supportedLanguages.includes(e3.toLowerCase()); + } + static isSttIdBotTranscriptionConnectorType(e3) { + return !!(null == e3 ? void 0 : e3.contains("bot_transcription_connector~")); + } + get isBotTranscriptionConnectorType() { + return d.isSttIdBotTranscriptionConnectorType(this.model.id); + } + get isBotTranscriptionConnectorTypeOrGrammarBased() { + return this.isBotTranscriptionConnectorType || this.isGrammarBased; + } + updateItem(e3) { + e3 && (this.id = e3.id, this.name = e3.name, this.grammarBased = e3.grammarBased, this.supportedLanguages = e3.supportedLanguages); + } + validate(e3, t3, i3) { + if (this.invalidSpeechToTextEngine = void 0, this.id && !a.speechToTextEngineManager.getItem(this.id) && !s.default.items[this.id] || !this.isLanguageSupported(i3)) { + const n3 = (0, o.sprintf)(u.errors.invalidValue, (0, o.sprintf)(u.speechToText.speechToTextEngineLabelWithLanguageId, i3.toLowerCase())); + e3.addError(t3, n3), this.invalidSpeechToTextEngine = n3; + } + } + } + t2.default = d; + }, 40776: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importDefault(i2(94225)), o = i2(19444), a = n2.__importDefault(i2(40559)); + class s extends a.default { + constructor(e3) { + super(e3, o.queueManager); + } + get _globalTypeName() { + return "queueCollection"; + } + get displayTypeName() { + return "ArchValueQueueCollection"; + } + get _searchByValueSearchProperty() { + return "name"; + } + addLiteralByQueueIdAsync(e3, t3) { + return n2.__awaiter(this, void 0, void 0, function* () { + return this._checkItemIsValidLiteralString(this._infoParm("queueId", "addLiteralByQueueIdAsync"), e3), this._checkItemIsValidFunction(this._infoParm("callbackFunction", "addLiteralByQueueIdAsync"), t3, true), this._addLiteralByIdAsync(e3, "queue").then(() => r2.default.executeCallback(this, "addLiteralByQueueIdAsync", t3, this)); + }); + } + addLiteralByQueueNameAsync(e3, t3) { + return n2.__awaiter(this, void 0, void 0, function* () { + return this._checkItemIsValidLiteralString(this._infoParm("queueName", "addLiteralByQueueNameAsync"), e3), this._checkItemIsValidFunction(this._infoParm("callbackFunction", "addLiteralByQueueNameAsync"), t3, true), this._addLiteralByValueAsync(e3, "queue").then(() => r2.default.executeCallback(this, "addLiteralByQueueNameAsync", t3, this)); + }); + } + get isArchValueQueueCollection() { + return true; + } + } + t2.default = s; + }, 40782: (e2, t2, i2) => { + const n2 = i2(92140), r2 = i2(76395), o = i2(45421), a = i2(36024), s = i2(13126), l = i2(60094), { menuActionActionType: u } = i2(30801), { MenuChoiceViewModel: d } = i2(63883), { ParameterInfo: c } = i2(55909), { ParameterValidator: p } = i2(33951), _ = i2(47957), h = "ClipboardContentMenuViewModel"; + class m extends r2 { + constructor(e3, t3) { + super(e3, t3); + } + _pasteBefore(e3) { + const t3 = super._pasteBefore(e3); + return t3.isFailure || e3.destViewModel.menus ? t3 : (this._destUpconvertMenuChoiceViewModel = d.createMenuChoice(e3.destViewModel, u), this.log("Paste will be up-converting the menu to a sub-menu. Newly created menu choice will be " + this._getNameAndIdStr(this._destUpconvertMenuChoiceViewModel)), this.createClipboardResultSuccess()); + } + _pasteAfter(e3) { + if (!n2.isUndefined(this._destUpconvertMenuChoiceViewModel)) { + let t3 = this.pastedMenuOrTaskOrActionViewModel.name; + t3 = e3.clipboardObject.pasteGetUniqueMenuChoiceName(t3, this._destUpconvertMenuChoiceViewModel.parent, false, true), this._destUpconvertMenuChoiceViewModel.name = t3, this._pasteAddMenuChoiceViewModelForMenuChoiceViewModel(e3.destViewModel, this._destUpconvertMenuChoiceViewModel), this._destUpconvertMenuChoiceViewModel.linkMenu(this.pastedMenuOrTaskOrActionViewModel), this.log("Pasted menu linked to paste created menu choice " + this._getNameAndIdStr(this._destUpconvertMenuChoiceViewModel) + "."), this._destUpconvertMenuChoiceViewModel.resetDtmfToUniqueDtmf(); + } + return this.createClipboardResultSuccess(); + } + static create(e3, t3, i3, n3) { + p.expectBool(t3, () => c.createFunctionParameter(h, "create", "deleteMenuForCut"), true), p.expectObject(i3, () => c.createFunctionParameter(h, "create", "clipboardLogging")), p.expectString(n3, () => c.createFunctionParameter(h, "create", "newContentName"), true); + const r3 = o.getFlowViewModel(e3); + if (!r3) return p.expectFlowViewModel(r3, () => c.createFunctionParameter(h, "create", "menuViewModel.parentFlow")), null; + let s2; + p.expectObject(e3.info, () => c.createFunctionParameter(h, "create", "menuViewModel")); + try { + const o2 = m._addMenuToCoreContent(e3), l2 = new a(); + if (l2.configure(r3, e3, o2, n3), s2 = new m(l2, i3), e3.addClipboardDependencies(s2), t3) { + const t4 = s2._deleteMenuForCut(e3); + if (t4.isFailure) throw t4.messageDisplayStr; + s2.validateFlow(r3); + } + return s2; + } catch (e4) { + i3.logException(e4, "Unable to create clipboard content menu."); + } + return s2 && s2.destroy(), null; + } + get className() { + return h; + } + get clipboardContentType() { + return s.menu; + } + checkCanPasteClipboardContextWithDetails(e3) { + const t3 = super.checkCanPasteClipboardContextWithDetails(e3); + return t3.isFailure ? t3 : e3.destViewModel && (e3.destViewModel.isFlowViewModel || e3.destViewModel.isMenu || e3.destViewModel.isSubMenu) && (e3.destViewModel.isFlowViewModel ? e3.destViewModel.supportsReusableMenus : e3.destFlowViewModel.supportsReusableMenus) && (e3.destViewModel.isFlowViewModel ? n2.isArray(e3.destViewModel.menus) : n2.isArray(e3.destFlowViewModel.menus)) ? e3.destAllowableClipboardContentTypes && !n2.contains(e3.destAllowableClipboardContentTypes, l.menus) ? this.createClipboardResultFailureCanPasteGeneric() : (this.shouldPasteAsSubMenu(e3) && (t3.messageDisplayStr = _.clipboard.content.canPaste.upConvert.menu.toMenuChoice), t3) : this.createClipboardResultFailure(n2.isArray(e3.destFlowViewModel.menus) ? _.clipboard.content.pastableLocations.destinationHasNoChoices : _.clipboard.content.notSupportedByFlowType.menusOrMenuChoices); + } + get isClipboardContentMenu() { + return true; + } + shouldPasteAsSubMenu(e3) { + return e3.destViewModel.isSubMenu || e3.destViewModel.isMenu; + } + } + e2.exports = m; + }, 40810: (e2, t2, i2) => { + "use strict"; + var n2 = i2(50918) && org.antlr; + e2.exports = n2; + }, 40812: (e2, t2, i2) => { + const n2 = i2(28730), { communicateActionType: r2 } = i2(30801), o = i2(7401); + function a() { + Object.defineProperties(this, { _communication: { writable: true } }), a.baseConstructor.apply(this, arguments); + } + n2.extend(a, r2, true), Object.defineProperties(a.prototype, { pasteReIdOrRename: { value: function(e3) { + a._super.pasteReIdOrRename.apply(this, arguments), this.communication.pasteReIdOrRename(e3); + } }, pasteResolveOldToNewValues: { value: function(e3) { + a._super.pasteResolveOldToNewValues.apply(this, arguments), this.communication.pasteResolveOldToNewValues(e3); + } }, communication: { enumerable: true, get: function() { + return this._communication; + }, set: function(e3) { + this._communication = this.reviveItem(e3, o); + } } }), e2.exports = a; + }, 40841: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.firstValueFrom = void 0; + var n2 = i2(59328), r2 = i2(2708); + t2.firstValueFrom = function(e3, t3) { + var i3 = "object" == typeof t3; + return new Promise(function(o, a) { + var s = new r2.SafeSubscriber({ next: function(e4) { + o(e4), s.unsubscribe(); + }, error: a, complete: function() { + i3 ? o(t3.defaultValue) : a(new n2.EmptyError()); + } }); + e3.subscribe(s); + }); + }; + }, 40853: (e2, t2, i2) => { + function n2() { + n2.baseConstructor.apply(this, arguments); + } + i2(11475).extend(n2, "ResponseAssetVariable", true), Object.defineProperties(n2.prototype, { typeIdentifier: { writable: true } }), e2.exports = n2; + }, 40894: (e2, t2, i2) => { + const n2 = i2(92140), r2 = i2(81086), o = i2(65302), { expressionToJsonSchemaTypeMap: a } = i2(54018), { expressionTypeNames: s } = i2(80428), { jsonSchemaTypeNames: l } = i2(29795), { SchemaSource: u } = i2(79519), d = i2(24032).getTopic("SchemaProperty"); + function c(e3, t3, i3) { + c.baseConstructor.call(this), Object.defineProperties(this, { _schemaDefinitions: { value: i3 }, hasArrayWithNoType: { value: false, writable: true }, model: { value: t3 }, properties: { value: [] } }), Object.defineProperties(this, { type: { value: this._determineType(), writable: true } }), this.name = e3; + } + r2.extend(c), Object.defineProperties(c.prototype, { _applyFallbackTypeProperties: { value: function(e3) { + e3 && (this.model.maxLength = e3.maxLength, this.model.minLength = e3.minLength, this.model.minimum = e3.minimum, this.model.maximum = e3.maximum, this.model.default = e3.default, this.model.examples = e3.examples, this.model.type = e3.type, this.model.allowableValues = e3.allowableValues, this.fallbackTypeDescription = e3.description); + } }, _determineTypeFromArray: { value: function(e3, t3, i3) { + const r3 = e3.items || e3.anyOf; + if (!r3) return this.hasArrayWithNoType = true, o.getGlobalTypeGroup().getType(s.string, t3); + if (r3.type || this._hasSchemaDefRef(r3)) return this._determineType(r3, t3, i3); + if (!n2.isArray(r3)) return null; + if (!r3[0]) return null; + const a2 = r3[0].type; + for (let e4 = 1; e4 < r3.length; e4++) if (r3[e4].type && "null" !== r3[e4].type && r3[e4].type !== a2) return null; + return this._determineType(r3[0], t3, i3); + } }, _hasSchemaDefRef: { value: function(e3) { + return n2.isString(e3.$ref) && e3.$ref.length; + } }, _getSchemaDefRef: { value: function(e3) { + if (!this._hasSchemaDefRef(e3)) return d.error("property has no schema definition reference"), null; + if (!e3.$ref.startsWith("#/definitions/")) return d.error(`property ref ${e3.$ref} does not start with #/definitions/`), null; + if (!n2.isObject(this._schemaDefinitions)) return d.error(`we have a property ref ${e3.$ref} but no schema definitions`), null; + const t3 = e3.$ref.substring(14); + return t3 && n2.isObject(this._schemaDefinitions[t3]) ? this._schemaDefinitions[t3] : (d.error(`No schema definition found for property ref ${e3.$ref}`), null); + } }, _determineType: { value: function(e3, t3, i3, r3) { + if (e3 = e3 || this.model, this._hasSchemaDefRef(e3)) { + const t4 = this._getSchemaDefRef(e3); + t4 && (e3 = t4); + } + const d2 = o.getGlobalTypeGroup(); + if (!i3 && e3.archDataTypeId) { + t3 = t3 || "array" === e3.type; + const i4 = d2.getType(e3.archDataTypeId, t3); + if (i4) return i4; + } + let c2, p, _; + if (e3.anyof ? e3.anyOf = e3.anyof : e3.items && e3.items.anyof && (e3.items.anyOf = e3.items.anyof), !e3.items && e3.anyOf) { + const t4 = this._determineTypeFromArray(e3, false, i3); + t4 && (e3.type = a[t4.dataType]); + } else if (e3.items && e3.items.anyOf) e3.items = e3.anyOf, e3.type = "array"; + else if (n2.isArray(e3.oneOf)) { + const t4 = n2.find(e3.oneOf, (e4) => "null" !== e4.type); + t4 && (e3.type = t4.type, c2 = t4); + } + if (n2.isArray(e3.type)) { + const i4 = n2.without(e3.type, "null"); + if (i4.length > 1) return d2.getType(s.string, t3); + e3.type = i4[0]; + } else if (!n2.isString(e3.type)) return null; + switch (_ = e3.source === u.aiGuide ? e3.type?.toLowerCase() : e3.type, _) { + case l.string: + p = d2.getType(s.string, t3); + break; + case l.boolean: + p = d2.getType(s.boolean, t3); + break; + case l.integer: + p = d2.getType(s.integer, t3); + break; + case l.number: + p = d2.getType(s.decimal, t3); + break; + case l.object: + break; + case l.array: + p = this._determineTypeFromArray(e3, true, i3); + break; + case l.date: + p = d2.getType(s.date, t3); + } + return r3 && p?.isAvailableForFlowType(r3) && this._applyFallbackTypeProperties(c2), p; + } }, setFallbackType: { value: function(e3) { + return this._determineType(void 0, false, true, e3); + } }, additionalInfoSection: { get: function() { + return this.model.additionalInfoSection; + } }, staticMetaData: { get: function() { + return this.model.staticMetaData; + } }, description: { get: function() { + return n2.isString(this.fallbackTypeDescription) ? n2.isString(this.model.description) ? this.model.description + " " + this.fallbackTypeDescription : this.fallbackTypeDescription : this.model.description; + }, set: function(e3) { + this.model.description = e3; + } }, defaultValue: { get: function() { + if (n2.isArray(this.model.default)) { + const e3 = []; + return n2.each(this.model.default, (t3) => { + e3.push(n2.isNullOrUndefined(t3) ? t3 : t3.toString()); + }), e3; + } + return void 0 !== this.model.default && null !== this.model.default ? this.model.default.toString() : void 0; + } }, examples: { get: function() { + return this.model.examples; + } }, getConfiguration: { value: function() { + const e3 = {}; + return n2.each(this.properties, function(t3) { + e3[t3.name] = t3.getConfiguration(); + }), { type: this.model.type, description: this.model.description }; + } }, id: { get: function() { + return this.model.id; + }, set: function(e3) { + this.model.id = e3; + } }, jsonType: { get: function() { + return this.model.type; + } }, minimum: { get: function() { + return this.model.minimum; + } }, minLength: { get: function() { + return this.model.minLength; + } }, maximum: { get: function() { + return this.model.maximum; + } }, maxLength: { get: function() { + return this.model.maxLength; + } }, name: { get: function() { + return this.model.name; + }, set: function(e3) { + this.model.name = e3; + } }, required: { get: function() { + return this.model.required; + }, set: function(e3) { + this.model.required = e3; + } }, title: { get: function() { + return this.model.title; + } } }), e2.exports = c; + }, 40904: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(81574)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "journeyCustomEventAttribute"; + } + get name() { + } + get dataType() { + } + get value() { + } + get displayTypeName() { + return "ArchValueJourneyCustomEventAttribute"; + } + get isArchValueJourneyCustomEventAttribute() { + return true; + } + } + t2.default = r2; + }, 40971: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.FindScheduleGroupActionModel = void 0; + const n2 = i2(49574), r2 = i2(30801); + class o extends n2.BaseFindSystemObjectByNameActionModel { + constructor(e3) { + super(e3), this.__type = o.__type; + } + } + t2.FindScheduleGroupActionModel = o, o.__type = r2.findScheduleGroupActionType, o.registerType(); + }, 40974: (e2, t2, i2) => { + "use strict"; + var n2, r2, o; + Object.defineProperty(t2, "__esModule", { value: true }); + const a = i2(31635), s = a.__importStar(i2(12847)), l = a.__importDefault(i2(55015)), u = i2(80295), d = a.__importDefault(i2(41757)), c = a.__importDefault(i2(95079)), p = a.__importStar(i2(75800)), _ = { inputAny: ["inputOne", "inputColl"], inputOutputAny: ["inputOne", "inputColl", "outputOne", "outputColl"], inputOutputColl: ["inputColl", "outputColl"], inputOutputOne: ["inputOne", "outputOne"], outputAny: ["outputOne", "outputColl"] }; + class h extends c.default { + constructor(e3) { + super(e3), (0, u.makeUnenumerable)(this, "_allowCollection"), (0, u.makeUnenumerable)(this, "_characteristics"), (0, u.makeUnenumerable)(this, "_direction"), (0, u.makeUnenumerable)(this, "_isAnAnyType"), (0, u.makeUnenumerable)(this, "_isComplex"), (0, u.makeUnenumerable)(this, "_properties"), (0, u.makeUnenumerable)(this, "_userCreatable"), this._isAnAnyType || (this._isAnAnyType = l.default.createNotAvailable("isAnAnyType")), this._userCreatable || (this._userCreatable = l.default.createNotAvailable("userCreatable")); + } + get allowCollection() { + return this._allowCollection; + } + set allowCollection(e3) { + this._allowCollection = e3; + } + get characteristics() { + return this._characteristics; + } + set characteristics(e3) { + this._characteristics = e3; + } + get direction() { + return this._direction; + } + set direction(e3) { + this._direction = {}, Object.keys(e3).forEach((t3) => { + "flow" === t3 ? (this._direction.flow = {}, Object.keys(e3.flow).forEach((t4) => { + const i3 = this.reviveMap(e3.flow[t4], l.default); + (_[t4] || [t4]).forEach((e4) => { + this._direction.flow[e4] || (this._direction.flow[e4] = {}); + const t5 = this._direction.flow[e4]; + Object.keys(i3).forEach((n3) => { + t5[n3] ? s.error(`Type: ${this.name} - Duplicate direction availability entry found for ${n3} and ${e4}`) : t5[n3] = i3[n3]; + }); + }); + })) : s.error(`Type: ${this.name} - not expecting key: '${t3}' under direction other than flow`); + }); + } + get isAnAnyType() { + return this._isAnAnyType; + } + set isAnAnyType(e3) { + this._isAnAnyType = this.reviveItem(e3, l.default); + } + get isComplex() { + return this._isComplex; + } + set isComplex(e3) { + this._isComplex = e3; + } + get properties() { + return this._properties || []; + } + set properties(e3) { + this._properties = this.reviveArray(e3, d.default); + } + get userCreatable() { + return this._userCreatable; + } + set userCreatable(e3) { + this._userCreatable = this.reviveItem(e3, l.default); + } + } + t2.default = h, a.__decorate([(0, u.enumerable)(true), a.__metadata("design:type", Boolean), a.__metadata("design:paramtypes", [Boolean])], h.prototype, "allowCollection", null), a.__decorate([(0, u.enumerable)(true), a.__metadata("design:type", Object), a.__metadata("design:paramtypes", [Object])], h.prototype, "characteristics", null), a.__decorate([(0, u.enumerable)(true), a.__metadata("design:type", "function" == typeof (n2 = void 0 !== p && p.IVariableScopeDirectionSupportMap) ? n2 : Object), a.__metadata("design:paramtypes", [Object])], h.prototype, "direction", null), a.__decorate([(0, u.enumerable)(true), a.__metadata("design:type", "function" == typeof (r2 = void 0 !== l.default && l.default) ? r2 : Object), a.__metadata("design:paramtypes", [Object])], h.prototype, "isAnAnyType", null), a.__decorate([(0, u.enumerable)(true), a.__metadata("design:type", Boolean), a.__metadata("design:paramtypes", [Boolean])], h.prototype, "isComplex", null), a.__decorate([(0, u.enumerable)(true), a.__metadata("design:type", Array), a.__metadata("design:paramtypes", [Object])], h.prototype, "properties", null), a.__decorate([(0, u.enumerable)(true), a.__metadata("design:type", "function" == typeof (o = void 0 !== l.default && l.default) ? o : Object), a.__metadata("design:paramtypes", [Object])], h.prototype, "userCreatable", null); + }, 41011: function(e2, t2, i2) { + !(function(e3) { + "use strict"; + e3.defineLocale("sv", { months: "januari_februari_mars_april_maj_juni_juli_augusti_september_oktober_november_december".split("_"), monthsShort: "jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"), weekdays: "s\xF6ndag_m\xE5ndag_tisdag_onsdag_torsdag_fredag_l\xF6rdag".split("_"), weekdaysShort: "s\xF6n_m\xE5n_tis_ons_tor_fre_l\xF6r".split("_"), weekdaysMin: "s\xF6_m\xE5_ti_on_to_fr_l\xF6".split("_"), longDateFormat: { LT: "HH:mm", LTS: "HH:mm:ss", L: "YYYY-MM-DD", LL: "D MMMM YYYY", LLL: "D MMMM YYYY [kl.] HH:mm", LLLL: "dddd D MMMM YYYY [kl.] HH:mm", lll: "D MMM YYYY HH:mm", llll: "ddd D MMM YYYY HH:mm" }, calendar: { sameDay: "[Idag] LT", nextDay: "[Imorgon] LT", lastDay: "[Ig\xE5r] LT", nextWeek: "[P\xE5] dddd LT", lastWeek: "[I] dddd[s] LT", sameElse: "L" }, relativeTime: { future: "om %s", past: "f\xF6r %s sedan", s: "n\xE5gra sekunder", ss: "%d sekunder", m: "en minut", mm: "%d minuter", h: "en timme", hh: "%d timmar", d: "en dag", dd: "%d dagar", M: "en m\xE5nad", MM: "%d m\xE5nader", y: "ett \xE5r", yy: "%d \xE5r" }, dayOfMonthOrdinalParse: /\d{1,2}(\:e|\:a)/, ordinal: function(e4) { + var t3 = e4 % 10; + return e4 + (1 == ~~(e4 % 100 / 10) ? ":e" : 1 === t3 || 2 === t3 ? ":a" : ":e"); + }, week: { dow: 1, doy: 4 } }); + })(i2(95093)); + }, 41053: (e2, t2, i2) => { + "use strict"; + const n2 = i2(31635), r2 = i2(12179), o = n2.__importDefault(i2(97891)), a = n2.__importDefault(i2(5730)), s = i2(47957); + class l extends a.default { + constructor(e3, t3) { + super(e3.parentFlow, e3), this._loadModel(t3); + } + } + l.info = o.default.createActionInfo({ actionClass: l, canBeInTask: true, helpTopic: r2.helpTopics.actions.flushAudio, modelClass: i2(30905), name: s.actions.flushAudio, scriptingName: "ArchActionFlushAudio" }), t2.A = l; + }, 41108: (e2, t2, i2) => { + "use strict"; + const n2 = i2(31635), r2 = n2.__importDefault(i2(92140)), o = n2.__importStar(i2(17498)), a = n2.__importStar(i2(1115)), s = n2.__importStar(i2(75669)), l = i2(12457), u = i2(7379), d = i2(7379), c = n2.__importDefault(i2(5730)), p = i2(80428), _ = i2(98364), h = i2(81516), m = n2.__importDefault(i2(4648)), g = i2(96618), f = i2(12179), T = i2(28803), y = n2.__importDefault(i2(97891)), S = i2(7379), A = i2(640), N = i2(26847), O = i2(7379), I = i2(71528), v = i2(17604), C = i2(47957); + class b extends c.default { + constructor(e3, t3) { + super(e3.parentFlow, e3), this.responseManager = A.nonFormResponseManager, this.libraryManager = I.responseLibraryManager, this.substitutions = null, this._loadModel(t3); + } + _loadModel(e3) { + super._loadModel(e3), this.setOutOfService(); + } + setOutOfService() { + this.substitutions.outOfService = !this.model || !this.performSubstitutions; + } + static get branchInfo() { + return [{ label: C.generic.branches.success, outputId: N.outputIds.success, required: true }, { label: C.generic.branches.failure, outputId: N.outputIds.failure, required: true }]; + } + getDetails() { + return this.responseName ? new l.ActionDetails([C.getResponse.selectedResponse], [this.responseName]) : null; + } + get performSubstitutions() { + return this.model.performSubstitutions; + } + set performSubstitutions(e3) { + this.model.performSubstitutions = e3, this.setOutOfService(), e3 && a.validateAction(this, true); + } + get responseLibrary() { + return this.model.responseLibrary; + } + set responseLibrary(e3) { + this.model.responseLibrary = e3; + } + _preDestroy() { + super._preDestroy(), this.responseManager.tryRemoveItemFromFlowMetadata(this, this.responseId); + } + static get managedProperties() { + return [{ property: "response", createDetails: T.NetworkBasedActionProperty.createCreateDetails("responseId", "responseName", A.nonFormResponseManager, C.getResponse.mustSelectResponse, C.getResponse.responseNotFound, null), yamlOptions: b.createYamlOptions("response", (e3) => e3.setSkipProperty(true).setExportOrder(20)) }, { description: C.getResponse.responseBodyDescription, label: C.getResponse.responseBody, property: "responseBody", options: h.ExpressionTypeStringOptions.create((e3) => e3.setAsOutput()), yamlOptions: b.createYamlOptions("responseBody", (e3) => e3.setPropertyName("valueResponseBody")), type: p.expressionTypeNames.string }, { description: (0, v.sprintf)(C.getResponse.responseBodyHandlingDescription, C.getResponse.responseBody), label: C.getResponse.responseBodyHandlingLabel, property: "responseBodyHandling", options: h.ExpressionTypeStringOptions.create((e3) => e3.setDefaultText(S.none.id).setDescriptionInfo(C.getResponse.responseBodyHandlingLabel, (0, v.sprintf)(C.getResponse.responseBodyHandlingDescription, C.getResponse.responseBody)).setFeatureConfigName(m.default.sendNotificationAction).facets.setAllowableValues(u.allStringBodyHandlingTypesForAutomate).setAllowableValueUseOriginalDisplayString(true)), supportedFlowTypes: g.flowTypes.flowTypesAllAutomate.concat(g.flowTypes.flowTypesAllCicero), optionsForSpecificFlowTypes: [{ flowTypes: g.flowTypes.flowTypesAllCicero, options: h.ExpressionTypeStringOptions.create((e3) => e3.setDefaultText(O.removeAllFormatting.id).setDescriptionInfo(C.getResponse.responseBodyHandlingLabel, (0, v.sprintf)(C.getResponse.responseBodyHandlingDescription, C.getResponse.responseBody)).setFeatureConfigName(m.default.botFlowsGetResponseActionFeature).facets.setAllowableValues(d.allStringBodyHandlingTypesForBots).setAllowableValueUseOriginalDisplayString(true)) }], type: p.expressionTypeNames.string }, { dataList: true, property: "substitutions" }, { property: "library", isJustForFlowYaml: true, yamlOptions: b.createYamlOptions("library", (e3) => e3.setExportOrder(30)) }, { label: C.responseAsset.responseAssetAttachmentsLabel, options: _.ExpressionTypeResponseAssetOptions.create((e3) => e3.setAsOutput().setIninTestingField("get-attachments").setDescriptionInfo(C.responseAsset.responseAssetAttachmentsLabel, C.responseAsset.responseAssetAttachmentsDescription).setIsOptional(true).setIsCollection(true).setFeatureConfigName(m.default.cannedResponseAttachmentsFeature)), property: "attachments", type: p.expressionTypeNames.responseAsset, supportedFlowTypes: [...g.flowTypes.flowTypesAllAutomate, g.flowTypes.flowTypeDigitalBot, g.flowTypes.flowTypeCommonModule] }]; + } + _isSelectedResponseInSelectedResponseLibrary(e3, t3) { + const i3 = e3 || this.selectedResponse, n3 = t3 || this.selectedResponseLibrary; + return !(!i3 || !n3 || r2.default.isUndefined(r2.default.find(i3.libraries, { id: n3.id }))); + } + postProcessYamlConfig(e3, t3, i3) { + var n3; + if (!this.responseName) return false; + const o2 = (null === (n3 = this.responseLibrary) || void 0 === n3 ? void 0 : n3.name) || s.unknownLibrary; + e3.library = {}; + const a2 = (e3.library[o2] = { response: {} }).response[this.responseName] = {}; + e3.substitutions ? r2.default.moveAndDeleteProperty(e3, a2, "substitutions") : r2.default.ensureYamlNoneTrue(a2); + } + search(e3) { + super.search(e3); + const t3 = this.responseName, i3 = this.responseLibrary ? this.responseLibrary.name : ""; + e3.checkText(this, i3, C.getResponse.library), e3.checkText(this, t3, C.getResponse.selectedResponse); + } + get responseLibraryDoesNotContainResponse() { + if (!this.responseLibrary && !this.responseId) return false; + const e3 = this.responseManager.getItem(this.responseId); + return e3 && !r2.default.findWhere(e3.libraries, { id: this.responseLibrary.id }); + } + get selectedResponseLibraryIsInvalid() { + if (!this.responseLibrary || !this.responseLibrary.id) return false; + const e3 = this.libraryManager.getItem(this.responseLibrary.id); + return r2.default.isUndefined(e3); + } + get selectedResponseNotInResponseLibraryMessage() { + if (!this.responseId) return ""; + const e3 = this.selectedResponse; + return e3 && e3.libraries.length > 0 ? C.getResponse.responseLibraryDoesNotContainResponse : (0, v.sprintf)(C.getResponse.noResponseLibrariesContainResponse); + } + get suggestedResponseLibraryCount() { + const e3 = this.suggestedResponseLibraries; + return e3 ? e3.length : 0; + } + setResponseLibrary(e3) { + this.responseLibrary = e3 ? e3.model : void 0, a.validateAction(this, false, true); + } + setResponseDataAsync(e3, t3) { + return n2.__awaiter(this, void 0, void 0, function* () { + const i3 = e3 ? e3.name : "", n3 = e3 ? e3.id : ""; + if (null === e3 && null === t3 || this.responseId !== n3) { + if (this.responseName && (this.responseManager.tryRemoveItemFromFlowMetadata(this, this.responseId), o.unRegisterConsumer(this, this.responseManager.dependencyContext)), this.responseId = n3, this.responseName = i3, this.substitutions.destroyChildren(), this.performSubstitutions = false, t3 ? this.setResponseLibrary(t3) : e3 && e3.libraries ? this.responseLibrary = e3.library : this.responseLibrary = void 0, !this.responseName) return a.validateAction(this, false, true), Promise.resolve(); + this.responseManager.addItemToFlowMetadata(this, this.responseName, n3), yield this.responseManager.getSubstitutionInputs(e3), this.responseManager.mergeSchemaProperties(e3.substitutions, this.substitutions); + } + }); + } + get selectedResponse() { + if (this.responseId) return this.responseManager.getItem(this.responseId); + } + get selectedResponseLibrary() { + if (this.responseLibrary && this.responseLibrary.id) return this.libraryManager.getItem(this.responseLibrary.id); + } + get isSelectedResponseInSelectedResponseLibrary() { + return this._isSelectedResponseInSelectedResponseLibrary(this.selectedResponse, this.selectedResponseLibrary); + } + get suggestedResponseLibraries() { + const e3 = this.selectedResponse; + if (e3 && !this._isSelectedResponseInSelectedResponseLibrary(e3)) return e3.libraries; + } + validate(e3) { + const t3 = this.selectedResponse; + if (e3.isDeep && t3 && (this.responseManager.mergeSchemaProperties(t3.substitutions, this.substitutions), this.responseManager.addItemToFlowMetadata(this, this.responseName, this.responseId)), this.responseLibrary) { + const i3 = this.selectedResponseLibrary; + i3 ? this.selectedResponse && !this._isSelectedResponseInSelectedResponseLibrary(t3, i3) && e3.addWarning(this, this.selectedResponseNotInResponseLibraryMessage) : e3.addWarning(this, C.getResponse.responseLibraryNotFound); + } else e3.addError(this, C.getResponse.mustSelectLibrary); + try { + this.response.skipValidationCheck = !this.responseLibrary, this.responseBody.options.suppressParserValidationMessages = !this.responseId, super.validate(e3); + } finally { + this.response.skipValidationCheck = false, this.responseBody.options.suppressParserValidationMessages = false; + } + } + } + b.info = y.default.createActionInfo({ actionClass: b, canBeInTask: true, helpTopic: f.helpTopics.actions.getResponse, modelClass: i2(55706), name: C.actions.getResponse, scriptingName: "ArchActionGetResponse" }), t2.A = b; + }, 41136: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.FindGrammarActionModel = void 0; + const n2 = i2(49574), r2 = i2(30801); + class o extends n2.BaseFindSystemObjectByNameActionModel { + constructor(e3) { + super(e3), this.__type = o.__type; + } + } + t2.FindGrammarActionModel = o, o.__type = r2.findGrammarActionType, o.registerType(); + }, 41167: (e2, t2, i2) => { + const n2 = i2(15321), r2 = i2(45214), o = i2(30068).default; + function a() { + Object.defineProperties(this, { _client: { writable: true }, _user: { writable: true } }), this.id = void 0, this.action = void 0, this.timestamp = void 0, this.secure = void 0, this.version = void 0, this.virtualAgentEnabled = false, this.agenticVirtualAgentEnabled = false, a.baseConstructor.apply(this, arguments); + } + r2.extend(a, "AuditMessage"), Object.defineProperties(a.prototype, { client: { enumerable: true, get: function() { + return this._client; + }, set: function(e3) { + this._client = this.reviveItem(e3, o); + } }, user: { enumerable: true, get: function() { + return this._user; + }, set: function(e3) { + this._user = this.reviveItem(e3, n2); + } }, isVersionableAction: { get: function() { + return this.isCheckin || this.isPublish; + } }, isCheckin: { get: function() { + return "CHECKIN" === this.action; + } }, isCheckout: { get: function() { + return "CHECKOUT" === this.action; + } }, isCreate: { get: function() { + return "CREATE" === this.action; + } }, isDeactivate: { get: function() { + return "DEACTIVATE" === this.action; + } }, isDelete: { get: function() { + return "DELETE" === this.action; + } }, isPublish: { get: function() { + return "PUBLISH" === this.action; + } }, isRevert: { get: function() { + return "REVERT" === this.action; + } }, isSave: { get: function() { + return "SAVE" === this.action; + } }, isUpdate: { get: function() { + return "UPDATE" === this.action; + } } }), e2.exports = a; + }, 41187: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(54757)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "communicationCollection"; + } + get displayTypeName() { + return "ArchValueCommunicationCollection"; + } + get isArchValueCommunicationCollection() { + return true; + } + } + t2.default = r2; + }, 41188: (e2, t2, i2) => { + const n2 = i2(16113), { evaluateScheduleGroupActionType: r2 } = i2(30801), o = i2(7401); + function a() { + Object.defineProperties(this, { _inServiceSchedules: { writable: true }, _scheduleGroup: { writable: true } }), this.scheduleGroupId = void 0, this.scheduleGroupName = void 0, a.baseConstructor.apply(this, arguments); + } + n2.extend(a, r2, true), Object.defineProperties(a.prototype, { pasteReIdOrRename: { value: function(e3) { + a._super.pasteReIdOrRename.apply(this, arguments), this.inServiceSchedules.pasteReIdOrRename(e3), this.scheduleGroup.pasteReIdOrRename(e3); + } }, pasteResolveOldToNewValues: { value: function(e3) { + a._super.pasteResolveOldToNewValues.apply(this, arguments), this.inServiceSchedules.pasteResolveOldToNewValues(e3), this.scheduleGroup.pasteResolveOldToNewValues(e3); + } }, inServiceSchedules: { enumerable: true, get: function() { + return this._inServiceSchedules; + }, set: function(e3) { + this._inServiceSchedules = this.reviveItem(e3, o); + } }, scheduleGroup: { enumerable: true, get: function() { + return this._scheduleGroup; + }, set: function(e3) { + this._scheduleGroup = this.reviveItem(e3, o); + } } }), e2.exports = a; + }, 41197: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importDefault(i2(92140)), o = n2.__importDefault(i2(76155)); + let a; + class s extends o.default { + get className() { + return "FlowElementWithNodeInformationAndChildren"; + } + get isFlowElementWithNodeInformationAndChildren() { + return true; + } + destroyChildren() { + } + _preDestroy() { + if (super._preDestroy(), this._destroyReferencedVariables = void 0, this.parentFlow && !this.parentFlow.isDestroying && this.parent && !this.parent.isDestroying) { + const e3 = this.topParent; + (!e3 || e3 && !e3.isDestroyedOrDestroying) && (this._destroyReferencedVariables = (a || (a = i2(5093)), a).getDependentVariables(this)); + } + } + _destroy() { + super._destroy(), this.destroyChildren(); + } + _postDestroy() { + if (super._postDestroy(), this._destroyReferencedVariables) try { + r2.default.each(this._destroyReferencedVariables, (e3) => { + e3.deleteItem(true); + }); + } finally { + this._destroyReferencedVariables = void 0; + } + } + } + t2.default = s; + }, 41264: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(84655)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "agentScorePair"; + } + get initialValue() { + return this._initialValue; + } + get displayTypeName() { + return "ArchVariableAgentScorePair"; + } + get isArchVariableAgentScorePair() { + return true; + } + } + t2.default = r2; + }, 41322: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.guideVersionManager = t2.GuideVersionManager = void 0; + const n2 = i2(31635), r2 = n2.__importStar(i2(11914)), o = i2(24032), a = n2.__importDefault(i2(82630)), s = i2(30801), l = i2(79627), u = i2(81801), d = n2.__importDefault(i2(47532)), c = i2(47957), p = i2(27862); + class _ extends d.default { + constructor() { + super(), this.topic = (0, o.getTopic)("guideVersionManager"), this._rawServerCache = {}, this.apiCallList = void 0, this.apiCallSingle = r2.getGuideVersion, this.actionsForUsageSearch = [s.callGuideActionType], this.actionPropertyForUsageSearch = "", this.defaultInputsWithNoDefaultToNotSet = true, this.className = "GuideVersionManager", this.dependencyContext = c.guide.guideVersion, this.uiMetadataSectionName = "guideVersions", this.noApiCallList = true, this._initialize(); + } + get requiredAuth() { + return u.externalAuthorizations.authStrings.guideVersionView; + } + get dependencyType() { + return p.GuideVersion; + } + get _networkModel() { + return a.default; + } + _createItemViewModel(e3) { + return new l.GuideVersionViewModel(e3); + } + } + t2.GuideVersionManager = _, t2.guideVersionManager = new _(); + }, 41330: (e2, t2, i2) => { + const n2 = i2(92140); + void 0 === global.IS_BUILD && (global.IS_BUILD = true), void 0 === global.IS_SCRIPTING && (global.IS_SCRIPTING = true), void 0 === global.DEBUG && (global.DEBUG = false), void 0 === global.VERBOSE && (global.VERBOSE = false), void 0 === global.TEST_MODE && (global.TEST_MODE = false), void 0 === global.BUILD_INFO_BUILD_NUMBER && (global.BUILD_INFO_BUILD_NUMBER = "0.0.0"); + const r2 = "20.0.0"; + let o = false; + if (global && global.process && global.process.versions && n2.isString(global.process.versions.node)) { + const e3 = global.process.versions.node.split("."); + if (e3.length >= 2) { + const t3 = parseInt(e3[0], 10), i3 = parseInt(e3[1], 10); + if (t3 < 20 || 20 === t3 && i3 < 0) throw "Error! Architect Scripting requires that it run in Node version '" + r2 + "' or higher.\nCurrent Node runtime version detected: '" + global.process.versions.node + "'\nPlease update Node and try again. Thanks for playing.\nNow exiting."; + (t3 < 20 || 20 === t3 && i3 < 5) && console.warn("Warning! Architect Scripting recommends that it run in Node version '20.5.0' or higher.\nCurrent Node runtime version detected: '" + global.process.versions.node + "'\nPlease update your Node version."), console.log("Architect Scripting running under Node version '" + global.process.versions.node + "'"), o = true; + } + } + o || console.log("Architect Scripting is running in an unsupported environment. Architect Scripting is supported under Node version '" + r2 + "' or higher. Running in an unsupported environment may result in unpredictable behavior."), i2(61347); + const a = i2(44254).default, { setDefaultRequestModel: s } = i2(50712); + s(a), global.TEST_MODE || [].push(i2(18266)), i2(5430).initializeExpressions(); + }, 41366: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.default = function(e3, t3, i3) { + i3 || (i3 = t3); + const u = new r2(); + u.variables = [], u.defaultSettings = new a(), u.defaultLanguage = t3, u.flowMetaData = new s({ flowDocumentVersion: "1.0", minimumServerVersion: "1.0", features: [] }), u.flowSequenceItemList = []; + const d = e3 === n2.flowTypes.flowTypeDigitalBot ? "initialDigitalBotState" : "initialBotState", c = new o(); + return c.name = l(i3)[d], c.variables = [], c.actionList = [], u.flowSequenceItemList = [c], u.initialSequence = c.id, u; + }; + const n2 = i2(96618), r2 = i2(24893), o = i2(50029), a = i2(74803), s = i2(89266), l = i2(21733); + }, 41377: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importDefault(i2(48849)), o = n2.__importDefault(i2(9836)), a = n2.__importDefault(i2(25767)), s = n2.__importDefault(i2(59177)), l = n2.__importDefault(i2(29824)), u = n2.__importDefault(i2(20812)), d = n2.__importDefault(i2(28326)), c = n2.__importDefault(i2(15461)), p = n2.__importDefault(i2(65507)), _ = n2.__importDefault(i2(48832)), h = n2.__importDefault(i2(3215)), m = n2.__importDefault(i2(8235)), g = n2.__importDefault(i2(59618)), f = n2.__importDefault(i2(86115)), T = n2.__importDefault(i2(49225)), y = n2.__importDefault(i2(39096)), S = n2.__importDefault(i2(75983)), A = n2.__importDefault(i2(51039)), N = n2.__importDefault(i2(10203)), O = n2.__importDefault(i2(4268)), I = n2.__importDefault(i2(93693)), v = n2.__importDefault(i2(76634)), C = n2.__importDefault(i2(7862)), b = n2.__importDefault(i2(78322)), E = n2.__importDefault(i2(53761)), R = n2.__importDefault(i2(79771)), w = n2.__importDefault(i2(86042)), D = n2.__importDefault(i2(23862)), P = { ArchSettingActionPropertyDefault: r2.default, ArchSettingsActionDefaults: o.default, ArchSettingsBotFlow: a.default, ArchSettingsCommonModuleFlow: s.default, ArchSettingsEventErrorFlow: d.default, ArchSettingsEventErrorFlowBot: c.default, ArchSettingsInboundEmailFlow: p.default, ArchSettingsInQueueCallFlow: _.default, ArchSettingsMenu: h.default, ArchSettingsMenuFlow: m.default, ArchSettingsNluIntents: y.default, ArchSettingsNluDynamicSlotType: g.default, ArchSettingsNluDynamicTimeslotType: f.default, ArchSettingsNluIntent: T.default, ArchSettingsNluKnowledge: S.default, ArchSettingsNluVirtualAgent: N.default, ArchSettingsNluSlot: A.default, ArchSettingsOutboundCallFlow: O.default, ArchSettingsPromptsFlow: I.default, ArchSettingsSpeechRec: v.default, ArchSettingsSpeechRecFlow: C.default, ArchSettingsSupportedLanguage: b.default, ArchSettingsSupportedLanguagesFlow: E.default, ArchSettingsUserInput: R.default, ArchSettingsVoiceSurveyFlow: w.default, ArchSettingsWorkitemFlow: D.default, ArchSettingsDetectionJobIntent: l.default, ArchSettingsEmailSendFlow: u.default }; + t2.default = P; + }, 41500: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.MirroredExpressionActionProperty = void 0; + const n2 = i2(36781), r2 = i2(88473), o = i2(55867); + class a extends o.BaseActionProperty { + constructor(e3, t3, i3, n3) { + super(e3, t3), this._getExpressionChangeTrigger = i3, this._getExpressionCallback = n3, this._outOfServiceProvider = (0, r2.addOutOfServiceProperties)(this); + } + destroy() { + super.destroy(), this._outOfServiceProvider.destroy(); + } + get className() { + return "MirroredExpressionActionProperty"; + } + get isMirroredExpression() { + return true; + } + initializeDesignTime() { + super.initializeDesignTime(); + const e3 = this._getExpressionChangeTrigger(this.action); + this.addAutoCleanedUpEventSinkWatch(n2.expressionValueChanged, e3, () => this._updateMirroredExpression()); + } + _updateMirroredExpression() { + this._expression = this._getExpressionCallback(this.action); + } + get expression() { + return this._expression || this._updateMirroredExpression(), this._expression; + } + getDetailDescription() { + } + getConfiguration(e3, t3) { + if (null == t3 ? void 0 : t3.isForFlowYaml) return this.expression.getConfiguration(e3, t3); + } + static createCreateDetails(e3, t3) { + return { create: (i3, n3) => new a(i3, n3, t3, e3), getCreateClass: () => a, modelProperties: [] }; + } + } + t2.MirroredExpressionActionProperty = a; + }, 41510: (e2, t2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.default = { audio: { durationFormatShort: "%1$ss", languageLabel: "%1$s (%2$s)", promptResourceDisplayName: "%1$s (%2$s)", advancedTitleFormat: "%1$s - %2$s" }, builder: { noPartsWithGeneratorFormat: "%1$s %2$s" }, dialogflow: { draftEnvironmentName: "Draft", draftEnvironmentId: "-" }, expression: { returnValueWithString: "%1$s - %2$s", literalAllowableValue: "%1$s (%2$s)", genericJsonPropertyDefModelPropId: "*" }, expressionEvaluation: { collapsedObject: "{...}", collectionLength: "(%1$s)", collapsedCollection: "[...]", collectionStartEndItemIndexes: "[%1$s - %2$s]", emptyCollection: "[ ]", emptyObject: "{ }" }, facets: { errorWithExpressionLabel: "%1$s (%2$s)" }, flow: { appTitleContext: "%1$s - %2$s", defaultInQueueFlowName: "Default In-Queue Flow", goto: { dropdownFormat: "%1$s%2$s - %3$s" }, trackingIdWithName: "%1$s %2$s" }, generic: { redacted: "********", twoStringsSpaceSeparator: "%1$s %2$s", threeStringsSpaceSeparator: "%1$s %2$s %3$s", unknown: "?" }, genesys: { aiStudio: "AI Studio", genesysCloudCopilot: "Genesys Cloud Copilot" }, get: "GET", itemColonValue: "%1$s: %2$s", itemParenValue: "%1$s (%2$s)", itemListing: { itemSeparator: ", ", sentenceSeparator: " " }, language: { formatDisplayStringAndCode: "%1$s (%2$s)", formatDisplayStringAndCodeRedesign: "(%1$s) (%2$s)" }, post: "POST", printFlow: { promptTitle: "%1$s (%2$s):", pageCallout: "%1$s (%2$s)", titleWithId: "%1$s [%2$s]" }, setLocale: { fullLanguageNameContext: "%1$s (%2$s)" }, shortcut: { descriptionFormat: "%1$s %2$s" }, task: { targetPathDisplayStr: "%1$s \u2192 %2$s" }, switchAction: { caseNumber: "Case %1$s", default: "Default" }, sessionSources: { apple: "Apple", applebusinesschat: "Apple Business Chat", discord: "Discord", facebookmessenger: "Facebook Messenger", genesyschatwidget: "Genesys Chat Widget", line: "Line", phone: "Phone", signal: "Signal", slack: "Slack", telegram: "Telegram", webchat: "Webchat", whatsapp: "WhatsApp" }, thirdPartyUserDisplay: "%1$s (%2$s)", timezone: { displayString: "%1$s%2$'02f:%3$'02f" }, updateVariables: { labelValue: "%1$s = %2$s" } }; + }, 41568: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importDefault(i2(39732)), o = n2.__importDefault(i2(9372)), a = n2.__importDefault(i2(25638)); + class s extends r2.default { + constructor({ id: e3, name: t3, description: i3, version: n3, generators: r3, partConfigurators: o2, resultExpressionType: a2, type: s2, expressionDefs: l, restrictToFlowTypeOrTypes: u, categoryIdentifierOrIdentifiers: d }) { + super(e3, t3, i3, n3, r3, o2, a2 = a2 || s2, { outputMode: "" }, u, d, a2.getArchIcon()); + } + get className() { + return "BuilderPartContainerOutputModeDef"; + } + isAvailableForFlow(e3) { + const t3 = (null == e3 ? void 0 : e3.definition.outputModes.length) > 1; + return this.supportsOutputMode && t3 && !this.supportsLanguageTag; + } + get isBuilderPartContainerOutputModeDef() { + return true; + } + get supportsOutputMode() { + return true; + } + createBuilderPartViewModel(e3, t3, i3) { + const n3 = new o.default({ builderPartDefId: this.id, criteria: i3, version: this.version }); + return this.reviveItem(e3, t3, n3); + } + reviveItem(e3, t3, i3, n3) { + return new a.default({ builderViewModel: e3, owningExpressionViewModel: t3, builderPartModel: i3, reId: !!n3 }); + } + } + t2.default = s; + }, 41593: (e2) => { + e2.exports = { askCommon: { invalidInputReceived: "\u041D\u0435\u0434\u043E\u043F\u0443\u0441\u0442\u0438\u043C\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F.", noInputReceived: "\u041D\u0456\u0447\u043E\u0433\u043E \u043D\u0435 \u0432\u0432\u0435\u0434\u0435\u043D\u043E." }, askForBoolean: { noInput: '\u041F\u0440\u043E\u043C\u043E\u0432\u0442\u0435 "\u0422\u0430\u043A", \u0449\u043E\u0431 \u043F\u0440\u043E\u0434\u043E\u0432\u0436\u0438\u0442\u0438, \u0430\u0431\u043E "\u041D\u0456", \u0449\u043E\u0431 \u0437\u0430\u043B\u0438\u0448\u0438\u0442\u0438\u0441\u044F \u0442\u0443\u0442.', noMatch: '\u041F\u0440\u043E\u043C\u043E\u0432\u0442\u0435 "\u0422\u0430\u043A" \u0430\u0431\u043E "\u041D\u0456". \u041F\u0440\u043E\u0434\u043E\u0432\u0436\u0438\u0442\u0438?', question: "\u041F\u0440\u043E\u0434\u043E\u0432\u0436\u0438\u0442\u0438?", noInputDigitalBot: '\u0423\u0432\u0435\u0434\u0456\u0442\u044C "\u0422\u0430\u043A", \u0449\u043E\u0431 \u043F\u0440\u043E\u0434\u043E\u0432\u0436\u0438\u0442\u0438, \u0430\u0431\u043E "\u041D\u0456", \u0449\u043E\u0431 \u0437\u0430\u043B\u0438\u0442\u0438\u0441\u044F \u0442\u0443\u0442.', noMatchDigitalBot: '\u0423\u0432\u0435\u0434\u0456\u0442\u044C "\u0422\u0430\u043A" \u0430\u0431\u043E "\u041D\u0456". \u041F\u0440\u043E\u0434\u043E\u0432\u0436\u0438\u0442\u0438?' }, askForIntent: { noInput: '\u041F\u0440\u043E\u043C\u043E\u0432\u0442\u0435 \u0437\u0430\u043F\u0438\u0442 \u043E\u0434\u043D\u0438\u043C \u043A\u043E\u0440\u043E\u0442\u043A\u0438\u043C \u0440\u0435\u0447\u0435\u043D\u043D\u044F\u043C. \u041D\u0430\u043F\u0440\u0438\u043A\u043B\u0430\u0434, "\u041F\u0435\u0440\u0435\u0432\u0456\u0440\u0438\u0442\u0438 \u0437\u0430\u043B\u0438\u0448\u043E\u043A \u043D\u0430 \u043C\u043E\u0454\u043C\u0443 \u0440\u0430\u0445\u0443\u043D\u043A\u0443"', noMatch: "\u0421\u043A\u0430\u0436\u0456\u0442\u044C \u0449\u0435 \u0440\u0430\u0437, \u0449\u043E \u0432\u0438 \u0445\u043E\u0447\u0435\u0442\u0435 \u0437\u0440\u043E\u0431\u0438\u0442\u0438.", question: "\u0429\u043E \u0432\u0438 \u0445\u043E\u0447\u0435\u0442\u0435 \u0437\u0440\u043E\u0431\u0438\u0442\u0438?", noInputDigitalBot: '\u0423\u0432\u0435\u0434\u0456\u0442\u044C \u0437\u0430\u043F\u0438\u0442 \u043E\u0434\u043D\u0438\u043C \u043A\u043E\u0440\u043E\u0442\u043A\u0438\u043C \u0440\u0435\u0447\u0435\u043D\u043D\u044F\u043C. \u041D\u0430\u043F\u0440\u0438\u043A\u043B\u0430\u0434, "\u041F\u0435\u0440\u0435\u0432\u0456\u0440\u0438\u0442\u0438 \u0437\u0430\u043B\u0438\u0448\u043E\u043A \u043D\u0430 \u043C\u043E\u0454\u043C\u0443 \u0440\u0430\u0445\u0443\u043D\u043A\u0443"' }, askForSlot: { askFor: "\u0417\u0430\u043F\u0438\u0442\u0430\u0442\u0438 %1$s", noInput: "\u0412\u0438\u043C\u043E\u0432\u0456\u0442\u044C \u0430\u0431\u043E \u0432\u0432\u0435\u0434\u0456\u0442\u044C (\u0442\u0443\u0442 \u043C\u0430\u0454 \u0431\u0443\u0442\u0438 \u043D\u0430\u0437\u0432\u0430 \u0441\u043B\u043E\u0442\u0430).", noInputWithSlot: "\u0412\u0438\u043C\u043E\u0432\u0456\u0442\u044C \u0430\u0431\u043E \u0432\u0432\u0435\u0434\u0456\u0442\u044C %1$s.", noMatch: "\u041F\u043E\u0432\u0456\u0434\u043E\u043C\u0442\u0435 (\u0442\u0443\u0442 \u043C\u0430\u0454 \u0431\u0443\u0442\u0438 \u043D\u0430\u0437\u0432\u0430 \u0441\u043B\u043E\u0442\u0430) \u0449\u0435 \u0440\u0430\u0437.", noMatchWithSlot: "\u041F\u043E\u0432\u0456\u0434\u043E\u043C\u0442\u0435 %1$s \u0449\u0435 \u0440\u0430\u0437.", question: "\u042F\u043A\u0430 (\u0442\u0443\u0442 \u043C\u0430\u0454 \u0431\u0443\u0442\u0438 \u043D\u0430\u0437\u0432\u0430 \u0441\u043B\u043E\u0442\u0430)?", questionWithSlot: "\u042F\u043A\u0430 %1$s?", pleaseEnterSlotNameHere: "(\u0442\u0443\u0442 \u043C\u0430\u0454 \u0431\u0443\u0442\u0438 \u043D\u0430\u0437\u0432\u0430 \u0441\u043B\u043E\u0442\u0430)", noInputDigitalBot: "\u0423\u0432\u0435\u0434\u0456\u0442\u044C (\u0442\u0443\u0442 \u043C\u0430\u0454 \u0431\u0443\u0442\u0438 \u043D\u0430\u0437\u0432\u0430 \u0441\u043B\u043E\u0442\u0430).", noInputWithSlotDigitalBot: "\u0423\u0432\u0435\u0434\u0456\u0442\u044C %1$s.", continuationPromptWithSlot: "\u041D\u0430\u0440\u0430\u0437\u0456 \u044F \u043C\u0430\u044E {{Slot.%1$s}}. \u041F\u0440\u043E\u0434\u043E\u0432\u0436\u0443\u0439\u0442\u0435." }, askForNextSlot: { noInput: '\u0412\u0438\u043C\u043E\u0432\u0456\u0442\u044C "\u0422\u0430\u043A", \u044F\u043A\u0449\u043E \u0443 \u0432\u0430\u0441 \u0454 \u0456\u043D\u0448\u0438\u0439 \u0437\u0430\u043F\u0438\u0442, \u0430\u0431\u043E "\u041D\u0456", \u0449\u043E\u0431 \u0437\u0430\u0432\u0435\u0440\u0448\u0438\u0442\u0438 \u0432\u0438\u043A\u043B\u0438\u043A.', noMatch: '\u0412\u0438\u043C\u043E\u0432\u0456\u0442\u044C "\u0422\u0430\u043A", \u044F\u043A\u0449\u043E \u0443 \u0432\u0430\u0441 \u0454 \u0456\u043D\u0448\u0438\u0439 \u0437\u0430\u043F\u0438\u0442, \u0430\u0431\u043E "\u041D\u0456", \u0449\u043E\u0431 \u0437\u0430\u0432\u0435\u0440\u0448\u0438\u0442\u0438 \u0441\u0435\u0430\u043D\u0441.', question: "\u0427\u0438 \u0454 \u0449\u0435 \u0449\u043E\u0441\u044C, \u0456\u0437 \u0447\u0438\u043C \u044F \u043C\u043E\u0436\u0443 \u0432\u0430\u043C \u0434\u043E\u043F\u043E\u043C\u043E\u0433\u0442\u0438?", noInputDigitalBot: '\u0423\u0432\u0435\u0434\u0456\u0442\u044C "\u0422\u0430\u043A", \u044F\u043A\u0449\u043E \u0443 \u0432\u0430\u0441 \u0454 \u0456\u043D\u0448\u0438\u0439 \u0437\u0430\u043F\u0438\u0442, \u0430\u0431\u043E "\u041D\u0456", \u0449\u043E\u0431 \u0437\u0430\u0432\u0435\u0440\u0448\u0438\u0442\u0438 \u0441\u0435\u0430\u043D\u0441.', noMatchDigitalBot: '\u0423\u0432\u0435\u0434\u0456\u0442\u044C "\u0422\u0430\u043A", \u044F\u043A\u0449\u043E \u0443 \u0432\u0430\u0441 \u0454 \u0456\u043D\u0448\u0438\u0439 \u0437\u0430\u043F\u0438\u0442, \u0430\u0431\u043E "\u041D\u0456", \u0449\u043E\u0431 \u0437\u0430\u0432\u0435\u0440\u0448\u0438\u0442\u0438 \u0441\u0435\u0430\u043D\u0441.' }, askForPayment: { noInputDigitalBot: "\u0429\u043E\u0431 \u043F\u0440\u043E\u0434\u043E\u0432\u0436\u0438\u0442\u0438, \u043D\u0430\u0434\u0430\u0439\u0442\u0435 \u043F\u043B\u0430\u0442\u0456\u0436\u043D\u0443 \u0456\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0456\u044E.", noMatchDigitalBot: "\u042F \u043D\u0435 \u0440\u043E\u0437\u0443\u043C\u0456\u044E \u0432\u0430\u0448\u043E\u0457 \u0432\u0456\u0434\u043F\u043E\u0432\u0456\u0434\u0456. \u0421\u043F\u0440\u043E\u0431\u0443\u0439\u0442\u0435 \u0449\u0435 \u0440\u0430\u0437." }, askForAuthentication: { noInputDigitalBot: "\u0429\u043E\u0431 \u043F\u0440\u043E\u0434\u043E\u0432\u0436\u0438\u0442\u0438, \u043D\u0430\u0434\u0430\u0439\u0442\u0435 \u0456\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0456\u044E \u0434\u043B\u044F \u0430\u0432\u0442\u0435\u043D\u0442\u0438\u0444\u0456\u043A\u0430\u0446\u0456\u0457.", noMatchDigitalBot: "\u042F \u043D\u0435 \u0440\u043E\u0437\u0443\u043C\u0456\u044E \u0432\u0430\u0448\u043E\u0457 \u0432\u0456\u0434\u043F\u043E\u0432\u0456\u0434\u0456. \u0421\u043F\u0440\u043E\u0431\u0443\u0439\u0442\u0435 \u0449\u0435 \u0440\u0430\u0437." }, askSurveyQuestion: { notApplicable: "\u041D\u0435 \u0437\u0430\u0441\u0442\u043E\u0441\u043E\u0432\u0443\u0454\u0442\u044C\u0441\u044F", surveyAnswerOptionSequence: "\u041D\u0430\u0442\u0438\u0441\u043D\u0456\u0442\u044C %1$s \u0430\u0431\u043E %2$s.", surveyAnswerNotApplicableSequence: "\u041D\u0430\u0442\u0438\u0441\u043D\u0456\u0442\u044C \u0437\u0456\u0440\u043E\u0447\u043A\u0443, \u0449\u043E\u0431 \u0432\u0438\u0431\u0440\u0430\u0442\u0438 \xAB\u041D\u0435 \u0437\u0430\u0441\u0442\u043E\u0441\u043E\u0432\u0443\u0454\u0442\u044C\u0441\u044F\xBB.", surveyAnswerNotApplicableWithQuestionSequence: "%1$s. \u041D\u0430\u0442\u0438\u0441\u043D\u0456\u0442\u044C \u0437\u0456\u0440\u043E\u0447\u043A\u0443, \u0449\u043E\u0431 \u0432\u0438\u0431\u0440\u0430\u0442\u0438 \xAB\u041D\u0435 \u0437\u0430\u0441\u0442\u043E\u0441\u043E\u0432\u0443\u0454\u0442\u044C\u0441\u044F\xBB.", voiceSurveyNoInputText: "\u0414\u0430\u0439\u0442\u0435 \u0432\u0456\u0434\u043F\u043E\u0432\u0456\u0434\u044C \u043D\u0430 \u0437\u0430\u043F\u0438\u0442\u0430\u043D\u043D\u044F.", voiceSurveyNoMatchText: "\u041C\u0435\u043D\u0456 \u043D\u0435 \u0432\u0434\u0430\u043B\u043E\u0441\u044F \u0432\u0430\u0441 \u0437\u0440\u043E\u0437\u0443\u043C\u0456\u0442\u0438." }, commonModule: { exitCommonModule: "\u0412\u0438\u0439\u0442\u0438 \u0456\u0437 \u0437\u0430\u0433\u0430\u043B\u044C\u043D\u043E\u0433\u043E \u043C\u043E\u0434\u0443\u043B\u044F" }, form: { noInputDigitalBot: "\u0429\u043E\u0431 \u043F\u0440\u043E\u0434\u043E\u0432\u0436\u0438\u0442\u0438, \u0437\u0430\u043F\u043E\u0432\u043D\u0456\u0442\u044C \u0444\u043E\u0440\u043C\u0443.", noMatchDigitalBot: "\u0429\u043E\u0431 \u043F\u0440\u043E\u0434\u043E\u0432\u0436\u0438\u0442\u0438, \u0437\u0430\u043F\u043E\u0432\u043D\u0456\u0442\u044C \u0444\u043E\u0440\u043C\u0443." }, messagingTemplate: { noInputDigitalBot: "\u0412\u0438\u0431\u0435\u0440\u0456\u0442\u044C \u043E\u0434\u0438\u043D \u0456\u0437 \u0434\u043E\u0441\u0442\u0443\u043F\u043D\u0438\u0445 \u0432\u0430\u0440\u0456\u0430\u043D\u0442\u0456\u0432.", noMatchDigitalBot: "\u0412\u0438\u0431\u0435\u0440\u0456\u0442\u044C \u043E\u0434\u0438\u043D \u0456\u0437 \u0434\u043E\u0441\u0442\u0443\u043F\u043D\u0438\u0445 \u0432\u0430\u0440\u0456\u0430\u043D\u0442\u0456\u0432." }, knowledgeSettings: { knowledgeAnswerHighlightFlowProgressionDefault: "\u041F\u0440\u043E\u0434\u043E\u0432\u0436\u0438\u0442\u0438", knowledgeAnswerHighlightFullArticleDefault: "\u041F\u0435\u0440\u0435\u0433\u043B\u044F\u043D\u0443\u0442\u0438 \u0432\u0441\u044E \u0441\u0442\u0430\u0442\u0442\u044E", knowledgeInitialResponseMulti: "\u0429\u043E\u0431 \u043F\u0440\u043E\u044F\u0441\u043D\u0438\u0442\u0438 \u0432\u0430\u0448\u0443 \u0446\u0456\u043B\u044C, \u0432\u0438\u0431\u0435\u0440\u0456\u0442\u044C \u0447\u0438\u0441\u043B\u043E \u0437\u0456 \u0441\u043F\u0438\u0441\u043A\u0443 \u043D\u0438\u0436\u0447\u0435:", knowledgeInitialResponseMultiRetry: "\u0412\u0438\u0431\u0435\u0440\u0456\u0442\u044C \u0447\u0438\u0441\u043B\u043E, \u043D\u0430\u043F\u0440\u0438\u043A\u043B\u0430\u0434 1.\n\u041E\u0441\u044C \u0441\u043F\u0438\u0441\u043E\u043A \u0432\u0430\u0440\u0456\u0430\u043D\u0442\u0456\u0432:", knowledgeNoMatch: "\u0416\u043E\u0434\u043D\u0435 \u0437 \u043D\u0430\u0432\u0435\u0434\u0435\u043D\u043E\u0433\u043E", knowledgeConfirmation: "\u0427\u0438 \u043E\u0442\u0440\u0438\u043C\u0430\u043B\u0438 \u0432\u0438 \u0432\u0456\u0434\u043F\u043E\u0432\u0456\u0434\u044C \u043D\u0430 \u0441\u0432\u043E\u0454 \u0437\u0430\u043F\u0438\u0442\u0430\u043D\u043D\u044F?", knowledgeFollowup: "\u0421\u043F\u043E\u0434\u0456\u0432\u0430\u044E\u0441\u044F, \u0432\u0438 \u043E\u0442\u0440\u0438\u043C\u0430\u043B\u0438 \u0432\u0456\u0434\u043F\u043E\u0432\u0456\u0434\u044C \u043D\u0430 \u0441\u0432\u043E\u0454 \u0437\u0430\u043F\u0438\u0442\u0430\u043D\u043D\u044F. \u0417\u0430\u043F\u0438\u0442\u0430\u0439\u0442\u0435 \u043F\u0440\u043E \u0449\u043E\u0441\u044C \u0449\u0435." }, noOverlay: { intent: { intentConfirmationStr1: "\u0414\u0443\u043C\u0430\u044E, \u0432\u0438 \u0445\u043E\u0447\u0435\u0442\u0435", intentConfirmationStr2: "\u0426\u0435 \u0434\u0456\u0439\u0441\u043D\u043E \u0442\u0430\u043A?" }, youSaid: { youSaidConfirmationStr1: "\u0412\u0438 \u0441\u043A\u0430\u0437\u0430\u043B\u0438", youSaidConfirmationStr2: "\u0426\u0435 \u0434\u0456\u0439\u0441\u043D\u043E \u0442\u0430\u043A?", youSaidConfirmationStr1DigitalBot: "\u0412\u0438 \u0432\u0432\u0435\u043B\u0438" }, noInput: { noInputStr1: "\u0412\u0438\u043C\u043E\u0432\u0456\u0442\u044C \u0430\u0431\u043E \u0432\u0432\u0435\u0434\u0456\u0442\u044C", noInputStr1DigitalBot: "\u0423\u0432\u0435\u0434\u0456\u0442\u044C" }, noMatch: { noMatchStr1: "\u041D\u0430\u0434\u0430\u0439\u0442\u0435" }, whatIs: { whatIsQuestionStr1: "\u042F\u043A\u0438\u0439", whatIsQuestionStr2: "?" }, iGotContinuation: { iGotContinuationStr1: "\u041D\u0430\u0440\u0430\u0437\u0456 \u044F \u043C\u0430\u044E", iGotContinuationStr2: ". \u041F\u0440\u043E\u0434\u043E\u0432\u0436\u0443\u0439\u0442\u0435." } }, defaultCallFlowOne: "\u0410\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u043D\u043E \u0437\u0430\u0434\u0430\u043D\u0438\u0439 \u0448\u043B\u044F\u0445 \u0430\u0431\u043E\u043D\u0435\u043D\u0442\u0430", errorHandlingAgentEscalationConfirmation: "\u0412\u0438 \u0445\u043E\u0447\u0435\u0442\u0435 \u043F\u043E\u0433\u043E\u0432\u043E\u0440\u0438\u0442\u0438 \u0437 \u043A\u043E\u043D\u0441\u0443\u043B\u044C\u0442\u0430\u043D\u0442\u043E\u043C. \u0426\u0435 \u0434\u0456\u0439\u0441\u043D\u043E \u0442\u0430\u043A?", errorHandlingAgentEscalationHandover: "\u0417\u0430\u0447\u0435\u043A\u0430\u0439\u0442\u0435 \u0442\u0440\u043E\u0445\u0438, \u044F \u0437\u2019\u0454\u0434\u043D\u0443\u044E \u0432\u0430\u0441 \u0437 \u043E\u043F\u0435\u0440\u0430\u0442\u043E\u0440\u043E\u043C.", errorHandlingErrorEventHandover: "\u041D\u0430 \u0436\u0430\u043B\u044C, \u0441\u0442\u0430\u043B\u0430\u0441\u044F \u043F\u043E\u043C\u0438\u043B\u043A\u0430. \u0417\u0430\u0447\u0435\u043A\u0430\u0439\u0442\u0435 \u0442\u0440\u043E\u0445\u0438, \u044F \u0437\u2019\u0454\u0434\u043D\u0443\u044E \u0432\u0430\u0441 \u0456\u0437 \u0442\u0438\u043C, \u0445\u0442\u043E \u043C\u043E\u0436\u0435 \u0434\u043E\u043F\u043E\u043C\u043E\u0433\u0442\u0438.", errorHandlingErrorEventHandoverVoiceSurvey: "\u041D\u0430 \u0436\u0430\u043B\u044C, \u0441\u0442\u0430\u043B\u0430\u0441\u044F \u043F\u043E\u043C\u0438\u043B\u043A\u0430. \u041D\u0430 \u0432\u0441\u0435 \u0434\u043E\u0431\u0440\u0435.", errorHandlingRecognitionEventHandover: "\u041D\u0430 \u0436\u0430\u043B\u044C, \u044F \u0432\u0430\u0441 \u043D\u0435 \u0440\u043E\u0437\u0443\u043C\u0456\u044E. \u0417\u0430\u0447\u0435\u043A\u0430\u0439\u0442\u0435 \u0442\u0440\u043E\u0445\u0438, \u044F \u0437\u2019\u0454\u0434\u043D\u0443\u044E \u0432\u0430\u0441 \u0456\u0437 \u0442\u0438\u043C, \u0445\u0442\u043E \u043C\u043E\u0436\u0435 \u0434\u043E\u043F\u043E\u043C\u043E\u0433\u0442\u0438.", errorHandlingRecognitionEventHandoverVoiceSurvey: "\u041D\u0430 \u0436\u0430\u043B\u044C, \u044F \u0432\u0430\u0441 \u043D\u0435 \u0440\u043E\u0437\u0443\u043C\u0456\u044E. \u041D\u0430 \u0432\u0441\u0435 \u0434\u043E\u0431\u0440\u0435.", errorHandlingTTS: "\u041D\u0430 \u0436\u0430\u043B\u044C, \u0441\u0442\u0430\u043B\u0430\u0441\u044F \u043F\u043E\u043C\u0438\u043B\u043A\u0430. \u0421\u043F\u0440\u043E\u0431\u0443\u0439\u0442\u0435 \u0437\u0434\u0456\u0439\u0441\u043D\u0438\u0442\u0438 \u0432\u0438\u043A\u043B\u0438\u043A \u0449\u0435 \u0440\u0430\u0437.", initialGreetingTTS: "\u0412\u0456\u0442\u0430\u044E, \u0446\u0435 \u043F\u043E\u0447\u0430\u0442\u043A\u043E\u0432\u0435 \u043F\u0440\u0438\u0432\u0456\u0442\u0430\u043D\u043D\u044F.", initialState: "\u041F\u043E\u0447\u0430\u0442\u043A\u043E\u0432\u0438\u0439 \u0441\u0442\u0430\u043D", initialBotState: "\u0410\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u043D\u043E \u0437\u0430\u0434\u0430\u043D\u0438\u0439 \u0431\u043E\u0442", initialDigitalBotState: "\u041F\u043E\u0447\u0430\u0442\u043A\u043E\u0432\u0435 \u043F\u0440\u0438\u0432\u0456\u0442\u0430\u043D\u043D\u044F", initialSurveyBotState: "\u0411\u043E\u0442 \u0434\u043B\u044F \u043E\u043F\u0438\u0442\u0443\u0432\u0430\u043D\u043D\u044F", intentConfirmation: "\u0414\u0443\u043C\u0430\u044E, \u0432\u0438 \u0445\u043E\u0447\u0435\u0442\u0435 %1$s. \u0426\u0435 \u0434\u0456\u0439\u0441\u043D\u043E \u0442\u0430\u043A?", mainMenu: "\u041E\u0441\u043D\u043E\u0432\u043D\u0435 \u043C\u0435\u043D\u044E", mainMenuTTS: "\u0412\u0438 \u043F\u0435\u0440\u0435\u0431\u0443\u0432\u0430\u0454\u0442\u0435 \u0432 \u043E\u0441\u043D\u043E\u0432\u043D\u043E\u043C\u0443 \u043C\u0435\u043D\u044E. \u041D\u0430\u0442\u0438\u0441\u043D\u0456\u0442\u044C 9, \u0449\u043E\u0431 \u0440\u043E\u0437\u2019\u0454\u0434\u043D\u0430\u0442\u0438 \u0432\u0438\u043A\u043B\u0438\u043A", mainTask: "\u0417\u0430\u0432\u0434\u0430\u043D\u043D\u044F", settingsConfirmationNoInputApology: "\u041D\u0430 \u0436\u0430\u043B\u044C, \u043C\u0435\u043D\u0456 \u043D\u0435 \u0432\u0434\u0430\u043B\u043E\u0441\u044F \u0432\u0430\u0441 \u043F\u043E\u0447\u0443\u0442\u0438. \u0412\u0438\u043C\u043E\u0432\u0456\u0442\u044C \xAB\u0422\u0430\u043A\xBB \u0430\u0431\u043E \xAB\u041D\u0456\xBB.", settingsConfirmationNoInputApologyDigitalBot: '\u041D\u0430 \u0436\u0430\u043B\u044C, \u043C\u0435\u043D\u0456 \u043D\u0435 \u0432\u0434\u0430\u043B\u043E\u0441\u044F \u043E\u0442\u0440\u0438\u043C\u0430\u0442\u0438 \u0432\u0456\u0434 \u0432\u0430\u0441 \u0456\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0456\u044E. \u0423\u0432\u0435\u0434\u0456\u0442\u044C "\u0422\u0430\u043A" \u0430\u0431\u043E "\u041D\u0456".', settingsConfirmationNoMatchApology: "\u041F\u0435\u0440\u0435\u043F\u0440\u043E\u0448\u0443\u044E, \u0432\u0438\u043C\u043E\u0432\u0456\u0442\u044C \xAB\u0422\u0430\u043A\xBB \u0430\u0431\u043E \xAB\u041D\u0456\xBB.", settingsConfirmationNoMatchApologyDigitalBot: '\u041F\u0435\u0440\u0435\u043F\u0440\u043E\u0448\u0443\u044E, \u0443\u0432\u0435\u0434\u0456\u0442\u044C "\u0422\u0430\u043A" \u0430\u0431\u043E "\u041D\u0456".', settingsNoInputApology: "\u041D\u0430 \u0436\u0430\u043B\u044C, \u043C\u0435\u043D\u0456 \u043D\u0435 \u0432\u0434\u0430\u043B\u043E\u0441\u044F \u0432\u0430\u0441 \u043F\u043E\u0447\u0443\u0442\u0438.", settingsNoInputApologyDigitalBot: "\u041D\u0430 \u0436\u0430\u043B\u044C, \u043C\u0435\u043D\u0456 \u043D\u0435 \u0432\u0434\u0430\u043B\u043E\u0441\u044F \u043E\u0442\u0440\u0438\u043C\u0430\u0442\u0438 \u0432\u0456\u0434 \u0432\u0430\u0441 \u0456\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0456\u044E.", settingsEndOfSessionMessageDigitalBot: "\u0412\u0438 \u043D\u0435 \u0432\u0456\u0434\u043F\u043E\u0432\u0456\u0434\u0430\u0454\u0442\u0435 \u0432\u0436\u0435 \u0434\u0435\u044F\u043A\u0438\u0439 \u0447\u0430\u0441, \u0442\u043E\u043C\u0443 \u044F \u0437\u0430\u043A\u0440\u0438\u0432\u0430\u044E \u0446\u0435\u0439 \u0447\u0430\u0442. \u0417\u0432\u0435\u0440\u0442\u0430\u0439\u0442\u0435\u0441\u044F, \u044F\u043A\u0449\u043E \u0437\u043D\u043E\u0432\u0443 \u043F\u043E\u0442\u0440\u0435\u0431\u0443\u0432\u0430\u0442\u0438\u043C\u0435\u0442\u0435 \u0434\u043E\u043F\u043E\u043C\u043E\u0433\u0438. \u0414\u044F\u043A\u0443\u044E!", settingsNoMatchApology: "\u041F\u0435\u0440\u0435\u043F\u0440\u043E\u0448\u0443\u044E.", settingsNoToConfirmationApology: "\u0412\u0438\u0437\u043D\u0430\u044E \u0441\u0432\u043E\u044E \u043F\u043E\u043C\u0438\u043B\u043A\u0443.", periodicStateName: "\u0421\u0442\u0430\u043D \u043F\u043E\u0432\u0442\u043E\u0440\u0435\u043D\u043D\u044F" }; + }, 41633: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(67432)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get isDigitalAudioViewModel() { + return true; + } + } + t2.default = r2; + }, 41676: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.WorktypeViewModel = void 0; + const n2 = i2(31635).__importDefault(i2(92140)); + t2.WorktypeViewModel = class { + constructor(e3) { + this._model = e3; + } + get className() { + return "WorktypeViewModel"; + } + get isBaseClass() { + return false; + } + get id() { + return this._model.id; + } + get name() { + return this._model.name; + } + get label() { + return this.name; + } + get schema() { + return this._model.schema; + } + get statuses() { + return this._model.statuses; + } + get schemas() { + return this._model.schemas; + } + get schemaInfo() { + return this._model.schemaInfo; + } + get dateBasedRules() { + return this._model.dateBasedRules; + } + get result() { + return this._model.result; + } + get flow() { + return this._model.flow; + } + get resultIsOk() { + var e3; + return "ok" === (null === (e3 = this.result) || void 0 === e3 ? void 0 : e3.toLowerCase()); + } + get isAssociatedWithFlow() { + var e3; + return n2.default.isString(null === (e3 = this.flow) || void 0 === e3 ? void 0 : e3.id); + } + get isWorktypeViewModel() { + return true; + } + }; + }, 41714: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importDefault(i2(78432)), o = i2(10384), a = i2(99678), s = i2(64410), l = i2(90480), u = i2(13106), d = i2(94564), c = i2(61343), p = i2(4085), _ = i2(36843), h = i2(33690), m = i2(10125), g = i2(81562), f = i2(66908), T = i2(48002), y = i2(27839), S = i2(8249), A = i2(91156), N = i2(15787), O = n2.__importDefault(i2(8471)); + class I extends O.default { + get displayTypeName() { + return "ArchCoreService"; + } + getConfigListManagerForFlowType(e3, t3, i3) { + switch (this._checkItem(this._infoParm("archCallingObject", "getConfigListManagerForFlowType"), !e3 || !e3.isArchBaseObject, "INTERNAL ERROR - invalid calling object passed to getConfigListManagerForFlowType :("), i3) { + case r2.default.FLOW_TYPES.bot: + return o.botFlowListManager; + case r2.default.FLOW_TYPES.commonModule: + return a.commonModuleFlowListManager; + case r2.default.FLOW_TYPES.digitalBot: + return s.digitalBotFlowListManager; + case r2.default.FLOW_TYPES.inboundCall: + return l.inboundFlowListManager; + case r2.default.FLOW_TYPES.inboundChat: + return u.inboundChatListManager; + case r2.default.FLOW_TYPES.inqueueCall: + return p.inqueueCallFlowListManager; + case r2.default.FLOW_TYPES.inqueueEmail: + return _.inqueueEmailFlowListManager; + case r2.default.FLOW_TYPES.inqueueShortMessage: + return h.inqueueShortMessageFlowListManager; + case r2.default.FLOW_TYPES.outboundCall: + return m.outboundFlowListManager; + case r2.default.FLOW_TYPES.secureCall: + return g.secureCallFlowListManager; + case r2.default.FLOW_TYPES.inboundEmail: + return d.inboundEmailListManager; + case r2.default.FLOW_TYPES.inboundShortMessage: + return c.inboundShortMessageListManager; + case r2.default.FLOW_TYPES.surveyInvite: + return f.surveyInviteListManager; + case r2.default.FLOW_TYPES.workflow: + return T.workflowListManager; + case r2.default.FLOW_TYPES.workitem: + return y.workitemFlowListManager; + case r2.default.FLOW_TYPES.voice: + return S.voiceFlowListManager; + case r2.default.FLOW_TYPES.voicemail: + return A.voicemailFlowListManager; + case r2.default.FLOW_TYPES.voiceSurvey: + return N.voiceSurveyFlowListManager; + default: + e3._itemIsInvalid(t3, "INTERNAL ERROR - unsupported flow type value of '" + i3 + "'."); + } + } + } + t2.default = new I(); + }, 41719: function(e2, t2, i2) { + "use strict"; + var n2 = this && this.__values || function(e3) { + var t3 = "function" == typeof Symbol && Symbol.iterator, i3 = t3 && e3[t3], n3 = 0; + if (i3) return i3.call(e3); + if (e3 && "number" == typeof e3.length) return { next: function() { + return e3 && n3 >= e3.length && (e3 = void 0), { value: e3 && e3[n3++], done: !e3 }; + } }; + throw new TypeError(t3 ? "Object is not iterable." : "Symbol.iterator is not defined."); + }; + Object.defineProperty(t2, "__esModule", { value: true }), t2.bufferTime = void 0; + var r2 = i2(69879), o = i2(65212), a = i2(17214), s = i2(54830), l = i2(62326), u = i2(26404), d = i2(28619); + t2.bufferTime = function(e3) { + for (var t3, i3, c = [], p = 1; p < arguments.length; p++) c[p - 1] = arguments[p]; + var _ = null !== (t3 = u.popScheduler(c)) && void 0 !== t3 ? t3 : l.asyncScheduler, h = null !== (i3 = c[0]) && void 0 !== i3 ? i3 : null, m = c[1] || 1 / 0; + return o.operate(function(t4, i4) { + var o2 = [], l2 = false, u2 = function(e4) { + var t5 = e4.buffer; + e4.subs.unsubscribe(), s.arrRemove(o2, e4), i4.next(t5), l2 && c2(); + }, c2 = function() { + if (o2) { + var t5 = new r2.Subscription(); + i4.add(t5); + var n3 = { buffer: [], subs: t5 }; + o2.push(n3), d.executeSchedule(t5, _, function() { + return u2(n3); + }, e3); + } + }; + null !== h && h >= 0 ? d.executeSchedule(i4, _, c2, h, true) : l2 = true, c2(); + var p2 = a.createOperatorSubscriber(i4, function(e4) { + var t5, i5, r3 = o2.slice(); + try { + for (var a2 = n2(r3), s2 = a2.next(); !s2.done; s2 = a2.next()) { + var l3 = s2.value, d2 = l3.buffer; + d2.push(e4), m <= d2.length && u2(l3); + } + } catch (e5) { + t5 = { error: e5 }; + } finally { + try { + s2 && !s2.done && (i5 = a2.return) && i5.call(a2); + } finally { + if (t5) throw t5.error; + } + } + }, function() { + for (; null == o2 ? void 0 : o2.length; ) i4.next(o2.shift().buffer); + null == p2 || p2.unsubscribe(), i4.complete(), i4.unsubscribe(); + }, void 0, function() { + return o2 = null; + }); + t4.subscribe(p2); + }); + }; + }, 41739: (e2, t2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + }, 41757: (e2, t2, i2) => { + "use strict"; + var n2; + Object.defineProperty(t2, "__esModule", { value: true }); + const r2 = i2(31635), o = r2.__importDefault(i2(55015)), a = i2(19596), s = i2(80295), l = i2(80295); + class u extends a.DataContract { + constructor(e3) { + super(e3), (0, l.makeUnenumerable)(this, "_availability"), (0, l.makeUnenumerable)(this, "_dataTypeId"), (0, l.makeUnenumerable)(this, "_description"), (0, l.makeUnenumerable)(this, "_facets"), (0, l.makeUnenumerable)(this, "_isCollection"), (0, l.makeUnenumerable)(this, "_name"), this._availability || (this._availability = o.default.createAvailable("availability")); + } + get availability() { + return this._availability; + } + set availability(e3) { + this._availability = this.reviveItem(e3, o.default); + } + get dataTypeId() { + return this._dataTypeId; + } + set dataTypeId(e3) { + this._dataTypeId = e3; + } + get description() { + return this._description; + } + set description(e3) { + this._description = e3; + } + get facets() { + return this._facets; + } + set facets(e3) { + this._facets = e3; + } + get isCollection() { + return this._isCollection; + } + set isCollection(e3) { + this._isCollection = e3; + } + get name() { + return this._name; + } + set name(e3) { + this._name = e3; + } + } + t2.default = u, r2.__decorate([(0, s.enumerable)(true), r2.__metadata("design:type", "function" == typeof (n2 = void 0 !== o.default && o.default) ? n2 : Object), r2.__metadata("design:paramtypes", [Object])], u.prototype, "availability", null), r2.__decorate([(0, s.enumerable)(true), r2.__metadata("design:type", String), r2.__metadata("design:paramtypes", [String])], u.prototype, "dataTypeId", null), r2.__decorate([(0, s.enumerable)(true), r2.__metadata("design:type", String), r2.__metadata("design:paramtypes", [String])], u.prototype, "description", null), r2.__decorate([(0, s.enumerable)(true), r2.__metadata("design:type", Object), r2.__metadata("design:paramtypes", [Object])], u.prototype, "facets", null), r2.__decorate([(0, s.enumerable)(true), r2.__metadata("design:type", Boolean), r2.__metadata("design:paramtypes", [Boolean])], u.prototype, "isCollection", null), r2.__decorate([(0, s.enumerable)(true), r2.__metadata("design:type", String), r2.__metadata("design:paramtypes", [String])], u.prototype, "name", null); + }, 41800: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(11541)); + class r2 extends n2.default { + constructor(e3) { + super(e3), this.populateFromJSON(e3); + } + get languageTag() { + return this._languageTag; + } + set languageTag(e3) { + this._languageTag = e3; + } + } + t2.default = r2; + }, 41827: (e2, t2, i2) => { + "use strict"; + var n2 = i2(52696); + class r2 { + constructor(e3, t3, i3, n3, r3, o2, a2, s2, l2, u2 = 0, d2) { + this.p = e3, this.stack = t3, this.state = i3, this.reducePos = n3, this.pos = r3, this.score = o2, this.buffer = a2, this.bufferBase = s2, this.curContext = l2, this.lookAhead = u2, this.parent = d2; + } + toString() { + return `[${this.stack.filter((e3, t3) => t3 % 3 == 0).concat(this.state)}]@${this.pos}${this.score ? "!" + this.score : ""}`; + } + static start(e3, t3, i3 = 0) { + let n3 = e3.parser.context; + return new r2(e3, [], t3, i3, i3, 0, [], 0, n3 ? new o(n3, n3.start) : null, 0, null); + } + get context() { + return this.curContext ? this.curContext.context : null; + } + pushState(e3, t3) { + this.stack.push(this.state, t3, this.bufferBase + this.buffer.length), this.state = e3; + } + reduce(e3) { + var t3; + let i3 = e3 >> 19, n3 = 65535 & e3, { parser: r3 } = this.p, o2 = this.reducePos < this.pos - 25 && this.setLookAhead(this.pos), a2 = r3.dynamicPrecedence(n3); + if (a2 && (this.score += a2), 0 == i3) return this.pushState(r3.getGoto(this.state, n3, true), this.reducePos), n3 < r3.minRepeatTerm && this.storeNode(n3, this.reducePos, this.reducePos, o2 ? 8 : 4, true), void this.reduceContext(n3, this.reducePos); + let s2 = this.stack.length - 3 * (i3 - 1) - (262144 & e3 ? 6 : 0), l2 = s2 ? this.stack[s2 - 2] : this.p.ranges[0].from, u2 = this.reducePos - l2; + u2 >= 2e3 && !(null === (t3 = this.p.parser.nodeSet.types[n3]) || void 0 === t3 ? void 0 : t3.isAnonymous) && (l2 == this.p.lastBigReductionStart ? (this.p.bigReductionCount++, this.p.lastBigReductionSize = u2) : this.p.lastBigReductionSize < u2 && (this.p.bigReductionCount = 1, this.p.lastBigReductionStart = l2, this.p.lastBigReductionSize = u2)); + let d2 = s2 ? this.stack[s2 - 1] : 0, c2 = this.bufferBase + this.buffer.length - d2; + if (n3 < r3.minRepeatTerm || 131072 & e3) { + let e4 = r3.stateFlag(this.state, 1) ? this.pos : this.reducePos; + this.storeNode(n3, l2, e4, c2 + 4, true); + } + if (262144 & e3) this.state = this.stack[s2]; + else { + let e4 = this.stack[s2 - 3]; + this.state = r3.getGoto(e4, n3, true); + } + for (; this.stack.length > s2; ) this.stack.pop(); + this.reduceContext(n3, l2); + } + storeNode(e3, t3, i3, n3 = 4, r3 = false) { + if (0 == e3 && (!this.stack.length || this.stack[this.stack.length - 1] < this.buffer.length + this.bufferBase)) { + let e4 = this, n4 = this.buffer.length; + if (0 == n4 && e4.parent && (n4 = e4.bufferBase - e4.parent.bufferBase, e4 = e4.parent), n4 > 0 && 0 == e4.buffer[n4 - 4] && e4.buffer[n4 - 1] > -1) { + if (t3 == i3) return; + if (e4.buffer[n4 - 2] >= t3) return void (e4.buffer[n4 - 2] = i3); + } + } + if (r3 && this.pos != i3) { + let r4 = this.buffer.length; + if (r4 > 0 && (0 != this.buffer[r4 - 4] || this.buffer[r4 - 1] < 0)) { + let e4 = false; + for (let t4 = r4; t4 > 0 && this.buffer[t4 - 2] > i3; t4 -= 4) if (this.buffer[t4 - 1] >= 0) { + e4 = true; + break; + } + if (e4) for (; r4 > 0 && this.buffer[r4 - 2] > i3; ) this.buffer[r4] = this.buffer[r4 - 4], this.buffer[r4 + 1] = this.buffer[r4 - 3], this.buffer[r4 + 2] = this.buffer[r4 - 2], this.buffer[r4 + 3] = this.buffer[r4 - 1], r4 -= 4, n3 > 4 && (n3 -= 4); + } + this.buffer[r4] = e3, this.buffer[r4 + 1] = t3, this.buffer[r4 + 2] = i3, this.buffer[r4 + 3] = n3; + } else this.buffer.push(e3, t3, i3, n3); + } + shift(e3, t3, i3, n3) { + if (131072 & e3) this.pushState(65535 & e3, this.pos); + else if (262144 & e3) this.pos = n3, this.shiftContext(t3, i3), t3 <= this.p.parser.maxNode && this.buffer.push(t3, i3, n3, 4); + else { + let r3 = e3, { parser: o2 } = this.p; + this.pos = n3; + let a2 = o2.stateFlag(r3, 1); + !a2 && (n3 > i3 || t3 <= o2.maxNode) && (this.reducePos = n3), this.pushState(r3, a2 ? i3 : Math.min(i3, this.reducePos)), this.shiftContext(t3, i3), t3 <= o2.maxNode && this.buffer.push(t3, i3, n3, 4); + } + } + apply(e3, t3, i3, n3) { + 65536 & e3 ? this.reduce(e3) : this.shift(e3, t3, i3, n3); + } + useNode(e3, t3) { + let i3 = this.p.reused.length - 1; + (i3 < 0 || this.p.reused[i3] != e3) && (this.p.reused.push(e3), i3++); + let n3 = this.pos; + this.reducePos = this.pos = n3 + e3.length, this.pushState(t3, n3), this.buffer.push(i3, n3, this.reducePos, -1), this.curContext && this.updateContext(this.curContext.tracker.reuse(this.curContext.context, e3, this, this.p.stream.reset(this.pos - e3.length))); + } + split() { + let e3 = this, t3 = e3.buffer.length; + for (; t3 > 0 && e3.buffer[t3 - 2] > e3.reducePos; ) t3 -= 4; + let i3 = e3.buffer.slice(t3), n3 = e3.bufferBase + t3; + for (; e3 && n3 == e3.bufferBase; ) e3 = e3.parent; + return new r2(this.p, this.stack.slice(), this.state, this.reducePos, this.pos, this.score, i3, n3, this.curContext, this.lookAhead, e3); + } + recoverByDelete(e3, t3) { + let i3 = e3 <= this.p.parser.maxNode; + i3 && this.storeNode(e3, this.pos, t3, 4), this.storeNode(0, this.pos, t3, i3 ? 8 : 4), this.pos = this.reducePos = t3, this.score -= 190; + } + canShift(e3) { + for (let t3 = new a(this); ; ) { + let i3 = this.p.parser.stateSlot(t3.state, 4) || this.p.parser.hasAction(t3.state, e3); + if (0 == i3) return false; + if (!(65536 & i3)) return true; + t3.reduce(i3); + } + } + recoverByInsert(e3) { + if (this.stack.length >= 300) return []; + let t3 = this.p.parser.nextStates(this.state); + if (t3.length > 8 || this.stack.length >= 120) { + let i4 = []; + for (let n3, r3 = 0; r3 < t3.length; r3 += 2) (n3 = t3[r3 + 1]) != this.state && this.p.parser.hasAction(n3, e3) && i4.push(t3[r3], n3); + if (this.stack.length < 120) for (let e4 = 0; i4.length < 8 && e4 < t3.length; e4 += 2) { + let n3 = t3[e4 + 1]; + i4.some((e5, t4) => 1 & t4 && e5 == n3) || i4.push(t3[e4], n3); + } + t3 = i4; + } + let i3 = []; + for (let e4 = 0; e4 < t3.length && i3.length < 4; e4 += 2) { + let n3 = t3[e4 + 1]; + if (n3 == this.state) continue; + let r3 = this.split(); + r3.pushState(n3, this.pos), r3.storeNode(0, r3.pos, r3.pos, 4, true), r3.shiftContext(t3[e4], this.pos), r3.reducePos = this.pos, r3.score -= 200, i3.push(r3); + } + return i3; + } + forceReduce() { + let { parser: e3 } = this.p, t3 = e3.stateSlot(this.state, 5); + if (!(65536 & t3)) return false; + if (!e3.validAction(this.state, t3)) { + let i3 = t3 >> 19, n3 = 65535 & t3, r3 = this.stack.length - 3 * i3; + if (r3 < 0 || e3.getGoto(this.stack[r3], n3, false) < 0) { + let e4 = this.findForcedReduction(); + if (null == e4) return false; + t3 = e4; + } + this.storeNode(0, this.pos, this.pos, 4, true), this.score -= 100; + } + return this.reducePos = this.pos, this.reduce(t3), true; + } + findForcedReduction() { + let { parser: e3 } = this.p, t3 = [], i3 = (n3, r3) => { + if (!t3.includes(n3)) return t3.push(n3), e3.allActions(n3, (t4) => { + if (393216 & t4) ; + else if (65536 & t4) { + let i4 = (t4 >> 19) - r3; + if (i4 > 1) { + let n4 = 65535 & t4, r4 = this.stack.length - 3 * i4; + if (r4 >= 0 && e3.getGoto(this.stack[r4], n4, false) >= 0) return i4 << 19 | 65536 | n4; + } + } else { + let e4 = i3(t4, r3 + 1); + if (null != e4) return e4; + } + }); + }; + return i3(this.state, 0); + } + forceAll() { + for (; !this.p.parser.stateFlag(this.state, 2); ) if (!this.forceReduce()) { + this.storeNode(0, this.pos, this.pos, 4, true); + break; + } + return this; + } + get deadEnd() { + if (3 != this.stack.length) return false; + let { parser: e3 } = this.p; + return 65535 == e3.data[e3.stateSlot(this.state, 1)] && !e3.stateSlot(this.state, 4); + } + restart() { + this.storeNode(0, this.pos, this.pos, 4, true), this.state = this.stack[0], this.stack.length = 0; + } + sameState(e3) { + if (this.state != e3.state || this.stack.length != e3.stack.length) return false; + for (let t3 = 0; t3 < this.stack.length; t3 += 3) if (this.stack[t3] != e3.stack[t3]) return false; + return true; + } + get parser() { + return this.p.parser; + } + dialectEnabled(e3) { + return this.p.parser.dialect.flags[e3]; + } + shiftContext(e3, t3) { + this.curContext && this.updateContext(this.curContext.tracker.shift(this.curContext.context, e3, this, this.p.stream.reset(t3))); + } + reduceContext(e3, t3) { + this.curContext && this.updateContext(this.curContext.tracker.reduce(this.curContext.context, e3, this, this.p.stream.reset(t3))); + } + emitContext() { + let e3 = this.buffer.length - 1; + (e3 < 0 || -3 != this.buffer[e3]) && this.buffer.push(this.curContext.hash, this.pos, this.pos, -3); + } + emitLookAhead() { + let e3 = this.buffer.length - 1; + (e3 < 0 || -4 != this.buffer[e3]) && this.buffer.push(this.lookAhead, this.pos, this.pos, -4); + } + updateContext(e3) { + if (e3 != this.curContext.context) { + let t3 = new o(this.curContext.tracker, e3); + t3.hash != this.curContext.hash && this.emitContext(), this.curContext = t3; + } + } + setLookAhead(e3) { + return !(e3 <= this.lookAhead || (this.emitLookAhead(), this.lookAhead = e3, 0)); + } + close() { + this.curContext && this.curContext.tracker.strict && this.emitContext(), this.lookAhead > 0 && this.emitLookAhead(); + } + } + class o { + constructor(e3, t3) { + this.tracker = e3, this.context = t3, this.hash = e3.strict ? e3.hash(t3) : 0; + } + } + class a { + constructor(e3) { + this.start = e3, this.state = e3.state, this.stack = e3.stack, this.base = this.stack.length; + } + reduce(e3) { + let t3 = 65535 & e3, i3 = e3 >> 19; + 0 == i3 ? (this.stack == this.start.stack && (this.stack = this.stack.slice()), this.stack.push(this.state, 0, 0), this.base += 3) : this.base -= 3 * (i3 - 1); + let n3 = this.start.p.parser.getGoto(this.stack[this.base - 3], t3, true); + this.state = n3; + } + } + class s { + constructor(e3, t3, i3) { + this.stack = e3, this.pos = t3, this.index = i3, this.buffer = e3.buffer, 0 == this.index && this.maybeNext(); + } + static create(e3, t3 = e3.bufferBase + e3.buffer.length) { + return new s(e3, t3, t3 - e3.bufferBase); + } + maybeNext() { + let e3 = this.stack.parent; + null != e3 && (this.index = this.stack.bufferBase - e3.bufferBase, this.stack = e3, this.buffer = e3.buffer); + } + get id() { + return this.buffer[this.index - 4]; + } + get start() { + return this.buffer[this.index - 3]; + } + get end() { + return this.buffer[this.index - 2]; + } + get size() { + return this.buffer[this.index - 1]; + } + next() { + this.index -= 4, this.pos -= 4, 0 == this.index && this.maybeNext(); + } + fork() { + return new s(this.stack, this.pos, this.index); + } + } + function l(e3, t3 = Uint16Array) { + if ("string" != typeof e3) return e3; + let i3 = null; + for (let n3 = 0, r3 = 0; n3 < e3.length; ) { + let o2 = 0; + for (; ; ) { + let t4 = e3.charCodeAt(n3++), i4 = false; + if (126 == t4) { + o2 = 65535; + break; + } + t4 >= 92 && t4--, t4 >= 34 && t4--; + let r4 = t4 - 32; + if (r4 >= 46 && (r4 -= 46, i4 = true), o2 += r4, i4) break; + o2 *= 46; + } + i3 ? i3[r3++] = o2 : i3 = new t3(o2); + } + return i3; + } + class u { + constructor() { + this.start = -1, this.value = -1, this.end = -1, this.extended = -1, this.lookAhead = 0, this.mask = 0, this.context = 0; + } + } + const d = new u(); + class c { + constructor(e3, t3) { + this.input = e3, this.ranges = t3, this.chunk = "", this.chunkOff = 0, this.chunk2 = "", this.chunk2Pos = 0, this.next = -1, this.token = d, this.rangeIndex = 0, this.pos = this.chunkPos = t3[0].from, this.range = t3[0], this.end = t3[t3.length - 1].to, this.readNext(); + } + resolveOffset(e3, t3) { + let i3 = this.range, n3 = this.rangeIndex, r3 = this.pos + e3; + for (; r3 < i3.from; ) { + if (!n3) return null; + let e4 = this.ranges[--n3]; + r3 -= i3.from - e4.to, i3 = e4; + } + for (; t3 < 0 ? r3 > i3.to : r3 >= i3.to; ) { + if (n3 == this.ranges.length - 1) return null; + let e4 = this.ranges[++n3]; + r3 += e4.from - i3.to, i3 = e4; + } + return r3; + } + clipPos(e3) { + if (e3 >= this.range.from && e3 < this.range.to) return e3; + for (let t3 of this.ranges) if (t3.to > e3) return Math.max(e3, t3.from); + return this.end; + } + peek(e3) { + let t3, i3, n3 = this.chunkOff + e3; + if (n3 >= 0 && n3 < this.chunk.length) t3 = this.pos + e3, i3 = this.chunk.charCodeAt(n3); + else { + let n4 = this.resolveOffset(e3, 1); + if (null == n4) return -1; + if (t3 = n4, t3 >= this.chunk2Pos && t3 < this.chunk2Pos + this.chunk2.length) i3 = this.chunk2.charCodeAt(t3 - this.chunk2Pos); + else { + let e4 = this.rangeIndex, n5 = this.range; + for (; n5.to <= t3; ) n5 = this.ranges[++e4]; + this.chunk2 = this.input.chunk(this.chunk2Pos = t3), t3 + this.chunk2.length > n5.to && (this.chunk2 = this.chunk2.slice(0, n5.to - t3)), i3 = this.chunk2.charCodeAt(0); + } + } + return t3 >= this.token.lookAhead && (this.token.lookAhead = t3 + 1), i3; + } + acceptToken(e3, t3 = 0) { + let i3 = t3 ? this.resolveOffset(t3, -1) : this.pos; + if (null == i3 || i3 < this.token.start) throw new RangeError("Token end out of bounds"); + this.token.value = e3, this.token.end = i3; + } + acceptTokenTo(e3, t3) { + this.token.value = e3, this.token.end = t3; + } + getChunk() { + if (this.pos >= this.chunk2Pos && this.pos < this.chunk2Pos + this.chunk2.length) { + let { chunk: e3, chunkPos: t3 } = this; + this.chunk = this.chunk2, this.chunkPos = this.chunk2Pos, this.chunk2 = e3, this.chunk2Pos = t3, this.chunkOff = this.pos - this.chunkPos; + } else { + this.chunk2 = this.chunk, this.chunk2Pos = this.chunkPos; + let e3 = this.input.chunk(this.pos), t3 = this.pos + e3.length; + this.chunk = t3 > this.range.to ? e3.slice(0, this.range.to - this.pos) : e3, this.chunkPos = this.pos, this.chunkOff = 0; + } + } + readNext() { + return this.chunkOff >= this.chunk.length && (this.getChunk(), this.chunkOff == this.chunk.length) ? this.next = -1 : this.next = this.chunk.charCodeAt(this.chunkOff); + } + advance(e3 = 1) { + for (this.chunkOff += e3; this.pos + e3 >= this.range.to; ) { + if (this.rangeIndex == this.ranges.length - 1) return this.setDone(); + e3 -= this.range.to - this.pos, this.range = this.ranges[++this.rangeIndex], this.pos = this.range.from; + } + return this.pos += e3, this.pos >= this.token.lookAhead && (this.token.lookAhead = this.pos + 1), this.readNext(); + } + setDone() { + return this.pos = this.chunkPos = this.end, this.range = this.ranges[this.rangeIndex = this.ranges.length - 1], this.chunk = "", this.next = -1; + } + reset(e3, t3) { + if (t3 ? (this.token = t3, t3.start = e3, t3.lookAhead = e3 + 1, t3.value = t3.extended = -1) : this.token = d, this.pos != e3) { + if (this.pos = e3, e3 == this.end) return this.setDone(), this; + for (; e3 < this.range.from; ) this.range = this.ranges[--this.rangeIndex]; + for (; e3 >= this.range.to; ) this.range = this.ranges[++this.rangeIndex]; + e3 >= this.chunkPos && e3 < this.chunkPos + this.chunk.length ? this.chunkOff = e3 - this.chunkPos : (this.chunk = "", this.chunkOff = 0), this.readNext(); + } + return this; + } + read(e3, t3) { + if (e3 >= this.chunkPos && t3 <= this.chunkPos + this.chunk.length) return this.chunk.slice(e3 - this.chunkPos, t3 - this.chunkPos); + if (e3 >= this.chunk2Pos && t3 <= this.chunk2Pos + this.chunk2.length) return this.chunk2.slice(e3 - this.chunk2Pos, t3 - this.chunk2Pos); + if (e3 >= this.range.from && t3 <= this.range.to) return this.input.read(e3, t3); + let i3 = ""; + for (let n3 of this.ranges) { + if (n3.from >= t3) break; + n3.to > e3 && (i3 += this.input.read(Math.max(n3.from, e3), Math.min(n3.to, t3))); + } + return i3; + } + } + class p { + constructor(e3, t3) { + this.data = e3, this.id = t3; + } + token(e3, t3) { + let { parser: i3 } = t3.p; + h(this.data, e3, t3, this.id, i3.data, i3.tokenPrecTable); + } + } + p.prototype.contextual = p.prototype.fallback = p.prototype.extend = false; + class _ { + constructor(e3, t3, i3) { + this.precTable = t3, this.elseToken = i3, this.data = "string" == typeof e3 ? l(e3) : e3; + } + token(e3, t3) { + let i3 = e3.pos, n3 = 0; + for (; ; ) { + let i4 = e3.next < 0, r3 = e3.resolveOffset(1, 1); + if (h(this.data, e3, t3, 0, this.data, this.precTable), e3.token.value > -1) break; + if (null == this.elseToken) return; + if (i4 || n3++, null == r3) break; + e3.reset(r3, e3.token); + } + n3 && (e3.reset(i3, e3.token), e3.acceptToken(this.elseToken, n3)); + } + } + function h(e3, t3, i3, n3, r3, o2) { + let a2 = 0, s2 = 1 << n3, { dialect: l2 } = i3.p.parser; + e: for (; 0 != (s2 & e3[a2]); ) { + let i4 = e3[a2 + 1]; + for (let n5 = a2 + 3; n5 < i4; n5 += 2) if ((e3[n5 + 1] & s2) > 0) { + let i5 = e3[n5]; + if (l2.allows(i5) && (-1 == t3.token.value || t3.token.value == i5 || g(i5, t3.token.value, r3, o2))) { + t3.acceptToken(i5); + break; + } + } + let n4 = t3.next, u2 = 0, d2 = e3[a2 + 2]; + if (!(t3.next < 0 && d2 > u2 && 65535 == e3[i4 + 3 * d2 - 3])) { + for (; u2 < d2; ) { + let r4 = u2 + d2 >> 1, o3 = i4 + r4 + (r4 << 1), s3 = e3[o3], l3 = e3[o3 + 1] || 65536; + if (n4 < s3) d2 = r4; + else { + if (!(n4 >= l3)) { + a2 = e3[o3 + 2], t3.advance(); + continue e; + } + u2 = r4 + 1; + } + } + break; + } + a2 = e3[i4 + 3 * d2 - 1]; + } + } + function m(e3, t3, i3) { + for (let n3, r3 = t3; 65535 != (n3 = e3[r3]); r3++) if (n3 == i3) return r3 - t3; + return -1; + } + function g(e3, t3, i3, n3) { + let r3 = m(i3, n3, t3); + return r3 < 0 || m(i3, n3, e3) < r3; + } + _.prototype.contextual = p.prototype.fallback = p.prototype.extend = false; + const f = "undefined" != typeof process && process.env && /\bparse\b/.test(process.env.LOG); + let T = null; + function y(e3, t3, i3) { + let r3 = e3.cursor(n2.IterMode.IncludeAnonymous); + for (r3.moveTo(t3); ; ) if (!(i3 < 0 ? r3.childBefore(t3) : r3.childAfter(t3))) for (; ; ) { + if ((i3 < 0 ? r3.to < t3 : r3.from > t3) && !r3.type.isError) return i3 < 0 ? Math.max(0, Math.min(r3.to - 1, t3 - 25)) : Math.min(e3.length, Math.max(r3.from + 1, t3 + 25)); + if (i3 < 0 ? r3.prevSibling() : r3.nextSibling()) break; + if (!r3.parent()) return i3 < 0 ? 0 : e3.length; + } + } + class S { + constructor(e3, t3) { + this.fragments = e3, this.nodeSet = t3, this.i = 0, this.fragment = null, this.safeFrom = -1, this.safeTo = -1, this.trees = [], this.start = [], this.index = [], this.nextFragment(); + } + nextFragment() { + let e3 = this.fragment = this.i == this.fragments.length ? null : this.fragments[this.i++]; + if (e3) { + for (this.safeFrom = e3.openStart ? y(e3.tree, e3.from + e3.offset, 1) - e3.offset : e3.from, this.safeTo = e3.openEnd ? y(e3.tree, e3.to + e3.offset, -1) - e3.offset : e3.to; this.trees.length; ) this.trees.pop(), this.start.pop(), this.index.pop(); + this.trees.push(e3.tree), this.start.push(-e3.offset), this.index.push(0), this.nextStart = this.safeFrom; + } else this.nextStart = 1e9; + } + nodeAt(e3) { + if (e3 < this.nextStart) return null; + for (; this.fragment && this.safeTo <= e3; ) this.nextFragment(); + if (!this.fragment) return null; + for (; ; ) { + let t3 = this.trees.length - 1; + if (t3 < 0) return this.nextFragment(), null; + let i3 = this.trees[t3], r3 = this.index[t3]; + if (r3 == i3.children.length) { + this.trees.pop(), this.start.pop(), this.index.pop(); + continue; + } + let o2 = i3.children[r3], a2 = this.start[t3] + i3.positions[r3]; + if (a2 > e3) return this.nextStart = a2, null; + if (o2 instanceof n2.Tree) { + if (a2 == e3) { + if (a2 < this.safeFrom) return null; + let e4 = a2 + o2.length; + if (e4 <= this.safeTo) { + let t4 = o2.prop(n2.NodeProp.lookAhead); + if (!t4 || e4 + t4 < this.fragment.to) return o2; + } + } + this.index[t3]++, a2 + o2.length >= Math.max(this.safeFrom, e3) && (this.trees.push(o2), this.start.push(a2), this.index.push(0)); + } else this.index[t3]++, this.nextStart = a2 + o2.length; + } + } + } + class A { + constructor(e3, t3) { + this.stream = t3, this.tokens = [], this.mainToken = null, this.actions = [], this.tokens = e3.tokenizers.map((e4) => new u()); + } + getActions(e3) { + let t3 = 0, i3 = null, { parser: n3 } = e3.p, { tokenizers: r3 } = n3, o2 = n3.stateSlot(e3.state, 3), a2 = e3.curContext ? e3.curContext.hash : 0, s2 = 0; + for (let n4 = 0; n4 < r3.length; n4++) { + if (!(1 << n4 & o2)) continue; + let l2 = r3[n4], u2 = this.tokens[n4]; + if ((!i3 || l2.fallback) && ((l2.contextual || u2.start != e3.pos || u2.mask != o2 || u2.context != a2) && (this.updateCachedToken(u2, l2, e3), u2.mask = o2, u2.context = a2), u2.lookAhead > u2.end + 25 && (s2 = Math.max(u2.lookAhead, s2)), 0 != u2.value)) { + let n5 = t3; + if (u2.extended > -1 && (t3 = this.addActions(e3, u2.extended, u2.end, t3)), t3 = this.addActions(e3, u2.value, u2.end, t3), !l2.extend && (i3 = u2, t3 > n5)) break; + } + } + for (; this.actions.length > t3; ) this.actions.pop(); + return s2 && e3.setLookAhead(s2), i3 || e3.pos != this.stream.end || (i3 = new u(), i3.value = e3.p.parser.eofTerm, i3.start = i3.end = e3.pos, t3 = this.addActions(e3, i3.value, i3.end, t3)), this.mainToken = i3, this.actions; + } + getMainToken(e3) { + if (this.mainToken) return this.mainToken; + let t3 = new u(), { pos: i3, p: n3 } = e3; + return t3.start = i3, t3.end = Math.min(i3 + 1, n3.stream.end), t3.value = i3 == n3.stream.end ? n3.parser.eofTerm : 0, t3; + } + updateCachedToken(e3, t3, i3) { + let n3 = this.stream.clipPos(i3.pos); + if (t3.token(this.stream.reset(n3, e3), i3), e3.value > -1) { + let { parser: t4 } = i3.p; + for (let n4 = 0; n4 < t4.specialized.length; n4++) if (t4.specialized[n4] == e3.value) { + let r3 = t4.specializers[n4](this.stream.read(e3.start, e3.end), i3); + if (r3 >= 0 && i3.p.parser.dialect.allows(r3 >> 1)) { + 1 & r3 ? e3.extended = r3 >> 1 : e3.value = r3 >> 1; + break; + } + } + } else e3.value = 0, e3.end = this.stream.clipPos(n3 + 1); + } + putAction(e3, t3, i3, n3) { + for (let t4 = 0; t4 < n3; t4 += 3) if (this.actions[t4] == e3) return n3; + return this.actions[n3++] = e3, this.actions[n3++] = t3, this.actions[n3++] = i3, n3; + } + addActions(e3, t3, i3, n3) { + let { state: r3 } = e3, { parser: o2 } = e3.p, { data: a2 } = o2; + for (let e4 = 0; e4 < 2; e4++) for (let s2 = o2.stateSlot(r3, e4 ? 2 : 1); ; s2 += 3) { + if (65535 == a2[s2]) { + if (1 != a2[s2 + 1]) { + 0 == n3 && 2 == a2[s2 + 1] && (n3 = this.putAction(b(a2, s2 + 2), t3, i3, n3)); + break; + } + s2 = b(a2, s2 + 2); + } + a2[s2] == t3 && (n3 = this.putAction(b(a2, s2 + 1), t3, i3, n3)); + } + return n3; + } + } + class N { + constructor(e3, t3, i3, n3) { + this.parser = e3, this.input = t3, this.ranges = n3, this.recovering = 0, this.nextStackID = 9812, this.minStackPos = 0, this.reused = [], this.stoppedAt = null, this.lastBigReductionStart = -1, this.lastBigReductionSize = 0, this.bigReductionCount = 0, this.stream = new c(t3, n3), this.tokens = new A(e3, this.stream), this.topTerm = e3.top[1]; + let { from: o2 } = n3[0]; + this.stacks = [r2.start(this, e3.top[0], o2)], this.fragments = i3.length && this.stream.end - o2 > 4 * e3.bufferLength ? new S(i3, e3.nodeSet) : null; + } + get parsedPos() { + return this.minStackPos; + } + advance() { + let e3, t3, i3 = this.stacks, n3 = this.minStackPos, r3 = this.stacks = []; + if (this.bigReductionCount > 300 && 1 == i3.length) { + let [e4] = i3; + for (; e4.forceReduce() && e4.stack.length && e4.stack[e4.stack.length - 2] >= this.lastBigReductionStart; ) ; + this.bigReductionCount = this.lastBigReductionSize = 0; + } + for (let o2 = 0; o2 < i3.length; o2++) { + let a2 = i3[o2]; + for (; ; ) { + if (this.tokens.mainToken = null, a2.pos > n3) r3.push(a2); + else { + if (this.advanceStack(a2, r3, i3)) continue; + { + e3 || (e3 = [], t3 = []), e3.push(a2); + let i4 = this.tokens.getMainToken(a2); + t3.push(i4.value, i4.end); + } + } + break; + } + } + if (!r3.length) { + let t4 = e3 && (function(e4) { + let t5 = null; + for (let i4 of e4) { + let e5 = i4.p.stoppedAt; + (i4.pos == i4.p.stream.end || null != e5 && i4.pos > e5) && i4.p.parser.stateFlag(i4.state, 2) && (!t5 || t5.score < i4.score) && (t5 = i4); + } + return t5; + })(e3); + if (t4) return f && console.log("Finish with " + this.stackID(t4)), this.stackToTree(t4); + if (this.parser.strict) throw f && e3 && console.log("Stuck with token " + (this.tokens.mainToken ? this.parser.getName(this.tokens.mainToken.value) : "none")), new SyntaxError("No parse at " + n3); + this.recovering || (this.recovering = 5); + } + if (this.recovering && e3) { + let i4 = null != this.stoppedAt && e3[0].pos > this.stoppedAt ? e3[0] : this.runRecovery(e3, t3, r3); + if (i4) return f && console.log("Force-finish " + this.stackID(i4)), this.stackToTree(i4.forceAll()); + } + if (this.recovering) { + let e4 = 1 == this.recovering ? 1 : 3 * this.recovering; + if (r3.length > e4) for (r3.sort((e5, t4) => t4.score - e5.score); r3.length > e4; ) r3.pop(); + r3.some((e5) => e5.reducePos > n3) && this.recovering--; + } else if (r3.length > 1) { + e: for (let e4 = 0; e4 < r3.length - 1; e4++) { + let t4 = r3[e4]; + for (let i4 = e4 + 1; i4 < r3.length; i4++) { + let n4 = r3[i4]; + if (t4.sameState(n4) || t4.buffer.length > 500 && n4.buffer.length > 500) { + if (!((t4.score - n4.score || t4.buffer.length - n4.buffer.length) > 0)) { + r3.splice(e4--, 1); + continue e; + } + r3.splice(i4--, 1); + } + } + } + r3.length > 12 && (r3.sort((e4, t4) => t4.score - e4.score), r3.splice(12, r3.length - 12)); + } + this.minStackPos = r3[0].pos; + for (let e4 = 1; e4 < r3.length; e4++) r3[e4].pos < this.minStackPos && (this.minStackPos = r3[e4].pos); + return null; + } + stopAt(e3) { + if (null != this.stoppedAt && this.stoppedAt < e3) throw new RangeError("Can't move stoppedAt forward"); + this.stoppedAt = e3; + } + advanceStack(e3, t3, i3) { + let r3 = e3.pos, { parser: o2 } = this, a2 = f ? this.stackID(e3) + " -> " : ""; + if (null != this.stoppedAt && r3 > this.stoppedAt) return e3.forceReduce() ? e3 : null; + if (this.fragments) { + let t4 = e3.curContext && e3.curContext.tracker.strict, i4 = t4 ? e3.curContext.hash : 0; + for (let s3 = this.fragments.nodeAt(r3); s3; ) { + let r4 = this.parser.nodeSet.types[s3.type.id] == s3.type ? o2.getGoto(e3.state, s3.type.id) : -1; + if (r4 > -1 && s3.length && (!t4 || (s3.prop(n2.NodeProp.contextHash) || 0) == i4)) return e3.useNode(s3, r4), f && console.log(a2 + this.stackID(e3) + ` (via reuse of ${o2.getName(s3.type.id)})`), true; + if (!(s3 instanceof n2.Tree) || 0 == s3.children.length || s3.positions[0] > 0) break; + let l3 = s3.children[0]; + if (!(l3 instanceof n2.Tree && 0 == s3.positions[0])) break; + s3 = l3; + } + } + let s2 = o2.stateSlot(e3.state, 4); + if (s2 > 0) return e3.reduce(s2), f && console.log(a2 + this.stackID(e3) + ` (via always-reduce ${o2.getName(65535 & s2)})`), true; + if (e3.stack.length >= 8400) for (; e3.stack.length > 6e3 && e3.forceReduce(); ) ; + let l2 = this.tokens.getActions(e3); + for (let n3 = 0; n3 < l2.length; ) { + let s3 = l2[n3++], u2 = l2[n3++], d2 = l2[n3++], c2 = n3 == l2.length || !i3, p2 = c2 ? e3 : e3.split(), _2 = this.tokens.mainToken; + if (p2.apply(s3, u2, _2 ? _2.start : p2.pos, d2), f && console.log(a2 + this.stackID(p2) + ` (via ${65536 & s3 ? `reduce of ${o2.getName(65535 & s3)}` : "shift"} for ${o2.getName(u2)} @ ${r3}${p2 == e3 ? "" : ", split"})`), c2) return true; + p2.pos > r3 ? t3.push(p2) : i3.push(p2); + } + return false; + } + advanceFully(e3, t3) { + let i3 = e3.pos; + for (; ; ) { + if (!this.advanceStack(e3, null, null)) return false; + if (e3.pos > i3) return O(e3, t3), true; + } + } + runRecovery(e3, t3, i3) { + let n3 = null, r3 = false; + for (let o2 = 0; o2 < e3.length; o2++) { + let a2 = e3[o2], s2 = t3[o2 << 1], l2 = t3[1 + (o2 << 1)], u2 = f ? this.stackID(a2) + " -> " : ""; + if (a2.deadEnd) { + if (r3) continue; + if (r3 = true, a2.restart(), f && console.log(u2 + this.stackID(a2) + " (restarted)"), this.advanceFully(a2, i3)) continue; + } + let d2 = a2.split(), c2 = u2; + for (let e4 = 0; e4 < 10 && d2.forceReduce() && (f && console.log(c2 + this.stackID(d2) + " (via force-reduce)"), !this.advanceFully(d2, i3)); e4++) f && (c2 = this.stackID(d2) + " -> "); + for (let e4 of a2.recoverByInsert(s2)) f && console.log(u2 + this.stackID(e4) + " (via recover-insert)"), this.advanceFully(e4, i3); + this.stream.end > a2.pos ? (l2 == a2.pos && (l2++, s2 = 0), a2.recoverByDelete(s2, l2), f && console.log(u2 + this.stackID(a2) + ` (via recover-delete ${this.parser.getName(s2)})`), O(a2, i3)) : (!n3 || n3.score < d2.score) && (n3 = d2); + } + return n3; + } + stackToTree(e3) { + return e3.close(), n2.Tree.build({ buffer: s.create(e3), nodeSet: this.parser.nodeSet, topID: this.topTerm, maxBufferLength: this.parser.bufferLength, reused: this.reused, start: this.ranges[0].from, length: e3.pos - this.ranges[0].from, minRepeatType: this.parser.minRepeatTerm }); + } + stackID(e3) { + let t3 = (T || (T = /* @__PURE__ */ new WeakMap())).get(e3); + return t3 || T.set(e3, t3 = String.fromCodePoint(this.nextStackID++)), t3 + e3; + } + } + function O(e3, t3) { + for (let i3 = 0; i3 < t3.length; i3++) { + let n3 = t3[i3]; + if (n3.pos == e3.pos && n3.sameState(e3)) return void (t3[i3].score < e3.score && (t3[i3] = e3)); + } + t3.push(e3); + } + class I { + constructor(e3, t3, i3) { + this.source = e3, this.flags = t3, this.disabled = i3; + } + allows(e3) { + return !this.disabled || 0 == this.disabled[e3]; + } + } + const v = (e3) => e3; + class C extends n2.Parser { + constructor(e3) { + if (super(), this.wrappers = [], 14 != e3.version) throw new RangeError(`Parser version (${e3.version}) doesn't match runtime version (14)`); + let t3 = e3.nodeNames.split(" "); + this.minRepeatTerm = t3.length; + for (let i4 = 0; i4 < e3.repeatNodeCount; i4++) t3.push(""); + let i3 = Object.keys(e3.topRules).map((t4) => e3.topRules[t4][1]), r3 = []; + for (let e4 = 0; e4 < t3.length; e4++) r3.push([]); + function o2(e4, t4, i4) { + r3[e4].push([t4, t4.deserialize(String(i4))]); + } + if (e3.nodeProps) for (let t4 of e3.nodeProps) { + let e4 = t4[0]; + "string" == typeof e4 && (e4 = n2.NodeProp[e4]); + for (let i4 = 1; i4 < t4.length; ) { + let n3 = t4[i4++]; + if (n3 >= 0) o2(n3, e4, t4[i4++]); + else { + let r4 = t4[i4 + -n3]; + for (let a3 = -n3; a3 > 0; a3--) o2(t4[i4++], e4, r4); + i4++; + } + } + } + this.nodeSet = new n2.NodeSet(t3.map((t4, o3) => n2.NodeType.define({ name: o3 >= this.minRepeatTerm ? void 0 : t4, id: o3, props: r3[o3], top: i3.indexOf(o3) > -1, error: 0 == o3, skipped: e3.skippedNodes && e3.skippedNodes.indexOf(o3) > -1 }))), e3.propSources && (this.nodeSet = this.nodeSet.extend(...e3.propSources)), this.strict = false, this.bufferLength = n2.DefaultBufferLength; + let a2 = l(e3.tokenData); + this.context = e3.context, this.specializerSpecs = e3.specialized || [], this.specialized = new Uint16Array(this.specializerSpecs.length); + for (let e4 = 0; e4 < this.specializerSpecs.length; e4++) this.specialized[e4] = this.specializerSpecs[e4].term; + this.specializers = this.specializerSpecs.map(E), this.states = l(e3.states, Uint32Array), this.data = l(e3.stateData), this.goto = l(e3.goto), this.maxTerm = e3.maxTerm, this.tokenizers = e3.tokenizers.map((e4) => "number" == typeof e4 ? new p(a2, e4) : e4), this.topRules = e3.topRules, this.dialects = e3.dialects || {}, this.dynamicPrecedences = e3.dynamicPrecedences || null, this.tokenPrecTable = e3.tokenPrec, this.termNames = e3.termNames || null, this.maxNode = this.nodeSet.types.length - 1, this.dialect = this.parseDialect(), this.top = this.topRules[Object.keys(this.topRules)[0]]; + } + createParse(e3, t3, i3) { + let n3 = new N(this, e3, t3, i3); + for (let r3 of this.wrappers) n3 = r3(n3, e3, t3, i3); + return n3; + } + getGoto(e3, t3, i3 = false) { + let n3 = this.goto; + if (t3 >= n3[0]) return -1; + for (let r3 = n3[t3 + 1]; ; ) { + let t4 = n3[r3++], o2 = 1 & t4, a2 = n3[r3++]; + if (o2 && i3) return a2; + for (let i4 = r3 + (t4 >> 1); r3 < i4; r3++) if (n3[r3] == e3) return a2; + if (o2) return -1; + } + } + hasAction(e3, t3) { + let i3 = this.data; + for (let n3 = 0; n3 < 2; n3++) for (let r3, o2 = this.stateSlot(e3, n3 ? 2 : 1); ; o2 += 3) { + if (65535 == (r3 = i3[o2])) { + if (1 != i3[o2 + 1]) { + if (2 == i3[o2 + 1]) return b(i3, o2 + 2); + break; + } + r3 = i3[o2 = b(i3, o2 + 2)]; + } + if (r3 == t3 || 0 == r3) return b(i3, o2 + 1); + } + return 0; + } + stateSlot(e3, t3) { + return this.states[6 * e3 + t3]; + } + stateFlag(e3, t3) { + return (this.stateSlot(e3, 0) & t3) > 0; + } + validAction(e3, t3) { + return !!this.allActions(e3, (e4) => e4 == t3 || null); + } + allActions(e3, t3) { + let i3 = this.stateSlot(e3, 4), n3 = i3 ? t3(i3) : void 0; + for (let i4 = this.stateSlot(e3, 1); null == n3; i4 += 3) { + if (65535 == this.data[i4]) { + if (1 != this.data[i4 + 1]) break; + i4 = b(this.data, i4 + 2); + } + n3 = t3(b(this.data, i4 + 1)); + } + return n3; + } + nextStates(e3) { + let t3 = []; + for (let i3 = this.stateSlot(e3, 1); ; i3 += 3) { + if (65535 == this.data[i3]) { + if (1 != this.data[i3 + 1]) break; + i3 = b(this.data, i3 + 2); + } + if (!(1 & this.data[i3 + 2])) { + let e4 = this.data[i3 + 1]; + t3.some((t4, i4) => 1 & i4 && t4 == e4) || t3.push(this.data[i3], e4); + } + } + return t3; + } + configure(e3) { + let t3 = Object.assign(Object.create(C.prototype), this); + if (e3.props && (t3.nodeSet = this.nodeSet.extend(...e3.props)), e3.top) { + let i3 = this.topRules[e3.top]; + if (!i3) throw new RangeError(`Invalid top rule name ${e3.top}`); + t3.top = i3; + } + return e3.tokenizers && (t3.tokenizers = this.tokenizers.map((t4) => { + let i3 = e3.tokenizers.find((e4) => e4.from == t4); + return i3 ? i3.to : t4; + })), e3.specializers && (t3.specializers = this.specializers.slice(), t3.specializerSpecs = this.specializerSpecs.map((i3, n3) => { + let r3 = e3.specializers.find((e4) => e4.from == i3.external); + if (!r3) return i3; + let o2 = Object.assign(Object.assign({}, i3), { external: r3.to }); + return t3.specializers[n3] = E(o2), o2; + })), e3.contextTracker && (t3.context = e3.contextTracker), e3.dialect && (t3.dialect = this.parseDialect(e3.dialect)), null != e3.strict && (t3.strict = e3.strict), e3.wrap && (t3.wrappers = t3.wrappers.concat(e3.wrap)), null != e3.bufferLength && (t3.bufferLength = e3.bufferLength), t3; + } + hasWrappers() { + return this.wrappers.length > 0; + } + getName(e3) { + return this.termNames ? this.termNames[e3] : String(e3 <= this.maxNode && this.nodeSet.types[e3].name || e3); + } + get eofTerm() { + return this.maxNode + 1; + } + get topNode() { + return this.nodeSet.types[this.top[1]]; + } + dynamicPrecedence(e3) { + let t3 = this.dynamicPrecedences; + return null == t3 ? 0 : t3[e3] || 0; + } + parseDialect(e3) { + let t3 = Object.keys(this.dialects), i3 = t3.map(() => false); + if (e3) for (let n4 of e3.split(" ")) { + let e4 = t3.indexOf(n4); + e4 >= 0 && (i3[e4] = true); + } + let n3 = null; + for (let e4 = 0; e4 < t3.length; e4++) if (!i3[e4]) for (let i4, r3 = this.dialects[t3[e4]]; 65535 != (i4 = this.data[r3++]); ) (n3 || (n3 = new Uint8Array(this.maxTerm + 1)))[i4] = 1; + return new I(e3, i3, n3); + } + static deserialize(e3) { + return new C(e3); + } + } + function b(e3, t3) { + return e3[t3] | e3[t3 + 1] << 16; + } + function E(e3) { + if (e3.external) { + let t3 = e3.extend ? 1 : 0; + return (i3, n3) => e3.external(i3, n3) << 1 | t3; + } + return e3.get; + } + t2.ContextTracker = class { + constructor(e3) { + this.start = e3.start, this.shift = e3.shift || v, this.reduce = e3.reduce || v, this.reuse = e3.reuse || v, this.hash = e3.hash || (() => 0), this.strict = false !== e3.strict; + } + }, t2.ExternalTokenizer = class { + constructor(e3, t3 = {}) { + this.token = e3, this.contextual = !!t3.contextual, this.fallback = !!t3.fallback, this.extend = !!t3.extend; + } + }, t2.InputStream = c, t2.LRParser = C, t2.LocalTokenGroup = _, t2.Stack = r2; + }, 41829: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.obfuscation = void 0; + const n2 = i2(31635).__importDefault(i2(92140)), r2 = i2(73146), o = i2(39504), a = "1", s = a, l = a; + t2.obfuscation = new class { + encodeStr(e3, t3) { + if (!n2.default.isString(e3) || 0 === e3.length) return; + const i3 = n2.default.isString(t3) ? t3 : a; + if (i3 < s || i3 > l) return; + let o2, u, d, c, p, _, h; + if (i3 === a) { + o2 = Math.floor(26 * Math.random()) + 20, d = ""; + for (let e4 = 0; e4 < o2; e4++) d += String.fromCharCode(Math.floor(58 * Math.random()) + 32); + h = " "; + for (let e4 = 0; e4 < 10; e4++) h += String.fromCharCode(Math.floor(58 * Math.random()) + 32); + u = Math.floor(24 * Math.random()) + 2, p = (0, r2.toAscii)(encodeURIComponent(e3)), d += p + h, c = d.split(""), _ = d.length; + for (let e4 = o2; e4 < _; e4++) c[e4] = String.fromCharCode(c[e4].charCodeAt(0) + u); + return c[_ - 12] = String.fromCharCode(o2 + 13), c[_ - 13] = String.fromCharCode(u + 21), c[_ - 11] = String.fromCharCode(a.charCodeAt(0) + 28), c.join(""); + } + } + decodeStr(e3, t3) { + if (!n2.default.isString(e3) || 0 === e3.length) return; + const i3 = String.fromCharCode(e3.charCodeAt(e3.length - 11) - 28); + if (!n2.default.isString(i3) || i3 < s || i3 > l) return; + const r3 = e3.split(""); + let u, d, c, p; + if ((n2.default.isString(t3) ? t3 : i3) === a) { + if (e3.length < 34) return; + if (u = e3.charCodeAt(e3.length - 12) - 13, !n2.default.isActualNumber(u) && u >= 20 && u < 46) return; + if (p = e3.charCodeAt(e3.length - 13) - 21, !n2.default.isActualNumber(p) && p >= 2 && p <= 26) return; + d = e3.length - 13 - u; + for (let e4 = u; e4 < u + d; e4++) r3[e4] = String.fromCharCode(r3[e4].charCodeAt(0) - p); + return c = r3.slice(u, u + d).join(""), decodeURIComponent((0, o.toBinary)(c)); + } + } + get versions() { + return { OBFUSCATION_VERSION_LATEST: l, OBFUSCATION_VERSION_ONE: a }; + } + }(); + }, 41857: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(81574)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "assignedCustomerIntent"; + } + get displayTypeName() { + return "ArchValueAssignedCustomerIntent"; + } + get name() { + var e3; + return null === (e3 = this._getAssignableProperty("customerIntent")) || void 0 === e3 ? void 0 : e3.name; + } + get isArchValueAssignedCustomerIntent() { + return true; + } + } + t2.default = r2; + }, 41898: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(61864)), r2 = i2(55299), o = i2(55909), a = i2(33951); + class s extends r2.BaseClass { + constructor(e3, t3, i3, r3) { + super(), a.ParameterValidator.expectString(e3, () => o.ParameterInfo.createConstructorParameter(this.className, "id")), a.ParameterValidator.expectString(t3, () => o.ParameterInfo.createConstructorParameter(this.className, "name")), a.ParameterValidator.expectString(i3, () => o.ParameterInfo.createConstructorParameter(this.className, "description"), true), this._icon = r3 ? a.ParameterValidator.expectObject(r3, () => o.ParameterInfo.createConstructorParameter(this.className, "icon")) : n2.default.wrench, Object.defineProperties(this, { _description: { value: i3, writable: true }, _icon: { value: r3, writable: true }, _id: { value: e3, writable: true }, _name: { value: t3, writable: true } }); + } + get className() { + return "BaseIdNameDesc"; + } + get description() { + return this._description; + } + get icon() { + return this._icon; + } + get id() { + return this._id; + } + get name() { + return this._name; + } + get isBaseIdNameDesc() { + return true; + } + } + t2.default = s; + }, 41935: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(21345)), r2 = i2(30801); + class o extends n2.default { + constructor(e3) { + super(e3); + } + get _actionTypeId() { + return r2.submitVoicemailSnippetActionType; + } + get displayTypeName() { + return "ArchActionSubmitVoicemailSnippet"; + } + get isArchActionSubmitVoicemailSnippet() { + return true; + } + } + t2.default = o; + }, 41996: (e2, t2, i2) => { + "use strict"; + var n2 = i2(9805), r2 = true, o = true; + try { + String.fromCharCode.apply(null, [0]); + } catch (e3) { + r2 = false; + } + try { + String.fromCharCode.apply(null, new Uint8Array(1)); + } catch (e3) { + o = false; + } + for (var a = new n2.Buf8(256), s = 0; s < 256; s++) a[s] = s >= 252 ? 6 : s >= 248 ? 5 : s >= 240 ? 4 : s >= 224 ? 3 : s >= 192 ? 2 : 1; + function l(e3, t3) { + if (t3 < 65534 && (e3.subarray && o || !e3.subarray && r2)) return String.fromCharCode.apply(null, n2.shrinkBuf(e3, t3)); + for (var i3 = "", a2 = 0; a2 < t3; a2++) i3 += String.fromCharCode(e3[a2]); + return i3; + } + a[254] = a[254] = 1, t2.string2buf = function(e3) { + var t3, i3, r3, o2, a2, s2 = e3.length, l2 = 0; + for (o2 = 0; o2 < s2; o2++) 55296 == (64512 & (i3 = e3.charCodeAt(o2))) && o2 + 1 < s2 && 56320 == (64512 & (r3 = e3.charCodeAt(o2 + 1))) && (i3 = 65536 + (i3 - 55296 << 10) + (r3 - 56320), o2++), l2 += i3 < 128 ? 1 : i3 < 2048 ? 2 : i3 < 65536 ? 3 : 4; + for (t3 = new n2.Buf8(l2), a2 = 0, o2 = 0; a2 < l2; o2++) 55296 == (64512 & (i3 = e3.charCodeAt(o2))) && o2 + 1 < s2 && 56320 == (64512 & (r3 = e3.charCodeAt(o2 + 1))) && (i3 = 65536 + (i3 - 55296 << 10) + (r3 - 56320), o2++), i3 < 128 ? t3[a2++] = i3 : i3 < 2048 ? (t3[a2++] = 192 | i3 >>> 6, t3[a2++] = 128 | 63 & i3) : i3 < 65536 ? (t3[a2++] = 224 | i3 >>> 12, t3[a2++] = 128 | i3 >>> 6 & 63, t3[a2++] = 128 | 63 & i3) : (t3[a2++] = 240 | i3 >>> 18, t3[a2++] = 128 | i3 >>> 12 & 63, t3[a2++] = 128 | i3 >>> 6 & 63, t3[a2++] = 128 | 63 & i3); + return t3; + }, t2.buf2binstring = function(e3) { + return l(e3, e3.length); + }, t2.binstring2buf = function(e3) { + for (var t3 = new n2.Buf8(e3.length), i3 = 0, r3 = t3.length; i3 < r3; i3++) t3[i3] = e3.charCodeAt(i3); + return t3; + }, t2.buf2string = function(e3, t3) { + var i3, n3, r3, o2, s2 = t3 || e3.length, u = new Array(2 * s2); + for (n3 = 0, i3 = 0; i3 < s2; ) if ((r3 = e3[i3++]) < 128) u[n3++] = r3; + else if ((o2 = a[r3]) > 4) u[n3++] = 65533, i3 += o2 - 1; + else { + for (r3 &= 2 === o2 ? 31 : 3 === o2 ? 15 : 7; o2 > 1 && i3 < s2; ) r3 = r3 << 6 | 63 & e3[i3++], o2--; + o2 > 1 ? u[n3++] = 65533 : r3 < 65536 ? u[n3++] = r3 : (r3 -= 65536, u[n3++] = 55296 | r3 >> 10 & 1023, u[n3++] = 56320 | 1023 & r3); + } + return l(u, n3); + }, t2.utf8border = function(e3, t3) { + var i3; + for ((t3 = t3 || e3.length) > e3.length && (t3 = e3.length), i3 = t3 - 1; i3 >= 0 && 128 == (192 & e3[i3]); ) i3--; + return i3 < 0 || 0 === i3 ? t3 : i3 + a[e3[i3]] > t3 ? i3 : t3; + }; + }, 42048: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(92140)), r2 = i2(55299); + class o extends r2.BaseClass { + constructor(e3) { + super(), this.model = e3; + } + get className() { + return "NLUDomainViewModel"; + } + get draftVersion() { + return this.model.draftVersion; + } + get id() { + return this.model.id; + } + get name() { + return this.model.name; + } + get isFromWorkbench() { + return this.model.isFromWorkbench; + } + get isPublished() { + return !!this.model.lastPublishedVersion; + } + get intents() { + return this.model.intents; + } + get entityTypes() { + return this.model.entityTypes; + } + getEntityTypeMechanismForArchNluEntity(e3) { + var t3; + if (!e3) return; + const i3 = null === (t3 = this.entityTypes) || void 0 === t3 ? void 0 : t3.find((t4) => t4.name === e3.type); + return null == i3 ? void 0 : i3.mechanism.type; + } + get entities() { + return this.model.entities; + } + get lastPublishedVersion() { + if (this.isPublished) return this.model.lastPublishedVersion.id; + } + get label() { + return this.name; + } + getSlotsWithSameNameButDiffType() { + const e3 = {}, t3 = []; + return n2.default.each(this.intents, (i3) => { + n2.default.each(i3.entityTypeBindings, (i4) => { + if (!n2.default.isObject(i4) || !n2.default.isString(i4.entityName) || !n2.default.isString(i4.entityType)) return; + const r3 = i4.entityName.toLowerCase(), o2 = e3[r3]; + o2 ? i4.entityType !== o2 && t3.push(i4.entityName) : e3[r3] = i4.entityType; + }); + }), t3; + } + } + t2.default = o; + }, 42062: (e2, t2, i2) => { + "use strict"; + const n2 = i2(31635), r2 = i2(53755), o = i2(54403), a = i2(12786), s = i2(21305), l = i2(12179), u = n2.__importDefault(i2(97891)), d = i2(47957); + class c extends r2.BaseConversationAttributeActionViewModel { + constructor(e3, t3) { + super(e3, t3), this._loadModel(t3); + } + static createCustomJsonProperties() { + return this.createManagedPropertiesFromConfig({ includeInput: true, includeOutput: true, inputOptionsFactory: () => s.ExpressionTypeJsonOptions.create((e3) => { + e3.setAsInput().setUiPropertyGroup(d.setAttributes.attribute).setIsCustomJsonType(true).setUiSingleItemSectionPropertyGroup(true).setHideLabel(true).setIninTestingField("customJsonInput"); + }), outputOptionsFactory: () => s.ExpressionTypeJsonOptions.create((e3) => { + e3.setAsOutput().setIsCustomJsonType(true).setLabelOverride(d.conversationAttribute.resultLabel).setIninTestingField("customJsonOutput"); + }) }); + } + static get managedProperties() { + return [...this.createBaseManagedProperties(), this.createRecordIdManagedProperty(), this.createDivisionsManagedProperty(), ...this.createCustomJsonProperties()]; + } + _getPossibleErrors() { + return a.createConversationAttributeFailureReasons; + } + } + c.info = u.default.createActionInfo({ actionClass: c, canBeInTask: true, helpTopic: l.helpTopics.actions.createConversationAttribute, modelClass: o.CreateConversationAttributeActionModel, name: d.actions.createConversationAttribute, scriptingName: "ArchActionCreateConversationAttribute" }), t2.A = c; + }, 42091: (e2, t2, i2) => { + const { builderCategoryIds: n2 } = i2(73062), r2 = i2(79904).default, o = i2(81818).default, a = i2(41568).default, s = i2(5532).default, { builderPartIds: l } = i2(69149), u = i2(42290).default, d = i2(16958), c = i2(76486).default, p = i2(22599).default, { flowTypes: _ } = i2(96618), { globalTypes: h } = i2(14394), m = i2(61864).default, { defaultWithNoLabel: g } = i2(93631), f = i2(96727).default; + e2.exports = { create: function() { + s.addBuilderPartDef(new u({ categoryIdentifierOrIdentifiers: n2.toolbar, description: d.builderParts.integer.literal.description, expressionDefs: [new c({ configureOptionsCallback: (e3) => { + e3.setAllowModeLiteralOnly().setIninTestingField("integerLiteral"); + }, expressionType: h.integer, label: d.builderParts.integer.literal.name })], generators: { expressionGenerator: f.singleTokenReplacementGenerator }, viewId: g, id: l.integer.literal, icon: m.integer, name: d.builderParts.integer.literal.name, resultExpressionType: h.integer, version: 1 })), s.addBuilderPartContainerDef(new r2({ categoryIdentifierOrIdentifiers: n2.container, description: d.builderParts.container.language.description, generators: { containerPartsGenerator: p.create().addFuncCallParmGenerationBucket("integerValue", true).verifySprintfStringAndInitialize(""), languageCheckGenerator: p.create().addFuncCall("If").addFuncCall("AreEqual").addTokenBooleanTrue().addFuncParameterSeparator().addTokenReplacement(0).addFuncParameterSeparator().addTokenReplacement(1).addFuncCallEnd().addFuncParameterSeparator().addFuncCallParmGenerationBucket("integerValue", true).verifySprintfStringAndInitialize("If(AreEqual(true, %1$s, %2$s), "), wantContainerPartsGeneratorForSingleton: true }, id: l.integer.container.language, name: d.builderParts.container.language.name, resultExpressionType: h.integer, version: 1, wantBucketOnSingleGeneration: true })), s.addBuilderPartContainerDef(new o({ categoryIdentifierOrIdentifiers: n2.container, description: d.builderParts.container.languageAndOutputMode.description, generators: { containerPartsGenerator: p.create().addFuncCallParmGenerationBucket("integerValue", true).verifySprintfStringAndInitialize(""), wantContainerPartsGeneratorForSingleton: true }, id: l.integer.container.languageAndOutputMode, name: d.builderParts.container.languageAndOutputMode.name, restrictToFlowTypeOrTypes: _.flowTypesAllCicero, resultExpressionType: h.integer, version: 1, wantBucketOnSingleGeneration: true })), s.addBuilderPartContainerDef(new a({ categoryIdentifierOrIdentifiers: n2.container, description: d.builderParts.container.outputMode.description, generators: { containerPartsGenerator: p.create().addFuncCallParmGenerationBucket("integerValue", true).verifySprintfStringAndInitialize(""), wantContainerPartsGeneratorForSingleton: true }, id: l.integer.container.outputMode, name: d.builderParts.container.outputMode.name, restrictToFlowTypeOrTypes: _.flowTypesAllCicero, resultExpressionType: h.integer, version: 1 })); + } }; + }, 42098: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.createTransferConnectTimeoutProperty = function(e3) { + const t3 = c.clone(); + return e3 && t3.setModeNoValueRuntimeEvaluationStr(e3, l.flowTypes.flowTypesAllVxmlgen), { label: d.transfer.connectTimeout, options: t3, yamlOptions: a.default.create("transferConnectTimeoutProperty-connTimeout", (e4) => e4.setPropertyName("connectTimeout").setExportOrder(110)), property: "connTimeout", type: u.expressionTypeNames.duration, supportedFlowTypes: [...l.flowTypes.flowTypesAllVxmlgen, l.flowTypes.flowTypeCommonModule] }; + }; + const n2 = i2(31635), r2 = n2.__importStar(i2(63824)), o = n2.__importDefault(i2(73198)), a = n2.__importDefault(i2(22917)), s = i2(79467), l = i2(96618), u = i2(80428), d = i2(47957), c = s.ExpressionTypeDurationOptions.create((e3) => e3.setAllowEmptyConfig(true).setAllowFlowLevelDefault(true).setScriptingPropertyName("connectTimeout").setFlowLevelDefaultHasDefault(true).setAsInput(true).setDurationStyle(r2.durationStyles.secondsAndTenthsDuration).setDefaultText(o.default.litDurationTenSeconds).setIsOptional(true).setIninTestingField("connect-timeout-expression").facets.setMinDur(o.default.msPerSecond, true).setMaxDur(o.default.msPerMinute, true)); + }, 42115: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importDefault(i2(92140)), o = i2(17604), a = n2.__importDefault(i2(84783)), s = i2(33231); + function l(e3) { + return s.all(e3); + } + class u extends a.default { + createPromise(e3) { + let t3; + return t3 = Array.isArray(e3) ? (function(e4) { + if (Array.isArray(e4)) { + const t4 = []; + if (r2.default.each(e4, function(i3, n3) { + s.isPromiseAlike(i3) ? t4.push(i3) : this.logErrorAndThrow((0, o.sprintf)("array contained non promise value at index [%s]", n3), this, e4); + }), t4.length > 0) return l(t4); + } + })(e3) : l(e3), Object.defineProperties(t3, { displayTypeName: { value: "ArchPromise" }, isArchPromise: { value: true } }), t3; + } + get displayTypeName() { + return "ArchFactoryPromise"; + } + get isArchFactoryPromise() { + return true; + } + get logStr() { + const e3 = [this.displayTypeName]; + return this._createLogStrFromParts(e3); + } + } + t2.default = new u(); + }, 42139: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.agenticVirtualAgentVersionManager = t2.AgenticVirtualAgentVersionManager = void 0; + const n2 = i2(31635), r2 = n2.__importStar(i2(33577)), o = i2(24032), a = n2.__importDefault(i2(71960)), s = i2(30801), l = i2(28722), u = i2(81801), d = n2.__importDefault(i2(47532)), c = i2(47957), p = i2(27862); + class _ extends d.default { + constructor() { + super(), this.topic = (0, o.getTopic)("agenticVirtualAgentVersionManager"), this._rawServerCache = {}, this.apiCallList = void 0, this.apiCallSingle = r2.getAgenticVirtualAgentVersion, this.actionsForUsageSearch = [s.callAgenticVirtualAgentActionType], this.actionPropertyForUsageSearch = "", this.defaultInputsWithNoDefaultToNotSet = true, this.className = "agenticVirtualAgentVersionManager", this.dependencyContext = c.agenticVirtualAgent.agenticVirtualAgentVersion, this.uiMetadataSectionName = "agenticVirtualAgentsVersions", this.noApiCallList = true, this._initialize(); + } + get requiredAuth() { + return u.externalAuthorizations.authStrings.agenticVirtualAgentVersionView; + } + get dependencyType() { + return p.AgenticVirtualAgentVersion; + } + get _networkModel() { + return a.default; + } + _createItemViewModel(e3) { + return new l.AgenticVirtualAgentVersionViewModel(e3); + } + } + t2.AgenticVirtualAgentVersionManager = _, t2.agenticVirtualAgentVersionManager = new _(); + }, 42150: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(20692)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "choiceCollection"; + } + get initialValue() { + return this._initialValue; + } + get displayTypeName() { + return "ArchVariableChoiceCollection"; + } + get isArchVariableChoiceCollection() { + return true; + } + } + t2.default = r2; + }, 42161: (e2, t2, i2) => { + const n2 = i2(11475), r2 = i2(68259).default; + function o() { + o.baseConstructor.apply(this, arguments), this.facets || (this.facets = new r2({ decimalPlaces: 2 })); + } + n2.extend(o, "CurrencyVariable", true), Object.defineProperties(o.prototype, { facets: { enumerable: false, get: function() { + return this._facets; + }, set: function(e3) { + this._facets = this.reviveItem(e3, r2); + } } }), e2.exports = o; + }, 42170: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.FindScheduleActionModel = void 0; + const n2 = i2(49574), r2 = i2(30801); + class o extends n2.BaseFindSystemObjectByNameActionModel { + constructor(e3) { + super(e3), this.__type = o.__type; + } + } + t2.FindScheduleActionModel = o, o.__type = r2.findScheduleActionType, o.registerType(); + }, 42175: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importDefault(i2(37873)), o = n2.__importDefault(i2(94225)), a = i2(62829), s = i2(92140), { menuActionActionType: l } = i2(30801); + class u extends r2.default { + static get definition() { + const e3 = this.prototype; + e3._ensureSessionIsConnected(e3._infoPropGet("definition"), o.default); + const t3 = a.getInfo(e3._actionTypeId), i3 = a.getInfo(l); + return e3.coreFactory.createArchWrapper({ coreActionNodeInformation: t3, coreMenuNodeInformation: i3, isArchMenuDefinition: true, id: i3.id }); + } + constructor(e3) { + super(e3); + } + get _actionTypeId() { + console.log(`INTERNAL ERROR - _actionTypeId not implemented for '${this.displayTypeName}'`); + } + get definition() { + this._ensureSessionIsConnected(this._infoPropGet("definition"), o.default); + const e3 = a.getInfo(this._actionTypeId), t3 = a.getInfo(l); + return this.coreFactory.createArchWrapper({ coreActionNodeInformation: e3, coreMenuNodeInformation: t3, isArchMenuDefinition: true, id: t3.id }); + } + get displayTypeName() { + return "ArchBaseMenu"; + } + get isArchBaseMenu() { + return true; + } + get parentFlow() { + return this.coreFactory.createArchWrapper(this._getCoreViewModel().parentFlow); + } + _findCoreMenuChoiceById(e3) { + if (!e3) return; + const t3 = this._getCoreViewModel(); + return s.isArray(t3.choices) ? s.find(t3.choices, (t4) => t4.id === e3) : void 0; + } + get trackingId() { + return this._getCoreViewModel().trackingId; + } + set trackingId(e3) { + const t3 = this._infoPropSet("value", "trackingId"); + this._ensureCanSetTrackingIds(t3, o.default, e3); + const i3 = this._getCoreViewModel(), n3 = i3.trackingId; + n3 !== e3 && (i3.trackingId = e3, this.logItemVerboseNote(t3, `updated tracking ID from ${n3} to ${i3.trackingId}.`)); + } + } + t2.default = u; + }, 42193: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.default = function(e3, t3, i3) { + t3 || (t3 = e3); + const n3 = new c(); + n3.variables = [], n3.defaultLanguage = e3, r2.default.isUndefined(i3) || (a.default.getInstance(i3) || (p.error("Invalid default error handling type passed in for blank workflow configuration generation. Using Disconnect."), i3 = a.default.Disconnect), n3.errorHandling = new s(), n3.errorHandling.handlingType = i3), n3.flowMetaData = new l({ flowDocumentVersion: "1.0", minimumServerVersion: "1.0", features: [] }), n3.flowSequenceItemList = []; + const o2 = new d(); + return o2.name = u(t3).initialState, o2.variables = [], o2.actionList = [], n3.flowSequenceItemList = [o2], n3.initialSequence = o2.id, n3; + }; + const n2 = i2(31635), r2 = n2.__importDefault(i2(92140)), o = n2.__importStar(i2(24032)), a = n2.__importDefault(i2(15244)), s = i2(2053), l = i2(89266), u = i2(21733), d = i2(69674), c = i2(23695), p = o.getTopic("BlankWorkflow"); + }, 42217: (e2, t2, i2) => { + const n2 = i2(45214), r2 = i2(7401); + function o() { + Object.defineProperties(this, { _expression: { writable: true }, _variable: { writable: true } }), o.baseConstructor.apply(this, arguments); + } + n2.extend(o, "VariableExpressionPair"), Object.defineProperties(o.prototype, { pasteReIdOrRename: { value: function(e3) { + this.expression.pasteReIdOrRename(e3), this.variable.pasteReIdOrRename(e3); + } }, pasteResolveOldToNewValues: { value: function(e3) { + this.expression.pasteResolveOldToNewValues(e3), this.variable.pasteResolveOldToNewValues(e3); + } }, expression: { enumerable: true, get: function() { + return this._expression; + }, set: function(e3) { + this._expression = this.reviveItem(e3, r2); + } }, variable: { enumerable: true, get: function() { + return this._variable; + }, set: function(e3) { + this._variable = this.reviveItem(e3, r2); + } } }), e2.exports = o; + }, 42237: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importDefault(i2(94225)), o = i2(66800), a = n2.__importDefault(i2(45894)); + class s extends a.default { + constructor(e3) { + super(e3, o.digitalAudioManager); + } + get _globalTypeName() { + return "digitalAudio"; + } + get displayTypeName() { + return "ArchValueDigitalAudio"; + } + get isArchValueDigitalAudio() { + return true; + } + setLiteralByDigitalAudioIdAsync(e3, t3) { + return n2.__awaiter(this, void 0, void 0, function* () { + return this._checkItemIsValidLiteralString(this._infoParm("digitalAudioId", "setLiteralByDigitalAudioIdAsync"), e3), this._checkItemIsValidFunction(this._infoParm("callbackFunction", "setLiteralByDigitalAudioIdAsync"), t3, true), this._setLiteralByIdAsync(e3).then(() => r2.default.executeCallback(this, "setLiteralByDigitalAudioIdAsync", t3, this)); + }); + } + setLiteralByDigitalAudioNameAsync(e3, t3) { + return n2.__awaiter(this, void 0, void 0, function* () { + return this._checkItemIsValidLiteralString(this._infoParm("digitalAudioName", "setLiteralByDigitalAudioNameAsync"), e3), this._checkItemIsValidFunction(this._infoParm("callbackFunction", "setLiteralByDigitalAudioNameAsync"), t3, true), this._setLiteralByValueAsync(e3).then(() => r2.default.executeCallback(this, "setLiteralByDigitalAudioNameAsync", t3, this)); + }); + } + } + t2.default = s; + }, 42268: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(81574)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "journeySdkLibrary"; + } + get name() { + } + get version() { + } + get displayTypeName() { + return "ArchValueJourneySdkLibrary"; + } + get isArchValueJourneySdkLibrary() { + return true; + } + } + t2.default = r2; + }, 42290: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importDefault(i2(92140)), o = i2(55909), a = i2(33951), s = n2.__importDefault(i2(88835)), l = i2(69149), u = n2.__importDefault(i2(27702)), d = n2.__importDefault(i2(16864)), c = n2.__importDefault(i2(88878)); + class p extends s.default { + constructor({ id: e3, name: t3, description: i3, icon: n3, helpTopic: s2, version: l2, generators: u2, partConfigurators: d2, resultExpressionType: c2, type: p2, expressionDefs: _, restrictToFlowTypeOrTypes: h, categoryIdentifierOrIdentifiers: m, requiredFeatureToggle: g, requiredFeatureConfig: f, requiredChannelTypeOrTypes: T, useStringLiteralProcessing: y, viewId: S, sortValue: A, displayStringOverride: N }) { + super(e3, t3, i3, l2, u2, d2, c2 = c2 || p2, h, m, n3 || c2.getArchIcon(), s2, g, f, T, A, N), a.ParameterValidator.expectArray(_, () => o.ParameterInfo.createConstructorParameter(this.className, "expressionDefs")), Object.defineProperties(this, { _expressionDefs: { value: _ }, _viewId: { value: S }, _useStringLiteralProcessing: { value: r2.default.isFunction(y) ? y : void 0 } }); + } + get expressionDefs() { + return this._expressionDefs; + } + get viewId() { + return this._viewId; + } + get useStringLiteralProcessing() { + return this._useStringLiteralProcessing; + } + get className() { + return "BuilderPartWithExpressionsDef"; + } + createBuilderPartViewModel(e3, t3) { + const i3 = new u.default({ builderPartDefId: this.id, version: this.version }); + return this.reviveItem(e3, t3, i3); + } + reviveItem(e3, t3, i3, n3) { + switch (null == i3 ? void 0 : i3.builderPartDefId) { + case l.builderPartIds.communication.markdown: + case l.builderPartIds.string.markdown: + return new c.default({ builderViewModel: e3, owningExpressionViewModel: t3, builderPartModel: i3, overrideBuilderPartDef: void 0, reId: !!n3 }); + default: + return new d.default({ builderViewModel: e3, owningExpressionViewModel: t3, builderPartModel: i3, overrideBuilderPartDef: void 0, reId: !!n3 }); + } + } + } + t2.default = p; + }, 42433: (e2, t2, i2) => { + "use strict"; + var n2, r2; + Object.defineProperty(t2, "__esModule", { value: true }), t2.BaseOptions = void 0; + const o = i2(31635), a = o.__importDefault(i2(92140)), s = i2(79364), l = i2(98126), u = i2(80295), d = i2(69212), c = i2(80295), p = i2(55909), _ = i2(33951); + class h { + constructor() { + this._assumeOosIfTypeUnavailable = false, this._uiLayout = {}, (0, c.makeUnenumerable)(this, "_assumeOosIfTypeUnavailable"), (0, c.makeUnenumerable)(this, "_canCreateObjectInAction"), (0, c.makeUnenumerable)(this, "_featureConfigName"), (0, c.makeUnenumerable)(this, "_antiFeatureConfigName"), (0, c.makeUnenumerable)(this, "_ininTestingField"), (0, c.makeUnenumerable)(this, "_uiPropertyGroup"), (0, c.makeUnenumerable)(this, "_uiPropertyCardGroup$"), (0, c.makeUnenumerable)(this, "_uiSingleItemSectionPropertyGroup"), (0, c.makeUnenumerable)(this, "_uiPropertyOrder"), (0, c.makeUnenumerable)(this, "_uiDisableOnOutOfService"), (0, c.makeUnenumerable)(this, "_uiLayout"), (0, c.makeUnenumerable)(this, "_disallowedFunctionMap"); + } + get className() { + return "BaseOptions"; + } + get isBaseOptions() { + return true; + } + invokeOptionsCallback(e3) { + return a.default.isFunction(e3) && e3(this), this; + } + configure(e3) { + return e3(this), this; + } + get facets() { + } + set facets(e3) { + } + setFromOptions(e3) { + this._setFromOptions(e3), this._setFacetsFromOptions(e3); + } + _setFromOptions(e3) { + _.ParameterValidator.expectObject(e3, () => p.ParameterInfo.createFunctionParameter(this.className, "_setFromOptions", "baseOptions"), false), this._setOptionIfSet(this.setAssumeOosIfTypeUnavailable, e3.assumeOosIfTypeUnavailable), this._setOptionIfSet(this.setDisallowedFunctionMap, e3.disallowedFunctionMap), this._setOptionIfSet(this.setUiLayout, e3.uiLayout), this._setOptionIfSet(this.setCanCreateObjectInAction, e3.canCreateObjectInAction, "_canCreateObjectInAction"), this._setOptionIfSet(this.setFeatureConfigName, e3.featureConfigName, "_featureConfigName"), this._setOptionIfSet(this.setAntiFeatureConfigName, e3.antiFeatureConfigName, "_antiFeatureConfigName"), this._setOptionIfSet(this.setIninTestingField, e3.ininTestingField, "_ininTestingField"), this._setOptionIfSet(this.setUiPropertyGroup, e3.uiPropertyGroup, "_uiPropertyGroup"), this._setOptionIfSet(this.setUiSingleItemSectionPropertyGroup, e3.uiSingleItemSectionPropertyGroup, "_uiSingleItemSectionPropertyGroup"), this._setOptionIfSet(this.setUiPropertyOrder, e3.uiPropertyOrder, "_uiPropertyOrder"), this._setOptionIfSet(this.setUiDisableOnOutOfService, e3.uiDisableOnOutOfService, "_uiDisableOnOutOfService"), e3.uiPropertyCardGroup && this.setUiPropertyCardGroup(e3.uiPropertyCardGroup.groupName, e3.uiPropertyCardGroup.cardHeaderField, e3.uiPropertyCardGroup.isCollapsible); + } + _setFacetsFromOptions(e3) { + this.facets && e3 && this.facets.setFromFacets(e3.facets); + } + _setOptionIfSet(e3, t3, i3) { + _.ParameterValidator.expectFunction(e3, () => p.ParameterInfo.createFunctionParameter(this.className, "_setOptionIfSet", "setter"), false), a.default.isUndefined(t3) ? i3 && (_.ParameterValidator.expectTrue(i3 in this, i3, "property exists on this", () => p.ParameterInfo.createFunctionParameter(this.className, "_setOptionIfSet", "propertyName"), false), this[i3] = void 0) : e3.call(this, t3); + } + get canCreateObjectInAction() { + return this._canCreateObjectInAction; + } + set canCreateObjectInAction(e3) { + this._canCreateObjectInAction = _.ParameterValidator.expectBool(e3, () => p.ParameterInfo.createPropertySet(this.className, "canCreateObjectInAction", "value")); + } + setCanCreateObjectInAction(e3) { + return this.canCreateObjectInAction = e3, this; + } + get featureConfigName() { + return this._featureConfigName; + } + set featureConfigName(e3) { + this._featureConfigName = _.ParameterValidator.expectFeatureConfigName(e3, () => p.ParameterInfo.createPropertySet(this.className, "featureConfigName", "value")); + } + setFeatureConfigName(e3) { + return this.featureConfigName = e3, this; + } + get antiFeatureConfigName() { + return this._antiFeatureConfigName; + } + set antiFeatureConfigName(e3) { + this._antiFeatureConfigName = _.ParameterValidator.expectFeatureConfigName(e3, () => p.ParameterInfo.createPropertySet(this.className, "antiFeatureConfigName", "value")); + } + setAntiFeatureConfigName(e3) { + return this.antiFeatureConfigName = e3, this; + } + get ininTestingField() { + return this._ininTestingField; + } + set ininTestingField(e3) { + this._ininTestingField = _.ParameterValidator.expectString(e3, () => p.ParameterInfo.createPropertySet(this.className, "ininTestingField", "value")); + } + setIninTestingField(e3) { + return this.ininTestingField = e3, this; + } + get uiPropertyGroup() { + return this._uiPropertyGroup; + } + set uiPropertyGroup(e3) { + this._uiPropertyGroup = _.ParameterValidator.expectString(e3, () => p.ParameterInfo.createPropertySet(this.className, "uiPropertyGroup", "value")); + } + setUiPropertyGroup(e3) { + return this.uiPropertyGroup = e3, this; + } + get uiPropertyCardGroup() { + var e3; + return null === (e3 = this._uiPropertyCardGroup$) || void 0 === e3 ? void 0 : e3.value; + } + set uiPropertyCardGroup(e3) { + _.ParameterValidator.expectString(e3.cardHeaderField, () => p.ParameterInfo.createPropertySet(this.className, "uiPropertyCardGroup", "value.cardHeaderField"), true), _.ParameterValidator.expectString(e3.groupName, () => p.ParameterInfo.createPropertySet(this.className, "uiPropertyCardGroup", "value.groupName")), this._uiPropertyCardGroup$ ? a.default.isEqual(this.uiPropertyCardGroup, e3) || this._uiPropertyCardGroup$.next(e3) : this._uiPropertyCardGroup$ = new s.BehaviorSubject(e3); + } + get uiPropertyCardGroup$() { + var e3; + return null === (e3 = this._uiPropertyCardGroup$) || void 0 === e3 ? void 0 : e3.asObservable(); + } + setUiPropertyCardGroup(e3, t3, i3 = true) { + return this.uiPropertyCardGroup = { groupName: e3, cardHeaderField: t3, isCollapsible: i3 }, this; + } + get uiSingleItemSectionPropertyGroup() { + return this._uiSingleItemSectionPropertyGroup; + } + set uiSingleItemSectionPropertyGroup(e3) { + this._uiSingleItemSectionPropertyGroup = e3; + } + setUiSingleItemSectionPropertyGroup(e3) { + return this.uiSingleItemSectionPropertyGroup = e3, this; + } + get uiPropertyOrder() { + return this._uiPropertyOrder; + } + set uiPropertyOrder(e3) { + this._uiPropertyOrder = _.ParameterValidator.expectInt(e3, () => p.ParameterInfo.createPropertySet(this.className, "uiPropertyOrder", "value")); + } + setUiPropertyOrder(e3) { + return this.uiPropertyOrder = e3, this; + } + get assumeOosIfTypeUnavailable() { + return this._assumeOosIfTypeUnavailable; + } + set assumeOosIfTypeUnavailable(e3) { + this._assumeOosIfTypeUnavailable = e3; + } + setAssumeOosIfTypeUnavailable(e3) { + return this.assumeOosIfTypeUnavailable = e3, this; + } + get uiDisableOnOutOfService() { + return this._uiDisableOnOutOfService; + } + set uiDisableOnOutOfService(e3) { + this._uiDisableOnOutOfService = e3; + } + setUiDisableOnOutOfService(e3) { + return this.uiDisableOnOutOfService = e3, this; + } + get uiLayout() { + return this._uiLayout; + } + set uiLayout(e3) { + a.default.isUndefined(e3) ? this._uiLayout = {} : (_.ParameterValidator.expectObject(e3, () => p.ParameterInfo.createPropertySet(this.className, "uiLayout", "value")), this._uiLayout = e3); + } + setUiLayout(e3) { + return this.uiLayout = e3, this; + } + get disallowedFunctionMap() { + return this._disallowedFunctionMap; + } + set disallowedFunctionMap(e3) { + if (a.default.isUndefined(e3)) return void (this._disallowedFunctionMap = void 0); + let t3; + _.ParameterValidator.expectObject(e3, () => p.ParameterInfo.createPropertySet(this.className, "disallowedFunctionMap", "value")), this._disallowedFunctionMap = {}; + const i3 = Object.keys(e3); + let n3 = i3.length; + for (; n3--; ) t3 = i3[n3], this._disallowedFunctionMap[t3.toLowerCase()] = e3[t3]; + } + get hasDisallowedFunctionMap() { + return !a.default.isUndefined(this._disallowedFunctionMap); + } + setDisallowedFunctionMap(e3) { + return this.disallowedFunctionMap = e3, this; + } + get isExpressionTypeNetworkObjectOptions() { + return false; + } + clone() { + return (0, l.clone)(this); + } + } + t2.BaseOptions = h, o.__decorate([(0, u.enumerable)(true), o.__metadata("design:type", Object), o.__metadata("design:paramtypes", [Object])], h.prototype, "featureConfigName", null), o.__decorate([(0, u.enumerable)(true), o.__metadata("design:type", Object), o.__metadata("design:paramtypes", [Object])], h.prototype, "antiFeatureConfigName", null), o.__decorate([(0, u.enumerable)(true), o.__metadata("design:type", String), o.__metadata("design:paramtypes", [Object])], h.prototype, "ininTestingField", null), o.__decorate([(0, u.enumerable)(true), o.__metadata("design:type", String), o.__metadata("design:paramtypes", [Object])], h.prototype, "uiPropertyGroup", null), o.__decorate([(0, u.enumerable)(true), o.__metadata("design:type", Object), o.__metadata("design:paramtypes", [Object])], h.prototype, "uiPropertyCardGroup", null), o.__decorate([(0, u.enumerable)(true), o.__metadata("design:type", Boolean), o.__metadata("design:paramtypes", [Object])], h.prototype, "uiSingleItemSectionPropertyGroup", null), o.__decorate([(0, u.enumerable)(true), o.__metadata("design:type", Number), o.__metadata("design:paramtypes", [Object])], h.prototype, "uiPropertyOrder", null), o.__decorate([(0, u.enumerable)(true), o.__metadata("design:type", Boolean), o.__metadata("design:paramtypes", [Object])], h.prototype, "assumeOosIfTypeUnavailable", null), o.__decorate([(0, u.enumerable)(true), o.__metadata("design:type", Boolean), o.__metadata("design:paramtypes", [Object])], h.prototype, "uiDisableOnOutOfService", null), o.__decorate([(0, u.enumerable)(true), o.__metadata("design:type", "function" == typeof (n2 = void 0 !== d.IUiLayout && d.IUiLayout) ? n2 : Object), o.__metadata("design:paramtypes", ["function" == typeof (r2 = void 0 !== d.IUiLayout && d.IUiLayout) ? r2 : Object])], h.prototype, "uiLayout", null), o.__decorate([(0, u.enumerable)(true), o.__metadata("design:type", Object), o.__metadata("design:paramtypes", [Object])], h.prototype, "disallowedFunctionMap", null); + }, 42473: (e2, t2, i2) => { + "use strict"; + const n2 = i2(31635), r2 = i2(78513), o = i2(24235), a = i2(12179), s = n2.__importDefault(i2(97891)), l = n2.__importDefault(i2(25234)), u = i2(80428), d = i2(47957); + class c extends l.default { + static get managedProperties() { + return [{ audio: true, options: o.AudioViewModelOptions.create((e3) => e3.setIninTestingField("playAudioOnSilenceAudio").setLabel(d.audio.audioLabel).setIsOptional(false).setDisallowedFunctionMap({ AudioPlayBackOptions: true }).setUiPropertyOrder(0)), property: "audio" }, { label: d.playAudioOnSilence.allowedRepeatCount, options: r2.ExpressionTypeIntegerOptions.create((e3) => e3.setDefaultText("5").setAllowFlowLevelDefault(true).setDescriptionInfo(void 0, d.playAudioOnSilence.allowedRepeatCountDescription).setScriptingPropertyName("allowedRepeatCount").setIninTestingField("playAudioOnSilenceAllowedRepeatCount").setUiPropertyOrder(40).facets.setMinInt(0, true).setMaxInt(5, true)), property: "allowedRepeatCount", type: u.expressionTypeNames.integer }, { label: d.playAudioOnSilence.actualRepeatCount, options: r2.ExpressionTypeIntegerOptions.create((e3) => e3.setIninTestingField("playAudioOnSilenceActualRepeatCount").setIsOptional(true).setAsOutput().setUiPropertyOrder(41)), property: "actualRepeatCount", type: u.expressionTypeNames.integer }]; + } + constructor(e3, t3) { + super(e3), this._loadModel(t3); + } + } + c.info = s.default.createActionInfo({ actionClass: c, canBeInTask: true, helpTopic: a.helpTopics.actions.playAudioOnSilence, modelClass: i2(30825), name: d.actions.playAudioOnSilence, scriptingName: "ArchActionPlayAudioOnSilence" }), t2.A = c; + }, 42515: (e2, t2, i2) => { + const n2 = i2(45214), r2 = i2(7401); + function o() { + Object.defineProperties(this, { _voiceProcessingPrompt: { writable: true }, _initialPlaybackDelay: { writable: true }, _minimumPlaybackTime: { writable: true } }), this.engineVersion = void 0, this.nluDomainId = void 0, this.nluDomainVersionId = void 0, this.surveyFormInfo = void 0, this.virtualAgentEnabled = void 0, this.agenticVirtualAgentEnabled = void 0, this.voiceProcessingPrompt = void 0, this.initialPlaybackDelay = void 0, this.minimumPlaybackTime = void 0, o.baseConstructor.apply(this, arguments); + } + n2.extend(o, "BotFlowSettings"), Object.defineProperties(o.prototype, { pasteReIdOrRename: { value: function(e3) { + o._super.pasteReIdOrRename.apply(this, arguments); + } }, pasteResolveOldToNewValues: { value: function(e3) { + o._super.pasteResolveOldToNewValues.apply(this, arguments); + } }, voiceProcessingPrompt: { enumerable: true, get: function() { + return this._voiceProcessingPrompt; + }, set: function(e3) { + this._voiceProcessingPrompt = this.reviveItem(e3, r2); + } }, initialPlaybackDelay: { enumerable: true, get: function() { + return this._initialPlaybackDelay; + }, set: function(e3) { + this._initialPlaybackDelay = this.reviveItem(e3, r2); + } }, minimumPlaybackTime: { enumerable: true, get: function() { + return this._minimumPlaybackTime; + }, set: function(e3) { + this._minimumPlaybackTime = this.reviveItem(e3, r2); + } } }), e2.exports = o; + }, 42590: (e2, t2, i2) => { + const n2 = i2(1735).default; + function r2() { + r2.baseConstructor.apply(this, arguments); + } + i2(22124).extend(r2, "SurveyFormList"), Object.defineProperties(r2.prototype, { entities: { enumerable: true, get: function() { + return this._entities; + }, set: function(e3) { + this._entities = this.reviveArray(e3, n2); + } } }), e2.exports = r2; + }, 42607: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.WorktypeList = void 0; + const n2 = i2(31635), r2 = i2(80295), o = n2.__importDefault(i2(48019)), a = i2(16127); + class s extends a.PagedListByCursor { + constructor(e3) { + super(e3); + } + get entities() { + return this._entities; + } + set entities(e3) { + this._entities = this.reviveArray(e3, o.default); + } + } + t2.WorktypeList = s, n2.__decorate([(0, r2.enumerable)(true), n2.__metadata("design:type", Array), n2.__metadata("design:paramtypes", [Array])], s.prototype, "entities", null); + }, 42660: (e2, t2, i2) => { + const n2 = i2(58649), r2 = i2(90700), o = i2(36019).default; + function a() { + } + const s = new a(); + a.prototype.getContactList = o.request("GET", "{public-api.apps}/api/v2/outbound/contactlists/{id}", n2), a.prototype.getContactListsDivisionViews = o.request("GET", "{public-api.apps}/api/v2/outbound/contactlists/divisionViews", r2), s.getContactListsDivisionViews.addOptions({ ignoreBadResponse: true }), e2.exports = s; + }, 42685: (e2, t2, i2) => { + function n2() { + n2.baseConstructor.apply(this, arguments); + } + i2(11475).extend(n2, "VoiceSnippetVariable", true), Object.defineProperties(n2.prototype, { typeIdentifier: { writable: true } }), e2.exports = n2; + }, 42699: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635); + i2(41330); + const r2 = n2.__importDefault(i2(21413)), o = n2.__importDefault(i2(54521)), a = n2.__importDefault(i2(31758)), s = n2.__importDefault(i2(2414)), l = n2.__importDefault(i2(35859)), u = n2.__importDefault(i2(61427)), d = n2.__importDefault(i2(46292)), c = { dataTypes: r2.default, environment: o.default, enums: a.default, factories: s.default, languages: l.default, services: d.default, viewModels: u.default }; + try { + window && (window.__architectScripting__ = c); + } catch (e3) { + } + e2.exports = c; + }, 42714: (e2, t2, i2) => { + const n2 = i2(35317).exec, r2 = i2(35317).spawn, o = { darwin: function(e3) { + return r2("open", [e3]); + }, win32: function(e3) { + return n2('start "" "' + e3 + '"'); + }, default: function(e3) { + return r2("xdg-open", [e3]); + } }, a = o[process.platform] || o.default; + t2.open = function(e3, t3) { + const i3 = a(e3); + let n3 = ""; + i3.stderr.setEncoding("utf8"), i3.stderr.on("data", function(e4) { + n3 += e4; + }), i3.stderr.on("end", function() { + if (n3.length > 0) { + const e4 = new Error(n3); + if (!t3) throw e4; + t3(e4); + } else t3 && t3(); + }); + }; + }, 42767: (e2, t2) => { + "use strict"; + function i2(e3, t3, i3) { + return { kind: e3, value: t3, error: i3 }; + } + Object.defineProperty(t2, "__esModule", { value: true }), t2.createNotification = t2.nextNotification = t2.errorNotification = t2.COMPLETE_NOTIFICATION = void 0, t2.COMPLETE_NOTIFICATION = i2("C", void 0, void 0), t2.errorNotification = function(e3) { + return i2("E", void 0, e3); + }, t2.nextNotification = function(e3) { + return i2("N", e3, void 0); + }, t2.createNotification = i2; + }, 42974: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.AssignedCustomerSegmentType = void 0; + const n2 = i2(80428), r2 = i2(94765), o = i2(72012); + class a extends r2.ExpressionType { + constructor(e3, t3, i3) { + super(e3, t3, i3); + } + get className() { + return "AssignedCustomerSegmentType"; + } + createExpressionOptionClass() { + return new o.ExpressionTypeAssignedCustomerSegmentOptions(); + } + get supportsLiteralEditor() { + return false; + } + } + t2.AssignedCustomerSegmentType = a, a.typeIdentifier = n2.expressionTypeNames.assignedCustomerSegment; + }, 42989: (e2, t2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.allSequenceItemTypes = t2.blank = t2.expression = t2.data = t2.prompt = t2.tts = void 0, t2.tts = 0, t2.prompt = 1, t2.data = 2, t2.expression = 3, t2.blank = 4, t2.allSequenceItemTypes = [t2.tts, t2.prompt, t2.data, t2.expression, t2.blank]; + }, 43011: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.userPromptListManager = t2.systemPromptListManager = void 0, t2.getItem = function(e3) { + return a.userPromptListManager.getItem(e3) || o.systemPromptListManager.getItem(e3); + }, t2.getItemByName = function(e3) { + return a.userPromptListManager.getItemByName(e3) || o.systemPromptListManager.getItemByName(e3); + }, t2.getBulkPromptContainers = function(e3, t3) { + const i3 = []; + return e3 && e3.length > 0 && i3.push(a.userPromptListManager.getBulkPromptContainers(e3)), t3 && t3.length > 0 && i3.push(o.systemPromptListManager.getBulkPromptContainers(t3)), Promise.all(i3); + }, t2.getAllPrompts = function() { + return n2.default.extend(n2.default.clone(a.userPromptListManager.items), n2.default.clone(o.systemPromptListManager.items)); + }, t2.refreshSinglePrompt = function(e3, t3) { + return t3 ? o.systemPromptListManager.refreshSinglePrompt(e3) : a.userPromptListManager.refreshSinglePrompt(e3); + }, t2.search = function(e3, t3, i3, n3) { + const o2 = new r2.PromiseDefer(), a2 = []; + return a2.push(this.userPromptListManager.search(e3, null, t3, i3, n3)), a2.push(this.systemPromptListManager.search(e3, null, t3, i3, n3)), Promise.all(a2).then((e4) => { + 2 === e4.length ? o2.resolve(e4[0].concat(e4[1])) : o2.reject(); + }, (e4) => { + o2.reject(e4); + }), o2.promise; + }; + const n2 = i2(31635).__importDefault(i2(92140)), r2 = i2(52023), o = i2(97951); + Object.defineProperty(t2, "systemPromptListManager", { enumerable: true, get: function() { + return o.systemPromptListManager; + } }); + const a = i2(23293); + Object.defineProperty(t2, "userPromptListManager", { enumerable: true, get: function() { + return a.userPromptListManager; + } }); + }, 43056: (e2) => { + !(function() { + "use strict"; + var t2, i2, n2 = Function("return this")(), r2 = "Boolean Number String Function Array Date RegExp Object".split(" "), o = {}; + for (t2 in r2) r2.hasOwnProperty(t2) && (i2 = r2[t2], o["[object " + i2 + "]"] = i2.toLowerCase()); + function a(e3) { + return null == e3 ? String(e3) : o[Object.prototype.toString.call(e3)] || "object"; + } + function s(e3) { + var t3, i3; + if ("object" === a(e3)) { + for (t3 in e3) if (void 0 !== (i3 = e3[t3]) && "function" !== a(i3)) return false; + } + return true; + } + String.prototype.entityify || (String.prototype.entityify = function() { + return this.replace(/&/g, "&").replace(//g, ">"); + }), String.prototype.quote || (String.prototype.quote = function() { + var e3, t3, i3 = this.length, n3 = '"'; + for (t3 = 0; t3 < i3; t3 += 1) if ((e3 = this.charAt(t3)) >= " ") "\\" !== e3 && '"' !== e3 || (n3 += "\\"), n3 += e3; + else switch (e3) { + case "\b": + n3 += "\\b"; + break; + case "\f": + n3 += "\\f"; + break; + case "\n": + n3 += "\\n"; + break; + case "\r": + n3 += "\\r"; + break; + case " ": + n3 += "\\t"; + break; + default: + e3 = e3.charCodeAt(), n3 += "\\u00" + Math.floor(e3 / 16).toString(16) + (e3 % 16).toString(16); + } + return n3 + '"'; + }), String.prototype.supplant || (String.prototype.supplant = function(e3) { + return this.replace(/{([^{}]*)}/g, function(t3, i3) { + var n3 = e3[i3]; + return "string" == typeof n3 || "number" == typeof n3 ? n3 : t3; + }); + }), String.prototype.trim || (String.prototype.trim = function() { + return this.replace(/^\s*(\S*(?:\s+\S+)*)\s*$/, "$1"); + }), e2.exports = { typeOf: a, isEmpty: s }, n2.typeOf = n2.typeOf || a, n2.isEmpty = n2.isEmpty || s; + })(); + }, 43080: (e2, t2, i2) => { + "use strict"; + const n2 = i2(31635), r2 = n2.__importDefault(i2(92140)), o = i2(17604), a = i2(96618), s = n2.__importDefault(i2(41510)), l = i2(90858), u = i2(80428), d = i2(11013), c = i2(49892), p = i2(81516), _ = i2(99469), h = n2.__importDefault(i2(27203)), m = i2(25965), g = i2(71528), f = n2.__importStar(i2(36781)), T = i2(75669), y = i2(96546), S = i2(1115), A = i2(12179), N = i2(12457), O = n2.__importDefault(i2(97891)), I = i2(54057), v = i2(28803), C = i2(87870), b = i2(24338), E = n2.__importDefault(i2(80570)), R = i2(60609), w = i2(60609), D = i2(60609), P = i2(47957), M = i2(21733); + class F extends E.default { + constructor(e3, t3) { + super(e3), this.responseManager = m.messagingTemplateResponseManager, this.libraryManager = g.responseLibraryManager, this._loadModel(t3), this.noInput.options.setBuilderLanguagesSequenceConfig(l.messagingTemplateSequences.noInputDigitalBotSequence), this.noMatch.options.setBuilderLanguagesSequenceConfig(l.messagingTemplateSequences.noMatchDigitalBotSequence); + } + initializeDesignTime() { + super.initializeDesignTime(), this.addAutoCleanedUpEventSinkWatch(f.valueChanged, this.library, () => { + this.messagingTemplate.reset(), this._updatePropertiesOOS(); + }), this.addAutoCleanedUpEventSinkWatch(f.expressionValueChanged, this.messagingTemplateType, () => { + this.messagingTemplate.reset(), this._updatePropertiesOOS(); + }), this.addAutoCleanedUpEventSinkWatch(f.valueChanged, this.messagingTemplate, () => { + this._handleMessagingTemplateSelectionChanged(); + }); + } + get supportsCustomOutputPaths() { + return true; + } + get responseLibrary() { + return this.model.responseLibrary; + } + set responseLibrary(e3) { + this.model.responseLibrary = e3; + } + get responseId() { + return this.messagingTemplateId; + } + get selectedResponse() { + if (this.responseId) return this.responseManager.getItem(this.responseId); + } + get selectedResponseLibrary() { + var e3; + if ((null === (e3 = this.responseLibrary) || void 0 === e3 ? void 0 : e3.id) && this.libraryManager) return this.libraryManager.getItem(this.responseLibrary.id); + } + static get branchInfo() { + return [...h.default.successFailure, h.default.maxNoInputsOptional, h.default.maxNoMatchesOptional]; + } + setNewInstanceDefaults(e3) { + super.setNewInstanceDefaults(e3), this.setNewInstanceNoInputText(M(this.parentFlow.defaultLanguage).messagingTemplate.noInputDigitalBot), this.setNewInstanceNoMatchText(M(this.parentFlow.defaultLanguage).messagingTemplate.noMatchDigitalBot); + } + getDetails() { + var e3; + if ((null === (e3 = this.responseLibrary) || void 0 === e3 ? void 0 : e3.name) && this.messagingTemplateName) return new N.ActionDetails([P.getResponse.library, P.messagingTemplate.messagingTemplateLabel], [this.responseLibrary.name, this.messagingTemplateName]); + } + static get managedProperties() { + return [{ createDetails: C.NoteActionProperty.createCreateDetails((0, o.sprintf)(s.default.generic.twoStringsSpaceSeparator, P.messagingTemplate.messagingTemplateChannelNote, P.generic.usingOnOtherChannelsFailurePath), "info", "messagingTemplateChannelNote"), options: c.ExpressionTypelessOptions.create((e3) => e3.setUiPropertyOrder(1)), property: "channelAlert", yamlOptions: F.createYamlOptions("channelAlert", (e3) => e3.setSkipProperty(true)) }, { property: "messagingTemplateType", label: P.messagingTemplate.messagingTemplateTypeLabel, type: u.expressionTypeNames.string, supportedFlowTypes: [a.flowTypes.flowTypeDigitalBot], options: p.ExpressionTypeStringOptions.create((e3) => e3.setUiPropertyOrder(2).setDescriptionInfo(P.messagingTemplate.messagingTemplateTypeLabel, P.messagingTemplate.messagingTemplateTypeDescription).setAllowModeLiteralOnly().setDefaultText(R.CannedResponseMessageTemplateType.carousel).facets.setAllowableValues(D.cannedResponseMessageTemplateTypeValues).setUseButtonSwitcher(true)), yamlOptions: F.createYamlOptions("messagingTemplateType", (e3) => e3.setSerializeOutOfService(true)) }, { label: P.getResponse.library, options: _.ManagedPropertyOptions.create((e3) => e3.setIninTestingField("library").setUiPropertyOrder(3).setDropdownPlaceholder(P.form.formActionSelectLibrary).setDescriptionInfo(P.getResponse.library, P.messagingTemplate.messagingTemplateActionLibraryDescription)), property: "library", createDetails: b.ResponseLibraryProperty.createCreateDetails(P.messagingTemplate.messagingTemplateResponseLibraryDoesNotContainMessagingTemplate, P.messagingTemplate.messagingTemplateNoResponseLibrariesContainMessagingTemplate, P.form.formActionMustSelectLibrary), yamlOptions: F.createYamlOptions("library", (e3) => e3) }, { label: P.messagingTemplate.messagingTemplateLabel, options: _.ManagedPropertyOptions.create((e3) => e3.setDescriptionInfo(P.messagingTemplate.messagingTemplateLabel, (0, o.sprintf)(s.default.generic.twoStringsSpaceSeparator, P.cannedResponses.cannedResponseTypeMessageTemplateDescription, P.generic.pickOneToSend)).setIninTestingField("messagingTemplate").setUiPropertyOrder(4).setDropdownPlaceholder(P.messagingTemplate.selectMessagingTemplate)), property: "messagingTemplate", createDetails: v.NetworkBasedActionProperty.createCreateDetails("messagingTemplateId", "messagingTemplateName", m.messagingTemplateResponseManager, P.messagingTemplate.messagingTemplateActionMustSelectMessagingTemplate, P.messagingTemplate.messagingTemplateNotFound, "library", (e3) => e3.action._getAdditionalSearchParams(), (e3, t3) => e3.action._searchFilterCallback(t3)), yamlOptions: F.createYamlOptions("messagingTemplate", (e3) => e3.setSkipProperty(true)) }, { label: P.cardsAndCars.selectionResultLabel, options: p.ExpressionTypeStringOptions.create((e3) => e3.setAsOutput().setUiPropertyOrder(6).setIninTestingField("selectionResult").setDescriptionInfo(P.cardsAndCars.selectionResultLabel, P.messagingTemplate.messagingTemplateSelectionResultDescription)), property: "selectionResult", yamlOptions: F.createYamlOptions("selectionResult", (e3) => e3.setPropertyName("valueSelectionResult")), type: u.expressionTypeNames.string }, { createDetails: C.NoteActionProperty.createCreateDetails(P.getResponse.noSubstitutions, "info", "noSubstitutionsNote"), options: c.ExpressionTypelessOptions.create((e3) => e3.setUiPropertyOrder(7)), property: "noSubstitutionsNote" }, { label: P.getResponse.substitutions, options: c.ExpressionTypelessOptions.create((e3) => e3.setUiPropertyOrder(10).setIsOptional(true)), dataList: true, property: "substitutions" }]; + } + _getAdditionalSearchParams() { + var e3, t3, i3; + if (null === (e3 = this.responseLibrary) || void 0 === e3 ? void 0 : e3.id) { + const e4 = (0, I.createResponseLibrarySearchFilters)(this.responseLibrary.id); + return (null === (t3 = this.messagingTemplateType) || void 0 === t3 ? void 0 : t3.text) === R.CannedResponseMessageTemplateType.carousel && e4.push({ name: "templateStatus", operator: "IN", values: ["APPROVED"] }), (null === (i3 = this.messagingTemplateType) || void 0 === i3 ? void 0 : i3.text) === R.CannedResponseMessageTemplateType.standard && e4.push({ name: "messagingTemplate", operator: "NOTEQUALS", values: ["carousel"] }, { name: "messagingTemplate", operator: "EQUALS", values: ["whatsApp"] }), { filters: e4 }; + } + } + _searchFilterCallback(e3) { + var t3, i3, n3, o2; + if (e3.responseType !== w.CannedResponseType.messagingTemplate) return false; + if (!r2.default.findWhere(e3.libraries, { id: null === (t3 = this.responseLibrary) || void 0 === t3 ? void 0 : t3.id })) return false; + const a2 = !!(null === (n3 = null === (i3 = e3.messagingTemplate) || void 0 === i3 ? void 0 : i3.whatsApp) || void 0 === n3 ? void 0 : n3.carousel); + switch (null === (o2 = this.messagingTemplateType) || void 0 === o2 ? void 0 : o2.text) { + case R.CannedResponseMessageTemplateType.carousel: + return a2; + case R.CannedResponseMessageTemplateType.standard: + return !a2; + default: + return false; + } + } + _updatePropertiesOOS() { + var e3, t3, i3, n3; + super._updatePropertiesOOS(), this.question.outOfService = true, this.messagingTemplate.outOfService = !this.responseLibrary, this.selectionResult.outOfService = !this.messagingTemplateId, this.noSubstitutionsNote.outOfService = (null === (t3 = null === (e3 = this.substitutions) || void 0 === e3 ? void 0 : e3.items) || void 0 === t3 ? void 0 : t3.length) > 0 || !this.messagingTemplateId, this.substitutions && (this.substitutions.outOfService = (null === (n3 = null === (i3 = this.substitutions) || void 0 === i3 ? void 0 : i3.items) || void 0 === n3 ? void 0 : n3.length) < 1 || !this.messagingTemplateId); + } + _handleMessagingTemplateSelectionChanged() { + return n2.__awaiter(this, void 0, void 0, function* () { + this.messagingTemplateId, this._mergeSchemaProperties(), this._updatePropertiesOOS(), this.substitutions.orderChanged(), (0, S.validateAction)(this, void 0, true); + }); + } + _mergeSchemaProperties() { + const e3 = this.selectedResponse; + (null == e3 ? void 0 : e3.substitutions) ? this.responseManager.mergeSchemaProperties(e3.substitutions, this.substitutions) : this.substitutions.destroyChildren(); + } + get selectedResponseNotInResponseLibraryMessage() { + var e3; + if (!this.responseId) return ""; + const t3 = this.selectedResponse; + return t3 && (null === (e3 = t3.libraries) || void 0 === e3 ? void 0 : e3.length) > 0 ? P.getResponse.responseLibraryDoesNotContainResponse : P.getResponse.noResponseLibrariesContainResponse; + } + get isSelectedResponseInSelectedResponseLibrary() { + return !(!this.selectedResponse || !this.selectedResponseLibrary || r2.default.isUndefined(r2.default.find(this.selectedResponse.libraries, { id: this.selectedResponseLibrary.id }))); + } + search(e3) { + super.search(e3), this.responseLibrary.name && e3.checkText(this, this.responseLibrary.name, P.getResponse.library); + } + validate(e3) { + e3.isDeep && this.selectedResponse && (this._mergeSchemaProperties(), this.responseManager.addItemToFlowMetadata(this, this.messagingTemplateName, this.messagingTemplateId)), this.responseLibrary && (this.selectedResponseLibrary ? this.selectedResponse && !this.isSelectedResponseInSelectedResponseLibrary && this.selectedResponseNotInResponseLibraryMessage && e3.addWarning(this, this.selectedResponseNotInResponseLibraryMessage) : e3.addWarning(this, P.getResponse.responseLibraryNotFound)), super.validate(e3); + } + _preDestroy() { + super._preDestroy(), this.responseManager.tryRemoveItemFromFlowMetadata(this, this.messagingTemplateId); + } + postProcessYamlConfig(e3, t3, i3) { + var n3; + if (!this.messagingTemplateName) return false; + const o2 = (null === (n3 = this.responseLibrary) || void 0 === n3 ? void 0 : n3.name) || T.unknownLibrary; + e3.library = {}; + const a2 = (e3.library[o2] = { messagingTemplate: {} }).messagingTemplate[this.messagingTemplateName] = {}; + return e3.substitutions ? r2.default.moveAndDeleteProperty(e3, a2, "substitutions") : r2.default.ensureYamlNoneTrue(a2), true; + } + setMessagingTemplateDataAsync(e3) { + return n2.__awaiter(this, void 0, void 0, function* () { + this.messagingTemplate.setValue(e3), yield this.responseManager.getSubstitutionInputs(e3), this._mergeSchemaProperties(), this._updatePropertiesOOS(); + }); + } + } + F.info = O.default.createActionInfo({ actionClass: F, canBeInTask: true, helpTopic: A.helpTopics.actions.sendDigitalContent, modelClass: d.SendDigitalContentActionModel, name: P.actions.sendDigitalContent, scriptingName: "ArchActionSendDigitalContent", supportsUtteranceHistoricalData: true, supportedSessionSources: y.whatsAppOnly }), t2.A = F; + }, 43096: (e2) => { + e2.exports = {}; + }, 43190: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(81574)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "externalContact"; + } + get id() { + } + get createDateTimeUtc() { + } + get modifyDateTimeUtc() { + } + get kind() { + } + get divisionId() { + } + get externalOrganization() { + } + get facebookInfo() { + } + get firstName() { + } + get middleName() { + } + get lastName() { + } + get lineInfo() { + } + get salutation() { + } + get title() { + } + get twitterInfo() { + } + get whatsAppInfo() { + } + get workPhone() { + } + get cellPhone() { + } + get homePhone() { + } + get otherPhone() { + } + get workEmail() { + } + get personalEmail() { + } + get otherEmail() { + } + get address() { + } + get surveyOptOut() { + } + get externalSystemUrl() { + } + get type() { + } + get instagramInfo() { + } + get externalIdInfo() { + } + get appleInfo() { + } + get canonicalContactId() { + } + get mergedFrom() { + } + get mergedTo() { + } + get mergeSet() { + } + get customFields() { + } + get displayTypeName() { + return "ArchValueExternalContact"; + } + get isArchValueExternalContact() { + return true; + } + } + t2.default = r2; + }, 43212: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.BaseConfigurationListViewModel = void 0; + const n2 = i2(55299), r2 = i2(80295); + class o extends n2.BaseClass { + constructor(e3) { + super(), this.isFlowCachedVersion = false, (0, r2.makeUnenumerable)(this, "isFlowCachedVersion"), this.model = e3; + } + get model() { + return this._model; + } + set model(e3) { + this._model = e3; + } + } + t2.BaseConfigurationListViewModel = o; + }, 43221: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importDefault(i2(92140)), o = n2.__importDefault(i2(52800)), a = n2.__importDefault(i2(30231)), s = i2(55909), l = i2(33951), u = i2(69675), d = "BuilderValidationResultsOrganizer"; + class c { + constructor(e3) { + Object.defineProperties(this, { _builderViewModel: { value: e3, writable: true, enumerable: false }, _contextBuilderPartContainerViewModel: { writable: true, enumerable: false }, _contextIsContainerRelated: { value: false, writable: true, enumerable: false }, _contextIsBuilderPartDefRelated: { value: false, writable: true, enumerable: false }, _objectIdsToValidationResults: { value: {}, writable: true, enumerable: false } }); + } + static create(e3) { + return new c(e3); + } + _addResult(e3, t3, i3) { + if (l.ParameterValidator.expectObject(e3, () => s.ParameterInfo.createFunctionParameter(d, "_addResult", "builderObjectViewModel")), r2.default.isUndefined(e3)) return; + let n3; + if (e3.isBaseBuilderViewModel) { + if (e3.id !== this._builderViewModel.id) return null; + n3 = o.default.createForBuilder(i3, t3, this._builderViewModel, this._contextIsContainerRelated); + } else if (e3.isContainerPart) { + if (e3.builderViewModel.id !== this._builderViewModel.id) return null; + n3 = o.default.createForBuilderPartContainer(i3, t3, this._builderViewModel, this._contextIsContainerRelated, e3); + } else if (e3.isBaseBuilderPartViewModel) { + if (e3.builderViewModel.id !== this._builderViewModel.id) return null; + n3 = o.default.createForBuilderPart(i3, t3, this._builderViewModel, this._contextIsContainerRelated, this._contextBuilderPartContainerViewModel, e3, this._contextIsBuilderPartDefRelated); + } + if (!n3) return; + let u2 = this._objectIdsToValidationResults[e3.id]; + return r2.default.isUndefined(u2) ? (u2 = new a.default(e3.id, [n3]), this._objectIdsToValidationResults[e3.id] = u2) : u2.addValidationResult(n3), n3; + } + get className() { + return d; + } + get isBuilderValidationResultsOrganizer() { + return true; + } + setContextBuilderPartContainer(e3) { + this._contextBuilderPartContainerViewModel = e3; + } + clearContextBuilderPartContainer() { + this._contextBuilderPartContainerViewModel = void 0; + } + setContextIsContainerRelated() { + this._contextIsContainerRelated = true; + } + clearContextIsContainerRelated() { + this._contextIsContainerRelated = false; + } + setContextIsBuilderPartDefRelated() { + this._contextIsBuilderPartDefRelated = true; + } + clearContextIsBuilderPartDefRelated() { + this._contextIsBuilderPartDefRelated = false; + } + getBuilderObjectResults(e3) { + const t3 = []; + return r2.default.each(this._objectIdsToValidationResults, (i3) => { + i3.getBuilderObjectResults(e3, t3); + }), t3.length ? a.default.create(e3, t3, true) : void 0; + } + getBuilderObjectResultsByType(e3, t3) { + const i3 = []; + return r2.default.each(this._objectIdsToValidationResults, (n3) => { + n3.getBuilderObjectResultsByType(e3, i3, t3); + }), i3.length ? a.default.create(e3, i3, true) : void 0; + } + getBuilderObjectErrors(e3) { + return this.getBuilderObjectResultsByType(e3, u.error); + } + getBuilderObjectInfos(e3) { + return this.getBuilderObjectResultsByType(e3, u.info); + } + getBuilderObjectWarnings(e3) { + return this.getBuilderObjectResultsByType(e3, u.warning); + } + getBuilderObjectHasResultOfType(e3, t3) { + return r2.default.any(this._objectIdsToValidationResults, (i3) => i3.getBuilderObjectHasResultOfType(e3, t3)); + } + getBuilderObjectHasError(e3) { + return this.getBuilderObjectHasResultOfType(e3, u.error); + } + getBuilderObjectHasInfo(e3) { + return this.getBuilderObjectHasResultOfType(e3, u.info); + } + getBuilderObjectHasWarning(e3) { + return this.getBuilderObjectHasResultOfType(e3, u.warning); + } + clearBuilderObject(e3) { + if (!r2.default.isString(e3) || 0 === e3.length) return; + const t3 = this._objectIdsToValidationResults[e3]; + r2.default.isUndefined(t3) || (delete this._objectIdsToValidationResults[e3], t3.destroy()); + } + addError(e3, t3) { + this._addResult(e3, t3, u.error); + } + addInfo(e3, t3) { + this._addResult(e3, t3, u.info); + } + addWarning(e3, t3) { + this._addResult(e3, t3, u.warning); + } + destroy() { + this.reset(), this._builderViewModel = void 0; + } + reset() { + this._contextBuilderPartContainerViewModel = void 0, r2.default.each(this._objectIdsToValidationResults, (e3) => { + e3.destroy(); + }), this._objectIdsToValidationResults = {}; + } + } + t2.default = c; + }, 43276: (e2, t2, i2) => { + "use strict"; + var n2 = i2(61897), r2 = i2(66852), o = i2(48905), a = i2(46894) || 0; + function s() { + return r2(a); + } + e2.exports = s, e2.exports.generate = s, e2.exports.seed = function(t3) { + return n2.seed(t3), e2.exports; + }, e2.exports.worker = function(t3) { + return a = t3, e2.exports; + }, e2.exports.characters = function(e3) { + return void 0 !== e3 && n2.characters(e3), n2.shuffled(); + }, e2.exports.isValid = o; + }, 43277: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(55299); + class r2 extends n2.BaseClass { + constructor(e3, t3, i3) { + super(), this.id = "", this.name = "", this.id = e3, this.name = t3 || e3, this.description = i3; + } + get className() { + return "NameIdViewModel"; + } + get displayName() { + return this.name; + } + get label() { + return this.name; + } + } + t2.default = r2; + }, 43278: (e2, t2, i2) => { + const { builderCategoryIds: n2 } = i2(73062), r2 = i2(79904).default, o = i2(81818).default, a = i2(41568).default, s = i2(5532).default, { builderPartIds: l } = i2(69149), u = i2(42290).default, d = i2(16958), c = i2(76486).default, p = i2(22599).default, _ = i2(98114).default, { flowTypes: h } = i2(96618), { globalTypes: m } = i2(14394), g = i2(61864).default, f = i2(96727).default, { literalValidatorNames: T } = i2(47875), { defaultWithNoLabel: y } = i2(93631); + e2.exports = { create: function() { + s.addBuilderPartDef(new u({ categoryIdentifierOrIdentifiers: n2.phoneNumber, description: d.builderParts.boolean.checkDialingCode.description, expressionDefs: [new c({ configureOptionsCallback: (e3) => e3.setDefaultToExpression(true).setDefaultText("ToPhoneNumber(Call.Ani)").setIninTestingField("phoneNumber"), expressionType: m.phoneNumber, label: d.builderParts.boolean.checkDialingCode.expressions.phoneNumber.label }), new c({ configureOptionsCallback: (e3) => e3.setDefaultToExpression(true).setDefaultText("System.Regions.US.dialingCode").setLiteralValidatorName(T.dialingCodes).setIninTestingField("phoneNumber"), expressionType: m.string, label: d.builderParts.boolean.checkDialingCode.expressions.dialingCode.label })], generators: { expressionGenerator: p.create().addFuncCall("If").addFuncCall("IsSet").addTokenReplacement(0).addFuncCallEnd().addFuncParameterSeparator().addTokenReplacement(0).addPropertyAccess("dialingCode").addOperatorEquals().addTokenReplacement(1).addFuncParameterSeparator().addTokenBooleanFalse().addFuncCallEnd().verifySprintfStringAndInitialize("If(IsSet(%1$s), %1$s.dialingCode == %2$s, false)") }, id: l.boolean.checkDialingCode, name: d.builderParts.boolean.checkDialingCode.name, resultExpressionType: m.boolean, restrictToFlowTypeOrTypes: h.flowTypesAllVxmlgen, version: 1 })), s.addBuilderPartDef(new u({ categoryIdentifierOrIdentifiers: n2.toolbar, description: d.builderParts.boolean.expression.description, expressionDefs: [new c({ configureOptionsCallback: (e3) => e3.setAllowModeExpressionOnly(true).setIninTestingField("booleanExpression"), expressionType: m.boolean, label: d.builderParts.boolean.expression.name })], viewId: y, generators: { expressionGenerator: f.singleTokenReplacementGenerator }, id: l.boolean.expression, icon: g.expression, name: d.builderParts.string.expression.name, resultExpressionType: m.boolean, version: 1 })), s.addBuilderPartDef(new u({ categoryIdentifierOrIdentifiers: n2.toolbar, description: d.builderParts.boolean.literal.description, expressionDefs: [new c({ configureOptionsCallback: (e3) => { + e3.setAllowModeLiteralOnly().setIninTestingField("booleanLiteral"); + }, expressionType: m.boolean, label: d.builderParts.boolean.literal.name })], viewId: y, generators: { expressionGenerator: f.singleTokenReplacementGenerator }, id: l.boolean.literal, icon: g.boolean, name: d.builderParts.boolean.literal.name, resultExpressionType: m.boolean, version: 1 })), s.addBuilderPartContainerDef(new r2({ categoryIdentifierOrIdentifiers: [n2.container, n2.email], description: d.builderParts.container.language.description, generators: { containerPartsGenerator: p.create().addLogicalAndParmGenerationBucket("builder_part", true).verifySprintfStringAndInitialize(""), languageCheckGenerator: p.create().addFuncCall("If").addFuncCall("AreEqual").addTokenBooleanTrue().addFuncParameterSeparator().addTokenReplacement(0).addFuncParameterSeparator().addTokenReplacement(1).addFuncCallEnd().addFuncParameterSeparator().addFuncCallParmGenerationBucket("part_generation", true).verifySprintfStringAndInitialize("If(AreEqual(true, %1$s, %2$s), ") }, id: l.boolean.container.language, name: d.builderParts.container.language.name, resultExpressionType: m.boolean, version: 1, restrictToFlowTypeOrTypes: _.getFlowTypesThatSupportLanguages() })), s.addBuilderPartContainerDef(new o({ categoryIdentifierOrIdentifiers: n2.container, description: d.builderParts.container.languageAndOutputMode.description, generators: { containerPartsGenerator: p.create().addFuncCallParmGenerationBucket("booleanValue", true).verifySprintfStringAndInitialize(""), wantContainerPartsGeneratorForSingleton: true }, id: l.boolean.container.languageAndOutputMode, name: d.builderParts.container.languageAndOutputMode.name, restrictToFlowTypeOrTypes: h.flowTypesAllCicero, resultExpressionType: m.boolean, version: 1, wantBucketOnSingleGeneration: true })), s.addBuilderPartContainerDef(new a({ categoryIdentifierOrIdentifiers: n2.container, description: d.builderParts.container.outputMode.description, generators: { containerPartsGenerator: p.create().addFuncCallParmGenerationBucket("booleanValue", true).verifySprintfStringAndInitialize(""), wantContainerPartsGeneratorForSingleton: true }, id: l.boolean.container.outputMode, name: d.builderParts.container.outputMode.name, restrictToFlowTypeOrTypes: h.flowTypesAllCicero, resultExpressionType: m.boolean, version: 1 })); + } }; + }, 43314: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importDefault(i2(92140)), o = i2(17604), a = i2(96618), s = i2(80428), l = n2.__importDefault(i2(85499)), u = i2(79516), d = i2(75755), c = i2(38725), p = n2.__importStar(i2(36781)), _ = n2.__importStar(i2(34475)), h = (i2(66663), i2(76692)), m = i2(79519), g = n2.__importStar(i2(14187)), f = n2.__importDefault(i2(26519)), T = n2.__importDefault(i2(67829)), y = n2.__importDefault(i2(71824)), S = i2(47957), A = i2(64420), N = i2(69946); + class O extends y.default { + constructor(e3) { + super(e3), this.errorHandling = new f.default(this), this._addToAutoManageSettings(this.errorHandling), this.workitemFlowSettings = new T.default(this), this._addToAutoManageSettings(this.workitemFlowSettings); + } + get _customFieldManager() { + return this._customFieldManagerVar || (this._customFieldManagerVar = new l.default({ dataTypeId: this.workitemFlowSettings.customFieldsDataTypeId, jsonSchemaIdBase: "customFields", jsonSchemaSource: m.CustomJsonNamespace.worktype, parentExpressionTypeName: s.expressionTypeNames.workitem, parentExpressionPropName: "customFields", schemaName: this.workitemFlowSettings.customFieldsSchemaName, flow: this, updateCallback: (e3) => this.workitemFlowSettings.customFieldsDataTypeId = e3.dataTypeId, resourcesOverride: { schemaNotUsable: S.workitem.worktypeSchemaNotUsableShort, schemaChanged: S.workitem.worktypeSchemaChanged, schemaChangeApplied: S.workitem.worktypeSchemaChangeApplied, schemaChangeNotApplied: S.workitem.worktypeSchemaChangeNotApplied, schemaChangeMoreRestrictive: S.workitem.worktypeSchemaChangeMoreRestrictiveShort, schemaGone: S.workitem.worktypeSchemaGoneShort } })), this._customFieldManagerVar; + } + get className() { + return "WorkitemFlowViewModel"; + } + get isWorkitemFlow() { + return true; + } + get type() { + return a.flowTypes.flowTypeWorkitem; + } + getFlowConfigurationClass() { + return N; + } + get overrideWireFlowConfiguration() { + return A.getWorkitemFlowConfiguration; + } + get overrideWireFlowVersionConfiguration() { + return A.getVersionWorkitemFlowConfiguration; + } + get worktypeSchemaChangeMoreRestrictive() { + return this._customFieldManager.schemaChangeMoreRestrictive; + } + get worktypeNoLongerHasSchema() { + return this._customFieldManager.noLongerHasSchema; + } + get worktypeSchemaNotUsable() { + return this._customFieldManager.schemaNotUsable; + } + buildConfiguration(e3, t3, i3) { + var n3; + return super.buildConfiguration(e3, t3, i3), (null == i3 ? void 0 : i3.isForFlowYaml) && (null === (n3 = this.workitemFlowSettings) || void 0 === n3 ? void 0 : n3.worktype) && (e3.worktype = { name: this.workitemFlowSettings.worktype.name }), e3; + } + get builtInVariableScopes() { + return [...super.builtInVariableScopes, g.scopes.workitem]; + } + get wrappedYamlName() { + return "workitem"; + } + _createInitialActions() { + return n2.__awaiter(this, void 0, void 0, function* () { + return this; + }); + } + setReceivedInitialValidationData() { + var e3, t3, i3, n3; + super.setReceivedInitialValidationData(), this._worktypeIsInvalid = void 0; + const r3 = null === (e3 = this.workitemFlowSettings.worktype) || void 0 === e3 ? void 0 : e3.id; + if (!r3) return; + const o2 = c.worktypeManager.getItem(r3); + this._worktypeIsInvalid = !o2 || !o2.resultIsOk, this._worktypeIsInvalid || ((null === (t3 = o2.schemas) || void 0 === t3 ? void 0 : t3.worktype) && o2.schemas.worktype.title && (null === (i3 = o2.schemaInfo) || void 0 === i3 ? void 0 : i3.id) && this._customSchemaNeedsUpdatingInFlowConfig(o2.schemas.worktype.title, o2.schemaInfo.id) && (this.workitemFlowSettings.setCustomFieldsSchemaNameAndId(o2.schemas.worktype.title, o2.schemaInfo.id), this.workitemFlowSettings.worktype.schema = { name: o2.schemas.worktype.title, id: o2.schemaInfo.id, selfUri: _.getPubApiWorktypeCustomAttributeSchemaUrl(o2.schemaInfo.id) }), this._customFieldManager.processValidationSchema(null === (n3 = o2.schemas) || void 0 === n3 ? void 0 : n3.worktype, this.initializeDesignTimeCalled), this._updateStatusesFromWorktype(o2, true), this._updateDateBasedRulesFromWorktype(o2, true)); + } + _initializeDesignTime() { + super._initializeDesignTime(), this._customFieldManager.processDeferredSchemaUpdate(true); + } + _updateStatusesFromWorktype(e3, t3) { + var i3, n3; + if (!this.workitemFlowSettings.worktype || this.parentFlow.isReadOnly) return; + const r3 = (null == e3 ? void 0 : e3.statuses) ? e3.statuses.sort((e4, t4) => e4.id > t4.id ? 1 : t4.id > e4.id ? -1 : 0) : [], o2 = (null === (n3 = null === (i3 = this.workitemFlowSettings) || void 0 === i3 ? void 0 : i3.worktype) || void 0 === n3 ? void 0 : n3.statuses) ? this.workitemFlowSettings.worktype.statuses.sort((e4, t4) => e4.id > t4.id ? 1 : t4.id > e4.id ? -1 : 0) : []; + JSON.stringify(r3) !== JSON.stringify(o2) && (this.workitemFlowSettings.worktype.statuses = [], e3.statuses.forEach((e4) => { + this.workitemFlowSettings.worktype.statuses.push({ id: e4.id, name: e4.name, category: e4.category }); + }), t3 && p.emitter.emit(p.alert, { message: S.workitem.worktypeStatusChangeApplied, type: u.AlertTypeEnum.info })); + } + _updateDateBasedRulesFromWorktype(e3, t3) { + var i3, n3; + if (!this.workitemFlowSettings.worktype || this.parentFlow.isReadOnly) return; + const r3 = (null === (n3 = null === (i3 = this.workitemFlowSettings) || void 0 === i3 ? void 0 : i3.worktype) || void 0 === n3 ? void 0 : n3.dateBasedRules) ? this.workitemFlowSettings.worktype.dateBasedRules.sort((e4, t4) => e4.name > t4.name ? 1 : t4.name > e4.name ? -1 : 0) : [], o2 = []; + r3.map((e4) => { + o2.push({ id: e4.id, name: e4.name, selfUri: e4.selfUri, type: e4.type }); + }); + const a2 = (null == e3 ? void 0 : e3.dateBasedRules) ? e3.dateBasedRules.sort((e4, t4) => e4.name > t4.name ? 1 : t4.name > e4.name ? -1 : 0) : [], s2 = []; + a2.map((e4) => { + s2.push({ id: e4.id, name: e4.name, selfUri: e4.selfUri, type: e4.type }); + }), JSON.stringify(s2) !== JSON.stringify(o2) && (this.workitemFlowSettings.worktype.dateBasedRules = s2, t3 && p.emitter.emit(p.alert, { message: S.workitem.worktypeDateBasedRulesUpdated, type: u.AlertTypeEnum.info })); + } + postScriptingCreateFlowAsync(e3) { + r2.default.isObject(e3) && (this.cachedCreationDataFromScripting = e3); + } + configureForWorktype(e3, t3) { + return n2.__awaiter(this, void 0, void 0, function* () { + var i3; + const n3 = (0, h.buildWorkitemFlowSettingConfig)(e3); + if (this.workitemFlowSettings.configureForWorktypeConfig(n3), this._updateStatusesFromWorktype(e3), e3.dateBasedRules && this._updateDateBasedRulesFromWorktype(e3), null === (i3 = e3.schema) || void 0 === i3 ? void 0 : i3.id) { + const t4 = yield d.schemaManager.apiCallSingle(e3.schema.id); + this._customFieldManager.tryUpdateParentExpressionPropTypeFromSchema(null == t4 ? void 0 : t4.jsonSchema, true); + } + this.createInitialActionsBasedOnWorktypeConfig = !!t3; + }); + } + validate(e3) { + super.validate(e3), this._worktypeIsInvalid ? e3.addError(this, S.workitem.worktypeInvalid) : (this._customFieldManager.getErrors().forEach((t3) => e3.addError(this, t3)), this._customFieldManager.getWarnings().forEach((t3) => e3.addWarning(this, t3))); + } + _customSchemaNeedsUpdatingInFlowConfig(e3, t3) { + var i3, n3, o2; + return e3 !== (null === (i3 = this.workitemFlowSettings) || void 0 === i3 ? void 0 : i3.customFieldsSchemaName) || t3 !== (null === (n3 = this.workitemFlowSettings) || void 0 === n3 ? void 0 : n3.customFieldsSchemaId) || r2.default.isEmpty(null === (o2 = this.workitemFlowSettings.worktype) || void 0 === o2 ? void 0 : o2.schema) && !!t3; + } + getComplexTypeLiteralValues(e3) { + if (e3.type.expressionType === s.expressionTypeNames.worktypeStatus) return this.workitemFlowSettings.getDisplayableListOfStatuses(); + } + preImport(e3) { + const t3 = Object.create(null, { preImport: { get: () => super.preImport } }); + return n2.__awaiter(this, void 0, void 0, function* () { + var i3, n3, r3, a2; + yield t3.preImport.call(this, e3); + const s2 = null === (i3 = null == e3 ? void 0 : e3.workitemFlowSettings) || void 0 === i3 ? void 0 : i3.worktype, l2 = null === (n3 = null == this ? void 0 : this.workitemFlowSettings) || void 0 === n3 ? void 0 : n3.worktype; + if ((null == s2 ? void 0 : s2.id) !== (null == l2 ? void 0 : l2.id)) { + if (!(null == s2 ? void 0 : s2.name) || !(null == l2 ? void 0 : l2.name)) throw S.flow.operations.load.importFailedWorktypeMismatchNoName; + throw (0, o.sprintf)(S.flow.operations.load.importFailedWorktypeMismatch, null !== (r3 = null == s2 ? void 0 : s2.name) && void 0 !== r3 ? r3 : "", null !== (a2 = null == l2 ? void 0 : l2.name) && void 0 !== a2 ? a2 : ""); + } + }); + } + } + t2.default = O; + }, 43346: (e2, t2, i2) => { + const n2 = i2(75458), r2 = i2(7401), { promoteExternalContactActionType: o } = i2(30801); + function a() { + Object.defineProperties(this, { _externalContact: { writable: true }, _externalContactId: { writable: true } }), a.baseConstructor.apply(this, arguments); + } + n2.extend(a, o, true), Object.defineProperties(a.prototype, { pasteReIdOrRename: { value: function(e3) { + a._super.pasteReIdOrRename.apply(this, arguments), this.externalResult.pasteReIdOrRename(e3), this.externalId.pasteReIdOrRename(e3); + } }, pasteResolveOldToNewValues: { value: function(e3) { + a._super.pasteResolveOldToNewValues.apply(this, arguments), this.externalResult.pasteResolveOldToNewValues(e3), this.externalId.pasteResolveOldToNewValues(e3); + } }, externalResult: { enumerable: true, get: function() { + return this._externalContact; + }, set: function(e3) { + this._externalContact = this.reviveItem(e3, r2); + } }, externalId: { enumerable: true, get: function() { + return this._externalContactId; + }, set: function(e3) { + this._externalContactId = this.reviveItem(e3, r2); + } } }), e2.exports = a; + }, 43368: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(84655)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "phoneNumber"; + } + get displayTypeName() { + return "ArchVariablePhoneNumber"; + } + get initialValue() { + return this._initialValue; + } + get isArchVariablePhoneNumber() { + return true; + } + } + t2.default = r2; + }, 43434: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.sample = void 0; + var n2 = i2(19724), r2 = i2(65212), o = i2(5717), a = i2(17214); + t2.sample = function(e3) { + return r2.operate(function(t3, i3) { + var r3 = false, s = null; + t3.subscribe(a.createOperatorSubscriber(i3, function(e4) { + r3 = true, s = e4; + })), n2.innerFrom(e3).subscribe(a.createOperatorSubscriber(i3, function() { + if (r3) { + r3 = false; + var e4 = s; + s = null, i3.next(e4); + } + }, o.noop)); + }); + }; + }, 43440: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.DivisionType = void 0; + const n2 = i2(31635), r2 = i2(14394), o = i2(71056), a = i2(54251), s = i2(27491), l = n2.__importDefault(i2(22226)), u = i2(80428), d = i2(94765); + class c extends d.ExpressionType { + constructor(e3, t3, i3) { + super(e3, t3, i3); + } + get className() { + return "DivisionType"; + } + createExpressionOptionClass() { + return new o.ExpressionTypeNetworkObjectOptions(this.isCollection); + } + get listManager() { + return a.divisionManager.getBriefManagerWithFallback(); + } + canConvertLitToExpression(e3) { + return s.expressionDataService.isFunctionTextAvailableForFlowTypeAndOperandTypes("FindDivision", e3, [r2.globalTypes.string]); + } + convertLitToExpression(e3, t3) { + return t3 && this.canConvertLitToExpression(e3) ? `FindDivision(${l.default.getQuotedExpressionStringLiteral(t3)})` : ""; + } + } + t2.DivisionType = c, c.typeIdentifier = u.expressionTypeNames.division; + }, 43452: (e2, t2, i2) => { + function n2() { + n2.baseConstructor.apply(this, arguments); + } + i2(11475).extend(n2, "CustomerIntentVariable", true), e2.exports = n2; + }, 43497: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importDefault(i2(92140)), o = i2(30801), a = n2.__importDefault(i2(11210)); + class s extends a.default { + constructor(e3, t3) { + super(e3), this._targetArchTask = void 0; + } + get _actionTypeId() { + return o.transferTaskActionType; + } + get displayTypeName() { + return this._scriptingName; + } + get isArchActionJumpToTask() { + return true; + } + get targetTask() { + if (r2.default.isUndefined(this._targetArchTask)) { + this._targetArchTask = null; + const e3 = this._coreActionViewModel.parentFlow; + if (e3 && r2.default.isArray(e3.tasks) && e3.tasks.length) { + const t3 = e3.tasks, i3 = r2.default.findWhere(t3, { id: this._getCoreViewModel().taskReference }); + i3 && (this._targetArchTask = this.coreFactory.createArchWrapper(i3)); + } + } + if (this._targetArchTask) return this._targetArchTask; + } + set targetTask(e3) { + if (!e3) return this._targetArchTask = null, this.logNote("setting the jump to task to null"), void this._coreActionViewModel.containerActionProperty.setReference(null); + this._checkItem(this._infoPropSet("archTaskTarget", "targetTask"), !e3 || !e3.isArchTask, "you cannot set the jump to target task to an object that is not an Architect task"); + const t3 = this._coreActionViewModel.containerActionProperty.getInvalidReferenceReason(e3.coreTaskViewModel); + this._checkItem(this._infoPropSet("archTaskTarget", "targetTask"), t3, `targetTask is not valid as the jump to target task, reason: ${t3}`), this._targetArchTask = e3, this.logNote("setting the jump to task to " + e3.logStr), this._coreActionViewModel.containerActionProperty.setReference(e3.coreTaskViewModel); + } + get taskInputs() { + if (this._getCoreViewModel().inputs) return this.coreFactory.createArchWrapper(this._getCoreViewModel().inputs); + } + } + t2.default = s; + }, 43520: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importDefault(i2(92140)), o = i2(30801), a = n2.__importDefault(i2(11210)); + class s extends a.default { + constructor(e3) { + super(e3); + } + get _actionTypeId() { + return o.changeStateActionType; + } + get displayTypeName() { + return this._scriptingName; + } + get isArchActionChangeState() { + return true; + } + get targetState() { + if (!this._targetArchState && this._getCoreViewModel().stateReference) { + const e3 = this._coreActionViewModel.parentFlow; + if (e3 && r2.default.isArray(e3.states) && e3.states.length) { + const t3 = e3.states, i3 = r2.default.findWhere(t3, { id: this._getCoreViewModel().stateReference }); + i3 && (this._targetArchState = this.coreFactory.createArchWrapper(i3)); + } + } + return this._targetArchState; + } + set targetState(e3) { + if (r2.default.isNull(e3) || r2.default.isUndefined(e3)) return this._targetArchState = null, this.logNote("setting the change state to null"), void this._coreActionViewModel.state.setReference(null); + const t3 = this._infoPropSet("archStateTarget", "targetState"); + this._checkItem(t3, !e3 || !e3.isArchState, "you cannot set the change state target to an object that is not an Architect state"), this._checkItemSameParentFlow(t3, this.parentFlow, e3.parentFlow); + const i3 = this._coreActionViewModel.state.getInvalidReferenceReason(e3.coreStateViewModel); + this._checkItem(this._infoPropSet("archStateTarget", "targetState"), i3, `targetState is not valid as the change state target, reason: ${i3}`), this._targetArchState = e3, this.logNote("setting the change state to " + e3.logStr), this._coreActionViewModel.state.setReference(e3.coreStateViewModel); + } + } + t2.default = s; + }, 43610: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.contactListManager = t2.ContactListManager = void 0; + const n2 = i2(31635).__importDefault(i2(47532)), r2 = i2(81801), o = i2(51416), a = i2(24032), s = i2(27395), l = i2(27862); + class u extends n2.default { + get requiredAuth() { + return r2.externalAuthorizations.authStrings.contactListsSearch; + } + get dependencyType() { + return l.ContactList; + } + _createItemViewModel(e3) { + return new o.ContactListViewModel(e3); + } + constructor() { + super(), this.topic = (0, a.getTopic)("contactListManager"), this._rawServerCache = {}, this.apiCallList = s.getContactListsDivisionViews, this.apiCallSingle = s.getContactList, this.dependencyContext = null, this.className = "ContactListManager", this.uiMetadataSectionName = "contactList", this.actionsForUsageSearch = [], this.actionPropertyForUsageSearch = "", this._initialize(); + } + } + t2.ContactListManager = u, t2.contactListManager = new u(); + }, 43629: (e2, t2, i2) => { + "use strict"; + const n2 = i2(31635), r2 = i2(96618), o = n2.__importDefault(i2(92140)), a = n2.__importDefault(i2(73198)), s = n2.__importStar(i2(63824)), l = n2.__importStar(i2(35295)), u = n2.__importDefault(i2(51499)), d = i2(79467), c = i2(81516), p = i2(99469), _ = i2(36128), h = n2.__importDefault(i2(27203)), m = i2(57467), g = i2(62902), f = i2(53482), T = n2.__importStar(i2(17498)), y = n2.__importStar(i2(10798)), S = n2.__importDefault(i2(4648)), A = i2(12179), N = n2.__importDefault(i2(97891)), O = i2(28803), I = n2.__importDefault(i2(88391)), v = i2(80428), C = i2(27862), b = i2(47957); + class E extends I.default { + constructor(e3, t3) { + super(e3, t3); + } + get botRunnableProperty() { + return this.botVersion; + } + get botCategoryProperty() { + return this.bot; + } + get botIntegrationProperty() { + return this.botIntegration; + } + static get branchInfo() { + return [h.default.failure]; + } + get botRunnableNetworkGetCall() { + return l.getDigitalBotConnectorBotVersion; + } + get isDigitalBotConnectorAction() { + return true; + } + static get managedProperties() { + return [{ dataList: true, isOutput: true, property: "errorBindings", yamlOptions: E.createYamlOptions("errorBindings", (e3) => e3.setPropertyName("failureOutputs")) }, { property: "botVersion", skipNetworkPropertyDependencyUpdate: true, createDetails: O.NetworkBasedActionProperty.createCreateDetails("versionId", "versionName", f.digitalBotConnectorVersionManager, b.botConnector.mustSelectDigitalBotVersion, b.botConnector.digitalBotVersionNotFound, "bot"), yamlOptions: E.createYamlOptions("botVersion", (e3) => e3.setSkipProperty(true)) }, { property: "bot", skipNetworkPropertyDependencyUpdate: true, createDetails: O.NetworkBasedActionProperty.createCreateDetails("botId", "botName", g.digitalBotConnectorManager, b.botConnector.mustSelectDigitalBotName, b.botConnector.digitalBotNameNotFound, "botIntegration"), yamlOptions: E.createYamlOptions("bot", (e3) => e3.setSkipProperty(true)) }, { property: "botIntegration", skipNetworkPropertyDependencyUpdate: true, createDetails: O.NetworkBasedActionProperty.createCreateDetails("botIntegrationId", "botIntegrationName", m.digitalBotConnectorIntegrationManager, b.botConnector.mustSelectDigitalBotIntegration, b.botConnector.digitalBotIntegrationNotFound, null), yamlOptions: E.createYamlOptions("botIntegration", (e3) => e3.setSkipProperty(true)) }, { property: "outputs", dataPairListCollection: true, isOutput: true, options: p.ManagedPropertyOptions.create((e3) => e3.setIsOptional(true)), yamlOptions: E.createYamlOptions("outputs", (e3) => e3.setPropertyName("intents")) }, { label: b.bot.followupResponseTimeoutLabel, type: v.expressionTypeNames.duration, options: d.ExpressionTypeDurationOptions.create((e3) => e3.setDefaultText(a.default.litDurationSixHours).setDescriptionInfo(b.bot.followupResponseTimeoutLabel, b.digitalBotConnector.followupResponseTimeoutDescription).setDurationStyle(s.durationStyles.fullDuration).setIninTestingField("followupResponseTimeoutExpression").facets.setMinDur(a.default.msPerMinute, true).setMaxDur(72 * a.default.msPerHour, true)), yamlOptions: E.createYamlOptions("followupResponseTimeout", (e3) => e3.setExportOrder(2)), property: "followupResponseTimeout" }, { label: b.botConnector.botResponseTimeoutLabel, type: v.expressionTypeNames.duration, options: d.ExpressionTypeDurationOptions.create((e3) => e3.setDefaultText(a.default.litDurationThirtySeconds).setDescriptionInfo(b.botConnector.botResponseTimeoutLabel, b.botConnector.botResponseTimeoutDescription).setDurationStyle(s.durationStyles.fullDuration).setIninTestingField("botResponseTimeoutExpression").facets.setMinDur(a.default.msPerSecond, true).setMaxDur(a.default.msPerMinute, true)), yamlOptions: E.createYamlOptions("botResponseTimeout", (e3) => e3.setExportOrder(3)), property: "botResponseTimeout" }, { label: b.botConnector.sessionTimeoutLabel, type: v.expressionTypeNames.duration, options: d.ExpressionTypeDurationOptions.create((e3) => e3.setDefaultText(a.default.litDurationTwelveHours).setDescriptionInfo(b.botConnector.sessionTimeoutLabel, b.botConnector.sessionTimeoutDescription).setDurationStyle(s.durationStyles.fullDuration).setIninTestingField("sessionTimeoutExpression").facets.setMinDur(a.default.msPerMinute, true).setMaxDur(72 * a.default.msPerHour, true)), yamlOptions: E.createYamlOptions("sessionTimeout", (e3) => e3.setExportOrder(4)), property: "sessionTimeout" }, { property: "sessionVariables", namedItems: true, isOutput: false, options: _.NameValuePairsOptions.create((e3) => e3.setNameLabel(b.updateVariables.variableName).setValueLabel(b.updateVariables.variableValue).setAllowLiteralModeOnlyOnName(true)), yamlOptions: E.createYamlOptions("sessionVariables", (e3) => e3.setWrappedCollectionItemName("sessionVariable").setExportOrder(5)) }, { property: "outputSessionVariables", namedItems: true, isOutput: true, options: _.NameValuePairsOptions.create((e3) => e3.setAllowLiteralModeOnlyOnName(true).setNameLabel(b.updateVariables.variableName).setValueLabel(b.getAttributes.variableLabel)), yamlOptions: E.createYamlOptions("outputSessionVariables", (e3) => e3.setWrappedCollectionItemName("outputSessionVariable").setNameValuePairShouldUseVariableProperty(true).setExportOrder(6)) }, { label: b.botConnector.inputTextLabel, type: v.expressionTypeNames.string, options: c.ExpressionTypeStringOptions.create((e3) => e3.setDescriptionInfo(b.botConnector.inputTextLabel, b.botConnector.inputTextDescription).setIninTestingField("inputTextExpression").setIsOptional(true)), optionsForSpecificFlowTypes: [{ flowTypes: [r2.flowTypes.flowTypeInboundShortMessage, r2.flowTypes.flowTypeInQueueShortMessage], options: c.ExpressionTypeStringOptions.create((e3) => e3.setDefaultText(a.default.messageBodyVariable).setDefaultToExpression(true).setIninTestingField("inputTextExpression").setIsOptional(y.isFeatureAvailable(S.default.autoStartConversations)).setDoNotTransitionToNoValue(true)) }], yamlOptions: E.createYamlOptions("inputText", (e3) => e3.setExportOrder(1)), property: "inputText" }]; + } + getDependencyTrackingId() { + return this.botCompositeTag; + } + getUniqueBotCategoryId() { + if (this.botIntegration.idValue && this.bot.idValue) return `${this.botIntegration.idValue}:${this.bot.idValue}`; + } + getUniqueBotRunnableId() { + if (this.botIntegration.idValue && this.bot.idValue && this.botVersion.idValue) return `${this.getUniqueBotCategoryId()}:${this.botVersion.idValue}`; + } + get botCompositeTag() { + return this.model.botCompositeTag; + } + set botCompositeTag(e3) { + this.model.botCompositeTag = e3; + } + updateBotCategoryPropertyDependency() { + } + updateBotRunnablePropertyDependency() { + var e3; + const t3 = this.botRunnableProperty.nameValue || this.botRunnableProperty.idValue; + (null === (e3 = this.botCategoryProperty) || void 0 === e3 ? void 0 : e3.nameValue) && this.botCategoryProperty.idValue && t3 && T.registerConsumer(this, b.botConnector.digitalBotName, this.botCategoryProperty.nameValue, this.getDependencyTrackingId(), t3, C.DigitalBotConnector); + } + postProcessYamlConfig(e3, t3, i3) { + if (this.botRunnableProperty.idValue || this.removeYamlExportPropsThatRequireRunnable(e3), !this.botIntegration.nameValue) return; + e3.botIntegration = {}; + const n3 = e3.botIntegration[this.botIntegration.nameValue] = {}; + if (!this.botName) return void o.default.ensureYamlNoneTrue(n3); + const r3 = n3[this.botName] = {}; + if (!this.versionName) return void o.default.ensureYamlNoneTrue(r3); + const a2 = r3[this.versionName] = {}; + this.commonBotPostProcessYamlConfig(e3, a2); + } + getAdditionalParams() { + return new u.default(this.botRunnableManager, { additionalParams: { integrationId: this.botIntegrationProperty.idValue, botId: this.botCategoryProperty.idValue } }); + } + get supportsInputsOutputs() { + return true; + } + _setBotCategoryProperties(e3) { + e3 && (this.botCategoryProperty.nameValue = e3.botName, this.botCategoryProperty.idValue = e3.botId); + } + _setBotIntegrationProperties(e3) { + e3 && (this.botIntegrationProperty.idValue = e3.integrationId); + } + setBotCategoryByViewModel(e3) { + super.setBotCategoryByViewModel(e3); + const t3 = this.botIntegrationProperty.configListManager, i3 = this.botCategoryProperty.configListManager; + this.botIntegrationProperty && this.botIntegrationProperty.idValue && T.unRegisterConsumer(this, t3.dependencyContext), this.botCompositeTag = e3 ? e3.botCompositeTag : "", this._setBotIntegrationProperties(e3), this.botCategoryProperty.idValue && i3.addItemToFlowMetadata(this, null, this.botCategoryProperty.idValue); + } + get yamlNoBotRunnablePropName() { + return "noBotIntegration"; + } + } + E.info = N.default.createActionInfo({ actionClass: E, canBeInTask: true, canBeTreeNode: false, helpTopic: A.helpTopics.actions.callDigitalBotConnector, modelClass: i2(3211), name: b.actions.digitalBotConnector, scriptingName: "ArchActionCallDigitalBotConnector" }), t2.A = E; + }, 43693: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importDefault(i2(92140)), o = n2.__importDefault(i2(45431)), a = n2.__importDefault(i2(5532)), s = n2.__importDefault(i2(73198)), l = n2.__importDefault(i2(96727)), u = n2.__importDefault(i2(41510)), d = i2(17604), c = i2(55909), p = i2(33951), _ = i2(16958), h = i2(58380), m = i2(47957), g = i2(24032).getTopic("BuilderPartsManager"); + class f extends o.default { + constructor({ builderViewModel: e3, containerPartViewModel: t3, owningExpression: i3, parentModel: n3, isManagingPartContainers: o2, reId: s2, sortParts: l2 }) { + super(i3), super.configureForBuilderViewModel(e3), Object.defineProperties(this, { _parentModel: { value: n3, writable: true, enumerable: false }, _containerPartViewModel: { value: t3, writable: true, enumerable: false }, _isManagingPartContainers: { value: o2, writable: true, enumerable: false }, _partViewModels: { value: [], writable: true, enumerable: false }, _sortPartContainers: { value: l2, writable: true, enumerable: false } }), this._sortPartContainers && !this._isManagingPartContainers && (g.error(`Attempting to enable container sorting on a non-container builder parts manager. Turning sorting off. Manager: ${JSON.stringify(this)}`), this._sortPartContainers = false); + const u2 = this._getBuilderModelArray(); + r2.default.each(u2, (t4) => { + const n4 = (this.isManagingPartContainers ? a.default.getBuilderPartContainerDefById(t4.builderPartDefId) : a.default.getBuilderPartDefById(t4.builderPartDefId)).reviveItem(e3, i3, t4, s2); + this._partViewModels.push(n4), n4.ininTestingField = (0, d.sprintf)("%1$s-%2$s", n4.builderPartDef.id, this._partViewModels.length - 1), h.registerEventSinkForEventEmitter(n4.id, this.builderViewModel); + }); + } + _getBuilderModelArray(e3) { + return this.isManagingPartContainers ? (e3 && !r2.default.isArray(this._parentModel.builderPartContainers) && (this._parentModel.builderPartContainers = []), this._parentModel.builderPartContainers) : (e3 && !r2.default.isArray(this._parentModel.builderParts) && (this._parentModel.builderParts = []), this._parentModel.builderParts); + } + get builderDef() { + return this.builderViewModel.builderDef; + } + get isManagingPartContainers() { + return this._isManagingPartContainers; + } + get sortPartContainers() { + return this._sortPartContainers; + } + _addPart(e3) { + if (this.isManagingPartContainers !== e3.isContainerPart) throw g.error(`Attempting to add a non builder part container to a container array. Container: ${JSON.stringify(this)}; BuilderPartToAdd: ${JSON.stringify(e3)}`), "no no, you are adding a non builder part container to a container array or vice versa. Boo!"; + let t3 = -1; + if (this.sortPartContainers && this._partViewModels.length && e3) { + const i4 = e3.sortValue; + for (let e4 = 0; e4 < this._partViewModels.length; e4++) if (i4 < this._partViewModels[e4].sortValue) { + t3 = e4; + break; + } + } + const i3 = this._getBuilderModelArray(true); + return -1 === t3 ? (i3.push(e3.builderPartModel), this._partViewModels.push(e3)) : (i3.splice(t3, 0, e3.builderPartModel), this._partViewModels.splice(t3, 0, e3)), e3.ininTestingField = (0, d.sprintf)("%1$s-%2$s", e3.builderPartDef.id, this._partViewModels.length - 1), h.registerEventSinkForEventEmitter(e3.id, this.builderViewModel), this.initializeDesignTimeCalled && (e3.initializeDesignTime(), this.isManagingPartContainers ? this.builderViewModel.builderPartContainerAdded(e3) : this.builderViewModel.builderPartAdded(e3)), this.builderViewModel.postUpdateOwningExpression(s.default.msWaitPartsChanged), e3; + } + get errorParent() { + return this.parentIsContainerPart ? this.parentContainerPart : this.builderViewModel; + } + _initializeDesignTime() { + super._initializeDesignTime(), r2.default.each(this._partViewModels, (e3) => { + e3.initializeDesignTime(); + }); + } + getInternalExpressions() { + const e3 = r2.default.map(this._partViewModels, (e4) => e4.getInternalExpressions()); + return r2.default.union(...e3); + } + _replaceUsages(e3, t3, i3) { + super._replaceUsages(e3, t3, i3), r2.default.each(this._partViewModels, (n3) => { + n3.replaceUsages(e3, t3, i3); + }); + } + _validateBuilderObject(e3, t3) { + let i3 = super._validateBuilderObject(e3, t3); + try { + if (e3.setContextIsContainerRelated(), r2.default.each(this._partViewModels, (n3) => { + n3.validateBuilderObject(e3, t3) || (i3 = false); + }), this.partsValidForProcessing) { + if (this.hasMinBuilderPartCount && this._partViewModels.length < this.minBuilderPartCount) { + const t4 = 1 === this.minBuilderPartCount ? m.builders.minPartsOne : (0, d.sprintf)(m.builders.minPartsMoreThanOne, this.minBuilderPartCount); + e3.addError(this.errorParent, t4); + } else if (this.warnOnNoParts && 0 === this._partViewModels.length) { + let t4; + const i4 = this.builderDef.getNoPartsGenerator(); + if (i4) { + let e4 = i4.generationDescription; + r2.default.isUndefined(e4) && (e4 = i4.sprintfString), t4 = (0, d.sprintf)(u.default.builder.noPartsWithGeneratorFormat, m.builders.minPartsWarning, this.builderViewModel.supportsLanguageContainersOnly ? (0, d.sprintf)(m.builders.generation.noPartsInSequence, e4) : (0, d.sprintf)(m.builders.generation.noParts, e4)); + } else t4 = m.builders.minPartsWarning; + e3.addWarning(this.errorParent, t4); + } + if (this.hasMaxBuilderPartCount && this._partViewModels.length > this.maxBuilderPartCount) { + const t4 = 1 === this.maxBuilderPartCount ? m.builders.maxPartsOne : (0, d.sprintf)(m.builders.maxPartsMoreThanOne, this.maxBuilderPartCount); + e3.addError(this.errorParent, t4); + } + } + } finally { + this.builderViewModel.builderValidationResultsOrganizer.clearContextIsContainerRelated(); + } + return i3; + } + _indexForPartId(e3) { + return r2.default.isString(e3) && 0 !== e3.length ? r2.default.findIndex(this.parts, function(t3) { + return t3.id === e3; + }) : -1; + } + get enabledNonContainerPartCount() { + let e3 = 0; + return this.isManagingPartContainers ? r2.default.each(this.parts, (t3) => { + if (!t3.outOfService) { + const i3 = t3.builderPartsManager; + i3 && (e3 += i3.enabledNonContainerPartCount); + } + }) : r2.default.each(this.parts, (t3) => { + t3.outOfService || e3++; + }), e3; + } + _indexForPartViewModel(e3) { + return e3 ? e3.isDestroyed ? -1 : this._indexForPartId(e3.id) : -1; + } + canMovePartAtIndex(e3) { + const t3 = this.hasMinBuilderPartCount ? Math.min(this.minBuilderPartCount, this.parts.length) : this.parts.length; + return e3 >= 0 && e3 < t3; + } + _movePartToIndex(e3, t3) { + if (!this.canMovePartAtIndex(e3)) return false; + if (!this.canMovePartAtIndex(t3)) return false; + const i3 = this._partViewModels[e3]; + this._partViewModels.splice(e3, 1), this._partViewModels.splice(t3, 0, i3); + const n3 = this._getBuilderModelArray(), r3 = n3[e3]; + return n3.splice(e3, 1), n3.splice(t3, 0, r3), this.builderViewModel.updateOwningExpression(), true; + } + _swapPartsAtIndex(e3, t3) { + if (!this.canMovePartAtIndex(e3)) return false; + if (!this.canMovePartAtIndex(t3)) return false; + const i3 = this._getBuilderModelArray(), n3 = this._partViewModels[e3], r3 = i3[e3]; + return this._partViewModels[e3] = this._partViewModels[t3], this._partViewModels[t3] = n3, i3[e3] = i3[t3], i3[t3] = r3, this.builderViewModel.updateOwningExpression(), true; + } + get className() { + return "BuilderPartsManager"; + } + get isBaseBuilderWithBuilderPartsViewModel() { + return true; + } + canRemovePart(e3) { + const t3 = r2.default.indexOf(this.parts, e3); + return !(t3 < 0 || this.builderDef.fixedBuilderPart || this.parts[t3].cannotBeDeleted); + } + get parts() { + return this._partViewModels; + } + get hasParts() { + return this._partViewModels && this._partViewModels.length > 0; + } + deletePart(e3) { + const t3 = this._indexForPartViewModel(e3); + return -1 !== t3 && this.deletePartAtIndex(t3); + } + configureForFlowState() { + const e3 = this.parentFlow; + if (e3 && e3.info && !e3.info.currentUserCanEdit) return false; + let t3 = false; + for (let e4 = this._partViewModels.length - 1; e4 >= 0; e4--) this._partViewModels[e4].needsDeletion && this.deletePartAtIndex(e4) && (t3 = true); + return t3; + } + _deletePartAtIndex(e3, t3) { + p.ParameterValidator.expectInt(e3, () => c.ParameterInfo.createFunctionParameter(this.className, "deletePartAtIndex", "indexToDelete")); + const i3 = this.parts.splice(e3, 1); + if (i3) try { + this._getBuilderModelArray().splice(e3, 1); + const t4 = i3[0]; + t4 && (h.unregisterEventSinkForEventEmitter(t4.id, this.builderViewModel), t4.destroy()), this.builderViewModel.updateOwningExpression(); + } catch (e4) { + console.error("Unable to destroy builder part. " + e4); + } + return true; + } + get hasMaxNumOfBuilderPartsConfigured() { + return !!this.hasMaxBuilderPartCount && (this.isManagingPartContainers ? !r2.default.find(this.parts, (e3) => !e3.hasMaxNumOfBuilderPartsConfigured) : this._partViewModels.length === this.maxBuilderPartCount); + } + deletePartAtIndex(e3) { + return this._deletePartAtIndex(e3); + } + deleteAllParts() { + const e3 = []; + let t3 = false; + try { + for (let i3 = this.parts.length - 1; i3 >= 0; i3--) { + const n3 = this.parts[i3]; + this.canRemovePart(n3) && this._deletePartAtIndex(i3, true) ? t3 = true : e3.push(n3); + } + } finally { + t3 && this.builderViewModel.updateOwningExpression(); + } + return e3.length ? e3 : void 0; + } + get hasMaxBuilderPartCount() { + return !this.isManagingPartContainers && this.builderDef.hasMaxBuilderPartCount; + } + get maxBuilderPartCount() { + return this.isManagingPartContainers ? void 0 : this.builderDef.maxBuilderPartCount; + } + get hasMinBuilderPartCount() { + return !this.isManagingPartContainers && this.builderDef.hasMinBuilderPartCount; + } + get minBuilderPartCount() { + return this.isManagingPartContainers ? void 0 : this.builderDef.minBuilderPartCount; + } + get warnOnNoParts() { + return this.isManagingPartContainers ? void 0 : this.builderDef.warnOnNoParts; + } + findBestContainerPartForCriteria(e3) { + return this.parts.find((t3) => !t3.outOfService && t3.criteria && (t3.criteria.languageTag === e3.languageTag || r2.default.isUndefined(t3.criteria.languageTag) || r2.default.isUndefined(e3.languageTag)) && (t3.criteria.outputMode === e3.outputMode || r2.default.isUndefined(t3.criteria.outputMode) || r2.default.isUndefined(e3.outputMode))); + } + getExpressionDetails(e3) { + if (this._isManagingPartContainers && (null == e3 ? void 0 : e3.richSummary) && e3.criteria) { + const t4 = this.findBestContainerPartForCriteria(e3.criteria); + return t4 ? t4.getExpressionDetails(e3) : void 0; + } + if (this.enabledNonContainerPartCount > 0 && (null == e3 ? void 0 : e3.richSummary)) { + const t4 = this.getExpressionDetailParts(e3); + if (t4 && t4.length) return t4.map((e4) => e4.displayString).join(" "); + } + const t3 = this._partViewModels.length; + switch (t3) { + case 0: + return _.builders.shared.details.builderPartsNone; + case 1: + return this._partViewModels[0].builderPartDef.name; + default: + return (0, d.sprintf)(_.builders.shared.details.builderPartsMoreThanOne, t3); + } + } + getExpressionDetailParts(e3) { + if (this._isManagingPartContainers && (null == e3 ? void 0 : e3.richSummary) && e3.criteria) { + const t3 = this.findBestContainerPartForCriteria(e3.criteria); + return t3 ? t3.getExpressionDetailParts(e3) : void 0; + } + return r2.default.flatten(this._partViewModels.map((t3) => t3.getExpressionDetailParts(e3))); + } + getIndexForPart(e3) { + return this._indexForPartId(e3); + } + findContainerPart(e3, t3) { + if (this.isManagingPartContainers && r2.default.isObject(t3) && e3) return r2.default.find(this.parts, (i3) => t3.isEqualTo(i3.criteria) && i3.builderPartDef && i3.builderPartDef.isMatch(e3)); + } + movePartToIndex(e3, t3) { + const i3 = this._indexForPartViewModel(e3); + return -1 !== i3 && this._movePartToIndex(i3, t3); + } + movePartDown(e3) { + const t3 = this._indexForPartViewModel(e3); + return -1 === t3 ? -1 : this.movePartDownAtIndex(t3); + } + movePartDownAtIndex(e3) { + return p.ParameterValidator.expectInt(e3, () => c.ParameterInfo.createPropertySet(this.className, "movePartDownAtIndex", "indexToMoveDown")), this._swapPartsAtIndex(e3, e3 + 1) ? e3 + 1 : -1; + } + get parentIsContainerPart() { + return !r2.default.isUndefined(this._containerPartViewModel); + } + get parentIsBuilder() { + return !this.parentIsContainerPart; + } + get partsValidForProcessing() { + return this.parentIsContainerPart && !this.parentContainerPart.outOfService || this.parentIsBuilder && !this.builderViewModel.partAndPartsOutOfService; + } + get parentContainerPart() { + return this._containerPartViewModel; + } + movePartUp(e3) { + const t3 = this._indexForPartViewModel(e3); + return -1 === t3 ? -1 : this.movePartUpAtIndex(t3); + } + movePartUpAtIndex(e3) { + return p.ParameterValidator.expectInt(e3, () => c.ParameterInfo.createPropertySet(this.className, "movePartUpAtIndex", "movePartUpAtIndex")), this._swapPartsAtIndex(e3, e3 - 1) ? e3 - 1 : -1; + } + createAndAddPartFromBuilderPartDef(e3, t3) { + if (this.isManagingPartContainers || !this.builderDef.hasMaxBuilderPartCount || this.parts.length < this.builderDef.maxBuilderPartCount) return this._addPart(e3.createBuilderPartViewModel(this.builderViewModel, this.owningExpression, t3)); + } + cloneParts(e3) { + if (this._partViewModels.length) throw g.error("Attempted to call cloneParts on a builder container with existing parts."), "trying to call cloneParts on a builder container with existing parts"; + r2.default.each(e3, (e4) => { + const t3 = r2.default.deepClone(e4.builderPartModel), i3 = e4.builderPartDef.reviveItem(this.builderViewModel, this.owningExpression, t3, true); + return this._addPart(i3); + }); + } + getOverallPartsGeneration(e3, t3) { + const i3 = this.getIndividualPartGenerations(); + if (1 === i3.length) return i3[0]; + const n3 = e3.createGeneration(); + return r2.default.each(i3, function(e4) { + n3.addGenerationToBucket(e4, t3); + }), n3; + } + get hasLanguagePartContainers() { + return !!this.isManagingPartContainers && !r2.default.isUndefined(r2.default.find(this.parts, (e3) => e3.isLanguageBuilderPartContainerViewModel)); + } + getMissingFlowSupportedLanguages() { + if (!this.builderViewModel.partAndPartsOutOfService) return; + if (!this.isManagingPartContainers) return; + const e3 = this.parentFlow; + if (!e3 || !e3.languages) return; + const t3 = []; + return r2.default.each(e3.languages.supportedLanguagesViewModels, (e4) => { + r2.default.isUndefined(r2.default.find(this.parts, (t4) => { + if (t4.isLanguageBuilderPartContainerViewModel) return t4.languageTag === e4.idExpressionText; + })) && t3.push(e4); + }), t3; + } + getIndividualPartGenerations() { + const e3 = []; + return this.parentIsBuilder && this.builderViewModel.partAndPartsOutOfService ? e3.push(this.builderDef.generators.noOrDisabledPartsGenerator.createGeneration()) : 0 === this.parts.length ? this.hasMinBuilderPartCount && 0 !== this.minBuilderPartCount || this.builderDef.generators.noOrDisabledPartsGenerator && e3.push(this.builderDef.generators.noOrDisabledPartsGenerator.createGeneration()) : r2.default.each(this.parts, function(t3) { + const i3 = t3.buildExpressionGeneration(); + i3 && e3.push(i3); + }), 0 === e3.length && e3.push(l.default.emptyStringGenerator.createGeneration()), e3; + } + _buildCriteriaPropOrderedObject(e3) { + if (!this.isManagingPartContainers) return {}; + const t3 = {}; + return r2.default.each(this.parts, (i3) => { + if (i3.outOfService) return; + const n3 = i3.criteria; + if (!r2.default.isObject(n3)) return; + let o2 = t3; + const a2 = e3.length, s2 = a2 - 1; + for (let t4 = 0; t4 < a2; t4++) { + let a3 = n3[e3[t4]]; + if (r2.default.isUndefined(a3) && (a3 = "__none__"), t4 === s2) r2.default.isUndefined(o2[a3]) && (o2[a3] = i3); + else { + let e4 = o2[a3]; + r2.default.isUndefined(e4) && (e4 = {}, o2[a3] = e4), o2 = e4; + } + } + }), t3; + } + getLanguageTagOutputModeContainer() { + return this._buildCriteriaPropOrderedObject(["languageTag", "outputMode"]); + } + _addClipboardDependencies(e3) { + super._addClipboardDependencies(e3), r2.default.each(this.parts, function(t3) { + t3.addClipboardDependencies(e3); + }.bind(this)); + } + setPartsOutOfServiceValue(e3) { + p.ParameterValidator.expectBool(e3, () => c.ParameterInfo.createFunctionParameter(this.className, "setOutOfServiceValue", "outOfServiceValue")), r2.default.each(this._partViewModels, (t3) => { + t3.outOfService = e3; + }); + } + _destroy() { + r2.default.each(this._partViewModels, (e3) => { + h.unregisterEventSinkForEventEmitter(e3.id, this.builderViewModel), e3.destroy(); + }), this._partViewModels.splice(0, this._partViewModels.length), this._containerPartViewModel = void 0, this._parentModel = void 0, this._isManagingPartContainers = void 0, super._destroy(); + } + } + t2.default = f; + }, 43700: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.ExpressionTypeGrammarOptions = void 0; + const n2 = i2(71056); + class r2 extends n2.ExpressionTypeNetworkObjectOptions { + static create(e3, t3) { + return new this(t3).invokeOptionsCallback(e3); + } + constructor(e3) { + super(e3); + } + get className() { + return "ExpressionTypeGrammarOptions"; + } + get isExpressionTypeGrammarOptions() { + return true; + } + } + t2.ExpressionTypeGrammarOptions = r2; + }, 43773: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.removePropertiesForComparison = function e3(t3) { + const i3 = n2.default.isObject(t3), r2 = n2.default.isArray(t3); + if (!i3 && !r2) return t3; + if (i3) { + if (t3.isEnum) return t3.toJSON(); + const i4 = n2.default.clone(t3); + delete i4.uiMetaData, delete i4.config, delete i4.metaData; + for (const t4 in i4) i4.hasOwnProperty(t4) && (i4[t4] = e3(i4[t4])); + const r3 = n2.default.keys(t3.constructor.prototype); + return n2.default.each(r3, function(t4) { + const n3 = Object.getOwnPropertyDescriptor(i4, t4); + n3 && n3.writable && (i4[t4] = e3(i4[t4])); + }), i4; + } + return r2 ? n2.default.map(t3, function(t4) { + return e3(t4); + }) : void 0; + }; + const n2 = i2(31635).__importDefault(i2(92140)); + }, 43933: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = i2(19596), o = i2(80295); + class a extends r2.DataContract { + constructor(e3) { + super(e3); + } + get id() { + return this._id; + } + set id(e3) { + this._id = e3; + } + get name() { + return this._name; + } + set name(e3) { + this._name = e3; + } + get description() { + return this._description; + } + set description(e3) { + this._description = e3; + } + get languages() { + return this._languages; + } + set languages(e3) { + this._languages = e3; + } + } + t2.default = a, n2.__decorate([(0, o.enumerable)(true), n2.__metadata("design:type", String), n2.__metadata("design:paramtypes", [String])], a.prototype, "id", null), n2.__decorate([(0, o.enumerable)(true), n2.__metadata("design:type", String), n2.__metadata("design:paramtypes", [String])], a.prototype, "name", null), n2.__decorate([(0, o.enumerable)(true), n2.__metadata("design:type", String), n2.__metadata("design:paramtypes", [String])], a.prototype, "description", null), n2.__decorate([(0, o.enumerable)(true), n2.__metadata("design:type", Array), n2.__metadata("design:paramtypes", [Array])], a.prototype, "languages", null); + }, 44023: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.ExpressionTypeDateOptions = void 0; + const n2 = i2(65615); + class r2 extends n2.BaseExpressionTypeCollectionOptions { + static create(e3, t3) { + return new this(t3).invokeOptionsCallback(e3); + } + constructor(e3) { + super(e3); + } + get isExpressionTypeDateOptions() { + return true; + } + get className() { + return "ExpressionTypeDateOptions"; + } + } + t2.ExpressionTypeDateOptions = r2; + }, 44033: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.variablePropertyReasons = void 0; + const n2 = i2(93858), r2 = i2(47957); + class o extends n2.PropertyBaseReasons { + constructor() { + super(...arguments), this.REASON_CANNOT_SET_IS_SCHEMA_INPUT = { code: "cannot_set_is_schema_input", resource: r2.properties.variable.common.set.cannotSetIsSchemaInput }, this.REASON_CANNOT_SET_IS_SCHEMA_INPUT_OUTPUT = { code: "cannot_set_is_schema_input_output", resource: r2.properties.variable.common.set.cannotSetIsSchemaInputOutput }, this.REASON_CANNOT_SET_IS_SCHEMA_OUTPUT = { code: "cannot_set_is_schema_output", resource: r2.properties.variable.common.set.cannotSetIsSchemaOutput }, this.REASON_NOT_SUPPORTED_INPUT_VARIABLE_SCOPE = { code: "not_supported_variable_input_scope", resource: r2.properties.variable.common.support.notSupportedInputVariableScope }, this.REASON_NOT_SUPPORTED_OUTPUT_VARIABLE_SCOPE = { code: "not_supported_variable_output_scope", resource: r2.properties.variable.common.support.notSupportedOutputVariableScope }, this.REASON_NOT_SUPPORTED_FLOW_SECURE_VARIABLES = { code: "not_supported_no_flow_secure_variables", resource: r2.properties.variable.secure.support.notSupportedNoSecureVariables }, this.REASON_NOT_SUPPORTED_TYPE_NOT_VALID_AS_FLOW_INPUT = { code: "not_supported_type_not_valid_as_flow_input", resource: r2.properties.variable.isInput.support.notSupportedTypeNotValidAsFlowInput }, this.REASON_NOT_SUPPORTED_TYPE_NOT_VALID_AS_FLOW_OUTPUT = { code: "not_supported_type_not_valid_as_flow_output", resource: r2.properties.variable.isOutput.support.notSupportedTypeNotValidAsFlowOutput }, this.REASON_VARIABLE_CANNOT_BE_SECURE_INPUT = { code: "variable_cannot_be_secure_input", resource: r2.secureData.variableInputCannotBeSecure }, this.REASON_VARIABLE_CANNOT_BE_SECURE_OUTPUT = { code: "variable_cannot_be_secure_output", resource: r2.secureData.variableOutputWarning }, this.REASON_VARIABLE_READONLY = { code: "variable_read_only", resource: r2.properties.variable.common.variableIsReadOnly, additionalInfo: { isReadOnlyReason: true } }; + } + get className() { + return "VariablePropertyReasons"; + } + setCannotSetIsSchemaInput(e3) { + return this._setReason(e3, this.REASON_CANNOT_SET_IS_SCHEMA_INPUT); + } + setCannotSetIsSchemaInputOutput(e3) { + return this._setReason(e3, this.REASON_CANNOT_SET_IS_SCHEMA_INPUT_OUTPUT); + } + setCannotSetIsSchemaOutput(e3) { + return this._setReason(e3, this.REASON_CANNOT_SET_IS_SCHEMA_OUTPUT); + } + setNotSupportedNoFlowSecureVariables(e3, t3) { + return this._setReason(e3, this.REASON_NOT_SUPPORTED_FLOW_SECURE_VARIABLES, t3.info.flowTypeName); + } + setNotSupportedInputVariableScope(e3, t3, i3) { + return this._setReason(e3, this.REASON_NOT_SUPPORTED_INPUT_VARIABLE_SCOPE, i3, t3.info.flowTypeName); + } + setNotSupportedOutputVariableScope(e3, t3, i3) { + return this._setReason(e3, this.REASON_NOT_SUPPORTED_OUTPUT_VARIABLE_SCOPE, i3, t3.info.flowTypeName); + } + setNotSupportedTypeNotValidAsFlowInput(e3, t3, i3) { + return this._setReason(e3, this.REASON_NOT_SUPPORTED_TYPE_NOT_VALID_AS_FLOW_INPUT, i3.displayString, t3.info.flowTypeName); + } + setNotSupportedTypeNotValidAsFlowOutput(e3, t3, i3) { + return this._setReason(e3, this.REASON_NOT_SUPPORTED_TYPE_NOT_VALID_AS_FLOW_OUTPUT, i3.displayString, t3.info.flowTypeName); + } + setVariableCannotBeSecureInput(e3) { + return this._setReason(e3, this.REASON_VARIABLE_CANNOT_BE_SECURE_INPUT); + } + setVariableCannotBeSecureOutput(e3) { + return this._setReason(e3, this.REASON_VARIABLE_CANNOT_BE_SECURE_OUTPUT); + } + setVariableReadOnly(e3) { + return this._setReason(e3, this.REASON_VARIABLE_READONLY); + } + } + t2.variablePropertyReasons = new o(); + }, 44035: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = i2(96618), o = i2(17604), a = n2.__importStar(i2(69453)), s = i2(80428), l = n2.__importDefault(i2(88557)), u = i2(81516), d = i2(82632), c = i2(12179), p = (n2.__importDefault(i2(41510)), n2.__importDefault(i2(20084))), _ = i2(47957); + class h extends p.default { + constructor(e3) { + super(e3, "emailSendSettings", l.default); + } + loadConfiguration(e3) { + super.loadConfiguration(e3); + } + get id() { + return "emailSendSettings"; + } + get className() { + return "EmailSendSettingsViewModel"; + } + get helpTopic() { + return c.helpTopics.treeNodes.emailSendSettings; + } + get isEmailSendSettingsNode() { + return true; + } + get nodeGuxIcon() { + return "fa/gears-regular"; + } + getDisplayName() { + var e3; + return (null === (e3 = _.emailSendFlow) || void 0 === e3 ? void 0 : e3.emailSendSettingsTreeNodeLabel) || "Email Send"; + } + static get managedProperties() { + return [{ label: _.actions.abortSendMessageSettingDefaultLabel, options: u.ExpressionTypeStringOptions.create((e3) => e3.setAsInput().setDescriptionInfo(_.actions.abortSendMessageSettingDefaultLabel, (0, o.sprintf)(a.emailSend.settings.defaultAbortSendMessageDescription, _.actions.abortSend)).setIninTestingField("defaultAbortMessage").setAllowModeLiteralOnly().setIsOptional(false).facets.setMinLength(d.abortSend.message.minLength).setMaxLength(d.abortSend.message.maxLength).setTruncatesToMaxLength(true)), property: "defaultAbortMessage", supportedFlowTypes: [r2.flowTypes.flowTypeEmailSend], type: s.expressionTypeNames.string }]; + } + setNewInstanceDefaults() { + super.setNewInstanceDefaults(); + } + } + t2.default = h; + }, 44051: (e2) => { + var t2, i2 = function(e3, t3) { + t3 || (t3 = new org.antlr.runtime.RecognizerSharedState()), function() { + }.call(this), this.dfa6 = new i2.DFA6(this), this.dfa9 = new i2.DFA9(this), i2.superclass.constructor.call(this, e3, t3); + }; + org.antlr.lang.augmentObject(i2, { EOF: -1, BOOL_TRUE: 4, BOOL_FALSE: 5, NOT_SET: 6, TERNARY_IF: 7, TERNARY_THEN: 8, OP_LOG_OR: 9, OP_LOG_AND: 10, OP_BIT_INCL_OR: 11, OP_BIT_AND: 12, OP_EQU: 13, OP_NEQ: 14, OP_GTE: 15, OP_LTE: 16, OP_GT: 17, OP_LT: 18, OP_PLUS: 19, OP_MINUS: 20, OP_MULT: 21, OP_DIV: 22, OP_MOD: 23, OP_POW: 24, WS: 25, OP_NOT: 26, OP_BIT_NOT: 27, PAREN_LEFT: 28, PAREN_RIGHT: 29, IDENTIFIER: 30, PERIOD: 31, UNQUOTED_STRING_LITERAL: 32, BRACKET_LEFT: 33, BRACKET_RIGHT: 34, FIELD_ACCESS_IDENTIFIER: 35, FIELD_ACCESS_STRING_LITERAL: 36, FIELD_ACCESS_UNQUOTED_STRING_LITERAL: 37, COMMA: 38, STRING_LITERAL: 39, BAD_ESCAPE_STRING_LITERAL: 40, INTEGER: 41, DECIMAL: 42, NON_SUPPORTED: 43, UNDERSCORE: 44, QUOTE: 45, BACKSLASH: 46, DOLLAR_SIGN: 47, DIGIT: 48, ECSCAPE_CHARS: 49, ESCAPE_SEQUENCE: 50, STRING_LITERAL_CONTENTS: 51, LETTER: 52 }), t2 = org.antlr.runtime.Token.HIDDEN_CHANNEL, org.antlr.runtime.Token.EOF, org.antlr.lang.extend(i2, org.antlr.runtime.Lexer, { EOF: -1, BOOL_TRUE: 4, BOOL_FALSE: 5, NOT_SET: 6, TERNARY_IF: 7, TERNARY_THEN: 8, OP_LOG_OR: 9, OP_LOG_AND: 10, OP_BIT_INCL_OR: 11, OP_BIT_AND: 12, OP_EQU: 13, OP_NEQ: 14, OP_GTE: 15, OP_LTE: 16, OP_GT: 17, OP_LT: 18, OP_PLUS: 19, OP_MINUS: 20, OP_MULT: 21, OP_DIV: 22, OP_MOD: 23, OP_POW: 24, WS: 25, OP_NOT: 26, OP_BIT_NOT: 27, PAREN_LEFT: 28, PAREN_RIGHT: 29, IDENTIFIER: 30, PERIOD: 31, UNQUOTED_STRING_LITERAL: 32, BRACKET_LEFT: 33, BRACKET_RIGHT: 34, FIELD_ACCESS_IDENTIFIER: 35, FIELD_ACCESS_STRING_LITERAL: 36, FIELD_ACCESS_UNQUOTED_STRING_LITERAL: 37, COMMA: 38, STRING_LITERAL: 39, BAD_ESCAPE_STRING_LITERAL: 40, INTEGER: 41, DECIMAL: 42, NON_SUPPORTED: 43, UNDERSCORE: 44, QUOTE: 45, BACKSLASH: 46, DOLLAR_SIGN: 47, DIGIT: 48, ECSCAPE_CHARS: 49, ESCAPE_SEQUENCE: 50, STRING_LITERAL_CONTENTS: 51, LETTER: 52, getGrammarFileName: function() { + return "/Users/bliang/genesys_src/architect/src/core/expressions/metadata/grammar/Architect.g"; + } }), org.antlr.lang.augmentObject(i2.prototype, { mBOOL_TRUE: function() { + try { + var e3 = this.BOOL_TRUE, t3 = org.antlr.runtime.BaseRecognizer.DEFAULT_TOKEN_CHANNEL; + this.match("true"), this.state.type = e3, this.state.channel = t3; + } finally { + } + }, mBOOL_FALSE: function() { + try { + var e3 = this.BOOL_FALSE, t3 = org.antlr.runtime.BaseRecognizer.DEFAULT_TOKEN_CHANNEL; + this.match("false"), this.state.type = e3, this.state.channel = t3; + } finally { + } + }, mNOT_SET: function() { + try { + var e3 = this.NOT_SET, t3 = org.antlr.runtime.BaseRecognizer.DEFAULT_TOKEN_CHANNEL; + this.match("NOT_SET"), this.state.type = e3, this.state.channel = t3; + } finally { + } + }, mOP_PLUS: function() { + try { + var e3 = this.OP_PLUS, t3 = org.antlr.runtime.BaseRecognizer.DEFAULT_TOKEN_CHANNEL; + this.match("+"), this.state.type = e3, this.state.channel = t3; + } finally { + } + }, mOP_MULT: function() { + try { + var e3 = this.OP_MULT, t3 = org.antlr.runtime.BaseRecognizer.DEFAULT_TOKEN_CHANNEL; + this.match("*"), this.state.type = e3, this.state.channel = t3; + } finally { + } + }, mOP_DIV: function() { + try { + var e3 = this.OP_DIV, t3 = org.antlr.runtime.BaseRecognizer.DEFAULT_TOKEN_CHANNEL; + this.match("/"), this.state.type = e3, this.state.channel = t3; + } finally { + } + }, mOP_MINUS: function() { + try { + var e3 = this.OP_MINUS, t3 = org.antlr.runtime.BaseRecognizer.DEFAULT_TOKEN_CHANNEL; + this.match("-"), this.state.type = e3, this.state.channel = t3; + } finally { + } + }, mOP_MOD: function() { + try { + var e3 = this.OP_MOD, t3 = org.antlr.runtime.BaseRecognizer.DEFAULT_TOKEN_CHANNEL; + this.match("%"), this.state.type = e3, this.state.channel = t3; + } finally { + } + }, mOP_POW: function() { + try { + var e3 = this.OP_POW, t3 = org.antlr.runtime.BaseRecognizer.DEFAULT_TOKEN_CHANNEL; + this.match("^"), this.state.type = e3, this.state.channel = t3; + } finally { + } + }, mOP_NOT: function() { + try { + var e3 = this.OP_NOT, t3 = org.antlr.runtime.BaseRecognizer.DEFAULT_TOKEN_CHANNEL; + this.match("!"), this.state.type = e3, this.state.channel = t3; + } finally { + } + }, mOP_EQU: function() { + try { + var e3 = this.OP_EQU, t3 = org.antlr.runtime.BaseRecognizer.DEFAULT_TOKEN_CHANNEL; + this.match("=="), this.state.type = e3, this.state.channel = t3; + } finally { + } + }, mOP_NEQ: function() { + try { + var e3 = this.OP_NEQ, t3 = org.antlr.runtime.BaseRecognizer.DEFAULT_TOKEN_CHANNEL; + this.match("!="), this.state.type = e3, this.state.channel = t3; + } finally { + } + }, mOP_GT: function() { + try { + var e3 = this.OP_GT, t3 = org.antlr.runtime.BaseRecognizer.DEFAULT_TOKEN_CHANNEL; + this.match(">"), this.state.type = e3, this.state.channel = t3; + } finally { + } + }, mOP_GTE: function() { + try { + var e3 = this.OP_GTE, t3 = org.antlr.runtime.BaseRecognizer.DEFAULT_TOKEN_CHANNEL; + this.match(">="), this.state.type = e3, this.state.channel = t3; + } finally { + } + }, mOP_LT: function() { + try { + var e3 = this.OP_LT, t3 = org.antlr.runtime.BaseRecognizer.DEFAULT_TOKEN_CHANNEL; + this.match("<"), this.state.type = e3, this.state.channel = t3; + } finally { + } + }, mOP_LTE: function() { + try { + var e3 = this.OP_LTE, t3 = org.antlr.runtime.BaseRecognizer.DEFAULT_TOKEN_CHANNEL; + this.match("<="), this.state.type = e3, this.state.channel = t3; + } finally { + } + }, mOP_LOG_AND: function() { + try { + var e3 = this.OP_LOG_AND, t3 = org.antlr.runtime.BaseRecognizer.DEFAULT_TOKEN_CHANNEL; + if ("A" != this.input.LA(1) && "a" != this.input.LA(1)) { + var i3 = new org.antlr.runtime.MismatchedSetException(null, this.input); + throw this.recover(i3), i3; + } + if (this.input.consume(), "N" != this.input.LA(1) && "n" != this.input.LA(1)) throw i3 = new org.antlr.runtime.MismatchedSetException(null, this.input), this.recover(i3), i3; + if (this.input.consume(), "D" != this.input.LA(1) && "d" != this.input.LA(1)) throw i3 = new org.antlr.runtime.MismatchedSetException(null, this.input), this.recover(i3), i3; + this.input.consume(), this.state.type = e3, this.state.channel = t3; + } finally { + } + }, mOP_LOG_OR: function() { + try { + var e3 = this.OP_LOG_OR, t3 = org.antlr.runtime.BaseRecognizer.DEFAULT_TOKEN_CHANNEL; + if ("O" != this.input.LA(1) && "o" != this.input.LA(1)) { + var i3 = new org.antlr.runtime.MismatchedSetException(null, this.input); + throw this.recover(i3), i3; + } + if (this.input.consume(), "R" != this.input.LA(1) && "r" != this.input.LA(1)) throw i3 = new org.antlr.runtime.MismatchedSetException(null, this.input), this.recover(i3), i3; + this.input.consume(), this.state.type = e3, this.state.channel = t3; + } finally { + } + }, mOP_BIT_AND: function() { + try { + var e3 = this.OP_BIT_AND, t3 = org.antlr.runtime.BaseRecognizer.DEFAULT_TOKEN_CHANNEL; + this.match("&"), this.state.type = e3, this.state.channel = t3; + } finally { + } + }, mOP_BIT_INCL_OR: function() { + try { + var e3 = this.OP_BIT_INCL_OR, t3 = org.antlr.runtime.BaseRecognizer.DEFAULT_TOKEN_CHANNEL; + this.match("|"), this.state.type = e3, this.state.channel = t3; + } finally { + } + }, mOP_BIT_NOT: function() { + try { + var e3 = this.OP_BIT_NOT, t3 = org.antlr.runtime.BaseRecognizer.DEFAULT_TOKEN_CHANNEL; + this.match("~"), this.state.type = e3, this.state.channel = t3; + } finally { + } + }, mBRACKET_LEFT: function() { + try { + var e3 = this.BRACKET_LEFT, t3 = org.antlr.runtime.BaseRecognizer.DEFAULT_TOKEN_CHANNEL; + this.match("["), this.state.type = e3, this.state.channel = t3; + } finally { + } + }, mBRACKET_RIGHT: function() { + try { + var e3 = this.BRACKET_RIGHT, t3 = org.antlr.runtime.BaseRecognizer.DEFAULT_TOKEN_CHANNEL; + this.match("]"), this.state.type = e3, this.state.channel = t3; + } finally { + } + }, mTERNARY_IF: function() { + try { + var e3 = this.TERNARY_IF, t3 = org.antlr.runtime.BaseRecognizer.DEFAULT_TOKEN_CHANNEL; + this.match("?"), this.state.type = e3, this.state.channel = t3; + } finally { + } + }, mTERNARY_THEN: function() { + try { + var e3 = this.TERNARY_THEN, t3 = org.antlr.runtime.BaseRecognizer.DEFAULT_TOKEN_CHANNEL; + this.match(":"), this.state.type = e3, this.state.channel = t3; + } finally { + } + }, mPAREN_LEFT: function() { + try { + var e3 = this.PAREN_LEFT, t3 = org.antlr.runtime.BaseRecognizer.DEFAULT_TOKEN_CHANNEL; + this.match("("), this.state.type = e3, this.state.channel = t3; + } finally { + } + }, mPAREN_RIGHT: function() { + try { + var e3 = this.PAREN_RIGHT, t3 = org.antlr.runtime.BaseRecognizer.DEFAULT_TOKEN_CHANNEL; + this.match(")"), this.state.type = e3, this.state.channel = t3; + } finally { + } + }, mPERIOD: function() { + try { + var e3 = this.PERIOD, t3 = org.antlr.runtime.BaseRecognizer.DEFAULT_TOKEN_CHANNEL; + this.match("."), this.state.type = e3, this.state.channel = t3; + } finally { + } + }, mUNDERSCORE: function() { + try { + this.match("_"); + } finally { + } + }, mCOMMA: function() { + try { + var e3 = this.COMMA, t3 = org.antlr.runtime.BaseRecognizer.DEFAULT_TOKEN_CHANNEL; + this.match(","), this.state.type = e3, this.state.channel = t3; + } finally { + } + }, mQUOTE: function() { + try { + this.match('"'); + } finally { + } + }, mBACKSLASH: function() { + try { + this.match("\\"); + } finally { + } + }, mDOLLAR_SIGN: function() { + try { + this.match("$"); + } finally { + } + }, mDIGIT: function() { + try { + this.matchRange("0", "9"); + } finally { + } + }, mINTEGER: function() { + try { + var e3 = this.INTEGER, t3 = org.antlr.runtime.BaseRecognizer.DEFAULT_TOKEN_CHANNEL, i3 = 0; + e: for (; ; ) { + var n2 = 2, r2 = this.input.LA(1); + if (r2 >= "0" && r2 <= "9" && (n2 = 1), 1 !== n2) { + if (i3 >= 1) break e; + throw new org.antlr.runtime.EarlyExitException(1, this.input); + } + this.mDIGIT(), i3++; + } + this.state.type = e3, this.state.channel = t3; + } finally { + } + }, mDECIMAL: function() { + try { + var e3 = this.DECIMAL, t3 = org.antlr.runtime.BaseRecognizer.DEFAULT_TOKEN_CHANNEL, i3 = 2, n2 = this.input.LA(1); + if (n2 >= "0" && n2 <= "9") i3 = 1; + else { + if ("." != n2) throw new org.antlr.runtime.NoViableAltException("", 3, 0, this.input); + i3 = 2; + } + switch (i3) { + case 1: + this.mINTEGER(), this.mPERIOD(); + var r2 = 2, o = this.input.LA(1); + o >= "0" && o <= "9" && (r2 = 1), 1 === r2 && this.mINTEGER(); + break; + case 2: + this.mPERIOD(), this.mINTEGER(); + } + this.state.type = e3, this.state.channel = t3; + } finally { + } + }, mECSCAPE_CHARS: function() { + try { + if ('"' != this.input.LA(1) && "\\" != this.input.LA(1) && "n" != this.input.LA(1) && "r" != this.input.LA(1) && "t" != this.input.LA(1)) { + var e3 = new org.antlr.runtime.MismatchedSetException(null, this.input); + throw this.recover(e3), e3; + } + this.input.consume(); + } finally { + } + }, mESCAPE_SEQUENCE: function() { + try { + this.mBACKSLASH(), this.mECSCAPE_CHARS(); + } finally { + } + }, mSTRING_LITERAL_CONTENTS: function() { + try { + var e3 = 2, t3 = this.input.LA(1); + if ("\\" == t3) e3 = 1; + else { + if (!(t3 >= "\0" && t3 <= "!" || t3 >= "#" && t3 <= "[" || t3 >= "]" && t3 <= "\uFFFF")) throw new org.antlr.runtime.NoViableAltException("", 4, 0, this.input); + e3 = 2; + } + switch (e3) { + case 1: + this.mESCAPE_SEQUENCE(); + break; + case 2: + if (!(this.input.LA(1) >= "\0" && this.input.LA(1) <= "!" || this.input.LA(1) >= "#" && this.input.LA(1) <= "[" || this.input.LA(1) >= "]" && this.input.LA(1) <= "\uFFFF")) { + var i3 = new org.antlr.runtime.MismatchedSetException(null, this.input); + throw this.recover(i3), i3; + } + this.input.consume(); + } + } finally { + } + }, mUNQUOTED_STRING_LITERAL: function() { + try { + var e3 = this.UNQUOTED_STRING_LITERAL, t3 = org.antlr.runtime.BaseRecognizer.DEFAULT_TOKEN_CHANNEL; + this.mQUOTE(); + e: for (; ; ) { + var i3 = 2, n2 = this.input.LA(1); + if ((n2 >= "\0" && n2 <= "!" || n2 >= "#" && n2 <= "\uFFFF") && (i3 = 1), 1 !== i3) break e; + this.mSTRING_LITERAL_CONTENTS(); + } + this.state.type = e3, this.state.channel = t3; + } finally { + } + }, mSTRING_LITERAL: function() { + try { + var e3 = this.STRING_LITERAL, t3 = org.antlr.runtime.BaseRecognizer.DEFAULT_TOKEN_CHANNEL; + this.mUNQUOTED_STRING_LITERAL(), this.mQUOTE(), this.state.type = e3, this.state.channel = t3; + } finally { + } + }, mBAD_ESCAPE_STRING_LITERAL: function() { + try { + var e3 = this.BAD_ESCAPE_STRING_LITERAL, t3 = org.antlr.runtime.BaseRecognizer.DEFAULT_TOKEN_CHANNEL; + switch (this.mBACKSLASH(), this.dfa6.predict(this.input)) { + case 1: + this.mSTRING_LITERAL(); + break; + case 2: + this.mUNQUOTED_STRING_LITERAL(); + } + this.state.type = e3, this.state.channel = t3; + } finally { + } + }, mLETTER: function() { + try { + if (!(this.input.LA(1) >= "A" && this.input.LA(1) <= "Z" || this.input.LA(1) >= "a" && this.input.LA(1) <= "z" || this.input.LA(1) >= "\xC0" && this.input.LA(1) <= "\xD6" || this.input.LA(1) >= "\xD8" && this.input.LA(1) <= "\xF6" || this.input.LA(1) >= "\xF8" && this.input.LA(1) <= "\u1FFF" || this.input.LA(1) >= "\u3040" && this.input.LA(1) <= "\u318F" || this.input.LA(1) >= "\u3300" && this.input.LA(1) <= "\u337F" || this.input.LA(1) >= "\u3400" && this.input.LA(1) <= "\u3D2D" || this.input.LA(1) >= "\u4E00" && this.input.LA(1) <= "\u9FFF" || this.input.LA(1) >= "\uF900" && this.input.LA(1) <= "\uFAFF" || this.input.LA(1) >= "\uFF00" && this.input.LA(1) <= "\uFFEF")) { + var e3 = new org.antlr.runtime.MismatchedSetException(null, this.input); + throw this.recover(e3), e3; + } + this.input.consume(); + } finally { + } + }, mIDENTIFIER: function() { + try { + var e3 = this.IDENTIFIER, t3 = org.antlr.runtime.BaseRecognizer.DEFAULT_TOKEN_CHANNEL; + if (!("$" == this.input.LA(1) || this.input.LA(1) >= "A" && this.input.LA(1) <= "Z" || this.input.LA(1) >= "a" && this.input.LA(1) <= "z" || this.input.LA(1) >= "\xC0" && this.input.LA(1) <= "\xD6" || this.input.LA(1) >= "\xD8" && this.input.LA(1) <= "\xF6" || this.input.LA(1) >= "\xF8" && this.input.LA(1) <= "\u1FFF" || this.input.LA(1) >= "\u3040" && this.input.LA(1) <= "\u318F" || this.input.LA(1) >= "\u3300" && this.input.LA(1) <= "\u337F" || this.input.LA(1) >= "\u3400" && this.input.LA(1) <= "\u3D2D" || this.input.LA(1) >= "\u4E00" && this.input.LA(1) <= "\u9FFF" || this.input.LA(1) >= "\uF900" && this.input.LA(1) <= "\uFAFF" || this.input.LA(1) >= "\uFF00" && this.input.LA(1) <= "\uFFEF")) { + var i3 = new org.antlr.runtime.MismatchedSetException(null, this.input); + throw this.recover(i3), i3; + } + this.input.consume(); + e: for (; ; ) { + var n2 = 2, r2 = this.input.LA(1); + if ((r2 >= "0" && r2 <= "9" || r2 >= "A" && r2 <= "Z" || "_" == r2 || r2 >= "a" && r2 <= "z" || r2 >= "\xC0" && r2 <= "\xD6" || r2 >= "\xD8" && r2 <= "\xF6" || r2 >= "\xF8" && r2 <= "\u1FFF" || r2 >= "\u3040" && r2 <= "\u318F" || r2 >= "\u3300" && r2 <= "\u337F" || r2 >= "\u3400" && r2 <= "\u3D2D" || r2 >= "\u4E00" && r2 <= "\u9FFF" || r2 >= "\uF900" && r2 <= "\uFAFF" || r2 >= "\uFF00" && r2 <= "\uFFEF") && (n2 = 1), 1 !== n2) break e; + if (!(this.input.LA(1) >= "0" && this.input.LA(1) <= "9" || this.input.LA(1) >= "A" && this.input.LA(1) <= "Z" || "_" == this.input.LA(1) || this.input.LA(1) >= "a" && this.input.LA(1) <= "z" || this.input.LA(1) >= "\xC0" && this.input.LA(1) <= "\xD6" || this.input.LA(1) >= "\xD8" && this.input.LA(1) <= "\xF6" || this.input.LA(1) >= "\xF8" && this.input.LA(1) <= "\u1FFF" || this.input.LA(1) >= "\u3040" && this.input.LA(1) <= "\u318F" || this.input.LA(1) >= "\u3300" && this.input.LA(1) <= "\u337F" || this.input.LA(1) >= "\u3400" && this.input.LA(1) <= "\u3D2D" || this.input.LA(1) >= "\u4E00" && this.input.LA(1) <= "\u9FFF" || this.input.LA(1) >= "\uF900" && this.input.LA(1) <= "\uFAFF" || this.input.LA(1) >= "\uFF00" && this.input.LA(1) <= "\uFFEF")) throw i3 = new org.antlr.runtime.MismatchedSetException(null, this.input), this.recover(i3), i3; + this.input.consume(); + } + this.state.type = e3, this.state.channel = t3; + } finally { + } + }, mWS: function() { + try { + var e3 = this.WS, i3 = org.antlr.runtime.BaseRecognizer.DEFAULT_TOKEN_CHANNEL, n2 = 0; + e: for (; ; ) { + var r2 = 2, o = this.input.LA(1); + if ((o >= " " && o <= "\n" || "\r" == o || " " == o) && (r2 = 1), 1 !== r2) { + if (n2 >= 1) break e; + throw new org.antlr.runtime.EarlyExitException(8, this.input); + } + if (!(this.input.LA(1) >= " " && this.input.LA(1) <= "\n" || "\r" == this.input.LA(1) || " " == this.input.LA(1))) { + var a = new org.antlr.runtime.MismatchedSetException(null, this.input); + throw this.recover(a), a; + } + this.input.consume(), n2++; + } + i3 = t2, this.state.type = e3, this.state.channel = i3; + } finally { + } + }, mFIELD_ACCESS_IDENTIFIER: function() { + try { + var e3 = this.FIELD_ACCESS_IDENTIFIER, t3 = org.antlr.runtime.BaseRecognizer.DEFAULT_TOKEN_CHANNEL; + this.mPERIOD(), this.mIDENTIFIER(), this.state.type = e3, this.state.channel = t3; + } finally { + } + }, mFIELD_ACCESS_STRING_LITERAL: function() { + try { + var e3 = this.FIELD_ACCESS_STRING_LITERAL, t3 = org.antlr.runtime.BaseRecognizer.DEFAULT_TOKEN_CHANNEL; + this.mPERIOD(), this.mSTRING_LITERAL(), this.state.type = e3, this.state.channel = t3; + } finally { + } + }, mFIELD_ACCESS_UNQUOTED_STRING_LITERAL: function() { + try { + var e3 = this.FIELD_ACCESS_UNQUOTED_STRING_LITERAL, t3 = org.antlr.runtime.BaseRecognizer.DEFAULT_TOKEN_CHANNEL; + this.mPERIOD(), this.mUNQUOTED_STRING_LITERAL(), this.state.type = e3, this.state.channel = t3; + } finally { + } + }, mNON_SUPPORTED: function() { + try { + var e3 = this.NON_SUPPORTED, t3 = org.antlr.runtime.BaseRecognizer.DEFAULT_TOKEN_CHANNEL; + if (!(this.input.LA(1) >= "\0" && this.input.LA(1) <= "%" || this.input.LA(1) >= "'" && this.input.LA(1) <= "+" || this.input.LA(1) >= "-" && this.input.LA(1) <= "." || this.input.LA(1) >= ":" && this.input.LA(1) <= "=" || this.input.LA(1) >= "?" && this.input.LA(1) <= "@" || this.input.LA(1) >= "^" && this.input.LA(1) <= "`" || "{" == this.input.LA(1) || "}" == this.input.LA(1) || this.input.LA(1) >= "\x7F" && this.input.LA(1) <= "\xBF" || "\xD7" == this.input.LA(1) || "\xF7" == this.input.LA(1) || this.input.LA(1) >= "\u2000" && this.input.LA(1) <= "\u303F" || this.input.LA(1) >= "\u3190" && this.input.LA(1) <= "\u32FF" || this.input.LA(1) >= "\u3380" && this.input.LA(1) <= "\u33FF" || this.input.LA(1) >= "\u3D2E" && this.input.LA(1) <= "\u4DFF" || this.input.LA(1) >= "\uA000" && this.input.LA(1) <= "\uF8FF" || this.input.LA(1) >= "\uFB00" && this.input.LA(1) <= "\uFEFF" || this.input.LA(1) >= "\uFFF0" && this.input.LA(1) <= "\uFFFF")) { + var i3 = new org.antlr.runtime.MismatchedSetException(null, this.input); + throw this.recover(i3), i3; + } + this.input.consume(), this.state.type = e3, this.state.channel = t3; + } finally { + } + }, mTokens: function() { + switch (this.dfa9.predict(this.input)) { + case 1: + this.mBOOL_TRUE(); + break; + case 2: + this.mBOOL_FALSE(); + break; + case 3: + this.mNOT_SET(); + break; + case 4: + this.mOP_PLUS(); + break; + case 5: + this.mOP_MULT(); + break; + case 6: + this.mOP_DIV(); + break; + case 7: + this.mOP_MINUS(); + break; + case 8: + this.mOP_MOD(); + break; + case 9: + this.mOP_POW(); + break; + case 10: + this.mOP_NOT(); + break; + case 11: + this.mOP_EQU(); + break; + case 12: + this.mOP_NEQ(); + break; + case 13: + this.mOP_GT(); + break; + case 14: + this.mOP_GTE(); + break; + case 15: + this.mOP_LT(); + break; + case 16: + this.mOP_LTE(); + break; + case 17: + this.mOP_LOG_AND(); + break; + case 18: + this.mOP_LOG_OR(); + break; + case 19: + this.mOP_BIT_AND(); + break; + case 20: + this.mOP_BIT_INCL_OR(); + break; + case 21: + this.mOP_BIT_NOT(); + break; + case 22: + this.mBRACKET_LEFT(); + break; + case 23: + this.mBRACKET_RIGHT(); + break; + case 24: + this.mTERNARY_IF(); + break; + case 25: + this.mTERNARY_THEN(); + break; + case 26: + this.mPAREN_LEFT(); + break; + case 27: + this.mPAREN_RIGHT(); + break; + case 28: + this.mPERIOD(); + break; + case 29: + this.mCOMMA(); + break; + case 30: + this.mINTEGER(); + break; + case 31: + this.mDECIMAL(); + break; + case 32: + this.mUNQUOTED_STRING_LITERAL(); + break; + case 33: + this.mSTRING_LITERAL(); + break; + case 34: + this.mBAD_ESCAPE_STRING_LITERAL(); + break; + case 35: + this.mIDENTIFIER(); + break; + case 36: + this.mWS(); + break; + case 37: + this.mFIELD_ACCESS_IDENTIFIER(); + break; + case 38: + this.mFIELD_ACCESS_STRING_LITERAL(); + break; + case 39: + this.mFIELD_ACCESS_UNQUOTED_STRING_LITERAL(); + break; + case 40: + this.mNON_SUPPORTED(); + } + } }, true), org.antlr.lang.augmentObject(i2, { DFA6_eotS: "\uFFFF\uFFFF\uFFFF", DFA6_eofS: "\x07\uFFFF", DFA6_minS: '"\0\uFFFF"\0\uFFFF\0', DFA6_maxS: '"\uFFFF\uFFFFt\uFFFF\uFFFF\uFFFF', DFA6_acceptS: "\uFFFF\uFFFF\uFFFF", DFA6_specialS: "\uFFFF\uFFFF\uFFFF\0}>", DFA6_transitionS: ["", '"9\uFFA3', "", "9\uFFFF\uFFFF\uFFFF\uFFFF", '"9\uFFA3', "", '"9\uFFA3'] }), org.antlr.lang.augmentObject(i2, { DFA6_eot: org.antlr.runtime.DFA.unpackEncodedString(i2.DFA6_eotS), DFA6_eof: org.antlr.runtime.DFA.unpackEncodedString(i2.DFA6_eofS), DFA6_min: org.antlr.runtime.DFA.unpackEncodedStringToUnsignedChars(i2.DFA6_minS), DFA6_max: org.antlr.runtime.DFA.unpackEncodedStringToUnsignedChars(i2.DFA6_maxS), DFA6_accept: org.antlr.runtime.DFA.unpackEncodedString(i2.DFA6_acceptS), DFA6_special: org.antlr.runtime.DFA.unpackEncodedString(i2.DFA6_specialS), DFA6_transition: (function() { + var e3, t3 = [], n2 = i2.DFA6_transitionS.length; + for (e3 = 0; e3 < n2; e3++) t3.push(org.antlr.runtime.DFA.unpackEncodedString(i2.DFA6_transitionS[e3])); + return t3; + })() }), i2.DFA6 = function(e3) { + this.recognizer = e3, this.decisionNumber = 6, this.eot = i2.DFA6_eot, this.eof = i2.DFA6_eof, this.min = i2.DFA6_min, this.max = i2.DFA6_max, this.accept = i2.DFA6_accept, this.special = i2.DFA6_special, this.transition = i2.DFA6_transition; + }, org.antlr.lang.extend(i2.DFA6, org.antlr.runtime.DFA, { getDescription: function() { + return "470:20: ( STRING_LITERAL | UNQUOTED_STRING_LITERAL )"; + }, specialStateTransition: function(e3, t3) { + var i3 = e3, n2 = function(e4, t4) { + switch (e4) { + case 0: + var i4 = t4.LA(1); + if (e4 = -1, (e4 = '"' == i4 ? 5 : "\\" == i4 ? 3 : i4 >= "\0" && i4 <= "!" || i4 >= "#" && i4 <= "[" || i4 >= "]" && i4 <= "\uFFFF" ? 4 : 2) >= 0) return e4; + break; + case 1: + var n3 = t4.LA(1); + if (e4 = -1, (e4 = "\\" == n3 ? 3 : n3 >= "\0" && n3 <= "!" || n3 >= "#" && n3 <= "[" || n3 >= "]" && n3 <= "\uFFFF" ? 4 : '"' == n3 ? 5 : 2) >= 0) return e4; + break; + case 2: + var r3 = t4.LA(1); + if (e4 = -1, (e4 = '"' == r3 ? 5 : "\\" == r3 ? 3 : r3 >= "\0" && r3 <= "!" || r3 >= "#" && r3 <= "[" || r3 >= "]" && r3 <= "\uFFFF" ? 4 : 2) >= 0) return e4; + } + }.call(this.recognizer, e3, t3); + if (!org.antlr.lang.isUndefined(n2)) return n2; + var r2 = new org.antlr.runtime.NoViableAltException(this.getDescription(), 6, i3, t3); + throw this.error(r2), r2; + }, dummy: null }), org.antlr.lang.augmentObject(i2, { DFA9_eotS: "\uFFFF \uFFFF+!.0 \uFFFF7\uFFFF;<\uFFFF \f\uFFFF E\x07\uFFFFF\uFFFF<\uFFFF N\uFFFFF\uFFFF<P \uFFFFF\uFFFFS \uFFFF V\uFFFF", DFA9_eofS: "W\uFFFF", DFA9_minS: '\0raO\uFFFF=NR \uFFFF"\uFFFF.\0\uFFFFulT\f\uFFFFD0\x07\uFFFF\0\uFFFF"\0\uFFFFes_0\uFFFF"\0\uFFFF\00eS\uFFFF\0\uFFFF0E\uFFFFT0\uFFFF', DFA9_maxS: "\uFFFFraO\uFFFF=nr \uFFFF\uFFEF\uFFFF9\uFFFF\uFFFFulT\f\uFFFFd\uFFEF\x07\uFFFF\uFFFF\uFFFFt\uFFFF\uFFFFes_\uFFEF\uFFFFt\uFFFF\uFFFF\uFFFF\uFFEFeS\uFFFF\uFFFF\uFFFF\uFFEFE\uFFFFT\uFFEF\uFFFF", DFA9_acceptS: `\uFFFF\x07\b \uFFFF\x1B\uFFFF\uFFFF"#$#(\uFFFF\x07\b \f +\v\r\uFFFF\x1B%\uFFFF \uFFFF!$\uFFFF'\uFFFF&\uFFFF\uFFFF\uFFFF\uFFFF`, DFA9_specialS: "\x1B\uFFFF\uFFFF\uFFFF \uFFFF\0\uFFFF\uFFFF\x07\uFFFF}>", DFA9_transitionS: [" !!!\n!\b!\x07\n\x1B!\r\v\f!\f \v  ! \b   !!A! ! !\u1F08 \u1040!\u0150 \u0170!\x80 \x80!\u092E \u10D2!\u5200 \u5900!\u0200 \u0400!\xF0 !", '"', "#", "$", "", "", "", "", "", "", "*", ",", "-", "/", "1\uFFFF1", "2\uFFFF2", "", "", "", "", "", "", "", "", "", ":\uFFFF9\v\uFFFF\n8\x07\uFFFF9\uFFFF9E\uFFFF9\uFFFF9\uFFFF\u1F089\u1040\uFFFF\u01509\u0170\uFFFF\x809\x80\uFFFF\u092E9\u10D2\uFFFF\u52009\u5900\uFFFF\u02009\u0400\uFFFF\xF09", "", "8\uFFFF\n\x1B", '">?9>=\uFFA3>', "", "", "", "", "", "A", "B", "C", "", "", "", "", "", "", "", "", "", "", "", "", "D\uFFFFD", "\n \x07\uFFFF \uFFFF \uFFFF E\uFFFF \uFFFF \uFFFF\u1F08 \u1040\uFFFF\u0150 \u0170\uFFFF\x80 \x80\uFFFF\u092E \u10D2\uFFFF\u5200 \u5900\uFFFF\u0200 \u0400\uFFFF\xF0 ", "", "", "", "", "", "", "", '"HI9HG\uFFA3H', "", "", "J9\uFFFFJ\uFFFFJ\uFFFFJ\uFFFFJ", '">?9>=\uFFA3>', "", "", "K", "L", "M", "\n \x07\uFFFF \uFFFF \uFFFF E\uFFFF \uFFFF \uFFFF\u1F08 \u1040\uFFFF\u0150 \u0170\uFFFF\x80 \x80\uFFFF\u092E \u10D2\uFFFF\u5200 \u5900\uFFFF\u0200 \u0400\uFFFF\xF0 ", "", "", "O9\uFFFFO\uFFFFO\uFFFFO\uFFFFO", '"HI9HG\uFFA3H', "", '">?9>=\uFFA3>', "\n \x07\uFFFF \uFFFF \uFFFF E\uFFFF \uFFFF \uFFFF\u1F08 \u1040\uFFFF\u0150 \u0170\uFFFF\x80 \x80\uFFFF\u092E \u10D2\uFFFF\u5200 \u5900\uFFFF\u0200 \u0400\uFFFF\xF0 ", "Q", "R", "", '"HI9HG\uFFA3H', "", "\n \x07\uFFFF \uFFFF \uFFFF E\uFFFF \uFFFF \uFFFF\u1F08 \u1040\uFFFF\u0150 \u0170\uFFFF\x80 \x80\uFFFF\u092E \u10D2\uFFFF\u5200 \u5900\uFFFF\u0200 \u0400\uFFFF\xF0 ", "T", "", "U", "\n \x07\uFFFF \uFFFF \uFFFF E\uFFFF \uFFFF \uFFFF\u1F08 \u1040\uFFFF\u0150 \u0170\uFFFF\x80 \x80\uFFFF\u092E \u10D2\uFFFF\u5200 \u5900\uFFFF\u0200 \u0400\uFFFF\xF0 ", ""] }), org.antlr.lang.augmentObject(i2, { DFA9_eot: org.antlr.runtime.DFA.unpackEncodedString(i2.DFA9_eotS), DFA9_eof: org.antlr.runtime.DFA.unpackEncodedString(i2.DFA9_eofS), DFA9_min: org.antlr.runtime.DFA.unpackEncodedStringToUnsignedChars(i2.DFA9_minS), DFA9_max: org.antlr.runtime.DFA.unpackEncodedStringToUnsignedChars(i2.DFA9_maxS), DFA9_accept: org.antlr.runtime.DFA.unpackEncodedString(i2.DFA9_acceptS), DFA9_special: org.antlr.runtime.DFA.unpackEncodedString(i2.DFA9_specialS), DFA9_transition: (function() { + var e3, t3 = [], n2 = i2.DFA9_transitionS.length; + for (e3 = 0; e3 < n2; e3++) t3.push(org.antlr.runtime.DFA.unpackEncodedString(i2.DFA9_transitionS[e3])); + return t3; + })() }), i2.DFA9 = function(e3) { + this.recognizer = e3, this.decisionNumber = 9, this.eot = i2.DFA9_eot, this.eof = i2.DFA9_eof, this.min = i2.DFA9_min, this.max = i2.DFA9_max, this.accept = i2.DFA9_accept, this.special = i2.DFA9_special, this.transition = i2.DFA9_transition; + }, org.antlr.lang.extend(i2.DFA9, org.antlr.runtime.DFA, { getDescription: function() { + return "1:1: Tokens : ( BOOL_TRUE | BOOL_FALSE | NOT_SET | OP_PLUS | OP_MULT | OP_DIV | OP_MINUS | OP_MOD | OP_POW | OP_NOT | OP_EQU | OP_NEQ | OP_GT | OP_GTE | OP_LT | OP_LTE | OP_LOG_AND | OP_LOG_OR | OP_BIT_AND | OP_BIT_INCL_OR | OP_BIT_NOT | BRACKET_LEFT | BRACKET_RIGHT | TERNARY_IF | TERNARY_THEN | PAREN_LEFT | PAREN_RIGHT | PERIOD | COMMA | INTEGER | DECIMAL | UNQUOTED_STRING_LITERAL | STRING_LITERAL | BAD_ESCAPE_STRING_LITERAL | IDENTIFIER | WS | FIELD_ACCESS_IDENTIFIER | FIELD_ACCESS_STRING_LITERAL | FIELD_ACCESS_UNQUOTED_STRING_LITERAL | NON_SUPPORTED );"; + }, specialStateTransition: function(e3, t3) { + var i3 = e3, n2 = function(e4, t4) { + switch (e4) { + case 0: + var i4 = t4.LA(1); + if (e4 = -1, (e4 = '"' == i4 ? 73 : "\\" == i4 ? 71 : i4 >= "\0" && i4 <= "!" || i4 >= "#" && i4 <= "[" || i4 >= "]" && i4 <= "\uFFFF" ? 72 : 70) >= 0) return e4; + break; + case 1: + var n3 = t4.LA(1); + if (e4 = -1, (e4 = "\\" == n3 ? 61 : n3 >= "\0" && n3 <= "!" || n3 >= "#" && n3 <= "[" || n3 >= "]" && n3 <= "\uFFFF" ? 62 : '"' == n3 ? 63 : 60) >= 0) return e4; + break; + case 2: + var r3 = t4.LA(1); + if (e4 = -1, (e4 = '"' == r3 ? 73 : "\\" == r3 ? 71 : r3 >= "\0" && r3 <= "!" || r3 >= "#" && r3 <= "[" || r3 >= "]" && r3 <= "\uFFFF" ? 72 : 70) >= 0) return e4; + break; + case 3: + var o = t4.LA(1); + if (e4 = -1, (e4 = "\\" == o ? 61 : o >= "\0" && o <= "!" || o >= "#" && o <= "[" || o >= "]" && o <= "\uFFFF" ? 62 : '"' == o ? 63 : 60) >= 0) return e4; + break; + case 4: + var a = t4.LA(1); + if (e4 = -1, (e4 = "\\" == a ? 61 : a >= "\0" && a <= "!" || a >= "#" && a <= "[" || a >= "]" && a <= "\uFFFF" ? 62 : '"' == a ? 63 : 60) >= 0) return e4; + break; + case 5: + var s = t4.LA(1); + if (e4 = -1, (e4 = "\\" == s ? 71 : s >= "\0" && s <= "!" || s >= "#" && s <= "[" || s >= "]" && s <= "\uFFFF" ? 72 : '"' == s ? 73 : 70) >= 0) return e4; + break; + case 6: + var l = t4.LA(1); + if (e4 = -1, "t" == l ? e4 = 1 : "f" == l ? e4 = 2 : "N" == l ? e4 = 3 : "+" == l ? e4 = 4 : "*" == l ? e4 = 5 : "/" == l ? e4 = 6 : "-" == l ? e4 = 7 : "%" == l ? e4 = 8 : "^" == l ? e4 = 9 : "!" == l ? e4 = 10 : "=" == l ? e4 = 11 : ">" == l ? e4 = 12 : "<" == l ? e4 = 13 : "A" == l || "a" == l ? e4 = 14 : "O" == l || "o" == l ? e4 = 15 : "&" == l ? e4 = 16 : "|" == l ? e4 = 17 : "~" == l ? e4 = 18 : "[" == l ? e4 = 19 : "]" == l ? e4 = 20 : "?" == l ? e4 = 21 : ":" == l ? e4 = 22 : "(" == l ? e4 = 23 : ")" == l ? e4 = 24 : "." == l ? e4 = 25 : "," == l ? e4 = 26 : l >= "0" && l <= "9" ? e4 = 27 : '"' == l ? e4 = 28 : "\\" == l ? e4 = 29 : "$" == l ? e4 = 30 : l >= " " && l <= "\n" || "\r" == l || " " == l ? e4 = 31 : l >= "B" && l <= "M" || l >= "P" && l <= "Z" || l >= "b" && l <= "e" || l >= "g" && l <= "n" || l >= "p" && l <= "s" || l >= "u" && l <= "z" || l >= "\xC0" && l <= "\xD6" || l >= "\xD8" && l <= "\xF6" || l >= "\xF8" && l <= "\u1FFF" || l >= "\u3040" && l <= "\u318F" || l >= "\u3300" && l <= "\u337F" || l >= "\u3400" && l <= "\u3D2D" || l >= "\u4E00" && l <= "\u9FFF" || l >= "\uF900" && l <= "\uFAFF" || l >= "\uFF00" && l <= "\uFFEF" ? e4 = 32 : (l >= "\0" && l <= "\b" || l >= "\v" && l <= "\f" || l >= "" && l <= "" || "#" == l || "'" == l || ";" == l || "@" == l || l >= "_" && l <= "`" || "{" == l || "}" == l || l >= "\x7F" && l <= "\xBF" || "\xD7" == l || "\xF7" == l || l >= "\u2000" && l <= "\u303F" || l >= "\u3190" && l <= "\u32FF" || l >= "\u3380" && l <= "\u33FF" || l >= "\u3D2E" && l <= "\u4DFF" || l >= "\uA000" && l <= "\uF8FF" || l >= "\uFB00" && l <= "\uFEFF" || l >= "\uFFF0" && l <= "\uFFFF") && (e4 = 33), e4 >= 0) return e4; + } + }.call(this.recognizer, e3, t3); + if (!org.antlr.lang.isUndefined(n2)) return n2; + var r2 = new org.antlr.runtime.NoViableAltException(this.getDescription(), 9, i3, t3); + throw this.error(r2), r2; + }, dummy: null }), e2.exports = i2; + }, 44076: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.parseExpression = function(e3) { + if (e3.expression.isBlank) { + if (e3.expression.consumesSecureData = false, e3.expression.options.isOptional) { + const t4 = e3.expression; + if (!e3.expression.type.isMatch(T.globalTypes.audio, g.settings.exact) || t4.isNoValueMode || t4.options.allowBlankAudio) { + if (t4.isNoValueMode || !t4.shouldBeNoValue) { + const i4 = e3.expression.options.getModeNoValueRuntimeEvaluationStr(e3.expression); + return i4 && L(e3, i4), e3.expression.isAudioExpression && t4.isNoValueMode ? e3.resultExpression = m.expressionItems.emp(e3.expression.type, e3.expression.options) : e3.resultExpression = m.expressionItems.empOrEnf(e3.expression.type, e3.expression.options), void (e3.success = true); + } + return x(e3, w.expression.notSet), void (e3.success = false); + } + return x(e3, w.audio.blankAudioExpression), void (e3.success = false); + } + return e3.success = false, void x(e3, w.expression.notSet); + } + if (e3.expression.text && e3.expression.text.length > e3._maxExpressionSize) return e3.expression.consumesSecureData = false, void x(e3, (0, r2.sprintf)(w.expression.expressionLengthToLong, e3.expression.text.length, e3._maxExpressionSize)); + const t3 = e3.expression.text, i3 = (function(e4) { + const t4 = new A.runtime.ANTLRStringStream(e4), i4 = new b(t4); + return i4.displayRecognitionError = function(e5, t5) { + }, i4; + })(t3), n3 = (function(e4, t4) { + const i4 = new A.runtime.CommonTokenStream(e4), n4 = new E(i4); + return n4.displayRecognitionError = function(i5, n5) { + U(e4, t4); + }, n4; + })(i3, e3._lineExtents); + try { + e3.success = (function(e4, t4, i4, n4) { + var s2, l2, u2; + !(function(e5, t5) { + if (e5._lineExtents.length = 0, t5) { + const i5 = t5.split("\n"); + if (1 === i5.length) e5._lineExtents[1] = 0; + else { + let t6 = 0; + for (let n5 = 0; n5 < i5.length; n5++) e5._lineExtents[n5 + 1] = t6, i5[n5] && (t6 += i5[n5].length), t6++; + } + } + })(e4, t4); + const d2 = i4.designerexpression(), c2 = (function(e5, t5) { + const i5 = e5.getStop(); + if (!i5) return !(!e5.tree || -1 !== e5.tree.startIndex) && (t5 ? t5.length - t5.trim().length + 1 : 1); + let n5 = i5.getStopIndex(); + return !(n5 < 0) && (n5++, !(n5 >= t5.trim().length) && n5 + 1); + })(d2, t4); + if (c2) return V(e4, c2); + const p2 = d2.getTree(); + if (i4.getNumberOfSyntaxErrors() > 0) return V(e4, U(n4, e4._lineExtents)); + if (e4._languagesSnapshot = e4.languages, e4._rootItem = m.expressionItems.root(), !J(e4, p2, [e4._rootItem], true)) return false; + if (e4._parens.length > 0) return x(e4, (0, r2.sprintf)(w.expression.missingCloseParenAtPosition, e4._parens[e4._parens.length - 1]), e4._parens[e4._parens.length - 1]), false; + if (e4._brackets.length > 0) return x(e4, (0, r2.sprintf)(w.expression.missingCloseBracketAtPosition, e4._brackets[e4._brackets.length - 1]), e4._brackets[e4._brackets.length - 1]), false; + if (e4.resultExpression = e4._rootItem.getOperands()[0], !Y(0, e4, e4.resultExpression, false, true)) return false; + if (!e4.expression.originalType || e4.expression.type === e4.expression.originalType || e4.expression.isCollectionExpression || e4.expression.type.isCustomType || (e4.expression.type = e4.expression.originalType), null === (s2 = e4.expression.options) || void 0 === s2 ? void 0 : s2.exprTextMustBeVarOrVarPropRef) if (e4.expression.options.exprTextRootVariableNameMustBe) { + if (!e4.resultExpression.getIsNamedVariableRef(e4.expression.options.exprTextRootVariableNameMustBe)) return x(e4, (0, r2.sprintf)(w.expression.mustReferenceVariable, e4.expression.options.exprTextRootVariableNameMustBe)), false; + } else { + if (!e4.resultExpression.isVariableRef) return x(e4, w.expression.mustBeVariableReference), false; + { + const t5 = e4.resultExpression.getVariableNameIfRef(), i5 = t5 && (null === (l2 = e4.expression.parentFlow) || void 0 === l2 ? void 0 : l2.variableGroup.getVariableByName(t5, e4.expression.getParentTask())); + if (e4.expression.options.isOutput && (null == i5 ? void 0 : i5.isReadOnly) && !e4.expression.options.outputExprTextAllowsReadOnlyVarType) return x(e4, (0, r2.sprintf)(w.expression.variableIsReadOnly, t5)), false; + } + } + if ((null === (u2 = e4.expression.options) || void 0 === u2 ? void 0 : u2.isOutput) && e4.properties && e4.properties.some((e5) => { + var t5; + return 0 === e5.depth && (null === (t5 = e5.type) || void 0 === t5 ? void 0 : t5.isCustomType); + })) return x(e4, (0, r2.sprintf)(w.expression.variableIsReadOnly, e4.expression.text)), false; + if (!(function(e5) { + const t5 = e5.expression.type; + if (!t5 || !e5.resultExpression) return true; + if (e5.resultExpression.type.isMatch(t5, g.settings.exact)) { + if (e5.resultExpression.isLit && e5.expression.options && e5.expression.options.literalValidatorName) { + const t6 = h.expressionDataService._validateLiteralWithProvider(e5.expression.options.literalValidatorName, e5.resultExpression, e5.expression); + if (t6.parameterErrorStr) return x(e5, t6.parameterErrorStr), false; + } + return true; + } + if (e5.resultExpression.isNotSet && !t5.isCollection && (!e5.expression.options || !e5.expression.options.usedAsReplacementValueInOtherExpressions)) return e5.resultExpression.type = t5, true; + if (e5.expression.type.isAny) return e5.expression.type = e5.resultExpression._type, true; + let i5, n5; + return e5.expression.options && e5.expression.options.exprTextMustBeVarOrVarPropRef || (i5 = m.expressionItems.conversionFuncWrapper(e5.resultExpression, t5), !i5 || (n5 = e5.resultExpression.type, e5.resultExpression = i5, !Y(0, e5, e5.resultExpression, true))) ? (i5 ? x(e5, (0, r2.sprintf)(w.expression.cannotConvertInputTypeWithFunction, n5.displayString, t5.displayString, i5.getTextWithFuncOpTextFallback())) : m.expressionItems.isCollectionCreatableFromMakeList(e5.resultExpression, t5) ? x(e5, (0, r2.sprintf)(w.expression.suggestMakeListForCollectionCreation, e5.resultExpression.type.displayString, t5.displayString, e5.resultExpression.text)) : x(e5, (0, r2.sprintf)(w.expression.cannotConvertInputType, e5.resultExpression.type.displayString, t5.displayString)), false) : (L(e5, (0, r2.sprintf)(w.expression.functions.implicitCastAdded, i5.rootText, n5.displayString, t5.displayString), void 0, i5.rootText), e5.implicitCastAdded = true, e5.fixes = [(0, a.createFixImplicitCast)(n5, t5, i5.rootText, e5.expression.text)], e5.implicitCastFunction = i5.rootText, true); + })(e4)) return false; + if (e4.resultExpression.isTypeNotSet) return x(e4, w.expression.expressionIsNotSetType), false; + if (e4.expression.options && e4.expression.options.facets) { + const t5 = e4.expression.options.facets.validateExpressionItem(e4.resultExpression, e4); + if (!t5.isValid) return x(e4, t5.message), false; + t5.isWarning && k(e4, t5.message); + } + return (function(e5) { + if (e5.languages.length < 1 || !e5.expression.options || !e5.expression.options.durationFacets || !e5.metaData || !e5.metaData.references) return true; + o.default.find(e5.metaData.references, function(t5) { + if (T.globalTypes.prompt.dataType === t5.type) { + const i5 = _.checkPromptAudioDuration(e5.expression, t5.id); + if (i5) return k(e5, i5), true; + } + }); + })(e4), (function(e5) { + let t5 = true; + if (e5.resultExpression && e5.resultExpression.ToAudioBlank) { + const i5 = e5.resultExpression.getOperands(); + if (i5 && 1 === i5.length && i5[0].lit) { + const n5 = i5[0].lit, r3 = parseInt(n5.text); + if (o.default.isActualNumber(r3)) { + const i6 = _.checkBlankAudioLength(e5.expression, r3); + i6 && (t5 = false, k(e5, i6)); + } + } + } + })(e4), true; + })(e3, t3, n3, i3), e3.success ? (e3.resultExpression.updateExprText(), e3.resultExpression.finishForOutput(), e3.expression.consumesSecureData = e3.consumesSecureData) : e3.expression.consumesSecureData = false; + } catch (t4) { + console.error(t4), e3.success = false, e3.expression.consumesSecureData = false, x(e3, w.expression.internalErrorExpression); + } + !(function(e4, t4) { + e4.displayRecognitionError = null, t4.displayRecognitionError = null; + })(i3, n3); + }; + const n2 = i2(31635), r2 = i2(17604), o = n2.__importDefault(i2(92140)), a = (n2.__importStar(i2(12847)), i2(34630)), s = n2.__importDefault(i2(98114)), l = n2.__importStar(i2(85705)), u = n2.__importStar(i2(66381)), d = n2.__importStar(i2(98442)), c = i2(12179), p = (i2(50474), n2.__importDefault(i2(73198))), _ = n2.__importStar(i2(33653)), h = i2(27491), m = i2(98552), g = n2.__importStar(i2(9345)), f = i2(71615), T = i2(14394), y = i2(2899), S = i2(26403), A = i2(40810), N = i2(92669), O = i2(19819), I = i2(19502), v = i2(88276), C = i2(4059), b = i2(44051), E = i2(36470), R = i2(24032).getTopic("parsedExpression"), w = i2(47957); + function D(e3, t3, i3) { + t3.getOperands().push(i3); + } + function P(e3, t3, i3, n3) { + t3.getOperands().push(n3), i3.push(n3); + } + function M(e3) { + return e3.resultType === S.ParseResultTypes.error && e3.resultMessage; + } + function F(e3, t3, i3, n3, r3, o2, a2) { + e3.resultType = t3, e3.resultMessage = i3, e3.resultPosition = n3 > 0 ? n3 - 1 : -1, e3.resultReference = r3, e3.resultHelpTopic = o2, e3.errorBreaksStandardModeParsing = a2; + } + function L(e3, t3, i3, n3, r3) { + switch (e3.resultType) { + case S.ParseResultTypes.error: + case S.ParseResultTypes.warn: + break; + default: + F(e3, S.ParseResultTypes.info, t3, i3, n3, r3); + } + } + function x(e3, t3, i3, n3, r3, o2) { + F(e3, S.ParseResultTypes.error, t3, i3, n3, r3, o2); + } + function k(e3, t3, i3, n3, r3) { + F(e3, S.ParseResultTypes.warn, t3, i3, n3, r3); + } + function V(e3, t3) { + return x(e3, (0, r2.sprintf)(w.expression.errorAtPosition, t3), t3, null, null, true), false; + } + function U(e3, t3) { + return e3 ? t3[e3.getLine()] + e3.getCharPositionInLine() + 1 : -1; + } + function B(e3, t3) { + return e3 ? t3[e3.line] + e3.charPositionInLine + 1 : -1; + } + function G(e3, t3) { + if (1 === t3.getChildCount()) { + const i3 = t3.getChild(0), n3 = (0 === parseFloat(i3.getText()) ? "" : "-") + i3.getText(), o2 = B(t3.token, e3._lineExtents); + switch (i3.getType()) { + case b.INTEGER: + if (m.expressionItems.checkIntStr(n3)) return m.expressionItems.literal(o2, n3, T.globalTypes.integer); + x(e3, (0, r2.sprintf)(w.expression.intValueLessThanMin, n3, o2, p.default.minInt), o2); + break; + case b.DECIMAL: + if (m.expressionItems.checkDecimalStr(n3)) return m.expressionItems.literal(o2, n3, T.globalTypes.decimal); + x(e3, (0, r2.sprintf)(w.expression.decimalValueTooMuchPrecision, n3, o2, p.default.maxPrecision), o2); + } + } + return null; + } + function j(e3, t3, i3, n3, a2) { + if (n3.isUnavailable) return x(e3, (0, r2.sprintf)(w.expression.unavailablePropertyInExprText, (0, r2.sprintf)(w.expression.functions.funcOpPosPrefix, t3, i3), n3.name), i3), false; + if (!n3.usageValidation) return true; + if ("supportedLanguageContexts" === n3.usageValidation) return (function(e4, t4, i4, n4, a3) { + if (0 === e4._languagesSnapshot.length) return true; + if (e4.expression && e4.expression.parentFlow && e4.expression.parentFlow.isNluFlow) return true; + const s2 = o.default.filter(e4._languagesSnapshot, function(e5) { + return !e5.supportedLanguageContexts || !e5.supportedLanguageContexts[n4.id]; + }); + if (s2.length > 0) { + const l2 = s2.length > 1 ? w.expression.functions.propertyEnumUsageNotSupportedInLanguages : w.expression.functions.propertyEnumUsageNotSupportedInLanguage, c2 = u.getListDisplayString(o.default.map(s2, function(e5) { + return d.getLanguageNameAndCodeDisplay(e5.id); + })); + return x(e4, (0, r2.sprintf)(l2, t4 || n4.name, t4 ? i4 : a3, c2), t4 ? i4 : a3), false; + } + return true; + })(e3, t3, i3, n3, a2); + throw (0, r2.sprintf)("Unsupported property usage validation '%1$s' so usage cannot be validated and expression will be treated in error.", n3.usageValidation); + } + function W(e3) { + e3.pop(); + } + function q(e3, t3, i3) { + var n3, a2; + const s2 = t3.length; + if (!t3 || s2 < 2) return null; + let d2 = t3[0].getText() + t3[1].getText(); + const p2 = e3.expression.addVariableOrPromptReference(d2); + if (!p2) return null; + if (p2.isPromptContainer && !p2.type.isAvailableForFlow(e3.expression.parentFlow)) return x(e3, (0, r2.sprintf)(w.expression.variableReferenceNotValidInvalidType, (0, r2.sprintf)(w.expression.functions.funcOpPosPrefix, d2, i3), T.globalTypes.prompt.displayString, u.getFlowTypesDisplayString([null === (n3 = e3.expression.parentFlow) || void 0 === n3 ? void 0 : n3.type])), i3), null; + if (p2.isUnavailable) return x(e3, (0, r2.sprintf)(w.expression.unavailableVariableInExprText, (0, r2.sprintf)(w.expression.functions.funcOpPosPrefix, d2, i3)), i3), null; + if (p2.isSecure && e3.expression.options && !e3.expression.options.allowSecure) return x(e3, (0, r2.sprintf)(w.expression.secureCannotBeRead, w.actions.extractSecureData, d2), i3), null; + if (p2.isSecure && (e3.consumesSecureData = true), p2.isInternal && !e3.expression.isInternal) return null; + if (p2.getIsDeprecatedNameMatch && p2.getIsDeprecatedNameMatch(d2) && L(e3, (0, r2.sprintf)(w.expression.deprecatedVariableName, d2, p2.name), i3, null, c.helpTopics.deprecatedVariableUsages), p2.isPromptContainer && !p2.isMissingAudioOrTtsForLanguages(e3.parentFlow, e3.languages, e3.expression)) return x(e3, e3.expression.getPromptMissingResourcesErrorString(p2), i3), null; + if (e3.expression.options && e3.expression.options.restrictToFlowGlobalVariables && !p2.isGlobalVariable) { + const t4 = []; + return o.default.each(e3.expression.parentFlow.availableVariableScopes, (e4) => { + t4.push(`'${e4}.'`); + }), x(e3, `The variable reference '${p2.name}' is not valid because '${p2.scope}.' variables cannot be referenced in expression text on the '${e3.expression.label}' setting. This restriction will be removed later but in the meantime it is valid to reference these variables in expression text: ${u.getListDisplayString(t4, false, true)}`, i3), null; + } + if ((null === (a2 = e3.expression.options) || void 0 === a2 ? void 0 : a2.validVariableReferenceCallback) && !e3.expression.options.validVariableReferenceCallback(p2, e3.expression)) return x(e3, (0, r2.sprintf)(w.expression.variableReferenceNotValid, p2.name, i3), i3), null; + if (e3.expression.isOutput && !e3.expression.options.exprTextMustBeVarOrVarPropRef && p2.isReadOnly && !e3.expression.options.outputExprTextAllowsReadOnlyVarType && !e3.expression.type.isMatch(p2.type, g.settings.exact)) return x(e3, (0, r2.sprintf)(w.expression.variableIsReadOnly, d2), i3), null; + let _2, h2 = m.expressionItems.reference(i3, p2, d2), f2 = 2; + for (; f2 < s2; ) { + const n4 = t3[f2], r3 = n4.getText(), a3 = B(n4.token, e3._lineExtents), u2 = m.expressionItems.fieldAccess(a3), c2 = r3.substring(1, r3.length), p3 = h2.type.getPropertyDefinition(c2, true); + if (!p3) return null; + if (d2 += r3, !j(e3, d2, h2.position, p3, a3)) return null; + let g2; + if (_2 && (g2 = _2[p3.name]), g2 || p3.propertyResolvedLiteralValue) { + if (f2 + 1 !== s2) return null; + let e4, n5 = t3[0].getText(); + for (let e5 = 1; e5 <= f2; e5++) n5 += t3[e5].getText(); + if (p3.propertyResolvedLiteralValue) p3.type === T.globalTypes.integer && (e4 = m.expressionItems.intLiteral(i3, parseInt(p3.propertyResolvedLiteralValue))); + else switch (g2.resolver) { + case y.propertyToLiteralResolverNames.propIDToConversationType: + var S2 = o.default.find(N, function(e5) { + return e5.id = g2.valueToResolve; + }); + S2 && (e4 = m.expressionItems.stringLiteral(i3, S2.id, T.globalTypes.string)); + break; + case y.propertyToLiteralResolverNames.propIDToCountryCode: + var A2 = l.countryCodes[g2.valueToResolve]; + A2 && (e4 = m.expressionItems.stringLiteral(i3, A2, T.globalTypes.string)); + break; + case y.propertyToLiteralResolverNames.propIDToCurrencyCode: + var b2 = I[g2.valueToResolve]; + b2 && (e4 = m.expressionItems.stringLiteral(i3, b2.code, T.globalTypes.string)); + break; + case y.propertyToLiteralResolverNames.propIDToDialingCode: + var E2 = l.countryMap[g2.valueToResolve]; + E2 && (e4 = m.expressionItems.stringLiteral(i3, E2.dialingCode, T.globalTypes.string)); + break; + case y.propertyToLiteralResolverNames.propIDToLanguageTag: + var P2 = O.propIdLanguages[g2.valueToResolve]; + P2 && (e4 = m.expressionItems.stringLiteral(i3, P2.id ? P2.id.toLowerCase() : P2.id, T.globalTypes.string)); + break; + case y.propertyToLiteralResolverNames.propIDToSendResponseBodyType: + var M2 = o.default.find(v, function(e5) { + return e5.id = g2.valueToResolve; + }); + M2 && (e4 = m.expressionItems.stringLiteral(i3, M2.id, T.globalTypes.string)); + break; + case y.propertyToLiteralResolverNames.propIDToSurveyDisposition: + var F2 = o.default.find(C, function(e5) { + return e5.id = g2.valueToResolve; + }); + F2 && (e4 = m.expressionItems.stringLiteral(i3, F2.id, T.globalTypes.string)); + } + return e4 ? (e4.addAdditionalProperties({ resolvedProperty: n5 }), e4) : (R.error("Internal error - the '" + g2.resolver + "' resolver could not resolve the value '" + g2.valueToResolve + "'"), null); + } + _2 = p3.propertyToLiteralResolvers, D(e3._rootItem, u2, m.expressionItems.propAccessLiteral(a3, c2, p3.id, p3.group)), D(e3._rootItem, u2, h2), h2 = u2, h2.type = p3.type, f2++; + } + return h2; + } + function Y(e3, t3, i3, n3, a2) { + i3.setContainerExpressionMetaData(t3); + const l2 = i3.getOperands(); + if (!l2) return true; + if (!n3) { + const i4 = e3 + 1; + for (let e4 = 0; e4 < l2.length; e4++) if (!Y(i4, t3, l2[e4], void 0, void 0)) return false; + } + if (e3 > t3._maxCallStack) return x(t3, (0, r2.sprintf)(w.expression.tooManyNestedCalls, (0, r2.sprintf)(w.expression.functions.funcOpPosPrefix, i3.getTextWithFuncOpTextFallback(), i3.position), e3, t3._maxCallStack), i3.position, i3.getTextWithFuncOpTextFallback()), false; + const d2 = h.expressionDataService.getOverload(i3, t3._languagesSnapshot, t3.expression); + if (!d2.success) return x(t3, d2.error, d2.position, d2.operand, null, true), false; + const c2 = d2.result; + if (c2.mustBeLastOperationOrFunction && !a2) return x(t3, (0, r2.sprintf)(w.expression.functions.mustBeLastOperation, (0, r2.sprintf)(w.expression.functions.funcOpPosPrefix, i3.getTextWithFuncOpTextFallback(), i3.position)), i3.position, i3.getTextWithFuncOpTextFallback()), false; + if (c2.supportedFlowTypes && t3.expression.parentFlow) { + const e4 = t3.expression.parentFlow; + let n4; + if (t3.expression.type.isMatch(T.globalTypes.audio, g.settings.exact)) { + n4 = e4.getDestinationFlowTypesThatSupportTtsAndAsrAtRuntime(); + const a3 = o.default.difference(n4, o.default.values(c2.supportedFlowTypes)); + a3.length && L(t3, (0, r2.sprintf)(w.commonModule.notAvailableInFlowTypes, u.getFlowTypesDisplayString(a3)), i3.position); + } else n4 = e4.destinationFlowTypes; + for (let e5 = 0; e5 < n4.length; e5++) { + const o2 = n4[e5]; + if (!c2.supportedFlowTypes[o2]) { + let e6; + const n5 = (0, r2.sprintf)(w.expression.functions.funcOpPosPrefix, i3.getTextWithFuncOpTextFallback(), i3.position); + switch (l2.length) { + case 0: + e6 = (0, r2.sprintf)(w.expression.functions.notAvailableInFlowTypeNoParm, n5, s.default.getFlowTypeDisplayName(o2)); + break; + case 1: + e6 = (0, r2.sprintf)(w.expression.functions.notAvailableInFlowTypeOneParm, n5, u.getOperandListDisplayString(l2), s.default.getFlowTypeDisplayName(o2)); + break; + default: + e6 = (0, r2.sprintf)(w.expression.functions.notAvailableInFlowTypeMoreThanOneParm, n5, u.getOperandListDisplayString(l2), s.default.getFlowTypeDisplayName(o2)); + } + return x(t3, e6, i3.position, i3.getTextWithFuncOpTextFallback()), false; + } + } + } + if (c2.maxOperands) { + const e4 = i3.getOperands(); + if (e4 && e4.length > c2.maxOperands) return x(t3, (0, r2.sprintf)(w.expression.functions.maxOperandsExceeded, (0, r2.sprintf)(w.expression.functions.funcOpPosPrefix, i3.getTextWithFuncOpTextFallback(), i3.position), c2.maxOperands), i3.position, i3.getTextWithFuncOpTextFallback()), false; + } + let p2, _2; + if (_2 = c2.resultResolver ? c2.resultResolver(c2, i3) : f.expressionResolvers.resolveNotSetTypedOperands(c2, i3), _2.property) { + if (_2.property.isReadOnly && t3.expression.isOutput && 0 === e3) return x(t3, (0, r2.sprintf)(w.expression.variableIsReadOnly, t3.expression.text), _2.position, _2.operand), false; + _2.property.depth = e3, t3.properties.push(_2.property), _2.property.checkVersion(t3); + } + return _2.success ? (p2 = c2.returnType.isAny ? _2.type : c2.returnType, i3.type = p2, t3.checkVersion(c2.version), true) : (x(t3, _2.error, _2.position, _2.operand), false); + } + function H(e3, t3, i3) { + const n3 = i3[i3.length - 1]; + if (!t3) return true; + const o2 = t3.getType(); + if (o2 === E.EOF) return true; + const a2 = B(t3.token, e3._lineExtents); + let s2 = t3.getText(); + switch (o2) { + case 0: + case E.UP: + case E.DOWN: + case E.COMMA: + break; + case E.IDENTIFIER: + var l2 = h.expressionDataService.getRegisteredFuncOpsByText(s2); + if (l2 && l2.length > 0) { + const o3 = l2[0]; + if (o3.isUnavailable) return x(e3, (0, r2.sprintf)(w.expression.functions.unavailableFunctionDueToImplementationToggles, (0, r2.sprintf)(w.expression.functions.funcOpPosPrefix, s2, a2)), a2, s2), false; + if (0 === t3.getChildCount()) return x(e3, (0, r2.sprintf)(w.expression.functions.functionMustBeCalledWithParens, (0, r2.sprintf)(w.expression.functions.funcOpPosPrefix, s2, a2), s2), a2, s2), false; + P(e3._rootItem, n3, i3, m.expressionItems.funcOp(a2, o3.text, s2)); + break; + } + return x(e3, (0, r2.sprintf)(w.expression.notFuncOrRef, s2.trimForDisplay(), a2), a2, null, null, true), false; + case E.FIELD_ACCESS_IDENTIFIER: + case E.FIELD_ACCESS_STRING_LITERAL: + var u2 = m.expressionItems.fieldAccess(a2); + P(e3._rootItem, n3, i3, u2), D(e3._rootItem, u2, m.expressionItems.propAccessLiteral(a2, s2.substring(1, s2.length), "unknown")); + break; + case E.UNQUOTED_STRING_LITERAL: + case E.FIELD_ACCESS_UNQUOTED_STRING_LITERAL: + return x(e3, (0, r2.sprintf)(w.expression.missingEndQuoteAtPosition, a2), a2), false; + case E.BAD_ESCAPE_STRING_LITERAL: + return x(e3, (0, r2.sprintf)(w.expression.invalidEscape, a2), a2), false; + case E.PERIOD: + return x(e3, (0, r2.sprintf)(w.expression.noPropertySpecified, a2), a2), false; + case E.OP_MINUS: + if (!G(e3, t3)) { + if (e3.resultType === S.ParseResultTypes.error) return false; + P(e3._rootItem, n3, i3, m.expressionItems.op(a2, s2)); + } + break; + case E.OP_PLUS: + case E.OP_MULT: + case E.OP_DIV: + case E.OP_POW: + case E.OP_EQU: + case E.OP_NEQ: + case E.OP_GT: + case E.OP_GTE: + case E.OP_LT: + case E.OP_LTE: + case E.OP_MOD: + case E.OP_NOT: + case E.OP_LOG_AND: + case E.OP_LOG_OR: + case E.OP_BIT_AND: + case E.OP_BIT_INCL_OR: + case E.OP_BIT_NOT: + case E.TERNARY_IF: + P(e3._rootItem, n3, i3, m.expressionItems.op(a2, s2)); + break; + case E.TERNARY_THEN: + break; + case E.INTEGER: + if (!m.expressionItems.checkIntStr(s2)) return x(e3, (0, r2.sprintf)(w.expression.intValueGreaterThanMax, s2, a2, p.default.maxInt), a2), false; + D(e3._rootItem, n3, m.expressionItems.literal(a2, s2, T.globalTypes.integer)); + break; + case E.DECIMAL: + if (!m.expressionItems.checkDecimalStr(s2)) return x(e3, (0, r2.sprintf)(w.expression.decimalValueTooMuchPrecision, s2, a2, p.default.maxPrecision), a2), false; + D(e3._rootItem, n3, m.expressionItems.literal(a2, s2, T.globalTypes.decimal)); + break; + case E.STRING_LITERAL: + s2 = s2.substring(1, s2.length - 1), D(e3._rootItem, n3, m.expressionItems.stringLiteral(a2, s2, T.globalTypes.string)); + break; + case E.BOOL_TRUE: + case E.BOOL_FALSE: + D(e3._rootItem, n3, m.expressionItems.literal(a2, s2, T.globalTypes.boolean)); + break; + case E.NOT_SET: + D(e3._rootItem, n3, m.expressionItems.nul(a2)); + break; + case E.PAREN_LEFT: + e3._parens.push(a2); + break; + case E.PAREN_RIGHT: + if (0 === e3._parens.length) return x(e3, (0, r2.sprintf)(w.expression.missingOpenParenAtPosition, a2), a2), false; + e3._parens.pop(); + break; + case E.BRACKET_LEFT: + e3._brackets.push(a2), P(e3._rootItem, n3, i3, m.expressionItems.op(a2, s2)); + break; + case E.BRACKET_RIGHT: + if (0 === e3._brackets.length) return x(e3, (0, r2.sprintf)(w.expression.missingOpenBracketAtPosition, a2), a2), false; + e3._brackets.pop(); + break; + default: + return x(e3, (0, r2.sprintf)(w.expression.invalidInputAtPosition, a2), a2), false; + } + return true; + } + function J(e3, t3, i3, n3) { + if (!t3) return true; + if (t3.getType() === E.OP_MINUS) { + const n4 = G(e3, t3); + if (n4) return D(e3._rootItem, i3[i3.length - 1], n4), true; + if (e3.resultType === S.ParseResultTypes.error) return false; + } + return !(n3 && !H(e3, t3, i3)) && (function(e4, t4, i4) { + const n4 = t4.getChildCount(); + if (0 === n4) return true; + for (let s3 = 0; s3 < n4; s3++) { + let l2 = null; + const u2 = t4.getChild(s3), d2 = B(u2.token, e4._lineExtents); + let c2, p2; + switch (u2.getType()) { + case E.IDENTIFIER: + var o2 = false; + if (p2 = u2.getText(), !h.expressionDataService.getRegisteredFuncOpsByText(p2)) { + for (c2 = [u2]; s3 + 1 < n4; ) { + const e5 = t4.getChild(s3 + 1); + if ((e5.children || e5.getType() !== E.FIELD_ACCESS_IDENTIFIER) && e5.getType() !== E.FIELD_ACCESS_STRING_LITERAL) break; + o2 = true, s3++, p2 += e5.getText(), c2.push(e5); + } + if (o2 && (l2 = q(e4, c2, d2), !l2)) return M(e4) || x(e4, (0, r2.sprintf)(w.expression.variableReferenceNotValid, p2.trimForDisplay(), d2), d2), false; + } + break; + case E.BRACKET_LEFT: + if (!H(e4, u2, i4)) return false; + var a2 = i4[i4.length - 1]; + if (!J(e4, u2, i4)) return false; + if (s3 + 1 < n4 && a2.getOperands().length < 2) { + if (i4.push(a2), s3++, s3 + 1 < n4 && (t4.getChild(s3).getType() === E.IDENTIFIER || t4.getChild(s3 + 1).getType() === E.FIELD_ACCESS_STRING_LITERAL)) { + for (c2 = [t4.getChild(s3)]; s3 + 1 < n4; ) { + const e5 = t4.getChild(s3 + 1); + if (e5.getType() !== E.FIELD_ACCESS_IDENTIFIER && e5.getType() !== E.FIELD_ACCESS_STRING_LITERAL) break; + s3++, p2 = t4.getChild(s3).getText(), c2.push(e5); + } + if (l2 = q(e4, c2, d2), !l2) return M(e4) || x(e4, (0, r2.sprintf)(w.expression.variableReferenceNotValid, p2.trimForDisplay(), d2), d2), false; + const o3 = i4[i4.length - 1]; + D(e4._rootItem, o3, l2); + } else if (!J(e4, t4.getChild(s3), i4, true)) return false; + i4[i4.length - 1].isBracketAccess && W(i4); + } + continue; + } + if (l2) D(e4._rootItem, i4[i4.length - 1], l2); + else if (!J(e4, u2, i4, true)) return false; + } + const s2 = () => !!i4.length && i4[i4.length - 1].isBracketArrayOrPropAccess; + if (s2()) do { + W(i4); + } while (s2()); + else W(i4); + return true; + })(e3, t3, i3); + } + }, 44095: (e2, t2, i2) => { + const n2 = i2(28730), { disconnectActionType: r2 } = i2(30801); + function o() { + o.baseConstructor.apply(this, arguments); + } + n2.extend(o, r2, true), e2.exports = o; + }, 44103: (e2, t2, i2) => { + const n2 = i2(28730), r2 = i2(7401), { holdMusicActionType: o } = i2(30801); + function a() { + Object.defineProperties(this, { _bargeInExpression: { writable: true }, _duration: { writable: true }, _playForDuration: { writable: true }, _prompt: { writable: true } }), a.baseConstructor.apply(this, arguments); + } + n2.extend(a, o, true), Object.defineProperties(a.prototype, { pasteReIdOrRename: { value: function(e3) { + a._super.pasteReIdOrRename.apply(this, arguments), this.duration.pasteReIdOrRename(e3), this.prompt.pasteResolveOldToNewValues(e3), this.bargeInExpression.pasteResolveOldToNewValues(e3); + } }, pasteResolveOldToNewValues: { value: function(e3) { + a._super.pasteResolveOldToNewValues.apply(this, arguments), this.duration.pasteResolveOldToNewValues(e3), this.prompt.pasteResolveOldToNewValues(e3), this.bargeInExpression.pasteResolveOldToNewValues(e3); + } }, duration: { enumerable: true, get: function() { + return this._duration; + }, set: function(e3) { + this._duration = this.reviveItem(e3, r2); + } }, playForDuration: { enumerable: true, get: function() { + return this._playForDuration || false; + }, set: function(e3) { + this._playForDuration = e3; + } }, prompt: { enumerable: true, get: function() { + return this._prompt; + }, set: function(e3) { + this._prompt = this.reviveItem(e3, r2); + } }, bargeInExpression: { enumerable: true, get: function() { + return this._bargeInExpression; + }, set: function(e3) { + this._bargeInExpression = this.reviveItem(e3, r2); + } } }), e2.exports = a; + }, 44130: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importDefault(i2(58467)), o = n2.__importStar(i2(14187)), a = i2(96618); + class s extends r2.default { + constructor(e3) { + super(e3); + } + get className() { + return "InQueueEmailFlowViewModel"; + } + get isInQueueEmailFlow() { + return true; + } + get type() { + return a.flowTypes.flowTypeInQueueEmail; + } + get builtInVariableScopes() { + return [...super.builtInVariableScopes, o.scopes.email]; + } + get wrappedYamlName() { + return "inqueueEmail"; + } + } + t2.default = s; + }, 44143: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.sampleTime = void 0; + var n2 = i2(62326), r2 = i2(43434), o = i2(62275); + t2.sampleTime = function(e3, t3) { + return void 0 === t3 && (t3 = n2.asyncScheduler), r2.sample(o.interval(e3, t3)); + }; + }, 44189: (e2, t2, i2) => { + const n2 = i2(36019).default, r2 = i2(29565); + function o() { + } + o.prototype.getDivisions = (e3) => n2.build(r2.getDivisions).queryParams(e3.getSearchQueryParams()).call(), o.prototype.getDivision = (e3) => n2.build(r2.getDivision).templateParams({ id: e3 }).call(), o.prototype.getDivision.api = r2.getDivision, e2.exports = new o(); + }, 44231: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importDefault(i2(6035)), o = i2(96618), a = n2.__importDefault(i2(19359)); + class s extends r2.default { + constructor(e3) { + super(e3), this.pathDiscovery = this._addToAutoManageSettings(new a.default(this)); + } + get className() { + return "SecureCallFlowViewModel"; + } + get isSecureCallFlow() { + return true; + } + get type() { + return o.flowTypes.flowTypeSecureCall; + } + get wrappedYamlName() { + return "secureCall"; + } + } + t2.default = s; + }, 44250: (e2, t2, i2) => { + const n2 = i2(41167), r2 = i2(35635); + function o() { + r2.prototype.extendProperties(this), o.baseConstructor.apply(this, arguments); + } + i2(22124).extend(o, "AuditInformation"), Object.defineProperties(o.prototype, { entities: { enumerable: true, get: function() { + return this._entities; + }, set: function(e3) { + this._entities = this.reviveArray(e3, n2); + } } }), e2.exports = o; + }, 44254: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importDefault(i2(92140)), o = i2(52164), a = n2.__importStar(i2(35515)), s = i2(17604), l = n2.__importDefault(i2(87016)), u = n2.__importDefault(i2(58611)), d = n2.__importDefault(i2(65692)), c = n2.__importDefault(i2(98717)), p = i2(9456), _ = i2(15896); + class h extends o.BasicRequest { + get className() { + return "ArchNetworkRequest"; + } + constructor(e3, t3) { + super(e3, t3), this.error = void 0, this.request = void 0, this.response = void 0, this.shouldRetryImmediately = false, this._networkRequestId = void 0; + } + _logStr() { + return `[${this.info.method}::${this.url}]`; + } + _networkRequestIdPrefix() { + return this._networkRequestId ? `[ArchNetworkRequest id: ${this._networkRequestId}] ` : ""; + } + _logVerboseNote(e3) { + c.default.logNetworkActivity ? c.default.itemNote({ title: "Called Object" }, `${this._networkRequestIdPrefix()}${e3}`, this._logStr(), "ArchNetworkRequest") : c.default.logNotesVerbose && c.default.itemNoteVerbose({ title: "Called Object" }, e3, this._logStr(), "ArchNetworkRequest"); + } + _logResponseBody(e3, t3, i3) { + if (!c.default.logNetworkActivity) return; + const n3 = null == e3 || "" === e3 ? "" : e3, r3 = void 0 !== i3 ? `, statusCode: ${i3}` : "", o2 = t3 ? `, correlationId: ${t3}` : "", a2 = _.magenta(`[${this.info.method}::${this.url}${r3}${o2}]`), s2 = `${this._networkRequestIdPrefix()}response body - ${n3}`; + c.default.itemNote({ title: "Called Object" }, s2, a2, "ArchNetworkRequest"); + } + addDefaultHeaders(e3) { + super.addDefaultHeaders(e3), a.getAuthToken() && (e3 ? console.log("not adding Authorization header") : (this.headers.Authorization = "bearer " + a.getAuthToken(), this.headers["Genesys-App"] = a.getGenesysAppHeader())), this.headers["User-Agent"] = a.getNodeUserAgentHeader(); + } + addTokenRequestHeaders() { + this.headers["Content-Type"] = "application/x-www-form-urlencoded", this.headers.Authorization = `Basic ${Buffer.from((0, s.sprintf)("%s:%s", a.values.client, a.values.client_secret)).toString("base64")}`; + } + makeNetworkRequest() { + if (this._networkRequestId = (0, p.uuid)(), this._generateUrl(), this._logVerboseNote("calling url"), this.info.hasMock) { + const e4 = this.info.callMock(this.getParameters()); + return e4 && e4.isError ? (this.status = e4.status, this.request = e4, e4.responseText = e4.responseText || "", this.routeEvent("error", this)) : (this.status = 200, this.response = { mocked: true, responseText: JSON.stringify(e4), status: 200, statusText: "OK" }, this.routeEvent("load", this)), this.promise; + } + let e3 = this._content || void 0; + e3 && !r2.default.isString(e3) && (e3 = JSON.stringify(e3)); + const t3 = l.default.parse(this.url), i3 = { hostname: t3.hostname, path: t3.path, method: this.info.method, headers: this.headers }, n3 = t3.protocol.indexOf("https") >= 0 ? d.default : u.default, o2 = this.request = n3.request(i3, function(e4) { + const t4 = e4.headers["inin-correlation-id"]; + this._logVerboseNote(_.magenta(`response received - statusCode:${e4.statusCode}, statusMessage:${e4.statusMessage}, correlationId:${t4}`)), this.response = e4, this.status = e4.statusCode, e4.setEncoding("utf8"), e4.responseText = "", e4.on("data", function(t5) { + e4.responseText += t5; + }), e4.on("end", function() { + this._logResponseBody(e4.responseText, t4, e4.statusCode), this.routeEvent("load", this); + }.bind(this)); + }.bind(this)); + return o2.on("error", function(e4) { + this.error = e4, this.routeEvent("error", this); + }.bind(this)), void 0 !== e3 && o2.write(e3), this.sendTime = /* @__PURE__ */ new Date(), o2.end(), this.promise; + } + getResponseHeaders() { + var e3; + return null === (e3 = this.response) || void 0 === e3 ? void 0 : e3.headers; + } + file(e3) { + return this; + } + parseResponse() { + if (!this.response) return this.error || null; + let e3 = null; + try { + e3 = JSON.parse(this.response.responseText); + } catch (t3) { + e3 = null; + } + return e3 = e3 || this.response.responseText || null, e3; + } + get isBaseClass() { + return false; + } + } + t2.default = h; + }, 44307: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.canStubReferencedFlow = s, t2.snapshotReferencedObject = function(e3, t3, i3, n3, r3, o2) { + if (!e3 || !t3 || !i3) return; + if (!s(t3)) return; + if (!i3) return; + let a2 = e3.referencedObjects; + a2 || (a2 = {}); + let u = a2.flows; + if (null == u ? void 0 : u.length) { + if (u.find((e4) => e4.flow.name === i3 && e4.flow.type === t3)) return; + } else a2.flows = u = []; + const d = l(i3, t3, n3, r3, o2); + d && (u.push(d), e3.referencedObjects || (e3.referencedObjects = a2)); + }, t2.getFlowYamlSnapshot = l, t2.getFlowConfigFromSnapshot = function(e3, t3, i3) { + var n3, r3; + return (null === (r3 = null === (n3 = null == e3 ? void 0 : e3.referencedObjects) || void 0 === n3 ? void 0 : n3.flows) || void 0 === r3 ? void 0 : r3.length) ? e3.referencedObjects.flows.find((e4) => e4.flow.name === t3 && e4.flow.type === i3) : null; + }; + const n2 = i2(31635), r2 = i2(96618), o = n2.__importDefault(i2(4648)), a = i2(10798); + function s(e3) { + switch (e3) { + case r2.flowTypes.flowTypeBot: + case r2.flowTypes.flowTypeDigitalBot: + return (0, a.isFeatureAvailable)(o.default.botFlowsBotsCallingBots) || (0, a.isFeatureAvailable)(o.default.flowStubbing); + default: + return (0, a.isFeatureAvailable)(o.default.flowStubbing); + } + } + function l(e3, t3, i3, n3, r3) { + if (e3 && t3) return { flow: { name: e3, type: t3, defaultLanguage: i3, variables: (function(e4, t4) { + const i4 = /* @__PURE__ */ new Map(); + (null == e4 ? void 0 : e4.items) && e4.items.forEach((e5) => { + const t5 = null == e5 ? void 0 : e5.name; + t5 && i4.set(t5, { name: t5, type: null == e5 ? void 0 : e5.type, isInput: true, isOutput: false }); + }), (null == t4 ? void 0 : t4.items) && t4.items.forEach((e5) => { + const t5 = null == e5 ? void 0 : e5.name; + if (t5) { + const n5 = i4.get(t5); + n5 ? n5.isOutput = true : i4.set(t5, { name: t5, type: null == e5 ? void 0 : e5.type, isInput: false, isOutput: true }); + } + }); + const n4 = []; + return i4.forEach(({ name: e5, type: t5, isInput: i5, isOutput: r4 }) => { + const o2 = null == t5 ? void 0 : t5.yamlTypeName; + if (o2) { + const t6 = `${o2}Variable`, a2 = { [t6]: { name: e5, isInput: i5, isOutput: r4 } }; + n4.push(a2); + } + }), n4; + })(n3, r3) } }; + } + }, 44351: (e2, t2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.surveyFormDtmfValues = t2.surveyFormDtmfNumericValues = t2.botFormDtmfTerminatingValues = t2.surveyFormDtmfTerminatingValues = t2.dtmfStar = t2.dtmfPound = void 0, t2.dtmfPound = "#", t2.dtmfStar = "*", t2.surveyFormDtmfTerminatingValues = [t2.dtmfPound, t2.dtmfStar].map((e3) => ({ id: e3, displayString: e3 })), t2.botFormDtmfTerminatingValues = [t2.dtmfPound].map((e3) => ({ id: e3, displayString: e3 })), t2.surveyFormDtmfNumericValues = [...[...Array(100).keys()].map((e3) => e3.toString())].map((e3) => ({ id: e3, displayString: e3 })), t2.surveyFormDtmfValues = [...t2.surveyFormDtmfNumericValues, ...t2.surveyFormDtmfTerminatingValues]; + }, 44374: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(17604), r2 = i2(34490), o = i2(47957); + class a extends r2.LexAliasViewModel { + constructor(e3) { + super(e3); + } + get className() { + return "LexV2AliasViewModel"; + } + get botId() { + var e3; + return null === (e3 = this.model.bot) || void 0 === e3 ? void 0 : e3.botId; + } + get description() { + return (0, n2.sprintf)(o.lex.lexV2AliasDescription, this.localeString, this.region); + } + get isLexV2Alias() { + return true; + } + get localeString() { + return this.model.language; + } + get region() { + return this.model.region; + } + get shortAliasId() { + return this.model.aliasId; + } + } + t2.default = a; + }, 44379: (e2) => { + e2.exports = { askCommon: { invalidInputReceived: "Det er ikke gyldigt.", noInputReceived: "Jeg modtog ikke noget input." }, askForBoolean: { noInput: 'Sig "ja", hvis du vil forts\xE6tte, eller "nej", hvis du ikke vil.', noMatch: 'Sig venligst "ja" eller "nej". Vil du forts\xE6tte?', question: "Vil du forts\xE6tte?", noInputDigitalBot: 'Indtast "Ja", hvis du vil forts\xE6tte, eller "Nej", hvis du ikke vil.', noMatchDigitalBot: 'Indtast venligst "Ja" eller "Nej". Vil du forts\xE6tte?' }, askForIntent: { noInput: 'Bare sig en kort s\xE6tning, der beskriver din foresp\xF8rgsel. For eksempel: "Tjek min kontosaldo".', noMatch: "Fort\xE6l mig igen, hvad du gerne vil g\xF8re.", question: "Hvad vil du gerne g\xF8re?", noInputDigitalBot: 'Indtast venligst en kort s\xE6tning, der beskriver din foresp\xF8rgsel. For eksempel: "Tjek min kontosaldo".' }, askForSlot: { askFor: "Sp\xF8rg om %1$s", noInput: "Sig eller indtast venligst (angiv dit slotnavn her).", noInputWithSlot: "Sig eller indtast %1$s.", noMatch: "Giv mig venligst (angiv dit slotnavn her) igen.", noMatchWithSlot: "Giv mig venligst %1$s igen.", question: "Hvad er (angiv dit slotnavn her)?", questionWithSlot: "Hvad er %1$s?", pleaseEnterSlotNameHere: "(angiv dit slotnavn her)", noInputDigitalBot: "Indtast venligst (angiv dit slotnavn her).", noInputWithSlotDigitalBot: "Indtast venligst %1$s.", continuationPromptWithSlot: "Jeg har {{Slot.%1$s}} indtil videre, forts\xE6t venligst." }, askForNextSlot: { noInput: 'Sig "ja", hvis du har en anden foresp\xF8rgsel, eller "nej" for at afslutte opkaldet.', noMatch: 'Sig "ja", hvis du har en anden foresp\xF8rgsel, eller "nej" for at afslutte sessionen.', question: "Er der andet, jeg kan hj\xE6lpe dig med?", noInputDigitalBot: 'Indtast "Ja", hvis du har en anden foresp\xF8rgsel, eller "Nej" for at afslutte sessionen.', noMatchDigitalBot: 'Indtast "Ja", hvis du har en anden foresp\xF8rgsel, eller "Nej" for at afslutte sessionen.' }, askForPayment: { noInputDigitalBot: "Angiv dine betalingsoplysninger for at forts\xE6tte.", noMatchDigitalBot: "Jeg forstod ikke dit svar. Pr\xF8v igen." }, askForAuthentication: { noInputDigitalBot: "Indtast dine godkendelsesoplysninger for at forts\xE6tte.", noMatchDigitalBot: "Jeg forstod ikke dit svar. Pr\xF8v igen." }, askSurveyQuestion: { notApplicable: "Ikke relevant", surveyAnswerOptionSequence: "Tryk p\xE5 %1$s for '%2$s'.", surveyAnswerNotApplicableSequence: "Tryk p\xE5 stjerne for Ikke relevant.", surveyAnswerNotApplicableWithQuestionSequence: "%1$s. Tryk p\xE5 stjerne for Ikke relevant.", voiceSurveyNoInputText: "Svar venligst p\xE5 sp\xF8rgsm\xE5let.", voiceSurveyNoMatchText: "Jeg forstod dig ikke." }, commonModule: { exitCommonModule: "Afslut f\xE6lles modul" }, form: { noInputDigitalBot: "Udfyld formularen for at forts\xE6tte.", noMatchDigitalBot: "Udfyld formularen for at forts\xE6tte." }, messagingTemplate: { noInputDigitalBot: "V\xE6lg en af de tilg\xE6ngelige muligheder.", noMatchDigitalBot: "V\xE6lg en af de tilg\xE6ngelige muligheder." }, knowledgeSettings: { knowledgeAnswerHighlightFlowProgressionDefault: "Forts\xE6t", knowledgeAnswerHighlightFullArticleDefault: "Vis hele artiklen", knowledgeInitialResponseMulti: "For at hj\xE6lpe mig med at afklare dit m\xE5l, bedes du v\xE6lge et tal fra f\xF8lgende liste:", knowledgeInitialResponseMultiRetry: "V\xE6lg venligst et tal, for eksempel '1'.\nHer er listen over muligheder igen:", knowledgeNoMatch: "Ingen af disse", knowledgeConfirmation: "Besvarede dette dit sp\xF8rgsm\xE5l?", knowledgeFollowup: "Jeg h\xE5ber, at jeg har besvaret dit sp\xF8rgsm\xE5l. Du kan sp\xF8rge om alt andet, du gerne vil vide." }, noOverlay: { intent: { intentConfirmationStr1: "Jeg tror, du vil", intentConfirmationStr2: "Er det korrekt?" }, youSaid: { youSaidConfirmationStr1: "Du sagde", youSaidConfirmationStr2: "Er det korrekt?", youSaidConfirmationStr1DigitalBot: "Du indtastede" }, noInput: { noInputStr1: "Sig eller indtast", noInputStr1DigitalBot: "Indtast" }, noMatch: { noMatchStr1: "Giv mig venligst" }, whatIs: { whatIsQuestionStr1: "Hvad er", whatIsQuestionStr2: "?" }, iGotContinuation: { iGotContinuationStr1: "Jeg har", iGotContinuationStr2: "indtil videre, forts\xE6t venligst." } }, defaultCallFlowOne: "Standardopkaldsflow", errorHandlingAgentEscalationConfirmation: "Du vil gerne tale med en r\xE5dgiver. Er det korrekt?", errorHandlingAgentEscalationHandover: "Et \xF8jeblik, s\xE5 stiller jeg dig om til nogen.", errorHandlingErrorEventHandover: "Der opstod desv\xE6rre en fejl. Vent venligst et \xF8jeblik, mens jeg stiller dig om til en, der kan hj\xE6lpe.", errorHandlingErrorEventHandoverVoiceSurvey: "Der opstod desv\xE6rre en fejl. Farvel.", errorHandlingRecognitionEventHandover: "Jeg har desv\xE6rre sv\xE6rt ved at forst\xE5 dig. Vent venligst et \xF8jeblik, mens jeg stiller dig om til en, der kan hj\xE6lpe.", errorHandlingRecognitionEventHandoverVoiceSurvey: "Jeg har desv\xE6rre sv\xE6rt ved at forst\xE5 dig. Farvel.", errorHandlingTTS: "Der opstod desv\xE6rre en fejl. Pr\xF8v venligst dit opkald igen.", initialGreetingTTS: "Hej, dette er den indledende hilsen.", initialState: "Indledende tilstand", initialBotState: "Standard-bot", initialDigitalBotState: "Indledende hilsen", initialSurveyBotState: "Unders\xF8gelses-bot", intentConfirmation: "Jeg tror, du vil %1$s, er det korrekt?", mainMenu: "Hovedmenu", mainMenuTTS: "Du er i hovedmenuen, tryk p\xE5 9 for at afbryde", mainTask: "Opgave", settingsConfirmationNoInputApology: "Undskyld, jeg h\xF8rte dig ikke. Sig venligst ja eller nej.", settingsConfirmationNoInputApologyDigitalBot: 'Jeg modtog desv\xE6rre ikke noget input fra dig. Indtast venligst "Ja" eller "Nej".', settingsConfirmationNoMatchApology: "Undskyld, sig venligst ja eller nej.", settingsConfirmationNoMatchApologyDigitalBot: 'Undskyld, indtast venligst "Ja" eller "Nej".', settingsNoInputApology: "Undskyld, jeg h\xF8rte dig ikke.", settingsNoInputApologyDigitalBot: "Undskyld, jeg modtog ikke noget input fra dig.", settingsEndOfSessionMessageDigitalBot: "Jeg har ikke h\xF8rt fra dig i et stykke tid, s\xE5 jeg lukker denne chat. Kom tilbage, hvis du har brug for min hj\xE6lp igen. Mange tak.", settingsNoMatchApology: "Undskyld.", settingsNoToConfirmationApology: "Min fejl.", periodicStateName: "Tilbagevendende tilstand" }; + }, 44392: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.templates = t2.nluVersionIds = void 0, t2.checkIsoLanguageIsSupportedByTemplate = a, t2.getBlankTemplate = function() { + return this.getTemplateByNluVersionId(t2.nluVersionIds.blankBot); + }, t2.getTemplateByNluVersionId = function(e3) { + return n2.default.find(t2.templates, (t3) => t3.id === e3); + }, t2.getTemplatesForIsoLanguage = function(e3) { + return n2.default.filter(t2.templates, (t3) => !t3.templateObject || a(e3, t3.templateObject)); + }; + const n2 = i2(31635).__importDefault(i2(92140)), r2 = i2(47957); + function o(e3) { + const t3 = e3.indexOf("-"); + return (-1 === t3 ? e3 : e3.substring(0, t3)).toLowerCase(); + } + function a(e3, t3) { + return !!(t3 && n2.default.isString(e3) && n2.default.isString(t3.language)) && (e3 === t3.language || o(e3) === o(t3.language)); + } + t2.nluVersionIds = { bankingBot: "__BANKING_BOT__", blankBot: "__BLANK_BOT__" }, t2.templates = [{ name: r2.botFlowNluTemplates.bankBotNluTemplateName, description: r2.botFlowNluTemplates.bankBotNluTemplateDescription, id: t2.nluVersionIds.bankingBot, templateObject: { language: "en", description: "Created from a bot flow template", intents: [{ utterances: [{ segments: [{ text: "My account number is " }, { text: "87654321", entity: { name: "AccountNumber" } }, { text: ", what's the balance?" }] }, { segments: [{ text: "Tell me what the balance of my account is" }] }, { segments: [{ text: "Check account balance" }] }, { segments: [{ text: "Balance enquiry" }] }, { segments: [{ text: "What's the balance on account " }, { text: "12345678", entity: { name: "AccountNumber" } }, { text: "?" }] }, { segments: [{ text: "I want to check my account balance" }] }], entityNameReferences: ["AccountNumber"], name: "Check Account Balance" }, { utterances: [{ segments: [{ text: "I want to find my local branch please" }] }, { segments: [{ text: "What's the closest branch to " }, { text: "90210", entity: { name: "ZipCode" } }, { text: "?" }] }, { segments: [{ text: "Where's my nearest branch?" }] }], entityNameReferences: ["ZipCode"], name: "Find a Branch" }], entityTypes: [{ name: "AccountNumberType", description: 'The description of the Entity Type "AccountNumberType"', mechanism: { type: "Regex", restricted: true, items: [{ value: "\\b[0-9]{8}\\b", synonyms: [] }] } }, { name: "ZipCodeType", description: 'The description of the Entity Type "ZipCodeType"', mechanism: { type: "Regex", restricted: true, items: [{ value: "\\b[0-9]{5}\\b", synonyms: [] }] } }], entities: [{ name: "AccountNumber", type: "AccountNumberType" }, { name: "ZipCode", type: "ZipCodeType" }] } }, { name: r2.botFlowNluTemplates.blankBotNluTemplateName, description: r2.botFlowNluTemplates.blankBotNluTemplateDescription, id: t2.nluVersionIds.blankBot, templateObject: null }]; + }, 44409: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(93523)), r2 = i2(30801); + class o extends n2.default { + constructor(e3) { + super(e3); + } + get _actionTypeId() { + return r2.getJourneyOutcomeActionType; + } + get displayTypeName() { + return this._scriptingName; + } + get isArchActionGetJourneyOutcome() { + return true; + } + get findResult() { + return this._findResult; + } + } + t2.default = o; + }, 44442: (e2) => { + "use strict"; + e2.exports = function() { + this.input = null, this.next_in = 0, this.avail_in = 0, this.total_in = 0, this.output = null, this.next_out = 0, this.avail_out = 0, this.total_out = 0, this.msg = "", this.state = null, this.data_type = 2, this.adler = 0; + }; + }, 44485: (e2, t2, i2) => { + var n2 = { "./cs-cz/isoLanguages.js": [23291, 3291], "./de-de/isoLanguages.js": [79812, 9812], "./en-us/isoLanguages.js": [92421], "./es-us/isoLanguages.js": [47790, 7790], "./fr-ca/isoLanguages.js": [84285, 6666], "./it-it/isoLanguages.js": [37332, 7332], "./ja-jp/isoLanguages.js": [5581, 5581], "./ko-kr/isoLanguages.js": [65935, 5935], "./nb-no/isoLanguages.js": [59611, 9611], "./nl-nl/isoLanguages.js": [90682, 682], "./pl-pl/isoLanguages.js": [34366, 4366], "./pt-br/isoLanguages.js": [54046, 4046], "./ru-ru/isoLanguages.js": [33544, 3544], "./sv-se/isoLanguages.js": [64951, 4951], "./tr-tr/isoLanguages.js": [22366, 2366], "./zh-cn/isoLanguages.js": [30515, 515], "./zh-tw/isoLanguages.js": [95595, 5595] }; + function r2(e3) { + if (!i2.o(n2, e3)) return Promise.resolve().then(() => { + var t4 = new Error("Cannot find module '" + e3 + "'"); + throw t4.code = "MODULE_NOT_FOUND", t4; + }); + var t3 = n2[e3], r3 = t3[0]; + return Promise.all(t3.slice(1).map(i2.e)).then(() => i2(r3)); + } + r2.keys = () => Object.keys(n2), r2.id = 44485, e2.exports = r2; + }, 44502: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(83663)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "lineItem"; + } + get displayTypeName() { + return "ArchValueLineItem"; + } + get isArchValueLineItem() { + return true; + } + get listingName() { + return this._getAssignableProperty("listingName"); + } + get listingPrice() { + return this._getAssignableProperty("listingPrice"); + } + setLiteralLineItem(e3, t3, i3) { + this.listingName.setLiteralString(e3), this.listingPrice.setLiteralAmountAndCode(t3, i3); + } + } + t2.default = r2; + }, 44521: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.BasedOnChoicesType = t2.PROP_BUTTONS = void 0; + const n2 = i2(31635), r2 = i2(17604), o = n2.__importDefault(i2(92140)), a = i2(12847), s = i2(94765), l = i2(47957); + t2.PROP_BUTTONS = "buttons"; + class u extends s.ExpressionType { + constructor(e3, t3, i3) { + super(e3, t3, i3); + } + validateDuplicates(e3, t3) { + if (!t3) return (0, a.error)("no expression passed in to validateDuplicates"), true; + const i3 = this.getPossibleChoices(t3, true), n3 = {}; + o.default.each(i3, (e4) => { + var t4; + const i4 = null === (t4 = e4.type.getValueStr(e4)) || void 0 === t4 ? void 0 : t4.toLowerCase(); + if (i4) { + let t5 = n3[i4]; + t5 ? t5.push(e4) : (t5 = [e4], n3[i4] = t5); + } + }); + let s2 = true; + return o.default.each(n3, (t4) => { + (null == t4 ? void 0 : t4.length) > 1 && (s2 = false, o.default.each(t4, (t5, i4) => { + e3.addExpressionError(t5, (0, r2.sprintf)(l.cardsAndCars.duplicatePostbackValue, t5.type.getPostbackValue(t5) || i4)); + })); + }), s2; + } + deleteButtonsChoiceAtIndex(e3, i3) { + var n3, r3, o2; + if (i3 < 0) return false; + const a2 = e3.getProperty(t2.PROP_BUTTONS, true); + return (null === (n3 = null == a2 ? void 0 : a2.collectionItems) || void 0 === n3 ? void 0 : n3.items) && !a2.outOfService ? !(i3 < 0 || i3 >= (null === (o2 = null === (r3 = null == a2 ? void 0 : a2.collectionItems) || void 0 === r3 ? void 0 : r3.items) || void 0 === o2 ? void 0 : o2.length) || (a2.collectionItems.removeChild(a2.collectionItems.items[i3]), 0)) : void 0; + } + } + t2.BasedOnChoicesType = u; + }, 44542: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importDefault(i2(37819)), o = n2.__importDefault(i2(52852)), a = n2.__importDefault(i2(93078)), s = n2.__importDefault(i2(64079)), l = { ArchTraverseContext: r2.default, ArchTraverseHierarchyItem: o.default, ArchTraverseInfo: a.default, ArchTraverseSettings: s.default }; + t2.default = l; + }, 44544: (e2, t2, i2) => { + !(function() { + "use strict"; + var t3 = i2(43056).typeOf, n2 = i2(68152); + e2.exports.stringify = function(e3) { + var i3, r2 = ""; + return n2((i3 = { undefined: function() { + return "null"; + }, null: function() { + return "null"; + }, number: function(e4) { + return e4; + }, boolean: function(e4) { + return e4 ? "true" : "false"; + }, string: function(e4) { + const t4 = "" === e4 || e4.length > 0 && e4.charAt(0).match(/[^\w]/g) || e4.match(/[:#]/g) || e4.includes("\n") || e4.includes(" ") || !isNaN(e4) || "true" === e4.trim().toLowerCase() || "false" === e4.trim().toLowerCase() || "null" === e4.trim().toLowerCase() || e4.endsWith(" "); + return t4 && (e4 = e4.replace(/"/g, '"')), t4 ? JSON.stringify(e4) : e4; + }, array: function(e4) { + var n3 = ""; + return 0 === e4.length ? n3 += "[]" : (r2 = r2.replace(/$/, " "), e4.forEach(function(e5, o) { + var a = i3[t3(e5)]; + if (!a) throw new Error("what the crap: " + t3(e5)); + n3 += "\n" + r2 + "- " + a(e5, true); + }), r2 = r2.replace(/ /, ""), n3); + }, object: function(e4, n3, o) { + var a = ""; + return 0 === Object.keys(e4).length ? a += "{}" : (o || (r2 = r2.replace(/$/, " ")), Object.keys(e4).forEach(function(o2, s) { + var l = e4[o2], u = i3[t3(l)]; + if (void 0 !== l) { + if (!u) throw new Error("what the crap: " + t3(l)); + n3 && 0 === s || (a += "\n" + r2), (o2.length > 0 && o2.charAt(0).match(/[^\w]/g) || o2.match(/[:#]/g) || "true" === o2.toLowerCase() && "true" !== o2 || "false" === o2.toLowerCase() && "false" !== o2 || "yes" === o2.toLowerCase() || "no" === o2.toLowerCase() || o2.endsWith(" ")) && (o2 = JSON.stringify(o2)), a += o2 + ": " + u(l); + } + }), r2 = r2.replace(/ /, ""), a); + }, function: function() { + return "[object Function]"; + } })[t3(e3)](e3, true, true) + "\n"); + }; + })(); + }, 44565: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.FindEmergencyGroupActionModel = void 0; + const n2 = i2(49574), r2 = i2(30801); + class o extends n2.BaseFindSystemObjectByNameActionModel { + constructor(e3) { + super(e3), this.__type = o.__type; + } + } + t2.FindEmergencyGroupActionModel = o, o.__type = r2.findEmergencyGroupActionType, o.registerType(); + }, 44612: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.shortMessageScriptManager = t2.ShortMessageScriptManager = void 0; + const n2 = i2(31635).__importDefault(i2(92140)), r2 = i2(24032), o = i2(30801), a = i2(82915), s = i2(47957), l = i2(52124), u = i2(28195); + class d extends a.ScriptManager { + constructor() { + super("ShortMessageScriptManager"), this.topic = (0, r2.getTopic)("ShortMessageScriptManager"), this.actionsForUsageSearch = [o.screenPopActionType], this.apiCallList = n2.default.partial(l.getScriptsForFeature, u.message), this.dependencyContext = s.screenPop.selectedShortMessageScript, this.scriptFeatureType = u.message; + } + } + t2.ShortMessageScriptManager = d, t2.shortMessageScriptManager = new d(); + }, 44633: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(17405)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "surveyQuestion"; + } + get coreSurveyQuestionExpression() { + return this._getCoreViewModel(); + } + get displayTypeName() { + return "ArchValueSurveyQuestion"; + } + get isArchValueSurveyQuestion() { + return true; + } + } + t2.default = r2; + }, 44703: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.ExpressionContainer = void 0; + const n2 = i2(31635), r2 = n2.__importDefault(i2(92140)), o = i2(9456), a = n2.__importStar(i2(17498)), s = n2.__importStar(i2(36781)), l = n2.__importStar(i2(43773)), u = n2.__importStar(i2(58380)), d = i2(88473), c = n2.__importStar(i2(1115)), p = i2(55299); + class _ extends p.BaseClass { + constructor(e3, t3, i3, n3, r3) { + super(), this.parentFlow = e3, this.parent = t3, this.model = i3, this.options = n3, this.yamlOptions = r3, this.id = (0, o.uuid)(), this.amObjectEventEmitter = true, this.items = [], this.supportsInitializeDesignTime = true, this.autoCollapse = false, this._suppressListOrderChangedEvent = false, this._initializeDesignTimeCalled = false, this._outOfServiceProvider = (0, d.addOutOfServiceProperties)(this); + } + addClipboardDependencies(e3) { + this.items.forEach((t3) => { + t3.addClipboardDependencies(e3); + }); + } + get label() { + return this._label; + } + set label(e3) { + this._label = e3; + } + get hasError() { + return r2.default.any(this.items, function(e3) { + return e3.hasError; + }); + } + get hasWarning() { + return r2.default.any(this.items, function(e3) { + return e3.hasWarning; + }); + } + get holdsContainedDataPairList() { + return this.items.length && this.items[0].isContainedDataPairList; + } + get isExpressionContainer() { + return true; + } + get length() { + return this.items ? this.items.length : 0; + } + set length(e3) { + this.items.length = e3, this.model.length = e3; + } + outOfServiceChanged() { + this.items.forEach((e3) => { + e3.outOfService = this.outOfService; + }); + } + _initialize() { + r2.default.each(this.model, (e3) => { + const t3 = this.createItem(e3); + this.items.push(t3); + }); + } + add(e3, t3, i3) { + const n3 = this.createItem(e3, t3, i3); + return this.expandNewItem(n3), this.addItem(n3), n3; + } + addItem(e3) { + this.items.push(e3), this.model.push(e3.model), e3.outOfService = this.outOfService, r2.default.isFunction(e3.initializeDesignTime) && e3.initializeDesignTime(), this.orderChanged(); + } + expandNewItem(e3) { + this._suppressListOrderChangedEvent || (this.autoCollapse && this.items.forEach((e4) => e4.collapsed = true), e3.collapsed = false); + } + clearAndAddItems(e3) { + const t3 = this._suppressListOrderChangedEvent; + try { + this._suppressListOrderChangedEvent = true, this.destroyChildren(), e3.forEach((e4) => { + this.addItem(e4); + }); + } finally { + this._suppressListOrderChangedEvent = t3, this.orderChanged(); + } + } + attachValidator(e3) { + this._extraValidator = e3; + } + checkVersion(e3) { + this.items.forEach((t3) => { + r2.default.isFunction(t3.checkVersion) && t3.checkVersion(e3); + }); + } + destroy() { + this.destroyChildren(), this._outOfServiceProvider.destroy(); + } + destroyChild(e3) { + c.clearIssues(e3), r2.default.isFunction(e3.destroy) && e3.destroy(); + } + destroyChildren() { + this.items.forEach((e3) => { + this.destroyChild(e3); + }), this.length = 0, this.orderChanged(); + } + getConfiguration(e3, t3, i3) { + var n3, o2, a2, s2, u2; + if (null == t3 ? void 0 : t3.isForComparison) return l.removePropertiesForComparison(this.model); + if (null == t3 ? void 0 : t3.isForFlowYaml) { + if (null == i3 ? void 0 : i3.convertToSingleItem) return null === (n3 = this.items[0]) || void 0 === n3 ? void 0 : n3.getConfiguration(e3, t3, i3); + if (!this.items.length && !(null === (o2 = this.options) || void 0 === o2 ? void 0 : o2.defaultText) || this.outOfService) return i3.useNoneTrueForExpressionContainerClass && this.className === i3.useNoneTrueForExpressionContainerClass ? { none: true } : null; + if (this.isDataPairList || this.holdsContainedDataPairList || this.isExpressionListWithReferenceId) { + if ((null === (a2 = this.yamlOptions) || void 0 === a2 ? void 0 : a2.wrapDataPairNameAndValueInString) || (null === (s2 = this.yamlOptions) || void 0 === s2 ? void 0 : s2.wrapDataPairNameAndValueInTypeString)) return this._mapItemsForYaml(e3, t3, i3); + if (null === (u2 = this.yamlOptions) || void 0 === u2 ? void 0 : u2.wrapValueAndActionsInPropertyName) return this.getYamlWrappedValueAndChildActionsConfiguration(e3, t3); + const n4 = {}; + return this.items.forEach((o3) => { + r2.default.extend(n4, o3.getConfiguration(e3, t3, i3)); + }), n4; + } + return this._mapItemsForYaml(e3, t3, i3); + } + return this._getConfiguration(e3, t3, i3); + } + _getConfiguration(e3, t3, i3) { + return this.model; + } + getYamlWrappedValueAndChildActionsConfiguration(e3, t3) { + const i3 = []; + return this.items.forEach((n3) => { + var o2, a2; + const s2 = {}; + if (this.isExpressionListWithReferenceId && r2.default.isFunction(this.parent.getReferenceById)) { + const e4 = this.parent.getReferenceById(n3.referenceId); + (r2.default.isString(null == e4 ? void 0 : e4.name) || r2.default.isString(null == e4 ? void 0 : e4.label)) && (s2.name = e4.name || e4.label); + } + s2[(null === (o2 = this.yamlOptions) || void 0 === o2 ? void 0 : o2.wrapListItemValueInPropertyName) || "value"] = r2.default.getFirstPropertyValueInObj(n3.getConfiguration(e3, t3)); + const l2 = r2.default.findWhere(this.parent.branches, { id: n3.referenceId }); + r2.default.extend(s2, null == l2 ? void 0 : l2.getConfiguration(e3, t3)), i3.push(r2.default.tryWrapObject(s2, null === (a2 = this.yamlOptions) || void 0 === a2 ? void 0 : a2.wrapValueAndActionsInPropertyName)); + }), i3.length ? i3 : null; + } + initializeDesignTime() { + this.items.forEach((e3) => { + r2.default.isFunction(e3.initializeDesignTime) && e3.initializeDesignTime(); + }), this._initializeDesignTimeCalled = true; + } + get initializeDesignTimeCalled() { + return this._initializeDesignTimeCalled; + } + _mapItemsForYaml(e3, t3, i3) { + return r2.default.map(this.items, (n3) => { + var o2; + return r2.default.tryWrapObject(n3.getConfiguration(e3, t3, i3), null === (o2 = this.yamlOptions) || void 0 === o2 ? void 0 : o2.wrappedCollectionItemName); + }); + } + moveToIndex(e3, t3) { + -1 === t3 && (t3 = this.model.length - 1); + const i3 = this.model.indexOf(e3.model); + if (i3 >= this.model.length || -1 === i3) return; + this.model.splice(i3, 1), this.model.splice(t3, 0, e3.model); + const n3 = this.items.indexOf(e3); + n3 >= this.items.length || (this.items.splice(n3, 1), this.items.splice(t3, 0, e3), this.orderChanged()); + } + moveDown(e3) { + const t3 = this.model.indexOf(e3.model); + if (t3 >= this.model.length - 1 || -1 === t3) return; + this.model.splice(t3, 1), this.model.splice(t3 + 1, 0, e3.model); + const i3 = this.items.indexOf(e3); + return i3 >= this.items.length ? void 0 : (this.items.splice(i3, 1), this.items.splice(i3 + 1, 0, e3), this.orderChanged(), i3 + 1); + } + moveUp(e3) { + const t3 = this.model.indexOf(e3.model); + if (t3 <= 0) return; + this.model.splice(t3, 1), this.model.splice(t3 - 1, 0, e3.model); + const i3 = this.items.indexOf(e3); + return 0 !== i3 ? (this.items.splice(i3, 1), this.items.splice(i3 - 1, 0, e3), this.orderChanged(), i3 - 1) : void 0; + } + setItemsOrder(e3) { + if (!e3 || 0 === e3.length) return; + const t3 = this._suppressListOrderChangedEvent; + this._suppressListOrderChangedEvent = true; + try { + this.items.length = 0, this.model.length = 0, e3.forEach((e4) => { + this.items.push(e4), this.model.push(e4.model); + }); + } finally { + this._suppressListOrderChangedEvent = t3, this.orderChanged(); + } + } + orderChanged() { + if (!this._suppressListOrderChangedEvent && (u.fireEvent(this, s.listOrderChanged), this.options && this.options.valueChangedCallback)) try { + this.options.valueChangedCallback(this); + } catch (e3) { + throw console.error(e3, "failure during valueChangedCallback"), e3; + } + } + pop() { + return this.model.pop(), this.items.pop(); + } + canRemove(e3) { + return true; + } + canMove(e3) { + return true; + } + disableRemove(e3) { + return true; + } + removeChild(e3, t3) { + let i3 = false; + const n3 = this._suppressListOrderChangedEvent; + try { + this._suppressListOrderChangedEvent = true; + let n4 = this.model.indexOf(e3.model); + n4 > -1 && (i3 = true, this.model.splice(n4, 1)), n4 = this.items.indexOf(e3), n4 > -1 && (i3 = true, this.items.splice(n4, 1), this.destroyChild(e3), t3 || c.validate(this.parent, true)); + } finally { + this._suppressListOrderChangedEvent = n3, this.orderChanged(); + } + return i3; + } + removeAll() { + r2.default.each(this.items, (e3) => { + this.destroyChild(e3); + }), this.items.splice(0, this.items.length), this.orderChanged(); + } + removeChildByReferenceId(e3) { + if (!e3.referenceId) return; + const t3 = r2.default.findWhere(this.model, { referenceId: e3.referenceId }); + let i3 = this.model.indexOf(t3); + i3 > -1 && this.model.splice(i3, 1); + const n3 = r2.default.findWhere(this.items, { referenceId: e3.referenceId }); + i3 = this.items.indexOf(n3), i3 > -1 && (this.items.splice(i3, 1), this.destroyChild(e3)), this.orderChanged(); + } + replaceItemAtIndex(e3, t3) { + e3 > -1 && e3 < this.items.length && (this.destroyChild(this.items[e3]), this.model[e3] = t3.model, this.items[e3] = t3), r2.default.isFunction(t3.initializeDesignTime) && t3.initializeDesignTime(); + } + search(e3) { + this.items.forEach((t3) => { + t3.isExpressionContainerItem ? t3.search(e3) : e3.addToQueue(t3); + }); + } + updateDependencies() { + this.items.forEach((e3) => { + e3.isExpressionContainerItem ? e3.updateDependencies() : a.registerExpression(e3); + }); + } + validate(e3) { + this.items.forEach((t3) => { + r2.default.isFunction(t3.validate) && t3.validate(e3); + }); + } + getExpressions() { + return this.items.reduce((e3, t3) => (e3.push(...t3.getExpressions()), e3), []); + } + } + t2.ExpressionContainer = _; + }, 44706: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.ChoiceViewModel = void 0; + const n2 = i2(31635), r2 = n2.__importDefault(i2(92140)), o = i2(73062), a = n2.__importStar(i2(81116)), s = i2(14394), l = n2.__importDefault(i2(7401)), u = i2(81516), d = i2(55299), c = n2.__importDefault(i2(4648)), p = i2(47957); + class _ extends d.BaseClass { + constructor(e3, t3) { + super(), this._debouncedOnChoicesUpdated = r2.default.debounce(() => { + this.parent.onChoicesUpdated(); + }, 200), this.parent = t3, this._model = e3, this._model.label || (this._model.label = new l.default()), this.label = this.createLabelViewModel(); + } + get className() { + return "ChoiceViewModel"; + } + get isChoiceViewModel() { + return true; + } + get isEnabled() { + return this.model.isEnabled; + } + set isEnabled(e3) { + this.model.isEnabled = e3, this.parent.onChoicesUpdated(); + } + get model() { + return this._model; + } + get name() { + return this.model.name; + } + set name(e3) { + this.model.name = e3.trim(), this._debouncedOnChoicesUpdated(); + } + get referenceId() { + return this.model.referenceId; + } + set referenceId(e3) { + this.model.referenceId = e3; + } + validate(e3) { + var t3; + null === (t3 = this.label) || void 0 === t3 || t3.validate(e3); + } + createLabelViewModel() { + const e3 = u.ExpressionTypeStringOptions.create((e4) => { + e4.setDescriptionInfo(p.choice.choiceMenuLabelLabel, p.choice.choiceMenuLabelDescription).setFeatureConfigName(c.default.botFlowsDigitalBotFlowsMultiLingualFeature).setAllowSecure(true).setIsOptional(true).setDefaultToNoValue(true).setAllowedBuilderCategoryIdFilter(o.builderCategoryIds.labelString).setIninTestingField("digital-menu-label"); + }); + return a.expression(this.parent.parentFlow, this.parent.parent, this.model.label, p.choice.choiceMenuLabelLabel, s.globalTypes.string, null, e3); + } + } + t2.ChoiceViewModel = _; + }, 44724: (e2, t2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.permissionStrings = void 0, t2.permissionStrings = { architect: { application: { use: "architect:ui:view" }, dependencyTracking: { rebuild: "architect:dependencyTracking:rebuild", view: "architect:dependencyTracking:view" }, flow: { add: "architect:flow:add", delete: "architect:flow:delete", edit: "architect:flow:edit", launch: "architect:flow:launch", publish: "architect:flow:publish", search: "architect:flow:search", unlock: "architect:flow:unlock", view: "architect:flow:view" }, flowExecution: { view: "architect:flowExecution:view" }, flowInstance: { search: "architect:flowInstance:search", view: "architect:flowInstance:view" }, flowInstanceExecutionData: { view: "architect:flowInstanceExecutionData:view" }, flowLogLevel: { view: "architect:flowLogLevel:view" }, flowLogLevelDefault: { view: "architect:flowLogLevelDefault:view" }, flowMilestone: { add: "architect:flowMilestone:add", search: "architect:flowMilestone:search" }, flowOutcome: { add: "architect:flowOutcome:add", search: "architect:flowOutcome:search" }, systemPrompt: { edit: "architect:systemPrompt:edit", view: "architect:systemPrompt:view" }, userPrompt: { add: "architect:userPrompt:add", delete: "architect:userPrompt:delete", edit: "architect:userPrompt:edit", view: "architect:userPrompt:view" }, virtualAgentFlow: { edit: "architect:virtualAgentFlow:edit" }, grammar: { add: "architect:grammar:add", delete: "architect:grammar:delete", edit: "architect:grammar:edit", view: "architect:grammar:view" } }, conversation: { conference: { add: "conversation:conference:add" } }, copilot: { session: { view: "copilot:session:view" }, message: { view: "copilot:message:view", send: "copilot:message:send" } }, journey: { actionMap: { view: "journey:actionmap:view" }, flowpaths: { view: "journey:flowpaths:view" } }, processAutomation: { triggers: { view: "processautomation:trigger:view" } }, recording: { retentionPolicy: { view: "recording:retentionPolicy:view" } }, responseAssets: { asset: { add: "responseAssets:asset:add", view: "responseAssets:asset:view" } }, architectFeatureToggle: {}, architectFuture: { flow: { undelete: "architect:flow:undelete" }, userPrompt: { undelete: "architect:userPrompt:undelete" } }, external: { externalAuthorizationsDisplayTitles: { telephony: "telephonyView" }, externalAuthorizations: { agenticVirtualAgentView: "agentic:virtualAgent:view", agenticVirtualAgentVersionView: "agentic:virtualAgentVersion:view", analyticsBotAggregateView: "analytics:botAggregate:view", analyticsBotFlowReportingTurnView: "analytics:botFlowReportingTurn:view", analyticsBotFlowSessionView: "analytics:botFlowSession:view", analyticsConversationAggregateView: "analytics:conversationAggregate:view", analyticsConversationDetailView: "analytics:conversationDetail:view", analyticsFlowAggregateView: "analytics:flowAggregate:view", analyticsFlowExecutionAggregateView: "analytics:flowExecutionAggregate:view", analyticsKnowledgeAggregateView: "analytics:knowledgeAggregate:view", analyticsSummaryAggregateView: "analytics:summaryAggregate:view", analyticsSurveyAggregateView: "analytics:surveyAggregate:view", audit: "outbound:audit:view", bridge: "bridge:actions:view", conversationCommunicationView: "conversation:communication:view", directoryOrganizationAdmin: "directory:organization:admin", geocodingGeolocationFetch: "geolocation:geocoding:fetch", guideView: "aiStudio:guide:view", guideVersionView: "aiStudio:guideVersion:view", integrations: "integrations:action:view", intentMinerView: "languageUnderstanding:minerIntent:view", journeyActionMapView: "journey:actionmap:view", journeyFlowsView: "journey:flowpaths:view", languageSkills: "routing:skill:manage", previewWidgetView: "textbots:botFlowSession:execute", processAutomationTriggerView: "processautomation:trigger:view", recordingRetentionPolicyView: "recording:retentionPolicy:view", response: "responses:response:view", responseAdd: "responses:response:add", responseAssetsAdd: "responseAssets:asset:add", responseAssetView: "responseAssets:asset:view", responseLibrary: "responses:library:view", schedules: "routing:schedule:view", scheduleGroup: "routing:scheduleGroup:view", scripts: "scripter:publishedScript:view", qualityCalibrationView: "quality:calibration:view", qualityEvaluationAdd: "quality:evaluation:add", qualityEvaluationEditScore: "quality:evaluation:editScore", qualitySurveyFormView: "quality:surveyForm:view", queues: "routing:queue:view", settingsExecutionDataView: "settings:executionData:view", voicemailReceive: "voicemail:voicemail:receive", wrapupCode: "routing:wrapupCode:view", wrapupCodeSearch: "routing:wrapupCode:search", workitemsView: "workitems:workitem:view" } }, textBots: { botFlowSession: { botFlowSessionExecute: "textbots:botFlowSession:execute" } } }; + }, 44820: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(74797), r2 = i2(30801); + class o extends n2.ArchBaseActionConversationAttribute { + constructor(e3) { + super(e3), this._recordId = this.coreFactory.createArchWrapper(e3.recordId), this._divisions = this.coreFactory.createArchWrapper(e3.divisions); + } + get _actionTypeId() { + return r2.createConversationAttributeActionType; + } + get displayTypeName() { + return this._scriptingName; + } + get isArchActionCreateConversationAttribute() { + return true; + } + get recordId() { + return this._recordId; + } + get divisions() { + return this._divisions; + } + } + t2.default = o; + }, 44880: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.throttle = void 0; + var n2 = i2(65212), r2 = i2(17214), o = i2(19724); + t2.throttle = function(e3, t3) { + return n2.operate(function(i3, n3) { + var a = null != t3 ? t3 : {}, s = a.leading, l = void 0 === s || s, u = a.trailing, d = void 0 !== u && u, c = false, p = null, _ = null, h = false, m = function() { + null == _ || _.unsubscribe(), _ = null, d && (T(), h && n3.complete()); + }, g = function() { + _ = null, h && n3.complete(); + }, f = function(t4) { + return _ = o.innerFrom(e3(t4)).subscribe(r2.createOperatorSubscriber(n3, m, g)); + }, T = function() { + if (c) { + c = false; + var e4 = p; + p = null, n3.next(e4), !h && f(e4); + } + }; + i3.subscribe(r2.createOperatorSubscriber(n3, function(e4) { + c = true, p = e4, (!_ || _.closed) && (l ? T() : f(e4)); + }, function() { + h = true, (!(d && c && _) || _.closed) && n3.complete(); + })); + }); + }; + }, 44885: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.empty = t2.EMPTY = void 0; + var n2 = i2(48051); + t2.EMPTY = new n2.Observable(function(e3) { + return e3.complete(); + }), t2.empty = function(e3) { + return e3 ? (function(e4) { + return new n2.Observable(function(t3) { + return e4.schedule(function() { + return t3.complete(); + }); + }); + })(e3) : t2.EMPTY; + }; + }, 44900: (e2, t2, i2) => { + const { askSurveyQuestionActionType: n2 } = i2(30801), r2 = i2(7401), o = i2(2444); + function a() { + Object.defineProperties(this, { _questionCondition: { writable: true }, _surveyQuestion: { writable: true }, _answer: { writable: true }, _followUpQuestion: { writable: true }, _surveyQuestionResult: { writable: true }, _notApplicable: { writable: true } }), a.baseConstructor.apply(this, arguments); + } + Object.defineProperties(a.prototype, { pasteResolveOldToNewValues: { value: function(e3) { + a._super.pasteResolveOldToNewValues.apply(this, arguments), this.answer?.pasteResolveOldToNewValues(e3), this.followUpQuestion?.pasteResolveOldToNewValues(e3), this.questionCondition?.pasteResolveOldToNewValues(e3), this.surveyQuestion?.pasteResolveOldToNewValues(e3), this.notApplicable?.pasteResolveOldToNewValues(e3), this.surveyQuestionResult?.pasteResolveOldToNewValues(e3); + } }, pasteReIdOrRename: { value: function(e3) { + a._super.pasteReIdOrRename.apply(this, arguments), this.answer?.pasteReIdOrRename(e3), this.followUpQuestion?.pasteReIdOrRename(e3), this.questionCondition?.pasteReIdOrRename(e3), this.surveyQuestion?.pasteReIdOrRename(e3), this.notApplicable?.pasteReIdOrRename(e3), this.surveyQuestionResult?.pasteReIdOrRename(e3); + } }, questionCondition: { enumerable: true, get: function() { + return this._questionCondition; + }, set: function(e3) { + this._questionCondition = this.reviveItem(e3, r2); + } }, surveyQuestionResult: { enumerable: true, get: function() { + return this._surveyQuestionResult; + }, set: function(e3) { + this._surveyQuestionResult = this.reviveItem(e3, r2); + } }, surveyQuestion: { enumerable: true, get: function() { + return this._surveyQuestion; + }, set: function(e3) { + this._surveyQuestion = this.reviveItem(e3, r2); + } }, followUpQuestion: { enumerable: true, get: function() { + return this._followUpQuestion; + }, set: function(e3) { + this._followUpQuestion = this.reviveItem(e3, r2); + } }, answer: { enumerable: true, get: function() { + return this._answer; + }, set: function(e3) { + this._answer = this.reviveItem(e3, r2); + } }, notApplicable: { enumerable: true, get: function() { + return this._notApplicable; + }, set: function(e3) { + this._notApplicable = this.reviveItem(e3, r2); + } } }), o.extend(a, n2, true), e2.exports = a; + }, 44911: (e2) => { + e2.exports = { expression: { AR_TP_AGENTSCOREPAIR: "AgentScorePair", AR_TP_AGENTSCOREPAIR_PROP_AGENT_DSC: "The agent to associate with the routing score.", AR_TP_AGENTSCOREPAIR_PROP_SCORE_DSC: "The preferred agent routing score to associate with the agent. Valid values are 0 to 100. Higher scores get routed to agents sooner when preferred agent routing is configured.", AR_TP_AUDIO: "Audio", AR_TP_BLN: "Boolean", AR_TP_STRINGKEYVALUEPAIR: "StringKeyValuePair", AR_TP_STRINGKEYVALUEPAIR_PROP_KEY_DSC: "A unique ID for the data pair.", AR_TP_STRINGKEYVALUEPAIR_PROP_VALUE_DSC: "The value for the data pair.", AR_TP_CHATGUEST: "ChatGuest", AR_TP_CHATGUEST_PROP_ID_DSC: "A unique ID for the guest.", AR_TP_CHATGUEST_PROP_DISPLAYNAME_DSC: "The display name for the guest.", AR_TP_CHATGUEST_PROP_AVATARIMAGEURL_DSC: "The url for the guest's avatar image.", AR_TP_CHATGUEST_PROP_ISAUTHENTICATED_DSC: "Whether or not authenticated mode was set when starting the chat.", AR_TP_CHATGUEST_PROP_CUSTOMFIELDS_DSC: "The collection of custom fields associated with the guest.", AR_TP_CHATGUEST_PROP_AUTHENTICATEDCUSTOMFIELDS_DSC: "The collection of authenticated custom fields populated when the guest is authenticated.", AR_TP_CUR: "Currency", AR_TP_CUR_PROP_AMOUNT_DSC: "The decimal amount for the Currency", AR_TP_CUR_PROP_CODE_DSC: "The three letter ISO 4217 code for the Currency", AR_TP_ASSIGNEDCUSTOMERINTENT: "AssignedCustomerIntent", AR_TP_ASSIGNEDCUSTOMERINTENT_PROP_CUSTOMERINTENT_DSC: "The assigned Customer Intent.", AR_TP_ASSIGNEDCUSTOMERINTENT_PROP_DATEMOSTRECENTLYASSIGNED_DSC: "The DateTime the Customer Intent was most recently assigned.", AR_TP_ASSIGNEDCUSTOMERSEGMENT: "AssignedCustomerSegment", AR_TP_ASSIGNEDCUSTOMERSEGMENT_PROP_CUSTOMERSEGMENT_DSC: "The assigned Customer Segment.", AR_TP_ASSIGNEDCUSTOMERSEGMENT_PROP_DATEASSIGNED_DSC: "The DateTime the Customer Segment was assigned.", AR_TP_CUSTOMERSEGMENT: "CustomerSegment", AR_TP_CUSTOMERSEGMENT_PROP_ID_DSC: "The ID of the Customer Segment.", AR_TP_CUSTOMERSEGMENT_PROP_DSC: "The name of the Customer Segment.", AR_TP_CUSTOMERINTENT: "CustomerIntent", AR_TP_CUSTOMERINTENT_PROP_ID_DSC: "The ID of the Customer Intent.", AR_TP_CUSTOMERINTENT_PROP_DSC: "The name of the Customer Intent.", AR_TP_CUSTOMERINTENT_PROP_CATEGORYID_DSC: "The ID of the category to which the Customer Intent belongs.", AR_TP_DTM: "DateTime", AR_TP_DATE: "Date", AR_TP_DEC: "Decimal", AR_TP_DIVISION: "Division", AR_TP_DIVISION_PROP_ID_DSC: "The ID of the division.", AR_TP_DIVISION_PROP_DSC: "The name of the division.", AR_TP_DUR: "Duration", AR_TP_LNG: "Integer", AR_TP_EMAIL: "Email", AR_TP_EMAIL_PROP_ID_DSC: "A unique ID for the email.", AR_TP_EMAIL_PROP_AUTOGENERATED_DSC: "Whether or not the email was auto-generated like an Out of Office reply.", AR_TP_EMAIL_PROP_SPAM_DSC: "Whether or not the email was marked as spam.", AR_TP_EMAIL_PROP_FROM_DSC: "The email from address.", AR_TP_EMAIL_PROP_TO_DSC: "The collection of email addresses specified in the email's To list.", AR_TP_EMAIL_PROP_CC_DSC: "The collection of email addresses specified in the email's Cc ( carbon copy ) list.", AR_TP_EMAIL_PROP_BCC_DSC: "The collection of email addresses specified in the email's Bcc ( blind carbon copy ) list.", AR_TP_EMAIL_PROP_SUBJECT_DSC: "The email subject.", AR_TP_EMAIL_PROP_DIRECTION_DSC: 'The email direction ( "inbound", "outbound" or "unknown" ).', AR_TP_EMAIL_PROP_REPLYTO_DSC: "The raw address where replies to this email should be sent.", AR_TP_EMAIL_PROP_ROUTE_DSC: "The email address of the email route which received this email. If not received by an email route, this will be NOT_SET.", AR_TP_EMAIL_PROP_BODY_DSC: "The email body as plain text.", AR_TP_EMAIL_PROP_HTMLBODY_DSC: "The email body as HTML.", AR_TP_EMAIL_PROP_ATTACHMENTS_DSC: "The collection of email attachments on this email.", AR_TP_EMAIL_PROP_DATETIMEUTC_DSC: "The Coordinated Universal Time (UTC) datetime for the email.", AR_TP_EMAILADDRESS: "EmailAddress", AR_TP_EMAILADDRESS_PROP_DSC: "The friendly name for the email address.", AR_TP_EMAILADDRESS_PROP_ID_DSC: 'The full email address ID similar to "john.doe@company.com".', AR_TP_EMAILATTACHMENT: "EmailAttachment", AR_TP_EMAILATTACHMENT_PROP_ID_DSC: "The unique ID for the attachment.", AR_TP_EMAILATTACHMENT_PROP_CONTENTLENGTH_DSC: "The size of the attachment in bytes.", AR_TP_EMAILATTACHMENT_PROP_CONTENTTYPE_DSC: 'The content type of the attachment, typically in MIME format like "text/plain" or "text/html".', AR_TP_EMAILATTACHMENT_PROP_CONTENTURI_DSC: "The URI which indicates where the content of the attachment can be retrieved.", AR_TP_EMAILATTACHMENT_PROP_DSC: "The name of the attachment.", AR_TP_DRAFTEMAIL: "DraftEmail", AR_TP_DRAFTEMAIL_PROP_ATTACHMENTS_DSC: "The collection of attachments on the draft email.", AR_TP_DRAFTEMAIL_PROP_BCC_DSC: "The collection of email addresses specified in the draft email's Bcc ( blind carbon copy ) list.", AR_TP_DRAFTEMAIL_PROP_CC_DSC: "The collection of email addresses specified in the draft email's Cc ( carbon copy ) list.", AR_TP_DRAFTEMAIL_PROP_FROM_DSC: "The draft email from address.", AR_TP_DRAFTEMAIL_PROP_HEADERS_DSC: "Additional email headers not represented by other properties such as subject, to, cc, or bcc. This is a JSON object whose keys are header names.", AR_TP_DRAFTEMAIL_PROP_SUBJECT_DSC: "The draft email subject.", AR_TP_DRAFTEMAIL_PROP_TO_DSC: "The collection of email addresses specified in the draft email's To list.", AR_TP_DRAFTEMAILADDRESS: "DraftEmailAddress", AR_TP_DRAFTEMAILADDRESS_PROP_EMAIL_DSC: 'The full email address ID similar to "john.doe@company.com".', AR_TP_DRAFTEMAILADDRESS_PROP_DSC: "The friendly name for the email address.", AR_TP_DRAFTEMAILATTACHMENT: "DraftEmailAttachment", AR_TP_DRAFTEMAILATTACHMENT_PROP_ATTACHMENTID_DSC: "The attachment identifier.", AR_TP_DRAFTEMAILATTACHMENT_PROP_CONTENTLENGTH_DSC: "The size of the attachment in bytes.", AR_TP_DRAFTEMAILATTACHMENT_PROP_CONTENTTYPE_DSC: 'The content type of the attachment, typically in MIME format like "text/plain" or "text/html".', AR_TP_DRAFTEMAILATTACHMENT_PROP_CONTENTURI_DSC: "The URI which indicates where the content of the attachment can be retrieved.", AR_TP_DRAFTEMAILATTACHMENT_PROP_DSC: "The name of the attachment.", AR_TP_EXTERNALORGANIZATION: "ExternalOrganization", AR_TP_EXTERNALORGANIZATION_PROP_ID_DSC: "A unique ID for the organization.", AR_TP_EXTERNALORGANIZATION_PROP_CREATEDATETIMEUTC_DSC: "The Coordinated Universal Time (UTC) datetime for when the organization entry was created", AR_TP_EXTERNALORGANIZATION_PROP_MODIFYDATETIMEUTC_DSC: "The Coordinated Universal Time (UTC) datetime for when the organization entry was last updated", AR_TP_EXTERNALORGANIZATION_PROP_KIND_DSC: 'The internal classification for the record type. This will be "externalOrg".', AR_TP_EXTERNALORGANIZATION_PROP_DSC: "The displayable name of the organization.", AR_TP_EXTERNALORGANIZATION_PROP_COMPANYTYPE_DSC: 'The company type of the organization. The values are unrestricted, but often values such as "Customer - Direct", "Prospect", "Partner" are used.', AR_TP_EXTERNALORGANIZATION_PROP_INDUSTRY_DSC: 'The industry of the organization. The values are unrestricted, but often values such as "Telecom", "Health Care", "Tax Prep", etc are used.', AR_TP_EXTERNALORGANIZATION_PROP_PRIMARYCONTACTID_DSC: "Returns a NOT_SET String at flow runtime. This property is being kept for backward compatibility but there no primary contact ID associated with a Genesys Cloud external organization as of March 24, 2025.", AR_TP_EXTERNALORGANIZATION_PROP_ADDRESS_DSC: "The primary address of the organization.", AR_TP_EXTERNALORGANIZATION_PROP_PHNBR_DSC: "The primary phone number of the organization.", AR_TP_EXTERNALORGANIZATION_PROP_FAXNUMBER_DSC: "The fax number of the organization.", AR_TP_EXTERNALORGANIZATION_PROP_EMPLOYEECOUNT_DSC: "The number of employees in the organization.", AR_TP_EXTERNALORGANIZATION_PROP_REVENUE_DSC: "The average revenue of the organization. The values are unrestricted but often the data entered reflects the annual amount.", AR_TP_EXTERNALORGANIZATION_PROP_TAGS_DSC: "Terms used to describe the organization. Tags are often used to make organization records easily searchable/filterable.", AR_TP_EXTERNALORGANIZATION_PROP_TICKERS_DSC: "Stock ticker symbols associated with the organization.", AR_TP_EXTERNALORGANIZATION_PROP_TWITTERINFO_DSC: "The Twitter messaging system user information for the organization.", AR_TP_EXTERNALORGANIZATION_PROP_EXTERNALSYSTEMURL_DSC: "The external system URL of the organization.", AR_TP_EXTERNALORGANIZATION_PROP_WEBSITES_DSC: "Websites associated with the organization", AR_TP_EXTERNALORGANIZATION_PROP_DIVISIONID_DSC: "The identifier of the division to which the external organization belongs.", AR_TP_EXTERNALADDRESS: "ExternalAddress", AR_TP_EXTERNALADDRESS_PROP_ADDRESS1_DSC: "The first address line.", AR_TP_EXTERNALADDRESS_PROP_ADDRESS2_DSC: "The second address line.", AR_TP_EXTERNALADDRESS_PROP_CITY_DSC: "The City field of the Address", AR_TP_EXTERNALADDRESS_PROP_STATE_DSC: "The State field of the Address", AR_TP_EXTERNALADDRESS_PROP_POSTALCODE_DSC: "The Postal Code field of the Address", AR_TP_EXTERNALADDRESS_PROP_COUNTRYCODE_DSC: "The Country Code field of the Address", AR_TP_CARD: "Card", AR_TP_CARD_PROP_TITLE_DSC: "The card title.", AR_TP_CARD_PROP_TITLE_DISP_VAL: "Title", AR_TP_CARD_PROP_DESCRIPTION_DSC: "The card description.", AR_TP_CARD_PROP_DESCRIPTION_DISP_VAL: "Description", AR_TP_CARD_PROP_IMAGE_DSC: "The image to use on the card.", AR_TP_CARD_PROP_IMAGE_DISP_VAL: "Image", AR_TP_CARD_PROP_BUTTONS_DSC: "The buttons to use for this card.", AR_TP_CARD_PROP_BUTTONS_DISP_VAL: "Buttons", AR_TP_CHOICE: "Choice", AR_TP_CHOICE_PROP_LABEL_DSC: 'A display label. When the choice type is "postback" and the value comes from a list or dynamic list slot type on an Ask for Slot action, this property cannot be configured since the label will come from the value configured on the list or dynamic list slot type in the Natural Language Understanding section based on the language in which the flow is running.', AR_TP_CHOICE_PROP_LABEL_DISP_VAL: "Alternative button label", AR_TP_CHOICE_PROP_VALUE_DSC: "The value that will be used for this choice at runtime.", AR_TP_CHOICE_PROP_VALUE_DISP_VAL: "Button value", AR_TP_CHOICE_PROP_TYPE_DSC: 'The type property defines how the value on this choice should be treated at flow runtime. "postback" indicates the value is returned to the flow at flow runtime and "url" indicates the choice value is a URL and is not returned to the flow at flow runtime.', AR_TP_CHOICE_PROP_TYPE_DISP_VAL: "Type", AR_TP_CHOICE_PROP_COMMAND_DSC: "The command value that will be used for this choice at runtime.", AR_TP_CHOICE_PROP_COMMAND_DISP_VAL: "Skip Response", AR_TP_QUICKREPLIES: "QuickReplies", AR_TP_QUICKREPLIES_PROP_BUTTONS_DSC: "The buttons to use as quick replies. The order of the choices in this array determine the order in which they are presented.", AR_TP_QUICKREPLIES_PROP_BUTTONS_DISP_VAL: "Buttons", AR_TP_QUICKREPLIES_PROP_QUICKREPLYSUMMARY_DSC: 'Summary displayed in supporting messaging platforms after the user selects a quick reply. e.g. "Thanks for your selection"', AR_TP_QUICKREPLIES_PROP_QUICKREPLYSUMMARY_DISP_VAL: "Quick Reply Summary", AR_TP_CAROUSEL: "Carousel", AR_TP_CAROUSEL_PROP_CARDS_DSC: "The cards to use for this carousel.", AR_TP_CHOOSER: "Chooser", AR_TP_CHOOSER_PROP_PRESENTATION_DSC: "How to present the value choices.", AR_TP_CHOOSER_PROP_CAROUSEL_DSC: 'If the presentation property is set to "carousel", this specifies the carousel to use at flow runtime for the chooser.', AR_TP_CHOOSER_PROP_QUICKREPLIES_DSC: 'If the presentation property is set to "quickReplies", this specifies the quick replies to use at flow runtime for the chooser.', AR_TP_CHOOSER_PROP_TIMEPICKER_DSC: 'If the presentation property is set to "timePicker", this specifies the TimePicker to use at flow runtime for the chooser.', AR_TP_CHOOSER_PROP_LISTPICKER_DSC: 'If the presentation property is set to "listPicker", this specifies the list picker to use at flow runtime for the chooser.', AR_TP_EXTERNALFACEBOOKINFO: "ExternalFacebookInfo", AR_TP_EXTERNALFACEBOOKINFO_PROP_DISPLAYNAME_DSC: "The Facebook messaging system user display name for the contact.", AR_TP_EXTERNALFACEBOOKINFO_PROP_IDS_DSC: "Facebook messaging system IDs for the contact.", AR_TP_EXTERNALFACEBOOKID: "ExternalFacebookId", AR_TP_EXTERNALFACEBOOKID_PROP_SCOPEDID_DSC: "A Facebook messaging system scoped ID for the contact.", AR_TP_EXTERNALLINEINFO: "ExternalLineInfo", AR_TP_EXTERNALLINEINFO_PROP_DISPLAYNAME_DSC: "The LINE messaging system user display name for the contact.", AR_TP_EXTERNALLINEINFO_PROP_IDS_DSC: "LINE messaging system IDs for the contact.", AR_TP_EXTERNALLINEID: "ExternalLineId", AR_TP_EXTERNALLINEID_PROP_USERID_DSC: "A LINE messaging system user ID for the contact.", AR_TP_EXTERNALTWITTERINFO: "ExternalTwitterInfo", AR_TP_EXTERNALTWITTERINFO_PROP_ID_DSC: "The Twitter messaging system user ID for the contact.", AR_TP_EXTERNALTWITTERINFO_PROP_DSC: "The Twitter messaging system user display name for the contact.", AR_TP_EXTERNALTWITTERINFO_PROP_SCREENNAME_DSC: "The Twitter messaging system user screen name for the contact.", AR_TP_EXTERNALPHONENUMBER: "ExternalPhoneNumber", AR_TP_EXTERNALPHONENUMBER_PROP_DISPLAY_DSC: 'The number suitable for displaying to a user; eg, "(212) 555-1212", "1-800-CALLNOW"', AR_TP_EXTERNALPHONENUMBER_PROP_EXTENSION_DSC: "The extension of the phone number, if any.", AR_TP_EXTERNALPHONENUMBER_PROP_USERINPUT_DSC: "The user input field of the phone number.", AR_TP_EXTERNALPHONENUMBER_PROP_E164_DSC: 'The E.164 formatted String for a "tel" scheme phone number with a valid E.164 number, otherwise a NOT_SET String.', AR_TP_EXTERNALPHONENUMBER_PROP_COUNTRYCODE_DSC: "The Country Code field of the phone number.", AR_TP_EXTERNALPHONENUMBER_PROP_ACCEPTSSMS_DSC: "True if this number can accept SMS messages.", AR_TP_EXTERNALWHATSAPPINFO: "ExternalWhatsAppInfo", AR_TP_EXTERNALWHATSAPPINFO_PROP_DISPLAYNAME_DSC: "The WhatsApp messaging system user display name for the contact.", AR_TP_EXTERNALWHATSAPPINFO_PROP_PHNBR_DSC: "The WhatsApp messaging system phone number for the contact.", AR_TP_EXTERNALCONTACT: "ExternalContact", AR_TP_EXTERNALCONTACT_PROP_ID_DSC: "A unique ID for the contact.", AR_TP_EXTERNALCONTACT_PROP_CREATEDATETIMEUTC_DSC: "The Coordinated Universal Time (UTC) datetime for when the contact entry was created", AR_TP_EXTERNALCONTACT_PROP_MODIFYDATETIMEUTC_DSC: "The Coordinated Universal Time (UTC) datetime for when the contact entry was last updated", AR_TP_EXTERNALCONTACT_PROP_KIND_DSC: 'The internal classification for the record type. For external contacts, the kind will be "contact".', AR_TP_EXTERNALCONTACT_PROP_DIVISIONID_DSC: "The identifier of the division to which the external contact belongs.", AR_TP_EXTERNALCONTACT_PROP_EXTERNALORGANIZATION_DSC: "The organization for this contact.", AR_TP_EXTERNALCONTACT_PROP_FACEBOOKINFO_DSC: "The Facebook messaging system user information for the contact.", AR_TP_EXTERNALCONTACT_PROP_FIRSTNAME_DSC: "The first name of the contact.", AR_TP_EXTERNALCONTACT_PROP_MIDDLENAME_DSC: "The middle name of the contact.", AR_TP_EXTERNALCONTACT_PROP_LASTNAME_DSC: "The last name of the contact.", AR_TP_EXTERNALCONTACT_PROP_LINEINFO_DSC: "The LINE messaging system user information for the contact.", AR_TP_EXTERNALCONTACT_PROP_SALUTATION_DSC: "The salutation suggested when addressing the contact.", AR_TP_EXTERNALCONTACT_PROP_TITLE_DSC: 'The title of the contact. The values are unrestricted, but often values such as "Vice President", "Director", "Employee" are used.', AR_TP_EXTERNALCONTACT_PROP_TWITTERINFO_DSC: "The Twitter messaging system user information for the contact.", AR_TP_EXTERNALCONTACT_PROP_WHATSAPPINFO_DSC: "The WhatsApp messaging system user information for the contact.", AR_TP_EXTERNALCONTACT_PROP_WORKPHONE_DSC: "The work phone number of the contact.", AR_TP_EXTERNALCONTACT_PROP_CELLPHONE_DSC: "The cell phone number of the contact.", AR_TP_EXTERNALCONTACT_PROP_HOMEPHONE_DSC: "The home phone number of the contact.", AR_TP_EXTERNALCONTACT_PROP_OTHERPHONE_DSC: "The other phone number of the contact.", AR_TP_EXTERNALCONTACT_PROP_WORKEMAIL_DSC: "The work email address of the contact.", AR_TP_EXTERNALCONTACT_PROP_PERSONALEMAIL_DSC: "The personal email address of the contact.", AR_TP_EXTERNALCONTACT_PROP_OTHEREMAIL_DSC: "Other email address of the contact.", AR_TP_EXTERNALCONTACT_PROP_ADDRESS_DSC: "The address of the contact.", AR_TP_EXTERNALCONTACT_PROP_SURVEYOPTOUT_DSC: "True if this contact has opted out of survey invites.", AR_TP_EXTERNALCONTACT_PROP_EXTERNALSYSTEMURL_DSC: "The external system URL of the contact.", AR_TP_EXTERNALCONTACT_PROP_TYPE_DSC: "The type of contact.", AR_TP_EXTERNALCONTACT_PROP_INSTAGRAMINFO_DSC: "User information for an Instagram account.", AR_TP_EXTERNALCONTACT_PROP_EXTERNALIDINFO_DSC: "A list of external identifiers.", AR_TP_EXTERNALCONTACT_PROP_APPLEINFO_DSC: "User information for Apple accounts.", AR_TP_EXTERNALCONTACT_PROP_CANONICALCONTACTID_DSC: "The canonical contact ID if this contact has been merged.", AR_TP_EXTERNALCONTACT_PROP_MERGEDFROM_DSC: "List of contact IDs that were merged from to create this contact.", AR_TP_EXTERNALCONTACT_PROP_MERGEDTO_DSC: "The contact ID this contact was merged to.", AR_TP_EXTERNALCONTACT_PROP_MERGESET_DSC: "Set of contact IDs that are part of the same merge group.", AR_TP_EXTERNALCONTACT_PROP_CUSTOMFIELDS_DSC: "Custom fields.", AR_TP_EXTERNALINSTAGRAMINFO: "ExternalInstagramInfo", AR_TP_EXTERNALINSTAGRAMINFO_PROP_DISPLAYNAME_DSC: "The display name of the person who owns this Instagram account.", AR_TP_EXTERNALINSTAGRAMINFO_PROP_HANDLE_DSC: "The handle of the person who owns this Instagram account.", AR_TP_EXTERNALINSTAGRAMINFO_PROP_IDS_DSC: "Scoped ID for an Instagram user interacting with a page or app.", AR_TP_EXTERNALINSTAGRAMSCOPEDID: "ExternalInstagramScopedId", AR_TP_EXTERNALINSTAGRAMSCOPEDID_PROP_SCOPEDID_DSC: "The unique page/app-specific scopedId for the user.", AR_TP_EXTERNALAPPLEINFO: "ExternalAppleInfo", AR_TP_EXTERNALAPPLEINFO_PROP_ID_DSC: "The Apple opaque identifier.", AR_TP_EXTERNALIDINFO: "ExternalIdInfo", AR_TP_EXTERNALIDINFO_PROP_EXTERNALSOURCE_DSC: "The external source of the identifier.", AR_TP_EXTERNALIDINFO_PROP_VALUE_DSC: "The external identifier value.", AR_TP_EXTERNALSOURCE: "ExternalSource", AR_TP_EXTERNALSOURCE_PROP_ID_DSC: "The globally unique identifier for the external source.", AR_TP_EXTERNALSOURCE_PROP_DSC: "The name of the external source.", AR_TP_EXTERNALSOURCE_PROP_ACTIVE_DSC: "Whether the external source is active.", AR_TP_EXTERNALSOURCE_PROP_LINKCONFIGURATION_DSC: "The link configuration of the external source.", AR_TP_EXTERNALLINKCONFIGURATION: "ExternalLinkConfiguration", AR_TP_EXTERNALLINKCONFIGURATION_PROP_URITEMPLATE_DSC: "The URI template for the link configuration.", AR_TP_IMAGE: "Image", AR_TP_IMAGE_PROP_ID_DSC: "The image ID. If an ID is present, this will be the identifier of the Canned Response image response asset. Otherwise if this is an image created from a MakeImageFromUrl call, the ID will be a NOT_SET String.", AR_TP_IMAGE_PROP_DSC: "The image name. If a name is present, this will be the name of the Canned Response image response asset. Otherwise if this is an image created from a MakeImageFromUrl call, the name will be a NOT_SET String.", AR_TP_IMAGE_PROP_URL_DSC: "The universal resource locator that specifies the location of the image.", AR_TP_EMPTYJSON: "EmptyJson", AR_TP_JSON: "JSON", AR_TP_FORMINPUT: "FormInput", AR_TP_FORMINPUT_PROP_TITLE_DSC: "The main text displayed for the input field.", AR_TP_FORMINPUT_PROP_TITLE_DISP_VAL: "Title", AR_TP_FORMINPUT_PROP_SUBTITLE_DSC: "Additional text providing more details about the input field.", AR_TP_FORMINPUT_PROP_SUBTITLE_DISP_VAL: "Subtitle", AR_TP_FORMINPUT_PROP_PLACEHOLDERTEXT_DSC: "Placeholder text for input field.", AR_TP_FORMINPUT_PROP_PLACEHOLDERTEXT_DISP_VAL: "Placeholder Text", AR_TP_FORMINPUT_PROP_ISMULTIPLELINE_DSC: "Whether the input should allow multiple lines of text.", AR_TP_FORMINPUT_PROP_ISMULTIPLELINE_DISP_VAL: "Multiple Line", AR_TP_FORMINPUT_PROP_ISREQUIRED_DSC: "Whether the input field is required to be filled in.", AR_TP_FORMINPUT_PROP_ISREQUIRED_DISP_VAL: "Required", AR_TP_JOURNEYAPP: "JourneyApp", AR_TP_JOURNEYAPP_PROP_DSC: 'The name of the application such as "mybankingapp".', AR_TP_JOURNEYAPP_PROP_NAMESPACE_DSC: 'The namespace of the application such as "com.genesys.bancodinero".', AR_TP_JOURNEYAPP_PROP_VERSION_DSC: 'The version of the application such as "5.9.27".', AR_TP_JOURNEYAPP_PROP_BUILDNUMBER_DSC: 'The build number of the application such as "701".', AR_TP_JOURNEYACTION: "JourneyAction", AR_TP_JOURNEYACTION_PROP_ID_DSC: "A unique ID for the journey action.", AR_TP_JOURNEYACTION_PROP_ACTIONMAP_DSC: "The journey action map associated with the journey action.", AR_TP_JOURNEYACTIONMAP: "JourneyActionMap", AR_TP_JOURNEYACTIONMAP_PROP_ID_DSC: "A unique ID for the journey action map.", AR_TP_JOURNEYACTIONMAP_PROP_VERSION_DSC: "The version of the journey action map.", AR_TP_JOURNEYBROWSER: "JourneyBrowser", AR_TP_JOURNEYBROWSER_PROP_FAMILY_DSC: 'The browser family such as "Chrome", "Firefox" or "Safari".', AR_TP_JOURNEYBROWSER_PROP_VERSION_DSC: 'The browser version as a string such as "68.0.3440.84".', AR_TP_JOURNEYBROWSER_PROP_LANG_DSC: "The language the browser is set to. Must conform to BCP 47.", AR_TP_JOURNEYBROWSER_PROP_FINGERPRINT_DSC: "Fingerprint generated by looking at the individual browser features.", AR_TP_JOURNEYBROWSER_PROP_ISMOBILE_DSC: "Flag that is true for mobile devices.", AR_TP_JOURNEYBROWSER_PROP_VIEWHEIGHT_DSC: "Browser's viewport height.", AR_TP_JOURNEYBROWSER_PROP_VIEWWIDTH_DSC: "Browser's viewport width.", AR_TP_JOURNEYBROWSER_PROP_FEATURESFLASH_DSC: "Whether Adobe Flash is installed.", AR_TP_JOURNEYBROWSER_PROP_FEATURESJAVA_DSC: "Whether Java is installed.", AR_TP_JOURNEYBROWSER_PROP_FEATURESPDF_DSC: "Whether the browser recognizes PDF (Portable Document Format) files.", AR_TP_JOURNEYBROWSER_PROP_FEATURESWEBRTC_DSC: "Whether WebRTC is supported.", AR_TP_JOURNEYCAMPAIGN: "JourneyCampaign", AR_TP_JOURNEYCAMPAIGN_PROP_CONTENT_DSC: 'Differentiate ads or links that point to the same URL such as "textlink".', AR_TP_JOURNEYCAMPAIGN_PROP_MEDIUM_DSC: 'Identify a medium such as email or cost-per-click ( "CPC" ).', AR_TP_JOURNEYCAMPAIGN_PROP_DSC: 'Identify a specific product promotion or strategic campaign such as "320banner".', AR_TP_JOURNEYCAMPAIGN_PROP_SOURCE_DSC: 'Identify a search engine, newsletter name, or other source such as "Google".', AR_TP_JOURNEYCAMPAIGN_PROP_TERM_DSC: 'The keywords for this ad such as "running+shoes". This string will be URL encoded.', AR_TP_JOURNEYCAMPAIGN_PROP_CLICKID_DSC: "The click ID (unique number that is generated when a potential customer clicks on an affiliate link).", AR_TP_JOURNEYCAMPAIGN_PROP_NETWORK_DSC: "The ad network to which the click ID belongs.", AR_TP_JOURNEYCONTEXT: "JourneyContext", AR_TP_JOURNEYCONTEXT_PROP_CUSTOMER_DSC: "The journey customer associated with the journey context.", AR_TP_JOURNEYCONTEXT_PROP_CUSTOMERSESSION_DSC: "The journey customer session associated with the journey context.", AR_TP_JOURNEYCONTEXT_PROP_TRIGGERINGACTION_DSC: "The journey action that triggered the journey context.", AR_TP_JOURNEYCUSTOMEVENTATTRIBUTE: "JourneyCustomEventAttribute", AR_TP_JOURNEYCUSTOMEVENTATTRIBUTE_PROP_DSC: "The name of the custom event attribute.", AR_TP_JOURNEYCUSTOMEVENTATTRIBUTE_PROP_DATATYPE_DSC: 'The data type of the custom attributes such as "string", "boolean" or "number".', AR_TP_JOURNEYCUSTOMEVENTATTRIBUTE_PROP_VALUE_DSC: "The value of the custom attribute.", AR_TP_JOURNEYCUSTOMEVENTATTRIBUTELIST: "JourneyCustomEventAttributeList", AR_TP_JOURNEYCUSTOMEVENTATTRIBUTELIST_PROP_DSC: "The name of the custom event attribute list.", AR_TP_JOURNEYCUSTOMEVENTATTRIBUTELIST_PROP_DATATYPE_DSC: 'The data type of the custom attributes such as "string", "boolean" or "number".', AR_TP_JOURNEYCUSTOMEVENTATTRIBUTELIST_PROP_VALUES_DSC: "The list of custom event attribute values.", AR_TP_JOURNEYCUSTOMER: "JourneyCustomer", AR_TP_JOURNEYCUSTOMER_PROP_ID_DSC: "A unique ID for the journey customer.", AR_TP_JOURNEYCUSTOMER_PROP_IDTYPE_DSC: 'The type of the journey customer such as "cookie", "email" or "phone".', AR_TP_JOURNEYCUSTOMERSESSION: "JourneyCustomerSession", AR_TP_JOURNEYCUSTOMERSESSION_PROP_ID_DSC: "A unique ID for the journey customer session.", AR_TP_JOURNEYCUSTOMERSESSION_PROP_TYPE_DSC: "The type of the journey customer session.", AR_TP_JOURNEYDEVICE: "JourneyDevice", AR_TP_JOURNEYDEVICE_PROP_CATEGORY_DSC: 'The device category such as "desktop", "mobile", "tablet" or "other".', AR_TP_JOURNEYDEVICE_PROP_TYPE_DSC: 'Device type such as "iPad", "iPhone" or "Other".', AR_TP_JOURNEYDEVICE_PROP_ISMOBILE_DSC: "Flag that is true for mobile devices.", AR_TP_JOURNEYDEVICE_PROP_SCREENHEIGHT_DSC: "Device's screen height measured in logical (device-independent) pixels.", AR_TP_JOURNEYDEVICE_PROP_SCREENWIDTH_DSC: "Device's screen width measured in logical (device-independent) pixels.", AR_TP_JOURNEYDEVICE_PROP_FINGERPRINT_DSC: "Fingerprint generated by looking at the individual device features.", AR_TP_JOURNEYDEVICE_PROP_MANUFACTURER_DSC: "The device's manufacturer.", AR_TP_JOURNEYDEVICE_PROP_OSFAMILY_DSC: "Operating system family.", AR_TP_JOURNEYDEVICE_PROP_OSVERSION_DSC: "Operating system version.", AR_TP_JOURNEYDEVICE_PROP_SCREENDENSITY_DSC: "Device's screen density measured as a scale factor where a value of 1 represents a baseline 1:1 ratio of pixels to logical (device-independent) pixels.", AR_TP_JOURNEYGEOLOCATION: "JourneyGeolocation", AR_TP_JOURNEYGEOLOCATION_PROP_COUNTRY_DSC: "Geolocation's ISO 3166-1 alpha-2 country code.", AR_TP_JOURNEYGEOLOCATION_PROP_COUNTRYNAME_DSC: "Geolocation's country name.", AR_TP_JOURNEYGEOLOCATION_PROP_LATITUDE_DSC: "Geolocation's latitude.", AR_TP_JOURNEYGEOLOCATION_PROP_LONGITUDE_DSC: "Geolocation's longitude.", AR_TP_JOURNEYGEOLOCATION_PROP_LOCALITY_DSC: "Geolocation's locality or city.", AR_TP_JOURNEYGEOLOCATION_PROP_POSTALCODE_DSC: "Geolocation's postal code or ZIP code.", AR_TP_JOURNEYGEOLOCATION_PROP_REGION_DSC: "Geolocation's ISO-3166-2 region code.", AR_TP_JOURNEYGEOLOCATION_PROP_REGIONNAME_DSC: "Geolocation's region name.", AR_TP_JOURNEYGEOLOCATION_PROP_SOURCE_DSC: "The source that was used to determine the geolocation information.", AR_TP_JOURNEYGEOLOCATION_PROP_TIMEZONE_DSC: "Geolocation's timezone.", AR_TP_JOURNEYNETWORKCONNECTIVITY: "JourneyNetworkConnectivity", AR_TP_JOURNEYNETWORKCONNECTIVITY_PROP_CARRIER_DSC: "The name of the mobile carrier.", AR_TP_JOURNEYNETWORKCONNECTIVITY_PROP_BLUETOOTHENABLED_DSC: "Whether Bluetooth is enabled.", AR_TP_JOURNEYNETWORKCONNECTIVITY_PROP_CELLULARENABLED_DSC: "Whether cellular data is enabled.", AR_TP_JOURNEYNETWORKCONNECTIVITY_PROP_WIFIENABLED_DSC: "Whether Wifi is enabled.", AR_TP_JOURNEYSESSIONOUTCOMEACHIEVEMENT: "JourneySessionOutcomeAchievement", AR_TP_JOURNEYSESSIONOUTCOMEACHIEVEMENT_PROP_ID_DSC: "The ID of the achieved outcome.", AR_TP_JOURNEYSESSIONOUTCOMEACHIEVEMENT_PROP_ACHIEVEDDATE_DSC: "Timestamp indicating when the outcome was achieved.", AR_TP_JOURNEYSDKLIBRARY: "JourneySdkLibrary", AR_TP_JOURNEYSDKLIBRARY_PROP_DSC: "The name of the software development kit library.", AR_TP_JOURNEYSDKLIBRARY_PROP_VERSION_DSC: "The version of the software development kit library.", AR_TP_JOURNEYOUTCOME: "JourneyOutcome", AR_TP_JOURNEYOUTCOME_PROP_ID_DSC: "The ID of the journey outcome.", AR_TP_JOURNEYOUTCOME_PROP_DESCRIPTION_DSC: "A description of the journey outcome.", AR_TP_JOURNEYOUTCOME_PROP_DISPLAYNAME_DSC: "The display name of the journey outcome.", AR_TP_JOURNEYOUTCOME_PROP_VERSION_DSC: "The version of the journey outcome.", AR_TP_JOURNEYOUTCOME_PROP_CREATEDDATEUTC_DSC: "The Coordinated Universal Time (UTC) datetime for when the journey outcome was created.", AR_TP_JOURNEYOUTCOME_PROP_MODIFIEDDATEUTC_DSC: "The Coordinated Universal Time (UTC) datetime for when the journey outcome was last modified.", AR_TP_JOURNEYOUTCOME_PROP_ISACTIVE_DSC: "Whether or not the journey outcome is active.", AR_TP_JOURNEYOUTCOMESCORE: "JourneyOutcomeScore", AR_TP_JOURNEYOUTCOMESCORE_PROP_ID_DSC: "The ID of the journey outcome.", AR_TP_JOURNEYOUTCOMESCORE_PROP_PROBABILITY_DSC: "A Decimal value that is >= 0.0 and <= 1.0 which represents the maximum probability reached in the journey session.", AR_TP_JOURNEYOUTCOMESCORE_PROP_SESSIONMAXPROBABILITY_DSC: "A Decimal value that is >= 0.0 and <= 1.0 which represents the likelihood of a customer reaching or achieving a given outcome.", AR_TP_JOURNEYPAGE: "JourneyPage", AR_TP_JOURNEYPAGE_PROP_URL_DSC: "The page URL.", AR_TP_JOURNEYPAGE_PROP_TITLE_DSC: "The title of the page.", AR_TP_JOURNEYPAGE_PROP_DOMAIN_DSC: "The domain of the page's URL.", AR_TP_JOURNEYPAGE_PROP_FRAGMENT_DSC: "Fragment or hash of the page's URL.", AR_TP_JOURNEYPAGE_PROP_HOSTNAME_DSC: "Hostname of the page's URL.", AR_TP_JOURNEYPAGE_PROP_KEYWORDS_DSC: "Keywords from the HTML {@code } tag of the page.", AR_TP_JOURNEYPAGE_PROP_LANG_DSC: "ISO 639-1 language code for the page as defined in the {@code } tag.", AR_TP_JOURNEYPAGE_PROP_PATHNAME_DSC: "Path name of the page for the event.", AR_TP_JOURNEYPAGE_PROP_QUERYSTRING_DSC: "Query string that is passed to the page in the current event.", AR_TP_JOURNEYPAGE_PROP_BREADCRUMB_DSC: "Hierarchy of the current page in relation to the website's structure.", AR_TP_JOURNEYREFERRER: "JourneyReferrer", AR_TP_JOURNEYREFERRER_PROP_URL_DSC: "Referrer URL.", AR_TP_JOURNEYREFERRER_PROP_DOMAIN_DSC: "Referrer URL domain.", AR_TP_JOURNEYREFERRER_PROP_HOSTNAME_DSC: "Referrer URL hostname.", AR_TP_JOURNEYREFERRER_PROP_KEYWORDS_DSC: 'A URI encoded string that contains referrer keywords delimited by a "+" character.', AR_TP_JOURNEYREFERRER_PROP_PATHNAME_DSC: "Referrer URL pathname.", AR_TP_JOURNEYREFERRER_PROP_QUERYSTRING_DSC: "Referrer URL queryString.", AR_TP_JOURNEYREFERRER_PROP_FRAGMENT_DSC: "Referrer URL fragment.", AR_TP_JOURNEYREFERRER_PROP_DSC: 'Name of referrer such as "InfoSpace", "Google" or "Yahoo!".', AR_TP_JOURNEYREFERRER_PROP_MEDIUM_DSC: 'Type of referrer such as "email", "internal", "paid", "search", "social" or "unknown".', AR_TP_JOURNEYSEGMENT: "JourneySegment", AR_TP_JOURNEYSEGMENT_PROP_ID_DSC: "The ID of the journey segment.", AR_TP_JOURNEYSEGMENT_PROP_COLOR_DSC: "The hexadecimal color value of the segment.", AR_TP_JOURNEYSEGMENT_PROP_CREATEDDATEUTC_DSC: "The Coordinated Universal Time (UTC) datetime for when the journey segment was created.", AR_TP_JOURNEYSEGMENT_PROP_DESCRIPTION_DSC: "The description of the journey segment.", AR_TP_JOURNEYSEGMENT_PROP_DISPLAYNAME_DSC: "The display name of the journey segment.", AR_TP_JOURNEYSEGMENT_PROP_ISACTIVE_DSC: "Whether or not the journey segment is active.", AR_TP_JOURNEYSEGMENT_PROP_MODIFIEDDATEUTC_DSC: "The Coordinated Universal Time (UTC) datetime for when the journey segment was last modified.", AR_TP_JOURNEYSEGMENT_PROP_SHOULDDISPLAYTOAGENT_DSC: "Whether or not the segment should be displayed to agent/supervisor users.", AR_TP_JOURNEYSEGMENT_PROP_VERSION_DSC: "The version of the journey segment.", AR_TP_JOURNEYSESSIONSEGMENTASSIGNMENT: "JourneySessionSegmentAssignment", AR_TP_JOURNEYSESSIONSEGMENTASSIGNMENT_PROP_ID_DSC: "The ID of the assigned segment.", AR_TP_JOURNEYSESSIONSEGMENTASSIGNMENT_PROP_ASSIGNEDDATE_DSC: "Timestamp indicating when the segment was assigned.", AR_TP_JOURNEYSESSION: "JourneySession", AR_TP_JOURNEYSESSION_PROP_ID_DSC: "The ID of the journey session.", AR_TP_JOURNEYSESSION_PROP_CREATEDDATE_DSC: "Timestamp indicating when the session was created.", AR_TP_JOURNEYSESSION_PROP_CUSTOMERID_DSC: "Primary ID of the customer in the source from which the events for the session originate.", AR_TP_JOURNEYSESSION_PROP_CUSTOMERIDTYPE_DSC: 'Type of source customer ID such as "email", "phone" or "salesforce".', AR_TP_JOURNEYSESSION_PROP_DIVISIONIDS_DSC: "This reflects the division IDs that are associated with this Journey Session.", AR_TP_JOURNEYSESSION_PROP_TYPE_DSC: 'The session type or category such as "atm", "delivery", "ticket" or "web".', AR_TP_JOURNEYSESSION_PROP_EXTERNALID_DSC: "Unique ID in the external system from which the events for the session originate.", AR_TP_JOURNEYSESSION_PROP_EXTERNALURL_DSC: "A URL that identifies an external system of record resource that may have more detailed information on the session.", AR_TP_JOURNEYSESSION_PROP_OUTCOMEACHIEVEMENTS_DSC: "A list of outcome achievements by the customer in the session.", AR_TP_JOURNEYSESSION_PROP_SEGMENTASSIGNMENTS_DSC: "A list of segment assignments to the customer in the session.", AR_TP_JOURNEYSESSION_PROP_ATTRIBUTES_DSC: "Attributes projected from the session's event stream.", AR_TP_JOURNEYSESSION_PROP_ATTRIBUTELISTS_DSC: "List-type attributes projected from the session's event stream.", AR_TP_JOURNEYSESSION_PROP_AWAYDATE_DSC: "Timestamp indicating when the visitor should be considered as away.", AR_TP_JOURNEYSESSION_PROP_BROWSER_DSC: "The customer's browser.", AR_TP_JOURNEYSESSION_PROP_DEVICE_DSC: "The customer's device.", AR_TP_JOURNEYSESSION_PROP_GEOLOCATION_DSC: "The customer's geolocation.", AR_TP_JOURNEYSESSION_PROP_IDLEDATE_DSC: "UTC DateTime indicating when the visitor should be considered as idle.", AR_TP_JOURNEYSESSION_PROP_IPADDRESS_DSC: "The customer's IP address.", AR_TP_JOURNEYSESSION_PROP_IPORGANIZATION_DSC: "The customer's IP-based organization or ISP name.", AR_TP_JOURNEYSESSION_PROP_LASTPAGE_DSC: "The web page where the customer's last web interaction occurred.", AR_TP_JOURNEYSESSION_PROP_MKTCAMPAIGN_DSC: "Marketing / traffic source information.", AR_TP_JOURNEYSESSION_PROP_REFERRER_DSC: "Identifies the page URL that originally generated the request for the current page being viewed.", AR_TP_JOURNEYSESSION_PROP_SEARCHTERMS_DSC: "The search terms associated with the journey session.", AR_TP_JOURNEYSESSION_PROP_USERAGENTSTRING_DSC: "String identifying the user agent.", AR_TP_JOURNEYSESSION_PROP_DURATIONINSECONDS_DSC: "Indicates how long the session has been active (valid for an individual device).", AR_TP_JOURNEYSESSION_PROP_EVENTCOUNT_DSC: "The count of all events performed during the session.", AR_TP_JOURNEYSESSION_PROP_PAGEVIEWCOUNT_DSC: "The count of all pageviews performed during the session.", AR_TP_JOURNEYSESSION_PROP_SCREENVIEWCOUNT_DSC: "The count of all screenviews performed during the session.", AR_TP_JOURNEYSESSION_PROP_APP_DSC: "The application for this session. If no application is associated with this session, accessing this property will return NOT_SET.", AR_TP_JOURNEYSESSION_PROP_NETWORKCONNECTIVITY_DSC: "Network connectivity information for this session. If no network connectivity information is applicable for this session or cannot be determined, accessing this property will return NOT_SET.", AR_TP_JOURNEYSESSION_PROP_SDKLIBRARY_DSC: "The software development kit library used for this session. If no software development kit is associated with this session, accessing this property will return NOT_SET.", AR_TP_LINEITEM: "Line Item", AR_TP_LINEITEM_PROP_LISTINGNAME_DSC: "The name of the listing item.", AR_TP_LINEITEM_PROP_LISTINGNAME_DISP_VAL: "Listing Name", AR_TP_LINEITEM_PROP_LISTINGPRICE_DSC: "Enter the monetary amount for this item. Can be positive, negative, or zero (e.g., 49.99, -10.00, 0).", AR_TP_LINEITEM_PROP_LISTINGPRICE_DISP_VAL: "Listing Price", AR_TP_SHIPPINGOPTION: "Shipping Option", AR_TP_SHIPPINGOPTION_PROP_LABEL_DSC: "Enter the user-facing name for this shipping method (e.g., In Store Pickup, USPS Priority Mail).", AR_TP_SHIPPINGOPTION_PROP_LABEL_DISP_VAL: "Label", AR_TP_SHIPPINGOPTION_PROP_IDENTIFIER_DSC: "Enter a technical identifier for this shipping method (e.g., storePickup, uspsPriority).", AR_TP_SHIPPINGOPTION_PROP_IDENTIFIER_DISP_VAL: "Identifier", AR_TP_SHIPPINGOPTION_PROP_SHIPPINGDETAILS_DSC: "Provide additional details about this shipping method, such as estimated delivery time or special conditions (e.g., \u201CDelivered within 2-3 business days\u201D).", AR_TP_SHIPPINGOPTION_PROP_SHIPPINGDETAILS_DISP_VAL: "Shipping Details", AR_TP_SHIPPINGOPTION_PROP_PRICE_DSC: "The price of the shipping option.", AR_TP_SHIPPINGOPTION_PROP_PRICE_DISP_VAL: "Price", AR_TP_LISTPICKER: "ListPicker", AR_TP_LISTPICKER_PROP_SECTIONS_DSC: "The list picker sections.", AR_TP_LISTPICKER_PROP_SECTIONS_DISP_VAL: "Sections", AR_TP_LISTPICKER_PROP_RECEIVEDMESSAGEIMAGE_DSC: "The image to use for the list picker received message.", AR_TP_LISTPICKER_PROP_RECEIVEDMESSAGEIMAGE_DISP_VAL: "Received Message Image", AR_TP_LISTPICKER_PROP_RECEIVEDMESSAGETITLE_DSC: "The list picker received message title.", AR_TP_LISTPICKER_PROP_RECEIVEDMESSAGETITLE_DISP_VAL: "Received Message Title", AR_TP_LISTPICKER_PROP_RECEIVEDMESSAGESUBTITLE_DSC: "The list picker received message subtitle.", AR_TP_LISTPICKER_PROP_RECEIVEDMESSAGESUBTITLE_DISP_VAL: "Received Message Subtitle", AR_TP_LISTPICKER_PROP_RECEIVEDMESSAGEBUTTONTEXT_DSC: "The list picker received message button text.", AR_TP_LISTPICKER_PROP_RECEIVEDMESSAGEBUTTONTEXT_DISP_VAL: "Received Message Button Text", AR_TP_LISTPICKER_PROP_REPLYMESSAGEIMAGE_DSC: "The image to use for the list picker reply message.", AR_TP_LISTPICKER_PROP_REPLYMESSAGEIMAGE_DISP_VAL: "Reply Message Image", AR_TP_LISTPICKER_PROP_REPLYMESSAGESUBTITLE_DSC: "The list picker reply message subtitle.", AR_TP_LISTPICKER_PROP_REPLYMESSAGESUBTITLE_DISP_VAL: "Reply Message Subtitle", AR_TP_LISTPICKERITEM: "ListPickerItem", AR_TP_LISTPICKERITEM_PROP_TITLE_DSC: "The list picker item title.", AR_TP_LISTPICKERITEM_PROP_TITLE_DISP_VAL: "Title", AR_TP_LISTPICKERITEM_PROP_SUBTITLE_DSC: "The list picker item subtitle.", AR_TP_LISTPICKERITEM_PROP_SUBTITLE_DISP_VAL: "Subtitle", AR_TP_LISTPICKERITEM_PROP_IMAGE_DSC: "The image to use for the list picker.", AR_TP_LISTPICKERITEM_PROP_IMAGE_DISP_VAL: "Image", AR_TP_LISTPICKERSECTION: "ListPickerSection", AR_TP_LISTPICKERSECTION_PROP_TITLE_DSC: "The list picker section title.", AR_TP_LISTPICKERSECTION_PROP_TITLE_DISP_VAL: "Title", AR_TP_LISTPICKERSECTION_PROP_MULTISELECTENABLED_DSC: "Whether multiple selection is enabled for the list picker.", AR_TP_LISTPICKERSECTION_PROP_MULTISELECTENABLED_DISP_VAL: "Multiple Selection", AR_TP_LISTPICKERSECTION_PROP_ITEMS_DSC: "The list picker section items.", AR_TP_LISTPICKERSECTION_PROP_ITEMS_DISP_VAL: "Items", AR_TP_WHEELPICKER: "WheelPicker", AR_TP_WHEELPICKER_PROP_ITEMS_DSC: "The wheel picker items.", AR_TP_WHEELPICKER_PROP_ITEMS_DISP_VAL: "Items", AR_TP_WHEELPICKERITEM: "WheelPickerItem", AR_TP_WHEELPICKERITEM_PROP_TITLE_DSC: "The wheel picker item title.", AR_TP_WHEELPICKERITEM_PROP_TITLE_DISP_VAL: "Title", AR_TP_WHEELPICKERITEM_PROP_VALUE_DSC: "The wheel picker item value.", AR_TP_WHEELPICKERITEM_PROP_VALUE_DISP_VAL: "Value", AR_TP_KNOWLEDGEBASEDOCUMENT: "KnowledgeBaseDocument", AR_TP_KNOWLEDGEBASEDOCUMENT_PROP_ID_DSC: "The unique ID for the knowledge base document.", AR_TP_KNOWLEDGEBASEDOCUMENT_PROP_DSC: "The knowledge base document name.", AR_TP_KNOWLEDGEBASEDOCUMENT_PROP_CONTENT_DSC: "The contents of the knowledge base document.", AR_TP_KNOWLEDGEBASEDOCUMENT_PROP_CATEGORY_DSC: "The category attached to this knowledge base document.", AR_TP_KNOWLEDGEBASEDOCUMENT_PROP_LABELS_DSC: "The list of labels attached to this knowledge base document.", AR_TP_KNOWLEDGEBASEDOCUMENTCATEGORY: "KnowledgeBaseDocumentCategory", AR_TP_KNOWLEDGEBASEDOCUMENTCATEGORY_PROP_ID_DSC: "The knowledge category ID.", AR_TP_KNOWLEDGEBASEDOCUMENTCATEGORY_PROP_DSC: "The knowledge category name.", AR_TP_KNOWLEDGEBASEDOCUMENTLABEL: "KnowledgeBaseDocumentLabel", AR_TP_KNOWLEDGEBASEDOCUMENTLABEL_PROP_ID_DSC: "The knowledge label ID.", AR_TP_KNOWLEDGEBASEDOCUMENTLABEL_PROP_DSC: "The knowledge label name.", AR_TP_MESSAGESTICKERINFO: "MessageStickerInfo", AR_TP_MESSAGESTICKERINFO_PROP_ID_DSC: "The ID for the message sticker.", AR_TP_MESSAGESTICKERINFO_PROP_URL_DSC: "The url for the message sticker.", AR_TP_MESSAGEADDRESSINFO: "MessageAddressInfo", AR_TP_MESSAGEADDRESSINFO_PROP_DSC: "A contact name as supported by the underlying messaging system such as a Twitter handle or Facebook name.", AR_TP_MESSAGEADDRESSINFO_PROP_ADDRESSRAW_DSC: 'The contact address supplied directly by the underlying messaging system. For example: "5551212".', AR_TP_MESSAGEADDRESSINFO_PROP_ADDRESSNORMALIZED_DSC: 'The contact address after any internal processing has been completed. For example: "+13175551212".', AR_TP_MESSAGEADDRESSINFO_PROP_ADDRESSDISPLAYABLE_DSC: 'A displayable version of the contact address. For example: "(317) 555-1212".', AR_TP_MESSAGEADDRESSINFO_PROP_EMAIL_DSC: "The email address of the contact as provided by the specific messaging provider. If not available, this will return a NOT_SET String.", AR_TP_SHORTMESSAGE: "ShortMessage", AR_TP_SHORTMESSAGE_PROP_ID_DSC: "A unique ID for the message.", AR_TP_SHORTMESSAGE_PROP_TYPE_DSC: 'The message type such as "facebook", "instagram", "line", "unknown", "open", "sms", "twitter", "webmessaging" or "whatsapp".', AR_TP_SHORTMESSAGE_PROP_ATTACHMENTS_DSC: "The collection of attachments on this message.", AR_TP_SHORTMESSAGE_PROP_BODY_DSC: "The message body.", AR_TP_SHORTMESSAGE_PROP_BODYTYPE_DSC: 'The message body type ( "text", "html", "notificationresponse", "roadsideassistance" or "rtf" ).', AR_TP_SHORTMESSAGE_PROP_SENDERADDRESS_DSC: "The address of the message sender.", AR_TP_SHORTMESSAGE_PROP_SENDERADDRESSINFO_DSC: "The MessageAddressInfo of the message sender.", AR_TP_SHORTMESSAGE_PROP_TARGETADDRESSES_DSC: "The collection of addresses for the message targets.", AR_TP_SHORTMESSAGE_PROP_TARGETADDRESSESINFO_DSC: "The collection of MessageAddressInfo objects for the message targets.", AR_TP_SHORTMESSAGE_PROP_DATETIMEUTC_DSC: "The Coordinated Universal Time (UTC) datetime for the message.", AR_TP_SHORTMESSAGE_PROP_REFERENCEID_DSC: 'A JSON object containing metadata, including the originating Apple Messages for Business referenceId, that identifies the messaging invitation when the bodyType is "notificationResponse"; otherwise, the value is NOT_SET. It is returned with an external participant\u2019s response and provides invitation and user specific context.', AR_TP_SHORTMESSAGE_PROP_STICKERS_DSC: "The collection of MessageSticker objects associated with the message.", AR_TP_SHORTMESSAGE_PROP_SOCIALVISIBILITY_DSC: 'Indicates if the social visibility of the message is public or private ( "public", "private" ). If the message channel does not support social visibility, this will be a NOT_SET String.', AR_TP_COMMUNICATION: "Communication", AR_TP_NTS: "Null", AR_TP_PROMPT: "Prompt", AR_TP_PROMPT_PROP_ID_DSC: "The unique ID for the prompt.", AR_TP_PROMPT_PROP_DSC: "The prompt name.", AR_TP_PROMPT_PROP_TYPE_DSC: 'The prompt type which will be either "user" or "system".', AR_TP_VOICEMAILSNIPPET: "VoicemailSnippet", AR_TP_VOICEMAILSNIPPET_PROP_ID_DSC: "The unique ID for the VoicemailSnippet.", AR_TP_VOICEMAILSNIPPET_PROP_STARTDATETIME_DSC: "The starting UTC DateTime of the VoicemailSnippet.", AR_TP_VOICEMAILSNIPPET_PROP_LENGTH_DSC: "The Duration of the VoicemailSnippet.", AR_TP_VOICEMAILSNIPPET_PROP_MAXLENGTHREACHED_DSC: "Indicates whether the VoicemailSnippet reached the maximum length configured for the organization in Organization Settings.", AR_TP_VOICESNIPPET: "VoiceSnippet", AR_TP_VOICESNIPPET_PROP_ID_DSC: "The unique ID for the VoiceSnippet. If submitted to the Voice Snippet Service, this ID can be used for retrieval from it later.", AR_TP_VOICESNIPPET_PROP_STARTDATETIME_DSC: "The starting UTC DateTime of the VoiceSnippet.", AR_TP_VOICESNIPPET_PROP_LENGTH_DSC: "The Duration of the VoiceSnippet.", AR_TP_SKL: "ACD Skill", AR_TP_SKL_PROP_ID_DSC: "The skill ID.", AR_TP_SKL_PROP_DSC: "The skill name.", AR_TP_STR: "String", AR_TP_USQ: "User", AR_TP_USQ_PROP_ID_DSC: "The user ID.", AR_TP_USQ_PROP_DSC: "The user name property.", AR_TP_USQ_PROP_USERNAME_DSC: "The user username property.", AR_TP_VIDEO: "Video", AR_TP_VIDEO_PROP_ID_DSC: "The video ID. If an ID is present, this will be the identifier of the Canned Response video response asset. Otherwise if this is an video created from a MakeVideoFromUrl call, the ID will be a NOT_SET String.", AR_TP_VIDEO_PROP_DSC: "The video name. If a name is present, this will be the name of the Canned Response video response asset. Otherwise if this is an video created from a MakeVideoFromUrl call, the name will be a NOT_SET String.", AR_TP_VIDEO_PROP_URL_DSC: "The universal resource locator that specifies the location of the video.", AR_TP_SURVEYQUESTION: "SurveyQuestion", AR_TP_SURVEYQUESTION_PROP_ID_DSC: "The survey question id.", AR_TP_SURVEYQUESTION_PROP_QUESTIONTYPE_DSC: "The survey question type.", AR_TP_SURVEYQUESTION_PROP_ANSWEROPTIONS_DSC: "The survey answer options available for this survey question.", AR_TP_SURVEYQUESTION_PROP_NAENABLED_DSC: "If the survey question allows for N.A.", AR_TP_SURVEYQUESTION_PROP_MAXRESPONSECHARACTERS_DSC: "The maximum number of characters allowed for a free text question or Net Promoter Score follow up question. If not applicable, this will be NOT_SET.", AR_TP_SURVEYQUESTION_PROP_QUESTIONTEXT_DSC: "The text of the question as it appears on the associated survey form.", AR_TP_SURVEYQUESTION_PROP_QUESTIONHELPTEXT_DSC: "For questions that have help text, this will return the text of that input from the participant. If not applicable, this will be a NOT_SET String.", AR_TP_SURVEYQUESTION_PROP_FOLLOWUPQUESTIONTEXT_DSC: "The follow up text of the question as it appears on the associated survey form. If not applicable, this will be a NOT_SET String.", AR_TP_SURVEYQUESTIONGROUP: "SurveyQuestionGroup", AR_TP_SURVEYQUESTIONGROUP_PROP_ID_DSC: "The survey question id.", AR_TP_SURVEYQUESTIONGROUP_PROP_DSC: "The survey question group name.", AR_TP_SURVEYQUESTIONGROUP_PROP_QUESTIONS_DSC: "The survey questions configured for this question group.", AR_TP_SURVEYFORM: "SurveyForm", AR_TP_SURVEYFORM_PROP_ID_DSC: "The survey form ID.", AR_TP_SURVEYFORM_PROP_DSC: "The survey form name.", AR_TP_SURVEYFORM_PROP_LANGUAGE_DSC: "The language associated with the survey form.", AR_TP_SURVEYFORM_PROP_QUESTIONGROUPS_DSC: "The survey question groups configured on the survey form.", AR_TP_SURVEYANSWEROPTION: "SurveyAnswerOption", AR_TP_SURVEYANSWEROPTION_PROP_ID_DSC: "The survey answer option id as defined on the Survey form referenced by this flow.", AR_TP_SURVEYANSWEROPTION_PROP_DTMF_DSC: "The survey answer option DTMF value.", AR_TP_SURVEYANSWEROPTION_PROP_TEXT_DSC: "The survey answer option text as defined on the Survey form referenced by this flow.", AR_TP_QUEUE: "Queue", AR_TP_QUEUE_PROP_ID_DSC: "The queue ID.", AR_TP_QUEUE_PROP_DSC: "The queue name.", AR_TP_UTILIZATIONLABEL: "UtilizationLabel", AR_TP_UTILIZATIONLABEL_PROP_ID_DSC: "The Utilization Label identifier.", AR_TP_UTILIZATIONLABEL_PROP_DSC: "The Utilization Label description.", AR_TP_CONVERSATIONTYPEENUM: "ConversationType Enum", AR_TP_CONVERSATIONTYPEENUM_PROP_CALL_DSC: "A call conversation.", AR_TP_CONVERSATIONTYPEENUM_PROP_CALLBACK_DSC: "A callback conversation.", AR_TP_CONVERSATIONTYPEENUM_PROP_CHAT_DSC: "A chat conversation.", AR_TP_CONVERSATIONTYPEENUM_PROP_COBROWSE_DSC: "A co-browse conversation.", AR_TP_CONVERSATIONTYPEENUM_PROP_EMAIL_DSC: "An email conversation.", AR_TP_CONVERSATIONTYPEENUM_PROP_SCREENSHARE_DSC: "A screenShare conversation.", AR_TP_CONVERSATIONTYPEENUM_PROP_SOCIALEXPRESSION_DSC: "A conversation on social media.", AR_TP_CONVERSATIONTYPEENUM_PROP_VIDEOCOMM_DSC: "A video conversation.", AR_TP_CONVERSATIONTYPEENUM_PROP_UNKNOWN_DSC: "An unknown conversation type.", AR_TP_CURRENCYENUM: "Currency Enum", AR_TP_CURRENCYENUM_PROP_CODE_DSC: "The ISO 4217 currency code.", AR_TP_LANGUAGEENUM: "Language Enum", AR_TP_LANGUAGEENUM_PROP_TAG_DSC: "The IETF language tag.", AR_TP_REGIONENUM: "Region Enum", AR_TP_REGIONENUM_PROP_DIALINGCODE_DSC: "The ITU-T E.164 dialing code.", AR_TP_REGIONENUM_PROP_COUNTRYCODE_DSC: "The two character ISO 3166 alpha 2 country code.", AR_TP_MESSAGEBODYSTYLEENUM: "MessageBodyStyle Enum", AR_TP_MESSAGEBODYSTYLEENUM_PROP_NOTICE_DSC: "The message style is a notice.", AR_TP_MESSAGEBODYSTYLEENUM_PROP_STANDARD_DSC: "The message style is a standard message.", AR_TP_SURVEYDISPOSITIONENUM: "SurveyDisposition Enum", AR_TP_SURVEYDISPOSITIONENUM_PROP_ERROR_DSC: "The survey invite request did not complete successfully due to an error.", AR_TP_SURVEYDISPOSITIONENUM_PROP_OPTOUT_DSC: "The survey invite request is declined as per a configured opt-out setting.", AR_TP_CURRENCIESENUMCONTAINER: "Currencies Enum Container", AR_TP_DAYOFWEEKENUMCONTAINER: "Day of Week Enum Container", AR_TP_DAYOFWEEKENUMCONTAINER_PROP_SUNDAY_DSC: "The day of week Integer value for Sunday (1).", AR_TP_DAYOFWEEKENUMCONTAINER_PROP_SUNDAY_DISP_VAL: "Sunday", AR_TP_DAYOFWEEKENUMCONTAINER_PROP_MONDAY_DSC: "The day of week Integer value for Monday (2).", AR_TP_DAYOFWEEKENUMCONTAINER_PROP_MONDAY_DISP_VAL: "Monday", AR_TP_DAYOFWEEKENUMCONTAINER_PROP_TUESDAY_DSC: "The day of week Integer value for Tuesday (3).", AR_TP_DAYOFWEEKENUMCONTAINER_PROP_TUESDAY_DISP_VAL: "Tuesday", AR_TP_DAYOFWEEKENUMCONTAINER_PROP_WEDNESDAY_DSC: "The day of week Integer value for Wednesday (4).", AR_TP_DAYOFWEEKENUMCONTAINER_PROP_WEDNESDAY_DISP_VAL: "Wednesday", AR_TP_DAYOFWEEKENUMCONTAINER_PROP_THURSDAY_DSC: "The day of week Integer value for Thursday (5).", AR_TP_DAYOFWEEKENUMCONTAINER_PROP_THURSDAY_DISP_VAL: "Thursday", AR_TP_DAYOFWEEKENUMCONTAINER_PROP_FRIDAY_DSC: "The day of week Integer value for Friday (6).", AR_TP_DAYOFWEEKENUMCONTAINER_PROP_FRIDAY_DISP_VAL: "Friday", AR_TP_DAYOFWEEKENUMCONTAINER_PROP_SATURDAY_DSC: "The day of week Integer value for Saturday (7).", AR_TP_DAYOFWEEKENUMCONTAINER_PROP_SATURDAY_DISP_VAL: "Saturday", AR_TP_DATETIMEENUMCONTAINER: "DateTime Enum Container", AR_TP_DATETIMEENUMCONTAINER_PROP_DAYOFWEEK_DSC: "Contains properties for day of week Integer constants.", AR_TP_DATETIMEENUMCONTAINER_PROP_DAYOFWEEK_DISP_VAL: "DayOfWeek", AR_TP_DIGITALAUDIO: "Digital Audio", AR_TP_DIGITALAUDIO_PROP_ID_DSC: "The digital audio ID. If an ID is present, this will be the identifier of the Canned Response digital audio response asset. Otherwise if this is a digital audio created from a MakeDigitalAudioFromUrl call, the ID will be a NOT_SET String.", AR_TP_DIGITALAUDIO_PROP_DSC: "The digital audio name. If a name is present, this will be the name of the Canned Response digital audio response asset. Otherwise if this is a digital audio created from a MakeDigitalAudioFromUrl call, the name will be a NOT_SET String.", AR_TP_DIGITALAUDIO_PROP_URL_DSC: "The universal resource locator that specifies the location of the digital audio.", AR_TP_FILE: "File", AR_TP_FILE_PROP_ID_DSC: "The file ID. If an ID is present, this will be the identifier of the Canned Response file response asset. Otherwise if this is a file created from a MakeFileFromUrl call, the ID will be a NOT_SET String.", AR_TP_FILE_PROP_DSC: "The file name. If a name is present, this will be the name of the Canned Response file response asset. Otherwise if this is a file created from a MakeFileFromUrl call, the name will be a NOT_SET String.", AR_TP_FILE_PROP_URL_DSC: "The universal resource locator that specifies the location of the file.", AR_TP_LANGUAGESENUMCONTAINER: "Languages Enum Container", AR_TP_REGIONSENUMCONTAINER: "Regions Enum Container", AR_TP_RESPONSEASSET: "Response Asset", AR_TP_RESPONSEASSET_PROP_ID_DSC: "The response asset identifier.", AR_TP_RESPONSEASSET_PROP_DSC: "The response asset name.", AR_TP_RESPONSEASSET_PROP_TYPE_DSC: "The response asset type like 'image/png'.", AR_TP_RESPONSEASSET_PROP_LENGTH_DSC: "The response asset size in bytes.", AR_TP_RESPONSEASSET_PROP_URL_DSC: "The universal resource locator that specifies the location of the response asset.", AR_TP_SURVEYDISPOSITIONSENUMCONTAINER: "SurveyDispositions Enum Container", AR_TP_CONVERSATIONTYPESENUMCONTAINER: "ConversationTypes Enum Container", AR_TP_TIME: "Time", AR_TP_TIMEPARTENUMCONTAINER: "Time Part Enum Container", AR_TP_TIMEPARTENUMCONTAINER_PROP_DAYS_DSC: "Indicates that a given value for Audio playback should be expressed as days.", AR_TP_TIMEPARTENUMCONTAINER_PROP_DAYS_DISP_VAL: "Days", AR_TP_TIMEPARTENUMCONTAINER_PROP_HOURS_DSC: "Indicates that a given value for Audio playback should be expressed as hours.", AR_TP_TIMEPARTENUMCONTAINER_PROP_HOURS_DISP_VAL: "Hours", AR_TP_TIMEPARTENUMCONTAINER_PROP_MINUTES_DSC: "Indicates that a given value for Audio playback should be expressed as minutes.", AR_TP_TIMEPARTENUMCONTAINER_PROP_MINUTES_DISP_VAL: "Minutes", AR_TP_TIMEPARTENUMCONTAINER_PROP_SECONDS_DSC: "Indicates that a given value for Audio playback should be expressed as seconds.", AR_TP_TIMEPARTENUMCONTAINER_PROP_SECONDS_DISP_VAL: "Seconds", AR_TP_TIMEPARTENUM: "Time Part Enum", AR_TP_TIMEPICKER: "TimePicker", AR_TP_TIMEPICKER_PROP_TITLE_DSC: "The TimePicker title.", AR_TP_TIMEPICKER_PROP_SUBTITLE_DSC: "The TimePicker subtitle.", AR_TP_TIMEPICKER_PROP_IMAGE_DSC: "The image to use for the TimePicker.", AR_TP_TIMEPICKER_PROP_IMAGE_DISP_VAL: "Image", AR_TP_TIMEPICKER_PROP_ADDRESS_DSC: "The event address.", AR_TP_TIMEPICKER_PROP_ADDRESS_DISP_VAL: "Address", AR_TP_TIMEPICKER_PROP_LONGITUDE_DSC: "The event longitude.", AR_TP_TIMEPICKER_PROP_LONGITUDE_DISP_VAL: "Longitude", AR_TP_TIMEPICKER_PROP_LATITUDE_DSC: "The event latitude.", AR_TP_TIMEPICKER_PROP_LATITUDE_DISP_VAL: "Latitude", AR_TP_TIMESLOT: "Timeslot", AR_TP_TIMESLOT_PROP_DTM_DSC: "The Coordinated Universal Time (UTC) datetime for the timeslot.", AR_TP_TIMESLOT_PROP_DUR_DSC: "The Duration for the timeslot.", AR_TP_WRC: "WrapupCode", AR_TP_WRC_PROP_ID_DSC: "The wrapup code ID.", AR_TP_WRC_PROP_DSC: "The wrapup code name.", AR_TP_GRAMMAR: "Grammar", AR_TP_GRAMMAR_PROP_ID_DSC: "The grammar ID.", AR_TP_GRAMMAR_PROP_DSC: "The grammar name.", AR_TP_GRP: "Group", AR_TP_GRP_PROP_ID_DSC: "The group ID.", AR_TP_GRP_PROP_DSC: "The group name.", AR_TP_PHNBR: "PhoneNumber", AR_TP_PHNBR_PROP_DIALINGCODE_DSC: 'The ITU-T E.164 dialing code for a "tel" scheme phone number with a valid E.164 number, otherwise a NOT_SET String.', AR_TP_PHNBR_PROP_E164_DSC: 'The E.164 formatted String for a "tel" scheme phone number with a valid E.164 number, otherwise a NOT_SET String.', AR_TP_PHNBR_PROP_SUBSCRIBERNUMBER_DSC: 'The E.164 subscriber number for a "tel" scheme phone number with a valid E.164 number, otherwise a NOT_SET String.', AR_TP_PHNBR_PROP_ISGLOBAL_DSC: 'Indicates if this is a "tel" scheme phone number that contains a global number.', AR_TP_PHNBR_PROP_ISSIP_DSC: 'Indicates if this is a "sip" or "sips" scheme phone number.', AR_TP_PHNBR_PROP_ISTEL_DSC: 'Indicates if this is a "tel" scheme phone number.', AR_TP_PHNBR_PROP_RAW_DSC: "The String used to create this Phone Number instance.", AR_TP_PHNBR_PROP_SCHEME_DSC: 'The scheme set on this phone number which will be "sip" or "sips", "tel" or a NOT_SET String if no scheme could be determined.', AR_TP_PHNBR_PROP_URI_DSC: 'Returns the URI for a "sip", "sips" or "tel" scheme phone number, otherwise a NOT_SET String.', AR_TP_EMERGRP: "EmergencyGroup", AR_TP_EMERGRP_PROP_ID_DSC: "The emergency group ID.", AR_TP_EMERGRP_PROP_DSC: "The emergency group name.", AR_TP_SCHED: "Schedule", AR_TP_SCHED_PROP_ID_DSC: "The schedule ID.", AR_TP_SCHED_PROP_DSC: "The schedule name.", AR_TP_SCHEDGRP: "ScheduleGroup", AR_TP_SCHEDGRP_PROP_ID_DSC: "The schedule group ID.", AR_TP_SCHEDGRP_PROP_DSC: "The schedule group name.", AR_TP_SCHEDGRP_PROP_TIMEZONE_DSC: "The timezone ID of the timezone assigned to the schedule group.", AR_TP_ANY: "Any", AR_TP_ANYCOMPLEX: "AnyComplex", AR_TP_ANYPROMPTORAUDIO: "Audio or Prompt", AR_TP_DATEFORMATENUM: "Date Format Enum", AR_TP_DATETIMEFORMATENUM: "DateTime Format Enum", AR_TP_TIMEFORMATENUM: "Time Format Enum", AR_TP_BOOLFORMATENUM: "Bool Format Enum", AR_TP_CURRENCYFORMATENUM: "Currency Format Enum", AR_TP_NUMBERFORMATENUM: "Number Format Enum", AR_TP_PHONENUMBERFORMATENUM: "Phone Number Format Enum", AR_TP_LANGUAGECONTEXTENUM: "Language Context Enum", AR_TP_STRINGFORMATENUM: "String Format Enum", AR_TP_DATEFORMATENUMCONTAINER: "Date Format Enum Container", AR_TP_DATEFORMATENUMCONTAINER_PROP_LONGYEAR_DSC: "Date with the year expressed using the long format.", AR_TP_DATEFORMATENUMCONTAINER_PROP_LONGYEAR_DISP_VAL: "Date (long year)", AR_TP_DATEFORMATENUMCONTAINER_PROP_SHORTYEAR_DSC: "Date with the year expressed using the short format.", AR_TP_DATEFORMATENUMCONTAINER_PROP_SHORTYEAR_DISP_VAL: "Date", AR_TP_DATEFORMATENUMCONTAINER_PROP_SHORTMONTHANDDAY_DSC: "Date with the day of week, month name and day of month expressed using an ordinal number.", AR_TP_DATEFORMATENUMCONTAINER_PROP_SHORTMONTHANDDAY_DISP_VAL: "Month and day", AR_TP_DATEFORMATENUMCONTAINER_PROP_DAYOFWEEKONLY_DSC: "Express only the day of week name.", AR_TP_DATEFORMATENUMCONTAINER_PROP_DAYOFWEEKONLY_DISP_VAL: "Day of week", AR_TP_DATEFORMATENUMCONTAINER_PROP_DAYONLY_DSC: "Express only the day of month using an ordinal number.", AR_TP_DATEFORMATENUMCONTAINER_PROP_DAYONLY_DISP_VAL: "Day of month", AR_TP_DATEFORMATENUMCONTAINER_PROP_MONTHONLY_DSC: "Express only the month name.", AR_TP_DATEFORMATENUMCONTAINER_PROP_MONTHONLY_DISP_VAL: "Month", AR_TP_DATEFORMATENUMCONTAINER_PROP_SHORTYEARONLY_DSC: "Express only the year using the short format.", AR_TP_DATEFORMATENUMCONTAINER_PROP_SHORTYEARONLY_DISP_VAL: "Year (short form)", AR_TP_DATEFORMATENUMCONTAINER_PROP_LONGYEARONLY_DSC: "Express only the year using the long format.", AR_TP_DATEFORMATENUMCONTAINER_PROP_LONGYEARONLY_DISP_VAL: "Year (long form)", AR_TP_SKILLEXPRESSIONFILTER: "SkillExpressionFilter", AR_TP_SKILLEXPRESSIONFILTER_PROP_RAW_DSC: "The input filter String used to create this Skill Expression Filter instance.", AR_TP_SKILLEXPRESSIONFILTER_PROP_NORMALIZED_DSC: "If valid, this holds the normalized expression filter text. Otherwise, this will be a NOT_SET String.", AR_TP_SKILLEXPRESSIONFILTER_PROP_ACDSKILLS_DSC: "If valid, the items in this collection will be ACD Skills referenced by the filter. Otherwise, this will be an empty collection.", AR_TP_SKILLEXPRESSIONFILTER_PROP_LANGUAGESKILLS_DSC: "If valid, the items in this collection will be Language Skills referenced by the filter. Otherwise, this will be an empty collection.", AR_TP_SKILLEXPRESSIONFILTER_PROP_ERRORS_DSC: "If invalid, the items in this collection will contain error information about the input filter String.", AR_TP_ISSUEINFO: "IssueInfo", AR_TP_ISSUEINFO_PROP_TYPE_DSC: "A non-empty String that contains the type or category of the issue.", AR_TP_ISSUEINFO_PROP_MESSAGE_DSC: "A non-localized message for the issue. The String may be empty or NOT_SET.", AR_TP_BOOLFORMATENUMCONTAINER: "Bool Format Enum Container", AR_TP_BOOLFORMATENUMCONTAINER_PROP_PLAYYESNO_DSC: "Expresses a boolean using Yes for true and No for false or NOT_SET.", AR_TP_BOOLFORMATENUMCONTAINER_PROP_PLAYYESNO_DISP_VAL: "Yes / No", AR_TP_TIMEFORMATENUMCONTAINER: "Time Format Enum Container", AR_TP_TIMEFORMATENUMCONTAINER_PROP_TWENTYFOURHOURS_DSC: "Use a twenty four hour time format.", AR_TP_TIMEFORMATENUMCONTAINER_PROP_TWENTYFOURHOURS_DISP_VAL: "Time (24 hour clock)", AR_TP_TIMEFORMATENUMCONTAINER_PROP_TWELVEHOURS_DSC: "Use a twelve hour format time without a.m. / p.m.", AR_TP_TIMEFORMATENUMCONTAINER_PROP_TWELVEHOURS_DISP_VAL: "Time (12 hour clock)", AR_TP_CURRENCYFORMATENUMCONTAINER: "Currency Format Enum Container", AR_TP_CURRENCYFORMATENUMCONTAINER_PROP_ASMINORUNITS_DSC: 'Express the currency in terms of minor units such as "150 cents".', AR_TP_CURRENCYFORMATENUMCONTAINER_PROP_ASMINORUNITS_DISP_VAL: "In minor units", AR_TP_CURRENCYFORMATENUMCONTAINER_PROP_MAJORUNITSONLY_DSC: "Express only the major units of the currency.", AR_TP_CURRENCYFORMATENUMCONTAINER_PROP_MAJORUNITSONLY_DISP_VAL: "Major units only", AR_TP_CURRENCYFORMATENUMCONTAINER_PROP_MINORUNITSONLY_DSC: "Express only the minor units of the currency.", AR_TP_CURRENCYFORMATENUMCONTAINER_PROP_MINORUNITSONLY_DISP_VAL: "Minor units only", AR_TP_CURRENCYFORMATENUMCONTAINER_PROP_PLAYDIGITS_DSC: 'Expresses the individual digits of the currency with the major units name such as "5 0 dollars"', AR_TP_CURRENCYFORMATENUMCONTAINER_PROP_PLAYDIGITS_DISP_VAL: "Speak each digit", AR_TP_NUMBERFORMATENUMCONTAINER: "Number Format Enum Container", AR_TP_NUMBERFORMATENUMCONTAINER_PROP_PLAYDIGITS_DSC: "Express the numeric value using individual digits.", AR_TP_NUMBERFORMATENUMCONTAINER_PROP_PLAYDIGITS_DISP_VAL: "Speak each digit", AR_TP_PHONENUMBERFORMATENUMCONTAINER: "Phone Number Format Enum Container", AR_TP_PHONENUMBERFORMATENUMCONTAINER_PROP_GLOBAL_DSC: "Express the phone number with the country code.", AR_TP_PHONENUMBERFORMATENUMCONTAINER_PROP_GLOBAL_DISP_VAL: "Global playback", AR_TP_PHONENUMBERFORMATENUMCONTAINER_PROP_LOCAL_DSC: "Express the phone number in a country-specific colloquial format that does not contain the country code.", AR_TP_PHONENUMBERFORMATENUMCONTAINER_PROP_LOCAL_DISP_VAL: "Local playback", AR_TP_STRINGFORMATENUMCONTAINER: "String Format Enum Container", AR_TP_STRINGFORMATENUMCONTAINER_PROP_PLAYCHARS_DSC: "Express a string with the string's characters individually.", AR_TP_STRINGFORMATENUMCONTAINER_PROP_PLAYCHARS_DISP_VAL: "Speak each character", AR_TP_LANGUAGEQUANTITYENUMCONTAINER: "Language Quantity Enum Container", AR_TP_LANGUAGEQUANTITYENUMCONTAINER_PROP_PLURAL_DSC: "Use the plural form.", AR_TP_LANGUAGEQUANTITYENUMCONTAINER_PROP_PLURAL_DISP_VAL: "Plural", AR_TP_LANGUAGEQUANTITYENUMCONTAINER_PROP_SINGULAR_DSC: "Use the singular form.", AR_TP_LANGUAGEQUANTITYENUMCONTAINER_PROP_SINGULAR_DISP_VAL: "Singular", AR_TP_LANGUAGECASEENUMCONTAINER: "Language Case Enum Container", AR_TP_LANGUAGECASEENUMCONTAINER_PROP_ARTICLE_DSC: "Use the article grammatical case.", AR_TP_LANGUAGECASEENUMCONTAINER_PROP_ARTICLE_DISP_VAL: "Article", AR_TP_LANGUAGECASEENUMCONTAINER_PROP_ACCUSATIVE_DSC: "Use the accusative case.", AR_TP_LANGUAGECASEENUMCONTAINER_PROP_ACCUSATIVE_DISP_VAL: "Accusative", AR_TP_LANGUAGECASEENUMCONTAINER_PROP_DATIVE_DSC: "Use the dative case.", AR_TP_LANGUAGECASEENUMCONTAINER_PROP_DATIVE_DISP_VAL: "Dative", AR_TP_LANGUAGECASEENUMCONTAINER_PROP_GENITIVE_DSC: "Use the genitive case.", AR_TP_LANGUAGECASEENUMCONTAINER_PROP_GENITIVE_DISP_VAL: "Genitive", AR_TP_LANGUAGECASEENUMCONTAINER_PROP_NOMINATIVE_DSC: "Use the nominative case.", AR_TP_LANGUAGECASEENUMCONTAINER_PROP_NOMINATIVE_DISP_VAL: "Nominative", AR_TP_LANGUAGEGENDERENUMCONTAINER: "Language Gender Enum Container", AR_TP_LANGUAGEGENDERENUMCONTAINER_PROP_COMMON_DSC: "Use the common gender.", AR_TP_LANGUAGEGENDERENUMCONTAINER_PROP_COMMON_DISP_VAL: "Common", AR_TP_LANGUAGEGENDERENUMCONTAINER_PROP_FEMININE_DSC: "Use the feminine gender.", AR_TP_LANGUAGEGENDERENUMCONTAINER_PROP_FEMININE_DISP_VAL: "Feminine", AR_TP_LANGUAGEGENDERENUMCONTAINER_PROP_MASCULINE_DSC: "Use the masculine gender.", AR_TP_LANGUAGEGENDERENUMCONTAINER_PROP_MASCULINE_DISP_VAL: "Masculine", AR_TP_LANGUAGEGENDERENUMCONTAINER_PROP_NEUTER_DSC: "Use the neuter gender.", AR_TP_LANGUAGEGENDERENUMCONTAINER_PROP_NEUTER_DISP_VAL: "Neuter", AR_TP_LANGUAGESKILL: "Language Skill", AR_TP_LANGUAGESKILL_PROP_ID_DSC: "The language skill ID.", AR_TP_LANGUAGESKILL_PROP_DSC: "The language skill name.", AR_TP_CONTACTLIST: "ContactList", AR_TP_CONTACTLIST_PROP_ID_DSC: "The contact list ID.", AR_TP_CONTACTLIST_PROP_DSC: "The contact list name.", AR_TP_CAMPAIGN: "Campaign", AR_TP_CAMPAIGN_PROP_ID_DSC: "The campaign ID.", AR_TP_CAMPAIGN_PROP_DSC: "The campaign name.", AR_TP_CONTACT: "Contact", AR_TP_WORKITEMEVENTDATA: "WorkitemEventData", AR_TP_WORKITEMEVENTDATA_PROP_RULE_DSC: "The rule for the workitem event data.", AR_TP_WORKITEMEVENTRULE: "WorkitemEventRule", AR_TP_WORKITEMEVENTRULE_PROP_DSC: "The name of the workitem event rule.", AR_TP_WORKITEM: "Workitem", AR_TP_WORKITEM_PROP_ID_DSC: "The workitem ID which uniquely identifies a workitem.", AR_TP_WORKITEM_PROP_DSC: "The name of the workitem.", AR_TP_WORKITEM_PROP_ASSIGNEE_DSC: "The the assignee of this workitem.", AR_TP_WORKITEM_PROP_ASSIGNMENTSTATE_DSC: "The assignment state of the workitem.", AR_TP_WORKITEM_PROP_AUTOSTATUSTRANSITION_DSC: "This returns true if auto status transition is enabled for the workitem, otherwise false.", AR_TP_WORKITEM_PROP_CUSTOMFIELDS_DSC: "Custom fields defined in the schema referenced by the worktype of the workitem.", AR_TP_WORKITEM_PROP_DATECREATED_DSC: "The creation date of the workitem.", AR_TP_WORKITEM_PROP_DATEASSIGNMENTSTATECHANGED_DSC: "The date the assignment state changed for the workitem.", AR_TP_WORKITEM_PROP_DATEDUE_DSC: "The due date of the workitem.", AR_TP_WORKITEM_PROP_DATEEXPIRES_DSC: "The expiry date of the workitem.", AR_TP_WORKITEM_PROP_DATEMODIFIED_DSC: "The date the workitem was last modified.", AR_TP_WORKITEM_PROP_DATESTATUSCHANGED_DSC: "The date the status was last changed.", AR_TP_WORKITEM_PROP_DATECLOSED_DSC: "The date the workitem was closed.", AR_TP_WORKITEM_PROP_DESCRIPTION_DSC: "The description of the workitem.", AR_TP_WORKITEM_PROP_DUR_DSC: "The estimated duration to complete the workitem.", AR_TP_WORKITEM_PROP_DIVISIONID_DSC: "The division ID which identifies the division to which this workitem belongs.", AR_TP_WORKITEM_PROP_EXTERNALCONTACT_DSC: "The External Contact associated with this workitem. If there is no External Contact, the value will be NOT_SET.", AR_TP_WORKITEM_PROP_EXTERNALTAG_DSC: "The external tag associated with this workitem. If there is no external tag, the value will be NOT_SET. Use the Set External Tag action to modify.", AR_TP_WORKITEM_PROP_LANGUAGESKILL_DSC: "The Language Skill associated with the workitem.", AR_TP_WORKITEM_PROP_MODIFIEDBY_DSC: "The ID of the entity that last modified the workitem.", AR_TP_WORKITEM_PROP_PRIORITY_DSC: "The priority of the workitem. Use the Set Priority action to modify.", AR_TP_WORKITEM_PROP_QUEUE_DSC: "The workitem's queue.", AR_TP_WORKITEM_PROP_REPORTER_DSC: "The workitem's reporter.", AR_TP_WORKITEM_PROP_SCOREDAGENTS_DSC: "A list of agent score pairs used for the last preferred agent routing.", AR_TP_WORKITEM_PROP_SKILLS_DSC: "The ACD Skills associated with the workitem.", AR_TP_WORKITEM_PROP_STATUS_DSC: "The status of the workitem.", AR_TP_WORKITEM_PROP_TTLDATETIME_DSC: "The time to live of the workitem until it is deleted from Genesys Cloud represented as a DateTime in Coordinated Universal Time (UTC).", AR_TP_WORKITEM_PROP_TYPEID_DSC: "The ID of the worktype for the workitem.", AR_TP_WORKITEM_PROP_UTILIZATIONLABEL_DSC: "The utilization label for the workitem.", AR_TP_WORKITEM_PROP_VERSION_DSC: "The version of the workitem. Note that this may be a NOT_SET Integer.", AR_TP_WORKITEM_PROP_WORKBIN_DSC: "The workbin that contains the workitem.", AR_TP_WORKBIN: "Workbin", AR_TP_WORKBIN_PROP_ID_DSC: "The ID of the workbin.", AR_TP_WORKBIN_PROP_DSC: "The name of the workbin.", AR_TP_WORKBIN_PROP_DIVISIONID_DSC: "The division ID which identifies the division of this workbin.", AR_TP_WORKTYPESTATUS: "WorktypeStatus", AR_TP_WORKTYPESTATUS_PROP_ID_DSC: "The ID of the worktype status.", AR_TP_WORKTYPESTATUS_PROP_DSC: "The name of the worktype status.", AR_TP_WORKTYPESTATUS_PROP_CATEGORY_DSC: 'The category of the worktype status. Allowable values are "Open", "InProgress", "Waiting" and "Closed".', AR_OP_DSC_ADD: "The addition operator returns the sum of two values.", AR_OP_LNG_ADD_LNG_LNG_DSC: "Adds two Integer values and returns the result.", AR_OP_LNG_ADD_LNG_LNG_RV: "The sum of the two Integer input values.", AR_OP_LNG_ADD_LNG_LNG_PRM_DSC_0: "An Integer value.", AR_OP_LNG_ADD_LNG_LNG_PRM_DSC_1: "The Integer value to Add.", AR_OP_DEC_ADD_DEC_LNG_DSC: "Adds an Integer value to a Decimal value and returns the result.", AR_OP_DEC_ADD_DEC_LNG_RV: "The sum of the Integer and Decimal input values.", AR_OP_DEC_ADD_DEC_LNG_PRM_DSC_0: "A Decimal value.", AR_OP_DEC_ADD_DEC_LNG_PRM_DSC_1: "The Integer value to add.", AR_OP_DEC_ADD_LNG_DEC_DSC: "Adds a Decimal value to an Integer value and returns the result.", AR_OP_DEC_ADD_LNG_DEC_RV: "The sum of the two Integer input values.", AR_OP_DEC_ADD_LNG_DEC_PRM_DSC_0: "An Integer value.", AR_OP_DEC_ADD_LNG_DEC_PRM_DSC_1: "The Decimal value to add.", AR_OP_CUR_ADD_CUR_CUR_DSC: "Adds two Currency values and returns the result. The Currency values must have the same code.", AR_OP_CUR_ADD_CUR_CUR_RV: "The sum of the two Currency input values.", AR_OP_CUR_ADD_CUR_CUR_PRM_DSC_0: "A Currency value.", AR_OP_CUR_ADD_CUR_CUR_PRM_DSC_1: "The second Currency value to add.", AR_OP_CUR_ADD_CUR_CUR_EX_OUT_0: 'A Currency with an amount of 2.25 and code of "USD"', AR_OP_CUR_ADD_CUR_CUR_EX_OUT_1: "A Currency with an amount of 2.25 and NOT_SET code.", AR_OP_AUDIO_ADD_AUDIO_AUDIO_DSC: "Adds two Audio values together and returns the resulting Audio by appending them together.", AR_OP_AUDIO_ADD_AUDIO_AUDIO_RV: "Appends the two Audio input values.", AR_OP_AUDIO_ADD_AUDIO_AUDIO_PRM_DSC_0: "An Audio value .", AR_OP_AUDIO_ADD_AUDIO_AUDIO_PRM_DSC_1: "The second Audio value to add.", AR_OP_AUDIO_ADD_AUDIO_AUDIO_EX_OUT_0: 'Audio for the text to speech playback of "Hello" followed by "World".', AR_OP_AUDIO_ADD_PROMPT_PROMPT_DSC: "Adds two prompt values together and returns the resulting Audio by appending them.", AR_OP_AUDIO_ADD_PROMPT_PROMPT_RV: "Appends the two Prompt input values.", AR_OP_AUDIO_ADD_PROMPT_PROMPT_PRM_DSC_0: "A Prompt.", AR_OP_AUDIO_ADD_PROMPT_PROMPT_PRM_DSC_1: "The second Prompt to add.", AR_OP_AUDIO_ADD_PROMPT_PROMPT_EX_OUT_0: "Audio for the Hello prompt followed by the There prompt for the language in which the flow is running.", AR_OP_AUDIO_ADD_AUDIO_PROMPT_DSC: "Adds an Audio and a prompt value together and returns the resulting Audio by appending them together.", AR_OP_AUDIO_ADD_AUDIO_PROMPT_RV: "Appends the Audio and Prompt input values.", AR_OP_AUDIO_ADD_AUDIO_PROMPT_PRM_DSC_0: "An Audio value.", AR_OP_AUDIO_ADD_AUDIO_PROMPT_PRM_DSC_1: "The Prompt value to add.", AR_OP_AUDIO_ADD_AUDIO_PROMPT_EX_OUT_0: 'Audio for the TTS playback of "Hello" followed by the audio for the There prompt for the language in which the flow is running.', AR_OP_AUDIO_ADD_PROMPT_AUDIO_DSC: "Adds a prompt and Audio value together and returns the resulting Audio by appending them together.", AR_OP_AUDIO_ADD_PROMPT_AUDIO_RV: "Appends the Prompt and Audio input values.", AR_OP_AUDIO_ADD_PROMPT_AUDIO_PRM_DSC_0: "A Prompt.", AR_OP_AUDIO_ADD_PROMPT_AUDIO_PRM_DSC_1: "An Audio value to add.", AR_OP_AUDIO_ADD_PROMPT_AUDIO_EX_OUT_0: 'Audio for the Hello prompt for the language in which the current flow is running followed by the TTS playback of "There".', AR_OP_DEC_ADD_DEC_DEC_DSC: "Adds two Decimal values and returns the result.", AR_OP_DEC_ADD_DEC_DEC_RV: "The sum of the two Decimal input values.", AR_OP_DEC_ADD_DEC_DEC_PRM_DSC_0: "A Decimal value.", AR_OP_DEC_ADD_DEC_DEC_PRM_DSC_1: "A Decimal value to add.", AR_OP_DTM_ADD_DUR_DTM_DSC: "Adds a DateTime to a Duration and returns the resulting DateTime.", AR_OP_DTM_ADD_DUR_DTM_RV: "Returns the result of adding the supplied DateTime to a Duration value.", AR_OP_DTM_ADD_DUR_DTM_PRM_DSC_0: "A Duration value.", AR_OP_DTM_ADD_DUR_DTM_PRM_DSC_1: "A DateTime value to which the Duration is added.", AR_OP_DTM_ADD_DUR_DTM_EX_OUT_0: "A DateTime of June 1, 2003 at 1:01:01 AM", AR_OP_DTM_ADD_DTM_DUR_DSC: "Adds a Duration to a DateTime and returns the resulting DateTime.", AR_OP_DTM_ADD_DTM_DUR_RV: "Returns the result of adding the supplied Duration to a DateTime value.", AR_OP_DTM_ADD_DTM_DUR_PRM_DSC_0: "A DateTime value.", AR_OP_DTM_ADD_DTM_DUR_PRM_DSC_1: "A Duration value to add.", AR_OP_DTM_ADD_DTM_DUR_EX_OUT_0: "A DateTime of June 1, 2003 at 1:01:01 AM", AR_OP_DATE_ADD_DUR_DATE_DSC: "Adds a Date to a Duration and returns the resulting Date. The number of days to add is calculated by taking the integral part of the supplied Duration value divided by 86400 seconds ( the number of seconds in 1 day ).", AR_OP_DATE_ADD_DUR_DATE_RV: "Returns the result of adding the supplied Date to a Duration value.", AR_OP_DATE_ADD_DUR_DATE_PRM_DSC_0: "A Duration value.", AR_OP_DATE_ADD_DUR_DATE_PRM_DSC_1: "A Date value to which the Duration is added.", AR_OP_DATE_ADD_DUR_DATE_EX_OUT_0: "A Date whose value is June 2nd, 2003.", AR_OP_DATE_ADD_DATE_DUR_DSC: "Adds days to a Date. The number of days to add is calculated by taking the integral value of the total number of seconds in the supplied Duration value divided by 86400 ( the number of seconds in 1 day ).", AR_OP_DATE_ADD_DATE_DUR_RV: "Returns the result of adding the supplied Duration to a Date value.", AR_OP_DATE_ADD_DATE_DUR_PRM_DSC_0: "A Date value.", AR_OP_DATE_ADD_DATE_DUR_PRM_DSC_1: "A Duration value to add.", AR_OP_DATE_ADD_DATE_DUR_EX_OUT_0: "A Date whose value is June 3rd, 2003.", AR_OP_TIME_ADD_DUR_TIME_DSC: "Adds a Time to a Duration and returns the resulting Time. Addition of a Duration value with a Time value allows for wrap-around so adding three hours to a Time value of 23:00:00 will return a Time value of 02:00:00.", AR_OP_TIME_ADD_DUR_TIME_RV: "Returns the result of adding the supplied Time to a Duration value.", AR_OP_TIME_ADD_DUR_TIME_PRM_DSC_0: "A Duration value.", AR_OP_TIME_ADD_DUR_TIME_PRM_DSC_1: "A Time value to which the Duration is added.", AR_OP_TIME_ADD_DUR_TIME_EX_OUT_0: "A Time whose value is 02:02:06AM.", AR_OP_TIME_ADD_TIME_DUR_DSC: "Adds a Duration to a Time and returns the resulting Time. Addition of a Duration value to a Time value allows for wrap-around so adding three hours to a Time value of 23:00:00 will return a Time value of 02:00:00.", AR_OP_TIME_ADD_TIME_DUR_RV: "Returns the result of adding the supplied Duration to a Time value.", AR_OP_TIME_ADD_TIME_DUR_PRM_DSC_0: "A Time value.", AR_OP_TIME_ADD_TIME_DUR_PRM_DSC_1: "A Duration value to add.", AR_OP_TIME_ADD_TIME_DUR_EX_OUT_0: "A Time whose value is 02:01:01AM.", AR_OP_DUR_ADD_DUR_DUR_DSC: "Adds two Duration values and returns the result.", AR_OP_DUR_ADD_DUR_DUR_RV: "The sum of the two Duration input values.", AR_OP_DUR_ADD_DUR_DUR_PRM_DSC_0: "A Duration value.", AR_OP_DUR_ADD_DUR_DUR_PRM_DSC_1: "A Duration value to add.", AR_OP_DUR_ADD_DUR_DUR_EX_OUT_0: "A Duration of 1 day, eleven hours, 45 minutes and 30 seconds.", AR_OP_STR_ADD_STR_STR_DSC: "Appends two String values and returns the result. Note: We recommend using the Append function instead of + to append strings together.", AR_OP_STR_ADD_STR_STR_RV: "The concatenation of the two String input values.", AR_OP_STR_ADD_STR_STR_PRM_DSC_0: "A String value.", AR_OP_STR_ADD_STR_STR_PRM_DSC_1: "A String value to add.", AR_OP_DSC_BITAND: "Performs a bitwise and of two values.", AR_OP_LNG_BITAND_LNG_LNG_DSC: "Performs a bitwise and on two Integer values and returns the result.", AR_OP_LNG_BITAND_LNG_LNG_RV: "The bitwise and of two supplied Integer values.", AR_OP_LNG_BITAND_LNG_LNG_PRM_DSC_0: "The first Integer value for the bitwise and.", AR_OP_LNG_BITAND_LNG_LNG_PRM_DSC_1: "The second Integer value for the bitwise and.", AR_OP_DSC_BITNOT: "Performs a bitwise not on a value.", AR_OP_LNG_BITNOT_LNG_DSC: "Performs a bitwise not on the supplied Integer value and returns the result.", AR_OP_LNG_BITNOT_LNG_RV: "The bitwise not of the supplied Integer value.", AR_OP_LNG_BITNOT_LNG_PRM_DSC_0: "The Integer value on which to perform the bitwise not.", AR_OP_DSC_BITOR: "Performs a bitwise inclusive or of two values.", AR_OP_LNG_BITOR_LNG_LNG_DSC: "Performs a bitwise inclusive or on two Integer values and returns the result.", AR_OP_LNG_BITOR_LNG_LNG_RV: "The bitwise inclusive or of two supplied Integer values.", AR_OP_LNG_BITOR_LNG_LNG_PRM_DSC_0: "The first Integer value for the bitwise or.", AR_OP_LNG_BITOR_LNG_LNG_PRM_DSC_1: "The second Integer value for the bitwise or.", AR_OP_DSC_SUB: "The subtraction operator returns the difference of two values.", AR_OP_DATE_SUB_DATE_DUR_DSC: "Subtracts days from a Date. The number of days to subtract is calculated by taking the integral value of the total number of seconds in the supplied Duration value divided by 86400 ( the number of seconds in 1 day ).", AR_OP_DATE_SUB_DATE_DUR_RV: "Returns a Date that is the result of subtracting the number of days in the supplied duration from the Date value.", AR_OP_DATE_SUB_DATE_DUR_PRM_DSC_0: "A Date value.", AR_OP_DATE_SUB_DATE_DUR_PRM_DSC_1: "A Duration value that supplies the number of days to subtract.", AR_OP_DATE_SUB_DATE_DUR_EX_OUT_0: "A Date whose value is December 31st, 2008.", AR_OP_DATE_SUB_DATE_DUR_EX_OUT_1: "A Date whose value is February 25th, 2020.", AR_OP_LNG_SUB_LNG_LNG_DSC: "Subtracts an Integer value from an Integer value and returns the result.", AR_OP_LNG_SUB_LNG_LNG_RV: "The difference of the two Integer input values.", AR_OP_LNG_SUB_LNG_LNG_PRM_DSC_0: "The Integer value from which to subtract.", AR_OP_LNG_SUB_LNG_LNG_PRM_DSC_1: "The Integer value to subtract.", AR_OP_CUR_SUB_CUR_CUR_DSC: "Subtracts a Currency value from a Currency value and returns the result. The Currency values must have the same code.", AR_OP_CUR_SUB_CUR_CUR_RV: "The difference of the two Currency input values.", AR_OP_CUR_SUB_CUR_CUR_PRM_DSC_0: "The Currency value from which to subtract.", AR_OP_CUR_SUB_CUR_CUR_PRM_DSC_1: "The Currency value to subtract.", AR_OP_CUR_SUB_CUR_CUR_EX_OUT_0: 'A Currency with an amount of 1.25 and code of "USD"', AR_OP_CUR_SUB_CUR_CUR_EX_OUT_1: "A Currency with an amount of 2.75 and NOT_SET code.", AR_OP_DEC_SUB_DEC_DEC_DSC: "Subtracts a Decimal value from a Decimal value and returns the result.", AR_OP_DEC_SUB_DEC_DEC_RV: "The difference of the two Decimal input values.", AR_OP_DEC_SUB_DEC_DEC_PRM_DSC_0: "The Decimal value from which to subtract.", AR_OP_DEC_SUB_DEC_DEC_PRM_DSC_1: "The Decimal value to subtract.", AR_OP_DEC_SUB_DEC_LNG_DSC: "Subtracts an Integer value from a Decimal value and returns the result.", AR_OP_DEC_SUB_DEC_LNG_RV: "The difference of the two input values.", AR_OP_DEC_SUB_DEC_LNG_PRM_DSC_0: "The Decimal value from which to subtract.", AR_OP_DEC_SUB_DEC_LNG_PRM_DSC_1: "The Integer value to subtract.", AR_OP_DEC_SUB_LNG_DEC_DSC: "Subtracts a Decimal value from an Integer value and returns the result.", AR_OP_DEC_SUB_LNG_DEC_RV: "The difference of the two input values.", AR_OP_DEC_SUB_LNG_DEC_PRM_DSC_0: "The Integer value from which to subtract.", AR_OP_DEC_SUB_LNG_DEC_PRM_DSC_1: "The Decimal value to subtract.", AR_OP_DTM_SUB_DUR_DUR_DSC: "Subtracts a Duration value from a Duration value and returns the result.", AR_OP_DTM_SUB_DUR_DUR_RV: "The difference of the two Duration input values.", AR_OP_DTM_SUB_DUR_DUR_PRM_DSC_0: "The Duration value from which to subtract.", AR_OP_DTM_SUB_DUR_DUR_PRM_DSC_1: "The Duration value to subtract.", AR_OP_DTM_SUB_DUR_DUR_EX_OUT_0: "A Duration of 5 hours and 15 minutes.", AR_OP_DTM_SUB_DTM_DUR_DSC: "Subtracts a Duration from a DateTime and returns the resulting DateTime.", AR_OP_DTM_SUB_DTM_DUR_RV: "Returns the result of subtracting the supplied Duration from a DateTime value.", AR_OP_DTM_SUB_DTM_DUR_PRM_DSC_0: "A DateTime value.", AR_OP_DTM_SUB_DTM_DUR_PRM_DSC_1: "A Duration value to subtract.", AR_OP_DTM_SUB_DTM_DUR_EX_OUT_0: "A DateTime of June 2, 2003 at 10:58:59 PM", AR_OP_TIME_SUB_TIME_DUR_DSC: "Subtracts a Duration from a Time value. Subtraction of a Duration value from a Time value allows for wrap-around so subtracting three hours to a Time value of 01:00:00 will return a Time value of 22:00:00.", AR_OP_TIME_SUB_TIME_DUR_RV: "Returns a Time that is the result of adding the supplied Duration value to the supplied Time value.", AR_OP_TIME_SUB_TIME_DUR_PRM_DSC_0: "A Time value.", AR_OP_TIME_SUB_TIME_DUR_PRM_DSC_1: "A Duration value that supplies the number of days to add to the Time value in startTime.", AR_OP_TIME_SUB_TIME_DUR_EX_OUT_0: "A Time whose value is 06:00:00AM.", AR_OP_TIME_SUB_TIME_DUR_EX_OUT_1: "A Time whose value is 06:00:00AM.", AR_OP_TIME_SUB_TIME_DUR_EX_OUT_2: "A Time whose value is 11:00:00PM.", AR_OP_DSC_MUL: "The multiplication operator returns the product of two values.", AR_OP_LNG_MUL_LNG_LNG_DSC: "Multiplies an Integer value by an Integer value and returns the result.", AR_OP_LNG_MUL_LNG_LNG_RV: "The result of the multiplication of the two Integer input values ( product ).", AR_OP_LNG_MUL_LNG_LNG_PRM_DSC_0: "The Integer value to multiply.", AR_OP_LNG_MUL_LNG_LNG_PRM_DSC_1: "The Integer value to multiply by.", AR_OP_DEC_MUL_DEC_DEC_DSC: "Multiplies a Decimal value by a Decimal value and returns the result.", AR_OP_DEC_MUL_DEC_DEC_RV: "The result of the multiplication of the two Decimal input values ( product ).", AR_OP_DEC_MUL_DEC_DEC_PRM_DSC_0: "The Decimal value to multiply.", AR_OP_DEC_MUL_DEC_DEC_PRM_DSC_1: "The Decimal value to multiply by.", AR_OP_DEC_MUL_LNG_DEC_DSC: "Multiplies an Integer value by an Decimal value and returns the result.", AR_OP_DEC_MUL_LNG_DEC_RV: "The result of the multiplication of the two Integer input values ( product ).", AR_OP_DEC_MUL_LNG_DEC_PRM_DSC_0: "The Integer value to multiply.", AR_OP_DEC_MUL_LNG_DEC_PRM_DSC_1: "The Decimal value to multiply by.", AR_OP_DEC_MUL_DEC_LNG_DSC: "Multiplies a Decimal value by an Integer value and returns the result.", AR_OP_DEC_MUL_DEC_LNG_RV: "The result of the multiplication of the two Decimal input values ( product ).", AR_OP_DEC_MUL_DEC_LNG_PRM_DSC_0: "The Decimal value to multiply.", AR_OP_DEC_MUL_DEC_LNG_PRM_DSC_1: "The Integer value to multiply by.", AR_OP_CUR_MUL_DEC_CUR_DSC: "Multiplies a Decimal value by a Currency value and returns the result.", AR_OP_CUR_MUL_DEC_CUR_RV: "The result of the multiplication of the Decimal and Currency values ( product ).", AR_OP_CUR_MUL_DEC_CUR_PRM_DSC_0: "The Decimal value to multiply.", AR_OP_CUR_MUL_DEC_CUR_PRM_DSC_1: "The Currency value to multiply by.", AR_OP_CUR_MUL_DEC_CUR_EX_OUT_0: 'A Currency with an amount of 37.8 and code of "USD"', AR_OP_CUR_MUL_CUR_DEC_DSC: "Multiplies a Currency value by a Decimal value and returns the result.", AR_OP_CUR_MUL_CUR_DEC_RV: "The result of the multiplication of the Currency and Decimal values ( product ).", AR_OP_CUR_MUL_CUR_DEC_PRM_DSC_0: "The Currency value to multiply.", AR_OP_CUR_MUL_CUR_DEC_PRM_DSC_1: "The Decimal value to multiply by.", AR_OP_CUR_MUL_CUR_DEC_EX_OUT_0: 'A Currency with an amount of -37.8 and code of "USD"', AR_OP_CUR_MUL_LNG_CUR_DSC: "Multiplies an Integer value by a Currency value and returns the result.", AR_OP_CUR_MUL_LNG_CUR_RV: "The result of the multiplication of the Integer and Currency values ( product ).", AR_OP_CUR_MUL_LNG_CUR_PRM_DSC_0: "The Integer value to multiply.", AR_OP_CUR_MUL_LNG_CUR_PRM_DSC_1: "The Currency value to multiply by.", AR_OP_CUR_MUL_LNG_CUR_EX_OUT_0: 'A Currency with an amount of 36.75 and code of "USD"', AR_OP_CUR_MUL_CUR_LNG_DSC: "Multiplies a Currency value by an Integer value and returns the result.", AR_OP_CUR_MUL_CUR_LNG_RV: "The result of the multiplication of the Currency and Integer values ( product ).", AR_OP_CUR_MUL_CUR_LNG_PRM_DSC_0: "The Currency value to multiply.", AR_OP_CUR_MUL_CUR_LNG_PRM_DSC_1: "The Integer value to multiply by.", AR_OP_CUR_MUL_CUR_LNG_EX_OUT_0: 'A Currency with an amount of 36.75 and code of "USD"', AR_OP_DSC_DIV: "The division operator divides two values.", AR_OP_DEC_DIV_LNG_DEC_DSC: "Divides an Integer value by a Decimal value and returns the result.", AR_OP_DEC_DIV_LNG_DEC_RV: "The result of the division ( quotient ) from the supplied Integer and Decimal values.", AR_OP_DEC_DIV_LNG_DEC_PRM_DSC_0: "The Integer value to divide.", AR_OP_DEC_DIV_LNG_DEC_PRM_DSC_1: "The Decimal value to divide by.", AR_OP_DEC_DIV_DEC_LNG_DSC: "Divides a Decimal value by an Integer value and returns the result.", AR_OP_DEC_DIV_DEC_LNG_RV: "The result of the division ( quotient ) from the supplied Decimal and Integer values.", AR_OP_DEC_DIV_DEC_LNG_PRM_DSC_0: "The Decimal value to divide.", AR_OP_DEC_DIV_DEC_LNG_PRM_DSC_1: "The Integer value to divide by.", AR_OP_DEC_DIV_LNG_LNG_DSC: "Divides an Integer value by an Integer value and returns the result.", AR_OP_DEC_DIV_LNG_LNG_RV: "The result of the division ( quotient ) from the supplied Integer values.", AR_OP_DEC_DIV_LNG_LNG_PRM_DSC_0: "The Integer value to divide.", AR_OP_DEC_DIV_LNG_LNG_PRM_DSC_1: "The Integer value to divide by.", AR_OP_DEC_DIV_DEC_DEC_DSC: "Divides a Decimal value by a Decimal value and returns the result.", AR_OP_DEC_DIV_DEC_DEC_RV: "The result of the division ( quotient ) from the supplied Decimal values.", AR_OP_DEC_DIV_DEC_DEC_PRM_DSC_0: "The Decimal value to divide.", AR_OP_DEC_DIV_DEC_DEC_PRM_DSC_1: "The Decimal value to divide by.", AR_OP_CUR_DIV_CUR_DEC_DSC: "Divides a Currency value by a Decimal value and returns the result.", AR_OP_CUR_DIV_CUR_DEC_RV: "The result of the division ( quotient ) from the supplied Currency and Decimal values.", AR_OP_CUR_DIV_CUR_DEC_PRM_DSC_0: "The Currency value to divide.", AR_OP_CUR_DIV_CUR_DEC_PRM_DSC_1: "The Decimal value to divide by.", AR_OP_CUR_DIV_CUR_DEC_EX_OUT_0: 'A Currency with an amount of 7.21 and code of "USD"', AR_OP_CUR_DIV_CUR_LNG_DSC: "Divides a Currency value by an Integer value and returns the result.", AR_OP_CUR_DIV_CUR_LNG_RV: "The result of the division ( quotient ) from the supplied Currency and Decimal values.", AR_OP_CUR_DIV_CUR_LNG_PRM_DSC_0: "The Currency value to divide.", AR_OP_CUR_DIV_CUR_LNG_PRM_DSC_1: "The Integer value to divide by.", AR_OP_CUR_DIV_CUR_LNG_EX_OUT_0: 'A Currency with an amount of 7.50 and code of "USD"', AR_OP_DSC_POW: "The power operator calculates the result of raising a value to the power of another value.", AR_OP_LNG_POW_LNG_LNG_DSC: "Raises an Integer value to the power of another Integer value.", AR_OP_LNG_POW_LNG_LNG_RV: "The result of raising an Integer value to the power of another Integer value.", AR_OP_LNG_POW_LNG_LNG_PRM_DSC_0: "The Integer value to raise.", AR_OP_LNG_POW_LNG_LNG_PRM_DSC_1: "The Integer value to raise by.", AR_OP_DEC_POW_LNG_DEC_DSC: "Raises an Integer value to the power of a Decimal value.", AR_OP_DEC_POW_LNG_DEC_RV: "The result of raising an Integer value to the power of Decimal value.", AR_OP_DEC_POW_LNG_DEC_PRM_DSC_0: "The Integer value to raise.", AR_OP_DEC_POW_LNG_DEC_PRM_DSC_1: "The Decimal value to raise by.", AR_OP_DEC_POW_DEC_LNG_DSC: "Raises a Decimal value to the power of an Integer value.", AR_OP_DEC_POW_DEC_LNG_RV: "The result of raising an Integer value to the power of Decimal value.", AR_OP_DEC_POW_DEC_LNG_PRM_DSC_0: "The Decimal value to raise.", AR_OP_DEC_POW_DEC_LNG_PRM_DSC_1: "The Integer value to raise by.", AR_OP_DEC_POW_DEC_DEC_DSC: "Raises a Decimal value to the power of another Decimal value.", AR_OP_DEC_POW_DEC_DEC_RV: "The result of raising a Decimal value to the power of another Decimal value.", AR_OP_DEC_POW_DEC_DEC_PRM_DSC_0: "The Decimal value to raise.", AR_OP_DEC_POW_DEC_DEC_PRM_DSC_1: "The Decimal value to raise by.", AR_OP_DSC_TER: "The ternary operator is a shorthand way to provide logical if functionality in an expression. It is the only operator that takes three parameters.", AR_OP_ANY_TER_BLN_ANY_ANY_DSC: "Evaluates the Boolean passed in the condition parameter and if the result is true, the value of the trueParameter is returned. Otherwise the value of falseParameter is returned. Only the trueValue or falseValue parameter will be evaluated based on the result the condition parameter. The type of data passed in to trueValue and falseValue parameters must be the same.", AR_OP_ANY_TER_BLN_ANY_ANY_RV: "If value in the condition parameter evaluates to true, the value in the trueValue parameter is returned. If the value of the condition evaluates to false, the value of the falseValue parameter is returned.", AR_OP_ANY_TER_BLN_ANY_ANY_PRM_DSC_0: "The condition to check. A NOT_SET Boolean is considered false.", AR_OP_ANY_TER_BLN_ANY_ANY_PRM_DSC_1: "The value to return if the condition is true.", AR_OP_ANY_TER_BLN_ANY_ANY_PRM_DSC_2: "The value to return if the condition is false or a NOT_SET Boolean.", AR_OP_ANY_TER_BLN_ANY_ANY_EX_OUT_4: 'A Currency with an amount of 10.00 and code of "USD".', AR_OP_ANY_TER_BLN_ANY_ANY_EX_OUT_5: "The DateTime of May 5th, 2009 at 10:30:00 AM in Coordinated Universal Time (UTC)", AR_OP_ANY_TER_BLN_ANY_ANY_EX_OUT_6: "A Duration of 1 hour.", AR_OP_ANY_TER_BLN_ANY_ANY_EX_OUT_7: 'The User with the name "Doe, John".', AR_OP_ANY_TER_BLN_ANY_ANY_EX_OUT_8: "The Skill of Spanish.", AR_OP_ANY_TER_BLN_ANY_ANY_EX_OUT_9: "The Date whose value is June 1st, 2010.", AR_OP_ANY_TER_BLN_ANY_ANY_EX_OUT_10: "The Time whose value is 12:00:00PM.", AR_OP_ANY_COLL_TER_BLN_ANY_COLL_ANY_COLL_DSC: "Evaluates the Boolean passed in the condition parameter and if the result is true, the value of the trueParameter is returned. Otherwise the value of falseParameter is returned. Only the trueValue or falseValue parameter will be evaluated based on the result the condition parameter. The type of data passed in to trueValue and falseValue parameters must be the same.", AR_OP_ANY_COLL_TER_BLN_ANY_COLL_ANY_COLL_RV: "If value in the condition parameter evaluates to true, the value in the trueValue parameter is returned. If the value of the condition evaluates to false, the value of the falseValue parameter is returned.", AR_OP_ANY_COLL_TER_BLN_ANY_COLL_ANY_COLL_PRM_DSC_0: "The condition to check. A NOT_SET Boolean is considered false.", AR_OP_ANY_COLL_TER_BLN_ANY_COLL_ANY_COLL_PRM_DSC_1: "The collection value to return if the condition is true.", AR_OP_ANY_COLL_TER_BLN_ANY_COLL_ANY_COLL_PRM_DSC_2: "The collection value to return if the condition is false or a NOT_SET Boolean.", AR_OP_ANY_COLL_TER_BLN_ANY_COLL_ANY_COLL_EX_OUT_0: 'A Currency collection with one item. The Currency item has an amount of 10.00 and code of "USD".', AR_OP_ANY_COLL_TER_BLN_ANY_COLL_ANY_COLL_EX_OUT_1: "The collection with the Boolean value true.", AR_OP_ANY_COLL_TER_BLN_ANY_COLL_ANY_COLL_EX_OUT_2: 'The String collection with the "hello" string in it.', AR_OP_ANY_COLL_TER_BLN_ANY_COLL_ANY_COLL_EX_OUT_3: "The Integer collection with the value 100 in it.", AR_OP_ANY_COLL_TER_BLN_ANY_COLL_ANY_COLL_EX_OUT_4: "The Integer collection with the value 100.5 in it.", AR_OP_ANY_COLL_TER_BLN_ANY_COLL_ANY_COLL_EX_OUT_5: "A DateTime collection with the DateTime value of May 5th, 2009 at 10:30:00 AM in Coordinated Universal Time (UTC).", AR_OP_ANY_COLL_TER_BLN_ANY_COLL_ANY_COLL_EX_OUT_6: "The Duration collection with the Duration of 1 hour.", AR_OP_ANY_COLL_TER_BLN_ANY_COLL_ANY_COLL_EX_OUT_7: 'A User collection with the User whose username is "john.doe@company.com".', AR_OP_ANY_COLL_TER_BLN_ANY_COLL_ANY_COLL_EX_OUT_8: "A Skill collection with the Skill of Spanish.", AR_OP_ANY_COLL_TER_BLN_ANY_COLL_ANY_COLL_EX_OUT_9: "The Date collection with one Date item whose value is June 1st, 2010.", AR_OP_ANY_COLL_TER_BLN_ANY_COLL_ANY_COLL_EX_OUT_10: "The Time collection with one Time item whose value is 12:00:00PM.", AR_OP_AUDIO_TER_BLN_AUDIO_AUDIO_DSC: "Evaluates the Boolean passed in the condition parameter and if the result is true, the value of the trueParameter is returned. Otherwise the value of falseParameter is returned. Only the trueValue or falseValue parameter will be evaluated based on the result the condition parameter. The type of data passed in to trueValue and falseValue parameters must be the same.", AR_OP_AUDIO_TER_BLN_AUDIO_AUDIO_RV: "If value in the condition parameter evaluates to true, the Audio value in the trueValueAudio parameter is returned. If the value of the condition evaluates to false, the value of the falseValueAudio parameter is returned.", AR_OP_AUDIO_TER_BLN_AUDIO_AUDIO_PRM_DSC_0: "The condition to check. A NOT_SET Boolean is considered false.", AR_OP_AUDIO_TER_BLN_AUDIO_AUDIO_PRM_DSC_1: "The Audio value to return if the condition is true.", AR_OP_AUDIO_TER_BLN_AUDIO_AUDIO_PRM_DSC_2: "The Audio value to return if the condition is false or a NOT_SET Boolean.", AR_OP_AUDIO_TER_BLN_AUDIO_AUDIO_EX_OUT_0: 'Audio for the string "Hello" spoken via. text to speech.', AR_OP_DSC_MOD: "The modulus operator calculates the remainder of the division of two values.", AR_OP_LNG_MOD_LNG_LNG_DSC: "Calculates the remainder of dividing an Integer value by an Integer value.", AR_OP_LNG_MOD_LNG_LNG_RV: "Returns the remainder of dividing an Integer by an Integer value.", AR_OP_LNG_MOD_LNG_LNG_PRM_DSC_0: "The Integer value to divide.", AR_OP_LNG_MOD_LNG_LNG_PRM_DSC_1: "The Integer value to divide by.", AR_OP_DEC_MOD_DEC_DEC_DSC: "Calculates the remainder of dividing a Decimal value by a Decimal value.", AR_OP_DEC_MOD_DEC_DEC_RV: "Returns the remainder of dividing a Decimal value by a Decimal value.", AR_OP_DEC_MOD_DEC_DEC_PRM_DSC_0: "The Decimal value to divide.", AR_OP_DEC_MOD_DEC_DEC_PRM_DSC_1: "The Decimal value to divide by.", AR_OP_DEC_MOD_LNG_DEC_DSC: "Calculates the remainder of dividing an Integer value by a Decimal value.", AR_OP_DEC_MOD_LNG_DEC_RV: "Returns the remainder of dividing an Integer by an Integer value.", AR_OP_DEC_MOD_LNG_DEC_PRM_DSC_0: "The Integer value to divide.", AR_OP_DEC_MOD_LNG_DEC_PRM_DSC_1: "The Decimal value to divide by.", AR_OP_DEC_MOD_DEC_LNG_DSC: "Calculates the remainder of dividing a Decimal value by an Integer value.", AR_OP_DEC_MOD_DEC_LNG_RV: "Returns the remainder of dividing a Decimal value by an Integer value.", AR_OP_DEC_MOD_DEC_LNG_PRM_DSC_0: "The Decimal value to divide.", AR_OP_DEC_MOD_DEC_LNG_PRM_DSC_1: "The Integer value to divide by.", AR_OP_CUR_MOD_CUR_DEC_DSC: "Calculates the remainder of dividing a Currency value by a Decimal value.", AR_OP_CUR_MOD_CUR_DEC_RV: "Returns the remainder of dividing a Currency value by a Decimal value.", AR_OP_CUR_MOD_CUR_DEC_PRM_DSC_0: "The Currency value to divide.", AR_OP_CUR_MOD_CUR_DEC_PRM_DSC_1: "The Decimal value to divide by.", AR_OP_CUR_MOD_CUR_DEC_EX_OUT_0: 'A Currency with an amount of 9.4 and code of "USD"', AR_OP_CUR_MOD_CUR_LNG_DSC: "Calculates the remainder of dividing a Currency value by an Integer value.", AR_OP_CUR_MOD_CUR_LNG_RV: "Returns the remainder of dividing a Currency value by an Integer value.", AR_OP_CUR_MOD_CUR_LNG_PRM_DSC_0: "The Currency value to divide.", AR_OP_CUR_MOD_CUR_LNG_PRM_DSC_1: "The Integer value to divide by.", AR_OP_CUR_MOD_CUR_LNG_EX_OUT_0: 'A Currency with an amount of 1.95 and code of "USD"', AR_OP_DSC_NOT: "The not operator returns the logical negation of a Boolean value.", AR_OP_BLN_NOT_BLN_DSC: "Returns the inverse of a Boolean value.", AR_OP_BLN_NOT_BLN_RV: "Returns the logical negation of the supplied Boolean value.", AR_OP_BLN_NOT_BLN_PRM_DSC_0: "The Boolean value to negate.", AR_OP_DSC_NEG: "The negation operator calculates the negative value of the supplied value.", AR_OP_CUR_NEG_CUR_DSC: "The negation of a Currency value.", AR_OP_CUR_NEG_CUR_RV: "Returns the negation of a Currency value.", AR_OP_CUR_NEG_CUR_PRM_DSC_0: "The Currency value to negate.", AR_OP_CUR_NEG_CUR_EX_OUT_0: 'A Currency with an amount of -5.25 and code of "USD"', AR_OP_CUR_NEG_CUR_EX_OUT_1: 'A Currency with an amount of 0.00 and code of "USD"', AR_OP_LNG_NEG_LNG_DSC: "The negation of an Integer value.", AR_OP_LNG_NEG_LNG_RV: "Returns the negation of an Integer value.", AR_OP_LNG_NEG_LNG_PRM_DSC_0: "The Integer value to negate.", AR_OP_DEC_NEG_DEC_DSC: "The negation of a Decimal value.", AR_OP_DEC_NEG_DEC_RV: "Returns the negation of a Decimal value.", AR_OP_DEC_NEG_DEC_PRM_DSC_0: "The Decimal value to negate.", AR_OP_DUR_NEG_DUR_DSC: "The negation of a Duration value.", AR_OP_DUR_NEG_DUR_RV: "Returns the negation of a Duration value.", AR_OP_DUR_NEG_DUR_PRM_DSC_0: "The Duration value to negate.", AR_OP_DUR_NEG_DUR_EX_OUT_0: "A Duration value of negative 10 days.", AR_OP_DSC_AND: "Performs a logical and operation on two Boolean values.", AR_OP_BLN_LOGICALAND_BLN_BLN_DSC: "Performs a logical and of the two Boolean values supplied. If both values evaluate to true, the result is true. Otherwise, the result is false. If value1 evaluates to false, false is returned and the value specified in the value2 parameter is not evaluated.", AR_OP_BLN_LOGICALAND_BLN_BLN_RV: "Returns the result of the boolean and operation.", AR_OP_BLN_LOGICALAND_BLN_BLN_PRM_DSC_0: "The first Boolean value for the logical and.", AR_OP_BLN_LOGICALAND_BLN_BLN_PRM_DSC_1: "The second Boolean value for the logical and.", AR_OP_DSC: "Performs a logical or operation on two Boolean values.", AR_OP_BLN_LOGICALOR_BLN_BLN_DSC: "Performs a logical or of the two supplied Boolean values. If either value evaluates to true, the result is true. Otherwise, the result is false. If the value1 evaluates to true, true is returned and the value in the value2 parameter is not evaluated.", AR_OP_BLN_LOGICALOR_BLN_BLN_RV: "Returns the result of the boolean or operation.", AR_OP_BLN_LOGICALOR_BLN_BLN_PRM_DSC_0: "The first Boolean value for the logical or.", AR_OP_BLN_LOGICALOR_BLN_BLN_PRM_DSC_1: "The second Boolean value for the logical or.", AR_OP_DSC_GT: "The greater than operator compares two values and returns true if the first is greater than the second.", AR_OP_BLN_GT_DATE_DATE_DSC: "Compares two Date values and returns true if the first Date value is greater than the second Date value.", AR_OP_BLN_GT_DATE_DATE_RV: "Returns true if the first Date value is greater than the second Date value, otherwise false.", AR_OP_BLN_GT_DATE_DATE_PRM_DSC_0: "The value to compare.", AR_OP_BLN_GT_DATE_DATE_PRM_DSC_1: "The value to compare to.", AR_OP_BLN_GT_LNG_DEC_DSC: "Compares an Integer and a Decimal and returns true if the Integer value is greater than the Decimal value.", AR_OP_BLN_GT_LNG_DEC_RV: "Returns true if the first Integer value is greater than the second Decimal value, otherwise false.", AR_OP_BLN_GT_LNG_DEC_PRM_DSC_0: "The value to compare.", AR_OP_BLN_GT_LNG_DEC_PRM_DSC_1: "The value to compare to.", AR_OP_BLN_GT_DEC_LNG_DSC: "Compares a Decimal and an Integer and returns true if the Decimal value is greater than the Integer value.", AR_OP_BLN_GT_DEC_LNG_RV: "Returns true if the first Decimal value is greater than the second Integer value, otherwise false.", AR_OP_BLN_GT_DEC_LNG_PRM_DSC_0: "The value to compare.", AR_OP_BLN_GT_DEC_LNG_PRM_DSC_1: "The value to compare to.", AR_OP_BLN_GT_CUR_CUR_DSC: "Compares two Currency values and returns true if the first Currency value is greater than the second Currency value. The currencies must have the same code.", AR_OP_BLN_GT_CUR_CUR_RV: "Returns true if the first Currency value is greater than the second Currency value, otherwise false.", AR_OP_BLN_GT_CUR_CUR_PRM_DSC_0: "The value to compare.", AR_OP_BLN_GT_CUR_CUR_PRM_DSC_1: "The value to compare to.", AR_OP_BLN_GT_DTM_DTM_DSC: "Compares two DateTime values and returns true if the first DateTime value is greater than the second DateTime value.", AR_OP_BLN_GT_DTM_DTM_RV: "Returns true if the first DateTime value is greater than the second DateTime value, otherwise false.", AR_OP_BLN_GT_DTM_DTM_PRM_DSC_0: "The value to compare.", AR_OP_BLN_GT_DTM_DTM_PRM_DSC_1: "The value to compare to.", AR_OP_BLN_GT_DEC_DEC_DSC: "Compares two Decimal values and returns true if the first Decimal value is greater than the second Decimal value.", AR_OP_BLN_GT_DEC_DEC_RV: "Returns true if the first Decimal value is greater than the second Decimal value, otherwise false.", AR_OP_BLN_GT_DEC_DEC_PRM_DSC_0: "The value to compare.", AR_OP_BLN_GT_DEC_DEC_PRM_DSC_1: "The value to compare to.", AR_OP_BLN_GT_DUR_DUR_DSC: "Compares two Duration values and returns true if the first Duration value is greater than the second Duration value.", AR_OP_BLN_GT_DUR_DUR_RV: "Returns true if the first Duration value is greater than the second Duration value, otherwise false.", AR_OP_BLN_GT_DUR_DUR_PRM_DSC_0: "The value to compare.", AR_OP_BLN_GT_DUR_DUR_PRM_DSC_1: "The value to compare to.", AR_OP_BLN_GT_LNG_LNG_DSC: "Compares two Integer values and returns true if the first Integer value is greater than the second Integer value.", AR_OP_BLN_GT_LNG_LNG_RV: "Returns true if the first Integer value is greater than the second Integer value, otherwise false.", AR_OP_BLN_GT_LNG_LNG_PRM_DSC_0: "The value to compare.", AR_OP_BLN_GT_LNG_LNG_PRM_DSC_1: "The value to compare to.", AR_OP_BLN_GT_STR_STR_DSC: "Compares two String values and returns true if the first String value is greater than the second String value. This is a case sensitive comparison.", AR_OP_BLN_GT_STR_STR_RV: "Returns true if the first String value is greater than the second String value, otherwise false.", AR_OP_BLN_GT_STR_STR_PRM_DSC_0: "The value to compare.", AR_OP_BLN_GT_STR_STR_PRM_DSC_1: "The value to compare to.", AR_OP_BLN_GT_TIME_TIME_DSC: "Compares two Time values and returns true if the first Time value is greater than the second Time value.", AR_OP_BLN_GT_TIME_TIME_RV: "Returns true if the first Time value is greater than the second Time value, otherwise false.", AR_OP_BLN_GT_TIME_TIME_PRM_DSC_0: "The value to compare.", AR_OP_BLN_GT_TIME_TIME_PRM_DSC_1: "The value to compare to.", AR_OP_DSC_GTE: "The greater than or equal to operator compares two values and returns true if the first is greater than or equal to the second.", AR_OP_BLN_GTE_DATE_DATE_DSC: "Compares two Date values and returns true if the first Date value is greater than or equal to the second Date value.", AR_OP_BLN_GTE_DATE_DATE_RV: "Returns true if the first Date value is greater than or equal to the second Date value, otherwise false.", AR_OP_BLN_GTE_DATE_DATE_PRM_DSC_0: "The value to compare.", AR_OP_BLN_GTE_DATE_DATE_PRM_DSC_1: "The value to compare to.", AR_OP_BLN_GTE_LNG_DEC_DSC: "Compares an Integer and a Decimal and returns true if the Integer value is greater than or equal to the Decimal value.", AR_OP_BLN_GTE_LNG_DEC_RV: "Returns true if the first Integer value is greater than or equal to the second Decimal value, otherwise false.", AR_OP_BLN_GTE_LNG_DEC_PRM_DSC_0: "The value to compare.", AR_OP_BLN_GTE_LNG_DEC_PRM_DSC_1: "The value to compare to.", AR_OP_BLN_GTE_DEC_LNG_DSC: "Compares a Decimal and an Integer and returns true if the Decimal value is greater than or equal to the Integer value.", AR_OP_BLN_GTE_DEC_LNG_RV: "Returns true if the first Decimal value is greater than or equal to the second Integer value, otherwise false.", AR_OP_BLN_GTE_DEC_LNG_PRM_DSC_0: "The value to compare.", AR_OP_BLN_GTE_DEC_LNG_PRM_DSC_1: "The value to compare to.", AR_OP_BLN_GTE_CUR_CUR_DSC: "Compares two Currency values and returns true if the first Currency value is greater than the second Currency value. The currencies must have the same code.", AR_OP_BLN_GTE_CUR_CUR_RV: "Returns true if the first Currency value is greater than or equal to the second Currency value, otherwise false.", AR_OP_BLN_GTE_CUR_CUR_PRM_DSC_0: "The value to compare.", AR_OP_BLN_GTE_CUR_CUR_PRM_DSC_1: "The value to compare to.", AR_OP_BLN_GTE_DTM_DTM_DSC: "Compares two DateTime values and returns true if the first DateTime value is greater than or equal to the second DateTime value.", AR_OP_BLN_GTE_DTM_DTM_RV: "Returns true if the first DateTime value is greater than or equal to the second DateTime value, otherwise false.", AR_OP_BLN_GTE_DTM_DTM_PRM_DSC_0: "The value to compare.", AR_OP_BLN_GTE_DTM_DTM_PRM_DSC_1: "The value to compare to.", AR_OP_BLN_GTE_DEC_DEC_DSC: "Compares two Decimal values and returns true if the first Decimal value is greater than or equal to the second Decimal value.", AR_OP_BLN_GTE_DEC_DEC_RV: "Returns true if the first Decimal value is greater than or equal to the second Decimal value, otherwise false.", AR_OP_BLN_GTE_DEC_DEC_PRM_DSC_0: "The value to compare.", AR_OP_BLN_GTE_DEC_DEC_PRM_DSC_1: "The value to compare to.", AR_OP_BLN_GTE_DUR_DUR_DSC: "Compares two Duration values and returns true if the first Duration value is greater than or equal to the second Duration value.", AR_OP_BLN_GTE_DUR_DUR_RV: "Returns true if the first Duration value is greater than or equal to the second Duration value, otherwise false.", AR_OP_BLN_GTE_DUR_DUR_PRM_DSC_0: "The value to compare.", AR_OP_BLN_GTE_DUR_DUR_PRM_DSC_1: "The value to compare to.", AR_OP_BLN_GTE_LNG_LNG_DSC: "Compares two Integer values and returns true if the first Integer value is greater than or equal to the second Integer value.", AR_OP_BLN_GTE_LNG_LNG_RV: "Returns true if the first Integer value is greater than or equal to the second Integer value, otherwise false.", AR_OP_BLN_GTE_LNG_LNG_PRM_DSC_0: "The value to compare.", AR_OP_BLN_GTE_LNG_LNG_PRM_DSC_1: "The value to compare to.", AR_OP_BLN_GTE_STR_STR_DSC: "Compares two String values and returns true if the first String value is greater than or equal to the second String value.", AR_OP_BLN_GTE_STR_STR_RV: "Returns true if the first String value is greater than or equal to the second String value, otherwise false.", AR_OP_BLN_GTE_STR_STR_PRM_DSC_0: "The value to compare.", AR_OP_BLN_GTE_STR_STR_PRM_DSC_1: "The value to compare to.", AR_OP_BLN_GTE_TIME_TIME_DSC: "Compares two Time values and returns true if the first Time value is greater than or equal to the second Time value.", AR_OP_BLN_GTE_TIME_TIME_RV: "Returns true if the first Time value is greater than or equal to the second Time value, otherwise false.", AR_OP_BLN_GTE_TIME_TIME_PRM_DSC_0: "The value to compare.", AR_OP_BLN_GTE_TIME_TIME_PRM_DSC_1: "The value to compare to.", AR_OP_DSC_LT: "The less than operator compares two values and returns true if the first is less than the second.", AR_OP_BLN_LT_LNG_DEC_DSC: "Compares an Integer and a Decimal and returns true if the Integer value is less than the Decimal value.", AR_OP_BLN_LT_LNG_DEC_RV: "Returns true if the first Integer value is less than the second Decimal value, otherwise false.", AR_OP_BLN_LT_LNG_DEC_PRM_DSC_0: "The value to compare.", AR_OP_BLN_LT_LNG_DEC_PRM_DSC_1: "The value to compare to.", AR_OP_BLN_LT_DEC_LNG_DSC: "Compares a Decimal and an Integer and returns true if the Decimal value is less than the Integer value.", AR_OP_BLN_LT_DEC_LNG_RV: "Returns true if the first Decimal value is less than the second Integer value, otherwise false.", AR_OP_BLN_LT_DEC_LNG_PRM_DSC_0: "The value to compare.", AR_OP_BLN_LT_DEC_LNG_PRM_DSC_1: "The value to compare to.", AR_OP_BLN_LT_CUR_CUR_DSC: "Compares two Currency values and returns true if the first Currency value is greater than the second Currency value. The currencies must have the same code.", AR_OP_BLN_LT_CUR_CUR_RV: "Returns true if the first Currency value is less than the second Currency value, otherwise false.", AR_OP_BLN_LT_CUR_CUR_PRM_DSC_0: "The value to compare.", AR_OP_BLN_LT_CUR_CUR_PRM_DSC_1: "The value to compare to.", AR_OP_BLN_LT_DATE_DATE_DSC: "Compares two Date values and returns true if the first Date value is less than the second Date value.", AR_OP_BLN_LT_DATE_DATE_RV: "Returns true if the first Date value is less than the second Date value, otherwise false.", AR_OP_BLN_LT_DATE_DATE_PRM_DSC_0: "The value to compare.", AR_OP_BLN_LT_DATE_DATE_PRM_DSC_1: "The value to compare to.", AR_OP_BLN_LT_DTM_DTM_DSC: "Compares two DateTime values and returns true if the first DateTime value is less than the second DateTime value.", AR_OP_BLN_LT_DTM_DTM_RV: "Returns true if the first DateTime value is less than the second DateTime value, otherwise false.", AR_OP_BLN_LT_DTM_DTM_PRM_DSC_0: "The value to compare.", AR_OP_BLN_LT_DTM_DTM_PRM_DSC_1: "The value to compare to.", AR_OP_BLN_LT_DEC_DEC_DSC: "Compares two Decimal values and returns true if the first Decimal value is less than the second Decimal value.", AR_OP_BLN_LT_DEC_DEC_RV: "Returns true if the first Decimal value is less than the second Decimal value, otherwise false.", AR_OP_BLN_LT_DEC_DEC_PRM_DSC_0: "The value to compare.", AR_OP_BLN_LT_DEC_DEC_PRM_DSC_1: "The value to compare to.", AR_OP_BLN_LT_DUR_DUR_DSC: "Compares two Duration values and returns true if the first Duration value is less than the second Duration value.", AR_OP_BLN_LT_DUR_DUR_RV: "Returns true if the first Duration value is less than the second Duration value, otherwise false.", AR_OP_BLN_LT_DUR_DUR_PRM_DSC_0: "The value to compare.", AR_OP_BLN_LT_DUR_DUR_PRM_DSC_1: "The value to compare to.", AR_OP_BLN_LT_LNG_LNG_DSC: "Compares two Integer values and returns true if the first Integer value is less than the second Integer value.", AR_OP_BLN_LT_LNG_LNG_RV: "Returns true if the first Integer value is less than the second Integer value, otherwise false.", AR_OP_BLN_LT_LNG_LNG_PRM_DSC_0: "The value to compare.", AR_OP_BLN_LT_LNG_LNG_PRM_DSC_1: "The value to compare to.", AR_OP_BLN_LT_STR_STR_DSC: "Compares two String values and returns true if the first String value is less than the second String value.", AR_OP_BLN_LT_STR_STR_RV: "Returns true if the first String value is less than the second String value, otherwise false.", AR_OP_BLN_LT_STR_STR_PRM_DSC_0: "The value to compare.", AR_OP_BLN_LT_STR_STR_PRM_DSC_1: "The value to compare to.", AR_OP_BLN_LT_TIME_TIME_DSC: "Compares two Time values and returns true if the first Time value is less than the second Time value.", AR_OP_BLN_LT_TIME_TIME_RV: "Returns true if the first Time value is less than the second Time value, otherwise false.", AR_OP_BLN_LT_TIME_TIME_PRM_DSC_0: "The value to compare.", AR_OP_BLN_LT_TIME_TIME_PRM_DSC_1: "The value to compare to.", AR_OP_DSC_LTE: "The less than or equal to operator compares two values and returns true if the first is less than or equal to the second.", AR_OP_BLN_LTE_LNG_DEC_DSC: "Compares an Integer and a Decimal and returns true if the Integer value is less than or equal to the Decimal value.", AR_OP_BLN_LTE_LNG_DEC_RV: "Returns true if the first Integer value is less than or equal to the second Decimal value, otherwise false.", AR_OP_BLN_LTE_LNG_DEC_PRM_DSC_0: "The value to compare.", AR_OP_BLN_LTE_LNG_DEC_PRM_DSC_1: "The value to compare to.", AR_OP_BLN_LTE_DATE_DATE_DSC: "Compares two Date values and returns true if the first Date value is less than the second Date value.", AR_OP_BLN_LTE_DATE_DATE_RV: "Returns true if the first Date value is less than the second Date value, otherwise false.", AR_OP_BLN_LTE_DATE_DATE_PRM_DSC_0: "The value to compare.", AR_OP_BLN_LTE_DATE_DATE_PRM_DSC_1: "The value to compare to.", AR_OP_BLN_LTE_DEC_LNG_DSC: "Compares a Decimal and an Integer and returns true if the Decimal value is less than or equal to the Integer value.", AR_OP_BLN_LTE_DEC_LNG_RV: "Returns true if the first Decimal value is less than or equal to the second Integer value, otherwise false.", AR_OP_BLN_LTE_DEC_LNG_PRM_DSC_0: "The value to compare.", AR_OP_BLN_LTE_DEC_LNG_PRM_DSC_1: "The value to compare to.", AR_OP_BLN_LTE_CUR_CUR_DSC: "Compares two Currency values and returns true if the first Currency value is less than or equal to the second Currency value. The currencies must have the same code.", AR_OP_BLN_LTE_CUR_CUR_RV: "Returns true if the first Currency value is less than or equal to the second Currency value, otherwise false.", AR_OP_BLN_LTE_CUR_CUR_PRM_DSC_0: "The value to compare.", AR_OP_BLN_LTE_CUR_CUR_PRM_DSC_1: "The value to compare to.", AR_OP_BLN_LTE_DTM_DTM_DSC: "Compares two DateTime values and returns true if the first DateTime value is less than or equal to the second DateTime value.", AR_OP_BLN_LTE_DTM_DTM_RV: "Returns true if the first DateTime value is less than or equal to the second DateTime value, otherwise false.", AR_OP_BLN_LTE_DTM_DTM_PRM_DSC_0: "The value to compare.", AR_OP_BLN_LTE_DTM_DTM_PRM_DSC_1: "The value to compare to.", AR_OP_BLN_LTE_DEC_DEC_DSC: "Compares two Decimal values and returns true if the first Decimal value is less than or equal to the second Decimal value.", AR_OP_BLN_LTE_DEC_DEC_RV: "Returns true if the first Decimal value is less than or equal to the second Decimal value, otherwise false.", AR_OP_BLN_LTE_DEC_DEC_PRM_DSC_0: "The value to compare.", AR_OP_BLN_LTE_DEC_DEC_PRM_DSC_1: "The value to compare to.", AR_OP_BLN_LTE_DUR_DUR_DSC: "Compares two Duration values and returns true if the first Duration value is less than or equal to the second Duration value.", AR_OP_BLN_LTE_DUR_DUR_RV: "Returns true if the first Duration value is less than or equal to the second Duration value, otherwise false.", AR_OP_BLN_LTE_DUR_DUR_PRM_DSC_0: "The value to compare.", AR_OP_BLN_LTE_DUR_DUR_PRM_DSC_1: "The value to compare to.", AR_OP_BLN_LTE_LNG_LNG_DSC: "Compares two Integer values and returns true if the first Integer value is less than or equal to the second Integer value.", AR_OP_BLN_LTE_LNG_LNG_RV: "Returns true if the first Integer value is less than or equal to the second Integer value, otherwise false.", AR_OP_BLN_LTE_LNG_LNG_PRM_DSC_0: "The value to compare.", AR_OP_BLN_LTE_LNG_LNG_PRM_DSC_1: "The value to compare to.", AR_OP_BLN_LTE_STR_STR_DSC: "Compares two String values and returns true if the first String value is less than or equal to the second String value.", AR_OP_BLN_LTE_STR_STR_RV: "Returns true if the first String value is less than or equal to the second String value, otherwise false.", AR_OP_BLN_LTE_STR_STR_PRM_DSC_0: "The value to compare.", AR_OP_BLN_LTE_STR_STR_PRM_DSC_1: "The value to compare to.", AR_OP_BLN_LTE_TIME_TIME_DSC: "Compares two Time values and returns true if the first Time value is less than the second Time value.", AR_OP_BLN_LTE_TIME_TIME_RV: "Returns true if the first Time value is less than the second Time value, otherwise false.", AR_OP_BLN_LTE_TIME_TIME_PRM_DSC_0: "The value to compare.", AR_OP_BLN_LTE_TIME_TIME_PRM_DSC_1: "The value to compare to.", AR_OP_DSC_BKT: "Returns either an item at a given index in a collection or the value of a property on a non-collection object.", AR_OP_ANY_BKT_LNG_ANY_COLL_DSC: "Returns the item at the given index in the collection.", AR_OP_ANY_BKT_LNG_ANY_COLL_RV: "Returns the value at the given index", AR_OP_ANY_BKT_LNG_ANY_COLL_PRM_DSC_0: "The index of the item in the collection to access.", AR_OP_ANY_BKT_LNG_ANY_COLL_PRM_DSC_1: "The collection containing the item to access.", AR_OP_ANY_BKT_LNG_ANY_COLL_EX_OUT_0: 'The Currency item at index 1 with an amount of 2.25 and code of "EUR" ( Euros )', AR_OP_ANY_BKT_STR_ANY_DSC: "Returns the value for a property", AR_OP_ANY_BKT_STR_ANY_RV: "Returns the value of the named property.", AR_OP_ANY_BKT_STR_ANY_PRM_DSC_0: "The property name to access on the object which must be a string literal.", AR_OP_ANY_BKT_STR_ANY_PRM_DSC_1: "The object containing the property to access.", AR_OP_JSON_BKT_LNG_JSON_DSC: "Returns the JSON value of an item at a specified index.", AR_OP_JSON_BKT_LNG_JSON_RV: "Returns the item from the supplied JSON array or character from the supplied JSON string value as a JSON value.", AR_OP_JSON_BKT_LNG_JSON_PRM_DSC_0: "The zero-based index of the item in the JSON value array or character position in the JSON value string to return. Attempting to access an array item or string character using a negative index or an index that is greater than or equal to the number of items in the array or length of the string will invoke error handling.", AR_OP_JSON_BKT_LNG_JSON_PRM_DSC_1: "The JSON value that contains an array with the item to return or string value whose character you want to return. If the supplied JSON value does not contain an array or string, this will invoke error handling. Remember the IsJsonArray or IsJsonString functions can be used to check if a JSON value contains an array or string.", AR_OP_JSON_BKT_LNG_JSON_EX_OUT_0: "A JSON value containing the number 3.", AR_OP_JSON_BKT_LNG_JSON_EX_OUT_2: 'A JSON value containing the string "l".', AR_OP_DSC_EQU: "The equals operator returns a Boolean value indicating whether two values are equal.", AR_OP_BLN_EQU_ANY_ANY_DSC: "Compares two values and returns true if the first value is equal to the second value. The values being compared need to be the same type.", AR_OP_BLN_EQU_ANY_ANY_RV: "Returns true if the first value is equal to the second value, otherwise false.", AR_OP_BLN_EQU_ANY_ANY_PRM_DSC_0: "The value to compare.", AR_OP_BLN_EQU_ANY_ANY_PRM_DSC_1: "The value to compare to.", AR_OP_BLN_EQU_DEC_LNG_DSC: "Compares a Decimal and Integer value and returns true if they are equal.", AR_OP_BLN_EQU_DEC_LNG_RV: "Returns true if the first value is equal to the second value, otherwise false.", AR_OP_BLN_EQU_DEC_LNG_PRM_DSC_0: "The value to compare.", AR_OP_BLN_EQU_DEC_LNG_PRM_DSC_1: "The value to compare to.", AR_OP_BLN_EQU_LNG_DEC_DSC: "Compares an Integer and Decimal value and returns true if they are equal.", AR_OP_BLN_EQU_LNG_DEC_RV: "Returns true if the first value is equal to the second value, otherwise false.", AR_OP_BLN_EQU_LNG_DEC_PRM_DSC_0: "The value to compare.", AR_OP_BLN_EQU_LNG_DEC_PRM_DSC_1: "The value to compare to.", AR_OP_BLN_EQU_LNG_COLL_DEC_COLL_DSC: "Compares an Integer collection and a Decimal collection and returns true if the first collection of values is equal to the second collection of values.", AR_OP_BLN_EQU_LNG_COLL_DEC_COLL_RV: "Returns true if the first value is equal to the second value, otherwise false.", AR_OP_BLN_EQU_LNG_COLL_DEC_COLL_PRM_DSC_0: "The value to compare.", AR_OP_BLN_EQU_LNG_COLL_DEC_COLL_PRM_DSC_1: "The value to compare to.", AR_OP_BLN_EQU_DEC_COLL_LNG_COLL_DSC: "Compares a Decimal collection and an Integer collection and returns true if the first collection of values is equal to the second collection of values.", AR_OP_BLN_EQU_DEC_COLL_LNG_COLL_RV: "Returns true if the first value is equal to the second value, otherwise false.", AR_OP_BLN_EQU_DEC_COLL_LNG_COLL_PRM_DSC_0: "The value to compare.", AR_OP_BLN_EQU_DEC_COLL_LNG_COLL_PRM_DSC_1: "The value to compare to.", AR_OP_BLN_EQU_PHNBR_PHNBR_DSC: "Compares two PhoneNumber values and returns true if they are equal. A PhoneNumber is equal to another PhoneNumber if both PhoneNumber value isTel properties are true and the e164 properties are equal, the isSip properties are true and the uri properties are equal or the isTel and isSip properties on both PhoneNumber values are false and the raw properties are equal.", AR_OP_BLN_EQU_PHNBR_PHNBR_RV: "Returns true if the first value is equal to the second value, otherwise false.", AR_OP_BLN_EQU_PHNBR_PHNBR_PRM_DSC_0: "The value to compare.", AR_OP_BLN_EQU_PHNBR_PHNBR_PRM_DSC_1: "The value to compare to.", AR_OP_BLN_EQU_ANY_COLL_ANY_COLL_DSC: "Compares two collection of values and returns true if the first collection of values is equal to the second collection of values. The collections being compared must be the same type.", AR_OP_BLN_EQU_ANY_COLL_ANY_COLL_RV: "Returns true if the first value is equal to the second value, otherwise false.", AR_OP_BLN_EQU_ANY_COLL_ANY_COLL_PRM_DSC_0: "The value to compare.", AR_OP_BLN_EQU_ANY_COLL_ANY_COLL_PRM_DSC_1: "The value to compare to.", AR_OP_DSC_NEQ: "The not equals operator returns a Boolean value indicating whether two values are not equal.", AR_OP_BLN_NEQ_ANY_ANY_DSC: "Compares two values and returns true if the first value is not equal to the second value.", AR_OP_BLN_NEQ_ANY_ANY_RV: "Returns true if the first value is not equal to the second value, otherwise false. The values being compared must be the same type.", AR_OP_BLN_NEQ_ANY_ANY_PRM_DSC_0: "The value to compare.", AR_OP_BLN_NEQ_ANY_ANY_PRM_DSC_1: "The value to compare to.", AR_OP_BLN_NEQ_DEC_LNG_DSC: "Compares a Decimal and Integer value and returns true if they are not equal.", AR_OP_BLN_NEQ_DEC_LNG_RV: "Returns true if the first value is not equal to the second value, otherwise false.", AR_OP_BLN_NEQ_DEC_LNG_PRM_DSC_0: "The value to compare.", AR_OP_BLN_NEQ_DEC_LNG_PRM_DSC_1: "The value to compare to.", AR_OP_BLN_NEQ_LNG_DEC_DSC: "Compares an Integer and Decimal value and returns true if they are not equal.", AR_OP_BLN_NEQ_LNG_DEC_RV: "Returns true if the first value is not equal to the second value, otherwise false.", AR_OP_BLN_NEQ_LNG_DEC_PRM_DSC_0: "The value to compare.", AR_OP_BLN_NEQ_LNG_DEC_PRM_DSC_1: "The value to compare to.", AR_OP_BLN_NEQ_PHNBR_PHNBR_DSC: "Compares two PhoneNumber values and returns true if they are not equal. A PhoneNumber is not equal to another PhoneNumber if both PhoneNumber value isTel properties are true and the e164 properties are not equal, the isSip properties are true and the uri properties are not equal or the isTel and isSip properties on both PhoneNumber values are false and the raw properties are not equal.", AR_OP_BLN_NEQ_PHNBR_PHNBR_RV: "Returns true if the first value is not equal to the second value, otherwise false.", AR_OP_BLN_NEQ_PHNBR_PHNBR_PRM_DSC_0: "The value to compare.", AR_OP_BLN_NEQ_PHNBR_PHNBR_PRM_DSC_1: "The value to compare to.", AR_OP_BLN_NEQ_LNG_COLL_DEC_COLL_DSC: "Compares an Integer collection and a Decimal collection and returns true if the first collection of values is not equal to the second collection of values.", AR_OP_BLN_NEQ_LNG_COLL_DEC_COLL_RV: "Returns true if the first value is not equal to the second value, otherwise false.", AR_OP_BLN_NEQ_LNG_COLL_DEC_COLL_PRM_DSC_0: "The value to compare.", AR_OP_BLN_NEQ_LNG_COLL_DEC_COLL_PRM_DSC_1: "The value to compare to.", AR_OP_BLN_NEQ_DEC_COLL_LNG_COLL_DSC: "Compares a Decimal collection and an Integer collection and returns true if the first collection of values is not equal to the second collection of values.", AR_OP_BLN_NEQ_DEC_COLL_LNG_COLL_RV: "Returns true if the first value is not equal to the second value, otherwise false.", AR_OP_BLN_NEQ_DEC_COLL_LNG_COLL_PRM_DSC_0: "The value to compare.", AR_OP_BLN_NEQ_DEC_COLL_LNG_COLL_PRM_DSC_1: "The value to compare to.", AR_OP_BLN_NEQ_ANY_COLL_ANY_COLL_DSC: "Compares two collection of values and returns true if the first collection of values is not equal to the second collection of values. The collections being compared must be the same type.", AR_OP_BLN_NEQ_ANY_COLL_ANY_COLL_RV: "Returns true if the first value is not equal to the second value, otherwise false.", AR_OP_BLN_NEQ_ANY_COLL_ANY_COLL_PRM_DSC_0: "The value to compare.", AR_OP_BLN_NEQ_ANY_COLL_ANY_COLL_PRM_DSC_1: "The value to compare to.", AR_OP_DSC_PROPACCESS: "Accesses a Property of the given value.", AR_OP_ANY_PROPACCESS_STR_ANY_DSC: "Accesses a property on a value.", AR_OP_ANY_PROPACCESS_STR_ANY_RV: "Returns the value of the property accessed.", AR_OP_ANY_PROPACCESS_STR_ANY_PRM_DSC_0: "The property ID of the property to access in the value.", AR_OP_ANY_PROPACCESS_STR_ANY_PRM_DSC_1: "The value to access.", AR_OP_ANY_PROPACCESS_STR_COMPLEX_DSC: "Accesses a property on a complex value.", AR_OP_ANY_PROPACCESS_STR_COMPLEX_RV: "Returns the value of the property accessed.", AR_OP_ANY_PROPACCESS_STR_COMPLEX_PRM_DSC_0: "The name of the property to access in the value.", AR_OP_ANY_PROPACCESS_STR_COMPLEX_PRM_DSC_1: "The complex value to access.", AR_OP_BOOLFORMATENUM_PROPACCESS_STR_BOOLFORMATENUMCONTAINER_DSC: "Accesses a property on the Format.Bool variable.", AR_OP_BOOLFORMATENUM_PROPACCESS_STR_BOOLFORMATENUMCONTAINER_RV: "Returns the specified Boolean Format from the Format.Bool variable.", AR_OP_BOOLFORMATENUM_PROPACCESS_STR_BOOLFORMATENUMCONTAINER_PRM_DSC_0: "The Boolean Format property to access.", AR_OP_BOOLFORMATENUM_PROPACCESS_STR_BOOLFORMATENUMCONTAINER_PRM_DSC_1: "Must be the Format.Bool variable.", AR_OP_BOOLFORMATENUM_PROPACCESS_STR_BOOLFORMATENUMCONTAINER_EX_OUT_0: "The playYesNo property on the Format.Bool variable.", AR_OP_CURRENCYFORMATENUM_PROPACCESS_STR_CURRENCYFORMATENUMCONTAINER_DSC: "Accesses a property on the Format.Currency variable.", AR_OP_CURRENCYFORMATENUM_PROPACCESS_STR_CURRENCYFORMATENUMCONTAINER_RV: "Returns the specified Currency Format Enum from the Format.Currency variable.", AR_OP_CURRENCYFORMATENUM_PROPACCESS_STR_CURRENCYFORMATENUMCONTAINER_PRM_DSC_0: "The Currency Format Enum property to access.", AR_OP_CURRENCYFORMATENUM_PROPACCESS_STR_CURRENCYFORMATENUMCONTAINER_PRM_DSC_1: "Must be the Format.Currency variable.", AR_OP_CURRENCYFORMATENUM_PROPACCESS_STR_CURRENCYFORMATENUMCONTAINER_EX_OUT_0: "The playDigits property on the Format.Currency variable.", AR_OP_CURRENCYFORMATENUM_PROPACCESS_STR_CURRENCYFORMATENUMCONTAINER_EX_OUT_1: "The majorUnitsOnly property on the Format.Currency variable.", AR_OP_CURRENCYFORMATENUM_PROPACCESS_STR_CURRENCYFORMATENUMCONTAINER_EX_OUT_2: "The minorUnitsOnly property on the Format.Currency variable.", AR_OP_DATEFORMATENUM_PROPACCESS_STR_DATEFORMATENUMCONTAINER_DSC: "Accesses a property on the Format.Date variable.", AR_OP_DATEFORMATENUM_PROPACCESS_STR_DATEFORMATENUMCONTAINER_RV: "Returns the specified Date Format Enum from the Format.Date variable.", AR_OP_DATEFORMATENUM_PROPACCESS_STR_DATEFORMATENUMCONTAINER_PRM_DSC_0: "The Date Format Enum property to access.", AR_OP_DATEFORMATENUM_PROPACCESS_STR_DATEFORMATENUMCONTAINER_PRM_DSC_1: "Must be the Format.Date variable.", AR_OP_DATEFORMATENUM_PROPACCESS_STR_DATEFORMATENUMCONTAINER_EX_OUT_0: "The longYear property on the Format.Date variable.", AR_OP_DATEFORMATENUM_PROPACCESS_STR_DATEFORMATENUMCONTAINER_EX_OUT_1: "The shortYear property on the Format.Date variable.", AR_OP_DATEFORMATENUM_PROPACCESS_STR_DATEFORMATENUMCONTAINER_EX_OUT_2: "The shortMonthAndDay property on the Format.Date variable.", AR_OP_DATEFORMATENUM_PROPACCESS_STR_DATEFORMATENUMCONTAINER_EX_OUT_3: "The dayOnly property on the Format.Date variable.", AR_OP_DATEFORMATENUM_PROPACCESS_STR_DATEFORMATENUMCONTAINER_EX_OUT_4: "The monthOnly property on the Format.Date variable.", AR_OP_DATEFORMATENUM_PROPACCESS_STR_DATEFORMATENUMCONTAINER_EX_OUT_5: "The shortYearOnly property on the Format.Date variable.", AR_OP_DATEFORMATENUM_PROPACCESS_STR_DATEFORMATENUMCONTAINER_EX_OUT_6: "The longYearOnly property on the Format.Date variable.", AR_OP_DATEFORMATENUM_PROPACCESS_STR_DATEFORMATENUMCONTAINER_EX_OUT_7: "The dayOfWeekOnly property on the Format.Date variable.", AR_OP_NUMBERFORMATENUM_PROPACCESS_STR_NUMBERFORMATENUMCONTAINER_DSC: "Accesses a property on the Format.Number variable.", AR_OP_NUMBERFORMATENUM_PROPACCESS_STR_NUMBERFORMATENUMCONTAINER_RV: "Returns the specified Number Format Enum from the Format.Number variable.", AR_OP_NUMBERFORMATENUM_PROPACCESS_STR_NUMBERFORMATENUMCONTAINER_PRM_DSC_0: "The Number Format Enum property to access.", AR_OP_NUMBERFORMATENUM_PROPACCESS_STR_NUMBERFORMATENUMCONTAINER_PRM_DSC_1: "Must be the Format.Number variable.", AR_OP_NUMBERFORMATENUM_PROPACCESS_STR_NUMBERFORMATENUMCONTAINER_EX_OUT_0: "The playDigits property on the Format.Number variable.", AR_OP_PHONENUMBERFORMATENUM_PROPACCESS_STR_PHONENUMBERFORMATENUMCONTAINER_DSC: "Accesses a property on the Format.PhoneNumber variable.", AR_OP_PHONENUMBERFORMATENUM_PROPACCESS_STR_PHONENUMBERFORMATENUMCONTAINER_RV: "Returns the specified Phone Number Format Enum from the Format.PhoneNumber variable.", AR_OP_PHONENUMBERFORMATENUM_PROPACCESS_STR_PHONENUMBERFORMATENUMCONTAINER_PRM_DSC_0: "The Phone Number Format Enum property to access.", AR_OP_PHONENUMBERFORMATENUM_PROPACCESS_STR_PHONENUMBERFORMATENUMCONTAINER_PRM_DSC_1: "Must be the Format.PhoneNumber variable.", AR_OP_PHONENUMBERFORMATENUM_PROPACCESS_STR_PHONENUMBERFORMATENUMCONTAINER_EX_OUT_0: "The global property on the Format.PhoneNumber variable.", AR_OP_PHONENUMBERFORMATENUM_PROPACCESS_STR_PHONENUMBERFORMATENUMCONTAINER_EX_OUT_1: "The local property on the Format.PhoneNumber variable.", AR_OP_CONVERSATIONTYPEENUM_PROPACCESS_STR_CONVERSATIONTYPESENUMCONTAINER_DSC: "Accesses a property on the System.Conversation variable.", AR_OP_CONVERSATIONTYPEENUM_PROPACCESS_STR_CONVERSATIONTYPESENUMCONTAINER_RV: "Returns the ConversationType Enum from the System.Conversation variable.", AR_OP_CONVERSATIONTYPEENUM_PROPACCESS_STR_CONVERSATIONTYPESENUMCONTAINER_PRM_DSC_0: "The Conversation Type Enum property to access.", AR_OP_CONVERSATIONTYPEENUM_PROPACCESS_STR_CONVERSATIONTYPESENUMCONTAINER_PRM_DSC_1: "Must be the System.Conversation variable.", AR_OP_CONVERSATIONTYPEENUM_PROPACCESS_STR_CONVERSATIONTYPESENUMCONTAINER_EX_OUT_0: "The ConversationTypes property from the System.Conversation variable.", AR_OP_CURRENCYENUM_PROPACCESS_STR_CURRENCIESENUMCONTAINER_DSC: "Accesses a property on the System.Currencies variable.", AR_OP_CURRENCYENUM_PROPACCESS_STR_CURRENCIESENUMCONTAINER_RV: "Returns the specified Currency Enum from the System.Currencies variable.", AR_OP_CURRENCYENUM_PROPACCESS_STR_CURRENCIESENUMCONTAINER_PRM_DSC_0: "The Currency Enum property to access.", AR_OP_CURRENCYENUM_PROPACCESS_STR_CURRENCIESENUMCONTAINER_PRM_DSC_1: "Must be the System.Currencies variable.", AR_OP_CURRENCYENUM_PROPACCESS_STR_CURRENCIESENUMCONTAINER_EX_OUT_0: "The USD property from the System.Currencies variable.", AR_OP_DAYOFWEEKENUMCONTAINER_PROPACCESS_STR_DATETIMEENUMCONTAINER_DSC: "Accesses a property on the System.DateTime variable.", AR_OP_DAYOFWEEKENUMCONTAINER_PROPACCESS_STR_DATETIMEENUMCONTAINER_RV: "Returns the specified Day of Week Enum Container from the System.DateTime variable.", AR_OP_DAYOFWEEKENUMCONTAINER_PROPACCESS_STR_DATETIMEENUMCONTAINER_PRM_DSC_0: "The Day of Week Enum Container property to access.", AR_OP_DAYOFWEEKENUMCONTAINER_PROPACCESS_STR_DATETIMEENUMCONTAINER_PRM_DSC_1: "Must be the System.DateTime variable.", AR_OP_DAYOFWEEKENUMCONTAINER_PROPACCESS_STR_DATETIMEENUMCONTAINER_EX_OUT_0: "The dayOfWeek property from the System.DateTime variable.", AR_OP_LANGUAGEENUM_PROPACCESS_STR_LANGUAGESENUMCONTAINER_DSC: "Accesses a property on the System.Languages variable.", AR_OP_LANGUAGEENUM_PROPACCESS_STR_LANGUAGESENUMCONTAINER_RV: "Returns the specified Language Enum from the System.Languages variable.", AR_OP_LANGUAGEENUM_PROPACCESS_STR_LANGUAGESENUMCONTAINER_PRM_DSC_0: "The Language Enum property to access.", AR_OP_LANGUAGEENUM_PROPACCESS_STR_LANGUAGESENUMCONTAINER_PRM_DSC_1: "Must be the System.Languages variable.", AR_OP_LANGUAGEENUM_PROPACCESS_STR_LANGUAGESENUMCONTAINER_EX_OUT_0: "The enUS property from the System.Languages variable.", AR_OP_REGIONENUM_PROPACCESS_STR_REGIONSENUMCONTAINER_DSC: "Accesses a property on the System.Regions variable.", AR_OP_REGIONENUM_PROPACCESS_STR_REGIONSENUMCONTAINER_RV: "Returns the specified Region Enum from the System.Regions variable.", AR_OP_REGIONENUM_PROPACCESS_STR_REGIONSENUMCONTAINER_PRM_DSC_0: "The Region Enum property to access.", AR_OP_REGIONENUM_PROPACCESS_STR_REGIONSENUMCONTAINER_PRM_DSC_1: "Must be the System.Regions variable.", AR_OP_REGIONENUM_PROPACCESS_STR_REGIONSENUMCONTAINER_EX_OUT_0: "The US property from the System.Regions variable.", AR_OP_SURVEYDISPOSITIONENUM_PROPACCESS_STR_SURVEYDISPOSITIONSENUMCONTAINER_DSC: "Accesses a property on the System.Survey variable.", AR_OP_SURVEYDISPOSITIONENUM_PROPACCESS_STR_SURVEYDISPOSITIONSENUMCONTAINER_RV: "Returns the specified Survey Disposition Enum from the System.Survey variable.", AR_OP_SURVEYDISPOSITIONENUM_PROPACCESS_STR_SURVEYDISPOSITIONSENUMCONTAINER_PRM_DSC_0: "The Survey Disposition Enum property to access.", AR_OP_SURVEYDISPOSITIONENUM_PROPACCESS_STR_SURVEYDISPOSITIONSENUMCONTAINER_PRM_DSC_1: "Must be the System.Survey variable.", AR_OP_SURVEYDISPOSITIONENUM_PROPACCESS_STR_SURVEYDISPOSITIONSENUMCONTAINER_EX_OUT_0: "The Dispositions property from the System.Survey variable.", AR_OP_STRINGFORMATENUM_PROPACCESS_STR_STRINGFORMATENUMCONTAINER_DSC: "Accesses a property on the Format.String variable.", AR_OP_STRINGFORMATENUM_PROPACCESS_STR_STRINGFORMATENUMCONTAINER_RV: "Returns the specified String Format Enum from the Format.String variable.", AR_OP_STRINGFORMATENUM_PROPACCESS_STR_STRINGFORMATENUMCONTAINER_PRM_DSC_0: "The String Format Enum property to access.", AR_OP_STRINGFORMATENUM_PROPACCESS_STR_STRINGFORMATENUMCONTAINER_PRM_DSC_1: "Must be the Format.String variable.", AR_OP_STRINGFORMATENUM_PROPACCESS_STR_STRINGFORMATENUMCONTAINER_EX_OUT_0: "The playChars property on the Format.String variable.", AR_OP_TIMEFORMATENUM_PROPACCESS_STR_TIMEFORMATENUMCONTAINER_DSC: "Accesses a property on the Format.Time variable.", AR_OP_TIMEFORMATENUM_PROPACCESS_STR_TIMEFORMATENUMCONTAINER_RV: "Returns the specified Time Format Enum from the Format.Time variable.", AR_OP_TIMEFORMATENUM_PROPACCESS_STR_TIMEFORMATENUMCONTAINER_PRM_DSC_0: "The Time Format Enum property to access.", AR_OP_TIMEFORMATENUM_PROPACCESS_STR_TIMEFORMATENUMCONTAINER_PRM_DSC_1: "Must be the Format.Time variable.", AR_OP_TIMEFORMATENUM_PROPACCESS_STR_TIMEFORMATENUMCONTAINER_EX_OUT_0: "The twelveHours property on the Format.Time variable.", AR_OP_TIMEFORMATENUM_PROPACCESS_STR_TIMEFORMATENUMCONTAINER_EX_OUT_1: "The twentyFourHours property on the Format.Time variable.", AR_OP_LANGUAGECONTEXTENUM_PROPACCESS_STR_LANGUAGECASEENUMCONTAINER_DSC: "Accesses a property on the Language.Case variable.", AR_OP_LANGUAGECONTEXTENUM_PROPACCESS_STR_LANGUAGECASEENUMCONTAINER_RV: "Returns the specified case Language Context Enum from the Language.Case variable.", AR_OP_LANGUAGECONTEXTENUM_PROPACCESS_STR_LANGUAGECASEENUMCONTAINER_PRM_DSC_0: "The case Language Context Enum property to access.", AR_OP_LANGUAGECONTEXTENUM_PROPACCESS_STR_LANGUAGECASEENUMCONTAINER_PRM_DSC_1: "Must be the Language.Case variable.", AR_OP_LANGUAGECONTEXTENUM_PROPACCESS_STR_LANGUAGECASEENUMCONTAINER_EX_OUT_0: "The article property on the Language.Case variable.", AR_OP_LANGUAGECONTEXTENUM_PROPACCESS_STR_LANGUAGECASEENUMCONTAINER_EX_OUT_1: "The accusative property on the Language.Case variable.", AR_OP_LANGUAGECONTEXTENUM_PROPACCESS_STR_LANGUAGECASEENUMCONTAINER_EX_OUT_2: "The genitive property on the Language.Case variable.", AR_OP_LANGUAGECONTEXTENUM_PROPACCESS_STR_LANGUAGEGENDERENUMCONTAINER_DSC: "Accesses a property on the Language.Gender variable.", AR_OP_LANGUAGECONTEXTENUM_PROPACCESS_STR_LANGUAGEGENDERENUMCONTAINER_RV: "Returns the specified gender Language Context Enum from the Language.Gender variable.", AR_OP_LANGUAGECONTEXTENUM_PROPACCESS_STR_LANGUAGEGENDERENUMCONTAINER_PRM_DSC_0: "The gender Language Context Enum property to access.", AR_OP_LANGUAGECONTEXTENUM_PROPACCESS_STR_LANGUAGEGENDERENUMCONTAINER_PRM_DSC_1: "Must be the Language.Gender variable.", AR_OP_LANGUAGECONTEXTENUM_PROPACCESS_STR_LANGUAGEGENDERENUMCONTAINER_EX_OUT_0: "The common property on the Language.Gender variable.", AR_OP_LANGUAGECONTEXTENUM_PROPACCESS_STR_LANGUAGEGENDERENUMCONTAINER_EX_OUT_1: "The feminine property on the Language.Gender variable.", AR_OP_LANGUAGECONTEXTENUM_PROPACCESS_STR_LANGUAGEGENDERENUMCONTAINER_EX_OUT_2: "The masculine property on the Language.Gender variable.", AR_OP_LANGUAGECONTEXTENUM_PROPACCESS_STR_LANGUAGEGENDERENUMCONTAINER_EX_OUT_3: "The neuter property on the Language.Gender variable.", AR_OP_LANGUAGECONTEXTENUM_PROPACCESS_STR_LANGUAGEQUANTITYENUMCONTAINER_DSC: "Accesses a property on the Language.Quantity variable.", AR_OP_LANGUAGECONTEXTENUM_PROPACCESS_STR_LANGUAGEQUANTITYENUMCONTAINER_RV: "Returns the specified quantity Language Context Enum from the Language.Quantity variable.", AR_OP_LANGUAGECONTEXTENUM_PROPACCESS_STR_LANGUAGEQUANTITYENUMCONTAINER_PRM_DSC_0: "The quantity Language Context Enum property to access.", AR_OP_LANGUAGECONTEXTENUM_PROPACCESS_STR_LANGUAGEQUANTITYENUMCONTAINER_PRM_DSC_1: "Must be the Language.Quantity variable.", AR_OP_LANGUAGECONTEXTENUM_PROPACCESS_STR_LANGUAGEQUANTITYENUMCONTAINER_EX_OUT_0: "The plural property on the Language.Quantity variable.", AR_OP_LANGUAGECONTEXTENUM_PROPACCESS_STR_LANGUAGEQUANTITYENUMCONTAINER_EX_OUT_1: "The singular property on the Language.Quantity variable.", AR_OP_TIMEPARTENUM_PROPACCESS_STR_TIMEPARTENUMCONTAINER_DSC: "Accesses a property on the Format.TimePart variable.", AR_OP_TIMEPARTENUM_PROPACCESS_STR_TIMEPARTENUMCONTAINER_RV: "Returns the specified TimePart Enum from the Format.TimePart variable.", AR_OP_TIMEPARTENUM_PROPACCESS_STR_TIMEPARTENUMCONTAINER_PRM_DSC_0: "The Time Part Enum property to access.", AR_OP_TIMEPARTENUM_PROPACCESS_STR_TIMEPARTENUMCONTAINER_PRM_DSC_1: "Must be the Format.TimePart variable.", AR_OP_TIMEPARTENUM_PROPACCESS_STR_TIMEPARTENUMCONTAINER_EX_OUT_0: "The days property on the Format.TimePart variable.", AR_OP_TIMEPARTENUM_PROPACCESS_STR_TIMEPARTENUMCONTAINER_EX_OUT_1: "The hours property on the Format.TimePart variable.", AR_OP_TIMEPARTENUM_PROPACCESS_STR_TIMEPARTENUMCONTAINER_EX_OUT_2: "The minutes property on the Format.TimePart variable.", AR_OP_TIMEPARTENUM_PROPACCESS_STR_TIMEPARTENUMCONTAINER_EX_OUT_3: "The seconds property on the Format.TimePart variable.", AR_FN_DSC_AUDIOPLAYBACKOPTIONS: "This function configures the way audio is played back to a caller.", AR_FN_AUDIO_AUDIOPLAYBACKOPTIONS_ANYPROMPTORAUDIO_BLN_DSC: "Configures the way audio is played back to a caller with an option for barge-in handling.", AR_FN_AUDIO_AUDIOPLAYBACKOPTIONS_ANYPROMPTORAUDIO_BLN_RV: "Returns Audio with barge-in handling configured.", AR_FN_AUDIO_AUDIOPLAYBACKOPTIONS_ANYPROMPTORAUDIO_BLN_PRM_DSC_0: "The prompt or audio to play to the call.", AR_FN_AUDIO_AUDIOPLAYBACKOPTIONS_ANYPROMPTORAUDIO_BLN_PRM_DSC_1: "Whether or not to allow barge-in by DTMF or speech recognition during the audio playback.", AR_FN_AUDIO_AUDIOPLAYBACKOPTIONS_ANYPROMPTORAUDIO_BLN_EX_OUT_0: "An Audio object for the user prompt Welcome with barge-in by DTMF or speech recognition disabled for the entirety of the playback.", AR_FN_AUDIO_AUDIOPLAYBACKOPTIONS_ANYPROMPTORAUDIO_BLN_EX_OUT_1: "An Audio object for the number five with barge-in by DTMF or speech recognition disabled for the entirety of the playback.", AR_FN_AUDIO_AUDIOPLAYBACKOPTIONS_ANYPROMPTORAUDIO_BLN_EX_OUT_2: "An Audio object for the number five followed by 500 milliseconds of blank audio and then the number four with barge-in by DTMF or speech recognition enabled for the entirety of the playback.", AR_FN_AUDIO_AUDIOPLAYBACKOPTIONS_ANYPROMPTORAUDIO_BLN_BLN_DSC: "Configures the way audio is played back to a caller with options for barge-in and flushing audio.", AR_FN_AUDIO_AUDIOPLAYBACKOPTIONS_ANYPROMPTORAUDIO_BLN_BLN_RV: "Returns Audio with playback configured.", AR_FN_AUDIO_AUDIOPLAYBACKOPTIONS_ANYPROMPTORAUDIO_BLN_BLN_PRM_DSC_0: "The prompt or audio to play to the call.", AR_FN_AUDIO_AUDIOPLAYBACKOPTIONS_ANYPROMPTORAUDIO_BLN_BLN_PRM_DSC_1: "Whether or not to allow barge-in by DTMF or speech recognition during the audio playback.", AR_FN_AUDIO_AUDIOPLAYBACKOPTIONS_ANYPROMPTORAUDIO_BLN_BLN_PRM_DSC_2: "Whether or not to flush the audio and play back it back immediately to the call rather than queue it up for playback.", AR_FN_DSC_CEILING: "Gets the smallest integral value that is not less than the supplied value.", AR_FN_CUR_CEILING_CUR_DSC: "Gets the smallest integral value expressed as a Currency that is not less than the supplied value.", AR_FN_CUR_CEILING_CUR_RV: "Returns the smallest integral value that is not less than the Currency value supplied in the value parameter and returns it as a Currency with the same code as the input value.", AR_FN_CUR_CEILING_CUR_PRM_DSC_0: "The Currency value to process.", AR_FN_CUR_CEILING_CUR_EX_OUT_0: 'A Currency with an amount of 3.00 and code of "USD"', AR_FN_CUR_CEILING_CUR_EX_OUT_1: 'A Currency with an amount of 4.00 and code of "USD"', AR_FN_CUR_CEILING_CUR_EX_OUT_2: 'A Currency with an amount of -3.00 and code of "USD"', AR_FN_CUR_CEILING_CUR_EX_OUT_3: 'A Currency with an amount of 5.00 and code of "USD"', AR_FN_DEC_CEILING_DEC_DSC: "Gets the smallest integral value expressed as a Decimal that is not less than the supplied value.", AR_FN_DEC_CEILING_DEC_RV: "Returns the smallest integral value that is not less than the Decimal supplied in the value parameter and returns it as a Decimal.", AR_FN_DEC_CEILING_DEC_PRM_DSC_0: "The Decimal value to process.", AR_FN_LNG_CEILING_LNG_DSC: "Gets the smallest integral value that is not less than the supplied value. When an Integer is supplied to the Ceiling function, the supplied integer is returned.", AR_FN_LNG_CEILING_LNG_RV: "Returns the Integer that supplied in the value parameter.", AR_FN_LNG_CEILING_LNG_PRM_DSC_0: "The Integer to be returned.", AR_FN_DSC_FLOOR: "Gets the largest integral value that is not greater than the supplied value.", AR_FN_CUR_FLOOR_CUR_DSC: "Gets the largest integral value returned as a Currency with the same code as the Currency passed in that is not greater than the supplied value.", AR_FN_CUR_FLOOR_CUR_RV: "Returns the largest integral value that is not greater than the Currency supplied in the value parameter and returns it as a Currency with the same code as the input value.", AR_FN_CUR_FLOOR_CUR_PRM_DSC_0: "The Currency value to process.", AR_FN_CUR_FLOOR_CUR_EX_OUT_0: 'A Currency with an amount of 2.00 and code of "USD"', AR_FN_CUR_FLOOR_CUR_EX_OUT_1: 'A Currency with an amount of 3.00 and code of "USD"', AR_FN_CUR_FLOOR_CUR_EX_OUT_2: 'A Currency with an amount of -4.00 and code of "USD"', AR_FN_CUR_FLOOR_CUR_EX_OUT_3: 'A Currency with an amount of 5.00 and code of "USD"', AR_FN_CUR_FLOOR_CUR_EX_OUT_4: "This would result in an error at runtime.", AR_FN_DEC_FLOOR_DEC_DSC: "Gets the largest integral value returned as a Decimal that is not greater than the supplied value.", AR_FN_DEC_FLOOR_DEC_RV: "Returns the largest integral value that is not greater than the Decimal supplied in the value parameter and returns it as a Decimal.", AR_FN_DEC_FLOOR_DEC_PRM_DSC_0: "The Decimal value to process.", AR_FN_LNG_FLOOR_LNG_DSC: "Gets the largest integral value that is not greater than the supplied value. When an Integer is supplied to the Floor function, the supplied Integer is returned.", AR_FN_LNG_FLOOR_LNG_RV: "Returns the Integer that supplied in the value parameter.", AR_FN_LNG_FLOOR_LNG_PRM_DSC_0: "The Integer value to process.", AR_FN_DSC_ROUND: "Rounds to the Decimal supplied in the value parameter to the specified number of digits after the decimal place.", AR_FN_CUR_ROUND_CUR_DSC: "Rounds a Currency value's amount to the nearest integral value with the same code.", AR_FN_CUR_ROUND_CUR_RV: "Returns a Currency whose amount is rounded to the nearest integral value with the same code as the input.", AR_FN_CUR_ROUND_CUR_PRM_DSC_0: "The Currency to be rounded.", AR_FN_CUR_ROUND_CUR_EX_OUT_0: 'A Currency with an amount of 3.00 and code of "USD"', AR_FN_CUR_ROUND_CUR_EX_OUT_1: 'A Currency with an amount of 2.00 and code of "USD"', AR_FN_CUR_ROUND_CUR_EX_OUT_2: 'A Currency with an amount of 1.00 and code of "USD"', AR_FN_CUR_ROUND_CUR_EX_OUT_3: 'A Currency with an amount of 0.00 and code of "USD"', AR_FN_CUR_ROUND_CUR_EX_OUT_4: 'A Currency with an amount of -3.00 and code of "USD"', AR_FN_CUR_ROUND_CUR_EX_OUT_5: 'A Currency with an amount of -4.00 and code of "USD"', AR_FN_DEC_ROUND_DEC_DSC: "Rounds a Decimal value to the nearest integral value", AR_FN_DEC_ROUND_DEC_RV: "Returns a Decimal value that is rounded to the nearest integral value.", AR_FN_DEC_ROUND_DEC_PRM_DSC_0: "The Decimal value to be rounded.", AR_FN_DEC_ROUND_DEC_LNG_DSC: "Rounds a Decimal value to the number of digits specified in the digits parameter.", AR_FN_DEC_ROUND_DEC_LNG_RV: "Returns a Decimal value that is rounded to the number of digits specified in the digits parameter.", AR_FN_DEC_ROUND_DEC_LNG_PRM_DSC_0: "The Decimal value to be rounded.", AR_FN_DEC_ROUND_DEC_LNG_PRM_DSC_1: "The number of digits to round after the decimal place.", AR_FN_CUR_ROUND_CUR_LNG_DSC: "Rounds a Currency amount to the nearest integral amount.", AR_FN_CUR_ROUND_CUR_LNG_RV: "Returns a Currency with an amount that is rounded to the number of digits specified in the digits parameter and a code that matches the input Currency value.", AR_FN_CUR_ROUND_CUR_LNG_PRM_DSC_0: "The Currency to be rounded.", AR_FN_CUR_ROUND_CUR_LNG_PRM_DSC_1: "The number of digits to round after the decimal place.", AR_FN_CUR_ROUND_CUR_LNG_EX_OUT_0: 'A Currency with an amount of 3.20 and code of "USD"', AR_FN_CUR_ROUND_CUR_LNG_EX_OUT_1: 'A Currency with an amount of 3.23 and code of "USD"', AR_FN_CUR_ROUND_CUR_LNG_EX_OUT_2: 'A Currency with an amount of 2.00 and code of "USD"', AR_FN_CUR_ROUND_CUR_LNG_EX_OUT_3: 'A Currency with an amount of 1.50 and code of "USD"', AR_FN_CUR_ROUND_CUR_LNG_EX_OUT_4: 'A Currency with an amount of 0.00 and code of "USD"', AR_FN_CUR_ROUND_CUR_LNG_EX_OUT_5: 'A Currency with an amount of -3.00 and code of "USD"', AR_FN_CUR_ROUND_CUR_LNG_EX_OUT_6: 'A Currency with an amount of -3.20 and code of "USD"', AR_FN_CUR_ROUND_CUR_LNG_EX_OUT_7: 'A Currency with an amount of -4.00 and code of "USD"', AR_FN_CUR_ROUND_CUR_LNG_EX_OUT_8: 'A Currency with an amount of -3.60 and code of "USD"', AR_FN_CUR_ROUND_CUR_LNG_EX_OUT_9: 'A Currency with an amount of -3.61 and code of "USD"', AR_FN_CUR_ROUND_CUR_LNG_EX_OUT_10: 'A Currency with an amount of -4.00 and code of "USD"', AR_FN_DSC_SUM: "Adds all of the numeric expressions given as arguments.", AR_FN_LNG_SUM_LNG_LNG_MORE_DSC: "Adds the supplied Integer values and returns the result.", AR_FN_LNG_SUM_LNG_LNG_MORE_RV: "Returns an Integer that is the sum of the supplied Integer values.", AR_FN_LNG_SUM_LNG_LNG_MORE_PRM_DSC_0: "The first Integer to sum. If the Integer value is NOT_SET, it will be treated as 0.", AR_FN_LNG_SUM_LNG_LNG_MORE_PRM_DSC_1: "An additional Integer to sum. If the Integer value is NOT_SET, it will be treated as 0.", AR_FN_CUR_SUM_CUR_CUR_MORE_DSC: "Adds the supplied Currency values and returns the result. Each currency added must have the same code. If all Currency values are NOT_SET, a Currency with an amount of 0 and code of NOT_SET is returned.", AR_FN_CUR_SUM_CUR_CUR_MORE_RV: "Returns a Currency which is the sum of the supplied Currency values.", AR_FN_CUR_SUM_CUR_CUR_MORE_PRM_DSC_0: "The first Currency to sum. If the Currency value is NOT_SET, it will be skipped.", AR_FN_CUR_SUM_CUR_CUR_MORE_PRM_DSC_1: "An additional Currency to sum. This Currency must have the same code as the first Currency submitted to the Sum function. If the Currency value is NOT_SET, it will be skipped.", AR_FN_CUR_SUM_CUR_CUR_MORE_EX_OUT_0: 'A Currency with an amount of 9.00 and code of "USD"', AR_FN_CUR_SUM_CUR_CUR_MORE_EX_OUT_1: 'A Currency with an amount of -5.20 and code of "USD"', AR_FN_CUR_SUM_CUR_CUR_MORE_EX_OUT_2: 'A Currency with an amount of -0.40 and code of "USD"', AR_FN_CUR_SUM_CUR_CUR_MORE_EX_OUT_3: 'A Currency with an amount of 5.00 and code of "USD"', AR_FN_CUR_SUM_CUR_CUR_MORE_EX_OUT_4: 'A Currency with an amount of -3.00 and code of "USD"', AR_FN_CUR_SUM_CUR_CUR_MORE_EX_OUT_5: 'A Currency with an amount of 0.00 and code of "USD"', AR_FN_CUR_SUM_CUR_CUR_MORE_EX_OUT_6: "A Currency with an amount of 0.0 and code of NOT_SET.", AR_FN_DEC_SUM_DEC_DEC_MORE_DSC: "Adds the supplied Decimal values and returns the result.", AR_FN_DEC_SUM_DEC_DEC_MORE_RV: "Returns a Decimal which is the sum of the supplied Decimal values.", AR_FN_DEC_SUM_DEC_DEC_MORE_PRM_DSC_0: "The first Decimal to sum. A NOT_SET decimal is treated as 0.0.", AR_FN_DEC_SUM_DEC_DEC_MORE_PRM_DSC_1: "An additional Decimal to sum A NOT_SET decimal is treated as 0.0.", AR_FN_DUR_SUM_DUR_DUR_MORE_DSC: "Adds the supplied Duration values and returns the result.", AR_FN_DUR_SUM_DUR_DUR_MORE_RV: "Returns a Duration which is the sum of the supplied Duration values.", AR_FN_DUR_SUM_DUR_DUR_MORE_PRM_DSC_0: "The first Duration to sum. A NOT_SET Duration is treated as a 0 second duration.", AR_FN_DUR_SUM_DUR_DUR_MORE_PRM_DSC_1: "An additional Duration to sum. A NOT_SET Duration is treated as a 0 second duration.", AR_FN_DUR_SUM_DUR_DUR_MORE_EX_OUT_0: "A Duration of 2 days, 1 hour, 30 minutes and 6 seconds.", AR_FN_DUR_SUM_DUR_DUR_MORE_EX_OUT_1: "A Duration of 1 day, 1 hour and 3 seconds.", AR_FN_DUR_SUM_DUR_DUR_MORE_EX_OUT_2: "A Duration of 0 seconds.", AR_FN_LNG_SUM_LNG_COLL_DSC: "Adds Integer values in a collection. If an element in the Integer collection is NOT_SET, it will be treated as 0. If the collection is empty, 0 is returned.", AR_FN_LNG_SUM_LNG_COLL_RV: "Returns the sum of the Integer values in a collection.", AR_FN_LNG_SUM_LNG_COLL_PRM_DSC_0: "A collection of Integer values to sum.", AR_FN_CUR_SUM_CUR_COLL_DSC: "Adds the supplied Currency values in the collection and returns the result. Each currency item in the collection must have the same code. If a Currency item in the collection is NOT_SET, it will be skipped in the calculation. If all items in the collection are a NOT_SET Currency or the collection is empty, a Currency with an amount of 0.0 and code of NOT_SET is returned.", AR_FN_CUR_SUM_CUR_COLL_RV: "Returns a Currency which is the sum of the supplied Currency values in the collection.", AR_FN_CUR_SUM_CUR_COLL_PRM_DSC_0: "The Currency collection to sum.", AR_FN_CUR_SUM_CUR_COLL_EX_OUT_0: 'A Currency with an amount of 9.00 and code of "USD"', AR_FN_CUR_SUM_CUR_COLL_EX_OUT_1: 'A Currency with an amount of -5.20 and code of "USD"', AR_FN_CUR_SUM_CUR_COLL_EX_OUT_2: 'A Currency with an amount of -0.40 and code of "USD"', AR_FN_CUR_SUM_CUR_COLL_EX_OUT_3: 'A Currency with an amount of 5.00 and code of "USD"', AR_FN_CUR_SUM_CUR_COLL_EX_OUT_4: 'A Currency with an amount of -3.00 and code of "USD"', AR_FN_CUR_SUM_CUR_COLL_EX_OUT_5: 'A Currency with an amount of 0.0 and code of "USD"', AR_FN_CUR_SUM_CUR_COLL_EX_OUT_6: "A Currency with an amount of 0.0 and code of NOT_SET.", AR_FN_DEC_SUM_DEC_COLL_DSC: "Adds Decimal values in a collection. If an element in the Decimal collection is NOT_SET, it will be treated as 0.0. If the collection is empty, 0.0 is returned.", AR_FN_DEC_SUM_DEC_COLL_RV: "Returns the sum of the Decimal values in a collection.", AR_FN_DEC_SUM_DEC_COLL_PRM_DSC_0: "A collection of Decimal values to sum.", AR_FN_DUR_SUM_DUR_COLL_DSC: "Adds Duration values in a collection. If an element in the Duration collection is NOT_SET, it will be treated as a Duration of 0 seconds. If the Duration collection is empty, a Duration of 0 seconds is returned.", AR_FN_DUR_SUM_DUR_COLL_RV: "Returns the sum of the Duration values in a collection.", AR_FN_DUR_SUM_DUR_COLL_PRM_DSC_0: "A collection of Duration values to sum.", AR_FN_DUR_SUM_DUR_COLL_EX_OUT_0: "A duration of 2 days, 1 hour, 30 minutes and 6 seconds.", AR_FN_DUR_SUM_DUR_COLL_EX_OUT_1: "A duration of 1 day, 1 hour and 3 seconds.", AR_FN_DUR_SUM_DUR_COLL_EX_OUT_2: "A duration of 0 seconds.", AR_FN_DUR_SUM_DUR_COLL_EX_OUT_3: "A duration of 0 seconds.", AR_FN_DSC_AVERAGE: "Computes the average of the values supplied to the function.", AR_FN_CUR_AVERAGE_CUR_MORE_DSC: "Computes the average of the Currency values supplied to the function. Each currency value must have the same code. If all values submitted are NOT_SET Currency values, the return value is a Currency with an amount of 0.0 and code of NOT_SET.", AR_FN_CUR_AVERAGE_CUR_MORE_RV: "Returns the average of the Currency values supplied as arguments.", AR_FN_CUR_AVERAGE_CUR_MORE_PRM_DSC_0: "A Currency value to be used in the average calculation. If the Currency is NOT_SET, it will be skipped in the average calculation.", AR_FN_CUR_AVERAGE_CUR_MORE_EX_OUT_0: 'A Currency with an amount of 6.50 and code of "USD"', AR_FN_CUR_AVERAGE_CUR_MORE_EX_OUT_1: 'A Currency with an amount of 4.50 and code of "USD"', AR_FN_CUR_AVERAGE_CUR_MORE_EX_OUT_2: 'A Currency with an amount of 8.00 and code of "USD"', AR_FN_CUR_AVERAGE_CUR_MORE_EX_OUT_3: "A Currency with an amount of 0.0 and code of NOT_SET", AR_FN_DEC_AVERAGE_DEC_MORE_DSC: "Computes the average of the Decimal values supplied to the function. If all values submitted are NOT_SET Decimals, the return Decimal is 0.0.", AR_FN_DEC_AVERAGE_DEC_MORE_RV: "Returns the average of the Decimals supplied as arguments.", AR_FN_DEC_AVERAGE_DEC_MORE_PRM_DSC_0: "A Decimal value to be used in the average calculation. If the value is NOT_SET, it will be skipped in the average calculation.", AR_FN_DUR_AVERAGE_DUR_MORE_DSC: "Computes the average of the Duration values supplied to the function. If all values submitted are NOT_SET Duration values, the returned Duration is 0 seconds.", AR_FN_DUR_AVERAGE_DUR_MORE_RV: "Returns the average of the Duration values supplied as arguments. Note that since the result is a Duration, the average will be computed out to milliseconds.", AR_FN_DUR_AVERAGE_DUR_MORE_PRM_DSC_0: "A Duration value to be used in the average calculation. If the value is NOT_SET, it will be skipped in the average calculation.", AR_FN_DUR_AVERAGE_DUR_MORE_EX_OUT_0: "A Duration of 3 hours.", AR_FN_DUR_AVERAGE_DUR_MORE_EX_OUT_1: "A Duration of four hours and 30 minutes.", AR_FN_DUR_AVERAGE_DUR_MORE_EX_OUT_2: "A Duration of 8 hours.", AR_FN_DUR_AVERAGE_DUR_MORE_EX_OUT_3: "A 0 second Duration.", AR_FN_DEC_AVERAGE_LNG_MORE_DSC: "Computes the average of the Integer values supplied to the function. If all values submitted are NOT_SET Integers, the return value is a Decimal of 0.0.", AR_FN_DEC_AVERAGE_LNG_MORE_RV: "Returns the average of the supplied Integer values.", AR_FN_DEC_AVERAGE_LNG_MORE_PRM_DSC_0: "An Integer value to be used in the average calculation. If the value is a NOT_SET, it will be skipped in the average calculation.", AR_FN_CUR_AVERAGE_CUR_COLL_DSC: "Computes the average of the Currency values in a collection. Each currency item in the collection must have the same code. If a Currency item's amount in the collection is NOT_SET, it will be skipped in the average calculation. If the Currency collection is empty, a Currency with an amount of 0.0 and code of NOT_SET is returned.", AR_FN_CUR_AVERAGE_CUR_COLL_RV: "Returns the average of the Currency items in the supplied Currency collection.", AR_FN_CUR_AVERAGE_CUR_COLL_PRM_DSC_0: "A Currency collection whose items are used in the average calculation.", AR_FN_CUR_AVERAGE_CUR_COLL_EX_OUT_0: 'A Currency with an amount of 6.50 and code of "USD"', AR_FN_CUR_AVERAGE_CUR_COLL_EX_OUT_1: 'A Currency with an amount of 4.50 and code of "USD"', AR_FN_CUR_AVERAGE_CUR_COLL_EX_OUT_2: 'A Currency with an amount of 8.00 and code of "USD"', AR_FN_CUR_AVERAGE_CUR_COLL_EX_OUT_3: "A Currency with an amount of 0.0 and code of NOT_SET.", AR_FN_CUR_AVERAGE_CUR_COLL_EX_OUT_4: "A Currency with an amount of 0.0 and code of NOT_SET.", AR_FN_DEC_AVERAGE_DEC_COLL_DSC: "Computes the average of the Decimal values in a Decimal collection.", AR_FN_DEC_AVERAGE_DEC_COLL_RV: "Returns the average of the Decimal items in the supplied Decimal collection.", AR_FN_DEC_AVERAGE_DEC_COLL_PRM_DSC_0: "The Decimal collection from which to compute the average. If an element in the Decimal collection is NOT_SET, it will not be computed in the average.", AR_FN_DEC_AVERAGE_LNG_COLL_DSC: "Computes the average of the Integer values in an Integer collection. If an element in the Integer collection is NOT_SET, it will not be computed in the average. If the Integer collection is empty, an Integer value of 0 is returned.", AR_FN_DEC_AVERAGE_LNG_COLL_RV: "Returns the average of the Integer items in the supplied Integer collection.", AR_FN_DEC_AVERAGE_LNG_COLL_PRM_DSC_0: "The Integer collection from which to compute the average.", AR_FN_DUR_AVERAGE_DUR_COLL_DSC: "Computes the average of the Duration values in a Duration collection. If an element in the Duration collection is NOT_SET, it will not be computed in the average. If the Duration collection is empty, a Duration value of 0 seconds is returned.", AR_FN_DUR_AVERAGE_DUR_COLL_RV: "Returns the average of the Duration items in the supplied Duration collection.", AR_FN_DUR_AVERAGE_DUR_COLL_PRM_DSC_0: "The Duration collection from which to compute the average. Note that since the result is a Duration, the average will be computed out to milliseconds.", AR_FN_DUR_AVERAGE_DUR_COLL_EX_OUT_0: "A Duration of 3 hours.", AR_FN_DUR_AVERAGE_DUR_COLL_EX_OUT_1: "A Duration of four hours and 30 minutes.", AR_FN_DUR_AVERAGE_DUR_COLL_EX_OUT_2: "A Duration of 8 hours.", AR_FN_DUR_AVERAGE_DUR_COLL_EX_OUT_3: "A 0 second Duration.", AR_FN_DSC_FINDSYSTEMPROMPT: "Searches for an Architect system prompt in the organization.", AR_FN_PROMPT_FINDSYSTEMPROMPT_STR_DSC: "Performs a search for an Architect system prompt by the specified prompt name and returns the Prompt value if a unique match is found.", AR_FN_PROMPT_FINDSYSTEMPROMPT_STR_RV: "Returns the Prompt value for the supplied system prompt name if found, otherwise a NOT_SET Prompt.", AR_FN_PROMPT_FINDSYSTEMPROMPT_STR_PRM_DSC_0: 'The name of the system prompt to find. The system prompt will be looked up by name case insensitively. The search name should not begin with "PromptSystem.". If it does, that prefix will be removed when performing the find operation at runtime.', AR_FN_PROMPT_FINDSYSTEMPROMPT_STR_EX_OUT_0: 'Returns the Prompt value for the system prompt named "boolean_false".', AR_FN_PROMPT_FINDSYSTEMPROMPT_STR_EX_OUT_1: 'Returns the Prompt value for the system prompt named "boolean_false".', AR_FN_PROMPT_FINDSYSTEMPROMPT_STR_EX_OUT_2: "A NOT_SET Prompt since that system prompt does not exist.", AR_FN_PROMPT_FINDSYSTEMPROMPT_STR_EX_OUT_3: "A NOT_SET Prompt.", AR_FN_PROMPT_FINDSYSTEMPROMPT_STR_EX_OUT_4: "A NOT_SET Prompt.", AR_FN_PROMPT_FINDSYSTEMPROMPT_NTS_DSC: "Returns a NOT_SET Prompt for a NOT_SET input value.", AR_FN_PROMPT_FINDSYSTEMPROMPT_NTS_RV: "Returns a NOT_SET Prompt.", AR_FN_PROMPT_FINDSYSTEMPROMPT_NTS_PRM_DSC_0: "The value NOT_SET.", AR_FN_PROMPT_FINDSYSTEMPROMPT_NTS_EX_OUT_0: "A NOT_SET Prompt.", AR_FN_DSC_FINDUSERPROMPT: "Searches for an Architect user prompt in the organization.", AR_FN_PROMPT_FINDUSERPROMPT_STR_DSC: "Performs a search for an Architect user prompt by the specified prompt name and returns the Prompt value if a unique match is found.", AR_FN_PROMPT_FINDUSERPROMPT_STR_RV: "Returns the Prompt value for the supplied user prompt name if found, otherwise a NOT_SET Prompt.", AR_FN_PROMPT_FINDUSERPROMPT_STR_PRM_DSC_0: 'The name of the user prompt to find. The user prompt will be looked up by name case insensitively. The search name should not begin with "Prompt.". If it does, that prefix will be removed when performing the find operation at runtime.', AR_FN_PROMPT_FINDUSERPROMPT_STR_EX_OUT_0: 'Returns the Prompt value for the user prompt named "Greeting" if there is a user prompt with with that name, otherwise a NOT_SET Prompt.', AR_FN_PROMPT_FINDUSERPROMPT_STR_EX_OUT_1: 'Returns the Prompt value for the user prompt named "Greeting" if there is a user prompt with with that name, otherwise a NOT_SET Prompt.', AR_FN_PROMPT_FINDUSERPROMPT_STR_EX_OUT_2: "A NOT_SET Prompt.", AR_FN_PROMPT_FINDUSERPROMPT_STR_EX_OUT_3: "A NOT_SET Prompt.", AR_FN_PROMPT_FINDUSERPROMPT_NTS_DSC: "Returns a NOT_SET Prompt for a NOT_SET input value.", AR_FN_PROMPT_FINDUSERPROMPT_NTS_RV: "Returns a NOT_SET Prompt.", AR_FN_PROMPT_FINDUSERPROMPT_NTS_PRM_DSC_0: "The value NOT_SET.", AR_FN_PROMPT_FINDUSERPROMPT_NTS_EX_OUT_0: "A NOT_SET Prompt.", AR_FN_DSC_FINDSTRING: "Returns the location of a specified occurrence of a String within a String.", AR_FN_LNG_FINDSTRING_STR_STR_DSC: 'Searches for the first occurrence of a String within a String by doing a case sensitive match. If textToFind find is "", a 0 will be returned.', AR_FN_LNG_FINDSTRING_STR_STR_RV: "Returns the zero-based index of the first occurrence of a String within a String by doing a case sensitive match.", AR_FN_LNG_FINDSTRING_STR_STR_PRM_DSC_0: "The String that will be scanned.", AR_FN_LNG_FINDSTRING_STR_STR_PRM_DSC_1: "The String for which you are searching.", AR_FN_LNG_FINDSTRING_STR_STR_BLN_DSC: 'Searches for the first occurrence of a String within a String. If textToFind find is "", a -1 will be returned.', AR_FN_LNG_FINDSTRING_STR_STR_BLN_RV: "Returns the zero-based index of the first occurrence of a String within a String.", AR_FN_LNG_FINDSTRING_STR_STR_BLN_PRM_DSC_0: "The String that will be scanned.", AR_FN_LNG_FINDSTRING_STR_STR_BLN_PRM_DSC_1: "The String for which you are searching.", AR_FN_LNG_FINDSTRING_STR_STR_BLN_PRM_DSC_2: "Whether or not to perform a case insensitive (true) or case sensitive (false) search.", AR_FN_LNG_FINDSTRING_STR_STR_LNG_DSC: "Calculates the index of a String within a String by doing a case sensitive match. This function will find the n'th occurrence of the string as specified by the occurrenceNumber parameter.", AR_FN_LNG_FINDSTRING_STR_STR_LNG_RV: `Returns the zero-based index of the n'th ( specified by the occurrenceNumber parameter ) String within a String by doing a case sensitive match. If the String to find is "", a -1 will be returned.`, AR_FN_LNG_FINDSTRING_STR_STR_LNG_PRM_DSC_0: "The String that will be scanned.", AR_FN_LNG_FINDSTRING_STR_STR_LNG_PRM_DSC_1: "The String for which you are searching.", AR_FN_LNG_FINDSTRING_STR_STR_LNG_PRM_DSC_2: "The specific occurrence to find. If there are less than occurrenceNumber matches in the text to search, a -1 is returned.", AR_FN_LNG_FINDSTRING_STR_STR_LNG_BLN_DSC: "Calculates the index of a String within a String. This function will find the n'th occurrence of the string as specified by the occurrenceNumber parameter.", AR_FN_LNG_FINDSTRING_STR_STR_LNG_BLN_RV: `Returns the zero-based index of the n'th ( specified by the occurrenceNumber parameter ) String within a String. If the String to find is "", a -1 will be returned.`, AR_FN_LNG_FINDSTRING_STR_STR_LNG_BLN_PRM_DSC_0: "The String that will be scanned.", AR_FN_LNG_FINDSTRING_STR_STR_LNG_BLN_PRM_DSC_1: "The String for which you are searching.", AR_FN_LNG_FINDSTRING_STR_STR_LNG_BLN_PRM_DSC_2: "The specific occurrence to find. If there are less than occurrenceNumber matches in the text to search, a -1 is returned.", AR_FN_LNG_FINDSTRING_STR_STR_LNG_BLN_PRM_DSC_3: "Whether or not to perform a case insensitive (true) or case sensitive (false) search.", AR_FN_DSC_FINDUSER: "Searches for a user in the organization.", AR_FN_USR_FINDUSER_STR_DSC: "Performs a search for a user by email address in a case insensitive manner.", AR_FN_USR_FINDUSER_STR_RV: "Returns the User value if one user with the specified email address was found, otherwise a NOT_SET User.", AR_FN_USR_FINDUSER_STR_PRM_DSC_0: "The email address of the user to find.", AR_FN_USR_FINDUSER_STR_EX_OUT_0: 'Returns the User found for the email address "john.doe@company.com" if there is one user in the organization with that email address, otherwise a NOT_SET User.', AR_FN_USR_FINDUSER_STR_EX_OUT_1: "A NOT_SET User.", AR_FN_USR_FINDUSER_NTS_DSC: "Returns a NOT_SET User for a NOT_SET input value.", AR_FN_USR_FINDUSER_NTS_RV: "Returns a NOT_SET User.", AR_FN_USR_FINDUSER_NTS_PRM_DSC_0: "The value NOT_SET.", AR_FN_USR_FINDUSER_NTS_EX_OUT_0: "A NOT_SET User.", AR_FN_DSC_FINDUSERBYID: "Looks up a user in the organization by ID.", AR_FN_USR_FINDUSERBYID_STR_DSC: "Looks up a user from a user ID.", AR_FN_USR_FINDUSERBYID_STR_RV: "Returns the User value if the lookup was successful, otherwise a NOT_SET User.", AR_FN_USR_FINDUSERBYID_STR_PRM_DSC_0: "The user ID to find. The ID will be matched in a case insensitive manner.", AR_FN_USR_FINDUSERBYID_STR_EX_OUT_0: 'Returns the User with the ID "5b943b5F-4205-b70F-8be1-a245a94b2919" if it exists, otherwise a NOT_SET User.', AR_FN_USR_FINDUSERBYID_STR_EX_OUT_1: "A NOT_SET User.", AR_FN_USR_FINDUSERBYID_NTS_DSC: "Returns a NOT_SET User for a NOT_SET input value.", AR_FN_USR_FINDUSERBYID_NTS_RV: "Returns a NOT_SET User.", AR_FN_USR_FINDUSERBYID_NTS_PRM_DSC_0: "The value NOT_SET.", AR_FN_USR_FINDUSERBYID_NTS_EX_OUT_0: "A NOT_SET User.", AR_FN_DSC_FINDUSERSBYID: "Looks up multiple users in the organization by ID.", AR_FN_USR_COLL_FINDUSERSBYID_STR_COLL_DSC: "Looks up users from user IDs.", AR_FN_USR_COLL_FINDUSERSBYID_STR_COLL_RV: "Returns an ordered User collection whose items correspond to the lookup results of each ID in the input String collection. For user IDs that could not be looked up, they will be NOT_SET User items in the returned collection.", AR_FN_USR_COLL_FINDUSERSBYID_STR_COLL_PRM_DSC_0: "A String collection of user IDs to look up. Identifiers will be matched in a case insensitive manner.", AR_FN_USR_COLL_FINDUSERSBYID_STR_COLL_EX_OUT_0: 'A User collection with the item at index 0 being the user with the ID "5b943b5F-4205-b70F-8be1-a245a94b2919" and the item at index 1 being a NOT_SET User.', AR_FN_USR_COLL_FINDUSERSBYID_STR_COLL_EX_OUT_1: "An empty User collection.", AR_FN_USR_COLL_FINDUSERSBYID_STR_COLL_EX_OUT_2: "A User collection with one item in it. The item at index 0 is a NOT_SET User.", AR_FN_DSC_FINDDIVISION: "Searches for a Division in the organization.", AR_FN_DIVISION_FINDDIVISION_STR_DSC: "Performs a case insensitive search for a uniquely named Division and returns the Division value if found.", AR_FN_DIVISION_FINDDIVISION_STR_RV: "Returns the Division found in your organization if there was a unique match found, otherwise a NOT_SET Division.", AR_FN_DIVISION_FINDDIVISION_STR_PRM_DSC_0: "The Division name to look up in the organization. The search will be performed case insensitively.", AR_FN_DIVISION_FINDDIVISION_STR_EX_OUT_0: 'Returns the Division for the Division named "Fire" if there is one Division with that name case insensitively, otherwise a NOT_SET Division.', AR_FN_DIVISION_FINDDIVISION_STR_EX_OUT_1: "A NOT_SET Division.", AR_FN_DIVISION_FINDDIVISION_NTS_DSC: "Returns a NOT_SET Division for a NOT_SET input value.", AR_FN_DIVISION_FINDDIVISION_NTS_RV: "Returns a NOT_SET Division.", AR_FN_DIVISION_FINDDIVISION_NTS_PRM_DSC_0: "The value NOT_SET.", AR_FN_DIVISION_FINDDIVISION_NTS_EX_OUT_0: "A NOT_SET Division.", AR_FN_DSC_FINDDIVISIONBYID: "Searches for a Division in the organization by ID.", AR_FN_DIVISION_FINDDIVISIONBYID_STR_DSC: "Looks up a Division by ID and returns a Division value if found.", AR_FN_DIVISION_FINDDIVISIONBYID_STR_RV: "Returns the value of a Division if a unique match was found in your organization, otherwise returns a Division with value of NOT_SET.", AR_FN_DIVISION_FINDDIVISIONBYID_STR_PRM_DSC_0: "The Division ID to look up in your organization. The ID will be matched in a case insensitive manner.", AR_FN_DIVISION_FINDDIVISIONBYID_STR_EX_OUT_0: 'Returns the Division with the ID "5b943b5F-4205-b70F-8be1-a245a94b2919" if it exists, otherwise a NOT_SET Division.', AR_FN_DIVISION_FINDDIVISIONBYID_STR_EX_OUT_1: "A NOT_SET Division.", AR_FN_DIVISION_FINDDIVISIONBYID_NTS_DSC: "Returns a NOT_SET Division for a NOT_SET input value.", AR_FN_DIVISION_FINDDIVISIONBYID_NTS_RV: "Returns a NOT_SET Division.", AR_FN_DIVISION_FINDDIVISIONBYID_NTS_PRM_DSC_0: "The value NOT_SET.", AR_FN_DIVISION_FINDDIVISIONBYID_NTS_EX_OUT_0: "A NOT_SET Division.", AR_FN_DSC_FINDDIVISIONS: "Searches for Divisions in the organization.", AR_FN_DIVISION_COLL_FINDDIVISIONS_STR_COLL_DSC: "Performs a case insensitive search for uniquely named Divisions.", AR_FN_DIVISION_COLL_FINDDIVISIONS_STR_COLL_RV: "Returns an Division collection whose items correspond to the lookup results of each name in the input String collection. For division names that could not be found, they will be NOT_SET Division items in the returned collection.", AR_FN_DIVISION_COLL_FINDDIVISIONS_STR_COLL_PRM_DSC_0: "A String collection of division names to look up. The search will be performed case insensitively.", AR_FN_DIVISION_COLL_FINDDIVISIONS_STR_COLL_EX_OUT_0: 'A Division collection with the item at index 0 being the division with the name "Fire" and the item at index 1 being a NOT_SET Division.', AR_FN_DIVISION_COLL_FINDDIVISIONS_STR_COLL_EX_OUT_1: "An empty Division collection.", AR_FN_DIVISION_COLL_FINDDIVISIONS_STR_COLL_EX_OUT_2: "A Division collection with one item in it. The item at index 0 is a NOT_SET Division.", AR_FN_DSC_FINDDIVISIONSBYID: "Searches for Divisions in the organization by ID.", AR_FN_DIVISION_COLL_FINDDIVISIONSBYID_STR_COLL_DSC: "Looks up divisions from division IDs.", AR_FN_DIVISION_COLL_FINDDIVISIONSBYID_STR_COLL_RV: "Returns an ordered Division collection whose items correspond to the lookup results of each ID in the input String collection. For division IDs that could not be looked up, they will be NOT_SET Division items in the returned collection.", AR_FN_DIVISION_COLL_FINDDIVISIONSBYID_STR_COLL_PRM_DSC_0: "A String collection of division IDs to look up. Identifiers will be matched in a case insensitive manner.", AR_FN_DIVISION_COLL_FINDDIVISIONSBYID_STR_COLL_EX_OUT_0: 'A Division collection with the item at index 0 being the user with the ID "5b943b5F-4205-b70F-8be1-a245a94b2919" and the item at index 1 being a NOT_SET Division.', AR_FN_DIVISION_COLL_FINDDIVISIONSBYID_STR_COLL_EX_OUT_1: "An empty Division collection.", AR_FN_DIVISION_COLL_FINDDIVISIONSBYID_STR_COLL_EX_OUT_2: "A Division collection with one item in it. The item at index 0 is a NOT_SET Division.", AR_FN_DSC_FINDEMERGENCYGROUP: "Searches for an EmergencyGroup in the organization.", AR_FN_EMERGRP_FINDEMERGENCYGROUP_STR_DSC: "Performs a case insensitive search for a uniquely named Emergency Group and returns the Emergency Group value if found.", AR_FN_EMERGRP_FINDEMERGENCYGROUP_STR_RV: "Returns the Emergency Group found in your organization if there was a unique match found, otherwise a NOT_SET Emergency Group.", AR_FN_EMERGRP_FINDEMERGENCYGROUP_STR_PRM_DSC_0: "The Emergency Group name to look up in the organization. The search will be performed case insensitively.", AR_FN_EMERGRP_FINDEMERGENCYGROUP_STR_EX_OUT_0: 'Returns the Emergency Group for the Emergency Group named "Fire" if there is one Emergency Group with that name case insensitively, otherwise a NOT_SET Emergency Group.', AR_FN_EMERGRP_FINDEMERGENCYGROUP_STR_EX_OUT_1: "A NOT_SET Emergency Group.", AR_FN_EMERGRP_FINDEMERGENCYGROUP_NTS_DSC: "Returns a NOT_SET Emergency Group for a NOT_SET input value.", AR_FN_EMERGRP_FINDEMERGENCYGROUP_NTS_RV: "Returns a NOT_SET Emergency Group.", AR_FN_EMERGRP_FINDEMERGENCYGROUP_NTS_PRM_DSC_0: "The value NOT_SET.", AR_FN_EMERGRP_FINDEMERGENCYGROUP_NTS_EX_OUT_0: "A NOT_SET EmergencyGroup.", AR_FN_DSC_FINDGRAMMAR: "Searches for a grammar in the organization.", AR_FN_GRAMMAR_FINDGRAMMAR_STR_DSC: "Performs a search for a grammar and returns a Grammar value if found.", AR_FN_GRAMMAR_FINDGRAMMAR_STR_RV: "Returns the Grammar value for the grammar found in your organization if there was a unique match found, otherwise a NOT_SET Grammar.", AR_FN_GRAMMAR_FINDGRAMMAR_STR_PRM_DSC_0: "The grammar to look up in your organization. The search will be performed in a case insensitive manner.", AR_FN_GRAMMAR_FINDGRAMMAR_STR_EX_OUT_0: 'Returns the Grammar for the grammar named "Customer Account" if there is one grammar with that name, otherwise a NOT_SET Grammar.', AR_FN_GRAMMAR_FINDGRAMMAR_STR_EX_OUT_1: "A NOT_SET Grammar.", AR_FN_GRAMMAR_FINDGRAMMAR_NTS_DSC: "Returns a NOT_SET Grammar for a NOT_SET input value.", AR_FN_GRAMMAR_FINDGRAMMAR_NTS_RV: "Returns a NOT_SET Grammar.", AR_FN_GRAMMAR_FINDGRAMMAR_NTS_PRM_DSC_0: "The value NOT_SET.", AR_FN_GRAMMAR_FINDGRAMMAR_NTS_EX_OUT_0: "A NOT_SET Grammar.", AR_FN_DSC_FINDGRAMMARBYID: "Looks up a grammar in the organization by ID.", AR_FN_GRAMMAR_FINDGRAMMARBYID_STR_DSC: "Looks up a grammar from a grammar ID and returns a Grammar value if found.", AR_FN_GRAMMAR_FINDGRAMMARBYID_STR_RV: "Returns the Grammar value if the lookup was successful, otherwise a NOT_SET Grammar.", AR_FN_GRAMMAR_FINDGRAMMARBYID_STR_PRM_DSC_0: "The grammar ID to find. The ID will be matched in a case insensitive manner.", AR_FN_GRAMMAR_FINDGRAMMARBYID_STR_EX_OUT_0: 'Returns the Grammar with the ID "5b943b5F-4205-b70F-8be1-a245a94b2919" if it exists, otherwise a NOT_SET Grammar.', AR_FN_GRAMMAR_FINDGRAMMARBYID_NTS_DSC: "Returns a NOT_SET Grammar for a NOT_SET input value.", AR_FN_GRAMMAR_FINDGRAMMARBYID_NTS_RV: "Returns a NOT_SET Grammar.", AR_FN_GRAMMAR_FINDGRAMMARBYID_NTS_PRM_DSC_0: "The value NOT_SET.", AR_FN_GRAMMAR_FINDGRAMMARBYID_NTS_EX_OUT_0: "A NOT_SET Grammar.", AR_FN_DSC_FINDGROUP: "Searches for a group in the organization.", AR_FN_GRP_FINDGROUP_STR_DSC: "Performs a search for a group and returns a Group value if found.", AR_FN_GRP_FINDGROUP_STR_RV: "Returns the Group value for the group found in your organization if there was a unique match found, otherwise a NOT_SET Group.", AR_FN_GRP_FINDGROUP_STR_PRM_DSC_0: "The group to look up in your organization. The search will be performed in a case insensitive manner.", AR_FN_GRP_FINDGROUP_STR_EX_OUT_0: 'Returns the Group for the group named "Warranty Specialists" if there is one group with that name, otherwise a NOT_SET Group.', AR_FN_GRP_FINDGROUP_STR_EX_OUT_1: "A NOT_SET Group.", AR_FN_GRP_FINDGROUP_NTS_DSC: "Returns a NOT_SET Group for a NOT_SET input value.", AR_FN_GRP_FINDGROUP_NTS_RV: "Returns a NOT_SET Group.", AR_FN_GRP_FINDGROUP_NTS_PRM_DSC_0: "The value NOT_SET.", AR_FN_GRP_FINDGROUP_NTS_EX_OUT_0: "A NOT_SET Group.", AR_FN_DSC_FINDIMAGE: "Searches for an image in canned response assets in the organization.", AR_FN_IMAGE_FINDIMAGE_STR_DSC: "Performs a search for an image in canned response assets and returns an Image value if found.", AR_FN_IMAGE_FINDIMAGE_STR_RV: "Returns the Image value for the image found in your organization if there was a unique match found, otherwise a NOT_SET Image.", AR_FN_IMAGE_FINDIMAGE_STR_PRM_DSC_0: "The image name to look up in your organization. The search will be performed in a case insensitive manner.", AR_FN_IMAGE_FINDIMAGE_STR_EX_OUT_0: 'Returns the Image for the image named "ArchitectLogo" if there is one image with that name, otherwise a NOT_SET Image.', AR_FN_IMAGE_FINDIMAGE_STR_EX_OUT_1: "A NOT_SET Image.", AR_FN_IMAGE_FINDIMAGE_NTS_DSC: "Returns a NOT_SET Image for a NOT_SET input value.", AR_FN_IMAGE_FINDIMAGE_NTS_RV: "Returns a NOT_SET Image.", AR_FN_IMAGE_FINDIMAGE_NTS_PRM_DSC_0: "The value NOT_SET.", AR_FN_IMAGE_FINDIMAGE_NTS_EX_OUT_0: "A NOT_SET Image.", AR_FN_DSC_FINDIMAGEBYID: "Looks up an image in canned response assets in the organization by ID.", AR_FN_IMAGE_FINDIMAGEBYID_STR_DSC: "Looks up an image from an image ID.", AR_FN_IMAGE_FINDIMAGEBYID_STR_RV: "Returns the Image value if the lookup was successful, otherwise a NOT_SET Image.", AR_FN_IMAGE_FINDIMAGEBYID_STR_PRM_DSC_0: "The image ID to find. The ID will be matched in a case insensitive manner.", AR_FN_IMAGE_FINDIMAGEBYID_STR_EX_OUT_0: 'Returns the Image with the ID "32952010-9ac2-469f-a2d8-85123e03763b" if it exists, otherwise a NOT_SET Image.', AR_FN_IMAGE_FINDIMAGEBYID_NTS_DSC: "Returns a NOT_SET Image for a NOT_SET input value.", AR_FN_IMAGE_FINDIMAGEBYID_NTS_RV: "Returns a NOT_SET Image.", AR_FN_IMAGE_FINDIMAGEBYID_NTS_PRM_DSC_0: "The value NOT_SET.", AR_FN_IMAGE_FINDIMAGEBYID_NTS_EX_OUT_0: "A NOT_SET Image.", AR_FN_DSC_FINDKNOWLEDGEBASEDOCUMENTBYID: "Looks up a knowledgebase document in the organization by ID.", AR_FN_KNOWLEDGEBASEDOCUMENT_FINDKNOWLEDGEBASEDOCUMENTBYID_STR_DSC: "Looks up a knowledgebase document from a knowledgebase document ID and returns a KnowledgeBaseDocument value if found.", AR_FN_KNOWLEDGEBASEDOCUMENT_FINDKNOWLEDGEBASEDOCUMENTBYID_STR_RV: "Returns the KnowledgeBaseDocument value if the lookup was successful, otherwise a NOT_SET KnowledgeBaseDocument.", AR_FN_KNOWLEDGEBASEDOCUMENT_FINDKNOWLEDGEBASEDOCUMENTBYID_STR_PRM_DSC_0: "The knowledgebase document ID to find. The ID will be matched in a case insensitive manner.", AR_FN_KNOWLEDGEBASEDOCUMENT_FINDKNOWLEDGEBASEDOCUMENTBYID_STR_EX_OUT_0: 'Returns the KnowledgeBaseDocument with the ID "5b943b5F-4205-b70F-8be1-a245a94b2919" if it exists, otherwise a NOT_SET KnowledgeBaseDocument.', AR_FN_KNOWLEDGEBASEDOCUMENT_FINDKNOWLEDGEBASEDOCUMENTBYID_NTS_DSC: "Returns a NOT_SET KnowledgeBaseDocument for a NOT_SET input value.", AR_FN_KNOWLEDGEBASEDOCUMENT_FINDKNOWLEDGEBASEDOCUMENTBYID_NTS_RV: "Returns a NOT_SET KnowledgeBaseDocument.", AR_FN_KNOWLEDGEBASEDOCUMENT_FINDKNOWLEDGEBASEDOCUMENTBYID_NTS_PRM_DSC_0: "The value NOT_SET.", AR_FN_KNOWLEDGEBASEDOCUMENT_FINDKNOWLEDGEBASEDOCUMENTBYID_NTS_EX_OUT_0: "A NOT_SET KnowledgeBaseDocument.", AR_FN_DSC_FINDUTILIZATIONLABEL: "Searches for a Utilization Label in the organization.", AR_FN_UTILIZATIONLABEL_FINDUTILIZATIONLABEL_STR_DSC: "Performs a search for a Utilization Label and returns a UtilizationLabel value if found.", AR_FN_UTILIZATIONLABEL_FINDUTILIZATIONLABEL_STR_RV: "Returns the value of a UtilizationLabel if a unique match was found in your organization, otherwise returns a UtilizationLabel with value of NOT_SET.", AR_FN_UTILIZATIONLABEL_FINDUTILIZATIONLABEL_STR_PRM_DSC_0: "The Utilization Label to look up in your organization. The search will be performed in a case insensitive manner.", AR_FN_UTILIZATIONLABEL_FINDUTILIZATIONLABEL_STR_EX_OUT_0: 'Returns the value of a UtilizationLabel named "Green" if a unique match was found in your organization, otherwise returns a UtilizationLabel with value of NOT_SET.', AR_FN_UTILIZATIONLABEL_FINDUTILIZATIONLABEL_STR_EX_OUT_1: "A NOT_SET UtilizationLabel.", AR_FN_UTILIZATIONLABEL_FINDUTILIZATIONLABEL_NTS_DSC: "Returns a NOT_SET UtilizationLabel for a NOT_SET input value.", AR_FN_UTILIZATIONLABEL_FINDUTILIZATIONLABEL_NTS_RV: "Returns a NOT_SET UtilizationLabel.", AR_FN_UTILIZATIONLABEL_FINDUTILIZATIONLABEL_NTS_PRM_DSC_0: "The value NOT_SET.", AR_FN_UTILIZATIONLABEL_FINDUTILIZATIONLABEL_NTS_EX_OUT_0: "A NOT_SET UtilizationLabel.", AR_FN_DSC_FINDUTILIZATIONLABELBYID: "Searches for a Utilization Label in the organization by ID.", AR_FN_UTILIZATIONLABEL_FINDUTILIZATIONLABELBYID_STR_DSC: "Looks up a Utilization Label by ID and returns a UtilizationLabel value if found.", AR_FN_UTILIZATIONLABEL_FINDUTILIZATIONLABELBYID_STR_RV: "Returns the value of a UtilizationLabel if a unique match was found in your organization, otherwise returns a UtilizationLabel with value of NOT_SET.", AR_FN_UTILIZATIONLABEL_FINDUTILIZATIONLABELBYID_STR_PRM_DSC_0: "The Utilization Label ID to look up in your organization. The ID will be matched in a case insensitive manner.", AR_FN_UTILIZATIONLABEL_FINDUTILIZATIONLABELBYID_NTS_DSC: "Returns a NOT_SET UtilizationLabel for a NOT_SET input value.", AR_FN_UTILIZATIONLABEL_FINDUTILIZATIONLABELBYID_NTS_RV: "Returns a NOT_SET UtilizationLabel.", AR_FN_UTILIZATIONLABEL_FINDUTILIZATIONLABELBYID_NTS_PRM_DSC_0: "The value NOT_SET.", AR_FN_UTILIZATIONLABEL_FINDUTILIZATIONLABELBYID_NTS_EX_OUT_0: "A NOT_SET UtilizationLabel.", AR_FN_DSC_FINDQUEUE: "Searches for a queue in the organization.", AR_FN_QUEUE_FINDQUEUE_STR_DSC: "Performs a search for a queue and returns a Queue value if found.", AR_FN_QUEUE_FINDQUEUE_STR_RV: "Returns the Queue value for the queue found in your organization if there was a unique match found, otherwise a NOT_SET Queue.", AR_FN_QUEUE_FINDQUEUE_STR_PRM_DSC_0: "The queue to look up in your organization. The search will be performed in a case insensitive manner.", AR_FN_QUEUE_FINDQUEUE_STR_EX_OUT_0: 'Returns the Queue for the queue named "Marketing" if there is one queue with that name, otherwise a NOT_SET Queue.', AR_FN_QUEUE_FINDQUEUE_STR_EX_OUT_1: "A NOT_SET Queue.", AR_FN_QUEUE_FINDQUEUE_NTS_DSC: "Returns a NOT_SET Queue for a NOT_SET input value.", AR_FN_QUEUE_FINDQUEUE_NTS_RV: "Returns a NOT_SET Queue.", AR_FN_QUEUE_FINDQUEUE_NTS_PRM_DSC_0: "The value NOT_SET.", AR_FN_QUEUE_FINDQUEUE_NTS_EX_OUT_0: "A NOT_SET Queue.", AR_FN_DSC_FINDQUEUEBYID: "Looks up a queue in the organization by ID.", AR_FN_QUEUE_FINDQUEUEBYID_STR_DSC: "Looks up a queue from a queue ID.", AR_FN_QUEUE_FINDQUEUEBYID_STR_RV: "Returns the Queue value if the lookup was successful, otherwise a NOT_SET Queue.", AR_FN_QUEUE_FINDQUEUEBYID_STR_PRM_DSC_0: "The queue ID to find. The ID will be matched in a case insensitive manner.", AR_FN_QUEUE_FINDQUEUEBYID_STR_EX_OUT_0: 'Returns the Queue with the ID "5b943b5F-4205-b70F-8be1-a245a94b2919" if it exists, otherwise a NOT_SET Queue.', AR_FN_QUEUE_FINDQUEUEBYID_NTS_DSC: "Returns a NOT_SET Queue for a NOT_SET input value.", AR_FN_QUEUE_FINDQUEUEBYID_NTS_RV: "Returns a NOT_SET Queue.", AR_FN_QUEUE_FINDQUEUEBYID_NTS_PRM_DSC_0: "The value NOT_SET.", AR_FN_QUEUE_FINDQUEUEBYID_NTS_EX_OUT_0: "A NOT_SET Queue.", AR_FN_DSC_FINDWORKTYPESTATUS: "Searches for a Worktype Status of the worktype associated with this flow by name.", AR_FN_WORKTYPESTATUS_FINDWORKTYPESTATUS_STR_DSC: "Searches for a Worktype Status by its name case insensitively and returns a Worktype Status value if found.", AR_FN_WORKTYPESTATUS_FINDWORKTYPESTATUS_STR_RV: "Returns the Worktype Status value if a unique match was found on the worktype, otherwise returns a NOT_SET Worktype Status value.", AR_FN_WORKTYPESTATUS_FINDWORKTYPESTATUS_STR_PRM_DSC_0: "The Worktype Status name to look up on the worktype configured for this flow. The search will be performed in a case insensitive manner.", AR_FN_WORKTYPESTATUS_FINDWORKTYPESTATUS_STR_EX_OUT_0: 'Returns the value of a Worktype Status named "NewOpportunity" if a unique match was found in the statuses configured on the worktype, otherwise returns a Worktype Status with value of NOT_SET.', AR_FN_WORKTYPESTATUS_FINDWORKTYPESTATUS_NTS_DSC: "Returns a NOT_SET Worktype Status for a NOT_SET input value.", AR_FN_WORKTYPESTATUS_FINDWORKTYPESTATUS_NTS_RV: "Returns a NOT_SET Worktype Status.", AR_FN_WORKTYPESTATUS_FINDWORKTYPESTATUS_NTS_PRM_DSC_0: "The value NOT_SET.", AR_FN_WORKTYPESTATUS_FINDWORKTYPESTATUS_NTS_EX_OUT_0: "A NOT_SET Worktype Status.", AR_FN_DSC_FINDWORKTYPESTATUSBYID: "Searches for a Worktype Status of the worktype associated with this flow by ID.", AR_FN_WORKTYPESTATUS_FINDWORKTYPESTATUSBYID_STR_DSC: "Searches for a Worktype Status by its ID and returns a Worktype Status value if found.", AR_FN_WORKTYPESTATUS_FINDWORKTYPESTATUSBYID_STR_RV: "Returns the value of a Worktype Status if a unique match was found in your organization, otherwise returns a Worktype Status with value of NOT_SET.", AR_FN_WORKTYPESTATUS_FINDWORKTYPESTATUSBYID_STR_PRM_DSC_0: "The Worktype Status ID to look up in your organization. The ID will be matched in a case insensitive manner.", AR_FN_WORKTYPESTATUS_FINDWORKTYPESTATUSBYID_STR_EX_OUT_0: 'Returns the Worktype Status with the ID "8dd32bf3-5f81-4601-9db7-fbce97b09441" if it exists, otherwise a NOT_SET Worktype Status.', AR_FN_WORKTYPESTATUS_FINDWORKTYPESTATUSBYID_NTS_DSC: "Returns a NOT_SET Worktype Status for a NOT_SET input value.", AR_FN_WORKTYPESTATUS_FINDWORKTYPESTATUSBYID_NTS_RV: "Returns a NOT_SET Worktype Status.", AR_FN_WORKTYPESTATUS_FINDWORKTYPESTATUSBYID_NTS_PRM_DSC_0: "The value NOT_SET.", AR_FN_WORKTYPESTATUS_FINDWORKTYPESTATUSBYID_NTS_EX_OUT_0: "A NOT_SET Worktype Status.", AR_FN_DSC_FINDQUEUEESTIMATEDWAITTIME: "Searches for a queue in the organization and returns estimated wait time information for it.", AR_FN_DUR_FINDQUEUEESTIMATEDWAITTIME_STR_DSC: "Searches for a unique queue in the organization by name and if found returns estimated wait time for the current flow's conversation media type.", AR_FN_DUR_FINDQUEUEESTIMATEDWAITTIME_STR_RV: "Returns the estimated wait time as a Duration value for the current conversation type on the looked up queue if there was a unique match for the supplied queue name and the estimated wait time could be determined, otherwise a NOT_SET Duration.", AR_FN_DUR_FINDQUEUEESTIMATEDWAITTIME_STR_PRM_DSC_0: "The queue name to look up in your organization by name. The search will be performed in a case insensitive manner. If a NOT_SET String is supplied, a NOT_SET Duration will be returned.", AR_FN_DUR_FINDQUEUEESTIMATEDWAITTIME_STR_EX_OUT_0: 'Returns the estimated wait time for the current conversation on queue named "Marketing" if there is one queue with that name and the estimated wait time could be queried, otherwise a NOT_SET Duration.', AR_FN_DUR_FINDQUEUEESTIMATEDWAITTIME_STR_EX_OUT_1: "A NOT_SET Duration.", AR_FN_DUR_FINDQUEUEESTIMATEDWAITTIME_STR_STR_DSC: "Searches for a unique queue in the organization by name and if found this gets the estimated wait time for a given media type.", AR_FN_DUR_FINDQUEUEESTIMATEDWAITTIME_STR_STR_RV: "Returns the estimated wait time as a Duration value for a media type on the supplied Queue value if the queue was found and estimated wait time could be determined, otherwise a NOT_SET Duration.", AR_FN_DUR_FINDQUEUEESTIMATEDWAITTIME_STR_STR_PRM_DSC_0: "The queue name to look up in your organization. The search will be performed in a case insensitive manner. If a NOT_SET String is supplied, a NOT_SET Duration will be returned.", AR_FN_DUR_FINDQUEUEESTIMATEDWAITTIME_STR_STR_PRM_DSC_1: 'The media type to query. Allowable values are "call", "chat", "callback", "email", "videoComm" and "message". The media type String value is processed case insensitively at runtime. If a NOT_SET String is supplied for the media type or the supplied media type value is not available for the organization, a NOT_SET Duration is returned.', AR_FN_DUR_FINDQUEUEESTIMATEDWAITTIME_STR_STR_EX_OUT_0: 'Returns the estimated wait time for the current conversation on queue named "Marketing" if there is one queue with that name and the estimated wait time could be successfully queried for the "call" media type, otherwise a NOT_SET Duration.', AR_FN_DUR_FINDQUEUEESTIMATEDWAITTIME_STR_STR_EX_OUT_1: "A NOT_SET Duration.", AR_FN_DUR_FINDQUEUEESTIMATEDWAITTIME_STR_STR_EX_OUT_2: "A NOT_SET Duration.", AR_FN_DUR_COLL_FINDQUEUEESTIMATEDWAITTIME_STR_STR_COLL_DSC: "Finds the estimated wait time for the supplied media types for a queue.", AR_FN_DUR_COLL_FINDQUEUEESTIMATEDWAITTIME_STR_STR_COLL_RV: "Returns an ordered Duration collection whose items correspond to the lookup results of each media type in the input String collection. For media types whose estimated wait time could not be determined, they will be NOT_SET Duration values in the returned collection.", AR_FN_DUR_COLL_FINDQUEUEESTIMATEDWAITTIME_STR_STR_COLL_PRM_DSC_0: "The queue name to look up in your organization. The search will be performed in a case insensitive manner. If a NOT_SET or blank String is supplied, a NOT_SET Duration will be returned for each item in the returned collection.", AR_FN_DUR_COLL_FINDQUEUEESTIMATEDWAITTIME_STR_STR_COLL_PRM_DSC_1: 'The media types to query. Allowable String values in the String collection are "call", "chat", "callback", "email", "videoComm" and "message". Media type String values are treated case insensitively at runtime. If a NOT_SET String is supplied for an item in the String collection or the estimated wait time for the media type cannot be determined, a NOT_SET Duration is returned for that item in the returned collection.', AR_FN_DUR_COLL_FINDQUEUEESTIMATEDWAITTIME_STR_STR_COLL_EX_OUT_0: 'A Duration collection with one item. The Duration item will be the estimated wait time for the "call" media type if the queue could be found.', AR_FN_DUR_COLL_FINDQUEUEESTIMATEDWAITTIME_STR_STR_COLL_EX_OUT_1: "A Duration collection with one item. The Duration item value is a NOT_SET Duration.", AR_FN_DUR_COLL_FINDQUEUEESTIMATEDWAITTIME_STR_STR_COLL_EX_OUT_2: "A Duration collection with one item. The Duration item value is a NOT_SET Duration.", AR_FN_DSC_GETQUEUEESTIMATEDWAITTIME: "Gets estimated wait time information for a queue.", AR_FN_DUR_GETQUEUEESTIMATEDWAITTIME_QUEUE_DSC: "Gets the estimated wait time for the current flow's conversation media type for the supplied queue.", AR_FN_DUR_GETQUEUEESTIMATEDWAITTIME_QUEUE_RV: "Returns the estimated wait time as a Duration value for the current conversation media type on the supplied Queue value if the estimated wait time could be determined, otherwise a NOT_SET Duration.", AR_FN_DUR_GETQUEUEESTIMATEDWAITTIME_QUEUE_PRM_DSC_0: "The Queue whose estimated wait time you want to query for the current conversation media type. If a NOT_SET Queue is supplied, a NOT_SET Duration will be returned.", AR_FN_DUR_GETQUEUEESTIMATEDWAITTIME_QUEUE_EX_OUT_0: 'Returns the estimated wait time for the current conversation type on queue named "Marketing" if there is one queue with that name and the estimated wait time could be successfully determined, otherwise a NOT_SET Duration.', AR_FN_DUR_GETQUEUEESTIMATEDWAITTIME_QUEUE_EX_OUT_1: "A NOT_SET Duration.", AR_FN_DUR_GETQUEUEESTIMATEDWAITTIME_QUEUE_STR_DSC: "Gets the estimated wait time for a media type on a queue.", AR_FN_DUR_GETQUEUEESTIMATEDWAITTIME_QUEUE_STR_RV: "Returns the estimated wait time as a Duration value for a media type on the supplied Queue value if the estimated wait time can be determined, otherwise a NOT_SET Duration.", AR_FN_DUR_GETQUEUEESTIMATEDWAITTIME_QUEUE_STR_PRM_DSC_0: "The Queue whose estimated wait time you want to query. If a NOT_SET Queue is supplied, a NOT_SET Duration will be returned.", AR_FN_DUR_GETQUEUEESTIMATEDWAITTIME_QUEUE_STR_PRM_DSC_1: 'The media type to query. Allowable values are "call", "chat", "callback", "email", "videoComm" and "message". The media type String value is processed case insensitively at runtime. If a NOT_SET String is supplied for the media type or the supplied media type value is not available for the organization, a NOT_SET Duration is returned.', AR_FN_DUR_GETQUEUEESTIMATEDWAITTIME_QUEUE_STR_EX_OUT_0: 'Returns the estimated wait time for the current conversation on queue named "Marketing" if there is one queue with that name and the estimated wait time could be successfully queried for the "call" media type, otherwise a NOT_SET Duration.', AR_FN_DUR_GETQUEUEESTIMATEDWAITTIME_QUEUE_STR_EX_OUT_1: "A NOT_SET Duration.", AR_FN_DUR_GETQUEUEESTIMATEDWAITTIME_QUEUE_STR_EX_OUT_2: "A NOT_SET Duration.", AR_FN_DUR_COLL_GETQUEUEESTIMATEDWAITTIME_QUEUE_STR_COLL_DSC: "Gets the estimated wait time for multiple media types on a queue.", AR_FN_DUR_COLL_GETQUEUEESTIMATEDWAITTIME_QUEUE_STR_COLL_RV: "Returns an ordered Duration collection whose items correspond to the lookup results of each media type estimated wait time in the input String collection. For media types whose estimated wait time could not be determined or are not availble for the organization, they will be NOT_SET Duration values in the returned collection.", AR_FN_DUR_COLL_GETQUEUEESTIMATEDWAITTIME_QUEUE_STR_COLL_PRM_DSC_0: "The Queue whose estimated wait time you want to query for the current conversation. If a NOT_SET Queue is supplied, a NOT_SET Duration will be returned for each item in the returned collection.", AR_FN_DUR_COLL_GETQUEUEESTIMATEDWAITTIME_QUEUE_STR_COLL_PRM_DSC_1: 'The media types to query. Allowable String values in the String collection are "call", "chat", "callback", "email", "videoComm" and "message". Media type String values are processed case insensitively at runtime. If a NOT_SET String is supplied for an item in the String collection or the estimated wait time for the media type cannot be determined, a NOT_SET Duration is returned for that item in the returned collection.', AR_FN_DUR_COLL_GETQUEUEESTIMATEDWAITTIME_QUEUE_STR_COLL_EX_OUT_0: 'A Duration collection with one item. The Duration item will be the estimated wait time for the "call" media type if the queue could be found.', AR_FN_DUR_COLL_GETQUEUEESTIMATEDWAITTIME_QUEUE_STR_COLL_EX_OUT_1: "A Duration collection with one item. The Duration item value is a NOT_SET Duration.", AR_FN_DUR_COLL_GETQUEUEESTIMATEDWAITTIME_QUEUE_STR_COLL_EX_OUT_2: "A Duration collection with one item. The Duration item value is a NOT_SET Duration.", AR_FN_DSC_FINDRESPONSEASSET: "Searches for a response asset in canned response assets in the organization.", AR_FN_RESPONSEASSET_FINDRESPONSEASSET_STR_DSC: "Performs a search for a response asset in canned response assets and returns an Response Asset value if found.", AR_FN_RESPONSEASSET_FINDRESPONSEASSET_STR_RV: "Returns the Response Asset value for the response asset found in your organization if there was a unique match found, otherwise a NOT_SET Response Asset.", AR_FN_RESPONSEASSET_FINDRESPONSEASSET_STR_PRM_DSC_0: "The response asset name to look up in your organization. The search will be performed in a case insensitive manner.", AR_FN_RESPONSEASSET_FINDRESPONSEASSET_STR_EX_OUT_0: 'Returns the Response Asset for the response asset named "ArchitectAsset" if there is one response asset with that name, otherwise a NOT_SET Response Asset.', AR_FN_RESPONSEASSET_FINDRESPONSEASSET_STR_EX_OUT_1: "A NOT_SET Response Asset.", AR_FN_RESPONSEASSET_FINDRESPONSEASSET_NTS_DSC: "Returns a NOT_SET Response Asset for a NOT_SET input value.", AR_FN_RESPONSEASSET_FINDRESPONSEASSET_NTS_RV: "Returns a NOT_SET Response Asset.", AR_FN_RESPONSEASSET_FINDRESPONSEASSET_NTS_PRM_DSC_0: "The value NOT_SET.", AR_FN_RESPONSEASSET_FINDRESPONSEASSET_NTS_EX_OUT_0: "A NOT_SET Response Asset.", AR_FN_DSC_FINDRESPONSEASSETBYID: "Looks up a response asset in canned response assets in the organization by ID.", AR_FN_RESPONSEASSET_FINDRESPONSEASSETBYID_STR_DSC: "Looks up a response asset from a response asset ID.", AR_FN_RESPONSEASSET_FINDRESPONSEASSETBYID_STR_RV: "Returns the Response Asset value if the lookup was successful, otherwise a NOT_SET Response Asset.", AR_FN_RESPONSEASSET_FINDRESPONSEASSETBYID_STR_PRM_DSC_0: "The response asset ID to find. The ID will be matched in a case insensitive manner.", AR_FN_RESPONSEASSET_FINDRESPONSEASSETBYID_STR_EX_OUT_0: 'Returns the Response Asset with the ID "0bfba8bc-37cd-4fa2-b986-86fa0523aeec" if it exists, otherwise a NOT_SET Response Asset.', AR_FN_RESPONSEASSET_FINDRESPONSEASSETBYID_NTS_DSC: "Returns a NOT_SET Response Asset for a NOT_SET input value.", AR_FN_RESPONSEASSET_FINDRESPONSEASSETBYID_NTS_RV: "Returns a NOT_SET Response Asset.", AR_FN_RESPONSEASSET_FINDRESPONSEASSETBYID_NTS_PRM_DSC_0: "The value NOT_SET.", AR_FN_RESPONSEASSET_FINDRESPONSEASSETBYID_NTS_EX_OUT_0: "A NOT_SET Response Asset.", AR_FN_DSC_FINDSCHEDULE: "Searches for a schedule in the organization.", AR_FN_SCHED_FINDSCHEDULE_STR_DSC: "Performs a case insensitive search for a uniquely named Schedule and returns the Schedule value if found.", AR_FN_SCHED_FINDSCHEDULE_STR_RV: "Returns the Schedule found in your organization if there was a unique match found, otherwise a NOT_SET Schedule.", AR_FN_SCHED_FINDSCHEDULE_STR_PRM_DSC_0: "The Schedule name to look up in the organization. The search will be performed case insensitively.", AR_FN_SCHED_FINDSCHEDULE_STR_EX_OUT_0: 'Returns the Schedule for the Schedule named "OpenHours" if there is one Schedule with that name case insensitively, otherwise a NOT_SET Schedule.', AR_FN_SCHED_FINDSCHEDULE_STR_EX_OUT_1: "A NOT_SET Schedule.", AR_FN_SCHED_FINDSCHEDULE_NTS_DSC: "Returns a NOT_SET Schedule for a NOT_SET input value.", AR_FN_SCHED_FINDSCHEDULE_NTS_RV: "Returns a NOT_SET Schedule.", AR_FN_SCHED_FINDSCHEDULE_NTS_PRM_DSC_0: "The value NOT_SET.", AR_FN_SCHED_FINDSCHEDULE_NTS_EX_OUT_0: "A NOT_SET Schedule.", AR_FN_DSC_FINDSCHEDULEGROUP: "Searches for a scheduleGroup in the organization.", AR_FN_SCHEDGRP_FINDSCHEDULEGROUP_STR_DSC: "Performs a case insensitive search for a uniquely named Schedule Group and returns the Schedule Group value if found.", AR_FN_SCHEDGRP_FINDSCHEDULEGROUP_STR_RV: "Returns the Schedule Group found in your organization if there was a unique match found, otherwise a NOT_SET Schedule Group.", AR_FN_SCHEDGRP_FINDSCHEDULEGROUP_STR_PRM_DSC_0: "The Schedule Group name to look up in the organization. The search will be performed case insensitively.", AR_FN_SCHEDGRP_FINDSCHEDULEGROUP_STR_EX_OUT_0: 'Returns the Schedule Group for the Schedule Group named "OpenHoursEastCoast" if there is one Schedule Group with that name case insensitively, otherwise a NOT_SET Schedule Group.', AR_FN_SCHEDGRP_FINDSCHEDULEGROUP_STR_EX_OUT_1: "A NOT_SET Schedule Group.", AR_FN_SCHEDGRP_FINDSCHEDULEGROUP_NTS_DSC: "Returns a NOT_SET Schedule Group for a NOT_SET input value.", AR_FN_SCHEDGRP_FINDSCHEDULEGROUP_NTS_RV: "Returns a NOT_SET Schedule Group.", AR_FN_SCHEDGRP_FINDSCHEDULEGROUP_NTS_PRM_DSC_0: "The value NOT_SET.", AR_FN_SCHEDGRP_FINDSCHEDULEGROUP_NTS_EX_OUT_0: "A NOT_SET ScheduleGroup.", AR_FN_DSC_FINDSKILL: "Searches for a skill in the organization.", AR_FN_SKL_FINDSKILL_STR_DSC: "Performs a search for an ACD Skill in the Skills category and returns a Skill value if found.", AR_FN_SKL_FINDSKILL_STR_RV: "Returns the Skill value for the ACD Skill found in your organization if there was a unique match found, otherwise a NOT_SET Skill.", AR_FN_SKL_FINDSKILL_STR_PRM_DSC_0: "The skill to look up in your organization. This will perform a search for an ACD Skill in the Skills category. The search will be performed in a case insensitive manner.", AR_FN_SKL_FINDSKILL_STR_EX_OUT_0: 'Returns the Skill for the ACD Skill named "JavaScript" from the Skills category if there is one skill with that name, otherwise a NOT_SET Skill.', AR_FN_SKL_FINDSKILL_STR_EX_OUT_1: "A NOT_SET Skill.", AR_FN_SKL_FINDSKILL_NTS_DSC: "Returns a NOT_SET Skill for a NOT_SET input value.", AR_FN_SKL_FINDSKILL_NTS_RV: "Returns a NOT_SET Skill.", AR_FN_SKL_FINDSKILL_NTS_PRM_DSC_0: "The value NOT_SET.", AR_FN_SKL_FINDSKILL_NTS_EX_OUT_0: "A NOT_SET Skill.", AR_FN_DSC_EVALUATESKILLEXPRESSIONFILTER: "Evaluates skill expression filter text and returns a SkillExpressionFilter.", AR_FN_SKILLEXPRESSIONFILTER_EVALUATESKILLEXPRESSIONFILTER_STR_BLN_DSC: "Evaluates the supplied skill expression filter text and returns a SkillExpressionFilter. If notSetIfInvalid is true and the filter is invalid, returns a NOT_SET SkillExpressionFilter.", AR_FN_SKILLEXPRESSIONFILTER_EVALUATESKILLEXPRESSIONFILTER_STR_BLN_RV: "Returns a SkillExpressionFilter object containing the evaluation results. If notSetIfInvalid is true and the filter is invalid, returns a NOT_SET SkillExpressionFilter.", AR_FN_SKILLEXPRESSIONFILTER_EVALUATESKILLEXPRESSIONFILTER_STR_BLN_PRM_DSC_0: "The skill expression filter text to evaluate. Must be between 1 and 1024 characters.", AR_FN_SKILLEXPRESSIONFILTER_EVALUATESKILLEXPRESSIONFILTER_STR_BLN_PRM_DSC_1: "If true and the filter is invalid, returns a NOT_SET SkillExpressionFilter. If false or not provided, returns a SkillExpressionFilter with error information.", AR_FN_SKILLEXPRESSIONFILTER_EVALUATESKILLEXPRESSIONFILTER_STR_BLN_EX_OUT_0: "Returns a SkillExpressionFilter with normalized filter and referenced ACD Skills.", AR_FN_SKILLEXPRESSIONFILTER_EVALUATESKILLEXPRESSIONFILTER_STR_BLN_EX_OUT_1: "Returns a NOT_SET SkillExpressionFilter because the filter is invalid and notSetIfInvalid is true.", AR_FN_SKILLEXPRESSIONFILTER_EVALUATESKILLEXPRESSIONFILTER_STR_DSC: "Evaluates the supplied skill expression filter text and returns a SkillExpressionFilter.", AR_FN_SKILLEXPRESSIONFILTER_EVALUATESKILLEXPRESSIONFILTER_STR_RV: "Returns a SkillExpressionFilter object containing the evaluation results, including error information if the filter is invalid.", AR_FN_SKILLEXPRESSIONFILTER_EVALUATESKILLEXPRESSIONFILTER_STR_PRM_DSC_0: "The skill expression filter text to evaluate. Must be between 1 and 1024 characters.", AR_FN_SKILLEXPRESSIONFILTER_EVALUATESKILLEXPRESSIONFILTER_STR_EX_OUT_0: "Returns a SkillExpressionFilter with normalized filter and referenced ACD Skills.", AR_FN_SKILLEXPRESSIONFILTER_EVALUATESKILLEXPRESSIONFILTER_STR_EX_OUT_1: "Returns a SkillExpressionFilter with error information in the errors property.", AR_FN_DSC_FINDLANGUAGESKILL: "Searches for a language skill in the organization.", AR_FN_LANGUAGESKILL_FINDLANGUAGESKILL_STR_DSC: "Performs a search for an ACD Skill in the Languages category and returns a Language Skill value if found.", AR_FN_LANGUAGESKILL_FINDLANGUAGESKILL_STR_RV: "Returns the Language Skill value for the ACD Skill in the Languages category found in your organization if there was a unique match found, otherwise a NOT_SET Language Skill.", AR_FN_LANGUAGESKILL_FINDLANGUAGESKILL_STR_PRM_DSC_0: "The language skill to look up in your organization. This will perform a search for an ACD Skill in the Languages category. The search will be performed in a case insensitive manner.", AR_FN_LANGUAGESKILL_FINDLANGUAGESKILL_STR_EX_OUT_0: 'Returns the Language Skill for the ACD Skill named "Spanish - Written" from the Languages category if there is one skill with that name, otherwise a NOT_SET Language Skill.', AR_FN_LANGUAGESKILL_FINDLANGUAGESKILL_STR_EX_OUT_1: "A NOT_SET Language Skill.", AR_FN_LANGUAGESKILL_FINDLANGUAGESKILL_NTS_DSC: "Returns a NOT_SET value for a NOT_SET Language Skill.", AR_FN_LANGUAGESKILL_FINDLANGUAGESKILL_NTS_RV: "Returns a NOT_SET Language Skill.", AR_FN_LANGUAGESKILL_FINDLANGUAGESKILL_NTS_PRM_DSC_0: "The value NOT_SET.", AR_FN_LANGUAGESKILL_FINDLANGUAGESKILL_NTS_EX_OUT_0: "A NOT_SET Language Skill.", AR_FN_DSC_APPEND: "Creates a new string by appending two or more Strings together.", AR_FN_STR_APPEND_STR_STR_MORE_DSC: "Creates a new string by appending two or more Strings together.", AR_FN_STR_APPEND_STR_STR_MORE_RV: "Returns the concatenated string.", AR_FN_STR_APPEND_STR_STR_MORE_PRM_DSC_0: "The initial text. A NOT_SET String is treated as a blank string.", AR_FN_STR_APPEND_STR_STR_MORE_PRM_DSC_1: "The text to append to the initial text. A NOT_SET String is treated as a blank string.", AR_FN_AUDIO_APPENDAUDIO_ANY_ANY_MORE_DSC: "Creates Audio by appending two or more Audio or prompts together.", AR_FN_AUDIO_APPENDAUDIO_ANY_ANY_MORE_RV: "Returns the concatenated Audio.", AR_FN_AUDIO_APPENDAUDIO_ANY_ANY_MORE_PRM_DSC_0: "The initial text.", AR_FN_AUDIO_APPENDAUDIO_ANY_ANY_MORE_PRM_DSC_1: "The Audio or prompt to append.", AR_FN_AUDIO_APPENDAUDIO_ANY_ANY_MORE_EX_OUT_0: "An Audio object with the prompt Welcome followed by John.", AR_FN_COMMUNICATION_APPEND_COMMUNICATION_ANY_MORE_DSC: "Appends items to a Communication. This is a helper function that calls MakeCommunication with the supplied Communication value for the first parameter, followed by the rest of the parameter values.", AR_FN_COMMUNICATION_APPEND_COMMUNICATION_ANY_MORE_RV: "Returns the concatenated Communication.", AR_FN_COMMUNICATION_APPEND_COMMUNICATION_ANY_MORE_PRM_DSC_0: "The initial Communication.", AR_FN_COMMUNICATION_APPEND_COMMUNICATION_ANY_MORE_PRM_DSC_1: "The value to append to the initial Communication.", AR_FN_DSC_MAKECOMMUNICATION: "Creates a Communication by sequencing one or values together.", AR_FN_COMMUNICATION_MAKECOMMUNICATION_ANY_MORE_DSC: "Creates a Communication by concatenating two or more values together.", AR_FN_COMMUNICATION_MAKECOMMUNICATION_ANY_MORE_RV: "Returns the Communication object.", AR_FN_COMMUNICATION_MAKECOMMUNICATION_ANY_MORE_PRM_DSC_0: "An Any value.", AR_FN_DSC_LEFT: "Retrieves a substring of a specified length starting from the left-hand side of a supplied string.", AR_FN_STR_LEFT_STR_LNG_DSC: "Retrieves a substring of a specified length starting from the left-hand side of a supplied string.", AR_FN_STR_LEFT_STR_LNG_RV: "Returns the left portion of string supplied in srcString with the specified length. If the length of the string in the srcString parameter is less than the number of characters specified in the length parameter, the entire string in srcString is returned.", AR_FN_STR_LEFT_STR_LNG_PRM_DSC_0: "The source string.", AR_FN_STR_LEFT_STR_LNG_PRM_DSC_1: "The number of characters to return from the left portion of the string in the srcString parameter.", AR_FN_DSC_LENGTH: "Gets the number of characters in a string.", AR_FN_LNG_LENGTH_STR_DSC: "Calculates the number of characters in the supplied String value.", AR_FN_LNG_LENGTH_STR_RV: "Returns the number of characters in the String supplied in the text parameter.", AR_FN_LNG_LENGTH_STR_PRM_DSC_0: "The String to count the number of characters.", AR_FN_LNG_LENGTH_JSON_DSC: "Calculates the number of characters in the supplied JSON value that contains a string.", AR_FN_LNG_LENGTH_JSON_RV: "Returns the number of characters in the JSON string supplied in the text parameter.", AR_FN_LNG_LENGTH_JSON_PRM_DSC_0: "The JSON value that contains a string. If the supplied JSON value is not a string, this will invoke error handling. Remember the IsJsonString function can be used to check if a JSON value contains a string.", AR_FN_DSC_LOWER: "Converts a String to all lowercase characters.", AR_FN_STR_LOWER_STR_DSC: "Converts the supplied String value to a lowercase String in a culture invariant manner.", AR_FN_STR_LOWER_STR_RV: "Returns the input string in all lower case.", AR_FN_STR_LOWER_STR_PRM_DSC_0: "The string to lower case.", AR_FN_DSC_LTRIM: "Removes all whitespace from the left-hand side of the string and returns the resulting string. Whitespace characters are space, tab, carriage return and line feed.", AR_FN_STR_LTRIM_STR_DSC: "Removes all whitespace from the left-hand side of the supplied String value and returns the resulting string. Whitespace characters are space, tab, carriage return and line feed.", AR_FN_STR_LTRIM_STR_RV: "Returns a String with all whitespace removed from the left-hand side of the supplied String value. Whitespace characters are space, tab, carriage return and line feed.", AR_FN_STR_LTRIM_STR_PRM_DSC_0: "The String to left trim.", AR_FN_DSC_REPLACE: "Replaces all occurrences of specified text in a String with different text.", AR_FN_STR_REPLACE_STR_STR_STR_DSC: "Replaces all occurrences of a specified text in a String with different text.", AR_FN_STR_REPLACE_STR_STR_STR_RV: "Returns a string with the replaced values ( if any ).", AR_FN_STR_REPLACE_STR_STR_STR_PRM_DSC_0: "The String that is to be searched.", AR_FN_STR_REPLACE_STR_STR_STR_PRM_DSC_1: "The String that will be replaced. This is a case sensitive match.", AR_FN_STR_REPLACE_STR_STR_STR_PRM_DSC_2: "The String to replace the findString. A NOT_SET value is treated as a blank string.", AR_FN_DSC_REVERSE: "Returns a String in reverse order.", AR_FN_STR_REVERSE_STR_DSC: "Reverses the contents of the supplied String value.", AR_FN_STR_REVERSE_STR_RV: "Returns the String passed to the function in reverse order.", AR_FN_STR_REVERSE_STR_PRM_DSC_0: "The String to reverse.", AR_FN_DSC_RIGHT: "Retrieves a substring of a specified length from the right hand side of a string.", AR_FN_STR_RIGHT_STR_LNG_DSC: "Retrieves a substring of a specified length from the right hand side of a string.", AR_FN_STR_RIGHT_STR_LNG_RV: "Returns the right portion of string supplied in srcString with the specified length. If the length of the string in the srcString parameter is less than the number of characters specified in the length parameter, the entire string in srcString is returned.", AR_FN_STR_RIGHT_STR_LNG_PRM_DSC_0: "The source string.", AR_FN_STR_RIGHT_STR_LNG_PRM_DSC_1: "The number of characters to return from the right hand side of the string in the srcString parameter.", AR_FN_DSC_RTRIM: "Removes all whitespace from the right hand side of the string and returns the resulting string. Whitespace characters are space, tab, carriage return and line feed.", AR_FN_STR_RTRIM_STR_DSC: "Removes all whitespace from the right hand side of the supplied String value. Whitespace characters are space, tab, carriage return and line feed.", AR_FN_STR_RTRIM_STR_RV: "Returns the string with all whitespace removed from the right hand side. Whitespace characters are space, tab, carriage return and line feed.", AR_FN_STR_RTRIM_STR_PRM_DSC_0: "The String to right trim.", AR_FN_DSC_SUBSTRING: "Gets part of a String that starts at a specified position and has the specified length.", AR_FN_STR_SUBSTRING_STR_LNG_LNG_DSC: "Gets part of a String that starts at a specified position and has the specified length.", AR_FN_STR_SUBSTRING_STR_LNG_LNG_RV: 'Returns a substring from the supplied string. If the starting position is past the end of the string, "" is returned.', AR_FN_STR_SUBSTRING_STR_LNG_LNG_PRM_DSC_0: "The source String from which the substring will be taken.", AR_FN_STR_SUBSTRING_STR_LNG_LNG_PRM_DSC_1: "The starting position of the String in the text parameter. The first position is 0.", AR_FN_STR_SUBSTRING_STR_LNG_LNG_PRM_DSC_2: "The length of the desired substring.", AR_FN_DSC_TRIM: "Removes all whitespace from the right and left side of the input string and returns the resulting trimmed string. Whitespace characters are space, tab, carriage return and line feed.", AR_FN_STR_TRIM_STR_DSC: "Removes all whitespace from the left and right side of the supplied String value and returns the resulting string. Whitespace characters are space, tab, carriage return and line feed.", AR_FN_STR_TRIM_STR_RV: "Returns the string with all whitespace removed from the right and left hand side. Whitespace characters are space, tab, carriage return and line feed.", AR_FN_STR_TRIM_STR_PRM_DSC_0: "The String to trim.", AR_FN_DSC_UPPER: "Converts a String to all uppercase characters.", AR_FN_STR_UPPER_STR_DSC: "Converts the supplied String value to an uppercase String in a culture invariant manner.", AR_FN_STR_UPPER_STR_RV: "Returns the input string in all upper case.", AR_FN_STR_UPPER_STR_PRM_DSC_0: "The string to upper case.", AR_FN_DSC_CONTAINS: "Determines if a String contains the specified text.", AR_FN_BLN_CONTAINS_STR_STR_DSC: "Determines if a String contains the specified String in a case sensitive manner.", AR_FN_BLN_CONTAINS_STR_STR_RV: "Returns true if the text is found, otherwise false.", AR_FN_BLN_CONTAINS_STR_STR_PRM_DSC_0: "The String that will be scanned.", AR_FN_BLN_CONTAINS_STR_STR_PRM_DSC_1: "The text for which you are searching.", AR_FN_BLN_CONTAINS_STR_STR_BLN_DSC: "Determines if a String contains the specified String in a case sensitive or case insensitive manner.", AR_FN_BLN_CONTAINS_STR_STR_BLN_RV: "Returns true if the text is found, otherwise false.", AR_FN_BLN_CONTAINS_STR_STR_BLN_PRM_DSC_0: "The String that will be scanned.", AR_FN_BLN_CONTAINS_STR_STR_BLN_PRM_DSC_1: "The text for which you are searching.", AR_FN_BLN_CONTAINS_STR_STR_BLN_PRM_DSC_2: "Whether or not to perform a case insensitive (true) or case sensitive (false) search.", AR_FN_DSC_COMPARE: "Compares two specified String values and returns an Integer that indicates their relationship to one another in the sort order.", AR_FN_LNG_COMPARE_STR_STR_DSC: "Compares two specified String values and returns an Integer that indicates their relationship to one another by doing a character by character comparison. The comparison is case sensitive.", AR_FN_LNG_COMPARE_STR_STR_RV: "Returns 1 if the string in stringToCompare is greater than the string in stringToCompareTo, -1 if the string in stringToCompare is less than the string in stringToCompareTo and 0 if the string in stringToCompare is equal to the string in stringToCompareTo.", AR_FN_LNG_COMPARE_STR_STR_PRM_DSC_0: "The String to be compared.", AR_FN_LNG_COMPARE_STR_STR_PRM_DSC_1: "The String to compare to.", AR_FN_LNG_COMPARE_STR_STR_EX_OUT_2: "1 ( remember, we're comparing strings, not numbers here )", AR_FN_LNG_COMPARE_STR_STR_BLN_DSC: "Compares two specified String values and returns an Integer that indicates their relationship to one another by doing a character by character comparison.", AR_FN_LNG_COMPARE_STR_STR_BLN_RV: "Returns 1 if the string in stringToCompare is greater than the string in stringToCompareTo, -1 if the string in stringToCompare is less than the string in stringToCompareTo and 0 if the string in stringToCompare is equal to the string in stringToCompareTo.", AR_FN_LNG_COMPARE_STR_STR_BLN_PRM_DSC_0: "The String to be compared.", AR_FN_LNG_COMPARE_STR_STR_BLN_PRM_DSC_1: "The String to compare to.", AR_FN_LNG_COMPARE_STR_STR_BLN_PRM_DSC_2: "Whether or not to perform a case sensitive or case insensitive comparison.", AR_FN_DSC_SPLIT: "Identifies substrings in the supplied text separated by a delimiter.", AR_FN_STR_COLL_SPLIT_STR_STR_DSC: "Splits a string into one or more strings based on the supplied delimiter.", AR_FN_STR_COLL_SPLIT_STR_STR_RV: "Returns the substrings in the supplied text separated by a delimiter in a String collection.", AR_FN_STR_COLL_SPLIT_STR_STR_PRM_DSC_0: "The text to split.", AR_FN_STR_COLL_SPLIT_STR_STR_PRM_DSC_1: "The delimiting text between substrings.", AR_FN_STR_COLL_SPLIT_STR_STR_EX_OUT_0: 'A String collection with items: "He", "", "o Wor", "d"', AR_FN_STR_COLL_SPLIT_STR_STR_EX_OUT_1: 'A string collection with one item: ""', AR_FN_STR_COLL_SPLIT_STR_STR_EX_OUT_2: 'A String collection with items: "H", "e", "l", "l", "o", " ", "W", "o", "r", "l" and "d"', AR_FN_DSC_DAY: "Gets the day from the supplied value.", AR_FN_LNG_DAY_DATE_DSC: "Gets the day from a Date.", AR_FN_LNG_DAY_DATE_RV: "Returns the day of the month from a Date. The result will be from 1 to 31.", AR_FN_LNG_DAY_DATE_PRM_DSC_0: "The Date from which to get the day.", AR_FN_LNG_DAY_DTM_DSC: "Gets the day from a DateTime.", AR_FN_LNG_DAY_DTM_RV: "Returns the day of the month from a DateTime. The result will be from 1 to 31.", AR_FN_LNG_DAY_DTM_PRM_DSC_0: "The DateTime from which to get the day.", AR_FN_DSC_MONTH: "Gets the month from the supplied value.", AR_FN_LNG_MONTH_DATE_DSC: "Gets the month from a Date.", AR_FN_LNG_MONTH_DATE_RV: "Returns the month from the supplied Date. 1=January, 2=February, 3=March, 4=April, 5=May, 6=June, 7=July, 8=August, 9=September, 10=October, 11=November and 12=December.", AR_FN_LNG_MONTH_DATE_PRM_DSC_0: "The Date from which to get the month.", AR_FN_LNG_MONTH_DTM_DSC: "Gets the month from a DateTime.", AR_FN_LNG_MONTH_DTM_RV: "Returns the month from the supplied DateTime. 1=January, 2=February, 3=March, 4=April, 5=May, 6=June, 7=July, 8=August, 9=September, 10=October, 11=November and 12=December.", AR_FN_LNG_MONTH_DTM_PRM_DSC_0: "The DateTime from which to get the month.", AR_FN_DSC_YEAR: "Gets the year from the supplied value.", AR_FN_LNG_YEAR_DATE_DSC: "Gets the year from the supplied Date.", AR_FN_LNG_YEAR_DATE_RV: "Returns the year from the supplied Date.", AR_FN_LNG_YEAR_DATE_PRM_DSC_0: "The Date from which to get the year.", AR_FN_LNG_YEAR_DTM_DSC: "Gets the year from the supplied DateTime.", AR_FN_LNG_YEAR_DTM_RV: "Returns the year from the supplied DateTime.", AR_FN_LNG_YEAR_DTM_PRM_DSC_0: "The DateTime from which to get the year.", AR_FN_DSC_HOUR: "Gets the hour from the supplied value.", AR_FN_LNG_HOUR_TIME_DSC: "Gets the hour from the supplied Time.", AR_FN_LNG_HOUR_TIME_RV: "Returns the zero-based hour from the supplied Time. The number will range from 0 to 23 where 12AM is 0, 1AM is 1, ..., 11PM = 23", AR_FN_LNG_HOUR_TIME_PRM_DSC_0: "The Time from which to get the hour.", AR_FN_LNG_HOUR_DTM_DSC: "Gets the hour from the supplied DateTime.", AR_FN_LNG_HOUR_DTM_RV: "Returns the zero-based hour from the supplied DateTime. The number will range from 0 to 23 where 12AM is 0, 1AM is 1, ..., 11PM = 23", AR_FN_LNG_HOUR_DTM_PRM_DSC_0: "The DateTime from which to get the hour.", AR_FN_DSC_MINUTE: "Gets the minute from the supplied value.", AR_FN_LNG_MINUTE_DTM_DSC: "Gets the minute from the supplied DateTime.", AR_FN_LNG_MINUTE_DTM_RV: "Returns the minute from the supplied DateTime. The number will range from 0 to 59.", AR_FN_LNG_MINUTE_DTM_PRM_DSC_0: "The DateTime from which to get the minute.", AR_FN_LNG_MINUTE_TIME_DSC: "Gets the minute from the supplied Time.", AR_FN_LNG_MINUTE_TIME_RV: "Returns the minute from the supplied Time. The number will range from 0 to 59.", AR_FN_LNG_MINUTE_TIME_PRM_DSC_0: "The Time from which to get the minute.", AR_FN_DSC_SECOND: "Gets the second from the supplied value.", AR_FN_LNG_SECOND_DTM_DSC: "Gets the second from the supplied DateTime.", AR_FN_LNG_SECOND_DTM_RV: "Returns the second from the supplied DateTime. The number will range from 0 to 59.", AR_FN_LNG_SECOND_DTM_PRM_DSC_0: "The DateTime from which to get the second.", AR_FN_LNG_SECOND_TIME_DSC: "Gets the second from the supplied Time.", AR_FN_LNG_SECOND_TIME_RV: "Returns the second from the supplied Time. The number will range from 0 to 59.", AR_FN_LNG_SECOND_TIME_PRM_DSC_0: "The Time from which to get the second.", AR_FN_DSC_DATEDIFF: "Returns the difference between two Date values as a Duration.", AR_FN_DUR_DATEDIFF_DATE_DATE_DSC: "Calculates the difference between two Date values.", AR_FN_DUR_DATEDIFF_DATE_DATE_RV: "Returns the difference between the date1 and date2 parameters as a Duration. If the Date in date1 is after the date2, a positive Duration is returned. If the Date in date1 is before the date2, a negative Duration is returned. If they're the same, a 0 second Duration is returned.", AR_FN_DUR_DATEDIFF_DATE_DATE_PRM_DSC_0: "A Date value.", AR_FN_DUR_DATEDIFF_DATE_DATE_PRM_DSC_1: "The Date value to subtract.", AR_FN_DUR_DATEDIFF_DATE_DATE_EX_OUT_0: "A duration of 2 days.", AR_FN_DUR_DATEDIFF_DATE_DATE_EX_OUT_1: "A duration of -2 days.", AR_FN_DSC_DATETIMEDIFF: "Returns the difference between two DateTime values as a Duration.", AR_FN_DUR_DATETIMEDIFF_DTM_DTM_DSC: "Calculates the difference between two DateTime values.", AR_FN_DUR_DATETIMEDIFF_DTM_DTM_RV: "Returns the difference between the dateTime1 and dateTime2 parameters as a Duration. If the DateTime in dateTime1 is after the dateTime2, a positive Duration is returned. If the DateTime in dateTime1 is before the dateTime2, a negative Duration is returned. If they're the same, a 0 second Duration is returned.", AR_FN_DUR_DATETIMEDIFF_DTM_DTM_PRM_DSC_0: "A DateTime value.", AR_FN_DUR_DATETIMEDIFF_DTM_DTM_PRM_DSC_1: "The DateTime value to subtract.", AR_FN_DUR_DATETIMEDIFF_DTM_DTM_EX_OUT_0: "A duration of 2 hours.", AR_FN_DUR_DATETIMEDIFF_DTM_DTM_EX_OUT_1: "A duration of -2 hours.", AR_FN_DSC_TIMEDIFF: "Returns the difference between two Time values as a Duration.", AR_FN_DUR_TIMEDIFF_TIME_TIME_DSC: "Calculates the difference between two Time values.", AR_FN_DUR_TIMEDIFF_TIME_TIME_RV: "Returns the difference between the time1 and time2 parameters as a Duration. If the Time in time1 is after the time2, a positive Duration is returned. If the Time in time1 is before the time2, a negative Duration is returned. If they're the same, a 0 second Duration is returned.", AR_FN_DUR_TIMEDIFF_TIME_TIME_PRM_DSC_0: "A Time value.", AR_FN_DUR_TIMEDIFF_TIME_TIME_PRM_DSC_1: "The Time value to subtract.", AR_FN_DUR_TIMEDIFF_TIME_TIME_EX_OUT_0: "A duration of 2 hours.", AR_FN_DUR_TIMEDIFF_TIME_TIME_EX_OUT_1: "A duration of -2 hours.", AR_FN_DSC_DAYOFWEEK: "Gets the day of week from the supplied value.", AR_FN_LNG_DAYOFWEEK_DATE_DSC: "Gets the day of week from the supplied Date.", AR_FN_LNG_DAYOFWEEK_DATE_RV: "Returns the day of week from the supplied Date as a value from 1 to 7. Sunday=1, Monday=2, Tuesday=3, Wednesday=4, Thursday=5, Friday=6, Saturday=7", AR_FN_LNG_DAYOFWEEK_DATE_PRM_DSC_0: "The Date from which to get the day of week.", AR_FN_LNG_DAYOFWEEK_DTM_DSC: "Gets the day of week from the supplied DateTime.", AR_FN_LNG_DAYOFWEEK_DTM_RV: "Returns the day of week from the supplied DateTime as a value from 1 to 7. Sunday=1, Monday=2, Tuesday=3, Wednesday=4, Thursday=5, Friday=6, Saturday=7", AR_FN_LNG_DAYOFWEEK_DTM_PRM_DSC_0: "The DateTime from which to get the day of week.", AR_FN_DSC_GETDAYOFWEEKOCCURRENCE: "Calculates the DateTime for a specified occurrence of a day of week.", AR_FN_DTM_GETDAYOFWEEKOCCURRENCE_LNG_LNG_LNG_DSC: "Calculates a DateTime for a specified occurrence of a day of week for a particular year.", AR_FN_DTM_GETDAYOFWEEKOCCURRENCE_LNG_LNG_LNG_RV: "Returns a DateTime for a specified occurrence of a day of the week for the year at 12:00:00AM. If the occurrence does not exist for the specified year, a NOT_SET DateTime value will be returned.", AR_FN_DTM_GETDAYOFWEEKOCCURRENCE_LNG_LNG_LNG_PRM_DSC_0: "The desired day of week. Sunday=1, Monday=2, Tuesday=3, Wednesday=4, Thursday=5, Friday=6, Saturday=7", AR_FN_DTM_GETDAYOFWEEKOCCURRENCE_LNG_LNG_LNG_PRM_DSC_1: "The occurrence number of the day of week to calculate for the specified year. Using a negative value computes the occurrence backward from the end of the year.", AR_FN_DTM_GETDAYOFWEEKOCCURRENCE_LNG_LNG_LNG_PRM_DSC_2: "The year to use for the occurrence calculation.", AR_FN_DTM_GETDAYOFWEEKOCCURRENCE_LNG_LNG_LNG_EX_OUT_0: "A DateTime whose value is March 5th, 2017 at 12:00:00AM which is the tenth Sunday in 2017.", AR_FN_DTM_GETDAYOFWEEKOCCURRENCE_LNG_LNG_LNG_EX_OUT_1: "A DateTime whose value is December 29th, 2017 at 12:00:00AM which is the last Friday in 2017.", AR_FN_DTM_GETDAYOFWEEKOCCURRENCE_LNG_LNG_LNG_EX_OUT_2: "A DateTime whose value is December 22nd, 2017 at 12:00:00AM which is the second to the last Friday in 2017.", AR_FN_DTM_GETDAYOFWEEKOCCURRENCE_LNG_LNG_LNG_EX_OUT_3: "A NOT_SET DateTime value because there is not a 53rd occurrence of Monday in 2017.", AR_FN_DTM_GETDAYOFWEEKOCCURRENCE_LNG_LNG_LNG_LNG_DSC: "Calculates a DateTime for a specified occurrence of a day of week within a particular month and year.", AR_FN_DTM_GETDAYOFWEEKOCCURRENCE_LNG_LNG_LNG_LNG_RV: "Returns a DateTime for a specified occurrence of a day of week within a month at 12:00:00AM. If the occurrence does not exist for the specified year and month, a NOT_SET DateTime value will be returned.", AR_FN_DTM_GETDAYOFWEEKOCCURRENCE_LNG_LNG_LNG_LNG_PRM_DSC_0: "The desired day of week. Sunday=1, Monday=2, Tuesday=3, Wednesday=4, Thursday=5, Friday=6, Saturday=7", AR_FN_DTM_GETDAYOFWEEKOCCURRENCE_LNG_LNG_LNG_LNG_PRM_DSC_1: "The occurrence number of the day of week to calculate for the specified month and year. Using a negative value computes the occurrence backward from the end of the month.", AR_FN_DTM_GETDAYOFWEEKOCCURRENCE_LNG_LNG_LNG_LNG_PRM_DSC_2: "The year to use for the occurrence calculation.", AR_FN_DTM_GETDAYOFWEEKOCCURRENCE_LNG_LNG_LNG_LNG_PRM_DSC_3: "The month to use for the occurrence calculation.", AR_FN_DTM_GETDAYOFWEEKOCCURRENCE_LNG_LNG_LNG_LNG_EX_OUT_0: "A DateTime whose value is April 9th, 2017 at 12:00:00AM which is the second Sunday in April, 2017.", AR_FN_DTM_GETDAYOFWEEKOCCURRENCE_LNG_LNG_LNG_LNG_EX_OUT_1: "A DateTime whose value is February 24th, 2017 at 12:00:00AM which is the last Friday in February, 2017.", AR_FN_DTM_GETDAYOFWEEKOCCURRENCE_LNG_LNG_LNG_LNG_EX_OUT_2: "A DateTime whose value is February 17th, 2017 at 12:00:00AM which is the second to the last Friday in February, 2017.", AR_FN_DTM_GETDAYOFWEEKOCCURRENCE_LNG_LNG_LNG_LNG_EX_OUT_3: "A NOT_SET DateTime value because there is not a fifth occurrence of Tuesday in April, 2017.", AR_FN_DTM_GETDAYOFWEEKOCCURRENCE_LNG_LNG_LNG_LNG_LNG_LNG_DSC: "Calculates a DateTime for a specified occurrence of a day of week for a particular year.", AR_FN_DTM_GETDAYOFWEEKOCCURRENCE_LNG_LNG_LNG_LNG_LNG_LNG_RV: "Returns the DateTime for a specified occurrence of a day of week for a year at the specified time. If the occurrence does not exist for the specified year, a NOT_SET DateTime value will be returned.", AR_FN_DTM_GETDAYOFWEEKOCCURRENCE_LNG_LNG_LNG_LNG_LNG_LNG_PRM_DSC_0: "The desired day of week. Sunday=1, Monday=2, Tuesday=3, Wednesday=4, Thursday=5, Friday=6, Saturday=7", AR_FN_DTM_GETDAYOFWEEKOCCURRENCE_LNG_LNG_LNG_LNG_LNG_LNG_PRM_DSC_1: "The occurrence number of the day of week to calculate for the specified year. Using a negative value computes the occurrence backward from the end of the year.", AR_FN_DTM_GETDAYOFWEEKOCCURRENCE_LNG_LNG_LNG_LNG_LNG_LNG_PRM_DSC_2: "The year to use for the occurrence calculation.", AR_FN_DTM_GETDAYOFWEEKOCCURRENCE_LNG_LNG_LNG_LNG_LNG_LNG_PRM_DSC_3: "The hour to use in the returned DateTime.", AR_FN_DTM_GETDAYOFWEEKOCCURRENCE_LNG_LNG_LNG_LNG_LNG_LNG_PRM_DSC_4: "The minute to use in the returned DateTime.", AR_FN_DTM_GETDAYOFWEEKOCCURRENCE_LNG_LNG_LNG_LNG_LNG_LNG_PRM_DSC_5: "The second to use in the returned DateTime.", AR_FN_DTM_GETDAYOFWEEKOCCURRENCE_LNG_LNG_LNG_LNG_LNG_LNG_EX_OUT_0: "A DateTime whose value is December 29th, 2017 at 02:14:30AM which is the last Friday in 2017.", AR_FN_DTM_GETDAYOFWEEKOCCURRENCE_LNG_LNG_LNG_LNG_LNG_LNG_EX_OUT_1: "A DateTime whose value is December 22nd, 2017 at 02:05:00AM which is the second to the last Friday in 2017.", AR_FN_DTM_GETDAYOFWEEKOCCURRENCE_LNG_LNG_LNG_LNG_LNG_LNG_EX_OUT_2: "A DateTime whose value is May 14th, 2017 at 2:15:15AM which is the 20th Sunday in 2017.", AR_FN_DTM_GETDAYOFWEEKOCCURRENCE_LNG_LNG_LNG_LNG_LNG_LNG_EX_OUT_3: "A NOT_SET DateTime value because there is not a 53rd occurrence of Tuesday in 2017.", AR_FN_DTM_GETDAYOFWEEKOCCURRENCE_LNG_LNG_LNG_LNG_LNG_LNG_LNG_DSC: "Calculates a DateTime for a specified occurrence of a day of week with a specified time within a particular month and year.", AR_FN_DTM_GETDAYOFWEEKOCCURRENCE_LNG_LNG_LNG_LNG_LNG_LNG_LNG_RV: "Returns a DateTime for a specified occurrence of a day of week within a month at the specified time. If the occurrence does not exist for the specified year and month, a NOT_SET DateTime value will be returned.", AR_FN_DTM_GETDAYOFWEEKOCCURRENCE_LNG_LNG_LNG_LNG_LNG_LNG_LNG_PRM_DSC_0: "The desired day of week. Sunday=1, Monday=2, Tuesday=3, Wednesday=4, Thursday=5, Friday=6, Saturday=7", AR_FN_DTM_GETDAYOFWEEKOCCURRENCE_LNG_LNG_LNG_LNG_LNG_LNG_LNG_PRM_DSC_1: "The occurrence number of the day of week to calculate for the specified month and year. Using a negative value computes the occurrence backward from the end of the month.", AR_FN_DTM_GETDAYOFWEEKOCCURRENCE_LNG_LNG_LNG_LNG_LNG_LNG_LNG_PRM_DSC_2: "The year to use in the occurrence calculation.", AR_FN_DTM_GETDAYOFWEEKOCCURRENCE_LNG_LNG_LNG_LNG_LNG_LNG_LNG_PRM_DSC_3: "The month to use in the occurrence calculation.", AR_FN_DTM_GETDAYOFWEEKOCCURRENCE_LNG_LNG_LNG_LNG_LNG_LNG_LNG_PRM_DSC_4: "The hour to use in the returned DateTime.", AR_FN_DTM_GETDAYOFWEEKOCCURRENCE_LNG_LNG_LNG_LNG_LNG_LNG_LNG_PRM_DSC_5: "The minute to use in the returned DateTime.", AR_FN_DTM_GETDAYOFWEEKOCCURRENCE_LNG_LNG_LNG_LNG_LNG_LNG_LNG_PRM_DSC_6: "The second to use in the returned DateTime.", AR_FN_DTM_GETDAYOFWEEKOCCURRENCE_LNG_LNG_LNG_LNG_LNG_LNG_LNG_EX_OUT_0: "A DateTime whose value is April 9th, 2017 at 11:15:00AM which is the second Sunday in April, 2017.", AR_FN_DTM_GETDAYOFWEEKOCCURRENCE_LNG_LNG_LNG_LNG_LNG_LNG_LNG_EX_OUT_1: "A DateTime whose value is February 24th, 2017 at 02:30:00PM which is the last Friday in February, 2017.", AR_FN_DTM_GETDAYOFWEEKOCCURRENCE_LNG_LNG_LNG_LNG_LNG_LNG_LNG_EX_OUT_2: "A DateTime whose value is February 17th, 2017 at 05:00:00AM which is the second to the last Friday in February, 2017.", AR_FN_DTM_GETDAYOFWEEKOCCURRENCE_LNG_LNG_LNG_LNG_LNG_LNG_LNG_EX_OUT_3: "A NOT_SET DateTime value because there is not a fifth occurrence of Tuesday in April, 2017.", AR_FN_DSC_GETMENUSSUPPORTSPEECHRECOGNITION: "Returns whether or not menus in the flow support speech recognition.", AR_FN_BLN_GETMENUSSUPPORTSPEECHRECOGNITION_DSC: "Whether or not menus in the flow support speech recognition for the language in which the flow is currently running.", AR_FN_BLN_GETMENUSSUPPORTSPEECHRECOGNITION_RV: "Returns whether or not menus in the flow support speech recognition for the current flow language.", AR_FN_BLN_GETMENUSSUPPORTSPEECHRECOGNITION_STR_DSC: "Whether or not menus in the flow support speech recognition for a specified IETF language tag.", AR_FN_BLN_GETMENUSSUPPORTSPEECHRECOGNITION_STR_RV: "Returns whether or not menus in the current flow support speech recognition for supplied IETF language tag. If you supply a NOT_SET language tag, the return value is a NOT_SET Boolean.", AR_FN_BLN_GETMENUSSUPPORTSPEECHRECOGNITION_STR_PRM_DSC_0: "The IETF language tag of the language to check.", AR_FN_DSC_WEEKNUM: "Gets the week number of a DateTime or Date.", AR_FN_LNG_WEEKNUM_DATE_DSC: "Gets the week number of a Date.", AR_FN_LNG_WEEKNUM_DATE_RV: "Returns the week number of the Date as an Integer between 1 and 53 inclusive.", AR_FN_LNG_WEEKNUM_DATE_PRM_DSC_0: "The Date value from which to get the week number.", AR_FN_LNG_WEEKNUM_DTM_DSC: "Gets the week number of a DateTime.", AR_FN_LNG_WEEKNUM_DTM_RV: "Returns the week number of the DateTime as an Integer between 1 and 53 inclusive.", AR_FN_LNG_WEEKNUM_DTM_PRM_DSC_0: "The DateTime value from which to get the week number.", AR_FN_DSC_MAKEDATE: "Returns a new instance of Date initialized with the specified values.", AR_FN_DATE_MAKEDATE_LNG_LNG_LNG_DSC: "Creates a new Date for the supplied year, month and day.", AR_FN_DATE_MAKEDATE_LNG_LNG_LNG_RV: "Returns a new Date from the supplied parameters.", AR_FN_DATE_MAKEDATE_LNG_LNG_LNG_PRM_DSC_0: "The year of the new Date.", AR_FN_DATE_MAKEDATE_LNG_LNG_LNG_PRM_DSC_1: "The month of the new Date.", AR_FN_DATE_MAKEDATE_LNG_LNG_LNG_PRM_DSC_2: "The day of the new Date.", AR_FN_DATE_MAKEDATE_LNG_LNG_LNG_EX_OUT_0: "A Date whose value is May 20th, 2014.", AR_FN_DATE_MAKEDATE_LNG_LNG_LNG_EX_OUT_1: "A Date whose value is January 1st, 2018.", AR_FN_DSC_MAKEDATETIME: "Returns a new instance of DateTime initialized with the specified values.", AR_FN_DTM_MAKEDATETIME_LNG_LNG_LNG_LNG_LNG_LNG_DSC: "Creates a new DateTime in UTC.", AR_FN_DTM_MAKEDATETIME_LNG_LNG_LNG_LNG_LNG_LNG_RV: "Returns a new DateTime from the supplied parameters in Coordinated Universal Time (UTC).", AR_FN_DTM_MAKEDATETIME_LNG_LNG_LNG_LNG_LNG_LNG_PRM_DSC_0: "The year of the new DateTime.", AR_FN_DTM_MAKEDATETIME_LNG_LNG_LNG_LNG_LNG_LNG_PRM_DSC_1: "The month of the new DateTime.", AR_FN_DTM_MAKEDATETIME_LNG_LNG_LNG_LNG_LNG_LNG_PRM_DSC_2: "The day of the new DateTime.", AR_FN_DTM_MAKEDATETIME_LNG_LNG_LNG_LNG_LNG_LNG_PRM_DSC_3: "The hour of the day of the new DateTime.", AR_FN_DTM_MAKEDATETIME_LNG_LNG_LNG_LNG_LNG_LNG_PRM_DSC_4: "The minute of the new DateTime.", AR_FN_DTM_MAKEDATETIME_LNG_LNG_LNG_LNG_LNG_LNG_PRM_DSC_5: "The second of the new DateTime.", AR_FN_DTM_MAKEDATETIME_LNG_LNG_LNG_LNG_LNG_LNG_EX_OUT_0: "A DateTime whose value is March 20th, 2009 at 12:00:00PM.", AR_FN_DTM_MAKEDATETIME_LNG_LNG_LNG_DSC: "Creates a new DateTime for the specified date at 12:00:00 AM in Coordinated Universal Time (UTC).", AR_FN_DTM_MAKEDATETIME_LNG_LNG_LNG_RV: "Returns a new DateTime from the date parameters at 12:00:00 AM in Coordinated Universal Time (UTC).", AR_FN_DTM_MAKEDATETIME_LNG_LNG_LNG_PRM_DSC_0: "The year of the new DateTime.", AR_FN_DTM_MAKEDATETIME_LNG_LNG_LNG_PRM_DSC_1: "The month of the new DateTime.", AR_FN_DTM_MAKEDATETIME_LNG_LNG_LNG_PRM_DSC_2: "The day of the new DateTime.", AR_FN_DTM_MAKEDATETIME_LNG_LNG_LNG_EX_OUT_0: "A DateTime whose value is March 20th, 2009 at 12:00:00 AM.", AR_FN_DTM_MAKEDATETIME_DATE_TIME_DSC: "Creates a new DateTime from a supplied Date and Time.", AR_FN_DTM_MAKEDATETIME_DATE_TIME_RV: "Returns a new DateTime from the supplied Date and Time values.", AR_FN_DTM_MAKEDATETIME_DATE_TIME_PRM_DSC_0: "The UTC Date for the new DateTime. If the value is a NOT_SET Date then January 1st, 1970 is used.", AR_FN_DTM_MAKEDATETIME_DATE_TIME_PRM_DSC_1: "The UTC Time of the new DateTime. If the value is a NOT_SET time, then 12:00:00.000AM is used.", AR_FN_DSC_MAKEDURATION: "Returns a new instance of Duration initialized with the specified values.", AR_FN_DUR_MAKEDURATION_LNG_LNG_LNG_LNG_DSC: "Creates a Duration from the supplied values.", AR_FN_DUR_MAKEDURATION_LNG_LNG_LNG_LNG_RV: "Returns the new duration.", AR_FN_DUR_MAKEDURATION_LNG_LNG_LNG_LNG_PRM_DSC_0: "The number of days for the new Duration. A day is 86400 seconds.", AR_FN_DUR_MAKEDURATION_LNG_LNG_LNG_LNG_PRM_DSC_1: "The number of hours for the new Duration.", AR_FN_DUR_MAKEDURATION_LNG_LNG_LNG_LNG_PRM_DSC_2: "The number of minutes for the new Duration.", AR_FN_DUR_MAKEDURATION_LNG_LNG_LNG_LNG_PRM_DSC_3: "The number of seconds for the new Duration.", AR_FN_DUR_MAKEDURATION_LNG_LNG_LNG_LNG_EX_OUT_0: "A Duration of 10 days and 30 minutes", AR_FN_DUR_MAKEDURATION_LNG_LNG_LNG_LNG_EX_OUT_1: "A negative Duration of 9 days, 23 hours and 30 minutes", AR_FN_DUR_MAKEDURATION_LNG_LNG_LNG_LNG_EX_OUT_2: "A negative Duration of 10 days and 30 minutes", AR_FN_DUR_MAKEDURATION_LNG_LNG_LNG_LNG_LNG_DSC: "Creates a Duration from the supplied values.", AR_FN_DUR_MAKEDURATION_LNG_LNG_LNG_LNG_LNG_RV: "Returns the new duration.", AR_FN_DUR_MAKEDURATION_LNG_LNG_LNG_LNG_LNG_PRM_DSC_0: "The number of days for the new Duration. A day is 86400 seconds.", AR_FN_DUR_MAKEDURATION_LNG_LNG_LNG_LNG_LNG_PRM_DSC_1: "The number of hours for the new Duration.", AR_FN_DUR_MAKEDURATION_LNG_LNG_LNG_LNG_LNG_PRM_DSC_2: "The number of minutes for the new Duration.", AR_FN_DUR_MAKEDURATION_LNG_LNG_LNG_LNG_LNG_PRM_DSC_3: "The number of seconds for the new Duration.", AR_FN_DUR_MAKEDURATION_LNG_LNG_LNG_LNG_LNG_PRM_DSC_4: "The number of milliseconds for the new Duration.", AR_FN_DUR_MAKEDURATION_LNG_LNG_LNG_LNG_LNG_EX_OUT_0: "A Duration of 10 days and 30 minutes", AR_FN_DUR_MAKEDURATION_LNG_LNG_LNG_LNG_LNG_EX_OUT_1: "A negative Duration of 9 days, 23 hours, 30 minutes, 10.5 seconds", AR_FN_DUR_MAKEDURATION_LNG_LNG_LNG_LNG_LNG_EX_OUT_2: "A negative Duration of 10 days and 30 minutes", AR_FN_DSC_MAKETIME: "Returns a new instance of Time initialized with the specified values.", AR_FN_TIME_MAKETIME_LNG_LNG_LNG_DSC: "Creates a new Time.", AR_FN_TIME_MAKETIME_LNG_LNG_LNG_RV: "Returns a new Time from the supplied parameters.", AR_FN_TIME_MAKETIME_LNG_LNG_LNG_PRM_DSC_0: "The hour of the day of the new Time.", AR_FN_TIME_MAKETIME_LNG_LNG_LNG_PRM_DSC_1: "The minute of the new Time.", AR_FN_TIME_MAKETIME_LNG_LNG_LNG_PRM_DSC_2: "The second of the new Time.", AR_FN_TIME_MAKETIME_LNG_LNG_LNG_EX_OUT_0: "A Time whose value is 12:05:00PM.", AR_FN_TIME_MAKETIME_LNG_LNG_LNG_LNG_DSC: "Creates a new Time with the ability to specify milliseconds.", AR_FN_TIME_MAKETIME_LNG_LNG_LNG_LNG_RV: "Returns a new Time from the supplied parameters.", AR_FN_TIME_MAKETIME_LNG_LNG_LNG_LNG_PRM_DSC_0: "The hour of the day of the new Time.", AR_FN_TIME_MAKETIME_LNG_LNG_LNG_LNG_PRM_DSC_1: "The minute of the new Time.", AR_FN_TIME_MAKETIME_LNG_LNG_LNG_LNG_PRM_DSC_2: "The second of the new Time.", AR_FN_TIME_MAKETIME_LNG_LNG_LNG_LNG_PRM_DSC_3: "The milliseconds of the new Time.", AR_FN_TIME_MAKETIME_LNG_LNG_LNG_LNG_EX_OUT_0: "A Time whose value is 02:30:00AM.", AR_FN_TIME_MAKETIME_LNG_LNG_LNG_LNG_EX_OUT_1: "A Time whose value is 12:00:10.200PM.", AR_FN_DSC_ADDDAYS: "Adds a specified number of days to a value.", AR_FN_DTM_ADDDAYS_DTM_LNG_DSC: "Adds a specified number of days to a DateTime value. This works by incrementing or decrementing the day component of the date.", AR_FN_DTM_ADDDAYS_DTM_LNG_RV: "The resulting DateTime with the days added.", AR_FN_DTM_ADDDAYS_DTM_LNG_PRM_DSC_0: "The DateTime that will be used as the starting point.", AR_FN_DTM_ADDDAYS_DTM_LNG_PRM_DSC_1: "The number of days to add to the starting DateTime.", AR_FN_DTM_ADDDAYS_DTM_LNG_EX_OUT_0: "A DateTime of March 7th, 2009 at 12:00:00PM.", AR_FN_DATE_ADDDAYS_DATE_LNG_DSC: "Adds a specified number of days to a Date value. This works by incrementing or decrementing the day component of the date.", AR_FN_DATE_ADDDAYS_DATE_LNG_RV: "The resulting Date with the days added.", AR_FN_DATE_ADDDAYS_DATE_LNG_PRM_DSC_0: "The Date that will be used as the starting point.", AR_FN_DATE_ADDDAYS_DATE_LNG_PRM_DSC_1: "The number of days to add to the starting Date.", AR_FN_DATE_ADDDAYS_DATE_LNG_EX_OUT_0: "A Date of March 7th, 2009.", AR_FN_DSC_ADDDURATION: "Adds a Duration to a DateTime.", AR_FN_DATE_ADDDURATION_DATE_DUR_DSC: "Adds days to a Date. The number of days to add is calculated by taking the integral value of the total number of seconds in the supplied Duration value divided by 86400 ( the number of seconds in 1 day ).", AR_FN_DATE_ADDDURATION_DATE_DUR_RV: "Returns a Date that is the result of adding the number of days in the supplied duration to the Date value.", AR_FN_DATE_ADDDURATION_DATE_DUR_PRM_DSC_0: "A Date value.", AR_FN_DATE_ADDDURATION_DATE_DUR_PRM_DSC_1: "A Duration value that supplies the number of days to add to the Date value in startDate.", AR_FN_DATE_ADDDURATION_DATE_DUR_EX_OUT_0: "A Date whose value is January 20th, 2009.", AR_FN_DATE_ADDDURATION_DATE_DUR_EX_OUT_1: "A Date whose value is March 2nd, 2020.", AR_FN_DATE_ADDDURATION_DATE_DUR_EX_OUT_2: "A Date whose value is December 30th, 2019.", AR_FN_DTM_ADDDURATION_DTM_DUR_DSC: "Adds a Duration to a DateTime.", AR_FN_DTM_ADDDURATION_DTM_DUR_RV: "Returns a DateTime that is the result of adding the supplied Duration to the incoming DateTime value. Note that if the Duration contains fractional seconds, those are not added to the DateTime since DateTime does not support milliseconds.", AR_FN_DTM_ADDDURATION_DTM_DUR_PRM_DSC_0: "A DateTime value.", AR_FN_DTM_ADDDURATION_DTM_DUR_PRM_DSC_1: "A Duration value to add to the DateTime value in startDateTime.", AR_FN_DTM_ADDDURATION_DTM_DUR_EX_OUT_0: "A DateTime of January 20, 2009 at 7:00:00 AM.", AR_FN_TIME_ADDDURATION_TIME_DUR_DSC: "Adds a Duration to a Time. Addition of a Duration value to a Time value allows for wrap-around so adding three hours to a Time value of 23:00:00 will return a Time value of 02:00:00.", AR_FN_TIME_ADDDURATION_TIME_DUR_RV: "Returns a Time that is the result of adding the supplied Duration value to the supplied Time value.", AR_FN_TIME_ADDDURATION_TIME_DUR_PRM_DSC_0: "A Time value.", AR_FN_TIME_ADDDURATION_TIME_DUR_PRM_DSC_1: "A Duration value to add to the Time value in startTime.", AR_FN_DSC_ADDMONTHS: "Add a specified number of months to a value.", AR_FN_DTM_ADDMONTHS_DTM_LNG_DSC: "Adds a specified number of months to a DateTime.", AR_FN_DTM_ADDMONTHS_DTM_LNG_RV: "Returns a DateTime that is the result of adding the specified number of months to a starting DateTime.", AR_FN_DTM_ADDMONTHS_DTM_LNG_PRM_DSC_0: "The starting DateTime.", AR_FN_DTM_ADDMONTHS_DTM_LNG_PRM_DSC_1: "The number of months to add to the starting DateTime.", AR_FN_DTM_ADDMONTHS_DTM_LNG_EX_OUT_0: "A DateTime of April 10, 2009 at 06:30:00 AM.", AR_FN_DTM_ADDMONTHS_DTM_LNG_EX_OUT_1: "A DateTime of February 28, 2009 at 06:30:00 AM.", AR_FN_DATE_ADDMONTHS_DATE_LNG_DSC: "Adds a specified number of months to a Date.", AR_FN_DATE_ADDMONTHS_DATE_LNG_RV: "Returns a Date that is the result of adding the specified number of months to a starting Date.", AR_FN_DATE_ADDMONTHS_DATE_LNG_PRM_DSC_0: "The starting Date.", AR_FN_DATE_ADDMONTHS_DATE_LNG_PRM_DSC_1: "The number of months to add to the starting Date.", AR_FN_DATE_ADDMONTHS_DATE_LNG_EX_OUT_0: "A Date whose value is April 10th, 2009.", AR_FN_DATE_ADDMONTHS_DATE_LNG_EX_OUT_1: "A Date whose value is February 29th, 2008.", AR_FN_DATE_ADDMONTHS_DATE_LNG_EX_OUT_2: "A Date whose value is March 1st, 2009.", AR_FN_DATE_ADDMONTHS_DATE_LNG_EX_OUT_3: "A Date whose value is January 1st, 2020.", AR_FN_DSC_ADDYEARS: "Add the specified number of years to a value.", AR_FN_DTM_ADDYEARS_DTM_LNG_DSC: "Adds a specified number of years to a DateTime.", AR_FN_DTM_ADDYEARS_DTM_LNG_RV: "Returns a DateTime that is the result of adding the specified number of years to a starting DateTime.", AR_FN_DTM_ADDYEARS_DTM_LNG_PRM_DSC_0: "The starting DateTime.", AR_FN_DTM_ADDYEARS_DTM_LNG_PRM_DSC_1: "The number of years to add to the starting DateTime.", AR_FN_DTM_ADDYEARS_DTM_LNG_EX_OUT_0: "A DateTime of January 10, 2012 at 06:30:00 AM.", AR_FN_DATE_ADDYEARS_DATE_LNG_DSC: "Adds a specified number of years to a Date.", AR_FN_DATE_ADDYEARS_DATE_LNG_RV: "Returns a Date that is the result of adding the specified number of years to a starting Date.", AR_FN_DATE_ADDYEARS_DATE_LNG_PRM_DSC_0: "The starting Date.", AR_FN_DATE_ADDYEARS_DATE_LNG_PRM_DSC_1: "The number of years to add to the starting Date.", AR_FN_DATE_ADDYEARS_DATE_LNG_EX_OUT_0: "A Date whose value is January 10th, 2015.", AR_FN_DATE_ADDYEARS_DATE_LNG_EX_OUT_1: "A Date whose value is January 10th, 2012.", AR_FN_DATE_ADDYEARS_DATE_LNG_EX_OUT_2: "A Date whose value is January 10th, 2009.", AR_FN_DSC_ADDHOURS: "Add the specified number of hours to a value.", AR_FN_DTM_ADDHOURS_DTM_LNG_DSC: "Adds a specified number of hours to a DateTime.", AR_FN_DTM_ADDHOURS_DTM_LNG_RV: "Returns a DateTime that is the result of adding the specified number of hours to a starting DateTime.", AR_FN_DTM_ADDHOURS_DTM_LNG_PRM_DSC_0: "The starting DateTime.", AR_FN_DTM_ADDHOURS_DTM_LNG_PRM_DSC_1: "The number of hours to add to the starting DateTime.", AR_FN_DTM_ADDHOURS_DTM_LNG_EX_OUT_0: "A DateTime of January 10, 2009 at 09:30:00 AM.", AR_FN_TIME_ADDHOURS_TIME_LNG_DSC: "Adds a specified number of hours to a Time. Addition of hours to a Time value allows for wrap-around so adding three hours to a Time value of 22:00:00 will return a Time value of 01:00:00.", AR_FN_TIME_ADDHOURS_TIME_LNG_RV: "Returns a Time that is the result of adding the specified number of hours to a starting Time.", AR_FN_TIME_ADDHOURS_TIME_LNG_PRM_DSC_0: "The starting Time.", AR_FN_TIME_ADDHOURS_TIME_LNG_PRM_DSC_1: "The number of hours to add to the starting Time.", AR_FN_TIME_ADDHOURS_TIME_LNG_EX_OUT_0: "A Time whose value is 09:30:00AM.", AR_FN_TIME_ADDHOURS_TIME_LNG_EX_OUT_1: "A Time whose value is 09:30:00.500PM.", AR_FN_TIME_ADDHOURS_TIME_LNG_EX_OUT_2: "A Time whose value is 12:00:00PM.", AR_FN_DSC_ADDMINUTES: "Add the specified number of minutes to a value.", AR_FN_DTM_ADDMINUTES_DTM_LNG_DSC: "Adds a specified number of minutes to a DateTime.", AR_FN_DTM_ADDMINUTES_DTM_LNG_RV: "Returns a DateTime that is the result of adding the specified number of minutes to a starting DateTime.", AR_FN_DTM_ADDMINUTES_DTM_LNG_PRM_DSC_0: "The starting DateTime.", AR_FN_DTM_ADDMINUTES_DTM_LNG_PRM_DSC_1: "The number of minutes to add to the starting DateTime.", AR_FN_DTM_ADDMINUTES_DTM_LNG_EX_OUT_0: "A DateTime of January 10, 2009 at 06:33:00 AM.", AR_FN_TIME_ADDMINUTES_TIME_LNG_DSC: "Adds a specified number of minutes to a Time. Addition of minutes to a Time value allows for wrap-around so adding 90 minutes to a Time value of 23:30:00 will return a Time value of 01:00:00.", AR_FN_TIME_ADDMINUTES_TIME_LNG_RV: "Returns a Time that is the result of adding the specified number of minutes to a starting Time.", AR_FN_TIME_ADDMINUTES_TIME_LNG_PRM_DSC_0: "The starting Time.", AR_FN_TIME_ADDMINUTES_TIME_LNG_PRM_DSC_1: "The number of minutes to add to the starting Time.", AR_FN_TIME_ADDMINUTES_TIME_LNG_EX_OUT_0: "A Time whose value is 09:00:00AM.", AR_FN_TIME_ADDMINUTES_TIME_LNG_EX_OUT_1: "A Time whose value is 08:30:00.500PM.", AR_FN_TIME_ADDMINUTES_TIME_LNG_EX_OUT_2: "A Time whose value is 00:00:00AM.", AR_FN_TIME_ADDMINUTES_TIME_LNG_EX_OUT_3: "A Time whose value is 00:30:00AM.", AR_FN_DSC_ADDSECONDS: "Add the specified number of seconds to a value.", AR_FN_DTM_ADDSECONDS_DTM_LNG_DSC: "Adds a specified number of seconds to a DateTime.", AR_FN_DTM_ADDSECONDS_DTM_LNG_RV: "Returns a DateTime that is the result of adding the specified number of seconds to a starting DateTime.", AR_FN_DTM_ADDSECONDS_DTM_LNG_PRM_DSC_0: "The starting DateTime.", AR_FN_DTM_ADDSECONDS_DTM_LNG_PRM_DSC_1: "The number of seconds to add to the starting DateTime.", AR_FN_DTM_ADDSECONDS_DTM_LNG_EX_OUT_0: "A DateTime of January 10, 2009 at 06:30:03 AM.", AR_FN_TIME_ADDSECONDS_TIME_LNG_DSC: "Adds a specified number of seconds to a Time. Addition of seconds to a Time value allows for wrap-around so adding 300 seconds to a Time value of 23:57:00 will return a Time value of 00:02:00.", AR_FN_TIME_ADDSECONDS_TIME_LNG_RV: "Returns a Time that is the result of adding the specified number of seconds to a starting Time.", AR_FN_TIME_ADDSECONDS_TIME_LNG_PRM_DSC_0: "The starting Time.", AR_FN_TIME_ADDSECONDS_TIME_LNG_PRM_DSC_1: "The number of seconds to add to the starting Time.", AR_FN_TIME_ADDSECONDS_TIME_LNG_EX_OUT_0: "A Time whose value is 00:35:30AM.", AR_FN_TIME_ADDSECONDS_TIME_LNG_EX_OUT_1: "A Time whose value is 11:30:00PM.", AR_FN_TIME_ADDSECONDS_TIME_LNG_EX_OUT_2: "A Time whose value is 06:30:00.500AM.", AR_FN_DSC_LOGICALIF: "Performs a logical if and returns one value if the supplied condition is true and a different value if the supplied condition is false.", AR_FN_ANY_LOGICALIF_BLN_ANY_ANY_DSC: "Evaluates the Boolean passed in the condition parameter and if the result is true, the value of the trueParameter is returned. Otherwise the value of falseParameter is returned. Only the trueValue or falseValue parameter will be evaluated based on the result the condition parameter. The type of data passed in to trueValue and falseValue parameters must be the same.", AR_FN_ANY_LOGICALIF_BLN_ANY_ANY_RV: "If value in the condition parameter evaluates to true, the value in the trueValue parameter is returned. If the value of the condition evaluates to false, the value of the falseValue parameter is returned.", AR_FN_ANY_LOGICALIF_BLN_ANY_ANY_PRM_DSC_0: "The condition to check. A NOT_SET Boolean is considered false.", AR_FN_ANY_LOGICALIF_BLN_ANY_ANY_PRM_DSC_1: "The value to return if the condition is true.", AR_FN_ANY_LOGICALIF_BLN_ANY_ANY_PRM_DSC_2: "The value to return if the condition is false or a NOT_SET Boolean.", AR_FN_ANY_LOGICALIF_BLN_ANY_ANY_EX_OUT_4: 'A Currency with an amount of 10.00 and code of "USD".', AR_FN_ANY_LOGICALIF_BLN_ANY_ANY_EX_OUT_5: "The DateTime of May 5th, 2009 at 10:30:00 AM in Coordinated Universal Time (UTC)", AR_FN_ANY_LOGICALIF_BLN_ANY_ANY_EX_OUT_6: "A Duration of 1 hour.", AR_FN_ANY_LOGICALIF_BLN_ANY_ANY_EX_OUT_7: 'The User with the name "Doe, John".', AR_FN_ANY_LOGICALIF_BLN_ANY_ANY_EX_OUT_8: "The Skill of Spanish.", AR_FN_ANY_LOGICALIF_BLN_ANY_ANY_EX_OUT_9: "The Date whose value is June 1st, 2010.", AR_FN_ANY_LOGICALIF_BLN_ANY_ANY_EX_OUT_10: "The Time whose value is 12:00:00PM.", AR_FN_ANY_COLL_LOGICALIF_BLN_ANY_COLL_ANY_COLL_DSC: "Evaluates the Boolean passed in the condition parameter and if the result is true, the value of the trueParameter is returned. Otherwise the value of falseParameter is returned. Only the trueValue or falseValue parameter will be evaluated based on the result the condition parameter. The type of data passed in to trueValue and falseValue parameters must be the same.", AR_FN_ANY_COLL_LOGICALIF_BLN_ANY_COLL_ANY_COLL_RV: "If value in the condition parameter evaluates to true, the value in the trueValue parameter is returned. If the value of the condition evaluates to false or a NOT_SET Boolean, the value of the falseValue parameter is returned.", AR_FN_ANY_COLL_LOGICALIF_BLN_ANY_COLL_ANY_COLL_PRM_DSC_0: "The condition to check. A NOT_SET Boolean is considered false.", AR_FN_ANY_COLL_LOGICALIF_BLN_ANY_COLL_ANY_COLL_PRM_DSC_1: "The collection value to return if the condition is true.", AR_FN_ANY_COLL_LOGICALIF_BLN_ANY_COLL_ANY_COLL_PRM_DSC_2: "The collection value to return if the condition is false or a NOT_SET Boolean.", AR_FN_ANY_COLL_LOGICALIF_BLN_ANY_COLL_ANY_COLL_EX_OUT_0: 'A currency collection with one item. The Currency item has an amount of 10.00 and code of "USD".', AR_FN_ANY_COLL_LOGICALIF_BLN_ANY_COLL_ANY_COLL_EX_OUT_1: "The collection with the Boolean value true.", AR_FN_ANY_COLL_LOGICALIF_BLN_ANY_COLL_ANY_COLL_EX_OUT_2: 'The String collection with the "hello" string in it.', AR_FN_ANY_COLL_LOGICALIF_BLN_ANY_COLL_ANY_COLL_EX_OUT_3: "The Integer collection with the value 100 in it.", AR_FN_ANY_COLL_LOGICALIF_BLN_ANY_COLL_ANY_COLL_EX_OUT_4: "The Integer collection with the value 100.5 in it.", AR_FN_ANY_COLL_LOGICALIF_BLN_ANY_COLL_ANY_COLL_EX_OUT_5: "A DateTime collection with the DateTime value of May 5th, 2009 at 10:30:00 AM in Coordinated Universal Time (UTC).", AR_FN_ANY_COLL_LOGICALIF_BLN_ANY_COLL_ANY_COLL_EX_OUT_6: "The Duration collection with the Duration of 1 hour.", AR_FN_ANY_COLL_LOGICALIF_BLN_ANY_COLL_ANY_COLL_EX_OUT_7: 'A User collection with the User whose username is "john.doe@company.com".', AR_FN_ANY_COLL_LOGICALIF_BLN_ANY_COLL_ANY_COLL_EX_OUT_8: "A Skill collection with the Skill of Spanish.", AR_FN_ANY_COLL_LOGICALIF_BLN_ANY_COLL_ANY_COLL_EX_OUT_9: "A Skill collection with one NOT_SET Skill in it.", AR_FN_ANY_COLL_LOGICALIF_BLN_ANY_COLL_ANY_COLL_EX_OUT_10: "The Date collection with one Date item whose value is June 1st, 2010.", AR_FN_ANY_COLL_LOGICALIF_BLN_ANY_COLL_ANY_COLL_EX_OUT_11: "The Time collection with one Time item whose value is 12:00:00PM.", AR_FN_AUDIO_LOGICALIF_BLN_AUDIO_AUDIO_DSC: "Evaluates the Boolean passed in the condition parameter and if the result is true, the value of the trueValueAudio is returned. Otherwise the value of falseValueAudio is returned. Only the trueValueAudio or falseValueAudio parameter will be evaluated based on the result the condition parameter. The type of data passed in to trueValueAudio and falseValueAudio parameters must be the same.", AR_FN_AUDIO_LOGICALIF_BLN_AUDIO_AUDIO_RV: "If value in the condition parameter evaluates to true, the Audio value in the trueValueAudio parameter is returned. If the value of the condition evaluates to false or a NOT_SET Boolean, the value of the falseValueAudio parameter is returned.", AR_FN_AUDIO_LOGICALIF_BLN_AUDIO_AUDIO_PRM_DSC_0: "The condition to check. A NOT_SET Boolean is considered false.", AR_FN_AUDIO_LOGICALIF_BLN_AUDIO_AUDIO_PRM_DSC_1: "The Audio value to return if the condition is true.", AR_FN_AUDIO_LOGICALIF_BLN_AUDIO_AUDIO_PRM_DSC_2: "The Audio value to return if the condition is false or a NOT_SET Boolean.", AR_FN_AUDIO_LOGICALIF_BLN_AUDIO_AUDIO_EX_OUT_0: 'Audio for the string "Hello" spoken via. text to speech.', AR_FN_DSC_AREEQUAL: "Checks whether all of the arguments are equal.", AR_FN_BLN_AREEQUAL_ANY_ANY_MORE_DSC: "Returns a Boolean saying whether all of the arguments are equal.", AR_FN_BLN_AREEQUAL_ANY_ANY_MORE_RV: "Returns true if all instances of valueToCompare are equal to the valueToCompareTo value, otherwise false.", AR_FN_BLN_AREEQUAL_ANY_ANY_MORE_PRM_DSC_0: "The value to check.", AR_FN_BLN_AREEQUAL_ANY_ANY_MORE_PRM_DSC_1: "This value will be compared to the value in the valueToCompare parameter.", AR_FN_BLN_AREEQUAL_ANY_COLL_ANY_COLL_DSC: "Checks to see if two collections are equal or not. To be considered equal, the collections must have the same number of items and each item in one collection must be equal to the corresponding element in the other collection.", AR_FN_BLN_AREEQUAL_ANY_COLL_ANY_COLL_RV: "Returns a boolean indicating if the two collections are equal or not.", AR_FN_BLN_AREEQUAL_ANY_COLL_ANY_COLL_PRM_DSC_0: "This collection will be compared to the collection in valueToCompareTo.", AR_FN_BLN_AREEQUAL_ANY_COLL_ANY_COLL_PRM_DSC_1: "The collection to check against.", AR_FN_BLN_AREEQUAL_BLN_STR_STR_MORE_DSC: "Returns a Boolean indicating if two or more String values are equal.", AR_FN_BLN_AREEQUAL_BLN_STR_STR_MORE_RV: "Returns true if value in valueToCompare is equal to the valueToCompareTo value, otherwise false.", AR_FN_BLN_AREEQUAL_BLN_STR_STR_MORE_PRM_DSC_0: "Whether or not to perform a case sensitive or case insensitive comparison of the strings.", AR_FN_BLN_AREEQUAL_BLN_STR_STR_MORE_PRM_DSC_1: "This value will be compared to the value in the valueToCompareTo parameter.", AR_FN_BLN_AREEQUAL_BLN_STR_STR_MORE_PRM_DSC_2: "The value to check against.", AR_FN_BLN_AREEQUAL_BLN_STR_COLL_STR_COLL_DSC: "Checks to see if two String collections are equal or not. To be considered equal, the collections must have the same number of items and each item in one collection must be equal to the corresponding element in the other collection.", AR_FN_BLN_AREEQUAL_BLN_STR_COLL_STR_COLL_RV: "Returns a boolean indicating if the two collections are equal or not.", AR_FN_BLN_AREEQUAL_BLN_STR_COLL_STR_COLL_PRM_DSC_0: "Whether or not to perform case sensitive or case insensitive comparisons of items in the collections.", AR_FN_BLN_AREEQUAL_BLN_STR_COLL_STR_COLL_PRM_DSC_1: "This collection will be compared to the collection in valueToCompareTo.", AR_FN_BLN_AREEQUAL_BLN_STR_COLL_STR_COLL_PRM_DSC_2: "The collection to check against.", AR_FN_DSC_ISSKILLEXPRESSIONFILTERVALID: "Determines whether a Skill Expression Filter is valid by checking if its normalized text has at least one character.", AR_FN_BLN_ISSKILLEXPRESSIONFILTERVALID_SKILLEXPRESSIONFILTER_DSC: "Returns true if the supplied skill expression filter's normalized text has at least one character. Returns false if the skill expression filter is NOT_SET or if the normalized text is empty or NOT_SET.", AR_FN_BLN_ISSKILLEXPRESSIONFILTERVALID_SKILLEXPRESSIONFILTER_RV: "Returns true if the skill expression filter's normalized text has at least one character. Returns false if the skill expression filter is NOT_SET or if the normalized text is empty or NOT_SET.", AR_FN_BLN_ISSKILLEXPRESSIONFILTERVALID_SKILLEXPRESSIONFILTER_PRM_DSC_0: "The Skill Expression Filter to validate.", AR_FN_BLN_ISSKILLEXPRESSIONFILTERVALID_SKILLEXPRESSIONFILTER_EX_OUT_0: "Returns true if the normalized text has at least one character.", AR_FN_BLN_ISSKILLEXPRESSIONFILTERVALID_SKILLEXPRESSIONFILTER_EX_OUT_1: "Returns false because the skill expression filter is NOT_SET.", AR_FN_DSC_ARESKILLEXPRESSIONFILTERSVALID: "Determines the validity of a Skill Expression Filter collection.", AR_FN_BLN_ARESKILLEXPRESSIONFILTERSVALID_SKILLEXPRESSIONFILTER_COLL_DSC: "Determines the validity of a Skill Expression Filter collection. Returns true if all Skill Expression Filters in the collection are valid. Returns false if the collection is empty or if any Skill Expression Filter in the collection is invalid.", AR_FN_BLN_ARESKILLEXPRESSIONFILTERSVALID_SKILLEXPRESSIONFILTER_COLL_RV: "Returns true if all Skill Expression Filters in the collection are valid. Returns false if the collection is empty or if any Skill Expression Filter in the collection is invalid.", AR_FN_BLN_ARESKILLEXPRESSIONFILTERSVALID_SKILLEXPRESSIONFILTER_COLL_PRM_DSC_0: "The Skill Expression Filter collection to validate.", AR_FN_BLN_ARESKILLEXPRESSIONFILTERSVALID_SKILLEXPRESSIONFILTER_COLL_EX_OUT_0: "Returns true if all Skill Expression Filters in the collection are valid.", AR_FN_BLN_ARESKILLEXPRESSIONFILTERSVALID_SKILLEXPRESSIONFILTER_COLL_EX_OUT_1: "Returns false because the collection is empty.", AR_FN_DSC_ISSET: "Determines whether or not a value is set by testing to see if it is not equal to NOT_SET.", AR_FN_BLN_ISSET_ANY_DSC: "Determines whether or not the supplied value is NOT_SET.", AR_FN_BLN_ISSET_ANY_RV: "Returns a Boolean true if the value passed in is NOT_SET.", AR_FN_BLN_ISSET_ANY_PRM_DSC_0: "The value to test to see if it is set or not.", AR_FN_BLN_ISSET_AUDIO_DSC: "Determines whether or not the supplied Audio value is NOT_SET.", AR_FN_BLN_ISSET_AUDIO_RV: "Returns a Boolean true if the Audio value passed in is NOT_SET.", AR_FN_BLN_ISSET_AUDIO_PRM_DSC_0: "The Audio value to test to see if it is set or not.", AR_FN_BLN_ISSET_NTS_DSC: "Returns a boolean false.", AR_FN_BLN_ISSET_NTS_RV: "Returns a Boolean false.", AR_FN_BLN_ISSET_NTS_PRM_DSC_0: "The value NOT_SET.", AR_FN_DSC_GETAT: "Gets an item at a specified index in a collection.", AR_FN_ANY_GETAT_ANY_COLL_LNG_DSC: "Gets an item at a specified index in a collection.", AR_FN_ANY_GETAT_ANY_COLL_LNG_RV: "Returns the item at the specified index in the collection.", AR_FN_ANY_GETAT_ANY_COLL_LNG_PRM_DSC_0: "The collection from which to get an item.", AR_FN_ANY_GETAT_ANY_COLL_LNG_PRM_DSC_1: "The zero-based index of the item to get from the collection.", AR_FN_ANY_GETAT_ANY_COLL_LNG_EX_OUT_4: 'A Currency value with a NOT_SET amount and code of "USD"', AR_FN_ANY_GETAT_ANY_COLL_LNG_EX_OUT_5: "The DateTime of May 5th, 2009 at 10:30:00 AM in Coordinated Universal Time (UTC).", AR_FN_ANY_GETAT_ANY_COLL_LNG_EX_OUT_6: "The duration of 10 days and 30 minutes.", AR_FN_ANY_GETAT_ANY_COLL_LNG_EX_OUT_7: "The Spanish Skill", AR_FN_ANY_GETAT_ANY_COLL_LNG_EX_OUT_8: 'The User with the username of "john.doe@company.com"', AR_FN_ANY_GETAT_ANY_COLL_LNG_EX_OUT_9: "A NOT_SET Skill.", AR_FN_ANY_GETAT_ANY_COLL_LNG_EX_OUT_10: "The Date whose value is January 10th, 2015.", AR_FN_ANY_GETAT_ANY_COLL_LNG_EX_OUT_11: "The Time whose value is 02:15:00PM.", AR_FN_JSON_GETAT_JSON_LNG_DSC: "For a given JSON value, if the value contains an array this returns an item from the array or if the value contains a string, this returns a character at the supplied index.", AR_FN_JSON_GETAT_JSON_LNG_RV: "Returns the item from the supplied JSON array or character from the supplied JSON string value as a JSON value.", AR_FN_JSON_GETAT_JSON_LNG_PRM_DSC_0: "The JSON value that contains an array with the item to return or string value whose character you want to return. If the supplied JSON value does not contain an array or string, this will invoke error handling. Remember the IsJsonArray or IsJsonString functions can be used to check if a JSON value contains an array or string.", AR_FN_JSON_GETAT_JSON_LNG_PRM_DSC_1: "The zero-based index of the item in the JSON value array or character position in the JSON value string to return. Attempting to access an array item or string character using a negative index or an index that is greater than or equal to the number of items in the array or length of the string will invoke error handling.", AR_FN_JSON_GETAT_JSON_LNG_EX_OUT_0: 'A JSON String containing the value "b"', AR_FN_JSON_GETAT_JSON_LNG_EX_OUT_1: 'A JSON value containing the string "l".', AR_FN_DSC_COUNT: "Gets the number of items in a collection.", AR_FN_LNG_COUNT_ANY_COLL_DSC: "Gets the number of items in a collection.", AR_FN_LNG_COUNT_ANY_COLL_RV: "Returns the number of items in a collection.", AR_FN_LNG_COUNT_ANY_COLL_PRM_DSC_0: "The Boolean collection to count.", AR_FN_LNG_COUNT_JSON_DSC: "Counts the number of items within a JSON value that contains an array.", AR_FN_LNG_COUNT_JSON_RV: "Returns the number of items in the JSON array.", AR_FN_LNG_COUNT_JSON_PRM_DSC_0: "The JSON value with the array to count. If the supplied JSON value does not contain an array, this will invoke error handling. Remember the IsJsonArray function can be used to check if a JSON value contains an array or not.", AR_FN_DSC_ESCAPEFORMARKDOWN: "Escapes text for verbatim usage in Markdown.", AR_FN_STR_ESCAPEFORMARKDOWN_STR_DSC: 'Certain characters have special meaning in Markdown syntax. For example, using the "#" character indicates text following the "#" should be rendered as a heading. In order to see characters verbatim so they are not interpreted as formatting characters, they need to be escaped with a backslash. This function escapes "\\", "`", "*", "_", "{", "}", "[", "]", "(", ")" and "#" characters by pre-pending them with a "\\" from the supplied String value.', AR_FN_STR_ESCAPEFORMARKDOWN_STR_RV: "Returns the escaped String.", AR_FN_STR_ESCAPEFORMARKDOWN_STR_PRM_DSC_0: "The String to escape for Markdown.", AR_FN_STR_ESCAPEFORMARKDOWN_STR_EX_OUT_2: "A NOT_SET String.", AR_FN_DSC_ESCAPEFORXML: "Escapes text for verbatim usage in XML.", AR_FN_STR_ESCAPEFORXML_STR_DSC: `Certain characters have special meaning in XML. For example, < and > are used to define tags in XML but if you want to need to use those characters verbatim so they are not interpreted as XML, they need to be escaped. This function escapes the " character to ", ' to ', < to <, > to > and & to &.`, AR_FN_STR_ESCAPEFORXML_STR_RV: "Returns the escaped String.", AR_FN_STR_ESCAPEFORXML_STR_PRM_DSC_0: "The String to escape for XML.", AR_FN_STR_ESCAPEFORXML_STR_EX_OUT_2: "A NOT_SET String.", AR_FN_DSC_FIND: "Finds all occurrences of an item in a collection and returns an Integer collection of indices where that item was found. If the item is not found, an empty Integer collection is returned.", AR_FN_LNG_COLL_FIND_ANY_COLL_ANY_DSC: "Finds all occurrences of an item in a collection and returns an Integer collection of indices where that item was found.", AR_FN_LNG_COLL_FIND_ANY_COLL_ANY_RV: "Returns the index of all occurrences of an item in a collection in an Integer collection. If the item is not found, an empty Integer collection is returned.", AR_FN_LNG_COLL_FIND_ANY_COLL_ANY_PRM_DSC_0: "The Collection you want to search.", AR_FN_LNG_COLL_FIND_ANY_COLL_ANY_PRM_DSC_1: "The value to find.", AR_FN_DSC_FINDFIRST: "Finds the first occurrence of an item in a collection and returns an Integer indicating the index where that item was found. If the item is not found, -1 will be returned.", AR_FN_LNG_FINDFIRST_ANY_COLL_ANY_DSC: "Finds the first occurrence of an item in a collection and returns an Integer indicating the index where that item was found.", AR_FN_LNG_FINDFIRST_ANY_COLL_ANY_RV: "Returns the index of the first occurrence of an item in a collection as an Integer. If the item is not found, -1 is returned.", AR_FN_LNG_FINDFIRST_ANY_COLL_ANY_PRM_DSC_0: "The Collection you want to search.", AR_FN_LNG_FINDFIRST_ANY_COLL_ANY_PRM_DSC_1: "The value to find.", AR_FN_DSC_FINDITEMS: "Finds all occurrences of a knowledge base document labels in a knowledge base document label collection by label name and returns an Integer collection of indices where the items were found. If the item is not found, an empty Integer collection is returned.", AR_FN_LNG_COLL_FINDITEMS_KNOWLEDGEBASEDOCUMENTLABEL_COLL_STR_DSC: "Finds all occurrences of a knowledge base document labels in a knowledge base document label collection by label name and returns an Integer collection of indices where the items were found.", AR_FN_LNG_COLL_FINDITEMS_KNOWLEDGEBASEDOCUMENTLABEL_COLL_STR_RV: "Returns the index of all occurrences of a knowledge base document labels in a collection in an Integer collection. If the item is not found, an empty Integer collection is returned.", AR_FN_LNG_COLL_FINDITEMS_KNOWLEDGEBASEDOCUMENTLABEL_COLL_STR_PRM_DSC_0: "The knowledge base document label collection.", AR_FN_LNG_COLL_FINDITEMS_KNOWLEDGEBASEDOCUMENTLABEL_COLL_STR_PRM_DSC_1: "The knowledge base document label name to find.", AR_FN_LNG_COLL_FINDITEMS_KNOWLEDGEBASEDOCUMENTLABEL_COLL_STR_EX_OUT_1: 'Returns the indices of the label "Welcome Article" as an array of Integers, if it can be found within Flow.KnowledgeBaseDocument.labels. If the supplied label is not found, this returns an empty Integer array.', AR_FN_LNG_COLL_FINDITEMS_KNOWLEDGEBASEDOCUMENTLABEL_COLL_STR_STR_DSC: "Finds all occurrences of a knowledge base document labels in a knowledge base document label collection and returns an Integer indicating the index where the items were found.", AR_FN_LNG_COLL_FINDITEMS_KNOWLEDGEBASEDOCUMENTLABEL_COLL_STR_STR_RV: "Returns the index of all occurrences of a knowledge base document labels in a collection in an Integer collection. If the item is not found, an empty Integer collection is returned.", AR_FN_LNG_COLL_FINDITEMS_KNOWLEDGEBASEDOCUMENTLABEL_COLL_STR_STR_PRM_DSC_0: "The knowledge base document label collection.", AR_FN_LNG_COLL_FINDITEMS_KNOWLEDGEBASEDOCUMENTLABEL_COLL_STR_STR_PRM_DSC_1: "The name of the knowledge base document label property to match on.", AR_FN_LNG_COLL_FINDITEMS_KNOWLEDGEBASEDOCUMENTLABEL_COLL_STR_STR_PRM_DSC_2: "The value of the knowledge base document label property to match on.", AR_FN_LNG_COLL_FINDITEMS_KNOWLEDGEBASEDOCUMENTLABEL_COLL_STR_STR_EX_OUT_1: 'Returns the indices of the label "Welcome Article" as an array of Integers, if labels with that name can be found within Flow.KnowledgeBaseDocument.labels. If the supplied label is not found, this returns an empty Integer array.', AR_FN_DSC_FINDFIRSTITEM: "Finds the first occurrences of a knowledge base document label in a knowledge base document label collection by label name and returns an Integer indicating the index where the item was found. If the item is not found, -1 will be returned", AR_FN_LNG_FINDFIRSTITEM_KNOWLEDGEBASEDOCUMENTLABEL_COLL_STR_DSC: "Finds the first occurrence of a knowledge base document label in a knowledge base document label collection by label name and returns an Integer indicating the index where that item was found.", AR_FN_LNG_FINDFIRSTITEM_KNOWLEDGEBASEDOCUMENTLABEL_COLL_STR_RV: "Returns the index of the first occurrence of a knowledge base document labels in a collection as an Integer. If the item is not found, -1 is returned.", AR_FN_LNG_FINDFIRSTITEM_KNOWLEDGEBASEDOCUMENTLABEL_COLL_STR_PRM_DSC_0: "The knowledge base document label collection.", AR_FN_LNG_FINDFIRSTITEM_KNOWLEDGEBASEDOCUMENTLABEL_COLL_STR_PRM_DSC_1: "The knowledge base document label name to find.", AR_FN_LNG_FINDFIRSTITEM_KNOWLEDGEBASEDOCUMENTLABEL_COLL_STR_EX_OUT_1: 'Returns the first index of the label "Welcome Article" as an integer, if it can be found within Flow.KnowledgeBaseDocument.labels. If the supplied label is not found, this returns -1.', AR_FN_LNG_FINDFIRSTITEM_KNOWLEDGEBASEDOCUMENT_COLL_STR_STR_DSC: "Finds the first occurrence of a knowledge base document label in a knowledge base document label collection and returns an Integer indicating the index where that item was found.", AR_FN_LNG_FINDFIRSTITEM_KNOWLEDGEBASEDOCUMENT_COLL_STR_STR_RV: "Returns the index of the first occurrence of a knowledge base document labels in a collection as an Integer. If the item is not found, -1 is returned.", AR_FN_LNG_FINDFIRSTITEM_KNOWLEDGEBASEDOCUMENT_COLL_STR_STR_PRM_DSC_0: "The knowledge base document label collection.", AR_FN_LNG_FINDFIRSTITEM_KNOWLEDGEBASEDOCUMENT_COLL_STR_STR_PRM_DSC_1: "The name of the knowledge base document label property to match on.", AR_FN_LNG_FINDFIRSTITEM_KNOWLEDGEBASEDOCUMENT_COLL_STR_STR_PRM_DSC_2: "The value of the knowledge base document label property to match on.", AR_FN_LNG_FINDFIRSTITEM_KNOWLEDGEBASEDOCUMENT_COLL_STR_STR_EX_OUT_1: 'Returns the first index of the label "Welcome Article" as an integer, if a label with that name can be found within Flow.KnowledgeBaseDocument.labels. If the supplied label is not found, this returns -1.', AR_FN_DSC_FINDJSONARRAYITEM: "Finds all occurrences of an item in a JSON value that contains an array and returns an Integer collection of indices where that item was found. If the item is not found, an empty Integer collection is returned.", AR_FN_LNG_COLL_FINDJSONARRAYITEM_JSON_ANY_DSC: "Finds all occurrences of an item in a JSON array and returns an Integer collection of indices where that item was found.", AR_FN_LNG_COLL_FINDJSONARRAYITEM_JSON_ANY_RV: "Returns the index of all occurrences of an item in a JSON array in an Integer collection. If the item is not found, an empty Integer collection is returned.", AR_FN_LNG_COLL_FINDJSONARRAYITEM_JSON_ANY_PRM_DSC_0: "The source JSON value that contains a JSON array for the find operation. If the supplied JSON value does not contain an array, this will invoke error handling. Remember the IsJsonArray function can be used to check if a JSON value contains an array or not.", AR_FN_LNG_COLL_FINDJSONARRAYITEM_JSON_ANY_PRM_DSC_1: "The value to find.", AR_FN_DSC_FINDJSONARRAYITEMFIRST: "Finds the first occurrence of an item in a JSON value that contains an array and returns an Integer indicating the index where that item was found. If the item is not found, -1 will be returned.", AR_FN_LNG_FINDJSONARRAYITEMFIRST_JSON_ANY_DSC: "Finds the first occurrence of an item in a JSON array and returns an Integer indicating the index where that item was found.", AR_FN_LNG_FINDJSONARRAYITEMFIRST_JSON_ANY_RV: "Returns the index of the first occurrence of an item in a JSON array as an Integer. If the item is not found, -1 is returned.", AR_FN_LNG_FINDJSONARRAYITEMFIRST_JSON_ANY_PRM_DSC_0: "The source JSON value that contains a JSON array for the find operation. If the supplied JSON value does not contain an array, this will invoke error handling. Remember the IsJsonArray function can be used to check if a JSON value contains an array or not.", AR_FN_LNG_FINDJSONARRAYITEMFIRST_JSON_ANY_PRM_DSC_1: "The value to find.", AR_FN_DSC_MAKELIST: "Creates a collection with the specified parameters.", AR_FN_ANY_COLL_MAKELIST_ANY_MORE_DSC: "Creates a collection with the specified items.", AR_FN_ANY_COLL_MAKELIST_ANY_MORE_RV: "Returns a collection with the specified elements.", AR_FN_ANY_COLL_MAKELIST_ANY_MORE_PRM_DSC_0: "Item to add to the collection.", AR_FN_ANY_COLL_MAKELIST_ANY_MORE_EX_OUT_0: "A Currency collection with two currency items in it.", AR_FN_ANY_COLL_MAKELIST_ANY_MORE_EX_OUT_1: "A DateTime collection with two date times in it.", AR_FN_ANY_COLL_MAKELIST_ANY_MORE_EX_OUT_2: "A Decimal collection with two items in it.", AR_FN_ANY_COLL_MAKELIST_ANY_MORE_EX_OUT_3: "A Duration collection with two items in it.", AR_FN_ANY_COLL_MAKELIST_ANY_MORE_EX_OUT_4: "An Integer collection with two items in it.", AR_FN_ANY_COLL_MAKELIST_ANY_MORE_EX_OUT_5: "A String collection with two items in it.", AR_FN_ANY_COLL_MAKELIST_ANY_MORE_EX_OUT_6: "A Boolean collection with two items in it.", AR_FN_ANY_COLL_MAKELIST_ANY_MORE_EX_OUT_7: "A User collection with two items in it.", AR_FN_ANY_COLL_MAKELIST_ANY_MORE_EX_OUT_8: "A Skill collection with two items in it.", AR_FN_ANY_COLL_MAKELIST_ANY_MORE_EX_OUT_9: "A Skill collection with two items in it.", AR_FN_ANY_COLL_MAKELIST_ANY_MORE_EX_OUT_10: "A ListPickerItem collection with two items in it", AR_FN_ANY_COLL_MAKELIST_ANY_MORE_EX_OUT_11: "A ListPickerSection collection with one items in it", AR_FN_DSC_MAKEEMPTYLIST: "Creates an empty collection based on the type value passed in.", AR_FN_ANY_COLL_MAKEEMPTYLIST_ANY_MORE_DSC: "Creates an empty collection with the type specified in the item parameter.", AR_FN_ANY_COLL_MAKEEMPTYLIST_ANY_MORE_RV: "Returns an empty collection.", AR_FN_ANY_COLL_MAKEEMPTYLIST_ANY_MORE_PRM_DSC_0: "The item whose type will determine the type of the empty collection returned.", AR_FN_ANY_COLL_MAKEEMPTYLIST_ANY_MORE_EX_OUT_0: "An empty Currency collection.", AR_FN_ANY_COLL_MAKEEMPTYLIST_ANY_MORE_EX_OUT_1: "An empty DateTime collection.", AR_FN_ANY_COLL_MAKEEMPTYLIST_ANY_MORE_EX_OUT_2: "An empty Decimal collection.", AR_FN_ANY_COLL_MAKEEMPTYLIST_ANY_MORE_EX_OUT_3: "An empty Duration collection.", AR_FN_ANY_COLL_MAKEEMPTYLIST_ANY_MORE_EX_OUT_4: "An empty Integer collection.", AR_FN_ANY_COLL_MAKEEMPTYLIST_ANY_MORE_EX_OUT_5: "An empty String collection.", AR_FN_ANY_COLL_MAKEEMPTYLIST_ANY_MORE_EX_OUT_6: "An empty Boolean collection.", AR_FN_ANY_COLL_MAKEEMPTYLIST_ANY_MORE_EX_OUT_7: "An empty User collection.", AR_FN_ANY_COLL_MAKEEMPTYLIST_ANY_MORE_EX_OUT_8: "An empty Skill collection.", AR_FN_DSC_ADDITEM: "Adds an item to a collection.", AR_FN_ANY_COLL_ADDITEM_ANY_COLL_ANY_DSC: "Adds a new item value to the end of a collection.", AR_FN_ANY_COLL_ADDITEM_ANY_COLL_ANY_RV: "Returns a new collection value whose contents is the supplied source collection plus the valueToAdd value appended to the end.", AR_FN_ANY_COLL_ADDITEM_ANY_COLL_ANY_PRM_DSC_0: "The source collection for the add operation.", AR_FN_ANY_COLL_ADDITEM_ANY_COLL_ANY_PRM_DSC_1: "The value to add to the returned collection. This must be the same data type as the source collection.", AR_FN_DSC_ADDJSONARRAYITEM: "Adds an item to a collection.", AR_FN_JSON_ADDJSONARRAYITEM_JSON_ANY_DSC: "Creates a new JSON value that contains an array with items cloned from the supplied JSON value array with the value to add item value appended to the resulting array. The supplied JSON array is left unchanged.", AR_FN_JSON_ADDJSONARRAYITEM_JSON_ANY_RV: "Returns a JSON value with the item added to the array.", AR_FN_JSON_ADDJSONARRAYITEM_JSON_ANY_PRM_DSC_0: "The JSON value that contains an array for the add operation. If the supplied JSON value does not contain an array, this will invoke error handling. Remember the IsJsonArray function can be used to check if a JSON value contains an array or not.", AR_FN_JSON_ADDJSONARRAYITEM_JSON_ANY_PRM_DSC_1: "The value to add to the array contained in the returned JSON value.", AR_FN_JSON_ADDJSONARRAYITEM_JSON_ANY_EX_OUT_0: 'A JSON value containing the following array: [ "a", 2, "c", "d" ]', AR_FN_DSC_ADDITEMAT: "Adds a new item value to a collection at a specific index.", AR_FN_ANY_COLL_ADDITEMAT_ANY_COLL_LNG_ANY_DSC: "Adds a new item to a collection by inserting it at a specified index.", AR_FN_ANY_COLL_ADDITEMAT_ANY_COLL_LNG_ANY_RV: "Returns a new collection value whose contents is the supplied source collection contents with the valueToAdd value inserted at the specified index.", AR_FN_ANY_COLL_ADDITEMAT_ANY_COLL_LNG_ANY_PRM_DSC_0: "The source collection for the add operation.", AR_FN_ANY_COLL_ADDITEMAT_ANY_COLL_LNG_ANY_PRM_DSC_1: "The zero-based index where the valueToAdd value will be inserted in the returned collection. To insert at the beginning of the returned collection, use an index value of 0. An index value less than or equal to the source collection length will append the valueToAdd item value in the returned collection.", AR_FN_ANY_COLL_ADDITEMAT_ANY_COLL_LNG_ANY_PRM_DSC_2: "The value to add to the returned collection. This must be the same data type as the source collection.", AR_FN_DSC_ADDJSONARRAYITEMAT: "Adds a new item to an array contained in a JSON value at a specific index in that array.", AR_FN_JSON_ADDJSONARRAYITEMAT_JSON_LNG_ANY_DSC: "Creates a new JSON value that contains an array with items cloned from the supplied JSON value array with the value to add inserted at the specified index. The supplied JSON array is left unchanged.", AR_FN_JSON_ADDJSONARRAYITEMAT_JSON_LNG_ANY_RV: "Returns a JSON value that contains an array with the item added at the specified index.", AR_FN_JSON_ADDJSONARRAYITEMAT_JSON_LNG_ANY_PRM_DSC_0: "The JSON value with an array for the addJsonArrayItemAt operation. If the supplied JSON value does not contain an array, this will invoke error handling. Remember the IsJsonArray function can be used to check if a JSON value contains an array or not.", AR_FN_JSON_ADDJSONARRAYITEMAT_JSON_LNG_ANY_PRM_DSC_1: "The zero-based index where the valueToAdd value will be inserted in the returned Array. To insert at the beginning of the returned Array, use an index value of 0. An index value mediumr than or equal to the source collection length will append the valueToAdd item value to the returned array.", AR_FN_JSON_ADDJSONARRAYITEMAT_JSON_LNG_ANY_PRM_DSC_2: "The value to add to the returned JSON array.", AR_FN_JSON_ADDJSONARRAYITEMAT_JSON_LNG_ANY_EX_OUT_0: 'A JSON value with an array that contains the values: [ 0, 1, 2, "Hello" ]', AR_FN_JSON_ADDJSONARRAYITEMAT_JSON_LNG_ANY_EX_OUT_1: 'A JSON value with an array that contains the values: [ "Goodbye", "Hello" ]', AR_FN_DSC_REMOVEDUPS: "Removes duplicate values from a collection.", AR_FN_ANY_COLL_REMOVEDUPS_ANY_COLL_DSC: "Removes all duplicate values from the supplied source collection and returns the resulting collection value. To determine if a collection item is a duplicate of another, this function uses the equals operator when comparing the two collection items. Duplicate values that follow the first occurrence of a value are removed from the collection.", AR_FN_ANY_COLL_REMOVEDUPS_ANY_COLL_RV: "Returns a new collection value with duplicate collection items removed.", AR_FN_ANY_COLL_REMOVEDUPS_ANY_COLL_PRM_DSC_0: "The source collection for the duplicate removal operation.", AR_FN_STR_COLL_REMOVEDUPS_STR_COLL_BLN_DSC: "Removes all duplicate String values from the source collection and returns the resulting collection value. This function has an option to perform case insensitive String value checking. Duplicate String values that follow the first occurrence of a String value are removed from the collection.", AR_FN_STR_COLL_REMOVEDUPS_STR_COLL_BLN_RV: "Returns a new collection value with duplicate String items removed.", AR_FN_STR_COLL_REMOVEDUPS_STR_COLL_BLN_PRM_DSC_0: "The source collection for the duplicate removal operation.", AR_FN_STR_COLL_REMOVEDUPS_STR_COLL_BLN_PRM_DSC_1: "Whether or not to perform case insensitive (true) or case sensitive (false) String matching to determine duplicates for String values in the source collection.", AR_FN_DSC_REMOVEJSONARRAYDUPS: "Returns a JSON value that contains an array with duplicate values removed from a supplied JSON value that contains an array.", AR_FN_JSON_REMOVEJSONARRAYDUPS_JSON_DSC: "Creates a new JSON value that contains an array with unique items cloned from the supplied JSON value array. The supplied JSON array is left unchanged.", AR_FN_JSON_REMOVEJSONARRAYDUPS_JSON_RV: "Returns a new JSON value that contains an array by cloning only unique values in the array in the supplied JSON value.", AR_FN_JSON_REMOVEJSONARRAYDUPS_JSON_PRM_DSC_0: "The source JSON value that contains an array for the duplicate removal operation. If the supplied JSON value does not contain an array, this will invoke error handling. Remember the IsJsonArray function can be used to check if a JSON value contains an array or not.", AR_FN_JSON_REMOVEJSONARRAYDUPS_JSON_EX_OUT_0: 'A JSON value that contains an array with items [ 100, 150, false, { "a": 5 } ]', AR_FN_DSC_REMOVEITEM: "Removes one or more items from a collection by value.", AR_FN_ANY_COLL_REMOVEITEM_ANY_COLL_ANY_DSC: "Removes all occurrences of a value from a collection and returns the resulting collection value.", AR_FN_ANY_COLL_REMOVEITEM_ANY_COLL_ANY_RV: "Returns a new collection value whose contents is the supplied source collection value without source collection items that were equal to the valueToRemove value.", AR_FN_ANY_COLL_REMOVEITEM_ANY_COLL_ANY_PRM_DSC_0: "The source collection for the remove operation.", AR_FN_ANY_COLL_REMOVEITEM_ANY_COLL_ANY_PRM_DSC_1: "The value to remove from the collection. This must be the same data type as the source collection.", AR_FN_ANY_COLL_REMOVEITEM_ANY_COLL_ANY_EX_OUT_4: "An empty Integer collection.", AR_FN_STR_COLL_REMOVEITEM_STR_COLL_STR_BLN_DSC: "Removes all occurrences of a String value from a String collection and returns the resulting String collection value.", AR_FN_STR_COLL_REMOVEITEM_STR_COLL_STR_BLN_RV: "Returns a new String collection value whose contents is the supplied source collection value without source collection String items whose value was equal to the valueToRemove value.", AR_FN_STR_COLL_REMOVEITEM_STR_COLL_STR_BLN_PRM_DSC_0: "The source String collection for the remove operation.", AR_FN_STR_COLL_REMOVEITEM_STR_COLL_STR_BLN_PRM_DSC_1: "The String value to remove from the collection.", AR_FN_STR_COLL_REMOVEITEM_STR_COLL_STR_BLN_PRM_DSC_2: "Whether or not to perform case insensitive (true) or case sensitive (false) matching for String values in the source collection.", AR_FN_DSC_REMOVEJSONARRAYITEM: "Removes one or more items from a JSON value that contains an array.", AR_FN_JSON_REMOVEJSONARRAYITEM_JSON_ANY_DSC: "Removes all occurrences of a value in a JSON array and returns a new JSON value with resulting JSON array. The supplied JSON array is left unchanged.", AR_FN_JSON_REMOVEJSONARRAYITEM_JSON_ANY_RV: "Returns a new JSON value that contains a JSON array without items that are equal to the supplied valueToRemove value.", AR_FN_JSON_REMOVEJSONARRAYITEM_JSON_ANY_PRM_DSC_0: "The source JSON value that contains an array for the remove operation. If the supplied JSON value does not contain an array, this will invoke error handling. Remember the IsJsonArray function can be used to check if a JSON value contains an array or not.", AR_FN_JSON_REMOVEJSONARRAYITEM_JSON_ANY_PRM_DSC_1: "The value to remove from the JSON array.", AR_FN_JSON_REMOVEJSONARRAYITEM_JSON_ANY_EX_OUT_0: 'A JSON value that contains an array of [ "There" ].', AR_FN_DSC_REMOVEITEMAT: "Removes an item from a collection at a specific index.", AR_FN_ANY_COLL_REMOVEITEMAT_ANY_COLL_LNG_DSC: "Removes an item from a collection by its index and returns the resulting collection value.", AR_FN_ANY_COLL_REMOVEITEMAT_ANY_COLL_LNG_RV: "Returns a new collection value whose contents is the supplied source collection items without the item at the specified index.", AR_FN_ANY_COLL_REMOVEITEMAT_ANY_COLL_LNG_PRM_DSC_0: "The source collection for the remove operation.", AR_FN_ANY_COLL_REMOVEITEMAT_ANY_COLL_LNG_PRM_DSC_1: "The zero-based index of the item to remove from the collection.", AR_FN_ANY_COLL_REMOVEITEMAT_ANY_COLL_LNG_EX_OUT_0: "An empty String collection.", AR_FN_DSC_REMOVEJSONARRAYITEMAT: "Removes an item from an array in a JSON value at a specific index.", AR_FN_JSON_REMOVEJSONARRAYITEMAT_JSON_LNG_DSC: "Removes a value at a specified index in a JSON array and returns a new JSON value with resulting JSON array. The supplied JSON array is left unchanged.", AR_FN_JSON_REMOVEJSONARRAYITEMAT_JSON_LNG_RV: "Returns a new JSON value that contains a JSON array without the item at the supplied array's index.", AR_FN_JSON_REMOVEJSONARRAYITEMAT_JSON_LNG_PRM_DSC_0: "The source JSON value that contains an array for the remove operation. If the supplied JSON value does not contain an array, this will invoke error handling. Remember the IsJsonArray function can be used to check if a JSON value contains an array or not.", AR_FN_JSON_REMOVEJSONARRAYITEMAT_JSON_LNG_PRM_DSC_1: "The zero-based index of the item to remove from the JSON array. If the index is less than 0 or greater than or equal to the number of items in the array, this will invoke error handling.", AR_FN_JSON_REMOVEJSONARRAYITEMAT_JSON_LNG_EX_OUT_0: "A JSON value that contains an array with items [ 100, false ].", AR_FN_JSON_REMOVEJSONARRAYITEMAT_JSON_LNG_EX_OUT_1: "A JSON value that contains an array with the item [ false ].", AR_FN_DSC_REPLACEITEM: "Replaces one or more items in a collection with a new value.", AR_FN_ANY_COLL_REPLACEITEM_ANY_COLL_ANY_ANY_DSC: "Replaces all occurrences of a value in a collection with a new value and returns the resulting collection value.", AR_FN_ANY_COLL_REPLACEITEM_ANY_COLL_ANY_ANY_RV: "Returns a new collection value whose contents is the supplied source collection value with all collection items equal to valueToReplace replaced with the newValue value.", AR_FN_ANY_COLL_REPLACEITEM_ANY_COLL_ANY_ANY_PRM_DSC_0: "The source collection for the replace operation.", AR_FN_ANY_COLL_REPLACEITEM_ANY_COLL_ANY_ANY_PRM_DSC_1: "The item value to replace in the collection. This must be the same data type as the source collection.", AR_FN_ANY_COLL_REPLACEITEM_ANY_COLL_ANY_ANY_PRM_DSC_2: "The replacement item value. This must be the same data type as the source collection.", AR_FN_STR_COLL_REPLACEITEM_STR_COLL_STR_STR_BLN_DSC: "Replaces all occurrences of a String value in a collection with a new String value and returns the resulting String collection value.", AR_FN_STR_COLL_REPLACEITEM_STR_COLL_STR_STR_BLN_RV: "Returns a new String collection value whose contents is the supplied source collection value with all String collection items equal to valueToReplace replaced with the newValue String value.", AR_FN_STR_COLL_REPLACEITEM_STR_COLL_STR_STR_BLN_PRM_DSC_0: "The source String collection for the replace operation.", AR_FN_STR_COLL_REPLACEITEM_STR_COLL_STR_STR_BLN_PRM_DSC_1: "The item String value to replace in the collection.", AR_FN_STR_COLL_REPLACEITEM_STR_COLL_STR_STR_BLN_PRM_DSC_2: "The replacement item String value.", AR_FN_STR_COLL_REPLACEITEM_STR_COLL_STR_STR_BLN_PRM_DSC_3: "Whether or not to perform case insensitive (true) or case sensitive (false) matching for String values in the source collection.", AR_FN_DSC_REPLACEJSONARRAYITEM: "Replaces one or more items from a JSON value that contains an array.", AR_FN_JSON_REPLACEJSONARRAYITEM_JSON_ANY_ANY_DSC: "Replaces all occurrences of a value in a JSON array with a new value and returns a new JSON value with resulting JSON array. The supplied JSON array is left unchanged.", AR_FN_JSON_REPLACEJSONARRAYITEM_JSON_ANY_ANY_RV: "Returns a new JSON value that contains an array with replaced values.", AR_FN_JSON_REPLACEJSONARRAYITEM_JSON_ANY_ANY_PRM_DSC_0: "The source JSON value that contains a JSON array for the replace operation. If the supplied JSON value does not contain an array, this will invoke error handling. Remember the IsJsonArray function can be used to check if a JSON value contains an array or not.", AR_FN_JSON_REPLACEJSONARRAYITEM_JSON_ANY_ANY_PRM_DSC_1: "The item value to replace in the returned array.", AR_FN_JSON_REPLACEJSONARRAYITEM_JSON_ANY_ANY_PRM_DSC_2: "The replacement item value.", AR_FN_JSON_REPLACEJSONARRAYITEM_JSON_ANY_ANY_EX_OUT_0: 'A JSON value that contains the array [ "Goodbye" ]', AR_FN_JSON_REPLACEJSONARRAYITEM_JSON_ANY_ANY_EX_OUT_1: "A JSON value that contains the array [0, 2, 4, 6, 8]", AR_FN_JSON_REPLACEJSONARRAYITEM_JSON_ANY_ANY_EX_OUT_2: "A JSON value that contains the array [0, null, 100]", AR_FN_DSC_REPLACEITEMAT: "Replaces an item in a collection at a specific index.", AR_FN_ANY_COLL_REPLACEITEMAT_ANY_COLL_LNG_ANY_DSC: "Replaces the collection item at a specified index with a new value and returns the resulting collection value.", AR_FN_ANY_COLL_REPLACEITEMAT_ANY_COLL_LNG_ANY_RV: "Returns a new collection value whose contents is the supplied source collection value with the item at the specified index set to the value of newValue.", AR_FN_ANY_COLL_REPLACEITEMAT_ANY_COLL_LNG_ANY_PRM_DSC_0: "The source collection for the replace operation.", AR_FN_ANY_COLL_REPLACEITEMAT_ANY_COLL_LNG_ANY_PRM_DSC_1: "The zero-based index of the item to replace in the collection. If the index is less than 0 or greater than or equal to the number of items in the JSON array, this will invoke error handling.", AR_FN_ANY_COLL_REPLACEITEMAT_ANY_COLL_LNG_ANY_PRM_DSC_2: "The replacement value. This must be the same data type as the source collection.", AR_FN_DSC_REPLACEJSONARRAYITEMAT: "Replaces one or more items from a JSON value that contains an array.", AR_FN_JSON_REPLACEJSONARRAYITEMAT_JSON_LNG_ANY_DSC: "Replaces an item in a JSON array at a specified index with a new value and returns a new JSON value with resulting JSON array. The supplied JSON array is left unchanged.", AR_FN_JSON_REPLACEJSONARRAYITEMAT_JSON_LNG_ANY_RV: "Returns a new JSON value that contains an array with the replaced value.", AR_FN_JSON_REPLACEJSONARRAYITEMAT_JSON_LNG_ANY_PRM_DSC_0: "The source JSON value that contains an array for the replace operation. If the supplied JSON value does not contain an array, this will invoke error handling. Remember the IsJsonArray function can be used to check if a JSON value contains an array or not.", AR_FN_JSON_REPLACEJSONARRAYITEMAT_JSON_LNG_ANY_PRM_DSC_1: "The zero-based index of the item to replace in the JSON array. If the index is less than 0 or greater than or equal to the number of items in the array, this will invoke error handling.", AR_FN_JSON_REPLACEJSONARRAYITEMAT_JSON_LNG_ANY_PRM_DSC_2: "The replacement item value.", AR_FN_JSON_REPLACEJSONARRAYITEMAT_JSON_LNG_ANY_EX_OUT_0: 'A JSON value that contains the array [ "Goodbye" ]', AR_FN_JSON_REPLACEJSONARRAYITEMAT_JSON_LNG_ANY_EX_OUT_1: "A JSON value that contains the array [0, 2, false, 5, 8]", AR_FN_JSON_REPLACEJSONARRAYITEMAT_JSON_LNG_ANY_EX_OUT_2: "A JSON value that contains the array [0, null, 100]", AR_FN_DSC_REPLACEITEMFIRST: "Replaces the first occurrence of a value in a collection with a new value and returns the resulting collection value.", AR_FN_ANY_COLL_REPLACEITEMFIRST_ANY_COLL_ANY_ANY_DSC: "Replaces the first matching occurrence of a value in a collection with a new value and returns the resulting collection value.", AR_FN_ANY_COLL_REPLACEITEMFIRST_ANY_COLL_ANY_ANY_RV: "Returns a new collection value whose contents is the supplied source collection with the first item whose value equals valueToReplace replaced with the value of newValue.", AR_FN_ANY_COLL_REPLACEITEMFIRST_ANY_COLL_ANY_ANY_PRM_DSC_0: "The source collection for the replace operation.", AR_FN_ANY_COLL_REPLACEITEMFIRST_ANY_COLL_ANY_ANY_PRM_DSC_1: "The value to replace in the collection. This must be the same data type as the source collection.", AR_FN_ANY_COLL_REPLACEITEMFIRST_ANY_COLL_ANY_ANY_PRM_DSC_2: "The replacement value. This must be the same data type as the source collection.", AR_FN_STR_COLL_REPLACEITEMFIRST_STR_COLL_STR_STR_BLN_DSC: "Replaces the first matching occurrence of a String value in a collection with a new String value and returns the resulting collection value.", AR_FN_STR_COLL_REPLACEITEMFIRST_STR_COLL_STR_STR_BLN_RV: "Returns a new collection value whose contents is the supplied source collection with the first item whose value equals valueToReplace replaced with the value of newValue.", AR_FN_STR_COLL_REPLACEITEMFIRST_STR_COLL_STR_STR_BLN_PRM_DSC_0: "The source String collection for the replace operation.", AR_FN_STR_COLL_REPLACEITEMFIRST_STR_COLL_STR_STR_BLN_PRM_DSC_1: "The String value to replace in the collection.", AR_FN_STR_COLL_REPLACEITEMFIRST_STR_COLL_STR_STR_BLN_PRM_DSC_2: "The replacement String value.", AR_FN_STR_COLL_REPLACEITEMFIRST_STR_COLL_STR_STR_BLN_PRM_DSC_3: "Whether or not to perform case insensitive (true) or case sensitive (false) matching for String values in the source collection.", AR_FN_DSC_REPLACEJSONARRAYITEMFIRST: "Replaces an array item from a JSON value that contains an array with a new value.", AR_FN_JSON_REPLACEJSONARRAYITEMFIRST_JSON_ANY_ANY_DSC: "Replaces the first occurrence of a value in a JSON array with a new value and returns a new JSON value with resulting JSON array. The supplied JSON array is left unchanged.", AR_FN_JSON_REPLACEJSONARRAYITEMFIRST_JSON_ANY_ANY_RV: "Returns a new JSON value that contains the resulting JSON array.", AR_FN_JSON_REPLACEJSONARRAYITEMFIRST_JSON_ANY_ANY_PRM_DSC_0: "The source JSON value that contains an array for the replace operation. If the supplied JSON value does not contain an array, this will invoke error handling. Remember the IsJsonArray function can be used to check if a JSON value contains an array or not.", AR_FN_JSON_REPLACEJSONARRAYITEMFIRST_JSON_ANY_ANY_PRM_DSC_1: "The item value to replace in the returned array.", AR_FN_JSON_REPLACEJSONARRAYITEMFIRST_JSON_ANY_ANY_PRM_DSC_2: "The replacement item value.", AR_FN_JSON_REPLACEJSONARRAYITEMFIRST_JSON_ANY_ANY_EX_OUT_0: 'A JSON value that contains the array [ "Goodbye" ]', AR_FN_JSON_REPLACEJSONARRAYITEMFIRST_JSON_ANY_ANY_EX_OUT_1: "A JSON value that contains the array [0, 2, 4, 6, 8, 5, 4, false]", AR_FN_JSON_REPLACEJSONARRAYITEMFIRST_JSON_ANY_ANY_EX_OUT_2: 'A JSON value that contains the array [0, null, { \\"a\\": true, \\"b\\": false }, 100]', AR_FN_DSC_TOBOOL: "Converts a value to a Boolean.", AR_FN_BLN_TOBOOL_DEC_DSC: "Converts a Decimal value to a Boolean.", AR_FN_BLN_TOBOOL_DEC_RV: "Returns true if the value in valueToConvert is not equal to 0.0, false if the value in valueToConvert is equal to 0.0 and a NOT_SET boolean if valueToConvert is NOT_SET.", AR_FN_BLN_TOBOOL_DEC_PRM_DSC_0: "The Decimal to convert to a Boolean.", AR_FN_BLN_TOBOOL_DEC_EX_OUT_3: "A NOT_SET Boolean", AR_FN_BLN_TOBOOL_STR_DSC: "Converts a String value to a Boolean.", AR_FN_BLN_TOBOOL_STR_RV: `Returns true if the value in valueToConvert is a case insensitive match to "True", "1" or "T". Returns false if the value in valueToConvert is a case insensitive match to "False", "0" or "F". If the value in valueToConvert is NOT_SET or doesn't match the true or false valid values, a NOT_SET Boolean is returned.`, AR_FN_BLN_TOBOOL_STR_PRM_DSC_0: 'The String to convert to a Boolean. Valid String values are "True", "1", "T", "False", "0", "F" and NOT_SET.', AR_FN_BLN_TOBOOL_STR_EX_OUT_9: "A NOT_SET Boolean", AR_FN_BLN_TOBOOL_STR_BLN_DSC: "Converts a String value to a Boolean value with default fallback in case the String value cannot be converted to a Boolean.", AR_FN_BLN_TOBOOL_STR_BLN_RV: "Returns the converted Boolean value.", AR_FN_BLN_TOBOOL_STR_BLN_PRM_DSC_0: "The String to convert to a Boolean. If the value in valueToConvert is a NOT_SET String, a NOT_SET Boolean is returned. If the string value cannot be converted to a Boolean value, the Boolean value supplied in the default parameter will be returned instead of invoking error handling.", AR_FN_BLN_TOBOOL_STR_BLN_PRM_DSC_1: "The default Boolean value to return instead of invoking error handling if the supplied String value cannot be converted to a Boolean.", AR_FN_BLN_TOBOOL_LNG_DSC: "Converts an Integer value to a Boolean.", AR_FN_BLN_TOBOOL_LNG_RV: "Returns true if the value in valueToConvert is not equal to 0, false if the value in valueToConvert is equal to 0 and a NOT_SET boolean if the value in valueToConvert is NOT_SET.", AR_FN_BLN_TOBOOL_LNG_PRM_DSC_0: "The Integer to convert to a Boolean.", AR_FN_BLN_TOBOOL_LNG_EX_OUT_3: "A NOT_SET Boolean", AR_FN_BLN_TOBOOL_NTS_DSC: "Converts a NOT_SET value to a NOT_SET Boolean.", AR_FN_BLN_TOBOOL_NTS_RV: "Returns a NOT_SET Boolean.", AR_FN_BLN_TOBOOL_NTS_PRM_DSC_0: "The value NOT_SET to convert to a Boolean.", AR_FN_BLN_TOBOOL_NTS_EX_OUT_0: "A NOT_SET Boolean", AR_FN_BLN_TOBOOL_BLN_DSC: "Returns a Boolean value from the supplied Boolean value.", AR_FN_BLN_TOBOOL_BLN_RV: "Returns the supplied Boolean.", AR_FN_BLN_TOBOOL_BLN_PRM_DSC_0: "The Boolean value to return.", AR_FN_BLN_TOBOOL_JSON_DSC: "Converts a JSON value to a Boolean value.", AR_FN_BLN_TOBOOL_JSON_RV: "Returns a Boolean value for the supplied JSON value.", AR_FN_BLN_TOBOOL_JSON_PRM_DSC_0: 'The JSON value to convert to Boolean. If the JSON value contains a number, the result will be true if the number is not equal to 0, otherwise false. If the JSON value contains a boolean, the result will be the boolean value. If the JSON value contains a string, the result will be true if the string value case insensitively matches "True", "T" or "1" and false if it case insensitively matches "False", "F" or "0". If the JSON value contains null, a NOT_SET Boolean is returned. Otherwise if the JSON value contains an object or an array, error handling will be invoked.', AR_FN_BLN_TOBOOL_JSON_EX_OUT_4: "A NOT_SET Boolean.", AR_FN_BLN_TOBOOL_JSON_EX_OUT_5: "A NOT_SET Boolean.", AR_FN_BLN_TOBOOL_JSON_BLN_DSC: "Converts a JSON value to a Boolean value with default fallback in case the JSON value cannot be converted to a Boolean.", AR_FN_BLN_TOBOOL_JSON_BLN_RV: "Returns a Boolean value for the supplied JSON value.", AR_FN_BLN_TOBOOL_JSON_BLN_PRM_DSC_0: 'The JSON value to convert to a Boolean. If the JSON value contains a number, the result will be true if the number is not equal to 0, otherwise false. If the JSON value contains a boolean, the result will be the boolean value. If the JSON value contains a string, the result will be true if the string value case insensitively matches "True", "T" or "1" and false if it case insensitively matches "False", "F" or "0". If the JSON value contains null, a NOT_SET Boolean is returned. Otherwise if the JSON value contains an object or an array or cannot be converted to a Boolean, the default parameter Boolean value is returned.', AR_FN_BLN_TOBOOL_JSON_BLN_PRM_DSC_1: "The default Boolean value to return instead of invoking error handling if the supplied JSON value cannot be converted to a Boolean.", AR_FN_DSC_TODIGITALAUDIO: "Converts a value to a Digital Audio.", AR_FN_DIGITALAUDIO_TODIGITALAUDIO_DIGITALAUDIO_DSC: "Returns a Digital Audio from the supplied Digital Audio value.", AR_FN_DIGITALAUDIO_TODIGITALAUDIO_DIGITALAUDIO_RV: "Returns the supplied Digital Audio value.", AR_FN_DIGITALAUDIO_TODIGITALAUDIO_DIGITALAUDIO_PRM_DSC_0: "The Digital Audio to return.", AR_FN_DIGITALAUDIO_TODIGITALAUDIO_DIGITALAUDIO_EX_OUT_0: "A NOT_SET Digital Audio.", AR_FN_DIGITALAUDIO_TODIGITALAUDIO_NTS_DSC: "Converts a NOT_SET value to a NOT_SET Digital Audio.", AR_FN_DIGITALAUDIO_TODIGITALAUDIO_NTS_RV: "Returns a NOT_SET Digital Audio.", AR_FN_DIGITALAUDIO_TODIGITALAUDIO_NTS_PRM_DSC_0: "The NOT_SET value to convert to a Digital Audio.", AR_FN_DIGITALAUDIO_TODIGITALAUDIO_NTS_EX_OUT_0: "A NOT_SET Digital Audio.", AR_FN_DIGITALAUDIO_TODIGITALAUDIO_RESPONSEASSET_DSC: "Returns a Digital Audio from the supplied Response Asset value.", AR_FN_DIGITALAUDIO_TODIGITALAUDIO_RESPONSEASSET_RV: "Returns the Digital Audio value for the supplied Response Asset value if it can be converted, otherwise a NOT_SET Digital Audio.", AR_FN_DIGITALAUDIO_TODIGITALAUDIO_RESPONSEASSET_PRM_DSC_0: "The Response Asset to convert to a Digital Audio.", AR_FN_DIGITALAUDIO_TODIGITALAUDIO_RESPONSEASSET_EX_OUT_0: "A Digital Audio value.", AR_FN_DIGITALAUDIO_TODIGITALAUDIO_RESPONSEASSET_EX_OUT_1: "A NOT_SET Digital Audio value.", AR_FN_DIGITALAUDIO_TODIGITALAUDIO_RESPONSEASSET_DIGITALAUDIO_DSC: "Converts a Response Asset value to a Digital Audio value with default fallback in case the Response Asset value cannot be converted to a Digital Audio.", AR_FN_DIGITALAUDIO_TODIGITALAUDIO_RESPONSEASSET_DIGITALAUDIO_RV: "Returns the Digital Audio value for the supplied Response Asset value if it can be converted. If the Response Asset value is NOT_SET, a NOT_SET Digital Audio is returned instead of the default value. Otherwise the supplied default Digital Audio value is returned.", AR_FN_DIGITALAUDIO_TODIGITALAUDIO_RESPONSEASSET_DIGITALAUDIO_PRM_DSC_0: "The Response Asset to convert to a DigitalAudio.", AR_FN_DIGITALAUDIO_TODIGITALAUDIO_RESPONSEASSET_DIGITALAUDIO_PRM_DSC_1: "The default Digital Audio value to return instead of invoking error handling if the supplied Response Asset cannot be converted to a Digital Audio.", AR_FN_DIGITALAUDIO_TODIGITALAUDIO_RESPONSEASSET_DIGITALAUDIO_EX_OUT_0: "A Digital Audio value.", AR_FN_DIGITALAUDIO_TODIGITALAUDIO_RESPONSEASSET_DIGITALAUDIO_EX_OUT_1: "A NOT_SET Digital Audio value.", AR_FN_DIGITALAUDIO_TODIGITALAUDIO_RESPONSEASSET_DIGITALAUDIO_EX_OUT_2: "The default Digital Audio value.", AR_FN_DSC_TODIGITALAUDIOCOLLECTION: "Converts a collection to a Digital Audio Collection.", AR_FN_DIGITALAUDIO_COLL_TODIGITALAUDIOCOLLECTION_RESPONSEASSET_COLL_DSC: "This converts a Response Asset collection to a Digital Audio collection by converting each item in the Response Asset collection to a Digital Audio item.", AR_FN_DIGITALAUDIO_COLL_TODIGITALAUDIOCOLLECTION_RESPONSEASSET_COLL_RV: "The returned Digital Audio collection will have the same number of items as the supplied Response Asset Collection. Response Asset items that cannot be converted to a Digital Audio value will be NOT_SET in the returned collection.", AR_FN_DIGITALAUDIO_COLL_TODIGITALAUDIOCOLLECTION_RESPONSEASSET_COLL_PRM_DSC_0: "The Response Asset collection to convert to a Digital Audio collection.", AR_FN_DIGITALAUDIO_COLL_TODIGITALAUDIOCOLLECTION_RESPONSEASSET_COLL_EX_OUT_0: "A Digital Audio collection with two items.", AR_FN_DSC_TODISPLAYSTRING: "Converts a value to a localized String.", AR_FN_STR_TODISPLAYSTRING_ANY_DSC: "Converts a value to a localized String.", AR_FN_STR_TODISPLAYSTRING_ANY_RV: "Returns a localized String for the value submitted in valueToConvert.", AR_FN_STR_TODISPLAYSTRING_ANY_PRM_DSC_0: "The value to convert to a String. Any NOT_SET value submitted will result in a NOT_SET String being returned.", AR_FN_STR_TODISPLAYSTRING_ANY_COLL_DSC: "Converts a collection to a localized String. The method calls ToDisplayString on each element in the collection and appends the returned value for each item to the result string. Collection items are delimited with a newline in the returned string.", AR_FN_STR_TODISPLAYSTRING_ANY_COLL_RV: "Returns a localized String for the collection submitted in valueToConvert.", AR_FN_STR_TODISPLAYSTRING_ANY_COLL_PRM_DSC_0: "The collection to convert to a String.", AR_FN_STR_TODISPLAYSTRING_ANY_COLL_STR_DSC: "Converts a collection to a localized String. The method calls ToDisplayString on each element in the collection and appends the returned value for each item to the result string. Items in the returned string are delimited with the value specified in the delimiter parameter.", AR_FN_STR_TODISPLAYSTRING_ANY_COLL_STR_RV: "Returns a localized String for the collection.", AR_FN_STR_TODISPLAYSTRING_ANY_COLL_STR_PRM_DSC_0: "The collection to convert to a String.", AR_FN_STR_TODISPLAYSTRING_ANY_COLL_STR_PRM_DSC_1: "The delimiter to use between items in the returned string. If the delimiter is a NOT_SET string, a newline will be used for the delimiter.", AR_FN_STR_TODISPLAYSTRING_CUR_LNG_DSC: "Converts a Currency value to a localized String.", AR_FN_STR_TODISPLAYSTRING_CUR_LNG_RV: "Returns a string representation of the Currency value in valueToConvert. If the value in valueToConvert is NOT_SET, a NOT_SET String is returned.", AR_FN_STR_TODISPLAYSTRING_CUR_LNG_PRM_DSC_0: "The Currency to convert to a String.", AR_FN_STR_TODISPLAYSTRING_CUR_LNG_PRM_DSC_1: "The number of decimal places to emit after the decimal point. Values will be rounded to the number of decimal places specified.", AR_FN_STR_TODISPLAYSTRING_CUR_COLL_LNG_DSC: "Converts a Currency collection to a localized String. The method calls ToDisplayString on each Currency in the collection and appends the returned value for each item to the result string. Collection items are delimited with a newline in the returned string.", AR_FN_STR_TODISPLAYSTRING_CUR_COLL_LNG_RV: "Returns a string representation of the Currency value in valueToConvert. If the value in valueToConvert is NOT_SET, a NOT_SET String is returned.", AR_FN_STR_TODISPLAYSTRING_CUR_COLL_LNG_PRM_DSC_0: "The Currency collection to convert to a String.", AR_FN_STR_TODISPLAYSTRING_CUR_COLL_LNG_PRM_DSC_1: "The number of decimal places to emit after the decimal point. Values will be rounded to the number of decimal places specified.", AR_FN_STR_TODISPLAYSTRING_CUR_COLL_STR_LNG_DSC: "Converts a Currency collection to a localized String. The method calls ToDisplayString on each Currency in the collection and appends the returned value for each item to the result string. Items in the returned string are delimited with the value specified in the delimiter parameter.", AR_FN_STR_TODISPLAYSTRING_CUR_COLL_STR_LNG_RV: "Returns a string representation of the Currency value in valueToConvert. If the value in valueToConvert is NOT_SET, a NOT_SET String is returned.", AR_FN_STR_TODISPLAYSTRING_CUR_COLL_STR_LNG_PRM_DSC_0: "The Currency to convert to a String.", AR_FN_STR_TODISPLAYSTRING_CUR_COLL_STR_LNG_PRM_DSC_1: "The delimiter to use between items in the returned string. If the delimiter is a NOT_SET string, a newline will be used.", AR_FN_STR_TODISPLAYSTRING_CUR_COLL_STR_LNG_PRM_DSC_2: "The number of decimal places to emit after the decimal point. Values will be rounded to the number of decimal places specified.", AR_FN_STR_TODISPLAYSTRING_DEC_LNG_DSC: "Converts a Decimal value to a localized String.", AR_FN_STR_TODISPLAYSTRING_DEC_LNG_RV: "Returns a string representation of the Decimal value in valueToConvert. If the value in valueToConvert is NOT_SET, a NOT_SET String is returned.", AR_FN_STR_TODISPLAYSTRING_DEC_LNG_PRM_DSC_0: "The Decimal to convert to a String.", AR_FN_STR_TODISPLAYSTRING_DEC_LNG_PRM_DSC_1: "The number of decimal places to emit after the decimal point. Values will be rounded to the number of decimal places specified.", AR_FN_STR_TODISPLAY_DEC_COLL_LNG_DSC: "Converts a Decimal collection to a localized String. The method calls ToDisplayString on each Decimal in the collection and appends the returned value for each item to the result string. Collection items are delimited with a newline in the returned string.", AR_FN_STR_TODISPLAY_DEC_COLL_LNG_RV: "Returns a localized String for the collection.", AR_FN_STR_TODISPLAY_DEC_COLL_LNG_PRM_DSC_0: "The Decimal collection to convert to a String.", AR_FN_STR_TODISPLAY_DEC_COLL_LNG_PRM_DSC_1: "The number of decimal places to emit after the decimal point for each decimal in the collection. Values will be rounded to the number of decimal places specified.", AR_FN_STR_TODISPLAYSTRING_DEC_COLL_STR_LNG_DSC: "Converts a Decimal collection to a localized String. The method calls ToDisplayString on each Decimal in the collection and appends the returned value for each item to the result string. Items in the returned string are delimited with the value specified in the delimiter parameter.", AR_FN_STR_TODISPLAYSTRING_DEC_COLL_STR_LNG_RV: "Returns a localized String for the collection.", AR_FN_STR_TODISPLAYSTRING_DEC_COLL_STR_LNG_PRM_DSC_0: "The Decimal collection to convert to a String.", AR_FN_STR_TODISPLAYSTRING_DEC_COLL_STR_LNG_PRM_DSC_1: "The delimiter to use between items in the returned string. If the delimiter is a NOT_SET string, a newline will be used.", AR_FN_STR_TODISPLAYSTRING_DEC_COLL_STR_LNG_PRM_DSC_2: "The number of decimal places to emit after the decimal point for each decimal in the collection. Values will be rounded to the number of decimal places specified.", AR_FN_STR_TODISPLAYSTRING_NTS_DSC: "Creates a NOT_SET string.", AR_FN_STR_TODISPLAYSTRING_NTS_RV: "Returns a NOT_SET String.", AR_FN_STR_TODISPLAYSTRING_NTS_PRM_DSC_0: "The value NOT_SET.", AR_FN_STR_TODISPLAYSTRING_NTS_EX_OUT_0: "A NOT_SET String", AR_FN_DSC_TOSTRING: "Converts a value to a non-localized String.", AR_FN_STR_TOSTRING_ANY_DSC: "Converts a value to a non-localized String.", AR_FN_STR_TOSTRING_ANY_RV: "Returns a non-localized String for the value submitted in valueToConvert.", AR_FN_STR_TOSTRING_ANY_PRM_DSC_0: "The value to convert to a String.", AR_FN_STR_TOSTRING_ANY_EX_OUT_4: "A NOT_SET String", AR_FN_STR_TOSTRING_ANY_EX_OUT_5: '"10.00|USD" ( currency values return two decimal places if the amount is set )', AR_FN_STR_TOSTRING_ANY_EX_OUT_7: "A NOT_SET String", AR_FN_STR_TOSTRING_ANY_EX_OUT_10: "A NOT_SET String", AR_FN_STR_TOSTRING_ANY_EX_OUT_13: "A NOT_SET String", AR_FN_STR_TOSTRING_ANY_EX_OUT_16: "A NOT_SET String", AR_FN_STR_TOSTRING_ANY_EX_OUT_18: "A NOT_SET String", AR_FN_STR_TOSTRING_ANY_EX_OUT_19: "Returns the username property from the supplied User value or a NOT_SET String if the User value itself is NOT_SET.", AR_FN_STR_TOSTRING_ANY_EX_OUT_20: '"Call back in a week" - This is the name on the Wrapup Code.', AR_FN_STR_TOSTRING_ANY_EX_OUT_21: "A NOT_SET String", AR_FN_STR_TOSTRING_ANY_EX_OUT_22: "A NOT_SET String", AR_FN_STR_TOSTRING_ANY_EX_OUT_23: "A NOT_SET String", AR_FN_STR_TOSTRING_ANY_EX_OUT_24: '"tel:+1 (317) 872-3000" ( the Phone Number uri property )', AR_FN_STR_TOSTRING_ANY_EX_OUT_25: "Returns the uri property from the supplied Phone Number value. If the Phone Number value is NOT_SET, a NOT_SET String is returned.", AR_FN_STR_TOSTRING_ANY_EX_OUT_26: "Returns the name property from the supplied Skill value. If the Skill value is NOT_SET, a NOT_SET String is returned.", AR_FN_STR_TOSTRING_ANY_EX_OUT_27: "Returns the username property from the supplied User value. If the User value is NOT_SET, a NOT_SET String is returned.", AR_FN_STR_TOSTRING_ANY_EX_OUT_28: "Returns the name property from the supplied Wrapup Code value. If the Wrapup Code value is NOT_SET, a NOT_SET String is returned.", AR_FN_STR_TOSTRING_ANY_EX_OUT_29: "Returns the String value of the Call.ContactId variable.", AR_FN_STR_TOSTRING_ANY_EX_OUT_30: "Returns the id property value from the supplied Email value.", AR_FN_STR_TOSTRING_ANY_EX_OUT_31: "Returns the id property value from the supplied Email Address value.", AR_FN_STR_TOSTRING_ANY_EX_OUT_32: "Returns the id property value from the supplied Email Attachment value.", AR_FN_STR_TOSTRING_ANY_EX_OUT_33: "Returns the id property value from the supplied External Organization value or a NOT_SET String if the External Organization value itself is NOT_SET.", AR_FN_STR_TOSTRING_ANY_EX_OUT_34: "Returns the id property value from the supplied External Contact value or a NOT_SET String if the External Contact value itself is NOT_SET.", AR_FN_STR_TOSTRING_ANY_EX_OUT_35: 'Returns a String generated from non blank properties in the External Address such as "100 Main St., Chicago, IL, 60447, USA", "Los Angeles, CA" or a NOT_SET String if the External Address value itself is NOT_SET.', AR_FN_STR_TOSTRING_ANY_EX_OUT_36: "Returns the display property from the supplied External PhoneNumber value or a NOT_SET String if the External PhoneNumber itself is NOT_SET.", AR_FN_STR_TOSTRING_ANY_EX_OUT_37: '"Welcome" - This returns the name property from the supplied Prompt value. If a Prompt value is NOT_SET, a NOT_SET String is returned.', AR_FN_STR_TOSTRING_ANY_EX_OUT_42: "Returns the id property of the supplied Workitem.", AR_FN_STR_TOSTRING_ANY_EX_OUT_49: "Returns the name property from the supplied Utilization Label. If Utilization Label value is NOT_SET, a NOT_SET String is returned.", AR_FN_STR_TOSTRING_ANY_EX_OUT_50: "Returns the name property from the supplied Worktype Status. If the Worktype Status value is NOT_SET, a NOT_SET String is returned.", AR_FN_STR_TOSTRING_ANY_EX_OUT_51: "Returns the title property of the supplied TimePicker value", AR_FN_STR_TOSTRING_NTS_DSC: "Creates a NOT_SET string.", AR_FN_STR_TOSTRING_NTS_RV: "Returns a NOT_SET String.", AR_FN_STR_TOSTRING_NTS_PRM_DSC_0: "The value NOT_SET.", AR_FN_STR_TOSTRING_NTS_EX_OUT_0: "A NOT_SET String", AR_FN_STR_TOSTRING_ANY_COLL_DSC: "Converts a collection to a non-localized String. The method calls ToString on each element in the collection and appends the returned value for each item to the result string. Collection items are delimited with a newline in the returned string.", AR_FN_STR_TOSTRING_ANY_COLL_RV: "Returns a non-localized String for the collection submitted in valueToConvert.", AR_FN_STR_TOSTRING_ANY_COLL_PRM_DSC_0: "The collection to convert to a String.", AR_FN_STR_TOSTRING_ANY_COLL_STR_DSC: "Converts a collection to a non-localized String. The method calls ToString on each element in the collection and appends the returned value for each item to the result string. Items in the returned string are delimited with the value specified in the delimiter parameter.", AR_FN_STR_TOSTRING_ANY_COLL_STR_RV: "Returns a non-localized String for the collection.", AR_FN_STR_TOSTRING_ANY_COLL_STR_PRM_DSC_0: "The collection to convert to a String.", AR_FN_STR_TOSTRING_ANY_COLL_STR_PRM_DSC_1: "The delimiter to use between items in the returned string. If the delimiter is a NOT_SET string, a newline will be used for the delimiter.", AR_FN_STR_TOSTRING_DEC_LNG_DSC: "Converts a Decimal value to a non-localized String.", AR_FN_STR_TOSTRING_DEC_LNG_RV: "Returns a string representation of the Decimal value in valueToConvert. If the value in valueToConvert is NOT_SET, a NOT_SET String is returned.", AR_FN_STR_TOSTRING_DEC_LNG_PRM_DSC_0: "The Decimal to convert to a String.", AR_FN_STR_TOSTRING_DEC_LNG_PRM_DSC_1: "The number of decimal places to emit after the decimal point. Values will be rounded to the number of decimal places specified.", AR_FN_STR_TOSTRING_DEC_LNG_EX_OUT_3: "A NOT_SET String", AR_FN_STR_TOSTRING_CUR_LNG_DSC: "Converts a Currency value to a non-localized String.", AR_FN_STR_TOSTRING_CUR_LNG_RV: "Returns a string representation of the Currency value in valueToConvert. If the value in valueToConvert is NOT_SET, a NOT_SET String is returned.", AR_FN_STR_TOSTRING_CUR_LNG_PRM_DSC_0: "The Currency to convert to a String.", AR_FN_STR_TOSTRING_CUR_LNG_PRM_DSC_1: "The number of decimal places to emit after the decimal point. Values will be rounded to the number of decimal places specified.", AR_FN_STR_TOSTRING_DEC_COLL_LNG_DSC: "Converts a Decimal collection to a non-localized String. The method calls ToString on each element in the collection and appends the returned value for each item to the result string. Collection items are delimited with a newline in the returned string.", AR_FN_STR_TOSTRING_DEC_COLL_LNG_RV: "Returns a non-localized String for the collection.", AR_FN_STR_TOSTRING_DEC_COLL_LNG_PRM_DSC_0: "The Decimal collection to convert to a String.", AR_FN_STR_TOSTRING_DEC_COLL_LNG_PRM_DSC_1: "The number of decimal places to emit after the decimal point for each decimal in the collection. Values will be rounded to the number of decimal places specified.", AR_FN_STR_TOSTRING_CUR_COLL_LNG_DSC: "Converts a Currency collection to a non-localized String.", AR_FN_STR_TOSTRING_CUR_COLL_LNG_RV: "Returns a string representation of the Currency value in valueToConvert. If the value in valueToConvert is NOT_SET, a NOT_SET String is returned.", AR_FN_STR_TOSTRING_CUR_COLL_LNG_PRM_DSC_0: "The Currency collection to convert to a String.", AR_FN_STR_TOSTRING_CUR_COLL_LNG_PRM_DSC_1: "The number of decimal places to emit after the decimal point. Values will be rounded to the number of decimal places specified.", AR_FN_STR_TOSTRING_DEC_COLL_STR_LNG_DSC: "Converts a Decimal collection to a non-localized String. The method calls ToString on each element in the collection and appends the returned value for each item to the result string. Collection items are delimited with a newline in the returned string.", AR_FN_STR_TOSTRING_DEC_COLL_STR_LNG_RV: "Returns a non-localized String for the collection.", AR_FN_STR_TOSTRING_DEC_COLL_STR_LNG_PRM_DSC_0: "The Decimal collection to convert to a String.", AR_FN_STR_TOSTRING_DEC_COLL_STR_LNG_PRM_DSC_1: "The delimiter to use between items in the returned string. If the delimiter is a NOT_SET string, a newline will be used.", AR_FN_STR_TOSTRING_DEC_COLL_STR_LNG_PRM_DSC_2: "The number of decimal places to emit after the decimal point for each decimal in the collection. Values will be rounded to the number of decimal places specified.", AR_FN_STR_TOSTRING_CUR_COLL_STR_LNG_DSC: "Converts a Currency collection to a non-localized String.", AR_FN_STR_TOSTRING_CUR_COLL_STR_LNG_RV: "Returns a string representation of the Currency value in valueToConvert. If the value in valueToConvert is NOT_SET, a NOT_SET String is returned.", AR_FN_STR_TOSTRING_CUR_COLL_STR_LNG_PRM_DSC_0: "The Currency to convert to a String.", AR_FN_STR_TOSTRING_CUR_COLL_STR_LNG_PRM_DSC_1: "The delimiter to use between items in the returned string. If the delimiter is a NOT_SET string, a newline will be used.", AR_FN_STR_TOSTRING_CUR_COLL_STR_LNG_PRM_DSC_2: "The number of decimal places to emit after the decimal point. Values will be rounded to the number of decimal places specified.", AR_FN_DSC_TOINT: "Converts a value to an Integer type.", AR_FN_LNG_TOINT_BLN_DSC: "Converts a Boolean to an Integer. True returns 1. False returns 0.", AR_FN_LNG_TOINT_BLN_RV: "Returns 1 if the value in valueToConvert is true, 0 if the value in valueToConvert is false and a NOT_SET Integer if the value in valueToConvert is a NOT_SET Boolean.", AR_FN_LNG_TOINT_BLN_PRM_DSC_0: "The Boolean to convert to an Integer.", AR_FN_LNG_TOINT_BLN_EX_OUT_2: "A NOT_SET Integer", AR_FN_LNG_TOINT_DEC_DSC: "Converts a Decimal to an Integer.", AR_FN_LNG_TOINT_DEC_RV: "Returns the integer part of the Decimal supplied in the valueToConvert parameter. If the value in valueToConvert is a NOT_SET Decimal, a NOT_SET Integer is returned.", AR_FN_LNG_TOINT_DEC_PRM_DSC_0: "The Decimal to convert to an Integer.", AR_FN_LNG_TOINT_DEC_EX_OUT_5: "A NOT_SET Integer", AR_FN_LNG_TOINT_STR_DSC: "Converts a String value to an Integer.", AR_FN_LNG_TOINT_STR_RV: "Returns the string supplied in the valueToConvert parameter as an Integer. If the value in valueToConvert is a NOT_SET String, a NOT_SET Integer is returned.", AR_FN_LNG_TOINT_STR_PRM_DSC_0: "The String to convert to an Integer.", AR_FN_LNG_TOINT_STR_EX_OUT_3: "A NOT_SET Integer", AR_FN_LNG_TOINT_STR_EX_OUT_4: "A NOT_SET Integer", AR_FN_LNG_TOINT_STR_EX_OUT_5: "A NOT_SET Integer", AR_FN_LNG_TOINT_STR_EX_OUT_6: "This would result in an error at runtime.", AR_FN_LNG_TOINT_STR_LNG_DSC: "Converts a String value to an Integer value with default fallback in case the String value cannot be converted to an Integer.", AR_FN_LNG_TOINT_STR_LNG_RV: "Returns the converted Integer value.", AR_FN_LNG_TOINT_STR_LNG_PRM_DSC_0: "The String to convert to an Integer. If the value in valueToConvert is a NOT_SET String, a NOT_SET Integer is returned. If the string value cannot be converted to an Integer value, the Integer value supplied in the default parameter will be returned instead of invoking error handling.", AR_FN_LNG_TOINT_STR_LNG_PRM_DSC_1: "The default Integer value to return instead of invoking error handling if the supplied String value cannot be converted to an Integer.", AR_FN_LNG_TOINT_STR_LNG_EX_OUT_3: "A NOT_SET Integer.", AR_FN_LNG_TOINT_STR_LNG_EX_OUT_4: "A NOT_SET Integer.", AR_FN_LNG_TOINT_NTS_DSC: "Converts a NOT_SET value to a NOT_SET Integer.", AR_FN_LNG_TOINT_NTS_RV: "Returns a NOT_SET Integer.", AR_FN_LNG_TOINT_NTS_PRM_DSC_0: "The NOT_SET value to convert to an Integer.", AR_FN_LNG_TOINT_NTS_EX_OUT_0: "A NOT_SET Integer", AR_FN_LNG_TOINT_LNG_DSC: "Returns an Integer value from the supplied Integer value.", AR_FN_LNG_TOINT_LNG_RV: "Returns the supplied Integer value.", AR_FN_LNG_TOINT_LNG_PRM_DSC_0: "The Integer value to return.", AR_FN_LNG_TOINT_DUR_DSC: "Converts a Duration to an Integer. Returns an Integer value equal to the Duration in milliseconds", AR_FN_LNG_TOINT_DUR_RV: "Returns an Integer value equal to the length of the Duration in milliseconds. Returns a NOT_SET Integer if the value in valueToConvert is a NOT_SET Duration.", AR_FN_LNG_TOINT_DUR_PRM_DSC_0: "The Duration to convert to an Integer.", AR_FN_LNG_TOINT_DUR_EX_OUT_3: "A NOT_SET Integer", AR_FN_LNG_TOINT_JSON_DSC: "Converts a JSON value to an Integer value.", AR_FN_LNG_TOINT_JSON_RV: "Returns an Integer value for the supplied JSON value.", AR_FN_LNG_TOINT_JSON_PRM_DSC_0: "The JSON value to convert to an Integer. If the JSON value contains a number, the result will be an Integer with the integral part of the number. If the JSON value contains a boolean, the result will be 1 if true, otherwise 0. If the JSON value contains a string, the runtime will attempt to convert the string value to an Integer using the same rules as the ToInt implementation that takes a String value. If the JSON value contains null, a NOT_SET Integer is returned. Otherwise if the JSON value contains an object or an array, error handling will be invoked.", AR_FN_LNG_TOINT_JSON_EX_OUT_4: "A NOT_SET Integer.", AR_FN_LNG_TOINT_JSON_EX_OUT_5: "A NOT_SET Integer.", AR_FN_LNG_TOINT_JSON_LNG_DSC: "Converts a JSON value to an Integer value with default fallback in case the JSON value cannot be converted to an Integer.", AR_FN_LNG_TOINT_JSON_LNG_RV: "Returns an Integer value for the supplied JSON value.", AR_FN_LNG_TOINT_JSON_LNG_PRM_DSC_0: "The JSON value to convert to an Integer. If the JSON value contains a number, the result will be an Integer with the integral part of the number. If the JSON value contains a boolean, the result will be 1 if true, otherwise 0. If the JSON value contains a string, the runtime will attempt to convert the string value to an Integer using the same rules as the ToInt implementation that takes a String value. If the JSON value contains null, a NOT_SET Integer is returned. Otherwise if the JSON value contains an object or an array, or the value cannot be converted to an Integer, the default parameter Integer value is returned.", AR_FN_LNG_TOINT_JSON_LNG_PRM_DSC_1: "The default Integer value to return instead of invoking error handling if the supplied JSON value cannot be converted to an Integer.", AR_FN_LNG_TOINT_JSON_LNG_EX_OUT_4: "A NOT_SET Integer.", AR_FN_DSC_TODECIMAL: "Converts a value to a Decimal.", AR_FN_DEC_TODECIMAL_BLN_DSC: "Converts a Boolean to an Decimal.", AR_FN_DEC_TODECIMAL_BLN_RV: "Returns 1.0 for the Boolean value true and 0.0 for the Boolean value False. A NOT_SET Decimal is returned if the value in valueToConvert is a NOT_SET Boolean.", AR_FN_DEC_TODECIMAL_BLN_PRM_DSC_0: "The Boolean to convert to a Decimal.", AR_FN_DEC_TODECIMAL_BLN_EX_OUT_2: "A NOT_SET Decimal", AR_FN_DEC_TODECIMAL_CUR_DSC: "Converts a Currency value to an Decimal type via. the amount in the supplied Currency value.", AR_FN_DEC_TODECIMAL_CUR_RV: "Returns a Decimal value contained on the Currency value.", AR_FN_DEC_TODECIMAL_CUR_PRM_DSC_0: "The Currency value that contains the amount to return.", AR_FN_DEC_TODECIMAL_CUR_EX_OUT_2: "A NOT_SET Decimal.", AR_FN_DEC_TODECIMAL_STR_DSC: "Converts a String value to an Decimal type.", AR_FN_DEC_TODECIMAL_STR_RV: "Returns a Decimal value from a string.", AR_FN_DEC_TODECIMAL_STR_PRM_DSC_0: "The String value to convert to a Decimal.", AR_FN_DEC_TODECIMAL_STR_EX_OUT_2: "A NOT_SET Decimal.", AR_FN_DEC_TODECIMAL_STR_EX_OUT_3: "A NOT_SET Decimal", AR_FN_DEC_TODECIMAL_STR_EX_OUT_4: "A NOT_SET Decimal", AR_FN_DEC_TODECIMAL_STR_EX_OUT_5: "This would result in an error at runtime.", AR_FN_DEC_TODECIMAL_STR_DEC_DSC: "Converts a String value to a Decimal value with default fallback in case the String value cannot be converted to a Decimal.", AR_FN_DEC_TODECIMAL_STR_DEC_RV: "Returns the converted Decimal value.", AR_FN_DEC_TODECIMAL_STR_DEC_PRM_DSC_0: "The String to convert to a Decimal. If the value in valueToConvert is a NOT_SET String, a NOT_SET Decimal is returned. If the string value cannot be converted to a Decimal value, the Decimal value supplied in the default parameter will be returned instead of invoking error handling.", AR_FN_DEC_TODECIMAL_STR_DEC_PRM_DSC_1: "The default Decimal value to return instead of invoking error handling if the supplied String value cannot be converted to a Decimal.", AR_FN_DEC_TODECIMAL_STR_DEC_EX_OUT_2: "A NOT_SET Decimal.", AR_FN_DEC_TODECIMAL_STR_DEC_EX_OUT_3: "A NOT_SET Decimal", AR_FN_DEC_TODECIMAL_LNG_DSC: "Converts an integer value to an Decimal type.", AR_FN_DEC_TODECIMAL_LNG_RV: "Returns a Decimal value for the supplied Integer value.", AR_FN_DEC_TODECIMAL_LNG_PRM_DSC_0: "The Integer value to convert to a Decimal.", AR_FN_DEC_TODECIMAL_NTS_DSC: "Converts a NOT_SET value to a NOT_SET Decimal.", AR_FN_DEC_TODECIMAL_NTS_RV: "Returns a NOT_SET Decimal.", AR_FN_DEC_TODECIMAL_NTS_PRM_DSC_0: "The NOT_SET value to convert to a NOT_SET Decimal.", AR_FN_DEC_TODECIMAL_NTS_EX_OUT_0: "A NOT_SET Decimal.", AR_FN_DEC_TODECIMAL_DEC_DSC: "Returns a Decimal value from the supplied Decimal value.", AR_FN_DEC_TODECIMAL_DEC_RV: "Returns the supplied Decimal value.", AR_FN_DEC_TODECIMAL_DEC_PRM_DSC_0: "The Decimal value to return.", AR_FN_DEC_TODECIMAL_JSON_DSC: "Converts a JSON value to a Decimal value.", AR_FN_DEC_TODECIMAL_JSON_RV: "Returns an Decimal value for the supplied JSON value.", AR_FN_DEC_TODECIMAL_JSON_PRM_DSC_0: "The JSON value convert to an Decimal. If the JSON value contains a number, the result will be a Decimal containing that value assuming the value does not exceed the minimum or maximum Decimal value supported by Architect. If the JSON value contains a boolean, the result will be 1.0 if true, otherwise 0.0. If the JSON value contains a string, the runtime will attempt to convert the string value to a Decimal using the same rules as the ToDecimal implementation that takes a String value. If the JSON value contains null, a NOT_SET Decimal is returned. Otherwise if the JSON value contains an object or an array, error handling will be invoked.", AR_FN_DEC_TODECIMAL_JSON_EX_OUT_3: "A NOT_SET Decimal.", AR_FN_DEC_TODECIMAL_JSON_EX_OUT_4: "A NOT_SET Decimal.", AR_FN_DEC_TODECIMAL_JSON_DEC_DSC: "Converts a JSON value to a Decimal value with default fallback in case the JSON value cannot be converted to a Decimal.", AR_FN_DEC_TODECIMAL_JSON_DEC_RV: "Returns a Decimal value for the supplied JSON value.", AR_FN_DEC_TODECIMAL_JSON_DEC_PRM_DSC_0: "The JSON value to convert to a Decimal. If the JSON value contains a number, the result will be a Decimal with the integral part of the number. If the JSON value contains a boolean, the result will be 1 if true, otherwise 0. If the JSON value contains a string, the runtime will attempt to convert the string value to a Decimal using the same rules as the ToDecimal implementation that takes a String value. If the JSON value contains null, a NOT_SET Decimal is returned. Otherwise if the JSON value contains an object or an array, or the value cannot be converted to a Decimal, the default parameter Decimal value is returned.", AR_FN_DEC_TODECIMAL_JSON_DEC_PRM_DSC_1: "The default Integer value to return instead of invoking error handling if the supplied JSON value cannot be converted to a Decimal.", AR_FN_DEC_TODECIMAL_JSON_DEC_EX_OUT_2: "A NOT_SET Decimal.", AR_FN_DSC_TODATE: "Converts a value to a Date.", AR_FN_DATE_TODATE_STR_DSC: "Converts a String value to a Date type.", AR_FN_DATE_TODATE_STR_RV: "Returns a Date from a supplied string.", AR_FN_DATE_TODATE_STR_PRM_DSC_0: "The String value to convert to a Date. The String must be in the following format: YYYY-MM-DD where YYYY = 4 digit year, MM = 2 digit month and DD = 2 digit day.", AR_FN_DATE_TODATE_STR_EX_OUT_0: "A Date of January 10th, 2009.", AR_FN_DATE_TODATE_STR_EX_OUT_1: "A NOT_SET Date.", AR_FN_DATE_TODATE_NTS_DSC: "Converts a NOT_SET value to a NOT_SET Date.", AR_FN_DATE_TODATE_NTS_RV: "Returns a NOT_SET Date.", AR_FN_DATE_TODATE_NTS_PRM_DSC_0: "The NOT_SET value to convert to a NOT_SET Date.", AR_FN_DATE_TODATE_NTS_EX_OUT_0: "A NOT_SET Date.", AR_FN_DATE_TODATE_DTM_DSC: "Returns a Date value from the supplied DateTime value.", AR_FN_DATE_TODATE_DTM_RV: "Returns the date portion of supplied DateTime value as a Date value.", AR_FN_DATE_TODATE_DTM_PRM_DSC_0: "The DateTime value from which to get the Date to return. If a NOT_SET DateTime value is supplied, this will return a NOT_SET Date.", AR_FN_DATE_TODATE_DTM_EX_OUT_0: "A Date whose value is September 22nd, 2012.", AR_FN_DATE_TODATE_DTM_EX_OUT_1: "A NOT_SET Date.", AR_FN_DATE_TODATE_DATE_DSC: "Returns a Date value from the supplied Date value.", AR_FN_DATE_TODATE_DATE_RV: "Returns the supplied Date value.", AR_FN_DATE_TODATE_DATE_PRM_DSC_0: "The Date value to return.", AR_FN_DATE_TODATE_DATE_EX_OUT_0: "A Date whose value is January 1st, 2003.", AR_FN_DATE_TODATE_DATE_EX_OUT_1: "A NOT_SET Date.", AR_FN_DSC_TODATETIME: "Converts a value to a DateTime.", AR_FN_DTM_TODATETIME_STR_DSC: "Converts a String value to a DateTime type.", AR_FN_DTM_TODATETIME_STR_RV: "Returns a DateTime from a supplied string. Note: The returned DateTime value will be in Coordinated Universal Time.", AR_FN_DTM_TODATETIME_STR_PRM_DSC_0: 'The String value to convert to a DateTime. The String must be in the following format: YYYY-MM-DDThh:mm:ss.SSS[Z|(+|-)hh:mm] where YYYY = 4 digit year, MM = 2 digit month, DD = 2 digit day, hh = 2 digit hour, mm = 2 digit minute, ss = 2 digit second and SSS = 3 digit fractional seconds. When specifying fractional seconds, if you specify more than 3 digits, they are ignored. "T" is a separator indicating where the time portion starts. [Z|(+|-)hh:mm] represents the offset of the date time from Coordinated Universal Time where "Z" indicates Coordinated Universal Time (UTC) itself. If "[+|-]hh:mm" is used instead of "Z" that specifies an offset from UTC. If the date portion is omitted in the supplied String value, "1970-01-01" is used. If the date portion of the String has "YYYY-MM" but no day of month, "01" is used for the day of month. If the date portion of the String has "YYYY" but no month or day of month, "01-01" is used for month and day of month. If no time portion is supplied, "00:00:00" is used. If the time portion of the String has "hh:mm" but no seconds specified, "00" is used for the seconds. Note that a time only String value with an offset such as "13:30:07+05:00" is not allowed and will invoke flow error handling.', AR_FN_DTM_TODATETIME_STR_EX_OUT_0: "A DateTime of January 10th, 2009 at 06:30:00 AM Coordinated Universal Time.", AR_FN_DTM_TODATETIME_STR_EX_OUT_1: "A DateTime of January 10th, 2009 at 01:30:00 PM Coordinated Universal Time.", AR_FN_DTM_TODATETIME_STR_EX_OUT_2: "A DateTime of January 10th, 2009 at 04:30:00 AM Coordinated Universal Time.", AR_FN_DTM_TODATETIME_STR_EX_OUT_3: "A NOT_SET DateTime.", AR_FN_DTM_TODATETIME_STR_EX_OUT_4: "A DateTime of January 1st, 2009 at 06:30:00 AM Coordinated Universal Time.", AR_FN_DTM_TODATETIME_STR_EX_OUT_5: "A DateTime of March 20th, 2010 at 06:30:00 AM Coordinated Universal Time.", AR_FN_DTM_TODATETIME_STR_EX_OUT_6: "A DateTime of March 1st, 2011 at 06:30:00 AM Coordinated Universal Time.", AR_FN_DTM_TODATETIME_STR_EX_OUT_7: "A DateTime of January 1st, 2009 at 06:30:00 AM Coordinated Universal Time.", AR_FN_DTM_TODATETIME_STR_EX_OUT_8: "A DateTime of January 1st, 2012 at 06:30:00 AM Coordinated Universal Time.", AR_FN_DTM_TODATETIME_STR_EX_OUT_9: "A DateTime of January 1st, 1970 at 06:30:00 AM Coordinated Universal Time.", AR_FN_DTM_TODATETIME_STR_EX_OUT_10: "A DateTime of January 1st, 1970 at 06:30:00 AM Coordinated Universal Time.", AR_FN_DTM_TODATETIME_STR_EX_OUT_11: "A DateTime of January 1st, 1970 at 06:00:00 AM Coordinated Universal Time.", AR_FN_DTM_TODATETIME_STR_EX_OUT_12: "A DateTime of January 1st, 1970 at 06:00:00 AM Coordinated Universal Time.", AR_FN_DTM_TODATETIME_STR_EX_OUT_13: "A DateTime of March 20th, 2009 at 12:00:00 AM Coordinated Universal Time.", AR_FN_DTM_TODATETIME_STR_EX_OUT_14: "A DateTime of March 1st, 2009 at 12:00:00 AM Coordinated Universal Time.", AR_FN_DTM_TODATETIME_STR_EX_OUT_15: "A DateTime of January 1st, 2009 at 12:00:00 AM Coordinated Universal Time.", AR_FN_DTM_TODATETIME_LNG_DSC: "Converts an Integer value to a DateTime", AR_FN_DTM_TODATETIME_LNG_RV: "Returns the supplied Integer value as a DateTime.", AR_FN_DTM_TODATETIME_LNG_PRM_DSC_0: "This converts the parameter value to a number of seconds to add to the DateTime January 1, 1970 at 12:00:00 AM in Coordinated Universal Time (UTC).", AR_FN_DTM_TODATETIME_LNG_EX_OUT_0: "A DateTime of January 1st, 1970 at 01:00:00 AM in Coordinated Universal Time (UTC).", AR_FN_DTM_TODATETIME_LNG_EX_OUT_1: "A NOT_SET DateTime.", AR_FN_DTM_TODATETIME_NTS_DSC: "Converts a NOT_SET value to a NOT_SET DateTime.", AR_FN_DTM_TODATETIME_NTS_RV: "Returns a NOT_SET DateTime.", AR_FN_DTM_TODATETIME_NTS_PRM_DSC_0: "The NOT_SET value to convert to a NOT_SET DateTime.", AR_FN_DTM_TODATETIME_NTS_EX_OUT_0: "A NOT_SET DateTime.", AR_FN_DTM_TODATETIME_DTM_DSC: "Returns a DateTime value from the supplied DateTime value.", AR_FN_DTM_TODATETIME_DTM_RV: "Returns the supplied DateTime value.", AR_FN_DTM_TODATETIME_DTM_PRM_DSC_0: "The DateTime value to return.", AR_FN_DTM_TODATETIME_DTM_EX_OUT_0: "A DateTime of January 1st, 2003 at 12:00:00 AM in Coordinated Universal Time (UTC).", AR_FN_DTM_TODATETIME_JSON_DSC: "Converts a JSON value to a DateTime type.", AR_FN_DTM_TODATETIME_JSON_RV: "Returns a DateTime from a supplied JSON Value.", AR_FN_DTM_TODATETIME_JSON_PRM_DSC_0: 'The JSON value to convert to a DateTime. If the JSON value contains a number, the resulting DateTime will be the value of that number of seconds to the DateTime January 1, 1970 at 12:00:00 AM in Coordinated Universal Time (UTC) up to three decimal places to support milliseconds. If the JSON value contains a string, the runtime will attempt to convert the string value to a DateTime using the same rules as the ToDateTime implementation that takes a String value. If the JSON value contains null, a NOT_SET DateTime is returned. Otherwise if the JSON value contains an object, an array or the value cannot be converted, error handling will be invoked. For String values, the String must be in the following format: YYYY-MM-DDThh:mm:ss.SSS[Z|(+|-)hh:mm] where YYYY = 4 digit year, MM = 2 digit month, DD = 2 digit day, hh = 2 digit hour, mm = 2 digit minute, ss = 2 digit second and SSS = 3 digit fractional seconds. When specifying fractional seconds, if you specify more than 3 digits, they are ignored. "T" is a separator indicating where the time portion starts. [Z|(+|-)hh:mm] represents the offset of the date time from Coordinated Universal Time where "Z" indicates Coordinated Universal Time (UTC) itself. If "[+|-]hh:mm" is used instead of "Z" that specifies an offset from UTC. If the date portion is omitted in the supplied String value, "1970-01-01" is used. If the date portion of the String has "YYYY-MM" but no day of month, "01" is used for the day of month. If the date portion of the String has "YYYY" but no month or day of month, "01-01" is used for month and day of month. If no time portion is supplied, "00:00:00" is used. If the time portion of the String has "hh:mm" but no seconds specified, "00" is used for the seconds. Note that a time only String value with an offset such as "13:30:07+05:00" is not allowed and will invoke flow error handling.', AR_FN_DTM_TODATETIME_JSON_EX_OUT_0: "A DateTime of January 1st, 1970 at 01:00:00 AM in Coordinated Universal Time (UTC).", AR_FN_DTM_TODATETIME_JSON_EX_OUT_1: "A DateTime of January 1st, 1970 at 01:00:00.025 AM in Coordinated Universal Time (UTC).", AR_FN_DTM_TODATETIME_JSON_EX_OUT_2: "A DateTime of January 10th, 2009 at 06:30:00 AM Coordinated Universal Time.", AR_FN_DTM_TODATETIME_JSON_EX_OUT_3: "A DateTime of January 10th, 2009 at 04:30:00 AM Coordinated Universal Time.", AR_FN_DTM_TODATETIME_JSON_EX_OUT_4: "A DateTime of January 1st, 2009 at 06:30:00 AM Coordinated Universal Time.", AR_FN_DTM_TODATETIME_JSON_EX_OUT_5: "A DateTime of March 20th, 2010 at 06:30:00 AM Coordinated Universal Time.", AR_FN_DTM_TODATETIME_JSON_EX_OUT_6: "A DateTime of March 1st, 2011 at 06:30:00 AM Coordinated Universal Time.", AR_FN_DTM_TODATETIME_JSON_EX_OUT_7: "A DateTime of January 1st, 2009 at 06:30:00 AM Coordinated Universal Time.", AR_FN_DTM_TODATETIME_JSON_EX_OUT_8: "A DateTime of January 1st, 2012 at 06:30:00 AM Coordinated Universal Time.", AR_FN_DTM_TODATETIME_JSON_EX_OUT_9: "A DateTime of January 1st, 1970 at 06:30:00 AM Coordinated Universal Time.", AR_FN_DTM_TODATETIME_JSON_EX_OUT_10: "A DateTime of January 1st, 1970 at 06:30:00 AM Coordinated Universal Time.", AR_FN_DTM_TODATETIME_JSON_EX_OUT_11: "A DateTime of January 1st, 1970 at 06:00:00 AM Coordinated Universal Time.", AR_FN_DTM_TODATETIME_JSON_EX_OUT_12: "A DateTime of January 1st, 1970 at 06:00:00 AM Coordinated Universal Time.", AR_FN_DTM_TODATETIME_JSON_EX_OUT_13: "A DateTime of March 20th, 2009 at 12:00:00 AM Coordinated Universal Time.", AR_FN_DTM_TODATETIME_JSON_EX_OUT_14: "A DateTime of March 1st, 2009 at 12:00:00 AM Coordinated Universal Time.", AR_FN_DTM_TODATETIME_JSON_EX_OUT_15: "A DateTime of January 1st, 2009 at 12:00:00 AM Coordinated Universal Time.", AR_FN_DTM_TODATETIME_JSON_EX_OUT_16: "A NOT_SET DateTime.", AR_FN_DTM_TODATETIME_JSON_EX_OUT_17: "A NOT_SET DateTime.", AR_FN_DTM_TODATETIME_JSON_DTM_DSC: "Converts a JSON value to a Datetime value with default fallback in case the JSON value cannot be converted to a DateTime.", AR_FN_DTM_TODATETIME_JSON_DTM_RV: "Returns a DateTime from a supplied JSON Value.", AR_FN_DTM_TODATETIME_JSON_DTM_PRM_DSC_0: 'The JSON value to convert to a DateTime. If the JSON value contains a number, the resulting DateTime will be the value of that number of seconds to add to the DateTime January 1, 1970 at 12:00:00 AM in Coordinated Universal Time (UTC) up to three decimal places to support milliseconds. If the JSON value contains a string, the runtime will attempt to convert the string value to a DateTime using the same rules as the ToDateTime implementation that takes a String value. If the JSON value contains null, a NOT_SET DateTime is returned. Otherwise if the JSON value contains an object, an array or the value cannot be converted, the value supplied in the default parameter will be returned. For String values, the String must be in the following format: YYYY-MM-DDThh:mm:ss.SSS[Z|(+|-)hh:mm] where YYYY = 4 digit year, MM = 2 digit month, DD = 2 digit day, hh = 2 digit hour, mm = 2 digit minute, ss = 2 digit second and SSS = 3 digit fractional seconds. When specifying fractional seconds, if you specify more than 3 digits, they are ignored. "T" is a separator indicating where the time portion starts. [Z|(+|-)hh:mm] represents the offset of the date time from Coordinated Universal Time where "Z" indicates Coordinated Universal Time (UTC) itself. If "[+|-]hh:mm" is used instead of "Z" that specifies an offset from UTC. If the date portion is omitted in the supplied String value, "1970-01-01" is used. If the date portion of the String has "YYYY-MM" but no day of month, "01" is used for the day of month. If the date portion of the String has "YYYY" but no month or day of month, "01-01" is used for month and day of month. If no time portion is supplied, "00:00:00" is used. If the time portion of the String has "hh:mm" but no seconds specified, "00" is used for the seconds. Note that a time only String value with an offset such as "13:30:07+05:00" is not allowed and will return the default value supplied in the default parameter.', AR_FN_DTM_TODATETIME_JSON_DTM_PRM_DSC_1: "The default DateTime value to return instead of invoking error handling if the supplied JSON value cannot be converted to a DateTime.", AR_FN_DTM_TODATETIME_JSON_DTM_EX_OUT_0: "A DateTime of January 1st, 1970 at 01:00:00.075 AM in Coordinated Universal Time (UTC).", AR_FN_DTM_TODATETIME_JSON_DTM_EX_OUT_1: "A DateTime of January 10th, 2009 at 06:30:00 AM Coordinated Universal Time.", AR_FN_DTM_TODATETIME_JSON_DTM_EX_OUT_2: "A DateTime of April 20th, 2019 at 12:00:00PM Coordinated Universal Time.", AR_FN_DTM_TODATETIME_JSON_DTM_EX_OUT_3: "A DateTime of February 20th, 2011 at 12:00:00PM Coordinated Universal Time.", AR_FN_DTM_TODATETIME_JSON_DTM_EX_OUT_4: "A DateTime of March 15th, 2009 at 12:00:00PM Coordinated Universal Time.", AR_FN_DTM_TODATETIME_JSON_DTM_EX_OUT_5: "A NOT_SET DateTime.", AR_FN_DSC_TOTIME: "Converts a value to a Time.", AR_FN_TIME_TOTIME_STR_DSC: "Converts a String value to a Time type.", AR_FN_TIME_TOTIME_STR_RV: "Returns a Time from a supplied string.", AR_FN_TIME_TOTIME_STR_PRM_DSC_0: "The String value to convert to a Time. The String must be in the following format: hh:mm:ss.SSS where hh = 2 digit hour, mm = 2 digit minute, ss = 2 digit second and SSS = 3 digit fractional seconds. When specifying fractional seconds, if you specify more than 3 digits, they are ignored.", AR_FN_TIME_TOTIME_STR_EX_OUT_0: "A Time whose value is 02:30:15AM.", AR_FN_TIME_TOTIME_STR_EX_OUT_1: "A NOT_SET Time.", AR_FN_TIME_TOTIME_STR_EX_OUT_2: "A Time whose value is 02:30:00AM.", AR_FN_TIME_TOTIME_STR_EX_OUT_3: "A Time whose value is 02:59:00PM.", AR_FN_TIME_TOTIME_NTS_DSC: "Converts a NOT_SET value to a NOT_SET Time.", AR_FN_TIME_TOTIME_NTS_RV: "Returns a NOT_SET Time.", AR_FN_TIME_TOTIME_NTS_PRM_DSC_0: "The NOT_SET value to convert to a NOT_SET Time.", AR_FN_TIME_TOTIME_NTS_EX_OUT_0: "A NOT_SET Time.", AR_FN_TIME_TOTIME_TIME_DSC: "Returns a Time value from the supplied Time value.", AR_FN_TIME_TOTIME_TIME_RV: "Returns the supplied Time value.", AR_FN_TIME_TOTIME_TIME_PRM_DSC_0: "The Time value to return.", AR_FN_TIME_TOTIME_TIME_EX_OUT_0: "A Time whose value is 02:45:00AM.", AR_FN_TIME_TOTIME_TIME_EX_OUT_1: "A NOT_SET Time.", AR_FN_TIME_TOTIME_DTM_DSC: "Returns a Time value from the supplied DateTime value by returning the time portion of the DateTime.", AR_FN_TIME_TOTIME_DTM_RV: "Returns the time portion of supplied DateTime value as a Time value.", AR_FN_TIME_TOTIME_DTM_PRM_DSC_0: "The DateTime value from which to get the Time to return. If a NOT_SET DateTime value is supplied, this will return a NOT_SET Time.", AR_FN_TIME_TOTIME_DTM_EX_OUT_0: "A Time whose value is 03:05:00AM.", AR_FN_TIME_TOTIME_DTM_EX_OUT_1: "A NOT_SET Time.", AR_FN_DSC_TODIVISION: "Converts a value to a Division", AR_FN_DIVISION_TODIVISION_DIVISION_DSC: "Returns a Division value from the supplied Division value.", AR_FN_DIVISION_TODIVISION_DIVISION_RV: "Returns the supplied Division value.", AR_FN_DIVISION_TODIVISION_DIVISION_PRM_DSC_0: "The Division to return.", AR_FN_DIVISION_TODIVISION_DIVISION_EX_OUT_0: "A NOT_SET Division.", AR_FN_DIVISION_TODIVISION_NTS_DSC: "Converts a NOT_SET value to a NOT_SET Division.", AR_FN_DIVISION_TODIVISION_NTS_RV: "Returns a NOT_SET Division.", AR_FN_DIVISION_TODIVISION_NTS_PRM_DSC_0: "The NOT_SET value to convert to a NOT_SET Division.", AR_FN_DIVISION_TODIVISION_NTS_EX_OUT_0: "A NOT_SET Division", AR_FN_DSC_TODURATION: "Converts a value to a Duration.", AR_FN_DUR_TODURATION_STR_DSC: "Converts a String value to a Duration.", AR_FN_DUR_TODURATION_STR_RV: "Returns a Duration value created from the supplied String.", AR_FN_DUR_TODURATION_STR_PRM_DSC_0: 'An XSD duration string in the following format (-)PnDTnHnMnS where P indicates the period, nD the number of days, T indicates the start of the time section, nH the number of hours, nM the number of minutes and nS the number of seconds. Numeric components in the string like "nD" that represent the number of days are optional if the value of n is 0. If all numeric components are 0 indicating a 0 second duration, you will still need to pass in 0S which would look like "PT0S". Note: nS may include fractional seconds up to milliseconds. Any value past milliseconds will be truncated and not returned in the resulting Duration.', AR_FN_DUR_TODURATION_STR_EX_OUT_0: "A 0 second Duration.", AR_FN_DUR_TODURATION_STR_EX_OUT_1: "A Duration of 1 day and 3 hours.", AR_FN_DUR_TODURATION_STR_EX_OUT_2: "A negative Duration of 1 day and 3 hours.", AR_FN_DUR_TODURATION_STR_EX_OUT_3: "A Duration of 1 hour, 15 minutes and 30.250 seconds.", AR_FN_DUR_TODURATION_STR_EX_OUT_4: "A Duration of 1 hour, 15 minutes and 30.250 seconds.", AR_FN_DUR_TODURATION_STR_EX_OUT_5: "A NOT_SET Duration.", AR_FN_DUR_TODURATION_LNG_DSC: "Converts an Integer value to a Duration.", AR_FN_DUR_TODURATION_LNG_RV: "Returns a Duration created from the supplied Integer value.", AR_FN_DUR_TODURATION_LNG_PRM_DSC_0: "An Integer that represents the number of milliseconds to wait.", AR_FN_DUR_TODURATION_LNG_EX_OUT_0: "A Duration of 1 hour.", AR_FN_DUR_TODURATION_LNG_EX_OUT_1: "A Duration of 1 day.", AR_FN_DUR_TODURATION_LNG_EX_OUT_2: "A NOT_SET Duration.", AR_FN_DUR_TODURATION_NTS_DSC: "Converts a NOT_SET value to a NOT_SET Duration.", AR_FN_DUR_TODURATION_NTS_RV: "Returns a NOT_SET Duration.", AR_FN_DUR_TODURATION_NTS_PRM_DSC_0: "The NOT_SET value to convert to a NOT_SET Duration.", AR_FN_DUR_TODURATION_NTS_EX_OUT_0: "A NOT_SET Duration.", AR_FN_DUR_TODURATION_DUR_DSC: "Returns a Duration from the supplied Duration value.", AR_FN_DUR_TODURATION_DUR_RV: "Returns the supplied Duration value.", AR_FN_DUR_TODURATION_DUR_PRM_DSC_0: "The Duration to return.", AR_FN_DUR_TODURATION_DUR_EX_OUT_0: "A Duration of 1 hour.", AR_FN_DSC_TOTIMESLOT: "Converts a value to a Timeslot.", AR_FN_TIMESLOT_TOTIMESLOT_TIMESLOT_DSC: "Returns a Timeslot from the supplied Timeslot value.", AR_FN_TIMESLOT_TOTIMESLOT_TIMESLOT_RV: "Returns the supplied Timeslot value.", AR_FN_TIMESLOT_TOTIMESLOT_TIMESLOT_PRM_DSC_0: "The Timeslot to return.", AR_FN_TIMESLOT_TOTIMESLOT_TIMESLOT_EX_OUT_0: "A NOT_SET Timeslot.", AR_FN_TIMESLOT_TOTIMESLOT_STR_DSC: "Converts a String value to a Timeslot.", AR_FN_TIMESLOT_TOTIMESLOT_STR_RV: "Returns a Timeslot value created from the supplied String value.", AR_FN_TIMESLOT_TOTIMESLOT_STR_PRM_DSC_0: 'The String value to convert to a Timeslot. The format should be "[dateTime]|[duration]" where dateTime is a string that is compatible with the ToDateTime implementation that takes a String value, and duration is an XSD duration.', AR_FN_TIMESLOT_TOTIMESLOT_STR_EX_OUT_0: "A Timeslot with the specified DateTime and Duration of 1 hour", AR_FN_TIMESLOT_TOTIMESLOT_NTS_DSC: "Converts a NOT_SET value to a NOT_SET Timeslot.", AR_FN_TIMESLOT_TOTIMESLOT_NTS_RV: "Returns a NOT_SET Timeslot.", AR_FN_TIMESLOT_TOTIMESLOT_NTS_PRM_DSC_0: "The NOT_SET value to convert to a Timeslot.", AR_FN_TIMESLOT_TOTIMESLOT_NTS_EX_OUT_0: "A NOT_SET Timeslot.", AR_FN_DSC_TOGRAMMAR: "Converts a value to a Grammar.", AR_FN_GRAMMAR_TOGRAMMAR_STR_DSC: "Converts a String value to a Grammar by the grammar name. The grammar has to be defined for the organization for the conversion to work. This lookup is case insensitive.", AR_FN_GRAMMAR_TOGRAMMAR_STR_RV: "Returns a Grammar from the String supplied in grammarName. If the String in grammarName is NOT_SET, a NOT_SET Grammar is returned.", AR_FN_GRAMMAR_TOGRAMMAR_STR_PRM_DSC_0: "The grammar name string to convert to a Grammar.", AR_FN_GRAMMAR_TOGRAMMAR_NTS_DSC: "Converts a NOT_SET value to a NOT_SET Grammar.", AR_FN_GRAMMAR_TOGRAMMAR_NTS_RV: "Returns a NOT_SET Grammar.", AR_FN_GRAMMAR_TOGRAMMAR_NTS_PRM_DSC_0: "The NOT_SET value to convert to a NOT_SET Grammar.", AR_FN_GRAMMAR_TOGRAMMAR_NTS_EX_OUT_0: "A NOT_SET Grammar.", AR_FN_GRAMMAR_TOGRAMMAR_GRAMMAR_DSC: "Returns a Grammar from the supplied Grammar value.", AR_FN_GRAMMAR_TOGRAMMAR_GRAMMAR_RV: "Returns the supplied Grammar value.", AR_FN_GRAMMAR_TOGRAMMAR_GRAMMAR_PRM_DSC_0: "The Grammar to return.", AR_FN_GRAMMAR_TOGRAMMAR_GRAMMAR_EX_OUT_0: "A NOT_SET Grammar.", AR_FN_DSC_TOIMAGE: "Converts a value to an Image.", AR_FN_IMAGE_TOIMAGE_IMAGE_DSC: "Returns an Image from the supplied Image value.", AR_FN_IMAGE_TOIMAGE_IMAGE_RV: "Returns the supplied Image value.", AR_FN_IMAGE_TOIMAGE_IMAGE_PRM_DSC_0: "The Image to return.", AR_FN_IMAGE_TOIMAGE_IMAGE_EX_OUT_0: "A NOT_SET Image.", AR_FN_IMAGE_TOIMAGE_NTS_DSC: "Converts a NOT_SET value to a NOT_SET Image.", AR_FN_IMAGE_TOIMAGE_NTS_RV: "Returns a NOT_SET Image.", AR_FN_IMAGE_TOIMAGE_NTS_PRM_DSC_0: "The NOT_SET value to convert to an Image.", AR_FN_IMAGE_TOIMAGE_NTS_EX_OUT_0: "A NOT_SET Image.", AR_FN_IMAGE_TOIMAGE_RESPONSEASSET_DSC: "Returns an Image from the supplied Response Asset value.", AR_FN_IMAGE_TOIMAGE_RESPONSEASSET_RV: "Returns the Image value for the supplied Response Asset value if it can be converted, otherwise a NOT_SET Image.", AR_FN_IMAGE_TOIMAGE_RESPONSEASSET_PRM_DSC_0: "The Response Asset to convert to an Image.", AR_FN_IMAGE_TOIMAGE_RESPONSEASSET_EX_OUT_0: "An Image value.", AR_FN_IMAGE_TOIMAGE_RESPONSEASSET_IMAGE_DSC: "Converts a Response Asset value to an Image value with default fallback in case the Response Asset value cannot be converted to an Image.", AR_FN_IMAGE_TOIMAGE_RESPONSEASSET_IMAGE_RV: "Returns the Image value for the supplied Response Asset value if it can be converted. If the Response Asset value is NOT_SET, a NOT_SET Image is returned instead of the default value. Otherwise the supplied default Image value is returned.", AR_FN_IMAGE_TOIMAGE_RESPONSEASSET_IMAGE_PRM_DSC_0: "The Response Asset to convert to an Image.", AR_FN_IMAGE_TOIMAGE_RESPONSEASSET_IMAGE_PRM_DSC_1: "The default Image value to return instead of invoking error handling if the supplied Response Asset cannot be converted to an Image.", AR_FN_IMAGE_TOIMAGE_RESPONSEASSET_IMAGE_EX_OUT_0: "An Image value.", AR_FN_IMAGE_TOIMAGE_RESPONSEASSET_IMAGE_EX_OUT_1: "A NOT_SET Image value.", AR_FN_IMAGE_TOIMAGE_RESPONSEASSET_IMAGE_EX_OUT_2: "The default Image value.", AR_FN_DSC_TOIMAGECOLLECTION: "Converts a collection to an Image Collection.", AR_FN_IMAGE_COLL_TOIMAGECOLLECTION_RESPONSEASSET_COLL_DSC: "This converts a Response Asset collection to an Image collection by converting each item in the Response Asset collection to an Image item.", AR_FN_IMAGE_COLL_TOIMAGECOLLECTION_RESPONSEASSET_COLL_RV: "The returned Image collection will have the same number of items as the supplied Response Asset Collection. Response Asset items that cannot be converted to an Image value will be NOT_SET in the returned collection.", AR_FN_IMAGE_COLL_TOIMAGECOLLECTION_RESPONSEASSET_COLL_PRM_DSC_0: "The Response Asset collection to convert to an Image collection.", AR_FN_IMAGE_COLL_TOIMAGECOLLECTION_RESPONSEASSET_COLL_EX_OUT_0: "An Image collection with two items.", AR_FN_DSC_TORESPONSEASSET: "Converts a value to a Response Asset.", AR_FN_RESPONSEASSET_TORESPONSEASSET_RESPONSEASSET_DSC: "Returns a Response Asset. from the supplied Response Asset value.", AR_FN_RESPONSEASSET_TORESPONSEASSET_RESPONSEASSET_RV: "Returns the supplied Response Asset value.", AR_FN_RESPONSEASSET_TORESPONSEASSET_RESPONSEASSET_PRM_DSC_0: "The Response Asset to return.", AR_FN_RESPONSEASSET_TORESPONSEASSET_RESPONSEASSET_EX_OUT_0: "A NOT_SET Response Asset.", AR_FN_RESPONSEASSET_TORESPONSEASSET_NTS_DSC: "Converts a NOT_SET value to a NOT_SET Response Asset.", AR_FN_RESPONSEASSET_TORESPONSEASSET_NTS_RV: "Returns a NOT_SET Response Asset.", AR_FN_RESPONSEASSET_TORESPONSEASSET_NTS_PRM_DSC_0: "The NOT_SET value to convert to a Response Asset.", AR_FN_RESPONSEASSET_TORESPONSEASSET_NTS_EX_OUT_0: "A NOT_SET Response Asset.", AR_FN_DSC_TOSKILL: "Converts a value to a Skill.", AR_FN_SKL_TOSKILL_STR_DSC: "Converts a String value to a Skill. The skill has to be defined for the organization for the conversion to work. This lookup is case insensitive.", AR_FN_SKL_TOSKILL_STR_RV: "Returns a Skill from the String supplied in skillName. If the String in valueToConvert is NOT_SET, a NOT_SET Skill is returned.", AR_FN_SKL_TOSKILL_STR_PRM_DSC_0: "A String that contains the name of the skill to convert to a Skill.", AR_FN_SKL_TOSKILL_NTS_DSC: "Converts a NOT_SET value to a NOT_SET Skill.", AR_FN_SKL_TOSKILL_NTS_RV: "Returns a NOT_SET Skill.", AR_FN_SKL_TOSKILL_NTS_PRM_DSC_0: "The NOT_SET value to convert to a Skill.", AR_FN_SKL_TOSKILL_NTS_EX_OUT_0: "A NOT_SET Skill.", AR_FN_SKL_TOSKILL_SKL_DSC: "Returns a Skill from the supplied Skill value.", AR_FN_SKL_TOSKILL_SKL_RV: "Returns the supplied Skill value.", AR_FN_SKL_TOSKILL_SKL_PRM_DSC_0: "The Skill to return.", AR_FN_SKL_TOSKILL_SKL_EX_OUT_0: "A NOT_SET Skill.", AR_FN_DSC_TOUSERQUEUE: "Converts a value to a User.", AR_FN_USR_TOUSER_STR_DSC: "Converts a String value to a User by the user name. The user has to be defined for the organization for the conversion to work. This lookup is case insensitive.", AR_FN_USR_TOUSER_STR_RV: "Returns a User from the String supplied in userName. If the String in userName is NOT_SET, a NOT_SET User is returned.", AR_FN_USR_TOUSER_STR_PRM_DSC_0: "The user name string to convert to a User.", AR_FN_USR_TOUSER_NTS_DSC: "Converts a NOT_SET value to a NOT_SET User.", AR_FN_USR_TOUSER_NTS_RV: "Returns a NOT_SET User.", AR_FN_USR_TOUSER_NTS_PRM_DSC_0: "The NOT_SET value to convert to a NOT_SET User.", AR_FN_USR_TOUSER_NTS_EX_OUT_0: "A NOT_SET User.", AR_FN_USR_TOUSER_USR_DSC: "Returns a User from the supplied User value.", AR_FN_USR_TOUSER_USR_RV: "Returns the supplied User value.", AR_FN_USR_TOUSER_USR_PRM_DSC_0: "The User to return.", AR_FN_USR_TOUSER_USR_EX_OUT_0: "A NOT_SET User.", AR_FN_DSC_TOLANGUAGESKILL: "Converts a value to a Language Skill.", AR_FN_LANGUAGESKILL_TOLANGUAGESKILL_STR_DSC: "Converts a String value to a Language Skill by the language tag name. The language tag name needs to be the name of a language tag in the organization for the conversion to work. This lookup is case insensitive.", AR_FN_LANGUAGESKILL_TOLANGUAGESKILL_STR_RV: "Returns a Language Skill from the String supplied in languageTag. If the String in languageTag is NOT_SET, a NOT_SET Language Skill is returned.", AR_FN_LANGUAGESKILL_TOLANGUAGESKILL_STR_PRM_DSC_0: "The rated language tag name string to convert to a Language Skill.", AR_FN_LANGUAGESKILL_TOLANGUAGESKILL_NTS_DSC: "Converts a NOT_SET value to a NOT_SET Language Skill.", AR_FN_LANGUAGESKILL_TOLANGUAGESKILL_NTS_RV: "Returns a NOT_SET Language Skill.", AR_FN_LANGUAGESKILL_TOLANGUAGESKILL_NTS_PRM_DSC_0: "The NOT_SET value to convert to a NOT_SET LanguageSkill.", AR_FN_LANGUAGESKILL_TOLANGUAGESKILL_NTS_EX_OUT_0: "A NOT_SET Language Skill.", AR_FN_LANGUAGESKILL_TOLANGUAGESKILL_LANGUAGESKILL_DSC: "Returns a Language Skill from the supplied Language Skill value.", AR_FN_LANGUAGESKILL_TOLANGUAGESKILL_LANGUAGESKILL_RV: "Returns the supplied Language Skill value.", AR_FN_LANGUAGESKILL_TOLANGUAGESKILL_LANGUAGESKILL_PRM_DSC_0: "The Language Skill to return.", AR_FN_LANGUAGESKILL_TOLANGUAGESKILL_LANGUAGESKILL_EX_OUT_0: "A NOT_SET Language Skill", AR_FN_DSC_TOQUEUE: "Converts a value to a Queue", AR_FN_QUEUE_TOQUEUE_STR_DSC: "Converts a String value to a Queue.", AR_FN_QUEUE_TOQUEUE_STR_RV: "Returns a Queue from the String supplied in valueToConvert", AR_FN_QUEUE_TOQUEUE_STR_PRM_DSC_0: "The string to convert to a Queue. This string needs to match the name of a queue.", AR_FN_QUEUE_TOQUEUE_NTS_DSC: "Converts a NOT_SET value to a NOT_SET Queue.", AR_FN_QUEUE_TOQUEUE_NTS_RV: "Returns a NOT_SET Queue.", AR_FN_QUEUE_TOQUEUE_NTS_PRM_DSC_0: "The NOT_SET value to convert to a NOT_SET Queue.", AR_FN_QUEUE_TOQUEUE_NTS_EX_OUT_0: "A NOT_SET Queue", AR_FN_QUEUE_TOQUEUE_QUEUE_DSC: "Returns a Queue from the supplied Queue value.", AR_FN_QUEUE_TOQUEUE_QUEUE_RV: "Returns the supplied Queue value.", AR_FN_QUEUE_TOQUEUE_QUEUE_PRM_DSC_0: "The Queue to return.", AR_FN_QUEUE_TOQUEUE_QUEUE_EX_OUT_0: "A NOT_SET Queue.", AR_FN_DSC_TOEMERGENCYGROUP: "Converts a value to an Emergency Group", AR_FN_EMERGRP_TOEMERGENCYGROUP_NTS_DSC: "Converts a NOT_SET value to a NOT_SET Emergency Group.", AR_FN_EMERGRP_TOEMERGENCYGROUP_NTS_RV: "Returns a NOT_SET Emergency Group.", AR_FN_EMERGRP_TOEMERGENCYGROUP_NTS_PRM_DSC_0: "The NOT_SET value to convert to a NOT_SET Emergency Group.", AR_FN_EMERGRP_TOEMERGENCYGROUP_NTS_EX_OUT_0: "A NOT_SET Emergency Group.", AR_FN_EMERGRP_TOEMERGENCYGROUP_EMERGRP_DSC: "Returns an Emergency Group from the supplied Emergency Group value.", AR_FN_EMERGRP_TOEMERGENCYGROUP_EMERGRP_RV: "Returns the supplied Emergency Group value.", AR_FN_EMERGRP_TOEMERGENCYGROUP_EMERGRP_PRM_DSC_0: "The Emergency Group to return.", AR_FN_EMERGRP_TOEMERGENCYGROUP_EMERGRP_EX_OUT_0: "A NOT_SET Emergency Group.", AR_FN_DSC_TOFILE: "Converts a value to a File.", AR_FN_FILE_TOFILE_FILE_DSC: "Returns a File from the supplied File value.", AR_FN_FILE_TOFILE_FILE_RV: "Returns the supplied File value.", AR_FN_FILE_TOFILE_FILE_PRM_DSC_0: "The File to return.", AR_FN_FILE_TOFILE_FILE_EX_OUT_0: "A NOT_SET File.", AR_FN_FILE_TOFILE_NTS_DSC: "Converts a NOT_SET value to a NOT_SET File.", AR_FN_FILE_TOFILE_NTS_RV: "Returns a NOT_SET File.", AR_FN_FILE_TOFILE_NTS_PRM_DSC_0: "The NOT_SET value to convert to a File.", AR_FN_FILE_TOFILE_NTS_EX_OUT_0: "A NOT_SET File.", AR_FN_FILE_TOFILE_RESPONSEASSET_DSC: "Returns a File from the supplied Response Asset value.", AR_FN_FILE_TOFILE_RESPONSEASSET_RV: "Returns the File value for the supplied Response Asset value if it can be converted, otherwise a NOT_SET File.", AR_FN_FILE_TOFILE_RESPONSEASSET_PRM_DSC_0: "The Response Asset to convert to a File.", AR_FN_FILE_TOFILE_RESPONSEASSET_EX_OUT_0: "A File value.", AR_FN_FILE_TOFILE_RESPONSEASSET_FILE_DSC: "Converts a Response Asset value to a File value with default fallback in case the Response Asset value cannot be converted to a File.", AR_FN_FILE_TOFILE_RESPONSEASSET_FILE_RV: "Returns the File value for the supplied Response Asset value if it can be converted. If the Response Asset value is NOT_SET, a NOT_SET File is returned instead of the default value. Otherwise the supplied default File value is returned.", AR_FN_FILE_TOFILE_RESPONSEASSET_FILE_PRM_DSC_0: "The Response Asset to convert to a File.", AR_FN_FILE_TOFILE_RESPONSEASSET_FILE_PRM_DSC_1: "The default File value to return instead of invoking error handling if the supplied Response Asset cannot be converted to a File.", AR_FN_FILE_TOFILE_RESPONSEASSET_FILE_EX_OUT_0: "A File value.", AR_FN_FILE_TOFILE_RESPONSEASSET_FILE_EX_OUT_1: "A NOT_SET File value.", AR_FN_FILE_TOFILE_RESPONSEASSET_FILE_EX_OUT_2: "The default File value.", AR_FN_DSC_TOFILECOLLECTION: "Converts a collection to a File Collection.", AR_FN_FILE_COLL_TOFILECOLLECTION_RESPONSEASSET_COLL_DSC: "This converts a Response Asset collection to a File collection by converting each item in the Response Asset collection to a File item.", AR_FN_FILE_COLL_TOFILECOLLECTION_RESPONSEASSET_COLL_RV: "The returned File collection will have the same number of items as the supplied Response Asset Collection. Response Asset items that cannot be converted to a File value will be NOT_SET in the returned collection.", AR_FN_FILE_COLL_TOFILECOLLECTION_RESPONSEASSET_COLL_PRM_DSC_0: "The Response Asset collection to convert to a File collection.", AR_FN_FILE_COLL_TOFILECOLLECTION_RESPONSEASSET_COLL_EX_OUT_0: "A File collection with two items.", AR_FN_DSC_TOGROUP: "Converts a value to a Group", AR_FN_GRP_TOGROUP_STR_DSC: "Converts a String value to a Group.", AR_FN_GRP_TOGROUP_STR_RV: "Returns a Group from the String supplied in valueToConvert", AR_FN_GRP_TOGROUP_STR_PRM_DSC_0: "The string to convert to a Group. This string needs to match the name of a group.", AR_FN_GRP_TOGROUP_NTS_DSC: "Converts a NOT_SET value to a NOT_SET Group.", AR_FN_GRP_TOGROUP_NTS_RV: "Returns a NOT_SET Group.", AR_FN_GRP_TOGROUP_NTS_PRM_DSC_0: "The NOT_SET value to convert to a NOT_SET Group.", AR_FN_GRP_TOGROUP_NTS_EX_OUT_0: "A NOT_SET Group", AR_FN_GRP_TOGROUP_GRP_DSC: "Returns a Group from the supplied Group value.", AR_FN_GRP_TOGROUP_GRP_RV: "Returns the supplied Group value.", AR_FN_GRP_TOGROUP_GRP_PRM_DSC_0: "The Group to return.", AR_FN_GRP_TOGROUP_GRP_EX_OUT_0: "A NOT_SET Group.", AR_FN_DSC_TOKNOWLEDGEBASEDOCUMENT: "Converts a value to a knowledge base document.", AR_FN_KNOWLEDGEBASEDOCUMENT_TOKNOWLEDGEBASEDOCUMENT_KNOWLEDGEBASEDOCUMENT_DSC: "Returns a knowledge base document from the supplied knowledge base document value.", AR_FN_KNOWLEDGEBASEDOCUMENT_TOKNOWLEDGEBASEDOCUMENT_KNOWLEDGEBASEDOCUMENT_RV: "Returns the supplied knowledge base document value.", AR_FN_KNOWLEDGEBASEDOCUMENT_TOKNOWLEDGEBASEDOCUMENT_KNOWLEDGEBASEDOCUMENT_PRM_DSC_0: "The knowledge base document to return.", AR_FN_KNOWLEDGEBASEDOCUMENT_TOKNOWLEDGEBASEDOCUMENT_KNOWLEDGEBASEDOCUMENT_EX_OUT_0: "A NOT_SET KnowledgeBaseDocument.", AR_FN_KNOWLEDGEBASEDOCUMENT_TOKNOWLEDGEBASEDOCUMENT_NTS_DSC: "Converts a NOT_SET value to a NOT_SET KnowledgeBaseDocument.", AR_FN_KNOWLEDGEBASEDOCUMENT_TOKNOWLEDGEBASEDOCUMENT_NTS_RV: "Returns a NOT_SET KnowledgeBaseDocument.", AR_FN_KNOWLEDGEBASEDOCUMENT_TOKNOWLEDGEBASEDOCUMENT_NTS_PRM_DSC_0: "The NOT_SET value to convert to a knowledge base document.", AR_FN_KNOWLEDGEBASEDOCUMENT_TOKNOWLEDGEBASEDOCUMENT_NTS_EX_OUT_0: "A NOT_SET knowledge base document.", AR_FN_DSC_TOVIDEO: "Converts a value to a video.", AR_FN_VIDEO_TOVIDEO_VIDEO_DSC: "Returns a video from the supplied Video value.", AR_FN_VIDEO_TOVIDEO_VIDEO_RV: "Returns the supplied Video value.", AR_FN_VIDEO_TOVIDEO_VIDEO_PRM_DSC_0: "The Video to return.", AR_FN_VIDEO_TOVIDEO_VIDEO_EX_OUT_0: "A NOT_SET Video.", AR_FN_VIDEO_TOVIDEO_NTS_DSC: "Converts a NOT_SET value to a NOT_SET Video.", AR_FN_VIDEO_TOVIDEO_NTS_RV: "Returns a NOT_SET Video.", AR_FN_VIDEO_TOVIDEO_NTS_PRM_DSC_0: "The NOT_SET value to convert to a Video.", AR_FN_VIDEO_TOVIDEO_NTS_EX_OUT_0: "A NOT_SET Video.", AR_FN_VIDEO_TOVIDEO_RESPONSEASSET_DSC: "Returns a Video from the supplied Response Asset value.", AR_FN_VIDEO_TOVIDEO_RESPONSEASSET_RV: "Returns the Video value for the supplied Response Asset value if it can be converted.", AR_FN_VIDEO_TOVIDEO_RESPONSEASSET_PRM_DSC_0: "The Response Asset to convert to a Video.", AR_FN_VIDEO_TOVIDEO_RESPONSEASSET_EX_OUT_0: "A Video value.", AR_FN_VIDEO_TOVIDEO_RESPONSEASSET_VIDEO_DSC: "Converts a Response Asset value to a Video value with default fallback in case the Response Asset value cannot be converted to a Video.", AR_FN_VIDEO_TOVIDEO_RESPONSEASSET_VIDEO_RV: "Returns the Video value for the supplied Response Asset value if it can be converted. If the Response Asset value is NOT_SET, a NOT_SET Video is returned instead of the default value. Otherwise the supplied default Video value is returned.", AR_FN_VIDEO_TOVIDEO_RESPONSEASSET_VIDEO_PRM_DSC_0: "The Response Asset to convert to a Video.", AR_FN_VIDEO_TOVIDEO_RESPONSEASSET_VIDEO_PRM_DSC_1: "The default Video value to return instead of invoking error handling if the supplied Response Asset cannot be converted to a Video.", AR_FN_VIDEO_TOVIDEO_RESPONSEASSET_VIDEO_EX_OUT_0: "A Video value.", AR_FN_VIDEO_TOVIDEO_RESPONSEASSET_VIDEO_EX_OUT_1: "A NOT_SET Video value.", AR_FN_VIDEO_TOVIDEO_RESPONSEASSET_VIDEO_EX_OUT_2: "The default Video value.", AR_FN_DSC_TOVIDEOCOLLECTION: "Converts a collection to a Video Collection.", AR_FN_VIDEO_COLL_TOVIDEOCOLLECTION_RESPONSEASSET_COLL_DSC: "This converts a Response Asset collection to a Video collection by converting each item in the Response Asset collection to a Video item.", AR_FN_VIDEO_COLL_TOVIDEOCOLLECTION_RESPONSEASSET_COLL_RV: "The returned Video collection will have the same number of items as the supplied Response Asset Collection. Response Asset items that cannot be converted to a Video value will be NOT_SET in the returned collection.", AR_FN_VIDEO_COLL_TOVIDEOCOLLECTION_RESPONSEASSET_COLL_PRM_DSC_0: "The Response Asset collection to convert to a Video collection.", AR_FN_VIDEO_COLL_TOVIDEOCOLLECTION_RESPONSEASSET_COLL_EX_OUT_0: "A Video collection with two items.", AR_FN_DSC_TOPHONENUMBER: "Converts a value to a PhoneNumber", AR_FN_PHNBR_TOPHONENUMBER_STR_DSC: "Converts a String value to a PhoneNumber.", AR_FN_PHNBR_TOPHONENUMBER_STR_RV: "Returns a PhoneNumber from the String supplied in valueToConvert", AR_FN_PHNBR_TOPHONENUMBER_STR_PRM_DSC_0: "The string to convert to a PhoneNumber.", AR_FN_PHNBR_TOPHONENUMBER_STR_EX_OUT_0: "A PhoneNumber created from the Call.Ani variable.", AR_FN_PHNBR_TOPHONENUMBER_STR_EX_OUT_1: 'A PhoneNumber with the "tel" scheme, a subscriber number of 3178723000, and E.164 phone number of +13178723000.', AR_FN_PHNBR_TOPHONENUMBER_STR_EX_IN_2: 'ToPhoneNumber("sip:john.doe@example.com")', AR_FN_PHNBR_TOPHONENUMBER_STR_EX_OUT_2: 'A PhoneNumber with a "sip" scheme and SIP URI of sip:john.doe@example.com.', AR_FN_PHNBR_TOPHONENUMBER_STR_EX_OUT_3: "A NOT_SET PhoneNumber.", AR_FN_PHNBR_TOPHONENUMBER_STR_EX_OUT_4: 'A PhoneNumber with the "tel" scheme, a subscriber number of 3178723000, and E.164 phone number of +13178723000.', AR_FN_PHNBR_TOPHONENUMBER_STR_EX_OUT_5: 'A PhoneNumber with the "tel" scheme, a subscriber number of 3178723000, and no E.164 phone number.', AR_FN_PHNBR_TOPHONENUMBER_STR_EX_IN_6: 'ToPhoneNumber("sips:john.doe@example.com")', AR_FN_PHNBR_TOPHONENUMBER_STR_EX_OUT_6: 'A PhoneNumber with a "sip" scheme and SIP URI of sips:john.doe@example.com.', AR_FN_PHNBR_TOPHONENUMBER_NTS_DSC: "Converts a NOT_SET value to a NOT_SET PhoneNumber.", AR_FN_PHNBR_TOPHONENUMBER_NTS_RV: "Returns a NOT_SET PhoneNumber.", AR_FN_PHNBR_TOPHONENUMBER_NTS_PRM_DSC_0: "The NOT_SET value to convert to a NOT_SET PhoneNumber.", AR_FN_PHNBR_TOPHONENUMBER_NTS_EX_OUT_0: "A NOT_SET PhoneNumber", AR_FN_PHNBR_TOPHONENUMBER_PHNBR_DSC: "Returns a PhoneNumber from the supplied PhoneNumber value.", AR_FN_PHNBR_TOPHONENUMBER_PHNBR_RV: "Returns the supplied PhoneNumber value.", AR_FN_PHNBR_TOPHONENUMBER_PHNBR_PRM_DSC_0: "The PhoneNumber to return.", AR_FN_PHNBR_TOPHONENUMBER_PHNBR_EX_OUT_0: "A NOT_SET PhoneNumber.", AR_FN_DSC_TOPROMPT: "Converts a value to a Prompt", AR_FN_PROMPT_TOPROMPT_NTS_DSC: "Converts a NOT_SET value to a NOT_SET Prompt.", AR_FN_PROMPT_TOPROMPT_NTS_RV: "Returns a NOT_SET Prompt.", AR_FN_PROMPT_TOPROMPT_NTS_PRM_DSC_0: "The NOT_SET value to convert to a NOT_SET Prompt.", AR_FN_PROMPT_TOPROMPT_NTS_EX_OUT_0: "A NOT_SET Prompt", AR_FN_PROMPT_TOPROMPT_PROMPT_DSC: "Returns a Prompt from the supplied Prompt value.", AR_FN_PROMPT_TOPROMPT_PROMPT_RV: "Returns the supplied Prompt value.", AR_FN_PROMPT_TOPROMPT_PROMPT_PRM_DSC_0: "The Prompt to return.", AR_FN_PROMPT_TOPROMPT_PROMPT_EX_OUT_0: "A NOT_SET Prompt.", AR_FN_DSC_TOSCHEDULE: "Converts a value to a Schedule", AR_FN_SCHED_TOSCHEDULE_NTS_DSC: "Converts a NOT_SET value to a NOT_SET Schedule.", AR_FN_SCHED_TOSCHEDULE_NTS_RV: "Returns a NOT_SET Schedule.", AR_FN_SCHED_TOSCHEDULE_NTS_PRM_DSC_0: "The NOT_SET value to convert to a NOT_SET Schedule.", AR_FN_SCHED_TOSCHEDULE_NTS_EX_OUT_0: "A NOT_SET Schedule.", AR_FN_SCHED_TOSCHEDULE_SCHED_DSC: "Returns a Schedule from the supplied Schedule value.", AR_FN_SCHED_TOSCHEDULE_SCHED_RV: "Returns the supplied Schedule value.", AR_FN_SCHED_TOSCHEDULE_SCHED_PRM_DSC_0: "The Schedule to return.", AR_FN_SCHED_TOSCHEDULE_SCHED_EX_OUT_0: "A NOT_SET Schedule.", AR_FN_DSC_TOSCHEDULEGROUP: "Converts a value to a Schedule Group", AR_FN_SCHEDGRP_TOSCHEDULEGROUP_NTS_DSC: "Converts a NOT_SET value to a NOT_SET Schedule Group.", AR_FN_SCHEDGRP_TOSCHEDULEGROUP_NTS_RV: "Returns a NOT_SET Schedule Group.", AR_FN_SCHEDGRP_TOSCHEDULEGROUP_NTS_PRM_DSC_0: "The NOT_SET value to convert to a NOT_SET Schedule Group.", AR_FN_SCHEDGRP_TOSCHEDULEGROUP_NTS_EX_OUT_0: "A NOT_SET Schedule Group.", AR_FN_SCHEDGRP_TOSCHEDULEGROUP_SCHEDGRP_DSC: "Returns a Schedule Group from the supplied Schedule Group value.", AR_FN_SCHEDGRP_TOSCHEDULEGROUP_SCHEDGRP_RV: "Returns the supplied Schedule Group value.", AR_FN_SCHEDGRP_TOSCHEDULEGROUP_SCHEDGRP_PRM_DSC_0: "The Schedule Group to return.", AR_FN_SCHEDGRP_TOSCHEDULEGROUP_SCHEDGRP_EX_OUT_0: "A NOT_SET Schedule Group.", AR_FN_DSC_TOUTILIZATIONLABEL: "Converts a value to a Utilization Label", AR_FN_UTILIZATIONLABEL_TOUTILIZATIONLABEL_NTS_DSC: "Converts a NOT_SET value to a NOT_SET Utilization Label.", AR_FN_UTILIZATIONLABEL_TOUTILIZATIONLABEL_NTS_RV: "Returns a NOT_SET Utilization Label.", AR_FN_UTILIZATIONLABEL_TOUTILIZATIONLABEL_NTS_PRM_DSC_0: "The NOT_SET value to convert to a NOT_SET Utilization Label.", AR_FN_UTILIZATIONLABEL_TOUTILIZATIONLABEL_NTS_EX_OUT_0: "A NOT_SET Utilization Label", AR_FN_UTILIZATIONLABEL_TOUTILIZATIONLABEL_UTILIZATIONLABEL_DSC: "Returns a Utilization Label from the supplied Utilization Label value.", AR_FN_UTILIZATIONLABEL_TOUTILIZATIONLABEL_UTILIZATIONLABEL_RV: "Returns the supplied Utilization Label value.", AR_FN_UTILIZATIONLABEL_TOUTILIZATIONLABEL_UTILIZATIONLABEL_PRM_DSC_0: "The Utilization Label to return.", AR_FN_UTILIZATIONLABEL_TOUTILIZATIONLABEL_UTILIZATIONLABEL_EX_OUT_0: "A NOT_SET Utilization Label.", AR_FN_DSC_TOWORKTYPESTATUS: "Converts a value to a Worktype Status", AR_FN_WORKTYPESTATUS_TOWORKTYPESTATUS_WORKTYPESTATUS_DSC: "Returns a Worktype Status value from the supplied Worktype Status value.", AR_FN_WORKTYPESTATUS_TOWORKTYPESTATUS_WORKTYPESTATUS_RV: "Returns the supplied Worktype Status value.", AR_FN_WORKTYPESTATUS_TOWORKTYPESTATUS_WORKTYPESTATUS_PRM_DSC_0: "The Worktype Status to return.", AR_FN_WORKTYPESTATUS_TOWORKTYPESTATUS_WORKTYPESTATUS_EX_OUT_0: "A NOT_SET Worktype Status.", AR_FN_WORKTYPESTATUS_TOWORKTYPESTATUS_NTS_DSC: "Converts a NOT_SET value to a NOT_SET Worktype Status.", AR_FN_WORKTYPESTATUS_TOWORKTYPESTATUS_NTS_RV: "Returns a NOT_SET Worktype Status.", AR_FN_WORKTYPESTATUS_TOWORKTYPESTATUS_NTS_PRM_DSC_0: "The NOT_SET value to convert to a NOT_SET Worktype Status.", AR_FN_WORKTYPESTATUS_TOWORKTYPESTATUS_NTS_EX_OUT_0: "A NOT_SET Worktype Status", AR_FN_DSC_TOWRAPUPCODE: "Converts a value to a Wrapup Code", AR_FN_WRC_TOWRAPUPCODE_STR_DSC: "Converts a String value to a Wrapup Code.", AR_FN_WRC_TOWRAPUPCODE_STR_RV: "Returns a Wrapup Code from the String supplied in valueToConvert", AR_FN_WRC_TOWRAPUPCODE_STR_PRM_DSC_0: "The String to convert to a Wrapup Code. This string needs to match the name of a wrapup code.", AR_FN_WRC_TOWRAPUPCODE_NTS_DSC: "Converts a NOT_SET value to a NOT_SET Wrapup Code.", AR_FN_WRC_TOWRAPUPCODE_NTS_RV: "Returns a NOT_SET Wrapup Code.", AR_FN_WRC_TOWRAPUPCODE_NTS_PRM_DSC_0: "The NOT_SET value to convert to a NOT_SET Wrapup Code.", AR_FN_WRC_TOWRAPUPCODE_NTS_EX_OUT_0: "A NOT_SET Wrapup Code", AR_FN_WRC_TOWRAPUPCODE_WRC_DSC: "Returns a Wrapup Code from the supplied Wrapup Code value.", AR_FN_WRC_TOWRAPUPCODE_WRC_RV: "Returns the supplied Wrapup Code value.", AR_FN_WRC_TOWRAPUPCODE_WRC_PRM_DSC_0: "The Wrapup Code to return.", AR_FN_WRC_TOWRAPUPCODE_WRC_EX_OUT_0: "A NOT_SET Wrapup Code.", AR_FN_DSC_ISNOTSETOREMPTY: "Determines whether a value is NOT_SET or empty.", AR_FN_BLN_ISNOTSETOREMPTY_ANY_DSC: "Checks if a value is NOT_SET.", AR_FN_BLN_ISNOTSETOREMPTY_ANY_RV: "Returns true if the value passed in is NOT_SET.", AR_FN_BLN_ISNOTSETOREMPTY_ANY_PRM_DSC_0: "The value to test to see if it is set or not.", AR_FN_BLN_ISNOTSETOREMPTY_AUDIO_DSC: "Determines whether or not the supplied Audio value is NOT_SET or 0 milliseconds of blank audio.", AR_FN_BLN_ISNOTSETOREMPTY_AUDIO_RV: "Returns a Boolean true if the Audio value passed in is NOT_SET.", AR_FN_BLN_ISNOTSETOREMPTY_AUDIO_PRM_DSC_0: "The Audio value to test to see if it is set or not.", AR_FN_BLN_ISNOTSETOREMPTY_ANY_COLL_DSC: "Determines whether or not a collection is empty (i.e. has no elements in it).", AR_FN_BLN_ISNOTSETOREMPTY_ANY_COLL_RV: "Returns true if the Boolean collection is empty.", AR_FN_BLN_ISNOTSETOREMPTY_ANY_COLL_PRM_DSC_0: "The collection to check.", AR_FN_BLN_ISNOTSETOREMPTY_NTS_DSC: "Returns true since the value pass in is NOT_SET.", AR_FN_BLN_ISNOTSETOREMPTY_NTS_RV: "Returns a true since the value passed in is NOT_SET.", AR_FN_BLN_ISNOTSETOREMPTY_NTS_PRM_DSC_0: "The value NOT_SET.", AR_FN_DSC_MAKEAGENTSCOREPAIR: "Returns a new instance of an AgentScorePair value initialized with the specified values.", AR_FN_AGENTSCOREPAIR_MAKEAGENTSCOREPAIR_USR_LNG_DSC: "Creates a new AgentScorePair value initialized to the specified input values.", AR_FN_AGENTSCOREPAIR_MAKEAGENTSCOREPAIR_USR_LNG_RV: "Returns the new AgentScorePair value.", AR_FN_AGENTSCOREPAIR_MAKEAGENTSCOREPAIR_USR_LNG_PRM_DSC_0: "The value to assign to the AgentScorePair agent property.", AR_FN_AGENTSCOREPAIR_MAKEAGENTSCOREPAIR_USR_LNG_PRM_DSC_1: "The value to assign to the AgentScorePair score property.", AR_FN_DSC_MAKECARD: "Returns a new instance of a Card value initialized with the specified values.", AR_FN_CARD_MAKECARD_STR_STR_CHOICE_COLL_IMAGE_DSC: "Creates a new Card value initialized to the specified input values.", AR_FN_CARD_MAKECARD_STR_STR_CHOICE_COLL_IMAGE_RV: "Returns the new Card value.", AR_FN_CARD_MAKECARD_STR_STR_CHOICE_COLL_IMAGE_PRM_DSC_0: "The title for the card.", AR_FN_CARD_MAKECARD_STR_STR_CHOICE_COLL_IMAGE_PRM_DSC_1: "The description for the card.", AR_FN_CARD_MAKECARD_STR_STR_CHOICE_COLL_IMAGE_PRM_DSC_2: "The button choices to use for the card.", AR_FN_CARD_MAKECARD_STR_STR_CHOICE_COLL_IMAGE_PRM_DSC_3: "The Image to use for the card.", AR_FN_CARD_MAKECARD_STR_STR_CHOICE_COLL_IMAGE_EX_OUT_0: "A Card that lets someone select a pizza size of small, medium or large.", AR_FN_DSC_MAKECAROUSEL: "Returns a new instance of a Carousel value initialized with the specified values.", AR_FN_CAROUSEL_MAKECAROUSEL_CARD_COLL_DSC: "Creates a new Carousel value for the supplied cards.", AR_FN_CAROUSEL_MAKECAROUSEL_CARD_COLL_RV: "Returns the new Carousel value.", AR_FN_CAROUSEL_MAKECAROUSEL_CARD_COLL_PRM_DSC_0: "The cards to use for the carousel.", AR_FN_CAROUSEL_MAKECAROUSEL_CARD_COLL_EX_OUT_0: "A Carousel with three cards to let a participant pick a class they want to attend to learn about cards, carousels and quick replies in Architect.", AR_FN_DSC_MAKECHOICE: "Returns a new instance of a Choice initialized with the specified values that can be used in a Chooser. There are helper functions that can be used to create choices as well such as MakeUrlChoice, MakePostbackChoice and MakePostbackChoice.", AR_FN_CHOICE_MAKECHOICE_STR_STR_STR_DSC: "Creates a new Choice that can be used in a Chooser from the supplied values.", AR_FN_CHOICE_MAKECHOICE_STR_STR_STR_RV: "Returns the new Choice value.", AR_FN_CHOICE_MAKECHOICE_STR_STR_STR_PRM_DSC_0: 'The choice type. "url" indicates this choice represents a URL. "postback" indicates this choice supplies a value that is returned to the flow.', AR_FN_CHOICE_MAKECHOICE_STR_STR_STR_PRM_DSC_1: 'The choice value. If the type parameter is "url", this should be the url link to use such as "https://www.genesys.com". If the type parameter is "postback", the postback value can be a custom value or if used in an action like Ask for Slot where the participant is choosing a value from a slot type then the value should match a value in that list or dynamic list slot type.', AR_FN_CHOICE_MAKECHOICE_STR_STR_STR_PRM_DSC_2: 'The choice label. If the type parameter is "url", this should be the url link label to use such as "Genesys". If the type parameter is "postback" this label is only used if the postback choice is not associated with a value from a list or dynamic list slot type.', AR_FN_CHOICE_MAKECHOICE_STR_STR_STR_EX_OUT_0: 'A Choice of type "url", value of "https://www.genesys.com" and label of "Genesys".', AR_FN_CHOICE_MAKECHOICE_STR_STR_STR_EX_OUT_1: 'A Choice of type "postback", value of "support" and label of "Help and Support".', AR_FN_CHOICE_MAKECHOICE_STR_STR_STR_STR_DSC: "Creates a new Choice that can be used in a Chooser from the supplied values.", AR_FN_CHOICE_MAKECHOICE_STR_STR_STR_STR_RV: "Returns the new Choice value.", AR_FN_CHOICE_MAKECHOICE_STR_STR_STR_STR_PRM_DSC_0: 'The choice type. "url" indicates this choice represents a URL. "postback" indicates this choice supplies a value that is returned to the flow.', AR_FN_CHOICE_MAKECHOICE_STR_STR_STR_STR_PRM_DSC_1: 'The choice value. If the type parameter is "url", this should be the url link to use such as "https://www.genesys.com". If the type parameter is "postback", the postback value can be a custom value or if used in an action like Ask for Slot where the participant is choosing a value from a slot type then the value should match a value in that list or dynamic list slot type.', AR_FN_CHOICE_MAKECHOICE_STR_STR_STR_STR_PRM_DSC_2: 'The choice label. If the type parameter is "url", this should be the url link label to use such as "Genesys". If the type parameter is "postback" this label is only used if the postback choice is not associated with a value from a list or dynamic list slot type.', AR_FN_CHOICE_MAKECHOICE_STR_STR_STR_STR_PRM_DSC_3: 'The choice command. If the command value is "skip" the Skip Response is enabled.', AR_FN_CHOICE_MAKECHOICE_STR_STR_STR_STR_EX_OUT_0: 'A Choice of type "url", value of "https://www.genesys.com", label of "Genesys" and command of "skip".', AR_FN_DSC_MAKEPOSTBACKCHOICE: "Returns a new instance of a postback Choice value that can be used in a Chooser.", AR_FN_CHOICE_MAKEPOSTBACKCHOICE_STR_DSC: 'Creates a new custom Choice with the supplied value that can be used in a Chooser. The returned Choice will have a type of "postback".', AR_FN_CHOICE_MAKEPOSTBACKCHOICE_STR_RV: "Returns the new Choice value.", AR_FN_CHOICE_MAKEPOSTBACKCHOICE_STR_PRM_DSC_0: "The value to return to the flow at runtime.", AR_FN_CHOICE_MAKEPOSTBACKCHOICE_STR_EX_OUT_0: 'A choice with type "postback" and value of "support".', AR_FN_CHOICE_MAKEPOSTBACKCHOICE_STR_STR_DSC: 'Creates a new custom Choice with the supplied value and label that can be used in a Chooser. The returned Choice will have a type of "postback".', AR_FN_CHOICE_MAKEPOSTBACKCHOICE_STR_STR_RV: "Returns the new Choice value.", AR_FN_CHOICE_MAKEPOSTBACKCHOICE_STR_STR_PRM_DSC_0: "The value to return to the flow at runtime.", AR_FN_CHOICE_MAKEPOSTBACKCHOICE_STR_STR_PRM_DSC_1: "The label to display for the choice.", AR_FN_CHOICE_MAKEPOSTBACKCHOICE_STR_STR_EX_OUT_0: 'A choice with type "postback", value of "support" and label of "Help and Support".', AR_FN_CHOICE_MAKEPOSTBACKCHOICE_STR_STR_STR_DSC: 'Creates a new custom Choice with the supplied value, label and command that can be used in a Chooser. The returned Choice will have a type of "postback".', AR_FN_CHOICE_MAKEPOSTBACKCHOICE_STR_STR_STR_RV: "Returns the new Choice value.", AR_FN_CHOICE_MAKEPOSTBACKCHOICE_STR_STR_STR_PRM_DSC_0: "The value to return to the flow at runtime.", AR_FN_CHOICE_MAKEPOSTBACKCHOICE_STR_STR_STR_PRM_DSC_1: "The label to display for the choice.", AR_FN_CHOICE_MAKEPOSTBACKCHOICE_STR_STR_STR_PRM_DSC_2: "The command value for the choice.", AR_FN_CHOICE_MAKEPOSTBACKCHOICE_STR_STR_STR_EX_OUT_0: 'A choice with value of "support", label of "Help and Support" and command of "skip".', AR_FN_DSC_MAKEURLCHOICE: "Returns a new instance of a Choice that represents a URL that can be used in a Chooser.", AR_FN_CHOICE_MAKEURLCHOICE_STR_DSC: "A helper function that creates a new Choice for a given URL that can be used in a Chooser. Remember that URL choices cannot be used in quick replies.", AR_FN_CHOICE_MAKEURLCHOICE_STR_RV: "Returns the new URL Choice value.", AR_FN_CHOICE_MAKEURLCHOICE_STR_PRM_DSC_0: 'The URL for this choice such as "https://www.genesys.com".', AR_FN_CHOICE_MAKEURLCHOICE_STR_EX_OUT_0: 'A Choice with type "url" and value of "https://www.genesys.com".', AR_FN_CHOICE_MAKEURLCHOICE_STR_STR_DSC: "A helper function that creates a new Choice for a given URL and link label text that can be used in a Chooser. Remember that URL choices cannot be used in quick replies.", AR_FN_CHOICE_MAKEURLCHOICE_STR_STR_RV: "Returns the new URL Choice value.", AR_FN_CHOICE_MAKEURLCHOICE_STR_STR_PRM_DSC_0: 'The URL for this choice such as "https://www.genesys.com".', AR_FN_CHOICE_MAKEURLCHOICE_STR_STR_PRM_DSC_1: "The link label to display for the URL. If the value is NOT_SET, the url value will be used as the link label.", AR_FN_CHOICE_MAKEURLCHOICE_STR_STR_EX_OUT_0: 'A Choice with type "url", value of "https://www.genesys.com" and label of "Genesys".', AR_FN_DSC_MAKECHOOSER: "Returns a new instance of a Chooser value initialized with the specified values.", AR_FN_CHOOSER_MAKECHOOSER_CARD_DSC: "Creates a new Chooser value configured as a carousel one card in it where that card is the supplied Card value.", AR_FN_CHOOSER_MAKECHOOSER_CARD_RV: "Returns the new Chooser value.", AR_FN_CHOOSER_MAKECHOOSER_CARD_PRM_DSC_0: "A Card value that defines the card to use when presenting choices to a participant.", AR_FN_CHOOSER_MAKECHOOSER_CARD_EX_OUT_0: 'A Chooser with type "card" and card property set to a Card that lets a participant select a shirt color of red, green or blue.', AR_FN_CHOOSER_MAKECHOOSER_CAROUSEL_DSC: "Creates a new Chooser value for the supplied Carousel.", AR_FN_CHOOSER_MAKECHOOSER_CAROUSEL_RV: "Returns the new Chooser value.", AR_FN_CHOOSER_MAKECHOOSER_CAROUSEL_PRM_DSC_0: "A Carousel value that defines the card to use when presenting choices to a participant.", AR_FN_CHOOSER_MAKECHOOSER_CAROUSEL_EX_OUT_0: 'A Chooser with type "carousel" and carousel property set to a Carousel with three cards to let a participant pick a class they want to attend to learn about cards, carousels and quick replies in Architect.', AR_FN_CHOOSER_MAKECHOOSER_QUICKREPLIES_DSC: "Creates a new Chooser value for the supplied Quick Replies.", AR_FN_CHOOSER_MAKECHOOSER_QUICKREPLIES_RV: "Returns the new Chooser value.", AR_FN_CHOOSER_MAKECHOOSER_QUICKREPLIES_PRM_DSC_0: "A Quick Replies value that defines the buttons to use when presenting choices to a participant.", AR_FN_CHOOSER_MAKECHOOSER_QUICKREPLIES_EX_OUT_0: 'A Chooser with type "quickReplies" and quickReplies property set to a Quick Replies value that contains two custom choices of red or blue.', AR_FN_CHOOSER_MAKECHOOSER_QUICKREPLIES_EX_OUT_1: 'A Chooser with type "quickReplies" and quickReplies property set to a Quick Replies value that contains two custom choices of red or blue and quick reply summary "Thanks for your selection".', AR_FN_CHOOSER_MAKECHOOSER_TIMEPICKER_DSC: "Creates a new Chooser value for the supplied TimePicker.", AR_FN_CHOOSER_MAKECHOOSER_TIMEPICKER_RV: "Returns the new Chooser value.", AR_FN_CHOOSER_MAKECHOOSER_TIMEPICKER_PRM_DSC_0: "A TimePicker value to present to a participant.", AR_FN_CHOOSER_MAKECHOOSER_TIMEPICKER_EX_OUT_0: 'A Chooser with type "timePicker" and timePicker property with a title.', AR_FN_CHOOSER_MAKECHOOSER_LISTPICKER_DSC: "Creates a new Chooser value for the supplied ListPicker.", AR_FN_CHOOSER_MAKECHOOSER_LISTPICKER_RV: "Returns the new Chooser value.", AR_FN_CHOOSER_MAKECHOOSER_LISTPICKER_PRM_DSC_0: "A ListPicker value to present to a participant.", AR_FN_CHOOSER_MAKECHOOSER_LISTPICKER_EX_OUT_0: 'A Chooser with type "listPicker" and listPicker value.', AR_FN_DSC_MAKECURRENCY: "Returns a new instance of a Currency value initialized with the specified values.", AR_FN_CUR_MAKECURRENCY_DEC_STR_DSC: "Creates a new instance of Currency value initialized to the specified settings.", AR_FN_CUR_MAKECURRENCY_DEC_STR_RV: "Returns a new instance of Currency value initialized to the specified settings.", AR_FN_CUR_MAKECURRENCY_DEC_STR_PRM_DSC_0: "The monetary amount.", AR_FN_CUR_MAKECURRENCY_DEC_STR_PRM_DSC_1: "The ISO 4217 currency code.", AR_FN_CUR_MAKECURRENCY_DEC_STR_EX_OUT_0: 'A Currency value with an amount of 10.50 and code of "USD".', AR_FN_CUR_MAKECURRENCY_DEC_STR_EX_OUT_1: 'A Currency value with an amount of 5.00 and code of "EUR".', AR_FN_CUR_MAKECURRENCY_DEC_STR_EX_OUT_2: 'A Currency value with a NOT_SET amount and code of "USD"', AR_FN_CUR_MAKECURRENCY_DEC_STR_EX_OUT_3: "A Currency value with an amount of 100.00 and NOT_SET code.", AR_FN_CUR_MAKECURRENCY_LNG_STR_DSC: "Creates a new instance of Currency value initialized to the specified settings.", AR_FN_CUR_MAKECURRENCY_LNG_STR_RV: "Returns a new instance of Currency value initialized to the specified settings.", AR_FN_CUR_MAKECURRENCY_LNG_STR_PRM_DSC_0: "The monetary amount.", AR_FN_CUR_MAKECURRENCY_LNG_STR_PRM_DSC_1: "The ISO 4217 currency code.", AR_FN_CUR_MAKECURRENCY_LNG_STR_EX_OUT_0: 'A Currency value with an amount of 10.50 and code of "USD".', AR_FN_CUR_MAKECURRENCY_LNG_STR_EX_OUT_1: 'A Currency value with an amount of 5.00 and code of "EUR".', AR_FN_CUR_MAKECURRENCY_LNG_STR_EX_OUT_2: 'A Currency value with a NOT_SET amount and code of "USD"', AR_FN_CUR_MAKECURRENCY_LNG_STR_EX_OUT_3: "A Currency value with an amount of 100.00 and NOT_SET code.", AR_FN_DSC_MAKEDIGITALAUDIOFROMURL: "Returns a new instance of a Digital Audio value from a URL.", AR_FN_DIGITALAUDIO_MAKEDIGITALAUDIOFROMURL_STR_DSC: "Creates a new instance of a Digital Audio value from a URL.", AR_FN_DIGITALAUDIO_MAKEDIGITALAUDIOFROMURL_STR_RV: "Returns a new instance of a Digital Audio value initialized to the specified settings.", AR_FN_DIGITALAUDIO_MAKEDIGITALAUDIOFROMURL_STR_PRM_DSC_0: "The URL to the Digital Audio.", AR_FN_DIGITALAUDIO_MAKEDIGITALAUDIOFROMURL_STR_EX_OUT_0: 'A Digital Audio value with the universal resource locator (url) property value of "https://www.genesys.com/media/genesys-digital-bot-flows.mp3".', AR_FN_DIGITALAUDIO_MAKEDIGITALAUDIOFROMURL_NTS_DSC: "Creates a NOT_SET Digital Audio.", AR_FN_DIGITALAUDIO_MAKEDIGITALAUDIOFROMURL_NTS_RV: "Returns a NOT_SET Digital Audio value.", AR_FN_DIGITALAUDIO_MAKEDIGITALAUDIOFROMURL_NTS_PRM_DSC_0: "The NOT_SET value.", AR_FN_DIGITALAUDIO_MAKEDIGITALAUDIOFROMURL_NTS_EX_OUT_0: "A NOT_SET Digital Audio.", AR_FN_DSC_MAKEFILEFROMURL: "Returns a new instance of a File value from a URL.", AR_FN_FILE_MAKEFILEFROMURL_STR_DSC: "Creates a new instance of a File value from a URL.", AR_FN_FILE_MAKEFILEFROMURL_STR_RV: "Returns a new instance of a File value initialized to the specified settings.", AR_FN_FILE_MAKEFILEFROMURL_STR_PRM_DSC_0: "The URL to the File.", AR_FN_FILE_MAKEFILEFROMURL_STR_EX_OUT_0: 'A File value with the universal resource locator (url) property value of "https://www.genesys.com/documents/genesys-digital-bot-flows.pdf".', AR_FN_FILE_MAKEFILEFROMURL_NTS_DSC: "Creates a NOT_SET File.", AR_FN_FILE_MAKEFILEFROMURL_NTS_RV: "Returns a NOT_SET File value.", AR_FN_FILE_MAKEFILEFROMURL_NTS_PRM_DSC_0: "The NOT_SET value.", AR_FN_FILE_MAKEFILEFROMURL_NTS_EX_OUT_0: "A NOT_SET File.", AR_FN_DSC_MAKEIMAGEFROMURL: "Returns a new instance of an Image value from a URL.", AR_FN_IMAGE_MAKEIMAGEFROMURL_STR_DSC: "Creates a new instance of an Image value from a URL.", AR_FN_IMAGE_MAKEIMAGEFROMURL_STR_RV: "Returns a new instance of an Image value initialized to the specified settings.", AR_FN_IMAGE_MAKEIMAGEFROMURL_STR_PRM_DSC_0: "The URL to the image.", AR_FN_IMAGE_MAKEIMAGEFROMURL_STR_EX_OUT_0: 'An Image value with a universal resource locator (url) property value of "https://www.genesys.com/media/genesys-logo.png".', AR_FN_IMAGE_MAKEIMAGEFROMURL_STR_STR_DSC: "Creates a new instance of an Image value from a URL and name.", AR_FN_IMAGE_MAKEIMAGEFROMURL_STR_STR_RV: "Returns a new instance of an Image value initialized to the specified settings.", AR_FN_IMAGE_MAKEIMAGEFROMURL_STR_STR_PRM_DSC_0: "The URL to the image.", AR_FN_IMAGE_MAKEIMAGEFROMURL_STR_STR_PRM_DSC_1: "The name to use for the name property in the returned Image value.", AR_FN_IMAGE_MAKEIMAGEFROMURL_STR_STR_EX_OUT_0: 'An Image value with a universal resource locator (url) property value of "https://www.genesys.com/media/genesys-logo.png" and a name property value of "Genesys Logo".', AR_FN_IMAGE_MAKEIMAGEFROMURL_NTS_DSC: "Creates a NOT_SET Image.", AR_FN_IMAGE_MAKEIMAGEFROMURL_NTS_RV: "Returns a NOT_SET Image value.", AR_FN_IMAGE_MAKEIMAGEFROMURL_NTS_PRM_DSC_0: "The NOT_SET value.", AR_FN_IMAGE_MAKEIMAGEFROMURL_NTS_EX_OUT_0: "A NOT_SET Image.", AR_FN_DSC_MAKELINEITEM: "Returns a new instance of a LineItem value initialized with the specified settings.", AR_FN_LINEITEM_MAKELINEITEM_STR_CUR_DSC: "Creates a new instance of a LineItem value initialized with the specified settings.", AR_FN_LINEITEM_MAKELINEITEM_STR_CUR_RV: "Returns a new instance of LineItem value initialized to the specified settings.", AR_FN_LINEITEM_MAKELINEITEM_STR_CUR_PRM_DSC_0: "The name of the LineItem.", AR_FN_LINEITEM_MAKELINEITEM_STR_CUR_PRM_DSC_1: "The price of the LineItem.", AR_FN_LINEITEM_MAKELINEITEM_STR_CUR_EX_OUT_0: 'A LineItem value with name "T-Shirt" and price of $19.99 USD.', AR_FN_DSC_TOLINEITEM: "Returns a copy of the supplied LineItem.", AR_FN_LINEITEM_TOLINEITEM_LINEITEM_DSC: "Returns a copy of the supplied LineItem", AR_FN_LINEITEM_TOLINEITEM_LINEITEM_RV: "Returns a copy of the supplied LineItem.", AR_FN_LINEITEM_TOLINEITEM_LINEITEM_PRM_DSC_0: "The LineItem to copy", AR_FN_LINEITEM_TOLINEITEM_LINEITEM_EX_OUT_0: "A Lineitems which is a copy of the supplied LineItem", AR_FN_LINEITEM_TOLINEITEM_NTS_DSC: "Converts NOT_SET to a NOT_SET LineItem.", AR_FN_LINEITEM_TOLINEITEM_NTS_RV: "Returns a NOT_SET LineItem value.", AR_FN_LINEITEM_TOLINEITEM_NTS_PRM_DSC_0: "The NOT_SET value.", AR_FN_LINEITEM_TOLINEITEM_NTS_EX_OUT_0: "A NOT_SET lineItem.", AR_FN_DSC_MAKELISTPICKERITEM: "Returns a new instance of a ListPickerItem value initialized with the specified settings.", AR_FN_LISTPICKERITEM_MAKELISTPICKERITEM_STR_STR_IMAGE_DSC: "Creates a new instance of a ListPickerItem value initialized with the specified settings.", AR_FN_LISTPICKERITEM_MAKELISTPICKERITEM_STR_STR_IMAGE_RV: "Returns a new instance of a ListPickerItem value initialized to the specified settings.", AR_FN_LISTPICKERITEM_MAKELISTPICKERITEM_STR_STR_IMAGE_PRM_DSC_0: "The list picker item title.", AR_FN_LISTPICKERITEM_MAKELISTPICKERITEM_STR_STR_IMAGE_PRM_DSC_1: "The list picker item subtitle.", AR_FN_LISTPICKERITEM_MAKELISTPICKERITEM_STR_STR_IMAGE_PRM_DSC_2: "The image to use for the list picker item.", AR_FN_LISTPICKERITEM_MAKELISTPICKERITEM_STR_STR_IMAGE_EX_OUT_0: "A ListPickerItem value with a title, subtitle, and image", AR_FN_LISTPICKERITEM_MAKELISTPICKERITEM_STR_STR_IMAGE_EX_OUT_1: "A ListPickerItem value with a title, a NOT_SET subtitle, and an image", AR_FN_LISTPICKERITEM_MAKELISTPICKERITEM_STR_STR_IMAGE_EX_OUT_2: "A ListPickerItem value with a title, a NOT_SET subtitle, and a NOT_SET image", AR_FN_DSC_MAKELISTPICKERSECTION: "Returns a new instance of a ListPickerSection value initialized with the specified settings.", AR_FN_LISTPICKERSECTION_MAKELISTPICKERSECTION_STR_BLN_LISTPICKERITEM_COLL_DSC: "Creates a new instance of a ListPickerSection value initialized with the specified settings.", AR_FN_LISTPICKERSECTION_MAKELISTPICKERSECTION_STR_BLN_LISTPICKERITEM_COLL_RV: "Returns a new instance of a ListPickerSection value initialized to the specified settings.", AR_FN_LISTPICKERSECTION_MAKELISTPICKERSECTION_STR_BLN_LISTPICKERITEM_COLL_PRM_DSC_0: "The list picker item title.", AR_FN_LISTPICKERSECTION_MAKELISTPICKERSECTION_STR_BLN_LISTPICKERITEM_COLL_PRM_DSC_1: "Whether multiple selection is enabled for the list picker.", AR_FN_LISTPICKERSECTION_MAKELISTPICKERSECTION_STR_BLN_LISTPICKERITEM_COLL_PRM_DSC_2: "A collection of list picker items", AR_FN_LISTPICKERSECTION_MAKELISTPICKERSECTION_STR_BLN_LISTPICKERITEM_COLL_EX_OUT_0: 'A ListPickerSection named "Sides" with MultiSelect enabled and with two ListPickerItems, "Fries" and "Soup"', AR_FN_DSC_MAKELISTPICKER: "Returns a new instance of a ListPicker value initialized with the specified settings.", AR_FN_LISTPICKER_MAKELISTPICKER_LISTPICKERSECTION_COLL_IMAGE_STR_STR_IMAGE_STR_DSC: "Creates a new instance of a ListPicker value initialized with the specified settings.", AR_FN_LISTPICKER_MAKELISTPICKER_LISTPICKERSECTION_COLL_IMAGE_STR_STR_IMAGE_STR_RV: "Returns a new instance of a ListPicker value initialized to the specified settings.", AR_FN_LISTPICKER_MAKELISTPICKER_LISTPICKERSECTION_COLL_IMAGE_STR_STR_IMAGE_STR_PRM_DSC_0: "A collection of ListPickerSections.", AR_FN_LISTPICKER_MAKELISTPICKER_LISTPICKERSECTION_COLL_IMAGE_STR_STR_IMAGE_STR_PRM_DSC_1: "The image to use for the received message.", AR_FN_LISTPICKER_MAKELISTPICKER_LISTPICKERSECTION_COLL_IMAGE_STR_STR_IMAGE_STR_PRM_DSC_2: "The title of the received message.", AR_FN_LISTPICKER_MAKELISTPICKER_LISTPICKERSECTION_COLL_IMAGE_STR_STR_IMAGE_STR_PRM_DSC_3: "The subtitle of the received message.", AR_FN_LISTPICKER_MAKELISTPICKER_LISTPICKERSECTION_COLL_IMAGE_STR_STR_IMAGE_STR_PRM_DSC_4: "The image to use for the reply message.", AR_FN_LISTPICKER_MAKELISTPICKER_LISTPICKERSECTION_COLL_IMAGE_STR_STR_IMAGE_STR_PRM_DSC_5: "The subtitle of the reply message.", AR_FN_LISTPICKER_MAKELISTPICKER_LISTPICKERSECTION_COLL_IMAGE_STR_STR_IMAGE_STR_EX_OUT_0: "A ListPicker", AR_FN_LISTPICKER_MAKELISTPICKER_LISTPICKERSECTION_COLL_IMAGE_STR_STR_IMAGE_STR_STR_DSC: "Creates a new instance of a ListPicker value initialized with the specified settings.", AR_FN_LISTPICKER_MAKELISTPICKER_LISTPICKERSECTION_COLL_IMAGE_STR_STR_IMAGE_STR_STR_RV: "Returns a new instance of a ListPicker value initialized to the specified settings.", AR_FN_LISTPICKER_MAKELISTPICKER_LISTPICKERSECTION_COLL_IMAGE_STR_STR_IMAGE_STR_STR_PRM_DSC_0: "A collection of ListPickerSections.", AR_FN_LISTPICKER_MAKELISTPICKER_LISTPICKERSECTION_COLL_IMAGE_STR_STR_IMAGE_STR_STR_PRM_DSC_1: "The image to use for the received message.", AR_FN_LISTPICKER_MAKELISTPICKER_LISTPICKERSECTION_COLL_IMAGE_STR_STR_IMAGE_STR_STR_PRM_DSC_2: "The title of the received message.", AR_FN_LISTPICKER_MAKELISTPICKER_LISTPICKERSECTION_COLL_IMAGE_STR_STR_IMAGE_STR_STR_PRM_DSC_3: "The subtitle of the received message.", AR_FN_LISTPICKER_MAKELISTPICKER_LISTPICKERSECTION_COLL_IMAGE_STR_STR_IMAGE_STR_STR_PRM_DSC_4: "The image to use for the reply message.", AR_FN_LISTPICKER_MAKELISTPICKER_LISTPICKERSECTION_COLL_IMAGE_STR_STR_IMAGE_STR_STR_PRM_DSC_5: "The subtitle of the reply message.", AR_FN_LISTPICKER_MAKELISTPICKER_LISTPICKERSECTION_COLL_IMAGE_STR_STR_IMAGE_STR_STR_PRM_DSC_6: "The button text of the received message.", AR_FN_LISTPICKER_MAKELISTPICKER_LISTPICKERSECTION_COLL_IMAGE_STR_STR_IMAGE_STR_STR_EX_OUT_0: "A ListPicker", AR_FN_DSC_MAKETIMEPICKER: "Returns a new instance of a TimePicker value initialized with the specified settings.", AR_FN_TIMEPICKER_MAKETIMEPICKER_STR_STR_IMAGE_ADDRESS_LATITUDE_LONGITUDE_DSC: "Creates a new instance of a TimePicker value initialized with the specified settings.", AR_FN_TIMEPICKER_MAKETIMEPICKER_STR_STR_IMAGE_ADDRESS_LATITUDE_LONGITUDE_RV: "Returns a new instance of a TimePicker value initialized to the specified settings.", AR_FN_TIMEPICKER_MAKETIMEPICKER_STR_STR_IMAGE_ADDRESS_LATITUDE_LONGITUDE_PRM_DSC_0: "The TimePicker title.", AR_FN_TIMEPICKER_MAKETIMEPICKER_STR_STR_IMAGE_ADDRESS_LATITUDE_LONGITUDE_PRM_DSC_1: "The TimePicker subtitle.", AR_FN_TIMEPICKER_MAKETIMEPICKER_STR_STR_IMAGE_ADDRESS_LATITUDE_LONGITUDE_PRM_DSC_2: "The image to use for the TimePicker.", AR_FN_TIMEPICKER_MAKETIMEPICKER_STR_STR_IMAGE_ADDRESS_LATITUDE_LONGITUDE_PRM_DSC_3: "The address to use for the TimePicker.", AR_FN_TIMEPICKER_MAKETIMEPICKER_STR_STR_IMAGE_ADDRESS_LATITUDE_LONGITUDE_PRM_DSC_4: "The latitude to use for the TimePicker.", AR_FN_TIMEPICKER_MAKETIMEPICKER_STR_STR_IMAGE_ADDRESS_LATITUDE_LONGITUDE_PRM_DSC_5: "The longitude to use for the TimePicker.", AR_FN_TIMEPICKER_MAKETIMEPICKER_STR_STR_IMAGE_ADDRESS_LATITUDE_LONGITUDE_EX_OUT_0: "A TimePicker value with a title, subtitle, and image", AR_FN_TIMEPICKER_MAKETIMEPICKER_STR_STR_IMAGE_ADDRESS_LATITUDE_LONGITUDE_EX_OUT_1: "A TimePicker value with a title, a NOT_SET subtitle, and an image", AR_FN_TIMEPICKER_MAKETIMEPICKER_STR_STR_IMAGE_ADDRESS_LATITUDE_LONGITUDE_EX_OUT_2: "A TimePicker value with a title, a NOT_SET subtitle, and a NOT_SET image", AR_FN_TIMEPICKER_MAKETIMEPICKER_STR_STR_IMAGE_ADDRESS_LATITUDE_LONGITUDE_EX_OUT_3: "A TimePicker value with a title, a NOT_SET subtitle, a NOT_SET image, an address, a latitude, and a longitude", AR_FN_TIMEPICKER_MAKETIMEPICKER_STR_STR_DSC: "Creates a new instance of a TimePicker value initialized with the specified settings.", AR_FN_TIMEPICKER_MAKETIMEPICKER_STR_STR_RV: "Returns a new instance of a TimePicker value initialized to the specified settings.", AR_FN_TIMEPICKER_MAKETIMEPICKER_STR_STR_PRM_DSC_0: "The TimePicker title.", AR_FN_TIMEPICKER_MAKETIMEPICKER_STR_STR_PRM_DSC_1: "The TimePicker subtitle.", AR_FN_TIMEPICKER_MAKETIMEPICKER_STR_STR_EX_OUT_0: "A TimePicker value with a title and subtitle", AR_FN_TIMEPICKER_MAKETIMEPICKER_STR_DSC: "Creates a new instance of a TimePicker value initialized with the specified settings.", AR_FN_TIMEPICKER_MAKETIMEPICKER_STR_RV: "Returns a new instance of a TimePicker value initialized to the specified settings.", AR_FN_TIMEPICKER_MAKETIMEPICKER_STR_PRM_DSC_0: "The TimePicker title.", AR_FN_TIMEPICKER_MAKETIMEPICKER_STR_EX_OUT_0: "A TimePicker value with a title", AR_FN_DSC_MAKETIMESLOT: "Returns a new instance of a Timeslot value initialized with the specified settings.", AR_FN_TIMESLOT_MAKETIMESLOT_DTM_DUR_DSC: "Creates a new instance of a Timeslot value initialized with the specified settings.", AR_FN_TIMESLOT_MAKETIMESLOT_DTM_DUR_RV: "Returns a new instance of a Timeslot value initialized to the specified settings.", AR_FN_TIMESLOT_MAKETIMESLOT_DTM_DUR_PRM_DSC_0: "The Coordinated Universal Time (UTC) dateTime for the timeslot.", AR_FN_TIMESLOT_MAKETIMESLOT_DTM_DUR_PRM_DSC_1: "The duration for the timeslot.", AR_FN_TIMESLOT_MAKETIMESLOT_DTM_DUR_EX_OUT_0: 'A Timeslot value with date time of "2024-08-04T00:00:00.000Z" and duration of "one hour thirty minutes"', AR_FN_DSC_MAKELISTTIMESLOT: "Creates a new Timeslot value collection from the specified input.", AR_FN_TIMESLOT_COLL_MAKELISTTIMESLOT_DTM_COLL_DUR_DSC: "Creates a Timeslot collection where each item is a Timeslot value created from the items in the dateTime collection with the duration input assigned.", AR_FN_TIMESLOT_COLL_MAKELISTTIMESLOT_DTM_COLL_DUR_RV: "Returns the new Timeslot values.", AR_FN_TIMESLOT_COLL_MAKELISTTIMESLOT_DTM_COLL_DUR_PRM_DSC_0: "A DateTime collection.", AR_FN_TIMESLOT_COLL_MAKELISTTIMESLOT_DTM_COLL_DUR_PRM_DSC_1: "A Duration value that will be used for each item in the returned Timeslot collection.", AR_FN_TIMESLOT_COLL_MAKELISTTIMESLOT_DTM_COLL_DUR_EX_OUT_0: 'A TimeSlot collection with two items: the first item having a datetime of "2024-08-04T14:00:00.000Z" and the second item having a datetime of "2024-08-04T15:00:00.000Z". Both timeslot items have a duration of "1 hour".', AR_FN_TIMESLOT_COLL_MAKELISTTIMESLOT_DTM_COLL_DUR_COLL_DSC: "Creates a Timeslot collection where each item is a Timeslot value created by combining the items in the dateTime and duration collections. The input collections need to be of equal length.", AR_FN_TIMESLOT_COLL_MAKELISTTIMESLOT_DTM_COLL_DUR_COLL_RV: "Returns the new Timeslot values.", AR_FN_TIMESLOT_COLL_MAKELISTTIMESLOT_DTM_COLL_DUR_COLL_PRM_DSC_0: "A DateTime collection.", AR_FN_TIMESLOT_COLL_MAKELISTTIMESLOT_DTM_COLL_DUR_COLL_PRM_DSC_1: "A Duration collection.", AR_FN_TIMESLOT_COLL_MAKELISTTIMESLOT_DTM_COLL_DUR_COLL_EX_OUT_0: 'A TimeSlot collection with two items: the first item having a datetime of "2024-08-04T14:00:00.000Z" and duration of "1 hour", and the second item having a datetime of "2024-08-04T15:00:00.000Z" and duration of "2 hours".', AR_FN_DSC_MAKESHIPPINGOPTION: "Returns a new instance of a ShippingOption value initialized with the specified settings.", AR_FN_SHIPPINGOPTION_MAKESHIPPINGOPTION_STR_STR_STR_CUR_DSC: "Creates a new instance of a ShippingOption value initialized with the specified settings.", AR_FN_SHIPPINGOPTION_MAKESHIPPINGOPTION_STR_STR_STR_CUR_RV: "Returns a new instance of a ShippingOption value initialized to the specified settings.", AR_FN_SHIPPINGOPTION_MAKESHIPPINGOPTION_STR_STR_STR_CUR_PRM_DSC_0: "The shipping option label.", AR_FN_SHIPPINGOPTION_MAKESHIPPINGOPTION_STR_STR_STR_CUR_PRM_DSC_1: "The shipping option identifier.", AR_FN_SHIPPINGOPTION_MAKESHIPPINGOPTION_STR_STR_STR_CUR_PRM_DSC_2: "The shipping details.", AR_FN_SHIPPINGOPTION_MAKESHIPPINGOPTION_STR_STR_STR_CUR_PRM_DSC_3: "The shipping option price.", AR_FN_SHIPPINGOPTION_MAKESHIPPINGOPTION_STR_STR_STR_CUR_EX_OUT_0: 'A ShippingOption value with id "standard", label "Standard Shipping", price $5.99 USD, and shipping details of 3-4 days', AR_FN_DSC_TOSHIPPINGOPTION: "Returns a copy of the supplied ShippingOption.", AR_FN_SHIPPINGOPTION_TOSHIPPINGOPTION_SHIPPINGOPTION_DSC: "Returns a copy of the supplied ShippingOption", AR_FN_SHIPPINGOPTION_TOSHIPPINGOPTION_SHIPPINGOPTION_RV: "Returns a copy of the supplied ShippingOption.", AR_FN_SHIPPINGOPTION_TOSHIPPINGOPTION_SHIPPINGOPTION_PRM_DSC_0: "The ShippingOption to copy", AR_FN_SHIPPINGOPTION_TOSHIPPINGOPTION_SHIPPINGOPTION_EX_OUT_0: "A ShippingOption which is a copy of the supplied ShippingOption", AR_FN_SHIPPINGOPTION_TOSHIPPINGOPTION_NTS_DSC: "Converts NOT_SET to a NOT_SET ShippingOption.", AR_FN_SHIPPINGOPTION_TOSHIPPINGOPTION_NTS_RV: "Returns a NOT_SET ShippingOption value.", AR_FN_SHIPPINGOPTION_TOSHIPPINGOPTION_NTS_PRM_DSC_0: "The NOT_SET value.", AR_FN_SHIPPINGOPTION_TOSHIPPINGOPTION_NTS_EX_OUT_0: "A NOT_SET ShippingOption.", AR_FN_DSC_MAKELISTAGENTSCOREPAIR: "Returns a new collection of type AgentScorePair created from input collections.", AR_FN_AGENTSCOREPAIR_COLL_MAKELISTAGENTSCOREPAIR_USR_COLL_LNG_COLL_DSC: "Creates an AgentScorePair collection by combining items from a User collection and a preferred agent routing score Integer collection. The algorithm merges item data on a per index basis so input collections must have the same number of items.", AR_FN_AGENTSCOREPAIR_COLL_MAKELISTAGENTSCOREPAIR_USR_COLL_LNG_COLL_RV: "Returns the collection created by combining items from the supplied User and preferred agent routing score Integer collections.", AR_FN_AGENTSCOREPAIR_COLL_MAKELISTAGENTSCOREPAIR_USR_COLL_LNG_COLL_PRM_DSC_0: "Supplies User values for the agent property on AgentScorePair items in the returned collection.", AR_FN_AGENTSCOREPAIR_COLL_MAKELISTAGENTSCOREPAIR_USR_COLL_LNG_COLL_PRM_DSC_1: "Supplies preferred agent routing scores for the score property on AgentScorePair items in the returned collection.", AR_FN_AGENTSCOREPAIR_COLL_MAKELISTAGENTSCOREPAIR_STR_COLL_LNG_COLL_DSC: "Creates an AgentScorePair collection by combining User values looked up from a user ID String collection and a preferred agent routing score Integer collection. The algorithm merges item data on a per index basis so input collections must have the same number of items.", AR_FN_AGENTSCOREPAIR_COLL_MAKELISTAGENTSCOREPAIR_STR_COLL_LNG_COLL_RV: "Returns the collection created by combining looked up User values and preferred agent routing scores.", AR_FN_AGENTSCOREPAIR_COLL_MAKELISTAGENTSCOREPAIR_STR_COLL_LNG_COLL_PRM_DSC_0: "A collection of user IDs to look up. Identifiers will be matched in a case insensitive manner. The looked up User values supply the agent property value on AgentScorePair items in the returned collection.", AR_FN_AGENTSCOREPAIR_COLL_MAKELISTAGENTSCOREPAIR_STR_COLL_LNG_COLL_PRM_DSC_1: "Supplies preferred agent routing scores for the score property on AgentScorePair items in the returned collection.", AR_FN_DSC_MAKELISTCOMMUNICATION: "Returns a new Communication collection value from the specified input.", AR_FN_COMMUNICATION_COLL_MAKELISTCOMMUNICATION_ANY_COLL_DSC: "Creates a Communication collection from the supplied input collection by calling ToCommunication on each item in the input collection and inserting it in the resulting Communication collection at the same index.", AR_FN_COMMUNICATION_COLL_MAKELISTCOMMUNICATION_ANY_COLL_RV: "Returns a Communication collection value from the supplied input collection.", AR_FN_COMMUNICATION_COLL_MAKELISTCOMMUNICATION_ANY_COLL_PRM_DSC_0: "A collection of values whose type is an Any type such as a String collection or Integer collection.", AR_FN_COMMUNICATION_COLL_MAKELISTCOMMUNICATION_ANY_COLL_EX_OUT_0: 'A Communication collection with two items. The first Communication item has text and audio for "Value Label 1" and the second Communication item has text and audio for "Value Label 2".', AR_FN_DSC_MAKEQUICKREPLIES: "Returns a new QuickReplies value initialized with the specified choices.", AR_FN_QUICKREPLIES_MAKEQUICKREPLIES_CHOICES_COLL_DSC: "Creates a new QuickReplies value with the buttons property set to the supplied choice collection. Remember that you can only use postback choices in the buttons collection.", AR_FN_QUICKREPLIES_MAKEQUICKREPLIES_CHOICES_COLL_RV: "Returns the new QuickReplies value.", AR_FN_QUICKREPLIES_MAKEQUICKREPLIES_CHOICES_COLL_PRM_DSC_0: 'The choices to use for the quick replies buttons. Individual choices in this array should not be of type "url" as quick replies do not support URLs.', AR_FN_QUICKREPLIES_MAKEQUICKREPLIES_CHOICES_COLL_STR_DSC: "Creates a new QuickReplies value with the buttons property set to the supplied choice collection. Remember that you can only use postback choices in the buttons collection.", AR_FN_QUICKREPLIES_MAKEQUICKREPLIES_CHOICES_COLL_STR_RV: "Returns the new QuickReplies value.", AR_FN_QUICKREPLIES_MAKEQUICKREPLIES_CHOICES_COLL_STR_PRM_DSC_0: 'The choices to use for the quick replies buttons. Individual choices in this array should not be of type "url" as quick replies do not support URLs.', AR_FN_QUICKREPLIES_MAKEQUICKREPLIES_CHOICES_COLL_STR_PRM_DSC_1: 'Summary displayed in supporting messaging platforms after the user selects a quick reply. e.g. "Thanks for your selection"', AR_FN_DSC_MAKEVIDEOFROMURL: "Returns a new instance of a Video value from a URL.", AR_FN_VIDEO_MAKEVIDEOFROMURL_STR_DSC: "Creates a new instance of a Video value from a URL.", AR_FN_VIDEO_MAKEVIDEOFROMURL_STR_RV: "Returns a new instance of a Video value initialized to the specified settings.", AR_FN_VIDEO_MAKEVIDEOFROMURL_STR_PRM_DSC_0: "The URL to the video.", AR_FN_VIDEO_MAKEVIDEOFROMURL_STR_EX_OUT_0: 'A Video value with the universal resource locator (url) property value of "https://www.genesys.com/media/genesys-digital-bot-flows.mov".', AR_FN_VIDEO_MAKEVIDEOFROMURL_NTS_DSC: "Creates a NOT_SET Video.", AR_FN_VIDEO_MAKEVIDEOFROMURL_NTS_RV: "Returns a NOT_SET Video value.", AR_FN_VIDEO_MAKEVIDEOFROMURL_NTS_PRM_DSC_0: "The NOT_SET value.", AR_FN_VIDEO_MAKEVIDEOFROMURL_NTS_EX_OUT_0: "A NOT_SET Video.", AR_FN_DSC_RESOLVESLOT: "Gets a localized value for a list slot type Slot variable.", AR_FN_ANY_RESOLVESLOT_ANY_DSC: "This gets the localized value for the supplied Slot variable value if the slot type for the variable is a list. If the slot type associated with the variable is not a list, this function returns the Slot variable value.", AR_FN_ANY_RESOLVESLOT_ANY_RV: "Returns the localized value for the supplied Slot variable if the variable's slot type is a list. Otherwise, the Slot variable value is returned.", AR_FN_ANY_RESOLVESLOT_ANY_PRM_DSC_0: "The Slot variable to resolve.", AR_FN_ANY_RESOLVESLOT_ANY_EX_OUT_0: 'The localized String value configured on the "PizzaSizeType" slot type for the value "small" such as "peque\xF1a".', AR_FN_ANY_RESOLVESLOT_ANY_ANY_DSC: "This gets the localized value for the supplied Slot variable value if the slot type for the variable is a list. If the slot type associated with the variable is not a list, this function returns the Slot variable value. This implementation also lets you specify a value to return if the supplied Slot variable value is NOT_SET.", AR_FN_ANY_RESOLVESLOT_ANY_ANY_RV: "If the supplied Slot variable value is NOT_SET, the value supplied in the slotNotSetReturnValue parameter is returned. Otherwise this returns the localized value for the supplied Slot variable if the variable's slot type is a list. If the variable slot type is not a list, the Slot variable value is returned.", AR_FN_ANY_RESOLVESLOT_ANY_ANY_PRM_DSC_0: "The Slot variable to resolve.", AR_FN_ANY_RESOLVESLOT_ANY_ANY_PRM_DSC_1: "If the value of the Slot variable is NOT_SET, this value will be returned. Remember that the value specified here must be the same data type as the Slot variable itself so if the Slot variable is a String, the value supplied here must be a String.", AR_FN_ANY_RESOLVESLOT_ANY_ANY_EX_OUT_0: '"" if the Slot.AccountType value is NOT_SET.', AR_FN_DSC_RESOLVESLOTTYPELISTVALUE: "Gets a localized String value for a list or dynamic list slot type value.", AR_FN_STR_RESOLVESLOTTYPELISTVALUE_STR_STR_DSC: "This gets a localized String value based on the language in which the flow is running from a list or dynamic slot list slot type by specifying the slot type by name and value to look up.", AR_FN_STR_RESOLVESLOTTYPELISTVALUE_STR_STR_RV: "Returns the localized String value for the supplied list or dynamic list slot type name and supplied slot type value. If the slot type or value in the list is not found, a NOT_SET String value is returned.", AR_FN_STR_RESOLVESLOTTYPELISTVALUE_STR_STR_PRM_DSC_0: "The name of the list or dynamic list slot type. The slot type name is matched case sensitively. If a NOT_SET slot type name is specified, a NOT_SET String value is returned.", AR_FN_STR_RESOLVESLOTTYPELISTVALUE_STR_STR_PRM_DSC_1: "The slot type value to look up. The value is matched case sensitively. If a NOT_SET value is specified, a NOT_SET String value is returned.", AR_FN_STR_RESOLVESLOTTYPELISTVALUE_STR_STR_EX_OUT_0: 'The localized String value configured on the "PizzaSizeType" slot type for the value "small" such as "peque\xF1a".', AR_FN_DSC_MAKELISTCURRENCY: "Returns a new Currency value collection from the specified input.", AR_FN_CUR_COLL_MAKELISTCURRENCY_DEC_COLL_STR_DSC: "Returns a Currency collection from the specified Decimal input collection and assigns the specified ISO 4217 currency code to each item in the returned currency collection.", AR_FN_CUR_COLL_MAKELISTCURRENCY_DEC_COLL_STR_RV: "Returns a Currency collection with each item set to the value from the corresponding Decimal collection. Each item will have their code set to the ISO 4217 currency code specified in the 2nd parameter.", AR_FN_CUR_COLL_MAKELISTCURRENCY_DEC_COLL_STR_PRM_DSC_0: "A Decimal collection of amounts that will become the amounts in the returned Currency collection.", AR_FN_CUR_COLL_MAKELISTCURRENCY_DEC_COLL_STR_PRM_DSC_1: "The ISO 4217 currency code to assign to each item in the returned Currency collection.", AR_FN_CUR_COLL_MAKELISTCURRENCY_DEC_COLL_STR_EX_OUT_0: 'A currency collection with two items. The first item has an amount of 10.50, the second item has an amount of 2.50, and both items have a code of "USD".', AR_FN_CUR_COLL_MAKELISTCURRENCY_DEC_COLL_STR_EX_OUT_1: 'A currency collection with two items. The first item has an amount of 10.50, the second item has a NOT_SET amount, and both items have a Cde of "USD".', AR_FN_CUR_COLL_MAKELISTCURRENCY_DEC_COLL_STR_COLL_DSC: "Returns a Currency collection based on the specified Decimal and String input collections. The input collections have to have the same number of items for the currency list to be created.", AR_FN_CUR_COLL_MAKELISTCURRENCY_DEC_COLL_STR_COLL_RV: "Returns a Currency collection where each item is a Currency value created from the items in the amounts and currencyCodes collections.", AR_FN_CUR_COLL_MAKELISTCURRENCY_DEC_COLL_STR_COLL_PRM_DSC_0: "A Decimal collection of amounts that will become the amounts in the returned Currency collection.", AR_FN_CUR_COLL_MAKELISTCURRENCY_DEC_COLL_STR_COLL_PRM_DSC_1: "A collection of ISO 4217 currency codes to assign to each item in the returned Currency collection. The number of items in this collection should be the same as the number of items in the amounts collection.", AR_FN_CUR_COLL_MAKELISTCURRENCY_DEC_COLL_STR_COLL_EX_OUT_0: 'A currency collection with two items. The first Currency item has an amount of 10.50 and code of "USD". The second Currency item has an amount of 2.50 and code of "EUR".', AR_FN_CUR_COLL_MAKELISTCURRENCY_DEC_COLL_STR_COLL_EX_OUT_1: 'A currency collection with two items. The first Currency item has an amount of 10.50 and NOT_SET code. The second Currency item has a NOT_SET amount and code of "EUR".', AR_FN_DSC_TOCURRENCY: "Converts a value to a Currency.", AR_FN_CUR_TOCURRENCY_STR_DSC: "Converts a String value to a Currency.", AR_FN_CUR_TOCURRENCY_STR_RV: "Returns a Currency value for the specified String.", AR_FN_CUR_TOCURRENCY_STR_PRM_DSC_0: 'The String to convert to a Currency value. The format should be "[amount]|[code]" where amount is a decimal value and code is an ISO 4217 currency code or blank.', AR_FN_CUR_TOCURRENCY_STR_EX_OUT_0: 'A Currency value with an amount of 5.00 and code of "USD" (United States dollars).', AR_FN_CUR_TOCURRENCY_STR_EX_OUT_1: 'A Currency value with a NOT_SET amount and code of "EUR" (Euros).', AR_FN_CUR_TOCURRENCY_STR_EX_OUT_2: "A Currency value with an amount of 5.00 and NOT_SET code.", AR_FN_CUR_TOCURRENCY_STR_EX_OUT_3: "A Currency value with an amount of 5.00 and NOT_SET code.", AR_FN_CUR_TOCURRENCY_STR_EX_OUT_4: "A NOT_SET Currency.", AR_FN_CUR_TOCURRENCY_DEC_DSC: "Converts a Decimal to a Currency without a code.", AR_FN_CUR_TOCURRENCY_DEC_RV: "Returns a Currency value from the specified Decimal.", AR_FN_CUR_TOCURRENCY_DEC_PRM_DSC_0: "The Decimal to convert to a Currency value.", AR_FN_CUR_TOCURRENCY_DEC_EX_OUT_0: "A Currency value with an amount of 5.00 and NOT_SET code.", AR_FN_CUR_TOCURRENCY_LNG_DSC: "Converts an Integer to a Currency without a code.", AR_FN_CUR_TOCURRENCY_LNG_RV: "Returns a Currency value from the supplied Integer.", AR_FN_CUR_TOCURRENCY_LNG_PRM_DSC_0: "The Integer to convert to a Currency value.", AR_FN_CUR_TOCURRENCY_LNG_EX_OUT_0: "A Currency value with an amount of 5 and NOT_SET code.", AR_FN_CUR_TOCURRENCY_NTS_DSC: "Converts NOT_SET to a NOT_SET Currency.", AR_FN_CUR_TOCURRENCY_NTS_RV: "Returns a NOT_SET Currency value.", AR_FN_CUR_TOCURRENCY_NTS_PRM_DSC_0: "The NOT_SET value.", AR_FN_CUR_TOCURRENCY_NTS_EX_OUT_0: "A NOT_SET Currency.", AR_FN_CUR_TOCURRENCY_CUR_DSC: "Returns a Currency from the supplied Currency value.", AR_FN_CUR_TOCURRENCY_CUR_RV: "Returns the supplied Currency value.", AR_FN_CUR_TOCURRENCY_CUR_PRM_DSC_0: "The Currency to return.", AR_FN_CUR_TOCURRENCY_CUR_EX_OUT_0: 'A Currency value with an amount of 5.25 and code of "USD" (United States dollars)', AR_FN_DSC_GETCURRENCYSYMBOL: "Returns the symbol for the specified ISO 4217 currency code.", AR_FN_STR_GETCURRENCYSYMBOL_STR_DSC: "Returns the currency symbol for the specified ISO 4217 currency code.", AR_FN_STR_GETCURRENCYSYMBOL_STR_RV: "Returns a Currency symbol for the specified String.", AR_FN_STR_GETCURRENCYSYMBOL_STR_PRM_DSC_0: "The ISO 4217 currency code for which you wish to get the currency symbol.", AR_FN_STR_GETCURRENCYSYMBOL_CUR_DSC: "Returns the currency symbol for the specified currency.", AR_FN_STR_GETCURRENCYSYMBOL_CUR_RV: "Returns a Currency symbol for the specified String.", AR_FN_STR_GETCURRENCYSYMBOL_CUR_PRM_DSC_0: "A Currency from which to get the symbol.", AR_FN_DSC_CONVERTCURRENCY: "Converts a currency from one code to another.", AR_FN_CUR_CONVERTCURRENCY_CUR_STR_DSC: "Converts a currency from one code to another keeping the amount the same.", AR_FN_CUR_CONVERTCURRENCY_CUR_STR_RV: "Returns the converted Currency value. Note that if sourceCurrency itself is NOT_SET, then a NOT_SET Currency is returned.", AR_FN_CUR_CONVERTCURRENCY_CUR_STR_PRM_DSC_0: "The Currency to convert.", AR_FN_CUR_CONVERTCURRENCY_CUR_STR_PRM_DSC_1: "The ISO 4217 currency code for the returned Currency value.", AR_FN_CUR_CONVERTCURRENCY_CUR_STR_EX_OUT_0: 'A Currency with an amount of 5.00 and code of "EUR".', AR_FN_CUR_CONVERTCURRENCY_CUR_STR_EX_OUT_1: 'A Currency with an amount of 5.00 and code of "EUR".', AR_FN_CUR_CONVERTCURRENCY_CUR_STR_EX_OUT_2: 'A Currency with a NOT_SET amount and code of "EUR".', AR_FN_CUR_CONVERTCURRENCY_CUR_STR_EX_OUT_3: "A Currency with a NOT_SET amount and NOT_SET code.", AR_FN_CUR_CONVERTCURRENCY_CUR_STR_EX_OUT_4: "A NOT_SET Currency.", AR_FN_CUR_CONVERTCURRENCY_CUR_STR_DEC_DSC: "Converts a currency from one code to another using a specified conversion rate.", AR_FN_CUR_CONVERTCURRENCY_CUR_STR_DEC_RV: "Returns the converted Currency value.", AR_FN_CUR_CONVERTCURRENCY_CUR_STR_DEC_PRM_DSC_0: "The Currency to convert.", AR_FN_CUR_CONVERTCURRENCY_CUR_STR_DEC_PRM_DSC_1: "The ISO 4217 currency code for the returned Currency value.", AR_FN_CUR_CONVERTCURRENCY_CUR_STR_DEC_PRM_DSC_2: "The exchange rate from the sourceCurrency input to the destination currency.", AR_FN_CUR_CONVERTCURRENCY_CUR_STR_DEC_EX_OUT_0: 'A Currency with an amount of 3.4685 and code of "EUR".', AR_FN_CUR_CONVERTCURRENCY_CUR_STR_DEC_EX_OUT_1: 'A Currency with an amount of 3.4685 and code of "EUR".', AR_FN_CUR_CONVERTCURRENCY_CUR_STR_DEC_EX_OUT_2: 'A Currency with a NOT_SET amount and code of "EUR".', AR_FN_CUR_CONVERTCURRENCY_CUR_STR_DEC_EX_OUT_3: "A NOT_SET Currency.", AR_FN_DSC_TOAUDIOTTS: "Creates an Audio from text.", AR_FN_AUDIO_TOAUDIOTTS_STR_DSC: "Creates an Audio from the supplied text using the text to speech engine for the flow's currently executing language.", AR_FN_AUDIO_TOAUDIOTTS_STR_RV: "Returns Audio from the submitted String.", AR_FN_AUDIO_TOAUDIOTTS_STR_PRM_DSC_0: "The text to convert to Audio.", AR_FN_AUDIO_TOAUDIOTTS_STR_EX_OUT_0: 'Audio for the string "Hello" spoken via. text to speech.', AR_FN_AUDIO_TOAUDIOTTS_STR_EX_OUT_1: "Blank Audio of 0ms duration. See the ToAudioBlank function if you wish to create blank Audio with a duration.", AR_FN_AUDIO_TOAUDIOTTS_STR_STR_DSC: "Creates an Audio from the supplied text using the text to speech engine for a specified IETF language tag.", AR_FN_AUDIO_TOAUDIOTTS_STR_STR_RV: "Returns Audio from the submitted String.", AR_FN_AUDIO_TOAUDIOTTS_STR_STR_PRM_DSC_0: "The text to convert to Audio.", AR_FN_AUDIO_TOAUDIOTTS_STR_STR_PRM_DSC_1: "The IETF language tag of the text to speech engine to use for the pronunciation of the supplied text.", AR_FN_AUDIO_TOAUDIOTTS_STR_STR_EX_OUT_0: 'Audio for the string "Hello" spoken via. the English (United States) (en-US) text to speech engine.', AR_FN_AUDIO_TOAUDIOTTS_STR_STR_EX_OUT_1: 'Audio for the string "Bonjour" spoken via. the French (Canada) (fr-CA) text to speech engine.', AR_FN_AUDIO_TOAUDIOTTS_STR_STR_EX_OUT_2: 'Audio for the string "Hola" spoken via. the Spanish (United States) (es-US) text the to speech engine.', AR_FN_AUDIO_TOAUDIOTTS_STR_STR_EX_OUT_3: "Blank Audio of 0ms duration. See the ToAudioBlank function if you wish to create blank Audio with a duration.", AR_FN_AUDIO_TOAUDIOTTS_STR_STRINGFORMAT_DSC: "Creates an Audio from text using text to speech with the option to read characters individually using the text to speech engine for the flow's currently executing language.", AR_FN_AUDIO_TOAUDIOTTS_STR_STRINGFORMAT_RV: "Returns Audio from the submitted String.", AR_FN_AUDIO_TOAUDIOTTS_STR_STRINGFORMAT_PRM_DSC_0: "The text to convert to Audio.", AR_FN_AUDIO_TOAUDIOTTS_STR_STRINGFORMAT_PRM_DSC_1: "The formatting used for the returned Audio.", AR_FN_AUDIO_TOAUDIOTTS_STR_STRINGFORMAT_EX_OUT_0: 'Audio of "H e l l o" where each letter is spoken individually.', AR_FN_AUDIO_TOAUDIOTTS_STR_STRINGFORMAT_EX_OUT_1: "Blank Audio of 0ms duration. See the ToAudioBlank function if you wish to create blank Audio with a duration.", AR_FN_DSC_TOAUDIOBLANK: "Creates blank Audio which can be used to provide a pause in audio playback.", AR_FN_AUDIO_TOAUDIOBLANK_LNG_DSC: "Creates blank Audio for a specified number of milliseconds.", AR_FN_AUDIO_TOAUDIOBLANK_LNG_RV: "Returns blank Audio of length specified in the lengthMS parameter.", AR_FN_AUDIO_TOAUDIOBLANK_LNG_PRM_DSC_0: "The number of milliseconds of blank audio to create.", AR_FN_AUDIO_TOAUDIOBLANK_LNG_EX_OUT_0: "Blank Audio with a duration of 500 milliseconds.", AR_FN_AUDIO_TOAUDIOBLANK_LNG_EX_OUT_1: 'Audio for "Hello" followed by one second of blank audio and then "World".', AR_FN_DSC_TOAUDIOBOOL: "Creates an Audio from a boolean value.", AR_FN_AUDIO_TOAUDIOBOOL_BLN_DSC: "Creates an Audio from a Boolean.", AR_FN_AUDIO_TOAUDIOBOOL_BLN_RV: "Returns Audio from the submitted Boolean.", AR_FN_AUDIO_TOAUDIOBOOL_BLN_PRM_DSC_0: "The boolean to convert to Audio.", AR_FN_AUDIO_TOAUDIOBOOL_BLN_EX_OUT_0: 'Audio of "True".', AR_FN_AUDIO_TOAUDIOBOOL_BLN_EX_OUT_1: "Blank Audio.", AR_FN_AUDIO_TOAUDIOBOOL_BLN_BOOLFORMATENUM_DSC: "Creates an Audio from a Boolean.", AR_FN_AUDIO_TOAUDIOBOOL_BLN_BOOLFORMATENUM_RV: "Returns Audio from the submitted Boolean.", AR_FN_AUDIO_TOAUDIOBOOL_BLN_BOOLFORMATENUM_PRM_DSC_0: "The boolean value to convert to Audio.", AR_FN_AUDIO_TOAUDIOBOOL_BLN_BOOLFORMATENUM_PRM_DSC_1: "Formatting information for the returned Audio.", AR_FN_AUDIO_TOAUDIOBOOL_BLN_BOOLFORMATENUM_EX_OUT_0: 'Audio of "No".', AR_FN_AUDIO_TOAUDIOBOOL_BLN_BOOLFORMATENUM_EX_OUT_1: 'Audio of "Yes".', AR_FN_AUDIO_TOAUDIOBOOL_BLN_BOOLFORMATENUM_EX_OUT_2: "Blank Audio.", AR_FN_DSC_TOAUDIODURATION: "Creates an Audio from a Duration value.", AR_FN_AUDIO_TOAUDIODURATION_DUR_DSC: "Creates an Audio from a Duration value down to seconds. Milliseconds on the Duration value are not part of the returned Audio.", AR_FN_AUDIO_TOAUDIODURATION_DUR_RV: "Returns Audio from the submitted Duration value.", AR_FN_AUDIO_TOAUDIODURATION_DUR_PRM_DSC_0: "The Duration value to convert to Audio.", AR_FN_AUDIO_TOAUDIODURATION_DUR_EX_OUT_0: 'Audio of "one hour thirty minutes".', AR_FN_AUDIO_TOAUDIODURATION_DUR_EX_OUT_1: 'Audio of "negative thirty minutes".', AR_FN_AUDIO_TOAUDIODURATION_DUR_EX_OUT_2: 'Audio of "one hour thirty minutes and five seconds".', AR_FN_AUDIO_TOAUDIODURATION_DUR_EX_OUT_3: "A NOT_SET Audio.", AR_FN_DSC_TOAUDIOPHONENUMBER: "Creates an Audio for phone number playback.", AR_FN_AUDIO_TOAUDIOPHONENUMBER_PHNBR_DSC: "Creates an Audio from a PhoneNumber value where the audio is the phone number played back in global format which uses the country code.", AR_FN_AUDIO_TOAUDIOPHONENUMBER_PHNBR_RV: "Returns Audio from the submitted PhoneNumber.", AR_FN_AUDIO_TOAUDIOPHONENUMBER_PHNBR_PRM_DSC_0: "The PhoneNumber to convert to Audio.", AR_FN_AUDIO_TOAUDIOPHONENUMBER_PHNBR_EX_OUT_0: 'Globally formatted phone number Audio of "plus one three one seven eight seven two three zero zero zero".', AR_FN_AUDIO_TOAUDIOPHONENUMBER_PHNBR_EX_OUT_1: 'Globally formatted phone number Audio for the phone number in Call.Ani if Call.Ani is a "tel" scheme phone number, otherwise blank Audio.', AR_FN_AUDIO_TOAUDIOPHONENUMBER_PHNBR_EX_OUT_2: "Blank Audio.", AR_FN_AUDIO_TOAUDIOPHONENUMBER_PHNBR_EX_OUT_3: "Blank Audio.", AR_FN_AUDIO_TOAUDIOPHONENUMBER_PHNBR_PHONENUMBERFORMATENUM_DSC: "Creates an Audio from a PhoneNumber value where the audio is the phone number played back in global or local format as specified by a parameter.", AR_FN_AUDIO_TOAUDIOPHONENUMBER_PHNBR_PHONENUMBERFORMATENUM_RV: "Returns Audio from the submitted PhoneNumber.", AR_FN_AUDIO_TOAUDIOPHONENUMBER_PHNBR_PHONENUMBERFORMATENUM_PRM_DSC_0: "The PhoneNumber to convert to Audio.", AR_FN_AUDIO_TOAUDIOPHONENUMBER_PHNBR_PHONENUMBERFORMATENUM_PRM_DSC_1: "Whether or not to use local or global formatting on the returned Audio.", AR_FN_AUDIO_TOAUDIOPHONENUMBER_PHNBR_PHONENUMBERFORMATENUM_EX_OUT_0: 'Locally formatted phone number Audio of "three one seven eight seven two three zero zero zero".', AR_FN_AUDIO_TOAUDIOPHONENUMBER_PHNBR_PHONENUMBERFORMATENUM_EX_OUT_1: 'Globally formatted phone number Audio of "plus one three one seven eight seven two three zero zero zero".', AR_FN_AUDIO_TOAUDIOPHONENUMBER_PHNBR_PHONENUMBERFORMATENUM_EX_OUT_2: 'Locally formatted phone number Audio of "zero seven five five five five one two one two".', AR_FN_AUDIO_TOAUDIOPHONENUMBER_PHNBR_PHONENUMBERFORMATENUM_EX_OUT_3: 'Globally formatted phone number Audio for the phone number in Call.Ani if Call.Ani is a "tel" scheme phone number, otherwise blank Audio.', AR_FN_AUDIO_TOAUDIOPHONENUMBER_PHNBR_PHONENUMBERFORMATENUM_EX_OUT_4: "Blank Audio.", AR_FN_AUDIO_TOAUDIOPHONENUMBER_PHNBR_PHONENUMBERFORMATENUM_EX_OUT_5: "Blank Audio.", AR_FN_AUDIO_TOAUDIOPHONENUMBER_PHNBR_STR_DSC: "Creates an Audio from a PhoneNumber value where the audio is the phone number played back in global or local format depending on the dialing code passed in.", AR_FN_AUDIO_TOAUDIOPHONENUMBER_PHNBR_STR_RV: "Returns Audio from the submitted PhoneNumber.", AR_FN_AUDIO_TOAUDIOPHONENUMBER_PHNBR_STR_PRM_DSC_0: "The PhoneNumber to convert to Audio.", AR_FN_AUDIO_TOAUDIOPHONENUMBER_PHNBR_STR_PRM_DSC_1: "If the dialing code specified here matches the dialing code in the phoneNumber parameter, local formatting will be used for the returned phone number Audio. Otherwise global formatting will be used.", AR_FN_AUDIO_TOAUDIOPHONENUMBER_PHNBR_STR_EX_OUT_0: 'Locally formatted phone number Audio of "three one seven eight seven two three zero zero zero".', AR_FN_AUDIO_TOAUDIOPHONENUMBER_PHNBR_STR_EX_OUT_1: 'Globally formatted phone number Audio of "plus one three one seven eight seven two three zero zero zero".', AR_FN_AUDIO_TOAUDIOPHONENUMBER_PHNBR_STR_EX_OUT_2: 'Globally formatted phone number Audio of "plus one three one seven eight seven two three zero zero zero".', AR_FN_AUDIO_TOAUDIOPHONENUMBER_PHNBR_STR_EX_OUT_3: 'Locally formatted phone number Audio of "zero seven five five five five one two one two".', AR_FN_AUDIO_TOAUDIOPHONENUMBER_PHNBR_STR_EX_OUT_4: 'Globally formatted phone number Audio for the phone number in Call.Ani if the dialing code is other than "1" and Call.Ani is a "tel" scheme phone number, otherwise blank Audio.', AR_FN_AUDIO_TOAUDIOPHONENUMBER_PHNBR_STR_EX_OUT_5: "Blank Audio.", AR_FN_AUDIO_TOAUDIOPHONENUMBER_PHNBR_STR_EX_OUT_6: "Blank Audio.", AR_FN_AUDIO_TOAUDIOPHONENUMBER_STR_DSC: "Creates an Audio from a String value where only numbers in the string are played back in the returned Audio.", AR_FN_AUDIO_TOAUDIOPHONENUMBER_STR_RV: "Returns Audio from the submitted String.", AR_FN_AUDIO_TOAUDIOPHONENUMBER_STR_PRM_DSC_0: "The string to convert to Audio as a phone number.", AR_FN_AUDIO_TOAUDIOPHONENUMBER_STR_EX_OUT_0: 'Audio for "eight one two five five five one two three four".', AR_FN_AUDIO_TOAUDIOPHONENUMBER_STR_EX_OUT_1: 'Audio for "eight one two five five five one two three four".', AR_FN_AUDIO_TOAUDIOPHONENUMBER_STR_EX_OUT_2: 'Audio for "eight one two five five five one two three four".', AR_FN_AUDIO_TOAUDIOPHONENUMBER_STR_EX_OUT_3: "Blank Audio.", AR_FN_DSC_TOAUDIOCURRENCY: "Creates an Audio from a Currency value.", AR_FN_AUDIO_TOAUDIOCURRENCY_CUR_DSC: "Creates an Audio from a Currency value localized to the current language for the flow.", AR_FN_AUDIO_TOAUDIOCURRENCY_CUR_RV: "Returns Audio from the submitted Currency.", AR_FN_AUDIO_TOAUDIOCURRENCY_CUR_PRM_DSC_0: "The Currency value to convert to Audio.", AR_FN_AUDIO_TOAUDIOCURRENCY_CUR_EX_OUT_0: 'Audio for "one million two hundred thirty four thousand five hundred sixty seven dollars and zero cents".', AR_FN_AUDIO_TOAUDIOCURRENCY_CUR_EX_OUT_1: 'Audio for "one dollar and twenty three cents".', AR_FN_AUDIO_TOAUDIOCURRENCY_CUR_EX_OUT_2: 'Audio for "one dollar and twenty three cents".', AR_FN_AUDIO_TOAUDIOCURRENCY_CUR_EX_OUT_3: "Blank Audio.", AR_FN_AUDIO_TOAUDIOCURRENCY_CUR_EX_OUT_4: 'Audio for "one dollar and fifty seven cents".', AR_FN_AUDIO_TOAUDIOCURRENCY_CUR_CURRENCYFORMAT_DSC: "Creates an Audio from a Currency value localized to the current language for the flow.", AR_FN_AUDIO_TOAUDIOCURRENCY_CUR_CURRENCYFORMAT_RV: "Returns Audio from the submitted Currency.", AR_FN_AUDIO_TOAUDIOCURRENCY_CUR_CURRENCYFORMAT_PRM_DSC_0: "The Currency value to convert to Audio.", AR_FN_AUDIO_TOAUDIOCURRENCY_CUR_CURRENCYFORMAT_PRM_DSC_1: "Formatting information for the returned Audio.", AR_FN_AUDIO_TOAUDIOCURRENCY_CUR_CURRENCYFORMAT_EX_OUT_0: 'Audio for "one million two hundred thirty four thousand five hundred sixty seven dollars".', AR_FN_AUDIO_TOAUDIOCURRENCY_CUR_CURRENCYFORMAT_EX_OUT_1: 'Audio for "eighty cents".', AR_FN_AUDIO_TOAUDIOCURRENCY_CUR_CURRENCYFORMAT_EX_OUT_2: 'Audio for "two hundred eighty cents".', AR_FN_AUDIO_TOAUDIOCURRENCY_CUR_CURRENCYFORMAT_EX_OUT_3: 'Audio for "one point two three dollars".', AR_FN_AUDIO_TOAUDIOCURRENCY_CUR_CURRENCYFORMAT_EX_OUT_4: 'Audio for "three zero point two zero dollars".', AR_FN_AUDIO_TOAUDIOCURRENCY_CUR_CURRENCYFORMAT_EX_OUT_5: 'Audio for "zero point two zero dollars".', AR_FN_AUDIO_TOAUDIOCURRENCY_CUR_CURRENCYFORMAT_EX_OUT_6: "Blank Audio.", AR_FN_AUDIO_TOAUDIOCURRENCY_CUR_LNG_DSC: "Creates an Audio from a Currency value localized to the current language for the flow played in decimal format with a specified number of decimal places.", AR_FN_AUDIO_TOAUDIOCURRENCY_CUR_LNG_RV: "Returns Audio from the submitted Currency.", AR_FN_AUDIO_TOAUDIOCURRENCY_CUR_LNG_PRM_DSC_0: "The Currency value to convert to Audio.", AR_FN_AUDIO_TOAUDIOCURRENCY_CUR_LNG_PRM_DSC_1: "The number of decimal places to include in the audio output.", AR_FN_AUDIO_TOAUDIOCURRENCY_CUR_LNG_EX_OUT_0: 'Audio for "one point two dollars".', AR_FN_AUDIO_TOAUDIOCURRENCY_CUR_LNG_EX_OUT_1: 'Audio for "one point two three dollars".', AR_FN_AUDIO_TOAUDIOCURRENCY_CUR_LNG_EX_OUT_2: 'Audio for "negative thirty five point two three dollars".', AR_FN_AUDIO_TOAUDIOCURRENCY_CUR_LNG_EX_OUT_3: 'Audio for "one point two three zero dollars".', AR_FN_AUDIO_TOAUDIOCURRENCY_CUR_LNG_EX_OUT_4: 'Audio for "one point two three dollars".', AR_FN_AUDIO_TOAUDIOCURRENCY_CUR_LNG_EX_OUT_5: 'Audio for "twenty one point two three dollars".', AR_FN_AUDIO_TOAUDIOCURRENCY_CUR_LNG_EX_OUT_6: "Blank Audio.", AR_FN_DSC_TOAUDIOPERCENT: "Creates Audio from an Integer value to be read as a percent.", AR_FN_AUDIO_TOAUDIOPERCENT_LNG_DSC: "Creates Audio from an Integer value to be read as a percent.", AR_FN_AUDIO_TOAUDIOPERCENT_LNG_RV: "Returns Audio from the submitted Integer.", AR_FN_AUDIO_TOAUDIOPERCENT_LNG_PRM_DSC_0: "The Integer value to convert to Audio.", AR_FN_AUDIO_TOAUDIOPERCENT_LNG_EX_OUT_0: 'Audio for "one hundred twenty three percent".', AR_FN_AUDIO_TOAUDIOPERCENT_LNG_EX_OUT_1: 'Audio for "five percent".', AR_FN_AUDIO_TOAUDIOPERCENT_LNG_EX_OUT_2: "Blank Audio.", AR_FN_AUDIO_TOAUDIOPERCENT_DEC_DSC: "Creates an Audio from a Decimal value to be read as a percent.", AR_FN_AUDIO_TOAUDIOPERCENT_DEC_RV: "Returns Audio from the submitted Decimal value.", AR_FN_AUDIO_TOAUDIOPERCENT_DEC_PRM_DSC_0: "The Decimal value to convert to Audio.", AR_FN_AUDIO_TOAUDIOPERCENT_DEC_EX_OUT_0: 'Audio for "one hundred, twenty three point twelve percent".', AR_FN_AUDIO_TOAUDIOPERCENT_DEC_EX_OUT_1: 'Audio for "zero point two percent".', AR_FN_AUDIO_TOAUDIOPERCENT_DEC_EX_OUT_2: "Blank Audio.", AR_FN_AUDIO_TOAUDIOPERCENT_DEC_LNG_DSC: "Creates an Audio from a Decimal value to be read as a percent, with the ability to specify how many decimal digits to play.", AR_FN_AUDIO_TOAUDIOPERCENT_DEC_LNG_RV: "Returns Audio from the submitted Decimal value.", AR_FN_AUDIO_TOAUDIOPERCENT_DEC_LNG_PRM_DSC_0: "The Decimal value to be played as audio.", AR_FN_AUDIO_TOAUDIOPERCENT_DEC_LNG_PRM_DSC_1: "Number of decimal places to read in the returned Audio.", AR_FN_AUDIO_TOAUDIOPERCENT_DEC_LNG_EX_OUT_0: 'Audio for "one hundred twenty three point one two percent".', AR_FN_AUDIO_TOAUDIOPERCENT_DEC_LNG_EX_OUT_1: 'Audio for "one hundred twenty three point one percent".', AR_FN_AUDIO_TOAUDIOPERCENT_DEC_LNG_EX_OUT_2: 'Audio for "one hundred twenty three point one two zero percent".', AR_FN_AUDIO_TOAUDIOPERCENT_DEC_LNG_EX_OUT_3: "Blank Audio.", AR_FN_DSC_TOAUDIODATE: "Creates an Audio from a Date.", AR_FN_AUDIO_TOAUDIODATE_DTM_DSC: "Creates a date Audio from a DateTime.", AR_FN_AUDIO_TOAUDIODATE_DTM_RV: "Returns Audio for the Date portion of the submitted DateTime.", AR_FN_AUDIO_TOAUDIODATE_DTM_PRM_DSC_0: "The DateTime value to convert to Audio.", AR_FN_AUDIO_TOAUDIODATE_DTM_EX_OUT_0: 'Audio for "Thursday November thirtieth nineteen hundred eighty nine".', AR_FN_AUDIO_TOAUDIODATE_DTM_EX_OUT_1: "Blank Audio.", AR_FN_AUDIO_TOAUDIODATE_DTM_DATETIMEFORMATENUM_DSC: "Creates an Audio for the year from a DateTime with formatting support.", AR_FN_AUDIO_TOAUDIODATE_DTM_DATETIMEFORMATENUM_RV: "Returns Audio for the Date portion of the submitted DateTime.", AR_FN_AUDIO_TOAUDIODATE_DTM_DATETIMEFORMATENUM_PRM_DSC_0: "The DateTime value to convert to Audio.", AR_FN_AUDIO_TOAUDIODATE_DTM_DATETIMEFORMATENUM_PRM_DSC_1: "Formatting information for the returned Audio.", AR_FN_AUDIO_TOAUDIODATE_DTM_DATETIMEFORMATENUM_EX_OUT_0: 'Audio for "Thursday November thirtieth nineteen hundred eighty nine".', AR_FN_AUDIO_TOAUDIODATE_DTM_DATETIMEFORMATENUM_EX_OUT_1: 'Audio for "Thursday November thirtieth nineteen eighty nine".', AR_FN_AUDIO_TOAUDIODATE_DTM_DATETIMEFORMATENUM_EX_OUT_2: 'Audio for "Thursday November thirtieth".', AR_FN_AUDIO_TOAUDIODATE_DTM_DATETIMEFORMATENUM_EX_OUT_3: 'Audio for "Seventh".', AR_FN_AUDIO_TOAUDIODATE_DTM_DATETIMEFORMATENUM_EX_OUT_4: 'Audio for "April".', AR_FN_AUDIO_TOAUDIODATE_DTM_DATETIMEFORMATENUM_EX_OUT_5: 'Audio for "twenty fourteen".', AR_FN_AUDIO_TOAUDIODATE_DTM_DATETIMEFORMATENUM_EX_OUT_6: 'Audio for "two thousand fourteen".', AR_FN_AUDIO_TOAUDIODATE_DTM_DATETIMEFORMATENUM_EX_OUT_7: 'Audio for "Wednesday".', AR_FN_AUDIO_TOAUDIODATE_DTM_DATETIMEFORMATENUM_EX_OUT_8: "Blank audio.", AR_FN_AUDIO_TOAUDIODATE_DATE_DSC: "Creates a date Audio from a Date.", AR_FN_AUDIO_TOAUDIODATE_DATE_RV: "Returns Audio for the Date.", AR_FN_AUDIO_TOAUDIODATE_DATE_PRM_DSC_0: "The Date value to convert to Audio.", AR_FN_AUDIO_TOAUDIODATE_DATE_EX_OUT_0: 'Audio for "Thursday November thirtieth nineteen hundred eighty nine".', AR_FN_AUDIO_TOAUDIODATE_DATE_EX_OUT_1: "Blank Audio.", AR_FN_AUDIO_TOAUDIODATE_DATE_DATEFORMATENUM_DSC: "Creates an Audio for the date with formatting support.", AR_FN_AUDIO_TOAUDIODATE_DATE_DATEFORMATENUM_RV: "Returns Audio for the Date with specified format.", AR_FN_AUDIO_TOAUDIODATE_DATE_DATEFORMATENUM_PRM_DSC_0: "The Date value to convert to Audio.", AR_FN_AUDIO_TOAUDIODATE_DATE_DATEFORMATENUM_PRM_DSC_1: "Formatting information for the returned Audio.", AR_FN_AUDIO_TOAUDIODATE_DATE_DATEFORMATENUM_EX_OUT_0: 'Audio for "Thursday November thirtieth nineteen hundred eighty nine".', AR_FN_AUDIO_TOAUDIODATE_DATE_DATEFORMATENUM_EX_OUT_1: 'Audio for "Thursday November thirtieth nineteen eighty nine".', AR_FN_AUDIO_TOAUDIODATE_DATE_DATEFORMATENUM_EX_OUT_2: 'Audio for "Thursday November thirtieth".', AR_FN_AUDIO_TOAUDIODATE_DATE_DATEFORMATENUM_EX_OUT_3: 'Audio for "Seventh".', AR_FN_AUDIO_TOAUDIODATE_DATE_DATEFORMATENUM_EX_OUT_4: 'Audio for "April".', AR_FN_AUDIO_TOAUDIODATE_DATE_DATEFORMATENUM_EX_OUT_5: 'Audio for "twenty fourteen".', AR_FN_AUDIO_TOAUDIODATE_DATE_DATEFORMATENUM_EX_OUT_6: 'Audio for "two thousand fourteen".', AR_FN_AUDIO_TOAUDIODATE_DATE_DATEFORMATENUM_EX_OUT_7: 'Audio for "Wednesday".', AR_FN_AUDIO_TOAUDIODATE_DATE_DATEFORMATENUM_EX_OUT_8: "Blank audio.", AR_FN_DSC_TOAUDIODATETIME: "Creates an Audio from a DateTime.", AR_FN_AUDIO_TOAUDIODATETIME_DTM_DSC: "Creates an Audio from a DateTime.", AR_FN_AUDIO_TOAUDIODATETIME_DTM_RV: "Returns Audio from the submitted DateTime value.", AR_FN_AUDIO_TOAUDIODATETIME_DTM_PRM_DSC_0: "The DateTime value to convert to Audio.", AR_FN_AUDIO_TOAUDIODATETIME_DTM_EX_OUT_0: 'Audio for "Two twenty two PM Thursday November thirtieth nineteen hundred eighty nine".', AR_FN_AUDIO_TOAUDIODATETIME_DTM_EX_OUT_1: 'Audio for "Two twenty two PM Thursday November thirtieth nineteen hundred eighty nine".', AR_FN_AUDIO_TOAUDIODATETIME_DTM_EX_OUT_2: 'Audio for "Twelve AM Thursday November thirtieth nineteen hundred eighty nine".', AR_FN_AUDIO_TOAUDIODATETIME_DTM_EX_OUT_3: "Blank Audio.", AR_FN_DSC_TOAUDIOTIME: "Creates an Audio from a DateTime input.", AR_FN_AUDIO_TOAUDIOTIME_DTM_DSC: "Creates an Audio from a DateTime and only plays the Time portion.", AR_FN_AUDIO_TOAUDIOTIME_DTM_RV: "Returns Audio for the submitted DateTime value.", AR_FN_AUDIO_TOAUDIOTIME_DTM_PRM_DSC_0: "The DateTime value to convert to Audio.", AR_FN_AUDIO_TOAUDIOTIME_DTM_EX_OUT_0: 'Audio for "Two twenty two PM" or "Fourteen twenty two" depending on active language.', AR_FN_AUDIO_TOAUDIOTIME_DTM_EX_OUT_1: 'Audio for "Twelve AM" or "Zero hours" depending on active language.', AR_FN_AUDIO_TOAUDIOTIME_DTM_EX_OUT_2: "Blank Audio.", AR_FN_AUDIO_TOAUDIOTIME_DTM_TIMEFORMATENUM_DSC: "Creates an Audio from a DateTime and only plays the Time portion.", AR_FN_AUDIO_TOAUDIOTIME_DTM_TIMEFORMATENUM_RV: "Returns Audio for the submitted DateTime value.", AR_FN_AUDIO_TOAUDIOTIME_DTM_TIMEFORMATENUM_PRM_DSC_0: "The DateTme value to convert to Audio.", AR_FN_AUDIO_TOAUDIOTIME_DTM_TIMEFORMATENUM_PRM_DSC_1: "Time Format Enum to be used in the returned Audio.", AR_FN_AUDIO_TOAUDIOTIME_DTM_TIMEFORMATENUM_EX_OUT_0: 'Audio for "Four teen twenty two".', AR_FN_AUDIO_TOAUDIOTIME_DTM_TIMEFORMATENUM_EX_OUT_1: 'Audio for "Two twenty two".', AR_FN_AUDIO_TOAUDIOTIME_DTM_TIMEFORMATENUM_EX_OUT_2: "Blank Audio.", AR_FN_DSC_TOAUDIO: "Converts a value to Audio.", AR_FN_AUDIO_TOAUDIO_PROMPT_DSC: "Converts a Prompt to Audio.", AR_FN_AUDIO_TOAUDIO_PROMPT_RV: "Returns Audio for the specified Prompt.", AR_FN_AUDIO_TOAUDIO_PROMPT_PRM_DSC_0: "The Prompt to convert to Audio. The prompt audio preference is first to get the audio configured on the prompt for the language in which the flow is currently running. If no audio is present, then the runtime will fall back to the text to speech configured on the prompt for the language in which the flow is currently running.", AR_FN_AUDIO_TOAUDIO_PROMPT_EX_OUT_0: "Audio for the Prompt.Welcome prompt for the language in which the current flow is running.", AR_FN_AUDIO_TOAUDIO_PROMPT_COLL_DSC: "Converts a Prompt Collection to Audio.", AR_FN_AUDIO_TOAUDIO_PROMPT_COLL_RV: "Returns Audio for the specified Prompt collection.", AR_FN_AUDIO_TOAUDIO_PROMPT_COLL_PRM_DSC_0: "The Prompt collection to convert to Audio. The runtime preference for each prompt in the collection is to get the prompt audio for the language in which the current flow is running. If audio is not available for an individual prompt, the flow runtime will fall back to the text to speech configured on the prompt for the language in which the flow is currently running.", AR_FN_AUDIO_TOAUDIO_PROMPT_COLL_EX_OUT_0: "Audio for the Prompt.Hello prompt followed by audio for the Prompt.World prompt in the language in which the current flow is currently running.", AR_FN_AUDIO_TOAUDIO_VOICEMAILSNIPPET_DSC: "Converts a VoicemailSnippet to Audio.", AR_FN_AUDIO_TOAUDIO_VOICEMAILSNIPPET_RV: "Returns Audio for the specified VoicemailSnippet.", AR_FN_AUDIO_TOAUDIO_VOICEMAILSNIPPET_PRM_DSC_0: "The VoicemailSnippet value to convert to Audio.", AR_FN_AUDIO_TOAUDIO_VOICEMAILSNIPPET_EX_OUT_0: "Audio for the Voicemail.VoicemailSnippet variable.", AR_FN_AUDIO_TOAUDIO_VOICEMAILSNIPPET_EX_OUT_1: "A NOT_SET Audio.", AR_FN_AUDIO_TOAUDIO_VOICESNIPPET_DSC: "Converts a VoiceSnippet to Audio.", AR_FN_AUDIO_TOAUDIO_VOICESNIPPET_RV: "Returns Audio for the specified VoiceSnippet.", AR_FN_AUDIO_TOAUDIO_VOICESNIPPET_PRM_DSC_0: "The VoiceSnippet value to convert to Audio.", AR_FN_AUDIO_TOAUDIO_VOICESNIPPET_EX_OUT_0: "Audio for the Flow.ParticipantSnippet VoiceSnippet variable.", AR_FN_AUDIO_TOAUDIO_VOICESNIPPET_EX_OUT_1: "A NOT_SET Audio.", AR_FN_AUDIO_TOAUDIO_NTS_DSC: "Converts a NOT_SET value to a NOT_SET Audio.", AR_FN_AUDIO_TOAUDIO_NTS_RV: "Returns a NOT_SET Audio.", AR_FN_AUDIO_TOAUDIO_NTS_PRM_DSC_0: "The NOT_SET value to convert to Audio.", AR_FN_AUDIO_TOAUDIO_NTS_EX_OUT_0: "A NOT_SET Audio.", AR_FN_DSC_TOCOMMUNICATION: "Converts a value to a Communication value. Communication objects are like Audio except that they supply either audio or text for communication on the current media channel.", AR_FN_COMMUNICATION_TOCOMMUNICATION_ANY_DSC: "Converts an Any value to a Communication.", AR_FN_COMMUNICATION_TOCOMMUNICATION_ANY_RV: "Returns a Communication for the submitted value.", AR_FN_COMMUNICATION_TOCOMMUNICATION_ANY_PRM_DSC_0: "The value to convert to a Communication. If the value is NOT_SET, a blank Communication will be generated at runtime.", AR_FN_COMMUNICATION_TOCOMMUNICATION_ANY_EX_OUT_0: 'A Communication with audio for "uno" and text of "1".', AR_FN_COMMUNICATION_TOCOMMUNICATION_ANY_COLL_DSC: "Converts an Any collection value to a Communication.", AR_FN_COMMUNICATION_TOCOMMUNICATION_ANY_COLL_RV: "Returns a Communication for the submitted collection value.", AR_FN_COMMUNICATION_TOCOMMUNICATION_ANY_COLL_PRM_DSC_0: "The value to convert to a Communication. If the value is NOT_SET, a blank Communication will be generated at runtime.", AR_FN_COMMUNICATION_TOCOMMUNICATION_ANY_COLL_EX_OUT_0: 'A Communication with audio for "uno dos" and text of "1\\n2".', AR_FN_COMMUNICATION_TOCOMMUNICATION_ANY_COLL_STR_DSC: "Converts an Any collection value to a Communication. The method calls ToCommunication on each element in the collection and appends it to the returned value for each item to the result Communication. Items in the returned Communication are delimited with the value specified in the delimiter parameter for the text value.", AR_FN_COMMUNICATION_TOCOMMUNICATION_ANY_COLL_STR_RV: "Returns a Communication for the submitted collection value.", AR_FN_COMMUNICATION_TOCOMMUNICATION_ANY_COLL_STR_PRM_DSC_0: "The collection value to convert to a Communication.", AR_FN_COMMUNICATION_TOCOMMUNICATION_ANY_COLL_STR_PRM_DSC_1: "The delimiter to use between items in the returned Communication. If the delimiter is a NOT_SET String, a newline will be used for the delimiter.", AR_FN_COMMUNICATION_TOCOMMUNICATION_ANY_COLL_STR_EX_OUT_0: 'A Communication with audio for "uno dos" and text of "1, 2".', AR_FN_COMMUNICATION_TOCOMMUNICATION_BLN_BOOLFORMATENUM_DSC: "Creates an Communication from a Boolean.", AR_FN_COMMUNICATION_TOCOMMUNICATION_BLN_BOOLFORMATENUM_RV: "Returns a Communication for the submitted Boolean value.", AR_FN_COMMUNICATION_TOCOMMUNICATION_BLN_BOOLFORMATENUM_PRM_DSC_0: "The Boolean value to convert to a Communication.", AR_FN_COMMUNICATION_TOCOMMUNICATION_BLN_BOOLFORMATENUM_PRM_DSC_1: "Formatting information for the returned Communication.", AR_FN_COMMUNICATION_TOCOMMUNICATION_BLN_BOOLFORMATENUM_EX_OUT_0: 'Communication with audio of "no" and text of "no".', AR_FN_COMMUNICATION_TOCOMMUNICATION_BLN_BOOLFORMATENUM_EX_OUT_1: 'Communication with audio of "yes" and text of "yes"', AR_FN_COMMUNICATION_TOCOMMUNICATION_BLN_BOOLFORMATENUM_EX_OUT_2: "A blank Communication with blank audio of 0ms duration and blank text. See the ToCommunicationBlank function if you wish to create blank Communication with a duration.", AR_FN_COMMUNICATION_TOCOMMUNICATION_CUR_CURRENCYFORMAT_DSC: "Creates a Communication from a Currency value localized to the current language for the flow.", AR_FN_COMMUNICATION_TOCOMMUNICATION_CUR_CURRENCYFORMAT_RV: "Returns a Communication for the submitted Currency value.", AR_FN_COMMUNICATION_TOCOMMUNICATION_CUR_CURRENCYFORMAT_PRM_DSC_0: "The Currency value to convert to a Communication.", AR_FN_COMMUNICATION_TOCOMMUNICATION_CUR_CURRENCYFORMAT_PRM_DSC_1: "Formatting information for the returned Communication.", AR_FN_COMMUNICATION_TOCOMMUNICATION_CUR_CURRENCYFORMAT_EX_OUT_0: 'Communication with audio of "one million two hundred thirty four thousand five hundred sixty seven dollars" and text of "$1,234,567.00".', AR_FN_COMMUNICATION_TOCOMMUNICATION_CUR_CURRENCYFORMAT_EX_OUT_1: 'Communication with audio of "eighty cents" and text of "$.80".', AR_FN_COMMUNICATION_TOCOMMUNICATION_CUR_CURRENCYFORMAT_EX_OUT_2: 'Communication with audio of "two hundred eighty cents" and text of "280 cents".', AR_FN_COMMUNICATION_TOCOMMUNICATION_CUR_CURRENCYFORMAT_EX_OUT_3: "A NOT_SET Communication.", AR_FN_COMMUNICATION_TOCOMMUNICATION_CUR_LNG_DSC: "Creates a Communication from a Currency value localized to the current language for the flow played in decimal format with a specified number of decimal places.", AR_FN_COMMUNICATION_TOCOMMUNICATION_CUR_LNG_RV: "Returns a Communication for the submitted Currency value.", AR_FN_COMMUNICATION_TOCOMMUNICATION_CUR_LNG_PRM_DSC_0: "The Currency value to convert to a Communication.", AR_FN_COMMUNICATION_TOCOMMUNICATION_CUR_LNG_PRM_DSC_1: "The number of decimal places to include in the communication output.", AR_FN_COMMUNICATION_TOCOMMUNICATION_CUR_LNG_EX_OUT_0: 'Communication for "one point three dollars".', AR_FN_COMMUNICATION_TOCOMMUNICATION_CUR_LNG_EX_OUT_1: 'Communication for "one point two three dollars".', AR_FN_COMMUNICATION_TOCOMMUNICATION_CUR_LNG_EX_OUT_2: 'Communication for "one point two three zero dollars".', AR_FN_COMMUNICATION_TOCOMMUNICATION_CUR_LNG_EX_OUT_3: 'Communication for "negative thirty five point two three dollars".', AR_FN_COMMUNICATION_TOCOMMUNICATION_CUR_LNG_EX_OUT_4: "A NOT_SET Communication.", AR_FN_COMMUNICATION_TOCOMMUNICATION_DATE_DATEFORMATENUM_DSC: "Creates a Communication for the year from a Date with formatting support.", AR_FN_COMMUNICATION_TOCOMMUNICATION_DATE_DATEFORMATENUM_RV: "Returns a Communication for the submitted the Date value.", AR_FN_COMMUNICATION_TOCOMMUNICATION_DATE_DATEFORMATENUM_PRM_DSC_0: "The Date value to convert to a Communication.", AR_FN_COMMUNICATION_TOCOMMUNICATION_DATE_DATEFORMATENUM_PRM_DSC_1: "Formatting information for the returned Communication.", AR_FN_COMMUNICATION_TOCOMMUNICATION_DATE_DATEFORMATENUM_EX_OUT_0: 'Communication with audio of "Thursday November thirtieth nineteen hundred eighty nine" and text of "11/13/1989".', AR_FN_COMMUNICATION_TOCOMMUNICATION_DATE_DATEFORMATENUM_EX_OUT_1: 'Communication with audio of "Thursday November thirtieth nineteen eighty nine" and text of "11/13/89".', AR_FN_COMMUNICATION_TOCOMMUNICATION_DATE_DATEFORMATENUM_EX_OUT_2: 'Communication with audio of "Thursday November thirtieth" and text "Thursday, November 30th"', AR_FN_COMMUNICATION_TOCOMMUNICATION_DATE_DATEFORMATENUM_EX_OUT_3: 'Communication with audio of "Seventh" and text of "7th".', AR_FN_COMMUNICATION_TOCOMMUNICATION_DATE_DATEFORMATENUM_EX_OUT_4: 'Communication with audio and text of "April".', AR_FN_COMMUNICATION_TOCOMMUNICATION_DATE_DATEFORMATENUM_EX_OUT_5: 'Communication with audio of "twenty fourteen" and text of "2014".', AR_FN_COMMUNICATION_TOCOMMUNICATION_DATE_DATEFORMATENUM_EX_OUT_6: 'Communication with audio of "two thousand fourteen" and text of "2014".', AR_FN_COMMUNICATION_TOCOMMUNICATION_DATE_DATEFORMATENUM_EX_OUT_7: 'Communication with audio and text of "Wednesday".', AR_FN_COMMUNICATION_TOCOMMUNICATION_DEC_NUMBERFORMATENUM_DSC: "Creates a Communication from a Decimal.", AR_FN_COMMUNICATION_TOCOMMUNICATION_DEC_NUMBERFORMATENUM_RV: "Returns a Communication for the submitted Decimal value.", AR_FN_COMMUNICATION_TOCOMMUNICATION_DEC_NUMBERFORMATENUM_PRM_DSC_0: "The Decimal value to convert to a Communication. If the Decimal value is greater than or equal to 1 trillion, the number will be played back as digits. If the Decimal value is an integral value, only the integral part will be played back.", AR_FN_COMMUNICATION_TOCOMMUNICATION_DEC_NUMBERFORMATENUM_PRM_DSC_1: "Number formatting to be used in the returned Communication.", AR_FN_COMMUNICATION_TOCOMMUNICATION_DEC_NUMBERFORMATENUM_EX_OUT_0: 'Communication with audio of "five point five" and text of "5 . 5".', AR_FN_COMMUNICATION_TOCOMMUNICATION_DEC_NUMBERFORMATENUM_EX_OUT_1: 'Communication with audio of "negative five zero zero" and text of "- 5 0 0".', AR_FN_COMMUNICATION_TOCOMMUNICATION_DEC_NUMBERFORMATENUM_EX_OUT_2: "A NOT_SET Communication.", AR_FN_COMMUNICATION_TOCOMMUNICATION_DEC_LNG_DSC: "Creates a Communication from a Decimal with a specified number of decimal places.", AR_FN_COMMUNICATION_TOCOMMUNICATION_DEC_LNG_RV: "Returns a Communication for the submitted Decimal value.", AR_FN_COMMUNICATION_TOCOMMUNICATION_DEC_LNG_PRM_DSC_0: "The Decimal value to convert to a Communication.", AR_FN_COMMUNICATION_TOCOMMUNICATION_DEC_LNG_PRM_DSC_1: "The number of decimal places to include in the communication output.", AR_FN_COMMUNICATION_TOCOMMUNICATION_DEC_LNG_EX_OUT_0: 'Communication with audio of "one point three" and text of "1.3".', AR_FN_COMMUNICATION_TOCOMMUNICATION_DEC_LNG_EX_OUT_1: 'Communication with audio of "one point two three" and text of "1.23".', AR_FN_COMMUNICATION_TOCOMMUNICATION_DEC_LNG_EX_OUT_2: 'Communication with audio of "one point two three zero" and text of "1.230".', AR_FN_COMMUNICATION_TOCOMMUNICATION_DEC_LNG_EX_OUT_3: 'Communication with audio of "negative thirty five point one seven" and text of "-35.17".', AR_FN_COMMUNICATION_TOCOMMUNICATION_DEC_LNG_EX_OUT_4: "A NOT_SET Communication.", AR_FN_COMMUNICATION_TOCOMMUNICATION_LNG_LANGUAGECONTEXTENUM_MORE_DSC: "Creates a Communication from an Integer with language context.", AR_FN_COMMUNICATION_TOCOMMUNICATION_LNG_LANGUAGECONTEXTENUM_MORE_RV: "Returns a Communication for the submitted Integer value based on the supplied language context.", AR_FN_COMMUNICATION_TOCOMMUNICATION_LNG_LANGUAGECONTEXTENUM_MORE_PRM_DSC_0: "The Integer to convert to a Communication. If the Integer value is NOT_SET, blank Communication will be returned.", AR_FN_COMMUNICATION_TOCOMMUNICATION_LNG_LANGUAGECONTEXTENUM_MORE_PRM_DSC_1: "Language contextual information on how to play back the number.", AR_FN_COMMUNICATION_TOCOMMUNICATION_LNG_LANGUAGECONTEXTENUM_MORE_EX_OUT_0: 'Communication with audio of "uno" and text of "1".', AR_FN_COMMUNICATION_TOCOMMUNICATION_LNG_LANGUAGECONTEXTENUM_MORE_EX_OUT_1: 'Communication with audio of "un" and text of "1".', AR_FN_COMMUNICATION_TOCOMMUNICATION_LNG_LANGUAGECONTEXTENUM_MORE_EX_OUT_2: 'Communication with audio of "unos" and text of "5".', AR_FN_COMMUNICATION_TOCOMMUNICATION_LNG_LANGUAGECONTEXTENUM_MORE_EX_OUT_3: 'Communication for "una" and text of "1".', AR_FN_COMMUNICATION_TOCOMMUNICATION_LNG_LANGUAGECONTEXTENUM_MORE_EX_OUT_4: 'Communication with audio of "una" and text of "1".', AR_FN_COMMUNICATION_TOCOMMUNICATION_LNG_LANGUAGECONTEXTENUM_MORE_EX_OUT_5: 'Communication with audio of "unas" and text of "5".', AR_FN_COMMUNICATION_TOCOMMUNICATION_LNG_LANGUAGECONTEXTENUM_MORE_EX_OUT_6: "A NOT_SET Communication.", AR_FN_COMMUNICATION_TOCOMMUNICATION_LNG_NUMBERFORMATENUM_DSC: "Creates a Communication from an Integer with formatting.", AR_FN_COMMUNICATION_TOCOMMUNICATION_LNG_NUMBERFORMATENUM_RV: "Returns a Communication for the submitted Integer value with the supplied formatting option.", AR_FN_COMMUNICATION_TOCOMMUNICATION_LNG_NUMBERFORMATENUM_PRM_DSC_0: "The Integer value to convert to a Communication.", AR_FN_COMMUNICATION_TOCOMMUNICATION_LNG_NUMBERFORMATENUM_PRM_DSC_1: "Number Format Enum to be used in the returned Communication.", AR_FN_COMMUNICATION_TOCOMMUNICATION_LNG_NUMBERFORMATENUM_EX_OUT_0: 'Communication with audio of "five zero zero" and text of "5 0 0".', AR_FN_COMMUNICATION_TOCOMMUNICATION_LNG_NUMBERFORMATENUM_EX_OUT_1: "A NOT_SET Communication.", AR_FN_COMMUNICATION_TOCOMMUNICATION_LNG_NUMBERFORMATENUM_LANGUAGECONTEXTENUM_MORE_DSC: "Creates a Communication from an Integer with formatting and language context.", AR_FN_COMMUNICATION_TOCOMMUNICATION_LNG_NUMBERFORMATENUM_LANGUAGECONTEXTENUM_MORE_RV: "Returns a Communication for the submitted Integer value with formatting and language context.", AR_FN_COMMUNICATION_TOCOMMUNICATION_LNG_NUMBERFORMATENUM_LANGUAGECONTEXTENUM_MORE_PRM_DSC_0: "The Integer value to convert to a Communication.", AR_FN_COMMUNICATION_TOCOMMUNICATION_LNG_NUMBERFORMATENUM_LANGUAGECONTEXTENUM_MORE_PRM_DSC_1: "Number Format Enum to be used in the returned Communication.", AR_FN_COMMUNICATION_TOCOMMUNICATION_LNG_NUMBERFORMATENUM_LANGUAGECONTEXTENUM_MORE_PRM_DSC_2: "Language contextual information on how to play back the number.", AR_FN_COMMUNICATION_TOCOMMUNICATION_LNG_NUMBERFORMATENUM_LANGUAGECONTEXTENUM_MORE_EX_OUT_0: 'Communication with audio of "uno dos" and text of "1 2".', AR_FN_COMMUNICATION_TOCOMMUNICATION_LNG_NUMBERFORMATENUM_LANGUAGECONTEXTENUM_MORE_EX_OUT_1: 'Communication with audio of "un un" and text of "1 1".', AR_FN_COMMUNICATION_TOCOMMUNICATION_LNG_NUMBERFORMATENUM_LANGUAGECONTEXTENUM_MORE_EX_OUT_2: 'Communication with audio of "unos unos" and text of "1 1".', AR_FN_COMMUNICATION_TOCOMMUNICATION_LNG_NUMBERFORMATENUM_LANGUAGECONTEXTENUM_MORE_EX_OUT_3: 'Communication with audio of "una dos" and text of "1 2".', AR_FN_COMMUNICATION_TOCOMMUNICATION_LNG_NUMBERFORMATENUM_LANGUAGECONTEXTENUM_MORE_EX_OUT_4: 'Communication with audio of "una unas" and text of "1 1".', AR_FN_COMMUNICATION_TOCOMMUNICATION_LNG_NUMBERFORMATENUM_LANGUAGECONTEXTENUM_MORE_EX_OUT_5: "A NOT_SET Communication.", AR_FN_COMMUNICATION_TOCOMMUNICATION_NTS_DSC: "Converts a NOT_SET value to a blank Communication.", AR_FN_COMMUNICATION_TOCOMMUNICATION_NTS_RV: "Returns a blank Communication.", AR_FN_COMMUNICATION_TOCOMMUNICATION_NTS_PRM_DSC_0: "The NOT_SET value to convert to a Communication object.", AR_FN_COMMUNICATION_TOCOMMUNICATION_NTS_EX_OUT_0: "A NOT_SET Communication.", AR_FN_COMMUNICATION_TOCOMMUNICATION_STR_STRINGFORMAT_DSC: "Creates a Communication from text using text to speech with the option to read characters individually using the text to speech engine for the flow's currently executing language.", AR_FN_COMMUNICATION_TOCOMMUNICATION_STR_STRINGFORMAT_RV: "Returns a Communication from the submitted String.", AR_FN_COMMUNICATION_TOCOMMUNICATION_STR_STRINGFORMAT_PRM_DSC_0: "The text to convert to a Communication.", AR_FN_COMMUNICATION_TOCOMMUNICATION_STR_STRINGFORMAT_PRM_DSC_1: "The formatting used for the returned Communication.", AR_FN_COMMUNICATION_TOCOMMUNICATION_STR_STRINGFORMAT_EX_OUT_0: 'A Communication of "H e l l o" where each letter is communicated individually.', AR_FN_COMMUNICATION_TOCOMMUNICATION_STR_STRINGFORMAT_EX_OUT_1: "A NOT_SET Communication.", AR_FN_COMMUNICATION_TOCOMMUNICATION_TIME_TIMEFORMATENUM_DSC: "Creates a Communication from a Time.", AR_FN_COMMUNICATION_TOCOMMUNICATION_TIME_TIMEFORMATENUM_RV: "Returns a Communication for the submitted Time value.", AR_FN_COMMUNICATION_TOCOMMUNICATION_TIME_TIMEFORMATENUM_PRM_DSC_0: "The Time value to convert to a Communication.", AR_FN_COMMUNICATION_TOCOMMUNICATION_TIME_TIMEFORMATENUM_PRM_DSC_1: "Time Format Enum to be used in the returned Communication.", AR_FN_COMMUNICATION_TOCOMMUNICATION_TIME_TIMEFORMATENUM_EX_OUT_0: 'Communication with audio of "Fourteen twenty two" and text of "14:22:11".', AR_FN_COMMUNICATION_TOCOMMUNICATION_TIME_TIMEFORMATENUM_EX_OUT_1: 'Communication with audio of "Two twenty two" and text of "02:22:11PM"', AR_FN_COMMUNICATION_TOCOMMUNICATION_TIME_TIMEFORMATENUM_EX_OUT_2: "A NOT_SET Communication.", AR_FN_COMMUNICATION_TOCOMMUNICATION_TIME_TIMEPARTENUM_DSC: "Creates a Communication by obtaining a part from a Time.", AR_FN_COMMUNICATION_TOCOMMUNICATION_TIME_TIMEPARTENUM_RV: "Returns a Communication for the submitted Time value.", AR_FN_COMMUNICATION_TOCOMMUNICATION_TIME_TIMEPARTENUM_PRM_DSC_0: "The Time value to convert to a Communication.", AR_FN_COMMUNICATION_TOCOMMUNICATION_TIME_TIMEPARTENUM_PRM_DSC_1: "Time Part Enum to be used in the returned Communication. Format.TimePart.days is not valid for use in this parameter since time values do not have a day component.", AR_FN_COMMUNICATION_TOCOMMUNICATION_TIME_TIMEPARTENUM_EX_OUT_0: 'Communication with audio of "Nine" and text of "9".', AR_FN_COMMUNICATION_TOCOMMUNICATION_TIME_TIMEPARTENUM_EX_OUT_1: 'Communication with audio of "Two twenty two" and text of "22"', AR_FN_DSC_TOCOMMUNICATIONBLANK: "Creates a blank Communication which can be used to provide a pause in communication playback.", AR_FN_COMMUNICATION_TOCOMMUNICATIONBLANK_LNG_DSC: "Creates a blank Communication for a specified number of milliseconds.", AR_FN_COMMUNICATION_TOCOMMUNICATIONBLANK_LNG_RV: "Returns blank Communication of length specified in the lengthMS parameter.", AR_FN_COMMUNICATION_TOCOMMUNICATIONBLANK_LNG_PRM_DSC_0: "The number of milliseconds of blank communication to create.", AR_FN_COMMUNICATION_TOCOMMUNICATIONBLANK_LNG_EX_OUT_0: "A Communication with blank audio with a duration of 500 milliseconds and blank text output that pauses for 500 milliseconds.", AR_FN_COMMUNICATION_TOCOMMUNICATIONBLANK_LNG_EX_OUT_1: "A Communication with blank audio with a duration of 0 milliseconds and blank text output that does not pause.", AR_FN_DSC_TOCOMMUNICATIONORDINAL: 'Creates a Communication from a number with ordinal playback such as "first", "second", ..., "seven hundred and sixteenth"', AR_FN_COMMUNICATION_TOCOMMUNICATIONORDINAL_LNG_DSC: "Creates an ordinal Communication from an Integer.", AR_FN_COMMUNICATION_TOCOMMUNICATIONORDINAL_LNG_RV: "Returns ordinal Communication for the submitted Integer value.", AR_FN_COMMUNICATION_TOCOMMUNICATIONORDINAL_LNG_PRM_DSC_0: "The Integer to convert to a Communication. If the Integer value is less than 1 or greater than 999, the communication playback will be read as a normal number and not as an ordinal.", AR_FN_COMMUNICATION_TOCOMMUNICATIONORDINAL_LNG_EX_OUT_0: 'Communication with audio of "first" and text of "1".', AR_FN_COMMUNICATION_TOCOMMUNICATIONORDINAL_LNG_EX_OUT_1: 'Communication with audio of"two hundred and first" and text of "201".', AR_FN_COMMUNICATION_TOCOMMUNICATIONORDINAL_LNG_EX_OUT_2: 'Communication with audio of "five hundredth" and text of "500".', AR_FN_COMMUNICATION_TOCOMMUNICATIONORDINAL_LNG_EX_OUT_3: 'Communication with audio of "five thousand" and text of "5000".', AR_FN_COMMUNICATION_TOCOMMUNICATIONORDINAL_LNG_EX_OUT_4: 'Communication with audio of "negative five hundred" and text of "-500".', AR_FN_COMMUNICATION_TOCOMMUNICATIONORDINAL_LNG_EX_OUT_5: "A NOT_SET Communication.", AR_FN_COMMUNICATION_TOCOMMUNICATIONORDINAL_LNG_LANGUAGECONTEXTENUM_MORE_DSC: "Creates an ordinal Communication from an Integer with language context.", AR_FN_COMMUNICATION_TOCOMMUNICATIONORDINAL_LNG_LANGUAGECONTEXTENUM_MORE_RV: "Returns ordinal Communication for the submitted Integer value based on the supplied language context.", AR_FN_COMMUNICATION_TOCOMMUNICATIONORDINAL_LNG_LANGUAGECONTEXTENUM_MORE_PRM_DSC_0: "The Integer to convert to a Communication. If the Integer value is NOT_SET, blank Communication will be returned. If the Integer value is less than 1 or greater than 999, the communication playback will be read as a normal number and not as an ordinal.", AR_FN_COMMUNICATION_TOCOMMUNICATIONORDINAL_LNG_LANGUAGECONTEXTENUM_MORE_PRM_DSC_1: "Language contextual information on how to play back the number.", AR_FN_COMMUNICATION_TOCOMMUNICATIONORDINAL_LNG_LANGUAGECONTEXTENUM_MORE_EX_OUT_0: 'Communication with audio of "premier" and text of "1".', AR_FN_COMMUNICATION_TOCOMMUNICATIONORDINAL_LNG_LANGUAGECONTEXTENUM_MORE_EX_OUT_1: 'Communication with audio of "premi\xE8re" and text of "1".', AR_FN_COMMUNICATION_TOCOMMUNICATIONORDINAL_LNG_LANGUAGECONTEXTENUM_MORE_EX_OUT_2: 'Communication with audio of "premier" and text of "1".', AR_FN_COMMUNICATION_TOCOMMUNICATIONORDINAL_LNG_LANGUAGECONTEXTENUM_MORE_EX_OUT_3: 'Communication with audio of "moins un" and text of "-1".', AR_FN_COMMUNICATION_TOCOMMUNICATIONORDINAL_LNG_LANGUAGECONTEXTENUM_MORE_EX_OUT_4: "A NOT_SET Communication.", AR_FN_DSC_TOCOMMUNICATIONSSML: "Creates a Communication whose contents should be interpreted at runtime as SSML (Speech Synthesis Markup Language).", AR_FN_COMMUNICATION_TOCOMMUNICATIONSSML_STR_DSC: "Creates a Communication from a String whose value is meant to be interpreted as an SSML fragment at flow runtime. The SSML fragment should not contain any or tags. All SSML start tags contained in the String value should have corresponding ending tags. Attempting to use open tags in one ToCommunicationSsml function call and ending tags in a subsequent ToCommunicationSsml call is not supported.", AR_FN_COMMUNICATION_TOCOMMUNICATIONSSML_STR_RV: "Returns a Communication value that should be interpreted as SSML at flow runtime.", AR_FN_COMMUNICATION_TOCOMMUNICATIONSSML_STR_PRM_DSC_0: "The String value that contains the SSML fragment. Supplying a NOT_SET String value will return a NOT_SET Communication value.", AR_FN_COMMUNICATION_TOCOMMUNICATIONSSML_STR_EX_OUT_0: 'A Communication value that instructs a text to speech engine to read back the String value "SSML" by pronouncing each character individually.', AR_FN_COMMUNICATION_TOCOMMUNICATIONSSML_STR_EX_OUT_1: 'A Communication value that instructs a text to speech engine to read back the number 5 as an ordinal such as "fifth".', AR_FN_COMMUNICATION_TOCOMMUNICATIONSSML_STR_EX_OUT_2: "A NOT_SET Communication value.", AR_FN_DSC_TOMULTIMODALCOMMUNICATION: "Creates a Communication object with the ability to specify different Communication values for multiple output modes.", AR_FN_COMMUNICATION_TOMULTIMODALCOMMUNICATION_COMMUNICATION_COMMUNICATION_DSC: "This overload lets you create a Communication object by supplying both voice and text mode Communication values.", AR_FN_COMMUNICATION_TOMULTIMODALCOMMUNICATION_COMMUNICATION_COMMUNICATION_RV: "Returns a Communication object with the specified Communication values for voice and text modes.", AR_FN_COMMUNICATION_TOMULTIMODALCOMMUNICATION_COMMUNICATION_COMMUNICATION_PRM_DSC_0: "The Communication value to use for voice mode.", AR_FN_COMMUNICATION_TOMULTIMODALCOMMUNICATION_COMMUNICATION_COMMUNICATION_PRM_DSC_1: "The Communication value to use for text mode.", AR_FN_COMMUNICATION_TOMULTIMODALCOMMUNICATION_COMMUNICATION_COMMUNICATION_EX_OUT_0: 'Communication with audio of "one" and text of "no".', AR_FN_COMMUNICATION_TOMULTIMODALCOMMUNICATION_COMMUNICATION_COMMUNICATION_EX_OUT_1: "A NOT_SET Communication.", AR_FN_DSC_TOAUDIONUMBER: "Creates an Audio from a number.", AR_FN_AUDIO_TOAUDIONUMBER_LNG_DSC: "Creates an Audio from an Integer.", AR_FN_AUDIO_TOAUDIONUMBER_LNG_RV: "Returns Audio for the submitted Integer value.", AR_FN_AUDIO_TOAUDIONUMBER_LNG_PRM_DSC_0: "The Integer to convert to Audio. If the Integer value is NOT_SET, blank Audio will be returned.", AR_FN_AUDIO_TOAUDIONUMBER_LNG_EX_OUT_0: 'Audio for "uno".', AR_FN_AUDIO_TOAUDIONUMBER_LNG_EX_OUT_1: 'Audio for "five hundred".', AR_FN_AUDIO_TOAUDIONUMBER_LNG_EX_OUT_2: 'Audio for "negative five hundred".', AR_FN_AUDIO_TOAUDIONUMBER_LNG_EX_OUT_3: "Blank Audio.", AR_FN_AUDIO_TOAUDIONUMBER_LNG_LANGUAGECONTEXTENUM_MORE_DSC: "Creates an Audio from an Integer with language context.", AR_FN_AUDIO_TOAUDIONUMBER_LNG_LANGUAGECONTEXTENUM_MORE_RV: "Returns Audio for the submitted Integer value based on the supplied language context.", AR_FN_AUDIO_TOAUDIONUMBER_LNG_LANGUAGECONTEXTENUM_MORE_PRM_DSC_0: "The Integer to convert to Audio. If the Integer value is NOT_SET, blank Audio will be returned.", AR_FN_AUDIO_TOAUDIONUMBER_LNG_LANGUAGECONTEXTENUM_MORE_PRM_DSC_1: "Language contextual information on how to play back the number.", AR_FN_AUDIO_TOAUDIONUMBER_LNG_LANGUAGECONTEXTENUM_MORE_EX_OUT_0: 'Audio for "uno".', AR_FN_AUDIO_TOAUDIONUMBER_LNG_LANGUAGECONTEXTENUM_MORE_EX_OUT_1: 'Audio for "un".', AR_FN_AUDIO_TOAUDIONUMBER_LNG_LANGUAGECONTEXTENUM_MORE_EX_OUT_2: 'Audio for "unos".', AR_FN_AUDIO_TOAUDIONUMBER_LNG_LANGUAGECONTEXTENUM_MORE_EX_OUT_3: 'Audio for "una".', AR_FN_AUDIO_TOAUDIONUMBER_LNG_LANGUAGECONTEXTENUM_MORE_EX_OUT_4: 'Audio for "una".', AR_FN_AUDIO_TOAUDIONUMBER_LNG_LANGUAGECONTEXTENUM_MORE_EX_OUT_5: 'Audio for "unas".', AR_FN_AUDIO_TOAUDIONUMBER_LNG_LANGUAGECONTEXTENUM_MORE_EX_OUT_6: "Blank Audio.", AR_FN_AUDIO_TOAUDIONUMBER_LNG_NUMBERFORMATENUM_DSC: "Creates an Audio from an Integer with formatting.", AR_FN_AUDIO_TOAUDIONUMBER_LNG_NUMBERFORMATENUM_RV: "Returns Audio for the submitted Integer value based on the formatting option.", AR_FN_AUDIO_TOAUDIONUMBER_LNG_NUMBERFORMATENUM_PRM_DSC_0: "The Integer value to convert to Audio.", AR_FN_AUDIO_TOAUDIONUMBER_LNG_NUMBERFORMATENUM_PRM_DSC_1: "Number Format Enum to be used in the returned Audio.", AR_FN_AUDIO_TOAUDIONUMBER_LNG_NUMBERFORMATENUM_EX_OUT_0: 'Audio of "five zero zero".', AR_FN_AUDIO_TOAUDIONUMBER_LNG_NUMBERFORMATENUM_EX_OUT_1: 'Audio of "negative five zero zero".', AR_FN_AUDIO_TOAUDIONUMBER_LNG_NUMBERFORMATENUM_EX_OUT_2: "Blank Audio.", AR_FN_AUDIO_TOAUDIONUMBER_LNG_NUMBERFORMATENUM_LANGUAGECONTEXTENUM_MORE_DSC: "Creates an Audio from an Integer with language context and formatting.", AR_FN_AUDIO_TOAUDIONUMBER_LNG_NUMBERFORMATENUM_LANGUAGECONTEXTENUM_MORE_RV: "Returns Audio for the submitted Integer value with formatting and language context.", AR_FN_AUDIO_TOAUDIONUMBER_LNG_NUMBERFORMATENUM_LANGUAGECONTEXTENUM_MORE_PRM_DSC_0: "The Integer value to convert to Audio.", AR_FN_AUDIO_TOAUDIONUMBER_LNG_NUMBERFORMATENUM_LANGUAGECONTEXTENUM_MORE_PRM_DSC_1: "Number Format Enum to be used in the returned Audio.", AR_FN_AUDIO_TOAUDIONUMBER_LNG_NUMBERFORMATENUM_LANGUAGECONTEXTENUM_MORE_PRM_DSC_2: "Language contextual information on how to play back the number.", AR_FN_AUDIO_TOAUDIONUMBER_LNG_NUMBERFORMATENUM_LANGUAGECONTEXTENUM_MORE_EX_OUT_0: 'Audio for "uno dos".', AR_FN_AUDIO_TOAUDIONUMBER_LNG_NUMBERFORMATENUM_LANGUAGECONTEXTENUM_MORE_EX_OUT_1: 'Audio for "un un".', AR_FN_AUDIO_TOAUDIONUMBER_LNG_NUMBERFORMATENUM_LANGUAGECONTEXTENUM_MORE_EX_OUT_2: 'Audio for "unos unos".', AR_FN_AUDIO_TOAUDIONUMBER_LNG_NUMBERFORMATENUM_LANGUAGECONTEXTENUM_MORE_EX_OUT_3: 'Audio for "una dos".', AR_FN_AUDIO_TOAUDIONUMBER_LNG_NUMBERFORMATENUM_LANGUAGECONTEXTENUM_MORE_EX_OUT_4: 'Audio for "una unas".', AR_FN_AUDIO_TOAUDIONUMBER_LNG_NUMBERFORMATENUM_LANGUAGECONTEXTENUM_MORE_EX_OUT_5: "Blank Audio.", AR_FN_AUDIO_TOAUDIONUMBER_DEC_DSC: "Creates an Audio from a Decimal.", AR_FN_AUDIO_TOAUDIONUMBER_DEC_RV: "Returns Audio for the submitted Decimal value.", AR_FN_AUDIO_TOAUDIONUMBER_DEC_PRM_DSC_0: "The Decimal value to convert to Audio. If the Decimal value is greater than or equal to 1 trillion, the number will be played back as digits. If the Decimal value is an integral value, only the integral part will be played back.", AR_FN_AUDIO_TOAUDIONUMBER_DEC_EX_OUT_0: 'Audio for "five hundred".', AR_FN_AUDIO_TOAUDIONUMBER_DEC_EX_OUT_1: 'Audio for "negative five hundred".', AR_FN_AUDIO_TOAUDIONUMBER_DEC_EX_OUT_2: 'Audio for "one hundred twenty five point two five".', AR_FN_AUDIO_TOAUDIONUMBER_DEC_EX_OUT_3: "Blank Audio.", AR_FN_AUDIO_TOAUDIONUMBER_DEC_LANGUAGECONTEXTENUM_MORE_DSC: "Creates an Audio from a Decimal with language context.", AR_FN_AUDIO_TOAUDIONUMBER_DEC_LANGUAGECONTEXTENUM_MORE_RV: "Returns Audio for the submitted Decimal value.", AR_FN_AUDIO_TOAUDIONUMBER_DEC_LANGUAGECONTEXTENUM_MORE_PRM_DSC_0: "The Decimal value to convert to Audio. If the Decimal value is greater than or equal to 1 trillion, the number will be played back as digits.", AR_FN_AUDIO_TOAUDIONUMBER_DEC_LANGUAGECONTEXTENUM_MORE_PRM_DSC_1: "Language contextual information on how to play back the number.", AR_FN_AUDIO_TOAUDIONUMBER_DEC_LANGUAGECONTEXTENUM_MORE_EX_OUT_0: 'Audio for "una coma quatro".', AR_FN_AUDIO_TOAUDIONUMBER_DEC_LANGUAGECONTEXTENUM_MORE_EX_OUT_1: 'Audio for "una coma siete s\xE9is cinco".', AR_FN_AUDIO_TOAUDIONUMBER_DEC_LANGUAGECONTEXTENUM_MORE_EX_OUT_2: 'Audio for "uno coma siete s\xE9is cinco".', AR_FN_AUDIO_TOAUDIONUMBER_DEC_LANGUAGECONTEXTENUM_MORE_EX_OUT_3: 'Audio for "un coma siete s\xE9is cinco".', AR_FN_AUDIO_TOAUDIONUMBER_DEC_LANGUAGECONTEXTENUM_MORE_EX_OUT_4: 'Audio for "dos coma siete s\xE9is cinco".', AR_FN_AUDIO_TOAUDIONUMBER_DEC_LANGUAGECONTEXTENUM_MORE_EX_OUT_5: "Blank Audio.", AR_FN_AUDIO_TOAUDIONUMBER_DEC_NUMBERFORMATENUM_DSC: "Creates an Audio from a Decimal.", AR_FN_AUDIO_TOAUDIONUMBER_DEC_NUMBERFORMATENUM_RV: "Returns Audio from the submitted Decimal value.", AR_FN_AUDIO_TOAUDIONUMBER_DEC_NUMBERFORMATENUM_PRM_DSC_0: "The Decimal value to convert to Audio. If the Decimal value is greater than or equal to 1 trillion, the number will be played back as digits. If the Decimal value is an integral value, only the integral part will be played back.", AR_FN_AUDIO_TOAUDIONUMBER_DEC_NUMBERFORMATENUM_PRM_DSC_1: "Number formatting to be used in the returned Audio.", AR_FN_AUDIO_TOAUDIONUMBER_DEC_NUMBERFORMATENUM_EX_OUT_0: 'Audio of "five point five".', AR_FN_AUDIO_TOAUDIONUMBER_DEC_NUMBERFORMATENUM_EX_OUT_1: 'Audio of "negative five zero zero".', AR_FN_AUDIO_TOAUDIONUMBER_DEC_NUMBERFORMATENUM_EX_OUT_2: 'Audio of "five zero zero".', AR_FN_AUDIO_TOAUDIONUMBER_DEC_NUMBERFORMATENUM_EX_OUT_3: "Blank Audio.", AR_FN_AUDIO_TOAUDIONUMBER_DEC_NUMBERFORMATENUM_LANGUAGECONTEXTENUM_MORE_DSC: "Creates an Audio from a Decimal with formatting and language context.", AR_FN_AUDIO_TOAUDIONUMBER_DEC_NUMBERFORMATENUM_LANGUAGECONTEXTENUM_MORE_RV: "Returns Audio from the submitted Decimal value.", AR_FN_AUDIO_TOAUDIONUMBER_DEC_NUMBERFORMATENUM_LANGUAGECONTEXTENUM_MORE_PRM_DSC_0: "The Decimal value to convert to Audio. If the Decimal value is greater than or equal to 1 trillion, the number will be played back as digits.", AR_FN_AUDIO_TOAUDIONUMBER_DEC_NUMBERFORMATENUM_LANGUAGECONTEXTENUM_MORE_PRM_DSC_1: "Number formatting to be used in the returned Audio.", AR_FN_AUDIO_TOAUDIONUMBER_DEC_NUMBERFORMATENUM_LANGUAGECONTEXTENUM_MORE_PRM_DSC_2: "Language contextual information on how to play back the number.", AR_FN_AUDIO_TOAUDIONUMBER_DEC_NUMBERFORMATENUM_LANGUAGECONTEXTENUM_MORE_EX_OUT_0: 'Audio for "una cero cero".', AR_FN_AUDIO_TOAUDIONUMBER_DEC_NUMBERFORMATENUM_LANGUAGECONTEXTENUM_MORE_EX_OUT_1: 'Audio for "uno cero cero".', AR_FN_AUDIO_TOAUDIONUMBER_DEC_NUMBERFORMATENUM_LANGUAGECONTEXTENUM_MORE_EX_OUT_2: 'Audio for "un cero cero".', AR_FN_AUDIO_TOAUDIONUMBER_DEC_NUMBERFORMATENUM_LANGUAGECONTEXTENUM_MORE_EX_OUT_3: 'Audio for "una coma siete s\xE9is cinco".', AR_FN_AUDIO_TOAUDIONUMBER_DEC_NUMBERFORMATENUM_LANGUAGECONTEXTENUM_MORE_EX_OUT_4: 'Audio for "uno coma siete s\xE9is cinco".', AR_FN_AUDIO_TOAUDIONUMBER_DEC_NUMBERFORMATENUM_LANGUAGECONTEXTENUM_MORE_EX_OUT_5: 'Audio for "dos coma siete s\xE9is cinco".', AR_FN_AUDIO_TOAUDIONUMBER_DEC_NUMBERFORMATENUM_LANGUAGECONTEXTENUM_MORE_EX_OUT_6: "Blank Audio.", AR_FN_AUDIO_TOAUDIONUMBER_DEC_LNG_DSC: "Creates an Audio from a Decimal value with a specified number of decimal places.", AR_FN_AUDIO_TOAUDIONUMBER_DEC_LNG_RV: "Returns Audio from the submitted Decimal value.", AR_FN_AUDIO_TOAUDIONUMBER_DEC_LNG_PRM_DSC_0: "The Decimal value to convert to Audio. If the Decimal value is greater than or equal to 1 trillion, the number will be played back as digits.", AR_FN_AUDIO_TOAUDIONUMBER_DEC_LNG_PRM_DSC_1: "Number of decimal places to read in the number.", AR_FN_AUDIO_TOAUDIONUMBER_DEC_LNG_EX_OUT_0: 'Audio for "one hundred twenty three point one two".', AR_FN_AUDIO_TOAUDIONUMBER_DEC_LNG_EX_OUT_1: 'Audio for "negative one hundred twenty three point one two zero zero".', AR_FN_AUDIO_TOAUDIONUMBER_DEC_LNG_EX_OUT_2: 'Audio for "zero point two three four".', AR_FN_AUDIO_TOAUDIONUMBER_DEC_LNG_EX_OUT_3: "Blank Audio.", AR_FN_AUDIO_TOAUDIONUMBER_DEC_LNG_LANGUAGECONTEXTENUM_MORE_DSC: "Creates an Audio from a Decimal value with a specified number of decimal places with language context.", AR_FN_AUDIO_TOAUDIONUMBER_DEC_LNG_LANGUAGECONTEXTENUM_MORE_RV: "Returns Audio from the submitted Decimal value.", AR_FN_AUDIO_TOAUDIONUMBER_DEC_LNG_LANGUAGECONTEXTENUM_MORE_PRM_DSC_0: "The Decimal value to convert to Audio. If the Decimal value is greater than or equal to 1 trillion, the number will be played back as digits.", AR_FN_AUDIO_TOAUDIONUMBER_DEC_LNG_LANGUAGECONTEXTENUM_MORE_PRM_DSC_1: "Number of decimal places to read in the number.", AR_FN_AUDIO_TOAUDIONUMBER_DEC_LNG_LANGUAGECONTEXTENUM_MORE_PRM_DSC_2: "Language contextual information on how to play back the number.", AR_FN_AUDIO_TOAUDIONUMBER_DEC_LNG_LANGUAGECONTEXTENUM_MORE_EX_OUT_0: 'Audio for "una coma uno dos".', AR_FN_AUDIO_TOAUDIONUMBER_DEC_LNG_LANGUAGECONTEXTENUM_MORE_EX_OUT_1: 'Audio for "uno coma uno dos".', AR_FN_AUDIO_TOAUDIONUMBER_DEC_LNG_LANGUAGECONTEXTENUM_MORE_EX_OUT_2: "Blank Audio.", AR_FN_AUDIO_TOAUDIONUMBER_DEC_NUMBERFORMATENUM_LNG_DSC: "Creates an Audio from a Decimal value to a specified number of decimal places with formatting support.", AR_FN_AUDIO_TOAUDIONUMBER_DEC_NUMBERFORMATENUM_LNG_RV: "Returns Audio from the submitted Decimal value.", AR_FN_AUDIO_TOAUDIONUMBER_DEC_NUMBERFORMATENUM_LNG_PRM_DSC_0: "The Decimal value converted to Audio. If the Decimal value is greater than or equal to 1 trillion, the number will be played back as digits.", AR_FN_AUDIO_TOAUDIONUMBER_DEC_NUMBERFORMATENUM_LNG_PRM_DSC_1: "Number Format Enum to be used in the returned Audio.", AR_FN_AUDIO_TOAUDIONUMBER_DEC_NUMBERFORMATENUM_LNG_PRM_DSC_2: "Number of decimal places to read in the number.", AR_FN_AUDIO_TOAUDIONUMBER_DEC_NUMBERFORMATENUM_LNG_EX_OUT_0: 'Audio for "one two three point one two three".', AR_FN_AUDIO_TOAUDIONUMBER_DEC_NUMBERFORMATENUM_LNG_EX_OUT_1: "Blank Audio.", AR_FN_AUDIO_TOAUDIONUMBER_DEC_NUMBERFORMATENUM_LNG_LANGUAGECONTEXTENUM_MORE_DSC: "Creates an Audio from a Decimal value to a specified number of decimal places with formatting and language context.", AR_FN_AUDIO_TOAUDIONUMBER_DEC_NUMBERFORMATENUM_LNG_LANGUAGECONTEXTENUM_MORE_RV: "Returns Audio from the submitted Decimal value.", AR_FN_AUDIO_TOAUDIONUMBER_DEC_NUMBERFORMATENUM_LNG_LANGUAGECONTEXTENUM_MORE_PRM_DSC_0: "The Decimal value converted to Audio. If the Decimal value is greater than or equal to 1 trillion, the number will be played back as digits.", AR_FN_AUDIO_TOAUDIONUMBER_DEC_NUMBERFORMATENUM_LNG_LANGUAGECONTEXTENUM_MORE_PRM_DSC_1: "Number Format Enum to be used in the returned Audio.", AR_FN_AUDIO_TOAUDIONUMBER_DEC_NUMBERFORMATENUM_LNG_LANGUAGECONTEXTENUM_MORE_PRM_DSC_2: "Number of decimal places to read in the number.", AR_FN_AUDIO_TOAUDIONUMBER_DEC_NUMBERFORMATENUM_LNG_LANGUAGECONTEXTENUM_MORE_PRM_DSC_3: "Language contextual information on how to play back the number.", AR_FN_AUDIO_TOAUDIONUMBER_DEC_NUMBERFORMATENUM_LNG_LANGUAGECONTEXTENUM_MORE_EX_OUT_0: 'Audio for "uno coma uno dos".', AR_FN_AUDIO_TOAUDIONUMBER_DEC_NUMBERFORMATENUM_LNG_LANGUAGECONTEXTENUM_MORE_EX_OUT_1: 'Audio for "una coma una dos".', AR_FN_AUDIO_TOAUDIONUMBER_DEC_NUMBERFORMATENUM_LNG_LANGUAGECONTEXTENUM_MORE_EX_OUT_2: "Blank Audio.", AR_FN_DSC_TOAUDIONUMBERORDINAL: 'Creates an Audio from a number with ordinal playback such as "first", "second", ..., "seven hundred and sixteenth"', AR_FN_AUDIO_TOAUDIONUMBERORDINAL_LNG_DSC: "Creates an ordinal Audio from an Integer.", AR_FN_AUDIO_TOAUDIONUMBERORDINAL_LNG_RV: "Returns ordinal Audio for the submitted Integer value.", AR_FN_AUDIO_TOAUDIONUMBERORDINAL_LNG_PRM_DSC_0: "The Integer to convert to Audio. If the Integer value is NOT_SET, blank Audio will be returned. If the Integer value is less than 1 or greater than 999, the audio playback will be read as a normal number and not as an ordinal.", AR_FN_AUDIO_TOAUDIONUMBERORDINAL_LNG_EX_OUT_0: 'Audio for "first".', AR_FN_AUDIO_TOAUDIONUMBERORDINAL_LNG_EX_OUT_1: 'Audio for "two hundred and first".', AR_FN_AUDIO_TOAUDIONUMBERORDINAL_LNG_EX_OUT_2: 'Audio for "five hundredth".', AR_FN_AUDIO_TOAUDIONUMBERORDINAL_LNG_EX_OUT_3: 'Audio for "five thousand".', AR_FN_AUDIO_TOAUDIONUMBERORDINAL_LNG_EX_OUT_4: 'Audio for "negative five hundred".', AR_FN_AUDIO_TOAUDIONUMBERORDINAL_LNG_EX_OUT_5: "Blank Audio.", AR_FN_AUDIO_TOAUDIONUMBERORDINAL_LNG_LANGUAGECONTEXTENUM_MORE_DSC: "Creates an ordinal Audio from an Integer with language context.", AR_FN_AUDIO_TOAUDIONUMBERORDINAL_LNG_LANGUAGECONTEXTENUM_MORE_RV: "Returns ordinal Audio for the submitted Integer value based on the supplied language context.", AR_FN_AUDIO_TOAUDIONUMBERORDINAL_LNG_LANGUAGECONTEXTENUM_MORE_PRM_DSC_0: "The Integer to convert to Audio. If the Integer value is NOT_SET, blank Audio will be returned. If the Integer value is less than 1 or greater than 999, the audio playback will be read as a normal number and not as an ordinal.", AR_FN_AUDIO_TOAUDIONUMBERORDINAL_LNG_LANGUAGECONTEXTENUM_MORE_PRM_DSC_1: "Language contextual information on how to play back the number.", AR_FN_AUDIO_TOAUDIONUMBERORDINAL_LNG_LANGUAGECONTEXTENUM_MORE_EX_OUT_0: 'Audio for "premier".', AR_FN_AUDIO_TOAUDIONUMBERORDINAL_LNG_LANGUAGECONTEXTENUM_MORE_EX_OUT_1: 'Audio for "premi\xE8re".', AR_FN_AUDIO_TOAUDIONUMBERORDINAL_LNG_LANGUAGECONTEXTENUM_MORE_EX_OUT_2: 'Audio for "et".', AR_FN_AUDIO_TOAUDIONUMBERORDINAL_LNG_LANGUAGECONTEXTENUM_MORE_EX_OUT_3: 'Audio for "moins un".', AR_FN_AUDIO_TOAUDIONUMBERORDINAL_LNG_LANGUAGECONTEXTENUM_MORE_EX_OUT_4: "Blank Audio.", AR_FN_DSC_TOVOICEMAILSNIPPET: "Converts a value to a VoicemailSnippet.", AR_FN_VOICEMAILSNIPPET_TOVOICEMAILSNIPPET_NTS_DSC: "Converts a NOT_SET value to a NOT_SET VoicemailSnippet.", AR_FN_VOICEMAILSNIPPET_TOVOICEMAILSNIPPET_NTS_RV: "Returns a NOT_SET VoicemailSnippet.", AR_FN_VOICEMAILSNIPPET_TOVOICEMAILSNIPPET_NTS_PRM_DSC_0: "The value NOT_SET to convert to a VoicemailSnippet.", AR_FN_VOICEMAILSNIPPET_TOVOICEMAILSNIPPET_NTS_EX_OUT_0: "A NOT_SET VoicemailSnippet.", AR_FN_VOICEMAILSNIPPET_TOVOICEMAILSNIPPET_VOICEMAILSNIPPET_DSC: "Returns a VoicemailSnippet value from the supplied VoicemailSnippet value.", AR_FN_VOICEMAILSNIPPET_TOVOICEMAILSNIPPET_VOICEMAILSNIPPET_RV: "Returns the supplied VoiceSnippet value.", AR_FN_VOICEMAILSNIPPET_TOVOICEMAILSNIPPET_VOICEMAILSNIPPET_PRM_DSC_0: "The VoicemailSnippet value to return.", AR_FN_VOICEMAILSNIPPET_TOVOICEMAILSNIPPET_VOICEMAILSNIPPET_EX_OUT_0: "The supplied VoicemailSnippet.", AR_FN_DSC_TOVOICESNIPPET: "Converts a value to a VoiceSnippet.", AR_FN_VOICESNIPPET_TOVOICESNIPPET_NTS_DSC: "Converts a NOT_SET value to a NOT_SET VoiceSnippet.", AR_FN_VOICESNIPPET_TOVOICESNIPPET_NTS_RV: "Returns a NOT_SET VoiceSnippet.", AR_FN_VOICESNIPPET_TOVOICESNIPPET_NTS_PRM_DSC_0: "The value NOT_SET to convert to a VoiceSnippet.", AR_FN_VOICESNIPPET_TOVOICESNIPPET_NTS_EX_OUT_0: "A NOT_SET VoiceSnippet.", AR_FN_VOICESNIPPET_TOVOICESNIPPET_VOICESNIPPET_DSC: "Returns a VoiceSnippet value from the supplied VoiceSnippet value.", AR_FN_VOICESNIPPET_TOVOICESNIPPET_VOICESNIPPET_RV: "Returns the supplied VoiceSnippet value.", AR_FN_VOICESNIPPET_TOVOICESNIPPET_VOICESNIPPET_PRM_DSC_0: "The VoiceSnippet value to return.", AR_FN_VOICESNIPPET_TOVOICESNIPPET_VOICESNIPPET_EX_OUT_0: "The supplied VoiceSnippet value.", AR_FN_DSC_GETDEFAULTLANGUAGE: "Gets the default supported language on the current flow.", AR_FN_STR_GETDEFAULTSUPPORTEDLANGUAGE_DSC: "Gets the IETF language tag of the default supported language for the current flow.", AR_FN_STR_GETDEFAULTSUPPORTEDLANGUAGE_RV: "Returns the IETF language tag for the default supported language for the current flow.", AR_FN_DSC_GETSUPPORTEDLANGUAGES: "Gets the supported languages configured for the current flow.", AR_FN_STR_COLL_GETSUPPORTEDLANGUAGES_DSC: "Gets a string collection of IETF language tags for the supported languages in the current flow.", AR_FN_STR_COLL_GETSUPPORTEDLANGUAGES_RV: "Returns a string collection of the supported IETF languages tags set on the flow. There will always be one entry in this collection.", AR_FN_DSC_GETCURRENTDATETIMEUTC: "Gets the current date and time in Coordinated Universal Time (UTC).", AR_FN_DTM_GETCURRENTDATETIMEUTC_DSC: "Gets the current date and time in Coordinated Universal Time (UTC)", AR_FN_DTM_GETCURRENTDATETIMEUTC_RV: "Returns a DateTime value that contains the current date and time in Coordinated Universal Time (UTC).", AR_FN_DTM_GETCURRENTDATETIMEUTC_EX_OUT_0: "A DateTime with the date and time when the function was called in Coordinated Universal Time (UTC).", AR_FN_DSC_GETDEFLECTIONURL: "Gets the destination URL if the Deflect action was used to deflect the participant to a digital channel.", AR_FN_STR_GETDEFLECTIONURL_STR_STR_DSC: "Gets the destination URL if the Deflect action was used to deflect the participant to a digital channel.", AR_FN_STR_GETDEFLECTIONURL_STR_STR_RV: "The destination URL if the Deflect action was used to deflect the participant to a digital channel.", AR_FN_STR_GETDEFLECTIONURL_STR_STR_PRM_DSC_0: "The service for which the URL is generated.", AR_FN_STR_GETDEFLECTIONURL_STR_STR_PRM_DSC_1: "The identifier of the account that the message is directed to on the service.", AR_FN_STR_GETDEFLECTIONURL_STR_STR_EX_OUT_0: "The destination URL to Facebook Messenger.", AR_FN_DSC_GETSURVEYQUESTIONANSWER: "Gets the answer to a Survey Question as a String value.", AR_FN_STR_GETSURVEYQUESTIONANSWER_SURVEYQUESTION_DSC: "Returns the answer of the supplied SurveyQuestion value as a String.", AR_FN_STR_GETSURVEYQUESTIONANSWER_SURVEYQUESTION_RV: `The answer to the supplied Survey Question as a String. If the supplied Survey Question value is NOT_SET, the Survey Question type is 'readOnlyQuestion' or the Survey Question has not been answered, a NOT_SET String value is returned. If the supplied Survey Question was answered as Not Applicable, the String "n/a" is returned.`, AR_FN_STR_GETSURVEYQUESTIONANSWER_SURVEYQUESTION_PRM_DSC_0: "The Survey Question whose answer you wish to obtain.", AR_FN_STR_GETSURVEYQUESTIONANSWER_SURVEYQUESTION_EX_OUT_0: "The answer to the Survey Question Form.Group1_Question1 as a String value.", AR_FN_STR_GETSURVEYQUESTIONANSWER_SURVEYQUESTION_EX_OUT_1: "A NOT_SET string value.", AR_FN_STR_GETSURVEYQUESTIONANSWER_SURVEYQUESTION_BLN_DSC: "Returns the follow-up answer of the supplied SurveyQuestion value as a String.", AR_FN_STR_GETSURVEYQUESTIONANSWER_SURVEYQUESTION_BLN_RV: "The answer to the supplied Survey Question as a String. If the supplied question is a NOT_SET SurveyQuestion value, the question does not have a follow-up question or if that follow-up question has not been answered, a NOT_SET String will be returned.", AR_FN_STR_GETSURVEYQUESTIONANSWER_SURVEYQUESTION_BLN_PRM_DSC_0: "The Survey Question whose answer you wish to obtain.", AR_FN_STR_GETSURVEYQUESTIONANSWER_SURVEYQUESTION_BLN_PRM_DSC_1: "Whether you wish to get the Survey Question's follow-up answer.", AR_FN_STR_GETSURVEYQUESTIONANSWER_SURVEYQUESTION_BLN_EX_OUT_0: "The answer to the follow-up question to the Survey Question Form.Group1_Question1 as a String value.", AR_FN_STR_GETSURVEYQUESTIONANSWER_SURVEYQUESTION_BLN_EX_OUT_1: "The answer to the Survey Question Form.Group1_Question1 as a String value.", AR_FN_STR_GETSURVEYQUESTIONANSWER_SURVEYQUESTION_BLN_EX_OUT_2: "A NOT_SET string value.", AR_FN_STR_GETSURVEYQUESTIONANSWER_SURVEYQUESTION_BLN_EX_OUT_3: "The answer to the Survey Question Form.Group1_Question1 as a String value.", AR_FN_DSC_GETSURVEYQUESTIONISANSWERED: "Gets whether a Survey Question has been answered as a Boolean value.", AR_FN_BLN_GETSURVEYQUESTIONISANSWERED_SURVEYQUESTION_DSC: "Returns whether a Survey Question has been answered as a Boolean value.", AR_FN_BLN_GETSURVEYQUESTIONISANSWERED_SURVEYQUESTION_RV: "Whether the supplied Survey Question has been answered. If the supplied Survey Question value is NOT_SET, a Boolean value of false is returned. If the supplied Survey Question type is 'readOnlyQuestion', a Boolean value of true is returned if the read only question was presented using an 'Ask Survey Question' action.", AR_FN_BLN_GETSURVEYQUESTIONISANSWERED_SURVEYQUESTION_PRM_DSC_0: "The Survey Question that you wish to check.", AR_FN_BLN_GETSURVEYQUESTIONISANSWERED_SURVEYQUESTION_EX_OUT_0: "true or false, depending on whether Form.Group1_Question1 has been answered.", AR_FN_DSC_GETSURVEYQUESTIONNPSCATEGORY: "If the supplied Survey Question is an NPS question, this returns the NPS question category as a String value.", AR_FN_STR_GETSURVEYQUESTIONNPSCATEGORY_SURVEYQUESTION_DSC: "If the supplied Survey Question is an NPS question, this returns the NPS question category as a String value.", AR_FN_STR_GETSURVEYQUESTIONNPSCATEGORY_SURVEYQUESTION_RV: "The NPS category of the supplied Survey Question as a String. If the supplied Survey Question value is NOT_SET, if the supplied Survey Question is not an NPS question or if the supplied Survey Question has not been answered, a NOT_SET String value is returned.", AR_FN_STR_GETSURVEYQUESTIONNPSCATEGORY_SURVEYQUESTION_PRM_DSC_0: "The Survey Question whose NPS category you wish to obtain.", AR_FN_STR_GETSURVEYQUESTIONNPSCATEGORY_SURVEYQUESTION_EX_OUT_0: 'If the supplied Survey Question is an NPS question and has been answered this will return a String value of "promoter" if that score is 10 or 9, "passive" if that score is 8 or 7, and "detractor" if that score is 6 or less. If the supplied Survey Question does not exist, has not been answered or is not an NPS question, a NOT_SET String value will be returned.', AR_FN_STR_GETSURVEYQUESTIONNPSCATEGORY_SURVEYQUESTION_EX_OUT_1: "A NOT_SET string value.", AR_FN_DSC_RANDOM: "Generates a random Decimal value.", AR_FN_DEC_RANDOM_DSC: "Generates a random Decimal value that is greater than or equal to 0.0 and less than 1.0.", AR_FN_DEC_RANDOM_RV: "Returns the generated random Decimal value.", AR_FN_DSC_RANDOMINT: "Generates a random Integer value.", AR_FN_LNG_RANDOMINT_LNG_DSC: "Generates a random Integer value between 0 and the supplied limit parameter value.", AR_FN_LNG_RANDOMINT_LNG_RV: "Returns the random generated Integer value.", AR_FN_LNG_RANDOMINT_LNG_PRM_DSC_0: "If limit is a positive integer, the returned value will be greater than or equal to 0 and less than or equal to limit. If limit is a negative integer, the returned value will be less than or equal to zero and greater than or equal to limit. If limit is 0, the returned value is always 0.", AR_FN_LNG_RANDOMINT_LNG_EX_OUT_4: "86 ( this generates a random number that is greater than or equal to 0 and less than or equal to 100 )", AR_FN_LNG_RANDOMINT_LNG_EX_OUT_5: "54 ( this generates a random number that is greater than or equal to 1 and less than or equal to 100 )", AR_FN_DSC_ROUNDUP: "Rounds up a Duration value to a new Duration value.", AR_FN_DUR_ROUNDUP_DUR_DSC: "Rounds up a duration value to 30 seconds, 1 minute, 2 minutes, 5 minutes or intervals of 5 minutes if the duration value is greater than 5 minutes.", AR_FN_DUR_ROUNDUP_DUR_RV: "Returns a duration value rounded up to 30 seconds, 1 minute, 2 minutes, 5 minutes, or intervals of 5 minutes.", AR_FN_DUR_ROUNDUP_DUR_PRM_DSC_0: "The Duration value to round up.", AR_FN_DUR_ROUNDUP_DUR_EX_OUT_0: "A 5 minute Duration.", AR_FN_DUR_ROUNDUP_DUR_EX_OUT_1: "A 1 minute Duration.", AR_FN_DUR_ROUNDUP_DUR_EX_OUT_2: "A 5 minute Duration.", AR_FN_DUR_ROUNDUP_DUR_EX_OUT_3: "A 25 minute Duration.", AR_FN_DUR_ROUNDUP_DUR_EX_OUT_4: "A 1 hour and 25 minute Duration.", AR_FN_DUR_ROUNDUP_DUR_DUR_DSC: "Rounds up a Duration value in intervals of another specified Duration.", AR_FN_DUR_ROUNDUP_DUR_DUR_RV: "Returns a rounded Duration value.", AR_FN_DUR_ROUNDUP_DUR_DUR_PRM_DSC_0: "The Duration value to round up.", AR_FN_DUR_ROUNDUP_DUR_DUR_PRM_DSC_1: "A Duration that is used to calculate intervals for rounding up.", AR_FN_DUR_ROUNDUP_DUR_DUR_EX_OUT_0: "A 3 minute Duration.", AR_FN_DUR_ROUNDUP_DUR_DUR_EX_OUT_1: "A 5 minute Duration.", AR_FN_DUR_ROUNDUP_DUR_DUR_DUR_COLL_DSC: "Rounds up a Duration value to one of the values specified in a Duration Collection.", AR_FN_DUR_ROUNDUP_DUR_DUR_DUR_COLL_RV: "Returns a rounded Duration value.", AR_FN_DUR_ROUNDUP_DUR_DUR_DUR_COLL_PRM_DSC_0: "The Duration value to round up.", AR_FN_DUR_ROUNDUP_DUR_DUR_DUR_COLL_PRM_DSC_1: "A Duration that is used to calculate intervals for rounding up.", AR_FN_DUR_ROUNDUP_DUR_DUR_DUR_COLL_PRM_DSC_2: "The specific Duration values that should be rounded up to. This list will be sorted from lowest to highest at runtime. The first value in this collection which is greater than or equal to the first parameter will be returned.", AR_FN_DUR_ROUNDUP_DUR_DUR_DUR_COLL_EX_OUT_0: "A 4 minute Duration.", AR_FN_DUR_ROUNDUP_DUR_DUR_DUR_COLL_EX_OUT_1: "A 25 minute Duration.", AR_FN_DSC_RANGE: "Returns a range of Durations based on a starting Duration and an interval Duration.", AR_FN_DUR_COLL_RANGE_DUR_DUR_DSC: "Calculates a lower and upper bound Duration collection given an initial Duration and an offset Duration that is used to calculate the lower and upper bounds. NOT_SET Duration values in the collection will not be used in function execution.", AR_FN_DUR_COLL_RANGE_DUR_DUR_RV: "Returns the bounding Duration values in a two-item Duration collection with the lower bound at index 0 and the upper bound at index 1.", AR_FN_DUR_COLL_RANGE_DUR_DUR_PRM_DSC_0: "The Duration value to use as a basis for rounding up and down.", AR_FN_DUR_COLL_RANGE_DUR_DUR_PRM_DSC_1: "A Duration that is used to calculate intervals for rounding up and down.", AR_FN_DUR_COLL_RANGE_DUR_DUR_EX_OUT_0: "A Duration collection. [MakeDuration(0, 3, 0, 0, 0), MakeDuration(0, 7, 0, 0, 0)]", AR_FN_DSC_TOAUDIOTIMERANGE: "Creates Audio to indicate a specific time range.", AR_FN_AUDIO_TOAUDIOTIMERANGE_LNG_LNG_TIMEPARTENUMDATATYPE_DSC: "Creates Audio for a time range given two Integers and a TimePart Enum value that indicates how to interpret the values. If the lowerBound value is greater than the upperBound value, they will be swapped so that the lower value is played first in the returned audio playback. If the submitted lower and upper bound are the same, the returned audio will not be presented as a range.", AR_FN_AUDIO_TOAUDIOTIMERANGE_LNG_LNG_TIMEPARTENUMDATATYPE_RV: "Returns Audio playback with a time range formatted to the specified TimePart Enum value.", AR_FN_AUDIO_TOAUDIOTIMERANGE_LNG_LNG_TIMEPARTENUMDATATYPE_PRM_DSC_0: "The lower bound for the time range.", AR_FN_AUDIO_TOAUDIOTIMERANGE_LNG_LNG_TIMEPARTENUMDATATYPE_PRM_DSC_1: "The upper bound for the time range.", AR_FN_AUDIO_TOAUDIOTIMERANGE_LNG_LNG_TIMEPARTENUMDATATYPE_PRM_DSC_2: "The time units to use in the returned Audio.", AR_FN_AUDIO_TOAUDIOTIMERANGE_LNG_LNG_TIMEPARTENUMDATATYPE_EX_OUT_0: 'Audio for "4 to 6 minutes"', AR_FN_AUDIO_TOAUDIOTIMERANGE_LNG_LNG_TIMEPARTENUMDATATYPE_EX_OUT_1: 'Audio for "8 to 15 minutes"', AR_FN_AUDIO_TOAUDIOTIMERANGE_LNG_LNG_TIMEPARTENUMDATATYPE_EX_OUT_2: 'Audio for "10 to 15 hours"', AR_FN_AUDIO_TOAUDIOTIMERANGE_LNG_LNG_TIMEPARTENUMDATATYPE_EX_OUT_3: 'Audio for "1 hour"', AR_FN_DSC_EMAILADDRESSDOMAINPART: "Returns the domain part of an email address.", AR_FN_STR_EMAILADDRESSDOMAINPART_EMAILADDRESS_DSC: "Gets the domain part from an Email Address.", AR_FN_STR_EMAILADDRESSDOMAINPART_EMAILADDRESS_RV: "Returns the email domain part from the submitted Email Address.", AR_FN_STR_EMAILADDRESSDOMAINPART_EMAILADDRESS_PRM_DSC_0: "The Email Address from which to get the domain part.", AR_FN_STR_EMAILADDRESSDOMAINPART_EMAILADDRESS_EX_OUT_0: "The domain part from the Email Address in Email.Message.from.", AR_FN_STR_EMAILADDRESSDOMAINPART_STR_DSC: "Gets the domain part from a String containing an email address.", AR_FN_STR_EMAILADDRESSDOMAINPART_STR_RV: "Returns the domain part from the submitted email address String. If the local part cannot be determined, a NOT_SET String is returned.", AR_FN_STR_EMAILADDRESSDOMAINPART_STR_PRM_DSC_0: "The String that contains an email address from which to get the domain part.", AR_FN_STR_EMAILADDRESSDOMAINPART_STR_EX_OUT_1: "A NOT_SET String.", AR_FN_STR_EMAILADDRESSDOMAINPART_STR_EX_OUT_2: "A NOT_SET String.", AR_FN_DSC_EMAILADDRESSLOCALPART: "Returns the local part of an email address.", AR_FN_STR_EMAILADDRESSLOCALPART_EMAILADDRESS_DSC: "Gets the local part from an Email Address.", AR_FN_STR_EMAILADDRESSLOCALPART_EMAILADDRESS_RV: "Returns the email local part from the submitted Email Address.", AR_FN_STR_EMAILADDRESSLOCALPART_EMAILADDRESS_PRM_DSC_0: "The Email Address from which to get the local part.", AR_FN_STR_EMAILADDRESSLOCALPART_EMAILADDRESS_EX_OUT_0: "The local part from the Email Address in Email.Message.from.", AR_FN_STR_EMAILADDRESSLOCALPART_STR_DSC: "Gets the local part from a String containing an email address.", AR_FN_STR_EMAILADDRESSLOCALPART_STR_RV: "Returns the local part from the submitted email address String. If the local part cannot be determined, a NOT_SET String is returned.", AR_FN_STR_EMAILADDRESSLOCALPART_STR_PRM_DSC_0: "The String that contains an email address from which to get the local part.", AR_FN_STR_EMAILADDRESSLOCALPART_STR_EX_OUT_1: "A NOT_SET String.", AR_FN_STR_EMAILADDRESSLOCALPART_STR_EX_OUT_2: "A NOT_SET String.", AR_FN_DSC_MAKEEMAILADDRESS: "Returns a new instance of an EmailAddress initialized with the specified values.", AR_FN_EMAILADDRESS_MAKEEMAILADDRESS_STR_DSC: "Creates a new EmailAddress from the supplied address ID.", AR_FN_EMAILADDRESS_MAKEEMAILADDRESS_STR_RV: "Returns an EmailAddress with the id property set to the supplied address.", AR_FN_EMAILADDRESS_MAKEEMAILADDRESS_STR_PRM_DSC_0: "The id property value in the new EmailAddress.", AR_FN_EMAILADDRESS_MAKEEMAILADDRESS_STR_EX_OUT_0: 'An EmailAddress whose id property is "john.doe@company.com".', AR_FN_EMAILADDRESS_MAKEEMAILADDRESS_STR_EX_OUT_2: "A NOT_SET String.", AR_FN_EMAILADDRESS_MAKEEMAILADDRESS_STR_STR_DSC: "Creates a new EmailAddress from the supplied address ID and name.", AR_FN_EMAILADDRESS_MAKEEMAILADDRESS_STR_STR_RV: "Returns an EmailAddress with the id and name properties set to the supplied address and name values.", AR_FN_EMAILADDRESS_MAKEEMAILADDRESS_STR_STR_PRM_DSC_0: "The id property value in the new EmailAddress.", AR_FN_EMAILADDRESS_MAKEEMAILADDRESS_STR_STR_PRM_DSC_1: "The name property value in the new EmailAddress.", AR_FN_EMAILADDRESS_MAKEEMAILADDRESS_STR_STR_EX_OUT_0: 'An EmailAddress whose id property is "john.doe@company.com" and name property is "John".', AR_FN_EMAILADDRESS_MAKEEMAILADDRESS_STR_STR_EX_OUT_3: "A NOT_SET String.", AR_FN_DSC_DETECTLANGUAGE: "Attempts to determine the language for wording contained in a String.", AR_FN_STR_DETECTLANGUAGE_STR_STR_DSC: "Inspects an input String and attempts to identify the language for the verbiage contained in it.", AR_FN_STR_DETECTLANGUAGE_STR_STR_RV: "Returns an IETF language tag String if the language can be determined from the submitted String text. If a language cannot be determined, the value from the defaultLanguageTag parameter will be returned.", AR_FN_STR_DETECTLANGUAGE_STR_STR_PRM_DSC_0: "The String to search.", AR_FN_STR_DETECTLANGUAGE_STR_STR_PRM_DSC_1: "The String value to return if no language could be determined.", AR_FN_STR_DETECTLANGUAGE_STR_STR_EX_OUT_0: '"es" (assuming function detected email body text to be in Spanish)', AR_FN_STR_DETECTLANGUAGE_STR_STR_EX_OUT_7: "A NOT_SET String.", AR_FN_DSC_GETPROMPTTEXTTOSPEECH: "Gets the the text to speech String value for a prompt.", AR_FN_STR_GETPROMPTTEXTTOSPEECH_PROMPT_DSC: "Gets a prompt's text to speech String value for the language in which the flow is running.", AR_FN_STR_GETPROMPTTEXTTOSPEECH_PROMPT_RV: "Returns the text to speech String value for the prompt in the flow's current language. If the submitted Prompt value is NOT_SET or there is no prompt resource for the current language in which the flow is currently running, a NOT_SET String is returned.", AR_FN_STR_GETPROMPTTEXTTOSPEECH_PROMPT_PRM_DSC_0: "The Prompt whose text to speech String value you wish to obtain.", AR_FN_STR_GETPROMPTTEXTTOSPEECH_PROMPT_EX_OUT_1: 'Returns the text to speech String value for the user prompt named "Greeting" for the language in which the flow is currently running.', AR_FN_STR_GETPROMPTTEXTTOSPEECH_PROMPT_EX_OUT_2: "A NOT_SET String", AR_FN_DSC_GETPROMPTDURATION: "Gets the Duration of prompt audio.", AR_FN_DUR_GETPROMPTDURATION_PROMPT_DSC: "Gets a prompt's audio Duration value for the language in which the flow is running.", AR_FN_DUR_GETPROMPTDURATION_PROMPT_RV: "Returns the Duration for the prompt audio in the flow's current language. If the submitted Prompt value is NOT_SET or there is no prompt resource for the current language in which the flow is currently running, a NOT_SET Duration is returned.", AR_FN_DUR_GETPROMPTDURATION_PROMPT_PRM_DSC_0: "The Prompt whose audio duration value you wish to obtain.", AR_FN_DUR_GETPROMPTDURATION_PROMPT_EX_OUT_0: "A duration value of 0.6 seconds.", AR_FN_DUR_GETPROMPTDURATION_PROMPT_EX_OUT_1: 'Returns the Duration value for the audio contained in the user prompt "Greeting" for the language in which the flow is currently running.', AR_FN_DUR_GETPROMPTDURATION_PROMPT_EX_OUT_2: "A NOT_SET Duration", AR_FN_DSC_GETPROMPTTEXT: "Gets the the text String value for a prompt.", AR_FN_STR_GETPROMPTTEXT_PROMPT_DSC: "Gets a prompt's text String value for the language in which the flow is running.", AR_FN_STR_GETPROMPTTEXT_PROMPT_RV: "Returns the text String value for the prompt in the flow's current language. If the submitted Prompt value is NOT_SET or there is no prompt resource for the current language in which the flow is currently running, a NOT_SET String is returned.", AR_FN_STR_GETPROMPTTEXT_PROMPT_PRM_DSC_0: "The Prompt whose text String value you wish to obtain.", AR_FN_STR_GETPROMPTTEXT_PROMPT_EX_OUT_1: 'Returns the text String value for the user prompt named "Greeting" for the language in which the flow is currently running.', AR_FN_STR_GETPROMPTTEXT_PROMPT_EX_OUT_2: "A NOT_SET String", AR_FN_DSC_ISJSONARRAY: "Checks whether a JSON value contains an array.", AR_FN_BLN_ISJSONARRAY_JSON_DSC: "Returns a Boolean indicating if the supplied JSON value is a JSON array.", AR_FN_BLN_ISJSONARRAY_JSON_RV: "Returns true if the supplied JSON value is a JSON array, otherwise returns false.", AR_FN_BLN_ISJSONARRAY_JSON_PRM_DSC_0: "The JSON value to check whether it is a JSON array.", AR_FN_DSC_ISJSONBOOL: "Checks whether a JSON value contains a boolean value.", AR_FN_BLN_ISJSONBOOL_JSON_DSC: "Returns a Boolean indicating if the supplied JSON value is a Boolean.", AR_FN_BLN_ISJSONBOOL_JSON_RV: "Returns true if the supplied JSON value is a JSON Boolean, otherwise returns false.", AR_FN_BLN_ISJSONBOOL_JSON_PRM_DSC_0: "The JSON value to check whether it is a JSON Boolean.", AR_FN_DSC_ISJSONNULL: "Checks whether a JSON value contains the value null / NOT_SET.", AR_FN_BLN_ISJSONNULL_JSON_DSC: "Returns a Boolean indicating if the supplied JSON value contains the value null.", AR_FN_BLN_ISJSONNULL_JSON_RV: "Returns true if the supplied JSON value contained the value null, otherwise returns false.", AR_FN_BLN_ISJSONNULL_JSON_PRM_DSC_0: "The JSON value to check whether it contains null / NOT_SET.", AR_FN_DSC_ISJSONNUMBER: "Checks whether argument is a JSON Number.", AR_FN_BLN_ISJSONNUMBER_JSON_DSC: "Returns a Boolean indicating if the supplied JSON value contains a number.", AR_FN_BLN_ISJSONNUMBER_JSON_RV: "Returns true if the supplied JSON value is a number, otherwise returns false.", AR_FN_BLN_ISJSONNUMBER_JSON_PRM_DSC_0: "The JSON value to check whether it is a number.", AR_FN_DSC_ISJSONOBJECT: "Checks whether argument is a JSON object.", AR_FN_BLN_ISJSONOBJECT_JSON_DSC: "Returns a Boolean indicating if the supplied JSON value contains a JSON object.", AR_FN_BLN_ISJSONOBJECT_JSON_RV: "Returns true if the supplied JSON value contains a JSON Object, otherwise returns false.", AR_FN_BLN_ISJSONOBJECT_JSON_PRM_DSC_0: "The JSON value to check whether it contains a JSON Object.", AR_FN_DSC_ISJSONSTRING: "Checks whether argument is a JSON String.", AR_FN_BLN_ISJSONSTRING_JSON_DSC: "Returns a Boolean indicating if the supplied JSON value contains a String.", AR_FN_BLN_ISJSONSTRING_JSON_RV: "Returns true if the supplied JSON value contains a string, otherwise returns false.", AR_FN_BLN_ISJSONSTRING_JSON_PRM_DSC_0: "The JSON value to check whether it is a JSON String.", AR_FN_DSC_JSONPARSE: "Parse a value to JSON.", AR_FN_JSON_JSONPARSE_STR_DSC: "Parses the supplied String value to JSON using JSON parsing semantics. Note that keys must be double quoted when attempting to parse a JSON String.", AR_FN_JSON_JSONPARSE_STR_RV: "The supplied String parsed to a JSON value.", AR_FN_JSON_JSONPARSE_STR_PRM_DSC_0: "The String value to parse to a JSON value. Supplying a blank string to JsonParse will invoke error handling.", AR_FN_JSON_JSONPARSE_STR_EX_OUT_0: 'A JSON value that contains the string "Hello".', AR_FN_JSON_JSONPARSE_STR_EX_OUT_1: "A JSON value that contains the array [ 0, 1, 2 ].", AR_FN_JSON_JSONPARSE_STR_EX_OUT_3: "A NOT_SET JSON value.", AR_FN_JSON_JSONPARSE_STR_EX_OUT_4: "A JSON value that contains the boolean value true.", AR_FN_DSC_MAKEEMPTYJSONARRAY: "Makes a JSON value that contains an empty array.", AR_FN_JSON_MAKEEMPTYJSONARRAY_DSC: 'Creates a JSON value containing an empty array. This is a helper function that is the equivalent of calling JsonParse("[]").', AR_FN_JSON_MAKEEMPTYJSONARRAY_RV: "Returns a JSON value that contains an empty array.", AR_FN_JSON_MAKEEMPTYJSONARRAY_EX_OUT_0: "A JSON value that contains an empty array.", AR_FN_DSC_MAKEEMPTYJSONOBJECT: "Makes an empty Object JSON value.", AR_FN_JSON_MAKEEMPTYJSONOBJECT_DSC: 'Creates a JSON value containing an empty JSON Object. This is a helper function that is the equivalent of calling JsonParse("{}").', AR_FN_JSON_MAKEEMPTYJSONOBJECT_RV: "Returns a JSON value that contains an empty object.", AR_FN_JSON_MAKEEMPTYJSONOBJECT_EX_OUT_0: "An JSON value with an empty object.", AR_FN_DSC_MAKEEMPTYJSONSTRING: "Makes a JSON value that contains an empty string.", AR_FN_JSON_MAKEEMPTYJSONSTRING_DSC: 'Creates a JSON value containing an empty string. This is a helper function that is the equivalent of calling JsonParse("\\"\\"").', AR_FN_JSON_MAKEEMPTYJSONSTRING_RV: "Returns a JSON value that contains an empty string.", AR_FN_JSON_MAKEEMPTYJSONSTRING_EX_OUT_0: "A JSON value that contains an empty string.", AR_FN_DSC_MAKENULLJSON: "Makes a JSON value that contains the value null.", AR_FN_JSON_MAKENULLJSON_DSC: 'Creates a JSON value containing the value null. This is a helper function that is the equivalent of calling JsonParse("null").', AR_FN_JSON_MAKENULLJSON_RV: "Returns a JSON value that contains the value null.", AR_FN_JSON_MAKENULLJSON_EX_OUT_0: "A JSON value that contains the value null.", AR_FN_DSC_TOJSON: "Converts an Any singleton value or collection to a JSON value.", AR_FN_JSON_TOJSON_ANY_DSC: "Creates a JSON value with the specified singleton value. Conversion of a String value will return a JSON value with that string value. Use JsonParse if you want a String value to be parsed.", AR_FN_JSON_TOJSON_ANY_RV: "A JSON value converted from the supplied singleton value.", AR_FN_JSON_TOJSON_ANY_PRM_DSC_0: "The singleton value to convert to a JSON value.", AR_FN_JSON_TOJSON_ANY_EX_OUT_0: 'A JSON value that contains the string "2022-08-04T00:00:00.000Z".', AR_FN_JSON_TOJSON_ANY_EX_OUT_1: 'A JSON value that contains the string "Hello".', AR_FN_JSON_TOJSON_ANY_EX_OUT_2: "A JSON value that contains the the number 5.", AR_FN_JSON_TOJSON_ANY_EX_OUT_3: 'A JSON value that contains a string of "{ \\"a\\": true }". Remember, use JsonParse if you want this to create a JSON value with an object instead of a String.', AR_FN_JSON_TOJSON_ANY_EX_OUT_4: 'A JSON value that contains a JSON object of { "amount": 5.25, "code": "USD"}.', AR_FN_JSON_TOJSON_ANY_EX_OUT_5: 'A JSON value that contains a string of "tel:+13178723000".', AR_FN_JSON_TOJSON_ANY_EX_OUT_6: "A JSON value for the supplied ListPickerItem", AR_FN_JSON_TOJSON_ANY_EX_OUT_7: "A JSON value for the supplied ListPickerSection", AR_FN_JSON_TOJSON_ANY_EX_OUT_8: "A JSON value for the supplied ListPicker", AR_FN_JSON_TOJSON_ANY_COLL_DSC: "Creates a JSON value from the specified collection.", AR_FN_JSON_TOJSON_ANY_COLL_RV: "A JSON value converted from the supplied collection.", AR_FN_JSON_TOJSON_ANY_COLL_PRM_DSC_0: "The collection value to convert to a JSON value.", AR_FN_JSON_TOJSON_ANY_COLL_EX_OUT_0: "A JSON value with an array of [ 1, 2, 3 ].", AR_FN_JSON_TOJSON_ANY_COLL_EX_OUT_1: "A JSON value for the supplied ListPickerItems", AR_FN_JSON_TOJSON_ANY_COLL_EX_OUT_2: "A JSON value for the supplied ListPickerSections", AR_FN_JSON_TOJSON_NTS_DSC: "Creates a NOT_SET JSON value.", AR_FN_JSON_TOJSON_NTS_RV: "Returns a NOT_SET JSON value.", AR_FN_JSON_TOJSON_NTS_PRM_DSC_0: "The value NOT_SET", AR_FN_JSON_TOJSON_NTS_EX_OUT_0: "A NOT_SET JSON value.", AR_FN_DSC_TOJSONCOLLECTION: "Converts a JSON value that contains an array to a JSON value collection whose items are JSON values that are cloned from items in the array.", AR_FN_JSON_COLL_TOJSONCOLLECTION_JSON_DSC: "Creates a JSON collection whose items are JSON values that contain values from items in the supplied array. This can be very helpful if you need to convert an array contained in a JSON value to a JSON collection value to work with Architect functionality that deals with a collection rather than a singleton value.", AR_FN_JSON_COLL_TOJSONCOLLECTION_JSON_RV: "A JSON collection with items that are JSON values cloned from the items in the supplied array.", AR_FN_JSON_COLL_TOJSONCOLLECTION_JSON_PRM_DSC_0: "The JSON value that contains an array for the conversion operation. If the supplied JSON value does not contain an array, this will invoke error handling. Remember the IsJsonArray function can be used to check if a JSON value contains an array or not.", AR_FN_JSON_COLL_TOJSONCOLLECTION_JSON_EX_OUT_0: "A JSON collection value with two JSON value items in it. The first JSON value contains the boolean value true and the second JSON value contains the number 100.", AR_FN_JSON_COLL_TOJSONCOLLECTION_JSON_EX_OUT_1: "An empty JSON collection value.", AR_FN_DSC_JSONSTRINGIFY: "This converts a value to a JSON notation formatted String value.", AR_FN_STR_JSONSTRINGIFY_ANY_DSC: "This converts a singleton value to a JSON notation formatted String.", AR_FN_STR_JSONSTRINGIFY_ANY_RV: "The JSON notation formatted String.", AR_FN_STR_JSONSTRINGIFY_ANY_PRM_DSC_0: "The JSON value to convert to a JSON notation formatted String.", AR_FN_STR_JSONSTRINGIFY_ANY_COLL_DSC: "This converts a collection value to a JSON notation formatted String.", AR_FN_STR_JSONSTRINGIFY_ANY_COLL_RV: "The JSON notation formatted String.", AR_FN_STR_JSONSTRINGIFY_ANY_COLL_PRM_DSC_0: "The JSON value to convert to a JSON notation formatted String.", AR_FN_STR_JSONSTRINGIFY_NTS_DSC: "Returns a null String for a NOT_SET input value.", AR_FN_STR_JSONSTRINGIFY_NTS_RV: 'The String "null".', AR_FN_STR_JSONSTRINGIFY_NTS_PRM_DSC_0: "The value NOT_SET.", AR_FN_DSC_ISJSONTRUTHY: "Checks whether supplied JSON argument is truthy.", AR_FN_BLN_ISJSONTRUTHY_JSON_DSC: "This function returns a Boolean value representing whether or not the supplied JSON value is truthy.", AR_FN_BLN_ISJSONTRUTHY_JSON_RV: "Returns true when the JSON value contains a Boolean and it is true, contains a String and the string is non-blank, contains a Number and the value is not equal to 0, contains an array or contains an object. Otherwise the function returns false.", AR_FN_BLN_ISJSONTRUTHY_JSON_PRM_DSC_0: "The JSON value to check whether it is truthy.", AR_FN_DSC_DELETEJSONOBJECTPROPERTY: "Removes a property from a JSON Object.", AR_FN_JSON_DELETEJSONOBJECTPROPERTY_JSON_STR_DSC: "If the supplied JSON value is a JSON Object, this function will return a new JSON Object with the supplied property removed. The original JSON Object is not modified.", AR_FN_JSON_DELETEJSONOBJECTPROPERTY_JSON_STR_RV: "Returns a copy of the supplied JSON Object with the supplied value removed.", AR_FN_JSON_DELETEJSONOBJECTPROPERTY_JSON_STR_PRM_DSC_0: "The JSON value with an object from which to remove the property. If the supplied JSON value is not an object, this will invoke error handling. Remember the IsJsonObject function can be used to check if a JSON value contains an object.", AR_FN_JSON_DELETEJSONOBJECTPROPERTY_JSON_STR_PRM_DSC_1: "A String value containing the key of the property to remove from the JSON object. If the property does not exist on the object, a copy of the supplied JSON object value is returned.", AR_FN_JSON_DELETEJSONOBJECTPROPERTY_JSON_STR_EX_OUT_0: 'A JSON object with the following properties: { "a": true, "b": 100 }', AR_FN_JSON_DELETEJSONOBJECTPROPERTY_JSON_STR_EX_OUT_1: 'A JSON object with the following properties: { "a": true, "b": 100, "d": [ true, false ] }', AR_FN_DSC_GETJSONOBJECTPROPERTY: "Retrieves the value of a property from a JSON object contained in a JSON value.", AR_FN_JSON_GETJSONOBJECTPROPERTY_JSON_STR_DSC: "This function returns the value of a property on a JSON object contained in a JSON value by the supplied property name. This function is very helpful if you need to access property names dynamically.", AR_FN_JSON_GETJSONOBJECTPROPERTY_JSON_STR_RV: "A JSON value that contains the JSON object's property value. If the supplied property name does not exist on the JSON object, a NOT_SET JSON value will be returned.", AR_FN_JSON_GETJSONOBJECTPROPERTY_JSON_STR_PRM_DSC_0: "The JSON value that contains the JSON object whose property value you wish to retrieve. If the supplied JSON value does not contain an object, this will invoke error handling. Remember the IsJsonObject function can be used to check if a JSON value contains an object.", AR_FN_JSON_GETJSONOBJECTPROPERTY_JSON_STR_PRM_DSC_1: "The name of the property to retrieve from the JSON object. Property names are matched case sensitively.", AR_FN_JSON_GETJSONOBJECTPROPERTY_JSON_STR_EX_OUT_0: 'A JSON value that contains the string "John".', AR_FN_JSON_GETJSONOBJECTPROPERTY_JSON_STR_EX_OUT_1: 'A JSON value that contains the string "Doe".', AR_FN_JSON_GETJSONOBJECTPROPERTY_JSON_STR_EX_OUT_2: "A NOT_SET JSON value.", AR_FN_JSON_GETJSONOBJECTPROPERTY_JSON_STR_EX_OUT_3: "A JSON value that contains the value null.", AR_FN_JSON_GETJSONOBJECTPROPERTY_JSON_STR_EX_OUT_4: "A NOT_SET JSON value.", AR_FN_DSC_GETJSONOBJECTPROPERTYNAMES: "Creates a String array of the property names contained within the supplied JSON Object.", AR_FN_STR_COLL_GETJSONOBJECTPROPERTYNAMES_JSON_DSC: "Returns a String array of all property names within the supplied JSON value that contains an object.", AR_FN_STR_COLL_GETJSONOBJECTPROPERTYNAMES_JSON_RV: "A String array of the property names contained within it.", AR_FN_STR_COLL_GETJSONOBJECTPROPERTYNAMES_JSON_PRM_DSC_0: "The JSON object from which to get property names. If the supplied JSON value does not contain an object, this will invoke error handling. Remember the IsJsonObject function can be used to check if a JSON value contains an object.", AR_FN_DSC_SETJSONOBJECTPROPERTY: "Sets the property on a JSON Object with the specified key and value and returns a copy of the JSON object with the new key/value pair.", AR_FN_JSON_SETJSONOBJECTPROPERTY_JSON_STR_ANY_DSC: "Sets a key by name to a value on a JSON object.", AR_FN_JSON_SETJSONOBJECTPROPERTY_JSON_STR_ANY_RV: "A copy of the supplied JSON object with the key set to the supplied value.", AR_FN_JSON_SETJSONOBJECTPROPERTY_JSON_STR_ANY_PRM_DSC_0: "The JSON object to set the property on. If the supplied JSON value is not an object, this will invoke error handling. Remember the IsJsonObject function can be used to check if a JSON value contains an object.", AR_FN_JSON_SETJSONOBJECTPROPERTY_JSON_STR_ANY_PRM_DSC_1: "The name of the key to set.", AR_FN_JSON_SETJSONOBJECTPROPERTY_JSON_STR_ANY_PRM_DSC_2: "The value to set for the key.", AR_FN_JSON_SETJSONOBJECTPROPERTY_JSON_STR_ANY_EX_OUT_0: 'A JSON object with the value of {"myKey": 42}', AR_FN_JSON_SETJSONOBJECTPROPERTY_JSON_STR_ANY_EX_OUT_1: 'A JSON object with the value of { "a": true, "b": 100, "c": [ true, false ], "A": 5 }', AR_FN_JSON_SETJSONOBJECTPROPERTY_JSON_STR_ANY_COLL_DSC: "Sets a key by name to a collection value on a JSON object.", AR_FN_JSON_SETJSONOBJECTPROPERTY_JSON_STR_ANY_COLL_RV: "A copy of the supplied JSON object with the key set to the supplied value.", AR_FN_JSON_SETJSONOBJECTPROPERTY_JSON_STR_ANY_COLL_PRM_DSC_0: "The JSON object to set the property on. If the supplied JSON value is not an object, this will invoke error handling. Remember the IsJsonObject function can be used to check if a JSON value contains an object.", AR_FN_JSON_SETJSONOBJECTPROPERTY_JSON_STR_ANY_COLL_PRM_DSC_1: "The name of the key to set.", AR_FN_JSON_SETJSONOBJECTPROPERTY_JSON_STR_ANY_COLL_PRM_DSC_2: "The value to set for the key.", AR_FN_JSON_SETJSONOBJECTPROPERTY_JSON_STR_ANY_COLL_EX_OUT_0: 'A JSON object with the value of { "myKeys": [ 42, 180 ] }', AR_FN_DSC_GETKNOWLEDGEBASEDOCUMENTCONFIDENCE: "Gets the confidence score of a knowledge base document.", AR_FN_DEC_GETKNOWLEDGEBASEDOCUMENTCONFIDENCE_KNOWLEDGEBASEDOCUMENT_DSC: "Takes a knowledge base document and returns the confidence of that document from the last knowledge search. A search happens for example while executing a Wait for Input or Digital Menu action. The result of that search can (optionally) be stored in a KnowledgeBaseDocumentCollection variable. When these results are stored, the confidence will be stored along with them, which can then be extracted by this function to determine which is the strongest match to the user's query. If the document was not in the list of results from the most recent search, returns NOT_SET.", AR_FN_DEC_GETKNOWLEDGEBASEDOCUMENTCONFIDENCE_KNOWLEDGEBASEDOCUMENT_RV: "Returns a confidence score from the supplied knowledge base document.", AR_FN_DEC_GETKNOWLEDGEBASEDOCUMENTCONFIDENCE_KNOWLEDGEBASEDOCUMENT_PRM_DSC_0: "The knowledge base document.", AR_FN_DEC_GETKNOWLEDGEBASEDOCUMENTCONFIDENCE_KNOWLEDGEBASEDOCUMENT_EX_OUT_0: "A NOT_SET Decimal.", AR_FN_DEC_GETKNOWLEDGEBASEDOCUMENTCONFIDENCE_NTS_DSC: "Returns a NOT_SET confidence score for a NOT_SET KnowledgeBaseDocument.", AR_FN_DEC_GETKNOWLEDGEBASEDOCUMENTCONFIDENCE_NTS_RV: "Returns a NOT_SET confidence score.", AR_FN_DEC_GETKNOWLEDGEBASEDOCUMENTCONFIDENCE_NTS_PRM_DSC_0: "The NOT_SET knowledge base document.", AR_FN_DEC_GETKNOWLEDGEBASEDOCUMENTCONFIDENCE_NTS_EX_OUT_0: "A NOT_SET confidence score." } }; + }, 44931: (e2, t2, i2) => { + const n2 = i2(92140), { lexStatuses: r2 } = i2(60885), o = i2(36019).default, a = i2(19202); + class s { + } + s.prototype.getBots = function(e3) { + return o.build(a.getBots).queryParams(e3.getSearchQueryParams()).call(); + }, s.prototype.getAliases = function(e3) { + return e3.addAdditionalParams({ status: r2.v1.ready }), o.build(a.getAliases).templateParams({ botId: e3.additionalParams.botId }).queryParams(e3.getSearchQueryParams()).call().then(function(t3) { + return n2.each(t3.entities, function(t4) { + if (!t4.bot) { + const i3 = e3.additionalParams.botId; + t4.bot = { id: i3, name: i3 }; + } + }), t3; + }); + }, s.prototype.getAlias = function(e3) { + return o.build(a.getAlias).templateParams({ aliasId: e3 }).call(); + }, s.prototype.getV2Bots = function(e3) { + return o.build(a.getV2Bots).queryParams(e3.getSearchQueryParams()).call(); + }, s.prototype.getV2Aliases = function(e3) { + return e3.addAdditionalParams({ status: r2.v2.available }), o.build(a.getV2Aliases).templateParams({ botId: e3.additionalParams.botId }).queryParams(e3.getSearchQueryParams()).call().then(function(t3) { + return n2.each(t3.entities, function(t4) { + if (!t4.bot) { + const i3 = e3.additionalParams.botId; + t4.bot = { botId: i3, name: i3 }; + } + }), t3; + }); + }, s.prototype.getV2Alias = function(e3) { + return o.build(a.getV2Alias).templateParams({ aliasId: e3 }).call(); + }, s.prototype.getAlias.api = a.getAlias, s.prototype.getV2Alias.api = a.getV2Alias, e2.exports = new s(); + }, 44951: (e2, t2, i2) => { + const n2 = i2(7401), r2 = i2(54668), { transferFlowSecureActionType: o } = i2(30801); + function a() { + Object.defineProperties(this, { _invocationData: { writable: true }, _connTimeout: { writable: true } }), a.baseConstructor.apply(this, arguments); + } + r2.extend(a, o, true), Object.defineProperties(a.prototype, { pasteReIdOrRename: { value: function(e3) { + a._super.pasteReIdOrRename.apply(this, arguments), this.connTimeout.pasteReIdOrRename(e3), this.invocationData.pasteReIdOrRename(e3); + } }, pasteResolveOldToNewValues: { value: function(e3) { + a._super.pasteResolveOldToNewValues.apply(this, arguments), this.connTimeout.pasteResolveOldToNewValues(e3), this.invocationData.pasteResolveOldToNewValues(e3); + } }, connTimeout: { enumerable: true, get: function() { + return this._connTimeout; + }, set: function(e3) { + this._connTimeout = this.reviveItem(e3, n2); + } }, invocationData: { enumerable: true, get: function() { + return this._invocationData; + }, set: function(e3) { + this._invocationData = this.reviveItem(e3, n2); + } } }), e2.exports = a; + }, 45077: (e2, t2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.getSetSkillExpressionFiltersFailureReasons = t2.getEvaluateSkillExpressionFiltersFailureReasons = t2.getClearSkillExpressionFiltersFailureReasons = void 0; + const i2 = "ActionInvocationLimitExceeded", n2 = "Busy", r2 = "GeneralError", o = "InvalidSkillExpressionFilterCount"; + t2.getClearSkillExpressionFiltersFailureReasons = [i2, n2, r2], t2.getEvaluateSkillExpressionFiltersFailureReasons = [i2, n2, r2, "InvalidSkillExpressionFilterRawText", o], t2.getSetSkillExpressionFiltersFailureReasons = [i2, n2, r2, "InvalidSkillExpressionFilter", o]; + }, 45098: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(21042), r2 = i2(27862), o = i2(1211); + class a extends n2.BootstrapListManager { + constructor() { + super(r2.TtsVoice, o); + } + get className() { + return "voiceService"; + } + } + t2.default = new a(); + }, 45148: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importDefault(i2(92140)), o = n2.__importDefault(i2(62252)), a = n2.__importDefault(i2(16945)); + class s extends a.default { + constructor(e3, t3, i3, n3, r3, o2, a2, s2, l, u, d, c, p, _) { + super(e3, t3, i3, n3, o2, a2, s2, l, u, d, c, p, _), Object.defineProperties(this, { _generators: { value: r3, writable: true } }); + } + get className() { + return "BaseBuilderDef"; + } + get fixedBuilderPart() { + return false; + } + get warnOnNoParts() { + return false; + } + get hasMaxBuilderPartCount() { + return false; + } + get hasMinBuilderPartCount() { + return false; + } + get maxBuilderPartCount() { + } + get minBuilderPartCount() { + } + getExpressionGenerator(e3) { + if (this._generators.getExpressionGenerator && r2.default.isFunction(this._generators.getExpressionGenerator)) { + const t3 = this._generators.getExpressionGenerator(e3, this.generators); + if (t3) return t3; + } + return this._generators.expressionGenerator; + } + getNoPartsGenerator() { + return this._generators.noOrDisabledPartsGenerator; + } + get generators() { + return this._generators; + } + get isBaseBuilderDef() { + return true; + } + createBuilder(e3, t3) { + throw "You must override the createBuilder method in inheriting classes"; + } + reviveBuilder(e3, t3, i3) { + throw "You must override the reviveBuilder method in inheriting classes"; + } + reviveBuilderModel(e3) { + const t3 = this.createModel(e3); + return t3.populateFromJSON(e3), t3; + } + get modelType() { + return o.default; + } + createModel(e3) { + return new this.modelType({ builderId: e3.builderDefId, version: e3.version }); + } + } + t2.default = s; + }, 45214: (e2, t2, i2) => { + const n2 = i2(92140), r2 = i2(45741), o = i2(16029), a = i2(43096); + let s; + const l = () => { + if (!s) { + const e3 = i2(24032); + e3 && n2.isFunction(e3.getTopic) && (s = e3.getTopic("DataContract")); + } + return s; + }; + function u(e3, t3) { + return t3 && t3.__type && n2.isFunction(a[t3.__type]) ? new a[t3.__type](t3) : t3; + } + function d(e3, t3) { + if (e3 && t3) for (const i3 in e3) { + const r3 = Object.getPropertyDescriptor(t3, i3); + r3 && (n2.isFunction(r3.set) || r3.writable) && (t3[i3] = e3[i3]); + } + } + function c(e3) { + var t3; + n2.isString(e3) && (t3 = e3, e3 = JSON.parse(t3, u)), this.result = void 0, d(e3, this), Object.defineProperties(this, { flatten: { value: function() { + return (function(e4) { + const t4 = {}; + for (const i3 in e4) t4[i3] = e4[i3]; + return t4; + })(this); + } }, toJSON: { value: function() { + return this.flatten(); + } }, valueOf: { value: function() { + return this.flatten(); + } } }); + } + function p(e3) { + l().errorWithStack(e3, "Ignored Configuration Item"); + } + Object.defineProperties(c, { extend: { value: function(e3, t3, i3) { + a[t3] = e3, o(e3, this), Object.defineProperty(e3.prototype, "__type", { value: t3, enumerable: !!i3 }), Object.defineProperties(e3, { __type: { value: t3 }, alias: { value: function(e4) { + a[e4] = this; + } }, baseConstructor: { value: e3._super.constructor }, extend: { value: this.extend }, instantiate: { value: function() { + const t4 = n2.toArray(arguments), i4 = Object.create(e3.prototype); + return e3.apply(i4, t4), i4; + }, writable: true } }); + } } }), r2(c, { getConfiguration(e3, t3) { + return this; + }, populateFromJSON(e3) { + d(e3, this); + }, pasteReIdOrRename: { value: function(e3) { + } }, pasteResolveOldToNewValues: { value: function(e3) { + } }, reviveArray: function(e3, t3) { + n2.isArray(e3) || (e3 = []); + for (let i3 = 0; i3 < e3.length; i3++) { + const n3 = e3[i3]; + try { + if (!n3) { + e3.splice(i3--, 1); + continue; + } + n3 instanceof (t3 = a[n3.__type] || t3) || (e3[i3] = new t3(n3)); + } catch (t4) { + e3.splice(i3--, 1), p(t4); + } + } + return e3; + }, reviveArrayToMap(e3, t3) { + return n2.chain(e3).map((e4) => { + try { + return this.reviveItem(e4, t3); + } catch (e5) { + p(e5); + } + }).filter((e4) => e4).groupBy((e4) => { + const i3 = e4[t3.keyProperty || "id"]; + if (!i3) throw new Error(`revived item has no id or keyProperty ${JSON.stringify(e4)}`); + return i3; + }).reduce((e4, i3, r3) => { + let o2, a2 = i3[0]; + if (i3.length > 1) if (n2.isFunction(t3.getMasterItemIndexFromDuplicateKeyList)) { + const e5 = t3.getMasterItemIndexFromDuplicateKeyList(i3); + i3[e5] ? (a2 = i3.splice(e5, 1)[0], o2 = i3) : l().error(`Failed to get master item for group of duplicate ids: ${r3}, using first item, ignoring the rest`); + } else l().error(`Unexpected array with duplicate keys: ${r3}, using first item, ignoring the rest`); + return o2 && (t3.duplicateKeyListProperty ? a2[t3.duplicateKeyListProperty] = o2 : l().error(`Throwing away duplicates for key ${r3} because no duplicateKeyCombineProperty found`)), e4[r3] = a2, e4; + }, {}).value(); + }, reviveEnum: function(e3, t3) { + if (e3 || 0 === e3) return e3 instanceof t3 ? e3 : t3.getInstance(e3); + }, reviveItem: function(e3, t3) { + let i3; + try { + if (!e3) return; + e3.__type && (t3 = a[e3.__type] || t3), i3 = e3 instanceof t3 ? e3 : new t3(e3); + } catch (e4) { + i3 = void 0, p(e4); + } + return i3; + }, reviveMap: function(e3, t3, i3) { + const r3 = {}; + return n2.each(e3, (e4, n3) => { + const o2 = this.reviveItem(e4, t3); + i3 && (o2.id = n3), r3[n3] = o2; + }), r3; + } }), e2.exports = c; + }, 45252: (e2, t2, i2) => { + "use strict"; + var n2, r2; + Object.defineProperty(t2, "__esModule", { value: true }); + const o = i2(31635), a = i2(30801), s = o.__importDefault(i2(38663)); + class l extends s.default { + constructor(e3) { + super(e3), n2.set(this, void 0), r2.set(this, void 0), o.__classPrivateFieldSet(this, n2, this.coreFactory.createArchWrapper(e3.maxSnippetTime), "f"), o.__classPrivateFieldSet(this, r2, this.coreFactory.createArchWrapper(e3.snippet), "f"); + } + get _actionTypeId() { + return a.collectVoiceSnippetActionType; + } + get displayTypeName() { + return this._scriptingName; + } + get isArchActionCollectVoiceSnippet() { + return true; + } + get maxSnippetTime() { + return o.__classPrivateFieldGet(this, n2, "f"); + } + get snippet() { + return o.__classPrivateFieldGet(this, r2, "f"); + } + } + n2 = /* @__PURE__ */ new WeakMap(), r2 = /* @__PURE__ */ new WeakMap(), t2.default = l; + }, 45279: (e2, t2, i2) => { + const n2 = i2(28730), { previousMenuActionType: r2 } = i2(30801); + function o() { + o.baseConstructor.apply(this, arguments); + } + n2.extend(o, r2, true), e2.exports = o; + }, 45335: (e2, t2, i2) => { + function n2() { + n2.baseConstructor.apply(this, arguments); + } + i2(11475).extend(n2, "VideoVariable", true), Object.defineProperties(n2.prototype, { typeIdentifier: { writable: true } }), e2.exports = n2; + }, 45421: (e2, t2, i2) => { + const n2 = i2(92140), r2 = i2(6291), { obfuscation: o } = i2(41829), { ParameterInfo: a } = i2(55909), { ParameterValidator: s } = i2(33951), l = i2(47957), u = i2(1115), d = i2(14187), { uuid: c } = i2(9456), p = "BaseClipboardViewModel"; + class _ { + constructor(e3) { + s.expectTrue(e3.isClipboardLogging, e3, "ClipboardLogging", () => a.createConstructorParameter(p, "clipboardLogging")), Object.defineProperties(this, { _clipboardLogging: { value: e3, writable: true, enumerable: false }, _createDateTimeStr: { writable: true, enumerable: true }, _id: { writable: true, enumerable: true } }), n2.isUndefined(this._id) && (this._id = c()), n2.isUndefined(this._createDateTime) && (this._createDateTimeStr = (/* @__PURE__ */ new Date()).toISOString()), Object.defineProperties(this, { _createDateTime: { value: new Date(this._createDateTimeStr), writable: false, enumerable: false } }); + } + _getNameAndIdStr(e3) { + return "'" + (e3.name ? e3.name : e3.displayName ? e3.displayName : "") + "' (ID: " + (e3.id ? e3.id : "") + ")"; + } + _performDestroy() { + } + get className() { + return p; + } + get clipboardLogging() { + return this._clipboardLogging; + } + cloneToRawJsonObject(e3) { + return _.cloneToRawJsonObject(e3); + } + static cloneToRawJsonObject(e3) { + return n2.isUndefined(e3) || null === e3 ? e3 : n2.deepClone(e3); + } + createClipboardResultFailure(e3, t3) { + return r2.createFailureResult(e3); + } + createClipboardResultFailureCanPasteGeneric(e3) { + return e3 && this.logError(e3), r2.createFailureResult(l.clipboard.content.pastableLocations.cannotPasteGeneric, e3); + } + createClipboardResultFailurePasteException(e3, t3) { + this.logException(e3, t3); + let i3 = n2.isString(t3) && t3.length > 0 ? t3 : ""; + return e3 && e3.message && (i3 = i3 + " -> " + e3.message), r2.createFailureResult(l.clipboard.paste.pasteFailed, i3); + } + createClipboardResultFailurePasteGeneric(e3) { + return e3 && this.logError(e3), r2.createFailureResult(l.clipboard.paste.pasteFailed, e3); + } + createClipboardResultSuccess(e3, t3) { + return r2.createSuccessResult(e3, t3); + } + createClipboardResultSuccessWithWarning(e3, t3) { + return r2.createSuccessWarningResult(e3, t3); + } + get dateTimeCreated() { + return this._createDateTime; + } + destroy() { + this.pushLogHeader(this.logHeader); + try { + this.log("Destroy begin."), this._performDestroy(); + } catch (e3) { + this.logException(e3, "Exception caught in base clipboard destroy"); + } finally { + this.log("Destroy end."), this.popLogHeader(), this._clipboardLogging = void 0, this._id = void 0; + } + } + static decodeStr(e3) { + return o.decodeStr(e3); + } + static encodeStr(e3) { + return o.encodeStr(e3); + } + static getFlowViewModel(e3) { + return e3 && e3.parentFlow && e3.parentFlow.isFlowViewModel ? e3.parentFlow : void 0; + } + getLastActionForStateOrTask(e3) { + if (e3 && e3.isTaskLike) return e3.lastAction; + } + get id() { + return this._id; + } + get isBaseClipboardViewModel() { + return true; + } + log(e3) { + this._clipboardLogging.log(e3); + } + logError(e3) { + this._clipboardLogging.logError(e3); + } + logException(e3, t3) { + this._clipboardLogging.logException(e3, t3); + } + get logHeader() { + return this.className + " (ID: '" + this.id + "')"; + } + pasteFixVariable(e3, t3) { + s.expectObject(t3, () => a.createFunctionParameter(this.className, "pasteFixVariable", "pastedVariableViewModel")); + const i3 = this.createClipboardResultSuccess(); + t3.isSecure && !e3.destFlowViewModel.supportsSecureVariables && (this.log("The variable model " + this._getNameAndIdStr(t3) + " is a secure variable which is not supported in the destination flow type '" + e3.destFlowViewModel.type + "'. Setting isSecure to false."), t3.isSecure = false); + const n3 = d.getScope(t3.name); + let r3, o2, l2 = true; + switch (n3) { + case d.scopes.common: + case d.scopes.flow: + r3 = e3.destFlowViewModel.supportsFlowInputVariables, o2 = e3.destFlowViewModel.supportsFlowOutputVariables; + break; + case d.scopes.state: + r3 = e3.destFlowViewModel.supportsStateInputVariables, o2 = e3.destFlowViewModel.supportsStateOutputVariables; + break; + case d.scopes.task: + r3 = e3.destFlowViewModel.supportsTaskInputVariables, o2 = e3.destFlowViewModel.supportsTaskOutputVariables; + break; + default: + l2 = false; + } + return l2 && (t3.isInput && !r3 && (this.log("The variable model " + this._getNameAndIdStr(t3) + " is an input variable which is not supported for " + n3 + " scoped variables in the flow " + e3.getDestFlowNameAndIdStr() + ". Setting isInput to false."), t3.isInput = false), t3.isOutput && !o2 && (this.log("The variable model " + this._getNameAndIdStr(t3) + " is an output variable which is not supported for " + n3 + " scoped variables in the flow " + e3.getDestFlowNameAndIdStr() + ". Setting isOutput to false."), t3.isOutput = false)), i3; + } + pasteGetUniqueName(e3, t3, i3, r3, o2, a2) { + const s2 = e3 ? e3.toLowerCase() : ""; + if (l2 = t3, u2 = function(e4) { + return e4.name.toLowerCase() === s2; + }, !(a2 ? n2.find(l2, function(e4) { + return n2.find(e4, u2); + }) : n2.find(l2, u2))) return e3; + var l2, u2; + const d2 = (e3 = this.removeNumericSuffixAndSpace(e3)) ? e3 + (r3 ? " " : "") + "%1$s" : "%1$s", c2 = i3.destFlowViewModel._getUniqueName(t3, d2, o2, a2); + return this.log("Generated unique name '" + c2 + "' from original name '" + (e3 || "") + "'"), c2; + } + pushLogHeader(e3) { + this._clipboardLogging.pushLogHeader(e3); + } + popLogHeader() { + this._clipboardLogging.popLogHeader(); + } + removeNumericSuffixAndSpace(e3) { + if (s.expectString(e3, () => a.createFunctionParameter(this.className, "removeNumericSuffixAndSpace", "valueToProcessStr"), true), !n2.isString(e3) && 0 === e3.length) return e3; + for (; e3.length && e3[e3.length - 1] >= "0" && e3[e3.length - 1] <= "9"; ) e3 = e3.substring(0, e3.length - 1); + for (; e3.length && " " === e3[e3.length - 1]; ) e3 = e3.substring(0, e3.length - 1); + return e3; + } + get shouldLog() { + return this._clipboardLogging.shouldLog; + } + set shouldLog(e3) { + this._clipboardLogging.shouldLog = e3; + } + get suppressLogHeaders() { + return this._clipboardLogging.suppressLogHeaders; + } + set suppressLogHeaders(e3) { + this._clipboardLogging.suppressLogHeaders = e3; + } + validateFlow(e3) { + s.expectFlowViewModel(e3, () => a.createFunctionParameter(this.className, "validateFlow", "flowViewModel")), e3 && e3.isFlowViewModel && u.validateFlow(e3); + } + } + e2.exports = _; + }, 45422: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(54063)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "journeyOutcomeScoreCollection"; + } + get displayTypeName() { + return "ArchValueJourneyOutcomeScoreCollection"; + } + get isArchValueJourneyOutcomeScoreCollection() { + return true; + } + } + t2.default = r2; + }, 45431: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.isBaseBuilderObjectViewModel = function(e3) { + return null == e3 ? void 0 : e3.isBaseBuilderObjectViewModel; + }; + const n2 = i2(55909), r2 = i2(33951), o = i2(24032).getTopic("BaseBuilderObjectViewModel"); + t2.default = class { + constructor(e3) { + this._isDestroyed = false, r2.ParameterValidator.expectExpression(e3, () => n2.ParameterInfo.createConstructorParameter(this.className, "owningExpressionViewModel")), Object.defineProperties(this, { _builderValidationResultsOrganizer: { writable: true }, _builderViewModel: { writable: true }, _initializeDesignTimeCalled: { value: false, writable: true }, _owningExpressionViewModel: { value: e3, writable: true } }); + } + get id() { + return this._id; + } + _addClipboardDependencies(e3) { + } + _initializeDesignTime() { + } + _postInitializeDesignTime() { + } + _replaceUsages(e3, t3, i3) { + } + _validateBuilderObject(e3, t3) { + return true; + } + get amObjectEventEmitter() { + return true; + } + get amObjectEventSink() { + return true; + } + get builderViewModel() { + return this._builderViewModel; + } + get builderValidationResults() { + return this._builderValidationResultsOrganizer.getBuilderObjectResults(this.id); + } + get className() { + return "BaseBuilderObjectViewModel"; + } + addClipboardDependencies(e3) { + try { + this._addClipboardDependencies(e3); + } catch (e4) { + throw o.exceptionWithErrorObjectInfo(e4, "Error occurred in _addClipboardDependencies processing.", this, true), e4; + } + } + configureForBuilderViewModel(e3) { + this._builderViewModel = r2.ParameterValidator.expectObject(e3, () => n2.ParameterInfo.createFunctionParameter(this.className, "configureForBuilderViewModel", "builderViewModel")), this._builderValidationResultsOrganizer = this._builderViewModel.getBuilderValidationResultsOrganizer(); + } + get hasError() { + var e3; + return null === (e3 = this._builderValidationResultsOrganizer) || void 0 === e3 ? void 0 : e3.getBuilderObjectHasError(this.id); + } + get hasWarning() { + var e3; + return null === (e3 = this._builderValidationResultsOrganizer) || void 0 === e3 ? void 0 : e3.getBuilderObjectHasWarning(this.id); + } + get hasInfo() { + return this._builderValidationResultsOrganizer.getBuilderObjectHasInfo(this.id); + } + get isBaseBuilderObjectViewModel() { + return true; + } + initializeDesignTime() { + try { + this._initializeDesignTime(); + } catch (e3) { + } + this._initializeDesignTimeCalled = true; + try { + this._postInitializeDesignTime(); + } catch (e3) { + } + } + getInternalExpressions() { + return []; + } + get initializeDesignTimeCalled() { + return this._initializeDesignTimeCalled; + } + get owningExpression() { + return this._owningExpressionViewModel; + } + get parentFlow() { + return this._owningExpressionViewModel.parentFlow; + } + get parentFlowIsReadOnly() { + const e3 = this.parentFlow; + return !e3 || !e3.info || !e3.info.currentUserCanEdit; + } + get parentFlowType() { + return this._parentFlowType || (this._parentFlowType = this._owningExpressionViewModel.parentFlow ? this._owningExpressionViewModel.parentFlow.type : ""), this._parentFlowType; + } + replaceUsages(e3, t3, i3) { + try { + this._replaceUsages(e3, t3, i3); + } catch (e4) { + o.exceptionWithErrorObjectInfo(e4, "Error occurred in _replaceUsages processing.", this, true); + } + } + validateBuilderObject(e3, t3) { + let i3; + try { + i3 = this._validateBuilderObject(this._builderValidationResultsOrganizer, t3); + } catch (e4) { + i3 = false; + } + return i3; + } + get builderValidationResultsOrganizer() { + return this._builderValidationResultsOrganizer; + } + destroy() { + this._builderValidationResultsOrganizer.clearBuilderObject(this.id); + try { + this._destroy(); + } catch (e3) { + } finally { + this._isDestroyed = true; + } + } + get isDestroyed() { + return this._isDestroyed; + } + _destroy() { + this._builderViewModel = void 0, this._initializeDesignTimeCalled = void 0, this._owningExpressionViewModel = void 0, this._builderValidationResultsOrganizer = void 0; + } + }; + }, 45524: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(25498)), r2 = i2(96618); + class o extends n2.default { + constructor(e3) { + super(e3); + } + get _flowType() { + return r2.flowTypes.flowTypeVoicemail; + } + get displayTypeName() { + return "ArchFlowVoicemail"; + } + get isArchFlowVoicemail() { + return true; + } + } + t2.default = o; + }, 45532: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importDefault(i2(87921)), o = i2(80428), a = n2.__importDefault(i2(65302)); + class s extends r2.default { + get className() { + return "WrapupCodeFacets"; + } + get isWrapupCodeFacets() { + return true; + } + _facetGetExpressionItemLitValue(e3) { + return e3.getLitAsString(); + } + _facetGetExpressionType() { + return a.default.getGlobalTypeGroup().getType(o.expressionTypeNames.wrapupCode, this.isCollection); + } + _facetValidateValue(e3, t3) { + } + } + t2.default = s; + }, 45623: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importDefault(i2(92140)), o = n2.__importDefault(i2(51695)); + class a extends o.default { + constructor(e3, t3, i3) { + super(), this.model = e3, this.name = t3, this.expression = i3; + } + get id() { + return "nvp-" + this.name.id; + } + get contents() { + return [this.name, this.expression]; + } + get className() { + return "NameValuePairViewModel"; + } + getConfiguration(e3, t3, i3) { + if (null == t3 ? void 0 : t3.isForFlowYaml) { + const n3 = { name: this.name.getConfiguration(e3, t3) }, o2 = this.expression.getConfiguration(e3, t3); + return (null == i3 ? void 0 : i3.nameValuePairShouldUseVariableProperty) ? n3.variable = r2.default.getFirstPropertyValueInObj(o2) : n3.value = o2, n3; + } + return this.model; + } + get isNameValuePairViewModel() { + return true; + } + } + t2.default = a; + }, 45626: (e2, t2, i2) => { + "use strict"; + const n2 = i2(31635), r2 = i2(25653), o = i2(80428), a = i2(78513), s = n2.__importDefault(i2(27203)), l = i2(12179), u = n2.__importDefault(i2(97891)), d = n2.__importDefault(i2(80570)), c = i2(21733), p = i2(47957); + i2(84111); + class _ extends d.default { + constructor(e3, t3) { + super(e3), this._loadModel(t3), this.question.options.setBuilderLanguagesSequenceConfig(r2.askForNextSlotSequences.questionSequence), this.parentFlow.isDigitalBotFlow ? (this.noInput.options.setBuilderLanguagesSequenceConfig(r2.askForNextSlotSequences.noInputDigitalBotSequence), this.noMatch.options.setBuilderLanguagesSequenceConfig(r2.askForNextSlotSequences.noMatchDigitalBotSequence)) : (this.noInput.options.setBuilderLanguagesSequenceConfig(r2.askForNextSlotSequences.noInputSequence), this.noMatch.options.setBuilderLanguagesSequenceConfig(r2.askForNextSlotSequences.noMatchSequence)); + } + get isAskForNextIntentLoopAction() { + return true; + } + static get branchInfo() { + return [s.default.loop]; + } + static get managedProperties() { + return [{ label: p.loop.indexDataName, options: a.ExpressionTypeIntegerOptions.create((e3) => e3.setAllowSecure(true).setAsOutput().setIsOptional(true).setModeNoValueRuntimeEvaluationStr(p.loopUntil.noLoopIndexVariableSpecified).setUiPropertyOrder(1).setIninTestingField("currentLoopIndex")), property: "currentIndex", type: o.expressionTypeNames.integer }]; + } + setNewInstanceDefaults(e3) { + super.setNewInstanceDefaults(e3), this.setNewInstanceQuestionText(c(this.parentFlow.defaultLanguage).askForNextSlot.question), this.parentFlow.isDigitalBotFlow ? (this.setNewInstanceNoInputText(c(this.parentFlow.defaultLanguage).askForNextSlot.noInputDigitalBot), this.setNewInstanceNoMatchText(c(this.parentFlow.defaultLanguage).askForNextSlot.noMatchDigitalBot)) : (this.setNewInstanceNoInputText(c(this.parentFlow.defaultLanguage).askForNextSlot.noInput), this.setNewInstanceNoMatchText(c(this.parentFlow.defaultLanguage).askForNextSlot.noMatch)); + } + } + _.info = u.default.createActionInfo({ actionClass: _, canBeInTask: true, canBeTreeNode: false, helpTopic: l.helpTopics.actions.askForNextIntentLoop, modelClass: i2(13818), name: p.actions.askForNLUNextIntentAction, scriptingName: "ArchActionLoopAnythingElse", supportsUtteranceHistoricalData: true }), t2.A = _; + }, 45741: (e2, t2, i2) => { + const n2 = i2(92140); + e2.exports = function(e3, t3) { + n2.isFunction(e3) ? n2.each(t3, function(t4, i3) { + Object.defineProperty(e3.prototype, i3, { value: t4 }); + }) : n2.each(t3, function(t4, i3) { + Object.defineProperty(e3, i3, { value: t4 }); + }); + }; + }, 45817: (e2, t2, i2) => { + "use strict"; + const n2 = i2(31635), r2 = i2(19384), o = i2(12179), a = n2.__importDefault(i2(97891)), s = n2.__importDefault(i2(5730)), l = i2(47957); + class u extends s.default { + constructor(e3, t3) { + super(e3.parentFlow, e3), this._loadModel(t3); + } + get isInlineTaskAction() { + return true; + } + get taskReference() { + return this.model.taskReference; + } + set taskReference(e3) { + this.model.taskReference = e3; + } + initialize() { + super.initialize(); + const e3 = this.parentFlow; + if (this.task) return; + const t3 = this.taskReference; + if (!t3) return; + if (!e3) return; + const i3 = e3.getChild(t3); + this.linkTask(i3); + } + addClipboardDependencies(e3) { + super.addClipboardDependencies(e3), this.task && this.task.isTask && this.task.addClipboardDependencies(e3); + } + linkTask(e3) { + this.taskReference = e3.id, this.task = e3; + } + validate(e3) { + super.validate(e3), r2.flowElementRegistrationService.getItemById(this.parentFlow, this.taskReference) || e3.addInternalError(this, l.task.invalidReference); + } + } + u.info = a.default.createActionInfo({ actionClass: u, canBeTreeNode: true, helpTopic: o.helpTopics.tasks.task, modelClass: i2(52030), name: l.actions.task, scriptingName: "ArchActionTask", availabilityCallback: (e3, t3, i3) => t3.parentFlow.definition.supportsReusableMenus }), t2.A = u; + }, 45889: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = i2(80295), o = i2(80295), a = i2(19596), s = n2.__importDefault(i2(7401)); + class l extends a.DataContract { + constructor(e3) { + super(e3), (0, o.makeUnenumerable)(this, "_name"), (0, o.makeUnenumerable)(this, "_timeslots"); + } + get name() { + return this._name; + } + set name(e3) { + this._name = e3; + } + get timeslots() { + return this._timeslots; + } + set timeslots(e3) { + this._timeslots = this.reviveItem(e3, s.default); + } + pasteReIdOrRename(e3) { + super.pasteReIdOrRename(e3), this.timeslots.pasteReIdOrRename(e3); + } + pasteResolveOldToNewValues(e3) { + super.pasteResolveOldToNewValues(e3), this.timeslots.pasteResolveOldToNewValues(e3); + } + } + t2.default = l, n2.__decorate([(0, r2.enumerable)(true), n2.__metadata("design:type", String), n2.__metadata("design:paramtypes", [String])], l.prototype, "name", null), n2.__decorate([(0, r2.enumerable)(true), n2.__metadata("design:type", Object), n2.__metadata("design:paramtypes", [Object])], l.prototype, "timeslots", null); + }, 45894: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importDefault(i2(73198)), o = n2.__importDefault(i2(85383)); + class a extends o.default { + constructor(e3, t3) { + super(e3, t3); + } + get displayTypeName() { + return "ArchBaseNetworkValueSingleton"; + } + get isArchBaseNetworkValueSingleton() { + return true; + } + get isCollection() { + return false; + } + _setLiteralByIdAsync(e3) { + return n2.__awaiter(this, void 0, void 0, function* () { + return this._findItemByIdAsync(e3).then((e4) => (this.logNote("setting by looked up id to the literal item " + this.getLogStrForItemInfo(e4)), this._coreExpression.updateFromConfigListManagerItem(e4), this)); + }); + } + _setLiteralByValueAsync(e3) { + return n2.__awaiter(this, void 0, void 0, function* () { + return this._findItemByValueAsync(e3).then((e4) => (this.logNote("setting by looked up value to the literal item " + this.getLogStrForItemInfo(e4)), this._coreExpression.updateFromConfigListManagerItem(e4), this)); + }); + } + get objectName() { + if (this.isLiteral) { + return this._getCoreExpressionText() || ""; + } + } + setExpressionNotSet() { + return this.setExpression(r2.default.notSet); + } + get valueText() { + let e3 = this._getValueTextCommon(); + return void 0 === e3 && this.isLiteral && (e3 = this.objectName), "string" == typeof e3 ? e3 : ""; + } + } + t2.default = a; + }, 45964: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importDefault(i2(94225)), o = i2(19444), a = n2.__importDefault(i2(45894)); + class s extends a.default { + constructor(e3) { + super(e3, o.queueManager); + } + get _globalTypeName() { + return "queue"; + } + get displayTypeName() { + return "ArchValueQueue"; + } + get isArchValueQueue() { + return true; + } + setLiteralByQueueIdAsync(e3, t3) { + return n2.__awaiter(this, void 0, void 0, function* () { + return this._checkItemIsValidLiteralString(this._infoParm("queueId", "setLiteralByQueueIdAsync"), e3), this._checkItemIsValidFunction(this._infoParm("callbackFunction", "setLiteralByQueueIdAsync"), t3, true), this._setLiteralByIdAsync(e3).then(() => r2.default.executeCallback(this, "setLiteralByQueueIdAsync", t3, this)); + }); + } + setLiteralByQueueNameAsync(e3, t3) { + return n2.__awaiter(this, void 0, void 0, function* () { + return this._checkItemIsValidLiteralString(this._infoParm("queueName", "setLiteralByQueueNameAsync"), e3), this._checkItemIsValidFunction(this._infoParm("callbackFunction", "setLiteralByQueueNameAsync"), t3, true), this._setLiteralByValueAsync(e3).then(() => r2.default.executeCallback(this, "setLiteralByQueueNameAsync", t3, this)); + }); + } + } + t2.default = s; + }, 46056: (e2, t2, i2) => { + const n2 = i2(57731), r2 = {}; + function o(e3, t3) { + r2[e3] = this, r2[t3] = this, o.baseConstructor.apply(this, arguments); + } + n2.extend(o, "DialNameMatchStyle"), o.getInstance = function(e3) { + return r2[e3 || 0] || r2[0]; + }, o.WaitForUniqueMatch = new o(0, "WaitForUniqueMatch"), o.UseSpecificNumChars = new o(1, "UseSpecificNumChars"), e2.exports = o; + }, 46131: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = i2(30801), o = n2.__importDefault(i2(78432)), a = n2.__importDefault(i2(21345)), s = i2(35966); + class l extends a.default { + constructor(e3) { + super(e3), this._acceptJustStar = this.coreFactory.createArchWrapper(e3.acceptJustStar), this._acceptJustPound = this.coreFactory.createArchWrapper(e3.acceptJustPound), this._inputAudio = this.coreFactory.createArchWrapper(e3.prompts), this._interDigitTimeout = this.coreFactory.createArchWrapper(e3.interDigitTimeout), this._noEntryTimeout = this.coreFactory.createArchWrapper(e3.noEntryTimeout), this._numberOfDigitsMax = this.coreFactory.createArchWrapper(e3.numberOfDigitsMax), this._numberOfDigitsMin = this.coreFactory.createArchWrapper(e3.numberOfDigitsMin), this._resultData = this.coreFactory.createArchWrapper(e3.resultData), this._maxPossibleNumberOfDigits = e3.numberOfDigitsMax.options.max, this._minPossibleNumberOfDigits = e3.numberOfDigitsMin.options.min; + } + get _actionTypeId() { + return r2.collectInputActionType; + } + get displayTypeName() { + return this._scriptingName; + } + get inputAudio() { + return this._inputAudio; + } + get interDigitTimeout() { + return this._interDigitTimeout; + } + get isArchActionCollectInput() { + return true; + } + get noEntryTimeout() { + return this._noEntryTimeout; + } + setInputDataVariable(e3) { + this._checkItemIsValidLiteralStringOrArchVariableString(this._infoParm("inputDataVariable", "setInputDataVariable"), e3, false), this.valueVariableInputData.setVariable(e3); + } + setDigitsExact(e3) { + const t3 = this._infoParm("digitCount", "setDigitsExact"); + this._checkItemIsValidLiteralInt(t3, e3), this._checkItem(t3, e3 < this._minPossibleNumberOfDigits || e3 > this._maxPossibleNumberOfDigits, `the digit count '${e3}' must be greater than or equal to ${this._minPossibleNumberOfDigits} and less than or equal to ${this._maxPossibleNumberOfDigits}`), this._numberOfDigitsMax.setLiteralInt(e3), this._numberOfDigitsMin.setLiteralInt(e3), this.logNote("setting the exact digit range to " + e3 + " digit(s)."), this._coreActionViewModel.terminatingCharacter = void 0; + } + setDigitsRange(e3, t3, i3, n3) { + const r3 = this._infoParm("minDigitCount", "setDigitsRange"); + this._checkItemIsValidLiteralInt(r3, e3), this._checkItem(r3, e3 < this._minPossibleNumberOfDigits || e3 > this._maxPossibleNumberOfDigits, `the min digit count value '${e3}' must be greater than or equal to ${this._minPossibleNumberOfDigits} and less than or equal to ${this._maxPossibleNumberOfDigits}`); + const o2 = this._infoParm("maxDigitCount", "setDigitsRange"); + if (this._checkItemIsValidLiteralInt(o2, t3), this._checkItem(o2, t3 < this._minPossibleNumberOfDigits || t3 > this._maxPossibleNumberOfDigits, `the max digit count '${e3}' must be greater than or equal to ${this._minPossibleNumberOfDigits} and less than or equal to ${this._maxPossibleNumberOfDigits}`), this._checkItem(this._infoVal("minDigitCount < maxDigitCount", "setDigitsRange"), e3 > t3, `the min digit count value '${e3}' must be less than the max digit count value '${t3}' when setting a range`), this._checkItem(this._infoVal("minDigitCount === maxDigitCount", "setDigitsRange"), e3 === t3, `the min digit count value '${e3}' must be less than the max digit count value '${t3}' when setting a range. If you want an exact number of input digits, call setDigitsExact instead of setDigitsRange.`), n3 || this.isValidBool(n3)) { + const e4 = this._infoParm("includeTerminatingDtmfWithInputData", "setDigitsRange"); + this._checkItemIsValidLiteralBool(e4, n3, true), this._checkItem(e4, true === n3 && !i3, "includeTerminatingDtmfWithInputData can only be enabled when there is a terminating dtmf specified."); + } + let a2, s2; + const l2 = this._infoParm("terminatingDtmf", "setDigitsRange"); + i3 && (a2 = this._getCoreDigitForDtmf(l2, i3), s2 = this._getDtmfForCoreDigit(l2, a2)), this.logNote("setting the min number of digits to " + e3 + " and the max number of digits to " + t3), this._numberOfDigitsMax.setLiteralInt(t3), this._numberOfDigitsMin.setLiteralInt(e3), i3 && (this.logNote("setting the terminating dtmf to " + s2), this._coreActionViewModel.terminatingCharacter = a2), this.isValidBool(n3) && !this._coreActionViewModel.includeTerminatingDtmfInResultData.outOfService && (this.logNote(`setting core includeTerminatingDtmfWithInputData to ${n3}`), this._coreActionViewModel.includeTerminatingDtmfInResultData.setAsLiteral(n3.toString())); + } + get valueVariableInputData() { + return this._resultData; + } + get verificationAudio() { + return this.coreFactory.createArchWrapper(this._getCoreViewModel().verificationPrompts)._setNotWritableOverride(true); + } + get verificationType() { + if (!this._coreActionViewModel.verification) return o.default.INPUT_VERIFICATION_TYPES.none; + switch (this._coreActionViewModel.verificationType) { + case s.Numeric: + return o.default.INPUT_VERIFICATION_TYPES.numeric; + case s.UniqueDigits: + return o.default.INPUT_VERIFICATION_TYPES.individualDigits; + default: + this._logErrorInternalAndThrow("unknown verification type on core collect input action."); + } + } + set verificationType(e3) { + switch (this._checkItemIsValidLiteralStringEnum(this._infoPropSet("newVerificationTypeValue", "verificationType"), e3, o.default.INPUT_VERIFICATION_TYPES_ALL), this.logNote("setting the verification type to '" + e3 + "'."), e3) { + case o.default.INPUT_VERIFICATION_TYPES.none: + this._coreActionViewModel.verification = false, this._coreActionViewModel.verificationType = void 0; + break; + case o.default.INPUT_VERIFICATION_TYPES.numeric: + this._coreActionViewModel.verification = true, this._coreActionViewModel.verificationType = s.Numeric; + break; + case o.default.INPUT_VERIFICATION_TYPES.individualDigits: + this._coreActionViewModel.verification = true, this._coreActionViewModel.verificationType = s.UniqueDigits; + } + } + get acceptJustStar() { + return this._acceptJustStar; + } + get acceptJustPound() { + return this._acceptJustPound; + } + } + t2.default = l; + }, 46205: (e2, t2, i2) => { + const n2 = i2(92140), r2 = i2(13240), { callBotFlowActionType: o } = i2(30801), a = i2(90807), s = i2(7401); + function l() { + Object.defineProperties(this, { _exitReason: { writable: true }, _inputs: { writable: true }, _intent: { writable: true }, _outputs: { writable: true }, _inputText: { writable: true } }), this.flowId = void 0, this.flowName = void 0, this.flowVersion = void 0, this.flowLatestVersion = true, this.flowDebugPublished = false, l.baseConstructor.apply(this, arguments); + } + r2.extend(l, o, true), Object.defineProperties(l.prototype, { pasteReIdOrRename: { value: function(e3) { + l._super.pasteReIdOrRename.apply(this, arguments), n2.each(this.inputs, (t3) => { + t3.pasteReIdOrRename(e3); + }), n2.each(this.outputs, (t3) => { + t3.pasteReIdOrRename(e3); + }), this.intent.pasteReIdOrRename(e3), this.exitReason.pasteReIdOrRename(e3), this.inputText.pasteReIdOrRename(e3); + } }, pasteResolveOldToNewValues: { value: function(e3) { + l._super.pasteResolveOldToNewValues.apply(this, arguments), n2.each(this.inputs, (t3) => { + t3.pasteResolveOldToNewValues(e3); + }), n2.each(this.outputs, (t3) => { + t3.pasteResolveOldToNewValues(e3); + }), this.intent.pasteResolveOldToNewValues(e3), this.exitReason.pasteResolveOldToNewValues(e3), this.inputText.pasteResolveOldToNewValues(e3); + } }, exitReason: { enumerable: true, get: function() { + return this._exitReason; + }, set: function(e3) { + this._exitReason = this.reviveItem(e3, s); + } }, inputs: { enumerable: true, get: function() { + return this._inputs; + }, set: function(e3) { + this._inputs = this.reviveArray(e3, a); + } }, intent: { enumerable: true, get: function() { + return this._intent; + }, set: function(e3) { + this._intent = this.reviveItem(e3, s); + } }, outputs: { enumerable: true, get: function() { + return this._outputs; + }, set: function(e3) { + this._outputs = this.reviveArray(e3, a); + } }, inputText: { enumerable: true, get: function() { + return this._inputText; + }, set: function(e3) { + this._inputText = this.reviveItem(e3, s); + } } }), e2.exports = l; + }, 46209: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importDefault(i2(16468)), o = n2.__importDefault(i2(94225)), a = i2(79069); + class s extends r2.default { + constructor(e3) { + super(e3, a.skillManager), this._checkItemUndefinedOrNull(this._infoParmCtor("coreSkillValuePairs"), e3); + } + get _globalTypeName() { + return ""; + } + get displayTypeName() { + return "ArchBaseSkillValuePairs"; + } + _addNetworkModelToCollection(e3) { + const t3 = this._coreExpression, i3 = t3.createItem(void 0); + return e3 && i3.skill.updateFromConfigListManagerItem(e3), t3.addItem(i3), this.logNote("added skill value pair" + (e3 ? " " + this.getLogStrForItemInfo(e3) : "")), i3; + } + addLiteralBySkillIdAsync(e3, t3) { + return n2.__awaiter(this, void 0, void 0, function* () { + return this._checkItemIsValidLiteralString(this._infoParm("skillId", "addLiteralBySkillIdAsync"), e3), this._checkItemIsValidFunction(this._infoParm("callbackFunction", "addLiteralBySkillIdAsync"), t3, true), yield this._addLiteralByIdAsync(e3, "Skill"), o.default.executeCallback(this, "addLiteralBySkillIdAsync", t3, this); + }); + } + addLiteralBySkillNameAsync(e3, t3) { + return n2.__awaiter(this, void 0, void 0, function* () { + return this._checkItemIsValidLiteralString(this._infoParm("skillName", "addLiteralBySkillNameAsync"), e3), this._checkItemIsValidFunction(this._infoParm("callbackFunction", "addLiteralBySkillNameAsync"), t3, true), yield this._addLiteralByValueAsync(e3, "Skill"), o.default.executeCallback(this, "addLiteralBySkillNameAsync", t3, this); + }); + } + addSkill(e3) { + this._checkItemIsValidLiteralString(this._infoParm("skillExpressonText", "addSkill"), e3, true); + const t3 = this._addNetworkModelToCollection(null), i3 = this.coreFactory.createArchWrapper(t3.skill); + return e3 && i3.setExpression(e3), i3; + } + get isArchBaseSkillValuePairs() { + return true; + } + } + t2.default = s; + }, 46210: (e2, t2, i2) => { + "use strict"; + var n2; + Object.defineProperty(t2, "__esModule", { value: true }); + const r2 = i2(31635), o = r2.__importDefault(i2(92140)), a = r2.__importDefault(i2(96481)), s = r2.__importDefault(i2(94225)), l = r2.__importDefault(i2(41510)), u = r2.__importDefault(i2(56549)), d = r2.__importDefault(i2(66978)); + class c extends a.default { + constructor(e3) { + super(e3), n2.set(this, void 0), r2.__classPrivateFieldSet(this, n2, this.coreFactory.createArchWrapper(e3.eventName), "f"); + } + get draftEnvironmentName() { + return l.default.dialogflow.draftEnvironmentName; + } + get integrationName() { + return this._getCoreViewModel().integrationName; + } + get environment() { + return this._getCoreViewModel().getEnvironmentName(); + } + get eventName() { + return r2.__classPrivateFieldGet(this, n2, "f"); + } + get isArchBaseActionDialogflow() { + return true; + } + get dialogflowOutputsFailure() { + return this._coreActionViewModel.errorBindings ? this.coreFactory.createArchWrapper(this._coreActionViewModel.errorBindings) : null; + } + _setDialogflowAgentByIdAsync(e3, t3, i3) { + return this._checkItemIsValidLiteralString(this._infoParm("agentId", "setDialogflowAgentByIdAsync"), e3, false), this._checkItemIsValidFunction(this._infoParm("callbackFunction", "setDialogflowAgentByIdAsync"), i3, true), u.default.findItemByIdAsync(this._agentManager, e3, "dialogflow agent").then((n3) => { + if (this.logNote("Found the Dialogflow agent named '" + n3.name + "' for the agent ID of '" + e3 + "'"), this._getCoreViewModel().setBotRunnableByViewModel(n3), t3) { + const e4 = o.default.findWhere(n3.environments, { name: t3 }); + if (!e4) throw `There is no environment with the name '${t3}' for agent '${n3.name}'`; + this._coreActionViewModel.setEnvironment(e4); + } + return s.default.executeCallback(this, "setDialogflowAgentByIdAsync", i3, this); + }); + } + setDialogflowAgentByIdAsync(e3, t3) { + return this._checkItemIsValidLiteralString(this._infoParm("dialogflowAgentId", "setDialogflowAgentByIdAsync"), e3, false), this._checkItemIsValidFunction(this._infoParm("callbackFunction", "setDialogflowAgentByIdAsync"), t3, true), this._setDialogflowAgentByIdAsync(e3, null, t3); + } + setDialogflowAgentByNameAsync(e3, t3, i3, n3) { + return r2.__awaiter(this, void 0, void 0, function* () { + this._checkItemIsValidLiteralString(this._infoParm("agentName", "setDialogflowAgentByNameAsync"), e3), this._checkItemIsValidLiteralString(this._infoParm("projectId", "setDialogflowAgentByNameAsync"), t3, true), this._checkItemIsValidFunction(this._infoParm("callbackFunction", "setDialogflowAgentByNameAsync"), i3, true), this._checkItemIsValidLiteralString(this._infoParm("integrationName", "setDialogflowAgentByNameAsync"), n3, true); + const r3 = {}; + t3 && (r3.projectId = t3), n3 && (r3.integrationName = n3); + const a2 = yield u.default.findItemByValueAsync(this._agentManager, e3, "dialogflow bot", null, null, o.default.isEmpty(r3) ? null : r3); + return this.logNote(`Found partial info for the Dialogflow agent named '${a2.name}' for the passed agent name of '${e3}'. Getting full agent details.`), d.default.addPromise(this._setDialogflowAgentByIdAsync(a2.id, null, i3), "setDialogflowAgentByNameAsync"); + }); + } + setDialogflowAgentByIdWithEnvironmentAsync(e3, t3, i3) { + return this._checkItemIsValidLiteralString(this._infoParm("dialogflowAgentId", "setDialogflowAgentByIdWithEnvironmentAsync"), e3, false), this._checkItemIsValidLiteralString(this._infoParm("environmentName", "setDialogflowAgentByIdWithEnvironmentAsync"), t3, true), this._checkItemIsValidFunction(this._infoParm("callbackFunction", "setDialogflowAgentByIdWithEnvironmentAsync"), i3, true), this._setDialogflowAgentByIdAsync(e3, t3, i3); + } + setDialogflowAgentByNameWithEnvironmentAsync(e3, t3, i3, n3, a2) { + return r2.__awaiter(this, void 0, void 0, function* () { + this._checkItemIsValidLiteralString(this._infoParm("agentName", "setDialogflowAgentByNameWithEnvironmentAsync"), e3), this._checkItemIsValidLiteralString(this._infoParm("environmentName", "setDialogflowAgentByNameWithEnvironmentAsync"), t3, true), this._checkItemIsValidLiteralString(this._infoParm("projectId", "setDialogflowAgentByNameWithEnvironmentAsync"), i3, true), this._checkItemIsValidFunction(this._infoParm("callbackFunction", "setDialogflowAgentByNameWithEnvironmentAsync"), n3, true), this._checkItemIsValidLiteralString(this._infoParm("integrationName", "setDialogflowAgentByNameWithEnvironmentAsync"), a2, true); + const r3 = {}; + i3 && (r3.projectId = i3), a2 && (r3.integrationName = a2); + const s2 = yield u.default.findItemByValueAsync(this._agentManager, e3, "dialogflow bot", null, null, o.default.isEmpty(r3) ? null : r3); + return this.logNote(`Found partial info for the Dialogflow agent named '${s2.name}' for the passed agent name of '${e3}'. Getting full agent details.`), d.default.addPromise(this._setDialogflowAgentByIdAsync(s2.id, t3, n3), "setDialogflowAgentByNameWithEnvironmentAsync"); + }); + } + get _sessionVariableOutputs() { + const e3 = this._getCoreViewModel().outputSessionVariables; + if (e3) return this.coreFactory.createArchBaseValueContainer(e3); + } + _addSessionVariableOutputNameValuePair(e3, t3) { + return this._checkItemIsValidLiteralString(this._infoParm("nameLiteral", "addSessionVariableOutputNameValuePair"), e3, true), this._checkItemIsValidLiteralStringOrArchVariableString(this._infoParm("outputVariable", "addSessionVariableOutputNameValuePair"), t3, true), this._sessionVariableOutputs._addNameValueAssignment(e3, t3, true, true); + } + } + n2 = /* @__PURE__ */ new WeakMap(), t2.default = c; + }, 46292: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importDefault(i2(78641)), o = n2.__importDefault(i2(66978)), a = n2.__importDefault(i2(41714)), s = n2.__importDefault(i2(98717)), l = n2.__importDefault(i2(72203)), u = n2.__importDefault(i2(56549)), d = { archAsyncPolling: r2.default, archAsyncTracker: o.default, archCoreService: a.default, archLogging: s.default, archNetworkValueCache: l.default, archNetworkValueRetrieval: u.default }; + t2.default = d; + }, 46377: (e2) => { + e2.exports = { askCommon: { invalidInputReceived: "\u092F\u0939 \u092E\u093E\u0928\u094D\u092F \u0928\u0939\u0940\u0902 \u0939\u0948.", noInputReceived: "\u092E\u0941\u091D\u0947 \u0915\u094B\u0908 \u0907\u0928\u092A\u0941\u091F \u0928\u0939\u0940\u0902 \u092E\u093F\u0932\u093E \u0939\u0948." }, askForBoolean: { noInput: '\u0905\u0917\u0930 \u0906\u092A \u0906\u0917\u0947 \u092C\u0922\u093C\u0928\u093E \u091A\u093E\u0939\u0924\u0947 \u0939\u0948\u0902 \u0924\u094B "\u0939\u093E\u0902" \u0915\u0939\u0947\u0902 \u092F\u093E \u0905\u0917\u0930 \u0928\u0939\u0940\u0902 \u091A\u093E\u0939\u0924\u0947 \u0939\u0948\u0902 \u0924\u094B "\u0928\u0939\u0940\u0902" \u0915\u0939\u0947\u0902.', noMatch: '\u0915\u0943\u092A\u092F\u093E "\u0939\u093E\u0902" \u092F\u093E "\u0928\u0939\u0940\u0902" \u0915\u0939\u0947\u0902. \u0915\u094D\u092F\u093E \u0906\u092A \u0906\u0917\u0947 \u092C\u0922\u093C\u0928\u093E \u091A\u093E\u0939\u0924\u0947 \u0939\u0948\u0902?', question: "\u0915\u094D\u092F\u093E \u0906\u092A \u0906\u0917\u0947 \u092C\u0922\u093C\u0928\u093E \u091A\u093E\u0939\u0924\u0947 \u0939\u0948\u0902?", noInputDigitalBot: '\u0905\u0917\u0930 \u0906\u092A \u0906\u0917\u0947 \u092C\u0922\u093C\u0928\u093E \u091A\u093E\u0939\u0924\u0947 \u0939\u0948\u0902 \u0924\u094B "\u0939\u093E\u0902" \u0907\u0928\u092A\u0941\u091F \u0915\u0930\u0947\u0902 \u092F\u093E \u0905\u0917\u0930 \u0928\u0939\u0940\u0902 \u091A\u093E\u0939\u0924\u0947 \u0939\u0948\u0902 \u0924\u094B "\u0928\u0939\u0940\u0902" \u0907\u0928\u092A\u0941\u091F \u0915\u0930\u0947\u0902.', noMatchDigitalBot: '\u0915\u0943\u092A\u092F\u093E "\u0939\u093E\u0902" \u092F\u093E "\u0928\u0939\u0940\u0902" \u0907\u0928\u092A\u0941\u091F \u0915\u0930\u0947\u0902. \u0915\u094D\u092F\u093E \u0906\u092A \u0906\u0917\u0947 \u092C\u0922\u093C\u0928\u093E \u091A\u093E\u0939\u0924\u0947 \u0939\u0948\u0902?' }, askForIntent: { noInput: '\u092C\u0938 \u090F\u0915 \u091B\u094B\u091F\u093E \u0938\u093E \u0935\u093E\u0915\u094D\u092F \u092C\u094B\u0932\u0947\u0902 \u091C\u094B \u0906\u092A\u0915\u0940 \u0915\u094D\u0935\u0947\u0930\u0940 \u0915\u0947 \u092C\u093E\u0930\u0947 \u092E\u0947\u0902 \u092C\u0924\u093E\u0924\u093E \u0939\u0948. \u0909\u0926\u093E\u0939\u0930\u0923 \u0915\u0947 \u0932\u093F\u090F, "\u092E\u0947\u0930\u093E \u0905\u0915\u093E\u0909\u0902\u091F \u092C\u0948\u0932\u0947\u0902\u0938 \u091A\u0947\u0915 \u0915\u0930\u0947\u0902"', noMatch: "\u092E\u0941\u091D\u0947 \u092B\u093F\u0930 \u0938\u0947 \u092C\u0924\u093E\u090F\u0902 \u0915\u093F \u0906\u092A \u0915\u094D\u092F\u093E \u0915\u0930\u0928\u093E \u091A\u093E\u0939\u0947\u0902\u0917\u0947.", question: "\u0906\u092A \u0915\u094D\u092F\u093E \u0915\u0930\u0928\u093E \u091A\u093E\u0939\u0947\u0902\u0917\u0947?", noInputDigitalBot: '\u0915\u0943\u092A\u092F\u093E \u090F\u0915 \u091B\u094B\u091F\u093E \u0938\u093E \u0935\u093E\u0915\u094D\u092F \u0926\u0930\u094D\u091C \u0915\u0930\u0947\u0902 \u091C\u094B \u0906\u092A\u0915\u0940 \u0915\u094D\u0935\u0947\u0930\u0940 \u0915\u0947 \u092C\u093E\u0930\u0947 \u092E\u0947\u0902 \u092C\u0924\u093E\u0924\u093E \u0939\u0948. \u0909\u0926\u093E\u0939\u0930\u0923 \u0915\u0947 \u0932\u093F\u090F, "\u092E\u0947\u0930\u093E \u0905\u0915\u093E\u0909\u0902\u091F \u092C\u0948\u0932\u0947\u0902\u0938 \u091A\u0947\u0915 \u0915\u0930\u0947\u0902"' }, askForSlot: { askFor: "%1$s \u0915\u0947 \u0932\u093F\u090F \u092A\u0942\u091B\u0947\u0902", noInput: "\u0915\u0943\u092A\u092F\u093E (\u0915\u0943\u092A\u092F\u093E \u092F\u0939\u093E\u0902 \u0905\u092A\u0928\u093E \u0938\u094D\u0932\u0949\u091F \u0928\u093E\u092E \u0921\u093E\u0932\u0947\u0902) \u092C\u094B\u0932\u0947\u0902 \u092F\u093E \u0926\u0930\u094D\u091C \u0915\u0930\u0947\u0902.", noInputWithSlot: "\u0915\u0943\u092A\u092F\u093E %1$s \u092C\u094B\u0932\u0947\u0902 \u092F\u093E \u0926\u0930\u094D\u091C \u0915\u0930\u0947\u0902.", noMatch: "\u0915\u0943\u092A\u092F\u093E \u092E\u0941\u091D\u0947 (\u0915\u0943\u092A\u092F\u093E \u092F\u0939\u093E\u0902 \u0905\u092A\u0928\u093E \u0938\u094D\u0932\u0949\u091F \u0928\u093E\u092E \u0921\u093E\u0932\u0947\u0902) \u092B\u093F\u0930 \u0938\u0947 \u0926\u0947\u0902.", noMatchWithSlot: "\u0915\u0943\u092A\u092F\u093E \u092E\u0941\u091D\u0947 %1$s \u092B\u093F\u0930 \u0938\u0947 \u0926\u0947\u0902.", question: "(\u0915\u0943\u092A\u092F\u093E \u092F\u0939\u093E\u0902 \u0905\u092A\u0928\u093E \u0938\u094D\u0932\u0949\u091F \u0928\u093E\u092E \u0921\u093E\u0932\u0947\u0902) \u0915\u094D\u092F\u093E \u0939\u0948?", questionWithSlot: "%1$s \u0915\u094D\u092F\u093E \u0939\u0948?", pleaseEnterSlotNameHere: "(\u0915\u0943\u092A\u092F\u093E \u092F\u0939\u093E\u0902 \u0905\u092A\u0928\u093E \u0938\u094D\u0932\u0949\u091F \u0928\u093E\u092E \u0921\u093E\u0932\u0947\u0902)", noInputDigitalBot: "\u0915\u0943\u092A\u092F\u093E (\u0915\u0943\u092A\u092F\u093E \u092F\u0939\u093E\u0902 \u0905\u092A\u0928\u093E \u0938\u094D\u0932\u0949\u091F \u0928\u093E\u092E \u0921\u093E\u0932\u0947\u0902) \u0926\u0930\u094D\u091C \u0915\u0930\u0947\u0902.", noInputWithSlotDigitalBot: "\u0915\u0943\u092A\u092F\u093E %1$s \u0926\u0930\u094D\u091C \u0915\u0930\u0947\u0902.", continuationPromptWithSlot: "\u092E\u0941\u091D\u0947 \u0905\u092C \u0924\u0915 {{Slot.%1$s}} \u092E\u093F\u0932\u093E \u0939\u0948, \u0915\u0943\u092A\u092F\u093E \u091C\u093E\u0930\u0940 \u0930\u0916\u0947\u0902." }, askForNextSlot: { noInput: '\u0905\u0917\u0930 \u0906\u092A\u0915\u0940 \u0915\u094B\u0908 \u0914\u0930 \u0915\u094D\u0935\u0947\u0930\u0940 \u0939\u0948 \u0924\u094B "\u0939\u093E\u0902" \u0915\u0939\u0947\u0902 \u092F\u093E \u0915\u0949\u0932 \u0916\u0924\u094D\u092E \u0915\u0930\u0928\u0947 \u0915\u0947 \u0932\u093F\u090F "\u0928\u0939\u0940\u0902" \u0915\u0939\u0947\u0902.', noMatch: '\u0905\u0917\u0930 \u0906\u092A\u0915\u0940 \u0915\u094B\u0908 \u0914\u0930 \u0915\u094D\u0935\u0947\u0930\u0940 \u0939\u0948 \u0924\u094B "\u0939\u093E\u0902" \u0915\u0939\u0947\u0902 \u092F\u093E \u0938\u0947\u0936\u0928 \u0916\u0924\u094D\u092E \u0915\u0930\u0928\u0947 \u0915\u0947 \u0932\u093F\u090F "\u0928\u0939\u0940\u0902" \u0915\u0939\u0947\u0902.', question: "\u0915\u094D\u092F\u093E \u0906\u092A\u0915\u094B \u0915\u093F\u0938\u0940 \u0914\u0930 \u091A\u0940\u091C\u093C \u092E\u0947\u0902 \u092E\u0947\u0930\u0940 \u092E\u0926\u0926 \u091A\u093E\u0939\u093F\u090F?", noInputDigitalBot: '\u0905\u0917\u0930 \u0906\u092A\u0915\u0940 \u0915\u094B\u0908 \u0914\u0930 \u0915\u094D\u0935\u0947\u0930\u0940 \u0939\u0948 \u0924\u094B "\u0939\u093E\u0902" \u0907\u0928\u092A\u0941\u091F \u0915\u0930\u0947\u0902 \u092F\u093E \u0938\u0947\u0936\u0928 \u0916\u0924\u094D\u092E \u0915\u0930\u0928\u0947 \u0915\u0947 \u0932\u093F\u090F "\u0928\u0939\u0940\u0902" \u0907\u0928\u092A\u0941\u091F \u0915\u0930\u0947\u0902.', noMatchDigitalBot: '\u0905\u0917\u0930 \u0906\u092A\u0915\u0940 \u0915\u094B\u0908 \u0914\u0930 \u0915\u094D\u0935\u0947\u0930\u0940 \u0939\u0948 \u0924\u094B "\u0939\u093E\u0902" \u0907\u0928\u092A\u0941\u091F \u0915\u0930\u0947\u0902 \u092F\u093E \u0938\u0947\u0936\u0928 \u0916\u0924\u094D\u092E \u0915\u0930\u0928\u0947 \u0915\u0947 \u0932\u093F\u090F "\u0928\u0939\u0940\u0902" \u0907\u0928\u092A\u0941\u091F \u0915\u0930\u0947\u0902.' }, askForPayment: { noInputDigitalBot: "\u0915\u0943\u092A\u092F\u093E \u091C\u093E\u0930\u0940 \u0930\u0916\u0928\u0947 \u0915\u0947 \u0932\u093F\u090F \u0905\u092A\u0928\u0940 \u092D\u0941\u0917\u0924\u093E\u0928 \u091C\u093E\u0928\u0915\u093E\u0930\u0940 \u092A\u094D\u0930\u0926\u093E\u0928 \u0915\u0930\u0947\u0902\u0964", noMatchDigitalBot: "\u092E\u0941\u091D\u0947 \u0906\u092A\u0915\u093E \u091C\u0935\u093E\u092C \u0938\u092E\u091D \u0928\u0939\u0940\u0902 \u0906\u092F\u093E\u0964 \u0915\u0943\u092A\u092F\u093E \u092B\u093F\u0930 \u0938\u0947 \u0915\u094B\u0936\u093F\u0936 \u0915\u0930\u0947\u0902\u0964" }, askForAuthentication: { noInputDigitalBot: "\u0915\u0943\u092A\u092F\u093E \u091C\u093E\u0930\u0940 \u0930\u0916\u0928\u0947 \u0915\u0947 \u0932\u093F\u090F \u0905\u092A\u0928\u0940 \u092A\u094D\u0930\u092E\u093E\u0923\u0940\u0915\u0930\u0923 \u091C\u093E\u0928\u0915\u093E\u0930\u0940 \u092A\u094D\u0930\u0926\u093E\u0928 \u0915\u0930\u0947\u0902\u0964", noMatchDigitalBot: "\u092E\u0941\u091D\u0947 \u0906\u092A\u0915\u093E \u091C\u0935\u093E\u092C \u0938\u092E\u091D \u0928\u0939\u0940\u0902 \u0906\u092F\u093E\u0964 \u0915\u0943\u092A\u092F\u093E \u092B\u093F\u0930 \u0938\u0947 \u0915\u094B\u0936\u093F\u0936 \u0915\u0930\u0947\u0902\u0964" }, askSurveyQuestion: { notApplicable: "\u0932\u093E\u0917\u0942 \u0928\u0939\u0940\u0902", surveyAnswerOptionSequence: "'%2$s' \u0915\u0947 \u0932\u093F\u090F %1$s \u0926\u092C\u093E\u090F\u0902.", surveyAnswerNotApplicableSequence: "\u0932\u093E\u0917\u0942 \u0928\u0939\u0940\u0902 \u0915\u0947 \u0932\u093F\u090F \u0938\u094D\u091F\u093E\u0930 \u0926\u092C\u093E\u090F\u0902.", surveyAnswerNotApplicableWithQuestionSequence: "%1$s. \u0932\u093E\u0917\u0942 \u0928\u0939\u0940\u0902 \u0915\u0947 \u0932\u093F\u090F \u0938\u094D\u091F\u093E\u0930 \u0926\u092C\u093E\u090F\u0902.", voiceSurveyNoInputText: "\u0915\u0943\u092A\u092F\u093E \u0938\u0935\u093E\u0932 \u0915\u093E \u091C\u0935\u093E\u092C \u0926\u0947\u0902.", voiceSurveyNoMatchText: "\u092E\u0941\u091D\u0947 \u0906\u092A\u0915\u0940 \u092C\u093E\u0924 \u0938\u092E\u091D \u0928\u0939\u0940\u0902 \u0906\u0908." }, commonModule: { exitCommonModule: "\u0938\u093E\u092E\u093E\u0928\u094D\u092F \u092E\u0949\u0921\u094D\u092F\u0942\u0932 \u0938\u0947 \u092C\u093E\u0939\u0930 \u0928\u093F\u0915\u0932\u0947\u0902" }, form: { noInputDigitalBot: "\u0915\u0943\u092A\u092F\u093E \u091C\u093E\u0930\u0940 \u0930\u0916\u0928\u0947 \u0915\u0947 \u0932\u093F\u090F \u092B\u093C\u0949\u0930\u094D\u092E \u092D\u0930\u0947\u0902\u0964", noMatchDigitalBot: "\u0915\u0943\u092A\u092F\u093E \u091C\u093E\u0930\u0940 \u0930\u0916\u0928\u0947 \u0915\u0947 \u0932\u093F\u090F \u092B\u093C\u0949\u0930\u094D\u092E \u092D\u0930\u0947\u0902\u0964" }, messagingTemplate: { noInputDigitalBot: "\u0915\u0943\u092A\u092F\u093E \u0909\u092A\u0932\u092C\u094D\u0927 \u0935\u093F\u0915\u0932\u094D\u092A\u094B\u0902 \u092E\u0947\u0902 \u0938\u0947 \u090F\u0915 \u0915\u094B \u091A\u0941\u0928\u0947\u0902\u0964", noMatchDigitalBot: "\u0915\u0943\u092A\u092F\u093E \u0909\u092A\u0932\u092C\u094D\u0927 \u0935\u093F\u0915\u0932\u094D\u092A\u094B\u0902 \u092E\u0947\u0902 \u0938\u0947 \u090F\u0915 \u0915\u094B \u091A\u0941\u0928\u0947\u0902\u0964." }, knowledgeSettings: { knowledgeAnswerHighlightFlowProgressionDefault: "\u091C\u093E\u0930\u0940 \u0930\u0916\u0947\u0902", knowledgeAnswerHighlightFullArticleDefault: "\u092A\u0942\u0930\u093E \u0906\u0930\u094D\u091F\u093F\u0915\u0932 \u0926\u0947\u0916\u0947\u0902", knowledgeInitialResponseMulti: "\u092E\u0941\u091D\u0947 \u0906\u092A\u0915\u093E \u0932\u0915\u094D\u0937\u094D\u092F \u0938\u092E\u091D\u093E\u0928\u0947 \u0915\u0947 \u0932\u093F\u090F, \u0915\u0943\u092A\u092F\u093E \u0928\u093F\u092E\u094D\u0928\u0932\u093F\u0916\u093F\u0924 \u0938\u0942\u091A\u0940 \u092E\u0947\u0902 \u0938\u0947 \u090F\u0915 \u0928\u0902\u092C\u0930 \u091A\u0941\u0928\u0947\u0902:", knowledgeInitialResponseMultiRetry: "\u0915\u0943\u092A\u092F\u093E \u090F\u0915 \u0928\u0902\u092C\u0930 \u091A\u0941\u0928\u0947\u0902, \u0909\u0926\u093E\u0939\u0930\u0923 \u0915\u0947 \u0932\u093F\u090F '1'.\n\u092F\u0939\u093E\u0902 \u0935\u093F\u0915\u0932\u094D\u092A\u094B\u0902 \u0915\u0940 \u0938\u0942\u091A\u0940 \u092B\u093F\u0930 \u0938\u0947 \u0926\u0940 \u0917\u0908 \u0939\u0948:", knowledgeNoMatch: "\u0907\u0928\u092E\u0947\u0902 \u0938\u0947 \u0915\u094B\u0908 \u0928\u0939\u0940\u0902", knowledgeConfirmation: "\u0915\u094D\u092F\u093E \u0907\u0938\u0938\u0947 \u0906\u092A\u0915\u0947 \u0938\u0935\u093E\u0932 \u0915\u093E \u091C\u0935\u093E\u092C \u092E\u093F\u0932 \u0917\u092F\u093E?", knowledgeFollowup: "\u092E\u0941\u091D\u0947 \u0909\u092E\u094D\u092E\u0940\u0926 \u0939\u0948 \u0915\u093F \u092E\u0948\u0902\u0928\u0947 \u0906\u092A\u0915\u0947 \u0938\u0935\u093E\u0932 \u0915\u093E \u091C\u0935\u093E\u092C \u0926\u0947 \u0926\u093F\u092F\u093E \u0939\u0948. \u0906\u092A \u0914\u0930 \u0915\u0941\u091B \u092D\u0940 \u092A\u0942\u091B \u0938\u0915\u0924\u0947 \u0939\u0948\u0902 \u091C\u094B \u0906\u092A \u091C\u093E\u0928\u0928\u093E \u091A\u093E\u0939\u0924\u0947 \u0939\u0948\u0902." }, noOverlay: { intent: { intentConfirmationStr1: "\u092E\u0941\u091D\u0947 \u0932\u0917\u0924\u093E \u0939\u0948 \u0915\u093F \u0906\u092A\u0915\u094B \u092F\u0939 \u091A\u093E\u0939\u093F\u090F", intentConfirmationStr2: "\u0915\u094D\u092F\u093E \u092F\u0939 \u0938\u0939\u0940 \u0939\u0948?" }, youSaid: { youSaidConfirmationStr1: "\u0906\u092A\u0928\u0947 \u0915\u0939\u093E \u0925\u093E", youSaidConfirmationStr2: "\u0915\u094D\u092F\u093E \u092F\u0939 \u0938\u0939\u0940 \u0939\u0948?", youSaidConfirmationStr1DigitalBot: "\u0906\u092A\u0928\u0947 \u0926\u0930\u094D\u091C \u0915\u093F\u092F\u093E \u0939\u0948" }, noInput: { noInputStr1: "\u0915\u0943\u092A\u092F\u093E \u092C\u094B\u0932\u0947\u0902 \u092F\u093E \u0926\u0930\u094D\u091C \u0915\u0930\u0947\u0902", noInputStr1DigitalBot: "\u0915\u0943\u092A\u092F\u093E \u0926\u0930\u094D\u091C \u0915\u0930\u0947\u0902" }, noMatch: { noMatchStr1: "\u0915\u0943\u092A\u092F\u093E \u092E\u0941\u091D\u0947 \u0926\u0947\u0902" }, whatIs: { whatIsQuestionStr1: "\u0915\u094D\u092F\u093E \u0939\u0948", whatIsQuestionStr2: "?" }, iGotContinuation: { iGotContinuationStr1: "\u092E\u0941\u091D\u0947 \u092E\u093F\u0932 \u0917\u092F\u093E", iGotContinuationStr2: "\u0905\u092C \u0924\u0915, \u0915\u0943\u092A\u092F\u093E \u091C\u093E\u0930\u0940 \u0930\u0916\u0947\u0902." } }, defaultCallFlowOne: "\u0921\u093F\u092B\u093C\u0949\u0932\u094D\u091F \u0915\u0949\u0932 \u092B\u093C\u094D\u0932\u094B", errorHandlingAgentEscalationConfirmation: "\u0906\u092A \u0915\u093F\u0938\u0940 \u0938\u0932\u093E\u0939\u0915\u093E\u0930 \u0938\u0947 \u092C\u093E\u0924 \u0915\u0930\u0928\u093E \u091A\u093E\u0939\u0924\u0947 \u0939\u0948\u0902. \u0915\u094D\u092F\u093E \u092F\u0939 \u0938\u0939\u0940 \u0939\u0948?", errorHandlingAgentEscalationHandover: "\u0915\u0943\u092A\u092F\u093E \u0915\u0941\u091B \u0926\u0947\u0930 \u0930\u0941\u0915\u0947\u0902 \u0914\u0930 \u092E\u0948\u0902 \u0906\u092A\u0915\u0940 \u092C\u093E\u0924 \u0915\u093F\u0938\u0940 \u0914\u0930 \u0938\u0947 \u0915\u0930\u0935\u093E\u0924\u093E/\u0915\u0930\u0935\u093E\u0924\u0940 \u0939\u0942\u0901.", errorHandlingErrorEventHandover: "\u092E\u093E\u092B\u093C \u0915\u0930\u0947\u0902, \u0915\u094B\u0908 \u0917\u0921\u093C\u092C\u0921\u093C\u0940 \u0939\u0941\u0908. \u0915\u0943\u092A\u092F\u093E \u0915\u0941\u091B \u0926\u0947\u0930 \u0930\u0941\u0915\u0947\u0902 \u0914\u0930 \u092E\u0948\u0902 \u0906\u092A\u0915\u0940 \u092C\u093E\u0924 \u0915\u093F\u0938\u0940 \u0914\u0930 \u0938\u0947 \u0915\u0930\u0935\u093E\u0924\u0940/\u0915\u0930\u0935\u093E\u0924\u093E \u0939\u0942\u0901, \u091C\u094B \u0906\u092A\u0915\u0940 \u092E\u0926\u0926 \u0915\u0930 \u0938\u0915\u0947.", errorHandlingErrorEventHandoverVoiceSurvey: "\u092E\u093E\u092B\u093C \u0915\u0930\u0947\u0902, \u0915\u094B\u0908 \u0917\u0921\u093C\u092C\u0921\u093C\u0940 \u0939\u0941\u0908. \u0905\u0932\u0935\u093F\u0926\u093E.", errorHandlingRecognitionEventHandover: "\u092E\u093E\u092B\u093C \u0915\u0930\u0947\u0902, \u092E\u0941\u091D\u0947 \u0906\u092A\u0915\u093E \u092C\u093E\u0924 \u0920\u0940\u0915 \u0938\u0947 \u0938\u092E\u091D \u0928\u0939\u0940\u0902 \u0906 \u0930\u0939\u0940 \u0939\u0948. \u0915\u0943\u092A\u092F\u093E \u0915\u0941\u091B \u0926\u0947\u0930 \u0930\u0941\u0915\u0947\u0902 \u0914\u0930 \u092E\u0948\u0902 \u0906\u092A\u0915\u0940 \u092C\u093E\u0924 \u0915\u093F\u0938\u0940 \u0914\u0930 \u0938\u0947 \u0915\u0930\u0935\u093E\u0924\u0940/\u0915\u0930\u0935\u093E\u0924\u093E \u0939\u0942\u0901, \u091C\u094B \u0906\u092A\u0915\u0940 \u092E\u0926\u0926 \u0915\u0930 \u0938\u0915\u0947.", errorHandlingRecognitionEventHandoverVoiceSurvey: "\u092E\u093E\u092B\u093C \u0915\u0930\u0947\u0902, \u092E\u0941\u091D\u0947 \u0906\u092A\u0915\u0940 \u092C\u093E\u0924 \u0920\u0940\u0915 \u0938\u0947 \u0938\u092E\u091D \u0928\u0939\u0940\u0902 \u0906 \u0930\u0939\u0940 \u0939\u0948. \u0905\u0932\u0935\u093F\u0926\u093E.", errorHandlingTTS: "\u092E\u093E\u092B\u093C \u0915\u0930\u0947\u0902, \u0915\u094B\u0908 \u0917\u0921\u093C\u092C\u0921\u093C\u0940 \u0939\u0941\u0908. \u0915\u0943\u092A\u092F\u093E \u0905\u092A\u0928\u093E \u0915\u0949\u0932 \u092B\u093F\u0930 \u0938\u0947 \u0915\u0930\u0928\u0947 \u0915\u0940 \u0915\u094B\u0936\u093F\u0936 \u0915\u0930\u0947\u0902.", initialGreetingTTS: "\u0928\u092E\u0938\u094D\u0924\u0947, \u092F\u0939 \u0936\u0941\u0930\u0941\u0906\u0924\u0940 \u0905\u092D\u093F\u0935\u093E\u0926\u0928 \u0939\u0948.", initialState: "\u0936\u0941\u0930\u0941\u0906\u0924\u0940 \u0938\u094D\u0925\u093F\u0924\u093F", initialBotState: "\u0921\u093F\u092B\u093C\u0949\u0932\u094D\u091F \u092C\u0949\u091F", initialDigitalBotState: "\u0936\u0941\u0930\u0941\u0906\u0924\u0940 \u0905\u092D\u093F\u0935\u093E\u0926\u0928", initialSurveyBotState: "\u0938\u0930\u094D\u0935\u0947 \u092C\u0949\u091F", intentConfirmation: "\u092E\u0941\u091D\u0947 \u0932\u0917\u0924\u093E \u0939\u0948 \u0915\u093F \u0906\u092A %1$s \u0915\u0930\u0928\u093E \u091A\u093E\u0939\u0924\u0947 \u0939\u0948\u0902, \u0915\u094D\u092F\u093E \u092F\u0939 \u0938\u0939\u0940 \u0939\u0948?", mainMenu: "\u092E\u0941\u0916\u094D\u092F \u092E\u0947\u0928\u0942", mainMenuTTS: "\u0906\u092A \u092E\u0941\u0916\u094D\u092F \u092E\u0947\u0928\u0942 \u092A\u0930 \u0939\u0948\u0902, \u0921\u093F\u0938\u094D\u0915\u0928\u0947\u0915\u094D\u091F \u0915\u0930\u0928\u0947 \u0915\u0947 \u0932\u093F\u090F 9 \u0926\u092C\u093E\u090F\u0902", mainTask: "\u091F\u093E\u0938\u094D\u200D\u0915", settingsConfirmationNoInputApology: "\u092E\u093E\u092B\u093C \u0915\u0930\u0947\u0902, \u092E\u0941\u091D\u0947 \u0906\u092A\u0915\u0940 \u092C\u093E\u0924 \u0938\u0941\u0928\u093E\u0908 \u0928\u0939\u0940\u0902 \u0926\u0940. \u0915\u0943\u092A\u092F\u093E \u0939\u093E\u0902 \u092F\u093E \u0928\u0939\u0940\u0902 \u0915\u0939\u0947\u0902.", settingsConfirmationNoInputApologyDigitalBot: '\u092E\u093E\u092B\u093C \u0915\u0930\u0947\u0902, \u092E\u0941\u091D\u0947 \u0906\u092A\u0938\u0947 \u0915\u094B\u0908 \u0907\u0928\u092A\u0941\u091F \u0928\u0939\u0940\u0902 \u092E\u093F\u0932\u093E. \u0915\u0943\u092A\u092F\u093E "\u0939\u093E\u0902" \u092F\u093E "\u0928\u0939\u0940\u0902" \u0907\u0928\u092A\u0941\u091F \u0915\u0930\u0947\u0902.', settingsConfirmationNoMatchApology: "\u092E\u093E\u092B\u093C \u0915\u0930\u0947\u0902, \u0915\u0943\u092A\u092F\u093E \u0939\u093E\u0902 \u092F\u093E \u0928\u0939\u0940\u0902 \u0915\u0939\u0947\u0902.", settingsConfirmationNoMatchApologyDigitalBot: '\u092E\u093E\u092B\u093C \u0915\u0930\u0947\u0902, \u0915\u0943\u092A\u092F\u093E "\u0939\u093E\u0902" \u092F\u093E "\u0928\u0939\u0940\u0902" \u0907\u0928\u092A\u0941\u091F \u0915\u0930\u0947\u0902.', settingsNoInputApology: "\u092E\u093E\u092B\u093C \u0915\u0930\u0947\u0902, \u092E\u0941\u091D\u0947 \u0906\u092A\u0915\u0940 \u0906\u0935\u093E\u091C\u093C \u0938\u0941\u0928\u093E\u0908 \u0928\u0939\u0940\u0902 \u0926\u0940.", settingsNoInputApologyDigitalBot: "\u092E\u093E\u092B\u093C \u0915\u0930\u0947\u0902, \u092E\u0941\u091D\u0947 \u0906\u092A\u0938\u0947 \u0915\u094B\u0908 \u0907\u0928\u092A\u0941\u091F \u0928\u0939\u0940\u0902 \u092E\u093F\u0932\u093E.", settingsEndOfSessionMessageDigitalBot: "\u092E\u0941\u091D\u0947 \u0915\u0941\u091B \u0926\u0947\u0930 \u0938\u0947 \u0906\u092A\u0915\u0940 \u0915\u094B\u0908 \u092A\u094D\u0930\u0924\u093F\u0915\u094D\u0930\u093F\u092F\u093E \u0928\u0939\u0940\u0902 \u092E\u093F\u0932\u0940 \u0939\u0948, \u0907\u0938\u0932\u093F\u090F \u092E\u0948\u0902 \u0907\u0938 \u091A\u0948\u091F \u0915\u094B \u092C\u0902\u0926 \u0915\u0930 \u0930\u0939\u093E/\u0930\u0939\u0940 \u0939\u0942\u0901, \u0915\u0943\u092A\u092F\u093E \u092E\u0947\u0930\u0940 \u092E\u0926\u0926 \u0915\u0940 \u091C\u093C\u0930\u0942\u0930\u0924 \u092A\u0921\u093C\u0928\u0947 \u092A\u0930 \u0935\u093E\u092A\u0938 \u0906\u090F\u0902. \u0927\u0928\u094D\u092F\u0935\u093E\u0926.", settingsNoMatchApology: "\u092E\u093E\u092B\u093C \u0915\u0930\u0947\u0902.", settingsNoToConfirmationApology: "\u092E\u0947\u0930\u0940 \u0917\u0932\u0924\u0940 \u0939\u0948.", periodicStateName: "\u0906\u0935\u0930\u094D\u0924\u0940 \u0938\u094D\u0925\u093F\u0924\u093F" }; + }, 46387: (e2, t2, i2) => { + const n2 = i2(24171); + function r2() { + r2.baseConstructor.apply(this, arguments); + } + i2(22124).extend(r2, "LexBotList"), Object.defineProperties(r2.prototype, { entities: { enumerable: true, get: function() { + return this._entities; + }, set: function(e3) { + this._entities = this.reviveArray(e3, n2); + } } }), e2.exports = r2; + }, 46400: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = i2(80295), o = i2(80295), a = i2(19596); + class s extends a.DataContract { + constructor(e3) { + super(e3), (0, o.makeUnenumerable)(this, "_id"), (0, o.makeUnenumerable)(this, "_description"), (0, o.makeUnenumerable)(this, "_name"), (0, o.makeUnenumerable)(this, "_schema"); + } + get id() { + return this._id; + } + set id(e3) { + this._id = e3; + } + get name() { + return this._name; + } + set name(e3) { + this._name = e3; + } + get description() { + return this._description; + } + set description(e3) { + this._description = e3; + } + get required() { + return this._required; + } + set required(e3) { + this._required = e3; + } + get schema() { + return this._schema; + } + set schema(e3) { + this._schema = e3; + } + set schemas(e3) { + e3 && e3.table && (this._schema = e3.table); + } + get title() { + return this._title; + } + set title(e3) { + this._title = e3; + } + get minLength() { + return this._minLength; + } + set minLength(e3) { + this._minLength = e3; + } + get maxLength() { + return this._maxLength; + } + set maxLength(e3) { + this._maxLength = e3; + } + } + t2.default = s, n2.__decorate([(0, r2.enumerable)(true), n2.__metadata("design:type", String), n2.__metadata("design:paramtypes", [String])], s.prototype, "id", null), n2.__decorate([(0, r2.enumerable)(true), n2.__metadata("design:type", String), n2.__metadata("design:paramtypes", [String])], s.prototype, "name", null), n2.__decorate([(0, r2.enumerable)(true), n2.__metadata("design:type", String), n2.__metadata("design:paramtypes", [String])], s.prototype, "description", null), n2.__decorate([(0, r2.enumerable)(true), n2.__metadata("design:type", Array), n2.__metadata("design:paramtypes", [Array])], s.prototype, "required", null), n2.__decorate([(0, r2.enumerable)(true), n2.__metadata("design:type", Object), n2.__metadata("design:paramtypes", [Object])], s.prototype, "schema", null), n2.__decorate([(0, r2.enumerable)(false), n2.__metadata("design:type", Object), n2.__metadata("design:paramtypes", [Object])], s.prototype, "schemas", null); + }, 46421: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = i2(30801), o = i2(26847), a = n2.__importDefault(i2(90077)); + class s extends a.default { + constructor(e3) { + super(e3); + } + get _actionTypeId() { + return r2.askForBooleanActionType; + } + get displayTypeName() { + return this._scriptingName; + } + get isArchActionAskForBoolean() { + return true; + } + get outputMaxNoInputs() { + return this._getOutputById(o.outputIds.maxNoInputs, true); + } + get outputMaxNoMatches() { + return this._getOutputById(o.outputIds.maxNoMatches, true); + } + } + t2.default = s; + }, 46422: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(74369)); + class r2 extends n2.default { + constructor(e3, t3, i3) { + super(e3, t3, i3); + } + get displayTypeName() { + return "ArchFilterClausePropertyValueNotEquals"; + } + get isArchFilterClausePropertyValueNotEquals() { + return true; + } + _isMatch(e3) { + return !!super._isMatch(e3) && e3[this._propertyName] !== this._value; + } + } + t2.default = r2; + }, 46447: (e2, t2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.UserTokenViewModel = void 0, t2.UserTokenViewModel = class { + constructor(e3) { + this._model = e3; + } + get isTrusteeUser() { + return !(!this.homeOrganizationId || !this.organizationId) && this.homeOrganizationId !== this.organizationId; + } + get homeOrganizationId() { + return this._model.homeOrganization ? this._model.homeOrganization.id : null; + } + get homeOrganizationName() { + return this._model.homeOrganization ? this._model.homeOrganization.name : null; + } + get organizationId() { + return this._model.organization ? this._model.organization.id : null; + } + }; + }, 46498: (e2, t2, i2) => { + "use strict"; + var n2, r2, o, a; + Object.defineProperty(t2, "__esModule", { value: true }), t2.UpdateConversationAttributeActionModel = void 0; + const s = i2(31635), l = i2(70630), u = i2(80295), d = s.__importDefault(i2(7401)), c = i2(80295), p = i2(30801); + class _ extends l.BaseConversationAttributeActionModel { + constructor(e3) { + super(e3), this.__type = _.__type, (0, c.makeUnenumerable)(this, "_recordId"), (0, c.makeUnenumerable)(this, "_input"), (0, c.makeUnenumerable)(this, "_output"), (0, c.makeUnenumerable)(this, "_divisions"); + } + get recordId() { + return this._recordId; + } + set recordId(e3) { + this._recordId = this.reviveItem(e3, d.default); + } + get input() { + return this._input; + } + set input(e3) { + this._input = this.reviveItem(e3, d.default); + } + get output() { + return this._output; + } + set output(e3) { + this._output = this.reviveItem(e3, d.default); + } + get divisions() { + return this._divisions; + } + set divisions(e3) { + this._divisions = this.reviveItem(e3, d.default); + } + pasteReIdOrRename(e3) { + var t3, i3; + super.pasteReIdOrRename(e3), this.recordId.pasteReIdOrRename(e3), null === (t3 = this.input) || void 0 === t3 || t3.pasteReIdOrRename(e3), null === (i3 = this.output) || void 0 === i3 || i3.pasteReIdOrRename(e3), this.divisions.pasteReIdOrRename(e3); + } + pasteResolveOldToNewValues(e3) { + var t3, i3; + super.pasteResolveOldToNewValues(e3), this.recordId.pasteResolveOldToNewValues(e3), null === (t3 = this.input) || void 0 === t3 || t3.pasteResolveOldToNewValues(e3), null === (i3 = this.output) || void 0 === i3 || i3.pasteResolveOldToNewValues(e3), this.divisions.pasteResolveOldToNewValues(e3); + } + } + t2.UpdateConversationAttributeActionModel = _, _.__type = p.updateConversationAttributeActionType, s.__decorate([(0, u.enumerable)(true), s.__metadata("design:type", "function" == typeof (n2 = void 0 !== d.default && d.default) ? n2 : Object), s.__metadata("design:paramtypes", [Object])], _.prototype, "recordId", null), s.__decorate([(0, u.enumerable)(true), s.__metadata("design:type", "function" == typeof (r2 = void 0 !== d.default && d.default) ? r2 : Object), s.__metadata("design:paramtypes", [Object])], _.prototype, "input", null), s.__decorate([(0, u.enumerable)(true), s.__metadata("design:type", "function" == typeof (o = void 0 !== d.default && d.default) ? o : Object), s.__metadata("design:paramtypes", [Object])], _.prototype, "output", null), s.__decorate([(0, u.enumerable)(true), s.__metadata("design:type", "function" == typeof (a = void 0 !== d.default && d.default) ? a : Object), s.__metadata("design:paramtypes", [Object])], _.prototype, "divisions", null), _.registerType(); + }, 46503: (e2, t2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.toAudioTtsJson = function(e3) { + return { defaultAudio: { config: { ToAudioTTS: { pos: 1, text: 'ToAudioTTS("' + e3 + '")', operands: [{ lit: { pos: 12, text: e3, type: "str" } }], type: "aud" } }, text: 'ToAudioTTS("' + e3 + '")', uiMetaData: { sequenceItems: [{ type: 0, parameter: e3 }], customExpressionMode: false, optional: true } }, cases: [] }; + }; + }, 46521: (e2, t2, i2) => { + const n2 = i2(14592), r2 = i2(87675).default, { ParameterInfo: o } = i2(55909), { ParameterValidator: a } = i2(33951), s = i2(78234), l = i2(79042), u = i2(45421); + class d extends l { + constructor(e3, t3) { + super(t3), a.expectObject(e3, () => o.createConstructorParameter("ClipboardDependencyCustomDataTypeDefViewModel", "customDataTypeDefModel"), true), Object.defineProperties(this, { _dependencyCustomDataTypeDefModel: { writable: true } }), e3 && this.loadModel(e3); + } + static create(e3, t3) { + const i3 = new s({ id: e3.dataTypeId, dataTypeDef: u.cloneToRawJsonObject(e3) }); + return new d(i3, t3); + } + loadModel(e3) { + this._dependencyCustomDataTypeDefModel = e3; + } + get isClipboardDependencyCustomDataTypeDefViewModel() { + return true; + } + get dataTypeId() { + return this._dependencyCustomDataTypeDefModel ? this._dependencyCustomDataTypeDefModel.dataTypeDef._dataTypeDef.dataTypeId : void 0; + } + get dataTypeDef() { + return this._dependencyCustomDataTypeDefModel ? this._dependencyCustomDataTypeDefModel.dataTypeDef._dataTypeDef : void 0; + } + get logHeader() { + return "custom data type def - dataTypeDefId: " + this.dataTypeId; + } + get dependencyModel() { + return this._dependencyCustomDataTypeDefModel; + } + shouldPaste(e3) { + return true; + } + _performDestroy() { + try { + this._dependencyCustomDataTypeDefModel = void 0; + } catch (e3) { + this.logException(e3, "Exception encountered cleaning up clipboard content."); + } + } + _performPaste(e3) { + if (!this.dataTypeDef) return this.createClipboardResultFailurePasteGeneric("The custom data type definition was invalid."); + let t3 = this.createClipboardResultSuccess(); + const i3 = u.cloneToRawJsonObject(this.dataTypeDef); + this.pushLogHeader(this.logHeader); + try { + this.log("Processing custom data types for paste operation"); + const t4 = e3.destFlowViewModel?.definitions?.getDataTypeDefViewModelForCustomDataTypeId(this.dataTypeDef.dataTypeId); + if (t4) this.log(`Data type ${i3.dataTypeId} already exists in destination flow.`); + else { + const t5 = new r2(i3); + n2.createCustomExpressionTypesFromDataTypeDefs(e3.destFlowViewModel, [t5], true), this.log(`Added new custom data type: ${i3.dataTypeId}`); + } + this.log("Custom data type definition successfully processed."); + } catch (e4) { + t3 = this.createClipboardResultFailurePasteException(e4, "An error occurred during custom data type definition paste processing."); + } finally { + this.popLogHeader(), this.log("Processing clipboard dependency custom data type definition end."); + } + return t3; + } + } + e2.exports = d; + }, 46556: (e2, t2, i2) => { + var n2 = { "./cs-cz/expressions.js": [91516, 1516], "./de-de/expressions.js": [90641, 641], "./en-us/expressions.js": [20650], "./es-us/expressions.js": [31543, 1543], "./fr-ca/expressions.js": [95891, 5891], "./it-it/expressions.js": [68801, 8801], "./ja-jp/expressions.js": [9557, 1938], "./ko-kr/expressions.js": [4032, 4032], "./nb-no/expressions.js": [10876, 876], "./nl-nl/expressions.js": [36707, 6707], "./pl-pl/expressions.js": [23111, 3111], "./pt-br/expressions.js": [24199, 4199], "./ru-ru/expressions.js": [19189, 9189], "./sv-se/expressions.js": [96280, 6280], "./tr-tr/expressions.js": [94247, 4247], "./zh-cn/expressions.js": [7895, 276], "./zh-tw/expressions.js": [79711, 2092] }; + function r2(e3) { + if (!i2.o(n2, e3)) return Promise.resolve().then(() => { + var t4 = new Error("Cannot find module '" + e3 + "'"); + throw t4.code = "MODULE_NOT_FOUND", t4; + }); + var t3 = n2[e3], r3 = t3[0]; + return Promise.all(t3.slice(1).map(i2.e)).then(() => i2(r3)); + } + r2.keys = () => Object.keys(n2), r2.id = 46556, e2.exports = r2; + }, 46575: (e2, t2, i2) => { + const { builderCategoryIds: n2 } = i2(73062), r2 = i2(79904).default, o = i2(81818).default, a = i2(41568).default, s = i2(5532).default, { builderPartIds: l } = i2(69149), u = i2(42290).default, d = i2(16958), c = i2(73198).default, { expressionDataService: p } = i2(27491), _ = i2(76486).default, h = i2(22599).default, m = i2(22226), g = i2(81858), f = i2(98114).default, { flowTypes: T } = i2(96618), y = i2(80145).default, { globalTypes: S } = i2(14394), A = i2(61864).default, N = i2(96727).default, O = i2(47957), { defaultWithNoLabel: I } = i2(93631), { selectAndAddPrompt: v } = i2(93631), { markdown: C } = i2(93631), { selectAndAddText: b } = i2(93631), { allSupportedDigitalChannelTypes: E } = i2(75758); + e2.exports = { create: () => { + s.addBuilderPartDef(new u({ categoryIdentifierOrIdentifiers: n2.stringParsing, description: d.builderParts.string.lastFour.description, expressionDefs: [new _({ configureOptionsCallback: (e4) => e4.setDefaultToExpression(true).setIninTestingField("lastFourCharactersOfThisString"), expressionType: S.string, label: d.builderParts.string.lastFour.sourceString })], generators: { expressionGenerator: h.create().addFuncCall("If").addFuncCall("IsSet").addTokenReplacement(0).addFuncCallEnd().addFuncParameterSeparator().addFuncCall("Right").addTokenReplacement(0).addFuncParameterSeparator().addToken("4").addFuncCallEnd().addFuncParameterSeparator().addFuncCall("ToString").addTokenNotSet().addFuncCallEnd().addFuncCallEnd().verifySprintfStringAndInitialize("If(IsSet(%1$s), Right(%1$s, 4), ToString(NOT_SET))"), stringLiteralGenerator: h.create().addFuncCall("Right").addTokenReplacement(0).addFuncParameterSeparator().addToken("4").addFuncCallEnd().verifySprintfStringAndInitialize("Right(%1$s, 4)") }, id: l.string.lastFour, name: d.builderParts.string.lastFour.name, resultExpressionType: S.string, useStringLiteralProcessing: function(e4, t3, i3) { + return m.textIsExpressionStringLiteral(i3); + }, version: 1 })); + const e3 = new _({ configureOptionsCallback: (e4) => e4.setDefaultText(c.true).setIninTestingField("stringIgnoreCase"), expressionType: S.boolean, label: d.builderParts.string.ignoreCase.label }); + s.addBuilderPartDef(new u({ categoryIdentifierOrIdentifiers: [n2.stringParsing, n2.labelString], description: d.builderParts.string.contains.description, expressionDefs: [new _({ configureOptionsCallback: (e4) => e4.setDefaultToExpression(true).setIninTestingField("stringContainsTarget"), expressionType: S.string, label: d.builderParts.string.followingString }), new _({ configureOptionsCallback: (e4) => e4.setDefaultToExpression(true).setIninTestingField("stringContainsTest"), expressionType: S.string, label: d.builderParts.string.contains.testString }), e3], generators: { expressionGenerator: h.create().addFuncCall("If").addFuncCall("IsSet").addTokenReplacement(0).addFuncCallEnd().addOperatorAnd().addFuncCall("IsSet").addTokenReplacement(1).addFuncCallEnd().addFuncParameterSeparator().addFuncCall("Contains").addTokenReplacement(0).addFuncParameterSeparator().addTokenReplacement(1).addFuncParameterSeparator().addTokenReplacement(2).addFuncCallEnd().addFuncParameterSeparator().addTokenBooleanFalse().addFuncCallEnd().verifySprintfStringAndInitialize("If(IsSet(%1$s) And IsSet(%2$s), Contains(%1$s, %2$s, %3$s), false)") }, id: l.string.contains, name: d.builderParts.string.contains.name, resultExpressionType: S.boolean, version: 1 })), s.addBuilderPartDef(new u({ categoryIdentifierOrIdentifiers: [n2.stringParsing, n2.labelString], description: d.builderParts.string.endsWith.description, expressionDefs: [new _({ configureOptionsCallback: (e4) => e4.setDefaultToExpression(true).setIninTestingField("targetString"), expressionType: S.string, label: d.builderParts.string.followingString }), new _({ configureOptionsCallback: (e4) => e4.setDefaultToExpression(true).setIninTestingField("testString"), expressionType: S.string, label: d.builderParts.string.endsWith.testString }), e3], generators: { expressionGenerator: h.create().addFuncCall("If").addFuncCall("IsSet").addTokenReplacement(0).addFuncCallEnd().addOperatorAnd().addFuncCall("IsSet").addTokenReplacement(1).addFuncCallEnd().addFuncParameterSeparator().addFuncCall("Compare").addFuncCall("Right").addTokenReplacement(0).addFuncParameterSeparator().addFuncCall("Length").addTokenReplacement(1).addFuncCallEnd().addFuncCallEnd().addFuncParameterSeparator().addTokenReplacement(1).addFuncParameterSeparator().addTokenReplacement(2).addFuncCallEnd().addOperatorEquals().addToken("0").addFuncParameterSeparator().addTokenBooleanFalse().addFuncCallEnd().verifySprintfStringAndInitialize("If(IsSet(%1$s) And IsSet(%2$s), Compare(Right(%1$s, Length(%2$s)), %2$s, %3$s) == 0, false)") }, id: l.string.endsWith, name: d.builderParts.string.endsWith.name, resultExpressionType: S.boolean, version: 1 })), s.addBuilderPartDef(new u({ categoryIdentifierOrIdentifiers: [n2.stringParsing, n2.labelString], description: d.builderParts.string.startsWith.description, expressionDefs: [new _({ configureOptionsCallback: (e4) => e4.setDefaultToExpression(true).setIninTestingField("targetString"), expressionType: S.string, label: d.builderParts.string.followingString }), new _({ configureOptionsCallback: (e4) => e4.setDefaultToExpression(true).setIninTestingField("testString"), expressionType: S.string, label: d.builderParts.string.startsWith.testString }), e3], generators: { expressionGenerator: h.create().addFuncCall("If").addFuncCall("IsSet").addTokenReplacement(0).addFuncCallEnd().addOperatorAnd().addFuncCall("IsSet").addTokenReplacement(1).addFuncCallEnd().addFuncParameterSeparator().addFuncCall("Compare").addFuncCall("Left").addTokenReplacement(0).addFuncParameterSeparator().addFuncCall("Length").addTokenReplacement(1).addFuncCallEnd().addFuncCallEnd().addFuncParameterSeparator().addTokenReplacement(1).addFuncParameterSeparator().addTokenReplacement(2).addFuncCallEnd().addOperatorEquals().addToken("0").addFuncParameterSeparator().addTokenBooleanFalse().addFuncCallEnd().verifySprintfStringAndInitialize("If(IsSet(%1$s) And IsSet(%2$s), Compare(Left(%1$s, Length(%2$s)), %2$s, %3$s) == 0, false)") }, id: l.string.startsWith, name: d.builderParts.string.startsWith.name, resultExpressionType: S.boolean, version: 1 })), s.addBuilderPartDef(new u({ categoryIdentifierOrIdentifiers: [n2.toolbar, n2.labelString], description: d.builderParts.string.data.description, expressionDefs: [new _({ configureOptionsCallback: (e4) => e4.setAsVariableInput().setIninTestingField("dataToString"), expressionType: S.any, label: d.builderParts.string.data.name })], generators: { toDisplayStringGeneratorWithResolveSlot: h.create().addFuncCall("ToDisplayString").addFuncCall("ResolveSlot").addTokenReplacement(0).addFuncCallEnd().addFuncCallEnd().verifySprintfStringAndInitialize("ToDisplayString(ResolveSlot(%1$s))"), toDisplayStringGenerator: h.create().addFuncCall("ToDisplayString").addTokenReplacement(0).addFuncCallEnd().verifySprintfStringAndInitialize("ToDisplayString(%1$s)"), toStringGenerator: h.create().addFuncCall("ToString").addTokenReplacement(0).addFuncCallEnd().verifySprintfStringAndInitialize("ToString(%1$s)"), getExpressionGenerator: (e4, t3) => { + let i3, n3; + const r3 = e4.builderPartExpressions[0]; + if (r3?.isVariableMode) { + const t4 = r3.variables[Object.keys(r3.variables)[0]]; + n3 = p.expressionFuncOpsByOverloadId[y.any_ResolveSlot_any], t4?.isSlotVariable && n3?.isAvailableForFlowType(e4.parentFlowType) && (i3 = true); + } + return e4.parentFlow.definition.isAutomateOrCiceroFlowType ? i3 ? t3.toDisplayStringGeneratorWithResolveSlot : t3.toDisplayStringGenerator : t3.toStringGenerator; + } }, viewId: I, id: l.string.data, icon: A.database, name: d.builderParts.string.data.name, resultExpressionType: S.string, restrictToFlowTypeOrTypes: f.getFlowTypesThatSupportLanguages(), version: 1 })), s.addBuilderPartDef(new u({ categoryIdentifierOrIdentifiers: [n2.toolbar, n2.labelString], description: d.builderParts.string.expression.description, expressionDefs: [new _({ configureOptionsCallback: (e4) => e4.setAllowModeExpressionOnly(true).setIninTestingField("stringExpression"), expressionType: S.any, label: d.builderParts.string.expression.name })], generators: { toDisplayStringGenerator: h.create().addFuncCall("ToDisplayString").addTokenReplacement(0).addFuncCallEnd().verifySprintfStringAndInitialize("ToDisplayString(%1$s)"), toStringGenerator: h.create().addFuncCall("ToString").addTokenReplacement(0).addFuncCallEnd().verifySprintfStringAndInitialize("ToString(%1$s)"), getExpressionGenerator: (e4, t3) => e4.parentFlow.definition.isAutomateOrCiceroFlowType ? t3.toDisplayStringGenerator : t3.toStringGenerator }, viewId: I, id: l.string.expression, icon: A.expression, name: d.builderParts.string.expression.name, resultExpressionType: S.string, restrictToFlowTypeOrTypes: f.getFlowTypesThatSupportLanguages(), useStringLiteralProcessing: function(e4, t3, i3) { + return i3.length > 2 && m.textIsExpressionStringLiteral(i3); + }, version: 1 })), s.addBuilderPartDef(new u({ categoryIdentifierOrIdentifiers: n2.toolbar, description: d.builderParts.string.prompt.description, expressionDefs: [new _({ configureOptionsCallback: (e4) => e4.setIninTestingField("promptString"), expressionType: S.prompt, label: d.builderParts.string.prompt.name }), new _({ configureOptionsCallback: (e4) => e4.setIninTestingField("addPromptType").setDefaultText("text").setAllowModeLiteralOnly(true).facets.setTrim(true).setAllowableValues([{ id: "tts", displayString: O.editPrompt.ttsLabel }, { id: "text", displayString: O.editPrompt.textLabel }]), expressionType: S.string, label: d.builderParts.string.prompt.name })], generators: { promptTextGenerator: h.create().addFuncCall("GetPromptText").addTokenReplacement(0).addFuncCallEnd().verifySprintfStringAndInitialize("GetPromptText(%1$s)"), promptTtsGenerator: h.create().addFuncCall("GetPromptTextToSpeech").addTokenReplacement(0).addFuncCallEnd().verifySprintfStringAndInitialize("GetPromptTextToSpeech(%1$s)"), getExpressionGenerator: (e4, t3) => { + let i3; + try { + if (e4 && e4.builderPartExpressions && e4.builderPartExpressions.length > 1) switch (e4.builderPartExpressions[1].text) { + case "tts": + i3 = t3.promptTtsGenerator; + break; + case "text": + i3 = t3.promptTextGenerator; + } + } catch (e5) { + } + return i3 || t3.promptTextGenerator; + } }, viewId: v, id: l.string.prompt, icon: A.prompt, name: d.builderParts.string.prompt.name, resultExpressionType: S.string, version: 1 })), s.addBuilderPartDef(new u({ categoryIdentifierOrIdentifiers: n2.toolbar, description: d.builderParts.string.deflectionURL.description, expressionDefs: [new _({ configureOptionsCallback: (e4) => e4.setIninTestingField("addServiceType").setAllowModeLiteralOnly(true).setDefaultText("facebook").facets.setTrim(true).setAllowableValues(E), expressionType: S.string, label: d.builderParts.string.deflectionURL.serviceLabel }), new _({ configureOptionsCallback: (e4) => e4.setIninTestingField("addAccountId").setAsInput().facets.setMinLength(1).setTrim(true), expressionType: S.string, label: d.builderParts.string.deflectionURL.accountLabel })], generators: { facebookGenerator: h.create().addFuncCall("GetDeflectionURL").addToken('"facebook"').addFuncParameterSeparator().addTokenReplacement(1).addFuncCallEnd().verifySprintfStringAndInitialize('GetDeflectionURL("facebook", %2$s)'), whatsAppGenerator: h.create().addFuncCall("GetDeflectionURL").addToken('"whatsapp"').addFuncParameterSeparator().addTokenReplacement(1).addFuncCallEnd().verifySprintfStringAndInitialize('GetDeflectionURL("whatsapp", %2$s)'), getExpressionGenerator: (e4, t3) => { + switch (e4.builderPartExpressions[0].text) { + case "facebook": + return t3.facebookGenerator; + case "whatsapp": + return t3.whatsAppGenerator; + } + } }, viewId: b, id: l.string.deflectionURL, icon: A.deflectURL, name: d.builderParts.string.deflectionURL.name, resultExpressionType: S.string, restrictToFlowTypeOrTypes: [], version: 1 })), s.addBuilderPartDef(new u({ categoryIdentifierOrIdentifiers: [n2.toolbar, n2.labelString], description: d.builderParts.string.text.description, expressionDefs: [new _({ configureOptionsCallback: (e4) => { + e4.setAllowModeLiteralOnly().setBlankDeterminationShouldNotTrim(true).setBlankWarningText(O.facets.valueIsBlank).setIninTestingField("stringLiteral").facets.setWarnOnEmpty(true); + }, expressionType: S.string, label: d.builderParts.string.text.name })], generators: { expressionGenerator: N.singleTokenReplacementGenerator }, viewId: I, id: l.string.text, icon: A.string, name: d.builderParts.string.text.name, resultExpressionType: S.string, version: 1 })), s.addBuilderPartContainerDef(new r2({ categoryIdentifierOrIdentifiers: [n2.container, n2.labelString], description: d.builderParts.container.language.description, generators: { containerPartsGenerator: h.create().addFuncCall("Trim").addFuncCall("Append").addFuncCallParmGenerationBucket("append", true).addFuncCallEnd().addFuncCallEnd().verifySprintfStringAndInitialize("Trim(Append())").setAboutToAddGenerationCallback((e4, t3, i3, n3) => { + if (!n3 || "append" !== t3 || 0 === i3.length) return; + const r3 = i3[i3.length - 1]; + r3 && (r3.willGenerateNotSetOrStringLiteral ? e4.addGenerationToBucket(N.singleSpaceStringLiteralGenerator.createGeneration()) : e4.addGenerationToBucket(N.lastGenNotSetOrEmptySpaceSepGenerator.createGeneration())); + }), languageCheckGenerator: h.create().addFuncCall("If").addFuncCall("AreEqual").addTokenBooleanTrue().addFuncParameterSeparator().addTokenReplacement(0).addFuncParameterSeparator().addTokenReplacement(1).addFuncCallEnd().addFuncParameterSeparator().addFuncCallParmGenerationBucket("append_or_part_generation", true).verifySprintfStringAndInitialize("If(AreEqual(true, %1$s, %2$s), ") }, id: l.string.container.language, name: d.builderParts.container.language.name, resultExpressionType: S.string, version: 1, restrictToFlowTypeOrTypes: f.getFlowTypesThatSupportLanguages() })), s.addBuilderPartContainerDef(new a({ categoryIdentifierOrIdentifiers: [n2.container, n2.labelString], description: d.builderParts.container.outputMode.description, generators: { containerPartsGenerator: h.create().addFuncCall("Trim").addFuncCall("Append").addFuncCallParmGenerationBucket("append", true).addFuncCallEnd().addFuncCallEnd().verifySprintfStringAndInitialize("Trim(Append())").setAboutToAddGenerationCallback((e4, t3, i3, n3) => { + if (!n3 || "append" !== t3 || 0 === i3.length) return; + const r3 = i3[i3.length - 1]; + r3 && (r3.willGenerateNotSetOrStringLiteral ? e4.addGenerationToBucket(N.singleSpaceStringLiteralGenerator.createGeneration()) : e4.addGenerationToBucket(N.lastGenNotSetOrEmptySpaceSepGenerator.createGeneration())); + }), wantContainerPartsGeneratorForSingleton: false }, id: l.string.container.outputMode, name: d.builderParts.container.outputMode.name, restrictToFlowTypeOrTypes: T.flowTypesAllCicero, resultExpressionType: S.string, version: 1 })), s.addBuilderPartContainerDef(new o({ categoryIdentifierOrIdentifiers: [n2.container, n2.labelString], description: d.builderParts.container.languageAndOutputMode.description, generators: { containerPartsGenerator: h.create().addFuncCall("Trim").addFuncCall("Append").addFuncCallParmGenerationBucket("append", true).addFuncCallEnd().addFuncCallEnd().verifySprintfStringAndInitialize("Trim(Append())").setAboutToAddGenerationCallback((e4, t3, i3, n3) => { + if (!n3 || "append" !== t3 || 0 === i3.length) return; + const r3 = i3[i3.length - 1]; + r3 && (r3.willGenerateNotSetOrStringLiteral ? e4.addGenerationToBucket(N.singleSpaceStringLiteralGenerator.createGeneration()) : e4.addGenerationToBucket(N.lastGenNotSetOrEmptySpaceSepGenerator.createGeneration())); + }), wantContainerPartsGeneratorForSingleton: false }, id: l.string.container.languageAndOutputMode, name: d.builderParts.container.languageAndOutputMode.name, restrictToFlowTypeOrTypes: T.flowTypesAllCicero, resultExpressionType: S.string, version: 1, wantBucketOnSingleGeneration: true })), s.addBuilderPartDef(new u({ categoryIdentifierOrIdentifiers: [n2.toolbar, n2.markdown], description: d.builderParts.string.markdown.description, expressionDefs: [new _({ configureOptionsCallback: (e4) => e4.setDefaultToExpression(true).setIninTestingField("stringMarkdown"), expressionType: S.string, label: d.builderParts.string.markdown.name })], generators: { expressionGenerator: h.create().addTokenReplacement(0).verifySprintfStringAndInitialize("%1$s") }, viewId: C, id: l.string.markdown, icon: A.modifyIntents, name: d.builderParts.string.markdown.name, resultExpressionType: S.string, requiredFeatureToggle: g.archExpressionBuilders, restrictToFlowTypeOrTypes: T.flowTypeDigitalBot, version: 1, displayStringOverride: (e4, t3) => ({ displayString: e4?.getSavedMarkdownText() || e4.markdownExpression.text, shouldTokenizeDisplayString: false }) })); + } }; + }, 46638: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importDefault(i2(57382)), o = n2.__importDefault(i2(78432)), a = i2(30801); + class s extends r2.default { + constructor(e3) { + super(e3), this._bcc = this.coreFactory.createArchWrapper(e3.bcc), this._cc = this.coreFactory.createArchWrapper(e3.cc), this._from = this.coreFactory.createArchWrapper(e3.from), this._messageBody = this.coreFactory.createArchWrapper(e3.messageBody), this._replyTo = this.coreFactory.createArchWrapper(e3.replyTo), this._attachments = this.coreFactory.createArchWrapper(e3.attachments); + } + get _actionTypeId() { + return a.sendAutoReplyActionType; + } + get displayTypeName() { + return this._scriptingName; + } + get isArchActionSendAutoReply() { + return true; + } + get from() { + return this._from; + } + get replyMode() { + return this._coreActionViewModel.replyToSenderOnly ? o.default.SEND_AUTO_REPLY_MODES.replyToSender : o.default.SEND_AUTO_REPLY_MODES.replyToAll; + } + set replyMode(e3) { + this._checkItemIsValidLiteralStringEnum(this._infoPropSet("value", "replyMode"), e3, o.default.SEND_AUTO_REPLY_MODES_ALL), this._coreActionViewModel.replyToSenderOnly = e3 === o.default.SEND_AUTO_REPLY_MODES.replyToSender, this._checkItem(this._infoPropSet(e3, "replyMode"), this.replyMode !== e3, "unable to set the reply mode to '" + e3 + "' because the mode is not available."); + } + get replyTo() { + return this._replyTo; + } + get cc() { + return this._cc; + } + get bcc() { + return this._bcc; + } + get messageBody() { + return this._messageBody; + } + setMessageBodyVariable(e3) { + this._checkItemIsValidLiteralStringOrArchVariableString(this._infoParm("messageBodyVariable", "setMessageBodyVariable"), e3, false), this.messageBody.setVariable(e3); + } + get attachments() { + return this._attachments; + } + } + t2.default = s; + }, 46669: (e2, t2, i2) => { + const n2 = i2(92140), r2 = i2(17604).sprintf, o = i2(25088), a = i2(45421), s = i2(39041).default, l = i2(29527), u = i2(13126), d = i2(60094), c = i2(45214), { MenuChoiceViewModel: p } = i2(63883), _ = i2(62829), { ParameterInfo: h } = i2(55909), { ParameterValidator: m } = i2(33951), g = i2(92944), f = i2(47957), T = i2(69674), y = i2(92330), S = "ClipboardContentActionViewModel"; + class A extends o { + constructor(e3, t3) { + super(e3, t3); + } + _resetUpconvertViewModels() { + super._resetUpconvertViewModels(), this._destUpconvertMenuChoiceViewModel = void 0, this._destUpconvertStateViewModel = void 0, this._destUpconvertTaskViewModel = void 0; + } + static create(e3, t3, i3, r3) { + m.expectBool(t3, () => h.createFunctionParameter(S, "create", "deleteActionForCut"), true), m.expectObject(i3, () => h.createFunctionParameter(S, "create", "clipboardLogging")), m.expectString(r3, () => h.createFunctionParameter(S, "create", "newContentName"), true); + const o2 = a.getFlowViewModel(e3); + if (!o2) return m.expectFlowViewModel(o2, () => h.createFunctionParameter(S, "create", "actionViewModel.parentFlow")), null; + let s2; + m.expectObject(e3.info, () => h.createFunctionParameter(S, "create", "actionViewModel")); + try { + const a2 = []; + if (A._addActionTreeToArray(e3, a2), 0 === a2.length) return null; + n2.each(a2, function(e4) { + A._getActionModelById(e4.nextAction, a2) || (e4.nextAction = void 0), n2.each(e4.paths, function(e5) { + A._getActionModelById(e5.nextActionId, a2) || (e5.nextActionId = void 0); + }); + }.bind(this)); + const u2 = new l(); + if (u2.configure(o2, e3, a2, r3), s2 = new A(u2, i3), e3.addClipboardDependencies(s2), t3) { + const t4 = e3.parent; + if (!t4 || !t4.isActionContainerViewModel) throw "The action parent is not an action container view model. Unable to delete the action."; + t4.deleteChild(e3), s2.validateFlow(o2); + } + return s2; + } catch (e4) { + i3.logException(e4, "Unable to create clipboard content task."); + } + return s2 && s2.destroy(), null; + } + static _addActionTreeToArray(e3, t3) { + if (!e3) return; + const i3 = a.cloneToRawJsonObject(e3.getConfiguration()); + i3 && (t3.push(i3), n2.each(e3.branches, function(e4) { + n2.each(e4.actions, function(e5) { + this._addActionTreeToArray(e5, t3); + }.bind(this)); + }.bind(this))); + } + static _getActionModelById(e3, t3) { + if (e3) return n2.find(t3, function(t4) { + return t4.id === e3; + }.bind(this)); + } + _buildInsertArray(e3, t3, i3, r3, o2) { + const a2 = [], s2 = r3 ? _.createActionWithModel(r3, t3, a2) : null, l2 = A._getActionModelById(t3.nextAction, i3); + l2 && (i3 = n2.reject(i3, function(e4) { + return e4.id === t3.id; + }), this._buildInsertArray(e3, l2, i3, r3, s2)); + let u2 = t3.paths; + n2.isNullOrUndefined(u2) && (u2 = t3.path ? [t3.path] : []), a2 && u2.push(...a2), n2.each(u2, (r4) => { + const o3 = A._getActionModelById(r4.nextActionId, i3); + if (o3) { + let a3; + s2 ? (a3 = n2.find(s2.branches, (e4) => e4.id === r4.outputId), this.log(`Not inserting action name ${this._getNameAndIdStr(t3)} because its branch was not available`)) : this.log(`Not inserting action name ${this._getNameAndIdStr(t3)} because previous action wasn't insertable`), this._buildInsertArray(e3, o3, i3, a3); + } + }), s2 ? e3.push({ actionViewModel: s2, destActionContainerViewModel: r3, previousActionViewModel: o2 }) : e3.push({ didNotAdd: t3 }); + } + _performDestroy() { + super._performDestroy(), this._resetUpconvertViewModels(); + } + _pasteBefore(e3) { + const t3 = super._pasteBefore(e3); + if (t3.isFailure) return t3; + if (this.shouldPasteAsMenuChoice(e3)) this._destUpconvertMenuChoiceViewModel = p.createMenuChoice(e3.destViewModel, this.contentModel.contentRawJSON[0].__type), this.log("Paste will be up-converting the action to a menu choice for the action. Newly created menu choice will be " + this._getNameAndIdStr(this._destUpconvertMenuChoiceViewModel)); + else if (this.shouldPasteAsReusableTask(e3)) { + const t4 = new y(); + t4.name = e3.clipboardObject.pasteGetUniqueTaskName(r2(f.task.newDefaultName, 1)), this._destUpconvertTaskViewModel = this._pasteAddTaskViewModelForTaskModel(e3, t4), e3.destViewModelTaskOrState = this._destUpconvertTaskViewModel, this.log("Paste will be up-converting the action to a reusable task for the action. Newly created task will be " + this._getNameAndIdStr(this._destUpconvertTaskViewModel)); + } else if (this.shouldPasteAsState(e3)) { + const t4 = new T(); + t4.name = e3.clipboardObject.pasteGetUniqueStateName(r2(f.task.newDefaultStateName, 1)), this._destUpconvertStateViewModel = this._pasteAddStateViewModelForStateModel(e3, t4), e3.destViewModelTaskOrState = this._destUpconvertStateViewModel, this.log("Paste will be up-converting the action to a state for the action. Newly created state will be " + this._getNameAndIdStr(this._destUpconvertStateViewModel)); + } + return t3; + } + _pasteAfter(e3) { + if (!n2.isUndefined(this._destUpconvertMenuChoiceViewModel)) { + let t3 = this.pastedMenuOrTaskOrActionViewModel.name; + t3 = e3.clipboardObject.pasteGetUniqueMenuChoiceName(t3, this._destUpconvertMenuChoiceViewModel.parent, true, false), this._destUpconvertMenuChoiceViewModel.name = t3, this._pasteAddMenuChoiceViewModelForMenuChoiceViewModel(e3.destViewModel, this._destUpconvertMenuChoiceViewModel), this._destUpconvertMenuChoiceViewModel.resetDtmfToUniqueDtmf(); + } + return this.createClipboardResultSuccess(); + } + _performPaste(e3) { + const t3 = []; + if (this.log("Creating " + this._pasteJsonObjects.content.length + " action model(s) from clipboard content action JSON."), n2.each(this._pasteJsonObjects.content, function(i3) { + const r3 = e3.clipboardObject.pasteContext.destFlowViewModel.definition.type; + n2.each(i3, (e4) => { + if (e4?.uiMetaData?.builder) { + const t4 = e4.uiMetaData.builder.builderDefId; + 0 === s.getAvailableBuilderDefinitions(void 0, r3, void 0, [t4]).length && (e4.uiMetaData.mode = 0, delete e4.uiMetaData.builder); + } + }), t3.push(c.prototype.reviveItem(i3)); + }.bind(this)), t3.length > 0) { + this.log("Assigning new IDs and names for " + t3.length + " action model(s)."), n2.each(t3, function(t4) { + this.pushLogHeader("action - name " + this._getNameAndIdStr(t4)); + try { + this.log("Assigning new IDs and names."), t4.pasteReIdOrRename(e3.clipboardObject); + } finally { + this.popLogHeader(); + } + }.bind(this)), this.log("Resolving old values to new values for " + t3.length + " action model(s)."), n2.each(t3, function(t4) { + this.pushLogHeader("action - name " + this._getNameAndIdStr(t4)); + try { + this.log("Resolving old values to new values."), t4.pasteResolveOldToNewValues(e3.clipboardObject); + } finally { + this.popLogHeader(); + } + }.bind(this)); + const i3 = e3.destViewModel.isBaseAction ? e3.destViewModel : e3.destViewModel.isTaskLike && e3.pasteActionsToEndOfActionContainer ? this.getLastActionForStateOrTask(e3.destViewModel) : void 0, r3 = this._destUpconvertStateViewModel ? this._destUpconvertStateViewModel : this._destUpconvertTaskViewModel ? this._destUpconvertTaskViewModel : this._destUpconvertMenuChoiceViewModel ? this._destUpconvertMenuChoiceViewModel : e3.destActionContainer; + let o2 = []; + if (this._buildInsertArray(o2, t3[0], t3, r3, i3), t3.length !== o2.length) return this.createClipboardResultFailurePasteGeneric("The array of action view models to paste did not have the same number of actions that the models had. Maybe model code is not resolving old IDs to new IDs?"); + if (this._destUpconvertMenuChoiceViewModel) { + if (1 !== o2.length) return this.createClipboardResultFailurePasteGeneric("The array of action view models to paste was not 1. This is incorrect when up-converting to a menu choice. Sigh."); + const t4 = o2[0]; + this.log("Assigning new action " + this._getNameAndIdStr(t4.actionViewModel) + " to menu choice " + this._getNameAndIdStr(this._destUpconvertMenuChoiceViewModel) + "."), this._destUpconvertMenuChoiceViewModel.action = t4.actionViewModel, this.pastedMenuOrTaskOrActionViewModel = t4.actionViewModel, e3.additionalInfo && e3.additionalInfo.addNotableObject(this._destUpconvertMenuChoiceViewModel); + } else for (let t4 = o2.length - 1; t4 >= 0; t4--) { + const i4 = o2[t4]; + i4.actionViewModel && (this.log("Inserting action name " + this._getNameAndIdStr(i4.actionViewModel) + ". " + (i4.previousActionViewModel ? "Previous action name " + this._getNameAndIdStr(i4.previousActionViewModel) + "." : "No previous action view model.")), i4.destActionContainerViewModel._insertAction(i4.actionViewModel, i4.previousActionViewModel), i4.actionViewModel.initializeDesignTime && i4.actionViewModel.initializeDesignTime(), 0 === t4 && (this.pastedMenuOrTaskOrActionViewModel = i4.actionViewModel), e3.additionalInfo && t4 === o2.length - 1 && e3.additionalInfo.addNotableObject(i4.actionViewModel)); + } + o2 = void 0; + } + return this.createClipboardResultSuccess(); + } + get className() { + return S; + } + get clipboardContentType() { + return u.action; + } + checkCanPasteClipboardContextWithDetails(e3) { + const t3 = super.checkCanPasteClipboardContextWithDetails(e3); + if (t3.isFailure) return t3; + let i3 = false; + if (this.shouldPasteAsMenuChoice(e3, false)) { + if (i3 = true, !this.shouldPasteAsMenuChoice(e3)) return this.createClipboardResultFailure(f.clipboard.content.pastableLocations.cannotPasteActionAsMenuChoiceMoreThanOne); + t3.messageDisplayStr = f.clipboard.content.canPaste.upConvert.action.toMenuChoice; + } else { + if (e3.destViewModel.isMenuChoice || e3.destViewModel.isMenu) return n2.isArray(e3.destViewModel.choices) ? this.createClipboardResultFailure(f.clipboard.content.pastableLocations.contentCannotBeActionMenu) : this.createClipboardResultFailure(f.clipboard.content.pastableLocations.destinationHasNoChoices); + this.shouldPasteAsReusableTask(e3) ? (i3 = true, t3.messageDisplayStr = f.clipboard.content.canPaste.upConvert.action.toReusableTask) : this.shouldPasteAsState(e3) && (i3 = true, t3.messageDisplayStr = f.clipboard.content.canPaste.upConvert.action.toState); + } + return i3 || e3.destActionContainer && (e3.destActionContainer.isState || e3.destActionContainer.isTask || e3.destActionContainer.isActionContainerViewModel) ? e3.destAllowableClipboardContentTypes && !n2.contains(e3.destAllowableClipboardContentTypes, d.actions) ? this.createClipboardResultFailureCanPasteGeneric() : t3 : this.createClipboardResultFailure("Clipboard contains an action and actions can only be pasted in to a state, task, action output, as a reusable task or as a menu action in flows that allow menus."); + } + get isClipboardContentAction() { + return true; + } + get totalActionCount() { + return n2.isArray(this.contentModel.contentRawJSON) ? this.contentModel.contentRawJSON.length : 0; + } + shouldPasteAsMenuChoice(e3, t3) { + let i3 = false; + if ((e3.destViewModel.isSubMenu || e3.destViewModel.isMenu) && n2.isArray(e3.destViewModel.choices) && (t3 || 1 === this.totalActionCount)) { + const e4 = _.getActionConstructor(this.contentModel.contentRawJSON[0]); + e4 && e4.info && (i3 = true === e4.info.canBeTreeNode); + } + return i3; + } + shouldPasteAsReusableTask(e3) { + return e3.destViewModel.isFlowViewModel && e3.destViewModel.supportsReusableTasks && n2.isArray(e3.destViewModel.tasks) && (!e3.pasteSettings || e3.pasteSettings.pasteActionToFlowDestination === g.tasks); + } + shouldPasteAsState(e3) { + return e3.destViewModel.isFlowViewModel && e3.destViewModel.supportsMultipleStates && n2.isArray(e3.destViewModel.states) && e3.pasteSettings && e3.pasteSettings.pasteActionToFlowDestination === g.states; + } + } + e2.exports = A; + }, 46761: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.briefCallSecureFlowListManager = void 0; + const n2 = i2(31635).__importStar(i2(24032)), r2 = i2(70726), o = i2(96618), a = i2(27862); + class s extends r2.BriefFlowListManager { + get dependencyType() { + return a.SecureCallFlow; + } + constructor() { + super(), this.topic = n2.getTopic("briefCallSecureFlowListManager"), this.additionalQueryParams = { type: o.flowTypes.flowTypeSecureCall }, this.className = "BriefCallSecureFlowListManager", this.flowType = o.flowTypes.flowTypeSecureCall, this._initialize(); + } + } + t2.briefCallSecureFlowListManager = new s(); + }, 46772: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(41898)); + class r2 extends n2.default { + constructor(e3, t3, i3, n3, r3) { + super(e3, t3, i3, n3), this._onToolbar = r3; + } + get className() { + return "BuilderCategory"; + } + get isBuilderCategory() { + return true; + } + get actionsOnToolbar() { + return this._onToolbar; + } + } + t2.default = r2; + }, 46782: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.BaseExpression = void 0, t2.TEST_getExpressionCount = function() { + return Object.keys(W).length; + }, t2.TEST_activeExpressions = function() { + return Object.values(W); + }, t2.isExpression = function(e3) { + return e3 instanceof H; + }; + const n2 = i2(31635), r2 = i2(17604), o = n2.__importDefault(i2(92140)), a = n2.__importStar(i2(81858)), s = i2(17666), l = n2.__importStar(i2(24032)), u = n2.__importDefault(i2(7401)), d = n2.__importStar(i2(12847)), c = n2.__importStar(i2(17498)), p = n2.__importStar(i2(36781)), _ = n2.__importStar(i2(10798)), h = n2.__importStar(i2(27099)), m = n2.__importStar(i2(43773)), g = n2.__importStar(i2(58380)), f = i2(88473), T = i2(55909), y = i2(33951), S = n2.__importStar(i2(43011)), A = n2.__importStar(i2(27854)), N = n2.__importStar(i2(98442)), O = i2(92908), I = n2.__importStar(i2(1115)), v = i2(9456), C = n2.__importDefault(i2(68460)), b = n2.__importDefault(i2(73198)), E = i2(27491), R = n2.__importStar(i2(11345)), w = i2(98552), D = n2.__importStar(i2(9345)), P = n2.__importStar(i2(8462)), M = n2.__importDefault(i2(86833)), F = i2(80428), L = i2(14394), x = i2(26403), k = i2(26403), V = i2(47957), U = i2(27862), B = i2(1360), G = i2(57141), j = l.getTopic("expression"), W = {}; + function q(e3, t3) { + if (t3 && t3.ref && t3.ref.type === F.expressionTypeNames.prompt) { + const i3 = S.getItem(t3.ref.val); + if (i3 && i3.expressionName !== t3.ref.text) { + j.info(`renaming prompt with id ${i3.id} in expression with id ${e3.id}`); + const n3 = t3.ref.text; + !(function(e4, t4, i4) { + const n4 = e4.text.length, r3 = e4.text.slice(0, t4.pos - 1 + e4._renameOffset), o2 = e4.text.slice(t4.pos - 1 + t4.text.length + e4._renameOffset); + e4.text = r3 + i4 + o2, e4._renameOffset += e4.text.length - n4, e4.options.renameVariablesCallback && e4.options.renameVariablesCallback(e4); + })(e3, t3.ref, i3.expressionName), p.emitter.emit(p.promptChanged, i3, n3); + } + } else o.default.isObject(t3) && o.default.each(t3, function(t4) { + q(e3, t4); + }); + } + function Y(e3, t3) { + e3._parseResult = M.default.parse(e3), e3._parseResult.success ? e3.setConfigAndMetaData(e3._parseResult.resultExpression, e3._parseResult.metaData) : e3.setConfigAndMetaData(void 0), o.default.each(e3.delayedClearVariableList, (t4) => { + e3.variables[t4.id] || t4.removeUsage(e3); + }), e3.delayedClearVariableList = {}, g.fireEvent(e3, p.expressionParseComplete), e3._executeCallbacks(e3.valueChangedCallbacks, "valueChangedCallbacks"), t3 && t3(); + } + class H extends C.default { + get customExpressionMode() { + return false; + } + get isAudioExpression() { + return false; + } + constructor(e3) { + var t3; + super(e3.parentFlow, e3.parent), this._hasLiteralError = false, this._serverSearches = [], this.valueChangedCallbacks = [], this._id = (0, v.uuid)(), this._throttledParse = o.default.debounce((e4) => { + this.isDestroyedOrDestroying || this.processText(true, e4); + }, this.updateTime), this.isSearchingServer = false, !e3.model || e3.model instanceof u.default || j.error("Tried to load an expression with an incorrect model: {}", e3.label), this._transitory = e3.transitory, this.options = e3.options || P.buildOptions(e3.type, void 0, this.parentFlow), this._transitory && this.options.setDoNotTrackUsages(true), this._internalExpression = e3.isInternal, this._label = e3.label, this._model = e3.model || new u.default(), this._type = e3.type, this.propertyName = e3.propertyName, this.topic = j.withMultipleContext({ label: this._label, id: this.id, parentId: null === (t3 = this.parent) || void 0 === t3 ? void 0 : t3.id }), this.propertyName && this.topic.addContext("propertyName", this.propertyName), this._outOfServiceProvider = (0, f.addOutOfServiceProperties)(this, true), this.isOptional && (this.blankWarningText = this.optionsAs().blankWarningText), this.originalType = this.options.noOriginalType ? null : e3.type, this.model.uiMetaData || this._ensureUiMetaData(), this.variables = {}, e3.options && o.default.isFunction(e3.options.valueChangedCallback) && this.valueChangedCallbacks.push(e3.options.valueChangedCallback); + } + optionsAs() { + return this.options; + } + get id() { + return this._id; + } + get model() { + return this._model; + } + set model(e3) { + this._model = e3; + } + get _isFlowLevelDefaultExpressionWithNoConfigAndNoText() { + return this.options.isFlowLevelDefaultExpression && !this.hasConfig && !this.text; + } + get _needsDefaultTextSet() { + return this.hasDefaultText && !this.text && !this.options.allowFlowLevelDefault && !this.options.defaultToNoValue; + } + get amObjectEventSink() { + return true; + } + get amObjectEventEmitter() { + return true; + } + tempClone(e3) { + const t3 = new this.constructor({ model: new u.default(JSON.stringify(this.model)), type: this.type, parent: this.parent, parentFlow: this.parentFlow, label: this.label, options: this.options.clone().setDoNotTrackUsages(true), transitory: e3 }); + return t3.initialize(), this.initializeDesignTimeCalled && t3.initializeDesignTime(), t3.outOfService = this.outOfService, t3; + } + cloneForTransitoryExpression() { + return this.tempClone(true); + } + get isTransitory() { + return this._transitory; + } + get config() { + return this.model.config; + } + set config(e3) { + this.model.config = e3; + } + get configType() { + const e3 = this.config; + return o.default.isObject(e3) ? e3.type : null; + } + get errorMessage() { + return this.hasError ? this.resultMessage : null; + } + get hasConfig() { + return !!this.config; + } + get hasParseError() { + return this._parseResult && this._parseResult.resultType === k.ParseResultTypes.error && !!this._parseResult.resultMessage; + } + get parseResultErrors() { + var e3; + return (null === (e3 = this._parseResult) || void 0 === e3 ? void 0 : e3.parseErrorItems) || []; + } + get hasDefaultText() { + return this.options.hasDefaultText; + } + get hasError() { + return this._getHasError(); + } + get hasInfo() { + return !!this._parseResult && this._parseResult.resultType === k.ParseResultTypes.info; + } + get hasWarning() { + return !!this._parseResult && this._parseResult.resultType === k.ParseResultTypes.warn; + } + get isBlank() { + return this.optionsAs().blankDeterminationShouldNotTrim ? !this.text : !this.text || "" === this.text.trim(); + } + get isEmpty() { + return this.config && !!this.config.emp; + } + get isEmptyNoFallback() { + return this.config && !!this.config.enf; + } + get isOptional() { + return this.options.isOptional; + } + set isOptional(e3) { + this.options.isOptional = e3; + } + get hasEmpRoot() { + return !!this.hasConfig && this.config.isEmp; + } + get isInternal() { + return this._internalExpression; + } + set isInternal(e3) { + this._internalExpression = e3; + } + get isNotSet() { + return this.text && this.text.trim().toUpperCase() === b.default.notSet; + } + get label() { + var e3; + return (null === (e3 = this.options) || void 0 === e3 ? void 0 : e3.labelOverride) || this._label; + } + set label(e3) { + this._label !== e3 && (this._label = e3); + } + get languages() { + if (this.parentAudio) { + if (this.parentAudio.languages) return this.parentAudio.languages; + if (this.parentAudio.langCode) return [N.getLanguageEntry(this.parentAudio.langCode)]; + if (this.parentAudio.defaultAudioLanguages) return this.parentAudio.defaultAudioLanguages; + } + return this.parentFlow && this.parentFlow.languages ? this.parentFlow.topParentFlow.languages.supportedLanguagesViewModels : []; + } + get promptsNeedAudioOnly() { + return !(!this.options || !this.optionsAs().requireAudio) || this.parentFlow.validateHasAudioOnly; + } + getPromptMissingResourcesErrorString(e3) { + let t3; + return e3 ? t3 = e3.displayName.trimForDisplay() : (d.error("no prompt to get name from"), t3 = V.actions.unknown), this.promptsNeedAudioOnly ? (0, r2.sprintf)(V.audio.promptMissingAudioError, t3) : this.parentFlow.validateHasAudio || this.parentFlow.validateHasTTS ? this.parentFlow.isCallFlowType ? (0, r2.sprintf)(V.audio.promptNoAudioTtsError, t3) : (0, r2.sprintf)(V.audio.promptNoTtsOrTextError, t3) : void 0; + } + get metaData() { + return this.model.metaData; + } + set metaData(e3) { + this.model.metaData = e3; + } + get staticMetaData() { + return this._staticMetaData; + } + get resultMessage() { + return this._parseResult ? this._parseResult.resultMessage : ""; + } + get resultPosition() { + return this._parseResult ? this._parseResult.resultPosition : 0; + } + get resultReference() { + return this._parseResult ? this._parseResult.resultReference : ""; + } + get resultType() { + return this._parseResult ? this._parseResult.resultType : void 0; + } + get resultHelpTopic() { + return this._parseResult ? this._parseResult.resultHelpTopic : void 0; + } + setConfigAndMetaData(e3, t3) { + this.config = e3, e3 ? (t3 ? this.metaData = t3 : this.config.setContainerExpressionMetaData(this, true), this.staticMetaData && o.default.extend(this.metaData, this.staticMetaData)) : this.metaData = this.staticMetaData ? o.default.clone(this.staticMetaData) : void 0; + } + setStaticMetaData(e3) { + this._staticMetaData || (this._staticMetaData = {}), o.default.extend(this._staticMetaData, e3), this.metaData || (this.metaData = {}), o.default.extend(this.metaData, this.staticMetaData); + } + get text() { + return this.model.text; + } + set text(e3) { + this.setText(e3); + } + get type() { + return this._type; + } + set type(e3) { + this._type !== e3 && (this._type = e3, this.model.type = e3.expressionType, this.resultType && this.setText(this.model.text, false, true), g.fireEvent(this, p.expressionTypeChanged)); + } + attachValidator(e3) { + this._extraValidator = e3; + } + _addVariableUsage(e3) { + e3.addReader(this); + } + _handleNoConfigAtEndOfValidation(e3) { + if (!this.isProcessingText) { + const t3 = [`Expression id: '${this.id}'`, this.parentFlow.toString()]; + if (this.label && t3.push(`label: '${this.label}'`), this.propertyName && t3.push(`propertyName: '${this.propertyName}'`), this.topic.errorWithStack(null, `An expression reached the end of validation with no config and no validation error. ${t3.join(", ")}`), h.isDisabled(a.archExpressionNoConfigError)) return true; + const i3 = V.expression.internalErrorExpression; + return this.setParseError(i3), e3.nodeHasError(this.parent.id, i3) || e3.addError(this.parent, i3), false; + } + return true; + } + _clearVariables(e3) { + if (!this.isVariableMode) { + if (e3) return this.delayedClearVariableList = this.variables, void (this.variables = {}); + const t3 = o.default.last(o.default.keys(this.variables)); + o.default.each(this.variables, (e4, i3) => { + e4.removeUsage(this, i3 !== t3); + }), this.variables = {}; + } + } + _executeCallbacks(e3, t3) { + this.initializeDesignTimeCalled && o.default.each(e3, (e4) => { + try { + e4(this); + } catch (e5) { + this.topic.exception(e5, "Failure executing " + t3); + } + }); + } + _getHasError() { + return !(!this._parseResult || this._parseResult.resultType !== k.ParseResultTypes.error || this._parseResult.success); + } + _getConfigurationForYaml(e3, t3, i3) { + var n3, r3; + if (this.outOfService && !(null == i3 ? void 0 : i3.serializeOutOfService)) return; + if (null === (n3 = null == i3 ? void 0 : i3.doNotExportForFlowTypes) || void 0 === n3 ? void 0 : n3.includes(this.parentFlow.type)) return null; + const a2 = {}; + let s2, l2 = this.text; + if (null == i3 ? void 0 : i3.shouldBePlainJsType) { + if (this.type.isMatch(L.globalTypes.integer, D.settings.exact) || this.type.isMatch(L.globalTypes.decimal, D.settings.exact)) return Number(this.text); + if (this.type.isMatch(L.globalTypes.string, D.settings.exact)) { + if ("" === this.text) return; + return i3.valueShouldBeLowercase ? this.text.toLowerCase() : this.text; + } + return this.type.isMatch(L.globalTypes.boolean, D.settings.exact) ? this.text === b.default.true : (this.topic.errorWithStack(null, `No shouldBePlainJsType handling in place for property with label '${this.label}'`), null); + } + if (this.isVariableMode) s2 = "var"; + else if (this.isExpressionMode || this.isBuilderMode) { + if (null === (r3 = null == i3 ? void 0 : i3.doNotExportAsExpressionForFlowTypes) || void 0 === r3 ? void 0 : r3.includes(this.parentFlow.type)) return null; + s2 = "exp"; + } else { + if (this.isNoValueModeWithNoFallback) return { noValueWithNoFallback: true }; + if (this.isNoValueMode) return { noValue: true }; + if (!this.isLiteralMode) return this.topic.errorWithErrorObjectInfo(`Unknown expression mode encountered: '${this.mode}'`, this, true), null; + s2 = "lit", l2 = this.type.isCollection ? o.default.map(this.collectionItems.items, (n4) => (null == i3 ? void 0 : i3.valueShouldBeLowercase) ? n4.getConfiguration(e3, t3, i3).toLowerCase() : n4.getConfiguration(e3, t3, i3)) : (null == i3 ? void 0 : i3.valueShouldBeLowercase) ? this.type.getYamlObjectForLiteralSingleton(this, e3, t3, i3).toLowerCase() : this.type.getYamlObjectForLiteralSingleton(this, e3, t3, i3); + } + return null === l2 ? null : (a2[s2] = l2, a2); + } + _getReferenceByName(e3) { + return e3 ? A.hasPromptPrefix(e3) ? S.getItemByName(e3) : this.parentFlow.variableGroup.getVariableByName(e3, this.getParentTask()) : null; + } + _initialize() { + this.options && (this._needsDefaultTextSet || this._isFlowLevelDefaultExpressionWithNoConfigAndNoText) && (this.text = this.options.defaultText), this.model.type = this.type.dataType, this._ensureUiMetaData(), this.processText(true); + } + _reset(e3, t3) { + this._parseResult = null, this._hasLiteralError = false, this._clearVariables(t3), this.config = void 0, this.metaData = this.staticMetaData ? o.default.clone(this.staticMetaData) : void 0, this.consumesSecureData = false, e3 && (this.model.text = ""), g.fireEvent(this, p.expressionParseComplete); + } + setUiMetaData(e3, t3) { + this._ensureUiMetaData(), this.model.uiMetaData[e3] = t3; + } + getUiMetaData(e3) { + return this._ensureUiMetaData(), this.model.uiMetaData[e3]; + } + get customTypeLitCodeLanguage() { + if (this.type.isCustomType) return this.getUiMetaData(O.uiMetaDataKey.litLanguage) || s.CodeLanguage.architectJson; + } + set customTypeLitCodeLanguage(e3) { + this.type.isCustomType && this.setUiMetaData(O.uiMetaDataKey.litLanguage, e3); + } + _ensureUiMetaData() { + this.model.uiMetaData || (this.model.uiMetaData = {}); + } + _setParseResultMessage(e3, t3) { + this._parseResult || (this._parseResult = new x.ParseResult(this)), this._parseResult.resultMessage = e3, this._parseResult.resultType = t3, this._parseResult.resultReference = void 0, this._parseResult.success = k.ParseResultTypes.error !== t3, this._parseResult.resultPosition = -1, g.fireEvent(this, p.expressionParseComplete); + } + addVariableOrPromptReference(e3) { + const t3 = this._getReferenceByName(e3); + return t3 ? (this.options.doNotTrackUsages || this._addVariableUsage(t3), this.variables[t3.id] = t3, t3) : null; + } + checkVersion(e3) { + const t3 = this._parseResult ? this._parseResult.version : G.one.zero; + e3.checkVersion(t3), o.default.each(this.variables, function(t4) { + t4.checkVersion(e3); + }); + } + clear(e3, t3) { + const i3 = this.model.text; + this._reset(e3), this.setConfigAndMetaData(M.default.getNull(this)), t3 && (this.type = t3), i3 !== this.model.text && g.fireEvent(this, p.expressionValueChanged); + } + clearParseResult(e3) { + e3 ? this._parseResult && this._parseResult.resultType === k.ParseResultTypes.error && (this._parseResult = void 0) : this._parseResult = void 0, g.fireEvent(this, p.expressionParseComplete); + } + copyExpressionValue(e3) { + this._reset(), e3.getUiMetaData(O.uiMetaDataKey.builder) && (this.setUiMetaData(O.uiMetaDataKey.builder, o.default.deepClone(e3.getUiMetaData(O.uiMetaDataKey.builder))), this.getUiMetaData(O.uiMetaDataKey.builder).id = (0, v.uuid)()), this.setUiMetaData(O.uiMetaDataKey.mode, e3.mode), void 0 !== e3.getUiMetaData(O.uiMetaDataKey.isJsonViewMode) && this.setUiMetaData(O.uiMetaDataKey.isJsonViewMode, e3.getUiMetaData(O.uiMetaDataKey.isJsonViewMode)), void 0 !== e3.getUiMetaData(O.uiMetaDataKey.customJsonSubFieldModes) && this.setUiMetaData(O.uiMetaDataKey.customJsonSubFieldModes, o.default.clone(e3.getUiMetaData(O.uiMetaDataKey.customJsonSubFieldModes))), this.setConfigAndMetaData(e3.config), this.setText(o.default.clone(e3.text), true), this._initialize(), this.parent && this.parentFlow.loaded && (this.parentFlow.validationResults.removeIssues(this.parent, true), I.validateNode(this.parent, true)), g.fireEvent(this, p.expressionValueChanged); + } + _destroy() { + super._destroy(), I.clearIssues(this), this.hasValidationError = false, this.hasValidationWarning = false, this._reset(), o.default.each(this.valueChangedCallbacks, this.removeValueChangedCallback.bind(this)), this._outOfServiceProvider.destroy(); + } + getConfiguration(e3, t3, i3) { + return (null == t3 ? void 0 : t3.isForComparison) ? m.removePropertiesForComparison(this.model) : (null == t3 ? void 0 : t3.isForFlowYaml) ? this._getConfigurationForYaml(e3, t3, i3) : this.model; + } + getFunctionsForCharPosition(e3, t3) { + var i3, n3; + return y.ParameterValidator.expectInt(e3, () => T.ParameterInfo.createFunctionParameter(this.className, "getFunctionsForCharPosition", "position")), y.ParameterValidator.expectBool(t3, () => T.ParameterInfo.createFunctionParameter(this.className, "getFunctionsForCharPosition", "wantFunctionCallStack"), true), e3 < 0 || e3 > (null === (i3 = this.text) || void 0 === i3 ? void 0 : i3.length) || 0 === (null === (n3 = this.text) || void 0 === n3 ? void 0 : n3.length) ? [] : R.getFunctionsForCharPosition(this, e3, t3); + } + getLitAsString() { + const e3 = this.config; + return e3 && !e3.emp && e3.getLitAsString ? e3.getLitAsString() : ""; + } + getParentTask() { + let e3 = this.parent.topParent; + return e3 = e3 || this.parent, e3.isTaskLike ? e3 : null; + } + getProperty(e3) { + } + get topParent() { + return this.parent.topParent || this.parent; + } + getPromptReferences() { + return this.metaData && this.metaData.references && this.metaData.references.length > 0 ? o.default.filter(this.metaData.references, function(e3) { + return e3.type === F.expressionTypeNames.prompt; + }) : []; + } + getTopConfigProperty() { + for (const e3 in this.config) if (this.config.hasOwnProperty(e3)) return this.config[e3]; + } + get isExpression() { + return true; + } + isIntegerOrDecimalType() { + return this.type.isMatch(L.globalTypes.integer, D.settings.exact) || this.type.isMatch(L.globalTypes.decimal, D.settings.exact); + } + get isVariableInitialValue() { + var e3, t3; + return (null === (e3 = this.parent) || void 0 === e3 ? void 0 : e3.isVariableViewModel) && (null === (t3 = this.parent) || void 0 === t3 ? void 0 : t3.model.initialValue) === this.model; + } + processText(e3, t3) { + var i3; + if (this._amBuildingExpressionText) return; + const n3 = e3; + try { + this._amBuildingExpressionText = true, n3 ? (function(e4, t4) { + if (e4.parentFlow && e4.parentFlow.shouldParseExpressions) { + if (e4._reset(false, true), e4.isSearchingServer) return; + if (e4.text && !e4.isTTSOnly) { + const t5 = E.expressionDataService.getPromptsFromExpressionText(e4.text); + if (t5 && t5.length > 0 && (o.default.each(o.default.uniq(t5), function(t6) { + if (!e4.parentFlow.validationResults.isDeep && e4.parentFlow.loaded && !S.getItemByName(t6.name)) { + let i4 = t6.isSystemPrompt ? S.systemPromptListManager : null; + if (i4 || (i4 = t6.isUserPrompt ? S.userPromptListManager : null), !i4) return void j.error("An expression with no prompt string got into prompt processing:" + t6); + const n4 = {}, r3 = i4.search(A.removePrefix(t6.name), null, B.exactMatch, false, null, false, n4).catch(o.default.noop); + n4.isAutomaticEmptyResults || e4._serverSearches.push(r3); + } + }), e4._serverSearches.length > 0)) return e4.isSearchingServer = true, void Promise.all(e4._serverSearches).finally(() => { + e4.isSearchingServer = false, e4._serverSearches.length = 0, Y(e4); + }); + } + Y(e4, t4); + } + })(this, t3) : this._throttledParse(t3); + } catch (e4) { + this.topic.errorWithStack(e4, "Error occurred processing text for expression: " + this.label); + } finally { + this._amBuildingExpressionText = false, this._throttledParseQueued = !n3, this.hasValidationError = this.hasError, this.hasValidationWarning = this.hasWarning, null === (i3 = this.parentFlow) || void 0 === i3 || i3.calcFlowSizeAsync(); + } + } + removeValueChangedCallback(e3) { + const t3 = this.valueChangedCallbacks.indexOf(e3); + t3 > -1 && this.valueChangedCallbacks.splice(t3, 1); + } + registerDependencies() { + this.isTransitory || (this._registerPromptsFromExpressionText(), this._registerJsonDependencies()); + } + _registerJsonDependencies() { + if (!this.isTransitory && (null == this ? void 0 : this.dependencies)) { + const e3 = []; + Object.entries(this.dependencies).forEach(([t3, i3]) => { + const n3 = U.getInstance(t3); + Object.entries(i3).forEach(([t4, i4]) => { + e3.push({ dependencyName: i4.name, dependencyId: t4, dependencyVersion: c.NO_VERSION, dependencyType: n3 }); + }); + }), c.registerConsumerDependencies(this.parent, this, e3); + } + } + _registerPromptsFromExpressionText() { + const e3 = w.expressionItems.getPromptsFromExpressionMetadata(this); + o.default.each(e3, (e4) => { + c.registerPrompt(A.removePrefix(e4.name), e4.isSysRef ? U.SystemPrompt : U.UserPrompt, this.parentFlow, e4.id); + }); + const t3 = E.expressionDataService.getPromptsFromExpressionText(this.text); + o.default.each(t3, (e4) => { + c.registerPrompt(e4.name, e4.type, this.parentFlow, e4.id); + }); + } + renamePromptVariables(e3) { + if (this.isLiteralMode && this.val && this.type.isMatch(L.globalTypes.prompt, D.settings.exact)) { + const e4 = S.getItem(this.val); + return void (e4 && this.setText(e4.displayName)); + } + let t3; + t3 = this.metaData ? w.expressionItems.getPromptsFromExpressionMetadata(this) : w.expressionItems.getUniquePromptIds(this.config, null, true); + const i3 = o.default.findWhere(t3, { isSysRef: false }); + if (!i3 || 0 === i3.length) return; + const n3 = o.default.clone(this.config); + this._renameOffset = 0, q(this, n3); + } + replaceUsages(e3, t3, i3) { + if (this.isLiteralMode && this.type.isMatch(L.globalTypes.prompt, D.settings.exact)) return void this.renamePromptVariables(); + if (this.isBuilderMode && this.builder && this.builder.replaceUsages(e3, t3, i3), !this.text) return; + let n3 = this.text; + const r3 = e3.toLowerCase(), o2 = this._parseResult ? this._parseResult.resultExpression : this.isVariableMode ? this.config : void 0; + o2 && (this.isVariableMode ? (function(e4) { + const i4 = e4.getText(), o3 = (i4 ? i4.toLowerCase() : void 0).split(/([a-zA-Z0-9]*.[a-zA-Z0-9]*)[.\[]/gm).filter(Boolean); + o3.length > 1 && o3[0] === r3 && (n3 = `${t3}${e4.getText().slice(o3[0].length)}`); + })(o2) : (function e4(i4) { + const o3 = i4.getText(), a2 = o3 ? o3.toLowerCase() : void 0; + if (i4.isRef && a2 && a2 === r3) s2 = n3, l2 = i4.position - 1, u2 = i4.getText().length, d2 = t3, n3 = s2.slice(0, l2) + d2 + s2.slice(l2 + u2); + else { + const t4 = i4.root.operands; + if (!t4 || 0 === t4.length) return; + for (let i5 = t4.length - 1; i5 >= 0; i5--) e4(t4[i5]); + } + var s2, l2, u2, d2; + })(o2)), this.setText(n3, true); + } + search(e3) { + e3.checkText(this, this.text, this.label); + } + setParseResult(e3) { + var t3; + this._parseResult || (this._parseResult = new x.ParseResult(this)), this._parseResult.parseErrorItems = e3.errorItems, this._parseResult.parseWarningItems = e3.warningItems, this._parseResult.parseInfoItems = e3.infoItems, this._parseResult.parseItems = e3.items, this._parseResult.parseSettings = e3.settings, this._parseResult.parseLanguage = e3.language, this.dependencies = e3.dependencies, this._parseResult.parseItemQuickResult = e3.quickResultParseItem; + const i3 = e3.errorItems[0] || e3.warningItems[0] || e3.infoItems[0]; + this._parseResult.resultType = null == i3 ? void 0 : i3.resultType, this._parseResult.resultReference = void 0, this._parseResult.success = k.ParseResultTypes.error !== (null == i3 ? void 0 : i3.resultType), this._parseResult.resultPosition = null == i3 ? void 0 : i3.from, (null === (t3 = e3.errorItems) || void 0 === t3 ? void 0 : t3.length) > 1 ? this._parseResult.resultMessage = V.errors.multipleErrors : this._parseResult.resultMessage = null == i3 ? void 0 : i3.message; + } + setParseError(e3) { + this._setParseResultMessage(e3, k.ParseResultTypes.error); + } + setParseAndValidationError(e3, t3) { + this.setParseError(e3), t3.addError(this, e3, false, true); + } + setParseWarning(e3) { + this._setParseResultMessage(e3, k.ParseResultTypes.warn); + } + setLiteralError(e3) { + if (this.isLiteralMode) return this._hasLiteralError = e3, e3; + console.error("Tried to set a literal error on a non-literal expression: " + this.id); + } + get suppressResetOnTextChange() { + return false; + } + setText(e3, t3, i3, n3, r3, a2) { + if (o.default.isNullOrUndefined(n3) || (this.mode = n3), this.model.text === e3 && this.config && !i3) return; + this.suppressResetOnTextChange || this._reset(); + const s2 = this.model.text; + o.default.isString(e3) ? this.model.text = e3 : this.model.text = e3 || o.default.isActualNumber(e3) || o.default.isBoolean(e3) ? e3.toString() : e3, this.parentFlow && this.parentFlow.loaded ? this.processText(t3, a2) : this.parentFlow || this.processText(t3, a2), this.isLiteralMode && this._executeCallbacks(this.valueChangedCallbacks, "valueChangedCallbacks"), (s2 !== this.model.text || i3) && g.fireEvent(this, p.expressionValueChanged); + } + toNumber() { + return this.isLiteralMode ? this.type.toNumber(this.text) : 0; + } + updateSecureUsage(e3, t3) { + var i3, n3, r3; + if (!(null === (i3 = this.parentFlow) || void 0 === i3 ? void 0 : i3.isDestroyedOrDestroying)) { + if (this.isVariableMode && this.parentFlow) { + const e4 = this.parentFlow.variableGroup.getVariableFromExpression(this); + e4 && (this.consumesSecureData = e4.isSecure); + } + (null === (n3 = this.parentFlow) || void 0 === n3 ? void 0 : n3.loaded) && !(null === (r3 = this.parent) || void 0 === r3 ? void 0 : r3.isValidating) && (e3 ? (e3.forceTextReprocess = true, this.validate(e3), this.parent && (t3 ? o.default.contains(t3, this.parent) || t3.push(this.parent) : I.validateNode(this.parent))) : this.processText(true)); + } + } + get updateTime() { + return 500; + } + validate(e3) { + if (this.outOfService || this.isDestroyed) return this.isDestroyed && d.error("Tried to validate expression that is destroyed."), true; + if (this.options.featureConfigName && _.isFeatureUnavailable(this.options.featureConfigName) || this.options.featureToggleName && h.isDisabled(this.options.featureToggleName)) return e3.addError(this.parent, (0, r2.sprintf)(V.features.missingFeatureErrorExpression, this.label)), true; + let t3 = M.default.validateExpression(e3, this); + return t3 && this._extraValidator && (t3 = this._extraValidator(e3, this)), true !== t3 || this.hasConfig ? t3 : this._handleNoConfigAtEndOfValidation(e3); + } + get runtimeConsumingFlowTypes() { + var e3; + return (null === (e3 = this.supportedFlowTypes) || void 0 === e3 ? void 0 : e3.length) ? o.default.intersection(this.parentFlow.destinationFlowTypes, this.supportedFlowTypes) : this.parentFlow.destinationFlowTypes; + } + get dependencies() { + return this.model.dependencies; + } + set dependencies(e3) { + this.model.dependencies = e3; + } + get isProcessingText() { + return this.isSearchingServer || this._throttledParseQueued; + } + doConfigCheck(e3) { + this.outOfService || this.hasError || this.hasConfig || this._handleNoConfigAtEndOfValidation(e3); + } + toString() { + var e3; + return `${super.toString()} - type:${null === (e3 = this.type) || void 0 === e3 ? void 0 : e3.dataType}`; + } + } + t2.BaseExpression = H; + }, 46824: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.bridgeServerManager = t2.BridgeServerManager = void 0; + const n2 = i2(31635), r2 = n2.__importDefault(i2(92140)), o = i2(16817), a = i2(30801), s = n2.__importDefault(i2(47532)), l = i2(81801), u = i2(24032), d = i2(47957), c = i2(58300), p = i2(27862); + class _ extends s.default { + get requiredAuth() { + return l.externalAuthorizations.authStrings.bridgeActionView; + } + get dependencyType() { + return p.BridgeServer; + } + _createItemViewModel(e3) { + return new o.BridgeServerAction(e3); + } + additionalItemFilter(e3) { + return this._filterActionList(e3); + } + get canLoadMore() { + return this.isSearching ? this.currentSearchItems.length >= this.defaultPageSize * this.lastRetrievedPage : Object.keys(this.items).length >= this.defaultPageSize * this.lastRetrievedPage; + } + _filterAction(e3) { + return !(!e3.published || !e3.requests) && r2.default.filter(e3.requests, this._filterRequest.bind(this)).length > 0; + } + _filterActionList(e3) { + if (!e3 || 0 === e3.length) return []; + const t3 = r2.default.where(e3, { published: true }), i3 = r2.default.filter(t3, this._filterAction.bind(this)); + return this.filteredOutItemCount += t3.length - i3.length, i3; + } + _filterRequest(e3) { + return "rest" === e3.format.toLowerCase() && !(this._hasComplexProperty(e3.inputSchema.properties) || this._hasComplexProperty(e3.successSchema.properties)); + } + _hasComplexProperty(e3) { + if (e3) { + for (const t3 in e3) if (e3.hasOwnProperty(t3)) { + const i3 = e3[t3]; + if ("object" === i3.type) return true; + if ("array" === i3.type) { + if ("object" === i3.items.type || "array" === i3.items.type) return true; + if (i3.items && r2.default.isArray(i3.items.type) && this._hasComplexProperty(i3.items.type)) return true; + } + } + } + return false; + } + getCategoryForAction(e3, t3) { + if (t3) { + const e4 = r2.default.findWhere(this.items, { actionId: t3 }); + if (e4) return e4.category; + } + const i3 = r2.default.findWhere(this.items, { name: e3 }); + return i3 ? i3.category : null; + } + constructor() { + super(), this.topic = (0, u.getTopic)("bridgeServerManager"), this.apiCallList = c.getMetaDataList, this.apiCallSingle = c.getMetaData, this._rawServerCache = {}, this.className = "BridgeServerManager", this.actionsForUsageSearch = [a.bridgeServerActionType], this.actionPropertyForUsageSearch = "actionName", this.caseSensitiveIds = true, this.dependencyContext = d.bridgeServer.bridgeAction, this.idEquivalent = "name", this.isDependentOnCategory = true, this.suppressSearch = true, this.uiMetadataSectionName = "bridgeServerActions", this._initialize(); + } + } + t2.BridgeServerManager = _, t2.bridgeServerManager = new _(); + }, 46894: (e2, t2, i2) => { + "use strict"; + var n2 = i2(29907), r2 = 0; + !n2.isMaster && n2.worker && (r2 = n2.worker.id), e2.exports = parseInt(process.env.NODE_UNIQUE_ID || r2, 10); + }, 46920: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.yamlPropertyOrderMap = void 0, t2.stringifyConfig = P, t2.cacheConfiguration = M, t2.getStringifiedConfiguration = F, t2.clearCache = L, t2.discardChanges = function(e3) { + const t3 = F(e3); + return V(e3, O[e3.instanceId], t3); + }, t2.exportFlowAsync = function(e3, t3, i3) { + return n2.__awaiter(this, void 0, void 0, function* () { + let n3; + i3 || (yield e3.queuedAsyncValidate().catch(function(e4) { + this.logErrorAndThrow("validateAsync - async flow operation manager validate failed.\n" + e4); + })), t3 = null != t3 ? t3 : p.FlowExportSettings.createForArchitectFormat(); + let r3 = k(e3, false, t3); + if (!r3) return; + r3 = yield e3.preExport(r3, t3); + const o2 = x(e3, t3.isFormatYaml); + return t3.isFormatYaml ? n3 = T.stringify(r3) : (n3 = P(r3), n3 = (0, u.toAscii)(encodeURIComponent(n3))), { content: n3, fileName: o2 }; + }); + }, t2.getExportFilePath = x, t2.getCachedConfiguration = function(e3) { + return O[e3.instanceId]; + }, t2.getConfiguration = k, t2.hasChanged = function(e3) { + if (!I[e3.instanceId]) return !!e3; + const t3 = C(P(k(e3, true, N))); + return !a.default.isEqual(P(C(I[e3.instanceId])), P(t3)); + }, t2.tryLoadConfig = function(e3, t3) { + const i3 = r2.default.defer(); + try { + b(e3, t3) ? E(e3, t3, false).then(function() { + i3.resolve(); + }, function(t4) { + h.emitter.emit(h.flowLoadFailed, e3, y.flow.operations.load.failure), i3.reject(t4); + }) : (h.emitter.emit(h.flowLoadFailed, e3, y.flow.operations.load.versionFailureMessage), i3.reject("Flow config not compatible")); + } catch (t4) { + h.emitter.emit(h.flowLoadFailed, e3, y.flow.operations.load.failure), i3.reject(t4); + } + return i3.promise; + }, t2.loadConfigForEmbedding = function(e3, t3) { + return b(e3, t3) ? E(e3, t3, true, true) : r2.default.reject("Flow config not compatible"); + }, t2.loadTemplate = function(e3, t3) { + const i3 = r2.default.defer(); + if (t3) try { + E(e3, t3, false).then(function() { + i3.resolve(e3); + }, function(e4) { + i3.reject(e4); + }); + } catch (t4) { + e3.topic.exception(t4, "Error while trying to save"), i3.reject(t4); + } + else i3.reject("No flow template was given"); + return i3.promise; + }, t2.importFlow = V; + const n2 = i2(31635), r2 = n2.__importDefault(i2(33231)), o = i2(17604), a = n2.__importDefault(i2(92140)), s = n2.__importDefault(i2(22917)), l = i2(39504), u = i2(73146), d = i2(17322), c = n2.__importStar(i2(71004)), p = i2(83563), _ = n2.__importDefault(i2(96875)), h = n2.__importStar(i2(36781)), m = n2.__importDefault(i2(98114)), g = i2(63698), f = i2(51940), T = i2(44544), y = i2(47957), S = i2(43096), A = i2(25015), N = (0, g.createNewGetConfigOperationSettings)(true, false, false, false), O = {}, I = {}; + function v(e3, t3) { + return t3 && t3.hasOwnProperty("__type") && a.default.isFunction(S[t3.__type]) ? new S[t3.__type](t3) : t3; + } + function C(e3) { + return e3 ? a.default.isString(e3) ? JSON.parse(e3, v) : e3 : null; + } + function b(e3, t3) { + const i3 = t3.flowMetaData.flowDocumentVersion; + return !!A.canAppSupport(i3) || (e3.topic.error("The flow version ({}) is higher than the UI version ({})", i3, A.currentVersion), false); + } + function E(e3, t3, i3, n3) { + const o2 = r2.default.defer(); + let s2; + try { + s2 = e3.loaded, e3.loaded = false, n3 || (s2 ? h.emitter.emit(h.cleanUpFlow, e3) : h.emitter.emit(h.flowLoadStarted, e3)), e3.loadConfiguration(t3), L(e3), _.default.initializeDesignTimeAndValidate(e3).then(function() { + e3.isDestroyed ? o2.reject() : (i3 || M(e3), o2.resolve()); + }).catch(function(t4) { + e3.topic.errorPromise(t4, "Error occurred when initializing design time"), o2.reject(t4); + }); + } catch (t4) { + e3.topic.exception(t4, "Error while trying to load configuration"), a.default.isBoolean(s2) && (e3.loaded = s2), o2.reject(); + } + return o2.promise; + } + function R(e3, t3, i3, r3) { + return n2.__awaiter(this, void 0, void 0, function* () { + let n3 = {}; + try { + let s2 = (function(e4) { + if (!e4) return null; + if (!a.default.isString(e4)) return e4; + let t4; + try { + t4 = decodeURIComponent((0, l.toBinary)(e4)), t4 = C(t4); + } catch (i4) { + t4 = C(e4); + } + return t4; + })(t3); + if (i3 && s2.type && i3 !== s2.type) { + const e4 = m.default.getFlowTypeDisplayName(i3); + throw (0, o.sprintf)(y.flow.operations.load.typeFailureMessage, e4); + } + if (!b(e3, s2)) throw y.flow.operations.load.versionFailureMessage; + e3.isImporting = true, h.emitter.emit(h.flowImportStarted), n3 = yield e3.preImport(s2); + const u2 = (function(e4, t4) { + const i4 = [], n4 = [], r4 = t4.variables, s3 = e4.info.getAllSchemaProperties(), l2 = a.default.map(s3, (t5) => e4.variableGroup.getVariableByName(t5.name)); + return a.default.each(r4, (t5) => { + const i5 = c.createFlowVariableViewModel(t5, e4); + i5 ? n4.push(i5) : e4.topic.error("Unable to create VariableViewModel for: " + t5.toString()); + }), a.default.each(n4, function(e5) { + const t5 = a.default.findWhere(l2, { lowerName: e5.lowerName }), n5 = new f.ObjectMatchInfo(); + t5 && !t5.isMatch(e5, n5) && i4.push((0, d.bulkObjectOperationFailure)(t5, t5.name, (0, o.sprintf)(y.flow.operations.load.flowSchemaMisMatchErrorPrefix, n5.mismatchDisplayString))); + }), 0 === i4.length ? a.default.map(a.default.uniq(n4.concat(l2), false, (e5) => e5.lowerName), (e5) => e5.model) : { error: true, conflictVariables: i4 }; + })(e3, s2); + if (e3.loaded && h.emitter.emit(h.cleanUpFlow, e3), e3.loaded = false, u2.error) { + let e4 = ""; + throw a.default.each(u2.conflictVariables, function(t4) { + e4 += (0, o.sprintf)(" { %1$s - %2$s } ", t4.displayName, t4.errorMessage); + }), { title: y.flow.operations.load.importFailed, failures: u2.conflictVariables, extraColumns: [{ field: "errorMessage", name: y.generic.branches.error }], text: e4, bulk: true }; + } + if (s2.variables = u2, s2 = (function(e4, t4) { + let i4 = null; + try { + i4 = e4.createFlowConfiguration(t4); + } catch (t5) { + e4.topic.exception(t5, "Error while trying to create flow model"); + } + return i4; + })(e3, s2), !s2) throw y.flow.operations.load.serverFailureMessage; + yield E(e3, s2, true), yield e3.postImport(n3, false, r3), e3.loaded = true; + } catch (t4) { + if (e3.topic.warningWithStack(t4, "failure during flow import"), a.default.isString(t4) || a.default.isObject(t4) && t4.hasOwnProperty("bulk")) throw t4; + throw y.flow.loadFailed; + } finally { + e3.isImporting = false; + } + }); + } + const w = ["_autoCleanedUpSinks", "_path", "_outOfService", "_partAndPartsOutOfService"]; + function D(e3, t3) { + let i3 = t3; + if ("$testId" === e3 && (i3 = void 0), !w.includes(e3)) return i3; + } + function P(e3, t3) { + if (void 0 !== e3) return JSON.stringify(e3, D, t3 ? " " : null); + } + function M(e3, t3) { + if (t3 || !O[e3.instanceId]) { + const t4 = k(e3, true, null); + O[e3.instanceId] = P(t4); + const i3 = k(e3, true, N); + I[e3.instanceId] = P(i3); + } + return O[e3.instanceId]; + } + function F(e3, t3) { + const i3 = k(e3, false, null); + return i3 ? P(i3, t3) : void 0; + } + function L(e3) { + e3.isImporting || (delete O[e3.instanceId], delete I[e3.instanceId]); + } + function x(e3, t3) { + const i3 = e3.displayName + e3.versions.getVersionExtension(); + let n3; + return n3 = t3 ? i3 + ".yaml" : i3 + m.default.getFileExtensionForFlowType(e3.type), n3; + } + function k(e3, i3, n3) { + let r3 = null; + try { + r3 = (function(e4, i4, n4) { + let r4 = e4.createFlowConfiguration(null, n4); + return e4.buildConfiguration(r4, i4, n4), (null == n4 ? void 0 : n4.isForFlowYaml) ? (r4 = s.default.sortObjectByPropertyMap(r4, t2.yamlPropertyOrderMap), a.default.tryWrapObject(r4, e4.wrappedYamlName)) : r4; + })(e3, i3, n3); + } catch (t3) { + e3.topic.exception(t3, "There was an error getting the flow configuration"); + } + return r3; + } + function V(e3, t3, i3, n3, r3) { + const o2 = !i3; + return i3 || (i3 = F(e3)), R(e3, t3, n3, r3).catch((t4) => R(e3, i3, n3, r3).then(() => { + if (o2) throw t4; + })); + } + t2.yamlPropertyOrderMap = { name: 10, description: 20, division: 30, startUpRef: 40, surveyForm: 41, worktype: 41, defaultLanguage: 50, supportedLanguages: 60, initialGreeting: 70, variables: 80, settingsInboundEmailHandling: 90, settingsInQueueCall: 100, settingsOutboundCall: 110, settingsCommonModule: 120, settingsActionDefaults: 130, settingsErrorHandling: 140, settingsMenu: 150, settingsPrompts: 160, settingsSpeechRec: 170, menus: 180, startUpState: 190, periodicState: 200, states: 210, tasks: 220 }, h.serviceListen(h.cleanUpFlow, L), h.serviceListen(h.flowLoadFailed, function(e3) { + e3.loaded = false; + }); + }, 46999: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(81574)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "journeyActionMap"; + } + get id() { + } + get version() { + } + get displayTypeName() { + return "ArchValueJourneyActionMap"; + } + get isArchValueJourneyActionMap() { + return true; + } + } + t2.default = r2; + }, 47e3: (e2, t2, i2) => { + "use strict"; + var n2; + Object.defineProperty(t2, "__esModule", { value: true }); + const r2 = i2(31635), o = r2.__importDefault(i2(46210)), a = i2(30801), s = i2(8625); + class l extends o.default { + constructor(e3) { + super(e3), n2.set(this, void 0), this._agentManager = s.dialogflowAgentManager, r2.__classPrivateFieldSet(this, n2, this.coreFactory.createArchWrapper(e3.intentProbability), "f"); + } + get _actionTypeId() { + return a.dialogflowActionType; + } + addSessionVariableOutputNameValuePair(e3, t3) { + return this._addSessionVariableOutputNameValuePair(e3, t3); + } + get displayTypeName() { + return this._scriptingName; + } + get intentParameters() { + return this.coreFactory.createArchWrapper(this._getCoreViewModel().outputs); + } + get intentProbability() { + return r2.__classPrivateFieldGet(this, n2, "f"); + } + get isArchActionCallDialogflowBot() { + return true; + } + get sessionVariableOutputs() { + return this._sessionVariableOutputs; + } + } + n2 = /* @__PURE__ */ new WeakMap(), t2.default = l; + }, 47016: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importDefault(i2(83663)), o = n2.__importDefault(i2(78432)), a = n2.__importStar(i2(10798)), s = n2.__importDefault(i2(4648)); + class l extends r2.default { + constructor(e3) { + super(e3), this._coreChoice = e3; + } + get _globalTypeName() { + return "choice"; + } + get command() { + return this._getAssignableProperty("command")._setWritableOverride(true); + } + setSkipDisabled(e3) { + if (!a.isFeatureAvailable(s.default.botFlowsSupportDontKnowAnswers)) return; + const t3 = this._getAssignableProperty("command"); + t3 && (t3.outOfService = e3, t3._coreExpression.setUiMetaData("skipDisabled", e3)); + } + get displayTypeName() { + return "ArchValueChoice"; + } + get logStr() { + return this.logStrTypeOnly; + } + get name() { + const e3 = this._infoPropGet("name"); + if (this.logDeprecatedPropertyWarning(e3, "value", "The name property on ArchValueChoice is for compatibility reasons with ArchChoice but you should now be using the value property on ArchValueChoice instead."), this.value.isLiteral) return this.value.valueText; + } + get enabled() { + const e3 = this._infoPropGet("enabled"); + return this.logDeprecatedPropertyWarning(e3, void 0, "an ArchValueChoice is always enabled. Calling this property getter is only here for backwards compatibility with an ArchChoice."), true; + } + set enabled(e3) { + const t3 = this._infoPropGet("enabled"); + this.logDeprecatedPropertyWarning(t3, void 0, "an ArchValueChoice is always enabled. Calling this property setter does nothing and is only here for backwards compatibility with an ArchChoice."); + } + get label() { + return this._getAssignableProperty("label"); + } + get value() { + return this._getAssignableProperty("value"); + } + get type() { + return this._getAssignableProperty("type"); + } + setTypePostback(e3) { + this._getCoreViewModel().type.setAsPostbackOrUrlValue(o.default.CHOICE_TYPES.postback, this._getCoreViewModel(), e3 || (this.value.isLiteral ? this.value.valueText : void 0)); + } + setTypeUrl(e3) { + this._getCoreViewModel().type.setAsPostbackOrUrlValue(o.default.CHOICE_TYPES.url, this._getCoreViewModel(), e3 || (this.value.isLiteral ? this.value.valueText : void 0)); + } + get isArchValueChoice() { + return true; + } + } + t2.default = l; + }, 47038: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(21345)), r2 = i2(30801); + class o extends n2.default { + constructor(e3) { + super(e3), this._snippet = this.coreFactory.createArchWrapper(e3.snippet), this._destination = this.coreFactory.createArchWrapper(e3.destination), this._destinationSnippetId = this.coreFactory.createArchWrapper(e3.destinationSnippetId); + } + get _actionTypeId() { + return r2.submitVoiceSnippetActionType; + } + get snippet() { + return this._snippet; + } + get destination() { + return this._destination; + } + get displayTypeName() { + return "ArchActionSubmitVoiceSnippet"; + } + get isArchActionSubmitVoiceSnippet() { + return true; + } + get destinationSnippetId() { + return this._destinationSnippetId; + } + } + t2.default = o; + }, 47058: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.from = void 0; + var n2 = i2(30131), r2 = i2(19724); + t2.from = function(e3, t3) { + return t3 ? n2.scheduled(e3, t3) : r2.innerFrom(e3); + }; + }, 47101: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.CardType = t2.PROP_TITLE = t2.PROP_IMAGE = t2.PROP_DESCRIPTION = t2.PROP_BUTTONS = void 0; + const n2 = i2(31635), r2 = n2.__importDefault(i2(92140)), o = i2(21637), a = i2(82632), s = n2.__importStar(i2(9345)), l = n2.__importStar(i2(63352)), u = i2(80428), d = i2(14394), c = i2(44521), p = i2(1492), _ = i2(58380), h = n2.__importStar(i2(36781)), m = n2.__importDefault(i2(22917)), g = i2(47957); + t2.PROP_BUTTONS = "buttons", t2.PROP_DESCRIPTION = "description", t2.PROP_IMAGE = "image", t2.PROP_TITLE = "title"; + const f = a.dataTypeLimits.cardDataType.properties.buttons.maxItems.count; + class T extends c.BasedOnChoicesType { + constructor(e3, t3, i3) { + super(e3, t3, i3); + } + get className() { + return "CardType"; + } + canConvertLitToExpression(e3) { + return false; + } + convertLitToExpression(e3, t3, i3) { + return ""; + } + createExpressionOptionClass() { + return new o.ExpressionTypeCardOptions(); + } + get supportsLiteralEditor() { + return true; + } + containsSkipChoice(e3) { + var i3, n3; + return ((null === (n3 = null === (i3 = e3.getProperty(t2.PROP_BUTTONS)) || void 0 === i3 ? void 0 : i3.collectionItems) || void 0 === n3 ? void 0 : n3.items) || []).some((e4) => e4.type.isSkipChoice(e4)); + } + getSkipChoiceButton(e3) { + var i3, n3; + return ((null === (n3 = null === (i3 = e3.getProperty(t2.PROP_BUTTONS)) || void 0 === i3 ? void 0 : i3.collectionItems) || void 0 === n3 ? void 0 : n3.items) || []).find((e4) => e4.type.isSkipChoice(e4)); + } + getPropButtons(e3) { + return e3.getProperty(t2.PROP_BUTTONS); + } + getPropTitle(e3) { + return e3.getProperty(t2.PROP_TITLE); + } + getPropImage(e3) { + return e3.getProperty(t2.PROP_IMAGE); + } + getPropDescription(e3) { + return e3.getProperty(t2.PROP_DESCRIPTION); + } + _processButtons(e3, i3, n3) { + var o2; + if (!e3) return; + const a2 = e3.getProperty(t2.PROP_BUTTONS, true), s2 = this.containsSkipChoice(e3); + a2 && (i3 || !a2.outOfService || s2) && r2.default.each(null === (o2 = a2.collectionItems) || void 0 === o2 ? void 0 : o2.items, (e4) => { + try { + n3(e4); + } catch (e5) { + } + }); + } + removeInvalidNluDiffButtonChoices(e3, t3, i3) { + var n3; + if (!e3 || !t3) return; + const r3 = null === (n3 = e3.type.getPropButtons(e3)) || void 0 === n3 ? void 0 : n3.collectionItems; + if (!r3) return; + let o2 = false; + for (let e4 = r3.items.length - 1; e4 >= 0; e4--) { + const n4 = r3.items[e4]; + n4.type.isInvalidNluChoice(n4, t3) && (i3 && (i3.invalidSlotTypeValuesRemoved || (i3.invalidSlotTypeValuesRemoved = []), i3.invalidSlotTypeValuesRemoved.push(n4.type.getManagedSlotTypeValue(n4))), r3.removeChild(n4), o2 = true); + } + return o2 ? { cardChoicesAreEmpty: o2 } : void 0; + } + canUserDelete(e3) { + return this.getPossibleChoices(e3).every((e4) => e4.type.canUserDelete(e4)); + } + isInCarousel(e3) { + var t3, i3; + if (null === (i3 = null === (t3 = e3.parentList) || void 0 === t3 ? void 0 : t3.propertyParent) || void 0 === i3 ? void 0 : i3.type.isMatch(d.globalTypes.carousel, s.settings.exact)) return true; + } + deleteChoiceAtIndex(e3, t3) { + return this.deleteButtonsChoiceAtIndex(e3, t3); + } + validateLiteral(e3, t3) { + return this.validateDuplicates(e3, t3) && super.validateLiteral(e3, t3); + } + getPossibleChoices(e3, t3, i3) { + const n3 = []; + return e3 ? (this._processButtons(e3, i3, (e4) => { + t3 && !e4.type.isPostbackChoice(e4) || n3.push(e4); + }), n3) : n3; + } + isUnknownAtDesignTime(e3) { + if (!(null == e3 ? void 0 : e3.isLiteralMode) || e3.outOfService) return true; + const i3 = e3.getProperty(t2.PROP_BUTTONS, true); + return !i3 || i3.outOfService; + } + getHasAtLeastOnePostbackChoice(e3) { + var i3; + if (this.isUnknownAtDesignTime(e3)) return; + const n3 = e3.getProperty(t2.PROP_BUTTONS, true); + if (!n3 || n3.outOfService) return; + let o2, a2; + return r2.default.find(null === (i3 = n3.collectionItems) || void 0 === i3 ? void 0 : i3.items, (e4) => { + const t3 = e4.type.getHasPostbackValue(e4); + if (t3) return a2 = true, e4; + (r2.default.isUndefined(t3) || e4.type.isUnknownAtDesignTime(e4)) && (o2 = true); + }), !!a2 || !!o2 && void 0; + } + getPossibleChoiceCount(e3, t3, i3) { + let n3 = 0; + return e3 && this._processButtons(e3, i3, (e4) => { + t3 && !e4.type.isPostbackChoice(e4) || (n3 += 1); + }), n3; + } + couldHaveUnknownPostbackValue(e3) { + if (!e3 || e3.outOfService) return false; + if (!e3.isLiteralMode) return true; + const i3 = e3.getProperty(t2.PROP_BUTTONS, true); + return !i3 || !!r2.default.find(i3.collectionItems.items, (e4) => e4.type.couldHaveUnknownPostbackValue(e4)); + } + createCard(e3, i3, n3) { + const o2 = e3.collectionItems.createItem(null, null, e3.options); + return r2.default.isString(i3) && o2.getProperty(t2.PROP_TITLE).setAsLiteral(i3), r2.default.isString(n3) && o2.getProperty(t2.PROP_DESCRIPTION).setAsLiteral(n3), o2; + } + _ensureButtonsIsLiteral(e3, i3, n3) { + const r3 = e3.getProperty(t2.PROP_BUTTONS); + if (r3) { + if (r3.mode !== l.literal) { + if (!i3) return; + r3.mode = l.literal, r3.removeAll(); + } + if (!(n3 && r3.collectionItems.items.length >= f)) return r3; + } + } + addChoiceForPostbackValue(e3, t3, i3, n3) { + if (!e3 || e3.outOfService || !e3.isLiteralMode || !t3) return; + const r3 = this._ensureButtonsIsLiteral(e3, n3, true); + if (!r3) return; + const o2 = p.ChoiceType.createPostbackChoice(t3, i3, e3.parentFlow, e3.parent); + return r3.collectionItems.addItem(o2), o2; + } + addChoiceClonedFromChoice(e3, t3, i3) { + if (!e3 || e3.outOfService || !e3.isLiteralMode || !t3) return; + const n3 = this._ensureButtonsIsLiteral(e3, i3, true); + if (!n3) return; + const r3 = t3.tempClone(); + return n3.collectionItems.addItem(r3), r3; + } + updateAllowableValues(e3, t3) { + this._processButtons(e3, false, (e4) => { + e4.type.updateAllowableValues(e4, t3); + }); + } + configurePropertyCreationParams(e3, i3, n3) { + var r3; + switch (super.configurePropertyCreationParams(e3, i3, n3), null === (r3 = i3.name) || void 0 === r3 ? void 0 : r3.toLowerCase()) { + case t2.PROP_IMAGE: + n3.options.setIsOptional(true), n3.options.setModeNoValueRuntimeEvaluationStr(g.cardsAndCars.cardType.noImageRuntimeEvaluationStr), n3.options.setModeNoValueSelectionLabel(g.cardsAndCars.cardType.noImage), n3.options.setDefaultToNoValue(true), n3.options.setIninTestingField("card-image"); + break; + case t2.PROP_TITLE: + n3.options.setModeNoValueRuntimeEvaluationStr(g.cardsAndCars.cardType.noTitleRuntimeEvaluationStr), n3.options.setModeNoValueSelectionLabel(g.cardsAndCars.cardType.noTitle), n3.options.setDoNotTransitionToNoValue(true), n3.options.setIninTestingField("card-title"); + break; + case t2.PROP_DESCRIPTION: + n3.options.setIsOptional(true), n3.options.setModeNoValueRuntimeEvaluationStr(g.cardsAndCars.cardType.noDescriptionRuntimeEvaluationStr), n3.options.setModeNoValueSelectionLabel(g.cardsAndCars.cardType.noDescription), n3.options.setDoNotTransitionToNoValue(true), n3.options.setIninTestingField("card-description"); + break; + case t2.PROP_BUTTONS: + n3.options.setIninTestingField("card-buttons"), n3.options.setValueChangedCallback((e4) => { + const t3 = null == e4 ? void 0 : e4.propertyParent; + t3 && this._updateCardPropertiesOOS(t3); + }); + } + } + get hasRichLiteralEditor() { + return true; + } + _hasDisabledSkipChoice(e3) { + var t3; + const i3 = this.getPropButtons(e3); + if (!(null == i3 ? void 0 : i3.isLiteralMode)) return false; + const n3 = (null === (t3 = i3.collectionItems) || void 0 === t3 ? void 0 : t3.items) || []; + for (const e4 of n3) if (e4.type.isSkipDisabled(e4)) return true; + return false; + } + getYamlObjectForLiteralSingleton(e3, t3, i3, n3) { + if (this._hasDisabledSkipChoice(e3)) { + const n4 = new m.default(); + return n4.serializeOutOfService = true, super.getYamlObjectForLiteralSingleton(e3, t3, i3, n4); + } + return super.getYamlObjectForLiteralSingleton(e3, t3, i3, n3); + } + _updateCardPropertiesOOS(e3) { + var t3; + if (!(null == e3 ? void 0 : e3.isLiteralMode)) return; + const i3 = this.getPropImage(e3); + if (!i3) return; + const n3 = this.getPropButtons(e3); + if (!n3 || !n3.isLiteralMode) return; + let r3 = false; + const o2 = (null === (t3 = n3.collectionItems) || void 0 === t3 ? void 0 : t3.items) || []; + for (const e4 of o2) if (e4.type.isSkipDisabled(e4)) { + r3 = true; + break; + } + this.getPropTitle(e3).outOfService = r3, this.getPropDescription(e3).outOfService = r3, i3.outOfService = r3, n3.outOfService = r3; + } + handleSkipItem(e3) { + const t3 = this.getSkipChoiceButton(e3), i3 = this.isCarouselLimitExceeded(e3); + t3 && !t3.type.isSkipDisabled(t3) && i3 && (t3.type.setSkipDisabled(t3, true), (0, _.fireEvent)(t3, h.expressionValueChanged), this._updateCardPropertiesOOS(e3)); + const n3 = !t3 || !t3.type.isSkipDisabled(t3); + return { isSkipChoice: !!t3, skipEnabled: n3, isLimitExceeded: i3 }; + } + updateSkipToggle(e3, t3) { + var i3, n3, r3, o2; + this.isCarouselLimitExceeded(e3) || (null === (o2 = null === (r3 = null === (n3 = null === (i3 = null == e3 ? void 0 : e3.properties) || void 0 === i3 ? void 0 : i3.buttons) || void 0 === n3 ? void 0 : n3.collectionItems) || void 0 === r3 ? void 0 : r3.items) || void 0 === o2 || o2.forEach((e4) => { + e4.type.setSkipDisabled(e4, !t3), (0, _.fireEvent)(e4, h.expressionValueChanged); + }), this._updateCardPropertiesOOS(e3)); + } + isCarouselLimitExceeded(e3) { + var t3, i3, n3, r3, o2, s2, l2, u2; + return !!this.isInCarousel(e3) && (null === (u2 = null === (l2 = null === (s2 = null === (o2 = null === (r3 = null === (n3 = null === (i3 = null === (t3 = null == e3 ? void 0 : e3.parent) || void 0 === t3 ? void 0 : t3.chooser) || void 0 === i3 ? void 0 : i3.properties) || void 0 === n3 ? void 0 : n3.carousel) || void 0 === r3 ? void 0 : r3.properties) || void 0 === o2 ? void 0 : o2.cards) || void 0 === s2 ? void 0 : s2.collectionItems) || void 0 === l2 ? void 0 : l2.items) || void 0 === u2 ? void 0 : u2.length) > a.dataTypeLimits.carouselDataType.properties.cards.maxItems.count; + } + useCustomExpressionEditor(e3) { + if (null == e3 ? void 0 : e3.parentList) return true; + } + } + t2.CardType = T, T.typeIdentifier = u.expressionTypeNames.card; + }, 47140: (e2, t2, i2) => { + const n2 = i2(13240), r2 = i2(7401), { voiceBiometricsActionType: o } = i2(30801); + function a() { + Object.defineProperties(this, { _confidence: { writable: true } }), a.baseConstructor.apply(this, arguments); + } + n2.extend(a, o, true), Object.defineProperties(a.prototype, { pasteReIdOrRename: { value: function(e3) { + a._super.pasteReIdOrRename.apply(this, arguments), this.confidence.pasteReIdOrRename(e3); + } }, pasteResolveOldToNewValues: { value: function(e3) { + a._super.pasteResolveOldToNewValues.apply(this, arguments), this.confidence.pasteResolveOldToNewValues(e3); + } }, confidence: { enumerable: true, get: function() { + return this._confidence; + }, set: function(e3) { + this._confidence = this.reviveItem(e3, r2); + } } }), e2.exports = a; + }, 47163: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importDefault(i2(57606)), o = n2.__importDefault(i2(97883)), a = i2(47957), s = i2(3916); + class l extends o.default { + constructor(e3) { + super(e3); + } + _initializeDesignTime() { + super._initializeDesignTime(), this._initializeErrorBindings(); + } + _initializeErrorBindings() { + this._createErrorSchema().properties.forEach((e3) => { + let t3 = this.errorBindings.items.find((t4) => t4.name === e3.name); + t3 || (t3 = s.createDataPairForSchemaProperty(this.errorBindings, e3), this.errorBindings.addItem(t3)), s.setExpressionWithSchemaProperty(t3.value, e3); + }); + } + _createErrorSchema() { + const e3 = new r2.default({ properties: { errorType: { type: "string", description: a.errorSchema.errorTypeDescription }, errorMessage: { type: "string", description: a.errorSchema.errorMessageDescription } } }, false), t3 = this._getPossibleErrors(); + return t3 && t3.length && e3.setErrorTypeAllowableValues(t3.sort()), e3; + } + static get managedProperties() { + return [{ dataList: true, label: a.inputOutputList.failureOutputs, isOutput: true, property: "errorBindings", yamlOptions: l.createYamlOptions("errorBindings", (e3) => e3.setPropertyName("failureOutputs").setExportOrder(120)) }]; + } + _getPossibleErrors() { + return null; + } + } + l.className = "BaseActionNoInputNoMatchWithFailureOutputsViewModel", t2.default = l; + }, 47222: (e2, t2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.LanguageVersionsUtil = void 0, t2.LanguageVersionsUtil = class { + static ensureLanguageVersions(e3, t3) { + if (!e3) return e3; + if (!Array.isArray(t3)) return e3; + const i2 = e3.languageVersions || {}, n2 = t3.filter((t4) => t4.toLowerCase() !== e3.language.toLowerCase()).reduce((e4, t4) => Object.assign(Object.assign({}, e4), { [t4.toLowerCase()]: i2[t4] || "" }), {}); + return e3.languageVersions = n2, e3; + } + }; + }, 47293: (e2) => { + "use strict"; + e2.exports = function(e3, t2) { + var i2, n2, r2, o, a, s, l, u, d, c, p, _, h, m, g, f, T, y, S, A, N, O, I, v, C; + i2 = e3.state, n2 = e3.next_in, v = e3.input, r2 = n2 + (e3.avail_in - 5), o = e3.next_out, C = e3.output, a = o - (t2 - e3.avail_out), s = o + (e3.avail_out - 257), l = i2.dmax, u = i2.wsize, d = i2.whave, c = i2.wnext, p = i2.window, _ = i2.hold, h = i2.bits, m = i2.lencode, g = i2.distcode, f = (1 << i2.lenbits) - 1, T = (1 << i2.distbits) - 1; + e: do { + h < 15 && (_ += v[n2++] << h, h += 8, _ += v[n2++] << h, h += 8), y = m[_ & f]; + t: for (; ; ) { + if (_ >>>= S = y >>> 24, h -= S, 0 == (S = y >>> 16 & 255)) C[o++] = 65535 & y; + else { + if (!(16 & S)) { + if (64 & S) { + if (32 & S) { + i2.mode = 12; + break e; + } + e3.msg = "invalid literal/length code", i2.mode = 30; + break e; + } + y = m[(65535 & y) + (_ & (1 << S) - 1)]; + continue t; + } + for (A = 65535 & y, (S &= 15) && (h < S && (_ += v[n2++] << h, h += 8), A += _ & (1 << S) - 1, _ >>>= S, h -= S), h < 15 && (_ += v[n2++] << h, h += 8, _ += v[n2++] << h, h += 8), y = g[_ & T]; ; ) { + if (_ >>>= S = y >>> 24, h -= S, 16 & (S = y >>> 16 & 255)) { + if (N = 65535 & y, h < (S &= 15) && (_ += v[n2++] << h, (h += 8) < S && (_ += v[n2++] << h, h += 8)), (N += _ & (1 << S) - 1) > l) { + e3.msg = "invalid distance too far back", i2.mode = 30; + break e; + } + if (_ >>>= S, h -= S, N > (S = o - a)) { + if ((S = N - S) > d && i2.sane) { + e3.msg = "invalid distance too far back", i2.mode = 30; + break e; + } + if (O = 0, I = p, 0 === c) { + if (O += u - S, S < A) { + A -= S; + do { + C[o++] = p[O++]; + } while (--S); + O = o - N, I = C; + } + } else if (c < S) { + if (O += u + c - S, (S -= c) < A) { + A -= S; + do { + C[o++] = p[O++]; + } while (--S); + if (O = 0, c < A) { + A -= S = c; + do { + C[o++] = p[O++]; + } while (--S); + O = o - N, I = C; + } + } + } else if (O += c - S, S < A) { + A -= S; + do { + C[o++] = p[O++]; + } while (--S); + O = o - N, I = C; + } + for (; A > 2; ) C[o++] = I[O++], C[o++] = I[O++], C[o++] = I[O++], A -= 3; + A && (C[o++] = I[O++], A > 1 && (C[o++] = I[O++])); + } else { + O = o - N; + do { + C[o++] = C[O++], C[o++] = C[O++], C[o++] = C[O++], A -= 3; + } while (A > 2); + A && (C[o++] = C[O++], A > 1 && (C[o++] = C[O++])); + } + break; + } + if (64 & S) { + e3.msg = "invalid distance code", i2.mode = 30; + break e; + } + y = g[(65535 & y) + (_ & (1 << S) - 1)]; + } + } + break; + } + } while (n2 < r2 && o < s); + n2 -= A = h >> 3, _ &= (1 << (h -= A << 3)) - 1, e3.next_in = n2, e3.next_out = o, e3.avail_in = n2 < r2 ? r2 - n2 + 5 : 5 - (n2 - r2), e3.avail_out = o < s ? s - o + 257 : 257 - (o - s), i2.hold = _, i2.bits = h; + }; + }, 47380: (e2, t2, i2) => { + const n2 = i2(59865), { lexActionType: r2 } = i2(30801); + function o() { + o.baseConstructor.apply(this, arguments); + } + n2.extend(o, r2, true), e2.exports = o; + }, 47470: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = i2(75599), o = i2(75599), a = i2(5173); + class s extends a.BaseFlowPreviewInstance { + _startPreviewForFlowInfo(e3, t3, i3, a2) { + return n2.__awaiter(this, void 0, void 0, function* () { + let t4; + return t4 = i3 ? yield (0, o.callFlowDebug)(e3.displayName) : yield (0, r2.callFlow)(e3.displayName), null == t4 ? void 0 : t4.id; + }); + } + _isFlowNotificationEventDataForThisPreview(e3, t3) { + return e3 && (null == t3 ? void 0 : t3.conversationId) === e3; + } + get supportsDebugPublishedPreview() { + return true; + } + get supportsPublishedFlowPreview() { + return true; + } + get supportsPreviewPayload() { + return false; + } + } + t2.default = s; + }, 47524: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.questionTypesAll = t2.readOnlyQuestion = t2.multipleChoiceQuestion = t2.npsQuestion = t2.freeTextQuestion = void 0; + const n2 = i2(47957); + t2.freeTextQuestion = { displayString: n2.voiceSurvey.freeTextQuestionLabel, id: "freeTextQuestion" }, t2.npsQuestion = { displayString: n2.voiceSurvey.npsQuestionLabel, id: "npsQuestion" }, t2.multipleChoiceQuestion = { displayString: n2.voiceSurvey.multipleChoiceQuestionLabel, id: "multipleChoiceQuestion" }, t2.readOnlyQuestion = { displayString: n2.voiceSurvey.readOnlyQuestionLabel, id: "readOnlyQuestion" }, t2.questionTypesAll = [t2.freeTextQuestion, t2.npsQuestion, t2.multipleChoiceQuestion, t2.readOnlyQuestion]; + }, 47532: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = i2(17604), o = n2.__importDefault(i2(92140)), a = i2(96618), s = n2.__importDefault(i2(51499)), l = n2.__importDefault(i2(73198)), u = i2(27491), d = i2(80428), c = i2(55299), p = n2.__importStar(i2(12847)), _ = n2.__importStar(i2(17498)), h = i2(81801), m = (i2(55909), i2(33951), i2(47957)), g = i2(97361), f = i2(1360), T = i2(3916), y = []; + class S extends c.BaseClass { + constructor() { + super(), this.defaultInputsWithNoValue = false, this.defaultPageSize = 25, this.searchWildcardSupport = true, this.filterNames = [], this.audioPreview = false, this.currentSearchItems = [], this.currentSearchTotalOnServer = 0, this.isSearching = false, this.items = {}, this.filteredOutItemCount = 0, this.lastRetrievedPage = 0, this.serverWasContacted = false, this.fetchRequestPromises = [], this.idErrorSent = false, this.totalItemsOnServer = 0, this.nextUri = void 0, this.lastReceivedAfter = void 0, this.retrievedUris = [], y.push(this); + } + get requiredAuth() { + } + get dependencyType() { + } + get isConfigurationListManager() { + return true; + } + static resetAll() { + y.forEach((e3) => { + e3.resetState(); + }); + } + _createWrapper(e3, t3, i3) { + return { data: e3, description: t3.description, type: i3 || t3.type, enumValues: t3.enumValues, required: t3.required }; + } + _initialize() { + this.__initialized || (this._registerWithManifest(), this.briefManager && (this.briefManager.fullManager = this), this.dependencyType && (this.dependencyType.configurationListManager = this), this.__initialized = true); + } + get _networkModel() { + return this.apiCallSingle && this.apiCallSingle.api ? this.apiCallSingle.api.DataContract : void 0; + } + _registerWithManifest() { + this.dependencyType && !this.isBriefObjectManager && (this.dependencyType.value || console.error("No dependencyType.value detected. Is your dependencyType defined correctly?"), g.registerObject(this.dependencyType.value, this._networkModel)); + } + addItem(e3, t3, i3) { + var n3; + if (!e3 || this.removeDeleted && e3.deleted) return null; + this.isValidItem(e3) || this.topic.error(`Item is not valid for adding to this listManager:${this.className} -- id: ${e3.id} type: ${e3.type}`); + let r3 = e3.archInternalId || e3.id; + if (this.caseSensitiveIds || (r3 = o.default.isString(r3) ? r3.toLowerCase() : r3), e3.id || this.idErrorSent || (this.topic.errorWithStack(null, `Server item does not have an id property: ${JSON.stringify(e3)}`), this.idErrorSent = true), this._rawServerCache && (this._rawServerCache[r3] && !t3 || (this._rawServerCache[r3] = e3)), t3 && (null === (n3 = this.briefManager) || void 0 === n3 ? void 0 : n3.getItem(r3)) && this.briefManager.addItem(e3, true, false), this.items[r3] && t3) { + const t4 = this._createItemViewModel(e3); + return this.items[r3].usages && o.default.keys(this.items[r3].usages).length > 0 && (t4.usages = this.items[r3].usages), this.items[r3] = t4, this.items[r3]; + } + return this.knownEmptySearches && (this.knownEmptySearches = o.default.without(this.knownEmptySearches, e3.name)), e3 = this._createItemViewModel(e3), this.items[r3] || (this.items[r3] = e3), this.items[r3]; + } + _createItemViewModel(e3) { + return e3; + } + addClipboardDependencies(e3, t3, i3) { + if (!o.default.isString(this.uiMetadataSectionName)) return; + if (!o.default.isString(t3) || 0 === t3.length) return; + if (!o.default.isObject(i3)) return; + const n3 = i3.getUiMetadataInfoById(this.uiMetadataSectionName, t3); + n3 && e3.copyCutAddDependencyFlowUiMetaData(this.uiMetadataSectionName, t3, n3); + } + addItemToFlowMetadata(e3, t3, i3) { + if (e3.isReadOnly) return; + if (!this.uiMetadataSectionName) return void p.error(`no uiMetadataSectionName set on ${this.className}`); + const n3 = e3.isFlowViewModel ? e3 : e3.parentFlow; + if (!i3 || !n3) return false; + i3 = this.getCaseSensitiveCompliantId(i3); + const r3 = this._rawServerCache[i3]; + return !!r3 && (n3.getUiMetadataInfoById(this.uiMetadataSectionName, i3) && n3.tryRemoveUiMetadataInfo(e3, this.uiMetadataSectionName, i3, this.actionsForUsageSearch, this.actionPropertyForUsageSearch, true), n3.setUiMetadataInfo(this.uiMetadataSectionName, r3, this.idEquivalent), true); + } + areServerItemViewModelsEqual(e3, t3) { + return e3 === t3 || o.default.isEqual(e3.model, t3.model); + } + get canLoadMore() { + return this.nextUri || this.retrievedUris.length ? !!this.nextUri && !this.retrievedUris.includes(this.nextUri) : this.isSearching ? this.currentSearchItems.length < this.currentSearchTotalOnServer - this.filteredOutItemCount : !o.default.isUndefined(this.lastReceivedAfter) || this.numProcessedServerItems < this.totalItemsOnServer; + } + fetchItem(e3, t3, i3) { + if (!this.apiCallSingle) { + const e4 = "This list manager has not defined apiCallSingle"; + return this.topic.error(e4), Promise.reject(e4); + } + const n3 = this.fetchRequestPromises.find((i4) => i4.id === e3 && i4.includeDeleted === t3); + if (n3 && n3.promise) return n3.promise; + const r3 = { id: e3, includeDeleted: t3, promise: null }; + return this.fetchRequestPromises.push(r3), r3.promise = this.apiCallSingle(e3, i3).then((t4) => { + if (this.requiredAuth && (this.insufficientAuthorizations = false), o.default.isArray(t4.entities) && 0 === t4.entities.length) { + const e4 = "Item does not exist."; + return Promise.reject(e4); + } + const i4 = (null == t4 ? void 0 : t4.entities) ? o.default.findWhere(t4.entities, { id: e3 }) : t4; + if (i4) return this.addItem(i4, true); + }).catch((t4) => { + throw 403 === t4.status && this.requiredAuth && (this.insufficientAuthorizations = true), this.removeItemWithId(e3, true), t4; + }).finally(() => { + const e4 = this.fetchRequestPromises.indexOf(r3); + e4 >= 0 ? this.fetchRequestPromises.splice(e4, 1) : this.topic.error("did not find request in cache"); + }), r3.promise; + } + getOrFetchItemWithRetry(e3) { + return n2.__awaiter(this, arguments, void 0, function* (e4, t3 = 3) { + if (!(null == e4 ? void 0 : e4.length)) return; + let i3 = this.getItem(e4) || (yield this.fetchItem(e4)); + if (i3) return i3; + let n3 = 0; + for (; n3 < t3; ) { + if (yield new Promise((e5) => setTimeout(e5, 1e3)), i3 = yield this.fetchItem(e4), i3) return i3; + n3++; + } + this.topic.warning(`getOrFetchItemWithRetry - Could not find item with Id: ${e4} after ${t3} ${1 === t3 ? "retry" : "retries"}.`); + }); + } + get filteredOutItemText() { + return this.shouldRequestAllPages || this.filteredOutItemCount < 1 ? "" : this.filteredOutItemCount > 1 ? (0, r2.sprintf)(m.search.filteredOutItemsMoreThanOne, this.filteredOutItemCount) : m.search.filteredOutItemOne; + } + getBriefManagerWithFallback() { + return this.briefManager || this; + } + getCachedServerPropertyCommon(e3, t3, i3, n3, r3) { + if (!e3 || !t3) return null; + const o2 = this.getItemFromFlowMetadata(n3, t3); + return o2 && o2.getProperty ? o2.getProperty(e3, i3, r3) : null; + } + getCachedServerPropertyById(e3, t3, i3, n3) { + return this.getCachedServerPropertyCommon(e3, t3, i3, n3, false); + } + getCachedServerPropertyByName(e3, t3, i3, n3) { + return this.getCachedServerPropertyCommon(e3, t3, i3, n3, true); + } + getCaseSensitiveCompliantId(e3) { + return this.caseSensitiveIds ? e3 : o.default.isString(e3) ? e3.toLowerCase() : e3; + } + getItem(e3, t3) { + return e3 = this.getCaseSensitiveCompliantId(e3), this.items[e3]; + } + getOrFetchItem(e3, t3, i3) { + return n2.__awaiter(this, void 0, void 0, function* () { + const n3 = this.getItem(e3); + return n3 ? Promise.resolve(n3) : this.fetchItem(e3, t3, i3); + }); + } + getItemFromFullManager(e3) { + if (!this.fullManager) return null; + let t3; + const i3 = this.fullManager.getItem(e3); + return i3 && (t3 = this.addItem(i3._model ? i3._model : i3, true, false)), t3; + } + getItemFromFlowMetadata(e3, t3) { + const i3 = e3.isFlowViewModel ? e3 : e3.parentFlow; + if (!i3) return null; + let n3; + const r3 = {}; + this.idEquivalent ? r3[this.idEquivalent] = t3 : r3.id = t3; + const o2 = i3.getUiMetadataInfo(this.uiMetadataSectionName, r3); + if (o2) { + const e4 = new this._networkModel(o2); + n3 = this._createItemViewModel(e4), Object.defineProperties(n3, { isFlowCachedVersion: { value: true } }); + } + return n3; + } + findOrFetchItemByName(e3, t3) { + const i3 = this.findItemByName(e3), n3 = "name", r3 = e3; + if (i3) return Promise.resolve(i3); + const o2 = this.isBriefObjectManager ? this.fullManager : this; + return o2.search(e3, n3, f.exactMatch, void 0, t3, null, null, true).then((t4) => { + const i4 = []; + for (let r4 = 0; r4 < t4.length; r4++) t4[r4][n3].toLowerCase() === e3.toLowerCase() && i4.push(t4[r4]); + if (1 === i4.length) return Promise.resolve(i4[0]); + if (i4.length > 1) { + const e4 = []; + let t5; + e4.push("find by '" + o2.className + "' by value of '" + r3 + "' - there is more than one case insensitive match (count: " + i4.length + ")"), e4.push(" now attempting to find a case sensitive match."); + for (let o3 = 0; o3 < i4.length; o3++) { + const a2 = " item[" + o3 + "] - value '" + i4[o3][n3] + "' - "; + if (i4[o3][n3] === r3) { + if (t5) return e4.push(a2 + "is another case sensitive match - unable to disambiguate network results"), Promise.reject(e4.join("\n")); + e4.push(a2 + "is a case sensitive match - checking additional items to see if there are any other matches."), t5 = i4[o3]; + } else e4.push(a2 + "is not a case sensitive match."); + } + return e4.push(" found by '" + this.className + "' with value of '" + r3 + "'."), Promise.resolve(t5); + } + return Promise.reject(`find in '${this.className}' by value of '${r3}' - no matches for '${r3}'`); + }).catch(() => Promise.reject(`find in '${this.className}' by value of '${r3}' - no matches for '${r3}'`)); + } + findItemByName(e3) { + let t3 = o.default.find(this.items, (t4) => t4.name === e3); + return !t3 && this.isBriefObjectManager && (t3 = this.fullManager.findItemByName(e3)), t3; + } + additionalItemFilter(e3) { + return e3; + } + getConfigListPage(e3, t3) { + if (e3 && e3.isConfigListSearchParams || p.error("configListSearchParams is not a ConfigListSearchParams"), !this.apiCallList) { + const e4 = `not apiCallList set on manager: ${this.className}`; + return p.error(e4), Promise.reject(e4); + } + return this.additionalQueryParams && e3.addAdditionalParams(this.additionalQueryParams), this.apiCallList(e3).then((i3) => { + var n3; + this.requiredAuth && (this.insufficientAuthorizations = false), this.serverWasContacted = true; + let r3 = i3.entities; + return e3.searchTerm || this.isSearching && !this.isDependentOnCategory || (this.lastRetrievedPage = Number.isInteger(e3.pageNumber) ? e3.pageNumber : 1, o.default.isUndefined(i3.after) ? o.default.isUndefined(null === (n3 = null == i3 ? void 0 : i3.cursors) || void 0 === n3 ? void 0 : n3.after) ? this.lastReceivedAfter = void 0 : this.lastReceivedAfter = i3.cursors.after : this.lastReceivedAfter = i3.after), this.additionalItemFilter && (r3 = this.additionalItemFilter(r3)), this.isSearching ? this.currentSearchTotalOnServer = i3.total : this.totalItemsOnServer = i3.total, this.nextUri = i3.nextUri, e3.searchTerm && 0 === r3.length && this.knownEmptySearches && !o.default.contains(this.knownEmptySearches, e3.searchTerm) && this.knownEmptySearches.push(e3.searchTerm), o.default.each(r3, (e4) => { + const i4 = this.addItem(e4); + i4 && !o.default.findWhere(this.currentSearchItems, { id: i4.id }) && this.currentSearchItems.push(i4), o.default.isArray(t3) && i4 && !o.default.findWhere(t3, { id: i4.id }) && t3.push(i4); + }), o.default.isArray(t3) ? t3 : this.isSearching ? this.currentSearchItems : o.default.values(this.items); + }, (e4) => (403 === e4.status && this.requiredAuth && (this.insufficientAuthorizations = true), Promise.reject(e4))); + } + get insufficientAuthorizations() { + return this.requiredAuth && !h.externalAuthorizations.checkHasRequiredAuth(this.requiredAuth); + } + set insufficientAuthorizations(e3) { + this.requiredAuth && h.externalAuthorizations.setAuthorization(!e3, this.requiredAuth); + } + forceFallback(e3, t3) { + return a.flowTypes.isVxmlgenFlowType(null == e3 ? void 0 : e3.type) && (null == t3 ? void 0 : t3.dataType) === d.expressionTypeNames.date; + } + mergeSchemaProperties(e3, t3) { + const i3 = []; + return o.default.each(e3, (e4) => { + const n3 = t3.parentFlow; + let r3, a2 = e4.type; + if ((null == n3 ? void 0 : n3.type) && (!e4.type.isAvailableForFlow(n3) || this.forceFallback(n3, e4.type))) { + const t4 = e4.setFallbackType(n3.type); + t4 && t4.isAvailableForFlow(n3) ? (r3 = a2, a2 = t4, this.topic.info(`Type '${e4.type.displayString}' is not available in flowType '${n3.type}', using its fallback: '${a2.displayString}'`)) : this.topic.error(`Neither '${e4.type.displayString}' nor its fallback '${a2.displayString}' is available for this flow type '${n3.type}', using original`); + } + let s2 = 0, l2 = o.default.find(t3.items, (t4, i4) => { + s2 = i4; + const n4 = t4.value.type.isMatch(a2); + return !!(e4.id && t4.referenceId && n4 && e4.id === t4.referenceId) || !!t4.name && t4.name.toLowerCase() === e4.name.toLowerCase() && n4; + }); + if (l2 && l2.value.type.isCollection === a2.isCollection ? t3.items.splice(s2, 1) : l2 = T.createDataPairForSchemaProperty(t3, e4, a2), T.setExpressionWithSchemaProperty(l2.value, e4), r3) { + const e5 = u.expressionDataService.getStringConversionExamples(l2.value.type, r3); + (null == e5 ? void 0 : e5.length) && l2.value.options.setDescriptionAdditionalInfoSection({ title: m.expression.expressionExamples, entries: e5 }); + } + t3.isInputList || (e4.required = false, l2.value.options.setIsOptional(true)), this.defaultInputsWithNoValue && (o.default.isNull(l2.value.text) || o.default.isUndefined(l2.value.text) || o.default.isEmpty(l2.value.text)) && !e4.required && l2.value.setAsNoValue(), l2.name = e4.name, l2.referenceId = e4.id, i3.push(this._createWrapper(l2, e4, a2)); + }), t3.clearAndAddItems(i3.map((e4) => e4.data)), i3; + } + get numItems() { + return Object.keys(this.items).length; + } + get numProcessedServerItems() { + const e3 = this.numItems; + return this.filteredOutItemCount > 0 ? e3 + this.filteredOutItemCount : e3; + } + removeItemWithId(e3, t3) { + this.caseSensitiveIds || (e3 = o.default.isString(e3) ? e3.toLowerCase() : e3), delete this.items[e3], !t3 && this.briefManager && this.briefManager.removeItemWithId(e3, true); + } + removeItemWithName(e3, t3) { + let i3; + o.default.each(this.items, (t4) => { + t4.name === e3 && (i3 = t4.id); + }), delete this.items[i3], !t3 && this.briefManager && this.briefManager.removeItemWithName(e3, true); + } + registerConsumer(e3, t3, i3, n3) { + _.registerConsumer(e3, this.dependencyContext, t3, i3, _.NO_VERSION, this.dependencyType, e3.parentFlow, n3); + } + resetState() { + this.items = {}, this.serverWasContacted = false, this.lastRetrievedPage = 0, this.lastReceivedAfter = void 0, this.currentSearchItems.length = 0, this.currentSearchTotalOnServer = 0, this.totalItemsOnServer = 0, this.nextUri = void 0, this.retrievedUris = [], this.filteredOutItemCount = 0, this.knownEmptySearches && (this.knownEmptySearches.length = 0); + } + search(e3, t3, i3, r3, a2, l2, u2, d2) { + return n2.__awaiter(this, void 0, void 0, function* () { + if (this.isSearching = !!e3 || this.isDependentOnCategory, (e3 !== this.currentSearchTerm || d2) && (this.currentSearchItems.length = 0, this.currentSearchTotalOnServer = 0), this.currentSearchTerm = e3, !e3 && !r3 && !a2) return o.default.values(this.items); + if (this.knownEmptySearches && o.default.contains(this.knownEmptySearches, e3) && !l2) return o.default.isObject(u2) && (u2.isAutomaticEmptyResults = true), []; + let n3, c2; + this.nextUri && !this.retrievedUris.includes(this.nextUri) ? n3 = this.nextUri : (!this.nextUri && this.retrievedUris.length || this.nextUri && this.retrievedUris.includes(this.nextUri)) && (n3 = this.retrievedUris[this.retrievedUris.length - 1]), this.lastReceivedAfter && r3 ? c2 = this.lastReceivedAfter : n3 && (c2 = this._getAfterCursorFormUri(n3)); + const p2 = new s.default(this, { searchTerm: e3, sortBy: this.sortNotSupported ? void 0 : "name", sortOrder: this.sortOrder, matchingStyle: i3, searchField: t3, additionalParams: a2, getNextPage: r3, after: c2 }); + if (this.suppressSearch && (this.shouldRequestAllPages || p2.searchTerm)) { + const e4 = []; + if (yield this.getConfigListPage(p2, e4), this.currentSearchTotalOnServer) for (; this.numProcessedServerItems < (this.isSearching ? this.currentSearchTotalOnServer : this.totalItemsOnServer); ) p2.pageNumber += 1, yield this.getConfigListPage(p2, e4); + else for (; this.nextUri; ) n3 = this.nextUri, p2.after = this._getAfterCursorFormUri(n3), yield this.getConfigListPage(p2, e4); + return e4; + } + return yield this.getConfigListPage(p2); + }); + } + _getAfterCursorFormUri(e3) { + var t3; + let i3 = e3.indexOf("after="); + if (i3 > 0) { + i3 += 6; + const n3 = e3.substring(i3, i3 + l.default.uuidStrLen); + if (this.retrievedUris.includes(e3) || this.retrievedUris.push(e3), (null === (t3 = null == n3 ? void 0 : n3.trim()) || void 0 === t3 ? void 0 : t3.length) === l.default.uuidStrLen) return n3; + } + } + tryRemoveItemFromFlowMetadata(e3, t3, i3) { + (e3.isFlowViewModel ? e3 : e3.parentFlow).tryRemoveUiMetadataInfo(e3, this.uiMetadataSectionName, t3, this.actionsForUsageSearch, this.actionPropertyForUsageSearch, i3); + } + isValidItem(e3) { + return true; + } + } + S.allListManagers = y, t2.default = S; + }, 47563: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importDefault(i2(92140)), o = n2.__importDefault(i2(2318)), a = n2.__importDefault(i2(78432)), s = i2(26847), l = n2.__importDefault(i2(6074)); + class u extends l.default { + constructor(e3) { + super(e3), this._checkItemUndefinedOrNull(this._infoParmCtor("coreActionPathViewModel"), e3), this._coreActionPathViewModel = e3; + } + get displayTypeName() { + return "ArchActionOutput"; + } + get enabled() { + return !this._coreActionPathViewModel.outOfService; + } + set enabled(e3) { + const t3 = this._infoPropSet("newValue", "enabled"); + this._checkItemIsValidLiteralBool(t3, e3, false), this._checkItem(t3, !this.canEnableDisable, "this output cannot be enabled or disabled. Remember you can check the canEnableDisable property on the ArchActionOutput to see if the enabled property can be set or not."), this._coreActionPathViewModel.outOfService = !e3, this.logNote(`enabled property successfully set to ${e3}`); + } + get id() { + const e3 = r2.default.findKey(s.outputIds, (e4) => e4 === this._coreActionPathViewModel.id); + return r2.default.isUndefined(e3) ? this._coreActionPathViewModel.id : e3; + } + get isDynamic() { + return !this._coreActionPathViewModel.isBuiltInBranch; + } + get isArchActionOutput() { + return true; + } + get logStr() { + if (!this._coreActionPathViewModel) return this.logStrTypeOnly; + const e3 = []; + return this._appendLogStrName(e3, this.name), this._appendLogStrType(e3, this.displayTypeName), this._appendLogStrParentParts(e3, this._coreActionPathViewModel.parent), this._createLogStrFromParts(e3); + } + get label() { + return this._coreActionPathViewModel.label; + } + get name() { + return this.label; + } + get parentAction() { + return this.coreFactory.createArchWrapper(this._coreActionPathViewModel.parent); + } + get parentFlow() { + const e3 = this.parentAction; + return null == e3 ? void 0 : e3.parentFlow; + } + get canEnableDisable() { + const e3 = this.parentAction; + return e3 && !e3.parentFlow.isReadOnly && !this.isMenuChoiceContainer && (e3.isArchActionAskForIntent && (this.id !== a.default.OUTPUT_IDS.knowledge || o.default.currentUserCanUseKnowledge) || this.id === a.default.OUTPUT_IDS.maxNoInputs && !this._coreActionPathViewModel.isUnavailable || this.id === a.default.OUTPUT_IDS.maxNoMatches && !this._coreActionPathViewModel.isUnavailable || this.id === a.default.OUTPUT_IDS.skipResponseCapture && !this._coreActionPathViewModel.isUnavailable); + } + } + t2.default = u; + }, 47567: (e2, t2, i2) => { + "use strict"; + const n2 = i2(31635), r2 = i2(12179), o = i2(12457), a = i2(78513), s = n2.__importDefault(i2(27203)), l = n2.__importDefault(i2(97891)), u = n2.__importDefault(i2(5730)), d = i2(80428), c = i2(47957); + class p extends u.default { + constructor(e3, t3) { + super(e3.parentFlow, e3), this._loadModel(t3); + } + get isLoopAction() { + return true; + } + static get branchInfo() { + return [s.default.loop]; + } + static get managedProperties() { + return [{ label: c.loop.indexDataName, options: a.ExpressionTypeIntegerOptions.create((e3) => e3.setAsOutput()), property: "currentIndex", type: d.expressionTypeNames.integer }, { label: c.loopUntil.maxLoopCount, options: a.ExpressionTypeIntegerOptions.create((e3) => e3.setDefaultText(1).setIninTestingField("loopExpression").facets.setMinInt(1, true).setMaxInt(99, true)), property: "loopCount", type: d.expressionTypeNames.integer }]; + } + getDetails() { + return this.loopCount && this.loopCount.text && this.currentIndex && this.currentIndex.text ? new o.ActionDetails([c.loop.loops, c.loop.index], [this.loopCount.text, this.currentIndex.text]) : null; + } + validate(e3) { + super.validate(e3), this.loopCount.validate(e3) && this.loopCount.isLiteralMode && parseInt(this.loopCount.config.lit.text, 10) < 1 && e3.addWarning(this, c.loop.lessThanOne), this.currentIndex.validate(e3), this.branches[0].terminatesTaskOrFlow && e3.addError(this, c.loop.terminating); + } + } + p.info = l.default.createActionInfo({ actionClass: p, canBeInTask: true, helpTopic: r2.helpTopics.actions.loop, modelClass: i2(84111), name: c.actions.loop, scriptingName: "ArchActionLoop" }), t2.A = p; + }, 47577: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(20692)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "externalOrganizationCollection"; + } + get initialValue() { + return this._initialValue; + } + get displayTypeName() { + return "ArchVariableExternalOrganizationCollection"; + } + get isArchVariableExternalOrganizationCollection() { + return true; + } + } + t2.default = r2; + }, 47598: (e2, t2, i2) => { + "use strict"; + const n2 = i2(31635), r2 = i2(17604), o = n2.__importDefault(i2(92140)), a = i2(98552), s = i2(14394), l = n2.__importStar(i2(36781)), u = n2.__importStar(i2(58380)), d = n2.__importStar(i2(1115)), c = i2(12179), p = i2(13116), _ = i2(12457), h = n2.__importDefault(i2(97891)), m = n2.__importDefault(i2(5730)), g = i2(90807), f = i2(7401), T = i2(47957); + class y extends m.default { + static get managedProperties() { + return [{ property: "slots", dataList: true, label: T.clearSlot.slotsLabel, yamlOptions: y.createYamlOptions("slots", (e3) => e3.setWrapDataPairNameAndValueInString("slot")) }]; + } + constructor(e3, t3) { + super(e3.parentFlow, e3), this.slotErrors = [], this._loadModel(t3), o.default.each(this.slots.items, (e4) => { + e4 && e4.value && (e4.value.outOfService = true); + }); + } + addSlot() { + const e3 = this.slots.add(new g({ value: new f() }), s.globalTypes.boolean); + return e3.value.setConfigAndMetaData(a.expressionItems.emp(e3.value.type)), e3.value.outOfService = true, e3; + } + getSelectedSlots() { + return o.default.pluck(this.slots.items, "name"); + } + _setupEventSinks() { + this.slotListOrderChangedSink = u.createEventSinkObject(l.listOrderChanged, this, () => { + this.initializeDesignTimeCalled && d.validateAction(this, false, true); + }), u.registerEventSinkForEventEmitter(this.slots.id, this.slotListOrderChangedSink); + } + _clearEventSinks() { + u.unregisterEventSinkForEventEmitter(this.slots.id, this.slotListOrderChangedSink), u.unregisterEventSink(this.slotListOrderChangedSink); + } + propertyChanged(e3) { + super.propertyChanged(e3), this.parentFlow.loaded && this.initializeDesignTimeCalled && e3 === this.slots && d.validateAction(this, false, true); + } + _initializeDesignTime() { + super._initializeDesignTime(), this._setupEventSinks(); + } + setNewInstanceDefaults() { + return super.setNewInstanceDefaults(); + } + _preDestroy() { + super._preDestroy(), this._clearEventSinks(); + } + getDetails() { + if (this.slots.items.length) { + const e3 = [], t3 = []; + return o.default.each(this.slots.items, (i3, n3) => { + e3.push(n3 + 1), t3.push(i3.name); + }), new _.ActionDetails(e3, t3); + } + return null; + } + getAvailableSlotNames() { + return this.parentFlow.getAvailableSlotNames(true, false); + } + validate(e3) { + var t3; + super.validate(e3), this.slotErrors.length = 0; + const i3 = null === (t3 = this.slots) || void 0 === t3 ? void 0 : t3.items; + if (!i3 || 0 === i3.length) return void e3.addWarning(this, T.clearSlot.noSlotsToClearWarning); + const n3 = this.getSelectedSlots(), a2 = o.default.countBy(n3), s2 = []; + this.slots.items.forEach((t4, i4) => { + this.slotErrors.push(void 0); + const n4 = null == t4 ? void 0 : t4.name; + let o2; + const l2 = this.parentFlow.getAllSlotsToSlotHandlingMap().get(n4); + n4 ? void 0 === l2 ? o2 = (0, r2.sprintf)(T.askForSlot.selectedSlotError, null == t4 ? void 0 : t4.name) : l2 !== p.SlotHandlingType.standardSlot ? o2 = (0, r2.sprintf)(T.voiceSurvey.voiceSurveySlotNotAllowedErrorMessage, n4) : a2[n4] > 1 && !s2[n4] && (o2 = (0, r2.sprintf)(T.clearSlot.specifiedMoreThanOnce, null == t4 ? void 0 : t4.name), s2[n4] = true) : o2 = T.clearSlot.mustSpecifySlot, o2 && (this.slotErrors[i4] = o2, e3.addError(this, o2)); + }); + } + } + y.info = h.default.createActionInfo({ actionClass: y, canBeInTask: true, helpTopic: c.helpTopics.actions.clearSlot, modelClass: i2(8236), name: T.clearSlot.clearSlotTitle, scriptingName: "ArchActionClearSlot" }), t2.A = y; + }, 47628: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.ServerActionTimeoutSettings = void 0; + const n2 = i2(31635).__importStar(i2(63824)), r2 = i2(55867), o = i2(47957); + class a extends r2.BaseActionProperty { + constructor(e3, t3, i3) { + super(e3, t3), this._defaultTimeoutLiteral = i3, this.action.timeout.options.setAllowModeExpression(!!this.action.parentFlow.isAutomateFlowType), Object.defineProperties(e3, { supportsTimeout: { value: true, writable: false }, useSuggestedTimeout: { get: () => e3.model.useSuggestedTimeout, set: (t4) => { + e3.model.useSuggestedTimeout = !!t4, e3.timeout.outOfService = !!t4; + } }, timeoutTooltip: { get: () => n2.getSearchStringFromLiteral(this._defaultTimeoutLiteral) }, resetTimeout: { value: () => { + this.reset(); + } } }); + } + reset() { + this.action.timeout.text = this._defaultTimeoutLiteral, this.action.useSuggestedTimeout = true; + } + setNewInstanceDefaults() { + super.setNewInstanceDefaults(), this.reset(); + } + validate(e3) { + super.validate(e3), "P0D0H0M0S0F" !== this.action.timeout.text || this.action.useSuggestedTimeout || e3.addError(this.action, o.bridgeServer.timeoutOfZero); + } + static createCreateDetails(e3) { + return { create: (t3, i3) => new a(t3, i3, e3), getCreateClass: () => a, modelProperties: [] }; + } + } + t2.ServerActionTimeoutSettings = a; + }, 47652: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importDefault(i2(92140)), o = i2(30801), a = n2.__importDefault(i2(56549)), s = n2.__importDefault(i2(66978)), l = n2.__importDefault(i2(79200)); + class u extends l.default { + constructor(e3) { + super(e3); + } + get _actionTypeId() { + return o.secureActionActionType; + } + get displayTypeName() { + return this._scriptingName; + } + get isArchActionCallDataSecure() { + return true; + } + setDataSecureActionByIdAsync(e3, t3) { + return this._checkItemIsValidLiteralString(this._infoParm("secureActionId", "setDataSecureActionByIdAsync"), e3, false), this._checkItemIsValidFunction(this._infoParm("callbackFunction", "setDataSecureActionByIdAsync"), t3, true), this._setIntegrationActionByIdAsync(e3, t3, "secure"); + } + setDataSecureActionByNameAsync(e3, t3, i3) { + let n3; + return this._checkItemIsValidLiteralString(this._infoParm("dataSecureActionName", "setDataSecureActionByNameAsync"), e3), this._checkItemIsValidFunction(this._infoParm("callbackFunction", "setDataSecureActionByNameAsync"), t3, true), this._checkItemIsValidLiteralString(this._infoParm("categoryName", "setDataSecureActionByNameAsync"), i3, true), r2.default.isString(i3) && i3.length && (n3 = { category: i3 }), a.default.findItemByValueAsync(this._getCoreViewModel().serverManager, e3, "secure data action", "name", "name", n3).then(function(o2) { + return this.logNote(`found partial info for the secure data action named '${o2.name}' (id: ${o2.id}) for the passed secure data action name of '${e3}'${r2.default.isUndefined(n3) ? "." : ` in the passed category name of '${i3}'.`} Getting full secure data action details.`), s.default.addPromise(this.setDataSecureActionByIdAsync(o2.id, t3), this); + }.bind(this)); + } + } + t2.default = u; + }, 47673: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = i2(30801), o = n2.__importDefault(i2(62028)); + class a extends o.default { + constructor(e3) { + super(e3); + } + get _actionTypeId() { + return r2.returnToAgentActionType; + } + get displayTypeName() { + return "ArchMenuReturnToAgent"; + } + get actionReturnToAgent() { + return this._archAction; + } + get isArchMenuReturnToAgent() { + return true; + } + } + t2.default = a; + }, 47719: (e2, t2, i2) => { + const n2 = i2(16113), { evaluateScheduleActionType: r2 } = i2(30801), o = i2(7401); + function a() { + Object.defineProperties(this, { _timeZone: { writable: true }, _schedule: { writable: true } }), this.evaluateEmergencyGroup = false, this.scheduleId = void 0, this.scheduleName = void 0, a.baseConstructor.apply(this, arguments); + } + n2.extend(a, r2, true), Object.defineProperties(a.prototype, { pasteReIdOrRename: { value: function(e3) { + a._super.pasteReIdOrRename.apply(this, arguments), this.timeZone.pasteReIdOrRename(e3), this.schedule.pasteReIdOrRename(e3); + } }, pasteResolveOldToNewValues: { value: function(e3) { + a._super.pasteResolveOldToNewValues.apply(this, arguments), this.timeZone.pasteResolveOldToNewValues(e3), this.schedule.pasteResolveOldToNewValues(e3); + } }, timeZone: { enumerable: true, get: function() { + return this._timeZone; + }, set: function(e3) { + this._timeZone = this.reviveItem(e3, o); + } }, schedule: { enumerable: true, get: function() { + return this._schedule; + }, set: function(e3) { + this._schedule = this.reviveItem(e3, o); + } } }), e2.exports = a; + }, 47743: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(67336)); + class r2 extends n2.default { + constructor(e3) { + super(e3), this._coreVariableExpressionPair = e3; + } + get displayTypeName() { + return "ArchBaseVariableValuePair"; + } + get isArchBaseVariableValuePair() { + return true; + } + get logStr() { + if (!this._getCoreViewModel()) return this.logStrTypeOnly; + const e3 = []; + return this._appendLogStrType(e3, this.displayTypeName), this._createLogStrFromParts(e3); + } + setVariableToAssignTo(e3) { + this._checkItem(this._infoParm("variable", "setVariableToAssignTo"), !e3, "no variable specified to set for the variable to assign to."), this.valueVariableToAssignTo.setVariable(e3); + } + get valueVariableToAssignTo() { + return this.coreFactory.createArchWrapper(this._coreVariableExpressionPair.variable); + } + get valueToAssign() { + return this.coreFactory.createArchWrapper(this._coreVariableExpressionPair.expression); + } + } + t2.default = r2; + }, 47782: (e2, t2, i2) => { + "use strict"; + var n2; + Object.defineProperty(t2, "__esModule", { value: true }); + const r2 = i2(31635), o = i2(80295), a = i2(19596), s = i2(80295), l = r2.__importDefault(i2(95079)), u = r2.__importStar(i2(75800)); + class d extends a.DataContract { + constructor(e3) { + super(e3), (0, s.makeUnenumerable)(this, "_id"), (0, s.makeUnenumerable)(this, "_overloads"); + } + get id() { + return this._id; + } + set id(e3) { + this._id = e3; + } + get overloads() { + return this._overloads; + } + set overloads(e3) { + this._overloads = this.reviveMap(e3, l.default, true); + } + } + t2.default = d, r2.__decorate([(0, o.enumerable)(true), r2.__metadata("design:type", String), r2.__metadata("design:paramtypes", [String])], d.prototype, "id", null), r2.__decorate([(0, o.enumerable)(true), r2.__metadata("design:type", "function" == typeof (n2 = void 0 !== u && u.IFlowTypeAvailabilityContainerMap) ? n2 : Object), r2.__metadata("design:paramtypes", [Object])], d.prototype, "overloads", null); + }, 47818: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = i2(30801), o = n2.__importDefault(i2(21345)); + class a extends o.default { + constructor(e3) { + super(e3); + } + get _actionTypeId() { + return r2.clearSkillExpressionFiltersActionType; + } + get displayTypeName() { + return this._scriptingName; + } + get clearSkillExpressionFiltersOutputsFailure() { + return this.failureOutputs; + } + get isArchActionClearSkillExpressionFilters() { + return true; + } + } + t2.default = a; + }, 47875: (e2, t2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.literalValidatorNames = void 0, t2.literalValidatorNames = { dialingCodes: "DialingCodes", iso4217: "ISO4217", phoneNumber: "PhoneNumber", supportedDigitalChannels: "SupportedDigitalChannels", supportedTTSLangs: "SupportedTTSLangs", timeZones: "TimeZones" }; + }, 47957: (e2, t2, i2) => { + let n2 = null; + if (i2(6697)) n2 = i2(12664); + else { + const e3 = i2(29546); + try { + n2 = i2(91358)("./" + e3.getCurrentLanguage() + "/resources.js"); + } catch (e4) { + n2 = i2(12664); + } + } + n2.then && n2.then((t3) => { + e2.exports = t3; + }), e2.exports = n2; + }, 47976: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.nuanceMixIntegrationManager = t2.NuanceMixIntegrationManager = void 0; + const n2 = i2(31635), r2 = n2.__importStar(i2(32236)), o = n2.__importStar(i2(1360)), a = n2.__importStar(i2(24032)), s = n2.__importDefault(i2(47532)), l = i2(81801), u = i2(37707), d = i2(97081), c = i2(30801), p = i2(47957), _ = i2(27862); + class h extends s.default { + get requiredAuth() { + return l.externalAuthorizations.authStrings.integrationView; + } + get dependencyType() { + return _.NuanceMixIntegration; + } + constructor() { + super(), this.topic = a.getTopic("NuanceMixIntegrationManager"), this.apiCallList = r2.getNuanceMixIntegrations, this.apiCallSingle = r2.getIntegration, this._rawServerCache = {}, this.actionPropertyForUsageSearch = "botIntegration", this.actionsForUsageSearch = [c.nuanceMixActionType], this.className = "NuanceMixIntegrationManager", this.defaultMatchingStyle = o.exactMatch, this.dependencyContext = p.botConnector.botIntegration, this.searchField = "name", this.securityError = true, this.suppressSearch = true, this.shouldRequestAllPages = true, this.defaultPageSize = 100, this.uiMetadataSectionName = "nuanceMixIntegrations", this.warnIfMissing = true, this._initialize(); + } + _createItemViewModel(e3) { + return new d.IntegrationViewModel(e3); + } + get _networkModel() { + return u.Integration; + } + } + t2.NuanceMixIntegrationManager = h, t2.nuanceMixIntegrationManager = new h(); + }, 48001: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.PromptResourceList = void 0; + const n2 = i2(31635), r2 = i2(94729), o = i2(15116), a = i2(80295); + class s extends o.PagedList { + constructor(e3) { + super(e3); + } + get entities() { + return this._entities; + } + set entities(e3) { + this._entities = this.reviveArray(e3, r2.PromptResource); + } + } + t2.PromptResourceList = s, n2.__decorate([(0, a.enumerable)(true), n2.__metadata("design:type", Array), n2.__metadata("design:paramtypes", [Array])], s.prototype, "entities", null); + }, 48002: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.workflowListManager = t2.WorkflowListManager = void 0; + const n2 = i2(6109), r2 = i2(96618), o = i2(24032), a = i2(27862); + class s extends n2.FlowListManager { + get dependencyType() { + return a.Workflow; + } + constructor() { + super(), this.topic = (0, o.getTopic)("workflowListManager"), this.additionalQueryParams = { type: r2.flowTypes.flowTypeWorkflow }, this.className = "WorkflowListManager", this.flowType = r2.flowTypes.flowTypeWorkflow, this._initialize(); + } + } + t2.WorkflowListManager = s, t2.workflowListManager = new s(); + }, 48019: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = i2(80295), o = i2(19596); + class a extends o.DataContract { + constructor(e3) { + super(e3); + } + get id() { + return this._id; + } + set id(e3) { + this._id = e3; + } + get name() { + return this._name; + } + set name(e3) { + this._name = e3; + } + get schema() { + return this._schema; + } + set schema(e3) { + this._schema = e3; + } + get schemas() { + return this._schemas; + } + set schemas(e3) { + this._schemas = e3; + } + get schemaInfo() { + return this._schemaInfo; + } + set schemaInfo(e3) { + this._schemaInfo = e3; + } + get statuses() { + return this._statuses; + } + set statuses(e3) { + this._statuses = e3; + } + get flow() { + return this._flow; + } + set flow(e3) { + this._flow = e3; + } + get dateBasedRules() { + return this._dateBasedRules; + } + set dateBasedRules(e3) { + this._dateBasedRules = e3; + } + } + t2.default = a, n2.__decorate([(0, r2.enumerable)(true), n2.__metadata("design:type", String), n2.__metadata("design:paramtypes", [String])], a.prototype, "id", null), n2.__decorate([(0, r2.enumerable)(true), n2.__metadata("design:type", String), n2.__metadata("design:paramtypes", [String])], a.prototype, "name", null), n2.__decorate([(0, r2.enumerable)(true), n2.__metadata("design:type", Object), n2.__metadata("design:paramtypes", [Object])], a.prototype, "schemas", null), n2.__decorate([(0, r2.enumerable)(true), n2.__metadata("design:type", Object), n2.__metadata("design:paramtypes", [Object])], a.prototype, "schemaInfo", null), n2.__decorate([(0, r2.enumerable)(true), n2.__metadata("design:type", Array), n2.__metadata("design:paramtypes", [Array])], a.prototype, "statuses", null), n2.__decorate([(0, r2.enumerable)(true), n2.__metadata("design:type", Object), n2.__metadata("design:paramtypes", [Object])], a.prototype, "flow", null), n2.__decorate([(0, r2.enumerable)(true), n2.__metadata("design:type", Array), n2.__metadata("design:paramtypes", [Array])], a.prototype, "dateBasedRules", null); + }, 48051: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.Observable = void 0; + var n2 = i2(2708), r2 = i2(69879), o = i2(2884), a = i2(99517), s = i2(93728), l = i2(10281), u = i2(12688), d = (function() { + function e3(e4) { + e4 && (this._subscribe = e4); + } + return e3.prototype.lift = function(t3) { + var i3 = new e3(); + return i3.source = this, i3.operator = t3, i3; + }, e3.prototype.subscribe = function(e4, t3, i3) { + var o2, a2 = this, s2 = (o2 = e4) && o2 instanceof n2.Subscriber || (function(e5) { + return e5 && l.isFunction(e5.next) && l.isFunction(e5.error) && l.isFunction(e5.complete); + })(o2) && r2.isSubscription(o2) ? e4 : new n2.SafeSubscriber(e4, t3, i3); + return u.errorContext(function() { + var e5 = a2, t4 = e5.operator, i4 = e5.source; + s2.add(t4 ? t4.call(s2, i4) : i4 ? a2._subscribe(s2) : a2._trySubscribe(s2)); + }), s2; + }, e3.prototype._trySubscribe = function(e4) { + try { + return this._subscribe(e4); + } catch (t3) { + e4.error(t3); + } + }, e3.prototype.forEach = function(e4, t3) { + var i3 = this; + return new (t3 = c(t3))(function(t4, r3) { + var o2 = new n2.SafeSubscriber({ next: function(t5) { + try { + e4(t5); + } catch (e5) { + r3(e5), o2.unsubscribe(); + } + }, error: r3, complete: t4 }); + i3.subscribe(o2); + }); + }, e3.prototype._subscribe = function(e4) { + var t3; + return null === (t3 = this.source) || void 0 === t3 ? void 0 : t3.subscribe(e4); + }, e3.prototype[o.observable] = function() { + return this; + }, e3.prototype.pipe = function() { + for (var e4 = [], t3 = 0; t3 < arguments.length; t3++) e4[t3] = arguments[t3]; + return a.pipeFromArray(e4)(this); + }, e3.prototype.toPromise = function(e4) { + var t3 = this; + return new (e4 = c(e4))(function(e5, i3) { + var n3; + t3.subscribe(function(e6) { + return n3 = e6; + }, function(e6) { + return i3(e6); + }, function() { + return e5(n3); + }); + }); + }, e3.create = function(t3) { + return new e3(t3); + }, e3; + })(); + function c(e3) { + var t3; + return null !== (t3 = null != e3 ? e3 : s.config.Promise) && void 0 !== t3 ? t3 : Promise; + } + t2.Observable = d; + }, 48093: (e2) => { + e2.exports = { askCommon: { invalidInputReceived: "Input non valido.", noInputReceived: "Non ho ricevuto alcun input." }, askForBoolean: { noInput: `Di' "s\xEC" se desideri continuare, oppure "no" se non vuoi farlo.`, noMatch: `Per favore, di' "S\xEC" o "No". Vuoi continuare?`, question: "Vuoi continuare?", noInputDigitalBot: 'Inserisci "S\xEC" se desideri continuare, oppure "No" se non vuoi farlo.', noMatchDigitalBot: 'Inserisci "S\xEC" o "No". Vuoi continuare?' }, askForIntent: { noInput: 'Pronunci una breve frase che descriva la sua richiesta. Ad esempio "Controlla il saldo del mio conto"', noMatch: "Ripeti cosa che vuoi che faccia.", question: "Cosa vorresti fare?", noInputDigitalBot: 'Inserisci una breve frase che descriva la tua richiesta. Ad esempio, "Controlla il saldo del mio conto"' }, askForSlot: { askFor: "Chiedi il valore di: %1$s", noInput: "Per favore, pronuncia o inserisci (indica qui il nome dello slot).", noInputWithSlot: "Per favore, pronuncia o inserisci: %1$s.", noMatch: "Per favore, forniscimi di nuovo (indica qui il nome dello slot).", noMatchWithSlot: "Per favore, forniscimi di nuovo il valore di: %1$s.", question: "Qual \xE8 il valore di (indica qui il nome dello slot)?", questionWithSlot: "Qual \xE8 il valore di: %1$s?", pleaseEnterSlotNameHere: "(inserire qui il nome dello slot)", noInputDigitalBot: "Per favore, inserisci (indica qui il nome dello slot).", noInputWithSlotDigitalBot: "Inserisci %1$s.", continuationPromptWithSlot: "Finora ho {{Slot.%1$s}}, continuare." }, askForNextSlot: { noInput: `Di' "s\xEC" se hai un'altra richiesta, oppure "no" per terminare la chiamata.`, noMatch: `Di' "S\xEC" se hai un'altra richiesta, oppure "No" per terminare la sessione.`, question: "Posso aiutarti con qualche altra richiesta?", noInputDigitalBot: `Inserisci "S\xEC" se hai un'altra richiesta, oppure "No" per terminare la sessione.`, noMatchDigitalBot: `Inserisci "S\xEC" se hai un'altra richiesta, oppure "No" per terminare la sessione.` }, askForPayment: { noInputDigitalBot: "Inserire le informazioni di pagamento per continuare.", noMatchDigitalBot: "Purtroppo non ho capito la risposta. Riprovare." }, askForAuthentication: { noInputDigitalBot: "Fornire le informazioni di autenticazione per continuare.", noMatchDigitalBot: "Purtroppo non ho capito la risposta. Riprovare." }, askSurveyQuestion: { notApplicable: "Non applicabile", surveyAnswerOptionSequence: "Premere %1$s per '%2$s'.", surveyAnswerNotApplicableSequence: "Premere la stella per Non applicabile.", surveyAnswerNotApplicableWithQuestionSequence: "%1$s. Premere la stella per Non applicabile.", voiceSurveyNoInputText: "Rispondere alla domanda.", voiceSurveyNoMatchText: "Non ho capito." }, commonModule: { exitCommonModule: "Esci dal modulo comune" }, form: { noInputDigitalBot: "Completare il modulo per continuare.", noMatchDigitalBot: "Completare il modulo per continuare." }, messagingTemplate: { noInputDigitalBot: "Selezionare una delle opzioni disponibili.", noMatchDigitalBot: "Selezionare una delle opzioni disponibili." }, knowledgeSettings: { knowledgeAnswerHighlightFlowProgressionDefault: "Continua", knowledgeAnswerHighlightFullArticleDefault: "Visualizza Articolo completo", knowledgeInitialResponseMulti: "Per consentirmi di capire la richiesta, scegliere un numero dal seguente elenco:", knowledgeInitialResponseMultiRetry: "Scegliere un numero, ad esempio '1'.\nEcco nuovamente l'elenco delle opzioni:", knowledgeNoMatch: "Nessuna di queste opzioni", knowledgeConfirmation: "Questo risponde alla sua domanda?", knowledgeFollowup: "Spero di aver risposto alla tua domanda. Puoi chiedermi qualsiasi cosa che vuoi sapere." }, noOverlay: { intent: { intentConfirmationStr1: "Credo che lei voglia", intentConfirmationStr2: "\xC8 corretto?" }, youSaid: { youSaidConfirmationStr1: "Ha detto", youSaidConfirmationStr2: "\xC8 corretto?", youSaidConfirmationStr1DigitalBot: "Hai inserito" }, noInput: { noInputStr1: "Dica o digiti", noInputStr1DigitalBot: "Inserisci" }, noMatch: { noMatchStr1: "La prego di fornirmi" }, whatIs: { whatIsQuestionStr1: "Qual \xE8", whatIsQuestionStr2: "?" }, iGotContinuation: { iGotContinuationStr1: "Finora ho", iGotContinuationStr2: ", continuare." } }, defaultCallFlowOne: "Flusso chiamate predefinito", errorHandlingAgentEscalationConfirmation: "Desidera parlare con un consulente, corretto?", errorHandlingAgentEscalationHandover: "Attenda un momento mentre trasferisco la chiamata ad un agente.", errorHandlingErrorEventHandover: "Mi dispiace, si \xE8 verificato un errore. Attenda un momento mentre trasferisco la chiamata ad un agente che potr\xE0 aiutarla.", errorHandlingErrorEventHandoverVoiceSurvey: "Si \xE8 verificato un errore. Arrivederci.", errorHandlingRecognitionEventHandover: "Mi dispiace, purtroppo ho problemi a capirla. Attenda un momento mentre trasferisco la chiamata ad un agente che potr\xE0 aiutarla.", errorHandlingRecognitionEventHandoverVoiceSurvey: "Purtroppo non riesco a capirti. Arrivederci.", errorHandlingTTS: "Si \xE8 verificato un errore. Riprovare a chiamare.", initialGreetingTTS: "Salve, questo \xE8 il saluto di benvenuto.", initialState: "Stato iniziale", initialBotState: "Bot predefinito", initialDigitalBotState: "Saluti iniziali", initialSurveyBotState: "Bot sondaggio", intentConfirmation: "Credo tu voglia %1$s, \xE8 corretto?", mainMenu: "Menu principale", mainMenuTTS: "Questo \xE8 il menu principale. Per uscire, premere 9.", mainTask: "Attivit\xE0", settingsConfirmationNoInputApology: "Mi dispiace, non ho sentito. Per favore, dica s\xEC o no.", settingsConfirmationNoInputApologyDigitalBot: 'Scusa, non ha ricevuto alcun input. Per favore inserisci "S\xEC" o "No".', settingsConfirmationNoMatchApology: "Mi scusi, per favore dica s\xEC o no.", settingsConfirmationNoMatchApologyDigitalBot: 'Scusa, per favore inserisci "S\xEC" o "No".', settingsNoInputApology: "Mi dispiace, non ho sentito.", settingsNoInputApologyDigitalBot: "Scusa, non ho ricevuto alcun input.", settingsEndOfSessionMessageDigitalBot: "Poich\xE9 non scrivi nulla da un po' di tempo, chiuder\xF2 questa chat. Torna a scrivere se hai di nuovo bisogno del mio aiuto, grazie.", settingsNoMatchApology: "Mi dispiace.", settingsNoToConfirmationApology: "Scusi, ho capito male.", periodicStateName: "Stato ricorrente" }; + }, 48109: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.getListDisplayString = function(e3, t3, i3, n3) { + if (!e3) return ""; + if (r2.default.isString(e3) && (e3 = [e3]), 0 === e3.length) return ""; + if (n3 && (e3 = e3.map((e4) => (0, o.sprintf)(s.generic.textWithSingleQuotes, e4))), (function(e4, t4) { + r2.default.each(e4, function(i4, n4) { + void 0 === e4[n4] || null === e4[n4] ? e4[n4] = "" : t4 && (e4[n4] = i4.replace(/ /g, " ")); + }); + })(e3, t3), 1 === e3.length) return e3[0]; + const l = e3.pop(); + return e3.join(a.default.itemListing.itemSeparator).concat((i3 ? s.itemListing.lastItemOrSeparator : s.itemListing.lastItemAndSeparator) + l); + }; + const n2 = i2(31635), r2 = n2.__importDefault(i2(92140)), o = i2(17604), a = n2.__importDefault(i2(41510)), s = i2(47957); + }, 48112: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.ExpressionTypePhoneNumberOptions = void 0; + const n2 = i2(65615), r2 = i2(80295); + class o extends n2.BaseExpressionTypeCollectionOptions { + static create(e3, t3) { + return new this(t3).invokeOptionsCallback(e3); + } + constructor(e3) { + super(e3), this._literalUsesSmsPhoneNumberDropdown = false, (0, r2.makeUnenumerable)(this, "_literalUsesSmsPhoneNumberDropdown"); + } + get className() { + return "ExpressionTypePhoneNumberOptions"; + } + get isExpressionTypePhoneNumberOptions() { + return true; + } + _setFromOptions(e3) { + super._setFromOptions(e3), this._setOptionIfSet(this.setLiteralUsesSmsPhoneNumberDropdown, e3.literalUsesSmsPhoneNumberDropdown, "_literalUsesSmsPhoneNumberDropdown"); + } + get literalUsesSmsPhoneNumberDropdown() { + return this._literalUsesSmsPhoneNumberDropdown; + } + set literalUsesSmsPhoneNumberDropdown(e3) { + this._literalUsesSmsPhoneNumberDropdown = e3; + } + setLiteralUsesSmsPhoneNumberDropdown(e3) { + return this._literalUsesSmsPhoneNumberDropdown = e3, this; + } + } + t2.ExpressionTypePhoneNumberOptions = o; + }, 48167: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(84282)), r2 = i2(30801); + class o extends n2.default { + constructor(e3) { + super(e3), this._externalResults = this.coreFactory.createArchWrapper(e3.externalResult), this._searchTerm = this.coreFactory.createArchWrapper(e3.externalId); + } + get _actionTypeId() { + return r2.searchExternalContactsActionType; + } + get displayTypeName() { + return this._scriptingName; + } + get isArchActionSearchExternalContacts() { + return true; + } + get externalResults() { + return this._externalResults; + } + get searchTerm() { + return this._searchTerm; + } + } + t2.default = o; + }, 48179: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(84655)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "workbin"; + } + get initialValue() { + return this._initialValue; + } + get displayTypeName() { + return "ArchVariableWorkbin"; + } + get isArchVariableWorkbin() { + return true; + } + } + t2.default = r2; + }, 48229: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.getKnowledgeSettings = t2.getKnowledgeSetting = void 0; + const n2 = i2(66445), r2 = i2(40209), o = i2(36019).default, a = { ignoreBadResponse: true }; + t2.getKnowledgeSetting = o.request("GET", "{public-api.apps}/api/v2/knowledge/settings/{id}", n2, a), t2.getKnowledgeSettings = o.request("GET", "{public-api.apps}/api/v2/knowledge/settings", r2, a); + }, 48263: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = i2(96618), o = n2.__importDefault(i2(73198)), a = i2(67607), s = i2(72987), l = n2.__importDefault(i2(2318)), u = i2(92158), d = n2.__importStar(i2(36781)), c = n2.__importStar(i2(10798)), p = n2.__importDefault(i2(77862)), _ = i2(30801), h = i2(30801), m = n2.__importDefault(i2(4648)), g = n2.__importStar(i2(63352)), f = i2(12179), T = n2.__importDefault(i2(20084)), y = i2(80428), S = i2(99472), A = i2(28803), N = i2(89599), O = i2(99469), I = n2.__importDefault(i2(22917)), v = i2(12323), C = i2(47957); + class b extends T.default { + constructor(e3) { + super(e3, "virtualAgentSettings", v), this.labelBadge = S.aiPoweredBadgeWithNoText; + } + static get managedProperties() { + const e3 = { responsiveForm: true, hideInfoIcon: true, showInputDescription: true }; + return [{ label: C.customNodes.virtualAgentSettings.virtualAgentSettingsSummarizeConversationTitle, supportedFlowTypes: [r2.flowTypes.flowTypeBot, r2.flowTypes.flowTypeDigitalBot], options: a.ExpressionTypeBooleanOptions.create((t3) => t3.setDescriptionInfo(C.customNodes.virtualAgentSettings.virtualAgentSettingsSummarizeConversationTitle, C.customNodes.virtualAgentSettings.virtualAgentSettingsSummarizeConversationDescription).setIninTestingField("summarization").setDefaultText(o.default.false).setBoolText("", "").setVirtualAgentLabelBadge().setUseToggle(true).setIsOptional(false).setFeatureConfigName(m.default.botFlowsVirtualAgentSummarization).setValueChangedCallback((e4) => { + e4.parent.updateSettingsDependentOnSummarization(), e4.parent.resetConversationSummary(); + }).setAllowModeLiteralOnly().setUiLayout(e3)), property: "summarization", type: y.expressionTypeNames.boolean }, { label: C.customNodes.virtualAgentSettings.assignWrapupCodesTitle, supportedFlowTypes: [r2.flowTypes.flowTypeBot, r2.flowTypes.flowTypeDigitalBot], options: a.ExpressionTypeBooleanOptions.create((t3) => t3.setDescriptionInfo(C.customNodes.virtualAgentSettings.assignWrapupCodesTitle, C.customNodes.virtualAgentSettings.assignWrapupCodesDescription).setIninTestingField("assignWrapupCodes").setDefaultText(o.default.false).setBoolText("", "").setVirtualAgentLabelBadge().setUseToggle(true).setIsOptional(false).setFeatureConfigName(m.default.botFlowsDigitalBotFlowsBotSummarization).setValueChangedCallback((e4) => e4.parent.updateSettingsDependentOnAssignWrapupCodes()).setAllowModeLiteralOnly().setUiLayout(e3)), property: "assignWrapupCodes", type: y.expressionTypeNames.boolean }, { label: C.customNodes.virtualAgentSettings.enabledWrapupCodes, supportedFlowTypes: [r2.flowTypes.flowTypeBot, r2.flowTypes.flowTypeDigitalBot], options: s.ExpressionTypeWrapupCodeOptions.create((e4) => e4.setIsCollection(true).setIninTestingField("enabledWrapupCodes").setAllowNotSet(false).setAllowModeLiteralOnly().setFeatureConfigName(m.default.botFlowsDigitalBotFlowsBotSummarization).setRequiresHasDescription(true).facets.setAllowNull(false)), property: "enabledWrapupCodes", type: y.expressionTypeNames.wrapupCode }, { label: C.customNodes.virtualAgentSettings.conversationSummarySettingsTitle, supportedFlowTypes: [r2.flowTypes.flowTypeBot, r2.flowTypes.flowTypeDigitalBot], options: O.ManagedPropertyOptions.create((t3) => t3.setIninTestingField("conversationSummary-selector").setFeatureConfigName(m.default.botFlowsVirtualAgentCustomSummaries).setDropdownPlaceholder(C.customNodes.virtualAgentSettings.conversationSummarySettingsDropdownPlaceholder).setIsOptional(true).setInlineDescription(C.customNodes.virtualAgentSettings.conversationSummarySettingsDescription).setDescriptionInfo(void 0, C.customNodes.virtualAgentSettings.conversationSummarySettingsToolTip).setUiLayout(Object.assign(Object.assign({}, e3), { hideInfoIcon: false }))), property: "conversationSummary", createDetails: A.NetworkBasedActionProperty.createCreateDetails("conversationSummaryId", "conversationSummaryName", N.conversationSummarySettingManager, null, C.customNodes.virtualAgentSettings.conversationSummarySettingsSummaryNotFound, void 0, void 0, (e4, t3) => { + var i3, n3; + return (null === (i3 = t3.language) || void 0 === i3 ? void 0 : i3.toLowerCase()) === (null === (n3 = e4.action.parentFlow.defaultLanguage) || void 0 === n3 ? void 0 : n3.toLowerCase()); + }), yamlOptions: I.default.create("conversationSummary", (e4) => e4.setSkipProperty(true)) }]; + } + _initializeDesignTime() { + super._initializeDesignTime(), this.conversationSummary.isOptional = true, this.addAutoCleanedUpEventListener(d.botFlowSettingChanged, (e3) => { + e3.setting === p.default.variable.virtualAgentEnabled && (this.setOutOfService(), this.setDefaultVirtualAgentActionSettings(true)); + }), this.addAutoCleanedUpEventListener(d.promptChanged, (e3) => { + "voiceProcessingPrompt" === e3.type && this.setOutOfService(); + }), this.setOutOfService(); + } + getConfiguration(e3, t3) { + var i3, n3; + if (null == t3 ? void 0 : t3.isForFlowYaml) { + const r3 = super.getConfiguration(e3, t3); + return r3 && !(null === (n3 = null === (i3 = r3.enabledWrapupCodes) || void 0 === i3 ? void 0 : i3.lit) || void 0 === n3 ? void 0 : n3.length) && delete r3.enabledWrapupCodes, r3 && this.summarization && this.conversationSummaryName && c.isFeatureAvailable(m.default.botFlowsVirtualAgentCustomSummaries) && (r3.conversationSummarySetting = { name: this.conversationSummaryName }), r3; + } + super.getConfiguration(e3, t3); + } + setOutOfService() { + if (this.summarization.outOfService = !(this.getVirtualAgentAllowed() && c.isFeatureAvailable(m.default.botFlowsVirtualAgentSummarization)), this.updateSettingsDependentOnSummarization(), this.assignWrapupCodes.outOfService = !(this.getVirtualAgentAllowed() && c.isFeatureAvailable(m.default.botFlowsDigitalBotFlowsBotSummarization)), this.updateSettingsDependentOnAssignWrapupCodes(), this.parentFlow.isBotFlow) { + const e3 = this.parentFlow.defaultSettings.getDefaultExpression(_.callGuideActionType, "voiceProcessingPrompt"); + if (e3) { + const t4 = this._getVoiceProcessingPromptSetInBotFlowSettings(); + e3.outOfService = !(this.getVirtualAgentAllowed() && this.voiceProcessingPromptAvailable) || t4, e3.options.setUiDisableOnOutOfService(this.getVirtualAgentAllowed()); + } + const t3 = this.parentFlow.defaultSettings.getDefaultExpression(h.callAgenticVirtualAgentActionType, "voiceProcessingPrompt"); + t3 && (t3.outOfService = !(this.getVirtualAgentAllowed() && this.voiceProcessingPromptAvailable && c.isFeatureAvailable(m.default.botFlowsAgenticVirtualAgentSage))); + } + } + setNewInstanceDefaults() { + super.setNewInstanceDefaults(), this.setDefaultVirtualAgentActionSettings(false); + } + updateSettingsDependentOnAssignWrapupCodes() { + this.enabledWrapupCodes.outOfService = this.assignWrapupCodes.outOfService || this.assignWrapupCodes.text === o.default.false; + } + updateSettingsDependentOnSummarization() { + this.conversationSummary.outOfService = this.summarization.outOfService || this.summarization.text === o.default.false || !c.isFeatureAvailable(m.default.botFlowsVirtualAgentCustomSummaries); + } + resetConversationSummary() { + this.conversationSummary.reset(); + } + get useLabelBadge() { + return true; + } + get isVirtualAgentSettingsNode() { + return true; + } + get className() { + return "VirtualAgentSettingsViewModel"; + } + get helpTopic() { + return f.helpTopics.treeNodes.virtualAgentSettings; + } + get id() { + return "virtualAgentSettings"; + } + getDisplayName() { + return C.customNodes.virtualAgentSettings.virtualAgentSettingsTitle; + } + get wrappedYamlName() { + return "settingsVirtualAgent"; + } + get nodeGuxIcon() { + return "clipboard-success"; + } + get virtualAgentEnabled() { + var e3; + return null === (e3 = this.parentFlow.botFlowSettings) || void 0 === e3 ? void 0 : e3.virtualAgentEnabled; + } + get outOfService() { + return !(l.default.currentUserCanUseVirtualAgentItems && this.getVirtualAgentAllowed()); + } + addEnabledWrapupCode(e3) { + u.wrapupCodeManager.addItem(e3, true), this.enabledWrapupCodes.addItem().updateFromConfigListManagerItem(e3); + } + removeEnabledWrapupCode(e3) { + var t3, i3; + const n3 = null === (i3 = null === (t3 = this.enabledWrapupCodes.collectionItems) || void 0 === t3 ? void 0 : t3.items) || void 0 === i3 ? void 0 : i3.find((t4) => t4.model.config.val === e3); + n3 && this.enabledWrapupCodes.removeChild(n3); + } + getVirtualAgentAllowed() { + return (this.parentFlow.isBotFlow || this.parentFlow.isDigitalBotFlow) && this.virtualAgentEnabled; + } + get voiceProcessingPromptAvailable() { + return c.isFeatureAvailable(m.default.botFlowsVirtualAgentVoicePrompt); + } + _getVoiceProcessingPromptSetInBotFlowSettings() { + var e3; + const t3 = null === (e3 = this.parentFlow.botFlowSettings) || void 0 === e3 ? void 0 : e3.voiceProcessingPrompt; + return !((null == t3 ? void 0 : t3.mode) !== g.literal || !(null == t3 ? void 0 : t3.text)); + } + setDefaultVirtualAgentActionSettings(e3) { + } + } + t2.default = b; + }, 48289: (e2, t2, i2) => { + "use strict"; + const n2 = i2(31635), r2 = i2(12179), o = n2.__importDefault(i2(5730)), a = n2.__importDefault(i2(27203)), s = n2.__importDefault(i2(73198)), l = n2.__importDefault(i2(97891)), u = i2(12457), d = i2(24235), c = i2(87870), p = i2(47957); + class _ extends o.default { + constructor(e3, t3) { + super(e3.parentFlow, e3), this.whisperAudio = null, this._loadModel(t3), this.editor_testing_tag = "SetWhisperAudioAction"; + } + getDetails() { + if (this.whisperAudio) { + const e3 = this.whisperAudio.getDescription(); + if (e3) return new u.ActionDetails([p.audio.audioLabel], [e3]); + if (this.whisperAudio.noValueMode) return new u.ActionDetails([""], [p.setWhisperAudio.noValueRuntimeEvaluationString]); + } + return null; + } + static get branchInfo() { + return a.default.successFailure; + } + static get managedProperties() { + return [{ audio: true, options: d.AudioViewModelOptions.create((e3) => e3.setIninTestingField("whisperAudio").setAllowSecure(false).setAllowBlankAudio(false).setLabel(p.setWhisperAudio.label).setIsOptional(true).setModeNoValueRuntimeEvaluationStr(p.setWhisperAudio.noValueRuntimeEvaluationString).setModeNoValueSelectionLabel(p.setWhisperAudio.noValueSelectionLabel).setDisallowedFunctionMap({ AudioPlayBackOptions: true }).setEmitNonConfigItemForEmptyAndNoDefault(true).setMaxDuration(3 * s.default.msPerSecond, true)), property: "whisperAudio" }, { createDetails: c.NoteActionProperty.createCreateDetails(p.setWhisperAudio.infoMessage, "info", "setWhisperNote"), property: "actionInformationalMessage", yamlOptions: _.createYamlOptions("actionInformationalMessage", (e3) => e3.setSkipProperty(true)) }]; + } + } + _.info = l.default.createActionInfo({ actionClass: _, canBeInTask: true, helpTopic: r2.helpTopics.actions.setWhisperAudio, modelClass: i2(40311), name: p.actions.setWhisperAudio, scriptingName: "ArchActionSetWhisperAudio" }), t2.A = _; + }, 48303: function(e2, t2, i2) { + !(function(e3) { + "use strict"; + e3.defineLocale("pt-br", { months: "janeiro_fevereiro_mar\xE7o_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"), monthsShort: "jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"), weekdays: "domingo_segunda-feira_ter\xE7a-feira_quarta-feira_quinta-feira_sexta-feira_s\xE1bado".split("_"), weekdaysShort: "dom_seg_ter_qua_qui_sex_s\xE1b".split("_"), weekdaysMin: "do_2\xAA_3\xAA_4\xAA_5\xAA_6\xAA_s\xE1".split("_"), weekdaysParseExact: true, longDateFormat: { LT: "HH:mm", LTS: "HH:mm:ss", L: "DD/MM/YYYY", LL: "D [de] MMMM [de] YYYY", LLL: "D [de] MMMM [de] YYYY [\xE0s] HH:mm", LLLL: "dddd, D [de] MMMM [de] YYYY [\xE0s] HH:mm" }, calendar: { sameDay: "[Hoje \xE0s] LT", nextDay: "[Amanh\xE3 \xE0s] LT", nextWeek: "dddd [\xE0s] LT", lastDay: "[Ontem \xE0s] LT", lastWeek: function() { + return 0 === this.day() || 6 === this.day() ? "[\xDAltimo] dddd [\xE0s] LT" : "[\xDAltima] dddd [\xE0s] LT"; + }, sameElse: "L" }, relativeTime: { future: "em %s", past: "h\xE1 %s", s: "poucos segundos", ss: "%d segundos", m: "um minuto", mm: "%d minutos", h: "uma hora", hh: "%d horas", d: "um dia", dd: "%d dias", M: "um m\xEAs", MM: "%d meses", y: "um ano", yy: "%d anos" }, dayOfMonthOrdinalParse: /\d{1,2}º/, ordinal: "%d\xBA", invalidDate: "Data inv\xE1lida" }); + })(i2(95093)); + }, 48312: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(54063)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "externalFacebookInfoCollection"; + } + get displayTypeName() { + return "ArchValueExternalFacebookInfoCollection"; + } + get isArchValueExternalFacebookInfoCollection() { + return true; + } + } + t2.default = r2; + }, 48349: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(81574)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "journeyDevice"; + } + get category() { + } + get type() { + } + get isMobile() { + } + get screenHeight() { + } + get screenWidth() { + } + get fingerprint() { + } + get manufacturer() { + } + get osFamily() { + } + get osVersion() { + } + get screenDensity() { + } + get displayTypeName() { + return "ArchValueJourneyDevice"; + } + get isArchValueJourneyDevice() { + return true; + } + } + t2.default = r2; + }, 48388: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.FindGrammarByIdActionModel = void 0; + const n2 = i2(28904), r2 = i2(30801); + class o extends n2.BaseFindSystemObjectByIdActionModel { + constructor(e3) { + super(e3), this.__type = o.__type; + } + } + t2.FindGrammarByIdActionModel = o, o.__type = r2.findGrammarByIdActionType, o.registerType(); + }, 48444: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.default = function(e3, t3, i3) { + const a = (0, n2.default)(e3, t3, i3), s = new r2(); + s.name = o.actions.disconnect; + const l = a.flowSequenceItemList[0]; + return l.actionList = [s], l.startAction = s.id, a; + }; + const n2 = i2(31635).__importDefault(i2(42193)), r2 = i2(44095), o = i2(47957); + }, 48461: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.switchScan = void 0; + var n2 = i2(90680), r2 = i2(65212); + t2.switchScan = function(e3, t3) { + return r2.operate(function(i3, r3) { + var o = t3; + return n2.switchMap(function(t4, i4) { + return e3(o, t4, i4); + }, function(e4, t4) { + return o = t4, t4; + })(i3).subscribe(r3), function() { + o = null; + }; + }); + }; + }, 48467: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(81574)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "journeyCustomer"; + } + get id() { + } + get idType() { + } + get displayTypeName() { + return "ArchValueJourneyCustomer"; + } + get isArchValueJourneyCustomer() { + return true; + } + } + t2.default = r2; + }, 48481: (e2, t2, i2) => { + const n2 = i2(22124), r2 = i2(54557); + function o() { + o.baseConstructor.apply(this, arguments); + } + n2.extend(o, "WrapupCodeList"), Object.defineProperties(o.prototype, { entities: { enumerable: true, get: function() { + return this._entities; + }, set: function(e3) { + this._entities = this.reviveArray(e3, r2); + } } }), e2.exports = o; + }, 48565: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.getTrackingArray = function(e3, t3) { + const i3 = m(e3); + if (!i3) return; + let n3 = a.default.toArray(i3); + return t3 && t3.removeHidden && (n3 = a.default.filter(n3, (e4) => !e4.isHidden)), t3 && t3.sortByTrackingId && (n3 = a.default.sortBy(n3, (e4) => e4.trackingId)), n3; + }, t2.registerNode = O, t2.removeNode = function(e3) { + const t3 = m(e3.parentFlow); + t3 && !e3.isMenuChoice && delete t3[e3.trackingId]; + }, t2.renumberFlow = function(e3) { + const t3 = { action: p, indent: "", wantConsoleOutput: false }; + if (!e3) { + const e4 = "tracking.renumberFlow - Invalid flow passed to renumberFlow."; + throw u.error(e4), e4; + } + d[e3.instanceId] = N(e3, t3); + }, t2.getValidIds = function(e3) { + const t3 = { action: _, indent: "", wantConsoleOutput: false }; + if (!e3) { + const e4 = "tracking.getValidIds - Invalid flow passed to renumberFlow."; + throw u.error(e4), e4; + } + return N(e3, t3); + }, t2.createNewTrackingId = function(e3) { + return A(e3); + }, t2.getNodeByTrackingId = function(e3, t3) { + const i3 = m(e3); + return i3 ? i3[t3] : void 0; + }; + const n2 = i2(31635), r2 = i2(24032), o = n2.__importStar(i2(36781)), a = n2.__importDefault(i2(92140)), s = i2(17604), l = n2.__importDefault(i2(5024)), u = (0, r2.getTopic)("tracking"), d = {}, c = {}, p = 1, _ = 2; + function h(e3) { + delete d[e3.instanceId]; + } + function m(e3) { + if (!e3) return void u.error("Invalid flow passed to getNodeTrackingMap."); + let t3 = d[e3.instanceId]; + return t3 || (t3 = {}, d[e3.instanceId] = t3), t3; + } + function g(e3) { + return a.default.assign({}, e3, { indent: e3.indent + " " }); + } + function f(e3, t3, i3) { + switch (i3.action) { + case p: + e3.trackingId = A(e3.parentFlow), t3[e3.trackingId] = e3; + break; + case _: + t3[e3.id] = e3; + break; + default: + const n4 = (0, s.sprintf)("tracking.traverseAction - invalid traversal action specified of '%1$s'", i3.action); + throw u.error(n4), n4; + } + const n3 = g(i3); + a.default.each(e3.branches, function(e4) { + e4.topAction && f(e4.topAction, t3, n3); + }), e3.nextAction && f(e3.nextAction, t3, i3); + } + function T(e3, t3, i3) { + switch (i3.action) { + case p: + e3.trackingId = A(e3.parentFlow), t3[e3.trackingId] = e3; + break; + case _: + t3[e3.id] = e3; + break; + default: + const n3 = (0, s.sprintf)("tracking.traverseTask - invalid traversal action specified of '%1$s'", i3.action); + throw u.error(n3), n3; + } + i3.wantConsoleOutput && console.log(i3.indent + e3.trackingId, "- task -", e3.name), e3.topAction && f(e3.topAction, t3, g(i3)); + } + function y(e3, t3, i3) { + switch (i3.action) { + case p: + break; + case _: + t3[e3.id] = e3, i3.wantConsoleOutput && console.log(i3.indent + e3.id, "- menuChoice -", e3.name); + break; + default: + const n4 = (0, s.sprintf)("tracking.traverseMenuChoice - invalid traversal action specified of '%1$s'", i3.action); + throw u.error(n4), n4; + } + f(e3.action, t3, i3); + const n3 = g(i3); + e3.menu && e3.menu.isHidden ? S(e3.menu, t3, n3) : e3.task && e3.task.isHidden && T(e3.task, t3, n3); + } + function S(e3, t3, i3) { + switch (i3.action) { + case p: + e3.trackingId = A(e3.parentFlow), t3[e3.trackingId] = e3; + break; + case _: + t3[e3.id] = e3; + break; + default: + const n4 = (0, s.sprintf)("tracking.traverseMenu - invalid traversal action specified of '%1$s'", i3.action); + throw u.error(n4), n4; + } + i3.wantConsoleOutput && console.log(i3.indent + e3.trackingId, "- menu -", e3.name); + const n3 = g(i3); + switch (i3.action) { + case p: + a.default.chain(e3.choices).sortBy("uiSortStr").each(function(e4) { + y(e4, t3, n3); + }); + break; + case _: + a.default.each(e3.choices, function(e4) { + y(e4, t3, n3); + }); + } + } + function A(e3) { + const t3 = m(e3); + let i3, n3; + do { + n3 = e3.nextTrackingNumber++, t3[n3] && (i3 || (i3 = n3), n3 = void 0); + } while (!n3); + return i3 && u.warning(`next tracking number returned numbers that were in use, first dupe found: '${i3}', next unused one: '${n3}'`), n3; + } + function N(e3, t3) { + switch (t3.action) { + case p: + e3.nextTrackingNumber = l.default.minTrackingId; + break; + case _: + break; + default: + const i4 = (0, s.sprintf)("tracking.traverseFlow - invalid traversal action specified of '%1$s' to traverseFlow. Exiting.", t3.action); + throw u.error(i4), i4; + } + t3.wantConsoleOutput && console.log("Traversing flow ( action " + t3.action + " ) - " + e3.displayName); + const i3 = {}; + return e3.startUpObject && (e3.startUpObject.isTaskLike ? T(e3.startUpObject, i3, t3) : S(e3.startUpObject, i3, t3)), a.default.each(e3.menus, function(e4) { + e4.isHidden || e4.isStartUpObject || S(e4, i3, t3); + }), a.default.each(e3.tasks, function(e4) { + e4.isHidden && !e4.parentFlow.isNluFlow || e4.isStartUpObject || T(e4, i3, t3); + }), a.default.each(e3.states, function(e4) { + e4.isHidden || e4.isStartUpObject || T(e4, i3, t3); + }), t3.action === p && o.emitter.emit(o.renumber), i3; + } + function O(e3) { + var t3, i3; + const n3 = (function(e4) { + if (e4) return m(e4.parentFlow); + u.error("Invalid node passed to getNodeTrackingMapForNode."); + })(e3); + if (!n3) return; + let r3 = e3.trackingId; + if (r3) { + if (n3[r3]) { + if (!e3.parentFlow.loaded) { + const t4 = e3.parentFlow.instanceId; + return c[t4] || (c[t4] = []), c[t4].push(e3), void u.warning(`Duplicate tracking number encountered. Both [${null === (i3 = n3[r3]) || void 0 === i3 ? void 0 : i3.toString()}] and [${e3.toString()}] are ${r3}. Resetting the latter after the flow loads`); + } + r3 = e3.trackingId = A(e3.parentFlow), u.error(`Duplicate tracking number encountered. Both [${null === (t3 = n3[r3]) || void 0 === t3 ? void 0 : t3.toString()}] and [${e3.toString()}] are ${r3}. Resetting the latter to ${r3}`); + } + } else r3 = e3.trackingId = A(e3.parentFlow); + n3[r3] = e3; + } + o.serviceListen(o.cleanUpFlow, h), o.serviceListen(o.flowLoadStarted, h), o.serviceListen(o.flowLoadFailed, h), o.serviceListen(o.flowLoaded, function(e3) { + const t3 = c[e3.instanceId]; + t3 && (t3.forEach((e4) => { + e4.trackingId = void 0, O(e4), u.info(`Reset tracking id for [${e4.toString()}] to ${e4.trackingId}`); + }), delete c[e3.instanceId]); + }); + }, 48584: (e2, t2, i2) => { + function n2() { + this.environments = void 0, this.id = void 0, this.integration = void 0, this.languages = void 0, this.name = void 0, this.project = void 0, this.intents = void 0, n2.baseConstructor.apply(this, arguments); + } + i2(45214).extend(n2, "DialogflowAgent"), Object.defineProperties(n2.prototype, { label: { get: function() { + return this.name; + }, set: function(e3) { + this.name = e3; + } } }), e2.exports = n2; + }, 48604: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(11210)), r2 = i2(30801); + class o extends n2.default { + constructor(e3) { + super(e3), this._statements = this.coreFactory.createArchBaseValueContainer(e3.variables); + } + get _actionTypeId() { + return r2.updateVariableActionType; + } + get displayTypeName() { + return this._scriptingName; + } + addUpdateDataStatement(e3, t3, i3) { + const n3 = this._infoParm("archDataType", "addUpdateDataStatement"); + return this._checkItem(n3, !e3 || !e3.isArchDataType, "you must pass in a valid Architect data type for the statement to create"), this._checkItem(n3, !e3.isScriptCreatableForFlow(this.parentFlow), "the Architect data type " + e3.label + " is not creatable from scripting for one of the flow types '" + this._getCoreViewModel().parentFlow.destinationFlowTypes.join(",") + "'. The data type's isScriptCreatableForFlow must return true to be valid for use when creating an update data statement"), this._statements._addVariableValueAssignment(e3, t3, i3); + } + get isArchActionUpdateData() { + return true; + } + get statements() { + return this._statements._createVariableValuePairArray(); + } + } + t2.default = o; + }, 48611: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(74797), r2 = i2(30801); + class o extends n2.ArchBaseActionConversationAttribute { + constructor(e3) { + super(e3), this._recordIds = this.coreFactory.createArchWrapper(e3.recordIds); + } + get _actionTypeId() { + return r2.getConversationAttributesActionType; + } + get displayTypeName() { + return this._scriptingName; + } + get isArchActionGetConversationAttributes() { + return true; + } + get recordIds() { + return this._recordIds; + } + } + t2.default = o; + }, 48659: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(20692)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "cardCollection"; + } + get initialValue() { + return this._initialValue; + } + get displayTypeName() { + return "ArchVariableCardCollection"; + } + get isArchVariableCardCollection() { + return true; + } + } + t2.default = r2; + }, 48730: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(54063)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "journeySegmentCollection"; + } + get displayTypeName() { + return "ArchValueJourneySegmentCollection"; + } + get isArchValueJourneySegmentCollection() { + return true; + } + } + t2.default = r2; + }, 48787: (e2, t2, i2) => { + "use strict"; + var n2, r2, o; + Object.defineProperty(t2, "__esModule", { value: true }); + const a = i2(31635), s = i2(30801), l = a.__importDefault(i2(21345)); + class u extends l.default { + constructor(e3) { + super(e3), n2.set(this, void 0), r2.set(this, void 0), o.set(this, void 0), a.__classPrivateFieldSet(this, n2, this.coreFactory.createArchWrapper(e3.emailHeaderNames), "f"), a.__classPrivateFieldSet(this, r2, this.coreFactory.createArchWrapper(e3.emailHeadersResult), "f"); + } + get _actionTypeId() { + return s.getEmailHeadersActionType; + } + get displayTypeName() { + return this._scriptingName; + } + get isArchActionGetEmailHeaders() { + return true; + } + setInputDataVariable(e3) { + this._checkItemIsValidJsonObject(this._infoParm("inputDataVariable", "setInputDataVariable"), e3, false), a.__classPrivateFieldGet(this, r2, "f").setVariable(e3); + } + get emailHeaderNames() { + return a.__classPrivateFieldGet(this, n2, "f"); + } + get emailHeadersResult() { + return a.__classPrivateFieldGet(this, r2, "f"); + } + get getEmailHeadersFailureOutputs() { + if (this._coreActionViewModel.errorBindings) return a.__classPrivateFieldGet(this, o, "f") || a.__classPrivateFieldSet(this, o, this.coreFactory.createArchWrapper(this._coreActionViewModel.errorBindings), "f"), a.__classPrivateFieldGet(this, o, "f"); + } + } + n2 = /* @__PURE__ */ new WeakMap(), r2 = /* @__PURE__ */ new WeakMap(), o = /* @__PURE__ */ new WeakMap(), t2.default = u; + }, 48832: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(37873)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get displayTypeName() { + return "ArchSettingsInQueueCallFlow"; + } + get holdMusic() { + return this.coreFactory.createArchWrapper(this._getCoreViewModel().holdMusic); + } + get logStr() { + if (!this._getCoreViewModel()) return this.logStrTypeOnly; + const e3 = []; + return this._appendLogStrType(e3, this.displayTypeName), this._appendLogStrParentFlowInfo(e3, this._getCoreViewModel()), this._createLogStrFromParts(e3); + } + get isArchSettingsInQueueCallFlow() { + return true; + } + } + t2.default = r2; + }, 48849: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(8471)); + class r2 extends n2.default { + constructor(e3, t3, i3) { + super(), this._checkItem(this._infoParmCtor("archActionDefinition"), !e3 || !e3.isArchDefinitionAction, "you must pass in a valid ArchDefinitionAction instance."), this._checkItemUndefinedOrNull(this._infoParmCtor("propertyDefaultValue"), i3), this._checkItemUndefinedOrNull(this._infoParmCtor("propertyName"), t3), this._archActionDefinition = e3, this._propertyName = t3, this._propertyDefaultValue = i3; + } + get displayTypeName() { + return "ArchSettingActionPropertyDefault"; + } + get isArchSettingActionPropertyDefault() { + return true; + } + get logStr() { + return this.logStrTypeOnly; + } + get definitionAction() { + return this._archActionDefinition; + } + get propertyName() { + return this._propertyName; + } + get propertyDefaultValue() { + return this._propertyDefaultValue; + } + } + t2.default = r2; + }, 48880: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = i2(71874), o = i2(71874), a = n2.__importDefault(i2(81574)); + class s extends a.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "worktypeStatus"; + } + get id() { + return this._getAssignableProperty("id"); + } + get name() { + return this._getAssignableProperty("name"); + } + get category() { + return this._getAssignableProperty("category"); + } + get displayTypeName() { + return "ArchValueWorktypeStatus"; + } + get isArchValueWorktypeStatus() { + return true; + } + setLiteralWorktypeStatusById(e3) { + this._setLiteralWorktypeStatusInternal(e3, false); + } + setLiteralWorktypeStatusByName(e3) { + this._setLiteralWorktypeStatusInternal(e3, true); + } + _setLiteralWorktypeStatusInternal(e3, t3) { + const i3 = t3 ? "name" : "id", n3 = t3 ? "setLiteralWorktypeStatusByName" : "setLiteralWorktypeStatusById"; + null != e3 && "" !== e3 || this.logErrorAndThrow(`The supplied ${i3} provided for ${n3} may not be null or undefined.`); + const a2 = this._infoParm(i3, n3); + this._checkItemIsValidLiteralString(a2, e3); + const s2 = t3 ? (0, o.getWorktypeStatusByName)(e3, this._coreExpression.parentFlow) : (0, r2.getWorktypeStatusById)(e3, this._coreExpression.parentFlow); + (null == s2 ? void 0 : s2.id) || this.logErrorAndThrow(`A worktype status with the supplied ${i3} cannot be found for the associated worktype. Worktype status ${i3}: ${e3}`), this._coreExpression.type.setPropertiesAsLiteralById(this._coreExpression, s2.id); + } + } + t2.default = s; + }, 48905: (e2, t2, i2) => { + "use strict"; + var n2 = i2(61897); + e2.exports = function(e3) { + return !(!e3 || "string" != typeof e3 || e3.length < 6 || new RegExp("[^" + n2.get().replace(/[|\\{}()[\]^$+*?.-]/g, "\\$&") + "]").test(e3)); + }; + }, 48932: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = i2(30801), o = n2.__importDefault(i2(11210)); + class a extends o.default { + constructor(e3) { + super(e3); + } + get _actionTypeId() { + return r2.clearSlotActionType; + } + get displayTypeName() { + return "ArchActionClearSlot"; + } + get isArchActionClearSlot() { + return true; + } + addSlot(e3) { + const t3 = this._getCoreViewModel(); + t3.addSlot().name = e3, this.logNote(`new slot added at index ${t3.slots.items.length - 1}.`); + } + deleteSlotByIndex(e3) { + const t3 = this._infoPropSet("index", "deleteSlotByIndex"), i3 = this._getCoreViewModel(); + this._checkItemIsValidLiteralInt(t3, e3, false), this._checkItem(t3, e3 < 0 || e3 >= i3.slots.items.length, "the index parameter value of " + e3 + " is invalid. It must be >=0 and <" + i3.slots.items.length + "."), this.logNoteVerbose(`deleting slot at index: ${e3}.`), i3.slots.removeChild(i3.slots.items[e3]), this.logNote(`deleted the slot at index ${e3}.`); + } + get slotCount() { + return this._getCoreViewModel().slots.items.length; + } + } + t2.default = a; + }, 48944: (e2, t2, i2) => { + const n2 = i2(28730), { getAttributesActionType: r2 } = i2(30801), o = i2(42217); + function a() { + Object.defineProperties(this, { _variables: { writable: true } }), a.baseConstructor.apply(this, arguments); + } + Object.defineProperties(a.prototype, { pasteReIdOrRename: { value: function(e3) { + a._super.pasteReIdOrRename.apply(this, arguments); + for (let t3 = 0; t3 < this.variables.length; t3++) this.variables[t3].pasteReIdOrRename(e3); + } }, pasteResolveOldToNewValues: { value: function(e3) { + a._super.pasteResolveOldToNewValues.apply(this, arguments); + for (let t3 = 0; t3 < this.variables.length; t3++) this.variables[t3].pasteResolveOldToNewValues(e3); + } }, variables: { enumerable: true, get: function() { + return this._variables; + }, set: function(e3) { + this._variables = this.reviveArray(e3, o); + } } }), n2.extend(a, r2, true), e2.exports = a; + }, 49005: (e2, t2, i2) => { + function n2() { + this.actionInfoId = void 0, n2.baseConstructor.apply(this, arguments); + } + i2(39950).extend(n2, "ClipboardContentMenuChoiceModel", true), Object.defineProperties(n2.prototype, { configure: { value: function(e3, t3, i3, r2) { + this.actionInfoId = t3.action && t3.action.info ? t3.action.info.typeId : void 0, n2._super.configure.apply(this, arguments); + } } }), e2.exports = n2; + }, 49108: (e2) => { + e2.exports = { askCommon: { invalidInputReceived: "That is not valid.", noInputReceived: "I did not receive any input." }, askForBoolean: { noInput: `Say "yes" if you want to proceed or "no" if you don't.`, noMatch: 'Please say "yes" or "no". Do you want to proceed?', question: "Do you want to proceed?", noInputDigitalBot: `Input "Yes" if you want to proceed or "No" if you don't.`, noMatchDigitalBot: 'Please input "Yes" or "No". Do you want to proceed?' }, askForIntent: { noInput: 'Just speak a short sentence that describes your query. For example, "Check my account balance"', noMatch: "Tell me again what you would like to do.", question: "What would you like to do?", noInputDigitalBot: 'Please enter a short sentence that describes your query. For example, "Check my account balance"' }, askForSlot: { askFor: "Ask for %1$s", noInput: "Please say or enter the (please put your slot name here).", noInputWithSlot: "Please say or enter the %1$s.", noMatch: "Please give me the (please put your slot name here) again.", noMatchWithSlot: "Please give me the %1$s again.", question: "What is the (please put your slot name here)?", questionWithSlot: "What is the %1$s?", pleaseEnterSlotNameHere: "(please put your slot name here)", noInputDigitalBot: "Please enter the (please put your slot name here).", noInputWithSlotDigitalBot: "Please enter the %1$s.", continuationPromptWithSlot: "I got {{Slot.%1$s}} so far, please continue." }, askForNextSlot: { noInput: 'Say "yes" if you have another query, or "no" to end the call.', noMatch: 'Say "yes" if you have another query, or "no" to end the session.', question: "Is there anything else I can help you with?", noInputDigitalBot: 'Input "Yes" if you have another query, or "No" to end the session.', noMatchDigitalBot: 'Input "Yes" if you have another query, or "No" to end the session.' }, askForPayment: { noInputDigitalBot: "Please provide your payment information to continue.", noMatchDigitalBot: "I didn't understand your response. Please try again." }, askForAuthentication: { noInputDigitalBot: "Please provide your authentication information to continue.", noMatchDigitalBot: "I didn't understand your response. Please try again." }, askSurveyQuestion: { notApplicable: "Not Applicable", surveyAnswerOptionSequence: "Press %1$s for '%2$s'.", surveyAnswerNotApplicableSequence: "Press star for Not Applicable.", surveyAnswerNotApplicableWithQuestionSequence: "%1$s. Press star for Not Applicable.", voiceSurveyNoInputText: "Please answer the question.", voiceSurveyNoMatchText: "I didn't understand you." }, commonModule: { exitCommonModule: "Exit Common Module" }, form: { noInputDigitalBot: "Please complete the form to continue.", noMatchDigitalBot: "Please complete the form to continue." }, messagingTemplate: { noInputDigitalBot: "Please select one of the available options.", noMatchDigitalBot: "Please select one of the available options." }, knowledgeSettings: { knowledgeAnswerHighlightFlowProgressionDefault: "Continue", knowledgeAnswerHighlightFullArticleDefault: "View Full Article", knowledgeInitialResponseMulti: "To help me clarify your goal, please choose a number from the following list:", knowledgeInitialResponseMultiRetry: "Please choose a number, for example '1'.\nHere's the list of options again:", knowledgeNoMatch: "None of these", knowledgeConfirmation: "Did this answer your question?", knowledgeFollowup: "I hope I answered your question. You can ask anything else you might want to know." }, noOverlay: { intent: { intentConfirmationStr1: "I think you want to", intentConfirmationStr2: "Is that correct?" }, youSaid: { youSaidConfirmationStr1: "You said", youSaidConfirmationStr2: "Is that correct?", youSaidConfirmationStr1DigitalBot: "You entered" }, noInput: { noInputStr1: "Please say or enter the", noInputStr1DigitalBot: "Please enter the" }, noMatch: { noMatchStr1: "Please give me the" }, whatIs: { whatIsQuestionStr1: "What is the", whatIsQuestionStr2: "?" }, iGotContinuation: { iGotContinuationStr1: "I got", iGotContinuationStr2: "so far, please continue." } }, defaultCallFlowOne: "Default Call Flow", errorHandlingAgentEscalationConfirmation: "You want to speak to an advisor. Is that correct?", errorHandlingAgentEscalationHandover: "One moment, please, and I will put you through to someone.", errorHandlingErrorEventHandover: "Sorry, an error occurred. One moment, please, while I put you through to someone who can help.", errorHandlingErrorEventHandoverVoiceSurvey: "Sorry, an error occurred. Goodbye.", errorHandlingRecognitionEventHandover: "Sorry, I'm having trouble understanding you. One moment, please, while I put you through to someone who can help.", errorHandlingRecognitionEventHandoverVoiceSurvey: "Sorry, I'm having trouble understanding you. Goodbye.", errorHandlingTTS: "Sorry, an error occurred. Please try your call again.", initialGreetingTTS: "Hello, this is the initial greeting.", initialState: "Initial State", initialBotState: "Default Bot", initialDigitalBotState: "Initial Greeting", initialSurveyBotState: "Survey Bot", intentConfirmation: "I think you want to %1$s, is that correct?", mainMenu: "Main Menu", mainMenuTTS: "You are at the Main Menu, press 9 to disconnect", mainTask: "Task", settingsConfirmationNoInputApology: "Sorry, I didn't hear you. Please say yes or no.", settingsConfirmationNoInputApologyDigitalBot: `Sorry, I didn't receive any input from you. Please input "Yes" or "No".`, settingsConfirmationNoMatchApology: "Sorry, please say yes or no.", settingsConfirmationNoMatchApologyDigitalBot: 'Sorry, please input "Yes" or "No".', settingsNoInputApology: "Sorry, I didn't hear you.", settingsNoInputApologyDigitalBot: "Sorry, I didn't receive any input from you.", settingsEndOfSessionMessageDigitalBot: "I have not heard from you in a while, so I am closing this chat, please come back if you need my help again. Thank you.", settingsNoMatchApology: "Sorry.", settingsNoToConfirmationApology: "My mistake.", periodicStateName: "Recurring State" }; + }, 49149: (e2, t2, i2) => { + "use strict"; + const n2 = i2(31635), r2 = n2.__importDefault(i2(942)), o = i2(80428), a = i2(37830), s = i2(97678), l = i2(12179), u = n2.__importDefault(i2(97891)), d = i2(47957); + class c extends r2.default { + constructor(e3, t3) { + super(e3.parentFlow, e3), this._loadModel(t3); + } + static get managedProperties() { + return r2.default.createManagedProperties({ searchFieldLabel: d.findActions.findQueue.nameLabel, searchResultLabel: d.findActions.findQueue.resultLabel, searchResultExpressionOptions: a.ExpressionTypeQueueOptions.create(), searchResultItemType: o.expressionTypeNames.queue }); + } + } + c.info = u.default.createActionInfo({ actionClass: c, canBeInTask: true, helpTopic: l.helpTopics.actions.findQueue, modelClass: s.FindQueueActionModel, name: d.actions.findQueue, scriptingName: "ArchActionFindQueue" }), t2.A = c; + }, 49225: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importDefault(i2(92140)), o = n2.__importDefault(i2(78432)), a = i2(80295), s = n2.__importDefault(i2(8471)); + class l extends s.default { + constructor(e3) { + super(), this._checkItemUndefinedOrNull(this._infoParmCtor("coreIntentSettingsViewModel"), e3), this._coreIntentSettingsViewModel = e3, (0, a.makeUnenumerable)(this, "_coreIntentSettingsViewModel"), this._confirmation = this.coreFactory.createArchWrapper(e3.confirmationExpression); + } + get displayTypeName() { + return "ArchSettingsNluIntent"; + } + get isArchSettingsNluIntent() { + return true; + } + get parentFlow() { + return this.coreFactory.createArchWrapper(this._coreIntentSettingsViewModel.parentFlow); + } + get logStr() { + return this.logStrTypeOnly; + } + get confirmation() { + return this._confirmation; + } + associateWithTask(e3) { + this.parentFlow.isArchFlowDigitalBot || this.logErrorAndThrow(`cannot associate a task with an intent in a flow that is not of type '${o.default.FLOW_TYPES.digitalBot}'. ${this.logStr}`), this._checkItem(this._infoPropSet("archReusableTask", "associateWithTask"), !e3 || !e3.isArchTask || !e3.isReusableTask, "you cannot associate an intent to an object that is not a reusable Architect task"); + const t3 = this._coreIntentSettingsViewModel.parent, i3 = this._coreIntentSettingsViewModel.name; + t3.addIntentTaskMapping({ intentName: i3, taskId: e3.id }); + } + get associatedTask() { + var e3; + if (this.parentFlow.isArchFlowDigitalBot || this.logErrorAndThrow(`cannot get an associated task for an intent in a flow that is not of type '${o.default.FLOW_TYPES.digitalBot}'. ${this.logStr}`), !this.parentFlow.tasksReusable.length) return; + const t3 = null === (e3 = this._coreIntentSettingsViewModel.parent.intentsToReusableTasksMapping[this._coreIntentSettingsViewModel.name]) || void 0 === e3 ? void 0 : e3.id; + return t3 ? r2.default.findWhere(this.parentFlow.tasksReusable, { id: t3 }) : void 0; + } + } + t2.default = l; + }, 49304: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = i2(17604), o = n2.__importDefault(i2(92140)), a = i2(9456), s = i2(82319), l = i2(81516), u = n2.__importStar(i2(58380)), d = n2.__importDefault(i2(4648)), c = n2.__importStar(i2(81116)), p = i2(14394), _ = n2.__importDefault(i2(51695)), h = i2(47957); + class m extends _.default { + constructor(e3, t3) { + super(), this.model = e3, this._parentFlow = t3, this.id = (0, a.uuid)(), this.values = this.createNewValuesExpression(this.model.values), this.synonyms = this.createNewSynonymsExpression(this.model.synonyms), this.labels = this.createNewLabelsExpression(this.model.labels); + } + get parentFlow() { + return this._parentFlow; + } + get name() { + return this.model.name; + } + get cardLabel() { + return this.name; + } + get contents() { + return [this.model.name, this.values, this.synonyms, this.labels]; + } + get referenceId() { + return this.name; + } + get className() { + return "DynamicSlotTypeViewModel"; + } + getConfiguration(e3, t3) { + return this.model; + } + get amObjectEventSink() { + return true; + } + initializeDesignTime() { + super.initializeDesignTime(), o.default.each([this.values, this.synonyms, this.labels], (e3) => { + u.registerEventSinkForEventEmitter(e3.id, this); + }); + } + handleSlotTypeInfoUpdated() { + const e3 = this.parentFlow; + o.default.isFunction(e3.updateWorkbenchDynamicSlotTypesUpdated) && e3.updateWorkbenchDynamicSlotTypesUpdated(); + } + objEvent_listOrderChanged() { + this.handleSlotTypeInfoUpdated(); + } + objEvent_expressionValueChanged() { + this.handleSlotTypeInfoUpdated(); + } + createNewValuesExpression(e3) { + const t3 = e3 || null, i3 = l.ExpressionTypeStringOptions.create((e4) => { + e4.setDescriptionInfo(h.dynamicSlotTypes.settings.dynamicSlotTypeSettingValuesLabel, h.dynamicSlotTypes.settings.dynamicSlotTypeSettingValuesDescription).setFeatureConfigName(d.default.botFlowsDynamicSlotTypeFeature).setIninTestingField("slot-type-values"); + }); + return c.expression(this.parentFlow, this.parentFlow.botFlowSettings, t3, h.dynamicSlotTypes.settings.dynamicSlotTypeSettingValuesLabel, p.globalTypes.stringCollection, null, i3); + } + createNewSynonymsExpression(e3) { + const t3 = e3 || null, i3 = l.ExpressionTypeStringOptions.create((e4) => { + e4.setDescriptionInfo(h.dynamicSlotTypes.settings.dynamicSlotTypeSettingSynonymsLabel, (0, r2.sprintf)(h.dynamicSlotTypes.settings.dynamicSlotTypeSettingSynonymsDescription, h.dynamicSlotTypes.settings.dynamicSlotTypeSettingValuesLabel)).setFeatureConfigName(d.default.botFlowsDynamicSlotTypeFeature).setIninTestingField("slot-type-synonyms").setIsOptional(true).setDefaultToNoValue(true).setModeNoValueSelectionLabel(h.dynamicSlotTypes.settings.dynamicSlotTypeSettingSynonymsNoValueSelectionLabel).setModeNoValueRuntimeEvaluationStr(h.dynamicSlotTypes.settings.dynamicSlotTypeSettingSynonymsNoValueSelectionLabel); + }); + return c.expression(this.parentFlow, this.parentFlow.botFlowSettings, t3, h.dynamicSlotTypes.settings.dynamicSlotTypeSettingSynonymsLabel, p.globalTypes.stringCollection, null, i3); + } + createNewLabelsExpression(e3) { + const t3 = e3 || null, i3 = s.ExpressionTypeCommunicationOptions.create((e4) => { + e4.setDescriptionInfo(h.dynamicSlotTypes.settings.dynamicSlotTypeSettingLabelsLabel, (0, r2.sprintf)(h.dynamicSlotTypes.settings.dynamicSlotTypeSettingLabelsDescription, h.dynamicSlotTypes.settings.dynamicSlotTypeSettingValuesLabel)).setFeatureConfigName(d.default.botFlowsDynamicSlotTypePhase2Feature).setIninTestingField("slot-type-labels").setIsOptional(true).setDefaultToNoValue(true).setModeNoValueSelectionLabel(h.dynamicSlotTypes.settings.dynamicSlotTypeSettingLabelsNoValueSelectionLabel).setModeNoValueRuntimeEvaluationStr(h.dynamicSlotTypes.settings.dynamicSlotTypeSettingLabelsNoValueSelectionLabel); + }); + return c.expression(this.parentFlow, this.parentFlow.botFlowSettings, t3, h.dynamicSlotTypes.settings.dynamicSlotTypeSettingLabelsLabel, p.globalTypes.communicationCollection, null, i3); + } + get isDynamicSlotTypeViewModel() { + return true; + } + } + t2.default = m; + }, 49384: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = i2(30801), o = n2.__importDefault(i2(62028)); + class a extends o.default { + constructor(e3) { + super(e3); + } + get _actionTypeId() { + return r2.transferUserActionType; + } + get displayTypeName() { + return "ArchMenuTransferToUser"; + } + get actionTransferToUser() { + return this._archAction; + } + get isArchMenuTransferToUser() { + return true; + } + } + t2.default = a; + }, 49416: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importDefault(i2(92140)), o = n2.__importDefault(i2(27203)), a = n2.__importDefault(i2(98114)), s = n2.__importDefault(i2(27936)), l = i2(55299), u = i2(47957), d = i2(24032).getTopic("StringResolverService"); + class c extends l.BaseClass { + constructor() { + super(), this._regExFlowLevelVariable = new RegExp(/{{\s?variable\.(.*?)\s?}}/), this._refExFlowType = new RegExp(/{{\s?flowType\.(.*?)\s?}}/), this._regExBranchInfo = new RegExp(/{{\s?branch\.(.*?)\s?}}/), this._regExKnowledgeSettingsMode = new RegExp(/{{\s?knowledgeSettingsMode\.(.*?)\s?}}/), this._regExSettings = new RegExp(/{{\s?settings\.(.*?)\s?}}/), this._regExLink = new RegExp(/{{link\.([^,}]+?)(?:,\s(.*?))?}}/); + } + get className() { + return "StringResolverService"; + } + get isStringResolverService() { + return true; + } + resolveString(e3, t3) { + if (!r2.default.isString(e3) || e3.indexOf("{") < 0) return e3; + e3 = this._resolveLinks(e3, s.default.linkIdsToLinkUrl); + let i3 = this._refExFlowType.exec(e3); + for (; i3; ) { + const t4 = e3, n4 = a.default.getDefinitionForFlowType(i3[1]); + n4 && (e3 = e3.replace(i3[0], n4.typeDisplayName)), t4 !== e3 ? i3 = this._refExFlowType.exec(e3) : (i3 = void 0, d.traceOnce("StringResolverService resolveString failed to find flow type", (e4) => e4.error(`Failed to find replacement for ${t4}`))); + } + let n3 = this._regExFlowLevelVariable.exec(e3); + for (; n3; ) { + const i4 = e3, r3 = t3.getVariable(n3[1]); + r3 && (e3 = e3.replace(n3[0], r3.name)), i4 !== e3 ? n3 = this._regExFlowLevelVariable.exec(e3) : (n3 = void 0, d.traceOnce("StringResolverService resolveString failed to find variable", (e4) => e4.error(`Failed to find replacement for ${i4}`))); + } + let l2 = this._regExBranchInfo.exec(e3); + for (; l2; ) { + const t4 = e3, i4 = o.default.outputIdsToLabels[l2[1]]; + i4 && (e3 = e3.replace(l2[0], i4)), t4 !== e3 ? l2 = this._regExBranchInfo.exec(e3) : (l2 = void 0, d.traceOnce("StringResolverService resolveString failed to find branch", (e4) => e4.error(`Failed to find replacement for ${t4}`))); + } + let c2 = this._regExSettings.exec(e3); + for (; c2; ) { + const t4 = e3; + let i4; + switch (c2[1]) { + case "__INTENTS__": + i4 = u.intents.label; + break; + case "__KNOWLEDGE__": + i4 = u.knowledgeSettings.knowledgeLabel; + break; + case "__NATURAL_LANGUAGE_UNDERSTANDING__": + i4 = u.bot.naturalLanguageUnderstanding; + } + i4 && (e3 = e3.replace(c2[0], i4)), t4 !== e3 ? c2 = this._regExBranchInfo.exec(e3) : (c2 = void 0, d.traceOnce("StringResolverService resolveString failed to find setting name", (e4) => e4.error(`Failed to find replacement for ${t4}`))); + } + let p = this._regExKnowledgeSettingsMode.exec(e3); + for (; p; ) { + const t4 = e3; + let i4; + switch (p[1]) { + case "__STANDARD__": + i4 = u.knowledgeSettings.knowledgeSettingsModes.standard; + break; + case "__CUSTOM__": + i4 = u.knowledgeSettings.knowledgeSettingsModes.custom; + } + i4 && (e3 = e3.replace(p[0], i4)), t4 !== e3 ? p = this._regExKnowledgeSettingsMode.exec(e3) : (p = void 0, d.traceOnce("StringResolverService resolveString failed to find setting name", (e4) => e4.error(`Failed to find replacement for ${t4}`))); + } + return e3; + } + _resolveLinks(e3, t3) { + if (!r2.default.isString(e3) || e3.indexOf("{") < 0) return e3; + let i3 = ""; + return this.resolveLinkToParts(e3, t3).forEach((e4) => { + if (e4.linkInfo) { + const t4 = "function" == typeof e4.linkInfo.getLinkUrl ? e4.linkInfo.getLinkUrl() : "#"; + i3 += `${e4.linkInfo.linkTitle || e4.text}`; + } else i3 += e4.text; + }), i3; + } + resolveLinkToParts(e3, t3) { + if (!r2.default.isString(e3) || e3.indexOf("{") < 0) return [{ text: e3 }]; + const i3 = []; + let n3 = this._regExLink.exec(e3); + for (; n3; ) { + const r3 = n3[0], o2 = n3[1], a2 = n3[2]; + i3.push({ text: e3.slice(0, n3.index) }), e3 = e3.slice(n3.index + r3.length); + const s2 = t3[o2]; + if (s2) { + const e4 = a2 || s2.linkTitle || s2.getLinkUrl(); + i3.push({ text: e4, linkInfo: s2 }); + } else d.traceOnce(`StringResolverService resolveLinkToParts - ${this.className}`, (e4) => e4.warning(`Can't resolve link with key ${o2}`)), i3.push({ text: r3 }); + n3 = this._regExLink.exec(e3); + } + return i3.push({ text: e3 }), i3; + } + } + t2.default = new c(); + }, 49450: (e2, t2, i2) => { + "use strict"; + const n2 = i2(31635), r2 = n2.__importStar(i2(36781)), o = n2.__importStar(i2(10798)), a = n2.__importStar(i2(77751)), s = n2.__importStar(i2(1115)), l = n2.__importDefault(i2(5478)), u = n2.__importDefault(i2(27203)), d = i2(21647), c = i2(60186), p = i2(80428), _ = i2(81516), h = i2(26954), m = n2.__importDefault(i2(4648)), g = i2(38296), f = i2(38296), T = i2(12179), y = n2.__importDefault(i2(97891)), S = i2(47957); + class A extends l.default { + constructor(e3, t3) { + super(e3.parentFlow, e3), this._loadModel(t3); + } + _loadModel(e3) { + super._loadModel(e3), this.addAutoCleanedUpEventSinkWatch(r2.expressionValueChanged, this.notificationType, () => { + this.setOutOfService(); + }), this.setOutOfService(); + } + static get managedProperties() { + return [{ label: S.sendNotification.notificationTypeLabel, options: _.ExpressionTypeStringOptions.create((e3) => e3.setDescriptionInfo(S.sendNotification.notificationTypeLabel, S.sendNotification.notificationTypeDescription).setAsInput().setIsOptional(false).setDefaultText(a.typeEmail.id).setAllowModeLiteralOnly().setIninTestingField("sendNotification-notificationType").setReadOnly(o.isFeatureUnavailable(m.default.sendNotificationChatGroupFeature)).facets.setAllowableValueShowOriginalDisplayStringInPopover(true).setTrim(true).setAllowableValues(o.isFeatureAvailable(m.default.sendNotificationChatGroupFeature) ? [a.typeEmail, a.typeChat] : [a.typeEmail])), property: "notificationType", type: p.expressionTypeNames.string }, { label: S.sendNotification.notificationSubjectLabel, options: _.ExpressionTypeStringOptions.create((e3) => e3.setAsInput().setIsOptional(true).setDescriptionInfo(S.sendNotification.notificationSubjectLabel, S.sendNotification.notificationSubjectDescription).setModeNoValueRuntimeEvaluationStr(S.sendNotification.noNotificationSubject).setModeNoValueSelectionLabel(S.sendNotification.noNotificationSubject).setIninTestingField("sendNotification-subject")), property: "subject", type: p.expressionTypeNames.string }, { label: S.sendNotification.notificationBodyLabel, options: _.ExpressionTypeStringOptions.create((e3) => e3.setAsInput().setIsOptional(true).setDescriptionInfo(S.sendNotification.notificationBodyLabel, S.sendNotification.notificationBodyDescription).setModeNoValueRuntimeEvaluationStr(S.sendNotification.noNotificationBody).setModeNoValueSelectionLabel(S.sendNotification.noNotificationBody).setIninTestingField("sendNotification-body")), property: "body", type: p.expressionTypeNames.string }, { label: S.sendNotification.sendToUsersLabel, options: h.ExpressionTypeUserOptions.create((e3) => e3.setAsInput().setIsOptional(false).setDescriptionInfo(S.sendNotification.sendToUsersDescription, S.sendNotification.sendToUsersDescription).setIsCollection(true).setMinItems(1).setMaxItems(50).setIninTestingField("sendNotification-sendToUsers")), property: "sendToUsers", type: p.expressionTypeNames.userQueue }, { label: S.sendNotification.emailNotificationStyleLabel, options: _.ExpressionTypeStringOptions.create((e3) => e3.setAsInput().setIsOptional(true).setDescriptionInfo(S.sendNotification.emailNotificationStyleDescription, S.sendNotification.emailNotificationStyleDescription).setModeNoValueRuntimeEvaluationStr(a.emailStylePlain.displayString).setModeNoValueSelectionLabel(S.sendNotification.defaultEmailStyle).setIninTestingField("sendNotification-emailNotificationStyle").facets.setAllowableValues(a.emailStylesAll)), property: "emailNotificationStyle", type: p.expressionTypeNames.string }, { label: S.sendNotification.emailFromLabel, options: d.ExpressionTypeComplexOptions.create((e3) => e3.setAsInput().setTypeIdentifier(p.expressionTypeNames.emailAddress).setIsOptional(true).setDescriptionInfo(S.sendNotification.emailFromDescription, S.sendNotification.emailFromDescription).setModeNoValueRuntimeEvaluationStr(S.sendNotification.useDefaultEmailFromAddress).setModeNoValueSelectionLabel(S.sendNotification.defaultEmailFromAddress).setIninTestingField("sendNotification-emailFrom")), property: "emailFrom", type: p.expressionTypeNames.emailAddress }, { label: S.sendNotification.sendToGroupLabel, options: c.ExpressionTypeGroupOptions.create((e3) => e3.setFeatureConfigName(m.default.sendNotificationChatGroupFeature).setIsOptional(false).setDescriptionInfo(S.sendNotification.sendToGroupDescription, S.sendNotification.sendToGroupDescription).setIninTestingField("sendNotification-sendToGroup")), property: "sendToGroup", type: p.expressionTypeNames.group }, { label: S.sendNotification.chatMessageLabel, options: _.ExpressionTypeStringOptions.create((e3) => e3.setFeatureConfigName(m.default.sendNotificationChatGroupFeature).setAsInput().setIsOptional(false).setDescriptionInfo(S.sendNotification.chatMessageDescription, S.sendNotification.chatMessageDescription).setIninTestingField("sendNotification-chatMessage")), property: "chatMessage", type: p.expressionTypeNames.string }]; + } + static get branchInfo() { + return u.default.successFailure; + } + _getPossibleErrors() { + return o.isFeatureAvailable(m.default.sendNotificationChatGroupFeature) ? f.getSendNotificationFailureReasons : g.getSendNotificationFailureReasonsNoBusy; + } + setOutOfService() { + switch (this.notificationType.text) { + case "email": + this.setOutOfServiceForEmailProperties(true), this.setOutOfServiceForChatProperties(false); + break; + case "chat": + this.setOutOfServiceForEmailProperties(false), this.setOutOfServiceForChatProperties(true); + break; + default: + this.setOutOfServiceForEmailProperties(false), this.setOutOfServiceForChatProperties(false); + } + s.validate(this, true); + } + setOutOfServiceForChatProperties(e3) { + this.sendToGroup.outOfService = !e3, this.chatMessage.outOfService = !e3; + } + setOutOfServiceForEmailProperties(e3) { + this.subject.outOfService = !e3, this.body.outOfService = !e3, this.sendToUsers.outOfService = !e3, this.emailNotificationStyle.outOfService = !e3, this.emailFrom.outOfService = !e3, this.subject.outOfService = !e3, this.subject.outOfService = !e3; + } + } + A.info = y.default.createActionInfo({ actionClass: A, canBeInTask: true, helpTopic: T.helpTopics.actions.sendNotification, modelClass: i2(73322), name: S.actions.sendNotification, scriptingName: "ArchActionSendNotification" }), t2.A = A; + }, 49487: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importStar(i2(1115)), o = n2.__importDefault(i2(5730)); + class a extends o.default { + constructor(e3) { + super(e3.parentFlow, e3); + } + setNewInstanceDefaults() { + super.setNewInstanceDefaults(); + } + validate(e3) { + this.variables.isVariableListEmpty(e3), super.validate(e3); + } + propertyChanged(e3) { + super.propertyChanged(e3), this.parentFlow.loaded && this.initializeDesignTimeCalled && e3 === this.variables && r2.validateAction(this, false, true); + } + } + a.className = "BaseParticipantDataActionViewModel", t2.default = a; + }, 49493: (e2, t2, i2) => { + const n2 = i2(5233); + function r2() { + r2.baseConstructor.apply(this, arguments); + } + i2(22124).extend(r2, "DialogflowCxAgentList"), Object.defineProperties(r2.prototype, { entities: { enumerable: true, get: function() { + return this._entities; + }, set: function(e3) { + this._entities = this.reviveArray(e3, n2); + } } }), e2.exports = r2; + }, 49508: (e2, t2, i2) => { + const n2 = i2(60475), { setSecuredDataActionType: r2 } = i2(30801); + function o() { + o.baseConstructor.apply(this, arguments); + } + n2.extend(o, r2, true), e2.exports = o; + }, 49574: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.BaseFindSystemObjectByNameActionModel = void 0; + const n2 = i2(31635), r2 = i2(7340), o = i2(80295), a = i2(80295), s = i2(7401); + class l extends r2.BaseFindSystemObjectActionModel { + constructor(e3) { + super(e3), (0, a.makeUnenumerable)(this, "_findName"); + } + get findName() { + return this._findName; + } + set findName(e3) { + this._findName = this.reviveItem(e3, s); + } + pasteReIdOrRename(e3) { + super.pasteReIdOrRename(e3), this._findName.pasteReIdOrRename(e3); + } + pasteResolveOldToNewValues(e3) { + super.pasteResolveOldToNewValues(e3), this._findName.pasteResolveOldToNewValues(e3); + } + } + t2.BaseFindSystemObjectByNameActionModel = l, n2.__decorate([(0, o.enumerable)(true), n2.__metadata("design:type", Object), n2.__metadata("design:paramtypes", [Object])], l.prototype, "findName", null); + }, 49617: (e2, t2, i2) => { + const n2 = i2(48584), r2 = i2(62896), o = i2(5233), a = i2(49493), s = i2(36019).default; + class l { + } + const u = new l(), d = { ignoreBadResponse: true }; + l.prototype.getAgents = s.request("GET", "{public-api.apps}/api/v2/integrations/speech/dialogflow/agents/", r2, d), l.prototype.getAgent = s.request("GET", "{public-api.apps}/api/v2/integrations/speech/dialogflow/agents/{id}", n2, d), l.prototype.getCxAgents = s.request("GET", "{public-api.apps}/api/v2/integrations/speech/dialogflowcx/agents/", a, d), l.prototype.getCxAgent = s.request("GET", "{public-api.apps}/api/v2/integrations/speech/dialogflowcx/agents/{id}", o, d), e2.exports = u; + }, 49661: (e2, t2, i2) => { + "use strict"; + const n2 = i2(31635), r2 = i2(96618), o = i2(71012), a = i2(28562), s = n2.__importDefault(i2(73198)), l = (n2.__importStar(i2(63352)), i2(80428)), u = i2(67607), d = i2(82319), c = i2(20083), p = n2.__importStar(i2(10798)), _ = n2.__importDefault(i2(4648)), h = i2(12179), m = i2(14187), g = n2.__importDefault(i2(97891)), f = i2(24383), T = n2.__importDefault(i2(5730)), y = (i2(21733), i2(47957)); + class S extends T.default { + static get managedProperties() { + return [{ label: y.askCommon.question, options: d.ExpressionTypeCommunicationOptions.create((e3) => e3.setDescriptionInfo(y.askCommon.question, y.askCommon.questionDescriptionWaitForInputAction).setIninTestingField("question").setIsOptional(true).setDefaultToBuilderId(a.builderIds.parts.markdownCommunication).setBuilderLanguagesSequenceConfig(o.askForIntentSequences.questionSequence).setUiPropertyOrder(2)), yamlOptions: S.createYamlOptions("question", (e3) => e3.setExportOrder(30).setPropertyName("question")), property: "question", type: l.expressionTypeNames.communication }, { property: "knowledgeSearchResult", label: y.cardsAndCars.knowledgeSearchResultLabel, type: l.expressionTypeNames.knowledgeBaseDocument, options: c.ExpressionTypeKnowledgeBaseDocumentOptions.create((e3) => e3.setAsOutput().setDefaultVariableScope(m.scopes.flow).setIsOptional(true).setIsCollection(true).setIninTestingField("knowledgeSearchResult").setDescriptionInfo(y.cardsAndCars.knowledgeSearchResultLabel, y.cardsAndCars.knowledgeSearchResultDescription).setFeatureConfigName(_.default.botFlowsDigitalBotFlowsKnowledgeEndToEndFeature).setUiPropertyOrder(3)), yamlOptions: S.createYamlOptions("knowledgeSearchResult", (e3) => e3.setExportOrder(40)) }, { label: y.askCommon.noMatch, options: d.ExpressionTypeCommunicationOptions.create((e3) => e3.setAllowSecure(true).setUiPropertyOrder(8).setIninTestingField("noMatch").setIsOptional(true).setDefaultToNoValue(true).setDoNotTransitionToNoValue(false).setDescriptionInfo(y.askCommon.noMatch, y.askCommon.noMatchDescription).setDefaultToBuilderId(a.builderIds.parts.genericCommunication).setBuilderLanguagesSequenceConfig(o.askForIntentSequences.noMatchSequence).setScriptingPropertyName("noMatch")), optionsForSpecificFlowTypes: [{ flowTypes: [r2.flowTypes.flowTypeDigitalBot], options: d.ExpressionTypeCommunicationOptions.create((e3) => e3.setAllowSecure(true).setUiPropertyOrder(8).setIninTestingField("noMatch").setIsOptional(true).setDefaultToNoValue(true).setDoNotTransitionToNoValue(false).setDescriptionInfo(y.askCommon.noMatch, y.askCommon.noMatchDescription).setDefaultToBuilderId(a.builderIds.parts.markdownCommunication).setBuilderLanguagesSequenceConfig(o.askForIntentSequences.noMatchSequence).setScriptingPropertyName("noMatch")) }], yamlOptions: S.createYamlOptions("noMatch", (e3) => e3.setPropertyName("noMatch").setExportOrder(50)), property: "noMatch", type: l.expressionTypeNames.communication }, { label: y.askCommon.noMatchReprompts, options: S.createNoMatchRepromptsOptions().setDefaultToBuilderId(a.builderIds.parts.genericCommunication), optionsForSpecificFlowTypes: [{ flowTypes: [r2.flowTypes.flowTypeDigitalBot], options: S.createNoMatchRepromptsOptions().setDefaultToBuilderId(a.builderIds.parts.markdownCommunication) }], yamlOptions: S.createYamlOptions("noMatchReprompts", (e3) => e3.setPropertyName("noMatchReprompts").setWrappedObjectName("customizeNoMatch")), property: "noMatchReprompts", type: l.expressionTypeNames.communication }, { options: u.ExpressionTypeBooleanOptions.create((e3) => e3.setUseButton(true).setAllowModeLiteralOnly().setDefaultText("false").setIninTestingField("customizeNoMatchButton").setFeatureConfigName(_.default.botFlowsDigitalBotFlowsReprompts).setBoolText(y.askCommon.defaultNoMatch, y.askCommon.customizeNoMatch).setUiPropertyOrder(10)), yamlOptions: S.createYamlOptions("customizeNoMatch", (e3) => e3.setSkipProperty(true)), property: "customizeNoMatch", type: l.expressionTypeNames.boolean }]; + } + constructor(e3, t3) { + super(e3.parentFlow, e3), this._loadModel(t3); + } + setNewInstanceDefaults(e3) { + super.setNewInstanceDefaults(e3); + } + static createNoMatchRepromptsOptions() { + return d.ExpressionTypeCommunicationOptions.create((e3) => e3.setAllowSecure(true).setIninTestingField("noMatchReprompts").setFeatureConfigName(_.default.botFlowsDigitalBotFlowsReprompts).setDescriptionInfo(y.askCommon.noMatchReprompts, y.askCommon.noMatchRepromptsDescription).setIsOptional(true).setScriptingPropertyName("noMatchReprompts").setIsCollection(true).setAllowModeLiteral(true).setMaxItems(10).setDoNotTransitionToNoValue(true).setUiPropertyOrder(9), true); + } + initializeDesignTime() { + super.initializeDesignTime(), p.isFeatureAvailable(_.default.botFlowsDigitalBotFlowsReprompts) && (this.noMatchReprompts.outOfService = this.customizeNoMatch.model.text !== s.default.true, this.noMatch.outOfService = this.customizeNoMatch.model.text === s.default.true); + } + propertyChanged(e3) { + super.propertyChanged(e3), p.isFeatureAvailable(_.default.botFlowsDigitalBotFlowsReprompts) && "customizeNoMatch" === e3.propertyName && (this.noMatch.outOfService = this.customizeNoMatch.model.text === s.default.true, this.noMatchReprompts.outOfService = this.customizeNoMatch.model.text !== s.default.true); + } + } + S.info = g.default.createActionInfo({ actionClass: S, canBeInTask: true, helpTopic: h.helpTopics.actions.waitForInput, modelClass: i2(66093), name: y.actions.actionWaitForInput, scriptingName: "ArchActionWaitForInput", supportsUtteranceHistoricalData: true, termination: f.terminatesTask }), t2.A = S; + }, 49706: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.SetSkillExpressionFiltersActionModel = void 0; + const n2 = i2(31635), r2 = i2(5894), o = i2(30801), a = i2(80295), s = i2(80295), l = n2.__importDefault(i2(7401)); + class u extends r2.BaseFailureOutputsActionModel { + constructor(e3) { + super(e3), this.__type = u.__type, (0, s.makeUnenumerable)(this, "_skillExpressionFilters"); + } + pasteReIdOrRename(e3) { + var t3; + super.pasteReIdOrRename(e3), null === (t3 = this.skillExpressionFilters) || void 0 === t3 || t3.pasteReIdOrRename(e3); + } + pasteResolveOldToNewValues(e3) { + var t3; + super.pasteResolveOldToNewValues(e3), null === (t3 = this.skillExpressionFilters) || void 0 === t3 || t3.pasteResolveOldToNewValues(e3); + } + get skillExpressionFilters() { + return this._skillExpressionFilters; + } + set skillExpressionFilters(e3) { + this._skillExpressionFilters = this.reviveItem(e3, l.default); + } + } + t2.SetSkillExpressionFiltersActionModel = u, u.__type = o.setSkillExpressionFiltersActionType, n2.__decorate([(0, a.enumerable)(true), n2.__metadata("design:type", Object), n2.__metadata("design:paramtypes", [Object])], u.prototype, "skillExpressionFilters", null), u.registerType(); + }, 49717: (e2, t2, i2) => { + "use strict"; + const n2 = i2(31635), r2 = i2(96618), o = i2(12179), a = n2.__importDefault(i2(78791)), s = n2.__importDefault(i2(73198)), l = n2.__importDefault(i2(97891)), u = i2(12457), d = i2(42098), c = i2(67607), p = i2(81516), _ = i2(9290), h = i2(80428), m = i2(47957); + class g extends a.default { + constructor(e3, t3) { + super(e3), this.editor_testing_tag = "TransferExternalAction", this.externalNumber = null, this._loadModel(t3); + } + static get managedProperties() { + return [(0, d.createTransferConnectTimeoutProperty)(m.expression.noValue.selectionRuntimeEvaluation.connectTimeout.edgeTrunkTimeout), { label: m.externalTransfer.number, options: p.ExpressionTypeStringOptions.create((e3) => e3.setUiPropertyOrder(10).setIninTestingField("externalTransferExpression").setDisableSpellcheck(true).facets.setMinLength(1).setTrim(true)), yamlOptions: g.createYamlOptions("externalNumber", (e3) => e3.setPropertyName("targetNumber").setExportOrder(30)), property: "externalNumber", type: h.expressionTypeNames.string }, { label: m.externalTransfer.releaseLinkTransfer, options: c.ExpressionTypeBooleanOptions.create((e3) => e3.setUiPropertyOrder(20).setIninTestingField("releaseLinkTransfer").setDefaultText(s.default.false)), yamlOptions: g.createYamlOptions("releaseLinkTransfer", (e3) => e3.setExportOrder(80)), property: "releaseLinkTransfer", type: h.expressionTypeNames.boolean, supportedFlowTypes: r2.flowTypes.flowTypesAllVxmlgen }]; + } + _getPossibleErrors() { + return _.externalTransferFailureReasons; + } + getDetails() { + return this.externalNumber && this.externalNumber.text ? new u.ActionDetails([m.externalTransfer.number], [this.externalNumber.text]) : null; + } + } + g.info = l.default.createActionInfo({ actionClass: g, canBeInTask: true, canBeTreeNode: true, helpTopic: o.helpTopics.actions.transferExternal, modelClass: i2(37293), name: m.actions.transfers.external, scriptingName: "ArchActionTransferToNumber" }), t2.A = g; + }, 49756: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.SmsPhoneNumber = void 0; + const n2 = i2(31635), r2 = i2(80295), o = i2(80295), a = i2(19596), s = i2(55656); + class l extends a.DataContract { + constructor(e3) { + super(e3), (0, o.makeUnenumerable)(this, "_phoneNumber"), (0, o.makeUnenumerable)(this, "_phoneNumberStatus"), (0, o.makeUnenumerable)(this, "_supportsSms"), (0, o.makeUnenumerable)(this, "_provisionedThroughPureCloud"), (0, o.makeUnenumerable)(this, "_version"); + } + get id() { + return this._phoneNumber; + } + set id(e3) { + this._phoneNumber = e3; + } + get phoneNumber() { + return this._phoneNumber; + } + set phoneNumber(e3) { + this._phoneNumber = e3; + } + get phoneNumberStatus() { + return this._phoneNumberStatus; + } + set phoneNumberStatus(e3) { + this._phoneNumberStatus = e3; + } + get supportsSms() { + return this._supportsSms; + } + set supportsSms(e3) { + this._supportsSms = e3; + } + get provisionedThroughPureCloud() { + return this._provisionedThroughPureCloud; + } + set provisionedThroughPureCloud(e3) { + this._provisionedThroughPureCloud = e3; + } + get version() { + return this._version; + } + set version(e3) { + this._version = e3; + } + get label() { + return (0, s.splitRawPhoneNumber)(this._phoneNumber).schemeType ? this._phoneNumber : "tel:" + this._phoneNumber; + } + set label(e3) { + this._phoneNumber = e3; + } + } + t2.SmsPhoneNumber = l, n2.__decorate([(0, r2.enumerable)(true), n2.__metadata("design:type", String), n2.__metadata("design:paramtypes", [String])], l.prototype, "id", null), n2.__decorate([(0, r2.enumerable)(true), n2.__metadata("design:type", String), n2.__metadata("design:paramtypes", [String])], l.prototype, "phoneNumber", null), n2.__decorate([(0, r2.enumerable)(true), n2.__metadata("design:type", String), n2.__metadata("design:paramtypes", [String])], l.prototype, "phoneNumberStatus", null), n2.__decorate([(0, r2.enumerable)(true), n2.__metadata("design:type", Boolean), n2.__metadata("design:paramtypes", [Boolean])], l.prototype, "supportsSms", null), n2.__decorate([(0, r2.enumerable)(true), n2.__metadata("design:type", Boolean), n2.__metadata("design:paramtypes", [Boolean])], l.prototype, "provisionedThroughPureCloud", null), n2.__decorate([(0, r2.enumerable)(true), n2.__metadata("design:type", Number), n2.__metadata("design:paramtypes", [Number])], l.prototype, "version", null), n2.__decorate([(0, r2.enumerable)(true), n2.__metadata("design:type", String), n2.__metadata("design:paramtypes", [String])], l.prototype, "label", null); + }, 49804: (e2, t2, i2) => { + const n2 = i2(23695), r2 = i2(88557).default, o = i2(37752).default; + function a() { + Object.defineProperties(this, { _emailSendSettings: { writable: true }, _errorHandling: { writable: true } }), a.baseConstructor.apply(this, arguments); + } + n2.extend(a, "EmailSendFlowConfiguration"), Object.defineProperties(a.prototype, { emailSendSettings: { enumerable: true, get: function() { + return this._emailSendSettings; + }, set: function(e3) { + this._emailSendSettings = this.reviveItem(e3, r2); + } }, errorHandling: { enumerable: true, get: function() { + return this._errorHandling; + }, set: function(e3) { + this._errorHandling = this.reviveItem(e3, o); + } } }), e2.exports = a; + }, 49872: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(84655)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "schedule"; + } + get displayTypeName() { + return "ArchVariableSchedule"; + } + get initialValue() { + return this._initialValue; + } + get isArchVariableSchedule() { + return true; + } + } + t2.default = r2; + }, 49892: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.ExpressionTypelessOptions = void 0; + const n2 = i2(65615); + class r2 extends n2.BaseExpressionTypeCollectionOptions { + static create(e3, t3) { + return new this(t3).invokeOptionsCallback(e3); + } + get className() { + return "ExpressionTypelessOptions"; + } + get isExpressionTypelessOptions() { + return true; + } + } + t2.ExpressionTypelessOptions = r2; + }, 49895: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(20692)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "jsonCollection"; + } + get displayTypeName() { + return "ArchVariableJsonCollection"; + } + get initialValue() { + return this._initialValue; + } + get isArchVariableJsonCollection() { + return true; + } + } + t2.default = r2; + }, 50029: (e2, t2, i2) => { + const n2 = i2(15655), { botStateActionType: r2 } = i2(30801); + function o() { + Object.defineProperties(this, { _variableScope: { value: "Bot" } }), o.baseConstructor.apply(this, arguments); + } + n2.extend(o, r2, true), Object.defineProperties(o.prototype, { pasteReIdOrRename: { value: function(e3) { + o._super.pasteReIdOrRename.apply(this, arguments), this.name = e3.pasteGetUniqueStateName(this.name); + } } }), e2.exports = o; + }, 50096: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.max = void 0; + var n2 = i2(92070), r2 = i2(10281); + t2.max = function(e3) { + return n2.reduce(r2.isFunction(e3) ? function(t3, i3) { + return e3(t3, i3) > 0 ? t3 : i3; + } : function(e4, t3) { + return e4 > t3 ? e4 : t3; + }); + }; + }, 50097: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = i2(30801), o = n2.__importDefault(i2(62028)); + class a extends o.default { + constructor(e3) { + super(e3); + } + get _actionTypeId() { + return r2.transferVoicemailActionType; + } + get displayTypeName() { + return "ArchMenuTransferToVoicemail"; + } + get actionTransferToVoicemail() { + return this._archAction; + } + get isArchMenuTransferToVoicemail() { + return true; + } + } + t2.default = a; + }, 50100: (e2, t2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.ErrorInformation = void 0, t2.ErrorInformation = class { + constructor(e3, t3, i2, n2) { + this.message = e3, this.title = i2, this.helpTopic = t3, this.additionalInfoSections = n2; + } + }; + }, 50202: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importDefault(i2(94225)), o = i2(79069), a = n2.__importDefault(i2(45894)); + class s extends a.default { + constructor(e3) { + super(e3, o.skillManager); + } + get _globalTypeName() { + return "skill"; + } + get displayTypeName() { + return "ArchValueSkill"; + } + get isArchValueSkill() { + return true; + } + setLiteralBySkillIdAsync(e3, t3) { + return n2.__awaiter(this, void 0, void 0, function* () { + return this._checkItemIsValidLiteralString(this._infoParm("skillId", "setLiteralBySkillIdAsync"), e3), this._checkItemIsValidFunction(this._infoParm("callbackFunction", "setLiteralBySkillIdAsync"), t3, true), this._setLiteralByIdAsync(e3).then(() => r2.default.executeCallback(this, "setLiteralBySkillIdAsync", t3, this)); + }); + } + setLiteralBySkillNameAsync(e3, t3) { + return n2.__awaiter(this, void 0, void 0, function* () { + return this._checkItemIsValidLiteralString(this._infoParm("skillName", "setLiteralBySkillNameAsync"), e3), this._checkItemIsValidFunction(this._infoParm("callbackFunction", "setLiteralBySkillNameAsync"), t3, true), this._setLiteralByValueAsync(e3).then(() => r2.default.executeCallback(this, "setLiteralBySkillNameAsync", t3, this)); + }); + } + } + t2.default = s; + }, 50293: (e2, t2, i2) => { + "use strict"; + const n2 = i2(31635), r2 = i2(17604), o = n2.__importDefault(i2(92140)), a = n2.__importStar(i2(63824)), s = i2(79467), l = i2(24235), u = n2.__importStar(i2(58380)), d = i2(12179), c = i2(12457), p = n2.__importDefault(i2(97891)), _ = n2.__importDefault(i2(5730)), h = i2(80428), m = i2(26151), g = i2(47957), f = i2(30015); + class T extends _.default { + constructor(e3, t3) { + super(e3.parentFlow, e3), this._loadModel(t3); + } + get playbackMode() { + return this.model.playbackMode; + } + set playbackMode(e3) { + this.model.playbackMode = e3, this.setMode(true); + } + _loadModel(e3) { + super._loadModel(e3), this.setOutOfService(); + } + get amObjectEventSink() { + return true; + } + addSpecificInterval(e3) { + if (this.supportsSpecificRoundingIntervals()) { + const t3 = this.specificRoundingIntervals.add(void 0, void 0, this.specificRoundingIntervals.options); + return t3.setAsLiteral(e3 || a.millisecondsToXSD(6e4)), t3.id; + } + } + getDetails() { + const e3 = [g.estimatedWaitTime.estimatedWaitTime], t3 = [this.estimatedWaitTime.text]; + return this.playbackMode && this.playbackMode === m.about ? (e3.push(g.estimatedWaitTime.playbackMode), t3.push(g.estimatedWaitTime.about)) : this.playbackMode && this.playbackMode === m.exact ? (e3.push(g.estimatedWaitTime.playbackMode), t3.push(g.estimatedWaitTime.exact)) : this.playbackMode && this.playbackMode === m.lessThan ? (e3.push(g.estimatedWaitTime.playbackMode), t3.push(g.estimatedWaitTime.lessThan)) : this.playbackMode && this.playbackMode === m.range && (e3.push(g.estimatedWaitTime.playbackMode), t3.push(g.estimatedWaitTime.range)), new c.ActionDetails(e3, t3); + } + initialize() { + super.initialize(), u.registerEventSinkForEventEmitter(this.parentFlow.languages.id, this), this.setMode(false); + } + setNewInstanceDefaults() { + super.setNewInstanceDefaults(...arguments), this.playbackMode = m.lessThan, this.parentFlow.isInQueueCallFlow && this.estimatedWaitTime.setText("Call.EstimatedWaitTime", true), this.setMode(true); + } + static get managedProperties() { + return [{ property: "estimatedWaitTime", label: g.estimatedWaitTime.estimatedWaitTime, type: h.expressionTypeNames.duration, options: s.ExpressionTypeDurationOptions.create((e3) => e3.setAllowModeLiteral(false).setAllowModeExpression(true).setUsedAsReplacementValueInOtherExpressions(true).facets.setMinDur(0, true)) }, { property: "roundingInterval", label: g.estimatedWaitTime.roundingInterval, type: h.expressionTypeNames.duration, options: s.ExpressionTypeDurationOptions.create((e3) => e3.setDurationStyle(a.durationStyles.mediumDuration).facets.setMinDur(0, true)) }, { property: "specificRoundingIntervals", label: g.estimatedWaitTime.specificRoundingIntervals, type: h.expressionTypeNames.duration, list: true, options: s.ExpressionTypeDurationOptions.create((e3) => e3.setDurationStyle(a.durationStyles.mediumDuration).facets.setMinDur(0, true)) }, { audio: true, generatedPromptsDetails: { dependentProperties: ["playbackMode", "estimatedWaitTime", "roundingInterval", "specificRoundingIntervals"], sequenceDefinition: f, getPlaybackMode: function() { + return this.playbackMode.name.toLocaleLowerCase(); + }, getReplacementValues: function() { + const e3 = {}; + if (e3[f.parts.replacementDuration] = (0, r2.sprintf)("If(IsSet(%1$s), If(%1$s < MakeDuration(0, 0, 0, 0), MakeDuration(0, 0, 0, 0), %1$s), %1$s)", this.estimatedWaitTime.getEmbeddableExpressionText()), e3[f.parts.replacementRoundingInterval] = this.roundingInterval.getEmbeddableExpressionText(), this.supportsSpecificRoundingIntervals()) { + const t3 = o.default.map(this.specificRoundingIntervals.items, function(e4) { + return e4.getEmbeddableExpressionText(); + }); + e3[f.parts.replacementSpecificRoundingInterval] = t3.length ? (0, r2.sprintf)("MakeList(%s)", t3.join(",")) : "MakeEmptyList(ToDuration(0))"; + } + return e3; + } }, options: l.AudioViewModelOptions.create((e3) => e3.setIninTestingField("playbackModeAudio").setLabel(g.estimatedWaitTime.playbackMode)), yamlOptions: T.createYamlOptions("prompts", (e3) => e3.setSkipProperty(true)), property: "prompts" }, { property: "playbackMode", isJustForFlowYaml: true }]; + } + objEvent_supportedLanguagesChanged() { + this.generateAudioExpression(); + } + supportsSpecificRoundingIntervals() { + return this.playbackMode.value === m.about.value || this.playbackMode.value === m.lessThan.value; + } + setMode(e3) { + switch (this.supportsSpecificRoundingIntervals() && e3 && (this.roundingInterval.setAsLiteral(a.millisecondsToXSD(3e5)), this.specificRoundingIntervals.destroyChildren(), this.addSpecificInterval(a.millisecondsToXSD(3e4)), this.addSpecificInterval(a.millisecondsToXSD(6e4)), this.addSpecificInterval(a.millisecondsToXSD(12e4)), this.addSpecificInterval(a.millisecondsToXSD(3e5))), this.playbackMode.value) { + case m.exact.value: + break; + case m.range.value: + (e3 || this.roundingInterval.isBlank) && this.roundingInterval.setAsLiteral(a.millisecondsToXSD(6e4)), this.roundingInterval.label = g.estimatedWaitTime.roundingIntervalPadded; + break; + default: + this.roundingInterval.label = g.estimatedWaitTime.roundingInterval; + } + this.roundingInterval.options.durationStyle = this.playbackMode.value === m.range.value ? a.durationStyles.minutes : a.durationStyles.mediumDuration, this.setOutOfService(), this.generateAudioExpression(); + } + setOutOfService() { + this.playbackMode && (this.specificRoundingIntervals.outOfService = !this.supportsSpecificRoundingIntervals(), this.roundingInterval.outOfService = this.playbackMode.value === m.exact.value); + } + } + T.info = p.default.createActionInfo({ actionClass: T, canBeInTask: true, helpTopic: d.helpTopics.actions.playEstimatedWaitTime, modelClass: i2(50807), name: g.actions.playEstimatedWaitTime, scriptingName: "ArchActionPlayEstimatedWaitTime" }), t2.A = T; + }, 50304: function(e2, t2, i2) { + !(function(e3) { + "use strict"; + e3.defineLocale("zh-tw", { months: "\u4E00\u6708_\u4E8C\u6708_\u4E09\u6708_\u56DB\u6708_\u4E94\u6708_\u516D\u6708_\u4E03\u6708_\u516B\u6708_\u4E5D\u6708_\u5341\u6708_\u5341\u4E00\u6708_\u5341\u4E8C\u6708".split("_"), monthsShort: "1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"), weekdays: "\u661F\u671F\u65E5_\u661F\u671F\u4E00_\u661F\u671F\u4E8C_\u661F\u671F\u4E09_\u661F\u671F\u56DB_\u661F\u671F\u4E94_\u661F\u671F\u516D".split("_"), weekdaysShort: "\u9031\u65E5_\u9031\u4E00_\u9031\u4E8C_\u9031\u4E09_\u9031\u56DB_\u9031\u4E94_\u9031\u516D".split("_"), weekdaysMin: "\u65E5_\u4E00_\u4E8C_\u4E09_\u56DB_\u4E94_\u516D".split("_"), longDateFormat: { LT: "HH:mm", LTS: "HH:mm:ss", L: "YYYY/MM/DD", LL: "YYYY\u5E74M\u6708D\u65E5", LLL: "YYYY\u5E74M\u6708D\u65E5 HH:mm", LLLL: "YYYY\u5E74M\u6708D\u65E5dddd HH:mm", l: "YYYY/M/D", ll: "YYYY\u5E74M\u6708D\u65E5", lll: "YYYY\u5E74M\u6708D\u65E5 HH:mm", llll: "YYYY\u5E74M\u6708D\u65E5dddd HH:mm" }, meridiemParse: /凌晨|早上|上午|中午|下午|晚上/, meridiemHour: function(e4, t3) { + return 12 === e4 && (e4 = 0), "\u51CC\u6668" === t3 || "\u65E9\u4E0A" === t3 || "\u4E0A\u5348" === t3 ? e4 : "\u4E2D\u5348" === t3 ? e4 >= 11 ? e4 : e4 + 12 : "\u4E0B\u5348" === t3 || "\u665A\u4E0A" === t3 ? e4 + 12 : void 0; + }, meridiem: function(e4, t3, i3) { + var n2 = 100 * e4 + t3; + return n2 < 600 ? "\u51CC\u6668" : n2 < 900 ? "\u65E9\u4E0A" : n2 < 1130 ? "\u4E0A\u5348" : n2 < 1230 ? "\u4E2D\u5348" : n2 < 1800 ? "\u4E0B\u5348" : "\u665A\u4E0A"; + }, calendar: { sameDay: "[\u4ECA\u5929] LT", nextDay: "[\u660E\u5929] LT", nextWeek: "[\u4E0B]dddd LT", lastDay: "[\u6628\u5929] LT", lastWeek: "[\u4E0A]dddd LT", sameElse: "L" }, dayOfMonthOrdinalParse: /\d{1,2}(日|月|週)/, ordinal: function(e4, t3) { + switch (t3) { + case "d": + case "D": + case "DDD": + return e4 + "\u65E5"; + case "M": + return e4 + "\u6708"; + case "w": + case "W": + return e4 + "\u9031"; + default: + return e4; + } + }, relativeTime: { future: "%s\u5F8C", past: "%s\u524D", s: "\u5E7E\u79D2", ss: "%d \u79D2", m: "1 \u5206\u9418", mm: "%d \u5206\u9418", h: "1 \u5C0F\u6642", hh: "%d \u5C0F\u6642", d: "1 \u5929", dd: "%d \u5929", M: "1 \u500B\u6708", MM: "%d \u500B\u6708", y: "1 \u5E74", yy: "%d \u5E74" } }); + })(i2(95093)); + }, 50316: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = i2(26847), o = n2.__importDefault(i2(57382)); + class a extends o.default { + constructor(e3) { + super(e3); + } + get displayTypeName() { + return "ArchBaseActionWithOutputsSuccessTimeout"; + } + get isArchBaseActionWithOutputsSuccessTimeout() { + return true; + } + get outputSuccess() { + return this._getOutputById(r2.outputIds.success, true); + } + get outputTimeout() { + return this._getOutputById(r2.outputIds.timeout, true); + } + } + t2.default = a; + }, 50419: (e2, t2, i2) => { + "use strict"; + var n2; + Object.defineProperty(t2, "__esModule", { value: true }); + const r2 = i2(31635), o = r2.__importDefault(i2(16434)), a = i2(96618); + class s extends o.default { + constructor(e3) { + super(e3), n2.set(this, void 0), r2.__classPrivateFieldSet(this, n2, this.coreFactory.createArchWrapper(e3.workitemFlowSettings), "f"); + } + get _flowType() { + return a.flowTypes.flowTypeWorkitem; + } + get displayTypeName() { + return "ArchFlowWorkitem"; + } + get isArchFlowWorkitem() { + return true; + } + get workitemSettings() { + return r2.__classPrivateFieldGet(this, n2, "f"); + } + } + n2 = /* @__PURE__ */ new WeakMap(), t2.default = s; + }, 50439: (e2, t2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.argsArgArrayOrObject = void 0; + var i2 = Array.isArray, n2 = Object.getPrototypeOf, r2 = Object.prototype, o = Object.keys; + t2.argsArgArrayOrObject = function(e3) { + if (1 === e3.length) { + var t3 = e3[0]; + if (i2(t3)) return { args: t3, keys: null }; + if ((s = t3) && "object" == typeof s && n2(s) === r2) { + var a = o(t3); + return { args: a.map(function(e4) { + return t3[e4]; + }), keys: a }; + } + } + var s; + return { args: e3, keys: null }; + }; + }, 50447: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(81574)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "emailAddress"; + } + get name() { + } + get id() { + } + get displayTypeName() { + return "ArchValueEmailAddress"; + } + get isArchValueEmailAddress() { + return true; + } + } + t2.default = r2; + }, 50461: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.getEmergencyGroups = function(e3) { + const t3 = o.isFeatureAvailable(a.default.divisionedRoutingObjects) ? s.getEmergencyGroupsDivisionView : s.getEmergencyGroups; + return r2.default.build(t3).queryParams(e3.getSearchQueryParams()).call(); + }, t2.getEmergencyGroup = l, t2.getSchedules = function(e3) { + const t3 = o.isFeatureAvailable(a.default.divisionedRoutingObjects) ? s.getSchedulesDivisionView : s.getSchedules; + return r2.default.build(t3).queryParams(e3.getSearchQueryParams()).call(); + }, t2.getSchedule = u, t2.getScheduleGroups = function(e3) { + const t3 = o.isFeatureAvailable(a.default.divisionedRoutingObjects) ? s.getScheduleGroupsDivisionView : s.getScheduleGroups; + return r2.default.build(t3).queryParams(e3.getSearchQueryParams()).call(); + }, t2.getScheduleGroup = d; + const n2 = i2(31635), r2 = n2.__importDefault(i2(36019)), o = n2.__importStar(i2(10798)), a = n2.__importDefault(i2(4648)), s = n2.__importStar(i2(72738)); + function l(e3) { + return l.api = o.isFeatureAvailable(a.default.divisionedRoutingObjects) ? s.getEmergencyGroupDivisionView : s.getEmergencyGroup, r2.default.build(l.api).templateParams({ id: e3 }).call().then((e4) => e4.entities && e4.entities[0] ? e4.entities[0] : e4); + } + function u(e3) { + return u.api = o.isFeatureAvailable(a.default.divisionedRoutingObjects) ? s.getScheduleDivisionView : s.getSchedule, r2.default.build(u.api).templateParams({ id: e3 }).call().then((e4) => e4.entities && e4.entities[0] ? e4.entities[0] : e4); + } + function d(e3) { + return d.api = o.isFeatureAvailable(a.default.divisionedRoutingObjects) ? s.getScheduleGroupDivisionView : s.getScheduleGroup, r2.default.build(d.api).templateParams({ id: e3 }).call().then((e4) => e4.entities && e4.entities[0] ? e4.entities[0] : e4); + } + l.api = s.getEmergencyGroup, u.api = s.getSchedule, d.api = s.getScheduleGroup; + }, 50474: (e2, t2) => { + "use strict"; + function i2(e3) { + return void 0 === e3; + } + Object.defineProperty(t2, "__esModule", { value: true }), t2.isFlowViewModel = function(e3) { + return null == e3 ? void 0 : e3.isFlowViewModel; + }, t2.isCommonModuleFlow = function(e3) { + return null == e3 ? void 0 : e3.isCommonModuleFlow; + }, t2.isBaseExpression = function(e3) { + return null == e3 ? void 0 : e3.isExpression; + }, t2.isNormalExpression = function(e3) { + return null == e3 ? void 0 : e3.isNormalExpression; + }, t2.isCollectionExpression = function(e3) { + return null == e3 ? void 0 : e3.isCollectionExpression; + }, t2.isString = function(e3) { + return "string" == typeof e3; + }, t2.isArray = function(e3) { + return Array.isArray(e3); + }, t2.isUndefined = i2, t2.isObject = function(e3) { + const t3 = typeof e3; + return "function" === t3 || "object" === t3 && !!e3; + }, t2.isActualNumber = function(e3) { + return !isNaN(e3) && "number" == typeof e3; + }, t2.isNullOrUndefined = function(e3) { + return null === e3 || i2(e3); + }, t2.isFunction = function(e3) { + return "function" == typeof e3; + }; + }, 50479: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(54063)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "externalInstagramScopedIdCollection"; + } + get displayTypeName() { + return "ArchValueExternalInstagramScopedIdCollection"; + } + get isArchValueExternalInstagramScopedIdCollection() { + return true; + } + } + t2.default = r2; + }, 50486: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.EngineService = void 0; + const n2 = i2(31635), r2 = i2(96618), o = n2.__importDefault(i2(92140)), a = n2.__importDefault(i2(4648)), s = n2.__importStar(i2(74359)), l = i2(10798), u = i2(21042); + class d extends u.BootstrapListManager { + constructor(e3, t3) { + super(e3, t3), this._flexibleTtsSelectionEnabled = false, s.bootstrapDataLoaded.then(this._processBootstrapDataLoaded.bind(this)); + } + _processBootstrapDataLoaded(e3) { + this._flexibleTtsSelectionEnabled = (0, l.isFeatureAvailable)(a.default.flexibleTtsSelection); + } + _unitTestProcessBootstrapDataLoaded(e3) { + console.error("ExpressionDataService._unitTestProcessBootstrapDataLoaded should only be called in unit tests!"); + } + getAnyDefaultsChanged() { + return o.default.any(this.items, (e3) => e3.defaultsChanged); + } + getDefaultEngineForLanguage(e3) { + return o.default.find(this.items, (t3) => t3.getIsEngineDefaultForLanguage(e3)); + } + getSortedEnginesArray() { + const e3 = o.default.map(this.items, (e4) => e4); + return o.default.sortBy(e3, "name"); + } + getEnginesForLanguage(e3) { + return o.default.filter(this.items, (t3) => t3.getEngineSupportsLanguage(e3)); + } + getSupportedVoiceLanguagesForEngine(e3) { + const t3 = this.getSortedEnginesArray().find((t4) => t4.id === e3); + return Object.values((null == t3 ? void 0 : t3.voices) || {}).length ? o.default.uniq(Object.values(t3.voices).map((e4) => e4.language)) : []; + } + getSelectableEnginesForLanguage(e3) { + return this._flexibleTtsSelectionEnabled ? Object.values(this.items) : this.getEnginesForLanguage(e3); + } + getSelectableEnginesForLanguageAndFlowTypeOrTypes(e3, t3) { + return e3 ? this._filterEnginesFlowTypeOrTypes(this.getSelectableEnginesForLanguage(e3), t3) : []; + } + getEnginesForLanguageAndFlowTypeOrTypes(e3, t3) { + return e3 ? this._filterEnginesFlowTypeOrTypes(this.getEnginesForLanguage(e3), t3) : []; + } + _filterEnginesFlowTypeOrTypes(e3, t3) { + return t3 ? (o.default.isString(t3) && (t3 = [t3]), o.default.filter(e3, (e4) => o.default.every(t3, (t4) => !!e4.flowTypes.includes(t4) && (t4 !== r2.flowTypes.flowTypeSecureCall || e4.isSecure))) || []) : e3; + } + isEngineSupportedForLanguageAndFlowTypeOrTypes(e3, t3, i3) { + return !!(e3 && t3 && i3) && !!o.default.find(this.getEnginesForLanguageAndFlowTypeOrTypes(t3, i3), (t4) => t4.id === e3); + } + getDefaultEngineForLanguageAndFlowTypeOrTypes(e3, t3) { + const i3 = this.getDefaultEngineForLanguage(e3); + if (i3 && this.isEngineSupportedForLanguageAndFlowTypeOrTypes(i3.id, e3, t3)) return i3; + } + resetAllDefaultsChanged() { + o.default.each(this.items, (e3) => { + e3.defaultsChanged = false; + }); + } + } + t2.EngineService = d; + }, 50504: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importDefault(i2(94225)), o = i2(30163), a = n2.__importDefault(i2(40559)); + class s extends a.default { + constructor(e3) { + super(e3, o.userManager); + } + get _globalTypeName() { + return "userQueueCollection"; + } + get displayTypeName() { + return "ArchValueUserCollection"; + } + get _searchByValueSearchProperty() { + return "username"; + } + addLiteralByUserIdAsync(e3, t3) { + return n2.__awaiter(this, void 0, void 0, function* () { + return this._checkItemIsValidLiteralString(this._infoParm("userId", "addLiteralByUserIdAsync"), e3), this._checkItemIsValidFunction(this._infoParm("callbackFunction", "addLiteralByUserIdAsync"), t3, true), this._addLiteralByIdAsync(e3, "user").then(() => r2.default.executeCallback(this, "addLiteralByUserIdAsync", t3, this)); + }); + } + addLiteralByUserNameAsync(e3, t3) { + return n2.__awaiter(this, void 0, void 0, function* () { + return this._checkItemIsValidLiteralString(this._infoParm("userName", "addLiteralByUserNameAsync"), e3), this._checkItemIsValidFunction(this._infoParm("callbackFunction", "addLiteralByUserNameAsync"), t3, true), this._addLiteralByValueAsync(e3, "user").then(() => r2.default.executeCallback(this, "addLiteralByUserNameAsync", t3, this)); + }); + } + get isArchValueUserCollection() { + return true; + } + } + t2.default = s; + }, 50514: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.getAllGetAssignedCustomerIntentsFailureReasons = t2.getGetAssignedCustomerIntentsFailureReasons = void 0; + const n2 = i2(31635).__importDefault(i2(92140)), r2 = { actionInvocationLimitExceeded: "ActionInvocationLimitExceeded", generalError: "GeneralError" }, o = [r2.generalError]; + t2.getGetAssignedCustomerIntentsFailureReasons = n2.default.uniq(o.concat([r2.actionInvocationLimitExceeded])), t2.getAllGetAssignedCustomerIntentsFailureReasons = r2; + }, 50565: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(20692)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "communicationCollection"; + } + get displayTypeName() { + return "ArchVariableCommunicationCollection"; + } + get initialValue() { + return this._initialValue; + } + get isArchVariableCommunicationCollection() { + return true; + } + } + t2.default = r2; + }, 50584: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.FindDivisionActionModel = void 0; + const n2 = i2(49574), r2 = i2(30801); + class o extends n2.BaseFindSystemObjectByNameActionModel { + constructor(e3) { + super(e3), this.__type = o.__type; + } + } + t2.FindDivisionActionModel = o, o.__type = r2.findDivisionActionType, o.registerType(); + }, 50597: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.timeoutWith = void 0; + var n2 = i2(62326), r2 = i2(85345), o = i2(81713); + t2.timeoutWith = function(e3, t3, i3) { + var a, s, l; + if (i3 = null != i3 ? i3 : n2.async, r2.isValidDate(e3) ? a = e3 : "number" == typeof e3 && (s = e3), !t3) throw new TypeError("No observable provided to switch to"); + if (l = function() { + return t3; + }, null == a && null == s) throw new TypeError("No timeout provided."); + return o.timeout({ first: a, each: s, scheduler: i3, with: l }); + }; + }, 50661: (e2, t2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.getCallDecisionTableFailureReasons = void 0; + t2.getCallDecisionTableFailureReasons = ["GeneralError"].concat(["ActionInvocationLimitExceeded", "DecisionTableHasNoRows", "DecisionTableNotFound", "DecisionTablePreparingExecution", "DecisionTableWrongStatus", "GeneralExecutionError", "InvalidInput", "InvalidRequest"]); + }, 50700: (e2, t2, i2) => { + const n2 = i2(28267); + function r2() { + Object.defineProperties(this, { _requests: { writable: true }, _inputSchema: { writable: true, enumerable: true }, _successSchema: { writable: true, enumerable: true } }), this.category = void 0, this.deprecated = void 0, this.description = void 0, this.helpLink = void 0, this.id = void 0, this.name = void 0, this.published = void 0, this.tags = void 0, r2.baseConstructor.apply(this, arguments); + } + i2(45214).extend(r2, "BridgeActionMetadata"), Object.defineProperties(r2.prototype, { displayName: { get: function() { + return this.name; + }, set: function(e3) { + this.name = e3; + } }, id: { get: function() { + return this.name; + }, set: function(e3) { + this.name = e3; + }, enumerable: true }, inputSchema: { get: function() { + return this._inputSchema ? this._inputSchema : this._requests && this._requests.length > 0 ? this._requests[0].inputSchema : void 0; + } }, successSchema: { get: function() { + return this._successSchema ? this._successSchema : this._requests && this._requests.length > 0 ? this._requests[0].successSchema : void 0; + } }, requests: { enumerable: true, get: function() { + return this._requests; + }, set: function(e3) { + this._requests = this.reviveArray(e3, n2); + } }, schemas: { set: function(e3) { + this._inputSchema = e3.input, this._successSchema = e3.success; + } } }), e2.exports = r2; + }, 50712: (e2, t2) => { + "use strict"; + let i2; + Object.defineProperty(t2, "__esModule", { value: true }), t2.setDefaultRequestModel = function(e3) { + i2 = e3; + }, t2.getDefaultRequestModel = function() { + return i2; + }; + }, 50720: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(90077)), r2 = i2(30801), o = i2(26847); + class a extends n2.default { + constructor(e3) { + super(e3), this._currentIndex = this.coreFactory.createArchValueFromExpression(e3.currentIndex); + } + get _actionTypeId() { + return r2.askForNLUNextIntentActionActionType; + } + get currentIndex() { + return this._currentIndex; + } + get displayTypeName() { + return this._scriptingName; + } + get isArchActionLoopAnythingElse() { + return true; + } + get outputLoop() { + return this._getOutputById(o.outputIds.loop, true); + } + } + t2.default = a; + }, 50736: (e2, t2, i2) => { + const n2 = i2(13240), r2 = i2(7401), { submitVoiceSnippetActionType: o } = i2(30801); + function a() { + Object.defineProperties(this, { _snippet: { writable: true }, _destination: { writable: true }, _destinationSnippetId: { writable: true } }), a.baseConstructor.apply(this, arguments); + } + n2.extend(a, o, true), Object.defineProperties(a.prototype, { pasteResolveOldToNewValues: { value: function(e3) { + a._super.pasteResolveOldToNewValues.apply(this, arguments), this.snippet.pasteReIdOrRename(e3), this.destination.pasteReIdOrRename(e3), this.destinationSnippetId.pasteReIdOrRename(e3); + } }, pasteReIdOrRename: { value: function(e3) { + a._super.pasteReIdOrRename.apply(this, arguments), this.snippet.pasteResolveOldToNewValues(e3), this.destination.pasteResolveOldToNewValues(e3), this.destinationSnippetId.pasteResolveOldToNewValues(e3); + } }, snippet: { enumerable: true, get: function() { + return this._snippet; + }, set: function(e3) { + this._snippet = this.reviveItem(e3, r2); + } }, destination: { enumerable: true, get: function() { + return this._destination; + }, set: function(e3) { + this._destination = this.reviveItem(e3, r2); + } }, destinationSnippetId: { enumerable: true, get: function() { + return this._destinationSnippetId; + }, set: function(e3) { + this._destinationSnippetId = this.reviveItem(e3, r2); + } } }), e2.exports = a; + }, 50744: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(20692)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "listPickerItemCollection"; + } + get displayTypeName() { + return "ArchVariableListPickerItemCollection"; + } + get initialValue() { + return this._initialValue; + } + get isArchVariableListPickerItemCollection() { + return true; + } + } + t2.default = r2; + }, 50778: (e2, t2, i2) => { + const n2 = i2(45214), r2 = i2(24032).getTopic("Division"); + function o() { + this.id = void 0, this.name = void 0, this.homeDivision = void 0, o.baseConstructor.apply(this, arguments), "00000000-0000-0000-0000-000000000000" === this.id && r2.warningWithStack(null, `Encountered all 0 ids for division with id: '${this.id}'`); + } + n2.extend(o, "Division"), Object.defineProperties(o.prototype, { isDivision: { enumerable: false, get: () => true } }), e2.exports = o; + }, 50807: (e2, t2, i2) => { + const n2 = i2(92140), r2 = i2(2210), o = i2(28730), a = i2(7401), s = i2(26151), { playEstimatedWaitTimeActionType: l } = i2(30801); + function u() { + Object.defineProperties(this, { _prompts: { writable: true }, _estimatedWaitTime: { writable: true }, _playbackMode: { writable: true }, _roundingInterval: { writable: true }, _specificRoundingIntervals: { writable: true } }), u.baseConstructor.apply(this, arguments); + } + o.extend(u, l, true), Object.defineProperties(u.prototype, { pasteReIdOrRename: { value: function(e3) { + u._super.pasteReIdOrRename.apply(this, arguments), this.estimatedWaitTime.pasteReIdOrRename(e3), this.prompts.pasteReIdOrRename(e3), this.roundingInterval.pasteReIdOrRename(e3), n2.each(this.specificRoundingIntervals, function(t3) { + t3.pasteReIdOrRename(e3); + }); + } }, pasteResolveOldToNewValues: { value: function(e3) { + u._super.pasteResolveOldToNewValues.apply(this, arguments), this.estimatedWaitTime.pasteResolveOldToNewValues(e3), this.prompts.pasteResolveOldToNewValues(e3), this.roundingInterval.pasteResolveOldToNewValues(e3), n2.each(this.specificRoundingIntervals, function(t3) { + t3.pasteResolveOldToNewValues(e3); + }); + } }, estimatedWaitTime: { enumerable: true, get: function() { + return this._estimatedWaitTime; + }, set: function(e3) { + this._estimatedWaitTime = this.reviveItem(e3, a); + } }, prompts: { enumerable: true, get: function() { + return this._prompts; + }, set: function(e3) { + this._prompts = this.reviveItem(e3, r2); + } }, playbackMode: { enumerable: true, get: function() { + return this._playbackMode; + }, set: function(e3) { + this._playbackMode = this.reviveEnum(e3, s); + } }, roundingInterval: { enumerable: true, get: function() { + return this._roundingInterval; + }, set: function(e3) { + this._roundingInterval = this.reviveItem(e3, a); + } }, specificRoundingIntervals: { enumerable: true, get: function() { + return this._specificRoundingIntervals; + }, set: function(e3) { + this._specificRoundingIntervals = this.reviveArray(e3, a); + } } }), e2.exports = u; + }, 50839: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.ObjectUnsubscribedError = void 0; + var n2 = i2(9619); + t2.ObjectUnsubscribedError = n2.createErrorClass(function(e3) { + return function() { + e3(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed"; + }; + }); + }, 50853: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(92661)), r2 = i2(30801); + class o extends n2.default { + constructor(e3) { + super(e3); + } + get _actionTypeId() { + return r2.findUserActionType; + } + get displayTypeName() { + return this._scriptingName; + } + get isArchActionFindUser() { + return true; + } + get findResult() { + return this._findResult; + } + } + t2.default = o; + }, 50875: function(e2, t2, i2) { + "use strict"; + var n2, r2 = this && this.__extends || (n2 = function(e3, t3) { + return n2 = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(e4, t4) { + e4.__proto__ = t4; + } || function(e4, t4) { + for (var i3 in t4) Object.prototype.hasOwnProperty.call(t4, i3) && (e4[i3] = t4[i3]); + }, n2(e3, t3); + }, function(e3, t3) { + if ("function" != typeof t3 && null !== t3) throw new TypeError("Class extends value " + String(t3) + " is not a constructor or null"); + function i3() { + this.constructor = e3; + } + n2(e3, t3), e3.prototype = null === t3 ? Object.create(t3) : (i3.prototype = t3.prototype, new i3()); + }); + Object.defineProperty(t2, "__esModule", { value: true }), t2.VirtualAction = t2.VirtualTimeScheduler = void 0; + var o = i2(64772), a = i2(69879), s = (function(e3) { + function t3(t4, i3) { + void 0 === t4 && (t4 = l), void 0 === i3 && (i3 = 1 / 0); + var n3 = e3.call(this, t4, function() { + return n3.frame; + }) || this; + return n3.maxFrames = i3, n3.frame = 0, n3.index = -1, n3; + } + return r2(t3, e3), t3.prototype.flush = function() { + for (var e4, t4, i3 = this.actions, n3 = this.maxFrames; (t4 = i3[0]) && t4.delay <= n3 && (i3.shift(), this.frame = t4.delay, !(e4 = t4.execute(t4.state, t4.delay))); ) ; + if (e4) { + for (; t4 = i3.shift(); ) t4.unsubscribe(); + throw e4; + } + }, t3.frameTimeFactor = 10, t3; + })(i2(19533).AsyncScheduler); + t2.VirtualTimeScheduler = s; + var l = (function(e3) { + function t3(t4, i3, n3) { + void 0 === n3 && (n3 = t4.index += 1); + var r3 = e3.call(this, t4, i3) || this; + return r3.scheduler = t4, r3.work = i3, r3.index = n3, r3.active = true, r3.index = t4.index = n3, r3; + } + return r2(t3, e3), t3.prototype.schedule = function(i3, n3) { + if (void 0 === n3 && (n3 = 0), Number.isFinite(n3)) { + if (!this.id) return e3.prototype.schedule.call(this, i3, n3); + this.active = false; + var r3 = new t3(this.scheduler, this.work); + return this.add(r3), r3.schedule(i3, n3); + } + return a.Subscription.EMPTY; + }, t3.prototype.requestAsyncId = function(e4, i3, n3) { + void 0 === n3 && (n3 = 0), this.delay = e4.frame + n3; + var r3 = e4.actions; + return r3.push(this), r3.sort(t3.sortActions), 1; + }, t3.prototype.recycleAsyncId = function(e4, t4, i3) { + void 0 === i3 && (i3 = 0); + }, t3.prototype._execute = function(t4, i3) { + if (true === this.active) return e3.prototype._execute.call(this, t4, i3); + }, t3.sortActions = function(e4, t4) { + return e4.delay === t4.delay ? e4.index === t4.index ? 0 : e4.index > t4.index ? 1 : -1 : e4.delay > t4.delay ? 1 : -1; + }, t3; + })(o.AsyncAction); + t2.VirtualAction = l; + }, 50918: () => { + var e2, i2, n2 = "undefined" != typeof window ? window : global; + org = n2.org = n2.org || {}, void 0 !== org.antlr && org.antlr || (org.antlr = {}), org.antlr.global = function() { + return n2; + }.call(null), org.antlr.namespace = function() { + var e3, t2, i3, n3 = arguments, r2 = null; + for (e3 = 0; e3 < n3.length; e3 += 1) for (i3 = n3[e3].split("."), r2 = org.antlr.global, t2 = 0; t2 < i3.length; t2 += 1) r2[i3[t2]] = r2[i3[t2]] || {}, r2 = r2[i3[t2]]; + return r2; + }, org.antlr.env = org.antlr.env || {}, org.antlr.env.ua = (function() { + var e3, t2, i3 = { ie: 0, opera: 0, gecko: 0, webkit: 0, mobile: null, air: 0, rhino: false }; + try { + e3 = navigator.userAgent, /KHTML/.test(e3) && (i3.webkit = 1), (t2 = e3.match(/AppleWebKit\/([^\s]*)/)) && t2[1] && (i3.webkit = parseFloat(t2[1]), / Mobile\//.test(e3) ? i3.mobile = "Apple" : (t2 = e3.match(/NokiaN[^\/]*/)) && (i3.mobile = t2[0]), (t2 = e3.match(/AdobeAIR\/([^\s]*)/)) && (i3.air = t2[0])), i3.webkit || ((t2 = e3.match(/Opera[\s\/]([^\s]*)/)) && t2[1] ? (i3.opera = parseFloat(t2[1]), (t2 = e3.match(/Opera Mini[^;]*/)) && (i3.mobile = t2[0])) : (t2 = e3.match(/MSIE\s([^;]*)/)) && t2[1] ? i3.ie = parseFloat(t2[1]) : (t2 = e3.match(/Gecko\/([^\s]*)/)) && (i3.gecko = 1, (t2 = e3.match(/rv:([^\s\)]*)/)) && t2[1] && (i3.gecko = parseFloat(t2[1])))); + } catch (e4) { + } + try { + "undefined" == typeof window && loadClass && (i3.rhino = true); + } catch (e4) { + } + return i3; + })(), org.antlr.namespace("org.antlr.runtime.tree"), org.antlr.lang = org.antlr.lang || { isArray: function(e3) { + if (e3) { + var t2 = org.antlr.lang; + return t2.isNumber(e3.length) && t2.isFunction(e3.splice); + } + return false; + }, isBoolean: function(e3) { + return "boolean" == typeof e3; + }, isFunction: function(e3) { + return "function" == typeof e3; + }, isNull: function(e3) { + return null === e3; + }, isNumber: function(e3) { + return "number" == typeof e3 && isFinite(e3); + }, isObject: function(e3) { + return e3 && ("object" == typeof e3 || org.antlr.lang.isFunction(e3)) || false; + }, isString: function(e3) { + return "string" == typeof e3; + }, isUndefined: function(e3) { + return void 0 === e3; + }, _IEEnumFix: function(e3, t2) { + if (org.antlr.env.ua.ie) { + var i3, n3 = ["toString", "valueOf"]; + for (i3 = 0; i3 < n3.length; i3 += 1) { + var r2 = n3[i3], o = t2[r2]; + org.antlr.lang.isFunction(o) && o != Object.prototype[r2] && (e3[r2] = o); + } + } + }, extend: function(e3, t2, i3) { + if (!t2 || !e3) throw new Error("org.antlr.lang.extend failed, please check that all dependencies are included."); + var n3 = function() { + }; + if (n3.prototype = t2.prototype, e3.prototype = new n3(), e3.prototype.constructor = e3, e3.superclass = t2.prototype, t2.prototype.constructor == Object.prototype.constructor && (t2.prototype.constructor = t2), i3) { + for (var r2 in i3) e3.prototype[r2] = i3[r2]; + org.antlr.lang._IEEnumFix(e3.prototype, i3); + } + }, augmentObject: function(e3, t2) { + if (!t2 || !e3) throw new Error("Absorb failed, verify dependencies."); + var i3, n3, r2 = arguments, o = r2[2]; + if (o && true !== o) for (i3 = 2; i3 < r2.length; i3 += 1) e3[r2[i3]] = t2[r2[i3]]; + else { + for (n3 in t2) !o && e3[n3] || (e3[n3] = t2[n3]); + org.antlr.lang._IEEnumFix(e3, t2); + } + }, augmentProto: function(e3, t2) { + if (!t2 || !e3) throw new Error("Augment failed, verify dependencies."); + for (var i3 = [e3.prototype, t2.prototype], n3 = 2; n3 < arguments.length; n3 += 1) i3.push(arguments[n3]); + org.antlr.lang.augmentObject.apply(this, i3); + }, merge: function() { + for (var e3 = {}, t2 = arguments, i3 = 0, n3 = t2.length; i3 < n3; i3 += 1) org.antlr.lang.augmentObject(e3, t2[i3], true); + return e3; + }, isValue: function(e3) { + var t2 = org.antlr.lang; + return t2.isObject(e3) || t2.isString(e3) || t2.isNumber(e3) || t2.isBoolean(e3); + }, array: { peek: function(e3) { + if (!org.antlr.lang.isArray(e3)) throw new Error("org.antlr.lang.array.peek: a is not an array."); + var t2 = e3.length; + if (t2 <= 0) throw new Error("org.antlr.lang.array.peek: a is empty."); + return e3[t2 - 1]; + } } }, org.antlr.runtime.RecognizerSharedState = function() { + this.following = [], this._fsp = -1, this.errorRecovery = false, this.lastErrorIndex = -1, this.failed = false, this.syntaxErrors = 0, this.backtracking = 0, this.ruleMemo = null, this.token = null, this.tokenStartCharIndex = -1, this.text = null; + }, org.antlr.runtime.IndexOutOfBoundsException = function(e3) { + org.antlr.runtime.IndexOutOfBoundsException.superclass.constructor.call(this, e3); + }, org.antlr.lang.extend(org.antlr.runtime.IndexOutOfBoundsException, Error, { name: "org.antlr.runtime.IndexOutOfBoundsException" }), org.antlr.runtime.RecognitionException = function(e3) { + org.antlr.runtime.RecognitionException.superclass.constructor.call(this), this.input = e3, this.index = e3.index(), e3 instanceof org.antlr.runtime.CommonTokenStream && (this.token = e3.LT(1), this.line = this.token.getLine(), this.charPositionInLine = this.token.getCharPositionInLine()), e3 instanceof org.antlr.runtime.tree.TreeNodeStream ? this.extractInformationFromTreeNodeStream(e3) : e3 instanceof org.antlr.runtime.ANTLRStringStream ? (this.c = e3.LA(1), this.line = e3.getLine(), this.charPositionInLine = e3.getCharPositionInLine()) : this.c = e3.LA(1), this.message = this.toString(); + }, org.antlr.lang.extend(org.antlr.runtime.RecognitionException, Error, { input: null, index: null, token: null, node: null, c: null, line: null, name: "org.antlr.runtime.RecognitionException", charPositionInLine: null, approximateLineInfo: null, extractInformationFromTreeNodeStream: function(e3) { + var t2, i3, n3, r2, o = e3; + this.node = o.LT(1); + var a = o.getTreeAdaptor(), s = a.getToken(this.node); + if (s) if (this.token = s, s.getLine() <= 0) for (r2 = -1, t2 = o.LT(r2); t2; ) { + if (priorPayload = a.getToken(t2), priorPayload && priorPayload.getLine() > 0) { + this.line = priorPayload.getLine(), this.charPositionInLine = priorPayload.getCharPositionInLine(), this.approximateLineInfo = true; + break; + } + --r2, t2 = o.LT(r2); + } + else this.line = s.getLine(), this.charPositionInLine = s.getCharPositionInLine(); + else this.node instanceof org.antlr.runtime.tree.CommonTree ? (this.line = this.node.getLine(), this.charPositionInLine = this.node.getCharPositionInLine(), this.node instanceof org.antlr.runtime.tree.CommonTree && (this.token = this.node.token)) : (i3 = a.getType(this.node), n3 = a.getText(this.node), this.token = new org.antlr.runtime.CommonToken(i3, n3)); + }, getUnexpectedType: function() { + return this.input instanceof org.antlr.runtime.CommonTokenStream ? this.token.getType() : this.input instanceof org.antlr.runtime.tree.TreeNodeStream ? this.input.getTreeAdaptor().getType(this.node) : this.c; + } }), org.antlr.runtime.MismatchedTokenException = function(e3, t2) { + 0 === arguments.length ? this.expecting = org.antlr.runtime.Token.INVALID_TOKEN_TYPE : (org.antlr.runtime.MismatchedTokenException.superclass.constructor.call(this, t2), this.expecting = e3); + }, org.antlr.lang.extend(org.antlr.runtime.MismatchedTokenException, org.antlr.runtime.RecognitionException, { toString: function() { + return "MismatchedTokenException(" + this.getUnexpectedType() + "!=" + this.expecting + ")"; + }, name: "org.antlr.runtime.MismatchedTokenException" }), org.antlr.runtime.UnwantedTokenException = function(e3, t2) { + arguments.length > 0 && org.antlr.runtime.UnwantedTokenException.superclass.constructor.call(this, e3, t2); + }, org.antlr.lang.extend(org.antlr.runtime.UnwantedTokenException, org.antlr.runtime.MismatchedTokenException, { getUnexpectedToken: function() { + return this.token; + }, toString: function() { + var e3 = ", expected " + this.expecting; + return this.expecting === org.antlr.runtime.Token.INVALID_TOKEN_TYPE && (e3 = ""), org.antlr.lang.isValue(this.token) ? "UnwantedTokenException(found=" + this.token.getText() + e3 + ")" : "UnwantedTokenException(found=" + e3 + ")"; + }, name: "org.antlr.runtime.UnwantedTokenException" }), org.antlr.runtime.MissingTokenException = function(e3, t2, i3) { + arguments.length > 0 && (org.antlr.runtime.MissingTokenException.superclass.constructor.call(this, e3, t2), this.inserted = i3); + }, org.antlr.lang.extend(org.antlr.runtime.MissingTokenException, org.antlr.runtime.MismatchedTokenException, { getMissingType: function() { + return this.expecting; + }, toString: function() { + return org.antlr.lang.isValue(this.inserted) && org.antlr.lang.isValue(this.token) ? "MissingTokenException(inserted " + this.inserted + " at " + this.token.getText() + ")" : org.antlr.lang.isValue(this.token) ? "MissingTokenException(at " + this.token.getText() + ")" : "MissingTokenException"; + }, name: "org.antlr.runtime.MissingTokenException" }), org.antlr.runtime.NoViableAltException = function(e3, t2, i3, n3) { + org.antlr.runtime.NoViableAltException.superclass.constructor.call(this, n3), this.grammarDecisionDescription = e3, this.decisionNumber = t2, this.stateNumber = i3; + }, org.antlr.lang.extend(org.antlr.runtime.NoViableAltException, org.antlr.runtime.RecognitionException, { toString: function() { + return this.input instanceof org.antlr.runtime.ANTLRStringStream ? "NoViableAltException('" + this.getUnexpectedType() + "'@[" + this.grammarDecisionDescription + "])" : "NoViableAltException(" + this.getUnexpectedType() + "@[" + this.grammarDecisionDescription + "])"; + }, name: "org.antlr.runtime.NoViableAltException" }), org.antlr.runtime.EarlyExitException = function(e3, t2) { + org.antlr.runtime.EarlyExitException.superclass.constructor.call(this, t2), this.decisionNumber = e3; + }, org.antlr.lang.extend(org.antlr.runtime.EarlyExitException, org.antlr.runtime.RecognitionException, { name: "org.antlr.runtime.EarlyExitException" }), org.antlr.runtime.MismatchedSetException = function(e3, t2) { + org.antlr.runtime.MismatchedSetException.superclass.constructor.call(this, t2), this.expecting = e3; + }, org.antlr.lang.extend(org.antlr.runtime.MismatchedSetException, org.antlr.runtime.RecognitionException, { toString: function() { + return "MismatchedSetException(" + this.getUnexpectedType() + "!=" + this.expecting + ")"; + }, name: "org.antlr.runtime.MismatchedSetException" }), org.antlr.runtime.MismatchedNotSetException = function(e3, t2) { + org.antlr.runtime.MismatchedNotSetException.superclass.constructor.call(this, e3, t2); + }, org.antlr.lang.extend(org.antlr.runtime.MismatchedNotSetException, org.antlr.runtime.MismatchedSetException, { toString: function() { + return "MismatchedNotSetException(" + this.getUnexpectedType() + "!=" + this.expecting + ")"; + }, name: "org.antlr.runtime.MismatchedNotSetException" }), org.antlr.runtime.MismatchedRangeException = function(e3, t2, i3) { + if (0 === arguments.length) return this; + org.antlr.runtime.MismatchedRangeException.superclass.constructor.call(this, i3), this.a = e3, this.b = t2; + }, org.antlr.lang.extend(org.antlr.runtime.MismatchedRangeException, org.antlr.runtime.RecognitionException, { toString: function() { + return "MismatchedRangeException(" + this.getUnexpectedType() + " not in [" + this.a + "," + this.b + "])"; + }, name: "org.antlr.runtime.MismatchedRangeException" }), org.antlr.runtime.FailedPredicateException = function(e3, t2, i3) { + org.antlr.runtime.FailedPredicateException.superclass.constructor.call(this, e3), this.ruleName = t2, this.predicateText = i3; + }, org.antlr.lang.extend(org.antlr.runtime.FailedPredicateException, org.antlr.runtime.RecognitionException, { toString: function() { + return "FailedPredicateException(" + this.ruleName + ",{" + this.predicateText + "}?)"; + }, name: "org.antlr.runtime.FailedPredicateException" }), org.antlr.runtime.BitSet = function(e3) { + e3 || (e3 = org.antlr.runtime.BitSet.BITS), org.antlr.lang.isArray(e3) ? this.bits = e3 : org.antlr.lang.isNumber(e3) && (this.bits = []); + }, org.antlr.lang.augmentObject(org.antlr.runtime.BitSet, { BITS: 32, LOG_BITS: 5, MOD_MASK: 31, bitMask: function(e3) { + return 1 << (e3 & org.antlr.runtime.BitSet.MOD_MASK); + }, numWordsToHold: function(e3) { + return 1 + (e3 >> org.antlr.runtime.BitSet.LOG_BITS); + }, wordNumber: function(e3) { + return e3 >> org.antlr.runtime.BitSet.LOG_BITS; + }, of: function(e3, t2) { + var i3, n3, r2, o; + if (org.antlr.lang.isNumber(e3)) { + if (org.antlr.lang.isNumber(t2)) { + for (r2 = new org.antlr.runtime.BitSet(t2 + 1), i3 = e3; i3 <= t2; i3++) n3 = org.antlr.runtime.BitSet.wordNumber(i3), r2.bits[n3] |= org.antlr.runtime.BitSet.bitMask(i3); + return r2; + } + return (r2 = new org.antlr.runtime.BitSet(e3 + 1)).add(e3), r2; + } + if (org.antlr.lang.isArray(e3)) { + for (r2 = new org.antlr.runtime.BitSet(), i3 = e3.length - 1; i3 >= 0; i3--) r2.add(e3[i3]); + return r2; + } + if (e3 instanceof org.antlr.runtime.BitSet) return e3 || null; + if (e3 instanceof org.antlr.runtime.IntervalSet) return e3 ? ((r2 = new org.antlr.runtime.BitSet()).addAll(e3), r2) : null; + if (org.antlr.lang.isObject(e3)) { + for (i3 in o = [], e3) org.antlr.lang.isNumber(i3) && o.push(i3); + return org.antlr.runtime.BitSet.of(o); + } + } }), org.antlr.runtime.BitSet.prototype = { add: function(e3) { + var t2 = org.antlr.runtime.BitSet.wordNumber(e3); + t2 >= this.bits.length && this.growToInclude(e3), this.bits[t2] |= org.antlr.runtime.BitSet.bitMask(e3); + }, addAll: function(e3) { + var t2, i3; + if (e3 instanceof org.antlr.runtime.BitSet) this.orInPlace(e3); + else if (e3 instanceof org.antlr.runtime.IntervalSet) ; + else { + if (!org.antlr.lang.isArray(e3)) return; + for (t2 = 0; t2 < e3.length; t2++) i3 = e3[t2], this.add(i3); + } + }, and: function(e3) { + var t2 = this.clone(); + return t2.andInPlace(e3), t2; + }, andInPlace: function(e3) { + var t2, i3 = Math.min(this.bits.length, e3.bits.length); + for (t2 = i3 - 1; t2 >= 0; t2--) this.bits[t2] &= e3.bits[t2]; + for (t2 = i3; t2 < this.bits.length; t2++) this.bits[t2] = 0; + }, clear: function(e3) { + if (0 !== arguments.length) { + var t2 = org.antlr.runtime.BitSet.wordNumber(e3); + t2 >= this.bits.length && this.growToInclude(e3), this.bits[t2] &= ~org.antlr.runtime.BitSet.bitMask(e3); + } else { + var i3; + for (i3 = this.bits.length - 1; i3 >= 0; i3--) this.bits[i3] = 0; + } + }, clone: function() { + var e3, t2, i3 = []; + for (e3 = 0, t2 = this.bits.length; e3 < t2; e3++) i3[e3] = this.bits[e3]; + return new org.antlr.runtime.BitSet(i3); + }, size: function() { + var e3, t2, i3, n3 = 0; + for (e3 = this.bits.length - 1; e3 >= 0; e3--) if (0 !== (t2 = this.bits[e3])) for (i3 = org.antlr.runtime.BitSet.BITS - 1; i3 >= 0; i3--) t2 & 1 << i3 && n3++; + return n3; + }, equals: function(e3) { + if (!(e3 && e3 instanceof org.antlr.runtime.BitSet)) return false; + var t2, i3 = e3, n3 = Math.min(this.bits.length, i3.bits.length); + for (t2 = 0; t2 < n3; t2++) if (this.bits[t2] != i3.bits[t2]) return false; + if (this.bits.length > n3) { + for (t2 = n3 + 1; t2 < this.bits.length; t2++) if (0 !== this.bits[t2]) return false; + } else if (i3.bits.length > n3) { + for (t2 = n3 + 1; t2 < i3.bits.length; t2++) if (0 !== i3.bits[t2]) return false; + } + return true; + }, growToInclude: function(e3) { + Math.max(this.bits.length << 1, org.antlr.runtime.BitSet.numWordsToHold(e3)); + var t2, i3 = []; + for (t2 = 0, len = this.bits.length; t2 < len; t2++) i3[t2] = this.bits[t2]; + this.bits = i3; + }, member: function(e3) { + var t2 = org.antlr.runtime.BitSet.wordNumber(e3); + return !(t2 >= this.bits.length) && 0 !== (this.bits[t2] & org.antlr.runtime.BitSet.bitMask(e3)); + }, getSingleElement: function() { + var e3; + for (e3 = 0; e3 < this.bits.length << org.antlr.runtime.BitSet.LOG_BITS; e3++) if (this.member(e3)) return e3; + return -1; + }, isNil: function() { + var e3; + for (e3 = this.bits.length - 1; e3 >= 0; e3--) if (0 !== this.bits[e3]) return false; + return true; + }, complement: function(e3) { + if (e3) return e3.subtract(this); + var t2 = this.clone(); + return t2.notInPlace(), t2; + }, notInPlace: function() { + var e3, t2, i3, n3; + if (0 === arguments.length) for (i3 = this.bits.length - 1; i3 >= 0; i3--) this.bits[i3] = ~this.bits[i3]; + else for (1 === arguments.length ? (e3 = 0, t2 = arguments[0]) : (e3 = arguments[0], t2 = arguments[1]), this.growToInclude(t2), i3 = e3; i3 <= t2; i3++) n3 = org.antlr.runtime.BitSet.wordNumber(i3), this.bits[n3] ^= org.antlr.runtime.BitSet.bitMask(i3); + }, or: function(e3) { + if (!e3) return this; + var t2 = this.clone(); + return t2.orInPlace(e3), t2; + }, orInPlace: function(e3) { + var t2; + if (e3) for (e3.bits.length > this.bits.length && this.setSize(e3.bits.length), t2 = Math.min(this.bits.length, e3.bits.length) - 1; t2 >= 0; t2--) this.bits[t2] |= e3.bits[t2]; + }, remove: function(e3) { + var t2 = org.antlr.runtime.BitSet.wordNumber(e3); + t2 >= this.bits.length && this.growToInclude(e3), this.bits[t2] &= ~org.antlr.runtime.BitSet.bitMask(e3); + }, setSize: function(e3) { + for (var t2 = e3 - this.bits.length; t2 >= 0; ) this.bits.push(0), t2--; + }, numBits: function() { + return this.bits.length << org.antlr.runtime.BitSet.LOG_BITS; + }, lengthInLongWords: function() { + return this.bits.length; + }, subset: function(e3) { + return !!e3 && this.and(e3).equals(this); + }, subtractInPlace: function(e3) { + var t2; + if (e3) for (t2 = 0; t2 < this.bits.length && t2 < e3.bits.length; t2++) this.bits[t2] &= ~e3.bits[t2]; + }, subtract: function(e3) { + if (!(e3 && e3 instanceof org.antlr.runtime.BitSet)) return null; + var t2 = this.clone(); + return t2.subtractInPlace(e3), t2; + }, toArray: function() { + var e3, t2 = [], i3 = 0; + for (e3 = 0; e3 < this.bits.length << org.antlr.runtime.BitSet.LOG_BITS; e3++) this.member(e3) && (t2[i3++] = e3); + return t2; + }, toPackedArray: function() { + return this.bits; + }, toString: function() { + return 0 === arguments.length ? this.toString1(null) : org.antlr.lang.isString(arguments[0]) ? org.antlr.lang.isValue(arguments[1]) ? this.toString2(arguments[0], arguments[1]) : this.toString1(null) : this.toString1(arguments[0]); + }, toString1: function(e3) { + var t2, i3 = "{", n3 = false; + for (t2 = 0; t2 < this.bits.length << org.antlr.runtime.BitSet.LOG_BITS; t2++) this.member(t2) && (t2 > 0 && n3 && (i3 += ","), i3 += e3 ? e3.getTokenDisplayName(t2) : t2.toString(), n3 = true); + return i3 + "}"; + }, toString2: function(e3, t2) { + var i3, n3 = ""; + for (i3 = 0; i3 < this.bits.length << org.antlr.runtime.BitSet.LOG_BITS; i3++) this.member(i3) && (n3.length > 0 && (n3 += e3), i3 >= t2.size() ? n3 += "'" + i3 + "'" : org.antlr.lang.isValue(t2.get(i3)) ? n3 += t2.get(i3) : n3 += "'" + i3 + "'"); + return n3; + } }, org.antlr.runtime.CharStream = { EOF: -1 }, org.antlr.runtime.CommonToken = function() { + var e3; + this.charPositionInLine = -1, this.channel = 0, this.index = -1, 1 == arguments.length ? org.antlr.lang.isNumber(arguments[0]) ? this.type = arguments[0] : (e3 = arguments[0], this.text = e3.getText(), this.type = e3.getType(), this.line = e3.getLine(), this.index = e3.getTokenIndex(), this.charPositionInLine = e3.getCharPositionInLine(), this.channel = e3.getChannel(), e3 instanceof org.antlr.runtime.CommonToken && (this.start = e3.start, this.stop = e3.stop)) : 2 == arguments.length ? (this.type = arguments[0], this.text = arguments[1], this.channel = 0) : 5 == arguments.length && (this.input = arguments[0], this.type = arguments[1], this.channel = arguments[2], this.start = arguments[3], this.stop = arguments[4]); + }, org.antlr.runtime.CommonToken.prototype = { getType: function() { + return this.type; + }, setLine: function(e3) { + this.line = e3; + }, getText: function() { + return org.antlr.lang.isString(this.text) ? this.text : this.input ? (this.text = this.input.substring(this.start, this.stop), this.text) : null; + }, setText: function(e3) { + this.text = e3; + }, getLine: function() { + return this.line; + }, getCharPositionInLine: function() { + return this.charPositionInLine; + }, setCharPositionInLine: function(e3) { + this.charPositionInLine = e3; + }, getChannel: function() { + return this.channel; + }, setChannel: function(e3) { + this.channel = e3; + }, setType: function(e3) { + this.type = e3; + }, getStartIndex: function() { + return this.start; + }, setStartIndex: function(e3) { + this.start = e3; + }, getStopIndex: function() { + return this.stop; + }, setStopIndex: function(e3) { + this.stop = e3; + }, getTokenIndex: function() { + return this.index; + }, setTokenIndex: function(e3) { + this.index = e3; + }, getInputStream: function() { + return this.input; + }, setInputStream: function(e3) { + this.input = e3; + }, toString: function() { + var e3 = ""; + this.channel > 0 && (e3 = ",channel=" + this.channel); + var t2 = this.getText(); + return t2 = org.antlr.lang.isNull(t2) ? "" : (t2 = (t2 = t2.replace(/\n/g, "\\\\n")).replace(/\r/g, "\\\\r")).replace(/\t/g, "\\\\t"), "[@" + this.getTokenIndex() + "," + this.start + ":" + this.stop + "='" + t2 + "',<" + this.type + ">" + e3 + "," + this.line + ":" + this.getCharPositionInLine() + "]"; + } }, org.antlr.runtime.Token = function() { + }, org.antlr.lang.augmentObject(org.antlr.runtime.Token, { EOR_TOKEN_TYPE: 1, DOWN: 2, UP: 3, MIN_TOKEN_TYPE: 4, EOF: org.antlr.runtime.CharStream.EOF, EOF_TOKEN: new org.antlr.runtime.CommonToken(org.antlr.runtime.CharStream.EOF), INVALID_TOKEN_TYPE: 0, INVALID_TOKEN: new org.antlr.runtime.CommonToken(0), SKIP_TOKEN: new org.antlr.runtime.CommonToken(0), DEFAULT_CHANNEL: 0, HIDDEN_CHANNEL: 99 }), org.antlr.lang.augmentObject(org.antlr.runtime.CommonToken, org.antlr.runtime.Token), org.antlr.runtime.tree.RewriteCardinalityException = function(e3) { + this.elementDescription = e3; + }, org.antlr.lang.extend(org.antlr.runtime.tree.RewriteCardinalityException, Error, { getMessage: function() { + return org.antlr.lang.isString(this.elementDescription) ? this.elementDescription : null; + }, name: function() { + return "org.antlr.runtime.tree.RewriteCardinalityException"; + } }), org.antlr.runtime.tree.RewriteEmptyStreamException = function(e3) { + org.antlr.runtime.tree.RewriteEmptyStreamException.superclass.constructor.call(this, e3); + }, org.antlr.lang.extend(org.antlr.runtime.tree.RewriteEmptyStreamException, org.antlr.runtime.tree.RewriteCardinalityException, { name: function() { + return "org.antlr.runtime.tree.RewriteEmptyStreamException"; + } }), org.antlr.runtime.tree.RewriteEarlyExitException = function(e3) { + var t2 = org.antlr.runtime.tree.RewriteEarlyExitException.superclass; + org.antlr.lang.isUndefined(e3) && (e3 = null), t2.constructor.call(this, e3); + }, org.antlr.lang.extend(org.antlr.runtime.tree.RewriteEarlyExitException, org.antlr.runtime.tree.RewriteCardinalityException, { name: function() { + return "org.antlr.runtime.tree.RewriteEarlyExitException"; + } }), org.antlr.runtime.MismatchedTreeNodeException = function(e3, t2) { + e3 && t2 && (org.antlr.runtime.MismatchedTreeNodeException.superclass.constructor.call(this, t2), this.expecting = e3); + }, org.antlr.lang.extend(org.antlr.runtime.MismatchedTreeNodeException, org.antlr.runtime.RecognitionException, { toString: function() { + return "MismatchedTreeNodeException(" + this.getUnexpectedType() + "!=" + this.expecting + ")"; + }, name: "org.antlr.runtime.MismatchedTreeNodeException" }), org.antlr.runtime.tree.BaseTree = function() { + }, org.antlr.runtime.tree.BaseTree.prototype = { getChild: function(e3) { + return !this.children || e3 >= this.children.length ? null : this.children[e3]; + }, getChildren: function() { + return this.children; + }, getFirstChildWithType: function(e3) { + var t2, i3; + for (t2 = 0; this.children && t2 < this.children.length; t2++) if ((i3 = this.children[t2]).getType() === e3) return i3; + return null; + }, getChildCount: function() { + return this.children ? this.children.length : 0; + }, addChild: function(e3) { + if (org.antlr.lang.isValue(e3)) { + var t2, i3, n3, r2 = e3; + if (r2.isNil()) { + if (this.children && this.children == r2.children) throw new Error("attempt to add child list to itself"); + if (r2.children) if (this.children) for (t2 = r2.children.length, i3 = 0; i3 < t2; i3++) n3 = r2.children[i3], this.children.push(n3), n3.setParent(this), n3.setChildIndex(this.children.length - 1); + else this.children = r2.children, this.freshenParentAndChildIndexes(); + } else this.children || (this.children = this.createChildrenList()), this.children.push(e3), r2.setParent(this), r2.setChildIndex(this.children.length - 1); + } + }, addChildren: function(e3) { + var t2, i3; + for (t2 = 0; t2 < e3.length; t2++) i3 = e3[t2], this.addChild(i3); + }, setChild: function(e3, t2) { + if (t2) { + if (t2.isNil()) throw new Error("Can't set single child to a list"); + this.children || (this.children = this.createChildrenList()), this.children[e3] = t2, t2.setParent(this), t2.setChildIndex(e3); + } + }, deleteChild: function(e3) { + if (!this.children) return null; + if (e3 < 0 || e3 >= this.children.length) throw new Error("Index out of bounds."); + var t2 = this.children.splice(e3, 1)[0]; + return this.freshenParentAndChildIndexes(e3), t2; + }, replaceChildren: function(e3, t2, i3) { + if (!this.children) throw new Error("indexes invalid; no children in list"); + var n3, r2 = t2 - e3 + 1, o = i3, a = null; + o.isNil() ? a = o.children : (a = []).push(o), n3 = a.length; + var s, l, u, d, c, p = a.length, _ = r2 - n3; + if (0 === _) for (s = 0, l = e3; l <= t2; l++) u = a[s], this.children[l] = u, u.setParent(this), u.setChildIndex(l), s++; + else if (_ > 0) { + for (s = 0; s < p; s++) this.children[e3 + s] = a[s]; + for (c = d = e3 + p; c <= t2; c++) this.children.splice(d, 1)[0]; + this.freshenParentAndChildIndexes(e3); + } else { + for (s = 0; s < r2; s++) this.children[e3 + s] = a[s]; + for (s = r2; s < n3; s++) this.children.splice(e3 + s, 0, a[s]); + this.freshenParentAndChildIndexes(e3); + } + }, createChildrenList: function() { + return []; + }, isNil: function() { + return false; + }, freshenParentAndChildIndexes: function(e3) { + org.antlr.lang.isNumber(e3) || (e3 = 0); + var t2, i3, n3 = this.getChildCount(); + for (t2 = e3; t2 < n3; t2++) (i3 = this.getChild(t2)).setChildIndex(t2), i3.setParent(this); + }, sanityCheckParentAndChildIndexes: function(e3, t2) { + if (0 === arguments.length && (e3 = null, t2 = -1), e3 !== this.getParent()) throw new Error("parents don't match; expected " + e3 + " found " + this.getParent()); + if (t2 !== this.getChildIndex()) throw new Error("child indexes don't match; expected " + t2 + " found " + this.getChildIndex()); + var i3, n3 = this.getChildCount(); + for (i3 = 0; i3 < n3; i3++) this.getChild(i3).sanityCheckParentAndChildIndexes(this, i3); + }, getChildIndex: function() { + return 0; + }, setChildIndex: function(e3) { + }, getParent: function() { + return null; + }, setParent: function(e3) { + }, getTree: function() { + return this; + }, toStringTree: function() { + if (!this.children || 0 === this.children.length) return this.toString(); + var e3, t2 = ""; + for (this.isNil() || (t2 += "(", t2 += this.toString(), t2 += " "), e3 = 0; this.children && e3 < this.children.length; e3++) e3 > 0 && (t2 += " "), t2 += this.children[e3].toStringTree(); + return this.isNil() || (t2 += ")"), t2; + }, getLine: function() { + return 0; + }, getCharPositionInLine: function() { + return 0; + } }, org.antlr.runtime.tree.CommonTree = function(e3) { + this.startIndex = -1, this.stopIndex = -1, this.childIndex = -1, this.parent = null, this.token = null, e3 instanceof org.antlr.runtime.tree.CommonTree ? (org.antlr.runtime.tree.CommonTree.superclass.constructor.call(this, e3), this.token = e3.token, this.startIndex = e3.startIndex, this.stopIndex = e3.stopIndex) : e3 instanceof org.antlr.runtime.CommonToken && (this.token = e3); + }, org.antlr.lang.extend(org.antlr.runtime.tree.CommonTree, org.antlr.runtime.tree.BaseTree, { getToken: function() { + return this.token; + }, dupNode: function() { + return new org.antlr.runtime.tree.CommonTree(this); + }, isNil: function() { + return !this.token; + }, getType: function() { + return this.token ? this.token.getType() : org.antlr.runtime.Token.INVALID_TOKEN_TYPE; + }, getText: function() { + return this.token ? this.token.getText() : null; + }, getLine: function() { + return this.token && 0 !== this.token.getLine() ? this.token.getLine() : this.getChildCount() > 0 ? this.getChild(0).getLine() : 0; + }, getCharPositionInLine: function() { + return this.token && -1 !== this.token.getCharPositionInLine() ? this.token.getCharPositionInLine() : this.getChildCount() > 0 ? this.getChild(0).getCharPositionInLine() : 0; + }, getTokenStartIndex: function() { + return this.token ? this.token.getTokenIndex() : this.startIndex; + }, setTokenStartIndex: function(e3) { + this.startIndex = e3; + }, getTokenStopIndex: function() { + return this.token ? this.token.getTokenIndex() : this.stopIndex; + }, setTokenStopIndex: function(e3) { + this.stopIndex = e3; + }, getChildIndex: function() { + return this.childIndex; + }, getParent: function() { + return this.parent; + }, setParent: function(e3) { + this.parent = e3; + }, setChildIndex: function(e3) { + this.childIndex = e3; + }, toString: function() { + return this.isNil() ? "nil" : this.getType() === org.antlr.runtime.Token.INVALID_TOKEN_TYPE ? "" : this.token ? this.token.getText() : null; + } }), org.antlr.runtime.tree.Tree = { INVALID_NODE: new org.antlr.runtime.tree.CommonTree(org.antlr.runtime.Token.INVALID_TOKEN) }, org.antlr.runtime.tree.CommonErrorNode = function(e3, t2, i3, n3) { + (!i3 || i3.getTokenIndex() < t2.getTokenIndex() && i3.getType() != org.antlr.runtime.Token.EOF) && (i3 = t2), this.input = e3, this.start = t2, this.stop = i3, this.trappedException = n3; + }, org.antlr.lang.extend(org.antlr.runtime.tree.CommonErrorNode, org.antlr.runtime.tree.CommonTree, { isNil: function() { + return false; + }, getType: function() { + return org.antlr.runtime.Token.INVALID_TOKEN_TYPE; + }, getText: function() { + var e3 = null; + if (this.start instanceof org.antlr.runtime.CommonToken) { + var t2 = this.start.getTokenIndex(), i3 = this.stop.getTokenIndex(); + this.stop.getType() === org.antlr.runtime.Token.EOF && (i3 = this.input.size()), e3 = this.input.toString(t2, i3); + } else e3 = this.start instanceof org.antlr.runtime.tree.CommonTree ? this.input.toString(this.start, this.stop) : ""; + return e3; + }, toString: function() { + return this.trappedException instanceof org.antlr.runtime.MissingTokenException ? "" : this.trappedException instanceof org.antlr.runtime.UnwantedTokenException ? "" : this.trappedException instanceof org.antlr.runtime.MismatchedTokenException ? "" : this.trappedException instanceof org.antlr.runtime.NoViableAltException ? "" : ""; + } }), org.antlr.runtime.tree.BaseTreeAdaptor = function() { + this.uniqueNodeID = 1; + }, org.antlr.runtime.tree.BaseTreeAdaptor.prototype = { nil: function() { + return this.create(null); + }, errorNode: function(e3, t2, i3, n3) { + return new org.antlr.runtime.tree.CommonErrorNode(e3, t2, i3, n3); + }, isNil: function(e3) { + return e3.isNil(); + }, dupTree: function(e3, t2) { + if (1 === arguments.length && (t2 = null), !e3) return null; + var i3 = this.dupNode(e3); + this.setChildIndex(i3, this.getChildIndex(e3)), this.setParent(i3, t2); + var n3, r2, o, a = this.getChildCount(e3); + for (n3 = 0; n3 < a; n3++) r2 = this.getChild(e3, n3), o = this.dupTree(r2, e3), this.addChild(i3, o); + return i3; + }, addChild: function(e3, t2) { + e3 && org.antlr.lang.isValue(t2) && e3.addChild(t2); + }, becomeRoot: function(e3, t2) { + (e3 instanceof org.antlr.runtime.CommonToken || !e3) && (e3 = this.create(e3)); + var i3 = e3, n3 = t2; + if (!t2) return e3; + if (i3.isNil()) { + if (i3.getChildCount() > 1) throw new Error("more than one node as root (TODO: make exception hierarchy)"); + i3 = i3.getChild(0); + } + return i3.addChild(n3), i3; + }, rulePostProcessing: function(e3) { + var t2 = e3; + return t2 && t2.isNil() && (0 === t2.getChildCount() ? t2 = null : 1 === t2.getChildCount() && ((t2 = t2.getChild(0)).setParent(null), t2.setChildIndex(-1))), t2; + }, create: function(e3, t2) { + var i3; + return 2 === arguments.length ? org.antlr.lang.isString(arguments[1]) ? (i3 = arguments[1], t2 = this.createToken(e3, i3), this.create(t2)) : ((t2 = this.createToken(t2)).setType(e3), this.create(t2)) : 3 === arguments.length ? (i3 = arguments[2], (t2 = this.createToken(t2)).setType(e3), t2.setText(i3), this.create(t2)) : void 0; + }, getType: function(e3) { + return e3.getType(), 0; + }, setType: function(e3, t2) { + throw new Error("don't know enough about Tree node"); + }, getText: function(e3) { + return e3.getText(); + }, setText: function(e3, t2) { + throw new Error("don't know enough about Tree node"); + }, getChild: function(e3, t2) { + return e3.getChild(t2); + }, setChild: function(e3, t2, i3) { + e3.setChild(t2, i3); + }, deleteChild: function(e3, t2) { + return e3.deleteChild(t2); + }, getChildCount: function(e3) { + return e3.getChildCount(); + }, getUniqueID: function(e3) { + this.treeToUniqueIDMap || (this.treeToUniqueIDMap = {}); + var t2 = this.treeToUniqueIDMap[e3]; + if (org.antlr.lang.isValue(t2)) return t2; + var i3 = this.uniqueNodeID; + return this.treeToUniqueIDMap[e3] = i3, this.uniqueNodeID++, i3; + } }, org.antlr.runtime.tree.CommonTreeAdaptor = function() { + }, org.antlr.lang.extend(org.antlr.runtime.tree.CommonTreeAdaptor, org.antlr.runtime.tree.BaseTreeAdaptor, { dupNode: function(e3) { + return org.antlr.lang.isValue(e3) ? e3.dupNode() : null; + }, create: function(e3) { + return arguments.length > 1 ? org.antlr.runtime.tree.CommonTreeAdaptor.superclass.create.apply(this, arguments) : new org.antlr.runtime.tree.CommonTree(e3); + }, createToken: function(e3) { + return 2 === arguments.length ? new org.antlr.runtime.CommonToken(arguments[0], arguments[1]) : new org.antlr.runtime.CommonToken(arguments[0]); + }, setTokenBoundaries: function(e3, t2, i3) { + if (org.antlr.lang.isValue(e3)) { + var n3 = 0, r2 = 0; + org.antlr.lang.isValue(t2) && (n3 = t2.getTokenIndex ? t2.getTokenIndex() : t2.getStartIndex ? t2.getStartIndex() : t2.getTokenStartIndex()), org.antlr.lang.isValue(i3) && (r2 = r2.getTokenIndex ? i3.getTokenIndex() : i3.getStopIndex ? i3.getStopIndex() : i3.getTokenStopIndex()), e3.setTokenStartIndex(n3), e3.setTokenStopIndex(r2); + } + }, getTokenStartIndex: function(e3) { + return e3 ? e3.getTokenStartIndex() : -1; + }, getTokenStopIndex: function(e3) { + return e3 ? e3.getTokenStopIndex() : -1; + }, getText: function(e3) { + return e3 ? e3.getText() : null; + }, getType: function(e3) { + return e3 ? e3.getType() : org.antlr.runtime.Token.INVALID_TOKEN_TYPE; + }, getToken: function(e3) { + return e3 instanceof org.antlr.runtime.tree.CommonTree ? e3.getToken() : null; + }, getChild: function(e3, t2) { + return e3 ? e3.getChild(t2) : null; + }, getChildCount: function(e3) { + return e3 ? e3.getChildCount() : 0; + }, getParent: function(e3) { + return e3.getParent(); + }, setParent: function(e3, t2) { + e3.setParent(t2); + }, getChildIndex: function(e3) { + return e3.getChildIndex(); + }, setChildIndex: function(e3, t2) { + e3.setChildIndex(t2); + }, replaceChildren: function(e3, t2, i3, n3) { + e3 && e3.replaceChildren(t2, i3, n3); + } }), org.antlr.runtime.ANTLRStringStream = function(e3) { + this.p = 0, this.line = 1, this.charPositionInLine = 0, this.markDepth = 0, this.markers = null, this.lastMarker = null, this.data = e3, this.n = e3.length; + }, org.antlr.runtime.ANTLRStringStream.prototype = { reset: function() { + this.p = 0, this.line = 1, this.charPositionInLine = 0, this.markDepth = 0; + }, consume: function() { + this.p < this.n && (this.charPositionInLine++, "\n" === this.data.charAt(this.p) && (this.line++, this.charPositionInLine = 0), this.p++); + }, LA: function(e3) { + e3 < 0 && e3++; + var t2 = this.p + e3 - 1; + return t2 >= this.n || t2 < 0 ? org.antlr.runtime.CharStream.EOF : this.data.charAt(t2); + }, index: function() { + return this.p; + }, size: function() { + return this.n; + }, mark: function() { + this.markers || (this.markers = [], this.markers.push(null)), this.markDepth++; + var e3 = null; + return this.markDepth >= this.markers.length ? (e3 = {}, this.markers.push(e3)) : e3 = this.markers[this.markDepth], e3.p = this.p, e3.line = this.line, e3.charPositionInLine = this.charPositionInLine, this.lastMarker = this.markDepth, this.markDepth; + }, rewind: function(e3) { + org.antlr.lang.isNumber(e3) || (e3 = this.lastMarker); + var t2 = this.markers[e3]; + this.seek(t2.p), this.line = t2.line, this.charPositionInLine = t2.charPositionInLine, this.release(e3); + }, release: function(e3) { + this.markDepth = e3, this.markDepth--; + }, seek: function(e3) { + if (e3 <= this.p) this.p = e3; + else for (; this.p < e3; ) this.consume(); + }, substring: function(e3, t2) { + return this.data.substr(e3, t2 - e3 + 1); + }, getLine: function() { + return this.line; + }, getCharPositionInLine: function() { + return this.charPositionInLine; + }, setLine: function(e3) { + this.line = e3; + }, setCharPositionInLine: function(e3) { + this.charPositionInLine = e3; + }, getSourceName: function() { + return null; + } }, org.antlr.runtime.ANTLRStringStream.LT = org.antlr.runtime.ANTLRStringStream.LA, org.antlr.runtime.CommonTokenStream = function(e3, t2) { + this.p = -1, this.channel = org.antlr.runtime.Token.DEFAULT_CHANNEL, this.v_discardOffChannelTokens = false, this.tokens = [], arguments.length >= 2 ? this.channel = t2 : 1 === arguments.length && (this.tokenSource = e3); + }, org.antlr.runtime.CommonTokenStream.prototype = { setTokenSource: function(e3) { + this.tokenSource = e3, this.tokens = [], this.p = -1, this.channel = org.antlr.runtime.Token.DEFAULT_CHANNEL; + }, fillBuffer: function() { + for (var e3, t2, i3 = 0, n3 = this.tokenSource.nextToken(); org.antlr.lang.isValue(n3) && n3.getType() != org.antlr.runtime.CharStream.EOF; ) e3 = false, this.channelOverrideMap && (t2 = this.channelOverrideMap[n3.getType()], org.antlr.lang.isValue(t2) && n3.setChannel(t2)), (this.discardSet && this.discardSet[n3.getType()] || this.v_discardOffChannelTokens && n3.getChannel() != this.channel) && (e3 = true), e3 || (n3.setTokenIndex(i3), this.tokens.push(n3), i3++), n3 = this.tokenSource.nextToken(); + this.p = 0, this.p = this.skipOffTokenChannels(this.p); + }, consume: function() { + this.p < this.tokens.length && (this.p++, this.p = this.skipOffTokenChannels(this.p)); + }, skipOffTokenChannels: function(e3) { + for (var t2 = this.tokens.length; e3 < t2 && this.tokens[e3].getChannel() != this.channel; ) e3++; + return e3; + }, skipOffTokenChannelsReverse: function(e3) { + for (; e3 >= 0 && this.tokens[e3].getChannel() != this.channel; ) e3--; + return e3; + }, setTokenTypeChannel: function(e3, t2) { + this.channelOverrideMap || (this.channelOverrideMap = {}), this.channelOverrideMap[e3] = t2; + }, discardTokenType: function(e3) { + this.discardSet || (this.discardSet = {}), this.discardSet[e3] = true; + }, discardOffChannelTokens: function(e3) { + this.v_discardOffChannelTokens = e3; + }, getTokens: function(e3, t2, i3) { + if (-1 === this.p && this.fillBuffer(), 0 === arguments.length) return this.tokens; + if (org.antlr.lang.isArray(i3) ? i3 = new org.antlr.runtime.BitSet(i3) : org.antlr.lang.isNumber(i3) && (i3 = org.antlr.runtime.BitSet.of(i3)), t2 >= this.tokens.length && (t2 = this.tokens.length - 1), e3 < 0 && (e3 = 0), e3 > t2) return null; + var n3, r2, o = []; + for (n3 = e3; n3 <= t2; n3++) r2 = this.tokens[n3], this.types && !i3.member(r2.getType()) || o.push(r2); + return 0 === o.length && (o = null), o; + }, LT: function(e3) { + if (-1 === this.p && this.fillBuffer(), 0 === e3) return null; + if (e3 < 0) return this.LB(-1 * e3); + if (this.p + e3 - 1 >= this.tokens.length) return org.antlr.runtime.Token.EOF_TOKEN; + for (var t2 = this.p, i3 = 1; i3 < e3; ) t2 = this.skipOffTokenChannels(t2 + 1), i3++; + return t2 >= this.tokens.length ? org.antlr.runtime.Token.EOF_TOKEN : this.tokens[t2]; + }, LB: function(e3) { + if (-1 === this.p && this.fillBuffer(), 0 === e3) return null; + if (this.p - e3 < 0) return null; + for (var t2 = this.p, i3 = 1; i3 <= e3; ) t2 = this.skipOffTokenChannelsReverse(t2 - 1), i3++; + return t2 < 0 ? null : this.tokens[t2]; + }, get: function(e3) { + return this.tokens[e3]; + }, LA: function(e3) { + return this.LT(e3).getType(); + }, mark: function() { + return -1 === this.p && this.fillBuffer(), this.lastMarker = this.index(), this.lastMarker; + }, release: function(e3) { + }, size: function() { + return this.tokens.length; + }, index: function() { + return this.p; + }, rewind: function(e3) { + org.antlr.lang.isNumber(e3) || (e3 = this.lastMarker), this.seek(e3); + }, reset: function() { + this.p = -1, this.lastMarker = 0; + }, seek: function(e3) { + this.p = e3; + }, getTokenSource: function() { + return this.tokenSource; + }, getSourceName: function() { + return this.getTokenSource().getSourceName(); + }, toString: function(e3, i3) { + if (0 === arguments.length && (-1 === this.p && this.fillBuffer(), e3 = 0, i3 = this.tokens.length - 1), !org.antlr.lang.isNumber(e3) && !org.antlr.lang.isNumber(i3)) { + if (!org.antlr.lang.isValue(e3) || !org.antlr.lang.isValue(i3)) return null; + e3 = e3.getTokenIndex(), i3 = i3.getTokenIndex(); + } + var n3, r2 = ""; + if (e3 < 0 || i3 < 0) return null; + for (-1 == this.p && this.fillBuffer(), i3 >= this.tokens.length && (i3 = this.tokens.length - 1), n3 = e3; n3 <= i3; n3++) t = this.tokens[n3], r2 += this.tokens[n3].getText(); + return r2; + } }, org.antlr.runtime.TokenRewriteStream = function() { + var e3 = org.antlr.runtime.TokenRewriteStream.superclass; + this.programs = null, this.lastRewriteTokenIndexes = null, 0 === arguments.length || e3.constructor.apply(this, arguments), this.initialize(); + }, e2 = org.antlr.runtime.TokenRewriteStream, org.antlr.lang.augmentObject(e2, { DEFAULT_PROGRAM_NAME: "default", PROGRAM_INIT_SIZE: 100, MIN_TOKEN_INDEX: 0 }), e2.RewriteOperation = function(e3, t2) { + this.index = e3, this.text = t2; + }, e2.RewriteOperation.prototype = { execute: function(e3) { + return this.index; + }, toString: function() { + return this.text; + } }, e2.InsertBeforeOp = function(t2, i3) { + e2.InsertBeforeOp.superclass.constructor.call(this, t2, i3); + }, org.antlr.lang.extend(e2.InsertBeforeOp, e2.RewriteOperation, { execute: function(e3) { + return e3.push(this.text), this.index; + } }), e2.ReplaceOp = function(t2, i3, n3) { + e2.ReplaceOp.superclass.constructor.call(this, t2, n3), this.lastIndex = i3; + }, org.antlr.lang.extend(e2.ReplaceOp, e2.RewriteOperation, { execute: function(e3) { + return org.antlr.lang.isValue(this.text) && e3.push(this.text), this.lastIndex + 1; + } }), e2.DeleteOp = function(t2, i3) { + e2.DeleteOp.superclass.constructor.call(this, t2, i3); + }, org.antlr.lang.extend(e2.DeleteOp, e2.ReplaceOp), org.antlr.lang.extend(e2, org.antlr.runtime.CommonTokenStream, { init: function() { + this.programs = {}, this.programs[e2.DEFAULT_PROGRAM_NAME] = [], this.lastRewriteTokenIndexes = {}; + }, rollback: function() { + var t2; + 1 === arguments.length ? t2 = e2.DEFAULT_PROGRAM_NAME : 2 === arguments.length && (t2 = arguments[0]); + var i3 = this.programs[t2]; + i3 && (programs[t2] = i3.slice(e2.MIN_TOKEN_INDEX, this.instructionIndex)); + }, deleteProgram: function(t2) { + t2 = t2 || e2.DEFAULT_PROGRAM_NAME, this.rollback(t2, e2.MIN_TOKEN_INDEX); + }, addToSortedRewriteList: function() { + var t2, i3; + 1 === arguments.length ? (t2 = e2.DEFAULT_PROGRAM_NAME, i3 = arguments[0]) : 2 === arguments.length && (t2 = arguments[0], i3 = arguments[1]); + var n3, r2, o, a, s, l, u = this.getProgram(t2); + for (r2 = 0, n3 = u.length; r2 < n3; r2++) { + if ((o = u[r2]).index === i3.index) { + if (i3 instanceof e2.ReplaceOp) { + for (a = false, l = r2; l < u.length && (s = u[r2]).index === i3.index; l++) if (s instanceof e2.ReplaceOp) { + u[r2] = i3, a = true; + break; + } + a || u.splice(l, 0, i3); + } else u.splice(r2, 0, i3); + break; + } + if (o.index > i3.index) { + u.splice(r2, 0, i3); + break; + } + } + r2 === n3 && u.push(i3); + }, insertAfter: function() { + var t2, i3, n3; + 2 === arguments.length ? (i3 = e2.DEFAULT_PROGRAM_NAME, t2 = arguments[0], n3 = arguments[1]) : 3 === arguments.length && (i3 = arguments[0], t2 = arguments[1], n3 = arguments[2]), t2 instanceof org.antlr.runtime.CommonToken && (t2 = t2.index), this.insertBefore(i3, t2 + 1, n3); + }, insertBefore: function() { + var t2, i3, n3; + 2 === arguments.length ? (i3 = e2.DEFAULT_PROGRAM_NAME, t2 = arguments[0], n3 = arguments[1]) : 3 === arguments.length && (i3 = arguments[0], t2 = arguments[1], n3 = arguments[2]), t2 instanceof org.antlr.runtime.CommonToken && (t2 = t2.index), this.addToSortedRewriteList(i3, new e2.InsertBeforeOp(t2, n3)); + }, replace: function() { + var t2, i3, n3, r2; + 2 === arguments.length ? (t2 = e2.DEFAULT_PROGRAM_NAME, i3 = arguments[0], n3 = arguments[0], r2 = arguments[1]) : 3 === arguments.length && (t2 = e2.DEFAULT_PROGRAM_NAME, i3 = arguments[0], n3 = arguments[1], r2 = arguments[2]), 4 === arguments.length && (t2 = arguments[0], i3 = arguments[1], n3 = arguments[2], r2 = arguments[3]), i3 instanceof org.antlr.runtime.CommonToken && (i3 = i3.index), n3 instanceof org.antlr.runtime.CommonToken && (n3 = n3.index), i3 > n3 || n3 < 0 || i3 < 0 || this.addToSortedRewriteList(t2, new e2.ReplaceOp(i3, n3, r2)); + }, remove: function() { + for (var e3 = [], t2 = arguments.length - 1; t2 >= 0; ) e3[t2] = arguments[t2], t2--; + e3.push(""), this.replace.apply(this, e3); + }, getLastRewriteTokenIndex: function(t2) { + return t2 = t2 || e2.DEFAULT_PROGRAM_NAME, this.lastRewriteTokenIndexes[t2] || -1; + }, setLastRewriteTokenIndex: function(e3, t2) { + this.lastRewriteTokenIndexes[e3] = t2; + }, getProgram: function(e3) { + var t2 = this.programs[e3]; + return t2 || (t2 = this.initializeProgram(e3)), t2; + }, initializeProgram: function(e3) { + var t2 = []; + return this.programs[e3] = t2, t2; + }, toOriginalString: function(t2, i3) { + org.antlr.lang.isNumber(t2) || (t2 = e2.MIN_TOKEN_INDEX), org.antlr.lang.isNumber(i3) || (i3 = this.size() - 1); + var n3, r2 = []; + for (n3 = t2; n3 >= e2.MIN_TOKEN_INDEX && n3 <= i3 && n3 < this.tokens.length; n3++) r2.push(this.get(n3).getText()); + return r2.join(""); + }, toString: function() { + var t2, i3, n3; + 0 === arguments.length ? (t2 = e2.DEFAULT_PROGRAM_NAME, i3 = e2.MIN_TOKEN_INDEX, n3 = this.size() - 1) : 1 === arguments.length ? (t2 = arguments[0], i3 = e2.MIN_TOKEN_INDEX, n3 = this.size() - 1) : 2 === arguments.length && (t2 = e2.DEFAULT_PROGRAM_NAME, i3 = arguments[0], n3 = arguments[1]); + var r2 = this.programs[t2]; + if (!r2 || 0 === r2.length) return this.toOriginalString(i3, n3); + for (var o, a, s = 0, l = i3, u = []; l >= e2.MIN_TOKEN_INDEX && l <= n3 && l < this.tokens.length; ) { + if (s < r2.length) { + for (o = r2[s]; o.index < l && s < r2.length; ) ++s < r2.length && (o = r2[s]); + for (; l === o.index && s < r2.length; ) l = o.execute(u), ++s < r2.length && (o = r2[s]); + } + l <= n3 && (u.push(this.get(l).getText()), l++); + } + for (a = s; a < r2.length; a++) (o = r2[a]).index >= this.size() && o.execute(u); + return u.join(""); + }, toDebugString: function(t2, i3) { + org.antlr.lang.isNumber(t2) || (t2 = e2.MIN_TOKEN_INDEX), org.antlr.lang.isNumber(i3) || (i3 = this.size() - 1); + var n3, r2 = []; + for (n3 = t2; n3 >= e2.MIN_TOKEN_INDEX && n3 <= i3 && n3 < this.tokens.length; n3++) r2.push(this.get(n3)); + return r2.join(""); + } }), org.antlr.runtime.tree.TreeNodeStream = function() { + }, org.antlr.runtime.tree.CommonTreeNodeStream = function(e3, t2, i3) { + 1 === arguments.length && (t2 = e3, e3 = new org.antlr.runtime.tree.CommonTreeAdaptor()), arguments.length <= 2 && (i3 = org.antlr.runtime.tree.CommonTreeNodeStream.DEFAULT_INITIAL_BUFFER_SIZE), this.uniqueNavigationNodes = false, this.p = -1; + var n3 = org.antlr.runtime.Token; + this.root = t2, this.adaptor = e3, this.nodes = [], this.down = this.adaptor.create(n3.DOWN, "DOWN"), this.up = this.adaptor.create(n3.UP, "UP"), this.eof = this.adaptor.create(n3.EOF, "EOF"); + }, org.antlr.lang.augmentObject(org.antlr.runtime.tree.CommonTreeNodeStream, { DEFAULT_INITIAL_BUFFER_SIZE: 100, INITIAL_CALL_STACK_SIZE: 10 }), org.antlr.lang.extend(org.antlr.runtime.tree.CommonTreeNodeStream, org.antlr.runtime.tree.TreeNodeStream, { StreamIterator: function() { + var e3 = 0, t2 = this.nodes, i3 = this.eof; + return { hasNext: function() { + return e3 < t2.length; + }, next: function() { + var n3 = e3; + return e3++, n3 < t2.length ? t2[n3] : i3; + }, remove: function() { + throw new Error("cannot remove nodes from stream"); + } }; + }, fillBuffer: function(e3) { + var t2 = false; + org.antlr.lang.isUndefined(e3) && (e3 = this.root, t2 = true); + var i3 = this.adaptor.isNil(e3); + i3 || this.nodes.push(e3); + var n3, r2, o = this.adaptor.getChildCount(e3); + for (!i3 && o > 0 && this.addNavigationNode(org.antlr.runtime.Token.DOWN), n3 = 0; n3 < o; n3++) r2 = this.adaptor.getChild(e3, n3), this.fillBuffer(r2); + !i3 && o > 0 && this.addNavigationNode(org.antlr.runtime.Token.UP), t2 && (this.p = 0); + }, getNodeIndex: function(e3) { + var t2; + for (-1 == this.p && this.fillBuffer(), t2 = 0; t2 < this.nodes.length; t2++) if (this.nodes[t2] === e3) return t2; + return -1; + }, addNavigationNode: function(e3) { + var t2; + t2 = e3 === org.antlr.runtime.Token.DOWN ? this.hasUniqueNavigationNodes() ? this.adaptor.create(org.antlr.runtime.Token.DOWN, "DOWN") : this.down : this.hasUniqueNavigationNodes() ? this.adaptor.create(org.antlr.runtime.Token.UP, "UP") : this.up, this.nodes.push(t2); + }, get: function(e3) { + return -1 === this.p && this.fillBuffer(), this.nodes[e3]; + }, LT: function(e3) { + return -1 === this.p && this.fillBuffer(), 0 === e3 ? null : e3 < 0 ? this.LB(-1 * e3) : this.p + e3 - 1 >= this.nodes.length ? this.eof : this.nodes[this.p + e3 - 1]; + }, getCurrentSymbol: function() { + return this.LT(1); + }, LB: function(e3) { + return 0 === e3 || this.p - e3 < 0 ? null : this.nodes[this.p - e3]; + }, getTreeSource: function() { + return this.root; + }, getSourceName: function() { + return this.getTokenStream().getSourceName(); + }, getTokenStream: function() { + return this.tokens; + }, setTokenStream: function(e3) { + this.tokens = e3; + }, getTreeAdaptor: function() { + return this.adaptor; + }, setTreeAdaptor: function(e3) { + this.adaptor = e3; + }, hasUniqueNavigationNodes: function() { + return this.uniqueNavigationNodes; + }, setUniqueNavigationNodes: function(e3) { + this.uniqueNavigationNodes = e3; + }, consume: function() { + -1 === this.p && this.fillBuffer(), this.p++; + }, LA: function(e3) { + return this.adaptor.getType(this.LT(e3)); + }, mark: function() { + return -1 === this.p && this.fillBuffer(), this.lastMarker = this.index(), this.lastMarker; + }, release: function(e3) { + }, index: function() { + return this.p; + }, rewind: function(e3) { + org.antlr.lang.isNumber(e3) || (e3 = this.lastMarker), this.seek(e3); + }, seek: function(e3) { + -1 === this.p && this.fillBuffer(), this.p = e3; + }, push: function(e3) { + this.calls || (this.calls = []), this.calls.push(this.p), this.seek(e3); + }, pop: function() { + var e3 = this.calls.pop(); + return this.seek(e3), e3; + }, reset: function() { + this.p = -1, this.lastMarker = 0, this.calls && (this.calls = []); + }, size: function() { + return -1 === this.p && this.fillBuffer(), this.nodes.length; + }, iterator: function() { + return -1 === this.p && this.fillBuffer(), this.StreamIterator(); + }, replaceChildren: function(e3, t2, i3, n3) { + e3 && this.adaptor.replaceChildren(e3, t2, i3, n3); + }, toTokenString: function(e3, t2) { + -1 === this.p && this.fillBuffer(); + var i3, n3, r2 = ""; + for (i3 = e3; i3 < this.nodes.length && i3 <= t2; i3++) n3 = this.nodes[i3], r2 += " " + this.adaptor.getToken(n3); + return r2; + }, toString: function(e3, t2) { + var i3, n3, r2, o, a, s = ""; + if (0 === arguments.length) { + for (-1 === this.p && this.fillBuffer(), r2 = 0; r2 < this.nodes.length; r2++) n3 = this.nodes[r2], s += " ", s += this.adaptor.getType(n3); + return s; + } + if (!org.antlr.lang.isNumber(e3) || !org.antlr.lang.isNumber(t2)) return null; + if (-1 === this.p && this.fillBuffer(), org.antlr.runtime.tree.CommonTree, org.antlr.runtime.tree.CommonTree, this.tokens) return o = this.adaptor.getTokenStartIndex(e3), a = this.adaptor.getTokenStopIndex(t2), this.adaptor.getType(t2) === org.antlr.runtime.Token.UP ? a = this.adaptor.getTokenStopIndex(e3) : this.adaptor.getType(t2) == org.antlr.runtime.Token.EOF && (a = this.size() - 2), this.tokens.toString(o, a); + for (n3 = null, r2 = 0; r2 < this.nodes.length && (n3 = this.nodes[r2]) !== e3; r2++) ; + for (s = i3 = "", n3 = this.nodes[r2]; n3 !== t2; ) i3 = this.adaptor.getText(n3), org.antlr.lang.isString(i3) || (i3 = " " + this.adaptor.getType(n3).toString()), s += i3, r2++, n3 = nodes[r2]; + return i3 = this.adaptor.getText(t2), org.antlr.lang.isString(i3) || (i3 = " " + this.adaptor.getType(t2).toString()), s + i3; + } }), org.antlr.runtime.tree.RewriteRuleElementStream = function(e3, t2, i3) { + this.cursor = 0, this.dirty = false, this.elementDescription = t2, this.adaptor = e3, i3 && (org.antlr.lang.isArray(i3) ? (this.singleElement = null, this.elements = i3) : this.add(i3)); + }, org.antlr.runtime.tree.RewriteRuleElementStream.prototype = { reset: function() { + this.cursor = 0, this.dirty = true; + }, add: function(e3) { + org.antlr.lang.isValue(e3) && (this.elements ? this.elements.push(e3) : org.antlr.lang.isValue(this.singleElement) ? (this.elements = [], this.elements.push(this.singleElement), this.singleElement = null, this.elements.push(e3)) : this.singleElement = e3); + }, nextTree: function() { + var e3, t2 = this.size(); + return this.dirty || this.cursor >= t2 && 1 == t2 ? (e3 = this._next(), this.dup(e3)) : e3 = this._next(); + }, _next: function() { + var e3 = this.size(); + if (0 === e3) throw new org.antlr.runtime.tree.RewriteEmptyStreamException(this.elementDescription); + if (this.cursor >= e3) { + if (1 === e3) return this.toTree(this.singleElement); + throw new org.antlr.runtime.tree.RewriteCardinalityException(this.elementDescription); + } + if (org.antlr.lang.isValue(this.singleElement)) return this.cursor++, this.toTree(this.singleElement); + var t2 = this.toTree(this.elements[this.cursor]); + return this.cursor++, t2; + }, toTree: function(e3) { + return e3 && e3.getTree ? e3.getTree() : e3; + }, hasNext: function() { + return org.antlr.lang.isValue(this.singleElement) && this.cursor < 1 || this.elements && this.cursor < this.elements.length; + }, size: function() { + var e3 = 0; + return org.antlr.lang.isValue(this.singleElement) && (e3 = 1), this.elements ? this.elements.length : e3; + }, getDescription: function() { + return this.elementDescription; + } }, org.antlr.runtime.tree.RewriteRuleNodeStream = function(e3, t2, i3) { + org.antlr.runtime.tree.RewriteRuleNodeStream.superclass.constructor.apply(this, arguments); + }, org.antlr.lang.extend(org.antlr.runtime.tree.RewriteRuleNodeStream, org.antlr.runtime.tree.RewriteRuleElementStream, { nextNode: function() { + return this._next(); + }, toTree: function(e3) { + return this.adaptor.dupNode(e3); + }, dup: function() { + throw new Error("dup can't be called for a node stream."); + } }), org.antlr.runtime.tree.RewriteRuleTokenStream = function(e3, t2, i3) { + org.antlr.runtime.tree.RewriteRuleTokenStream.superclass.constructor.apply(this, arguments); + }, org.antlr.lang.extend(org.antlr.runtime.tree.RewriteRuleTokenStream, org.antlr.runtime.tree.RewriteRuleElementStream, { nextNode: function() { + var e3 = this._next(); + return this.adaptor.create(e3); + }, nextToken: function() { + return this._next(); + }, toTree: function(e3) { + return e3; + }, dup: function(e3) { + throw new Error("dup can't be called for a token stream."); + } }), org.antlr.runtime.tree.RewriteRuleSubtreeStream = function() { + org.antlr.runtime.tree.RewriteRuleSubtreeStream.superclass.constructor.apply(this, arguments); + }, org.antlr.lang.extend(org.antlr.runtime.tree.RewriteRuleSubtreeStream, org.antlr.runtime.tree.RewriteRuleElementStream, { nextNode: function() { + var e3, t2 = this.size(); + return this.dirty || this.cursor >= t2 && 1 === t2 ? (e3 = this._next(), this.adaptor.dupNode(e3)) : e3 = this._next(); + }, dup: function(e3) { + return this.adaptor.dupTree(e3); + } }), org.antlr.runtime.BaseRecognizer = function(e3) { + this.state = e3 || new org.antlr.runtime.RecognizerSharedState(); + }, org.antlr.lang.augmentObject(org.antlr.runtime.BaseRecognizer, { MEMO_RULE_FAILED: -2, MEMO_RULE_UNKNOWN: -1, INITIAL_FOLLOW_STACK_SIZE: 100, MEMO_RULE_FAILED_I: -2, DEFAULT_TOKEN_CHANNEL: org.antlr.runtime.Token.DEFAULT_CHANNEL, HIDDEN: org.antlr.runtime.Token.HIDDEN_CHANNEL, NEXT_TOKEN_RULE_NAME: "nextToken" }), org.antlr.runtime.BaseRecognizer.prototype = { reset: function() { + var e3, t2; + if (this.state && (this.state._fsp = -1, this.state.errorRecovery = false, this.state.lastErrorIndex = -1, this.state.failed = false, this.state.syntaxErrors = 0, this.state.backtracking = 0, this.state.ruleMemo)) for (e3 = 0, t2 = this.state.ruleMemo.length; e3 < t2; e3++) this.state.ruleMemo[e3] = null; + }, match: function(e3, t2, i3) { + var n3 = this.getCurrentInputSymbol(e3); + return e3.LA(1) === t2 ? (e3.consume(), this.state.errorRecovery = false, this.state.failed = false, n3) : this.state.backtracking > 0 ? (this.state.failed = true, n3) : n3 = this.recoverFromMismatchedToken(e3, t2, i3); + }, matchAny: function(e3) { + this.state.errorRecovery = false, this.state.failed = false, e3.consume(); + }, mismatchIsUnwantedToken: function(e3, t2) { + return e3.LA(2) === t2; + }, mismatchIsMissingToken: function(e3, t2) { + return !!t2 && (t2.member(org.antlr.runtime.Token.EOR_TOKEN_TYPE) && (this.state._fsp >= 0 && t2.remove(org.antlr.runtime.Token.EOR_TOKEN_TYPE), this.computeContextSensitiveRuleFOLLOW(), t2 = t2.or(this.viableTokensFollowingThisRule)), !(!t2.member(e3.LA(1)) && !t2.member(org.antlr.runtime.Token.EOR_TOKEN_TYPE))); + }, mismatch: function(e3, t2, i3) { + if (this.mismatchIsUnwantedToken(e3, t2)) throw new org.antlr.runtime.UnwantedTokenException(t2, e3); + if (this.mismatchIsMissingToken(e3, i3)) throw new org.antlr.runtime.MissingTokenException(t2, e3, null); + throw new org.antlr.runtime.MismatchedTokenException(t2, e3); + }, reportError: function(e3) { + this.state.errorRecovery || (this.state.syntaxErrors++, this.state.errorRecovery = true, this.displayRecognitionError(this.getTokenNames(), e3)); + }, displayRecognitionError: function(e3, t2) { + var i3 = this.getErrorHeader(t2), n3 = this.getErrorMessage(t2, e3); + this.emitErrorMessage(i3 + " " + n3); + }, getErrorHeader: function(e3) { + return org.antlr.lang.isNumber(e3.line) || (e3.line = 0), "line " + e3.line + ":" + e3.charPositionInLine; + }, emitErrorMessage: function(e3) { + "undefined" != typeof window && window.alert ? alert(e3) : print(e3); + }, getErrorMessage: function(e3, t2) { + var i3, n3, r2 = e3 && e3.getMessage ? e3.getMessage() : null; + if (e3 instanceof org.antlr.runtime.UnwantedTokenException) { + var o = e3; + n3 = "", n3 = o.expecting == org.antlr.runtime.Token.EOF ? "EOF" : t2[o.expecting], r2 = "extraneous input " + this.getTokenErrorDisplay(o.getUnexpectedToken()) + " expecting " + n3; + } else e3 instanceof org.antlr.runtime.MissingTokenException ? (n3 = "", r2 = "missing " + (n3 = (i3 = e3).expecting == org.antlr.runtime.Token.EOF ? "EOF" : t2[i3.expecting]) + " at " + this.getTokenErrorDisplay(e3.token)) : e3 instanceof org.antlr.runtime.MismatchedTokenException ? (n3 = "", n3 = (i3 = e3).expecting == org.antlr.runtime.Token.EOF ? "EOF" : t2[i3.expecting], r2 = "mismatched input " + this.getTokenErrorDisplay(e3.token) + " expecting " + n3) : e3 instanceof org.antlr.runtime.NoViableAltException ? r2 = "no viable alternative at input " + this.getTokenErrorDisplay(e3.token) : e3 instanceof org.antlr.runtime.EarlyExitException ? r2 = "required (...)+ loop did not match anything at input " + this.getTokenErrorDisplay(e3.token) : e3 instanceof org.antlr.runtime.MismatchedSetException || e3 instanceof org.antlr.runtime.MismatchedNotSetException ? r2 = "mismatched input " + this.getTokenErrorDisplay(e3.token) + " expecting set " + e3.expecting : e3 instanceof org.antlr.runtime.FailedPredicateException && (r2 = "rule " + e3.ruleName + " failed predicate: {" + e3.predicateText + "}?"); + return r2; + }, getNumberOfSyntaxErrors: function() { + return this.state.syntaxErrors; + }, getTokenErrorDisplay: function(e3) { + var t2 = e3.getText(); + return org.antlr.lang.isValue(t2) || (t2 = e3.getType() == org.antlr.runtime.Token.EOF ? "" : "<" + e3.getType() + ">"), "'" + (t2 = (t2 = (t2 = t2.replace(/\n/g, "\\n")).replace(/\r/g, "\\r")).replace(/\t/g, "\\t")) + "'"; + }, recover: function(e3, t2) { + this.state.lastErrorIndex == e3.index() && e3.consume(), this.state.lastErrorIndex = e3.index(); + var i3 = this.computeErrorRecoverySet(); + this.beginResync(), this.consumeUntil(e3, i3), this.endResync(); + }, beginResync: function() { + }, endResync: function() { + }, computeErrorRecoverySet: function() { + return this.combineFollows(false); + }, computeContextSensitiveRuleFOLLOW: function() { + return this.combineFollows(true); + }, combineFollows: function(e3) { + var t2, i3, n3 = this.state._fsp, r2 = new org.antlr.runtime.BitSet(); + for (t2 = n3; t2 >= 0; t2--) if (i3 = this.state.following[t2], r2.orInPlace(i3), e3) { + if (!i3.member(org.antlr.runtime.Token.EOR_TOKEN_TYPE)) break; + t2 > 0 && r2.remove(org.antlr.runtime.Token.EOR_TOKEN_TYPE); + } + return r2; + }, recoverFromMismatchedToken: function(e3, t2, i3) { + var n3 = null; + if (this.mismatchIsUnwantedToken(e3, t2)) { + n3 = new org.antlr.runtime.UnwantedTokenException(t2, e3), this.beginResync(), e3.consume(), this.endResync(), this.reportError(n3); + var r2 = this.getCurrentInputSymbol(e3); + return e3.consume(), r2; + } + if (this.mismatchIsMissingToken(e3, i3)) { + var o = this.getMissingSymbol(e3, n3, t2, i3); + return n3 = new org.antlr.runtime.MissingTokenException(t2, e3, o), this.reportError(n3), o; + } + throw new org.antlr.runtime.MismatchedTokenException(t2, e3); + }, recoverFromMismatchedSet: function(e3, t2, i3) { + if (this.mismatchIsMissingToken(e3, i3)) return this.reportError(t2), this.getMissingSymbol(e3, t2, org.antlr.runtime.Token.INVALID_TOKEN_TYPE, i3); + throw t2; + }, getCurrentInputSymbol: function(e3) { + return null; + }, getMissingSymbol: function(e3, t2, i3, n3) { + return null; + }, consumeUntil: function(e3, t2) { + for (var i3 = e3.LA(1); i3 != org.antlr.runtime.Token.EOF && !t2.member(i3); ) e3.consume(), i3 = e3.LA(1); + }, pushFollow: function(e3) { + if (this.state._fsp + 1 >= this.state.following.length) { + var t2, i3 = []; + for (t2 = this.state.following.length - 1; t2 >= 0; t2--) i3[t2] = this.state.following[t2]; + this.state.following = i3; + } + this.state._fsp++, this.state.following[this.state._fsp] = e3; + }, getRuleInvocationStack: function(e3, t2) { + throw new Error("Not implemented."); + }, getBacktrackingLevel: function() { + return this.state.backtracking; + }, getTokenNames: function() { + return null; + }, getGrammarFileName: function() { + return null; + }, toStrings: function(e3) { + if (!e3) return null; + var t2, i3 = []; + for (t2 = 0; t2 < e3.length; t2++) i3.push(e3[t2].getText()); + return i3; + }, getRuleMemoization: function(e3, t2) { + this.state.ruleMemo[e3] || (this.state.ruleMemo[e3] = {}); + var i3 = this.state.ruleMemo[e3][t2]; + return org.antlr.lang.isNumber(i3) ? i3 : org.antlr.runtime.BaseRecognizer.MEMO_RULE_UNKNOWN; + }, alreadyParsedRule: function(e3, t2) { + var i3 = this.getRuleMemoization(t2, e3.index()); + return i3 != org.antlr.runtime.BaseRecognizer.MEMO_RULE_UNKNOWN && (i3 == org.antlr.runtime.BaseRecognizer.MEMO_RULE_FAILED ? this.state.failed = true : e3.seek(i3 + 1), true); + }, memoize: function(e3, t2, i3) { + var n3 = this.state.failed ? org.antlr.runtime.BaseRecognizer.MEMO_RULE_FAILED : e3.index() - 1; + if (!org.antlr.lang.isValue(this.state.ruleMemo)) throw new Error("!!!!!!!!! memo array is null for " + this.getGrammarFileName()); + if (t2 >= this.state.ruleMemo.length) throw new Error("!!!!!!!!! memo size is " + this.state.ruleMemo.length + ", but rule index is " + t2); + org.antlr.lang.isValue(this.state.ruleMemo[t2]) && (this.state.ruleMemo[t2][i3] = n3); + }, getRuleMemoizationCacheSize: function() { + var e3, t2 = 0; + for (e3 = 0; this.state.ruleMemo && e3 < this.state.ruleMemo.length; e3++) { + var i3 = this.state.ruleMemo[e3]; + i3 && (t2 += i3.length); + } + return t2; + }, traceIn: function(e3, t2, i3) { + this.emitErrorMessage("enter " + e3 + " " + i3), this.state.failed && this.emitErrorMessage(" failed=" + this.failed), this.state.backtracking > 0 && this.emitErrorMessage(" backtracking=" + this.state.backtracking); + }, traceOut: function(e3, t2, i3) { + this.emitErrorMessage("exit " + e3 + " " + i3), this.state.failed && this.emitErrorMessage(" failed=" + this.state.failed), this.state.backtracking > 0 && this.emitErrorMessage(" backtracking=" + this.state.backtracking); + } }, org.antlr.runtime.Lexer = function(e3, t2) { + t2 && org.antlr.runtime.Lexer.superclass.constructor.call(this, t2), e3 && (this.input = e3); + }, org.antlr.lang.extend(org.antlr.runtime.Lexer, org.antlr.runtime.BaseRecognizer, { reset: function() { + org.antlr.runtime.Lexer.superclass.reset.call(this), org.antlr.lang.isValue(this.input) && this.input.seek(0), org.antlr.lang.isValue(this.state) && (this.state.token = null, this.state.type = org.antlr.runtime.Token.INVALID_TOKEN_TYPE, this.state.channel = org.antlr.runtime.Token.DEFAULT_CHANNEL, this.state.tokenStartCharIndex = -1, this.state.tokenStartCharPositionInLine = -1, this.state.tokenStartLine = -1, this.state.text = null); + }, nextToken: function() { + for (; ; ) { + if (this.state.token = null, this.state.channel = org.antlr.runtime.Token.DEFAULT_CHANNEL, this.state.tokenStartCharIndex = this.input.index(), this.state.tokenStartCharPositionInLine = this.input.getCharPositionInLine(), this.state.tokenStartLine = this.input.getLine(), this.state.text = null, this.input.LA(1) === org.antlr.runtime.CharStream.EOF) return org.antlr.runtime.Token.EOF_TOKEN; + try { + if (this.mTokens(), org.antlr.lang.isValue(this.state.token)) { + if (this.state.token == org.antlr.runtime.Token.SKIP_TOKEN) continue; + } else this.emit(); + return this.state.token; + } catch (e3) { + if (e3 instanceof org.antlr.runtime.NoViableAltException) this.reportError(e3), this.recover(e3); + else { + if (!(e3 instanceof org.antlr.runtime.RecognitionException)) throw e3; + this.reportError(e3); + } + } + } + }, skip: function() { + this.state.token = org.antlr.runtime.Token.SKIP_TOKEN; + }, setCharStream: function(e3) { + this.input = null, this.reset(), this.input = e3; + }, getCharStream: function() { + return this.input; + }, getSourceName: function() { + return this.input.getSourceName(); + }, emit: function() { + if (0 === arguments.length) { + var e3 = new org.antlr.runtime.CommonToken(this.input, this.state.type, this.state.channel, this.state.tokenStartCharIndex, this.getCharIndex() - 1); + return e3.setLine(this.state.tokenStartLine), e3.setText(this.state.text), e3.setCharPositionInLine(this.state.tokenStartCharPositionInLine), this.state.token = e3, e3; + } + this.state.token = arguments[0]; + }, match: function(e3) { + var t2, i3 = 0; + if (org.antlr.lang.isString(e3)) for (; i3 < e3.length; ) { + if (this.input.LA(1) != e3.charAt(i3)) { + if (this.state.backtracking > 0) return void (this.state.failed = true); + throw t2 = new org.antlr.runtime.MismatchedTokenException(e3.charAt(i3), this.input), this.recover(t2), t2; + } + i3++, this.input.consume(), this.state.failed = false; + } + else if (org.antlr.lang.isNumber(e3)) { + if (this.input.LA(1) != e3) { + if (this.state.backtracking > 0) return void (this.state.failed = true); + throw t2 = new org.antlr.runtime.MismatchedTokenException(e3, this.input), this.recover(t2), t2; + } + this.input.consume(), this.state.failed = false; + } + }, matchAny: function() { + this.input.consume(); + }, matchRange: function(e3, t2) { + if (this.input.LA(1) < e3 || this.input.LA(1) > t2) { + if (this.state.backtracking > 0) return void (this.state.failed = true); + throw mre = new org.antlr.runtime.MismatchedRangeException(e3, t2, this.input), this.recover(mre), mre; + } + this.input.consume(), this.state.failed = false; + }, getLine: function() { + return this.input.getLine(); + }, getCharPositionInLine: function() { + return this.input.getCharPositionInLine(); + }, getCharIndex: function() { + return this.input.index(); + }, getText: function() { + return org.antlr.lang.isString(this.state.text) ? this.state.text : this.input.substring(this.state.tokenStartCharIndex, this.getCharIndex() - 1); + }, setText: function(e3) { + this.state.text = e3; + }, reportError: function(e3) { + this.displayRecognitionError(this.getTokenNames(), e3); + }, getErrorMessage: function(e3, t2) { + return e3 instanceof org.antlr.runtime.MismatchedTokenException ? "mismatched character " + this.getCharErrorDisplay(e3.c) + " expecting " + this.getCharErrorDisplay(e3.expecting) : e3 instanceof org.antlr.runtime.NoViableAltException ? "no viable alternative at character " + this.getCharErrorDisplay(e3.c) : e3 instanceof org.antlr.runtime.EarlyExitException ? "required (...)+ loop did not match anything at character " + this.getCharErrorDisplay(e3.c) : e3 instanceof org.antlr.runtime.MismatchedNotSetException || e3 instanceof org.antlr.runtime.MismatchedSetException ? "mismatched character " + this.getCharErrorDisplay(e3.c) + " expecting set " + e3.expecting : e3 instanceof org.antlr.runtime.MismatchedRangeException ? "mismatched character " + this.getCharErrorDisplay(e3.c) + " expecting set " + this.getCharErrorDisplay(e3.a) + ".." + this.getCharErrorDisplay(e3.b) : org.antlr.runtime.Lexer.superclass.getErrorMessage.call(this, e3, t2); + }, getCharErrorDisplay: function(e3) { + var t2 = e3; + switch (t2) { + case org.antlr.runtime.Token.EOF: + t2 = ""; + break; + case "\n": + t2 = "\\n"; + break; + case " ": + t2 = "\\t"; + break; + case "\r": + t2 = "\\r"; + } + return "'" + t2 + "'"; + }, recover: function(e3) { + this.input.consume(); + }, traceIn: function(e3, t2) { + var i3 = String.fromCharCode(this.input.LT(1)) + " line=" + this.getLine() + ":" + this.getCharPositionInLine(); + org.antlr.runtime.Lexer.superclass.traceIn.call(this, e3, t2, i3); + }, traceOut: function(e3, t2) { + var i3 = String.fromCharCode(this.input.LT(1)) + " line=" + this.getLine() + ":" + this.getCharPositionInLine(); + org.antlr.runtime.Lexer.superclass.traceOut.call(this, e3, t2, i3); + } }), org.antlr.runtime.ParserRuleReturnScope = function() { + }, org.antlr.runtime.ParserRuleReturnScope.prototype = { getStart: function() { + return this.start; + }, getStop: function() { + return this.stop; + } }, org.antlr.runtime.tree.TreeRuleReturnScope = function() { + }, org.antlr.runtime.tree.TreeRuleReturnScope.prototype = { getStart: function() { + return this.start; + } }, org.antlr.runtime.Parser = function(e3, t2) { + org.antlr.runtime.Parser.superclass.constructor.call(this, t2), this.setTokenStream(e3); + }, org.antlr.lang.extend(org.antlr.runtime.Parser, org.antlr.runtime.BaseRecognizer, { reset: function() { + org.antlr.runtime.Parser.superclass.reset.call(this), org.antlr.lang.isValue(this.input) && this.input.seek(0); + }, getCurrentInputSymbol: function(e3) { + return e3.LT(1); + }, getMissingSymbol: function(e3, t2, i3, n3) { + var r2, o = "", a = new org.antlr.runtime.CommonToken(i3, o), s = e3.LT(1); + return s.getType() === org.antlr.runtime.Token.EOF && (r2 = s, (s = e3.LT(-1)) || (s = r2)), a.line = s.getLine(), a.charPositionInLine = s.getCharPositionInLine(), a.channel = org.antlr.runtime.BaseRecognizer.DEFAULT_TOKEN_CHANNEL, a; + }, setTokenStream: function(e3) { + this.input = null, this.reset(), this.input = e3; + }, getTokenStream: function() { + return this.input; + }, getSourceName: function() { + return this.input.getSourceName(); + }, traceIn: function(e3, t2) { + org.antlr.runtime.Parser.superclass.traceIn.call(this, e3, t2, this.input.LT(1)); + }, traceOut: function(e3, t2) { + org.antlr.runtime.Parser.superclass.traceOut.call(this, e3, t2, this.input.LT(1)); + } }), org.antlr.runtime.DFA = function() { + }, org.antlr.runtime.DFA.prototype = { predict: function(e3) { + var t2, i3, n3, r2 = e3.mark(), o = 0; + try { + for (; ; ) if ((t2 = this.special[o]) >= 0) { + if (-1 === (o = this.specialStateTransition(t2, e3))) return this.noViableAlt(o, e3), 0; + e3.consume(); + } else { + if (this.accept[o] >= 1) return this.accept[o]; + if ((i3 = e3.LA(1)) === org.antlr.runtime.Token.EOF ? i3 = -1 : org.antlr.lang.isString(i3) && (i3 = i3.charCodeAt(0)), i3 >= this.min[o] && i3 <= this.max[o]) { + if ((n3 = this.transition[o][i3 - this.min[o]]) < 0) { + if (this.eot[o] >= 0) { + o = this.eot[o], e3.consume(); + continue; + } + return this.noViableAlt(o, e3), 0; + } + o = n3, e3.consume(); + } else { + if (!(this.eot[o] >= 0)) return i3 == org.antlr.runtime.Token.EOF && this.eof[o] >= 0 ? this.accept[this.eof[o]] : (this.noViableAlt(o, e3), 0); + o = this.eot[o], e3.consume(); + } + } + } finally { + e3.rewind(r2); + } + }, noViableAlt: function(e3, t2) { + if (!(this.recognizer.state.backtracking > 0)) { + var i3 = new org.antlr.runtime.NoViableAltException(this.getDescription(), this.decisionNumber, e3, t2); + throw this.error(i3), i3; + } + this.recognizer.state.failed = true; + }, error: function(e3) { + }, specialStateTransition: function(e3, t2) { + return -1; + }, getDescription: function() { + return "n/a"; + } }, org.antlr.lang.augmentObject(org.antlr.runtime.DFA, { unpackEncodedString: function(e3) { + var t2, i3, n3, r2, o = [], a = 0; + for (t2 = 0; t2 < e3.length; t2 += 2) for (i3 = e3.charCodeAt(t2), 65535 === (n3 = e3.charCodeAt(t2 + 1)) && (n3 = -1), r2 = 1; r2 <= i3; r2++) o[a++] = n3; + return o; + }, unpackEncodedStringToUnsignedChars: function(e3) { + return org.antlr.runtime.DFA.unpackEncodedString(e3); + } }), org.antlr.runtime.tree.TreeParser = function(e3) { + org.antlr.runtime.tree.TreeParser.superclass.constructor.call(this, arguments[1]), this.setTreeNodeStream(e3); + }, i2 = org.antlr.runtime.tree.TreeParser, org.antlr.lang.augmentObject(i2, { DOWN: org.antlr.runtime.Token.DOWN, UP: org.antlr.runtime.Token.UP }), org.antlr.lang.extend(i2, org.antlr.runtime.BaseRecognizer, { reset: function() { + i2.superclass.reset.call(this), this.input && this.input.seek(0); + }, setTreeNodeStream: function(e3) { + this.input = e3; + }, getTreeNodeStream: function() { + return this.input; + }, getSourceName: function() { + return this.input.getSourceName(); + }, getCurrentInputSymbol: function(e3) { + return e3.LT(1); + }, getMissingSymbol: function(e3, t2, i3, n3) { + var r2 = ""; + return new org.antlr.runtime.tree.CommonTree(new org.antlr.runtime.CommonToken(i3, r2)); + }, matchAny: function(e3) { + this.state.errorRecovery = false, this.state.failed = false; + var t2 = this.input.LT(1); + if (0 !== this.input.getTreeAdaptor().getChildCount(t2)) { + for (var n3 = 0, r2 = this.input.getTreeAdaptor().getType(t2); r2 !== org.antlr.runtime.Token.EOF && (r2 !== i2.UP || 0 !== n3); ) this.input.consume(), t2 = this.input.LT(1), (r2 = this.input.getTreeAdaptor().getType(t2)) === i2.DOWN ? n3++ : r2 === i2.UP && n3--; + this.input.consume(); + } else this.input.consume(); + }, mismatch: function(e3, t2, i3) { + throw new org.antlr.runtime.MismatchedTreeNodeException(t2, e3); + }, getErrorHeader: function(e3) { + return this.getGrammarFileName() + ": node from " + (e3.approximateLineInfo ? "after " : "") + "line " + e3.line + ":" + e3.charPositionInLine; + }, getErrorMessage: function(e3, t2) { + var n3; + return this instanceof i2 && (n3 = e3.input.getTreeAdaptor(), e3.token = n3.getToken(e3.node), org.antlr.lang.isValue(e3.token) || (e3.token = new org.antlr.runtime.CommonToken(n3.getType(e3.node), n3.getText(e3.node)))), i2.superclass.getErrorMessage.call(this, e3, t2); + }, traceIn: function(e3, t2) { + i2.superclass.traceIn.call(this, e3, t2, this.input.LT(1)); + }, traceOut: function(e3, t2) { + i2.superclass.traceOut.call(this, e3, t2, this.input.LT(1)); + } }); + }, 50924: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(54063)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "journeySessionOutcomeAchievementCollection"; + } + get displayTypeName() { + return "ArchValueJourneySessionOutcomeAchievementCollection"; + } + get isArchValueJourneySessionOutcomeAchievementCollection() { + return true; + } + } + t2.default = r2; + }, 50964: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = i2(17604), o = n2.__importDefault(i2(92140)), a = n2.__importDefault(i2(73198)), s = n2.__importStar(i2(63824)), l = n2.__importDefault(i2(74986)), u = i2(55909), d = i2(80428), c = i2(33951), p = n2.__importDefault(i2(65302)), _ = i2(47957); + class h extends l.default { + static createMinMax(e3, t3, i3, n3) { + const r3 = new h(); + return o.default.isUndefined(e3) || r3.setMinDur(e3, true === t3), o.default.isUndefined(i3) ? r3.setMaxDur(a.default.maxDurationMs, false) : r3.setMaxDur(i3, true === n3), r3; + } + constructor() { + super(), this._maxVal || this.setMaxDur(a.default.maxDurationMs, false); + } + _setFromFacets(e3) { + super._setFromFacets(e3), this._setFacetIfSet(() => this.setMaxDur(e3.maxVal, e3.maxValInclusive), e3.maxVal, "_maxVal"), this._setFacetIfSet(() => this.setMinDur(e3.minVal, e3.minValInclusive), e3.minVal, "_minVal"); + } + get className() { + return "DurationFacets"; + } + get isDurationFacets() { + return true; + } + setMaxDur(e3, t3) { + return this._maxVal = c.ParameterValidator.expectInt(e3, () => u.ParameterInfo.createFunctionParameter(this.className, "setMaxDur", "maxDur"), true), o.default.isUndefined(t3) || this.setMaxValInclusive(t3), this; + } + setMinDur(e3, t3) { + return this._minVal = c.ParameterValidator.expectInt(e3, () => u.ParameterInfo.createFunctionParameter(this.className, "setMinDur", "minDur"), true), o.default.isUndefined(t3) || this.setMinValInclusive(t3), this; + } + _createDurationError(e3, t3, i3, n3) { + return this._createErrorResult((0, r2.sprintf)(e3, this._getFacetValueForDisplay(t3), this._getFacetValueForDisplay(i3))); + } + _facetGetExpressionItemLitValue(e3) { + if (!e3.isLit) return null; + const t3 = this._facetGetExpressionType(), i3 = e3.getLitAsString(); + return t3.toMilliseconds(i3); + } + _facetGetExpressionType() { + return p.default.getGlobalTypeGroup().getType(d.expressionTypeNames.duration, this.isCollection); + } + _facetValidateValue(e3, t3) { + if (void 0 !== this.minVal) { + if (this.minValInclusive) { + if (e3 < this.minVal) return this._createDurationError(_.facets.valueMustBeGreaterThanOrEqualTo, e3, this.minVal, t3); + } else if (e3 <= this.minVal) return this._createDurationError(_.facets.valueMustBeGreaterThan, e3, this.minVal, t3); + } + if (void 0 !== this.maxVal) { + if (this.maxValInclusive) { + if (e3 > this.maxVal) return this._createDurationError(_.facets.valueMustBeLessThanOrEqualTo, e3, this.maxVal, t3); + } else if (e3 >= this.maxVal) return this._createDurationError(_.facets.valueMustBeLessThan, e3, this.maxVal, t3); + } + return { isValid: true }; + } + _getFacetValueForDisplay(e3) { + return s.getSearchStringFromMilliseconds(e3); + } + validateMilliseconds(e3, t3) { + return this._facetValidateValue(e3, t3); + } + } + t2.default = h; + }, 51039: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importDefault(i2(78432)), o = i2(77841), a = i2(19284), s = i2(80295), l = n2.__importDefault(i2(56549)), u = n2.__importDefault(i2(8471)); + class d extends u.default { + constructor(e3) { + super(), this._checkItemUndefinedOrNull(this._infoParmCtor("coreSlotSettingsViewModel"), e3), this._coreSlotSettingsViewModel = e3, (0, s.makeUnenumerable)(this, "_coreSlotSettingsViewModel"); + } + get displayTypeName() { + return "ArchSettingsNluSlot"; + } + get isArchSettingsNluSlot() { + return true; + } + get parentFlow() { + return this.coreFactory.createArchWrapper(this._coreSlotSettingsViewModel.parentFlow); + } + get logStr() { + return this.logStrTypeOnly; + } + associateWithGrammarByNameAsync(e3) { + return n2.__awaiter(this, void 0, void 0, function* () { + this.parentFlow.definition.supportsGrammars || this.logErrorAndThrow(`cannot associate a grammar with a slot in a flow that is of type '${this.parentFlow.flowType}'. ${this.logStr}`), this._checkItemIsValidLiteralString(this._infoParm("grammarName", "associateWithGrammarByNameAsync"), e3); + const t3 = this._coreSlotSettingsViewModel.parent, i3 = this._coreSlotSettingsViewModel.name, n3 = yield l.default.findItemByValueAsync(o.grammarManager, e3, "grammar", "name", "name"); + n3 || this._checkItem(this._infoParm("grammarName", "associateWithGrammarByNameAsync"), !n3, "unable to find the specified grammar."), this.logNote(`Found info for the grammar named '${n3.name}' for the passed grammar name of '${e3}'.`), t3.addSlotGrammarMapping(i3, { id: n3.id, name: n3.name }); + }); + } + set captureValue(e3) { + this._checkItemIsValidLiteralStringEnum(this._infoParm("captureValue", "captureValue"), e3, r2.default.CAPTURE_TYPES_ALL); + const t3 = this._coreSlotSettingsViewModel.parent, i3 = this._coreSlotSettingsViewModel.name; + this.logNote(`Setting slot '${i3}' capture value to '${e3}'.`), t3.addListPickerMapping(i3, e3, true); + } + get captureValue() { + var e3; + return null === (e3 = this._coreSlotSettingsViewModel.parent.listPickerMappings) || void 0 === e3 ? void 0 : e3[this._coreSlotSettingsViewModel.name]; + } + associateWithSpeechToTextEngineByNameAsync(e3) { + return n2.__awaiter(this, void 0, void 0, function* () { + this.parentFlow.definition.supportsGrammars || this.logErrorAndThrow(`cannot associate a speech to text engine with a slot in a flow that is of type '${this.parentFlow.flowType}'. ${this.logStr}`), this._checkItemIsValidLiteralString(this._infoParm("sttEngineName", "associateWithSpeechToTextEngineByNameAsync"), e3); + const t3 = this._coreSlotSettingsViewModel.parent, i3 = this._coreSlotSettingsViewModel.name, n3 = yield l.default.findItemByValueAsync(a.speechToTextEngineManager, e3, "sttEngine", "name", "name"); + n3 || this._checkItem(this._infoParm("sttEngineName", "associateWithSpeechToTextEngineByNameAsync"), !n3, "unable to find the specified speech to text engine."), this.logNote(`Found info for speech to text engine with name '${n3.name}' & ID '${n3.id}'.`), t3.addSlotGrammarSttEngineMapping(i3, { name: n3.name, id: n3.id }); + }); + } + associateWithGrammarByIdAsync(e3) { + return n2.__awaiter(this, void 0, void 0, function* () { + this.parentFlow.definition.supportsGrammars || this.logErrorAndThrow(`cannot associate a grammar with a slot in a flow that is of type '${this.parentFlow.flowType}'. ${this.logStr}`), this._checkItemIsValidLiteralString(this._infoParm("grammarId", "associateWithGrammarByIdAsync"), e3); + const t3 = this._coreSlotSettingsViewModel.parent, i3 = this._coreSlotSettingsViewModel.name, n3 = yield l.default.findItemByIdAsync(o.grammarManager, e3, "grammar", "id"); + n3 || this._checkItem(this._infoParm("grammarId", "associateWithGrammarByIdAsync"), !n3, "unable to find the specified grammar."), t3.addSlotGrammarMapping(i3, { id: n3.id, name: n3.name }); + }); + } + associateWithSpeechToTextEngineByIdAsync(e3) { + return n2.__awaiter(this, void 0, void 0, function* () { + this.parentFlow.definition.supportsGrammars || this.logErrorAndThrow(`cannot associate a speech to text engine with a slot in a flow that is of type '${this.parentFlow.flowType}'. ${this.logStr}`), this._checkItemIsValidLiteralString(this._infoParm("sttEngineId", "associateWithSpeechToTextEngineByIdAsync"), e3); + const t3 = this._coreSlotSettingsViewModel.parent, i3 = this._coreSlotSettingsViewModel.name, n3 = yield l.default.findItemByIdAsync(a.speechToTextEngineManager, e3, "sttEngine", "id"); + n3 || this._checkItem(this._infoParm("sttEngineId", "associateWithSpeechToTextEngineByIdAsync"), !n3, "unable to find the specified speech to text engine."), this.logNote(`Found info for speech to text engine with name '${n3.name}' & ID '${n3.id}'.`), t3.addSlotGrammarSttEngineMapping(i3, { name: n3.name, id: n3.id }); + }); + } + getAssociatedGrammarId() { + var e3; + if (!this.parentFlow.definition.supportsGrammars) return void this.logErrorAndThrow(`cannot fetch a grammar in a flow that is of type '${this.parentFlow.flowType}'. ${this.logStr}`); + return (null === (e3 = this._coreSlotSettingsViewModel.parent.slotsToGrammarsMapping[this._coreSlotSettingsViewModel.name]) || void 0 === e3 ? void 0 : e3.id) || void 0; + } + getAssociatedGrammarSpeechToTextEngineId() { + var e3; + if (!this.parentFlow.definition.supportsGrammars) return void this.logErrorAndThrow(`cannot fetch a grammar-based speech to text engine in a flow that is of type '${this.parentFlow.flowType}'. ${this.logStr}`); + return (null === (e3 = this._coreSlotSettingsViewModel.parent.slotsToGrammarsMapping[this._coreSlotSettingsViewModel.name]) || void 0 === e3 ? void 0 : e3.sttEngine.id) || void 0; + } + getAssociatedGrammarName() { + return n2.__awaiter(this, void 0, void 0, function* () { + var e3; + if (!this.parentFlow.definition.supportsGrammars) return void this.logErrorAndThrow(`cannot fetch a grammar in a flow that is of type '${this.parentFlow.flowType}'. ${this.logStr}`); + const t3 = null === (e3 = this._coreSlotSettingsViewModel.parent.slotsToGrammarsMapping[this._coreSlotSettingsViewModel.name]) || void 0 === e3 ? void 0 : e3.id; + if (!t3) return; + const i3 = yield l.default.findItemByValueAsync(o.grammarManager, t3, "grammar", "id", "id"); + return i3.name ? (this.logNote(`Found info for the grammar named '${i3.name}' for the passed grammar id of '${t3}'.`), i3.name) : void 0; + }); + } + getAssociatedGrammarSpeechToTextEngineName() { + return n2.__awaiter(this, void 0, void 0, function* () { + var e3, t3; + if (!this.parentFlow.definition.supportsGrammars) return void this.logErrorAndThrow(`cannot fetch a grammar-based speech to text engine in a flow that is of type '${this.parentFlow.flowType}'. ${this.logStr}`); + const i3 = null === (t3 = null === (e3 = this._coreSlotSettingsViewModel.parent.slotsToGrammarsMapping[this._coreSlotSettingsViewModel.name]) || void 0 === e3 ? void 0 : e3.sttEngine) || void 0 === t3 ? void 0 : t3.id; + if (!i3) return; + const n3 = yield l.default.findItemByValueAsync(a.speechToTextEngineManager, i3, "sttEngine", "id", "id"); + return (null == n3 ? void 0 : n3.name) ? (this.logNote(`Found info for the speech to text engine named '${n3.name}' for the passed speech to text Engine id of '${i3}'.`), n3.name) : void 0; + }); + } + } + t2.default = d; + }, 51060: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.GetJourneyOutcomeActionModel = void 0; + const n2 = i2(28904), r2 = i2(30801); + class o extends n2.BaseFindSystemObjectByIdActionModel { + constructor(e3) { + super(e3), this.__type = o.__type; + } + } + t2.GetJourneyOutcomeActionModel = o, o.__type = r2.getJourneyOutcomeActionType, o.registerType(); + }, 51071: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.fromSubscribable = void 0; + var n2 = i2(48051); + t2.fromSubscribable = function(e3) { + return new n2.Observable(function(t3) { + return e3.subscribe(t3); + }); + }; + }, 51125: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.YamlCharacteristics = t2.JsonCharacteristics = t2.ArchitectYamlCharacteristics = t2.ArchitectJsonCharacteristics = void 0, t2.getCharacteristicsForLanguage = function(e3) { + switch (e3) { + case n2.CodeLanguage.jsn: + return t2.JsonCharacteristics; + case n2.CodeLanguage.architectJson: + return t2.ArchitectJsonCharacteristics; + case n2.CodeLanguage.yaml: + return t2.YamlCharacteristics; + case n2.CodeLanguage.architectYaml: + return t2.ArchitectYamlCharacteristics; + } + }; + const n2 = i2(17666); + t2.ArchitectJsonCharacteristics = { arrayItemPrefixSeparator: "", itemSeparator: ",", objectPropertyNameValueSeparator: "", objectPropertySeparator: ",", supportsArchitectExpressions: true, supportsArchitectLiterals: true }, t2.ArchitectYamlCharacteristics = { arrayItemPrefixSeparator: "-", itemSeparator: "", objectPropertyNameValueSeparator: ":", objectPropertySeparator: "", supportsArchitectExpressions: true, supportsArchitectLiterals: true }, t2.JsonCharacteristics = { arrayItemPrefixSeparator: "", itemSeparator: ",", objectPropertyNameValueSeparator: "", objectPropertySeparator: ",", supportsArchitectExpressions: false, supportsArchitectLiterals: false }, t2.YamlCharacteristics = { arrayItemPrefixSeparator: "-", itemSeparator: "", objectPropertyNameValueSeparator: ":", objectPropertySeparator: "", supportsArchitectExpressions: false, supportsArchitectLiterals: false }; + }, 51126: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.oAuthClientManager = t2.OAuthClientManager = void 0; + const n2 = i2(31635), r2 = n2.__importStar(i2(14232)), o = n2.__importStar(i2(24032)), a = n2.__importDefault(i2(47532)), s = i2(81801), l = i2(30801), u = n2.__importDefault(i2(30068)), d = n2.__importDefault(i2(64807)), c = i2(27862); + class p extends a.default { + get requiredAuth() { + return s.externalAuthorizations.authStrings.oAuthClientView; + } + get dependencyType() { + return c.OAuthClient; + } + constructor() { + super(), this.topic = o.getTopic("OAuthClientManager"), this._rawServerCache = {}, this.apiCallSingle = r2.getOAuthClientInfo, this.apiCallList = void 0, this.className = "OAuthClientManager", this.dependencyContext = null, this.searchField = "name", this.securityError = true, this.uiMetadataSectionName = "oAuthClients", this.actionsForUsageSearch = [l.extractSecureDataActionType], this.actionPropertyForUsageSearch = "", this.noApiCallList = true, this._initialize(); + } + _createItemViewModel(e3) { + return new d.default(e3); + } + get _networkModel() { + return u.default; + } + } + t2.OAuthClientManager = p, t2.oAuthClientManager = new p(); + }, 51236: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importDefault(i2(94225)), o = i2(54251), a = n2.__importDefault(i2(45894)); + class s extends a.default { + constructor(e3) { + super(e3, o.divisionManager); + } + get _globalTypeName() { + return "division"; + } + get displayTypeName() { + return "ArchValueDivision"; + } + get isArchValueDivision() { + return true; + } + setLiteralByDivisionIdAsync(e3, t3) { + return n2.__awaiter(this, void 0, void 0, function* () { + return this._checkItemIsValidLiteralString(this._infoParm("divisionId", "setLiteralByDivisionIdAsync"), e3), this._checkItemIsValidFunction(this._infoParm("callbackFunction", "setLiteralByDivisionIdAsync"), t3, true), this._setLiteralByIdAsync(e3).then(() => r2.default.executeCallback(this, "setLiteralByDivisionIdAsync", t3, this)); + }); + } + setLiteralByDivisionNameAsync(e3, t3) { + return n2.__awaiter(this, void 0, void 0, function* () { + return this._checkItemIsValidLiteralString(this._infoParm("divisionName", "setLiteralByDivisionNameAsync"), e3), this._checkItemIsValidFunction(this._infoParm("callbackFunction", "setLiteralByDivisionNameAsync"), t3, true), this._setLiteralByValueAsync(e3).then(() => r2.default.executeCallback(this, "setLiteralByDivisionNameAsync", t3, this)); + }); + } + } + t2.default = s; + }, 51294: (e2, t2, i2) => { + const n2 = i2(36019).default, r2 = i2(49617); + class o { + } + o.prototype.getAgents = function(e3) { + return n2.build(r2.getAgents).queryParams(e3.getSearchQueryParams()).call(); + }, o.prototype.getAgent = function(e3) { + return n2.build(r2.getAgent).templateParams({ id: e3 }).call(); + }, o.prototype.getAgent.api = r2.getAgent, o.prototype.getCxAgents = function(e3) { + return n2.build(r2.getCxAgents).queryParams(e3.getSearchQueryParams()).call(); + }, o.prototype.getCxAgent = function(e3) { + return n2.build(r2.getCxAgent).templateParams({ id: e3 }).call(); + }, o.prototype.getCxAgent.api = r2.getCxAgent, e2.exports = new o(); + }, 51306: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.outcomeManager = t2.OutcomeManager = void 0; + const n2 = i2(31635), r2 = n2.__importStar(i2(1360)), o = i2(30801), a = n2.__importDefault(i2(47532)), s = i2(81801), l = n2.__importDefault(i2(4648)), u = i2(39123), d = i2(24032), c = i2(30801), p = i2(10798), _ = i2(30801), h = i2(47957), m = i2(27862), g = i2(51851); + class f extends a.default { + get requiredAuth() { + return (0, p.isFeatureAvailable)(l.default.divisionedFlowOutcomes) ? s.externalAuthorizations.authStrings.flowOutcomesSearch : s.externalAuthorizations.authStrings.flowOutcomesView; + } + get dependencyType() { + return m.FlowOutcome; + } + constructor() { + super(), this.topic = (0, d.getTopic)("OutcomeManager"), this._rawServerCache = {}, this.apiCallList = g.getOutcomes, this.apiCallSingle = g.getOutcome, this.className = "OutcomeManager", this.defaultMatchingStyle = r2.contains, this.dependencyContext = h.flowOutcomes.flowOutcome, this.searchField = "name", this.uiMetadataSectionName = "flowOutcomes", this.actionsForUsageSearch = [o.addFlowMilestoneActionType, c.initializeFlowOutcomeActionType, _.setFlowOutcomeActionType], this.actionPropertyForUsageSearch = "outcome", this.isOutcomeManager = true, this._initialize(); + } + _createItemViewModel(e3) { + return new u.FlowOutcomeViewModel(e3); + } + } + t2.OutcomeManager = f, t2.outcomeManager = new f(); + }, 51336: (e2, t2, i2) => { + const n2 = i2(28730), { clearVoicemailSnippetActionType: r2 } = i2(30801); + function o() { + o.baseConstructor.apply(this, arguments); + } + n2.extend(o, r2, true), e2.exports = o; + }, 51350: (e2, t2, i2) => { + const { askForNLUIntentActionType: n2 } = i2(30801), r2 = i2(2444), o = i2(7401); + function a() { + Object.defineProperties(this, { _knowledgeSearchResult: { writable: true } }), a.baseConstructor.apply(this, arguments); + } + r2.extend(a, n2, true), Object.defineProperties(a.prototype, { pasteReIdOrRename: { value: function(e3) { + a._super.pasteReIdOrRename.apply(this, arguments), this.knowledgeSearchResult.pasteReIdOrRename(e3); + } }, pasteResolveOldToNewValues: { value: function(e3) { + a._super.pasteResolveOldToNewValues.apply(this, arguments), this.knowledgeSearchResult.pasteResolveOldToNewValues(e3); + } }, knowledgeSearchResult: { enumerable: true, get: function() { + return this._knowledgeSearchResult; + }, set: function(e3) { + this._knowledgeSearchResult = this.reviveItem(e3, o); + } } }), e2.exports = a; + }, 51416: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.ContactListViewModel = void 0; + const n2 = i2(43212), r2 = i2(1234); + class o extends n2.BaseConfigurationListViewModel { + constructor(e3) { + super(e3), this.divisionViewModel = new r2.DivisionViewModel(this.division); + } + get className() { + return "ContactListViewModel"; + } + get displayName() { + return this._model.name; + } + get division() { + return this._model.division; + } + get label() { + return this._model.name; + } + get name() { + return this._model.name; + } + get columnNames() { + return this._model.columnNames; + } + get phoneColumns() { + return this._model.phoneColumns; + } + getConfiguration() { + return { id: this._model.id, name: this._model.name, columnNames: this._model.columnNames, phoneColumns: this._model.phoneColumns }; + } + get id() { + return this._model.id; + } + } + t2.ContactListViewModel = o; + }, 51441: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(20692)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "wrapupCodeCollection"; + } + get displayTypeName() { + return "ArchVariableWrapupCodeCollection"; + } + get initialValue() { + return this._initialValue; + } + get isArchVariableWrapupCodeCollection() { + return true; + } + } + t2.default = r2; + }, 51482: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.FindGroupActionModel = void 0; + const n2 = i2(49574), r2 = i2(30801); + class o extends n2.BaseFindSystemObjectByNameActionModel { + constructor(e3) { + super(e3), this.__type = o.__type; + } + } + t2.FindGroupActionModel = o, o.__type = r2.findGroupActionType, o.registerType(); + }, 51499: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(92140)), r2 = i2(55299), o = i2(1360); + class a extends r2.BaseClass { + constructor(e3, t3) { + super(), t3 || (t3 = {}), this.configListManager = e3, this.sortBy = t3.sortBy, this.searchTerm = t3.searchTerm || "", this.sortOrder = t3.sortOrder || "ASC", this.matchingStyle = t3.matchingStyle || o.contains, this.searchField = t3.searchField || "name", this.additionalParams = t3.additionalParams || {}, this.after = t3.after, this.defaultPageSize = e3 && e3.defaultPageSize ? e3.defaultPageSize : 25, this.pageNumber = 1, (null == e3 ? void 0 : e3.isSearching) && t3.getNextPage ? this.pageNumber = Math.floor(e3.currentSearchItems.length / this.defaultPageSize) + 1 : !this.searchTerm && t3.getNextPage && (this.pageNumber = e3.lastRetrievedPage + 1); + } + get className() { + return "ConfigListSearchParams"; + } + get isConfigListSearchParams() { + return true; + } + addAdditionalParams(e3) { + for (const t3 in e3) e3.hasOwnProperty(t3) && (this.additionalParams.hasOwnProperty(t3) && this.additionalParams[t3] !== e3[t3] && this.configListManager.topic.error("search params already has value for {} -- existing: {} --new: {}", t3, this.additionalParams[t3], e3[t3]), this.additionalParams[t3] = e3[t3]); + } + get_q64searchContent() { + const e3 = { pageNumber: this.pageNumber, pageSize: this.defaultPageSize }; + if (this.configListManager.networkType && (e3.types = [this.configListManager.networkType]), this.sortBy && (e3.sortBy = this.sortBy), this.sortBy && this.sortOrder && (e3.sortOrder = this.sortOrder), this.searchTerm) { + let t3; + switch (this.matchingStyle) { + case o.containsAssumed: + t3 = "CONTAINS"; + break; + case o.exactMatch: + t3 = this.configListManager.useStartsWithKeywordForExactMatch ? "STARTS_WITH" : "EXACT"; + break; + case o.startsWith: + t3 = "STARTS_WITH"; + break; + default: + t3 = "CONTAINS"; + } + e3.query = [{ type: t3, fields: [this.searchField], value: this.searchTerm }]; + } + return this.additionalParams && n2.default.keys(this.additionalParams).length > 0 && this.configListManager.topic.error("search does not support additionalParams"), e3; + } + getSearchQueryParams(e3) { + var t3; + let i3 = { pageNumber: this.pageNumber, pageSize: this.defaultPageSize }; + if (this.sortBy && (i3.sortBy = this.sortBy), this.sortBy && this.sortOrder && (i3.sortOrder = this.sortOrder), this.after && (i3.after = this.after), this.searchTerm) { + const e4 = false !== (null === (t3 = this.configListManager) || void 0 === t3 ? void 0 : t3.searchWildcardSupport); + switch (this.matchingStyle) { + case o.containsAssumed: + case o.exactMatch: + i3[this.searchField] = this.searchTerm; + break; + case o.startsWith: + i3[this.searchField] = e4 ? this.searchTerm + "*" : this.searchTerm; + break; + default: + i3[this.searchField] = e4 ? "*" + this.searchTerm + "*" : this.searchTerm; + } + } + return this.additionalParams && !e3 && (i3 = n2.default.extend(this.additionalParams, i3)), i3; + } + } + t2.default = a; + }, 51608: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.auditTime = void 0; + var n2 = i2(62326), r2 = i2(88877), o = i2(5825); + t2.auditTime = function(e3, t3) { + return void 0 === t3 && (t3 = n2.asyncScheduler), r2.audit(function() { + return o.timer(e3, t3); + }); + }; + }, 51635: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(84655)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "workitem"; + } + get initialValue() { + return this._initialValue; + } + get displayTypeName() { + return "ArchVariableWorkitem"; + } + get isArchVariableWorkitem() { + return true; + } + } + t2.default = r2; + }, 51668: (e2, t2, i2) => { + "use strict"; + var n2 = {}; + (0, i2(9805).assign)(n2, i2(63303), i2(87083), i2(19681)), e2.exports = n2; + }, 51677: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.CodeParser = void 0; + const n2 = i2(31635), r2 = i2(29762), o = i2(78495), a = n2.__importDefault(i2(92140)), s = n2.__importDefault(i2(73198)), l = i2(26403), u = i2(17666), d = i2(17666), c = i2(17666), p = i2(38597), _ = i2(57653), h = i2(33336); + class m { + constructor(e3) { + this._language = e3; + } + get language() { + return this._language; + } + static get JSONParser() { + return m._jsonParser || (m._jsonParser = new m(c.CodeLanguage.jsn)), m._jsonParser; + } + static get ArchitectJSONParser() { + return m._architectJSONParser || (m._architectJSONParser = new m(c.CodeLanguage.architectJson)), m._architectJSONParser; + } + static get ArchitectExpressionParser() { + return m._architectExpressionParser || (m._architectExpressionParser = new m(c.CodeLanguage.architectExpression)), m._architectExpressionParser; + } + static get ArchitectYAMLParser() { + return m._architectYAMLParser || (m._architectYAMLParser = new m(c.CodeLanguage.architectYaml)), m._architectYAMLParser; + } + static getParserForLanguage(e3) { + switch (e3) { + case c.CodeLanguage.architectExpression: + return m.ArchitectExpressionParser; + case c.CodeLanguage.architectJson: + return m.ArchitectJSONParser; + case c.CodeLanguage.architectYaml: + return m.ArchitectYAMLParser; + case c.CodeLanguage.jsn: + return m.JSONParser; + default: + return m.ArchitectJSONParser; + } + } + traverseTree(e3, t3) { + e3.iterate({ enter(e4) { + t3(e4); + }, leave() { + } }); + } + _incrementYamlIndent(e3) { + return void 0 === e3 ? 0 : e3 + 2; + } + _checkYamlIndent(e3, t3, i3, n3, r3) { + const o2 = r3 ? e3.getLineAndCharPosForPosition((0, h.getIndentPositionForNode)(r3, t3.from, t3.to)) : e3.getLineAndCharPosForPosition(t3.from), a2 = !!(o2.charPos % 2); + void 0 === n3 || o2 && (null == o2 ? void 0 : o2.charPos) === n3 ? a2 && e3.addParseResultItem(e3.currentParseItem, t3, l.ParseResultTypes.error, _.CodeParseItemMessage.createInvalidIndent(o2.charPos)) : e3.addParseResultItem(e3.currentParseItem, t3, l.ParseResultTypes.error, _.CodeParseItemMessage.createInvalidIndent(o2.charPos, n3)); + } + parse(e3, t3, i3) { + if (!e3.parentFlow.loaded) return; + i3 || (i3 = {}); + const n3 = !!(null == i3 ? void 0 : i3.enableLogging), a2 = !!(null == i3 ? void 0 : i3.parseForUiOnly), h2 = {}, m2 = { settings: i3, items: [], itemsByLinePosMap: {}, errorItems: [], warningItems: [], infoItems: [], language: this._language }; + n3 && console.log(`Parse text: ${t3}`); + const g = new p.CodeJsonBuilder(e3, t3, m2, i3, this.language); + let f = false; + if ((null == t3 ? void 0 : t3.length) > s.default.maxExpressionTextLength) g.addParseResultItem(g.currentParseItem, void 0, l.ParseResultTypes.error, _.CodeParseItemMessage.createTotalTextLengthTooBig(t3.length), void 0, void 0, true), f = true; + else { + const e4 = i3.quickParse ? i3.quickParseNode : void 0; + let s2; + switch (this._language) { + case c.CodeLanguage.architectJson: + s2 = r2.parser.parse(t3), this.traverseTree(s2, (r3) => { + var o2, s3, d2, c2, p2, f2; + const T = t3.substring(r3.from, r3.to); + switch (n3 && console.log(`JSON Node type name: ${r3.type.name}, Node text: ${T}`), (null == e4 ? void 0 : e4.to) === r3.to && (m2.quickResultParseItem = g.currentParseItem), r3.type.name) { + case u.CodeArchitectJsonParserToken.Array: + case u.CodeArchitectJsonParserToken.ArchitectExpression: + case u.CodeArchitectJsonParserToken.ArchitectLiteral: + case u.CodeArchitectJsonParserToken.JsonText: + case u.CodeArchitectJsonParserToken.LineComment: + case u.CodeArchitectJsonParserToken.Object: + case u.CodeArchitectJsonParserToken.Property: + if (a2 && 1 === g.stack.length) { + const e5 = null == t3 ? void 0 : t3.substring(r3.from, r3.to), i4 = null === (s3 = null === (o2 = null == e5 ? void 0 : e5.split(":")) || void 0 === o2 ? void 0 : o2[0]) || void 0 === s3 ? void 0 : s3.slice(1, -1), n4 = null === (c2 = null === (d2 = null == e5 ? void 0 : e5.split(":")) || void 0 === d2 ? void 0 : d2.slice(1)) || void 0 === c2 ? void 0 : c2.join(":"); + h2[i4] = n4; + } + n3 && console.log(`Skipping ${r3.type.name}`); + break; + case u.CodeArchitectJsonParserToken.ArchitectExpressionContent: + g.addAssignArchitectExpr(r3, null === (p2 = t3.substring(r3.from, r3.to)) || void 0 === p2 ? void 0 : p2.trim()); + break; + case u.CodeArchitectJsonParserToken.ArchitectLiteralContent: + g.addAssignArchitectLiteral(r3, null === (f2 = t3.substring(r3.from, r3.to)) || void 0 === f2 ? void 0 : f2.trim()); + break; + case u.CodeArchitectJsonParserToken.ArrayStart: + g.pushArray(r3); + break; + case u.CodeArchitectJsonParserToken.ArrayEnd: + g.popArray(r3); + break; + case u.CodeArchitectJsonParserToken.False: + g.assignValueBoolean(r3, false); + break; + case u.CodeArchitectJsonParserToken.ItemSeparator: + g.addSeparator(r3); + break; + case u.CodeArchitectJsonParserToken.Null: + g.assignValueNull(r3); + break; + case u.CodeArchitectJsonParserToken.Number: + g.assignValueNumber(r3); + break; + case u.CodeArchitectJsonParserToken.ObjectStart: + g.pushObject(r3); + break; + case u.CodeArchitectJsonParserToken.ObjectEnd: + g.popObject(r3); + break; + case u.CodeArchitectJsonParserToken.PropertyName: + g.addPropertyAssignment(r3, T.slice(1, -1)); + break; + case u.CodeArchitectJsonParserToken.String: + g.assignValueString(r3, T.slice(1, -1)); + break; + case u.CodeArchitectJsonParserToken.True: + g.assignValueBoolean(r3, true); + break; + default: + if ("\u26A0" !== r3.type.name) g.addParseResultItem(g.currentParseItem, r3, l.ParseResultTypes.error, _.CodeParseItemMessage.createTokenUnexpected(T), void 0, void 0, true, i3.parseForUiOnly); + else if (T) g.addParseResultItem(g.currentParseItem, r3, l.ParseResultTypes.error, _.CodeParseItemMessage.createTokenUnexpected(T), void 0, void 0, true, i3.parseForUiOnly); + else if ("\u26A0" === r3.type.name && r3.type.isError) { + const e5 = g.currentParseItem; + !(null == e5 ? void 0 : e5.hasSeparator) && g.isParseItemObjectOrArray(e5) && g.addParseResultItem(g.currentParseItem, r3, l.ParseResultTypes.error, _.CodeParseItemMessage.createInvalidSyntax(), void 0, void 0, true); + } + } + }), s2 = void 0; + break; + case c.CodeLanguage.architectYaml: { + let e5; + s2 = o.parser.parse(t3), this.traverseTree(s2, (r3) => { + var o2, a3, s3, u2, c2, p2; + const h3 = t3.substring(r3.from, r3.to); + switch (n3 && console.log(`YAML Node type name: ${r3.type.name}, Node text: ${h3}`), r3.type.name) { + case d.CodeArchitectYamlParserToken.FlowMapping: + case d.CodeArchitectYamlParserToken.Stream: + case d.CodeArchitectYamlParserToken.Document: + case d.CodeArchitectYamlParserToken.Pair: + case d.CodeArchitectYamlParserToken.Key: + case d.CodeArchitectYamlParserToken.Item: + case d.CodeArchitectYamlParserToken.ArchitectExpression: + case d.CodeArchitectYamlParserToken.ArchitectLiteral: + n3 && console.log(`Skipping ${r3.type.name}`); + break; + case d.CodeArchitectYamlParserToken.ArchitectExpressionContent: + g.addAssignArchitectExpr(r3, null === (o2 = t3.substring(r3.from, r3.to)) || void 0 === o2 ? void 0 : o2.trim()); + break; + case d.CodeArchitectYamlParserToken.ArchitectLiteralContent: + g.addAssignArchitectLiteral(r3, null === (a3 = t3.substring(r3.from, r3.to)) || void 0 === a3 ? void 0 : a3.trim()); + break; + case d.CodeArchitectYamlParserToken.BlockMapping: + g.pushObject(r3), e5 = this._incrementYamlIndent(e5), this._checkYamlIndent(g, r3, h3, e5, t3); + break; + case d.CodeArchitectYamlParserToken.BlockSequence: + g.pushArray(r3), e5 = this._incrementYamlIndent(e5), this._checkYamlIndent(g, r3, h3, e5); + break; + case d.CodeArchitectYamlParserToken.ArrayItemStartSeparator: { + const t4 = null === (c2 = null === (u2 = g.unwindToArray(null === (s3 = g.getLineAndCharPosForPosition(r3.from)) || void 0 === s3 ? void 0 : s3.charPos)) || void 0 === u2 ? void 0 : u2.lineInfo) || void 0 === c2 ? void 0 : c2.charPos; + void 0 !== t4 && (e5 = t4), g.addArrayItemStartSeparator(r3, h3), this._checkYamlIndent(g, r3, h3, e5); + break; + } + case d.CodeArchitectYamlParserToken.KeyValueSeparator: + g.addPropertyValueSeparator(r3, h3); + break; + case d.CodeArchitectYamlParserToken.Literal: + case d.CodeArchitectYamlParserToken.QuotedLiteral: { + const t4 = r3.type.name === d.CodeArchitectYamlParserToken.QuotedLiteral, i4 = t4 ? h3.slice(1, -1) : h3; + let n4 = g.currentParseItem; + if (g.isParseItemObject(n4) || g.isParseItemArray(n4) && !n4.arrayItemPrefixSeparatorAdded) { + const t5 = g.unwindToArrayOrObject(null === (p2 = g.getLineAndCharPosForPosition(r3.from)) || void 0 === p2 ? void 0 : p2.charPos); + t5 && (n4 = t5, e5 = t5.lineInfo.charPos), this._checkYamlIndent(g, r3, h3, e5); + } + g.isParseItemObject(n4) && g.addPropertyAssignment(r3, h3), g.isParseItemObjectPropertyValue(n4) || g.isParseItemArray(n4) ? g.assignScalarValue(r3, i4, t4) : console.log(`unknown '${h3}'`); + break; + } + default: + if ("\u26A0" !== r3.type.name) g.addParseResultItem(g.currentParseItem, r3, l.ParseResultTypes.error, _.CodeParseItemMessage.createTokenUnexpected(h3), void 0, void 0, true, i3.parseForUiOnly); + else if (h3) g.addParseResultItem(g.currentParseItem, r3, l.ParseResultTypes.error, _.CodeParseItemMessage.createTokenUnexpected(h3), void 0, void 0, true, i3.parseForUiOnly); + else if ("\u26A0" === r3.type.name && r3.type.isError) { + const e6 = g.currentParseItem; + !(null == e6 ? void 0 : e6.hasSeparator) && g.isParseItemObjectOrArray(e6) && g.addParseResultItem(g.currentParseItem, r3, l.ParseResultTypes.error, _.CodeParseItemMessage.createInvalidSyntax(), void 0, void 0, true); + } + } + }); + break; + } + } + s2 = void 0; + } + return g.parseComplete(f), m2.configJson = g.getExpressionConfigVal(), a2 && (m2.topLevelDisplayTexts = h2), m2; + } + parseAndSetExpressionConfig(e3, t3, i3) { + var n3, r3, o2; + if (!e3.parentFlow.loaded) return; + const s2 = this.parse(e3, a.default.isUndefined(t3) ? e3.text : t3, i3), l2 = null === (r3 = null === (n3 = e3.model) || void 0 === n3 ? void 0 : n3.config) || void 0 === r3 ? void 0 : r3.lit; + return l2 && (e3.type.isJsonType && !e3.type.isCustomType ? l2.val = null === (o2 = s2.configJson) || void 0 === o2 ? void 0 : o2.json : l2.val = s2.configJson), e3.setParseResult(s2), s2; + } + } + t2.CodeParser = m; + }, 51695: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importDefault(i2(92140)), o = n2.__importStar(i2(17498)), a = i2(55299); + class s extends a.BaseClass { + constructor() { + super(), this.collapsed = true, this.supportsInitializeDesignTime = true; + } + addClipboardDependencies(e3) { + r2.default.each(this.contents, (t3) => { + r2.default.isFunction(t3.addClipboardDependencies) && t3.addClipboardDependencies(e3); + }); + } + checkVersion(e3) { + r2.default.each(this.contents, (t3) => { + r2.default.isFunction(t3.checkVersion) && t3.checkVersion(e3); + }); + } + destroy() { + r2.default.each(this.contents, (e3) => { + r2.default.isFunction(e3.destroy) && e3.destroy(); + }), this._isDestroyed = true; + } + get isDestroyed() { + return this._isDestroyed; + } + get parentFlow() { + var e3; + return null === (e3 = this.getExpressions()[0]) || void 0 === e3 ? void 0 : e3.parentFlow; + } + get parent() { + var e3; + return null === (e3 = this.getExpressions()[0]) || void 0 === e3 ? void 0 : e3.parent; + } + get hasError() { + return !!this.contents.find((e3) => e3.hasError); + } + get hasWarning() { + return !!this.contents.find((e3) => e3.hasWarning); + } + initializeDesignTime() { + r2.default.each(this.contents, (e3) => { + r2.default.isFunction(e3.initializeDesignTime) && e3.initializeDesignTime(), e3.isNormalExpression && (e3.parentExpressionContainerItem = this); + }), this._initializeDesignTimeCalled = true; + } + get initializeDesignTimeCalled() { + return this._initializeDesignTimeCalled; + } + search(e3) { + r2.default.each(this.contents, (t3) => { + e3.addToQueue(t3); + }); + } + updateDependencies() { + r2.default.each(this.contents, (e3) => { + e3.isExpression && o.registerExpression(e3); + }); + } + validate(e3) { + r2.default.each(this.contents, (t3) => { + r2.default.isFunction(t3.validate) && t3.validate(e3); + }); + } + get contents() { + return console.error(`Class ${this.className} needs to implement the 'contents' getter.`), []; + } + getExpressions() { + return this.contents.filter((e3) => e3.isExpression).flatMap((e3) => e3.getExpressions()); + } + getContentExpressions() { + return this.contents.filter((e3) => e3.isExpression); + } + } + t2.default = s; + }, 51724: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.createUtilizationLabel = t2.deleteUtilizationLabel = t2.getUtilizationLabel = t2.getUtilizationLabels = void 0; + const n2 = i2(64288), r2 = i2(23340), o = i2(36019).default, a = { ignoreBadResponse: true }; + t2.getUtilizationLabels = o.request("GET", "{public-api.apps}/api/v2/routing/utilization/labels", r2.UtilizationLabelList, a), t2.getUtilizationLabel = o.request("GET", "{public-api.apps}/api/v2/routing/utilization/labels/{id}", n2.UtilizationLabel, a), t2.deleteUtilizationLabel = o.request("DELETE", "{public-api.apps}/api/v2/routing/utilization/labels/{id}", n2.UtilizationLabel, a), t2.createUtilizationLabel = o.request("POST", "{public-api.apps}/api/v2/routing/utilization/labels", n2.UtilizationLabel, a); + }, 51818: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.flowSizeThreshold = t2.flowSizePercentDisplay = void 0, t2.calculateFlowSizePercentage = function(e3, i3) { + const n3 = e3 / i3.definition.maxFlowSize * 100; + return parseFloat(n3.toFixed(t2.flowSizePercentDisplay.decimalPlaces)); + }, t2.getFlowSizeThreshold = function(e3) { + return t2.flowSizeThreshold.find((t3) => e3 >= t3.threshold); + }, t2.getFlowSize = function(e3) { + const t3 = n2.getStringifiedConfiguration(e3, false), i3 = JSON.parse(t3), a = []; + return e3.getAutoManagedSettings().forEach((e4) => { + e4.showInFlowSize && (e4.outOfService || a.push({ id: e4.id, name: e4.getDisplayName(), modelPropertyName: e4.modelPropertyName })); + }), a.push({ id: "variables", name: o.customNodes.data, modelPropertyName: "variables" }), new r2.FlowSize(e3.id, e3.getDisplayName(), i3, a); + }; + const n2 = i2(31635).__importStar(i2(46920)), r2 = i2(57905), o = i2(47957); + t2.flowSizePercentDisplay = { decimalPlaces: 1, digitInfo: "1.1-1", minValue: 1, maxValue: (e3) => e3.definition.maxFlowSize }, t2.flowSizeThreshold = [{ threshold: 98, type: "error", label: o.flow.flowSizeWarningVeryHigh }, { threshold: 70, type: "error", label: o.flow.flowSizeWarningHigh }, { threshold: 30, type: "warning", label: o.flow.flowSizeWarningMedium }, { threshold: 0, type: "info", label: o.flow.flowSizeWarningLow }]; + }, 51830: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.ConfigListManagerSeeder = void 0; + const n2 = i2(31635), r2 = n2.__importDefault(i2(92140)), o = n2.__importStar(i2(21042)), a = n2.__importStar(i2(62241)), s = n2.__importStar(i2(24032)), l = n2.__importDefault(i2(47532)), u = s.getTopic("ConfigListManagerSeeder"); + t2.ConfigListManagerSeeder = class { + constructor(e3) { + this.manifestResults = e3.results; + } + _seedManager(e3, t3) { + t3 && r2.default.each(t3, (t4) => { + let i3 = t4.result !== a.results.doesNotExist && t4.result !== a.results.invalid && "deleted" !== t4.state; + if (i3 && (i3 = !e3.isValidItem || e3.isValidItem(t4), i3 || u.error(`Item is not valid for adding to listManager:${e3.className} -- id: ${t4.id} type: ${t4.type}`)), i3 || e3.keepDeletedItems) e3.isConfigurationListManager ? (e3.addItem(t4, true), e3.setAdditionalCache && e3.setAdditionalCache(t4)) : e3.isBootstrapListManager && e3.updateItem(t4); + else { + if (e3.isMockedManager) return; + t4.id ? e3.removeItemWithId(t4.id, false) : e3.removeItemWithName(t4.name, false); + } + }); + } + processManager(e3) { + if (e3 && !e3.isBriefObjectManager && e3.dependencyType && this.manifestResults[e3.dependencyType.value]) { + let t3 = this.manifestResults[e3.dependencyType.value]; + e3.manifestFilter && (t3 = r2.default.filter(this.manifestResults[e3.dependencyType.value], (t4) => t4.result === a.results.doesNotExist || e3.manifestFilter(t4))), this._seedManager(e3, t3), e3.isConfigurationListManager && (e3.serverWasContacted = true); + } + } + seedListManagers() { + this.manifestResults && (r2.default.each(l.default.allListManagers, this.processManager.bind(this)), r2.default.each(o.allListManagers, this.processManager.bind(this))); + } + }; + }, 51837: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(83663)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "wheelPickerItem"; + } + get displayTypeName() { + return "ArchValueWheelPickerItem"; + } + get isArchValueWheelPickerItem() { + return true; + } + get title() { + return this._getAssignableProperty("title"); + } + get value() { + return this._getAssignableProperty("value"); + } + setLiteralWheelPickerItem(e3, t3) { + this.title.setLiteralString(e3), t3 && this.value.setLiteralString(t3); + } + } + t2.default = r2; + }, 51851: (e2, t2, i2) => { + const n2 = i2(10798), r2 = i2(4648).default, o = i2(36019).default, a = i2(61192); + class s { + } + s.prototype.getMilestone = function(e3) { + return o.build(a.getMilestoneDivisionView).templateParams({ id: e3 }).call().then((e4) => 0 !== e4.entities?.length && void 0 !== e4.entities ? e4.entities[0] : e4); + }, s.prototype.getMilestone.api = a.getMilestone, s.prototype.getMilestones = function(e3) { + return o.build(a.getMilestonesDivisionView).queryParams(e3.getSearchQueryParams()).call(); + }, s.prototype.getOutcomes = function(e3) { + const t3 = n2.isFeatureAvailable(r2.divisionedFlowOutcomes) ? a.getOutcomesDivisionView : a.getOutcomes; + return o.build(t3).queryParams(e3.getSearchQueryParams()).call(); + }, s.prototype.getOutcome = function(e3) { + const t3 = n2.isFeatureAvailable(r2.divisionedFlowOutcomes) ? a.getOutcomeDivisionView : a.getOutcome; + return o.build(t3).templateParams({ id: e3 }).call().then((e4) => 0 !== e4.entities?.length && void 0 !== e4.entities ? e4.entities[0] : e4); + }, s.prototype.getOutcome.api = a.getOutcome, e2.exports = new s(); + }, 51895: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(81574)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "externalLineId"; + } + get userId() { + } + get displayTypeName() { + return "ArchValueExternalLineId"; + } + get isArchValueExternalLineId() { + return true; + } + } + t2.default = r2; + }, 51905: (e2, t2, i2) => { + "use strict"; + const n2 = i2(31635), r2 = n2.__importDefault(i2(92140)), o = n2.__importStar(i2(74359)), a = i2(51126), s = i2(30163), l = n2.__importStar(i2(17498)), u = i2(12179), d = n2.__importDefault(i2(97891)), c = i2(28803), p = n2.__importDefault(i2(86855)), _ = i2(47957); + class h extends p.default { + constructor(e3, t3) { + super(e3, t3), this._acknowledgementInvalidUser = false, this.getManagerForCurrentUser().addItem(o.getConnectedUser()); + } + get acknowledgementUserIsOAuthClient() { + return this.model.acknowledgementUserIsOAuthClient; + } + set acknowledgementUserIsOAuthClient(e3) { + this.model.acknowledgementUserIsOAuthClient = e3; + } + get acknowledgementInvalidUser() { + return this._acknowledgementInvalidUser; + } + get acknowledgementDate() { + if (this.model.acknowledgementDate) return new Date(this.model.acknowledgementDate); + } + clearAcknowledgment() { + return !this.isReadOnly && (this.acknowledgementUserId = void 0, this.acknowledgementUserDisplayName = void 0, this.model.acknowledgementDate = void 0, this._acknowledgementInvalidUser = false, l.unRegisterConsumer(this, "acknowledgementUser"), true); + } + get createStatementOptions() { + return { variable: { disallowSecure: true }, expression: { options: { allowSecure: true } } }; + } + get hasSecureDataAcknowledgment() { + return !(this.acknowledgementInvalidUser || !this.acknowledgementUserId); + } + get isExtractSecureData() { + return true; + } + initialize() { + super.initialize(), r2.default.each(this.variables.items, (e3) => { + e3.variable.setAsOutput(true), e3.expression.options.allowSecure = true; + }); + } + _initializeDesignTime() { + super._initializeDesignTime(), this.acknowledgementUserId ? this.acknowledgementUser.configListManager = this.getManagerForUserWhoAcknowledged() : this.acknowledgementUser.configListManager = this.getManagerForCurrentUser(); + } + setAcknowledgment() { + return !this.isReadOnly && (this.acknowledgementUserId = o.getConnectedUser().id, this.acknowledgementUserDisplayName = o.getConnectedUser().name, this.model.acknowledgementDate = (/* @__PURE__ */ new Date()).toISOString(), this._acknowledgementInvalidUser = false, this.acknowledgementUserIsOAuthClient = !!o.getConnectedUser().isOAuthClient, l.registerConsumer(this, "acknowledgementUser", this.acknowledgementUserDisplayName, this.acknowledgementUserId, l.NO_VERSION, this.getManagerForCurrentUser().dependencyType), true); + } + getManagerForCurrentUser() { + return o.getConnectedUser().isOAuthClient ? a.oAuthClientManager : s.userManager; + } + getManagerForUserWhoAcknowledged() { + return this.acknowledgementUserIsOAuthClient ? a.oAuthClientManager : s.userManager; + } + updateDependencies() { + this.acknowledgementUserId ? (l.registerNonDependencyValidationItem(this, "acknowledgementUser", this.acknowledgementUserDisplayName, this.acknowledgementUserId, this.getManagerForUserWhoAcknowledged().dependencyType.value, this.parentFlow), this.acknowledgementUser.configListManager = this.getManagerForUserWhoAcknowledged()) : this.acknowledgementUser.configListManager = this.getManagerForCurrentUser(), super.updateDependencies(); + } + static get managedProperties() { + return [{ property: "acknowledgementUser", createDetails: c.NetworkBasedActionProperty.createCreateDetails("acknowledgementUserId", "acknowledgementUserDisplayName", s.userManager, _.secureData.extractWarningValidationError, _.secureData.extractWarningValidationError, null), yamlOptions: h.createYamlOptions("acknowledgementUser", (e3) => e3.setPropertyName("acknowledgeSecureUsage").setShouldBeBoolIndicatingIfSet(true)) }]; + } + validate(e3) { + super.validate(e3); + let t3 = e3.getIssues(this.id); + t3 && 0 !== t3.errors.length || r2.default.find(this.variables.items, function(e4) { + return !e4.expression.consumesSecureData; + }) && e3.addWarning(this, _.secureData.notUsingSecureDataWarning), t3 = e3.getIssues(this.id), t3 && 0 !== t3.errors.length || this.acknowledgementUserId || e3.addError(this, _.secureData.extractWarningValidationError); + } + } + h.info = d.default.createActionInfo({ actionClass: h, actionIsAlwaysSecure: true, canBeInTask: true, canBeTreeNode: false, helpTopic: u.helpTopics.actions.extractSecureData, modelClass: i2(24215), name: _.actions.extractSecureData, scriptingName: "ArchActionExtractSecureData" }), t2.A = h; + }, 51913: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(93523)), r2 = i2(30801); + class o extends n2.default { + constructor(e3) { + super(e3); + } + get _actionTypeId() { + return r2.getJourneySessionActionType; + } + get displayTypeName() { + return this._scriptingName; + } + get isArchActionGetJourneySession() { + return true; + } + get findResult() { + return this._findResult; + } + } + t2.default = o; + }, 51940: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.ObjectMatchInfo = void 0; + const n2 = i2(31635), r2 = n2.__importDefault(i2(92140)), o = i2(55299), a = i2(2800), s = n2.__importStar(i2(66381)), l = n2.__importStar(i2(78249)); + class u extends o.BaseClass { + constructor() { + super(), this._objectMismatchValues = []; + } + _addMismatchType(e3, t3, i3) { + this._objectMismatchValues.push(new a.ObjectValueMismatch(e3, t3, i3)); + } + addCompareToIncompatible() { + this._addMismatchType(l.MISMATCH_INCOMPATIBLE); + } + addDataTypeMismatch(e3, t3) { + this._addMismatchType(l.MISMATCH_DATA_TYPE, e3, t3); + } + addInputMismatch(e3, t3) { + this._addMismatchType(l.MISMATCH_INPUT, true === e3, true === t3); + } + addNameMismatch(e3, t3) { + this._addMismatchType(l.MISMATCH_NAME, e3, t3); + } + addOutputMismatch(e3, t3, i3, n3) { + this._addMismatchType(l.MISMATCH_OUTPUT, true === i3, true === n3); + } + get compareObject() { + return this._compareObject; + } + get compareToObject() { + return this._compareToObject; + } + get className() { + return "MismatchInfo"; + } + get mismatchDisplayString() { + const e3 = []; + return r2.default.each(this._objectMismatchValues, (t3) => { + e3.push(t3.displayString); + }), s.getSentenceListDisplayString(e3); + } + get hasMismatches() { + return this._objectMismatchValues.length > 0; + } + get isObjectMatchInfo() { + return true; + } + get mismatchValues() { + return this._objectMismatchValues; + } + setComparisonObjects(e3, t3) { + this._compareObject = e3, this._compareToObject = t3; + } + } + t2.ObjectMatchInfo = u; + }, 51953: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importDefault(i2(92140)), o = n2.__importDefault(i2(67336)); + class a extends o.default { + constructor(e3) { + super(e3), this.isArchValidationIssue = true, this._archObject = this.coreFactory.createArchWrapper(e3.item), this._errors = e3.errors && e3.errors.length > 0 ? e3.errors : void 0, this._rollupErrors = e3.rollupErrors && e3.rollupErrors.length > 0 ? e3.rollupErrors : void 0, this._rollupWarnings = e3.rollupWarnings && e3.rollupWarnings.length > 0 ? e3.rollupWarnings : void 0, this._warnings = e3.warnings && e3.warnings.length > 0 ? e3.warnings : void 0; + } + get displayTypeName() { + return "ArchValidationIssue"; + } + get logStr() { + const e3 = []; + return this._appendLogStrType(e3, this.displayTypeName), this.errorCount > 0 && this._appendLogStrErrorCount(e3, this.errorCount), this.warningCount > 0 && this._appendLogStrWarningCount(e3, this.warningCount), this.rollupErrorCount > 0 && this._appendLogStrRollupErrorCount(e3, this.rollupErrorCount), this.rollupWarningCount > 0 && this._appendLogStrRollupWarningCount(e3, this.rollupWarningCount), this._appendLogStrArchObject(e3, this._archObject ? this._archObject.logStr : "< no validation object>"), this._createLogStrFromParts(e3); + } + get archObject() { + return (function(e3) { + let t3 = e3; + for (; ; ) { + const e4 = t3; + if (!e4.isArchBaseValue || !e4.parent) return t3; + t3 = e4.parent; + } + })(this._archObject); + } + get errorCount() { + return this._errors ? this._errors.length : 0; + } + get errors() { + var e3; + return null === (e3 = this._errors) || void 0 === e3 ? void 0 : e3.map((e4) => e4.text); + } + get hasErrors() { + return this.errorCount > 0 || this.rollupErrorCount > 0; + } + get hasNoErrors() { + return !this.hasErrors; + } + get hasErrorsOrWarnings() { + return this.hasErrors || this.hasWarnings; + } + get hasNoErrorsOrWarnings() { + return !this.hasErrorsOrWarnings; + } + get hasNoWarnings() { + return !this.hasWarnings; + } + get hasWarnings() { + return this.warningCount > 0 || this.rollupWarningCount > 0; + } + hasErrorString(e3) { + return this._checkItemIsValidLiteralString(this._infoParm("errorString", "hasErrorString"), e3), void 0 !== r2.default.find(this._errors, function(t3) { + return t3.text === e3; + }) || void 0 !== r2.default.find(this._rollupErrors, function(t3) { + return t3 === e3; + }); + } + hasWarningString(e3) { + return this._checkItemIsValidLiteralString(this._infoParm("warningString", "hasWarningString"), e3), void 0 !== r2.default.find(this._warnings, function(t3) { + return t3.text === e3; + }) || void 0 !== r2.default.find(this._rollupWarnings, function(t3) { + return t3 === e3; + }); + } + getSummaryStr(e3, t3) { + t3 || (t3 = ""); + const i3 = []; + return i3.push(t3 + this.logStr), r2.default.each(this.errors, function(e4) { + i3.push(t3 + " Error: " + e4 ? e4 : "unknown"); + }), r2.default.each(this.warnings, function(e4) { + i3.push(t3 + " Warning: " + e4 ? e4 : "unknown"); + }), r2.default.each(this.rollupErrors, function(e4) { + i3.push(t3 + " Rollup Error: " + e4 ? e4 : "unknown"); + }), r2.default.each(this.rollupWarnings, function(e4) { + i3.push(t3 + " Rollup Warning: " + e4 ? e4 : "unknown"); + }), i3.join("\n"); + } + get rollupErrorCount() { + return this._rollupErrors ? this._rollupErrors.length : 0; + } + get rollupErrors() { + return this._rollupErrors; + } + get rollupWarningCount() { + return this._rollupWarnings ? this._rollupWarnings.length : 0; + } + get rollupWarnings() { + return this._rollupWarnings; + } + get warningCount() { + return this._warnings ? this._warnings.length : 0; + } + get warnings() { + var e3; + return null === (e3 = this._warnings) || void 0 === e3 ? void 0 : e3.map((e4) => e4.text); + } + } + t2.default = a; + }, 51971: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importStar(i2(81116)), o = i2(14394), a = n2.__importStar(i2(17498)), s = i2(12179), l = n2.__importDefault(i2(68460)), u = i2(20374), d = i2(47957); + class c extends l.default { + constructor() { + super(...arguments), this.modelPropertyName = "outboundCallSettings"; + } + get id() { + return "outboundSettings"; + } + get className() { + return "OutboundCallSettingsViewModel"; + } + get helpTopic() { + return s.helpTopics.treeNodes.outboundCallSettings; + } + getConfiguration(e3, t3) { + if (null == t3 ? void 0 : t3.isForFlowYaml) return { contactList: this.contactList.getConfiguration(e3, t3), wrapupCode: this.defaultWrapupCode.getConfiguration(e3, t3) }; + e3.outboundCallSettings || (e3.outboundCallSettings = new u()), e3.outboundCallSettings.contactList = this.contactList.getConfiguration(e3, t3), e3.outboundCallSettings.defaultWrapupCode = this.defaultWrapupCode.getConfiguration(e3, t3); + } + getDisplayName() { + return d.outboundCallSettings.treeLabel; + } + get isOutboundCallSettingsNode() { + return true; + } + loadConfiguration(e3) { + this.contactList = e3.outboundCallSettings ? r2.expression(this.parentFlow, this, e3.outboundCallSettings.contactList, d.expression.contactList, o.globalTypes.contactList, null, o.globalTypes.contactList.createExpressionOptionClass().setAsInput(true).setIninTestingField("outboundSettings-contactList")) : this.contactList ? this.contactList : r2.expression(this.parentFlow, this, null, d.expression.contactList, o.globalTypes.contactList, null, o.globalTypes.contactList.createExpressionOptionClass().setAsInput(true).setIninTestingField("outboundSettings-contactList")), this.defaultWrapupCode = e3.outboundCallSettings ? r2.expression(this.parentFlow, this, e3.outboundCallSettings.defaultWrapupCode, d.outboundCallSettings.defaultWrapupCodeLabel, o.globalTypes.wrapupCode, null, o.globalTypes.wrapupCode.createExpressionOptionClass().setAsInput(true).setIninTestingField("outboundSettings-wrapupCode")) : this.defaultWrapupCode ? this.defaultWrapupCode : r2.expression(this.parentFlow, this, null, d.outboundCallSettings.defaultWrapupCodeLabel, o.globalTypes.wrapupCode, null, o.globalTypes.wrapupCode.createExpressionOptionClass().setAsInput(true).setIninTestingField("outboundSettings-wrapupCode")); + } + loadSettings(e3, t3) { + this.contactList = r2.expression(this.parentFlow, this, null, d.expression.contactList, o.globalTypes.contactList, null, o.globalTypes.contactList.createExpressionOptionClass().setAsInput(true)), this.contactList.update(e3.name, e3.id), this.defaultWrapupCode = r2.expression(this.parentFlow, this, null, d.outboundCallSettings.defaultWrapupCodeLabel, o.globalTypes.wrapupCode, null, o.globalTypes.contactList.createExpressionOptionClass().setAsInput(true)), this.defaultWrapupCode.update(t3.name, t3.id); + } + get nodeGuxIcon() { + return "fa/gears-regular"; + } + search(e3) { + e3.addToQueue(this.contactList), e3.addToQueue(this.defaultWrapupCode); + } + updateDependencies() { + this.contactList && a.registerExpression(this.contactList), this.defaultWrapupCode && a.registerExpression(this.defaultWrapupCode); + } + validate(e3) { + this.contactList.validate(e3), this.defaultWrapupCode.validate(e3); + } + get wrappedYamlName() { + return "settingsOutboundCall"; + } + _destroy() { + super._destroy(), this.contactList && this.contactList.destroy(), this.defaultWrapupCode && this.defaultWrapupCode.destroy(); + } + _initializeDesignTime() { + super._initializeDesignTime(), this.contactList.initializeDesignTime(), this.defaultWrapupCode.initializeDesignTime(); + } + } + t2.default = c; + }, 51978: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = i2(30801), o = n2.__importDefault(i2(56549)), a = n2.__importDefault(i2(94225)), s = n2.__importDefault(i2(65485)), { messagingTemplateResponseManager: l } = i2(25965), { responseLibraryManager: u } = i2(71528); + class d extends s.default { + constructor(e3) { + super(e3); + } + get _actionTypeId() { + return r2.sendDigitalContentActionType; + } + get displayTypeName() { + return this._scriptingName; + } + get isArchActionSendDigitalContent() { + return true; + } + get libraryName() { + var e3; + return null === (e3 = this._getCoreViewModel().responseLibrary) || void 0 === e3 ? void 0 : e3.name; + } + get messagingTemplateName() { + return this._getCoreViewModel().messagingTemplateName; + } + get valueSelectionResult() { + return this.coreFactory.createArchWrapper(this._getCoreViewModel().selectionResult); + } + get messagingTemplateSubstitutions() { + return this._messagingTemplateSubstitutions || (this._messagingTemplateSubstitutions = this.coreFactory.createArchBaseValueContainer(this._getCoreViewModel().substitutions)), this._messagingTemplateSubstitutions; + } + get messagingTemplateType() { + return this.coreFactory.createArchWrapper(this._getCoreViewModel().messagingTemplateType); + } + _clearResponseSubstitutions() { + this._messagingTemplateSubstitutions = void 0; + } + setMessagingTemplateByIdAsync(e3, t3) { + return n2.__awaiter(this, void 0, void 0, function* () { + this._checkItemIsValidLiteralString(this._infoParm("messagingTemplateId", "setMessagingTemplateByIdAsync"), e3, false), this._checkItemIsValidFunction(this._infoParm("callbackFunction", "setMessagingTemplateByIdAsync"), t3, true); + const i3 = yield o.default.findItemByIdAsync(l, e3, "messaging template"); + return this.logNote("found the messaging template named '" + i3.name + "' by the id '" + e3 + "'"), yield this._coreActionViewModel.setMessagingTemplateDataAsync(i3), this._clearResponseSubstitutions(), a.default.executeCallback(this, "setMessagingTemplateByIdAsync", t3, this); + }); + } + setMessagingTemplateByNameAsync(e3, t3, i3) { + return n2.__awaiter(this, void 0, void 0, function* () { + let n3; + this._checkItemIsValidLiteralString(this._infoParm("messagingTemplateName", "setMessagingTemplateByNameAsync"), e3), this._checkItemIsValidLiteralString(this._infoParm("libraryName", "setMessagingTemplateByNameAsync"), t3, true), this._checkItemIsValidFunction(this._infoParm("callbackFunction", "setMessagingTemplateByNameAsync"), i3, true), (null == t3 ? void 0 : t3.length) && (n3 = (e4) => e4.libraries && e4.libraries.some((e5) => e5.name === t3)); + const r3 = yield o.default.findItemByValueAsync(l, e3, "messaging template", null, null, n3, { queryPhrase: e3 }); + return this.logNote("found the messaging template with an Id of '" + r3.id + "' by the messaging template name '" + r3.name + "'"), yield this._coreActionViewModel.setMessagingTemplateDataAsync(r3), this._clearResponseSubstitutions(), a.default.executeCallback(this, "setMessagingTemplateByNameAsync", i3, this); + }); + } + setResponseLibraryByNameAsync(e3, t3) { + return n2.__awaiter(this, void 0, void 0, function* () { + this._checkItemIsValidLiteralString(this._infoParm("libraryName", "setResponseLibraryByNameAsync"), e3, false), this._checkItemIsValidFunction(this._infoParm("callbackFunction", "setResponseLibraryByNameAsync"), t3, true); + const i3 = yield o.default.findItemByValueAsync(u, e3, "response library", "name"); + return this.logNote("found the response library with an Id of '" + i3.id + "' by the library name '" + i3.name + "'"), this._coreActionViewModel.library.setValue(i3), a.default.executeCallback(this, "setResponseLibraryByNameAsync", t3, this); + }); + } + setResponseLibraryByIdAsync(e3, t3) { + return n2.__awaiter(this, void 0, void 0, function* () { + this._checkItemIsValidLiteralString(this._infoParm("responseLibraryId", "setResponseLibraryByIdAsync"), e3, false), this._checkItemIsValidFunction(this._infoParm("callbackFunction", "setResponseLibraryByIdAsync"), t3, true); + const i3 = yield o.default.findItemByIdAsync(u, e3, "response library"); + return this.logNote("found the response library named '" + i3.name + "' by the library Id '" + i3.id + "'"), this._coreActionViewModel.library.setValue(i3), a.default.executeCallback(this, "setResponseLibraryByIdAsync", t3, this); + }); + } + setSelectionResultVariable(e3) { + this._checkItemIsValidLiteralStringOrArchVariableString(this._infoParm("selectionResultVariable", "setSelectionResultVariable"), e3, false), this.valueSelectionResult.setVariable(e3); + } + } + t2.default = d; + }, 51998: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.getScriptingTemplate = function(e3, t3, i3, n3) { + const a2 = l.default.getDefinitionForFlowType(e3); + if (!t3 && a2.languagesSupportDefaultLanguage) { + const t4 = `no flow default language was provided, but the flow type ${e3} definition says it needs a default language.`; + throw v.error(t4), t4; + } + switch (e3) { + case r2.flowTypes.flowTypeVoicemail: + case r2.flowTypes.flowTypeInboundCall: + case r2.flowTypes.flowTypeOutboundCall: + case r2.flowTypes.flowTypeSecureCall: + return (0, c.default)(t3, i3, e3); + case r2.flowTypes.flowTypeInQueueCall: + return (0, A.default)(t3, i3, true); + case r2.flowTypes.flowTypeInQueueEmail: + case r2.flowTypes.flowTypeInQueueShortMessage: + return (0, S.default)(t3, i3, s.default.EndInQueueState); + case r2.flowTypes.flowTypeInboundChat: + case r2.flowTypes.flowTypeInboundEmail: + case r2.flowTypes.flowTypeInboundShortMessage: + return (0, u.default)(t3, i3, s.default.Disconnect); + case r2.flowTypes.flowTypeBot: + case r2.flowTypes.flowTypeDigitalBot: + return (0, d.default)(e3, t3, i3); + case r2.flowTypes.flowTypeSurveyInvite: + return (0, u.default)(t3, i3); + case r2.flowTypes.flowTypeEmailSend: + return (0, T.default)(t3, i3); + case r2.flowTypes.flowTypeWorkflow: + return (0, u.default)(t3, i3, s.default.EndWorkflow); + case r2.flowTypes.flowTypeWorkitem: + return (0, u.default)(t3, i3, s.default.EndFlow); + case r2.flowTypes.flowTypeCommonModule: + return (0, f.default)(t3, n3); + case r2.flowTypes.flowTypeVoice: + return (0, p.default)(t3, i3); + case r2.flowTypes.flowTypeVoiceSurvey: + return (0, _.default)(t3, i3); + default: + console.error((0, o.sprintf)("Type not supported for scripting template: %s", e3)); + } + }, t2.getDefaultTemplate = function(e3, t3, i3, n3) { + switch (t3 = t3 || "en-US", e3) { + case r2.flowTypes.flowTypeInboundCall: + return (0, y.default)(t3, i3); + case r2.flowTypes.flowTypeInboundChat: + case r2.flowTypes.flowTypeInboundEmail: + case r2.flowTypes.flowTypeInboundShortMessage: + return (0, h.default)(t3, i3, s.default.Queue); + case r2.flowTypes.flowTypeOutboundCall: + return (0, N.default)(t3, i3); + case r2.flowTypes.flowTypeInQueueCall: + return (0, A.default)(t3, i3, false); + case r2.flowTypes.flowTypeInQueueEmail: + case r2.flowTypes.flowTypeInQueueShortMessage: + return (0, S.default)(t3, i3, s.default.EndInQueueState); + case r2.flowTypes.flowTypeSecureCall: + return (0, O.default)(t3, i3, !n3 || n3.secureCallAgentInitiated); + case r2.flowTypes.flowTypeBot: + case r2.flowTypes.flowTypeDigitalBot: + return (0, d.default)(e3, t3, i3); + case r2.flowTypes.flowTypeSurveyInvite: + return (0, u.default)(t3, i3); + case r2.flowTypes.flowTypeEmailSend: + return (0, T.default)(t3, i3); + case r2.flowTypes.flowTypeWorkflow: + return (0, m.default)(t3, i3, s.default.EndWorkflow); + case r2.flowTypes.flowTypeWorkitem: + return (0, g.default)(t3, i3, s.default.EndFlow); + case r2.flowTypes.flowTypeCommonModule: + return (0, f.default)(t3, n3 && n3.destinationFlowTypes); + case r2.flowTypes.flowTypeVoicemail: + return (0, I.default)(t3, i3); + case r2.flowTypes.flowTypeVoice: + return (0, p.default)(t3, i3); + case r2.flowTypes.flowTypeVoiceSurvey: + return (0, _.default)(t3, i3); + default: + console.error((0, o.sprintf)("Type not supported for default template: %s", e3)); + } + }; + const n2 = i2(31635), r2 = i2(96618), o = i2(17604), a = n2.__importStar(i2(24032)), s = n2.__importDefault(i2(15244)), l = n2.__importDefault(i2(98114)), u = n2.__importDefault(i2(42193)), d = n2.__importDefault(i2(41366)), c = n2.__importDefault(i2(64499)), p = n2.__importDefault(i2(11749)), _ = n2.__importDefault(i2(76063)), h = n2.__importDefault(i2(48444)), m = n2.__importDefault(i2(37104)), g = n2.__importDefault(i2(27816)), f = n2.__importDefault(i2(67121)), T = n2.__importDefault(i2(61132)), y = n2.__importDefault(i2(68631)), S = n2.__importDefault(i2(80782)), A = n2.__importDefault(i2(3692)), N = n2.__importDefault(i2(91048)), O = n2.__importDefault(i2(34621)), I = n2.__importDefault(i2(24739)), v = a.getTopic("FlowTemplates"); + }, 52023: (e2, t2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.PromiseDefer = void 0, t2.PromiseDefer = class { + constructor() { + this._isPending = true, this._isRejected = false, this.resolve = (e3) => { + this._isPending = false, this._resolve(e3); + }, this.reject = (e3) => { + this._isPending = false, this._isRejected = true, this._reject(e3); + }, this._promise = new Promise((e3, t3) => { + this._resolve = e3, this._reject = t3; + }); + } + get promise() { + return this._promise; + } + isPending() { + return this._isPending; + } + isFulfilled() { + return !this._isPending && !this._isRejected; + } + isRejected() { + return this._isRejected; + } + }; + }, 52030: (e2, t2, i2) => { + const n2 = i2(28730), { taskActionActionType: r2 } = i2(30801); + function o() { + this.taskReference = void 0, o.baseConstructor.apply(this, arguments); + } + n2.extend(o, r2, true), Object.defineProperties(o.prototype, { pasteResolveOldToNewValues: { value: function(e3) { + o._super.pasteResolveOldToNewValues.apply(this, arguments), this.taskReference = e3.pasteResolveOldIdToNewId(this.taskReference), this.name = e3.pasteResolveOldTaskNameToNewTaskName(this.name); + } } }), e2.exports = o; + }, 52052: (e2, t2, i2) => { + "use strict"; + var n2, r2, o; + Object.defineProperty(t2, "__esModule", { value: true }); + const a = i2(31635), s = i2(30801), l = a.__importDefault(i2(21345)); + class u extends l.default { + constructor(e3) { + super(e3), n2.set(this, void 0), r2.set(this, void 0), o.set(this, void 0), a.__classPrivateFieldSet(this, n2, this.coreFactory.createArchWrapper(e3.dataToEncrypt), "f"), a.__classPrivateFieldSet(this, r2, this.coreFactory.createArchWrapper(e3.encryptedDataOutput), "f"), e3.errorBindings && a.__classPrivateFieldSet(this, o, this.coreFactory.createArchWrapper(e3.errorBindings), "f"); + } + get _actionTypeId() { + return s.encryptDataActionType; + } + get displayTypeName() { + return this._scriptingName; + } + get isArchActionEncryptData() { + return true; + } + get dataToEncrypt() { + return a.__classPrivateFieldGet(this, n2, "f"); + } + get encryptedData() { + return a.__classPrivateFieldGet(this, r2, "f"); + } + get encryptDataOutputsFailure() { + return a.__classPrivateFieldGet(this, o, "f"); + } + } + n2 = /* @__PURE__ */ new WeakMap(), r2 = /* @__PURE__ */ new WeakMap(), o = /* @__PURE__ */ new WeakMap(), t2.default = u; + }, 52088: (e2, t2, i2) => { + const n2 = i2(58380), r2 = i2(1115); + e2.exports = { createNameChangedEventSinkObject: function(e3) { + return n2.createEventSinkObject("nameChanged", e3, () => { + e3.initializeDesignTimeCalled && r2.validateNode(e3, false); + }); + } }; + }, 52096: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importDefault(i2(15745)), o = n2.__importDefault(i2(57165)), a = n2.__importDefault(i2(72883)), s = n2.__importDefault(i2(56819)), l = n2.__importDefault(i2(32829)), u = n2.__importDefault(i2(36243)), d = n2.__importDefault(i2(73697)), c = n2.__importDefault(i2(47673)), p = n2.__importDefault(i2(72188)), _ = n2.__importDefault(i2(9292)), h = n2.__importDefault(i2(88051)), m = n2.__importDefault(i2(61203)), g = n2.__importDefault(i2(34014)), f = n2.__importDefault(i2(19784)), T = n2.__importDefault(i2(67346)), y = n2.__importDefault(i2(49384)), S = n2.__importDefault(i2(50097)), A = { ArchMenu: r2.default, ArchMenuDialByExtension: o.default, ArchMenuDisconnect: a.default, ArchMenuJumpToMenu: s.default, ArchMenuJumpToTask: l.default, ArchMenuPreviousMenu: u.default, ArchMenuRepeatMenu: d.default, ArchMenuReturnToAgent: c.default, ArchMenuSubMenu: p.default, ArchMenuTask: _.default, ArchMenuTransferToAcd: h.default, ArchMenuTransferToFlow: m.default, ArchMenuTransferToFlowSecure: g.default, ArchMenuTransferToGroup: f.default, ArchMenuTransferToNumber: T.default, ArchMenuTransferToUser: y.default, ArchMenuTransferToVoicemail: S.default }; + t2.default = A; + }, 52124: (e2, t2, i2) => { + const n2 = i2(10798), r2 = i2(4648).default, o = i2(36019).default, a = i2(92737); + function s() { + } + s.prototype.getScripts = function(e3) { + const t3 = n2.isFeatureAvailable(r2.divisionedScriptsV2) ? a.getScriptsDivisionView : a.getScripts; + return o.build(t3).queryParams(e3.getSearchQueryParams()).call(); + }, s.prototype.getScript = function(e3) { + const t3 = n2.isFeatureAvailable(r2.divisionedScriptsV2) ? a.getScriptDivisionView : a.getScript; + return o.build(t3).templateParams({ id: e3 }).call().then((e4) => e4.entities && e4.entities[0] ? e4.entities[0] : e4); + }, s.prototype.getScript.api = a.getScript, s.prototype.getScriptsForFeature = function(e3, t3) { + const i3 = n2.isFeatureAvailable(r2.divisionedScriptsV2) ? a.getScriptsForFeatureDivisionView : a.getScriptsForFeature; + return o.build(i3).templateParams({ feature: e3 }).queryParams(t3.getSearchQueryParams()).call(); + }, s.prototype.getScriptsForFeature.api = a.getScriptsForFeatureDivisionView, s.prototype.getScriptVariables = function(e3) { + const t3 = n2.isFeatureAvailable(r2.divisionedScriptsV2) ? a.getScriptVariablesDivisionView : a.getScriptVariables; + return o.build(t3).templateParams({ id: e3 }).call(); + }, e2.exports = new s(); + }, 52164: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.BasicRequest = void 0; + const n2 = i2(31635).__importDefault(i2(92140)), r2 = i2(55299), o = i2(52023), a = i2(243), s = i2(27283), l = [i2(86580).requestHandler]; + class u extends r2.BaseClass { + constructor(e3, t3) { + super(), this.deferredResult = new o.PromiseDefer(), this.headers = void 0, this.sendTime = void 0, this.status = 0, this.statusText = "", this.url = "", this.info = e3, this.addDefaultHeaders(t3); + } + get promise() { + return this.deferredResult.promise; + } + _generateUrl() { + this.url || (this.url = (0, a.generateRequestUrl)(this.info.protocol, this.info.urlTemplate, this._templateParams, this._queryParams)); + } + addDefaultHeaders(e3) { + "POST" === this.info.method || "PUT" === this.info.method || "PATCH" === this.info.method ? this.headers = { Accept: "application/json", "Content-Type": "application/json" } : this.headers = { Accept: "*/*" }; + } + call() { + return s.queuedNetworkCallService.enqueueNetworkCall(this); + } + content(e3) { + return this._content = e3, this; + } + getParameters() { + return { content: this._content, template: this._templateParams, query: this._queryParams }; + } + getResponse() { + if (this._requestResult) return this._requestResult; + const e3 = this.parseResponse(); + if (this.info.DataContract) if (this.info.options.includeStatusOnSuccess || this.info.options.includeHeaders) this._requestResult = { response: new this.info.DataContract(e3) }, this.info.options.includeStatusOnSuccess && (this._requestResult.status = this.status, this._requestResult.statusText = this.statusText), this.info.options.includeHeaders && (this._requestResult.headers = this.headers); + else { + if ("raw-file" === this.headers) return e3; + this._requestResult = new this.info.DataContract(e3); + } + return this._requestResult || e3; + } + queryParams(e3) { + return this._queryParams = e3, this; + } + routeEvent(e3, t3) { + "load" === e3 && (e3 = t3.status >= 200 && t3.status < 300 ? "success" : "error"), n2.default.find(l, function(i3) { + return i3(e3, t3); + }); + } + shouldIgnore(e3) { + return !!this.info.options.codesToIgnore && n2.default.contains(this.info.options.codesToIgnore, e3); + } + templateParams(e3) { + return this._templateParams = e3, this; + } + } + t2.BasicRequest = u, u.handlers = l; + }, 52179: (e2) => { + e2.exports = { askCommon: { invalidInputReceived: "Ce n'est pas valide.", noInputReceived: "Je n'ai re\xE7u aucune entr\xE9e." }, askForBoolean: { noInput: 'Dites "oui" pour continuer ou "non" pour quitter.', noMatch: 'R\xE9pondez par "Oui" ou "Non". Voulez-vous continuer ?', question: "Voulez-vous continuer ?", noInputDigitalBot: 'Saisissez "Yes" si vous souhaitez continuer ou "No" si vous ne le souhaitez pas.', noMatchDigitalBot: 'Saisissez "Yes" ou "No". Souhaitez-vous continuer\xA0?' }, askForIntent: { noInput: 'Dites simplement une phrase courte d\xE9crivant votre requ\xEAte, p. ex. "Check my account balance"', noMatch: "Dites-moi de nouveau ce que vous souhaitez faire.", question: "Que souhaitez-vous faire ?", noInputDigitalBot: 'Saisissez une courte phrase d\xE9crivant votre requ\xEAte. Par exemple, "Check my account balance"' }, askForSlot: { askFor: "Demander %1$s", noInput: "Dites ou entrez (sp\xE9cifier le nom de l'emplacement ici).", noInputWithSlot: "Dites ou entrez %1$s.", noMatch: "Donnez de nouveau (entrer le nom de l'emplacement ici).", noMatchWithSlot: "Donnez-moi %1$s de nouveau.", question: "Qu'est-ce que (entrer le nom de l'emplacement ici) ?", questionWithSlot: "Qu'est-ce que %1$s ?", pleaseEnterSlotNameHere: "(entrer le nom de l'emplacement ici)", noInputDigitalBot: "Saisissez (indiquez votre nom d'emplacement ici).", noInputWithSlotDigitalBot: "Saisissez %1$s.", continuationPromptWithSlot: "J'ai {{Slot.%1$s}} pour le moment. Continuez" }, askForNextSlot: { noInput: `Dites "oui" si vous avez une autre demande ou "non" pour terminer l'appel.`, noMatch: 'Dites "Oui" si vous avez une autre demande ou "Non" pour terminer la session.', question: "Y a-t-il autre chose que je puisse faire pour vous\xA0?", noInputDigitalBot: 'Saisissez "Yes" si vous avez une autre requ\xEAte ou "No" pour terminer la session.', noMatchDigitalBot: 'Saisissez "Yes" si vous avez une autre requ\xEAte ou "No" pour terminer la session.' }, askForPayment: { noInputDigitalBot: "Fournissez vos informations de paiement pour continuer.", noMatchDigitalBot: "Je n'ai pas compris votre r\xE9ponse. R\xE9essayez." }, askForAuthentication: { noInputDigitalBot: "Fournissez vos informations d'authentification pour continuer.", noMatchDigitalBot: "Je n'ai pas compris votre r\xE9ponse. R\xE9essayez." }, askSurveyQuestion: { notApplicable: "Non applicable", surveyAnswerOptionSequence: "Appuyez sur %1$s pour %2$s", surveyAnswerNotApplicableSequence: "Appuyez sur \xC9toile pour Non applicable.", surveyAnswerNotApplicableWithQuestionSequence: "%1$s. Appuyez sur \xC9toile pour Non applicable.", voiceSurveyNoInputText: "R\xE9pondez \xE0 la question.", voiceSurveyNoMatchText: "Je n'ai pas compris." }, commonModule: { exitCommonModule: "Quitter le module commun" }, form: { noInputDigitalBot: "Renseignez le formulaire pour continuer.", noMatchDigitalBot: "Renseignez le formulaire pour continuer." }, messagingTemplate: { noInputDigitalBot: "S\xE9lectionnez une des options disponibles.", noMatchDigitalBot: "S\xE9lectionnez une des options disponibles." }, knowledgeSettings: { knowledgeAnswerHighlightFlowProgressionDefault: "Continuer", knowledgeAnswerHighlightFullArticleDefault: "Afficher l'article complet", knowledgeInitialResponseMulti: "Pour m'aider \xE0 mieux comprendre votre objectif, choisissez un num\xE9ro dans la liste suivante\xA0:", knowledgeInitialResponseMultiRetry: "Choisissez un num\xE9ro, par exemple '1'.\nVoici la liste des options\xA0:", knowledgeNoMatch: "Aucun(e)", knowledgeConfirmation: "Est-ce la r\xE9ponse \xE0 votre question\xA0?", knowledgeFollowup: "J'esp\xE8re que j'ai r\xE9pondu \xE0 votre question. Vous pouvez demander quoi que ce soit d'autre que vous souhaitiez savoir." }, noOverlay: { intent: { intentConfirmationStr1: "Voulez-vous vraiment", intentConfirmationStr2: "Est-ce correct ?" }, youSaid: { youSaidConfirmationStr1: "Vous avez dit", youSaidConfirmationStr2: "Est-ce correct ?", youSaidConfirmationStr1DigitalBot: "Vous avez saisi" }, noInput: { noInputStr1: "Dites ou entrez", noInputStr1DigitalBot: "Saisissez" }, noMatch: { noMatchStr1: "Donnez-moi" }, whatIs: { whatIsQuestionStr1: "Qu'est-ce", whatIsQuestionStr2: "?" }, iGotContinuation: { iGotContinuationStr1: "J'ai", iGotContinuationStr2: "pour le moment. Continuez" } }, defaultCallFlowOne: "Flux d'appel par d\xE9faut", errorHandlingAgentEscalationConfirmation: "Vous voulez parler \xE0 un conseiller, c'est exact ?", errorHandlingAgentEscalationHandover: "Merci de patienter pendant que je vous transf\xE8re \xE0 un agent.", errorHandlingErrorEventHandover: "Une erreur s'est produite. Merci de patienter pendant que je vous transf\xE8re \xE0 un agent.", errorHandlingErrorEventHandoverVoiceSurvey: "Une erreur s'est produite. Au revoir\xA0!", errorHandlingRecognitionEventHandover: "D\xE9sol\xE9, j'ai du mal \xE0 vous comprendre. Merci de patienter pendant que je vous transf\xE8re \xE0 un agent.", errorHandlingRecognitionEventHandoverVoiceSurvey: "Je n'arrive pas \xE0 vous comprendre. Toutes nos excuses. Au revoir\xA0!", errorHandlingTTS: "Une erreur s'est produite. Veuillez r\xE9essayer.", initialGreetingTTS: "Bonjour. Ceci est l'annonce initiale.", initialState: "Statut initial", initialBotState: "Bot par d\xE9faut", initialDigitalBotState: "Annonce d'accueil", initialSurveyBotState: "Bot d'enqu\xEAte", intentConfirmation: "Je pense que vous souhaitez %1$s. Est-ce correct ?", mainMenu: "Menu principal", mainMenuTTS: "Vous \xEAtes au menu principal. Faites le 9 pour vous d\xE9connecter.", mainTask: "T\xE2che", settingsConfirmationNoInputApology: "D\xE9sol\xE9, je n'ai pas entendu ce que vous avez dit. R\xE9pondez par oui ou non.", settingsConfirmationNoInputApologyDigitalBot: `D\xE9sol\xE9, je n'ai re\xE7u aucune entr\xE9e de votre part. Saisissez "Yes" ou "No".`, settingsConfirmationNoMatchApology: "D\xE9sol\xE9, r\xE9pondez par oui ou non.", settingsConfirmationNoMatchApologyDigitalBot: 'D\xE9sol\xE9, saisissez "Yes" ou "No".', settingsNoInputApology: "D\xE9sol\xE9, je n'ai pas entendu ce que vous avez dit.", settingsNoInputApologyDigitalBot: "D\xE9sol\xE9, je n'ai re\xE7u aucune entr\xE9e de votre part.", settingsEndOfSessionMessageDigitalBot: "Cela fait un moment que je n'ai pas eu de vos nouvelles. Je ferme donc ce chat. Si vous avez de nouveau besoin de mon aide, n'h\xE9sitez pas \xE0 revenir. Merci.", settingsNoMatchApology: "D\xE9sol\xE9 !", settingsNoToConfirmationApology: "C'est une erreur de ma part.", periodicStateName: "Statut r\xE9current" }; + }, 52357: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.allScriptsManager = t2.AllScriptsManager = void 0; + const n2 = i2(24032), r2 = i2(30801), o = i2(82915), a = i2(47957), s = i2(52124); + class l extends o.ScriptManager { + constructor() { + super("AllScriptsManager"), this.topic = (0, n2.getTopic)("AllScriptsManager"), this.apiCallList = s.getScripts, this.actionsForUsageSearch = [r2.screenPopActionType], this.dependencyContext = a.createCallback.script; + } + } + t2.AllScriptsManager = l, t2.allScriptsManager = new l(); + }, 52423: (e2, t2, i2) => { + "use strict"; + const n2 = i2(31635), r2 = n2.__importDefault(i2(92140)), o = i2(12179), a = n2.__importDefault(i2(5730)), s = n2.__importStar(i2(36781)), l = n2.__importStar(i2(10798)), u = n2.__importDefault(i2(4648)), d = i2(33381), c = i2(96618), p = i2(21305), _ = i2(80428), h = i2(49892), m = i2(81516), g = i2(66381), f = n2.__importDefault(i2(98114)), T = i2(24032), y = i2(99469), S = n2.__importDefault(i2(97891)), A = i2(87870), N = n2.__importStar(i2(35711)), O = n2.__importStar(i2(89134)), I = n2.__importStar(i2(1115)), v = i2(17604), C = i2(12729), b = i2(47957), E = (0, v.sprintf)(b.errors.invalidFlowTypeCombinationError, b.actions.setPostFlow, (0, g.getListDisplayString)([b.flow.types.inboundCall, b.flow.types.outboundCall, b.flow.types.inQueueCall, b.flow.types.inboundShortMessage], void 0, void 0, true)); + class R extends a.default { + constructor(e3, t3) { + var i3; + super(e3.parentFlow, e3), t3 && this._loadModel(t3), this.topic = (0, T.getTopic)("SetPostFlowAction").withContext("parentFlowId", null === (i3 = null == e3 ? void 0 : e3.topParentFlow) || void 0 === i3 ? void 0 : i3.id); + } + static get managedProperties() { + return [{ createDetails: A.NoteActionProperty.createCreateDetails(E, "error", "commonModuleNote"), property: "commonModuleNote", options: h.ExpressionTypelessOptions.create((e3) => e3.setUiPropertyOrder(1)), yamlOptions: R.createYamlOptions("commonModuleNote", (e3) => e3.setSkipProperty(true)) }, { label: b.setPostFlow.target, options: m.ExpressionTypeStringOptions.create((e3) => e3.setDescriptionInfo(b.setPostFlow.target, b.setPostFlow.targetTypeDescription).setAsInput().setIsOptional(false).setDefaultText(O.caller.id).setAllowModeLiteralOnly().setIninTestingField("setPostFlowAction-target").setUiPropertyOrder(2).facets.setTrim(true).setAllowableValues(O.allPostCallFlowTargetTypes).setAllowableValuePlaceholder(b.setPostFlow.targetPlaceholder)), optionsForSpecificFlowTypes: [{ flowTypes: [c.flowTypes.flowTypeInboundShortMessage], options: m.ExpressionTypeStringOptions.create((e3) => e3.setDescriptionInfo(b.setPostFlow.target, b.setPostFlow.targetTypeDescription).setAsInput().setIsOptional(false).setDefaultText(O.agent.id).setAllowModeLiteralOnly().setIninTestingField("setPostFlowAction-target").setUiPropertyOrder(2).setFeatureConfigName(u.default.postFlowDigitalFeature).facets.setTrim(true).setAllowableValues(O.allPostMessageFlowTargetTypes).setAllowableValuePlaceholder(b.setPostFlow.targetPlaceholder)) }], property: "target", type: _.expressionTypeNames.string }, { label: b.setPostFlow.actionType, options: m.ExpressionTypeStringOptions.create((e3) => e3.setDescriptionInfo(b.setPostFlow.actionType, b.setPostFlow.actionDescription).setAsInput().setIsOptional(false).setDefaultText(N.inboundCallFlow.id).setAllowModeLiteralOnly().setIninTestingField("setPostFlowAction-actionType").setUiPropertyOrder(3).setReadOnly(l.isFeatureUnavailable(u.default.voiceSurveyFlows)).facets.setAllowableValues(R.getPostFlowActionTypesForFlowType(c.flowTypes.flowTypeInboundCall)).setDisplayFacetsAsInputWhenOnlyOneValueAllowed(l.isFeatureUnavailable(u.default.voiceSurveyFlows))), property: "actionType", type: _.expressionTypeNames.string, yamlOptions: R.createYamlOptions("inboundCallFlow", (e3) => e3.setExportOrder(4)), optionsForSpecificFlowTypes: [{ flowTypes: [c.flowTypes.flowTypeInboundShortMessage], options: m.ExpressionTypeStringOptions.create((e3) => e3.setDescriptionInfo(b.setPostFlow.actionType, b.setPostFlow.actionDescription).setAsInput().setIsOptional(false).setDefaultText(N.inboundShortMessageFlow.id).setAllowModeLiteralOnly().setIninTestingField("setPostFlowAction-actionType").setFeatureConfigName(u.default.postFlowDigitalFeature).setUiPropertyOrder(4).facets.setAllowableValues(R.getPostFlowActionTypesForFlowType(c.flowTypes.flowTypeInboundShortMessage))) }] }, { createDetails: d.FlowReferenceProperty.createCreateDetails({ flowType: c.flowTypes.flowTypeInboundCall, showVersionSelection: false }), options: y.ManagedPropertyOptions.create((e3) => e3.setUiPropertyOrder(5).setIninTestingField("setPostFlowAction-inboundCallFlow").setCanCreateObjectInAction(true)), property: "inboundCallFlow" }, { createDetails: C.VoiceSurveyFlowReferenceProperty.createCreateDetails({ flowType: c.flowTypes.flowTypeVoiceSurvey, showVersionSelection: false, useFlowTypeSpecificModelProps: true }), options: y.ManagedPropertyOptions.create((e3) => e3.setUiPropertyOrder(6).setIninTestingField("setPostFlowAction-voiceSurveyFlow").setCanCreateObjectInAction(true)), property: "voiceSurveyFlow" }, { createDetails: d.FlowReferenceProperty.createCreateDetails({ flowType: c.flowTypes.flowTypeInboundShortMessage, showVersionSelection: false, useFlowTypeSpecificModelProps: true }), options: y.ManagedPropertyOptions.create((e3) => e3.setUiPropertyOrder(7).setIninTestingField("setPostFlowAction-inboundShortMessageFlow").setFeatureConfigName(u.default.postFlowDigitalFeature).setCanCreateObjectInAction(true)), property: "inboundShortMessageFlow" }, { label: b.transfer.invocationData, options: p.ExpressionTypeJsonOptions.create((e3) => e3.setDescriptionInfo(b.transfer.invocationData, b.setPostFlow.invocationDataDescription).setAsInput().setIninTestingField("setPostFlowAction-invocationData").setAllowModeExpression(true).setAllowModeLiteral(true).setAllowNotSet(true).setIsOptional(true)), property: "invocationData", type: _.expressionTypeNames.json }, { createDetails: A.NoteActionProperty.createCreateDetails(b.setPostFlow.postFlowActionClearedOnSecureTransfer, "warning", "setPostFlowNote"), property: "updateWarning", yamlOptions: R.createYamlOptions("updateWarning", (e3) => e3.setSkipProperty(true)) }]; + } + get flowId() { + var e3; + return null === (e3 = this.getTargetFlowRefProp()) || void 0 === e3 ? void 0 : e3.flowId; + } + get flowName() { + var e3; + return null === (e3 = this.getTargetFlowRefProp()) || void 0 === e3 ? void 0 : e3.flowName; + } + get flowType() { + return this.getTargetFlowTypeForActionType(); + } + initializeDesignTime() { + var e3; + super.initializeDesignTime(), this._updateOutOfService(), this.addAutoCleanedUpEventSinkWatch(s.expressionValueChanged, this.actionType, () => { + this._updateOutOfService(); + }), (null === (e3 = this.parentFlow) || void 0 === e3 ? void 0 : e3.isCommonModuleFlow) && this.parentFlow.commonModuleSettings && this.addAutoCleanedUpEventSinkWatch(s.destinationFlowTypesChanged, this.parentFlow.commonModuleSettings, () => { + this._updateOptionsForCommonModule(); + }), this._updateOptionsForCommonModule(); + } + _updateOptionsForCommonModule() { + var e3; + if (this._updateCommonModuleNoteVisibility(), !(null === (e3 = this.parentFlow) || void 0 === e3 ? void 0 : e3.isCommonModuleFlow)) return; + const t3 = this.parentFlow.destinationFlowTypes || [], i3 = this.parentFlow.destinationFlowTypesInclude(c.flowTypes.flowTypeInboundShortMessage); + 1 === t3.length && i3 ? (this.target && (this.target.options.facets.allowableValues = O.allPostMessageFlowTargetTypes, this.target.options.defaultText = O.agent.id, this.target.text = O.agent.id), this.actionType && (this.actionType.options.facets.allowableValues = [N.inboundShortMessageFlow], this.actionType.options.defaultText = N.inboundShortMessageFlow.id, this.actionType.text = N.inboundShortMessageFlow.id)) : (this.target && (this.target.options.facets.allowableValues = O.allPostCallFlowTargetTypes, this.target.options.defaultText = O.caller.id), this.actionType && (this.actionType.options.facets.allowableValues = l.isFeatureAvailable(u.default.voiceSurveyFlows) ? [N.inboundCallFlow, N.voiceSurveyFlow] : [N.inboundCallFlow], this.actionType.options.defaultText = N.inboundCallFlow.id)); + } + _updateOutOfService() { + let e3 = true, t3 = true, i3 = true, n3 = true, r3 = false, o2 = true; + switch (this.actionType.text) { + case N.inboundCallFlow.id: + e3 = false, n3 = false, o2 = false; + break; + case N.voiceSurveyFlow.id: + t3 = false, n3 = false, o2 = false; + break; + case N.inboundShortMessageFlow.id: + i3 = false, n3 = false; + } + this.inboundCallFlow.outOfService !== e3 && (this.inboundCallFlow.outOfService = e3, r3 = true), this.voiceSurveyFlow.outOfService !== t3 && (this.voiceSurveyFlow.outOfService = t3, r3 = true), this.inboundShortMessageFlow.outOfService !== i3 && (this.inboundShortMessageFlow.outOfService = i3, r3 = true), this.updateWarning.outOfService = o2, this.invocationData.outOfService !== n3 && (this.invocationData.outOfService = n3, r3 = true), r3 && I.validateAction(this, false, true); + } + postProcessYamlConfig(e3, t3, i3) { + e3.actionType = {}; + const n3 = this.actionType.text || N.inboundCallFlow.id, r3 = {}; + e3.actionType[n3] = r3, r3.targetFlow = e3[n3], e3.invocationData && (r3.invocationData = e3.invocationData, delete e3.invocationData), delete e3.inboundCallFlow, delete e3.voiceSurveyFlow, delete e3.inboundShortMessageFlow; + } + getTargetFlowRefProp() { + switch (this.actionType.text) { + case N.inboundCallFlow.id: + return this.inboundCallFlow; + case N.voiceSurveyFlow.id: + return this.voiceSurveyFlow; + case N.inboundShortMessageFlow.id: + return this.inboundShortMessageFlow; + } + } + getTargetFlowTypeForActionType() { + switch (this.actionType.text) { + case N.inboundCallFlow.id: + return c.flowTypes.flowTypeInboundCall; + case N.voiceSurveyFlow.id: + return c.flowTypes.flowTypeVoiceSurvey; + case N.inboundShortMessageFlow.id: + return c.flowTypes.flowTypeInboundShortMessage; + } + } + static getPostFlowActionTypesForFlowType(e3) { + var t3; + (null == e3 ? void 0 : e3.length) || (e3 = c.flowTypes.flowTypeInboundCall); + let i3 = null === (t3 = this._postFlowActionTypesByFlowType[e3]) || void 0 === t3 ? void 0 : t3.postFlowActionTypes; + if (!i3) { + switch (e3) { + case c.flowTypes.flowTypeInboundShortMessage: + this._postFlowActionTypesByFlowType[c.flowTypes.flowTypeInboundShortMessage] = { postFlowActionTypes: [N.inboundShortMessageFlow] }; + break; + case c.flowTypes.flowTypeCommonModule: + this._postFlowActionTypesByFlowType[c.flowTypes.flowTypeCommonModule] = { postFlowActionTypes: N.allPostFlowActionTypes }; + break; + case c.flowTypes.flowTypeInboundCall: + case c.flowTypes.flowTypeInQueueCall: + case c.flowTypes.flowTypeOutboundCall: + this._postFlowActionTypesByFlowType[e3] = { postFlowActionTypes: l.isFeatureAvailable(u.default.voiceSurveyFlows) ? [N.inboundCallFlow, N.voiceSurveyFlow] : [N.inboundCallFlow] }; + break; + default: + this._postFlowActionTypesByFlowType[e3] = { postFlowActionTypes: void 0 }; + } + i3 = this._postFlowActionTypesByFlowType[e3].postFlowActionTypes; + } + return i3; + } + static getPostFlowActionTypesMapForFlowType(e3) { + var t3; + (null == e3 ? void 0 : e3.length) || (e3 = c.flowTypes.flowTypeInboundCall); + let i3 = null === (t3 = this._postFlowActionTypesMapByFlowType[e3]) || void 0 === t3 ? void 0 : t3.postFlowActionTypesMap; + if (!i3) { + const t4 = this.getPostFlowActionTypesForFlowType(e3); + if (null == t4 ? void 0 : t4.length) { + const n3 = {}; + for (const e4 of t4) n3[e4.id] = e4; + this._postFlowActionTypesMapByFlowType[e3] = { postFlowActionTypesMap: n3 }, i3 = n3; + } else this._postFlowActionTypesMapByFlowType[e3] = { postFlowActionTypesMap: void 0 }; + } + return i3; + } + _updateCommonModuleNoteVisibility() { + const e3 = this._hasFlowTypesWithConflictingFlowTypes(); + this.target && this.target.options.setReadOnly(e3), this.actionType && this.actionType.options.setReadOnly(e3), this.invocationData && this.invocationData.options.setReadOnly(e3), this.commonModuleNote.outOfService = !e3; + } + _getAllowableValueMapKeysAsStr(e3) { + var t3, i3; + if (e3) return null === (i3 = null === (t3 = Object.keys(e3)) || void 0 === t3 ? void 0 : t3.sort()) || void 0 === i3 ? void 0 : i3.join("-"); + } + _hasFlowTypesWithConflictingFlowTypes() { + return !r2.default.isEmpty(this._getFlowTypesWithConflictingPostFlowActionTypes()); + } + _getFlowTypesWithConflictingPostFlowActionTypes() { + const e3 = this.parentFlow.destinationFlowTypes; + if (!e3 || e3.length <= 1) return {}; + const t3 = {}, i3 = R.getPostFlowActionTypesMapForFlowType(e3[0]), n3 = this._getAllowableValueMapKeysAsStr(i3); + for (let i4 = 1; i4 < e3.length; i4++) n3 !== this._getAllowableValueMapKeysAsStr(R.getPostFlowActionTypesMapForFlowType(e3[i4])) && (t3[e3[0]] = true, t3[e3[i4]] = true); + return t3; + } + _getAvailablePostFlowActionTypesMap() { + const e3 = this.parentFlow.destinationFlowTypes; + if (!e3 || e3.length <= 1) return {}; + const t3 = {}; + for (const i3 of e3) { + const e4 = R.getPostFlowActionTypesForFlowType(i3); + if (null == e4 ? void 0 : e4.length) for (const i4 of e4) t3[i4.id] = i4; + } + return t3; + } + validate(e3) { + var t3; + super.validate(e3); + const i3 = this._getFlowTypesWithConflictingPostFlowActionTypes(); + if (!r2.default.isEmpty(i3)) { + const n3 = []; + for (const e4 of Object.keys(i3)) n3.push(null === (t3 = f.default.getDefinitionForFlowType(e4)) || void 0 === t3 ? void 0 : t3.typeDisplayName); + const r3 = (0, v.sprintf)(b.errors.invalidFlowTypeCombinationError, b.actions.setPostFlow, (0, g.getListDisplayString)(n3, void 0, void 0, true)); + e3.addError(this, r3), this.commonModuleNote.note = r3; + } + } + } + R.info = S.default.createActionInfo({ actionClass: R, canBeInTask: true, helpTopic: o.helpTopics.actions.setPostFlow, modelClass: i2(173), name: b.actions.setPostFlow, scriptingName: "ArchActionSetPostFlow" }), R._postFlowActionTypesByFlowType = {}, R._postFlowActionTypesMapByFlowType = {}, t2.A = R; + }, 52510: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(81574)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "externalAddress"; + } + get address1() { + } + get address2() { + } + get city() { + } + get state() { + } + get postalCode() { + } + get countryCode() { + } + get displayTypeName() { + return "ArchValueExternalAddress"; + } + get isArchValueExternalAddress() { + return true; + } + } + t2.default = r2; + }, 52648: function(e2, t2, i2) { + !(function(e3) { + "use strict"; + e3.defineLocale("zh-cn", { months: "\u4E00\u6708_\u4E8C\u6708_\u4E09\u6708_\u56DB\u6708_\u4E94\u6708_\u516D\u6708_\u4E03\u6708_\u516B\u6708_\u4E5D\u6708_\u5341\u6708_\u5341\u4E00\u6708_\u5341\u4E8C\u6708".split("_"), monthsShort: "1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"), weekdays: "\u661F\u671F\u65E5_\u661F\u671F\u4E00_\u661F\u671F\u4E8C_\u661F\u671F\u4E09_\u661F\u671F\u56DB_\u661F\u671F\u4E94_\u661F\u671F\u516D".split("_"), weekdaysShort: "\u5468\u65E5_\u5468\u4E00_\u5468\u4E8C_\u5468\u4E09_\u5468\u56DB_\u5468\u4E94_\u5468\u516D".split("_"), weekdaysMin: "\u65E5_\u4E00_\u4E8C_\u4E09_\u56DB_\u4E94_\u516D".split("_"), longDateFormat: { LT: "HH:mm", LTS: "HH:mm:ss", L: "YYYY/MM/DD", LL: "YYYY\u5E74M\u6708D\u65E5", LLL: "YYYY\u5E74M\u6708D\u65E5Ah\u70B9mm\u5206", LLLL: "YYYY\u5E74M\u6708D\u65E5ddddAh\u70B9mm\u5206", l: "YYYY/M/D", ll: "YYYY\u5E74M\u6708D\u65E5", lll: "YYYY\u5E74M\u6708D\u65E5 HH:mm", llll: "YYYY\u5E74M\u6708D\u65E5dddd HH:mm" }, meridiemParse: /凌晨|早上|上午|中午|下午|晚上/, meridiemHour: function(e4, t3) { + return 12 === e4 && (e4 = 0), "\u51CC\u6668" === t3 || "\u65E9\u4E0A" === t3 || "\u4E0A\u5348" === t3 ? e4 : "\u4E0B\u5348" === t3 || "\u665A\u4E0A" === t3 ? e4 + 12 : e4 >= 11 ? e4 : e4 + 12; + }, meridiem: function(e4, t3, i3) { + var n2 = 100 * e4 + t3; + return n2 < 600 ? "\u51CC\u6668" : n2 < 900 ? "\u65E9\u4E0A" : n2 < 1130 ? "\u4E0A\u5348" : n2 < 1230 ? "\u4E2D\u5348" : n2 < 1800 ? "\u4E0B\u5348" : "\u665A\u4E0A"; + }, calendar: { sameDay: "[\u4ECA\u5929]LT", nextDay: "[\u660E\u5929]LT", nextWeek: function(e4) { + return e4.week() !== this.week() ? "[\u4E0B]dddLT" : "[\u672C]dddLT"; + }, lastDay: "[\u6628\u5929]LT", lastWeek: function(e4) { + return this.week() !== e4.week() ? "[\u4E0A]dddLT" : "[\u672C]dddLT"; + }, sameElse: "L" }, dayOfMonthOrdinalParse: /\d{1,2}(日|月|周)/, ordinal: function(e4, t3) { + switch (t3) { + case "d": + case "D": + case "DDD": + return e4 + "\u65E5"; + case "M": + return e4 + "\u6708"; + case "w": + case "W": + return e4 + "\u5468"; + default: + return e4; + } + }, relativeTime: { future: "%s\u540E", past: "%s\u524D", s: "\u51E0\u79D2", ss: "%d \u79D2", m: "1 \u5206\u949F", mm: "%d \u5206\u949F", h: "1 \u5C0F\u65F6", hh: "%d \u5C0F\u65F6", d: "1 \u5929", dd: "%d \u5929", w: "1 \u5468", ww: "%d \u5468", M: "1 \u4E2A\u6708", MM: "%d \u4E2A\u6708", y: "1 \u5E74", yy: "%d \u5E74" }, week: { dow: 1, doy: 4 } }); + })(i2(95093)); + }, 52696: (e2, t2) => { + "use strict"; + const i2 = 1024; + let n2 = 0; + class r2 { + constructor(e3, t3) { + this.from = e3, this.to = t3; + } + } + class o { + constructor(e3 = {}) { + this.id = n2++, this.perNode = !!e3.perNode, this.deserialize = e3.deserialize || (() => { + throw new Error("This node type doesn't define a deserialize function"); + }); + } + add(e3) { + if (this.perNode) throw new RangeError("Can't add per-node props to node types"); + return "function" != typeof e3 && (e3 = l.match(e3)), (t3) => { + let i3 = e3(t3); + return void 0 === i3 ? null : [this, i3]; + }; + } + } + o.closedBy = new o({ deserialize: (e3) => e3.split(" ") }), o.openedBy = new o({ deserialize: (e3) => e3.split(" ") }), o.group = new o({ deserialize: (e3) => e3.split(" ") }), o.isolate = new o({ deserialize: (e3) => { + if (e3 && "rtl" != e3 && "ltr" != e3 && "auto" != e3) throw new RangeError("Invalid value for isolate: " + e3); + return e3 || "auto"; + } }), o.contextHash = new o({ perNode: true }), o.lookAhead = new o({ perNode: true }), o.mounted = new o({ perNode: true }); + class a { + constructor(e3, t3, i3) { + this.tree = e3, this.overlay = t3, this.parser = i3; + } + static get(e3) { + return e3 && e3.props && e3.props[o.mounted.id]; + } + } + const s = /* @__PURE__ */ Object.create(null); + class l { + constructor(e3, t3, i3, n3 = 0) { + this.name = e3, this.props = t3, this.id = i3, this.flags = n3; + } + static define(e3) { + let t3 = e3.props && e3.props.length ? /* @__PURE__ */ Object.create(null) : s, i3 = (e3.top ? 1 : 0) | (e3.skipped ? 2 : 0) | (e3.error ? 4 : 0) | (null == e3.name ? 8 : 0), n3 = new l(e3.name || "", t3, e3.id, i3); + if (e3.props) { + for (let i4 of e3.props) if (Array.isArray(i4) || (i4 = i4(n3)), i4) { + if (i4[0].perNode) throw new RangeError("Can't store a per-node prop on a node type"); + t3[i4[0].id] = i4[1]; + } + } + return n3; + } + prop(e3) { + return this.props[e3.id]; + } + get isTop() { + return (1 & this.flags) > 0; + } + get isSkipped() { + return (2 & this.flags) > 0; + } + get isError() { + return (4 & this.flags) > 0; + } + get isAnonymous() { + return (8 & this.flags) > 0; + } + is(e3) { + if ("string" == typeof e3) { + if (this.name == e3) return true; + let t3 = this.prop(o.group); + return !!t3 && t3.indexOf(e3) > -1; + } + return this.id == e3; + } + static match(e3) { + let t3 = /* @__PURE__ */ Object.create(null); + for (let i3 in e3) for (let n3 of i3.split(" ")) t3[n3] = e3[i3]; + return (e4) => { + for (let i3 = e4.prop(o.group), n3 = -1; n3 < (i3 ? i3.length : 0); n3++) { + let r3 = t3[n3 < 0 ? e4.name : i3[n3]]; + if (r3) return r3; + } + }; + } + } + l.none = new l("", /* @__PURE__ */ Object.create(null), 0, 8); + class u { + constructor(e3) { + this.types = e3; + for (let t3 = 0; t3 < e3.length; t3++) if (e3[t3].id != t3) throw new RangeError("Node type ids should correspond to array positions when creating a node set"); + } + extend(...e3) { + let t3 = []; + for (let i3 of this.types) { + let n3 = null; + for (let t4 of e3) { + let e4 = t4(i3); + e4 && (n3 || (n3 = Object.assign({}, i3.props)), n3[e4[0].id] = e4[1]); + } + t3.push(n3 ? new l(i3.name, n3, i3.id, i3.flags) : i3); + } + return new u(t3); + } + } + const d = /* @__PURE__ */ new WeakMap(), c = /* @__PURE__ */ new WeakMap(); + var p; + t2.IterMode = void 0, (p = t2.IterMode || (t2.IterMode = {}))[p.ExcludeBuffers = 1] = "ExcludeBuffers", p[p.IncludeAnonymous = 2] = "IncludeAnonymous", p[p.IgnoreMounts = 4] = "IgnoreMounts", p[p.IgnoreOverlays = 8] = "IgnoreOverlays"; + class _ { + constructor(e3, t3, i3, n3, r3) { + if (this.type = e3, this.children = t3, this.positions = i3, this.length = n3, this.props = null, r3 && r3.length) { + this.props = /* @__PURE__ */ Object.create(null); + for (let [e4, t4] of r3) this.props["number" == typeof e4 ? e4 : e4.id] = t4; + } + } + toString() { + let e3 = a.get(this); + if (e3 && !e3.overlay) return e3.tree.toString(); + let t3 = ""; + for (let e4 of this.children) { + let i3 = e4.toString(); + i3 && (t3 && (t3 += ","), t3 += i3); + } + return this.type.name ? (/\W/.test(this.type.name) && !this.type.isError ? JSON.stringify(this.type.name) : this.type.name) + (t3.length ? "(" + t3 + ")" : "") : t3; + } + cursor(e3 = 0) { + return new C(this.topNode, e3); + } + cursorAt(e3, t3 = 0, i3 = 0) { + let n3 = d.get(this) || this.topNode, r3 = new C(n3); + return r3.moveTo(e3, t3), d.set(this, r3._tree), r3; + } + get topNode() { + return new y(this, 0, 0, null); + } + resolve(e3, t3 = 0) { + let i3 = f(d.get(this) || this.topNode, e3, t3, false); + return d.set(this, i3), i3; + } + resolveInner(e3, t3 = 0) { + let i3 = f(c.get(this) || this.topNode, e3, t3, true); + return c.set(this, i3), i3; + } + resolveStack(e3, t3 = 0) { + return (function(e4, t4, i3) { + let n3 = e4.resolveInner(t4, i3), r3 = null; + for (let e5 = n3 instanceof y ? n3 : n3.context.parent; e5; e5 = e5.parent) if (e5.index < 0) { + let o2 = e5.parent; + (r3 || (r3 = [n3])).push(o2.resolve(t4, i3)), e5 = o2; + } else { + let o2 = a.get(e5.tree); + if (o2 && o2.overlay && o2.overlay[0].from <= t4 && o2.overlay[o2.overlay.length - 1].to >= t4) { + let a2 = new y(o2.tree, o2.overlay[0].from + e5.from, -1, e5); + (r3 || (r3 = [n3])).push(f(a2, t4, i3, false)); + } + } + return r3 ? I(r3) : n3; + })(this, e3, t3); + } + iterate(e3) { + let { enter: i3, leave: n3, from: r3 = 0, to: o2 = this.length } = e3, a2 = e3.mode || 0, s2 = (a2 & t2.IterMode.IncludeAnonymous) > 0; + for (let e4 = this.cursor(a2 | t2.IterMode.IncludeAnonymous); ; ) { + let t3 = false; + if (e4.from <= o2 && e4.to >= r3 && (!s2 && e4.type.isAnonymous || false !== i3(e4))) { + if (e4.firstChild()) continue; + t3 = true; + } + for (; t3 && n3 && (s2 || !e4.type.isAnonymous) && n3(e4), !e4.nextSibling(); ) { + if (!e4.parent()) return; + t3 = true; + } + } + } + prop(e3) { + return e3.perNode ? this.props ? this.props[e3.id] : void 0 : this.type.prop(e3); + } + get propValues() { + let e3 = []; + if (this.props) for (let t3 in this.props) e3.push([+t3, this.props[t3]]); + return e3; + } + balance(e3 = {}) { + return this.children.length <= 8 ? this : w(l.none, this.children, this.positions, 0, this.children.length, 0, this.length, (e4, t3, i3) => new _(this.type, e4, t3, i3, this.propValues), e3.makeTree || ((e4, t3, i3) => new _(l.none, e4, t3, i3))); + } + static build(e3) { + return (function(e4) { + var t3; + let { buffer: n3, nodeSet: r3, maxBufferLength: a2 = i2, reused: s2 = [], minRepeatType: l2 = r3.types.length } = e4, u2 = Array.isArray(n3) ? new h(n3, n3.length) : n3, d2 = r3.types, c2 = 0, p2 = 0; + function g2(e5, t4, i3, n4, h2, A3) { + let { id: N3, start: O3, end: I2, size: v2 } = u2, C2 = p2, b2 = c2; + for (; v2 < 0; ) { + if (u2.next(), -1 == v2) { + let t5 = s2[N3]; + return i3.push(t5), void n4.push(O3 - e5); + } + if (-3 == v2) return void (c2 = N3); + if (-4 == v2) return void (p2 = N3); + throw new RangeError(`Unrecognized record size: ${v2}`); + } + let E2, R2, D2 = d2[N3], P2 = O3 - e5; + if (I2 - O3 <= a2 && (R2 = (function(e6, t5) { + let i4 = u2.fork(), n5 = 0, r4 = 0, o2 = 0, s3 = i4.end - a2, d3 = { size: 0, start: 0, skip: 0 }; + e: for (let a3 = i4.pos - e6; i4.pos > a3; ) { + let e7 = i4.size; + if (i4.id == t5 && e7 >= 0) { + d3.size = n5, d3.start = r4, d3.skip = o2, o2 += 4, n5 += 4, i4.next(); + continue; + } + let u3 = i4.pos - e7; + if (e7 < 0 || u3 < a3 || i4.start < s3) break; + let c3 = i4.id >= l2 ? 4 : 0, p3 = i4.start; + for (i4.next(); i4.pos > u3; ) { + if (i4.size < 0) { + if (-3 != i4.size) break e; + c3 += 4; + } else i4.id >= l2 && (c3 += 4); + i4.next(); + } + r4 = p3, n5 += e7, o2 += c3; + } + return (t5 < 0 || n5 == e6) && (d3.size = n5, d3.start = r4, d3.skip = o2), d3.size > 4 ? d3 : void 0; + })(u2.pos - t4, h2))) { + let t5 = new Uint16Array(R2.size - R2.skip), i4 = u2.pos - R2.size, n5 = t5.length; + for (; u2.pos > i4; ) n5 = S2(R2.start, t5, n5); + E2 = new m(t5, I2 - R2.start, r3), P2 = R2.start - e5; + } else { + let e6 = u2.pos - v2; + u2.next(); + let t5 = [], i4 = [], n5 = N3 >= l2 ? N3 : -1, r4 = 0, s3 = I2; + for (; u2.pos > e6; ) n5 >= 0 && u2.id == n5 && u2.size >= 0 ? (u2.end <= s3 - a2 && (T2(t5, i4, O3, r4, u2.end, s3, n5, C2, b2), r4 = t5.length, s3 = u2.end), u2.next()) : A3 > 2500 ? f2(O3, e6, t5, i4) : g2(O3, e6, t5, i4, n5, A3 + 1); + if (n5 >= 0 && r4 > 0 && r4 < t5.length && T2(t5, i4, O3, r4, O3, s3, n5, C2, b2), t5.reverse(), i4.reverse(), n5 > -1 && r4 > 0) { + let e7 = /* @__PURE__ */ (function(e8, t6) { + return (i5, n6, r5) => { + let a3, s4, l3 = 0, u3 = i5.length - 1; + if (u3 >= 0 && (a3 = i5[u3]) instanceof _) { + if (!u3 && a3.type == e8 && a3.length == r5) return a3; + (s4 = a3.prop(o.lookAhead)) && (l3 = n6[u3] + a3.length + s4); + } + return y2(e8, i5, n6, r5, l3, t6); + }; + })(D2, b2); + E2 = w(D2, t5, i4, 0, t5.length, 0, I2 - O3, e7, e7); + } else E2 = y2(D2, t5, i4, I2 - O3, C2 - I2, b2); + } + i3.push(E2), n4.push(P2); + } + function f2(e5, t4, i3, n4) { + let o2 = [], s3 = 0, l3 = -1; + for (; u2.pos > t4; ) { + let { id: e6, start: t5, end: i4, size: n5 } = u2; + if (n5 > 4) u2.next(); + else { + if (l3 > -1 && t5 < l3) break; + l3 < 0 && (l3 = i4 - a2), o2.push(e6, t5, i4), s3++, u2.next(); + } + } + if (s3) { + let t5 = new Uint16Array(4 * s3), a3 = o2[o2.length - 2]; + for (let e6 = o2.length - 3, i4 = 0; e6 >= 0; e6 -= 3) t5[i4++] = o2[e6], t5[i4++] = o2[e6 + 1] - a3, t5[i4++] = o2[e6 + 2] - a3, t5[i4++] = i4; + i3.push(new m(t5, o2[2] - a3, r3)), n4.push(a3 - e5); + } + } + function T2(e5, t4, i3, n4, o2, a3, s3, l3, u3) { + let d3 = [], c3 = []; + for (; e5.length > n4; ) d3.push(e5.pop()), c3.push(t4.pop() + i3 - o2); + e5.push(y2(r3.types[s3], d3, c3, a3 - o2, l3 - a3, u3)), t4.push(o2 - i3); + } + function y2(e5, t4, i3, n4, r4, a3, s3) { + if (a3) { + let e6 = [o.contextHash, a3]; + s3 = s3 ? [e6].concat(s3) : [e6]; + } + if (r4 > 25) { + let e6 = [o.lookAhead, r4]; + s3 = s3 ? [e6].concat(s3) : [e6]; + } + return new _(e5, t4, i3, n4, s3); + } + function S2(e5, t4, i3) { + let { id: n4, start: r4, end: o2, size: a3 } = u2; + if (u2.next(), a3 >= 0 && n4 < l2) { + let s3 = i3; + if (a3 > 4) { + let n5 = u2.pos - (a3 - 4); + for (; u2.pos > n5; ) i3 = S2(e5, t4, i3); + } + t4[--i3] = s3, t4[--i3] = o2 - e5, t4[--i3] = r4 - e5, t4[--i3] = n4; + } else -3 == a3 ? c2 = n4 : -4 == a3 && (p2 = n4); + return i3; + } + let A2 = [], N2 = []; + for (; u2.pos > 0; ) g2(e4.start || 0, e4.bufferStart || 0, A2, N2, -1, 0); + let O2 = null !== (t3 = e4.length) && void 0 !== t3 ? t3 : A2.length ? N2[0] + A2[0].length : 0; + return new _(d2[e4.topID], A2.reverse(), N2.reverse(), O2); + })(e3); + } + } + _.empty = new _(l.none, [], [], 0); + class h { + constructor(e3, t3) { + this.buffer = e3, this.index = t3; + } + get id() { + return this.buffer[this.index - 4]; + } + get start() { + return this.buffer[this.index - 3]; + } + get end() { + return this.buffer[this.index - 2]; + } + get size() { + return this.buffer[this.index - 1]; + } + get pos() { + return this.index; + } + next() { + this.index -= 4; + } + fork() { + return new h(this.buffer, this.index); + } + } + class m { + constructor(e3, t3, i3) { + this.buffer = e3, this.length = t3, this.set = i3; + } + get type() { + return l.none; + } + toString() { + let e3 = []; + for (let t3 = 0; t3 < this.buffer.length; ) e3.push(this.childString(t3)), t3 = this.buffer[t3 + 3]; + return e3.join(","); + } + childString(e3) { + let t3 = this.buffer[e3], i3 = this.buffer[e3 + 3], n3 = this.set.types[t3], r3 = n3.name; + if (/\W/.test(r3) && !n3.isError && (r3 = JSON.stringify(r3)), i3 == (e3 += 4)) return r3; + let o2 = []; + for (; e3 < i3; ) o2.push(this.childString(e3)), e3 = this.buffer[e3 + 3]; + return r3 + "(" + o2.join(",") + ")"; + } + findChild(e3, t3, i3, n3, r3) { + let { buffer: o2 } = this, a2 = -1; + for (let s2 = e3; s2 != t3 && !(g(r3, n3, o2[s2 + 1], o2[s2 + 2]) && (a2 = s2, i3 > 0)); s2 = o2[s2 + 3]) ; + return a2; + } + slice(e3, t3, i3) { + let n3 = this.buffer, r3 = new Uint16Array(t3 - e3), o2 = 0; + for (let a2 = e3, s2 = 0; a2 < t3; ) { + r3[s2++] = n3[a2++], r3[s2++] = n3[a2++] - i3; + let t4 = r3[s2++] = n3[a2++] - i3; + r3[s2++] = n3[a2++] - e3, o2 = Math.max(o2, t4); + } + return new m(r3, o2, this.set); + } + } + function g(e3, t3, i3, n3) { + switch (e3) { + case -2: + return i3 < t3; + case -1: + return n3 >= t3 && i3 < t3; + case 0: + return i3 < t3 && n3 > t3; + case 1: + return i3 <= t3 && n3 > t3; + case 2: + return n3 > t3; + case 4: + return true; + } + } + function f(e3, i3, n3, r3) { + for (var o2; e3.from == e3.to || (n3 < 1 ? e3.from >= i3 : e3.from > i3) || (n3 > -1 ? e3.to <= i3 : e3.to < i3); ) { + let t3 = !r3 && e3 instanceof y && e3.index < 0 ? null : e3.parent; + if (!t3) return e3; + e3 = t3; + } + let a2 = r3 ? 0 : t2.IterMode.IgnoreOverlays; + if (r3) for (let t3 = e3, r4 = t3.parent; r4; t3 = r4, r4 = t3.parent) t3 instanceof y && t3.index < 0 && (null === (o2 = r4.enter(i3, n3, a2)) || void 0 === o2 ? void 0 : o2.from) != t3.from && (e3 = r4); + for (; ; ) { + let t3 = e3.enter(i3, n3, a2); + if (!t3) return e3; + e3 = t3; + } + } + class T { + cursor(e3 = 0) { + return new C(this, e3); + } + getChild(e3, t3 = null, i3 = null) { + let n3 = S(this, e3, t3, i3); + return n3.length ? n3[0] : null; + } + getChildren(e3, t3 = null, i3 = null) { + return S(this, e3, t3, i3); + } + resolve(e3, t3 = 0) { + return f(this, e3, t3, false); + } + resolveInner(e3, t3 = 0) { + return f(this, e3, t3, true); + } + matchContext(e3) { + return A(this.parent, e3); + } + enterUnfinishedNodesBefore(e3) { + let t3 = this.childBefore(e3), i3 = this; + for (; t3; ) { + let e4 = t3.lastChild; + if (!e4 || e4.to != t3.to) break; + e4.type.isError && e4.from == e4.to ? (i3 = t3, t3 = e4.prevSibling) : t3 = e4; + } + return i3; + } + get node() { + return this; + } + get next() { + return this.parent; + } + } + class y extends T { + constructor(e3, t3, i3, n3) { + super(), this._tree = e3, this.from = t3, this.index = i3, this._parent = n3; + } + get type() { + return this._tree.type; + } + get name() { + return this._tree.type.name; + } + get to() { + return this.from + this._tree.length; + } + nextChild(e3, i3, n3, r3, o2 = 0) { + for (let s2 = this; ; ) { + for (let { children: l2, positions: u2 } = s2._tree, d2 = i3 > 0 ? l2.length : -1; e3 != d2; e3 += i3) { + let d3 = l2[e3], c2 = u2[e3] + s2.from; + if (g(r3, n3, c2, c2 + d3.length)) { + if (d3 instanceof m) { + if (o2 & t2.IterMode.ExcludeBuffers) continue; + let a2 = d3.findChild(0, d3.buffer.length, i3, n3 - c2, r3); + if (a2 > -1) return new O(new N(s2, d3, e3, c2), null, a2); + } else if (o2 & t2.IterMode.IncludeAnonymous || !d3.type.isAnonymous || b(d3)) { + let l3; + if (!(o2 & t2.IterMode.IgnoreMounts) && (l3 = a.get(d3)) && !l3.overlay) return new y(l3.tree, c2, e3, s2); + let u3 = new y(d3, c2, e3, s2); + return o2 & t2.IterMode.IncludeAnonymous || !u3.type.isAnonymous ? u3 : u3.nextChild(i3 < 0 ? d3.children.length - 1 : 0, i3, n3, r3); + } + } + } + if (o2 & t2.IterMode.IncludeAnonymous || !s2.type.isAnonymous) return null; + if (e3 = s2.index >= 0 ? s2.index + i3 : i3 < 0 ? -1 : s2._parent._tree.children.length, s2 = s2._parent, !s2) return null; + } + } + get firstChild() { + return this.nextChild(0, 1, 0, 4); + } + get lastChild() { + return this.nextChild(this._tree.children.length - 1, -1, 0, 4); + } + childAfter(e3) { + return this.nextChild(0, 1, e3, 2); + } + childBefore(e3) { + return this.nextChild(this._tree.children.length - 1, -1, e3, -2); + } + enter(e3, i3, n3 = 0) { + let r3; + if (!(n3 & t2.IterMode.IgnoreOverlays) && (r3 = a.get(this._tree)) && r3.overlay) { + let t3 = e3 - this.from; + for (let { from: e4, to: n4 } of r3.overlay) if ((i3 > 0 ? e4 <= t3 : e4 < t3) && (i3 < 0 ? n4 >= t3 : n4 > t3)) return new y(r3.tree, r3.overlay[0].from + this.from, -1, this); + } + return this.nextChild(0, 1, e3, i3, n3); + } + nextSignificantParent() { + let e3 = this; + for (; e3.type.isAnonymous && e3._parent; ) e3 = e3._parent; + return e3; + } + get parent() { + return this._parent ? this._parent.nextSignificantParent() : null; + } + get nextSibling() { + return this._parent && this.index >= 0 ? this._parent.nextChild(this.index + 1, 1, 0, 4) : null; + } + get prevSibling() { + return this._parent && this.index >= 0 ? this._parent.nextChild(this.index - 1, -1, 0, 4) : null; + } + get tree() { + return this._tree; + } + toTree() { + return this._tree; + } + toString() { + return this._tree.toString(); + } + } + function S(e3, t3, i3, n3) { + let r3 = e3.cursor(), o2 = []; + if (!r3.firstChild()) return o2; + if (null != i3) { + for (let e4 = false; !e4; ) if (e4 = r3.type.is(i3), !r3.nextSibling()) return o2; + } + for (; ; ) { + if (null != n3 && r3.type.is(n3)) return o2; + if (r3.type.is(t3) && o2.push(r3.node), !r3.nextSibling()) return null == n3 ? o2 : []; + } + } + function A(e3, t3, i3 = t3.length - 1) { + for (let n3 = e3; i3 >= 0; n3 = n3.parent) { + if (!n3) return false; + if (!n3.type.isAnonymous) { + if (t3[i3] && t3[i3] != n3.name) return false; + i3--; + } + } + return true; + } + class N { + constructor(e3, t3, i3, n3) { + this.parent = e3, this.buffer = t3, this.index = i3, this.start = n3; + } + } + class O extends T { + get name() { + return this.type.name; + } + get from() { + return this.context.start + this.context.buffer.buffer[this.index + 1]; + } + get to() { + return this.context.start + this.context.buffer.buffer[this.index + 2]; + } + constructor(e3, t3, i3) { + super(), this.context = e3, this._parent = t3, this.index = i3, this.type = e3.buffer.set.types[e3.buffer.buffer[i3]]; + } + child(e3, t3, i3) { + let { buffer: n3 } = this.context, r3 = n3.findChild(this.index + 4, n3.buffer[this.index + 3], e3, t3 - this.context.start, i3); + return r3 < 0 ? null : new O(this.context, this, r3); + } + get firstChild() { + return this.child(1, 0, 4); + } + get lastChild() { + return this.child(-1, 0, 4); + } + childAfter(e3) { + return this.child(1, e3, 2); + } + childBefore(e3) { + return this.child(-1, e3, -2); + } + enter(e3, i3, n3 = 0) { + if (n3 & t2.IterMode.ExcludeBuffers) return null; + let { buffer: r3 } = this.context, o2 = r3.findChild(this.index + 4, r3.buffer[this.index + 3], i3 > 0 ? 1 : -1, e3 - this.context.start, i3); + return o2 < 0 ? null : new O(this.context, this, o2); + } + get parent() { + return this._parent || this.context.parent.nextSignificantParent(); + } + externalSibling(e3) { + return this._parent ? null : this.context.parent.nextChild(this.context.index + e3, e3, 0, 4); + } + get nextSibling() { + let { buffer: e3 } = this.context, t3 = e3.buffer[this.index + 3]; + return t3 < (this._parent ? e3.buffer[this._parent.index + 3] : e3.buffer.length) ? new O(this.context, this._parent, t3) : this.externalSibling(1); + } + get prevSibling() { + let { buffer: e3 } = this.context, t3 = this._parent ? this._parent.index + 4 : 0; + return this.index == t3 ? this.externalSibling(-1) : new O(this.context, this._parent, e3.findChild(t3, this.index, -1, 0, 4)); + } + get tree() { + return null; + } + toTree() { + let e3 = [], t3 = [], { buffer: i3 } = this.context, n3 = this.index + 4, r3 = i3.buffer[this.index + 3]; + if (r3 > n3) { + let o2 = i3.buffer[this.index + 1]; + e3.push(i3.slice(n3, r3, o2)), t3.push(0); + } + return new _(this.type, e3, t3, this.to - this.from); + } + toString() { + return this.context.buffer.childString(this.index); + } + } + function I(e3) { + if (!e3.length) return null; + let t3 = 0, i3 = e3[0]; + for (let n4 = 1; n4 < e3.length; n4++) { + let r4 = e3[n4]; + (r4.from > i3.from || r4.to < i3.to) && (i3 = r4, t3 = n4); + } + let n3 = i3 instanceof y && i3.index < 0 ? null : i3.parent, r3 = e3.slice(); + return n3 ? r3[t3] = n3 : r3.splice(t3, 1), new v(r3, i3); + } + class v { + constructor(e3, t3) { + this.heads = e3, this.node = t3; + } + get next() { + return I(this.heads); + } + } + class C { + get name() { + return this.type.name; + } + constructor(e3, t3 = 0) { + if (this.mode = t3, this.buffer = null, this.stack = [], this.index = 0, this.bufferNode = null, e3 instanceof y) this.yieldNode(e3); + else { + this._tree = e3.context.parent, this.buffer = e3.context; + for (let t4 = e3._parent; t4; t4 = t4._parent) this.stack.unshift(t4.index); + this.bufferNode = e3, this.yieldBuf(e3.index); + } + } + yieldNode(e3) { + return !!e3 && (this._tree = e3, this.type = e3.type, this.from = e3.from, this.to = e3.to, true); + } + yieldBuf(e3, t3) { + this.index = e3; + let { start: i3, buffer: n3 } = this.buffer; + return this.type = t3 || n3.set.types[n3.buffer[e3]], this.from = i3 + n3.buffer[e3 + 1], this.to = i3 + n3.buffer[e3 + 2], true; + } + yield(e3) { + return !!e3 && (e3 instanceof y ? (this.buffer = null, this.yieldNode(e3)) : (this.buffer = e3.context, this.yieldBuf(e3.index, e3.type))); + } + toString() { + return this.buffer ? this.buffer.buffer.childString(this.index) : this._tree.toString(); + } + enterChild(e3, t3, i3) { + if (!this.buffer) return this.yield(this._tree.nextChild(e3 < 0 ? this._tree._tree.children.length - 1 : 0, e3, t3, i3, this.mode)); + let { buffer: n3 } = this.buffer, r3 = n3.findChild(this.index + 4, n3.buffer[this.index + 3], e3, t3 - this.buffer.start, i3); + return !(r3 < 0) && (this.stack.push(this.index), this.yieldBuf(r3)); + } + firstChild() { + return this.enterChild(1, 0, 4); + } + lastChild() { + return this.enterChild(-1, 0, 4); + } + childAfter(e3) { + return this.enterChild(1, e3, 2); + } + childBefore(e3) { + return this.enterChild(-1, e3, -2); + } + enter(e3, i3, n3 = this.mode) { + return this.buffer ? !(n3 & t2.IterMode.ExcludeBuffers) && this.enterChild(1, e3, i3) : this.yield(this._tree.enter(e3, i3, n3)); + } + parent() { + if (!this.buffer) return this.yieldNode(this.mode & t2.IterMode.IncludeAnonymous ? this._tree._parent : this._tree.parent); + if (this.stack.length) return this.yieldBuf(this.stack.pop()); + let e3 = this.mode & t2.IterMode.IncludeAnonymous ? this.buffer.parent : this.buffer.parent.nextSignificantParent(); + return this.buffer = null, this.yieldNode(e3); + } + sibling(e3) { + if (!this.buffer) return !!this._tree._parent && this.yield(this._tree.index < 0 ? null : this._tree._parent.nextChild(this._tree.index + e3, e3, 0, 4, this.mode)); + let { buffer: t3 } = this.buffer, i3 = this.stack.length - 1; + if (e3 < 0) { + let e4 = i3 < 0 ? 0 : this.stack[i3] + 4; + if (this.index != e4) return this.yieldBuf(t3.findChild(e4, this.index, -1, 0, 4)); + } else { + let e4 = t3.buffer[this.index + 3]; + if (e4 < (i3 < 0 ? t3.buffer.length : t3.buffer[this.stack[i3] + 3])) return this.yieldBuf(e4); + } + return i3 < 0 && this.yield(this.buffer.parent.nextChild(this.buffer.index + e3, e3, 0, 4, this.mode)); + } + nextSibling() { + return this.sibling(1); + } + prevSibling() { + return this.sibling(-1); + } + atLastNode(e3) { + let i3, n3, { buffer: r3 } = this; + if (r3) { + if (e3 > 0) { + if (this.index < r3.buffer.buffer.length) return false; + } else for (let e4 = 0; e4 < this.index; e4++) if (r3.buffer.buffer[e4 + 3] < this.index) return false; + ({ index: i3, parent: n3 } = r3); + } else ({ index: i3, _parent: n3 } = this._tree); + for (; n3; { index: i3, _parent: n3 } = n3) if (i3 > -1) for (let r4 = i3 + e3, o2 = e3 < 0 ? -1 : n3._tree.children.length; r4 != o2; r4 += e3) { + let e4 = n3._tree.children[r4]; + if (this.mode & t2.IterMode.IncludeAnonymous || e4 instanceof m || !e4.type.isAnonymous || b(e4)) return false; + } + return true; + } + move(e3, t3) { + if (t3 && this.enterChild(e3, 0, 4)) return true; + for (; ; ) { + if (this.sibling(e3)) return true; + if (this.atLastNode(e3) || !this.parent()) return false; + } + } + next(e3 = true) { + return this.move(1, e3); + } + prev(e3 = true) { + return this.move(-1, e3); + } + moveTo(e3, t3 = 0) { + for (; (this.from == this.to || (t3 < 1 ? this.from >= e3 : this.from > e3) || (t3 > -1 ? this.to <= e3 : this.to < e3)) && this.parent(); ) ; + for (; this.enterChild(1, e3, t3); ) ; + return this; + } + get node() { + if (!this.buffer) return this._tree; + let e3 = this.bufferNode, t3 = null, i3 = 0; + if (e3 && e3.context == this.buffer) e: for (let n3 = this.index, r3 = this.stack.length; r3 >= 0; ) { + for (let o2 = e3; o2; o2 = o2._parent) if (o2.index == n3) { + if (n3 == this.index) return o2; + t3 = o2, i3 = r3 + 1; + break e; + } + n3 = this.stack[--r3]; + } + for (let e4 = i3; e4 < this.stack.length; e4++) t3 = new O(this.buffer, t3, this.stack[e4]); + return this.bufferNode = new O(this.buffer, t3, this.index); + } + get tree() { + return this.buffer ? null : this._tree._tree; + } + iterate(e3, t3) { + for (let i3 = 0; ; ) { + let n3 = false; + if (this.type.isAnonymous || false !== e3(this)) { + if (this.firstChild()) { + i3++; + continue; + } + this.type.isAnonymous || (n3 = true); + } + for (; ; ) { + if (n3 && t3 && t3(this), n3 = this.type.isAnonymous, !i3) return; + if (this.nextSibling()) break; + this.parent(), i3--, n3 = true; + } + } + } + matchContext(e3) { + if (!this.buffer) return A(this.node.parent, e3); + let { buffer: t3 } = this.buffer, { types: i3 } = t3.set; + for (let n3 = e3.length - 1, r3 = this.stack.length - 1; n3 >= 0; r3--) { + if (r3 < 0) return A(this._tree, e3, n3); + let o2 = i3[t3.buffer[this.stack[r3]]]; + if (!o2.isAnonymous) { + if (e3[n3] && e3[n3] != o2.name) return false; + n3--; + } + } + return true; + } + } + function b(e3) { + return e3.children.some((e4) => e4 instanceof m || !e4.type.isAnonymous || b(e4)); + } + const E = /* @__PURE__ */ new WeakMap(); + function R(e3, t3) { + if (!e3.isAnonymous || t3 instanceof m || t3.type != e3) return 1; + let i3 = E.get(t3); + if (null == i3) { + i3 = 1; + for (let n3 of t3.children) { + if (n3.type != e3 || !(n3 instanceof _)) { + i3 = 1; + break; + } + i3 += R(e3, n3); + } + E.set(t3, i3); + } + return i3; + } + function w(e3, t3, i3, n3, r3, o2, a2, s2, l2) { + let u2 = 0; + for (let i4 = n3; i4 < r3; i4++) u2 += R(e3, t3[i4]); + let d2 = Math.ceil(1.5 * u2 / 8), c2 = [], p2 = []; + return (function t4(i4, n4, r4, a3, s3) { + for (let u3 = r4; u3 < a3; ) { + let r5 = u3, _2 = n4[u3], h2 = R(e3, i4[u3]); + for (u3++; u3 < a3; u3++) { + let t5 = R(e3, i4[u3]); + if (h2 + t5 >= d2) break; + h2 += t5; + } + if (u3 == r5 + 1) { + if (h2 > d2) { + let e4 = i4[r5]; + t4(e4.children, e4.positions, 0, e4.children.length, n4[r5] + s3); + continue; + } + c2.push(i4[r5]); + } else { + let t5 = n4[u3 - 1] + i4[u3 - 1].length - _2; + c2.push(w(e3, i4, n4, r5, u3, _2, t5, null, l2)); + } + p2.push(_2 + s3 - o2); + } + })(t3, i3, n3, r3, 0), (s2 || l2)(c2, p2, a2); + } + class D { + constructor(e3, t3, i3, n3, r3 = false, o2 = false) { + this.from = e3, this.to = t3, this.tree = i3, this.offset = n3, this.open = (r3 ? 1 : 0) | (o2 ? 2 : 0); + } + get openStart() { + return (1 & this.open) > 0; + } + get openEnd() { + return (2 & this.open) > 0; + } + static addTree(e3, t3 = [], i3 = false) { + let n3 = [new D(0, e3.length, e3, 0, false, i3)]; + for (let i4 of t3) i4.to > e3.length && n3.push(i4); + return n3; + } + static applyChanges(e3, t3, i3 = 128) { + if (!t3.length) return e3; + let n3 = [], r3 = 1, o2 = e3.length ? e3[0] : null; + for (let a2 = 0, s2 = 0, l2 = 0; ; a2++) { + let u2 = a2 < t3.length ? t3[a2] : null, d2 = u2 ? u2.fromA : 1e9; + if (d2 - s2 >= i3) for (; o2 && o2.from < d2; ) { + let t4 = o2; + if (s2 >= t4.from || d2 <= t4.to || l2) { + let e4 = Math.max(t4.from, s2) - l2, i4 = Math.min(t4.to, d2) - l2; + t4 = e4 >= i4 ? null : new D(e4, i4, t4.tree, t4.offset + l2, a2 > 0, !!u2); + } + if (t4 && n3.push(t4), o2.to > d2) break; + o2 = r3 < e3.length ? e3[r3++] : null; + } + if (!u2) break; + s2 = u2.toA, l2 = u2.toA - u2.toB; + } + return n3; + } + } + class P { + constructor(e3) { + this.string = e3; + } + get length() { + return this.string.length; + } + chunk(e3) { + return this.string.slice(e3); + } + get lineChunks() { + return false; + } + read(e3, t3) { + return this.string.slice(e3, t3); + } + } + class M { + constructor(e3, t3, i3, n3, r3) { + this.parser = e3, this.parse = t3, this.overlay = i3, this.target = n3, this.from = r3; + } + } + function F(e3) { + if (!e3.length || e3.some((e4) => e4.from >= e4.to)) throw new RangeError("Invalid inner parse ranges given: " + JSON.stringify(e3)); + } + class L { + constructor(e3, t3, i3, n3, r3, o2, a2) { + this.parser = e3, this.predicate = t3, this.mounts = i3, this.index = n3, this.start = r3, this.target = o2, this.prev = a2, this.depth = 0, this.ranges = []; + } + } + const x = new o({ perNode: true }); + class k { + constructor(e3, t3, i3, n3, r3) { + this.nest = t3, this.input = i3, this.fragments = n3, this.ranges = r3, this.inner = [], this.innerDone = 0, this.baseTree = null, this.stoppedAt = null, this.baseParse = e3; + } + advance() { + if (this.baseParse) { + let e4 = this.baseParse.advance(); + if (!e4) return null; + if (this.baseParse = null, this.baseTree = e4, this.startInner(), null != this.stoppedAt) for (let e5 of this.inner) e5.parse.stopAt(this.stoppedAt); + } + if (this.innerDone == this.inner.length) { + let e4 = this.baseTree; + return null != this.stoppedAt && (e4 = new _(e4.type, e4.children, e4.positions, e4.length, e4.propValues.concat([[x, this.stoppedAt]]))), e4; + } + let e3 = this.inner[this.innerDone], t3 = e3.parse.advance(); + if (t3) { + this.innerDone++; + let i3 = Object.assign(/* @__PURE__ */ Object.create(null), e3.target.props); + i3[o.mounted.id] = new a(t3, e3.overlay, e3.parser), e3.target.props = i3; + } + return null; + } + get parsedPos() { + if (this.baseParse) return 0; + let e3 = this.input.length; + for (let t3 = this.innerDone; t3 < this.inner.length; t3++) this.inner[t3].from < e3 && (e3 = Math.min(e3, this.inner[t3].parse.parsedPos)); + return e3; + } + stopAt(e3) { + if (this.stoppedAt = e3, this.baseParse) this.baseParse.stopAt(e3); + else for (let t3 = this.innerDone; t3 < this.inner.length; t3++) this.inner[t3].parse.stopAt(e3); + } + startInner() { + let e3 = new j(this.fragments), i3 = null, n3 = null, o2 = new C(new y(this.baseTree, this.ranges[0].from, 0, null), t2.IterMode.IncludeAnonymous | t2.IterMode.IgnoreMounts); + e: for (let t3, a2; ; ) { + let s2, l2 = true; + if (null != this.stoppedAt && o2.from >= this.stoppedAt) l2 = false; + else if (e3.hasNode(o2)) { + if (i3) { + let e4 = i3.mounts.find((e5) => e5.frag.from <= o2.from && e5.frag.to >= o2.to && e5.mount.overlay); + if (e4) for (let t4 of e4.mount.overlay) { + let n4 = t4.from + e4.pos, r3 = t4.to + e4.pos; + n4 >= o2.from && r3 <= o2.to && !i3.ranges.some((e5) => e5.from < r3 && e5.to > n4) && i3.ranges.push({ from: n4, to: r3 }); + } + } + l2 = false; + } else if (n3 && (a2 = V(n3.ranges, o2.from, o2.to))) l2 = 2 != a2; + else if (!o2.type.isAnonymous && (t3 = this.nest(o2, this.input)) && (o2.from < o2.to || !t3.overlay)) { + o2.tree || B(o2); + let a3 = e3.findMounts(o2.from, t3.parser); + if ("function" == typeof t3.overlay) i3 = new L(t3.parser, t3.overlay, a3, this.inner.length, o2.from, o2.tree, i3); + else { + let e4 = W(this.ranges, t3.overlay || (o2.from < o2.to ? [new r2(o2.from, o2.to)] : [])); + e4.length && F(e4), !e4.length && t3.overlay || this.inner.push(new M(t3.parser, e4.length ? t3.parser.startParse(this.input, Y(a3, e4), e4) : t3.parser.startParse(""), t3.overlay ? t3.overlay.map((e5) => new r2(e5.from - o2.from, e5.to - o2.from)) : null, o2.tree, e4.length ? e4[0].from : o2.from)), t3.overlay ? e4.length && (n3 = { ranges: e4, depth: 0, prev: n3 }) : l2 = false; + } + } else if (i3 && (s2 = i3.predicate(o2)) && (true === s2 && (s2 = new r2(o2.from, o2.to)), s2.from < s2.to)) { + let e4 = i3.ranges.length - 1; + e4 >= 0 && i3.ranges[e4].to == s2.from ? i3.ranges[e4] = { from: i3.ranges[e4].from, to: s2.to } : i3.ranges.push(s2); + } + if (l2 && o2.firstChild()) i3 && i3.depth++, n3 && n3.depth++; + else for (; !o2.nextSibling(); ) { + if (!o2.parent()) break e; + if (i3 && !--i3.depth) { + let e4 = W(this.ranges, i3.ranges); + e4.length && (F(e4), this.inner.splice(i3.index, 0, new M(i3.parser, i3.parser.startParse(this.input, Y(i3.mounts, e4), e4), i3.ranges.map((e5) => new r2(e5.from - i3.start, e5.to - i3.start)), i3.target, e4[0].from))), i3 = i3.prev; + } + n3 && !--n3.depth && (n3 = n3.prev); + } + } + } + } + function V(e3, t3, i3) { + for (let n3 of e3) { + if (n3.from >= i3) break; + if (n3.to > t3) return n3.from <= t3 && n3.to >= i3 ? 2 : 1; + } + return 0; + } + function U(e3, t3, i3, n3, r3, o2) { + if (t3 < i3) { + let a2 = e3.buffer[t3 + 1]; + n3.push(e3.slice(t3, i3, a2)), r3.push(a2 - o2); + } + } + function B(e3) { + let { node: t3 } = e3, i3 = [], n3 = t3.context.buffer; + do { + i3.push(e3.index), e3.parent(); + } while (!e3.tree); + let r3 = e3.tree, o2 = r3.children.indexOf(n3), a2 = r3.children[o2], s2 = a2.buffer, u2 = [o2]; + r3.children[o2] = (function e4(n4, r4, o3, l2, d2, c2) { + let p2 = i3[c2], h2 = [], m2 = []; + U(a2, n4, p2, h2, m2, l2); + let g2 = s2[p2 + 1], f2 = s2[p2 + 2]; + u2.push(h2.length); + let T2 = c2 ? e4(p2 + 4, s2[p2 + 3], a2.set.types[s2[p2]], g2, f2 - g2, c2 - 1) : t3.toTree(); + return h2.push(T2), m2.push(g2 - l2), U(a2, s2[p2 + 3], r4, h2, m2, l2), new _(o3, h2, m2, d2); + })(0, s2.length, l.none, 0, a2.length, i3.length - 1); + for (let t4 of u2) { + let i4 = e3.tree.children[t4], n4 = e3.tree.positions[t4]; + e3.yield(new y(i4, n4 + e3.from, t4, e3._tree)); + } + } + class G { + constructor(e3, i3) { + this.offset = i3, this.done = false, this.cursor = e3.cursor(t2.IterMode.IncludeAnonymous | t2.IterMode.IgnoreMounts); + } + moveTo(e3) { + let { cursor: i3 } = this, n3 = e3 - this.offset; + for (; !this.done && i3.from < n3; ) i3.to >= e3 && i3.enter(n3, 1, t2.IterMode.IgnoreOverlays | t2.IterMode.ExcludeBuffers) || i3.next(false) || (this.done = true); + } + hasNode(e3) { + if (this.moveTo(e3.from), !this.done && this.cursor.from + this.offset == e3.from && this.cursor.tree) for (let t3 = this.cursor.tree; ; ) { + if (t3 == e3.tree) return true; + if (!(t3.children.length && 0 == t3.positions[0] && t3.children[0] instanceof _)) break; + t3 = t3.children[0]; + } + return false; + } + } + class j { + constructor(e3) { + var t3; + if (this.fragments = e3, this.curTo = 0, this.fragI = 0, e3.length) { + let i3 = this.curFrag = e3[0]; + this.curTo = null !== (t3 = i3.tree.prop(x)) && void 0 !== t3 ? t3 : i3.to, this.inner = new G(i3.tree, -i3.offset); + } else this.curFrag = this.inner = null; + } + hasNode(e3) { + for (; this.curFrag && e3.from >= this.curTo; ) this.nextFrag(); + return this.curFrag && this.curFrag.from <= e3.from && this.curTo >= e3.to && this.inner.hasNode(e3); + } + nextFrag() { + var e3; + if (this.fragI++, this.fragI == this.fragments.length) this.curFrag = this.inner = null; + else { + let t3 = this.curFrag = this.fragments[this.fragI]; + this.curTo = null !== (e3 = t3.tree.prop(x)) && void 0 !== e3 ? e3 : t3.to, this.inner = new G(t3.tree, -t3.offset); + } + } + findMounts(e3, t3) { + var i3; + let n3 = []; + if (this.inner) { + this.inner.cursor.moveTo(e3, 1); + for (let e4 = this.inner.cursor.node; e4; e4 = e4.parent) { + let r3 = null === (i3 = e4.tree) || void 0 === i3 ? void 0 : i3.prop(o.mounted); + if (r3 && r3.parser == t3) for (let t4 = this.fragI; t4 < this.fragments.length; t4++) { + let i4 = this.fragments[t4]; + if (i4.from >= e4.to) break; + i4.tree == this.curFrag.tree && n3.push({ frag: i4, pos: e4.from - i4.offset, mount: r3 }); + } + } + } + return n3; + } + } + function W(e3, t3) { + let i3 = null, n3 = t3; + for (let o2 = 1, a2 = 0; o2 < e3.length; o2++) { + let s2 = e3[o2 - 1].to, l2 = e3[o2].from; + for (; a2 < n3.length; a2++) { + let e4 = n3[a2]; + if (e4.from >= l2) break; + e4.to <= s2 || (i3 || (n3 = i3 = t3.slice()), e4.from < s2 ? (i3[a2] = new r2(e4.from, s2), e4.to > l2 && i3.splice(a2 + 1, 0, new r2(l2, e4.to))) : e4.to > l2 ? i3[a2--] = new r2(l2, e4.to) : i3.splice(a2--, 1)); + } + } + return n3; + } + function q(e3, t3, i3, n3) { + let o2 = 0, a2 = 0, s2 = false, l2 = false, u2 = -1e9, d2 = []; + for (; ; ) { + let c2 = o2 == e3.length ? 1e9 : s2 ? e3[o2].to : e3[o2].from, p2 = a2 == t3.length ? 1e9 : l2 ? t3[a2].to : t3[a2].from; + if (s2 != l2) { + let e4 = Math.max(u2, i3), t4 = Math.min(c2, p2, n3); + e4 < t4 && d2.push(new r2(e4, t4)); + } + if (u2 = Math.min(c2, p2), 1e9 == u2) break; + c2 == u2 && (s2 ? (s2 = false, o2++) : s2 = true), p2 == u2 && (l2 ? (l2 = false, a2++) : l2 = true); + } + return d2; + } + function Y(e3, t3) { + let i3 = []; + for (let { pos: n3, mount: o2, frag: a2 } of e3) { + let e4 = n3 + (o2.overlay ? o2.overlay[0].from : 0), s2 = e4 + o2.tree.length, l2 = Math.max(a2.from, e4), u2 = Math.min(a2.to, s2); + if (o2.overlay) { + let s3 = q(t3, o2.overlay.map((e5) => new r2(e5.from + n3, e5.to + n3)), l2, u2); + for (let t4 = 0, n4 = l2; ; t4++) { + let r3 = t4 == s3.length, l3 = r3 ? u2 : s3[t4].from; + if (l3 > n4 && i3.push(new D(n4, l3, o2.tree, -e4, a2.from >= n4 || a2.openStart, a2.to <= l3 || a2.openEnd)), r3) break; + n4 = s3[t4].to; + } + } else i3.push(new D(l2, u2, o2.tree, -e4, a2.from >= e4 || a2.openStart, a2.to <= s2 || a2.openEnd)); + } + return i3; + } + t2.DefaultBufferLength = i2, t2.MountedTree = a, t2.NodeProp = o, t2.NodeSet = u, t2.NodeType = l, t2.NodeWeakMap = class { + constructor() { + this.map = /* @__PURE__ */ new WeakMap(); + } + setBuffer(e3, t3, i3) { + let n3 = this.map.get(e3); + n3 || this.map.set(e3, n3 = /* @__PURE__ */ new Map()), n3.set(t3, i3); + } + getBuffer(e3, t3) { + let i3 = this.map.get(e3); + return i3 && i3.get(t3); + } + set(e3, t3) { + e3 instanceof O ? this.setBuffer(e3.context.buffer, e3.index, t3) : e3 instanceof y && this.map.set(e3.tree, t3); + } + get(e3) { + return e3 instanceof O ? this.getBuffer(e3.context.buffer, e3.index) : e3 instanceof y ? this.map.get(e3.tree) : void 0; + } + cursorSet(e3, t3) { + e3.buffer ? this.setBuffer(e3.buffer.buffer, e3.index, t3) : this.map.set(e3.tree, t3); + } + cursorGet(e3) { + return e3.buffer ? this.getBuffer(e3.buffer.buffer, e3.index) : this.map.get(e3.tree); + } + }, t2.Parser = class { + startParse(e3, t3, i3) { + return "string" == typeof e3 && (e3 = new P(e3)), i3 = i3 ? i3.length ? i3.map((e4) => new r2(e4.from, e4.to)) : [new r2(0, 0)] : [new r2(0, e3.length)], this.createParse(e3, t3 || [], i3); + } + parse(e3, t3, i3) { + let n3 = this.startParse(e3, t3, i3); + for (; ; ) { + let e4 = n3.advance(); + if (e4) return e4; + } + } + }, t2.Tree = _, t2.TreeBuffer = m, t2.TreeCursor = C, t2.TreeFragment = D, t2.parseMixed = function(e3) { + return (t3, i3, n3, r3) => new k(t3, e3, i3, n3, r3); + }; + }, 52706: (e2, t2, i2) => { + const n2 = i2(45214), r2 = i2(90807); + function o() { + Object.defineProperties(this, { _value: { writable: true } }), this.name = void 0, this.referenceId = void 0, o.baseConstructor.apply(this, arguments); + } + n2.extend(o, "DataPairCollectionModel"), Object.defineProperties(o.prototype, { pasteReIdOrRename: { value: function(e3) { + for (let t3 = 0; t3 < this.value.length; t3++) this.value[t3].pasteReIdOrRename(e3); + } }, pasteResolveOldToNewValues: { value: function(e3) { + for (let t3 = 0; t3 < this.value.length; t3++) this.value[t3].pasteResolveOldToNewValues(e3); + this.referenceId = e3.pasteResolveOldIdToNewId(this.referenceId); + } }, isDataPairCollectionModel: { value: true }, value: { enumerable: true, get: function() { + return this._value; + }, set: function(e3) { + this._value = this.reviveArray(e3, r2); + } } }), e2.exports = o; + }, 52722: (e2, t2, i2) => { + function n2() { + this.name = void 0, this.id = void 0, this.description = void 0, n2.baseConstructor.apply(this, arguments); + } + i2(45214).extend(n2, "NameIdModel"), Object.defineProperties(n2.prototype, { displayName: { get: function() { + return this.name; + }, set: function(e3) { + this.name = e3; + } }, label: { get: function() { + return this.name; + }, set: function(e3) { + this.name = e3; + } } }), e2.exports = n2; + }, 52800: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = i2(17604), o = n2.__importDefault(i2(92140)), a = i2(69675), s = i2(47957); + class l { + constructor() { + Object.defineProperties(this, { _builderViewModel: { writable: true, enumerable: false }, _builderPartViewModel: { writable: true, enumerable: false }, _builderPartContainerViewModel: { writable: true, enumerable: false }, _isContainerRelated: { value: false, writable: true, enumerable: false }, _isBuilderPartDefRelated: { value: false, writable: true, enumerable: false }, _message: { writable: true, enumerable: false }, _type: { value: a.none, writable: true, enumerable: false } }); + } + static createForBuilder(e3, t3, i3, n3) { + return new l().setType(e3).setMessage(t3).setBuilder(i3).setIsContainerRelated(n3); + } + static createForBuilderPart(e3, t3, i3, n3, r3, o2, a2) { + return new l().setType(e3).setMessage(t3).setBuilder(i3).setBuilderPartContainer(r3).setBuilderPart(o2).setIsContainerRelated(n3).setIsBuilderPartDefRelated(a2); + } + static createForBuilderPartContainer(e3, t3, i3, n3, r3) { + return new l().setType(e3).setMessage(t3).setBuilder(i3).setBuilderPartContainer(r3).setIsContainerRelated(n3); + } + hasId(e3) { + return !(!o.default.isString(e3) || 0 === e3.length || this.builderId !== e3 && this.builderContainerPartId !== e3 && this.builderPartId !== e3); + } + get builderViewModel() { + return this._builderViewModel; + } + get builderId() { + return this._builderViewModel ? this._builderViewModel.id : void 0; + } + get builderDefId() { + return this._builderViewModel ? this._builderViewModel.builderDefId : void 0; + } + get builderContainerPartId() { + return this._builderPartContainerViewModel ? this._builderPartContainerViewModel.id : void 0; + } + get builderContainerPartDefId() { + return this._builderPartContainerViewModel ? this._builderPartContainerViewModel.builderPartDefId : void 0; + } + get builderPartContainerViewModel() { + return this._builderPartContainerViewModel; + } + get className() { + return "BuilderObjectValidationResult"; + } + get isBuilderObjectValidationResult() { + return true; + } + get builderPartIndex() { + return this._builderPartViewModel ? this._builderPartContainerViewModel && this._builderPartContainerViewModel.builderParts ? this._builderPartContainerViewModel.builderPartsManager.getIndexForPart(this.builderPartId) : this._builderViewModel && this._builderViewModel.builderParts ? this._builderViewModel.builderPartsManager.getIndexForPart(this.builderPartId) : -1 : -1; + } + get builderPartDisplayIndex() { + const e3 = this.builderPartIndex; + return -1 === e3 ? -1 : e3 + 1; + } + get builderPartId() { + return this._builderPartViewModel ? this._builderPartViewModel.id : void 0; + } + get builderPartDefId() { + return this._builderPartViewModel ? this._builderPartViewModel.defId : void 0; + } + get builderPartViewModel() { + return this._builderPartViewModel; + } + get message() { + return this._message; + } + get messageFull() { + const e3 = this._builderPartContainerViewModel ? this._builderPartContainerViewModel.containerDisplayString : void 0, t3 = this.builderPartDisplayIndex; + return o.default.isString(e3) && e3.length ? t3 > -1 ? (0, r2.sprintf)(s.builders.validationMessage.withContainerAndIndex, e3, t3, this.message) : (0, r2.sprintf)(s.builders.validationMessage.withContainer, e3, this.message) : t3 > -1 ? (0, r2.sprintf)(s.builders.validationMessage.withIndex, t3, this.message) : this.message; + } + get type() { + return this._type; + } + get isContainerRelated() { + return this._isContainerRelated; + } + get isBuilderPartDefRelated() { + return this._isBuilderPartDefRelated; + } + get guxAccent() { + return this.isError ? "error" : this.isWarning ? "warning" : this.isInfo ? "info" : void 0; + } + get isError() { + return this._type === a.error; + } + get isInfo() { + return this._type === a.info; + } + get isWarning() { + return this._type === a.warning; + } + getIsRollupForBuilderObject(e3) { + if (o.default.isString(e3)) { + if (this.builderId === e3) return o.default.isString(this.builderContainerPartId) || o.default.isString(this.builderPartId); + if (this.builderContainerPartId === e3) return o.default.isString(this.builderPartId); + } + return false; + } + getIsPartInContainerPart(e3) { + return this.builderContainerPartId === e3 && this.builderPartId; + } + getIsPartOrContainerPartResult() { + return this.builderPartId || this.builderContainerPartId; + } + setBuilder(e3) { + return this._builderViewModel = e3, this; + } + setIsContainerRelated(e3) { + return this._isContainerRelated = !!e3, this; + } + setIsBuilderPartDefRelated(e3) { + return this._isBuilderPartDefRelated = !!e3, this; + } + setBuilderPart(e3) { + return this._builderPartViewModel = e3, this; + } + setBuilderPartContainer(e3) { + return this._builderPartContainerViewModel = e3, this; + } + setMessage(e3) { + return this._message = e3, this; + } + setType(e3) { + return this._type = e3, this; + } + _reset() { + this._builderViewModel = void 0, this._builderPartViewModel = void 0, this._builderPartContainerViewModel = void 0, this._message = void 0, this._type = a.none; + } + destroy() { + this._reset(); + } + } + t2.default = l; + }, 52816: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = i2(17604), o = n2.__importStar(i2(5587)), a = i2(43212), s = i2(47957); + class l extends a.BaseConfigurationListViewModel { + constructor(e3) { + super(e3); + } + get className() { + return "KnowledgeBaseViewModel"; + } + get getConfiguration() { + return this.model; + } + get knowledgeBaseId() { + return this.model.id; + } + get id() { + return this.model.id; + } + get label() { + return this.model.name; + } + get knowledgeBaseName() { + return this.model.name; + } + get name() { + return this.model.name; + } + get faqCount() { + return this.model.faqCount; + } + get description() { + return this.model.dateDocumentLastModified ? (0, r2.sprintf)(s.knowledgeSettings.knowledgeBaseItemDescription, o.dateTimeToDisplay(this.model.dateDocumentLastModified)) : (0, r2.sprintf)(s.knowledgeSettings.knowledgeBaseItemCreatedDescription, o.dateTimeToDisplay(this.model.dateCreated)); + } + get detailDescription() { + return this.model.description ? this.model.description : s.knowledgeSettings.knowledgeNoDescription; + } + get coreLanguage() { + return this.model.coreLanguage; + } + get dateCreated() { + return this.model.dateCreated; + } + get dateModified() { + return this.model.dateModified; + } + get dateDocumentLastModified() { + return this.model.dateDocumentLastModified; + } + get articleCount() { + return this.model.articleCount; + } + get contentSearchEnabled() { + return this.model.contentSearchEnabled; + } + } + t2.default = l; + }, 52828: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importDefault(i2(94225)), o = i2(98835), a = n2.__importDefault(i2(45894)); + class s extends a.default { + constructor(e3) { + super(e3, o.groupManager); + } + get _globalTypeName() { + return "group"; + } + get displayTypeName() { + return "ArchValueGroup"; + } + get isArchValueGroup() { + return true; + } + setLiteralByGroupIdAsync(e3, t3) { + return n2.__awaiter(this, void 0, void 0, function* () { + return this._checkItemIsValidLiteralString(this._infoParm("groupId", "setLiteralByGroupIdAsync"), e3), this._checkItemIsValidFunction(this._infoParm("callbackFunction", "setLiteralByGroupIdAsync"), t3, true), this._setLiteralByIdAsync(e3).then(() => r2.default.executeCallback(this, "setLiteralByGroupIdAsync", t3, this)); + }); + } + setLiteralByGroupNameAsync(e3, t3) { + return n2.__awaiter(this, void 0, void 0, function* () { + return this._checkItemIsValidLiteralString(this._infoParm("groupName", "setLiteralByGroupNameAsync"), e3), this._checkItemIsValidFunction(this._infoParm("callbackFunction", "setLiteralByGroupNameAsync"), t3, true), this._setLiteralByValueAsync(e3).then(() => r2.default.executeCallback(this, "setLiteralByGroupNameAsync", t3, this)); + }); + } + } + t2.default = s; + }, 52834: (e2) => { + "use strict"; + var t2 = /[|\\{}()[\]^$+*?.]/g; + e2.exports = function(e3) { + if ("string" != typeof e3) throw new TypeError("Expected a string"); + return e3.replace(t2, "\\$&"); + }; + }, 52852: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(8471)); + class r2 extends n2.default { + static createObjectPropertyAccessItem(e3, t3, i3, n3) { + const o = new r2(); + return o._archBaseCoreObject = e3, o._hierarchyStr = n3, o._propertyName = t3, o._propArrayIndex = i3, o; + } + get displayTypeName() { + return "ArchTraverseHierarchyItem"; + } + get archBaseObject() { + return this._archBaseCoreObject; + } + get hierarchyStr() { + return this._hierarchyStr; + } + get index() { + return this._propArrayIndex; + } + get isArchTraverseHierarchyItem() { + return true; + } + get logStr() { + const e3 = []; + return this._appendLogStrType(e3, this.displayTypeName), this._appendLogStrHierarchyStr(e3, this.hierarchyStr), this._createLogStrFromParts(e3); + } + get propertyName() { + return this._propertyName; + } + } + t2.default = r2; + }, 52901: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(54063)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "customerIntentCollection"; + } + get displayTypeName() { + return "ArchValueCustomerIntentCollection"; + } + get isArchValueCustomerIntentCollection() { + return true; + } + } + t2.default = r2; + }, 52910: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importStar(i2(63824)), o = n2.__importStar(i2(63352)), a = n2.__importDefault(i2(61086)), s = n2.__importDefault(i2(27203)), l = n2.__importDefault(i2(73198)), u = i2(79467), d = i2(47628), c = i2(80428), p = i2(40174), _ = i2(47957); + i2(69823); + class h extends a.default { + constructor(e3, t3, i3) { + super(e3, t3, i3), this.allowSecure = false, this.allowErrorSchema = false; + } + static get branchInfo() { + return s.default.successFailureTimeout; + } + static get managedProperties() { + const e3 = [{ allowSecure: true, dataList: true, isOutput: true, property: "outputs", yamlOptions: h.createYamlOptions("outputs", (e4) => e4.setPropertyName("successOutputs")) }, { label: _.bridgeServer.timeout, property: "timeout", options: u.ExpressionTypeDurationOptions.create((e4) => e4.setIninTestingField("cbaTimeout").setDurationStyle(r2.durationStyles.minutesSecondsAndMsDuration).facets.setMinDur(1, true)), yamlOptions: h.createYamlOptions("timeout", (e4) => e4.setExportOrder(40)), type: c.expressionTypeNames.duration }, { createDetails: d.ServerActionTimeoutSettings.createCreateDetails(l.default.litDurationOneMinute), property: "serverActionTimeoutSettings", yamlOptions: h.createYamlOptions("serverActionTimeoutSettings", (e4) => e4.setSkipProperty(true)) }]; + return e3.push(a.default.createProcessingManagedExpression()), e3; + } + loadDataSchemas(e3) { + return e3 ? p.getAction(e3.id).then(function(t3) { + return e3.model = t3, e3.schemasNotLoaded = false, this.serverManager.addItem(t3, true), e3; + }.bind(this)) : Promise.resolve(); + } + validate(e3) { + switch (super.validate(e3), this.timeout.mode) { + case o.expression: + this.timeout.options.literalOnly && e3.addError(this, _.expression.expressionModeNotAllowed); + break; + case o.builder: + this.timeout.options.literalOnly && e3.addError(this, _.expression.builderModeNotAllowed); + } + } + get yamlActionSectionName() { + return "dataAction"; + } + } + h.className = "BaseIntegrationsAction", t2.default = h; + }, 53e3: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.timeZoneService = void 0; + const n2 = i2(31635), r2 = i2(17604), o = n2.__importDefault(i2(92140)), a = i2(24032), s = n2.__importStar(i2(74359)), l = n2.__importDefault(i2(41510)), u = i2(26031), d = (0, a.getTopic)("TimeZoneService"); + t2.timeZoneService = new class { + constructor() { + this._rawTimeZoneData = {}, this._timeZones = [], (() => { + n2.__awaiter(this, void 0, void 0, function* () { + try { + yield this._getTimeZone(); + } catch (e3) { + d.exception(e3, "error caught getting time zones in timeZoneService constructor"); + } + }); + })(); + } + _getTimeZone() { + return n2.__awaiter(this, void 0, void 0, function* () { + yield s.getAuthorizedPromise(); + try { + const e3 = yield u.getTimeZones(); + this._rawTimeZoneData = e3.entities, o.default.each(this._rawTimeZoneData, (e4) => { + const t3 = Math.abs(e4.offset); + this._timeZones.push({ id: e4.id, offset: e4.offset, displayString: (0, r2.sprintf)(l.default.timezone.displayString, e4.offset < 0 ? "-" : "+", Math.trunc(t3 / 60), t3 % 60) }); + }); + } catch (e3) { + d.exceptionWarning(e3, "failed to get timezones"); + } + }); + } + timeZoneKeyIsValid(e3) { + return !o.default.isUndefined(this.timeZoneData[e3]); + } + get timeZoneData() { + return this._rawTimeZoneData; + } + get timeZones() { + return this._timeZones; + } + getTimeZoneOffset(e3) { + return this._rawTimeZoneData[e3]; + } + }(); + }, 53067: (e2) => { + var t2; + window, t2 = function() { + return (function(e3) { + var t3 = {}; + function i2(n2) { + if (t3[n2]) return t3[n2].exports; + var r2 = t3[n2] = { i: n2, l: false, exports: {} }; + return e3[n2].call(r2.exports, r2, r2.exports, i2), r2.l = true, r2.exports; + } + return i2.m = e3, i2.c = t3, i2.d = function(e4, t4, n2) { + i2.o(e4, t4) || Object.defineProperty(e4, t4, { enumerable: true, get: n2 }); + }, i2.r = function(e4) { + "undefined" != typeof Symbol && Symbol.toStringTag && Object.defineProperty(e4, Symbol.toStringTag, { value: "Module" }), Object.defineProperty(e4, "__esModule", { value: true }); + }, i2.t = function(e4, t4) { + if (1 & t4 && (e4 = i2(e4)), 8 & t4) return e4; + if (4 & t4 && "object" == typeof e4 && e4 && e4.__esModule) return e4; + var n2 = /* @__PURE__ */ Object.create(null); + if (i2.r(n2), Object.defineProperty(n2, "default", { enumerable: true, value: e4 }), 2 & t4 && "string" != typeof e4) for (var r2 in e4) i2.d(n2, r2, function(t5) { + return e4[t5]; + }.bind(null, r2)); + return n2; + }, i2.n = function(e4) { + var t4 = e4 && e4.__esModule ? function() { + return e4.default; + } : function() { + return e4; + }; + return i2.d(t4, "a", t4), t4; + }, i2.o = function(e4, t4) { + return Object.prototype.hasOwnProperty.call(e4, t4); + }, i2.p = "", i2(i2.s = 2); + })([, function(e3, t3, i2) { + "use strict"; + Object.defineProperty(t3, "__esModule", { value: true }), t3.AUTH_TOKEN_KEY = "gcui_auth", t3.STORAGE_OBJ = window.sessionStorage, t3.CLIENT_401_MESSAGE_TYPE = "clientCredentialExpiration"; + }, function(e3, t3, i2) { + "use strict"; + Object.defineProperty(t3, "__esModule", { value: true }); + const n2 = i2(1); + t3.sendTokenToClients = function(e4) { + n2.STORAGE_OBJ.setItem(n2.AUTH_TOKEN_KEY, e4); + }, t3.onClient401 = function(e4) { + window.addEventListener("message", (t4) => { + t4.data.type === n2.CLIENT_401_MESSAGE_TYPE && null !== t4.data.clientId && e4({ client: t4.data.clientId, origin: t4.origin }); + }); + }; + }]); + }, e2.exports = t2(); + }, 53097: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(54063)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "workbinCollection"; + } + get displayTypeName() { + return "ArchValueWorkbinCollection"; + } + get isArchValueWorkbinCollection() { + return true; + } + } + t2.default = r2; + }, 53128: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.getAllHandlingTypes = function() { + return u; + }, t2.getHandlingTypesForFlowType = function(e3) { + switch (e3) { + case r2.flowTypes.flowTypeBot: + case r2.flowTypes.flowTypeDigitalBot: + case r2.flowTypes.flowTypeVoice: + return c; + case r2.flowTypes.flowTypeVoiceSurvey: + return p; + case r2.flowTypes.flowTypeCommonModule: + return d; + case r2.flowTypes.flowTypeInboundCall: + case r2.flowTypes.flowTypeOutboundCall: + case r2.flowTypes.flowTypeSecureCall: + case r2.flowTypes.flowTypeVoicemail: + return h; + case r2.flowTypes.flowTypeInQueueCall: + return m; + case r2.flowTypes.flowTypeInQueueEmail: + case r2.flowTypes.flowTypeInQueueShortMessage: + return l.isFeatureAvailable(a.default.transferToQueueErrorHandlingAutomate) ? [...g, o.default.Queue] : g; + case r2.flowTypes.flowTypeInboundEmail: + case r2.flowTypes.flowTypeInboundShortMessage: + case r2.flowTypes.flowTypeInboundChat: + return f; + case r2.flowTypes.flowTypeSurveyInvite: + return d; + case r2.flowTypes.flowTypeWorkflow: + return T; + case r2.flowTypes.flowTypeWorkitem: + return _; + case r2.flowTypes.flowTypeEmailSend: + return y; + default: + return s.error(`error handling types - unhandled flowType: ${e3}`), u; + } + }, t2.getFeatureForErrorHandlingType = function(e3, t3) { + if (e3 && e3.value === o.default.Queue.value) switch (t3) { + case r2.flowTypes.flowTypeInQueueEmail: + case r2.flowTypes.flowTypeInQueueShortMessage: + return a.default.transferToQueueErrorHandlingAutomate; + } + }; + const n2 = i2(31635), r2 = i2(96618), o = n2.__importDefault(i2(15244)), a = n2.__importDefault(i2(4648)), s = n2.__importStar(i2(12847)), l = n2.__importStar(i2(10798)), u = [o.default.AbortSend, o.default.CompleteSend, o.default.Disconnect, o.default.EndFlow, o.default.EndInQueueState, o.default.EndWorkflow, o.default.Exit, o.default.Menu, o.default.Queue, o.default.State, o.default.Task], d = [], c = [o.default.Exit, o.default.Disconnect], p = [o.default.Disconnect], _ = [o.default.EndFlow], h = [o.default.Disconnect, o.default.Queue, o.default.Menu, o.default.Task], m = [o.default.Disconnect, o.default.Queue], g = [o.default.EndInQueueState, o.default.EndFlow], f = [o.default.Disconnect, o.default.Queue], T = [o.default.EndWorkflow, o.default.State], y = [o.default.AbortSend, o.default.CompleteSend]; + }, 53197: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.publish = void 0; + var n2 = i2(76808), r2 = i2(18464), o = i2(17812); + t2.publish = function(e3) { + return e3 ? function(t3) { + return o.connect(e3)(t3); + } : function(e4) { + return r2.multicast(new n2.Subject())(e4); + }; + }; + }, 53269: (e2) => { + "use strict"; + e2.exports = function(e3, t2, i2, n2) { + for (var r2 = 65535 & e3, o = e3 >>> 16 & 65535, a = 0; 0 !== i2; ) { + i2 -= a = i2 > 2e3 ? 2e3 : i2; + do { + o = o + (r2 = r2 + t2[n2++] | 0) | 0; + } while (--a); + r2 %= 65521, o %= 65521; + } + return r2 | o << 16; + }; + }, 53314: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.PromptContainer = void 0; + const n2 = i2(31635), r2 = i2(80295), o = i2(80295), a = i2(84050), s = i2(94729); + class l extends a.NameIdDescriptionModel { + constructor(e3) { + super(e3), (0, o.makeUnenumerable)(this, "_resources"); + } + get className() { + return "PromptContainer"; + } + get resources() { + return this._resources; + } + set resources(e3) { + this._resources = this.reviveArray(e3, s.PromptResource); + } + } + t2.PromptContainer = l, l.keyProperty = "name", n2.__decorate([(0, r2.enumerable)(true), n2.__metadata("design:type", Array), n2.__metadata("design:paramtypes", [Array])], l.prototype, "resources", null); + }, 53318: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(83663)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "timeslot"; + } + get displayTypeName() { + return "ArchValueTimeslot"; + } + get isArchValueTimeslot() { + return true; + } + get duration() { + return this._getAssignableProperty("duration"); + } + get dateTime() { + return this._getAssignableProperty("dateTime"); + } + setLiteralDateTimeAndDuration(e3, t3) { + this.dateTime.setLiteralDateTime(e3), this.duration.setLiteralMs(t3); + } + } + t2.default = r2; + }, 53397: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.PromptType = void 0; + const n2 = i2(31635), r2 = i2(17604), o = n2.__importDefault(i2(92140)), a = i2(58525), s = n2.__importStar(i2(43011)), l = n2.__importStar(i2(27854)), u = i2(80428), d = i2(94765), c = i2(47957); + function p(e3, t3, i3) { + t3.setParseError(i3), e3.addError(t3, i3, void 0, true); + } + function _(e3, t3) { + var i3; + let n3; + return !((!t3.options || !t3.options.isOutput) && (t3.text ? (n3 = s.getItem(t3.val) || s.getItem(l.removePrefix(t3.text)), !n3 && (null === (i3 = t3.options) || void 0 === i3 ? void 0 : i3.systemPromptFilterNames) && (n3 = s.systemPromptListManager.findOrFetchItemByName(t3.text)), !n3 && (p(e3, t3, (0, r2.sprintf)(c.audio.errorPromptCouldNotBeFound, t3.text)), 1)) : (p(e3, t3, c.audio.errorNoPrompt), 1))); + } + class h extends d.ExpressionType { + constructor(e3, t3, i3) { + super(e3, t3, i3); + } + get className() { + return "PromptType"; + } + createExpressionOptionClass() { + return new a.ExpressionTypePromptOptions(); + } + get supportsLiteralEditor() { + return true; + } + canConvertLitToExpression(e3) { + return true; + } + convertLitToExpression(e3, t3, i3) { + return t3 ? l.addPrefix(t3, i3) : void 0; + } + getYamlObjectForLiteralSingleton(e3) { + super.getYamlObjectForLiteralSingleton(e3); + const t3 = l.addPrefix(e3.text, e3.val); + return o.default.tryWrapObject(t3, this.yamlLiteralWrapperString); + } + validateLiteral(e3, t3) { + return _(e3, t3); + } + validateVariable(e3, t3) { + return _(e3, t3); + } + isAvailableForFlow(e3) { + return e3.isCommonModuleFlow && !e3.isEmbeddedFlow ? !!e3.destinationFlowTypes.find((e4) => this.isAvailableForFlowType(e4, true)) : super.isAvailableForFlow(e3); + } + isUserCreatableForFlow(e3) { + return e3.definition.hasDestinationFlowTypes && !e3.isEmbeddedFlow ? this.model.support.userCanCreate && e3.destinationFlowTypes.every((e4) => this.isAvailableForFlowType(e4, true)) : super.isUserCreatableForFlow(e3); + } + } + t2.PromptType = h, h.typeIdentifier = u.expressionTypeNames.prompt; + }, 53474: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(28562), r2 = i2(69149), o = { _label: "BotSlotCont", availableLanguages: { "ar-ae": "defaultSequence", "ar-eg": "defaultSequence", "ar-sa": "defaultSequence", "ca-es": "defaultSequence", "cs-cz": "defaultSequence", "da-dk": "defaultSequence", "de-ch": "defaultSequence", "de-de": "defaultSequence", "el-gr": "defaultSequence", "en-au": "defaultSequence", "en-gb": "defaultSequence", "en-us": "defaultSequence", "es-es": "defaultSequence", "es-mx": "defaultSequence", "es-us": "defaultSequence", "eu-es": "defaultSequence", "fi-fi": "defaultSequence", "fil-ph": "defaultSequence", "fr-be": "defaultSequence", "fr-ca": "defaultSequence", "fr-fr": "defaultSequence", "he-il": "defaultSequence", "hi-in": "defaultSequence", "hu-hu": "defaultSequence", "it-it": "defaultSequence", "ja-jp": "defaultSequence", "ko-kr": "defaultSequence", "ms-my": "defaultSequence", "nb-no": "defaultSequence", "nl-be": "defaultSequence", "nl-nl": "defaultSequence", "pl-pl": "defaultSequence", "pt-br": "defaultSequence", "pt-pt": "defaultSequence", "ru-ru": "defaultSequence", "sv-se": "defaultSequence", "th-th": "defaultSequence", "tr-tr": "defaultSequence", "uk-ua": "defaultSequence", "vi-vn": "defaultSequence", "zh-cn": "defaultSequence", "zh-hk": "defaultSequence", "zh-tw": "defaultSequence" }, builderId: n2.builderIds.parts.genericCommunication, flowTypeOverrides: { digitalbot: { builderId: n2.builderIds.parts.markdownCommunication, languageSequences: { defaultSequence: { _label: "bot_slot_cont", partContents: [{ builderPartId: r2.builderPartIds.communication.text, parameters: { templateNoOverlaySection: "iGotContinuation", templateNoOverlaySectionKey: "iGotContinuationStr1" } }, { builderPartId: r2.builderPartIds.communication.data, parameters: { reference: "$askResultVariable" } }, { builderPartId: r2.builderPartIds.communication.text, parameters: { templateNoOverlaySection: "iGotContinuation", templateNoOverlaySectionKey: "iGotContinuationStr2" } }] } } } }, languageSequences: { defaultSequence: { _label: "bot_slot_cont", parts: [{ builderPartId: r2.builderPartIds.communication.text, parameters: { templateNoOverlaySection: "iGotContinuation", templateNoOverlaySectionKey: "iGotContinuationStr1" } }, { builderPartId: r2.builderPartIds.communication.data, parameters: { reference: "$askResultVariable" } }, { builderPartId: r2.builderPartIds.communication.text, parameters: { templateNoOverlaySection: "iGotContinuation", templateNoOverlaySectionKey: "iGotContinuationStr2" } }] } } }; + t2.default = o; + }, 53476: (e2, t2) => { + "use strict"; + function i2(e3) { + return function(t3) { + return t3 && true === t3[e3]; + }; + } + function n2(e3) { + return function(t3) { + return t3 && true === t3[e3]; + }; + } + function r2(e3) { + return function(t3) { + return t3 && t3.isNormalExpression && e3(t3.options); + }; + } + var o; + Object.defineProperty(t2, "__esModule", { value: true }), t2.isCardExpression = t2.isCardCollection = t2.areOptionsCardType = t2.isStringExpression = t2.isChoiceExpression = t2.isCustomJsonExpressionType = t2.isChooserExpressionType = t2.isListPickerExpressionType = t2.isChoiceExpressionType = t2.isJsonExpressionType = t2.areOptionsChoiceType = t2.areOptionsCurrencyType = t2.areOptionsBooleanType = t2.areOptionsIntegerType = t2.areOptionsStringType = t2.areOptionsCustomJsonType = t2.areOptionsJsonType = void 0, t2.areOptionsJsonType = i2("isExpressionTypeJsonOptions"), t2.areOptionsCustomJsonType = i2("isCustomJsonType"), t2.areOptionsStringType = i2("isExpressionTypeStringOptions"), t2.areOptionsIntegerType = i2("isExpressionTypeIntegerOptions"), t2.areOptionsBooleanType = i2("isExpressionTypeBooleanOptions"), t2.areOptionsCurrencyType = i2("isExpressionTypeCurrencyOptions"), t2.areOptionsChoiceType = i2("isExpressionTypeChoiceOptions"), t2.isJsonExpressionType = n2("isJsonType"), t2.isChoiceExpressionType = n2("isChoiceType"), t2.isListPickerExpressionType = n2("isListPickerType"), t2.isChooserExpressionType = n2("isChooserType"), t2.isCustomJsonExpressionType = (e3) => (0, t2.isJsonExpressionType)(e3) && n2("isCustomType")(e3), t2.isChoiceExpression = r2(t2.areOptionsChoiceType), t2.isStringExpression = r2(t2.areOptionsStringType), t2.areOptionsCardType = i2("isExpressionTypeCardOptions"), t2.isCardCollection = (o = t2.areOptionsCardType, function(e3) { + return e3 && e3.isCollectionExpression && o(e3.options); + }), t2.isCardExpression = r2(t2.areOptionsCardType); + }, 53477: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.ExpressionTypeAssignedCustomerIntentOptions = void 0; + const n2 = i2(65615); + class r2 extends n2.BaseExpressionTypeCollectionOptions { + static create(e3, t3) { + return new this(t3).invokeOptionsCallback(e3); + } + constructor(e3) { + super(e3); + } + get className() { + return "ExpressionTypeAssignedCustomerIntentOptions"; + } + get isExpressionTypeAssignedCustomerIntentOptions() { + return true; + } + get supportsLiteralMode() { + return this.isCollection; + } + } + t2.ExpressionTypeAssignedCustomerIntentOptions = r2; + }, 53482: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.digitalBotConnectorVersionManager = t2.DigitalBotConnectorVersionManager = void 0; + const n2 = i2(31635), r2 = n2.__importDefault(i2(92140)), o = n2.__importStar(i2(35295)), a = n2.__importStar(i2(1360)), s = n2.__importStar(i2(24032)), l = i2(74267), u = n2.__importDefault(i2(47532)), d = i2(30801), c = i2(62902), p = i2(81801), _ = i2(47957), h = i2(58597), m = i2(27862); + class g extends u.default { + get requiredAuth() { + return p.externalAuthorizations.authStrings.botConnectorView; + } + get dependencyType() { + return m.DigitalBotConnector; + } + constructor() { + super(), this.topic = s.getTopic("DigitalBotConnectorVersionManager"), this.apiCallList = o.getDigitalBotConnectorBotVersions, this.apiCallSingle = o.getDigitalBotConnectorBotVersion, this._rawServerCache = {}, this.actionPropertyForUsageSearch = "version", this.actionsForUsageSearch = [d.digitalBotConnectorActionType], this.caseSensitiveIds = true, this.className = "DigitalBotConnectorVersionManager", this.defaultMatchingStyle = a.exactMatch, this.dependencyContext = _.botConnector.digitalBotConnectorVersion, this.idEquivalent = "archInternalId", this.isDependentOnCategory = true, this.searchField = "name", this.securityError = true, this.suppressSearch = true, this.uiMetadataSectionName = "digitalBotConnectorVersion", this._initialize(); + } + addItem(e3, t3, i3) { + e3.isFromAdsValidationResults && (c.digitalBotConnectorManager.createAndAddBot(e3.id, e3.name, e3.botId, e3.integrationId), e3 = o.ensureCorrectVersionProperties(e3, null, e3.id, e3.integrationId)); + const n3 = !!e3.intents; + return super.addItem(e3, n3); + } + addItemToFlowMetadata(e3, t3, i3) { + const n3 = r2.default.isFunction(null == e3 ? void 0 : e3.getUniqueBotRunnableId) ? e3.getUniqueBotRunnableId() : i3; + return super.addItemToFlowMetadata(e3, t3, n3); + } + get _networkModel() { + return h; + } + _createItemViewModel(e3) { + return new l.BotConnectorVersionViewModel(e3); + } + getItemFromFlowMetadata(e3, t3) { + const i3 = r2.default.isFunction(null == e3 ? void 0 : e3.getUniqueBotRunnableId) ? e3.getUniqueBotRunnableId() : t3, n3 = super.getItemFromFlowMetadata(e3, i3); + return n3 && (n3.model = o.ensureCorrectVersionProperties(n3.model, n3.botId, e3.bot.idValue, n3.integrationId)), n3; + } + getBotCategoryForBotRunnable(e3, t3) { + if (!r2.default.isString(e3)) return this.topic.error("Object passed to getBotCategoryForBotRunnable was not a string: " + e3), null; + const i3 = this.getItem(e3.toLowerCase(), t3); + return i3 ? c.digitalBotConnectorManager.getItem(i3.botId, t3) : null; + } + getItem(e3, t3) { + const i3 = t3, n3 = r2.default.isFunction(null == i3 ? void 0 : i3.getUniqueBotRunnableId) ? i3.getUniqueBotRunnableId() : e3; + return super.getItem(n3); + } + } + t2.DigitalBotConnectorVersionManager = g, t2.digitalBotConnectorVersionManager = new g(); + }, 53486: (e2, t2, i2) => { + const n2 = i2(14961), r2 = { replacementLastInput: "$collectInputLastInput", subExpressions: { asDigits: { _label: "input_as_individual_digits", ids: ["Audio_ONE ToAudioPhoneNumber(String_ONE)"], value: "ToAudioPhoneNumber($collectInputLastInput)" }, asNumeric: { _label: "input_as_number", ids: ["Audio_ONE ToAudioNumber(Decimal_ONE,Long_ONE)", "Decimal_ONE toDecimal(String_ONE)"], value: "ToAudioNumber(ToDecimal($collectInputLastInput), 0)" }, asNumericWithNeuterContext: { _label: "input_as_number", ids: ["Audio_ONE ToAudioNumber(Decimal_ONE,Long_ONE,LanguageContextEnum_ONE...)", "Decimal_ONE toDecimal(String_ONE)"], value: "ToAudioNumber(ToDecimal($collectInputLastInput), 0, Language.Gender.neuter)" }, blank: { _label: "blank_500ms", ids: ["Audio_ONE ToAudioBlank(Long_ONE)"], value: "ToAudioBlank(500)" } }, systemPrompts: { collect_digits_playback: "collect_digits_playback", collect_digits_playback_2: "collect_digits_playback_2", collect_digits_verify: "collect_digits_verify", collect_digits_verify_options: "collect_digits_verify_options" }, sequenceTypes: { tts: "tts", subExpression: "subExpression", systemPrompt: "systemPrompt" } }; + function o() { + o._super.constructor.call(this), Object.defineProperties(this, { _label: { value: "InputConf" }, className: { value: "CollectInputConfirmationSequences" }, parts: { value: r2 }, adsSectionName: { value: "collectInput" }, languageSequences: { value: { "da-dk": "mainSequence", "de-de": "localizedSequence3", "de-ch": "localizedSequence3", "el-gr": "mainSequence", "en-au": "mainSequence", "en-gb": "mainSequence", "en-us": "mainSequence", "es-es": "mainSequence", "es-us": "mainSequence", "fi-fi": "mainSequence", "fil-ph": "mainSequence", "fr-ca": "mainSequence", "fr-fr": "mainSequence", "it-it": "mainSequence", "ja-jp": "localizedSequence2", "ms-my": "mainSequence", "nb-no": "mainSequence", "nl-nl": "localizedSequence3", "pl-pl": "mainSequence", "pt-br": "mainSequence", "pt-pt": "mainSequence", "sv-se": "localizedSequence4", "th-th": "localizedSequence1", "zh-cn": "mainSequence", "zh-hk": "mainSequence", fallbackSequence: "fallbackSequence" } }, mainSequence: { value: { uniquedigits: { _label: "verify_with_unique_digits", conditions: [{ _label: "caller_input", sequence: [{ type: r2.sequenceTypes.systemPrompt, value: r2.systemPrompts.collect_digits_playback }, { type: r2.sequenceTypes.subExpression, value: r2.subExpressions.asDigits }, { type: r2.sequenceTypes.subExpression, value: r2.subExpressions.blank }, { type: r2.sequenceTypes.systemPrompt, value: r2.systemPrompts.collect_digits_verify }, { type: r2.sequenceTypes.subExpression, value: r2.subExpressions.blank }, { type: r2.sequenceTypes.systemPrompt, value: r2.systemPrompts.collect_digits_verify_options }] }] }, numeric: { _label: "verify_as_number", conditions: [{ _label: "caller_input", sequence: [{ type: r2.sequenceTypes.systemPrompt, value: r2.systemPrompts.collect_digits_playback }, { type: r2.sequenceTypes.subExpression, value: r2.subExpressions.asNumeric }, { type: r2.sequenceTypes.subExpression, value: r2.subExpressions.blank }, { type: r2.sequenceTypes.systemPrompt, value: r2.systemPrompts.collect_digits_verify }, { type: r2.sequenceTypes.subExpression, value: r2.subExpressions.blank }, { type: r2.sequenceTypes.systemPrompt, value: r2.systemPrompts.collect_digits_verify_options }] }] } } }, localizedSequence1: { value: { uniquedigits: { _label: "verify_with_unique_digits", conditions: [{ _label: "caller_input", sequence: [{ type: r2.sequenceTypes.systemPrompt, value: r2.systemPrompts.collect_digits_playback }, { type: r2.sequenceTypes.subExpression, value: r2.subExpressions.asDigits }, { type: r2.sequenceTypes.subExpression, value: r2.subExpressions.blank }, { type: r2.sequenceTypes.systemPrompt, value: r2.systemPrompts.collect_digits_verify }] }] }, numeric: { _label: "verify_as_number", conditions: [{ _label: "caller_input", sequence: [{ type: r2.sequenceTypes.systemPrompt, value: r2.systemPrompts.collect_digits_playback }, { type: r2.sequenceTypes.subExpression, value: r2.subExpressions.asNumeric }, { type: r2.sequenceTypes.subExpression, value: r2.subExpressions.blank }, { type: r2.sequenceTypes.systemPrompt, value: r2.systemPrompts.collect_digits_verify }] }] } } }, localizedSequence2: { value: { uniquedigits: { _label: "verify_with_unique_digits", conditions: [{ _label: "caller_input", sequence: [{ type: r2.sequenceTypes.subExpression, value: r2.subExpressions.asDigits }, { type: r2.sequenceTypes.subExpression, value: r2.subExpressions.blank }, { type: r2.sequenceTypes.systemPrompt, value: r2.systemPrompts.collect_digits_playback }, { type: r2.sequenceTypes.subExpression, value: r2.subExpressions.blank }, { type: r2.sequenceTypes.systemPrompt, value: r2.systemPrompts.collect_digits_verify }, { type: r2.sequenceTypes.subExpression, value: r2.subExpressions.blank }, { type: r2.sequenceTypes.systemPrompt, value: r2.systemPrompts.collect_digits_verify_options }] }] }, numeric: { _label: "verify_as_number", conditions: [{ _label: "caller_input", sequence: [{ type: r2.sequenceTypes.subExpression, value: r2.subExpressions.asNumeric }, { type: r2.sequenceTypes.subExpression, value: r2.subExpressions.blank }, { type: r2.sequenceTypes.systemPrompt, value: r2.systemPrompts.collect_digits_playback }, { type: r2.sequenceTypes.subExpression, value: r2.subExpressions.blank }, { type: r2.sequenceTypes.systemPrompt, value: r2.systemPrompts.collect_digits_verify }, { type: r2.sequenceTypes.subExpression, value: r2.subExpressions.blank }, { type: r2.sequenceTypes.systemPrompt, value: r2.systemPrompts.collect_digits_verify_options }] }] } } }, localizedSequence3: { value: { uniquedigits: { _label: "verify_with_unique_digits", conditions: [{ _label: "caller_input", sequence: [{ type: r2.sequenceTypes.systemPrompt, value: r2.systemPrompts.collect_digits_playback }, { type: r2.sequenceTypes.subExpression, value: r2.subExpressions.asDigits }, { type: r2.sequenceTypes.systemPrompt, value: r2.systemPrompts.collect_digits_playback_2 }, { type: r2.sequenceTypes.subExpression, value: r2.subExpressions.blank }, { type: r2.sequenceTypes.systemPrompt, value: r2.systemPrompts.collect_digits_verify }, { type: r2.sequenceTypes.subExpression, value: r2.subExpressions.blank }, { type: r2.sequenceTypes.systemPrompt, value: r2.systemPrompts.collect_digits_verify_options }] }] }, numeric: { _label: "verify_as_number", conditions: [{ _label: "caller_input", sequence: [{ type: r2.sequenceTypes.systemPrompt, value: r2.systemPrompts.collect_digits_playback }, { type: r2.sequenceTypes.subExpression, value: r2.subExpressions.asNumeric }, { type: r2.sequenceTypes.systemPrompt, value: r2.systemPrompts.collect_digits_playback_2 }, { type: r2.sequenceTypes.subExpression, value: r2.subExpressions.blank }, { type: r2.sequenceTypes.systemPrompt, value: r2.systemPrompts.collect_digits_verify }, { type: r2.sequenceTypes.subExpression, value: r2.subExpressions.blank }, { type: r2.sequenceTypes.systemPrompt, value: r2.systemPrompts.collect_digits_verify_options }] }] } } }, localizedSequence4: { value: { uniquedigits: { _label: "verify_with_unique_digits", conditions: [{ _label: "caller_input", sequence: [{ type: r2.sequenceTypes.systemPrompt, value: r2.systemPrompts.collect_digits_playback }, { type: r2.sequenceTypes.subExpression, value: r2.subExpressions.asDigits }, { type: r2.sequenceTypes.subExpression, value: r2.subExpressions.blank }, { type: r2.sequenceTypes.systemPrompt, value: r2.systemPrompts.collect_digits_verify }, { type: r2.sequenceTypes.subExpression, value: r2.subExpressions.blank }, { type: r2.sequenceTypes.systemPrompt, value: r2.systemPrompts.collect_digits_verify_options }] }] }, numeric: { _label: "verify_as_number", conditions: [{ _label: "caller_input", sequence: [{ type: r2.sequenceTypes.systemPrompt, value: r2.systemPrompts.collect_digits_playback }, { type: r2.sequenceTypes.subExpression, value: r2.subExpressions.asNumericWithNeuterContext }, { type: r2.sequenceTypes.subExpression, value: r2.subExpressions.blank }, { type: r2.sequenceTypes.systemPrompt, value: r2.systemPrompts.collect_digits_verify }, { type: r2.sequenceTypes.subExpression, value: r2.subExpressions.blank }, { type: r2.sequenceTypes.systemPrompt, value: r2.systemPrompts.collect_digits_verify_options }] }] } } }, fallbackSequence: { value: { uniquedigits: { _label: "verify_with_unique_digits", conditions: [{ _label: "caller_input", sequence: [{ type: r2.sequenceTypes.subExpression, value: r2.subExpressions.asDigits }] }] }, numeric: { _label: "verify_as_number", conditions: [{ _label: "caller_input", sequence: [{ type: r2.sequenceTypes.subExpression, value: r2.subExpressions.asNumeric }] }] } } } }); + } + n2.extend(o), e2.exports = new o(); + }, 53538: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importDefault(i2(54982)), o = n2.__importDefault(i2(19328)), a = n2.__importDefault(i2(24175)), s = n2.__importDefault(i2(94147)), l = n2.__importDefault(i2(38170)), u = { ArchTask: r2.default, ArchTaskCommonModule: o.default, ArchTaskLoop: a.default, ArchState: s.default, ArchStateBot: l.default }; + t2.default = u; + }, 53548: (e2, t2, i2) => { + const n2 = i2(13240), r2 = i2(7401), { sendKnowledgeFeedbackActionActionType: o } = i2(30801); + function a() { + Object.defineProperties(this, { _knowledgeArticle: { writable: true }, _knowledgeFeedback: { writable: true }, _knowledgeSearchId: { writable: true } }), a.baseConstructor.apply(this, arguments); + } + Object.defineProperties(a.prototype, { pasteReIdOrRename: { value: function(e3) { + a._super.pasteReIdOrRename.apply(this, arguments), this.knowledgeArticle.pasteReIdOrRename(e3), this.knowledgeFeedback.pasteReIdOrRename(e3), this.knowledgeSearchId.pasteReIdOrRename(e3); + } }, pasteResolveOldToNewValues: { value: function(e3) { + a._super.pasteResolveOldToNewValues.apply(this, arguments), this.knowledgeArticle.pasteResolveOldToNewValues(e3), this.knowledgeFeedback.pasteResolveOldToNewValues(e3), this.knowledgeSearchId.pasteResolveOldToNewValues(e3); + } }, knowledgeArticle: { enumerable: true, get: function() { + return this._knowledgeArticle; + }, set: function(e3) { + this._knowledgeArticle = this.reviveItem(e3, r2); + } }, knowledgeFeedback: { enumerable: true, get: function() { + return this._knowledgeFeedback; + }, set: function(e3) { + this._knowledgeFeedback = this.reviveItem(e3, r2); + } }, knowledgeSearchId: { enumerable: true, get: function() { + return this._knowledgeSearchId; + }, set: function(e3) { + this._knowledgeSearchId = this.reviveItem(e3, r2); + } } }), n2.extend(a, o, true), e2.exports = a; + }, 53561: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.IntegerType = void 0; + const n2 = i2(31635), r2 = i2(17604), o = n2.__importDefault(i2(92140)), a = i2(78513), s = n2.__importDefault(i2(73198)), l = i2(80428), u = i2(94765), d = i2(47957), c = i2(24032).getTopic("IntegerType"); + class p extends u.ExpressionType { + constructor(e3, t3, i3) { + super(e3, t3, i3), this.expressionOptionClass = a.ExpressionTypeIntegerOptions; + } + get className() { + return "IntegerType"; + } + _getLiteralValueOfExpression(e3) { + const t3 = parseInt(e3.text, 10); + return o.default.isActualNumber(t3) ? t3.toString() : ""; + } + createExpressionOptionClass() { + return new a.ExpressionTypeIntegerOptions(this.isCollection); + } + getYamlObjectForLiteralSingleton(e3) { + super.getYamlObjectForLiteralSingleton(e3); + const t3 = Number(e3.text); + return o.default.isActualNumber(t3) || c.errorWithStack(null, "Invalid number parsed in IntegerType.getYamlObjectForLiteralSingleton"), t3; + } + validateLiteral(e3, t3) { + if (t3.outOfService) return true; + const i3 = Number(t3.text), n3 = parseInt(t3.text); + if (!isNaN(i3) && i3) { + let n4, o2; + if (i3 < s.default.minInt ? (n4 = d.expression.intValueLessThanMin, o2 = s.default.minInt) : i3 > s.default.maxInt && (n4 = d.expression.intValueGreaterThanMax, o2 = s.default.maxInt), n4) return t3.setParseError((0, r2.sprintf)(n4, t3.text, 1, o2)), e3.addError(t3, (0, r2.sprintf)(d.errors.invalidValue, t3.label), false, true), false; + } + return !isNaN(i3) && !isNaN(n3) && n3.toString() === t3.text || (e3.addError(t3, (0, r2.sprintf)(d.errors.invalidValue, t3.label), false, true), false); + } + convertLitToCustomJsonStr(e3, t3, i3, n3) { + return i3 || t3 || ""; + } + } + t2.IntegerType = p, p.typeIdentifier = l.expressionTypeNames.integer; + }, 53614: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.FuncOpOverload = void 0; + const n2 = i2(31635), r2 = n2.__importDefault(i2(92140)), o = i2(24032), a = n2.__importStar(i2(35515)), s = n2.__importStar(i2(10798)), l = n2.__importStar(i2(27099)), u = n2.__importDefault(i2(98114)); + function d(e3, t3, i3 = "span") { + return `<${i3}${e3 ? ' class="' + e3 + '"' : ""}>${t3}`; + } + function c(e3) { + return e3.replace(/ /g, " "); + } + (0, o.getTopic)("funcOpOverload"), t2.FuncOpOverload = class { + constructor(e3, t3, i3, n3, o2, s2, l2, u2) { + this.isFuncOpOverload = true, this.hasRestrictions = e3.runtimeSequencesSystemPrompts || e3.runtimeRequiresTTSSupport || r2.default.findWhere(s2, { hasRestrictions: true }), this.description = t3, this.disallowAsDefaultCast = e3.disallowAsDefaultCast, this.examplesHaveFeatureToggleOrConfig = e3.examplesHaveFeatureToggleOrConfig, this.featureToggleName = e3.featureToggleName, this.featureConfigName = e3.featureConfigName, this.hidden = e3.hidden, this.operands = s2, this.resultResolver = o2, this.returnDescription = n3, this.returnType = i3, this.runtimeSequencesSystemPrompts = e3.runtimeSequencesSystemPrompts, this.runtimeRequiresTTSSupport = e3.runtimeRequiresTTSSupport, this.version = e3.support.version, this.examples = l2, e3.needsServerInfo && (this.needsServerInfo = true), e3.supportedReturnValueTypeInfo && (this.supportedReturnValueTypeInfo = e3.supportedReturnValueTypeInfo), e3.supportedReturnValues && (this.supportedReturnValues = e3.supportedReturnValues), r2.default.isActualNumber(e3.maxOperands) ? this.maxOperands = e3.maxOperands : r2.default.isString(e3.maxOperands) && e3.maxOperands.length >= 1 && (this._maxOperands = e3.maxOperands, Object.defineProperty(this, "maxOperands", { get: () => { + if ("getFromEnvLimitsCollectionItemsMax" === this._maxOperands) return a.limits.collectionItemsMax; + } })), e3.supportedReturnValuesTitle && (this.supportedReturnValuesTitle = e3.supportedReturnValuesTitle), e3.addsToCollection && (this.addsToCollection = e3.addsToCollection), u2 && (this.passThrough = u2), this.isUnavailable = !!this.featureToggleName || !!this.featureConfigName || true === this.needsServerInfo, e3.supportedFlowTypes && (this.supportedFlowTypes = e3.supportedFlowTypes), e3.identifier && (this.id = e3.identifier), e3.blankAudioForSipPhoneNumber && (this.blankAudioForSipPhoneNumber = true), e3.mustBeLastOperationOrFunction && (this.mustBeLastOperationOrFunction = true), e3.supportedLanguageFilter && (this.supportedLanguageFilter = e3.supportedLanguageFilter); + } + get parent() { + return this._parent; + } + set parent(e3) { + this._parent = e3; + } + _unitTestEnableLanguageForNeedServerInfo(e3, t3, i3) { + return console.error("FuncOpOverload._unitTestEnableLanguageForNeedServerInfo should only be called in unit tests!"), false; + } + unitTestRestoreNeedServerInfoSnapshot() { + console.error("FuncOpOverload.unitTestRestoreNeedServerInfoSnapshot should only be called in unit tests!"); + } + startupConfigureFromBootstrapInfo(e3, t3) { + if (this.bootStrapInfoProcessed = true, r2.default.find(e3.flowTypes, (e4, t4) => u.default.getIsValidFlowType(t4) && e4.isAvailable) && (this.serverInfoIndicatesSupported = true), t3) return this.supportedLanguageFilter || (this.supportedLanguageFilter = {}), void (this.supportedLanguageFilter[t3.id] = true); + if (e3.flowTypes && this.needsServerInfo) { + const t4 = {}; + r2.default.each(e3.flowTypes, (e4, i3) => { + u.default.getIsValidFlowType(i3) && e4.isAvailable && (t4[i3] = i3); + }), r2.default.filter(this.supportedFlowTypes, (t5, i3) => { + var n3; + if (u.default.getIsValidFlowType(i3) && !(null === (n3 = e3.flowTypes[i3]) || void 0 === n3 ? void 0 : n3.isAvailable)) return e3.flowTypes[i3] = { isAvailable: true }, t5; + }), this.supportedFlowTypes = t4; + } + } + startupFinalize() { + if (this.supportedFlowTypes) { + const e3 = {}; + r2.default.each(this.supportedFlowTypes, (t3) => { + u.default.getFlowTypeIsAvailable(t3) && (e3[t3] = t3); + }), this.supportedFlowTypes = e3; + } + this.examplesHaveFeatureToggleOrConfig && (this.examples = r2.default.filter(this.examples, (e3) => (!e3.featureToggleName || l.isEnabled(e3.featureToggleName)) && (!e3.featureConfigName || s.isFeatureAvailable(e3.featureConfigName)))), this.isUnavailable = !!this.featureConfigName && s.isFeatureUnavailable(this.featureConfigName) || !!this.featureToggleName && l.isDisabled(this.featureToggleName) || true === this.needsServerInfo && true !== this.serverInfoIndicatesSupported; + } + get displayStringInHtml() { + const e3 = this.operands.sort((e4, t4) => e4.helpDisplayIdx > t4.helpDisplayIdx ? 1 : -1), t3 = []; + if ("function" === this.parent.type) { + t3.push(d("returnType parameterType", c(this.returnType.displayString))), t3.push(d("", " ")), t3.push(d("name", this.parent.text)), t3.push(d("paren", "( ")); + const i3 = []; + e3.forEach((e4) => { + const t4 = []; + t4.push(d("parameterType", c(e4.type.displayString))), t4.push(d("", " ")), t4.push(d("parameterName", e4.name)), e4.canAppearMoreThanOnce ? (t4.push(d("append-plus", " +")), i3.push(d("parameter append", t4.join("")))) : i3.push(d("parameter", t4.join(""))); + }), i3.length && t3.push(d("parameters", i3.join(d("comma", ", ")))), t3.push(d("paren", " )")); + } else if ("operator" === this.parent.type) { + const [i3, n3, r3] = e3; + if (n3) { + const e4 = []; + e4.push(d("parameterType", c(i3.type.displayString))), e4.push(d("", " ")), e4.push(d("", i3.name)), t3.push(d("parameter", e4.join(""))), t3.push(d("", " ")), t3.push(d("name", this.parent.text)), t3.push(d("", " ")); + const o2 = []; + if (o2.push(d("parameterType", c(n3.type.displayString))), o2.push(d("", " ")), o2.push(d("", n3.name)), t3.push(d("parameter", o2.join(""))), r3) { + t3.push(d("", " ")); + const i4 = []; + i4.push(d("", ": ")), i4.push(d("parameterType", c(r3.type.displayString))), i4.push(d("", " ")), i4.push(d("", r3.name)), e4.push(d("", " ")), t3.push(d("parameter", i4.join(""))); + } + this.parent.closingSymbol && (t3.push(d("", " ")), t3.push(d("name", this.parent.closingSymbol))); + } else if (i3) { + t3.push(d("name", this.parent.text)); + const e4 = []; + e4.push(d("parameterType", c(i3.type.displayString))), e4.push(d("", " ")), i3.identifier && e4.push(d("", i3.identifier)), t3.push(d("parameter", e4.join(""))); + } + } + return this.__cachedSignatureAsHtml = d("expression-function-signature", t3.join("")), this.__cachedSignatureAsHtml; + } + isAvailableForFlowType(e3) { + return !(this.isUnavailable || this.supportedFlowTypes && !this.supportedFlowTypes[e3]); + } + }; + }, 53649: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.DecisionTableViewModel = void 0; + const n2 = i2(31635), r2 = n2.__importDefault(i2(92140)), o = i2(74483), a = n2.__importDefault(i2(57606)), s = i2(50661), l = i2(47957); + class u extends o.NameIdConfigurationListViewModel { + constructor(e3) { + var t3, i3; + if (super(e3), this._schemasNotLoaded = false, this._model.publishedContract) { + const e4 = { properties: {}, required: [] }, n3 = { properties: {}, required: [] }; + r2.default.each(null === (t3 = this._model.publishedContract.executionInputSchema) || void 0 === t3 ? void 0 : t3.properties, (t4, i4) => { + r2.default.isObject(t4) && (e4.properties[i4] = t4, e4.required.push(i4)); + }), r2.default.each(null === (i3 = this._model.publishedContract.executionOutputSchema) || void 0 === i3 ? void 0 : i3.properties, (e5, t4) => { + r2.default.isObject(e5) && (n3.properties[t4] = e5, n3.required.push(t4)); + }), this._inputSchema = new a.default(e4, true), this._successSchema = new a.default(n3, false); + } else this._schemasNotLoaded = true; + this._errorSchema = new a.default({ properties: { errorType: { allowableValues: s.getCallDecisionTableFailureReasons.sort(), type: "string", description: l.errorSchema.errorTypeDescription }, errorMessage: { type: "string", description: l.errorSchema.errorMessageDescription } } }, false); + } + get className() { + return "DecisionTableViewModel"; + } + get isBaseClass() { + return false; + } + get schemasNotLoaded() { + return this._schemasNotLoaded; + } + get inputSchema() { + return this._inputSchema; + } + get successSchema() { + return this._successSchema; + } + get errorSchema() { + return this._errorSchema; + } + } + t2.DecisionTableViewModel = u; + }, 53755: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.BaseConversationAttributeActionViewModel = void 0; + const n2 = i2(31635), r2 = n2.__importStar(i2(14592)), o = n2.__importStar(i2(36781)), a = i2(79516), s = n2.__importDefault(i2(19613)), l = i2(82632), u = i2(85415), d = n2.__importDefault(i2(85499)), c = i2(66314), p = i2(79519), _ = i2(79519), h = n2.__importDefault(i2(87675)), m = n2.__importDefault(i2(65302)), g = i2(80428), f = i2(29586), T = i2(81516), y = i2(96618), S = i2(82632), A = i2(99469), N = i2(28803), O = i2(89917), I = i2(47957); + class v extends s.default { + get selectedItemNetworkProperty() { + return this.conversationCustomAttributeSchema; + } + constructor(e3, t3) { + super(e3, t3); + } + static createBaseManagedProperties() { + return [{ property: "conversationCustomAttributeSchema", label: I.conversationAttribute.schemaLabel, createDetails: N.NetworkBasedActionProperty.createCreateDetails("conversationCustomAttributeSchemaId", "conversationCustomAttributeSchemaName", u.conversationCustomAttributeSchemaManager, I.conversationAttribute.mustSelectSchema, I.conversationAttribute.schemaNotFound, null), yamlOptions: v.createYamlOptions("conversationCustomAttributeSchema", (e3) => e3.setSkipProperty(true)), options: A.ManagedPropertyOptions.create((e3) => e3.setDropdownPlaceholder(I.conversationAttribute.selectSchema).setIninTestingField("selectSchema")) }, { property: "conversationId", label: I.setConversationData.conversationLabel, options: T.ExpressionTypeStringOptions.create((e3) => e3.setAsInput().setDescriptionInfo(I.setConversationData.conversationLabel, I.setConversationData.conversationDescription).setIninTestingField("conversationIdExpression").setDisableSpellcheck(true).setUiPropertyOrder(10).facets.setLengthForUuid()), type: g.expressionTypeNames.string, supportedFlowTypes: [y.flowTypes.flowTypeWorkflow] }]; + } + static createRecordIdManagedProperty() { + return { label: I.conversationAttribute.recordId, options: T.ExpressionTypeStringOptions.create((e3) => { + e3.setAsInput().setIninTestingField("recordId").setDisableSpellcheck(true).setDefaultToExpression(true).setAllowModeBuilder(false).setDescriptionInfo(I.conversationAttribute.recordId, I.conversationAttribute.recordIdDescription).facets.setMaxLength(l.conversationAttributeLimits.recordId.maxLength).setMinLength(l.conversationAttributeLimits.recordId.minLength).setLiteralPattern(l.conversationAttributeLimits.recordId.literalPattern, I.conversationAttribute.invalidRecordId); + }), property: "recordId", type: g.expressionTypeNames.string }; + } + static createRecordIdsManagedProperty() { + return { label: I.conversationAttribute.recordIds, options: T.ExpressionTypeStringOptions.create((e3) => { + e3.setAsInput().setIninTestingField("recordIds").setIsCollection(true).setDisableSpellcheck(true).setDefaultToExpression(true).setAllowModeBuilder(false).setDescriptionInfo(I.conversationAttribute.recordIds, I.conversationAttribute.recordIdsDescription).facets.setMaxLength(l.conversationAttributeLimits.recordId.maxLength).setMinLength(l.conversationAttributeLimits.recordId.minLength).setLiteralPattern(l.conversationAttributeLimits.recordId.literalPattern, I.conversationAttribute.invalidRecordId); + }), property: "recordIds", type: g.expressionTypeNames.string }; + } + static createDivisionsManagedProperty() { + return { label: I.generic.divisions, options: f.ExpressionTypeDivisionOptions.create((e3) => { + e3.setAsInput().setIninTestingField("divisions").setIsCollection(true).setDescriptionInfo(I.generic.divisions, I.conversationAttribute.divisionsForConversationAttributeRecord).setMaxItems(S.findLimits.maxBulkFindByName); + }), property: "divisions", type: g.expressionTypeNames.division }; + } + createOrUpdateCustomJsonTypes() { + return n2.__awaiter(this, void 0, void 0, function* () { + var e3, t3, i3, n3, r3, o2; + let a2 = this.conversationCustomAttributeSchema.getItem(); + if (!(null === (e3 = null == a2 ? void 0 : a2.model) || void 0 === e3 ? void 0 : e3.jsonSchema)) try { + a2 = yield u.conversationCustomAttributeSchemaManager.getOrFetchItem(this.conversationCustomAttributeSchema.idValue); + } catch (e4) { + return void this.topic.requestError(e4, `Failed to fetch CCA schema: ${null === (t3 = this.conversationCustomAttributeSchema) || void 0 === t3 ? void 0 : t3.idValue}.`); + } + this.input && (this.inputCustomJsonTypeManager = this._getOrCreateCustomJsonManager(a2)), this.output && (this.outputCustomJsonTypeManager = this._getOrCreateCustomJsonManager(a2)); + const s2 = null === (i3 = null == a2 ? void 0 : a2.model) || void 0 === i3 ? void 0 : i3.jsonSchema; + if (s2 || this.topic.error(`We did not receive the expected schemas. Here is the response object we received: ${JSON.stringify(a2)}`), this.inputCustomJsonTypeManager && this.input && this.inputCustomJsonTypeManager.tryUpdateParentExpressionPropTypeFromSchema(s2, true, this.isReadOnly, true, this.input), this.outputCustomJsonTypeManager && this.output && this.outputCustomJsonTypeManager.tryUpdateParentExpressionPropTypeFromSchema(s2, true, this.isReadOnly, true, this.output), this.input && !(null === (n3 = this.inputCustomJsonTypeManager) || void 0 === n3 ? void 0 : n3.customDataType) || this.output && !(null === (r3 = this.outputCustomJsonTypeManager) || void 0 === r3 ? void 0 : r3.customDataType)) { + const e4 = m.default.getType(this.parent, "jsn", false); + return this.input && (this.input.type = e4), this.output && (this.output.type = e4), void this.topic.error(`Custom type creation failed for schema: ${s2}. Cannot create custom types.`); + } + if (this.input && this.inputCustomJsonTypeManager && (this.input.type = this.inputCustomJsonTypeManager.customDataType, this.recordDataType = this._createRecordType(this.inputCustomJsonTypeManager.customDataType, this._recordDataTypeInfo, this.conversationCustomAttributeSchemaName), this.recordDataType)) { + const e4 = this.parentFlow.definitions.getCustomDataTypeDefinition(this._recordDataTypeInfo.expressionTypeStr); + e4 && e4.addReader(this.input); + } + if (this.output && this.outputCustomJsonTypeManager) { + const e4 = this.outputCustomJsonTypeManager.customDataType; + if (this.recordDataType = this._createRecordType(e4, this._recordDataTypeInfo, this.conversationCustomAttributeSchemaName), this.recordDataType) { + this.output.type = (null === (o2 = this.output.options) || void 0 === o2 ? void 0 : o2.isCollection) ? m.default.getType(this.parentFlow, this.recordDataType.expressionType, true) : this.recordDataType; + const e5 = this.parentFlow.definitions.getCustomDataTypeDefinition(this._recordDataTypeInfo.expressionTypeStr); + e5 && e5.addReader(this.output); + } + } + }); + } + setCachedCustomJsonTypesForInputOutput() { + var e3, t3, i3, n3, r3, o2; + const a2 = null === (e3 = this.parentFlow.definitions) || void 0 === e3 ? void 0 : e3.customDataTypeExpressionType; + if (this.input) { + const e4 = a2.find((e5) => e5.dataType === this._schemaDataTypeInfo.expressionTypeStr); + e4 && (this.input.type = e4), null === (t3 = this.parentFlow.definitions.getCustomDataTypeDefinition(this._recordDataTypeInfo.expressionTypeStr)) || void 0 === t3 || t3.addReader(this.input), null === (i3 = this.parentFlow.definitions.getCustomDataTypeDefinition(this._schemaDataTypeInfo.expressionTypeStr)) || void 0 === i3 || i3.addReader(this.input); + } + if (this.output) { + const e4 = a2.find((e5) => e5.dataType === this._recordDataTypeInfo.expressionTypeStr); + e4 && (this.output.type = (null === (n3 = this.output.options) || void 0 === n3 ? void 0 : n3.isCollection) ? m.default.getType(this.parentFlow, e4.expressionType, true) : e4), null === (r3 = this.parentFlow.definitions.getCustomDataTypeDefinition(this._recordDataTypeInfo.expressionTypeStr)) || void 0 === r3 || r3.addReader(this.output), null === (o2 = this.parentFlow.definitions.getCustomDataTypeDefinition(this._schemaDataTypeInfo.expressionTypeStr)) || void 0 === o2 || o2.addReader(this.output); + } + } + validate(e3) { + var t3, i3, n3, r3, s2, l2, u2; + if (super.validate(e3), null === (t3 = this.selectedItemNetworkProperty) || void 0 === t3 ? void 0 : t3.idValue) { + (null === (n3 = null === (i3 = this.selectedItemNetworkProperty) || void 0 === i3 ? void 0 : i3.getItem()) || void 0 === n3 ? void 0 : n3.disabled) && (e3.addError(this, I.conversationAttribute.disabledSchemaSelected), this.selectedItemNetworkProperty.currentUiErrorMessage = I.conversationAttribute.disabledSchemaSelected, o.emitter.emit(o.alert, { message: I.conversationAttribute.flowReferencesADisabledSchema, type: a.AlertTypeEnum.error })); + const t4 = null === (s2 = null === (r3 = this.input) || void 0 === r3 ? void 0 : r3.type) || void 0 === s2 ? void 0 : s2.isCustomType, d2 = null === (u2 = null === (l2 = this.output) || void 0 === l2 ? void 0 : l2.type) || void 0 === u2 ? void 0 : u2.isCustomType; + (this.input && !t4 || this.output && !d2) && e3.addError(this, I.conversationAttribute.unableToLoadSchema); + } + } + _getOrCreateCustomJsonManager(e3) { + var t3, i3, n3, r3; + return (null === (t3 = e3.model) || void 0 === t3 ? void 0 : t3.id) && (null === (i3 = e3.model) || void 0 === i3 ? void 0 : i3.name) ? d.default.getOrCreateConversationCustomAttributeSchemaCustomJsonManager(this.parentFlow, null === (n3 = e3.model) || void 0 === n3 ? void 0 : n3.name, null === (r3 = e3.model) || void 0 === r3 ? void 0 : r3.id) : null; + } + get _recordDataTypeInfo() { + return O.CustomJsonIdentifierInfo.create((0, c.createCustomJsonExpressionDataTypeStr)(_.CustomJsonNamespace.conversationAttribute, this.conversationCustomAttributeSchemaId, p.CustomJsonContext.record)); + } + get _schemaDataTypeInfo() { + return O.CustomJsonIdentifierInfo.create((0, c.createCustomJsonExpressionDataTypeStr)(_.CustomJsonNamespace.conversationAttribute, this.conversationCustomAttributeSchemaId, p.CustomJsonContext.schemaData)); + } + _createRecordWrapperDataTypeDef(e3, t3, i3) { + const n3 = h.default.createEmptyDataTypeDef(), r3 = i3 || this.conversationCustomAttributeSchemaName; + n3.id = t3.expressionTypeStr, n3.dataTypeId = t3.expressionTypeStr, n3.name = `${r3} - Record`, n3.additionalProperties = false; + const o2 = h.default.createFromPropertyParams(this.parentFlow, "id", g.expressionTypeNames.string, I.conversationAttribute.recordIdDescription, { isReadOnly: true, minLength: l.conversationAttributeLimits.recordId.minLength, maxLength: l.conversationAttributeLimits.recordId.maxLength }), a2 = h.default.createFromPropertyParams(this.parentFlow, "versionId", g.expressionTypeNames.integer, I.conversationAttribute.recordVersionDescription, { isReadOnly: true, minValue: l.conversationAttributeLimits.versionId.minValue, minValueInclusive: l.conversationAttributeLimits.versionId.minValueInclusive }), s2 = h.default.createFromPropertyParams(this.parentFlow, "schemaVersionId", g.expressionTypeNames.integer, I.conversationAttribute.schemaVersionIdDescription, { isReadOnly: true }), u2 = h.default.createFromPropertyParams(this.parentFlow, "divisions", g.expressionTypeNames.division, I.conversationAttribute.divisionsForConversationAttributeRecord, { isCollection: true, isReadOnly: true }), d2 = h.default.createFromPropertyParams(this.parentFlow, "customAttributes", e3.expressionType, I.conversationAttribute.customAttributesDescription, { isReadOnly: true }); + return n3.addProperty(o2), n3.addProperty(a2), n3.addProperty(s2), n3.addProperty(u2), n3.addProperty(d2), n3; + } + _createRecordType(e3, t3, i3) { + if (!e3) return null; + if (!e3.expressionType) return this.topic.error("Schema data type missing expressionType, cannot create record wrapper"), null; + const n3 = m.default.getType(this.parentFlow, t3.expressionTypeStr, false); + if (n3 && n3.isCustomType) return n3; + const o2 = this._createRecordWrapperDataTypeDef(e3, t3, i3), a2 = r2.createCustomExpressionTypesFromDataTypeDefs(this.parentFlow, [o2], true); + return null == a2 ? void 0 : a2[0]; + } + _clearInputsAndOutputs() { + var e3; + this.input && this.recordDataType && this.recordDataType.getCustomDataTypeDefinition().removeUsage(this.input), this.output && this.outputCustomJsonTypeManager && (null === (e3 = this.outputCustomJsonTypeManager.customDataType.getCustomDataTypeDefinition()) || void 0 === e3 || e3.removeUsage(this.output)), super._clearInputsAndOutputs(); + } + _preDestroy() { + var e3; + this.input && this.recordDataType && this.recordDataType.getCustomDataTypeDefinition().removeUsage(this.input), this.output && this.outputCustomJsonTypeManager && (null === (e3 = this.outputCustomJsonTypeManager.customDataType.getCustomDataTypeDefinition()) || void 0 === e3 || e3.removeUsage(this.output)), super._preDestroy(); + } + getConfiguration(e3, t3) { + var i3; + if (e3 = super.getConfiguration(e3, t3), null == t3 ? void 0 : t3.isForFlowYaml) { + const n3 = null === (i3 = this.conversationCustomAttributeSchema) || void 0 === i3 ? void 0 : i3.getConfiguration(e3, t3); + if (!n3) return e3; + e3[this.wrappedYamlName].conversationCustomAttributeSchema = n3; + } + return e3; + } + } + t2.BaseConversationAttributeActionViewModel = v; + }, 53761: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importDefault(i2(92140)), o = n2.__importStar(i2(98442)), a = n2.__importDefault(i2(37873)); + class s extends a.default { + constructor(e3) { + super(e3); + } + _checkSupportsLanguages(e3) { + const t3 = this.parentFlow; + return t3.supportsLanguages || this.logItemErrorAndThrow(e3, `the flow type '${t3.flowType}' does not support languages.`), t3; + } + canAddSupportedLanguage() { + return this._getCoreViewModel().canAddLanguage(); + } + addSupportedLanguage(e3, t3) { + this._checkSupportsLanguages(this._infoMethod("addSupportedLanguage")); + const i3 = this._infoParm("archLanguage", "addSupportedLanguage"); + this._checkItem(i3, !e3 || !e3.isArchLanguage, "you must pass in a valid ArchLanguage instance when adding a supported language."), this._checkItem(i3, o.langCodeIsGeneric(e3.tag), "the language " + e3.logStr + " cannot be used as a flow supported language because it does not have a region sub-tag."), this._checkItem(i3, this._getCoreViewModel().isFlowSupportedLanguage(e3.tag), "the language '" + e3.logStr + "' is already a supported language on the flow."), this._checkItem(i3, !this.canAddSupportedLanguage(), "flow does not support adding an additional language"), this._checkItemIsValidLiteralBool(this._infoParm("setAsDefaultLanguage", "addSupportedLanguage"), t3, true); + const n3 = this._getCoreViewModel().addLanguage(e3.tag); + t3 && (this._getCoreViewModel().defaultLanguage = e3.tag); + const r3 = this.coreFactory.createArchWrapper(n3); + return r3.logNoteVerbose("supported language added to flow."), r3; + } + addSupportedLanguageAsync(e3, t3) { + return n2.__awaiter(this, void 0, void 0, function* () { + this._checkSupportsLanguages(this._infoMethod("addSupportedLanguageAsync")); + const i3 = this._infoParm("archLanguage", "addSupportedLanguageAsync"); + this._checkItem(i3, !e3 || !e3.isArchLanguage, "you must pass in a valid ArchLanguage instance when adding a supported language."), this._checkItem(i3, o.langCodeIsGeneric(e3.tag), "the language " + e3.logStr + " cannot be used as a flow supported language because it does not have a region sub-tag."), this._checkItem(i3, this._getCoreViewModel().isFlowSupportedLanguage(e3.tag), "the language '" + e3.logStr + "' is already a supported language on the flow."), this._checkItem(i3, !this.canAddSupportedLanguage(), "flow does not support adding an additional language"), this._checkItemIsValidLiteralBool(this._infoParm("setAsDefaultLanguage", "addSupportedLanguageAsync"), t3, true), t3 && (this._getCoreViewModel().defaultLanguage = e3.tag); + const n3 = yield this._getCoreViewModel().addLanguage(e3.tag), r3 = this.coreFactory.createArchWrapper(n3); + return r3.logNoteVerbose("supported language added to flow."), yield this.parentFlow.validateAsync(), r3; + }); + } + getDefaultSupportedLanguageSettings() { + this._checkSupportsLanguages(this._infoMethod("getDefaultSupportedLanguageSettings")); + const e3 = this._getCoreViewModel(); + if (!e3) return; + let t3 = e3.defaultLanguage; + if (!r2.default.isString(t3) || !t3.length) return; + t3 = t3.toLowerCase(); + const i3 = r2.default.find(e3.supportedLanguageOptions, (e4) => r2.default.isString(e4.language) && e4.language.toLowerCase() === t3); + return i3 ? this.coreFactory.createArchWrapper(i3) : void 0; + } + get displayTypeName() { + return "ArchSettingsSupportedLanguagesFlow"; + } + findLanguageSettings(e3) { + this._checkSupportsLanguages(this._infoMethod("findLanguageSettings")), this._checkItem(this._infoParm("archLanguage", "findLanguageSettings"), !e3 || !e3.isArchLanguage, "you must pass in a valid ArchLanguage instance when finding a language setting."); + const t3 = this.parentFlow; + t3.supportsLanguages || this.logErrorAndThrow("the flow type '" + t3.flowType + "' does not support languages so finding language settings for a language is not supported. You can see if a flow supports languages by accessing the supportsLanguages property on it."); + const i3 = this._getCoreViewModel(), n3 = e3.tag.toLowerCase(); + this.logNoteVerbose(`findLanguageSettings looking for language tag '${n3}' case insensitively.`); + const o2 = r2.default.find(i3.supportedLanguageOptions, (e4) => r2.default.isString(e4.language) && e4.language.toLowerCase() === n3); + if (o2) return this.logNoteVerbose(`findLanguageSettings found language tag '${n3}' case insensitively.`), this.coreFactory.createArchWrapper(o2); + this.logNoteVerbose(`findLanguageSettings did not find a supported language with the tag '${n3}' case insensitively.`); + } + get isArchSettingsSupportedLanguagesFlow() { + return true; + } + get logStr() { + if (!this._getCoreViewModel()) return this.logStrTypeOnly; + const e3 = []; + this._appendLogStrType(e3, this.displayTypeName); + const t3 = this.parentFlow; + return t3 && (this._appendLogStrFlowName(e3, t3.name), this._appendLogStrFlowId(e3, t3.id)), this._createLogStrFromParts(e3); + } + get parentFlow() { + return this.coreFactory.createArchWrapper(this._getCoreViewModel().parentFlow); + } + get languagesSettings() { + this._checkSupportsLanguages(this._infoPropGet("languagesSettings")); + const e3 = [], t3 = this._getCoreViewModel(); + return r2.default.each(t3.supportedLanguageOptions, (t4) => { + e3.push(this.coreFactory.createArchWrapper(t4)); + }), this.logItemVerboseNote(this._infoPropGet("languageSettings"), `Returning language settings array with ${e3.length} language setting item(s) in it.`), e3; + } + } + t2.default = s; + }, 53774: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.WheelPickerType = t2.PROP_ITEMS = void 0; + const n2 = i2(4872), r2 = i2(80428), o = i2(94765); + t2.PROP_ITEMS = "items"; + class a extends o.ExpressionType { + constructor(e3, t3, i3) { + super(e3, t3, i3); + } + get className() { + return "WheelPickerType"; + } + convertLitToExpression(e3, t3) { + return ""; + } + _getLiteralValueOfExpression() { + return ""; + } + createExpressionOptionClass() { + return new n2.ExpressionTypeWheelPickerOptions(); + } + get supportsLiteralEditor() { + return true; + } + getPropItems(e3) { + return e3.getProperty(t2.PROP_ITEMS); + } + configurePropertyCreationParams(e3, t3, i3) { + super.configurePropertyCreationParams(e3, t3, i3), i3.options.setIninTestingField(`wheel-picker-${t3.name}`); + } + } + t2.WheelPickerType = a, a.typeIdentifier = r2.expressionTypeNames.wheelPicker; + }, 53862: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = i2(30801), o = n2.__importDefault(i2(11210)); + class a extends o.default { + constructor(e3) { + super(e3); + } + get _actionTypeId() { + return r2.clearVoicemailSnippetActionType; + } + get displayTypeName() { + return this._scriptingName; + } + get isArchActionClearVoicemailSnippet() { + return true; + } + } + t2.default = a; + }, 53866: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.timestamp = void 0; + var n2 = i2(93275), r2 = i2(26872); + t2.timestamp = function(e3) { + return void 0 === e3 && (e3 = n2.dateTimestampProvider), r2.map(function(t3) { + return { value: t3, timestamp: e3.now() }; + }); + }; + }, 53908: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(81574)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "journeyCustomEventAttributeList"; + } + get name() { + } + get dataType() { + } + get values() { + } + get displayTypeName() { + return "ArchValueJourneyCustomEventAttributeList"; + } + get isArchValueJourneyCustomEventAttributeList() { + return true; + } + } + t2.default = r2; + }, 53919: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.authorize = function() { + n2.getAuthenticatedPromise().then(() => { + n2.setCurrentUserAuthorized(r2.permissionService.checkHasPermissionInAtLeastOneDivision(n2.getConnectedUser(), r2.permissionService.staticPermissions[o.permissionStrings.architect.application.use]).hasPermission), n2.isCurrentUserAuthorized() ? n2.resolveUserAsAuthorized() : (n2.resolveUserAsUnauthorized(`unauthorized - client or user is missing permission '${o.permissionStrings.architect.application.use}'`), n2.isRunningInBrowser() && (window.location.hash = "#/error")); + }, (e3) => { + n2.resolveUserAsUnauthorized(e3.authorization), n2.isRunningInBrowser() && (window.location.hash = "#/error"); + }); + }; + const n2 = i2(31635).__importStar(i2(74359)), r2 = i2(67210), o = i2(44724); + }, 53943: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = i2(17604), o = n2.__importDefault(i2(92140)), a = n2.__importStar(i2(10798)), s = n2.__importDefault(i2(41510)), l = n2.__importDefault(i2(4648)), u = i2(43212), d = n2.__importDefault(i2(43277)), c = n2.__importDefault(i2(27579)), p = i2(47957); + class _ extends u.BaseConfigurationListViewModel { + constructor(e3) { + super(e3), this.fullBotNotLoaded = true, this._errorSchema = (0, c.default)(); + } + get className() { + return "DialogflowCxAgentViewModel"; + } + get descriptionIntegrationName() { + return a.isFeatureAvailable(l.default.googleDialogflowCXResellV2Feature) && o.default.isString(this.integrationName) ? (0, r2.sprintf)(p.dialogflow.integrationNameLabel, o.default.escape(this.integrationName)) : null; + } + get errorSchema() { + return this._errorSchema; + } + get getConfiguration() { + return this.model; + } + get id() { + return this.model.id; + } + get integrationId() { + var e3; + return null === (e3 = this.model.integration) || void 0 === e3 ? void 0 : e3.id; + } + get integrationName() { + var e3; + return null === (e3 = this.model.integration) || void 0 === e3 ? void 0 : e3.name; + } + get label() { + return this.name; + } + get languages() { + return this.model.languages; + } + get model() { + return this._model; + } + set model(e3) { + this._model = e3, this.environments = [new d.default(s.default.dialogflow.draftEnvironmentId, s.default.dialogflow.draftEnvironmentName)], o.default.each(this.model.environments, (e4) => { + this.environments.push(new d.default(e4.id, e4.name, null)); + }); + } + get name() { + return this.model.name; + } + get project() { + return this.model.project; + } + get projectId() { + var e3; + return null === (e3 = this.project) || void 0 === e3 ? void 0 : e3.id; + } + } + t2.default = _; + }, 54016: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(65294)); + class r2 extends n2.default { + constructor(e3) { + super(e3), this._findNames = this.coreFactory.createArchWrapper(e3.findNames); + } + get displayTypeName() { + return "ArchBaseActionFindSystemObjectsByName"; + } + get isArchBaseActionFindSystemObjectsByName() { + return true; + } + get findNames() { + return this._findNames; + } + } + t2.default = r2; + }, 54018: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.expressionToJsonSchemaTypeMap = void 0; + const n2 = i2(80428); + t2.expressionToJsonSchemaTypeMap = { [n2.expressionTypeNames.boolean]: "boolean", [n2.expressionTypeNames.date]: "date", [n2.expressionTypeNames.integer]: "integer", [n2.expressionTypeNames.decimal]: "number", [n2.expressionTypeNames.string]: "string" }; + }, 54057: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.ResponseLibraryViewModel = void 0, t2.createResponseLibrarySearchFilters = r2; + const n2 = i2(43212); + function r2(e3) { + return [{ name: "libraryId", operator: "IN", values: [e3] }]; + } + class o extends n2.BaseConfigurationListViewModel { + constructor(e3) { + super(e3); + } + get className() { + return "ResponseLibraryViewModel"; + } + get id() { + return this._model.id; + } + get label() { + return this._model.name || ""; + } + get name() { + return this._model.name; + } + get searchFilter() { + return r2(this.id); + } + } + t2.ResponseLibraryViewModel = o; + }, 54061: (e2, t2, i2) => { + "use strict"; + var n2, r2, o; + Object.defineProperty(t2, "__esModule", { value: true }); + const a = i2(31635), s = a.__importDefault(i2(33231)), l = i2(79364), u = i2(17604), d = a.__importDefault(i2(92140)), c = a.__importStar(i2(12847)), p = a.__importStar(i2(36781)), _ = a.__importStar(i2(97920)), h = a.__importStar(i2(24032)), m = a.__importDefault(i2(41510)), g = i2(55299), f = i2(80295), T = h.getTopic("prompts"); + class y extends g.BaseClass { + constructor(e3, t3) { + super(), this.topic = T, this.uid = d.default.uniqueId(), n2.set(this, void 0), r2.set(this, void 0), o.set(this, void 0), this.isProcessing$ = new l.BehaviorSubject(false), this._parent = e3, this._loadModel(t3), (0, f.makeUnenumerable)(this, "topic"), (0, f.makeUnenumerable)(this, "uid"), (0, f.makeUnenumerable)(this, "_model"), (0, f.makeUnenumerable)(this, "_parent"); + } + get className() { + return "PromptResourceViewModel"; + } + get isProcessing() { + return this.isProcessing$.getValue(); + } + set isProcessing(e3) { + this.isProcessing$.next(e3); + } + get parentId() { + return this._parent.id; + } + get id() { + return this.language; + } + get isPromptResourceViewModel() { + return true; + } + get detailsLoaded() { + return !!a.__classPrivateFieldGet(this, n2, "f"); + } + get changed() { + return !!a.__classPrivateFieldGet(this, r2, "f"); + } + set changed(e3) { + a.__classPrivateFieldSet(this, r2, e3, "f"); + } + get containerId() { + return this._model.promptId; + } + get audioLength() { + return this._model.durationSeconds; + } + getAudioLength() { + if (this._model.durationSeconds) { + let e3 = parseFloat(this._model.durationSeconds); + if (e3) return e3 < 0.05 && (e3 = 0.1), Math.round(10 * e3) / 10; + } + return null; + } + get hasUserUploadedAudio() { + return this.isSystem && this.hasDefaultAudio ? !this.usingDefaultAudio : !!this.audioLength; + } + get isBlank() { + return !(this.ttsAvailable || this.mediaUri); + } + get isSystem() { + return this._parent.isSystem; + } + get isUser() { + return !this.isSystem; + } + get hasDefaultAudio() { + return this._model.hasDefault; + } + get language() { + return this._model.language; + } + get mediaUri() { + return this._model.mediaUri; + } + get uploadUri() { + return this._model.uploadUri; + } + get resourceDisplayString() { + return (0, u.sprintf)(m.default.audio.promptResourceDisplayName, this._parent.displayName, this.language); + } + get tracingString() { + return `${this.containerId} (${this.language})`; + } + get tags() { + return this._model.tags; + } + set tags(e3) { + this._model.tags = e3; + } + get text() { + return this._model.text; + } + set text(e3) { + this._model.text = e3, this.changed = true; + } + get textAvailable() { + return this._model.textAvailable; + } + get ttsAvailable() { + return this._model.ttsAvailable; + } + get ttsString() { + return this._model.ttsString; + } + set ttsString(e3) { + this._model.ttsString = e3, this.changed = true; + } + saveResource() { + return a.__classPrivateFieldSet(this, o, s.default.defer(), "f"), _.updatePromptResource(this.containerId, this).then(() => { + this.changed = false, a.__classPrivateFieldGet(this, o, "f").resolve(); + }, (e3) => { + a.__classPrivateFieldGet(this, o, "f").reject(e3); + }), a.__classPrivateFieldGet(this, o, "f").promise; + } + get uniqueId() { + return this.containerId + this.language; + } + get usingDefaultAudio() { + return this.isSystem && this.hasDefaultAudio && !this.uploadStatus; + } + deleteResource() { + return _.deletePromptResource(this.containerId, this.language); + } + initiateAudioStationRecord() { + alert("record from station"); + } + getCompleteDetails(e3) { + const t3 = e3 || s.default.defer(); + return _.getPromptResource(this.containerId, this.language, this.isSystem).then((e4) => { + this._loadDetails(e4), t3.resolve(this); + }, (e4) => { + T.errorPromise(e4, "Failed to get prompt resource details"), t3.reject(e4); + }), t3.promise; + } + get uploadStatus() { + return this._model.uploadStatus; + } + _loadNewMediaDetails(e3) { + e3.language !== this.language && e3.id !== this.language || (this._model.mediaUri = e3.mediaUri, this._model.durationSeconds = e3.durationSeconds, this._model.uploadStatus = e3.uploadStatus); + } + _loadModel(e3) { + e3 && (e3.isPromptResourceViewModel && (c.error(`Using PromptResourceViewModel as network model. id:${e3.id}`), e3._model && (e3 = e3._model)), this._model = e3, p.emitter.emit(p.promptResourceCreated, this)); + } + _loadDetails(e3) { + this._loadModel(e3), a.__classPrivateFieldSet(this, n2, true, "f"); + } + toString() { + return `PromptResource: parent: '${this._parent.toString()}' - Language: '${this.language}'`; + } + resetAudio() { + this._model.duration = void 0, this._model.uploadStatus = void 0, this._model.mediaUri = void 0; + } + } + n2 = /* @__PURE__ */ new WeakMap(), r2 = /* @__PURE__ */ new WeakMap(), o = /* @__PURE__ */ new WeakMap(), t2.default = y; + }, 54063: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(23335)), r2 = i2(72155); + class o extends n2.default { + constructor(e3) { + super(e3); + } + addItemToCollection() { + return r2.addItemToCollection(this); + } + get canModifyContents() { + return void 0 !== r2.ensureCollectionExpressionIsModifiable(this, false); + } + get displayTypeName() { + return "ArchBaseValueCollection"; + } + get length() { + return this.isLiteral ? this._getCoreViewModel().collectionItems.items.length : void 0; + } + getItemByIndex(e3) { + const t3 = this._infoParm("index", "getItemByIndex"); + return this._checkItemIsValidLiteralIntInRange(t3, e3, 0, this.length), this.isLiteral ? this.coreFactory.createArchWrapper(this._getCoreViewModel().collectionItems.items[e3]) : void 0; + } + get isArchBaseValueCollection() { + return true; + } + get isCollection() { + return true; + } + setLiteralEmptyCollection() { + this.settings.canBeLiteral && this._getCoreViewModel().setLiteralEmptyCollection(); + } + } + t2.default = o; + }, 54251: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.divisionManager = t2.DivisionManager = void 0; + const n2 = i2(31635), r2 = n2.__importDefault(i2(92140)), o = n2.__importStar(i2(74359)), a = n2.__importStar(i2(1360)), s = n2.__importDefault(i2(51499)), l = n2.__importDefault(i2(47532)), u = i2(1234), d = i2(81801), c = n2.__importDefault(i2(4648)), p = i2(24032), _ = i2(10798), h = i2(44189), m = i2(27862); + class g extends l.default { + get requiredAuth() { + return d.externalAuthorizations.authStrings.divisionsView; + } + get dependencyType() { + return this._featureEnabled ? m.Division : void 0; + } + constructor() { + super(), this.topic = (0, p.getTopic)("divisionManager"), this.apiCallList = h.getDivisions, this.apiCallSingle = h.getDivision, this.actionPropertyForUsageSearch = "", this.actionsForUsageSearch = [], this.className = "DivisionManager", this.defaultPageSize = 499, this.dependencyContext = null, this.networkType = "divisions", this.removeDeleted = true, this.defaultMatchingStyle = a.exactMatch, this.uiMetadataSectionName = "division", this._featureEnabled = false, o.bootstrapDataLoaded.then(() => { + this._featureEnabled = (0, _.isFeatureAvailable)(c.default.customConversationAttributes), this._initialize(); + }), o.getAuthenticatedPromise().then(() => { + this.getAllDivisions().then(() => { + r2.default.each(o.getConnectedUser().divisions, (e3) => { + const t3 = this.getItem(e3.id); + t3 && (e3.name = t3.name, e3.isHomeDivision = t3.isHomeDivision); + }), o.setDivisionsLoaded(); + }, (e3) => { + this.topic.errorPromise(e3, "Failed to load divisions for organization."), o.setDivisionsLoaded(); + }); + }); + } + getAllDivisions() { + return n2.__awaiter(this, void 0, void 0, function* () { + let e3 = 1; + const t3 = new s.default(this); + for (yield this.getConfigListPage(t3); this.canLoadMore && e3 <= 16; ) e3++, t3.pageNumber += 1, yield this.getConfigListPage(t3); + this.canLoadMore && this.topic.error(`Failed to load all divisions for organization, exceeded max requests: ${e3} -- lastPageNumber: ${t3.pageNumber} -- totalItemsOnServer:${this.totalItemsOnServer} -- totalRetrieved:${Object.values(this.items).length}`); + }); + } + resetState() { + } + _createItemViewModel(e3) { + return new u.DivisionViewModel(e3); + } + } + t2.DivisionManager = g, t2.divisionManager = new g(); + }, 54280: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importDefault(i2(92140)), o = n2.__importDefault(i2(73198)), a = n2.__importDefault(i2(17405)), s = i2(19502); + class l extends a.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "currency"; + } + get displayTypeName() { + return "ArchValueCurrency"; + } + get isArchValueCurrency() { + return true; + } + get isCurrencyAmountOnly() { + var e3, t3; + return null === (t3 = null === (e3 = this._getCoreViewModel()) || void 0 === e3 ? void 0 : e3.options) || void 0 === t3 ? void 0 : t3.currencyAmountOnly; + } + setLiteralAmountAndCode(e3, t3) { + const i3 = r2.default.keys(s), n3 = this._infoParm("amount", "setLiteralAmountAndCode"); + this._checkItemIsValidLiteralDecimal(n3, e3, false); + const a2 = this._infoParm("code", "setLiteralAmountAndCode"); + this._checkItemIsValidLiteralStringEnum(a2, t3, i3, true, true), t3 = t3 ? t3.toUpperCase() : o.default.notSet; + const l2 = this._infoVal("amount|code", "setLiteralAmountAndCode"); + this._setLiteral(l2, `${e3}|${t3}`); + } + } + t2.default = l; + }, 54339: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(20692)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "surveyQuestionCollection"; + } + get displayTypeName() { + return "ArchVariableSurveyQuestionCollection"; + } + get initialValue() { + return this._initialValue; + } + get isArchVariableSurveyQuestionCollection() { + return true; + } + } + t2.default = r2; + }, 54342: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(20692)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "divisionCollection"; + } + get initialValue() { + return this._initialValue; + } + get displayTypeName() { + return "ArchVariableDivisionCollection"; + } + get isArchVariableDivisionCollection() { + return true; + } + } + t2.default = r2; + }, 54383: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.take = void 0; + var n2 = i2(44885), r2 = i2(65212), o = i2(17214); + t2.take = function(e3) { + return e3 <= 0 ? function() { + return n2.EMPTY; + } : r2.operate(function(t3, i3) { + var n3 = 0; + t3.subscribe(o.createOperatorSubscriber(i3, function(t4) { + ++n3 <= e3 && (i3.next(t4), e3 <= n3 && i3.complete()); + })); + }); + }; + }, 54403: (e2, t2, i2) => { + "use strict"; + var n2, r2, o, a; + Object.defineProperty(t2, "__esModule", { value: true }), t2.CreateConversationAttributeActionModel = void 0; + const s = i2(31635), l = i2(70630), u = i2(30801), d = i2(80295), c = s.__importDefault(i2(7401)), p = i2(80295); + class _ extends l.BaseConversationAttributeActionModel { + constructor(e3) { + super(e3), this.__type = _.__type, (0, p.makeUnenumerable)(this, "_recordId"), (0, p.makeUnenumerable)(this, "_input"), (0, p.makeUnenumerable)(this, "_output"), (0, p.makeUnenumerable)(this, "_divisions"); + } + get recordId() { + return this._recordId; + } + set recordId(e3) { + this._recordId = this.reviveItem(e3, c.default); + } + get input() { + return this._input; + } + set input(e3) { + this._input = this.reviveItem(e3, c.default); + } + get output() { + return this._output; + } + set output(e3) { + this._output = this.reviveItem(e3, c.default); + } + get divisions() { + return this._divisions; + } + set divisions(e3) { + this._divisions = this.reviveItem(e3, c.default); + } + pasteReIdOrRename(e3) { + var t3, i3; + super.pasteReIdOrRename(e3), this.recordId.pasteReIdOrRename(e3), null === (t3 = this.input) || void 0 === t3 || t3.pasteReIdOrRename(e3), null === (i3 = this.output) || void 0 === i3 || i3.pasteReIdOrRename(e3), this.divisions.pasteReIdOrRename(e3); + } + pasteResolveOldToNewValues(e3) { + var t3, i3; + super.pasteResolveOldToNewValues(e3), this.recordId.pasteResolveOldToNewValues(e3), null === (t3 = this.input) || void 0 === t3 || t3.pasteResolveOldToNewValues(e3), null === (i3 = this.output) || void 0 === i3 || i3.pasteResolveOldToNewValues(e3), this.divisions.pasteResolveOldToNewValues(e3); + } + } + t2.CreateConversationAttributeActionModel = _, _.__type = u.createConversationAttributeActionType, s.__decorate([(0, d.enumerable)(true), s.__metadata("design:type", "function" == typeof (n2 = void 0 !== c.default && c.default) ? n2 : Object), s.__metadata("design:paramtypes", [Object])], _.prototype, "recordId", null), s.__decorate([(0, d.enumerable)(true), s.__metadata("design:type", "function" == typeof (r2 = void 0 !== c.default && c.default) ? r2 : Object), s.__metadata("design:paramtypes", [Object])], _.prototype, "input", null), s.__decorate([(0, d.enumerable)(true), s.__metadata("design:type", "function" == typeof (o = void 0 !== c.default && c.default) ? o : Object), s.__metadata("design:paramtypes", [Object])], _.prototype, "output", null), s.__decorate([(0, d.enumerable)(true), s.__metadata("design:type", "function" == typeof (a = void 0 !== c.default && c.default) ? a : Object), s.__metadata("design:paramtypes", [Object])], _.prototype, "divisions", null), _.registerType(); + }, 54501: (e2, t2, i2) => { + const n2 = i2(79238), r2 = i2(37338), o = i2(36019).default; + function a() { + } + const s = new a(); + a.prototype.getGroup = o.request("GET", "{public-api.apps}/api/v2/groups/{id}", n2), a.prototype.getGroups = o.request("POST", "{public-api.apps}/api/v2/groups/search", r2), s.getGroups.addOptions({ ignoreBadResponse: true }), e2.exports = s; + }, 54508: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importDefault(i2(92140)), o = n2.__importStar(i2(24032)), a = n2.__importDefault(i2(61864)), s = i2(12179), l = n2.__importStar(i2(71004)), u = n2.__importDefault(i2(68460)), d = i2(47957), c = o.getTopic("DataViewModel"); + class p extends u.default { + get id() { + return "data"; + } + get className() { + return "DataViewModel"; + } + get flowVariables() { + if (!this.parentFlow) { + const e3 = "No parentFlow found on DataViewModel."; + throw c.error(e3), e3; + } + if (!this.parentFlow.variableGroup) { + const e3 = "No variable group found for flow " + this.parentFlow.id; + throw c.error(e3), e3; + } + return this.parentFlow.variableGroup.flowVariables; + } + getConfiguration(e3, t3) { + if (null == t3 ? void 0 : t3.isForFlowYaml) { + const i3 = []; + return r2.default.each(this.flowVariables, (n3) => { + if (n3.isSlotVariable || n3.isUserCreatable) { + const r3 = n3.getConfiguration(e3, t3); + r3 && i3.push(r3); + } + }), r2.default.sortMapByNameProperty(i3), i3; + } + return r2.default.pluck(this.flowVariables, "model"); + } + getDisplayName() { + return d.customNodes.data; + } + get isDataNode() { + return true; + } + loadVariables(e3) { + r2.default.each(e3, (e4) => { + l.createVariable(e4, this.parentFlow); + }); + } + get nodeGuxIcon() { + return a.default.database.gux; + } + get helpTopic() { + return s.helpTopics.treeNodes.dataView; + } + search(e3) { + const t3 = this.parentFlow.variableGroup; + r2.default.each(t3.flowVariables, (t4) => e3.checkText(this, t4.description, d.search.variableDescription)), r2.default.each(t3.taskVariables, (t4) => e3.checkText(this, t4.description, d.search.variableDescription)); + } + get wrappedYamlName() { + return "variables"; + } + } + t2.default = p; + }, 54521: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importDefault(i2(94225)), o = n2.__importDefault(i2(44254)), a = n2.__importDefault(i2(74142)), s = n2.__importDefault(i2(97720)), l = n2.__importDefault(i2(87145)), u = { archSession: r2.default, ArchNetworkRequest: o.default, ArchOrganizationInfo: a.default, ArchScriptingInfo: s.default, organization: l.default }; + t2.default = u; + }, 54530: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.schedulePromise = void 0; + var n2 = i2(19724), r2 = i2(32071), o = i2(5455); + t2.schedulePromise = function(e3, t3) { + return n2.innerFrom(e3).pipe(o.subscribeOn(t3), r2.observeOn(t3)); + }; + }, 54540: (e2, t2, i2) => { + const n2 = i2(28730), { exitBotFlowActionType: r2 } = i2(30801); + function o() { + o.baseConstructor.apply(this, arguments); + } + n2.extend(o, r2, true), e2.exports = o; + }, 54557: (e2, t2, i2) => { + function n2() { + this.id = void 0, this.name = void 0, this.description = void 0, this.division = void 0, this.hasDescription = void 0, n2.baseConstructor.apply(this, arguments); + } + i2(45214).extend(n2, "WrapupCode"), Object.defineProperties(n2.prototype, { displayName: { get: function() { + return this.name; + }, set: function(e3) { + this.name = e3; + } }, label: { get: function() { + return this.name; + }, set: function(e3) { + this.name = e3; + } } }), e2.exports = n2; + }, 54590: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.VersionedNetworkBasedActionProperty = void 0, t2.isVersionedNetworkBasedActionProperty = function(e3) { + return null == e3 ? void 0 : e3.isVersionedNetworkBasedActionProperty; + }; + const n2 = i2(31635), r2 = i2(79364), o = n2.__importStar(i2(12847)), a = n2.__importStar(i2(36781)), s = i2(81801), l = i2(1115), u = i2(28803), d = i2(28803), c = i2(47957); + class p extends d.NetworkBasedActionProperty { + constructor(e3, t3, i3, n3, o2, a2, s2, l2, d2) { + if (super(e3, t3, i3, n3, o2, a2, s2, l2, d2, (e4, t4) => e4.idValue === t4.id), this._allowableValues = [], this._loadingReference$ = new r2.BehaviorSubject(false), this.lastApiErrors = [], !(0, u.isNetworkBasedActionProperty)(e3[l2])) throw new Error(`${l2} not found on action`); + this._dependentNetworkBasedActionProperty = e3[l2]; + } + initializeDesignTime() { + super.initializeDesignTime(), this._updateOOS(), this.addAutoCleanedUpEventSinkWatch(a.valueChanged, this._dependentNetworkBasedActionProperty, () => n2.__awaiter(this, void 0, void 0, function* () { + yield this._refreshReference(); + })); + } + get loadingReference$() { + return this._loadingReference$.asObservable(); + } + get isVersionedNetworkBasedActionProperty() { + return true; + } + get allowableValues() { + return this._allowableValues; + } + fetchItem() { + return this.configListManager.fetchItem(this._dependentReferenceId, false, this.getAdditionalSearchParams()); + } + get _dependentReferenceId() { + return this._dependentNetworkBasedActionProperty.idValue; + } + _refreshReference() { + return n2.__awaiter(this, void 0, void 0, function* () { + if (this.lastApiErrors.length = 0, this.outOfService = true, this.setValue(void 0), this.currentUiErrorMessage = void 0, this._allowableValues.length = 0, this._dependentReferenceId) { + if (this._loadingReference$.value) return void o.warn("already refreshing reference"); + try { + this._loadingReference$.next(true); + const e3 = yield this.fetchItem(); + this._updateAllowableValues(null == e3 ? void 0 : e3.id), this.setValue(e3), (0, l.validateAction)(this.action, true); + } catch (e3) { + if (403 === e3.status && this.configListManager.requiredAuth) { + let t3; + t3 = null === e3.message ? s.externalAuthorizations.getFormattedAuthWarning(c.generic.permissions.error) : s.externalAuthorizations.getFormattedAuthWarning(this.configListManager.requiredAuth), this.lastApiErrors.push({ class: "arch-select-dropdown-message in-grid-warning", testAttr: "dropdownAuthError", text: t3 }); + } else this.currentUiErrorMessage = c.errors.serverError; + this.setValue(void 0); + } finally { + this._updateOOS(), this._loadingReference$.next(false); + } + } + }); + } + _updateAllowableValues(e3) { + this._allowableValues.length = 0, e3 && this.allowableValues.push({ label: c.versions.latestPublishedVersion, id: e3 }); + } + _updateOOS() { + this.outOfService = !this._dependentReferenceId; + } + validate(e3) { + if (this._updateOOS(), this.idValue && this._dependentReferenceId) { + if (!this.configListManager.getItem(this.idValue, this.action)) { + const e4 = this._dependentNetworkBasedActionProperty.getItem(); + if (e4) { + const t3 = `${this._dependentReferenceId}~${e4.version}`, i3 = this.configListManager.getItem(t3, this.action); + i3 && this.setValue(i3); + } + } + } else !this.idValue && this._dependentReferenceId && this._refreshReference(); + this._updateAllowableValues(this.idValue), super.validate(e3); + } + static createCreateDetails(e3, t3, i3, n3, r3, o2, a2) { + return { create: function(s2, l2) { + return new p(s2, l2, i3, e3, t3, n3, r3, o2, a2); + }, getCreateClass: function() { + return p; + }, modelProperties: [t3], manager: i3 }; + } + } + t2.VersionedNetworkBasedActionProperty = p; + }, 54625: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importDefault(i2(6035)), o = i2(96618), a = n2.__importDefault(i2(19359)); + class s extends r2.default { + constructor(e3) { + super(e3), this.pathDiscovery = this._addToAutoManageSettings(new a.default(this)); + } + get className() { + return "InboundCallViewModel"; + } + get isInboundCallFlow() { + return true; + } + get type() { + return o.flowTypes.flowTypeInboundCall; + } + get wrappedYamlName() { + return "inboundCall"; + } + } + t2.default = s; + }, 54632: (e2, t2, i2) => { + const n2 = i2(66848); + function r2() { + r2.baseConstructor.apply(this, arguments); + } + i2(22124).extend(r2, "KnowledgeBaseList"), Object.defineProperties(r2.prototype, { entities: { enumerable: true, get: function() { + return this._entities; + }, set: function(e3) { + this._entities = this.reviveArray(e3, n2); + } } }), e2.exports = r2; + }, 54668: (e2, t2, i2) => { + const n2 = i2(54976), r2 = i2(24032), { transferFlowActionType: o } = i2(30801), a = r2.getTopic("transferToFlowAction"); + function s() { + this.flowId = void 0, this.flowName = void 0, s.baseConstructor.apply(this, arguments); + } + n2.extend(s, o, true), Object.defineProperties(s.prototype, { getConfiguration: { value: function(e3, t3) { + const i3 = s._super.getConfiguration.apply(this); + return t3?.isForFlowYaml || i3.hasOwnProperty("flowId") || a.infoWithStack(null, "FlowId not found on TransferFlowActionModel"), i3; + } } }), e2.exports = s; + }, 54674: (e2) => { + "use strict"; + e2.exports = { 2: "need dictionary", 1: "stream end", 0: "", "-1": "file error", "-2": "stream error", "-3": "data error", "-4": "insufficient memory", "-5": "buffer error", "-6": "incompatible version" }; + }, 54708: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.askForBooleanSequences = void 0; + const n2 = i2(31635), r2 = i2(28562), o = i2(80295), a = i2(73324); + class s extends a.BaseBotActionSettingsSequence { + constructor() { + super("askForBoolean"); + } + get noInputSequence() { + const e3 = this.generateLanguageSequencesDefaultSequence("noInput"); + return this.generateLanguageSequenceConfig("AskForBooleanNoInput", r2.builderIds.parts.genericCommunication, e3); + } + get noInputDigitalBotSequence() { + const e3 = this.generateLanguageSequencesDefaultSequence("noInputDigitalBot"); + return this.generateLanguageSequenceConfig("AskForBooleanNoInputDigitalBot", r2.builderIds.parts.genericCommunication, e3); + } + get noMatchSequence() { + const e3 = this.generateLanguageSequencesDefaultSequence("noMatch"); + return this.generateLanguageSequenceConfig("AskForBooleanNoMatch", r2.builderIds.parts.genericCommunication, e3); + } + get noMatchDigitalBotSequence() { + const e3 = this.generateLanguageSequencesDefaultSequence("noMatchDigitalBot"); + return this.generateLanguageSequenceConfig("AskForBooleanNoMatchDigitalBot", r2.builderIds.parts.markdownCommunication, e3); + } + get questionSequence() { + const e3 = this.generateLanguageSequencesDefaultSequence("question"), t3 = { digitalbot: { builderId: r2.builderIds.parts.markdownCommunication, languageSequences: e3 } }; + return this.generateLanguageSequenceConfig("AskForBooleanQuestion", r2.builderIds.parts.genericCommunication, e3, t3); + } + } + n2.__decorate([(0, o.enumerable)(true), n2.__metadata("design:type", Object), n2.__metadata("design:paramtypes", [])], s.prototype, "noInputSequence", null), n2.__decorate([(0, o.enumerable)(true), n2.__metadata("design:type", Object), n2.__metadata("design:paramtypes", [])], s.prototype, "noInputDigitalBotSequence", null), n2.__decorate([(0, o.enumerable)(true), n2.__metadata("design:type", Object), n2.__metadata("design:paramtypes", [])], s.prototype, "noMatchSequence", null), n2.__decorate([(0, o.enumerable)(true), n2.__metadata("design:type", Object), n2.__metadata("design:paramtypes", [])], s.prototype, "noMatchDigitalBotSequence", null), n2.__decorate([(0, o.enumerable)(true), n2.__metadata("design:type", Object), n2.__metadata("design:paramtypes", [])], s.prototype, "questionSequence", null), t2.askForBooleanSequences = new s(); + }, 54757: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(54063)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get displayTypeName() { + return "ArchBaseValueCollectionBasic"; + } + get isArchBaseValueCollectionBasic() { + return true; + } + get valueText() { + return this._getValueTextCommon() || []; + } + } + t2.default = r2; + }, 54822: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.GrammarType = void 0; + const n2 = i2(31635), r2 = i2(43700), o = i2(77841), a = i2(27491), s = n2.__importDefault(i2(22226)), l = i2(80428), u = i2(14394), d = i2(94765); + class c extends d.ExpressionType { + constructor(e3, t3, i3) { + super(e3, t3, i3); + } + get className() { + return "GrammarType"; + } + canConvertLitToExpression(e3) { + return a.expressionDataService.isFunctionTextAvailableForFlowTypeAndOperandTypes("FindGrammar", e3, [u.globalTypes.string]); + } + convertLitToExpression(e3, t3) { + return t3 && this.canConvertLitToExpression(e3) ? `FindGrammar(${s.default.getQuotedExpressionStringLiteral(t3)})` : ""; + } + createExpressionOptionClass() { + return r2.ExpressionTypeGrammarOptions.create(); + } + get listManager() { + return o.grammarManager; + } + get supportsLiteralEditor() { + return true; + } + } + t2.GrammarType = c, c.typeIdentifier = l.expressionTypeNames.grammar; + }, 54830: (e2, t2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.arrRemove = void 0, t2.arrRemove = function(e3, t3) { + if (e3) { + var i2 = e3.indexOf(t3); + 0 <= i2 && e3.splice(i2, 1); + } + }; + }, 54872: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.LanguageSkillType = void 0; + const n2 = i2(31635), r2 = i2(71056), o = i2(81467), a = i2(27491), s = n2.__importDefault(i2(22226)), l = i2(80428), u = i2(14394), d = i2(94765); + class c extends d.ExpressionType { + constructor(e3, t3, i3) { + super(e3, t3, i3); + } + get className() { + return "LanguageSkillType"; + } + createExpressionOptionClass() { + return new r2.ExpressionTypeNetworkObjectOptions(); + } + canConvertLitToExpression(e3) { + return a.expressionDataService.isFunctionTextAvailableForFlowTypeAndOperandTypes("FindLanguageSkill", e3, [u.globalTypes.string]); + } + convertLitToExpression(e3, t3) { + return t3 && this.canConvertLitToExpression(e3) ? `FindLanguageSkill(${s.default.getQuotedExpressionStringLiteral(t3)})` : ""; + } + _getLiteralValueOfExpression() { + return ""; + } + get listManager() { + return o.languageSkillManager; + } + } + t2.LanguageSkillType = c, c.typeIdentifier = l.expressionTypeNames.languageSkill; + }, 54876: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.ShippingOptionType = t2.PROP_PRICE = t2.PROP_DETAILS = t2.PROP_IDENTIFIER = t2.PROP_LABEL = void 0; + const n2 = i2(31635), r2 = i2(30801), o = n2.__importDefault(i2(73198)), a = i2(27491), s = i2(94765), l = i2(80428), u = i2(23657), d = i2(14394), c = i2(47957); + t2.PROP_LABEL = "label", t2.PROP_IDENTIFIER = "identifier", t2.PROP_DETAILS = "shippingDetails", t2.PROP_PRICE = "price"; + class p extends s.ExpressionType { + constructor(e3, t3, i3) { + super(e3, t3, i3); + } + get className() { + return "ShippingOptionType"; + } + canConvertLitToExpression(e3) { + return a.expressionDataService.isFunctionTextAvailableForFlowTypeAndOperandTypes("MakeShippingOption", e3, [d.globalTypes.string, d.globalTypes.string, d.globalTypes.string, d.globalTypes.currency]); + } + convertLitToExpression(e3, t3, i3, n3) { + return n3 && this.canConvertLitToExpression(e3) ? `MakeShippingOption(${n3.type.getPropLabel(n3).getEmbeddableExpressionText() || o.default.notSet}, ${n3.type.getPropIdentifier(n3).getEmbeddableExpressionText() || o.default.notSet}, ${n3.type.getPropDetails(n3).getEmbeddableExpressionText() || o.default.notSet}, ${n3.type.getPropPrice(n3).getEmbeddableExpressionText() || o.default.notSet})` : ""; + } + _getLiteralValueOfExpression() { + return ""; + } + createExpressionOptionClass() { + return new u.ExpressionTypeShippingOptions(this.isCollection); + } + get supportsLiteralEditor() { + return true; + } + getPropLabel(e3) { + return e3.getProperty(t2.PROP_LABEL); + } + getPropIdentifier(e3) { + return e3.getProperty(t2.PROP_IDENTIFIER); + } + getPropDetails(e3) { + return e3.getProperty(t2.PROP_DETAILS); + } + getPropPrice(e3) { + return e3.getProperty(t2.PROP_PRICE); + } + configurePropertyCreationParams(e3, i3, n3) { + var o2; + switch (super.configurePropertyCreationParams(e3, i3, n3), n3.options.setIninTestingField(`shipping-option-${i3.name}`), n3.options.setAsInput(true), n3.options.setDefaultToNoValue(false), n3.options.setIsOptional(false), i3.name) { + case t2.PROP_LABEL: + n3.options.setDescriptionInfo(c.askForPayment.askForPaymentShippingOptionLabel, c.askForPayment.askForPaymentShippingOptionLabelDesc), n3.options.facets.setMaxLength(512).setAllowNull(false).setMinLength(1); + break; + case t2.PROP_IDENTIFIER: + n3.options.setDescriptionInfo(c.askForPayment.askForPaymentShippingOptionIdentifier, c.askForPayment.askForPaymentShippingOptionIdentifierDesc), n3.options.facets.setMaxLength(512).setAllowNull(false).setMinLength(1); + break; + case t2.PROP_DETAILS: + n3.options.setDescriptionInfo(c.askForPayment.askForPaymentShippingOptionDetails, c.askForPayment.askForPaymentShippingOptionDetailsDesc), n3.options.facets.setMaxLength(256).setAllowNull(false).setMinLength(1); + break; + case t2.PROP_PRICE: + n3.options.facets.setMinValInclusive(true).setMinDec(0).setMaxValInclusive(true).setMaxDec(1e9).setDecimalPlaces(3), (null === (o2 = e3.parent.info) || void 0 === o2 ? void 0 : o2.typeId) === r2.askForPaymentActionType && n3.options.setCurrencyAmountOnly(true); + } + } + get hasRichLiteralEditor() { + return true; + } + } + t2.ShippingOptionType = p, p.typeIdentifier = l.expressionTypeNames.shippingOption; + }, 54882: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = i2(17604), o = n2.__importDefault(i2(92140)), a = i2(9456), s = n2.__importDefault(i2(96727)), l = n2.__importDefault(i2(5532)), u = n2.__importDefault(i2(45431)), d = i2(55909), c = i2(33951), p = i2(36781), _ = i2(58380), h = i2(47957); + class m extends u.default { + constructor(e3, t3, i3, n3, r3) { + super(t3), super.configureForBuilderViewModel(e3), c.ParameterValidator.expectObject(i3, () => d.ParameterInfo.createConstructorParameter(this.className, "builderPartModel"), true), i3 && c.ParameterValidator.expectString(i3.builderPartDefId, () => d.ParameterInfo.createConstructorParameter(this.className, "builderPartModel.builderPartDefId")), c.ParameterValidator.expectBool(r3, () => d.ParameterInfo.createConstructorParameter(this.className, "reId")), r3 && i3 && (i3.id = (0, a.uuid)()), Object.defineProperties(this, { _amBuildingExpressionGeneration: { value: false, enumerable: false, writable: true }, _builderPartDef: { value: n3, writable: true }, _builderPartModel: { value: i3, enumerable: true, writable: true }, _cannotBeDeleted: { value: false, writable: true } }); + } + _fireBuilderPartExpressionTextChanged() { + this.parentFlow.loaded && _.fireEvent(this, p.builderPartExpressionTextChanged); + } + _loadModel(e3, t3) { + } + configureWithLanguageContext(e3, t3) { + var i3; + const n3 = null === (i3 = this.builderPartDef.partConfigurators) || void 0 === i3 ? void 0 : i3.configureWithLanguageContext; + o.default.isFunction(n3) && n3(this, e3, t3); + } + configureWithLanguageContexts(e3, t3) { + var i3; + const n3 = null === (i3 = this.builderPartDef.partConfigurators) || void 0 === i3 ? void 0 : i3.configureWithLanguageContexts; + o.default.isFunction(n3) && n3(this, e3, t3); + } + get hasError() { + return !this.outOfService && super.hasError; + } + get hasWarning() { + return !this.outOfService && super.hasWarning; + } + get hasInfo() { + return !this.outOfService && super.hasInfo; + } + get isContainerPart() { + return false; + } + get needsDeletion() { + let e3 = false; + try { + e3 = this._needsDeletion; + } catch (e4) { + } + return e3; + } + get _needsDeletion() { + return false; + } + _validateBuilderObject(e3, t3) { + if (this.outOfService) return true; + let i3 = super._validateBuilderObject(e3, t3); + try { + this._preValidateConfigureResultsOrganizer(e3), i3 = this._validatePart(e3, t3); + } catch (t4) { + i3 = false, e3.addError(this, h.builders.errorValidatingBuilderPart); + } finally { + this._postValidateClearResultsOrganizer(e3); + } + return i3; + } + _preValidateConfigureResultsOrganizer(e3) { + } + _postValidateClearResultsOrganizer(e3) { + } + _validatePart(e3, t3) { + var i3; + e3.setContextIsBuilderPartDefRelated(); + let n3 = true; + try { + (null === (i3 = this.owningExpression.options) || void 0 === i3 ? void 0 : i3.additionalBuilderPartDefs.some((e4) => e4.id === this.builderPartDefId)) && (this._meetsFeatureRequirementsCheck = true, this._isAvailableForFlowTypeCheck = true), void 0 === this._meetsFeatureRequirementsCheck && (this._meetsFeatureRequirementsCheck = this.builderPartDef.meetsFeatureRequirements), true !== this._meetsFeatureRequirementsCheck ? (e3.addError(this, (0, r2.sprintf)(h.expression.builderPartOrContainerUnavailableFeatureRequirements, this.builderPartDef.name)), n3 = false) : (void 0 === this._isAvailableForFlowTypeCheck && (this._isAvailableForFlowTypeCheck = this.builderPartDef.isAvailableForFlow(this.parentFlow)), true !== this._isAvailableForFlowTypeCheck && (e3.addError(this, (0, r2.sprintf)(h.expression.builderPartOrContainerUnavailableForFlowType, this.builderPartDef.name, this.parentFlow.info.flowTypeName)), n3 = false)); + } finally { + e3.clearContextIsBuilderPartDefRelated(); + } + return n3; + } + createGenerationResult(e3, t3) { + return e3.createGeneration().setReplacementTokens(t3); + } + createSingleStringGenerationResult(e3) { + return this.createGenerationResult(s.default.singleTokenReplacementGenerator, e3); + } + get outOfService() { + return !!this.builderPartModel && !!this.builderPartModel.outOfService; + } + set outOfService(e3) { + !!e3 !== this.builderPartModel.outOfService && (this.builderPartModel.outOfService = !!e3, this._processOutOfService(!!e3), this._fireBuilderPartExpressionTextChanged()); + } + get overrideErrorText() { + return this._overrideErrorText; + } + get _overrideErrorText() { + } + _processOutOfService(e3) { + } + get builderPartDefId() { + var e3; + return null === (e3 = this.builderPartModel) || void 0 === e3 ? void 0 : e3.builderPartDefId; + } + get builderPartDef() { + return this._builderPartDef || (this._builderPartDef = this.isContainerPart ? l.default.getBuilderPartContainerDefById(this.builderPartDefId) : l.default.getBuilderPartDefById(this.builderPartDefId)), this._builderPartDef; + } + buildExpressionGeneration() { + if (this.outOfService) return ""; + if (!this._amBuildingExpressionGeneration) { + this._amBuildingExpressionGeneration = true; + try { + return this._buildExpressionGeneration(); + } finally { + this._amBuildingExpressionGeneration = false; + } + } + } + _buildExpressionGeneration() { + throw "You must override the _buildExpressionGeneration method in inheriting classes"; + } + get cannotBeDeleted() { + return this._cannotBeDeleted; + } + set cannotBeDeleted(e3) { + this._cannotBeDeleted = c.ParameterValidator.expectBool(e3, () => d.ParameterInfo.createPropertySet(this.className, "cannotBeDeleted", "value")); + } + get definitionId() { + return this.builderPartDefId; + } + setCannotBeDeleted(e3) { + return this.cannotBeDeleted = e3, this; + } + get className() { + return "BaseBuilderPartViewModel"; + } + createBuilderPartViewModel(e3, t3) { + throw "You must override the createBuilderPartViewModel method in inheriting classes"; + } + _destroy() { + _.unregisterAndRemoveObject(this), this._amBuildingExpressionGeneration = void 0, this._builderPartDef = void 0, this._builderPartModel = void 0, this._cannotBeDeleted = void 0, super._destroy(); + } + get isBaseBuilderPartViewModel() { + return true; + } + get id() { + return this._builderPartModel.id; + } + get viewId() { + return this._builderPartDef.viewId; + } + get builderPartModel() { + return this._builderPartModel; + } + get descriptionInfo() { + return this.builderPartDef.descriptionInfo; + } + getFullDescription() { + return this.descriptionInfo; + } + get sortValue() { + return "0"; + } + } + t2.default = m; + }, 54976: (e2, t2, i2) => { + const n2 = i2(2210), r2 = i2(13240), o = i2(90807), a = i2(7401); + function s() { + Object.defineProperties(this, { _errorBindings: { writable: true }, _preTransferAudio: { writable: true }, _preTransferCommunication: { writable: true }, _failureTransferAudio: { writable: true }, _failureTransferCommunication: { writable: true } }), s.baseConstructor.apply(this, arguments); + } + r2.extend(s, "BaseTransferActionModel"), Object.defineProperties(s.prototype, { pasteReIdOrRename: { value: function(e3) { + s._super.pasteReIdOrRename.apply(this, arguments), this.errorBindings.forEach((t3) => t3.pasteReIdOrRename(e3)), this.preTransferAudio.pasteReIdOrRename(e3), this.preTransferCommunication.pasteReIdOrRename(e3), this.failureTransferAudio.pasteReIdOrRename(e3), this.failureTransferCommunication.pasteReIdOrRename(e3); + } }, pasteResolveOldToNewValues: { value: function(e3) { + s._super.pasteResolveOldToNewValues.apply(this, arguments), this.errorBindings.forEach((t3) => t3.pasteResolveOldToNewValues(e3)), this.preTransferAudio.pasteResolveOldToNewValues(e3), this.preTransferCommunication.pasteResolveOldToNewValues(e3), this.failureTransferAudio.pasteResolveOldToNewValues(e3), this.failureTransferCommunication.pasteResolveOldToNewValues(e3); + } }, errorBindings: { enumerable: true, get: function() { + return this._errorBindings; + }, set: function(e3) { + this._errorBindings = this.reviveArray(e3, o); + } }, preTransferAudio: { enumerable: true, get: function() { + return this._preTransferAudio; + }, set: function(e3) { + this._preTransferAudio = this.reviveItem(e3, n2); + } }, preTransferCommunication: { enumerable: true, get: function() { + return this._preTransferCommunication; + }, set: function(e3) { + this._preTransferCommunication = this.reviveItem(e3, a); + } }, failureTransferAudio: { enumerable: true, get: function() { + return this._failureTransferAudio; + }, set: function(e3) { + this._failureTransferAudio = this.reviveItem(e3, n2); + } }, failureTransferCommunication: { enumerable: true, get: function() { + return this._failureTransferCommunication; + }, set: function(e3) { + this._failureTransferCommunication = this.reviveItem(e3, a); + } } }), e2.exports = s; + }, 54982: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importDefault(i2(92140)), o = n2.__importDefault(i2(94225)), a = i2(26847), s = n2.__importDefault(i2(6074)); + class l extends s.default { + constructor(e3) { + super(e3), this._coreTaskViewModel = e3, this._isVariableContainer = true; + } + get coreTaskViewModel() { + return this._coreTaskViewModel; + } + addVariable(e3, t3, i3) { + return this._addVariable(this, "addVariable", e3, t3, i3); + } + get displayTypeName() { + return "ArchTask"; + } + get isArchTask() { + return true; + } + get isSecure() { + return this._coreTaskViewModel.consumesSecureData; + } + get logStr() { + if (!this._coreTaskViewModel) return this.logStrTypeOnly; + const e3 = []; + return this._appendLogStrTrackingIdNameType(e3, this.trackingId, this.name, this.displayTypeName), this._createLogStrFromParts(e3); + } + getVariableByName(e3) { + this._checkItemIsValidLiteralString(this._infoParm("variableName", "getVariableByName"), e3); + const t3 = this._coreTaskViewModel.parentFlow.variableGroup.getVariableByName(e3, this._coreTaskViewModel); + if (t3) return this.coreFactory.createArchWrapper(t3); + } + get name() { + return this._coreTaskViewModel.name; + } + set name(e3) { + this._checkItemIsValidLiteralString(this._infoPropSet("newValue", "name"), e3), this._coreTaskViewModel.name = e3; + } + get branches() { + const e3 = []; + return this._coreTaskViewModel.parentFlow.supportsTasksWithOutputPaths && r2.default.each(this._coreTaskViewModel.getBranches(), (t3) => { + e3.push(this.coreFactory.createArchWrapper(t3)); + }), e3; + } + get trackingId() { + return this._coreTaskViewModel.trackingId; + } + set trackingId(e3) { + const t3 = this._infoPropSet("value", "trackingId"); + this._ensureCanSetTrackingIds(t3, o.default, e3); + const i3 = this._coreTaskViewModel.trackingId; + i3 !== e3 && (this._coreTaskViewModel.trackingId = e3, this.logItemVerboseNote(t3, `updated tracking ID from ${i3} to ${this._coreTaskViewModel.trackingId}.`)); + } + get variables() { + return this._coreTaskViewModel.parentFlow.variableGroup.filterByTask(this._coreTaskViewModel).filter((e3) => e3.isTaskVariable && !e3.isClone).map((e3) => this.coreFactory.createArchWrapper(e3)); + } + _getArchBranchForOutputId(e3) { + if (e3 === a.outputIds.fake) return; + const t3 = r2.default.find(this._coreTaskViewModel.getBranches(), (t4) => t4.outputId === e3); + return t3 ? this.coreFactory.createArchWrapper(t3) : void 0; + } + addBranch(e3) { + const t3 = this._infoParm("branchName", "addBranch"); + this._checkItemIsValidLiteralString(t3, e3), this._coreTaskViewModel.parentFlow.supportsTasksWithOutputPaths || this.logErrorAndThrow("you cannot add a branch to a task that is in a flow type of '" + this._coreTaskViewModel.parentFlow.type + "' since task branches are not supported."); + const i3 = this._coreTaskViewModel.getBranchByName(e3); + return i3 && this.logErrorAndThrow(`unable to add a branch named '${e3}' to this task. The branch name '${i3.label}' already exists.`), this.coreFactory.createArchWrapper(this._coreTaskViewModel.createBranch(e3)); + } + deleteBranch(e3) { + const t3 = this._infoParm("branchToDelete", "deleteBranch"); + this._checkItem(t3, !(r2.default.isString(e3) || e3 && e3.isArchBranch), "the branchToDelete parameter must either be a string or an ArchBranch instance."), this._coreTaskViewModel.parentFlow.supportsTasksWithOutputPaths || this.logErrorAndThrow("you cannot delete a branch to a task that is in a flow type of '" + this._coreTaskViewModel.parentFlow.type + "' since task branches are not supported."); + const i3 = r2.default.isString(e3) ? e3 : e3.outputId; + return this._coreTaskViewModel.removeBranch(i3), !this._coreTaskViewModel.getBranches().some((e4) => e4.outputId === i3); + } + getBranchByDefaultOutput() { + return this._getArchBranchForOutputId(a.outputIds.default); + } + getBranchByOutputId(e3) { + const t3 = this._infoParm("outputId", "getBranchByOutputId"); + this._checkItemIsValidLiteralString(t3, e3, false), this._coreTaskViewModel.parentFlow.supportsTasksWithOutputPaths || this.logErrorAndThrow("you cannot get a task branch in a flow type of '" + this._coreTaskViewModel.parentFlow.type + "' since task branches are not supported."); + return this._getArchBranchForOutputId(e3) || (this.logError(`the output id '${e3}' is not valid for ${this.logStr}.`), null); + } + getBranchByName(e3) { + const t3 = this._infoParm("branchName", "getBranchByName"); + this._checkItemIsValidLiteralString(t3, e3), this._coreTaskViewModel.parentFlow.supportsTasksWithOutputPaths || this.logErrorAndThrow("you cannot get a task branch by name in a flow type of '" + this._coreTaskViewModel.parentFlow.type + "' since task branches are not supported."); + const i3 = this._coreTaskViewModel.getBranchByName(e3); + return r2.default.isObject(i3) ? this.coreFactory.createArchWrapper(i3) : (this.logError(`could not find the branch name '${e3}' for ${this.logStr}.`), null); + } + get isReusableTask() { + return this._coreTaskViewModel.isReusableTask; + } + get branchCount() { + return this._coreTaskViewModel.parentFlow.supportsTasksWithOutputPaths ? this._coreTaskViewModel.getBranches().length : 0; + } + get parentFlow() { + return this.coreFactory.createArchWrapper(this._coreTaskViewModel.parentFlow); + } + get supportsBranches() { + return this._coreTaskViewModel.parentFlow.supportsTasksWithOutputPaths; + } + } + t2.default = l; + }, 54987: (e2, t2, i2) => { + const { abortSurveyActionType: n2 } = i2(30801), r2 = i2(28730), o = i2(7401); + function a() { + Object.defineProperties(this, { _disposition: { writable: true } }), a.baseConstructor.apply(this, arguments); + } + r2.extend(a, n2, true), Object.defineProperties(a.prototype, { pasteReIdOrRename: { value: function(e3) { + a._super.pasteReIdOrRename.apply(this, arguments), this.disposition.pasteReIdOrRename(e3); + } }, pasteResolveOldToNewValues: { value: function(e3) { + a._super.pasteResolveOldToNewValues.apply(this, arguments), this.disposition.pasteResolveOldToNewValues(e3); + } }, disposition: { enumerable: true, get: function() { + return this._disposition; + }, set: function(e3) { + this._disposition = this.reviveItem(e3, o); + } } }), e2.exports = a; + }, 55006: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.LogLevelCharacteristic = t2.ExecutionDataType = void 0; + const n2 = i2(31635), r2 = n2.__importStar(i2(74359)), o = n2.__importStar(i2(10798)), a = n2.__importDefault(i2(4648)), s = i2(96618), l = n2.__importStar(i2(24032)), u = i2(47957), d = l.getTopic("executionDataService"); + var c, p; + !(function(e3) { + e3.bot = "bot", e3.dataAction = "dataAction", e3.flow = "flow"; + })(c || (t2.ExecutionDataType = c = {})), (function(e3) { + e3.botCommunications = "botCommunications", e3.botEventError = "botEventError", e3.botExecutionItems = "botExecutionItems", e3.botInputs = "botInputs", e3.botOutputs = "botOutputs", e3.flowCommunications = "flowCommunications", e3.flowEventError = "flowEventError", e3.flowEventWarning = "flowEventWarning", e3.flowEventOther = "flowEventOther", e3.flowExecutionItems = "flowExecutionItems", e3.flowExecutionInputOutputs = "flowExecutionInputOutputs", e3.flowNames = "flowNames", e3.flowTruncateValues = "flowTruncateValues", e3.flowVariables = "flowVariables"; + })(p || (t2.LogLevelCharacteristic = p = {})), t2.default = new class { + constructor() { + r2.bootstrapDataLoaded.then(() => { + this.initialize(true); + }); + } + initialize(e3) { + this._characteristicMap && !e3 || (this._characteristicMap = /* @__PURE__ */ new Map(), Object.values(p).forEach((e4) => { + if (!e4) return; + let t3; + t3 = e4.startsWith(c.bot) ? this._isExecutionDataAvailableForType(c.bot) : e4.startsWith(c.dataAction) ? this._isExecutionDataAvailableForType(c.dataAction) : !!e4.startsWith(c.flow) && this._isExecutionDataAvailableForType(c.flow), this._characteristicMap[e4] = t3; + })); + } + get characteristicMap() { + return this._characteristicMap || (d.traceOnce("executionDataService characteristicMap", (e3) => e3.error("Code attempting to access execution data characteristic map before bootstrap data loaded.")), this.initialize()), this._characteristicMap; + } + _isExecutionDataAvailableForType(e3, t3) { + switch (e3) { + case c.bot: + return o.isFeatureAvailable(a.default.botInstanceExecutionData); + case c.flow: + return t3 !== s.flowTypes.flowTypeCommonModule && (s.flowTypes.isCiceroFlowType(t3) ? o.isFeatureAvailable(a.default.flowInstanceLogLevels) : o.isFeatureAvailable(a.default.flowInstanceExecutionData) || o.isFeatureAvailable(a.default.flowInstanceLogLevelConfiguration)); + case c.dataAction: + return o.isFeatureAvailable(a.default.dataActionInstanceExecutionData); + default: + return false; + } + } + isExecutionDataTypeAvailable(e3) { + return this._isExecutionDataAvailableForType(e3); + } + flowTypeSupportsExecutionData(e3) { + return this._isExecutionDataAvailableForType(c.flow, e3); + } + isLogLevelCharacteristicAvailable(e3) { + return this._isLogLevelCharacteristicAvailable(e3); + } + isLogLevelCharacteristicAvailableForFlowType(e3, t3) { + return this._isLogLevelCharacteristicAvailable(e3, t3); + } + _isLogLevelCharacteristicAvailable(e3, t3) { + if (!this.characteristicMap[e3]) return false; + if (!t3) return true; + if (s.flowTypes.isCiceroFlowType(t3)) switch (e3) { + case p.flowExecutionItems: + case p.flowEventError: + case p.flowEventWarning: + return true; + default: + return o.isFeatureAvailable(a.default.flowInstanceExecutionDataBotFlows); + } + else if (s.flowTypes.isAutomateFlowType(t3) && e3 === p.flowCommunications) return false; + return true; + } + getExecutionDataLogLevelDisplayStr(e3, t3) { + let i3; + if (null == e3 ? void 0 : e3.length) { + const t4 = `executionDataLogLevelLabel${e3.charAt(0).toUpperCase()}${e3.slice(1)}`; + i3 = u.executionDataConfiguration[t4]; + } + return !i3 && t3 && (i3 = u.generic.unknown), i3; + } + }(); + }, 55015: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = (n2.__importStar(i2(12847)), i2(4648), i2(80295)), o = i2(80295), a = i2(19596); + class s extends a.DataContract { + static createNotAvailable(e3 = "") { + return new s({ isAvailable: false, id: e3 }); + } + static createAvailable(e3 = "") { + return new s({ isAvailable: true, id: e3 }); + } + static updateDebugAvailability(e3) { + } + constructor(e3) { + super(e3), (0, o.makeUnenumerable)(this, "_isAvailable"), (0, o.makeUnenumerable)(this, "_id"), (0, o.makeUnenumerable)(this, "_unavailableReason"), (0, o.makeUnenumerable)(this, "_ownerId"); + } + setOwnerId(e3) { + this._ownerId = e3; + } + get id() { + return this._id; + } + set id(e3) { + this._id = e3; + } + get isAvailable() { + return this._isAvailable; + } + set isAvailable(e3) { + this._isAvailable = e3; + } + get unavailableReason() { + return this._unavailableReason; + } + set unavailableReason(e3) { + this._unavailableReason = e3; + } + } + t2.default = s, n2.__decorate([(0, r2.enumerable)(true), n2.__metadata("design:type", String), n2.__metadata("design:paramtypes", [String])], s.prototype, "id", null), n2.__decorate([(0, r2.enumerable)(true), n2.__metadata("design:type", Boolean), n2.__metadata("design:paramtypes", [Boolean])], s.prototype, "isAvailable", null), n2.__decorate([(0, r2.enumerable)(true), n2.__metadata("design:type", Object), n2.__metadata("design:paramtypes", [Object])], s.prototype, "unavailableReason", null); + }, 55026: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.GetJourneyOutcomeScoresBySessionActionModel = void 0; + const n2 = i2(28904), r2 = i2(30801); + class o extends n2.BaseFindSystemObjectByIdActionModel { + constructor(e3) { + super(e3), this.__type = o.__type; + } + } + t2.GetJourneyOutcomeScoresBySessionActionModel = o, o.__type = r2.getJourneyOutcomeScoresBySessionActionType, o.registerType(); + }, 55031: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(54757)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "dateCollection"; + } + get displayTypeName() { + return "ArchValueDateCollection"; + } + get isArchValueDateCollection() { + return true; + } + } + t2.default = r2; + }, 55048: (e2, t2, i2) => { + "use strict"; + const n2 = i2(31635), r2 = n2.__importDefault(i2(942)), o = i2(21647), a = i2(80428), s = i2(51060), l = i2(12179), u = n2.__importDefault(i2(97891)), d = i2(47957); + class c extends r2.default { + constructor(e3, t3) { + super(e3.parentFlow, e3), this._loadModel(t3); + } + static get managedProperties() { + return r2.default.createManagedProperties({ searchFieldPropertyName: "findId", searchFieldOptionsCallback: (e3) => e3.facets.setLengthForUuid(), searchFieldLabel: d.findActions.getJourneyOutcome.idLabel, searchResultLabel: d.findActions.getJourneyOutcome.resultLabel, searchResultExpressionOptions: o.ExpressionTypeComplexOptions.create(), searchResultItemType: a.expressionTypeNames.journeyOutcome }); + } + } + c.info = u.default.createActionInfo({ actionClass: c, canBeInTask: true, helpTopic: l.helpTopics.actions.getJourneyOutcome, modelClass: s.GetJourneyOutcomeActionModel, name: d.actions.getJourneyOutcome, scriptingName: "ArchActionGetJourneyOutcome" }), t2.A = c; + }, 55050: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(54063)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "stringKeyValuePairCollection"; + } + get displayTypeName() { + return "ArchValueStringKeyValuePairCollection"; + } + get isArchValueStringKeyValuePairCollection() { + return true; + } + } + t2.default = r2; + }, 55072: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importDefault(i2(73198)), o = n2.__importDefault(i2(17405)); + class a extends o.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "decimal"; + } + get displayTypeName() { + return "ArchValueDecimal"; + } + get isArchValueDecimal() { + return true; + } + setExpressionMaxDecimal() { + this._setExpression(this._infoVal("arch_max_decimal", "setMaxDecimal"), r2.default.maxDecimalAsStr); + } + setExpressionMinDecimal() { + this._setExpression(this._infoVal("arch_min_decimal", "setMinDecimal"), r2.default.minDecimalAsStr); + } + setLiteralDecimal(e3) { + const t3 = this._infoParm("decimalVal", "setLiteralDecimal"); + this._checkItemIsValidLiteralDecimal(t3, e3, false), this._setLiteral(t3, e3); + } + } + t2.default = a; + }, 55167: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(84502)), r2 = i2(96618); + class o extends n2.default { + constructor(e3) { + super(e3); + } + get _flowType() { + return r2.flowTypes.flowTypeInQueueEmail; + } + get displayTypeName() { + return "ArchFlowInQueueEmail"; + } + get isArchFlowInQueueEmail() { + return true; + } + } + t2.default = o; + }, 55190: (e2, t2, i2) => { + const n2 = i2(36019).default, r2 = i2(25149); + function o() { + } + o.prototype.getQueues = function(e3) { + return n2.build(r2.getQueues).queryParams(e3.getSearchQueryParams()).call(); + }, o.prototype.getQueuesDivisionViews = function(e3) { + return n2.build(r2.getQueuesDivisionViews).queryParams(e3.getSearchQueryParams()).call(); + }, o.prototype.getQueue = function(e3) { + return n2.build(r2.getQueue).templateParams({ id: e3 }).call(); + }, o.prototype.getQueue.api = r2.getQueue, e2.exports = new o(); + }, 55279: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.ConversationCustomAttributeSchemaList = void 0; + const n2 = i2(31635), r2 = i2(80295), o = i2(15116), a = i2(82675); + class s extends o.PagedList { + constructor(e3) { + super(e3); + } + get entities() { + return this._entities; + } + set entities(e3) { + this._entities = this.reviveArray(e3, a.ConversationCustomAttributeSchema); + } + } + t2.ConversationCustomAttributeSchemaList = s, n2.__decorate([(0, r2.enumerable)(true), n2.__metadata("design:type", Array), n2.__metadata("design:paramtypes", [Array])], s.prototype, "entities", null); + }, 55295: (e2, t2, i2) => { + function n2() { + this.id = void 0, this.name = void 0, this.isSecure = void 0, this.isDefault = void 0, this.languages = void 0, n2.baseConstructor.apply(this, arguments); + } + i2(45214).extend(n2, "Engine"), e2.exports = n2; + }, 55299: (e2, t2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.BaseClass = void 0; + class i2 { + get isBaseClass() { + return true; + } + } + t2.BaseClass = i2, i2.isBaseClassObject = true; + }, 55352: (e2, t2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.ConfigurationListItemStatuses = void 0, t2.ConfigurationListItemStatuses = { active: "active", deleted: "deleted" }; + }, 55420: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.dialogEngineVersionManager = t2.DialogEngineVersionManager = void 0; + const n2 = i2(31635), r2 = n2.__importDefault(i2(92140)), o = n2.__importStar(i2(1360)), a = n2.__importStar(i2(24032)), s = n2.__importDefault(i2(47532)), l = i2(30801), u = i2(30888), d = n2.__importDefault(i2(6413)), c = i2(81801), p = i2(47957), _ = i2(27862), h = i2(94384); + class m extends s.default { + get requiredAuth() { + return c.externalAuthorizations.authStrings.integrationView; + } + get dependencyType() { + return _.DialogEngineBotVersion; + } + constructor() { + super(), this.topic = a.getTopic("DialogEngineVersionManager"), this._rawServerCache = {}, this.actionPropertyForUsageSearch = "botVersion", this.actionsForUsageSearch = [l.dialogEngineActionType], this.apiCallList = void 0, this.apiCallSingle = h.getVersion, this.className = "DialogEngineVersionManager", this.defaultMatchingStyle = o.exactMatch, this.dependencyContext = p.dialogEngine.dialogEngineBotVersion, this.searchField = "name", this.securityError = true, this.uiMetadataSectionName = "dialogEngineBotVersions", this.hasDependencyTrackingId = true, this.noApiCallList = true, this._initialize(); + } + get viewModelIsAutoSelectedBotRunnable() { + return true; + } + addItem(e3, t3, i3) { + var n3; + return (null === (n3 = null == e3 ? void 0 : e3.id) || void 0 === n3 ? void 0 : n3.includes("/")) && (e3.id = r2.default.splitOn(e3.id, "/")[1]), this.items = r2.default.pick(this.items, (t4) => t4.botId !== e3.bot.id), super.addItem(e3); + } + _createItemViewModel(e3) { + return new d.default(e3); + } + getBotCategoryForBotRunnable(e3) { + if (!r2.default.isString(e3)) return this.topic.error("Object passed to getBotCategoryForBotRunnable was not a string: " + e3), null; + const t3 = this.items[e3.toLowerCase()]; + return t3 ? u.dialogEngineBotManager.getItem(t3.botId) : null; + } + } + t2.DialogEngineVersionManager = m, t2.dialogEngineVersionManager = new m(); + }, 55422: (e2, t2, i2) => { + const n2 = i2(28730), r2 = i2(90807), { screenPopActionType: o } = i2(30801); + function a() { + Object.defineProperties(this, { _inputs: { writable: true } }), this.screenPopId = void 0, this.screenPopName = void 0, a.baseConstructor.apply(this, arguments); + } + n2.extend(a, o, true), Object.defineProperties(a.prototype, { pasteReIdOrRename: { value: function(e3) { + a._super.pasteReIdOrRename.apply(this, arguments); + for (let t3 = 0; t3 < this.inputs.length; t3++) this.inputs[t3].pasteReIdOrRename(e3); + } }, pasteResolveOldToNewValues: { value: function(e3) { + a._super.pasteResolveOldToNewValues.apply(this, arguments); + for (let t3 = 0; t3 < this.inputs.length; t3++) this.inputs[t3].pasteResolveOldToNewValues(e3); + } }, inputs: { enumerable: true, get: function() { + return this._inputs; + }, set: function(e3) { + this._inputs = this.reviveArray(e3, r2); + } } }), e2.exports = a; + }, 55440: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.single = void 0; + var n2 = i2(59328), r2 = i2(94708), o = i2(23506), a = i2(65212), s = i2(17214); + t2.single = function(e3) { + return a.operate(function(t3, i3) { + var a2, l = false, u = false, d = 0; + t3.subscribe(s.createOperatorSubscriber(i3, function(n3) { + u = true, e3 && !e3(n3, d++, t3) || (l && i3.error(new r2.SequenceError("Too many matching values")), l = true, a2 = n3); + }, function() { + l ? (i3.next(a2), i3.complete()) : i3.error(u ? new o.NotFoundError("No matching values") : new n2.EmptyError()); + })); + }); + }; + }, 55510: (e2, t2, i2) => { + "use strict"; + const n2 = i2(31635), r2 = i2(80428), o = i2(78513), a = n2.__importDefault(i2(27203)), s = i2(12179), l = n2.__importDefault(i2(97891)), u = n2.__importDefault(i2(5730)), d = i2(47957); + class c extends u.default { + constructor(e3, t3) { + super(e3.parentFlow, e3), this.specificNumChars = null, this._loadModel(t3); + } + static get branchInfo() { + return [a.default.fake, a.default.failure, a.default.timeout]; + } + static get managedProperties() { + return [{ property: "specificNumChars", label: d.dialName.numberOfCharacters, type: r2.expressionTypeNames.integer, options: o.ExpressionTypeIntegerOptions.create((e3) => e3.setIninTestingField("numChars")) }]; + } + get matchByType() { + return this.model.matchByType; + } + set matchByType(e3) { + this.model.matchByType = e3; + } + get matchingStyle() { + return this.model.matchingStyle; + } + set matchingStyle(e3) { + this.model.matchingStyle = e3; + } + } + c.info = l.default.createActionInfo({ actionClass: c, canBeInTask: true, canBeTreeNode: true, helpTopic: s.helpTopics.actions.dialName, modelClass: i2(28126), name: d.dialName.title, scriptingName: "ArchActionDialByName" }), t2.A = c; + }, 55572: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(50316)); + class r2 extends n2.default { + constructor(e3) { + super(e3), this._silenceDuration = this.coreFactory.createArchWrapper(e3.silenceDuration), this._timeout = this.coreFactory.createArchWrapper(e3.timeout); + } + get isArchBaseActionWithSilenceDetection() { + return true; + } + get silenceDuration() { + return this._silenceDuration; + } + get timeout() { + return this._timeout; + } + } + t2.default = r2; + }, 55581: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = i2(96618), o = n2.__importStar(i2(63352)), a = i2(80428), s = i2(14394), l = i2(81516), u = i2(36128), d = n2.__importStar(i2(1115)), c = n2.__importDefault(i2(98495)), p = i2(47957); + class _ extends c.default { + addAttribute() { + const e3 = this.variables.add(null, s.globalTypes.string); + return e3.expression.mode = o.variable, e3.expression.setAsOutput(), d.validateAction(this, true, true), e3.id; + } + static get managedProperties() { + return [{ label: p.getConversationData.conversationLabel, options: l.ExpressionTypeStringOptions.create((e3) => e3.setAsInput().setDescriptionInfo(p.getConversationData.conversationLabel, p.getConversationData.conversationDescription).setDisableSpellcheck(true).setIninTestingField("ConversationIdExpression").setUiPropertyOrder(10).facets.setLengthForUuid()), property: "conversationId", supportedFlowTypes: [r2.flowTypes.flowTypeWorkflow, r2.flowTypes.flowTypeWorkitem], type: a.expressionTypeNames.string, yamlOptions: _.createYamlOptions("conversationId", (e3) => e3.setExportOrder(10)) }, { property: "variables", namedItems: true, isOutput: true, options: u.NameValuePairsOptions.create((e3) => e3.setAddButtonLabel(p.getAttributes.addAttributeLabel).setSectionLabel(p.setAttributes.attribute).setValueLabel(p.getAttributes.variableLabel).setUiPropertyOrder(11)), yamlOptions: _.createYamlOptions("variables", (e3) => e3.setPropertyName("attributes").setNameValuePairShouldUseVariableProperty(true).setWrappedCollectionItemName("attribute").setExportOrder(30)) }]; + } + } + t2.default = _; + }, 55654: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.getDataTables = l, t2.getDataTable = u; + const n2 = i2(31635), r2 = n2.__importStar(i2(10798)), o = n2.__importStar(i2(87459)), a = n2.__importDefault(i2(4648)), s = n2.__importDefault(i2(36019)); + function l(e3) { + const t3 = r2.isFeatureAvailable(a.default.divisionedDataTables) ? o.getDataTablesDivisionView : o.getDataTables; + return s.default.build(t3).queryParams(e3.getSearchQueryParams()).call(); + } + function u(e3) { + const t3 = r2.isFeatureAvailable(a.default.divisionedDataTables) ? o.getDataTableDivisionView : o.getDataTable; + return s.default.build(t3).templateParams({ id: e3 }).call(); + } + u.api = o.getDataTable, l.api = o.getDataTables; + }, 55656: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.SCHEME_TYPES = void 0, t2.splitRawPhoneNumber = function(e3) { + const i3 = { schemeType: "", dialingCode: "", number: "" }; + if (e3 && "string" == typeof e3) { + let n3; + if ("tel:" === e3.substring(0, 4) ? n3 = t2.SCHEME_TYPES.TEL : "sip:" === e3.substring(0, 4) ? n3 = t2.SCHEME_TYPES.SIP : "sips:" === e3.substring(0, 5) && (n3 = t2.SCHEME_TYPES.SIPS), n3 && (i3.schemeType = n3, e3 = e3.substring(n3.length)), n3 === t2.SCHEME_TYPES.TEL && "+" === e3.substring(0, 1)) { + let t3; + (e3 = e3.substring(1)).length && (t3 = a.dialingCodes[e3.substring(0, 1)], t3 || (t3 = a.dialingCodes[e3.substring(0, 2)], t3 || (t3 = a.dialingCodes[e3.substring(0, 3)]))), t3 && (i3.dialingCode = t3, e3 = e3.substring(t3.length)); + } + i3.number = e3; + } + return i3; + }, t2.validateLiteralString = function(e3, i3) { + const n3 = i3 ? r2.literal.phoneNumber.withExpressionLabel : r2.literal.phoneNumber.noExpressionLabel, a2 = this.splitRawPhoneNumber(e3); + return a2.schemeType ? a2.schemeType === t2.SCHEME_TYPES.SIP || a2.schemeType === t2.SCHEME_TYPES.SIPS ? e3.match(s) ? void 0 : (0, o.sprintf)(n3.errorInvalidSipUri, i3) : a2.dialingCode ? a2.number ? e3.match(l) ? void 0 : (0, o.sprintf)(n3.errorInvalidNumber, i3) : (0, o.sprintf)(n3.errorNoNumber, i3) : (0, o.sprintf)(n3.errorNoDialingCode, i3) : (0, o.sprintf)(n3.errorNoSchemeType, i3); + }; + const n2 = i2(31635), r2 = i2(47957), o = i2(17604), a = n2.__importStar(i2(85705)); + t2.SCHEME_TYPES = { TEL: "tel:", SIP: "sip:", SIPS: "sips:" }; + const s = /^sip(s)?:(.+)@(.+)$/, l = /^tel:\+\d{1,3}[\w\-\(\)\.!~\*'#%]+(;.*)?$/; + }, 55678: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = i2(17604), o = n2.__importDefault(i2(92140)), a = i2(24032), s = n2.__importDefault(i2(45098)), l = i2(10798), u = n2.__importDefault(i2(4648)), d = i2(62297), c = n2.__importDefault(i2(15777)), p = i2(47957), _ = (0, a.getTopic)("TTSEngineViewModel"); + class h extends d.EngineViewModel { + get className() { + return "TTSEngineViewModel"; + } + constructor(e3, t3) { + super(e3, t3), this.voices = {}, e3 && o.default.isObject(e3.voices) && o.default.each(e3.voices, (e4, t4) => { + const i3 = this.getDependencyTrackingIdForVoice(t4), n3 = new c.default(e4, i3, this); + s.default.items[i3] = n3, this.voices[i3] = n3; + }); + } + addLanguage(e3, t3, i3) { + super.addLanguage(e3, t3, i3), o.default.each(i3, (t4) => { + const i4 = this.getDependencyTrackingIdForVoice(t4.id), n3 = this.voices[i4]; + n3 ? n3.setLanguage(e3, t4.isDefault) : _.error(`Voice view model not found when trying to add language with voice. ID: '${i4}', langId: '${e3}'`); + }); + } + get maxRequestLength() { + return this.model.maxRequestLength; + } + set maxRequestLength(e3) { + this.model.maxRequestLength = e3; + } + getFullDescription() { + if (!this.maxRequestLength) return; + const e3 = { name: this.name, additionalInfoSections: [], noAdditionalInfoSectionBullet: true }; + return this.maxRequestLength && e3.additionalInfoSections.push({ title: (0, r2.sprintf)(p.textToSpeech.maxCharLengthTitle, this.maxRequestLength), entries: [p.textToSpeech.maxCharLengthBody] }), e3; + } + getSortedVoicesArray() { + const e3 = o.default.map(this.voices, (e4) => e4); + return o.default.sortBy(e3, "name"); + } + getStringExceedsMaxRequestLengthError(e3, t3, i3) { + return o.default.isString(e3) && this.maxRequestLength && e3.length > this.maxRequestLength ? t3 && i3 ? (0, r2.sprintf)(p.audio.errorMaxTtsLengthForPrompt, t3, i3, e3.length, this.maxRequestLength, this.name) : (0, r2.sprintf)(p.audio.errorMaxTtsLength, e3.length, this.maxRequestLength, this.name) : null; + } + getVoiceByName(e3) { + if (!e3) return; + const t3 = e3.toLocaleLowerCase(); + return o.default.find(this.voices, (e4) => e4.lowerName === t3); + } + getVoicesForLanguage(e3) { + return o.default.isString(e3) ? o.default.filter(this.voices, (t3) => t3 && t3.getVoiceSupportsLanguage(e3)) : []; + } + getSelectableVoicesForLanguage(e3) { + return (0, l.isFeatureAvailable)(u.default.flexibleTtsSelection) ? Object.values(this.voices) : this.getVoicesForLanguage(e3); + } + getDefaultVoiceForLanguage(e3) { + return o.default.find(this.voices, (t3) => t3.getIsVoiceDefaultForLanguage(e3)); + } + getDependencyTrackingIdForVoice(e3) { + return this.id + "/" + e3; + } + get isTTSEngineViewModel() { + return true; + } + } + t2.default = h; + }, 55705: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.QuestionSettings = void 0; + const n2 = i2(31635), r2 = i2(79364), o = (i2(92794), i2(17604)), a = n2.__importDefault(i2(92140)), s = i2(81116), l = n2.__importDefault(i2(7401)), u = i2(81516), d = i2(8532), c = i2(99918), p = n2.__importStar(i2(17498)), _ = n2.__importStar(i2(36781)), h = n2.__importDefault(i2(77862)), m = i2(58380), g = i2(2305), f = i2(56969), T = i2(56969), y = i2(56969), S = i2(56969), A = n2.__importStar(i2(47524)), N = n2.__importStar(i2(1115)), O = i2(12179), I = n2.__importStar(i2(14187)), v = n2.__importDefault(i2(71729)), C = i2(80428), b = n2.__importDefault(i2(65302)), E = i2(47957), R = i2(27862); + class w { + constructor(e3, t3, i3, n3, r3) { + this.question = e3, this.groupSettings = t3, this.surveyQuestionType = i3, this.answerOptions = n3, this.formVariable = r3; + } + get hasWarnings() { + var e3; + return 0 === this.actionCount || this.surveyQuestionType.hasWarning || (null === (e3 = this.answerOptions) || void 0 === e3 ? void 0 : e3.hasWarning); + } + get hasErrors() { + var e3; + return this.surveyQuestionType.hasError || (null === (e3 = this.answerOptions) || void 0 === e3 ? void 0 : e3.hasError); + } + } + t2.QuestionSettings = w; + class D extends v.default { + constructor(e3) { + super(e3), this.editor_testing_tag = "voiceSurveyFlowSettings"; + } + get id() { + return "voiceSurveyFlowSettings"; + } + _resetQuestionVariables() { + this._questionIdMap = {}, this._answerOptionsExpressionIdMap = {}, this._questionGroups = []; + } + get helpTopic() { + return O.helpTopics.treeNodes.voiceSurveyFlowSettings; + } + get className() { + return "VoiceSurveyFlowSettingsViewModel"; + } + getDisplayName() { + return E.voiceSurvey.voiceSurveyTitleWithSettings; + } + getNodeName() { + return E.flow.types.voiceSurveyFlow; + } + get isVoiceSurveyFlowSettingsNode() { + return true; + } + get wrappedYamlName() { + return "settingsVoiceSurvey"; + } + get archSurveyForm() { + var e3; + return null === (e3 = this.surveyFormInfo) || void 0 === e3 ? void 0 : e3.archSurveyForm; + } + get surveyFormInfo() { + return this._surveyFormInfo; + } + set surveyFormInfo(e3) { + this._surveyFormInfo = e3; + } + loadConfiguration(e3) { + const t3 = e3.botFlowSettings; + (null == t3 ? void 0 : t3.surveyFormInfo) && (this.surveyFormInfo = t3.surveyFormInfo), super.loadConfiguration(e3); + } + getConfiguration(e3, t3) { + var i3, n3; + const r3 = super.getConfiguration(e3, t3); + if (null == t3 ? void 0 : t3.isForFlowYaml) { + const o2 = {}; + if (null === (i3 = Object.keys(this._answerOptionsExpressionIdMap)) || void 0 === i3 ? void 0 : i3.length) { + o2.surveyQuestions = []; + const i4 = Object.keys(this._answerOptionsExpressionIdMap); + for (const r4 of i4) { + const i5 = { surveyQuestion: { text: null === (n3 = this._answerOptionsExpressionIdMap[r4].question) || void 0 === n3 ? void 0 : n3.questionText, answerOptions: this._answerOptionsExpressionIdMap[r4].answerOptions.getConfiguration(e3, t3) } }; + o2.surveyQuestions.push(i5); + } + return a.default.isBoolean(r3.none) || a.default.extend(o2, r3), o2; + } + return r3; + } + e3.botFlowSettings.surveyFormInfo = this.surveyFormInfo; + } + createSlotVarForSlotName(e3, t3) { + const i3 = super.createSlotVarForSlotName(e3, t3); + return i3 && (this._addFormToSlotVariableMapping(i3), this.parentFlow.initializeDesignTimeCalled && i3.initializeDesignTime()), i3; + } + _getManagedSlotMappingGroup(e3) { + return (null == e3 ? void 0 : e3.endsWith(h.default.variable.nameFollowUpSuffix)) ? e3.substring(0, e3.length - h.default.variable.nameFollowUpSuffix.length) : e3; + } + _addFormToSlotVariableMapping(e3) { + let t3; + const i3 = this.parentFlow.variableGroup.flowVariables.filter((e4) => e4.scope === I.scopes.form); + if (!(null == i3 ? void 0 : i3.length)) return; + const n3 = i3.filter((t4) => this._getManagedSlotMappingGroup(e3.unscopedName) === t4.unscopedName); + n3.length && n3.forEach((i4) => { + var n4; + const r3 = { variableId: "", slotName: "", slotType: "" }; + r3.variableId = e3.id, r3.slotName = Object.keys(this.parentFlow.nluMetaData.slotToSlotVariablesMapping).find((t4) => this.parentFlow.nluMetaData.slotToSlotVariablesMapping[t4] === e3.id), r3.slotType = this.parentFlow.nluMetaData.slotToEntityTypesMapping[r3.slotName], r3.slotName.endsWith(h.default.variable.nameFollowUpSuffix) && (r3.isFollowUp = true), t3 = i4.id, this.surveyFormInfo && ((null === (n4 = this.surveyFormInfo.formToSlotVariableMappings[t3]) || void 0 === n4 ? void 0 : n4.length) ? this.surveyFormInfo.formToSlotVariableMappings[t3].push(r3) : this.surveyFormInfo.formToSlotVariableMappings[t3] = [r3]); + }); + } + updateDependencies() { + super.updateDependencies(); + const e3 = this.archSurveyForm; + (null == e3 ? void 0 : e3.id) && p.registerConsumer(this, `${this.id}_SurveyForm`, e3.name, e3.id, void 0, R.SurveyForm, this.parentFlow); + } + validate(e3) { + super.validate(e3); + const t3 = null === c.surveyFormManager || void 0 === c.surveyFormManager ? void 0 : c.surveyFormManager.getItem(this.surveyFormInfo.archSurveyForm.id); + if (null == t3 ? void 0 : t3.dependencyError) switch (t3.dependencyError) { + case g.SurveyFormDependencyErrors.doesNotExist: + e3.addError(this, E.voiceSurvey.voiceSurveyFormDoesNotExistShort); + break; + case g.SurveyFormDependencyErrors.disabled: + e3.addWarning(this, E.voiceSurvey.voiceSurveyFormIsDisabledShort); + break; + case g.SurveyFormDependencyErrors.notLatest: + e3.addWarning(this, E.voiceSurvey.voiceSurveyFormNotLatestVersionShort); + break; + default: + (null == t3 ? void 0 : t3.hasInternalFormError) && e3.addError(this, E.voiceSurvey.surveyFromIncompatible); + } + Object.values(this._questionIdMap).forEach((t4) => { + var i3; + t4.surveyQuestionType.validate(e3), null === (i3 = t4.answerOptions) || void 0 === i3 || i3.validate(e3), this._validateDuplicateDTMF(e3, t4), this._validateQuestionInUse(e3, t4); + }); + } + _validateQuestionInUse(e3, t3) { + const i3 = Object.values(t3.formVariable.usages).filter((e4) => { + var t4; + return (null === (t4 = e4.referenceElement.parent.surveyQuestionResult) || void 0 === t4 ? void 0 : t4.id) === e4.referenceElement.id; + }); + t3.actionCount = i3.length, t3.actionCount || e3.addWarning(this, (0, o.sprintf)(E.voiceSurvey.voiceSurveyQuestionNotInUseError, (0, f.getGroupQuestionName)(t3.groupSettings.questionGroup, t3.question))); + } + _validateDuplicateDTMF(e3, t3) { + var i3; + const n3 = (0, y.getQuestionDtmfAnswerOptionMap)(t3.question); + null === (i3 = t3.answerOptions) || void 0 === i3 || i3.collectionItems.items.forEach((i4) => { + var r3, a2, s2; + const l2 = i4.type.getDtmf(i4), u2 = null === (a2 = null === (r3 = this.parentFlow.userInputSettings) || void 0 === r3 ? void 0 : r3.dtmfTerminatingCharacter) || void 0 === a2 ? void 0 : a2.text; + let d2; + if (l2 && (null === (s2 = n3[l2]) || void 0 === s2 ? void 0 : s2.length) > 1 ? d2 = (0, o.sprintf)(E.voiceSurvey.voiceSurveyDuplicateDtmfError, l2) : l2 === u2 && (d2 = E.voiceSurvey.voiceSurveyNotApplicableSetAsTerminatingCharacter), d2) { + const n4 = (0, o.sprintf)(E.errors.invalidValueWithContext, i4.errorLabel, (0, f.getGroupQuestionName)(t3.groupSettings.questionGroup, t3.question)); + e3.addExpressionError(i4, d2, n4); + } + }); + } + getQuestionTypeExpressionForQuestionId(e3) { + var t3; + return null === (t3 = this._questionIdMap[e3]) || void 0 === t3 ? void 0 : t3.surveyQuestionType; + } + getAnswerOptionsExpressionForQuestionId(e3) { + var t3; + return null === (t3 = this._questionIdMap[e3]) || void 0 === t3 ? void 0 : t3.answerOptions; + } + getAnswerOptionsExpressionForQuestionText(e3) { + const t3 = Object.keys(this._questionIdMap).find((t4) => { + var i3; + return (null === (i3 = this._questionIdMap[t4].question) || void 0 === i3 ? void 0 : i3.questionText) === e3; + }); + return this.getAnswerOptionsExpressionForQuestionId(t3); + } + getQuestionGroupSettings() { + return this._questionGroups; + } + _createDynamicExpressions() { + var e3; + const t3 = []; + this._resetQuestionVariables(), null === (e3 = this.parentFlow.voiceSurveyFlowSettings.archSurveyForm.questionGroups) || void 0 === e3 || e3.forEach((e4, i4) => { + e4.groupIndex || (e4.groupIndex = i4 + 1); + const n3 = { questionGroup: e4, questionSettings: [] }; + this._questionGroups.push(n3), e4.questions.forEach((r3, o2) => { + r3.questionIndex && r3.groupIndex || (r3.questionIndex = o2 + 1, r3.groupIndex = i4 + 1); + const a2 = u.ExpressionTypeStringOptions.create((e5) => e5.setIninTestingField("surveyQuestionType").setAllowModeLiteralOnly().setDescriptionInfo(E.voiceSurvey.voiceSurveyQuestionTypeLabel, E.voiceSurvey.voiceSurveyQuestionTypeDescription).setReadOnly(true).facets.setAllowableValues(A.questionTypesAll)), c2 = b.default.getType(this.parentFlow, C.expressionTypeNames.string, false), p2 = (0, s.expression)(this.parentFlow, this, new l.default(), E.voiceSurvey.voiceSurveyQuestionTypeLabel, c2, void 0, a2); + let h2; + if (p2.setAsLiteral(r3.questionType), p2.initializeDesignTime(), r3.questionType === S.SurveyQuestionTypesEnum.multipleChoiceQuestion) { + const e5 = d.ExpressionTypeSurveyAnswerOptionOptions.create((e6) => e6.setDescriptionInfo(E.voiceSurvey.voiceSurveyAnswerOptionsLabel, E.voiceSurvey.voiceSurveyAnswerOptionsDescription).setIninTestingField("answerOptions").setIsCollection(true).setAllowModeLiteralOnly().setListIsLocked().setMaxItems(20)), i5 = b.default.getType(this.parentFlow, C.expressionTypeNames.surveyAnswerOption, true); + h2 = (0, s.expression)(this.parentFlow, this, new l.default(), E.voiceSurvey.voiceSurveyAnswerOptionsLabel, i5, void 0, e5), h2.singleType.populateFromSurveyAnswerOptions(h2, r3.answerOptions), h2.initializeDesignTime(), t3.push((0, m.createObservableForEvent$)(_.expressionValueChanged, h2)), t3.push((0, m.createObservableForEvent$)(_.collectionItemValueChanged, h2)); + } + const g2 = (0, T.getSurveyQuestionFormVariableId)(e4.groupIndex, r3.questionIndex), f2 = this.parentFlow.variableGroup.getVariable(g2), y2 = new w(r3, n3, p2, h2, f2); + n3.questionSettings.push(y2), this._questionIdMap[r3.id] = y2, h2 && (this._answerOptionsExpressionIdMap[h2.id] = y2); + }); + }); + const i3 = (0, r2.merge)(...t3); + this.addAutoCleanedUpSubscription(i3.subscribe(() => N.validateNode(this, true))); + } + _initializeDesignTime() { + super._initializeDesignTime(), this._createDynamicExpressions(); + } + } + t2.default = D; + }, 55706: (e2, t2, i2) => { + const n2 = i2(13240), r2 = i2(90807), o = i2(7401), { getResponseActionType: a } = i2(30801), { ResponseLibrary: s } = i2(23436); + function l() { + Object.defineProperties(this, { _attachments: { writable: true }, _responseBody: { writable: true }, _responseBodyHandling: { writable: true }, _responseLibrary: { writable: true }, _substitutions: { writable: true } }), this.responseId = void 0, this.responseName = void 0, this.performSubstitutions = void 0, l.baseConstructor.apply(this, arguments); + } + n2.extend(l, a, true), Object.defineProperties(l.prototype, { pasteReIdOrRename: { value: function(e3) { + l._super.pasteReIdOrRename.apply(this, arguments), this.responseBody.pasteReIdOrRename(e3), this.responseBodyHandling.pasteReIdOrRename(e3), this.attachments?.pasteReIdOrRename(e3); + for (let t3 = 0; t3 < this.substitutions.length; t3++) this.substitutions[t3].pasteReIdOrRename(e3); + } }, pasteResolveOldToNewValues: { value: function(e3) { + l._super.pasteResolveOldToNewValues.apply(this, arguments), this.responseBody.pasteResolveOldToNewValues(e3), this.responseBodyHandling.pasteResolveOldToNewValues(e3), this.attachments?.pasteResolveOldToNewValues(e3); + for (let t3 = 0; t3 < this.substitutions.length; t3++) this.substitutions[t3].pasteResolveOldToNewValues(e3); + } }, responseBody: { enumerable: true, get: function() { + return this._responseBody; + }, set: function(e3) { + this._responseBody = this.reviveItem(e3, o); + } }, responseBodyHandling: { enumerable: true, get: function() { + return this._responseBodyHandling; + }, set: function(e3) { + this._responseBodyHandling = this.reviveItem(e3, o); + } }, attachments: { enumerable: true, get: function() { + return this._attachments; + }, set: function(e3) { + this._attachments = this.reviveItem(e3, o); + } }, responseLibrary: { enumerable: true, get: function() { + return this._responseLibrary; + }, set: function(e3) { + this._responseLibrary = this.reviveItem(e3, s); + } }, substitutions: { enumerable: true, get: function() { + return this._substitutions; + }, set: function(e3) { + this._substitutions = this.reviveArray(e3, r2); + } } }), e2.exports = l; + }, 55720: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.ExpressionTypeSkillOptions = void 0; + const n2 = i2(71056); + class r2 extends n2.ExpressionTypeNetworkObjectOptions { + static create(e3, t3) { + return new this(t3).invokeOptionsCallback(e3); + } + constructor(e3) { + super(e3); + } + get className() { + return "ExpressionTypeSkillOptions"; + } + get isExpressionTypeSkillOptions() { + return true; + } + } + t2.ExpressionTypeSkillOptions = r2; + }, 55817: (e2, t2, i2) => { + const n2 = i2(46205), { callVoiceFlowActionType: r2 } = i2(30801); + function o() { + o.baseConstructor.apply(this, arguments); + } + n2.extend(o, r2, true), e2.exports = o; + }, 55824: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.allFlowInvokingEventsMap = t2.allFlowInvokingEvents = t2.eventWorkitemStatusChanged = t2.eventWorkitemDateBasedEvent = t2.eventWorkitemCreated = void 0; + const n2 = i2(67018), r2 = i2(47957); + t2.eventWorkitemCreated = { id: n2.FlowInvokingEvent.workitemCreated, description: r2.flowInvokingEvents.workitemCreatedDescription }, t2.eventWorkitemDateBasedEvent = { id: n2.FlowInvokingEvent.workitemDateBasedEvent, description: r2.flowInvokingEvents.workitemDateBasedEventDescription }, t2.eventWorkitemStatusChanged = { id: n2.FlowInvokingEvent.workitemStatusChanged, description: r2.flowInvokingEvents.workitemStatusChangedDescription }, t2.allFlowInvokingEvents = [t2.eventWorkitemCreated, t2.eventWorkitemDateBasedEvent, t2.eventWorkitemStatusChanged], t2.allFlowInvokingEventsMap = {}; + for (const e3 of t2.allFlowInvokingEvents) t2.allFlowInvokingEventsMap[e3.id] = e3; + }, 55836: (e2) => { + e2.exports = { askCommon: { invalidInputReceived: "Dat is niet geldig.", noInputReceived: "Ik heb geen invoer ontvangen." }, askForBoolean: { noInput: 'Zeg "ja" als u wilt doorgaan of "nee" als u dat niet wilt.', noMatch: 'Zeg "Ja" of "Nee". Wilt u doorgaan?', question: "Wilt u doorgaan?", noInputDigitalBot: 'Voer "Ja" in als u wilt doorgaan of "Nee" als u dat niet wilt.', noMatchDigitalBot: 'Voer "Ja" of "Nee" in. Wilt u doorgaan?' }, askForIntent: { noInput: 'Zeg een korte zin om uw vraag te beschrijven, bijvoorbeeld "Mijn rekeningsaldo controleren"', noMatch: "Vertel opnieuw wat u wilt doen.", question: "Wat wilt u doen?", noInputDigitalBot: 'Voer een korte zin in om uw vraag te beschrijven, bijvoorbeeld "Mijn rekeningsaldo controleren"' }, askForSlot: { askFor: "Vragen om %1$s", noInput: "Zeg uw (vul hier de naam van het slot in) of voer de informatie in.", noInputWithSlot: "Zeg uw %1$s of voer de informatie in.", noMatch: "Geef uw (vul hier de naam van het slot in) opnieuw door.", noMatchWithSlot: "Geef uw %1$s opnieuw door.", question: "Wat is uw (vul hier de naam van het slot in)?", questionWithSlot: "Wat is uw %1$s?", pleaseEnterSlotNameHere: "(vul hier de naam van het slot in)", noInputDigitalBot: "Voer uw (vul hier de naam van het slot in) in.", noInputWithSlotDigitalBot: "Voer de %1$s in.", continuationPromptWithSlot: "Ik heb {{Slot.%1$s}} tot nu toe, ga door." }, askForNextSlot: { noInput: 'Zeg "ja" als u nog een vraag hebt of zeg "nee" om het gesprek te be\xEBindigen.', noMatch: 'Zeg "ja" als u nog een vraag hebt of zeg "nee" om de sessie te be\xEBindigen.', question: "Kan ik u nog ergens anders mee helpen?", noInputDigitalBot: 'Voer "Ja" in als u nog een vraag hebt of "Nee" om de sessie te be\xEBindigen.', noMatchDigitalBot: 'Voer "Ja" in als u nog een vraag hebt of "Nee" om de sessie te be\xEBindigen.' }, askForPayment: { noInputDigitalBot: "Geef uw betalingsgegevens op om verder te gaan.", noMatchDigitalBot: "Ik heb uw antwoord niet begrepen. Probeer het opnieuw." }, askForAuthentication: { noInputDigitalBot: "Geef uw verificatiegegevens op om door te gaan.", noMatchDigitalBot: "Ik heb uw antwoord niet begrepen. Probeer het opnieuw." }, askSurveyQuestion: { notApplicable: "Niet van toepassing", surveyAnswerOptionSequence: "Druk op %1$s voor '%2$s'.", surveyAnswerNotApplicableSequence: "Druk op het sterretje voor Niet van toepassing.", surveyAnswerNotApplicableWithQuestionSequence: "%1$s. Druk op het sterretje voor Niet van toepassing.", voiceSurveyNoInputText: "Beantwoord alstublieft de vraag.", voiceSurveyNoMatchText: "Ik heb u niet begrepen." }, commonModule: { exitCommonModule: "Algemene module afsluiten" }, form: { noInputDigitalBot: "Vul het formulier in om verder te gaan.", noMatchDigitalBot: "Vul het formulier in om verder te gaan." }, messagingTemplate: { noInputDigitalBot: "Gelieve \xE9\xE9n van de beschikbare opties te selecteren.", noMatchDigitalBot: "Gelieve \xE9\xE9n van de beschikbare opties te selecteren." }, knowledgeSettings: { knowledgeAnswerHighlightFlowProgressionDefault: "Doorgaan", knowledgeAnswerHighlightFullArticleDefault: "Volledig artikel weergeven", knowledgeInitialResponseMulti: "Kies een cijfer in de volgende lijst, zodat ik een duidelijker beeld krijg van wat u wilt doen:", knowledgeInitialResponseMultiRetry: "Kies een cijfer, bijvoorbeeld '1'.\nHier is de lijst met opties nog een keer:", knowledgeNoMatch: "Geen van deze antwoorden", knowledgeConfirmation: "Is uw vraag hiermee beantwoord?", knowledgeFollowup: "Ik hoop dat ik uw vraag heb beantwoord. Wilt u nog iets anders weten, vraag het dan gerust." }, noOverlay: { intent: { intentConfirmationStr1: "Ik denk dat u het volgende wilt:", intentConfirmationStr2: "Klopt dat?" }, youSaid: { youSaidConfirmationStr1: "U zei", youSaidConfirmationStr2: "Klopt dat?", youSaidConfirmationStr1DigitalBot: "U hebt het volgende ingevoerd:" }, noInput: { noInputStr1: "Zeg of voer de volgende informatie in:", noInputStr1DigitalBot: "Voer het volgende in:" }, noMatch: { noMatchStr1: "Laat me het volgende weten:" }, whatIs: { whatIsQuestionStr1: "Wat is", whatIsQuestionStr2: "?" }, iGotContinuation: { iGotContinuationStr1: "Ik heb", iGotContinuationStr2: "tot nu toe, ga door." } }, defaultCallFlowOne: "Standaard oproepflow", errorHandlingAgentEscalationConfirmation: "U wilt een adviseur spreken, klopt dat?", errorHandlingAgentEscalationHandover: "Een ogenblik geduld. Ik verbind u door.", errorHandlingErrorEventHandover: "Sorry, er is een fout opgetreden. Een ogenblik geduld. Ik verbind u door met iemand die u kan helpen.", errorHandlingErrorEventHandoverVoiceSurvey: "Sorry, er is een fout opgetreden. Tot ziens.", errorHandlingRecognitionEventHandover: "Sorry, ik heb u niet begrepen. Een ogenblik geduld. Ik verbind u door met iemand die u kan helpen.", errorHandlingRecognitionEventHandoverVoiceSurvey: "Sorry, ik heb u niet begrepen. Tot ziens.", errorHandlingTTS: "Sorry, er is een fout opgetreden. Probeer opnieuw te bellen.", initialGreetingTTS: "Hallo, dit is de eerste begroeting.", initialState: "Initi\xEBle status", initialBotState: "Standaardbot", initialDigitalBotState: "Eerste begroeting", initialSurveyBotState: "Enqu\xEAtebot", intentConfirmation: "Ik denk dat u het volgende wilt doen: %1$s. Klopt dat?", mainMenu: "Hoofdmenu", mainMenuTTS: "U bent in het hoofdmenu. Druk op 9 om de verbinding te verbreken.", mainTask: "Taak", settingsConfirmationNoInputApology: "Sorry, ik heb u niet verstaan. Zeg ja of nee.", settingsConfirmationNoInputApologyDigitalBot: 'Sorry, ik heb geen invoer van u ontvangen. Voer "Ja" of "Nee" in.', settingsConfirmationNoMatchApology: "Sorry, zeg ja of nee.", settingsConfirmationNoMatchApologyDigitalBot: 'Sorry, voer "Ja" of "Nee" in.', settingsNoInputApology: "Sorry, ik heb u niet verstaan.", settingsNoInputApologyDigitalBot: "Sorry, ik heb geen invoer van u ontvangen.", settingsEndOfSessionMessageDigitalBot: "Ik heb al even niets van u gehoord, daarom sluit ik deze chat. Kom terug als u mijn hulp weer nodig hebt. Dank u.", settingsNoMatchApology: "Sorry.", settingsNoToConfirmationApology: "Mijn fout.", periodicStateName: "Terugkerende status" }; + }, 55867: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.BaseActionProperty = void 0; + const n2 = i2(31635), r2 = n2.__importStar(i2(24032)), o = n2.__importStar(i2(58380)), a = n2.__importStar(i2(1115)), s = i2(55299); + class l extends s.BaseClass { + constructor(e3, t3) { + if (super(), this.supportsInitializeDesignTime = true, this._initializeDesignTimeCalled = false, this._attachedActionProperties = [], this._autoCleanedUpSinks = [], !e3) throw new Error("no action"); + this.traceTopic = r2.getTopic(this.className).copyContext(e3.topic), this.$action = e3, this.metaData = t3, this.options = t3.options; + } + get action() { + return this.$action; + } + get className() { + return "BaseActionProperty"; + } + getConfiguration(e3, t3, i3) { + return null; + } + get parentFlow() { + return this.action.parentFlow; + } + get topParent() { + return this.action.topParent; + } + addClipboardDependencies(e3) { + } + checkVersion(e3) { + } + destroy() { + this._attachedActionProperties.forEach((e3) => { + delete this.action[e3]; + }), this._attachedActionProperties.length = 0, o.cleanUpAutoCleanupWatchList(this._autoCleanedUpSinks); + } + setNewInstanceDefaults() { + } + initializeDesignTime() { + try { + this._initializeDesignTime(); + } catch (e3) { + this.traceTopic.exception(e3, "BaseActionProperty _initializeDesignTime"); + } + this._initializeDesignTimeCalled = true; + try { + this._postInitializeDesignTime(); + } catch (e3) { + this.traceTopic.exception(e3, "BaseActionProperty _postInitializeDesignTime"); + } + } + get initializeDesignTimeCalled() { + return this._initializeDesignTimeCalled; + } + get isActionProperty() { + return true; + } + search(e3) { + } + updateDependencies() { + } + validate(e3) { + } + validateAction(e3) { + a.validate(this.action, e3); + } + _initializeDesignTime() { + } + _postInitializeDesignTime() { + } + attachActionProperty(e3, t3, i3) { + Object.defineProperty(this.action, e3, { get: t3, set: i3, configurable: true }), this._attachedActionProperties.push(e3); + } + addAutoCleanedUpEventSinkWatch(e3, t3, i3) { + o.addToAutoCleanupWatchList(this._autoCleanedUpSinks, e3, t3, i3); + } + } + t2.BaseActionProperty = l; + }, 55892: (e2, t2, i2) => { + function n2() { + this.id = void 0, this.name = void 0, n2.baseConstructor.apply(this, arguments); + } + i2(45214).extend(n2, "AudioConnectorBot"), Object.defineProperties(n2.prototype, { label: { get: function() { + return this.name; + }, set: function(e3) { + this.name = e3; + } }, integrationId: { get: function() { + return this.id; + }, set: function(e3) { + this.id = e3; + } } }), e2.exports = n2; + }, 55909: (e2, t2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.ParameterInfo = void 0; + class i2 { + constructor(e3, t3, i3) { + this.className = e3, this.methodName = t3, this.parameterName = i3, this._isPropertyGet = false, this._isPropertySet = false, this._propertyMode = void 0; + } + get logStringHeader() { + let e3 = `${this.className}.${this.methodName}`; + return this._propertyMode && (e3 += `[${this._propertyMode}]`), `${e3}(${this.parameterName}): `; + } + get isPropertyGet() { + return this._isPropertyGet; + } + get isPropertySet() { + return this._isPropertySet; + } + static createConstructorParameter(e3, t3) { + return new i2(e3, "", t3); + } + static createFunctionParameter(e3, t3, n2) { + return new i2(e3, t3, n2); + } + static createPropertyGet(e3, t3) { + const n2 = new i2(e3, t3); + return n2._isPropertyGet = true, n2._propertyMode = "get", n2; + } + static createPropertySet(e3, t3, n2) { + const r2 = new i2(e3, t3, n2); + return r2._isPropertySet = true, r2._propertyMode = "set", r2; + } + } + t2.ParameterInfo = i2; + }, 55958: (e2) => { + e2.exports = { askCommon: { invalidInputReceived: "\u305D\u308C\u306F\u6709\u52B9\u3067\u306F\u3042\u308A\u307E\u305B\u3093\u3002", noInputReceived: "\u5165\u529B\u3092\u53D7\u4FE1\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\u3002" }, askForBoolean: { noInput: '\u7D9A\u884C\u3059\u308B\u5834\u5408\u306F "\u306F\u3044" \u3068\u8A00\u3063\u3066\u304F\u3060\u3055\u3044\u3002\u7D9A\u884C\u3057\u306A\u3044\u5834\u5408\u306F "\u3044\u3044\u3048" \u3068\u8A00\u3063\u3066\u304F\u3060\u3055\u3044\u3002', noMatch: '"\u306F\u3044" \u307E\u305F\u306F "\u3044\u3044\u3048" \u3068\u8A00\u3063\u3066\u304F\u3060\u3055\u3044\u3002\u7D9A\u884C\u3057\u307E\u3059\u304B?', question: "\u7D9A\u884C\u3057\u307E\u3059\u304B?", noInputDigitalBot: '\u7D9A\u884C\u3059\u308B\u5834\u5408\u306F"\u306F\u3044"\u3001\u7D9A\u884C\u3057\u306A\u3044\u5834\u5408\u306F"\u3044\u3044\u3048"\u3068\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044\u3002', noMatchDigitalBot: '"\u306F\u3044"\u307E\u305F\u306F"\u3044\u3044\u3048"\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044\u3002\u7D9A\u884C\u3057\u307E\u3059\u304B?' }, askForIntent: { noInput: '\u8CEA\u554F\u3092\u77ED\u3044\u8A00\u8449\u3067\u8A00\u3063\u3066\u304F\u3060\u3055\u3044\u3002\u4F8B: "\u6B8B\u9AD8\u3092\u78BA\u8A8D\u3057\u3066\u304F\u3060\u3055\u3044"', noMatch: "\u306A\u3055\u308A\u305F\u3044\u3053\u3068\u3092\u3082\u3046\u4E00\u5EA6\u304A\u8A71\u3057\u304F\u3060\u3055\u3044\u3002", question: "\u4F55\u3092\u306A\u3055\u308A\u305F\u3044\u306E\u3067\u3059\u304B?", noInputDigitalBot: '\u8CEA\u554F\u306E\u5185\u5BB9\u3092\u77ED\u3044\u8A00\u8449\u3067\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044\u3002\u4F8B: "\u6B8B\u9AD8\u3092\u78BA\u8A8D\u3057\u3066\u304F\u3060\u3055\u3044"' }, askForSlot: { askFor: "%1$s \u3092\u8981\u6C42\u3059\u308B", noInput: "(\u3053\u3053\u306B\u30B9\u30ED\u30C3\u30C8\u540D\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044) \u3092\u8A00\u3046\u304B\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044\u3002", noInputWithSlot: "%1$s \u3068\u8A00\u3046\u304B\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044\u3002", noMatch: "(\u3053\u3053\u306B\u30B9\u30ED\u30C3\u30C8\u540D\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044) \u3092\u3082\u3046\u4E00\u5EA6\u304A\u9858\u3044\u3057\u307E\u3059\u3002", noMatchWithSlot: "%1$s \u3092\u3082\u3046\u4E00\u5EA6\u304A\u9858\u3044\u3057\u307E\u3059\u3002", question: "(\u3053\u3053\u306B\u30B9\u30ED\u30C3\u30C8\u540D\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044) \u3068\u306F\u4F55\u3067\u3059\u304B?", questionWithSlot: "%1$s \u3068\u306F\u4F55\u3067\u3059\u304B?", pleaseEnterSlotNameHere: "(\u3053\u3053\u306B\u30B9\u30ED\u30C3\u30C8\u540D\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044)", noInputDigitalBot: "(\u3053\u3053\u306B\u30B9\u30ED\u30C3\u30C8\u540D\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044) \u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044\u3002", noInputWithSlotDigitalBot: "%1$s \u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044\u3002", continuationPromptWithSlot: "\u3053\u308C\u307E\u3067\u306B {{Slot.%1$s}} \u3092\u7372\u5F97\u3057\u307E\u3057\u305F\u3002\u7D9A\u884C\u3057\u3066\u304F\u3060\u3055\u3044\u3002" }, askForNextSlot: { noInput: '\u4ED6\u306E\u8CEA\u554F\u304C\u3042\u308B\u5834\u5408\u306F "\u306F\u3044" \u3068\u8A00\u3063\u3066\u304F\u3060\u3055\u3044\u3002\u901A\u8A71\u3092\u7D42\u4E86\u3059\u308B\u5834\u5408\u306F "\u3044\u3044\u3048" \u3068\u8A00\u3063\u3066\u304F\u3060\u3055\u3044\u3002', noMatch: '\u4ED6\u306E\u8CEA\u554F\u304C\u3042\u308B\u5834\u5408\u306F "\u306F\u3044" \u3068\u8A00\u3063\u3066\u304F\u3060\u3055\u3044\u3002\u30BB\u30C3\u30B7\u30E7\u30F3\u3092\u7D42\u4E86\u3059\u308B\u5834\u5408\u306F "\u3044\u3044\u3048" \u3068\u8A00\u3063\u3066\u304F\u3060\u3055\u3044\u3002', question: "\u4ED6\u306B\u304A\u624B\u4F1D\u3044\u3067\u304D\u308B\u3053\u3068\u306F\u3042\u308A\u307E\u3059\u304B?", noInputDigitalBot: '\u5225\u306E\u30AF\u30A8\u30EA\u304C\u3042\u308B\u5834\u5408\u306F "\u306F\u3044" \u3092\u3001\u30BB\u30C3\u30B7\u30E7\u30F3\u3092\u7D42\u4E86\u3059\u308B\u306B\u306F "\u3044\u3044\u3048" \u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044\u3002', noMatchDigitalBot: '\u5225\u306E\u30AF\u30A8\u30EA\u304C\u3042\u308B\u5834\u5408\u306F "\u306F\u3044" \u3092\u3001\u30BB\u30C3\u30B7\u30E7\u30F3\u3092\u7D42\u4E86\u3059\u308B\u306B\u306F "\u3044\u3044\u3048" \u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044\u3002' }, askForPayment: { noInputDigitalBot: "\u7D9A\u884C\u3059\u308B\u306B\u306F\u652F\u6255\u60C5\u5831\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044\u3002", noMatchDigitalBot: "\u5FDC\u7B54\u3092\u7406\u89E3\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\u3002\u518D\u8A66\u884C\u3057\u3066\u304F\u3060\u3055\u3044\u3002" }, askForAuthentication: { noInputDigitalBot: "\u7D9A\u884C\u3059\u308B\u306B\u306F\u8A8D\u8A3C\u60C5\u5831\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044\u3002", noMatchDigitalBot: "\u5FDC\u7B54\u3092\u7406\u89E3\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\u3002\u518D\u8A66\u884C\u3057\u3066\u304F\u3060\u3055\u3044\u3002" }, askSurveyQuestion: { notApplicable: "\u8A72\u5F53\u306A\u3057", surveyAnswerOptionSequence: "'%2$s' \u306E\u5834\u5408\u306F %1$s \u3092\u62BC\u3057\u3066\u304F\u3060\u3055\u3044", surveyAnswerNotApplicableSequence: "\u8A72\u5F53\u306A\u3057\u306E\u5834\u5408\u306F\u661F\u30DE\u30FC\u30AF\u3092\u62BC\u3057\u3066\u304F\u3060\u3055\u3044\u3002", surveyAnswerNotApplicableWithQuestionSequence: "%1$s. \u8A72\u5F53\u306A\u3057\u306E\u5834\u5408\u306F\u661F\u30DE\u30FC\u30AF\u3092\u62BC\u3057\u3066\u304F\u3060\u3055\u3044\u3002", voiceSurveyNoInputText: "\u8CEA\u554F\u306B\u5FDC\u7B54\u3057\u3066\u304F\u3060\u3055\u3044\u3002", voiceSurveyNoMatchText: "\u8CEA\u554F\u3092\u7406\u89E3\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\u3002" }, commonModule: { exitCommonModule: "\u5171\u901A\u30E2\u30B8\u30E5\u30FC\u30EB\u306E\u7D42\u4E86" }, form: { noInputDigitalBot: "\u7D9A\u884C\u3059\u308B\u306B\u306F\u30D5\u30A9\u30FC\u30E0\u3092\u8A18\u5165\u3057\u3066\u304F\u3060\u3055\u3044\u3002", noMatchDigitalBot: "\u7D9A\u884C\u3059\u308B\u306B\u306F\u30D5\u30A9\u30FC\u30E0\u3092\u8A18\u5165\u3057\u3066\u304F\u3060\u3055\u3044\u3002" }, messagingTemplate: { noInputDigitalBot: "\u5229\u7528\u53EF\u80FD\u306A\u30AA\u30D7\u30B7\u30E7\u30F3\u306E\u3044\u305A\u308C\u304B\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044\u3002", noMatchDigitalBot: "\u5229\u7528\u53EF\u80FD\u306A\u30AA\u30D7\u30B7\u30E7\u30F3\u306E\u3044\u305A\u308C\u304B\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044\u3002" }, knowledgeSettings: { knowledgeAnswerHighlightFlowProgressionDefault: "\u7D9A\u884C", knowledgeAnswerHighlightFullArticleDefault: "\u5168\u8A18\u4E8B\u3092\u8868\u793A", knowledgeInitialResponseMulti: "\u76EE\u6A19\u3092\u5206\u304B\u308A\u3084\u3059\u304F\u7406\u89E3\u3067\u304D\u308B\u3088\u3046\u306B\u3001\u6B21\u306E\u30EA\u30B9\u30C8\u304B\u3089\u6570\u5B57\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044:", knowledgeInitialResponseMultiRetry: "'1' \u306A\u3069\u306E\u6570\u5B57\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044\u3002\n\u30AA\u30D7\u30B7\u30E7\u30F3\u306E\u30EA\u30B9\u3092\u518D\u8868\u793A\u3057\u307E\u3059:", knowledgeNoMatch: "\u8A72\u5F53\u306A\u3057", knowledgeConfirmation: "\u3053\u308C\u304C\u8CEA\u554F\u306E\u7B54\u3048\u306B\u306A\u308A\u307E\u3057\u305F\u304B?", knowledgeFollowup: "\u8CEA\u554F\u306B\u7B54\u3048\u3089\u308C\u3066\u3044\u307E\u3059\u3067\u3057\u3087\u3046\u304B\u3002\u4ED6\u306B\u77E5\u308A\u305F\u3044\u3053\u3068\u304C\u3042\u308C\u3070\u3054\u8CEA\u554F\u304F\u3060\u3055\u3044\u3002" }, noOverlay: { intent: { intentConfirmationStr1: "X \u3057\u305F\u3044\u3068\u3044\u3046\u3053\u3068\u3067\u3059\u306D\u3002", intentConfirmationStr2: "\u3053\u306E\u89E3\u91C8\u3067\u6B63\u3057\u3044\u3067\u3059\u304B?" }, youSaid: { youSaidConfirmationStr1: "X \u3068\u304A\u3063\u3057\u3083\u3044\u307E\u3057\u305F\u3002", youSaidConfirmationStr2: "\u3053\u306E\u89E3\u91C8\u3067\u6B63\u3057\u3044\u3067\u3059\u304B?", youSaidConfirmationStr1DigitalBot: "\u5165\u529B\u5185\u5BB9" }, noInput: { noInputStr1: "X \u3068\u3057\u3083\u3079\u308B\u304B\u3001\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044\u3002", noInputStr1DigitalBot: "\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044:" }, noMatch: { noMatchStr1: "X \u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044\u3002" }, whatIs: { whatIsQuestionStr1: "X \u3068\u306F\u4F55\u3067\u3059\u304B?", whatIsQuestionStr2: "?" }, iGotContinuation: { iGotContinuationStr1: "\u3053\u308C\u307E\u3067\u306B", iGotContinuationStr2: "\u3092\u7372\u5F97\u3057\u307E\u3057\u305F\u3002\u7D9A\u884C\u3057\u3066\u304F\u3060\u3055\u3044\u3002" } }, defaultCallFlowOne: "\u30C7\u30D5\u30A9\u30EB\u30C8\u306E\u901A\u8A71\u30D5\u30ED\u30FC", errorHandlingAgentEscalationConfirmation: "\u30A2\u30C9\u30D0\u30A4\u30B6\u30FC\u3068\u8A71\u3057\u305F\u3044\u306E\u3067\u3059\u306D\u3002\u3053\u306E\u89E3\u91C8\u3067\u6B63\u3057\u3044\u3067\u3059\u304B?", errorHandlingAgentEscalationHandover: "\u62C5\u5F53\u8005\u306B\u304A\u7E4B\u304E\u3044\u305F\u3057\u307E\u3059\u306E\u3067\u3057\u3070\u3089\u304F\u304A\u5F85\u3061\u304F\u3060\u3055\u3044\u3002", errorHandlingErrorEventHandover: "\u7533\u3057\u8A33\u3042\u308A\u307E\u305B\u3093\u3002\u30A8\u30E9\u30FC\u304C\u767A\u751F\u3057\u307E\u3057\u305F\u3002\u62C5\u5F53\u8005\u306B\u304A\u7E4B\u304E\u3044\u305F\u3057\u307E\u3059\u306E\u3067\u3057\u3070\u3089\u304F\u304A\u5F85\u3061\u304F\u3060\u3055\u3044\u3002", errorHandlingErrorEventHandoverVoiceSurvey: "\u7533\u3057\u8A33\u3042\u308A\u307E\u305B\u3093\u3002\u30A8\u30E9\u30FC\u304C\u767A\u751F\u3057\u307E\u3057\u305F\u3002\u3055\u3088\u3046\u306A\u3089\u3002", errorHandlingRecognitionEventHandover: "\u7533\u3057\u8A33\u3042\u308A\u307E\u305B\u3093\u3002\u79C1\u3067\u306F\u5206\u304B\u308A\u304B\u306D\u308B\u3088\u3046\u3067\u3059\u3002\u62C5\u5F53\u8005\u306B\u304A\u7E4B\u304E\u3044\u305F\u3057\u307E\u3059\u306E\u3067\u3057\u3070\u3089\u304F\u304A\u5F85\u3061\u304F\u3060\u3055\u3044\u3002", errorHandlingRecognitionEventHandoverVoiceSurvey: "\u7533\u3057\u8A33\u3042\u308A\u307E\u305B\u3093\u3002\u79C1\u3067\u306F\u5206\u304B\u308A\u304B\u306D\u308B\u3088\u3046\u3067\u3059\u3002\u3055\u3088\u3046\u306A\u3089\u3002", errorHandlingTTS: "\u7533\u3057\u8A33\u3042\u308A\u307E\u305B\u3093\u304C\u3001\u30A8\u30E9\u30FC\u304C\u767A\u751F\u3057\u307E\u3057\u305F\u3002\u901A\u8A71\u3092\u3084\u308A\u76F4\u3057\u3066\u304F\u3060\u3055\u3044\u3002", initialGreetingTTS: "\u3053\u3093\u306B\u3061\u306F\u3001\u3053\u308C\u306F\u6700\u521D\u306E\u3042\u3044\u3055\u3064\u3067\u3059\u3002", initialState: "\u521D\u671F\u306E\u72B6\u614B", initialBotState: "\u30C7\u30D5\u30A9\u30EB\u30C8\u306E\u30DC\u30C3\u30C8", initialDigitalBotState: "\u6700\u521D\u306E\u6328\u62F6", initialSurveyBotState: "\u30A2\u30F3\u30B1\u30FC\u30C8 \u30DC\u30C3\u30C8", intentConfirmation: "%1$s \u3092\u306A\u3055\u308A\u305F\u3044\u3088\u3046\u3067\u3059\u304C\u3001\u305D\u308C\u3067\u3088\u308D\u3057\u3044\u3067\u3059\u304B?", mainMenu: "\u30E1\u30A4\u30F3 \u30E1\u30CB\u30E5\u30FC", mainMenuTTS: "\u30E1\u30A4\u30F3 \u30E1\u30CB\u30E5\u30FC\u304C\u8868\u793A\u3055\u308C\u3066\u3044\u307E\u3059\u3002\u5207\u65AD\u3059\u308B\u306B\u306F 9 \u3092\u62BC\u3057\u3066\u304F\u3060\u3055\u3044", mainTask: "\u30BF\u30B9\u30AF", settingsConfirmationNoInputApology: "\u7533\u3057\u8A33\u3042\u308A\u307E\u305B\u3093\u3002\u3088\u304F\u805E\u3053\u3048\u307E\u305B\u3093\u3067\u3057\u305F\u3002\u300C\u306F\u3044\u300D\u304B\u300C\u3044\u3044\u3048\u300D\u3067\u304A\u7B54\u3048\u304F\u3060\u3055\u3044\u3002", settingsConfirmationNoInputApologyDigitalBot: '\u7533\u3057\u8A33\u3042\u308A\u307E\u305B\u3093\u3002\u5165\u529B\u5185\u5BB9\u3092\u53D7\u4FE1\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\u3002"\u306F\u3044" \u307E\u305F\u306F "\u3044\u3044\u3048" \u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044\u3002', settingsConfirmationNoMatchApology: "\u7533\u3057\u8A33\u3042\u308A\u307E\u305B\u3093\u3002\u300C\u306F\u3044\u300D\u304B\u300C\u3044\u3044\u3048\u300D\u3067\u304A\u7B54\u3048\u304F\u3060\u3055\u3044\u3002", settingsConfirmationNoMatchApologyDigitalBot: '\u7533\u3057\u8A33\u3042\u308A\u307E\u305B\u3093\u3002"\u306F\u3044" \u307E\u305F\u306F "\u3044\u3044\u3048" \u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044\u3002', settingsNoInputApology: "\u7533\u3057\u8A33\u3042\u308A\u307E\u305B\u3093\u3002\u3088\u304F\u805E\u3053\u3048\u307E\u305B\u3093\u3067\u3057\u305F\u3002", settingsNoInputApologyDigitalBot: "\u5165\u529B\u5185\u5BB9\u3092\u53D7\u4FE1\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\u3002", settingsEndOfSessionMessageDigitalBot: "\u3057\u3070\u3089\u304F\u4F1A\u8A71\u304C\u306A\u304B\u3063\u305F\u306E\u3067\u3053\u306E\u30C1\u30E3\u30C3\u30C8\u3092\u7D42\u4E86\u3057\u307E\u3059\u3002\u307E\u305F\u30B5\u30DD\u30FC\u30C8\u304C\u5FC5\u8981\u306A\u5834\u5408\u306F\u307E\u305F\u304A\u8D8A\u3057\u304F\u3060\u3055\u3044\u3002\u3042\u308A\u304C\u3068\u3046\u3054\u3056\u3044\u307E\u3057\u305F\u3002", settingsNoMatchApology: "\u7533\u3057\u8A33\u3042\u308A\u307E\u305B\u3093\u3002", settingsNoToConfirmationApology: "\u79C1\u306E\u30DF\u30B9\u3067\u3059\u3002", periodicStateName: "\u518D\u5E30\u72B6\u614B" }; + }, 55974: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = i2(96618), o = n2.__importDefault(i2(15244)), a = n2.__importStar(i2(14187)), s = n2.__importDefault(i2(95955)), l = n2.__importDefault(i2(26519)), u = n2.__importDefault(i2(19359)), d = n2.__importDefault(i2(71824)); + class c extends d.default { + constructor(e3) { + super(e3), this.callPrompts = new s.default(this), this.errorHandling = new l.default(this), this._addToAutoManageSettings(this.callPrompts), this._addToAutoManageSettings(this.errorHandling), this.pathDiscovery = this._addToAutoManageSettings(new u.default(this)); + } + get className() { + return "InboundShortMessageViewModel"; + } + get builtInVariableScopes() { + return [...super.builtInVariableScopes, a.scopes.message]; + } + get isInboundShortMessage() { + return true; + } + get type() { + return r2.flowTypes.flowTypeInboundShortMessage; + } + get wrappedYamlName() { + return "inboundShortMessage"; + } + setNewInstanceDefaults(e3) { + const t3 = e3 && e3.transferQueue ? e3.transferQueue : null; + return t3 ? (this.errorHandling.loadErrorSettings(t3), this.errorHandling.handlingType = o.default.Queue) : this.errorHandling.handlingType = o.default.Disconnect, super.setNewInstanceDefaults(e3); + } + _loadConfiguration(e3) { + this.supportsLanguages && void 0 === e3.defaultLanguage && (e3.defaultLanguage = "en-US"), super._loadConfiguration(e3); + } + } + t2.default = c; + }, 55988: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(23335)); + class r2 extends n2.default { + constructor(e3) { + super(e3), this._checkItemUndefinedOrNull(this._infoParmCtor("coreExpressionContainerViewModel"), e3), this._coreExpressionContainerViewModel = e3; + } + get displayTypeName() { + return "ArchBaseValueContainer"; + } + get isArchBaseValueContainer() { + return true; + } + _getNamedValueByIndex(e3) { + const t3 = this._infoParm("index", "getNamedValueByIndex"); + return this._checkItemIsValidLiteralInt(t3, e3, false), this._checkItem(t3, 0 === this._coreExpressionContainerViewModel.items.length, "supplied index of " + e3 + " is invalid. There are no items in the array."), this._checkItem(t3, e3 >= this._coreExpressionContainerViewModel.items.length || e3 < 0, "supplied index of " + e3 + " is invalid. The allowable range is 0 to " + (this._coreExpressionContainerViewModel.items.length - 1)), this.coreFactory.createArchWrapper(this._coreExpressionContainerViewModel.items[e3]); + } + get _length() { + return this._coreExpressionContainerViewModel.items.length; + } + } + t2.default = r2; + }, 56016: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.create = function() { + h.default.addBuilderPartDef(new u.default({ categoryIdentifierOrIdentifiers: c.builderCategoryIds.toolbar, description: m.builderParts.video.videoUrlText.description, expressionDefs: [new l.default({ configureOptionsCallback: (e3) => e3.setIninTestingField("urlExpression").setDefaultText("https://"), expressionType: s.globalTypes.string, label: m.builderParts.video.videoUrlText.name })], viewId: _.defaultWithNoLabel, generators: { expressionGenerator: d.default.create().addFuncCall("MakeVideoFromUrl").addTokenReplacement(0).addFuncCallEnd().verifySprintfStringAndInitialize("MakeVideoFromUrl(%1$s)") }, id: p.builderPartIds.video.videoUrl, icon: o.default.video, name: m.builderParts.video.videoUrlText.name, requiredFeatureConfig: a.default.botFlowsDigitalBotFlowsPhase2, resultExpressionType: s.globalTypes.video, restrictToFlowTypeOrTypes: r2.flowTypes.flowTypeDigitalBot, version: 1 })); + }; + const n2 = i2(31635), r2 = i2(96618), o = n2.__importDefault(i2(61864)), a = n2.__importDefault(i2(4648)), s = i2(14394), l = n2.__importDefault(i2(76486)), u = n2.__importDefault(i2(42290)), d = n2.__importDefault(i2(22599)), c = i2(73062), p = i2(69149), _ = i2(93631), h = n2.__importDefault(i2(5532)), m = i2(16958); + }, 56131: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.repeat = void 0; + var n2 = i2(44885), r2 = i2(65212), o = i2(17214), a = i2(19724), s = i2(5825); + t2.repeat = function(e3) { + var t3, i3, l = 1 / 0; + return null != e3 && ("object" == typeof e3 ? (t3 = e3.count, l = void 0 === t3 ? 1 / 0 : t3, i3 = e3.delay) : l = e3), l <= 0 ? function() { + return n2.EMPTY; + } : r2.operate(function(e4, t4) { + var n3, r3 = 0, u = function() { + if (null == n3 || n3.unsubscribe(), n3 = null, null != i3) { + var e5 = "number" == typeof i3 ? s.timer(i3) : a.innerFrom(i3(r3)), l2 = o.createOperatorSubscriber(t4, function() { + l2.unsubscribe(), d(); + }); + e5.subscribe(l2); + } else d(); + }, d = function() { + var i4 = false; + n3 = e4.subscribe(o.createOperatorSubscriber(t4, void 0, function() { + ++r3 < l ? n3 ? u() : i4 = true : t4.complete(); + })), i4 && u(); + }; + d(); + }); + }; + }, 56133: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(17604), r2 = i2(55299), o = i2(47957), a = i2(3916); + class s extends r2.BaseClass { + constructor(e3) { + super(), this._slots = [], this._model = e3, this.slots = a.createSchemaPropertyList(e3.slots || e3.parameters || e3.entities); + } + get className() { + return "IntentViewModel"; + } + get model() { + return this._model; + } + get description() { + return this.model.description; + } + get displayString() { + return this.name; + } + get id() { + return this.model.id || this.name; + } + get localizedLabel() { + return this.model.localizedLabel; + } + get builtInPathId() { + return this.model.builtInPathId; + } + get name() { + return this.model.name || this.model.intentName; + } + get slots() { + return this._slots; + } + set slots(e3) { + this._slots = e3; + } + get secondaryHeader() { + return this.version ? (0, n2.sprintf)(o.lex.secondaryHeaderForVersion, this.version) : ""; + } + get version() { + return this.model.version; + } + } + t2.default = s; + }, 56146: (e2, t2, i2) => { + "use strict"; + const n2 = i2(31635), r2 = n2.__importDefault(i2(942)), o = i2(60186), a = i2(80428), s = i2(51482), l = i2(12179), u = n2.__importDefault(i2(97891)), d = i2(47957); + class c extends r2.default { + constructor(e3, t3) { + super(e3.parentFlow, e3), this._loadModel(t3); + } + static get managedProperties() { + return r2.default.createManagedProperties({ searchFieldLabel: d.findActions.findGroup.nameLabel, searchResultLabel: d.findActions.findGroup.resultLabel, searchResultExpressionOptions: o.ExpressionTypeGroupOptions.create(), searchResultItemType: a.expressionTypeNames.group }); + } + } + c.info = u.default.createActionInfo({ actionClass: c, canBeInTask: true, helpTopic: l.helpTopics.actions.findGroup, modelClass: s.FindGroupActionModel, name: d.actions.findGroup, scriptingName: "ArchActionFindGroup" }), t2.A = c; + }, 56157: (e2, t2, i2) => { + "use strict"; + const n2 = i2(31635), r2 = i2(96618), o = i2(17604), a = n2.__importDefault(i2(92140)), s = n2.__importStar(i2(36781)), l = i2(28562), u = i2(80428), d = i2(56240), c = i2(82319), p = i2(49892), _ = i2(99469), h = i2(91911), m = n2.__importDefault(i2(27203)), g = i2(8758), f = i2(41322), T = n2.__importDefault(i2(4648)), y = i2(12179), S = i2(12457), A = n2.__importDefault(i2(97891)), N = i2(28803), O = i2(87870), I = i2(54590), v = n2.__importDefault(i2(5478)), C = n2.__importStar(i2(10798)), b = i2(63352), E = i2(10798), R = i2(47957); + class w extends v.default { + constructor(e3, t3) { + super(e3.parentFlow, e3), this._loadModel(t3); + } + static get branchInfo() { + return m.default.successFailureTimeout; + } + get isCallGuideAction() { + return true; + } + getDetails() { + return this.guideId ? new S.ActionDetails([R.guide.guide], [this.guideName]) : null; + } + static get managedProperties() { + return [{ createDetails: O.NoteActionProperty.createCreateDetails(R.guide.guideBillingInfoNote, "info", "guideBillingInfoNote", void 0), property: "billingAlert", options: p.ExpressionTypelessOptions.create((e3) => e3.setUiPropertyOrder(0)), yamlOptions: w.createYamlOptions("billingAlert", (e3) => e3.setSkipProperty(true)) }, { label: R.guide.guide, options: _.ManagedPropertyOptions.create((e3) => e3.setIninTestingField("guide-selector").setFeatureConfigName(T.default.botFlowsVirtualAgentGuide).setDropdownPlaceholder(R.dependencies.selectGuide).setUiPropertyOrder(10)), property: "guideSetting", createDetails: N.NetworkBasedActionProperty.createCreateDetails("guideId", "guideName", g.guideManager, R.guide.mustSelectGuide, R.guide.guideNotFound, null, (e3) => e3.action._setAdditionalSearchParams()), yamlOptions: w.createYamlOptions("guideSetting", (e3) => e3.setSkipProperty(true)) }, { label: R.generic.version, options: _.ManagedPropertyOptions.create((e3) => e3.setIninTestingField("guide-latest-version-selector").setFeatureConfigName(T.default.botFlowsVirtualAgentGuide).setDropdownPlaceholder(R.versions.selectVersion).setUiPropertyOrder(20)), property: "guideVersionSetting", createDetails: I.VersionedNetworkBasedActionProperty.createCreateDetails("guideVersionId", "guideVersion", f.guideVersionManager, R.guide.mustSelectGuideVersion, R.guide.guideVersionNotFound, "guideSetting", (e3) => { + const t3 = e3.action.guideSetting.getItem(); + return (null == t3 ? void 0 : t3.version) ? { id: t3.id, version: t3.version } : void 0; + }), yamlOptions: w.createYamlOptions("guideVersionSetting", (e3) => e3.setSkipProperty(true)) }, { label: R.askCommon.voiceProcessingPrompt, options: c.ExpressionTypeCommunicationOptions.create((e3) => e3.setAllowSecure(true).setIninTestingField("voiceProcessingPrompt").setAllowModeBuilder(true).setAllowFlowLevelDefault(true).setFlowLevelDefaultSameModes(true).setUiDisableOnOutOfService(false).setDefaultToBuilderId(l.builderIds.parts.genericCommunication).setFeatureConfigName(T.default.botFlowsVirtualAgentVoicePrompt).setAllowNoValueModeWithNoFallback(true).setUiPropertyOrder(30).setScriptingPropertyName("voiceProcessingPrompt")), yamlOptions: w.createYamlOptions("voiceProcessingPrompt", (e3) => e3.setSerializeOutOfService((0, E.isFeatureAvailable)(T.default.botFlowsVoiceProcessingPrompt))), supportedFlowTypes: [r2.flowTypes.flowTypeBot], property: "voiceProcessingPrompt", type: u.expressionTypeNames.communication }, { createDetails: O.NoteActionProperty.createCreateDetails((0, o.sprintf)(R.botFlowSettings.valueConfiguredInBotFlowSettingsWillBeUsed, R.askCommon.voiceProcessingPrompt), "warning", "voiceProcessingPromptWarning", void 0, true), property: "voiceProcessingPromptWarning", supportedFlowTypes: [r2.flowTypes.flowTypeBot], options: p.ExpressionTypelessOptions.create((e3) => e3.setUiPropertyOrder(31)), yamlOptions: w.createYamlOptions("voiceProcessingPromptWarning", (e3) => e3.setSkipProperty(true)) }, { allowSecure: false, dataList: true, label: R.inputOutputList.inputs, property: "inputs", options: p.ExpressionTypelessOptions.create((e3) => e3.setUiPropertyOrder(40).setIsOptional(true)) }, { label: R.inputOutputList.outputs, dataList: true, isOutput: true, property: "outputs", options: p.ExpressionTypelessOptions.create((e3) => e3.setAsOutput().setUiPropertyOrder(50)), yamlOptions: w.createYamlOptions("outputs", (e3) => e3.setPropertyName("outputs")) }]; + } + processYamlProperty(e3, t3, i3, n3) { + var r3; + const o2 = i3 === this.voiceProcessingPrompt ? (null == n3 ? void 0 : n3.serializeOutOfService) && !!(null === (r3 = this.parentFlow.botFlowSettings) || void 0 === r3 ? void 0 : r3.virtualAgentEnabled) : null == n3 ? void 0 : n3.serializeOutOfService, a2 = o2 !== (null == n3 ? void 0 : n3.serializeOutOfService) ? Object.assign({}, n3, { serializeOutOfService: o2 }) : n3; + return super.processYamlProperty(e3, t3, i3, a2); + } + initializeDesignTime() { + var e3, t3; + super.initializeDesignTime(), null === (e3 = this.parentFlow.botFlowSettings) || void 0 === e3 || e3.clearDynamicAgenticVirtualAgentEnabledState(); + const i3 = this.guideVersionSetting.getItem(); + if (i3 && this._mergeSchemaProperties(i3), C.isFeatureAvailable(T.default.botFlowsVoiceProcessingPrompt)) { + this.voiceProcessingPrompt.options.setUiDisableOnOutOfService(!!(null === (t3 = this.parentFlow.botFlowSettings) || void 0 === t3 ? void 0 : t3.virtualAgentEnabled)), this.addAutoCleanedUpEventListener(s.virtualAgentChanged, () => { + var e5; + this.voiceProcessingPrompt.options.setUiDisableOnOutOfService(!!(null === (e5 = this.parentFlow.botFlowSettings) || void 0 === e5 ? void 0 : e5.virtualAgentEnabled)); + }); + const e4 = this.parentFlow.botFlowSettings.voiceProcessingPrompt; + if (e4) { + const t4 = e4.mode === b.ExpressionModes.literal && "" !== e4.text; + this._setVoiceProcessingPromptOptions(t4), this.addAutoCleanedUpEventListener(s.promptChanged, (e5) => { + "voiceProcessingPrompt" === e5.type && this._setVoiceProcessingPromptOptions(e5.isSet); + }); + } + } else this.voiceProcessingPromptWarning.outOfService = true, this.voiceProcessingPrompt.outOfService = false, this.voiceProcessingPrompt.defaultExpression && (this.voiceProcessingPrompt.defaultExpression.outOfService = false); + this.addAutoCleanedUpEventSinkWatch(s.valueChanged, this.guideVersionSetting, () => n2.__awaiter(this, void 0, void 0, function* () { + const e4 = this.guideVersionSetting.getItem(); + e4 ? this._mergeSchemaProperties(e4) : this._clearSchemaBindings(); + })); + } + getConfiguration(e3, t3) { + var i3, n3, r3, o2, s2, l2, u2, d2, c2, p2, _2, h2, m2, g2, f2; + const T2 = super.getConfiguration(e3, t3); + if (null == t3 ? void 0 : t3.isForFlowYaml) { + const y2 = { callGuide: { name: T2.callGuide.name } }, S2 = this._getReferencedGuideName(); + if (!S2) return a.default.ensureYamlNoneTrue(y2), y2; + y2.callGuide.guide = {}; + const A2 = y2.callGuide.guide[S2] = {}; + if (!(null === (n3 = null === (i3 = this.guideSetting) || void 0 === i3 ? void 0 : i3.getItem()) || void 0 === n3 ? void 0 : n3.version)) return a.default.ensureYamlNoneTrue(y2), y2; + const N2 = A2.ver_latestPublished = {}; + if (T2.callGuide.failureOutputs && (N2.failureOutputs = T2.callGuide.failureOutputs), T2.callGuide.voiceProcessingPrompt && (N2.voiceProcessingPrompt = T2.callGuide.voiceProcessingPrompt), T2.callGuide.outputs) { + const e4 = {}; + (null === (o2 = null === (r3 = T2.callGuide) || void 0 === r3 ? void 0 : r3.outputs) || void 0 === o2 ? void 0 : o2.success) && (e4.success = T2.callGuide.outputs.success), (null === (l2 = null === (s2 = T2.callGuide) || void 0 === s2 ? void 0 : s2.outputs) || void 0 === l2 ? void 0 : l2.failure) && (e4.failure = T2.callGuide.outputs.failure), (null === (d2 = null === (u2 = T2.callGuide) || void 0 === u2 ? void 0 : u2.outputs) || void 0 === d2 ? void 0 : d2.timeout) && (e4.timeout = T2.callGuide.outputs.timeout), Object.keys(e4).length > 0 && (y2.callGuide.outputs = e4); + } + return (null === (p2 = null === (c2 = this.inputs) || void 0 === c2 ? void 0 : c2.items) || void 0 === p2 ? void 0 : p2.length) || (null === (_2 = this.outputs) || void 0 === _2 ? void 0 : _2.items.length) ? ((null === (m2 = null === (h2 = this.inputs) || void 0 === h2 ? void 0 : h2.items) || void 0 === m2 ? void 0 : m2.length) && (N2.inputs = this.inputs.getConfiguration(e3, t3)), (null === (f2 = null === (g2 = this.outputs) || void 0 === g2 ? void 0 : g2.items) || void 0 === f2 ? void 0 : f2.length) && (N2.outputs = this.outputs.getConfiguration(e3, t3)), y2) : (a.default.ensureYamlNoneTrue(N2), y2); + } + return T2; + } + _getReferencedGuideName() { + var e3; + const t3 = null === (e3 = this.guideSetting) || void 0 === e3 ? void 0 : e3.getItem(); + return (null == t3 ? void 0 : t3.name) || this.guideName; + } + _mergeSchemaProperties(e3) { + const t3 = (e4, t4) => { + var i3; + const n3 = null !== (i3 = null == e4 ? void 0 : e4.properties) && void 0 !== i3 ? i3 : []; + this.guideSetting.configListManager.mergeSchemaProperties(n3, t4); + }; + t3(null == e3 ? void 0 : e3.inputSchema, this.inputs), t3(null == e3 ? void 0 : e3.outputSchema, this.outputs); + } + _clearSchemaBindings() { + this.outputs && a.default.isFunction(this.outputs.destroyChildren) && this.outputs.destroyChildren(), this.inputs && a.default.isFunction(this.inputs.destroyChildren) && this.inputs.destroyChildren(); + } + _setAdditionalSearchParams() { + return { status: h.AiGuideStatus.published }; + } + _setVoiceProcessingPromptOptions(e3) { + this.voiceProcessingPrompt.outOfService = e3, this.voiceProcessingPromptWarning.outOfService = !(e3 && C.isFeatureAvailable(T.default.botFlowsVoiceProcessingPrompt)); + } + validate(e3) { + if (super.validate(e3), e3.isDeep) { + const e4 = this.guideVersionSetting.getItem(); + e4 && this._mergeSchemaProperties(e4); + } + } + _destroy() { + var e3; + super._destroy(), this.parentFlow.isDestroyedOrDestroying || null === (e3 = this.parentFlow.botFlowSettings) || void 0 === e3 || e3.clearDynamicAgenticVirtualAgentEnabledState(); + } + } + w.info = A.default.createActionInfo({ actionClass: w, canBeInTask: true, helpTopic: y.helpTopics.actions.callGuide, modelClass: d.CallGuideActionModel, name: R.actions.callGuide, scriptingName: "ArchActionCallGuide", availabilityCallback: (e3, t3, i3) => { + var n3; + return null === (n3 = t3.parentFlow.botFlowSettings) || void 0 === n3 ? void 0 : n3.virtualAgentEnabled; + } }), t2.A = w; + }, 56191: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(84655)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "listPicker"; + } + get displayTypeName() { + return "ArchVariableListPicker"; + } + get initialValue() { + return this._initialValue; + } + get isArchVariableListPicker() { + return true; + } + } + t2.default = r2; + }, 56198: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.AskForPaymentActionModel = void 0; + const n2 = i2(31635), r2 = i2(30801), o = i2(39194), a = i2(80295), s = n2.__importDefault(i2(7401)), l = i2(80295); + class u extends o.BaseActionNoInputNoMatchModel { + constructor(e3) { + super(e3), this.__type = u.__type, (0, l.makeUnenumerable)(this, "_currency"), (0, l.makeUnenumerable)(this, "_countryCode"), (0, l.makeUnenumerable)(this, "_paymentPlatform"), (0, l.makeUnenumerable)(this, "_lineItems"), (0, l.makeUnenumerable)(this, "_shippingOptions"), (0, l.makeUnenumerable)(this, "_totalPrice"), (0, l.makeUnenumerable)(this, "_receivedMessageImage"), (0, l.makeUnenumerable)(this, "_receivedMessageTitle"), (0, l.makeUnenumerable)(this, "_replyMessageTitle"), (0, l.makeUnenumerable)(this, "_requiredContactInformation"), (0, l.makeUnenumerable)(this, "_paymentCompletionTimeout"); + } + get currency() { + return this._currency; + } + set currency(e3) { + this._currency = this.reviveItem(e3, s.default); + } + get countryCode() { + return this._countryCode; + } + set countryCode(e3) { + this._countryCode = this.reviveItem(e3, s.default); + } + get paymentPlatform() { + return this._paymentPlatform; + } + set paymentPlatform(e3) { + this._paymentPlatform = this.reviveItem(e3, s.default); + } + get lineItems() { + return this._lineItems; + } + set lineItems(e3) { + this._lineItems = this.reviveItem(e3, s.default); + } + get shippingOptions() { + return this._shippingOptions; + } + set shippingOptions(e3) { + this._shippingOptions = this.reviveItem(e3, s.default); + } + get totalPrice() { + return this._totalPrice; + } + set totalPrice(e3) { + this._totalPrice = this.reviveItem(e3, s.default); + } + get receivedMessageImage() { + return this._receivedMessageImage; + } + set receivedMessageImage(e3) { + this._receivedMessageImage = this.reviveItem(e3, s.default); + } + get receivedMessageTitle() { + return this._receivedMessageTitle; + } + set receivedMessageTitle(e3) { + this._receivedMessageTitle = this.reviveItem(e3, s.default); + } + get replyMessageTitle() { + return this._replyMessageTitle; + } + set replyMessageTitle(e3) { + this._replyMessageTitle = this.reviveItem(e3, s.default); + } + get requiredContactInformation() { + return this._requiredContactInformation; + } + set requiredContactInformation(e3) { + this._requiredContactInformation = this.reviveItem(e3, s.default); + } + get paymentCompletionTimeout() { + return this._paymentCompletionTimeout; + } + set paymentCompletionTimeout(e3) { + this._paymentCompletionTimeout = this.reviveItem(e3, s.default); + } + pasteResolveOldToNewValues(e3) { + super.pasteResolveOldToNewValues(e3), this._currency.pasteResolveOldToNewValues(e3), this._countryCode.pasteResolveOldToNewValues(e3), this._paymentPlatform.pasteResolveOldToNewValues(e3), this._lineItems.pasteResolveOldToNewValues(e3), this._shippingOptions.pasteResolveOldToNewValues(e3), this._totalPrice.pasteResolveOldToNewValues(e3), this._receivedMessageImage.pasteResolveOldToNewValues(e3), this._receivedMessageTitle.pasteResolveOldToNewValues(e3), this._replyMessageTitle.pasteResolveOldToNewValues(e3), this._requiredContactInformation.pasteResolveOldToNewValues(e3), this._paymentCompletionTimeout.pasteResolveOldToNewValues(e3); + } + pasteReIdOrRename(e3) { + super.pasteReIdOrRename(e3), this._currency.pasteReIdOrRename(e3), this._countryCode.pasteReIdOrRename(e3), this._paymentPlatform.pasteReIdOrRename(e3), this._lineItems.pasteReIdOrRename(e3), this._shippingOptions.pasteReIdOrRename(e3), this._totalPrice.pasteReIdOrRename(e3), this._receivedMessageImage.pasteReIdOrRename(e3), this._receivedMessageTitle.pasteReIdOrRename(e3), this._replyMessageTitle.pasteReIdOrRename(e3), this._requiredContactInformation.pasteReIdOrRename(e3), this._paymentCompletionTimeout.pasteReIdOrRename(e3); + } + } + t2.AskForPaymentActionModel = u, u.__type = r2.askForPaymentActionType, n2.__decorate([(0, a.enumerable)(true), n2.__metadata("design:type", Object), n2.__metadata("design:paramtypes", [Object])], u.prototype, "currency", null), n2.__decorate([(0, a.enumerable)(true), n2.__metadata("design:type", Object), n2.__metadata("design:paramtypes", [Object])], u.prototype, "countryCode", null), n2.__decorate([(0, a.enumerable)(true), n2.__metadata("design:type", Object), n2.__metadata("design:paramtypes", [Object])], u.prototype, "paymentPlatform", null), n2.__decorate([(0, a.enumerable)(true), n2.__metadata("design:type", Object), n2.__metadata("design:paramtypes", [Object])], u.prototype, "lineItems", null), n2.__decorate([(0, a.enumerable)(true), n2.__metadata("design:type", Object), n2.__metadata("design:paramtypes", [Object])], u.prototype, "shippingOptions", null), n2.__decorate([(0, a.enumerable)(true), n2.__metadata("design:type", Object), n2.__metadata("design:paramtypes", [Object])], u.prototype, "totalPrice", null), n2.__decorate([(0, a.enumerable)(true), n2.__metadata("design:type", Object), n2.__metadata("design:paramtypes", [Object])], u.prototype, "receivedMessageImage", null), n2.__decorate([(0, a.enumerable)(true), n2.__metadata("design:type", Object), n2.__metadata("design:paramtypes", [Object])], u.prototype, "receivedMessageTitle", null), n2.__decorate([(0, a.enumerable)(true), n2.__metadata("design:type", Object), n2.__metadata("design:paramtypes", [Object])], u.prototype, "replyMessageTitle", null), n2.__decorate([(0, a.enumerable)(true), n2.__metadata("design:type", Object), n2.__metadata("design:paramtypes", [Object])], u.prototype, "requiredContactInformation", null), n2.__decorate([(0, a.enumerable)(true), n2.__metadata("design:type", Object), n2.__metadata("design:paramtypes", [Object])], u.prototype, "paymentCompletionTimeout", null), u.registerType(); + }, 56240: (e2, t2, i2) => { + "use strict"; + var n2; + Object.defineProperty(t2, "__esModule", { value: true }), t2.CallGuideActionModel = void 0; + const r2 = i2(31635), o = i2(5894), a = i2(80295), s = i2(30801), l = i2(80295), u = r2.__importDefault(i2(92140)), d = r2.__importDefault(i2(7401)), c = i2(90807); + class p extends o.BaseFailureOutputsActionModel { + constructor(e3) { + super(e3), this.__type = p.__type, (0, l.makeUnenumerable)(this, "_inputs"), (0, l.makeUnenumerable)(this, "_outputs"), (0, l.makeUnenumerable)(this, "_voiceProcessingPrompt"), (0, l.makeUnenumerable)(this, "_guideId"), (0, l.makeUnenumerable)(this, "_guideName"), (0, l.makeUnenumerable)(this, "_guideVersion"), (0, l.makeUnenumerable)(this, "_guideLatestVersion"); + } + pasteReIdOrRename(e3) { + super.pasteReIdOrRename(e3), u.default.each(this.inputs, (t3) => { + t3.pasteReIdOrRename(e3); + }), u.default.each(this.outputs, (t3) => { + t3.pasteReIdOrRename(e3); + }); + } + pasteResolveOldToNewValues(e3) { + super.pasteResolveOldToNewValues(e3), u.default.each(this.inputs, (t3) => { + t3.pasteResolveOldToNewValues(e3); + }), u.default.each(this.outputs, (t3) => { + t3.pasteResolveOldToNewValues(e3); + }); + } + get guideId() { + return this._guideId; + } + set guideId(e3) { + this._guideId = e3; + } + get guideName() { + return this._guideName; + } + set guideName(e3) { + this._guideName = e3; + } + get guideVersion() { + return this._guideVersion; + } + set guideVersion(e3) { + this._guideVersion = e3; + } + get guideLatestVersion() { + return this._guideLatestVersion; + } + set guideLatestVersion(e3) { + this._guideLatestVersion = e3; + } + get inputs() { + return this._inputs; + } + set inputs(e3) { + this._inputs = this.reviveArray(e3, c); + } + get outputs() { + return this._outputs; + } + set outputs(e3) { + this._outputs = this.reviveArray(e3, c); + } + get voiceProcessingPrompt() { + return this._voiceProcessingPrompt; + } + set voiceProcessingPrompt(e3) { + this._voiceProcessingPrompt = this.reviveItem(e3, d.default); + } + } + t2.CallGuideActionModel = p, p.__type = s.callGuideActionType, r2.__decorate([(0, a.enumerable)(true), r2.__metadata("design:type", String), r2.__metadata("design:paramtypes", [Object])], p.prototype, "guideId", null), r2.__decorate([(0, a.enumerable)(true), r2.__metadata("design:type", String), r2.__metadata("design:paramtypes", [Object])], p.prototype, "guideName", null), r2.__decorate([(0, a.enumerable)(true), r2.__metadata("design:type", String), r2.__metadata("design:paramtypes", [Object])], p.prototype, "guideVersion", null), r2.__decorate([(0, a.enumerable)(true), r2.__metadata("design:type", Boolean), r2.__metadata("design:paramtypes", [Object])], p.prototype, "guideLatestVersion", null), r2.__decorate([(0, a.enumerable)(true), r2.__metadata("design:type", Object), r2.__metadata("design:paramtypes", [Object])], p.prototype, "inputs", null), r2.__decorate([(0, a.enumerable)(true), r2.__metadata("design:type", Object), r2.__metadata("design:paramtypes", [Object])], p.prototype, "outputs", null), r2.__decorate([(0, a.enumerable)(true), r2.__metadata("design:type", "function" == typeof (n2 = void 0 !== d.default && d.default) ? n2 : Object), r2.__metadata("design:paramtypes", [Object])], p.prototype, "voiceProcessingPrompt", null), p.registerType(); + }, 56248: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(81574)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "externalLinkConfiguration"; + } + get uriTemplate() { + } + get displayTypeName() { + return "ArchValueExternalLinkConfiguration"; + } + get isArchValueExternalLinkConfiguration() { + return true; + } + } + t2.default = r2; + }, 56264: (e2, t2, i2) => { + const n2 = i2(75458), { decryptDataActionType: r2 } = i2(30801), o = i2(7401); + function a() { + Object.defineProperties(this, { _decryptedDataOutput: { writable: true }, _dataToDecrypt: { writable: true } }), a.baseConstructor.apply(this, arguments); + } + n2.extend(a, r2, true), Object.defineProperties(a.prototype, { pasteResolveOldToNewValues: { value: function(e3) { + a._super.pasteResolveOldToNewValues.apply(this, arguments), this.decryptedDataOutput.pasteResolveOldToNewValues(e3), this.dataToDecrypt.pasteResolveOldToNewValues(e3); + } }, pasteReIdOrRename: { value: function(e3) { + a._super.pasteReIdOrRename.apply(this, arguments), this.decryptedDataOutput.pasteResolveOldToNewValues(e3), this.dataToDecrypt.pasteResolveOldToNewValues(e3); + } }, decryptedDataOutput: { enumerable: true, get: function() { + return this._decryptedDataOutput; + }, set: function(e3) { + this._decryptedDataOutput = this.reviveItem(e3, o); + } }, dataToDecrypt: { enumerable: true, get: function() { + return this._dataToDecrypt; + }, set: function(e3) { + this._dataToDecrypt = this.reviveItem(e3, o); + } } }), e2.exports = a; + }, 56265: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(21345)); + class r2 extends n2.default { + constructor(e3) { + super(e3), this._attributeNameValuePairs = this.coreFactory.createArchBaseValueContainer(e3.variables); + } + addAttributeNameValuePair(e3, t3) { + return this._checkItemIsValidLiteralString(this._infoParm("nameExpression", "addAttributeNameValuePair"), e3, true), this._checkItemIsValidLiteralString(this._infoParm("valueExpression", "addAttributeNameValuePair"), t3, true), this._attributeNameValuePairs._addNameValueAssignment(e3, t3, false, false); + } + get attributeNameValuePairs() { + return this._attributeNameValuePairs; + } + get displayTypeName() { + return this._scriptingName; + } + } + t2.default = r2; + }, 56322: (e2, t2, i2) => { + function n2() { + this.selection = void 0, n2.baseConstructor.apply(this, arguments); + } + i2(52722).extend(n2, "SelectionItem"), e2.exports = n2; + }, 56356: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(74797), r2 = i2(30801); + class o extends n2.ArchBaseActionConversationAttribute { + constructor(e3) { + super(e3), this._recordId = this.coreFactory.createArchWrapper(e3.recordId); + } + get _actionTypeId() { + return r2.getConversationAttributeActionType; + } + get displayTypeName() { + return this._scriptingName; + } + get isArchActionGetConversationAttribute() { + return true; + } + get recordId() { + return this._recordId; + } + } + t2.default = o; + }, 56464: function(e2, t2, i2) { + !(function(e3) { + "use strict"; + var t3 = { format: "leden_\xFAnor_b\u0159ezen_duben_kv\u011Bten_\u010Derven_\u010Dervenec_srpen_z\xE1\u0159\xED_\u0159\xEDjen_listopad_prosinec".split("_"), standalone: "ledna_\xFAnora_b\u0159ezna_dubna_kv\u011Btna_\u010Dervna_\u010Dervence_srpna_z\xE1\u0159\xED_\u0159\xEDjna_listopadu_prosince".split("_") }, i3 = "led_\xFAno_b\u0159e_dub_kv\u011B_\u010Dvn_\u010Dvc_srp_z\xE1\u0159_\u0159\xEDj_lis_pro".split("_"), n2 = [/^led/i, /^úno/i, /^bře/i, /^dub/i, /^kvě/i, /^(čvn|červen$|června)/i, /^(čvc|červenec|července)/i, /^srp/i, /^zář/i, /^říj/i, /^lis/i, /^pro/i], r2 = /^(leden|únor|březen|duben|květen|červenec|července|červen|června|srpen|září|říjen|listopad|prosinec|led|úno|bře|dub|kvě|čvn|čvc|srp|zář|říj|lis|pro)/i; + function o(e4) { + return e4 > 1 && e4 < 5 && 1 != ~~(e4 / 10); + } + function a(e4, t4, i4, n3) { + var r3 = e4 + " "; + switch (i4) { + case "s": + return t4 || n3 ? "p\xE1r sekund" : "p\xE1r sekundami"; + case "ss": + return t4 || n3 ? r3 + (o(e4) ? "sekundy" : "sekund") : r3 + "sekundami"; + case "m": + return t4 ? "minuta" : n3 ? "minutu" : "minutou"; + case "mm": + return t4 || n3 ? r3 + (o(e4) ? "minuty" : "minut") : r3 + "minutami"; + case "h": + return t4 ? "hodina" : n3 ? "hodinu" : "hodinou"; + case "hh": + return t4 || n3 ? r3 + (o(e4) ? "hodiny" : "hodin") : r3 + "hodinami"; + case "d": + return t4 || n3 ? "den" : "dnem"; + case "dd": + return t4 || n3 ? r3 + (o(e4) ? "dny" : "dn\xED") : r3 + "dny"; + case "M": + return t4 || n3 ? "m\u011Bs\xEDc" : "m\u011Bs\xEDcem"; + case "MM": + return t4 || n3 ? r3 + (o(e4) ? "m\u011Bs\xEDce" : "m\u011Bs\xEDc\u016F") : r3 + "m\u011Bs\xEDci"; + case "y": + return t4 || n3 ? "rok" : "rokem"; + case "yy": + return t4 || n3 ? r3 + (o(e4) ? "roky" : "let") : r3 + "lety"; + } + } + e3.defineLocale("cs", { months: t3, monthsShort: i3, monthsRegex: r2, monthsShortRegex: r2, monthsStrictRegex: /^(leden|ledna|února|únor|březen|března|duben|dubna|květen|května|červenec|července|červen|června|srpen|srpna|září|říjen|října|listopadu|listopad|prosinec|prosince)/i, monthsShortStrictRegex: /^(led|úno|bře|dub|kvě|čvn|čvc|srp|zář|říj|lis|pro)/i, monthsParse: n2, longMonthsParse: n2, shortMonthsParse: n2, weekdays: "ned\u011Ble_pond\u011Bl\xED_\xFAter\xFD_st\u0159eda_\u010Dtvrtek_p\xE1tek_sobota".split("_"), weekdaysShort: "ne_po_\xFAt_st_\u010Dt_p\xE1_so".split("_"), weekdaysMin: "ne_po_\xFAt_st_\u010Dt_p\xE1_so".split("_"), longDateFormat: { LT: "H:mm", LTS: "H:mm:ss", L: "DD.MM.YYYY", LL: "D. MMMM YYYY", LLL: "D. MMMM YYYY H:mm", LLLL: "dddd D. MMMM YYYY H:mm", l: "D. M. YYYY" }, calendar: { sameDay: "[dnes v] LT", nextDay: "[z\xEDtra v] LT", nextWeek: function() { + switch (this.day()) { + case 0: + return "[v ned\u011Bli v] LT"; + case 1: + case 2: + return "[v] dddd [v] LT"; + case 3: + return "[ve st\u0159edu v] LT"; + case 4: + return "[ve \u010Dtvrtek v] LT"; + case 5: + return "[v p\xE1tek v] LT"; + case 6: + return "[v sobotu v] LT"; + } + }, lastDay: "[v\u010Dera v] LT", lastWeek: function() { + switch (this.day()) { + case 0: + return "[minulou ned\u011Bli v] LT"; + case 1: + case 2: + return "[minul\xE9] dddd [v] LT"; + case 3: + return "[minulou st\u0159edu v] LT"; + case 4: + case 5: + return "[minul\xFD] dddd [v] LT"; + case 6: + return "[minulou sobotu v] LT"; + } + }, sameElse: "L" }, relativeTime: { future: "za %s", past: "p\u0159ed %s", s: a, ss: a, m: a, mm: a, h: a, hh: a, d: a, dd: a, M: a, MM: a, y: a, yy: a }, dayOfMonthOrdinalParse: /\d{1,2}\./, ordinal: "%d.", week: { dow: 1, doy: 4 } }); + })(i2(95093)); + }, 56474: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(54063)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "assignedCustomerSegmentCollection"; + } + get displayTypeName() { + return "ArchValueAssignedCustomerSegmentCollection"; + } + get isArchValueAssignedCustomerSegmentCollection() { + return true; + } + } + t2.default = r2; + }, 56510: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = i2(17604), o = n2.__importDefault(i2(92140)), a = n2.__importStar(i2(12847)), s = n2.__importStar(i2(10798)), l = n2.__importStar(i2(58380)), u = n2.__importStar(i2(81116)), d = i2(14394), c = n2.__importDefault(i2(7401)), p = n2.__importDefault(i2(85247)), _ = i2(79516), h = i2(67801), m = i2(19284), g = n2.__importStar(i2(17498)), f = n2.__importStar(i2(36781)), T = n2.__importStar(i2(66381)), y = n2.__importStar(i2(98442)), S = n2.__importStar(i2(34475)), A = i2(1115), N = n2.__importDefault(i2(4648)), O = i2(12179), I = n2.__importDefault(i2(68460)), v = n2.__importDefault(i2(52816)), C = n2.__importDefault(i2(40773)), b = i2(74064), E = n2.__importDefault(i2(65449)), R = i2(63221), w = n2.__importDefault(i2(83231)), D = i2(18894), P = i2(38551), M = n2.__importDefault(i2(78982)), F = i2(89599), L = i2(47957), x = i2(88654); + class k extends I.default { + constructor(e3) { + super(e3), this.modelPropertyName = "supportedLanguageOptions"; + } + get id() { + return "languages"; + } + canAddLanguage() { + return this.parentFlow.canAddLanguage(); + } + addLanguage(e3) { + if (this.isFlowSupportedLanguage(e3)) return; + if (!this.canAddLanguage()) return; + const t3 = this._addLanguage({ language: e3 }, false); + return t3 && l.fireEvent(this, f.supportedLanguagesChanged), t3; + } + get className() { + return "LanguageSelectionViewModel"; + } + get amObjectEventEmitter() { + return true; + } + get defaultLanguage() { + return this.parentFlow.defaultLanguage; + } + set defaultLanguage(e3) { + this.parentFlow.defaultLanguage = e3, (0, A.validateNode)(this, true); + } + getLanguagesForTTSEngine(e3) { + if (!e3 || !this.parentFlow.languagesSupportTtsAndAsrSettings) return; + let t3; + return o.default.each(this.supportedLanguageOptions, (i3) => { + var n3; + const r3 = null === (n3 = null == i3 ? void 0 : i3.textToSpeech) || void 0 === n3 ? void 0 : n3.getSelectedEngine(); + r3 && r3.id === e3 && (o.default.isUndefined(t3) && (t3 = []), t3.push(i3.language)); + }), t3; + } + getLanguagesWithNoEngineSelected() { + if (this.parentFlow.languagesSupportTtsAndAsrSettings) return this.supportedLanguageOptions.filter((e3) => e3.textToSpeech.hasEngineNoneSelection).map((e3) => e3.language); + } + getConfiguration(e3, t3) { + if (null == t3 ? void 0 : t3.isForFlowYaml) { + if (this.outOfService) return; + const i3 = {}; + o.default.each(this.supportedLanguageOptions, (n4) => { + var r4, a2, s2; + const l2 = {}; + this.parentFlow.languagesSupportDefaultLanguageSkill && (l2.defaultLanguageSkill = n4.languageSkill.getConfiguration(e3, t3)), this.parentFlow.languagesSupportTtsAndAsrSettings && (l2.textToSpeech = null === (r4 = n4.textToSpeech) || void 0 === r4 ? void 0 : r4.getConfiguration(e3, t3)), this.parentFlow.languagesSupportSpeechToTextSettings && (null === (a2 = n4.speechToTextEngine) || void 0 === a2 ? void 0 : a2.id) && (l2.speechToText = { engine: null === (s2 = n4.speechToTextEngine) || void 0 === s2 ? void 0 : s2.getConfiguration(e3, t3) }), this.parentFlow.supportsMultilingualKnowledge && n4.knowledgeBase && (l2.knowledgeBase = { name: n4.knowledgeBase.name }), this.parentFlow.supportsMultilingualKnowledge && n4.knowledgeSetting && (l2.knowledgeSetting = { name: n4.knowledgeSetting.label }), this.parentFlow.supportsConversationSummary && n4.conversationSummarySetting && (l2.conversationSummarySetting = { name: n4.conversationSummarySetting.name }), Object.keys(l2).length || o.default.ensureYamlNoneTrue(l2), i3[n4.language.toLowerCase()] = l2; + }); + const n3 = {}, r3 = o.default.keys(i3); + return r3.sort((e4, t4) => e4.localeCompare(t4)), o.default.each(r3, (e4) => { + n3[e4] = o.default.deepClone(i3[e4]); + }), n3; + } + e3.supportedLanguages = this.outOfService ? [] : this.supportedLanguages, e3.supportedLanguageOptions = [], this.outOfService || o.default.each(this.supportedLanguageOptions, (i3) => { + var n3, r3, o2; + const a2 = new p.default(); + a2.language = i3.language, this.parentFlow.languagesSupportDefaultLanguageSkill && (a2.languageSkill = i3.languageSkill.getConfiguration(e3, t3)), this.parentFlow.languagesSupportTtsAndAsrSettings && (a2.textToSpeech = null === (n3 = i3.textToSpeech) || void 0 === n3 ? void 0 : n3.getConfiguration(e3, t3)), this.parentFlow.languagesSupportSpeechToTextSettings && (null === (r3 = i3.speechToTextEngine) || void 0 === r3 ? void 0 : r3.id) && (a2.speechToText = { engine: null === (o2 = i3.speechToTextEngine) || void 0 === o2 ? void 0 : o2.getConfiguration(e3, t3) }), this.parentFlow.supportsMultilingualKnowledge && i3.knowledgeBase && (a2.knowledgeBase = i3.knowledgeBase.getConfiguration), this.parentFlow.supportsMultilingualKnowledge && i3.knowledgeSetting && (a2.knowledgeSetting = i3.knowledgeSetting.getConfiguration), this.parentFlow.supportsConversationSummary && i3.conversationSummarySetting && (a2.conversationSummarySetting = i3.conversationSummarySetting.getConfiguration), e3.supportedLanguageOptions.push(a2); + }); + } + getDisplayName() { + return L.setLocale.supportedLanguages; + } + getSupportedLanguageOption(e3) { + const t3 = e3.toLowerCase(); + return o.default.find(this.supportedLanguageOptions, (e4) => e4.language.toLowerCase() === t3); + } + get isDisplayableNode() { + return this.parentFlow.supportsLanguages && !!this.parentFlow.languages; + } + get isLanguageNode() { + return true; + } + isFlowSupportedLanguage(e3) { + return !!e3 && void 0 !== this.getSupportedLanguageOption(e3); + } + loadConfiguration(e3) { + this.supportedLanguageOptions = [], e3.supportedLanguageOptions ? o.default.each(e3.supportedLanguageOptions, (e4) => this._addLanguage(e4, true)) : e3.supportedLanguages && (a.error("use supportedLanguages as a backup, but this should not be happening"), o.default.each(e3.supportedLanguages, (e4) => this.addLanguage(e4))), this.parentFlow.defaultLanguage && !this.isFlowSupportedLanguage(this.parentFlow.defaultLanguage) && this.addLanguage(this.parentFlow.defaultLanguage); + } + get nodeGuxIcon() { + return "fa/language-regular"; + } + get helpTopic() { + return O.helpTopics.treeNodes.supportedLanguages; + } + get outOfService() { + return !this.parentFlow.supportsLanguages; + } + search(e3) { + o.default.each(this.supportedLanguageOptions, (t3) => { + var i3; + const n3 = y.getLanguageDisplayName(t3.language); + e3.checkText(this, n3, L.search.languageDescription), e3.checkText(this, t3.language, L.search.langCodeDescription), t3.textToSpeech && (e3.checkText(this, t3.textToSpeech.engine.name, L.textToSpeech.ttsEngine), e3.checkText(this, t3.textToSpeech.voice.name, L.textToSpeech.ttsVoice)), (null === (i3 = t3.speechToTextEngine) || void 0 === i3 ? void 0 : i3.name) && e3.checkText(this, t3.speechToTextEngine.name, L.speechToText.speechToTextEngineLabel); + }); + } + canRemoveLanguage(e3) { + return !this.parentFlow.isReadOnly && (this.supportedLanguageOptions.length > 1 && !this.parentFlow.supportsMoreThanOneLanguage || !(e3 && !this.parentFlow.supportsDefaultLanguageChange && this.parentFlow.defaultLanguage === e3) && this.parentFlow.supportsAddRemoveLanguages); + } + resetLanguageKnowledge(e3) { + const t3 = e3 !== P.KnowledgeVersionValues.v2, i3 = e3 !== P.KnowledgeVersionValues.v3; + o.default.each(this.supportedLanguageOptions, (e4) => { + t3 && (e4.knowledgeBase = null), i3 && (e4.knowledgeSetting = null); + }); + } + removeLanguage(e3) { + if (!this.canRemoveLanguage()) return; + const t3 = e3.toLowerCase(), i3 = o.default.find(this.supportedLanguageOptions, (e4) => e4.language.toLowerCase() === t3); + if (i3) { + const e4 = this.supportedLanguageOptions.indexOf(i3); + e4 >= 0 && (i3.languageSkill.destroy(), this._savedSupportedLanguagesViewModels = void 0, this.supportedLanguageOptions.splice(e4, 1)); + } + e3 === this.parentFlow.defaultLanguage && (this.supportedLanguageOptions.length > 0 ? this.parentFlow.defaultLanguage = this.supportedLanguageOptions[0].language : this.parentFlow.defaultLanguage = void 0), l.fireEvent(this, f.supportedLanguagesChanged); + } + get supportedLanguages() { + return o.default.pluck(this.supportedLanguageOptions, "language"); + } + get supportedLanguagesViewModels() { + return o.default.isUndefined(this._savedSupportedLanguagesViewModels) && (this._savedSupportedLanguagesViewModels = [], o.default.each(this.supportedLanguages, (e3) => { + this._savedSupportedLanguagesViewModels.push(y.getLanguageEntry(e3)); + })), this._savedSupportedLanguagesViewModels; + } + get defaultLanguageViewModel() { + return y.getLanguageEntry(this.defaultLanguage); + } + get supportedLanguagesLCase() { + const e3 = []; + return o.default.each(this.supportedLanguageOptions, (t3) => { + e3.push(t3.language.toLowerCase()); + }), e3; + } + get supportedLanguageOptions() { + return this.parentFlow.supportedLanguageOptions; + } + set supportedLanguageOptions(e3) { + this.parentFlow.supportedLanguageOptions = e3; + } + updateDependencies() { + if (this.outOfService) return; + const e3 = this.parentFlow.languagesSupportDefaultLanguageSkill, t3 = this.parentFlow.languagesSupportTtsAndAsrSettings; + o.default.each(this.supportedLanguageOptions, (i3) => { + var n3, r3, o2, a2; + e3 && g.registerExpression(i3.languageSkill), i3.languageSkill.outOfService = !e3, t3 && i3.textToSpeech && i3.textToSpeech.updateDependencies(), this.parentFlow.languagesSupportSpeechToTextSettings && (null === (n3 = i3.speechToTextEngine) || void 0 === n3 ? void 0 : n3.id) && g.registerConsumer(this, m.speechToTextEngineManager.dependencyContext + i3.language, i3.speechToTextEngine.name, i3.speechToTextEngine.id, g.NO_VERSION, m.speechToTextEngineManager.dependencyType), this.parentFlow.supportsMultilingualKnowledge && (null === (r3 = i3.knowledgeBase) || void 0 === r3 ? void 0 : r3.knowledgeBaseId) && g.registerConsumer(this, h.knowledgeBaseManager.dependencyContext + i3.language, i3.knowledgeBase.knowledgeBaseName, i3.knowledgeBase.knowledgeBaseId, g.NO_VERSION, h.knowledgeBaseManager.dependencyType), this.parentFlow.supportsMultilingualKnowledge && (null === (o2 = i3.knowledgeSetting) || void 0 === o2 ? void 0 : o2.knowledgeSettingId) && g.registerConsumer(this, D.knowledgeSettingManager.dependencyContext + i3.language, i3.knowledgeSetting.knowledgeSettingName, i3.knowledgeSetting.knowledgeSettingId, g.NO_VERSION, D.knowledgeSettingManager.dependencyType), this.parentFlow.supportsConversationSummary && (null === (a2 = i3.conversationSummarySetting) || void 0 === a2 ? void 0 : a2.id) && g.registerConsumer(this, F.conversationSummarySettingManager.dependencyContext + i3.language, i3.conversationSummarySetting.name, i3.conversationSummarySetting.id, g.NO_VERSION, F.conversationSummarySettingManager.dependencyType); + }); + } + knowledgeSelected(e3, t3) { + this.isKnowledgeV3Enabled ? (e3.knowledgeSetting = t3, e3.knowledgeBase = void 0) : (e3.knowledgeBase = t3, e3.knowledgeSetting = void 0); + } + conversationSummarySelected(e3, t3) { + e3.conversationSummarySetting = t3; + } + validate(e3) { + var t3, i3, n3; + if (!this.parentFlow.supportsLanguages) return; + if (!this.parentFlow.supportedLanguageOptions || this.supportedLanguageOptions.length < 1) return void e3.addError(this, L.setLocale.noSupportedLanguages); + this.parentFlow.isNluFlow && !(null === (t3 = this.parentFlow.botFlowSettings) || void 0 === t3 ? void 0 : t3.allowsMoreThanOneSupportedLanguage) && this.supportedLanguages.length > 1 && e3.addError(this, L.flow.nluEngineDoesNotSupportMultilingual); + const a2 = this.parentFlow.definition; + !a2.supportsMoreThanOneLanguage && this.supportedLanguageOptions.length > 1 && e3.addError(this, `You may only have one supported language in a flow of type '${a2.typeDisplayName}'.`); + const s2 = a2.availableLanguageTags; + if (o.default.isArray(s2) && s2.length && o.default.each(this.supportedLanguageOptions, (t4) => { + if (!o.default.contains(s2, t4.language.toLowerCase())) try { + const i4 = y.getLanguageEntry(t4.language).displayString; + e3.addError(this, `The language '${i4}' is not valid as a supported language for a flow of type '${this.parentFlow.definition.typeDisplayName}'.`); + } catch (i4) { + e3.addError(this, `The language with tag of '${t4.language}' is not valid as a supported language for a flow of type '${this.parentFlow.definition.typeDisplayName}'.`); + } + }), this.parentFlow.defaultLanguage ? this.isFlowSupportedLanguage(this.parentFlow.defaultLanguage) || e3.addError(this, L.setLocale.defaultLanguageError) : e3.addError(this, L.setLocale.noDefaultLanguage), o.default.each(this.supportedLanguageOptions, (t4) => { + var i4, n4, o2, a3, s3, l2, u2; + if (y.langCodeIsGeneric(t4.language) && e3.addError(this, (0, r2.sprintf)(L.setLocale.genericLanguageError, t4.language)), t4.languageSkill.validate(e3), t4.textToSpeech && t4.textToSpeech.validate(e3), t4.speechToTextEngine && t4.speechToTextEngine.validate(e3, this, t4.language), t4.speechToTextNoChoicesWarning = void 0, this.parentFlow.languagesSupportSpeechToTextSettings && 0 === t4.speechToTextEngineChoices.length) { + const i5 = (0, r2.sprintf)(L.speechToText.speechToTextNoChoicesAvailable, this._getLanguageAndTerritoryStringById(t4.language)); + e3.addWarning(this, i5), t4.speechToTextNoChoicesWarning = i5, t4.speechToTextEngineChoice = void 0; + } + if (this.parentFlow.supportsConversationSummary && (t4.conversationSummaryError = void 0, (null === (i4 = t4.conversationSummarySetting) || void 0 === i4 ? void 0 : i4.id) && !F.conversationSummarySettingManager.getItem(t4.conversationSummarySetting.id))) { + const i5 = (0, r2.sprintf)(L.customNodes.virtualAgentSettings.conversationSummarySettingsSummaryNotFound, t4.conversationSummarySetting.name); + e3.addError(this, i5), t4.conversationSummaryError = i5; + } + if (this.parentFlow.supportsMultilingualKnowledge && this.parent.defaultLanguage !== t4.language && t4.languageSupportsKnowledge) { + if (t4.knowledgeBaseError = void 0, t4.knowledgeBaseWarning = void 0, (null === (n4 = t4.knowledgeBase) || void 0 === n4 ? void 0 : n4.knowledgeBaseId) && !t4.knowledgeBaseConfigListManager.getItem(t4.knowledgeBase.knowledgeBaseId) && !this.isKnowledgeV3Enabled) { + const i5 = (0, r2.sprintf)(L.errors.invalidValue, (0, r2.sprintf)(L.knowledgeSettings.knowledgeBaseNotFoundForLanguage, this._getLanguageAndTerritoryStringById(t4.language))); + e3.addError(this, i5), t4.knowledgeBaseError = i5; + } + if ((null === (o2 = t4.knowledgeSetting) || void 0 === o2 ? void 0 : o2.knowledgeSettingId) && !t4.knowledgeSettingConfigListManager.getItem(t4.knowledgeSetting.knowledgeSettingId) && this.isKnowledgeV3Enabled) { + const i5 = (0, r2.sprintf)(L.errors.invalidValue, (0, r2.sprintf)(L.knowledgeSettings.knowledgeSettingNotFoundForLanguage, this._getLanguageAndTerritoryStringById(t4.language))); + e3.addError(this, i5), t4.knowledgeBaseError = i5; + } + if (!t4.knowledgeBaseError) if ((null === (a3 = t4.knowledgeBase) || void 0 === a3 ? void 0 : a3.knowledgeBaseId) || !(null === (s3 = this.parent.knowledgeSettings) || void 0 === s3 ? void 0 : s3.knowledgeBaseId) || this.isKnowledgeV3Enabled) { + if (!(null === (l2 = t4.knowledgeSetting) || void 0 === l2 ? void 0 : l2.knowledgeSettingId) && (null === (u2 = this.parent.knowledgeSettings) || void 0 === u2 ? void 0 : u2.knowledgeSettingId) && this.isKnowledgeV3Enabled) { + const i5 = (0, r2.sprintf)(L.knowledgeSettings.knowledgeSettingNotSelectedForLanguage, this._getLanguageAndTerritoryStringById(t4.language)); + e3.addWarning(this, i5), t4.knowledgeBaseWarning = i5; + } + } else { + const i5 = (0, r2.sprintf)(L.knowledgeSettings.knowledgeBaseNotSelectedForLanguage, this._getLanguageAndTerritoryStringById(t4.language)); + e3.addWarning(this, i5), t4.knowledgeBaseWarning = i5; + } + } + }), null === (i3 = this.supportedLanguageOptions) || void 0 === i3 ? void 0 : i3.length) { + if (this.parentFlow.languagesSupportSpeechToTextSettings) { + const t5 = []; + if (this.supportedLanguageOptions.forEach((e4) => { + (o.default.isUndefined(e4.speechToTextEngine) || e4.speechToTextEngine.isGenesysEngine) && t5.push(e4.language.toLowerCase()); + }), null == t5 || t5.sort(), t5.length > 0 && t5.length < (null === (n3 = this.supportedLanguageOptions) || void 0 === n3 ? void 0 : n3.length)) { + let i5 = L.speechToText.speechToTextEngineRequiredMessage; + { + let e4 = ""; + for (let i6 = 0; i6 < t5.length; i6++) i6 !== t5.length - 1 ? e4 += t5[i6] + ", " : e4 += t5[i6] + "."; + i5 = i5 + " The languages that still need a speech to text engine configured are: " + e4; + } + e3.addError(this, i5); + } + const i4 = this.supportedLanguageOptions.filter((e4) => { + var t6; + return (null === (t6 = e4.speechToTextEngine) || void 0 === t6 ? void 0 : t6.selection) === R.engineSelectionTypes.engineSelectionDefault && e4.hasSttEngineDefaultChanged; + }); + i4.length && !this.parentFlow.isReadOnly && o.default.forEach(i4, (e4) => { + e4.hasSttEngineDefaultChanged = false; + const t6 = E.default.getDefaultEngineForLanguage(e4.language); + if (t6) { + const i5 = { type: _.AlertTypeEnum.info, message: (0, r2.sprintf)(L.speechToText.defaultSpeechToTextEngineUpdated, e4.language, t6.name) }; + f.emitter.emit(f.alert, i5); + } + }); + } + const t4 = this.supportedLanguageOptions.filter((e4) => e4.textToSpeech.engineUpdatedToMatchOrg).map((e4) => (e4.textToSpeech.engineUpdatedToMatchOrg = false, e4.textToSpeech)); + if (t4.length) if (1 === t4.length) { + const e4 = { type: _.AlertTypeEnum.info, message: (0, r2.sprintf)(L.textToSpeech.defaultEngineUpdated, t4[0].languageId, t4[0].engine.name) }; + f.emitter.emit(f.alert, e4); + } else this.addAlertsForLanguagesWithUpdatedDefaultTtsEngine(t4); + } + } + addAlertsForLanguagesWithUpdatedDefaultTtsEngine(e3) { + const t3 = { type: _.AlertTypeEnum.info, message: "" }, i3 = o.default.uniq(e3.map((e4) => e4.engine.name)); + if (1 === i3.length) { + const n3 = e3.map((e4) => "'" + e4.languageId + "'"); + t3.message = (0, r2.sprintf)(L.textToSpeech.defaultEngineUpdatedMoreThanOne, T.getListDisplayString(n3), i3[0]), f.emitter.emit(f.alert, t3); + } else i3.forEach((i4) => { + let n3, o2 = e3.filter((e4) => e4.engine.name === i4).map((e4) => e4.languageId); + 1 === o2.length ? n3 = L.textToSpeech.defaultEngineUpdated : (o2 = o2.map((e4) => "'" + e4 + "'"), n3 = L.textToSpeech.defaultEngineUpdatedMoreThanOne), t3.message = (0, r2.sprintf)(n3, T.getListDisplayString(o2), i4), f.emitter.emit(f.alert, t3); + }); + } + get wrappedYamlName() { + return "supportedLanguages"; + } + get isKnowledgeV3Enabled() { + return this.parent.knowledgeSettings.isKnowledgeV3EnabledInFlow; + } + _destroy() { + super._destroy(), o.default.each(this.supportedLanguageOptions, (e3) => e3.languageSkill.destroy()), this._savedSupportedLanguagesViewModels = void 0; + } + _initializeDesignTime() { + super._initializeDesignTime(), o.default.each(this.supportedLanguageOptions, (e3) => { + this._initializeLanguageViewModel(e3); + }); + } + _addLanguage(e3, t3) { + var i3, n3, o2; + if (!this.parentFlow.supportsLanguages) return; + if (this.isFlowSupportedLanguage(e3.language)) return; + const a2 = y.getLangKnowledgeBaseLanguageTag(e3.language), s2 = this._getLinkButtonInfo(null === (i3 = e3.knowledgeBase) || void 0 === i3 ? void 0 : i3.id), l2 = this._getSettingLinkButtonInfo(null === (n3 = e3.knowledgeSetting) || void 0 === n3 ? void 0 : n3.id), p2 = this._getSummaryLinkButtonInfo(null === (o2 = e3.conversationSummarySetting) || void 0 === o2 ? void 0 : o2.id), _2 = { name: L.generic.default, id: E.default.defaultId }, g2 = (e4, t4) => { + const i4 = e4.filter((e5) => e5.isGenesysEngine), n4 = e4.filter((e5) => !e5.isGenesysEngine).sort((e5, t5) => { + var i5, n5; + return null === (i5 = e5.name) || void 0 === i5 ? void 0 : i5.toLocaleLowerCase().localeCompare(null === (n5 = t5.name) || void 0 === n5 ? void 0 : n5.toLocaleLowerCase()); + }), r3 = i4.sort((e5, t5) => { + var i5, n5; + return null === (i5 = t5.name) || void 0 === i5 ? void 0 : i5.toLocaleLowerCase().localeCompare(null === (n5 = e5.name) || void 0 === n5 ? void 0 : n5.toLocaleLowerCase()); + }); + return t4 ? [...n4, t4, ...r3] : [...n4, ...r3]; + }, f2 = { defaultSttEngineChoice: _2, isFlowSupportedLanguageSetting: true, isSystemSupported: y.isFlowTypeWithLanguageSupportedInSystem(e3.language, this.parentFlow.type), language: e3.language, parent: this, textToSpeech: new b.TTSDataViewModel(e3.textToSpeech || new x(), e3.language, this), _speechToTextEngine: this._loadSTTEngine(e3), _speechToTextEngineChoice: this._loadSTTEngineChoice(e3, _2), speechToTextEngineChoices: this._loadSTTEngineChoices(e3.language, _2, g2), speechToTextNoChoicesWarning: void 0, speechToTextConfigListManager: m.speechToTextEngineManager, _conversationSummarySetting: e3.conversationSummarySetting ? new M.default(e3.conversationSummarySetting) : void 0, conversationSummaryError: void 0, conversationSummaryConfigListManager: F.conversationSummarySettingManager, conversationSummaryLinkButton: p2, languageSupportsConversationSummary: false, _knowledgeBase: e3.knowledgeBase ? new v.default(e3.knowledgeBase) : void 0, _knowledgeSetting: e3.knowledgeSetting ? new w.default(e3.knowledgeSetting) : void 0, knowledgeBaseError: void 0, knowledgeBaseWarning: void 0, knowledgeBaseConfigListManager: h.knowledgeBaseManager, knowledgeSettingConfigListManager: D.knowledgeSettingManager, knowledgeBaseSearchParams: { coreLanguage: a2, published: true }, knowledgeBaseLinkButtonInfo: s2, knowledgeSettingLinkButtonInfo: l2, languageSupportsKnowledge: y.getLangSupportsKnowledgeForFlowType(e3.language, this.parentFlow.type), defaultSttEngineLabel: this._defaultSttEngineLabel(e3), defaultSttEngineChangedLabel: this._defaultSttEngineChangedLabel(e3, t3), hasSttEngineDefaultChanged: this._hasSttEngineDefaultChanged(e3, t3), sttEngineSorter: g2 }; + return Object.defineProperty(f2, "speechToTextEngine", { get: () => f2._speechToTextEngine, set: (e4) => { + f2._speechToTextEngine = e4, (0, A.validateNode)(this, true); + } }), Object.defineProperty(f2, "speechToTextEngineChoice", { get: () => f2._speechToTextEngineChoice, set: (e4) => { + f2._speechToTextEngineChoice = e4, (0, A.validateNode)(this, true); + } }), Object.defineProperty(f2, "knowledgeBase", { get: () => f2._knowledgeBase, set: (e4) => { + f2._knowledgeBase = e4, f2.knowledgeBaseLinkButtonInfo = this._getLinkButtonInfo(null == e4 ? void 0 : e4.id), (0, A.validateNode)(this, true), (0, A.validateNode)(this.parent.knowledgeSettings, true); + } }), Object.defineProperty(f2, "knowledgeSetting", { get: () => f2._knowledgeSetting, set: (e4) => { + f2._knowledgeSetting = e4, f2.knowledgeSettingLinkButtonInfo = this._getSettingLinkButtonInfo(null == e4 ? void 0 : e4.id), (0, A.validateNode)(this, true), (0, A.validateNode)(this.parent.knowledgeSettings, true); + } }), Object.defineProperty(f2, "hasNoSpeechToTextEngineChoices", { get: () => { + var e4, t4; + return f2.speechToTextSearchManager ? !f2.speechToTextSearchManager.loading && 0 === (null === (t4 = null === (e4 = f2.speechToTextSearchManager) || void 0 === e4 ? void 0 : e4.results) || void 0 === t4 ? void 0 : t4.length) : !!f2.speechToTextEngineChoices && 0 === f2.speechToTextEngineChoices.length; + }, set: (e4) => { + (0, A.validateNode)(this, true); + } }), Object.defineProperty(f2, "languageSupportsConversationSummary", { get: () => y.getLangSupportsConversationSummary(f2.language), enumerable: true }), Object.defineProperty(f2, "conversationSummarySetting", { get: () => f2._conversationSummarySetting, set: (e4) => { + f2._conversationSummarySetting = e4, f2.conversationSummaryLinkButton = this._getSummaryLinkButtonInfo(null == e4 ? void 0 : e4.id), (0, A.validateNode)(this, true); + } }), f2.languageSkill = u.expression(this.parentFlow, this, e3.languageSkill || new c.default(), (0, r2.sprintf)(L.setLocale.skillMappingName, e3.language), d.globalTypes.languageSkill, null, d.globalTypes.languageSkill.createExpressionOptionClass().setIsOptional(true).setAllowModeLiteral(true).setAllowModeExpression(false).setAllowModeVariable(false).setLabelOverride(L.generic.value).setIninTestingField("languageSkill")), f2.isRootLanguage = e3.language.indexOf("-") < 0, this._savedSupportedLanguagesViewModels = void 0, this.supportedLanguageOptions.push(f2), this.initializeDesignTimeCalled && this._initializeLanguageViewModel(f2), this.defaultLanguage || (this.defaultLanguage = f2.language), f2; + } + _loadSTTEngine(e3) { + if (!e3.speechToText) { + const t4 = E.default.getDefaultEngineForLanguage(e3.language); + if (t4) { + const e4 = new C.default({}); + return e4.setEngine(t4, true), e4; + } + return; + } + const t3 = new C.default(e3.speechToText.engine); + return t3.selection = e3.speechToText.engine.selection === R.engineSelectionTypes.engineSelectionDefault ? R.engineSelectionTypes.engineSelectionDefault : R.engineSelectionTypes.engineSelectionSpecific, t3; + } + _loadSTTEngineChoice(e3, t3) { + var i3, n3; + return e3.speechToText ? (null === (n3 = null === (i3 = e3.speechToText) || void 0 === i3 ? void 0 : i3.engine) || void 0 === n3 ? void 0 : n3.selection) === R.engineSelectionTypes.engineSelectionDefault ? t3 : new C.default(e3.speechToText.engine) : t3; + } + _loadSTTEngineChoices(e3, t3, i3) { + const n3 = o.default.filter(E.default.items, (t4) => !t4.grammarBased && t4.isLanguageSupported(e3)); + return o.default.isEmpty(n3) ? [] : i3(Object.values(n3), t3); + } + _defaultSttEngineLabel(e3) { + const t3 = E.default.getDefaultEngineForLanguage(e3.language); + if (t3) return (0, r2.sprintf)(L.textToSpeech.defaultEngineLabel, t3.name); + } + _defaultSttEngineChangedLabel(e3, t3) { + var i3, n3, o2, a2, s2, l2; + if (t3 && (!e3.speechToText || (null === (n3 = null === (i3 = e3.speechToText) || void 0 === i3 ? void 0 : i3.engine) || void 0 === n3 ? void 0 : n3.selection) === R.engineSelectionTypes.engineSelectionDefault)) return this._hasSttEngineDefaultChanged(e3, t3) ? (null === (a2 = null === (o2 = e3.speechToText) || void 0 === o2 ? void 0 : o2.engine) || void 0 === a2 ? void 0 : a2.name) ? (0, r2.sprintf)(L.textToSpeech.defaultEngineDiffers, null === (l2 = null === (s2 = e3.speechToText) || void 0 === s2 ? void 0 : s2.engine) || void 0 === l2 ? void 0 : l2.name) : (0, r2.sprintf)(L.speechToText.defaultSpeechToTextEngineDiffersFromNotSpecified) : void 0; + } + _hasSttEngineDefaultChanged(e3, t3) { + var i3, n3, r3, o2; + if (t3 && (!e3.speechToText || (null === (n3 = null === (i3 = e3.speechToText) || void 0 === i3 ? void 0 : i3.engine) || void 0 === n3 ? void 0 : n3.selection) === R.engineSelectionTypes.engineSelectionDefault)) { + const t4 = E.default.getDefaultEngineForLanguage(e3.language); + return (null == t4 ? void 0 : t4.id) !== (null === (o2 = null === (r3 = e3.speechToText) || void 0 === r3 ? void 0 : r3.engine) || void 0 === o2 ? void 0 : o2.id); + } + } + _initializeLanguageViewModel(e3) { + e3 && (e3.languageSkill.initializeDesignTime(), e3.textToSpeech && e3.textToSpeech.initializeDesignTime()); + } + _getLinkButtonInfo(e3) { + if (!e3) return; + const t3 = this.isKnowledgeV2Available ? S.getAdminKnowledgeBaseUrl(e3) : S.getKnowledgeBaseWorkbenchUrl(e3); + return { text: L.knowledgeSettings.openKnowledgeInNewTab, url: t3 }; + } + _getSettingLinkButtonInfo(e3) { + if (!e3) return; + const t3 = S.getAdminKnowledgeSettingUrl(e3); + return { text: L.knowledgeSettings.openKnowledgeInNewTab, url: t3 }; + } + _getSummaryLinkButtonInfo(e3) { + if (!e3) return; + const t3 = S.getAdminConversationSummarySettingUrl(e3); + return { text: L.customNodes.virtualAgentSettings.conversationSummarySettingsButtonToolTip, url: t3 }; + } + get isKnowledgeV2Available() { + return s.isFeatureAvailable(N.default.orgAvailabilityKnowledgeV2); + } + _getLanguageAndTerritoryStringById(e3) { + const t3 = y.getLanguageDisplayName(e3), i3 = y.getLanguageEntry(e3); + return `${t3} (${y.getTerritoryDisplayName(i3.id)})`; + } + } + t2.default = k; + }, 56549: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importDefault(i2(92140)), o = n2.__importStar(i2(74359)), a = n2.__importDefault(i2(78432)), s = n2.__importDefault(i2(72203)), l = n2.__importDefault(i2(66978)), u = i2(46920), d = i2(1360), { ParameterInfo: c } = i2(55909), { ParameterValidator: p } = i2(33951), _ = n2.__importDefault(i2(8471)), h = i2(37345); + class m extends _.default { + constructor() { + super(); + } + get displayTypeName() { + return "ArchNetworkValueRetrieval"; + } + get logStr() { + return this._createLogStrFromParts(["ArchNetworkValueRetrieval"]); + } + _checkoutFlow(e3) { + return n2.__awaiter(this, void 0, void 0, function* () { + const t3 = h.checkOut(e3.id); + return yield l.default.addPromise(t3, "checkoutFlow"); + }); + } + _checkoutFlowByFlowInfoAsync(e3, t3) { + return n2.__awaiter(this, void 0, void 0, function* () { + const i3 = e3.lockedUser, n3 = null == o ? void 0 : o.getConnectedUser(); + if (i3 && n3 && n3.id === i3.id) { + const t4 = Promise.resolve(); + return l.default.addPromise(t4, "checkoutFlowByFlowInfoAsync"), e3; + } + if (i3 && t3) { + const t4 = h.unlock(e3.id); + return yield t4, this._checkoutFlow(e3); + } + return this._checkoutFlow(e3); + }); + } + _loadFlowByFlowInfoAsync(e3, t3, i3, o2, s2, d2) { + return n2.__awaiter(this, void 0, void 0, function* () { + let n3, _2; + p.expectFlowViewModel(e3, () => c.createFunctionParameter(this.displayTypeName, "_loadFlowByFlowInfoAsync", "coreFlowViewModel"), false), this._checkItemIsValidLiteralString(this._infoParm(o2, "_loadFlowByFlowInfoAsync"), o2), this._checkItemIsValidLiteralString(this._infoParm("flowVersion", "_loadFlowByFlowInfoAsync"), i3, true), this._checkItemIsValidLiteralBool(this._infoParm("returnConfig", "_loadFlowByFlowInfoAsync"), s2, true), this._checkItemIsValidLiteralBool(this._infoParm("setVersionLatest", "_loadFlowByFlowInfoAsync"), d2, true); + const m2 = this._infoParm("flowVersion", o2); + if (i3 && !r2.default.isFunction(i3) && "string" == typeof i3 && i3.toLowerCase() === a.default.FLOW_VERSIONS.latest ? (_2 = a.default.FLOW_VERSIONS.latest, n3 = h.getConfiguration(t3.id, null == e3 ? void 0 : e3.overrideWireFlowConfiguration)) : ("string" == typeof i3 && a.default.FLOW_VERSIONS_ALL.includes(i3.toLowerCase()) ? _2 = i3 : (_2 = parseInt(String(i3)).toFixed(1), "nan" === _2.toLowerCase() && this._itemIsInvalid(m2, `the version value '${i3}' is not a valid integer value or of the following flow version strings: '${a.default.FLOW_VERSIONS_ALL.join("', '")}'.`), _2 < 0 && this._itemIsInvalid(m2, `the version value '${_2}' cannot be a negative value.`)), n3 = h.getVersionConfiguration(t3.id, _2, null == e3 ? void 0 : e3.overrideWireFlowVersionConfiguration)), s2) { + const e4 = l.default.addPromise(n3, "loadFlowByFlowInfoAsync"); + return yield e4; + } + { + const t4 = l.default.addPromise(n3, "loadFlowByFlowInfoAsync"), i4 = yield t4; + return yield u.tryLoadConfig(e3, i4), d2 ? e3.info.versions.loadedConfigurationVersion(a.default.FLOW_VERSIONS.latest) : _2 && e3.info.versions.loadedConfigurationVersion(_2), e3; + } + }); + } + _unlockFlowAsync(e3) { + return n2.__awaiter(this, void 0, void 0, function* () { + if (e3.lockedUser) return l.default.addPromise(h.unlock(e3.id), "unlockFlowAsync"); + { + const t3 = Promise.resolve(); + return l.default.addPromise(t3, "unlockFlowAsync"), e3; + } + }); + } + findItemByIdAsync(e3, t3, i3, r3) { + return n2.__awaiter(this, void 0, void 0, function* () { + this._checkItemUndefinedOrNull(this._infoParm("configlistManager", "findItemByIdAsync"), e3), this._checkItemIsValidLiteralString(this._infoParm("id", "findItemByIdAsync"), t3, false), this._checkItemIsValidLiteralString(this._infoParm("loggingLabel", "findItemByIdAsync"), i3, false), this.logNote(`find '${i3}' by id = '${t3}'`); + try { + const n3 = s.default.generateIdCacheKey(e3, t3, i3, r3), o2 = s.default.getFromIdCache(n3, e3); + if (o2) return this.logNote(`'${i3}' by id '${t3}' was found in cache`), o2; + const a2 = e3.fetchItem(t3, false, r3), u2 = yield l.default.addPromise(a2, `findItemByIdAsync: ${i3} - ${t3}`); + return s.default.setInIdCache(n3, u2, e3), u2; + } catch (e4) { + throw this.logError(`find '${i3}' by id '${t3}' - Failed to find item with id '${t3}'`), e4; + } + }); + } + findItemByValueAsync(e3, t3, i3, o2, a2, u2, c2) { + return n2.__awaiter(this, void 0, void 0, function* () { + var n3; + this._checkItemUndefinedOrNull(this._infoParm("configlistManager", "findItemByValueAsync"), e3), this._checkItemIsValidLiteralString(this._infoParm("value", "findItemByValueAsync"), t3, false), this._checkItemIsValidLiteralString(this._infoParm("loggingLabel", "findItemByValueAsync"), i3, false), this._checkItemIsValidLiteralString(this._infoParm("searchProperty", "findItemByValueAsync"), o2, true), this._checkItemIsValidLiteralString(this._infoParm("wireProperty", "findItemByValueAsync"), a2, true), o2 || (o2 = "name"), a2 || (a2 = o2), this.logNote(`find '${i3}' by property value where '${o2}' = '${t3}'`); + try { + const p2 = s.default.generateValueCacheKey(e3, t3, i3, o2, a2, u2, c2), _2 = s.default.getFromValueCache(p2, e3); + if (_2) return this.logNote(`'${i3}' by value '${t3}' was found in cache`), _2; + const h2 = e3.search(t3, o2, d.exactMatch, void 0, c2, void 0, void 0, true), m2 = yield l.default.addPromise(h2, `findItemByValueAsync: ${i3} - ${t3}`); + let g2 = []; + for (let e4 = 0; e4 < m2.length; e4++) (null === (n3 = m2[e4][a2]) || void 0 === n3 ? void 0 : n3.toLowerCase()) === t3.toLowerCase() && g2.push(m2[e4]); + if (r2.default.isObject(u2) && (g2 = r2.default.filter(g2, u2)), 1 === g2.length) { + const t4 = g2[0]; + return s.default.setInValueCache(p2, t4, e3), t4; + } + if (g2.length > 1) { + const n4 = []; + let r3; + n4.push(`find '${i3}' by value of '${t3}' - there is more than one case insensitive match (count: ${g2.length})`), n4.push(" now attempting to find a case sensitive match."); + for (let e4 = 0; e4 < g2.length; e4++) { + const i4 = ` item[${e4}] - value '${g2[e4][a2]}' - `; + g2[e4][a2] === t3 ? r3 ? (n4.push(i4 + "is another case sensitive match - unable to disambiguate network results"), this.logErrorAndThrow(n4.join("\n"))) : (n4.push(i4 + "is a case sensitive match - checking additional items to see if there are any other matches."), r3 = g2[e4]) : n4.push(i4 + "is not a case sensitive match."); + } + return n4.push(` found '${i3}' with value of '${t3}'.`), this.logNote(n4.join("\n")), s.default.setInValueCache(p2, r3, e3), r3; + } + throw this.logError(`find '${i3}' by value of '${t3}' - no matches for '${t3}'`), "no matches"; + } catch (e4) { + throw this.logError(`find '${i3}' by value of '${t3}' - Failed to find item ${t3}`), e4; + } + }); + } + loadAllItemsAsync(e3, t3, i3, r3) { + return n2.__awaiter(this, void 0, void 0, function* () { + this._checkItemUndefinedOrNull(this._infoParm("configListManager", "loadAllItemsAsync"), e3), this._checkItemIsValidLiteralString(this._infoParm("loggingLabel", "loadAllItemsAsync"), t3, false), this._checkItemIsValidLiteralString(this._infoParm("searchProperty", "loadAllItemsAsync"), i3, true), this._checkItemIsValidLiteralString(this._infoParm("wireProperty", "loadAllItemsAsync"), r3, true), i3 || (i3 = "name"), r3 || (r3 = i3), this.logNote(`load all '${t3}' where '${i3}' = '*'`); + try { + const n3 = s.default.generateLoadAllCacheKey(e3, t3, i3, r3), o2 = s.default.getFromValueCache(n3, e3); + if (o2) return this.logNote(`load all '${t3}' was found in cache`), o2; + const a2 = yield e3.search("*", i3, d.contains), l2 = []; + for (let e4 = 0; e4 < a2.length; e4++) l2.push(a2[e4]); + if (1 === l2.length) { + const t4 = l2[0]; + return s.default.setInValueCache(n3, t4, e3), t4; + } + return l2.length > 1 ? (this.logNote(`load all '${t3}' - found ${l2.length} items.`), s.default.setInValueCache(n3, l2, e3), l2) : (this.logError(`load all '${t3}' - no items.`), []); + } catch (e4) { + throw this.logError(`load all '${t3}' - Failed to load items.`), e4; + } + }); + } + } + const g = new m(); + t2.default = g; + }, 56606: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.bufferWhen = void 0; + var n2 = i2(65212), r2 = i2(5717), o = i2(17214), a = i2(19724); + t2.bufferWhen = function(e3) { + return n2.operate(function(t3, i3) { + var n3 = null, s = null, l = function() { + null == s || s.unsubscribe(); + var t4 = n3; + n3 = [], t4 && i3.next(t4), a.innerFrom(e3()).subscribe(s = o.createOperatorSubscriber(i3, l, r2.noop)); + }; + l(), t3.subscribe(o.createOperatorSubscriber(i3, function(e4) { + return null == n3 ? void 0 : n3.push(e4); + }, function() { + n3 && i3.next(n3), i3.complete(); + }, void 0, function() { + return n3 = s = null; + })); + }); + }; + }, 56617: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(54757)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "fileCollection"; + } + get displayTypeName() { + return "ArchValueFileCollection"; + } + get isArchValueFileCollection() { + return true; + } + } + t2.default = r2; + }, 56673: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.BaseRegistrationService = void 0; + const n2 = i2(31635), r2 = n2.__importDefault(i2(92140)), o = (n2.__importStar(i2(12847)), n2.__importStar(i2(36781))), a = i2(55909), s = i2(33951); + t2.BaseRegistrationService = class { + constructor() { + this._flowMap = {}, o.serviceListen(o.cleanUpFlow, (e3) => this.cleanUpFlow(e3)); + } + get className() { + return "BaseRegistrationService"; + } + get isBaseRegistrationService() { + return true; + } + _getFlowSpecificMap(e3) { + const t3 = e3.isFlowViewModel ? e3 : e3.parentFlow; + let i3; + return t3.instanceId && (i3 = this._flowMap[t3.instanceId], i3 || (i3 = this._flowMap[t3.instanceId] = {})), i3; + } + _cleanUpFlow(e3) { + } + cleanUpFlow(e3) { + if (s.ParameterValidator.expectFlowViewModel(e3, () => a.ParameterInfo.createFunctionParameter(this.className, "cleanUpFlow", "flowViewModel")), e3 && e3.id) try { + this._cleanUpFlow(e3), delete this._flowMap[e3.instanceId]; + } catch (t3) { + e3.topic.exceptionWithErrorObjectInfo(t3, `${this.className}::cleanUpFlow - Error during flow cleanup processing.`, e3, true); + } + } + registerItem(e3) { + } + unregisterItem(e3) { + } + getItemIdsForFlow(e3) { + if (s.ParameterValidator.expectFlowViewModel(e3, () => a.ParameterInfo.createFunctionParameter(this.className, "getItemIdsForFlow", "flowViewModel")), !e3 || !e3.instanceId) return []; + const t3 = this._flowMap[e3.instanceId]; + return t3 ? r2.default.values(t3) : []; + } + flowDestroyed(e3) { + s.ParameterValidator.expectFlowViewModel(e3, () => a.ParameterInfo.createFunctionParameter(this.className, "flowDestroyed", "flowViewModel")), e3 && e3.instanceId && delete this._flowMap[e3.instanceId]; + } + }; + }, 56677: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importDefault(i2(96481)), o = n2.__importDefault(i2(56549)), a = n2.__importDefault(i2(94225)), s = i2(30801), l = i2(57467), u = i2(62902), d = i2(53482); + class c extends r2.default { + constructor(e3) { + super(e3), e3.botResponseTimeout && (this._botResponseTimeout = this.coreFactory.createArchWrapper(e3.botResponseTimeout)), e3.sessionTimeout && (this._sessionTimeout = this.coreFactory.createArchWrapper(e3.sessionTimeout)); + } + get _actionTypeId() { + return s.digitalBotConnectorActionType; + } + get displayTypeName() { + return "ArchActionCallDigitalBotConnector"; + } + addSessionVariableOutputNameValuePair(e3, t3) { + var i3; + return this._checkItemIsValidLiteralString(this._infoParm("nameLiteral", "addSessionVariableOutputNameValuePair"), e3, true), this._checkItemIsValidLiteralStringOrArchVariableString(this._infoParm("outputVariable", "addSessionVariableOutputNameValuePair"), t3, true), null === (i3 = this.sessionVariableOutputs) || void 0 === i3 ? void 0 : i3._addNameValueAssignment(e3, t3, true, true); + } + get botConnectorOutputsFailure() { + return this._coreActionViewModel.errorBindings ? this.coreFactory.createArchWrapper(this._coreActionViewModel.errorBindings) : null; + } + get isArchActionCallDigitalBotConnector() { + return true; + } + get intentSlots() { + return this.coreFactory.createArchWrapper(this._getCoreViewModel().outputs); + } + get sessionVariableOutputs() { + const e3 = this._getCoreViewModel().outputSessionVariables; + if (e3) return this.coreFactory.createArchBaseValueContainer(e3); + } + setBotByIdAsync(e3, t3, i3, r3) { + return n2.__awaiter(this, void 0, void 0, function* () { + this._checkItemIsValidLiteralString(this._infoParm("botConnectorIntegrationId", "setBotByIdAsync"), e3, false), this._checkItemIsValidLiteralString(this._infoParm("botConnectorBotId", "setBotByIdAsync"), t3, false), this._checkItemIsValidLiteralString(this._infoParm("botConnectorBotVersionId", "setBotByIdAsync"), i3, false), this._checkItemIsValidFunction(this._infoParm("callbackFunction", "setBotByIdAsync"), r3, true); + const n3 = yield o.default.findItemByIdAsync(l.digitalBotConnectorIntegrationManager, e3, "bot integration"); + this.logNote("Found the bot integration named '" + n3.name + "' for the integration ID of '" + e3 + "'"), this._coreActionViewModel.setBotIntegrationByViewModel(n3); + const s2 = yield o.default.findItemByIdAsync(u.digitalBotConnectorManager, t3, "bot connector bot", { integrationId: e3 }); + this.logNote("Found the digital bot connector named '" + s2.name + "' for the bot ID of '" + t3 + "'"), this._coreActionViewModel.setBotCategoryByViewModel(s2); + const c2 = yield o.default.findItemByIdAsync(d.digitalBotConnectorVersionManager, i3, "digital bot connector version", { integrationId: e3, botId: t3 }); + return this.logNote("Found the Digital Bot Connector version named '" + c2.name + "' for the version ID of '" + i3 + "'"), this._coreActionViewModel.setBotRunnableByViewModel(c2), a.default.executeCallback(this, "setBotByIdAsync", r3, this); + }); + } + setBotByNameAsync(e3, t3, i3, r3) { + return n2.__awaiter(this, void 0, void 0, function* () { + this._checkItemIsValidLiteralString(this._infoParm("botConnectorIntegrationName", "setBotByNameAsync"), e3, false), this._checkItemIsValidLiteralString(this._infoParm("botConnectorBotName", "setBotByNameAsync"), t3, false), this._checkItemIsValidLiteralString(this._infoParm("botConnectorBotVersionName", "setBotByNameAsync"), i3, false), this._checkItemIsValidFunction(this._infoParm("callbackFunction", "setBotByIdAsync"), r3, true); + const n3 = "call digital bot connector action", s2 = yield o.default.findItemByValueAsync(l.digitalBotConnectorIntegrationManager, e3, n3, void 0, void 0); + this.logNote(`Found info for the integration named '${s2.name}' for the passed integration name of '${e3}'. Getting bot details.`), this._coreActionViewModel.setBotIntegrationByViewModel(s2); + const c2 = yield o.default.findItemByValueAsync(u.digitalBotConnectorManager, t3, n3, void 0, void 0, void 0, { integrationId: s2.id }); + this.logNote(`Found info for the bot named '${c2.name}' for the passed bot name of '${t3}'. Getting bot version details.`), this._coreActionViewModel.setBotCategoryByViewModel(c2); + const p = yield o.default.findItemByIdAsync(d.digitalBotConnectorVersionManager, i3, "bot connector bot version", { integrationId: s2.id, botId: c2.id }); + return this._coreActionViewModel.setBotRunnableByViewModel(p), a.default.executeCallback(this, "setBotByNameAsync", r3, this); + }); + } + get botResponseTimeout() { + return this._botResponseTimeout; + } + get sessionTimeout() { + return this._sessionTimeout; + } + } + t2.default = c; + }, 56716: (e2, t2, i2) => { + const n2 = i2(92140), r2 = i2(32726), { dialogflowCxActionType: o } = i2(30801), a = i2(42217); + function s() { + Object.defineProperties(this, { _liveAgentHandoffMetadata: { writable: true } }), this.environmentName = void 0, s.baseConstructor.apply(this, arguments); + } + r2.extend(s, o, true), Object.defineProperties(s.prototype, { pasteReIdOrRename: { value: function(e3) { + s._super.pasteReIdOrRename.apply(this, arguments), n2.each(this.liveAgentHandoffMetadata, (t3) => { + t3.pasteReIdOrRename(e3); + }); + } }, pasteResolveOldToNewValues: { value: function(e3) { + s._super.pasteResolveOldToNewValues.apply(this, arguments), n2.each(this.liveAgentHandoffMetadata, (t3) => { + t3.pasteResolveOldToNewValues(e3); + }); + } }, liveAgentHandoffMetadata: { enumerable: true, get: function() { + return this._liveAgentHandoffMetadata; + }, set: function(e3) { + this._liveAgentHandoffMetadata = this.reviveArray(e3, a); + } } }), e2.exports = s; + }, 56795: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(20692)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "promptCollection"; + } + get displayTypeName() { + return "ArchVariablePromptCollection"; + } + get initialValue() { + return this._initialValue; + } + get isArchVariablePromptCollection() { + return true; + } + } + t2.default = r2; + }, 56819: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = i2(30801), o = n2.__importDefault(i2(62028)); + class a extends o.default { + constructor(e3) { + super(e3); + } + get _actionTypeId() { + return r2.transferMenuActionType; + } + get displayTypeName() { + return "ArchMenuJumpToMenu"; + } + get actionJumpToMenu() { + return this._archAction; + } + get isArchMenuJumpToMenu() { + return true; + } + } + t2.default = a; + }, 56872: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.KnowledgeSettingsModeValues = t2.KnowledgeSettingsMode = void 0; + const n2 = i2(47957); + var r2; + !(function(e3) { + e3.standard = "standard", e3.custom = "custom"; + })(r2 || (t2.KnowledgeSettingsMode = r2 = {})), t2.KnowledgeSettingsModeValues = { [r2.standard]: { id: "standard", displayString: n2.knowledgeSettings.knowledgeSettingsModes.standard, description: n2.knowledgeSettings.knowledgeSettingsModes.standardDescription }, [r2.custom]: { id: "custom", displayString: n2.knowledgeSettings.knowledgeSettingsModes.custom, description: n2.knowledgeSettings.knowledgeSettingsModes.customDescription } }; + }, 56884: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.ExpressionTypeCustomerSegmentOptions = void 0; + const n2 = i2(65615); + class r2 extends n2.BaseExpressionTypeCollectionOptions { + static create(e3, t3) { + return new this(t3).invokeOptionsCallback(e3); + } + constructor(e3) { + super(e3); + } + get className() { + return "ExpressionTypeCustomerSegmentOptions"; + } + get isExpressionTypeCustomerSegmentOptions() { + return true; + } + get supportsLiteralMode() { + return this.isCollection; + } + } + t2.ExpressionTypeCustomerSegmentOptions = r2; + }, 56961: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(81574)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "workitemEventData"; + } + get rule() { + } + get displayTypeName() { + return "ArchValueWorkitemEventData"; + } + get isArchValueWorkitemEventData() { + return true; + } + } + t2.default = r2; + }, 56969: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.SurveyFormErrorTypesEnum = t2.NpsAnswersEnum = t2.SurveyQuestionTypesEnum = t2.surveyFormSlotHandlingTypes = void 0, t2.convertQualityLanguageCodeToArchitect = function(e3) { + return h[e3] || []; + }, t2.getSurveyQuestionFormVariableId = function(e3, t3) { + return `__SURVEY_QUESTION_${e3}_${t3}__`; + }, t2.getGroupQuestionName = function(e3, t3) { + return (0, r2.sprintf)(_.voiceSurvey.voiceSurveyQuestionWithGroupAndQuestionIndex, e3.groupIndex, t3.questionIndex); + }, t2.getSurveyQuestionSlotName = T, t2.getSurveyQuestionSlotTypeName = function(e3, t3) { + return `${T(e3, t3)}_Type`; + }, t2.surveyQuestionHasFollowUp = y, t2.surveyQuestionHasNa = function(e3) { + switch ((null == e3 ? void 0 : e3.questionType) || (null == e3 ? void 0 : e3.type)) { + case m.freeTextQuestion: + case m.npsQuestion: + case m.multipleChoiceQuestion: + return !!e3.naEnabled; + } + return false; + }, t2.getSurveyFormSlotHandlingMap = function(e3) { + var t3; + const i3 = /* @__PURE__ */ new Map(); + let n3 = 1; + return null === (t3 = null == e3 ? void 0 : e3.questionGroups) || void 0 === t3 || t3.forEach((e4, t4) => { + let r3 = 1; + e4.questions.forEach((e5) => { + i3.set(T(n3, r3), s.SlotHandlingType.surveyFormQuestionSlot), y(e5) && i3.set(T(n3, r3, true), s.SlotHandlingType.surveyFormQuestionFollowUpSlot), r3++; + }), n3++; + }), i3; + }, t2.filterSurveySlotNamesFromList = function(e3, t3) { + var i3; + return t3 ? (null === (i3 = null == e3 ? void 0 : e3.surveyFormInfo) || void 0 === i3 ? void 0 : i3.formToSlotVariableMappings) ? (o.default.flatten(Object.values(e3.surveyFormInfo.formToSlotVariableMappings)).map((e4) => e4.slotName).forEach((e4) => { + t3.hasOwnProperty(e4) && delete t3[e4]; + }), t3) : t3 : {}; + }, t2.findAnswerOptionInQuestion = S, t2.findAnswerOptionInQuestionGroup = A, t2.findQuestionInQuestionGroup = N, t2.findSurveyAnswerOptionInForm = function(e3, t3) { + var i3; + let n3; + if (t3 && (null === (i3 = null == e3 ? void 0 : e3.questionGroups) || void 0 === i3 ? void 0 : i3.length)) for (let i4 = 0; i4 < e3.questionGroups.length && (n3 = A(e3.questionGroups[i4], t3), !n3); i4++) ; + return n3; + }, t2.findSurveyQuestionInForm = O, t2.getAllQuestions = function(e3) { + var t3, i3; + const n3 = []; + if (null === (t3 = null == e3 ? void 0 : e3.questionGroups) || void 0 === t3 ? void 0 : t3.length) for (let t4 = 0; t4 < e3.questionGroups.length; t4++) { + const r3 = e3.questionGroups[t4]; + (null === (i3 = r3.questions) || void 0 === i3 ? void 0 : i3.length) && n3.push(...r3.questions); + } + return n3; + }, t2.getAllSurveyQuestionNames = function(e3) { + var t3, i3; + const n3 = []; + if (null === (t3 = null == e3 ? void 0 : e3.questionGroups) || void 0 === t3 ? void 0 : t3.length) for (let t4 = 0; t4 < e3.questionGroups.length; t4++) { + const r3 = e3.questionGroups[t4]; + (null === (i3 = r3.questions) || void 0 === i3 ? void 0 : i3.length) && n3.push(...r3.questions); + } + return n3; + }, t2.getQuestionDtmfAnswerOptionMap = function(e3) { + const t3 = {}; + return o.default.each(null == e3 ? void 0 : e3.answerOptions, (e4) => { + var i3; + if (null === (i3 = e4.dtmf) || void 0 === i3 ? void 0 : i3.length) { + const i4 = t3[e4.dtmf]; + i4 ? i4.push(e4) : t3[e4.dtmf] = [e4]; + } + }), t3; + }, t2.getVisibilityConditionExprText = function(e3, t3) { + var i3, n3, r3, o2; + let a2; + if (null === (i3 = null == e3 ? void 0 : e3.predicates) || void 0 === i3 ? void 0 : i3.length) { + let i4; + const s2 = e3.predicates, l2 = []; + for (let e4 = 0; e4 < s2.length; e4++) { + const o3 = null === (r3 = null === (n3 = s2[e4]) || void 0 === n3 ? void 0 : n3.toLowerCase()) || void 0 === r3 ? void 0 : r3.split("/"); + if (o3.length && "form" === o3[1] && "questiongroup" === o3[2] && o3[3]) { + const e5 = parseInt(o3[3]), n4 = t3.questionGroups[e5]; + if ("question" === o3[4] && o3[5]) { + const e6 = parseInt(o3[5]), r4 = n4.questions[e6], a3 = O(t3, r4.id); + if (i4 = a3.variableName, "answer" === o3[6] && o3[7]) { + let e7; + if (a3.questionType === m.npsQuestion && Object.values(g).includes(o3[7].toLowerCase())) e7 = `GetSurveyQuestionNPSCategory(${i4}) == "${o3[7].toLowerCase()}"`; + else { + const t4 = parseInt(o3[7]), n5 = r4.answerOptions[t4]; + let a4; + n5 && (a4 = n5.text), e7 = a4 ? `GetSurveyQuestionAnswer(${i4}) == ${p.default.getQuotedExpressionStringLiteral(a4)}` : `IsSet(${i4})`; + } + e7 && l2.push(e7); + } + } + } + } + switch (l2.length) { + case 0: + break; + case 1: + a2 = l2[0]; + break; + default: { + let t4; + switch (null === (o2 = e3.combiningOperation) || void 0 === o2 ? void 0 : o2.toLowerCase()) { + case "and": + default: + t4 = ")\nAnd ("; + break; + case "or": + t4 = ")\nOr ("; + } + a2 = `(${l2.join(t4)})`; + } + } + } + return a2; + }, t2.checkSurveyFormFlowCompatibility = function(e3) { + return n2.__awaiter(this, void 0, void 0, function* () { + const t3 = {}; + try { + v(yield l.surveyFormManager.apiCallSingle(e3), t3); + } catch (e4) { + I(t3, { errorType: 403 === (null == e4 ? void 0 : e4.status) ? f.formInsufficientViewPermissions : f.formInvalid }); + } + return t3; + }); + }, t2.checkSurveyForm = v, t2.getSurveyFormErrorText = function(e3) { + var t3; + if (!(null === (t3 = null == e3 ? void 0 : e3.rawErrors) || void 0 === t3 ? void 0 : t3.length)) return ""; + const i3 = []; + let n3 = false; + return o.default.each(e3.errors, (e4, t4) => { + var s2, l2; + if (null === (s2 = e4.form) || void 0 === s2 ? void 0 : s2.length) { + switch (t4) { + case f.formInvalid: + i3.push(_.voiceSurvey.surveyFormInvalid); + break; + case f.formDisabled: + i3.push(_.voiceSurvey.surveyFormDisabled); + break; + case f.formInsufficientViewPermissions: + i3.push((0, r2.sprintf)(_.voiceSurvey.surveyFormInsufficientPermissions, d.permissionStrings.external.externalAuthorizations.qualitySurveyFormView)); + break; + case f.multipleChoiceLimitExceeded: + i3.push((0, r2.sprintf)(_.voiceSurvey.voiceSurveyFormExceedsMultipleChoiceLimit, a.voiceSurveyLimits.multipleChoiceQuestions.maxLength)); + } + n3 = true; + } else if (!n3 && (null === (l2 = e4.questions) || void 0 === l2 ? void 0 : l2.length)) { + const n4 = []; + o.default.each(e4.questions, (e5) => { + n4.push((0, r2.sprintf)(_.voiceSurvey.voiceSurveyQuestionWithGroupAndQuestionIndex, e5.groupIndex, e5.questionIndex)); + }); + const s3 = (0, c.getListDisplayString)(n4) || _.generic.unknown; + let l3; + t4 === f.answerOptionExceedsMaxLength && (l3 = (0, r2.sprintf)(n4.length > 1 ? _.voiceSurvey.surveyFormQuestionAnswerExceedsLimitErrorMoreThanOne : _.voiceSurvey.surveyFormQuestionAnswerExceedsLimitError, a.voiceSurveyLimits.answerOptionTextLength.maxLength, s3)), l3 && i3.push(l3); + } + }), i3.length ? (n3 || (i3.unshift(_.voiceSurvey.surveyFromIncompatible), i3.push(_.voiceSurvey.surveyFormUpdateNeeded)), i3.join(" ")) : void 0; + }; + const n2 = i2(31635), r2 = i2(17604), o = n2.__importDefault(i2(92140)), a = i2(82632), s = i2(13116), l = i2(99918), u = n2.__importDefault(i2(77862)), d = i2(44724), c = i2(66381), p = n2.__importDefault(i2(22226)), _ = i2(47957), h = { ar: ["ar-ae"], da: ["da-dk"], de: ["de-de", "de-ch"], "en-us": ["en-au", "en-ie", "en-gb", "en-nz", "en-us", "en-za"], es: ["es-es", "es-mx", "es-us"], fi: ["fi-fi"], fr: ["fr-ca", "fr-fr"], he: ["he-il"], hi: ["hi-in"], it: ["it-it"], ja: ["ja-jp"], ko: ["ko-kr"], nl: ["nl-nl"], no: ["nb-no"], pl: ["pl-pl"], "pt-br": ["pt-br"], "pt-pt": ["pt-pt"], ru: ["ru-ru"], sv: ["sv-se"], th: ["th-th"], tr: ["tr-tr"], uk: ["uk-ua"], "zh-cn": ["zh-cn"], "zh-tw": ["zh-tw"] }; + var m, g, f; + function T(e3, t3, i3) { + return i3 ? `Group${e3}_Question${t3}${u.default.variable.nameFollowUpSuffix}` : `Group${e3}_Question${t3}`; + } + function y(e3) { + return !!e3 && !((e3.questionType || e3.type) !== m.npsQuestion || !e3.followUpQuestionText && !e3.explanationPrompt); + } + function S(e3, t3) { + var i3; + let n3; + return (null === (i3 = null == e3 ? void 0 : e3.answerOptions) || void 0 === i3 ? void 0 : i3.length) && t3 && (t3 = null == t3 ? void 0 : t3.toLowerCase(), n3 = o.default.find(e3.answerOptions, (e4) => { + var i4; + return (null === (i4 = e4.id) || void 0 === i4 ? void 0 : i4.toLowerCase()) === t3; + })), n3; + } + function A(e3, t3) { + var i3; + let n3; + if (null === (i3 = null == e3 ? void 0 : e3.questions) || void 0 === i3 ? void 0 : i3.length) for (let i4 = 0; i4 < e3.questions.length && (n3 = S(e3.questions[i4], t3), !n3); i4++) ; + return n3; + } + function N(e3, t3, i3, n3, r3) { + var a2; + if (!t3) return; + let s2; + return i3 && (t3 = null == t3 ? void 0 : t3.toLowerCase()), (null === (a2 = null == e3 ? void 0 : e3.questions) || void 0 === a2 ? void 0 : a2.length) && (s2 = o.default.find(e3.questions, (e4) => { + var o2, a3; + return n3 ? i3 ? (null === (o2 = e4.questionText) || void 0 === o2 ? void 0 : o2.toLowerCase()) === t3 : e4.questionText === t3 : r3 && S(e4, t3) ? e4 : i3 ? (null === (a3 = e4.id) || void 0 === a3 ? void 0 : a3.toLowerCase()) === t3 : e4.id === t3; + })), s2; + } + function O(e3, t3, i3, n3, r3) { + var o2; + let a2; + if (t3 && (null === (o2 = null == e3 ? void 0 : e3.questionGroups) || void 0 === o2 ? void 0 : o2.length)) for (let o3 = 0; o3 < (null == e3 ? void 0 : e3.questionGroups.length) && (a2 = N(e3.questionGroups[o3], t3, i3, n3, r3), !a2); o3++) ; + return a2; + } + function I(e3, t3, i3) { + if (!(null == t3 ? void 0 : t3.errorType) || !e3) return; + e3.rawErrors || (e3.rawErrors = []), e3.rawErrors.push(t3), e3.errors || (e3.errors = {}); + let n3 = e3.errors[t3.errorType]; + n3 || (n3 = { questionGroups: [], questions: [], form: [] }, e3.errors[t3.errorType] = n3), void 0 !== t3.groupIndex ? (n3.questionGroups.push(t3), void 0 !== t3.questionIndex && n3.questions.push(t3), e3.isProblemInFormContents = true) : n3.form.push(t3), i3 && (e3.isProblemInFormContents = true); + } + function v(e3, t3) { + var i3; + if (t3 || (t3 = {}), !o.default.isObject(e3)) return I(t3, { errorType: f.formInvalid }), t3; + if (e3.disabled) return I(t3, { errorType: f.formDisabled }), t3; + let n3 = 0; + return null === (i3 = null == e3 ? void 0 : e3.questionGroups) || void 0 === i3 || i3.forEach((e4, i4) => { + var r3; + null === (r3 = e4.questions) || void 0 === r3 || r3.forEach((e5, r4) => { + var o2; + e5.type === m.multipleChoiceQuestion && (null === (o2 = e5.answerOptions) || void 0 === o2 || o2.forEach((e6, n4) => { + var o3; + (null === (o3 = e6.text) || void 0 === o3 ? void 0 : o3.length) > a.voiceSurveyLimits.answerOptionTextLength.maxLength && I(t3, { groupIndex: i4 + 1, questionIndex: r4 + 1, answerOptionIndex: n4 + 1, errorType: f.answerOptionExceedsMaxLength }); + }), n3++); + }); + }), n3 > a.voiceSurveyLimits.multipleChoiceQuestions.maxLength && I(t3, { errorType: f.multipleChoiceLimitExceeded }, true), t3; + } + t2.surveyFormSlotHandlingTypes = [s.SlotHandlingType.surveyFormQuestionSlot, s.SlotHandlingType.surveyFormQuestionFollowUpSlot], (function(e3) { + e3.multipleChoiceQuestion = "multipleChoiceQuestion", e3.readOnlyQuestion = "readOnlyQuestion", e3.npsQuestion = "npsQuestion", e3.freeTextQuestion = "freeTextQuestion"; + })(m || (t2.SurveyQuestionTypesEnum = m = {})), (function(e3) { + e3.detractor = "detractor", e3.passive = "passive", e3.promoter = "promoter"; + })(g || (t2.NpsAnswersEnum = g = {})), (function(e3) { + e3.answerOptionExceedsMaxLength = "answerOptionExceedsMaxLength", e3.formDisabled = "formDisabled", e3.formInvalid = "formInvalid", e3.formInsufficientViewPermissions = "formInsufficientViewPermissions", e3.multipleChoiceLimitExceeded = "multipleChoiceLimitExceeded"; + })(f || (t2.SurveyFormErrorTypesEnum = f = {})); + }, 56972: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.getKnowledgeBaseDocuments = t2.getKnowledgeBaseDocument = t2.getKnowledgeBases = t2.getKnowledgeBase = void 0; + const n2 = i2(66848), r2 = i2(54632), o = i2(36577), a = i2(66693), s = i2(36019).default, l = { ignoreBadResponse: true }; + t2.getKnowledgeBase = s.request("GET", "{public-api.apps}/api/v2/knowledge/knowledgebases/{id}", n2, l), t2.getKnowledgeBases = s.request("GET", "{public-api.apps}/api/v2/knowledge/knowledgebases", r2, l), t2.getKnowledgeBaseDocument = s.request("GET", "{public-api.apps}/api/v2/knowledge/knowledgebases/{knowledgeId}/documents/{documentId}", o, l), t2.getKnowledgeBaseDocuments = s.request("GET", "{public-api.apps}/api/v2/knowledge/knowledgebases/{knowledgeId}/documents", a, l); + }, 57060: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(20692)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "journeySegmentCollection"; + } + get initialValue() { + return this._initialValue; + } + get displayTypeName() { + return "ArchVariableJourneySegmentCollection"; + } + get isArchVariableJourneySegmentCollection() { + return true; + } + } + t2.default = r2; + }, 57088: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(92661)), r2 = i2(30801); + class o extends n2.default { + constructor(e3) { + super(e3); + } + get _actionTypeId() { + return r2.findScheduleGroupActionType; + } + get displayTypeName() { + return this._scriptingName; + } + get isArchActionFindScheduleGroup() { + return true; + } + get findResult() { + return this._findResult; + } + } + t2.default = o; + }, 57108: (e2, t2, i2) => { + const n2 = i2(50700); + function r2() { + r2.baseConstructor.apply(this, arguments); + } + i2(22124).extend(r2, "BridgeActionMetadataList"), Object.defineProperties(r2.prototype, { entities: { enumerable: true, get: function() { + return this._entities; + }, set: function(e3) { + this._entities = this.reviveArray(e3, n2); + } } }), e2.exports = r2; + }, 57141: (e2) => { + e2.exports = { one: { zero: "1.0", one: "1.1" } }; + }, 57165: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = i2(30801), o = n2.__importDefault(i2(62028)); + class a extends o.default { + constructor(e3) { + super(e3); + } + get _actionTypeId() { + return r2.dialExtensionActionType; + } + get displayTypeName() { + return "ArchMenuDialByExtension"; + } + get actionDialByExtension() { + return this._archAction; + } + get isArchMenuDialByExtension() { + return true; + } + } + t2.default = a; + }, 57247: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importDefault(i2(94225)), o = i2(69078), a = n2.__importDefault(i2(40559)); + class s extends a.default { + constructor(e3) { + super(e3, o.knowledgeBaseDocumentManager); + } + get _globalTypeName() { + return "knowledgeBaseDocumentCollection"; + } + get displayTypeName() { + return "ArchValueKnowledgeBaseDocumentCollection"; + } + get _searchByValueSearchProperty() { + return "name"; + } + addLiteralByKnowledgeBaseDocumentIdAsync(e3, t3) { + return n2.__awaiter(this, void 0, void 0, function* () { + return this._checkItemIsValidLiteralString(this._infoParm("knowledgeBaseDocumentId", "addLiteralByKnowledgeBaseDocumentIdAsync"), e3), this._checkItemIsValidFunction(this._infoParm("callbackFunction", "addLiteralByKnowledgeBaseDocumentIdAsync"), t3, true), this._addLiteralByIdAsync(e3, "knowledge base document").then(() => r2.default.executeCallback(this, "addLiteralByKnowledgeBaseDocumentIdAsync", t3, this)); + }); + } + addLiteralByKnowledgeBaseDocumentNameAsync(e3, t3) { + return n2.__awaiter(this, void 0, void 0, function* () { + this._checkItemIsValidLiteralString(this._infoParm("knowledgeBaseDocumentName", "addLiteralByKnowledgeBaseDocumentNameAsync"), e3), this._checkItemIsValidFunction(this._infoParm("callbackFunction", "addLiteralByKnowledgeBaseDocumentNameAsync"), t3, true); + const i3 = this._getFlowConfiguredKnowledgeBaseId; + return this._addLiteralByValueAsync(e3, "knowledge base document", { knowledgeId: i3 }).then(() => r2.default.executeCallback(this, "addLiteralByKnowledgeBaseDocumentNameAsync", t3, this)); + }); + } + get isArchValueKnowledgeBaseDocumentCollection() { + return true; + } + get _getFlowConfiguredKnowledgeBaseId() { + var e3, t3; + const i3 = null === (t3 = null === (e3 = this.parentFlow) || void 0 === e3 ? void 0 : e3.knowledgeSettings) || void 0 === t3 ? void 0 : t3.knowledgeBaseId; + return i3 || this.logErrorAndThrow("a knowledge base must be set on the flow knowledge settings to set the knowledge base document."), i3; + } + } + t2.default = s; + }, 57310: (e2, t2, i2) => { + "use strict"; + const n2 = i2(31635), r2 = i2(96618), o = n2.__importDefault(i2(92140)), a = n2.__importStar(i2(36781)), s = i2(28562), l = i2(80428), u = i2(32307), d = i2(82319), c = i2(81516), p = i2(49892), _ = i2(99469), h = i2(91911), m = n2.__importDefault(i2(27203)), g = i2(12361), f = i2(42139), T = n2.__importStar(i2(10798)), y = n2.__importDefault(i2(4648)), S = i2(12179), A = i2(12457), N = n2.__importDefault(i2(97891)), O = i2(28803), I = i2(87870), v = i2(54590), C = n2.__importDefault(i2(5730)), b = i2(47957); + class E extends C.default { + constructor(e3, t3) { + super(e3.parentFlow, e3), this._loadModel(t3); + } + static get branchInfo() { + return m.default.successFailureTimeout; + } + get isCallAgenticVirtualAgentAction() { + return true; + } + getDetails() { + return this.agenticVirtualAgentId ? new A.ActionDetails([b.agenticVirtualAgent.agenticVirtualAgent], [this.agenticVirtualAgentName]) : null; + } + static getExitReasonVals(e3) { + const t3 = ["Error", "Escalation", "TriggeredByUser", "Guardrails"]; + return e3 ? t3.map((e4) => `"${e4}"`) : [...t3]; + } + static get managedProperties() { + return [{ createDetails: I.NoteActionProperty.createCreateDetails(b.agenticVirtualAgent.agenticVirtualAgentBillingInfoNote, "info", "agenticVirtualAgentBillingInfoNote", void 0), property: "billingAlert", options: p.ExpressionTypelessOptions.create((e3) => e3.setUiPropertyOrder(0)), yamlOptions: E.createYamlOptions("billingAlert", (e3) => e3.setSkipProperty(true)) }, { label: b.agenticVirtualAgent.agenticVirtualAgent, options: _.ManagedPropertyOptions.create((e3) => e3.setIninTestingField("agenticVirtualAgent-selector").setFeatureConfigName(y.default.botFlowsAgenticVirtualAgentSage).setDropdownPlaceholder(b.dependencies.selectAgenticVirtualAgent).setUiPropertyOrder(10)), property: "agenticVirtualAgentSetting", createDetails: O.NetworkBasedActionProperty.createCreateDetails("agenticVirtualAgentId", "agenticVirtualAgentName", g.agenticVirtualAgentManager, b.agenticVirtualAgent.mustSelectAgenticVirtualAgent, b.agenticVirtualAgent.agenticVirtualAgentNotFound, null, (e3) => e3.action._setAdditionalSearchParams()), yamlOptions: E.createYamlOptions("agenticVirtualAgentSetting", (e3) => e3.setSkipProperty(true)) }, { label: b.generic.version, options: _.ManagedPropertyOptions.create((e3) => e3.setIninTestingField("agentic-virtual-agent-latest-version-selector").setFeatureConfigName(y.default.botFlowsAgenticVirtualAgentSage).setDropdownPlaceholder(b.versions.selectVersion).setUiPropertyOrder(20)), property: "agenticVirtualAgentVersionSetting", createDetails: v.VersionedNetworkBasedActionProperty.createCreateDetails("agenticVirtualAgentVersionId", "agenticVirtualAgentVersion", f.agenticVirtualAgentVersionManager, b.agenticVirtualAgent.mustSelectAgenticVirtualAgentVersion, b.agenticVirtualAgent.agenticVirtualAgentVersionNotFound, "agenticVirtualAgentSetting", (e3) => { + const t3 = e3.action.agenticVirtualAgentSetting.getItem(); + return (null == t3 ? void 0 : t3.version) ? { version: t3.version } : void 0; + }), yamlOptions: E.createYamlOptions("agenticVirtualAgent", (e3) => e3.setSkipProperty(true)) }, { allowSecure: false, dataList: true, label: b.inputOutputList.inputs, property: "inputs", options: p.ExpressionTypelessOptions.create((e3) => e3.setUiPropertyOrder(40).setIsOptional(true)) }, { label: b.askCommon.voiceProcessingPrompt, options: d.ExpressionTypeCommunicationOptions.create((e3) => e3.setAllowSecure(true).setIninTestingField("voiceProcessingPrompt").setAllowModeBuilder(true).setAllowFlowLevelDefault(false).setFlowLevelDefaultSameModes(true).setDefaultToBuilderId(s.builderIds.parts.genericCommunication).setFeatureConfigName(y.default.botFlowsAgenticVirtualAgentSage).setAntiFeatureConfigName(y.default.botFlowsVoiceProcessingPrompt).setIsOptional(true).setUiPropertyOrder(30).setScriptingPropertyName("voiceProcessingPrompt")), supportedFlowTypes: [r2.flowTypes.flowTypeBot], property: "voiceProcessingPrompt", type: l.expressionTypeNames.communication }, { label: b.inputOutputList.outputs, dataList: true, isOutput: true, property: "outputs", options: p.ExpressionTypelessOptions.create((e3) => e3.setAsOutput().setUiPropertyOrder(50).setFeatureConfigName(y.default.botFlowsAgenticVirtualAgentOutputValues)), yamlOptions: E.createYamlOptions("outputs", (e3) => e3.setPropertyName("outputs")) }, { label: b.callBotFlowAction.exitReason, options: c.ExpressionTypeStringOptions.create((e3) => e3.setIninTestingField("exitReason").setFeatureConfigName(y.default.botFlowsAgenticVirtualAgentOutputValues).setUiPropertyGroup(b.callBotFlowAction.executionResults).setDescriptionInfo(b.callBotFlowAction.exitReason, b.agenticVirtualAgent.exitReasonDescription).setDescriptionAdditionalInfoSection({ title: b.callBotFlowAction.exitReasonExamplesTitle, entries: this.getExitReasonVals(true) }).setAsOutput().setIsOptional(true)), property: "exitReason", type: l.expressionTypeNames.string, yamlOptions: E.createYamlOptions("exitReason", (e3) => { + e3.setExportOrder(6); + }) }]; + } + initializeDesignTime() { + var e3; + super.initializeDesignTime(), null === (e3 = this.parentFlow.botFlowSettings) || void 0 === e3 || e3.clearDynamicAgenticVirtualAgentEnabledState(), this.addAutoCleanedUpEventSinkWatch(a.valueChanged, this.agenticVirtualAgentVersionSetting, () => n2.__awaiter(this, void 0, void 0, function* () { + const e4 = this.agenticVirtualAgentVersionSetting.getItem(); + e4 ? this._mergeSchemaProperties(e4) : this._clearSchemaBindings(); + })); + } + getConfiguration(e3, t3) { + var i3, n3, r3, a2, s2, l2, u2, d2, c2, p2, _2, h2, m2, g2, f2, T2; + const y2 = super.getConfiguration(e3, t3); + if (null == t3 ? void 0 : t3.isForFlowYaml) { + const S2 = { callAgenticVirtualAgent: { name: y2.callAgenticVirtualAgent.name } }, A2 = this._getReferencedAgenticVirtualAgentName(); + if (!A2) return o.default.ensureYamlNoneTrue(S2), S2; + S2.callAgenticVirtualAgent.agenticVirtualAgent = {}; + const N2 = S2.callAgenticVirtualAgent.agenticVirtualAgent[A2] = {}; + if (!(null === (n3 = null === (i3 = this.agenticVirtualAgentSetting) || void 0 === i3 ? void 0 : i3.getItem()) || void 0 === n3 ? void 0 : n3.version)) return o.default.ensureYamlNoneTrue(S2), S2; + const O2 = N2.ver_latestPublished = {}; + if (y2.callAgenticVirtualAgent.voiceProcessingPrompt && (O2.voiceProcessingPrompt = y2.callAgenticVirtualAgent.voiceProcessingPrompt), y2.callAgenticVirtualAgent.outputs) { + const e4 = {}; + (null === (a2 = null === (r3 = y2.callAgenticVirtualAgent) || void 0 === r3 ? void 0 : r3.outputs) || void 0 === a2 ? void 0 : a2.success) && (e4.success = y2.callAgenticVirtualAgent.outputs.success), (null === (l2 = null === (s2 = y2.callAgenticVirtualAgent) || void 0 === s2 ? void 0 : s2.outputs) || void 0 === l2 ? void 0 : l2.failure) && (e4.failure = y2.callAgenticVirtualAgent.outputs.failure), (null === (d2 = null === (u2 = y2.callAgenticVirtualAgent) || void 0 === u2 ? void 0 : u2.outputs) || void 0 === d2 ? void 0 : d2.timeout) && (e4.timeout = y2.callAgenticVirtualAgent.outputs.timeout), Object.keys(e4).length > 0 && (S2.callAgenticVirtualAgent.outputs = e4); + } + return (null === (p2 = null === (c2 = this.inputs) || void 0 === c2 ? void 0 : c2.items) || void 0 === p2 ? void 0 : p2.length) || (null === (h2 = null === (_2 = this.outputs) || void 0 === _2 ? void 0 : _2.items) || void 0 === h2 ? void 0 : h2.length) || y2.callAgenticVirtualAgent.exitReason ? ((null === (g2 = null === (m2 = this.inputs) || void 0 === m2 ? void 0 : m2.items) || void 0 === g2 ? void 0 : g2.length) && (O2.inputs = this.inputs.getConfiguration(e3, t3)), (null === (T2 = null === (f2 = this.outputs) || void 0 === f2 ? void 0 : f2.items) || void 0 === T2 ? void 0 : T2.length) && (O2.outputs = this.outputs.getConfiguration(e3, t3)), y2.callAgenticVirtualAgent.exitReason && (O2.exitReason = y2.callAgenticVirtualAgent.exitReason), S2) : (o.default.ensureYamlNoneTrue(O2), S2); + } + return y2; + } + _destroy() { + var e3; + super._destroy(), T.isFeatureAvailable(y.default.botFlowsAgenticVirtualAgentSage) && (this.parentFlow.isDestroyedOrDestroying || null === (e3 = this.parentFlow.botFlowSettings) || void 0 === e3 || e3.clearDynamicAgenticVirtualAgentEnabledState()); + } + _clearSchemaBindings() { + this.inputs && o.default.isFunction(this.inputs.destroyChildren) && this.inputs.destroyChildren(), this.outputs && o.default.isFunction(this.outputs.destroyChildren) && this.outputs.destroyChildren(); + } + _getReferencedAgenticVirtualAgentName() { + var e3; + const t3 = null === (e3 = this.agenticVirtualAgentSetting) || void 0 === e3 ? void 0 : e3.getItem(); + return (null == t3 ? void 0 : t3.name) || this.agenticVirtualAgentName; + } + _mergeSchemaProperties(e3) { + const t3 = (e4, t4) => { + var i3; + const n3 = null !== (i3 = null == e4 ? void 0 : e4.properties) && void 0 !== i3 ? i3 : []; + this.agenticVirtualAgentSetting.configListManager.mergeSchemaProperties(n3, t4); + }; + t3(null == e3 ? void 0 : e3.inputSchema, this.inputs), T.isFeatureAvailable(y.default.botFlowsAgenticVirtualAgentOutputValues) && t3(null == e3 ? void 0 : e3.outputSchema, this.outputs); + } + _setAdditionalSearchParams() { + return { status: h.AiGuideStatus.published }; + } + validate(e3) { + if (super.validate(e3), e3.isDeep) { + const e4 = this.agenticVirtualAgentVersionSetting.getItem(); + e4 && this._mergeSchemaProperties(e4); + } + } + } + E.info = N.default.createActionInfo({ actionClass: E, canBeInTask: true, helpTopic: S.helpTopics.actions.callAgenticVirtualAgent, modelClass: u.CallAgenticVirtualAgentActionModel, name: b.actions.callAgenticVirtualAgent, scriptingName: "ArchActionCallAgenticVirtualAgent", availabilityCallback: (e3, t3, i3) => { + var n3; + return null === (n3 = t3.parentFlow.botFlowSettings) || void 0 === n3 ? void 0 : n3.virtualAgentEnabled; + } }), t2.A = E; + }, 57382: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importDefault(i2(92140)), o = i2(26847), a = n2.__importDefault(i2(11210)), s = n2.__importDefault(i2(78432)); + class l extends a.default { + constructor(e3) { + super(e3); + } + get displayTypeName() { + return "ArchBaseActionWithOutputs"; + } + _getOutputById(e3, t3) { + if (e3 === o.outputIds.fake || this.isMenuChoiceAction) return; + const i3 = r2.default.find(this._coreActionViewModel.branches, (t4) => t4.id === e3); + if (i3) return this.coreFactory.createArchWrapper(i3); + t3 || this.logErrorAndThrow("the core output identifier of '" + e3 + "' is not valid for " + this.logStr); + } + get isArchBaseActionWithOutputs() { + return true; + } + get hasFakeSuccessOutput() { + return false; + } + get hasFakeDisconnectOutput() { + return false; + } + getOutputById(e3) { + if (this.isMenuChoiceAction) return; + const t3 = this._infoParm("output", "getOutputById"); + let i3 = e3; + if (e3 && e3.isArchBranch) { + const t4 = e3; + this.logNote("using the output ID of '" + t4.outputId + "' from the submitted ArchBranch instance."), i3 = t4.outputId; + } + if (this._checkItemIsValidLiteralString(t3, i3), -1 === i3.indexOf("-") && (this._checkItemIsValidLiteralStringEnum(t3, i3, s.default.OUTPUT_IDS_ALL), i3 = o.outputIds[i3]), this.hasFakeSuccessOutput && i3 === s.default.OUTPUT_IDS.success) return; + if (this.hasFakeDisconnectOutput && i3 === s.default.OUTPUT_IDS.disconnect) return; + const n3 = this._getOutputById(i3, true); + return this._checkItem(t3, !n3, "the output id '" + i3 + "' is not valid for " + this.logStr), n3; + } + _getOutputByName(e3, t3, i3) { + if (this.isMenuChoiceAction) return; + const n3 = this._infoParm("output", "getOutputByName"); + let o2 = e3; + if (e3 && e3.isArchBranch) { + const t4 = e3; + this.logNote("using the output name of '" + t4.name + "' from the submitted ArchBranch instance."), o2 = t4.name; + } + this._checkItemIsValidLiteralString(n3, o2), this._checkItemIsValidLiteralBool(this._infoParm("wantInternal", "getOutputByName"), t3, true), t3 = !!t3; + const a2 = r2.default.find(this.outputs, (e4) => !(!e4 || e4.name !== o2 || e4.isDynamic !== t3)); + if (a2) { + if (this.hasFakeSuccessOutput && a2.id === s.default.OUTPUT_IDS.success) return; + if (this.hasFakeDisconnectOutput && a2.id === s.default.OUTPUT_IDS.disconnect) return; + } + return i3 || this._checkItem(n3, !a2, `the output with name '${o2}' and isDynamic setting of ${t3} is not valid for ${this.logStr}`), a2; + } + getOutputByName(e3, t3) { + return this._getOutputByName(e3, t3); + } + getOutputByIndex(e3) { + if (this.isMenuChoiceAction) return; + const t3 = this._infoParm("index", "getOutputByIndex"); + this._checkItemIsValidLiteralIntInRange(t3, e3, 0, this._coreActionViewModel.branches.length); + const i3 = this._coreActionViewModel.branches[e3]; + return i3.id !== o.outputIds.fake ? this.coreFactory.createArchWrapper(i3) : void 0; + } + get outputCount() { + return this.isMenuChoiceAction ? 0 : this._coreActionViewModel.branches.length; + } + get outputs() { + const e3 = []; + if (!this.isMenuChoiceAction) { + const t3 = this.outputCount; + for (let i3 = 0; i3 < t3; i3++) e3.push(this.getOutputByIndex(i3)); + } + return e3; + } + } + t2.default = l; + }, 57391: (e2, t2, i2) => { + const n2 = i2(92140), r2 = i2(79042), o = i2(45421), a = i2(11475), s = i2(72529), l = i2(45214), u = i2(65302), { ParameterInfo: d } = i2(55909), { ParameterValidator: c } = i2(33951), p = i2(71004), _ = i2(14187); + class h extends r2 { + constructor(e3, t3) { + super(t3), c.expectObject(e3, () => d.createConstructorParameter("ClipboardDependencyVariableViewModel", "variableDependencyModel"), true), Object.defineProperties(this, { _dependencyVariableModel: { writable: true } }), e3 && this.loadModel(e3); + } + static create(e3, t3, i3) { + const n3 = new s({ variableJSON: o.cloneToRawJsonObject(e3.model), supportedFlowTypes: i3 }); + return new h(n3, t3); + } + loadModel(e3) { + this._dependencyVariableModel = e3; + } + get isClipboardDependencyVariableViewModel() { + return true; + } + get variableId() { + return this._dependencyVariableModel && this._dependencyVariableModel.variableJSON ? this._dependencyVariableModel.variableJSON.id : void 0; + } + get variableName() { + return this._dependencyVariableModel && this._dependencyVariableModel.variableJSON ? this._dependencyVariableModel.variableJSON.name : void 0; + } + get logHeader() { + return "dependency variable - name :'" + this.variableName + "' (ID: " + this.variableId + ")"; + } + get rawJson() { + return this._dependencyVariableModel ? this._dependencyVariableModel.variableJSON : void 0; + } + get dependencyModel() { + return this._dependencyVariableModel; + } + get supportedFlowTypes() { + return this._dependencyVariableModel ? this._dependencyVariableModel.supportedFlowTypes : void 0; + } + shouldPaste(e3) { + return !!n2.isUndefined(this.supportedFlowTypes) || n2.contains(this.supportedFlowTypes, e3.destFlowViewModel.type); + } + applySupportedFlowTypes(e3) { + n2.isUndefined(e3) || null === e3 || (c.expectArray(e3, () => d.createFunctionParameter(this.className, "applysupportedFlowTypes", "supportedFlowTypes"), true), this._dependencyVariableModel && (this._dependencyVariableModel.supportedFlowTypes = e3)); + } + _performDestroy() { + try { + this._dependencyVariableModel = void 0; + } catch (e3) { + this.logException(e3, "Exception encountered cleaning up clipboard content."); + } + } + _performPaste(e3) { + let t3 = this.createClipboardResultSuccess(); + const i3 = this.variableName, r3 = "'" + i3 + "' (ID: '" + this.variableId + "')"; + this.pushLogHeader(this.logHeader); + try { + this.log("Processing clipboard dependency variable begin."); + const t4 = this.cloneToRawJsonObject(this.rawJson), o2 = l.prototype.reviveItem(t4, a); + this.pasteFixVariable(e3, o2); + const s2 = e3.destViewModel.isMenu || e3.destViewModel.isMenuChoice || _.getScope(this.variableName) === _.scopes.flow || _.getScope(this.variableName) === _.scopes.common ? e3.destFlowViewModel : e3.destViewModelTaskOrState; + if (s2.isTask || s2.isState || s2.isFlowViewModel || s2.isBotState) { + const e4 = s2.isBotState ? _.scopes.bot : s2.defaultVariableScope, t5 = _.setScope(e4, o2.name); + i3.toLowerCase() !== t5.toLowerCase() && (this.log("Changing dependency model scope from " + r3 + " to " + e4 + " scoped prior to paste variable model processing. New name '" + t5 + "'."), o2.name = t5); + } + const d2 = o2.name, c2 = this.removeNumericSuffixAndSpace(d2); + let h2, m = false; + for (; !m; ) { + n2.isUndefined(h2) ? h2 = 0 : (h2++, o2.name = c2 + h2, d2 === o2.name && (h2++, o2.name = c2 + h2), this.log("Iterating. Updated paste variable model name to '" + o2.name + "' to see if it works.")), this.log("Looking for existing variable named '" + o2.name + "'"); + let t5 = true; + const a2 = e3.destFlowVariableGroup.getVariableByName(o2.name, s2); + if (a2) { + const i4 = "Found existing variable named " + this._getNameAndIdStr(a2) + ". "; + let n3; + o2.typeIdentifier && (n3 = u.resolveType(e3.destFlowViewModel, o2.typeIdentifier)), n3 || (n3 = u.getTypeFromIcwsType(e3.destFlowViewModel, o2.__type, o2.isCollection)), n3 && (m = a2.type.isMatch(n3)), m ? !!o2.isSecure !== a2.isSecure ? (this.log(i4 + "The existing variable's isSecure setting '" + a2.isSecure + "' is not a match for the clipboard variable isSecure value of '" + o2.isSecure + "'. Will continue looking."), m = false) : (this.log(i4 + "The data type and needed isSecure setting is also a match. :) Clipboard content that that referenced " + r3 + " from the initial copy will reference " + this._getNameAndIdStr(a2) + "."), e3.setOldIdToNewIdMapping(o2.id, a2.id)) : this.log(i4 + "The existing variable's the data type '" + a2.type.dataType + "' is not a match for the clipboard variable type '" + n3.dataType + "'. Will continue looking."), t5 = false; + } else this.log("Paste destination variable container did not have existing variable named '" + o2.name + "'. Will add a new variable there."); + if (t5) { + const t6 = o2.id; + o2.pasteReIdOrRename(e3.clipboardObject); + const i4 = p.createVariable(o2, s2); + n2.isFunction(s2.addVariable) ? s2.addVariable(i4) : n2.isArray(s2.variables) && (s2.variables.push(i4), s2.model && n2.isArray(s2.model.variables) && s2.model.variables.push(i4.model)), i4.initializeDesignTime(), e3.additionalInfo && e3.additionalInfo.addNotableVariable(i4), this.log("Added variable " + this._getNameAndIdStr(i4) + " of type '" + i4.type.dataType + "'. Clipboard content that referenced clipboard variable ID '" + t6 + "' will reference this new variable."), m = true; + } + m && i3.toLowerCase() !== o2.name.toLowerCase() && (e3.setOldVariableNameToNewVariableNameMapping(i3, o2.name), e3.additionalInfo && e3.additionalInfo.addNotableVarNameMapping(i3, o2.name)); + } + } catch (e4) { + t3 = this.createClipboardResultFailurePasteException(e4, "An error occurred during dependency variable paste processing."); + } finally { + this.popLogHeader(), this.log("Processing clipboard dependency variable end."); + } + return t3; + } + } + e2.exports = h; + }, 57406: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.partition = void 0; + var n2 = i2(14120), r2 = i2(85934), o = i2(19724); + t2.partition = function(e3, t3, i3) { + return [r2.filter(t3, i3)(o.innerFrom(e3)), r2.filter(n2.not(t3, i3))(o.innerFrom(e3))]; + }; + }, 57416: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.GrammarViewModel = void 0; + const n2 = i2(18638), r2 = i2(82632); + t2.GrammarViewModel = class { + constructor(e3) { + this._model = e3; + } + get className() { + return "GrammarViewModel"; + } + get isBaseClass() { + return false; + } + get id() { + return this._model.id; + } + get name() { + return this._model.name; + } + set name(e3) { + this._model.name = e3; + } + get label() { + return this.name; + } + get description() { + return this._model.description; + } + set description(e3) { + this._model.description = e3; + } + get languages() { + return this._model.languages; + } + getLanguagesString() { + return this.languages.map((e3) => e3.language).join(", "); + } + addLanguage(e3) { + this._model.languages || (this._model._languages = []), this._model.languages.push(e3); + } + get canAdd() { + return n2.permissionServiceHelper.canAddGrammars(); + } + get canDelete() { + return n2.permissionServiceHelper.canDeleteGrammars(); + } + get canEdit() { + return n2.permissionServiceHelper.canEditGrammars(); + } + get canView() { + return n2.permissionServiceHelper.canViewGrammars(); + } + static get nameMaxLength() { + return r2.grammarLimits.name.maxLength; + } + static get descriptionMaxLength() { + return r2.grammarLimits.description.maxLength; + } + }; + }, 57443: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importStar(i2(10798)), o = n2.__importDefault(i2(77862)), a = n2.__importDefault(i2(4648)), s = i2(12179), l = n2.__importDefault(i2(27377)), u = i2(47957), d = "slotSettings"; + class c extends l.default { + get id() { + return d; + } + static get id() { + return d; + } + get showInFlowSize() { + return false; + } + get className() { + return "SlotSettingsViewModel"; + } + getDisplayName() { + return u.clearSlot.slotsLabel; + } + get isSlotSettingNode() { + return true; + } + get nodeGuxIcon() { + return "fa/bullseye-regular"; + } + get helpTopic() { + return s.helpTopics.treeNodes.slotTypeSettings; + } + get workbenchArchNodeName() { + return o.default.nodeIds.slots; + } + get useLabelBadge() { + return this.isLlmSlotEnabled; + } + get isLlmSlotEnabled() { + return this.virtualAgentEnabled && r2.isFeatureAvailable(a.default.botFlowsLLMPoweredSlot); + } + _destroy() { + super._destroy(); + } + } + t2.default = c; + }, 57467: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.digitalBotConnectorIntegrationManager = t2.DigitalBotConnectorIntegrationManager = void 0; + const n2 = i2(31635), r2 = n2.__importStar(i2(1360)), o = n2.__importStar(i2(24032)), a = n2.__importStar(i2(32236)), s = n2.__importDefault(i2(47532)), l = i2(30801), u = i2(81801), d = i2(37707), c = i2(97081), p = i2(47957), _ = i2(27862); + class h extends s.default { + get requiredAuth() { + return u.externalAuthorizations.authStrings.integrationView; + } + get dependencyType() { + return _.DigitalBotConnectorIntegration; + } + constructor() { + super(), this.topic = o.getTopic("DigitalBotConnectorIntegrationManager"), this.apiCallList = a.getDigitalBotConnectorIntegrations, this.apiCallSingle = a.getIntegration, this._rawServerCache = {}, this.actionPropertyForUsageSearch = "botIntegration", this.actionsForUsageSearch = [l.digitalBotConnectorActionType], this.className = "DigitalBotConnectorIntegrationManager", this.defaultMatchingStyle = r2.exactMatch, this.dependencyContext = p.botConnector.digitalBotConnectorIntegration, this.searchField = "name", this.securityError = true, this.suppressSearch = true, this.shouldRequestAllPages = true, this.defaultPageSize = 100, this.uiMetadataSectionName = "digitalBotIntegration", this._initialize(); + } + _createItemViewModel(e3) { + return new c.IntegrationViewModel(e3); + } + get _networkModel() { + return d.Integration; + } + } + t2.DigitalBotConnectorIntegrationManager = h, t2.digitalBotConnectorIntegrationManager = new h(); + }, 57498: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(81574)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "shortMessage"; + } + get id() { + } + get type() { + } + get attachments() { + } + get body() { + } + get bodyType() { + } + get senderAddress() { + } + get senderAddressInfo() { + } + get targetAddresses() { + } + get targetAddressesInfo() { + } + get dateTimeUtc() { + } + get referenceId() { + } + get stickers() { + } + get socialVisibility() { + } + get displayTypeName() { + return "ArchValueShortMessage"; + } + get isArchValueShortMessage() { + return true; + } + } + t2.default = r2; + }, 57505: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(20692)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "emailAddressCollection"; + } + get displayTypeName() { + return "ArchVariableEmailAddressCollection"; + } + get initialValue() { + return this._initialValue; + } + get isArchVariableEmailAddressCollection() { + return true; + } + } + t2.default = r2; + }, 57597: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(20692)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "dateCollection"; + } + get displayTypeName() { + return "ArchVariableDateCollection"; + } + get initialValue() { + return this._initialValue; + } + get isArchVariableDateCollection() { + return true; + } + } + t2.default = r2; + }, 57606: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(92140)), r2 = i2(55299), o = i2(3916); + class a extends r2.BaseClass { + constructor(e3, t3) { + super(), this.model = e3, this.properties = o.createSchemaPropertyList(this.model.properties, this.model.required, this.model.definitions, t3); + } + get className() { + return "SchemaViewModel"; + } + get description() { + return this.model.description; + } + getConfiguration() { + const e3 = {}; + return n2.default.each(this.properties, function(t3) { + e3[t3.name] = t3.getConfiguration(); + }), { schema: this.schemaLink, title: this.model.title, description: this.model.description, required: this.model.required, type: this.model.type, properties: e3 }; + } + getProperty(e3, t3) { + const i3 = t3 ? { name: e3 } : { id: e3 }; + return n2.default.findWhere(this.properties, i3); + } + get hasArrayPropertyWithNoType() { + return n2.default.any(this.properties, (e3) => e3.hasArrayWithNoType); + } + get isSchemaViewModel() { + return true; + } + get name() { + return this.model.name; + } + get schemaLink() { + return this.model.$schema || this.model.schema; + } + get title() { + return this.model.title; + } + get type() { + return this.model.type; + } + setErrorTypeAllowableValues(e3) { + this.model.properties.errorType.allowableValues = e3; + } + } + t2.default = a; + }, 57612: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = i2(96618), o = n2.__importDefault(i2(25498)); + class a extends o.default { + constructor(e3) { + super(e3); + } + get _flowType() { + return r2.flowTypes.flowTypeInboundCall; + } + get displayTypeName() { + return "ArchFlowInboundCall"; + } + get isArchFlowInboundCall() { + return true; + } + } + t2.default = a; + }, 57632: (e2, t2, i2) => { + function n2() { + Object.defineProperty(this, "isBranchItem", { value: true, enumerable: false }), this.label = void 0, this.localizedLabel = void 0, this.outputId = void 0, n2.baseConstructor.apply(this, arguments); + } + i2(45214).extend(n2, "BranchItem"), Object.defineProperties(n2.prototype, { getConfiguration: { value: function(e3, t3) { + return t3?.isForFlowYaml ? { outputPath: { name: this.label } } : this; + } }, pasteResolveOldToNewValues: { value: function(e3) { + } }, pasteReIdOrRename: { value: function(e3) { + this.outputId = e3.pasteResolveOldIdToNewId(this.outputId); + } }, displayLabel: { get: function() { + return this.localizedLabel ? this.localizedLabel : this.label; + } } }), e2.exports = n2; + }, 57653: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.CodeParseItemMessage = void 0; + const n2 = i2(31635), r2 = i2(17604), o = n2.__importDefault(i2(92140)), a = n2.__importStar(i2(69453)), s = n2.__importDefault(i2(73198)), l = n2.__importStar(i2(66381)), u = i2(82632), d = i2(17666), c = i2(47957); + class p { + constructor() { + this._messageParts = [], this._suggestions = [], this._facetLabelValues = []; + } + static _createParseItemMessageInfo(e3, t3) { + const i3 = new p().addWhatInvalidDataType(t3); + return i3._type = e3, i3; + } + static createExtraValue() { + return p._createParseItemMessageInfo(d.CodeParseItemMessageType.valueExtra).addWhat(c.codeEditor.parseErrors.extraValueErrorMessage); + } + static createMissingValue(e3) { + const t3 = p._createParseItemMessageInfo(d.CodeParseItemMessageType.valueMissing); + return t3.addWhat(e3), t3; + } + static createInvalidTypeValue(e3) { + return p._createParseItemMessageInfo(d.CodeParseItemMessageType.invalidTypeValue, e3); + } + static createTypesIncompatible(e3, t3) { + const i3 = p._createParseItemMessageInfo(d.CodeParseItemMessageType.typeIncompatible); + return i3.addWhat(c.codeEditor.types.incompatibleType), i3.addWhat(c.codeEditor.types.typeIncompatibilityError, [e3, t3]), i3; + } + static createIncompatibleTypesValueAssignment(e3, t3, i3) { + const n3 = p._createParseItemMessageInfo(d.CodeParseItemMessageType.typeIncompatibleAssignment); + return n3.addWhat(c.codeEditor.types.incompatibleTypeAssignment), n3.addWhat(c.codeEditor.types.typeIncompatibilityAssignmentError, [e3, t3, i3]), n3; + } + static createArchitectExpressionInfo(e3) { + const t3 = p._createParseItemMessageInfo(d.CodeParseItemMessageType.architectExpression); + return t3.addWhat(e3), t3; + } + static createArchitectExpressionUsageUnavailable(e3) { + const t3 = p._createParseItemMessageInfo(d.CodeParseItemMessageType.architectExpressionUnavailable); + return t3.addWhat(e3 ? c.codeEditor.architectExpressionsUnavailableForVariableInitialValue : c.codeEditor.architectExpressionsUnavailable), t3; + } + static createArchitectLiteralInfo(e3) { + const t3 = p._createParseItemMessageInfo(d.CodeParseItemMessageType.architectLiteral); + return t3.addWhat(e3), t3; + } + static createArrayLengthTooSmall(e3, t3, i3) { + const n3 = p._createParseItemMessageInfo(d.CodeParseItemMessageType.arrayLengthTooSmall); + return n3.addWhat(c.codeEditor.parseErrors.arrayLengthTooSmall, [e3.toString()]), n3.addFacetsMinMaxItems(t3, i3), n3; + } + static createArrayLengthTooBig(e3, t3, i3) { + const n3 = p._createParseItemMessageInfo(d.CodeParseItemMessageType.arrayLengthTooBig); + return n3.addWhat(c.codeEditor.parseErrors.arrayLengthTooBig, [e3.toString()]), n3.addFacetsMinMaxItems(t3, i3), n3; + } + static createPropertyNotValidForType(e3, t3) { + const i3 = p._createParseItemMessageInfo(d.CodeParseItemMessageType.propertyNotValidForType); + return i3.addWhat(c.codeEditor.properties.propertyNameNotValidForType, [e3, t3]), i3; + } + static createPropertyIsReadOnly(e3) { + const t3 = p._createParseItemMessageInfo(d.CodeParseItemMessageType.propertyNotValidForType); + return t3.addWhat(c.codeEditor.properties.propertyIsReadOnly, [e3]), t3; + } + static createDuplicateProperty(e3) { + const t3 = p._createParseItemMessageInfo(d.CodeParseItemMessageType.duplicateProperty); + return t3.addWhat(c.codeEditor.properties.propertyIsDuplicated, [e3]), t3; + } + static createInvalidSyntax() { + const e3 = p._createParseItemMessageInfo(d.CodeParseItemMessageType.invalidSyntax); + return e3.addWhat(c.codeEditor.parseErrors.invalidSyntax), e3; + } + static createInvalidIndent(e3, t3) { + const i3 = p._createParseItemMessageInfo(d.CodeParseItemMessageType.invalidIndent); + return i3.addWhat(a.codeEditor.parseErrors.generic.invalidIndent), void 0 !== t3 ? i3.addWhat(a.codeEditor.parseErrors.generic.invalidIndentPosWithExpected, [e3.toString(), t3.toString()]) : i3.addWhat(a.codeEditor.parseErrors.generic.invalidIndentPos, [e3.toString()]), i3; + } + static createRequiredPropertiesMissing(e3, t3, i3) { + const n3 = p._createParseItemMessageInfo(d.CodeParseItemMessageType.requiredPropertiesMissing); + return 1 === t3.length ? n3.addWhat(c.codeEditor.properties.missingRequiredPropertySingular, [t3[0], i3]) : n3.addWhat(c.codeEditor.properties.missingRequiredPropertiesPlural, [l.getListDisplayString(t3), i3]), n3; + } + static createStringLengthTooSmall(e3, t3, i3) { + const n3 = p._createParseItemMessageInfo(d.CodeParseItemMessageType.stringLengthTooSmall); + return n3.addWhat(c.codeEditor.parseErrors.stringLengthTooSmall, [e3.toString()]), n3.addFacetsMinMaxLength(t3, i3), n3; + } + static createStringLengthTooBig(e3, t3, i3) { + const n3 = p._createParseItemMessageInfo(d.CodeParseItemMessageType.stringLengthTooBig); + return n3.addWhat(c.codeEditor.parseErrors.stringLengthTooBig, [e3.toString()]), n3.addFacetsMinMaxLength(t3, i3), n3; + } + static createTokenDuplicate(e3, t3) { + return p._createParseItemMessageInfo(d.CodeParseItemMessageType.tokenDuplicate, t3).addWhat(c.codeEditor.parseErrors.tokens.tokenDuplicate, [e3]); + } + static createTokenInvalid(e3, t3) { + return p._createParseItemMessageInfo(d.CodeParseItemMessageType.tokenInvalid, t3).addWhat(c.codeEditor.parseErrors.tokens.tokenInvalid, [e3]); + } + static createTokenInvalidIsNotType(e3, t3) { + return p._createParseItemMessageInfo(d.CodeParseItemMessageType.tokenInvalidType).addWhat(c.codeEditor.types.valueNotValidForTypeGeneric, [e3, t3]); + } + static createTokenMissing(e3, t3) { + return p._createParseItemMessageInfo(d.CodeParseItemMessageType.tokenMissing, t3).addWhat(c.codeEditor.parseErrors.tokens.tokenMissing, [e3]); + } + static createTokenUnexpected(e3) { + return p._createParseItemMessageInfo(d.CodeParseItemMessageType.tokenUnexpected).addWhat(c.codeEditor.parseErrors.tokens.tokenUnexpected, [e3]); + } + static createTokenUnexpectedAfterValue(e3) { + return p._createParseItemMessageInfo(d.CodeParseItemMessageType.tokenAfterEndOfValue).addWhat(c.codeEditor.parseErrors.tokenAfterEndOfValue, [e3]); + } + static createTotalTextLengthTooBig(e3) { + return p._createParseItemMessageInfo(d.CodeParseItemMessageType.totalTextLengthTooBig).addWhat(c.expression.expressionLengthToLong, [e3.toString(), s.default.maxExpressionTextLength.toString()]); + } + static createUnnecessarySeparator(e3) { + return p._createParseItemMessageInfo(d.CodeParseItemMessageType.unnecessarySeparator).addWhat(c.codeEditor.parseErrors.separatorIsUnnecessary, [e3]); + } + static createValueIncomplete(e3) { + return p._createParseItemMessageInfo(d.CodeParseItemMessageType.valueIncomplete, e3).addWhat(c.codeEditor.parseErrors.valueIncomplete); + } + static createValueNotInAllowableValues(e3, t3) { + const i3 = p._createParseItemMessageInfo(d.CodeParseItemMessageType.valueNotInAllowableValues); + return i3.addWhat(c.codeEditor.types.valueNotAllowed, [e3]), i3.addFacetAllowableValues(t3), i3; + } + static createValueTooBig(e3, t3, i3, n3, r3) { + const o2 = p._createParseItemMessageInfo(d.CodeParseItemMessageType.valueTooBig); + return void 0 !== e3 ? o2.addWhat(c.codeEditor.types.codeEditorValueTooLarge, [e3.toString()]) : o2.addWhat(c.codeEditor.types.codeEditorValueTooLargeNoValue), o2.addFacetsMinMaxDetailed(t3, i3, n3, r3), o2; + } + static createValueStrTooBig(e3, t3, i3, n3, r3) { + const o2 = p._createParseItemMessageInfo(d.CodeParseItemMessageType.valueTooBig); + return void 0 !== e3 ? o2.addWhat(c.codeEditor.types.codeEditorValueTooLarge, [e3]) : o2.addWhat(c.codeEditor.types.codeEditorValueTooLargeNoValue), o2.addFacetsMinMaxDetailed(t3, i3, n3, r3), o2; + } + static createValueStrTooSmall(e3, t3, i3, n3, r3) { + const o2 = p._createParseItemMessageInfo(d.CodeParseItemMessageType.valueTooSmall); + return void 0 !== e3 ? o2.addWhat(c.codeEditor.types.codeEditorValueTooSmall, [e3]) : o2.addWhat(c.codeEditor.types.codeEditorValueTooSmallNoValue), o2.addFacetsMinMaxDetailed(t3, i3, n3, r3), o2; + } + static createValueTooSmall(e3, t3, i3, n3, r3) { + const o2 = p._createParseItemMessageInfo(d.CodeParseItemMessageType.valueTooSmall); + return void 0 !== e3 ? o2.addWhat(c.codeEditor.types.codeEditorValueTooSmall, [e3.toString()]) : o2.addWhat(c.codeEditor.types.codeEditorValueTooSmallNoValue), o2.addFacetsMinMaxDetailed(t3, i3, n3, r3), o2; + } + addWhat(e3, t3) { + if (!(null == t3 ? void 0 : t3.length)) return this._messageParts.push({ rawText: e3 }), this; + const i3 = { rawText: "", displayText: "" }; + let n3 = false; + if (t3.forEach((e4) => { + (null == e4 ? void 0 : e4.length) > u.propertyLimits.name.maxLength && (n3 = true); + }), n3) { + const n4 = []; + t3.forEach((e4) => { + n4.push(l.truncateText(e4, u.propertyLimits.name.maxLength)); + }), i3.displayText = (0, r2.vsprintf)(e3, n4); + } + return i3.rawText = (0, r2.vsprintf)(e3, t3), this._messageParts.push(i3), this; + } + addWhatInvalidDataType(e3) { + return e3 && this.addWhat(c.codeEditor.types.invalidTypeValue, [e3]), this; + } + addSuggestion(e3) { + return e3 && this._suggestions.push(e3), this; + } + addSuggestions(e3) { + return (null == e3 ? void 0 : e3.length) > 0 && (this._suggestions = this._suggestions.concat(e3)), this; + } + _generateWhatMessage(e3) { + let t3; + if (this._facetLabelValues) { + const e4 = []; + o.default.each(this._facetLabelValues, (t4) => { + e4.push(t4.operator ? `${t4.facetLabel}: ${t4.operator} ${t4.facetVal}` : `${t4.facetLabel}: ${t4.facetVal}`); + }), e4.length > 0 && (t3 = `( ${e4.join(", ")} )`); + } + const i3 = this._messageParts.map((t4) => t4.displayText && e3 ? t4.displayText : t4.rawText); + return (null == t3 ? void 0 : t3.length) > 0 ? i3.concat(t3).join(" ") : i3.join(" "); + } + get message() { + return this._generateWhatMessage(); + } + get displayMessage() { + return this._generateWhatMessage(true); + } + get facetInfo() { + return this._facetInfo; + } + setFacetInfo(e3) { + return this._facetInfo = e3, this; + } + addFacetAllowableValues(e3) { + return (null == e3 ? void 0 : e3.length) && this._facetLabelValues.push({ facetLabel: c.codeEditor.parseErrors.facets.allowableValuesFacetLabel, facetVal: l.getListDisplayString(e3, false, false, true) }), this; + } + addFacetsMinMax(e3, t3) { + return this.addFacetsMinMaxDetailed(e3, void 0, t3, void 0); + } + addFacetsMinMaxItems(e3, t3) { + void 0 !== e3 && this._facetLabelValues.push({ facetLabel: c.codeEditor.parseErrors.facets.minItemsFacetLabel, facetVal: e3 }), void 0 !== t3 && this._facetLabelValues.push({ facetLabel: c.codeEditor.parseErrors.facets.maxItemsFacetLabel, facetVal: t3 }); + } + addFacetsMinMaxLength(e3, t3) { + void 0 !== e3 && this._facetLabelValues.push({ facetLabel: c.codeEditor.parseErrors.facets.minLengthFacetLabel, facetVal: e3 }), void 0 !== t3 && this._facetLabelValues.push({ facetLabel: c.codeEditor.parseErrors.facets.maxLengthFacetLabel, facetVal: t3 }); + } + addFacetsMinMaxDetailed(e3, t3, i3, n3) { + if (void 0 !== e3) switch (t3) { + case true: + this._facetLabelValues.push({ facetLabel: c.codeEditor.parseErrors.facets.minFacetLabel, facetVal: e3, operator: ">=" }); + break; + case false: + this._facetLabelValues.push({ facetLabel: c.codeEditor.parseErrors.facets.minFacetLabel, facetVal: e3, operator: ">" }); + break; + default: + this._facetLabelValues.push({ facetLabel: c.codeEditor.parseErrors.facets.minFacetLabel, facetVal: e3 }); + } + if (void 0 !== i3) switch (n3) { + case true: + this._facetLabelValues.push({ facetLabel: c.codeEditor.parseErrors.facets.maxFacetLabel, facetVal: i3, operator: "<=" }); + break; + case false: + this._facetLabelValues.push({ facetLabel: c.codeEditor.parseErrors.facets.maxFacetLabel, facetVal: i3, operator: "<" }); + break; + default: + this._facetLabelValues.push({ facetLabel: c.codeEditor.parseErrors.facets.maxFacetLabel, facetVal: i3 }); + } + return this; + } + get suggestions() { + return this._suggestions; + } + } + t2.CodeParseItemMessage = p; + }, 57731: (e2, t2, i2) => { + function n2(e3, t3, i3, n3) { + Object.defineProperties(this, { name: { value: t3 }, _displayName: { value: i3 }, _pluralDisplayName: { value: n3 } }), this.value = e3; + } + i2(45214).extend(n2, "BaseEnum"), Object.defineProperties(n2.prototype, { toJSON: { value: function() { + return this.name; + } }, toString: { value: function() { + return this.name; + } }, valueOf: { value: function() { + return this.value; + } }, displayName: { get: function() { + return this._displayName || this.name; + } }, pluralDisplayName: { get: function() { + return this._pluralDisplayName; + } }, isEnum: { get: function() { + return true; + } }, label: { get: function() { + return this.displayName; + } }, setName: { value: function(e3) { + this.name = e3; + } } }), e2.exports = n2; + }, 57855: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(81574)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "workitemEventRule"; + } + get name() { + } + get displayTypeName() { + return "ArchValueWorkitemEventRule"; + } + get isArchValueWorkitemEventRule() { + return true; + } + } + t2.default = r2; + }, 57905: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.FlowSize = t2.commonModulesBucketId = t2.containersBucketId = t2.settingsGroupId = t2.settingsBucketId = t2.systemBucketId = void 0; + const n2 = i2(31635), r2 = n2.__importDefault(i2(92140)), o = i2(69453), a = i2(69212), s = n2.__importStar(i2(12847)), l = i2(29269), u = i2(47957); + t2.systemBucketId = "__SYSTEM__", t2.settingsBucketId = "__SETTINGS__", t2.settingsGroupId = "__SETTINGS_GROUP__", t2.containersBucketId = "__CONTAINERS__", t2.commonModulesBucketId = "__COMMON_MODULES__", t2.FlowSize = class { + constructor(e3, t3, i3, n3) { + this._processState = { root: null, hierarchy: [], itemIdMap: {}, visualizationCurrentId: 1 }, this.iterateFlow(e3, t3, i3, n3), this.postProcess(); + } + pushItemWithChildren(e3, t3, i3, n3, r3) { + return this._pushItem(e3, t3, i3, n3, true, r3); + } + pushItemWithoutChildren(e3, t3, i3, n3, r3) { + return this._pushItem(e3, t3, i3, n3, false, r3); + } + _pushItem(e3, t3, i3, n3, r3, o2) { + const a2 = this._processState.hierarchy[this._processState.hierarchy.length - 1], s2 = { __type: null == n3 ? void 0 : n3.__type, type: null == n3 ? void 0 : n3.__type, flowConfigId: t3, id: this._processState.visualizationCurrentId.toString(), name: i3, children: [], json: n3, jsonContainsChildren: r3, configParentId: null == a2 ? void 0 : a2.flowConfigId, parentId: null == a2 ? void 0 : a2.id, trackingId: null == n3 ? void 0 : n3.trackingId, classification: e3 }; + this._processState.visualizationCurrentId = this._processState.visualizationCurrentId + 1, a2 ? a2.children.push(s2) : this._processState.root = s2, this._processState.itemIdMap[t3] = s2, this._processState.hierarchy.push(s2); + try { + o2 && o2(s2); + } catch (e4) { + this.throwError(e4); + } finally { + this.popItem(); + } + return s2; + } + pushItemBucket(e3, t3, i3) { + return this.pushItemWithoutChildren(void 0, e3, t3, void 0, i3); + } + popItem() { + return this._processState.hierarchy.pop(); + } + _sizeYourself(e3, i3) { + let n3 = 0; + if (e3.children.length && e3.children.forEach((e4) => { + this._sizeYourself(e4, false), n3 += e4.totalSize; + }), e3.json) if (i3) { + e3.size = e3.totalSize = this.sizeJson(e3.json); + const i4 = e3.totalSize - n3, r3 = e3.children.find((e4) => e4.flowConfigId === t2.settingsBucketId); + if (!r3) throw "can not find settings bucket"; + r3.children.push({ __type: void 0, type: void 0, flowConfigId: t2.systemBucketId, id: (this._processState.visualizationCurrentId++).toString(), name: u.user.system, children: [], json: void 0, jsonContainsChildren: true, configParentId: r3.flowConfigId, parentId: r3.id, trackingId: void 0, totalSize: i4, size: i4, classification: a.VisualizationItemClassification.settings }); + } else e3.jsonContainsChildren ? (e3.totalSize = this.sizeJson(e3.json), e3.size = e3.totalSize - n3) : (e3.size = this.sizeJson(e3.json), e3.totalSize = e3.size + n3); + else e3.totalSize = n3, e3.size = 0; + } + postProcess() { + this._sizeYourself(this._processState.root, true); + } + dump(e3, t3, i3) { + if (!e3) return; + t3 || (t3 = "", console.log("------------- Flow Size Info -------------")); + let n3 = ""; + if (void 0 !== i3) { + for (n3 = i3.toString(); n3.length < 1; ) n3 = "0" + n3; + n3 = `[${n3}]`; + } + console.log(`${t3}${n3} name: ${e3.name} ( type: ${e3.__type}, id: ${e3.flowConfigId} )`), console.log(`${t3} totalSize: ${e3.totalSize}`), console.log(`${t3} itemSize: ${e3.size}`); + let o2 = 0; + r2.default.each(e3.children, (e4) => { + this.dump(e4, t3 + " ", o2++); + }); + } + throwError(e3) { + throw s.error(e3), e3; + } + jsonToString(e3) { + if (!r2.default.isNullOrUndefined(e3)) return JSON.stringify(e3); + } + sizeJson(e3) { + const t3 = this.jsonToString(e3); + return r2.default.isString(t3) ? (0, l.utf8EncodedSizeCalc)(t3) : 0; + } + findItemWithId(e3, t3) { + return r2.default.find(e3, (e4) => t3 === e4.id); + } + findActionWithId(e3, t3) { + if (!t3) return; + const i3 = this.findItemWithId(e3, t3); + return i3 || this.throwError(`unable to find action with id '${t3}'`), i3; + } + iterateStartingAction(e3, t3) { + if (!t3) return; + let i3 = this.findActionWithId(e3, t3); + for (; i3; ) this.pushItemWithChildren(a.VisualizationItemClassification.archAction, i3.id, i3.name, i3, () => { + const t4 = []; + i3.paths && t4.push(...i3.paths), i3.path && t4.push(i3.path), r2.default.each(t4, (t5) => { + t5.nextActionId && this.iterateStartingAction(e3, t5.nextActionId); + }); + }), i3 = i3.nextAction ? this.findActionWithId(e3, i3.nextAction) : void 0; + } + iterateFlowSequenceItem(e3) { + let t3; + "Task" === e3.__type || "CommonModuleTask" === e3.__type || "LoopTask" === e3.__type ? t3 = a.VisualizationItemClassification.archTask : "Menu" === e3.__type ? t3 = a.VisualizationItemClassification.archMenu : "State" === e3.__type || "BotState" === e3.__type ? t3 = a.VisualizationItemClassification.archState : this.throwError(`unknown type: ${e3.__type}`), this.pushItemWithChildren(t3, e3.id, e3.name, e3, () => { + var t4, i3, n3; + if ((null === (t4 = e3.variables) || void 0 === t4 ? void 0 : t4.length) && this.pushItemWithoutChildren(a.VisualizationItemClassification.data, e3.id + "-data", void 0, e3.variables), null === (i3 = e3.actionList) || void 0 === i3 ? void 0 : i3.length) { + const t5 = e3.startAction; + t5 || this.throwError(`do not have a start action for sequence item '${e3.id}`), this.iterateStartingAction(e3.actionList, t5); + } else (null === (n3 = e3.menuChoiceList) || void 0 === n3 ? void 0 : n3.length) && e3.menuChoiceList.forEach((e4) => { + this.pushItemWithoutChildren(a.VisualizationItemClassification.archAction, e4.id, e4.name, e4); + }); + }); + } + iterateFlow(e3, i3, n3, l2) { + return this.pushItemWithChildren(a.VisualizationItemClassification.archFlow, e3, i3, n3, () => { + this.pushItemBucket(t2.containersBucketId, o.flowVisualizationModal.containers, () => { + r2.default.each(n3.flowSequenceItemList, (e4) => { + this.iterateFlowSequenceItem(e4); + }); + }), this.pushItemBucket(t2.commonModulesBucketId, u.sectionCommonModuleFlows, () => { + r2.default.each(n3.commonModules, (e4) => { + this.pushItemWithoutChildren(a.VisualizationItemClassification.archCommonModule, e4.id, e4.name, e4); + }); + }), ["nluMetaData", "nluCortexMetaData"].forEach((e4) => { + const t3 = l2.findIndex((t4) => t4.id === e4); + t3 >= 0 && (this.pushItemWithoutChildren(a.VisualizationItemClassification.settings, e4, u.bot.naturalLanguageUnderstanding, n3[l2[t3].modelPropertyName]), l2.splice(t3, 1)); + }), (null == l2 ? void 0 : l2.length) && this.pushItemBucket(t2.settingsBucketId, u.customNodes.settings, () => { + this.pushItemWithChildren(a.VisualizationItemClassification.settings, t2.settingsGroupId, u.customNodes.settings, void 0, () => { + l2.forEach((e4) => { + const t3 = n3[e4.modelPropertyName]; + if (t3) { + const i4 = "variables" === e4.id ? a.VisualizationItemClassification.data : a.VisualizationItemClassification.settings; + this.pushItemWithoutChildren(i4, e4.id, void 0, t3); + } else s.error(`did not find entry for ${e4.id}`); + }); + }); + }); + }); + } + traverseForVisualization(e3, t3) { + e3 && (t3.push(e3), r2.default.each(e3.children, (e4) => { + this.traverseForVisualization(e4, t3); + })); + } + getFlowVisualizationData() { + const e3 = []; + return this.traverseForVisualization(this._processState.root, e3), e3; + } + getFlowElementVisualizationData(e3) { + const t3 = []; + return this.traverseForVisualization(this._processState.itemIdMap[e3], t3), t3; + } + }; + }, 58108: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(81574)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "journeyContext"; + } + get customer() { + } + get customerSession() { + } + get triggeringAction() { + } + get displayTypeName() { + return "ArchValueJourneyContext"; + } + get isArchValueJourneyContext() { + return true; + } + } + t2.default = r2; + }, 58132: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.getAllDeflectFailureReasons = t2.getDeflectFailureReasons = void 0; + const n2 = i2(31635).__importDefault(i2(92140)), r2 = { actionInvocationLimitExceeded: "ActionInvocationLimitExceeded", generalError: "GeneralError", invalidMessage: "InvalidMessage", invalidSmsFrom: "InvalidSmsFrom", invalidSmsTo: "InvalidSmsTo" }, o = [r2.generalError]; + t2.getDeflectFailureReasons = n2.default.uniq(o.concat([r2.actionInvocationLimitExceeded, r2.invalidMessage, r2.invalidSmsTo, r2.invalidSmsFrom])), t2.getAllDeflectFailureReasons = r2; + }, 58214: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.BranchItem = void 0; + const n2 = i2(31635), r2 = i2(19596), o = i2(80295), a = i2(80295); + class s extends r2.DataContract { + constructor(e3) { + super(e3), (0, a.makeUnenumerable)(this, "_label"), (0, a.makeUnenumerable)(this, "_localizedLabel"), (0, a.makeUnenumerable)(this, "_outputId"); + } + get label() { + return this._label; + } + set label(e3) { + this._label = e3; + } + get localizedLabel() { + return this._localizedLabel; + } + set localizedLabel(e3) { + this._localizedLabel = e3; + } + get outputId() { + return this._outputId; + } + set outputId(e3) { + this._outputId = e3; + } + getConfiguration(e3, t3) { + return (null == t3 ? void 0 : t3.isForFlowYaml) ? { outputPath: { name: this.label } } : this; + } + pasteResolveOldToNewValues(e3) { + } + pasteReIdOrRename(e3) { + this.outputId = e3.pasteResolveOldIdToNewId(this.outputId); + } + get displayLabel() { + return this.localizedLabel ? this.localizedLabel : this.label; + } + } + t2.BranchItem = s, n2.__decorate([(0, o.enumerable)(true), n2.__metadata("design:type", String), n2.__metadata("design:paramtypes", [String])], s.prototype, "label", null), n2.__decorate([(0, o.enumerable)(true), n2.__metadata("design:type", String), n2.__metadata("design:paramtypes", [String])], s.prototype, "localizedLabel", null), n2.__decorate([(0, o.enumerable)(true), n2.__metadata("design:type", String), n2.__metadata("design:paramtypes", [String])], s.prototype, "outputId", null); + }, 58253: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(54063)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "assignedCustomerIntentCollection"; + } + get displayTypeName() { + return "ArchValueAssignedCustomerIntentCollection"; + } + get isArchValueAssignedCustomerIntentCollection() { + return true; + } + } + t2.default = r2; + }, 58265: (e2, t2, i2) => { + const n2 = i2(59946); + function r2() { + Object.defineProperties(this, { _autoGeneratedEmailHandlingType: { writable: true } }), r2.baseConstructor.apply(this, arguments); + } + i2(45214).extend(r2, "InboundEmailSettings"), Object.defineProperties(r2.prototype, { autoGeneratedEmailHandlingType: { enumerable: true, get: function() { + return this._autoGeneratedEmailHandlingType; + }, set: function(e3) { + this._autoGeneratedEmailHandlingType = this.reviveEnum(e3, n2); + } } }), e2.exports = r2; + }, 58300: (e2, t2, i2) => { + const n2 = i2(36019).default, r2 = i2(10311), o = ["requests.inputSchema", "requests.successSchema"]; + function a() { + } + a.prototype.getCategories = function(e3) { + return n2.build(r2.getCategoryList).queryParams(e3.getSearchQueryParams()).call(); + }, a.prototype.getMetaDataList = function(e3) { + return e3.addAdditionalParams({ expand: o, published: true }), n2.build(r2.getMetaDataList).queryParams(e3.getSearchQueryParams()).call().then(function(e4) { + return e4.entities && e4.entities.length > 0 && (e4.total = (e4.pageNumber - 1) * e4.pageSize + e4.entities.length, e4.entities.length === e4.pageSize && (e4.total = e4.pageNumber * e4.pageSize + 1)), e4; + }); + }, a.prototype.getMetaData = function(e3) { + return n2.build(r2.getMetaData).templateParams({ name: e3 }).queryParams({ expand: o }).call(); + }, a.prototype.getMetaData.api = r2.getMetaData, a.prototype.validateAction = function(e3) { + return n2.build(r2.getMetaDataList).queryParams({ name: e3, expand: o }).call(); + }, e2.exports = new a(); + }, 58308: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(54063)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "shippingOptionCollection"; + } + get displayTypeName() { + return "ArchValueShippingOptionCollection"; + } + get isArchValueShippingOptionCollection() { + return true; + } + } + t2.default = r2; + }, 58380: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.isFiringEvents = function() { + return p > 0; + }, t2.changeEventEmitterForEventSink = function(e3, t3, i3, n3) { + const r3 = m(e3, n3); + if (!r3 || !e3 || !e3.id) return false; + let o2 = _[r3.instanceId]; + if (o2 && t3) { + const i4 = o2[t3]; + i4 && delete i4[e3.id]; + } + if (!i3) return true; + o2 || (o2 = {}, _[r3.instanceId] = o2); + let a2 = o2[i3]; + return a2 || (a2 = {}, o2[i3] = a2), a2[e3.id] = e3, true; + }, t2.createEventSinkObject = g, t2.fireEvent = function(e3, t3, i3, n3) { + if (!e3 || !e3.id || !t3) return false; + const r3 = m(e3, n3); + if (!r3) return false; + const a2 = _[r3.instanceId]; + if (!a2) return true; + const s2 = o.default.clone(a2[e3.id]); + if (!s2 || o.default.isEmpty(s2)) return true; + const l2 = "objEvent_" + t3; + return o.default.each(s2, (t4) => { + const n4 = t4[l2]; + if (n4 && (o.default.isFunction(n4.value) || o.default.isFunction(n4))) { + p++; + try { + o.default.isFunction(n4.value) ? n4.value.apply(t4, [e3, i3]) : n4.apply(t4, [e3, i3]); + } catch (e4) { + } finally { + p > 0 && p--; + } + } + }), true; + }, t2.getEventForSinksForEventEmitter = f, t2.hasEventSinksForEventEmitter = function(e3, t3) { + return !o.default.isUndefined(f(e3, t3)); + }, t2.registerEventSinkForEventEmitter = T, t2.removeEventEmitter = y, t2.unregisterAndRemoveObject = function(e3, t3) { + S(e3, t3), y(e3, t3); + }, t2.unregisterEventSink = S, t2.unregisterEventSinkForEventEmitter = A, t2.updateEventEmitterIdentifier = function(e3, t3, i3, n3) { + return A(e3, i3, n3), T(t3, i3, n3); + }, t2.addToAutoCleanupWatchList = function(e3, t3, i3, n3) { + const r3 = e3.findIndex((e4) => e4.eventName === t3 && e4.eventEmitterId === i3.id); + r3 >= 0 && (S(e3[r3]), e3.splice(r3, 1)), d.ParameterValidator.expectString(t3, () => u.ParameterInfo.createFunctionParameter(c, "eventName")), d.ParameterValidator.expectObject(i3, () => u.ParameterInfo.createFunctionParameter(c, "eventEmittingObjectViewModel")), d.ParameterValidator.expectFunction(n3, () => u.ParameterInfo.createFunctionParameter(c, "eventSinkCallbackFunction")); + const o2 = Object.assign({ eventEmitterId: i3.id, eventName: t3 }, g(t3, i3, n3)); + T(i3.id, o2), e3.push(o2); + }, t2.cleanUpAutoCleanupWatchList = function(e3) { + e3.forEach((e4) => S(e4)), e3.length = 0; + }, t2.createObservableForEvent$ = function(e3, t3) { + return d.ParameterValidator.expectString(e3, () => u.ParameterInfo.createFunctionParameter(c, "eventName")), d.ParameterValidator.expectObject(t3, () => u.ParameterInfo.createFunctionParameter(c, "eventEmittingObjectViewModel")), (0, r2.fromEventPattern)((i3) => { + const n3 = Object.assign({ eventEmitterId: t3.id, eventName: e3 }, g(e3, t3, i3)); + return T(t3.id, n3), n3; + }, (e4, t4) => { + S(t4); + }); + }; + const n2 = i2(31635), r2 = i2(79364), o = n2.__importDefault(i2(92140)), a = i2(9456), s = n2.__importStar(i2(12847)), l = n2.__importStar(i2(36781)), u = i2(55909), d = i2(33951), c = "ObjectEventService"; + let p = 0; + const _ = {}, h = (e3) => { + delete _[e3.instanceId]; + }; + function m(e3, t3) { + if (t3) { + if (t3.instanceId) return t3; + s.error(`overrideFlowViewModel: ${t3.id} did not have a instance id`); + } + if (e3) { + const t4 = e3.parentFlow; + if (t4 && t4.instanceId) return t4; + } + s.error("could not find a valid flow"); + } + function g(e3, t3, i3, n3) { + d.ParameterValidator.expectString(e3, () => u.ParameterInfo.createFunctionParameter(c, "eventName")), d.ParameterValidator.expectObject(t3, () => u.ParameterInfo.createFunctionParameter(c, "eventEmittingObjectViewModel")), d.ParameterValidator.expectFunction(i3, () => u.ParameterInfo.createFunctionParameter(c, "eventSinkCallbackFunction")), d.ParameterValidator.expectFlowViewModel(n3, () => u.ParameterInfo.createFunctionParameter(c, "overrideFlowViewModel"), true); + const r3 = m(t3, n3), o2 = { amObjectEventSink: true, id: (0, a.uuid)(), parentFlow: r3, eventName: e3 }; + return o2["objEvent_" + e3] = i3, o2; + } + function f(e3, t3) { + const i3 = m(e3, t3); + if (!i3 || !e3 || !e3.id) return; + const n3 = _[i3.instanceId]; + if (!n3) return; + return n3[e3.id] || void 0; + } + function T(e3, t3, i3) { + const n3 = m(t3, i3); + if (!(n3 && e3 && t3 && t3.id)) return false; + let r3 = _[n3.instanceId]; + r3 || (r3 = {}, _[n3.instanceId] = r3); + let o2 = r3[e3]; + return o2 || (o2 = {}, r3[e3] = o2), o2[t3.id] && o2[t3.id] !== t3 && console.error("overriding existing event sink - you sure you want to do this?!?!?"), o2[t3.id] = t3, true; + } + function y(e3, t3) { + const i3 = m(e3, t3); + if (!i3 || !e3 || !e3.id) return false; + const n3 = _[i3.instanceId]; + return !n3 || (delete n3[e3.id], true); + } + function S(e3, t3) { + const i3 = m(e3, t3); + if (!i3 || !e3 || !e3.id) return false; + const n3 = _[i3.instanceId]; + return !n3 || (o.default.each(n3, (t4) => { + delete t4[e3.id]; + }), true); + } + function A(e3, t3, i3) { + const n3 = m(t3, i3); + if (!(n3 && e3 && t3 && t3.id)) return false; + const r3 = _[n3.instanceId]; + if (!r3) return true; + const o2 = r3[e3]; + return !o2 || (delete o2[t3.id], true); + } + l.serviceListen(l.cleanUpFlow, h), l.serviceListen(l.flowLoadFailed, h); + }, 58407: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importDefault(i2(58467)), o = n2.__importStar(i2(14187)), a = i2(96618); + class s extends r2.default { + constructor(e3) { + super(e3); + } + get className() { + return "InQueueShortMessageFlowViewModel"; + } + get isInQueueShortMessageFlow() { + return true; + } + get type() { + return a.flowTypes.flowTypeInQueueShortMessage; + } + get builtInVariableScopes() { + return [...super.builtInVariableScopes, o.scopes.message]; + } + get wrappedYamlName() { + return "inqueueShortMessage"; + } + } + t2.default = s; + }, 58411: (e2, t2, i2) => { + "use strict"; + var n2, r2 = i2(9805), o = i2(23665), a = i2(53269), s = i2(14823), l = i2(54674), u = -2, d = 258, c = 262, p = 103, _ = 113, h = 666; + function m(e3, t3) { + return e3.msg = l[t3], t3; + } + function g(e3) { + return (e3 << 1) - (e3 > 4 ? 9 : 0); + } + function f(e3) { + for (var t3 = e3.length; --t3 >= 0; ) e3[t3] = 0; + } + function T(e3) { + var t3 = e3.state, i3 = t3.pending; + i3 > e3.avail_out && (i3 = e3.avail_out), 0 !== i3 && (r2.arraySet(e3.output, t3.pending_buf, t3.pending_out, i3, e3.next_out), e3.next_out += i3, t3.pending_out += i3, e3.total_out += i3, e3.avail_out -= i3, t3.pending -= i3, 0 === t3.pending && (t3.pending_out = 0)); + } + function y(e3, t3) { + o._tr_flush_block(e3, e3.block_start >= 0 ? e3.block_start : -1, e3.strstart - e3.block_start, t3), e3.block_start = e3.strstart, T(e3.strm); + } + function S(e3, t3) { + e3.pending_buf[e3.pending++] = t3; + } + function A(e3, t3) { + e3.pending_buf[e3.pending++] = t3 >>> 8 & 255, e3.pending_buf[e3.pending++] = 255 & t3; + } + function N(e3, t3, i3, n3) { + var o2 = e3.avail_in; + return o2 > n3 && (o2 = n3), 0 === o2 ? 0 : (e3.avail_in -= o2, r2.arraySet(t3, e3.input, e3.next_in, o2, i3), 1 === e3.state.wrap ? e3.adler = a(e3.adler, t3, o2, i3) : 2 === e3.state.wrap && (e3.adler = s(e3.adler, t3, o2, i3)), e3.next_in += o2, e3.total_in += o2, o2); + } + function O(e3, t3) { + var i3, n3, r3 = e3.max_chain_length, o2 = e3.strstart, a2 = e3.prev_length, s2 = e3.nice_match, l2 = e3.strstart > e3.w_size - c ? e3.strstart - (e3.w_size - c) : 0, u2 = e3.window, p2 = e3.w_mask, _2 = e3.prev, h2 = e3.strstart + d, m2 = u2[o2 + a2 - 1], g2 = u2[o2 + a2]; + e3.prev_length >= e3.good_match && (r3 >>= 2), s2 > e3.lookahead && (s2 = e3.lookahead); + do { + if (u2[(i3 = t3) + a2] === g2 && u2[i3 + a2 - 1] === m2 && u2[i3] === u2[o2] && u2[++i3] === u2[o2 + 1]) { + o2 += 2, i3++; + do { + } while (u2[++o2] === u2[++i3] && u2[++o2] === u2[++i3] && u2[++o2] === u2[++i3] && u2[++o2] === u2[++i3] && u2[++o2] === u2[++i3] && u2[++o2] === u2[++i3] && u2[++o2] === u2[++i3] && u2[++o2] === u2[++i3] && o2 < h2); + if (n3 = d - (h2 - o2), o2 = h2 - d, n3 > a2) { + if (e3.match_start = t3, a2 = n3, n3 >= s2) break; + m2 = u2[o2 + a2 - 1], g2 = u2[o2 + a2]; + } + } + } while ((t3 = _2[t3 & p2]) > l2 && 0 !== --r3); + return a2 <= e3.lookahead ? a2 : e3.lookahead; + } + function I(e3) { + var t3, i3, n3, o2, a2, s2 = e3.w_size; + do { + if (o2 = e3.window_size - e3.lookahead - e3.strstart, e3.strstart >= s2 + (s2 - c)) { + r2.arraySet(e3.window, e3.window, s2, s2, 0), e3.match_start -= s2, e3.strstart -= s2, e3.block_start -= s2, t3 = i3 = e3.hash_size; + do { + n3 = e3.head[--t3], e3.head[t3] = n3 >= s2 ? n3 - s2 : 0; + } while (--i3); + t3 = i3 = s2; + do { + n3 = e3.prev[--t3], e3.prev[t3] = n3 >= s2 ? n3 - s2 : 0; + } while (--i3); + o2 += s2; + } + if (0 === e3.strm.avail_in) break; + if (i3 = N(e3.strm, e3.window, e3.strstart + e3.lookahead, o2), e3.lookahead += i3, e3.lookahead + e3.insert >= 3) for (a2 = e3.strstart - e3.insert, e3.ins_h = e3.window[a2], e3.ins_h = (e3.ins_h << e3.hash_shift ^ e3.window[a2 + 1]) & e3.hash_mask; e3.insert && (e3.ins_h = (e3.ins_h << e3.hash_shift ^ e3.window[a2 + 3 - 1]) & e3.hash_mask, e3.prev[a2 & e3.w_mask] = e3.head[e3.ins_h], e3.head[e3.ins_h] = a2, a2++, e3.insert--, !(e3.lookahead + e3.insert < 3)); ) ; + } while (e3.lookahead < c && 0 !== e3.strm.avail_in); + } + function v(e3, t3) { + for (var i3, n3; ; ) { + if (e3.lookahead < c) { + if (I(e3), e3.lookahead < c && 0 === t3) return 1; + if (0 === e3.lookahead) break; + } + if (i3 = 0, e3.lookahead >= 3 && (e3.ins_h = (e3.ins_h << e3.hash_shift ^ e3.window[e3.strstart + 3 - 1]) & e3.hash_mask, i3 = e3.prev[e3.strstart & e3.w_mask] = e3.head[e3.ins_h], e3.head[e3.ins_h] = e3.strstart), 0 !== i3 && e3.strstart - i3 <= e3.w_size - c && (e3.match_length = O(e3, i3)), e3.match_length >= 3) if (n3 = o._tr_tally(e3, e3.strstart - e3.match_start, e3.match_length - 3), e3.lookahead -= e3.match_length, e3.match_length <= e3.max_lazy_match && e3.lookahead >= 3) { + e3.match_length--; + do { + e3.strstart++, e3.ins_h = (e3.ins_h << e3.hash_shift ^ e3.window[e3.strstart + 3 - 1]) & e3.hash_mask, i3 = e3.prev[e3.strstart & e3.w_mask] = e3.head[e3.ins_h], e3.head[e3.ins_h] = e3.strstart; + } while (0 !== --e3.match_length); + e3.strstart++; + } else e3.strstart += e3.match_length, e3.match_length = 0, e3.ins_h = e3.window[e3.strstart], e3.ins_h = (e3.ins_h << e3.hash_shift ^ e3.window[e3.strstart + 1]) & e3.hash_mask; + else n3 = o._tr_tally(e3, 0, e3.window[e3.strstart]), e3.lookahead--, e3.strstart++; + if (n3 && (y(e3, false), 0 === e3.strm.avail_out)) return 1; + } + return e3.insert = e3.strstart < 2 ? e3.strstart : 2, 4 === t3 ? (y(e3, true), 0 === e3.strm.avail_out ? 3 : 4) : e3.last_lit && (y(e3, false), 0 === e3.strm.avail_out) ? 1 : 2; + } + function C(e3, t3) { + for (var i3, n3, r3; ; ) { + if (e3.lookahead < c) { + if (I(e3), e3.lookahead < c && 0 === t3) return 1; + if (0 === e3.lookahead) break; + } + if (i3 = 0, e3.lookahead >= 3 && (e3.ins_h = (e3.ins_h << e3.hash_shift ^ e3.window[e3.strstart + 3 - 1]) & e3.hash_mask, i3 = e3.prev[e3.strstart & e3.w_mask] = e3.head[e3.ins_h], e3.head[e3.ins_h] = e3.strstart), e3.prev_length = e3.match_length, e3.prev_match = e3.match_start, e3.match_length = 2, 0 !== i3 && e3.prev_length < e3.max_lazy_match && e3.strstart - i3 <= e3.w_size - c && (e3.match_length = O(e3, i3), e3.match_length <= 5 && (1 === e3.strategy || 3 === e3.match_length && e3.strstart - e3.match_start > 4096) && (e3.match_length = 2)), e3.prev_length >= 3 && e3.match_length <= e3.prev_length) { + r3 = e3.strstart + e3.lookahead - 3, n3 = o._tr_tally(e3, e3.strstart - 1 - e3.prev_match, e3.prev_length - 3), e3.lookahead -= e3.prev_length - 1, e3.prev_length -= 2; + do { + ++e3.strstart <= r3 && (e3.ins_h = (e3.ins_h << e3.hash_shift ^ e3.window[e3.strstart + 3 - 1]) & e3.hash_mask, i3 = e3.prev[e3.strstart & e3.w_mask] = e3.head[e3.ins_h], e3.head[e3.ins_h] = e3.strstart); + } while (0 !== --e3.prev_length); + if (e3.match_available = 0, e3.match_length = 2, e3.strstart++, n3 && (y(e3, false), 0 === e3.strm.avail_out)) return 1; + } else if (e3.match_available) { + if ((n3 = o._tr_tally(e3, 0, e3.window[e3.strstart - 1])) && y(e3, false), e3.strstart++, e3.lookahead--, 0 === e3.strm.avail_out) return 1; + } else e3.match_available = 1, e3.strstart++, e3.lookahead--; + } + return e3.match_available && (n3 = o._tr_tally(e3, 0, e3.window[e3.strstart - 1]), e3.match_available = 0), e3.insert = e3.strstart < 2 ? e3.strstart : 2, 4 === t3 ? (y(e3, true), 0 === e3.strm.avail_out ? 3 : 4) : e3.last_lit && (y(e3, false), 0 === e3.strm.avail_out) ? 1 : 2; + } + function b(e3, t3, i3, n3, r3) { + this.good_length = e3, this.max_lazy = t3, this.nice_length = i3, this.max_chain = n3, this.func = r3; + } + function E() { + this.strm = null, this.status = 0, this.pending_buf = null, this.pending_buf_size = 0, this.pending_out = 0, this.pending = 0, this.wrap = 0, this.gzhead = null, this.gzindex = 0, this.method = 8, this.last_flush = -1, this.w_size = 0, this.w_bits = 0, this.w_mask = 0, this.window = null, this.window_size = 0, this.prev = null, this.head = null, this.ins_h = 0, this.hash_size = 0, this.hash_bits = 0, this.hash_mask = 0, this.hash_shift = 0, this.block_start = 0, this.match_length = 0, this.prev_match = 0, this.match_available = 0, this.strstart = 0, this.match_start = 0, this.lookahead = 0, this.prev_length = 0, this.max_chain_length = 0, this.max_lazy_match = 0, this.level = 0, this.strategy = 0, this.good_match = 0, this.nice_match = 0, this.dyn_ltree = new r2.Buf16(1146), this.dyn_dtree = new r2.Buf16(122), this.bl_tree = new r2.Buf16(78), f(this.dyn_ltree), f(this.dyn_dtree), f(this.bl_tree), this.l_desc = null, this.d_desc = null, this.bl_desc = null, this.bl_count = new r2.Buf16(16), this.heap = new r2.Buf16(573), f(this.heap), this.heap_len = 0, this.heap_max = 0, this.depth = new r2.Buf16(573), f(this.depth), this.l_buf = 0, this.lit_bufsize = 0, this.last_lit = 0, this.d_buf = 0, this.opt_len = 0, this.static_len = 0, this.matches = 0, this.insert = 0, this.bi_buf = 0, this.bi_valid = 0; + } + function R(e3) { + var t3; + return e3 && e3.state ? (e3.total_in = e3.total_out = 0, e3.data_type = 2, (t3 = e3.state).pending = 0, t3.pending_out = 0, t3.wrap < 0 && (t3.wrap = -t3.wrap), t3.status = t3.wrap ? 42 : _, e3.adler = 2 === t3.wrap ? 0 : 1, t3.last_flush = 0, o._tr_init(t3), 0) : m(e3, u); + } + function w(e3) { + var t3, i3 = R(e3); + return 0 === i3 && ((t3 = e3.state).window_size = 2 * t3.w_size, f(t3.head), t3.max_lazy_match = n2[t3.level].max_lazy, t3.good_match = n2[t3.level].good_length, t3.nice_match = n2[t3.level].nice_length, t3.max_chain_length = n2[t3.level].max_chain, t3.strstart = 0, t3.block_start = 0, t3.lookahead = 0, t3.insert = 0, t3.match_length = t3.prev_length = 2, t3.match_available = 0, t3.ins_h = 0), i3; + } + function D(e3, t3, i3, n3, o2, a2) { + if (!e3) return u; + var s2 = 1; + if (-1 === t3 && (t3 = 6), n3 < 0 ? (s2 = 0, n3 = -n3) : n3 > 15 && (s2 = 2, n3 -= 16), o2 < 1 || o2 > 9 || 8 !== i3 || n3 < 8 || n3 > 15 || t3 < 0 || t3 > 9 || a2 < 0 || a2 > 4) return m(e3, u); + 8 === n3 && (n3 = 9); + var l2 = new E(); + return e3.state = l2, l2.strm = e3, l2.wrap = s2, l2.gzhead = null, l2.w_bits = n3, l2.w_size = 1 << l2.w_bits, l2.w_mask = l2.w_size - 1, l2.hash_bits = o2 + 7, l2.hash_size = 1 << l2.hash_bits, l2.hash_mask = l2.hash_size - 1, l2.hash_shift = ~~((l2.hash_bits + 3 - 1) / 3), l2.window = new r2.Buf8(2 * l2.w_size), l2.head = new r2.Buf16(l2.hash_size), l2.prev = new r2.Buf16(l2.w_size), l2.lit_bufsize = 1 << o2 + 6, l2.pending_buf_size = 4 * l2.lit_bufsize, l2.pending_buf = new r2.Buf8(l2.pending_buf_size), l2.d_buf = 1 * l2.lit_bufsize, l2.l_buf = 3 * l2.lit_bufsize, l2.level = t3, l2.strategy = a2, l2.method = i3, w(e3); + } + n2 = [new b(0, 0, 0, 0, function(e3, t3) { + var i3 = 65535; + for (i3 > e3.pending_buf_size - 5 && (i3 = e3.pending_buf_size - 5); ; ) { + if (e3.lookahead <= 1) { + if (I(e3), 0 === e3.lookahead && 0 === t3) return 1; + if (0 === e3.lookahead) break; + } + e3.strstart += e3.lookahead, e3.lookahead = 0; + var n3 = e3.block_start + i3; + if ((0 === e3.strstart || e3.strstart >= n3) && (e3.lookahead = e3.strstart - n3, e3.strstart = n3, y(e3, false), 0 === e3.strm.avail_out)) return 1; + if (e3.strstart - e3.block_start >= e3.w_size - c && (y(e3, false), 0 === e3.strm.avail_out)) return 1; + } + return e3.insert = 0, 4 === t3 ? (y(e3, true), 0 === e3.strm.avail_out ? 3 : 4) : (e3.strstart > e3.block_start && (y(e3, false), e3.strm.avail_out), 1); + }), new b(4, 4, 8, 4, v), new b(4, 5, 16, 8, v), new b(4, 6, 32, 32, v), new b(4, 4, 16, 16, C), new b(8, 16, 32, 32, C), new b(8, 16, 128, 128, C), new b(8, 32, 128, 256, C), new b(32, 128, 258, 1024, C), new b(32, 258, 258, 4096, C)], t2.deflateInit = function(e3, t3) { + return D(e3, t3, 8, 15, 8, 0); + }, t2.deflateInit2 = D, t2.deflateReset = w, t2.deflateResetKeep = R, t2.deflateSetHeader = function(e3, t3) { + return e3 && e3.state ? 2 !== e3.state.wrap ? u : (e3.state.gzhead = t3, 0) : u; + }, t2.deflate = function(e3, t3) { + var i3, r3, a2, l2; + if (!e3 || !e3.state || t3 > 5 || t3 < 0) return e3 ? m(e3, u) : u; + if (r3 = e3.state, !e3.output || !e3.input && 0 !== e3.avail_in || r3.status === h && 4 !== t3) return m(e3, 0 === e3.avail_out ? -5 : u); + if (r3.strm = e3, i3 = r3.last_flush, r3.last_flush = t3, 42 === r3.status) if (2 === r3.wrap) e3.adler = 0, S(r3, 31), S(r3, 139), S(r3, 8), r3.gzhead ? (S(r3, (r3.gzhead.text ? 1 : 0) + (r3.gzhead.hcrc ? 2 : 0) + (r3.gzhead.extra ? 4 : 0) + (r3.gzhead.name ? 8 : 0) + (r3.gzhead.comment ? 16 : 0)), S(r3, 255 & r3.gzhead.time), S(r3, r3.gzhead.time >> 8 & 255), S(r3, r3.gzhead.time >> 16 & 255), S(r3, r3.gzhead.time >> 24 & 255), S(r3, 9 === r3.level ? 2 : r3.strategy >= 2 || r3.level < 2 ? 4 : 0), S(r3, 255 & r3.gzhead.os), r3.gzhead.extra && r3.gzhead.extra.length && (S(r3, 255 & r3.gzhead.extra.length), S(r3, r3.gzhead.extra.length >> 8 & 255)), r3.gzhead.hcrc && (e3.adler = s(e3.adler, r3.pending_buf, r3.pending, 0)), r3.gzindex = 0, r3.status = 69) : (S(r3, 0), S(r3, 0), S(r3, 0), S(r3, 0), S(r3, 0), S(r3, 9 === r3.level ? 2 : r3.strategy >= 2 || r3.level < 2 ? 4 : 0), S(r3, 3), r3.status = _); + else { + var c2 = 8 + (r3.w_bits - 8 << 4) << 8; + c2 |= (r3.strategy >= 2 || r3.level < 2 ? 0 : r3.level < 6 ? 1 : 6 === r3.level ? 2 : 3) << 6, 0 !== r3.strstart && (c2 |= 32), c2 += 31 - c2 % 31, r3.status = _, A(r3, c2), 0 !== r3.strstart && (A(r3, e3.adler >>> 16), A(r3, 65535 & e3.adler)), e3.adler = 1; + } + if (69 === r3.status) if (r3.gzhead.extra) { + for (a2 = r3.pending; r3.gzindex < (65535 & r3.gzhead.extra.length) && (r3.pending !== r3.pending_buf_size || (r3.gzhead.hcrc && r3.pending > a2 && (e3.adler = s(e3.adler, r3.pending_buf, r3.pending - a2, a2)), T(e3), a2 = r3.pending, r3.pending !== r3.pending_buf_size)); ) S(r3, 255 & r3.gzhead.extra[r3.gzindex]), r3.gzindex++; + r3.gzhead.hcrc && r3.pending > a2 && (e3.adler = s(e3.adler, r3.pending_buf, r3.pending - a2, a2)), r3.gzindex === r3.gzhead.extra.length && (r3.gzindex = 0, r3.status = 73); + } else r3.status = 73; + if (73 === r3.status) if (r3.gzhead.name) { + a2 = r3.pending; + do { + if (r3.pending === r3.pending_buf_size && (r3.gzhead.hcrc && r3.pending > a2 && (e3.adler = s(e3.adler, r3.pending_buf, r3.pending - a2, a2)), T(e3), a2 = r3.pending, r3.pending === r3.pending_buf_size)) { + l2 = 1; + break; + } + l2 = r3.gzindex < r3.gzhead.name.length ? 255 & r3.gzhead.name.charCodeAt(r3.gzindex++) : 0, S(r3, l2); + } while (0 !== l2); + r3.gzhead.hcrc && r3.pending > a2 && (e3.adler = s(e3.adler, r3.pending_buf, r3.pending - a2, a2)), 0 === l2 && (r3.gzindex = 0, r3.status = 91); + } else r3.status = 91; + if (91 === r3.status) if (r3.gzhead.comment) { + a2 = r3.pending; + do { + if (r3.pending === r3.pending_buf_size && (r3.gzhead.hcrc && r3.pending > a2 && (e3.adler = s(e3.adler, r3.pending_buf, r3.pending - a2, a2)), T(e3), a2 = r3.pending, r3.pending === r3.pending_buf_size)) { + l2 = 1; + break; + } + l2 = r3.gzindex < r3.gzhead.comment.length ? 255 & r3.gzhead.comment.charCodeAt(r3.gzindex++) : 0, S(r3, l2); + } while (0 !== l2); + r3.gzhead.hcrc && r3.pending > a2 && (e3.adler = s(e3.adler, r3.pending_buf, r3.pending - a2, a2)), 0 === l2 && (r3.status = p); + } else r3.status = p; + if (r3.status === p && (r3.gzhead.hcrc ? (r3.pending + 2 > r3.pending_buf_size && T(e3), r3.pending + 2 <= r3.pending_buf_size && (S(r3, 255 & e3.adler), S(r3, e3.adler >> 8 & 255), e3.adler = 0, r3.status = _)) : r3.status = _), 0 !== r3.pending) { + if (T(e3), 0 === e3.avail_out) return r3.last_flush = -1, 0; + } else if (0 === e3.avail_in && g(t3) <= g(i3) && 4 !== t3) return m(e3, -5); + if (r3.status === h && 0 !== e3.avail_in) return m(e3, -5); + if (0 !== e3.avail_in || 0 !== r3.lookahead || 0 !== t3 && r3.status !== h) { + var N2 = 2 === r3.strategy ? (function(e4, t4) { + for (var i4; ; ) { + if (0 === e4.lookahead && (I(e4), 0 === e4.lookahead)) { + if (0 === t4) return 1; + break; + } + if (e4.match_length = 0, i4 = o._tr_tally(e4, 0, e4.window[e4.strstart]), e4.lookahead--, e4.strstart++, i4 && (y(e4, false), 0 === e4.strm.avail_out)) return 1; + } + return e4.insert = 0, 4 === t4 ? (y(e4, true), 0 === e4.strm.avail_out ? 3 : 4) : e4.last_lit && (y(e4, false), 0 === e4.strm.avail_out) ? 1 : 2; + })(r3, t3) : 3 === r3.strategy ? (function(e4, t4) { + for (var i4, n3, r4, a3, s2 = e4.window; ; ) { + if (e4.lookahead <= d) { + if (I(e4), e4.lookahead <= d && 0 === t4) return 1; + if (0 === e4.lookahead) break; + } + if (e4.match_length = 0, e4.lookahead >= 3 && e4.strstart > 0 && (n3 = s2[r4 = e4.strstart - 1]) === s2[++r4] && n3 === s2[++r4] && n3 === s2[++r4]) { + a3 = e4.strstart + d; + do { + } while (n3 === s2[++r4] && n3 === s2[++r4] && n3 === s2[++r4] && n3 === s2[++r4] && n3 === s2[++r4] && n3 === s2[++r4] && n3 === s2[++r4] && n3 === s2[++r4] && r4 < a3); + e4.match_length = d - (a3 - r4), e4.match_length > e4.lookahead && (e4.match_length = e4.lookahead); + } + if (e4.match_length >= 3 ? (i4 = o._tr_tally(e4, 1, e4.match_length - 3), e4.lookahead -= e4.match_length, e4.strstart += e4.match_length, e4.match_length = 0) : (i4 = o._tr_tally(e4, 0, e4.window[e4.strstart]), e4.lookahead--, e4.strstart++), i4 && (y(e4, false), 0 === e4.strm.avail_out)) return 1; + } + return e4.insert = 0, 4 === t4 ? (y(e4, true), 0 === e4.strm.avail_out ? 3 : 4) : e4.last_lit && (y(e4, false), 0 === e4.strm.avail_out) ? 1 : 2; + })(r3, t3) : n2[r3.level].func(r3, t3); + if (3 !== N2 && 4 !== N2 || (r3.status = h), 1 === N2 || 3 === N2) return 0 === e3.avail_out && (r3.last_flush = -1), 0; + if (2 === N2 && (1 === t3 ? o._tr_align(r3) : 5 !== t3 && (o._tr_stored_block(r3, 0, 0, false), 3 === t3 && (f(r3.head), 0 === r3.lookahead && (r3.strstart = 0, r3.block_start = 0, r3.insert = 0))), T(e3), 0 === e3.avail_out)) return r3.last_flush = -1, 0; + } + return 4 !== t3 ? 0 : r3.wrap <= 0 ? 1 : (2 === r3.wrap ? (S(r3, 255 & e3.adler), S(r3, e3.adler >> 8 & 255), S(r3, e3.adler >> 16 & 255), S(r3, e3.adler >> 24 & 255), S(r3, 255 & e3.total_in), S(r3, e3.total_in >> 8 & 255), S(r3, e3.total_in >> 16 & 255), S(r3, e3.total_in >> 24 & 255)) : (A(r3, e3.adler >>> 16), A(r3, 65535 & e3.adler)), T(e3), r3.wrap > 0 && (r3.wrap = -r3.wrap), 0 !== r3.pending ? 0 : 1); + }, t2.deflateEnd = function(e3) { + var t3; + return e3 && e3.state ? 42 !== (t3 = e3.state.status) && 69 !== t3 && 73 !== t3 && 91 !== t3 && t3 !== p && t3 !== _ && t3 !== h ? m(e3, u) : (e3.state = null, t3 === _ ? m(e3, -3) : 0) : u; + }, t2.deflateSetDictionary = function(e3, t3) { + var i3, n3, o2, s2, l2, d2, c2, p2, _2 = t3.length; + if (!e3 || !e3.state) return u; + if (2 === (s2 = (i3 = e3.state).wrap) || 1 === s2 && 42 !== i3.status || i3.lookahead) return u; + for (1 === s2 && (e3.adler = a(e3.adler, t3, _2, 0)), i3.wrap = 0, _2 >= i3.w_size && (0 === s2 && (f(i3.head), i3.strstart = 0, i3.block_start = 0, i3.insert = 0), p2 = new r2.Buf8(i3.w_size), r2.arraySet(p2, t3, _2 - i3.w_size, i3.w_size, 0), t3 = p2, _2 = i3.w_size), l2 = e3.avail_in, d2 = e3.next_in, c2 = e3.input, e3.avail_in = _2, e3.next_in = 0, e3.input = t3, I(i3); i3.lookahead >= 3; ) { + n3 = i3.strstart, o2 = i3.lookahead - 2; + do { + i3.ins_h = (i3.ins_h << i3.hash_shift ^ i3.window[n3 + 3 - 1]) & i3.hash_mask, i3.prev[n3 & i3.w_mask] = i3.head[i3.ins_h], i3.head[i3.ins_h] = n3, n3++; + } while (--o2); + i3.strstart = n3, i3.lookahead = 2, I(i3); + } + return i3.strstart += i3.lookahead, i3.block_start = i3.strstart, i3.insert = i3.lookahead, i3.lookahead = 0, i3.match_length = i3.prev_length = 2, i3.match_available = 0, e3.next_in = d2, e3.input = c2, e3.avail_in = l2, i3.wrap = s2, 0; + }, t2.deflateInfo = "pako deflate (from Nodeca project)"; + }, 58436: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.TimePickerType = t2.PROP_LATITUDE = t2.PROP_LONGITUDE = t2.PROP_ADDRESS = t2.PROP_SUBTITLE = t2.PROP_TITLE = t2.PROP_IMAGE = void 0; + const n2 = i2(31635), r2 = i2(35730), o = i2(80428), a = i2(94765), s = n2.__importStar(i2(9345)), l = i2(14394), u = i2(47957); + t2.PROP_IMAGE = "image", t2.PROP_TITLE = "title", t2.PROP_SUBTITLE = "subtitle", t2.PROP_ADDRESS = "address", t2.PROP_LONGITUDE = "longitude", t2.PROP_LATITUDE = "latitude"; + class d extends a.ExpressionType { + constructor(e3, t3, i3) { + super(e3, t3, i3); + } + get className() { + return "TimePickerType"; + } + convertLitToExpression(e3, t3) { + return ""; + } + _getLiteralValueOfExpression() { + return ""; + } + createExpressionOptionClass() { + return new r2.ExpressionTypeTimePickerOptions(); + } + get supportsLiteralEditor() { + return true; + } + getChooser(e3) { + var t3; + if (null === (t3 = e3.propertyParent) || void 0 === t3 ? void 0 : t3.type.isMatch(l.chooser, s.settings.exact)) return e3.propertyParent; + } + getPropImage(e3) { + return e3.getProperty(t2.PROP_IMAGE); + } + getPropTitle(e3) { + return e3.getProperty(t2.PROP_TITLE); + } + getPropSubtitle(e3) { + return e3.getProperty(t2.PROP_SUBTITLE); + } + getPropAddress(e3) { + return e3.getProperty(t2.PROP_ADDRESS); + } + getPropLongitude(e3) { + return e3.getProperty(t2.PROP_LONGITUDE); + } + getPropLatitude(e3) { + return e3.getProperty(t2.PROP_LATITUDE); + } + configurePropertyCreationParams(e3, i3, n3) { + var r3; + switch (super.configurePropertyCreationParams(e3, i3, n3), null === (r3 = i3.name) || void 0 === r3 ? void 0 : r3.toLowerCase()) { + case t2.PROP_IMAGE: + n3.options.setIsOptional(true), n3.options.setAllowNotSet(true), n3.options.setAllowModeLiteralOnly(), n3.options.setModeNoValueRuntimeEvaluationStr(u.cardsAndCars.cardType.noImageRuntimeEvaluationStr), n3.options.setModeNoValueSelectionLabel(u.cardsAndCars.cardType.noImage), n3.options.setDefaultToNoValue(true), n3.options.setLabelOverride(u.image.image), n3.options.setIninTestingField("time-picker-image"); + break; + case t2.PROP_TITLE: + n3.options.setIsOptional(false), n3.options.setAllowNotSet(false), n3.options.setModeNoValueRuntimeEvaluationStr(u.cardsAndCars.timePickerType.noTitleRuntimeEvaluationStr), n3.options.setModeNoValueSelectionLabel(u.cardsAndCars.cardType.noTitle), n3.options.setDoNotTransitionToNoValue(true), n3.options.setLabelOverride(u.cardsAndCars.buttonTitlePlaceholder), n3.options.setIninTestingField("time-picker-title"), n3.options.facets.setMaxLength(512); + break; + case t2.PROP_SUBTITLE: + n3.options.setIsOptional(true), n3.options.setAllowNotSet(true), n3.options.setModeNoValueRuntimeEvaluationStr(u.cardsAndCars.timePickerType.noSubtitleRuntimeEvaluationStr), n3.options.setModeNoValueSelectionLabel(u.cardsAndCars.timePickerType.noSubtitle), n3.options.setDoNotTransitionToNoValue(true), n3.options.setLabelOverride(u.cardsAndCars.timePickerType.subtitlePlaceHolder), n3.options.setIninTestingField("time-picker-subtitle"), n3.options.facets.setMaxLength(512); + break; + case t2.PROP_ADDRESS: + n3.options.setIsOptional(true), n3.options.setDoNotTransitionToNoValue(true), n3.options.setIninTestingField("time-picker-address"), n3.options.facets.setIsAddressField(true); + break; + case t2.PROP_LONGITUDE: + n3.options.setIsOptional(true), n3.options.setIninTestingField("time-picker-longitude"), n3.options.setDoNotTransitionToNoValue(true), n3.options.setDefaultText("0.0"), n3.options.facets.setMinDec(-180).setMinValInclusive(true), n3.options.facets.setMaxDec(180).setMaxValInclusive(true), n3.options.facets.setDecimalPlaces(6); + break; + case t2.PROP_LATITUDE: + n3.options.setIsOptional(true), n3.options.setIninTestingField("time-picker-latitude"), n3.options.setDoNotTransitionToNoValue(true), n3.options.setDefaultText("0.0"), n3.options.facets.setMinDec(-90).setMinValInclusive(true), n3.options.facets.setMaxDec(90).setMaxValInclusive(true), n3.options.facets.setDecimalPlaces(6); + } + } + get hasRichLiteralEditor() { + return true; + } + validateLiteral(e3, t3) { + const i3 = this.getPropAddress(t3), n3 = this.getPropLongitude(t3), r3 = this.getPropLatitude(t3); + return !(i3 && n3 && r3 && null !== i3.text && "" !== i3.text) || "0.0" !== n3.text && "0" !== n3.text || "0.0" !== r3.text && "0" !== r3.text || (n3.setParseWarning(u.expression.longitudeSetToNullIsland), r3.setParseWarning(u.expression.latitudeSetToNullIsland), e3.addWarning(n3, u.expression.longitudeSetToNullIsland, void 0, false), e3.addWarning(r3, u.expression.latitudeSetToNullIsland, void 0, false), false); + } + useCustomExpressionEditor(e3) { + return !!(null == e3 ? void 0 : e3.parentList); + } + } + t2.TimePickerType = d, d.typeIdentifier = o.expressionTypeNames.timePicker; + }, 58467: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importDefault(i2(95955)), o = n2.__importDefault(i2(71824)), a = n2.__importDefault(i2(26519)); + class s extends o.default { + constructor(e3) { + super(e3), this.callPrompts = new r2.default(this), this.errorHandling = new a.default(this), this._addToAutoManageSettings(this.callPrompts), this._addToAutoManageSettings(this.errorHandling); + } + get className() { + return "InQueueWorkflowViewModel"; + } + get isInQueueWorkflow() { + return true; + } + } + t2.default = s; + }, 58491: (e2, t2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.allowedPermissionList = void 0, t2.allowedPermissionList = { authorization: true, dependencyTracking: true, division: true, flow: true, flowExecution: true, flowInstance: true, flowInstanceExecutionData: true, flowLogLevel: true, flowLogLevelDefault: true, flowMilestone: true, flowOutcome: true, grammar: true, systemPrompt: true, userPrompt: true, ui: true, virtualAgentFlow: true }; + }, 58525: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.ExpressionTypePromptOptions = void 0; + const n2 = i2(31635), r2 = i2(80295), o = i2(71056), a = i2(55909), s = i2(33951); + class l extends o.ExpressionTypeNetworkObjectOptions { + static create(e3, t3) { + return new this(t3).invokeOptionsCallback(e3); + } + constructor(e3) { + super(e3), this._audioPreview = false, this._requireAudio = false, (0, r2.makeUnenumerable)(this, "_audioPreview"), (0, r2.makeUnenumerable)(this, "_requireAudio"), (0, r2.makeUnenumerable)(this, "_systemPromptFilterNames"); + } + get className() { + return "ExpressionTypePromptOptions"; + } + get isExpressionTypePromptOptions() { + return true; + } + get audioPreview() { + return this._audioPreview; + } + set audioPreview(e3) { + this._audioPreview = s.ParameterValidator.expectBool(e3, () => a.ParameterInfo.createPropertySet(this.className, "audioPreview", "value")); + } + setAudioPreview(e3) { + return this.audioPreview = e3, this; + } + get requireAudio() { + return this._requireAudio; + } + set requireAudio(e3) { + this._requireAudio = s.ParameterValidator.expectBool(e3, () => a.ParameterInfo.createPropertySet(this.className, "requireAudio", "value")); + } + setRequireAudio(e3) { + return this.requireAudio = e3, this; + } + get systemPromptFilterNames() { + return this._systemPromptFilterNames; + } + set systemPromptFilterNames(e3) { + this._systemPromptFilterNames = s.ParameterValidator.expectArray(e3, () => a.ParameterInfo.createPropertySet(this.className, "systemPromptFilterNames", "value")); + } + setSystemPromptFilterNames(e3) { + return this.systemPromptFilterNames = e3, this; + } + _setFromOptions(e3) { + super._setFromOptions(e3), this._setOptionIfSet(this.setRequireAudio, e3.requireAudio); + } + } + t2.ExpressionTypePromptOptions = l, n2.__decorate([(0, r2.enumerable)(true), n2.__metadata("design:type", Boolean), n2.__metadata("design:paramtypes", [Object])], l.prototype, "audioPreview", null), n2.__decorate([(0, r2.enumerable)(true), n2.__metadata("design:type", Boolean), n2.__metadata("design:paramtypes", [Object])], l.prototype, "requireAudio", null), n2.__decorate([(0, r2.enumerable)(true), n2.__metadata("design:type", Array), n2.__metadata("design:paramtypes", [Object])], l.prototype, "systemPromptFilterNames", null); + }, 58597: (e2, t2, i2) => { + function n2() { + Object.defineProperties(this, { _botId: { writable: true }, _botIntegrationId: { writable: true }, _version: { writable: true } }), this.name = void 0, this.supportedLanguages = void 0, this.intents = void 0, n2.baseConstructor.apply(this, arguments); + } + i2(45214).extend(n2, "BotConnectorVersion"), Object.defineProperties(n2.prototype, { archInternalId: { enumerable: true, get: function() { + return this.isFromAdsValidationResults ? `${this._botId}:${this._version}` : `${this._botIntegrationId}:${this._botId}:${this._version}`; + } }, getContextInfo: { value: function() { + return { botId: this._botId, integrationId: this._botIntegrationId }; + } }, setParentContextInfo: { value: function(e3) { + this._botIntegrationId = e3; + } }, id: { enumerable: true, get: function() { + if (this.isFromAdsValidationResults) { + const e3 = this._botId.indexOf(":"); + return this._botId.substr(e3 + 1); + } + return this._version; + }, set: function(e3) { + this._botId = e3; + } }, integrationId: { enumerable: true, get: function() { + if (this.isFromAdsValidationResults) { + const e3 = this._botId.indexOf(":"); + return this._botId.substr(0, e3); + } + return this._botIntegrationId; + }, set: function(e3) { + this._botIntegrationId = e3; + } }, botId: { enumerable: true, get: function() { + return this._botId; + }, set: function(e3) { + console.log("Setting BotConnectorVersion.botId is not allowed."); + } }, isFromAdsValidationResults: { enumerable: false, get: function() { + return this.result; + }, set: function(e3) { + e3 || delete this.result, this.result = e3; + } }, version: { enumerable: true, get: function() { + return this._version; + }, set: function(e3) { + this._version = e3; + } }, label: { get: function() { + return this.version; + }, set: function(e3) { + this.version = e3; + } } }), n2.keyProperty = "archInternalId", e2.exports = n2; + }, 58602: (e2, t2, i2) => { + const n2 = i2(28730), r2 = i2(7401), { setUUIDataActionType: o } = i2(30801), a = i2(89720); + function s() { + Object.defineProperties(this, { _mode: { writable: true }, _uuiData: { writable: true } }), s.baseConstructor.apply(this, arguments); + } + n2.extend(s, o, true), Object.defineProperties(s.prototype, { pasteReIdOrRename: { value: function(e3) { + s._super.pasteReIdOrRename.apply(this, arguments), this.uuiData.pasteReIdOrRename(e3); + } }, pasteResolveOldToNewValues: { value: function(e3) { + s._super.pasteResolveOldToNewValues.apply(this, arguments), this.uuiData.pasteResolveOldToNewValues(e3); + } }, mode: { enumerable: true, get: function() { + return this._mode; + }, set: function(e3) { + this._mode = this.reviveEnum(e3, a); + } }, uuiData: { enumerable: true, get: function() { + return this._uuiData; + }, set: function(e3) { + this._uuiData = this.reviveItem(e3, r2); + } } }), e2.exports = s; + }, 58611: (e2) => { + "use strict"; + e2.exports = require("http"); + }, 58649: (e2, t2, i2) => { + function n2() { + this.columnNames = void 0, this.phoneColumns = void 0, n2.baseConstructor.apply(this, arguments); + } + i2(2398).extend(n2, "ContactList"), Object.defineProperties(n2.prototype, { columns: { get: function() { + return this.columnNames; + }, set: function(e3) { + this.columnNames = e3; + } } }), e2.exports = n2; + }, 58650: (e2, t2, i2) => { + const n2 = i2(36019).default, r2 = i2(54501); + function o() { + } + o.prototype.getGroups = function(e3) { + const t3 = n2.build(r2.getGroups); + return t3.content(e3.get_q64searchContent()), t3.call(); + }, o.prototype.getGroup = function(e3) { + return n2.build(r2.getGroup).templateParams({ id: e3 }).call(); + }, o.prototype.getGroup.api = r2.getGroup, e2.exports = new o(); + }, 58668: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = i2(43212), o = n2.__importDefault(i2(27579)); + class a extends r2.BaseConfigurationListViewModel { + constructor(e3) { + super(e3), this._errorSchema = (0, o.default)(["ActionInvocationLimitExceeded"]); + } + get id() { + return this.model.id; + } + getConfiguration() { + return this.model; + } + get label() { + return this.model.name || ""; + } + get name() { + return this.model.name; + } + get errorSchema() { + return this._errorSchema; + } + get className() { + return "AudioConnectorViewModel"; + } + } + t2.default = a; + }, 58778: (e2, t2, i2) => { + "use strict"; + const n2 = i2(31635), r2 = n2.__importStar(i2(62829)), o = i2(96618), a = n2.__importDefault(i2(97891)), s = i2(30801), l = i2(47957); + class u { + static get info() { + return d; + } + static get notRealAction() { + return true; + } + } + t2.A = u; + const d = a.default.create(s.stateActionType, false, true); + d.modelClass = i2(52030), d.name = l.actions.state, d.supportedFlowTypes = o.flowTypes.flowTypesAllAutomate, d.setActionClass(u), r2.registerAction(d); + }, 58799: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.defaultIfEmpty = void 0; + var n2 = i2(65212), r2 = i2(17214); + t2.defaultIfEmpty = function(e3) { + return n2.operate(function(t3, i3) { + var n3 = false; + t3.subscribe(r2.createOperatorSubscriber(i3, function(e4) { + n3 = true, i3.next(e4); + }, function() { + n3 || i3.next(e3), i3.complete(); + })); + }); + }; + }, 58801: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.DataResult = t2.FuncOpCollection = t2.FuncOpCategory = void 0, t2.createDataResult = function(e3, t3, i3, n3, r3) { + return new l(e3, t3, i3, n3, r3); + }, t2.createFuncOp = function(e3, t3, i3, r3, o2) { + return new n2.ExpressionFuncOp(e3, t3, i3, r3, o2); + }, t2.createFuncOpCategory = function(e3, t3, i3) { + return new a(e3, t3, i3); + }, t2.createFuncOpCollection = function(e3) { + return new s(e3); + }, t2.createFuncOpOverload = function(e3, t3, i3, n3, o2, a2, s2, l2) { + return new r2.FuncOpOverload(e3, t3, i3, n3, o2, a2, s2, l2); + }, t2.createOperand = function(e3, t3, i3) { + return new o.Operand(e3, t3, i3); + }; + const n2 = i2(73646), r2 = i2(53614), o = i2(25632); + class a { + constructor(e3, t3, i3) { + this.identifier = e3.identifier, this.name = t3, this.description = i3; + } + } + t2.FuncOpCategory = a; + class s { + constructor(e3) { + this.functions = [], this.funcCategory = e3; + } + } + t2.FuncOpCollection = s; + class l { + constructor(e3, t3, i3, n3, r3) { + this.success = e3, this.result = t3, this.error = i3, this.position = n3, this.operand = r3; + } + } + t2.DataResult = l; + }, 58858: (e2, t2, i2) => { + const n2 = i2(92140), r2 = i2(79042), o = i2(45421), a = i2(89452), { ParameterInfo: s } = i2(55909), { ParameterValidator: l } = i2(33951); + class u extends r2 { + constructor(e3, t3) { + super(t3), l.expectObject(e3, () => s.createConstructorParameter("ClipboardDependencyFlowUiMetaDataViewModel", "flowUiMetaDataModel"), true), Object.defineProperties(this, { _dependencyUiMetaDataModel: { writable: true } }), e3 && this.loadModel(e3); + } + static create(e3, t3, i3, n3) { + const r3 = new a({ metaDataId: t3, metaDataJSON: o.cloneToRawJsonObject(i3), sectionName: e3 }); + return new u(r3, n3); + } + loadModel(e3) { + this._dependencyUiMetaDataModel = e3; + } + get isClipboardDependencyFlowUiMetaDataViewModel() { + return true; + } + get metaDataId() { + return this._dependencyUiMetaDataModel ? this._dependencyUiMetaDataModel.metaDataId : void 0; + } + get metaDataJSON() { + return this._dependencyUiMetaDataModel ? this._dependencyUiMetaDataModel.metaDataJSON : void 0; + } + get metaDataSectionName() { + return this._dependencyUiMetaDataModel ? this._dependencyUiMetaDataModel.sectionName : void 0; + } + get logHeader() { + return "flow ui meta data - section name :'" + this.metaDataSectionName + "' (ID: " + this.metaDataId + ")"; + } + get rawJson() { + return this._dependencyUiMetaDataModel ? this._dependencyUiMetaDataModel.metaDataJSON : void 0; + } + get dependencyModel() { + return this._dependencyUiMetaDataModel; + } + shouldPaste(e3) { + return true; + } + _performDestroy() { + try { + this._dependencyUiMetaDataModel = void 0; + } catch (e3) { + this.logException(e3, "Exception encountered cleaning up clipboard content."); + } + } + _performPaste(e3) { + if (!this.metaDataId || !this.metaDataJSON || !this.metaDataSectionName) return this.createClipboardResultFailurePasteGeneric("The flow UI meta data snapshot was invalid. metaDataId: '" + this.metaDataId + "', metaDatSectionName: '" + this.metaDataSectionName + "', meta data JSON isObject: " + n2.isObject(this.metaDataJSON)); + let t3 = this.createClipboardResultSuccess(); + const i3 = this.metaDataSectionName, r3 = this.metaDataId, a2 = o.cloneToRawJsonObject(this.metaDataJSON); + this.pushLogHeader(this.logHeader); + try { + this.log("Processing clipboard dependency flow UI meta data."), e3.destFlowViewModel.getUiMetadataInfoById(i3, r3) ? this.log("Flow UI meta data already exists. Nothing to do.") : (this.log("Adding flow UI meta data."), e3.destFlowViewModel.setUiMetadataInfo(i3, a2)); + } catch (e4) { + t3 = this.createClipboardResultFailurePasteException(e4, "An error occurred during flow UI meta data paste processing."); + } finally { + this.popLogHeader(), this.log("Processing clipboard dependency flow UI meta data end."); + } + return t3; + } + } + e2.exports = u; + }, 58873: (e2) => { + e2.exports = { askCommon: { invalidInputReceived: "Das ist nicht g\xFCltig.", noInputReceived: "Ich habe keine Eingaben erhalten." }, askForBoolean: { noInput: 'Sagen Sie "Ja", wenn Sie fortfahren m\xF6chten, oder "Nein", wenn Sie es nicht m\xF6chten.', noMatch: 'Bitte sagen Sie "Ja" oder "Nein". M\xF6chten Sie fortfahren?', question: "M\xF6chten Sie fortfahren?", noInputDigitalBot: 'Geben Sie "Ja" ein, wenn Sie fortfahren m\xF6chten, oder "Nein", wenn Sie dies nicht m\xF6chten.', noMatchDigitalBot: 'Bitte geben Sie "Ja" oder "Nein" ein. M\xF6chten Sie fortfahren?' }, askForIntent: { noInput: 'Sprechen Sie einfach einen kurzen Satz, der Ihre Anfrage beschreibt. Zum Beispiel: "\xDCberpr\xFCfe meinen Kontostand"', noMatch: "Sagen Sie mir noch einmal, was Sie m\xF6chten.", question: "Was m\xF6chten Sie tun?", noInputDigitalBot: 'Bitte geben Sie einen kurzen Satz ein, der Ihre Anfrage beschreibt. Zum Bespiel: "\xDCberpr\xFCfe meinen Kontostand"' }, askForSlot: { askFor: "Fragen Sie nach %1$s", noInput: "Bitte sagen oder geben Sie den (bitte geben Sie hier Ihren Slotnamen ein).", noInputWithSlot: "Bitte sagen oder geben Sie den %1$s ein.", noMatch: "Bitte geben Sie mir noch einmal den (bitte geben Sie hier den Namen Ihres Slots an).", noMatchWithSlot: "Bitte geben Sie mir die %1$s noch einmal.", question: "Was ist der (bitte geben Sie hier den Namen Ihres Slots an)?", questionWithSlot: "Was ist die %1$s?", pleaseEnterSlotNameHere: "(bitte tragen Sie hier Ihren Slotnamen ein)", noInputDigitalBot: "Bitte geben Sie den (bitte geben Sie hier Ihren Slotnamen an).", noInputWithSlotDigitalBot: "Bitte geben Sie die %1$s ein.", continuationPromptWithSlot: "Ich habe bis jetzt {{Slot.%1$s}}, bitte fahren Sie fort." }, askForNextSlot: { noInput: 'Sagen Sie "Ja", wenn Sie eine weitere Frage haben, oder "Nein", um den Anruf zu beenden.', noMatch: 'Sagen Sie "Ja", wenn Sie eine weitere Frage haben, oder "Nein", um die Sitzung zu beenden.', question: "Kann ich sonst noch etwas f\xFCr Sie tun?", noInputDigitalBot: 'Geben Sie "Ja" ein, wenn Sie eine weitere Anfrage haben, oder "Nein", um die Sitzung zu beenden.', noMatchDigitalBot: 'Geben Sie "Ja" ein, wenn Sie eine weitere Anfrage haben, oder "Nein", um die Sitzung zu beenden.' }, askForPayment: { noInputDigitalBot: "Bitte geben Sie Ihre Zahlungsinformationen ein, um fortzufahren.", noMatchDigitalBot: "Ich habe Ihre Antwort nicht verstanden. Bitte versuchen Sie es erneut." }, askForAuthentication: { noInputDigitalBot: "Bitte geben Sie Ihre Authentifizierungsinformationen ein, um fortzufahren.", noMatchDigitalBot: "Ich habe Ihre Antwort nicht verstanden. Bitte versuchen Sie es erneut." }, askSurveyQuestion: { notApplicable: "Nicht anwendbar", surveyAnswerOptionSequence: "Dr\xFCcken Sie %1$s f\xFCr %2$s", surveyAnswerNotApplicableSequence: "Dr\xFCcken Sie Stern-Taste f\xFCr Nicht anwendbar.", surveyAnswerNotApplicableWithQuestionSequence: "%1$s. Dr\xFCcken Sie die Stern-Taste f\xFCr Nicht anwendbar.", voiceSurveyNoInputText: "Bitte beantworten Sie die Frage.", voiceSurveyNoMatchText: "Ich habe Sie nicht verstanden." }, commonModule: { exitCommonModule: "Gemeinsames Modul verlassen" }, form: { noInputDigitalBot: "Bitte f\xFCllen Sie das Formular aus, um fortzufahren.", noMatchDigitalBot: "Bitte f\xFCllen Sie das Formular aus, um fortzufahren." }, messagingTemplate: { noInputDigitalBot: "Bitte w\xE4hlen Sie eine der verf\xFCgbaren Optionen aus.", noMatchDigitalBot: "Bitte w\xE4hlen Sie eine der verf\xFCgbaren Optionen aus." }, knowledgeSettings: { knowledgeAnswerHighlightFlowProgressionDefault: "Fortsetzen", knowledgeAnswerHighlightFullArticleDefault: "Vollst\xE4ndigen Artikel anzeigen", knowledgeInitialResponseMulti: "Damit ich Ihr Ziel besser verstehen kann, w\xE4hlen Sie bitte eine Zahl aus der folgenden Liste:", knowledgeInitialResponseMultiRetry: "Bitte w\xE4hlen Sie eine Zahl, zum Beispiel '1'.\nHier ist die Liste der Optionen noch einmal:", knowledgeNoMatch: "Keines davon", knowledgeConfirmation: "Ist damit Ihre Frage beantwortet?", knowledgeFollowup: "Hoffentlich habe ich Ihre Frage beantwortet. Sie k\xF6nnen alles andere fragen, was Sie wissen m\xF6chten." }, noOverlay: { intent: { intentConfirmationStr1: "Ich denke, Sie m\xF6chten", intentConfirmationStr2: "Stimmt das?" }, youSaid: { youSaidConfirmationStr1: "Sie sagten", youSaidConfirmationStr2: "Stimmt das?", youSaidConfirmationStr1DigitalBot: "Sie gaben ein" }, noInput: { noInputStr1: "Bitte sagen oder schreiben Sie die", noInputStr1DigitalBot: "Bitte schreiben Sie die" }, noMatch: { noMatchStr1: "Bitte geben Sie mir die" }, whatIs: { whatIsQuestionStr1: "Was ist die", whatIsQuestionStr2: "?" }, iGotContinuation: { iGotContinuationStr1: "Ich habe", iGotContinuationStr2: "bis jetzt, bitte fahren sie fort." } }, defaultCallFlowOne: "Standard-Anrufablauf", errorHandlingAgentEscalationConfirmation: "Sie m\xF6chten mit einem Berater sprechen. Ist das richtig?", errorHandlingAgentEscalationHandover: "Einen Moment, bitte, ich werde Sie mit jemandem verbinden.", errorHandlingErrorEventHandover: "Entschuldigung, es ist ein Fehler aufgetreten. Einen Moment, bitte, w\xE4hrend ich Sie mit jemandem verbinde, der Ihnen helfen kann.", errorHandlingErrorEventHandoverVoiceSurvey: "Entschuldigung, es ist ein Fehler aufgetreten. Auf Wiedersehen.", errorHandlingRecognitionEventHandover: "Tut mir leid, ich kann Sie nicht verstehen. Einen Moment, bitte, w\xE4hrend ich Sie mit jemandem verbinde, der Ihnen helfen kann.", errorHandlingRecognitionEventHandoverVoiceSurvey: "Tut mir leid, ich habe Probleme, Sie zu verstehen. Auf Wiedersehen.", errorHandlingTTS: "Entschuldigung, ein Fehler ist aufgetreten. Bitte versuchen Sie Ihren Anruf erneut.", initialGreetingTTS: "Hallo, dies ist die erste Begr\xFCssung.", initialState: "Ausgangszustand", initialBotState: "Standard-Bot", initialDigitalBotState: "Erste Begr\xFCssung", initialSurveyBotState: "Umfrage-Bot", intentConfirmation: "Ich glaube, Sie wollen %1$s, ist das richtig?", mainMenu: "Hauptmen\xFC", mainMenuTTS: "Sie befinden sich im Hauptmen\xFC, dr\xFCcken Sie 9, um die Verbindung zu trennen.", mainTask: "Aufgabe", settingsConfirmationNoInputApology: "Entschuldigung, ich habe Sie nicht geh\xF6rt. Bitte sagen Sie Ja oder Nein.", settingsConfirmationNoInputApologyDigitalBot: 'Es tut mir leid, ich habe keine Eingabe von Ihnen erhalten. Bitte geben Sie "Ja" oder "Nein" ein.', settingsConfirmationNoMatchApology: "Entschuldigung, bitte sagen Sie Ja oder Nein.", settingsConfirmationNoMatchApologyDigitalBot: 'Entschuldigung, bitte geben Sie "Ja" oder "Nein" ein.', settingsNoInputApology: "Tut mir leid, ich habe Sie nicht geh\xF6rt.", settingsNoInputApologyDigitalBot: "Tut mir leid, ich habe keine Eingabe von Ihnen erhalten.", settingsEndOfSessionMessageDigitalBot: "Ich habe eine Weile nichts von Ihnen geh\xF6rt, deshalb schliesse ich diesen Chat. Bitte kommen Sie wieder, wenn Sie meine Hilfe ben\xF6tigen. Ich danke Ihnen.", settingsNoMatchApology: "Entschuldigung.", settingsNoToConfirmationApology: "Mein Fehler.", periodicStateName: "Wiederkehrender Zustand" }; + }, 58996: (e2, t2, i2) => { + const n2 = i2(11475), r2 = i2(39938).default, o = i2(45214), a = i2(74803), s = i2(7401), l = i2(89266), u = i2(62229), d = i2(85247), c = i2(5024).default; + function p() { + Object.defineProperties(this, { _commonModules: { writable: true }, _defaultSettings: { writable: true }, _customDefinitions: { writable: true }, _flowMetaData: { writable: true }, _flowSequenceItemList: { writable: true }, _supportedLanguageOptions: { writable: true }, _variables: { writable: true }, _systemInitialValues: { writable: true } }), this.defaultLanguage = void 0, this.description = void 0, this.initialSequence = void 0, this.name = void 0, this.nextTrackingNumber = c.minTrackingId, this.uiMetaData = void 0, this.supportedLanguages = void 0, p.baseConstructor.apply(this, arguments); + } + o.extend(p, "FlowConfiguration"), Object.defineProperties(p.prototype, { commonModules: { enumerable: true, get: function() { + return this._commonModules; + }, set: function(e3) { + const t3 = i2(96128); + this._commonModules = this.reviveArray(e3, t3); + } }, customDefinitions: { enumerable: true, get: function() { + return this._customDefinitions; + }, set: function(e3) { + this._customDefinitions = this.reviveItem(e3, r2); + } }, defaultSettings: { enumerable: true, get: function() { + return this._defaultSettings; + }, set: function(e3) { + this._defaultSettings = new a(e3); + } }, flowMetaData: { enumerable: true, get: function() { + return this._flowMetaData; + }, set: function(e3) { + this._flowMetaData = this.reviveItem(e3, l); + } }, flowSequenceItemList: { enumerable: true, get: function() { + return this._flowSequenceItemList; + }, set: function(e3) { + this._flowSequenceItemList = this.reviveArray(e3, u); + } }, supportedLanguageOptions: { enumerable: true, get: function() { + return this._supportedLanguageOptions; + }, set: function(e3) { + this._supportedLanguageOptions = this.reviveArray(e3, d); + } }, variables: { enumerable: true, get: function() { + return this._variables; + }, set: function(e3) { + this._variables = this.reviveArray(e3, n2); + } }, systemInitialValues: { enumerable: true, get: function() { + return this._systemInitialValues; + }, set: function(e3) { + this._systemInitialValues = this.reviveMap(e3, s, false); + } }, getConfiguration: { value: function(e3, t3) { + if (t3?.isForFlowYaml) { + const t4 = { name: e3.name }; + return e3.description && (t4.description = e3.description), t4; + } + return this; + } } }), e2.exports = p; + }, 59005: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.FormInputType = t2.PROP_IS_REQUIRED = t2.PROP_IS_MULTIPLE_LINE = t2.PROP_PLACEHOLDER_TEXT = t2.PROP_SUBTITLE = t2.PROP_TITLE = void 0; + const n2 = i2(31635), r2 = i2(75849), o = n2.__importStar(i2(9345)), a = i2(80428), s = i2(14394), l = i2(94765); + t2.PROP_TITLE = "title", t2.PROP_SUBTITLE = "subtitle", t2.PROP_PLACEHOLDER_TEXT = "placeholderText", t2.PROP_IS_MULTIPLE_LINE = "isMultipleLine", t2.PROP_IS_REQUIRED = "isRequired"; + class u extends l.ExpressionType { + constructor(e3, t3, i3) { + super(e3, t3, i3); + } + get className() { + return "FormInputType"; + } + convertLitToExpression(e3, t3) { + return ""; + } + _getLiteralValueOfExpression() { + return ""; + } + createExpressionOptionClass() { + return new r2.ExpressionTypeFormInputOptions(); + } + get supportsLiteralEditor() { + return true; + } + getChooser(e3) { + var t3; + if (null === (t3 = e3.propertyParent) || void 0 === t3 ? void 0 : t3.type.isMatch(s.globalTypes.chooser, o.settings.exact)) return e3.propertyParent; + } + getPropTitle(e3) { + return e3.getProperty(t2.PROP_TITLE); + } + getPropSubtitle(e3) { + return e3.getProperty(t2.PROP_SUBTITLE); + } + getPropPlaceholderText(e3) { + return e3.getProperty(t2.PROP_PLACEHOLDER_TEXT); + } + getPropIsMultipleLine(e3) { + return e3.getProperty(t2.PROP_IS_MULTIPLE_LINE); + } + getPropIsRequired(e3) { + return e3.getProperty(t2.PROP_IS_REQUIRED); + } + configurePropertyCreationParams(e3, i3, n3) { + var r3; + switch (super.configurePropertyCreationParams(e3, i3, n3), n3.options.setIninTestingField(`form-input-${i3.name}`), n3.options.setDefaultToNoValue(true), null === (r3 = i3.name) || void 0 === r3 ? void 0 : r3.toLowerCase()) { + case t2.PROP_TITLE: + case t2.PROP_SUBTITLE: + case t2.PROP_PLACEHOLDER_TEXT: + n3.options.setIsOptional(true); + case t2.PROP_IS_MULTIPLE_LINE: + case t2.PROP_IS_REQUIRED: + } + } + } + t2.FormInputType = u, u.typeIdentifier = a.expressionTypeNames.formInput; + }, 59046: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importDefault(i2(87921)), o = i2(80428), a = n2.__importDefault(i2(65302)); + class s extends r2.default { + get className() { + return "CommunicationFacets"; + } + get isCommunicationFacets() { + return true; + } + _facetGetExpressionItemLitValue(e3) { + return e3.getLitAsString(); + } + _facetGetExpressionType() { + return a.default.getGlobalTypeGroup().getType(o.expressionTypeNames.communication, this.isCollection); + } + _facetValidateValue(e3, t3) { + } + } + t2.default = s; + }, 59061: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.isVariableViewModel = function(e3) { + return null == e3 ? void 0 : e3.isVariableViewModel; + }; + const n2 = i2(31635), r2 = i2(17604), o = n2.__importDefault(i2(92140)), a = n2.__importStar(i2(8462)), s = n2.__importDefault(i2(73198)), l = n2.__importStar(i2(81116)), u = i2(27491), d = n2.__importStar(i2(9345)), c = i2(14394), p = n2.__importStar(i2(24032)), _ = n2.__importStar(i2(17498)), h = n2.__importStar(i2(36781)), m = n2.__importDefault(i2(77862)), g = n2.__importStar(i2(58380)), f = i2(11201), T = n2.__importStar(i2(66381)), y = n2.__importStar(i2(1115)), S = i2(79519), A = i2(13116), N = n2.__importDefault(i2(89034)), O = n2.__importDefault(i2(22928)), I = n2.__importStar(i2(14187)), v = n2.__importDefault(i2(65302)), C = i2(85839), b = i2(7401), E = i2(18594), R = i2(47957), w = i2(79353), D = "VariableViewModel", P = p.getTopic(D); + class M extends N.default { + constructor(e3, t3, i3) { + super(), this._isUnavailable = false, this.supportsInitializeDesignTime = true, Object.defineProperties(this, { expansionList: { value: [], enumerable: false }, parent: { value: t3, enumerable: false }, parentFlow: { value: e3, enumerable: false } }), this._loadModel(i3); + } + checkVersion(e3) { + e3.checkVersion(this.type.version); + } + get className() { + return D; + } + clone() { + return new w(this); + } + get deletionTooltip() { + return this.getDeletionTooltip(); + } + getDeletionTooltip(e3) { + let t3; + return this.isSlotVariable ? t3 = R.variable.cannotDeleteVariableReasonSlot : this.isSystemVariable ? t3 = R.variable.cannotDeleteVariableReasonIsSystem : this.isInPublishedFlowSchema ? this.isInput && this.isOutput ? t3 = R.variable.cannotDeleteVariableReasonInputOutput : this.isInput ? t3 = R.variable.cannotDeleteVariableReasonInput : this.isOutput && (t3 = R.variable.cannotDeleteVariableReasonOutput) : this.hasUsages && (t3 = R.variable.cannotDeleteVariableReasonUsages), t3 ? (0, r2.sprintf)(R.variable.variableCannotBeDeleted, t3) : e3 ? void 0 : R.variable.variableDeleteTooltip; + } + get allowInitialValueForReadOnly() { + return this.model.allowInitialValueForReadOnly; + } + get deprecatedId() { + return this.model.deprecatedId; + } + get deprecatedName() { + return this.model.deprecatedName; + } + get description() { + return o.default.isObject(this.model.descriptionOverrides) && this._model.descriptionOverrides[this.parentFlow.type] || this._model.description; + } + set description(e3) { + const t3 = {}; + this.getDescriptionCanSet(t3) ? this._model.description = e3 : P.errorPropertySet(this, "description", e3, t3.code); + } + setSlotVariableDescription(e3, t3) { + t3 ? this._model.description = e3 : this.description = e3; + } + destroy() { + var e3, t3, i3; + this._destroyed ? (null === (e3 = this.parentFlow) || void 0 === e3 ? void 0 : e3.validationResults) && this.parentFlow.loaded && this.parentFlow.validationResults.removeIssues(this) : (this.initValue && (this.initValue.destroy(), this.initValue.type.isCustomizablePerFlow && (null === (t3 = this.parentFlow.definitions.getCustomDataTypeDefinition(this.initValue.type.dataType)) || void 0 === t3 || t3.removeUsage(this))), this.usages = {}, this._destroyed = true, this.parent && this.parent.removeVariable && this.parent.removeVariable(this), this.isSlotVariable && (null === (i3 = this.parentFlow.nluMetaData) || void 0 === i3 || i3.removeSlotByVariableId(this.id)), h.emitter.emit(h.variableDestroyed, this), this.expansionList.length = 0, y.clearIssues(this)); + } + get iconGux() { + return this.type.getIconGux(); + } + get isNeeded() { + return this.hasUsages || this.isInPublishedFlowSchema || this.isSlotVariable || this.isFormScopedVariable; + } + get isDestroyed() { + return this._destroyed; + } + isDestroying() { + return this._destroyed; + } + get isDestroyedOrDestroying() { + return this._destroyed; + } + get expandedKey() { + return O.default.getExpandedKey(this.name, this.id, this.parent); + } + get facets() { + return this.model.facets; + } + set facets(e3) { + this.model.facets = e3 || this.model.facets; + } + fireVariableChanged() { + const e3 = { newVariable: this, oldVariable: { _destroyed: false, name: this.name } }; + return g.fireEvent(this.parent, h.variableChanged, e3); + } + getConfiguration(e3, t3) { + if (null == t3 ? void 0 : t3.isForFlowYaml) { + if (this.isFlowManagedVariable && !this.getInitialValueSupported()) return; + const i3 = { name: this.name }; + if (this.isUserCreatable && (i3.description = this.description), this.initValue.outOfService || (i3.initialValue = this._initialValue.getConfiguration(e3, t3)), this.isSecure && (i3.isSecure = true), this.canSetInputMetaData && (i3.isInput = this.isInput), this.canSetOutputMetaData && (i3.isOutput = this.isOutput), this.type.isCustomType && this.type.customTypeNamespace && (this.type.addYamlExportTypeInfo(i3), this.type.doesNamespaceSupportInputOutput)) switch (this.type.customTypeContext) { + case S.CustomJsonContext.error: + i3.type[this.type.customTypeNamespace].error = true; + break; + case S.CustomJsonContext.input: + i3.type[this.type.customTypeNamespace].input = true; + break; + case S.CustomJsonContext.output: + i3.type[this.type.customTypeNamespace].output = true; + } + return o.default.tryWrapObject(i3, `${this.type.yamlTypeName}Variable`); + } + return this.model; + } + getDescriptionCanSet(e3, t3, i3) { + return !!this._getVarIsWritable(t3 ? e3 : void 0) && !this.isFlowManagedOrSystem; + } + getExpressionTextWithNameFallback() { + return this.expressionText ? this.expressionText : this.name; + } + get expressionText() { + if (this._model.expressionText) return this._model.expressionText; + } + getInitialValueCanSet(e3, t3) { + return !!this._getVarIsWritable(t3 ? e3 : void 0) && !!f.variablePropertySupportedSetService.getCanSetVariableFlowSchemaInputDependentProperty(e3, this.isInPublishedFlowInputSchema) && this.getInitialValueSupported(); + } + getInitialValueSupported() { + return !("__CALL_INVOCATION_DATA__" !== this.model.id || !this.parentFlow.isVoiceSurveyFlow) || !((this.isSystemVariable || this.isFormScopedVariable || this.isFlowManagedSlotVariable) && !this.allowInitialValueForReadOnly || !this.initValue); + } + getNameCanSet(e3, t3) { + return !!this._getVarIsWritable(t3 ? e3 : void 0) && !this.isFlowManagedOrSystem && f.variablePropertySupportedSetService.getCanSetVariableFlowSchemaDependentProperty(e3, this.isInPublishedFlowInputSchema, this.isInPublishedFlowOutputSchema); + } + getIsInputCanSet(e3, t3) { + return !!this._getVarIsWritable(t3 ? e3 : void 0) && f.variablePropertySupportedSetService.getCanSetScopedVariableTypeAsInput(e3, this.parentFlow, this.scope, this.isInPublishedFlowInputSchema, this.type); + } + getIsInputSupported(e3) { + return f.variablePropertySupportedSetService.getFlowTypeSupportsScopedInputVariableOfType(e3, this.parentFlow, this.scope, this.type); + } + getIsOutputCanSet(e3, t3) { + return !!this._getVarIsWritable(t3 ? e3 : void 0) && f.variablePropertySupportedSetService.getCanSetScopedVariableTypeAsOutput(e3, this.parentFlow, this.scope, this.isInPublishedFlowOutputSchema, this.type); + } + getIsOutputSupported(e3) { + return f.variablePropertySupportedSetService.getFlowTypeSupportsScopedOutputVariableOfType(e3, this.parentFlow, this.scope, this.type); + } + getScopeCanSet(e3, t3) { + return !!this._getVarIsWritable(t3 ? e3 : void 0) && !this.isFlowManagedOrSystem && f.variablePropertySupportedSetService.getCanSetVariableFlowSchemaDependentProperty(e3, this.isInPublishedFlowInputSchema, this.isInPublishedFlowOutputSchema); + } + getIsSecureCanSet(e3, t3) { + return !!this._getVarIsWritable(t3 ? e3 : void 0) && (this.getIsSecureSupported(e3) || this.isSecure); + } + getIsSecureSupported(e3) { + return f.variablePropertySupportedSetService.getFlowTypeSupportsSecureVariables(e3, this.parentFlow); + } + getIsDeprecatedIdMatch(e3) { + return !(!this.deprecatedId || !e3) && this.deprecatedId === e3; + } + getIsDeprecatedNameMatch(e3) { + return !(!this.deprecatedName || !e3) && this.deprecatedName.toLocaleLowerCase() === e3.toLocaleLowerCase(); + } + initializeDesignTime() { + this.isSlotVariable && (this._slotHandling = void 0), this.initValue && this.initValue.initializeDesignTime(), this._setOutOfService(); + } + get initializeDesignTimeCalled() { + return !this.initValue || this.initValue.initializeDesignTimeCalled; + } + get isInPublishedFlowSchema() { + return !!(this.parentFlow && this.parentFlow.info && this.isFlowVariable) && this.parentFlow.info.hasSchemaVariable(this.name); + } + get isInPublishedFlowInputSchema() { + return !!(this.parentFlow && this.parentFlow.info && this.isFlowVariable) && this.parentFlow.info.hasSchemaInputVariable(this.name); + } + get isInPublishedFlowOutputSchema() { + return !!(this.parentFlow && this.parentFlow.info && this.isFlowVariable) && this.parentFlow.info.hasSchemaOutputVariable(this.name); + } + get isFlowVariable() { + return !!this.parent && !!this.parent.isFlowViewModel; + } + get isInternal() { + return this.model.isInternal; + } + set isInternal(e3) { + this.model.isInternal = e3; + } + get isInput() { + return this.model.isInput; + } + set isInput(e3) { + if (this.model.isInput === e3) return; + const t3 = {}; + this.getIsInputCanSet(t3) ? (this.model.isInput = e3, y.validateItem(this)) : P.errorPropertySet(this, "isInput", e3, t3.code); + } + get isOutput() { + return this.model.isOutput; + } + set isOutput(e3) { + if (this.model.isOutput === e3) return; + const t3 = {}; + this.getIsOutputCanSet(t3) ? (this.model.isOutput = e3, y.validateItem(this)) : P.errorPropertySet(this, "isOutput", e3, t3.code); + } + get isInputOrOutput() { + return this.isInput || this.isOutput; + } + isMatch(e3, t3, i3) { + if (t3 && t3.setComparisonObjects(this, e3), !e3 || !e3.isVariableViewModel) return t3 && t3.addCompareToIncompatible(), false; + let n3 = true; + if (i3 || (i3 = { matchInput: true, matchName: "caseInsensitive", matchOutput: true, matchType: d.settings.exact, shortCircuit: false }), i3.matchType) { + let r3; + if (this.type ? this.type.isMatch(e3.type, i3.matchType) || (r3 = true) : e3.type && (r3 = true), r3) { + if (t3 && t3.addDataTypeMismatch(this.type, e3.type), i3.shortCircuit) return false; + n3 = false; + } + } + if (i3.matchName) { + let r3; + if (this.name ? r3 = "caseInsensitive" === i3.matchName ? this.lowerName !== e3.lowerName : this.name !== e3.name : e3.name && (r3 = true), r3) { + if (t3 && t3.addNameMismatch(this.name, e3.name), i3.shortCircuit) return false; + n3 = false; + } + } + if (i3.matchInput && this.isInput !== e3.isInput) { + if (t3 && t3.addInputMismatch(this.isInput, e3.isInput), i3.shortCircuit) return false; + n3 = false; + } + if (i3.matchOutput && this.isOutput !== e3.isOutput) { + if (t3 && t3.addOutputMismatch(this.isOutput, e3.isOutput), i3.shortCircuit) return false; + n3 = false; + } + return n3; + } + get isReadOnly() { + return this.model.isReadOnly || this.isFormScopedVariable || this.isFlowManagedSlotVariable; + } + get isSecure() { + return this.model.isSecure; + } + set isSecure(e3) { + if (this.model.isSecure === e3) return; + const t3 = {}; + this.getIsSecureCanSet(t3) ? (this.model.isSecure = e3, this.hasUsages && this.updateSecurityForUsages(), y.validateItem(this)) : P.errorPropertySet(this, "isSecure", e3, t3.code); + } + get isSystemOrFlowVariable() { + return this.isSystemVariable || this.isFlowVariable; + } + get isSystemVariable() { + return this.model.isSystemVariable; + } + get isSystemScopedVariable() { + return I.hasScope(I.scopes.system, this.name); + } + get isStateVariable() { + return !!this.parent && !!this.parent.isStateLike; + } + get isTaskVariable() { + return !!this.parent && !!this.parent.isTaskLike; + } + get isSlotVariable() { + return I.hasScope(I.scopes.slot, this.name); + } + get isFlowManagedSlotVariable() { + const e3 = this.slotHandling; + return e3 === A.SlotHandlingType.surveyFormQuestionFollowUpSlot || e3 === A.SlotHandlingType.surveyFormQuestionSlot; + } + get isFlowManagedVariable() { + return this.isSlotVariable || this.isFormScopedVariable; + } + get isFlowManagedOrSystem() { + return this.isSystemVariable || this.isFlowManagedVariable; + } + get isStandardSlotVariable() { + return this.slotHandling === A.SlotHandlingType.standardSlot; + } + get isFlowScopedVariable() { + return I.hasScope(I.scopes.flow, this.name); + } + get isFormScopedVariable() { + return I.hasScope(I.scopes.form, this.name); + } + get slotHandling() { + var e3, t3; + if (this.isSlotVariable) { + if (!this._slotHandling) { + const i3 = null === (t3 = null === (e3 = this.parentFlow.botFlowSettings) || void 0 === e3 ? void 0 : e3.surveyFormInfo) || void 0 === t3 ? void 0 : t3.formToSlotVariableMappings; + if (i3) { + let e4; + Object.values(i3 || {}).forEach((t4) => { + null == t4 || t4.forEach((t5) => { + var i4; + t5.variableId === this.id && ((null === (i4 = this.name) || void 0 === i4 ? void 0 : i4.endsWith(m.default.variable.nameFollowUpSuffix)) ? this._slotHandling = A.SlotHandlingType.surveyFormQuestionFollowUpSlot : this._slotHandling = A.SlotHandlingType.surveyFormQuestionSlot, e4 = true); + }); + }), e4 || (this._slotHandling = A.SlotHandlingType.standardSlot); + } else this._slotHandling = A.SlotHandlingType.standardSlot; + } + return this._slotHandling; + } + } + get taskLikeContainerName() { + return this.isFlowScopedVariable || this.isSlotVariable || !this.parent ? void 0 : this.parent.containerLabelAndName; + } + get isUnavailable() { + return this._isUnavailable; + } + set isUnavailable(e3) { + this._isUnavailable = !!e3; + } + get isVariableViewModel() { + return true; + } + get isGlobalVariable() { + return I.getIsGlobalScope(this.scope); + } + get lowerName() { + return this._cachedLowerCaseName || (this._cachedLowerCaseName = this.name ? this.name.toLocaleLowerCase() : ""), this._cachedLowerCaseName; + } + get lowerUnscopedName() { + return this._cachedLowerUnscopedName || (this._cachedLowerUnscopedName = this.model.unscopedName ? this.model.unscopedName.toLocaleLowerCase() : ""), this._cachedLowerUnscopedName; + } + get canSetInputMetaData() { + return !this.isSystemVariable && (this.isTaskVariable && this.parentFlow.supportsTaskInputVariables || this.isFlowVariable && this.parentFlow.supportsFlowInputVariables); + } + get canSetOutputMetaData() { + return !this.isSystemVariable && (this.isTaskVariable && this.parentFlow.supportsTaskOutputVariables || this.isFlowVariable && this.parentFlow.supportsFlowOutputVariables); + } + get model() { + return this._model; + } + get modelType() { + return this.model.__type; + } + get hasUsages() { + return !!this.usages && !o.default.isEmpty(this.usages); + } + get name() { + return this._model.name; + } + set name(e3) { + e3 !== this.name && (this.getNameCanSet() ? (o.default.each(this.expansionList, (t3) => { + t3.name = e3 + t3.name.substring(this.name.length); + }), this._model.name = e3, this._cachedLowerCaseName = void 0, this._cachedLowerUnscopedName = void 0, y.validateItem(this)) : P.errorPropertySet(this, "name", e3)); + } + get initValue() { + return this._initialValue; + } + get parentId() { + return this.parent ? this.parent.id : void 0; + } + get scope() { + return I.getScope(this.name); + } + get type() { + return "urn:inin.com:Arch:promptVar" === this.model.__type ? c.globalTypes.prompt : this.model.typeIdentifier ? v.default.resolveType(this.parentFlow, this.model.typeIdentifier) : v.default.getTypeFromIcwsType(this.parentFlow, this.model.__type, this.model.isCollection); + } + get unscopedName() { + return I.getUnscopedName(this.name); + } + validate(e3) { + var t3, i3; + if (!this.parentFlow || !this.parentFlow.loaded) return; + e3.removeIssues(this); + const n3 = {}; + if (this.name && 0 !== this.name.trim().length || this.addValidationError(R.errors.noName, e3), !this.isSystemVariable && !this.isInternal) { + const t4 = u.expressionDataService.getInvalidIdentifierCharacters(this.name); + t4.length > 0 && t4.forEach((t5) => this.addValidationError((0, r2.sprintf)(R.errors.nameContainsInvalidCharacter, t5), e3)); + } + if (this.type.isAvailableForFlow(this.parentFlow) || this.addValidationError((0, r2.sprintf)(R.expression.unavailableDataType, this.type.displayString), e3), this.initValue && !this.initValue.outOfService && (this.getInitialValueSupported() ? (this.initValue.validate(e3), this.initValue.hasError && this.addValidationError(R.variable.initialValueError, e3)) : this.addValidationError(R.variable.initialValueNotSupported, e3)), this.isOutput && !this.getIsOutputSupported(n3) && this.addValidationError(n3, e3), this.isInput && !this.getIsInputSupported(n3) && this.addValidationError(n3, e3), this.isSecure && (this.getIsSecureSupported(n3) && f.variablePropertySupportedSetService.getIsSecureOutputOk(n3, this.isOutput, true) && f.variablePropertySupportedSetService.getIsSecureInputOk(n3, this.isInput, true) || this.addValidationError(n3, e3), this.isSlotVariable && this.parentFlow.isNluFlow)) { + const n4 = null === (i3 = null === (t3 = this.parentFlow.botFlowSettings.nluDomain) || void 0 === t3 ? void 0 : t3.intents) || void 0 === i3 ? void 0 : i3.filter((e4) => { + var t4; + return (null === (t4 = e4.entityNameReferences) || void 0 === t4 ? void 0 : t4.length) && e4.entityNameReferences.find((e5) => e5 === this.unscopedName); + }).map((e4) => "'" + e4.name + "'"); + if (null == n4 ? void 0 : n4.length) { + const t4 = 1 === n4.length ? (0, r2.sprintf)(R.intents.secureSlotVariableUsedInIntentUtterance, this.name, this.unscopedName, n4[0]) : (0, r2.sprintf)(R.intents.secureSlotVariableUsedInIntentUtteranceMoreThanOne, this.name, this.unscopedName, T.getListDisplayString(n4)); + this.addValidationError(t4, e3); + } + } + this.isSystemVariable || this.isNeeded || this.addValidationWarning((0, r2.sprintf)(R.errors.unusedVariable, this.name), e3); + } + addValidationError(e3, t3, i3) { + i3 || t3.addError(this, e3.displayString ? e3.displayString : e3); + } + addValidationWarning(e3, t3, i3) { + i3 || t3.addWarning(this, e3.displayString ? e3.displayString : e3); + } + updateDependencies() { + var e3; + (null === (e3 = this._initialValue) || void 0 === e3 ? void 0 : e3.outOfService) || _.registerExpression(this._initialValue); + } + get isPartOfEnum() { + return !!this.type.isEnumOrEnumContainer || !(!this.hierarchicalParent || !this.hierarchicalParent.type.isEnumOrEnumContainer); + } + get hierarchicalParent() { + } + get isUserCreatable() { + return !this.isFlowManagedOrSystem; + } + _canDelete() { + return this._getVarIsWritable() && !this.isNeeded; + } + _loadModel(e3) { + if (e3) { + if (this.model && o.default.each(this.model, (e4, t3) => { + this.hasOwnProperty(e4) && "name" !== t3 && delete this[t3]; + }), this._model = e3, o.default.each(this.model, (e4, t3) => { + if ("__type" === t3) return; + if ("name" === t3) return; + if ("description" === t3) return; + if ("descriptionOverrides" === t3) return; + if ("isSecure" === t3) return; + if ("isInput" === t3) return; + if ("isOutput" === t3) return; + const i3 = "id" === t3; + E(this, this.model, t3, i3); + }), this.model.allowInitialValueForReadOnly || !this.model.isSystemVariable || this.getInitialValueSupported()) { + const e4 = C.getDefaultText(this.type.dataType); + this.model.initialValue || (this.model.initialValue = new b()); + const t3 = this.model.initialValueOptionsCallback ? this.model.initialValueOptionsCallback() : a.buildOptions(this.type, void 0, this.parentFlow); + t3.setAsInput(true).setAllowEmptyConfig(true).setIsOptional(true).setAllowEmbeddedExpressionsInLiteralMode(false).setDefaultText(e4 || "").setDefaultToNoValue(true).setAssignablePropertiesNoExpression(true).setAllowModeLiteral(this.allowInitialValueLiteralMode).setModeNoValueSelectionLabel(t3.modeNoValueSelectionLabel || R.expression.noValue.selection.useDefault).setModeNoValueRuntimeEvaluationStr(this.type.isCollection ? R.expression.noValue.selectionRuntimeEvaluation.variableInitialValue.emptyCollection : s.default.notSet), this._initialValue = l.expression(this.parentFlow, this, this.model.initialValue, R.variable.initialValueLabel, this.type, null, t3); + } + this.isUnavailable = e3.isUnavailable; + } + } + get allowInitialValueLiteralMode() { + var e3; + return !(!this.type.supportsLiteralEditor || false === (null === (e3 = this.type.singletonType) || void 0 === e3 ? void 0 : e3.supportsLiteralEditor)) && (!this.type.singletonType.hasPropertiesAndAllAreReadOnly || !this.type.isCustomType && (!this.isReadOnly || this.allowInitialValueForReadOnly)); + } + _getVarIsWritable(e3) { + return !(!f.variablePropertySupportedSetService.getIsVariableWritable(e3, !this.isReadOnly) || !f.variablePropertySupportedSetService.getIsFlowEditable(e3, this.parentFlow)); + } + _setOutOfService() { + this._initialValue && (this._initialValue.outOfService = !this.getInitialValueSupported()); + } + toString() { + var e3; + return `Variable id:${this.id} type:${null === (e3 = this.type) || void 0 === e3 ? void 0 : e3.displayString} scope:${this.scope} parentId:${this.parentId}`; + } + get displayValue() { + return this.model.displayValue; + } + get doNotCleanupIfOrphanedSlot() { + return !!this.model.doNotCleanupIfOrphanedSlot; + } + set doNotCleanupIfOrphanedSlot(e3) { + this.isSlotVariable && (this.model.doNotCleanupIfOrphanedSlot = !!e3); + } + } + t2.default = M; + }, 59123: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(17405)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "communication"; + } + get displayTypeName() { + return "ArchValueCommunication"; + } + get isArchValueCommunication() { + return true; + } + } + t2.default = r2; + }, 59177: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importDefault(i2(92140)), o = n2.__importDefault(i2(78432)), a = n2.__importDefault(i2(98114)), s = n2.__importDefault(i2(67336)); + class l extends s.default { + constructor(e3) { + super(e3), this._coreCommonModuleSettingsViewModel = e3; + } + get displayTypeName() { + return "ArchSettingsCommonModuleFlow"; + } + get isArchSettingsCommonModuleFlow() { + return true; + } + get logStr() { + if (!this._coreCommonModuleSettingsViewModel) return this.logStrTypeOnly; + const e3 = []; + return this._appendLogStrType(e3, this.displayTypeName), this._appendLogStrCompatibleFlowTypes(e3, this.compatibleFlowTypes), this._createLogStrFromParts(e3); + } + get compatibleFlowTypes() { + return [...this._coreCommonModuleSettingsViewModel.destinationFlowTypes]; + } + _ensureFlowTypeIsValidCompatibleFlowType(e3, t3) { + this._checkItemIsValidLiteralStringEnum(e3, t3, o.default.FLOW_TYPES_ALL); + const i3 = a.default.getDefinitionForFlowType(t3); + this._checkItem(e3, r2.default.isUndefined(i3), `INTERNAL ERROR - unable to find a core flow definition for the flow type '${t3}'`); + const n3 = this.coreFactory.createArchWrapper(i3); + this._checkItem(e3, !n3.isCommonModuleCompatibleFlowType, `the flow type '${t3}' is not valid a valid compatible flow type.`); + } + addCompatibleFlowType(e3) { + this._ensureFlowTypeIsValidCompatibleFlowType(this._infoParm("flowType", "addCompatibleFlowType"), e3); + const t3 = this._coreCommonModuleSettingsViewModel.destinationFlowTypes; + t3.indexOf(e3) < 0 && (t3.push(e3), this._coreCommonModuleSettingsViewModel.destinationFlowTypes = t3); + } + removeCompatibleFlowType(e3) { + this._ensureFlowTypeIsValidCompatibleFlowType(this._infoParm("flowType", "removeCompatibleFlowType"), e3); + const t3 = this._coreCommonModuleSettingsViewModel.destinationFlowTypes, i3 = t3.indexOf(e3); + i3 >= 0 && (t3.splice(i3, 1), this._coreCommonModuleSettingsViewModel.destinationFlowTypes = t3); + } + } + t2.default = l; + }, 59193: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(83663)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "card"; + } + get buttons() { + return this._getAssignableProperty("buttons"); + } + get description() { + return this._getAssignableProperty("description"); + } + get displayTypeName() { + return "ArchValueCard"; + } + get image() { + return this._getAssignableProperty("image"); + } + get title() { + return this._getAssignableProperty("title"); + } + get isArchValueCard() { + return true; + } + } + t2.default = r2; + }, 59263: (e2, t2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.ExpressionParameters = void 0, t2.ExpressionParameters = class { + constructor(e3, t3, i2, n2, r2, o, a) { + this.parentFlow = e3, this.parent = t3, this.model = i2, this.label = n2, this.isInternal = r2, this.options = o, this.transitory = a, this.type = null, this.propertyName = null; + } + }; + }, 59288: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.createBranchItem = function(e3, t3, i3, n3, u2) { + let d = t3; + r2.default.isString(t3) && (d = new s({ label: t3, outputId: u2 || (0, o.uuid)() })); + const c = new a.default(d, i3, n3); + return l[e3] || (l[e3] = {}), l[e3][d.outputId] = c, d; + }, t2.createBranchItemDynamic = function(e3, t3, i3, n3, r3) { + const o2 = this.createBranchItem(e3, t3, i3, n3, r3); + return o2 && (o2.isDynamicBranch = true), o2; + }, t2.findBranch = function(e3, t3) { + return u(e3, t3) || {}; + }, t2.removeBranch = function(e3, t3) { + const i3 = u(e3, t3); + return !(!i3 || i3.required) && (delete l[e3][t3], true); + }, t2.setBranchConsumer = function(e3, t3, i3, n3) { + const r3 = u(e3, t3); + return !!r3 && r3.addConsumer(i3, n3); + }, t2.removeBranchConsumer = function(e3, t3, i3) { + const n3 = u(e3, t3); + return !!n3 && n3.removeConsumer(i3); + }; + const n2 = i2(31635), r2 = n2.__importDefault(i2(92140)), o = i2(9456), a = n2.__importDefault(i2(34727)), s = i2(57632), l = {}; + function u(e3, t3) { + const i3 = l[e3]; + if (i3) return i3[t3]; + } + }, 59328: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.EmptyError = void 0; + var n2 = i2(9619); + t2.EmptyError = n2.createErrorClass(function(e3) { + return function() { + e3(this), this.name = "EmptyError", this.message = "no elements in sequence"; + }; + }); + }, 59393: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.jsonParseItemFacet = void 0, t2.validateLiteralJson = function(e3, t3) { + let i3 = { errorText: null, errorPosition: null }; + return !(function(e4) { + let t4 = false; + const n3 = null == e4 ? void 0 : e4.replace(/\t/g, "").replace(/\n/g, "").replace(/ /g, ""); + return ("undefined" === e4 || "" === n3) && (t4 = true), t4 && (i3 = { errorText: r2.json.genericError.jsonMustNotBeUndefinedOrBlank, errorPosition: null }), t4; + })(o2 = e3) && (function(e4) { + let t4 = true; + try { + JSON.parse(e4); + } catch (e5) { + !(function(e6) { + const t5 = new RegExp(" \\(line [0-9]+ column [0-9]+\\)"); + let o3 = null == e6 ? void 0 : e6.toString(); + if (!(null == o3 ? void 0 : o3.length)) return; + if (t5.test(o3)) { + const e7 = o3.match(t5)[0]; + o3 = o3.split(e7)[0]; + } + const a = o3.split(" "), s = a[a.length - 1], l = a[a.length - 2]; + let u = ""; + const d = { errorText: null, errorPosition: null }; + if (isNaN(parseInt(s)) || "position" !== l) if (u = o3, u.includes("Unexpected token")) { + const e7 = u.split("Unexpected token")[1].split(", ")[0]; + d.errorText = (0, n2.sprintf)(r2.json.genericError.jsonUnexpectedToken, e7); + } else d.errorText = "SyntaxError: Unexpected end of JSON input" === u ? r2.json.genericError.unexpectedEndOfJson : r2.json.genericError.invalidJson; + else { + const e7 = parseInt(s); + switch (u = o3.split(" at position")[0], u) { + case "SyntaxError: Expected property name or '}' in JSON": + d.errorText = r2.json.positionError.jsonExpectedPropNameOrClosingCurly; + break; + case "SyntaxError: Unterminated string in JSON": + d.errorText = r2.json.positionError.jsonUnterminatedString; + break; + case "SyntaxError: Expected ':' after property name in JSON": + d.errorText = r2.json.positionError.jsonExpectedColonAfterPropName; + break; + case "SyntaxError: Unexpected non-whitespace character after JSON": + d.errorText = r2.json.positionError.jsonExpectedNonWhitespaceCharacter; + break; + case "SyntaxError: Expected ',' or '}' after property value in JSON": + d.errorText = r2.json.positionError.jsonExpectedCommaOrClosingCurlyAfterPropValue; + break; + default: + d.errorText = r2.json.positionError.jsonError; + } + d.errorPosition = e7; + } + i3 = d; + })(e5), t4 = false; + } + return t4; + })(o2) ? { errorText: null, errorPosition: null } : i3; + var o2; + }, t2.getDisplayString = function(e3) { + if (e3.errorText || e3.errorCoordinates) { + if (!e3.errorCoordinates) return e3.errorText; + if (e3.errorCoordinates && e3.errorText) { + const t3 = (e3.errorCoordinates.line + 1).toString(), i3 = e3.errorCoordinates.ch.toString(); + return (0, n2.sprintf)(r2.json.positionError.jsonErrorWithPosition, e3.errorText, (0, n2.sprintf)(r2.json.positionError.jsonErrorPosition, t3, i3)); + } + } + }; + const n2 = i2(17604), r2 = i2(47957); + var o; + !(function(e3) { + e3.propFacetAllowableValue = "propFacetAllowableValue", e3.propFacetRequiredProperties = "propFacetRequiredProperties", e3.propFacetMinItems = "propFacetMinItems", e3.propFacetMaxItems = "propFacetMaxItems", e3.propFacetMinLength = "propFacetMinLength", e3.propFacetMaxLength = "propFacetMaxLength", e3.propFacetMinValue = "propFacetMinValue", e3.propFacetMaxValue = "propFacetMaxValue", e3.propFacetReferencedObjectNotFound = "propFacetReferencedObjectNotFound"; + })(o || (t2.jsonParseItemFacet = o = {})); + }, 59421: (e2, t2, i2) => { + "use strict"; + const n2 = i2(31635), r2 = i2(96618), o = i2(17604), a = n2.__importDefault(i2(92140)), s = n2.__importDefault(i2(73198)), l = n2.__importStar(i2(63824)), u = n2.__importStar(i2(63352)), d = n2.__importDefault(i2(51499)), c = i2(79467), p = i2(49892), _ = i2(81516), h = i2(99469), m = n2.__importDefault(i2(27203)), g = i2(17485), f = i2(47976), T = n2.__importStar(i2(36781)), y = i2(12179), S = n2.__importDefault(i2(97891)), A = i2(28803), N = n2.__importDefault(i2(88391)), O = i2(80428), I = i2(96347), v = i2(47957); + class C extends N.default { + constructor(e3, t3) { + super(e3, t3); + } + get applicationName() { + const e3 = this.botRunnableManager.getItem(this.botRunnableProperty.idValue, this); + return null == e3 ? void 0 : e3.applicationName; + } + get botRunnableProperty() { + return this.bot; + } + get botCategoryProperty() { + return this.botIntegration; + } + static get branchInfo() { + return [m.default.failure]; + } + get botRunnableNetworkGetCall() { + return I.getSingleBot; + } + get isNuanceMixAction() { + return true; + } + static get managedProperties() { + return [{ dataList: true, isOutput: true, property: "errorBindings", yamlOptions: C.createYamlOptions("errorBindings", (e3) => e3.setPropertyName("failureOutputs")) }, { property: "bot", skipNetworkPropertyDependencyUpdate: true, createDetails: A.NetworkBasedActionProperty.createCreateDetails("botId", "botName", g.nuanceMixBotManager, v.botGeneric.mustSelectBotNameGeneric, v.botGeneric.selectedBotNameNotFound, "botIntegration"), yamlOptions: C.createYamlOptions("bot", (e3) => e3.setSkipProperty(true)) }, { property: "botIntegration", skipNetworkPropertyDependencyUpdate: true, createDetails: A.NetworkBasedActionProperty.createCreateDetails("botIntegrationId", "botIntegrationName", f.nuanceMixIntegrationManager, v.nuanceMix.mustSelectNuanceMixBotIntegration, v.botGeneric.selectedBotIntegrationNotFound, null), yamlOptions: C.createYamlOptions("botIntegration", (e3) => e3.setSkipProperty(true)) }, { property: "outputs", dataPairListCollection: true, isOutput: true, options: h.ManagedPropertyOptions.create((e3) => e3.setIsOptional(true)), yamlOptions: C.createYamlOptions("outputs", (e3) => e3.setPropertyName("intents")) }, { label: v.bot.followupResponseTimeoutLabel, type: O.expressionTypeNames.duration, options: c.ExpressionTypeDurationOptions.create((e3) => e3.setDefaultText(s.default.litDurationTwelveHours).setDescriptionInfo(v.bot.followupResponseTimeoutLabel, v.bot.followupResponseTimeoutDescription).setDurationStyle(l.durationStyles.fullDuration).setIninTestingField("followupResponseTimeoutExpression").facets.setMinDur(0, true)), yamlOptions: C.createYamlOptions("followupResponseTimeout", (e3) => e3.setExportOrder(2)), property: "followupResponseTimeout", supportedFlowTypes: [r2.flowTypes.flowTypeInboundShortMessage, r2.flowTypes.flowTypeInQueueShortMessage] }, { property: "botVariables", options: p.ExpressionTypelessOptions.create((e3) => e3.setIsOptional(true)), dataList: true, isOutput: false, yamlOptions: C.createYamlOptions("botVariables", (e3) => e3.setPropertyName("botVariables")) }, { label: v.botGeneric.inputTextLabelGeneric, type: O.expressionTypeNames.string, options: _.ExpressionTypeStringOptions.create((e3) => e3.setDescriptionInfo(v.botGeneric.inputTextLabelGeneric, v.botGeneric.inputTextDescriptionGeneric).setIninTestingField("inputTextExpression").setIsOptional(true)), optionsForSpecificFlowTypes: [{ flowTypes: [r2.flowTypes.flowTypeInboundShortMessage, r2.flowTypes.flowTypeInQueueShortMessage], options: _.ExpressionTypeStringOptions.create((e3) => e3.setDefaultText(s.default.messageBodyVariable).setDefaultToExpression(true).setIninTestingField("inputTextExpression").setDoNotTransitionToNoValue(true).setIsOptional(true)) }], yamlOptions: C.createYamlOptions("inputText", (e3) => e3.setExportOrder(1)), property: "inputText", supportedFlowTypes: [r2.flowTypes.flowTypeInboundShortMessage, r2.flowTypes.flowTypeInQueueShortMessage] }, { property: "channelId", label: v.nuanceMix.channel, type: O.expressionTypeNames.string, options: _.ExpressionTypeStringOptions.create((e3) => e3.setDescriptionInfo(v.nuanceMix.channel, v.nuanceMix.channelDescription).setIninTestingField("NuanceMixBotChannelExpression").facets.setTrim(true)) }]; + } + updateBotActionFromBotRunnable(e3) { + const t3 = g.nuanceMixBotManager.mergeSchemaProperties(e3 ? e3.botVariables : [], this.botVariables); + return this._processMergedSchema(t3), this.channelId.outOfService = !e3, this.channelId.options.facets.setAllowableValues(this.getAllowableChannels(), true), e3 || this.channelId.setAsLiteral(""), super.updateBotActionFromBotRunnable(e3); + } + postProcessYamlConfig(e3, t3, i3) { + this.botRunnableProperty.idValue || this.removeYamlExportPropsThatRequireRunnable(e3); + const n3 = this.botIntegration.nameValue; + if (!n3) return; + e3.botIntegration = {}; + const r3 = e3.botIntegration[n3] = {}; + if (!this.botName) return void (r3.none = true); + const o2 = (r3[this.botName] = {})[this.applicationName] = {}; + a.default.moveAndDeleteProperty(e3, o2, "channelId"), a.default.moveAndDeleteProperty(e3, o2, "botVariables"), this.commonBotPostProcessYamlConfig(e3, o2); + } + removeYamlExportPropsThatRequireRunnable(e3) { + super.removeYamlExportPropsThatRequireRunnable(e3), delete e3.channelId; + } + getAdditionalParams() { + return new d.default(this.botRunnableManager, { additionalParams: { integrationId: this.botCategoryProperty.idValue } }); + } + _setBotCategoryProperties(e3) { + e3 && (this.botCategoryProperty.idValue = e3.integrationId); + } + setBotCategoryByViewModel(e3) { + super.setBotCategoryByViewModel(e3); + const t3 = this.botCategoryProperty.configListManager; + this.botCategoryProperty.idValue && t3.addItemToFlowMetadata(this, null, this.botCategoryProperty.idValue); + } + getOptionalBranchInfoIndexByLabel(e3) { + return a.default.findIndex(this.optionalBranchInfo, { localizedLabel: e3 }); + } + getIntentIndexByLabel(e3, t3) { + return a.default.findIndex(e3, { localizedLabel: t3 }); + } + getAllowableChannels() { + const e3 = g.nuanceMixBotManager.getItem(this.botRunnableProperty.idValue); + return e3 ? this.parentFlow.supportsDigital ? e3.textChannels : e3.audioChannels : []; + } + getAllChannels() { + const e3 = g.nuanceMixBotManager.getItem(this.botRunnableProperty.idValue); + return e3 ? e3.channels : []; + } + validate(e3) { + super.validate(e3), this.channelId.outOfService || (0 === this.getAllowableChannels().length && (e3.addError(this, v.nuanceMix.noChannelsAvailable), this._addAdditionalChannelValidationInfo(e3)), this.channelId.hasError && this._addAdditionalChannelValidationInfo(e3)); + } + get yamlNoBotRunnablePropName() { + return "noBotIntegration"; + } + _initializeDesignTime() { + super._initializeDesignTime(), this.parentFlow.isCommonModuleFlow && this.addAutoCleanedUpEventSinkWatch(T.destinationFlowTypesChanged, this.parentFlow.commonModuleSettings, () => this._setAllowableChannels()); + } + _setAllowableChannels() { + const e3 = this.getAllowableChannels(); + this.channelId.options.facets.setAllowableValues(e3, true); + } + _addAdditionalChannelValidationInfo(e3) { + this.channelId.isBlank || this.channelId.mode !== u.literal || a.default.findWhere(this.getAllChannels(), { id: this.channelId.text }) && e3.addError(this.channelId, (0, o.sprintf)(v.nuanceMix.selectedChannelNotValid, this.channelId.text), void 0, true); + } + } + C.info = S.default.createActionInfo({ actionClass: C, canBeInTask: true, canBeTreeNode: false, helpTopic: y.helpTopics.actions.nuanceMix, modelClass: i2(27450), name: v.actions.callNuanceMixBot, scriptingName: "ArchActionCallNuanceMixBot" }), t2.A = C; + }, 59424: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importDefault(i2(94225)), o = i2(81467), a = n2.__importDefault(i2(40559)); + class s extends a.default { + constructor(e3) { + super(e3, o.languageSkillManager); + } + get _globalTypeName() { + return "languageSkillCollection"; + } + get displayTypeName() { + return "ArchValueLanguageSkillCollection"; + } + get _searchByValueSearchProperty() { + return "name"; + } + addLiteralByLanguageSkillIdAsync(e3, t3) { + return n2.__awaiter(this, void 0, void 0, function* () { + return this._checkItemIsValidLiteralString(this._infoParm("languageSkillId", "addLiteralBySkillIdAsync"), e3), this._checkItemIsValidFunction(this._infoParm("callbackFunction", "addLiteralBySkillIdAsync"), t3, true), this._addLiteralByIdAsync(e3, "skill").then(() => r2.default.executeCallback(this, "addLiteralBySkillIdAsync", t3, this)); + }); + } + addLiteralByLanguageSkillNameAsync(e3, t3) { + return n2.__awaiter(this, void 0, void 0, function* () { + return this._checkItemIsValidLiteralString(this._infoParm("languageSkillName", "addLiteralBySkillNameAsync"), e3), this._checkItemIsValidFunction(this._infoParm("callbackFunction", "addLiteralBySkillNameAsync"), t3, true), this._addLiteralByValueAsync(e3, "skill").then(() => r2.default.executeCallback(this, "addLiteralBySkillNameAsync", t3, this)); + }); + } + get isArchValueLanguageSkillCollection() { + return true; + } + } + t2.default = s; + }, 59426: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.create = function() { + m.default.addBuilderPartDef(new u.default({ categoryIdentifierOrIdentifiers: p.builderCategoryIds.toolbar, description: g.builderParts.image.imageUrlText.description, expressionDefs: [new s.default({ configureOptionsCallback: (e3) => e3.setIninTestingField("urlExpression").setDefaultText("https://"), expressionType: a.globalTypes.string, label: g.builderParts.image.imageUrlText.name })], viewId: h.defaultWithNoLabel, generators: { expressionGenerator: d.default.create().addFuncCall("MakeImageFromUrl").addTokenReplacement(0).addFuncCallEnd().verifySprintfStringAndInitialize("MakeImageFromUrl(%1$s)") }, id: _.builderPartIds.image.imageUrl, icon: o.default.image, name: g.builderParts.image.imageUrlText.name, resultExpressionType: a.globalTypes.image, restrictToFlowTypeOrTypes: r2.flowTypes.flowTypeDigitalBot, version: 1 })), m.default.addBuilderPartDef(new u.default({ categoryIdentifierOrIdentifiers: p.builderCategoryIds.toolbar, description: g.builderParts.image.expression.description, expressionDefs: [new s.default({ configureOptionsCallback: (e3) => e3.setAllowModeExpressionOnly(true).setIninTestingField("imageExpression"), expressionType: a.globalTypes.image, label: g.builderParts.communication.expression.name })], viewId: h.defaultWithNoLabel, generators: { expressionGenerator: c.default.singleTokenReplacementGenerator }, id: _.builderPartIds.image.expression, icon: o.default.expression, name: g.builderParts.image.expression.name, resultExpressionType: a.globalTypes.image, version: 1 })), m.default.addBuilderPartDef(new u.default({ categoryIdentifierOrIdentifiers: p.builderCategoryIds.toolbar, description: g.builderParts.image.literal.description, expressionDefs: [new s.default({ configureOptionsCallback: (e3) => e3.setAllowModeLiteralOnly().setIninTestingField("imageLiteral"), expressionType: a.globalTypes.image, label: g.builderParts.communication.expression.name })], viewId: h.defaultWithNoLabel, generators: { expressionGenerator: c.default.singleTokenReplacementGenerator }, id: _.builderPartIds.image.literal, icon: o.default.image, name: g.builderParts.image.literal.name, resultExpressionType: a.globalTypes.image, version: 1 })), m.default.addBuilderPartContainerDef(new l.default({ categoryIdentifierOrIdentifiers: [p.builderCategoryIds.container], description: g.builderParts.container.language.description, generators: { containerPartsGenerator: d.default.create().addFuncCallParmGenerationBucket("findImage", true).verifySprintfStringAndInitialize(""), languageCheckGenerator: d.default.create().addFuncCall("If").addFuncCall("AreEqual").addTokenBooleanTrue().addFuncParameterSeparator().addTokenReplacement(0).addFuncParameterSeparator().addTokenReplacement(1).addFuncCallEnd().addFuncParameterSeparator().addFuncCallParmGenerationBucket("findImage", true).verifySprintfStringAndInitialize("If(AreEqual(true, %1$s, %2$s), "), wantContainerPartsGeneratorForSingleton: true }, id: _.builderPartIds.image.container.language, name: g.builderParts.container.language.name, restrictToFlowTypeOrTypes: r2.flowTypes.flowTypesAllCicero, resultExpressionType: a.globalTypes.image, version: 1, wantBucketOnSingleGeneration: true })); + }; + const n2 = i2(31635), r2 = i2(96618), o = n2.__importDefault(i2(61864)), a = i2(14394), s = n2.__importDefault(i2(76486)), l = n2.__importDefault(i2(79904)), u = n2.__importDefault(i2(42290)), d = n2.__importDefault(i2(22599)), c = n2.__importDefault(i2(96727)), p = i2(73062), _ = i2(69149), h = i2(93631), m = n2.__importDefault(i2(5532)), g = i2(16958); + }, 59441: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = i2(19596), o = i2(80295), a = i2(80295); + class s extends r2.DataContract { + constructor(e3) { + super(e3), (0, a.makeUnenumerable)(this, "_intents"), this._intents || (this._intents = []), (null == e3 ? void 0 : e3.intents) && (null == e3 ? void 0 : e3.intents.length) > 0 && (this.intents = e3.intents); + } + get intents() { + return this._intents; + } + set intents(e3) { + this._intents = void 0 === e3 ? [] : e3; + } + } + t2.default = s, n2.__decorate([(0, o.enumerable)(true), n2.__metadata("design:type", Array), n2.__metadata("design:paramtypes", [Array])], s.prototype, "intents", null); + }, 59449: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.ArchDefinitionFlow = void 0; + const n2 = i2(31635), r2 = n2.__importDefault(i2(92140)), o = n2.__importStar(i2(98442)), a = i2(39637), s = n2.__importDefault(i2(78432)), l = n2.__importDefault(i2(94225)), u = i2(80428), d = i2(96618), c = i2(24812), p = n2.__importDefault(i2(13523)), _ = n2.__importDefault(i2(3220)), h = n2.__importDefault(i2(8851)), m = n2.__importDefault(i2(52096)), g = n2.__importDefault(i2(65302)); + class f extends a.ArchBaseDefinition { + constructor(e3) { + super(e3); + } + get availableActions() { + const e3 = []; + return r2.default.each(h.default, (t3) => { + t3 && t3.definition && t3.definition.isAvailableForFlowType(this.type) && e3.push(t3); + }), e3; + } + get availablePromptMediaTypes() { + const e3 = [], t3 = this._getCoreViewModel(), i3 = g.default.getGlobalTypeGroup().getType(u.expressionTypeNames.prompt); + return (this.type === d.flowTypes.flowTypeCommonModule || i3.isAvailableForFlowType(this.type) && t3.supportsAudio) && e3.push(s.default.PROMPT_MEDIA_TYPES.audio), (this.type === d.flowTypes.flowTypeCommonModule || i3.isAvailableForFlowType(this.type)) && e3.push(s.default.PROMPT_MEDIA_TYPES.tts), e3; + } + get availableDataTypes() { + return p.default.getFlowTypeDataTypes(this.type); + } + get availableLanguages() { + if (!this.supportsSupportedLanguages) return; + let e3 = this._getCoreViewModel().availableLanguageTags; + e3 || (e3 = r2.default.keys(c.isoLanguages)); + const t3 = []; + return r2.default.each(e3, (e4) => { + t3.push(_.default.getByLanguageTag(e4)); + }), t3; + } + get availableMenus() { + const e3 = []; + return r2.default.each(m.default, (t3) => { + t3 && t3.definition && t3.definition.isAvailableForFlowType(this.type) && e3.push(t3); + }), e3; + } + get canCreateFromDefinition() { + return this._ensureSessionIsConnected(this._infoPropGet("canCreateFromDefinition"), l.default), this._getCoreViewModel().isAvailable; + } + get canSuppressRecording() { + return this._getCoreViewModel().canSuppressCallRecordings; + } + get displayTypeName() { + return "ArchDefinitionFlow"; + } + get fileExtension() { + return this._getCoreViewModel().fileExtension; + } + get isArchDefinitionFlow() { + return true; + } + get isAvailable() { + return this._getCoreViewModel().isAvailable; + } + get isCommonModuleCompatibleFlowType() { + return this.isAvailable && this._getCoreViewModel().isEmbeddable; + } + get isCreatable() { + return this._ensureSessionIsConnected(this._infoPropGet("isCreatable"), l.default), this._getCoreViewModel().isCreatable; + } + get label() { + return this._getCoreViewModel().typeDisplayName; + } + get supportsFlowCreationData() { + return this._getCoreViewModel().supportsFlowCreationData; + } + get startUpObjectCanBeMenu() { + return this._getCoreViewModel().startUpObjectCanBeMenu; + } + get startUpObjectCanBeState() { + return this._getCoreViewModel().startUpObjectCanBeState; + } + get startUpObjectCanBeTask() { + return this._getCoreViewModel().startUpObjectCanBeTask || this._getCoreViewModel().startUpObjectCanBeRepeatingTask; + } + get languagesSupportDefaultLanguage() { + return this.supportsSupportedLanguages && this._getCoreViewModel().languagesSupportDefaultLanguage; + } + get languagesSupportDefaultLanguageSkill() { + return this.supportsSupportedLanguages && this._getCoreViewModel().languagesSupportDefaultLanguageSkill; + } + get languagesSupportTtsAndAsr() { + return this.supportsSupportedLanguages && this._getCoreViewModel().languagesSupportTtsAndAsrSettings; + } + get languagesSupportTtsAndAsrRuntime() { + return this.supportsSupportedLanguages && this._getCoreViewModel().languagesSupportTtsAndAsrRuntime; + } + get languagesSupportSpeechToText() { + return this._getCoreViewModel().languagesSupportSttSetting; + } + get supportsAudio() { + return this._getCoreViewModel().supportsAudio; + } + get supportsCustomJsonTypes() { + return this._getCoreViewModel().supportsCustomJsonTypes; + } + get supportsDefaultLanguage() { + return this._getCoreViewModel().languagesSupportDefaultLanguage; + } + get supportsIntentDescriptions() { + return this._getCoreViewModel().supportsIntentDescriptions; + } + get supportsSecureVariables() { + return this._getCoreViewModel().supportsSecureVariables; + } + get supportsSupportedLanguages() { + return this._getCoreViewModel().supportsLanguages; + } + get supportsMoreThanOneSupportedLanguage() { + return this._getCoreViewModel().supportsMoreThanOneLanguage; + } + get supportsMenusReusable() { + return this._getCoreViewModel().supportsReusableMenus; + } + get supportsStates() { + return this._getCoreViewModel().supportsStates; + } + get supportsMultilingualKnowledge() { + return this._getCoreViewModel().supportsMultilingualKnowledge; + } + get supportsMultipleStates() { + return this._getCoreViewModel().supportsMultipleStates; + } + getSupportsKnowledge(e3) { + const t3 = this._infoParm("archLanguage", "getSupportsKnowledge"); + return r2.default.isNullOrUndefined(e3) || this._checkItem(t3, !e3 || !e3.isArchLanguage, "when specifying a language to check, you must pass in a valid ArchLanguage instance."), !!this.supportsSupportedLanguages && (r2.default.isNullOrUndefined(e3) ? this._getCoreViewModel().supportsKnowledge : o.getLangSupportsKnowledgeForFlowType(e3.tag, this.type)); + } + get supportsNaturalLanguageUnderstanding() { + return this._getCoreViewModel().supportsNlu; + } + get supportsNaturalLanguageUnderstandingIntents() { + return this._getCoreViewModel().supportsNLUIntents; + } + get supportsGrammars() { + return this._getCoreViewModel().supportsGrammars; + } + get supportsPeriodicState() { + return this._getCoreViewModel().supportsPeriodicState; + } + get supportsTasksReusable() { + return this._getCoreViewModel().supportsReusableTasks; + } + get supportsDetectionJob() { + return this._getCoreViewModel().supportsNluCortex; + } + get supportsDetectionJobIntents() { + return this._getCoreViewModel().supportsNluCortexIntents; + } + get supportsDynamicTimeslots() { + return this._getCoreViewModel().supportsDynamicTimeslots; + } + get supportsEndToEndKnowledgeHandling() { + return this._getCoreViewModel().supportsEndToEndKnowledgeHandling; + } + get supportsAdvancedKnowledgeHandling() { + return this._getCoreViewModel().supportsAdvancedKnowledgeHandling; + } + get supportsVirtualAgent() { + return this._getCoreViewModel().supportsVirtualAgent; + } + get type() { + return this._getCoreViewModel().type; + } + } + t2.ArchDefinitionFlow = f; + }, 59463: (e2, t2, i2) => { + "use strict"; + const n2 = i2(31635), r2 = n2.__importDefault(i2(942)), o = i2(80428), a = i2(75255), s = i2(40971), l = i2(12179), u = n2.__importDefault(i2(97891)), d = i2(47957); + class c extends r2.default { + constructor(e3, t3) { + super(e3.parentFlow, e3), this._loadModel(t3); + } + static get managedProperties() { + return r2.default.createManagedProperties({ searchFieldLabel: d.findActions.findScheduleGroup.findScheduleGroupNameLabel, searchResultLabel: d.findActions.findScheduleGroup.findScheduleGroupResultLabel, searchResultExpressionOptions: a.ExpressionTypeScheduleGroupOptions.create(), searchResultItemType: o.expressionTypeNames.scheduleGroup }); + } + } + c.info = u.default.createActionInfo({ actionClass: c, canBeInTask: true, helpTopic: l.helpTopics.actions.findScheduleGroup, modelClass: s.FindScheduleGroupActionModel, name: d.actions.findScheduleGroupActionLabel, scriptingName: "ArchActionFindScheduleGroup" }), t2.A = c; + }, 59497: (e2, t2, i2) => { + "use strict"; + var n2, r2, o, a, s; + Object.defineProperty(t2, "__esModule", { value: true }); + const l = i2(31635), u = i2(30801), d = l.__importDefault(i2(21345)); + class c extends d.default { + constructor(e3) { + super(e3), n2.set(this, void 0), r2.set(this, void 0), o.set(this, void 0), a.set(this, void 0), s.set(this, void 0), l.__classPrivateFieldSet(this, n2, this.coreFactory.createArchWrapper(e3.applicationName), "f"), l.__classPrivateFieldSet(this, r2, this.coreFactory.createArchWrapper(e3.applicationUrl), "f"), l.__classPrivateFieldSet(this, o, this.coreFactory.createArchWrapper(e3.applicationImage), "f"), l.__classPrivateFieldSet(this, a, this.coreFactory.createArchWrapper(e3.title), "f"), l.__classPrivateFieldSet(this, s, this.coreFactory.createArchWrapper(e3.subTitle), "f"); + } + get _actionTypeId() { + return u.sendInteractiveApplicationActionActionType; + } + get displayTypeName() { + return this._scriptingName; + } + get isArchActionSendInteractiveApplication() { + return true; + } + get applicationName() { + return l.__classPrivateFieldGet(this, n2, "f"); + } + get applicationUrl() { + return l.__classPrivateFieldGet(this, r2, "f"); + } + get applicationImage() { + return l.__classPrivateFieldGet(this, o, "f"); + } + get title() { + return l.__classPrivateFieldGet(this, a, "f"); + } + get subTitle() { + return l.__classPrivateFieldGet(this, s, "f"); + } + } + n2 = /* @__PURE__ */ new WeakMap(), r2 = /* @__PURE__ */ new WeakMap(), o = /* @__PURE__ */ new WeakMap(), a = /* @__PURE__ */ new WeakMap(), s = /* @__PURE__ */ new WeakMap(), t2.default = c; + }, 59509: (e2, t2, i2) => { + const n2 = i2(92140), r2 = i2(35515), o = 6500; + e2.exports = function(e3, t3, i3, a) { + this.level = i3, a && a.stack && (t3 += "\nStack: " + a.stack); + let s = 0; + if (e3.context) { + let t4 = JSON.stringify(e3.context); + t4.length > o && (e3.context = { context: t4.substring(0, 3250) }, t4 = JSON.stringify(e3.context)), s = t4.length; + } + t3 && t3.length > o - s && (t3 = t3.substring(0, o - s) + "...trimmed"), this.message = JSON.stringify(n2.defaults({ msg: t3, clientTime: (/* @__PURE__ */ new Date()).toISOString(), asid: r2.archSessionId }, s ? e3.context : void 0)), this.topic = e3.name; + }; + }, 59524: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(93523)), r2 = i2(30801); + class o extends n2.default { + constructor(e3) { + super(e3); + } + get _actionTypeId() { + return r2.findKnowledgeBaseDocumentByIdActionType; + } + get displayTypeName() { + return this._scriptingName; + } + get isArchActionFindKnowledgeBaseDocumentById() { + return true; + } + get findResult() { + return this._findResult; + } + } + t2.default = o; + }, 59618: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = i2(80295), o = n2.__importDefault(i2(67336)); + class a extends o.default { + constructor(e3) { + super(e3), this._checkItemUndefinedOrNull(this._infoParmCtor("coreDynamicSlotTypeViewModel"), e3), this._coreDynamicSlotTypeViewModel = e3, (0, r2.makeUnenumerable)(this, "_coreDynamicSlotTypeViewModel"), this._values = this.coreFactory.createArchWrapper(e3.values), this._synonyms = this.coreFactory.createArchWrapper(e3.synonyms), this._labels = this.coreFactory.createArchWrapper(e3.labels); + } + get displayTypeName() { + return "ArchSettingsDynamicSlotType"; + } + get isArchSettingsNluDynamicSlotType() { + return true; + } + get logStr() { + if (!this._getCoreViewModel()) return this.logStrTypeOnly; + const e3 = []; + return this._appendLogStrType(e3, this.displayTypeName), this._createLogStrFromParts(e3); + } + get values() { + return this._values; + } + get synonyms() { + return this._synonyms; + } + get labels() { + return this._labels; + } + } + t2.default = a; + }, 59630: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importDefault(i2(94225)), o = i2(4861), a = n2.__importDefault(i2(40559)); + class s extends a.default { + constructor(e3) { + super(e3, o.scheduleManager); + } + get _globalTypeName() { + return "scheduleCollection"; + } + get displayTypeName() { + return "ArchValueScheduleCollection"; + } + get _searchByValueSearchProperty() { + return "name"; + } + addLiteralByScheduleIdAsync(e3, t3) { + return n2.__awaiter(this, void 0, void 0, function* () { + return this._checkItemIsValidLiteralString(this._infoParm("scheduleId", "addLiteralByScheduleIdAsync"), e3), this._checkItemIsValidFunction(this._infoParm("callbackFunction", "addLiteralByScheduleIdAsync"), t3, true), this._addLiteralByIdAsync(e3, "schedule").then(() => r2.default.executeCallback(this, "addLiteralByScheduleIdAsync", t3, this)); + }); + } + addLiteralByScheduleNameAsync(e3, t3) { + return n2.__awaiter(this, void 0, void 0, function* () { + return this._checkItemIsValidLiteralString(this._infoParm("scheduleName", "addLiteralByScheduleNameAsync"), e3), this._checkItemIsValidFunction(this._infoParm("callbackFunction", "addLiteralByScheduleNameAsync"), t3, true), this._addLiteralByValueAsync(e3, "schedule").then(() => r2.default.executeCallback(this, "addLiteralByScheduleNameAsync", t3, this)); + }); + } + get isArchValueScheduleCollection() { + return true; + } + } + t2.default = s; + }, 59684: (e2, t2, i2) => { + const n2 = i2(2210), r2 = i2(13265), o = i2(2053), a = i2(7401), s = i2(58996), l = i2(20236), u = i2(20374); + function d() { + Object.defineProperties(this, { _debugSettings: { writable: true }, _disableAsr: { writable: true }, _disableAsrCompanyDirectory: { writable: true }, _errorHandling: { writable: true }, _initialPrompts: { writable: true }, _inQueueCallFlowSettings: { writable: true }, _outboundCallSettings: { writable: true }, _speechRecCompanyDirectory: { writable: true }, _speechRecEngine: { writable: true }, _suppressRecording: { writable: true } }), d.baseConstructor.apply(this, arguments); + } + s.extend(d, "CallFlowConfiguration"), Object.defineProperties(d.prototype, { debugSettings: { enumerable: true, get: function() { + return this._debugSettings; + }, set: function(e3) { + this._debugSettings = new r2(e3); + } }, disableAsr: { enumerable: true, get: function() { + return this._disableAsr; + }, set: function(e3) { + this._disableAsr = this.reviveItem(e3, a); + } }, disableAsrCompanyDirectory: { enumerable: true, get: function() { + return this._disableAsrCompanyDirectory; + }, set: function(e3) { + this._disableAsrCompanyDirectory = this.reviveItem(e3, a); + } }, errorHandling: { enumerable: true, get: function() { + return this._errorHandling; + }, set: function(e3) { + this._errorHandling = this.reviveItem(e3, o); + } }, initialPrompts: { enumerable: true, get: function() { + return this._initialPrompts; + }, set: function(e3) { + this._initialPrompts = this.reviveItem(e3, n2); + } }, inQueueCallFlowSettings: { enumerable: true, get: function() { + return this._inQueueCallFlowSettings; + }, set: function(e3) { + this._inQueueCallFlowSettings = this.reviveItem(e3, l); + } }, outboundCallSettings: { enumerable: true, get: function() { + return this._outboundCallSettings; + }, set: function(e3) { + this._outboundCallSettings = this.reviveItem(e3, u); + } }, speechRecCompanyDirectory: { enumerable: true, get: function() { + return this._speechRecCompanyDirectory; + }, set: function(e3) { + this._speechRecCompanyDirectory = this.reviveItem(e3, a); + } }, speechRecEngine: { enumerable: true, get: function() { + return this._speechRecEngine; + }, set: function(e3) { + this._speechRecEngine = this.reviveItem(e3, a); + } }, suppressRecording: { enumerable: true, get: function() { + return this._suppressRecording; + }, set: function(e3) { + this._suppressRecording = this.reviveItem(e3, a); + } } }), e2.exports = d; + }, 59777: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.DeflectActionModel = void 0; + const n2 = i2(31635), r2 = i2(5894), o = i2(30801), a = i2(80295), s = n2.__importDefault(i2(7401)), l = i2(80295); + class u extends r2.BaseFailureOutputsActionModel { + constructor(e3) { + super(e3), this.__type = u.__type, (0, l.makeUnenumerable)(this, "_deflectTo"), (0, l.makeUnenumerable)(this, "_message"), (0, l.makeUnenumerable)(this, "_smsTo"), (0, l.makeUnenumerable)(this, "_smsFrom"); + } + get deflectTo() { + return this._deflectTo; + } + set deflectTo(e3) { + this._deflectTo = this.reviveItem(e3, s.default); + } + get message() { + return this._message; + } + set message(e3) { + this._message = this.reviveItem(e3, s.default); + } + get smsTo() { + return this._smsTo; + } + set smsTo(e3) { + this._smsTo = this.reviveItem(e3, s.default); + } + get smsFrom() { + return this._smsFrom; + } + set smsFrom(e3) { + this._smsFrom = this.reviveItem(e3, s.default); + } + pasteReIdOrRename(e3) { + super.pasteReIdOrRename(e3), this.deflectTo.pasteReIdOrRename(e3), this.message.pasteReIdOrRename(e3), this.smsTo.pasteReIdOrRename(e3), this.smsFrom.pasteReIdOrRename(e3); + } + pasteResolveOldToNewValues(e3) { + super.pasteResolveOldToNewValues(e3), this.deflectTo.pasteResolveOldToNewValues(e3), this.message.pasteResolveOldToNewValues(e3), this.smsTo.pasteResolveOldToNewValues(e3), this.smsFrom.pasteResolveOldToNewValues(e3); + } + } + t2.DeflectActionModel = u, u.__type = o.deflectActionType, n2.__decorate([(0, a.enumerable)(true), n2.__metadata("design:type", Object), n2.__metadata("design:paramtypes", [Object])], u.prototype, "deflectTo", null), n2.__decorate([(0, a.enumerable)(true), n2.__metadata("design:type", Object), n2.__metadata("design:paramtypes", [Object])], u.prototype, "message", null), n2.__decorate([(0, a.enumerable)(true), n2.__metadata("design:type", Object), n2.__metadata("design:paramtypes", [Object])], u.prototype, "smsTo", null), n2.__decorate([(0, a.enumerable)(true), n2.__metadata("design:type", Object), n2.__metadata("design:paramtypes", [Object])], u.prototype, "smsFrom", null), u.registerType(); + }, 59794: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(54063)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "customerSegmentCollection"; + } + get displayTypeName() { + return "ArchValueCustomerSegmentCollection"; + } + get isArchValueCustomerSegmentCollection() { + return true; + } + } + t2.default = r2; + }, 59799: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.secureActionCategoryManager = t2.SecureActionCategoryManager = void 0; + const n2 = i2(24032), r2 = i2(64718), o = i2(47957); + class a extends r2.BaseIntegrationsActionCategoryManager { + constructor() { + super(), this.topic = (0, n2.getTopic)("SecureActionCategoryManager"), this.additionalQueryParams = { secure: true }, this.dependencyContext = o.bridgeServer.category, this.className = "SecureActionCategoryManager", this._initialize(); + } + } + t2.SecureActionCategoryManager = a, t2.secureActionCategoryManager = new a(); + }, 59805: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = i2(17604), o = n2.__importDefault(i2(92140)), a = n2.__importStar(i2(24032)), s = n2.__importStar(i2(12847)), l = i2(55909), u = i2(33951), d = n2.__importDefault(i2(23106)), c = i2(47957), p = a.getTopic("validation"); + function _(e3) { + return !(!e3 || !e3.id) || (p.warning("Tried to validate an invalid item: {}", e3), false); + } + t2.default = class { + constructor(e3, t3) { + this.errorCount = 0, this.forceTextReprocess = false, this.issuesMap = {}, this.isValidationResults = true, this.warningCount = 0, this._revalidateTriggers = [], this._suppressPassiveValidationTrackers = [], this.missingTTSEngine = {}, this.isDeep = t3, this.parentFlow = e3; + } + addSuppressPassiveValidation(e3) { + this._suppressPassiveValidationTrackers.includes(e3) ? s.error(`already tracking ${null == e3 ? void 0 : e3.toString()} for addSuppressPassiveValidation`) : this._suppressPassiveValidationTrackers.push(e3); + } + removeSuppressPassiveValidation(e3) { + const t3 = this._suppressPassiveValidationTrackers.indexOf(e3); + t3 >= 0 ? this._suppressPassiveValidationTrackers.splice(t3, 1) : s.error(`not tracking ${null == e3 ? void 0 : e3.toString()} for removeSuppressPassiveValidation`); + } + shouldValidate() { + return 0 === this._suppressPassiveValidationTrackers.length; + } + countTaskErrors(e3) { + if (e3.isDestroyed) return; + this.clearRollupErrorAndWarnings(e3); + let t3 = 0, i3 = 0; + o.default.each(e3.actions, (e4) => { + const n3 = [e4.id]; + e4.relatedIssueIds && n3.push(...e4.relatedIssueIds), n3.find((e5) => { + var t4; + const i4 = this.issuesMap[e5]; + return (null === (t4 = null == i4 ? void 0 : i4.errors) || void 0 === t4 ? void 0 : t4.length) > 0; + }) && (t3 += 1), n3.find((e5) => { + var t4; + const i4 = this.issuesMap[e5]; + return (null === (t4 = null == i4 ? void 0 : i4.warnings) || void 0 === t4 ? void 0 : t4.length) > 0; + }) && (i3 += 1); + }), 1 === t3 ? this.addRollupError(e3, c.task.taskActionErrorsOne) : t3 > 1 && this.addRollupError(e3, (0, r2.sprintf)(c.task.taskActionErrorsMoreThanOne, t3)), 1 === i3 ? this.addRollupWarning(e3, c.task.taskActionWarningsOne) : i3 > 1 && this.addRollupWarning(e3, (0, r2.sprintf)(c.task.taskActionWarningsMoreThanOne, i3)); + } + nodeHasError(e3, t3, i3) { + const n3 = this.getIssues(e3); + if (n3 && n3.errors) return n3.errors.some((e4) => e4.text === t3 && (!i3 || e4.flowElementId === i3)); + } + nodeHasWarning(e3, t3, i3) { + const n3 = this.getIssues(e3); + if (n3 && n3.warnings) return n3.warnings.some((e4) => e4.text === t3 && (!i3 || e4.flowElementId === i3)); + } + addExpressionError(e3, t3, i3) { + e3.isTransitory || (e3.setParseError(t3), i3 || (i3 = (0, r2.sprintf)(c.errors.invalidValue, e3.errorLabel)), this.addError(e3, i3, void 0, true), this.addError(e3.parent, t3)); + } + addExpressionWarning(e3, t3, i3, n3) { + e3.isTransitory && !n3 || (e3.setParseWarning(t3), i3 || (i3 = t3), this.addWarning(e3.parent, i3), this.addWarning(e3.parent, t3)); + } + addError(e3, t3, i3, n3, r3, o2) { + if (e3.isTransitory) return; + if (this._checkPriority(r3), !_(e3) && n3 && !_(e3.parent)) return; + let a2; + n3 ? (a2 = e3.parent, o2 || (o2 = e3)) : a2 = e3, a2.isFlowViewModel && !i3 && (a2 = a2.startUpObject || a2), this._createOrGetIssues(a2, a2.id).tryAddError(t3, n3 ? e3.id : void 0, r3, o2) && this.errorCount++, a2.topParent && a2.topParent.isTaskLike && !this.isDeep && this.countTaskErrors(a2.topParent), a2.hasValidationError = true; + } + addInternalError(e3, t3, i3) { + p.error("Internal validation error: " + t3), this.addError(e3, t3, i3); + } + addRollupError(e3, t3) { + if (e3.isTransitory) return; + if (!_(e3)) return; + const i3 = this._createOrGetIssues(e3, e3.id); + i3 && i3.addRollUpError(t3); + } + get className() { + return "ValidationResults"; + } + clearRollupErrorAndWarnings(e3) { + _(e3) && this.issuesMap[e3.id] && this.issuesMap[e3.id].clearRollupErrorAndWarnings(); + } + get needsRevalidate() { + return this._revalidateTriggers.length > 0; + } + getRevalidateTriggers() { + return [...this._revalidateTriggers]; + } + addRevalidateTrigger(e3, t3) { + this._revalidateTriggers.push(o.default.addPromiseTimeout(e3, t3, "timeout during revalidation triggers")); + } + addRollupWarning(e3, t3) { + if (!_(e3)) return; + const i3 = this._createOrGetIssues(e3, e3.id); + i3 && i3.addRollUpWarning(t3); + } + addWarning(e3, t3, i3, n3, r3, o2) { + if (e3.isTransitory) return; + if (this._checkPriority(r3), !_(e3) && n3 && !_(e3.parent)) return; + let a2; + n3 ? (a2 = e3.parent, o2 || (o2 = e3)) : a2 = e3, a2.isFlowViewModel && !i3 && (a2 = a2.startUpObject || a2), this._createOrGetIssues(a2, a2.id).tryAddWarning(t3, n3 ? e3.id : void 0, r3, o2) && this.warningCount++, a2.hasValidationWarning = true; + } + getIssues(e3) { + return this.issuesMap[e3]; + } + hasIssues(e3) { + return this.getIssues(e3).errors.length > 0 || this.getIssues(e3).warnings.length > 0; + } + _checkForIssues(e3, t3, i3) { + const n3 = this.getIssues(e3); + return (null == n3 ? void 0 : n3[t3].length) > 0 || (null == n3 ? void 0 : n3[i3].length) > 0; + } + hasAnyErrors(e3) { + return this._checkForIssues(e3, "errors", "rollupErrors"); + } + hasAnyWarnings(e3) { + return this._checkForIssues(e3, "warnings", "rollupWarnings"); + } + clearLinkedIssuesAndWarnings(e3, t3) { + if (e3) { + for (let i3 = e3.errors.length - 1; i3 >= 0; i3--) e3.errors[i3].flowElementId === t3.id && (e3.errors.splice(i3, 1), this.errorCount--); + for (let i3 = e3.warnings.length - 1; i3 >= 0; i3--) e3.warnings[i3].flowElementId === t3.id && (e3.warnings.splice(i3, 1), this.warningCount--); + t3.parent && t3.parent.isDataReporter && (t3.parent.hasValidationError = e3.errors.length > 0, t3.parent.hasValidationWarning = e3.warnings.length > 0); + } + } + removeIssues(e3, t3) { + var i3; + i3 = e3, o.default.isFunction(i3.removeDependantValidationIssues) && e3.removeDependantValidationIssues(this, e3, t3); + const n3 = e3.id ? e3.id : e3, r3 = this.getIssues(n3); + (r3 || t3) && (e3.isDataReporter && (e3.hasValidationError = false, e3.hasValidationWarning = false), r3 && (this.warningCount -= r3.warnings.length, this.errorCount -= r3.errors.length, r3.clearErrorsAndWarnings(), r3.clearRollupErrorAndWarnings()), t3 && e3.parent && e3.parent.id && (this.clearLinkedIssuesAndWarnings(this.getIssues(e3.parent.isFlowViewModel && e3.parent.startUpObject ? e3.parent.startUpObject.id : e3.parent.id), e3), e3.parentAudioViewModel && (this.clearLinkedIssuesAndWarnings(this.getIssues(e3.parentAudioViewModel.parent.isFlowViewModel ? e3.parentAudioViewModel.parent.startUpObject ? e3.parentAudioViewModel.parent.startUpObject.id : e3.parentAudioViewModel.parent.id : e3.parent.id), e3.parentAudioViewModel), this.clearLinkedIssuesAndWarnings(this.getIssues(e3.parentAudioViewModel.id), e3.parentAudioViewModel))), e3.topParent && e3.topParent.isTaskLike && !this.isDeep && this.countTaskErrors(e3.topParent)); + } + _checkPriority(e3) { + u.ParameterValidator.expectNumber(e3, () => l.ParameterInfo.createFunctionParameter(this.className, "checkPriority", "priority"), true); + } + _createOrGetIssues(e3, t3) { + let i3 = this.issuesMap[t3]; + return i3 && i3.model === e3.model || (i3 = new d.default(e3, t3), this.issuesMap[t3] = i3), i3; + } + }; + }, 59821: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.BaseFindSystemObjectsByNameActionModel = void 0; + const n2 = i2(31635), r2 = i2(7340), o = i2(80295), a = i2(80295), s = i2(7401); + class l extends r2.BaseFindSystemObjectActionModel { + constructor(e3) { + super(e3), (0, a.makeUnenumerable)(this, "_findNames"); + } + get findNames() { + return this._findNames; + } + set findNames(e3) { + this._findNames = this.reviveItem(e3, s); + } + pasteReIdOrRename(e3) { + super.pasteReIdOrRename(e3), this._findNames.pasteReIdOrRename(e3); + } + pasteResolveOldToNewValues(e3) { + super.pasteResolveOldToNewValues(e3), this._findNames.pasteResolveOldToNewValues(e3); + } + } + t2.BaseFindSystemObjectsByNameActionModel = l, n2.__decorate([(0, o.enumerable)(true), n2.__metadata("design:type", Object), n2.__metadata("design:paramtypes", [Object])], l.prototype, "findNames", null); + }, 59865: (e2, t2, i2) => { + const n2 = i2(2210); + function r2() { + Object.defineProperties(this, { _prompts: { writable: true } }), this.aliasName = void 0, this.aliasId = void 0, this.aliasLanguages = void 0, r2.baseConstructor.apply(this, arguments); + } + i2(82149).extend(r2, "BaseLexActionModel"), Object.defineProperties(r2.prototype, { pasteReIdOrRename: { value: function(e3) { + r2._super.pasteReIdOrRename.apply(this, arguments), this.prompts.pasteReIdOrRename(e3); + } }, pasteResolveOldToNewValues: { value: function(e3) { + r2._super.pasteResolveOldToNewValues.apply(this, arguments), this.prompts.pasteResolveOldToNewValues(e3); + } }, prompts: { enumerable: true, get: function() { + return this._prompts; + }, set: function(e3) { + this._prompts = this.reviveItem(e3, n2); + } } }), e2.exports = r2; + }, 59912: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.utilizationLabelManager = t2.UtilizationLabelManager = void 0; + const n2 = i2(31635), r2 = n2.__importStar(i2(1360)), o = n2.__importStar(i2(24032)), a = n2.__importStar(i2(15797)), s = n2.__importDefault(i2(47532)), l = i2(81801), u = i2(27862); + class d extends s.default { + get requiredAuth() { + return l.externalAuthorizations.authStrings.utilizationLabelView; + } + get dependencyType() { + return u.UtilizationLabel; + } + constructor() { + super(), this.topic = o.getTopic("UtilizationLabelManager"), this.apiCallList = a.getUtilizationLabels, this.apiCallSingle = a.getUtilizationLabel, this._rawServerCache = {}, this.actionPropertyForUsageSearch = "", this.actionsForUsageSearch = [], this.className = "UtilizationLabelManager", this.defaultMatchingStyle = r2.startsWith, this.dependencyContext = null, this.securityError = true, this.suppressSearch = false, this.uiMetadataSectionName = "utilizationLabel", this.useStartsWithKeywordForExactMatch = true, this._initialize(); + } + } + t2.UtilizationLabelManager = d, t2.utilizationLabelManager = new d(); + }, 59929: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(54063)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "externalSourceCollection"; + } + get displayTypeName() { + return "ArchValueExternalSourceCollection"; + } + get isArchValueExternalSourceCollection() { + return true; + } + } + t2.default = r2; + }, 59946: (e2, t2, i2) => { + const n2 = i2(92140), r2 = i2(57731), o = i2(47957), a = {}; + function s(e3, t3, i3, n3) { + a[e3] = this, a[t3] = this, s.baseConstructor.apply(this, arguments), this.scriptingName = n3; + } + r2.extend(s, "AutoGeneratedEmailHandlingType"), s.getInstance = function(e3) { + return a[n2.isString(e3) || n2.isActualNumber(e3) ? e3 : 0] || a[0]; + }, s.Disconnect = new s(0, "Disconnect", o.actions.disconnect, "disconnect"), s.Continue = new s(1, "Continue", o.inboundEmailSettings.normalProcessing, "continue"), e2.exports = s; + }, 59957: (e2, t2, i2) => { + function n2() { + this.flowId = void 0, this.flowDisplayName = void 0, this.flowType = void 0, this.parentId = void 0, this.parentType = void 0, this.parentName = void 0, this.parentTrackingId = void 0, this.objectId = void 0, this.objectName = void 0, this.objectType = void 0, this.objectTrackingId = void 0, n2.baseConstructor.apply(this, arguments); + } + i2(45214).extend(n2, "ClipboardContentOriginalObjectInfoModel", true), Object.defineProperties(n2.prototype, { configure: { value: function(e3, t3) { + let i3; + const n3 = t3.topParent || t3.parent; + n3 && (n3.isTaskLike || n3.isMenu) && (i3 = n3), this.flowId = e3.id, this.flowDisplayName = e3.displayName, this.flowType = e3.info.type, this.parentId = i3 ? i3.id : void 0, this.parentType = i3 ? i3.info.typeId : void 0, this.parentName = i3 ? i3.name : void 0, this.parentTrackingId = i3 ? i3.trackingId : void 0, this.objectId = t3.id, this.objectName = t3.name, this.objectType = t3.info.typeId, this.objectTrackingId = t3.trackingId; + } } }), e2.exports = n2; + }, 59964: (e2, t2, i2) => { + function n2() { + this.OAuthClient = void 0, n2.baseConstructor.apply(this, arguments); + } + i2(45214).extend(n2, "Token"), e2.exports = n2; + }, 60061: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importDefault(i2(92140)), o = n2.__importDefault(i2(78432)), a = i2(59393), s = n2.__importDefault(i2(17405)); + class l extends s.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "json"; + } + get displayTypeName() { + return "ArchValueJson"; + } + get isArchValueJson() { + return true; + } + setLiteral(e3) { + const t3 = this._infoParm("valueToSet", "setLiteral"); + let i3; + this._checkItemUndefined(t3, e3); + let n3 = false; + if ("string" == typeof e3) try { + i3 = JSON.parse(e3); + } catch (t4) { + "{" !== e3[0] && "[" !== e3[0] || (n3 = !r2.default.isNull((0, a.validateLiteralJson)(e3, this._getCoreViewModel())).errorText); + } + r2.default.isObject(i3) ? i3 = void 0 : r2.default.isUndefined(i3) && !n3 ? e3 = JSON.stringify(e3) : ("string" == typeof e3 && ["true", "false", "null"].includes(e3) || r2.default.isStringActualNumber(e3)) && (e3 = JSON.stringify(e3), i3 = void 0), this._internalSetLiteral(t3, i3 || e3, "setLiteral"); + } + setLiteralWithJsonParse(e3) { + const t3 = this._infoParm("valueToParse", "setLiteralWithJsonParse"); + this._checkItemIsValidLiteralString(t3, e3, false); + try { + e3 = JSON.parse(e3); + } catch (e4) { + this.logErrorAndThrow(`The value passed in is not valid JSON. Error: ${e4.message}`); + } + this._internalSetLiteral(t3, e3, "setLiteralWithJsonParse"); + } + setCustomJsonLiteral(e3, t3) { + const i3 = this._infoParm("valueToSet", "setCustomJsonLiteral"), n3 = this._infoParm("language", "setCustomJsonLiteral"); + this._checkItemIsValidLiteralString(i3, e3, false), this._checkItemIsValidLiteralString(n3, t3, true), t3 || (t3 = o.default.CODE_LANGUAGES.archJson), this._checkItemIsValidLiteralStringEnum(n3, t3, o.default.CODE_LANGUAGES_ALL); + const r3 = this._getCoreViewModel(); + r3.setAsLiteral(e3, t3), this._parseResult = r3.parseResult; + } + getCustomJsonParseItems() { + return this._parseResult.parseItems; + } + getCustomJsonParseResultLanguage() { + return this._parseResult.parseLanguage; + } + _internalSetLiteral(e3, t3, i3) { + const n3 = r2.default.isString(t3) ? t3 : JSON.stringify(t3); + this._setLiteral(e3, n3, i3); + } + } + t2.default = l; + }, 60079: (e2, t2, i2) => { + "use strict"; + const n2 = i2(31635), r2 = i2(80428), o = i2(9446), a = i2(21305), s = i2(81516), l = n2.__importDefault(i2(27203)), u = i2(35291), d = i2(82632), c = i2(12179), p = n2.__importDefault(i2(97891)), _ = n2.__importDefault(i2(5478)), h = i2(47957); + class m extends _.default { + constructor(e3, t3) { + super(e3.parentFlow, e3), this._loadModel(t3); + } + static get branchInfo() { + return l.default.successFailure; + } + static get managedProperties() { + return [{ label: h.getEmailHeaders.emailHeaderNamesLabel, type: r2.expressionTypeNames.string, options: s.ExpressionTypeStringOptions.create((e3) => e3.setDescriptionInfo(h.getEmailHeaders.emailHeaderNamesLabel, h.getEmailHeaders.emailHeaderNamesDescription).setIninTestingField("emailHeaderNamesExpression").setAllowModeExpression(true).setIsOptional(true).setAllowNotSet(true).setModeNoValueRuntimeEvaluationStr(h.getEmailHeaders.emailHeaderNamesNoValueLabel).setModeNoValueSelectionLabel(h.getEmailHeaders.emailHeaderNamesNoValueLabel).setEmptyMessage(h.getEmailHeaders.noEmailHeaderNames).setMaxItems(d.emailHeaderNamesLimits.maxItems.count, d.emailHeaderNamesLimits.maxItems.isSoftLimit), true), yamlOptions: m.createYamlOptions("emailHeaderNames", (e3) => e3.setExportOrder(1)), property: "emailHeaderNames" }, { label: h.getEmailHeaders.emailHeadersResultLabel, type: r2.expressionTypeNames.json, options: a.ExpressionTypeJsonOptions.create((e3) => e3.setAsOutput().setDescriptionInfo(h.getEmailHeaders.emailHeadersResultLabel, h.getEmailHeaders.emailHeadersResultDescription).setIninTestingField("emailHeadersResultExpression")), yamlOptions: m.createYamlOptions("emailHeadersResult", (e3) => e3.setExportOrder(2)), property: "emailHeadersResult" }]; + } + _getPossibleErrors() { + return u.getEmailHeadersFailureReasons; + } + } + m.info = p.default.createActionInfo({ actionClass: m, canBeInTask: true, helpTopic: c.helpTopics.actions.getEmailHeaders, modelClass: o.GetEmailHeadersActionModel, name: h.actions.getEmailHeaders, scriptingName: "ArchActionGetEmailHeaders" }), t2.A = m; + }, 60094: (e2) => { + e2.exports = { actions: "actions", menus: "menus", menuChoiceAny: "menuChoiceAny", menuChoiceMenu: "menuChoiceMenu", menuChoiceTask: "menuChoiceTask", states: "states", tasks: "tasks" }; + }, 60137: (e2, t2, i2) => { + const n2 = i2(92140), r2 = i2(17604).sprintf, o = i2(47957), a = i2(24032), { expressionDataService: s } = i2(27491), l = a.getTopic("AudioSequencing"), u = "mainSequence", d = "fallbackSequence"; + function c(e3, t3, i3) { + Object.defineProperties(this, { _action: { value: e3 }, _audioViewModel: { value: t3 }, _sequenceDefinition: { value: i3 } }); + } + Object.defineProperties(c.prototype, { _getSequenceSet: { value: function(e3, t3) { + let i3; + if (t3 !== u && this._hasSequenceSetOverride(t3) ? i3 = this._sequenceDefinition[this._sequenceDefinition.supportedLanguages[t3]][e3] : t3 === u || this._sequenceDefinition.supportedLanguages[t3] === u ? i3 = this._sequenceDefinition.mainSequence[e3] : this._sequenceDefinition.supportedLanguages[d] && (i3 = this._sequenceDefinition[d][e3]), !i3 || i3.allSequencesAppllied) return i3; + i3.allSequencesAppllied = true; + const n3 = this._sequenceDefinition.allSequences; + if (!n3 || !n3.allModes || !n3.allModes.conditions) return i3; + const r3 = n3.allModes.conditions; + return i3.conditions ? Array.prototype.unshift.apply(i3.conditions, r3) : i3.conditions = r3, i3; + } }, _hasSequenceSetOverride: { value: function(e3) { + return this._sequenceDefinition.supportedLanguages[e3] && this._sequenceDefinition.supportedLanguages[e3] !== u; + } }, _buildSequence: { value: function(e3, t3) { + const i3 = this; + if (1 === e3.length) return this._buildPart(e3[0], t3); + { + const o2 = []; + return n2.each(e3, function(e4) { + o2.push(i3._buildPart(e4, t3)); + }), r2("Append(%s)", o2.join(", ")); + } + } }, _replaceValue: { value: function(e3, t3) { + return n2.each(t3, function(t4, i3) { + for (; e3.indexOf(i3) >= 0; ) e3 = e3.replace(i3, t4); + }), e3; + } }, _buildPart: { value: function(e3, t3) { + switch (e3.type) { + case this._sequenceDefinition.parts.sequenceTypes.tts: + return r2('ToAudioTTS("%s")', e3.value); + case this._sequenceDefinition.parts.sequenceTypes.systemPrompt: + return this._sequenceDefinition.parts.systemPrompts[e3.value] ? r2("ToAudio(PromptSystem.%s)", e3.value) : "unknown prompt"; + case this._sequenceDefinition.parts.sequenceTypes.subExpression: + return this._replaceValue(e3.value.value, t3); + default: + return "unknown type"; + } + } }, _setAudioExpression: { value: function(e3, t3, i3, o2) { + const a2 = this; + let s2; + if (i3 === u || o2) s2 = a2._audioViewModel.defaultAudio; + else { + if (!a2._audioViewModel.cases || 0 === a2._audioViewModel.cases.length) return; + const e4 = a2._audioViewModel.getCaseForLang(i3); + if (s2 = e4.audioExpression, !a2._hasSequenceSetOverride(i3)) return s2.customExpressionMode = true, e4.audioExpression.setText("", true), void (e4.disabled = true); + e4.disabled = false; + } + const l2 = a2._getSequenceSet(e3, i3), d2 = [], c2 = []; + let p = 0; + n2.each(l2.conditions, function(e4) { + e4.condition ? (d2.push(r2("If((%1$s), %2$s, ", a2._replaceValue(e4.condition, t3), a2._buildSequence(e4.sequence, t3))), p++) : d2.push(a2._buildSequence(e4.sequence, t3)), e4.indirectlyUsedPrompts && c2.push(...e4.indirectlyUsedPrompts); + }), s2.indirectlyUsedPrompts = c2; + for (let e4 = 0; e4 < p; e4++) d2.push(")"); + s2.customExpressionMode = true; + const _ = d2.join(""); + return _ !== s2.text && s2.setText(_, true), true; + } }, canBuildExpression: { value: function(e3, t3) { + const i3 = this; + let r3 = false; + const o2 = i3._action.parentFlow.languages.supportedLanguages; + return n2.each(o2, function(n3) { + i3._canBuildExpression(t3, e3, n3) || (r3 = true); + }), !r3; + } }, _canBuildExpression: { value: function(e3, t3, i3) { + const n3 = this; + let a2; + const u2 = n3._getSequenceSet(t3, i3); + if (!u2) return e3 && e3.addError(n3._action, r2(o.audio.actionNotValidError, i3, this._audioViewModel.label)), false; + if (!this._sequenceDefinition.supportsFlow(i3, this._action.parentFlow)) return l.error("Flow type " + this._action.parentFlow.type + " is not supported for sequence type " + t3 + " and language " + i3), false; + for (let e4 = 0; e4 < u2.conditions.length; e4++) { + const t4 = u2.conditions[e4]; + for (let e5 = 0; e5 < t4.sequence.length; e5++) { + const l2 = t4.sequence[e5]; + if (l2.type === n3._sequenceDefinition.parts.sequenceTypes.subExpression) for (let e6 = 0; e6 < l2.value.ids.length; e6++) { + const t5 = l2.value.ids[e6], n4 = s.expressionFuncOpsByOverloadId[t5]; + (!n4 || n4.supportedLanguageFilter && !n4.supportedLanguageFilter[i3]) && (console.error("can not find id " + t5), a2 = r2(o.errors.notAvailableError, i3)); + } + } + } + return e3 && a2 && e3.addError(n3._action, a2), !a2; + } }, buildExpression: { value: function(e3, t3) { + const i3 = this; + i3._audioViewModel.updateCases(); + const r3 = i3._action.parentFlow.languages.supportedLanguages; + return 1 === r3.length ? i3._setAudioExpression(e3, t3, r3[0], true) : (i3._setAudioExpression(e3, t3, u), n2.each(r3, function(n3) { + i3._setAudioExpression(e3, t3, n3); + })), true; + } } }), e2.exports = c; + }, 60140: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(84655)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "time"; + } + get displayTypeName() { + return "ArchVariableTime"; + } + get initialValue() { + return this._initialValue; + } + get isArchVariableTime() { + return true; + } + } + t2.default = r2; + }, 60186: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.ExpressionTypeGroupOptions = void 0; + const n2 = i2(71056); + class r2 extends n2.ExpressionTypeNetworkObjectOptions { + static create(e3, t3) { + return new this(t3).invokeOptionsCallback(e3); + } + constructor(e3) { + super(e3); + } + get className() { + return "ExpressionTypeGroupOptions"; + } + get isExpressionTypeGroupOptions() { + return true; + } + } + t2.ExpressionTypeGroupOptions = r2; + }, 60232: (e2, t2, i2) => { + const n2 = i2(13240), r2 = i2(7401), { setExternalTagActionType: o } = i2(30801); + function a() { + Object.defineProperties(this, { _externalTag: { writable: true } }), a.baseConstructor.apply(this, arguments); + } + n2.extend(a, o, true), Object.defineProperties(a.prototype, { pasteReIdOrRename: { value: function(e3) { + a._super.pasteReIdOrRename.apply(this, arguments), this.externalTag.pasteReIdOrRename(e3); + } }, pasteResolveOldToNewValues: { value: function(e3) { + a._super.pasteResolveOldToNewValues.apply(this, arguments), this.externalTag.pasteResolveOldToNewValues(e3); + } }, externalTag: { enumerable: true, get: function() { + return this._externalTag; + }, set: function(e3) { + this._externalTag = this.reviveItem(e3, r2); + } } }), e2.exports = a; + }, 60295: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(20692)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "digitalAudioCollection"; + } + get displayTypeName() { + return "ArchVariableDigitalAudioCollection"; + } + get initialValue() { + return this._initialValue; + } + get isArchVariableDigitalAudioCollection() { + return true; + } + } + t2.default = r2; + }, 60341: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importDefault(i2(94225)), o = i2(65220), a = n2.__importDefault(i2(45894)); + class s extends a.default { + constructor(e3) { + super(e3, o.fileManager); + } + get _globalTypeName() { + return "file"; + } + get displayTypeName() { + return "ArchValueFile"; + } + get isArchValueFile() { + return true; + } + setLiteralByFileIdAsync(e3, t3) { + return n2.__awaiter(this, void 0, void 0, function* () { + return this._checkItemIsValidLiteralString(this._infoParm("fileId", "setLiteralByFileIdAsync"), e3), this._checkItemIsValidFunction(this._infoParm("callbackFunction", "setLiteralByFileIdAsync"), t3, true), this._setLiteralByIdAsync(e3).then(() => r2.default.executeCallback(this, "setLiteralByFileIdAsync", t3, this)); + }); + } + setLiteralByFileNameAsync(e3, t3) { + return n2.__awaiter(this, void 0, void 0, function* () { + return this._checkItemIsValidLiteralString(this._infoParm("fileName", "setLiteralByFileNameAsync"), e3), this._checkItemIsValidFunction(this._infoParm("callbackFunction", "setLiteralByFileNameAsync"), t3, true), this._setLiteralByValueAsync(e3).then(() => r2.default.executeCallback(this, "setLiteralByFileNameAsync", t3, this)); + }); + } + } + t2.default = s; + }, 60420: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.ExpressionListWithReferenceId = void 0; + const n2 = i2(31635).__importDefault(i2(33923)), { ExpressionList: r2 } = i2(71514); + t2.ExpressionListWithReferenceId = class extends r2 { + get isExpressionListWithReferenceId() { + return true; + } + get expressions() { + return this.items.map((e3) => e3.value); + } + createItem(e3, t3, i3) { + const r3 = super.createItem(e3.value, t3, i3); + return new n2.default(e3, r3); + } + add(e3, t3, i3) { + return super.add(e3, t3, i3).value; + } + }; + }, 60440: (e2, t2, i2) => { + "use strict"; + const n2 = i2(31635), r2 = i2(12179), o = n2.__importDefault(i2(97891)), a = n2.__importDefault(i2(5478)), s = i2(17749), l = i2(45077), u = i2(47957); + class d extends a.default { + constructor(e3, t3) { + super(e3.parentFlow, e3), this._loadModel(t3); + } + _getPossibleErrors() { + return l.getClearSkillExpressionFiltersFailureReasons; + } + } + d.info = o.default.createActionInfo({ actionClass: d, canBeInTask: true, helpTopic: r2.helpTopics.actions.clearSkillExpressionFilters, modelClass: s.ClearSkillExpressionFiltersActionModel, name: u.actions.clearSkillExpressionFilters, scriptingName: "ArchActionClearSkillExpressionFilters" }), t2.A = d; + }, 60453: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.getSmsPhoneNumbers = a, t2.getSmsPhoneNumber = s; + const n2 = i2(31635), r2 = n2.__importStar(i2(17552)), o = n2.__importDefault(i2(36019)); + function a(e3) { + const t3 = o.default.build(r2.getSmsPhoneNumbers); + return t3.queryParams({ name: e3.searchTerm, pageSize: e3.defaultPageSize, sortOrder: "ascending", pageNumber: e3.pageNumber }), t3.call(); + } + function s(e3) { + return o.default.build(r2.getSmsPhoneNumber).templateParams({ phoneNumber: e3 }).call(); + } + a.api = r2.getSmsPhoneNumbers, s.api = r2.getSmsPhoneNumber; + }, 60454: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.StringType = void 0; + const n2 = i2(31635), r2 = i2(81516), o = n2.__importDefault(i2(22226)), a = i2(80428), s = i2(94765); + class l extends s.ExpressionType { + constructor(e3, t3, i3) { + super(e3, t3, i3); + } + get className() { + return "StringType"; + } + createExpressionOptionClass() { + return new r2.ExpressionTypeStringOptions(); + } + convertLitToExpression(e3, t3) { + return o.default.getQuotedExpressionStringLiteral(t3) || ""; + } + convertLitToCustomJsonStr(e3, t3, i3, n3) { + return this.convertLitToExpression(e3, t3); + } + } + t2.StringType = l, l.typeIdentifier = a.expressionTypeNames.string; + }, 60475: (e2, t2, i2) => { + const n2 = i2(13240), r2 = i2(7401), o = i2(42217); + function a() { + Object.defineProperties(this, { _conversationId: { writable: true }, _variables: { writable: true } }), a.baseConstructor.apply(this, arguments); + } + n2.extend(a, "BaseConversationDataActionModel"), Object.defineProperties(a.prototype, { pasteReIdOrRename: { value: function(e3) { + a._super.pasteReIdOrRename.apply(this, arguments), this.conversationId.pasteReIdOrRename(e3); + for (let t3 = 0; t3 < this.variables.length; t3++) this.variables[t3].pasteReIdOrRename(e3); + } }, pasteResolveOldToNewValues: { value: function(e3) { + a._super.pasteResolveOldToNewValues.apply(this, arguments), this.conversationId.pasteResolveOldToNewValues(e3); + for (let t3 = 0; t3 < this.variables.length; t3++) this.variables[t3].pasteResolveOldToNewValues(e3); + } }, conversationId: { enumerable: true, get: function() { + return this._conversationId; + }, set: function(e3) { + this._conversationId = this.reviveItem(e3, r2); + } }, variables: { enumerable: true, get: function() { + return this._variables; + }, set: function(e3) { + this._variables = this.reviveArray(e3, o); + } } }), e2.exports = a; + }, 60571: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importStar(i2(14187)), o = n2.__importDefault(i2(95955)), a = n2.__importDefault(i2(38416)), s = n2.__importDefault(i2(23208)), l = n2.__importDefault(i2(73274)), u = i2(30801), d = n2.__importDefault(i2(4648)), c = n2.__importDefault(i2(98114)), p = i2(96618), _ = n2.__importDefault(i2(81948)), h = i2(10798), m = i2(21733), g = i2(64420); + class f extends _.default { + constructor(e3, t3) { + super(e3), this.commonModuleSettings = new s.default(this), this.callPrompts = new o.default(this), this._addToAutoManageSettings(this.callPrompts), this._addToAutoManageSettings(this.commonModuleSettings), this._embeddedParentFlow = t3; + } + get topParentFlow() { + return this.isEmbeddedFlow ? this._embeddedParentFlow : this; + } + buildConfiguration(e3, t3, i3) { + if (super.buildConfiguration(e3, t3, i3), this.commonModuleSettings) { + const t4 = this.commonModuleSettings.getConfiguration(e3, i3); + e3[(null == i3 ? void 0 : i3.isForFlowYaml) ? this.commonModuleSettings.wrappedYamlName : "commonModuleFlowSettings"] = t4; + } + return e3; + } + get className() { + return "CommonModuleFlowViewModel"; + } + get builtInVariableScopes() { + return [...super.builtInVariableScopes, r2.scopes.session]; + } + getFlowConfigurationClass() { + return a.default; + } + get isCommonModuleFlow() { + return true; + } + get isEmbeddedFlow() { + return !!this._embeddedParentFlow; + } + get overrideWireFlowConfiguration() { + return g.getCommonModuleFlowConfiguration; + } + get overrideWireFlowVersionConfiguration() { + return g.getVersionCommonModuleConfiguration; + } + get shouldParseExpressions() { + return this.isEmbeddedFlow ? this._embeddedParentFlow.shouldParseExpressions && super.shouldParseExpressions : super.shouldParseExpressions; + } + get supportsLanguages() { + return !!this.destinationFlowTypes.find((e3) => c.default.getDefinitionForFlowType(e3).supportsLanguages); + } + get destinationFlowTypes() { + return this._embeddedParentFlow ? [this._embeddedParentFlow.type] : this.commonModuleSettings.destinationFlowTypes; + } + set destinationFlowTypes(e3) { + this.commonModuleSettings.destinationFlowTypes = e3; + } + get commonModuleDestinationFlowTypes() { + return this.commonModuleSettings.destinationFlowTypes; + } + get destinationFlowTypeMap() { + return this._embeddedParentFlow ? this._embeddedParentFlow.destinationFlowTypeMap : this.commonModuleSettings.destinationFlowTypesMap; + } + static get type() { + return p.flowTypes.flowTypeCommonModule; + } + _loadConfiguration(e3) { + if (this._setInitialTrackingNumberFromConfiguration(e3.nextTrackingNumber), this.commonModuleSettings.loadConfiguration(e3), super._loadConfiguration(e3), this.tasks.length = 0, e3.flowSequenceItemList && 1 === e3.flowSequenceItemList.length && e3.flowSequenceItemList[0].__type === l.default.info.typeId) { + const t3 = new l.default(this, e3.flowSequenceItemList[0]); + t3.initialize(), this.tasks.push(t3); + } + } + get wrappedYamlName() { + return "commonModule"; + } + _createInitialActions() { + return n2.__awaiter(this, void 0, void 0, function* () { + const e3 = this.startUpObject.addAction(u.endTaskActionType); + return this.parentFlow.defaultLanguage && (e3.name = m(this.parentFlow.defaultLanguage).commonModule.exitCommonModule), this; + }); + } + getMissingLanguages() { + return this.loaded ? this.topParentFlow.languages.supportedLanguages.filter((e3) => !this.languages.supportedLanguages.includes(e3)) : []; + } + getHasMissingTTSEngineErrors() { + if (this.validationResults && !this.isDestroyedOrDestroying && this.loaded && (0, h.isFeatureAvailable)(d.default.flexibleTtsSelection)) return Object.entries(this.validationResults.missingTTSEngine).some(([e3, t3]) => t3); + } + getCommonModuleTask() { + var e3; + return null === (e3 = this.tasks) || void 0 === e3 ? void 0 : e3[0]; + } + } + t2.default = f; + }, 60577: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(81574)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "externalIdInfo"; + } + get externalSource() { + } + get value() { + } + get displayTypeName() { + return "ArchValueExternalIdInfo"; + } + get isArchValueExternalIdInfo() { + return true; + } + } + t2.default = r2; + }, 60598: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.takeWhile = void 0; + var n2 = i2(65212), r2 = i2(17214); + t2.takeWhile = function(e3, t3) { + return void 0 === t3 && (t3 = false), n2.operate(function(i3, n3) { + var o = 0; + i3.subscribe(r2.createOperatorSubscriber(n3, function(i4) { + var r3 = e3(i4, o++); + (r3 || t3) && n3.next(i4), !r3 && n3.complete(); + })); + }); + }; + }, 60599: (e2, t2, i2) => { + "use strict"; + const n2 = i2(31635), r2 = i2(53755), o = i2(21305), a = i2(12179), s = n2.__importDefault(i2(97891)), l = i2(46498), u = i2(12786), d = i2(47957); + class c extends r2.BaseConversationAttributeActionViewModel { + constructor(e3, t3) { + super(e3, t3), this._loadModel(t3); + } + static createCustomJsonProperties() { + return this.createManagedPropertiesFromConfig({ includeInput: true, includeOutput: true, inputOptionsFactory: () => o.ExpressionTypeJsonOptions.create((e3) => { + e3.setAsInput().setUiPropertyGroup(d.setAttributes.attribute).setIsCustomJsonType(true).setCanIgnoreRequired(true).setUiSingleItemSectionPropertyGroup(true).setHideLabel(true).setIninTestingField("customJsonInput"); + }), outputOptionsFactory: () => o.ExpressionTypeJsonOptions.create((e3) => { + e3.setAsOutput().setIsCustomJsonType(true).setLabelOverride(d.conversationAttribute.resultLabel).setIninTestingField("customJsonOutput"); + }) }); + } + static get managedProperties() { + return [...this.createBaseManagedProperties(), this.createRecordIdManagedProperty(), this.createDivisionsManagedProperty(), ...this.createCustomJsonProperties()]; + } + _getPossibleErrors() { + return u.updateConversationAttributeFailureReasons; + } + } + c.info = s.default.createActionInfo({ actionClass: c, canBeInTask: true, helpTopic: a.helpTopics.actions.updateConversationAttribute, modelClass: l.UpdateConversationAttributeActionModel, name: d.actions.updateConversationAttribute, scriptingName: "ArchActionUpdateConversationAttribute" }), t2.A = c; + }, 60609: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.cannedResponseMessageTemplateTypeValues = t2.CannedResponseMessageTemplateType = t2.CannedResponseType = void 0; + const n2 = i2(31635).__importDefault(i2(61864)), r2 = i2(47957); + var o, a; + !(function(e3) { + e3.campaignEmailTemplate = "CampaignEmailTemplate", e3.campaignSmsTemplate = "CampaignSmsTemplate", e3.messagingTemplate = "MessagingTemplate", e3.form = "Form"; + })(o || (t2.CannedResponseType = o = {})), (function(e3) { + e3.standard = "standard", e3.carousel = "carousel"; + })(a || (t2.CannedResponseMessageTemplateType = a = {})), t2.cannedResponseMessageTemplateTypeValues = [{ id: a.carousel, displayString: r2.cardsAndCars.carouselLabel, icon: n2.default.carouselCircled.gux }]; + }, 60628: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(20692)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "skillCollection"; + } + get displayTypeName() { + return "ArchVariableSkillCollection"; + } + get initialValue() { + return this._initialValue; + } + get isArchVariableSkillCollection() { + return true; + } + } + t2.default = r2; + }, 60633: (e2, t2, i2) => { + const n2 = i2(75458), r2 = i2(7401), { getSIPHeadersActionType: o } = i2(30801); + function a() { + Object.defineProperties(this, { _sipHeaderNames: { writable: true }, _sipHeadersResult: { writable: true }, _errorBindings: { writable: true } }), a.baseConstructor.apply(this, arguments); + } + n2.extend(a, o, true), Object.defineProperties(a.prototype, { sipHeaderNames: { enumerable: true, get: function() { + return this._sipHeaderNames; + }, set: function(e3) { + this._sipHeaderNames = this.reviveItem(e3, r2); + } }, sipHeadersResult: { enumerable: true, get: function() { + return this._sipHeadersResult; + }, set: function(e3) { + this._sipHeadersResult = this.reviveItem(e3, r2); + } }, pasteReIdOrRename: { value: function(e3) { + a._super.pasteReIdOrRename.apply(this, arguments), this._sipHeaderNames.pasteReIdOrRename(e3), this._sipHeadersResult.pasteReIdOrRename(e3); + } }, pasteResolveOldToNewValues: { value: function(e3) { + a._super.pasteResolveOldToNewValues.apply(this, arguments), this._sipHeaderNames.pasteResolveOldToNewValues(e3), this._sipHeadersResult.pasteResolveOldToNewValues(e3); + } } }), e2.exports = a; + }, 60645: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importDefault(i2(92140)), o = n2.__importDefault(i2(84783)), a = n2.__importDefault(i2(78432)), s = n2.__importDefault(i2(97354)); + class l extends o.default { + get displayTypeName() { + return "ArchFactoryFilters"; + } + get logStr() { + return this._createLogStrFromParts(["ArchFactoryFilters"]); + } + get isArchFactoryFilters() { + return true; + } + createFilterObject(e3) { + return (r2.default.isUndefined(e3) || null === e3) && (e3 = a.default.FILTER_CONTAINER_OPERATORS.and), this._checkItemIsValidLiteralStringEnum(this._infoParm("operator", "createFilterObject"), e3, a.default.FILTER_CONTAINER_OPERATORS_ALL), new s.default(e3); + } + createFilterTraverseDefault(e3) { + this._checkItemIsValidLiteralBool(this._infoParm("wantArchBaseValues", "createFilterTraverseDefault"), e3, true); + const t3 = this.createFilterObject(a.default.FILTER_CONTAINER_OPERATORS.or), i3 = ["isArchBaseAction", "isArchBaseFlow", "isArchBaseMenu", "isArchBaseMenuChoice", "isArchBaseMultiActionContainer", "isArchBaseVariable"]; + return e3 && i3.push("isArchBaseValue"), r2.default.each(i3, (e4) => { + t3.addClausePropertyValueEquals(e4, true); + }), t3; + } + } + t2.default = new l(); + }, 60725: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importDefault(i2(94225)), o = i2(59912), a = n2.__importDefault(i2(45894)); + class s extends a.default { + constructor(e3) { + super(e3, o.utilizationLabelManager); + } + get _globalTypeName() { + return "utilizationLabel"; + } + get isArchValueUtilizationLabel() { + return true; + } + get displayTypeName() { + return "ArchValueUtilizationLabel"; + } + setLiteralByUtilizationLabelNameAsync(e3, t3) { + return this._checkItemIsValidLiteralString(this._infoParm("utilizationLabelId", "setLiteralByUtilizationLabelNameAsync"), e3), this._checkItemIsValidFunction(this._infoParm("callbackFunction", "setLiteralByUtilizationLabelNameAsync"), t3, true), this._setLiteralByValueAsync(e3).then(() => r2.default.executeCallback(this, "setLiteralByUtilizationLabelNameAsync", t3, this)); + } + setLiteralByUtilizationLabelIdAsync(e3, t3) { + return this._checkItemIsValidLiteralString(this._infoParm("utilizationLabelId", "setLiteralByUtilizationLabelIdAsync"), e3), this._checkItemIsValidFunction(this._infoParm("callbackFunction", "setLiteralByUtilizationLabelIdAsync"), t3, true), this._setLiteralByIdAsync(e3).then(() => r2.default.executeCallback(this, "setLiteralByUtilizationLabelIdAsync", t3, this)); + } + } + t2.default = s; + }, 60776: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.UserType = void 0; + const n2 = i2(31635), r2 = n2.__importDefault(i2(92140)), o = i2(26954), a = i2(30163), s = i2(67210), l = i2(27491), u = n2.__importDefault(i2(22226)), d = i2(80428), c = i2(14394), p = i2(94765); + class _ extends p.ExpressionType { + constructor(e3, t3, i3) { + super(e3, t3, i3), this.additionLiteralProperties = ["username"]; + } + get className() { + return "UserType"; + } + createExpressionOptionClass() { + return new o.ExpressionTypeUserOptions(this.isCollection); + } + get yamlLiteralWrapperString() { + return "userName"; + } + _checkForPermission(e3, t3, i3, n3) { + if (!e3 || !e3.authString) return; + let r3 = false; + if (t3.permissions && (r3 = s.permissionService.checkHasPermissionInAtLeastOneDivision(t3, s.permissionService.staticPermissions[e3.authString]).hasPermission), !r3) { + const t4 = s.permissionService.getAuthValidationWarning(e3.authString, true); + e3.isWarning ? (n3.setParseWarning(t4), i3.addWarning(n3, t4, void 0, true)) : (n3.setParseError(t4), i3.addError(n3, t4, void 0, true)); + } + } + canConvertLitToExpression(e3) { + return l.expressionDataService.isFunctionTextAvailableForFlowTypeAndOperandTypes("FindUserById", e3, [c.globalTypes.string]); + } + convertLitToExpression(e3, t3, i3) { + return i3 && this.canConvertLitToExpression(e3) ? `FindUserById(${u.default.getQuotedExpressionStringLiteral(i3)})` : ""; + } + _getLiteralValueOfExpression() { + return ""; + } + getYamlObjectForLiteralSingleton(e3) { + var t3, i3, n3, o2; + let a2; + if (super.getYamlObjectForLiteralSingleton(e3), (null === (t3 = null == e3 ? void 0 : e3.parentFlow) || void 0 === t3 ? void 0 : t3.isReadOnly) && (null === (i3 = null == e3 ? void 0 : e3.config) || void 0 === i3 ? void 0 : i3.val)) { + const t4 = this.listManager.getItem(e3.config.val); + t4 && (a2 = t4.email); + } + return r2.default.tryWrapObject(a2 || (null === (o2 = null === (n3 = null == e3 ? void 0 : e3.config) || void 0 === n3 ? void 0 : n3.lit) || void 0 === o2 ? void 0 : o2.username) || "", this.yamlLiteralWrapperString); + } + get listManager() { + return a.userManager; + } + } + t2.UserType = _, _.typeIdentifier = d.expressionTypeNames.userQueue; + }, 60818: (e2, t2, i2) => { + "use strict"; + var n2, r2; + Object.defineProperty(t2, "__esModule", { value: true }), t2.GetConversationAttributesActionModel = void 0; + const o = i2(31635), a = i2(70630), s = i2(80295), l = o.__importDefault(i2(7401)), u = i2(30801), d = i2(80295); + class c extends a.BaseConversationAttributeActionModel { + constructor(e3) { + super(e3), this.__type = c.__type, (0, d.makeUnenumerable)(this, "_recordIds"), (0, d.makeUnenumerable)(this, "_output"); + } + get recordIds() { + return this._recordIds; + } + set recordIds(e3) { + this._recordIds = this.reviveItem(e3, l.default); + } + get output() { + return this._output; + } + set output(e3) { + this._output = this.reviveItem(e3, l.default); + } + pasteReIdOrRename(e3) { + var t3; + super.pasteReIdOrRename(e3), this.recordIds.pasteReIdOrRename(e3), null === (t3 = this.output) || void 0 === t3 || t3.pasteReIdOrRename(e3); + } + pasteResolveOldToNewValues(e3) { + var t3; + super.pasteResolveOldToNewValues(e3), this.recordIds.pasteResolveOldToNewValues(e3), null === (t3 = this.output) || void 0 === t3 || t3.pasteResolveOldToNewValues(e3); + } + } + t2.GetConversationAttributesActionModel = c, c.__type = u.getConversationAttributesActionType, o.__decorate([(0, s.enumerable)(true), o.__metadata("design:type", "function" == typeof (n2 = void 0 !== l.default && l.default) ? n2 : Object), o.__metadata("design:paramtypes", [Object])], c.prototype, "recordIds", null), o.__decorate([(0, s.enumerable)(true), o.__metadata("design:type", "function" == typeof (r2 = void 0 !== l.default && l.default) ? r2 : Object), o.__metadata("design:paramtypes", [Object])], c.prototype, "output", null), c.registerType(); + }, 60843: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importDefault(i2(94225)), o = i2(92158), a = n2.__importDefault(i2(40559)); + class s extends a.default { + constructor(e3) { + super(e3, o.wrapupCodeManager); + } + get _globalTypeName() { + return "wrapupCodeCollection"; + } + get displayTypeName() { + return "ArchValueWrapupCodeCollection"; + } + get _searchByValueSearchProperty() { + return "name"; + } + addLiteralByWrapupCodeIdAsync(e3, t3) { + return n2.__awaiter(this, void 0, void 0, function* () { + return this._checkItemIsValidLiteralString(this._infoParm("wrapupCodeId", "addLiteralByWrapupCodeIdAsync"), e3), this._checkItemIsValidFunction(this._infoParm("callbackFunction", "addLiteralByWrapupCodeIdAsync"), t3, true), this._addLiteralByIdAsync(e3, "wrapupCode").then(() => r2.default.executeCallback(this, "addLiteralByWrapupCodeIdAsync", t3, this)); + }); + } + addLiteralByWrapupCodeNameAsync(e3, t3) { + return n2.__awaiter(this, void 0, void 0, function* () { + return this._checkItemIsValidLiteralString(this._infoParm("wrapupCodeName", "addLiteralByWrapupCodeNameAsync"), e3), this._checkItemIsValidFunction(this._infoParm("callbackFunction", "addLiteralByWrapupCodeNameAsync"), t3, true), this._addLiteralByValueAsync(e3, "wrapupCode").then(() => r2.default.executeCallback(this, "addLiteralByWrapupCodeNameAsync", t3, this)); + }); + } + get isArchValueWrapupCodeCollection() { + return true; + } + } + t2.default = s; + }, 60856: (e2, t2, i2) => { + const n2 = i2(45214), r2 = i2(15244); + function o() { + Object.defineProperties(this, { _handlingType: { writable: true } }), o.baseConstructor.apply(this, arguments); + } + n2.extend(o, "BaseEventHandlingSettings"), Object.defineProperties(o.prototype, { pasteReIdOrRename: { value: function(e3) { + o._super.pasteReIdOrRename.apply(this, arguments); + } }, pasteResolveOldToNewValues: { value: function(e3) { + o._super.pasteResolveOldToNewValues.apply(this, arguments); + } }, handlingType: { enumerable: true, get: function() { + return this._handlingType; + }, set: function(e3) { + this._handlingType = this.reviveEnum(e3, r2); + } } }), e2.exports = o; + }, 60873: (e2, t2, i2) => { + "use strict"; + var n2, r2, o, a, s; + Object.defineProperty(t2, "__esModule", { value: true }), t2.isAskForSlotActionViewModel = function(e3) { + return null == e3 ? void 0 : e3.isAskForSlotActionViewModel; + }; + const l = i2(31635), u = i2(96618), d = i2(68694), c = i2(17604), p = l.__importDefault(i2(92140)), _ = l.__importDefault(i2(83668)), h = l.__importDefault(i2(87769)), m = l.__importDefault(i2(4712)), g = l.__importDefault(i2(53474)), f = l.__importDefault(i2(33726)), T = i2(28562), y = l.__importDefault(i2(73198)), S = l.__importStar(i2(63824)), A = l.__importStar(i2(63352)), N = i2(80428), O = (l.__importStar(i2(28614)), i2(28614)), I = i2(53476), v = i2(53476), C = i2(53476), b = i2(67607), E = i2(39964), R = i2(82319), w = i2(61870), D = i2(79467), P = i2(43700), M = i2(49892), F = i2(81516), L = i2(99469), x = l.__importDefault(i2(22917)), k = l.__importDefault(i2(27203)), V = l.__importStar(i2(85020)), U = i2(19284), B = l.__importStar(i2(25301)), G = l.__importStar(i2(15721)), j = l.__importStar(i2(36781)), W = l.__importStar(i2(10798)), q = l.__importDefault(i2(41510)), Y = l.__importStar(i2(1115)), H = l.__importDefault(i2(4648)), J = i2(12179), z = i2(13116), K = l.__importDefault(i2(97891)), $ = i2(28803), Q = i2(87870), X = l.__importDefault(i2(80570)), Z = l.__importDefault(i2(40773)), ee = i2(1492), te = l.__importDefault(i2(86833)), ie = i2(21733), ne = i2(47957), re = "2.1"; + class oe extends X.default { + static get branchInfo() { + const e3 = [k.default.default, k.default.maxNoInputsOptional]; + return W.isFeatureAvailable(H.default.botFlowsEnhancedRecognitionFailureHandling) && e3.push(k.default.maxNoMatchesOptional), W.isFeatureAvailable(H.default.botFlowsSupportDontKnowAnswers) && e3.push(k.default.skipResponseCaptureOptional), e3; + } + isOptionalPathAvailable(e3) { + return true; + } + get supportsCustomOutputPaths() { + return true; + } + getYamlOptionsMap() { + const e3 = super.getYamlOptionsMap(); + return this._doesSelectedSlotTypeSupportChooser || (e3.chooser = x.default.create(void 0, (e4) => e4.setSkipProperty(true))), e3; + } + static get managedProperties() { + return [{ label: ne.askForSlot.slotResult, options: M.ExpressionTypelessOptions.create((e3) => e3.setIninTestingField("askResult").setAsOutput().setUiPropertyOrder(12).setDescriptionInfo(ne.askForSlot.slotResult, ne.askForSlot.slotResultDescription).setReadOnly(true)), yamlOptions: oe.createYamlOptions("askResult", (e3) => e3.setSkipProperty(true)), property: "askResult", type: N.expressionTypeNames.any }, { property: "chooser", label: ne.cardsAndCars.askForSlotChooserLabel, type: N.expressionTypeNames.chooser, supportedFlowTypes: [u.flowTypes.flowTypeDigitalBot], options: E.ExpressionTypeChooserOptions.create((e3) => e3.setUiPropertyOrder(10).setDescriptionInfo(ne.cardsAndCars.askForSlotChooserLabel, ne.cardsAndCars.askForSlotChooserDescription)), yamlOptions: oe.createYamlOptions("chooser", (e3) => e3.setSerializeOutOfService(true)) }, { createDetails: Q.NoteActionProperty.createCreateDetails(void 0, "info", "askForSlotChooserNote"), options: M.ExpressionTypelessOptions.create((e3) => e3.setUiPropertyOrder(11)), property: "chooserNote", yamlOptions: oe.createYamlOptions("chooserNote", (e3) => e3.setSkipProperty(true)) }, { label: ne.askCommon.customValidation.label, options: b.ExpressionTypeBooleanOptions.create((e3) => e3.setAllowSecure(true).setIninTestingField("customValidation").setUiPropertyOrder(13).setDescriptionInfo(ne.askCommon.customValidation.label, ne.askCommon.customValidation.description).setUiPropertyGroup(ne.generic.validation).setIsOptional(true).setAllowModeLiteral(false).setModeNoValueRuntimeEvaluationStr(ne.askCommon.customValidation.noValue)), yamlOptions: oe.createYamlOptions("customValidation", (e3) => e3.setExportOrder(40)), property: "customValidation", type: N.expressionTypeNames.boolean }, { property: "selectedSlot", isJustForFlowYaml: true, yamlOptions: oe.createYamlOptions("selectedSlot", (e3) => e3.setPropertyName("slot").setWrappedValueName("name").setExportOrder(30)) }, { label: ne.askForSlot.confirmationMode, options: F.ExpressionTypeStringOptions.create((e3) => e3.setAllowSecure(true).setDescriptionInfo(ne.askForSlot.confirmationMode, (0, c.sprintf)(ne.askForSlot.confirmationModeDescription, B.always.id, ne.generic.validation, ne.askForSlot.confirmationQuestion)).setIninTestingField("confirmationModeExpression").setUiPropertyGroup(ne.askForSlot.verifyGroupingLabel).setUiPropertyOrder(30).setDefaultText(B.never.id).facets.setTrim(true).setAllowableValues(B.allModes)), property: "confirmationMode", type: N.expressionTypeNames.string, yamlOptions: oe.createYamlOptions("confirmationMode", (e3) => e3.setExportOrder(50)) }, { createDetails: Q.NoteActionProperty.createCreateDetails(ne.askForSlot.confirmationModeUnavailableNote, "info", "confirmation-note"), options: M.ExpressionTypelessOptions.create((e3) => e3.setUiPropertyGroup(ne.askForSlot.verifyGroupingLabel).setUiSingleItemSectionPropertyGroup(true)), property: "confirmationModeNote" }, { label: ne.askForSlot.confirmationQuestion, options: R.ExpressionTypeCommunicationOptions.create((e3) => e3.setAllowSecure(true).setDescriptionInfo(ne.askForSlot.confirmationQuestion, ne.askForSlot.confirmationQuestionDescription).setIninTestingField("confirmationQuestionExpression").setUiPropertyGroup(ne.askForSlot.verifyGroupingLabel).setUiPropertyOrder(32).setDefaultToNoValue(true).setDoNotTransitionToNoValue(false).setDefaultToBuilderId(T.builderIds.parts.genericCommunication).setBuilderLanguagesSequenceConfig(m.default)), optionsForSpecificFlowTypes: [{ flowTypes: [u.flowTypes.flowTypeDigitalBot], options: R.ExpressionTypeCommunicationOptions.create((e3) => e3.setAllowSecure(true).setDescriptionInfo(ne.askForSlot.confirmationQuestion, ne.askForSlot.confirmationQuestionDescription).setIninTestingField("confirmationQuestionExpression").setUiPropertyGroup(ne.askForSlot.verifyGroupingLabel).setUiPropertyOrder(32).setDefaultToNoValue(true).setDoNotTransitionToNoValue(false).setDefaultToBuilderId(T.builderIds.parts.markdownCommunication).setBuilderLanguagesSequenceConfig(m.default)) }], property: "confirmationQuestion", type: N.expressionTypeNames.communication, yamlOptions: oe.createYamlOptions("confirmationQuestion", (e3) => e3.setExportOrder(60)) }, { label: ne.grammars.grammarLabel, options: P.ExpressionTypeGrammarOptions.create((e3) => e3.setDescriptionInfo(ne.grammars.grammarLabel, ne.grammars.grammarSlots.grammarSlotDescriptionInfo).setModeNoValueRuntimeEvaluationStr(ne.grammars.grammarSlots.useSlotConfigDescription).setModeNoValueSelectionLabel(ne.grammars.grammarSlots.useSlotConfigLabel).setIninTestingField("grammar").setFeatureConfigName(H.default.orgAvailabilitySttEnginesGrammarBased).setIsOptional(true).setUiPropertyGroup(ne.speechToText.recognitionParams.speechRecognitionParameters).setUiPropertyOrder(17).setDefaultToNoValue(true)), supportedFlowTypes: [u.flowTypes.flowTypeBot, u.flowTypes.flowTypeVoice, u.flowTypes.flowTypeVoiceSurvey], property: "grammar", type: N.expressionTypeNames.grammar, yamlOptions: oe.createYamlOptions("grammar", (e3) => e3.setExportOrder(70)) }, { property: "speechToTextEngine", label: ne.speechToText.speechToTextEngineLabel, options: L.ManagedPropertyOptions.create((e3) => e3.setDropdownPlaceholder(ne.grammars.grammarSlots.useSlotConfigDescription).setDescriptionInfo(ne.speechToText.speechToTextEngineLabel, ne.speechToText.speechToTextEngineForSlotDescriptionInfo).setIninTestingField("speechToTextEngine").setUiPropertyGroup(ne.speechToText.recognitionParams.speechRecognitionParameters).setUiPropertyOrder(16)), createDetails: $.NetworkBasedActionProperty.createCreateDetails("speechToTextEngineId", "speechToTextEngineName", U.speechToTextEngineManager, null, ne.speechToText.speechToTextEngineNotFound, null, null, (e3, t3) => null == t3 ? void 0 : t3.isBotTranscriptionConnectorTypeOrGrammarBased), supportedFlowTypes: [u.flowTypes.flowTypeBot, u.flowTypes.flowTypeVoice, u.flowTypes.flowTypeVoiceSurvey], yamlOptions: oe.createYamlOptions("speechToTextEngine", (e3) => e3.setExportOrder(71)) }, { label: ne.speechToText.recognitionParams.speechToTextCompleteTimeoutLabel, options: D.ExpressionTypeDurationOptions.create((e3) => e3.setIninTestingField("speechToTextEngineCompleteTimeout").setDescriptionInfo(ne.speechToText.recognitionParams.speechToTextCompleteTimeoutLabel, ne.speechToText.recognitionParams.speechToTextCompleteTimeoutDescription).setFeatureConfigName(H.default.orgAvailabilitySttEnginesGrammarBased).setUiPropertyOrder(18).setIsOptional(true).setUiPropertyGroup(ne.speechToText.recognitionParams.speechRecognitionParameters).setDurationStyle(S.durationStyles.secondsAndTenthsDuration).facets.setMinDur(0, true).setMaxDur(10 * y.default.msPerSecond, true)), supportedFlowTypes: [u.flowTypes.flowTypeBot, u.flowTypes.flowTypeVoice, u.flowTypes.flowTypeVoiceSurvey], type: N.expressionTypeNames.duration, property: "speechToTextEngineCompleteTimeout", yamlOptions: oe.createYamlOptions("speechToTextEngineCompleteTimeout", (e3) => e3.setExportOrder(80)) }, { label: ne.speechToText.recognitionParams.speechToTextConfidenceLevelLabel, options: w.ExpressionTypeDecimalOptions.create((e3) => e3.setIninTestingField("speechToTextEngineConfidenceLevel").setDescriptionInfo(ne.speechToText.recognitionParams.speechToTextConfidenceLevelLabel, ne.speechToText.recognitionParams.speechToTextConfidenceLevelDescription).setFeatureConfigName(H.default.orgAvailabilitySttEnginesGrammarBased).setUiPropertyOrder(19).setIsOptional(true).setUiPropertyGroup(ne.speechToText.recognitionParams.speechRecognitionParameters).facets.setMinDec(0).setMinValInclusive(true).setMaxDec(1).setMaxValInclusive(true)), supportedFlowTypes: [u.flowTypes.flowTypeBot, u.flowTypes.flowTypeVoice, u.flowTypes.flowTypeVoiceSurvey], type: N.expressionTypeNames.decimal, property: "speechToTextEngineConfidenceLevel", yamlOptions: oe.createYamlOptions("speechToTextEngineConfidenceLevel", (e3) => e3.setExportOrder(100)) }, { label: ne.askForSlot.repromptHandling, options: F.ExpressionTypeStringOptions.create((e3) => e3.setIninTestingField("repromptHandling").setUiPropertyGroup(ne.askForSlot.continuationPromptGroupingLabel).setUiSingleItemSectionPropertyGroup(true).setUiPropertyOrder(14).setAllowModeLiteralOnly().setIsOptional(false).setDefaultText(ne.askForSlot.repromptHandlingOptions.repromptHandlingOptionManuallyManaged).setFeatureConfigName(H.default.botFlowsLLMPoweredSlot).facets.setAllowableValueShowOriginalDisplayStringInPopover(true).setTrim(true).setAllowableValueUseOriginalDisplayString(true).setAllowableValues(G.repromptHandlingOptions).setPreferRadioButtonsCount(2)), supportedFlowTypes: [u.flowTypes.flowTypeDigitalBot, u.flowTypes.flowTypeBot], type: N.expressionTypeNames.string, yamlOptions: oe.createYamlOptions("repromptHandling", (e3) => e3.setPropertyName("repromptHandling")), property: "repromptHandling" }, { label: ne.askForSlot.continuationPrompt, options: R.ExpressionTypeCommunicationOptions.create((e3) => e3.setAllowSecure(true).setIninTestingField("continuationPrompt").setIsOptional(true).setDefaultToNoValue(true).setDoNotTransitionToNoValue(false).setScriptingPropertyName("continuationPrompt").setUiPropertyGroup(ne.askForSlot.continuationPromptGroupingLabel).setUiSingleItemSectionPropertyGroup(true).setUiPropertyOrder(15).setFeatureConfigName(H.default.botFlowsLLMPoweredSlot).setDefaultToBuilderId(T.builderIds.parts.genericCommunication).setBuilderLanguagesSequenceConfig(g.default)), optionsForSpecificFlowTypes: [{ flowTypes: [u.flowTypes.flowTypeDigitalBot], options: R.ExpressionTypeCommunicationOptions.create((e3) => e3.setAllowSecure(true).setIninTestingField("continuationPrompt").setIsOptional(true).setDefaultToNoValue(true).setDoNotTransitionToNoValue(false).setScriptingPropertyName("continuationPrompt").setUiPropertyGroup(ne.askForSlot.continuationPromptGroupingLabel).setUiSingleItemSectionPropertyGroup(true).setUiPropertyOrder(15).setFeatureConfigName(H.default.botFlowsLLMPoweredSlot).setDefaultToBuilderId(T.builderIds.parts.markdownCommunication).setBuilderLanguagesSequenceConfig(g.default)) }], supportedFlowTypes: [u.flowTypes.flowTypeDigitalBot, u.flowTypes.flowTypeBot], type: N.expressionTypeNames.communication, yamlOptions: oe.createYamlOptions("continuationPrompt", (e3) => e3.setPropertyName("continuationPrompt")), property: "continuationPrompt" }, { label: ne.askCommon.continuationReprompts, options: oe.createNoMatchProgressiveRepromptsOptions(T.builderIds.parts.genericCommunication), optionsForSpecificFlowTypes: [{ flowTypes: [u.flowTypes.flowTypeDigitalBot], options: oe.createNoMatchProgressiveRepromptsOptions(T.builderIds.parts.markdownCommunication) }], yamlOptions: oe.createYamlOptions("continuationReprompts", (e3) => e3.setPropertyName("continuationReprompts").setWrappedObjectName("customizeContinuation")), property: "continuationReprompts", type: N.expressionTypeNames.communication }, { options: b.ExpressionTypeBooleanOptions.create((e3) => e3.setUseButton(true).setAllowModeLiteralOnly().setDefaultText(y.default.false).setIninTestingField("customizeContinuationNoMatchButton").setBoolText(ne.askCommon.defaultContinuationPrompt, ne.askCommon.customizeContinuationPrompt).setUiPropertyGroup(ne.askForSlot.continuationPromptGroupingLabel).setUiPropertyOrder(28).setFeatureConfigName(H.default.botFlowsAIPoweredSlotsEnhancements)), yamlOptions: oe.createYamlOptions("customizeContinuation", (e3) => e3.setSkipProperty(true)), property: "customizeContinuation", type: N.expressionTypeNames.boolean }]; + } + constructor(e3, t3) { + super(e3), n2.set(this, void 0), r2.set(this, void 0), o.set(this, void 0), a.set(this, void 0), s.set(this, void 0), this._needsSpeechParamOverrideError = false, this._loadModel(t3), this._setOptions(this.noInput, _.default), this._setOptions(this.noMatch, h.default), this._setOptions(this.question, f.default), this._setOptions(this.continuationPrompt, g.default), this.addAutoCleanedUpEventListener(j.branchesChanged, () => { + const e4 = this.getBranch(k.default.maxNoInputsOptional.outputId), t4 = this.getBranch(k.default.default.outputId); + let i3 = null, n3 = null; + W.isFeatureAvailable(H.default.botFlowsEnhancedRecognitionFailureHandling) && (i3 = this.getBranch(k.default.maxNoMatchesOptional.outputId)), W.isFeatureAvailable(H.default.botFlowsSupportDontKnowAnswers) && (n3 = this.getBranch(k.default.skipResponseCaptureOptional.outputId)), (!e4.outOfService || i3 && !i3.outOfService || n3 && !n3.outOfService) && t4.outOfService ? (t4.outOfService = false, j.emitter.emit(j.branchesChanged)) : !e4.outOfService || i3 && !i3.outOfService || n3 && !n3.outOfService || t4.outOfService || (t4.outOfService = true, j.emitter.emit(j.branchesChanged)), this._updateSkipCapture(); + }), this.parentFlow.supportsGrammars && this.addAutoCleanedUpEventSinkWatch(j.valueChanged, this.speechToTextEngine, () => { + this._updateSpeechRecognitionSettings(); + }), j.emitter.on(j.rangeValueSelected, (e4) => { + this.selectedSlotType === e4.slotTypeName && this.confirmationMode && this.confirmationMode.text !== B.always.id && this.confirmationMode.setAsLiteral(B.always.id); + }); + } + _setOptions(e3, t3) { + const i3 = t3.flowTypeOverrides[this.parentFlow.type] || t3; + e3.options.setDefaultToBuilderId(i3.builderId).setBuilderLanguagesSequenceConfig(t3); + } + get hasMultiSelectSlot() { + return this.selectedSlot && l.__classPrivateFieldGet(this, s, "f"); + } + get hasSingleSelectSlot() { + return this.selectedSlot && !l.__classPrivateFieldGet(this, s, "f"); + } + _updateHasMultiSelect() { + l.__classPrivateFieldSet(this, s, this.selectedSlot && this.parentFlow.nluMetaData.isMultiSelectSlot(this.selectedSlot), "f"); + } + get selectedSlot() { + return this.model.selectedSlot; + } + get isAskForSlotActionViewModel() { + return true; + } + get selectedSlotError() { + return l.__classPrivateFieldGet(this, n2, "f"); + } + get selectedSlotErrorText() { + return l.__classPrivateFieldGet(this, r2, "f"); + } + get speechToTextEngineName() { + return l.__classPrivateFieldGet(this, o, "f"); + } + get speechToTextEngineId() { + return l.__classPrivateFieldGet(this, a, "f"); + } + get selectedSlotType() { + return this.model.selectedSlotType; + } + static createNoMatchProgressiveRepromptsOptions(e3) { + return R.ExpressionTypeCommunicationOptions.create((t3) => t3.setAllowSecure(true).setIninTestingField("continuationReprompts").setDescriptionInfo(ne.askCommon.continuationReprompts, (0, c.sprintf)(q.default.generic.twoStringsSpaceSeparator, ne.askCommon.continuationRepromptsDescription, ne.errors.emptyCollectionInvokesErrorHandling)).setIsOptional(true).setRequiredFlowChannelType(V.channelTypeCall).setUiPropertyGroup(ne.askForSlot.continuationPromptGroupingLabel).setScriptingPropertyName("continuationReprompts").setIsCollection(true).setAllowModeLiteral(true).setMaxItems(10).setDoNotTransitionToNoValue(true).setDefaultToBuilderId(e3).setFeatureConfigName(H.default.botFlowsAIPoweredSlotsEnhancements).setUiPropertyOrder(27), true); + } + setSelectedSlotNameAndType(e3, t3, i3) { + return !this.parentFlow.isReadOnly && (!p.default.isString(t3) && p.default.isString(e3) && e3.length && (t3 = this.parentFlow.getSlotToSlotTypeMap(true, false).get(e3)), this.model.selectedSlot = e3, this._updateAskResultProperty(), this.model.selectedSlotType = t3, this._updateHasMultiSelect(), this._updateConfirmationQuestionProperty(false), this.isChooserFunctionalityAvailable && (this.chooser.type.configureForSlotBySlotName(this.chooser, e3, i3), this._updateChooser(), this.chooser.type.isSelectedSlotTypeDynamicDateTime(this.chooser)), this.setOutOfService(), this._updateContinuationPromptProperty(false), Y.validateAction(this, true, true), true); + } + _initializeDesignTime() { + super._initializeDesignTime(), this.isChooserFunctionalityAvailable && this.chooser.isNoValueMode && this.chooser.setModeWithTransition(A.literal), this.isChooserFunctionalityAvailable && this.uiMetaData.version !== re && (!this.chooser.type.getPresentationModeIsCarousel(this.chooser) && this.chooser.isLiteralMode && this.chooser.type.configureForSlotBySlotName(this.chooser, this.selectedSlot), this.uiMetaData.version = re, this.chooser.type.applyNluDiffs(this.chooser, O.slotTypeValueMergeMode.asIndividualValues)), this._updateSpeechRecognitionSettings(), this._updateNluInformation(), this.addAutoCleanedUpEventListener(j.nluUpdatedByWorkbench, () => this._updateNluInformation()), this.addAutoCleanedUpEventListener(j.slotListPickerMappingUpdated, () => this._updateNluInformation()), this.speechToTextEngine.isOptional = true, this._updateChooser(), this.setOutOfService(); + } + setOutOfService() { + const e3 = this.repromptHandling.text === G.manual.displayString, t3 = d.EntityUtil.isEntityTypeOfTypeAI(d.EntityUtil.getEntityTypeByName(this.parentFlow.nlu, this.selectedSlotType)); + this.repromptHandling.outOfService = e3 || !t3, this.continuationPrompt.outOfService = !t3, this._updateProgressivePropertiesOOS(); + } + _showChooserLabelAndModeSelector(e3) { + this.chooser.label = e3 ? ne.cardsAndCars.askForSlotChooserLabel : void 0; + } + _updateSpeechRecognitionSettings() { + const e3 = Z.default.isSttIdBotTranscriptionConnectorType(this.speechToTextEngineId); + e3 ? (this.grammar.setAsNoValue(), this.grammar.options.setReadOnly(true)) : this.grammar.options.setReadOnly(false); + const t3 = !!this.speechToTextEngineId && !this.grammar.isNoValueMode, i3 = !this.speechToTextEngineId && this.grammar.isNoValueMode; + this._needsSpeechParamOverrideError = !t3 && !i3 && !e3, Y.validateAction(this, false, true); + } + get _doesSelectedSlotTypeSupportChooser() { + return this.isChooserFunctionalityAvailable && (this.chooser.type.isSelectedSlotTypeListOrDynamicList(this.chooser) || this.chooser.type.isSelectedSlotTypeDynamicDateTime(this.chooser)); + } + _updateChooser() { + if (!this.isChooserFunctionalityAvailable) return void (this.chooser.outOfService = true); + let e3, t3 = false; + const i3 = this.chooser.type.isSelectedSlotTypeListOrDynamicList(this.chooser); + this.selectedSlot ? this.chooser.isLiteralMode && (this.chooser.type.totalChoiceCountIsWithinLimits(this.chooser) ? this._doesSelectedSlotTypeSupportChooser ? i3 && this._previousPresentationModeBeforeTimePicker : (t3 = true, e3 = ne.cardsAndCars.noRichMediaSlotTypeNotList) : e3 = (0, c.sprintf)(ne.cardsAndCars.noRichMediaTooManyChoices, this.chooser.type.getMaxChoiceCountForPresentation(this.chooser)), this._updateSkipCapture()) : (t3 = true, e3 = ne.cardsAndCars.noRichMediaNoSlotSelected), this.chooser.outOfService = t3, this.chooserNote.note = e3, i3 ? this._showChooserLabelAndModeSelector(true) : this.chooser.type.isSelectedSlotTypeDynamicDateTime(this.chooser) && this._showChooserLabelAndModeSelector(false), this.chooser.type.updateNluInfo(this.chooser); + } + _updateNluInformation() { + this._updateAskResultProperty(), this._updateSelectedSlotType(), this._updateConfirmationQuestionProperty(false), this._updateHasMultiSelect(), this.setOutOfService(); + } + _updateSkipCapture() { + var e3, t3, i3, n3, r3, o2, a2, s2, l2; + if (!W.isFeatureAvailable(H.default.botFlowsSupportDontKnowAnswers)) return; + const u2 = !(null === (e3 = this.getBranch(k.default.skipResponseCaptureOptional.outputId)) || void 0 === e3 ? void 0 : e3.outOfService), d2 = this.chooser.type.getPresentationModeIsQuickReplies(this.chooser), c2 = this.chooser.type.getPresentationModeIsCarousel(this.chooser); + if (!d2 && !c2) return; + const p2 = this.chooser.type.getPossibleChoices(this.chooser, false, true).filter((e4) => { + if ((0, C.isChoiceExpression)(e4)) return e4.type.isSkipChoice(e4); + }); + if (u2 && 0 === (null == p2 ? void 0 : p2.length) && this.chooser.type.getPresentationModeExpression(this.chooser).isLiteralMode) { + let e4; + d2 ? e4 = null === (r3 = null === (n3 = null === (i3 = null === (t3 = this.chooser) || void 0 === t3 ? void 0 : t3.properties) || void 0 === i3 ? void 0 : i3.quickreplies) || void 0 === n3 ? void 0 : n3.properties) || void 0 === r3 ? void 0 : r3.buttons : c2 && (e4 = null === (l2 = null === (s2 = null === (a2 = null === (o2 = this.chooser) || void 0 === o2 ? void 0 : o2.properties) || void 0 === a2 ? void 0 : a2.carousel) || void 0 === s2 ? void 0 : s2.properties) || void 0 === l2 ? void 0 : l2.cards), this.skipChoice = e4.addItem(); + let u3 = this.skipChoice; + c2 && (this.skipChoice.properties.title.setText(ne.generic.branches.skipResponse, false, true), u3 = this.skipChoice.properties.buttons.addItem()), u3.properties.command.outOfService = false, u3.properties.command.setText(ee.ChoiceTypeCommands.SKIP, false, true), u3.properties.value.setText(ne.generic.branches.skipResponse, false, true); + } + !u2 && (null == p2 ? void 0 : p2.length) > 0 && p2.forEach((e4) => { + var t4; + const i4 = e4.type.getContainer(e4); + i4 && (e4.type.hasQuickRepliesParent(e4) ? null === (t4 = e4.parentList) || void 0 === t4 || t4.collectionItems.removeChild(e4) : e4.type.hasCarouselParent(e4) && (0, v.isCardExpression)(i4) && (0, I.isCardCollection)(i4.parentList) && i4.parentList.collectionItems.removeChild(i4)); + }); + } + propertyChanged(e3) { + super.propertyChanged(e3), this.parentFlow.loaded && this.initializeDesignTimeCalled && (e3 === this.confirmationMode && this._updateConfirmationQuestionProperty(false), e3 === this.grammar && this._updateSpeechRecognitionSettings(), e3.propertyName && "customizeContinuation" === e3.propertyName && this._updateProgressivePropertiesOOS()); + } + _updateProgressivePropertiesOOS() { + const e3 = d.EntityUtil.isEntityTypeOfTypeAI(d.EntityUtil.getEntityTypeByName(this.parentFlow.nlu, this.selectedSlotType)); + this.customizeContinuation.outOfService = !e3, this.continuationPrompt.outOfService = this._isContinuationNoMatchOOS() || !e3, this.continuationReprompts.outOfService = this._isContinuationNoMatchRepromptsOOS() || !e3; + } + _isContinuationNoMatchOOS() { + return this.customizeContinuation.model.text === y.default.true; + } + _isContinuationNoMatchRepromptsOOS() { + return this.customizeContinuation.model.text !== y.default.true; + } + setNewInstanceDefaults(e3) { + super.setNewInstanceDefaults(e3); + const t3 = ie(this.parentFlow.defaultLanguage), i3 = this.selectedSlot; + p.default.isString(i3) && i3.length ? (this.parentFlow.isDigitalBotFlow ? this.setNewInstanceNoInputText((0, c.sprintf)(t3.askForSlot.noInputWithSlotDigitalBot, i3)) : this.setNewInstanceNoInputText((0, c.sprintf)(t3.askForSlot.noInputWithSlot, i3)), this.setNewInstanceQuestionText((0, c.sprintf)(t3.askForSlot.questionWithSlot, i3)), this.setNewInstanceNoMatchText((0, c.sprintf)(t3.askForSlot.noMatchWithSlot, i3))) : (this.parentFlow.isDigitalBotFlow ? this.setNewInstanceNoInputText(t3.askForSlot.noInputDigitalBot) : this.setNewInstanceNoInputText(t3.askForSlot.noInput), this.setNewInstanceQuestionText(t3.askForSlot.question), this.setNewInstanceNoMatchText(t3.askForSlot.noMatch)), this._updateConfirmationQuestionProperty(false), this._updateContinuationPromptProperty(false), this.setBranchOutOfService(k.default.maxNoInputsOptional.outputId), this.setBranchOutOfService(k.default.maxNoMatchesOptional.outputId), this.setBranchOutOfService(k.default.skipResponseCaptureOptional.outputId), this.setBranchOutOfService(k.default.default.outputId), this.isChooserFunctionalityAvailable && (this.uiMetaData.version = re); + } + _updateAskResultProperty() { + const e3 = this.parentFlow.nluMetaData.getSlotVariableForSlotName(this.selectedSlot); + e3 ? (this.askResult.type = e3.type, this.askResult.setText(e3.name, true, true), this.askResult.outOfService = false) : (this.askResult.setText("", true, true), this.askResult.outOfService = true); + } + _updateContinuationPromptProperty(e3) { + const t3 = ie(this.parentFlow.defaultLanguage); + if (!this.continuationPrompt.outOfService) { + const e4 = (0, c.sprintf)(t3.askForSlot.continuationPromptWithSlot, this.selectedSlot); + this.continuationPrompt.setCommunicationBuilderText(e4); + } + e3 && this.continuationPrompt.resetForBuilder(true, false); + } + _updateConfirmationQuestionProperty(e3) { + if (this.askResult.type.isCollection) return this.confirmationModeNote.outOfService = false, this.confirmationMode.outOfService = true, void (this.confirmationQuestion.outOfService = true); + this.confirmationModeNote.outOfService = true, this.confirmationMode.outOfService = false; + const t3 = this.confirmationMode.isLiteralMode && this.confirmationMode.text === B.never.id || this.confirmationMode.isExpressionMode && this.confirmationMode.text === `"${B.never.id}"`; + this.confirmationQuestion.hasConfig && this.confirmationQuestion.outOfService === t3 || (this.confirmationQuestion.outOfService = t3, Y.validateAction(this, false, true)), e3 && this.confirmationQuestion.resetForBuilder(true, false); + } + _updateSelectedSlotType() { + const e3 = this.parentFlow.getSlotToSlotTypeMap(true, false).get(this.selectedSlot); + e3 && e3 !== this.selectedSlotType && (this.model.selectedSlotType = e3); + } + getAvailableSlotNames() { + return this.parentFlow.getAvailableSlotNames(true, false); + } + validate(e3) { + var t3, i3, o2, a2, s2, u2, p2, _2, h2, m2, g2, f2, T2, y2; + if (this._updateChooser(), super.validate(e3), l.__classPrivateFieldSet(this, n2, false, "f"), l.__classPrivateFieldSet(this, r2, void 0, "f"), this.selectedSlot) { + const e4 = this.parentFlow.getAllSlotsToSlotHandlingMap().get(this.selectedSlot); + void 0 === e4 ? l.__classPrivateFieldSet(this, r2, (0, c.sprintf)(ne.askForSlot.selectedSlotError, this.selectedSlot), "f") : e4 !== z.SlotHandlingType.standardSlot && l.__classPrivateFieldSet(this, r2, (0, c.sprintf)(ne.voiceSurvey.voiceSurveySlotNotAllowedErrorMessage, this.selectedSlot), "f"); + } else this.selectedSlot || l.__classPrivateFieldSet(this, r2, ne.askForSlot.noSlotSelected, "f"); + if (l.__classPrivateFieldGet(this, r2, "f") && (l.__classPrivateFieldSet(this, n2, true, "f"), e3.addError(this, l.__classPrivateFieldGet(this, r2, "f"))), this._updateSelectedSlotType(), this.selectedSlot && this.askResult.isEmpty && e3.addError(this, ne.askForSlot.askForSlotInvalid), this.chooser.isLiteralMode) { + const t4 = this.chooser.type.getPresentationModeIsTimePicker(this.chooser), i4 = this.chooser.type.isSelectedSlotTypeDynamicDateTime(this.chooser), n3 = this.chooser.type.getPresentationModeStr(this.chooser); + if (t4 !== i4 && !this.chooser.outOfService) { + const t5 = (0, c.sprintf)(ne.cardsAndCars.expression.chooserPresentationModeNotAllowedWithMismatchSlotType, n3); + te.default.addError(e3, this.chooser, t5); + } + } + if (!this.confirmationQuestion.outOfService && this.selectedSlot && this.confirmationQuestion.config) { + const t4 = this.parentFlow.nluMetaData.getSlotVariableForSlotName(this.selectedSlot); + t4 && this.confirmationQuestion.variables && !this.confirmationQuestion.variables[t4.id] && te.default.addWarning(e3, this.confirmationQuestion, (0, c.sprintf)(ne.askForSlot.confirmationQuestionDoesNotReferenceSlotVariable, t4.name)); + } + if (!this.continuationPrompt.outOfService && this.selectedSlot && this.continuationPrompt.config) { + const t4 = this.parentFlow.nluMetaData.getSlotVariableForSlotName(this.selectedSlot); + if (t4 && this.continuationPrompt.variables && !this.continuationPrompt.variables[t4.id]) { + const i4 = (0, c.sprintf)(ne.askForSlot.continuationPromptDoesNotReferenceSlotVariable, t4.name); + e3.addExpressionWarning(this.continuationPrompt, i4); + } + } + if (this.selectedSlot && this.selectedSlotType && !this.confirmationMode.outOfService) { + const t4 = d.EntityUtil.hasMinLengthForEntityType(d.EntityUtil.getEntityTypeByName(this.parentFlow.nlu, this.selectedSlotType)), i4 = this.confirmationMode.isLiteralMode && this.confirmationMode.text === B.never.id; + if (t4 && i4) { + const t5 = (0, c.sprintf)(ne.askForSlot.confirmationModeNeverWithRangeValuesWarning, this.selectedSlot); + e3.addExpressionWarning(this.confirmationMode, t5); + } + } + if (this._needsSpeechParamOverrideError && (this.speechToTextEngineId ? (e3.addError(this, (0, c.sprintf)(ne.grammars.modal.overrideSpeechRecognitionErrorMessage, ne.speechToText.speechToTextEngineLabel, ne.grammars.grammarLabel)), this.grammar.setParseError((0, c.sprintf)(ne.grammars.modal.overrideSpeechRecognitionErrorMessageAlternative, ne.grammars.grammarLabel))) : (e3.addError(this, (0, c.sprintf)(ne.grammars.modal.overrideSpeechRecognitionErrorMessage, ne.grammars.grammarLabel, ne.speechToText.speechToTextEngineLabel)), this.speechToTextEngine.currentUiErrorMessage = (0, c.sprintf)(ne.grammars.modal.overrideSpeechRecognitionErrorMessageAlternative, ne.speechToText.speechToTextEngineLabel))), this.isChooserFunctionalityAvailable && this.chooser && this.chooser.type.getPresentationModeIsQuickReplies(this.chooser)) { + const n3 = (null === (p2 = null === (u2 = null === (s2 = null === (a2 = null === (o2 = null === (i3 = null === (t3 = this.chooser) || void 0 === t3 ? void 0 : t3.properties) || void 0 === i3 ? void 0 : i3.quickreplies) || void 0 === o2 ? void 0 : o2.properties) || void 0 === a2 ? void 0 : a2.buttons) || void 0 === s2 ? void 0 : s2.collectionItems) || void 0 === u2 ? void 0 : u2.items) || void 0 === p2 ? void 0 : p2.filter((e4) => e4.type.isSkipChoice(e4))) || []; + n3.length > 1 && n3.forEach((t4) => { + e3.addExpressionError(t4, (0, c.sprintf)(ne.askForSlot.tooManySkipChoicesError, n3.length)); + }); + } + if (this.isChooserFunctionalityAvailable && this.chooser && this.chooser.type.getPresentationModeIsCarousel(this.chooser)) { + const t4 = (null === (y2 = null === (T2 = null === (f2 = null === (g2 = null === (m2 = null === (h2 = null === (_2 = this.chooser) || void 0 === _2 ? void 0 : _2.properties) || void 0 === h2 ? void 0 : h2.carousel) || void 0 === m2 ? void 0 : m2.properties) || void 0 === g2 ? void 0 : g2.cards) || void 0 === f2 ? void 0 : f2.collectionItems) || void 0 === T2 ? void 0 : T2.items) || void 0 === y2 ? void 0 : y2.filter((e4) => { + var t5, i4, n3, r3; + return null === (r3 = null === (n3 = null === (i4 = null === (t5 = null == e4 ? void 0 : e4.properties) || void 0 === t5 ? void 0 : t5.buttons) || void 0 === i4 ? void 0 : i4.collectionItems) || void 0 === n3 ? void 0 : n3.items) || void 0 === r3 ? void 0 : r3.filter((e5) => e5.type.isSkipChoice(e5)).length; + })) || []; + t4.length > 1 && t4.forEach((i4) => { + e3.addExpressionError(i4, (0, c.sprintf)(ne.askForSlot.tooManySkipChoicesError, t4.length)); + }); + } + } + get isChooserFunctionalityAvailable() { + var e3, t3, i3, n3; + return void 0 === this._isChooserFunctionalityAvailable && (this._isChooserFunctionalityAvailable = (null === (t3 = null === (e3 = this.chooser) || void 0 === e3 ? void 0 : e3.supportedFlowTypes) || void 0 === t3 ? void 0 : t3.includes(this.parentFlow.type)) && (null === (n3 = null === (i3 = this.chooser) || void 0 === i3 ? void 0 : i3.type) || void 0 === n3 ? void 0 : n3.isAvailableForFlowType(this.parentFlow.type))), this._isChooserFunctionalityAvailable; + } + } + n2 = /* @__PURE__ */ new WeakMap(), r2 = /* @__PURE__ */ new WeakMap(), o = /* @__PURE__ */ new WeakMap(), a = /* @__PURE__ */ new WeakMap(), s = /* @__PURE__ */ new WeakMap(), oe.info = K.default.createActionInfo({ actionClass: oe, canBeInTask: true, helpTopic: J.helpTopics.actions.askForSlot, modelClass: i2(21453), name: ne.actions.askForSlot, scriptingName: "ArchActionAskForSlot", supportsUtteranceHistoricalData: true }), t2.default = oe; + }, 60885: (e2, t2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.lexStatuses = void 0, t2.lexStatuses = { v1: { building: "BUILDING", failed: "FAILED", notBuilt: "NOT_BUILT", ready: "READY", readyLower: "ready" }, v2: { creating: "CREATING", available: "AVAILABLE", availableLower: "available", deleting: "DELETING", failed: "FAILED" } }; + }, 61044: (e2) => { + e2.exports = { askCommon: { invalidInputReceived: "Neplatn\xE1 hodnota.", noInputReceived: "Nebyl obdr\u017Een \u017E\xE1dn\xFD vstup." }, askForBoolean: { noInput: 'Pokud chcete pokra\u010Dovat, \u0159ekn\u011Bte "ano", pokud nechcete, \u0159ekn\u011Bte "ne".', noMatch: '\u0158ekn\u011Bte "Ano" nebo "Ne". Chcete pokra\u010Dovat?', question: "Chcete pokra\u010Dovat?", noInputDigitalBot: 'Zadejte "Ano", pokud chcete pokra\u010Dovat, nebo "Ne", pokud pokra\u010Dovat nechcete.', noMatchDigitalBot: 'Zadejte "Ano"nebo "Ne". Chcete pokra\u010Dovat?' }, askForIntent: { noInput: '\u0158ekn\u011Bte kr\xE1tkou v\u011Btu, kter\xE1 popisuje v\xE1\u0161 dotaz, nap\u0159\xEDklad "Pod\xEDvat se na z\u016Fstatek \xFA\u010Dtu"', noMatch: "\u0158ekn\u011Bte mi znovu, co chcete ud\u011Blat.", question: "Co chcete ud\u011Blat?", noInputDigitalBot: 'Zadejte kr\xE1tkou v\u011Btu, kter\xE1 popisuje v\xE1\u0161 dotaz. Nap\u0159\xEDklad "Zkontrolujte z\u016Fstatek na m\xE9m \xFA\u010Dtu".' }, askForSlot: { askFor: "Dot\xE1zat se na %1$s", noInput: "\u0158ekn\u011Bte nebo zadejte (zde uve\u010Fte n\xE1zev slotu).", noInputWithSlot: "\u0158ekn\u011Bte nebo zadejte %1$s.", noMatch: "Uve\u010Fte (zde uve\u010Fte n\xE1zev slotu) znovu.", noMatchWithSlot: "Uve\u010Fte %1$s znovu.", question: "Uve\u010Fte (sem zadejte n\xE1zev slotu).", questionWithSlot: "Uve\u010Fte %1$s.", pleaseEnterSlotNameHere: "(sem zadejte n\xE1zev va\u0161eho slotu)", noInputDigitalBot: "Zadejte (zde uve\u010Fte n\xE1zev slotu).", noInputWithSlotDigitalBot: "Zadejte %1$s.", continuationPromptWithSlot: "Zat\xEDm m\xE1m {{Slot.%1$s}}, pokra\u010Dujte pros\xEDm." }, askForNextSlot: { noInput: 'M\xE1te-li jin\xFD dotaz, \u0159ekn\u011Bte "ano", jinak \u0159ekn\u011Bte "ne" a hovor ukon\u010Dete.', noMatch: 'M\xE1te-li jin\xFD dotaz, \u0159ekn\u011Bte "Ano", jinak \u0159ekn\u011Bte "Ne" a relaci ukon\u010Dete.', question: "Mohu v\xE1m pomoci je\u0161t\u011B s n\u011B\u010D\xEDm dal\u0161\xEDm?", noInputDigitalBot: 'Zadejte "Ano", pokud m\xE1te jin\xFD dotaz, nebo "Ne", pokud chcete relaci ukon\u010Dit.', noMatchDigitalBot: 'Zadejte "Ano", pokud m\xE1te jin\xFD dotaz, nebo "Ne", pokud chcete relaci ukon\u010Dit.' }, askForPayment: { noInputDigitalBot: "Zadejte pros\xEDm sv\xE9 platebn\xED \xFAdaje.", noMatchDigitalBot: "Nepoda\u0159ilo se mi porozum\u011Bt va\u0161\xED odpov\u011Bdi. Zkuste to pros\xEDm znovu." }, askForAuthentication: { noInputDigitalBot: "Zadejte pros\xEDm sv\xE9 p\u0159ihla\u0161ovac\xED \xFAdaje.", noMatchDigitalBot: "Nepoda\u0159ilo se mi porozum\u011Bt va\u0161\xED odpov\u011Bdi. Zkuste to pros\xEDm znovu." }, askSurveyQuestion: { notApplicable: "Nevztahuje se", surveyAnswerOptionSequence: "Stiskem %1$s zvol\xEDte '%2$s'.", surveyAnswerNotApplicableSequence: "Stiskem hv\u011Bzdi\u010Dky zvol\xEDte Nevztahuje se.", surveyAnswerNotApplicableWithQuestionSequence: "%1$s. Stiskem hv\u011Bzdi\u010Dky zvol\xEDte Nevztahuje se.", voiceSurveyNoInputText: "Odpov\u011Bzte pros\xEDm na ot\xE1zku.", voiceSurveyNoMatchText: "Nerozum\xEDm v\xE1m." }, commonModule: { exitCommonModule: "Ukon\u010Dit spole\u010Dn\xFD modul" }, form: { noInputDigitalBot: "Vypl\u0148te pros\xEDm formul\xE1\u0159.", noMatchDigitalBot: "Vypl\u0148te pros\xEDm formul\xE1\u0159." }, messagingTemplate: { noInputDigitalBot: "Vyberte n\u011Bkterou z dostupn\xFDch mo\u017Enost\xED.", noMatchDigitalBot: "Vyberte n\u011Bkterou z dostupn\xFDch mo\u017Enost\xED." }, knowledgeSettings: { knowledgeAnswerHighlightFlowProgressionDefault: "Pokra\u010Dovat", knowledgeAnswerHighlightFullArticleDefault: "Zobrazit cel\xFD \u010Dl\xE1nek", knowledgeInitialResponseMulti: "Pomozte mi pros\xEDm zjistit v\xE1\u0161 c\xEDl v\xFDb\u011Brem \u010D\xEDsla ze seznamu n\xED\u017Ee:", knowledgeInitialResponseMultiRetry: "Vyberte pros\xEDm \u010D\xEDslo, nap\u0159\xEDklad '1'.\nZde je seznam mo\u017Enost\xED:", knowledgeNoMatch: "Nic z uveden\xE9ho", knowledgeConfirmation: "Dozv\u011Bd\u011Bli jste se, co jste pot\u0159ebovali?", knowledgeFollowup: "Douf\xE1m, \u017Ee jsem odpov\u011Bd\u011Bl na va\u0161i ot\xE1zku. M\u016F\u017Eete se zeptat na cokoli dal\u0161\xEDho, co v\xE1s zaj\xEDm\xE1." }, noOverlay: { intent: { intentConfirmationStr1: "Mysl\xEDm si, \u017Ee chcete", intentConfirmationStr2: "Je to spr\xE1vn\u011B?" }, youSaid: { youSaidConfirmationStr1: "Uvedli jste", youSaidConfirmationStr2: "Je to spr\xE1vn\u011B?", youSaidConfirmationStr1DigitalBot: "Zadali jste" }, noInput: { noInputStr1: "\u0158ekn\u011Bte nebo zadejte", noInputStr1DigitalBot: "Zadejte" }, noMatch: { noMatchStr1: "Uve\u010Fte" }, whatIs: { whatIsQuestionStr1: "Co je", whatIsQuestionStr2: "?" }, iGotContinuation: { iGotContinuationStr1: "M\xE1m", iGotContinuationStr2: "prozat\xEDm, pros\xEDm pokra\u010Dujte." } }, defaultCallFlowOne: "V\xFDchoz\xED strategie vol\xE1n\xED", errorHandlingAgentEscalationConfirmation: "Chcete mluvit s poradcem, je to pravda?", errorHandlingAgentEscalationHandover: "Chvilku po\u010Dkejte a j\xE1 v\xE1s na n\u011Bkoho p\u0159epoj\xEDm.", errorHandlingErrorEventHandover: "Do\u0161lo bohu\u017Eel k chyb\u011B. Chvilku po\u010Dkejte a j\xE1 v\xE1s p\u0159epoj\xEDm na n\u011Bkoho, kdo m\u016F\u017Ee pomoci.", errorHandlingErrorEventHandoverVoiceSurvey: "Je mi l\xEDto, do\u0161lo k chyb\u011B. Na shledanou.", errorHandlingRecognitionEventHandover: "Bohu\u017Eel v\xE1m \u0161patn\u011B rozum\xEDm. Chvilku po\u010Dkejte a j\xE1 v\xE1s p\u0159epoj\xEDm na n\u011Bkoho, kdo m\u016F\u017Ee pomoci.", errorHandlingRecognitionEventHandoverVoiceSurvey: "Je mi l\xEDto, m\xE1m probl\xE9m porozum\u011Bt v\xE1m. Na shledanou.", errorHandlingTTS: "Je n\xE1m l\xEDto, do\u0161lo k chyb\u011B. Zkuste zavolat znovu.", initialGreetingTTS: "V\xEDtejte, toto je \xFAvodn\xED pozdrav.", initialState: "Prvotn\xED stav", initialBotState: "V\xFDchoz\xED bot", initialDigitalBotState: "\xDAvodn\xED pozdrav", initialSurveyBotState: "Bot pr\u016Fzkumu", intentConfirmation: "Mysl\xEDm si, \u017Ee chcete %1$s, je to pravda?", mainMenu: "Hlavn\xED menu", mainMenuTTS: "Nach\xE1z\xEDte se v hlavn\xEDm menu, stiskem tla\u010D\xEDtka 9 se odpoj\xEDte", mainTask: "\xDAloha", settingsConfirmationNoInputApology: "Va\u0161e odpov\u011B\u010F nebyla bohu\u017Eel sly\u0161et. \u0158ekn\u011Bte ano nebo ne.", settingsConfirmationNoInputApologyDigitalBot: 'Je n\xE1m l\xEDto, nep\u0159ijali jsme od v\xE1s \u017E\xE1dn\xE9 zad\xE1n\xED. Zadejte "Ano", nebo "Ne".', settingsConfirmationNoMatchApology: "Omlouv\xE1m se, \u0159ekn\u011Bte ano nebo ne.", settingsConfirmationNoMatchApologyDigitalBot: 'Je n\xE1m l\xEDto, zadejte "Ano", nebo "Ne".', settingsNoInputApology: "Omlouv\xE1m se, va\u0161e odpov\u011B\u010F nebyla sly\u0161et.", settingsNoInputApologyDigitalBot: "Je n\xE1m l\xEDto, nep\u0159ijali jsme od v\xE1s \u017E\xE1dn\xE9 zad\xE1n\xED.", settingsEndOfSessionMessageDigitalBot: "Del\u0161\xED dobu jste se neozvali, proto tento chat uzav\xEDr\xE1m. Pokud budete op\u011Bt pot\u0159ebovat pomoc, vra\u0165te se. D\u011Bkujeme v\xE1m.", settingsNoMatchApology: "Omlouv\xE1m se.", settingsNoToConfirmationApology: "Moje chyba.", periodicStateName: "Opakuj\xEDc\xED se stav" }; + }, 61086: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = i2(96618), o = i2(17604), a = n2.__importDefault(i2(92140)), s = i2(58525), l = i2(97951), u = n2.__importStar(i2(17498)), d = n2.__importStar(i2(1115)), c = i2(12457), p = n2.__importDefault(i2(5730)), _ = i2(80428), h = i2(81801), m = i2(47957); + class g extends p.default { + get yamlActionSectionName() { + } + constructor(e3, t3, i3) { + super(e3.parentFlow, e3), this._serverManager = i3, this._loadModel(t3); + } + getDetails() { + return this.actionName ? new c.ActionDetails([m.bridgeServer.action], [this.actionName]) : null; + } + getCachedServerPropertyByName(e3, t3) { + return this._serverManager.getCachedServerPropertyByName(e3, this.actionId, t3, this); + } + getServerActionOrCachedAction() { + return this._serverManager.getItem(this.actionId) || this._serverManager.getItemFromFlowMetadata(this, this[this._serverManager.actionPropertyForUsageSearch]); + } + _preDestroy() { + super._preDestroy(), this._serverManager.tryRemoveItemFromFlowMetadata(this, this.actionId); + } + mergeSchemaProperties(e3) { + e3 && (this.allowErrorSchema && e3.errorSchema && this._serverManager.mergeSchemaProperties(e3.errorSchema.properties, this.errorBindings), e3.inputSchema && this._serverManager.mergeSchemaProperties(e3.inputSchema.properties, this.inputs), e3.successSchema && this._serverManager.mergeSchemaProperties(e3.successSchema.properties, this.outputs)); + } + setIntegrationActionByViewModel(e3, t3) { + const i3 = e3 ? e3.name : "", n3 = e3 ? e3.actionId ? e3.actionId : e3.id : void 0; + this.actionName && (this._serverManager.tryRemoveItemFromFlowMetadata(this, this.actionId ? this.actionId : this.actionName), u.unRegisterConsumer(this, this._serverManager.dependencyContext)), this.actionId = n3, this.actionName = i3, this.supportsCategories && this.setCategory(e3, t3), this.actionName && (this.supportsTimeout && this.resetTimeout(), this._serverManager.addItemToFlowMetadata(this, this.actionName, n3), this.mergeSchemaProperties(e3)), d.validateItem(this, false, true); + } + static get managedProperties() { + return [{ property: "category", isJustForFlowYaml: true, yamlOptions: g.createYamlOptions("category", (e3) => e3.setSkipProperty(true).setExportOrder(50)) }]; + } + static createProcessingManagedExpression() { + return { label: m.bridgeServer.processingPrompt, options: s.ExpressionTypePromptOptions.create((e3) => e3.setIninTestingField("processingPrompt").setAsInput(true).setRequireAudio(true).setAllowEmptyConfig(true).setAllowNoValueModeWithNoFallback(true).setIsOptional(true).setNewInstanceDefaultExpressionCallback((e4) => l.systemPromptListManager.promptHasAudioForLanguages(e4.parentFlow, "__processing__").then((t3) => { + t3 ? e4.update("processing", "__processing__") : e4.topic.warning(`Not setting processing prompt because its missing audio for flows language ${e4.parentFlow.languages.supportedLanguages}`); + }).catch((t3) => { + e4.topic.errorPromise(t3, "failed to find __processing__ prompt"); + })).setAllowFlowLevelDefault(true).setScriptingPropertyName("processingPrompt")), property: "processingPrompt", supportedFlowTypes: r2.flowTypes.flowTypesAllVxmlgenAndVoice, type: _.expressionTypeNames.prompt, yamlOptions: g.createYamlOptions("processingPrompt", (e3) => e3.setExportOrder(30)) }; + } + static get branchInfo() { + } + clearSchemaBindings() { + this.outputs && a.default.isFunction(this.outputs.destroyChildren) && this.outputs.destroyChildren(), this.inputs && a.default.isFunction(this.inputs.destroyChildren) && this.inputs.destroyChildren(), this.errorBindings && a.default.isFunction(this.errorBindings.destroyChildren) && this.errorBindings.destroyChildren(); + } + get isBaseServerAction() { + return true; + } + search(e3) { + super.search(e3), e3.checkText(this, this.actionName, this._serverManager.dependencyContext); + } + get serverManager() { + return this._serverManager; + } + updateDependencies() { + this.actionName && this.actionId && this._serverManager.registerConsumer(this, this.actionName, this.actionId), super.updateDependencies(); + } + _initializeDesignTime() { + const e3 = this.getServerActionOrCachedAction(); + this.mergeSchemaProperties(e3), super._initializeDesignTime(), !this.allowErrorSchema && this.errorBindings && (this.errorBindings.outOfService = true); + } + commonServerActionPostProcessYamlConfig(e3, t3, i3) { + const n3 = this.getServerActionOrCachedAction(); + if ((null == n3 ? void 0 : n3.category) && (null == n3 ? void 0 : n3.name)) { + e3.category = {}, e3.category[n3.category] = {}, e3.category[n3.category][this.yamlActionSectionName] = {}; + const t4 = e3.category[n3.category][this.yamlActionSectionName][n3.name] = {}; + a.default.moveAndDeleteProperty(e3, t4, "inputs"), a.default.moveAndDeleteProperty(e3, t4, "successOutputs"), a.default.moveAndDeleteProperty(e3, t4, "failureOutputs"), Object.keys(t4).length || a.default.ensureYamlNoneTrue(t4); + } else delete e3.inputs, delete e3.successOutputs, delete e3.failureOutputs; + } + validate(e3) { + var t3, i3, n3; + if (super.validate(e3), this._serverManager.insufficientAuthorizations) return void e3.addError(this, h.externalAuthorizations.getAuthValidationWarning(this._serverManager.requiredAuth)); + const r3 = this.getServerActionOrCachedAction(); + r3 && ("schemas.not.available" === r3.result ? e3.addError(this, m.inputOutputList.unableToRetrieveSchema) : r3.schemaInError && (r3.inputSchemaInError && e3.addError(this, (0, o.sprintf)(m.inputOutputList.schemaError, m.inputOutputList.inputs)), r3.successOutputSchemaInError && e3.addError(this, (0, o.sprintf)(m.inputOutputList.schemaError, m.inputOutputList.successOutputs)), r3.failureOutputSchemaInError && this.allowErrorSchema && e3.addError(this, (0, o.sprintf)(m.inputOutputList.schemaError, m.inputOutputList.failureOutputs)))), e3.isDeep && this.mergeSchemaProperties(r3), ((null === (t3 = null == r3 ? void 0 : r3.inputSchema) || void 0 === t3 ? void 0 : t3.hasArrayPropertyWithNoType) || (null === (i3 = null == r3 ? void 0 : r3.errorSchema) || void 0 === i3 ? void 0 : i3.hasArrayPropertyWithNoType) || (null === (n3 = null == r3 ? void 0 : r3.successSchema) || void 0 === n3 ? void 0 : n3.hasArrayPropertyWithNoType)) && e3.addWarning(this, (0, o.sprintf)(m.inputOutputList.arrayWithNoType, r3.name)), (null == r3 ? void 0 : r3.inputSchemaMixedTypeWarning) && e3.addWarning(this, (0, o.sprintf)(m.inputOutputList.arrayWithMixedTypes, m.inputOutputList.inputs, r3.name)), (null == r3 ? void 0 : r3.successOutputSchemaMixedTypeWarning) && e3.addWarning(this, (0, o.sprintf)(m.inputOutputList.arrayWithMixedTypes, m.inputOutputList.successOutputs, r3.name)), (null == r3 ? void 0 : r3.failureOutputSchemaMixedTypeWarning) && e3.addWarning(this, (0, o.sprintf)(m.inputOutputList.arrayWithMixedTypes, m.inputOutputList.failureOutputs, r3.name)); + } + } + g.className = "BaseServerAction", t2.default = g; + }, 61132: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.default = function(e3, t3) { + t3 || (t3 = e3); + const i3 = new s(); + i3.variables = [], i3.defaultLanguage = e3, i3.errorHandling = new n2.default(), i3.flowMetaData = new o({ flowDocumentVersion: "1.0", minimumServerVersion: "1.0", features: [] }), i3.flowSequenceItemList = []; + const l = new a(); + return l.name = r2(t3).initialState, l.variables = [], l.actionList = [], i3.flowSequenceItemList = [l], i3.initialSequence = l.id, i3; + }; + const n2 = i2(31635).__importDefault(i2(37752)), r2 = i2(21733), o = i2(89266), a = i2(69674), s = i2(49804); + }, 61154: (e2, t2, i2) => { + let n2, r2, o = i2(76982), { urlAlphabet: a } = i2(97362), s = (e3) => { + !n2 || n2.length < e3 ? (n2 = Buffer.allocUnsafe(128 * e3), o.randomFillSync(n2), r2 = 0) : r2 + e3 > n2.length && (o.randomFillSync(n2), r2 = 0), r2 += e3; + }, l = (e3) => (s(e3 |= 0), n2.subarray(r2 - e3, r2)), u = (e3, t3, i3) => { + let n3 = (2 << 31 - Math.clz32(e3.length - 1 | 1)) - 1, r3 = Math.ceil(1.6 * n3 * t3 / e3.length); + return (o2 = t3) => { + let a2 = ""; + for (; ; ) { + let t4 = i3(r3), s2 = r3; + for (; s2--; ) if (a2 += e3[t4[s2] & n3] || "", a2.length === o2) return a2; + } + }; + }; + e2.exports = { nanoid: (e3 = 21) => { + s(e3 |= 0); + let t3 = ""; + for (let i3 = r2 - e3; i3 < r2; i3++) t3 += a[63 & n2[i3]]; + return t3; + }, customAlphabet: (e3, t3 = 21) => u(e3, t3, l), customRandom: u, urlAlphabet: a, random: l }; + }, 61192: (e2, t2, i2) => { + const { NameIdDescriptionModel: n2 } = i2(84050), { NameIdDescriptionModelList: r2 } = i2(71535), o = i2(36019).default; + class a { + } + const s = new a(); + a.prototype.getMilestones = o.request("GET", "{public-api.apps}/api/v2/flows/milestones", r2), a.prototype.getMilestone = o.request("GET", "{public-api.apps}/api/v2/flows/milestones/{id}", n2), a.prototype.getMilestonesDivisionView = o.request("GET", "{public-api.apps}/api/v2/flows/milestones/divisionviews", r2), a.prototype.getMilestoneDivisionView = o.request("GET", "{public-api.apps}/api/v2/flows/milestones/divisionviews?id={id}", r2), a.prototype.getOutcomes = o.request("GET", "{public-api.apps}/api/v2/flows/outcomes", r2), a.prototype.getOutcome = o.request("GET", "{public-api.apps}/api/v2/flows/outcomes/{id}", n2), a.prototype.getOutcomesDivisionView = o.request("GET", "{public-api.apps}/api/v2/flows/outcomes/divisionviews", r2), a.prototype.getOutcomeDivisionView = o.request("GET", "{public-api.apps}/api/v2/flows/outcomes/divisionviews?id={id}", r2); + const l = { ignoreBadResponse: true }; + s.getOutcome.addOptions(l), s.getOutcomeDivisionView.addOptions(l), s.getOutcomes.addOptions(l), s.getOutcomesDivisionView.addOptions(l), s.getMilestone.addOptions(l), s.getMilestoneDivisionView.addOptions(l), s.getMilestones.addOptions(l), s.getMilestonesDivisionView.addOptions(l), e2.exports = s; + }, 61203: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = i2(30801), o = n2.__importDefault(i2(62028)); + class a extends o.default { + constructor(e3) { + super(e3); + } + get _actionTypeId() { + return r2.transferFlowActionType; + } + get displayTypeName() { + return "ArchMenuTransferToFlow"; + } + get actionTransferToFlow() { + return this._archAction; + } + get isArchMenuTransferToFlow() { + return true; + } + } + t2.default = a; + }, 61272: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(54063)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "emptyJsonCollection"; + } + get displayTypeName() { + return "ArchValueEmptyJsonCollection"; + } + get isArchValueEmptyJsonCollection() { + return true; + } + } + t2.default = r2; + }, 61279: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.elementAt = void 0; + var n2 = i2(7024), r2 = i2(85934), o = i2(30632), a = i2(58799), s = i2(54383); + t2.elementAt = function(e3, t3) { + if (e3 < 0) throw new n2.ArgumentOutOfRangeError(); + var i3 = arguments.length >= 2; + return function(l) { + return l.pipe(r2.filter(function(t4, i4) { + return i4 === e3; + }), s.take(1), i3 ? a.defaultIfEmpty(t3) : o.throwIfEmpty(function() { + return new n2.ArgumentOutOfRangeError(); + })); + }; + }; + }, 61289: (e2, t2, i2) => { + "use strict"; + const n2 = i2(31635), r2 = n2.__importStar(i2(63824)), o = n2.__importStar(i2(99434)), a = n2.__importDefault(i2(92140)), s = i2(12179), l = n2.__importDefault(i2(5730)), u = n2.__importDefault(i2(73198)), d = n2.__importDefault(i2(97891)), c = i2(12457), p = i2(67607), _ = i2(79467), h = i2(58525), m = i2(80428), g = i2(47957), f = i2(24032).getTopic("HoldMusicActionModel"); + class T extends l.default { + constructor(e3, t3) { + super(e3.parentFlow, e3), this._loadModel(t3); + } + _loadModel(e3) { + super._loadModel(e3), this.setOutOfService(); + } + getDetails() { + const e3 = [], t3 = []; + if (this.prompt && this.prompt.text ? (e3.push(g.audio.sequenceTypePromptLabel), t3.push(this.prompt.text)) : this.prompt && this.prompt.defaultExpression && this.prompt.defaultExpression.text && (e3.push(g.audio.sequenceTypePromptLabel), t3.push(this.prompt.defaultExpression.text)), this.playForDuration && this.duration && this.duration.text) { + const i3 = o.getDisplayText(this.duration); + e3.push(g.holdMusic.durationLabel), t3.push(i3); + } + return new c.ActionDetails(e3, t3); + } + _initializeDesignTime() { + super._initializeDesignTime(), this.prompt.options.setAllowModeLiteral(true), this.prompt.isVariableMode && (this.prompt.setAsExpression(this.prompt.text), f.info(`Migrated hold action '${this.id} to prompt reference`)), this.prompt.options.setAllowModeVariable(false); + } + setOutOfService() { + this.duration.outOfService = !this.model.playForDuration; + } + static get managedProperties() { + return [{ property: "duration", label: g.holdMusic.durationLabel, type: m.expressionTypeNames.duration, options: _.ExpressionTypeDurationOptions.create((e3) => e3.setDefaultText(u.default.litDurationOneMinute).setDurationStyle(r2.durationStyles.minutesSecondsAndMsDuration).setIninTestingField("durationExpression").facets.setMinDur(0, true).setMaxDur(900 * u.default.msPerSecond, true)) }, { property: "prompt", label: g.holdMusic.promptLabel, type: m.expressionTypeNames.prompt, options: h.ExpressionTypePromptOptions.create((e3) => e3.setIninTestingField("holdPrompt").setDefaultText("Flow.HoldPrompt").setDefaultToExpression(true).setAllowModeVariable(true).setAllowModeExpression(true).setAllowModeLiteral(false).setRequireAudio(true)) }, { property: "bargeInExpression", label: g.audio.bargeInExpressionLabel, type: m.expressionTypeNames.boolean, options: p.ExpressionTypeBooleanOptions.create((e3) => e3.setIninTestingField("bargeInExpression").setAsInput(true).setUseCheckbox(true).setDefaultText(u.default.false)), yamlOptions: T.createYamlOptions("bargeInExpression", (e3) => e3.setPropertyName("bargeInEnabled")) }]; + } + get playForDuration() { + return this.model.playForDuration; + } + set playForDuration(e3) { + this.model.playForDuration = e3, this.setOutOfService(); + } + postProcessYamlConfig(e3, t3, i3) { + e3.playStyle = {}, this.playForDuration ? a.default.moveAndDeleteProperty(e3, e3.playStyle, "duration") : (e3.playStyle.entirePrompt = true, delete e3.duration); + } + } + T.info = d.default.createActionInfo({ actionClass: T, canBeInTask: true, helpTopic: s.helpTopics.actions.holdMusic, modelClass: i2(44103), name: g.actions.holdMusic, scriptingName: "ArchActionHoldMusic" }), t2.A = T; + }, 61343: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.inboundShortMessageListManager = t2.InboundShortMessageListManager = void 0; + const n2 = i2(96618), r2 = i2(24032), o = i2(6109), a = i2(27862); + class s extends o.FlowListManager { + get dependencyType() { + return a.InboundShortMessageFlow; + } + constructor() { + super(), this.topic = (0, r2.getTopic)("inboundShortMessageListManager"), this.additionalQueryParams = { type: n2.flowTypes.flowTypeInboundShortMessage }, this.className = "InboundShortMessageListManager", this.flowType = n2.flowTypes.flowTypeInboundShortMessage, this._initialize(); + } + } + t2.InboundShortMessageListManager = s, t2.inboundShortMessageListManager = new s(); + }, 61347: (e2, t2, i2) => { + const n2 = i2(92140); + n2.mixin({ isActualNumber: function(e3) { + return !isNaN(e3) && n2.isNumber(e3); + }, isStringActualNumber: function(e3) { + if (n2.isString(e3) && "" !== e3) { + const t3 = Number(e3); + return !isNaN(t3); + } + return false; + }, clamp: function(e3, t3, i3) { + return Math.min(i3, Math.max(t3, e3)); + }, containsAll: function(e3, t3) { + return t3.every((t4) => e3.includes(t4)); + }, extEnsureArray: function(e3) { + return n2.isArray(e3) ? e3 : [e3]; + }, defaultsDeep: function(e3, t3) { + n2.defaults(e3, t3), n2.each(t3, (t4, i3) => { + n2.isObject(t4) && e3 && n2.defaultsDeep(e3[i3], t4); + }); + }, deepClone: function(e3) { + if (!n2.isUndefined(e3)) return JSON.parse(JSON.stringify(e3)); + }, deepDeleteKey: (e3, t3) => { + for (const i3 in e3) e3.hasOwnProperty(i3) && (n2.isObject(e3[i3]) ? n2.deepDeleteKey(e3[i3], t3) : i3 === t3 && delete e3[t3]); + return e3; + }, ensureYamlNoneTrue: function(e3) { + n2.isObject(e3) && n2.isEmpty(e3) && (e3.none = true); + }, getFirstPropertyKeyInObj: (e3) => n2.isObject(e3) ? Object.keys(e3)[0] : null, getFirstPropertyValueInObj: (e3) => n2.isObject(e3) ? Object.values(e3)[0] : null, filterNull: function(e3) { + return n2.filter(e3, (e4) => e4); + }, isNullOrUndefined: function(e3) { + return n2.isNull(e3) || n2.isUndefined(e3); + }, lowercaseFirstLetter: (e3) => n2.isString(e3) ? e3.charAt(0).toLowerCase() + e3.slice(1) : e3, moveAndDeleteProperty: (e3, t3, i3) => { + e3[i3] && t3 && (t3[i3] = e3[i3], delete e3[i3]); + }, moveRenameAndDeleteProperty: (e3, t3, i3, n3) => { + e3[i3] && t3 && (t3[n3] = e3[i3], delete e3[i3]); + }, renameProperty: (e3, t3, i3) => { + e3[t3] && (e3[i3] = e3[t3], delete e3[t3]); + }, sortMapByNameProperty: (e3) => { + if (e3) return n2.sortMapByProperty(e3, "name"); + }, sortMapByProperty: (e3, t3) => { + if (e3) return e3.sort((e4, i3) => e4[Object.keys(e4)[0]][t3].toLowerCase().localeCompare(i3[Object.keys(i3)[0]][t3].toLowerCase())); + }, sortObjectPropertiesByKey: (e3, t3) => { + const i3 = {}; + return Object.keys(e3).sort(t3).forEach(function(t4) { + i3[t4] = e3[t4]; + }), i3; + }, sortByNumericDesc: function(e3, t3) { + return t3 ? n2.sortBy(e3, (e4) => -1 * e4[t3]) : e3; + }, sortTopLevelObjectPropsByAlpha: (e3) => { + const t3 = {}, i3 = Object.keys(e3).sort(); + return n2.each(i3, (i4) => { + t3[i4] = e3[i4]; + }), t3; + }, tryWrapObject: (e3, t3) => { + if (!t3) return e3; + const i3 = {}; + return i3[t3] = e3, i3; + }, traverseFind: function(e3, t3, i3) { + let n3 = e3; + for (; n3; ) { + const e4 = i3(n3); + if (e4) return e4; + n3 = t3(n3); + } + }, deleteAllKeys: function(e3) { + n2.each(e3, (t3, i3) => { + delete e3[i3]; + }); + }, destroyContents: function(e3) { + e3 && n2.isArray(e3) && (e3.forEach((e4) => { + try { + n2.isFunction(e4.destroy) ? e4.destroy() : console.error("item is missing destroy method in destroyContents"); + } catch (e5) { + console.error(e5, "exception caught during destroyContents"); + } + }), e3.length = 0); + }, addPromiseTimeout: function(e3, t3, i3) { + const n3 = new Promise((e4, n4) => setTimeout(() => n4(i3 || "timeout"), t3)); + return Promise.race([e3, n3]); + }, splitOn: function(e3, t3) { + return n2.isString(e3) && n2.isString(t3) ? e3.includes(t3) ? e3.split(t3) : [e3, ""] : null; + }, escapeRegExp: function(e3) { + return e3.replace(/[/\-\\^$*+?.()|[\]{}]/g, "\\$&"); + } }), String.prototype.trimForDisplay = function(e3) { + return e3 || (e3 = 30), this.length > e3 ? this.substring(0, e3) + "\u2026" : this; + }, String.prototype.removeSuffixStartingWithString = function(e3) { + return this.substring(0, this.lastIndexOf(e3)); + }, Object.getPropertyDescriptor = function(e3, t3) { + let i3 = Object.getOwnPropertyDescriptor(e3, t3), n3 = Object.getPrototypeOf(e3); + for (; void 0 === i3 && null !== n3; ) i3 = Object.getOwnPropertyDescriptor(n3, t3), n3 = Object.getPrototypeOf(n3); + return i3; + }, String.prototype.contains = function(e3) { + const t3 = arguments.length > 1 ? arguments[1] : void 0; + return -1 !== this.indexOf.call(this, e3, t3); + }; + }, 61397: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(21345)), r2 = i2(30801); + class o extends n2.default { + constructor(e3) { + super(e3), this._priority = this.coreFactory.createArchWrapper(e3.priority); + } + get _actionTypeId() { + return r2.setPriorityActionType; + } + get displayTypeName() { + return "ArchActionSetPriority"; + } + get isArchActionSetPriority() { + return true; + } + get priority() { + return this._priority; + } + } + t2.default = o; + }, 61427: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importDefault(i2(8851)), o = n2.__importDefault(i2(82394)), a = n2.__importDefault(i2(34345)), s = n2.__importDefault(i2(76366)), l = n2.__importDefault(i2(39983)), u = n2.__importDefault(i2(86977)), d = n2.__importDefault(i2(52096)), c = n2.__importDefault(i2(97086)), p = n2.__importDefault(i2(61843)), _ = n2.__importDefault(i2(41377)), h = n2.__importDefault(i2(3596)), m = n2.__importDefault(i2(93856)), g = n2.__importDefault(i2(53538)), f = n2.__importDefault(i2(17548)), T = n2.__importDefault(i2(44542)), y = n2.__importDefault(i2(85003)), S = n2.__importDefault(i2(91734)), A = n2.__importDefault(i2(12033)), N = { actions: r2.default, audio: o.default, baseClasses: a.default, definitions: s.default, filters: l.default, flows: u.default, menus: d.default, outputs: c.default, prompts: p.default, settings: _.default, speechRec: h.default, speechToText: m.default, tasks: g.default, textToSpeech: f.default, traverse: T.default, validation: y.default, values: S.default, variables: A.default }; + t2.default = N; + }, 61510: (e2) => { + e2.exports = { askCommon: { invalidInputReceived: "\u0647\u0630\u0627 \u063A\u064A\u0631 \u0635\u0627\u0644\u062D.", noInputReceived: "\u0644\u0645 \u0623\u062A\u0644\u0642\u0649 \u0623\u064A \u0645\u062F\u062E\u0644\u0627\u062A." }, askForBoolean: { noInput: '\u0642\u0644 "\u0646\u0639\u0645" \u0625\u0630\u0627 \u0643\u0646\u062A \u062A\u0631\u064A\u062F \u0627\u0644\u0645\u062A\u0627\u0628\u0639\u0629 \u0623\u0648 "\u0644\u0627" \u0625\u0630\u0627 \u0644\u0645 \u062A\u0643\u0646 \u062A\u0631\u064A\u062F \u0627\u0644\u0645\u062A\u0627\u0628\u0639\u0629.', noMatch: '\u064A\u0631\u062C\u0649 \u0623\u0646 \u062A\u0642\u0648\u0644 "\u0646\u0639\u0645" \u0623\u0648 "\u0644\u0627". \u0647\u0644 \u062A\u0631\u064A\u062F \u0627\u0644\u0645\u062A\u0627\u0628\u0639\u0629\u061F', question: "\u0647\u0644 \u062A\u0631\u064A\u062F \u0627\u0644\u0645\u062A\u0627\u0628\u0639\u0629\u061F", noInputDigitalBot: '\u0623\u062F\u062E\u0644 "\u0646\u0639\u0645" \u0625\u0630\u0627 \u0643\u0646\u062A \u062A\u0631\u064A\u062F \u0627\u0644\u0645\u062A\u0627\u0628\u0639\u0629 \u0623\u0648 "\u0644\u0627" \u0625\u0630\u0627 \u0643\u0646\u062A \u0644\u0627 \u062A\u0631\u064A\u062F \u0627\u0644\u0645\u062A\u0627\u0628\u0639\u0629.', noMatchDigitalBot: '\u064A\u0631\u062C\u0649 \u0625\u062F\u062E\u0627\u0644 "\u0646\u0639\u0645" \u0623\u0648 "\u0644\u0627". \u0647\u0644 \u062A\u0631\u064A\u062F \u0627\u0644\u0645\u062A\u0627\u0628\u0639\u0629\u061F' }, askForIntent: { noInput: '\u062A\u062D\u062F\u062B \u0641\u0642\u0637 \u062C\u0645\u0644\u0629 \u0642\u0635\u064A\u0631\u0629 \u062A\u0635\u0641 \u0627\u0633\u062A\u0639\u0644\u0627\u0645\u0643. \u0639\u0644\u0649 \u0633\u0628\u064A\u0644 \u0627\u0644\u0645\u062B\u0627\u0644\u060C "\u062A\u062D\u0642\u0642 \u0645\u0646 \u0631\u0635\u064A\u062F \u062D\u0633\u0627\u0628\u064A"', noMatch: "\u0623\u062E\u0628\u0631\u0646\u064A \u0645\u0631\u0629 \u0623\u062E\u0631\u0649 \u0628\u0645\u0627 \u062A\u0631\u064A\u062F \u0641\u0639\u0644\u0647.", question: "\u0645\u0627 \u0627\u0644\u0630\u064A \u062A\u0648\u062F \u0641\u0639\u0644\u0647\u061F", noInputDigitalBot: '\u064A\u0631\u062C\u0649 \u0625\u062F\u062E\u0627\u0644 \u062C\u0645\u0644\u0629 \u0642\u0635\u064A\u0631\u0629 \u062A\u0635\u0641 \u0627\u0633\u062A\u0639\u0644\u0627\u0645\u0643. \u0639\u0644\u0649 \u0633\u0628\u064A\u0644 \u0627\u0644\u0645\u062B\u0627\u0644\u060C "\u062A\u062D\u0642\u0642 \u0645\u0646 \u0631\u0635\u064A\u062F \u062D\u0633\u0627\u0628\u064A"' }, askForSlot: { askFor: "\u0627\u0637\u0644\u0628 %1$s", noInput: "\u064A\u0631\u062C\u0649 \u0623\u0646 \u062A\u0642\u0648\u0644 \u0623\u0648 \u062A\u062F\u062E\u0644 (\u064A\u0631\u062C\u0649 \u0648\u0636\u0639 \u0627\u0633\u0645 \u0645\u0646\u0641\u0630\u0643 \u0647\u0646\u0627).", noInputWithSlot: "\u064A\u0631\u062C\u0649 \u0623\u0646 \u062A\u0642\u0648\u0644 \u0623\u0648 \u062A\u062F\u062E\u0644 %1$s.", noMatch: "\u064A\u0631\u062C\u0649 \u0625\u0639\u0637\u0627\u0626\u064A (\u064A\u0631\u062C\u0649 \u0625\u062F\u062E\u0627\u0644 \u0627\u0633\u0645 \u0645\u0646\u0641\u0630\u0643 \u0647\u0646\u0627) \u0645\u0631\u0629 \u0623\u062E\u0631\u0649.", noMatchWithSlot: "\u064A\u0631\u062C\u0649 \u0625\u0639\u0637\u0627\u0626\u064A %1$s \u0645\u0631\u0629 \u0623\u062E\u0631\u0649.", question: "\u0645\u0627 \u0647\u0648 (\u064A\u0631\u062C\u0649 \u0625\u062F\u062E\u0627\u0644 \u0627\u0633\u0645 \u0645\u0646\u0641\u0630\u0643 \u0647\u0646\u0627)\u061F", questionWithSlot: "\u0645\u0627 \u0647\u0648 %1$s\u061F", pleaseEnterSlotNameHere: "(\u064A\u0631\u062C\u0649 \u0648\u0636\u0639 \u0627\u0633\u0645 \u0645\u0646\u0641\u0630\u0643 \u0647\u0646\u0627)", noInputDigitalBot: "\u064A\u0631\u062C\u0649 \u0625\u062F\u062E\u0627\u0644 (\u064A\u0631\u062C\u0649 \u0648\u0636\u0639 \u0627\u0633\u0645 \u0645\u0646\u0641\u0630\u0643 \u0647\u0646\u0627).", noInputWithSlotDigitalBot: "\u064A\u0631\u062C\u0649 \u0625\u062F\u062E\u0627\u0644 %1$s.", continuationPromptWithSlot: "\u0644\u0642\u062F \u062D\u0635\u0644\u062A \u0639\u0644\u0649 {{Slot.%1$s}} \u062D\u062A\u0649 \u0627\u0644\u0622\u0646\u060C \u0623\u0631\u062C\u0648 \u0627\u0644\u0645\u062A\u0627\u0628\u0639\u0629." }, askForNextSlot: { noInput: '\u0642\u0644 "\u0646\u0639\u0645" \u0625\u0630\u0627 \u0643\u0627\u0646 \u0644\u062F\u064A\u0643 \u0627\u0633\u062A\u0639\u0644\u0627\u0645 \u0622\u062E\u0631\u060C \u0623\u0648 "\u0644\u0627" \u0644\u0625\u0646\u0647\u0627\u0621 \u0627\u0644\u0645\u0643\u0627\u0644\u0645\u0629.', noMatch: '\u0642\u0644 "\u0646\u0639\u0645" \u0625\u0630\u0627 \u0643\u0627\u0646 \u0644\u062F\u064A\u0643 \u0627\u0633\u062A\u0639\u0644\u0627\u0645 \u0622\u062E\u0631\u060C \u0623\u0648 "\u0644\u0627" \u0644\u0625\u0646\u0647\u0627\u0621 \u0627\u0644\u062C\u0644\u0633\u0629.', question: "\u0647\u0644 \u0647\u0646\u0627\u0643 \u0623\u064A \u0634\u064A\u0621 \u0622\u062E\u0631 \u0623\u0633\u062A\u0637\u064A\u0639 \u0645\u0633\u0627\u0639\u062F\u062A\u0643 \u0641\u064A\u0647\u061F", noInputDigitalBot: '\u0623\u062F\u062E\u0644 "\u0646\u0639\u0645" \u0625\u0630\u0627 \u0643\u0627\u0646 \u0644\u062F\u064A\u0643 \u0627\u0633\u062A\u0639\u0644\u0627\u0645 \u0622\u062E\u0631\u060C \u0623\u0648 "\u0644\u0627" \u0644\u0625\u0646\u0647\u0627\u0621 \u0627\u0644\u062C\u0644\u0633\u0629.', noMatchDigitalBot: '\u0623\u062F\u062E\u0644 "\u0646\u0639\u0645" \u0625\u0630\u0627 \u0643\u0627\u0646 \u0644\u062F\u064A\u0643 \u0627\u0633\u062A\u0639\u0644\u0627\u0645 \u0622\u062E\u0631\u060C \u0623\u0648 "\u0644\u0627" \u0644\u0625\u0646\u0647\u0627\u0621 \u0627\u0644\u062C\u0644\u0633\u0629.' }, askForPayment: { noInputDigitalBot: "\u064A\u064F\u0631\u062C\u0649 \u062A\u0642\u062F\u064A\u0645 \u0645\u0639\u0644\u0648\u0645\u0627\u062A \u0627\u0644\u062F\u0641\u0639 \u0627\u0644\u062E\u0627\u0635\u0629 \u0628\u0643 \u0644\u0644\u0645\u062A\u0627\u0628\u0639\u0629.", noMatchDigitalBot: "\u0644\u0645 \u0623\u0641\u0647\u0645 \u0631\u062F\u0643. \u062A\u064F\u0631\u062C\u0649 \u0625\u0639\u0627\u062F\u0629 \u0627\u0644\u0645\u062D\u0627\u0648\u0644\u0629." }, askForAuthentication: { noInputDigitalBot: "\u064A\u064F\u0631\u062C\u0649 \u062A\u0642\u062F\u064A\u0645 \u0645\u0639\u0644\u0648\u0645\u0627\u062A \u0627\u0644\u0645\u0635\u0627\u062F\u0642\u0629 \u0627\u0644\u062E\u0627\u0635\u0629 \u0628\u0643 \u0644\u0644\u0645\u062A\u0627\u0628\u0639\u0629.", noMatchDigitalBot: "\u0644\u0645 \u0623\u0641\u0647\u0645 \u0631\u062F\u0643. \u062A\u064F\u0631\u062C\u0649 \u0625\u0639\u0627\u062F\u0629 \u0627\u0644\u0645\u062D\u0627\u0648\u0644\u0629." }, askSurveyQuestion: { notApplicable: "\u063A\u064A\u0631 \u0642\u0627\u0628\u0644 \u0644\u0644\u062A\u0637\u0628\u064A\u0642", surveyAnswerOptionSequence: "\u0627\u0636\u063A\u0637 \u0639\u0644\u0649 %1$s \u0644\u0640 '%2$s'.", surveyAnswerNotApplicableSequence: "\u0627\u0636\u063A\u0637 \u0639\u0644\u0649 \u0639\u0644\u0627\u0645\u0629 \u0627\u0644\u0646\u062C\u0645\u0629 \u0644\u062A\u062D\u062F\u064A\u062F \u063A\u064A\u0631 \u0642\u0627\u0628\u0644 \u0644\u0644\u062A\u0637\u0628\u064A\u0642.", surveyAnswerNotApplicableWithQuestionSequence: "%1$s. \u0627\u0636\u063A\u0637 \u0639\u0644\u0649 \u0639\u0644\u0627\u0645\u0629 \u0627\u0644\u0646\u062C\u0645\u0629 \u0644\u062A\u062D\u062F\u064A\u062F \u063A\u064A\u0631 \u0642\u0627\u0628\u0644 \u0644\u0644\u062A\u0637\u0628\u064A\u0642.", voiceSurveyNoInputText: "\u064A\u064F\u0631\u062C\u0649 \u0627\u0644\u0625\u062C\u0627\u0628\u0629 \u0639\u0646 \u0627\u0644\u0633\u0624\u0627\u0644.", voiceSurveyNoMatchText: "\u0644\u0645 \u0623\u0641\u0647\u0645." }, commonModule: { exitCommonModule: "\u062E\u0631\u0648\u062C \u0645\u0646 \u0627\u0644\u0648\u062D\u062F\u0629 \u0627\u0644\u0645\u0634\u062A\u0631\u0643\u0629" }, form: { noInputDigitalBot: "\u064A\u064F\u0631\u062C\u0649 \u0625\u0643\u0645\u0627\u0644 \u0627\u0644\u0646\u0645\u0648\u0630\u062C \u0644\u0644\u0645\u062A\u0627\u0628\u0639\u0629.", noMatchDigitalBot: "\u064A\u064F\u0631\u062C\u0649 \u0625\u0643\u0645\u0627\u0644 \u0627\u0644\u0646\u0645\u0648\u0630\u062C \u0644\u0644\u0645\u062A\u0627\u0628\u0639\u0629." }, messagingTemplate: { noInputDigitalBot: "\u064A\u064F\u0631\u062C\u064A \u062A\u062D\u062F\u064A\u062F \u0623\u062D\u062F \u0627\u0644\u062E\u064A\u0627\u0631\u0627\u062A \u0627\u0644\u0645\u062A\u0648\u0641\u0631\u0629.", noMatchDigitalBot: "\u064A\u064F\u0631\u062C\u064A \u062A\u062D\u062F\u064A\u062F \u0623\u062D\u062F \u0627\u0644\u062E\u064A\u0627\u0631\u0627\u062A \u0627\u0644\u0645\u062A\u0648\u0641\u0631\u0629." }, knowledgeSettings: { knowledgeAnswerHighlightFlowProgressionDefault: "\u0645\u062A\u0627\u0628\u0639\u0629", knowledgeAnswerHighlightFullArticleDefault: "\u0639\u0631\u0636 \u0627\u0644\u0645\u0642\u0627\u0644\u0629 \u0627\u0644\u0643\u0627\u0645\u0644\u0629", knowledgeInitialResponseMulti: "\u0644\u0645\u0633\u0627\u0639\u062F\u062A\u064A \u0641\u064A \u062A\u0648\u0636\u064A\u062D \u0647\u062F\u0641\u0643\u060C \u064A\u0631\u062C\u0649 \u0627\u062E\u062A\u064A\u0627\u0631 \u0631\u0642\u0645 \u0645\u0646 \u0627\u0644\u0642\u0627\u0626\u0645\u0629 \u0627\u0644\u062A\u0627\u0644\u064A\u0629:", knowledgeInitialResponseMultiRetry: "\u064A\u0631\u062C\u0649 \u0627\u062E\u062A\u064A\u0627\u0631 \u0631\u0642\u0645\u060C \u0639\u0644\u0649 \u0633\u0628\u064A\u0644 \u0627\u0644\u0645\u062B\u0627\u0644 '1'.\n\u0625\u0644\u064A\u0643 \u0642\u0627\u0626\u0645\u0629 \u0627\u0644\u062E\u064A\u0627\u0631\u0627\u062A \u0645\u0631\u0629 \u0623\u062E\u0631\u0649:", knowledgeNoMatch: "\u0644\u0627 \u0634\u064A\u0621 \u0645\u0646 \u0630\u0644\u0643", knowledgeConfirmation: "\u0647\u0644 \u0623\u062C\u0627\u0628 \u0647\u0630\u0627 \u0639\u0644\u0649 \u0633\u0624\u0627\u0644\u0643\u061F", knowledgeFollowup: "\u0623\u0631\u062C\u0648 \u0623\u0646 \u0623\u0643\u0648\u0646 \u0642\u062F \u0623\u062C\u0628\u062A \u0639\u0644\u0649 \u0633\u0624\u0627\u0644\u0643. \u064A\u0645\u0643\u0646\u0643 \u0627\u0644\u0633\u0624\u0627\u0644 \u0639\u0646 \u0623\u064A \u0634\u064A\u0621 \u0622\u062E\u0631 \u0642\u062F \u062A\u0631\u064A\u062F \u0645\u0639\u0631\u0641\u0629 \u0627\u0644\u0645\u0632\u064A\u062F \u0639\u0646\u0647." }, noOverlay: { intent: { intentConfirmationStr1: "\u0623\u0639\u062A\u0642\u062F \u0623\u0646\u0646\u064A \u0623\u0631\u064A\u062F", intentConfirmationStr2: "\u0647\u0644 \u0647\u0630\u0627 \u0635\u062D\u064A\u062D\u061F" }, youSaid: { youSaidConfirmationStr1: "\u0642\u0644\u062A", youSaidConfirmationStr2: "\u0647\u0644 \u0647\u0630\u0627 \u0635\u062D\u064A\u062D\u061F?", youSaidConfirmationStr1DigitalBot: "\u0623\u062F\u062E\u0644\u062A" }, noInput: { noInputStr1: "\u064A\u0631\u062C\u0649 \u0623\u0646 \u062A\u0642\u0648\u0644 \u0623\u0648 \u062A\u062F\u062E\u0644", noInputStr1DigitalBot: "\u064A\u0631\u062C\u0649 \u0625\u062F\u062E\u0627\u0644" }, noMatch: { noMatchStr1: "\u064A\u0631\u062C\u0649 \u0625\u0639\u0637\u0627\u0626\u064A" }, whatIs: { whatIsQuestionStr1: "\u0645\u0627 \u0647\u0648", whatIsQuestionStr2: "\u061F" }, iGotContinuation: { iGotContinuationStr1: "\u0644\u0642\u062F \u062D\u0635\u0644\u062A", iGotContinuationStr2: "\u062D\u062A\u0649 \u0627\u0644\u0622\u0646\u060C \u0623\u0631\u062C\u0648 \u0627\u0644\u0645\u062A\u0627\u0628\u0639\u0629." } }, defaultCallFlowOne: "\u062A\u062F\u0641\u0642 \u0627\u0644\u0645\u0643\u0627\u0644\u0645\u0627\u062A \u0627\u0644\u0627\u0641\u062A\u0631\u0627\u0636\u064A", errorHandlingAgentEscalationConfirmation: "\u062A\u0631\u064A\u062F \u0627\u0644\u062A\u062D\u062F\u062B \u0625\u0644\u0649 \u0645\u0633\u062A\u0634\u0627\u0631. \u0647\u0644 \u0647\u0630\u0627 \u0635\u062D\u064A\u062D\u061F", errorHandlingAgentEscalationHandover: "\u0644\u062D\u0638\u0629 \u0645\u0646 \u0641\u0636\u0644\u0643\u060C \u0648\u0633\u0648\u0641 \u0623\u0648\u0635\u0644\u0643 \u0628\u0634\u062E\u0635 \u0645\u0627.", errorHandlingErrorEventHandover: "\u0645\u0639\u0630\u0631\u0629\u060C \u062D\u062F\u062B \u062E\u0637\u0623. \u0644\u062D\u0638\u0629 \u0645\u0646 \u0641\u0636\u0644\u0643 \u0628\u064A\u0646\u0645\u0627 \u0623\u0648\u0635\u0644\u0643 \u0628\u0634\u062E\u0635 \u0645\u0627 \u064A\u0633\u062A\u0637\u064A\u0639 \u0645\u0633\u0627\u0639\u062F\u062A\u0643.", errorHandlingErrorEventHandoverVoiceSurvey: "\u0639\u0630\u0631\u064B\u0627\u060C \u062D\u062F\u062B \u062E\u0637\u0623. \u0645\u0639 \u0627\u0644\u0633\u0644\u0627\u0645\u0629.", errorHandlingRecognitionEventHandover: "\u0645\u0639\u0630\u0631\u0629\u060C \u0623\u0648\u0627\u062C\u0647 \u0645\u0634\u0643\u0644\u0629 \u0641\u064A \u0641\u0647\u0645\u0643. \u0644\u062D\u0638\u0629 \u0645\u0646 \u0641\u0636\u0644\u0643 \u0648\u0633\u0648\u0641 \u0623\u0648\u0635\u0644\u0643 \u0628\u0634\u062E\u0635 \u0645\u0627 \u064A\u0633\u062A\u0637\u064A\u0639 \u0645\u0633\u0627\u0639\u062F\u062A\u0643.", errorHandlingRecognitionEventHandoverVoiceSurvey: "\u0639\u0630\u0631\u064B\u0627\u060C \u0644\u0627 \u0623\u0633\u062A\u0637\u064A\u0639 \u0641\u0647\u0645\u0643. \u0645\u0639 \u0627\u0644\u0633\u0644\u0627\u0645\u0629.", errorHandlingTTS: "\u0645\u0639\u0630\u0631\u0629\u060C \u062D\u062F\u062B \u062E\u0637\u0623. \u064A\u0631\u062C\u0649 \u0627\u0644\u0645\u062D\u0627\u0648\u0644\u0629 \u0645\u0631\u0629 \u0623\u062E\u0631\u0649.", initialGreetingTTS: "\u0645\u0631\u062D\u0628\u064B\u0627\u060C \u0647\u0630\u0647 \u0647\u064A \u0627\u0644\u062A\u062D\u064A\u0629 \u0627\u0644\u0623\u0648\u0644\u064A\u0629.", initialState: "\u0627\u0644\u062D\u0627\u0644\u0629 \u0627\u0644\u0623\u0648\u0644\u064A\u0629", initialBotState: "\u0627\u0644\u0631\u0648\u0628\u0648\u062A \u0627\u0644\u0627\u0641\u062A\u0631\u0627\u0636\u064A", initialDigitalBotState: "\u0627\u0644\u062A\u062D\u064A\u0629 \u0627\u0644\u0623\u0648\u0644\u064A\u0629", initialSurveyBotState: "\u0631\u0648\u0628\u0648\u062A \u0627\u0644\u0627\u0633\u062A\u0628\u064A\u0627\u0646", intentConfirmation: "\u0623\u0639\u062A\u0642\u062F \u0623\u0646\u0643 \u062A\u0631\u064A\u062F %1$s, \u0647\u0644 \u0647\u0630\u0627 \u0635\u062D\u064A\u062D\u061F", mainMenu: "\u0627\u0644\u0642\u0627\u0626\u0645\u0629 \u0627\u0644\u0631\u0626\u064A\u0633\u064A\u0629", mainMenuTTS: "\u0623\u0646\u062A \u0641\u064A \u0627\u0644\u0642\u0627\u0626\u0645\u0629 \u0627\u0644\u0631\u0626\u064A\u0633\u064A\u0629\u060C \u064A\u0631\u062C\u0649 \u0627\u0644\u0636\u063A\u0637 \u0639\u0644\u0649 9 \u0644\u0644\u0625\u0646\u0647\u0627\u0621", mainTask: "\u0627\u0644\u0645\u0647\u0645\u0629", settingsConfirmationNoInputApology: "\u0645\u0639\u0630\u0631\u0629\u060C \u0644\u0645 \u0623\u0633\u0645\u0639\u0643. \u064A\u0631\u062C\u0649 \u0627\u0644\u0646\u0637\u0642 \u0628\u0643\u0644\u0645\u0629 \u0646\u0639\u0645 \u0623\u0648 \u0644\u0627.", settingsConfirmationNoInputApologyDigitalBot: '\u0645\u0639\u0630\u0631\u0629\u060C \u0644\u0645 \u0623\u0633\u062A\u0644\u0645 \u0631\u062F\u064B\u0627 \u0645\u0646\u0643. \u064A\u0631\u062C\u0649 \u0625\u062F\u062E\u0627\u0644 "\u0646\u0639\u0645" \u0623\u0648 "\u0644\u0627".', settingsConfirmationNoMatchApology: "\u0645\u0639\u0630\u0631\u0629\u060C \u064A\u0631\u062C\u0649 \u0623\u0646 \u062A\u0642\u0648\u0644 \u0646\u0639\u0645 \u0623\u0648 \u0644\u0627.", settingsConfirmationNoMatchApologyDigitalBot: '\u0645\u0639\u0630\u0631\u0629\u060C \u064A\u0631\u062C\u0649 \u0625\u062F\u062E\u0627\u0644 "\u0646\u0639\u0645" \u0623\u0648 "\u0644\u0627".', settingsNoInputApology: "\u0645\u0639\u0630\u0631\u0629\u060C \u0644\u0645 \u0623\u0633\u0645\u0639\u0643.", settingsNoInputApologyDigitalBot: "\u0645\u0639\u0630\u0631\u0629\u060C \u0644\u0645 \u0623\u062A\u0644\u0642 \u0631\u062F\u064B\u0627 \u0645\u0646\u0643.", settingsEndOfSessionMessageDigitalBot: "\u0644\u0645 \u0623\u0633\u0645\u0639 \u0645\u0646\u0643 \u0645\u0646\u0630 \u0641\u062A\u0631\u0629\u060C \u0644\u0630\u0627 \u0633\u0623\u063A\u0644\u0642 \u0627\u0644\u062F\u0631\u062F\u0634\u0629\u060C \u064A\u0631\u062C\u0649 \u0627\u0644\u0631\u062C\u0648\u0639 \u0645\u0631\u0629 \u0623\u062E\u0631\u0649 \u0625\u0630\u0627 \u0643\u0646\u062A \u062A\u0631\u064A\u062F \u0627\u0644\u0645\u0633\u0627\u0639\u062F\u0629 \u062B\u0627\u0646\u064A\u0629. \u0634\u0643\u0631\u064B\u0627 \u0644\u0643.", settingsNoMatchApology: "\u0645\u0639\u0630\u0631\u0629.", settingsNoToConfirmationApology: "\u062E\u0637\u0626\u064A.", periodicStateName: "\u0627\u0644\u062D\u0627\u0644\u0629 \u0627\u0644\u0645\u062A\u0643\u0631\u0631\u0629" }; + }, 61568: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.SendRichLinkActionModel = void 0; + const n2 = i2(31635), r2 = i2(30801), o = i2(80934), a = i2(80295), s = n2.__importDefault(i2(7401)); + class l extends o.BaseActionWithOutputsModel { + constructor(e3) { + super(e3), this.__type = l.__type, (0, a.makeUnenumerable)(this, "_headerType"), (0, a.makeUnenumerable)(this, "_headerImage"), (0, a.makeUnenumerable)(this, "_headerText"), (0, a.makeUnenumerable)(this, "_body"), (0, a.makeUnenumerable)(this, "_footer"), (0, a.makeUnenumerable)(this, "_urlValue"), (0, a.makeUnenumerable)(this, "_urlLabel"); + } + get headerType() { + return this._headerType; + } + set headerType(e3) { + this._headerType = this.reviveItem(e3, s.default); + } + get headerImage() { + return this._headerImage; + } + set headerImage(e3) { + this._headerImage = this.reviveItem(e3, s.default); + } + get headerText() { + return this._headerText; + } + set headerText(e3) { + this._headerText = this.reviveItem(e3, s.default); + } + get body() { + return this._body; + } + set body(e3) { + this._body = this.reviveItem(e3, s.default); + } + get footer() { + return this._footer; + } + set footer(e3) { + this._footer = this.reviveItem(e3, s.default); + } + get urlValue() { + return this._urlValue; + } + set urlValue(e3) { + this._urlValue = this.reviveItem(e3, s.default); + } + get urlLabel() { + return this._urlLabel; + } + set urlLabel(e3) { + this._urlLabel = this.reviveItem(e3, s.default); + } + pasteResolveOldToNewValues(e3) { + var t3, i3, n3, r3, o2, a2, s2; + super.pasteResolveOldToNewValues(e3), null === (t3 = this._headerType) || void 0 === t3 || t3.pasteResolveOldToNewValues(e3), null === (i3 = this._headerImage) || void 0 === i3 || i3.pasteResolveOldToNewValues(e3), null === (n3 = this._headerText) || void 0 === n3 || n3.pasteResolveOldToNewValues(e3), null === (r3 = this._body) || void 0 === r3 || r3.pasteResolveOldToNewValues(e3), null === (o2 = this._footer) || void 0 === o2 || o2.pasteResolveOldToNewValues(e3), null === (a2 = this._urlValue) || void 0 === a2 || a2.pasteResolveOldToNewValues(e3), null === (s2 = this._urlLabel) || void 0 === s2 || s2.pasteResolveOldToNewValues(e3); + } + pasteReIdOrRename(e3) { + var t3, i3, n3, r3, o2, a2, s2; + super.pasteReIdOrRename(e3), null === (t3 = this._headerType) || void 0 === t3 || t3.pasteReIdOrRename(e3), null === (i3 = this._headerImage) || void 0 === i3 || i3.pasteReIdOrRename(e3), null === (n3 = this._headerText) || void 0 === n3 || n3.pasteReIdOrRename(e3), null === (r3 = this._body) || void 0 === r3 || r3.pasteReIdOrRename(e3), null === (o2 = this._footer) || void 0 === o2 || o2.pasteReIdOrRename(e3), null === (a2 = this._urlValue) || void 0 === a2 || a2.pasteReIdOrRename(e3), null === (s2 = this._urlLabel) || void 0 === s2 || s2.pasteReIdOrRename(e3); + } + } + t2.SendRichLinkActionModel = l, l.__type = r2.sendRichLinkActionType, n2.__decorate([(0, a.enumerable)(true), n2.__metadata("design:type", Object), n2.__metadata("design:paramtypes", [Object])], l.prototype, "headerType", null), n2.__decorate([(0, a.enumerable)(true), n2.__metadata("design:type", Object), n2.__metadata("design:paramtypes", [Object])], l.prototype, "headerImage", null), n2.__decorate([(0, a.enumerable)(true), n2.__metadata("design:type", Object), n2.__metadata("design:paramtypes", [Object])], l.prototype, "headerText", null), n2.__decorate([(0, a.enumerable)(true), n2.__metadata("design:type", Object), n2.__metadata("design:paramtypes", [Object])], l.prototype, "body", null), n2.__decorate([(0, a.enumerable)(true), n2.__metadata("design:type", Object), n2.__metadata("design:paramtypes", [Object])], l.prototype, "footer", null), n2.__decorate([(0, a.enumerable)(true), n2.__metadata("design:type", Object), n2.__metadata("design:paramtypes", [Object])], l.prototype, "urlValue", null), n2.__decorate([(0, a.enumerable)(true), n2.__metadata("design:type", Object), n2.__metadata("design:paramtypes", [Object])], l.prototype, "urlLabel", null), l.registerType(); + }, 61587: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.of = void 0; + var n2 = i2(26404), r2 = i2(47058); + t2.of = function() { + for (var e3 = [], t3 = 0; t3 < arguments.length; t3++) e3[t3] = arguments[t3]; + var i3 = n2.popScheduler(e3); + return r2.from(e3, i3); + }; + }, 61610: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.isTaskLike = T, t2.hasTaskLikeProperty = function(e3) { + return "object" == typeof e3 && null !== e3 && T(e3.task); + }; + const n2 = i2(31635), r2 = i2(17604), o = n2.__importDefault(i2(92140)), a = n2.__importDefault(i2(22917)), s = n2.__importDefault(i2(33139)), l = n2.__importStar(i2(36781)), u = n2.__importDefault(i2(61864)), d = n2.__importStar(i2(62829)), c = n2.__importStar(i2(58380)), p = n2.__importStar(i2(48565)), _ = n2.__importStar(i2(71004)), h = n2.__importStar(i2(14187)), m = n2.__importDefault(i2(97400)), g = n2.__importStar(i2(43773)), f = i2(47957); + function T(e3) { + return e3 && e3.isTaskLike; + } + i2(92330); + class y extends m.default { + constructor(e3) { + super(e3, e3), this.variables = []; + } + get className() { + return "BaseTaskViewModel"; + } + get nodeGuxIcon() { + return u.default.task.gux; + } + get resources() { + return { startUpDisplayName: f.startUpTaskDisplayName }; + } + get defaultVariableScope() { + return h.scopes.task; + } + get localVariableScope() { + return h.scopes.task; + } + get uiMetaDataSectionName() { + return "task"; + } + _loadModel(e3) { + if (!e3) return; + super._loadModel(e3), p.registerNode(this), e3.variables = e3.variables || [], o.default.each(e3.variables, (e4) => { + this.variables.push(_.createVariable(e4, this)); + }), this.model.actionList || (this.model.actionList = []), this.actions.length = 0; + const t3 = this._topActionId || null, i3 = {}; + this.model.actionList = o.default.uniq(this.model.actionList); + for (let e4 = 0; e4 < this.model.actionList.length; e4++) { + const n3 = this.model.actionList[e4]; + if (i3[n3.id]) this.model.actionList.splice(e4, 1), e4--, this.topic.errorWithErrorObjectInfo("Actions with the same id.", this, false); + else { + i3[n3.id] = true; + const e5 = d.createActionWithModel(this, n3); + this.actions.push(e5), t3 && e5.id === t3 && (this.topAction = e5); + } + } + } + addVariable(e3) { + e3 && !o.default.contains(this.variables, e3) && (this.variables.push(e3), this.model.variables.push(e3.model), c.fireEvent(this, l.variableAdded, e3)); + } + get amObjectEventEmitter() { + return true; + } + checkVersion(e3) { + o.default.each(this.actions, (t3) => { + t3.checkVersion(e3); + }); + } + get canCollapse() { + return false; + } + _preDestroy() { + super._preDestroy(), c.fireEvent(this, l.actionContainerDeleted); + } + _destroy() { + super._destroy(), o.default.each(o.default.clone(this.variables), (e3) => { + this.removeVariable(e3), e3.destroy(); + }), this.variables.length = 0; + } + getConfiguration(e3, t3) { + var i3; + let n3 = this.model.getConfiguration(e3, t3); + const r3 = [], l2 = (null == t3 ? void 0 : t3.isForFlowYaml) ? this.getMainPathActions() : this.actions; + return o.default.each(l2, (i4) => { + r3.push(i4.getConfiguration(e3, t3)); + }), (r3.length || !(null == t3 ? void 0 : t3.isForFlowYaml)) && (n3[(null == t3 ? void 0 : t3.isForFlowYaml) ? s.default.actions : s.default.actionList] = r3), (null == t3 ? void 0 : t3.isForComparison) ? g.removePropertiesForComparison(n3) : (null == t3 ? void 0 : t3.isForFlowYaml) ? (this.isInlineTask || (n3.refId = this.getRefId()), (null === (i3 = null == t3 ? void 0 : t3.yamlOptions) || void 0 === i3 ? void 0 : i3.includeTrackingIds) && this.trackingId && (n3.trackingId = this.trackingId), this.isStartUpObject && (e3.startUpRef = this.yamlPath), this.variables.length && (n3.variables = o.default.map(this.variables, (i4) => i4.getConfiguration(e3, t3)), o.default.sortMapByNameProperty(n3.variables)), n3 = a.default.sortObjectByPropertyMap(n3, this.yamlPropertyOrderMap), o.default.tryWrapObject(n3, this.wrappedYamlName)) : n3; + } + getVariableById(e3) { + return o.default.find(this.variables, (t3) => t3.id === e3); + } + _initializeDesignTime() { + super._initializeDesignTime(), o.default.each(this.actions, (e3) => { + e3.initializeDesignTime(); + }); + } + isNameUnique() { + if (!this.parent || !this.parent.tasks) return true; + const e3 = this.parent.tasks; + for (let t3 = 0; t3 < e3.length; t3++) { + const i3 = e3[t3]; + if (i3.id !== this.id && i3.name === this.name) return false; + } + return true; + } + get isInlineTask() { + return this.isHidden; + } + get isTaskLike() { + return true; + } + get isTopLevelNode() { + return true; + } + get hasChildren() { + return this.actions && this.actions.length > 0; + } + get containerLabel() { + return f.task.label; + } + get containerLabelAndName() { + return (0, r2.sprintf)(f.labelAndName, this.containerLabel, this.getDisplayName()); + } + get supportsScopedData() { + return true; + } + get name() { + return super.name; + } + set name(e3) { + super.name = e3, this.parentFlow.getUiMetadataInfoById(this.uiMetaDataSectionName, this.id) && this.parentFlow.setUiMetadataInfo(this.uiMetaDataSectionName, { id: this.id, name: this.name }); + } + removeVariable(e3) { + let t3 = this.variables.indexOf(e3); + t3 > -1 && this.variables.splice(t3, 1), t3 = this.model.variables.indexOf(e3.model), t3 > -1 && this.model.variables.splice(t3, 1), c.fireEvent(this, l.variableRemoved, e3); + } + search(e3) { + e3.checkId(this, this.id, this.name), e3.checkTrackingId(this, this.trackingId, this.name), e3.checkName(this, this.name, f.task.label), o.default.each(this.actions, e3.addToQueue.bind(e3)); + } + traverse(e3) { + if (!e3 || e3.isCanceled) return; + const t3 = e3.getTaskCallback(); + if (t3) { + const i3 = e3.createCallbackParam(true); + if (t3(this, i3), !e3.processCallbackParamAndContinue(i3, true)) return; + } + super.traverse(e3); + } + get trackingId() { + return this.model.trackingId; + } + set trackingId(e3) { + this.model.trackingId = e3; + } + updateDependencies() { + o.default.each(this.actions, (e3) => { + e3.updateDependencies(); + }); + } + validate(e3) { + super.validate(e3), this.shouldBeTerminated && (this.isTerminating || e3.addError(this, this.resources.noTerminatingAction)); + } + get shouldBeTerminated() { + return true; + } + get wrappedYamlName() { + return this.uiMetaDataSectionName; + } + get yamlPropertyOrderMap() { + return o.default.extend(super.yamlPropertyOrderMap, { trackingId: 15, variables: 20, actions: 30 }); + } + } + t2.default = y; + }, 61684: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.ScheduleViewModel = void 0; + const n2 = i2(74483); + class r2 extends n2.NameIdConfigurationListViewModel { + constructor(e3) { + super(e3); + } + get className() { + return "ScheduleViewModel"; + } + get label() { + return this._model.name; + } + } + t2.ScheduleViewModel = r2; + }, 61730: (e2, t2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.SchemaViewModel = void 0, t2.SchemaViewModel = class { + constructor(e3) { + this._model = e3; + } + get className() { + return "SchemaViewModel"; + } + get isBaseClass() { + return false; + } + get id() { + return this._model.id; + } + get name() { + return this._model.name; + } + get schema() { + return this._model.schema; + } + }; + }, 61778: function(e2, t2, i2) { + "use strict"; + var n2 = this && this.__values || function(e3) { + var t3 = "function" == typeof Symbol && Symbol.iterator, i3 = t3 && e3[t3], n3 = 0; + if (i3) return i3.call(e3); + if (e3 && "number" == typeof e3.length) return { next: function() { + return e3 && n3 >= e3.length && (e3 = void 0), { value: e3 && e3[n3++], done: !e3 }; + } }; + throw new TypeError(t3 ? "Object is not iterable." : "Symbol.iterator is not defined."); + }; + Object.defineProperty(t2, "__esModule", { value: true }), t2.bufferToggle = void 0; + var r2 = i2(69879), o = i2(65212), a = i2(19724), s = i2(17214), l = i2(5717), u = i2(54830); + t2.bufferToggle = function(e3, t3) { + return o.operate(function(i3, o2) { + var d = []; + a.innerFrom(e3).subscribe(s.createOperatorSubscriber(o2, function(e4) { + var i4 = []; + d.push(i4); + var n3 = new r2.Subscription(); + n3.add(a.innerFrom(t3(e4)).subscribe(s.createOperatorSubscriber(o2, function() { + u.arrRemove(d, i4), o2.next(i4), n3.unsubscribe(); + }, l.noop))); + }, l.noop)), i3.subscribe(s.createOperatorSubscriber(o2, function(e4) { + var t4, i4; + try { + for (var r3 = n2(d), o3 = r3.next(); !o3.done; o3 = r3.next()) o3.value.push(e4); + } catch (e5) { + t4 = { error: e5 }; + } finally { + try { + o3 && !o3.done && (i4 = r3.return) && i4.call(r3); + } finally { + if (t4) throw t4.error; + } + } + }, function() { + for (; d.length > 0; ) o2.next(d.shift()); + o2.complete(); + })); + }); + }; + }, 61781: (e2, t2, i2) => { + "use strict"; + const n2 = i2(31635), r2 = i2(12179), o = n2.__importDefault(i2(97891)), a = i2(24383), s = n2.__importDefault(i2(5730)), l = i2(47957); + class u extends s.default { + constructor(e3, t3) { + super(e3.parentFlow, e3), this._loadModel(t3); + } + } + u.info = o.default.createActionInfo({ actionClass: u, canBeInTask: false, canBeTreeNode: true, helpTopic: r2.helpTopics.actions.repeatMenu, modelClass: i2(87129), name: l.actions.repeatMenu, scriptingName: "ArchActionRepeatMenu", termination: a.terminatesTask }), t2.A = u; + }, 61828: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importDefault(i2(11210)), o = n2.__importDefault(i2(78432)), a = n2.__importDefault(i2(96946)), s = i2(30801); + class l extends r2.default { + constructor(e3) { + super(e3), this._positionInQueue = this.coreFactory.createArchValueFromExpression(e3.positionInQueue), this._positionInQueueAudio = this.coreFactory.createArchWrapper(e3.prompts)._setNotWritableOverride(true); + } + get _actionTypeId() { + return s.playPositionInQueueActionType; + } + get displayTypeName() { + return this._scriptingName; + } + get positionInQueue() { + return this._positionInQueue; + } + get positionInQueueAudio() { + return this._positionInQueueAudio; + } + get isArchActionPlayPositionInQueue() { + return true; + } + get playbackMode() { + switch (this._coreActionViewModel.playbackMode) { + case a.default.ahead: + return o.default.PLAY_POSITION_STYLES.ahead; + case a.default.number: + return o.default.PLAY_POSITION_STYLES.number; + case a.default.ordinal: + return o.default.PLAY_POSITION_STYLES.ordinal; + default: + this._logErrorInternalAndThrow("unknown core position in queue playback mode"); + } + } + set playbackMode(e3) { + switch (this._checkItemIsValidLiteralStringEnum(this._infoPropSet("newPlaybackMode", "playbackMode"), e3, o.default.PLAY_POSITION_STYLES_ALL), this.logNote("setting the playback mode to '" + e3 + "'"), e3) { + case o.default.PLAY_POSITION_STYLES.ahead: + this._coreActionViewModel.playbackMode = a.default.ahead; + break; + case o.default.PLAY_POSITION_STYLES.number: + this._coreActionViewModel.playbackMode = a.default.number; + break; + case o.default.PLAY_POSITION_STYLES.ordinal: + this._coreActionViewModel.playbackMode = a.default.ordinal; + } + } + } + t2.default = l; + }, 61843: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importDefault(i2(38676)), o = n2.__importDefault(i2(62446)), a = { ArchPromptSystem: r2.default, ArchPromptUser: o.default }; + t2.default = a; + }, 61846: (e2, t2, i2) => { + const n2 = i2(36019).default, r2 = i2(93973); + function o() { + } + o.prototype.getLanguageSkills = function(e3) { + const t3 = n2.build(r2.getLanguageSkills); + return t3.queryParams(e3.getSearchQueryParams()), t3.call(); + }, o.prototype.getLanguageSkill = function(e3) { + const t3 = n2.build(r2.getLanguageSkill); + return t3.templateParams({ id: e3 }), t3.call(); + }, o.prototype.getLanguageSkill.api = r2.getLanguageSkill, e2.exports = new o(); + }, 61864: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.guxIconNameMap = void 0; + const n2 = i2(31635).__importDefault(i2(92140)), r2 = { alertInfo: { gux: "fa/circle-info-solid" }, aiStudio: { gux: "restricted/custom/sparkles-solid" }, ask: { gux: "fa/messages-regular" }, assignedCustomerIntent: { gux: "fa/folder-plus-regular" }, assignedCustomerSegment: { gux: "cjv-segment" }, audioCounter: { gux: "deprecated/fa/volume-regular" }, boolean: { gux: "deprecated/fa/circle-check-regular" }, book: { gux: "fa/book-regular" }, bot: { gux: "fa/robot-regular" }, button: { gux: "fa/square-list-regular" }, change: { gux: "fa/shuffle-regular" }, card: { gux: "fa/square-regular" }, carousel: { gux: "fa/copy-regular" }, carouselCircled: { gux: "custom/carousel" }, communication: { gux: "fa/message-lines-regular" }, complex: { gux: "fa/cube-regular" }, contact: { gux: "fa/road-regular" }, conversation: { gux: "fa/messages-regular" }, conversationCustomAttribute: { gux: "fa/diagram-nested-regular" }, currency: { gux: "fa/money-bill-regular" }, customerIntent: { gux: "fa/folder-plus-regular" }, customerSegment: { gux: "cjv-segment" }, database: { gux: "fa/database-regular" }, date: { gux: "fa/calendar-days-regular" }, datetime: { gux: "fa/calendar-clock-regular" }, decimal: { gux: "fa/00-regular" }, decision: { gux: "fa/diamond-regular" }, decisionTable: { gux: "fa/table-regular" }, deflectURL: { gux: "fa/globe-regular" }, dial: { gux: "fa/hashtag-regular" }, digitalAudio: { gux: "deprecated/fa/volume-regular" }, disconnect: { gux: "fa/link-slash-regular" }, division: { gux: "fa/code-branch-regular" }, dtmf: { gux: "fa/grid-regular" }, duration: { gux: "fa/hourglass-start-regular" }, emailEnvelope: { gux: "fa/envelope-regular" }, file: { gux: "fa/paperclip-regular" }, find: { gux: "fa/magnifying-glass-regular" }, emergencyGroup: { gux: "fa/fire-regular" }, grammar: { gux: "fa/code-regular" }, group: { gux: "fa/people-group-regular" }, hold: { gux: "fa/music-regular" }, image: { gux: "fa/image-regular" }, integer: { gux: "fa/1-regular" }, journey: { gux: "fa/location-dot-regular" }, json: { gux: "fa/border-all-regular" }, knowledgeBaseDocument: { gux: "fa/file-lines-regular" }, label: { gux: "fa/tag-regular" }, laptop: { gux: "fa/laptop-regular" }, lineItem: { gux: "fa/list-ul-regular" }, listPicker: { gux: "fa/rectangle-history-regular" }, listPickerItem: { gux: "fa/memo-circle-check-regular" }, listPickerSection: { gux: "fa/folder-regular" }, lock: { gux: "fa/lock-regular" }, loop: { gux: "fa/infinity-regular" }, menu: { gux: "fa/bars-regular" }, playAudio: { gux: "fa/circle-play-regular" }, record: { gux: "fa/waveform-lines-regular" }, recording: { gux: "fa/waveform-lines-regular" }, send: { gux: "send" }, sendReply: { gux: "custom/reply-regular" }, speechRec: { gux: "fa/microphone-regular" }, survey: { gux: "fa/clipboard-regular" }, task: { gux: "fa/sitemap-regular" }, timePicker: { gux: "fa/calendar-plus-regular" }, transfer: { gux: "fa/arrow-up-right-from-square-regular" }, languageSkill: { gux: "fa/messages-regular" }, link: { gux: "fa/link-regular" }, mailbox: { gux: "fa/inbox-regular" }, modifyIntents: { gux: "fa/pen-regular" }, phone: { gux: "fa/phone-regular" }, prompt: { gux: "fa/message-regular" }, responseAsset: { gux: "fa/paperclip-regular" }, secureData: { gux: "fa/key-regular" }, schedule: { gux: "fa/map-regular" }, scheduleGroup: { gux: "fa/map-solid" }, shippingOption: { gux: "fa/truck-regular" }, skill: { gux: "fa/graduation-cap-regular" }, string: { gux: "fa/font-regular" }, terminator: { gux: "fa/head-side-headphones-regular" }, time: { gux: "fa/clock-nine-regular" }, user: { gux: "fa/user-regular" }, queue: { gux: "fa/people-group-regular" }, quickReplyCircled: { gux: "custom/quick-reply" }, road: { gux: "fa/road-regular" }, state: { gux: "fa/location-dot-regular" }, video: { gux: "fa/video-regular" }, wrapupCode: { gux: "fa/tag-regular" }, wrench: { gux: "fa/gear-regular" }, any: { gux: "fa/shapes-regular" }, enum: { gux: "fa/cube-regular" }, enumContainer: { gux: "fa/cube-regular" }, expression: { gux: "fa/sigma-regular" }, stringMethods: { gux: "fa/font-regular" }, common: { gux: "fa/puzzle-piece-regular" }, breakpoint: { gux: "fa/bug-regular" }, unknown: { gux: "deprecated/fa/life-ring-regular" }, delete: { gux: "fa/trash-regular" }, ban: { gux: "deprecated/fa/ban-regular" }, blankAudio: { gux: "fa/volume-xmark-regular" }, contextMenu: { gux: "fa/ellipsis-vertical-regular" }, utilizationLabel: { gux: "fa/arrows-down-to-people-regular" }, workitem: { gux: "fa/clipboard-list-regular" } }; + t2.default = r2, t2.guxIconNameMap = {}, n2.default.each(r2, function(e3) { + t2.guxIconNameMap[e3.gux] = e3; + }); + }, 61870: (e2, t2, i2) => { + "use strict"; + var n2; + Object.defineProperty(t2, "__esModule", { value: true }), t2.ExpressionTypeDecimalOptions = void 0; + const r2 = i2(31635), o = r2.__importDefault(i2(63005)), a = i2(80295), s = i2(65615), l = i2(55909), u = i2(33951); + class d extends s.BaseExpressionTypeCollectionOptions { + static create(e3, t3) { + return new this(t3).invokeOptionsCallback(e3); + } + constructor(e3) { + super(e3), this._decimalFacets = new o.default(), (0, a.makeUnenumerable)(this, "_decimalFacets"); + } + get isExpressionTypeDecimalOptions() { + return true; + } + get className() { + return "ExpressionTypeDecimalOptions"; + } + get facets() { + return this._decimalFacets; + } + set facets(e3) { + this._decimalFacets = u.ParameterValidator.expectTrue(e3 && true === e3.isDecimalFacets, e3, "DecimalFacets", () => l.ParameterInfo.createPropertySet(this.className, "facets", "value")); + } + _setRestrictionsFromOperandDef(e3) { + void 0 !== e3.minVal && this.facets.setMinDec(e3.min), void 0 !== e3.maxVal && this.facets.setMaxDec(e3.max), void 0 !== e3.disallowZero && this.facets.setDisallowZero(e3.disallowZero); + } + } + t2.ExpressionTypeDecimalOptions = d, r2.__decorate([(0, a.enumerable)(true), r2.__metadata("design:type", "function" == typeof (n2 = void 0 !== o.default && o.default) ? n2 : Object), r2.__metadata("design:paramtypes", [Object])], d.prototype, "facets", null); + }, 61897: (e2, t2, i2) => { + "use strict"; + var n2, r2, o, a = i2(81452), s = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_-"; + function l() { + o = false; + } + function u(e3) { + if (e3) { + if (e3 !== n2) { + if (64 !== e3.length) throw new Error("Custom alphabet for shortid must be 64 unique characters. You submitted " + e3.length + " characters: " + e3); + var t3 = e3.split("").filter(function(e4, t4, i3) { + return t4 !== i3.lastIndexOf(e4); + }); + if (t3.length) throw new Error("Custom alphabet for shortid must be 64 unique characters. These characters were not unique: " + t3.join(", ")); + n2 = e3, l(); + } + } else n2 !== s && (n2 = s, l()); + } + function d() { + return o || (o = (function() { + n2 || u(s); + for (var e3, t3 = n2.split(""), i3 = [], r3 = a.nextValue(); t3.length > 0; ) r3 = a.nextValue(), e3 = Math.floor(r3 * t3.length), i3.push(t3.splice(e3, 1)[0]); + return i3.join(""); + })()); + } + e2.exports = { get: function() { + return n2 || s; + }, characters: function(e3) { + return u(e3), n2; + }, seed: function(e3) { + a.seed(e3), r2 !== e3 && (l(), r2 = e3); + }, lookup: function(e3) { + return d()[e3]; + }, shuffled: d }; + }, 62017: (e2, t2, i2) => { + "use strict"; + var n2; + Object.defineProperty(t2, "__esModule", { value: true }), t2.ExpressionTypeAudioOptions = void 0; + const r2 = i2(31635), o = r2.__importDefault(i2(50964)), a = i2(80295), s = i2(19507), l = i2(55909), u = i2(33951), d = r2.__importDefault(i2(92140)); + class c extends s.BaseExpressionTypeOptions { + static create(e3) { + return new this().invokeOptionsCallback(e3); + } + constructor() { + super(), this._durationFacets = new o.default(), this._allowBlankAudio = true, (0, a.makeUnenumerable)(this, "_durationFacets"), (0, a.makeUnenumerable)(this, "_allowBlankAudio"), this.allowSecure = true; + } + _setFromOptions(e3) { + super._setFromOptions(e3), this._setOptionIfSet(this.setAllowBlankAudio, e3.allowBlankAudio), this._setOptionIfSet(this.setEmitNonConfigItemForEmptyAndNoDefault, e3.emitNonConfigItemForEmptyAndNoDefault), this._setOptionIfSet(this.setAllowSecure, e3.allowSecure), this._setOptionIfSet(this.setAllowBlankAudio, e3.allowBlankAudio); + } + _setFacetsFromOptions(e3) { + super._setFacetsFromOptions(e3), e3.isAudioViewModelOptions && d.default.isActualNumber(e3.maxDuration) && this.durationFacets.setMaxDur(e3.maxDuration, e3.maxDurInclusive); + } + get isExpressionTypeAudioOptions() { + return true; + } + get className() { + return "ExpressionTypeAudioOptions"; + } + get allowBlankAudio() { + return this._allowBlankAudio; + } + set allowBlankAudio(e3) { + this._allowBlankAudio = u.ParameterValidator.expectBool(e3, () => l.ParameterInfo.createPropertySet(this.className, "allowBlankAudio", "value")); + } + get durationFacets() { + return this._durationFacets; + } + set durationFacets(e3) { + this._durationFacets = u.ParameterValidator.expectTrue(e3 && true === e3.isDurationFacets, e3, "DurationFacets", () => l.ParameterInfo.createPropertySet(this.className, "durationFacets", "value")); + } + setAllowBlankAudio(e3) { + return this.allowBlankAudio = e3, this; + } + } + t2.ExpressionTypeAudioOptions = c, r2.__decorate([(0, a.enumerable)(true), r2.__metadata("design:type", Boolean), r2.__metadata("design:paramtypes", [Object])], c.prototype, "allowBlankAudio", null), r2.__decorate([(0, a.enumerable)(true), r2.__metadata("design:type", "function" == typeof (n2 = void 0 !== o.default && o.default) ? n2 : Object), r2.__metadata("design:paramtypes", [Object])], c.prototype, "durationFacets", null); + }, 62028: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importDefault(i2(42175)), o = n2.__importDefault(i2(94225)), { menuActionActionType: a } = i2(30801), { taskActionActionType: s } = i2(30801); + class l extends r2.default { + constructor(e3) { + super(e3), this._coreMenuChoiceViewModel = e3, this._archAction = this.coreFactory.createArchActionFromCoreAction(e3.action), this._archSpeechRecTermContainers = this.coreFactory.createArchWrapper(e3.speechRecTerms); + } + get displayTypeName() { + return "ArchBaseMenuChoice"; + } + addSpeechRecTerm(e3, t3) { + const i3 = this._infoParm("newTerm", "addSpeechRecTerm"); + this._checkItemIsValidLiteralString(i3, t3), this._checkItem(this._infoParm("archLanguage", "addSpeechRecTerm"), !e3 || !e3.isArchLanguage, "you must specify a language where the speech rec term will be added."); + const n3 = this.getSpeechRecTermContainer(e3); + return !!n3 && n3.addTerm(t3); + } + get logStr() { + if (!this._coreMenuChoiceViewModel) return this.logStrTypeOnly; + const e3 = []; + return this._appendLogStrTrackingId(e3, this.trackingId), this._appendLogStrName(e3, this.name), this._appendLogStrType(e3, this.displayTypeName), this._createLogStrFromParts(e3); + } + get dtmf() { + return this._getDtmfForCoreDigit(this._infoPropGet("dtmf"), this._coreMenuChoiceViewModel.dtmf, true); + } + set dtmf(e3) { + this._coreMenuChoiceViewModel.dtmf = this._getCoreDigitForDtmf(this._infoPropSet("newDtmfValue", "dtmf"), e3); + } + get dtmfIsGlobal() { + return this._coreMenuChoiceViewModel.globalDtmf; + } + set dtmfIsGlobal(e3) { + this._checkItemIsValidLiteralBool(this._infoPropSet("newValue", "dtmfIsGlobal"), e3), this.logNote("setting the dtmf is global value to " + e3), this._coreMenuChoiceViewModel.globalDtmf = e3; + } + getSpeechRecTermContainer(e3) { + return this.speechRecTermContainers.getContainer(e3); + } + get isArchBaseMenuChoice() { + return true; + } + get name() { + return this._coreMenuChoiceViewModel.name; + } + set name(e3) { + if (!e3) throw "you cannot have a blank name set on a menu, sub menu or menu action"; + if (this.logNote("setting the name to '" + e3 + "'"), this._coreMenuChoiceViewModel.name = e3, this._coreMenuChoiceViewModel.action && this._coreMenuChoiceViewModel.action.info) switch (this._coreMenuChoiceViewModel.action.info.typeId) { + case s: + this._coreMenuChoiceViewModel.task && (this.logNote("setting the underlying task name to '" + e3 + "'"), this._coreMenuChoiceViewModel.task.name = e3); + break; + case a: + this._coreMenuChoiceViewModel.menu && (this.logNote("setting the underlying menu name to '" + e3 + "'"), this._coreMenuChoiceViewModel.menu.name = e3); + } + this._coreMenuChoiceViewModel.action.nameFacetError && this.logErrorAndThrow(this._coreMenuChoiceViewModel.action.nameFacetError); + } + get speechRecTermContainers() { + return this._archSpeechRecTermContainers; + } + get speechRecTermsAreGlobal() { + return this._coreMenuChoiceViewModel.globalSpeech; + } + set speechRecTermsAreGlobal(e3) { + this._checkItemIsValidLiteralBool(this._infoPropSet("newValue", "speechRecTermsAreGlobal"), e3), this.logNote("setting the speech rec terms are global value to " + e3), this._coreMenuChoiceViewModel.globalSpeech = e3; + } + get trackingId() { + return this._coreMenuChoiceViewModel.trackingId; + } + set trackingId(e3) { + const t3 = this._infoPropSet("value", "trackingId"); + this._ensureCanSetTrackingIds(t3, o.default, e3); + const i3 = this._getCoreViewModel(), n3 = i3.trackingId; + n3 !== e3 && (i3.trackingId = e3, this.logItemVerboseNote(t3, `updated tracking ID from ${n3} to ${i3.trackingId}.`)); + } + } + t2.default = l; + }, 62061: (e2, t2, i2) => { + const n2 = i2(75458), r2 = i2(7401), { getRawSIPHeadersActionType: o } = i2(30801); + function a() { + Object.defineProperties(this, { _rawSIPHeadersResult: { writable: true }, _errorBindings: { writable: true } }), a.baseConstructor.apply(this, arguments); + } + n2.extend(a, o, true), Object.defineProperties(a.prototype, { rawSIPHeadersResult: { enumerable: true, get: function() { + return this._rawSIPHeadersResult; + }, set: function(e3) { + this._rawSIPHeadersResult = this.reviveItem(e3, r2); + } }, pasteReIdOrRename: { value: function(e3) { + a._super.pasteReIdOrRename.apply(this, arguments), this._rawSIPHeadersResult.pasteReIdOrRename(e3); + } }, pasteResolveOldToNewValues: { value: function(e3) { + a._super.pasteResolveOldToNewValues.apply(this, arguments), this._rawSIPHeadersResult.pasteResolveOldToNewValues(e3); + } } }), e2.exports = a; + }, 62100: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = i2(80295), o = i2(19596); + class a extends o.DataContract { + constructor(e3) { + super(e3); + } + get id() { + return this._id; + } + set id(e3) { + this._id = e3; + } + get name() { + return this._name; + } + set name(e3) { + this._name = e3; + } + get latestProductionReadyVersion() { + return this._latestProductionReadyVersion; + } + set latestProductionReadyVersion(e3) { + this._latestProductionReadyVersion = e3; + } + } + t2.default = a, n2.__decorate([(0, r2.enumerable)(true), n2.__metadata("design:type", String), n2.__metadata("design:paramtypes", [String])], a.prototype, "id", null), n2.__decorate([(0, r2.enumerable)(true), n2.__metadata("design:type", String), n2.__metadata("design:paramtypes", [String])], a.prototype, "name", null), n2.__decorate([(0, r2.enumerable)(true), n2.__metadata("design:type", Object), n2.__metadata("design:paramtypes", [Object])], a.prototype, "latestProductionReadyVersion", null); + }, 62115: (e2, t2, i2) => { + const n2 = i2(92140), r2 = i2(45421), { ParameterInfo: o } = i2(55909), { ParameterValidator: a } = i2(33951); + e2.exports = class extends r2 { + constructor(e3, t3) { + super(e3), a.expectString(t3, () => o.createConstructorParameter(this.className, "title")), Object.defineProperties(this, { _map: { value: {}, writable: true }, _title: { value: t3 } }); + } + _valueLogStr(e3) { + return n2.isString(e3) ? "'" + e3 + "'" : e3; + } + get className() { + return "BaseOldToNewMap"; + } + get isBaseOldToNewMap() { + return true; + } + get titleLogPrefix() { + return this._title + " > "; + } + dump(e3) { + this.shouldLog && (this.log("> " + this._title), n2.isEmpty(this._map) ? this.log(" None.") : this._dumpContent(), this.log(" ")); + } + _dumpContent(e3) { + } + get map() { + return this._map; + } + reset() { + this._map = {}; + } + }; + }, 62120: (e2, t2, i2) => { + function n2() { + n2.baseConstructor.apply(this, arguments); + } + i2(35158).extend(n2, "ClipboardManifestItemMenuChoiceModel", true), e2.exports = n2; + }, 62121: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = i2(19596), o = i2(80295), a = i2(80295), s = i2(9456); + class l extends r2.DataContract { + constructor(e3) { + var t3; + super(e3), this._outOfService = false, (0, a.makeUnenumerable)(this, "_builderPartDefId"), (0, a.makeUnenumerable)(this, "_outOfService"), this._builderPartDefId = e3.builderPartDefId, this.id = null !== (t3 = e3.id) && void 0 !== t3 ? t3 : (0, s.uuid)(), this.version = e3.version; + } + get builderPartDefId() { + return this._builderPartDefId; + } + set builderPartDefId(e3) { + this._builderPartDefId = e3; + } + get outOfService() { + return this._outOfService; + } + set outOfService(e3) { + this._outOfService = e3; + } + pasteReIdOrRename(e3) { + this.id = e3.pasteGenerateNewGuid(this.id); + } + pasteResolveOldToNewValues(e3) { + } + } + t2.default = l, n2.__decorate([(0, o.enumerable)(true), n2.__metadata("design:type", String), n2.__metadata("design:paramtypes", [String])], l.prototype, "builderPartDefId", null), n2.__decorate([(0, o.enumerable)(true), n2.__metadata("design:type", Boolean), n2.__metadata("design:paramtypes", [Boolean])], l.prototype, "outOfService", null); + }, 62228: (e2, t2, i2) => { + const n2 = i2(17848); + function r2() { + r2.baseConstructor.apply(this, arguments); + } + i2(22124).extend(r2, "FlowList"), Object.defineProperties(r2.prototype, { entities: { enumerable: true, get: function() { + return this._entities; + }, set: function(e3) { + this._entities = this.reviveArray(e3, n2); + } } }), e2.exports = r2; + }, 62229: (e2, t2, i2) => { + function n2() { + this.trackingId = void 0, n2.baseConstructor.apply(this, arguments); + } + i2(76768).extend(n2, "FlowSequenceItem"), Object.defineProperties(n2.prototype, { getConfiguration: { value: function(e3, t3) { + return t3?.isForFlowYaml ? { name: this.name } : n2._super.getConfiguration.apply(this, arguments); + } }, pasteReIdOrRename: { value: function(e3) { + n2._super.pasteReIdOrRename.apply(this, arguments), this.trackingId = e3.pasteGetNewTrackingId(this.trackingId); + } } }), e2.exports = n2; + }, 62240: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = i2(30801), o = n2.__importDefault(i2(11210)); + class a extends o.default { + constructor(e3) { + super(e3), this._communication = this.coreFactory.createArchValueFromExpression(e3.communication); + } + get _actionTypeId() { + return r2.communicateActionType; + } + get displayTypeName() { + return this._scriptingName; + } + get communication() { + return this._communication; + } + get isArchActionCommunicate() { + return true; + } + } + t2.default = a; + }, 62241: (e2, t2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.results = t2.actionStatus = t2.actionName = void 0, t2.actionName = { checkin: "CHECKIN", delete: "DELETE", debugPublish: "DEBUG_PUBLISH", history: "HISTORY", publish: "PUBLISH", stateChange: "STATE_CHANGE", validate: "VALIDATE", initializeDesignTime: "VALIDATE" }, t2.actionStatus = { failure: "FAILURE", locked: "LOCKED", pendingGeneration: "PENDING_GENERATION", pendingBackendNotification: "PENDING_BACKEND_NOTIFICATION", started: "STARTED", success: "SUCCESS", unlocked: "UNLOCKED" }, t2.results = { ok: "ok", doesNotExist: "does.not.exist", invalid: "invalid" }; + }, 62252: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(19596), r2 = i2(80295), o = i2(9456); + class a extends n2.DataContract { + constructor(e3) { + super(e3), (0, r2.makeUnenumerable)(this, "_partAndPartsOutOfService"), Object.defineProperties(this, { builderDefId: { writable: true, enumerable: true }, id: { value: (0, o.uuid)(), writable: true, enumerable: true }, version: { value: e3.version, writable: true, enumerable: true } }), e3.builderDefId && (this.builderDefId = e3.builderDefId); + } + pasteReIdOrRename(e3) { + this.id = e3.pasteGenerateNewGuid(this.id); + } + pasteResolveOldToNewValues(e3) { + } + get partAndPartsOutOfService() { + return this._partAndPartsOutOfService; + } + set partAndPartsOutOfService(e3) { + this._partAndPartsOutOfService = e3; + } + } + t2.default = a; + }, 62275: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.interval = void 0; + var n2 = i2(62326), r2 = i2(5825); + t2.interval = function(e3, t3) { + return void 0 === e3 && (e3 = 0), void 0 === t3 && (t3 = n2.asyncScheduler), e3 < 0 && (e3 = 0), r2.timer(e3, e3, t3); + }; + }, 62279: (e2, t2, i2) => { + "use strict"; + const n2 = i2(31635), r2 = i2(12179), o = i2(12457), a = n2.__importDefault(i2(97891)), s = n2.__importDefault(i2(33644)), l = i2(47957); + class u extends s.default { + constructor(e3, t3) { + super(e3.parentFlow, e3), this._loadModel(t3); + } + getDetails() { + return this.outcomeId ? new o.ActionDetails([l.flowOutcomes.flowOutcome], [this.outcomeName]) : null; + } + } + u.info = a.default.createActionInfo({ actionClass: u, canBeInTask: true, helpTopic: r2.helpTopics.actions.initializeFlowOutcome, modelClass: i2(76573), name: l.actions.initializeFlowOutcome, scriptingName: "ArchActionInitializeFlowOutcome" }), t2.A = u; + }, 62297: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.EngineViewModel = void 0; + const n2 = i2(31635).__importDefault(i2(92140)), r2 = i2(24032), o = i2(55299), a = (0, r2.getTopic)("EngineViewModel"); + class s extends o.BaseClass { + constructor(e3, t3) { + super(), this.model = e3, this.id = t3 || e3.id, this.flowTypes = [], this.defaultsChanged = false, this.resetLanguageProperties(); + } + get isSecure() { + return this.model.isSecure; + } + set isSecure(e3) { + this.model.isSecure = e3; + } + get id() { + return this.model.id; + } + set id(e3) { + this.model.id = e3; + } + get name() { + return this.model.name; + } + set name(e3) { + this.model.name = e3; + } + addLanguage(e3, t3, i3) { + if (!n2.default.isString(e3)) return; + const r3 = e3.toLocaleLowerCase(); + this.languages[r3] = true, this.languagesWhereDefault[r3] = t3, this.languagesNoRegion[null == r3 ? void 0 : r3.split("-")[0]] = true; + } + getEngineSupportsLanguage(e3) { + return !!n2.default.isString(e3) && !!this.languages[e3.toLocaleLowerCase()]; + } + getEngineSupportsLanguageNoRegion(e3) { + return !!n2.default.isString(e3) && !!this.languagesNoRegion[e3.toLocaleLowerCase()]; + } + getEngineSupportsFlowType(e3) { + return !!n2.default.isString(e3) && this.flowTypes.includes(e3); + } + getEngineSupportsLanguageAndFlowType(e3, t3) { + return this.getEngineSupportsLanguage(e3) && this.getEngineSupportsFlowType(t3); + } + getIsEngineDefaultForLanguage(e3) { + return !!n2.default.isString(e3) && !!this.languagesWhereDefault[e3.toLocaleLowerCase()]; + } + resetLanguageProperties() { + this.languages = {}, this.languagesWhereDefault = {}, this.languagesNoRegion = {}; + } + updateItem(e3) { + if (e3) if (this._supportedLanguagesManager || (this._supportedLanguagesManager = i2(98442)), this.name = e3.name, this.isSecure = e3.isSecure, e3.languages) { + const t3 = n2.default.pick(e3.languages, (e4, t4) => !!this._supportedLanguagesManager.getLanguageEntry(t4)); + this.defaultsChanged = n2.default.some(t3, (e4, t4) => { + const i3 = t4.toLowerCase(); + return e4.isDefault && !this.languagesWhereDefault[i3] || !e4.isDefault && this.languagesWhereDefault[i3]; + }), this.resetLanguageProperties(), n2.default.each(t3, (e4, t4) => { + this.addLanguage(t4, e4.isDefault); + }); + } else a.error(`languages property not found in validation data for engine with id '${e3.id}'`); + } + } + t2.EngineViewModel = s; + }, 62320: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(11210)), r2 = i2(30801); + class o extends n2.default { + constructor(e3) { + super(e3), this._attributeNameValuePairs = this.coreFactory.createArchBaseValueContainer(e3.variables); + } + get _actionTypeId() { + return r2.setAttributesActionType; + } + get displayTypeName() { + return this._scriptingName; + } + addAttributeNameValuePair(e3, t3) { + return this._checkItemIsValidLiteralString(this._infoParm("nameExpression", "addAttributeNameValuePair"), e3, true), this._checkItemIsValidLiteralString(this._infoParm("valueExpression", "addAttributeNameValuePair"), t3, true), this._attributeNameValuePairs._addNameValueAssignment(e3, t3, false, false); + } + get isArchActionSetParticipantData() { + return true; + } + get attributeNameValuePairs() { + return this._attributeNameValuePairs; + } + } + t2.default = o; + }, 62326: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.async = t2.asyncScheduler = void 0; + var n2 = i2(64772), r2 = i2(19533); + t2.asyncScheduler = new r2.AsyncScheduler(n2.AsyncAction), t2.async = t2.asyncScheduler; + }, 62416: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.getAllPromoteExternalContactFailureReasons = t2.getPromoteExternalContactFailureReasons = void 0; + const n2 = i2(31635).__importDefault(i2(92140)), r2 = { actionInvocationLimitExceeded: "ActionInvocationLimitExceeded", externalContactAlreadyCurated: "ExternalContactAlreadyCurated", generalError: "GeneralError", invalidExternalContact: "InvalidExternalContact" }, o = [r2.generalError]; + t2.getPromoteExternalContactFailureReasons = n2.default.uniq(o.concat([r2.actionInvocationLimitExceeded, r2.externalContactAlreadyCurated, r2.invalidExternalContact])), t2.getAllPromoteExternalContactFailureReasons = r2; + }, 62446: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(25446)); + class r2 extends n2.default { + get displayTypeName() { + return "ArchPromptUser"; + } + get isArchPromptUser() { + return true; + } + } + t2.default = r2; + }, 62478: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.FindLanguageSkillActionModel = void 0; + const n2 = i2(49574), r2 = i2(30801); + class o extends n2.BaseFindSystemObjectByNameActionModel { + constructor(e3) { + super(e3), this.__type = o.__type; + } + } + t2.FindLanguageSkillActionModel = o, o.__type = r2.findLanguageSkillActionType, o.registerType(); + }, 62527: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(54063)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "externalLineIdCollection"; + } + get displayTypeName() { + return "ArchValueExternalLineIdCollection"; + } + get isArchValueExternalLineIdCollection() { + return true; + } + } + t2.default = r2; + }, 62532: (e2, t2, i2) => { + function n2() { + n2.baseConstructor.apply(this, arguments); + } + i2(11475).extend(n2, "AssignedCustomerIntentVariable", true), e2.exports = n2; + }, 62560: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.isObservable = void 0; + var n2 = i2(48051), r2 = i2(10281); + t2.isObservable = function(e3) { + return !!e3 && (e3 instanceof n2.Observable || r2.isFunction(e3.lift) && r2.isFunction(e3.subscribe)); + }; + }, 62613: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.GroupedFlowService = void 0; + const n2 = i2(31635).__importStar(i2(36781)), r2 = i2(4738); + class o extends r2.GroupedBaseService { + constructor() { + super(); + const e3 = (e4) => { + this._destroyGroup(e4); + }; + n2.serviceListen(n2.cleanUpFlow, e3), n2.serviceListen(n2.flowLoadFailed, e3); + } + _getGroupByIdentifier(e3) { + if (e3 && e3.isFlowViewModel) return e3.id; + } + _getGroupByObjectFromObjectInGroup(e3) { + return e3.parentFlow; + } + } + t2.GroupedFlowService = o; + }, 62778: (e2, t2, i2) => { + const { globalTypes: n2 } = i2(14394); + function r2(e3, t3) { + r2.baseConstructor.call(this, e3, t3); + } + i2(40894).extend(r2), Object.defineProperties(r2.prototype, { _determineType: { value: function() { + return n2.string; + } }, enumValues: { get: function() { + return this.model.type.enum; + } } }), e2.exports = r2; + }, 62829: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.actionDefs = void 0, t2._getActionTypeMap = function() { + return m; + }, t2.registerAction = function(e3) { + d.ParameterValidator.expectNodeInformation(e3, () => u.ParameterInfo.createFunctionParameter(_, "registerAction", "actionNodeInfo")), d.ParameterValidator.expectObject(e3.actionClass, () => u.ParameterInfo.createFunctionParameter(_, "registerAction", "actionNodeInfo.actionClass")), d.ParameterValidator.expectString(e3.typeId, () => u.ParameterInfo.createFunctionParameter(_, "registerAction", "actionNodeInfo.typeId")), h[e3.typeId] = e3, m[e3.typeId] = e3.actionClass; + }, t2.unregisterAction = function(e3) { + delete h[e3], delete m[e3], delete g[e3]; + }, t2.registerActionIntoCategory = function(e3) { + d.ParameterValidator.expectNodeInformation(e3, () => u.ParameterInfo.createFunctionParameter(_, "registerActionIntoCategory", "actionNodeInfo")), d.ParameterValidator.expectObject(e3.actionCategory, () => u.ParameterInfo.createFunctionParameter(_, "registerActionIntoCategory", "actionNodeInfo.actionCategory")), d.ParameterValidator.expectObject(e3.actionClass, () => u.ParameterInfo.createFunctionParameter(_, "registerActionIntoCategory", "actionNodeInfo.actionClass")), d.ParameterValidator.expectString(e3.typeId, () => u.ParameterInfo.createFunctionParameter(_, "registerActionIntoCategory", "actionNodeInfo.typeId")), g[e3.typeId] = e3.actionCategory, e3.actionCategory.addActionClass(e3.actionClass); + }, t2.registerReusableObject = function(e3) { + d.ParameterValidator.expectNodeInformation(e3, () => u.ParameterInfo.createFunctionParameter(_, "registerReusableObject", "reusableObjectNodeInfo")), d.ParameterValidator.expectObject(e3.actionClass, () => u.ParameterInfo.createFunctionParameter(_, "registerAction", "reusableObjectNodeInfo.actionClass")), d.ParameterValidator.expectString(e3.typeId, () => u.ParameterInfo.createFunctionParameter(_, "registerAction", "reusableObjectNodeInfo.typeId")), h[e3.typeId] = e3, m[e3.typeId] = e3.actionClass; + }, t2.registerActionCategory = function(e3) { + f.push(e3); + }, t2.getGuxIcon = function(e3) { + if (!e3) return ""; + if (e3.isMenuChoice) { + if (!e3.action) return ""; + e3 = e3.action; + } + if (e3.nodeGuxIcon) return e3.nodeGuxIcon; + const t3 = (function(e4) { + var t4, i3; + return (null === (t4 = null == e4 ? void 0 : e4.info) || void 0 === t4 ? void 0 : t4.category) ? e4.info.category : g[null === (i3 = null == e4 ? void 0 : e4.info) || void 0 === i3 ? void 0 : i3.typeId]; + })(e3); + return (null == t3 ? void 0 : t3.guxIcon) ? t3.guxIcon : l.default.unknown.gux; + }, t2.createActionWithModel = T, t2.getActionConstructor = function(e3) { + return e3 ? m[e3.__type] : null; + }, t2.createAction = function(e3, t3, i3) { + const n3 = (function(e4, t4) { + const i4 = p[e4]; + if (!i4) return null; + const n4 = new i4(t4); + if (!t4) { + n4.hasOwnProperty("id") && (n4.id = (0, a.uuid)()); + const t5 = h[e4]; + n4.name = t5.name; + } + return n4; + })(e3, i3), r3 = T(t3, n3); + return r3.setNewInstanceDefaults && r3.setNewInstanceDefaults(), r3.initializeDesignTime(), r3; + }, t2.getInfo = function(e3) { + return h[e3]; + }, t2.getFirstAction = function(e3, t3, i3, n3) { + const r3 = o.default.findWhere(f, { id: e3 }); + if (!r3) return null; + for (let e4 = 0; e4 < r3.actions.length; e4++) if (r3.actions[e4].info.getAvailability(t3, i3, n3)) return r3.actions[e4]; + }, t2._processBootstrapData = y; + const n2 = i2(31635), r2 = i2(17604), o = n2.__importDefault(i2(92140)), a = i2(9456), s = n2.__importStar(i2(12847)), l = n2.__importDefault(i2(61864)), u = i2(55909), d = i2(33951), c = i2(74359), p = i2(43096), _ = "NodeManager", h = {}, m = {}, g = {}, f = []; + function T(e3, t3, i3) { + if (!t3) return null; + const n3 = m[t3.__type]; + if (!n3) throw new TypeError((0, r2.sprintf)("Invalid action model for action '%s'", t3.name)); + const a2 = new n3(e3, t3); + return o.default.isArray(i3) && t3.__notApplicablePaths && i3.push(...t3.__notApplicablePaths), delete t3.__notApplicablePaths, a2; + } + function y(e3) { + const t3 = {}; + o.default.each(e3.actions, function(e4) { + var i3; + if (e4 && e4.id) { + const n3 = h[e4.id]; + n3 && (n3.loadServerData(e4), t3[n3.typeId] = (null === (i3 = n3.supportedFlowTypes) || void 0 === i3 ? void 0 : i3.join(", ")) || "none"); + } + }), o.default.each(h, function(i3) { + i3.needsServerInfo && !e3.actions[i3.typeId] && (t3[i3.typeId] = "none!!"); + }), s.table("Bootstrap action data support", t3); + } + t2.actionDefs = h, c.bootstrapDataLoaded.then(function(e3) { + y(e3); + }); + }, 62893: function(e2, t2, i2) { + "use strict"; + var n2 = this && this.__values || function(e3) { + var t3 = "function" == typeof Symbol && Symbol.iterator, i3 = t3 && e3[t3], n3 = 0; + if (i3) return i3.call(e3); + if (e3 && "number" == typeof e3.length) return { next: function() { + return e3 && n3 >= e3.length && (e3 = void 0), { value: e3 && e3[n3++], done: !e3 }; + } }; + throw new TypeError(t3 ? "Object is not iterable." : "Symbol.iterator is not defined."); + }; + Object.defineProperty(t2, "__esModule", { value: true }), t2.windowCount = void 0; + var r2 = i2(76808), o = i2(65212), a = i2(17214); + t2.windowCount = function(e3, t3) { + void 0 === t3 && (t3 = 0); + var i3 = t3 > 0 ? t3 : e3; + return o.operate(function(t4, o2) { + var s = [new r2.Subject()], l = 0; + o2.next(s[0].asObservable()), t4.subscribe(a.createOperatorSubscriber(o2, function(t5) { + var a2, u; + try { + for (var d = n2(s), c = d.next(); !c.done; c = d.next()) c.value.next(t5); + } catch (e4) { + a2 = { error: e4 }; + } finally { + try { + c && !c.done && (u = d.return) && u.call(d); + } finally { + if (a2) throw a2.error; + } + } + var p = l - e3 + 1; + if (p >= 0 && p % i3 === 0 && s.shift().complete(), ++l % i3 === 0) { + var _ = new r2.Subject(); + s.push(_), o2.next(_.asObservable()); + } + }, function() { + for (; s.length > 0; ) s.shift().complete(); + o2.complete(); + }, function(e4) { + for (; s.length > 0; ) s.shift().error(e4); + o2.error(e4); + }, function() { + s = null; + })); + }); + }; + }, 62896: (e2, t2, i2) => { + const n2 = i2(48584); + function r2() { + r2.baseConstructor.apply(this, arguments); + } + i2(22124).extend(r2, "DialogflowAgentList"), Object.defineProperties(r2.prototype, { entities: { enumerable: true, get: function() { + return this._entities; + }, set: function(e3) { + this._entities = this.reviveArray(e3, n2); + } } }), e2.exports = r2; + }, 62902: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.digitalBotConnectorManager = t2.DigitalBotConnectorManager = void 0; + const n2 = i2(31635), r2 = n2.__importDefault(i2(92140)), o = n2.__importStar(i2(35295)), a = n2.__importStar(i2(1360)), s = n2.__importStar(i2(24032)), l = i2(33143), u = n2.__importDefault(i2(47532)), d = i2(30801), c = i2(57467), p = i2(81801), _ = i2(47957), h = i2(75601), m = i2(27862); + class g extends u.default { + get requiredAuth() { + return p.externalAuthorizations.authStrings.botConnectorView; + } + get dependencyType() { + return m.DigitalBotConnector; + } + constructor() { + super(), this.topic = s.getTopic("DigitalBotConnectorManager"), this.apiCallList = o.getDigitalBotConnectorBots, this.apiCallSingle = o.getDigitalBotConnectorBot, this._rawServerCache = {}, this.actionPropertyForUsageSearch = "bot", this.actionsForUsageSearch = [d.digitalBotConnectorActionType], this.className = "DigitalBotConnectorManager", this.defaultMatchingStyle = a.exactMatch, this.dependencyContext = _.botConnector.digitalBotName, this.searchField = "name", this.securityError = true, this.suppressSearch = true, this.uiMetadataSectionName = "digitalBotConnector", this._initialize(); + } + areServerItemViewModelsEqual(e3, t3) { + return e3 === t3 || r2.default.isEqual(e3, t3); + } + createAndAddBot(e3, t3, i3, n3) { + const r3 = new h({ id: e3, name: t3, botCompositeTag: i3, integrationId: n3 }); + this.addItem(r3); + } + _createItemViewModel(e3) { + return new l.BotConnectorViewModel(e3); + } + get _networkModel() { + return h; + } + _registerWithManifest() { + } + manifestFilter() { + return false; + } + getBotIntegrationForBotCategory(e3) { + if (!r2.default.isString(e3)) return this.topic.error("Object passed to getBotIntegrationForBotCategory was not a string: " + e3), null; + const t3 = this.items[e3.toLowerCase()]; + return t3 ? c.digitalBotConnectorIntegrationManager.getItem(t3.integrationId) : null; + } + getItem(e3, t3) { + const i3 = t3, n3 = r2.default.isFunction(null == i3 ? void 0 : i3.getUniqueBotCategoryId) ? i3.getUniqueBotCategoryId() : e3; + return super.getItem(n3); + } + } + t2.DigitalBotConnectorManager = g, t2.digitalBotConnectorManager = new g(); + }, 62905: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(81574)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "journeyCampaign"; + } + get content() { + } + get medium() { + } + get name() { + } + get source() { + } + get term() { + } + get clickId() { + } + get network() { + } + get displayTypeName() { + return "ArchValueJourneyCampaign"; + } + get isArchValueJourneyCampaign() { + return true; + } + } + t2.default = r2; + }, 62957: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = i2(26847), o = n2.__importDefault(i2(57382)); + class a extends o.default { + constructor(e3) { + super(e3); + } + get displayTypeName() { + return "ArchBaseActionWithOutputFailure"; + } + get isArchBaseActionWithOutputFailure() { + return true; + } + get outputFailure() { + return this._getOutputById(r2.outputIds.failure, true); + } + get failureOutputs() { + if (this._getCoreViewModel().errorBindings) return this._failureOutputsCache || (this._failureOutputsCache = this.coreFactory.createArchBaseValueContainer(this._getCoreViewModel().errorBindings)), this._failureOutputsCache; + } + } + t2.default = a; + }, 62974: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.botFlowErrorEventHandlingSequences = void 0; + const n2 = i2(31635), r2 = i2(28562), o = i2(80295), a = i2(64306); + class s extends a.BaseBotSettingsSequence { + get errorHandlingErrorEventHandoverSequence() { + const e3 = this.generateLanguageSequencesDefaultSequence("errorHandlingErrorEventHandover"), t3 = { digitalbot: { builderId: r2.builderIds.parts.markdownCommunication, languageSequences: e3 }, voicesurvey: { builderId: r2.builderIds.parts.genericCommunication, languageSequences: this.generateLanguageSequencesDefaultSequence("errorHandlingErrorEventHandoverVoiceSurvey") } }; + return this.generateLanguageSequenceConfig("ErrorHandlingErrorEventHandover", r2.builderIds.parts.genericCommunication, e3, t3); + } + get errorHandlingRecognitionEventHandoverSequence() { + const e3 = this.generateLanguageSequencesDefaultSequence("errorHandlingRecognitionEventHandover"), t3 = { digitalbot: { builderId: r2.builderIds.parts.markdownCommunication, languageSequences: e3 }, voicesurvey: { builderId: r2.builderIds.parts.genericCommunication, languageSequences: this.generateLanguageSequencesDefaultSequence("errorHandlingRecognitionEventHandoverVoiceSurvey") } }; + return this.generateLanguageSequenceConfig("ErrorHandlingRecognitionEventHandover", r2.builderIds.parts.genericCommunication, e3, t3); + } + get errorHandlingAgentEscalationConfirmationSequence() { + const e3 = this.generateLanguageSequencesDefaultSequence("errorHandlingAgentEscalationConfirmation"), t3 = { digitalbot: { builderId: r2.builderIds.parts.markdownCommunication, languageSequences: e3 } }; + return this.generateLanguageSequenceConfig("ErrorHandlingAgentEscalationConfirmation", r2.builderIds.parts.genericCommunication, e3, t3); + } + get errorHandlingAgentEscalationHandoverSequence() { + const e3 = this.generateLanguageSequencesDefaultSequence("errorHandlingAgentEscalationHandover"), t3 = { digitalbot: { builderId: r2.builderIds.parts.markdownCommunication, languageSequences: e3 } }; + return this.generateLanguageSequenceConfig("ErrorHandlingAgentEscalationHandover", r2.builderIds.parts.genericCommunication, e3, t3); + } + } + n2.__decorate([(0, o.enumerable)(true), n2.__metadata("design:type", Object), n2.__metadata("design:paramtypes", [])], s.prototype, "errorHandlingErrorEventHandoverSequence", null), n2.__decorate([(0, o.enumerable)(true), n2.__metadata("design:type", Object), n2.__metadata("design:paramtypes", [])], s.prototype, "errorHandlingRecognitionEventHandoverSequence", null), n2.__decorate([(0, o.enumerable)(true), n2.__metadata("design:type", Object), n2.__metadata("design:paramtypes", [])], s.prototype, "errorHandlingAgentEscalationConfirmationSequence", null), n2.__decorate([(0, o.enumerable)(true), n2.__metadata("design:type", Object), n2.__metadata("design:paramtypes", [])], s.prototype, "errorHandlingAgentEscalationHandoverSequence", null), t2.botFlowErrorEventHandlingSequences = new s(); + }, 62979: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = i2(80295), o = n2.__importDefault(i2(96169)), a = i2(84050); + class s extends a.NameIdDescriptionModel { + constructor(e3) { + var t3, i3; + super(e3), (0, r2.makeUnenumerable)(this, "_tableId"), (0, r2.makeUnenumerable)(this, "_name"), (0, r2.makeUnenumerable)(this, "_description"), (0, r2.makeUnenumerable)(this, "_publishedVersion"), (0, r2.makeUnenumerable)(this, "_status"), (0, r2.makeUnenumerable)(this, "_dateModified"), (0, r2.makeUnenumerable)(this, "_datePublished"), (0, r2.makeUnenumerable)(this, "_dateCreated"), (0, r2.makeUnenumerable)(this, "_publishedContract"), !this._publishedContract && (null == e3 ? void 0 : e3.schemas) && (this._publishedContract = new o.default(e3.schemas), (null === (t3 = e3.schemas) || void 0 === t3 ? void 0 : t3.input) && (this._publishedContract.executionInputSchema = e3.schemas.input), (null === (i3 = e3.schemas) || void 0 === i3 ? void 0 : i3.output) && (this._publishedContract.executionOutputSchema = e3.schemas.output)); + } + get id() { + return this._tableId; + } + set id(e3) { + this._tableId = e3; + } + get tableId() { + return this._tableId; + } + set tableId(e3) { + this._tableId = e3; + } + get publishedVersion() { + return this._publishedVersion; + } + set publishedVersion(e3) { + this._publishedVersion = e3; + } + get status() { + return this._status; + } + set status(e3) { + this._status = e3; + } + get dateCreated() { + return this._dateCreated; + } + set dateCreated(e3) { + this._dateCreated = e3; + } + get dateModified() { + return this._dateModified; + } + set dateModified(e3) { + this._dateModified = e3; + } + get datePublished() { + return this._datePublished; + } + set datePublished(e3) { + this._datePublished = e3; + } + get publishedContract() { + return this._publishedContract; + } + set publishedContract(e3) { + this._publishedContract = this.reviveItem(e3, o.default); + } + } + t2.default = s, n2.__decorate([(0, r2.enumerable)(true), n2.__metadata("design:type", String), n2.__metadata("design:paramtypes", [String])], s.prototype, "tableId", null), n2.__decorate([(0, r2.enumerable)(true), n2.__metadata("design:type", Object), n2.__metadata("design:paramtypes", [Object])], s.prototype, "publishedContract", null); + }, 63003: (e2, t2, i2) => { + "use strict"; + const n2 = i2(31635), r2 = i2(12179), o = n2.__importDefault(i2(97891)), a = n2.__importDefault(i2(5478)), s = i2(49706), l = i2(45077), u = i2(21305), d = i2(80428), c = i2(82632), p = i2(47957); + class _ extends a.default { + constructor(e3, t3) { + super(e3.parentFlow, e3), this._loadModel(t3); + } + static get managedProperties() { + return [{ label: p.skillExpressionFilters.skillExpressionFiltersLabel, property: "skillExpressionFilters", options: u.ExpressionTypeJsonOptions.create((e3) => e3.setAsInput().setIsOptional(false).setIsCollection(true).setMinItems(c.setSkillExpressionFilters.skillExpressionFilters.minItems).setMaxItems(c.setSkillExpressionFilters.skillExpressionFilters.maxItems).setIsCustomJsonType(true).setIninTestingField("skillExpressionFilters").setDescriptionInfo(null, p.skillExpressionFilters.setSkillExpressionFiltersTooltipInfo)), type: d.expressionTypeNames.skillExpressionFilter, typeOfJsonShouldBeCustom: true, yamlOptions: _.createYamlOptions("skillExpressionFilters", (e3) => e3.setPropertyName("skillExpressionFilters")) }]; + } + _getPossibleErrors() { + return l.getSetSkillExpressionFiltersFailureReasons; + } + } + _.info = o.default.createActionInfo({ actionClass: _, canBeInTask: true, helpTopic: r2.helpTopics.actions.setSkillExpressionFilters, modelClass: s.SetSkillExpressionFiltersActionModel, name: p.actions.setSkillExpressionFilters, scriptingName: "ArchActionSetSkillExpressionFilters" }), t2.A = _; + }, 63005: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importDefault(i2(92140)), o = i2(80295), a = n2.__importDefault(i2(74986)), s = i2(55909), l = i2(80428), u = i2(33951), d = n2.__importDefault(i2(65302)), c = i2(47957); + class p extends a.default { + constructor() { + super(), this._disallowZero = false, (0, o.makeUnenumerable)(this, "_disallowZero"); + } + static createMinMax(e3, t3, i3, n3) { + const o2 = new p(); + return r2.default.isUndefined(e3) || o2.setMinDec(e3).setMinValInclusive(true === t3), r2.default.isUndefined(i3) || o2.setMaxDec(i3).setMaxValInclusive(true === n3), o2; + } + _setFromFacets(e3) { + super._setFromFacets(e3), this._setFacetIfSet(this.setMaxDec, e3.maxVal, "_maxVal"), this._setFacetIfSet(this.setMinDec, e3.minVal, "_minVal"), this._setFacetIfSet(this.setDecimalPlaces, e3.decimalPlaces, "_decimalPlaces"), this._setFacetIfSet(this.setDisallowZero, e3.disallowZero, "_disallowZero"); + } + get className() { + return "DecimalFacets"; + } + get isDecimalFacets() { + return true; + } + addDescriptionInfo(e3, t3) { + super.addDescriptionInfo(e3, t3), true === this.disallowZero && t3.push(c.expressionsHelp.parameters.notAllowedZero); + } + get hasDescriptionInfo() { + return !!super.hasDescriptionInfo || this.disallowZero; + } + setMaxDec(e3) { + return this._maxVal = u.ParameterValidator.expectNumber(e3, () => s.ParameterInfo.createFunctionParameter(this.className, "setMaxDec", "value")), this; + } + setMinDec(e3) { + return this._minVal = u.ParameterValidator.expectNumber(e3, () => s.ParameterInfo.createFunctionParameter(this.className, "setMinDec", "value")), this; + } + get decimalPlaces() { + return this._decimalPlaces; + } + set decimalPlaces(e3) { + this._decimalPlaces = u.ParameterValidator.expectNumber(e3, () => s.ParameterInfo.createFunctionParameter(this.className, "setDecimalPlaces", "value")); + } + setDecimalPlaces(e3) { + return this.decimalPlaces = e3, this; + } + get disallowZero() { + return this._disallowZero; + } + set disallowZero(e3) { + this._disallowZero = u.ParameterValidator.expectBool(e3, () => s.ParameterInfo.createPropertySet(this.className, "disallowZero", "value")); + } + setDisallowZero(e3) { + return this.disallowZero = e3, this; + } + _facetGetExpressionItemLitValue(e3) { + return e3.getLitAsFloat(); + } + _facetGetExpressionType() { + return d.default.getGlobalTypeGroup().getType(l.expressionTypeNames.decimal, this.isCollection); + } + } + t2.default = p, n2.__decorate([(0, o.enumerable)(true), n2.__metadata("design:type", Number), n2.__metadata("design:paramtypes", [Object])], p.prototype, "decimalPlaces", null), n2.__decorate([(0, o.enumerable)(true), n2.__metadata("design:type", Boolean), n2.__metadata("design:paramtypes", [Object])], p.prototype, "disallowZero", null); + }, 63007: (e2, t2, i2) => { + const n2 = i2(28730), r2 = i2(7401), { returnToAgentActionType: o } = i2(30801); + function a() { + Object.defineProperties(this, { _reasonCode: { writable: true } }), a.baseConstructor.apply(this, arguments); + } + n2.extend(a, o, true), Object.defineProperties(a.prototype, { pasteReIdOrRename: { value: function(e3) { + a._super.pasteReIdOrRename.apply(this, arguments), this.reasonCode.pasteReIdOrRename(e3); + } }, pasteResolveOldToNewValues: { value: function(e3) { + a._super.pasteResolveOldToNewValues.apply(this, arguments), this.reasonCode.pasteResolveOldToNewValues(e3); + } }, reasonCode: { enumerable: true, get: function() { + return this._reasonCode; + }, set: function(e3) { + this._reasonCode = this.reviveItem(e3, r2); + } } }), e2.exports = a; + }, 63029: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.BaseOptionsWithOptional = void 0; + const n2 = i2(31635), r2 = i2(80295), o = i2(42433), a = i2(55909), s = i2(33951); + class l extends o.BaseOptions { + constructor() { + super(), this._isOptional = false, (0, r2.makeUnenumerable)(this, "_isOptional"); + } + _setFromOptions(e3) { + super._setFromOptions(e3), this._setOptionIfSet(this.setIsOptional, e3.isOptional, "_isOptional"); + } + get className() { + return "BaseOptionsWithOptional"; + } + get isBaseOptionsWithOptional() { + return true; + } + get isOptional() { + return this._isOptional; + } + set isOptional(e3) { + this._isOptional = s.ParameterValidator.expectBool(e3, () => a.ParameterInfo.createPropertySet(this.className, "isOptional", "value")); + } + setIsOptional(e3) { + return this.isOptional = e3, this; + } + } + t2.BaseOptionsWithOptional = l, n2.__decorate([(0, r2.enumerable)(true), n2.__metadata("design:type", Boolean), n2.__metadata("design:paramtypes", [Object])], l.prototype, "isOptional", null); + }, 63145: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = i2(96618), o = n2.__importDefault(i2(98114)), a = n2.__importDefault(i2(61864)), s = n2.__importStar(i2(81858)), l = i2(12179), u = i2(14394), d = n2.__importDefault(i2(82619)), c = n2.__importDefault(i2(35050)), p = n2.__importDefault(i2(91935)), _ = n2.__importDefault(i2(32756)), h = n2.__importDefault(i2(22599)), m = n2.__importDefault(i2(96727)), g = i2(73062), f = i2(28562), T = i2(69149), y = n2.__importDefault(i2(39041)), S = i2(16958); + class A { + constructor() { + Object.defineProperties(this, { _builderDefinitions: { value: {} } }); + } + initialize() { + y.default.addBuilderDef(new d.default({ id: f.builderIds.parts.email, name: S.builders.partsBooleanEmail.name, description: S.builders.partsBooleanEmail.description, generators: { noOrDisabledPartsGenerator: m.default.falseLiteralGenerator, expressionGenerator: h.default.create().addLogicalAndParmGenerationBucket("parts_and", true).verifySprintfStringAndInitialize("") }, version: 1, resultExpressionType: u.globalTypes.boolean, restrictToFlowTypeOrTypes: r2.flowTypes.flowTypeInboundEmail, categoryIdentifierOrIdentifiers: g.builderCategoryIds.email, builderPartDefCategoryIdentifierOrIdentifiers: g.builderCategoryIds.email, icon: a.default.emailEnvelope, helpTopic: null })), y.default.addBuilderDef(new d.default({ id: f.builderIds.parts.genericBoolean, name: S.builders.partsGenericBoolean.name, description: S.builders.partsGenericBoolean.description, generators: { noOrDisabledPartsGenerator: m.default.falseLiteralGenerator, expressionGenerator: h.default.create().addLogicalAndParmGenerationBucket("parts_and", true).verifySprintfStringAndInitialize("") }, minMaxInfo: { warnOnNoParts: true }, version: 1, resultExpressionType: u.globalTypes.boolean, categoryIdentifierOrIdentifiers: null, builderPartDefCategoryIdentifierOrIdentifiers: null, icon: null, helpTopic: l.helpTopics.builders.boolean })), y.default.addBuilderDef(new p.default({ id: f.builderIds.parts.genericCommunication, name: S.builders.partsGenericCommunication.name, description: S.builders.partsGenericCommunication.description, generators: { containerPartsGenerator: h.default.create().addFuncCall("MakeCommunication").addFuncCallParmGenerationBucket("make_communication", true).addFuncCallEnd().verifySprintfStringAndInitialize("MakeCommunication()"), noOrDisabledPartsGenerator: m.default.notSetCommunicationGenerator }, version: 1, minMaxInfo: { warnOnNoParts: true }, resultExpressionType: u.globalTypes.communication, builderPartTypes: [u.globalTypes.communication], restrictToFlowTypeOrTypes: r2.flowTypes.flowTypesAllCicero, categoryIdentifierOrIdentifiers: null, builderPartDefCategoryIdentifierOrIdentifiers: null, icon: a.default.complex, helpTopic: l.helpTopics.builders.communication, builderManagesContainerOrder: true })), y.default.addBuilderDef(new p.default({ id: f.builderIds.parts.markdownCommunication, name: S.builders.partMarkdownCommunication.name, description: S.builders.partMarkdownCommunication.description, generators: { containerPartsGenerator: h.default.create().addFuncCall("MakeCommunication").addFuncCallParmGenerationBucket("make_communication", true).addFuncCallEnd().verifySprintfStringAndInitialize("MakeCommunication()"), noOrDisabledPartsGenerator: m.default.emptyStringLiteralGenerator }, version: 1, minMaxInfo: { maxBuilderPartCount: 1, minBuilderPartCount: 1, fixedBuilderPart: true }, resultExpressionType: u.globalTypes.communication, builderPartTypes: [u.globalTypes.communication], defaultBuilderPartId: T.builderPartIds.communication.markdown, restrictToFlowTypeOrTypes: r2.flowTypes.flowTypeDigitalBot, categoryIdentifierOrIdentifiers: null, builderPartDefCategoryIdentifierOrIdentifiers: g.builderCategoryIds.markdown, icon: a.default.string, helpTopic: l.helpTopics.builders.communication, builderManagesContainerOrder: true })), y.default.addBuilderDef(new _.default({ id: f.builderIds.parts.genericString, name: S.builders.partsGenericString.name, description: S.builders.partsGenericString.description, generators: A.genericStringAndLabelStringBuilderDefGenerators, minMaxInfo: { warnOnNoParts: true }, version: 1, resultExpressionType: u.globalTypes.string, restrictToFlowTypeOrTypes: o.default.getFlowTypesThatSupportLanguages(), categoryIdentifierOrIdentifiers: null, builderPartDefCategoryIdentifierOrIdentifiers: null, icon: null, helpTopic: l.helpTopics.builders.string })), y.default.addBuilderDef(new _.default({ id: f.builderIds.parts.labelString, name: S.builders.partsLabelString.name, description: S.builders.partsLabelString.description, generators: A.genericStringAndLabelStringBuilderDefGenerators, minMaxInfo: { warnOnNoParts: true }, version: 1, resultExpressionType: u.globalTypes.string, restrictToFlowTypeOrTypes: r2.flowTypes.flowTypeDigitalBot, categoryIdentifierOrIdentifiers: [g.builderCategoryIds.labelString, g.builderCategoryIds.toolbar], builderPartDefCategoryIdentifierOrIdentifiers: null, icon: null, helpTopic: l.helpTopics.builders.string })), y.default.addBuilderDef(new _.default({ id: f.builderIds.parts.markdownString, name: S.builders.partMarkdownString.name, description: S.builders.partMarkdownString.description, generators: { containerPartsGenerator: h.default.create().addFuncCall("Append").addFuncCallParmGenerationBucket("append", true).addFuncCallEnd().verifySprintfStringAndInitialize("Append()").setAboutToAddGenerationCallback((e3, t3, i3, n3) => { + if (!n3 || "append" !== t3 || 0 === i3.length) return; + const r3 = i3[i3.length - 1]; + r3 && (r3.willGenerateNotSetOrStringLiteral ? e3.addGenerationToBucket(m.default.singleSpaceStringLiteralGenerator.createGeneration()) : e3.addGenerationToBucket(m.default.lastGenNotSetOrEmptySpaceSepGenerator.createGeneration())); + }), noOrDisabledPartsGenerator: m.default.emptyStringLiteralGenerator }, minMaxInfo: { maxBuilderPartCount: 1, minBuilderPartCount: 1, fixedBuilderPart: true, warnOnNoParts: true }, version: 1, defaultBuilderPartId: T.builderPartIds.string.markdown, resultExpressionType: u.globalTypes.string, restrictToFlowTypeOrTypes: r2.flowTypes.flowTypeDigitalBot, categoryIdentifierOrIdentifiers: null, builderPartDefCategoryIdentifierOrIdentifiers: g.builderCategoryIds.markdown, icon: a.default.string, helpTopic: null, builderManagesContainerOrder: true })), y.default.addBuilderDef(new _.default({ id: f.builderIds.parts.genericAudio, name: S.builders.partsGenericAudio.name, description: S.builders.partsGenericAudio.description, generators: { containerPartsGenerator: h.default.create().addFuncCall("Append").addFuncCallParmGenerationBucket("append", true).addFuncCallEnd().verifySprintfStringAndInitialize("Append()"), noOrDisabledPartsGenerator: m.default.notSetAudioGenerator }, minMaxInfo: { warnOnNoParts: true }, version: 1, resultExpressionType: u.globalTypes.audio, restrictToFlowTypeOrTypes: r2.flowTypes.flowTypesAllVxmlgen, categoryIdentifierOrIdentifiers: null, builderPartDefCategoryIdentifierOrIdentifiers: null, icon: null, helpTopic: l.helpTopics.builders.audio, requiredFeatureToggle: s.archExpressionBuilders })), y.default.addBuilderDef(new c.default({ id: f.builderIds.parts.genericDateTime, name: S.builders.genericDateTime.name, description: S.builders.genericDateTime.description, generators: { noOrDisabledPartsGenerator: m.default.notSetDateTimeGenerator }, version: 1, resultExpressionType: u.globalTypes.dateTime, categoryIdentifierOrIdentifiers: null, builderPartDefCategoryIdentifierOrIdentifiers: null, icon: null, helpTopic: null, requiredFeatureToggle: s.archExpressionBuilders })), y.default.addBuilderDef(new c.default({ id: f.builderIds.parts.genericDuration, name: S.builders.genericDuration.name, description: S.builders.genericDuration.description, generators: { noOrDisabledPartsGenerator: m.default.notSetDurationGenerator }, version: 1, resultExpressionType: u.globalTypes.duration, restrictToFlowTypeOrTypes: r2.flowTypes.flowTypesAllCicero, categoryIdentifierOrIdentifiers: null, builderPartDefCategoryIdentifierOrIdentifiers: null, icon: null, helpTopic: null })), y.default.addBuilderDef(new c.default({ id: f.builderIds.parts.genericPrompt, name: S.builders.partsGenericPrompt.name, description: S.builders.partsGenericPrompt.description, generators: { noOrDisabledPartsGenerator: m.default.notSetPromptGenerator }, version: 1, resultExpressionType: u.globalTypes.prompt, categoryIdentifierOrIdentifiers: null, builderPartDefCategoryIdentifierOrIdentifiers: null, icon: null, helpTopic: null })), y.default.addBuilderDef(new c.default({ id: f.builderIds.parts.genericImage, name: S.builders.genericImage.name, description: S.builders.genericImage.description, generators: { noOrDisabledPartsGenerator: m.default.notSetImageGenerator }, version: 1, resultExpressionType: u.globalTypes.image, categoryIdentifierOrIdentifiers: null, builderPartDefCategoryIdentifierOrIdentifiers: null, icon: a.default.image, helpTopic: l.helpTopics.builders.image })), y.default.addBuilderDef(new c.default({ id: f.builderIds.parts.genericVideo, name: S.builders.genericVideo.name, description: S.builders.genericVideo.description, generators: { noOrDisabledPartsGenerator: m.default.notSetVideoGenerator }, version: 1, resultExpressionType: u.globalTypes.video, categoryIdentifierOrIdentifiers: null, builderPartDefCategoryIdentifierOrIdentifiers: null, icon: a.default.video, helpTopic: null })), y.default.addBuilderDef(new c.default({ id: f.builderIds.parts.genericAudio, name: S.builders.partsGenericAudio.name, description: S.builders.partsGenericAudio.description, generators: { noOrDisabledPartsGenerator: m.default.notSetAudioGenerator }, version: 1, resultExpressionType: u.globalTypes.audio, restrictToFlowTypeOrTypes: r2.flowTypes.flowTypesAllVxmlgen, categoryIdentifierOrIdentifiers: null, builderPartDefCategoryIdentifierOrIdentifiers: null, icon: null, helpTopic: l.helpTopics.builders.audio })), y.default.addBuilderDef(new c.default({ id: f.builderIds.parts.genericAgentScorePair, name: S.builders.genericAgentScorePair.name, description: S.builders.genericAgentScorePair.description, generators: { noOrDisabledPartsGenerator: m.default.notSetAgentScorePairGenerator }, version: 1, resultExpressionType: u.globalTypes.agentScorePair, categoryIdentifierOrIdentifiers: null, builderPartDefCategoryIdentifierOrIdentifiers: null, icon: null, helpTopic: null })), y.default.addBuilderDef(new c.default({ id: f.builderIds.parts.genericInteger, name: S.builders.genericInteger.name, description: S.builders.genericInteger.description, generators: { noOrDisabledPartsGenerator: m.default.notSetIntegerGenerator }, version: 1, resultExpressionType: u.globalTypes.integer, restrictToFlowTypeOrTypes: r2.flowTypes.flowTypesAllCicero, categoryIdentifierOrIdentifiers: null, builderPartDefCategoryIdentifierOrIdentifiers: null, icon: null, helpTopic: null })); + } + get className() { + return "BuilderDefsBootstrap"; + } + get isBuilderDefsBootstrap() { + return true; + } + static get genericStringAndLabelStringBuilderDefGenerators() { + return { containerPartsGenerator: h.default.create().addFuncCall("Trim").addFuncCall("Append").addFuncCallParmGenerationBucket("append", true).addFuncCallEnd().addFuncCallEnd().verifySprintfStringAndInitialize("Trim(Append())").setAboutToAddGenerationCallback((e3, t3, i3, n3) => { + if (!n3 || "append" !== t3 || 0 === i3.length) return; + const r3 = i3[i3.length - 1]; + r3 && (r3.willGenerateNotSetOrStringLiteral ? e3.addGenerationToBucket(m.default.singleSpaceStringLiteralGenerator.createGeneration()) : e3.addGenerationToBucket(m.default.lastGenNotSetOrEmptySpaceSepGenerator.createGeneration())); + }), noOrDisabledPartsGenerator: m.default.emptyStringLiteralGenerator }; + } + } + const N = new A(); + t2.default = N; + }, 63150: (e2, t2, i2) => { + "use strict"; + const n2 = i2(31635), r2 = n2.__importDefault(i2(92140)), o = i2(12457), a = n2.__importDefault(i2(5730)), s = i2(80428), l = i2(98364), u = i2(81516), d = n2.__importDefault(i2(4648)), c = i2(96618), p = i2(12179), _ = n2.__importDefault(i2(97891)), h = i2(82632), m = i2(88276), g = i2(47957); + class f extends a.default { + constructor(e3, t3) { + super(e3.parentFlow, e3), this._loadModel(t3); + } + getDetails() { + if (!this.messageBody) return null; + const e3 = [], t3 = []; + if (e3.push(g.sendResponse.sendBody), t3.push(this.messageBody.text), !this.messageBodyStyle.outOfService) { + e3.push(g.sendResponse.messageBodyStyleLabel); + let i3 = this.messageBodyStyle.text; + if (this.messageBodyStyle.isLiteralMode) { + const e4 = r2.default.find(m, { id: this.messageBodyStyle.text }); + i3 = e4 ? e4.displayString : g.sendResponse.noMessageBodyStyle; + } + t3.push(i3); + } + return new o.ActionDetails(e3, t3); + } + static get managedProperties() { + return [{ label: g.sendResponse.messageBodyStyleLabel, supportedFlowTypes: [c.flowTypes.flowTypeInboundChat], options: u.ExpressionTypeStringOptions.create((e3) => e3.setIninTestingField("messageBodyStyleExpression").setDefaultText("notice").setAllowModeExpression(true).setDescriptionInfo(g.sendResponse.messageBodyStyleLabel, g.sendResponse.messageBodyStyleDescription).facets.setAllowableValues(m)), property: "messageBodyStyle", type: s.expressionTypeNames.string }, { label: g.sendResponse.sendBody, options: u.ExpressionTypeStringOptions.create((e3) => e3.setDefaultToExpression(true).setIninTestingField("send-body").setDescriptionInfo(g.sendResponse.sendBody, g.sendResponse.sendBodyDescription).facets.setMinLength(1)), property: "messageBody", type: s.expressionTypeNames.string }, { label: g.responseAsset.responseAssetAttachmentsLabel, options: l.ExpressionTypeResponseAssetOptions.create((e3) => e3.setIninTestingField("send-attachments").setDescriptionInfo(g.responseAsset.responseAssetAttachmentsLabel, g.responseAsset.responseAssetAttachmentsDescription).setIsOptional(true).setIsCollection(true).setMaxItems(h.sendResponseAction.attachments.maxItems).setFeatureConfigName(d.default.cannedResponseAttachmentsFeature)), property: "attachments", type: s.expressionTypeNames.responseAsset }]; + } + } + f.info = _.default.createActionInfo({ actionClass: f, canBeInTask: true, helpTopic: p.helpTopics.actions.sendResponse, modelClass: i2(8538), name: g.actions.sendResponse, scriptingName: "ArchActionSendResponse" }), t2.A = f; + }, 63164: function(e2, t2, i2) { + !(function(e3) { + "use strict"; + e3.defineLocale("ko", { months: "1\uC6D4_2\uC6D4_3\uC6D4_4\uC6D4_5\uC6D4_6\uC6D4_7\uC6D4_8\uC6D4_9\uC6D4_10\uC6D4_11\uC6D4_12\uC6D4".split("_"), monthsShort: "1\uC6D4_2\uC6D4_3\uC6D4_4\uC6D4_5\uC6D4_6\uC6D4_7\uC6D4_8\uC6D4_9\uC6D4_10\uC6D4_11\uC6D4_12\uC6D4".split("_"), weekdays: "\uC77C\uC694\uC77C_\uC6D4\uC694\uC77C_\uD654\uC694\uC77C_\uC218\uC694\uC77C_\uBAA9\uC694\uC77C_\uAE08\uC694\uC77C_\uD1A0\uC694\uC77C".split("_"), weekdaysShort: "\uC77C_\uC6D4_\uD654_\uC218_\uBAA9_\uAE08_\uD1A0".split("_"), weekdaysMin: "\uC77C_\uC6D4_\uD654_\uC218_\uBAA9_\uAE08_\uD1A0".split("_"), longDateFormat: { LT: "A h:mm", LTS: "A h:mm:ss", L: "YYYY.MM.DD.", LL: "YYYY\uB144 MMMM D\uC77C", LLL: "YYYY\uB144 MMMM D\uC77C A h:mm", LLLL: "YYYY\uB144 MMMM D\uC77C dddd A h:mm", l: "YYYY.MM.DD.", ll: "YYYY\uB144 MMMM D\uC77C", lll: "YYYY\uB144 MMMM D\uC77C A h:mm", llll: "YYYY\uB144 MMMM D\uC77C dddd A h:mm" }, calendar: { sameDay: "\uC624\uB298 LT", nextDay: "\uB0B4\uC77C LT", nextWeek: "dddd LT", lastDay: "\uC5B4\uC81C LT", lastWeek: "\uC9C0\uB09C\uC8FC dddd LT", sameElse: "L" }, relativeTime: { future: "%s \uD6C4", past: "%s \uC804", s: "\uBA87 \uCD08", ss: "%d\uCD08", m: "1\uBD84", mm: "%d\uBD84", h: "\uD55C \uC2DC\uAC04", hh: "%d\uC2DC\uAC04", d: "\uD558\uB8E8", dd: "%d\uC77C", M: "\uD55C \uB2EC", MM: "%d\uB2EC", y: "\uC77C \uB144", yy: "%d\uB144" }, dayOfMonthOrdinalParse: /\d{1,2}(일|월|주)/, ordinal: function(e4, t3) { + switch (t3) { + case "d": + case "D": + case "DDD": + return e4 + "\uC77C"; + case "M": + return e4 + "\uC6D4"; + case "w": + case "W": + return e4 + "\uC8FC"; + default: + return e4; + } + }, meridiemParse: /오전|오후/, isPM: function(e4) { + return "\uC624\uD6C4" === e4; + }, meridiem: function(e4, t3, i3) { + return e4 < 12 ? "\uC624\uC804" : "\uC624\uD6C4"; + } }); + })(i2(95093)); + }, 63207: (e2, t2, i2) => { + const n2 = i2(2210), r2 = i2(54976), o = i2(90807), a = i2(7401), { transferVoicemailActionType: s } = i2(30801), l = i2(80748); + function u() { + Object.defineProperties(this, { _inputs: { writable: true }, _transferTarget: { writable: true }, _transferTargetGroup: { writable: true }, _transferTargetQueue: { writable: true }, _calleeName: { writable: true }, _callbackNumbers: { writable: true }, _voicemailGreeting: { writable: true }, _transferTargetType: { writable: true } }), this.scriptId = void 0, this.scriptName = void 0, u.baseConstructor.apply(this, arguments); + } + r2.extend(u, s, true), Object.defineProperties(u.prototype, { pasteReIdOrRename: { value: function(e3) { + u._super.pasteReIdOrRename.apply(this, arguments), this.transferTarget.pasteReIdOrRename(e3), this.transferTargetGroup.pasteReIdOrRename(e3), this.transferTargetQueue.pasteReIdOrRename(e3), this.calleeName.pasteReIdOrRename(e3), this.voicemailGreeting.pasteReIdOrRename(e3); + for (let t3 = 0; t3 < this.callbackNumbers.length; t3++) this.callbackNumbers[t3].pasteReIdOrRename(e3); + for (let t3 = 0; t3 < this.inputs.length; t3++) this.inputs[t3].pasteReIdOrRename(e3); + } }, pasteResolveOldToNewValues: { value: function(e3) { + u._super.pasteResolveOldToNewValues.apply(this, arguments), this.transferTarget.pasteResolveOldToNewValues(e3), this.transferTargetGroup.pasteResolveOldToNewValues(e3), this.transferTargetQueue.pasteResolveOldToNewValues(e3), this.calleeName.pasteResolveOldToNewValues(e3), this.voicemailGreeting.pasteResolveOldToNewValues(e3); + for (let t3 = 0; t3 < this.callbackNumbers.length; t3++) this.callbackNumbers[t3].pasteResolveOldToNewValues(e3); + for (let t3 = 0; t3 < this.inputs.length; t3++) this.inputs[t3].pasteResolveOldToNewValues(e3); + } }, transferTargetType: { enumerable: true, get: function() { + return this._transferTargetType; + }, set: function(e3) { + this._transferTargetType = this.reviveEnum(e3, l); + } }, transferTarget: { enumerable: true, get: function() { + return this._transferTarget; + }, set: function(e3) { + this._transferTarget = this.reviveItem(e3, a); + } }, transferTargetGroup: { enumerable: true, get: function() { + return this._transferTargetGroup; + }, set: function(e3) { + this._transferTargetGroup = this.reviveItem(e3, a); + } }, transferTargetQueue: { enumerable: true, get: function() { + return this._transferTargetQueue; + }, set: function(e3) { + this._transferTargetQueue = this.reviveItem(e3, a); + } }, calleeName: { enumerable: true, get: function() { + return this._calleeName; + }, set: function(e3) { + this._calleeName = this.reviveItem(e3, a); + } }, callbackNumbers: { enumerable: true, get: function() { + return this._callbackNumbers; + }, set: function(e3) { + this._callbackNumbers = this.reviveArray(e3, a); + } }, voicemailGreeting: { enumerable: true, get: function() { + return this._voicemailGreeting; + }, set: function(e3) { + this._voicemailGreeting = this.reviveItem(e3, n2); + } }, inputs: { enumerable: true, get: function() { + return this._inputs; + }, set: function(e3) { + this._inputs = this.reviveArray(e3, o); + } } }), e2.exports = u; + }, 63221: (e2, t2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.engineSelectionTypes = void 0, t2.engineSelectionTypes = { engineSelectionDefault: "default", engineSelectionNone: "none", engineSelectionSpecific: "specific" }; + }, 63303: (e2, t2, i2) => { + "use strict"; + var n2 = i2(58411), r2 = i2(9805), o = i2(41996), a = i2(54674), s = i2(44442), l = Object.prototype.toString; + function u(e3) { + if (!(this instanceof u)) return new u(e3); + this.options = r2.assign({ level: -1, method: 8, chunkSize: 16384, windowBits: 15, memLevel: 8, strategy: 0, to: "" }, e3 || {}); + var t3 = this.options; + t3.raw && t3.windowBits > 0 ? t3.windowBits = -t3.windowBits : t3.gzip && t3.windowBits > 0 && t3.windowBits < 16 && (t3.windowBits += 16), this.err = 0, this.msg = "", this.ended = false, this.chunks = [], this.strm = new s(), this.strm.avail_out = 0; + var i3 = n2.deflateInit2(this.strm, t3.level, t3.method, t3.windowBits, t3.memLevel, t3.strategy); + if (0 !== i3) throw new Error(a[i3]); + if (t3.header && n2.deflateSetHeader(this.strm, t3.header), t3.dictionary) { + var d2; + if (d2 = "string" == typeof t3.dictionary ? o.string2buf(t3.dictionary) : "[object ArrayBuffer]" === l.call(t3.dictionary) ? new Uint8Array(t3.dictionary) : t3.dictionary, 0 !== (i3 = n2.deflateSetDictionary(this.strm, d2))) throw new Error(a[i3]); + this._dict_set = true; + } + } + function d(e3, t3) { + var i3 = new u(t3); + if (i3.push(e3, true), i3.err) throw i3.msg || a[i3.err]; + return i3.result; + } + u.prototype.push = function(e3, t3) { + var i3, a2, s2 = this.strm, u2 = this.options.chunkSize; + if (this.ended) return false; + a2 = t3 === ~~t3 ? t3 : true === t3 ? 4 : 0, "string" == typeof e3 ? s2.input = o.string2buf(e3) : "[object ArrayBuffer]" === l.call(e3) ? s2.input = new Uint8Array(e3) : s2.input = e3, s2.next_in = 0, s2.avail_in = s2.input.length; + do { + if (0 === s2.avail_out && (s2.output = new r2.Buf8(u2), s2.next_out = 0, s2.avail_out = u2), 1 !== (i3 = n2.deflate(s2, a2)) && 0 !== i3) return this.onEnd(i3), this.ended = true, false; + 0 !== s2.avail_out && (0 !== s2.avail_in || 4 !== a2 && 2 !== a2) || ("string" === this.options.to ? this.onData(o.buf2binstring(r2.shrinkBuf(s2.output, s2.next_out))) : this.onData(r2.shrinkBuf(s2.output, s2.next_out))); + } while ((s2.avail_in > 0 || 0 === s2.avail_out) && 1 !== i3); + return 4 === a2 ? (i3 = n2.deflateEnd(this.strm), this.onEnd(i3), this.ended = true, 0 === i3) : 2 !== a2 || (this.onEnd(0), s2.avail_out = 0, true); + }, u.prototype.onData = function(e3) { + this.chunks.push(e3); + }, u.prototype.onEnd = function(e3) { + 0 === e3 && ("string" === this.options.to ? this.result = this.chunks.join("") : this.result = r2.flattenChunks(this.chunks)), this.chunks = [], this.err = e3, this.msg = this.strm.msg; + }, t2.Deflate = u, t2.deflate = d, t2.deflateRaw = function(e3, t3) { + return (t3 = t3 || {}).raw = true, d(e3, t3); + }, t2.gzip = function(e3, t3) { + return (t3 = t3 || {}).gzip = true, d(e3, t3); + }; + }, 63338: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(56265)), r2 = i2(30801); + class o extends n2.default { + constructor(e3) { + super(e3), this._conversationId = this.coreFactory.createArchWrapper(e3.conversationId); + } + get _actionTypeId() { + return r2.setSecuredDataActionType; + } + get conversationId() { + return this._conversationId; + } + get isArchActionSetSecuredData() { + return true; + } + } + t2.default = o; + }, 63345: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.responseAssetManager = t2.ResponseAssetManager = void 0; + const n2 = i2(31635), r2 = n2.__importStar(i2(1360)), o = n2.__importStar(i2(90891)), a = n2.__importStar(i2(24032)), s = n2.__importDefault(i2(47532)), l = i2(81801), u = n2.__importDefault(i2(67432)), d = i2(47957), c = i2(27862); + class p extends s.default { + get requiredAuth() { + return l.externalAuthorizations.authStrings.responseAssetView; + } + get dependencyType() { + return c.ResponseAsset; + } + constructor() { + super(), this.topic = a.getTopic("ResponseAssetManager"), this.apiCallList = o.getResponseAssets, this.apiCallSingle = o.getResponseAsset, this._rawServerCache = {}, this.className = "ResponseAssetManager", this.defaultMatchingStyle = r2.startsWith, this.dependencyContext = d.responseAsset.responseAsset, this.securityError = true, this.suppressSearch = false, this.uiMetadataSectionName = "responseAssets", this.useStartsWithKeywordForExactMatch = true, this.actionsForUsageSearch = [], this.actionPropertyForUsageSearch = "", this._initialize(); + } + _createItemViewModel(e3) { + return new u.default(e3); + } + } + t2.ResponseAssetManager = p, t2.responseAssetManager = new p(); + }, 63352: (e2, t2) => { + "use strict"; + var i2, n2; + Object.defineProperty(t2, "__esModule", { value: true }), t2.modeCombinations = t2.builder = t2.noValue = t2.variable = t2.literal = t2.expression = t2.none = t2.ExpressionModes = void 0, t2.modeToString = function(e3) { + switch (e3) { + case i2.expression: + return "expression"; + case i2.literal: + return "literal"; + case i2.variable: + return "variable"; + case i2.noValue: + return "noValue"; + case i2.builder: + return "builder"; + } + }, (function(e3) { + e3[e3.none = -1] = "none", e3[e3.expression = 0] = "expression", e3[e3.literal = 1] = "literal", e3[e3.variable = 2] = "variable", e3[e3.noValue = 3] = "noValue", e3[e3.builder = 4] = "builder"; + })(i2 || (t2.ExpressionModes = i2 = {})), t2.none = i2.none, t2.expression = i2.expression, t2.literal = i2.literal, t2.variable = i2.variable, t2.noValue = i2.noValue, t2.builder = i2.builder, (function(e3) { + e3.expressionOnly = "expressionOnly", e3.expressionOrBuilderOnly = "expressionOrBuilderOnly", e3.literalOnly = "literalOnly", e3.variableAndExpression = "variableAndExpression", e3.variableOnly = "variableOnly"; + })(n2 || (t2.modeCombinations = n2 = {})); + }, 63358: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.askForPaymentSequences = void 0; + const n2 = i2(31635), r2 = i2(28562), o = i2(80295), a = i2(73324); + class s extends a.BaseBotActionSettingsSequence { + constructor() { + super("askForPayment"); + } + get noInputDigitalBotSequence() { + const e3 = this.generateLanguageSequencesDefaultSequence("noInputDigitalBot"); + return this.generateLanguageSequenceConfig("AskForPaymentNoInputDigitalBot", r2.builderIds.parts.genericCommunication, e3); + } + get noMatchDigitalBotSequence() { + const e3 = this.generateLanguageSequencesDefaultSequence("noMatchDigitalBot"); + return this.generateLanguageSequenceConfig("AskForPaymentNoMatchDigitalBot", r2.builderIds.parts.markdownCommunication, e3); + } + } + n2.__decorate([(0, o.enumerable)(true), n2.__metadata("design:type", Object), n2.__metadata("design:paramtypes", [])], s.prototype, "noInputDigitalBotSequence", null), n2.__decorate([(0, o.enumerable)(true), n2.__metadata("design:type", Object), n2.__metadata("design:paramtypes", [])], s.prototype, "noMatchDigitalBotSequence", null), t2.askForPaymentSequences = new s(); + }, 63370: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = i2(30801), o = n2.__importDefault(i2(95847)), a = n2.__importDefault(i2(78432)); + class s extends o.default { + constructor(e3) { + super(e3), this._connectTimeout = this.coreFactory.createArchWrapper(e3.connTimeout), this._coreTransferToFlowSecureActionViewModel = e3; + } + get _actionTypeId() { + return r2.transferFlowSecureActionType; + } + get _supportedTargetFlowType() { + return a.default.FLOW_TYPES.secureCall; + } + get connectTimeout() { + return this._connectTimeout; + } + get displayTypeName() { + return this._scriptingName; + } + get invocationData() { + return this.coreFactory.createArchWrapper(this._coreTransferToFlowSecureActionViewModel.invocationData); + } + get isArchActionTransferToFlowSecure() { + return true; + } + } + t2.default = s; + }, 63391: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.CompleteSendActionModel = void 0; + const n2 = i2(94858), r2 = i2(30801); + class o extends n2.BaseActionModel { + constructor(e3) { + super(e3), this.__type = o.__type; + } + } + t2.CompleteSendActionModel = o, o.__type = r2.completeSendActionType, o.registerType(); + }, 63416: (e2, t2, i2) => { + const n2 = i2(45214), r2 = { schemaSectionName: "inputSchemaFlattened", direction: "input" }, o = { schemaSectionName: "successSchemaFlattened", direction: "output" }, a = { schemaSectionName: "errorSchemaFlattened", direction: "output" }; + function s() { + this.id = void 0, this.name = void 0, this.category = void 0, this.contract = void 0, s.baseConstructor.apply(this, arguments); + } + n2.extend(s, "HedwigAction"), Object.defineProperties(s.prototype, { _setSchema: { value: function(e3, t3) { + this.contract || (this.contract = { input: {}, output: {} }); + const i3 = e3.direction, n3 = e3.schemaSectionName; + this.contract[i3] || (this.contract[i3] = {}), this.contract[i3][n3] = { schema: t3 ? t3.schema ? t3.schema : t3 : void 0 }; + } }, inputSchema: { enumerable: true, get: function() { + return this.contract && this.contract.input && this.contract.input.inputSchemaFlattened && this.contract.input.inputSchemaFlattened.schema; + }, set: function(e3) { + this._setSchema(r2, e3); + } }, successSchema: { enumerable: true, get: function() { + return this.contract && this.contract.output && this.contract.output.successSchemaFlattened && this.contract.output.successSchemaFlattened.schema; + }, set: function(e3) { + this._setSchema(o, e3); + } }, errorSchema: { enumerable: true, get: function() { + return this.contract && this.contract.output && this.contract.output.errorSchemaFlattened && this.contract.output.errorSchemaFlattened.schema; + }, set: function(e3) { + this._setSchema(a, e3); + } }, actionId: { get: function() { + return this.id; + } }, displayName: { get: function() { + return this.name; + }, set: function(e3) { + this.name = e3; + } }, label: { get: function() { + return this.name; + }, set: function(e3) { + this.name = e3; + } }, errorSchemaUri: { enumerable: true, get: function() { + return this.contract && this.contract.output && this.contract.output.errorSchemaUri; + } }, inputSchemaUri: { enumerable: true, get: function() { + return this.contract && this.contract.input && this.contract.input.inputSchemaUri; + } }, successSchemaUri: { enumerable: true, get: function() { + return this.contract && this.contract.output && this.contract.output.successSchemaUri; + } }, schemas: { set: function(e3) { + e3 && (e3.input && (this.inputSchema = e3.input), e3.error && (this.errorSchema = e3.error), e3.success && (this.successSchema = e3.success)); + } } }), e2.exports = s; + }, 63417: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(84655)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "communication"; + } + get displayTypeName() { + return "ArchVariableCommunication"; + } + get initialValue() { + return this._initialValue; + } + get isArchVariableCommunication() { + return true; + } + } + t2.default = r2; + }, 63439: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(54063)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "journeySessionSegmentAssignmentCollection"; + } + get displayTypeName() { + return "ArchValueJourneySessionSegmentAssignmentCollection"; + } + get isArchValueJourneySessionSegmentAssignmentCollection() { + return true; + } + } + t2.default = r2; + }, 63446: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(54757)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "dateTimeCollection"; + } + get displayTypeName() { + return "ArchValueDateTimeCollection"; + } + get isArchValueDateTimeCollection() { + return true; + } + } + t2.default = r2; + }, 63463: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(81574)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "email"; + } + get id() { + } + get autoGenerated() { + } + get spam() { + } + get from() { + } + get to() { + } + get cc() { + } + get bcc() { + } + get subject() { + } + get direction() { + } + get replyTo() { + } + get route() { + } + get body() { + } + get htmlBody() { + } + get attachments() { + } + get dateTimeUtc() { + } + get displayTypeName() { + return "ArchValueEmail"; + } + get isArchValueEmail() { + return true; + } + } + t2.default = r2; + }, 63569: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.getNuanceMixIntegrations = t2.getBotConnectorIntegrations = t2.getDigitalBotConnectorIntegrations = t2.getIntegration = void 0; + const n2 = i2(31635), r2 = i2(37707), o = i2(99431), a = i2(73883), s = i2(73883), l = n2.__importDefault(i2(36019)), u = { ignoreBadResponse: true }; + t2.getIntegration = l.default.request("GET", "{public-api.apps}/api/v2/integrations/{id}", r2.Integration, u), t2.getDigitalBotConnectorIntegrations = l.default.request("GET", `{public-api.apps}/api/v2/integrations?integrationType=${a.integrationTypeConstants.genesysDigitalBotConnector}&reportedState=${s.reportedStateConstants.active}`, o.IntegrationList, u), t2.getBotConnectorIntegrations = l.default.request("GET", `{public-api.apps}/api/v2/integrations?integrationType=${a.integrationTypeConstants.genesysBotConnector}&reportedState=${s.reportedStateConstants.active}`, o.IntegrationList, u), t2.getNuanceMixIntegrations = l.default.request("GET", `{public-api.apps}/api/v2/integrations?integrationType=${a.integrationTypeConstants.nuanceMixBot}&reportedState=${s.reportedStateConstants.active}`, o.IntegrationList, u); + }, 63619: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.FindUtilizationLabelActionModel = void 0; + const n2 = i2(49574), r2 = i2(30801); + class o extends n2.BaseFindSystemObjectByNameActionModel { + constructor(e3) { + super(e3), this.__type = o.__type; + } + } + t2.FindUtilizationLabelActionModel = o, o.__type = r2.findUtilizationLabelActionType, o.registerType(); + }, 63668: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(54757)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "videoCollection"; + } + get displayTypeName() { + return "ArchValueVideoCollection"; + } + get isArchValueVideoCollection() { + return true; + } + } + t2.default = r2; + }, 63689: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.nluDomainManager = t2.NLUDomainManager = void 0; + const n2 = i2(31635), r2 = i2(68694), o = n2.__importDefault(i2(92140)), a = n2.__importStar(i2(12847)), s = n2.__importStar(i2(24601)), l = n2.__importStar(i2(24032)), u = n2.__importStar(i2(36781)), d = n2.__importStar(i2(1360)), c = n2.__importDefault(i2(42048)), p = n2.__importDefault(i2(47532)), _ = i2(27862); + class h extends p.default { + get dependencyType() { + return _.NLUDomain; + } + constructor() { + super(), this.topic = l.getTopic("NLUDomainManager"), this._rawServerCache = {}, this.apiCallList = s.getNluDomains, this.apiCallSingle = s.getNluDomain, this.className = "NLUDomainManager", this.defaultMatchingStyle = d.exactMatch, this.dependencyContext = "NLU", this.securityError = true, this.suppressSearch = true, this._initialize(), u.serviceListen(u.cleanUpFlow, (e3) => { + e3.isNluFlow && (this.items = o.default.omit(this.items, (e4) => e4.isFromWorkbench)); + }); + } + addItem(e3, t3, i3) { + const n3 = this.items[e3.id]; + return (null == n3 ? void 0 : n3.isFromWorkbench) && !e3.isFromWorkbench ? n3 : super.addItem(e3, t3); + } + additionalItemFilter(e3) { + return e3.filter((e4) => e4.lastPublishedVersion); + } + addFakeNluDomain(e3, t3) { + if (!e3) return; + e3.id = this.getFakeNonCreatedNluDomainId(t3); + const i3 = this.addItem(e3); + return i3.isFake = true, i3; + } + get canLoadMore() { + return false; + } + getFakeNonCreatedNluDomainId(e3) { + if (null == e3 ? void 0 : e3.isNluFlow) return `__fake_nlu_domain__${e3.id}`; + a.error(`invalid nluFlowViewModel - expected an NluFlowViewModel but received a ${null == e3 ? void 0 : e3.className}`); + } + get fakeNonCreatedNluDomainVersionId() { + return "__fake_nlu_domain_version__"; + } + _createItemViewModel(e3) { + return new c.default(e3); + } + checkNluDomainVersionJson(e3, t3) { + if (!o.default.isObject(e3)) return null; + if (!o.default.isString(e3.language)) return "missing language"; + if (!t3 && r2.IntentUtil.hasIntents(e3)) return "intents are not supported"; + if (!e3.intents) return null; + for (const t4 of e3.intents) if (!t4.name) return "no name property on intent object"; + return null; + } + getIsNluIdentifierCreated(e3) { + return o.default.isString(e3) && e3.length && !e3.startsWith("__"); + } + getAreNluDomainIdAndNluDomainVersionIdCreated(e3, t3) { + return this.getIsNluIdentifierCreated(e3) && this.getIsNluIdentifierCreated(t3); + } + getIsNluDomainVersionValidForThisOrg(e3, t3) { + return !(!this.getAreNluDomainIdAndNluDomainVersionIdCreated(e3, t3) || !this.getItem(t3) && !this.getItem(e3)); + } + } + t2.NLUDomainManager = h, t2.nluDomainManager = new h(); + }, 63698: (e2, t2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.createNewGetConfigOperationSettings = function(e3, t3, i2, n2 = false) { + return { isForComparison: e3, isForFlowYaml: t3, isArchitectFormatExport: i2, yamlOptions: { includeTrackingIds: n2 } }; + }; + }, 63824: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.durationStyles = void 0, t2.getAvailableUnits = function(e3) { + if (e3 && _[e3]) return _[e3].supportedUnits; + }, t2.getDefaultUnit = function(e3) { + if (e3 && _[e3]) return _[e3].defaultUnit; + }, t2.getTimeFormat = function(e3) { + if (e3 && _[e3]) return _[e3].timeFormat; + }, t2.getMaxSeconds = function(e3) { + if (e3 && _[e3]) return _[e3].maxSeconds; + }, t2.convertSecondsToUnit = function(e3, t3) { + if ((e3 || 0 === e3) && t3 && r2.default.find(p, { type: t3 })) return Math.floor(e3 / r2.default.find(p, { type: t3 }).scale); + }, t2.createParsedDuration = function(e3, t3) { + const i3 = [0, 0, 0, 0, 0]; + if (!e3 && 0 !== e3 || !t3 || !r2.default.find(p, { type: t3 })) return i3; + switch (t3) { + case p.days.type: + i3[0] = e3; + break; + case p.hours.type: + i3[1] = e3; + break; + case p.minutes.type: + i3[2] = e3; + break; + case p.seconds.type: + i3[3] = e3; + break; + case p.milliseconds.type: + i3[4] = e3; + } + return i3; + }, t2.toSeconds = g, t2.getUnitFromParsedDuration = function(e3, t3) { + return e3 ? e3[4] ? p.milliseconds.type : e3[3] ? p.seconds.type : e3[2] ? p.minutes.type : e3[1] ? p.hours.type : e3[0] ? p.days.type : t3 : p.seconds.type; + }, t2.getNonZeroValueFromParsedDuration = function(e3) { + return e3 ? e3[4] ? parseInt(e3[4]) : e3[3] ? parseInt(e3[3]) : e3[2] ? parseInt(e3[2]) : e3[1] ? parseInt(e3[1]) : parseInt(e3[0]) : 0; + }, t2.getSecondsFromParsedDuration = function(e3) { + return e3 ? e3[0] ? parseInt(e3[0]) * p.days.scale : e3[1] ? parseInt(e3[1]) * p.hours.scale : e3[2] ? parseInt(e3[2]) * p.minutes.scale : e3[3] ? parseInt(e3[3]) : parseInt(e3[4]) * p.milliseconds.scale : 0; + }, t2.getMillisecondsFromDurationMatches = f, t2.getSearchStringFromLiteral = function(e3) { + const t3 = g(e3); + return t3 || 0 === t3 ? e3.includes("0.") ? m(t3) : m(t3 * o.default.msPerSecond) : e3; + }, t2.getSearchStringFromMilliseconds = function(e3) { + return m(e3); + }, t2.getXsdString = T, t2.matchMilliseconds = y, t2.millisecondsToXSD = function(e3) { + return T(y(e3)); + }, t2.matchText = S, t2.matchExpression = function(e3) { + const t3 = (e3 = e3 || "").match(/^MakeDuration\(\s*(\d+)\s*,\s*(-?\d+)\s*,\s*(-?\d+)\s*,\s*(-?\d+)\s*,\s*((-?\d+))?\)$/i); + return t3 ? h([t3[1] ? parseInt(t3[1], 10) : 0, t3[2] ? parseInt(t3[2], 10) : 0, t3[3] ? parseInt(t3[3], 10) : 0, t3[4] ? parseInt(t3[4], 10) : 0, t3[6] ? parseInt(t3[6], 10) : 0]) : t3; + }; + const n2 = i2(31635), r2 = n2.__importDefault(i2(92140)), o = n2.__importDefault(i2(73198)), a = i2(17604), s = i2(74359), l = i2(76123), u = i2(98261), d = i2(47957), c = r2.default.findWhere(u, { id: s.getCurrentLanguage() }).humanizeDuration || "en", p = { days: { display: d.duration.days, type: "D", scale: o.default.secsPerDay }, hours: { display: d.duration.hours, type: "H", scale: o.default.secsPerHour }, minutes: { display: d.duration.minutes, type: "M", scale: o.default.secsPerMinute }, seconds: { display: d.duration.seconds, type: "S", scale: 1 }, milliseconds: { display: d.duration.milliseconds, type: "F", scale: 1e-3 } }, _ = { secondsAndTenthsDuration: { timeFormat: "ss.S", defaultUnit: p.seconds.type, supportedUnits: [p.seconds, p.milliseconds], maxSeconds: o.default.secsPerMinute - 0.1 }, minutesSecondsAndMsDuration: { timeFormat: "mm:ss.SSS", defaultUnit: p.minutes.type, supportedUnits: [p.minutes, p.seconds, p.milliseconds], maxSeconds: o.default.secsPerHour - 1e-3 }, veryShortDuration: { timeFormat: "mm:ss", defaultUnit: p.minutes.type, supportedUnits: [p.minutes, p.seconds], maxSeconds: o.default.secsPerHour - 1 }, shortDuration: { timeFormat: "HH:mm", defaultUnit: p.minutes.type, supportedUnits: [p.hours, p.minutes], maxSeconds: o.default.secsPerDay - o.default.secsPerMinute }, mediumDuration: { timeFormat: "HH:mm:ss", defaultUnit: p.minutes.type, supportedUnits: [p.hours, p.minutes, p.seconds], maxSeconds: o.default.secsPerDay - 1 }, mediumAndMsDuration: { timeFormat: "HH:mm:ss.SSS", defaultUnit: p.minutes.type, supportedUnits: [p.hours, p.minutes, p.seconds, p.milliseconds], maxSeconds: o.default.secsPerDay - 1e-3 }, longDuration: { timeFormat: "d-HH:mm", defaultUnit: p.minutes.type, supportedUnits: [p.days, p.hours, p.minutes], maxSeconds: o.default.maxDurationSecs }, fullDuration: { timeFormat: "d-HH:mm:ss", defaultUnit: p.minutes.type, supportedUnits: [p.days, p.hours, p.minutes, p.seconds], maxSeconds: o.default.maxDurationSecs }, minutes: { timeFormat: "mm", defaultUnit: p.minutes.type, supportedUnits: [p.minutes], maxSeconds: o.default.secsPerHour }, fullAndMsDuration: { timeFormat: "d-HH:mm:ss.SSS", defaultUnit: p.minutes.type, supportedUnits: [p.days, p.hours, p.minutes, p.seconds, p.milliseconds], maxSeconds: o.default.maxDurationSecs } }; + function h(e3) { + const t3 = [0, 0, 0, 0, 0]; + if (!e3) return t3; + let i3 = e3[4] ? parseInt(e3[4], 10) : 0, n3 = e3[3] ? parseFloat(e3[3]) : 0, r3 = e3[2] ? parseInt(e3[2], 10) : 0, o2 = e3[1] ? parseInt(e3[1], 10) : 0; + const a2 = e3[0] ? parseInt(e3[0], 10) : 0; + return i3 ? (i3 += (a2 * p.days.scale + o2 * p.hours.scale + r3 * p.minutes.scale + n3) / p.milliseconds.scale, t3[4] = i3, t3) : n3 ? (n3 += a2 * p.days.scale + o2 * p.hours.scale + r3 * p.minutes.scale, t3[3] = n3, t3) : r3 ? (r3 += (a2 * p.days.scale + o2 * p.hours.scale) / p.minutes.scale, t3[2] = r3, t3) : o2 ? (o2 += a2 * p.days.scale / p.hours.scale, t3[1] = o2, t3) : (t3[0] = a2, t3); + } + function m(e3) { + let t3; + if (e3 < 0 && (t3 = true, e3 *= -1), e3.toString().includes("0.")) return l(e3 *= 1e3, { language: c, units: ["s"] }); + let i3 = l(e3, { language: c, units: ["d", "h", "m", "s", "ms"] }); + return t3 && (i3 = (0, a.sprintf)(d.expression.facets.negativeDuration, i3)), i3; + } + function g(e3) { + if (!e3) return; + const t3 = S(e3); + return t3 ? t3[0] * o.default.secsPerDay + t3[1] * o.default.secsPerHour + t3[2] * o.default.secsPerMinute + t3[3] + t3[4] / o.default.msPerSecond : void 0; + } + function f(e3) { + if (e3) return parseInt(e3[0]) * o.default.msPerDay + parseInt(e3[1]) * o.default.msPerHour + parseInt(e3[2]) * o.default.msPerMinute + parseInt(e3[3]) * o.default.msPerSecond + parseInt(e3[4]); + } + function T(e3) { + if (!e3) return; + const t3 = f(e3); + let i3 = false; + return t3 < 0 && (i3 = true, e3 = y(-1 * t3)), (0, a.sprintf)("%1$sP%2$sD%3$sH%4$sM%5$sS%6$sF", i3 ? "-" : "", e3[0], e3[1], e3[2], e3[3], e3[4]); + } + function y(e3) { + let t3 = false; + e3 < 0 && (t3 = true, e3 *= -1); + const i3 = [0, 0, 0, 0, 0], n3 = Math.floor(e3 / o.default.msPerSecond); + i3[4] = e3 % o.default.msPerSecond; + const r3 = Math.floor(n3 / o.default.secsPerMinute); + i3[3] = n3 % o.default.secsPerMinute; + const a2 = Math.floor(r3 / o.default.minutesPerHour); + i3[2] = r3 % o.default.minutesPerHour; + const s2 = a2 / o.default.hoursPerDay; + if (i3[1] = a2 % o.default.hoursPerDay, i3[0] = Math.floor(s2), t3) for (let e4 = 0; e4 < i3.length; e4++) i3[e4] && (i3[e4] = -1 * i3[e4]); + return h(i3); + } + function S(e3) { + const t3 = (e3 = e3 || "").match(/^(-?)(?:P|PT)(\d+(?:D|DT))?(\d+(?:H|HT))?(\d+(?:M|MT))?(\d+\.?\d*(?:S|ST))?(\d+(?:F|FT))?$/i); + if (!t3) return; + const i3 = t3[1] ? -1 : 1, n3 = t3[2], r3 = t3[3], o2 = t3[4]; + let a2 = t3[5], s2 = t3[6]; + if (a2 && !s2 && e3.includes(".")) { + const e4 = a2.match(/(\d+)/gi); + "0" !== e4[0] ? (a2 = e4[0], s2 = e4[1], 1 === s2.length ? s2 += "00" : 2 === s2.length && (s2 += "0")) : "0" === e4[0] && (a2 = e4[1], 3 === a2.length && (a2 = "0." + a2)); + } + return h([n3 ? i3 * parseInt(n3, 10) : 0, r3 ? i3 * parseInt(r3, 10) : 0, o2 ? i3 * parseInt(o2, 10) : 0, a2 ? i3 * parseFloat(a2) : 0, s2 ? i3 * parseInt(s2, 10) : 0]); + } + t2.durationStyles = _; + }, 63883: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.MenuChoiceViewModel = void 0; + const n2 = i2(31635), r2 = n2.__importDefault(i2(92140)), o = n2.__importStar(i2(36781)), a = n2.__importStar(i2(25021)), s = n2.__importStar(i2(62829)), l = n2.__importStar(i2(58380)), u = n2.__importStar(i2(1115)), d = i2(19384), c = n2.__importDefault(i2(76155)), p = i2(30801), _ = i2(84663), h = i2(17604), m = i2(30801), g = i2(30801), f = i2(30801), T = n2.__importDefault(i2(22917)), y = i2(31178), S = i2(27359), A = i2(47957), N = [y.One, y.Two, y.Three, y.Four, y.Five, y.Six, y.Seven, y.Eight, y.Nine, y.Zero], O = { dtmf: T.default.create(), globalDtmf: T.default.create(), globalSpeech: T.default.create(null, (e3) => e3.setPropertyName("globalSpeechRecTerms")), speechRecTerms: T.default.create() }; + class I extends c.default { + constructor(e3, t3) { + super(e3, t3), this.hasSpeechRecOrDtmfError = false, this.hasSpeechRecOrDtmfWarning = false; + } + static loadMenuChoice(e3, t3) { + const i3 = new I(e3.parentFlow, e3); + return i3._loadModel(t3), i3; + } + static createMenuChoice(e3, t3) { + const i3 = new I(e3.parentFlow, e3); + i3._loadModel(new S()); + const n3 = s.createAction(t3, i3); + return i3.action = n3, i3.name = n3.info.name, e3 && e3.initializeDesignTimeCalled && i3.initializeDesignTime(), u.validateItem(i3, true), i3; + } + _initializeDesignTime() { + super._initializeDesignTime(), this.action && !this.action.initializeDesignTimeCalled && this.action.initializeDesignTime(); + } + get className() { + return "MenuChoiceViewModel"; + } + get trackingId() { + return this.action ? this.action.trackingId : void 0; + } + addClipboardDependencies(e3) { + super.addClipboardDependencies(e3), e3.copyCutProcessMenuChoiceViewModel(this), this.action.addClipboardDependencies(e3), r2.default.each(this.choices, function(t3) { + t3.addClipboardDependencies(e3); + }); + } + _loadModel(e3) { + e3 && (super._loadModel(e3), this.model.action && (this.action = s.createActionWithModel(this, this.model.action)), this.model.speechRecTerms = this.model.speechRecTerms || {}, this.speechRecTerms = new _.SpeechRecViewModel(this.parentFlow, this, this.model.speechRecTerms), this._updateGlobalSpeech(), this._updateGlobalDtmf()); + } + _isInlineTask() { + return !!this.action && this.action.info.typeId === m.taskActionActionType; + } + _isMenuAction() { + return !!this.action && (this.action.info.typeId === p.menuActionActionType || this.action.info.typeId === g.transferMenuActionType); + } + _isTaskAction() { + return !!this.action && (this.action.info.typeId === m.taskActionActionType || this.action.info.typeId === f.transferTaskActionType); + } + _updateGlobalDtmf() { + this.globalDtmf ? a.addGlobalDtmfTracking(this.parentFlow, this) : a.removeGlobalDtmfTracking(this.parentFlow, this); + } + _updateGlobalSpeech() { + this.globalSpeech ? a.addGlobalSpeechTracking(this.parentFlow, this.speechRecTerms) : a.removeGlobalSpeechTracking(this.parentFlow, this.speechRecTerms); + } + resetDtmfToUniqueDtmf() { + const e3 = a.getGlobalDtmfForFlow(this.parentFlow); + if (!r2.default.isUndefined(this.dtmf) && r2.default.isUndefined(r2.default.find(e3, (e4) => e4.dtmf === this.dtmf)) && r2.default.isUndefined(r2.default.find(this.parent.choices, (e4) => e4 !== this && e4.dtmf === this.dtmf))) return true; + this.dtmf = void 0; + const t3 = r2.default.find(N, (t4) => !r2.default.find(e3, (e4) => e4.dtmf === t4) && !r2.default.find(this.parent.choices, (e4) => e4.dtmf === t4)); + return !r2.default.isUndefined(t3) && (this.dtmf = t3, true); + } + get canCollapse() { + return this.action.canCollapse; + } + get collapsed() { + return this.action && this.action.collapsed; + } + set collapsed(e3) { + this.action.collapsed = e3, o.emitter.emit(o.collapseExpand, this); + } + checkVersion(e3) { + this.action.checkVersion(e3); + } + deleting() { + this.globalDtmf = false, this.globalSpeech = false; + } + deleteChild(e3) { + if (!this.choices) return; + const t3 = this.choices.indexOf(e3); + t3 < 0 || (e3.isDefaultMenuChoice && (this.defaultMenuChoice = null), e3.deleting && e3.deleting(), this.choices.splice(t3, 1)); + } + _destroy() { + super._destroy(), this.parentFlow.isDestroying || (this.parent && this.parent.deleteChild(this), this.task && this._isInlineTask() ? this.parentFlow.deleteNode(this.task) : this.menu && this.isSubMenu && this.parentFlow.deleteNode(this.menu), this.unlinkAction()), this.action && (this.action.destroy(), this.action = null); + } + get dtmf() { + return this.model.digit; + } + set dtmf(e3) { + r2.default.find(this.parent.choices, (t3) => { + if (t3.dtmf && t3 !== this && t3.dtmf === e3) { + const e4 = this.dtmf; + return this.model.digit = void 0, t3.dtmf = e4, true; + } + return false; + }), this.model.digit = e3, e3 || (this.globalDtmf = false), this._updateGlobalDtmf(), u.validateItem(this, false, true), this.invokeMenuChoicesChanged(); + } + getYamlOptionsMap() { + return O; + } + getConfiguration(e3, t3) { + var i3, n3; + if (null == t3 ? void 0 : t3.isForFlowYaml) { + let o2 = super.getConfiguration(e3, t3); + if (this.action) { + const a2 = this.action.getConfiguration(e3, t3), s2 = r2.default.getFirstPropertyValueInObj(a2); + if (this.isDefaultMenuChoice && (s2.refId = this.action.getRefId()), this.action.isSubMenuActionViewModel && this.action.menu) { + const i4 = this.action.menu.getConfiguration(e3, t3), n4 = r2.default.getFirstPropertyValueInObj(i4); + r2.default.extend(s2, n4); + } else if (this.action.isInlineTaskAction && (null === (i3 = this.action.task) || void 0 === i3 ? void 0 : i3.actions.length)) { + const i4 = this.action.task.getConfiguration(e3, t3); + delete r2.default.getFirstPropertyValueInObj(i4).name, r2.default.extend(s2, i4); + } + r2.default.extend(s2, o2), (null === (n3 = null == t3 ? void 0 : t3.yamlOptions) || void 0 === n3 ? void 0 : n3.includeTrackingIds) && this.trackingId && (s2.trackingId = this.trackingId), a2[r2.default.getFirstPropertyKeyInObj(a2)] = T.default.sortObjectByPropertyMap(s2, this.yamlPropertyOrderMap), o2 = a2; + } + return o2; + } + return this.action && (this.model.action = this.action.getConfiguration(e3, t3)), this.model; + } + getUsesSpeechRec() { + return !r2.default.isUndefined(this.speechRecTerms.hasTermsAny()); + } + get globalDtmf() { + return !!this.model.globalDtmf; + } + set globalDtmf(e3) { + e3 = !!e3, this.model.globalDtmf !== e3 && (this.model.globalDtmf = e3, this._updateGlobalDtmf(), this.invokeMenuChoicesChanged()); + } + get globalSpeech() { + return !!this.model.globalSpeech; + } + set globalSpeech(e3) { + e3 = !!e3, this.model.globalSpeech !== e3 && (this.model.globalSpeech = e3, this._updateGlobalSpeech(), this.invokeMenuChoicesChanged()); + } + invokeMenuChoicesChanged() { + l.fireEvent(this.parent, o.menuChoicesChanged); + } + hasDuplicateDtmf() { + return !!r2.default.find(a.getGlobalDtmfForFlow(this.parentFlow), (e3) => e3 !== this && e3.dtmf === this.dtmf); + } + get hasChildren() { + return this.choices && this.choices.length > 0 || this.task && this.task.hasChildren || this.menu && this.menu.hasChildren; + } + get id() { + return this.model.id; + } + get info() { + return this.action ? this.action.info : null; + } + initialize() { + const e3 = this.parentFlow; + if (this.isSubMenu) { + if (this.menu) return; + const t3 = this.action.menuReference; + if (!t3) return; + if (!e3) return; + const i3 = d.flowElementRegistrationService.getItemById(this.parentFlow, t3); + this.linkMenu(i3); + } else if (this._isTaskAction()) { + if (this.task) return; + const t3 = this.action.taskReference; + if (!t3) return; + if (!e3) return; + const i3 = d.flowElementRegistrationService.getItemById(this.parentFlow, t3); + this.linkTask(i3); + } + } + get isDefaultMenuChoice() { + return !(!this.parent || !this.parent.defaultMenuChoice) && this.parent.defaultMenuChoice === this.id; + } + get isInlineTask() { + return this._isInlineTask(); + } + getInlineTaskViewModel() { + if (this.action && this.parentFlow) { + const e3 = this.action.taskReference; + if (e3) return d.flowElementRegistrationService.getItemById(this.parentFlow, e3); + } + } + get isMenuChoice() { + return true; + } + isNameUnique() { + return this.menu ? this.menu.isNameUnique() : !this.task || this.task.isNameUnique(); + } + get isSubMenu() { + return !!this.action && this.action.info.typeId === p.menuActionActionType; + } + getSubMenuMenuViewModel() { + if (this.action && this.parentFlow) { + const e3 = this.action.menuReference; + if (e3) return d.flowElementRegistrationService.getItemById(this.parentFlow, e3); + } + } + linkMenu(e3) { + e3 && this._isMenuAction() && (this.action.linkMenu(e3), this.menu = e3, e3.parentMenu = this.parent, this.isSubMenu && (this.menu.isHidden = true, this.choices = e3.choices, e3.linkedMenuChoice = this)); + } + linkTask(e3) { + e3 && this._isTaskAction() && (this.action.linkTask(e3), this.task = e3, this._isInlineTask() && (this.task.isHidden = true, e3.linkedMenuChoice = this)); + } + get name() { + return super.name; + } + set name(e3) { + super.name = e3, this._isInlineTask() && this.task && (this.task.name = e3), this.action.name = e3, this.menu && (this.menu.name = e3); + } + search(e3) { + this.dtmf && e3.checkText(this, String(this.dtmf.value), A.menuChoice.dtmfSelector), e3.addToQueue(this.speechRecTerms), e3.addToQueue(this.action); + } + traverse(e3) { + if (!e3 || e3.isCanceled) return; + const t3 = e3.getMenuChoiceCallback(); + let i3; + if (t3 && (i3 = e3.createCallbackParam(true), t3(this, i3), !e3.processCallbackParamAndContinue(i3, true))) return; + if (!this.action) return; + const n3 = e3.getActionCallback(); + n3 && (i3 = e3.createCallbackParam(false), n3(this.action, i3), e3.processCallbackParamAndContinue(i3)); + } + get uiMetaData() { + return this.model.uiMetaData; + } + set uiMetaData(e3) { + this.model.uiMetaData = e3; + } + get uiSortStr() { + return (this.dtmf ? (0, h.sprintf)("%2d", this.dtmf.value) : "AA") + this.name; + } + unlinkAction() { + this.isSubMenu && this.menu && (this.menu.isHidden = false), this.menu = null, this.choices = null, this._isInlineTask() && this.task && (this.task.isHidden = false), this.task = null; + } + validate(e3) { + super.validate(e3); + const t3 = this.speechRecTerms.hasTermsAny(), i3 = !!t3 && !this.speechRecTerms.hasTermsFull(), n3 = this.dtmf; + if (this.hasSpeechRecOrDtmfError = false, this.hasSpeechRecOrDtmfWarning = false, t3 || n3 || !this.parentFlow.speechRecEnabled() ? n3 || this.parentFlow.speechRecEnabled() ? n3 && i3 ? (e3.addWarning(this, A.speechRec.missingSpeechRec), this.hasSpeechRecOrDtmfWarning = true) : i3 && (e3.addError(this, A.speechRec.missingSpeechRec), this.hasSpeechRecOrDtmfError = true) : (e3.addError(this, A.menuChoice.noDtmfWithDisabledSpeechRec), this.hasSpeechRecOrDtmfError = true) : (e3.addError(this, A.menuChoice.noDtmfOrSpeechRec), this.hasSpeechRecOrDtmfError = true), this.speechRecTerms.hasUnsupportedSpeechRecLangContainer && (e3.addError(this, this.speechRecTerms.getUnsupportedSpeechRecLangContainersStr()), this.hasSpeechRecOrDtmfError = true), this.hasDuplicateDtmf() && (e3.addError(this, (0, h.sprintf)(A.menuChoice.duplicateDtmfGlobal, this.dtmf.value)), this.hasSpeechRecOrDtmfError = true), this.globalSpeech) { + const t4 = this.speechRecTerms.getGlobalSpeechSpeechRecDisabledError(); + t4 && (e3.addError(this, t4), this.hasSpeechRecOrDtmfError = true); + } + this.speechRecTerms.validate(e3), this.speechRecTerms.hasDuplicates && (this.hasSpeechRecOrDtmfError = true); + } + get defaultVariableScope() { + return this.task && this._isInlineTask() ? this.task.defaultVariableScope : super.defaultVariableScope; + } + get localVariableScope() { + return this.task && this._isInlineTask() ? this.task.localVariableScope : super.localVariableScope; + } + get builtInVariableScopes() { + return this.task && this._isInlineTask() ? this.task.builtInVariableScopes : super.builtInVariableScopes; + } + get userCreatableVariableScopes() { + return this.task && this._isInlineTask() ? this.task.userCreatableVariableScopes : super.userCreatableVariableScopes; + } + get yamlPropertyOrderMap() { + return r2.default.extend(super.yamlPropertyOrderMap, { dtmf: 20, globalDtmf: 30, globalSpeechRecTerms: 40 }); + } + toString() { + return `MenuChoice: ${super.toString()}`; + } + get sortValue() { + return this.dtmf ? 0 === this.dtmf.value ? "99" : 10 === this.dtmf.value ? "999" : 11 === this.dtmf.value ? "9999" : this.dtmf.value.toString() : this.name; + } + get nodeGuxIcon() { + var e3, t3; + return null === (t3 = null === (e3 = this.action) || void 0 === e3 ? void 0 : e3.info) || void 0 === t3 ? void 0 : t3.category.guxIcon; + } + get containerLabel() { + return A.menu.label; + } + get containerLabelAndName() { + return (0, h.sprintf)(A.labelAndName, this.containerLabel, this.getDisplayName()); + } + } + t2.MenuChoiceViewModel = I; + }, 64015: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.BaseFlowItem = void 0; + const n2 = i2(19596), r2 = i2(43773); + class o extends n2.DataContract { + constructor(e3) { + super(e3), this.uiMetaData = void 0; + } + getConfiguration(e3, t3) { + return (null == t3 ? void 0 : t3.isForComparison) ? r2.removePropertiesForComparison(this) : this; + } + } + t2.BaseFlowItem = o; + }, 64042: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(81574)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "externalInstagramInfo"; + } + get displayName() { + } + get handle() { + } + get ids() { + } + get displayTypeName() { + return "ArchValueExternalInstagramInfo"; + } + get isArchValueExternalInstagramInfo() { + return true; + } + } + t2.default = r2; + }, 64079: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(8471)); + class r2 extends n2.default { + static create(e3, t3) { + return new r2(e3, t3); + } + constructor(e3, t3) { + super(), this._checkItemIsArchFilterObject(this._infoParmCtor("traverseFilter"), e3), this._checkItemIsValidFunction(this._infoParmCtor("callbackFunction"), t3), this._callbackCount = 0, this._callbackFunction = t3, this._shouldContinue = true, this._traverseFilter = e3; + } + get callbackFunction() { + return this._callbackFunction; + } + get callbackCount() { + return this._callbackCount; + } + get displayTypeName() { + return "ArchTraverseSettings"; + } + get filter() { + return this._traverseFilter; + } + incrementCallbackCount() { + this._callbackCount++; + } + get isArchTraverseSettings() { + return true; + } + get logStr() { + const e3 = []; + return this._appendLogStrType(e3, this.displayTypeName), this._createLogStrFromParts(e3); + } + get shouldContinue() { + return this._shouldContinue; + } + set shouldContinue(e3) { + this._checkItemIsValidLiteralBool(this._infoPropSet("newValue", "shouldContinue"), e3), this._shouldContinue = e3; + } + } + t2.default = r2; + }, 64229: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.SurveyQuestionType = void 0; + const n2 = i2(31635), r2 = i2(17604), o = i2(33237), a = i2(94765), s = n2.__importStar(i2(63352)), l = i2(56969), u = i2(80428), d = i2(47957); + class c extends a.ExpressionType { + constructor(e3, t3, i3) { + super(e3, t3, i3); + } + get className() { + return "SurveyQuestionType"; + } + createExpressionOptionClass() { + return new o.ExpressionTypeSurveyQuestionOptions(); + } + validateLiteral(e3, t3) { + if (t3.outOfService) return true; + const i3 = this.getArchSurveyForm(t3); + return !(!i3 || !(0, l.findSurveyQuestionInForm)(i3, t3.val, true)) || (e3.addError(t3, (0, r2.sprintf)(d.errors.invalidValue, t3.label), false, true), false); + } + get supportsLiteralEditor() { + return true; + } + clearArchSurveyQuestion(e3) { + return !!e3 && (e3.mode = s.literal, e3.update("", ""), e3.options.allowModeNoValue && e3.setAsNoValue(), true); + } + setFromArchSurveyQuestion(e3, t3) { + return t3 ? !!e3 && (e3.mode = s.literal, e3.update(t3.questionText, t3.id), true) : this.clearArchSurveyQuestion(e3); + } + getArchSurveyForm(e3) { + var t3; + return null === (t3 = (null == e3 ? void 0 : e3.parentFlow).voiceSurveyFlowSettings) || void 0 === t3 ? void 0 : t3.archSurveyForm; + } + setFromSurveyQuestionId(e3, t3, i3) { + var n3; + if (!e3 || !t3) return false; + if (!i3 && (null === (n3 = e3.parent) || void 0 === n3 ? void 0 : n3.isAskSurveyQuestionAction)) return e3.parent.configureFromArchSurveyQuestionId(t3); + const r3 = this.getArchSurveyForm(e3); + if (!r3) return false; + const o2 = (0, l.findSurveyQuestionInForm)(r3, t3, true); + return !!o2 && this.setFromArchSurveyQuestion(e3, o2); + } + setFromSurveyQuestionText(e3, t3, i3, n3) { + var r3, o2; + if (!e3 || !t3) return false; + if (!n3 && (null === (r3 = e3.parent) || void 0 === r3 ? void 0 : r3.isAskSurveyQuestionAction)) return null === (o2 = e3.parent) || void 0 === o2 ? void 0 : o2.configureFromArchSurveyQuestionText(t3, i3); + const a2 = this.getArchSurveyForm(e3); + if (!a2) return false; + const s2 = (0, l.findSurveyQuestionInForm)(a2, t3, i3, true); + return !!s2 && this.setFromArchSurveyQuestion(e3, s2); + } + getSurveyQuestion(e3, t3, i3, n3) { + if (!e3.isLiteralMode) return; + const r3 = this.getArchSurveyForm(e3); + r3 && (0, l.findSurveyQuestionInForm)(r3, t3, i3, true); + } + } + t2.SurveyQuestionType = c, c.typeIdentifier = u.expressionTypeNames.surveyQuestion; + }, 64287: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.ComplexType = void 0; + const n2 = i2(31635), r2 = i2(17604), o = n2.__importDefault(i2(92140)), a = i2(14394), s = i2(24032), l = i2(21647), u = (n2.__importStar(i2(12847)), i2(71874)), d = i2(71874), c = i2(27491), p = i2(80428), _ = i2(94765), h = i2(47957), m = (0, s.getTopic)("ComplexType"); + class g extends _.ExpressionType { + constructor(e3, t3, i3) { + super(e3, t3, i3), this.typeIdentifier = t3.support.expressionDataType, this.model.additionalProperties && (this.additionLiteralProperties = o.default.isArray(this.model.additionalProperties) ? this.model.additionalProperties : [this.model.additionalProperties]); + } + get className() { + return "ComplexType"; + } + canConvertLitToExpression(e3) { + return this.expressionType === p.expressionTypeNames.worktypeStatus ? c.expressionDataService.isFunctionTextAvailableForFlowTypeAndOperandTypes("FindWorktypeStatus", e3, [a.globalTypes.string]) : (this.allowLiteralSelect, false); + } + _getLiteralValueOfExpression() { + return ""; + } + convertLitToExpression(e3, t3) { + return this.canConvertLitToExpression(e3) && this.expressionType === p.expressionTypeNames.worktypeStatus && t3 ? `FindWorktypeStatus("${t3}")` : ""; + } + createExpressionOptionClass() { + return new l.ExpressionTypeComplexOptions(this.isCollection).setTypeIdentifier(this.typeIdentifier); + } + get propertiesAllowAssignment() { + return this.model.propertiesAllowAssignment || this.additionLiteralProperties; + } + get supportsLiteralEditor() { + return this.allowLiteralSelect; + } + getLiteralValues(e3) { + if (this.allowLiteralSelect) return e3.parentFlow.getComplexTypeLiteralValues(e3); + } + validateLiteral(e3, t3) { + const i3 = super.validateLiteral(e3, t3, true); + return i3 && t3.isLiteralMode && this.allowLiteralSelect && (this.getLiteralValues(t3).find((e4) => e4.id === t3.val) || e3.addExpressionError(t3, (0, r2.sprintf)(h.errors.invalidValue, t3.label))), i3; + } + setPropertiesAsLiteral(e3, t3) { + this.allowLiteralSelect ? Object.entries(t3).forEach(([t4, i3]) => { + const n3 = e3.getProperty(t4); + n3 && n3.setAsLiteral(i3); + }) : m.errorWithStack(null, `Unable to call setPropertiesAsLiteral on type ${this.expressionType} as type does not allow literalSelect.`); + } + setPropertiesAsLiteralById(e3, t3) { + this._setPropertiesAsLiteralInternal(e3, t3, false); + } + setPropertiesAsLiteralByName(e3, t3) { + this._setPropertiesAsLiteralInternal(e3, t3, true); + } + _setPropertiesAsLiteralInternal(e3, t3, i3) { + if (!this.allowLiteralSelect) return; + const n3 = i3 ? "setPropertiesAsLiteralByName" : "setPropertiesAsLiteralById"; + if (this.expressionType === p.expressionTypeNames.worktypeStatus) { + const r3 = i3 ? "name" : "id", o2 = i3 ? (0, d.getWorktypeStatusByName)(t3, e3.parentFlow) : (0, u.getWorktypeStatusById)(t3, e3.parentFlow); + o2.id ? (e3.update(o2.name, o2.id), this.setPropertiesAsLiteral(e3, o2)) : (m.errorWithStack(null, `Error processing ${n3} on type ${this.expressionType}. No match found for worktype status with ${r3} ${t3}.`), e3.setAsNoValue()); + } else m.errorWithStack(null, `Unable to call ${n3} on type ${this.expressionType}`); + } + } + t2.ComplexType = g; + }, 64288: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.UtilizationLabel = void 0; + const n2 = i2(31635), r2 = i2(80295), o = i2(19596); + class a extends o.DataContract { + constructor(e3) { + super(e3); + } + get id() { + return this._id; + } + set id(e3) { + this._id = e3; + } + get name() { + return this._name; + } + set name(e3) { + this._name = e3; + } + get displayName() { + return this._name; + } + set displayName(e3) { + this._name = e3; + } + get label() { + return this._name; + } + set label(e3) { + this._name = e3; + } + } + t2.UtilizationLabel = a, n2.__decorate([(0, r2.enumerable)(true), n2.__metadata("design:type", String), n2.__metadata("design:paramtypes", [String])], a.prototype, "id", null), n2.__decorate([(0, r2.enumerable)(true), n2.__metadata("design:type", String), n2.__metadata("design:paramtypes", [String])], a.prototype, "name", null), n2.__decorate([(0, r2.enumerable)(true), n2.__metadata("design:type", String), n2.__metadata("design:paramtypes", [String])], a.prototype, "displayName", null), n2.__decorate([(0, r2.enumerable)(true), n2.__metadata("design:type", String), n2.__metadata("design:paramtypes", [String])], a.prototype, "label", null); + }, 64306: (e2, t2, i2) => { + "use strict"; + var n2; + Object.defineProperty(t2, "__esModule", { value: true }), t2.BaseBotSettingsSequence = void 0; + const r2 = i2(31635), o = r2.__importDefault(i2(92140)), a = i2(69149); + t2.BaseBotSettingsSequence = class { + constructor() { + n2.set(this, { _label: void 0, availableLanguages: { "ar-ae": "defaultSequence", "ar-eg": "defaultSequence", "ar-sa": "defaultSequence", "ca-es": "defaultSequence", "cs-cz": "defaultSequence", "da-dk": "defaultSequence", "de-ch": "defaultSequence", "de-de": "defaultSequence", "el-gr": "defaultSequence", "en-au": "defaultSequence", "en-gb": "defaultSequence", "en-us": "defaultSequence", "es-es": "defaultSequence", "es-mx": "defaultSequence", "es-us": "defaultSequence", "eu-es": "defaultSequence", "fi-fi": "defaultSequence", "fil-ph": "defaultSequence", "fr-be": "defaultSequence", "fr-ca": "defaultSequence", "fr-fr": "defaultSequence", "he-il": "defaultSequence", "hi-in": "defaultSequence", "hu-hu": "defaultSequence", "it-it": "defaultSequence", "ja-jp": "defaultSequence", "ko-kr": "defaultSequence", "ms-my": "defaultSequence", "nb-no": "defaultSequence", "nl-be": "defaultSequence", "nl-nl": "defaultSequence", "pl-pl": "defaultSequence", "pt-br": "defaultSequence", "pt-pt": "defaultSequence", "ru-ru": "defaultSequence", "sv-se": "defaultSequence", "th-th": "defaultSequence", "tr-tr": "defaultSequence", "uk-ua": "defaultSequence", "vi-vn": "defaultSequence", "zh-cn": "defaultSequence", "zh-hk": "defaultSequence", "zh-tw": "defaultSequence" }, builderId: void 0, flowTypeOverrides: {}, languageSequences: {} }); + } + generateLanguageSequencesDefaultSequence(e3, t3, i3) { + t3 || (t3 = ""); + const n3 = { defaultSequence: { _label: `${e3}_${t3}`, partContents: [{ builderPartId: i3 || a.builderPartIds.communication.text, parameters: {} }] } }; + return n3.defaultSequence.partContents[0].parameters[e3] = t3, n3; + } + generateLanguageSequenceConfig(e3, t3, i3, a2) { + const s = o.default.deepClone(r2.__classPrivateFieldGet(this, n2, "f")); + return s._label = e3, s.builderId = t3, s.languageSequences = i3, o.default.isObject(a2) && (s.flowTypeOverrides = a2), s; + } + }, n2 = /* @__PURE__ */ new WeakMap(); + }, 64315: (e2, t2, i2) => { + "use strict"; + const n2 = i2(31635), r2 = i2(12179), o = n2.__importDefault(i2(5478)), a = n2.__importDefault(i2(27203)), s = n2.__importDefault(i2(97891)), l = i2(29505), u = i2(67483), d = i2(67483), c = i2(80428), p = i2(47957); + class _ extends o.default { + static get managedProperties() { + return [{ label: p.utilizationLabel.utilizationLabelLabel, options: l.ExpressionTypeUtilizationLabelOptions.create((e3) => e3.setAsInput().setDescriptionInfo(p.actions.setUtilizationLabel, p.utilizationLabel.setUtilizationLabelDescription).setIninTestingField("setUtilizationLabel")), property: "utilizationLabel", type: c.expressionTypeNames.utilizationLabel }]; + } + constructor(e3, t3) { + super(e3.parentFlow, e3), this._loadModel(t3); + } + static get branchInfo() { + return a.default.successFailure; + } + _getPossibleErrors() { + return this.parentFlow.isWorkitemFlow ? d.getSetUtilizationLabelFailureReasonsWithWorkitem : u.getSetUtilizationLabelFailureReasons; + } + } + _.info = s.default.createActionInfo({ actionClass: _, canBeInTask: true, helpTopic: r2.helpTopics.actions.setUtilizationLabel, modelClass: i2(94449), name: p.actions.setUtilizationLabel, scriptingName: "ArchActionSetUtilizationLabel" }), t2.A = _; + }, 64410: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.digitalBotFlowListManager = t2.DigitalBotFlowListManager = void 0; + const n2 = i2(31635).__importStar(i2(24032)), r2 = i2(6109), o = i2(96618), a = i2(27862); + class s extends r2.FlowListManager { + get dependencyType() { + return a.DigitalBotFlow; + } + constructor() { + super(), this.topic = n2.getTopic("DigitalBotFlowListManager"), this.additionalQueryParams = { type: o.flowTypes.flowTypeDigitalBot }, this.className = "DigitalBotFlowListManager", this.flowType = o.flowTypes.flowTypeDigitalBot, this._rawServerCache = {}, this._initialize(); + } + } + t2.DigitalBotFlowListManager = s, t2.digitalBotFlowListManager = new s(); + }, 64420: (e2, t2, i2) => { + const n2 = i2(44250), r2 = i2(24893), o = i2(93161), a = i2(59684), s = i2(38416).default, l = i2(68374), u = i2(49804), d = i2(17848), c = i2(69770), p = i2(17599), _ = i2(62228), h = i2(35635), m = i2(98962), g = i2(6022), f = i2(69773), T = i2(36019).default, y = i2(23695), S = i2(88), A = i2(19098), N = i2(69946); + function O() { + } + const I = new O(); + O.prototype.checkIn = T.request("POST", "{public-api.apps}/api/v2/flows/actions/checkin?flow={id}", d), O.prototype.checkOut = T.request("POST", "{public-api.apps}/api/v2/flows/actions/checkOut?flow={id}", d), O.prototype.createFlow = T.request("POST", "{public-api.apps}/api/v2/flows", d), O.prototype.deactivate = T.request("POST", "{public-api.apps}/api/v2/flows/actions/deactivate?flow={id}", d), O.prototype.deleteFlow = T.request("DELETE", "{public-api.apps}/api/v2/flows/{id}", null), O.prototype.deleteBulkFlows = T.request("DELETE", "{public-api.apps}/api/v2/flows", null), O.prototype.getConfiguration = T.request("GET", "{public-api.apps}/api/v2/flows/{id}/latestConfiguration", a), O.prototype.getBotFlowConfiguration = T.request("GET", "{public-api.apps}/api/v2/flows/{id}/latestConfiguration", r2), O.prototype.getCommonModuleFlowConfiguration = T.request("GET", "{public-api.apps}/api/v2/flows/{id}/latestConfiguration", s), O.prototype.getEmailFlowConfiguration = T.request("GET", "{public-api.apps}/api/v2/flows/{id}/latestConfiguration", l), O.prototype.getEmailSendFlowConfiguration = T.request("GET", "{public-api.apps}/api/v2/flows/{id}/latestConfiguration", u), O.prototype.getWorkflowConfiguration = T.request("GET", "{public-api.apps}/api/v2/flows/{id}/latestConfiguration", y), O.prototype.getVoiceFlowConfiguration = T.request("GET", "{public-api.apps}/api/v2/flows/{id}/latestConfiguration", S), O.prototype.getVoiceSurveyFlowConfiguration = T.request("GET", "{public-api.apps}/api/v2/flows/{id}/latestConfiguration", A), O.prototype.getWorkitemFlowConfiguration = T.request("GET", "{public-api.apps}/api/v2/flows/{id}/latestConfiguration", N), O.prototype.getFlow = T.request("GET", "{public-api.apps}/api/v2/flows/{id}", d), O.prototype.getFlowInfoForVersion = T.request("GET", "{public-api.apps}/api/v2/flows/{flowId}/versions/{flowVersion}", d), O.prototype.getFlows = T.request("GET", "{public-api.apps}/api/v2/flows?includeSchemas=true", _), O.prototype.getFlowsDivisionViews = T.request("GET", "{public-api.apps}/api/v2/flows/divisionViews?includeSchemas=true", o), O.prototype.postFlowLaunch = T.request("POST", "{public-api.apps}/api/v2/flows/executions", c), O.prototype.postDigitalBotFlowLaunch = T.request("POST", "{public-api.apps}/api/v2/textbots/botflows/sessions", p), O.prototype.postHistoryRequest = T.request("POST", "{public-api.apps}/api/v2/flows/{id}/history", h), O.prototype.getHistoryResults = T.request("GET", "{public-api.apps}/api/v2/flows/{flowId}/history/{operationId}", n2), O.prototype.getVersionConfiguration = T.request("GET", "{public-api.apps}/api/v2/flows/{id}/versions/{version}/configuration", a), O.prototype.getVersionBotFlowConfiguration = T.request("GET", "{public-api.apps}/api/v2/flows/{id}/versions/{version}/configuration", r2), O.prototype.getVersionCommonModuleConfiguration = T.request("GET", "{public-api.apps}/api/v2/flows/{id}/versions/{version}/configuration", s), O.prototype.getVersionEmailFlowConfiguration = T.request("GET", "{public-api.apps}/api/v2/flows/{id}/versions/{version}/configuration", l), O.prototype.getVersionEmailSendFlowConfiguration = T.request("GET", "{public-api.apps}/api/v2/flows/{id}/versions/{version}/configuration", u), O.prototype.getVersionWorkflowConfiguration = T.request("GET", "{public-api.apps}/api/v2/flows/{id}/versions/{version}/configuration", y), O.prototype.getVersionVoiceFlowConfiguration = T.request("GET", "{public-api.apps}/api/v2/flows/{id}/versions/{version}/configuration", S), O.prototype.getVersionVoiceSurveyFlowConfiguration = T.request("GET", "{public-api.apps}/api/v2/flows/{id}/versions/{version}/configuration", A), O.prototype.getVersionWorkitemFlowConfiguration = T.request("GET", "{public-api.apps}/api/v2/flows/{id}/versions/{version}/configuration", N), O.prototype.getFlowVersions = T.request("GET", "{public-api.apps}/api/v2/flows/{flowId}/versions", g), O.prototype.getFlowInfoForVersion = T.request("GET", "{public-api.apps}/api/v2/flows/{flowId}/versions/{flowVersion}", d), O.prototype.publishAsync = T.request("POST", "{public-api.apps}/api/v2/flows/actions/publish?flow={id}", h), O.prototype.enableFlowDebug = T.request("POST", "{public-api.apps}/api/v2/flows/actions/debug?flow={id}&version={version} ", d), O.prototype.revert = T.request("POST", "{public-api.apps}/api/v2/flows/actions/revert?flow={id}", d), O.prototype.saveConfiguration = T.request("POST", "{public-api.apps}/api/v2/flows/{id}/versions", m), O.prototype.unlock = T.request("POST", "{public-api.apps}/api/v2/flows/actions/unlock?flow={id}", d), O.prototype.updateMetaData = T.request("PUT", "{public-api.apps}/api/v2/flows/{id}", d), I.createFlow.ignore([f.ARCHITECT_FLOW_ALREADY_EXISTS.code, f.ARCHITECT_FLOW_CANNOT_CREATE_TYPE_MAX_EXCEEDED.code, f.ARCHITECT_FLOW_EXCEEDED_MAX_AMOUNT.code]), I.checkIn.addOptions({ ignoreBadResponse: true }), [I.getConfiguration, I.getBotFlowConfiguration, I.getCommonModuleFlowConfiguration, I.getEmailFlowConfiguration, I.getEmailSendFlowConfiguration, I.getWorkflowConfiguration, I.getVoiceFlowConfiguration, I.getVoiceSurveyFlowConfiguration, I.getWorkitemFlowConfiguration, I.getVersionConfiguration, I.getVersionBotFlowConfiguration, I.getVersionCommonModuleConfiguration, I.getVersionEmailFlowConfiguration, I.getVersionEmailSendFlowConfiguration, I.getVersionWorkflowConfiguration, I.getVersionVoiceFlowConfiguration, I.getVersionVoiceSurveyFlowConfiguration, I.getVersionWorkitemFlowConfiguration].forEach((e3) => { + e3.ignore(f.FLOW_NO_CONFIG_AVAILABLE.code), e3.ignore(f.NOT_FOUND.code); + }), I.getFlow.ignore(f.ARCHITECT_FLOW_DELETED.code), I.updateMetaData.ignore(f.ARCHITECT_FLOW_ALREADY_EXISTS.code), I.getFlows.addOptions({ allowRequestChunking: true, chunkingNumber: 25, chunkingParamName: "id", ignoreBadResponse: true }), I.deleteBulkFlows.addOptions({ allowRequestChunking: true, chunkingParamName: "id", chunkResultsHandling: "chunkResponseToArray", ignoreBadResponse: true }), I.getFlow.addOptions({ ignoreBadResponse: true }), I.getFlowsDivisionViews.addOptions({ ignoreBadResponse: true }), I.getFlowVersions.addOptions({ ignoreBadResponse: true }), I.getFlowInfoForVersion.addOptions({ ignoreBadResponse: true }), e2.exports = I; + }, 64437: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.audioConnectorManager = t2.AudioConnectorManager = void 0; + const n2 = i2(31635), r2 = n2.__importStar(i2(21270)), o = n2.__importStar(i2(1360)), a = n2.__importStar(i2(24032)), s = n2.__importDefault(i2(58668)), l = i2(30801), u = n2.__importDefault(i2(47532)), d = i2(81801), c = i2(47957), p = i2(55892), _ = i2(27862); + class h extends u.default { + get requiredAuth() { + return d.externalAuthorizations.authStrings.integrationView; + } + get dependencyType() { + return _.AudioConnectorBot; + } + constructor() { + super(), this.topic = a.getTopic("AudioConnectorManager"), this._rawServerCache = {}, this.actionPropertyForUsageSearch = "botIntegration", this.actionsForUsageSearch = [l.callAudioConnectorActionType], this.apiCallList = r2.getAudioConnectorBots, this.apiCallSingle = r2.getAudioConnectorBot, this.className = "AudioConnectorManager", this.defaultMatchingStyle = o.exactMatch, this.dependencyContext = c.actions.callAudioConnector, this.searchField = "name", this.securityError = true, this.suppressSearch = true, this.shouldRequestAllPages = true, this.defaultPageSize = 100, this.uiMetadataSectionName = "audioConnector", this._initialize(); + } + _createItemViewModel(e3) { + return new s.default(e3); + } + get _networkModel() { + return p; + } + } + t2.AudioConnectorManager = h, t2.audioConnectorManager = new h(); + }, 64472: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.ExpressionTypeDateTimeOptions = void 0; + const n2 = i2(31635), r2 = i2(80295), o = i2(65615), a = i2(55909), s = i2(33951); + class l extends o.BaseExpressionTypeCollectionOptions { + static create(e3, t3) { + return new this(t3).invokeOptionsCallback(e3); + } + constructor(e3) { + super(e3), this._timeOnly = false, (0, r2.makeUnenumerable)(this, "_timeOnly"); + } + _setFromOptions(e3) { + super._setFromOptions(e3), this._setOptionIfSet(this.setTimeOnly, e3.timeOnly); + } + get isExpressionTypeDateTimeOptions() { + return true; + } + get className() { + return "ExpressionTypeDateTimeOptions"; + } + get timeOnly() { + return this._timeOnly; + } + set timeOnly(e3) { + this._timeOnly = s.ParameterValidator.expectBool(e3, () => a.ParameterInfo.createPropertySet(this.className, "timeOnly", "value")); + } + setTimeOnly(e3) { + return this.timeOnly = e3, this; + } + } + t2.ExpressionTypeDateTimeOptions = l, n2.__decorate([(0, r2.enumerable)(true), n2.__metadata("design:type", Boolean), n2.__metadata("design:paramtypes", [Object])], l.prototype, "timeOnly", null); + }, 64499: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.default = function(e3, t3, i3) { + t3 || (t3 = e3); + const n3 = a.supportsTTSPlaybackForFlowType(e3, i3) && a.hasFlowCreationLocalizedText(e3), h = new u(); + return h.defaultLanguage = e3, h.initialPrompts = s.emptyAudio, h.variables = [], h.errorHandling = new d(), h.errorHandling.handlingType = o.default.Disconnect, h.errorHandling.audio = n3 ? (0, l.toAudioTtsJson)(p(e3).errorHandlingTTS) : s.emptyAudio, h.errorHandling.queue = new r2.default({ config: { emp: { pos: 1, text: "", type: "que" } }, text: "", uiMetaData: { mode: 1 } }), h.speechRecCompanyDirectory = _(), h.disableAsr = _(), h.disableAsrCompanyDirectory = new r2.default({ config: { lit: { pos: 1, text: "true", type: "bln" } }, text: "true", uiMetaData: { mode: 1 } }), h.speechRecEngine = new r2.default({ config: { lit: { pos: 1, text: "", type: "str" } }, uiMetaData: { mode: 1 } }), h.flowMetaData = new c({ flowDocumentVersion: "1.0", minimumServerVersion: "1.0", features: [], ttsDataVersion: "1.0" }), h.flowSequenceItemList = [], h; + }; + const n2 = i2(31635), r2 = n2.__importDefault(i2(7401)), o = n2.__importDefault(i2(15244)), a = n2.__importStar(i2(98442)), s = i2(12104), l = i2(46503), u = i2(59684), d = i2(2053), c = i2(89266), p = i2(21733); + function _() { + return new r2.default({ config: { lit: { pos: 1, text: "false", type: "bln" } }, text: "false", uiMetaData: { mode: 1 } }); + } + }, 64576: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(83663)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "shippingOption"; + } + get displayTypeName() { + return "ArchValueShippingOption"; + } + get isArchValueShippingOption() { + return true; + } + get label() { + return this._getAssignableProperty("label"); + } + get identifier() { + return this._getAssignableProperty("identifier"); + } + get shippingDetails() { + return this._getAssignableProperty("shippingDetails"); + } + get price() { + return this._getAssignableProperty("price"); + } + setLiteralShippingOption(e3, t3, i3, n3, r3) { + this.label.setLiteralString(e3), this.identifier.setLiteralString(t3), this.price.setLiteralAmountAndCode(i3, r3), this.shippingDetails.setLiteralString(n3); + } + } + t2.default = r2; + }, 64584: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importDefault(i2(92140)), o = n2.__importDefault(i2(35882)), a = n2.__importDefault(i2(22599)), s = a.default.create().addFuncCall("AreEqual").addTokenBooleanTrue().addFuncParameterSeparator().addTokenReplacement(0).addFuncParameterSeparator().addTokenReplacement(1).addFuncCallEnd().verifySprintfStringAndInitialize("AreEqual(true, %1$s, %2$s)"), l = a.default.create().addOperatorNot().addFuncCall("AreEqual").addTokenBooleanTrue().addFuncParameterSeparator().addTokenReplacement(0).addFuncParameterSeparator().addTokenReplacement(1).addFuncCallEnd().verifySprintfStringAndInitialize("!AreEqual(true, %1$s, %2$s)"), u = a.default.create().addTokenReplacement(0).addOperatorAnd().addTokenReplacement(1).verifySprintfStringAndInitialize("%1$s And %2$s"), d = a.default.create().addFuncCall("If").addFuncCallParmGenerationBucket("condition").addFuncParameterSeparator().addFuncCallParmGenerationBucket("true").addFuncParameterSeparator().addFuncCallParmGenerationBucket("false").verifySprintfStringAndInitialize("If(, , "); + class c { + constructor(e3) { + Object.defineProperties(this, { _languageVarName: { writable: true, enumerable: false }, _sortValue: { writable: true, enumerable: false }, _json: { value: r2.default.isObject(e3) ? e3 : {}, writable: false, enumerable: false } }); + } + static get NO_CRITERIA() { + return c.__NO_CRITERIA__; + } + static createForLanguageTag(e3) { + return new c().setLanguageTag(e3); + } + static createForLanguageTagAndOutputMode(e3, t3) { + return new c().setLanguageTag(e3).setOutputMode(t3); + } + static createForOutputMode(e3) { + return new c().setOutputMode(e3); + } + static createFromBuilderPartContainerCriteria(e3) { + return new c().setFromJsonObject(e3.json); + } + static createFromJsonObject(e3) { + return new c().setFromJsonObject(e3); + } + _resetCriteriaPieces() { + this.setLanguageTag(void 0), this.setOutputMode(void 0), this._sortValue = void 0; + } + get className() { + return "BuilderPartContainerCriteriaViewModel"; + } + setFromJsonObject(e3) { + return this._resetCriteriaPieces(), r2.default.isObject(e3) ? this.setLanguageTag(e3.languageTag).setOutputMode(e3.outputMode) : this; + } + getGeneration(e3) { + if (this === c.__NO_CRITERIA__) return new o.default(); + const t3 = []; + let i3; + if (this._json.languageTag) { + const n3 = e3.parentFlow.variableGroup.getVariable("__INTERACTION_LANGUAGE__"); + i3 = s.createGeneration(), i3.setReplacementTokens([n3.name, `"${this._json.languageTag}"`]), t3.push(i3); + } + switch (this._json.outputMode && (i3 = "voice" === this._json.outputMode ? s.createGeneration() : l.createGeneration(), i3.setReplacementTokens(["Session.ChannelType", '"call"']), t3.push(i3)), t3.length) { + case 1: { + const e4 = d.createGeneration(); + return e4.addGenerationToBucket(t3[0], "condition"), e4; + } + case 2: { + const e4 = d.createGeneration(), i4 = u.createGeneration(); + return i4.setReplacementTokens([t3[0].generate(), t3[1].generate()]), e4.addGenerationToBucket(i4, "condition"), e4; + } + default: { + const i4 = { generationCount: t3.length, builderPartContainerDefId: e3.builderPartDefId, builderDefId: e3.builderViewModel.builderDefId }; + throw `Builder container part criteria unable to generate "If" expression generation. Info: ${JSON.stringify(i4)}`; + } + } + } + hasLanguageTag(e3) { + return this._json.languageTag === (e3 ? e3.toLowerCase() : e3); + } + hasOutputMode(e3) { + return this._json.outputMode === (e3 ? e3.toLowerCase() : e3); + } + get json() { + return this._json; + } + isEqualTo(e3) { + return r2.default.isObject(e3) && this._json.languageTag === e3.languageTag && this._json.outputMode === e3.outputMode; + } + get languageTag() { + return this._json.languageTag; + } + get outputMode() { + return this._json.outputMode; + } + setLanguageTag(e3) { + return this._json.languageTag = r2.default.isString(e3) ? e3.toLowerCase() : e3, this._sortValue = void 0, this; + } + setOutputMode(e3) { + return this._json.outputMode = r2.default.isString(e3) ? e3.toLowerCase() : e3, this._sortValue = void 0, this; + } + get sortValue() { + return r2.default.isUndefined(this._sortValue) && (this._sortValue = `0${this._json.languageTag ? "0" : "1"}${this._json.outputMode ? "0" : "1"}${this._json.languageTag ? this._json.languageTag : "__none-lang__"}/${this._json.outputMode ? this._json.outputMode : "__none-outputMode__"}`), this._sortValue; + } + destroy() { + this._languageVarName = void 0, this._resetCriteriaPieces(); + } + } + c.__NO_CRITERIA__ = new c(), t2.default = c; + }, 64599: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.BaseFindSystemObjectsByIdActionModel = void 0; + const n2 = i2(31635), r2 = i2(7340), o = i2(80295), a = i2(80295), s = i2(7401); + class l extends r2.BaseFindSystemObjectActionModel { + constructor(e3) { + super(e3), (0, a.makeUnenumerable)(this, "_findIds"); + } + get findIds() { + return this._findIds; + } + set findIds(e3) { + this._findIds = this.reviveItem(e3, s); + } + pasteReIdOrRename(e3) { + super.pasteReIdOrRename(e3), this._findIds.pasteReIdOrRename(e3); + } + pasteResolveOldToNewValues(e3) { + super.pasteResolveOldToNewValues(e3), this._findIds.pasteResolveOldToNewValues(e3); + } + } + t2.BaseFindSystemObjectsByIdActionModel = l, n2.__decorate([(0, o.enumerable)(true), n2.__metadata("design:type", Object), n2.__metadata("design:paramtypes", [Object])], l.prototype, "findIds", null); + }, 64647: (e2, t2, i2) => { + "use strict"; + const n2 = i2(31635), r2 = n2.__importDefault(i2(73198)), o = n2.__importStar(i2(63824)), a = i2(79467), s = i2(81516), l = i2(81562), u = i2(12179), d = i2(12457), c = n2.__importDefault(i2(97891)), p = n2.__importDefault(i2(84568)), _ = i2(80428), h = i2(47957); + class m extends p.default { + constructor(e3, t3) { + super(e3), this.flowListManager = l.secureCallFlowListManager.getBriefManagerWithFallback(), this.flowTypeResource = h.flow.types.secureCall, this._loadModel(t3); + } + get className() { + return "FlowSecureTransferAction"; + } + static get managedProperties() { + return [{ label: h.transfer.connectTimeout, options: a.ExpressionTypeDurationOptions.create((e3) => e3.setAllowEmptyConfig(true).setAllowFlowLevelDefault(true).setScriptingPropertyName("connectTimeout").setFlowLevelDefaultHasDefault(false).setAsInput(true).setDurationStyle(o.durationStyles.secondsAndTenthsDuration).setDefaultText(r2.default.litDurationFifteenSeconds).setIsOptional(true).setIninTestingField("connect-timeout-expression").facets.setMinDur(10 * r2.default.msPerSecond, true).setMaxDur(r2.default.msPerMinute, true)), yamlOptions: m.createYamlOptions("connTimeout", (e3) => e3.setPropertyName("connectTimeout").setExportOrder(50)), property: "connTimeout", type: _.expressionTypeNames.duration }, { property: "invocationData", label: h.transfer.invocationData, type: _.expressionTypeNames.string, options: s.ExpressionTypeStringOptions.create((e3) => e3.setIsOptional(false).setIninTestingField("flow-transfer-invocationdata").setDisableSpellcheck(true)), yamlOptions: m.createYamlOptions("invocationData", (e3) => e3.setExportOrder(60)) }]; + } + getDetails() { + return this.flowId ? new d.ActionDetails([h.flow.flow], [this.flowName]) : null; + } + } + m.info = c.default.createActionInfo({ actionClass: m, canBeInTask: true, canBeTreeNode: true, helpTopic: u.helpTopics.actions.transferFlowSecure, modelClass: i2(44951), name: h.actions.transfers.secureFlow, scriptingName: "ArchActionTransferToFlowSecure", actionIsAlwaysSecure: true }), t2.A = m; + }, 64718: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.BaseIntegrationsActionCategoryManager = void 0; + const n2 = i2(31635).__importDefault(i2(47532)), r2 = i2(81801), o = i2(40174), a = i2(82185); + class s extends n2.default { + constructor() { + super(...arguments), this._rawServerCache = {}, this.apiCallList = o.getCategories, this.apiCallSingle = void 0, this.noApiCallSingle = true, this.suppressSearch = true; + } + get requiredAuth() { + return r2.externalAuthorizations.authStrings.integrationsActionView; + } + _createItemViewModel(e3) { + return new a(e3); + } + } + t2.BaseIntegrationsActionCategoryManager = s; + }, 64720: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.ExpressionTypeImageOptions = void 0; + const n2 = i2(65615); + class r2 extends n2.BaseExpressionTypeCollectionOptions { + static create(e3, t3) { + return new this(t3).invokeOptionsCallback(e3); + } + constructor(e3) { + super(e3); + } + get className() { + return "ExpressionTypeImageOptions"; + } + get isExpressionTypeImageOptions() { + return true; + } + } + t2.ExpressionTypeImageOptions = r2; + }, 64751: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importDefault(i2(94225)), o = i2(43610), a = n2.__importDefault(i2(45894)); + class s extends a.default { + constructor(e3) { + super(e3, o.contactListManager); + } + get _globalTypeName() { + return "contactList"; + } + get displayTypeName() { + return "ArchValueContactList"; + } + get isArchValueContactList() { + return true; + } + setLiteralByContactListIdAsync(e3, t3) { + return n2.__awaiter(this, void 0, void 0, function* () { + return this._checkItemIsValidLiteralString(this._infoParm("contactListId", "setLiteralByContactListIdAsync"), e3), this._checkItemIsValidFunction(this._infoParm("callbackFunction", "setLiteralByContactListIdAsync"), t3, true), this._setLiteralByIdAsync(e3).then(() => r2.default.executeCallback(this, "setLiteralByContactListIdAsync", t3, this)); + }); + } + setLiteralByContactListNameAsync(e3, t3) { + return n2.__awaiter(this, void 0, void 0, function* () { + return this._checkItemIsValidLiteralString(this._infoParm("contactListName", "setLiteralByContactListNameAsync"), e3), this._checkItemIsValidFunction(this._infoParm("callbackFunction", "setLiteralByContactListNameAsync"), t3, true), this._setLiteralByValueAsync(e3).then(() => r2.default.executeCallback(this, "setLiteralByContactListNameAsync", t3, this)); + }); + } + } + t2.default = s; + }, 64772: function(e2, t2, i2) { + "use strict"; + var n2, r2 = this && this.__extends || (n2 = function(e3, t3) { + return n2 = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(e4, t4) { + e4.__proto__ = t4; + } || function(e4, t4) { + for (var i3 in t4) Object.prototype.hasOwnProperty.call(t4, i3) && (e4[i3] = t4[i3]); + }, n2(e3, t3); + }, function(e3, t3) { + if ("function" != typeof t3 && null !== t3) throw new TypeError("Class extends value " + String(t3) + " is not a constructor or null"); + function i3() { + this.constructor = e3; + } + n2(e3, t3), e3.prototype = null === t3 ? Object.create(t3) : (i3.prototype = t3.prototype, new i3()); + }); + Object.defineProperty(t2, "__esModule", { value: true }), t2.AsyncAction = void 0; + var o = i2(71666), a = i2(8284), s = i2(54830), l = (function(e3) { + function t3(t4, i3) { + var n3 = e3.call(this, t4, i3) || this; + return n3.scheduler = t4, n3.work = i3, n3.pending = false, n3; + } + return r2(t3, e3), t3.prototype.schedule = function(e4, t4) { + var i3; + if (void 0 === t4 && (t4 = 0), this.closed) return this; + this.state = e4; + var n3 = this.id, r3 = this.scheduler; + return null != n3 && (this.id = this.recycleAsyncId(r3, n3, t4)), this.pending = true, this.delay = t4, this.id = null !== (i3 = this.id) && void 0 !== i3 ? i3 : this.requestAsyncId(r3, this.id, t4), this; + }, t3.prototype.requestAsyncId = function(e4, t4, i3) { + return void 0 === i3 && (i3 = 0), a.intervalProvider.setInterval(e4.flush.bind(e4, this), i3); + }, t3.prototype.recycleAsyncId = function(e4, t4, i3) { + if (void 0 === i3 && (i3 = 0), null != i3 && this.delay === i3 && false === this.pending) return t4; + null != t4 && a.intervalProvider.clearInterval(t4); + }, t3.prototype.execute = function(e4, t4) { + if (this.closed) return new Error("executing a cancelled action"); + this.pending = false; + var i3 = this._execute(e4, t4); + if (i3) return i3; + false === this.pending && null != this.id && (this.id = this.recycleAsyncId(this.scheduler, this.id, null)); + }, t3.prototype._execute = function(e4, t4) { + var i3, n3 = false; + try { + this.work(e4); + } catch (e5) { + n3 = true, i3 = e5 || new Error("Scheduled action threw falsy error"); + } + if (n3) return this.unsubscribe(), i3; + }, t3.prototype.unsubscribe = function() { + if (!this.closed) { + var t4 = this.id, i3 = this.scheduler, n3 = i3.actions; + this.work = this.state = this.scheduler = null, this.pending = false, s.arrRemove(n3, this), null != t4 && (this.id = this.recycleAsyncId(i3, t4, null)), this.delay = null, e3.prototype.unsubscribe.call(this); + } + }, t3; + })(o.Action); + t2.AsyncAction = l; + }, 64792: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(81574)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "journeyReferrer"; + } + get url() { + } + get domain() { + } + get hostname() { + } + get keywords() { + } + get pathname() { + } + get queryString() { + } + get fragment() { + } + get name() { + } + get medium() { + } + get displayTypeName() { + return "ArchValueJourneyReferrer"; + } + get isArchValueJourneyReferrer() { + return true; + } + } + t2.default = r2; + }, 64807: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(55299); + class r2 extends n2.BaseClass { + constructor(e3) { + super(), this.model = e3; + } + get className() { + return "OAuthClientViewModel"; + } + get id() { + return this.model.id; + } + get name() { + return this.model.name; + } + get scope() { + return this.model.scope; + } + } + t2.default = r2; + }, 64832: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.createBuilders = function() { + r2.default.initialize(), a.initialize(), o.default.initialize(); + }; + const n2 = i2(31635), r2 = n2.__importDefault(i2(99131)), o = n2.__importDefault(i2(63145)), a = i2(85167); + }, 64836: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(67432)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get isImageViewModel() { + return true; + } + } + t2.default = r2; + }, 64847: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importDefault(i2(94225)), o = i2(32282), a = n2.__importDefault(i2(40559)); + class s extends a.default { + constructor(e3) { + super(e3, o.scheduleGroupManager); + } + get _globalTypeName() { + return "scheduleGroupCollection"; + } + get displayTypeName() { + return "ArchValueScheduleGroupCollection"; + } + get _searchByValueSearchProperty() { + return "name"; + } + addLiteralByScheduleGroupIdAsync(e3, t3) { + return n2.__awaiter(this, void 0, void 0, function* () { + return this._checkItemIsValidLiteralString(this._infoParm("scheduleGroupId", "addLiteralByScheduleGroupIdAsync"), e3), this._checkItemIsValidFunction(this._infoParm("callbackFunction", "addLiteralByScheduleGroupIdAsync"), t3, true), this._addLiteralByIdAsync(e3, "scheduleGroup").then(() => r2.default.executeCallback(this, "addLiteralByScheduleGroupIdAsync", t3, this)); + }); + } + addLiteralByScheduleGroupNameAsync(e3, t3) { + return n2.__awaiter(this, void 0, void 0, function* () { + return this._checkItemIsValidLiteralString(this._infoParm("scheduleGroupName", "addLiteralByScheduleGroupNameAsync"), e3), this._checkItemIsValidFunction(this._infoParm("callbackFunction", "addLiteralByScheduleGroupNameAsync"), t3, true), this._addLiteralByValueAsync(e3, "scheduleGroup").then(() => r2.default.executeCallback(this, "addLiteralByScheduleGroupNameAsync", t3, this)); + }); + } + get isArchValueScheduleGroupCollection() { + return true; + } + } + t2.default = s; + }, 64948: function(e2, t2, i2) { + "use strict"; + var n2 = this && this.__read || function(e3, t3) { + var i3 = "function" == typeof Symbol && e3[Symbol.iterator]; + if (!i3) return e3; + var n3, r3, o2 = i3.call(e3), a2 = []; + try { + for (; (void 0 === t3 || t3-- > 0) && !(n3 = o2.next()).done; ) a2.push(n3.value); + } catch (e4) { + r3 = { error: e4 }; + } finally { + try { + n3 && !n3.done && (i3 = o2.return) && i3.call(o2); + } finally { + if (r3) throw r3.error; + } + } + return a2; + }, r2 = this && this.__spreadArray || function(e3, t3) { + for (var i3 = 0, n3 = t3.length, r3 = e3.length; i3 < n3; i3++, r3++) e3[r3] = t3[i3]; + return e3; + }; + Object.defineProperty(t2, "__esModule", { value: true }), t2.combineLatest = void 0; + var o = i2(88246), a = i2(65212), s = i2(7652), l = i2(13916), u = i2(99517), d = i2(26404); + t2.combineLatest = function e3() { + for (var t3 = [], i3 = 0; i3 < arguments.length; i3++) t3[i3] = arguments[i3]; + var c = d.popResultSelector(t3); + return c ? u.pipe(e3.apply(void 0, r2([], n2(t3))), l.mapOneOrManyArgs(c)) : a.operate(function(e4, i4) { + o.combineLatestInit(r2([e4], n2(s.argsOrArgArray(t3))))(i4); + }); + }; + }, 64986: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = i2(17604), o = n2.__importDefault(i2(17405)), a = n2.__importDefault(i2(98717)); + class s extends o.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "time"; + } + get displayTypeName() { + return "ArchValueTime"; + } + _checkAndSetLiteral(e3, t3, i3, n3) { + this._checkItem(e3, t3 < 0, `the hours value of '${t3}' is less than the allowed minimum of 0.`), this._checkItem(e3, t3 > 23, `the hours value of '${t3}' is greater than the allowed maximum of 23.`), this._checkItem(e3, i3 < 0, `the minutes value of '${i3}' is less than the allowed minimum of 0.`), this._checkItem(e3, i3 > 59, `the minutes value of '${i3}' is greater than the allowed maximum of 59.`), this._checkItem(e3, n3 < 0, `the minutes value of '${n3}' is less than the allowed minimum of 0.`), this._checkItem(e3, n3 > 59, `the minutes value of '${n3}' is greater than the allowed maximum of 59.`), this._setLiteral(e3, (0, r2.sprintf)("%02d:%02d:%02d", t3, i3, n3)); + } + setLiteralTime(e3) { + const t3 = this._infoParm("time", "setLiteralTime"); + this._checkItemIsValidLiteralString(t3, e3), new RegExp("[0-2][0-9]:[0-5][0-9]:[0-5][0-9]").test(e3) && 8 === e3.length || a.default.itemInvalid(t3, `invalid format. Expected HH:MM:SS for '${e3}' where HH is a two digit hour from 00 to 23, MM is a two digit minute from 00 to 59, and SS is a two digit second from 00 to 59 (ex: '14:33:05').`, this.logStr, this.displayTypeName), this._checkAndSetLiteral(t3, parseInt(e3.substring(0, 2)), parseInt(e3.substring(3, 5)), parseInt(e3.substring(7))); + } + setLiteralTimeParts(e3, t3, i3) { + const n3 = this._infoParm("hours", "setLiteralTimeParts"); + this._checkItemIsValidLiteralInt(n3, e3, false); + const r3 = this._infoParm("minutes", "setLiteralTimeParts"); + this._checkItemIsValidLiteralInt(r3, t3, false); + const o2 = this._infoParm("seconds", "setLiteralTimeParts"); + this._checkItemIsValidLiteralInt(o2, i3, false), this._checkAndSetLiteral(this._infoParm("calculated time", "setLiteralTimeParts"), e3, t3, i3); + } + get isArchValueTime() { + return true; + } + } + t2.default = s; + }, 65011: (e2, t2, i2) => { + const n2 = i2(47957); + e2.exports = [{ displayString: n2.flowOutcomes.failure, id: "FAILURE" }, { displayString: n2.flowOutcomes.success, id: "SUCCESS" }]; + }, 65029: (e2, t2, i2) => { + const n2 = i2(2398), r2 = i2(98962); + function o() { + Object.defineProperties(this, { _debugVersion: { writable: true }, _publishedVersion: { writable: true } }), this.inputSchema = void 0, this.outputSchema = void 0, this.publishedVersion = void 0, o.baseConstructor.apply(this, arguments); + } + n2.extend(o, "BriefFlowEntity"), Object.defineProperties(o.prototype, { debugVersion: { enumerable: true, get: function() { + return this._debugVersion; + }, set: function(e3) { + this._debugVersion = this.reviveItem(e3, r2); + } }, publishedVersion: { enumerable: true, get: function() { + return this._publishedVersion; + }, set: function(e3) { + this._publishedVersion = this.reviveItem(e3, r2); + } } }), e2.exports = o; + }, 65156: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.windowWhen = void 0; + var n2 = i2(76808), r2 = i2(65212), o = i2(17214), a = i2(19724); + t2.windowWhen = function(e3) { + return r2.operate(function(t3, i3) { + var r3, s, l = function(e4) { + r3.error(e4), i3.error(e4); + }, u = function() { + var t4; + null == s || s.unsubscribe(), null == r3 || r3.complete(), r3 = new n2.Subject(), i3.next(r3.asObservable()); + try { + t4 = a.innerFrom(e3()); + } catch (e4) { + return void l(e4); + } + t4.subscribe(s = o.createOperatorSubscriber(i3, u, u, l)); + }; + u(), t3.subscribe(o.createOperatorSubscriber(i3, function(e4) { + return r3.next(e4); + }, function() { + r3.complete(), i3.complete(); + }, l, function() { + null == s || s.unsubscribe(), r3 = null; + })); + }); + }; + }, 65165: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(54063)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "externalFacebookIdCollection"; + } + get displayTypeName() { + return "ArchValueExternalFacebookIdCollection"; + } + get isArchValueExternalFacebookIdCollection() { + return true; + } + } + t2.default = r2; + }, 65212: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.operate = t2.hasLift = void 0; + var n2 = i2(10281); + function r2(e3) { + return n2.isFunction(null == e3 ? void 0 : e3.lift); + } + t2.hasLift = r2, t2.operate = function(e3) { + return function(t3) { + if (r2(t3)) return t3.lift(function(t4) { + try { + return e3(t4, this); + } catch (e4) { + this.error(e4); + } + }); + throw new TypeError("Unable to lift unknown Observable type"); + }; + }; + }, 65218: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = i2(30801), o = n2.__importDefault(i2(56549)), a = n2.__importDefault(i2(94225)), s = n2.__importDefault(i2(66978)), l = n2.__importDefault(i2(11210)), { callbackManager: u } = i2(79963); + class d extends l.default { + constructor(e3) { + super(e3), this._calleeName = this.coreFactory.createArchWrapper(e3.calleeName), this._callbackNumbers = this.coreFactory.createArchWrapper(e3.callbackNumbers), this._queue = this.coreFactory.createArchWrapper(e3.queue); + } + get _actionTypeId() { + return r2.createCallbackActionType; + } + _clearInputs() { + this._scriptInputs = void 0; + } + get displayTypeName() { + return this._scriptingName; + } + get callbackNumber() { + return this.coreFactory.createArchWrapper(this._callbackNumbers._coreExpression.items[0]); + } + get calleeName() { + return this._calleeName; + } + get isArchActionCreateCallback() { + return true; + } + get scriptInputs() { + return this._scriptInputs || (this._scriptInputs = this.coreFactory.createArchBaseValueContainer(this._getCoreViewModel().inputs)), this._scriptInputs; + } + get queue() { + return this._queue; + } + setScriptByNameAsync(e3, t3) { + return this._checkItemIsValidLiteralString(this._infoParm("scriptName", "setScriptByNameAsync"), e3), this._checkItemIsValidFunction(this._infoParm("callbackFunction", "setScriptByNameAsync"), t3, true), o.default.findItemByValueAsync(u, e3, "callback script").then(function(e4) { + return s.default.addPromise(this._coreActionViewModel.setScriptAsync(e4), "setScriptByNameAsync"); + }.bind(this)).then(function() { + return this._clearInputs(), a.default.executeCallback(this, "setScriptByNameAsync", t3, this); + }.bind(this)); + } + setScriptByIdAsync(e3, t3) { + return this._checkItemIsValidLiteralString(this._infoParm("scriptId", "setScriptByIdAsync"), e3), this._checkItemIsValidFunction(this._infoParm("callbackFunction", "setScriptByIdAsync"), t3, true), o.default.findItemByIdAsync(u, e3, "callback script").then(function(e4) { + return s.default.addPromise(this._coreActionViewModel.setScriptAsync(e4), "setScriptByIdAsync"); + }.bind(this)).then(function() { + return this._clearInputs(), a.default.executeCallback(this, "setScriptByIdAsync", t3, this); + }.bind(this)); + } + } + t2.default = d; + }, 65220: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.fileManager = t2.FileManager = void 0; + const n2 = i2(31635), r2 = n2.__importStar(i2(1360)), o = n2.__importStar(i2(90891)), a = n2.__importStar(i2(24032)), s = n2.__importDefault(i2(47532)), l = i2(81801), u = n2.__importDefault(i2(92533)), d = i2(47957), c = i2(27862); + class p extends s.default { + get requiredAuth() { + return l.externalAuthorizations.authStrings.responseAssetView; + } + get dependencyType() { + return c.File; + } + constructor() { + super(), this.topic = a.getTopic("FileManager"), this.apiCallList = o.getFileResponseAssets, this.apiCallSingle = o.getResponseAsset, this._rawServerCache = {}, this.className = "FileManager", this.defaultMatchingStyle = r2.startsWith, this.dependencyContext = d.file.file, this.securityError = true, this.suppressSearch = false, this.uiMetadataSectionName = "files", this.useStartsWithKeywordForExactMatch = true, this.actionsForUsageSearch = [], this.actionPropertyForUsageSearch = "", this._initialize(); + } + _createItemViewModel(e3) { + return new u.default(e3); + } + } + t2.FileManager = p, t2.fileManager = new p(); + }, 65279: function(e2, t2, i2) { + "use strict"; + var n2 = this && this.__values || function(e3) { + var t3 = "function" == typeof Symbol && Symbol.iterator, i3 = t3 && e3[t3], n3 = 0; + if (i3) return i3.call(e3); + if (e3 && "number" == typeof e3.length) return { next: function() { + return e3 && n3 >= e3.length && (e3 = void 0), { value: e3 && e3[n3++], done: !e3 }; + } }; + throw new TypeError(t3 ? "Object is not iterable." : "Symbol.iterator is not defined."); + }; + Object.defineProperty(t2, "__esModule", { value: true }), t2.takeLast = void 0; + var r2 = i2(44885), o = i2(65212), a = i2(17214); + t2.takeLast = function(e3) { + return e3 <= 0 ? function() { + return r2.EMPTY; + } : o.operate(function(t3, i3) { + var r3 = []; + t3.subscribe(a.createOperatorSubscriber(i3, function(t4) { + r3.push(t4), e3 < r3.length && r3.shift(); + }, function() { + var e4, t4; + try { + for (var o2 = n2(r3), a2 = o2.next(); !a2.done; a2 = o2.next()) { + var s = a2.value; + i3.next(s); + } + } catch (t5) { + e4 = { error: t5 }; + } finally { + try { + a2 && !a2.done && (t4 = o2.return) && t4.call(o2); + } finally { + if (e4) throw e4.error; + } + } + i3.complete(); + }, void 0, function() { + r3 = null; + })); + }); + }; + }, 65287: (e2, t2, i2) => { + "use strict"; + var n2, r2, o, a, s, l, u, d, c; + Object.defineProperty(t2, "__esModule", { value: true }), t2.botFlowUserInputSettingsSequences = void 0; + const p = i2(31635), _ = i2(28562), h = i2(697), m = i2(80295), g = i2(64306); + class f extends g.BaseBotSettingsSequence { + get settingsConfirmationNoInputApologySequence() { + const e3 = this.generateLanguageSequencesDefaultSequence("settingsConfirmationNoInputApology"); + return this.generateLanguageSequenceConfig("SettingsConfirmationNoInputApology", _.builderIds.parts.genericCommunication, e3); + } + get settingsConfirmationNoInputApologyDigitalBotSequence() { + const e3 = this.generateLanguageSequencesDefaultSequence("settingsConfirmationNoInputApologyDigitalBot"); + return this.generateLanguageSequenceConfig("SettingsConfirmationNoInputApologyDigitalBot", _.builderIds.parts.genericCommunication, e3); + } + get settingsConfirmationNoMatchApologySequence() { + const e3 = this.generateLanguageSequencesDefaultSequence("settingsConfirmationNoMatchApology"); + return this.generateLanguageSequenceConfig("SettingsConfirmationNoMatchApology", _.builderIds.parts.genericCommunication, e3); + } + get settingsConfirmationNoMatchApologyDigitalBotSequence() { + const e3 = this.generateLanguageSequencesDefaultSequence("settingsConfirmationNoMatchApologyDigitalBot"); + return this.generateLanguageSequenceConfig("SettingsConfirmationNoMatchApologyDigitalBot", _.builderIds.parts.genericCommunication, e3); + } + get settingsNoInputApologySequence() { + const e3 = this.generateLanguageSequencesDefaultSequence("settingsNoInputApology"); + return this.generateLanguageSequenceConfig("SettingsNoInputApology", _.builderIds.parts.genericCommunication, e3); + } + get settingsNoInputApologyDigitalBotSequence() { + const e3 = this.generateLanguageSequencesDefaultSequence("settingsNoInputApologyDigitalBot"); + return this.generateLanguageSequenceConfig("SettingsNoInputApologyDigitalBot", _.builderIds.parts.markdownCommunication, e3); + } + get settingsEndOfSessionMessageDigitalBotSequence() { + const e3 = this.generateLanguageSequencesDefaultSequence("settingsEndOfSessionMessageDigitalBot"); + return this.generateLanguageSequenceConfig("SettingsEndOfSessionMessageDigitalBot", _.builderIds.parts.markdownCommunication, e3); + } + get settingsNoMatchApologySequence() { + const e3 = this.generateLanguageSequencesDefaultSequence("settingsNoMatchApology"), t3 = { digitalbot: { builderId: _.builderIds.parts.markdownCommunication, languageSequences: e3 } }; + return this.generateLanguageSequenceConfig("SettingsNoMatchApology", _.builderIds.parts.genericCommunication, e3, t3); + } + get settingsNoToConfirmationApologySequence() { + const e3 = this.generateLanguageSequencesDefaultSequence("settingsNoToConfirmationApology"), t3 = { digitalbot: { builderId: _.builderIds.parts.markdownCommunication, languageSequences: e3 } }; + return this.generateLanguageSequenceConfig("SettingsNoToConfirmationApology", _.builderIds.parts.genericCommunication, e3, t3); + } + } + p.__decorate([(0, m.enumerable)(true), p.__metadata("design:type", "function" == typeof (n2 = void 0 !== h.ILanguagesSequenceConfig && h.ILanguagesSequenceConfig) ? n2 : Object), p.__metadata("design:paramtypes", [])], f.prototype, "settingsConfirmationNoInputApologySequence", null), p.__decorate([(0, m.enumerable)(true), p.__metadata("design:type", "function" == typeof (r2 = void 0 !== h.ILanguagesSequenceConfig && h.ILanguagesSequenceConfig) ? r2 : Object), p.__metadata("design:paramtypes", [])], f.prototype, "settingsConfirmationNoInputApologyDigitalBotSequence", null), p.__decorate([(0, m.enumerable)(true), p.__metadata("design:type", "function" == typeof (o = void 0 !== h.ILanguagesSequenceConfig && h.ILanguagesSequenceConfig) ? o : Object), p.__metadata("design:paramtypes", [])], f.prototype, "settingsConfirmationNoMatchApologySequence", null), p.__decorate([(0, m.enumerable)(true), p.__metadata("design:type", "function" == typeof (a = void 0 !== h.ILanguagesSequenceConfig && h.ILanguagesSequenceConfig) ? a : Object), p.__metadata("design:paramtypes", [])], f.prototype, "settingsConfirmationNoMatchApologyDigitalBotSequence", null), p.__decorate([(0, m.enumerable)(true), p.__metadata("design:type", "function" == typeof (s = void 0 !== h.ILanguagesSequenceConfig && h.ILanguagesSequenceConfig) ? s : Object), p.__metadata("design:paramtypes", [])], f.prototype, "settingsNoInputApologySequence", null), p.__decorate([(0, m.enumerable)(true), p.__metadata("design:type", "function" == typeof (l = void 0 !== h.ILanguagesSequenceConfig && h.ILanguagesSequenceConfig) ? l : Object), p.__metadata("design:paramtypes", [])], f.prototype, "settingsNoInputApologyDigitalBotSequence", null), p.__decorate([(0, m.enumerable)(true), p.__metadata("design:type", "function" == typeof (u = void 0 !== h.ILanguagesSequenceConfig && h.ILanguagesSequenceConfig) ? u : Object), p.__metadata("design:paramtypes", [])], f.prototype, "settingsEndOfSessionMessageDigitalBotSequence", null), p.__decorate([(0, m.enumerable)(true), p.__metadata("design:type", "function" == typeof (d = void 0 !== h.ILanguagesSequenceConfig && h.ILanguagesSequenceConfig) ? d : Object), p.__metadata("design:paramtypes", [])], f.prototype, "settingsNoMatchApologySequence", null), p.__decorate([(0, m.enumerable)(true), p.__metadata("design:type", "function" == typeof (c = void 0 !== h.ILanguagesSequenceConfig && h.ILanguagesSequenceConfig) ? c : Object), p.__metadata("design:paramtypes", [])], f.prototype, "settingsNoToConfirmationApologySequence", null), t2.botFlowUserInputSettingsSequences = new f(); + }, 65294: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(15137)); + class r2 extends n2.default { + constructor(e3) { + super(e3), this._findResult = this.coreFactory.createArchWrapper(e3.findResult); + } + get displayTypeName() { + return "ArchBaseActionFindSystemObjects"; + } + get isArchBaseActionFindSystemObjects() { + return true; + } + get findResult() { + throw this.logErrorAndThrow(`findResult should be overridden by derived class ${this.logStr}`), new Error("unreachable"); + } + } + t2.default = r2; + }, 65302: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.getGlobalTypeGroup = d, t2.getGlobalMatchingTypes = c, t2.getTypeGroup = p, t2.getTypeFromIcwsType = _, t2.resolveType = m, t2.getType = g, t2.getTypeFromDisplayString = f, t2.createType = T, t2.destroyGroup = y; + const n2 = i2(31635), r2 = n2.__importDefault(i2(92140)), o = n2.__importStar(i2(36781)), a = n2.__importDefault(i2(2384)), s = i2(34005), l = {}, u = new a.default(); + function d() { + return u; + } + function c(e3, t3) { + return d()._getMatchingTypes(e3, t3); + } + function p(e3) { + if (!e3) return u; + if (l[e3.instanceId]) return l[e3.instanceId]; + const t3 = new a.default(); + return l[e3.instanceId] = t3, e3.registerExpressionTypeGroupEventSink && e3.registerExpressionTypeGroupEventSink.call(e3), u.cloneTo(e3, t3), e3.onTypeMapCreated && e3.onTypeMapCreated.call(e3), t3; + } + function _(e3, t3, i3) { + if (!r2.default.isString(t3)) return null; + const n3 = p(e3), o2 = r2.default.find(n3.map, function(e4) { + return e4.single.icwsType === t3; + }); + return o2 ? i3 ? o2.collection : o2.single : null; + } + function h(e3, t3) { + if (!r2.default.isString(t3)) return null; + const i3 = t3.length; + return i3 > 5 && "_coll" === t3.substring(i3 - 5) ? e3.map[t3.substring(0, i3 - 5)].collection : e3.map[t3] ? e3.map[t3].single : void 0; + } + function m(e3, t3, i3) { + const n3 = p(e3); + return h(n3, t3) || (function(e4, t4) { + if (!t4) return null; + let i4; + for (const n4 in t4) if (t4.hasOwnProperty(n4) && (i4 = t4[n4].type, i4)) return h(e4, i4); + return null; + })(n3, i3); + } + function g(e3, t3, i3) { + return p(e3).getType(t3, i3); + } + function f(e3, t3) { + return p(e3).getTypeFromDisplayString(t3); + } + function T(e3, t3) { + const i3 = r2.default.find(s.type, function(t4) { + return t4.support && t4.support.expressionDataType === e3.typeIdentifier; + }), n3 = new e3(t3, i3, false), o2 = p(t3); + return o2.map[i3.support.expressionDataType] = { single: n3, collection: null }, o2.singletons.push(n3), n3; + } + function y(e3) { + const t3 = l[e3.instanceId]; + delete l[e3.instanceId], t3 && t3.destroy(); + } + o.serviceListen(o.cleanUpFlow, y), t2.default = { getGlobalTypeGroup: d, getGlobalMatchingTypes: c, getTypeGroup: p, getTypeFromIcwsType: _, resolveType: m, getType: g, getTypeFromDisplayString: f, createType: T, destroyGroup: y }; + }, 65305: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = i2(26847), o = n2.__importDefault(i2(57382)); + class a extends o.default { + constructor(e3) { + super(e3); + } + get displayTypeName() { + return "ArchBaseActionWithOutputsDefault"; + } + get isArchBaseActionWithOutputsDefault() { + return true; + } + get outputDefault() { + return this._getOutputById(r2.outputIds.default, true); + } + } + t2.default = a; + }, 65307: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.DateType = void 0; + const n2 = i2(31635).__importDefault(i2(95093)), r2 = i2(17604), o = i2(44023), a = i2(90342), s = i2(80428); + class l extends a.BaseTypeWithDate { + constructor(e3, t3, i3) { + super(e3, t3, i3), this.expressionOptionClass = o.ExpressionTypeDateOptions; + } + get className() { + return "DateType"; + } + createExpressionOptionClass() { + return new o.ExpressionTypeDateOptions(this.isCollection); + } + get supportsLiteralEditor() { + return true; + } + convertLitToExpression(e3, t3) { + const i3 = this.getParsedDate(t3, null, false); + return i3 ? (0, r2.sprintf)("MakeDate(%s, %s, %s)", i3.year, i3.month, i3.date) : t3; + } + _getLiteralValueOfExpression() { + return ""; + } + getYamlObjectForLiteralSingleton(e3) { + super.getYamlObjectForLiteralSingleton(e3); + const t3 = this.getParsedDate(e3.text, e3, true); + return { year: t3.year, month: t3.month, day: t3.date }; + } + searchExpression(e3, t3) { + const i3 = n2.default.utc(t3.text); + if (t3.isLiteralMode && i3) { + const n3 = (0, r2.sprintf)("%s-%02d-%02d", i3.year(), i3.month() + 1, i3.date()); + e3.checkText(t3, n3, t3.label); + } else super.searchExpression(e3, t3); + } + convertLitToCustomJsonStr(e3, t3, i3, n3) { + return `"${i3 || t3 || ""}"`; + } + } + t2.DateType = l, l.typeIdentifier = s.expressionTypeNames.date; + }, 65449: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importDefault(i2(92140)), o = i2(24032), a = n2.__importStar(i2(75773)), s = i2(21042), l = n2.__importDefault(i2(40773)), u = n2.__importStar(i2(74359)), d = i2(27862), c = i2(73303), p = (0, o.getTopic)("sttEngineService"); + class _ extends s.BootstrapListManager { + constructor() { + super(d.SpeechToTextEngine, c), u.bootstrapDataLoaded.then(this._processBootstrapDataLoaded.bind(this)); + } + _processBootstrapDataLoaded(e3) { + var t3; + a.getOrgSupportsAudio() && (e3 ? (null === (t3 = e3.featureSupport) || void 0 === t3 ? void 0 : t3.speechToText) ? (r2.default.each(e3.featureSupport.speechToText.sttEngines, (e4, t4) => { + e4.id = t4, this.items[t4] = new l.default(e4); + }), this._sttSettings = e3.featureSupport.speechToText.sttSettings) : p.debug("No featureSupport or speechToText section found in bootstrap data.") : p.errorWithStack(null, "sttEngineService._processBootstrapDataLoaded was passed null bootstrapService.")); + } + get className() { + return "sttEngineService"; + } + getDefaultEngineForLanguage(e3) { + var t3, i3, n3, r3; + const o2 = (null === (n3 = null === (i3 = null === (t3 = this._sttSettings) || void 0 === t3 ? void 0 : t3.languageOverrides) || void 0 === i3 ? void 0 : i3[e3.toLocaleLowerCase()]) || void 0 === n3 ? void 0 : n3.engine) || (null === (r3 = this._sttSettings) || void 0 === r3 ? void 0 : r3.defaultEngine); + return this.items[o2]; + } + get defaultId() { + return "__default__"; + } + get genesysV3Id() { + return "genesys~v3"; + } + get genesysV4Id() { + return "genesys~v4"; + } + } + t2.default = new _(); + }, 65485: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(57382)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + const t3 = e3; + this._customizeNoInput = this.coreFactory.createArchWrapper(t3.customizeNoInput), this._customizeNoMatch = this.coreFactory.createArchWrapper(t3.customizeNoMatch), this._noInput = this.coreFactory.createArchWrapper(t3.noInput), this._noInputReprompts = this.coreFactory.createArchWrapper(t3.noInputReprompts), this._noMatch = this.coreFactory.createArchWrapper(t3.noMatch), this._noMatchReprompts = this.coreFactory.createArchWrapper(t3.noMatchReprompts), this._voiceEndOfInputTimeout = this.coreFactory.createArchWrapper(t3.voiceEndOfInputTimeout); + } + get displayTypeName() { + return "ArchBaseActionNoInputNoMatch"; + } + get isArchBaseActionNoInputNoMatch() { + return true; + } + get customizeNoInput() { + return this._customizeNoInput; + } + get customizeNoMatch() { + return this._customizeNoMatch; + } + get noInput() { + return this._noInput; + } + get noInputReprompts() { + return this._noInputReprompts; + } + get noMatch() { + return this._noMatch; + } + get noMatchReprompts() { + return this._noMatchReprompts; + } + get voiceEndOfInputTimeout() { + return this._voiceEndOfInputTimeout; + } + } + t2.default = r2; + }, 65498: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.DataTypeDiffOverallResult = void 0; + const n2 = i2(31635).__importStar(i2(13140)); + var r2; + !(function(e3) { + e3.doesNotMatch = "doesNotMatch", e3.exactMatch = "exactMatch", e3.lessRestrictive = "lessRestrictive", e3.moreRestrictive = "moreRestrictive", e3.notComparable = "notComparable"; + })(r2 || (t2.DataTypeDiffOverallResult = r2 = {})), t2.default = class { + constructor(e3, t3, i3) { + this._overallResult = r2.exactMatch, this._individualDiffs = [], this.srcDataTypeDefViewModel = e3, this.comparedToDataTypeDefViewModel = t3, this.diffSettings = i3; + } + get overallResult() { + return this._overallResult; + } + setNotComparableTo() { + this._overallResult = r2.notComparable; + } + addComparedToHasAdditionalProperty(e3, t3) { + const i3 = n2.default.createComparedToHasAdditionalPropertyDiff(e3, t3); + return this._individualDiffs.push(i3), i3; + } + getComparedToAdditionalProperties() { + return this._individualDiffs.filter((e3) => e3.isComparedToAdditionalProperty); + } + get individualDiffs() { + return this._individualDiffs; + } + addDiff(e3) { + switch (this._individualDiffs.push(e3), e3.diffResult) { + case n2.DiffResult.doesNotMatch: + this._overallResult = r2.doesNotMatch; + break; + case n2.DiffResult.moreRestrictive: + this.overallResult === r2.doesNotMatch || (this._overallResult = r2.moreRestrictive); + break; + case n2.DiffResult.lessRestrictive: + switch (this.overallResult) { + case r2.moreRestrictive: + case r2.doesNotMatch: + break; + default: + this._overallResult = r2.lessRestrictive; + } + } + } + isDiffResultEqualTo() { + return this.overallResult === r2.exactMatch; + } + isDiffResultLessRestrictiveThan() { + return this.overallResult === r2.lessRestrictive; + } + isDiffResultEqualToOrLessRestrictiveThan() { + return this.isDiffResultEqualTo() || this.isDiffResultLessRestrictiveThan(); + } + isDiffResultMoreRestrictiveThan() { + return this.overallResult !== r2.exactMatch && this.overallResult !== r2.lessRestrictive; + } + isDiffResultEqualToOrMoreRestrictiveThan() { + return this.isDiffResultEqualTo() || this.isDiffResultMoreRestrictiveThan(); + } + }; + }, 65507: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importDefault(i2(78432)), o = n2.__importDefault(i2(37873)), a = i2(59946); + class s extends o.default { + constructor(e3) { + super(e3), this._coreInboundEmailSettingsViewModel = e3; + } + get displayTypeName() { + return "ArchSettingsInboundEmailFlow"; + } + get logStr() { + if (!this._coreInboundEmailSettingsViewModel) return this.logStrTypeOnly; + const e3 = []; + return this._appendLogStrType(e3, this.displayTypeName), this._appendLogStrParentFlowInfo(e3, this._getCoreViewModel()), this._appendLogStrPart(e3, "Auto Generated Email Handling", this.autoGeneratedEmailHandling, false, true), this._createLogStrFromParts(e3); + } + get isArchSettingsInboundEmailFlow() { + return true; + } + get autoGeneratedEmailHandling() { + var e3, t3; + switch (null === (e3 = this._coreInboundEmailSettingsViewModel.autoGeneratedEmailHandlingType) || void 0 === e3 ? void 0 : e3.name) { + case a.Disconnect.name: + return r2.default.AUTO_GENERATED_EMAIL_HANDLING.disconnect; + case a.Continue.name: + return r2.default.AUTO_GENERATED_EMAIL_HANDLING.continue; + default: + this._logErrorInternalAndThrow("unknown handling type '" + (null === (t3 = this._coreInboundEmailSettingsViewModel.autoGeneratedEmailHandlingType) || void 0 === t3 ? void 0 : t3.name) + "' on the auto-generated email handling."); + } + } + set autoGeneratedEmailHandling(e3) { + switch (this._checkItemIsValidLiteralStringEnum(this._infoPropSet("newAutoGeneratedEmailHandlingTypeValue", "autoGeneratedEmailHandling"), e3, r2.default.AUTO_GENERATED_EMAIL_HANDLING_ALL), this.logNote("setting the auto-generated email handling type to '" + e3 + "'."), e3) { + case r2.default.AUTO_GENERATED_EMAIL_HANDLING.disconnect: + this._coreInboundEmailSettingsViewModel.autoGeneratedEmailHandlingType = a.Disconnect; + break; + case r2.default.AUTO_GENERATED_EMAIL_HANDLING.continue: + this._coreInboundEmailSettingsViewModel.autoGeneratedEmailHandlingType = a.Continue; + } + } + getDetectionJobIntentSettingsByIntentName(e3) { + this._checkItemIsValidLiteralString(this._infoParm("name", "getDetectionJobIntentSettingsByIntentName"), e3); + const t3 = this._coreInboundEmailSettingsViewModel.parent.nluCortexMetaData.intents.find((t4) => t4.name === e3); + if (t3) return this.coreFactory.createArchSettingsDetectionJobIntent(t3); + } + } + t2.default = s; + }, 65615: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.BaseExpressionTypeCollectionOptions = void 0; + const n2 = i2(31635), r2 = n2.__importDefault(i2(92140)), o = i2(55909), a = i2(33951), s = i2(80295), l = i2(80295), u = i2(19507); + class d extends u.BaseExpressionTypeOptions { + constructor(e3) { + super(), this._isCollection = false, this._maxItemsIsSoftLimit = false, this._allowAdd = true, this._allowRemove = true, this._allowReorder = true, this._createMinItemsByDefault = false, (0, l.makeUnenumerable)(this, "_emptyMessage"), (0, l.makeUnenumerable)(this, "_isCollection"), (0, l.makeUnenumerable)(this, "_maxItems"), (0, l.makeUnenumerable)(this, "_maxItemsIsSoftLimit"), (0, l.makeUnenumerable)(this, "_minItems"), (0, l.makeUnenumerable)(this, "_createMinItemsByDefault"), (0, l.makeUnenumerable)(this, "_itemAddedCallback"), (0, l.makeUnenumerable)(this, "_uiCanMoveItemCallback"), a.ParameterValidator.expectBool(e3, () => o.ParameterInfo.createConstructorParameter(this.className, "isCollection"), true), r2.default.isBoolean(e3) && this.setIsCollection(e3); + } + _setFromOptions(e3) { + super._setFromOptions(e3), this._setOptionIfSet(this.setEmptyMessage, e3.emptyMessage, "_emptyMessage"), this._setOptionIfSet(this.setIsCollection, e3.isCollection), this._setOptionIfSet(this.setMaxItems, e3.maxItems, "_maxItems"), this._setOptionIfSet(this.setMaxItemsIsSoftLimit, e3.maxItemsIsSoftLimit, "_maxItemsIsSoftLimit"), this._setOptionIfSet(this.setMinItems, e3.minItems, "_minItems"), this._setOptionIfSet(this.setCreateMinItemsByDefault, e3.createMinItemsByDefault, "_createMinItemsByDefault"), this._setOptionIfSet(this.setAllowAdd, e3.allowAdd, "_allowAdd"), this._setOptionIfSet(this.setAllowRemove, e3.allowRemove, "_allowRemove"), this._setOptionIfSet(this.setAllowReorder, e3.allowReorder, "_allowReorder"), this._setOptionIfSet(this.setItemAddedCallback, e3.itemAddedCallback, "_itemAddedCallback"), this._setOptionIfSet(this.setUiCanMoveItemCallback, e3.uiCanMoveItemCallback, "_uiCanMoveItemCallback"); + } + get isBaseExpressionTypeCollectionOptions() { + return true; + } + get allowNotSet() { + return !this._isCollection && super.allowNotSet; + } + set allowNotSet(e3) { + super.allowNotSet = e3; + } + get className() { + return "BaseExpressionTypeCollectionOptions"; + } + get emptyMessage() { + return this._emptyMessage; + } + set emptyMessage(e3) { + this._emptyMessage = a.ParameterValidator.expectString(e3, () => o.ParameterInfo.createPropertySet(this.className, "emptyMessage", "value")); + } + get isCollection() { + return this._isCollection; + } + set isCollection(e3) { + this._isCollection = a.ParameterValidator.expectBool(e3, () => o.ParameterInfo.createPropertySet(this.className, "isCollection", "value")); + } + get maxItems() { + return this._maxItems; + } + set maxItems(e3) { + this._maxItems = a.ParameterValidator.expectInt(e3, () => o.ParameterInfo.createPropertySet(this.className, "maxItems", "value")); + } + get maxItemsIsSoftLimit() { + return this._maxItemsIsSoftLimit; + } + set maxItemsIsSoftLimit(e3) { + this._maxItemsIsSoftLimit = a.ParameterValidator.expectBool(e3, () => o.ParameterInfo.createPropertySet(this.className, "maxItemsIsSoftLimit", "value")); + } + get minItems() { + return this._minItems; + } + set minItems(e3) { + this._minItems = a.ParameterValidator.expectInt(e3, () => o.ParameterInfo.createPropertySet(this.className, "minItems", "value")); + } + get createMinItemsByDefault() { + return this._createMinItemsByDefault; + } + set createMinItemsByDefault(e3) { + this._createMinItemsByDefault = a.ParameterValidator.expectBool(e3, () => o.ParameterInfo.createPropertySet(this.className, "createMinItemsByDefault", "value")); + } + get allowAdd() { + return this._allowAdd; + } + set allowAdd(e3) { + this._allowAdd = a.ParameterValidator.expectBool(e3, () => o.ParameterInfo.createPropertySet(this.className, "allowAdd", "value")); + } + get allowRemove() { + return this._allowRemove; + } + set allowRemove(e3) { + this._allowRemove = a.ParameterValidator.expectBool(e3, () => o.ParameterInfo.createPropertySet(this.className, "allowRemove", "value")); + } + get allowReorder() { + return this._allowReorder; + } + set allowReorder(e3) { + this._allowReorder = a.ParameterValidator.expectBool(e3, () => o.ParameterInfo.createPropertySet(this.className, "allowReorder", "value")); + } + setEmptyMessage(e3) { + return this.emptyMessage = e3, this; + } + setIsCollection(e3) { + return this.isCollection = e3, this; + } + setMaxItems(e3, t3) { + return this.maxItems = e3, t3 && (this.maxItemsIsSoftLimit = true), this; + } + setMaxItemsIsSoftLimit(e3) { + return this.maxItemsIsSoftLimit = e3, this; + } + setMinItems(e3) { + return this.minItems = e3, this; + } + setCreateMinItemsByDefault(e3) { + return this.createMinItemsByDefault = e3, this; + } + setAllowAdd(e3) { + return this.allowAdd = e3, this; + } + setAllowRemove(e3) { + return this.allowRemove = e3, this; + } + setAllowReorder(e3) { + return this.allowReorder = e3, this; + } + setListIsLocked() { + return this.allowAdd = false, this.allowRemove = false, this.allowReorder = false, this; + } + get defaultToBuilderId() { + if (true !== this._isCollection) return super.defaultToBuilderId; + } + set defaultToBuilderId(e3) { + super.defaultToBuilderId = e3; + } + get itemAddedCallback() { + return this._itemAddedCallback; + } + set itemAddedCallback(e3) { + this._itemAddedCallback = e3; + } + setItemAddedCallback(e3) { + return this.itemAddedCallback = e3, this; + } + get uiCanMoveItemCallback() { + return this._uiCanMoveItemCallback; + } + set uiCanMoveItemCallback(e3) { + this._uiCanMoveItemCallback = e3; + } + setUiCanMoveItemCallback(e3) { + return this.uiCanMoveItemCallback = e3, this; + } + } + t2.BaseExpressionTypeCollectionOptions = d, n2.__decorate([(0, s.enumerable)(true), n2.__metadata("design:type", String), n2.__metadata("design:paramtypes", [String])], d.prototype, "emptyMessage", null), n2.__decorate([(0, s.enumerable)(true), n2.__metadata("design:type", Boolean), n2.__metadata("design:paramtypes", [Boolean])], d.prototype, "isCollection", null), n2.__decorate([(0, s.enumerable)(true), n2.__metadata("design:type", Number), n2.__metadata("design:paramtypes", [Number])], d.prototype, "maxItems", null), n2.__decorate([(0, s.enumerable)(true), n2.__metadata("design:type", Boolean), n2.__metadata("design:paramtypes", [Boolean])], d.prototype, "maxItemsIsSoftLimit", null), n2.__decorate([(0, s.enumerable)(true), n2.__metadata("design:type", Number), n2.__metadata("design:paramtypes", [Number])], d.prototype, "minItems", null), n2.__decorate([(0, s.enumerable)(true), n2.__metadata("design:type", Boolean), n2.__metadata("design:paramtypes", [Boolean])], d.prototype, "createMinItemsByDefault", null), n2.__decorate([(0, s.enumerable)(true), n2.__metadata("design:type", Boolean), n2.__metadata("design:paramtypes", [Boolean])], d.prototype, "allowAdd", null), n2.__decorate([(0, s.enumerable)(true), n2.__metadata("design:type", Boolean), n2.__metadata("design:paramtypes", [Boolean])], d.prototype, "allowRemove", null), n2.__decorate([(0, s.enumerable)(true), n2.__metadata("design:type", Boolean), n2.__metadata("design:paramtypes", [Boolean])], d.prototype, "allowReorder", null); + }, 65641: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = i2(96618), o = n2.__importDefault(i2(92140)), a = n2.__importDefault(i2(59441)), s = n2.__importDefault(i2(15244)), l = n2.__importStar(i2(36781)), u = n2.__importStar(i2(46920)), d = n2.__importStar(i2(14187)), c = n2.__importDefault(i2(95955)), p = n2.__importDefault(i2(26519)), _ = n2.__importDefault(i2(7830)), h = n2.__importDefault(i2(19359)), m = n2.__importDefault(i2(12360)), g = n2.__importDefault(i2(71824)), f = i2(68374), T = i2(64420); + class y extends g.default { + constructor(e3) { + super(e3), this.callPrompts = this._addToAutoManageSettings(new c.default(this)), this.errorHandling = this._addToAutoManageSettings(new p.default(this)), this.inboundEmailSettings = this._addToAutoManageSettings(new _.default(this)), this.nluCortexMetaData = this._addToAutoManageSettings(new m.default(this)), this.pathDiscovery = this._addToAutoManageSettings(new h.default(this)); + } + get className() { + return "InboundEmailViewModel"; + } + get builtInVariableScopes() { + return [...super.builtInVariableScopes, d.scopes.email, d.scopes.message]; + } + get isInboundEmail() { + return true; + } + getFlowConfigurationClass() { + return f; + } + get overrideWireFlowConfiguration() { + return T.getEmailFlowConfiguration; + } + get overrideWireFlowVersionConfiguration() { + return T.getVersionEmailFlowConfiguration; + } + get type() { + return r2.flowTypes.flowTypeInboundEmail; + } + get wrappedYamlName() { + return "inboundEmail"; + } + setNewInstanceDefaults(e3) { + const t3 = e3 && e3.transferQueue ? e3.transferQueue : null; + return t3 ? (this.errorHandling.loadErrorSettings(t3), this.errorHandling.handlingType = s.default.Queue) : this.errorHandling.handlingType = s.default.Disconnect, super.setNewInstanceDefaults(e3); + } + processNluIntentsUpdate(e3) { + e3 && (this.nluCortexMetaData.intents = e3, l.emitter.emit(l.nluCortexIntentClassificationMetadataUpdated)); + } + postScriptingCreateFlowAsync(e3) { + var t3; + o.default.isObject(e3) && (this.cachedCreationDataFromScripting = e3, this.processNluIntentsUpdate(null === (t3 = null == e3 ? void 0 : e3.intentDetection) || void 0 === t3 ? void 0 : t3.intents)); + } + preExport(e3, t3) { + const i3 = Object.create(null, { preExport: { get: () => super.preExport } }); + return n2.__awaiter(this, void 0, void 0, function* () { + var r3, o2; + if (e3 = yield i3.preExport.call(this, e3, t3), (null == t3 ? void 0 : t3.isForFlowYaml) && Array.isArray(null === (r3 = this.nluCortexMetaData) || void 0 === r3 ? void 0 : r3.intents) && this.nluCortexMetaData.intents.length) { + e3[this.wrappedYamlName].settingsNaturalLanguageUnderstanding = {}; + const i4 = e3[this.wrappedYamlName].settingsNaturalLanguageUnderstanding, r4 = new a.default(this.nluCortexMetaData).getConfiguration(e3, t3), s2 = null === (o2 = null == r4 ? void 0 : r4.intents) || void 0 === o2 ? void 0 : o2.map((e4) => { + var { id: t4 } = e4; + return n2.__rest(e4, ["id"]); + }); + i4.intentDetection = s2, e3[this.wrappedYamlName].settingsNaturalLanguageUnderstanding = { intentDetection: { intents: s2 } }; + } + return e3; + }); + } + getSaveAsConfig(e3) { + return n2.__awaiter(this, void 0, void 0, function* () { + const e4 = u.getStringifiedConfiguration(this); + let t3 = JSON.parse(e4); + return t3 = yield this.preExport(t3), { newConfig: u.stringifyConfig(t3) }; + }); + } + preImport(e3) { + const t3 = Object.create(null, { preImport: { get: () => super.preImport } }); + return n2.__awaiter(this, void 0, void 0, function* () { + var i3; + yield t3.preImport.call(this, e3), o.default.isObject(e3) && (this.cachedCreationDataFromScripting = e3, this.processNluIntentsUpdate(null === (i3 = null == e3 ? void 0 : e3.intentDetection) || void 0 === i3 ? void 0 : i3.intents)); + }); + } + _loadConfiguration(e3) { + this.supportsLanguages && void 0 === e3.defaultLanguage && (e3.defaultLanguage = "en-US"), super._loadConfiguration(e3); + } + } + t2.default = y; + }, 65650: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.scheduleObservable = void 0; + var n2 = i2(19724), r2 = i2(32071), o = i2(5455); + t2.scheduleObservable = function(e3, t3) { + return n2.innerFrom(e3).pipe(o.subscribeOn(t3), r2.observeOn(t3)); + }; + }, 65654: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.SummaryUtil = void 0; + const n2 = i2(21095); + t2.SummaryUtil = class { + getArchFlowSummaryNluDomainVersion(e3) { + if (!e3) return {}; + const t3 = {}; + return e3.entityTypes && (t3.entityTypes = this.getEntityTypesSummary(e3.entityTypes)), e3.entities && (t3.entities = this.getEntitiesSummary(e3.entities)), e3.intents && (t3.intents = this.getIntentsSummary(e3.intents)), e3.language && (t3.language = e3.language), e3.languageVersions && (t3.languageVersions = this.getLanguageVersionsSummary(e3.languageVersions)), t3; + } + getEntityTypesSummary(e3) { + const t3 = []; + for (let i3 = 0; i3 < e3.length; i3++) t3[i3] = this.getEntityTypeSummary(e3[i3]); + return t3; + } + getEntityTypeSummary(e3) { + return e3 ? { mechanism: this.getEntityTypeMechanismSummary(e3.mechanism) } : {}; + } + getEntityTypeMechanismSummary(e3) { + if (!e3) return {}; + const t3 = {}; + return e3.type && (t3.type = e3.type), e3.restricted && (t3.restricted = e3.restricted), e3.items && (t3.items = this.getEntityTypeItemsSummary(e3.items)), t3; + } + getEntityTypeItemsSummary(e3) { + if (!e3) return []; + const t3 = []; + for (let i3 = 0; i3 < e3.length; i3++) t3[i3] = this.getEntityTypeItemSummary(e3[i3]); + return t3; + } + getEntityTypeItemSummary(e3) { + if (!e3) return {}; + const t3 = {}; + return t3.synonymsCount = e3.synonyms ? e3.synonyms.length : 0, e3.additionalLanguages && (t3.additionalLanguages = this.getEntityTypeItemSummaryAdditionalLanguages(e3.additionalLanguages)), t3; + } + getEntityTypeItemSummaryAdditionalLanguages(e3) { + const t3 = Object.keys(e3), i3 = []; + for (let n3 = 0; n3 < t3.length; n3++) { + const r2 = t3[n3]; + i3[n3] = this.getEntityTypeItemSummaryAdditionalLanguage(r2, e3); + } + return i3; + } + getEntityTypeItemSummaryAdditionalLanguage(e3, t3) { + return { languageTag: e3, synonymsCount: t3[e3].synonyms ? t3[e3].synonyms.length : 0 }; + } + getEntitiesSummary(e3) { + const t3 = []; + for (let i3 = 0; i3 < e3.length; i3++) t3[i3] = this.getEntitySummary(e3[i3]); + return t3; + } + getEntitySummary(e3) { + if (!e3) return {}; + const t3 = {}; + return n2.EntityUtil.isEntityTypeABuiltInType(e3) && (t3.type = e3.type), t3; + } + getIntentsSummary(e3) { + const t3 = []; + for (let i3 = 0; i3 < e3.length; i3++) t3[i3] = this.getIntentSummary(e3[i3]); + return t3; + } + getIntentSummary(e3) { + if (!e3) return {}; + const t3 = {}; + return e3.id && (t3.id = e3.id), e3.additionalLanguages && (t3.additionalLanguages = this.getIntentAdditionalLanguagesSummary(e3.additionalLanguages)), e3.utterances && (t3.utterances = this.getUtterancesSummary(e3.utterances)), t3; + } + getIntentAdditionalLanguagesSummary(e3) { + const t3 = [], i3 = Object.keys(e3); + for (let n3 = 0; n3 < i3.length; n3++) { + const r2 = i3[n3], o = e3[r2]; + ((null == o ? void 0 : o.id) || (null == o ? void 0 : o.utterances)) && t3.push(this.getIntentAdditionalLanguageSummary(r2, o)); + } + return t3; + } + getIntentAdditionalLanguageSummary(e3, t3) { + const i3 = { languageTag: e3 }; + return t3.id && (i3.id = t3.id), t3.utterances && (i3.utterances = this.getUtterancesSummary(t3.utterances)), i3; + } + getUtterancesSummary(e3) { + const t3 = []; + return e3.forEach((e4) => { + t3.push(this.getUtteranceSummary(e4)); + }), t3; + } + getUtteranceSummary(e3) { + if (!e3) return {}; + const t3 = {}; + return e3.id && (t3.id = e3.id), t3.segmentsCount = e3.segments ? e3.segments.length : 0, t3; + } + getLanguageVersionsSummary(e3) { + const t3 = Object.keys(e3), i3 = []; + for (let n3 = 0; n3 < t3.length; n3++) { + const r2 = t3[n3]; + i3[n3] = { languageTag: r2, id: e3[r2] }; + } + return i3; + } + }; + }, 65692: (e2) => { + "use strict"; + e2.exports = require("https"); + }, 65774: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.skipWhile = void 0; + var n2 = i2(65212), r2 = i2(17214); + t2.skipWhile = function(e3) { + return n2.operate(function(t3, i3) { + var n3 = false, o = 0; + t3.subscribe(r2.createOperatorSubscriber(i3, function(t4) { + return (n3 || (n3 = !e3(t4, o++))) && i3.next(t4); + })); + }); + }; + }, 65824: (e2, t2, i2) => { + "use strict"; + e2.exports = i2(43276); + }, 65878: (e2, t2, i2) => { + "use strict"; + const n2 = i2(31635), r2 = i2(12179), o = n2.__importDefault(i2(5478)), a = n2.__importDefault(i2(27203)), s = n2.__importDefault(i2(97891)), l = i2(3219), u = i2(47957); + class d extends o.default { + constructor(e3, t3) { + super(e3.parentFlow, e3), this._loadModel(t3); + } + static get branchInfo() { + return a.default.successFailure; + } + _getPossibleErrors() { + return l.getTerminateWorkitemFailureReasons; + } + } + d.info = s.default.createActionInfo({ actionClass: d, canBeInTask: true, helpTopic: r2.helpTopics.actions.terminateWorkitem, modelClass: i2(89016), name: u.actions.terminateWorkitem, scriptingName: "ArchActionTerminateWorkitem" }), t2.A = d; + }, 65881: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.Scheduler = void 0; + var n2 = i2(93275), r2 = (function() { + function e3(t3, i3) { + void 0 === i3 && (i3 = e3.now), this.schedulerActionCtor = t3, this.now = i3; + } + return e3.prototype.schedule = function(e4, t3, i3) { + return void 0 === t3 && (t3 = 0), new this.schedulerActionCtor(this, e4).schedule(i3, t3); + }, e3.now = n2.dateTimestampProvider.now, e3; + })(); + t2.Scheduler = r2; + }, 65888: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.SpeechRecTermContainer = void 0; + const n2 = i2(31635), r2 = i2(17604), o = n2.__importDefault(i2(92140)), a = n2.__importStar(i2(25021)), s = i2(47957); + t2.SpeechRecTermContainer = class { + constructor(e3, t3, i3) { + this._parent = e3, this.languageEntry = t3, this.language = i3, this._menuChoice = this._parent.menuChoice, this._terms = this._parent.model[this.languageEntry.id] || [], this.languageCode = this.languageEntry.id; + } + get menuChoice() { + return this._menuChoice; + } + contains(e3, t3) { + const i3 = e3.toLocaleLowerCase(); + let n3 = false; + return o.default.find(this.terms, function(e4) { + return !(i3 !== e4.toLocaleLowerCase() || t3 && !n3 && (n3 = true, 1)); + }); + } + getDuplicateTerms() { + return this.terms.filter((e3) => this.hasDuplicate(e3, true)); + } + hasDuplicate(e3, t3) { + if (!e3) return false; + if (this.contains(e3, t3)) return this._parent; + const i3 = (t4) => { + const i4 = t4._allContainers[this.languageCode.toLowerCase()]; + if (!i4 || i4 === this) return false; + const n4 = i4.contains(e3); + return !!n4 && (t4.addDuplicate(n4), true); + }; + let n3 = null; + if (this._menuChoice.globalSpeech) return o.default.find(this._menuChoice.parentFlow.menus, function(e4) { + const t4 = o.default.pluck(e4.choices, "speechRecTerms"); + return n3 = o.default.find(t4, i3), n3; + }), n3; + { + const e4 = o.default.where(this._menuChoice.parent.choices, { globalSpeech: false }), t4 = o.default.pluck(e4, "speechRecTerms"); + return n3 = o.default.find(t4, i3), n3 || o.default.find(a.getGlobalSpeechForFlow(this._menuChoice.parentFlow), i3); + } + } + get hasDuplicates() { + return !!this._parent.hasDuplicates && this.getDuplicateTerms().length > 0; + } + get hasTerms() { + return this.terms.length > 0; + } + isInvalidTerm(e3) { + const t3 = this.hasDuplicate(e3); + return !!t3 && t3.menuChoice; + } + get isSpeechRecTermContainer() { + return true; + } + get isSupported() { + return this.languageEntry && this.languageEntry.getSupportsSpeechRecForFlowType(this._menuChoice.parentFlow.type); + } + search(e3) { + const t3 = (0, r2.sprintf)(s.speechRec.description, this.language); + o.default.each(this.terms, (i3) => { + e3.checkText(this._menuChoice, i3, t3); + }); + } + get terms() { + return this._terms || []; + } + set terms(e3) { + let t3 = false; + o.default.each(e3, (e4) => { + e4 || (t3 = true); + }), t3 ? console.error("can not add blank term") : (this._terms = e3, this._parent.model[this.languageCode] && (this._parent.model[this.languageCode] = e3), this._parent.findDuplicates()); + } + }; + }, 66033: (e2, t2, i2) => { + "use strict"; + const n2 = i2(31635), r2 = i2(12179), o = i2(12457), a = i2(21647), s = i2(81516), l = n2.__importDefault(i2(27203)), u = n2.__importStar(i2(99434)), d = n2.__importDefault(i2(97891)), c = n2.__importDefault(i2(5730)), p = i2(80428), _ = i2(47957); + class h extends c.default { + constructor(e3, t3) { + super(e3.parentFlow, e3), this.externalId = null, this.externalResult = null, this._loadModel(t3); + } + static get branchInfo() { + return l.default.foundNotFound; + } + getDetails() { + return this.externalId ? new o.ActionDetails([_.getExternalOrganization.nameLabel], [u.getDisplayText(this.externalId)]) : null; + } + static get managedProperties() { + return [{ label: _.getExternalOrganization.nameLabel, options: s.ExpressionTypeStringOptions.create((e3) => e3.setAsInput().setIninTestingField("ExternalIdExpression").setDisableSpellcheck(true).facets.setMinLength(1)), property: "externalId", type: p.expressionTypeNames.string }, { label: _.getExternalOrganization.externalOrganizationResult, options: a.ExpressionTypeComplexOptions.create((e3) => e3.setTypeIdentifier(p.expressionTypeNames.externalOrganization).setAsOutput().setAllowSecure(true).setIninTestingField("ExternalOrganizationExpression")), property: "externalResult", type: p.expressionTypeNames.externalOrganization }]; + } + } + h.info = d.default.createActionInfo({ actionClass: h, canBeInTask: true, helpTopic: r2.helpTopics.actions.getExternalOrganization, modelClass: i2(70691), name: _.actions.getExternalOrganization, scriptingName: "ArchActionGetExternalOrganization" }), t2.A = h; + }, 66063: (e2, t2, i2) => { + const n2 = i2(82149), { dialogEngineActionType: r2 } = i2(30801), o = i2(7401); + function a() { + Object.defineProperties(this, { _terminationState: { writable: true } }), this.languages = void 0, this.versionId = void 0, this.versionName = void 0, a.baseConstructor.apply(this, arguments); + } + n2.extend(a, r2, true), Object.defineProperties(a.prototype, { pasteReIdOrRename: { value: function(e3) { + a._super.pasteReIdOrRename.apply(this, arguments), this.terminationState.pasteReIdOrRename(e3); + } }, pasteResolveOldToNewValues: { value: function(e3) { + a._super.pasteResolveOldToNewValues.apply(this, arguments), this.terminationState.pasteResolveOldToNewValues(e3); + } }, terminationState: { enumerable: true, get: function() { + return this._terminationState; + }, set: function(e3) { + this._terminationState = this.reviveItem(e3, o); + } } }), e2.exports = a; + }, 66093: (e2, t2, i2) => { + const n2 = i2(28730), r2 = i2(7401), { waitForInputActionType: o } = i2(30801); + function a() { + Object.defineProperties(this, { _noMatches: { writable: true }, _customizeNoMatch: { writable: true }, _knowledgeSearchResult: { writable: true }, _noMatchReprompts: { writable: true }, _question: { writable: true } }), a.baseConstructor.apply(this, arguments); + } + n2.extend(a, o, true), Object.defineProperties(a.prototype, { pasteResolveOldToNewValues: { value: function(e3) { + a._super.pasteResolveOldToNewValues.apply(this, arguments), this.noMatches && this.noMatches.forEach((t3) => t3.pasteResolveOldToNewValues(e3)), this.question && this.question.pasteResolveOldToNewValues(e3), this.customizeNoMatch && this.customizeNoMatch.pasteResolveOldToNewValues(e3), this.noMatchReprompts && this.noMatchReprompts.pasteResolveOldToNewValues(e3); + } }, pasteReIdOrRename: { value: function(e3) { + a._super.pasteReIdOrRename.apply(this, arguments), this.noMatches && this.noMatches.forEach((t3) => t3.pasteReIdOrRename(e3)), this.question && this.question.pasteReIdOrRename(e3), this.customizeNoMatch && this.customizeNoMatch.pasteReIdOrRename(e3), this.noMatchReprompts && this.noMatchReprompts.pasteReIdOrRename(e3); + } }, noMatch: { enumerable: false, get: function() { + return this.noMatches && this.noMatches[0]; + }, set: function(e3) { + this.noMatches = [e3]; + } }, noMatches: { enumerable: true, get: function() { + return this._noMatches; + }, set: function(e3) { + this._noMatches = this.reviveArray(e3, r2); + } }, question: { enumerable: true, get: function() { + return this._question; + }, set: function(e3) { + this._question = this.reviveItem(e3, r2); + } }, customizeNoMatch: { enumerable: true, get: function() { + return this._customizeNoMatch; + }, set: function(e3) { + this._customizeNoMatch = this.reviveItem(e3, r2); + } }, noMatchReprompts: { enumerable: true, get: function() { + return this._noMatchReprompts; + }, set: function(e3) { + this._noMatchReprompts = this.reviveItem(e3, r2); + } }, knowledgeSearchResult: { enumerable: true, get: function() { + return this._knowledgeSearchResult; + }, set: function(e3) { + this._knowledgeSearchResult = this.reviveItem(e3, r2); + } } }), e2.exports = a; + }, 66134: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(88827)), r2 = i2(30801); + class o extends n2.default { + constructor(e3) { + super(e3), this._conversationId = this.coreFactory.createArchWrapper(e3.conversationId), this._participantId = this.coreFactory.createArchWrapper(e3.participantId), this._attributeVariableValuePairs = this.coreFactory.createArchBaseValueContainer(e3.variables); + } + get _actionTypeId() { + return r2.getConversationDataActionType; + } + get displayTypeName() { + return this._scriptingName; + } + addAttributeNameOutputValuePair(e3, t3) { + return this._checkItemIsValidLiteralString(this._infoParm("nameExpression", "addAttributeNameOutputValuePair"), e3, true), this._checkItemIsValidLiteralString(this._infoParm("variableExpression", "addAttributeNameOutputValuePair"), t3, true), this._attributeVariableValuePairs._addNameValueAssignment(e3, t3, true, false); + } + get conversationId() { + return this._conversationId; + } + get participantId() { + return this._participantId; + } + get isArchActionGetConversationData() { + return true; + } + } + t2.default = o; + }, 66182: (e2, t2, i2) => { + const n2 = i2(28730), r2 = i2(7401), { sendAutoReplyActionType: o } = i2(30801); + function a() { + Object.defineProperties(this, { _from: { writable: true }, _replyTo: { writable: true }, _cc: { writable: true }, _bcc: { writable: true }, _messageBody: { writable: true }, _attachments: { writable: true } }), this.replyToSenderOnly = void 0, a.baseConstructor.apply(this, arguments); + } + n2.extend(a, o, true), Object.defineProperties(a.prototype, { pasteReIdOrRename: { value: function(e3) { + a._super.pasteReIdOrRename.apply(this, arguments), this.from.pasteReIdOrRename(e3), this.replyTo.pasteReIdOrRename(e3), this.cc.pasteReIdOrRename(e3), this.bcc.pasteReIdOrRename(e3), this.messageBody.pasteReIdOrRename(e3), this.attachments?.pasteReIdOrRename(e3); + } }, pasteResolveOldToNewValues: { value: function(e3) { + a._super.pasteResolveOldToNewValues.apply(this, arguments), this.from.pasteResolveOldToNewValues(e3), this.replyTo.pasteResolveOldToNewValues(e3), this.cc.pasteResolveOldToNewValues(e3), this.bcc.pasteResolveOldToNewValues(e3), this.messageBody.pasteResolveOldToNewValues(e3), this.attachments?.pasteResolveOldToNewValues(e3); + } }, from: { enumerable: true, get: function() { + return this._from; + }, set: function(e3) { + this._from = this.reviveItem(e3, r2); + } }, replyTo: { enumerable: true, get: function() { + return this._replyTo; + }, set: function(e3) { + this._replyTo = this.reviveItem(e3, r2); + } }, cc: { enumerable: true, get: function() { + return this._cc; + }, set: function(e3) { + this._cc = this.reviveItem(e3, r2); + } }, bcc: { enumerable: true, get: function() { + return this._bcc; + }, set: function(e3) { + this._bcc = this.reviveItem(e3, r2); + } }, messageBody: { enumerable: true, get: function() { + return this._messageBody; + }, set: function(e3) { + this._messageBody = this.reviveItem(e3, r2); + } }, attachments: { enumerable: true, get: function() { + return this._attachments; + }, set: function(e3) { + this._attachments = this.reviveItem(e3, r2); + } } }), e2.exports = a; + }, 66273: (e2, t2, i2) => { + const n2 = i2(17604).sprintf, { callTaskActionType: r2 } = i2(30801), { decisionActionType: o } = i2(30801), { endTaskActionType: a } = i2(30801), { exitLoopActionType: s } = i2(30801), l = i2(63352), u = i2(10798), d = i2(4648).default, { findQueueActionType: c } = i2(30801), { findQueueByIdActionType: p } = i2(30801), { globalTypes: _ } = i2(14394), { loopActionType: h } = i2(30801), { outputIds: m } = i2(26847), g = i2(47957), f = i2(24032), { transferPureMatchActionType: T } = i2(30801), { updateVariableActionType: y } = i2(30801), S = i2(71004), A = f.getTopic("addLegacyRoutingTaskToChatFlow"); + e2.exports = function(e3) { + const t3 = e3.createTask(); + t3.name = g.legacyRouting.taskName; + const i3 = u.isFeatureAvailable(d.dynamicQueueById); + let f2 = "Task.targetQueueName", N = g.legacyRouting.actionUpdateDataQueueStringName, O = g.legacyRouting.actionDecisionFoundQueueStringName; + i3 && (f2 = "Task.targetQueueIdOrName", N = g.legacyRouting.actionUpdateDataQueueStringIdOrName, O = g.legacyRouting.actionDecisionFoundQueueStringIdOrName); + const I = t3.addAction(h); + I.name = g.legacyRouting.actionLoopName, I.loopCount.setAsExpression("Count(Chat.Guest.customFields)"), S.addVariable("Task.chatGuestCustomFieldsIndex", I.currentIndex, t3); + const v = I.getBranch(m.loop).addAction(o); + v.name = g.legacyRouting.actionDecisionFoundFieldName, v.expression.setAsExpression('AreEqual("context.genesys.legacyRoutingTargetQueueAddress", Chat.Guest.customFields[Task.chatGuestCustomFieldsIndex].key) or AreEqual("genesys.legacyRoutingTargetQueueAddress", Chat.Guest.customFields[Task.chatGuestCustomFieldsIndex].key)'); + const C = v.getBranch(m.yes), b = C.addAction(y); + b.name = N; + const E = b.variables.add(null, _.string, null); + S.addVariable(f2, E.expression, t3), E.variable.mode = l.variable, E.variable.setText(f2), E.expression.setAsExpression("Chat.Guest.customFields[Task.chatGuestCustomFieldsIndex].value"), C.addAction(s, b); + const R = t3.addAction(o, I); + let w; + if (R.name = O, R.expression.setAsExpression(n2("!IsNotSetOrEmpty(%1$s)", f2)), i3) { + const t4 = R.getBranch(m.yes).addAction(p); + t4.name = g.legacyRouting.actionFindQueueId, t4.findId.setAsExpression(f2), S.addVariable("Flow.legacyQueue", t4.findResult, e3), t4.findResult.mode = l.variable, t4.findResult.setText("Flow.legacyQueue"), w = t4.getBranch(m.notFound); + } else w = R.getBranch(m.yes); + const D = w.addAction(c); + D.name = g.legacyRouting.actionFindQueueName, D.findName.setAsExpression(f2), i3 || S.addVariable("Flow.legacyQueue", D.findResult, e3), D.findResult.mode = l.variable, D.findResult.setText("Flow.legacyQueue"); + const P = t3.addAction(a, R), M = P.parent.getBranches(); + M.length ? P.linkPath(M[0]) : A.errorWithErrorObjectInfo("Legacy chat routing task has no branches", e3, false); + const F = e3.states[0], L = F.addAction(r2); + L.name = g.legacyRouting.actionCallTask, L.linkTask(t3); + const x = F.addAction(o, L); + x.name = g.legacyRouting.actionDecisionFoundQueueName, x.expression.setAsExpression("!IsNotSetOrEmpty(Flow.legacyQueue)"); + const k = x.getBranch(m.yes).addAction(T); + k.name = g.legacyRouting.actionTransferToACDName, k.queues.items[0].mode = l.expression, k.queues.items[0].setText("Flow.legacyQueue"); + }; + }, 66299: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.getOAuthClientInfo = void 0; + const n2 = i2(30068).default, r2 = i2(36019).default; + t2.getOAuthClientInfo = r2.request("GET", "{public-api.apps}/api/v2/oauth/clients/{clientId}", n2); + }, 66314: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.CUSTOM_JSON_PREFIX_LENGTH = t2.CUSTOM_JSON_PREFIX = void 0, t2.isCustomJsonExpressionDataType = c, t2.createCustomJsonExpressionDataTypeStr = function(e3, i3, n3) { + return e3 ? n3 ? `${t2.CUSTOM_JSON_PREFIX}${e3}::${i3 || (0, r2.uuid)()}_${n3}` : `${t2.CUSTOM_JSON_PREFIX}${e3}::${i3 || (0, r2.uuid)()}` : ""; + }, t2.namespaceSupportsInputOutput = function(e3) { + return e3 === s.CustomJsonNamespace.decisionTable; + }, t2.getCustomJsonNamespaceLabel = function(e3) { + if (!e3) return ""; + switch (e3) { + case s.CustomJsonNamespace.architect: + return "Architect"; + case s.CustomJsonNamespace.architectFlow: + return o.architect.architectFlowLabel; + case s.CustomJsonNamespace.botConnector: + return d.botConnector.botConnector; + case s.CustomJsonNamespace.composerScript: + return d.createCallback.script; + case s.CustomJsonNamespace.conversationAttribute: + return d.conversationAttribute.conversationAttributeLabel; + case s.CustomJsonNamespace.dataAction: + return d.dataTable.dataTable; + case s.CustomJsonNamespace.decisionTable: + return d.decisionTable.decisionTableLabel; + case s.CustomJsonNamespace.externalContact: + return o.externalContact.label; + case s.CustomJsonNamespace.structuredParticipantData: + return o.structuredParticipantData.label; + case s.CustomJsonNamespace.userDefined: + return o.architect.userDefinedLabel; + case s.CustomJsonNamespace.worktype: + return d.workitem.worktypeLabel; + default: + return `*${e3}`; + } + }, t2.getCustomJsonNamespaceSupportsContext = p, t2.getCustomJsonInfoForDataTypeStr = function(e3) { + var i3; + let n3, r3; + const o2 = c(e3); + let u2, d2; + const _ = null == e3 ? void 0 : e3.endsWith(l.default.exprDataTypeSuffixCollection); + let h; + if (h = _ ? e3.substring(0, e3.length - l.default.exprDataTypeSuffixCollection.length) : e3, o2) { + const e4 = null === (i3 = h.substring(t2.CUSTOM_JSON_PREFIX_LENGTH)) || void 0 === i3 ? void 0 : i3.split("::"); + if (u2 = s.CustomJsonNamespace[e4[0]], u2 && p(u2)) { + const t3 = e4[1].indexOf("_"); + -1 === t3 ? d2 = e4[1] : (d2 = e4[1].substring(0, t3), n3 = a.CustomJsonContext[e4[1].substring(t3 + 1)]); + } else d2 = e4[1]; + r3 = e4[1]; + } + return { context: n3 || a.CustomJsonContext.none, dataTypeStr: h, expressionDataTypeStr: e3, identifier: r3, isCollection: _, isCustomJsonType: o2, namespace: u2, subIdentifier: d2 }; + }; + const n2 = i2(31635), r2 = i2(9456), o = n2.__importStar(i2(69453)), a = i2(79519), s = i2(79519), l = n2.__importDefault(i2(73198)), u = i2(80428); + t2.CUSTOM_JSON_PREFIX = `${u.expressionTypeNames.json}__`, t2.CUSTOM_JSON_PREFIX_LENGTH = t2.CUSTOM_JSON_PREFIX.length; + const d = i2(47957); + function c(e3) { + return (null == e3 ? void 0 : e3.startsWith(t2.CUSTOM_JSON_PREFIX)) && e3.indexOf("::") > 0; + } + function p(e3) { + switch (e3) { + case s.CustomJsonNamespace.conversationAttribute: + case s.CustomJsonNamespace.decisionTable: + return true; + default: + return false; + } + } + }, 66347: (e2, t2, i2) => { + "use strict"; + const n2 = i2(31635), r2 = n2.__importDefault(i2(942)), o = i2(21647), a = i2(80428), s = i2(89343), l = i2(12179), u = n2.__importDefault(i2(97891)), d = i2(47957); + class c extends r2.default { + constructor(e3, t3) { + super(e3.parentFlow, e3), this._loadModel(t3); + } + static get managedProperties() { + return r2.default.createManagedProperties({ searchFieldPropertyName: "findId", searchFieldOptionsCallback: (e3) => e3.facets.setLengthForUuid(), searchFieldLabel: d.findActions.getJourneySessionsByExternalContact.idLabel, searchResultLabel: d.findActions.getJourneySessionsByExternalContact.resultsLabel, searchResultExpressionOptions: o.ExpressionTypeComplexOptions.create((e3) => e3.setIsCollection(true)), searchResultItemType: a.expressionTypeNames.journeySession }); + } + } + c.info = u.default.createActionInfo({ actionClass: c, canBeInTask: true, helpTopic: l.helpTopics.actions.getJourneySessionsByExternalContact, modelClass: s.GetJourneySessionsByExternalContactActionModel, name: d.actions.getJourneySessionsByExternalContact, scriptingName: "ArchActionGetJourneySessionsByExternalContact" }), t2.A = c; + }, 66350: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = i2(96618), o = i2(68694), a = n2.__importDefault(i2(92140)), s = (i2(94110), i2(56969)), l = i2(56969), u = i2(56969), d = n2.__importStar(i2(14187)), c = n2.__importDefault(i2(66700)), p = n2.__importDefault(i2(99025)), _ = n2.__importDefault(i2(55705)), h = i2(31145), m = i2(64420), g = i2(19098); + class f extends h.NluFlowViewModel { + constructor(e3) { + super(e3), this.speechRecognition = new p.default(this), this._addToAutoManageSettings(this.speechRecognition), this.voiceSurveyFlowSettings = this.botFlowSettings; + } + _createBotFlowSettings() { + return new _.default(this); + } + get className() { + return "VoiceSurveyFlowViewModel"; + } + getFlowConfigurationClass() { + return g; + } + get overrideWireFlowConfiguration() { + return m.getVoiceSurveyFlowConfiguration; + } + get overrideWireFlowVersionConfiguration() { + return m.getVersionVoiceSurveyFlowConfiguration; + } + buildConfiguration(e3, t3, i3) { + var n3; + return super.buildConfiguration(e3, t3, i3), (null == i3 ? void 0 : i3.isForFlowYaml) && (null === (n3 = this.voiceSurveyFlowSettings) || void 0 === n3 ? void 0 : n3.archSurveyForm) && (e3.surveyForm = { name: this.voiceSurveyFlowSettings.archSurveyForm.name }), e3; + } + get stateViewModel() { + return c.default; + } + get type() { + return r2.flowTypes.flowTypeVoiceSurvey; + } + _createInitialActions() { + return n2.__awaiter(this, void 0, void 0, function* () { + return this; + }); + } + get wrappedYamlName() { + return "voiceSurvey"; + } + get statesYamlPropertyName() { + return "bots"; + } + get builtInVariableScopes() { + return [...super.builtInVariableScopes, d.scopes.form]; + } + get surveyForm() { + return this.voiceSurveyFlowSettings.archSurveyForm; + } + _getFlowManagedSlotToSlotHandlingMap() { + return this._flowManagedSlotHandling || (this._flowManagedSlotHandling = (0, u.getSurveyFormSlotHandlingMap)(this.voiceSurveyFlowSettings.archSurveyForm)), this._flowManagedSlotHandling; + } + get isVoiceSurveyFlow() { + return true; + } + setAnswerOptionDtmf(e3, t3) { + var i3, n3, r3; + const u2 = null === (i3 = this.voiceSurveyFlowSettings) || void 0 === i3 ? void 0 : i3.archSurveyForm; + if (!u2) return false; + const d2 = (0, l.findSurveyQuestionInForm)(u2, e3, true, false, true); + if (!d2) return false; + const c2 = (0, s.findAnswerOptionInQuestion)(d2, e3); + if (!c2) return false; + const p2 = null === (n3 = this.voiceSurveyFlowSettings.surveyFormInfo) || void 0 === n3 ? void 0 : n3.formToSlotVariableMappings; + if (!p2) return false; + const _2 = p2[null == d2 ? void 0 : d2.variableId]; + if (!(null == _2 ? void 0 : _2.length)) return false; + const h2 = _2[0].slotType; + if (!h2) return false; + const m2 = this.nlu; + if (!m2) return false; + const g2 = o.EntityUtil.getEntityTypeItemFromEntityTypeByName(m2, h2, c2.text); + if (!g2) return false; + t3 = t3 || "", a.default.isArray(g2.synonyms) ? g2.synonyms.length = 0 : g2.synonyms = []; + let f2 = true; + return t3.length && ((null === (r3 = parseInt(t3)) || void 0 === r3 ? void 0 : r3.toString()) === t3 || "*" === t3 || "#" === t3 ? g2.synonyms.push(t3) : f2 = false), c2.dtmf = t3, f2; + } + } + t2.default = f; + }, 66355: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.pluck = void 0; + var n2 = i2(26872); + t2.pluck = function() { + for (var e3 = [], t3 = 0; t3 < arguments.length; t3++) e3[t3] = arguments[t3]; + var i3 = e3.length; + if (0 === i3) throw new Error("list of properties cannot be empty."); + return n2.map(function(t4) { + for (var n3 = t4, r2 = 0; r2 < i3; r2++) { + var o = null == n3 ? void 0 : n3[e3[r2]]; + if (void 0 === o) return; + n3 = o; + } + return n3; + }); + }; + }, 66359: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.getConversationCustomAttributeSchema = t2.getConversationCustomAttributeSchemas = void 0; + const n2 = i2(31635), r2 = i2(82675), o = i2(55279), a = n2.__importDefault(i2(36019)); + t2.getConversationCustomAttributeSchemas = a.default.request("GET", "{public-api.apps}/api/v2/conversations/customattributes/schemas", o.ConversationCustomAttributeSchemaList, { ignoreBadResponse: true }), t2.getConversationCustomAttributeSchema = a.default.request("GET", "{public-api.apps}/api/v2/conversations/customattributes/schemas/{id}", r2.ConversationCustomAttributeSchema, { ignoreBadResponse: true }); + }, 66381: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.getListDisplayString = void 0, t2.getSentenceListDisplayString = function(e3, t3) { + return e3 && 0 !== e3.length ? ((function(e4, t4) { + o.default.each(e4, function(i3, n3) { + void 0 === e4[n3] || null === e4[n3] ? e4[n3] = "" : t4 && (e4[n3] = i3.replace(/ /g, " ")); + }); + })(e3, t3), 1 === e3.length ? e3[0] : e3.join(s.default.itemListing.sentenceSeparator)) : ""; + }, t2.getStringContainsValidCharacter = function(e3, t3) { + if (!(null == e3 ? void 0 : e3.length)) return false; + if (t3) { + for (const t4 of e3.split("")) if (t4 >= "0" && t4 <= "9") return true; + } + for (const t4 of e3.split("")) if (t4 >= "A" && t4 <= "Z" || t4 >= "a" && t4 <= "z" || t4 >= "\xC0" && t4 <= "\xD6" || t4 >= "\xD8" && t4 <= "\xF6" || t4 >= "\xF8" && t4 <= "\u1FFF" || t4 >= "\u3040" && t4 <= "\u318F" || t4 >= "\u3300" && t4 <= "\u337F" || t4 >= "\u3400" && t4 <= "\u3D2D" || t4 >= "\u4E00" && t4 <= "\u9FFF" || t4 >= "\uF900" && t4 <= "\uFAFF" || t4 >= "\uFF00" && t4 <= "\uFFDC") return true; + return false; + }, t2.getOperandListDisplayString = function(e3, t3) { + if (!e3 || o.default.isEmpty(e3)) return ""; + const i3 = []; + return o.default.each(e3, function(e4) { + i3.push(e4.getErrorDisplayText()); + }), (0, l.getListDisplayString)(i3, false, t3); + }, t2.getFlowTypesDisplayString = function(e3, t3) { + if (!e3 || o.default.isEmpty(e3)) return ""; + const i3 = []; + return o.default.each(e3, function(e4) { + i3.push(a.default.getFlowTypeDisplayName(e4)); + }), (0, l.getListDisplayString)(i3, false, t3); + }, t2.getListOfFlowIds = function(e3) { + if (!e3 || !o.default.isArray(e3)) return ""; + const t3 = o.default.pluck(e3, "id"); + return (0, l.getListDisplayString)(t3, false); + }, t2.utf8EncodedSizeExceedsMax = function(e3, t3) { + return d.ParameterValidator.expectString(e3, () => u.ParameterInfo.createFunctionParameter(_, "utf8EncodedSizeExceedsMax", "stringValueToCheck"), true), d.ParameterValidator.expectInt(t3, () => u.ParameterInfo.createFunctionParameter(_, "utf8EncodedSizeExceedsMax", "maxSizeInclusive")), !!o.default.isString(e3) && (function(e4, t4) { + const i3 = e4.length; + return 0 !== i3 && (i3 > t4 || !(3 * i3 <= t4) && (0, c.utf8EncodedSizeCalc)(e4, t4) > t4); + })(e3, t3); + }, t2.escapeWhitespaceChars = function(e3) { + return e3.contains("\n") && (e3 = e3.replace(/\n/g, "\\n")), e3.contains("\r") && (e3 = e3.replace(/\r/g, "\\r")), e3.contains(" ") && (e3 = e3.replace(/\t/g, "\\t")), e3; + }, t2.convertPascalToCamelCase = function(e3) { + return (null == e3 ? void 0 : e3.length) ? e3.charAt(0).toLowerCase() + (e3.slice(1) || "") : null != e3 ? e3 : ""; + }, t2.escapeForCssToken = function(e3) { + return CSS.escape("_" + e3); + }, t2.truncateText = function(e3, t3) { + if (e3) return e3.length <= t3 || t3 < 0 ? e3 : (0, r2.sprintf)(p.generic.truncatedText, e3.substring(0, t3 - 3)); + }; + const n2 = i2(31635), r2 = i2(17604), o = n2.__importDefault(i2(92140)), a = n2.__importDefault(i2(98114)), s = n2.__importDefault(i2(41510)), l = i2(48109); + Object.defineProperty(t2, "getListDisplayString", { enumerable: true, get: function() { + return l.getListDisplayString; + } }); + const u = i2(55909), d = i2(33951), c = i2(29269), p = i2(47957), _ = "stringUtilities"; + }, 66418: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(83663)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "listPicker"; + } + get displayTypeName() { + return "ArchValueListPickerItem"; + } + get isArchValueListPickerItem() { + return true; + } + get title() { + return this._getAssignableProperty("title"); + } + get subtitle() { + return this._getAssignableProperty("subtitle"); + } + get image() { + return this._getAssignableProperty("image"); + } + setLiteralListPickerItem(e3, t3, i3) { + this.title.setLiteralString(e3), t3 && this.subtitle.setLiteralString(t3), i3 && this.image.setLiteralByImageNameAsync(i3); + } + } + t2.default = r2; + }, 66445: (e2, t2, i2) => { + function n2() { + Object.defineProperties(this, { _dateCreated: { writable: true }, _dateModified: { writable: true } }), this.description = void 0, this.sources = void 0, this.searchSetting = void 0, this.generationSetting = void 0, this.stateful = void 0, this.dateCreated = void 0, this.dateModified = void 0, n2.baseConstructor.apply(this, arguments); + } + i2(52722).extend(n2, "KnowledgeSetting"), Object.defineProperties(n2.prototype, { dateCreated: { get: function() { + return this._dateCreated; + }, set: function(e3) { + const t3 = Date.parse(e3); + this._dateCreated = isNaN(t3) ? void 0 : e3; + } }, dateModified: { get: function() { + return this._dateModified; + }, set: function(e3) { + const t3 = Date.parse(e3); + this._dateModified = isNaN(t3) ? void 0 : e3; + } }, isKnowledgeSettingModel: { get: () => true } }), e2.exports = n2; + }, 66590: (e2, t2, i2) => { + "use strict"; + const n2 = i2(31635), r2 = i2(12179), o = n2.__importDefault(i2(97891)), a = i2(24383), s = n2.__importDefault(i2(5730)), l = i2(63391), u = i2(47957); + class d extends s.default { + constructor(e3, t3) { + super(e3.parentFlow, e3), this._loadModel(t3); + } + } + d.info = o.default.createActionInfo({ actionClass: d, canBeInTask: true, helpTopic: r2.helpTopics.actions.completeSend, modelClass: l.CompleteSendActionModel, name: u.actions.completeSend, scriptingName: "ArchActionCompleteSend", termination: a.terminatesFlow }), t2.A = d; + }, 66593: (e2) => { + e2.exports = { askCommon: { invalidInputReceived: "T\xE4m\xE4 sy\xF6te on virheellinen.", noInputReceived: "Sy\xF6tett\xE4 ei saatu." }, askForBoolean: { noInput: 'Vastaa "kyll\xE4", jos haluat jatkaa tai "ei", jos et halua.', noMatch: 'Vastaa "kyll\xE4" tai "ei". Haluatko jatkaa?', question: "Haluatko jatkaa?", noInputDigitalBot: 'Kirjoita "kyll\xE4", jos haluat jatkaa, tai "ei", jos et halua.', noMatchDigitalBot: 'Kirjoita "kyll\xE4" tai "ei". Haluatko jatkaa?' }, askForIntent: { noInput: 'Sano lyhyt lause, joka kuvailee kysely\xE4si. Esimerkiksi "Tarkista tilini saldo"', noMatch: "Kerro uudelleen, mit\xE4 haluat tehd\xE4.", question: "Mit\xE4 haluat tehd\xE4?", noInputDigitalBot: 'Kirjoita lyhyt lause, joka kuvailee kysely\xE4si. Esimerkiksi "Tarkista tilini saldo"' }, askForSlot: { askFor: "Pyyd\xE4 seuraavaa: %1$s", noInput: "Sano tai kirjoita (lis\xE4\xE4 paikan nimi t\xE4h\xE4n).", noInputWithSlot: "Sano tai kirjoita %1$s.", noMatch: "Anna minulle (lis\xE4\xE4 paikan nimi t\xE4h\xE4n) uudelleen.", noMatchWithSlot: "Anna minulle %1$s uudelleen.", question: "Mik\xE4 on (lis\xE4\xE4 paikan nimi t\xE4h\xE4n)?", questionWithSlot: "Mik\xE4 on %1$s?", pleaseEnterSlotNameHere: "(lis\xE4\xE4 paikan nimi t\xE4h\xE4n)", noInputDigitalBot: "Kirjoita (lis\xE4\xE4 paikan nimi t\xE4h\xE4n).", noInputWithSlotDigitalBot: "Kirjoita %1$s.", continuationPromptWithSlot: "Sain {{Slot.%1$s}} t\xE4h\xE4n menness\xE4, ole hyv\xE4 ja jatka." }, askForNextSlot: { noInput: 'Sano "kyll\xE4", jos sinulla on toinen kysely, tai lopeta puhelu sanomalla "ei".', noMatch: 'Sano "kyll\xE4", jos sinulla on toinen kysely, tai lopeta istunto sanomalla "ei".', question: "Voinko auttaa sinua jonkin muun asian kanssa?", noInputDigitalBot: 'Kirjoita "kyll\xE4", jos sinulla on toinen kysely, tai lopeta istunto kirjoittamalla "ei".', noMatchDigitalBot: 'Kirjoita "kyll\xE4", jos sinulla on toinen kysely, tai lopeta istunto kirjoittamalla "ei".' }, askForPayment: { noInputDigitalBot: "Anna maksutietosi jatkaaksesi.", noMatchDigitalBot: "En ymm\xE4rt\xE4nyt vastaustasi. Yrit\xE4 uudelleen." }, askForAuthentication: { noInputDigitalBot: "Anna tunnistustietosi jatkaaksesi.", noMatchDigitalBot: "En ymm\xE4rt\xE4nyt vastaustasi. Yrit\xE4 uudelleen." }, askSurveyQuestion: { notApplicable: "Ei sovellu", surveyAnswerOptionSequence: "Paina %1$s, jos haluat kohteen '%2$s'.", surveyAnswerNotApplicableSequence: "Paina t\xE4hte\xE4, jos haluat vaihtoehdon Ei sovellu.", surveyAnswerNotApplicableWithQuestionSequence: "%1$s. Paina t\xE4hte\xE4, jos haluat vaihtoehdon Ei sovellu.", voiceSurveyNoInputText: "Vastaa kysymykseen.", voiceSurveyNoMatchText: "En ymm\xE4rt\xE4nyt mit\xE4 tarkoitat." }, commonModule: { exitCommonModule: "Poistu Yhteisest\xE4 moduulista" }, form: { noInputDigitalBot: "T\xE4yt\xE4 lomake jatkaaksesi.", noMatchDigitalBot: "T\xE4yt\xE4 lomake jatkaaksesi." }, messagingTemplate: { noInputDigitalBot: "Valitse jokin vaihtoehdoista.", noMatchDigitalBot: "Valitse jokin vaihtoehdoista." }, knowledgeSettings: { knowledgeAnswerHighlightFlowProgressionDefault: "Jatka", knowledgeAnswerHighlightFullArticleDefault: "N\xE4yt\xE4 koko artikkeli", knowledgeInitialResponseMulti: "Auta minua ymm\xE4rt\xE4m\xE4\xE4n tavoitteesi valitsemalla numero seuraavasta luettelosta:", knowledgeInitialResponseMultiRetry: "Valitse numero, esimerkiksi '1'.\nT\xE4ss\xE4 on vaihtoehtoluettelo uudelleen:", knowledgeNoMatch: "Ei mik\xE4\xE4n n\xE4ist\xE4", knowledgeConfirmation: "Vastasiko t\xE4m\xE4 kysymykseesi?", knowledgeFollowup: "Toivottavasti sait vastauksen kysymykseesi. Voit kysy\xE4 jotain muutakin, mit\xE4 haluat tiet\xE4\xE4." }, noOverlay: { intent: { intentConfirmationStr1: "Luulen, ett\xE4 haluat:", intentConfirmationStr2: "Onko t\xE4m\xE4 oikein?" }, youSaid: { youSaidConfirmationStr1: "Sanoit", youSaidConfirmationStr2: "Onko t\xE4m\xE4 oikein?", youSaidConfirmationStr1DigitalBot: "Kirjoitit" }, noInput: { noInputStr1: "Sano tai kirjoita", noInputStr1DigitalBot: "Kirjoita" }, noMatch: { noMatchStr1: "Anna minulle" }, whatIs: { whatIsQuestionStr1: "Mik\xE4 on", whatIsQuestionStr2: "?" }, iGotContinuation: { iGotContinuationStr1: "Sain", iGotContinuationStr2: "t\xE4h\xE4n menness\xE4, ole hyv\xE4 ja jatka." } }, defaultCallFlowOne: "Oletuspuhelunohjaus", errorHandlingAgentEscalationConfirmation: "Haluat puhua neuvonantajalle. Onko t\xE4m\xE4 oikein?", errorHandlingAgentEscalationHandover: "Pieni hetki, niin yhdist\xE4n sinut henkil\xF6n puheille.", errorHandlingErrorEventHandover: "Pahoittelut, tapahtui virhe. Pieni hetki, niin yhdist\xE4n sinut henkil\xF6lle, joka voi auttaa.", errorHandlingErrorEventHandoverVoiceSurvey: "Pahoittelut, tapahtui virhe. Hei hei.", errorHandlingRecognitionEventHandover: "Pahoittelut, mutta en ymm\xE4rr\xE4 sinua. Pieni hetki, niin yhdist\xE4n sinut henkil\xF6lle, joka voi auttaa.", errorHandlingRecognitionEventHandoverVoiceSurvey: "Pahoittelut, mutta en ymm\xE4rr\xE4 sinua. Hei hei.", errorHandlingTTS: "Pahoittelut, tapahtui virhe. Yrit\xE4 soittaa uudelleen.", initialGreetingTTS: "Hei, t\xE4m\xE4 on ensimm\xE4inen tervehdys.", initialState: "Alkuper\xE4inen tila", initialBotState: "Oletusbotti", initialDigitalBotState: "Ensimm\xE4inen tervehdys", initialSurveyBotState: "Kyselybotti", intentConfirmation: "Luulen, ett\xE4 haluat seuraavan: %1$s. Onko t\xE4m\xE4 oikein?", mainMenu: "P\xE4\xE4valikko", mainMenuTTS: "T\xE4m\xE4 on p\xE4\xE4valikko. Voit katkaista yhteyden painamalla 9", mainTask: "Teht\xE4v\xE4", settingsConfirmationNoInputApology: "Pahoittelut, en kuullut sinua. Sano kyll\xE4 tai ei.", settingsConfirmationNoInputApologyDigitalBot: 'Pahoittelut, en saanut sinulta sy\xF6tett\xE4.Kirjoita "Kyll\xE4" tai "Ei".', settingsConfirmationNoMatchApology: "Pahoittelut, sano kyll\xE4 tai ei.", settingsConfirmationNoMatchApologyDigitalBot: 'Pahoittelut, kirjoita "Kyll\xE4" tai "Ei".', settingsNoInputApology: "Pahoittelut, en kuullut sinua.", settingsNoInputApologyDigitalBot: "Pahoittelut, en saanut sinulta sy\xF6tett\xE4.", settingsEndOfSessionMessageDigitalBot: "En ole kuullut sinusta hetkeen, joten suljen chatin. Palaa t\xE4nne, jos tarvitset taas apuani. Kiitos.", settingsNoMatchApology: "Pahoittelut.", settingsNoToConfirmationApology: "Minun virheeni.", periodicStateName: "Toistuva tila" }; + }, 66632: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(88827)), r2 = i2(30801); + class o extends n2.default { + constructor(e3) { + super(e3), this._externalId = this.coreFactory.createArchWrapper(e3.externalId), this._externalResult = this.coreFactory.createArchWrapper(e3.externalResult); + } + get _actionTypeId() { + return r2.getExternalContactActionType; + } + get displayTypeName() { + return this._scriptingName; + } + get isArchActionGetExternalContact() { + return true; + } + get externalId() { + return this._externalId; + } + get externalResult() { + return this._externalResult; + } + } + t2.default = o; + }, 66663: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.buildWorkitemFlow = function(e3) { + const t3 = e3.states[0]; + if (t3) { + let e4 = 0; + for (; t3.actions.length && e4 < 512; ) t3.deleteChild(t3.actions[0]), e4++; + } + e3.definition.supportsFlowInvokingEvent(s.FlowInvokingEvent.workitemCreated) && (function(e4) { + const t4 = f(e4, s.FlowInvokingEvent.workitemCreated, true); + g(e4, r2.decisionActionType, e4.startUpObject, (i3) => { + i3.expression.setAsExpression(`Workitem.EventType == "${s.FlowInvokingEvent.workitemCreated}"`), i3.name = h.workitem.workitemEventQuestionCreated; + const r3 = i3.branches.find((e5) => e5.id === u.outputIds.yes); + g(e4, n2.callTaskActionType, r3, (e5) => { + e5.name = (0, d.sprintf)(h.workitem.worktypeCallTaskLabel, s.FlowInvokingEvent.workitemCreated), e5.containerActionProperty.setReference(t4); + }); + }); + })(e3), e3.definition.supportsFlowInvokingEvent(s.FlowInvokingEvent.workitemStatusChanged) && (function(e4) { + var t4; + const i3 = []; + let o2 = []; + (null === (t4 = e4.workitemFlowSettings.worktype.statuses) || void 0 === t4 ? void 0 : t4.length) && (o2 = e4.workitemFlowSettings.getDisplayableListOfStatuses(), o2.forEach((t5) => { + const n3 = f(e4, t5.displayString); + i3.push(n3); + })), g(e4, r2.decisionActionType, e4.startUpObject, (t5) => { + t5.expression.setAsExpression(`Workitem.EventType == "${s.FlowInvokingEvent.workitemStatusChanged}"`), t5.name = h.workitem.workitemEventQuestionStatusChanged; + const r3 = t5.branches.find((e5) => e5.id === u.outputIds.yes); + g(e4, c.switchActionActionType, r3, (t6) => { + t6.name = h.workitem.worktypeMatchStatus, t6.switchStyle = _.SwitchStyles.matchExpression, t6.expression.setAsExpression("Workitem.Workitem.status.name"), t6.updateCaseTypes(t6.expression.type, true), t6.cases.items.forEach((e5) => t6.deleteCase(e5)); + for (let r4 = 0; r4 < i3.length; r4++) { + if (r4 > p.switchActionCaseLimits.numMaxCases - 1) { + m.error(`Only adding first ${p.switchActionCaseLimits.numMaxCases} statuses out of ${o2.length}`); + break; + } + r4 > 0 && t6.addCase(false), t6.cases.items[r4].value.setAsLiteral(o2[r4].displayString), g(e4, n2.callTaskActionType, t6.branches[r4], (e5) => { + e5.name = i3[r4].name, e5.containerActionProperty.setReference(i3[r4]); + }); + } + }); + }); + })(e3), e3.definition.supportsFlowInvokingEvent(s.FlowInvokingEvent.workitemDateBasedEvent) && (function(e4) { + const t4 = e4.workitemFlowSettings.worktype.dateBasedRules; + if (!(null == t4 ? void 0 : t4.length)) return; + const i3 = (0, d.sprintf)(h.workitem.worktypeNameWithEventTypePrefix, s.FlowInvokingEvent.workitemDateBasedEvent), a2 = e4.createTask(i3); + g(e4, c.switchActionActionType, a2, (i4) => { + i4.name = h.workitem.worktypeMatchDateBasedEvent, i4.switchStyle = _.SwitchStyles.matchExpression, i4.expression.setAsExpression("If(IsSet(Workitem.EventData) and IsSet(WorkItem.EventData.rule), Workitem.EventData.rule.name, NOT_SET)"), i4.updateCaseTypes(i4.expression.type, true), i4.cases.items.forEach((e5) => i4.deleteCase(e5)); + for (let e5 = 0; e5 < t4.length; e5++) { + if (e5 > p.switchActionCaseLimits.numMaxCases - 1) { + m.error(`Only adding first ${p.switchActionCaseLimits.numMaxCases} tasks out of ${t4.length}`); + break; + } + e5 > 0 && i4.addCase(false), i4.cases.items[e5].value.setAsLiteral(t4[e5].name); + } + g(e4, o.endTaskActionType, a2, (e5) => { + e5.name = (0, d.sprintf)(h.workitem.worktypeEndStatusTask, s.FlowInvokingEvent.workitemDateBasedEvent); + const t5 = a2.getBranchByOutputId(u.outputIds.default); + e5.linkPath(t5); + }); + }), g(e4, r2.decisionActionType, e4.startUpObject, (t5) => { + t5.expression.setAsExpression(`Workitem.EventType == "${s.FlowInvokingEvent.workitemDateBasedEvent}"`), t5.name = h.workitem.workitemDateBasedRulePresent; + const i4 = t5.getBranch(u.outputIds.yes); + g(e4, n2.callTaskActionType, i4, (e5) => { + e5.name = (0, d.sprintf)(h.workitem.worktypeCallTaskLabel, s.FlowInvokingEvent.workitemDateBasedEvent), e5.containerActionProperty.setReference(a2); + }); + }); + })(e3), g(e3, a.exitWorkitemFlowActionType, e3.startUpObject); + }; + const n2 = i2(30801), r2 = i2(30801), o = i2(30801), a = i2(30801), s = i2(67018), l = i2(24032), u = i2(26847), d = i2(17604), c = i2(30801), p = i2(82632), _ = i2(68038), h = i2(47957), m = (0, l.getTopic)("buildWorkitemFlow"); + function g(e3, t3, i3, n3) { + try { + const r3 = i3.addAction(t3, i3.lastAction); + if (1 === e3.states[0].actions.length) { + const t4 = e3.flowSequenceItemList[0]; + t4.actionList = [r3], t4.startAction = r3.id; + } + n3 && n3(r3); + } catch (e4) { + m.exception(e4, `failed to create ${t3} action`); + } + } + function f(e3, t3, i3, n3) { + const r3 = n3 ? t3 : (0, d.sprintf)(i3 ? h.workitem.worktypeNameWithEventTypePrefix : h.workitem.worktypeNameWithStatusPrefix, t3), a2 = e3.createTask(r3); + return g(e3, o.endTaskActionType, a2, (e4) => { + e4.name = (0, d.sprintf)(h.workitem.worktypeEndStatusTask, t3); + const i4 = a2.getBranches().find((e5) => e5.outputId === u.outputIds.default); + e4.linkPath(i4); + }), a2; + } + }, 66693: (e2, t2, i2) => { + const n2 = i2(36577); + function r2() { + Object.defineProperties(this, { _nextUri: { value: void 0, writable: true } }), r2.baseConstructor.apply(this, arguments); + } + i2(22124).extend(r2, "KnowledgeBaseDocumentList"), Object.defineProperties(r2.prototype, { entities: { enumerable: true, get: function() { + return this._entities; + }, set: function(e3) { + this._entities = this.reviveArray(e3, n2); + } }, nextUri: { get: function() { + return this._nextUri; + }, set: function(e3) { + this._nextUri = e3; + } } }), e2.exports = r2; + }, 66700: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importStar(i2(14187)), o = n2.__importDefault(i2(61610)), a = i2(30801), s = i2(12179), l = n2.__importDefault(i2(97891)), u = i2(30801), d = i2(47957), c = i2(50029); + class p extends o.default { + constructor(e3, t3) { + super(e3), t3.__type !== a.botStateActionType && (t3 = new c(t3)), this._loadModel(t3); + } + static loadSequenceItemListForModel(e3, t3) { + if (t3) { + if (t3.__type === a.botStateActionType) return true; + if (t3.__type === u.stateActionType) return 1 === e3.states.length ? (console.error("can not load state model, only 1 bot state allowed currently"), false) : (console.warn("migrating state model to bot state model"), true); + } + return false; + } + get nodeGuxIcon() { + return "fa/microchip-solid"; + } + get isStateLike() { + return true; + } + get isBotState() { + return true; + } + get resources() { + return { noTerminatingAction: d.botStates.noTerminatingAction, startUpDisplayName: d.startUpBotStateDisplayName }; + } + get defaultVariableScope() { + return r2.scopes.flow; + } + get localVariableScope() { + return r2.scopes.bot; + } + get isAllowedAsStartupNode() { + return true; + } + get containerLabel() { + return d.actions.botState; + } + get supportsInputVariables() { + return false; + } + get supportsOutputVariables() { + return false; + } + get uiMetaDataSectionName() { + return "bot"; + } + addClipboardDependencies(e3) { + super.addClipboardDependencies(e3), e3.copyCutProcessStateViewModel(this); + } + } + p.info = l.default.createReusableNodeInfo({ actionType: a.botStateActionType, actionClass: p, helpTopic: s.helpTopics.tasks.botState, name: d.actions.botState }), t2.default = p; + }, 66740: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(16864)), r2 = i2(92908); + class o extends n2.default { + get className() { + return "BuilderPartWithVariableFormattingViewModel"; + } + getVariableFormattingMetadataForExpression(e3) { + return e3.getUiMetaData(r2.uiMetaDataKey.builderVariableFormattingOptions); + } + setVariableFormattingMetadataForExpression(e3, t3) { + e3.setUiMetaData(r2.uiMetaDataKey.builderVariableFormattingOptions, t3), this.builderViewModel.postUpdateOwningExpression(); + } + } + t2.default = o; + }, 66753: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importStar(i2(10798)), o = n2.__importDefault(i2(4648)), a = n2.__importDefault(i2(92140)), s = i2(47957), l = new class { + constructor() { + this.voiceSnippetService = { id: "voiceSnippetService", displayString: s.submitVoiceSnippet.voiceSnippetServiceLabel, submissionReturnsSnippetIdentifier: false, featureConfig: o.default.voiceSnippets }, this._allPossibleSnippetDestinations = [this.voiceSnippetService]; + } + _isSnippetDestinationAvailable(e3) { + return !e3.featureConfig || r2.isFeatureAvailable(e3.featureConfig); + } + getDestination(e3) { + return a.default.find(this._allPossibleSnippetDestinations, (t3) => e3 === t3.id); + } + get defaultDestinationId() { + if (this._isSnippetDestinationAvailable(this.voiceSnippetService)) return this.voiceSnippetService.id; + } + getAvailableDestinations() { + return a.default.filter(this._allPossibleSnippetDestinations, (e3) => this._isSnippetDestinationAvailable(e3)); + } + getAvailableDestinationIds() { + return a.default.pluck(this.getAvailableDestinations(), "id"); + } + }(); + t2.default = l; + }, 66777: (e2, t2, i2) => { + "use strict"; + var n2, r2, o, a, s, l, u; + Object.defineProperty(t2, "__esModule", { value: true }); + const d = i2(31635), c = i2(30801), p = d.__importDefault(i2(21345)); + class _ extends p.default { + constructor(e3) { + super(e3), n2.set(this, void 0), r2.set(this, void 0), o.set(this, void 0), a.set(this, void 0), s.set(this, void 0), l.set(this, void 0), u.set(this, void 0), d.__classPrivateFieldSet(this, n2, this.coreFactory.createArchWrapper(e3.headerType), "f"), d.__classPrivateFieldSet(this, r2, this.coreFactory.createArchWrapper(e3.headerText), "f"), d.__classPrivateFieldSet(this, o, this.coreFactory.createArchWrapper(e3.headerImage), "f"), d.__classPrivateFieldSet(this, a, this.coreFactory.createArchWrapper(e3.body), "f"), d.__classPrivateFieldSet(this, s, this.coreFactory.createArchWrapper(e3.footer), "f"), d.__classPrivateFieldSet(this, l, this.coreFactory.createArchWrapper(e3.urlValue), "f"), d.__classPrivateFieldSet(this, u, this.coreFactory.createArchWrapper(e3.urlLabel), "f"); + } + get _actionTypeId() { + return c.sendRichLinkActionType; + } + get displayTypeName() { + return this._scriptingName; + } + get isArchActionSendRichLink() { + return true; + } + get body() { + return d.__classPrivateFieldGet(this, a, "f"); + } + get footer() { + return d.__classPrivateFieldGet(this, s, "f"); + } + get headerType() { + return d.__classPrivateFieldGet(this, n2, "f"); + } + get headerText() { + return d.__classPrivateFieldGet(this, r2, "f"); + } + get headerImage() { + return d.__classPrivateFieldGet(this, o, "f"); + } + get sendRichLinkOutputsFailure() { + return this._coreActionViewModel.errorBindings ? this.coreFactory.createArchWrapper(this._coreActionViewModel.errorBindings) : null; + } + get urlLabel() { + return d.__classPrivateFieldGet(this, u, "f"); + } + get urlValue() { + return d.__classPrivateFieldGet(this, l, "f"); + } + } + n2 = /* @__PURE__ */ new WeakMap(), r2 = /* @__PURE__ */ new WeakMap(), o = /* @__PURE__ */ new WeakMap(), a = /* @__PURE__ */ new WeakMap(), s = /* @__PURE__ */ new WeakMap(), l = /* @__PURE__ */ new WeakMap(), u = /* @__PURE__ */ new WeakMap(), t2.default = _; + }, 66791: function(e2, t2, i2) { + "use strict"; + var n2 = this && this.__read || function(e3, t3) { + var i3 = "function" == typeof Symbol && e3[Symbol.iterator]; + if (!i3) return e3; + var n3, r3, o2 = i3.call(e3), a2 = []; + try { + for (; (void 0 === t3 || t3-- > 0) && !(n3 = o2.next()).done; ) a2.push(n3.value); + } catch (e4) { + r3 = { error: e4 }; + } finally { + try { + n3 && !n3.done && (i3 = o2.return) && i3.call(o2); + } finally { + if (r3) throw r3.error; + } + } + return a2; + }, r2 = this && this.__spreadArray || function(e3, t3) { + for (var i3 = 0, n3 = t3.length, r3 = e3.length; i3 < n3; i3++, r3++) e3[r3] = t3[i3]; + return e3; + }; + Object.defineProperty(t2, "__esModule", { value: true }), t2.endWith = void 0; + var o = i2(39546), a = i2(61587); + t2.endWith = function() { + for (var e3 = [], t3 = 0; t3 < arguments.length; t3++) e3[t3] = arguments[t3]; + return function(t4) { + return o.concat(t4, a.of.apply(void 0, r2([], n2(e3)))); + }; + }; + }, 66800: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.digitalAudioManager = t2.DigitalAudioManager = void 0; + const n2 = i2(31635), r2 = n2.__importStar(i2(1360)), o = n2.__importStar(i2(24032)), a = n2.__importStar(i2(90891)), s = n2.__importDefault(i2(47532)), l = i2(81801), u = n2.__importDefault(i2(41633)), d = i2(47957), c = i2(27862); + class p extends s.default { + get requiredAuth() { + return l.externalAuthorizations.authStrings.responseAssetView; + } + get dependencyType() { + return c.DigitalAudio; + } + constructor() { + super(), this.topic = o.getTopic("DigitalAudioManager"), this.apiCallList = a.getDigitalAudioResponseAssets, this.apiCallSingle = a.getResponseAsset, this._rawServerCache = {}, this.className = "DigitalAudioManager", this.defaultMatchingStyle = r2.startsWith, this.dependencyContext = d.generic.digitalAudio, this.securityError = true, this.suppressSearch = false, this.uiMetadataSectionName = "digitalAudios", this.useStartsWithKeywordForExactMatch = true, this.actionsForUsageSearch = [], this.actionPropertyForUsageSearch = "", this._initialize(); + } + _createItemViewModel(e3) { + return new u.default(e3); + } + } + t2.DigitalAudioManager = p, t2.digitalAudioManager = new p(); + }, 66816: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(20692)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "grammarCollection"; + } + get displayTypeName() { + return "ArchVariableGrammarCollection"; + } + get initialValue() { + return this._initialValue; + } + get isArchVariableGrammarCollection() { + return true; + } + } + t2.default = r2; + }, 66847: (e2, t2, i2) => { + const n2 = i2(22124), r2 = i2(73303); + function o() { + o.baseConstructor.apply(this, arguments); + } + n2.extend(o, "SpeechToTextEngineList"), Object.defineProperties(o.prototype, { entities: { enumerable: true, get: function() { + return this._entities; + }, set: function(e3) { + this._entities = this.reviveArray(e3, r2); + } } }), e2.exports = o; + }, 66848: (e2, t2, i2) => { + function n2() { + Object.defineProperties(this, { _dateCreated: { writable: true }, _dateModified: { writable: true } }), this.coreLanguage = void 0, this.description = void 0, this.dateCreated = void 0, this.dateDocumentLastModified = void 0, this.dateModified = void 0, this.faqCount = void 0, this.articleCount = void 0, this.contentSearchEnabled = void 0, n2.baseConstructor.apply(this, arguments); + } + i2(52722).extend(n2, "KnowledgeBase"), Object.defineProperties(n2.prototype, { dateCreated: { get: function() { + return this._dateCreated; + }, set: function(e3) { + const t3 = Date.parse(e3); + this._dateCreated = isNaN(t3) ? void 0 : e3; + } }, dateModified: { get: function() { + return this._dateModified; + }, set: function(e3) { + const t3 = Date.parse(e3); + this._dateModified = isNaN(t3) ? void 0 : e3; + } }, isKnowledgeBaseModel: { get: () => true } }), e2.exports = n2; + }, 66852: (e2, t2, i2) => { + "use strict"; + var n2, r2, o = i2(85697); + i2(61897), e2.exports = function(e3) { + var t3 = "", i3 = Math.floor(1e-3 * (Date.now() - 1567752802062)); + return i3 === r2 ? n2++ : (n2 = 0, r2 = i3), t3 += o(7), t3 += o(e3), n2 > 0 && (t3 += o(n2)), t3 + o(i3); + }; + }, 66872: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importDefault(i2(56549)), o = n2.__importDefault(i2(96875)), a = n2.__importDefault(i2(73198)), s = n2.__importDefault(i2(98114)), l = n2.__importDefault(i2(90396)), u = n2.__importDefault(i2(5024)), d = n2.__importDefault(i2(78432)), c = i2(48565), p = n2.__importDefault(i2(94225)), _ = i2(63689), h = i2(87675), m = i2(46920), g = i2(46920), f = i2(46920), T = i2(46920), y = i2(83563), S = i2(2560), A = i2(50474), N = i2(19312), O = i2(35515), I = i2(14592), v = i2(14592), C = n2.__importDefault(i2(66978)), b = n2.__importDefault(i2(13523)), E = n2.__importDefault(i2(78641)), R = n2.__importDefault(i2(98717)), w = n2.__importDefault(i2(37873)); + let D; + D = i2(79896); + const P = i2(16928), M = i2(37345); + class F extends w.default { + static get definition() { + const e3 = this.prototype; + return e3._ensureSessionIsConnected(e3._infoPropGet("definition"), p.default), e3.coreFactory.createArchWrapper(s.default.getDefinitionForFlowType(e3._flowType)); + } + constructor(e3) { + super(e3), this.isArchBaseFlow = true, this._coreFlowViewModel = e3; + } + _addPropToMapIfShouldBeTraversed(e3, t3, i3) { + if ("settingsSupportedLanguages" !== e3 || this.supportsLanguages) return super._addPropToMapIfShouldBeTraversed(e3, t3, i3); + } + _logAsyncOperationNotification(e3) { + if (!e3) return void this.logWarning("not logging asynchronous operation update because the notification is invalid."); + if (!e3.currentOperation) return void this.logWarning("not logging asynchronous operation update because there is no current operation on the notification."); + const t3 = " ActionName: '" + e3.currentOperation.actionName + "', ActionStatus: '" + e3.currentOperation.actionStatus + "'"; + this.id !== e3.id ? this.logErrorAndThrow("received incorrect operation notification." + t3 + ", NotificationFlowId: '" + e3.id + "' does not equal this flow's id of '" + this.id + "'") : this.logNote("received operation notification." + t3); + } + _logUrl() { + this.logNote("flow url: " + this.url); + } + addVariable(e3, t3, i3, n3) { + return this._addVariable(this, "addVariable", e3, t3, i3, n3); + } + removeVariable(e3) { + const t3 = this._infoParm("archVariable", "removeVariable"); + return this._checkItem(t3, !e3 || !e3.isArchBaseVariable, "you must pass in a valid ArchBaseVariable instance."), this._removeVariable(this, e3); + } + checkoutAsync(e3, t3) { + return n2.__awaiter(this, void 0, void 0, function* () { + if (!this.isCreated) { + const e4 = this._infoMethod("checkoutAsync"); + R.default.itemInvalid(e4, `The flow '${this.name} has not yet been created.`, this.logStr, this.displayTypeName); + } + this._checkItemIsValidLiteralBool(this._infoParm("forceUnlock", "checkoutAsync"), e3, true); + const i3 = yield r2.default._checkoutFlowByFlowInfoAsync(this._getCoreViewModel().info, e3); + return this._getCoreViewModel().info.loadModel(i3._model), p.default.executeCallback(this, "checkoutAsync", t3); + }); + } + get displayTypeName() { + return "ArchBaseFlow"; + } + get division() { + if (p.default.orgInfo.areDivisionsAvailable) return this.coreFactory.createArchWrapper(this._getCoreViewModel() && this._getCoreViewModel().info ? this._getCoreViewModel().info.divisionViewModel : void 0); + } + loadAsync(e3, t3) { + return n2.__awaiter(this, void 0, void 0, function* () { + if (!this.isCreated) { + const e4 = this._infoMethod("loadAsync"); + R.default.itemInvalid(e4, `The flow '${this.name} has not yet been created.`, this.logStr, this.displayTypeName); + } + const i3 = yield r2.default._loadFlowByFlowInfoAsync(this._getCoreViewModel(), this._getCoreViewModel().info, e3, "loadAsync", true); + return this._getCoreViewModel().loadConfiguration(i3), p.default.executeCallback(this, "loadAsync", t3); + }); + } + get logStr() { + if (!this._coreFlowViewModel) return this.logStrTypeOnly; + const e3 = []; + return this._appendLogStrName(e3, this.name), this._appendLogStrType(e3, this.displayTypeName), this.isCreated && this._appendLogStrId(e3, this.id), this._createLogStrFromParts(e3); + } + _importFlowContentAsync(e3, t3, i3) { + return n2.__awaiter(this, void 0, void 0, function* () { + return this.logNote("the content to import is " + e3.length + " characters."), yield (0, T.importFlow)(this._coreFlowViewModel, e3, "", this.flowType, true), this.logNote("flow import complete."), p.default.executeCallback(this, t3, i3, this); + }); + } + _saveInternalAsync(e3) { + return n2.__awaiter(this, void 0, void 0, function* () { + this.isCreated || this.logErrorAndThrow("saveAsync - flow not created. Unable to save."), this.logNote("saveAsync - saving flow..."); + try { + yield C.default.allSettled(); + const t3 = (0, f.getStringifiedConfiguration)(this._coreFlowViewModel), i3 = yield M.saveConfiguration(this.id, t3); + return yield this._coreFlowViewModel.postSave(i3, e3), this.logNote("saveAsync - save successful."), this._logUrl(), this; + } catch (e4) { + this.logErrorAndThrow("saveAsync - failed to save\n" + e4); + } + }); + } + unlockAsync(e3) { + return n2.__awaiter(this, void 0, void 0, function* () { + if (!this.isCreated) { + const e4 = this._infoCalledObject(this, "unlockAsync"); + R.default.itemInvalid(e4, "This flow is not created so it is not possible to unlock.", this.logStr, this.displayTypeName); + } + const t3 = yield r2.default._unlockFlowAsync(this._getCoreViewModel().info); + return this._getCoreViewModel().info.loadModel(t3._model ? t3._model : t3), p.default.executeCallback(this, "unlockAsync", e3); + }); + } + _deleteExistingFlowByNameAsync() { + const e3 = this.name ? this.name.trim() : this.name, t3 = this._infoParm("this.name", "_deleteExistingFlowByNameAsync"); + this._checkItemIsValidLiteralString(t3, e3), this._checkItem(t3, 0 === e3.length, "you must pass in a non blank flow name"); + const i3 = { name: e3 ? "*" + e3.split(" ").join("* *") + "*" : "", pageSize: 50, pageNumber: 1, type: this._coreFlowViewModel.type }, r3 = (() => n2.__awaiter(this, void 0, void 0, function* () { + var t4, n3, r4, s2; + let u2; + try { + const e4 = yield M.getFlows(i3); + if (this.name) { + const t5 = this.name.toLowerCase(); + u2 = e4.entities.find((e5) => e5.name && e5.name.toLowerCase() === t5); + } + u2 ? this.logNote("there is a flow named '" + this.name + "' (id: '" + u2.id + "'). Will attempt to delete.") : this.logNote("there is no flow named '" + this.name + "'."); + } catch (t5) { + this.logErrorAndThrow("failed to lookup flow by name '" + e3 + "'\n" + t5); + } + if (!u2) return false; + const d2 = [new l.default(u2)]; + try { + yield o.default.deleteFlows(d2); + const e4 = 3; + this.logNote("successfully posted request to delete the existing flow named '" + u2.name + "' (id: '" + u2.id + "'). Post delete handling will pause for " + e4 + " seconds."); + const t5 = () => (this.logNote("post delete pause complete. Continuing."), true); + return new E.default().beginAsyncPolling(1, e4 * a.default.msPerSecond, t5, "_deleteExistingFlowByNameAsync"); + } catch (e4) { + const i4 = null !== (s2 = null === (r4 = null === (n3 = null === (t4 = null == e4 ? void 0 : e4.response) || void 0 === t4 ? void 0 : t4.errors) || void 0 === n3 ? void 0 : n3[0]) || void 0 === r4 ? void 0 : r4.code) && void 0 !== s2 ? s2 : ""; + this.logErrorAndThrow("could not delete the existing flow named '" + u2.name + "' (id: '" + u2.id + "')\n - Error Code: " + i4); + } + return false; + }))(); + return C.default.addPromise(r3, "deleteExistingFlowByNameAsync"), r3; + } + _getFlowIsSearchable(e3, t3, i3, r3) { + return n2.__awaiter(this, void 0, void 0, function* () { + try { + return yield new E.default().beginAsyncPolling(t3, i3, this._isFlowSearchableAsync.bind(this), e3), this.logNote(e3 + " - the flow is searchable."), p.default.executeCallback(this, e3, r3, true); + } catch (t4) { + return this.logNote(e3 + " - the flow is not searchable."), p.default.executeCallback(this, e3, r3, false); + } + }); + } + _getArchFactoryFlows() { + return void 0 === this._archFactoryFlows && (this._archFactoryFlows = i2(89059).default), this._archFactoryFlows; + } + _getArchCoreFactory() { + return void 0 === this._archCoreFactory && (this._archCoreFactory = i2(38689).default), this._archCoreFactory; + } + _isFlowSearchableAsync() { + return n2.__awaiter(this, void 0, void 0, function* () { + return void 0 !== (yield this._getArchFactoryFlows().getFlowInfoByFlowNameAsync(this.name, this.flowType, function() { + return true; + })); + }); + } + addFlowSupportedLanguage(e3, t3) { + const i3 = this.settingsSupportedLanguages; + return this.logItemVerboseNote(this._infoMethod("addFlowSupportedLanguage"), "Successfully obtained the supportedLanguagesSettings. Forwarding call through to addSupportedLanguage on the languages settings object."), i3.addSupportedLanguage(e3, t3); + } + canAddSupportedLanguage() { + return this.settingsSupportedLanguages.canAddSupportedLanguage(); + } + _checkCreationAllowed(e3) { + this.isCreated || this.definition.isCreatable || this.logErrorAndThrow(`${e3} - the flow type '${this.flowType}' does not allow creation of new instances. You can check to see if a flow type allows creation of new instances by checking the 'isCreatable' property on the flow type definition (see ArchDefinitionFlow documentation in help).`); + } + _checkPublishAllowed(e3) { + return this.flowType !== d.default.FLOW_TYPES.inboundChat || (this.logErrorAndThrow(`${e3} - Inbound chat flows have been deprecated and can no longer be published.`), false); + } + checkInAsync(e3) { + return n2.__awaiter(this, void 0, void 0, function* () { + this._checkCreationAllowed("checkInAsync"), this._checkItemIsValidLiteralBool(this._infoParm("ensureSearchable", "checkInAsync"), e3, true), yield C.default.allSettled(), yield this.saveAsync(), this.logNote("checkInAsync - checking in..."); + try { + yield o.default.checkInFlow(this._coreFlowViewModel, this._logAsyncOperationNotification.bind(this)); + } catch (e4) { + this.logErrorAndThrow(`checkInAsync - check in failed. Error details: ${JSON.stringify(e4)}`); + } + return e3 ? (this.logNote("checkInAsync - checked in. making sure the flow is searchable"), yield this._getFlowIsSearchable("checkInAsync", 20, 3e3, (e4) => (e4 || this.logErrorAndThrow("checkInAsync - checked in flow is not searchable."), this)), this) : (this.logNote("checkInAsync - checked in"), this); + }); + } + createAsync() { + return n2.__awaiter(this, void 0, void 0, function* () { + return this._internalCreateAsync(); + }); + } + get _wantValidateBeforeCreate() { + return true; + } + _internalCreateAsync(e3) { + return n2.__awaiter(this, void 0, void 0, function* () { + var t3, i3, n3, r3, o2, a2, s2, l2, u2; + this._checkCreationAllowed("createAsync"), e3 = e3 || this._coreFlowViewModel.cachedCreationDataFromScripting, this.logNote("createAsync - creating flow..."), this.isCreated && this.logErrorAndThrow("createAsync - unable to create because the flow is already created"), this.logNote("createAsync - deleting any existing flow with the name '" + this.name + "' if it exists first..."), this._deleteExistingFlowByNameAsync(); + try { + let u3, d2; + if (yield C.default.allSettled(), this._wantValidateBeforeCreate && (yield this._validateAsync(true)), p.default.orgInfo.areDivisionsAvailable) { + this.logNote("createAsync - getting division information for the new flow"); + const e4 = this.division; + e4 || this.logErrorAndThrow("there is no division specified in which to create the flow!"), this.logNote("createAsync - new flow's division will be " + e4.logStr), u3 = e4.id; + } + this.logNote("createAsync - delete processing done, now attempting to create flow with the name '" + this.name + "'"), d2 = this.isArchFlowWorkitem ? yield M.createFlow(this.flowType, this.name, this.description, u3, this._coreFlowViewModel.defaultLanguage, e3.worktypeId) : yield M.createFlow(this.flowType, this.name, this.description, u3, this._coreFlowViewModel.languageForFlowCreation), this.isArchBaseFlowBot && (null === (i3 = null === (t3 = d2.nluInfo) || void 0 === t3 ? void 0 : t3.domain) || void 0 === i3 ? void 0 : i3.id) && ((null === (r3 = null === (n3 = null == e3 ? void 0 : e3.nluVersionTemplate) || void 0 === n3 ? void 0 : n3.templateObject) || void 0 === r3 ? void 0 : r3.id) === _.nluDomainManager.getFakeNonCreatedNluDomainId(this._getCoreViewModel()) && (e3.nluVersionTemplate.templateObject.id = d2.nluInfo.domain.id), (null == e3 ? void 0 : e3.nluVersionTemplate) && e3.nluVersionTemplate.templateObject && void 0 === (null === (a2 = null === (o2 = e3.nluVersionTemplate) || void 0 === o2 ? void 0 : o2.templateObject) || void 0 === a2 ? void 0 : a2.id) && (e3.nluVersionTemplate.templateObject.id = d2.nluInfo.domain.id), (null === (l2 = null === (s2 = this._getCoreViewModel().nluMetaData) || void 0 === s2 ? void 0 : s2.archNlu) || void 0 === l2 ? void 0 : l2.id) === _.nluDomainManager.getFakeNonCreatedNluDomainId(this._getCoreViewModel()) && (this._getCoreViewModel().nluMetaData.archNlu.id = d2.nluInfo.domain.id), e3.createdNluDomainId = d2.nluInfo.domain.id, e3.createdEngineVersion = d2.nluInfo.engineVersion), this.logNote(`createAsync - transitioning flow id from '${this._coreFlowViewModel.id}' to '${d2.id}'`), this._coreFlowViewModel.info.loadModel(d2), this.logNote("createAsync - successfully created flow name '" + this.name + "' (id: '" + this.id + "')"), yield this._coreFlowViewModel.postCreate(e3), this.logNote("createAsync - now saving..."); + try { + return yield this._saveInternalAsync(); + } catch (e4) { + this.logErrorAndThrow(`createAsync - save failed. Exception: ${e4}`); + } + } catch (e4) { + let t4 = "createAsync - failed to create."; + "object" == typeof e4 && null !== e4 ? (e4.message && (t4 += ` Exception: ${e4.message}.`), (null === (u2 = e4.response) || void 0 === u2 ? void 0 : u2.contextId) && (t4 += ` (contextId: '${e4.response.contextId}')`)) : "string" == typeof e4 && (t4 += ` Exception: ${e4}.`), this.logErrorAndThrow(t4); + } + return this; + }); + } + get dataTypes() { + return b.default.getFlowDataTypes(this); + } + get definition() { + return this.coreFactory.createArchWrapper(s.default.getDefinitionForFlowType(this.flowType)); + } + get description() { + return this._coreFlowViewModel.info.description; + } + set description(e3) { + this._coreFlowViewModel.description = e3; + } + exportToDirAsync(e3, t3, i3, r3, o2) { + return n2.__awaiter(this, void 0, void 0, function* () { + this._checkItemIsValidLiteralStringEnum(this._infoParm("flowFormat", "exportToDirAsync"), i3, d.default.FLOW_FORMAT_TYPES_ALL, true), this._checkItemIsValidFunction(this._infoParm("callbackFunction", "exportToDirAsync"), t3, true); + const n3 = this._getExportFilePath("exportToDirAsync", e3, i3, r3); + yield C.default.allSettled(); + const a2 = (0, S.toFlowFileFormat)(null != i3 ? i3 : d.default.FLOW_FORMAT_TYPES.architect), s2 = y.FlowExportSettings.create(a2, o2), l2 = yield (0, m.exportFlowAsync)(this._coreFlowViewModel, s2, false); + return l2 || this.logErrorAndThrow("unable to get flow export content."), this.logNote("flow export content successfully generated."), D.writeFileSync(n3, l2.content, { encoding: "utf8" }), this.logNote("flow export successfully saved to '" + n3 + "'"), p.default.executeCallback(this, "exportToDirAsync", t3, n3); + }); + } + exportToObjectAsync(e3, t3, i3) { + return n2.__awaiter(this, void 0, void 0, function* () { + this._checkItemIsValidFunction(this._infoParm("callbackFunction", "exportToObjectAsync"), e3, true), this._checkItemIsValidLiteralStringEnum(this._infoParm("flowFormat", "exportToObjectAsync"), t3, d.default.FLOW_FORMAT_TYPES_ALL, true), yield C.default.allSettled(); + const n3 = (0, S.toFlowFileFormat)(null != t3 ? t3 : d.default.FLOW_FORMAT_TYPES.architect), r3 = y.FlowExportSettings.create(n3, i3), o2 = yield (0, m.exportFlowAsync)(this._coreFlowViewModel, r3, false); + return o2 || this.logErrorAndThrow("unable to get flow export content."), this.logNote("flow export content successfully generated."), p.default.executeCallback(this, "exportToObjectAsync", e3, { content: o2.content, fileName: o2.fileName }); + }); + } + get flowType() { + return this._coreFlowViewModel.type; + } + _getExportFilePath(e3, t3, i3, n3) { + var r3, o2; + this._checkItemIsValidLiteralString(this._infoParm("destinationDir", e3), t3, true), this._checkItemIsValidLiteralStringEnum(this._infoParm("flowFormat", e3), i3, d.default.FLOW_FORMAT_TYPES_ALL, true), this._checkItemIsValidLiteralStringEnum(this._infoParm("flowFormat", e3), i3, d.default.FLOW_FORMAT_TYPES_ALL, true), t3 || (this.logNote(`using default directory value of '.' for destinationDir parameter in ${e3}.`), t3 = "."); + const a2 = i3 === d.default.FLOW_FORMAT_TYPES.yaml, l2 = P.resolve(P.format(P.parse(t3))), u2 = this._getCoreViewModel(); + if (n3) { + const t4 = P.parse(n3); + this._checkItem(this._infoParm("fileName", e3), (null === (r3 = t4.root) || void 0 === r3 ? void 0 : r3.length) || (null === (o2 = t4.dir) || void 0 === o2 ? void 0 : o2.length), "cannot specify file path information in the fileName parameter. The fileName should be just the desired file name and can additionally include an optional extension."); + const i4 = P.extname(n3), l3 = a2 ? ".yaml" : s.default.getFileExtensionForFlowType(u2.type); + i4 !== l3 && (n3 += l3); + } else n3 = (0, g.getExportFilePath)(u2, a2); + this.logNote(`flow export destination directory resolved to '${l2}'`); + const c2 = P.join(l2, n3); + return this.logNote(`saving flow export to path '${c2}'`), c2; + } + getExportFilePath(e3, t3, i3) { + return this._getExportFilePath("getExportFilePath", e3, t3, i3); + } + getObjectForTrackingId(e3) { + const t3 = this._infoParm("trackingId", e3); + this._checkItemIsValidLiteralIntInRange(t3, e3, u.default.minTrackingId, u.default.maxTrackingId); + const i3 = (0, c.getNodeByTrackingId)(this._getCoreViewModel(), e3); + if (i3) return this._getArchCoreFactory().createArchWrapper(i3, true); + } + getVariableById(e3) { + this._checkItemIsValidLiteralString(this._infoParm("variableId", "getVariableById"), e3); + const t3 = this._coreFlowViewModel.getVariable(e3); + if (t3) return this.coreFactory.createArchWrapper(t3); + } + getVariableByName(e3) { + this._checkItemIsValidLiteralString(this._infoParm("variableName", "getVariableByName"), e3); + const t3 = this._coreFlowViewModel.variableGroup.getVariableByName(e3, this._coreFlowViewModel); + if (t3) return this.coreFactory.createArchWrapper(t3); + } + importFromContentAsync(e3, t3) { + return n2.__awaiter(this, void 0, void 0, function* () { + return this._checkItemIsValidLiteralString(this._infoParm("exportContent", "importFromContentAsync"), e3), this._checkItemIsValidFunction(this._infoParm("callbackFunction", "importFromContentAsync"), t3, true), yield C.default.allSettled(), this._importFlowContentAsync(e3, "importFromContentAsync", t3); + }); + } + importFromFileAsync(e3, t3) { + return n2.__awaiter(this, void 0, void 0, function* () { + this._checkItemIsValidLiteralString(this._infoParm("flowExportFilePath", "importFromFileAsync"), e3), this._checkItemIsValidFunction(this._infoParm("callbackFunction", "importFromFileAsync"), t3, true), yield C.default.allSettled(), e3 = P.resolve(P.format(P.parse(e3))), this.logNote("reading contents of flow export file '" + e3 + "' for import."); + const i3 = D.readFileSync(e3); + return this.logNote("contents of flow export file '" + e3 + "' successfully read."), this._importFlowContentAsync(i3.toString(), "importFromFileAsync", t3); + }); + } + get isCreated() { + return this._coreFlowViewModel.isCreated; + } + get isReadOnly() { + return !!this.isCreated && this._coreFlowViewModel.isReadOnly; + } + get isSecure() { + return this._coreFlowViewModel.consumesSecureData; + } + get isVariableContainer() { + return true; + } + get languageSettings() { + return this.logDeprecatedPropertyWarning(this._infoPropGet("languageSettings"), "settingsSupportedLanguages"), this.settingsSupportedLanguages; + } + get name() { + return this._coreFlowViewModel.displayName; + } + set name(e3) { + const t3 = this._infoPropSet("newValue", "name"); + this._checkItemIsValidLiteralString(t3, e3); + const i3 = (0, N.flowNameIsInvalidMessage)(e3); + this._checkItem(t3, null != i3, i3), this._coreFlowViewModel.displayName = e3; + } + publishAsync(e3) { + return n2.__awaiter(this, void 0, void 0, function* () { + this._checkPublishAllowed("publishAsync"), this._checkCreationAllowed("publishAsync"), this._checkItemIsValidLiteralBool(this._infoParm("ensureSearchable", "publishAsync"), e3, true), this.logNote("publishAsync - will validate first..."), (yield this.validateAsync()).hasErrors && this.logErrorAndThrow("publishAsync - cannot publish due to flow validation errors :("), this.logNote("publishAsync - no validation errors. now saving..."); + try { + yield this._saveAsyncWithOptions({ shouldAwaitNluTraining: true }); + } catch (e4) { + this.logErrorAndThrow(`publishAsync - could not save the flow named '${this.name}' (id: '${this.id}') +${(null == e4 ? void 0 : e4.message) || e4}`); + } + this.logNote("publishAsync - save complete. now publishing..."); + try { + yield o.default.publishFlow(this._coreFlowViewModel, this._logAsyncOperationNotification.bind(this), false); + } catch (e4) { + this.logErrorAndThrow(`publishAsync - could not publish the flow named '${this.name}' (id: '${this.id}') +${(null == e4 ? void 0 : e4.message) || e4}`); + } + return e3 ? (this.logNote("publishAsync - publish successful. making sure the flow is searchable..."), yield this._getFlowIsSearchable("publishAsync", 20, 3e3, (e4) => (e4 || this.logErrorAndThrow("publishAsync - publish succeeded but published flow is not searchable."), this._logUrl(), this)), this) : (this.logNote("publishAsync - publish successful."), this._logUrl(), this); + }); + } + saveAsync() { + return this._saveAsyncWithOptions(); + } + _saveAsyncWithOptions(e3) { + return n2.__awaiter(this, void 0, void 0, function* () { + if (!this.isCreated) { + this._checkCreationAllowed("saveAsync"), this.logNote("saveAsync - flow is not created. now creating..."); + try { + return yield this.createAsync(); + } catch (e4) { + this.logErrorAndThrow("saveAsync - creation failed."); + } + } + try { + return yield this._saveInternalAsync(e3); + } catch (e4) { + this.logErrorAndThrow("saveAsync - save failed."); + } + return this; + }); + } + get settingsErrorHandling() { + if (this._getCoreViewModel().errorHandling) return this.coreFactory.createArchWrapper(this._getCoreViewModel().errorHandling); + } + get settingsActionDefaults() { + return this.coreFactory.createArchWrapper(this._getCoreViewModel().defaultSettings); + } + get settingsSupportedLanguages() { + return this.supportsLanguages || this.logItemErrorAndThrow(this._infoPropGet("settingsSupportedLanguages"), "the flow type '" + this.flowType + "' does not support languages. You can see if a flow supports languages by accessing the supportsLanguages property on it."), this.coreFactory.createArchWrapper(this._getCoreViewModel().languages); + } + get supportsAudio() { + return !!this._getCoreViewModel().supportsAudio; + } + get supportsErrorHandling() { + return !!this._getCoreViewModel().errorHandling; + } + get supportsLanguages() { + return this._getCoreViewModel().supportsLanguages; + } + get supportsDefaultLanguage() { + return this._getCoreViewModel().languagesSupportDefaultLanguage; + } + get url() { + if (!this.isCreated || !this._getCoreViewModel().startUpObject) return ""; + let e3 = `https://${O.values.host}`; + return e3 += `/architect/#/${this._getCoreViewModel().type}/flows/${this.id}/latest/`, e3 += `menu/${this.coreFactory.createArchWrapper(this._getCoreViewModel().startUpObject).id}`, e3; + } + validateAsync() { + return this._validateAsync(); + } + _validateAsync(e3) { + return n2.__awaiter(this, void 0, void 0, function* () { + try { + yield C.default.allSettled(), this.logNote("validateAsync - async flow operation manager validate..."); + try { + yield this._coreFlowViewModel.queuedAsyncValidate(); + } catch (e4) { + this.logErrorAndThrow("validateAsync - async flow operation manager validate failed.\n" + e4); + } + const t3 = e3 ? R.default._suppressLogging() : void 0; + try { + this.logNote("validateAsync - processing validation results summary..."); + const e4 = this.coreFactory.createArchWrapper(this._coreFlowViewModel.validationResults), t4 = "Validation Summary\n" + e4.getSummaryStr(true) + "\n - Validation Summary Done"; + return e4.hasErrors ? this.logError(t4) : e4.hasWarnings ? this.logWarning(t4) : this.logNote(t4), e4; + } finally { + t3 && R.default._restoreLoggingSettings(t3); + } + } catch (e4) { + this.logErrorAndThrow("validateAsync - could not validate the flow named '" + this.name + "' (id: '" + this.id + "')\n" + e4); + } + }); + } + get variables() { + const e3 = []; + return this._getCoreViewModel().variableGroup.flowVariables.forEach((t3) => { + e3.push(this.coreFactory.createArchWrapper(t3)); + }), e3; + } + _validateCustomJsonTypeSchemas(e3) { + var t3, i3, n3, r3, o2; + const a2 = (0, I.canCreateCustomExpressionTypesFromDataTypeDefs)(this._getCoreViewModel(), e3); + if (null === (t3 = a2.errors) || void 0 === t3 ? void 0 : t3.length) { + const e4 = []; + for (const t4 of a2.errors) { + const a3 = ["invalid schema."]; + switch (t4.customDataTypeDef && (a3.push(`Schema Name: ${t4.customDataTypeDef.name}`), a3.push(`Schema Id: ${t4.customDataTypeDef.id}`)), t4.error) { + case h.DataTypeDefValidationError.propDataTypeIdInvalid: + a3.push(`Property: ${null === (i3 = t4.propDataTypeDef) || void 0 === i3 ? void 0 : i3.id} - The property data type identifier '${null === (n3 = t4.propDataTypeDef) || void 0 === n3 ? void 0 : n3.dataTypeId}' is invalid. There is no data type with that identifier.`); + break; + case h.DataTypeDefValidationError.propDataTypeNotAvailableInFlow: + a3.push(`Property: ${null === (r3 = t4.propDataTypeDef) || void 0 === r3 ? void 0 : r3.id} - The data type '${null === (o2 = t4.propDataType) || void 0 === o2 ? void 0 : o2.displayString}' configured on this property is not available for use in this flow.`); + } + e4.push(a3.join(", ")); + } + this.logErrorAndThrow(e4.join("\n")); + } + } + addUpdateCustomJsonTypeFromSchema(e3) { + const t3 = this._infoParm("archCustomJsonTypeSchema", "addUpdateCustomJsonTypeFromSchema"); + this._checkItem(t3, !(null == e3 ? void 0 : e3.isArchDataTypeJsonCustomSchema), "you must pass in a valid ArchDataTypeJsonCustomSchema instance."), this._validateCustomJsonTypeSchemas([e3._getCoreViewModel()]); + const i3 = (0, v.createCustomExpressionTypesFromDataTypeDefs)(this._getCoreViewModel(), [e3._getCoreViewModel()], true); + return this.coreFactory.createArchWrapper(i3[0]); + } + addUpdateCustomJsonTypesFromSchemas(e3) { + const t3 = this._infoParm("archCustomJsonTypeSchemas", "addUpdateCustomJsonTypesFromSchemas"); + this._checkItem(t3, !(0, A.isArray)(e3), "you must pass in an array of ArchCustomJsonTypeSchema values when calling addUpdateCustomJsonTypesFromSchemas. Use addUpdateCustomJsonTypeFromSchema if you want to process just one schema."); + let i3 = 0; + const n3 = []; + e3.forEach((e4) => { + this._checkItem(t3, !(null == e4 ? void 0 : e4.isArchDataTypeJsonCustomSchema), `archCustomJsonTypeSchemas[${i3}] - this item in the array is not a valid ArchDataTypeJsonCustomSchema value.`), n3.push(e4._getCoreViewModel()), i3++; + }), this._validateCustomJsonTypeSchemas(n3); + const r3 = (0, v.createCustomExpressionTypesFromDataTypeDefs)(this._getCoreViewModel(), n3, true), o2 = []; + return r3.forEach((e4) => { + o2.push(this.coreFactory.createArchWrapper(e4)); + }), o2; + } + get isArchFlowWorkitem() { + return false; + } + get isArchBaseFlowBot() { + return false; + } + } + t2.default = F; + }, 66882: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.DynamicTimeslotTypeList = void 0; + const n2 = i2(31635), r2 = n2.__importDefault(i2(92140)), o = n2.__importDefault(i2(45889)), a = n2.__importDefault(i2(7401)), s = n2.__importDefault(i2(23215)), l = i2(44703); + class u extends l.ExpressionContainer { + constructor(e3, t3) { + super(e3.parentFlow, e3, t3), this._initialize(); + } + get className() { + return "DynamicTimeslotTypeList"; + } + initializeDesignTime() { + super.initializeDesignTime(), this.outOfService = !this.parentFlow.definition.supportsDynamicTimeslots; + } + createItem(e3) { + const t3 = e3 instanceof o.default ? e3 : new o.default(); + return t3.name = e3.name, t3.timeslots = new a.default(t3.timeslots), new s.default(t3, this.parentFlow); + } + getItem(e3) { + return r2.default.findWhere(this.items, { name: e3 }); + } + _getConfiguration(e3, t3, i3) { + return this.outOfService ? {} : (this.items || []).reduce((e4, t4) => (t4.name && (e4[t4.name] = t4.model), e4), {}); + } + } + t2.DynamicTimeslotTypeList = u; + }, 66908: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.surveyInviteListManager = t2.SurveyInviteListManager = void 0; + const n2 = i2(6109), r2 = i2(96618), o = i2(24032), a = i2(27862); + class s extends n2.FlowListManager { + get dependencyType() { + return a.SurveyInviteFlow; + } + constructor() { + super(), this.topic = (0, o.getTopic)("surveyInviteListManager"), this.additionalQueryParams = { type: r2.flowTypes.flowTypeSurveyInvite }, this.className = "SurveyInviteListManager", this.flowType = r2.flowTypes.flowTypeSurveyInvite, this._initialize(); + } + } + t2.SurveyInviteListManager = s, t2.surveyInviteListManager = new s(); + }, 66911: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.takeUntil = void 0; + var n2 = i2(65212), r2 = i2(17214), o = i2(19724), a = i2(5717); + t2.takeUntil = function(e3) { + return n2.operate(function(t3, i3) { + o.innerFrom(e3).subscribe(r2.createOperatorSubscriber(i3, function() { + return i3.complete(); + }, a.noop)), !i3.closed && t3.subscribe(i3); + }); + }; + }, 66942: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.audioRegistrationService = void 0; + const n2 = i2(31635), r2 = n2.__importDefault(i2(92140)), o = i2(56673), a = n2.__importStar(i2(12847)), s = n2.__importStar(i2(1115)), l = i2(55909), u = i2(33951); + class d extends o.BaseRegistrationService { + constructor() { + super(); + } + get className() { + return "AudioRegistrationService"; + } + get isAudioRegistrationService() { + return true; + } + registerItem(e3) { + super.registerItem(e3), this._getFlowSpecificMap(e3)[e3.id] = e3; + } + unregisterItem(e3) { + var t3; + super.unregisterItem(e3); + const i3 = this._getFlowSpecificMap(e3); + if (i3) delete i3[e3.id]; + else { + if (!(null === (t3 = null == e3 ? void 0 : e3.parentFlow) || void 0 === t3 ? void 0 : t3.loaded)) return; + a.error(`${e3.id} not found to unregister - no flow bucket available for flow id '${e3.parentFlow.id}'`); + } + } + validateAudioViewModelsForFlowId(e3) { + u.ParameterValidator.expectFlowViewModel(e3, () => l.ParameterInfo.createFunctionParameter(this.className, "validateAudioViewModelsForFlowId", "flowViewModel")), e3 && e3.instanceId && r2.default.each(this._flowMap[e3.instanceId], (e4) => { + e4.parent.isFlowViewModel ? s.validateItem(e4, false, true) : s.validateNode(e4.parent, false); + }); + } + } + t2.audioRegistrationService = new d(); + }, 66959: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(99772); + class r2 extends n2.BaseBuilderWithBuilderPartsViewModel { + constructor({ owningExpression: e3, model: t3, reId: i3 }) { + super(e3, t3, void 0, i3, false); + } + get className() { + return "BooleanBuilderWithBuilderPartsViewModel"; + } + get isBooleanBuilderWithBuilderPartsViewModel() { + return true; + } + _buildExpressionGenerationFromManager(e3) { + return e3.getOverallPartsGeneration(this.builderDef.getExpressionGenerator(this)); + } + } + t2.default = r2; + }, 66973: (e2, t2, i2) => { + "use strict"; + var n2; + Object.defineProperty(t2, "__esModule", { value: true }); + const r2 = i2(31635), o = r2.__importDefault(i2(55015)), a = i2(19596), s = i2(80295), l = i2(80295); + class u extends a.DataContract { + constructor(e3) { + super(e3), (0, l.makeUnenumerable)(this, "_availability"), (0, l.makeUnenumerable)(this, "_isVersioned"), (0, l.makeUnenumerable)(this, "_id"); + } + get availability() { + return this._availability; + } + set availability(e3) { + this._availability = this.reviveItem(e3, o.default); + } + get id() { + return this._id; + } + set id(e3) { + this._id = e3; + } + get isVersioned() { + return this._isVersioned; + } + set isVersioned(e3) { + this._isVersioned = e3; + } + } + t2.default = u, r2.__decorate([(0, s.enumerable)(true), r2.__metadata("design:type", "function" == typeof (n2 = void 0 !== o.default && o.default) ? n2 : Object), r2.__metadata("design:paramtypes", [Object])], u.prototype, "availability", null), r2.__decorate([(0, s.enumerable)(true), r2.__metadata("design:type", String), r2.__metadata("design:paramtypes", [String])], u.prototype, "id", null), r2.__decorate([(0, s.enumerable)(true), r2.__metadata("design:type", Boolean), r2.__metadata("design:paramtypes", [Boolean])], u.prototype, "isVersioned", null); + }, 66975: function(e2, t2, i2) { + "use strict"; + var n2 = this && this.__read || function(e3, t3) { + var i3 = "function" == typeof Symbol && e3[Symbol.iterator]; + if (!i3) return e3; + var n3, r3, o2 = i3.call(e3), a2 = []; + try { + for (; (void 0 === t3 || t3-- > 0) && !(n3 = o2.next()).done; ) a2.push(n3.value); + } catch (e4) { + r3 = { error: e4 }; + } finally { + try { + n3 && !n3.done && (i3 = o2.return) && i3.call(o2); + } finally { + if (r3) throw r3.error; + } + } + return a2; + }, r2 = this && this.__spreadArray || function(e3, t3) { + for (var i3 = 0, n3 = t3.length, r3 = e3.length; i3 < n3; i3++, r3++) e3[r3] = t3[i3]; + return e3; + }; + Object.defineProperty(t2, "__esModule", { value: true }), t2.withLatestFrom = void 0; + var o = i2(65212), a = i2(17214), s = i2(19724), l = i2(87699), u = i2(5717), d = i2(26404); + t2.withLatestFrom = function() { + for (var e3 = [], t3 = 0; t3 < arguments.length; t3++) e3[t3] = arguments[t3]; + var i3 = d.popResultSelector(e3); + return o.operate(function(t4, o2) { + for (var d2 = e3.length, c = new Array(d2), p = e3.map(function() { + return false; + }), _ = false, h = function(t5) { + s.innerFrom(e3[t5]).subscribe(a.createOperatorSubscriber(o2, function(e4) { + c[t5] = e4, _ || p[t5] || (p[t5] = true, (_ = p.every(l.identity)) && (p = null)); + }, u.noop)); + }, m = 0; m < d2; m++) h(m); + t4.subscribe(a.createOperatorSubscriber(o2, function(e4) { + if (_) { + var t5 = r2([e4], n2(c)); + o2.next(i3 ? i3.apply(void 0, r2([], n2(t5))) : t5); + } + })); + }); + }; + }, 66978: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importDefault(i2(92140)), o = n2.__importDefault(i2(33231)), a = i2(9456), s = n2.__importDefault(i2(8471)); + class l extends s.default { + constructor() { + super(), this._asyncPromises = [], this._archPromiseAdded = false; + } + get displayTypeName() { + return "ArchAsyncTracker"; + } + get logStr() { + return this._createLogStrFromParts(["ArchAsyncTracker"]); + } + get isArchAsyncTracker() { + return true; + } + addPromise(e3, t3) { + if (this._checkItem(this._infoParm("promise", "addPromise"), !o.default.isPromiseAlike(e3), "not a valid promise"), e3.isFulfilled || (e3 = (0, o.default)(e3)), !e3.isFulfilled()) { + const i3 = { promise: e3, name: t3 || "unknown", id: (0, a.uuid)() }; + this.logNoteVerbose(`adding new promise with name '${i3.name}' and id ${i3.id}`), this._asyncPromises.push(i3), this._archPromiseAdded = true, e3.catch(function(e4) { + this.logNoteVerbose(`promise with name '${i3.name}' and id '${i3.id}' threw an exception`), this.logErrorAndThrow("promise unhandled exception caught. Error: " + e4); + }.bind(this)), e3.finally(function() { + this.logNoteVerbose(`promise with name '${i3.name}' and id ${i3.id} was resolved`), this._asyncPromises = r2.default.without(this._asyncPromises, i3); + }.bind(this)); + } + return e3; + } + _allSettled(e3, t3) { + e3 = parseInt(String(e3)), isNaN(e3) && (e3 = 1), e3 < 0 ? e3 = 1 : e3 >= 50 && this.logErrorAndThrow("allSettled called more than 50 times waiting for async operation(s) to complete. Not going to wait anymore."), this._asyncPromises.length > 0 ? (this.logNoteVerbose("iteration " + e3 + ": Waiting for " + this._asyncPromises.length + " async operation(s) to complete..."), o.default.allSettled(this._asyncPromises.map((e4) => e4.promise)).then(function() { + var i3; + this._asyncPromises.length > 0 && this.logNoteVerbose("need to wait for more async operations(s) to complete..."), this._archPromiseAdded ? (this._archPromiseAdded = false, (null === (i3 = this._asyncPromises) || void 0 === i3 ? void 0 : i3.length) && (this.logNoteVerbose("a promise was added, resetting count to 1."), e3 = 1)) : ++e3, this._allSettled(e3, t3); + }.bind(this))) : t3.resolve(); + } + allSettled() { + const e3 = o.default.defer(); + return this._allSettled(0, e3), e3.promise; + } + reset() { + this.logNote("resetting async tracker, clearing " + this._asyncPromises.length + " tracked promise(s)"), this._asyncPromises = [], this._archPromiseAdded = false; + } + } + const u = new l(); + t2.default = u; + }, 67010: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(84502)), r2 = i2(96618); + class o extends n2.default { + constructor(e3) { + super(e3); + } + get _flowType() { + return r2.flowTypes.flowTypeInQueueShortMessage; + } + get displayTypeName() { + return "ArchFlowInQueueShortMessage"; + } + get isArchFlowInQueueShortMessage() { + return true; + } + } + t2.default = o; + }, 67018: (e2, t2) => { + "use strict"; + var i2; + Object.defineProperty(t2, "__esModule", { value: true }), t2.FlowInvokingEvent = void 0, (function(e3) { + e3.workitemCreated = "workitemCreated", e3.workitemDateBasedEvent = "workitemDateBasedEvent", e3.workitemStatusChanged = "workitemStatusChanged"; + })(i2 || (t2.FlowInvokingEvent = i2 = {})); + }, 67093: (e2, t2, i2) => { + const n2 = i2(19420); + function r2() { + r2.baseConstructor.apply(this, arguments); + } + function o() { + o.baseConstructor.apply(this, arguments); + } + function a() { + a.baseConstructor.apply(this, arguments); + } + function s() { + s.baseConstructor.apply(this, arguments); + } + function l() { + l.baseConstructor.apply(this, arguments); + } + function u() { + u.baseConstructor.apply(this, arguments); + } + function d() { + d.baseConstructor.apply(this, arguments); + } + function c() { + c.baseConstructor.apply(this, arguments); + } + function p() { + p.baseConstructor.apply(this, arguments); + } + function _() { + _.baseConstructor.apply(this, arguments); + } + function h() { + h.baseConstructor.apply(this, arguments); + } + i2(16200), n2.extend(r2, "BaseFormatEnumContainerVariable", true), Object.defineProperty(r2.prototype, "isFormatEnumVariable", { value: true }), r2.extend(o, "BoolFormatEnumContainerVariable", true), r2.extend(a, "CurrencyFormatEnumContainerVariable", true), r2.extend(s, "DateFormatEnumContainerVariable", true), r2.extend(l, "DateTimeFormatEnumContainerVariable", true), r2.extend(u, "NumberFormatEnumContainerVariable", true), r2.extend(d, "PhoneNumberFormatEnumContainerVariable", true), r2.extend(c, "LanguageSkillEnumContainerVariable", true), r2.extend(p, "StringFormatEnumContainerVariable", true), r2.extend(_, "TimeFormatEnumContainerVariable", true), r2.extend(h, "TimePartEnumContainerVariable", true), e2.exports = { BoolFormatEnumContainerVariable: o, CurrencyFormatEnumContainerVariable: a, DateFormatEnumContainerVariable: s, DateTimeFormatEnumContainerVariable: l, LanguageSkillEnumContainerVariable: c, NumberFormatEnumContainerVariable: u, PhoneNumberFormatEnumContainerVariable: d, StringFormatEnumContainerVariable: p, TimeFormatEnumContainerVariable: _, TimePartEnumContainerVariable: h }; + }, 67114: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = i2(17604), o = n2.__importDefault(i2(92140)), a = i2(80295), s = i2(80295), l = n2.__importDefault(i2(87921)), u = i2(55909), d = i2(33951), c = i2(47957); + class p extends l.default { + constructor() { + super(), this._allowableValueShowOriginalDisplayStringInPopover = false, this._allowableValueUseOriginalDisplayString = false, this._allowableValues = void 0, this._allowableValuePlaceholder = void 0, this._allowableValuesUseInlineSelect = false, this._caseSensitiveAllowableValues = false, this._validationAllowableValues = void 0, this._validationAllowableValuesExpr = void 0, (0, s.makeUnenumerable)(this, "_allowableValueShowOriginalDisplayStringInPopover"), (0, s.makeUnenumerable)(this, "_allowableValueUseOriginalDisplayString"), (0, s.makeUnenumerable)(this, "_allowableValues"), (0, s.makeUnenumerable)(this, "_allowableValuePlaceholder"), (0, s.makeUnenumerable)(this, "_allowableValuesUseInlineSelect"), (0, s.makeUnenumerable)(this, "_allowableValuesDisabledCallback"), (0, s.makeUnenumerable)(this, "_caseSensitiveAllowableValues"), (0, s.makeUnenumerable)(this, "_validationAllowableValues"), (0, s.makeUnenumerable)(this, "_validationAllowableValuesExpr"), (0, s.makeUnenumerable)(this, "_lastAllowableValueSelectedStorageKey"); + } + get _stringUtilities() { + return this._stringUtils || (this._stringUtils = i2(66381)), this._stringUtils; + } + _setFromFacets(e3) { + super._setFromFacets(e3), this._setFacetIfSet(() => this.setAllowableValues(e3.allowableValues, e3.caseSensitiveAllowableValues), e3.allowableValues, "_allowableValues"), this._setFacetIfSet(this.setAllowableValuePlaceholder, e3.allowableValuePlaceholder, "_allowableValuePlaceholder"), this._setFacetIfSet(this.setAllowableValuesUseInlineSelect, e3.allowableValuesUseInlineSelect, "_allowableValuesUseInlineSelect"), this._setFacetIfSet(this.setAllowableValuesDisabledCallback, e3.allowableValuesDisabledCallback, "_allowableValuesDisabledCallback"), this._setFacetIfSet(this.setAllowableValueUseOriginalDisplayString, e3.allowableValueUseOriginalDisplayString, "_allowableValueUseOriginalDisplayString"), this._setFacetIfSet(this.setAllowableValueShowOriginalDisplayStringInPopover, e3.allowableValueShowOriginalDisplayStringInPopover, "_allowableValueShowOriginalDisplayStringInPopover"), this._setFacetIfSet(this.setLastAllowableValueSelectedStorageKey, e3.lastAllowableValueSelectedStorageKey, "_lastAllowableValueSelectedStorageKey"); + } + get isAllowableValueFacets() { + return true; + } + _buildValidationAllowableValues() { + if (!o.default.isArray(this._allowableValues) || 0 === this._allowableValues.length) return this._validationAllowableValues = void 0, void (this._validationAllowableValuesExpr = void 0); + this._validationAllowableValues ? this._validationAllowableValues.clear() : this._validationAllowableValues = /* @__PURE__ */ new Map(), this._validationAllowableValuesExpr = [], o.default.each(this._allowableValues, (e3) => { + const t3 = o.default.isObject(e3) ? e3.idExpressionText ? e3.idExpressionText : e3.id : e3; + this._validationAllowableValues.set(this._caseSensitiveAllowableValues ? t3 : t3.toLowerCase(), true), this._validationAllowableValuesExpr.push(t3); + }); + } + _facetValidateValue(e3, t3) { + var i3, n3; + const a2 = (null === (n3 = null === (i3 = null == t3 ? void 0 : t3.propertyParent) || void 0 === i3 ? void 0 : i3.type) || void 0 === n3 ? void 0 : n3.additionalPropertiesAreManaged) || false; + if (this._validationAllowableValues && !a2 && !this._validationAllowableValues.get(this._caseSensitiveAllowableValues ? e3 : e3 && e3.toLowerCase())) return this._createErrorResult((0, r2.sprintf)(1 === this._allowableValues.length ? c.facets.valueNotInAllowableListOne : c.facets.valueNotInAllowableListMoreThanOne, this._stringUtilities.getListDisplayString(o.default.clone(this._validationAllowableValuesExpr), false, true))); + } + get allowableValues() { + return this._allowableValues; + } + set allowableValues(e3) { + this._allowableValues = d.ParameterValidator.expectArray(e3, () => u.ParameterInfo.createPropertySet(this.className, "allowableValues", "value"), true), this._buildValidationAllowableValues(); + } + get lastAllowableValueSelectedStorageKey() { + return this._lastAllowableValueSelectedStorageKey; + } + set lastAllowableValueSelectedStorageKey(e3) { + this._lastAllowableValueSelectedStorageKey = d.ParameterValidator.expectString(e3, () => u.ParameterInfo.createPropertySet(this.className, "lastAllowableValueSelectedStorageKey", "value")); + } + get allowableValuePlaceholder() { + return this._allowableValuePlaceholder; + } + set allowableValuePlaceholder(e3) { + this._allowableValuePlaceholder = d.ParameterValidator.expectString(e3, () => u.ParameterInfo.createPropertySet(this.className, "allowableValuePlaceholder", "value")); + } + get allowableValuesUseInlineSelect() { + return this._allowableValuesUseInlineSelect; + } + set allowableValuesUseInlineSelect(e3) { + this._allowableValuesUseInlineSelect = d.ParameterValidator.expectBool(e3, () => u.ParameterInfo.createPropertySet(this.className, "allowableValuesUseInlineSelect", "value")); + } + get allowableValuesDisabledCallback() { + return this._allowableValuesDisabledCallback; + } + set allowableValuesDisabledCallback(e3) { + this._allowableValuesDisabledCallback = d.ParameterValidator.expectFunction(e3, () => u.ParameterInfo.createPropertySet(this.className, "allowableValuesDisabledCallback", "value")); + } + get allowableValueShowOriginalDisplayStringInPopover() { + return this._allowableValueShowOriginalDisplayStringInPopover; + } + set allowableValueShowOriginalDisplayStringInPopover(e3) { + this._allowableValueShowOriginalDisplayStringInPopover = d.ParameterValidator.expectBool(e3, () => u.ParameterInfo.createPropertySet(this.className, "allowableValueShowOriginalDisplayStringInPopover", "value")); + } + get allowableValueUseOriginalDisplayString() { + return this._allowableValueUseOriginalDisplayString; + } + set allowableValueUseOriginalDisplayString(e3) { + this._allowableValueUseOriginalDisplayString = d.ParameterValidator.expectBool(e3, () => u.ParameterInfo.createPropertySet(this.className, "allowableValueUseOriginalDisplayString", "value")); + } + get caseSensitiveAllowableValues() { + return this._caseSensitiveAllowableValues; + } + set caseSensitiveAllowableValues(e3) { + d.ParameterValidator.expectBool(e3, () => u.ParameterInfo.createPropertySet(this.className, "caseSensitiveAllowableValues", "value"), true), this._caseSensitiveAllowableValues = true === e3, this._buildValidationAllowableValues(); + } + setAllowableValues(e3, t3) { + return o.default.isBoolean(t3) && (this.caseSensitiveAllowableValues = t3), this.allowableValues = e3, this; + } + setLastAllowableValueSelectedStorageKey(e3) { + return this.lastAllowableValueSelectedStorageKey = e3, this; + } + setAllowableValuePlaceholder(e3) { + return this.allowableValuePlaceholder = e3, this; + } + setAllowableValuesUseInlineSelect(e3) { + return this.allowableValuesUseInlineSelect = e3, this; + } + setAllowableValuesDisabledCallback(e3) { + return this.allowableValuesDisabledCallback = e3, this; + } + setAllowableValueShowOriginalDisplayStringInPopover(e3) { + return this.allowableValueShowOriginalDisplayStringInPopover = e3, this; + } + setAllowableValueUseOriginalDisplayString(e3) { + return this.allowableValueUseOriginalDisplayString = e3, this; + } + addDescriptionInfo(e3, t3) { + super.addDescriptionInfo(e3, t3); + const i3 = this._allowableValues; + if (o.default.isArray(i3) && i3.length > 0) { + const t4 = { title: 1 === i3.length ? c.expression.facets.allowableValue : c.expression.facets.allowableValues, entries: [] }; + e3.additionalInfoSections.push(t4), o.default.each(i3, (e4) => { + o.default.isString(e4) ? t4.entries.push(e4) : this.allowableValueUseOriginalDisplayString && this.allowableValueShowOriginalDisplayStringInPopover && o.default.isString(e4.displayString) ? t4.entries.push(e4.displayString) : o.default.isString(e4.idExpressionText) ? t4.entries.push(e4.idExpressionText) : o.default.isString(e4.id) && t4.entries.push(e4.id); + }); + } + } + get hasDescriptionInfo() { + return !!super.hasDescriptionInfo || o.default.isArray(this._allowableValues) && this._allowableValues.length > 0; + } + get hasIAllowableValueAllowableValues() { + var e3; + return this.hasAllowableValues && !!(null === (e3 = this.allowableValues[0]) || void 0 === e3 ? void 0 : e3.id); + } + get hasStringTypeAllowableValues() { + return this.hasAllowableValues && o.default.isString(this.allowableValues[0]); + } + get hasAllowableValues() { + return this.allowableValues && this.allowableValues.length > 0; + } + getAllowableValueForValue(e3) { + var t3; + if (this.hasAllowableValues && (null == e3 ? void 0 : e3.length)) { + if (this.caseSensitiveAllowableValues) { + if (this.hasIAllowableValueAllowableValues) { + for (const t4 of this.allowableValues) if (e3 === (null == t4 ? void 0 : t4.id)) return t4; + } else for (const t4 of this.allowableValues) if (e3 === t4) return t4; + } else if (e3 = e3.toLowerCase(), this.hasIAllowableValueAllowableValues) { + for (const i3 of this.allowableValues) if (e3 === (null === (t3 = null == i3 ? void 0 : i3.id) || void 0 === t3 ? void 0 : t3.toLowerCase())) return i3; + } else for (const t4 of this.allowableValues) if (e3 === (null == t4 ? void 0 : t4.toLowerCase())) return t4; + } + } + } + t2.default = p, n2.__decorate([(0, a.enumerable)(true), n2.__metadata("design:type", Array), n2.__metadata("design:paramtypes", [Object])], p.prototype, "allowableValues", null), n2.__decorate([(0, a.enumerable)(true), n2.__metadata("design:type", String), n2.__metadata("design:paramtypes", [Object])], p.prototype, "lastAllowableValueSelectedStorageKey", null), n2.__decorate([(0, a.enumerable)(true), n2.__metadata("design:type", String), n2.__metadata("design:paramtypes", [Object])], p.prototype, "allowableValuePlaceholder", null), n2.__decorate([(0, a.enumerable)(true), n2.__metadata("design:type", Boolean), n2.__metadata("design:paramtypes", [Object])], p.prototype, "allowableValuesUseInlineSelect", null), n2.__decorate([(0, a.enumerable)(true), n2.__metadata("design:type", Function), n2.__metadata("design:paramtypes", [Object])], p.prototype, "allowableValuesDisabledCallback", null), n2.__decorate([(0, a.enumerable)(true), n2.__metadata("design:type", Boolean), n2.__metadata("design:paramtypes", [Boolean])], p.prototype, "allowableValueShowOriginalDisplayStringInPopover", null), n2.__decorate([(0, a.enumerable)(true), n2.__metadata("design:type", Boolean), n2.__metadata("design:paramtypes", [Object])], p.prototype, "allowableValueUseOriginalDisplayString", null), n2.__decorate([(0, a.enumerable)(true), n2.__metadata("design:type", Boolean), n2.__metadata("design:paramtypes", [Object])], p.prototype, "caseSensitiveAllowableValues", null); + }, 67121: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.default = function(e3, t3) { + const i3 = (0, r2.default)(e3); + i3.commonModuleFlowSettings = new o.default(null), i3.commonModuleFlowSettings.destinationFlowTypes = t3; + const n3 = new a.default({ paths: [] }); + return n3.name = s.commonModule.hardcodedTaskName, n3.variables = [], i3.flowSequenceItemList = [n3], i3.initialSequence = n3.id, i3; + }; + const n2 = i2(31635), r2 = n2.__importDefault(i2(70790)), o = n2.__importDefault(i2(48)), a = n2.__importDefault(i2(7584)), s = i2(47957); + }, 67193: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(1012)); + class r2 extends n2.default { + constructor(e3) { + super(e3), this._failureTransferAudio = this.coreFactory.createArchAudio(e3.failureTransferAudio), this._failureTransferCommunication = this.coreFactory.createArchWrapper(e3.failureTransferCommunication), this._preTransferAudio = this.coreFactory.createArchAudio(e3.preTransferAudio), this._preTransferCommunication = this.coreFactory.createArchWrapper(e3.preTransferCommunication); + } + get displayTypeName() { + return "ArchBaseActionTransfer"; + } + get isArchBaseActionTransfer() { + return true; + } + get failureTransferAudio() { + return this._failureTransferAudio; + } + get failureTransferCommunication() { + return this._failureTransferCommunication; + } + get preTransferAudio() { + return this._preTransferAudio; + } + get preTransferCommunication() { + return this._preTransferCommunication; + } + get failureOutputs() { + if (this._coreActionViewModel.errorBindings) return this.coreFactory.createArchWrapper(this._coreActionViewModel.errorBindings); + } + } + t2.default = r2; + }, 67210: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.permissionService = void 0; + const n2 = i2(31635), r2 = i2(17604), o = n2.__importDefault(i2(92140)), a = n2.__importStar(i2(74359)), s = n2.__importStar(i2(12847)), l = i2(54251), u = n2.__importStar(i2(97591)), d = n2.__importDefault(i2(87719)), c = i2(31736), p = i2(44724), _ = i2(47957), h = i2(24032).getTopic("PermissionService"); + let m; + t2.permissionService = new class { + constructor() { + this._staticPermissions = {}, this._createStaticPermissions(); + } + _createStaticPermissions() { + this.staticPermissions[p.permissionStrings.architect.application.use] = c.PermissionShiro.create(p.permissionStrings.architect.application.use), this.staticPermissions[p.permissionStrings.responseAssets.asset.add] = c.PermissionShiro.create(p.permissionStrings.responseAssets.asset.add, (0, r2.sprintf)(_.generic.permissions.missing.responseAssets.asset.responseAssetMissingPermissionAdd, p.permissionStrings.responseAssets.asset.add)), this.staticPermissions[p.permissionStrings.responseAssets.asset.view] = c.PermissionShiro.create(p.permissionStrings.responseAssets.asset.view, (0, r2.sprintf)(_.generic.permissions.missing.responseAssets.asset.responseAssetMissingPermissionView, p.permissionStrings.responseAssets.asset.view)), this.staticPermissions[p.permissionStrings.architect.dependencyTracking.rebuild] = c.PermissionShiro.create(p.permissionStrings.architect.dependencyTracking.rebuild, _.generic.permissions.missing.dependencyTracking.rebuild), this.staticPermissions[p.permissionStrings.architect.dependencyTracking.view] = c.PermissionShiro.create(p.permissionStrings.architect.dependencyTracking.view, _.generic.permissions.missing.dependencyTracking.view), this.staticPermissions[p.permissionStrings.external.externalAuthorizations.analyticsBotFlowReportingTurnView] = c.PermissionShiro.create(p.permissionStrings.external.externalAuthorizations.analyticsBotFlowReportingTurnView), this.staticPermissions[p.permissionStrings.external.externalAuthorizations.analyticsBotFlowSessionView] = c.PermissionShiro.create(p.permissionStrings.external.externalAuthorizations.analyticsBotFlowSessionView), this.staticPermissions[p.permissionStrings.external.externalAuthorizations.analyticsSurveyAggregateView] = c.PermissionShiro.create(p.permissionStrings.external.externalAuthorizations.analyticsSurveyAggregateView), this.staticPermissions[p.permissionStrings.external.externalAuthorizations.audit] = c.PermissionShiro.create(p.permissionStrings.external.externalAuthorizations.audit), this.staticPermissions[p.permissionStrings.external.externalAuthorizations.bridge] = c.PermissionShiro.create(p.permissionStrings.external.externalAuthorizations.bridge), this.staticPermissions[p.permissionStrings.external.externalAuthorizations.integrations] = c.PermissionShiro.create(p.permissionStrings.external.externalAuthorizations.integrations), this.staticPermissions[p.permissionStrings.external.externalAuthorizations.intentMinerView] = c.PermissionShiro.create(p.permissionStrings.external.externalAuthorizations.intentMinerView), this.staticPermissions[p.permissionStrings.external.externalAuthorizations.previewWidgetView] = c.PermissionShiro.create(p.permissionStrings.external.externalAuthorizations.previewWidgetView), this.staticPermissions[p.permissionStrings.external.externalAuthorizations.response] = c.PermissionShiro.create(p.permissionStrings.external.externalAuthorizations.response), this.staticPermissions[p.permissionStrings.external.externalAuthorizations.responseLibrary] = c.PermissionShiro.create(p.permissionStrings.external.externalAuthorizations.responseLibrary), this.staticPermissions[p.permissionStrings.external.externalAuthorizations.schedules] = c.PermissionShiro.create(p.permissionStrings.external.externalAuthorizations.schedules), this.staticPermissions[p.permissionStrings.external.externalAuthorizations.qualitySurveyFormView] = c.PermissionShiro.create(p.permissionStrings.external.externalAuthorizations.qualitySurveyFormView), this.staticPermissions[p.permissionStrings.external.externalAuthorizations.scripts] = c.PermissionShiro.create(p.permissionStrings.external.externalAuthorizations.scripts), this.staticPermissions[p.permissionStrings.external.externalAuthorizations.queues] = c.PermissionShiro.create(p.permissionStrings.external.externalAuthorizations.queues), this.staticPermissions[p.permissionStrings.external.externalAuthorizations.voicemailReceive] = c.PermissionShiro.create(p.permissionStrings.external.externalAuthorizations.voicemailReceive), this.staticPermissions[p.permissionStrings.external.externalAuthorizations.processAutomationTriggerView] = c.PermissionShiro.create(p.permissionStrings.external.externalAuthorizations.processAutomationTriggerView), this.staticPermissions[p.permissionStrings.external.externalAuthorizations.wrapupCode] = c.PermissionShiro.create(p.permissionStrings.external.externalAuthorizations.wrapupCode), this.staticPermissions[p.permissionStrings.external.externalAuthorizations.wrapupCodeSearch] = c.PermissionShiro.create(p.permissionStrings.external.externalAuthorizations.wrapupCodeSearch), this.staticPermissions[p.permissionStrings.external.externalAuthorizations.languageSkills] = c.PermissionShiro.create(p.permissionStrings.external.externalAuthorizations.languageSkills), this.staticPermissions[p.permissionStrings.external.externalAuthorizations.analyticsConversationAggregateView] = c.PermissionShiro.create(p.permissionStrings.external.externalAuthorizations.analyticsConversationAggregateView), this.staticPermissions[p.permissionStrings.external.externalAuthorizations.analyticsConversationDetailView] = c.PermissionShiro.create(p.permissionStrings.external.externalAuthorizations.analyticsConversationDetailView), this.staticPermissions[p.permissionStrings.external.externalAuthorizations.conversationCommunicationView] = c.PermissionShiro.create(p.permissionStrings.external.externalAuthorizations.conversationCommunicationView), this.staticPermissions[p.permissionStrings.external.externalAuthorizations.qualityCalibrationView] = c.PermissionShiro.create(p.permissionStrings.external.externalAuthorizations.qualityCalibrationView), this.staticPermissions[p.permissionStrings.external.externalAuthorizations.qualityEvaluationEditScore] = c.PermissionShiro.create(p.permissionStrings.external.externalAuthorizations.qualityEvaluationEditScore), this.staticPermissions[p.permissionStrings.external.externalAuthorizations.qualityEvaluationAdd] = c.PermissionShiro.create(p.permissionStrings.external.externalAuthorizations.qualityEvaluationAdd), this.staticPermissions[p.permissionStrings.external.externalAuthorizations.analyticsBotAggregateView] = c.PermissionShiro.create(p.permissionStrings.external.externalAuthorizations.analyticsBotAggregateView), this.staticPermissions[p.permissionStrings.external.externalAuthorizations.analyticsFlowAggregateView] = c.PermissionShiro.create(p.permissionStrings.external.externalAuthorizations.analyticsFlowAggregateView), this.staticPermissions[p.permissionStrings.external.externalAuthorizations.analyticsKnowledgeAggregateView] = c.PermissionShiro.create(p.permissionStrings.external.externalAuthorizations.analyticsKnowledgeAggregateView), this.staticPermissions[p.permissionStrings.external.externalAuthorizations.analyticsSummaryAggregateView] = c.PermissionShiro.create(p.permissionStrings.external.externalAuthorizations.analyticsSummaryAggregateView), this.staticPermissions[p.permissionStrings.journey.flowpaths.view] = c.PermissionShiro.create(p.permissionStrings.journey.flowpaths.view, _.generic.permissions.missing.journey.flowpaths.journeyFlowsView), this.staticPermissions[p.permissionStrings.conversation.conference.add] = c.PermissionShiro.create(p.permissionStrings.conversation.conference.add, _.generic.permissions.missing.conversation.conference.add), this.staticPermissions[p.permissionStrings.architect.flow.add] = c.PermissionShiro.create(p.permissionStrings.architect.flow.add, _.generic.permissions.missing.flow.allPermissions.add), this.staticPermissions[p.permissionStrings.architect.flow.delete] = c.PermissionShiro.create(p.permissionStrings.architect.flow.delete, _.generic.permissions.missing.flow.allPermissions.delete), this.staticPermissions[p.permissionStrings.architect.flow.edit] = c.PermissionShiro.create(p.permissionStrings.architect.flow.edit, _.generic.permissions.missing.flow.allPermissions.edit), this.staticPermissions[p.permissionStrings.architect.flow.launch] = c.PermissionShiro.create(p.permissionStrings.architect.flow.launch, _.generic.permissions.missing.flow.allPermissions.launch), this.staticPermissions[p.permissionStrings.architect.flow.publish] = c.PermissionShiro.create(p.permissionStrings.architect.flow.publish, _.generic.permissions.missing.flow.allPermissions.publish), this.staticPermissions[p.permissionStrings.architect.flow.search] = c.PermissionShiro.create(p.permissionStrings.architect.flow.search, _.generic.permissions.missing.flow.allPermissions.search), this.staticPermissions[p.permissionStrings.architect.flow.unlock] = c.PermissionShiro.create(p.permissionStrings.architect.flow.unlock, _.generic.permissions.missing.flow.allPermissions.unlock), this.staticPermissions[p.permissionStrings.architect.flow.view] = c.PermissionShiro.create(p.permissionStrings.architect.flow.view, _.generic.permissions.missing.flow.allPermissions.view), this.staticPermissions[p.permissionStrings.architect.flowExecution.view] = c.PermissionShiro.create(p.permissionStrings.architect.flowExecution.view, _.executionHistory.flowExecutionViewPermission), this.staticPermissions[p.permissionStrings.architect.flowInstance.search] = c.PermissionShiro.create(p.permissionStrings.architect.flowInstance.search, _.executionHistory.flowInstanceQueryPermission), this.staticPermissions[p.permissionStrings.architect.flowInstance.view] = c.PermissionShiro.create(p.permissionStrings.architect.flowInstance.view, _.executionHistory.flowInstanceViewPermission), this.staticPermissions[p.permissionStrings.architect.flowLogLevel.view] = c.PermissionShiro.create(p.permissionStrings.architect.flowLogLevel.view, _.executionDataConfiguration.flowLogLevelViewPermission), this.staticPermissions[p.permissionStrings.architect.flowLogLevelDefault.view] = c.PermissionShiro.create(p.permissionStrings.architect.flowLogLevelDefault.view, _.executionDataConfiguration.flowLogLevelDefaultViewPermission), this.staticPermissions[p.permissionStrings.architect.flowInstanceExecutionData.view] = c.PermissionShiro.create(p.permissionStrings.architect.flowInstanceExecutionData.view, _.executionDataConfiguration.flowInstanceExecutionDataViewPermission), this.staticPermissions[p.permissionStrings.external.externalAuthorizations.settingsExecutionDataView] = c.PermissionShiro.create(p.permissionStrings.external.externalAuthorizations.settingsExecutionDataView, _.executionDataConfiguration.organizationExecutionDataViewPermission), this.staticPermissions[p.permissionStrings.external.externalAuthorizations.directoryOrganizationAdmin] = c.PermissionShiro.create(p.permissionStrings.external.externalAuthorizations.directoryOrganizationAdmin, _.executionDataConfiguration.directoryOrganizationAdminPermission), this.staticPermissions[p.permissionStrings.external.externalAuthorizations.analyticsFlowExecutionAggregateView] = c.PermissionShiro.create(p.permissionStrings.external.externalAuthorizations.analyticsFlowExecutionAggregateView), this.staticPermissions[p.permissionStrings.architect.systemPrompt.edit] = c.PermissionShiro.create(p.permissionStrings.architect.systemPrompt.edit, _.generic.permissions.missing.prompts.systemPrompts.edit), this.staticPermissions[p.permissionStrings.architect.systemPrompt.view] = c.PermissionShiro.create(p.permissionStrings.architect.systemPrompt.view, _.generic.permissions.missing.prompts.systemPrompts.view), this.staticPermissions[p.permissionStrings.architect.userPrompt.add] = c.PermissionShiro.create(p.permissionStrings.architect.userPrompt.add, _.generic.permissions.missing.prompts.userPrompts.add), this.staticPermissions[p.permissionStrings.architect.userPrompt.delete] = c.PermissionShiro.create(p.permissionStrings.architect.userPrompt.delete, _.generic.permissions.missing.prompts.userPrompts.delete), this.staticPermissions[p.permissionStrings.architect.userPrompt.edit] = c.PermissionShiro.create(p.permissionStrings.architect.userPrompt.edit, _.generic.permissions.missing.prompts.userPrompts.edit), this.staticPermissions[p.permissionStrings.architect.userPrompt.view] = c.PermissionShiro.create(p.permissionStrings.architect.userPrompt.view, _.generic.permissions.missing.prompts.userPrompts.view), this.staticPermissions[p.permissionStrings.architect.virtualAgentFlow.edit] = c.PermissionShiro.create(p.permissionStrings.architect.virtualAgentFlow.edit, _.generic.permissions.missing.flow.allPermissions.edit), this.staticPermissions[p.permissionStrings.architect.grammar.add] = c.PermissionShiro.create(p.permissionStrings.architect.grammar.add, _.generic.permissions.missing.grammars.grammarsMissingPermissionAdd), this.staticPermissions[p.permissionStrings.architect.grammar.delete] = c.PermissionShiro.create(p.permissionStrings.architect.grammar.delete, _.generic.permissions.missing.grammars.grammarsMissingPermissionDelete), this.staticPermissions[p.permissionStrings.architect.grammar.edit] = c.PermissionShiro.create(p.permissionStrings.architect.grammar.edit, _.generic.permissions.missing.grammars.grammarsMissingPermissionEdit), this.staticPermissions[p.permissionStrings.architect.grammar.view] = c.PermissionShiro.create(p.permissionStrings.architect.grammar.view, _.generic.permissions.missing.grammars.grammarsMissingPermissionView), this.staticPermissions[p.permissionStrings.external.externalAuthorizations.agenticVirtualAgentView] = c.PermissionShiro.create(p.permissionStrings.external.externalAuthorizations.agenticVirtualAgentView, _.agenticVirtualAgent.agenticVirtualAgentViewPermission), this.staticPermissions[p.permissionStrings.external.externalAuthorizations.agenticVirtualAgentVersionView] = c.PermissionShiro.create(p.permissionStrings.external.externalAuthorizations.agenticVirtualAgentVersionView, _.agenticVirtualAgent.agenticVirtualAgentVersionViewPermission), this.staticPermissions[p.permissionStrings.external.externalAuthorizations.guideView] = c.PermissionShiro.create(p.permissionStrings.external.externalAuthorizations.guideView, _.guide.guideViewPermission), this.staticPermissions[p.permissionStrings.external.externalAuthorizations.guideVersionView] = c.PermissionShiro.create(p.permissionStrings.external.externalAuthorizations.guideVersionView, _.guide.guideVersionViewPermission), this.staticPermissions[p.permissionStrings.recording.retentionPolicy.view] = c.PermissionShiro.create(p.permissionStrings.recording.retentionPolicy.view, _.generic.permissions.missing.recording.retentionPolicy.recordingRetentionPolicyView), this.staticPermissions[p.permissionStrings.journey.actionMap.view] = c.PermissionShiro.create(p.permissionStrings.journey.actionMap.view, _.generic.permissions.missing.journey.actionmap.journeyActionmapView), this.staticPermissions[p.permissionStrings.external.externalAuthorizations.workitemsView] = c.PermissionShiro.create(p.permissionStrings.external.externalAuthorizations.workitemsView, _.generic.permissions.missing.taskManagementWorkitems.workItemsMissingPermissionView), this.staticPermissions[p.permissionStrings.external.externalAuthorizations.geocodingGeolocationFetch] = c.PermissionShiro.create(p.permissionStrings.external.externalAuthorizations.geocodingGeolocationFetch, _.generic.permissions.missing.taskManagementWorkitems.workItemsMissingPermissionView), this.staticPermissions[p.permissionStrings.architect.flowOutcome.add] = c.PermissionShiro.create(p.permissionStrings.architect.flowOutcome.add, _.generic.permissions.missing.flow.flowOutcomes.add), this.staticPermissions[p.permissionStrings.architect.flowOutcome.search] = c.PermissionShiro.create(p.permissionStrings.architect.flowOutcome.search, (0, r2.sprintf)(_.generic.permissions.missing.flow.flowOutcomes.noPermissionToAddFlowOutcome, _.generic.permissions.missing.flow.flowOutcomes.search)), this.staticPermissions[p.permissionStrings.architect.flowMilestone.add] = c.PermissionShiro.create(p.permissionStrings.architect.flowMilestone.add, _.generic.permissions.missing.flow.flowMilestones.add), this.staticPermissions[p.permissionStrings.architect.flowMilestone.search] = c.PermissionShiro.create(p.permissionStrings.architect.flowMilestone.search, (0, r2.sprintf)(_.generic.permissions.missing.flow.flowMilestones.noPermissionToAddFlowMilestone, _.generic.permissions.missing.flow.flowMilestones.search)), this.staticPermissions[p.permissionStrings.copilot.session.view] = c.PermissionShiro.create(p.permissionStrings.copilot.session.view, _.generic.permissions.missing.copilot.session), this.staticPermissions[p.permissionStrings.copilot.message.view] = c.PermissionShiro.create(p.permissionStrings.copilot.message.view, _.generic.permissions.missing.copilot.message.view), this.staticPermissions[p.permissionStrings.copilot.message.send] = c.PermissionShiro.create(p.permissionStrings.copilot.message.send, _.generic.permissions.missing.copilot.message.send); + } + get staticPermissions() { + return this._staticPermissions; + } + getAuthValidationWarning(e3, t3) { + const i3 = t3 ? _.externalAuths.thirdPersonValidationContext : _.externalAuths.validationContext; + let n3 = ""; + return e3 !== p.permissionStrings.external.externalAuthorizations.voicemailReceive ? "" : (n3 = "voicemailReceive", (0, r2.sprintf)(i3, _.externalAuths[n3].displayTitle)); + } + get featureTogglesLoaded() { + return void 0 !== m || a.featureTogglesLoaded.isPending() || (m = true), m; + } + addPermissionToUser(e3, t3) { + c.PermissionShiro.createOnUser(e3, t3); + } + checkDivisionHasPermission(e3, t3) { + const i3 = o.default.extEnsureArray(t3); + if (0 === i3.length) return s.error("not a DivisionViewModel"), new d.default(false); + let n3; + if (e3 && e3.permissions && e3.permissions.length > 0) { + if (n3 = o.default.find(i3, (t4) => !o.default.find(e3.permissions, (e4) => e4.hasPermission(t4))), o.default.isUndefined(n3)) return new d.default(true, i3[0].toString(), void 0); + } else n3 = i3[0]; + if (!(null == e3 ? void 0 : e3.isStarDivision)) { + const e4 = this.checkDivisionHasPermission(a.getConnectedUser().divisions[u.starDivision], t3); + if (e4.hasPermission) return e4; + } + return e3 ? (null == e3 ? void 0 : e3.isStarDivision) ? new d.default(false, n3.toString(), (0, r2.sprintf)(_.generic.permissions.missingPermission, n3.toString())) : new d.default(false, n3.toString(), (0, r2.sprintf)(_.generic.permissions.missingPermissionWithDivision, n3.toString(), (null == e3 ? void 0 : e3.name) || "unknown")) : new d.default(false); + } + getDivisionsForPermission(e3, t3, i3) { + if (!t3) return h.error("No permission to check was passed in."), []; + const n3 = []; + if (i3) { + const i4 = o.default.find(e3.divisions, (e4) => this.checkDivisionHasPermission(e4, t3).hasPermission); + i4 && n3.push(i4); + } else this.checkDivisionHasPermission(a.getConnectedUser().divisions[u.starDivision], t3).hasPermission ? n3.push(...Object.values(l.divisionManager.items)) : o.default.each(e3.divisions, (e4) => { + this.checkDivisionHasPermission(e4, t3).hasPermission && n3.push(e4); + }); + return n3; + } + checkHasPermissionInAtLeastOneDivision(e3, t3) { + return this.getDivisionsForPermission(e3, t3, true).length > 0 ? new d.default(true, t3.toString(), void 0) : new d.default(false, t3.toString(), t3.displayErrorString); + } + checkFlowHasPermission(e3, t3, i3) { + if (!t3) return h.error((0, r2.sprintf)("No user to check for permission %s", i3)), new d.default(false, i3, _.generic.permissions.error); + if (!i3) return h.error("No permission to check was passed in "), new d.default(false, i3, _.generic.permissions.error); + if (!e3) return h.error((0, r2.sprintf)("No flow to check for permission %s", i3)), new d.default(false, i3, _.generic.permissions.error); + if (!e3.division) return h.errorWithErrorObjectInfo("A flowInfoViewModel does not have a division.", e3, false), new d.default(false, i3, _.generic.permissions.error); + const n3 = this.checkDivisionHasPermission(t3.divisions[e3.division.id], this.staticPermissions[i3]); + return n3.hasPermission ? n3 : new d.default(false, i3, _.generic.permissions.missing.flow.noSpecificDivision.view); + } + getDivisionListFromDivisionsErrorString(e3) { + if (!o.default.isString(e3)) return null; + const t3 = "$~$~"; + "[" === (e3 = e3.trim()).charAt(0) && (e3 = e3.substring(1)), "]" === e3.charAt(e3.length - 1) && (e3 = e3.slice(0, -1)); + const i3 = /(\([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})\)/; + let n3 = i3.exec(e3); + for (; n3 && n3.length > 0; ) e3 = e3.replace(n3[0], t3), n3 = i3.exec(e3); + e3.slice(-4) === t3 && (e3 = e3.slice(0, -4)); + let r3 = e3.split(t3 + ","); + return r3 = o.default.map(r3, (e4) => e4 || _.flow.unknownDivision), r3; + } + getDivisionListFromDivisionUrisErrorString(e3) { + let t3; + try { + t3 = JSON.parse(e3); + } catch (t4) { + h.exception(t4, `Failed to parse divisionUris property from error response. Contents:"${e3}"`); + } + return t3 && o.default.isArray(t3) ? o.default.map(t3, (e4) => e4.name || _.flow.unknownDivision) : []; + } + get missingDivisionPermissionString() { + return "missing.division.permission"; + } + }(); + }, 67222: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importDefault(i2(92140)), o = n2.__importDefault(i2(91722)); + class a extends o.default { + constructor(e3, t3, i3) { + super(e3, i3), this._checkItemIsValidFunction(this._infoParmCtor("callbackFunction"), t3), this._callbackFunction = t3; + } + get displayTypeName() { + return "ArchFilterClausePropertyCallback"; + } + get isArchFilterClausePropertyCallback() { + return true; + } + get callback() { + return this._callbackFunction; + } + _isMatch(e3) { + if (!super._isMatch(e3)) return false; + const t3 = this._callbackFunction(e3[this.propertyName], e3, this.propertyName); + return r2.default.isUndefined(t3) || r2.default.isBoolean(t3) || this.logWarning("Invocation of the filter clause property value callback function did not return a boolean value or undefined."), true === t3; + } + } + t2.default = a; + }, 67277: (e2, t2, i2) => { + const n2 = i2(5410), r2 = i2(7401), { setFlowOutcomeActionType: o } = i2(30801); + function a() { + Object.defineProperties(this, { _outcomeValue: { writable: true } }), a.baseConstructor.apply(this, arguments); + } + n2.extend(a, o, true), Object.defineProperties(a.prototype, { outcomeValue: { enumerable: true, get: function() { + return this._outcomeValue; + }, set: function(e3) { + this._outcomeValue = this.reviveItem(e3, r2); + } } }), e2.exports = a; + }, 67336: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importDefault(i2(92140)), o = n2.__importDefault(i2(37819)), a = n2.__importDefault(i2(93078)), s = n2.__importDefault(i2(64079)), l = n2.__importDefault(i2(8471)), u = n2.__importDefault(i2(60645)), d = n2.__importDefault(i2(94225)), c = { languageSettings: true, orgId: true, orgName: true }, p = { actionFirst: true, actionLast: true, definition: true, flowLevelDefault: true, menuDefault: true, targetMenu: true, targetState: true, targetTask: true }; + class _ extends l.default { + constructor(e3) { + super(), this._checkItemUndefinedOrNull(this._infoParmCtor("coreViewModel"), e3), this._coreViewModel = e3; + } + _addPropToMapIfShouldBeTraversed(e3, t3, i3) { + if (!e3 || "_" === e3[0] || this._deprecatedPropertyNames[e3]) return; + if (i3[e3]) return; + let n3; + i3[e3] = true; + try { + n3 = this[e3]; + } catch (e4) { + if (!r2.default.isString(e4) || !e4.includes("calling this method requires functionality that is not available in the organization.")) throw e4; + } + n3 && (n3.isArchBaseObject || r2.default.isArray(n3) && n3.length && (n3[0] && n3[0].isArchBaseObject || n3[n3.length - 1] && n3[n3.length - 1].isArchBaseObject)) && (t3[e3] = n3); + } + _checkAndPerformTraverseCallback(e3, t3) { + let i3 = e3.calledBackObjects[this.displayTypeName]; + if (i3 && i3[t3.hierarchyStr]) return false; + if (!this.isFilterMatch(e3.archSettings.filter)) return false; + const n3 = a.default.create(this, t3, e3.archSettings); + return e3.archSettings.incrementCallbackCount(), d.default.executeCallback(this, "traverse", e3.archSettings.callbackFunction, n3, false, "traverse callback -"), i3 || (i3 = {}, e3.calledBackObjects[this.displayTypeName] = i3), i3[t3.hierarchyStr] = true, true; + } + get _deprecatedPropertyNames() { + return c; + } + _getCoreViewModel() { + return this._coreViewModel; + } + get displayTypeName() { + return "ArchBaseCoreObject"; + } + get isArchBaseCoreObject() { + return true; + } + _getMyTraversalPropNamesAndPropValues() { + const e3 = {}, t3 = {}; + r2.default.each(Object.getOwnPropertyNames(this), (i4) => { + this._addPropToMapIfShouldBeTraversed(i4, e3, t3); + }); + let i3 = Object.getPrototypeOf(this); + for (; i3; ) r2.default.each(Object.getOwnPropertyNames(i3), (i4) => { + this._addPropToMapIfShouldBeTraversed(i4, e3, t3); + }), i3 = Object.getPrototypeOf(i3), Object.prototype.hasOwnProperty.call(i3, "isArchBaseObject") && (i3 = null); + return e3; + } + _propShouldBeTraversed(e3) { + return e3 && !e3.startsWith("parent") && !(e3.startsWith("output") && "outputs" !== e3) && !(e3.startsWith("settings") && !this.isArchBaseFlow) && !p[e3] && !this._deprecatedPropertyNames[e3]; + } + traverse(e3, t3) { + this._checkItemIsValidFunction(this._infoParm("callbackFunction", "traverse"), e3), t3 ? this._checkItemIsArchFilterObject(this._infoParm("traverseFilter", "traverse"), t3) : (this.logNoteVerbose("No filter specified for traverse call. Using default traverse filter."), t3 = u.default.createFilterTraverseDefault(true)); + let i3 = { archSettings: s.default.create(t3, e3), traversedObjects: {}, calledBackObjects: {} }, n3 = 0; + const r3 = l.default._checkMethodCallFeatureIsAvailable_shouldLog; + try { + l.default._checkMethodCallFeatureIsAvailable_shouldLog = false, this._traverse(i3, o.default.createContext()); + } catch (e4) { + this.logItemErrorAndThrow(this._infoMethod("traverse"), "unhandled exception - " + e4); + } finally { + l.default._checkMethodCallFeatureIsAvailable_shouldLog = r3, n3 = i3.archSettings.callbackCount, i3 = void 0; + } + return n3; + } + _traverse(e3, t3) { + if (!e3.archSettings.shouldContinue) return; + let i3 = e3.traversedObjects[this.displayTypeName]; + i3 && i3[t3.hierarchyStr] || (i3 || (i3 = {}, e3.traversedObjects[this.displayTypeName] = i3), i3[t3.hierarchyStr] = true, this._checkAndPerformTraverseCallback(e3, t3), e3.archSettings.shouldContinue && this._traverseProperties(e3, t3)); + } + _traverseProperties(e3, t3) { + const i3 = this._getMyTraversalPropNamesAndPropValues(); + r2.default.find(i3, (i4, n3) => { + if (this._propShouldBeTraversed(n3)) { + const o2 = r2.default.isArray(i4), a2 = o2 ? i4 : [i4]; + for (let i5 = 0; i5 < a2.length && e3.archSettings.shouldContinue; i5++) { + const r3 = a2[i5]; + if (r3 && !r3.isArchBaseFlow && r3.isArchBaseCoreObject) try { + t3._addHierarchyItemPropAccess(this, n3, o2 ? i5 : void 0), r3._traverse(e3, t3); + } finally { + t3._popHierarchyItem(); + } + } + } + return !e3.archSettings.shouldContinue; + }); + } + } + t2.default = _; + }, 67346: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = i2(30801), o = n2.__importDefault(i2(62028)); + class a extends o.default { + constructor(e3) { + super(e3); + } + get _actionTypeId() { + return r2.transferExternalActionType; + } + get displayTypeName() { + return "ArchMenuTransferToNumber"; + } + get actionTransferToNumber() { + return this._archAction; + } + get isArchMenuTransferToNumber() { + return true; + } + } + t2.default = a; + }, 67355: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(84655)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "CustomerIntent"; + } + get displayTypeName() { + return "ArchVariableCustomerIntent"; + } + get initialValue() { + return this._initialValue; + } + get isArchVariableCustomerIntent() { + return true; + } + } + t2.default = r2; + }, 67359: (e2, t2, i2) => { + "use strict"; + var n2 = i2(52696); + let r2 = 0; + class o { + constructor(e3, t3, i3, n3) { + this.name = e3, this.set = t3, this.base = i3, this.modified = n3, this.id = r2++; + } + toString() { + let { name: e3 } = this; + for (let t3 of this.modified) t3.name && (e3 = `${t3.name}(${e3})`); + return e3; + } + static define(e3, t3) { + let i3 = "string" == typeof e3 ? e3 : "?"; + if (e3 instanceof o && (t3 = e3), null == t3 ? void 0 : t3.base) throw new Error("Can not derive from a modified tag"); + let n3 = new o(i3, [], null, []); + if (n3.set.push(n3), t3) for (let e4 of t3.set) n3.set.push(e4); + return n3; + } + static defineModifier(e3) { + let t3 = new s(e3); + return (e4) => e4.modified.indexOf(t3) > -1 ? e4 : s.get(e4.base || e4, e4.modified.concat(t3).sort((e5, t4) => e5.id - t4.id)); + } + } + let a = 0; + class s { + constructor(e3) { + this.name = e3, this.instances = [], this.id = a++; + } + static get(e3, t3) { + if (!t3.length) return e3; + let i3 = t3[0].instances.find((i4) => { + return i4.base == e3 && (n4 = t3, r4 = i4.modified, n4.length == r4.length && n4.every((e4, t4) => e4 == r4[t4])); + var n4, r4; + }); + if (i3) return i3; + let n3 = [], r3 = new o(e3.name, n3, e3, t3); + for (let e4 of t3) e4.instances.push(r3); + let a2 = (function(e4) { + let t4 = [[]]; + for (let i4 = 0; i4 < e4.length; i4++) for (let n4 = 0, r4 = t4.length; n4 < r4; n4++) t4.push(t4[n4].concat(e4[i4])); + return t4.sort((e5, t5) => t5.length - e5.length); + })(t3); + for (let t4 of e3.set) if (!t4.modified.length) for (let e4 of a2) n3.push(s.get(t4, e4)); + return r3; + } + } + const l = new n2.NodeProp({ combine(e3, t3) { + let i3, n3, r3; + for (; e3 || t3; ) { + if (!e3 || t3 && e3.depth >= t3.depth ? (r3 = t3, t3 = t3.next) : (r3 = e3, e3 = e3.next), i3 && i3.mode == r3.mode && !r3.context && !i3.context) continue; + let o2 = new u(r3.tags, r3.mode, r3.context); + i3 ? i3.next = o2 : n3 = o2, i3 = o2; + } + return n3; + } }); + class u { + constructor(e3, t3, i3, n3) { + this.tags = e3, this.mode = t3, this.context = i3, this.next = n3; + } + get opaque() { + return 0 == this.mode; + } + get inherit() { + return 1 == this.mode; + } + sort(e3) { + return !e3 || e3.depth < this.depth ? (this.next = e3, this) : (e3.next = this.sort(e3.next), e3); + } + get depth() { + return this.context ? this.context.length : 0; + } + } + function d(e3, t3) { + let i3 = /* @__PURE__ */ Object.create(null); + for (let t4 of e3) if (Array.isArray(t4.tag)) for (let e4 of t4.tag) i3[e4.id] = t4.class; + else i3[t4.tag.id] = t4.class; + let { scope: n3, all: r3 = null } = t3 || {}; + return { style: (e4) => { + let t4 = r3; + for (let n4 of e4) for (let e5 of n4.set) { + let n5 = i3[e5.id]; + if (n5) { + t4 = t4 ? t4 + " " + n5 : n5; + break; + } + } + return t4; + }, scope: n3 }; + } + function c(e3, t3, i3, n3 = 0, r3 = e3.length) { + let o2 = new p(n3, Array.isArray(t3) ? t3 : [t3], i3); + o2.highlightRange(e3.cursor(), n3, r3, "", o2.highlighters), o2.flush(r3); + } + u.empty = new u([], 2, null); + class p { + constructor(e3, t3, i3) { + this.at = e3, this.highlighters = t3, this.span = i3, this.class = ""; + } + startSpan(e3, t3) { + t3 != this.class && (this.flush(e3), e3 > this.at && (this.at = e3), this.class = t3); + } + flush(e3) { + e3 > this.at && this.class && this.span(this.at, e3, this.class); + } + highlightRange(e3, t3, i3, r3, o2) { + let { type: a2, from: s2, to: l2 } = e3; + if (s2 >= i3 || l2 <= t3) return; + a2.isTop && (o2 = this.highlighters.filter((e4) => !e4.scope || e4.scope(a2))); + let d2 = r3, c2 = _(e3) || u.empty, p2 = (function(e4, t4) { + let i4 = null; + for (let n3 of e4) { + let e5 = n3.style(t4); + e5 && (i4 = i4 ? i4 + " " + e5 : e5); + } + return i4; + })(o2, c2.tags); + if (p2 && (d2 && (d2 += " "), d2 += p2, 1 == c2.mode && (r3 += (r3 ? " " : "") + p2)), this.startSpan(Math.max(t3, s2), d2), c2.opaque) return; + let h2 = e3.tree && e3.tree.prop(n2.NodeProp.mounted); + if (h2 && h2.overlay) { + let n3 = e3.node.enter(h2.overlay[0].from + s2, 1), a3 = this.highlighters.filter((e4) => !e4.scope || e4.scope(h2.tree.type)), u2 = e3.firstChild(); + for (let c3 = 0, p3 = s2; ; c3++) { + let _2 = c3 < h2.overlay.length ? h2.overlay[c3] : null, m2 = _2 ? _2.from + s2 : l2, g2 = Math.max(t3, p3), f2 = Math.min(i3, m2); + if (g2 < f2 && u2) for (; e3.from < f2 && (this.highlightRange(e3, g2, f2, r3, o2), this.startSpan(Math.min(f2, e3.to), d2), !(e3.to >= m2) && e3.nextSibling()); ) ; + if (!_2 || m2 > i3) break; + p3 = _2.to + s2, p3 > t3 && (this.highlightRange(n3.cursor(), Math.max(t3, _2.from + s2), Math.min(i3, p3), "", a3), this.startSpan(Math.min(i3, p3), d2)); + } + u2 && e3.parent(); + } else if (e3.firstChild()) { + h2 && (r3 = ""); + do { + if (!(e3.to <= t3)) { + if (e3.from >= i3) break; + this.highlightRange(e3, t3, i3, r3, o2), this.startSpan(Math.min(i3, e3.to), d2); + } + } while (e3.nextSibling()); + e3.parent(); + } + } + } + function _(e3) { + let t3 = e3.type.prop(l); + for (; t3 && t3.context && !e3.matchContext(t3.context); ) t3 = t3.next; + return t3 || null; + } + const h = o.define, m = h(), g = h(), f = h(g), T = h(g), y = h(), S = h(y), A = h(y), N = h(), O = h(N), I = h(), v = h(), C = h(), b = h(C), E = h(), R = { comment: m, lineComment: h(m), blockComment: h(m), docComment: h(m), name: g, variableName: h(g), typeName: f, tagName: h(f), propertyName: T, attributeName: h(T), className: h(g), labelName: h(g), namespace: h(g), macroName: h(g), literal: y, string: S, docString: h(S), character: h(S), attributeValue: h(S), number: A, integer: h(A), float: h(A), bool: h(y), regexp: h(y), escape: h(y), color: h(y), url: h(y), keyword: I, self: h(I), null: h(I), atom: h(I), unit: h(I), modifier: h(I), operatorKeyword: h(I), controlKeyword: h(I), definitionKeyword: h(I), moduleKeyword: h(I), operator: v, derefOperator: h(v), arithmeticOperator: h(v), logicOperator: h(v), bitwiseOperator: h(v), compareOperator: h(v), updateOperator: h(v), definitionOperator: h(v), typeOperator: h(v), controlOperator: h(v), punctuation: C, separator: h(C), bracket: b, angleBracket: h(b), squareBracket: h(b), paren: h(b), brace: h(b), content: N, heading: O, heading1: h(O), heading2: h(O), heading3: h(O), heading4: h(O), heading5: h(O), heading6: h(O), contentSeparator: h(N), list: h(N), quote: h(N), emphasis: h(N), strong: h(N), link: h(N), monospace: h(N), strikethrough: h(N), inserted: h(), deleted: h(), changed: h(), invalid: h(), meta: E, documentMeta: h(E), annotation: h(E), processingInstruction: h(E), definition: o.defineModifier("definition"), constant: o.defineModifier("constant"), function: o.defineModifier("function"), standard: o.defineModifier("standard"), local: o.defineModifier("local"), special: o.defineModifier("special") }; + for (let e3 in R) { + let t3 = R[e3]; + t3 instanceof o && (t3.name = e3); + } + const w = d([{ tag: R.link, class: "tok-link" }, { tag: R.heading, class: "tok-heading" }, { tag: R.emphasis, class: "tok-emphasis" }, { tag: R.strong, class: "tok-strong" }, { tag: R.keyword, class: "tok-keyword" }, { tag: R.atom, class: "tok-atom" }, { tag: R.bool, class: "tok-bool" }, { tag: R.url, class: "tok-url" }, { tag: R.labelName, class: "tok-labelName" }, { tag: R.inserted, class: "tok-inserted" }, { tag: R.deleted, class: "tok-deleted" }, { tag: R.literal, class: "tok-literal" }, { tag: R.string, class: "tok-string" }, { tag: R.number, class: "tok-number" }, { tag: [R.regexp, R.escape, R.special(R.string)], class: "tok-string2" }, { tag: R.variableName, class: "tok-variableName" }, { tag: R.local(R.variableName), class: "tok-variableName tok-local" }, { tag: R.definition(R.variableName), class: "tok-variableName tok-definition" }, { tag: R.special(R.variableName), class: "tok-variableName2" }, { tag: R.definition(R.propertyName), class: "tok-propertyName tok-definition" }, { tag: R.typeName, class: "tok-typeName" }, { tag: R.namespace, class: "tok-namespace" }, { tag: R.className, class: "tok-className" }, { tag: R.macroName, class: "tok-macroName" }, { tag: R.propertyName, class: "tok-propertyName" }, { tag: R.operator, class: "tok-operator" }, { tag: R.comment, class: "tok-comment" }, { tag: R.meta, class: "tok-meta" }, { tag: R.invalid, class: "tok-invalid" }, { tag: R.punctuation, class: "tok-punctuation" }]); + t2.Tag = o, t2.classHighlighter = w, t2.getStyleTags = _, t2.highlightCode = function(e3, t3, i3, n3, r3, o2 = 0, a2 = e3.length) { + let s2 = o2; + function l2(t4, i4) { + if (!(t4 <= s2)) { + for (let o3 = e3.slice(s2, t4), a3 = 0; ; ) { + let e4 = o3.indexOf("\n", a3), t5 = e4 < 0 ? o3.length : e4; + if (t5 > a3 && n3(o3.slice(a3, t5), i4), e4 < 0) break; + r3(), a3 = e4 + 1; + } + s2 = t4; + } + } + c(t3, i3, (e4, t4, i4) => { + l2(e4, ""), l2(t4, i4); + }, o2, a2), l2(a2, ""); + }, t2.highlightTree = c, t2.styleTags = function(e3) { + let t3 = /* @__PURE__ */ Object.create(null); + for (let i3 in e3) { + let n3 = e3[i3]; + Array.isArray(n3) || (n3 = [n3]); + for (let e4 of i3.split(" ")) if (e4) { + let i4 = [], r3 = 2, o2 = e4; + for (let t4 = 0; ; ) { + if ("..." == o2 && t4 > 0 && t4 + 3 == e4.length) { + r3 = 1; + break; + } + let n4 = /^"(?:[^"\\]|\\.)*?"|[^\/!]+/.exec(o2); + if (!n4) throw new RangeError("Invalid path: " + e4); + if (i4.push("*" == n4[0] ? "" : '"' == n4[0][0] ? JSON.parse(n4[0]) : n4[0]), t4 += n4[0].length, t4 == e4.length) break; + let a3 = e4[t4++]; + if (t4 == e4.length && "!" == a3) { + r3 = 0; + break; + } + if ("/" != a3) throw new RangeError("Invalid path: " + e4); + o2 = e4.slice(t4); + } + let a2 = i4.length - 1, s2 = i4[a2]; + if (!s2) throw new RangeError("Invalid path: " + e4); + let l2 = new u(n3, r3, a2 > 0 ? i4.slice(0, a2) : null); + t3[s2] = l2.sort(t3[s2]); + } + } + return l.add(t3); + }, t2.tagHighlighter = d, t2.tags = R; + }, 67377: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = i2(19596), o = i2(80295); + class a extends r2.DataContract { + constructor(e3) { + super(e3); + } + get id() { + return this._id; + } + set id(e3) { + this._id = e3; + } + get name() { + return this._name; + } + set name(e3) { + this._name = e3; + } + get jsonSchema() { + return this._jsonSchema; + } + set jsonSchema(e3) { + this._jsonSchema = e3; + } + } + t2.default = a, n2.__decorate([(0, o.enumerable)(true), n2.__metadata("design:type", String), n2.__metadata("design:paramtypes", [String])], a.prototype, "id", null), n2.__decorate([(0, o.enumerable)(true), n2.__metadata("design:type", String), n2.__metadata("design:paramtypes", [String])], a.prototype, "name", null); + }, 67432: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(43277)); + class r2 extends n2.default { + constructor(e3) { + super(e3.id, e3.name, e3.description), this._model = e3; + } + get division() { + return this._model.division; + } + get contentLength() { + return this._model.contentLength; + } + get contentLocation() { + return this._model.contentLocation; + } + get contentType() { + return this._model.contentType; + } + get dateCreated() { + return this._model.dateCreated; + } + get createdBy() { + return this._model.createdBy; + } + get dateModified() { + return this._model.dateModified; + } + get modifiedBy() { + return this._model.modifiedBy; + } + get responses() { + return this._model.responses; + } + get isResponseAssetViewModel() { + return true; + } + } + t2.default = r2; + }, 67444: (e2, t2, i2) => { + "use strict"; + const n2 = i2(31635), r2 = n2.__importDefault(i2(942)), o = i2(80428), a = i2(58525), s = i2(21030), l = i2(12179), u = n2.__importDefault(i2(97891)), d = i2(47957); + class c extends r2.default { + constructor(e3, t3) { + super(e3.parentFlow, e3), this._loadModel(t3); + } + static get managedProperties() { + return r2.default.createManagedProperties({ searchFieldLabel: d.findActions.findUserPrompt.nameLabel, searchResultLabel: d.findActions.findUserPrompt.resultLabel, searchResultExpressionOptions: a.ExpressionTypePromptOptions.create(), searchResultItemType: o.expressionTypeNames.prompt }); + } + } + c.info = u.default.createActionInfo({ actionClass: c, canBeInTask: true, helpTopic: l.helpTopics.actions.findUserPrompt, modelClass: s.FindUserPromptActionModel, name: d.actions.findUserPrompt, scriptingName: "ArchActionFindUserPrompt" }), t2.A = c; + }, 67477: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(84655)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "surveyForm"; + } + get displayTypeName() { + return "ArchVariableSurveyForm"; + } + get initialValue() { + return this._initialValue; + } + get isArchVariableSurveyForm() { + return true; + } + } + t2.default = r2; + }, 67478: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.mergeMap = void 0; + var n2 = i2(26872), r2 = i2(19724), o = i2(65212), a = i2(2574), s = i2(10281); + t2.mergeMap = function e3(t3, i3, l) { + return void 0 === l && (l = 1 / 0), s.isFunction(i3) ? e3(function(e4, o2) { + return n2.map(function(t4, n3) { + return i3(e4, t4, o2, n3); + })(r2.innerFrom(t3(e4, o2))); + }, l) : ("number" == typeof i3 && (l = i3), o.operate(function(e4, i4) { + return a.mergeInternals(e4, i4, t3, l); + })); + }; + }, 67483: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.getAllUtilizationLabelFailureReasons = t2.getSetUtilizationLabelFailureReasonsAll = t2.getClearUtilizationLabelFailureReasonsAll = t2.getSetUtilizationLabelFailureReasonsWithWorkitem = t2.getClearUtilizationLabelFailureReasonsWithWorkitem = t2.getClearUtilizationLabelFailureReasons = t2.getSetUtilizationLabelFailureReasons = void 0; + const n2 = i2(31635).__importDefault(i2(92140)), r2 = i2(3219), o = { actionInvocationLimitExceeded: "ActionInvocationLimitExceeded", generalError: "GeneralError", invalidConversation: "InvalidConversation", invalidUtilizationLabel: "InvalidUtilizationLabel" }, a = [o.generalError]; + t2.getSetUtilizationLabelFailureReasons = n2.default.uniq(a.concat([o.actionInvocationLimitExceeded, o.invalidConversation, o.invalidUtilizationLabel])), t2.getClearUtilizationLabelFailureReasons = n2.default.uniq(a.concat([o.actionInvocationLimitExceeded, o.invalidConversation])), t2.getClearUtilizationLabelFailureReasonsWithWorkitem = n2.default.uniq(t2.getClearUtilizationLabelFailureReasons.concat(r2.getWorkitemFailureReasonsForUtilizationLabelActions)), t2.getSetUtilizationLabelFailureReasonsWithWorkitem = n2.default.uniq(t2.getSetUtilizationLabelFailureReasons.concat(r2.getWorkitemFailureReasonsForUtilizationLabelActions)), t2.getClearUtilizationLabelFailureReasonsAll = t2.getClearUtilizationLabelFailureReasonsWithWorkitem, t2.getSetUtilizationLabelFailureReasonsAll = t2.getSetUtilizationLabelFailureReasonsWithWorkitem, t2.getAllUtilizationLabelFailureReasons = o; + }, 67504: (e2, t2, i2) => { + const n2 = i2(28730), { clearActiveIntentActionType: r2 } = i2(30801); + function o() { + o.baseConstructor.apply(this, arguments); + } + n2.extend(o, r2, true), e2.exports = o; + }, 67513: (e2, t2, i2) => { + function n2() { + this.description = void 0, this.title = void 0, this.type = void 0, this.properties = void 0, n2.baseConstructor.apply(this, arguments); + } + i2(45214).extend(n2, "ScriptVariables"), Object.defineProperties(n2.prototype, { displayName: { get: function() { + return this.name; + }, set: function(e3) { + this.name = e3; + } }, variables: { get: function() { + return this.properties; + } } }), e2.exports = n2; + }, 67552: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.isPromise = void 0; + var n2 = i2(10281); + t2.isPromise = function(e3) { + return n2.isFunction(null == e3 ? void 0 : e3.then); + }; + }, 67607: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.ExpressionTypeBooleanOptions = void 0; + const n2 = i2(31635), r2 = i2(80295), o = i2(65615), a = i2(55909), s = i2(33951); + class l extends o.BaseExpressionTypeCollectionOptions { + static create(e3, t3) { + return new this(t3).invokeOptionsCallback(e3); + } + constructor(e3) { + super(e3), this._useCustomWarning = false, this._useCheckbox = false, this._useButton = false, this._useToggle = false, (0, r2.makeUnenumerable)(this, "_boolText"), (0, r2.makeUnenumerable)(this, "_useCustomWarning"), (0, r2.makeUnenumerable)(this, "_useCheckbox"); + } + _setFromOptions(e3) { + super._setFromOptions(e3), e3.boolText ? this.setBoolText(e3.boolText.true, e3.boolText.false) : this._boolText = void 0, this._setOptionIfSet(this.setUseCustomWarning, e3.useCustomWarning), this._setOptionIfSet(this.setUseCheckbox, e3.useCheckbox), this._setOptionIfSet(this.setUseButton, e3.useButton), this._setOptionIfSet(this.setUseToggle, e3.useToggle); + } + get isExpressionTypeBooleanOptions() { + return true; + } + get className() { + return "ExpressionTypeBooleanOptions"; + } + get boolText() { + return this._boolText; + } + set boolText(e3) { + this._boolText = s.ParameterValidator.expectObject(e3, () => a.ParameterInfo.createPropertySet(this.className, "boolText", "value")); + } + get useCustomWarning() { + return this._useCustomWarning; + } + set useCustomWarning(e3) { + this._useCustomWarning = s.ParameterValidator.expectBool(e3, () => a.ParameterInfo.createPropertySet(this.className, "useCustomWarning", "value")); + } + get useButton() { + return this._useButton; + } + set useButton(e3) { + true === e3 && (this.useCheckbox = true), this._useButton = s.ParameterValidator.expectBool(e3, () => a.ParameterInfo.createPropertySet(this.className, "useButton", "value")); + } + get useToggle() { + return this._useToggle; + } + set useToggle(e3) { + this._useToggle = s.ParameterValidator.expectBool(e3, () => a.ParameterInfo.createPropertySet(this.className, "useToggle", "value")); + } + get useCheckbox() { + return this._useCheckbox; + } + set useCheckbox(e3) { + this._useCheckbox = s.ParameterValidator.expectBool(e3, () => a.ParameterInfo.createPropertySet(this.className, "useCheckbox", "value")); + } + setBoolText(e3, t3) { + const i3 = {}; + return i3.true = s.ParameterValidator.expectString(e3, () => a.ParameterInfo.createFunctionParameter(this.className, "setBoolText", "trueString")), i3.false = s.ParameterValidator.expectString(t3, () => a.ParameterInfo.createFunctionParameter(this.className, "setBoolText", "falseString")), this.boolText = i3, this; + } + setUseCustomWarning(e3) { + return this.useCustomWarning = e3, this; + } + setUseCheckbox(e3) { + return this.useCheckbox = e3, this; + } + setUseButton(e3) { + return this.useButton = e3, e3 && (this.useCheckbox = true), this; + } + setUseToggle(e3) { + return this.useToggle = e3, this; + } + } + t2.ExpressionTypeBooleanOptions = l, n2.__decorate([(0, r2.enumerable)(true), n2.__metadata("design:type", Object), n2.__metadata("design:paramtypes", [Object])], l.prototype, "boolText", null), n2.__decorate([(0, r2.enumerable)(true), n2.__metadata("design:type", Boolean), n2.__metadata("design:paramtypes", [Object])], l.prototype, "useCustomWarning", null), n2.__decorate([(0, r2.enumerable)(true), n2.__metadata("design:type", Boolean), n2.__metadata("design:paramtypes", [Boolean])], l.prototype, "useCheckbox", null); + }, 67641: (e2, t2, i2) => { + const n2 = i2(45214), r2 = i2(7401); + function o() { + Object.defineProperties(this, { _skill: { writable: true }, _value: { writable: true } }), o.baseConstructor.apply(this, arguments); + } + n2.extend(o, "SkillValuePair"), Object.defineProperties(o.prototype, { pasteReIdOrRename: { value: function(e3) { + this.skill?.pasteReIdOrRename(e3), this.value?.pasteReIdOrRename(e3); + } }, pasteResolveOldToNewValues: { value: function(e3) { + this.skill?.pasteResolveOldToNewValues(e3), this.value?.pasteResolveOldToNewValues(e3); + } }, addClipboardDependencies: { value: function(e3) { + this._skill && this._skill.addClipboardDependencies(e3), this._value && this._value.addClipboardDependencies(e3); + } }, initializeDesignTime: { value: function() { + this._skill && this._skill.initializeDesignTime(), this._value && this._value.initializeDesignTime(); + } }, skill: { enumerable: true, get: function() { + return this._skill; + }, set: function(e3) { + this._skill = this.reviveItem(e3, r2); + } }, value: { enumerable: true, get: function() { + return this._value; + }, set: function(e3) { + this._value = this.reviveItem(e3, r2); + } } }), e2.exports = o; + }, 67644: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.CurrencyType = void 0; + const n2 = i2(31635), r2 = i2(17604), o = n2.__importDefault(i2(92140)), a = i2(97930), s = i2(30879), l = n2.__importDefault(i2(73198)), u = i2(38809), d = i2(98552), c = i2(80428), p = i2(94765), _ = i2(47957), h = i2(24032).getTopic("CurrencyType"); + class m extends p.ExpressionType { + constructor(e3, t3, i3) { + super(e3, t3, i3); + } + get className() { + return "CurrencyType"; + } + createExpressionOptionClass() { + return new a.ExpressionTypeCurrencyOptions(); + } + convertLitToExpression(e3, t3) { + return `ToCurrency("${t3}")`; + } + _getLiteralValueOfExpression(e3) { + var t3; + const i3 = null == e3 ? void 0 : e3.getFunctionsForCharPosition(0, false); + if (1 === (null == i3 ? void 0 : i3.length)) { + const e4 = i3[0], n3 = e4.parameterStrings; + if (e4.isValidFunctionCall && "ToCurrency" === e4.functionText && 1 === n3.length) { + const e5 = null === (t3 = n3[0].match(/"([^"]*)"/)) || void 0 === t3 ? void 0 : t3[1], [i4, r3] = e5.split("|"); + if (!isNaN(Number(i4)) && d.expressionItems.checkDecimalStr(i4, true) && r3) { + const e6 = (0, s.getCurrencyEntryFromCode)(r3); + if (i4 && e6) return this.createCurrencyExpressionValue(i4, r3); + if (r3 === l.default.notSet) return this.createCurrencyExpressionValue(i4, l.default.notSet); + } + } + } + return ""; + } + createCurrencyExpressionValue(e3, t3) { + return t3 && t3 !== l.default.notSet ? `${e3}|${t3 || ""}` : `${e3}`; + } + getYamlObjectForLiteralSingleton(e3) { + super.getYamlObjectForLiteralSingleton(e3); + const t3 = e3.text.split("|"); + if (2 !== t3.length || !o.default.isString(t3[0]) || !o.default.isString(t3[1])) return h.errorWithStack(null, "Invalid string passed to CurrencyType.getYamlObjectForLiteralSingleton"), e3.text; + const i3 = Number(t3[0]); + return o.default.isActualNumber(i3) ? { amount: i3, code: t3[1] } : (h.errorWithStack(null, "Invalid number parsed in CurrencyType.getYamlObjectForLiteralSingleton"), e3.text); + } + validateLiteral(e3, t3) { + var i3, n3; + if (t3.outOfService) return true; + const o2 = t3.text.split("|"), a2 = o2[0]; + return isNaN(Number(a2)) ? (t3.setParseError((0, r2.sprintf)(_.errors.invalidValue, t3.label)), e3.addError(t3, (0, r2.sprintf)(_.errors.invalidValue, t3.label), false, true), false) : a2 || 0 === a2 ? "" === a2 || 0 === parseFloat(a2) || d.expressionItems.checkDecimalStr(o2[0], true) ? (0, u.validateDecimalPlaces)(a2, null === (n3 = null === (i3 = t3.options) || void 0 === i3 ? void 0 : i3.facets) || void 0 === n3 ? void 0 : n3.decimalPlaces, t3, e3) : (t3.setParseError((0, r2.sprintf)(_.expression.decimalValueTooMuchPrecision, o2[0], 1, l.default.maxPrecision)), e3.addError(t3, (0, r2.sprintf)(_.errors.invalidValue, t3.label), false, true), false) : (t3.setParseError(_.facets.valueStringMinLengthOne), e3.addError(t3, (0, r2.sprintf)(_.errors.invalidValue, t3.label), false, true), false); + } + } + t2.CurrencyType = m, m.typeIdentifier = c.expressionTypeNames.currency; + }, 67692: (e2, t2, i2) => { + function n2() { + n2.baseConstructor.apply(this, arguments); + } + i2(11475).extend(n2, "DigitalAudioVariable", true), Object.defineProperties(n2.prototype, { typeIdentifier: { writable: true } }), e2.exports = n2; + }, 67801: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.knowledgeBaseManager = t2.KnowledgeBaseManager = void 0; + const n2 = i2(31635), r2 = n2.__importStar(i2(36781)), o = n2.__importStar(i2(11097)), a = n2.__importStar(i2(1360)), s = n2.__importStar(i2(24032)), l = n2.__importDefault(i2(47532)), u = i2(81801), d = n2.__importDefault(i2(52816)), c = i2(47957), p = i2(27862); + class _ extends l.default { + get requiredAuth() { + return u.externalAuthorizations.authStrings.knowledgeBaseView; + } + get dependencyType() { + return p.KnowledgeBase; + } + constructor() { + super(), this.topic = s.getTopic("KnowledgeBaseManager"), this._rawServerCache = {}, this.apiCallList = o.getKnowledgeBases, this.apiCallSingle = o.getKnowledgeBase, this.className = "KnowledgeBaseManager", this.defaultMatchingStyle = a.exactMatch, this.defaultPageSize = 100, this.dependencyContext = c.knowledgeSettings.knowledgeBaseDocument, this.securityError = true, this.suppressSearch = false, this.uiMetadataSectionName = "knowledgeBases", this.actionsForUsageSearch = [], this.actionPropertyForUsageSearch = "", this._initialize(), r2.serviceListen(r2.cleanUpFlow, () => this.resetState()); + } + _createItemViewModel(e3) { + return new d.default(e3); + } + } + t2.KnowledgeBaseManager = _, t2.knowledgeBaseManager = new _(); + }, 67817: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(54063)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "anyCollection"; + } + get displayTypeName() { + return "ArchValueAnyCollection"; + } + get isArchValueAnyCollection() { + return true; + } + } + t2.default = r2; + }, 67825: (e2, t2, i2) => { + const n2 = i2(69823), { dataActionActionType: r2 } = i2(30801); + function o() { + o.baseConstructor.apply(this, arguments); + } + n2.extend(o, r2, true), e2.exports = o; + }, 67829: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importDefault(i2(92140)), o = n2.__importStar(i2(17498)), a = i2(28031), s = i2(12179), l = n2.__importDefault(i2(20084)), u = i2(27862), d = i2(47957), c = i2(64420), p = i2(69946), _ = i2(87392); + class h extends l.default { + constructor(e3) { + super(e3, "workitemFlowSettings", _), this.editor_testing_tag = "workitem-flow-settings"; + } + get id() { + return "workitemFlowSettings"; + } + get helpTopic() { + return s.helpTopics.treeNodes.workitemFlowSettings; + } + get className() { + return "WorkitemFlowSettingsViewModel"; + } + getDisplayName() { + return d.workitemFlowSettings.titleWithSettings; + } + getNodeName() { + return d.flow.types.workItem; + } + get isWorkitemFlowSettingsNode() { + return true; + } + get wrappedYamlName() { + return "settingsWorkitemFlow"; + } + get nodeGuxIcon() { + return "fa/gears-regular"; + } + get worktype() { + return this._worktype; + } + set worktype(e3) { + this._worktype = e3; + } + getFlowConfigurationClass() { + return p; + } + get overrideWireFlowConfiguration() { + return c.getWorkitemFlowConfiguration; + } + get overrideWireFlowVersionConfiguration() { + return c.getVersionWorkitemFlowConfiguration; + } + loadConfiguration(e3) { + const t3 = Object.create(null, { loadConfiguration: { get: () => super.loadConfiguration } }); + return n2.__awaiter(this, void 0, void 0, function* () { + var i3, n3, r3, o2; + t3.loadConfiguration.call(this, e3), (null === (i3 = e3.workitemFlowSettings) || void 0 === i3 ? void 0 : i3.customFieldsDataTypeId) && (this.customFieldsDataTypeId = e3.workitemFlowSettings.customFieldsDataTypeId), (null === (n3 = e3.workitemFlowSettings) || void 0 === n3 ? void 0 : n3.customFieldsSchemaId) && (this.customFieldsSchemaId = e3.workitemFlowSettings.customFieldsSchemaId), (null === (r3 = e3.workitemFlowSettings) || void 0 === r3 ? void 0 : r3.customFieldsSchemaName) && (this.customFieldsSchemaName = e3.workitemFlowSettings.customFieldsSchemaName), (null === (o2 = e3.workitemFlowSettings) || void 0 === o2 ? void 0 : o2.worktype) && (this.worktype = e3.workitemFlowSettings.worktype); + }); + } + configureForWorktypeConfig(e3) { + this.worktype = e3.worktype, e3.customFieldsSchemaName && e3.customFieldsSchemaId && this.setCustomFieldsSchemaNameAndId(e3.customFieldsSchemaName, e3.customFieldsSchemaId); + } + getConfiguration(e3, t3) { + super.getConfiguration(e3, t3), (null == t3 ? void 0 : t3.isForFlowYaml) || (r2.default.isObject(e3.workitemFlowSettings) || (e3.workitemFlowSettings = {}), e3.workitemFlowSettings.customFieldsDataTypeId = this.customFieldsDataTypeId, e3.workitemFlowSettings.customFieldsSchemaId = this.customFieldsSchemaId, e3.workitemFlowSettings.customFieldsSchemaName = this.customFieldsSchemaName, e3.workitemFlowSettings.worktype = this.worktype); + } + get customFieldsDataTypeId() { + return this._customFieldsDataTypeId; + } + set customFieldsDataTypeId(e3) { + this._customFieldsDataTypeId = e3; + } + get customFieldsSchemaId() { + return this._customFieldsSchemaId; + } + set customFieldsSchemaId(e3) { + this._customFieldsSchemaId = e3; + } + get customFieldsSchemaName() { + return this._customFieldsSchemaName; + } + set customFieldsSchemaName(e3) { + this._customFieldsSchemaName = e3; + } + setCustomFieldsSchemaNameAndId(e3, t3) { + this.customFieldsSchemaId = t3, this.customFieldsSchemaName = e3; + } + updateDependencies() { + var e3, t3, i3, n3; + super.updateDependencies(); + const r3 = (null === (e3 = this.worktype) || void 0 === e3 ? void 0 : e3.schema) || null; + (null === (i3 = null === (t3 = this.worktype) || void 0 === t3 ? void 0 : t3.schemaInfo) || void 0 === i3 ? void 0 : i3.id) && o.registerConsumer(this, `${this.id}_Schema`, r3.name, this.worktype.schemaInfo.id, void 0, u.Schema, this.parentFlow), (null === (n3 = this.worktype) || void 0 === n3 ? void 0 : n3.id) && o.registerConsumer(this, `${this.id}_Worktype`, this.worktype.name, this.worktype.id, void 0, u.Worktype, this.parentFlow); + } + getDisplayableListOfStatuses() { + const e3 = [], t3 = this.worktype.statuses.map((e4) => ({ displayString: e4.name, category: e4.category, id: e4.id })); + for (const i3 in a.WorktypeStatusCategories) { + const n3 = t3.filter((e4) => e4.category === a.WorktypeStatusCategories[i3]); + n3.sort((e4, t4) => e4.displayString > t4.displayString ? 1 : t4.displayString > e4.displayString ? -1 : 0), e3.push(...n3); + } + return e3; + } + } + t2.default = h; + }, 67933: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.combineLatestAll = void 0; + var n2 = i2(88246), r2 = i2(80719); + t2.combineLatestAll = function(e3) { + return r2.joinAllInternals(n2.combineLatest, e3); + }; + }, 67987: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = i2(30801), o = n2.__importDefault(i2(11210)); + class a extends o.default { + constructor(e3) { + super(e3), this._targetUser = this.coreFactory.createArchWrapper(e3.user); + } + get _actionTypeId() { + return r2.playUserNameActionType; + } + get displayTypeName() { + return this._scriptingName; + } + get isArchActionPlayUserName() { + return true; + } + get targetUser() { + return this._targetUser; + } + } + t2.default = a; + }, 68038: (e2, t2) => { + "use strict"; + var i2; + Object.defineProperty(t2, "__esModule", { value: true }), t2.SwitchStyles = void 0, (function(e3) { + e3[e3.firstTrueCase = 0] = "firstTrueCase", e3[e3.matchExpression = 1] = "matchExpression"; + })(i2 || (t2.SwitchStyles = i2 = {})); + }, 68039: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.ExpressionTypeEmergencyGroupOptions = void 0; + const n2 = i2(71056); + class r2 extends n2.ExpressionTypeNetworkObjectOptions { + static create(e3, t3) { + return new this(t3).invokeOptionsCallback(e3); + } + constructor(e3) { + super(e3); + } + get className() { + return "ExpressionTypeEmergencyGroupOptions"; + } + get isExpressionTypeEmergencyGroupOptions() { + return true; + } + } + t2.ExpressionTypeEmergencyGroupOptions = r2; + }, 68040: (e2, t2, i2) => { + const n2 = i2(25760); + function r2() { + r2.baseConstructor.apply(this, arguments); + } + i2(22124).extend(r2, "NLUDomainList"), Object.defineProperties(r2.prototype, { entities: { enumerable: true, get: function() { + return this._entities; + }, set: function(e3) { + this._entities = this.reviveArray(e3, n2); + } } }), e2.exports = r2; + }, 68087: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.mergeAll = void 0; + var n2 = i2(67478), r2 = i2(87699); + t2.mergeAll = function(e3) { + return void 0 === e3 && (e3 = 1 / 0), n2.mergeMap(r2.identity, e3); + }; + }, 68108: (e2, t2, i2) => { + "use strict"; + const n2 = i2(31635), r2 = n2.__importDefault(i2(942)), o = i2(43700), a = i2(80428), s = i2(48388), l = i2(12179), u = n2.__importDefault(i2(97891)), d = i2(47957); + class c extends r2.default { + constructor(e3, t3) { + super(e3.parentFlow, e3), this._loadModel(t3); + } + static get managedProperties() { + return r2.default.createManagedProperties({ searchFieldPropertyName: "findId", searchFieldOptionsCallback: (e3) => e3.facets.setLengthForUuid(), searchFieldLabel: d.findActions.findGrammar.findGrammarIdLabel, searchResultLabel: d.findActions.findGrammar.findGrammarResultLabel, searchResultExpressionOptions: o.ExpressionTypeGrammarOptions.create(), searchResultItemType: a.expressionTypeNames.grammar }); + } + } + c.info = u.default.createActionInfo({ actionClass: c, canBeInTask: true, helpTopic: l.helpTopics.actions.findGrammarById, modelClass: s.FindGrammarByIdActionModel, name: d.actions.findGrammarById, scriptingName: "ArchActionFindGrammarById" }), t2.A = c; + }, 68128: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.dataActionCategoryManager = t2.DataActionCategoryManager = void 0; + const n2 = i2(24032), r2 = i2(64718), o = i2(47957); + class a extends r2.BaseIntegrationsActionCategoryManager { + constructor() { + super(), this.topic = (0, n2.getTopic)("DataActionCategoryManager"), this.additionalQueryParams = { secure: false }, this.dependencyContext = o.bridgeServer.category, this.className = "DataActionCategoryManager", this._initialize(); + } + } + t2.DataActionCategoryManager = a, t2.dataActionCategoryManager = new a(); + }, 68152: (e2) => { + "use strict"; + e2.exports = function(e3) { + return e3.split("\n").map(function(e4) { + return e4.trimRight(); + }).join("\n"); + }; + }, 68208: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(92140)), r2 = i2(24364), o = i2(78); + class a { + constructor(e3) { + this.context = void 0, this.name = e3; + } + addContext(e3, t3) { + e3 && t3 && (this.context || (this.context = {}), this.context[e3] = t3); + } + debug(e3, ...t3) { + } + error(e3, ...t3) { + const i3 = [null].concat(n2.default.rest(arguments, 0)); + this._error.apply(this, i3); + } + errorWithErrorObjectInfo(e3, t3, i3, r3) { + const o2 = [null].concat(n2.default.rest(arguments, 0)); + this.exceptionWithErrorObjectInfo.apply(this, o2); + } + errorPromise(e3, t3, ...i3) { + e3 && e3.isRequestError ? this.requestError(e3, t3) : this._handlePromiseError(n2.default.partial(this._error, void 0), e3, t3, n2.default.rest(arguments, 2)); + } + errorWithStack(e3, t3, ...i3) { + e3 || (e3 = new Error()); + const r3 = [e3, t3].concat(n2.default.rest(arguments, 2)); + this._error.apply(this, r3); + } + exception(e3, t3, ...i3) { + t3 = "Unhandled exception caught!\n" + t3, (null == e3 ? void 0 : e3.name) && (t3 += ` +${e3.name}`), (null == e3 ? void 0 : e3.message) && (t3 += ` +${e3.message}`); + const r3 = [e3, t3].concat(n2.default.rest(arguments, 2)); + this.errorWithStack.apply(this, r3); + } + exceptionWarning(e3, t3, ...i3) { + const r3 = [e3, t3 = "Unhandled exception caught!\n" + t3].concat(n2.default.rest(arguments, 2)); + this.warningWithStack.apply(this, r3); + } + exceptionWithErrorObjectInfo(e3, t3, i3, r3, o2) { + if (t3 = t3 || "", n2.default.isBoolean(r3) || (r3 = n2.default.isObject(e3)), e3 && (t3 = "Unhandled exception caught!\n" + t3), i3) { + const n3 = { objectId: i3.id }; + let o3; + if (i3.className && (n3.className = i3.className), i3.definitionId && (n3.definitionId = i3.definitionId), i3.parentFlow ? o3 = i3.parentFlow : i3.isFlowViewModel && (o3 = i3), o3 && (n3.flowId = o3.id, o3.versions && (n3.flowNextVersionNumber = o3.versions.nextVersionNumber), o3.info)) { + const e4 = o3.info; + e4.division && (n3.divisionId = e4.division.id); + } + r3 ? this.withMultipleContext(n3).errorWithStack(e3, t3) : this.withMultipleContext(n3).error(t3); + } else r3 ? this.errorWithStack(e3, t3) : this.error(t3); + } + errorCtorParmInternal(e3, t3, i3) { + this.error("Internal Error - the constructor parameter '" + e3 + "' with value of '" + t3 + "' is invalid." + (i3 ? " " + i3 : "")); + } + errorPropertySetInternal(e3, t3, i3, n3) { + this.errorPropertySet(e3, t3, i3, "Internal Error" + (n3 ? " - " + n3 : "")); + } + errorPropertySet(e3, t3, i3, n3) { + const r3 = "Cannot set the value of property '" + t3 + "' to the value '" + i3 + "'." + (n3 ? " Reason: " + n3 : ""); + this.error(r3); + } + errorHandler(e3, ...t3) { + let i3 = n2.default.rest(arguments, 0); + return (e4) => { + i3 = [this, e4].concat(i3), r2.error.apply(r2, i3), o.error.apply(o, i3); + }; + } + info(e3, ...t3) { + const i3 = [this].concat(n2.default.rest(arguments, 0)); + o.info.apply(o, i3); + } + infoWithObject(e3, ...t3) { + o.info.apply(o, [this.withContext("info", e3)].concat(n2.default.rest(arguments, 1))); + } + infoWithStack(e3, t3) { + e3 || (e3 = new Error()); + const i3 = `${t3} +${e3.stack}`, n3 = [this].concat(i3); + o.info.apply(o, n3); + } + requestError(e3, t3) { + if (!e3) return; + const i3 = [`Request Error: ${t3}`]; + e3.message && i3.push(`request error: ${e3.message}`), e3.code && i3.push(`code: ${e3.code}`), e3.status && i3.push(`status: ${e3.status}`), e3.statusText && i3.push(`status text: ${e3.statusText}`); + const n3 = i3.join(", "); + switch (e3.status ? e3.status.toString() : void 0) { + case "409": + case "404": + this.info(n3); + break; + case "403": + this.warning(n3); + break; + default: + this.error(n3); + } + } + warning(e3, ...t3) { + const i3 = [this].concat(n2.default.rest(arguments, 0)); + r2.warning.apply(r2, i3), o.warning.apply(o, i3); + } + warningPromise(e3, t3, ...i3) { + this._handlePromiseError(this.warning, e3, t3, n2.default.rest(arguments, 2)); + } + warningWithStack(e3, t3) { + e3 || (e3 = new Error()); + const i3 = `${t3} +${e3.stack}`, n3 = [this].concat(i3); + r2.warning.apply(r2, n3), o.warning.apply(o, n3); + } + withContext(e3, t3) { + if (!e3 || !t3) return this; + const i3 = new a(this.name); + return i3.copyContext(this), i3.addContext(e3, t3), i3; + } + copyContext(e3) { + return e3 ? (n2.default.each(e3.context, (e4, t3) => { + this.addContext(t3, e4); + }), this) : this; + } + withMultipleContext(e3) { + if (!e3) return this; + const t3 = new a(this.name); + return t3.copyContext(this), n2.default.each(e3, (e4, i3) => { + t3.addContext(i3, e4); + }), t3; + } + traceOnce(e3, t3) { + e3 || (e3 = ""), this.__traceOnceMap || (this.__traceOnceMap = {}), this.__traceOnceMap[e3] || (this.__traceOnceMap[e3] = true, t3(this)); + } + _error(e3, t3) { + const i3 = [this].concat(n2.default.rest(arguments, 0)); + r2.error.apply(r2, i3), o.error.apply(o, i3); + } + _handlePromiseError(e3, t3, i3, r3) { + let o2 = ""; + t3 && (n2.default.isString(t3) ? o2 += "error: " + t3 : (t3.name && (o2 += "errorName: " + t3.name), t3.name && t3.message && (o2 += " -- "), t3.message && (o2 += "errorMessage: " + t3.message), o2 || (o2 += "unknown error object: " + JSON.stringify(t3)))), i3 && (o2 += "\n" + i3); + const a2 = [o2].concat(r3); + e3.apply(this, a2); + } + } + t2.default = a; + }, 68223: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.getSubscriptions = t2.reset = void 0, t2.addNgZone = function(e3) { + w = (t3, i3) => { + e3.run(() => { + D(t3, i3); + }); + }; + }, t2.addSubscription = function(e3, t3, i3) { + const n3 = (0, c.isArray)(e3) ? e3 : [e3]; + if (G(), A) { + const e4 = []; + if (o.default.each(n3, function(n4) { + O[n4] ? o.default.findWhere(O[n4], { subscriberId: t3 }) ? m.warning("Duplicate subscribe for {} - topic: {}", t3, n4) : O[n4].push({ subscriberId: t3, cb: i3 }) : (e4.push(n4), O[n4] = [{ subscriberId: t3, cb: i3 }]); + }), e4.length) { + const t4 = s.default.build(h.addSubscription); + return t4.templateParams({ id: y.channelId }), t4.content(o.default.map(e4, function(e5) { + return { id: e5 }; + })), U(t4); + } + } else m.warning("Tried to start new notification subscription while not connected. topics:{}"); + return Promise.resolve(); + }, t2.removeSubscription = function(e3, t3) { + const i3 = o.default.isArray(e3) ? e3 : [e3]; + o.default.each(i3, function(e4) { + C[e4] = o.default.union(C[e4], [t3]); + }), G(); + }, t2.isConnected = function() { + return A; + }, t2.setTestKillNotificationMode = function(e3) { + N = e3, A = !e3; + }, t2.getInitialConnected = function() { + return I.promise; + }; + const n2 = i2(31635), r2 = i2(17604), o = n2.__importDefault(i2(92140)), a = n2.__importDefault(i2(73198)), s = n2.__importDefault(i2(36019)), l = n2.__importStar(i2(74359)), u = n2.__importStar(i2(36781)), d = i2(52023), c = i2(50474), p = i2(24032), _ = i2(77886), h = i2(73369), m = (0, p.getTopic)("notifications"), g = 0.25 * a.default.msPerSecond, f = 7 * a.default.msPerSecond, T = 5 * a.default.msPerSecond; + let y, S = 0, A = false, N = false, O = {}; + const I = new d.PromiseDefer(); + let v = false, C = {}; + function b() { + A = false, S < 5 ? (S++, setTimeout(L, T)) : m.warning("Reconnection to notification socket failed after 5 attempts. Falling back to polling."); + } + function E(e3) { + const t3 = null == e3 ? void 0 : e3.code; + void 0 !== t3 && ("number" != typeof t3 || t3 < 0 || t3 > 4294967295) ? m.warning((0, r2.sprintf)("Websocket connection closed with invalid close code: %1$s (type: %2$s). Treating as abnormal closure.", t3, typeof t3)) : m.info((0, r2.sprintf)("Websocket connection closed with code: %1$s", t3)), b(); + } + function R(e3) { + 0 === (null == e3 ? void 0 : e3.status) ? S = 0 : m.errorPromise(e3, (0, r2.sprintf)("Create channel API failed.")), b(); + } + let w = (e3, t3) => { + D(e3, t3); + }; + function D(e3, t3) { + if (N) return; + const i3 = O[e3]; + if (i3) for (let e4 = 0; e4 < i3.length; ++e4) i3[e4].cb(t3); + } + function P(e3) { + let t3, i3; + if ("string" == typeof e3 || "undefined" != typeof Buffer && Buffer.isBuffer(e3)) t3 = e3; + else { + if (null == e3 || void 0 === e3.data || null === e3.data) return void m.warning("parseMessage: unexpected message format, skipping"); + t3 = e3.data; + } + try { + i3 = JSON.parse("string" == typeof t3 ? t3 : t3.toString()); + } catch (e4) { + return void m.errorWithStack(e4, "parseMessage: failed to parse message as JSON"); + } + if ((n3 = i3) && n3 && n3.topicName === (l.getConnectedUser() ? (0, _.getSystemTokenRevokedTopic)(l.getConnectedUser().id) : (m.errorWithStack(null, "Tried to _getSystemTopicTokenRevoked without a connectedUser"), "")) && (u.emitter.emit(u.tokenRevoked), u.emitter.emit(u.connectionLost), 1)) return; + var n3; + const r3 = i3.eventBody.message ? i3.eventBody.message : i3.eventBody; + "WebSocket Heartbeat" !== r3 && w(i3.topicName, r3); + } + function M() { + S = 0, A = true, m.info("Carrier Pigeon Socket connected."), v || (v = true, I.resolve()); + } + function F(e3) { + m.errorWithStack(e3, "Websocket connection error occurred"), b(); + } + function L() { + A || s.default.build(h.createChannel).call().then(function(e3) { + try { + y = (function(e4) { + let t3; + return t3 = new (i2(15086))(e4.connectUri), t3; + })(e3); + } catch (e4) { + return void R(e4); + } + y.channelId = e3.id, "function" == typeof y.addEventListener ? (y.addEventListener("open", M), y.addEventListener("close", (e4) => E({ code: null == e4 ? void 0 : e4.code })), y.addEventListener("message", P), y.addEventListener("error", F)) : (y.onopen = M, y.onclose = (e4, t3) => E({ code: e4 }), y.onmessage = P, y.onerror = F); + }, R); + } + t2.reset = void 0; + const x = []; + let k = false; + function V(e3) { + return new Promise((t3) => setTimeout(t3, e3)); + } + function U(e3) { + const t3 = new d.PromiseDefer(); + return (function(e4, t4) { + x.push({ serverCall: e4, defer: t4 }), (function() { + n2.__awaiter(this, void 0, void 0, function* () { + if (!k) { + k = true; + try { + let e5 = true; + for (; x.length > 0; ) { + const { serverCall: t5, defer: i3 } = x.shift(); + !e5 && g > 0 && (yield V(g)), e5 = false; + try { + yield t5.call(), i3.resolve(); + } catch (e6) { + i3.reject(e6); + } + } + } finally { + k = false; + } + } + }); + })(); + })(e3, t3), t3.promise; + } + const B = o.default.debounce(function() { + if (A) { + o.default.each(C, function(e4, t3) { + O[t3] && (O[t3] = o.default.reject(O[t3], function(t4) { + return o.default.contains(e4, t4.subscriberId); + }), O[t3].length || delete O[t3]); + }), C = {}; + const e3 = o.default.keys(O); + if (0 === e3.length) { + const e4 = s.default.build(h.removeAllSubscriptions); + return e4.templateParams({ id: y.channelId }), U(e4); + } + { + const t3 = s.default.build(h.updateSubscription); + return t3.templateParams({ id: y.channelId }), t3.content(o.default.map(e3, function(e4) { + return { id: e4 }; + })), U(t3); + } + } + }, f); + function G() { + B(); + } + l.featureTogglesLoaded.then(L), u.serviceListen(u.connectionLost, function() { + if (y) { + try { + const e3 = y.readyState; + 3 !== e3 && 2 !== e3 && y.close(1e3); + } catch (e3) { + m.errorWithStack(e3, "Error closing websocket connection"); + } + A = false; + } + O = {}; + }), t2.getSubscriptions = void 0; + }, 68227: (e2) => { + e2.exports = { askCommon: { invalidInputReceived: "Dat is niet geldig.", noInputReceived: "Ik heb geen input ontvangen." }, askForBoolean: { noInput: 'Zeg "ja" als u wilt doorgaan of "nee" als u dat niet wilt.', noMatch: 'Zeg "Ja" of "Nee". Wilt u doorgaan?', question: "Wilt u doorgaan?", noInputDigitalBot: 'Voer "Ja" in als u wilt doorgaan of "Nee" als u dat niet wilt.', noMatchDigitalBot: 'Voer "Ja" of "Nee" in. Wilt u doorgaan?' }, askForIntent: { noInput: 'Zeg een korte zin om uw query te beschrijven, bijvoorbeeld "Mijn rekeningsaldo controleren"', noMatch: "Vertel opnieuw wat u wilt doen.", question: "Wat wilt u doen?", noInputDigitalBot: 'Voer een korte zin in om uw query te beschrijven, bijvoorbeeld "Mijn rekeningsaldo controleren"' }, askForSlot: { askFor: "Vragen om %1$s", noInput: "Zeg uw (vul hier de naam van het slot in) of voer de informatie in.", noInputWithSlot: "Zeg uw %1$s of voer de informatie in.", noMatch: "Geef uw (vul hier de naam van het slot in) opnieuw door.", noMatchWithSlot: "Geef uw %1$s opnieuw door.", question: "Wat is uw (vul hier de naam van het slot in)?", questionWithSlot: "Wat is uw %1$s?", pleaseEnterSlotNameHere: "(voer hier uw slotnaam in)", noInputDigitalBot: "Voer uw (vul hier de naam van het slot in) in.", noInputWithSlotDigitalBot: "Voer de %1$s in.", continuationPromptWithSlot: "Ik heb tot dusver {{Slot.%1$s}}, ga door." }, askForNextSlot: { noInput: 'Zeg "ja" als u nog een query hebt of zeg "nee" om het gesprek te be\xEBindigen.', noMatch: 'Zeg "Ja" als u nog een query hebt of zeg "Nee" om de sessie te be\xEBindigen.', question: "Kan ik u nog ergens anders mee helpen?", noInputDigitalBot: 'Voer "Ja" in als u nog een query hebt of "Nee" om de sessie te be\xEBindigen.', noMatchDigitalBot: 'Voer "Ja" in als u nog een query hebt of "Nee" om de sessie te be\xEBindigen.' }, askForPayment: { noInputDigitalBot: "Geef uw betalingsgegevens op om door te gaan.", noMatchDigitalBot: "Ik heb uw respons niet begrepen. Probeer het opnieuw." }, askForAuthentication: { noInputDigitalBot: "Geef uw authenticatiegegevens op om door te gaan.", noMatchDigitalBot: "Ik heb uw respons niet begrepen. Probeer het opnieuw." }, askSurveyQuestion: { notApplicable: "Niet van toepassing", surveyAnswerOptionSequence: "Druk op %1$s voor '%2$s'.", surveyAnswerNotApplicableSequence: "Druk op het sterretje voor Niet van toepassing.", surveyAnswerNotApplicableWithQuestionSequence: "%1$s. Druk op het sterretje voor Niet van toepassing.", voiceSurveyNoInputText: "Beantwoord alstublieft de vraag.", voiceSurveyNoMatchText: "Ik heb u niet begrepen." }, commonModule: { exitCommonModule: "Algemene module afsluiten" }, form: { noInputDigitalBot: "Vul het formulier in om door te gaan.", noMatchDigitalBot: "Vul het formulier in om door te gaan." }, messagingTemplate: { noInputDigitalBot: "Selecteer een van de beschikbare opties.", noMatchDigitalBot: "Selecteer een van de beschikbare opties." }, knowledgeSettings: { knowledgeAnswerHighlightFlowProgressionDefault: "Doorgaan", knowledgeAnswerHighlightFullArticleDefault: "Volledig artikel weergeven", knowledgeInitialResponseMulti: "Kies een cijfer in de volgende lijst, zodat ik een duidelijker beeld krijg van wat u wilt doen:", knowledgeInitialResponseMultiRetry: "Kies een cijfer, bijvoorbeeld '1'.\nHier is de lijst met opties nog een keer:", knowledgeNoMatch: "Geen van deze antwoorden", knowledgeConfirmation: "Is uw vraag hiermee beantwoord?", knowledgeFollowup: "Ik hoop dat ik uw vraag heb beantwoord. Wilt u nog iets anders weten, vraag het dan gerust." }, noOverlay: { intent: { intentConfirmationStr1: "Ik denk dat u het volgende wilt:", intentConfirmationStr2: "Klopt dat?" }, youSaid: { youSaidConfirmationStr1: "U zei", youSaidConfirmationStr2: "Klopt dat?", youSaidConfirmationStr1DigitalBot: "U hebt het volgende ingevoerd:" }, noInput: { noInputStr1: "Zeg of voer de volgende informatie in:", noInputStr1DigitalBot: "Voer het volgende in:" }, noMatch: { noMatchStr1: "Laat me het volgende weten:" }, whatIs: { whatIsQuestionStr1: "Wat is", whatIsQuestionStr2: "?" }, iGotContinuation: { iGotContinuationStr1: "Ik heb tot dusver", iGotContinuationStr2: ", ga door." } }, defaultCallFlowOne: "Standaard call flow", errorHandlingAgentEscalationConfirmation: "U wilt een adviseur spreken, klopt dat?", errorHandlingAgentEscalationHandover: "Een ogenblik geduld. Ik verbind u door.", errorHandlingErrorEventHandover: "Er is een fout opgetreden. Een ogenblik geduld. Ik verbind u door met iemand die u kan helpen.", errorHandlingErrorEventHandoverVoiceSurvey: "Sorry, er is een fout opgetreden. Tot ziens.", errorHandlingRecognitionEventHandover: "Ik heb u niet begrepen. Een ogenblik geduld. Ik verbind u door met iemand die u kan helpen.", errorHandlingRecognitionEventHandoverVoiceSurvey: "Sorry, ik kan u moeilijk verstaan. Tot ziens.", errorHandlingTTS: "Er is helaas een fout opgetreden. Probeer opnieuw te bellen.", initialGreetingTTS: "Hallo, dit is de welkomstgroet", initialState: "Initi\xEBle status", initialBotState: "Standaardbot", initialDigitalBotState: "Eerste begroeting", initialSurveyBotState: "Enqu\xEAtebot", intentConfirmation: "Ik denk dat u het volgende wilt doen: %1$s. Klopt dat?", mainMenu: "Hoofdmenu", mainMenuTTS: "U bent in het hoofdmenu. Toets 9 om de verbinding te verbreken.", mainTask: "Taak", settingsConfirmationNoInputApology: "Ik heb u niet verstaan. Zeg ja of nee.", settingsConfirmationNoInputApologyDigitalBot: 'Ik heb geen invoer van u ontvangen. Voer "Ja" of "Nee" in.', settingsConfirmationNoMatchApology: "Zeg ja of nee.", settingsConfirmationNoMatchApologyDigitalBot: 'Voer "Ja" of "Nee" in.', settingsNoInputApology: "Ik heb u niet verstaan.", settingsNoInputApologyDigitalBot: "Ik heb geen invoer van u ontvangen.", settingsEndOfSessionMessageDigitalBot: "Ik heb al even niets van u gehoord, daarom sluit ik deze chat. Kom terug als u mijn hulp weer nodig hebt. Dank u.", settingsNoMatchApology: "Excuses.", settingsNoToConfirmationApology: "Mijn fout.", periodicStateName: "Terugkerende status" }; + }, 68259: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importDefault(i2(92140)), o = i2(80295), a = n2.__importDefault(i2(63005)), s = i2(80428), l = n2.__importDefault(i2(65302)); + class u extends a.default { + constructor() { + super(), (0, o.makeUnenumerable)(this, "_decimalPlaces"); + } + static createMinMax(e3, t3, i3, n3) { + const o2 = new u(); + return r2.default.isUndefined(e3) || o2.setMinDec(e3).setMinValInclusive(true === t3), r2.default.isUndefined(i3) || o2.setMaxDec(i3).setMaxValInclusive(true === n3), o2; + } + _setFromFacets(e3) { + super._setFromFacets(e3); + } + get className() { + return "CurrencyFacets"; + } + get isCurrencyFacets() { + return true; + } + _facetGetExpressionItemLitValue(e3) { + let t3 = e3.getLitAsString(); + if (t3) { + const e4 = t3.indexOf("|"); + e4 >= 0 && (t3 = t3.substring(0, e4)); + } + if (t3) return parseFloat(t3); + } + _facetGetExpressionType() { + return l.default.getGlobalTypeGroup().getType(s.expressionTypeNames.currency, this.isCollection); + } + } + t2.default = u; + }, 68268: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(67336)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get displayTypeName() { + return "ArchBranch"; + } + get isArchBranch() { + return true; + } + get logStr() { + if (!this._getCoreViewModel()) return this.logStrTypeOnly; + const e3 = []; + return this._appendLogStrName(e3, this.name), this._appendLogStrType(e3, this.displayTypeName), this._appendLogStrOutputId(e3, this.outputId), this._createLogStrFromParts(e3); + } + get name() { + return this._getCoreViewModel().label; + } + get outputId() { + return this._getCoreViewModel().outputId; + } + } + t2.default = r2; + }, 68297: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.emailSendFlowListManager = t2.EmailSendFlowListManager = void 0; + const n2 = i2(96618), r2 = i2(24032), o = i2(10420), a = i2(6109), s = i2(27862); + class l extends a.FlowListManager { + get dependencyType() { + return s.EmailSendFlow; + } + constructor() { + super(), this.topic = (0, r2.getTopic)("emailSendFlowListManager"), this.briefManager = o.briefEmailSendFlowListManager, this.additionalQueryParams = { type: n2.flowTypes.flowTypeEmailSend }, this.className = "EmailSendFlowListManager", this.flowType = n2.flowTypes.flowTypeEmailSend, this._initialize(); + } + } + t2.EmailSendFlowListManager = l, t2.emailSendFlowListManager = new l(); + }, 68301: (e2, t2, i2) => { + "use strict"; + var n2, r2, o; + Object.defineProperty(t2, "__esModule", { value: true }); + const a = i2(31635), s = i2(30801), l = a.__importDefault(i2(13002)); + class u extends l.default { + constructor(e3) { + super(e3), n2.set(this, void 0), r2.set(this, void 0), o.set(this, void 0), a.__classPrivateFieldSet(this, n2, this.coreFactory.createArchWrapper(e3.signInMessage), "f"), a.__classPrivateFieldSet(this, r2, this.coreFactory.createArchWrapper(e3.successMessage), "f"), a.__classPrivateFieldSet(this, o, this.coreFactory.createArchWrapper(e3.authenticationCompletionTimeout), "f"); + } + get _actionTypeId() { + return s.askForAuthenticationActionType; + } + get displayTypeName() { + return "ArchActionAskForAuthentication"; + } + get isArchActionAskForAuthentication() { + return true; + } + get signInMessage() { + return a.__classPrivateFieldGet(this, n2, "f"); + } + get successMessage() { + return a.__classPrivateFieldGet(this, r2, "f"); + } + get authenticationCompletionTimeout() { + return a.__classPrivateFieldGet(this, o, "f"); + } + get askForAuthenticationOutputsFailure() { + return this._coreActionViewModel.errorBindings ? this.coreFactory.createArchWrapper(this._coreActionViewModel.errorBindings) : null; + } + } + n2 = /* @__PURE__ */ new WeakMap(), r2 = /* @__PURE__ */ new WeakMap(), o = /* @__PURE__ */ new WeakMap(), t2.default = u; + }, 68322: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(17405)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "surveyQuestionGroup"; + } + get displayTypeName() { + return "ArchValueSurveyQuestionGroup"; + } + get isArchValueSurveyQuestionGroup() { + return true; + } + } + t2.default = r2; + }, 68374: (e2, t2, i2) => { + const n2 = i2(58265), r2 = i2(59441).default; + function o() { + Object.defineProperties(this, { _inboundEmailSettings: { writable: true }, _nluCortex: { writable: true } }), o.baseConstructor.apply(this, arguments); + } + i2(23695).extend(o, "EmailFlowConfiguration"), Object.defineProperties(o.prototype, { inboundEmailSettings: { enumerable: true, get: function() { + return this._inboundEmailSettings; + }, set: function(e3) { + this._inboundEmailSettings = new n2(e3); + } }, nluCortex: { enumerable: true, get: function() { + return this._nluCortex; + }, set: function(e3) { + this._nluCortex = this.reviveItem(e3, r2); + } } }), e2.exports = o; + }, 68436: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importDefault(i2(21345)), o = n2.__importDefault(i2(78432)), a = i2(30801); + class s extends r2.default { + constructor(e3) { + super(e3), this._messageBody = this.coreFactory.createArchWrapper(e3.messageBody), this._messageBodyStyle = this.coreFactory.createArchWrapper(e3.messageBodyStyle), this._attachments = this.coreFactory.createArchWrapper(e3.attachments); + } + get _actionTypeId() { + return a.sendResponseActionType; + } + get displayTypeName() { + return this._scriptingName; + } + get isArchActionSendResponse() { + return true; + } + get messageBody() { + return this._messageBody; + } + setMessageBodyVariable(e3) { + this._checkItemIsValidLiteralStringOrArchVariableString(this._infoParm("messageBodyVariable", "setMessageBodyVariable"), e3, false), this.messageBody.setVariable(e3); + } + get messageBodyStyle() { + return this._messageBodyStyle; + } + setLiteralMessageBodyStyle(e3) { + const t3 = this._infoPropSet("newMessageBodyStyle", "messageBodyStyle"); + this._checkItemIsValidLiteralStringEnum(t3, e3, o.default.MESSAGE_BODY_STYLES_ALL), this._coreActionViewModel.messageBodyStyle.setAsLiteral(e3), this.logNote("messageBodyStyle set to '" + this.messageBodyStyle + "'"); + } + get attachments() { + return this._attachments; + } + } + t2.default = s; + }, 68460: (e2, t2, i2) => { + "use strict"; + var n2, r2, o, a; + Object.defineProperty(t2, "__esModule", { value: true }); + const s = i2(31635), l = s.__importDefault(i2(92140)), u = s.__importDefault(i2(92859)), d = s.__importStar(i2(24032)), c = i2(84250), p = s.__importDefault(i2(17102)), _ = d.getTopic("DataReporter"); + class h extends p.default { + constructor(e3, t3) { + super(e3, t3), n2.set(this, false), r2.set(this, void 0), o.set(this, false), a.set(this, false); + } + addClipboardDependencies(e3, t3) { + } + _destroy() { + super._destroy(); + try { + let e3; + s.__classPrivateFieldGet(this, n2, "f") && (s.__classPrivateFieldSet(this, n2, false, "f"), e3 = true), s.__classPrivateFieldGet(this, r2, "f") && (s.__classPrivateFieldSet(this, r2, false, "f"), e3 = true), e3 && this._processConsumeSecureDataChange(); + } catch (e3) { + _.exceptionWithErrorObjectInfo(e3, "Error in secure meta data destroy processing.", this, true); + } + } + checkChildCallback(e3, t3) { + e3 !== this && (e3.consumesSecureData && (t3.data.consumesSecureData = true), e3.hasValidationError && (t3.data.hasValidationError = true), e3.hasValidationWarning && (t3.data.hasValidationWarning = true), e3.consumesSecureData && e3.hasValidationError && (t3.cancelTraverse = true)); + } + childAdded(e3) { + this.childUpdated(e3); + } + childRemoved(e3) { + (!e3 || e3.consumesSecureData || e3.hasValidationError || e3.hasValidationWarning) && this._computeData(e3, true); + } + childUpdated(e3) { + const t3 = e3.consumesSecureData, i3 = e3.hasValidationError, n3 = e3.hasValidationWarning; + l.default.isBoolean(t3) || _.error("A child was passed to childUpdated without having a consumesSecureSetting set."), t3 === this.consumesSecureData && i3 === this.hasValidationError && n3 === this.hasValidationWarning || (s.__classPrivateFieldSet(this, r2, void 0, "f"), this._computeData(e3) || (this.consumesSecureData = t3, this.hasValidationError = i3, this.hasValidationWarning = n3)); + } + get consumesSecureData() { + return s.__classPrivateFieldGet(this, r2, "f") || s.__classPrivateFieldGet(this, n2, "f"); + } + set consumesSecureData(e3) { + this.parentFlow && !this.parentFlow.loaded || e3 !== s.__classPrivateFieldGet(this, r2, "f") && (s.__classPrivateFieldSet(this, r2, e3, "f"), this._processConsumeSecureDataChange()); + } + get hasValidationError() { + return s.__classPrivateFieldGet(this, o, "f"); + } + set hasValidationError(e3) { + this.parentFlow && !this.parentFlow.loaded || e3 !== s.__classPrivateFieldGet(this, o, "f") && (s.__classPrivateFieldSet(this, o, e3, "f"), this._processConsumeSecureDataChange()); + } + get hasValidationWarning() { + return s.__classPrivateFieldGet(this, a, "f"); + } + set hasValidationWarning(e3) { + this.parentFlow && !this.parentFlow.loaded || e3 !== s.__classPrivateFieldGet(this, a, "f") && (s.__classPrivateFieldSet(this, a, e3, "f"), this._processConsumeSecureDataChange()); + } + initialize() { + } + initializeDesignTime() { + try { + s.__classPrivateFieldGet(this, n2, "f") && (this.consumesSecureData = true), this._initializeDesignTime(); + } catch (e3) { + _.exception(e3, "exception during initializeDesignTime"); + } finally { + try { + this._postInitializeDesignTime(); + } catch (e3) { + _.exception(e3, "exception during _postInitializeDesignTime"); + } + super.initializeDesignTime(); + } + } + get isDataReporter() { + return true; + } + setAlwaysSecure() { + s.__classPrivateFieldSet(this, n2, true, "f"), this._processConsumeSecureDataChange(); + } + _initializeDesignTime() { + } + _postInitializeDesignTime() { + } + _computeData(e3, t3) { + if (!l.default.isFunction(this.traverse)) return false; + const i3 = { consumesSecureData: !t3 && e3.consumesSecureData, hasValidationError: !t3 && e3.hasValidationError, hasValidationWarning: !t3 && e3.hasValidationWarning, originChild: e3 }, n3 = this.checkChildCallback.bind(this), r3 = new u.default({ actionCallback: n3, data: i3, expressionCallback: n3, menuCallback: n3, taskCallback: n3, traverseActionProperties: true }); + return this.traverse(r3), this.consumesSecureData = r3.data.consumesSecureData, this.hasValidationError = r3.data.hasValidationError, this.hasValidationWarning = r3.data.hasValidationWarning, true; + } + _processConsumeSecureDataChange() { + this.parent && this.parent.childUpdated && this.parent.childUpdated(this), c.groupedFlowSecureService.processGroupedObject(this); + } + } + n2 = /* @__PURE__ */ new WeakMap(), r2 = /* @__PURE__ */ new WeakMap(), o = /* @__PURE__ */ new WeakMap(), a = /* @__PURE__ */ new WeakMap(), t2.default = h; + }, 68475: (e2, t2, i2) => { + const n2 = i2(70380), r2 = i2(12847), { transferTaskActionType: o } = i2(30801); + function a() { + a.baseConstructor.apply(this, arguments); + } + n2.extend(a, o, true), Object.defineProperties(a.prototype, { paths: { enumerable: true, get: function() { + }, set: function(e3) { + e3 && r2.error("action does not support paths"); + } }, outputs: { enumerable: true, get: function() { + }, set: function(e3) { + e3 && r2.error("action does not support outputs"); + } } }), e2.exports = a; + }, 68511: (e2, t2, i2) => { + const n2 = i2(92140); + function r2() { + this.id = void 0, this.name = void 0, this._state = void 0, r2.baseConstructor.apply(this, arguments); + } + i2(45214).extend(r2, "Language"), Object.defineProperties(r2.prototype, { displayName: { get: function() { + return this.name; + }, set: function(e3) { + this.name = e3; + } }, label: { get: function() { + return this.name; + }, set: function(e3) { + this.name = e3; + } }, state: { get: function() { + return this._state; + }, set: function(e3) { + this._state = n2.isString(e3) ? e3.toLowerCase() : e3; + } } }), e2.exports = r2; + }, 68596: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.isScheduler = void 0; + var n2 = i2(10281); + t2.isScheduler = function(e3) { + return e3 && n2.isFunction(e3.schedule); + }; + }, 68608: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(35958)), r2 = i2(30801); + class o extends n2.default { + constructor(e3) { + super(e3); + } + get _actionTypeId() { + return r2.findUsersByIdActionType; + } + get displayTypeName() { + return this._scriptingName; + } + get isArchActionFindUsersById() { + return true; + } + get findResult() { + return this._findResult; + } + } + t2.default = o; + }, 68631: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.default = function(e3, t3) { + t3 || (t3 = e3); + const i3 = o.supportsTTSPlaybackForFlowType(e3, r2.flowTypes.flowTypeInboundCall), n3 = (0, a.default)(e3, t3, r2.flowTypes.flowTypeInboundCall); + n3.variables = [], n3.initialPrompts = i3 ? (0, l.toAudioTtsJson)(c(e3).initialGreetingTTS) : s.emptyAudio; + const m = new p(); + m.name = c(t3).mainMenu, m.prompts = i3 ? (0, l.toAudioTtsJson)(c(e3).mainMenuTTS) : s.emptyAudio; + const g = new _(); + g.name = h.actions.disconnect, g.digit = u.Nine; + const f = new d(); + return f.name = h.actions.disconnect, g.action = f, m.menuChoiceList = [g], n3.flowSequenceItemList = [m], n3.initialSequence = m.id, n3; + }; + const n2 = i2(31635), r2 = i2(96618), o = n2.__importStar(i2(98442)), a = n2.__importDefault(i2(64499)), s = i2(12104), l = i2(46503), u = i2(31178), d = i2(44095), c = i2(21733), p = i2(85160), _ = i2(27359), h = i2(47957); + }, 68657: (e2, t2, i2) => { + const n2 = i2(7401), r2 = i2(14075), { transferUserActionType: o } = i2(30801); + function a() { + Object.defineProperties(this, { _alertOnTransfer: { writable: true }, _allowVoicemail: { writable: true }, _user: { writable: true } }), a.baseConstructor.apply(this, arguments); + } + r2.extend(a, o, true), Object.defineProperties(a.prototype, { pasteReIdOrRename: { value: function(e3) { + a._super.pasteReIdOrRename.apply(this, arguments), this.alertOnTransfer?.pasteReIdOrRename(e3), this.allowVoicemail.pasteReIdOrRename(e3), this.user.pasteReIdOrRename(e3); + } }, pasteResolveOldToNewValues: { value: function(e3) { + a._super.pasteResolveOldToNewValues.apply(this, arguments), this.alertOnTransfer?.pasteResolveOldToNewValues(e3), this.allowVoicemail.pasteResolveOldToNewValues(e3), this.user.pasteResolveOldToNewValues(e3); + } }, alertOnTransfer: { enumerable: true, get: function() { + return this._alertOnTransfer; + }, set: function(e3) { + this._alertOnTransfer = this.reviveItem(e3, n2); + } }, allowVoicemail: { enumerable: true, get: function() { + return this._allowVoicemail; + }, set: function(e3) { + this._allowVoicemail = this.reviveItem(e3, n2); + } }, user: { enumerable: true, get: function() { + return this._user; + }, set: function(e3) { + this._user = this.reviveItem(e3, n2); + } } }), e2.exports = a; + }, 68694: function(e2, t2, i2) { + "use strict"; + var n2 = this && this.__createBinding || (Object.create ? function(e3, t3, i3, n3) { + void 0 === n3 && (n3 = i3); + var r3 = Object.getOwnPropertyDescriptor(t3, i3); + r3 && !("get" in r3 ? !t3.__esModule : r3.writable || r3.configurable) || (r3 = { enumerable: true, get: function() { + return t3[i3]; + } }), Object.defineProperty(e3, n3, r3); + } : function(e3, t3, i3, n3) { + void 0 === n3 && (n3 = i3), e3[n3] = t3[i3]; + }), r2 = this && this.__exportStar || function(e3, t3) { + for (var i3 in e3) "default" === i3 || Object.prototype.hasOwnProperty.call(t3, i3) || n2(t3, e3, i3); + }; + Object.defineProperty(t2, "__esModule", { value: true }), r2(i2(21095), t2), r2(i2(71240), t2), r2(i2(10914), t2), r2(i2(47222), t2), r2(i2(41739), t2), r2(i2(14298), t2), r2(i2(30058), t2), r2(i2(72478), t2); + }, 68710: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.publishReplay = void 0; + var n2 = i2(10381), r2 = i2(18464), o = i2(10281); + t2.publishReplay = function(e3, t3, i3, a) { + i3 && !o.isFunction(i3) && (a = i3); + var s = o.isFunction(i3) ? i3 : void 0; + return function(i4) { + return r2.multicast(new n2.ReplaySubject(e3, t3, a), s)(i4); + }; + }; + }, 68783: (e2, t2, i2) => { + "use strict"; + var n2, r2, o, a, s, l, u, d, c, p, _; + Object.defineProperty(t2, "__esModule", { value: true }); + const h = i2(31635), m = i2(30801), g = h.__importDefault(i2(13002)); + class f extends g.default { + constructor(e3) { + super(e3), n2.set(this, void 0), r2.set(this, void 0), o.set(this, void 0), a.set(this, void 0), s.set(this, void 0), l.set(this, void 0), u.set(this, void 0), d.set(this, void 0), c.set(this, void 0), p.set(this, void 0), _.set(this, void 0), h.__classPrivateFieldSet(this, n2, this.coreFactory.createArchWrapper(e3.currency), "f"), h.__classPrivateFieldSet(this, r2, this.coreFactory.createArchWrapper(e3.countryCode), "f"), h.__classPrivateFieldSet(this, o, this.coreFactory.createArchWrapper(e3.paymentPlatform), "f"), h.__classPrivateFieldSet(this, a, this.coreFactory.createArchWrapper(e3.lineItems), "f"), h.__classPrivateFieldSet(this, s, this.coreFactory.createArchWrapper(e3.shippingOptions), "f"), h.__classPrivateFieldSet(this, l, this.coreFactory.createArchWrapper(e3.totalPrice), "f"), h.__classPrivateFieldSet(this, u, this.coreFactory.createArchWrapper(e3.receivedMessageImage), "f"), h.__classPrivateFieldSet(this, d, this.coreFactory.createArchWrapper(e3.receivedMessageTitle), "f"), h.__classPrivateFieldSet(this, c, this.coreFactory.createArchWrapper(e3.replyMessageTitle), "f"), h.__classPrivateFieldSet(this, p, this.coreFactory.createArchWrapper(e3.requiredContactInformation), "f"), h.__classPrivateFieldSet(this, _, this.coreFactory.createArchWrapper(e3.paymentCompletionTimeout), "f"); + } + get _actionTypeId() { + return m.askForPaymentActionType; + } + get displayTypeName() { + return "ArchActionAskForPayment"; + } + get isArchActionAskForPayment() { + return true; + } + get currency() { + return h.__classPrivateFieldGet(this, n2, "f"); + } + get countryCode() { + return h.__classPrivateFieldGet(this, r2, "f"); + } + get paymentPlatform() { + return h.__classPrivateFieldGet(this, o, "f"); + } + get lineItems() { + return h.__classPrivateFieldGet(this, a, "f"); + } + get shippingOptions() { + return h.__classPrivateFieldGet(this, s, "f"); + } + get totalPrice() { + return h.__classPrivateFieldGet(this, l, "f"); + } + get receivedMessageImage() { + return h.__classPrivateFieldGet(this, u, "f"); + } + get receivedMessageTitle() { + return h.__classPrivateFieldGet(this, d, "f"); + } + get replyMessageTitle() { + return h.__classPrivateFieldGet(this, c, "f"); + } + get requiredContactInformation() { + return h.__classPrivateFieldGet(this, p, "f"); + } + get paymentCompletionTimeout() { + return h.__classPrivateFieldGet(this, _, "f"); + } + } + n2 = /* @__PURE__ */ new WeakMap(), r2 = /* @__PURE__ */ new WeakMap(), o = /* @__PURE__ */ new WeakMap(), a = /* @__PURE__ */ new WeakMap(), s = /* @__PURE__ */ new WeakMap(), l = /* @__PURE__ */ new WeakMap(), u = /* @__PURE__ */ new WeakMap(), d = /* @__PURE__ */ new WeakMap(), c = /* @__PURE__ */ new WeakMap(), p = /* @__PURE__ */ new WeakMap(), _ = /* @__PURE__ */ new WeakMap(), t2.default = f; + }, 68794: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.ActionOutput = void 0; + const n2 = i2(31635), r2 = i2(58214), o = i2(80295), a = i2(80295); + class s extends r2.BranchItem { + constructor(e3) { + super(e3), (0, a.makeUnenumerable)(this, "_nextActionId"), (0, a.makeUnenumerable)(this, "_disabled"), (0, a.makeUnenumerable)(this, "_isDynamicBranch"), (0, a.makeUnenumerable)(this, "_unreachable"), (0, a.makeUnenumerable)(this, "_outOfService"); + } + get nextActionId() { + return this._nextActionId; + } + set nextActionId(e3) { + this._nextActionId = e3; + } + get disabled() { + return this._disabled; + } + set disabled(e3) { + this._disabled = e3; + } + get isDynamicBranch() { + return this._isDynamicBranch; + } + set isDynamicBranch(e3) { + this._isDynamicBranch = e3; + } + get unreachable() { + return this._unreachable; + } + set unreachable(e3) { + this._unreachable = e3; + } + get outOfService() { + return this._outOfService; + } + set outOfService(e3) { + this._outOfService = e3; + } + pasteResolveOldToNewValues(e3) { + super.pasteResolveOldToNewValues(e3), this.nextActionId = e3.pasteResolveOldIdToNewId(this.nextActionId); + } + pasteReIdOrRename(e3) { + super.pasteReIdOrRename(e3); + } + } + t2.ActionOutput = s, n2.__decorate([(0, o.enumerable)(true), n2.__metadata("design:type", String), n2.__metadata("design:paramtypes", [String])], s.prototype, "nextActionId", null), n2.__decorate([(0, o.enumerable)(true), n2.__metadata("design:type", Boolean), n2.__metadata("design:paramtypes", [Boolean])], s.prototype, "disabled", null), n2.__decorate([(0, o.enumerable)(true), n2.__metadata("design:type", Boolean), n2.__metadata("design:paramtypes", [Boolean])], s.prototype, "isDynamicBranch", null), n2.__decorate([(0, o.enumerable)(true), n2.__metadata("design:type", Boolean), n2.__metadata("design:paramtypes", [Boolean])], s.prototype, "unreachable", null), n2.__decorate([(0, o.enumerable)(true), n2.__metadata("design:type", Boolean), n2.__metadata("design:paramtypes", [Boolean])], s.prototype, "outOfService", null); + }, 68823: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.FormPageComponentViewModel = void 0; + const n2 = i2(43212); + class r2 extends n2.BaseConfigurationListViewModel { + constructor(e3) { + super(e3); + } + get className() { + return "FormPageComponentViewModel"; + } + get formComponentType() { + return this._model.formComponentType; + } + get listPicker() { + return this._model.listPicker; + } + get datePicker() { + return this._model.datePicker; + } + get wheelPicker() { + return this._model.wheelPicker; + } + get input() { + return this._model.input; + } + } + t2.FormPageComponentViewModel = r2; + }, 68899: (e2, t2, i2) => { + const n2 = i2(57141); + e2.exports = { archExpressionBuilders: n2.one.one, archExpressionNoConfigError: n2.one.one, archFuncToAudioTTSWithLang: n2.one.one, archPhoneNumberPhase2: n2.one.one, archRenumber: n2.one.one, archShortcuts: n2.one.one }; + }, 69014: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = i2(18638), o = n2.__importDefault(i2(37873)); + class a extends o.default { + constructor(e3) { + super(e3); + const t3 = this._infoParmCtor("coreDivisionViewModel"); + this._checkItem(t3, !e3.isDivisionViewModel, "the specified view model is not a core division view model"), this._checkItem(t3, !e3.id, "the specified core division view model does not have an id specified"), this._divisionViewModel = e3; + } + get canAddFlow() { + return r2.permissionServiceHelper.canAddFlowToDivision(this._divisionViewModel); + } + get displayTypeName() { + return "ArchDivision"; + } + get isArchDivision() { + return true; + } + get isHomeDivision() { + return this._getCoreViewModel().isHomeDivision; + } + get logStr() { + if (!this._divisionViewModel) return this.logStrTypeOnly; + const e3 = []; + return this._appendLogStrId(e3, this.id), this._appendLogStrName(e3, this.name), this._appendLogStrIsHome(e3, this.isHomeDivision), this._appendLogStrType(e3, this.displayTypeName), this._createLogStrFromParts(e3); + } + get name() { + return this._getCoreViewModel().name; + } + } + t2.default = a; + }, 69038: (e2, t2, i2) => { + "use strict"; + const n2 = i2(31635), r2 = i2(12179), o = i2(12457), a = i2(78513), s = i2(24235), l = n2.__importStar(i2(58380)), u = n2.__importDefault(i2(97891)), d = n2.__importDefault(i2(5730)), c = i2(80428), p = i2(96946), _ = i2(77450), h = i2(47957); + class m extends d.default { + constructor(e3, t3) { + super(e3.parentFlow, e3), this._loadModel(t3); + } + get playbackMode() { + return this.model.playbackMode; + } + set playbackMode(e3) { + this.model.playbackMode = e3, this.generateAudioExpression(); + } + get amObjectEventSink() { + return true; + } + getDetails() { + const e3 = [h.positionInQueue.positionInQueue], t3 = [this.positionInQueue.text]; + return this.playbackMode && this.playbackMode === p.ahead ? (e3.push(h.positionInQueue.playbackMode), t3.push(h.positionInQueue.ahead)) : this.playbackMode && this.playbackMode === p.number ? (e3.push(h.positionInQueue.playbackMode), t3.push(h.positionInQueue.number)) : this.playbackMode && this.playbackMode === p.ordinal && (e3.push(h.positionInQueue.playbackMode), t3.push(h.positionInQueue.ordinal)), new o.ActionDetails(e3, t3); + } + initialize() { + super.initialize(), l.registerEventSinkForEventEmitter(this.parentFlow.languages.id, this); + } + setNewInstanceDefaults() { + super.setNewInstanceDefaults(...arguments), this.playbackMode = p.number, this.parentFlow.isInQueueCallFlow && this.positionInQueue.setText("Call.PositionInQueue", true), this.generateAudioExpression(); + } + static get managedProperties() { + return [{ label: h.positionInQueue.positionInQueue, options: a.ExpressionTypeIntegerOptions.create((e3) => e3.setAllowModeExpression(true).setAllowModeLiteral(false).setUsedAsReplacementValueInOtherExpressions(true)), property: "positionInQueue", type: c.expressionTypeNames.integer }, { audio: true, generatedPromptsDetails: { dependentProperties: ["positionInQueue"], sequenceDefinition: _, getPlaybackMode: function() { + return this.playbackMode.name.toLocaleLowerCase(); + }, getReplacementValues: function() { + const e3 = {}; + return e3[_.parts.replacementId] = this.positionInQueue.getEmbeddableExpressionText(), e3; + } }, options: s.AudioViewModelOptions.create((e3) => e3.setIninTestingField("playbackModeAudio").setLabel(h.positionInQueue.playbackMode)), yamlOptions: m.createYamlOptions("playbackMode", (e3) => e3.setSkipProperty(true)), property: "prompts" }, { property: "playbackMode", isJustForFlowYaml: true }]; + } + objEvent_supportedLanguagesChanged() { + this.generateAudioExpression(); + } + } + m.info = u.default.createActionInfo({ actionClass: m, canBeInTask: true, helpTopic: r2.helpTopics.actions.playPositionInQueue, modelClass: i2(38752), name: h.actions.playPositionInQueue, scriptingName: "ArchActionPlayPositionInQueue" }), t2.A = m; + }, 69078: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.knowledgeBaseDocumentManager = t2.KnowledgeBaseDocumentManager = void 0; + const n2 = i2(31635), r2 = n2.__importDefault(i2(92140)), o = n2.__importStar(i2(36781)), a = n2.__importStar(i2(11097)), s = n2.__importStar(i2(24032)), l = n2.__importDefault(i2(47532)), u = i2(81801), d = i2(96583), c = i2(47957), p = i2(27862), _ = i2(66848); + class h extends l.default { + get requiredAuth() { + return u.externalAuthorizations.authStrings.knowledgeBaseDocumentView; + } + get dependencyType() { + return p.KnowledgeBaseDocument; + } + constructor() { + super(), this.topic = s.getTopic("KnowledgeBaseDocumentManager"), this.apiCallList = a.getKnowledgeBaseDocuments, this.apiCallSingle = a.getKnowledgeBaseDocument, this._rawServerCache = {}, this.className = "KnowledgeBaseDocumentManager", this.defaultPageSize = 100, this.dependencyContext = c.knowledgeSettings.knowledgeBaseDocument, this.securityError = true, this.suppressSearch = true, this.uiMetadataSectionName = "knowledgeBaseDocuments", this.actionsForUsageSearch = [], this.actionPropertyForUsageSearch = "", this.hasDependencyTrackingId = true, this._initialize(), o.serviceListen(o.cleanUpFlow, () => this.resetState()); + } + addItem(e3, t3, i3) { + if (e3.id.includes("/")) { + const t4 = r2.default.splitOn(e3.id, "/"); + e3.id = t4[1], e3.knowledgeBase || (e3.knowledgeBase = new _(), e3.knowledgeBase.id = t4[0]); + } + return super.addItem(e3, t3, i3); + } + _createItemViewModel(e3) { + return new d.KnowledgeBaseDocumentViewModel(e3); + } + } + t2.KnowledgeBaseDocumentManager = h, t2.knowledgeBaseDocumentManager = new h(); + }, 69091: (e2, t2, i2) => { + "use strict"; + const n2 = i2(31635), r2 = i2(59799), o = i2(72475), a = i2(12179), s = n2.__importDefault(i2(97891)), l = i2(28803), u = i2(5426), d = n2.__importDefault(i2(52910)), c = i2(47957); + class p extends d.default { + constructor(e3, t3) { + super(e3, t3, o.secureActionManager), this.allowSecure = true, this.resources = { actionLabel: c.secureAction.secureAction, actionNotFound: c.secureAction.actionNotFound, noActionsAvailable: c.secureAction.noActionsAvailable, savedVersionOfAction: c.secureAction.savedVersionOfAction, selectAction: c.dependencies.selectSecureAction }; + } + get isSecureAction() { + return true; + } + static get managedProperties() { + return [{ property: "actionSetting", createDetails: l.NetworkBasedActionProperty.createCreateDetails("actionId", "actionName", o.secureActionManager, c.secureAction.mustSelectAction, c.secureAction.actionNotFound, "categorySetting"), yamlOptions: p.createYamlOptions("actionSetting", (e3) => e3.setSkipProperty(true)) }, { allowSecure: true, dataList: true, property: "inputs" }, { createDetails: u.ServerActionSchemaCategoryReference.createCreateDetails(r2.secureActionCategoryManager), property: "categorySetting", yamlOptions: p.createYamlOptions("categorySetting", (e3) => e3.setSkipProperty(true)) }, { property: "errorBindings", dataList: true, isOutput: true, yamlOptions: p.createYamlOptions("errorBindings", (e3) => e3.setPropertyName("failureOutputs")) }]; + } + postProcessYamlConfig(e3, t3, i3) { + this.commonServerActionPostProcessYamlConfig(e3, t3, i3); + } + get yamlActionSectionName() { + return "secureDataAction"; + } + } + p.info = s.default.createActionInfo({ actionClass: p, canBeInTask: true, helpTopic: a.helpTopics.actions.secure, modelClass: i2(95774), name: c.actions.secureAction, scriptingName: "ArchActionCallDataSecure", actionIsAlwaysSecure: true }), t2.A = p; + }, 69109: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(81574)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "messageStickerInfo"; + } + get id() { + } + get url() { + } + get displayTypeName() { + return "ArchValueMessageStickerInfo"; + } + get isArchValueMessageStickerInfo() { + return true; + } + } + t2.default = r2; + }, 69149: (e2, t2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.builderPartIds = void 0, t2.builderPartIds = { agentScorePair: { makeAgentScorePair: "__BUILDER_PART_MAKE_AGENT_SCORE_PAIR__" }, audio: { container: { language: "__BUILDER_PART_AUDIO_CONTAINER_LANGUAGE__" }, data: "__BUILDER_PART_AUDIO_DATA__", expression: "__BUILDER_PART_AUDIO_EXPRESSION__", findUserWithFallback: "__BUILDER_PART_AUDIO_USER_WITH_FALLBACK__", findSystemWithFallback: "__BUILDER_PART_AUDIO_SYSTEM_WITH_FALLBACK__", prompt: "__BUILDER_PART_AUDIO_PROMPT__", text: "__BUILDER_PART_AUDIO_TEXT__" }, boolean: { checkDialingCode: "__BUILDER_PART_BOOLEAN_CHECK_DIALING_CODE__", container: { language: "__BUILDER_PART_BOOLEAN_CONTAINER_LANGUAGE__", languageAndOutputMode: "__BUILDER_PART_BOOLEAN_CONTAINER_LANGUAGE_AND_OUTPUT_MODE__", outputMode: "__BUILDER_PART_BOOLEAN_CONTAINER_OUTPUT_MODE__" }, expression: "__BUILDER_PART_BOOLEAN_EXPRESSION__", literal: "__BUILDER_PART_BOOLEAN_LITERAL__" }, communication: { container: { language: "__BUILDER_PART_COMMUNICATION_CONTAINER_LANGUAGE__", languageAndOutputMode: "__BUILDER_PART_COMMUNICATION_CONTAINER_LANGUAGE_AND_OUTPUT_MODE__", outputMode: "__BUILDER_PART_COMMUNICATION_CONTAINER_OUTPUT_MODE__" }, blank: "__BUILDER_PART_COMMUNICATION_BLANK__", data: "__BUILDER_PART_COMMUNICATION_DATA__", digitalAudioUrl: "__BUILDER_PART_COMMUNICATION_DIGITAL_AUDIO_URL__", expression: "__BUILDER_PART_COMMUNICATION_EXPRESSION__", fileUrl: "__BUILDER_PART_COMMUNICATION_FILE_URL__", imageUrl: "__BUILDER_PART_COMMUNICATION_IMAGE_URL__", markdown: "__BUILDER_PART_COMMUNICATION_MARKDOWN__", prompt: "__BUILDER_PART_COMMUNICATION_PROMPT__", text: "__BUILDER_PART_COMMUNICATION_TEXT__", videoUrl: "__BUILDER_PART_COMMUNICATION_VIDEO_URL__" }, dateTime: { container: { language: "__BUILDER_PART_DATE_TIME_CONTAINER_LANGUAGE__" }, dateTimeInDateRange: "__BUILDER_PART_DATE_TIME_IS_IN_DATE_RANGE__", dateTimeInTimeRange: "__BUILDER_PART_DATE_TIME_IS_IN_TIME_RANGE__", dateTimeIsWeekday: "__BUILDER_PART_DATE_TIME_IS_WEEKDAY__", dateTimeIsWeekend: "__BUILDER_PART_DATE_TIME_IS_WEEKEND__", firstDayOfNextMonth: "__BUILDER_PART_FIRST_DAY_OF_NEXT_MONTH__", lastDayOfMonth: "__BUILDER_PART_LAST_DAY_OF_MONTH__", nextDayOfWeek: "__BUILDER_PART_NEXT_DAY_OF_WEEK__" }, duration: { container: { language: "__BUILDER_PART_DURATION_CONTAINER_LANGUAGE__", languageAndOutputMode: "__BUILDER_PART_DURATION_CONTAINER_LANGUAGE_AND_OUTPUT_MODE__", outputMode: "__BUILDER_PART_DURATION_CONTAINER_OUTPUT_MODE__" }, literal: "__BUILDER_PART_DURATION_LITERAL__" }, email: { emailBodyContains: "__BUILDER_PART_EMAIL_BODY_CONTAINS__", emailBodyOrSubjectContains: "__BUILDER_PART_EMAIL_SUBJECT_OR_BODY_CONTAINS__", emailFromDomainPartContains: "__BUILDER_PART_EMAIL_FROM_DOMAIN_PART_CONTAINS__", emailFromLocalPartContains: "__BUILDER_PART_EMAIL_FROM_LOCAL_PART_CONTAINS__", emailSubjectContains: "__BUILDER_PART_EMAIL_SUBJECT_CONTAINS__" }, image: { imageUrl: "__BUILDER_PART_IMAGE_IMAGE_URL__", expression: "__BUILDER_PART_IMAGE_EXPRESSION__", literal: "__BUILDER_PART_IMAGE_LITERAL_TO_FIND_BY_NAME__", container: { language: "__BUILDER_PART_IMAGE_CONTAINER_LANGUAGE__" } }, integer: { container: { language: "__BUILDER_PART_INTEGER_CONTAINER_LANGUAGE__", languageAndOutputMode: "__BUILDER_PART_INTEGER_CONTAINER_LANGUAGE_AND_OUTPUT_MODE__", outputMode: "__BUILDER_PART_INTEGER_CONTAINER_OUTPUT_MODE__" }, literal: "__BUILDER_PART_INTEGER_LITERAL__" }, prompt: { findUserWithFallback: "__BUILDER_PART_PROMPT_USER_WITH_FALLBACK__", findSystemWithFallback: "__BUILDER_PART_PROMPT_SYSTEM_WITH_FALLBACK__" }, string: { container: { language: "__BUILDER_PART_STRING_CONTAINER_LANGUAGE__", languageAndOutputMode: "__BUILDER_PART_STRING_CONTAINER_LANGUAGE_AND_OUTPUT_MODE__", outputMode: "__BUILDER_PART_STRING_CONTAINER_OUTPUT_MODE__" }, contains: "__BUILDER_PART_STRING_CONTAINS__", data: "__BUILDER_PART_STRING_DATA__", deflectionURL: "__BUILDER_PART_STRING_DEFLECTION_URL__", endsWith: "__BUILDER_PART_STRING_ENDS_WITH__", expression: "__BUILDER_PART_STRING_EXPRESSION__", lastFour: "__BUILDER_PART_LAST_4__", markdown: "__BUILDER_PART_STRING_MARKDOWN__", prompt: "__BUILDER_PART_STRING_PROMPT__", startsWith: "__BUILDER_PART_STRING_STARTS_WITH__", text: "__BUILDER_PART_STRING_TEXT__" }, video: { videoUrl: "__BUILDER_PART_VIDEO_VIDEO_URL__" } }; + }, 69212: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.containerVisualItemClassifications = t2.singletonVisualizationItemClassifications = t2.visualizationItemClassificationDisplayValueMap = t2.VisualizationItemClassification = void 0, t2.supportsInitializeDesignTime = function(e3) { + return e3.supportsInitializeDesignTime; + }; + const n2 = i2(31635).__importStar(i2(69453)), r2 = i2(47957); + var o; + !(function(e3) { + e3.archAction = "archAction", e3.archFlow = "archFlow", e3.archCommonModule = "archCommonModule", e3.archMenu = "archMenu", e3.archState = "archState", e3.archTask = "archTask", e3.botTurn = "botTurn", e3.data = "data", e3.event = "event", e3.settings = "settings"; + })(o || (t2.VisualizationItemClassification = o = {})), t2.visualizationItemClassificationDisplayValueMap = { [o.archAction]: r2.customNodes.actions, [o.archFlow]: r2.sectionFlows, [o.archCommonModule]: r2.sectionCommonModuleFlows, [o.archMenu]: r2.customNodes.menus, [o.archState]: r2.states.states, [o.archTask]: r2.generic.tasks, [o.botTurn]: n2.executionData.botTurn, [o.event]: r2.generic.branches.event, [o.settings]: r2.customNodes.settings, [o.data]: r2.actions.data }, t2.singletonVisualizationItemClassifications = [o.archAction, o.botTurn, o.event, o.data, o.settings], t2.containerVisualItemClassifications = [o.archCommonModule, o.archMenu, o.archState, o.archTask, o.settings]; + }, 69215: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = i2(96618), o = n2.__importDefault(i2(92140)), a = i2(12179), s = i2(99772), l = n2.__importDefault(i2(96727)), u = i2(69149), d = n2.__importDefault(i2(5532)), c = i2(22599).default, p = c.create().addFuncCall("If").addFuncCall("AreEqual").addTokenBooleanTrue().addFuncParameterSeparator().addTokenReplacement(0).addFuncParameterSeparator().addTokenReplacement(1).addFuncCallEnd().addFuncParameterSeparator().addFuncCallParmGenerationBucket("to_multimodal_generation", true).verifySprintfStringAndInitialize("If(AreEqual(true, %1$s, %2$s), "), _ = c.create().addFuncCall("ToMultimodalCommunication").addFuncCallParmGenerationBucket("specific_output_mode_generation", true).addFuncCallEnd().verifySprintfStringAndInitialize("ToMultimodalCommunication()"); + class h extends s.BaseBuilderWithBuilderPartsViewModel { + constructor({ owningExpression: e3, model: t3, reId: i3 }) { + super(e3, t3, void 0, i3, true); + } + get className() { + return "CommunicationBuilderWithBuilderPartsViewModel"; + } + get isCommunicationBuilderWithBuilderPartsViewModel() { + return true; + } + get helpTopic() { + return a.helpTopics.builders.communication; + } + _processLanguagesChanged() { + super._processLanguagesChanged(); + } + _buildExpressionGenerationFromManager(e3) { + const t3 = e3.getIndividualPartGenerations(), i3 = this.builderDef.generators.containerPartsGenerator.createGeneration(); + return o.default.each(t3, (e4) => { + i3.addGenerationToBucket(e4); + }), i3; + } + addOrSetStringLiteralBuilderPart(e3, t3) { + const i3 = this.parentFlow.type === r2.flowTypes.flowTypeDigitalBot ? u.builderPartIds.communication.markdown : u.builderPartIds.communication.text; + let n3, a2; + if (t3 ? (n3 = this.getLanguageContainerPart(t3, true), (null == n3 ? void 0 : n3.hasParts) && (a2 = n3.parts[0])) : (this.mainSequenceEnabled = true, n3 = this, n3.builderPartsManager.hasParts && (a2 = n3.builderParts[0])), !a2) { + const e4 = d.default.getBuilderPartDefById(i3); + a2 = n3.createAndAddPartFromBuilderPartDef(e4); + } + const s2 = a2.builderPartExpressions[0]; + s2 && s2.setAsLiteral(e3), o.default.isFunction(a2.setMarkdownTextImmediate) && a2.setMarkdownTextImmediate(e3); + } + builderPartContainerAdded(e3) { + super.builderPartContainerAdded(e3), this.sortContainerParts(); + } + sortContainerParts() { + } + _buildToMultimodalCommunicationGeneration(e3, t3, i3, n3) { + let r3; + if (r3 = e3 === t3 ? this._buildExpressionGenerationFromManager(e3) : _.createGeneration().addGenerationToBucket(this._buildExpressionGenerationFromManager(e3)).addGenerationToBucket(this._buildExpressionGenerationFromManager(t3)), !i3) return r3; + const o2 = p.createGeneration(); + return n3 && o2.setReplacementTokens([n3, `"${i3}"`]), o2.addGenerationToBucket(r3), o2; + } + _getBuilderPartsManagerForLangOutputMode(e3, t3, i3, n3) { + let r3; + if (i3) { + if (r3 = i3[n3], r3) return r3.builderPartsManager; + if (r3 = i3.__none__, r3) return r3.builderPartsManager; + } + return t3 && (r3 = t3[n3], r3) ? r3.builderPartsManager : this.builderPartsManager; + } + _buildExpressionGeneration() { + if (0 === this.builderPartContainers.length) return super._buildExpressionGeneration(); + const e3 = this.builderContainerPartsManager.getLanguageTagOutputModeContainer(), t3 = e3.__none__, i3 = l.default.genericBuilderWithPartsGenerator.createGeneration(); + let n3 = ""; + const r3 = this.parentFlow.variableGroup.getVariable("__INTERACTION_LANGUAGE__"); + return o.default.each(e3, (o2, a2) => { + "__none__" !== a2 && (i3.addGenerationToBucket(this._buildToMultimodalCommunicationGeneration(this._getBuilderPartsManagerForLangOutputMode(e3, t3, o2, "voice"), this._getBuilderPartsManagerForLangOutputMode(e3, t3, o2, "text"), a2, r3.name)), n3 += ")"); + }), i3.addGenerationToBucket(this._buildToMultimodalCommunicationGeneration(this._getBuilderPartsManagerForLangOutputMode(e3, t3, void 0, "voice"), this._getBuilderPartsManagerForLangOutputMode(e3, t3, void 0, "text"))), i3.setReplacementTokens(n3), i3; + } + } + t2.default = h; + }, 69453: (e2, t2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.exportFlowModal = t2.stringFacets = t2.emailSend = t2.errorHandling = t2.exportYaml = t2.customDataTypes = t2.callGuide = t2.deflect = t2.codeEditor = t2.jsonSchemaProcessing = t2.debug = t2.executionData = t2.flowVisualizationModal = t2.replaySearchHistory = t2.makeTestCall = t2.replayFlow = t2.previewFlow = t2.structuredParticipantData = t2.externalContact = t2.executionHistory = t2.architect = void 0, t2.architect = { architectFlowLabel: "*Architect Flow", requiredPropertyMissing: "Missing required property '%1$s'.", userDefinedLabel: "*User Defined" }, t2.executionHistory = { generateQuery: "DEBUG: Show Query" }, t2.externalContact = { label: "*External Contact" }, t2.structuredParticipantData = { label: "*Structured Participant Data" }, t2.previewFlow = { botSessionIdLabel: "Bot Session ID", collaborateDial: "Phone Number", conversationIdLabel: "Conversation ID", dialString: "Collaborate Dial String", flowVersionDebug: "Debug Version", flowVersionShort: "Ver. %1$s", flowVersionUnknown: "Ver. Unknown", launchIdLabel: "Launch ID", workitemIdLabel: "Workitem ID", makeTestCallLabel: "Make Test Call", makeTestCallLabelWithVersion: "Make Test Call (Ver. %1$s)", makeTestCallTitle: "Make a test call to the last published call flow. Before making a test call, make sure that you have Collaborate open and have enabled the placing calls with another app setting so Architect can place a test call.", pressShiftToReset: "Press Shift when opening to reset payload.", flowInstanceIdLabel: "Flow Instance ID", flowNameLabel: "Flow Name", flowIdLabel: "Flow ID", flowDebugPublishedVersionLabel: "Debug Published Version", flowPublishedVersionLabel: "Published Version", flowVersionLabel: "Flow Version", flowCharacteristics: { callable: { callInProgressLabel: "Call in Progress", previewLabelDebug: "Make Debug Test Call", previewLabelPublished: "Make Test Call", previewDescriptionDebug: "Make a test call to the latest debug publish of this flow.", previewDescriptionPublished: "Make a test call to the latest published version of this flow." }, digitalBot: { botSessionInProgress: "Bot Session in Progress", previewLabelDebug: "Preview Debug Published Bot", previewLabelPublished: "Preview Bot", previewDescriptionDebug: "Preview the latest debug publish of this digital bot flow.", previewDescriptionPublished: "Preview the latest published version of this digital bot flow.", launchPayloadTitle: "Digital Bot Preview Input Data", launchPayloadSubTitle: "Enter the digital bot flow input data below." }, workflow: { launchInProgressLabel: "Test Launch in Progress", previewLabelPublished: "Test Launch", previewDescriptionPublished: "Launch the latest published version of this workflow.", launchPayloadTitle: "Workflow Input Data", launchPayloadSubTitle: "Enter the workflow input data below." }, workitem: { launchInProgressLabel: "Workitem in Progress", previewLabelPublished: "Preview Workitem", previewDescriptionPublished: "Preview the latest published version of this workitem flow.", launchPayloadTitle: "Workitem Input Data", launchPayloadSubTitle: "Enter the workitem input data below.", firstTimeMessage: "When performing a preview of a workitem, remember:
\n 1. The latest published version of the workitem flow is run.
\n 2. You need to have an onCreate rule specified on the worktype.
\n 3. You need to ensure that flow rules are enabled and that there is an onCreate rule specified on the worktype for preview to work." }, default: { previewLabelPublished: "Test the Flow", previewDescriptionPublished: "Test the currently published version of the flow.", previewLabelDebug: "Test the Flow", previewDescriptionDebug: "Test the currently debug published version of the flow." } }, payloadModalTitle: "Input Data", payloadModalSubTitle: "Enter the input data to supply for the launch below.", flowInformationSectionLabel: "Flow Information", unableToStartTitle: "Preview Failed", unableToStartMessage: "Unable to start the flow preview.", unableToBeginReplayTitle: "Replay Failed", unableToBeginReplayMessage: "Unable to open the replay.", voiceSurveyLaunchPayloadTitle: "Voice Survey Invocation Data", voiceSurveyLaunchPayloadSubTitle: "Enter the voice survey invocation input data below." }, t2.replayFlow = { cancelMessage: "Do you wish to stop waiting for the flow to complete?", flowReplayType: { default: { replayLabelLastTest: "Replay Last Test" } }, itemCompute: "Item Compute", itemDuration: "Item Duration", itemNetworkCalls: "Item Network Calls", itemRuntime: "Item Runtime", overallCompute: "Overall Compute", overallDuration: "Overall Duration", overallNetworkCalls: "Overall Network Calls", overallRuntime: "Overall Runtime", replayLabelUnavailable: "Replay Unavailable", replayLabelWaiting: "Replay Waiting...", replayPreview: "Replay Preview", replayTitleLastTest: "Replay the last test flow execution in the Replayer.", replayInformation: "Last test flow information:", replayTitleUnavailableCallable: "Replay will be available after the flow launched for the test call completes.", replayTitleUnavailableDefault: "Replay will be available after the flow launched for the test completes.", replayTitleUnavailableDigitalBot: "Replay will be available after the flow launched for the bot session completes.", replayTitleUnavailableLaunchable: "Replay will be available after the flow launched for the test launch completes.", replayWaiting: "Replay waiting on:", secondsSuffix: "s", showVisualizationModal: "Show the Visualization Modal" }, t2.makeTestCall = { makeTestCallLabel: "Make Test Call", makeTestCallTitle: "Make a test call to the last published flow" }, t2.replaySearchHistory = { searchActionHistory: "Find flows that ran this action", searchActionPathHistory: "Find flows that took this output", searchMenuHistory: "Find flows that ran this Menu", searchTaskHistory: "Find flows that ran this Task", searchBotStateHistory: "Find flows that ran this Bot", searchStateHistory: "Find flows that ran this State" }, t2.flowVisualizationModal = { compute: "Compute", containers: "Containers", duration: "Duration (ms)", itemCompute: "Item Compute", itemDurationMs: "Item Duration (ms)", itemNetworkCalls: "Item Network Calls", menuChoice: "Menu Choice", networkCalls: "Network Calls", other: "Other", overallCompute: "Overall Compute", overallDurationMs: "Overall Duration (ms)", overallNetworkCalls: "Overall Network Calls", percentOfFlow: "% of Flow", size: "Flow Object Size", title: "Flow Size Visualization", titleReplay: "Flow Replay Visualization", visualization: "Visualization", visualizationBarChart: "Bar Chart", visualizationCirclePackChart: "Circle Pack Chart", visualizationList: "List", visualizationStarburstChart: "Starburst Chart", parentColumn: "Container", filterPlaceholder: "Filter...", weightProperty: "Weight Property" }, t2.executionData = { bot: "Bot", botTurn: "Bot Turn", dtmf: "dtmf", fromParticipant: "From Participant", noCommunicationData: "No communication data", prompt: "prompt", toParticipant: "To Participant" }, t2.debug = { darkMode: "(DEBUG) Dark Mode", actionSupport: "(DEBUG) Action Support", flowDefinitions: "(DEBUG) Flow Definitions" }, t2.jsonSchemaProcessing = { noSchemaToProcess: "There is no schema to process.", referencedSchemaHasNoProperties: "The referenced schema contains no properties.", schemaHasNoName: "The schema has no naming information such as a title property from which Architect can generate a data type name.", schemaReferenceNotFound: "The schema refers to a definition named '%1$s' that does not exist.", schemaTypeMapsToUnavailableDataType: "'%1$s' ( type '%2$s', isCollection: %3$s ) maps to the Architect data type '%4$s' which is not available for the flow type '$5%s'.", schemasNotComparable: "The schemas could not be compared.", schemaUnableToDetermineRootType: "Unable to determine the root data type from the schema.", schemaUnableToMapPropertyToType: "Unable to map '%1$s' ( type '%2$s', isCollection: %3$s ) to an Architect data type.", schemaUnableToProcess: "Unable to process the schema.", schemaUnsupportedDssSchemaVersion: "The schema version %1$s is not supported by this version of Architect." }, t2.codeEditor = { yamlEditor: "YAML Editor", parseErrors: { generic: { invalidIndent: "Invalid indent.", invalidIndentPos: "Indent position %1$s.", invalidIndentPosWithExpected: "Indent position is %1$s, expected %2$s." } } }, t2.deflect = { deflect: "Deflect", sms: "SMS", url: "Deflection URL", deflectToLabel: "Deflect To", deflectToDescription: "This specifies the type of message that should be sent.", messageLabel: "Message", messageDescription: "The contents to use for the deflect. For example, if the deflect target is 'SMS' this will be the message that is sent.", noMessage: "No message", smsFromLabel: "SMS From", smsFromDescription: "The phone number to use for sending the message.", smsToLabel: "SMS To", smsToDescription: "The phone number to use for receiving the message. Defaults to the incoming phone number.", selectSmsPhoneNumber: "Select a SMS Phone Number" }, t2.callGuide = { selectedGuideNotPublished: "The selected guide is not published." }, t2.customDataTypes = { deleteCustomDataTypeTooltip: "Remove custom data type from flow", customTypesNodeTitle: "Custom Types (debug)", showBuiltinCustomTypes: "Show Built-in Custom Types" }, t2.exportYaml = { exportYamlWithTrackingIds: { text: "With tracking IDs", tooltip: "Export flow configuration in YAML format with tracking IDs included" }, exportYamlWithoutTrackingIds: { text: "Without tracking IDs", tooltip: "Export flow configuration in YAML format without including tracking IDs" } }, t2.errorHandling = { transferToQueueDigitalAutomateDescription: "If the queue to transfer to is invalid, the flow does not perform the transfer and will fall back to End State handling." }, t2.emailSend = { settings: { defaultAbortSendMessageDescription: "Fallback abort message used when the abort message configured on an '%1$s' action or error event handler evaluates to a NOT_SET or empty String value." }, variables: { agentUiLanguageDescription: "The Architect language tag for the sender's Genesys Cloud user interface language." } }, t2.stringFacets = { truncationBehavior: { literalStringLongerThanOneCharacterNotAllowed: "Literal string values longer than 1 character will fail validation.", literalStringLongerThanMaxLengthNotAllowed: "Literal string values longer than %1$s characters will fail validation.", dynamicStringTruncatedToOneCharacterAtRuntime: "Dynamic string values generated from an expression or returned to the flow in an output that are over 1 character in length will be truncated to 1 character.", dynamicStringTruncatedToMaxLengthAtRuntime: "Dynamic string values generated from an expression or returned to the flow in an output that are over %1$s characters in length will be truncated to %1$s characters." } }, t2.exportFlowModal = { exportFlowModalUserAction: { label: "Export flow", shortLabel: "Export", tooltip: "Opens the export flow modal to choose file format and export options" }, title: "Export flow", description: "Export the selected flow\u2019s configuration file for download. When you confirm, Architect will generate the file for download, allowing you to store, share, or reuse the flow outside of Architect.", includeTrackingIdsLabel: "Include tracking ID details", includeTrackingIdsTooltip: "When enabled, tracking IDs are included in the exported YAML file.", yaml: "YAML", format: "Format" }; + }, 69517: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.UnsubscriptionError = void 0; + var n2 = i2(9619); + t2.UnsubscriptionError = n2.createErrorClass(function(e3) { + return function(t3) { + e3(this), this.message = t3 ? t3.length + " errors occurred during unsubscription:\n" + t3.map(function(e4, t4) { + return t4 + 1 + ") " + e4.toString(); + }).join("\n ") : "", this.name = "UnsubscriptionError", this.errors = t3; + }; + }); + }, 69549: (e2) => { + e2.exports = { askCommon: { invalidInputReceived: "Das ist ung\xFCltig.", noInputReceived: "Ich habe keine Eingabe empfangen." }, askForBoolean: { noInput: 'Sagen Sie "ja", wenn Sie fortfahren m\xF6chten, oder "nein", wenn nicht.', noMatch: 'Sagen Sie "Ja" oder "Nein". M\xF6chten Sie fortfahren?', question: "M\xF6chten Sie fortfahren?", noInputDigitalBot: 'Geben Sie "Ja" ein, wenn Sie fortfahren m\xF6chten, oder "Nein", wenn Sie nicht fortfahren m\xF6chten.', noMatchDigitalBot: 'Geben Sie "Ja" oder "Nein" ein. M\xF6chten Sie fortfahren?' }, askForIntent: { noInput: 'Beschreiben Sie Ihre Abfrage mit einem kurzen Satz, z. B. "Meinen Kontostand \xFCberpr\xFCfen".', noMatch: "Sagen Sie mir bitte erneut, was Sie tun m\xF6chten.", question: "Was m\xF6chten Sie tun?", noInputDigitalBot: 'Beschreiben Sie Ihre Abfrage in einem kurzen Satz. Beispiel: "Kontostand pr\xFCfen"' }, askForSlot: { askFor: "Um %1$s bitten", noInput: "Nennen oder geben Sie bitte Folgendes ein: (Slot-Name hier einf\xFCgen).", noInputWithSlot: "Nennen oder geben Sie bitte Folgendes ein: %1$s.", noMatch: "Geben Sie mir bitte Folgendes erneut: (Slot-Name hier einf\xFCgen).", noMatchWithSlot: "Geben Sie mir bitte Folgendes erneut: %1$s.", question: "Wie lautet Folgendes: (Slot-Name hier einf\xFCgen)?", questionWithSlot: "Wie lautet Folgendes: %1$s?", pleaseEnterSlotNameHere: "(Slot-Name hier einf\xFCgen)", noInputDigitalBot: "Geben Sie den (Slot-Namen hier einf\xFCgen) ein.", noInputWithSlotDigitalBot: "Geben Sie den %1$s ein.", continuationPromptWithSlot: "Ich habe bis jetzt {{Slot.%1$s}}, bitte fahren Sie fort." }, askForNextSlot: { noInput: 'Sagen Sie "ja", wenn Sie eine weitere Abfrage haben, oder "nein", um den Anruf zu beenden.', noMatch: 'Sagen Sie "Ja", wenn Sie eine weitere Abfrage haben, oder "Nein", um die Sitzung zu beenden.', question: "Gibt es sonst noch etwas, womit ich Ihnen helfen kann?", noInputDigitalBot: 'Geben Sie "Ja" ein, wenn Sie eine weitere Abfrage haben, oder "Nein", um die Sitzung zu beenden.', noMatchDigitalBot: 'Geben Sie "Ja" ein, wenn Sie eine weitere Abfrage haben, oder "Nein", um die Sitzung zu beenden.' }, askForPayment: { noInputDigitalBot: "Geben Sie Ihre Zahlungsinformationen an, um fortzufahren.", noMatchDigitalBot: "Ich habe Ihre Antwort nicht verstanden. Bitte versuchen Sie es erneut." }, askForAuthentication: { noInputDigitalBot: "Geben Sie Ihre Authentifizierungsinformationen an, um fortzufahren.", noMatchDigitalBot: "Ich habe Ihre Antwort nicht verstanden. Bitte versuchen Sie es erneut." }, askSurveyQuestion: { notApplicable: "Nicht zutreffend", surveyAnswerOptionSequence: "Dr\xFCcken Sie %1$s f\xFCr '%2$s'.", surveyAnswerNotApplicableSequence: "Dr\xFCcken Sie Stern f\xFCr 'Nicht zutreffend'.", surveyAnswerNotApplicableWithQuestionSequence: "%1$s. Dr\xFCcken Sie Stern f\xFCr 'Nicht zutreffend'.", voiceSurveyNoInputText: "Beantworten Sie bitte die Frage.", voiceSurveyNoMatchText: "Ich habe Sie nicht verstanden." }, commonModule: { exitCommonModule: "Gemeinsames Modul schlie\xDFen" }, form: { noInputDigitalBot: "F\xFCllen Sie das Formular aus, um fortzufahren.", noMatchDigitalBot: "F\xFCllen Sie das Formular aus, um fortzufahren." }, messagingTemplate: { noInputDigitalBot: "Bitte w\xE4hlen Sie eine der verf\xFCgbaren Optionen aus.", noMatchDigitalBot: "Bitte w\xE4hlen Sie eine der verf\xFCgbaren Optionen aus." }, knowledgeSettings: { knowledgeAnswerHighlightFlowProgressionDefault: "Weiter", knowledgeAnswerHighlightFullArticleDefault: "Vollst\xE4ndige Artikel anzeigen", knowledgeInitialResponseMulti: "W\xE4hlen Sie bitte eine Zahl aus der folgenden Liste aus, damit ich Ihr Ziel besser verstehe:", knowledgeInitialResponseMultiRetry: "W\xE4hlen Sie bitte eine Zahl, z. B. '1'.\nHier ist erneut die Liste der Optionen:", knowledgeNoMatch: "Keine davon", knowledgeConfirmation: "Hat dies Ihre Frage beantwortet?", knowledgeFollowup: "Ich hoffe, dass ich Ihre Frage beantwortet habe. Sie k\xF6nnen alles fragen, was Sie wissen m\xF6chten." }, noOverlay: { intent: { intentConfirmationStr1: "Ich glaube, Sie m\xF6chten", intentConfirmationStr2: "Ist das richtig?" }, youSaid: { youSaidConfirmationStr1: "Sie sagten", youSaidConfirmationStr2: "Ist das richtig?", youSaidConfirmationStr1DigitalBot: "Sie haben Folgendes eingegeben:" }, noInput: { noInputStr1: "Bitte nennen Sie Folgendes, oder geben Sie Folgendes ein:", noInputStr1DigitalBot: "Bitte eingeben: den" }, noMatch: { noMatchStr1: "Bitte nennen Sie" }, whatIs: { whatIsQuestionStr1: "Was ist", whatIsQuestionStr2: "?" }, iGotContinuation: { iGotContinuationStr1: "Ich habe bis jetzt", iGotContinuationStr2: ", bitte fahren Sie fort" } }, defaultCallFlowOne: "Anruf-Flow (Standard)", errorHandlingAgentEscalationConfirmation: "Sie m\xF6chten mit einem Berater sprechen. Ist das richtig?", errorHandlingAgentEscalationHandover: "Bitte warten Sie kurz, ich werde Sie durchstellen.", errorHandlingErrorEventHandover: "Leider ist ein Fehler aufgetreten. Bitte warten Sie kurz, ich werde Sie zu einer Person durchstellen, die Ihnen helfen kann.", errorHandlingErrorEventHandoverVoiceSurvey: "Leider ist ein Fehler aufgetreten. Auf Wiedersehen!", errorHandlingRecognitionEventHandover: "Ich kann Sie leider nur schlecht verstehen. Bitte warten Sie kurz, ich werde Sie zu einer Person durchstellen, die Ihnen helfen kann.", errorHandlingRecognitionEventHandoverVoiceSurvey: "Leider habe ich Probleme, Sie zu verstehen. Auf Wiedersehen!", errorHandlingTTS: "Es tut uns leid, ein Fehler ist aufgetreten. Bitte f\xFChren Sie den Anruf erneut durch.", initialGreetingTTS: "Hallo, dies ist die Begr\xFC\xDFung.", initialState: "Ausgangsstatus", initialBotState: "Standard-Bot", initialDigitalBotState: "Begr\xFC\xDFung", initialSurveyBotState: "Umfrage-Bot", intentConfirmation: "Ich glaube, Sie m\xF6chten %1$s. Ist das korrekt?", mainMenu: "Hauptmen\xFC", mainMenuTTS: "Sie befinden sich im Hauptmen\xFC. Dr\xFCcken Sie die 9, um die Verbindung zu trennen", mainTask: "Aufgabe", settingsConfirmationNoInputApology: "Ich habe Sie leider nicht geh\xF6rt. Bitte antworten Sie mit 'Ja' oder 'Nein'.", settingsConfirmationNoInputApologyDigitalBot: 'Ich habe leider keine Eingabe von Ihnen erhalten. Geben Sie "Ja" oder "Nein" ein.', settingsConfirmationNoMatchApology: "Bitte antworten Sie mit 'Ja' oder 'Nein'.", settingsConfirmationNoMatchApologyDigitalBot: 'Bitte geben Sie "Ja" oder "Nein" ein.', settingsNoInputApology: "Ich habe Sie leider nicht geh\xF6rt.", settingsNoInputApologyDigitalBot: "Ich habe leider keine Eingabe von Ihnen erhalten.", settingsEndOfSessionMessageDigitalBot: "Ich habe eine Weile nichts von Ihnen geh\xF6rt, deshalb schlie\xDFe ich diesen Chat. Bitte kehren Sie zur\xFCck, wenn Sie meine Hilfe ben\xF6tigen. Vielen Dank!", settingsNoMatchApology: "Entschuldigen Sie bitte.", settingsNoToConfirmationApology: "Mir ist ein Fehler unterlaufen.", periodicStateName: "Wiederkehrender Status" }; + }, 69581: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importDefault(i2(92140)), o = n2.__importDefault(i2(81574)); + class a extends o.default { + constructor(e3) { + super(e3), this._coreAudioExpression = e3; + } + get _globalTypeName() { + return "audio"; + } + get displayTypeName() { + return "ArchValueAudio"; + } + get isArchValueAudio() { + return true; + } + setExpression(e3) { + this._coreAudioExpression.customExpressionMode = true, this._coreExpression.parentAudio && this._coreExpression.parentAudio.noValueMode && (this._coreExpression.parentAudio.noValueMode = false), this.logNote("setting audio expression expressionText to '" + e3 + "'"), this._setExpression(this._infoParm("expressionText", "setExpression"), e3); + } + setExpressionToAudioTTS(e3, t3) { + this._checkItemIsValidLiteralString(this._infoParm("text", "setExpressionToAudioTTS"), e3, true), (r2.default.isUndefined(e3) || null === e3) && (e3 = ""), this._checkItemIsValidLiteralBool(this._infoParm("doNotEscapeText", "setExpressionToAudioTTS"), t3, true); + const i3 = `ToAudioTTS("${t3 ? e3 : this._escapeTextForExpression(e3)}")`; + this.setExpression(i3); + } + setLiteralTTS(e3) { + this._failIfOutput(); + const t3 = this._infoParm("text", "setLiteralTTS"); + this._checkItem(t3, !this.settings.isWritable, "you cannot assign the literal text to speech text '" + e3 + "' because this value " + this.settings.logStr + " is not writable."), this._checkItemIsValidLiteralString(t3, e3, true), (r2.default.isUndefined(e3) || null === e3) && (e3 = ""), this.logNote("assigning text to speech text of '" + e3 + "'"), this._coreAudioExpression.parentAudio && this._coreAudioExpression.parentAudio.noValueMode && (this._coreAudioExpression.parentAudio.noValueMode = false), this._coreAudioExpression.setTTSOnly(e3); + } + get valueText() { + let e3 = this._getValueTextCommon(); + return void 0 === e3 && this._coreExpression && (e3 = this._coreAudioExpression.text), "string" == typeof e3 ? e3 : ""; + } + } + t2.default = a; + }, 69671: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.createCall = void 0; + const n2 = i2(36019).default, r2 = i2(34825); + t2.createCall = n2.request("POST", "{public-api.apps}/api/v2/conversations/calls", r2); + }, 69674: (e2, t2, i2) => { + const n2 = i2(15655), { stateActionType: r2 } = i2(30801); + function o() { + Object.defineProperties(this, { _variableScope: { value: "State" } }), o.baseConstructor.apply(this, arguments); + } + n2.extend(o, r2, true), Object.defineProperties(o.prototype, { pasteReIdOrRename: { value: function(e3) { + o._super.pasteReIdOrRename.apply(this, arguments), this.name = e3.pasteGetUniqueStateName(this.name); + } } }), e2.exports = o; + }, 69675: (e2) => { + e2.exports = { error: 1, warning: 2, info: 3, none: 4 }; + }, 69706: function(e2, t2, i2) { + "use strict"; + var n2 = this && this.__importDefault || function(e3) { + return e3 && e3.__esModule ? e3 : { default: e3 }; + }; + Object.defineProperty(t2, "__esModule", { value: true }), t2.isFlowType = t2.getCamelCasedFlowTypeStr = t2.hasCiceroFlowType = t2.hasAutomateFlowType = t2.hasVxmlgenFlowType = t2.resolveCasedFlowTypeOrTypesString = t2.isFlowTypeStrings = t2.isFlowTypeGroupName = t2.isShortMessageFlowType = t2.isInQueueAutomateFlowType = t2.isEmailFlowType = t2.isVxmlgenFlowType = t2.isAutomateOrCiceroFlowType = t2.isCiceroFlowType = t2.isAutomateFlowType = t2.flowTypesAllVxmlgen = t2.flowTypesAllCicero = t2.flowTypesAllAutomate = t2.flowTypesAllVxmlgenAndVoice = t2.flowTypesAll = t2.flowTypeWorkitem = t2.flowTypeWorkflow = t2.flowTypeVoiceSurvey = t2.flowTypeVoicemail = t2.flowTypeVoice = t2.flowTypeSurveyInvite = t2.flowTypeSecureCall = t2.flowTypeOutboundCall = t2.flowTypeInQueueShortMessage = t2.flowTypeInQueueEmail = t2.flowTypeInQueueCall = t2.flowTypeInboundShortMessage = t2.flowTypeInboundEmail = t2.flowTypeInboundChat = t2.flowTypeInboundCall = t2.flowTypeEmailSend = t2.flowTypeDigitalBot = t2.flowTypeCommonModule = t2.flowTypeBot = void 0; + const r2 = n2(i2(92140)), o = { bot: "bot", commonModule: "commonmodule", digitalBot: "digitalbot", emailSend: "emailsend", inboundCall: "inboundcall", inboundChat: "inboundchat", inboundEmail: "inboundemail", inboundShortMessage: "inboundshortmessage", inQueueCall: "inqueuecall", inQueueEmail: "inqueueemail", inQueueShortMessage: "inqueueshortmessage", outboundCall: "outboundcall", secureCall: "securecall", surveyInvite: "surveyinvite", voice: "voice", voicemail: "voicemail", voiceSurvey: "voicesurvey", workflow: "workflow", workitem: "workitem" }, a = {}; + r2.default.each(o, (e3, t3) => { + a[e3] = t3; + }); + const s = { all: "all", allautomate: "allAutomate", allbot: "allBot", allcall: "allCall" }, l = [o.emailSend, o.inboundChat, o.inboundEmail, o.inboundShortMessage, o.inQueueEmail, o.inQueueShortMessage, o.surveyInvite, o.workflow, o.workitem], u = [o.inboundCall, o.inQueueCall, o.outboundCall, o.secureCall, o.voicemail], d = [o.bot, o.digitalBot, o.voice, o.voiceSurvey], c = [o.commonModule], p = r2.default.union(u, l, d, c), _ = r2.default.union(u, [o.voice]), h = {}; + function m(e3) { + return !!r2.default.isString(e3) && r2.default.contains(t2.flowTypesAllAutomate, e3); + } + function g(e3) { + return !!r2.default.isString(e3) && r2.default.contains(t2.flowTypesAllCicero, e3); + } + function f(e3) { + return !!r2.default.isString(e3) && r2.default.contains(t2.flowTypesAllVxmlgen, e3); + } + r2.default.each(o, (e3) => h[e3] = e3), h.all = p, h.allcall = u, h.allautomate = l, h.allbot = d, t2.flowTypeBot = o.bot, t2.flowTypeCommonModule = o.commonModule, t2.flowTypeDigitalBot = o.digitalBot, t2.flowTypeEmailSend = o.emailSend, t2.flowTypeInboundCall = o.inboundCall, t2.flowTypeInboundChat = o.inboundChat, t2.flowTypeInboundEmail = o.inboundEmail, t2.flowTypeInboundShortMessage = o.inboundShortMessage, t2.flowTypeInQueueCall = o.inQueueCall, t2.flowTypeInQueueEmail = o.inQueueEmail, t2.flowTypeInQueueShortMessage = o.inQueueShortMessage, t2.flowTypeOutboundCall = o.outboundCall, t2.flowTypeSecureCall = o.secureCall, t2.flowTypeSurveyInvite = o.surveyInvite, t2.flowTypeVoice = o.voice, t2.flowTypeVoicemail = o.voicemail, t2.flowTypeVoiceSurvey = o.voiceSurvey, t2.flowTypeWorkflow = o.workflow, t2.flowTypeWorkitem = o.workitem, t2.flowTypesAll = p, t2.flowTypesAllVxmlgenAndVoice = _, t2.flowTypesAllAutomate = l, t2.flowTypesAllCicero = d, t2.flowTypesAllVxmlgen = u, t2.isAutomateFlowType = m, t2.isCiceroFlowType = g, t2.isAutomateOrCiceroFlowType = function(e3) { + return !!r2.default.isString(e3) && (g(e3) || m(e3)); + }, t2.isVxmlgenFlowType = f, t2.isEmailFlowType = function(e3) { + return !!r2.default.isString(e3) && (e3 === o.inboundEmail || e3 === o.inQueueEmail || e3 === o.emailSend); + }, t2.isInQueueAutomateFlowType = function(e3) { + return !!r2.default.isString(e3) && (e3 === o.inQueueEmail || e3 === o.inQueueShortMessage); + }, t2.isShortMessageFlowType = function(e3) { + return !!r2.default.isString(e3) && (e3 === o.inboundShortMessage || e3 === o.inQueueShortMessage); + }, t2.isFlowTypeGroupName = function(e3) { + return !!r2.default.isString(e3) && !r2.default.isUndefined(s[e3.toLowerCase()]); + }, t2.isFlowTypeStrings = true, t2.resolveCasedFlowTypeOrTypesString = function(e3) { + if (r2.default.isString(e3)) return h[e3.toLowerCase()]; + }, t2.hasVxmlgenFlowType = function(e3) { + return e3.some((e4) => f(e4)); + }, t2.hasAutomateFlowType = function(e3) { + return e3.some((e4) => m(e4)); + }, t2.hasCiceroFlowType = function(e3) { + return e3.some((e4) => g(e4)); + }, t2.getCamelCasedFlowTypeStr = function(e3) { + return a[null == e3 ? void 0 : e3.toLowerCase()]; + }, t2.isFlowType = function(e3, ...t3) { + return !(!(null == e3 ? void 0 : e3.length) || !t3) && t3.includes(e3); + }; + }, 69770: (e2, t2, i2) => { + function n2() { + this.id = void 0, this.name = void 0, n2.baseConstructor.apply(this, arguments); + } + i2(45214).extend(n2, "FlowLaunchResult"), e2.exports = n2; + }, 69772: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.ExpressionItem = void 0; + const n2 = i2(31635), r2 = n2.__importDefault(i2(92140)), o = i2(55299), a = n2.__importDefault(i2(73198)), s = i2(27491), l = n2.__importDefault(i2(22226)), u = i2(80428), d = i2(14394); + function c(e3, t3, i3) { + e3[t3] || Object.defineProperty(e3, t3, { enumerable: !i3, writable: true }); + } + class p extends o.BaseClass { + get className() { + return "ExpressionItem"; + } + constructor(e3, t3, i3) { + super(), Object.defineProperty(this, "_type", { enumerable: false, writable: true }), Object.defineProperty(this, "_root", { value: e3, enumerable: false, writable: false }), Object.defineProperty(this, e3, { value: {}, enumerable: true, writable: true }), this.position = t3, this.text = i3; + } + get items() { + return this.root.items; + } + set items(e3) { + c(this.root, "items"), this.root.items = e3 || []; + } + get isBracketArrayAccess() { + var e3; + const t3 = this.getOperands(); + return "[" === this._root && t3 && 2 === t3.length && (null === (e3 = t3[0].type) || void 0 === e3 ? void 0 : e3.expressionType) === u.expressionTypeNames.integer; + } + get isBracketAccess() { + const e3 = this.getOperands(); + return "[" === this._root && e3 && 2 === e3.length; + } + get isBracketArrayOrPropAccess() { + return this.isBracketArrayAccess || this.isPropAccess; + } + get isCollection() { + return !!this._type && this._type.isCollection; + } + get isEmp() { + return "emp" === this._root; + } + get isFunc() { + return "fn" === this.root.opOrFunc; + } + get isImplicitCastingFunc() { + if (this.isFunc) { + const e3 = this.getOperands(); + if (e3 && e3.length > 0) return e3[0].position === this.position; + } + return false; + } + get isLit() { + return "lit" === this._root; + } + get isNotSet() { + return "nul" === this._root; + } + get isOp() { + return "op" === this.root.opOrFunc; + } + get isPromptRef() { + return ("ref" === this._root || "sysref" === this._root) && this.root.type === u.expressionTypeNames.prompt; + } + get isPropAccess() { + var e3; + const t3 = this.getOperands(); + return ("." === this._root || "[" === this._root) && t3 && 2 === t3.length && (null === (e3 = t3[0].type) || void 0 === e3 ? void 0 : e3.expressionType) === u.expressionTypeNames.string; + } + get isRef() { + return "ref" === this._root; + } + get isRefOrSysRef() { + return "ref" === this._root || "sysref" === this._root; + } + get isSysPromptRef() { + return "sysref" === this._root && this.root.type === u.expressionTypeNames.prompt; + } + get isSysRef() { + return "sysref" === this._root; + } + get isUserPromptRef() { + return "ref" === this._root && this.root.type === u.expressionTypeNames.prompt; + } + get isTypeNotSet() { + return this.root.type === u.expressionTypeNames.notSet; + } + get isTypePrompt() { + return this.root.type === u.expressionTypeNames.prompt; + } + get isVariableRef() { + if (this.isRefOrSysRef) return true; + let e3 = this; + for (; e3.isBracketArrayOrPropAccess; ) { + const t3 = e3.getOperands(); + e3 = t3[1]; + } + return e3.isRefOrSysRef; + } + getVariableNameIfRef() { + var e3, t3; + const i3 = this._getRootVariableRef(); + if (i3) return (null === (e3 = i3.sysref) || void 0 === e3 ? void 0 : e3.text) || (null === (t3 = i3.ref) || void 0 === t3 ? void 0 : t3.text); + } + getIsVariableRefWithScope(e3) { + var t3; + if (!e3) return false; + const i3 = this._getRootVariableRef(); + return !!i3 && (null === (t3 = i3.text) || void 0 === t3 ? void 0 : t3.toLowerCase().startsWith(e3 + ".")); + } + _getRootVariableRef() { + if (this.isRefOrSysRef) return this; + let e3 = this; + for (; e3.isBracketArrayOrPropAccess; ) { + const t3 = e3.getOperands(); + e3 = t3[1]; + } + return (null == e3 ? void 0 : e3.isRefOrSysRef) ? e3 : void 0; + } + getIsNamedVariableRef(e3) { + var t3; + if (!e3) return false; + const i3 = this._getRootVariableRef(); + return !!i3 && (null === (t3 = i3.text) || void 0 === t3 ? void 0 : t3.toLowerCase()) === e3.toLowerCase(); + } + get opOrFunc() { + return this.root.val; + } + set opOrFunc(e3) { + c(this.root, "opOrFunc", true), this.root.opOrFunc = e3, e3 && (c(this.root, "operands"), this.root.operands = []); + } + get position() { + return this.root.pos; + } + set position(e3) { + c(this.root, "pos"), this.root.pos = e3; + } + get root() { + return this[this._root]; + } + get rootText() { + return this._root; + } + setContainerExpressionMetaData(e3, t3) { + if (!this.isRefOrSysRef) return void (t3 && (e3.metaData = {})); + e3.metaData ? e3.metaData.references || (e3.metaData.references = []) : e3.metaData = { references: [] }; + const i3 = this.val; + r2.default.find(e3.metaData.references, function(e4) { + return e4.id === i3; + }) || e3.metaData.references.push({ id: this.val, type: this.root.type, isSysRef: this.isSysRef, name: this.text }); + } + get text() { + return this.root.text; + } + set text(e3) { + c(this.root, "text"), this.root.text = e3 || ""; + } + get type() { + return this._type; + } + set type(e3) { + c(this.root, "type"), r2.default.isString(e3) ? this.root.type = e3 : (this._type = e3, this.root.type = e3.expressionType); + } + get val() { + return this.root.val; + } + set val(e3) { + c(this.root, "val"), this.root.val = e3; + } + addAdditionalProperties(e3) { + e3 && r2.default.defaults(this.root, e3); + } + finishForOutput(e3) { + const t3 = this.getOperands(); + t3 && r2.default.each(t3, function(e4) { + e4.finishForOutput(true); + }), this.isLit && "str" === this.root.type && r2.default.isString(this.root.val) && r2.default.isString(this.root.text) ? (this.root.text = this.root.val, delete this.root.val) : e3 && (this.isFunc || this.isOp) && this.root && void 0 !== this.root.text && (this.root.text = void 0); + } + getErrorDisplayText() { + return this.isNotSet ? a.default.notSet : this.type ? this.type.displayString : ""; + } + getLitAsFloat() { + if (this.isLit && r2.default.isString(this.root.text)) return parseFloat(this.root.text); + } + getLitAsInt() { + if (this.isLit && r2.default.isString(this.root.text)) return parseInt(this.root.text); + } + getLitAsString() { + if (this.isLit && r2.default.isString(this.root.text)) return this.root.text; + } + getOperands() { + return this.root.operands; + } + getPropAccessInfo() { + if (this.isPropAccess) { + const e3 = this.getOperands(); + return { id: e3[0].root.val, propGroup: e3[0].root.propGroup }; + } + } + getPropAccessName() { + if (this.isPropAccess) return this.updateExprText(), this.getText(); + } + getStringLit() { + if (this.isLit && r2.default.isString(this.root.text)) return this.root.text; + } + getText(e3, t3, i3) { + return this.knownExprText ? this.knownExprText : this.isNotSet ? a.default.notSet : this.isRef || this.isSysRef ? this.root.text : this.isLit ? t3 && this.root.resolvedProperty ? this.root.resolvedProperty : r2.default.isString(this.root.text) ? "str" !== this.root.type || i3 ? this.root.text : l.default.getQuotedExpressionStringLiteral(this.root.text) : this.root.val : this.isOp && e3 ? "(" + this.root.text + ")" : this.root.text; + } + getExpressionTextForRoot() { + return this.isLit && r2.default.isString(this.root.text) ? "str" === this.root.type ? '"' + this.root.text + '"' : this.root.text : this._root; + } + getTextWithFuncOpTextFallback(e3) { + if (!this.root.opOrFunc) return this.getText(void 0, e3); + return this.root.text || this._root; + } + updateExprText() { + const e3 = this.getOperands(); + if (!e3) return; + r2.default.each(e3, function(e4) { + e4.updateExprText(); + }); + const t3 = this._root; + if ("op" === this.root.opOrFunc) { + let i4, n3; + switch (e3.length) { + case 1: + this.text = t3 + e3[0].getText(true); + break; + case 2: + if (i4 = this.isPropAccess, n3 = !i4 && this.isBracketAccess, i4 || n3) { + let t4 = e3[0].getText(false, true, true); + if (e3[0].type.isMatch(d.globalTypes.string)) if (s.expressionDataService.isValidIdentifierName(t4)) n3 && (t4 = `"${t4}"`); + else { + const i5 = e3[0].getText(false, true); + t4 = `"${i5.substring(3, i5.length - 3)}"`; + } + this.text = n3 ? `${e3[1].getText(false, true)}[${t4}]` : `${e3[1].getText(false, true)}.${t4}`; + } else this.text = e3[0].getText(true, true) + " " + this._root + " " + e3[1].getText(true, true); + break; + case 3: + this.text = e3[0].getText(false) + " ? " + e3[1].getText(false, true) + " : " + e3[2].getText(false, true); + break; + default: + throw new Error("Internal error. Operators that have more than 3 or less than 1 operand are not supported."); + } + return; + } + let i3 = t3 + "("; + for (let t4 = 0; t4 < e3.length; t4++) t4 > 0 && (i3 += ", "), i3 += e3[t4].getText(false); + this.text = i3 + ")"; + } + } + t2.ExpressionItem = p; + }, 69773: (e2, t2, i2) => { + const n2 = i2(92140), r2 = i2(90358), o = {}; + n2.each(r2, function(e3, t3) { + o[t3] = { code: t3, message: e3 }; + }), e2.exports = o; + }, 69796: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(47782)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + } + t2.default = r2; + }, 69823: (e2, t2, i2) => { + const n2 = i2(27727), r2 = i2(90807); + function o() { + Object.defineProperties(this, { _errorBindings: { writable: true } }), o.baseConstructor.apply(this, arguments); + } + n2.extend(o, "IntegrationsActionModel"), Object.defineProperties(o.prototype, { pasteReIdOrRename: { value: function(e3) { + o._super.pasteReIdOrRename.apply(this, arguments); + for (let t3 = 0; t3 < this.errorBindings.length; t3++) this.errorBindings[t3].pasteReIdOrRename(e3); + } }, pasteResolveOldToNewValues: { value: function(e3) { + o._super.pasteResolveOldToNewValues.apply(this, arguments); + for (let t3 = 0; t3 < this.errorBindings.length; t3++) this.errorBindings[t3].pasteResolveOldToNewValues(e3); + } }, errorBindings: { enumerable: true, get: function() { + return this._errorBindings; + }, set: function(e3) { + this._errorBindings = this.reviveArray(e3, r2); + } } }), e2.exports = o; + }, 69849: (e2, t2, i2) => { + const n2 = i2(13240), r2 = i2(90807), o = i2(7401), { loopUntilActionType: a } = i2(30801); + function s() { + Object.defineProperties(this, { _currentIndex: { writable: true }, _maxLoopCount: { writable: true }, _untilCases: { writable: true } }), s.baseConstructor.apply(this, arguments); + } + n2.extend(s, a, true), Object.defineProperties(s.prototype, { pasteReIdOrRename: { value: function(e3) { + if (s._super.pasteReIdOrRename.apply(this, arguments), this.currentIndex.pasteReIdOrRename(e3), this.maxLoopCount.pasteReIdOrRename(e3), this.untilCases) for (let t3 = 0; t3 < this.untilCases.length; t3++) this.untilCases[t3].pasteReIdOrRename(e3); + } }, pasteResolveOldToNewValues: { value: function(e3) { + if (s._super.pasteResolveOldToNewValues.apply(this, arguments), this.currentIndex.pasteResolveOldToNewValues(e3), this.maxLoopCount.pasteResolveOldToNewValues(e3), this.untilCases) for (let t3 = 0; t3 < this.untilCases.length; t3++) this.untilCases[t3].pasteResolveOldToNewValues(e3); + } }, currentIndex: { enumerable: true, get: function() { + return this._currentIndex; + }, set: function(e3) { + this._currentIndex = this.reviveItem(e3, o); + } }, maxLoopCount: { enumerable: true, get: function() { + return this._maxLoopCount; + }, set: function(e3) { + this._maxLoopCount = this.reviveItem(e3, o); + } }, untilCases: { enumerable: true, get: function() { + return this._untilCases; + }, set: function(e3) { + e3?.length && e3[0].type && e3.splice(0).forEach((t3) => { + e3.push({ referenceId: t3.referenceId, value: t3 }), delete t3.referenceId; + }), this._untilCases = this.reviveArray(e3, r2); + } } }), e2.exports = s; + }, 69850: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.SurveyDispositions = t2.Regions = t2.MessageBodyStyles = t2.Languages = t2.Currencies = t2.ConversationTypes = void 0; + const n2 = i2(31635).__importDefault(i2(92140)), r2 = i2(2899), o = i2(92669), a = i2(85705), s = i2(19502), l = i2(19819), u = i2(88276), d = i2(47957), c = i2(4059); + function p(e3, t3, i3, n3, r3, o2, a2, s2) { + return { description: e3 || "", descriptionId: t3 || "", id: i3, isCollection: n3, name: r3, propertyToLiteralResolvers: a2, type: o2, version: s2 || "1.0" }; + } + function _(e3, t3, i3, n3) { + e3[t3] = { resolver: i3, valueToResolve: n3 }; + } + t2.ConversationTypes = (function() { + const e3 = [], t3 = {}; + return n2.default.each(o, function(e4) { + _(t3, e4.id, r2.propertyToLiteralResolverNames.propIDToConversationType, e4.id); + }), e3.push(p(d.surveyInviteFlowVariables.conversationTypes, null, "Types", false, "Types", "cte", t3, null)), e3; + })(), t2.Currencies = (function() { + const e3 = []; + for (const t3 in s) if (s.hasOwnProperty(t3)) { + const i3 = s[t3], n3 = {}; + _(n3, "code", r2.propertyToLiteralResolverNames.propIDToCurrencyCode, t3), e3.push(p(i3.displayName, null, t3, false, t3, "cre", n3, null)); + } + return e3; + })(), t2.Languages = (function() { + const e3 = []; + for (const t3 in l.propIdLanguages) if (l.propIdLanguages.hasOwnProperty(t3)) { + const i3 = l.propIdLanguages[t3], n3 = {}; + _(n3, "tag", r2.propertyToLiteralResolverNames.propIDToLanguageTag, t3), e3.push(p(i3.text, null, t3, false, t3, "lge", n3, null)); + } + return e3; + })(), t2.MessageBodyStyles = (function() { + const e3 = [], t3 = {}; + return n2.default.each(u, function(e4) { + _(t3, e4.id, r2.propertyToLiteralResolverNames.propIDToMessageBodyStyle, e4.id); + }), e3.push(p(d.sendResponse.messageBodyStyles, null, "MessageBodyStyles", false, "MessageBodyStyles", "mbe", t3, null)), e3; + })(), t2.Regions = (function() { + const e3 = []; + for (const t3 in a.countryMap) if (a.countryMap.hasOwnProperty(t3)) { + const i3 = a.countryMap[t3], n3 = {}; + _(n3, "countryCode", r2.propertyToLiteralResolverNames.propIDToCountryCode, t3), _(n3, "dialingCode", r2.propertyToLiteralResolverNames.propIDToDialingCode, t3), e3.push(p(i3.name, null, t3, false, t3, "rge", n3, null)); + } + return e3; + })(), t2.SurveyDispositions = (function() { + const e3 = [], t3 = {}; + return n2.default.each(c, function(e4) { + _(t3, e4.id, r2.propertyToLiteralResolverNames.propIDToSurveyDisposition, e4.id); + }), e3.push(p(d.surveyInviteFlowVariables.surveyDispositions, null, "Dispositions", false, "Dispositions", "sde", t3, null)), e3; + })(); + }, 69879: function(e2, t2, i2) { + "use strict"; + var n2 = this && this.__values || function(e3) { + var t3 = "function" == typeof Symbol && Symbol.iterator, i3 = t3 && e3[t3], n3 = 0; + if (i3) return i3.call(e3); + if (e3 && "number" == typeof e3.length) return { next: function() { + return e3 && n3 >= e3.length && (e3 = void 0), { value: e3 && e3[n3++], done: !e3 }; + } }; + throw new TypeError(t3 ? "Object is not iterable." : "Symbol.iterator is not defined."); + }, r2 = this && this.__read || function(e3, t3) { + var i3 = "function" == typeof Symbol && e3[Symbol.iterator]; + if (!i3) return e3; + var n3, r3, o2 = i3.call(e3), a2 = []; + try { + for (; (void 0 === t3 || t3-- > 0) && !(n3 = o2.next()).done; ) a2.push(n3.value); + } catch (e4) { + r3 = { error: e4 }; + } finally { + try { + n3 && !n3.done && (i3 = o2.return) && i3.call(o2); + } finally { + if (r3) throw r3.error; + } + } + return a2; + }, o = this && this.__spreadArray || function(e3, t3) { + for (var i3 = 0, n3 = t3.length, r3 = e3.length; i3 < n3; i3++, r3++) e3[r3] = t3[i3]; + return e3; + }; + Object.defineProperty(t2, "__esModule", { value: true }), t2.isSubscription = t2.EMPTY_SUBSCRIPTION = t2.Subscription = void 0; + var a = i2(10281), s = i2(69517), l = i2(54830), u = (function() { + function e3(e4) { + this.initialTeardown = e4, this.closed = false, this._parentage = null, this._finalizers = null; + } + var t3; + return e3.prototype.unsubscribe = function() { + var e4, t4, i3, l2, u2; + if (!this.closed) { + this.closed = true; + var c = this._parentage; + if (c) if (this._parentage = null, Array.isArray(c)) try { + for (var p = n2(c), _ = p.next(); !_.done; _ = p.next()) _.value.remove(this); + } catch (t5) { + e4 = { error: t5 }; + } finally { + try { + _ && !_.done && (t4 = p.return) && t4.call(p); + } finally { + if (e4) throw e4.error; + } + } + else c.remove(this); + var h = this.initialTeardown; + if (a.isFunction(h)) try { + h(); + } catch (e5) { + u2 = e5 instanceof s.UnsubscriptionError ? e5.errors : [e5]; + } + var m = this._finalizers; + if (m) { + this._finalizers = null; + try { + for (var g = n2(m), f = g.next(); !f.done; f = g.next()) { + var T = f.value; + try { + d(T); + } catch (e5) { + u2 = null != u2 ? u2 : [], e5 instanceof s.UnsubscriptionError ? u2 = o(o([], r2(u2)), r2(e5.errors)) : u2.push(e5); + } + } + } catch (e5) { + i3 = { error: e5 }; + } finally { + try { + f && !f.done && (l2 = g.return) && l2.call(g); + } finally { + if (i3) throw i3.error; + } + } + } + if (u2) throw new s.UnsubscriptionError(u2); + } + }, e3.prototype.add = function(t4) { + var i3; + if (t4 && t4 !== this) if (this.closed) d(t4); + else { + if (t4 instanceof e3) { + if (t4.closed || t4._hasParent(this)) return; + t4._addParent(this); + } + (this._finalizers = null !== (i3 = this._finalizers) && void 0 !== i3 ? i3 : []).push(t4); + } + }, e3.prototype._hasParent = function(e4) { + var t4 = this._parentage; + return t4 === e4 || Array.isArray(t4) && t4.includes(e4); + }, e3.prototype._addParent = function(e4) { + var t4 = this._parentage; + this._parentage = Array.isArray(t4) ? (t4.push(e4), t4) : t4 ? [t4, e4] : e4; + }, e3.prototype._removeParent = function(e4) { + var t4 = this._parentage; + t4 === e4 ? this._parentage = null : Array.isArray(t4) && l.arrRemove(t4, e4); + }, e3.prototype.remove = function(t4) { + var i3 = this._finalizers; + i3 && l.arrRemove(i3, t4), t4 instanceof e3 && t4._removeParent(this); + }, e3.EMPTY = ((t3 = new e3()).closed = true, t3), e3; + })(); + function d(e3) { + a.isFunction(e3) ? e3() : e3.unsubscribe(); + } + t2.Subscription = u, t2.EMPTY_SUBSCRIPTION = u.EMPTY, t2.isSubscription = function(e3) { + return e3 instanceof u || e3 && "closed" in e3 && a.isFunction(e3.remove) && a.isFunction(e3.add) && a.isFunction(e3.unsubscribe); + }; + }, 69915: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.isEmpty = void 0; + var n2 = i2(65212), r2 = i2(17214); + t2.isEmpty = function() { + return n2.operate(function(e3, t3) { + e3.subscribe(r2.createOperatorSubscriber(t3, function() { + t3.next(false), t3.complete(); + }, function() { + t3.next(true), t3.complete(); + })); + }); + }; + }, 69946: (e2, t2, i2) => { + const n2 = i2(58996), r2 = i2(87392), o = i2(2053); + function a() { + Object.defineProperties(this, { _workitemFlowSettings: { writable: true }, _errorHandling: { writable: true } }), a.baseConstructor.apply(this, arguments); + } + n2.extend(a, "WorkitemFlowConfiguration"), Object.defineProperties(a.prototype, { workitemFlowSettings: { enumerable: true, get: function() { + return this._workitemFlowSettings; + }, set: function(e3) { + this._workitemFlowSettings = new r2(e3); + } }, errorHandling: { enumerable: true, get: function() { + return this._errorHandling; + }, set: function(e3) { + this._errorHandling = this.reviveItem(e3, o); + } } }), e2.exports = a; + }, 70109: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = i2(30801), o = n2.__importDefault(i2(11210)); + class a extends o.default { + constructor(e3) { + super(e3), this._exitReason = this.coreFactory.createArchValueFromExpression(e3.exitReason); + } + get _actionTypeId() { + return r2.endWorkflowActionType; + } + get displayTypeName() { + return this._scriptingName; + } + get exitReason() { + return this._exitReason; + } + get isArchActionEndWorkflow() { + return true; + } + } + t2.default = a; + }, 70131: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.KnowledgeBaseDocumentType = void 0; + const n2 = i2(31635), r2 = n2.__importDefault(i2(92140)), o = i2(20083), a = i2(69078), s = i2(27491), l = n2.__importDefault(i2(22226)), u = i2(80428), d = i2(14394), c = i2(94765), p = i2(47957); + class _ extends c.ExpressionType { + constructor(e3, t3, i3) { + super(e3, t3, i3); + } + get className() { + return "KnowledgeBaseDocumentType"; + } + createExpressionOptionClass() { + return new o.ExpressionTypeKnowledgeBaseDocumentOptions(this.isCollection); + } + get listManager() { + return a.knowledgeBaseDocumentManager.getBriefManagerWithFallback(); + } + canConvertLitToExpression(e3) { + return s.expressionDataService.isFunctionTextAvailableForFlowTypeAndOperandTypes("FindKnowledgeBaseDocument", e3, [d.globalTypes.string]); + } + convertLitToExpression(e3, t3) { + return t3 && this.canConvertLitToExpression(e3) ? `FindKnowledgeBaseDocument(${l.default.getQuotedExpressionStringLiteral(t3)})` : ""; + } + validateLiteral(e3, t3) { + var i3, n3, o2, a2; + const s2 = super.validateLiteral(e3, t3); + if (s2) { + const o3 = this.listManager.getItem(t3.val); + if (o3 && r2.default.isFunction(null === (i3 = null == t3 ? void 0 : t3.options) || void 0 === i3 ? void 0 : i3.knowledgeBaseIdCallback)) { + const i4 = t3.options.knowledgeBaseIdCallback(t3), r3 = null == i4 ? void 0 : i4.knowledgeId; + if (r3 && (null === (n3 = o3.knowledgeBase) || void 0 === n3 ? void 0 : n3.id) !== r3) return e3.addError(t3, p.knowledgeSettings.knowledgeArticleMismatch, void 0, true), false; + } + } else { + const i4 = null === (a2 = null === (o2 = e3.getIssues(t3.parent.id)) || void 0 === o2 ? void 0 : o2.errors[0]) || void 0 === a2 ? void 0 : a2.text; + i4 && t3.setParseError(i4); + } + return s2; + } + } + t2.KnowledgeBaseDocumentType = _, _.typeIdentifier = u.expressionTypeNames.knowledgeBaseDocument; + }, 70144: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(84655)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "listPickerSection"; + } + get displayTypeName() { + return "ArchVariableListPickerSection"; + } + get initialValue() { + return this._initialValue; + } + get isArchVariableListPickerSection() { + return true; + } + } + t2.default = r2; + }, 70147: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.ExpressionTypeSurveyFormOptions = void 0; + const n2 = i2(65615); + class r2 extends n2.BaseExpressionTypeCollectionOptions { + static create(e3, t3) { + return new this(t3).invokeOptionsCallback(e3); + } + constructor(e3) { + super(e3); + } + get className() { + return "ExpressionTypeSurveyFormOptions"; + } + get isExpressionTypeSurveyFormOptions() { + return true; + } + } + t2.ExpressionTypeSurveyFormOptions = r2; + }, 70201: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.concatAll = void 0; + var n2 = i2(68087); + t2.concatAll = function() { + return n2.mergeAll(1); + }; + }, 70283: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.getAllSipHeadersFailureReasons = t2.getRawSipHeadersFailureReasons = t2.getSipHeadersFailureReasons = void 0; + const n2 = i2(31635).__importDefault(i2(92140)), r2 = { actionInvocationLimitExceeded: "ActionInvocationLimitExceeded", generalError: "GeneralError", noSipHeadersExist: "NoSipHeadersExist", sipHeaderNamesCollectionItemLimitExceeded: "SipHeaderNamesCollectionItemLimitExceeded" }, o = [r2.generalError]; + t2.getSipHeadersFailureReasons = n2.default.uniq(o.concat([r2.actionInvocationLimitExceeded, r2.noSipHeadersExist, r2.sipHeaderNamesCollectionItemLimitExceeded])), t2.getRawSipHeadersFailureReasons = n2.default.uniq(o.concat([r2.actionInvocationLimitExceeded, r2.noSipHeadersExist])), t2.getAllSipHeadersFailureReasons = r2; + }, 70310: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = i2(17604), o = n2.__importDefault(i2(92140)), a = n2.__importStar(i2(69453)), s = n2.__importStar(i2(12847)), l = n2.__importDefault(i2(73198)), u = n2.__importDefault(i2(41510)), d = i2(80295), c = n2.__importDefault(i2(67114)), p = i2(55909), _ = i2(80428), h = i2(33951), m = n2.__importDefault(i2(65302)), g = i2(47957); + class f extends c.default { + constructor() { + super(), this._disallowedValues = {}, this._maxLength = void 0, this._minLength = void 0, this._preferRadioButtonsCount = void 0, this._trim = false, this._warnOnEmpty = false, this._isAddressField = false, this._truncatesToMaxLength = false, this._patternString = void 0, this._literalPatternRegexp = void 0, this._literalPatternMismatchMessage = void 0, this._useButtonSwitcher = false, (0, d.makeUnenumerable)(this, "_disallowedValues"), (0, d.makeUnenumerable)(this, "_maxLength"), (0, d.makeUnenumerable)(this, "_minLength"), (0, d.makeUnenumerable)(this, "_preferRadioButtonsCount"), (0, d.makeUnenumerable)(this, "_trim"), (0, d.makeUnenumerable)(this, "_warnOnEmpty"), (0, d.makeUnenumerable)(this, "_isAddressField"), (0, d.makeUnenumerable)(this, "_patternString"), (0, d.makeUnenumerable)(this, "_literalPatternRegexp"), (0, d.makeUnenumerable)(this, "_literalPatternMismatchMessage"), (0, d.makeUnenumerable)(this, "_useButtonSwitcher"); + } + _setFromFacets(e3) { + super._setFromFacets(e3), this._setFacetIfSet(this.setMaxLength, e3.maxLength, "_maxLength"), this._setFacetIfSet(this.setMinLength, e3.minLength, "_minLength"), this._setFacetIfSet(this.setTruncatesToMaxLength, e3._truncatesToMaxLength, "_truncatesToMaxLength"), this._setFacetIfSet(this.setTrim, e3.trim), this._setFacetIfSet(this.setPreferRadioButtonsCount, e3.preferRadioButtonsCount, "_preferRadioButtonsCount"), this._setFacetIfSet(this.setWarnOnEmpty, e3.warnOnEmpty), this._setFacetIfSet(this.setIsAddressField, e3.isAddressField), this._setFacetIfSet(this.setUseButtonSwitcher, e3.useButtonSwitcher, "_useButtonSwitcher"), e3._disallowedValues && e3._disallowedValues.warning && this.setDisallowedCharactersWarning(e3._disallowedValues.warning.characters, e3._disallowedValues.warning.message), void 0 !== e3._patternString && void 0 !== e3._literalPatternMismatchMessage ? this.setLiteralPattern(e3._patternString, e3._literalPatternMismatchMessage) : (this._patternString = void 0, this._literalPatternRegexp = void 0, this._literalPatternMismatchMessage = void 0); + } + get className() { + return "StringBasedFacets"; + } + get isStringBasedFacets() { + return true; + } + _facetGetExpressionItemLitValue(e3) { + return e3.getLitAsString(); + } + _facetGetExpressionType() { + return m.default.getGlobalTypeGroup().getType(_.expressionTypeNames.string, this.isCollection); + } + _facetValidateValue(e3, t3) { + const i3 = super._facetValidateValue(e3, t3); + if (i3) return i3; + if (this.trim && null != e3 && (e3 = e3.trim()), void 0 !== this.minLength && this.minLength === this.maxLength && (!e3 || e3.length < this.minLength || e3.length > this.minLength)) return this._createErrorResult((0, r2.sprintf)(g.facets.valueMustBeExactly, this.minLength)); + if (void 0 !== this.minLength && (!e3 || e3.length < this.minLength)) return 1 === this.minLength ? (null == t3 ? void 0 : t3.isLiteralMode) ? this._createErrorResult(g.facets.valueStringMinLengthOne) : this._createErrorResult(g.facets.valueStringMinLengthOneNonFriendly) : this._createErrorResult((0, r2.sprintf)(g.facets.valueStringMinLengthTwoOrMore, this.minLength)); + if (void 0 !== this.maxLength && e3 && e3.length > this.maxLength) return this._createErrorResult((0, r2.sprintf)(g.facets.valueStringMaxLength, this.maxLength)); + if (void 0 !== this._literalPatternRegexp) { + const t4 = null == e3 ? "" : String(e3); + if (!this._literalPatternRegexp.test(t4)) return this._createErrorResult(this._literalPatternMismatchMessage); + } + if (this._disallowedValues && this._disallowedValues.warning && this._disallowedValues.warning.characters) { + const t4 = o.default.find(this._disallowedValues.warning.characters, function(t5) { + return e3.includes(t5); + }); + if (!o.default.isUndefined(t4)) return this._createWarningResult((0, r2.sprintf)(this._disallowedValues.warning.message ? this._disallowedValues.warning.message : g.facets.valueUsesInvalidCharacterWarning, t4)); + } + return e3 && o.default.isString(e3) && 0 === e3.length && this.warnOnEmpty ? this._createWarningResult(g.facets.valueIsBlank) : void 0; + } + _getTruncationBehaviorForLiteralStrings(e3) { + if (!o.default.isNullOrUndefined(e3)) return 1 === e3 ? a.stringFacets.truncationBehavior.literalStringLongerThanOneCharacterNotAllowed : (0, r2.sprintf)(a.stringFacets.truncationBehavior.literalStringLongerThanMaxLengthNotAllowed, e3); + } + _getTruncationBehaviorForDynamicStrings(e3) { + if (!o.default.isNullOrUndefined(e3)) return 1 === e3 ? a.stringFacets.truncationBehavior.dynamicStringTruncatedToOneCharacterAtRuntime : (0, r2.sprintf)(a.stringFacets.truncationBehavior.dynamicStringTruncatedToMaxLengthAtRuntime, e3); + } + get allowEmpty() { + return o.default.isUndefined(this.minLength) || 0 === this.minLength; + } + setAllowableValues(e3, t3) { + return o.default.isBoolean(t3) && (this.caseSensitiveAllowableValues = t3), this.allowableValues = e3, this; + } + setAllowableValuePlaceholder(e3) { + return this.allowableValuePlaceholder = e3, this; + } + setAllowableValueUseOriginalDisplayString(e3) { + return this.allowableValueUseOriginalDisplayString = e3, this; + } + setDisallowedCharactersWarning(e3, t3) { + return this._disallowedValues.warning = {}, this._disallowedValues.warning.characters = h.ParameterValidator.expectArray(e3, () => p.ParameterInfo.createPropertySet(this.className, "setDisallowedSubStringsWarning", "characters")), this._disallowedValues.warning.message = h.ParameterValidator.expectString(t3, () => p.ParameterInfo.createPropertySet(this.className, "setDisallowedSubStringsWarning", "warningMessage")), this; + } + addDescriptionInfo(e3, t3) { + super.addDescriptionInfo(e3, t3), o.default.isActualNumber(this.minLength) && this.minLength === this.maxLength ? t3.push((0, r2.sprintf)(u.default.itemColonValue, g.expressionsHelp.parameters.length, this.minLength)) : (o.default.isActualNumber(this.minLength) && t3.push((0, r2.sprintf)(u.default.itemColonValue, g.expressionsHelp.parameters.minLength, this.minLength)), o.default.isActualNumber(this.maxLength) && t3.push((0, r2.sprintf)(u.default.itemColonValue, g.expressionsHelp.parameters.maxLength, this.maxLength))), this.truncatesToMaxLength && (t3.push(this._getTruncationBehaviorForLiteralStrings(this.maxLength)), t3.push(this._getTruncationBehaviorForDynamicStrings(this.maxLength))); + } + get hasDescriptionInfo() { + return !!super.hasDescriptionInfo || o.default.isActualNumber(this.maxLength) || o.default.isActualNumber(this.minLength); + } + get maxLength() { + return this._maxLength; + } + set maxLength(e3) { + const t3 = h.ParameterValidator.expectIntMoreThanOrEqualTo(e3, this.minLength, () => p.ParameterInfo.createPropertySet(this.className, "maxLength", "value"), true); + t3 <= l.default.maxExpressionTextLength ? this._maxLength = t3 : this._maxLength = void 0; + } + setMaxLength(e3) { + return this.maxLength = e3, this; + } + get minLength() { + return this._minLength; + } + set minLength(e3) { + const t3 = o.default.isUndefined(this.maxLength) ? h.ParameterValidator.expectInt(e3, () => p.ParameterInfo.createPropertySet(this.className, "minLength", "value"), true) : h.ParameterValidator.expectIntLessThanOrEqualTo(e3, this.maxLength, () => p.ParameterInfo.createPropertySet(this.className, "minLength", "value"), true); + !o.default.isUndefined(t3) && t3 > 0 ? this._minLength = t3 : this._minLength = void 0; + } + setMinLength(e3) { + return this.minLength = e3, this; + } + setLengthForUuid() { + return this.setMaxLength(void 0), this.setMinLength(36), this.setMaxLength(36), this; + } + get preferRadioButtonsCount() { + return this._preferRadioButtonsCount; + } + set preferRadioButtonsCount(e3) { + this._preferRadioButtonsCount = h.ParameterValidator.expectInt(e3, () => p.ParameterInfo.createPropertySet(this.className, "preferRadioButtonsCount", "value"), true); + } + setPreferRadioButtonsCount(e3) { + return this.preferRadioButtonsCount = e3, this; + } + get useRadioButtons() { + return !!(this._preferRadioButtonsCount && this.allowableValues && this.allowableValues.length <= this._preferRadioButtonsCount); + } + get useButtonSwitcher() { + return this._useButtonSwitcher; + } + setUseButtonSwitcher(e3) { + return this._useButtonSwitcher = e3, this; + } + get trim() { + return this._trim; + } + set trim(e3) { + this._trim = h.ParameterValidator.expectBool(e3, () => p.ParameterInfo.createPropertySet(this.className, "trim", "value"), true); + } + setTrim(e3) { + return this.trim = e3, this; + } + set warnOnEmpty(e3) { + this._warnOnEmpty = h.ParameterValidator.expectBool(e3, () => p.ParameterInfo.createPropertySet(this.className, "warnOnEmpty", "value")); + } + get warnOnEmpty() { + return this._warnOnEmpty; + } + setWarnOnEmpty(e3) { + return this.warnOnEmpty = e3, this; + } + setIsAddressField(e3) { + return this._isAddressField = e3, this; + } + get isAddressField() { + return this._isAddressField; + } + get truncatesToMaxLength() { + return this._truncatesToMaxLength && o.default.isActualNumber(this.maxLength); + } + set truncatesToMaxLength(e3) { + this._truncatesToMaxLength = h.ParameterValidator.expectBool(e3, () => p.ParameterInfo.createPropertySet(this.className, "runtimeTruncatesToMaxLength", "value")); + } + setTruncatesToMaxLength(e3) { + return this.truncatesToMaxLength = e3, this; + } + get patternString() { + return this._patternString; + } + setLiteralPattern(e3, t3) { + let i3; + this._patternString = h.ParameterValidator.expectString(e3, () => p.ParameterInfo.createPropertySet(this.className, "setLiteralPattern", "patternString")); + try { + i3 = new RegExp(this._patternString); + } catch (e4) { + return s.error(`StringBasedFacets.setLiteralPattern: invalid regular expression pattern: ${this._patternString}`), this._patternString = void 0, this._literalPatternRegexp = void 0, this._literalPatternMismatchMessage = void 0, this; + } + return this._literalPatternRegexp = i3, this._literalPatternMismatchMessage = h.ParameterValidator.expectString(t3, () => p.ParameterInfo.createPropertySet(this.className, "setLiteralPattern", "literalMismatchMessage")), this; + } + } + t2.default = f, n2.__decorate([(0, d.enumerable)(true), n2.__metadata("design:type", Boolean), n2.__metadata("design:paramtypes", [])], f.prototype, "allowEmpty", null), n2.__decorate([(0, d.enumerable)(true), n2.__metadata("design:type", Number), n2.__metadata("design:paramtypes", [Object])], f.prototype, "maxLength", null), n2.__decorate([(0, d.enumerable)(true), n2.__metadata("design:type", Number), n2.__metadata("design:paramtypes", [Object])], f.prototype, "minLength", null), n2.__decorate([(0, d.enumerable)(true), n2.__metadata("design:type", Number), n2.__metadata("design:paramtypes", [Number])], f.prototype, "preferRadioButtonsCount", null), n2.__decorate([(0, d.enumerable)(true), n2.__metadata("design:type", Boolean), n2.__metadata("design:paramtypes", [])], f.prototype, "useButtonSwitcher", null), n2.__decorate([(0, d.enumerable)(true), n2.__metadata("design:type", Boolean), n2.__metadata("design:paramtypes", [Object])], f.prototype, "trim", null), n2.__decorate([(0, d.enumerable)(true), n2.__metadata("design:type", Boolean), n2.__metadata("design:paramtypes", [Object])], f.prototype, "warnOnEmpty", null), n2.__decorate([(0, d.enumerable)(true), n2.__metadata("design:type", Boolean), n2.__metadata("design:paramtypes", [])], f.prototype, "isAddressField", null), n2.__decorate([(0, d.enumerable)(true), n2.__metadata("design:type", Boolean), n2.__metadata("design:paramtypes", [Object])], f.prototype, "truncatesToMaxLength", null), n2.__decorate([(0, d.enumerable)(true), n2.__metadata("design:type", String), n2.__metadata("design:paramtypes", [])], f.prototype, "patternString", null); + }, 70339: (e2, t2, i2) => { + const n2 = i2(2210), r2 = i2(13240), { collectInputActionType: o } = i2(30801), a = i2(31178), s = i2(7401), l = i2(35966); + function u() { + Object.defineProperties(this, { _interDigitTimeout: { writable: true }, _noEntryTimeout: { writable: true }, _numberOfDigitsMax: { writable: true }, _numberOfDigitsMin: { writable: true }, _prompts: { writable: true }, _resultData: { writable: true }, _terminatingCharacter: { writable: true }, _verificationType: { writable: true }, _verificationPrompts: { writable: true }, _includeTerminatingDtmfInResultData: { writable: true }, _acceptJustStar: { writable: true }, _acceptJustPound: { writable: true } }), this.verification = void 0, u.baseConstructor.apply(this, arguments); + } + r2.extend(u, o, true), Object.defineProperties(u.prototype, { pasteReIdOrRename: { value: function(e3) { + u._super.pasteReIdOrRename.apply(this, arguments), this.interDigitTimeout.pasteReIdOrRename(e3), this.noEntryTimeout.pasteReIdOrRename(e3), this.numberOfDigitsMax.pasteReIdOrRename(e3), this.numberOfDigitsMin.pasteReIdOrRename(e3), this.prompts.pasteReIdOrRename(e3), this.resultData.pasteReIdOrRename(e3), this.verificationPrompts.pasteResolveOldToNewValues(e3); + } }, pasteResolveOldToNewValues: { value: function(e3) { + u._super.pasteResolveOldToNewValues.apply(this, arguments), this.interDigitTimeout.pasteResolveOldToNewValues(e3), this.noEntryTimeout.pasteResolveOldToNewValues(e3), this.numberOfDigitsMax.pasteResolveOldToNewValues(e3), this.numberOfDigitsMin.pasteResolveOldToNewValues(e3), this.prompts.pasteResolveOldToNewValues(e3), this.resultData.pasteResolveOldToNewValues(e3), this.verificationPrompts.pasteResolveOldToNewValues(e3); + } }, interDigitTimeout: { enumerable: true, get: function() { + return this._interDigitTimeout; + }, set: function(e3) { + this._interDigitTimeout = this.reviveItem(e3, s); + } }, noEntryTimeout: { enumerable: true, get: function() { + return this._noEntryTimeout; + }, set: function(e3) { + this._noEntryTimeout = this.reviveItem(e3, s); + } }, numberOfDigitsMax: { enumerable: true, get: function() { + return this._numberOfDigitsMax; + }, set: function(e3) { + this._numberOfDigitsMax = this.reviveItem(e3, s); + } }, numberOfDigitsMin: { enumerable: true, get: function() { + return this._numberOfDigitsMin; + }, set: function(e3) { + this._numberOfDigitsMin = this.reviveItem(e3, s); + } }, prompts: { enumerable: true, get: function() { + return this._prompts; + }, set: function(e3) { + this._prompts = this.reviveItem(e3, n2); + } }, resultData: { enumerable: true, get: function() { + return this._resultData; + }, set: function(e3) { + this._resultData = this.reviveItem(e3, s); + } }, terminatingCharacter: { enumerable: true, get: function() { + return this._terminatingCharacter; + }, set: function(e3) { + this._terminatingCharacter = this.reviveEnum(e3, a); + } }, verificationType: { enumerable: true, get: function() { + return this._verificationType; + }, set: function(e3) { + this._verificationType = this.reviveEnum(e3, l); + } }, verificationPrompts: { enumerable: true, get: function() { + return this._verificationPrompts; + }, set: function(e3) { + this._verificationPrompts = this.reviveItem(e3, n2); + } }, includeTerminatingDtmfInResultData: { enumerable: true, get: function() { + return this._includeTerminatingDtmfInResultData; + }, set: function(e3) { + this._includeTerminatingDtmfInResultData = this.reviveItem(e3, s); + } }, acceptJustStar: { enumerable: true, get: function() { + return this._acceptJustStar; + }, set: function(e3) { + this._acceptJustStar = this.reviveItem(e3, s); + } }, acceptJustPound: { enumerable: true, get: function() { + return this._acceptJustPound; + }, set: function(e3) { + this._acceptJustPound = this.reviveItem(e3, s); + } } }), e2.exports = u; + }, 70380: (e2, t2, i2) => { + const n2 = i2(92140), r2 = i2(13240), o = i2(90807); + function a() { + Object.defineProperties(this, { _inputs: { writable: true }, _outputs: { writable: true } }), this.taskReference = void 0, this.taskName = void 0, a.baseConstructor.apply(this, arguments); + } + r2.extend(a, "BaseTaskReferenceActionModel"), Object.defineProperties(a.prototype, { pasteReIdOrRename: { value: function(e3) { + a._super.pasteReIdOrRename.apply(this, arguments); + const t3 = this.pasteResolveReferenceAndName(e3, "task", this.taskReference, this.taskName); + if (this.taskReference = t3.reference, this.taskName = t3.name, this.inputs) for (let t4 = 0; t4 < this.inputs.length; t4++) this.inputs[t4].pasteReIdOrRename(e3); + if (this.outputs) for (let t4 = 0; t4 < this.outputs.length; t4++) this.outputs[t4].pasteReIdOrRename(e3); + } }, _removeUnmatchedDataPairsByName: { value: function(e3, t3) { + if (n2.isArray(e3) && n2.isArray(t3)) for (let i3 = e3.length - 1; i3 >= 0; i3--) { + if (!e3[i3].name) continue; + const r3 = e3[i3].name.toLowerCase(); + n2.find(t3, (e4) => { + if (e4.name) return e4.name.toLowerCase() === r3; + }) || e3.splice(i3, 1); + } + } }, pasteResolveOldToNewValues: { value: function(e3) { + a._super.pasteResolveOldToNewValues.apply(this, arguments); + const t3 = this.pasteResolveReferenceAndName(e3, "task", this.taskReference, this.taskName); + if (this.taskReference = t3.reference, this.taskName = t3.name, this.inputs) for (let t4 = 0; t4 < this.inputs.length; t4++) this.inputs[t4].pasteResolveOldToNewValues(e3); + if (this.outputs) for (let t4 = 0; t4 < this.outputs.length; t4++) this.outputs[t4].pasteResolveOldToNewValues(e3); + const i3 = n2.find(e3.pasteContext.destFlowViewModel.tasks, (e4) => e4.id === this.taskReference); + i3 && (this.inputs && this._removeUnmatchedDataPairsByName(this.inputs, i3.getInputVariables()), this.outputs && this._removeUnmatchedDataPairsByName(this.outputs, i3.getOutputVariables())); + } }, inputs: { enumerable: true, get: function() { + return this._inputs; + }, set: function(e3) { + this._inputs = this.reviveArray(e3, o); + } }, outputs: { enumerable: true, get: function() { + return this._outputs; + }, set: function(e3) { + this._outputs = this.reviveArray(e3, o); + } } }), e2.exports = a; + }, 70425: (e2) => { + e2.exports = { MISSING_DIVISION_PERMISSION: "You do not have the permission '%(permission)s' required to perform this action.", BAD_CREDENTIALS: "You are not logged in", BULK_MOVE_NO_PERMISSION_DIVISION: "Cannot move objects into the division '%(division)', the user does not have permission", BULK_MOVE_UNABLE_TO_MOVE: "Failed to move all requested objects to division '%(division)'", FLOW_DELETE_FAIL: "Failed to delete the saved version", FLOW_EDGE_PUBLISH_FAIL: "The flow failed to publish", FLOW_IS_LOCKED: "The flow is locked by a different user.", FLOW_NO_CONFIG_AVAILABLE: "Flow has no saved or checked-in configuration", FLOW_UNABLE_TO_LOCK: "Unable to lock flow.", FLOW_SAVE_FAIL: "Failed to save the flow", INVALID_FLOW_PUBLISH: "There was no valid flow version to publish", NO_PUBLISHED_FLOW_AVAILABLE: "Unable to publish IVR without a published flow", NOT_FOUND: "Not found", ARCHITECT_AUTH_TOKEN_MISSING: "This operation cannot be performed without an authorization token.", ARCHITECT_BATCH_DELETE_FAILED: "At least one object in the batch could not be deleted.", ARCHITECT_BATCH_TOO_LARGE: "Flow batch exceeds the maximum size of %(size)s items.", ARCHITECT_BOT_FLOW_INVALID_OPERATION: "Cannot perform requested operation on a bot flow.", ARCHITECT_COMMON_MODULE_FLOW_INVALID_OPERATION: "Cannot perform requested operation on a common module flow.", ARCHITECT_DATABASE_THROUGHPUT_EXCEEDED: "Database too busy. Please try again.", ARCHITECT_DEBUG_FLOW_INVALID_OPERATION: "Cannot perform requested operation on a debug flow.", ARCHITECT_DEFAULT_FLOW_CANNOT_DEACTIVATE: "Cannot deactivate default flow '%(name)s'.", ARCHITECT_DEFAULT_FLOW_CANNOT_DELETE: "Cannot delete the default in-queue flow.", ARCHITECT_DEFAULT_VOICEMAIL_FLOW_CANNOT_DEACTIVATE: "Cannot deactivate the default voicemail flow.", ARCHITECT_DEFAULT_VOICEMAIL_FLOW_CANNOT_DELETE: "Cannot delete the default voicemail flow.", ARCHITECT_DELETE_NOT_SUPPORTED: "Delete is not supported for '%(object)'.", ARCHITECT_DEPENDENCIES_BUILD_IN_PROGRESS: "A build of dependency information is already in progress.", ARCHITECT_DEPENDENCY_OBJECT_IN_USE: "'%(name)s' cannot be deleted because other objects depend on it.", ARCHITECT_DEPENDENCY_OBJECT_IN_USE_BY_EMAIL_ROUTE: "'%(name)s' cannot be deleted because it is in use by one or more email routes.", ARCHITECT_DEPENDENCY_OBJECT_IN_USE_BY_FLOW: "'%(name)s' cannot be deleted because it is in use by one or more flows.", ARCHITECT_DEPENDENCY_OBJECT_IN_USE_BY_IVR_CONFIGURATION: "'%(name)s' cannot be deleted because it is in use by one or more IVR configurations.", ARCHITECT_DEPENDENCY_OBJECT_IN_USE_BY_QUEUE: "'%(name)s' cannot be deleted because it is in use by one or more queues.", ARCHITECT_DEPENDENCY_OBJECT_IN_USE_BY_RECORDING_POLICY: "'%(name)s' cannot be deleted because it is in use by one or more recording quality.", ARCHITECT_DEPENDENCY_INVALID_FILTER: "Invalid filter '%(filter)s' was specified.", ARCHITECT_DEPENDENCY_OBJECT_INVALID_TYPE: "Invalid dependency type '%(type)s' was specified.", ARCHITECT_DEPENDENCY_OBJECT_NAME_NOT_SPECIFIED: "A name was not specified for the dependency object search.", ARCHITECT_DEPENDENCY_OBJECT_NOT_FOUND: "Could not find the dependency object for the specified ID and version.", ARCHITECT_DEPENDENCY_OBJECT_NOT_VERSIONED: "The dependency object type '%(type)' is not a versioned dependency type.", ARCHITECT_DEPENDENCY_OBJECT_VERSION_NOT_SPECIFIED: "A version was not specified for the dependency object.", ARCHITECT_DEPENDENCY_OBJECT_TYPE_NOT_SPECIFIED: "An object type was not specified.", ARCHITECT_DEPENDENCY_INVALID_TYPE: "An invalid dependency type was specified.", ARCHITECT_DEPENDENCY_UNAVAILABLE_TYPE: "Unavailable dependency type '%(type)' was specified.", ARCHITECT_DIALOG_ENGINE_BOT_FETCH_FAILED: "Failed to fetch the Dialog Engine bot '%(botId)'", ARCHITECT_DIALOG_ENGINE_BOT_NOT_FOUND: "Could not find the Dialog Engine bot '%(botId)'", ARCHITECT_DIALOG_ENGINE_BOT_VERSION_FETCH_FAILED: "Failed to fetch the Dialog Engine bot '%(botId)' version '%(botVersionId)'", ARCHITECT_DIALOG_ENGINE_BOT_VERSIONS_FETCH_FAILED: "Failed to fetch the versions for the Dialog Engine bot '%(botId)'", ARCHITECT_DIALOG_ENGINE_BOT_VERSION_NOT_FOUND: "Could not find the Dialog Engine bot '%(botId)' version '%(botVersionId)'", ARCHITECT_DIGITAL_BOT_FLOW_INVALID_OPERATION: "Cannot perform requested operation on a digital bot flow.", ARCHITECT_DIVISION_INVALID: "The provided division ID '%(division)' is invalid.", ARCHITECT_DIVISION_REGISTRATION_FAILED: "Failed to register the object type '%(type)' to the division '%(division)'", ARCHITECT_DIVISION_VERIFY_FAILED: "Failed to validate the provided division ID.", ARCHITECT_EXTERNAL_FLOW_CHANGE_NOTIFICATION_ERROR: "A backend service error occurred while sending out a change notification for flow '%(name)s'.", ARCHITECT_EXTERNAL_ORG_QUERY_ERROR: "Failed querying backend service for organization details.", ARCHITECT_FLOW_CANNOT_CHECKIN_INVALID_DEPENDENCY: "Flow '%(name)s' cannot be checked in because an unavailable dependency type '%(type)s' was included in the list of dependencies", ARCHITECT_FLOW_CANNOT_CHECKIN_NONSECURE_TTS_ENGINE: "Secure flow '%(name)s' cannot be checked in because the non-secure text to speech engine '%(engine)s' was included in the list of dependencies", ARCHITECT_FLOW_CANNOT_CREATE_INVALID_LANGUAGE_PROVIDED: "Flow '%(name)' cannot be created because an invalid supported language was specified", ARCHITECT_FLOW_CANNOT_CREATE_NOT_USER_CREATABLE: "Flow '%(name)' cannot be created because the flow type '%(type)' is not user creatable", ARCHITECT_FLOW_CANNOT_CREATE_TYPE_MAX_EXCEEDED: "Flow '%(name)' of type '%(type)' cannot be created because the maximum number of flows allowed for that type is %(count).", ARCHITECT_FLOW_CANNOT_CREATE_UNSUPPORTED_LANGUAGE_PROVIDED: "Flow '%(name)' cannot be created because an unsupported language was specified", ARCHITECT_FLOW_CANNOT_CREATE_WORKTYPE_USED_IN_EXISTING_FLOW: "Flow '%(name)s' cannot be created because another Workitem flow already references the same Worktype (ID: '%(worktypeId)s'). You may only have one Workitem flow per Worktype.", ARCHITECT_FLOW_CANNOT_DELETE_USED_IN_EMERGENCY_GROUPS: "Flow '%(name)s' cannot be deleted due to being used by one or more emergency groups.", ARCHITECT_FLOW_CANNOT_DELETE_USED_IN_FLOWS: "Flow '%(name)s' cannot be deleted due to being used by one or more flows", ARCHITECT_FLOW_CANNOT_DELETE_USED_IN_COMPOSER_SCRIPTS: "Flow '%(name)s' cannot be deleted due to being used by one or more Composer script(s).", ARCHITECT_FLOW_EXCEEDED_MAX_AMOUNT: "The flow cannot be created because its creation would exceed the maximum number of flows allowed for this organization which is %(count).", ARCHITECT_EXTERNAL_PUBLISH_ERROR: "A backend service error occurred while publishing flow '%(name)s'.", ARCHITECT_FEATURE_TOGGLE_UNAVAILABLE: "The feature toggle '%(featureToggle)' is not enabled in this organization.", ARCHITECT_FEATURE_UNAVAILABLE: "The '%(feature)' feature is not enabled in this organization.", ARCHITECT_FLOW_ALREADY_EXISTS: "An flow of %(type)s named '%(name)s' already exists.", ARCHITECT_FLOW_ASSOCIATE_WORKTYPE_FAILED: "Failed to associate the flow '%(name)s' with the Worktype (ID: '%(worktypeId)s').", ARCHITECT_FLOW_CANNOT_ACTIVATE_MISSING_DEPENDENCIES: "Flow '%(name)s' version '%(version)s' cannot be activated due to missing dependencies (count: '%(count)s').", ARCHITECT_FLOW_CANNOT_CHECKIN_MISSING_CONFIG: "Flow '%(name)s' cannot be checked in because there is no saved configuration.", ARCHITECT_FLOW_CANNOT_DEACTIVATE_USED_BY_MESSAGE_ADDRESSES: "Flow '%(name)s' cannot be deactivated due to being used by '%(count)s' message address(es).", ARCHITECT_FLOW_CANNOT_DEACTIVATE_USED_IN_COMPOSER_SCRIPTS: "Flow '%(name)s' cannot be deactivated due to being used by one or more Composer script(s).", ARCHITECT_FLOW_CANNOT_DEACTIVATE_USED_IN_EMAIL_ROUTES: "Flow '%(name)s' cannot be deactivated due to being used by one or more email routes.", ARCHITECT_FLOW_CANNOT_DEACTIVATE_USED_IN_EMERGENCY_GROUPS: "Flow '%(name)s' cannot be deactivated due to being used by one or more emergency groups.", ARCHITECT_FLOW_CANNOT_DEACTIVATE_USED_IN_IVR_CONFIGS: "Flow '%(name)s' cannot be deactivated due to being used by one or more IVR configurations.", ARCHITECT_FLOW_CANNOT_DEACTIVATE_USED_IN_PE_ACTION_MAPS: "Flow '%(name)s' cannot be deactivated due to being used by '%(count)s' predictive engagement action map(s).", ARCHITECT_FLOW_CANNOT_DEACTIVATE_USED_IN_QUEUES: "Flow '%(name)s' cannot be deactivated due to being used by one or more queues.", ARCHITECT_FLOW_CANNOT_DEACTIVATE_USED_IN_RECORDING_POLICIES: "Flow '%(name)s' cannot be deactivated due to being used by one or more recording quality.", ARCHITECT_FLOW_CANNOT_DEACTIVATE_USED_IN_WIDGETS: "Flow '%(name)s' cannot be deactivated due to being used by %(count)s widget(s).", ARCHITECT_FLOW_CANNOT_DEBUG: "Cannot enable debug for flow '%(name)s' due to missing publish data or debug settings.", ARCHITECT_FLOW_CANNOT_DEBUG_COMMON_MODULE_VERSION: "Cannot enable debug on the specified version. Only the current checked in version can be enabled for debug.", ARCHITECT_FLOW_CANNOT_DEBUG_INQUEUECALL: "Cannot enable debug on in-queue call flows.", ARCHITECT_FLOW_CANNOT_DEBUG_UNSUPPORTED_LANGUAGE: "Cannot enable debug for flow '%(name)s' because one or more of the languages specified in the flow are not supported for debugging.", ARCHITECT_FLOW_CANNOT_DEBUG_UNSUPPORTED_TTS_LANGUAGE: "Cannot enable debug for flow '%(name)s' because one or more of the languages specified in the flow are not supported for text-to-speech.", ARCHITECT_FLOW_CANNOT_DELETE_USED_BY_MESSAGE_ADDRESSES: "Flow '%(name)s' cannot be deleted due to being used by %(count)s message address(es).", ARCHITECT_FLOW_CANNOT_DELETE_CLIENT_DOES_NOT_HAVE_LOCK: "Flow '%(name)s' cannot be deleted because it is locked by client '%(client)s'.", ARCHITECT_FLOW_CANNOT_DELETE_USED_IN_EMAIL_ROUTES: "Flow '%(name)s' cannot be deleted due to being used by one or more email routes.", ARCHITECT_FLOW_CANNOT_DELETE_USED_IN_IVR_CONFIGS: "Flow '%(name)s' cannot be deleted due to being used by one or more IVR configurations.", ARCHITECT_FLOW_CANNOT_DELETE_USED_IN_PE_ACTION_MAPS: "Flow '%(name)s' cannot be deleted due to being used by %(count)s predictive engagement action map(s).", ARCHITECT_FLOW_CANNOT_DELETE_USED_IN_QUEUES: "Flow '%(name)s' cannot be deleted due to being used by one or more queues.", ARCHITECT_FLOW_CANNOT_DELETE_USED_IN_RECORDING_POLICIES: "Flow '%(name)s' cannot be deleted due to being used by one or more recording quality.", ARCHITECT_FLOW_CANNOT_DELETE_USED_IN_WIDGETS: "Flow '%(name)s' cannot be deleted due to being used by %(count)s widget(s).", ARCHITECT_FLOW_CANNOT_DELETE_USER_DOES_NOT_HAVE_LOCK: "Flow '%(name)s' cannot be deleted because it is locked by user '%(user)s'.", ARCHITECT_FLOW_CANNOT_PUBLISH_DEFAULT: "Cannot publish default version of flow '%(name)s'.", ARCHITECT_FLOW_CANNOT_PUBLISH_DIALOGFLOW_CX_PROFILE_GEN_FAILED: "Flow '%(name)' version '%(version)' cannot be published due to a failure to generate associated dialogflow CX conversation profiles", ARCHITECT_FLOW_CANNOT_PUBLISH_NLU_VERSION_TRAINING_FAILED: "Publish failed. The Natural Language Understanding configuration in this bot is taking longer to finish processing than is allowed for a flow publish operation. Please try again.", ARCHITECT_FLOW_CANNOT_PUBLISH_NLU_VERSION_UNTRAINED: "Publish failed. The Natural Language Understanding configuration in this bot was not successfully processed. Please try again.", ARCHITECT_FLOW_CANNOT_PUBLISH_MISSING_DEPENDENCIES: "Flow '%(name)s' version '%(version)s' cannot be published due to missing dependencies (count: '%(count)s').", ARCHITECT_FLOW_CANNOT_VALIDATE_INVALID_DEPENDENCY_TYPE: "Cannot validate flow because an invalid dependency type '%(type)' was included in the list of dependencies", ARCHITECT_FLOW_CANNOT_VALIDATE_INVALID_TYPE: "Cannot validate flow because it doesn't exist and the type specified is invalid.", ARCHITECT_FLOW_CANNOT_VALIDATE_MISSING_TYPE: "Cannot validate flow because it doesn't exist and the type was not specified.", ARCHITECT_FLOW_DATA_INVALID_FORMAT: "Flow '%(name)s' version '%(version)s' data content is in an invalid format.", ARCHITECT_FLOW_DATA_MISSING: "Flow '%(name)s' data content is missing.", ARCHITECT_FLOW_DEBUG_INVALID_VERSION: "Invalid version number '%(version)s' was specified for flow debug.", ARCHITECT_FLOW_DELETED: "Flow '%(name)s' has been deleted.", ARCHITECT_FLOW_DISSOCIATE_WORKTYPE_FAILED: "Failed to dissociate the flow '%(name)s' with the Worktype (ID: '%(worktypeId)s').", ARCHITECT_FLOW_FAILED_NLU_INFO_FETCH: "Failed to fetch the NLU domain information for flow '%(name)' version '%(version)'", ARCHITECT_FLOW_INVALID_ID: "The flow ID specified '%(id)' is invalid", ARCHITECT_FLOW_INVALID_TYPE: "Flow '%(name)s' has invalid type '%(type)s'.", ARCHITECT_FLOW_INVALID_VAR_PARAM_TYPE: "The flow has an %(direction) variable, '%(varName)', with an invalid/unsupported type: %(varType)", ARCHITECT_FLOW_LOCKED_BY_CLIENT: "Flow '%(name)s' is locked by client %(client)s.", ARCHITECT_FLOW_LOCKED_BY_USER: "Flow '%(name)s' is locked by user %(user)s.", ARCHITECT_FLOW_MANIFEST_INVALID_FORMAT: "Flow manifest is in an invalid format.", ARCHITECT_FLOW_MILESTONE_ALREADY_EXISTS: "Flow milestone '%(name)' already exists.", ARCHITECT_FLOW_MILESTONE_EXCEEDED_MAX_AMOUNT: "Could not create flow milestone since max of %(max) has been reached.", ARCHITECT_FLOW_MILESTONE_NOT_FOUND: "Could not find flow milestone with specified ID.", ARCHITECT_FLOW_MILESTONE_VALIDATE_FAILED: "Failed to validate flow milestone with name '%(name)'", ARCHITECT_FLOW_MILESTONE_VALIDATE_FAILED_INVALID_NAME_SPACES: "Failed to validate flow milestone due to invalid name '%(name)' that contained leading or trailing whitespaces.", ARCHITECT_FLOW_MILESTONE_VALIDATE_FAILED_INVALID_NAME_NO_ALPHA: "Failed to validate flow milestone due to invalid name '%(name)'. Names must contain at least one alphanumeric character.", ARCHITECT_FLOW_MILESTONE_VALIDATE_FAILED_MISSING_NAME: "Failed to validate flow milestone due to missing name.", ARCHITECT_FLOW_NOT_CHECKED_IN: "Cannot publish flow '%(name)s'. It must be checked in first.", ARCHITECT_FLOW_NOT_FOUND: "Could not find flow with specified ID.", ARCHITECT_FLOW_NOT_LOCKED: "Flow '%(name)s' is not locked by requesting user.", ARCHITECT_FLOW_NOT_LOCKED_BY_CLIENT: "Flow '%(name)s' is not locked by client '%(client)s'.", ARCHITECT_FLOW_NOT_LOCKED_BY_USER: "Flow '%(name)s' is not locked by user '%(user)s'.", ARCHITECT_FLOW_NOT_PUBLISHABLE: "Flow '%(name)' version '%(version)' cannot be published.", ARCHITECT_FLOW_OUTCOME_ALREADY_EXISTS: "Flow outcome '%(name)' already exists.", ARCHITECT_FLOW_OUTCOME_CREATE_FAILED: "Flow Outcome failed to be created.", ARCHITECT_FLOW_OUTCOME_NOT_FOUND: "Could not find flow outcome with specified ID.", ARCHITECT_FLOW_OUTCOME_EXCEEDED_MAX_AMOUNT: "Could not create flow outcome since max of %(max) has been reached.", ARCHITECT_FLOW_OUTCOME_VALIDATE_FAILED: "Failed to validate flow outcome with name '%(name)'", ARCHITECT_FLOW_OUTCOME_VALIDATE_FAILED_INVALID_NAME: "Failed to validate flow outcome due to the invalid name '%(name)' that contained leading or trailing whitespaces.", ARCHITECT_FLOW_OUTCOME_VALIDATE_FAILED_INVALID_NAME_NO_ALPHA: "Failed to validate flow outcome due to invalid name '%(name)'. Names must contain at least one alphanumeric character.", ARCHITECT_FLOW_OUTCOME_VALIDATE_FAILED_MISSING_NAME: "Failed to validate flow outcome due to missing name.", ARCHITECT_FLOW_OUTCOME_VALIDATE_FAILED_MISSING_DESCRIPTION: "Failed to validate flow outcome with name '%(name)' due to missing description.", ARCHITECT_FLOW_SAVE_FAILED: "Could not save flow data to permanent storage.", ARCHITECT_FLOW_SERIALIZE_FAILED: "Could not serialize flow data.", ARCHITECT_FLOWS_QUERY_FAILED: "The query to retrieve a list of flows failed.", ARCHITECT_FLOWS_QUERY_RESULTS_NOT_FOUND: "Could not find the flows query results", ARCHITECT_FLOW_TEMP_FILE_OPEN_FAILED: "Could not open temp file for flow data.", ARCHITECT_FLOW_TEMP_FILE_SAVE_FAILED: "Could not save flow data to temp file.", ARCHITECT_FLOW_VALIDATE_FAILED: "Failed to validate flow '%(name)s'.", ARCHITECT_FLOW_VALIDATE_FAILED_INVALID_NAME_CONTAINS_DEBUG: "Failed to validate flow due to invalid name '%(name)s'. Flow names must not end with '-debug'.", ARCHITECT_FLOW_VALIDATE_FAILED_INVALID_NAME_CONTAINS_SLASH: "Failed to validate flow due to invalid name '%(name)s'. Flow names must not contain forward slashes.", ARCHITECT_FLOW_VALIDATE_FAILED_INVALID_NAME_NO_ALPHA: "Failed to validate flow due to invalid name '%(name)s'. Names must contain at least one alphanumeric character.", ARCHITECT_FLOW_VALIDATE_FAILED_INVALID_NAME_TOO_LONG: "Failed to validate flow due to invalid name '%(name)s'. Names must contain no more than 200 characters.", ARCHITECT_FLOW_VALIDATE_FAILED_MISSING_NAME: "Failed to validate flow due to missing name.", ARCHITECT_FLOW_VALIDATE_FAILED_MISSING_TYPE: "Failed to validate flow with name '%(name)s' due to missing type.", ARCHITECT_FLOW_VALIDATE_FAILED_NAME: "Failed to validate flow due to missing or invalid name", ARCHITECT_FLOW_VARIABLE_MISSING: "Flow '%(name)s' cannot be published because variable '%(variable)s' is missing.", ARCHITECT_FLOW_VERSION_MISSING: "Flow '%(name)s' configuration version information is missing.", ARCHITECT_FLOW_VERSION_NOT_PUBLISHED: "Flow '%(name)s' version '%(version)s' has not been published.", ARCHITECT_GDPR_DELETE_FAILED: "The GDPR PII delete/redact operation failed.", ARCHITECT_GDPR_EXPORT_FAILED: "The GDPR PII export operation failed.", ARCHITECT_GDPR_OPERATION_FAILED: "The GDPR operation failed.", ARCHITECT_FLOW_VERSION_VALIDATE_FAILED_CONFIGURATION_VERSION: "Flow version object configuration version is missing or invalid.", ARCHITECT_GENERATED_FLOW_NOT_FOUND: "Could not find generated content for flow '%(name)' version '%(version)' with language '%(language)'.", ARCHITECT_GRAMMAR_ALREADY_EXISTS: "A Grammar with the name '%(name)s' already exists.", ARCHITECT_GRAMMAR_CREATE_FAILED: "Failed to create Grammar", ARCHITECT_GRAMMAR_DELETE_FAILED: "Failed to delete Grammar", ARCHITECT_GRAMMAR_EXCEEDED_MAX_AMOUNT: "Could not create Grammar since maximum number of grammars for this organization (%(max)s) has been reached.", ARCHITECT_GRAMMAR_FETCH_FAILED: "Failed to fetch Grammar.", ARCHITECT_GRAMMAR_LANGUAGE_ALREADY_EXISTS: "The language '%(language)s' already exists for the specified Grammar.", ARCHITECT_GRAMMAR_LANGUAGE_CREATE_FAILED: "Failed to create language '%(language)s' for the specified Grammar.", ARCHITECT_GRAMMAR_LANGUAGE_DELETE_FAILED: "Failed to delete language '%(language)s' for the specified Grammar.", ARCHITECT_GRAMMAR_LANGUAGE_FETCH_FAILED: "Failed to fetch language '%(language)s' for the specified Grammar.", ARCHITECT_GRAMMAR_LANGUAGE_NOT_FOUND: "Could not find language '%(language)s' for the specified Grammar.", ARCHITECT_GRAMMAR_LANGUAGES_DELETE_FAILED: "Failed to delete all of the languages for the specified Grammar.", ARCHITECT_GRAMMAR_LANGUAGES_FETCH_FAILED: "Failed to fetch languages for the specified Grammar.", ARCHITECT_GRAMMAR_LANGUAGE_VALIDATE_FAILED_NO_LANGUAGE: "Failed to validate Grammar language, as no language was provided", ARCHITECT_GRAMMAR_NOT_FOUND: "Could not find Grammar with specified ID.", ARCHITECT_GRAMMAR_VALIDATE_FAILED: "Failed to validate Grammar with name '%(name)s'", ARCHITECT_GRAMMAR_VALIDATE_FAILED_INVALID_NAME_NO_ALPHA: "Failed to validate Grammar due to invalid name '%(name)s'. Names must contain at least one alphanumeric character.", ARCHITECT_GRAMMAR_VALIDATE_FAILED_INVALID_NAME_SPACES: "Failed to validate Grammar due to invalid name '%(name)s'. Names must not contain leading or trailing whitespaces.", ARCHITECT_GRAMMAR_VALIDATE_FAILED_INVALID_NAME_TOO_LONG: "Failed to validate Grammar due to invalid name '%(name)s'. Names must contain no more than 200 characters.", ARCHITECT_GRAMMAR_VALIDATE_FAILED_MISSING_NAME: "Failed to validate Grammar due to missing name.", ARCHITECT_HISTORY_RESULTS_NOT_FOUND: "Could not find the specified history results.", ARCHITECT_INBOUND_CALL_FLOW_INVALID_OPERATION: "Cannot perform requested operation on an inbound call flow.", ARCHITECT_INBOUND_CHAT_FLOW_INVALID_OPERATION: "Cannot perform requested operation on an inbound chat flow.", ARCHITECT_INBOUND_EMAIL_FLOW_INVALID_OPERATION: "Cannot perform requested operation on an inbound email flow.", ARCHITECT_INBOUND_SHORT_MESSAGE_FLOW_INVALID_OPERATION: "Cannot perform requested operation on an inbound short message flow.", ARCHITECT_INQUEUE_CALL_FLOW_INVALID_OPERATION: "Cannot perform requested operation on an inqueue call flow.", ARCHITECT_INQUEUE_EMAIL_FLOW_INVALID_OPERATION: "Cannot perform requested operation on an inqueue email flow.", ARCHITECT_INQUEUE_SHORT_MESSAGE_FLOW_INVALID_OPERATION: "Cannot perform requested operation on an inqueue message flow.", ARCHITECT_INVALID_QUERY_PARAMETER: "Query parameter '%(param)' has invalid value '%(value)'.", ARCHITECT_NO_PERMISSION: "The requested operation cannot be completed because the user does not have permission.", ARCHITECT_OBJECT_UPDATE_FAILED: "The database update for the object failed.", ARCHITECT_OBJECT_VALIDATE_FAILED: "Failed to validate object.", ARCHITECT_OBJECT_VALIDATE_FAILED_VALUE: "Failed to validate object due to invalid field value '%(value)s'.", ARCHITECT_OPERATION_ALREADY_IN_PROGRESS: "An operation is already in progress.", ARCHITECT_ORG_INVALID_ID: "The org ID specified '%(id)s' is invalid", ARCHITECT_OUTBOUND_CALL_FLOW_INVALID_OPERATION: "Cannot perform requested operation on an outbound call flow.", ARCHITECT_PENDING_OPERATION: "Cannot perform requested operation since object already has a pending operation.", ARCHITECT_PROMPT_ALREADY_EXISTS: "A prompt called '%(name)s' already exists.", ARCHITECT_PROMPT_CANNOT_DELETE_USED_IN_QUEUES: "Prompt '%(name)s' cannot be deleted due to being used by %(count)s queue configuration(s).", ARCHITECT_PROMPT_HAS_RESOURCES: "Cannot delete prompt '%(name)s' since it contains prompt resources.", ARCHITECT_PROMPT_NOT_FOUND: "Could not find prompt with specified ID.", ARCHITECT_PROMPT_RESOURCE_NOT_FOUND: "Could not find resource with language %(language)s in specified prompt.", ARCHITECT_PROMPT_RESOURCE_ALREADY_EXISTS: "Prompt '%(name)s' already has a resource with language %(language)s.", ARCHITECT_PROMPT_RESOURCE_AUDIO_CANNOT_DELETE: "Could not delete the audio for the prompt resource for %(language)s.", ARCHITECT_PROMPT_RESOURCE_CANNOT_DELETE: "Could not delete the prompt resource for the language %(language)s.", ARCHITECT_PROMPT_RESOURCE_INVALID_TAGS: "The specified tags are in an invalid format.", ARCHITECT_PROMPT_RESOURCE_TAGS_ALREADY_EXIST: "The specified tags already exist in another prompt resource.", ARCHITECT_PROMPT_RESOURCE_VALIDATE_FAILED: "Failed to validate prompt resource with language %(language)s.", ARCHITECT_PROMPT_RESOURCE_VALIDATE_FAILED_LANGUAGE: "Failed to validate prompt resource due to missing or invalid language.", ARCHITECT_PROMPT_VALIDATE_FAILED: "Failed to validate prompt '%(name)s'.", ARCHITECT_PROMPT_VALIDATE_FAILED_INVALID_NAME: "Failed to validate prompt due to invalid name '%(name)s'. Prompt names can only contain letters numbers and the underscore and must start with a letter or number.", ARCHITECT_PROMPT_VALIDATE_FAILED_INVALID_NAME_NO_ALPHA: "Failed to validate prompt due to invalid name '%(name)s'. Names must contain at least one alphanumeric character.", ARCHITECT_PROMPT_VALIDATE_FAILED_INVALID_NAME_TOO_LONG: "Failed to validate prompt due to invalid name '%(name)s'. Names must contain no more than 200 characters.", ARCHITECT_PROMPT_VALIDATE_FAILED_NAME: "Failed to validate prompt due to missing or invalid name.", ARCHITECT_PROMPT_VALIDATE_FAILED_MISSING_NAME: "Failed to validate prompt due to missing name.", ARCHITECT_PROPERTY_EXCEEDS_MAX_CHARACTER_LENGTH: "Property '%(property_name)' exceeds max character limit of %(limit)", ARCHITECT_QUERY_PARAMETER_MISSING: "Query parameter '%(param)s' is missing or empty.", ARCHITECT_REQUEST_HEADER_MISSING: "Request header '%(header)s' is missing or empty.", ARCHITECT_SECURE_CALL_FLOW_INVALID_OPERATION: "Cannot perform requested operation on a secure call flow.", ARCHITECT_SECURE_CALL_FLOW_NOT_SUPPORTED: "Secure call flows are not supported by the current product levels. One of the following is required: %(products).", ARCHITECT_SURVEY_INVITE_FLOW_INVALID_OPERATION: "Cannot perform requested operation on a survey invite flow.", ARCHITECT_SPEECH_FLOW_INVALID_OPERATION: "Cannot perform requested operation on a speech flow.", ARCHITECT_SYSTEM_FLOW_CANNOT_CREATE: "Users cannot create system flows.", ARCHITECT_SYSTEM_FLOW_NAME_OR_DESCRIPTION_ERROR: "System flow names and descriptions cannot be changed.", ARCHITECT_SYSTEM_PROMPT_NOT_FOUND: "Could not find system prompt with specified ID.", ARCHITECT_SYSTEM_PROMPT_RESOURCE_CANNOT_CREATE_NON_DEFAULT: "Cannot create a non-default resource for the language '%(language)s' because a default resource for that language doesn't exist. A default must be created first.", ARCHITECT_SYSTEM_PROMPT_RESOURCE_CANNOT_DELETE_DEFAULT: "Cannot delete the default resource for the language '%(language)s' because it will leave that language without a default resource.", ARCHITECT_SYSTEM_PROMPT_RESOURCE_INVALID_LANGUAGE: "The specified language is not valid.", ARCHITECT_SYSTEM_PROMPT_RESOURCE_OVERRIDE_CANNOT_DELETE: "Could not delete the system prompt override resource for the language '%(language).", ARCHITECT_SYSTEM_PROMPT_RESOURCE_LANG_MISSING: "A language was not specified in the request.", ARCHITECT_SYSTEM_PROMPT_RESOURCE_NOT_FOUND: "Could not find resource with language %(language)s in system prompt '%(name)s'.", ARCHITECT_SYSTEM_PROMPT_RESOURCE_OVERRIDE_ALREADY_EXISTS: "System prompt '%(name)s' already has an override for language %(language)s.", ARCHITECT_SYSTEM_PROMPT_RESOURCE_OVERRIDE_NOT_FOUND: "Could not find resource override with language %(language)s in specified system prompt.", ARCHITECT_USER_IN_QUEUE_FLOWS_DISABLED: "User-created in-queue flows are currently disabled.", ARCHITECT_VOICE_FLOW_INVALID_OPERATION: "Cannot perform requested operation on a voice flow.", ARCHITECT_VOICEMAIL_FLOW_INVALID_OPERATION: "Cannot perform requested operation on a voicemail flow.", ARCHITECT_WORKFLOW_INVALID_OPERATION: "Cannot perform requested operation on a workflow.", ARCHITECT_WORKITEM_INVALID_OPERATION: "Cannot perform requested operation on a workitem flow.", ARCHITECT_WORKTYPE_INVALID_ID: "The worktype ID specified '%(id)s' is invalid", ARCHITECT_WORKTYPE_FETCH_FAILED: "Failed to fetch the worktype '%(worktypeId)s'", ARCHITECT_WORKTYPE_NOT_FOUND: "Could not find the worktype '%(worktypeId)s'.", ARCHITECT_EXTERNAL_CALL_FAILURE: "A call to another backend service failed.", ARCHITECT_EXTERNAL_USER_QUERY_ERROR: "Failed querying backend service for information on user '%(user)s'.", ARCHITECT_TOO_MANY_REQUESTS: "We\u2019re handling a lot of requests right now. Please try again later.", ARCHITECT_UNSPECIFIED_ERROR: "An unknown or unspecified error occurred.", ARCHITECT_UNSUPPORTED_DATA_FIELD: "The provided data field '%(field)' is not supported.", ARCHITECT_UNSUPPORTED_FEATURE: "This feature '%(feature)' is not supported.", ARCHITECT_UNSUPPORTED_QUERY_PARAMETER: "The query parameter '%(parameter)' is not supported.", MISSING_PERMISSIONS: "The requested operation cannot be completed because the user does not have permission.", GEOCODING_INVALID_ADDRESS: "Invalid Geocoding Address." }; + }, 70518: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(81574)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "externalAppleInfo"; + } + get id() { + } + get displayTypeName() { + return "ArchValueExternalAppleInfo"; + } + get isArchValueExternalAppleInfo() { + return true; + } + } + t2.default = r2; + }, 70570: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(81574)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "customerSegment"; + } + get displayTypeName() { + return "ArchValueCustomerSegment"; + } + get name() { + return this._getAssignableProperty("name"); + } + get isArchValueCustomerSegment() { + return true; + } + } + t2.default = r2; + }, 70610: (e2, t2, i2) => { + const n2 = i2(47957), r2 = i2(17604).sprintf, o = {}, a = {}; + e2.exports = { addUnknownUser: function(e3, t3) { + const i3 = t3 ? a : o; + if (!i3[e3]) { + const o2 = Object.keys(i3).length + 1; + i3[e3] = r2(t3 ? n2.flow.unknownClientNumber : n2.flow.unknownUserNumber, o2); + } + }, getUnknownUserName: function(e3, t3) { + return (t3 ? a : o)[e3] || ""; + } }; + }, 70630: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.BaseConversationAttributeActionModel = void 0; + const n2 = i2(31635), r2 = i2(5894), o = i2(80295), a = n2.__importDefault(i2(7401)), s = i2(80295); + class l extends r2.BaseFailureOutputsActionModel { + constructor(e3) { + super(e3), (0, s.makeUnenumerable)(this, "_conversationCustomAttributeSchemaId"), (0, s.makeUnenumerable)(this, "_conversationCustomAttributeSchemaName"), (0, s.makeUnenumerable)(this, "_conversationId"); + } + get conversationCustomAttributeSchemaId() { + return this._conversationCustomAttributeSchemaId; + } + set conversationCustomAttributeSchemaId(e3) { + this._conversationCustomAttributeSchemaId = e3; + } + get conversationCustomAttributeSchemaName() { + return this._conversationCustomAttributeSchemaName; + } + set conversationCustomAttributeSchemaName(e3) { + this._conversationCustomAttributeSchemaName = e3; + } + get conversationId() { + return this._conversationId; + } + set conversationId(e3) { + this._conversationId = this.reviveItem(e3, a.default); + } + } + t2.BaseConversationAttributeActionModel = l, n2.__decorate([(0, o.enumerable)(true), n2.__metadata("design:type", String), n2.__metadata("design:paramtypes", [String])], l.prototype, "conversationCustomAttributeSchemaId", null), n2.__decorate([(0, o.enumerable)(true), n2.__metadata("design:type", String), n2.__metadata("design:paramtypes", [String])], l.prototype, "conversationCustomAttributeSchemaName", null), n2.__decorate([(0, o.enumerable)(true), n2.__metadata("design:type", Object), n2.__metadata("design:paramtypes", [Object])], l.prototype, "conversationId", null); + }, 70691: (e2, t2, i2) => { + const n2 = i2(13240), r2 = i2(7401), { getExternalOrganizationActionType: o } = i2(30801); + function a() { + Object.defineProperties(this, { _externalOrganizationId: { writable: true }, _externalOrganization: { writable: true } }), a.baseConstructor.apply(this, arguments); + } + n2.extend(a, o, true), Object.defineProperties(a.prototype, { pasteReIdOrRename: { value: function(e3) { + a._super.pasteReIdOrRename.apply(this, arguments), this.externalResult.pasteReIdOrRename(e3), this.externalId.pasteReIdOrRename(e3); + } }, pasteResolveOldToNewValues: { value: function(e3) { + a._super.pasteResolveOldToNewValues.apply(this, arguments), this.externalResult.pasteResolveOldToNewValues(e3), this.externalId.pasteResolveOldToNewValues(e3); + } }, externalId: { enumerable: true, get: function() { + return this._externalOrganizationId; + }, set: function(e3) { + this._externalOrganizationId = this.reviveItem(e3, r2); + } }, externalResult: { enumerable: true, get: function() { + return this._externalOrganization; + }, set: function(e3) { + this._externalOrganization = this.reviveItem(e3, r2); + } } }), e2.exports = a; + }, 70726: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.BriefFlowListManager = void 0; + const n2 = i2(6109), r2 = i2(81801), o = i2(37345); + class a extends n2.FlowListManager { + constructor() { + super(...arguments), this._rawServerCache = {}, this.apiCallList = o.getFlowsDivisionViews, this.isBriefObjectManager = true, this.noApiCallSingle = true; + } + get requiredAuth() { + return r2.externalAuthorizations.authStrings.flowSearch; + } + } + t2.BriefFlowListManager = a; + }, 70728: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(20692)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "assignedCustomerSegmentCollection"; + } + get displayTypeName() { + return "ArchVariableAssignedCustomerSegmentCollection"; + } + get initialValue() { + return this._initialValue; + } + get isArchVariableAssignedCustomerSegmentCollection() { + return true; + } + } + t2.default = r2; + }, 70790: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.default = function(e3) { + const t3 = new n2.default(null); + return t3.variables = [], e3 && (t3.defaultLanguage = e3), t3.flowMetaData = new r2({ features: [], flowDocumentVersion: "1.0", minimumServerVersion: "1.0", ttsDataVersion: "1.0" }), t3.flowSequenceItemList = [], t3; + }; + const n2 = i2(31635).__importDefault(i2(38416)), r2 = i2(89266); + }, 70812: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.ExpressionTypeLineItemOptions = void 0; + const n2 = i2(65615); + class r2 extends n2.BaseExpressionTypeCollectionOptions { + static create(e3, t3) { + return new this(t3).invokeOptionsCallback(e3); + } + constructor(e3) { + super(e3); + } + get isExpressionTypeLineItemsOptions() { + return true; + } + get className() { + return "ExpressionTypeLineItemOptions"; + } + } + t2.ExpressionTypeLineItemOptions = r2; + }, 70826: (e2, t2, i2) => { + "use strict"; + const n2 = i2(31635), r2 = i2(75255), o = i2(81516), a = n2.__importDefault(i2(27203)), s = i2(32282), l = i2(12179), u = n2.__importDefault(i2(97891)), d = n2.__importDefault(i2(36825)), c = i2(80428), p = i2(47957); + class _ extends d.default { + constructor(e3, t3) { + super(e3), this.scheduleGroupManager = s.scheduleGroupManager, this._loadModel(t3); + } + _loadModel(e3) { + super._loadModel(e3), !this.scheduleGroup.text && this.model.scheduleGroupName && this.model.scheduleGroupId && this.scheduleGroup.update(this.model.scheduleGroupName, this.model.scheduleGroupId), this.scheduleGroup.text && this.model.scheduleGroupName && delete this.model.scheduleGroupName, this.scheduleGroup.text && this.model.scheduleGroupId && delete this.model.scheduleGroupId; + } + _preDestroy() { + super._preDestroy(), this.scheduleGroupManager.tryRemoveItemFromFlowMetadata(this, this.scheduleGroupId); + } + static get branchInfo() { + return a.default.openClosedHolidayEmergency; + } + _initializeDesignTime() { + super._initializeDesignTime(), !this.scheduleGroupName && !this.scheduleGroupId || this.scheduleGroup.text || (this.scheduleGroup.update(this.scheduleGroupName, this.scheduleGroupId), this.scheduleGroupName = void 0, this.scheduleGroupId = void 0), this.emergencyGroup.options.setDescriptionInfo(p.evaluateSchedules.emergencyGroup, p.evaluateSchedules.emergencyGroupDescription).setDescriptionAdditionalInfoSection({ title: void 0, entries: [p.generic.optional] }); + } + getConfiguration(e3, t3) { + return e3 = super.getConfiguration(e3, t3), this.scheduleGroup.isLiteralMode && this.scheduleGroup.text ? (this.scheduleGroupId = this.scheduleGroup.val, this.scheduleGroupName = this.scheduleGroup.text) : (this.scheduleGroupId = void 0, this.scheduleGroupName = void 0), e3; + } + static get managedProperties() { + return [{ description: p.evaluateSchedules.inServiceSchedulesDescription, label: p.evaluateSchedules.inServiceSchedules, options: o.ExpressionTypeStringOptions.create((e3) => e3.setIninTestingField("inServiceSchedules").setIsOptional(true).setIsCollection(true).setAsOutput()), yamlOptions: _.createYamlOptions("inServiceSchedules", (e3) => e3.setExportOrder(50)), property: "inServiceSchedules", type: c.expressionTypeNames.string }, { property: "scheduleGroup", label: p.evaluateSchedules.scheduleGroup, type: c.expressionTypeNames.scheduleGroup, options: r2.ExpressionTypeScheduleGroupOptions.create((e3) => e3.setIninTestingField("scheduleGroup")) }]; + } + postProcessYamlConfig(e3, t3, i3) { + var n3, r3, o2, a2; + super.postProcessYamlConfig(e3, t3, i3), (null === (r3 = null === (n3 = e3.scheduleGroup) || void 0 === n3 ? void 0 : n3.lit) || void 0 === r3 ? void 0 : r3.name) && (e3.scheduleGroup.name = e3.scheduleGroup.lit.name), (null === (a2 = null === (o2 = e3.emergencyGroup) || void 0 === o2 ? void 0 : o2.lit) || void 0 === a2 ? void 0 : a2.name) && (e3.emergencyGroup.name = e3.emergencyGroup.lit.name); + } + setScheduleGroup(e3) { + this.scheduleGroup.update(e3.name, e3.id); + } + get selectedScheduleGroup() { + if (this.scheduleGroupId) return this.scheduleGroupManager.getItem(this.scheduleGroupId); + } + } + _.info = u.default.createActionInfo({ actionClass: _, canBeInTask: true, helpTopic: l.helpTopics.actions.evaluateScheduleGroup, modelClass: i2(41188), name: p.actions.evaluateScheduleGroup, scriptingName: "ArchActionEvaluateScheduleGroup" }), t2.A = _; + }, 70838: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(54063)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "lineItemCollection"; + } + get displayTypeName() { + return "ArchValueLineItemCollection"; + } + get isArchValueLineItemCollection() { + return true; + } + } + t2.default = r2; + }, 70857: (e2) => { + "use strict"; + e2.exports = require("os"); + }, 71002: (e2, t2, i2) => { + "use strict"; + const n2 = i2(31635), r2 = i2(80428), o = i2(81516), a = i2(1115), s = i2(12179), l = i2(12457), u = n2.__importDefault(i2(97891)), d = n2.__importDefault(i2(5730)), c = i2(47957), p = i2(89720); + class _ extends d.default { + constructor(e3, t3) { + super(e3.parentFlow, e3), this.uuiData = null, this._loadModel(t3); + } + _loadModel(e3) { + super._loadModel(e3), this.mode || (this.mode = p.transfer); + } + getDetails() { + const e3 = 0 === this.mode.value ? c.setUUIData.transferDropDownText : c.setUUIData.disconnectDropDownText; + return new l.ActionDetails([null, c.setUUIData.mode], [e3, this.uuiData.text]); + } + static get managedProperties() { + return [{ label: c.transfer.uuiData, options: o.ExpressionTypeStringOptions.create((e3) => e3.setIninTestingField("uuiData").setIsOptional(false).setModeNoValueRuntimeEvaluationStr(c.setUUIData.noUUIData, void 0).setDisableSpellcheck(true)), yamlOptions: _.createYamlOptions("uuiData", (e3) => e3.setExportOrder(40)), property: "uuiData", type: r2.expressionTypeNames.string }, { property: "mode", isJustForFlowYaml: true, yamlOptions: _.createYamlOptions("mode", (e3) => e3.setExportOrder(30)) }]; + } + get mode() { + return this.model.mode; + } + set mode(e3) { + switch (e3) { + case p.transfer: + case p.disconnect: + this.model.mode = e3, (0, a.validateAction)(this, true, true); + } + } + postProcessYamlConfig(e3, t3, i3) { + var n3; + (null === (n3 = this.mode) || void 0 === n3 ? void 0 : n3.name) && (e3.mode = this.mode.name); + } + } + _.info = u.default.createActionInfo({ actionClass: _, canBeInTask: true, helpTopic: s.helpTopics.actions.setUUIData, modelClass: i2(58602), name: c.actions.setUUIData, scriptingName: "ArchActionSetUUIData" }), t2.A = _; + }, 71004: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.createVariable = y, t2.createFlowVariableViewModel = function(e3, t3) { + if (!e3 || !t3 || !t3.isFlowViewModel) return null; + const i3 = new g.default(t3, t3, e3); + return i3.type.isAvailableForFlow(t3) ? i3 : null; + }, t2.addInOutVariable = S, t2.addVariable = function(e3, t3, i3, n3, r3) { + if (!e3 || !m.getUnscopedName(e3)) return s.error("Can not create variable because no name was given"), null; + if (!i3) return s.error("Can not create variable because no parent was given"), null; + let a2 = m.getScope(e3); + if (a2 || (a2 = i3.defaultVariableScope), !r3 && !o.default.contains(i3.userCreatableVariableScopes, a2)) return s.error("Unable to add variable. The variable scope of '" + a2 + "' is not valid for the submitted parent task or flow."), null; + const l2 = S(i3, e3, a2, false, false, t3.type, n3, r3); + return l2 ? (l2.isTaskVariable && i3.addVariable(l2), l2.addWriter(t3), t3.text = l2.name, l2) : (s.error("Variable creation failed."), null); + }, t2.transferUsages = function(e3, t3, i3, n3) { + if (!e3 || !i3) return; + if (!t3 || o.default.isEmpty(t3)) { + if (e3.parent !== n3 && e3.parent.isFlowViewModel && n3) return void s.error("Can not rename variable with no usages to a variable with a different parent"); + if (!o.default.isString(i3)) return e3.deleteItem(), i3; + e3.parentFlow.variableGroup.clearOldName(e3.parent, e3.name, e3.id); + const t4 = m.getScope(i3); + if (t4 !== m.getScope(e3.name)) { + if (t4 === m.scopes.flow) { + const t5 = A(e3, i3, e3.parent.parentFlow); + return e3.deleteItem(), t5; + } + s.error(`Unexpected condition, change scope of a variable to something other than flow. old name: ${e3.name} -- new name: ${i3}`); + } + return e3.name = i3, e3.parentFlow.variableGroup.addVariable(e3, true), u.emitter.emit(u.variableRename), _.validateItem(e3), e3; + } + if (o.default.isString(i3)) { + const t4 = m.getScope(e3.name) !== m.getScope(i3), r4 = e3.parent.isFlowViewModel ? e3.parent : e3.parent.parentFlow; + if (n3 = t4 ? n3 || r4 : e3.parent, e3.lowerName === i3.toLocaleLowerCase() && r4.variableGroup.clearOldName(n3, e3.name, e3.id), t4) { + const t5 = m.getScope(i3); + if (!o.default.contains(n3.availableVariableScopes, t5)) return e3; + } + i3 = A(e3, i3, n3); + } else if (e3.type !== i3.type) return; + e3.transferUsages(i3, t3), e3 && e3.deleteItem(); + const r3 = { originalVariable: e3, oldName: e3.name, newName: i3.name }; + return u.emitter.emit(u.variableRename, r3), i3; + }, t2.isVariableAllowedForExpression = N, t2.cleanseVariableNameWithProps = function(e3, t3, i3) { + const n3 = e3; + if ((e3 = m.getUnscopedName(e3)).match(/([^\.]*)\.(.*)/) && t3) { + const r3 = t3.hasPrefixVariable(n3), o2 = { expressionType: i3, doNotAllowProperties: true }; + return i3.isAny && (o2.allowReadOnly = true), !(!r3 || !N(r3, o2)) && l.expressionDataService.cleanseForIdentifierNameWithProps(e3); + } + return l.expressionDataService.cleanseForIdentifierName(e3); + }, t2.cleanseVariableName = function(e3, t3) { + return t3 || (e3 = m.getUnscopedName(e3)), l.expressionDataService.cleanseForIdentifierName(e3); + }, t2.getNameMappingBetweenFlowTypes = function(e3, t3) { + const i3 = p.default.getDefinitionForFlowType(e3), n3 = p.default.getDefinitionForFlowType(t3), r3 = []; + return i3.systemVariableModels.forEach((e4) => { + let t4 = n3.systemVariableModels.find((t5) => e4.id === t5.id); + t4 ? (e4.name !== t4.name && r3.push({ oldName: e4.name, newName: t4.name }), e4.deprecatedName && e4.deprecatedName !== t4.name && r3.push({ oldName: e4.deprecatedName, newName: t4.name })) : e4.copyPasteId && (t4 = n3.systemVariableModels.find((t5) => e4.copyPasteId === t5.copyPasteId), t4 && r3.push({ oldName: e4.name, newName: t4.name })); + }), r3; + }, t2.createVariableGroupForFlow = function(e3, t3) { + e3.hasVariableGroupSet ? e3.variableGroup.reset() : e3.variableGroup = new h.default(e3), e3.definition.systemVariableModels.forEach((i3) => { + t3 && t3[i3.id] && ((i3 = i3.clone()).initialValue = t3[i3.id]); + const n3 = new g.default(e3, null, i3); + if (i3.featureConfig) { + if (o.default.isString(i3.featureConfig)) n3.isUnavailable = d.isFeatureUnavailable(i3.featureConfig); + else if (o.default.isObject(i3.featureConfig)) { + const t4 = i3.featureConfig[e3.type]; + n3.isUnavailable = o.default.isString(t4) && d.isFeatureUnavailable(t4); + } + } else i3.featureToggleName && (o.default.isString(i3.featureToggleName) ? n3.isUnavailable = c.isDisabled(i3.featureToggleName) : o.default.isObject(i3.featureToggleName) && console.error("featureToggleName does not support the flow type syntax")); + i3.isFormatEnumVariable ? e3.variableGroup.addFormatVariable(n3) : i3.isLanguageEnumVariable ? e3.variableGroup.addLanguageVariable(n3) : e3.variableGroup.addSystemVariable(n3); + }); + }; + const n2 = i2(31635), r2 = i2(17604), o = n2.__importDefault(i2(92140)), a = i2(9456), s = n2.__importStar(i2(12847)), l = i2(27491), u = n2.__importStar(i2(36781)), d = n2.__importStar(i2(10798)), c = n2.__importStar(i2(27099)), p = n2.__importDefault(i2(98114)), _ = n2.__importStar(i2(1115)), h = n2.__importDefault(i2(22928)), m = n2.__importStar(i2(14187)), g = n2.__importDefault(i2(59061)), f = i2(43096); + function T(e3, t3) { + return new (0, f[e3.icwsType])({ name: t3, id: (0, a.uuid)(), isCollection: e3.isCollection, typeIdentifier: e3.expressionType }); + } + function y(e3, t3) { + if (!e3) return null; + const i3 = t3.parentFlow || t3, n3 = new g.default(i3, t3, e3); + return i3 && i3.isFlowViewModel && !n3.type.isAvailableForFlow(i3) && s.error(`Creating variable with whose type (${n3.type.displayString}) is not available for use in a flows of type ${i3.destinationFlowTypes.join(",")}`), n3.type.isCustomizablePerFlow && e3.typeIdentifier && i3.definitions.getCustomDataTypeDefinition(n3.type.dataType).addReader(n3), i3.variableGroup.addVariable(n3), n3; + } + function S(e3, t3, i3, n3, a2, l2, u2, d2) { + if (!e3 || !t3 || !l2) return s.error((0, r2.sprintf)(`Missing parameter for name (not logged), parentTaskOrFlow: '${e3}', or type: '${l2}'`)), null; + let c2 = m.getScope(t3); + if (i3 && c2 && i3 !== c2) return s.error("Unable to add variable. The variable name has a scope of '" + c2 + "' but the scope parameter has '" + i3 + "'."), null; + if (c2 || (t3 = m.setScope(i3, t3), c2 = i3), !d2 && !o.default.contains(e3.userCreatableVariableScopes, c2)) return s.error("Unable to add variable. The variable scope of '" + c2 + "' for the name '" + t3 + "' is not valid for the submitted parent task or flow."), null; + if (e3.isFlowViewModel) { + if (n3 && !l2.isAvailableAsInputForFlowType(e3.type)) return s.error("Unable to add variable. The type '" + l2.displayString + "' is not valid for use as an input in parentTaskOrFlow type of '" + e3.type + "'."), null; + if (a2 && !l2.isAvailableAsOutputForFlowType(e3.type)) return s.error("Unable to add variable. The type '" + l2.displayString + "' is not valid for use as an output in parentTaskOrFlow type of '" + e3.type + "'. name: '" + t3 + "'"), null; + } + const p2 = T(l2, t3); + p2.isInput = n3, p2.isOutput = a2, u2 && (p2.description = u2); + const h2 = y(p2, e3); + return h2.isTaskVariable && e3.addVariable(h2), h2.initializeDesignTime(), _.validateItem(h2), h2; + } + function A(e3, t3, i3) { + const n3 = T(e3.type, t3); + n3.isInput = e3.isInput && i3.supportsInputVariables, n3.isOutput = e3.isOutput && i3.supportsOutputVariables; + const r3 = y(n3, i3); + return r3.isTaskVariable && i3.addVariable(r3), e3.initializeDesignTimeCalled && r3.initializeDesignTime(), r3; + } + function N(e3, t3) { + const i3 = !!t3.doNotAllowProperties, n3 = !t3.allowReadOnly, r3 = !t3.allowUnavailable; + return !(n3 && e3.isReadOnly || r3 && e3.isUnavailable || i3 && e3.isClone || e3.isInternal) && e3.type && e3.type.isMatch(t3.expressionType); + } + }, 71012: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.askForIntentSequences = void 0; + const n2 = i2(31635), r2 = i2(28562), o = i2(80295), a = i2(73324); + class s extends a.BaseBotActionSettingsSequence { + constructor() { + super("askForIntent"); + } + get noInputSequence() { + const e3 = this.generateLanguageSequencesDefaultSequence("noInput"); + return this.generateLanguageSequenceConfig("AskForIntentNoInput", r2.builderIds.parts.genericCommunication, e3); + } + get noInputDigitalBotSequence() { + const e3 = this.generateLanguageSequencesDefaultSequence("noInputDigitalBot"); + return this.generateLanguageSequenceConfig("AskForIntentNoInputDigitalBot", r2.builderIds.parts.markdownCommunication, e3); + } + get noMatchSequence() { + const e3 = this.generateLanguageSequencesDefaultSequence("noMatch"), t3 = { digitalbot: { builderId: r2.builderIds.parts.markdownCommunication, languageSequences: e3 } }; + return this.generateLanguageSequenceConfig("AskForIntentNoMatch", r2.builderIds.parts.genericCommunication, e3, t3); + } + get questionSequence() { + const e3 = this.generateLanguageSequencesDefaultSequence("question"), t3 = { digitalbot: { builderId: r2.builderIds.parts.markdownCommunication, languageSequences: e3 } }; + return this.generateLanguageSequenceConfig("AskForIntentQuestion", r2.builderIds.parts.genericCommunication, e3, t3); + } + } + n2.__decorate([(0, o.enumerable)(true), n2.__metadata("design:type", Object), n2.__metadata("design:paramtypes", [])], s.prototype, "noInputSequence", null), n2.__decorate([(0, o.enumerable)(true), n2.__metadata("design:type", Object), n2.__metadata("design:paramtypes", [])], s.prototype, "noInputDigitalBotSequence", null), n2.__decorate([(0, o.enumerable)(true), n2.__metadata("design:type", Object), n2.__metadata("design:paramtypes", [])], s.prototype, "noMatchSequence", null), n2.__decorate([(0, o.enumerable)(true), n2.__metadata("design:type", Object), n2.__metadata("design:paramtypes", [])], s.prototype, "questionSequence", null), t2.askForIntentSequences = new s(); + }, 71020: (e2, t2, i2) => { + "use strict"; + const n2 = i2(31635), r2 = (i2(92794), i2(17604)), o = n2.__importDefault(i2(92140)), a = i2(28562), s = n2.__importDefault(i2(73198)), l = n2.__importStar(i2(63352)), u = i2(80428), d = i2(67607), c = i2(82319), p = i2(49892), _ = i2(81516), h = i2(33237), m = n2.__importDefault(i2(27203)), g = n2.__importStar(i2(36781)), f = i2(58380), T = i2(66381), y = i2(44351), S = i2(56969), A = i2(56969), N = i2(56969), O = i2(56969), I = i2(56969), v = n2.__importStar(i2(1115)), C = i2(12179), b = n2.__importDefault(i2(97891)), E = i2(41500), R = n2.__importDefault(i2(80570)), w = i2(21733), D = i2(47957); + class P extends R.default { + constructor(e3, t3) { + super(e3), this._loadModel(t3); + } + setNewInstanceDefaults(e3) { + super.setNewInstanceDefaults(e3); + const t3 = w(this.parentFlow.defaultLanguage); + this.setNewInstanceNoInputText(t3.askSurveyQuestion.voiceSurveyNoInputText), this.setNewInstanceNoMatchText(t3.askSurveyQuestion.voiceSurveyNoMatchText), this.setBranchOutOfService(m.default.maxNoInputsOptional.outputId); + } + initializeDesignTime() { + super.initializeDesignTime(), this.updateSurveyFormQuestionDynamicProps(), this.addAutoCleanedUpSubscription((0, f.createObservableForEvent$)(g.expressionValueChanged, this.notApplicable).subscribe(() => v.validateAction(this, false, true))); + } + get supportsCustomOutputPaths() { + return true; + } + static get branchInfo() { + return [m.default.default, m.default.conditionsNotMet]; + } + get hasOptionalPaths() { + return false; + } + static getSurveyQuestionExpression(e3) { + return e3.surveyQuestion; + } + static getSurveyQuestionType(e3) { + return e3.parentFlow.voiceSurveyFlowSettings.getQuestionTypeExpressionForQuestionId(e3.surveyFormQuestionId); + } + static getQuestionAnswerOptions(e3) { + return e3.parentFlow.voiceSurveyFlowSettings.getAnswerOptionsExpressionForQuestionId(e3.surveyFormQuestionId); + } + static _disableDTMFChoiceForNACallback(e3, t3) { + var i3, n3; + const r3 = e3.parent; + if (r3) { + const o2 = null === (n3 = null === (i3 = e3.parentFlow.userInputSettings) || void 0 === i3 ? void 0 : i3.dtmfTerminatingCharacter) || void 0 === n3 ? void 0 : n3.text; + if (o2 && o2 === t3.id) return true; + const a2 = r3.parentFlow.voiceSurveyFlowSettings.getAnswerOptionsExpressionForQuestionId(r3.surveyFormQuestionId); + if (a2) return !!a2.collectionItems.items.find((e4) => e4.type.getDtmf(e4) === t3.id); + } + return false; + } + static get managedProperties() { + return [{ property: "surveyQuestion", type: u.expressionTypeNames.surveyQuestion, label: D.voiceSurvey.voiceSurveyQuestionLabel, options: h.ExpressionTypeSurveyQuestionOptions.create((e3) => e3.setIninTestingField("surveyQuestion").setUiPropertyOrder(4).setAllowModeLiteralOnly().setDescriptionInfo(D.voiceSurvey.voiceSurveyQuestionLabel, D.voiceSurvey.voiceSurveyQuestionDescription)), yamlOptions: P.createYamlOptions("surveyQuestion", (e3) => e3.setSkipProperty(true)) }, { property: "surveyQuestionResult", type: u.expressionTypeNames.surveyQuestion, label: D.voiceSurvey.voiceSurveyQuestionResultLabel, options: h.ExpressionTypeSurveyQuestionOptions.create((e3) => e3.setIninTestingField("surveyQuestionResult").setUiPropertyOrder(12).setDescriptionInfo(D.voiceSurvey.voiceSurveyQuestionResultLabel, D.voiceSurvey.voiceSurveyQuestionResultDescription).setAsOutputExpressionOnly().setOutputExprTextAllowsReadOnlyVarType(true).setReadOnly(true)), yamlOptions: P.createYamlOptions("surveyQuestionResult", (e3) => e3.setSkipProperty(true)) }, { property: "questionCondition", type: u.expressionTypeNames.boolean, label: D.voiceSurvey.voiceSurveyQuestionConditionLabel, options: d.ExpressionTypeBooleanOptions.create((e3) => e3.setDescriptionInfo(D.voiceSurvey.voiceSurveyQuestionConditionLabel, D.voiceSurvey.voiceSurveyQuestionConditionDescription).setIninTestingField("questionCondition").setReadOnly(true).setIsOptional(true).setUiPropertyOrder(18)), yamlOptions: P.createYamlOptions("questionCondition", (e3) => e3.setSkipProperty(true)) }, { property: "mirroredQuestionType", label: D.voiceSurvey.voiceSurveyQuestionTypeLabel, createDetails: E.MirroredExpressionActionProperty.createCreateDetails(P.getSurveyQuestionType, P.getSurveyQuestionExpression), options: p.ExpressionTypelessOptions.create((e3) => e3.setUiPropertyOrder(11)), yamlOptions: P.createYamlOptions("surveyQuestionType", (e3) => e3.setSkipProperty(true)), hideFromModel: true }, { property: "mirroredAnswerOptions", label: D.voiceSurvey.voiceSurveyAnswerOptionsLabel, createDetails: E.MirroredExpressionActionProperty.createCreateDetails(P.getQuestionAnswerOptions, P.getSurveyQuestionExpression), options: p.ExpressionTypelessOptions.create((e3) => e3.setUiPropertyOrder(14)), yamlOptions: P.createYamlOptions("mirroredAnswerOptions", (e3) => e3.setSkipProperty(true)), hideFromModel: true }, { property: "notApplicable", label: D.voiceSurvey.voiceSurveyNotApplicableLabel, type: u.expressionTypeNames.string, options: _.ExpressionTypeStringOptions.create((e3) => e3.setIninTestingField("notApplicable").setUiPropertyOrder(16).setAllowModeLiteralOnly().setDescriptionInfo(D.voiceSurvey.voiceSurveyNotApplicableLabel, D.voiceSurvey.voiceSurveyNotApplicableDescription).facets.setAllowableValues(y.surveyFormDtmfTerminatingValues).setAllowableValuesUseInlineSelect(true).setAllowableValuesDisabledCallback(P._disableDTMFChoiceForNACallback).setAllowableValueUseOriginalDisplayString(true).setAllowableValuePlaceholder(D.voiceSurvey.voiceSurveyAnswerOptionDtmfLabel)) }, { property: "answer", label: D.voiceSurvey.voiceSurveyAnswerLabel, type: u.expressionTypeNames.communication, options: c.ExpressionTypeCommunicationOptions.create((e3) => e3.setIninTestingField("answer").setDescriptionInfo(D.voiceSurvey.voiceSurveyAnswerLabel, D.voiceSurvey.voiceSurveyAnswerDescription).setIsOptional(true).setUiPropertyOrder(13).setDefaultToNoValue(true).setDoNotTransitionToNoValue(false).setDefaultToBuilderId(a.builderIds.parts.genericCommunication)) }, { property: "followUpQuestion", label: D.voiceSurvey.voiceSurveyFollowUpQuestionLabel, type: u.expressionTypeNames.communication, options: c.ExpressionTypeCommunicationOptions.create((e3) => e3.setIninTestingField("followUpQuestion").setDescriptionInfo(D.voiceSurvey.voiceSurveyFollowUpQuestionLabel, D.voiceSurvey.voiceSurveyFollowUpQuestionDescription).setIsOptional(true).setUiPropertyOrder(15).setDefaultToNoValue(true).setDoNotTransitionToNoValue(false).setDefaultToBuilderId(a.builderIds.parts.genericCommunication)) }]; + } + get isAskSurveyQuestionAction() { + return true; + } + get surveyFormQuestionId() { + if (this.surveyQuestion.isLiteralMode && !this.surveyQuestion.outOfService) return this.surveyQuestion.val; + } + get surveyFormQuestionText() { + if (this.surveyQuestion.isLiteralMode) return this.surveyQuestion.text; + } + get surveyForm() { + var e3; + return null === (e3 = this.parentFlow.voiceSurveyFlowSettings) || void 0 === e3 ? void 0 : e3.archSurveyForm; + } + get surveyFormQuestion() { + return this._surveyFormQuestion || this.surveyQuestion.isLiteralMode && !this.surveyQuestion.outOfService && (this._surveyFormQuestion = (0, N.findSurveyQuestionInForm)(this.surveyForm, this.surveyQuestion.val, true)), this._surveyFormQuestion; + } + _clearArchSurveyQuestion() { + const e3 = this.surveyQuestion.type.clearArchSurveyQuestion(this.surveyQuestion); + return this._surveyFormQuestion = void 0, this.followUpQuestion.setAsNoValue(), this.notApplicable.setAsNoValue(), this.surveyQuestionResult.setAsNoValue(), this.question.mode = l.builder, this.question.setCommunicationBuilderText(""), this.questionCondition.setAsNoValue(), e3; + } + clearSurveyQuestion() { + const e3 = this._clearArchSurveyQuestion(); + return this._updatePropertiesOOS(), v.validateAction(this, true, true), e3; + } + configureFromArchSurveyQuestionId(e3, t3) { + const i3 = (0, N.findSurveyQuestionInForm)(this.surveyForm, e3, true); + return i3 ? this.configureFromArchSurveyQuestion(i3) : (t3 && this.clearSurveyQuestion(), false); + } + configureFromArchSurveyQuestionText(e3, t3, i3) { + const n3 = (0, N.findSurveyQuestionInForm)(this.surveyForm, e3, i3, true); + return n3 ? this.configureFromArchSurveyQuestion(n3) : (t3 && this.clearSurveyQuestion(), false); + } + configureFromSurveyQuestionViewModel(e3) { + return !!e3 && this.configureFromArchSurveyQuestionId(e3.id, false); + } + configureFromArchSurveyQuestion(e3) { + if (!e3) return false; + if (!this._clearArchSurveyQuestion()) return false; + this.surveyQuestion.type.setFromArchSurveyQuestion(this.surveyQuestion, e3), this.updateSurveyFormQuestionDynamicProps(), this._setQuestionProperty(e3); + const t3 = (0, A.getVisibilityConditionExprText)(e3.visibilityCondition, this.parentFlow.voiceSurveyFlowSettings.archSurveyForm); + switch (t3 ? this.questionCondition.setAsExpression(t3) : this.questionCondition.setAsExpression(s.default.notSet), e3.questionType) { + case O.SurveyQuestionTypesEnum.freeTextQuestion: + case O.SurveyQuestionTypesEnum.readOnlyQuestion: + break; + case O.SurveyQuestionTypesEnum.npsQuestion: + if (e3.followUpQuestionText) if (this.followUpQuestion.options.setAllowModeBuilder(true), this.followUpQuestion.options.setDefaultToBuilderId(a.builderIds.parts.genericCommunication), (0, I.surveyQuestionHasNa)(e3)) { + const t4 = w(this.parentFlow.defaultLanguage), i3 = (0, r2.sprintf)(t4.askSurveyQuestion.surveyAnswerNotApplicableWithQuestionSequence, e3.followUpQuestionText); + this.followUpQuestion.setCommunicationBuilderText(i3, true); + } else this.followUpQuestion.setCommunicationBuilderText(e3.followUpQuestionText, true); + break; + default: + this.answer.options.setAllowModeBuilder(true), this.answer.options.setDefaultToBuilderId(a.builderIds.parts.genericCommunication), this.answer.setCommunicationBuilderText(this._generateAnswerOutputText(e3.answerOptions, e3.naEnabled), true); + } + return (0, I.surveyQuestionHasNa)(this.surveyFormQuestion) && (this.notApplicable.setModeWithTransition(l.literal, void 0), this.notApplicable.setAsLiteral(s.default.star)), this._updatePropertiesOOS(), v.validateAction(this, true, true), v.validateNode(this.parentFlow.voiceSurveyFlowSettings, true), true; + } + destroy() { + return this.parentFlow.isDestroyedOrDestroying || v.validateNode(this.parentFlow.voiceSurveyFlowSettings, true), super.destroy(); + } + updateSurveyFormQuestionDynamicProps() { + this.surveyFormQuestion ? this.surveyQuestionResult.setAsExpression(this.surveyFormQuestion.variableName) : this.surveyQuestionResult.setAsExpression(""); + } + _updatePropertiesOOS() { + var e3, t3, i3; + super._updatePropertiesOOS(); + const n3 = !!(null === (t3 = null === (e3 = this.surveyFormQuestion) || void 0 === e3 ? void 0 : e3.answerOptions) || void 0 === t3 ? void 0 : t3.length); + this.surveyQuestion.outOfService = false, this.answer.outOfService = !n3, this.mirroredAnswerOptions.outOfService = !n3, this.followUpQuestion.outOfService = !(null === (i3 = this.surveyFormQuestion) || void 0 === i3 ? void 0 : i3.followUpQuestionText), this.question.outOfService = !this.surveyFormQuestion, this.questionCondition.outOfService = !this.surveyFormQuestion, this.mirroredQuestionType.outOfService = !this.surveyFormQuestion, this.surveyQuestionResult.outOfService = !this.surveyFormQuestion, this.notApplicable.outOfService = !(0, I.surveyQuestionHasNa)(this.surveyFormQuestion), this.customizeNoInput.outOfService = this._isNoneOrReadOnlyQuestion, this.customizeNoMatch.outOfService = this._isNoneOrReadOnlyQuestion, this.voiceEndOfInputTimeout.outOfService = this._isNoneOrReadOnlyQuestion; + } + get _isNoneOrReadOnlyQuestion() { + return !this.surveyFormQuestion || this.surveyFormQuestion.questionType === O.SurveyQuestionTypesEnum.readOnlyQuestion; + } + _isNoInputOOS() { + return this._isNoneOrReadOnlyQuestion || super._isNoInputOOS(); + } + _isNoInputRepromptsOOS() { + return this._isNoneOrReadOnlyQuestion || super._isNoInputRepromptsOOS(); + } + _isNoMatchOOS() { + return this._isNoneOrReadOnlyQuestion || super._isNoMatchOOS(); + } + _isNoMatchRepromptsOOS() { + return this._isNoneOrReadOnlyQuestion || super._isNoMatchRepromptsOOS(); + } + _generateAnswerOutputText(e3, t3) { + const i3 = w(this.parentFlow.defaultLanguage), n3 = []; + return e3.length ? (e3.forEach((e4) => { + n3.push((0, r2.sprintf)(i3.askSurveyQuestion.surveyAnswerOptionSequence, e4.dtmf, e4.text)); + }), t3 && n3.push(i3.askSurveyQuestion.surveyAnswerNotApplicableSequence), (0, T.getSentenceListDisplayString)(n3)) : ""; + } + postProcessYamlConfig(e3, t3, i3) { + var n3; + const r3 = (e3.surveyQuestion = {})[this.surveyForm.name] = {}; + (null === (n3 = this.surveyQuestion.text) || void 0 === n3 ? void 0 : n3.length) ? this.surveyQuestion.isLiteralMode ? r3.lit = { text: this.surveyQuestion.text } : this.surveyQuestion.isExpressionMode && (r3.exp = this.surveyQuestion.text) : o.default.ensureYamlNoneTrue(r3); + } + get yamlPropertyOrderMap() { + return o.default.extend(super.yamlPropertyOrderMap, { surveyQuestion: 15 }); + } + _validateDuplicateDTMF(e3) { + var t3, i3; + const n3 = this.notApplicable.isLiteralMode ? this.notApplicable.text : void 0, o2 = null === (i3 = null === (t3 = this.parentFlow.userInputSettings) || void 0 === t3 ? void 0 : t3.dtmfTerminatingCharacter) || void 0 === i3 ? void 0 : i3.text; + n3 && ((0, S.getQuestionDtmfAnswerOptionMap)(this.surveyFormQuestion)[n3] ? e3.addExpressionError(this.notApplicable, (0, r2.sprintf)(D.voiceSurvey.voiceSurveyDuplicateDtmfError, n3)) : n3 === o2 && e3.addExpressionError(this.notApplicable, D.voiceSurvey.voiceSurveyNotApplicableSetAsTerminatingCharacter)); + } + validate(e3) { + super.validate(e3), this._validateDuplicateDTMF(e3); + } + _setQuestionProperty(e3) { + switch (this.question.mode = l.noValue, e3.questionType) { + case O.SurveyQuestionTypesEnum.freeTextQuestion: + case O.SurveyQuestionTypesEnum.readOnlyQuestion: + if ((0, I.surveyQuestionHasNa)(e3)) { + const t3 = w(this.parentFlow.defaultLanguage), i3 = (0, r2.sprintf)(t3.askSurveyQuestion.surveyAnswerNotApplicableWithQuestionSequence, e3.questionText); + this.question.setCommunicationBuilderText(i3, true); + } else this.question.setCommunicationBuilderText(e3.questionText, true); + break; + default: + this.question.setCommunicationBuilderText(e3.questionText, true); + } + } + } + P.info = b.default.createActionInfo({ actionClass: P, canBeInTask: true, helpTopic: C.helpTopics.actions.askSurveyQuestion, modelClass: i2(44900), name: D.actions.askSurveyQuestion, scriptingName: "ArchActionAskSurveyQuestion", supportsUtteranceHistoricalData: true }), t2.A = P; + }, 71056: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.ExpressionTypeNetworkObjectOptions = void 0; + const n2 = i2(65615); + class r2 extends n2.BaseExpressionTypeCollectionOptions { + static create(e3, t3) { + return new this(t3).invokeOptionsCallback(e3); + } + constructor(e3) { + super(e3); + } + get className() { + return "ExpressionTypeNetworkObjectOptions"; + } + get isExpressionTypeNetworkObjectOptions() { + return true; + } + } + t2.ExpressionTypeNetworkObjectOptions = r2; + }, 71071: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importDefault(i2(61610)), o = i2(96618), a = i2(12179), s = i2(30801), l = n2.__importDefault(i2(97891)), u = i2(47957); + i2(85148); + class d extends r2.default { + constructor(e3, t3) { + super(e3), this._loadModel(t3); + } + get canRename() { + return false; + } + get isLoopTaskViewModel() { + return true; + } + get isTask() { + return true; + } + static get notRealAction() { + return false; + } + validate(e3) { + this.isNameUnique() || e3.addError(this, u.task.multipleNames), 0 === this.actions.length && e3.addError(this, u.task.containsNoActions); + } + } + d.info = l.default.createReusableNodeInfo({ actionType: s.loopTaskActionType, actionClass: d, helpTopic: a.helpTopics.tasks.task, name: u.loopTask, supportedFlowTypes: [o.flowTypes.flowTypeInQueueCall] }), t2.default = d; + }, 71075: (e2, t2, i2) => { + "use strict"; + const n2 = i2(31635), r2 = n2.__importDefault(i2(92140)), o = i2(36932), a = n2.__importDefault(i2(73198)), s = n2.__importStar(i2(63824)), l = i2(80428), u = i2(79467), d = i2(49892), c = i2(99469), p = n2.__importDefault(i2(27203)), _ = i2(87889), h = n2.__importStar(i2(36781)), m = n2.__importStar(i2(10798)), g = n2.__importStar(i2(75669)), f = i2(60609), T = i2(96546), y = i2(1115), S = n2.__importDefault(i2(4648)), A = i2(12179), N = i2(12457), O = n2.__importDefault(i2(97891)), I = i2(54057), v = i2(28803), C = i2(87870), b = i2(24338), E = n2.__importDefault(i2(80570)), R = i2(47957), w = i2(21733); + class D extends E.default { + constructor(e3, t3) { + super(e3), this.responseManager = _.formResponseManager, this._loadModel(t3), this.noInput.options.setBuilderLanguagesSequenceConfig(o.formSequences.noInputDigitalBotSequence), this.noMatch.options.setBuilderLanguagesSequenceConfig(o.formSequences.noMatchDigitalBotSequence); + } + _initializeDesignTime() { + super._initializeDesignTime(), this._updateOOS(), this.addAutoCleanedUpEventSinkWatch(h.valueChanged, this.library, () => { + this.form.reset(), this._updateOOS(); + }), this.addAutoCleanedUpEventSinkWatch(h.valueChanged, this.form, () => { + this._handleFormSelectionChanged(); + }); + } + get responseLibrary() { + return this.model.responseLibrary; + } + get responseId() { + return this.formId; + } + get selectedResponse() { + if (this.responseId) return this.responseManager.getItem(this.responseId); + } + set responseLibrary(e3) { + this.model.responseLibrary = e3; + } + _updateOOS() { + this.question.outOfService = true, this.form.outOfService = !this.responseLibrary; + } + get supportsCustomOutputPaths() { + return true; + } + _clearOutputs() { + this.outputs.destroyChildren(); + } + static get branchInfo() { + const e3 = [...p.default.successFailure, p.default.maxNoInputsOptional]; + return m.isFeatureAvailable(S.default.botFlowsEnhancedRecognitionFailureHandling) ? [...e3, p.default.maxNoMatchesOptional] : e3; + } + setNewInstanceDefaults(e3) { + super.setNewInstanceDefaults(e3), this.setNewInstanceNoInputText(w(this.parentFlow.defaultLanguage).form.noInputDigitalBot), this.setNewInstanceNoMatchText(w(this.parentFlow.defaultLanguage).form.noMatchDigitalBot); + } + getDetails() { + var e3; + if ((null === (e3 = this.responseLibrary) || void 0 === e3 ? void 0 : e3.name) && this.formName) return new N.ActionDetails([R.form.formActionLibrary, R.form.formLabel], [this.responseLibrary.name, this.formName]); + } + static get managedProperties() { + return [{ createDetails: C.NoteActionProperty.createCreateDetails(R.form.formChannelNote, "info", "formChannelNote"), options: d.ExpressionTypelessOptions.create((e3) => e3.setUiPropertyOrder(1)), property: "channelAlert", yamlOptions: D.createYamlOptions("channelAlert", (e3) => e3.setSkipProperty(true)) }, { label: R.form.formActionLibrary, options: c.ManagedPropertyOptions.create((e3) => e3.setIninTestingField("library").setUiPropertyOrder(2).setDropdownPlaceholder(R.form.formActionSelectLibrary).setDescriptionInfo(R.form.formActionLibrary, R.form.formActionLibraryDescription)), property: "library", createDetails: b.ResponseLibraryProperty.createCreateDetails(R.form.formResponseLibraryDoesNotContainForm, R.form.formNoResponseLibrariesContainForm, R.form.formActionMustSelectLibrary), yamlOptions: D.createYamlOptions("library", (e3) => e3) }, { label: R.form.formLabel, options: c.ManagedPropertyOptions.create((e3) => e3.setIninTestingField("form").setUiPropertyOrder(3).setDropdownPlaceholder(R.form.selectForm)), property: "form", createDetails: v.NetworkBasedActionProperty.createCreateDetails("formId", "formName", _.formResponseManager, R.form.formActionMustSelectForm, R.form.formNotFound, null, (e3) => e3.action._getAdditionalSearchParams(), (e3, t3) => e3.action._searchFilterCallback(t3)), yamlOptions: D.createYamlOptions("form", (e3) => e3.setSkipProperty(true)) }, { label: R.form.formCompletionTimeout, options: u.ExpressionTypeDurationOptions.create((e3) => e3.setAllowSecure(true).setIninTestingField("formCompletionTimeout").setDescriptionInfo(R.form.formCompletionTimeout, R.form.formCompletionTimeoutDescription).setDefaultText(a.default.litDurationThreeMinutes).setUiPropertyOrder(4).setDurationStyle(s.durationStyles.fullDuration).facets.setMinDur(30 * a.default.msPerSecond, true).setMaxDur(3 * a.default.msPerDay, true)), property: "formCompletionTimeout", type: l.expressionTypeNames.duration }, { dataList: true, isOutput: true, label: R.form.formPages, options: d.ExpressionTypelessOptions.create((e3) => e3.setAsOutput().setUiPropertyOrder(6).setIsOptional(true)), property: "outputs", yamlOptions: D.createYamlOptions("outputs", (e3) => e3.setPropertyName("formOutputs")) }]; + } + _getAdditionalSearchParams() { + var e3; + if (null === (e3 = this.responseLibrary) || void 0 === e3 ? void 0 : e3.id) return { filters: (0, I.createResponseLibrarySearchFilters)(this.responseLibrary.id) }; + } + _searchFilterCallback(e3) { + var t3; + return e3.responseType === f.CannedResponseType.form && !!r2.default.findWhere(e3.libraries, { id: null === (t3 = this.responseLibrary) || void 0 === t3 ? void 0 : t3.id }); + } + _handleFormSelectionChanged() { + return n2.__awaiter(this, void 0, void 0, function* () { + this.formId, this._mergeSchemaProperties(), (0, y.validateAction)(this, void 0, true); + }); + } + _mergeSchemaProperties() { + var e3, t3; + const i3 = null === (t3 = null === (e3 = this.selectedResponse) || void 0 === e3 ? void 0 : e3.form) || void 0 === t3 ? void 0 : t3.formPages; + if (i3) { + const e4 = {}; + i3.forEach((t4) => { + const i4 = `${t4.title} (${t4.componentInfo.displayName})`; + e4[t4.componentInfo.id] ? this.topic.error("duplicate id encountered adding form properties") : e4[t4.componentInfo.id] = { name: i4, type: t4.componentInfo.type, id: t4.componentInfo.id }; + }), this.responseManager.mergeSchemaProperties(Object.values(e4), this.outputs); + } else this._clearOutputs(); + } + validate(e3) { + super.validate(e3), e3.isDeep && this._mergeSchemaProperties(); + } + postProcessYamlConfig(e3, t3, i3) { + var n3; + if (!this.formName) return false; + const o2 = (null === (n3 = this.responseLibrary) || void 0 === n3 ? void 0 : n3.name) || g.unknownLibrary; + e3.library = {}; + const a2 = (e3.library[o2] = { form: {} }).form[this.formName] = {}; + return e3.formOutputs ? r2.default.moveAndDeleteProperty(e3, a2, "formOutputs") : r2.default.ensureYamlNoneTrue(a2), true; + } + } + D.info = O.default.createActionInfo({ actionClass: D, canBeInTask: true, helpTopic: A.helpTopics.actions.form, modelClass: i2(94335), name: R.actions.form, scriptingName: "ArchActionForm", supportedSessionSources: T.appleBusinessOnly, supportsUtteranceHistoricalData: true }), t2.A = D; + }, 71111: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.WrapupCodeType = void 0; + const n2 = i2(17604), r2 = i2(72987), o = i2(92158), a = i2(94765), s = i2(80428), l = i2(47957); + class u extends a.ExpressionType { + constructor(e3, t3, i3) { + super(e3, t3, i3); + } + get className() { + return "WrapupCodeType"; + } + createExpressionOptionClass() { + return new r2.ExpressionTypeWrapupCodeOptions(this.isCollection); + } + canConvertLitToExpression(e3) { + return false; + } + convertLitToExpression(e3, t3) { + return ""; + } + _getLiteralValueOfExpression() { + return ""; + } + get listManager() { + return o.wrapupCodeManager; + } + validateLiteral(e3, t3) { + let i3 = super.validateLiteral(e3, t3, true); + if (i3) { + const r3 = this.listManager.getItem(t3.val); + if (t3.options.requiresHasDescription && false === (null == r3 ? void 0 : r3.hasDescription)) { + const o2 = (0, n2.sprintf)(l.customNodes.virtualAgentSettings.wrapupCodeNoDescriptionError, r3.name); + t3.setParseError(o2), e3.addError(t3, o2, false, true), i3 = false; + } + } + return i3; + } + } + t2.WrapupCodeType = u, u.typeIdentifier = s.expressionTypeNames.wrapupCode; + }, 71137: (e2, t2, i2) => { + const n2 = i2(28730), r2 = i2(7401), { setLocaleActionType: o } = i2(30801); + function a() { + Object.defineProperties(this, { _languageCode: { writable: true } }), a.baseConstructor.apply(this, arguments); + } + n2.extend(a, o, true), Object.defineProperties(a.prototype, { pasteReIdOrRename: { value: function(e3) { + a._super.pasteReIdOrRename.apply(this, arguments), this.languageCode.pasteReIdOrRename(e3); + } }, pasteResolveOldToNewValues: { value: function(e3) { + a._super.pasteResolveOldToNewValues.apply(this, arguments), this.languageCode.pasteResolveOldToNewValues(e3); + } }, languageCode: { enumerable: true, get: function() { + return this._languageCode; + }, set: function(e3) { + this._languageCode = this.reviveItem(e3, r2); + } } }), e2.exports = a; + }, 71191: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importDefault(i2(26519)), o = n2.__importDefault(i2(71824)), a = n2.__importStar(i2(14187)), s = i2(96618); + class l extends o.default { + constructor(e3) { + super(e3), this.errorHandling = new r2.default(this), this._addToAutoManageSettings(this.errorHandling); + } + get className() { + return "WorkflowViewModel"; + } + get isWorkflow() { + return true; + } + get type() { + return s.flowTypes.flowTypeWorkflow; + } + get builtInVariableScopes() { + return [...super.builtInVariableScopes, a.scopes.workflow]; + } + get wrappedYamlName() { + return "workflow"; + } + } + t2.default = l; + }, 71222: (e2, t2, i2) => { + "use strict"; + const n2 = i2(31635), r2 = n2.__importDefault(i2(27203)), o = i2(12179), a = n2.__importDefault(i2(5730)), s = n2.__importDefault(i2(97891)), l = i2(81516), u = i2(20083), d = i2(99769), c = i2(80428), p = i2(38551), _ = n2.__importStar(i2(36781)), h = n2.__importDefault(i2(92140)), m = i2(87870), g = i2(47957); + class f extends a.default { + constructor(e3, t3) { + super(e3.parentFlow, e3), this._loadModel(t3); + } + _initializeDesignTime() { + var e3, t3, i3; + super._initializeDesignTime(); + const n3 = this.parentFlow; + (null === (e3 = n3.knowledgeSettings) || void 0 === e3 ? void 0 : e3.isKnowledgeV3AvailableInOrg) && (this._setKnowledgeVersionSettings(null === (i3 = null === (t3 = n3.knowledgeSettings) || void 0 === t3 ? void 0 : t3.knowledgeVersion) || void 0 === i3 ? void 0 : i3.text), this.addAutoCleanedUpEventListener(_.knowledgeVersionChanged, (e4) => { + this._setKnowledgeVersionSettings(e4); + })); + } + static get branchInfo() { + return r2.default.successFailure; + } + static get managedProperties() { + return [{ label: g.sendKnowledgeFeedback.knowledgeArticleLabel, options: u.ExpressionTypeKnowledgeBaseDocumentOptions.create((e3) => e3.setDescriptionInfo(g.sendKnowledgeFeedback.knowledgeArticleLabel, g.sendKnowledgeFeedback.knowledgeArticleDescription).setAllowModeExpressionOnly(false).setUiDisableOnOutOfService(true).setIninTestingField("knowledge-feedback-article")), property: "knowledgeArticle", type: c.expressionTypeNames.knowledgeBaseDocument }, { label: g.sendKnowledgeFeedback.knowledgeSearchIdLabel, options: l.ExpressionTypeStringOptions.create((e3) => e3.setIsOptional(false).setIninTestingField("knowledge-feedback-search-id").setDefaultText("Session.LastKnowledgeSearchId").setUiDisableOnOutOfService(true).setDefaultToExpression(true)), property: "knowledgeSearchId", type: c.expressionTypeNames.string }, { label: g.sendKnowledgeFeedback.knowledgeFeedbackLabel, options: l.ExpressionTypeStringOptions.create((e3) => e3.setIsOptional(false).setDescriptionInfo(g.sendKnowledgeFeedback.knowledgeFeedbackLabel, g.sendKnowledgeFeedback.knowledgeFeedbackDescription).setIninTestingField("knowledge-feedback-values").setUiDisableOnOutOfService(true).setAllowModeBuilder(false).facets.setAllowableValues(d.allKnowledgeFeedbackValues)), property: "knowledgeFeedback", type: c.expressionTypeNames.string }, { createDetails: m.NoteActionProperty.createCreateDetails(g.sendKnowledgeFeedback.knowledgeSettingAlert, "info", "knowledgeFeedbackV3Alert", void 0), property: "knowledgeFeedbackV3Alert", yamlOptions: f.createYamlOptions("knowledgeFeedbackV3Alert", (e3) => e3.setSkipProperty(true)) }]; + } + _setKnowledgeVersionSettings(e3) { + e3 === p.KnowledgeVersionValues.v3 ? (h.default.each(this.managedPropertyViewModels, (e4) => { + e4.isNoteProperty || (e4.isOptional = true, e4.outOfService = true, e4.setAsNoValue()); + }), this.knowledgeFeedbackV3Alert.outOfService = false) : (h.default.each(this.managedPropertyViewModels, (e4) => { + e4.isOptional = false, e4.outOfService = false; + }), this.knowledgeFeedbackV3Alert.outOfService = true); + } + } + f.info = s.default.createActionInfo({ actionClass: f, canBeInTask: true, canBeTreeNode: false, helpTopic: o.helpTopics.actions.sendKnowledgeFeedback, modelClass: i2(53548), name: g.actions.sendKnowledgeFeedback, scriptingName: "ArchActionSendKnowledgeFeedback" }), t2.A = f; + }, 71240: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.IntentUtil = void 0; + const n2 = i2(14443); + class r2 { + static getIntents(e3) { + return Array.isArray(null == e3 ? void 0 : e3.intents) ? e3.intents : []; + } + static hasIntents(e3) { + return r2.getIntents(e3).length > 0; + } + static getIntentByName(e3, t3) { + if (!e3 || !t3) return {}; + if (!(0, n2.isString)(t3)) return {}; + const i3 = t3.toLowerCase(); + return r2.getIntents(e3).find((e4) => (null == e4 ? void 0 : e4.name.toLowerCase()) === i3) || {}; + } + static getIntentNames(e3) { + if (!e3) return []; + const t3 = []; + return r2.getIntents(e3).forEach((e4) => { + t3.push(e4.name); + }), t3; + } + static getIntentEntityTypeBindings(e3, t3) { + var i3; + if (!e3 || !t3) return []; + const n3 = r2.getIntentByName(e3, t3); + return (null === (i3 = null == n3 ? void 0 : n3.entityTypeBindings) || void 0 === i3 ? void 0 : i3.length) && Array.isArray(null == n3 ? void 0 : n3.entityTypeBindings) ? n3.entityTypeBindings : []; + } + static getIntentEntityNameReferences(e3, t3) { + var i3; + if (!e3 || !t3) return []; + const n3 = r2.getIntentByName(e3, t3); + return (null === (i3 = null == n3 ? void 0 : n3.entityNameReferences) || void 0 === i3 ? void 0 : i3.length) && Array.isArray(null == n3 ? void 0 : n3.entityNameReferences) ? n3.entityNameReferences : []; + } + static getIntentUtterances(e3, t3) { + var i3; + if (!e3 || !t3) return []; + const n3 = r2.getIntentByName(e3, t3); + return (null === (i3 = null == n3 ? void 0 : n3.utterances) || void 0 === i3 ? void 0 : i3.length) && Array.isArray(null == n3 ? void 0 : n3.utterances) ? n3.utterances : []; + } + static getIntentAdditionalLanguages(e3, t3) { + if (!e3 || !t3) return {}; + const i3 = r2.getIntentByName(e3, t3); + return !(null == i3 ? void 0 : i3.additionalLanguages) || "object" != typeof (null == i3 ? void 0 : i3.additionalLanguages) || Array.isArray(null == i3 ? void 0 : i3.additionalLanguages) ? {} : i3.additionalLanguages; + } + static getIntentAdditionalLanguagesLanguageTags(e3, t3) { + if (!e3 || !t3) return []; + const i3 = r2.getIntentAdditionalLanguages(e3, t3); + return (0, n2.isEmptyObject)(i3) ? [] : Object.keys(i3); + } + static getIntentAdditionalLanguageForLanguage(e3, t3, i3) { + if (!e3 || !t3 || !i3) return {}; + const o = r2.getIntentAdditionalLanguages(e3, t3); + return (0, n2.isEmptyObject)(o) ? {} : (null == o ? void 0 : o[i3]) ? o[i3] : {}; + } + static getUtterancesForLanguage(e3, t3, i3) { + var n3; + if (!e3 || !t3 || !i3) return []; + const o = r2.getIntentAdditionalLanguageForLanguage(e3, t3, i3); + return (null === (n3 = null == o ? void 0 : o.utterances) || void 0 === n3 ? void 0 : n3.length) && Array.isArray(null == o ? void 0 : o.utterances) ? o.utterances : []; + } + static getIntentId(e3, t3) { + if (!e3 || !t3) return ""; + const i3 = r2.getIntentByName(e3, t3); + return (null == i3 ? void 0 : i3.id) && (0, n2.isString)(null == i3 ? void 0 : i3.id) ? i3.id : ""; + } + static isUtteranceInNluDomainVersion(e3, t3) { + return !!(((null == e3 ? void 0 : e3.intents) || []).reduce((e4, t4) => { + const i3 = t4.additionalLanguages || {}, n3 = Object.keys(i3).map((e5) => i3[e5].utterances || []).reduce((e5, t5) => e5.concat(t5 || []), []); + return e4.concat(t4.utterances || []).concat(n3); + }, []) || []).find((e4) => (null == e4 ? void 0 : e4.id) === t3); + } + } + t2.IntentUtil = r2; + }, 71314: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.getManagedProperties = function e3(t3) { + let i3 = [], r2 = n2.default.isFunction(t3) ? t3 : t3.__proto__.constructor; + for (; r2 && (r2.isBaseClassObject || r2._super && r2._super.isBaseClass); ) r2.hasOwnProperty("managedProperties") && (i3 = i3.concat(r2.managedProperties), n2.default.each(r2.managedProperties, function(t4) { + if (t4.createDetails && t4.createDetails.getCreateClass) { + const n3 = e3(t4.createDetails.getCreateClass()); + n3 && n3.length && (i3 = i3.concat(n3)); + } + })), r2 = Object.getPrototypeOf(r2); + return i3; + }; + const n2 = i2(31635).__importDefault(i2(92140)); + }, 71439: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.lexV2AliasManager = t2.LexV2AliasManager = void 0; + const n2 = i2(31635), r2 = n2.__importDefault(i2(92140)), o = n2.__importStar(i2(1360)), a = n2.__importStar(i2(24032)), s = n2.__importDefault(i2(47532)), l = i2(81801), u = i2(30801), d = n2.__importDefault(i2(44374)), c = i2(9485), p = i2(47957), _ = i2(27862), h = i2(44931); + class m extends s.default { + get requiredAuth() { + return l.externalAuthorizations.authStrings.integrationView; + } + get dependencyType() { + return _.LexV2BotAlias; + } + constructor() { + super(), this.topic = a.getTopic("LexV2AliasManager"), this._rawServerCache = {}, this.actionsForUsageSearch = [u.lexV2ActionType], this.actionPropertyForUsageSearch = "alias", this.apiCallList = h.getV2Aliases, this.apiCallSingle = h.getV2Alias, this.className = "LexV2AliasManager", this.defaultMatchingStyle = o.exactMatch, this.dependencyContext = p.lex.lexV2BotAlias, this.isDependentOnCategory = true, this.searchField = "name", this.securityError = true, this.uiMetadataSectionName = "lexV2BotAliases", this._initialize(); + } + _createItemViewModel(e3) { + return new d.default(e3); + } + getBotCategoryForBotRunnable(e3) { + if (!r2.default.isString(e3)) return this.topic.error("Object passed to getBotCategoryForBotRunnable was not a string: " + e3), null; + const t3 = this.items[e3.toLowerCase()]; + return t3 ? c.lexV2BotNameManager.getItem(t3.botId) : null; + } + } + t2.LexV2AliasManager = m, t2.lexV2AliasManager = new m(); + }, 71447: (e2, t2, i2) => { + "use strict"; + var n2 = i2(9805), r2 = i2(53269), o = i2(14823), a = i2(47293), s = i2(21998), l = -2, u = 12, d = 30; + function c(e3) { + return (e3 >>> 24 & 255) + (e3 >>> 8 & 65280) + ((65280 & e3) << 8) + ((255 & e3) << 24); + } + function p() { + this.mode = 0, this.last = false, this.wrap = 0, this.havedict = false, this.flags = 0, this.dmax = 0, this.check = 0, this.total = 0, this.head = null, this.wbits = 0, this.wsize = 0, this.whave = 0, this.wnext = 0, this.window = null, this.hold = 0, this.bits = 0, this.length = 0, this.offset = 0, this.extra = 0, this.lencode = null, this.distcode = null, this.lenbits = 0, this.distbits = 0, this.ncode = 0, this.nlen = 0, this.ndist = 0, this.have = 0, this.next = null, this.lens = new n2.Buf16(320), this.work = new n2.Buf16(288), this.lendyn = null, this.distdyn = null, this.sane = 0, this.back = 0, this.was = 0; + } + function _(e3) { + var t3; + return e3 && e3.state ? (t3 = e3.state, e3.total_in = e3.total_out = t3.total = 0, e3.msg = "", t3.wrap && (e3.adler = 1 & t3.wrap), t3.mode = 1, t3.last = 0, t3.havedict = 0, t3.dmax = 32768, t3.head = null, t3.hold = 0, t3.bits = 0, t3.lencode = t3.lendyn = new n2.Buf32(852), t3.distcode = t3.distdyn = new n2.Buf32(592), t3.sane = 1, t3.back = -1, 0) : l; + } + function h(e3) { + var t3; + return e3 && e3.state ? ((t3 = e3.state).wsize = 0, t3.whave = 0, t3.wnext = 0, _(e3)) : l; + } + function m(e3, t3) { + var i3, n3; + return e3 && e3.state ? (n3 = e3.state, t3 < 0 ? (i3 = 0, t3 = -t3) : (i3 = 1 + (t3 >> 4), t3 < 48 && (t3 &= 15)), t3 && (t3 < 8 || t3 > 15) ? l : (null !== n3.window && n3.wbits !== t3 && (n3.window = null), n3.wrap = i3, n3.wbits = t3, h(e3))) : l; + } + function g(e3, t3) { + var i3, n3; + return e3 ? (n3 = new p(), e3.state = n3, n3.window = null, 0 !== (i3 = m(e3, t3)) && (e3.state = null), i3) : l; + } + var f, T, y = true; + function S(e3) { + if (y) { + var t3; + for (f = new n2.Buf32(512), T = new n2.Buf32(32), t3 = 0; t3 < 144; ) e3.lens[t3++] = 8; + for (; t3 < 256; ) e3.lens[t3++] = 9; + for (; t3 < 280; ) e3.lens[t3++] = 7; + for (; t3 < 288; ) e3.lens[t3++] = 8; + for (s(1, e3.lens, 0, 288, f, 0, e3.work, { bits: 9 }), t3 = 0; t3 < 32; ) e3.lens[t3++] = 5; + s(2, e3.lens, 0, 32, T, 0, e3.work, { bits: 5 }), y = false; + } + e3.lencode = f, e3.lenbits = 9, e3.distcode = T, e3.distbits = 5; + } + function A(e3, t3, i3, r3) { + var o2, a2 = e3.state; + return null === a2.window && (a2.wsize = 1 << a2.wbits, a2.wnext = 0, a2.whave = 0, a2.window = new n2.Buf8(a2.wsize)), r3 >= a2.wsize ? (n2.arraySet(a2.window, t3, i3 - a2.wsize, a2.wsize, 0), a2.wnext = 0, a2.whave = a2.wsize) : ((o2 = a2.wsize - a2.wnext) > r3 && (o2 = r3), n2.arraySet(a2.window, t3, i3 - r3, o2, a2.wnext), (r3 -= o2) ? (n2.arraySet(a2.window, t3, i3 - r3, r3, 0), a2.wnext = r3, a2.whave = a2.wsize) : (a2.wnext += o2, a2.wnext === a2.wsize && (a2.wnext = 0), a2.whave < a2.wsize && (a2.whave += o2))), 0; + } + t2.inflateReset = h, t2.inflateReset2 = m, t2.inflateResetKeep = _, t2.inflateInit = function(e3) { + return g(e3, 15); + }, t2.inflateInit2 = g, t2.inflate = function(e3, t3) { + var i3, p2, _2, h2, m2, g2, f2, T2, y2, N, O, I, v, C, b, E, R, w, D, P, M, F, L, x, k = 0, V = new n2.Buf8(4), U = [16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15]; + if (!e3 || !e3.state || !e3.output || !e3.input && 0 !== e3.avail_in) return l; + (i3 = e3.state).mode === u && (i3.mode = 13), m2 = e3.next_out, _2 = e3.output, f2 = e3.avail_out, h2 = e3.next_in, p2 = e3.input, g2 = e3.avail_in, T2 = i3.hold, y2 = i3.bits, N = g2, O = f2, F = 0; + e: for (; ; ) switch (i3.mode) { + case 1: + if (0 === i3.wrap) { + i3.mode = 13; + break; + } + for (; y2 < 16; ) { + if (0 === g2) break e; + g2--, T2 += p2[h2++] << y2, y2 += 8; + } + if (2 & i3.wrap && 35615 === T2) { + i3.check = 0, V[0] = 255 & T2, V[1] = T2 >>> 8 & 255, i3.check = o(i3.check, V, 2, 0), T2 = 0, y2 = 0, i3.mode = 2; + break; + } + if (i3.flags = 0, i3.head && (i3.head.done = false), !(1 & i3.wrap) || (((255 & T2) << 8) + (T2 >> 8)) % 31) { + e3.msg = "incorrect header check", i3.mode = d; + break; + } + if (8 != (15 & T2)) { + e3.msg = "unknown compression method", i3.mode = d; + break; + } + if (y2 -= 4, M = 8 + (15 & (T2 >>>= 4)), 0 === i3.wbits) i3.wbits = M; + else if (M > i3.wbits) { + e3.msg = "invalid window size", i3.mode = d; + break; + } + i3.dmax = 1 << M, e3.adler = i3.check = 1, i3.mode = 512 & T2 ? 10 : u, T2 = 0, y2 = 0; + break; + case 2: + for (; y2 < 16; ) { + if (0 === g2) break e; + g2--, T2 += p2[h2++] << y2, y2 += 8; + } + if (i3.flags = T2, 8 != (255 & i3.flags)) { + e3.msg = "unknown compression method", i3.mode = d; + break; + } + if (57344 & i3.flags) { + e3.msg = "unknown header flags set", i3.mode = d; + break; + } + i3.head && (i3.head.text = T2 >> 8 & 1), 512 & i3.flags && (V[0] = 255 & T2, V[1] = T2 >>> 8 & 255, i3.check = o(i3.check, V, 2, 0)), T2 = 0, y2 = 0, i3.mode = 3; + case 3: + for (; y2 < 32; ) { + if (0 === g2) break e; + g2--, T2 += p2[h2++] << y2, y2 += 8; + } + i3.head && (i3.head.time = T2), 512 & i3.flags && (V[0] = 255 & T2, V[1] = T2 >>> 8 & 255, V[2] = T2 >>> 16 & 255, V[3] = T2 >>> 24 & 255, i3.check = o(i3.check, V, 4, 0)), T2 = 0, y2 = 0, i3.mode = 4; + case 4: + for (; y2 < 16; ) { + if (0 === g2) break e; + g2--, T2 += p2[h2++] << y2, y2 += 8; + } + i3.head && (i3.head.xflags = 255 & T2, i3.head.os = T2 >> 8), 512 & i3.flags && (V[0] = 255 & T2, V[1] = T2 >>> 8 & 255, i3.check = o(i3.check, V, 2, 0)), T2 = 0, y2 = 0, i3.mode = 5; + case 5: + if (1024 & i3.flags) { + for (; y2 < 16; ) { + if (0 === g2) break e; + g2--, T2 += p2[h2++] << y2, y2 += 8; + } + i3.length = T2, i3.head && (i3.head.extra_len = T2), 512 & i3.flags && (V[0] = 255 & T2, V[1] = T2 >>> 8 & 255, i3.check = o(i3.check, V, 2, 0)), T2 = 0, y2 = 0; + } else i3.head && (i3.head.extra = null); + i3.mode = 6; + case 6: + if (1024 & i3.flags && ((I = i3.length) > g2 && (I = g2), I && (i3.head && (M = i3.head.extra_len - i3.length, i3.head.extra || (i3.head.extra = new Array(i3.head.extra_len)), n2.arraySet(i3.head.extra, p2, h2, I, M)), 512 & i3.flags && (i3.check = o(i3.check, p2, I, h2)), g2 -= I, h2 += I, i3.length -= I), i3.length)) break e; + i3.length = 0, i3.mode = 7; + case 7: + if (2048 & i3.flags) { + if (0 === g2) break e; + I = 0; + do { + M = p2[h2 + I++], i3.head && M && i3.length < 65536 && (i3.head.name += String.fromCharCode(M)); + } while (M && I < g2); + if (512 & i3.flags && (i3.check = o(i3.check, p2, I, h2)), g2 -= I, h2 += I, M) break e; + } else i3.head && (i3.head.name = null); + i3.length = 0, i3.mode = 8; + case 8: + if (4096 & i3.flags) { + if (0 === g2) break e; + I = 0; + do { + M = p2[h2 + I++], i3.head && M && i3.length < 65536 && (i3.head.comment += String.fromCharCode(M)); + } while (M && I < g2); + if (512 & i3.flags && (i3.check = o(i3.check, p2, I, h2)), g2 -= I, h2 += I, M) break e; + } else i3.head && (i3.head.comment = null); + i3.mode = 9; + case 9: + if (512 & i3.flags) { + for (; y2 < 16; ) { + if (0 === g2) break e; + g2--, T2 += p2[h2++] << y2, y2 += 8; + } + if (T2 !== (65535 & i3.check)) { + e3.msg = "header crc mismatch", i3.mode = d; + break; + } + T2 = 0, y2 = 0; + } + i3.head && (i3.head.hcrc = i3.flags >> 9 & 1, i3.head.done = true), e3.adler = i3.check = 0, i3.mode = u; + break; + case 10: + for (; y2 < 32; ) { + if (0 === g2) break e; + g2--, T2 += p2[h2++] << y2, y2 += 8; + } + e3.adler = i3.check = c(T2), T2 = 0, y2 = 0, i3.mode = 11; + case 11: + if (0 === i3.havedict) return e3.next_out = m2, e3.avail_out = f2, e3.next_in = h2, e3.avail_in = g2, i3.hold = T2, i3.bits = y2, 2; + e3.adler = i3.check = 1, i3.mode = u; + case u: + if (5 === t3 || 6 === t3) break e; + case 13: + if (i3.last) { + T2 >>>= 7 & y2, y2 -= 7 & y2, i3.mode = 27; + break; + } + for (; y2 < 3; ) { + if (0 === g2) break e; + g2--, T2 += p2[h2++] << y2, y2 += 8; + } + switch (i3.last = 1 & T2, y2 -= 1, 3 & (T2 >>>= 1)) { + case 0: + i3.mode = 14; + break; + case 1: + if (S(i3), i3.mode = 20, 6 === t3) { + T2 >>>= 2, y2 -= 2; + break e; + } + break; + case 2: + i3.mode = 17; + break; + case 3: + e3.msg = "invalid block type", i3.mode = d; + } + T2 >>>= 2, y2 -= 2; + break; + case 14: + for (T2 >>>= 7 & y2, y2 -= 7 & y2; y2 < 32; ) { + if (0 === g2) break e; + g2--, T2 += p2[h2++] << y2, y2 += 8; + } + if ((65535 & T2) != (T2 >>> 16 ^ 65535)) { + e3.msg = "invalid stored block lengths", i3.mode = d; + break; + } + if (i3.length = 65535 & T2, T2 = 0, y2 = 0, i3.mode = 15, 6 === t3) break e; + case 15: + i3.mode = 16; + case 16: + if (I = i3.length) { + if (I > g2 && (I = g2), I > f2 && (I = f2), 0 === I) break e; + n2.arraySet(_2, p2, h2, I, m2), g2 -= I, h2 += I, f2 -= I, m2 += I, i3.length -= I; + break; + } + i3.mode = u; + break; + case 17: + for (; y2 < 14; ) { + if (0 === g2) break e; + g2--, T2 += p2[h2++] << y2, y2 += 8; + } + if (i3.nlen = 257 + (31 & T2), T2 >>>= 5, y2 -= 5, i3.ndist = 1 + (31 & T2), T2 >>>= 5, y2 -= 5, i3.ncode = 4 + (15 & T2), T2 >>>= 4, y2 -= 4, i3.nlen > 286 || i3.ndist > 30) { + e3.msg = "too many length or distance symbols", i3.mode = d; + break; + } + i3.have = 0, i3.mode = 18; + case 18: + for (; i3.have < i3.ncode; ) { + for (; y2 < 3; ) { + if (0 === g2) break e; + g2--, T2 += p2[h2++] << y2, y2 += 8; + } + i3.lens[U[i3.have++]] = 7 & T2, T2 >>>= 3, y2 -= 3; + } + for (; i3.have < 19; ) i3.lens[U[i3.have++]] = 0; + if (i3.lencode = i3.lendyn, i3.lenbits = 7, L = { bits: i3.lenbits }, F = s(0, i3.lens, 0, 19, i3.lencode, 0, i3.work, L), i3.lenbits = L.bits, F) { + e3.msg = "invalid code lengths set", i3.mode = d; + break; + } + i3.have = 0, i3.mode = 19; + case 19: + for (; i3.have < i3.nlen + i3.ndist; ) { + for (; E = (k = i3.lencode[T2 & (1 << i3.lenbits) - 1]) >>> 16 & 255, R = 65535 & k, !((b = k >>> 24) <= y2); ) { + if (0 === g2) break e; + g2--, T2 += p2[h2++] << y2, y2 += 8; + } + if (R < 16) T2 >>>= b, y2 -= b, i3.lens[i3.have++] = R; + else { + if (16 === R) { + for (x = b + 2; y2 < x; ) { + if (0 === g2) break e; + g2--, T2 += p2[h2++] << y2, y2 += 8; + } + if (T2 >>>= b, y2 -= b, 0 === i3.have) { + e3.msg = "invalid bit length repeat", i3.mode = d; + break; + } + M = i3.lens[i3.have - 1], I = 3 + (3 & T2), T2 >>>= 2, y2 -= 2; + } else if (17 === R) { + for (x = b + 3; y2 < x; ) { + if (0 === g2) break e; + g2--, T2 += p2[h2++] << y2, y2 += 8; + } + y2 -= b, M = 0, I = 3 + (7 & (T2 >>>= b)), T2 >>>= 3, y2 -= 3; + } else { + for (x = b + 7; y2 < x; ) { + if (0 === g2) break e; + g2--, T2 += p2[h2++] << y2, y2 += 8; + } + y2 -= b, M = 0, I = 11 + (127 & (T2 >>>= b)), T2 >>>= 7, y2 -= 7; + } + if (i3.have + I > i3.nlen + i3.ndist) { + e3.msg = "invalid bit length repeat", i3.mode = d; + break; + } + for (; I--; ) i3.lens[i3.have++] = M; + } + } + if (i3.mode === d) break; + if (0 === i3.lens[256]) { + e3.msg = "invalid code -- missing end-of-block", i3.mode = d; + break; + } + if (i3.lenbits = 9, L = { bits: i3.lenbits }, F = s(1, i3.lens, 0, i3.nlen, i3.lencode, 0, i3.work, L), i3.lenbits = L.bits, F) { + e3.msg = "invalid literal/lengths set", i3.mode = d; + break; + } + if (i3.distbits = 6, i3.distcode = i3.distdyn, L = { bits: i3.distbits }, F = s(2, i3.lens, i3.nlen, i3.ndist, i3.distcode, 0, i3.work, L), i3.distbits = L.bits, F) { + e3.msg = "invalid distances set", i3.mode = d; + break; + } + if (i3.mode = 20, 6 === t3) break e; + case 20: + i3.mode = 21; + case 21: + if (g2 >= 6 && f2 >= 258) { + e3.next_out = m2, e3.avail_out = f2, e3.next_in = h2, e3.avail_in = g2, i3.hold = T2, i3.bits = y2, a(e3, O), m2 = e3.next_out, _2 = e3.output, f2 = e3.avail_out, h2 = e3.next_in, p2 = e3.input, g2 = e3.avail_in, T2 = i3.hold, y2 = i3.bits, i3.mode === u && (i3.back = -1); + break; + } + for (i3.back = 0; E = (k = i3.lencode[T2 & (1 << i3.lenbits) - 1]) >>> 16 & 255, R = 65535 & k, !((b = k >>> 24) <= y2); ) { + if (0 === g2) break e; + g2--, T2 += p2[h2++] << y2, y2 += 8; + } + if (E && !(240 & E)) { + for (w = b, D = E, P = R; E = (k = i3.lencode[P + ((T2 & (1 << w + D) - 1) >> w)]) >>> 16 & 255, R = 65535 & k, !(w + (b = k >>> 24) <= y2); ) { + if (0 === g2) break e; + g2--, T2 += p2[h2++] << y2, y2 += 8; + } + T2 >>>= w, y2 -= w, i3.back += w; + } + if (T2 >>>= b, y2 -= b, i3.back += b, i3.length = R, 0 === E) { + i3.mode = 26; + break; + } + if (32 & E) { + i3.back = -1, i3.mode = u; + break; + } + if (64 & E) { + e3.msg = "invalid literal/length code", i3.mode = d; + break; + } + i3.extra = 15 & E, i3.mode = 22; + case 22: + if (i3.extra) { + for (x = i3.extra; y2 < x; ) { + if (0 === g2) break e; + g2--, T2 += p2[h2++] << y2, y2 += 8; + } + i3.length += T2 & (1 << i3.extra) - 1, T2 >>>= i3.extra, y2 -= i3.extra, i3.back += i3.extra; + } + i3.was = i3.length, i3.mode = 23; + case 23: + for (; E = (k = i3.distcode[T2 & (1 << i3.distbits) - 1]) >>> 16 & 255, R = 65535 & k, !((b = k >>> 24) <= y2); ) { + if (0 === g2) break e; + g2--, T2 += p2[h2++] << y2, y2 += 8; + } + if (!(240 & E)) { + for (w = b, D = E, P = R; E = (k = i3.distcode[P + ((T2 & (1 << w + D) - 1) >> w)]) >>> 16 & 255, R = 65535 & k, !(w + (b = k >>> 24) <= y2); ) { + if (0 === g2) break e; + g2--, T2 += p2[h2++] << y2, y2 += 8; + } + T2 >>>= w, y2 -= w, i3.back += w; + } + if (T2 >>>= b, y2 -= b, i3.back += b, 64 & E) { + e3.msg = "invalid distance code", i3.mode = d; + break; + } + i3.offset = R, i3.extra = 15 & E, i3.mode = 24; + case 24: + if (i3.extra) { + for (x = i3.extra; y2 < x; ) { + if (0 === g2) break e; + g2--, T2 += p2[h2++] << y2, y2 += 8; + } + i3.offset += T2 & (1 << i3.extra) - 1, T2 >>>= i3.extra, y2 -= i3.extra, i3.back += i3.extra; + } + if (i3.offset > i3.dmax) { + e3.msg = "invalid distance too far back", i3.mode = d; + break; + } + i3.mode = 25; + case 25: + if (0 === f2) break e; + if (I = O - f2, i3.offset > I) { + if ((I = i3.offset - I) > i3.whave && i3.sane) { + e3.msg = "invalid distance too far back", i3.mode = d; + break; + } + I > i3.wnext ? (I -= i3.wnext, v = i3.wsize - I) : v = i3.wnext - I, I > i3.length && (I = i3.length), C = i3.window; + } else C = _2, v = m2 - i3.offset, I = i3.length; + I > f2 && (I = f2), f2 -= I, i3.length -= I; + do { + _2[m2++] = C[v++]; + } while (--I); + 0 === i3.length && (i3.mode = 21); + break; + case 26: + if (0 === f2) break e; + _2[m2++] = i3.length, f2--, i3.mode = 21; + break; + case 27: + if (i3.wrap) { + for (; y2 < 32; ) { + if (0 === g2) break e; + g2--, T2 |= p2[h2++] << y2, y2 += 8; + } + if (O -= f2, e3.total_out += O, i3.total += O, O && (e3.adler = i3.check = i3.flags ? o(i3.check, _2, O, m2 - O) : r2(i3.check, _2, O, m2 - O)), O = f2, (i3.flags ? T2 : c(T2)) !== i3.check) { + e3.msg = "incorrect data check", i3.mode = d; + break; + } + T2 = 0, y2 = 0; + } + i3.mode = 28; + case 28: + if (i3.wrap && i3.flags) { + for (; y2 < 32; ) { + if (0 === g2) break e; + g2--, T2 += p2[h2++] << y2, y2 += 8; + } + if (T2 !== (4294967295 & i3.total)) { + e3.msg = "incorrect length check", i3.mode = d; + break; + } + T2 = 0, y2 = 0; + } + i3.mode = 29; + case 29: + F = 1; + break e; + case d: + F = -3; + break e; + case 31: + return -4; + default: + return l; + } + return e3.next_out = m2, e3.avail_out = f2, e3.next_in = h2, e3.avail_in = g2, i3.hold = T2, i3.bits = y2, (i3.wsize || O !== e3.avail_out && i3.mode < d && (i3.mode < 27 || 4 !== t3)) && A(e3, e3.output, e3.next_out, O - e3.avail_out) ? (i3.mode = 31, -4) : (N -= e3.avail_in, O -= e3.avail_out, e3.total_in += N, e3.total_out += O, i3.total += O, i3.wrap && O && (e3.adler = i3.check = i3.flags ? o(i3.check, _2, O, e3.next_out - O) : r2(i3.check, _2, O, e3.next_out - O)), e3.data_type = i3.bits + (i3.last ? 64 : 0) + (i3.mode === u ? 128 : 0) + (20 === i3.mode || 15 === i3.mode ? 256 : 0), (0 === N && 0 === O || 4 === t3) && 0 === F && (F = -5), F); + }, t2.inflateEnd = function(e3) { + if (!e3 || !e3.state) return l; + var t3 = e3.state; + return t3.window && (t3.window = null), e3.state = null, 0; + }, t2.inflateGetHeader = function(e3, t3) { + var i3; + return e3 && e3.state && 2 & (i3 = e3.state).wrap ? (i3.head = t3, t3.done = false, 0) : l; + }, t2.inflateSetDictionary = function(e3, t3) { + var i3, n3 = t3.length; + return e3 && e3.state ? 0 !== (i3 = e3.state).wrap && 11 !== i3.mode ? l : 11 === i3.mode && r2(1, t3, n3, 0) !== i3.check ? -3 : A(e3, t3, n3, n3) ? (i3.mode = 31, -4) : (i3.havedict = 1, 0) : l; + }, t2.inflateInfo = "pako inflate (from Nodeca project)"; + }, 71474: (e2, t2, i2) => { + const n2 = i2(32798); + function r2() { + r2.baseConstructor.apply(this, arguments); + } + i2(22124).extend(r2, "ConversationSummarySettingList"), Object.defineProperties(r2.prototype, { entities: { enumerable: true, get: function() { + return this._entities; + }, set: function(e3) { + this._entities = this.reviveArray(e3, n2); + } } }), e2.exports = r2; + }, 71507: (e2, t2, i2) => { + const n2 = i2(28730), r2 = i2(7401), { playUserGreetingActionType: o } = i2(30801); + function a() { + Object.defineProperties(this, { _user: { writable: true } }), a.baseConstructor.apply(this, arguments); + } + n2.extend(a, o, true), Object.defineProperties(a.prototype, { pasteReIdOrRename: { value: function(e3) { + a._super.pasteReIdOrRename.apply(this, arguments), this.user.pasteReIdOrRename(e3); + } }, pasteResolveOldToNewValues: { value: function(e3) { + a._super.pasteResolveOldToNewValues.apply(this, arguments), this.user.pasteResolveOldToNewValues(e3); + } }, user: { enumerable: true, get: function() { + return this._user; + }, set: function(e3) { + this._user = this.reviveItem(e3, r2); + } } }), e2.exports = a; + }, 71514: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.ExpressionList = void 0; + const n2 = i2(31635).__importDefault(i2(92140)), r2 = i2(59263), o = i2(39168), a = i2(44703), s = i2(7401); + class l extends a.ExpressionContainer { + constructor(e3, t3, i3, n3, r3, o2, a2, s2) { + super(e3.isFlowViewModel ? e3 : e3.parentFlow, e3, t3, o2, a2), this._transitory = s2, this.label = i3, this.isOptional = false, this.type = n3, this._initialize(); + } + get expressions() { + return this.items; + } + get isZeroBasedList() { + return this._isZeroBasedList; + } + set isZeroBasedList(e3) { + this._isZeroBasedList = e3, this.orderChanged(); + } + get addIndexSuffixToSingleItemLists() { + return this._labelSingleItem; + } + set addIndexSuffixToSingleItemLists(e3) { + this._labelSingleItem = e3, this.orderChanged(); + } + get shouldUseBracketsInLabel() { + return this._shouldUseBracketsInLabel; + } + set shouldUseBracketsInLabel(e3) { + this._shouldUseBracketsInLabel = e3, this.orderChanged(); + } + validate(e3) { + let t3; + this._extraValidator && (t3 = n2.default.where(this.expressions, { isLiteralMode: true })), this.expressions.forEach((i3) => { + i3.validate(e3) && i3.isLiteralMode && t3 && this._extraValidator(e3, i3, t3); + }); + } + _initialize() { + n2.default.each(this.model, (e3) => { + const t3 = this.createItem(e3, void 0, this.options); + this.items.push(t3); + }); + } + addClipboardDependencies(e3) { + this.expressions.forEach((t3) => { + t3.addClipboardDependencies(e3); + }); + } + createItem(e3, t3, i3) { + e3 = e3 || new s(); + const n3 = this.getLabel(this.items.length), a2 = new r2.ExpressionParameters(this.parentFlow, this.parent, e3, n3); + a2.type = this.type, a2.transitory = this._transitory, a2.propertyName = this.propertyName, a2.options = this.type.createExpressionOptionClass(), a2.options.setCollectionItemFromCollectionOptions(this.options); + const l2 = new o.NormalExpression(a2); + return e3.options && e3.options.facets && (l2.options.facets = e3.options.facets), l2; + } + getLabel(e3) { + if (!this.addIndexSuffixToSingleItemLists && this.expressions.length <= 1 && !this.isZeroBasedList && !this.shouldUseBracketsInLabel) return this.label; + const t3 = this.isZeroBasedList ? e3 : e3 + 1; + return this.shouldUseBracketsInLabel ? this.label + " [" + t3 + "]" : this.label + " " + t3; + } + get isExpressionList() { + return true; + } + orderChanged() { + this.expressions.forEach((e3, t3) => { + e3.label = this.getLabel(t3); + }), super.orderChanged(); + } + get className() { + return "ExpressionList"; + } + } + t2.ExpressionList = l; + }, 71516: (e2, t2, i2) => { + "use strict"; + const n2 = i2(31635), r2 = n2.__importDefault(i2(92140)), o = i2(12457), a = n2.__importDefault(i2(5730)), s = i2(21647), l = i2(80428), u = i2(98364), d = i2(81516), c = n2.__importDefault(i2(4648)), p = i2(12179), _ = n2.__importDefault(i2(97891)), h = n2.__importDefault(i2(15928)), m = i2(82632), g = i2(47957); + class f extends a.default { + constructor(e3, t3) { + super(e3.parentFlow, e3), this._loadModel(t3); + } + getDetails() { + return this.messageBody ? new o.ActionDetails([g.sendAutoReply.sendBody], [this.messageBody.text]) : null; + } + setNewInstanceDefaults() { + super.setNewInstanceDefaults(...arguments), this.replyToSenderOnly = true; + } + _initializeDesignTime() { + super._initializeDesignTime(), r2.default.isUndefined(this.replyToSenderOnly) && (this.replyToSenderOnly = false); + } + get replyToSenderOnly() { + return this.model.replyToSenderOnly; + } + set replyToSenderOnly(e3) { + this.model.replyToSenderOnly = e3; + } + static get managedProperties() { + return [{ label: g.sendAutoReply.sendFrom, options: s.ExpressionTypeComplexOptions.create((e3) => e3.setTypeIdentifier(l.expressionTypeNames.emailAddress).setIninTestingField("sendFrom").setIsOptional(true).setDescriptionInfo(g.sendAutoReply.sendFrom, g.sendAutoReply.sendFromDescription).setModeNoValueRuntimeEvaluationStr(g.expression.noValue.selectionRuntimeEvaluation.noOverride).setModeNoValueSelectionLabelToDefault()), property: "from", type: l.expressionTypeNames.emailAddress }, { label: g.sendAutoReply.sendReplyTo, options: s.ExpressionTypeComplexOptions.create((e3) => e3.setTypeIdentifier(l.expressionTypeNames.emailAddress).setIninTestingField("sendReplyTo").setIsOptional(true).setDescriptionInfo(g.sendAutoReply.sendReplyTo, g.sendAutoReply.sendReplyToDescription).setModeNoValueRuntimeEvaluationStr(g.expression.noValue.selectionRuntimeEvaluation.noOverride).setModeNoValueSelectionLabelToDefault()), property: "replyTo", type: l.expressionTypeNames.emailAddress }, { label: g.sendAutoReply.sendCc, options: s.ExpressionTypeComplexOptions.create((e3) => e3.setTypeIdentifier(l.expressionTypeNames.email).setIninTestingField("sendCc").setIsOptional(true).setIsCollection(true).setDescriptionInfo(g.sendAutoReply.sendCc, g.sendAutoReply.sendCcDescription).setModeNoValueRuntimeEvaluationStr(g.expression.noValue.selectionRuntimeEvaluation.none).setModeNoValueSelectionLabelToDefault()), property: "cc", type: l.expressionTypeNames.emailAddress }, { label: g.sendAutoReply.sendBcc, options: s.ExpressionTypeComplexOptions.create((e3) => e3.setTypeIdentifier(l.expressionTypeNames.emailAddress).setIninTestingField("sendBcc").setIsOptional(true).setIsCollection(true).setDescriptionInfo(g.sendAutoReply.sendBcc, g.sendAutoReply.sendBccDescription).setModeNoValueRuntimeEvaluationStr(g.expression.noValue.selectionRuntimeEvaluation.none).setModeNoValueSelectionLabelToDefault()), property: "bcc", type: l.expressionTypeNames.emailAddress }, { label: g.sendAutoReply.sendBody, options: d.ExpressionTypeStringOptions.create((e3) => e3.setIninTestingField("sendBody").setDefaultToExpression(true).setDescriptionInfo(g.sendAutoReply.sendBody, g.sendAutoReply.sendBodyDescription).facets.setMinLength(1)), property: "messageBody", type: l.expressionTypeNames.string }, { label: g.responseAsset.responseAssetAttachmentsLabel, options: u.ExpressionTypeResponseAssetOptions.create((e3) => e3.setIninTestingField("sendAttachments").setDescriptionInfo(g.responseAsset.responseAssetAttachmentsLabel, g.responseAsset.responseAssetAttachmentsDescription).setIsOptional(true).setIsCollection(true).setMaxItems(m.sendAutoReplyAction.attachments.maxItems).setFeatureConfigName(c.default.cannedResponseAttachmentsFeature)), property: "attachments", type: l.expressionTypeNames.responseAsset }]; + } + postProcessYamlConfig(e3, t3, i3) { + e3.replyMode = this.replyToSenderOnly ? h.default.replyToSender : h.default.replyToAll; + } + } + f.info = _.default.createActionInfo({ actionClass: f, canBeInTask: true, helpTopic: p.helpTopics.actions.sendAutoReply, modelClass: i2(66182), name: g.actions.sendAutoReply, scriptingName: "ArchActionSendAutoReply" }), t2.A = f; + }, 71528: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.responseLibraryManager = t2.ResponseLibraryManager = void 0; + const n2 = i2(31635), r2 = n2.__importStar(i2(90891)), o = n2.__importDefault(i2(47532)), a = i2(81801), s = i2(30801), l = i2(24032), u = i2(54057), d = i2(30801), c = i2(30801); + class p extends o.default { + get requiredAuth() { + return a.externalAuthorizations.authStrings.responseLibraryView; + } + constructor() { + super(), this.topic = (0, l.getTopic)("ResponseLibraryManager"), this.apiCallList = r2.getResponseLibraries, this.apiCallSingle = r2.getResponseLibrary, this._rawServerCache = {}, this.dependencyContext = null, this.uiMetadataSectionName = "responseLibrary", this.actionsForUsageSearch = [d.formActionType, s.getResponseActionType, c.sendDigitalContentActionType], this.actionPropertyForUsageSearch = "libraryId", this.className = "ResponseLibraryManager", this.suppressSearch = true, this._initialize(); + } + _createItemViewModel(e3) { + return new u.ResponseLibraryViewModel(e3); + } + } + t2.ResponseLibraryManager = p, t2.responseLibraryManager = new p(); + }, 71530: (e2, t2, i2) => { + "use strict"; + const n2 = i2(31635), r2 = i2(96618), o = i2(28562), a = i2(80428), s = i2(82319), l = i2(12179), u = n2.__importDefault(i2(97891)), d = n2.__importDefault(i2(5730)), c = i2(47957); + class p extends d.default { + static get managedProperties() { + return [{ label: c.communicate.communication, options: s.ExpressionTypeCommunicationOptions.create((e3) => e3.setAllowSecure(true).setIninTestingField("communication").setDefaultToBuilderId(o.builderIds.parts.genericCommunication).setUiPropertyOrder(0)), optionsForSpecificFlowTypes: [{ flowTypes: [r2.flowTypes.flowTypeDigitalBot], options: s.ExpressionTypeCommunicationOptions.create((e3) => e3.setAllowSecure(true).setIninTestingField("communication").setDefaultToBuilderId(o.builderIds.parts.markdownCommunication).setUiPropertyOrder(0)) }], property: "communication", type: a.expressionTypeNames.communication }]; + } + constructor(e3, t3) { + super(e3.parentFlow, e3), this._loadModel(t3); + } + setNewInstanceDefaults() { + return super.setNewInstanceDefaults(); + } + } + p.info = u.default.createActionInfo({ actionClass: p, canBeInTask: true, helpTopic: l.helpTopics.actions.communicate, modelClass: i2(40812), name: c.actions.communicate, scriptingName: "ArchActionCommunicate" }), t2.A = p; + }, 71535: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.NameIdDescriptionModelList = void 0; + const n2 = i2(31635), r2 = i2(80295), o = i2(84050), a = i2(15116); + class s extends a.PagedList { + constructor(e3) { + super(e3); + } + get entities() { + return this._entities; + } + set entities(e3) { + this._entities = this.reviveArray(e3, o.NameIdDescriptionModel); + } + } + t2.NameIdDescriptionModelList = s, n2.__decorate([(0, r2.enumerable)(true), n2.__metadata("design:type", Array), n2.__metadata("design:paramtypes", [Array])], s.prototype, "entities", null); + }, 71538: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importDefault(i2(92140)), o = i2(19596), a = i2(80295), s = i2(80295); + class l extends o.DataContract { + constructor(e3) { + super(e3), (0, s.makeUnenumerable)(this, "_additionalProperties"), (0, s.makeUnenumerable)(this, "_allowableValues"), (0, s.makeUnenumerable)(this, "_dataTypeId"), (0, s.makeUnenumerable)(this, "_description"), (0, s.makeUnenumerable)(this, "_id"), (0, s.makeUnenumerable)(this, "_isColl"), (0, s.makeUnenumerable)(this, "_isRequired"), (0, s.makeUnenumerable)(this, "_name"), (0, s.makeUnenumerable)(this, "_minItems"), (0, s.makeUnenumerable)(this, "_maxItems"), (0, s.makeUnenumerable)(this, "_minLength"), (0, s.makeUnenumerable)(this, "_maxLength"), (0, s.makeUnenumerable)(this, "_maxValue"), (0, s.makeUnenumerable)(this, "_maxValueInclusive"), (0, s.makeUnenumerable)(this, "_minValue"), (0, s.makeUnenumerable)(this, "_minValueInclusive"), (0, s.makeUnenumerable)(this, "_properties"), (0, s.makeUnenumerable)(this, "_readOnly"), (0, s.makeUnenumerable)(this, "_items"); + } + static createFromJsonSchema(e3) { + const t3 = new l(); + return t3.populateRootPropertiesFromJsonSchema(e3), t3; + } + get additionalProperties() { + return this._additionalProperties; + } + set additionalProperties(e3) { + this._additionalProperties = e3; + } + get id() { + return this._id; + } + set id(e3) { + this._id = e3; + } + get maxItems() { + return this._maxItems; + } + set maxItems(e3) { + (r2.default.isActualNumber(e3) && e3 >= 0 || void 0 === e3) && (this._maxItems = e3); + } + get minItems() { + return this._minItems; + } + set minItems(e3) { + (r2.default.isActualNumber(e3) && e3 >= 0 || void 0 === e3) && (this._minItems = e3); + } + get maxLength() { + var e3, t3; + return null !== (e3 = this._maxLength) && void 0 !== e3 ? e3 : null === (t3 = this._items) || void 0 === t3 ? void 0 : t3.maxLength; + } + set maxLength(e3) { + (r2.default.isActualNumber(e3) && e3 >= 0 || void 0 === e3) && (this._maxLength = e3); + } + get minLength() { + var e3, t3; + return null !== (e3 = this._minLength) && void 0 !== e3 ? e3 : null === (t3 = this._items) || void 0 === t3 ? void 0 : t3.minLength; + } + set minLength(e3) { + (r2.default.isActualNumber(e3) && e3 >= 0 || void 0 === e3) && (this._minLength = e3); + } + get maxValue() { + return this._maxValue; + } + set maxValue(e3) { + (r2.default.isActualNumber(e3) || void 0 === e3) && (this._maxValue = e3); + } + get maxValueInclusive() { + return this._maxValueInclusive; + } + set maxValueInclusive(e3) { + (r2.default.isBoolean(e3) || void 0 === e3) && (this._maxValueInclusive = e3); + } + get minValue() { + return this._minValue; + } + set minValue(e3) { + (r2.default.isActualNumber(e3) || void 0 === e3) && (this._minValue = e3); + } + get minValueInclusive() { + return this._minValueInclusive; + } + set minValueInclusive(e3) { + (r2.default.isBoolean(e3) || void 0 === e3) && (this._minValueInclusive = e3); + } + get name() { + return this._name; + } + set name(e3) { + this._name = e3; + } + get description() { + return this._description; + } + set description(e3) { + this._description = e3; + } + get dataTypeId() { + return this._dataTypeId; + } + set dataTypeId(e3) { + this._dataTypeId = e3; + } + get isCollection() { + return this._isColl; + } + set isCollection(e3) { + this._isColl = e3; + } + get properties() { + return this._properties; + } + set properties(e3) { + this._properties = this.reviveArray(e3, l); + } + get allowableValues() { + return this._allowableValues; + } + set allowableValues(e3) { + this._allowableValues = e3; + } + get isRequired() { + return this._isRequired; + } + set isRequired(e3) { + this._isRequired = e3; + } + get readOnly() { + return this._readOnly; + } + set readOnly(e3) { + (r2.default.isBoolean(e3) || void 0 === e3) && (this._readOnly = e3); + } + reset() { + this._additionalProperties = void 0, this._allowableValues = void 0, this._isColl = void 0, this._isRequired = void 0, this._minItems = void 0, this._maxItems = void 0, this._minLength = void 0, this._maxLength = void 0, this._minValue = void 0, this._maxValue = void 0, this._minValueInclusive = void 0, this._maxValueInclusive = void 0, this._properties = void 0, this._readOnly = void 0, this._items = void 0; + } + populateRootPropertiesFromJsonSchema(e3, t3) { + e3 && r2.default.isObject(e3) ? (this.additionalProperties = e3.additionalProperties, this.allowableValues = e3.enum, this.isCollection = "array" === e3.type, this._items = e3.items, this.minItems = e3.minItems, this.maxItems = e3.maxItems, this.minLength = e3.minLength, this.maxLength = e3.maxLength, this.minValue = e3.minimum, this.maxValue = e3.maximum, e3.exclusiveMinimum || (this.minValueInclusive = true), e3.exclusiveMaximum || (this.maxValueInclusive = true)) : t3 && this.reset(); + } + } + t2.default = l, n2.__decorate([(0, a.enumerable)(true), n2.__metadata("design:type", Boolean), n2.__metadata("design:paramtypes", [Boolean])], l.prototype, "additionalProperties", null), n2.__decorate([(0, a.enumerable)(true), n2.__metadata("design:type", String), n2.__metadata("design:paramtypes", [String])], l.prototype, "id", null), n2.__decorate([(0, a.enumerable)(true), n2.__metadata("design:type", Number), n2.__metadata("design:paramtypes", [Number])], l.prototype, "maxItems", null), n2.__decorate([(0, a.enumerable)(true), n2.__metadata("design:type", Number), n2.__metadata("design:paramtypes", [Number])], l.prototype, "minItems", null), n2.__decorate([(0, a.enumerable)(true), n2.__metadata("design:type", Number), n2.__metadata("design:paramtypes", [Number])], l.prototype, "maxLength", null), n2.__decorate([(0, a.enumerable)(true), n2.__metadata("design:type", Number), n2.__metadata("design:paramtypes", [Number])], l.prototype, "minLength", null), n2.__decorate([(0, a.enumerable)(true), n2.__metadata("design:type", Number), n2.__metadata("design:paramtypes", [Number])], l.prototype, "maxValue", null), n2.__decorate([(0, a.enumerable)(true), n2.__metadata("design:type", Boolean), n2.__metadata("design:paramtypes", [Boolean])], l.prototype, "maxValueInclusive", null), n2.__decorate([(0, a.enumerable)(true), n2.__metadata("design:type", Number), n2.__metadata("design:paramtypes", [Number])], l.prototype, "minValue", null), n2.__decorate([(0, a.enumerable)(true), n2.__metadata("design:type", Boolean), n2.__metadata("design:paramtypes", [Boolean])], l.prototype, "minValueInclusive", null), n2.__decorate([(0, a.enumerable)(true), n2.__metadata("design:type", String), n2.__metadata("design:paramtypes", [String])], l.prototype, "name", null), n2.__decorate([(0, a.enumerable)(true), n2.__metadata("design:type", String), n2.__metadata("design:paramtypes", [String])], l.prototype, "description", null), n2.__decorate([(0, a.enumerable)(true), n2.__metadata("design:type", String), n2.__metadata("design:paramtypes", [String])], l.prototype, "dataTypeId", null), n2.__decorate([(0, a.enumerable)(true), n2.__metadata("design:type", Boolean), n2.__metadata("design:paramtypes", [Boolean])], l.prototype, "isCollection", null), n2.__decorate([(0, a.enumerable)(true), n2.__metadata("design:type", Object), n2.__metadata("design:paramtypes", [Object])], l.prototype, "properties", null), n2.__decorate([(0, a.enumerable)(true), n2.__metadata("design:type", Array), n2.__metadata("design:paramtypes", [Array])], l.prototype, "allowableValues", null), n2.__decorate([(0, a.enumerable)(true), n2.__metadata("design:type", Boolean), n2.__metadata("design:paramtypes", [Boolean])], l.prototype, "isRequired", null), n2.__decorate([(0, a.enumerable)(true), n2.__metadata("design:type", Boolean), n2.__metadata("design:paramtypes", [Boolean])], l.prototype, "readOnly", null); + }, 71549: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = i2(17604), o = n2.__importDefault(i2(92140)), a = i2(9456), s = n2.__importStar(i2(36781)), l = n2.__importDefault(i2(87333)), u = n2.__importStar(i2(58380)), d = n2.__importDefault(i2(59805)), c = n2.__importStar(i2(63352)), p = n2.__importDefault(i2(2315)), _ = n2.__importDefault(i2(39041)), h = n2.__importDefault(i2(43221)), m = n2.__importDefault(i2(45431)), g = i2(55909), f = i2(33951), T = i2(47957); + class y extends m.default { + constructor(e3, t3, i3, n3) { + if (super(e3), f.ParameterValidator.expectObject(t3, () => g.ParameterInfo.createConstructorParameter(this.className, "builderModel")), f.ParameterValidator.expectBool(n3, () => g.ParameterInfo.createConstructorParameter(this.className, "reId")), n3 && t3 && (t3.id = (0, a.uuid)()), Object.defineProperties(this, { _amBuildingExpressionText: { value: false, enumerable: false, writable: true }, _availableBuilderPartDefinitions: { value: [], writable: true }, _availableBuilderPartContainerDefinitions: { value: [], writable: true }, _builderDef: { value: i3, writable: true }, _builderModel: { value: t3, enumerable: true, writable: true }, _builderValidationResultsOrganizer: { value: h.default.create(this), writable: true }, _suppressEventFiring: { value: false, writable: true }, _queuedUpdateOwningExpression: { writable: true }, _queuedConfigureForFlowStateCallback: { writable: true }, _queuedValidate: { writable: true } }), !this.builderDef) { + const e4 = "no builder definition available for the builder definition id '" + (t3 ? t3.builderDefId : "undefined") + "'"; + throw console.error(e4), e4; + } + super.configureForBuilderViewModel(this), this._availableBuilderPartDefinitions = this.builderDef.getAvailableBuilderPartDefinitionsForFlowType(this.parentFlowType, e3.options.allowedBuilderCategoryIdFilter, e3.options.allowedBuilderIds), e3.options.additionalBuilderPartDefs && (this._availableBuilderPartDefinitions = this._availableBuilderPartDefinitions.concat(e3.options.additionalBuilderPartDefs)), this._availableBuilderPartContainerDefinitions = this.builderDef.getAvailableBuilderPartContainerDefinitionsForFlowType(this.parentFlowType), u.registerEventSinkForEventEmitter(e3.parentFlow.languages.id, this); + } + _buildExpressionGeneration() { + throw "You must override the _buildExpressionGeneration method in inheriting classes"; + } + _configureForFlowState() { + return false; + } + _destroyIdleCallback(e3) { + e3 && e3.destroy(); + } + _fireBuilderValidated() { + this._suppressEventFiring || u.fireEvent(this, s.builderValidated); + } + _preValidateConfigureResultsOrganizer(e3) { + } + _postValidateClearResultsOrganizer(e3) { + } + _processLanguagesChanged() { + } + _validateBuilderObject(e3, t3) { + return !!super._validateBuilderObject(e3, t3) && (void 0 === this._meetsFeatureRequirementsCheck && (this._meetsFeatureRequirementsCheck = this.builderDef.meetsFeatureRequirements), true !== this._meetsFeatureRequirementsCheck ? (e3.addError(this, (0, r2.sprintf)(T.expression.builderUnavailableFeatureRequirements, this.builderDef.name)), false) : (void 0 === this._isAvailableForFlowTypeCheck && (this._isAvailableForFlowTypeCheck = this.builderDef.isAvailableForFlow(this.parentFlow)), true === this._isAvailableForFlowTypeCheck || (e3.addError(this, (0, r2.sprintf)(T.expression.builderUnavailableForFlowType, this.builderDef.name, this.parentFlow.info.flowTypeName)), false))); + } + configureForLanguageSequence(e3, t3) { + let i3; + if (e3.flowTypeOverrides && (i3 = e3.flowTypeOverrides[this.parentFlowType]), i3 || (i3 = e3), i3.builderId !== this.builderDefId) return false; + try { + return this._configureForLanguageSequence(e3, t3); + } catch (e4) { + } + return false; + } + _configureForLanguageSequence(e3, t3) { + return true; + } + getBuilderValidationResultsOrganizer() { + return this._builderValidationResultsOrganizer; + } + get className() { + return "BaseBuilderViewModel"; + } + configureForFlowState() { + if (this.parentFlow && this.parentFlow.info && !this.parentFlow.info.currentUserCanEdit) return false; + let e3; + try { + this._suppressEventFiring = true, this._queuedConfigureForFlowStateCallback = this._destroyIdleCallback(this._queuedConfigureForFlowStateCallback), e3 = this._configureForFlowState(); + } catch (e4) { + } finally { + this._suppressEventFiring = false; + } + e3 && this.updateOwningExpression(); + } + createBuilderDefaultBuildTextHelper() { + return p.default.createFormattedBuildTextHelper(); + } + get availableBuilderPartContainerDefinitions() { + if (this.parentFlow) { + const e3 = []; + return o.default.each(this._availableBuilderPartContainerDefinitions, (t3) => { + t3.isAvailableForFlow(this.parentFlow) && e3.push(t3); + }), e3; + } + return this._availableBuilderPartContainerDefinitions; + } + get availableBuilderPartDefinitions() { + return this._availableBuilderPartDefinitions; + } + get builderDef() { + return !this._builderDef && this.builderDefId && (this._builderDef = _.default.getBuilderDefById(this.builderDefId)), this._builderDef; + } + get builderDefId() { + var e3; + return null === (e3 = this._builderModel) || void 0 === e3 ? void 0 : e3.builderDefId; + } + buildExpressionText(e3) { + if (this._amBuildingExpressionText) return; + this._amBuildingExpressionText = true; + let t3, i3, n3 = ""; + o.default.isObject(e3) && !e3.isBuildTextHelper || (e3 = this.createBuilderDefaultBuildTextHelper(), i3 = true); + try { + e3.startBuilder(), t3 = this._buildExpressionGeneration(), o.default.isUndefined(t3) ? n3 = "" : (n3 = t3.generate(e3), o.default.isString(n3) || (n3 = "")); + } finally { + this._amBuildingExpressionText = false, e3.endBuilder(), t3 && t3.destroy(), i3 && e3.destroy(); + } + return this.validateBuilder(), n3; + } + get definitionId() { + return this.builderDefId; + } + get overrideErrorText() { + } + get id() { + var e3; + return null === (e3 = this._builderModel) || void 0 === e3 ? void 0 : e3.id; + } + _postInitializeDesignTime() { + this.updateOwningExpression(); + } + get isBaseBuilderViewModel() { + return true; + } + get model() { + return this._builderModel; + } + objEvent_builderPartExpressionTextChanged() { + this.parentFlow.loaded && this.postUpdateOwningExpression(); + } + objEvent_supportedLanguagesChanged() { + this.parentFlow.info.currentUserCanEdit && this._processLanguagesChanged(), this.postNeedsValidation(); + } + postUpdateOwningExpression(e3) { + this._queuedUpdateOwningExpression || (this._queuedUpdateOwningExpression = l.default.create(this.processUpdateOwningExpression.bind(this), o.default.isActualNumber(e3) ? e3 : 300)); + } + postNeedsConfigurationForFlowState() { + this._queuedConfigureForFlowStateCallback || (this._queuedConfigureForFlowStateCallback = l.default.create(this.configureForFlowState.bind(this))); + } + postNeedsValidation() { + this._queuedValidate || (this._queuedValidate = l.default.create(this.processValidateBuilder.bind(this))); + } + processUpdateOwningExpression() { + this._queuedUpdateOwningExpression = this._destroyIdleCallback(this._queuedUpdateOwningExpression), this.updateOwningExpression(); + } + updateOwningExpression() { + this.parentFlow.loaded && this.initializeDesignTimeCalled && this._shouldUpdateOwningExpression && this.owningExpression.setText(this.buildExpressionText()); + } + get _shouldUpdateOwningExpression() { + return this.owningExpression.mode === c.builder; + } + processValidateBuilder() { + this._queuedValidate = this._destroyIdleCallback(this._queuedValidate), this.validateBuilder(); + } + replaceUsages(e3, t3, i3) { + super.replaceUsages(e3, t3, i3), this.updateOwningExpression(); + } + validate(e3) { + const t3 = this.validateBuilder(!!e3 && e3.isDeep); + if (!e3) return t3; + const i3 = this.builderValidationResults; + if (!i3) return t3; + const n3 = this.owningExpression.label; + return t3 ? (i3.hasWarning && e3.addWarning(this.owningExpression, o.default.isString(n3) && n3.length ? (0, r2.sprintf)(T.builders.builderConfigWarningWithLabel, n3) : T.builders.builderConfigWarning, void 0, true), t3) : (this.owningExpression.parent.hasValidationError || e3.addError(this.owningExpression, o.default.isString(n3) && n3.length ? (0, r2.sprintf)(T.builders.builderConfigInvalidWithLabel, n3) : T.builders.builderConfigInvalid, void 0, true), t3); + } + validateBuilder(e3) { + let t3 = true; + const i3 = new d.default(this.parentFlow, !!o.default.isBoolean(e3) && e3); + try { + this.parentFlow.loaded && this.initializeDesignTimeCalled && (this._builderValidationResultsOrganizer.reset(), this._preValidateConfigureResultsOrganizer(this._builderValidationResultsOrganizer), t3 = this.validateBuilderObject(this._builderValidationResultsOrganizer, i3)); + } catch (e4) { + t3 = false, this._builderValidationResultsOrganizer.addError(this, T.builders.errorValidatingBuilder); + } finally { + this._postValidateClearResultsOrganizer(this._builderValidationResultsOrganizer); + } + return t3; + } + validateBuilderObject(e3, t3) { + const i3 = super.validateBuilderObject(e3, t3); + return this._fireBuilderValidated(), i3; + } + _destroy() { + u.unregisterAndRemoveObject(this), this._queuedConfigureForFlowStateCallback = this._destroyIdleCallback(this._queuedConfigureForFlowStateCallback), this._queuedUpdateOwningExpression = this._destroyIdleCallback(this._queuedUpdateOwningExpression), this._queuedValidate = this._destroyIdleCallback(this._queuedValidate), this._builderValidationResultsOrganizer.destroy(), this._amBuildingExpressionText = void 0, this._availableBuilderPartDefinitions = void 0, this._availableBuilderPartContainerDefinitions = void 0, this._builderDef = void 0, this._builderModel = void 0, this._builderValidationResultsOrganizer = void 0, this._suppressEventFiring = void 0, super._destroy(); + } + } + t2.default = y; + }, 71615: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.expressionResolvers = t2.ResolverResult = void 0; + const n2 = i2(31635), r2 = i2(17604), o = n2.__importDefault(i2(92140)), a = n2.__importStar(i2(9345)), s = i2(14394), l = i2(47957); + class u { + constructor(e3, t3, i3, n3, r3) { + this.error = n3, this.operand = r3, this.position = e3, this.success = t3, this.type = i3; + } + } + t2.ResolverResult = u, t2.expressionResolvers = new class { + constructor() { + this.map = {}, this._initialize(); + } + _errorResult(...e3) { + return new u(void 0, false, null, r2.sprintf.apply(null, e3)); + } + _errorFuncOpPrefixStr(e3) { + return (0, r2.sprintf)(l.expression.functions.funcOpPosPrefix, e3.getTextWithFuncOpTextFallback(), e3.position); + } + _errorResultWithPos(e3, ...t3) { + return new u(e3, false, null, r2.sprintf.apply(null, t3)); + } + _errorResultWithPosAndOperand(e3, ...t3) { + const i3 = [t3[0], this._errorFuncOpPrefixStr(e3)]; + for (let e4 = 1; e4 < t3.length; e4++) i3.push(t3[e4]); + return new u(e3.position, false, null, r2.sprintf.apply(null, i3), e3.getTextWithFuncOpTextFallback()); + } + _initialize() { + this.map.Accessor = this.resolveAccessor.bind(this), this.map.CollectionBrackets = this.resolveCollectionBrackets.bind(this), this.map.PropertyBrackets = this.resolvePropertyBrackets.bind(this), this.map.EmptyList = this.resolveEmptyList.bind(this), this.map.Find = this.resolveFind.bind(this), this.map.GetAt = this.resolveGetAt.bind(this), this.map.If = this.resolveLogicalIf.bind(this), this.map.LanguageUniqueContext = this.resolveLanguageUniqueContext.bind(this), this.map["n-SameType"] = this.resolveNSameTypeOperands.bind(this), this.map["n-SameTypeParmNotSetToString"] = this.resolveNSameTypeOperandsNotSetToString.bind(this), this.map["n-SameTypeRetColl"] = this.resolveNSameTypeReturnCollection.bind(this), this.map.NotSetToRetType = this.resolveNotSetToRetType.bind(this), this.map.SameType = this.resolveSameTypeOperands.bind(this), this.map.CollectionMods = this.resolveCollectionMods.bind(this); + } + _typeResult(e3, t3) { + const i3 = new u(void 0, true, e3); + return t3 && o.default.each(t3, function(e4, t4) { + Object.defineProperty(i3, t4, { value: e4 }); + }), i3; + } + _resolveAccessor(e3, t3, i3) { + const n3 = t3.getOperands(); + if (!n3 || 2 !== n3.length) return this._errorResult(l.expression.functions.internalErrMustBeTwoArgsOnAccessor); + const r3 = n3[1].type; + if (r3 === s.globalTypes.notSet) return this._errorResult(l.expression.functions.internalErrSecondArgCannotBeNotSet); + const o2 = n3[0].getText(void 0, void 0, true), a2 = r3.getPropertyDefinition(o2, true); + return a2 ? (n3[0].lit.val = r3 === s.globalTypes.json ? o2 : a2.id, this._typeResult(a2.type, { property: a2 })) : !o2 && i3 ? this._errorResultWithPos(n3[0].position, l.expression.propAccessBracketNeedsStringLit, n3[0].position) : this._errorResultWithPos(n3[0].position, l.expression.noPropertyWithName, o2, r3.displayString, n3[0].position); + } + _resolveGetAtOrBracket(e3, t3, i3) { + const n3 = e3.getOperands(); + if (!n3[i3].type.isMatch(s.globalTypes.integer, a.settings.typeOf)) return this._errorResultWithPosAndOperand(e3, l.expression.functions.argumentNumMustBeOfType, i3, s.globalTypes.integer.displayString); + const r3 = n3[t3]; + return r3.isCollection ? this._typeResult(r3.type.singletonType) : this._errorResult(l.expression.functions.argumentMustBeCollection, r3.position, e3.rootText, e3.position); + } + getResolver(e3) { + return this.map[e3]; + } + resolveAccessor(e3, t3) { + return this._resolveAccessor(e3, t3, false); + } + resolveCollectionBrackets(e3, t3) { + return this._resolveGetAtOrBracket(t3, 1, 0); + } + resolvePropertyBrackets(e3, t3) { + return this._resolveAccessor(e3, t3, true); + } + resolveEmptyList(e3, t3) { + const i3 = t3.getOperands()[0]; + return i3.isCollection ? this._errorResultWithPos(t3.position, l.expression.functions.argumentMustBeCollection, 1, t3.rootText, t3.position) : this._typeResult(i3.type.collectionType); + } + resolveFind(e3, t3) { + const i3 = t3.getOperands(), n3 = i3[0], r3 = i3[1], o2 = n3.type, s2 = r3.type; + if (!n3.isCollection) return this._errorResult(l.expression.functions.argumentMustBeCollection, 1, t3.rootText, t3.position); + const u2 = o2.singletonType; + return u2.isMatch(s2, a.settings.exact) ? this._typeResult(e3.returnType) : this._errorResultWithPosAndOperand(t3, l.expression.functions.argumentNumMustBeOfType, 2, u2.displayString); + } + resolveGetAt(e3, t3) { + return this._resolveGetAtOrBracket(t3, 0, 1); + } + resolveLanguageUniqueContext(e3, t3) { + const i3 = t3.getOperands(), n3 = {}; + for (let r3 = e3.operands.length - 1; r3 < i3.length; r3++) { + const e4 = i3[r3].getPropAccessInfo(); + if (e4 && e4.propGroup) { + const o2 = n3[e4.propGroup]; + if (o2) return this._errorResultWithPosAndOperand(t3, l.expression.functions.parameterEnumNotGroupUnique, i3[o2.index].getPropAccessName(), i3[r3].getPropAccessName()); + e4.index = r3, n3[e4.propGroup] = e4; + } + } + return this._typeResult(e3.returnType); + } + resolveLogicalIf(e3, t3) { + const i3 = t3.getOperands(); + if (!i3[0].type.isMatch(s.globalTypes.boolean, a.settings.typeOf)) return this._errorResultWithPosAndOperand(t3, l.expression.functions.argumentNumMustBeOfType, 1, s.globalTypes.boolean.displayString); + const n3 = i3[1].type, r3 = i3[2].type; + return n3 === s.globalTypes.notSet ? r3 === s.globalTypes.notSet ? this._errorResultWithPosAndOperand(t3, l.expression.functions.secondAndThirdArgumentsCannotBeNotSet, t3.getTextWithFuncOpTextFallback(), t3.position) : (i3[1].type = r3, this._typeResult(r3)) : r3 === s.globalTypes.notSet ? (i3[2].type = n3, this._typeResult(n3)) : n3.isBidirectionalMatch(r3, a.settings.typeOf) ? this._typeResult(n3) : this._errorResultWithPosAndOperand(t3, l.expression.functions.secondAndThirdArgumentsMustBeSameType, i3[1].position, i3[1].getErrorDisplayText(), i3[2].position, i3[2].getErrorDisplayText()); + } + resolveNotSetTypedOperands(e3, t3) { + const i3 = e3.operands, n3 = t3.getOperands(), r3 = n3.length, o2 = i3.length; + for (let e4 = 0; e4 < r3; e4++) { + const r4 = i3[e4 >= o2 ? o2 - 1 : e4], a2 = n3[e4]; + if (a2.isTypeNotSet) { + if (r4.type.isAny || a2.isCollection || r4.type.isCollection) return this._errorResultWithPosAndOperand(t3, l.expression.functions.typeForNotSetOperandCouldNotBeDetermined, r4.name, a2.position); + a2.type = r4.type; + } + } + return this._typeResult(e3.returnType); + } + _resolveNSameTypeOperands(e3, t3, i3, n3) { + const r3 = t3.getOperands(); + let u2, d = null, c = null; + for (let e4 = 0; e4 < r3.length; e4++) if (u2 = r3[e4], !u2.isNotSet) if (d) { + if (!u2.type.isMatch(d, a.settings.exact)) return this._errorResultWithPosAndOperand(t3, l.expression.functions.mustBeSameType, c.position, c.getErrorDisplayText(), u2.position, u2.getErrorDisplayText()); + } else c = u2, d = u2.type; + if (!d) { + if (!i3) return this._errorResultWithPosAndOperand(t3, l.expression.functions.mustHaveAtLeastOneNotSetOperand, t3.getTextWithFuncOpTextFallback(), t3.position); + d = s.globalTypes.string; + } + for (let e4 = 0; e4 < r3.length; e4++) u2 = r3[e4], u2.isNotSet && (u2.type = d); + const p = n3 ? d.collectionType : d; + return o.default.isNullOrUndefined(p) ? n3 ? this._errorResultWithPosAndOperand(t3, l.expression.functions.returnDataTypeAsCollectionNotAvailable, d.displayString) : this._errorResultWithPosAndOperand(t3, l.expression.functions.returnDataTypeCouldNotBeDetermined) : this._typeResult(p); + } + resolveNSameTypeOperands(e3, t3) { + return this._resolveNSameTypeOperands(e3, t3, false, false); + } + resolveNSameTypeOperandsNotSetToString(e3, t3) { + return this._resolveNSameTypeOperands(e3, t3, true, false); + } + resolveNSameTypeReturnCollection(e3, t3) { + return this._resolveNSameTypeOperands(e3, t3, false, true); + } + resolveNotSetToRetType(e3, t3) { + const i3 = t3.getOperands()[0], n3 = i3.type; + return n3 === s.globalTypes.notSet ? (i3.type = e3.returnType, this._typeResult(e3.returnType)) : this._errorResultWithPosAndOperand(t3, l.expression.functions.internalErrCannotResolveToNotSet, e3.operands[0].name, i3.position, n3.displayString); + } + resolveSameTypeOperands(e3, t3) { + const i3 = t3.getOperands(), n3 = i3[0].type, r3 = i3[1].type; + return n3 === s.globalTypes.notSet ? r3 === s.globalTypes.notSet ? (i3[0].type = s.globalTypes.string, i3[1].type = s.globalTypes.string, this._typeResult(s.globalTypes.boolean)) : (i3[0].type = r3, this._typeResult(s.globalTypes.boolean)) : r3 === s.globalTypes.notSet ? (i3[1].type = n3, this._typeResult(s.globalTypes.boolean)) : n3.isBidirectionalMatch(r3, a.settings.typeOf) ? this._typeResult(s.globalTypes.boolean) : this._errorResultWithPosAndOperand(t3, l.expression.functions.mustBeSameType, i3[0].position, i3[0].getErrorDisplayText(), i3[1].position, i3[1].getErrorDisplayText()); + } + resolveCollectionMods(e3, t3) { + const i3 = t3.getOperands(), n3 = i3[0], r3 = n3.type.singletonType; + if (!n3.isCollection) return this._errorResult(l.expression.functions.argumentMustBeCollection, n3.position, t3.rootText, t3.position); + for (let n4 = 1; n4 < i3.length; n4++) { + const o2 = i3[n4], u2 = e3.operands[n4]; + if (u2.type.isAny) { + if (u2.allowNotSet && o2.type === s.globalTypes.notSet) o2.type = r3; + else if (!r3.isMatch(o2.type.singletonType, a.settings.exact)) return this._errorResultWithPosAndOperand(t3, l.expression.functions.argumentNumMustBeOfType, n4 + 1, r3.displayString); + } else if (o2.type.isNotSet) { + if (u2.type.isCollection) return this._errorResultWithPosAndOperand(t3, l.expression.functions.argumentNumMustBeOfType, n4 + 1, r3.displayString); + o2.type = u2.type; + } + } + return this._typeResult(n3.type); + } + }(); + }, 71634: (e2, t2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.modal = t2.embedded = void 0, t2.embedded = "embedded", t2.modal = "modal"; + }, 71655: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importDefault(i2(2318)), o = i2(12179), a = n2.__importDefault(i2(17102)), s = i2(47957), l = "botSessionViewer"; + class u extends a.default { + constructor() { + super(...arguments), this._actionId = ""; + } + get actionId() { + return this._actionId; + } + set actionId(e3) { + this._actionId = e3; + } + get outOfService() { + return !r2.default.currentUserCanUseBotSessionViewer; + } + get id() { + return l; + } + static get id() { + return l; + } + get showInFlowSize() { + return false; + } + get className() { + return "BotSessionViewerViewModel"; + } + getDisplayName() { + return s.botSessionViewer.utteranceHistoryLabel; + } + get isBotSessionViewerNode() { + return true; + } + get nodeGuxIcon() { + return "fa/clock-rotate-left-regular"; + } + get helpTopic() { + return o.helpTopics.treeNodes.utteranceHistory; + } + get botSessionViewerArchNodeName() { + return l; + } + } + t2.default = u; + }, 71666: function(e2, t2, i2) { + "use strict"; + var n2, r2 = this && this.__extends || (n2 = function(e3, t3) { + return n2 = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(e4, t4) { + e4.__proto__ = t4; + } || function(e4, t4) { + for (var i3 in t4) Object.prototype.hasOwnProperty.call(t4, i3) && (e4[i3] = t4[i3]); + }, n2(e3, t3); + }, function(e3, t3) { + if ("function" != typeof t3 && null !== t3) throw new TypeError("Class extends value " + String(t3) + " is not a constructor or null"); + function i3() { + this.constructor = e3; + } + n2(e3, t3), e3.prototype = null === t3 ? Object.create(t3) : (i3.prototype = t3.prototype, new i3()); + }); + Object.defineProperty(t2, "__esModule", { value: true }), t2.Action = void 0; + var o = (function(e3) { + function t3(t4, i3) { + return e3.call(this) || this; + } + return r2(t3, e3), t3.prototype.schedule = function(e4, t4) { + return void 0 === t4 && (t4 = 0), this; + }, t3; + })(i2(69879).Subscription); + t2.Action = o; + }, 71698: (e2, t2, i2) => { + const n2 = i2(22124), r2 = i2(84670); + function o() { + o.baseConstructor.apply(this, arguments); + } + n2.extend(o, "QueueList"), Object.defineProperties(o.prototype, { entities: { enumerable: true, get: function() { + return this._entities; + }, set: function(e3) { + this._entities = this.reviveArray(e3, r2); + } } }), e2.exports = o; + }, 71706: (e2, t2, i2) => { + const n2 = i2(92140), r2 = i2(13240), { callCommonModuleActionType: o } = i2(30801), a = i2(90807); + function s() { + Object.defineProperties(this, { _inputs: { writable: true }, _outputs: { writable: true } }), this.flowId = void 0, this.flowName = void 0, this.flowVersion = void 0, this.flowLatestVersion = true, this.flowDebugPublished = false, s.baseConstructor.apply(this, arguments); + } + r2.extend(s, o, true), Object.defineProperties(s.prototype, { pasteReIdOrRename: { value: function(e3) { + s._super.pasteReIdOrRename.apply(this, arguments), n2.each(this.inputs, (t3) => { + t3.pasteReIdOrRename(e3); + }), n2.each(this.outputs, (t3) => { + t3.pasteReIdOrRename(e3); + }); + } }, pasteResolveOldToNewValues: { value: function(e3) { + s._super.pasteResolveOldToNewValues.apply(this, arguments), n2.each(this.inputs, (t3) => { + t3.pasteResolveOldToNewValues(e3); + }), n2.each(this.outputs, (t3) => { + t3.pasteResolveOldToNewValues(e3); + }); + } }, inputs: { enumerable: true, get: function() { + return this._inputs; + }, set: function(e3) { + this._inputs = this.reviveArray(e3, a); + } }, outputs: { enumerable: true, get: function() { + return this._outputs; + }, set: function(e3) { + this._outputs = this.reviveArray(e3, a); + } } }), e2.exports = s; + }, 71726: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(20692)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "userQueueCollection"; + } + get displayTypeName() { + return "ArchVariableUserCollection"; + } + get initialValue() { + return this._initialValue; + } + get isArchVariableUserCollection() { + return true; + } + } + t2.default = r2; + }, 71729: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importDefault(i2(92140)), o = n2.__importStar(i2(94453)), a = n2.__importStar(i2(12847)), s = n2.__importStar(i2(17498)), l = n2.__importStar(i2(36781)), u = n2.__importStar(i2(9345)), d = n2.__importStar(i2(24032)), c = n2.__importStar(i2(71004)), p = n2.__importStar(i2(14187)), _ = n2.__importStar(i2(63352)), h = n2.__importStar(i2(10798)), m = i2(84464), g = n2.__importDefault(i2(20084)), f = i2(30801), T = i2(30801), y = i2(27491), S = i2(59263), A = n2.__importDefault(i2(4648)), N = i2(96618), O = i2(14394), I = i2(77841), v = i2(12179), C = i2(10798), b = i2(10798), E = n2.__importDefault(i2(77862)), R = i2(63689), w = i2(39168), D = i2(19284), P = i2(58525), M = (i2(13804), i2(13804), i2(13804)), F = i2(80428), L = i2(79467), x = n2.__importDefault(i2(73198)), k = n2.__importStar(i2(63824)), V = n2.__importDefault(i2(7401)), U = i2(47957), B = i2(42515), G = i2(27862); + d.getTopic("BotFlowSettingsViewModel"); + class j extends g.default { + constructor(e3) { + super(e3, "botFlowSettings", B); + } + get id() { + return "botFlowSettings"; + } + get className() { + return "BotFlowSettingsViewModel"; + } + static get managedProperties() { + return [{ label: U.askCommon.voiceProcessingPrompt, options: P.ExpressionTypePromptOptions.create((e3) => e3.setIninTestingField("voiceProcessingPrompt").setIsOptional(true).setAllowModeExpression(false).setDefaultToNoValue(true).setDescriptionInfo(U.askCommon.voiceProcessingPrompt, U.askCommon.voiceProcessingPromptDescription).setFeatureConfigName(A.default.botFlowsVoiceProcessingPrompt).setSystemPromptFilterNames(M.voiceProcessingPromptFilterNames).setUiPropertyOrder(1).setScriptingPropertyName("voiceProcessingPrompt")), supportedFlowTypes: [N.flowTypes.flowTypeBot], property: "voiceProcessingPrompt", type: F.expressionTypeNames.prompt }, { label: U.askCommon.initialPlaybackDelay, options: L.ExpressionTypeDurationOptions.create((e3) => e3.setIninTestingField("initialPlaybackDelay").setDefaultText(x.default.litDurationOneHundredMs).setScriptingPropertyName("initialPlaybackDelay").setDurationStyle(k.durationStyles.secondsAndTenthsDuration).setFeatureConfigName(A.default.botFlowsVoiceProcessingPrompt).setAllowModeLiteralOnly().setUiPropertyOrder(2).facets.setMinDur(100, true).setMaxDur(10 * x.default.msPerSecond, true)), supportedFlowTypes: [N.flowTypes.flowTypeBot], property: "initialPlaybackDelay", type: F.expressionTypeNames.duration }, { label: U.askCommon.minimumPlaybackTime, options: L.ExpressionTypeDurationOptions.create((e3) => e3.setIninTestingField("minimumPlaybackTime").setDefaultText(x.default.litDurationOneSecond).setScriptingPropertyName("minimumPlaybackTime").setDurationStyle(k.durationStyles.secondsAndTenthsDuration).setFeatureConfigName(A.default.botFlowsVoiceProcessingPrompt).setAllowModeLiteralOnly().setUiPropertyOrder(3).facets.setMinDur(x.default.msPerSecond, true).setMaxDur(10 * x.default.msPerSecond, true)), supportedFlowTypes: [N.flowTypes.flowTypeBot], property: "minimumPlaybackTime", type: F.expressionTypeNames.duration }]; + } + getConfiguration(e3, t3) { + var i3; + this.clearDynamicAgenticVirtualAgentEnabledState(); + const n3 = super.getConfiguration(e3, t3); + if (null == t3 ? void 0 : t3.isForFlowYaml) { + const o3 = this.parent.nluMetaData.intentSettingsMap, a2 = n3; + Object.keys(o3).length && (a2.intentSettings = [], r2.default.each(o3, (i4) => { + var n4; + const o4 = { intent: {} }; + if (o4.intent.confirmation = i4.confirmationExpression.getConfiguration(e3, t3), o4.intent.name = i4.name, i4.parentFlow.isDigitalBotFlow) { + const e4 = null === (n4 = i4.parent.intentsToReusableTasksMapping[i4.name]) || void 0 === n4 ? void 0 : n4.id; + if (r2.default.isString(e4)) { + const t4 = r2.default.findWhere(i4.parentFlow.tasks, { id: e4 }); + t4 && (o4.intent.task = {}, o4.intent.task.name = t4.name); + } + } + a2.intentSettings.push(o4); + })); + const s2 = this.parent.nluMetaData.slotsToGrammarsMapping; + if (!r2.default.isNullOrUndefined(s2)) { + const e4 = Object.keys(s2); + e4.length > 0 && (a2.slotSettings = e4.map((e5) => { + var t4; + const i4 = { slot: { name: e5, speechToTextEngine: {} } }, n4 = s2[e5]; + if (r2.default.isString(null == n4 ? void 0 : n4.id)) { + const e6 = {}, t5 = I.grammarManager.getItem(n4.id); + (null == t5 ? void 0 : t5.name) ? e6.name = t5.name : e6.id = n4.id, i4.slot.grammar = e6; + } + if (r2.default.isString(null === (t4 = null == n4 ? void 0 : n4.sttEngine) || void 0 === t4 ? void 0 : t4.id)) { + const e6 = {}, t5 = D.speechToTextEngineManager.getItem(n4.sttEngine.id); + (null == t5 ? void 0 : t5.name) ? e6.name = t5.name : e6.id = n4.sttEngine.id, i4.slot.speechToTextEngine = e6; + } + return i4; + })); + } + const l2 = this.parent.nluMetaData.listPickerMappings; + if (!r2.default.isNullOrUndefined(l2)) { + const e4 = Object.keys(l2); + e4.length > 0 && (a2.slotSettings = e4.map((e5) => ({ slot: { name: e5, listPickerType: l2[e5] } }))); + } + const u2 = this.parent.nluMetaData.dynamicSlotTypesMap; + u2.outOfService || Object.keys(u2.items).length && (a2.dynamicSlotTypes = [], r2.default.each(u2.items, (i4) => { + const n4 = { dynamicSlotType: {} }; + n4.dynamicSlotType.name = i4.name, n4.dynamicSlotType.values = i4.values.getConfiguration(e3, t3), n4.dynamicSlotType.synonyms = i4.synonyms.getConfiguration(e3, t3), i4.labels.outOfService || (n4.dynamicSlotType.labels = i4.labels.getConfiguration(e3, t3)), a2.dynamicSlotTypes.push(n4); + })); + const d2 = this.parent.nluMetaData.dynamicTimeslotTypeList; + if (!d2.outOfService && (null === (i3 = d2.items) || void 0 === i3 ? void 0 : i3.length)) { + const i4 = d2.items.map((i5) => ({ dynamicTimeslot: { name: i5.name, timeslots: i5.timeslots.getConfiguration(e3, t3) } })); + a2.dynamicTimeslots = [...i4]; + } + return this.virtualAgentEnabled && (a2.virtualAgentEnabled = this.virtualAgentEnabled), r2.default.ensureYamlNoneTrue(a2), a2; + } + e3.botFlowSettings.nluDomainId = this.nluDomainId, e3.botFlowSettings.engineVersion = this.engineVersion, e3.botFlowSettings.nluDomainVersionId = this.nluDomainVersionId, e3.botFlowSettings.virtualAgentEnabled = this.virtualAgentEnabled; + const o2 = this.agenticVirtualAgentEnabled; + void 0 !== o2 && (e3.botFlowSettings.agenticVirtualAgentEnabled = o2); + } + get engineVersion() { + return this._engineVersion; + } + set engineVersion(e3) { + this._engineVersion = e3; + } + getDisplayName() { + return this.parentFlow.type === N.flowTypes.flowTypeVoiceSurvey ? U.voiceSurvey.voiceSurveyTitleWithSettings : U.botFlowSettings.titleWithSettings; + } + getNodeName() { + return U.flow.types.bot; + } + get helpTopic() { + return v.helpTopics.treeNodes.botFlowSettings; + } + get isBotFlowSettingsNode() { + return true; + } + loadConfiguration(e3) { + super.loadConfiguration(e3); + const t3 = e3.botFlowSettings; + t3.nluDomainId && this.setNluDomainInfo(t3.nluDomainId, t3.engineVersion), t3.nluDomainVersionId && (this.nluDomainVersionId = t3.nluDomainVersionId), this.virtualAgentEnabled = t3.virtualAgentEnabled, (0, C.isFeatureAvailable)(A.default.botFlowsAgenticVirtualAgent) && (this._agenticVirtualAgentEnabledFlowLoadState = t3.agenticVirtualAgentEnabled); + } + loadSettings(e3, t3, i3) { + this.setNluDomainInfo(e3, i3), this.nluDomainVersionId = t3; + } + get nluDomain() { + return this.nluDomainId ? R.nluDomainManager.getItem(this.nluDomainId) || R.nluDomainManager.getItemFromFlowMetadata(this, this.nluDomainId) : null; + } + get nluDomainIntents() { + return this.nluDomain && this.nluDomain.intents ? this.nluDomain.intents : []; + } + get nluDomainEntities() { + return this.nluDomain && this.nluDomain.entities ? this.nluDomain.entities : []; + } + get dynamicSlotTypesListIsAvailable() { + var e3; + return !!(null === (e3 = this.parent.nluMetaData) || void 0 === e3 ? void 0 : e3.dynamicSlotTypesListIsAvailable()); + } + get isDynamicTimeslotListAvailable() { + var e3; + return !!(null === (e3 = this.parent.nluMetaData) || void 0 === e3 ? void 0 : e3.dynamicTimeslotListIsAvailable()); + } + get nluDomainId() { + return this._nluDomainId; + } + set nluDomainId(e3) { + this._nluDomainId = e3; + } + get nluDomainVersionId() { + return this._nluDomainVersionId; + } + set nluDomainVersionId(e3) { + const t3 = this._nluDomainVersionId; + this._nluDomainVersionId = e3, this._nluDomainVersionVerifiedForOrg = void 0, t3 !== this._nluDomainVersionId && (this.updateDependencies(), l.emitter.emit(l.nluDomainVersionCreated, this.parentFlow)); + } + get virtualAgentEnabled() { + return !!this._virtualAgentEnabled; + } + set virtualAgentEnabled(e3) { + this._virtualAgentEnabled = e3, this.parentFlow.loaded && l.emitter.emit(l.botFlowSettingChanged, { setting: E.default.variable.virtualAgentEnabled }); + } + get hasCallAVAAction() { + return void 0 === this._hasCallAVAAction && (this._hasCallAVAAction = m.actionRegistrationService.getHasActionsOfActionType(this.parentFlow, f.callAgenticVirtualAgentActionType)), this._hasCallAVAAction; + } + get agenticVirtualAgentEnabled() { + if (!(0, b.isFeatureUnavailable)(A.default.botFlowsAgenticVirtualAgent)) return !((0, C.isFeatureAvailable)(A.default.botFlowsVirtualAgentGuideBillingDowngrade) || !this._agenticVirtualAgentEnabledFlowLoadState) || (void 0 === this._agenticVirtualAgentEnabledFlowCurrentState && ((0, C.isFeatureAvailable)(A.default.botFlowsVirtualAgentGuideBillingDowngrade) ? this._agenticVirtualAgentEnabledFlowCurrentState = m.actionRegistrationService.getHasActionsOfActionType(this.parentFlow, f.callAgenticVirtualAgentActionType) : (0, C.isFeatureAvailable)(A.default.botFlowsAgenticVirtualAgentSage) ? this._agenticVirtualAgentEnabledFlowCurrentState = m.actionRegistrationService.getHasActionsOfActionType(this.parentFlow, f.callAgenticVirtualAgentActionType) || m.actionRegistrationService.getHasActionsOfActionType(this.parentFlow, T.callGuideActionType) : this._agenticVirtualAgentEnabledFlowCurrentState = m.actionRegistrationService.getHasActionsOfActionType(this.parentFlow, T.callGuideActionType)), this._agenticVirtualAgentEnabledFlowCurrentState); + } + getIsNluDomainCreated() { + return R.nluDomainManager.getIsNluIdentifierCreated(this.nluDomainId); + } + getIsNluDomainVersionCreated() { + return R.nluDomainManager.getIsNluIdentifierCreated(this._nluDomainVersionId); + } + getIsNluDomainVersionValidForThisOrg() { + return n2.__awaiter(this, void 0, void 0, function* () { + return r2.default.isBoolean(this._nluDomainVersionVerifiedForOrg) || (this._nluDomainVersionVerifiedForOrg = R.nluDomainManager.getIsNluDomainVersionValidForThisOrg(this.nluDomainId, this._nluDomainVersionId)), this._nluDomainVersionVerifiedForOrg; + }); + } + get nodeGuxIcon() { + return "fa/gears-regular"; + } + search(e3) { + e3.addToQueue(this.nluDomain); + } + updateDependencies() { + var e3, t3; + super.updateDependencies(), this.nluDomainId && !(null === (e3 = this.nluDomain) || void 0 === e3 ? void 0 : e3.isFake) && s.registerConsumer(this, this.id, null === (t3 = this.nluDomain) || void 0 === t3 ? void 0 : t3.name, this.nluDomainId, this.nluDomainVersionId, G.NLUDomain, this.parentFlow); + } + setNluDomainInfo(e3, t3) { + this.nluDomainId = e3, this.engineVersion = t3; + } + validate(e3) { + var t3; + super.validate(e3), !this.nluDomainId && this.parentFlow.isCreated && e3.addError(this, U.bot.nluConfigurationUnavailable), this.parentFlow.isCreated && !this.parentFlow.botFlowSettings.virtualAgentEnabled && this.parentFlow.hasAISlotType && e3.addError(this.parentFlow.slotTypeSettings, U.bot.unsupportedAISlotTypeError), (null === (t3 = this.parentFlow.nluMetaData) || void 0 === t3 ? void 0 : t3.dynamicTimeslotTypeList) && !this.parentFlow.nluMetaData.dynamicTimeslotTypeList.outOfService && this.parentFlow.nluMetaData.dynamicTimeslotTypeList.validate(e3); + } + get wrappedYamlName() { + return this.parentFlow.type === N.flowTypes.flowTypeVoice ? "settingsBot" : "settingsBotFlow"; + } + _destroy() { + super._destroy(); + } + getSlotVariableNameForSlotName(e3, t3) { + return e3 ? (t3 && (e3 += `_${U.expression.collectionSingular}`), y.expressionDataService.cleanseForIdentifierName(e3, "_", true)) : "slot_"; + } + createSlotVarForSlotName(e3, t3, i3, n3) { + const r3 = this.parentFlow; + if (!r3) return; + const a2 = this.getSlotVariableNameForSlotName(e3, n3); + let s2 = p.setScope(p.scopes.slot, a2); + const l2 = r3.variableGroup.getVariableByName(s2, r3); + if (l2) { + if (l2.type.isMatch(o.getArchitectTypeForNluType(t3, i3, n3), u.settings.exact)) return r3.nluMetaData.addSlot(e3, l2, t3), l2; + s2 = r3._getUniqueName(r3.variableGroup.flowVariables, s2); + } + const d2 = this.createExpressionForNLUDataType(s2, t3, i3, n3), _2 = c.addVariable(s2, d2, r3, `Variable for the '${e3}' slot.`, true); + d2.processText(true); + const h2 = {}; + return _2.getIsOutputCanSet(h2) && (_2.isOutput = true), _2.getIsInputCanSet(h2) && (_2.isInput = true), r3.nluMetaData.addSlot(e3, _2, t3), d2.destroy(), _2; + } + createExpressionForNLUDataType(e3, t3, i3, n3) { + let r3 = o.getArchitectTypeForNluType(t3, i3, n3); + r3.isAvailableForFlow(this.parentFlow) || (a.warn(`The data nluDataType: ${r3} is not available for flow ${this.parentFlow.type}. Falling back to String.`), r3 = O.globalTypes.string); + const s2 = r3.createExpressionOptionClass(); + s2.setDefaultToExpression(true); + const l2 = new V.default({}), u2 = new S.ExpressionParameters(this.parentFlow, this.parent, l2, e3, true, s2); + return u2.type = r3, new w.NormalExpression(u2); + } + get allowsMoreThanOneSupportedLanguage() { + const e3 = parseFloat(this.engineVersion); + return !!isNaN(e3) || !!r2.default.isActualNumber(e3) && e3 >= 3; + } + clearDynamicAgenticVirtualAgentEnabledState() { + this._agenticVirtualAgentEnabledFlowCurrentState = void 0, this._hasCallAVAAction = void 0; + } + setNewInstanceDefaults() { + super.setNewInstanceDefaults(), this.parent.isBotFlow && h.isFeatureAvailable(A.default.botFlowsVoiceProcessingPrompt); + } + initializeDesignTime() { + if (super.initializeDesignTime(), this.parent.isBotFlow && h.isFeatureAvailable(A.default.botFlowsVoiceProcessingPrompt)) { + const e3 = this.voiceProcessingPrompt; + if (e3) { + const t3 = e3.mode === _.literal && !!e3.text; + l.emitter.emit(l.promptChanged, { type: "voiceProcessingPrompt", isSet: t3 }), this.addAutoCleanedUpEventSinkWatch(l.expressionValueChanged, e3, (e4) => { + const t4 = e4.mode === _.literal && !!e4.text; + l.emitter.emit(l.promptChanged, { type: "voiceProcessingPrompt", isSet: t4 }); + }); + } + } + } + updateAgenticVirtualAgentEnabledFromFlowInfo() { + var e3, t3, i3; + (0, C.isFeatureAvailable)(A.default.botFlowsVirtualAgentGuideBillingDowngrade) && (this._agenticVirtualAgentEnabledFlowLoadState = null === (t3 = null === (e3 = this.parentFlow) || void 0 === e3 ? void 0 : e3.info) || void 0 === t3 ? void 0 : t3.agenticVirtualAgentEnabled, this.clearDynamicAgenticVirtualAgentEnabledState(), (null === (i3 = this.parentFlow) || void 0 === i3 ? void 0 : i3.loaded) && l.emitter.emit(l.botFlowSettingChanged, { setting: "agenticVirtualAgentEnabled" })); + } + } + t2.default = j; + }, 71814: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(54757)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "phoneNumberCollection"; + } + get displayTypeName() { + return "ArchValuePhoneNumberCollection"; + } + get isArchValuePhoneNumberCollection() { + return true; + } + } + t2.default = r2; + }, 71824: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importDefault(i2(92140)), o = n2.__importStar(i2(12847)), a = n2.__importDefault(i2(33139)), s = n2.__importStar(i2(36781)), l = n2.__importStar(i2(58380)), u = n2.__importDefault(i2(96651)), d = n2.__importDefault(i2(81948)), c = i2(47957), p = i2(69674), _ = i2(1115), h = i2(64420), m = i2(23695); + class g extends d.default { + constructor(e3) { + super(e3), this.states = []; + } + get className() { + return "CommonWorkflowViewModel"; + } + get overrideWireFlowConfiguration() { + return h.getWorkflowConfiguration; + } + get overrideWireFlowVersionConfiguration() { + return h.getVersionWorkflowConfiguration; + } + get statesYamlPropertyName() { + return a.default.states; + } + buildConfiguration(e3, t3, i3) { + if (super.buildConfiguration(e3, t3, i3), this.states.length) { + const t4 = (null == i3 ? void 0 : i3.isForFlowYaml) ? this.statesYamlPropertyName : a.default.flowSequenceItemList; + r2.default.isArray(e3[t4]) || (e3[t4] = []), r2.default.each(this.states, (n3) => { + const r3 = n3.getConfiguration(e3, i3); + if (null == i3 ? void 0 : i3.isForFlowYaml) { + if (n3.isInQueueStartUpState) return void (e3.startUpState = r3.state); + if (n3.isPeriodicState) return void (e3.periodicState = r3.state); + } + e3[t4].push(r3); + }), (null == i3 ? void 0 : i3.isForFlowYaml) && this.isInQueueWorkflow && (delete e3.startUpRef, e3[t4].length || delete e3[t4]); + } + return this.isInQueueWorkflow && !(null == i3 ? void 0 : i3.isForFlowYaml) && (e3.periodicStateId = this._periodicStateId), e3; + } + checkVersion(e3) { + super.checkVersion(e3); + } + get children() { + return [...super.children, ...this.states]; + } + createState(e3) { + const t3 = new p(); + t3.name = e3 || this._getUniqueName(this.states, c.task.newDefaultStateName); + const i3 = new u.default(this, t3); + return this.addNewChild(i3), i3; + } + addNewChild(e3) { + e3.isState && this.states.push(e3), super.addNewChild(e3); + } + getFlowConfigurationClass() { + return m; + } + deleteNode(e3, t3) { + if (!e3) return null; + if (this.initialSequence === e3.id) return null; + if (this._periodicStateId === e3.id) return null; + const i3 = e3.parent; + if (i3.deleteChild) i3.deleteChild(e3); + else { + const i4 = e3.isTask ? this.tasks : this.states, n3 = i4.indexOf(e3); + !t3 && n3 >= 0 && (i4.splice(n3, 1), l.fireEvent(this, s.containerListChanged, e3)); + } + return e3.isDestroyedOrDestroying || (e3.destroy(), l.fireEvent(this, s.containerListChanged)), i3; + } + search(e3) { + super.search(e3), r2.default.each(this.states, e3.addToQueue.bind(e3)); + } + traverse(e3) { + super.traverse(e3); + for (let t3 = this.states.length - 1; t3 >= 0; t3--) if (this.states[t3].traverse(e3), e3.isCanceled) return; + } + updateDependencies() { + r2.default.each(this.states, (e3) => { + e3.updateDependencies(); + }), super.updateDependencies(); + } + _loadConfiguration(e3) { + this._setInitialTrackingNumberFromConfiguration(e3.nextTrackingNumber), r2.default.destroyContents(this.states), this._extractSequenceItemViewModels(e3, this.states, this.stateViewModel), this.definition.supportsPeriodicState && (this._periodicState = void 0, this._periodicStateId = e3.periodicStateId), super._loadConfiguration(e3); + } + get stateViewModel() { + return u.default; + } + _destroy() { + super._destroy(), this.states && r2.default.destroyContents(this.states); + } + _initializeDesignTime() { + super._initializeDesignTime(), this.states && r2.default.each(this.states, (e3) => { + e3.initializeDesignTime(); + }); + } + get periodicState() { + if (this.definition.supportsPeriodicState) return this._periodicState && !this._periodicState.isDestroyed && this._periodicState.id === this._periodicStateId || (this._periodicState = this.getChild(this._periodicStateId)), this._periodicState; + } + set periodicState(e3) { + if (!this.definition.supportsPeriodicState) return void o.error("flow does not support periodic state"); + if (!e3 || !e3.isState) return void o.error("periodicState must be a state"); + if (this.initialSequence === e3.id) return void o.error("can not set periodicState to initialSequence"); + const t3 = this.periodicState; + t3 && _.validateNode(t3, true), this._periodicStateId = e3.id, this._periodicState = void 0; + const i3 = this.periodicState; + i3 && _.validateNode(i3, true), l.fireEvent(this, s.startUpObjectChanged); + } + } + t2.default = g; + }, 71840: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(81574)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "voiceSnippet"; + } + get id() { + } + get startDateTime() { + } + get length() { + } + get displayTypeName() { + return "ArchValueVoiceSnippet"; + } + get isArchValueVoiceSnippet() { + return true; + } + } + t2.default = r2; + }, 71844: (e2, t2, i2) => { + function n2() { + this.name = void 0, n2.baseConstructor.apply(this, arguments); + } + i2(45214).extend(n2, "BridgeServerCategory"), Object.defineProperties(n2.prototype, { id: { get: function() { + return this.name; + }, set: function(e3) { + this.name = e3; + } } }), e2.exports = n2; + }, 71874: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.WorktypeErrorTypesEnum = void 0, t2.checkWorktypeFlowCompatibility = function(e3) { + return n2.__awaiter(this, void 0, void 0, function* () { + var t3; + const i3 = { error: null }; + try { + (null === (t3 = (yield r2.worktypeManager.apiCallSingle(e3)).flow) || void 0 === t3 ? void 0 : t3.id) && (i3.error = a.worktypeInUse); + } catch (e4) { + if (null == e4 ? void 0 : e4.status) switch (e4.status) { + case 403: + i3.error = a.worktypeInsufficientViewPermissions; + break; + case 404: + i3.error = a.worktypeDoesNotExist; + break; + default: + o.requestError(e4, "unspecified error getting worktype."), i3.error = a.worktypeUnspecifiedError; + } + } + return i3; + }); + }, t2.getWorktypeStatusByName = function(e3, t3) { + return s(e3, t3, "name"); + }, t2.getWorktypeStatusById = function(e3, t3) { + return s(e3, t3, "id"); + }; + const n2 = i2(31635), r2 = i2(38725), o = n2.__importStar(i2(24032)).getTopic("workitemFlow"); + var a; + function s(e3, t3, i3) { + var n3, r3, o2; + return (null === (o2 = null === (r3 = null === (n3 = t3.workitemFlowSettings) || void 0 === n3 ? void 0 : n3.worktype) || void 0 === r3 ? void 0 : r3.statuses) || void 0 === o2 ? void 0 : o2.length) ? t3.workitemFlowSettings.worktype.statuses.find((t4) => (function(e4, t5) { + return e4.toLowerCase() === t5.toLowerCase(); + })("name" === i3 ? t4.name : t4.id, e3)) : {}; + } + !(function(e3) { + e3.worktypeInsufficientViewPermissions = "worktypeInsufficientViewPermissions", e3.worktypeInUse = "worktypeInUse", e3.worktypeDoesNotExist = "worktypeDoesNotExist", e3.worktypeUnspecifiedError = "worktypeUnspecifiedError"; + })(a || (t2.WorktypeErrorTypesEnum = a = {})); + }, 71901: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = i2(96618), o = i2(17604), a = n2.__importDefault(i2(92140)), s = i2(65287), l = i2(4333), u = i2(13110), d = i2(28562), c = n2.__importDefault(i2(73198)), p = n2.__importStar(i2(63824)), _ = n2.__importStar(i2(63352)), h = i2(80428), m = n2.__importDefault(i2(15244)), g = i2(67607), f = i2(82319), T = i2(61870), y = i2(79467), S = i2(78513), A = i2(81516), N = i2(99469), O = n2.__importStar(i2(85020)), I = n2.__importStar(i2(10798)), v = i2(44351), C = i2(44351), b = i2(44351), E = n2.__importStar(i2(1115)), R = n2.__importDefault(i2(4648)), w = i2(12179), D = n2.__importDefault(i2(20084)), P = i2(21556), M = i2(21733), F = i2(47957); + class L extends D.default { + static get managedProperties() { + return [{ label: F.customNodes.botFlowUserInputSettings.quickRepliesLabel, options: g.ExpressionTypeBooleanOptions.create((e3) => e3.setDescriptionInfo(F.customNodes.botFlowUserInputSettings.quickRepliesLabel, (0, o.sprintf)(F.customNodes.botFlowUserInputSettings.quickRepliesDescription, F.actions.askForBoolean, F.actions.askAnythingElse, F.actions.askForSlot)).setIninTestingField("enableAutomaticQuickReplies").setDefaultText(c.default.false).setHideDefaultTextDescription(true).setIsOptional(false).setFeatureConfigName(R.default.botFlowsAutomaticQuickRepliesFeature).setRequiresFlowQuickRepliesSetting(true).setBoolText(F.generic.genericOn, F.generic.genericOff).setUiPropertyGroup(F.customNodes.botFlowUserInputSettings.generalUserInputSettings)), property: "enableAutomaticQuickReplies", type: h.expressionTypeNames.boolean }, { label: F.customNodes.botFlowUserInputSettings.voiceBargeInSettingLabel, options: g.ExpressionTypeBooleanOptions.create((e3) => e3.setDescriptionInfo(F.customNodes.botFlowUserInputSettings.voiceBargeInSettingLabel, F.customNodes.botFlowUserInputSettings.voiceBargeInSettingDescription).setIninTestingField("enableBargeIn").setDefaultText(c.default.false).setRequiredFlowChannelType(O.channelTypeCall).setHideDefaultTextDescription(true).setIsOptional(false).setBoolText(F.generic.genericOn, F.generic.genericOff).setUiPropertyGroup(F.customNodes.botFlowUserInputSettings.generalUserInputSettings)), property: "enableBargeIn", type: h.expressionTypeNames.boolean }, { label: F.customNodes.botFlowUserInputSettings.noMatchesMax, options: S.ExpressionTypeIntegerOptions.create((e3) => e3.setIninTestingField("noMatchesMax").setDescriptionInfo(F.customNodes.botFlowUserInputSettings.noMatchesMax, (0, o.sprintf)(F.customNodes.botFlowUserInputSettings.userInputSettingNoMatchesMaxDescription, F.actions.askForActionGeneric, F.customNodes.eventHandling.recognitionFailureEvent, F.generic.branches.noIntent)).setIsOptional(false).setDefaultText("3").setUiPropertyGroup(F.customNodes.botFlowUserInputSettings.noMatches).facets.setMinInt(0, true).setMaxInt(20, true)), property: "noMatchesMax", type: h.expressionTypeNames.integer }, { label: F.customNodes.botFlowUserInputSettings.noInputsMax, options: S.ExpressionTypeIntegerOptions.create((e3) => e3.setIninTestingField("noInputsMax").setDescriptionInfo(F.customNodes.botFlowUserInputSettings.noInputsMax, (0, o.sprintf)(F.customNodes.botFlowUserInputSettings.userInputSettingsNoInputsMaxDescription, F.actions.askForActionGeneric, F.customNodes.eventHandling.recognitionFailureEvent, F.generic.branches.noIntent)).setIsOptional(false).setDefaultText("3").setUiPropertyGroup(F.customNodes.botFlowUserInputSettings.noInputs).facets.setMinInt(0, true).setMaxInt(20, true)), optionsForSpecificFlowTypes: [{ flowTypes: [r2.flowTypes.flowTypeDigitalBot], options: S.ExpressionTypeIntegerOptions.create((e3) => e3.setIninTestingField("noInputsMax").setDescriptionInfo(F.customNodes.botFlowUserInputSettings.noInputsMax, (0, o.sprintf)(F.customNodes.botFlowUserInputSettings.userInputSettingsNoInputsDigitalMaxDescription, F.actions.askForActionGeneric, F.customNodes.eventHandling.recognitionFailureEvent, F.generic.branches.noIntent)).setIsOptional(false).setFeatureConfigName(R.default.botFlowsDigitalBotFlowsNoInputsTimeoutFeature).setDefaultText("3").setUiPropertyGroup(F.customNodes.botFlowUserInputSettings.noInputs).facets.setMinInt(0, true).setMaxInt(20, true)) }], property: "noInputsMax", type: h.expressionTypeNames.integer }, { list: true, label: F.customNodes.botFlowUserInputSettings.noInputsApology, options: f.ExpressionTypeCommunicationOptions.create((e3) => e3.setDescriptionInfo(F.customNodes.botFlowUserInputSettings.noInputsApology, (0, o.sprintf)(F.customNodes.botFlowUserInputSettings.userInputSettingsNoInputsApologyDescription, F.actions.askForActionGeneric, F.askCommon.noInput)).setCollectionItemsWantCollectionDescriptionInfo(true).setIninTestingField("noInputsApologies").setIsOptional(false).setDefaultToBuilderId(d.builderIds.parts.genericCommunication).setBuilderLanguagesSequenceConfig(s.botFlowUserInputSettingsSequences.settingsNoInputApologySequence).setUiPropertyGroup(F.customNodes.botFlowUserInputSettings.noInputs)), optionsForSpecificFlowTypes: [{ flowTypes: [r2.flowTypes.flowTypeDigitalBot], options: f.ExpressionTypeCommunicationOptions.create((e3) => e3.setDescriptionInfo(F.customNodes.botFlowUserInputSettings.noInputsApology, (0, o.sprintf)(F.customNodes.botFlowUserInputSettings.userInputSettingsNoInputsApologyDescription, F.actions.askForActionGeneric, F.askCommon.noInput)).setCollectionItemsWantCollectionDescriptionInfo(true).setIninTestingField("noInputsApologies").setIsOptional(false).setFeatureConfigName(R.default.botFlowsDigitalBotFlowsNoInputsTimeoutFeature).setDefaultToBuilderId(d.builderIds.parts.markdownCommunication).setBuilderLanguagesSequenceConfig(s.botFlowUserInputSettingsSequences.settingsNoInputApologyDigitalBotSequence).setUiPropertyGroup(F.customNodes.botFlowUserInputSettings.noInputs)) }], property: "noInputsApologies", type: h.expressionTypeNames.communication }, { label: F.customNodes.botFlowUserInputSettings.noInputsTimeout, options: y.ExpressionTypeDurationOptions.create((e3) => e3.setIninTestingField("noInputsTimeout").setDescriptionInfo(F.customNodes.botFlowUserInputSettings.noInputsTimeout, F.customNodes.botFlowUserInputSettings.userInputSettingsNoInputTimeoutDescription).setIsOptional(false).setDefaultText(c.default.litDurationSevenSeconds).setRequiredFlowChannelType(O.channelTypeCall).setUiPropertyGroup(F.customNodes.botFlowUserInputSettings.noInputs).setDurationStyle(p.durationStyles.secondsAndTenthsDuration).facets.setMinDur(0, true).setMaxDur(10 * c.default.msPerSecond, true)), optionsForSpecificFlowTypes: [{ flowTypes: [r2.flowTypes.flowTypeDigitalBot], options: y.ExpressionTypeDurationOptions.create((e3) => e3.setIninTestingField("noInputsTimeout").setLabelOverride(F.customNodes.botFlowUserInputSettings.noInputsDigitalTimeout).setDescriptionInfo(F.customNodes.botFlowUserInputSettings.noInputsDigitalTimeout, F.customNodes.botFlowUserInputSettings.userInputSettingsNoInputDigitalTimeoutDescription).setIsOptional(false).setFeatureConfigName(R.default.botFlowsDigitalBotFlowsNoInputsTimeoutFeature).setDefaultText(c.default.litDurationOneMinute).setUiPropertyGroup(F.customNodes.botFlowUserInputSettings.noInputs).setDurationStyle(p.durationStyles.fullDuration).facets.setMinDur(10 * c.default.msPerSecond, true).setMaxDur(3 * c.default.msPerDay, true)) }], property: "noInputsTimeout", type: h.expressionTypeNames.duration }, { label: F.customNodes.botFlowUserInputSettings.noInputsMaxExceeded, createDetails: u.EventHandlingTypeProperty.createCreateDetails(I.isFeatureAvailable("botFlowEscalationRecognitionHandlingV2") ? [m.default.Continue, m.default.Disconnect, m.default.Exit, m.default.Task] : [m.default.Continue, m.default.Disconnect, m.default.Exit], "noInputsMaxExceededHandlingType", m.default.Continue, true), options: N.ManagedPropertyOptions.create((e3) => e3.setFeatureConfigName(R.default.botFlowsDigitalBotFlowsNoInputsTimeoutFeature).setUiPropertyGroup(F.customNodes.botFlowUserInputSettings.noInputs).setDescriptionInfo(F.customNodes.botFlowUserInputSettings.noInputsMaxExceeded, F.customNodes.botFlowUserInputSettings.noInputsMaxExceededDescription)), supportedFlowTypes: [r2.flowTypes.flowTypeDigitalBot], property: "noInputsMaxExceededHandling" }, { createDetails: l.ContainerActionProperty.createCreateDetails({ modelIdPropName: "noInputsMaxExceededTaskId", modelNamePropName: "noInputsMaxExceededTaskName", itemDoesNotExistBaseString: F.task.label, noReferenceString: F.task.noReference, referencesTasks: true, validReferenceCallback: (e3) => e3 && !e3.isTransferable && e3.hasBranchTerminatingWithEndTask ? { error: F.task.invalidReferenceTaskTransfer } : e3 && e3.isTask && e3.isTransferable ? void 0 : { error: F.task.invalidReference } }), options: N.ManagedPropertyOptions.create((e3) => e3.setIninTestingField("noInputsMaxExceededTask").setUiPropertyGroup(F.customNodes.botFlowUserInputSettings.noInputs).setFeatureConfigName(R.default.botFlowEscalationRecognitionHandlingV2)), supportedFlowTypes: [r2.flowTypes.flowTypeDigitalBot], property: "noInputsMaxExceededTask" }, { label: F.customNodes.botFlowUserInputSettings.confirmationRejectionsMax, options: S.ExpressionTypeIntegerOptions.create((e3) => e3.setIninTestingField("confirmationRejectionsMax").setDescriptionInfo(F.customNodes.botFlowUserInputSettings.confirmationRejectionsMax, (0, o.sprintf)(F.customNodes.botFlowUserInputSettings.userInputSettingsConfirmationRejectionsMaxDescription, F.actions.askForActionGeneric, F.customNodes.eventHandling.recognitionFailureEvent, F.generic.branches.noIntent)).setIsOptional(false).setDefaultText("3").setUiPropertyGroup(F.customNodes.botFlowUserInputSettings.confirmationErrors).facets.setMinInt(0, true).setMaxInt(20, true)), property: "confirmationRejectionsMax", type: h.expressionTypeNames.integer }, { label: F.customNodes.botFlowUserInputSettings.collectionLowConfidenceThreshold, options: S.ExpressionTypeIntegerOptions.create((e3) => e3.setIninTestingField("collectionLowConfidenceThreshold").setDescriptionInfo(F.customNodes.botFlowUserInputSettings.collectionLowConfidenceThreshold, (0, o.sprintf)(F.customNodes.botFlowUserInputSettings.userSettingsCollectionLowConfidenceThresholdDescription, F.customNodes.botFlowUserInputSettings.collectionHighConfidenceThreshold)).setIsOptional(false).setDefaultText("20").setSubLabel(F.speechRec.minConfidenceLevelRange).setUiPropertyGroup(F.customNodes.botFlowUserInputSettings.confidenceThresholds).setCustomLiteralValidator((e4) => x(e4)).facets.setMinInt(0, true).setMaxInt(100, true)), property: "collectionLowConfidenceThreshold", type: h.expressionTypeNames.integer }, { label: F.customNodes.botFlowUserInputSettings.collectionHighConfidenceThreshold, options: S.ExpressionTypeIntegerOptions.create((e3) => e3.setIninTestingField("collectionHighConfidenceThreshold").setDescriptionInfo(F.customNodes.botFlowUserInputSettings.collectionHighConfidenceThreshold, F.customNodes.botFlowUserInputSettings.userSettingsCollectionHighConfidenceThresholdDescription).setIsOptional(false).setDefaultText("70").setSubLabel(F.speechRec.minConfidenceLevelRange).setUiPropertyGroup(F.customNodes.botFlowUserInputSettings.confidenceThresholds).setCustomLiteralValidator((e4) => x(e4)).facets.setMinInt(0, true).setMaxInt(100, true)), property: "collectionHighConfidenceThreshold", type: h.expressionTypeNames.integer }, { label: F.customNodes.botFlowUserInputSettings.confirmationLowConfidenceThreshold, options: S.ExpressionTypeIntegerOptions.create((e3) => e3.setIninTestingField("confirmationLowConfidenceThreshold").setDescriptionInfo(F.customNodes.botFlowUserInputSettings.confirmationLowConfidenceThreshold, (0, o.sprintf)(F.customNodes.botFlowUserInputSettings.userSettingsConfirmationLowConfidenceThresholdDescription, F.actions.askForBoolean, F.actions.askForNLUNextIntentAction)).setIsOptional(false).setDefaultText("40").setSubLabel(F.speechRec.minConfidenceLevelRange).setUiPropertyGroup(F.customNodes.botFlowUserInputSettings.confidenceThresholds).facets.setMinInt(0, true).setMaxInt(100, true)), property: "confirmationLowConfidenceThreshold", type: h.expressionTypeNames.integer }, { label: F.speechToText.recognitionParams.speechToTextSpeechDetectionSensitivity, options: T.ExpressionTypeDecimalOptions.create((e3) => e3.setIninTestingField("speechToTextSpeechDetectionSensitivity").setDescriptionInfo(F.speechToText.recognitionParams.speechToTextSpeechDetectionSensitivity, (0, o.sprintf)(F.generic.joinTwoSentences, F.customNodes.botFlowUserInputSettings.userSettingsSttSpeechDetectionSensitivity, F.customNodes.botFlowUserInputSettings.userSettingsSttSpeechDetectionSensitivityNuanceSupport)).setFeatureConfigName(R.default.orgAvailabilityGrammars).setUiPropertyGroup(F.speechToText.recognitionParams.speechRecognitionParameters).setIsOptional(true).facets.setMinDec(0).setMinValInclusive(true).setMaxDec(1).setMaxValInclusive(true)), supportedFlowTypes: [r2.flowTypes.flowTypeBot, r2.flowTypes.flowTypeVoice, r2.flowTypes.flowTypeVoiceSurvey], property: "speechToTextSpeechDetectionSensitivity", type: h.expressionTypeNames.decimal }, { label: F.speechToText.recognitionParams.speechToTextMaxSpeechTimeout, options: y.ExpressionTypeDurationOptions.create((e3) => e3.setIninTestingField("speechToTextMaxSpeechTimeout").setDescriptionInfo(F.speechToText.recognitionParams.speechToTextMaxSpeechTimeout, F.customNodes.botFlowUserInputSettings.userSettingsSttMaxSpeechTimeout).setFeatureConfigName(R.default.orgAvailabilityGrammars).setUiPropertyGroup(F.speechToText.recognitionParams.speechRecognitionParameters).setDurationStyle(p.durationStyles.secondsAndTenthsDuration).setIsOptional(true).facets.setMinDur(0, true).setMaxDur(30 * c.default.msPerSecond, true)), supportedFlowTypes: [r2.flowTypes.flowTypeBot, r2.flowTypes.flowTypeVoice, r2.flowTypes.flowTypeVoiceSurvey], property: "speechToTextMaxSpeechTimeout", type: h.expressionTypeNames.duration }, { label: F.customNodes.botFlowUserInputSettings.intentClassificationHintingLabel, supportedFlowTypes: [r2.flowTypes.flowTypeBot], options: g.ExpressionTypeBooleanOptions.create((e3) => e3.setDescriptionInfo(F.customNodes.botFlowUserInputSettings.intentClassificationHintingLabel, F.customNodes.botFlowUserInputSettings.intentClassificationHintingDescription).setIninTestingField("enableIntentClassificationHinting").setBoolText("", "").setDefaultText(c.default.false).setUseToggle(true).setIsOptional(false).setUiPropertyGroup(F.customNodes.botFlowUserInputSettings.automaticSpeechRecognition).setUiSingleItemSectionPropertyGroup(true).setFeatureConfigName(R.default.botFlowsIntentClassificationHintingAsr).setAllowModeLiteralOnly()), property: "enableIntentClassificationHinting", type: h.expressionTypeNames.boolean }, { label: F.collectInput.interDigitTimeout, options: y.ExpressionTypeDurationOptions.create((e3) => e3.setIninTestingField("interDigitTimeout").setDefaultText(c.default.litDurationThreeSeconds).setUiPropertyGroup(F.voiceSurvey.voiceSurveyDtmfSettingsLabel).setDurationStyle(p.durationStyles.minutesSecondsAndMsDuration).facets.setMinDur(1e3, true).setMaxDur(99e3, true)), optionsForSpecificFlowTypes: [{ flowTypes: [r2.flowTypes.flowTypeBot], options: y.ExpressionTypeDurationOptions.create((e3) => e3.setIninTestingField("interDigitTimeout").setDefaultText(c.default.litDurationThreeSeconds).setUiPropertyGroup(F.voiceSurvey.voiceSurveyDtmfSettingsLabel).setDurationStyle(p.durationStyles.minutesSecondsAndMsDuration).setFeatureConfigName(R.default.botFlowsInterDigitTimeout).facets.setMinDur(1e3, true).setMaxDur(99e3, true)) }], property: "interDigitTimeout", type: h.expressionTypeNames.duration, supportedFlowTypes: [r2.flowTypes.flowTypeVoiceSurvey, r2.flowTypes.flowTypeBot] }, { label: F.voiceSurvey.voiceSurveyTerminatingCharacterLabel, options: A.ExpressionTypeStringOptions.create((e3) => e3.setIninTestingField("dtmfTerminatingCharacter").setUiPropertyGroup(F.voiceSurvey.voiceSurveyDtmfSettingsLabel).setDefaultText(b.dtmfPound).setAllowModeLiteralOnly().setDescriptionInfo(F.voiceSurvey.voiceSurveyTerminatingCharacterLabel, F.voiceSurvey.voiceSurveyTerminatingCharacterDescription).facets.setAllowableValues(C.surveyFormDtmfTerminatingValues).setAllowableValueUseOriginalDisplayString(true)), optionsForSpecificFlowTypes: [{ flowTypes: [r2.flowTypes.flowTypeBot], options: A.ExpressionTypeStringOptions.create((e3) => e3.setIninTestingField("dtmfTerminatingCharacter").setUiPropertyGroup(F.voiceSurvey.voiceSurveyDtmfSettingsLabel).setIsOptional(true).setDefaultToNoValue(true).setAllowModeExpression(false).setAllowModeBuilder(false).setFeatureConfigName(R.default.botFlowsInterDigitTimeout).setDescriptionInfo(F.voiceSurvey.voiceSurveyTerminatingCharacterLabel, F.voiceSurvey.voiceSurveyTerminatingCharacterDescription).facets.setAllowableValues(v.botFormDtmfTerminatingValues).setAllowableValueUseOriginalDisplayString(true)) }], property: "dtmfTerminatingCharacter", type: h.expressionTypeNames.string, supportedFlowTypes: [r2.flowTypes.flowTypeVoiceSurvey, r2.flowTypes.flowTypeBot] }, { list: true, label: F.customNodes.botFlowUserInputSettings.noMatchApology, options: f.ExpressionTypeCommunicationOptions.create((e3) => e3.setIninTestingField("noMatchApologies").setDescriptionInfo(F.customNodes.botFlowUserInputSettings.noMatchApology, (0, o.sprintf)(F.customNodes.botFlowUserInputSettings.userInputSettingNoMatchApologyDescription, F.actions.askForActionGeneric, F.askCommon.noMatch)).setCollectionItemsWantCollectionDescriptionInfo(true).setIsOptional(false).setDefaultToBuilderId(d.builderIds.parts.genericCommunication).setBuilderLanguagesSequenceConfig(s.botFlowUserInputSettingsSequences.settingsNoMatchApologySequence).setUiPropertyGroup(F.customNodes.botFlowUserInputSettings.noMatches)), optionsForSpecificFlowTypes: [{ flowTypes: [r2.flowTypes.flowTypeDigitalBot], options: f.ExpressionTypeCommunicationOptions.create((e3) => e3.setIninTestingField("noMatchApologies").setDescriptionInfo(F.customNodes.botFlowUserInputSettings.noMatchApology, (0, o.sprintf)(F.customNodes.botFlowUserInputSettings.userInputSettingNoMatchApologyDescription, F.actions.askForActionGeneric, F.askCommon.noMatch)).setCollectionItemsWantCollectionDescriptionInfo(true).setIsOptional(false).setDefaultToBuilderId(d.builderIds.parts.markdownCommunication).setBuilderLanguagesSequenceConfig(s.botFlowUserInputSettingsSequences.settingsNoMatchApologySequence).setUiPropertyGroup(F.customNodes.botFlowUserInputSettings.noMatches)) }], property: "noMatchApologies", type: h.expressionTypeNames.communication }, { label: F.customNodes.botFlowUserInputSettings.endOfSessionMessage, options: f.ExpressionTypeCommunicationOptions.create((e3) => e3.setIninTestingField("endOfSessionMessage").setDescriptionInfo(F.customNodes.botFlowUserInputSettings.endOfSessionMessage, F.customNodes.botFlowUserInputSettings.endOfSessionMessageDescription).setIsOptional(true).setDefaultToBuilderId(d.builderIds.parts.markdownCommunication).setBuilderLanguagesSequenceConfig(s.botFlowUserInputSettingsSequences.settingsEndOfSessionMessageDigitalBotSequence).setFeatureConfigName(R.default.botFlowsDigitalBotFlowsNoInputsTimeoutFeature).setUiPropertyGroup(F.customNodes.botFlowUserInputSettings.noInputs)), supportedFlowTypes: [r2.flowTypes.flowTypeDigitalBot], property: "endOfSessionMessage", type: h.expressionTypeNames.communication }, { list: true, label: F.customNodes.botFlowUserInputSettings.noToConfirmationApology, options: f.ExpressionTypeCommunicationOptions.create((e3) => e3.setIninTestingField("noToConfirmationApologies").setDescriptionInfo(F.customNodes.botFlowUserInputSettings.noToConfirmationApology, (0, o.sprintf)(F.customNodes.botFlowUserInputSettings.userInputSettingsNoToConfirmationApologyDescription, F.actions.askForActionGeneric, F.askCommon.noMatch)).setCollectionItemsWantCollectionDescriptionInfo(true).setIsOptional(false).setDefaultToBuilderId(d.builderIds.parts.genericCommunication).setBuilderLanguagesSequenceConfig(s.botFlowUserInputSettingsSequences.settingsNoToConfirmationApologySequence).setUiPropertyGroup(F.customNodes.botFlowUserInputSettings.confirmationErrors)), optionsForSpecificFlowTypes: [{ flowTypes: [r2.flowTypes.flowTypeDigitalBot], options: f.ExpressionTypeCommunicationOptions.create((e3) => e3.setIninTestingField("noToConfirmationApologies").setDescriptionInfo(F.customNodes.botFlowUserInputSettings.noToConfirmationApology, (0, o.sprintf)(F.customNodes.botFlowUserInputSettings.userInputSettingsNoToConfirmationApologyDescription, F.actions.askForActionGeneric, F.askCommon.noMatch)).setCollectionItemsWantCollectionDescriptionInfo(true).setIsOptional(false).setDefaultToBuilderId(d.builderIds.parts.markdownCommunication).setBuilderLanguagesSequenceConfig(s.botFlowUserInputSettingsSequences.settingsNoToConfirmationApologySequence).setUiPropertyGroup(F.customNodes.botFlowUserInputSettings.confirmationErrors)) }], property: "noToConfirmationApologies", type: h.expressionTypeNames.communication }, { list: true, label: F.customNodes.botFlowUserInputSettings.confirmationNoMatchApology, options: f.ExpressionTypeCommunicationOptions.create((e3) => e3.setIninTestingField("confirmationNoMatchApologies").setDescriptionInfo(F.customNodes.botFlowUserInputSettings.confirmationNoMatchApology, F.customNodes.botFlowUserInputSettings.userSettingsConfirmationNoMatchApologyDescription).setCollectionItemsWantCollectionDescriptionInfo(true).setIsOptional(false).setDefaultToBuilderId(d.builderIds.parts.genericCommunication).setBuilderLanguagesSequenceConfig(s.botFlowUserInputSettingsSequences.settingsConfirmationNoMatchApologySequence).setUiPropertyGroup(F.customNodes.botFlowUserInputSettings.confirmationErrors)), optionsForSpecificFlowTypes: [{ flowTypes: [r2.flowTypes.flowTypeDigitalBot], options: f.ExpressionTypeCommunicationOptions.create((e3) => e3.setIninTestingField("confirmationNoMatchApologies").setDescriptionInfo(F.customNodes.botFlowUserInputSettings.confirmationNoMatchApology, F.customNodes.botFlowUserInputSettings.userSettingsConfirmationNoMatchApologyDescription).setCollectionItemsWantCollectionDescriptionInfo(true).setIsOptional(false).setDefaultToBuilderId(d.builderIds.parts.markdownCommunication).setBuilderLanguagesSequenceConfig(s.botFlowUserInputSettingsSequences.settingsConfirmationNoMatchApologyDigitalBotSequence).setUiPropertyGroup(F.customNodes.botFlowUserInputSettings.confirmationErrors)) }], property: "confirmationNoMatchApologies", type: h.expressionTypeNames.communication }, { list: true, label: F.customNodes.botFlowUserInputSettings.confirmationNoInputApology, options: f.ExpressionTypeCommunicationOptions.create((e3) => e3.setIninTestingField("confirmationNoInputApologies").setDescriptionInfo(F.customNodes.botFlowUserInputSettings.confirmationNoInputApology, F.customNodes.botFlowUserInputSettings.userSettingsConfirmationNoInputApology).setCollectionItemsWantCollectionDescriptionInfo(true).setIsOptional(false).setDefaultToBuilderId(d.builderIds.parts.genericCommunication).setBuilderLanguagesSequenceConfig(s.botFlowUserInputSettingsSequences.settingsConfirmationNoInputApologySequence).setUiPropertyGroup(F.customNodes.botFlowUserInputSettings.confirmationErrors)), optionsForSpecificFlowTypes: [{ flowTypes: [r2.flowTypes.flowTypeDigitalBot], options: f.ExpressionTypeCommunicationOptions.create((e3) => e3.setIninTestingField("confirmationNoInputApologies").setDescriptionInfo(F.customNodes.botFlowUserInputSettings.confirmationNoInputApology, F.customNodes.botFlowUserInputSettings.userSettingsConfirmationNoInputApology).setCollectionItemsWantCollectionDescriptionInfo(true).setIsOptional(false).setDefaultToBuilderId(d.builderIds.parts.genericCommunication).setBuilderLanguagesSequenceConfig(s.botFlowUserInputSettingsSequences.settingsConfirmationNoInputApologyDigitalBotSequence).setUiPropertyGroup(F.customNodes.botFlowUserInputSettings.confirmationErrors)) }], property: "confirmationNoInputApologies", type: h.expressionTypeNames.communication }]; + } + constructor(e3) { + super(e3, "userInputSettings", P); + } + get id() { + return "userInputSettings"; + } + get helpTopic() { + return this.parentFlow.isVoiceSurveyFlow ? w.helpTopics.treeNodes.userInputSettingsVoiceSurvey : w.helpTopics.treeNodes.userInputSettings; + } + get className() { + return "BotFlowUserInputSettingsViewModel"; + } + getDisplayName() { + return F.customNodes.userInputSettings.title; + } + getConfiguration(e3, t3) { + if (null == t3 ? void 0 : t3.isForFlowYaml) { + const i3 = { enableBargeIn: this.enableBargeIn.getConfiguration(e3, t3), enableAutomaticQuickReplies: this.enableAutomaticQuickReplies.getConfiguration(e3, t3), noMatchesMax: this.noMatchesMax.getConfiguration(e3, t3), noInputsMax: this.noInputsMax.getConfiguration(e3, t3), noInputsMaxExceededHandling: this.noInputsMaxExceededHandling.getConfiguration(e3, t3), noInputsTimeout: this.noInputsTimeout.getConfiguration(e3, t3), speechToTextSpeechDetectionSensitivity: this.speechToTextSpeechDetectionSensitivity.getConfiguration(e3, t3), speechToTextMaxSpeechTimeout: this.speechToTextMaxSpeechTimeout.getConfiguration(e3, t3), enableIntentClassificationHinting: this.enableIntentClassificationHinting.getConfiguration(e3, t3), interDigitTimeout: this.interDigitTimeout.getConfiguration(e3, t3), dtmfTerminatingCharacter: this.dtmfTerminatingCharacter.getConfiguration(e3, t3), endOfSessionMessage: this.endOfSessionMessage.getConfiguration(e3, t3), confirmationRejectionsMax: this.confirmationRejectionsMax.getConfiguration(e3, t3), collectionLowConfidenceThreshold: this.collectionLowConfidenceThreshold.getConfiguration(e3, t3), collectionHighConfidenceThreshold: this.collectionHighConfidenceThreshold.getConfiguration(e3, t3), confirmationLowConfidenceThreshold: this.confirmationLowConfidenceThreshold.getConfiguration(e3, t3), noMatchApology: this.noMatchApologies.getConfiguration(e3, t3)[0], noInputApology: this.noInputsApologies.getConfiguration(e3, t3)[0], noToConfirmationApology: this.noToConfirmationApologies.getConfiguration(e3, t3)[0], confirmationNoMatchApology: this.confirmationNoMatchApologies.getConfiguration(e3, t3)[0], confirmationNoInputApology: this.confirmationNoInputApologies.getConfiguration(e3, t3)[0] }; + for (const e4 in i3) a.default.isNullOrUndefined(i3[e4]) && delete i3[e4]; + if (!a.default.isNullOrUndefined(this.noInputsMaxExceededHandling.handlingType) && this.noInputsMaxExceededHandling.handlingType !== m.default.Continue) { + const e4 = this.noInputsMaxExceededHandling.getConfigurationForHandlingProperty(this.noInputsMaxExceededHandling.handlingType, this.noInputsMaxExceededTask), t4 = a.default.tryWrapObject(e4, "noInputsMaxExceededHandling"); + a.default.extend(i3, t4); + } + return i3; + } + return super.getConfiguration(e3, t3); + } + get isBotFlowUserInputSettingsNode() { + return true; + } + loadConfiguration(e3) { + const t3 = []; + if (!e3.userInputSettings) { + const e4 = (e5, t4) => { + const i4 = this[e5].isNormalExpression ? this[e5] : this[e5].add(); + i4 && (i4.setModeWithTransition(_.builder, this.parentFlow.type === r2.flowTypes.flowTypeDigitalBot ? d.builderIds.parts.markdownCommunication : d.builderIds.parts.genericCommunication), i4.builder.addOrSetStringLiteralBuilderPart(t4), i4.builder.owningExpression.setText(i4.builder.buildExpressionText())); + }, i3 = M(this.parentFlow.defaultLanguage); + this.parentFlow.isDigitalBotFlow ? (t3.push(e4.bind(this, "noInputsApologies", i3.settingsNoInputApologyDigitalBot)), t3.push(e4.bind(this, "endOfSessionMessage", i3.settingsEndOfSessionMessageDigitalBot)), t3.push(e4.bind(this, "confirmationNoMatchApologies", i3.settingsConfirmationNoMatchApologyDigitalBot)), t3.push(e4.bind(this, "confirmationNoInputApologies", i3.settingsConfirmationNoInputApologyDigitalBot))) : (t3.push(e4.bind(this, "noInputsApologies", i3.settingsNoInputApology)), t3.push(e4.bind(this, "confirmationNoMatchApologies", i3.settingsConfirmationNoMatchApology)), t3.push(e4.bind(this, "confirmationNoInputApologies", i3.settingsConfirmationNoInputApology))), t3.push(e4.bind(this, "noMatchApologies", i3.settingsNoMatchApology)), t3.push(e4.bind(this, "noToConfirmationApologies", i3.settingsNoToConfirmationApology)); + } + super.loadConfiguration(e3), t3.forEach((e4) => e4()); + } + initializeDesignTime() { + super.initializeDesignTime(), this.parentFlow.definition.supportsNluIntents || (this.collectionHighConfidenceThreshold.outOfService = true, this.collectionLowConfidenceThreshold.outOfService = true, this.confirmationLowConfidenceThreshold.outOfService = true), this.showTaskPropertyBasedOnHandlingType(this.noInputsMaxExceededTask, this.noInputsMaxExceededHandling.handlingType), this.addAutoCleanedUpSubscription(this.noInputsMaxExceededHandling.valueChanged$.subscribe(() => { + this.showTaskPropertyBasedOnHandlingType(this.noInputsMaxExceededTask, this.noInputsMaxExceededHandling.handlingType), E.validateNode(this, true); + })), "" === this.enableIntentClassificationHinting.displayValue && this.parentFlow.definition.supportsEnableIntentClassificationHinting && (this.enableIntentClassificationHinting.setAsLiteral(c.default.true), E.validateNode(this, true)); + } + get currentUiVersion() { + return 2; + } + updateConfiguration(e3, t3) { + (!e3 || e3 < 2) && this.parentFlow.type === r2.flowTypes.flowTypeBot && this.dtmfTerminatingCharacter.setAsNoValue(); + } + showTaskPropertyBasedOnHandlingType(e3, t3) { + const i3 = t3 !== m.default.Task; + e3.outOfService = i3; + } + setNewInstanceDefaults() { + super.setNewInstanceDefaults(); + } + get nodeGuxIcon() { + return "microphone"; + } + get wrappedYamlName() { + return "settingsUserInput"; + } + get noInputsMaxExceededHandlingTypes() { + return I.isFeatureAvailable(R.default.botFlowEscalationRecognitionHandlingV2) ? [m.default.Continue, m.default.Disconnect, m.default.Exit, m.default.Task] : [m.default.Continue, m.default.Disconnect, m.default.Exit]; + } + } + t2.default = L; + const x = (e3) => { + if (e3.parent.collectionLowConfidenceThreshold.isLiteralMode && e3.parent.collectionHighConfidenceThreshold.isLiteralMode) { + const t3 = parseInt(e3.parent.collectionLowConfidenceThreshold.text), i3 = parseInt(e3.parent.collectionHighConfidenceThreshold.text), n3 = !isNaN(t3) && !isNaN(i3) && t3 >= i3 ? F.customNodes.botFlowUserInputSettings.collectionConfidenceThresholdsError : void 0; + if (!e3.parent.isValidating) { + const t4 = e3 === e3.parent.collectionLowConfidenceThreshold ? e3.parent.collectionHighConfidenceThreshold : e3.parent.collectionLowConfidenceThreshold, i4 = e3.parentFlow.validationResults.nodeHasError(t4.parent.id, F.customNodes.botFlowUserInputSettings.collectionConfidenceThresholdsError, t4.id); + (n3 && !i4 || !n3 && i4) && E.validateItem(t4, true, true); + } + return n3; + } + }; + }, 71956: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.getBootstrappingDataV2 = s; + const n2 = i2(31635), r2 = n2.__importDefault(i2(83735)), o = n2.__importDefault(i2(36019)), a = { getBootstrappingDataV2: o.default.request("GET", "{public-api.apps}/api/v2/architect/capabilities", r2.default, { ignoreBadResponse: false }) }; + function s(e3) { + const t3 = o.default.build(a.getBootstrappingDataV2); + return t3.queryParams({ expand: e3 }), t3.call(); + } + t2.default = { getBootstrappingDataV2: s }; + }, 71960: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = (n2.__importStar(i2(12847)), i2(80295)), o = i2(19596), a = i2(32595), s = /* @__PURE__ */ new Set(["agentOutput"]); + class l extends o.DataContract { + get id() { + var e3; + return this._id ? this._id : `${null === (e3 = this._virtualAgent) || void 0 === e3 ? void 0 : e3.id}~${this._version}`; + } + set id(e3) { + this._id = e3; + } + get name() { + return this._name; + } + set name(e3) { + this._name = e3; + } + get version() { + return this._version; + } + set version(e3) { + this._version = e3; + } + get virtualAgent() { + return this._virtualAgent; + } + set virtualAgent(e3) { + this._virtualAgent = e3; + } + get definition() { + return this._definition; + } + set definition(e3) { + var t3, i3; + this._definition = e3; + const n3 = null === (t3 = this._definition.types) || void 0 === t3 ? void 0 : t3.find((e4) => "InputData" === e4.name), r3 = (null == n3 ? void 0 : n3.properties) || []; + this.inputs = r3.map((e4) => { + var t4; + let i4 = e4.type; + if (!a.schemaTypeHelper.isAgenticVirtualAgentPrimitiveType(i4)) { + const e5 = null === (t4 = this._definition.types) || void 0 === t4 ? void 0 : t4.find((e6) => e6.name === i4 && !s.has(e6.direction)); + e5 && (i4 = e5.type); + } + return Object.assign(Object.assign({}, e4), { type: i4 }); + }); + const o2 = null === (i3 = this._definition.types) || void 0 === i3 ? void 0 : i3.find((e4) => "OutputData" === e4.name && "agentOutput" === e4.direction), l2 = (null == o2 ? void 0 : o2.properties) || []; + this.outputs = l2.map((e4) => { + var t4; + let i4 = e4.type; + if (!a.schemaTypeHelper.isAgenticVirtualAgentPrimitiveType(i4)) { + const e5 = null === (t4 = this._definition.types) || void 0 === t4 ? void 0 : t4.find((e6) => e6.name === i4 && !s.has(e6.direction)); + e5 && (i4 = e5.type); + } + return { name: e4.name, type: i4 }; + }); + } + get inputs() { + return this._inputs; + } + set inputs(e3) { + this._inputs = e3; + } + get outputs() { + return this._outputs; + } + set outputs(e3) { + this._outputs = e3; + } + } + t2.default = l, n2.__decorate([(0, r2.enumerable)(true), n2.__metadata("design:type", String), n2.__metadata("design:paramtypes", [String])], l.prototype, "id", null), n2.__decorate([(0, r2.enumerable)(true), n2.__metadata("design:type", String), n2.__metadata("design:paramtypes", [String])], l.prototype, "name", null), n2.__decorate([(0, r2.enumerable)(true), n2.__metadata("design:type", String), n2.__metadata("design:paramtypes", [String])], l.prototype, "version", null), n2.__decorate([(0, r2.enumerable)(true), n2.__metadata("design:type", Object), n2.__metadata("design:paramtypes", [Object])], l.prototype, "virtualAgent", null), n2.__decorate([(0, r2.enumerable)(true), n2.__metadata("design:type", Object), n2.__metadata("design:paramtypes", [Object])], l.prototype, "definition", null), n2.__decorate([(0, r2.enumerable)(true), n2.__metadata("design:type", Array), n2.__metadata("design:paramtypes", [Array])], l.prototype, "inputs", null), n2.__decorate([(0, r2.enumerable)(true), n2.__metadata("design:type", Array), n2.__metadata("design:paramtypes", [Array])], l.prototype, "outputs", null); + }, 72012: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.ExpressionTypeAssignedCustomerSegmentOptions = void 0; + const n2 = i2(65615); + class r2 extends n2.BaseExpressionTypeCollectionOptions { + static create(e3, t3) { + return new this(t3).invokeOptionsCallback(e3); + } + constructor(e3) { + super(e3); + } + get className() { + return "ExpressionTypeAssignedCustomerSegmentOptions"; + } + get isExpressionTypeAssignedCustomerSegmentOptions() { + return true; + } + get supportsLiteralMode() { + return this.isCollection; + } + } + t2.ExpressionTypeAssignedCustomerSegmentOptions = r2; + }, 72040: (e2, t2, i2) => { + "use strict"; + const n2 = i2(31635), r2 = i2(81516), o = n2.__importDefault(i2(27203)), a = i2(12179), s = n2.__importDefault(i2(97891)), l = n2.__importDefault(i2(73753)), u = i2(80428), d = i2(47957); + class c extends l.default { + constructor(e3, t3) { + super(e3), this._loadModel(t3); + } + static get managedProperties() { + return [{ label: d.setConversationData.participantLabel, options: r2.ExpressionTypeStringOptions.create((e3) => e3.setAsInput().setDescriptionInfo(d.setConversationData.participantLabel, d.setConversationData.participantDescription).setIsOptional(true).setIninTestingField("ParticipantIdExpression").setDisableSpellcheck(true).setUiPropertyOrder(20).facets.setLengthForUuid()), property: "participantId", type: u.expressionTypeNames.string, yamlOptions: c.createYamlOptions("participantId", (e3) => e3.setExportOrder(20)) }]; + } + static get branchInfo() { + return o.default.successFailure; + } + } + c.info = s.default.createActionInfo({ actionClass: c, canBeInTask: true, canBeTreeNode: false, helpTopic: a.helpTopics.actions.setConversationData, modelClass: i2(1102), name: d.actions.setConversationData, scriptingName: "ArchActionSetConversationData" }), t2.A = c; + }, 72124: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.downloadGrammarFile = t2.uploadGrammarFile = t2.deleteGrammarFile = t2.createGrammarFileUploadUrl = t2.removeLanguageFromGrammar = t2.addLanguageToGrammar = t2.createGrammar = t2.updateGrammarLanguage = t2.updateGrammar = t2.deleteGrammar = t2.getGrammarLanguage = t2.getGrammarWithStatus = t2.getGrammar = t2.getGrammars = void 0; + const n2 = i2(43933).default, r2 = i2(22604).A, o = i2(90159).A, a = i2(78685), s = i2(36019).default, l = { ignoreBadResponse: true }; + t2.getGrammars = s.request("GET", "{public-api.apps}/api/v2/architect/grammars", a, l), t2.getGrammar = s.request("GET", "{public-api.apps}/api/v2/architect/grammars/{id}?includeFileUrls={includeFileUrls}", n2, l), t2.getGrammarWithStatus = s.request("GET", "{public-api.apps}/api/v2/architect/grammars/{id}?includeFileUrls={includeFileUrls}", n2, { includeStatusOnSuccess: true, ignoreBadResponse: true }), t2.getGrammarLanguage = s.request("GET", "{public-api.apps}/api/v2/architect/grammars/{grammarId}/languages/{languageCode}"), t2.deleteGrammar = s.request("DELETE", "{public-api.apps}/api/v2/architect/grammars/{id}", n2, l), t2.updateGrammar = s.request("PATCH", "{public-api.apps}/api/v2/architect/grammars/{id}", n2, l), t2.updateGrammarLanguage = s.request("PATCH", "{public-api.apps}/api/v2/architect/grammars/{grammarId}/languages/{languageCode}", n2, l), t2.createGrammar = s.request("POST", "{public-api.apps}/api/v2/architect/grammars/", n2, l), t2.addLanguageToGrammar = s.request("POST", "{public-api.apps}/api/v2/architect/grammars/{grammarId}/languages", r2, l), t2.removeLanguageFromGrammar = s.request("DELETE", "{public-api.apps}/api/v2/architect/grammars/{grammarId}/languages/{languageCode}", n2, l), t2.createGrammarFileUploadUrl = s.request("POST", "{public-api.apps}/api/v2/architect/grammars/{grammarId}/languages/{languageCode}/files/{grammarType}", o, l), t2.deleteGrammarFile = s.request("DELETE", "{public-api.apps}/api/v2/architect/grammars/{grammarId}/languages/{languageCode}/files/{grammarType}", o, l), t2.uploadGrammarFile = s.request("PUT", "{url}", n2, l), t2.downloadGrammarFile = s.request("GET", "{url}", l); + }, 72155: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.ensureCollectionExpressionIsModifiable = r2, t2.addItemToCollection = function(e3) { + const t3 = e3._getCoreViewModel(); + t3.isLiteralMode || t3.setModeWithTransition(n2.literal), r2(e3, true, "addItemToCollection", "You cannot add items to it."); + const i3 = t3.collectionItems, o = t3.type.createExpressionOptionClass(); + e3.isVariableInitialValue && o.setAsInput(true); + const a = i3.createItem(null, null, o); + i3.addItem(a); + const s = e3.coreFactory.createArchWrapper(a); + return e3.logNote("added a new ArchBaseValue of type '" + s.dataType.label + "' to the collection."), s; + }; + const n2 = i2(31635).__importStar(i2(63352)); + function r2(e3, t3, i3, n3) { + const r3 = e3._getCoreViewModel(); + if (r3 && r3.collectionItems && r3.collectionItems.isExpressionList) return r3; + if (!t3) return; + const o = e3._infoCalledObject(e3, i3); + e3._itemIsInvalid(o, "the contents of this " + e3.displayTypeName + " are not modifiable." + (n3 ? " " + n3 : "")); + } + }, 72183: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(84655)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "carousel"; + } + get initialValue() { + return this._initialValue; + } + get displayTypeName() { + return "ArchVariableCarousel"; + } + get isArchVariableCarousel() { + return true; + } + } + t2.default = r2; + }, 72188: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importDefault(i2(92140)), o = i2(30801), a = n2.__importDefault(i2(62028)); + class s extends a.default { + constructor(e3) { + super(e3); + const t3 = e3.action; + this._checkItemUndefinedOrNull(this._infoParmCtor("coreMenuChoiceViewModel.action.menu"), t3.menu), this._audio = this.coreFactory.createArchWrapper(t3.menu.prompts), this._coreMenuViewModel = t3.menu, this._menuSettings = this.coreFactory.createArchWrapper(t3.menu.menuSettings), this._speechRecSettings = this.coreFactory.createArchWrapper(t3.menu.speechRecSettings); + } + get _actionTypeId() { + return o.menuActionActionType; + } + get childMenus() { + const e3 = []; + return r2.default.each(this._getCoreViewModel().choices, (t3) => { + e3.push(this.coreFactory.createArchWrapper(t3)); + }), e3; + } + get menuDefault() { + const e3 = this._coreMenuViewModel.defaultMenuChoice; + if (e3) { + const t3 = r2.default.find(this._getCoreViewModel().choices, (t4) => t4.id === e3); + if (t3) return this.coreFactory.createArchWrapper(t3); + } + } + set menuDefault(e3) { + let t3, i3 = "no default menu choice"; + if (!r2.default.isUndefined(e3) && null !== e3) { + const n3 = this._infoPropSet("newValue", "menuDefault"); + this._checkItem(n3, !e3.isArchBaseMenuChoice, "The parameter value must be an ArchBaseMenuChoice instance."), t3 = this._findCoreMenuChoiceById(e3.id), this._checkItem(n3, !t3, `The menu choice ${e3.logStr} is not a child of this menu and cannot be set to the default menu choice.`), i3 = e3.logStr; + } + this._coreMenuViewModel.defaultMenuChoice = t3 ? t3.id : null, this.logNote(`default menu choice set to ${i3}`); + } + get displayTypeName() { + return "ArchMenuSubMenu"; + } + get actionMenu() { + return this._archAction; + } + get audio() { + return this._audio; + } + get isArchMenuSubMenu() { + return true; + } + get settingsMenu() { + return this._menuSettings; + } + get settingsSpeechRec() { + return this._speechRecSettings; + } + } + t2.default = s; + }, 72194: (e2, t2, i2) => { + "use strict"; + const n2 = i2(31635), r2 = n2.__importDefault(i2(92140)), o = n2.__importDefault(i2(27203)), a = n2.__importStar(i2(36781)), s = i2(19384), l = i2(12179), u = n2.__importDefault(i2(97891)), d = n2.__importDefault(i2(20030)), c = i2(47957); + class p extends d.default { + static get managedProperties() { + return d.default.createManagedProperties({ validReferenceCallback: (e3) => e3 && e3.isTask && e3.isStartUpObject ? { error: c.task.invalidReferenceStartUpTask } : e3 && e3.isTask && e3.isCallable ? void 0 : { error: c.task.invalidReference } }); + } + constructor(e3, t3) { + super(e3), this.addOptionalPathsFromModel(t3), this._loadModel(t3), this.addAutoCleanedUpEventSinkWatch(a.lastPathActionRemoved, this, this.removeUnusedOutput.bind(this)); + } + objEvent_outputBranchAdded(e3, t3) { + const i3 = this.getBranch(t3.outputId); + i3 ? i3.enableFull() : this.addOptionalBranchInfo(t3); + } + objEvent_outputBranchRemoved(e3, t3) { + const i3 = this.getBranch(t3); + i3 && i3.hasChildren ? i3.isUnreachable = true : this.removeOptionalBranchInfoById(t3); + } + static get branchInfo() { + return [o.default.default]; + } + setTask(e3) { + super.setTask(e3), this.referencedTaskViewModel ? this.switchToNewTaskPaths(this.referencedTaskViewModel.getBranches()) : this.resetToDefaultTaskPaths(); + } + get supportsCustomOutputPaths() { + return true; + } + switchToNewTaskPaths(e3) { + const t3 = r2.default.pluck(this.branchInfoList, "outputId"), i3 = r2.default.pluck(e3, "outputId"); + let n3; + for (let t4 = 0; t4 < e3.length; t4++) { + const i4 = e3[t4]; + n3 = this.getBranch(i4.outputId), n3 ? n3.enableFull() : this.addOptionalBranchInfo(i4); + } + const o2 = r2.default.difference(t3, i3); + for (let e4 = 0; e4 < o2.length; e4++) n3 = this.getBranch(o2[e4]), n3 && n3.hasChildren ? n3.isUnreachable = true : this.removeOptionalBranchInfoById(o2[e4]); + } + validate(e3) { + super.validate(e3), this.taskReference && (s.flowElementRegistrationService.getItemById(this.parentFlow, this.taskReference) || this.resetToDefaultTaskPaths()); + } + resetToDefaultTaskPaths() { + this.switchToNewTaskPaths(this.branchInfos ? this.branchInfos : []); + } + removeUnusedOutput(e3, t3) { + if (!this.getOptionalBranchInfo(t3.id)) return; + const i3 = r2.default.find(this.parentFlow.tasks, (e4) => e4.id === this.taskReference); + i3 && r2.default.findIndex(i3.getBranches(), { outputId: t3.id }) >= 0 || this.removeOptionalBranchInfoById(t3.id, false); + } + } + p.info = u.default.createActionInfo({ actionClass: p, canBeInTask: true, helpTopic: l.helpTopics.actions.callTask, modelClass: i2(97038), name: c.actions.callTask, scriptingName: "ArchActionCallTask" }), t2.A = p; + }, 72203: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.ArchNetworkValueCache = void 0; + const n2 = i2(31635).__importDefault(i2(8471)); + var r2; + !(function(e3) { + e3.ID = "id", e3.VALUE = "value"; + })(r2 || (r2 = {})); + class o extends n2.default { + constructor() { + super(), this._idCacheByType = /* @__PURE__ */ new Map(), this._valueCacheByType = /* @__PURE__ */ new Map(), this._maxCacheSizePerType = 1e3, this._maxTotalCacheSize = 5e3, this._defaultTTL = 18e5, this._cleanupInterval = 15e3, this._cleanupTimer = null, this._cacheHits = 0, this._cacheMisses = 0, this._cacheEnabled = false, this._showDiagnostics = false, this._cleanupRefCount = 0, this._maxTotalMemoryBytes = 268435456, this._currentMemoryBytes = 0; + } + get displayTypeName() { + return "ArchNetworkValueCache"; + } + get logStr() { + return "ArchNetworkValueCache"; + } + get _isCleaningUp() { + return this._cleanupRefCount > 0; + } + _runCleanup(e3) { + this._cleanupRefCount++; + try { + e3(); + } finally { + this._cleanupRefCount--; + } + } + get cacheEnabled() { + return this._cacheEnabled; + } + set cacheEnabled(e3) { + const t3 = this._infoPropSet("enabled", "cacheEnabled"); + this._checkItemIsValidLiteralBool(t3, e3, false), e3 !== this._cacheEnabled && (this.logNote(`setting caching to enabled = '${e3}'`), e3 && !this._cacheEnabled ? this._startCacheCleanup() : !e3 && this._cacheEnabled && this._stopCacheCleanup(), this._cacheEnabled = e3); + } + get showDiagnostics() { + return this._showDiagnostics; + } + set showDiagnostics(e3) { + this.logNote(`setting show diagnostics to enabled = '${e3}'`), this._showDiagnostics = e3; + } + _getTotalCacheSize() { + let e3 = 0; + for (const t3 of this._idCacheByType.values()) e3 += t3.size; + for (const t3 of this._valueCacheByType.values()) e3 += t3.size; + return e3; + } + _estimateBytes(e3, t3 = 0, i3) { + if (null == e3) return 8; + const n3 = typeof e3; + if ("boolean" === n3) return 4; + if ("number" === n3) return 8; + if ("string" === n3) return 2 * e3.length + 40; + if ("object" === n3) { + if (i3 || (i3 = /* @__PURE__ */ new Set()), i3.has(e3)) return 0; + i3.add(e3); + } + if (t3 >= 6) try { + const t4 = JSON.stringify(e3); + return Math.min(2 * t4.length, 524288); + } catch (e4) { + return 1024; + } + if (Array.isArray(e3)) { + let n4 = 40; + const r3 = e3, o2 = Math.min(r3.length, 50); + let a2 = 0; + for (let e4 = 0; e4 < o2; e4++) a2 += this._estimateBytes(r3[e4], t3 + 1, i3); + return r3.length > o2 ? n4 += a2 / o2 * r3.length : n4 += a2, n4; + } + if ("object" === n3) { + let n4 = 64; + const r3 = Object.keys(e3), o2 = Math.min(r3.length, 50); + let a2 = 0; + for (let n5 = 0; n5 < o2; n5++) a2 += 2 * r3[n5].length + 40, a2 += this._estimateBytes(e3[r3[n5]], t3 + 1, i3); + return r3.length > o2 ? n4 += a2 / o2 * r3.length : n4 += a2, n4; + } + return 8; + } + _getOrCreateCacheForType(e3, t3) { + const i3 = e3 === r2.ID ? this._idCacheByType : this._valueCacheByType; + return i3.has(t3) || i3.set(t3, /* @__PURE__ */ new Map()), i3.get(t3); + } + _generateCacheKey(e3) { + return [e3.method, e3.identifier, e3.searchProperty || "", e3.wireProperty || "", JSON.stringify(e3.additionalParams || {}), JSON.stringify(e3.filter || {})].join("::ARCH_CACHE_SEP::"); + } + _getDependencyType(e3) { + var t3; + return (null === (t3 = e3.dependencyType) || void 0 === t3 ? void 0 : t3.name) || "unknown"; + } + _hasValidDependencyType(e3) { + var t3; + return !!(null === (t3 = e3.dependencyType) || void 0 === t3 ? void 0 : t3.name); + } + _getFromCache(e3, t3, i3) { + if (!this._cacheEnabled) return null; + const n3 = "findItemByIdAsync" === t3 ? r2.ID : r2.VALUE, o2 = this._getOrCreateCacheForType(n3, i3), a2 = o2.get(e3); + return a2 ? Date.now() - a2.timestamp > a2.ttl ? (this._currentMemoryBytes -= a2.estimatedBytes, o2.delete(e3), null) : a2.data : null; + } + _setCache(e3, t3, n3, o2, a2) { + if (!this._cacheEnabled || this._isCleaningUp) return; + if ("undefined" != typeof process && "function" == typeof process.memoryUsage) try { + const e4 = i2(11493).getHeapStatistics(), t4 = e4.used_heap_size / e4.heap_size_limit; + if (t4 > 0.85) return this._runCleanup(() => this._cleanupByMemoryPressure()), void this.logNote(`High memory usage detected (${(100 * t4).toFixed(0)}% of heap limit). Temporarily pausing caching and freeing cached data to prevent out-of-memory errors.`); + } catch (e4) { + } + const s = "findItemByIdAsync" === n3 ? r2.ID : r2.VALUE, l = this._getOrCreateCacheForType(s, o2); + l.size >= this._maxCacheSizePerType && this._runCleanup(() => this._cleanupCacheForType(s, o2)), this._getTotalCacheSize() >= this._maxTotalCacheSize && this._runCleanup(() => this._cleanupGlobalCache()); + const u = this._estimateBytes(t3); + if (this._currentMemoryBytes + u > this._maxTotalMemoryBytes && this._runCleanup(() => this._cleanupByMemoryPressure()), this._currentMemoryBytes + u > this._maxTotalMemoryBytes) return void (this._showDiagnostics && this.logNote(`Cache memory limit reached (${(this._currentMemoryBytes / 1024 / 1024).toFixed(1)} MB / ${(this._maxTotalMemoryBytes / 1024 / 1024).toFixed(1)} MB). New entry skipped to stay within bounds.`)); + const d = l.get(e3); + d && (this._currentMemoryBytes -= d.estimatedBytes); + const c = { data: t3, timestamp: Date.now(), ttl: a2 || this._defaultTTL, estimatedBytes: u }; + l.set(e3, c), this._currentMemoryBytes += u; + } + _cleanupCacheForType(e3, t3) { + if (!this._cacheEnabled) return; + const i3 = this._getOrCreateCacheForType(e3, t3), n3 = Date.now(), r3 = []; + for (const [e4, t4] of i3.entries()) n3 - t4.timestamp > t4.ttl && r3.push(e4); + if (r3.forEach((e4) => { + const t4 = i3.get(e4); + t4 && (this._currentMemoryBytes -= t4.estimatedBytes), i3.delete(e4); + }), i3.size >= this._maxCacheSizePerType) { + const e4 = Array.from(i3.entries()); + e4.sort((e5, t4) => e5[1].timestamp - t4[1].timestamp), e4.slice(0, Math.floor(0.2 * this._maxCacheSizePerType)).forEach(([e5, t4]) => { + this._currentMemoryBytes -= t4.estimatedBytes, i3.delete(e5); + }); + } + } + _cleanupGlobalCache() { + if (!this._cacheEnabled) return; + if (this._getTotalCacheSize() < this._maxTotalCacheSize) return; + const e3 = []; + for (const [t4, i3] of this._idCacheByType.entries()) for (const [n3, o2] of i3.entries()) e3.push({ key: n3, entry: o2, cacheType: r2.ID, dependencyType: t4 }); + for (const [t4, i3] of this._valueCacheByType.entries()) for (const [n3, o2] of i3.entries()) e3.push({ key: n3, entry: o2, cacheType: r2.VALUE, dependencyType: t4 }); + e3.sort((e4, t4) => e4.entry.timestamp - t4.entry.timestamp); + const t3 = e3.slice(0, Math.floor(0.2 * this._maxTotalCacheSize)); + for (const { key: e4, cacheType: i3, dependencyType: n3 } of t3) { + const t4 = (i3 === r2.ID ? this._idCacheByType : this._valueCacheByType).get(n3); + if (t4) { + const i4 = t4.get(e4); + i4 && (this._currentMemoryBytes -= i4.estimatedBytes), t4.delete(e4); + } + } + this._showDiagnostics && this.logNote(`Cache cleanup: removed ${t3.length} older entries to stay within the global entry limit.`); + } + _cleanupByMemoryPressure() { + if (!this._cacheEnabled) return; + const e3 = Math.floor(0.8 * this._maxTotalMemoryBytes); + if (this._currentMemoryBytes <= e3) return; + const t3 = []; + for (const [e4, i4] of this._idCacheByType.entries()) for (const [n4, o2] of i4.entries()) t3.push({ key: n4, entry: o2, cacheType: r2.ID, dependencyType: e4 }); + for (const [e4, i4] of this._valueCacheByType.entries()) for (const [n4, o2] of i4.entries()) t3.push({ key: n4, entry: o2, cacheType: r2.VALUE, dependencyType: e4 }); + t3.sort((e4, t4) => t4.entry.estimatedBytes - e4.entry.estimatedBytes); + let i3 = 0, n3 = 0; + for (const { key: o2, entry: a2, cacheType: s, dependencyType: l } of t3) { + if (this._currentMemoryBytes <= e3) break; + const t4 = (s === r2.ID ? this._idCacheByType : this._valueCacheByType).get(l); + t4 && (t4.delete(o2), this._currentMemoryBytes -= a2.estimatedBytes, n3 += a2.estimatedBytes, i3++); + } + this._showDiagnostics && this.logNote(`Cache cleanup: freed ~${(n3 / 1024 / 1024).toFixed(1)} MB by removing ${i3} cached entries to reduce memory usage.`); + } + _cleanupCache() { + this._cacheEnabled && !this._isCleaningUp && this._runCleanup(() => { + for (const e3 of this._idCacheByType.keys()) this._cleanupCacheForType(r2.ID, e3); + for (const e3 of this._valueCacheByType.keys()) this._cleanupCacheForType(r2.VALUE, e3); + try { + const e3 = i2(11493).getHeapStatistics(); + e3.used_heap_size / e3.heap_size_limit > 0.8 && this._cleanupByMemoryPressure(); + } catch (e3) { + } + }); + } + _startCacheCleanup() { + this._cleanupTimer && clearInterval(this._cleanupTimer), this._cleanupTimer = setInterval(() => { + this._cleanupCache(); + }, this._cleanupInterval); + } + _stopCacheCleanup() { + this._cleanupTimer && (clearInterval(this._cleanupTimer), this._cleanupTimer = null); + } + generateIdCacheKey(e3, t3, i3, n3) { + const r3 = { method: "findItemByIdAsync", dependencyType: this._getDependencyType(e3), identifier: t3, loggingLabel: i3, additionalParams: n3 }; + return this._generateCacheKey(r3); + } + generateValueCacheKey(e3, t3, i3, n3, r3, o2, a2) { + const s = { method: "findItemByValueAsync", dependencyType: this._getDependencyType(e3), identifier: t3, loggingLabel: i3, searchProperty: n3, wireProperty: r3, filter: o2, additionalParams: a2 }; + return this._generateCacheKey(s); + } + generateLoadAllCacheKey(e3, t3, i3, n3) { + const r3 = { method: "loadAllItemsAsync", dependencyType: this._getDependencyType(e3), identifier: "*", loggingLabel: t3, searchProperty: i3, wireProperty: n3 }; + return this._generateCacheKey(r3); + } + getFromIdCache(e3, t3) { + if (!this._cacheEnabled) return null; + const i3 = this._getDependencyType(t3), n3 = this._getFromCache(e3, "findItemByIdAsync", i3); + return n3 ? (this._cacheHits++, this._showDiagnostics && this.logNote(`Cache hit for ID lookup: ${i3} - ${e3}`)) : this._showDiagnostics && this.logNote(`Cache miss for ID lookup: ${i3} - ${e3}`), n3; + } + getFromValueCache(e3, t3) { + if (!this._cacheEnabled) return null; + const i3 = this._getDependencyType(t3), n3 = this._getFromCache(e3, "findItemByValueAsync", i3); + return n3 ? (this._cacheHits++, this._showDiagnostics && this.logNote(`Cache hit for value lookup: ${i3} - ${e3}`)) : this._showDiagnostics && this.logNote(`Cache miss for value lookup: ${i3} - ${e3}`), n3; + } + setInIdCache(e3, t3, i3, n3) { + if (!this._cacheEnabled) return; + const r3 = this._getDependencyType(i3); + this._setCache(e3, t3, "findItemByIdAsync", r3, n3), this._cacheMisses++, this._showDiagnostics && this.logNote(`adding to cache for ID lookup: ${r3} - ${e3}`); + } + setInValueCache(e3, t3, i3, n3) { + if (!this._cacheEnabled) return; + const r3 = this._getDependencyType(i3); + this._setCache(e3, t3, "findItemByValueAsync", r3, n3), this._cacheMisses++, this._showDiagnostics && this.logNote(`adding to cache for value lookup: ${r3} - ${e3}`); + } + clearCache() { + this._idCacheByType.clear(), this._valueCacheByType.clear(), this._currentMemoryBytes = 0; + } + clearCacheForDependencyType(e3) { + if (!this._cacheEnabled) return; + const t3 = this._idCacheByType.get(e3); + if (t3) for (const e4 of t3.values()) this._currentMemoryBytes -= e4.estimatedBytes; + const i3 = this._valueCacheByType.get(e3); + if (i3) for (const e4 of i3.values()) this._currentMemoryBytes -= e4.estimatedBytes; + this._idCacheByType.delete(e3), this._valueCacheByType.delete(e3); + } + getCacheStats() { + if (!this._cacheEnabled) return null; + let e3 = 0, t3 = 0; + for (const t4 of this._idCacheByType.values()) e3 += t4.size; + for (const e4 of this._valueCacheByType.values()) t3 += e4.size; + const i3 = this._cacheHits + this._cacheMisses, n3 = i3 > 0 ? this._cacheHits / i3 * 100 : 0; + return { idCacheSize: e3, valueCacheSize: t3, maxSizePerType: this._maxCacheSizePerType, maxTotalSize: this._maxTotalCacheSize, hitRate: `${n3.toFixed(1)}%`, totalHits: this._cacheHits, totalMisses: this._cacheMisses, estimatedMemoryMB: `${(this._currentMemoryBytes / 1024 / 1024).toFixed(1)} MB`, maxMemoryMB: `${(this._maxTotalMemoryBytes / 1024 / 1024).toFixed(1)} MB` }; + } + logCacheStats() { + const e3 = this.getCacheStats(); + this.logNote(`id cache size: ${e3.idCacheSize}, value cache size: ${e3.valueCacheSize}, max size per type: ${e3.maxSizePerType}, max total size: ${e3.maxTotalSize}, hit rate: ${e3.hitRate}, total hits: ${e3.totalHits}, total misses: ${e3.totalMisses}, estimated memory: ${e3.estimatedMemoryMB}, max memory: ${e3.maxMemoryMB}`); + } + getCacheStatsForDependencyType(e3) { + if (!this._cacheEnabled) return null; + const t3 = this._idCacheByType.get(e3), i3 = this._valueCacheByType.get(e3); + if (!t3 && !i3) return null; + const n3 = (null == t3 ? void 0 : t3.size) || 0, r3 = (null == i3 ? void 0 : i3.size) || 0, o2 = this._cacheHits + this._cacheMisses; + return { dependencyType: e3, idCacheSize: n3, valueCacheSize: r3, hitRate: `${(o2 > 0 ? this._cacheHits / o2 * 100 : 0).toFixed(1)}%`, totalHits: this._cacheHits, totalMisses: this._cacheMisses }; + } + getDependencyTypes() { + const e3 = /* @__PURE__ */ new Set(); + for (const t3 of this._idCacheByType.keys()) e3.add(t3); + for (const t3 of this._valueCacheByType.keys()) e3.add(t3); + return Array.from(e3); + } + hasValidDependencyType(e3) { + return this._hasValidDependencyType(e3); + } + destroy() { + this._stopCacheCleanup(), this.clearCache(), this._cacheHits = 0, this._cacheMisses = 0, this._cleanupRefCount = 0; + } + } + t2.ArchNetworkValueCache = o; + const a = new o(); + t2.default = a; + }, 72211: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importDefault(i2(92140)), o = i2(74483), a = n2.__importDefault(i2(57606)), s = i2(47957), l = i2(24032).getTopic("DataTableViewModel"); + class u extends o.NameIdConfigurationListViewModel { + constructor(e3) { + if (super(e3), this._schemasNotLoaded = false, this._model.schema && this._model.schema.properties) { + this._schemasNotLoaded = false; + const e4 = { properties: {}, required: [] }, t3 = { properties: {} }; + r2.default.each(this._model.schema.properties, (i3, n3) => { + r2.default.isObject(i3) && (n3 && "key" === n3.toLowerCase() ? (e4.properties[n3] = i3, e4.required.push(n3)) : t3.properties[n3] = i3); + }), e4.required.length || l.error(`No key found for data table with ID '${this.model.id}'`), this._inputSchema = new a.default(e4, true), this._successSchema = new a.default(t3, false); + } else this._schemasNotLoaded = true; + this._errorSchema = new a.default({ properties: { errorType: { allowableValues: ["DataTablesInternalServerError", "DataTablesServerTooBusyException", "DataTablesSyntaxError", "DataTablesTableNotFoundException"], type: "string", description: s.errorSchema.errorTypeDescription }, errorMessage: { type: "string", description: s.errorSchema.errorMessageDescription } } }, false); + } + get label() { + return this._model.name; + } + get title() { + return this._model.title; + } + get minLength() { + return this._model.minLength; + } + get maxLength() { + return this._model.maxLength; + } + get schemasNotLoaded() { + return this._schemasNotLoaded; + } + get inputSchema() { + return this._inputSchema; + } + get successSchema() { + return this._successSchema; + } + get errorSchema() { + return this._errorSchema; + } + } + t2.default = u; + }, 72336: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(8471)); + class r2 extends n2.default { + constructor(e3) { + super(), this._checkItem(this._infoParmCtor("archBaseVariable"), !e3 || !e3.isArchBaseVariable, "INTERNAL ERROR - invalid archBaseVariable passed to ArchVariableSettings"), this._archBaseVariable = e3; + } + get _coreVariableViewModel() { + return this._archBaseVariable._getCoreViewModel(); + } + get canSetIsInput() { + return !!this._coreVariableViewModel.getIsInputCanSet({}); + } + get canSetIsOutput() { + return !!this._coreVariableViewModel.getIsOutputCanSet({}); + } + get displayTypeName() { + return "ArchVariableSettings"; + } + get logStr() { + if (!this._archBaseVariable) return this.logStrTypeOnly; + const e3 = []; + return this._appendLogStrPart(e3, "CanSetIsInput", this.canSetIsInput, true, false), this._appendLogStrPart(e3, "CanSetIsOutput", this.canSetIsInput, true, false), this._createLogStrFromParts(e3); + } + } + t2.default = r2; + }, 72378: (e2, t2, i2) => { + "use strict"; + const n2 = i2(31635), r2 = i2(12179), o = n2.__importDefault(i2(97891)), a = n2.__importDefault(i2(5730)), s = i2(47957); + class l extends a.default { + static get managedProperties() { + return []; + } + constructor(e3, t3) { + super(e3.parentFlow, e3), this._loadModel(t3); + } + } + l.info = o.default.createActionInfo({ actionClass: l, canBeInTask: true, helpTopic: r2.helpTopics.actions.clearActiveIntent, modelClass: i2(67504), name: s.actions.clearActiveIntent, scriptingName: "ArchActionClearActiveIntent" }), t2.A = l; + }, 72426: (e2, t2, i2) => { + "use strict"; + const n2 = i2(31635), r2 = i2(12179), o = n2.__importDefault(i2(89181)), a = n2.__importDefault(i2(97891)), s = i2(47957); + class l extends o.default { + constructor(e3, t3) { + super(e3), this._loadModel(t3); + } + } + l.info = a.default.createActionInfo({ actionClass: l, canBeInTask: true, helpTopic: r2.helpTopics.actions.getAttributes, modelClass: i2(48944), name: s.actions.getAttributes, scriptingName: "ArchActionGetParticipantData" }), t2.A = l; + }, 72448: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.MessagingTemplate = void 0; + const n2 = i2(31635), r2 = i2(80295), o = i2(19596); + class a extends o.DataContract { + constructor(e3) { + super(e3), (0, r2.makeUnenumerable)(this, "_whatsApp"); + } + get whatsApp() { + return this._whatsApp; + } + set whatsApp(e3) { + this._whatsApp = e3; + } + } + t2.MessagingTemplate = a, n2.__decorate([(0, r2.enumerable)(true), n2.__metadata("design:type", Object), n2.__metadata("design:paramtypes", [Object])], a.prototype, "whatsApp", null); + }, 72475: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.secureActionManager = t2.SecureActionManager = void 0; + const n2 = i2(84822), r2 = i2(24032), o = i2(30801), a = i2(47957), s = i2(27862); + class l extends n2.BaseIntegrationsActionManager { + get dependencyType() { + return s.SecureAction; + } + constructor() { + super(), this.topic = (0, r2.getTopic)("secureActionManager"), this.actionsForUsageSearch = [o.secureActionActionType], this.additionalQueryParams = { secure: true }, this.defaultInputsWithNoDefaultToNotSet = true, this.dependencyContext = a.secureAction.secureAction, this.className = "SecureActionManager", this._initialize(); + } + } + t2.SecureActionManager = l, t2.secureActionManager = new l(); + }, 72478: (e2, t2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + }, 72529: (e2, t2, i2) => { + function n2() { + this.variableJSON = void 0, this.supportedFlowTypes = void 0, n2.baseConstructor.apply(this, arguments); + } + i2(88732).extend(n2, "ClipboardDependencyVariableModel", true), e2.exports = n2; + }, 72577: (e2, t2, i2) => { + "use strict"; + const n2 = i2(31635), r2 = i2(12179), o = n2.__importDefault(i2(97891)), a = i2(24383), s = n2.__importDefault(i2(20030)), l = i2(47957); + class u extends s.default { + static get managedProperties() { + return s.default.createManagedProperties({ suppressOutputs: true, validReferenceCallback: (e3) => e3 && !e3.isTransferable && e3.hasBranchTerminatingWithEndTask ? { error: l.task.invalidReferenceTaskTransfer } : e3 && e3.isTask && e3.isTransferable ? void 0 : { error: l.task.invalidReference } }); + } + constructor(e3, t3) { + super(e3), this._loadModel(t3); + } + } + u.info = o.default.createActionInfo({ actionClass: u, canBeInTask: true, canBeTreeNode: true, helpTopic: r2.helpTopics.actions.jumpToTask, modelClass: i2(68475), name: l.actions.taskTransfer, scriptingName: "ArchActionJumpToTask", termination: a.terminatesTask }), t2.A = u; + }, 72627: (e2, t2, i2) => { + "use strict"; + const n2 = i2(31635), r2 = i2(17604), o = i2(12179), a = i2(12457), s = i2(21647), l = i2(81516), u = n2.__importDefault(i2(27203)), d = n2.__importStar(i2(99434)), c = n2.__importDefault(i2(97891)), p = i2(87870), _ = n2.__importDefault(i2(5730)), h = i2(80428), m = i2(47957); + class g extends _.default { + constructor(e3, t3) { + super(e3.parentFlow, e3), this.externalId = null, this.externalResult = null, this._loadModel(t3); + } + static get branchInfo() { + return u.default.matchExactMultipleNotFound; + } + static get managedProperties() { + return [{ label: m.generic.searchTerm, options: l.ExpressionTypeStringOptions.create((e3) => e3.setAsInput().setIninTestingField("ExternalIdExpression").setDescriptionInfo(m.generic.searchTerm, m.searchExternalContacts.searchTermDescription).setDisableSpellcheck(true).facets.setMinLength(1)), yamlOptions: g.createYamlOptions("externalId", (e3) => e3.setPropertyName("searchTerm")), property: "externalId", type: h.expressionTypeNames.string }, { label: m.searchExternalContacts.externalContactResults, options: s.ExpressionTypeComplexOptions.create((e3) => e3.setTypeIdentifier(h.expressionTypeNames.externalContact).setIsCollection(true).setAsOutput().setIninTestingField("ExternalContactsExpression")), property: "externalResult", type: h.expressionTypeNames.externalContact, yamlOptions: g.createYamlOptions("externalResult", (e3) => e3.setPropertyName("externalResults")) }, { createDetails: p.NoteActionProperty.createCreateDetails((0, r2.sprintf)(m.searchExternalContacts.actionInformationalMessage, m.generic.branches.matchExact), "info", "searchExternalContactsNote"), property: "actionInformationalMessage", yamlOptions: g.createYamlOptions("actionInformationalMessage", (e3) => e3.setSkipProperty(true)) }]; + } + getDetails() { + return this.externalId ? new a.ActionDetails([m.generic.searchTerm], [d.getDisplayText(this.externalId)]) : null; + } + } + g.info = c.default.createActionInfo({ actionClass: g, canBeInTask: true, helpTopic: o.helpTopics.actions.searchExternalContacts, modelClass: i2(9275), name: m.actions.searchExternalContacts, scriptingName: "ArchActionSearchExternalContacts" }), t2.A = g; + }, 72698: (e2, t2, i2) => { + const { builderCategoryIds: n2 } = i2(73062), r2 = i2(79904).default, o = i2(81818).default, a = i2(41568).default, s = i2(5532).default, { builderPartIds: l } = i2(69149), u = i2(42290).default, d = i2(16958), c = i2(76486).default, p = i2(22599).default, { globalTypes: _ } = i2(14394), h = i2(61864).default, { defaultWithNoLabel: m } = i2(93631), g = i2(96727).default; + e2.exports = { create: function() { + s.addBuilderPartDef(new u({ categoryIdentifierOrIdentifiers: n2.toolbar, description: d.builderParts.duration.literal.description, expressionDefs: [new c({ configureOptionsCallback: (e3) => { + e3.setAllowModeLiteralOnly().setIninTestingField("durationLiteral"); + }, expressionType: _.duration, label: d.builderParts.duration.literal.name })], generators: { expressionGenerator: g.singleTokenReplacementGenerator }, viewId: m, id: l.duration.literal, icon: h.duration, name: d.builderParts.duration.literal.name, resultExpressionType: _.duration, version: 1 })), s.addBuilderPartContainerDef(new r2({ categoryIdentifierOrIdentifiers: n2.container, description: d.builderParts.container.language.description, generators: { containerPartsGenerator: p.create().addFuncCallParmGenerationBucket("durationValue", true).verifySprintfStringAndInitialize(""), languageCheckGenerator: p.create().addFuncCall("If").addFuncCall("AreEqual").addTokenBooleanTrue().addFuncParameterSeparator().addTokenReplacement(0).addFuncParameterSeparator().addTokenReplacement(1).addFuncCallEnd().addFuncParameterSeparator().addFuncCallParmGenerationBucket("durationValue", true).verifySprintfStringAndInitialize("If(AreEqual(true, %1$s, %2$s), "), wantContainerPartsGeneratorForSingleton: true }, id: l.duration.container.language, name: d.builderParts.container.language.name, resultExpressionType: _.duration, version: 1, wantBucketOnSingleGeneration: true })), s.addBuilderPartContainerDef(new o({ categoryIdentifierOrIdentifiers: n2.container, description: d.builderParts.container.languageAndOutputMode.description, generators: { containerPartsGenerator: p.create().addFuncCallParmGenerationBucket("durationValue", true).verifySprintfStringAndInitialize(""), wantContainerPartsGeneratorForSingleton: true }, id: l.duration.container.languageAndOutputMode, name: d.builderParts.container.languageAndOutputMode.name, resultExpressionType: _.duration, version: 1, wantBucketOnSingleGeneration: true })), s.addBuilderPartContainerDef(new a({ categoryIdentifierOrIdentifiers: n2.container, description: d.builderParts.container.outputMode.description, generators: { containerPartsGenerator: p.create().addFuncCallParmGenerationBucket("durationValue", true).verifySprintfStringAndInitialize(""), wantContainerPartsGeneratorForSingleton: true }, id: l.duration.container.outputMode, name: d.builderParts.container.outputMode.name, resultExpressionType: _.duration, version: 1 })); + } }; + }, 72719: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.catchError = void 0; + var n2 = i2(19724), r2 = i2(17214), o = i2(65212); + t2.catchError = function e3(t3) { + return o.operate(function(i3, o2) { + var a, s = null, l = false; + s = i3.subscribe(r2.createOperatorSubscriber(o2, void 0, void 0, function(r3) { + a = n2.innerFrom(t3(r3, e3(t3)(i3))), s ? (s.unsubscribe(), s = null, a.subscribe(o2)) : l = true; + })), l && (s.unsubscribe(), s = null, a.subscribe(o2)); + }); + }; + }, 72738: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.getScheduleGroupDivisionView = t2.getScheduleGroup = t2.getScheduleGroupsDivisionView = t2.getScheduleGroups = t2.getScheduleDivisionView = t2.getSchedule = t2.getSchedulesDivisionView = t2.getSchedules = t2.getEmergencyGroupDivisionView = t2.getEmergencyGroup = t2.getEmergencyGroupsDivisionView = t2.getEmergencyGroups = void 0; + const n2 = i2(80259), r2 = i2(34763), o = i2(94886), a = i2(98643), s = i2(88027), l = i2(40122), u = i2(36019).default, d = { ignoreBadResponse: true }; + t2.getEmergencyGroups = u.request("GET", "{public-api.apps}/api/v2/architect/emergencygroups", r2, d), t2.getEmergencyGroupsDivisionView = u.request("GET", "{public-api.apps}/api/v2/architect/emergencygroups/divisionviews", r2, d), t2.getEmergencyGroup = u.request("GET", "{public-api.apps}/api/v2/architect/emergencygroups/{id}", n2, d), t2.getEmergencyGroupDivisionView = u.request("GET", "{public-api.apps}/api/v2/architect/emergencygroups/divisionviews?id={id}", r2, d), t2.getSchedules = u.request("GET", "{public-api.apps}/api/v2/architect/schedules", l, d), t2.getSchedulesDivisionView = u.request("GET", "{public-api.apps}/api/v2/architect/schedules/divisionviews", l, d), t2.getSchedule = u.request("GET", "{public-api.apps}/api/v2/architect/schedules/{id}", o, d), t2.getScheduleDivisionView = u.request("GET", "{public-api.apps}/api/v2/architect/schedules/divisionviews?id={id}", l, d), t2.getScheduleGroups = u.request("GET", "{public-api.apps}/api/v2/architect/schedulegroups", s, d), t2.getScheduleGroupsDivisionView = u.request("GET", "{public-api.apps}/api/v2/architect/schedulegroups/divisionviews", s, d), t2.getScheduleGroup = u.request("GET", "{public-api.apps}/api/v2/architect/schedulegroups/{id}", a, d), t2.getScheduleGroupDivisionView = u.request("GET", "{public-api.apps}/api/v2/architect/schedulegroups/divisionviews?id={id}", s, d); + }, 72746: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.getDecisionTable = t2.getDecisionTables = void 0; + const n2 = i2(31635).__importDefault(i2(36019)), r2 = i2(78102); + t2.getDecisionTables = n2.default.request("GET", "{public-api.apps}/api/v2/businessrules/decisiontables/search", r2), t2.getDecisionTable = n2.default.request("GET", "{public-api.apps}/api/v2/businessrules/decisiontables/search?withPublishedVersion=true&expand=ExecutionInputSchema,ExecutionOutputSchema&ids={tableId}", r2); + }, 72749: (e2, t2, i2) => { + "use strict"; + const n2 = i2(31635), r2 = i2(12179), o = i2(12457), a = i2(72987), s = n2.__importDefault(i2(27203)), l = n2.__importDefault(i2(97891)), u = n2.__importDefault(i2(5730)), d = i2(80428), c = i2(47957); + class p extends u.default { + constructor(e3, t3) { + super(e3.parentFlow, e3), this.wrapupCode = null, this._loadModel(t3), this.editor_testing_tag = "SetWrapupCodeAction"; + } + static get branchInfo() { + return s.default.successFailure; + } + getDetails() { + return this.wrapupCode && this.wrapupCode.text ? new o.ActionDetails([c.setWrapupCode.wrapupCode], [this.wrapupCode.text]) : null; + } + static get managedProperties() { + return [{ label: c.setWrapupCode.wrapupCode, options: a.ExpressionTypeWrapupCodeOptions.create((e3) => e3.setIninTestingField("wrapupCodeExpression").setAllowNotSet(false).facets.setAllowNull(false)), property: "wrapupCode", type: d.expressionTypeNames.wrapupCode }]; + } + get informationalMessage() { + return this.parentFlow.isCallFlowType ? c.setWrapupCode.applyWarning : ""; + } + } + p.info = l.default.createActionInfo({ actionClass: p, canBeInTask: true, helpTopic: r2.helpTopics.actions.setWrapupCode, modelClass: i2(75151), name: c.actions.setWrapupCode, scriptingName: "ArchActionSetWrapupCode" }), t2.A = p; + }, 72830: (e2, t2, i2) => { + "use strict"; + const n2 = i2(31635), r2 = i2(12179), o = i2(12457), a = i2(61870), s = n2.__importDefault(i2(27203)), l = n2.__importDefault(i2(97891)), u = n2.__importDefault(i2(5730)), d = i2(80428), c = i2(47957); + class p extends u.default { + constructor(e3, t3) { + super(e3.parentFlow, e3), this.confidence = null, this._loadModel(t3); + } + static get branchInfo() { + return s.default.processedTimeoutFailure; + } + getDetails() { + return this.confidence ? new o.ActionDetails([c.voiceBiometrics.confidence], [this.confidence.text]) : null; + } + static get managedProperties() { + return [{ label: c.voiceBiometrics.confidence, options: a.ExpressionTypeDecimalOptions.create((e3) => e3.setAsOutput()), property: "confidence", type: d.expressionTypeNames.decimal }]; + } + validate(e3) { + super.validate(e3); + } + } + p.info = l.default.createActionInfo({ actionClass: p, canBeInTask: true, canBeTreeNode: false, helpTopic: r2.helpTopics.actions.voiceBiometrics, modelClass: i2(47140), name: c.actions.voiceBiometrics, scriptingName: "ArchActionVoiceBiometrics" }), t2.A = p; + }, 72883: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = i2(30801), o = n2.__importDefault(i2(62028)); + class a extends o.default { + constructor(e3) { + super(e3); + } + get _actionTypeId() { + return r2.disconnectActionType; + } + get displayTypeName() { + return "ArchMenuDisconnect"; + } + get actionDisconnect() { + return this._archAction; + } + get isArchMenuDisconnect() { + return true; + } + } + t2.default = a; + }, 72885: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.delayWhen = void 0; + var n2 = i2(39546), r2 = i2(54383), o = i2(2959), a = i2(13337), s = i2(67478), l = i2(19724); + t2.delayWhen = function e3(t3, i3) { + return i3 ? function(a2) { + return n2.concat(i3.pipe(r2.take(1), o.ignoreElements()), a2.pipe(e3(t3))); + } : s.mergeMap(function(e4, i4) { + return l.innerFrom(t3(e4, i4)).pipe(r2.take(1), a.mapTo(e4)); + }); + }; + }, 72938: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(84655)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "decimal"; + } + get displayTypeName() { + return "ArchVariableDecimal"; + } + get initialValue() { + return this._initialValue; + } + get isArchVariableDecimal() { + return true; + } + } + t2.default = r2; + }, 72943: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(54063)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "emailCollection"; + } + get displayTypeName() { + return "ArchValueEmailCollection"; + } + get isArchValueEmailCollection() { + return true; + } + } + t2.default = r2; + }, 72987: (e2, t2, i2) => { + "use strict"; + var n2; + Object.defineProperty(t2, "__esModule", { value: true }), t2.ExpressionTypeWrapupCodeOptions = void 0; + const r2 = i2(31635), o = r2.__importDefault(i2(45532)), a = i2(80295), s = i2(71056), l = i2(55909), u = i2(33951); + class d extends s.ExpressionTypeNetworkObjectOptions { + static create(e3, t3) { + return new this(t3).invokeOptionsCallback(e3); + } + constructor(e3) { + super(e3), this._wrapupUpCodeFacets = new o.default(), this._requiresHasDescription = false, (0, a.makeUnenumerable)(this, "_wrapupUpCodeFacets"), (0, a.makeUnenumerable)(this, "_requiresHasDescription"); + } + _setFromOptions(e3) { + super._setFromOptions(e3), this._setOptionIfSet(this.setRequiresHasDescription, e3.requiresHasDescription); + } + setCollectionItemFromCollectionOptions(e3) { + return super.setCollectionItemFromCollectionOptions(e3), this.requiresHasDescription = e3._requiresHasDescription, this; + } + get className() { + return "ExpressionTypeWrapupCodeOptions"; + } + get isExpressionTypeWrapupCodeOptions() { + return true; + } + get facets() { + return this._wrapupUpCodeFacets; + } + set facets(e3) { + this._wrapupUpCodeFacets = u.ParameterValidator.expectTrue(e3 && true === e3.isWrapupCodeFacets, e3, "WrapupCodeFacets", () => l.ParameterInfo.createPropertySet(this.className, "facets", "value")); + } + get requiresHasDescription() { + return this._requiresHasDescription; + } + set requiresHasDescription(e3) { + this._requiresHasDescription = u.ParameterValidator.expectBool(e3, () => l.ParameterInfo.createPropertySet(this.className, "requiresHasDescription", "value")); + } + setRequiresHasDescription(e3) { + return this.requiresHasDescription = e3, this; + } + } + t2.ExpressionTypeWrapupCodeOptions = d, r2.__decorate([(0, a.enumerable)(true), r2.__metadata("design:type", "function" == typeof (n2 = void 0 !== o.default && o.default) ? n2 : Object), r2.__metadata("design:paramtypes", [Object])], d.prototype, "facets", null), r2.__decorate([(0, a.enumerable)(true), r2.__metadata("design:type", Boolean), r2.__metadata("design:paramtypes", [Boolean])], d.prototype, "requiresHasDescription", null); + }, 73062: (e2, t2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.builderCategoryIds = void 0, t2.builderCategoryIds = { agentScorePair: "__BUILDER_CATEGORY_AGENT_SCORE_PAIR__", communication: "__BUILDER_CATEGORY_COMMUNICATION__", container: "__BUILDER_CATEGORY_CONTAINER__", dateTime: "__BUILDER_CATEGORY_DATE_TIME__", email: "__BUILDER_CATEGORY_EMAIL__", labelString: "__BUILDER_CATEGORY_LABEL_STRING__", markdown: "__BUILDER_CATEGORY_MARKDOWN__", phoneNumber: "__BUILDER_CATEGORY_PHONE_NUMBER__", prompt: "__BUILDER_CATEGORY_PROMPT__", stringParsing: "__BUILDER_CATEGORY_STRING_PARSING__", toolbar: "__BUILDER_CATEGORY_TOOLBAR__" }; + }, 73078: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.conversationSummaryLanguageSupport = void 0; + const n2 = i2(31635), r2 = i2(36556), o = n2.__importDefault(i2(4648)), a = i2(74359), s = n2.__importStar(i2(10798)); + t2.conversationSummaryLanguageSupport = new class { + constructor() { + this.supportedLanguages = /* @__PURE__ */ new Set(), this.ready = a.bootstrapDataLoaded.then(() => { + if (s.isFeatureAvailable(o.default.botFlowsVirtualAgentCustomSummaries)) return (0, r2.getAssistantsCopilotFeatureSupport)().then((e3) => { + e3.languages.forEach((e4) => { + this.supportedLanguages.add(e4.language.toLowerCase()); + }); + }).catch((e3) => { + console.error("Failed to load conversation summary supported languages", e3); + }); + }); + } + isLanguageSupported(e3) { + return this.supportedLanguages.has(e3.toLowerCase()); + } + }(); + }, 73080: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = i2(30801), o = i2(26847), a = n2.__importDefault(i2(62957)); + class s extends a.default { + constructor(e3) { + super(e3), e3.skillExpressionFilters && (this._skillExpressionFilters = this.coreFactory.createArchWrapper(e3.skillExpressionFilters)), e3.skillExpressionFiltersResult && (this._skillExpressionFiltersResult = this.coreFactory.createArchWrapper(e3.skillExpressionFiltersResult)); + } + get _actionTypeId() { + return r2.evaluateSkillExpressionFiltersActionType; + } + get displayTypeName() { + return this._scriptingName; + } + get outputValid() { + return this._getOutputById(o.outputIds.valid, true); + } + get outputInvalid() { + return this._getOutputById(o.outputIds.invalid, true); + } + get skillExpressionFilters() { + return this._skillExpressionFilters; + } + get skillExpressionFiltersResult() { + return this._skillExpressionFiltersResult; + } + get evaluateSkillExpressionFiltersOutputsFailure() { + return this.failureOutputs; + } + get isArchActionEvaluateSkillExpressionFilters() { + return true; + } + } + t2.default = s; + }, 73146: (e2, t2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.toAscii = void 0, t2.toAscii = (e3) => { + if ("undefined" != typeof window) return window.btoa(e3); + let t3; + return t3 = e3 instanceof Buffer ? e3 : Buffer.from(e3 + "", "binary"), t3.toString("base64"); + }; + }, 73177: (e2, t2, i2) => { + "use strict"; + var n2; + Object.defineProperty(t2, "__esModule", { value: true }); + const r2 = i2(31635), o = i2(30801), a = r2.__importDefault(i2(11210)); + class s extends a.default { + constructor(e3) { + super(e3), n2.set(this, void 0), r2.__classPrivateFieldSet(this, n2, this.coreFactory.createArchWrapper(e3.enableMonitoring), "f"); + } + get _actionTypeId() { + return o.audioMonitoringActionType; + } + get displayTypeName() { + return this._scriptingName; + } + get isArchActionAudioMonitoring() { + return true; + } + get enableMonitoring() { + return r2.__classPrivateFieldGet(this, n2, "f"); + } + } + n2 = /* @__PURE__ */ new WeakMap(), t2.default = s; + }, 73198: (e2, t2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const i2 = { blank: "__BLANK__", defaultCollectionItemsMax: 2e3, dateFormat: "YYYY-MM-DD", dateTimeFormat: "YYYY-MM-DDTHH:mm:ss.SSS", exprDataTypePrefixComplex: "cpx", exprDataTypePrefixJson: "jsn", exprDataTypePrefixJsonArch: "jsn__architect", exprDataTypeSuffixCollection: "_coll", false: "false", hoursPerDay: 24, litDurationFifteenHundredMs: "P0D0H0M0S1500F", litDurationFifteenSeconds: "P0D0H0M15S0F", litDurationFiveMinutes: "P0D0H5M0S0F", litDurationFiveSeconds: "P0D0H0M5S0F", litDurationFortySeconds: "P0D0H0M40S0F", litDurationOneHundredMs: "P0D0H0M0S100F", litDurationOneMinute: "P0D0H1M0S0F", litDurationOneSecond: "P0D0H0M1S0F", litDurationSevenSeconds: "P0D0H0M7S0F", litDurationSixHours: "P0D6H0M0S0F", litDurationSixSeconds: "P0D0H0M6S0F", litDurationTenHours: "P0D10H0M0S0F", litDurationTenSeconds: "P0D0H0M10S0F", litDurationThreeMinutes: "P0D0H3M0S0F", litDurationThreeSeconds: "P0D0H0M3S0F", litDurationThirtySeconds: "P0D0H0M30S0F", litDurationTwelveHours: "P0D12H0M0S0F", litDurationTwentySeconds: "P0D0H0M20S0F", maxActionNameLength: 200, maxConversationPriority: 25e6, maxDecimalAsStr: "9999999999999999999999999999999999999999.0", maxDateTime: new Date(Date.UTC(2200, 12, 31, 23, 59, 59, 999)), maxDateTimeNoMs: new Date(Date.UTC(2200, 12, 31, 23, 59, 59)), maxDateYear: 2200, maxDurationMs: 999999999999999, maxDurationSecs: 999999999999, maxEmailSubjectLength: 998, maxExpressionCallStack: 60, maxExpressionTextLength: 32e3, maxFlowSizeToStopPublish: 0.98, maxFlowInformationDisplay: 10, maxInt: 999999999999999, maxIntAsStr: "999999999999999", maxPrecision: 40, maxSmsMessageLength: 160, maxStringLength: 32e3, maxVariableDescriptionLength: 1e3, messageBodyVariable: "Message.Message.body", minConversationPriority: -25e6, minDecimalAsStr: "-9999999999999999999999999999999999999999.0", minDateTime: new Date(Date.UTC(1800, 0, 1, 0, 0, 0, 0)), minDateYear: 1800, minDurationMs: -999999999999999, minDurationSecs: -999999999999, minInt: -999999999999999, minutesPerDay: 1440, minutesPerHour: 60, msPerDay: 864e5, msPerHour: 36e5, msPerMinute: 6e4, msPerSecond: 1e3, msWaitPartsChanged: 50, notSet: "NOT_SET", null: "null", oneMegabyte: 1048576, operatorAnd: "And", operatorOr: "Or", secsPerDay: 86400, secsPerHour: 3600, secsPerMinute: 60, star: "*", true: "true", uuidStrLen: 36 }; + t2.default = i2; + }, 73266: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.DefaultSettingsViewModel = void 0; + const n2 = i2(31635), r2 = n2.__importDefault(i2(92140)), o = n2.__importStar(i2(81116)), a = n2.__importDefault(i2(65302)), s = n2.__importStar(i2(9345)), l = n2.__importStar(i2(63352)), u = i2(14394), d = n2.__importDefault(i2(90178)), c = n2.__importStar(i2(17498)), p = i2(30801), _ = i2(12179), h = n2.__importDefault(i2(68460)), m = i2(33231), g = i2(74803), f = i2(7401), T = i2(47957); + class y extends h.default { + constructor(e3) { + super(e3), this._actionDefaults = [], this.modelPropertyName = "defaultSettings", this._initialize(); + } + get id() { + return "defaultSettings"; + } + get className() { + return "DefaultSettingsViewModel"; + } + get helpTopic() { + return _.helpTopics.treeNodes.defaultActionSettings; + } + getConfiguration(e3, t3) { + if (null == t3 ? void 0 : t3.isForFlowYaml) { + if (!this._actionDefaults.length) return null; + const i3 = {}; + return r2.default.each(this._actionDefaults, (n3) => { + var o2; + const a2 = n3.managedPropertyMetadata.yamlOptions, s2 = n3.actionType === p.callGuideActionType && "voiceProcessingPrompt" === n3.managedPropertyMetadata.property, l2 = !!(null === (o2 = this.parentFlow.botFlowSettings) || void 0 === o2 ? void 0 : o2.virtualAgentEnabled); + if (s2 && !l2) return; + const u2 = s2 ? (null == a2 ? void 0 : a2.serializeOutOfService) && l2 : null == a2 ? void 0 : a2.serializeOutOfService; + if (n3.defaultExpression.outOfService && !u2) return; + const d2 = s2 ? Object.assign({}, a2, { serializeOutOfService: u2 }) : a2, c2 = (null == a2 ? void 0 : a2.propertyName) || n3.managedPropertyMetadata.property, _2 = n3.defaultExpression.getConfiguration(e3, t3, d2); + r2.default.isNullOrUndefined(_2) || (e3[n3.wrappedYamlName] || (i3[n3.wrappedYamlName] = {}), i3[n3.wrappedYamlName][c2] = _2); + }), i3; + } + e3.defaultSettings || (e3.defaultSettings = new g()), r2.default.each(this._actionDefaults, (i3) => { + var n3; + const r3 = i3.actionType === p.callGuideActionType && "voiceProcessingPrompt" === i3.managedPropertyMetadata.property, o2 = !!(null === (n3 = this.parentFlow.botFlowSettings) || void 0 === n3 ? void 0 : n3.virtualAgentEnabled), a2 = !!r3 && o2; + i3.defaultExpression.outOfService && !a2 || (e3.defaultSettings[i3.actionType] || (e3.defaultSettings[i3.actionType] = {}), e3.defaultSettings[i3.actionType][i3.managedPropertyMetadata.property] = i3.defaultExpression.getConfiguration(e3, t3)); + }); + } + getDefaultExpression(e3, t3) { + for (let i3 = 0; i3 < this._actionDefaults.length; i3++) { + const n3 = this._actionDefaults[i3]; + if (n3.actionType === e3 && n3.managedPropertyMetadata.property === t3) return n3.managedPropertyMetadata.audio ? n3.defaultAudio : n3.defaultExpression; + } + return null; + } + getDefaultExpressionsForActionType(e3) { + const t3 = []; + for (let i3 = 0; i3 < this._actionDefaults.length; i3++) { + const n3 = this._actionDefaults[i3]; + n3.actionType === e3 && t3.push(n3.managedPropertyMetadata.audio ? n3.defaultAudio : n3.defaultExpression); + } + return t3; + } + getDisplayName() { + return T.actions.defaultActionSettings; + } + getGroupedDefaults() { + const e3 = r2.default.groupBy(this._actionDefaults, "actionType"), t3 = {}; + return r2.default.each(e3, (e4, i3) => { + t3[i3] = r2.default.object(r2.default.map(e4, (e5) => [e5.propertyName, e5])); + }), t3; + } + getNodeName() { + return T.customNodes.actions; + } + get outOfService() { + return !this.hasActionDefaults; + } + get hasActionDefaults() { + return !!this._getAllActionDefaultExpressions().find((e3) => !e3.outOfService); + } + get isDefaultSettingsNode() { + return true; + } + get isDisplayableNode() { + return this.hasActionDefaults; + } + get actionDefaults() { + return this._actionDefaults; + } + loadConfiguration(e3) { + e3.defaultSettings || (e3.defaultSettings = new g()); + const t3 = a.default.getTypeGroup(this.parentFlow); + r2.default.each(this._actionDefaults, (i3) => { + const n3 = i3.managedPropertyMetadata.options.clone().setIsFlowLevelDefaultExpression(true).setIninTestingField(i3.actionType + "." + i3.managedPropertyMetadata.property); + i3.managedPropertyMetadata.options.flowLevelDefaultSameModes || n3.setAllowModeExpression(false), i3.managedPropertyMetadata.options.isExpressionTypePromptOptions ? n3.setIsOptional(true) : n3.setIsOptional(false); + const r3 = t3.getType(i3.managedPropertyMetadata.type); + i3.defaultExpression = o.expression(this.parentFlow, this, this._prepareModel(e3, i3.actionType, i3.managedPropertyMetadata.property), i3.managedPropertyMetadata.label, r3, i3.managedPropertyMetadata.property, n3), i3.defaultExpression.options.flowLevelDefaultHasDefault && i3.defaultExpression.isEmpty && (i3.defaultExpression.mode = l.noValue), this.parentFlow.definition.hasDestinationFlowTypes && (i3.managedPropertyMetadata.supportedFlowTypes && i3.managedPropertyMetadata.supportedFlowTypes.length ? (i3.defaultExpression.supportedFlowTypes = i3.managedPropertyMetadata.supportedFlowTypes, i3.defaultExpression.outOfServiceProvider.allSupportedFlowTypesMustBeAvailableInFlow = !i3.defaultExpression.type.isMatch(u.globalTypes.prompt, s.settings.exact)) : i3.info.supportedFlowTypes && i3.info.supportedFlowTypes.length && (i3.defaultExpression.supportedFlowTypes = i3.info.supportedFlowTypes, i3.defaultExpression.outOfServiceProvider.allSupportedFlowTypesMustBeAvailableInFlow = true)); + }); + } + updateDependencies() { + this._getAllActionDefaultExpressions().forEach((e3) => c.registerExpression(e3)); + } + get nodeGuxIcon() { + return "globe"; + } + search(e3) { + this._getAllActionDefaultExpressions().forEach((t3) => e3.addToQueue(t3)); + } + validate(e3) { + this._getAllActionDefaultExpressions().forEach((t3) => t3.validate(e3)); + } + setNewInstanceDefaults() { + const e3 = []; + this._getAllActionDefaultExpressions().forEach((t4) => { + t4.options.newInstanceDefaultExpressionCallback && e3.push(t4.options.newInstanceDefaultExpressionCallback.call(t4, t4)); + }); + const t3 = e3.filter((e4) => m.isPromiseAlike(e4)); + return t3.length ? m.all(t3) : m.resolve(); + } + get wrappedYamlName() { + return "settingsActionDefaults"; + } + _destroy() { + super._destroy(), this._getAllActionDefaultExpressions().forEach((e3) => e3.destroy()); + } + _initializeDesignTime() { + super._initializeDesignTime(), this._getAllActionDefaultExpressions().forEach((e3) => e3.initializeDesignTime()); + } + _prepareModel(e3, t3, i3) { + const n3 = e3.defaultSettings; + return n3[t3] || (n3[t3] = {}), n3[t3][i3] && !r2.default.isEmpty(n3[t3][i3]) || (n3[t3][i3] = new f()), n3[t3][i3]; + } + _initialize() { + this._actionDefaults.length = 0, r2.default.each(d.default, (e3) => { + r2.default.each(e3.actions, (e4) => { + e4.getManagedProperties && r2.default.each(e4.getManagedProperties(e4), (t3) => { + t3.options && t3.options.allowFlowLevelDefault && (e4.prototype.info.supportedFlowTypes && !r2.default.contains(e4.prototype.info.supportedFlowTypes, this.parentFlow.type) || (this.parentFlow.isCommonModuleFlow || !t3.supportedFlowTypes || r2.default.contains(t3.supportedFlowTypes, this.parentFlow.type)) && this._actionDefaults.push({ actionType: e4.info.typeId, wrappedYamlName: e4.info.getWrappedYamlName(false, false), managedPropertyMetadata: t3, propertyName: t3.property, info: e4.info })); + }); + }); + }); + } + _getAllActionDefaultExpressions() { + const e3 = []; + return this._actionDefaults.forEach((t3) => { + t3.defaultExpression ? e3.push(t3.defaultExpression) : t3.defaultAudio && e3.push(t3.defaultAudio); + }), e3; + } + } + t2.DefaultSettingsViewModel = y; + }, 73270: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.createWorkitem = function(e3) { + return r2.default.build(o.createWorkitem).content(e3).call(); + }, t2.getWorktypes = a, t2.getSchema = s, t2.getWorktype = l; + const n2 = i2(31635), r2 = n2.__importDefault(i2(36019)), o = n2.__importStar(i2(28350)); + function a(e3) { + const t3 = r2.default.build(o.getWorktypes), i3 = e3.searchTerm, n3 = { after: e3.after, pageSize: e3.defaultPageSize, sort: { name: "name", ascending: "true" }, attributes: ["name", "id", "schemaId", "flowId"] }; + return i3 && (n3.filters = [{ type: "String", operator: "CONTAINS", name: "name", values: [i3] }]), t3.content(n3).call(); + } + function s(e3) { + return r2.default.build(o.getSchema).templateParams({ id: e3 }).call(); + } + function l(e3) { + return r2.default.build(o.getWorktype).templateParams({ id: e3 }).call(); + } + s.api = o.getSchema, l.api = o.getWorktype, a.api = o.getWorktypes; + }, 73274: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = i2(17604), o = i2(30801), a = i2(96618), s = i2(12179), l = n2.__importDefault(i2(97891)), u = n2.__importDefault(i2(12889)), d = i2(47957); + class c extends u.default { + static get notRealAction() { + return false; + } + constructor(e3, t3) { + super(e3, t3), this.parentFlow.isEmbeddedFlow ? this.trackById = `${this.parentFlow.instanceId}-${this.id}` : this.trackById = this.id; + } + get canRename() { + return false; + } + get isCommonModuleTaskViewModel() { + return true; + } + get supportsCustomOutputPaths() { + return false; + } + getDisplayName() { + var e3; + if (this.parentFlow.isEmbeddedFlow) { + const t3 = this.parentFlow.topParentFlow, i3 = null === (e3 = null == t3 ? void 0 : t3.getCommonModuleReferenceByInstanceId) || void 0 === e3 ? void 0 : e3.call(t3, this.parentFlow.instanceId); + return (null == i3 ? void 0 : i3.version) ? (0, r2.sprintf)(d.nameAndVersion, this.parentFlow.displayName, i3.version) : this.parentFlow.displayName; + } + return super.getDisplayName(); + } + } + c.info = l.default.createReusableNodeInfo({ actionType: o.commonModuleTaskActionType, actionClass: c, helpTopic: s.helpTopics.tasks.task, name: d.commonModule.hardcodedTaskName, supportedFlowTypes: [a.flowTypes.flowTypeCommonModule] }), t2.default = c; + }, 73303: (e2, t2, i2) => { + function n2() { + this.grammarBased = void 0, this.isDefault = void 0, this.selection = void 0, this.supportedLanguages = void 0, n2.baseConstructor.apply(this, arguments); + } + i2(52722).extend(n2, "SpeechToTextEngine"), e2.exports = n2; + }, 73322: (e2, t2, i2) => { + const n2 = i2(75458), r2 = i2(7401), { sendNotificationActionType: o } = i2(30801); + function a() { + Object.defineProperties(this, { _notificationType: { writable: true }, _subject: { writable: true }, _body: { writable: true }, _sendToUsers: { writable: true }, _emailNotificationStyle: { writable: true }, _emailFrom: { writable: true }, _errorBindings: { writable: true }, _sendToGroup: { writable: true }, _chatMessage: { writable: true } }), a.baseConstructor.apply(this, arguments); + } + n2.extend(a, o, true), Object.defineProperties(a.prototype, { pasteReIdOrRename: { value: function(e3) { + a._super.pasteReIdOrRename.apply(this, arguments), this.notificationType.pasteReIdOrRename(e3), this.subject.pasteReIdOrRename(e3), this.body.pasteReIdOrRename(e3), this.sendToUsers.pasteReIdOrRename(e3), this.emailNotificationStyle.pasteReIdOrRename(e3), this.emailFrom.pasteReIdOrRename(e3), this.sendToGroup.pasteReIdOrRename(e3), this.chatMessage.pasteReIdOrRename(e3); + } }, pasteResolveOldToNewValues: { value: function(e3) { + a._super.pasteResolveOldToNewValues.apply(this, arguments), this.notificationType.pasteResolveOldToNewValues(e3), this.subject.pasteResolveOldToNewValues(e3), this.body.pasteResolveOldToNewValues(e3), this.sendToUsers.pasteResolveOldToNewValues(e3), this.emailNotificationStyle.pasteResolveOldToNewValues(e3), this.emailFrom.pasteResolveOldToNewValues(e3), this.sendToGroup.pasteResolveOldToNewValues(e3), this.chatMessage.pasteResolveOldToNewValues(e3); + } }, notificationType: { enumerable: true, get: function() { + return this._notificationType; + }, set: function(e3) { + this._notificationType = this.reviveItem(e3, r2); + } }, subject: { enumerable: true, get: function() { + return this._subject; + }, set: function(e3) { + this._subject = this.reviveItem(e3, r2); + } }, body: { enumerable: true, get: function() { + return this._body; + }, set: function(e3) { + this._body = this.reviveItem(e3, r2); + } }, sendToUsers: { enumerable: true, get: function() { + return this._sendToUsers; + }, set: function(e3) { + this._sendToUsers = this.reviveItem(e3, r2); + } }, emailNotificationStyle: { enumerable: true, get: function() { + return this._emailNotificationStyle; + }, set: function(e3) { + this._emailNotificationStyle = this.reviveItem(e3, r2); + } }, emailFrom: { enumerable: true, get: function() { + return this._emailFrom; + }, set: function(e3) { + this._emailFrom = this.reviveItem(e3, r2); + } }, sendToGroup: { enumerable: true, get: function() { + return this._sendToGroup; + }, set: function(e3) { + this._sendToGroup = this.reviveItem(e3, r2); + } }, chatMessage: { enumerable: true, get: function() { + return this._chatMessage; + }, set: function(e3) { + this._chatMessage = this.reviveItem(e3, r2); + } } }), e2.exports = a; + }, 73324: (e2, t2, i2) => { + "use strict"; + var n2; + Object.defineProperty(t2, "__esModule", { value: true }), t2.BaseBotActionSettingsSequence = void 0; + const r2 = i2(31635), o = i2(64306); + class a extends o.BaseBotSettingsSequence { + constructor(e3) { + super(), n2.set(this, void 0), r2.__classPrivateFieldSet(this, n2, e3, "f"); + } + generateLanguageSequencesDefaultSequence(e3, t3) { + return super.generateLanguageSequencesDefaultSequence(r2.__classPrivateFieldGet(this, n2, "f"), e3, t3); + } + generateLanguageSequenceConfig(e3, t3, i3, n3) { + return super.generateLanguageSequenceConfig(e3, t3, i3, n3); + } + } + t2.BaseBotActionSettingsSequence = a, n2 = /* @__PURE__ */ new WeakMap(); + }, 73369: (e2, t2, i2) => { + const n2 = i2(36019).default, r2 = {}; + r2.createChannel = n2.request("POST", "{public-api.apps}/api/v2/notifications/channels"), r2.removeAllSubscriptions = n2.request("DELETE", "{public-api.apps}/api/v2/notifications/channels/{id}/subscriptions"), r2.addSubscription = n2.request("POST", "{public-api.apps}/api/v2/notifications/channels/{id}/subscriptions"), r2.updateSubscription = n2.request("PUT", "{public-api.apps}/api/v2/notifications/channels/{id}/subscriptions"), r2.createChannel.addOptions({ ignoreTimeouts: true, ignoreBadResponse: true }), r2.removeAllSubscriptions.addOptions({ ignoreBadResponse: true, suppressSuccessTrace: true }), r2.addSubscription.addOptions({ suppressSuccessTrace: true }), r2.updateSubscription.addOptions({ suppressSuccessTrace: true }), e2.exports = r2; + }, 73374: (e2) => { + e2.exports = { askCommon: { invalidInputReceived: "Esa acci\xF3n no es v\xE1lida.", noInputReceived: "No recib\xED ninguna entrada." }, askForBoolean: { noInput: 'Responda "s\xED" si desea continuar o, caso contrario, "no".', noMatch: 'Responda "S\xED" o "No". \xBFDesea continuar?', question: "\xBFDesea continuar?", noInputDigitalBot: 'Seleccione "S\xED" si desea continuar o, de lo contrario, "No".', noMatchDigitalBot: '\xBFDesea continuar? Seleccione "S\xED" o "No".' }, askForIntent: { noInput: 'Describa su consulta con una oraci\xF3n corta, por ejemplo, "Revisar mi saldo"', noMatch: "D\xEDgame una vez m\xE1s lo que quiere hacer.", question: "\xBFQu\xE9 le gustar\xEDa hacer?", noInputDigitalBot: 'Escriba una oraci\xF3n corta que describa su consulta. Por ejemplo, "Revisar mi saldo de cuenta"' }, askForSlot: { askFor: "Solicitar %1$s", noInput: "Pronuncie o escriba (coloque el nombre de la ranura aqu\xED).", noInputWithSlot: "Pronuncie o escriba %1$s.", noMatch: "Vuelva a proporcionar (coloque el nombre de la ranura aqu\xED).", noMatchWithSlot: "Vuelva a proporcionar %1$s.", question: "\xBFQu\xE9 es (coloque el nombre de la ranura aqu\xED)?", questionWithSlot: "\xBFQu\xE9 es %1$s?", pleaseEnterSlotNameHere: "(ponga el nombre de su ranura aqu\xED)", noInputDigitalBot: "Escriba (coloque aqu\xED el nombre de la ranura).", noInputWithSlotDigitalBot: "Escriba %1$s.", continuationPromptWithSlot: "De momento tengo {{Slot.%1$s}}, contin\xFAe." }, askForNextSlot: { noInput: 'Responda "s\xED", en caso de que tenga otra consulta, o "no" para finalizar la llamada.', noMatch: 'Responda "S\xED", en caso de que tenga otra consulta, o "No", para finalizar la sesi\xF3n.', question: "\xBFPuedo serle \xFAtil en algo m\xE1s?", noInputDigitalBot: 'Seleccione "S\xED" si tiene otra consulta o "No" para finalizar la sesi\xF3n.', noMatchDigitalBot: 'Seleccione "S\xED" si tiene otra consulta o "No" para finalizar la sesi\xF3n.' }, askForPayment: { noInputDigitalBot: "Proporcione su informaci\xF3n de pago para continuar.", noMatchDigitalBot: "No he entendido su respuesta. Vuelva a intentarlo." }, askForAuthentication: { noInputDigitalBot: "Proporcione su informaci\xF3n de autenticaci\xF3n para continuar.", noMatchDigitalBot: "No he entendido su respuesta. Vuelva a intentarlo." }, askSurveyQuestion: { notApplicable: "No aplicable", surveyAnswerOptionSequence: "Pulse %1$s para %2$s.", surveyAnswerNotApplicableSequence: "Pulse la estrella para No aplicable.", surveyAnswerNotApplicableWithQuestionSequence: "%1$s. Pulse la estrella para No aplicable.", voiceSurveyNoInputText: "Responda la pregunta.", voiceSurveyNoMatchText: "No le entend\xED." }, commonModule: { exitCommonModule: "Salir del m\xF3dulo com\xFAn" }, form: { noInputDigitalBot: "Complete el formulario para continuar.", noMatchDigitalBot: "Complete el formulario para continuar." }, messagingTemplate: { noInputDigitalBot: "Seleccione una de las opciones disponibles.", noMatchDigitalBot: "Seleccione una de las opciones disponibles." }, knowledgeSettings: { knowledgeAnswerHighlightFlowProgressionDefault: "Continuar", knowledgeAnswerHighlightFullArticleDefault: "Ver art\xEDculo completo", knowledgeInitialResponseMulti: "Para ayudarme a entender su meta, elija un n\xFAmero de la siguiente lista:", knowledgeInitialResponseMultiRetry: "Elija un n\xFAmero, por ejemplo '1'.\nEsta es la lista de opciones:", knowledgeNoMatch: "Ninguna de estas", knowledgeConfirmation: "\xBFEsto responde a su pregunta?", knowledgeFollowup: "Espero haber respondido su pregunta. Puede preguntar sobre cualquier otro tema que desee." }, noOverlay: { intent: { intentConfirmationStr1: "Creo que quiero", intentConfirmationStr2: "\xBFEs correcto?" }, youSaid: { youSaidConfirmationStr1: "Usted dijo", youSaidConfirmationStr2: "\xBFEs correcto?", youSaidConfirmationStr1DigitalBot: "Escribi\xF3" }, noInput: { noInputStr1: "Pronuncie o escriba", noInputStr1DigitalBot: "Escriba el" }, noMatch: { noMatchStr1: "Proporcione" }, whatIs: { whatIsQuestionStr1: "\xBFQu\xE9 es", whatIsQuestionStr2: "?" }, iGotContinuation: { iGotContinuationStr1: "De momento tengo", iGotContinuationStr2: ", contin\xFAe." } }, defaultCallFlowOne: "Flujo de llamadas predeterminado", errorHandlingAgentEscalationConfirmation: "\xBFDesea hablar con un asesor?", errorHandlingAgentEscalationHandover: "Espere un momento. Lo pondr\xE9 en contacto con alguien.", errorHandlingErrorEventHandover: "Se produjo un error. Espere un momento mientras lo pongo en contacto con alguien que lo pueda ayudar.", errorHandlingErrorEventHandoverVoiceSurvey: "Lo siento, se produjo un error. Hasta luego.", errorHandlingRecognitionEventHandover: "No logro comprender lo que dice. Espere un momento mientras lo pongo en contacto con alguien que lo pueda ayudar.", errorHandlingRecognitionEventHandoverVoiceSurvey: "Lo siento, no entiendo lo que dice. Hasta luego.", errorHandlingTTS: "Se produjo un error. Intente llamar de nuevo.", initialGreetingTTS: "Hola, este es el saludo inicial.", initialState: "Estado inicial", initialBotState: "Bot predeterminado", initialDigitalBotState: "Saludo inicial", initialSurveyBotState: "Bot de encuesta", intentConfirmation: "Creo que quiere %1$s, \xBFes correcto?", mainMenu: "Men\xFA principal", mainMenuTTS: "Se encuentra en el men\xFA principal; presione 9 para desconectar", mainTask: "Tarea", settingsConfirmationNoInputApology: "No logro escucharlo. Responda s\xED o no.", settingsConfirmationNoInputApologyDigitalBot: 'No se registr\xF3 ninguna entrada. Seleccione "S\xED" o "No".', settingsConfirmationNoMatchApology: "Responda s\xED o no.", settingsConfirmationNoMatchApologyDigitalBot: 'Seleccione "S\xED" o "No".', settingsNoInputApology: "No logro escucharlo.", settingsNoInputApologyDigitalBot: "No se registr\xF3 ninguna entrada.", settingsEndOfSessionMessageDigitalBot: "No he tenido noticias suyas por un tiempo. Por lo tanto, voy a cerrar este chat. No dude en regresar si vuelve a necesitar mi ayuda. Gracias.", settingsNoMatchApology: "Lo siento.", settingsNoToConfirmationApology: "Fue mi error.", periodicStateName: "Estado recurrente" }; + }, 73381: (e2, t2, i2) => { + "use strict"; + var n2, r2; + Object.defineProperty(t2, "__esModule", { value: true }), t2.AudioCaseViewModel = void 0; + const o = i2(31635), a = i2(9456), s = o.__importStar(i2(58380)); + t2.AudioCaseViewModel = class { + constructor(e3, t3, i3, o2) { + this.parentFlow = e3, this.parent = t3, this.model = i3, this.audioExpression = o2, this.id = (0, a.uuid)(), this.amObjectEventSink = true, n2.set(this, void 0), r2.set(this, void 0), this.audioExpression.hasSequenceItems || this.audioExpression.customExpressionMode || (this.disabled = true), s.registerEventSinkForEventEmitter(this.audioExpression.id, this), this.audioExpression.parentAudio = this; + } + objEvent_sequenceItemsChanged(e3) { + this.disabled = !e3.customExpressionMode && e3.sequenceItems.length < 1; + } + addClipboardDependencies(e3, t3) { + this.audioExpression.addClipboardDependencies(e3, t3); + } + checkVersion(e3) { + this.audioExpression.checkVersion(e3); + } + get isDestroyedOrDestroying() { + var e3; + return null !== (e3 = o.__classPrivateFieldGet(this, n2, "f")) && void 0 !== e3 ? e3 : o.__classPrivateFieldGet(this, r2, "f"); + } + destroy() { + o.__classPrivateFieldSet(this, r2, true, "f"), this.audioExpression.destroy(), o.__classPrivateFieldSet(this, n2, true, "f"); + } + get hasAudioSet() { + return this.audioExpression.hasAudioSet; + } + isAudioCaseViewModel() { + return true; + } + get disabled() { + return this.model.disabled; + } + set disabled(e3) { + this.model.disabled = e3; + } + get langCode() { + return this.model.langCode; + } + set langCode(e3) { + this.model.langCode = e3; + } + search(e3) { + e3.addToQueue(this.audioExpression); + } + get parentAudioViewModel() { + return this.parent; + } + get uiMetaData() { + return this.model.uiMetaData; + } + set uiMetaData(e3) { + this.model.uiMetaData = e3; + } + validate(e3) { + this.audioExpression.validate(e3); + } + initializeDesignTime() { + this.audioExpression.initializeDesignTime(); + } + }, n2 = /* @__PURE__ */ new WeakMap(), r2 = /* @__PURE__ */ new WeakMap(); + }, 73484: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.toArray = void 0; + var n2 = i2(92070), r2 = i2(65212), o = function(e3, t3) { + return e3.push(t3), e3; + }; + t2.toArray = function() { + return r2.operate(function(e3, t3) { + n2.reduce(o, [])(e3).subscribe(t3); + }); + }; + }, 73506: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = i2(30801), o = n2.__importDefault(i2(90077)); + class a extends o.default { + constructor(e3) { + super(e3), this._surveyQuestion = this.coreFactory.createArchWrapper(e3.surveyQuestion), this._surveyQuestionResult = this.coreFactory.createArchWrapper(e3.surveyQuestionResult), this._questionCondition = this.coreFactory.createArchWrapper(e3.questionCondition), this._answer = this.coreFactory.createArchWrapper(e3.answer), this._followUpQuestion = this.coreFactory.createArchWrapper(e3.followUpQuestion), this._notApplicable = this.coreFactory.createArchWrapper(e3.notApplicable); + } + get _actionTypeId() { + return r2.askSurveyQuestionActionType; + } + get displayTypeName() { + return "ArchActionAskSurveyQuestion"; + } + get isArchActionAskSurveyQuestion() { + return true; + } + get surveyQuestion() { + return this._surveyQuestion; + } + configureFromQuestionText(e3) { + this._checkItemIsValidLiteralString(this._infoParm("questionText", "configureFromQuestionText"), e3, false), this._getCoreViewModel().configureFromArchSurveyQuestionText(e3) || this.logErrorAndThrow(`the survey question with text '${e3}' could not be found on the survey form associated with this flow.`); + } + configureFromQuestionId(e3) { + this._checkItemIsValidLiteralString(this._infoParm("questionId", "configureFromQuestionId"), e3, false), this._getCoreViewModel().configureFromArchSurveyQuestionId(e3) || this.logErrorAndThrow(`the survey question identifier of '${e3} is not valid for this voice survey flow. Make sure that it is valid for the survey form associated with this flow.`); + } + get surveyQuestionResult() { + return this._surveyQuestionResult; + } + get questionCondition() { + return this._questionCondition; + } + get answer() { + return this._answer; + } + get followUpQuestion() { + return this._followUpQuestion; + } + get notApplicable() { + return this._notApplicable; + } + } + t2.default = a; + }, 73510: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(54063)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "externalWhatsAppInfoCollection"; + } + get displayTypeName() { + return "ArchValueExternalWhatsAppInfoCollection"; + } + get isArchValueExternalWhatsAppInfoCollection() { + return true; + } + } + t2.default = r2; + }, 73545: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.AudioType = void 0; + const n2 = i2(94765), r2 = i2(80428); + class o extends n2.ExpressionType { + constructor(e3, t3, i3) { + super(e3, t3, i3); + } + getFlowTypesUnavailableForExpression(e3) { + if (!e3 || !e3.parentFlow) return; + const t3 = e3.parentFlow.getDestinationFlowTypesThatSupportTtsAndAsrAtRuntime().filter((e4) => !this.isAvailableForFlowType(e4, true)); + return t3.length ? t3 : void 0; + } + } + t2.AudioType = o, o.typeIdentifier = r2.expressionTypeNames.audio; + }, 73578: (e2, t2, i2) => { + "use strict"; + const n2 = i2(31635), r2 = i2(96618), o = i2(12179), a = n2.__importDefault(i2(97891)), s = i2(33381), l = n2.__importDefault(i2(9183)), u = i2(99469), d = i2(47957); + class c extends l.default { + constructor(e3, t3) { + super(e3, t3); + } + static get managedProperties() { + return [{ createDetails: s.FlowReferenceProperty.createCreateDetails({ flowType: r2.flowTypes.flowTypeBot, supportsSpecificVersion: false }), options: u.ManagedPropertyOptions.create((e3) => e3.setUiPropertyOrder(1).setCanCreateObjectInAction(true)), property: "botFlow", yamlOptions: c.createYamlOptions("botFlow", (e3) => e3.setExportOrder(6)) }]; + } + get targetFlowType() { + return this.botFlow; + } + } + c.className = "CallBotFlowAction", c.info = a.default.createActionInfo({ actionClass: c, canBeInTask: true, helpTopic: o.helpTopics.actions.callBotFlow, modelClass: i2(37852), name: d.actions.callBotFlow, scriptingName: "ArchActionCallBotFlow" }), t2.A = c; + }, 73583: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(21345)), r2 = i2(30801); + class o extends n2.default { + constructor(e3) { + super(e3), this._acdSkills = this.coreFactory.createArchWrapper(e3.acdSkills), this._languageSkill = this.coreFactory.createArchWrapper(e3.languageSkill); + } + get _actionTypeId() { + return r2.setSkillsActionType; + } + get displayTypeName() { + return "ArchActionSetSkills"; + } + get isArchActionSetSkills() { + return true; + } + get acdSkills() { + return this._acdSkills; + } + get languageSkill() { + return this._languageSkill; + } + } + t2.default = o; + }, 73646: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.ExpressionFuncOp = void 0; + const n2 = i2(31635).__importDefault(i2(92140)), r2 = i2(55909), o = i2(33951); + t2.ExpressionFuncOp = class { + constructor(e3, t3, i3, n3, r3) { + this.className = "ExpressionFuncOp", this.isUnavailable = false, this.description = i3, this.overloads = r3, this.funcCategory = n3, this.identifier = e3.identifier, this.isFunction = "function" === e3.type, this.isOperator = "operator" === e3.type, this.text = t3, this.type = e3.type, this.runtimeSequencesSystemPrompts = e3.runtimeSequencesSystemPrompts, this.runtimeRequiresTTSSupport = e3.runtimeRequiresTTSSupport, this.closingSymbol = e3.closingSymbol, e3.needsServerInfo && (this.needsServerInfo = true), this._processSupportedFlowTypes(); + } + getAvailableOverloads(e3, t3) { + o.ParameterValidator.expectFlowType(e3, function() { + return r2.ParameterInfo.createFunctionParameter(this.className, "getAvailableOverloadsForFlowType", "flowType"); + }.bind(this), true); + const i3 = []; + return n2.default.each(this.overloads, (r3) => { + (t3 && t3.id === r3.id || !r3.isUnavailable && (n2.default.isUndefined(e3) || n2.default.isUndefined(r3.supportedFlowTypes) || n2.default.contains(r3.supportedFlowTypes, e3))) && i3.push(r3); + }), i3; + } + _processSupportedFlowTypes() { + let e3, t3; + n2.default.each(this.overloads, (i3) => { + i3.supportedFlowTypes && !t3 ? (e3 || (e3 = {}), n2.default.each(i3.supportedFlowTypes, (t4, i4) => { + e3[i4] = t4; + })) : (t3 = true, e3 = void 0); + }), e3 ? this.supportedFlowTypes = e3 : delete this.supportedFlowTypes; + } + _unitTestEnableLanguageForNeedServerInfo(e3, t3, i3) { + console.error("ExpressionFuncOp._unitTestEnableLanguageForNeedServerInfo should only be called in unit tests!"); + } + unitTestRestoreNeedServerInfoSnapshot() { + console.error("ExpressionFuncOp.unitTestRestoreNeedServerInfoSnapshot should only be called in unit tests!"); + } + _unitTestEnableOverloads() { + console.error("ExpressionFuncOp._unitTestEnableOverloads should only be called in unit tests!"); + } + startupConfigureFromBootstrapInfo(e3, t3) { + this.bootStrapInfoProcessed = true, e3.overloads && n2.default.each(e3.overloads, (e4, i3) => { + const r3 = n2.default.findWhere(this.overloads, { id: i3 }); + r3 && r3.startupConfigureFromBootstrapInfo(e4, t3); + }); + } + startupFinalize() { + n2.default.each(this.overloads, (e3) => { + e3.startupFinalize(); + }), this.isUnavailable = !n2.default.find(this.overloads, (e3) => true !== e3.isUnavailable), this._processSupportedFlowTypes(); + } + }; + }, 73649: (e2, t2, i2) => { + function n2() { + n2.baseConstructor.apply(this, arguments); + } + i2(45214).extend(n2, "BaseClipboardManifest"), e2.exports = n2; + }, 73677: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(92661)), r2 = i2(30801); + class o extends n2.default { + constructor(e3) { + super(e3); + } + get _actionTypeId() { + return r2.findSkillActionType; + } + get displayTypeName() { + return this._scriptingName; + } + get isArchActionFindSkill() { + return true; + } + get findResult() { + return this._findResult; + } + } + t2.default = o; + }, 73697: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = i2(30801), o = n2.__importDefault(i2(62028)); + class a extends o.default { + constructor(e3) { + super(e3); + } + get _actionTypeId() { + return r2.repeatMenuActionType; + } + get displayTypeName() { + return "ArchMenuRepeatMenu"; + } + get actionRepeatMenu() { + return this._archAction; + } + get isArchMenuRepeatMenu() { + return true; + } + } + t2.default = a; + }, 73728: (e2, t2, i2) => { + function n2() { + n2.baseConstructor.apply(this, arguments); + } + i2(11475).extend(n2, "KnowledgeBaseDocumentVariable", true), Object.defineProperties(n2.prototype, { typeIdentifier: { writable: true } }), e2.exports = n2; + }, 73753: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = i2(96618), o = i2(80428), a = i2(14394), s = i2(81516), l = i2(36128), u = n2.__importStar(i2(1115)), d = n2.__importDefault(i2(98495)), c = i2(47957); + class p extends d.default { + static get managedProperties() { + return [{ label: c.setConversationData.conversationLabel, options: s.ExpressionTypeStringOptions.create((e3) => e3.setAsInput().setDescriptionInfo(c.setConversationData.conversationLabel, c.setConversationData.conversationDescription).setIninTestingField("ConversationIdExpression").setDisableSpellcheck(true).setUiPropertyOrder(10).facets.setLengthForUuid()), property: "conversationId", supportedFlowTypes: [r2.flowTypes.flowTypeWorkflow, r2.flowTypes.flowTypeWorkitem], type: o.expressionTypeNames.string, yamlOptions: p.createYamlOptions("conversationId", (e3) => e3.setExportOrder(10)) }, { property: "variables", namedItems: true, isOutput: false, options: l.NameValuePairsOptions.create((e3) => e3.setAddButtonLabel(c.setAttributes.addAttributeButton).setUiPropertyOrder(11)), yamlOptions: p.createYamlOptions("attributes", (e3) => e3.setPropertyName("attributes").setWrappedCollectionItemName("attribute").setExportOrder(30)) }]; + } + addAttribute() { + const e3 = this.variables.add(null, a.globalTypes.string); + return u.validateAction(this, true, true), null == e3 ? void 0 : e3.id; + } + } + t2.default = p; + }, 73883: (e2, t2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.reportedStateConstants = t2.integrationTypeConstants = void 0, t2.integrationTypeConstants = { genesysBotConnector: "genesys-byob", genesysDigitalBotConnector: "genesys-digital-bot-connector", nuanceMixBot: "nuance-mix-bot" }, t2.reportedStateConstants = { active: "ACTIVE" }; + }, 73903: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(92661)), r2 = i2(30801); + class o extends n2.default { + constructor(e3) { + super(e3); + } + get _actionTypeId() { + return r2.findScheduleActionType; + } + get displayTypeName() { + return this._scriptingName; + } + get isArchActionFindSchedule() { + return true; + } + get findResult() { + return this._findResult; + } + } + t2.default = o; + }, 73929: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.sequenceEqual = void 0; + var n2 = i2(65212), r2 = i2(17214), o = i2(19724); + t2.sequenceEqual = function(e3, t3) { + return void 0 === t3 && (t3 = function(e4, t4) { + return e4 === t4; + }), n2.operate(function(i3, n3) { + var a = { buffer: [], complete: false }, s = { buffer: [], complete: false }, l = function(e4) { + n3.next(e4), n3.complete(); + }, u = function(e4, i4) { + var o2 = r2.createOperatorSubscriber(n3, function(n4) { + var r3 = i4.buffer, o3 = i4.complete; + 0 === r3.length ? o3 ? l(false) : e4.buffer.push(n4) : !t3(n4, r3.shift()) && l(false); + }, function() { + e4.complete = true; + var t4 = i4.complete, n4 = i4.buffer; + t4 && l(0 === n4.length), null == o2 || o2.unsubscribe(); + }); + return o2; + }; + i3.subscribe(u(a, s)), o.innerFrom(e3).subscribe(u(s, a)); + }); + }; + }, 73946: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importDefault(i2(40559)), o = n2.__importDefault(i2(94225)), a = i2(63345); + class s extends r2.default { + constructor(e3) { + super(e3, a.responseAssetManager); + } + get _globalTypeName() { + return "responseAssetCollection"; + } + get displayTypeName() { + return "ArchValueResponseAssetCollection"; + } + get _searchByValueSearchProperty() { + return "name"; + } + addLiteralByResponseAssetIdAsync(e3, t3) { + return n2.__awaiter(this, void 0, void 0, function* () { + return this._checkItemIsValidLiteralString(this._infoParm("responseAssetId", "addLiteralByResponseAssetIdAsync"), e3), this._checkItemIsValidFunction(this._infoParm("callbackFunction", "addLiteralByResponseAssetIdAsync"), t3, true), this._addLiteralByIdAsync(e3, "response asset").then(() => o.default.executeCallback(this, "addLiteralByResponseAssetIdAsync", t3, this)); + }); + } + addLiteralByResponseAssetNameAsync(e3, t3) { + return n2.__awaiter(this, void 0, void 0, function* () { + return this._checkItemIsValidLiteralString(this._infoParm("responseAssetName", "addLiteralByResponseAssetNameAsync"), e3), this._checkItemIsValidFunction(this._infoParm("callbackFunction", "addLiteralByResponseAssetNameAsync"), t3, true), this._addLiteralByValueAsync(e3, "response asset").then(() => o.default.executeCallback(this, "addLiteralByResponseAssetNameAsync", t3, this)); + }); + } + get isArchValueResponseAssetCollection() { + return true; + } + } + t2.default = s; + }, 73954: (e2, t2, i2) => { + const n2 = i2(92140), r2 = i2(28730), { updateVariableActionType: o } = i2(30801), a = i2(42217); + function s() { + Object.defineProperties(this, { _variables: { writable: true } }), s.baseConstructor.apply(this, arguments); + } + r2.extend(s, o, true), Object.defineProperties(s.prototype, { pasteResolveOldToNewValues: { value: function(e3) { + s._super.pasteResolveOldToNewValues.apply(this, arguments), n2.each(this.variables, function(t3) { + t3.pasteResolveOldToNewValues(e3); + }.bind(this)); + } }, pasteReIdOrRename: { value: function(e3) { + s._super.pasteReIdOrRename.apply(this, arguments), n2.each(this.variables, function(t3) { + t3.pasteReIdOrRename(e3); + }.bind(this)); + } }, variables: { enumerable: true, get: function() { + return this._variables; + }, set: function(e3) { + this._variables = this.reviveArray(e3, a); + } } }), e2.exports = s; + }, 73956: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.retryWhen = void 0; + var n2 = i2(19724), r2 = i2(76808), o = i2(65212), a = i2(17214); + t2.retryWhen = function(e3) { + return o.operate(function(t3, i3) { + var o2, s, l = false, u = function() { + o2 = t3.subscribe(a.createOperatorSubscriber(i3, void 0, void 0, function(t4) { + s || (s = new r2.Subject(), n2.innerFrom(e3(s)).subscribe(a.createOperatorSubscriber(i3, function() { + return o2 ? u() : l = true; + }))), s && s.next(t4); + })), l && (o2.unsubscribe(), o2 = null, l = false, u()); + }; + u(); + }); + }; + }, 74064: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.TTSDataViewModel = void 0; + const n2 = i2(31635), r2 = i2(96618), o = i2(17604), a = n2.__importDefault(i2(92140)), s = n2.__importStar(i2(27862)), l = n2.__importStar(i2(17498)), u = n2.__importStar(i2(36781)), d = i2(79516), c = n2.__importDefault(i2(6953)), p = i2(10798), _ = n2.__importDefault(i2(4648)), h = i2(91941), m = i2(63221), g = i2(47957); + class f extends h.SpeechDataViewModel { + constructor(e3, t3, i3) { + super(e3, t3, i3), this._flexibleTtsSelectionEnabled = (0, p.isFeatureAvailable)(_.default.flexibleTtsSelection); + } + get className() { + return "TTSDataViewModel"; + } + getConfiguration(e3, t3) { + if (null == t3 ? void 0 : t3.isForFlowYaml) { + let e4; + if (!this.hasEngineNoneSelection && this.engine) { + e4 = {}; + const t4 = e4[this.hasDefaultEngineSelected ? "defaultEngine" : this.engine.name] = {}; + !this.hasVoiceEngineSelection && this.voice ? this.hasDefaultVoiceSelected ? t4.defaultVoice = true : t4.voice = this.voice.name : t4.noVoice = true; + } else e4 = { noEngine: true }; + return e4; + } + return this.model; + } + getDisplayName() { + return this.parent && a.default.isFunction(this.parent.getDisplayName) && this.parent.getDisplayName(); + } + getSelectedEngine() { + return this.engine.id ? this.engineService.getItemById(this.engine.id) : null; + } + initializeDesignTime() { + this.engine.id || this.hasEngineNoneSelection ? this.updateDefaultEngineAndVoice() : this.parent.parentFlow.flowMetaData.ttsDataVersion ? this.setInitialValues() : this.migrateOldValues(), super.initializeDesignTime(); + } + get engineService() { + return c.default; + } + get id() { + return this.languageId + "-tts"; + } + get isTtsDataViewModel() { + return true; + } + get hasDefaultVoiceSelected() { + return this.voice.selection === m.engineSelectionTypes.engineSelectionDefault; + } + get hasEngineNoneSelection() { + return this.engine.selection === m.engineSelectionTypes.engineSelectionNone; + } + get hasVoiceEngineSelection() { + return this.voice.selection === m.engineSelectionTypes.engineSelectionNone; + } + get voice() { + return this._model.voice; + } + set voice(e3) { + this._model.voice = e3; + } + migrateOldValues() { + var e3; + const t3 = this.engineService.getGenesysEngine(); + if (t3 && c.default.isEngineSupportedForLanguageAndFlowTypeOrTypes(t3.id, this.languageId, null === (e3 = this.parentFlow) || void 0 === e3 ? void 0 : e3.destinationFlowTypes)) { + this.setEngine(t3, false); + const e4 = t3.getVoicesForLanguage(this.languageId); + e4.length && this.setVoice(e4[0], false); + } else this.setEngine(null, false), this.setVoice(null, false); + } + setInitialValues() { + var e3; + const t3 = null === (e3 = this.parentFlow) || void 0 === e3 ? void 0 : e3.type, i3 = this.engineService.getEnginesForLanguageAndFlowTypeOrTypes(this.languageId, t3); + if (!i3 || !i3.length) return this.setEngine(null, false), void this.setVoice(null, false); + let n3 = this.engineService.getDefaultEngineForLanguageAndFlowTypeOrTypes(this.languageId, t3); + const r3 = !!n3; + if (!n3) { + const e4 = this.engineService.getGenesysEngine(); + e4 && e4.getEngineSupportsLanguageAndFlowType(this.languageId, t3) && (n3 = e4); + } + if (!n3) { + const e4 = a.default.sortBy(i3, "name")[0]; + e4 && (n3 = e4); + } + this.setEngine(n3, r3); + let o2 = n3.getDefaultVoiceForLanguage(this.languageId); + const s2 = !!o2; + if (!o2) { + const e4 = n3.getVoicesForLanguage(this.languageId), t4 = a.default.sortBy(e4, "name")[0]; + t4 && (o2 = t4); + } + this.setVoice(o2, s2); + } + get hasUsableEngineSelectedForLanguage() { + const e3 = this.engineService.getItemById(this.engine.id); + return this._flexibleTtsSelectionEnabled ? !!e3 : e3 && e3.getEngineSupportsLanguage(this.languageId); + } + setEngine(e3, t3) { + super.setEngine(e3, t3), this.setVoice(null, false), this.validateParent(), this.initializeDesignTimeCalled && u.emitter.emit(u.ttsEngineChanged, this); + } + setVoice(e3, t3) { + e3 ? (this.voice.id = e3.id, this.voice.name = e3.name, this.voice.selection = t3 ? m.engineSelectionTypes.engineSelectionDefault : m.engineSelectionTypes.engineSelectionSpecific) : (this.voice.id = null, this.voice.name = null, this.voice.selection = m.engineSelectionTypes.engineSelectionNone), this.validateParent(), this.initializeDesignTimeCalled && u.emitter.emit(u.ttsEngineVoiceChanged, this); + } + updateDefaultEngineAndVoice() { + var e3; + if (this.isReadOnly) return; + const t3 = { type: d.AlertTypeEnum.info, message: "" }; + let i3; + if (this.hasDefaultEngineSelected) { + const t4 = this.engineService.getDefaultEngineForLanguageAndFlowTypeOrTypes(this.languageId, null === (e3 = this.parentFlow) || void 0 === e3 ? void 0 : e3.type); + if (t4 && t4.id !== this.engine.id) { + this.setEngine(t4, true); + const e4 = t4.getDefaultVoiceForLanguage(this.languageId); + this.setVoice(e4, !!e4), this.engineUpdatedToMatchOrg = true; + } else t4 || (this.engineService.getDefaultEngineForLanguage(this.languageId) ? (this.engineErrorMessage = (0, o.sprintf)(g.textToSpeech.defaultEngineNotSupported, this.languageId), i3 = true) : this.engineErrorMessage = (0, o.sprintf)(g.textToSpeech.defaultEngineRemoved, this.languageId)); + } + if (this.hasDefaultVoiceSelected && !t3.message && !i3) { + const e4 = this.engineService.getItemById(this.engine.id); + if (!e4) return; + const i4 = e4.getDefaultVoiceForLanguage(this.languageId); + i4 ? i4.id !== this.voice.id && (this.setVoice(i4, true), t3.message = (0, o.sprintf)(g.textToSpeech.defaultVoiceUpdated, this.languageId, i4.name)) : this.voiceErrorMessage = (0, o.sprintf)(g.textToSpeech.defaultVoiceRemoved, e4.name, this.languageId); + } + t3.message && u.emitter.emit(u.alert, t3); + } + updateDependencies() { + this.engine.id && l.registerConsumer(this, g.textToSpeech.ttsEngine, this.engine.name, this.engine.id, l.NO_VERSION, s.TtsEngine, this.parent.parentFlow), this.voice.id && l.registerConsumer(this, g.textToSpeech.ttsVoice, this.voice.name, this.voice.id, l.NO_VERSION, s.TtsVoice, this.parent.parentFlow); + } + getNoEngineSelectedErrorMessage() { + return this.parentFlow.definition.languagesRequireTts ? `${(0, o.sprintf)(g.textToSpeech.errorNoEngineSelected, this.languageId)} ${g.textToSpeech.ttsEngineRequiredByFlowTypeOnLanguages}` : (0, o.sprintf)(g.textToSpeech.errorNoEngineSelected, this.languageId); + } + validate(e3) { + if (this.engineErrorMessage = null, this.voiceErrorMessage = null, this.voiceWarningMessage = null, !this.parentFlow.languagesSupportTtsAndAsrSettings) return; + let t3; + if (this.hasEngineNoneSelection) return void (this.parentFlow.definition.languagesRequireTts && (t3 = this.getNoEngineSelectedErrorMessage(), this.engineErrorMessage = t3, e3.addError(this.parent, t3, null, null, 100))); + if (this.updateDefaultEngineAndVoice(), this.engineErrorMessage && e3.addError(this.parent, this.engineErrorMessage), this.voiceErrorMessage && e3.addError(this.parent, this.voiceErrorMessage), this.hasDefaultVoiceSelected && this.engineErrorMessage) return; + if (!this.engine.id) return t3 = this.getNoEngineSelectedErrorMessage(), this.engineErrorMessage = t3, void e3.addError(this.parent, t3); + const i3 = this.engineService.getItemById(this.engine.id); + if (!i3) return t3 = (0, o.sprintf)(g.textToSpeech.errorEngineNotFound, this.engine.name), this.engineErrorMessage = t3, void e3.addError(this.parent, t3, null, null, 100); + if (this.parentFlow.getDestinationFlowTypesThatSupportTtsAndAsrAtRuntime().find((n4) => n4 !== r2.flowTypes.flowTypeSecureCall || i3.isSecure ? i3.getEngineSupportsFlowType(n4) ? void 0 : (t3 = (0, o.sprintf)(g.textToSpeech.errorEngineFlowTypeNotSupported, this.engine.name, n4), this.engineErrorMessage = t3, e3.addError(this.parent, t3, null, null, 100), true) : (t3 = (0, o.sprintf)(g.textToSpeech.errorEngineNotSecure, this.engine.name), this.engineErrorMessage = t3, e3.addError(this.parent, t3, null, null, 100), true))) return; + if (!this._flexibleTtsSelectionEnabled && !i3.getEngineSupportsLanguage(this.languageId)) return t3 = (0, o.sprintf)(g.textToSpeech.errorLanguageNotSupportedByEngine, this.languageId), this.engineErrorMessage = t3, void e3.addError(this.parent, t3, null, null, 100); + if (!this.voice.id) return t3 = (0, o.sprintf)(g.textToSpeech.errorNoVoiceSelected, this.languageId), this.voiceErrorMessage = t3, void e3.addError(this.parent, t3); + const n3 = i3.voices[this.voice.id]; + if (!n3) return t3 = (0, o.sprintf)(g.textToSpeech.errorVoiceNotFound, this.voice.name), this.voiceErrorMessage = t3, void e3.addError(this.parent, t3); + if (n3.getVoiceSupportsLanguage(this.languageId)) ; + else if (this._flexibleTtsSelectionEnabled) { + const t4 = (0, o.sprintf)(g.textToSpeech.voiceLanguageMismatch, this.languageId); + e3.addWarning(this.parent, t4), this.voiceWarningMessage = g.textToSpeech.voiceLanguageMismatchHelp; + } else t3 = (0, o.sprintf)(g.textToSpeech.errorLanguageNotSupportedByVoice, this.languageId), this.voiceErrorMessage = t3, e3.addError(this.parent, t3); + } + } + t2.TTSDataViewModel = f; + }, 74085: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(84655)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "knowledgeBaseDocument"; + } + get displayTypeName() { + return "ArchVariableKnowledgeBaseDocument"; + } + get initialValue() { + return this._initialValue; + } + get isArchVariableKnowledgeBaseDocument() { + return true; + } + } + t2.default = r2; + }, 74142: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importDefault(i2(92140)), o = n2.__importStar(i2(74359)), a = i2(54251), s = n2.__importStar(i2(10798)), l = n2.__importDefault(i2(4648)), u = n2.__importDefault(i2(8471)); + class d extends u.default { + constructor(e3) { + super(), this._archSession = e3; + } + _checkDivisionAvailability(e3) { + return !!this._archSession.isConnected || (this.logItemWarning(e3, "Organization division information is not available when the Architect Scripting session is not connected."), false); + } + _getAreTtsEnginesAndVoicesAvailable(e3) { + return !!this._archSession.isConnected || (e3 && this.logItemWarning(e3, "Organization text to speech engine and voice information is not available when the Architect Scripting session is not connected."), false); + } + _getAllResolvedCoreDivisionViewModels() { + if (r2.default.isUndefined(this._allResolvedCoreDivisionViewModels)) { + if (!this._archSession.isConnected) return this._logErrorInternal("should not be trying to resolve core division view models when not connected."), []; + const e3 = []; + r2.default.each(a.divisionManager.items, (t3) => { + if (!t3 || t3.isInternalDivision) return; + let i3; + o.getConnectedUser() && (i3 = r2.default.find(o.getConnectedUser().divisions, (e4) => e4.id === t3.id)), e3.push(i3 || t3); + }), this._allResolvedCoreDivisionViewModels = r2.default.sortBy(e3, "name"); + } + return this._allResolvedCoreDivisionViewModels; + } + get logStr() { + if (!this._divisionViewModel) return this.logStrTypeOnly; + const e3 = []; + return this.id && this._appendLogStrId(e3, this.id), this.name && this._appendLogStrName(e3, this.name), this._appendLogStrType(e3, this.displayTypeName), this._createLogStrFromParts(e3); + } + get displayTypeName() { + return "ArchOrganizationInfo"; + } + get areDivisionsAvailable() { + return this._checkDivisionAvailability(this._infoPropGet("areDivisionsAvailable")); + } + get areTtsEnginesAndVoicesAvailable() { + return this._getAreTtsEnginesAndVoicesAvailable(this._infoPropGet("areTtsEnginesAndVoicesAvailable")); + } + getDivisionById(e3) { + if (!this._checkDivisionAvailability(this._infoMethod("getDivisionById"))) return; + this._checkItemIsValidLiteralString(this._infoParm("divisionId", "getDivisionById"), e3); + const t3 = r2.default.find(this._getAllResolvedCoreDivisionViewModels(), (t4) => e3 === t4.id); + return t3 ? this.coreFactory.createArchWrapper(t3) : void 0; + } + getDivisionByName(e3) { + if (!this._checkDivisionAvailability(this._infoMethod("getDivisionByName"))) return; + this._checkItemIsValidLiteralString(this._infoParm("divisionName", "getDivisionByName"), e3), e3 = e3.toLowerCase(); + const t3 = r2.default.find(this._getAllResolvedCoreDivisionViewModels(), (t4) => e3 === t4.lowerName); + return t3 ? this.coreFactory.createArchWrapper(t3) : void 0; + } + getHomeDivision() { + if (!this._checkDivisionAvailability(this._infoMethod("getHomeDivision"))) return; + const e3 = r2.default.find(this._getAllResolvedCoreDivisionViewModels(), (e4) => e4.isHomeDivision); + return e3 ? this.coreFactory.createArchWrapper(e3) : void 0; + } + getAllDivisions() { + if (!this._checkDivisionAvailability(this._infoMethod("getAllDivisions"))) return; + const e3 = []; + return r2.default.each(this._getAllResolvedCoreDivisionViewModels(), (t3) => { + e3.push(this.coreFactory.createArchWrapper(t3)); + }), e3; + } + get id() { + return this._archSession.isConnected && o.getOrgInfo() ? o.getOrgInfo().id : void 0; + } + get name() { + return this._archSession.isConnected && o.getOrgInfo() ? o.getOrgInfo().name : void 0; + } + get isArchOrganizationInfo() { + return true; + } + get agenticVirtualAgentAvailable() { + return this._ensureSessionIsConnected(this._infoPropGet("agenticVirtualAgentAvailable"), this._archSession), s.isFeatureAvailable(l.default.botFlowsAgenticVirtualAgentSage); + } + get virtualAgentAvailable() { + return this._ensureSessionIsConnected(this._infoPropGet("virtualAgentAvailable"), this._archSession), s.isFeatureAvailable(l.default.botFlowsVirtualAgentOffering); + } + get virtualAgentSummarizationAvailable() { + return this._ensureSessionIsConnected(this._infoPropGet("virtualAgentSummarizationAvailable"), this._archSession), s.isFeatureAvailable(l.default.botFlowsVirtualAgentSummarization) || s.isFeatureAvailable(l.default.botFlowsDigitalBotFlowsBotSummarization); + } + get botFlowsAgenticVirtualAgentOutputValuesAvailable() { + return this._ensureSessionIsConnected(this._infoPropGet("botFlowsAgenticVirtualAgentOutputValuesAvailable"), this._archSession), s.isFeatureAvailable(l.default.botFlowsAgenticVirtualAgentOutputValues); + } + get botFlowsLLMPoweredSlot() { + return this._ensureSessionIsConnected(this._infoPropGet("botFlowsLLMPoweredSlot"), this._archSession), s.isFeatureAvailable(l.default.botFlowsLLMPoweredSlot); + } + get botFlowsAnswerGeneration() { + return this._ensureSessionIsConnected(this._infoPropGet("botFlowsAnswerGeneration"), this._archSession), s.isFeatureAvailable(l.default.botFlowsAnswerGeneration); + } + get botFlowsMessagingDatePicker() { + return this._ensureSessionIsConnected(this._infoPropGet("botFlowsMessagingTimePicker"), this._archSession), s.isFeatureAvailable(l.default.botFlowsMessagingDatePicker); + } + get botFlowsEnhancedRecognitionFailureHandling() { + return this._ensureSessionIsConnected(this._infoPropGet("botFlowsEnhancedRecognitionFailureHandling"), this._archSession), s.isFeatureAvailable(l.default.botFlowsEnhancedRecognitionFailureHandling); + } + get botFlowsVirtualAgentGuide() { + return this._ensureSessionIsConnected(this._infoPropGet("botFlowsVirtualAgentGuide"), this._archSession), s.isFeatureAvailable(l.default.botFlowsVirtualAgentGuide); + } + get botFlowsBotsCallingBots() { + return this._ensureSessionIsConnected(this._infoPropGet("botFlowsBotsCallingBots"), this._archSession), s.isFeatureAvailable(l.default.botFlowsBotsCallingBots); + } + get botFlowsSupportDontKnowAnswers() { + return this._ensureSessionIsConnected(this._infoPropGet("botFlowsSupportDontKnowAnswers"), this._archSession), s.isFeatureAvailable(l.default.botFlowsSupportDontKnowAnswers); + } + get canSetTrackingIds() { + return this._getCanSetTrackingIds(this._infoPropGet("canSetTrackingIds"), this._archSession); + } + get supportsSendNotificationChatGroup() { + return this._ensureSessionIsConnected(this._infoPropGet("supportsSendNotificationChatGroup"), this._archSession), s.isFeatureAvailable(l.default.sendNotificationChatGroupFeature); + } + get defaultSttEngineSelection() { + return this._ensureSessionIsConnected(this._infoPropGet("defaultSttEngineSelection"), this._archSession), true; + } + get knowledgeSettingIsAvailable() { + return this._ensureSessionIsConnected(this._infoPropGet("knowledgeSettingIsAvailable"), this._archSession), s.isFeatureAvailable(l.default.botFlowsVirtualAgentKnowledgeV3); + } + get conversationSummaryIsAvailable() { + return this._ensureSessionIsConnected(this._infoPropGet("conversationSummaryIsAvailable"), this._archSession), s.isFeatureAvailable(l.default.botFlowsVirtualAgentCustomSummaries); + } + get orgSupportsFullFlowStubbing() { + return this._ensureSessionIsConnected(this._infoPropGet("orgSupportsFullFlowStubbing"), this._archSession), s.isFeatureAvailable(l.default.flowStubbing); + } + get orgSupportsYamlTrackingId() { + return this._ensureSessionIsConnected(this._infoPropGet("orgSupportsYamlTrackingId"), this._archSession), s.isFeatureAvailable(l.default.yamlTrackingIdFeature); + } + } + t2.default = d; + }, 74156: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.DataTableList = void 0; + const n2 = i2(31635), r2 = n2.__importDefault(i2(46400)), o = i2(15116), a = i2(80295); + class s extends o.PagedList { + constructor(e3) { + super(e3); + } + get entities() { + return this._entities; + } + set entities(e3) { + this._entities = this.reviveArray(e3, r2.default); + } + } + t2.DataTableList = s, n2.__decorate([(0, a.enumerable)(true), n2.__metadata("design:type", Array), n2.__metadata("design:paramtypes", [Array])], s.prototype, "entities", null); + }, 74168: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.getDomainVersion = t2.getDomain = t2.getDomains = t2.createDomain = void 0; + const n2 = i2(25760), r2 = i2(68040), o = i2(16926), a = i2(36019).default, s = { ignoreBadResponse: true }; + t2.createDomain = a.request("POST", "{public-api.apps}/api/v2/languageunderstanding/domains", n2, s), t2.getDomains = a.request("GET", "{public-api.apps}/api/v2/languageunderstanding/domains", r2, s), t2.getDomain = a.request("GET", "{public-api.apps}/api/v2/languageunderstanding/domains/{domainId}", n2, s), t2.getDomainVersion = a.request("GET", "{public-api.apps}/api/v2/languageunderstanding/domains/{domainId}/versions/{domainVersionId}?includeUtterances=true", o, s); + }, 74260: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(84655)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "surveyQuestionGroup"; + } + get displayTypeName() { + return "ArchVariableSurveyQuestionGroup"; + } + get initialValue() { + return this._initialValue; + } + get isArchVariableSurveyQuestionGroup() { + return true; + } + } + t2.default = r2; + }, 74267: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.BotConnectorVersionViewModel = void 0; + const n2 = i2(31635), r2 = n2.__importDefault(i2(92140)), o = i2(43212), a = n2.__importDefault(i2(56133)), s = n2.__importDefault(i2(27579)); + class l extends o.BaseConfigurationListViewModel { + constructor(e3) { + super(e3), this.fullBotNotLoaded = true, this._errorSchema = (0, s.default)(); + } + get className() { + return "BotConnectorVersionViewModal"; + } + get archInternalId() { + return this._model.archInternalId; + } + get versionId() { + return this._model.version; + } + get integrationId() { + return this._model.integrationId; + } + get botId() { + return this._model.botId; + } + get botName() { + return this._model.name; + } + get errorSchema() { + return this._errorSchema; + } + getConfiguration() { + return this._model; + } + get id() { + return this._model.id; + } + get name() { + return this._model.version; + } + get label() { + return this._model.version || ""; + } + get languages() { + return this._model.supportedLanguages; + } + get model() { + return this._model; + } + set model(e3) { + this._model = e3, this.intents = [], this._model.intents && r2.default.each(this._model.intents, (e4) => { + this.intents.push(new a.default(r2.default.clone(e4))); + }); + } + get status() { + return this._model.status || ""; + } + } + t2.BotConnectorVersionViewModel = l; + }, 74299: (e2, t2, i2) => { + "use strict"; + var n2; + Object.defineProperty(t2, "__esModule", { value: true }); + const r2 = i2(31635), o = r2.__importDefault(i2(16434)), a = i2(96618); + class s extends o.default { + constructor(e3) { + super(e3), n2.set(this, void 0), r2.__classPrivateFieldSet(this, n2, this.coreFactory.createArchWrapper(e3.emailSendSettings), "f"); + } + get _flowType() { + return a.flowTypes.flowTypeEmailSend; + } + get displayTypeName() { + return "ArchFlowEmailSend"; + } + get isArchFlowEmailSend() { + return true; + } + get emailSendSettings() { + return r2.__classPrivateFieldGet(this, n2, "f"); + } + } + n2 = /* @__PURE__ */ new WeakMap(), t2.default = s; + }, 74359: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.autoResolveBootstrapLanguageDataLoadedPromise = t2.autoResolveBootstrapDataLoadedPromise = t2.orgInfoLoaded = t2.loaded = t2.featureTogglesLoaded = t2.divisionsLoaded = t2.bootstrapLanguageDataLoaded = t2.bootstrapDataLoaded = void 0, t2.getAuthenticatedPromise = function() { + return p.promise; + }, t2.getAuthorizedPromise = T, t2.getConnectedUser = function() { + return h; + }, t2.setConnectedUser = function(e3) { + throw "not valid here"; + }, t2.isCurrentUserAuthorized = function() { + return true === f; + }, t2.isCurrentUserUnauthorized = function() { + return false === f; + }, t2.setCurrentUserAuthorized = function(e3) { + f = e3; + }, t2.getCurrentLanguage = function() { + return S; + }, t2.setCurrentLanguage = function(e3) { + S = e3; + }, t2.getRegionalLocale = function() { + return y || S; + }, t2.setRegionalLocale = function(e3) { + y = e3; + }, t2.usingRegionalLocale = function() { + return !!y; + }, t2.getOrgInfo = function() { + return m; + }, t2.getUserTokenInfo = function() { + return g; + }, t2.authenticatedUser = function(e3) { + h = e3, g = new o.UserTokenViewModel(e3.token), p.resolve(e3); + }, t2.resolveUserAsAuthorized = function() { + _.resolve(); + }, t2.finishedLoading = function() { + a.resolve(); + }, t2.setDivisionsLoaded = function() { + s.resolve(); + }, t2.isRunningInBrowser = function() { + return "undefined" != typeof window; + }, t2.resetAuthPromise = function() { + "fulfilled" === this.getAuthenticatedPromise().inspect().state && (p = r2.default.defer()), "fulfilled" === this.getAuthorizedPromise().inspect().state && (_ = r2.default.defer()); + }, t2.setOrgInfo = function(e3) { + m = e3, l.resolve(); + }, t2.resolveUserAsUnauthorized = function(e3) { + p.reject(e3), _.reject(e3); + }, t2.setFeatureTogglesLoaded = function(e3) { + u.resolve(e3); + }, t2.startupDataLoadedAndAuthorized = function() { + return n2.__awaiter(this, void 0, void 0, function* () { + yield Promise.all([t2.bootstrapLanguageDataLoaded, t2.featureTogglesLoaded, t2.divisionsLoaded, T(), t2.bootstrapDataLoaded]); + }); + }; + const n2 = i2(31635), r2 = n2.__importDefault(i2(33231)), o = i2(46447), a = r2.default.defer(), s = r2.default.defer(), l = r2.default.defer(), u = r2.default.defer(), d = r2.default.defer(), c = r2.default.defer(); + let p = r2.default.defer(), _ = r2.default.defer(), h = null, m = null, g = null, f = false; + function T() { + return _.promise; + } + t2.bootstrapDataLoaded = d.promise, t2.bootstrapLanguageDataLoaded = c.promise; + let y, S = "en-us"; + function A(e3, t3) { + return (i3) => { + try { + const n3 = i3(); + r2.default.isPromiseAlike(n3) ? n3.then((t4) => { + e3.resolve(t4); + }).catch((i4) => { + console.error(`promise failed, rejecting promise ${t3} - error: ${i4}`), e3.reject(i4); + }) : e3.resolve(n3); + } catch (i4) { + console.error(`exception caught, rejecting promise ${t3} - error: ${i4}`), e3.reject(i4); + } + }; + } + t2.divisionsLoaded = s.promise, t2.featureTogglesLoaded = u.promise, t2.loaded = a.promise, t2.orgInfoLoaded = l.promise, t2.autoResolveBootstrapDataLoadedPromise = A(d, "bootstrapDataLoaded"), t2.autoResolveBootstrapLanguageDataLoadedPromise = A(c, "bootstrapLanguageDataLoaded"); + }, 74369: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(91722)); + class r2 extends n2.default { + constructor(e3, t3, i3) { + super(e3, i3), this._value = t3; + } + get displayTypeName() { + return "ArchBaseFilterClausePropertyValue"; + } + get isArchBaseFilterClausePropertyValue() { + return true; + } + get value() { + return this._value; + } + } + t2.default = r2; + }, 74384: (e2, t2, i2) => { + "use strict"; + var n2, r2, o, a; + Object.defineProperty(t2, "__esModule", { value: true }); + const s = i2(31635), l = s.__importDefault(i2(92140)), u = i2(80295), d = i2(80295), c = s.__importDefault(i2(55015)), p = s.__importDefault(i2(95079)), _ = s.__importDefault(i2(69796)), h = s.__importDefault(i2(29463)), m = s.__importDefault(i2(17954)), g = s.__importStar(i2(75800)); + class f extends c.default { + constructor(e3) { + super(e3), (0, u.makeUnenumerable)(this, "_debug"), (0, u.makeUnenumerable)(this, "_contexts"), (0, u.makeUnenumerable)(this, "_features"), (0, u.makeUnenumerable)(this, "_functions"), (0, u.makeUnenumerable)(this, "_isDefault"); + } + get debug() { + return this._debug; + } + set debug(e3) { + this._debug = this.reviveMap(e3, p.default); + } + get contexts() { + return this._contexts; + } + set contexts(e3) { + this._contexts = e3; + } + get features() { + return this._features; + } + set features(e3) { + const t3 = (e3 = l.default.clone(e3)).textToSpeech; + delete e3.textToSpeech; + const i3 = e3.voicemail; + delete e3.voicemail; + const n3 = e3.knowledgeBase; + delete e3.knowledgeBase, this._features = this.reviveMap(e3, p.default), t3 && t3.engines && (this._features.textToSpeech = { engines: this.reviveMap(t3.engines, m.default, true) }), i3 && (this._features.voicemail = this.reviveMap(i3, p.default)), n3 && (this._features.knowledgeBase = this.reviveItem(n3, h.default)); + } + get functions() { + return this._functions; + } + set functions(e3) { + this._functions = this.reviveMap(e3, _.default, true); + } + get isDefault() { + return this._isDefault; + } + set isDefault(e3) { + this._isDefault = e3; + } + } + t2.default = f, s.__decorate([(0, d.enumerable)(true), s.__metadata("design:type", "function" == typeof (n2 = void 0 !== g && g.IFlowTypeAvailabilityContainerMap) ? n2 : Object), s.__metadata("design:paramtypes", [Object])], f.prototype, "debug", null), s.__decorate([(0, d.enumerable)(true), s.__metadata("design:type", "function" == typeof (r2 = void 0 !== g && g.IObjectMap) ? r2 : Object), s.__metadata("design:paramtypes", [Object])], f.prototype, "contexts", null), s.__decorate([(0, d.enumerable)(true), s.__metadata("design:type", "function" == typeof (o = void 0 !== g && g.ILanguageFeaturesSupportMap) ? o : Object), s.__metadata("design:paramtypes", [Object])], f.prototype, "features", null), s.__decorate([(0, d.enumerable)(true), s.__metadata("design:type", "function" == typeof (a = void 0 !== g && g.ILanguageFunctionSupportMap) ? a : Object), s.__metadata("design:paramtypes", [Object])], f.prototype, "functions", null), s.__decorate([(0, d.enumerable)(true), s.__metadata("design:type", Boolean), s.__metadata("design:paramtypes", [Boolean])], f.prototype, "isDefault", null); + }, 74385: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.range = void 0; + var n2 = i2(48051), r2 = i2(44885); + t2.range = function(e3, t3, i3) { + if (null == t3 && (t3 = e3, e3 = 0), t3 <= 0) return r2.EMPTY; + var o = t3 + e3; + return new n2.Observable(i3 ? function(t4) { + var n3 = e3; + return i3.schedule(function() { + n3 < o ? (t4.next(n3++), this.schedule()) : t4.complete(); + }); + } : function(t4) { + for (var i4 = e3; i4 < o && !t4.closed; ) t4.next(i4++); + t4.complete(); + }); + }; + }, 74400: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(81574)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "journeyApp"; + } + get name() { + } + get namespace() { + } + get version() { + } + get buildNumber() { + } + get displayTypeName() { + return "ArchValueJourneyApp"; + } + get isArchValueJourneyApp() { + return true; + } + } + t2.default = r2; + }, 74422: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = i2(30801), o = n2.__importDefault(i2(21345)); + class a extends o.default { + constructor(e3) { + super(e3), this._statements = this.coreFactory.createArchBaseValueContainer(e3.variables); + } + get _actionTypeId() { + return r2.updateWorkitemActionType; + } + get displayTypeName() { + return this._scriptingName; + } + get isArchActionUpdateWorkitem() { + return true; + } + addUpdateWorkitemStatement(e3, t3, i3) { + const n3 = this._infoParm("archDataType", "addUpdateWorkitemStatement"); + return this._checkItem(n3, !e3 || !e3.isArchDataType, "you must pass in a valid Architect data type for the statement to create"), this._checkItem(n3, !e3.isScriptCreatableForFlow(this.parentFlow), "the Architect data type " + e3.label + " is not creatable from scripting for one of the flow types '" + this._getCoreViewModel().parentFlow.destinationFlowTypes.join(",") + "'. The data type's isScriptCreatableForFlow must return true to be valid for use when creating an update data statement"), this._statements._addVariableValueAssignment(e3, t3, i3, false, {}, true); + } + get statements() { + return this._statements._createVariableValuePairArray(); + } + get updateWorkitemOutputsFailure() { + return this._coreActionViewModel.errorBindings ? this.coreFactory.createArchWrapper(this._coreActionViewModel.errorBindings) : null; + } + } + t2.default = a; + }, 74423: (e2) => { + e2.exports = { askCommon: { invalidInputReceived: "Isso n\xE3o \xE9 v\xE1lido.", noInputReceived: "N\xE3o recebi qualquer entrada." }, askForBoolean: { noInput: 'Diga "sim" se desejar continuar, caso contr\xE1rio, diga "n\xE3o".', noMatch: 'Diga "Sim" ou "N\xE3o". Deseja continuar?', question: "Deseja continuar?", noInputDigitalBot: 'Digite "Sim" se desejar continuar; caso contr\xE1rio, digite "N\xE3o".', noMatchDigitalBot: 'Digite "Sim" ou "N\xE3o". Deseja continuar?' }, askForIntent: { noInput: 'Diga uma frase curta que descreva sua consulta; por exemplo: "Verificar o saldo da minha conta"', noMatch: "Diga-me novamente o que gostaria de fazer.", question: "O que gostaria de fazer?", noInputDigitalBot: 'Digite uma breve frase que descreva sua consulta. Por exemplo, "Verificar o saldo da minha conta"' }, askForSlot: { askFor: "Solicite o %1$s", noInput: "Diga ou insira o (coloque o seu nome de slot aqui).", noInputWithSlot: "Diga ou insira o %1$s.", noMatch: "Repita o (coloque o seu nome de slot aqui).", noMatchWithSlot: "Repita o %1$s.", question: "Qual \xE9 o (coloque o seu nome de slot aqui)?", questionWithSlot: "Qual \xE9 o %1$s?", pleaseEnterSlotNameHere: "(coloque o seu nome de slot aqui)", noInputDigitalBot: "Digite o (insira o nome do slot aqui).", noInputWithSlotDigitalBot: "Digite o %1$s.", continuationPromptWithSlot: "Tenho {{Slot.%1$s}} at\xE9 o momento. Continue." }, askForNextSlot: { noInput: 'Diga "sim" se tiver outra consulta ou "n\xE3o" para encerrar a chamada.', noMatch: 'Diga "Sim" se tiver outra consulta ou "N\xE3o" para encerrar a sess\xE3o.', question: "Voc\xEA tem alguma outra d\xFAvida?", noInputDigitalBot: 'Digite "Sim" se tiver outra consulta ou "N\xE3o" para encerrar a sess\xE3o.', noMatchDigitalBot: 'Digite "Sim" se tiver outra consulta ou "N\xE3o" para encerrar a sess\xE3o.' }, askForPayment: { noInputDigitalBot: "Forne\xE7a as suas informa\xE7\xF5es de pagamento para continuar.", noMatchDigitalBot: "N\xE3o entendi a sua resposta. Tente novamente." }, askForAuthentication: { noInputDigitalBot: "Forne\xE7a as suas informa\xE7\xF5es de autentica\xE7\xE3o para continuar.", noMatchDigitalBot: "N\xE3o entendi a sua resposta. Tente novamente." }, askSurveyQuestion: { notApplicable: "N\xE3o aplic\xE1vel", surveyAnswerOptionSequence: "Pressione %1$s para '%2$s'.", surveyAnswerNotApplicableSequence: "Pressione asterisco para N\xE3o aplic\xE1vel.", surveyAnswerNotApplicableWithQuestionSequence: "%1$s. Pressione asterisco para N\xE3o aplic\xE1vel.", voiceSurveyNoInputText: "Por favor, responda \xE0 pergunta.", voiceSurveyNoMatchText: "N\xE3o entendi." }, commonModule: { exitCommonModule: "Sair do m\xF3dulo comum" }, form: { noInputDigitalBot: "Complete o formul\xE1rio para continuar.", noMatchDigitalBot: "Complete o formul\xE1rio para continuar." }, messagingTemplate: { noInputDigitalBot: "Selecione uma das op\xE7\xF5es dispon\xEDveis.", noMatchDigitalBot: "Selecione uma das op\xE7\xF5es dispon\xEDveis." }, knowledgeSettings: { knowledgeAnswerHighlightFlowProgressionDefault: "Continuar", knowledgeAnswerHighlightFullArticleDefault: "Ver artigo completo", knowledgeInitialResponseMulti: "Para me ajudar a esclarecer seu objetivo, escolha um n\xFAmero na lista a seguir:", knowledgeInitialResponseMultiRetry: "Escolha um n\xFAmero; por exemplo, '1'.\nAqui est\xE1 a lista de op\xE7\xF5es novamente:", knowledgeNoMatch: "Nenhuma delas", knowledgeConfirmation: "Esta resposta resolveu sua d\xFAvida?", knowledgeFollowup: "Espero ter respondido \xE0 sua pergunta. Voc\xEA pode fazer outras perguntas, se desejar." }, noOverlay: { intent: { intentConfirmationStr1: "Acho que voc\xEA quer", intentConfirmationStr2: "\xC9 isso?" }, youSaid: { youSaidConfirmationStr1: "Voc\xEA disse", youSaidConfirmationStr2: "\xC9 isso?", youSaidConfirmationStr1DigitalBot: "Voc\xEA digitou" }, noInput: { noInputStr1: "Diga ou insira", noInputStr1DigitalBot: "Digite o" }, noMatch: { noMatchStr1: "Forne\xE7a" }, whatIs: { whatIsQuestionStr1: "O que \xE9", whatIsQuestionStr2: "?" }, iGotContinuation: { iGotContinuationStr1: "Tenho", iGotContinuationStr2: "at\xE9 o momento. Continue." } }, defaultCallFlowOne: "Fluxo de chamadas padr\xE3o", errorHandlingAgentEscalationConfirmation: "Voc\xEA deseja falar com um assistente. \xC9 isso?", errorHandlingAgentEscalationHandover: "Aguarde um momento, vou transferi-lo para algu\xE9m.", errorHandlingErrorEventHandover: "Desculpe, ocorreu um erro. Aguarde um momento enquanto transfiro voc\xEA para algu\xE9m que possa ajudar.", errorHandlingErrorEventHandoverVoiceSurvey: "Desculpe, ocorreu um erro. Adeus.", errorHandlingRecognitionEventHandover: "Desculpe, n\xE3o estou entendendo. Aguarde um momento enquanto transfiro voc\xEA para algu\xE9m que possa ajudar.", errorHandlingRecognitionEventHandoverVoiceSurvey: "Desculpe, n\xE3o consigo entender. Adeus.", errorHandlingTTS: "Ocorreu um erro. Tente sua chamada novamente.", initialGreetingTTS: "Ol\xE1, esta \xE9 a sauda\xE7\xE3o inicial.", initialState: "Estado inicial", initialBotState: "Bot padr\xE3o", initialDigitalBotState: "Sauda\xE7\xE3o inicial", initialSurveyBotState: "Bot de pesquisa", intentConfirmation: "Acho que voc\xEA deseja %1$s, correto?", mainMenu: "Menu principal", mainMenuTTS: "Voc\xEA est\xE1 no menu principal, pressione 9 para desconectar", mainTask: "Tarefa", settingsConfirmationNoInputApology: "Desculpe, n\xE3o escutei. Por favor, diga sim ou n\xE3o.", settingsConfirmationNoInputApologyDigitalBot: 'N\xE3o recebi nenhuma resposta. Por favor, digite "Sim" ou "N\xE3o".', settingsConfirmationNoMatchApology: "Desculpe, diga sim ou n\xE3o.", settingsConfirmationNoMatchApologyDigitalBot: 'Por favor, digite "Sim" ou "N\xE3o".', settingsNoInputApology: "Desculpe, n\xE3o consegui escutar.", settingsNoInputApologyDigitalBot: "Desculpe, n\xE3o recebi nenhuma resposta.", settingsEndOfSessionMessageDigitalBot: "Voc\xEA n\xE3o respondeu, e por isso estou encerrando este chat. Por favor, volte se precisar de minha ajuda. Obrigado.", settingsNoMatchApology: "Desculpe.", settingsNoToConfirmationApology: "Enganei-me.", periodicStateName: "Estado recorrente" }; + }, 74478: function(e2, t2, i2) { + "use strict"; + var n2, r2 = this && this.__extends || (n2 = function(e3, t3) { + return n2 = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(e4, t4) { + e4.__proto__ = t4; + } || function(e4, t4) { + for (var i3 in t4) Object.prototype.hasOwnProperty.call(t4, i3) && (e4[i3] = t4[i3]); + }, n2(e3, t3); + }, function(e3, t3) { + if ("function" != typeof t3 && null !== t3) throw new TypeError("Class extends value " + String(t3) + " is not a constructor or null"); + function i3() { + this.constructor = e3; + } + n2(e3, t3), e3.prototype = null === t3 ? Object.create(t3) : (i3.prototype = t3.prototype, new i3()); + }); + Object.defineProperty(t2, "__esModule", { value: true }), t2.AnimationFrameScheduler = void 0; + var o = (function(e3) { + function t3() { + return null !== e3 && e3.apply(this, arguments) || this; + } + return r2(t3, e3), t3.prototype.flush = function(e4) { + this._active = true; + var t4 = this._scheduled; + this._scheduled = void 0; + var i3, n3 = this.actions; + e4 = e4 || n3.shift(); + do { + if (i3 = e4.execute(e4.state, e4.delay)) break; + } while ((e4 = n3[0]) && e4.id === t4 && n3.shift()); + if (this._active = false, i3) { + for (; (e4 = n3[0]) && e4.id === t4 && n3.shift(); ) e4.unsubscribe(); + throw i3; + } + }, t3; + })(i2(19533).AsyncScheduler); + t2.AnimationFrameScheduler = o; + }, 74483: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.NameIdConfigurationListViewModel = void 0; + const n2 = i2(43212); + class r2 extends n2.BaseConfigurationListViewModel { + constructor(e3) { + super(e3), this.name = e3.name, this.id = e3.id, this.description = e3.description; + } + get className() { + return "NameIdConfigurationListViewModel"; + } + get displayName() { + return this.name; + } + get label() { + return this.name; + } + } + t2.NameIdConfigurationListViewModel = r2; + }, 74535: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importDefault(i2(78432)), o = n2.__importDefault(i2(41714)), a = n2.__importDefault(i2(94225)), s = n2.__importDefault(i2(56549)), l = n2.__importDefault(i2(8471)); + class u extends l.default { + constructor(e3) { + super(), this._checkItemUndefinedOrNull(this._infoParmCtor("flowIdNameTypeObject"), e3), this._checkItemIsValidLiteralStringEnum(this._infoParmCtor("flowIdNameTypeObject.type"), e3.type, r2.default.FLOW_TYPES_ALL), this._flowIdNameTypeObject = e3; + } + get displayTypeName() { + return "ArchFlowInfoBasic"; + } + get logStr() { + if (!this._flowIdNameTypeObject) return this.logStrTypeOnly; + const e3 = []; + return this._appendLogStrFlowId(e3, this.id), this._appendLogStrName(e3, this.name), this._appendLogStrType(e3, this.displayTypeName), this._createLogStrFromParts(e3); + } + get isArchFlowInfoBasic() { + return true; + } + getFlowInfoAsync(e3) { + return n2.__awaiter(this, void 0, void 0, function* () { + this._checkItemIsValidFunction(this._infoParm("callbackFunction", "getFlowInfoAsync"), e3, true), this._checkItemIsValidLiteralString(this._infoParm("this.id", "getFlowInfoAsync"), this.id, "There is no flow identifier on this flow information object to look up"); + const t3 = this._infoParm("this.type", "getFlowInfoAsync"); + this._checkItemIsValidLiteralString(t3, this.type, r2.default.FLOW_TYPES_ALL); + const i3 = yield s.default.findItemByIdAsync(o.default.getConfigListManagerForFlowType(this, t3, this.type), this.id, "flow id"), n3 = this.coreFactory.createArchWrapper(i3); + return a.default.executeCallback(this, "getFlowInfoAsync", e3, n3); + }); + } + get id() { + return this._flowIdNameTypeObject.id; + } + get name() { + return this._flowIdNameTypeObject.name; + } + get type() { + return this._flowIdNameTypeObject.type; + } + } + t2.default = u; + }, 74613: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.flatMap = void 0; + var n2 = i2(67478); + t2.flatMap = n2.mergeMap; + }, 74617: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(83663)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "formInput"; + } + get displayTypeName() { + return "ArchValueFormInput"; + } + get isArchValueFormInput() { + return true; + } + get title() { + return this._getAssignableProperty("title"); + } + get subtitle() { + return this._getAssignableProperty("subtitle"); + } + get placeholderText() { + return this._getAssignableProperty("placeholderText"); + } + get isMultipleLine() { + return this._getAssignableProperty("isMultipleLine"); + } + get isRequired() { + return this._getAssignableProperty("isRequired"); + } + setLiteralFormInput(e3, t3, i3, n3, r3) { + this.title.setLiteralString(e3), this.isMultipleLine.setLiteralBool(t3), this.isRequired.setLiteralBool(i3), n3 && this.subtitle.setLiteralString(n3), r3 && this.placeholderText.setLiteralString(r3); + } + } + t2.default = r2; + }, 74636: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.ExpressionTypeTimeOptions = void 0; + const n2 = i2(65615); + class r2 extends n2.BaseExpressionTypeCollectionOptions { + static create(e3, t3) { + return new this(t3).invokeOptionsCallback(e3); + } + constructor(e3) { + super(e3); + } + get isExpressionTypeTimeOptions() { + return true; + } + get className() { + return "ExpressionTypeTimeOptions"; + } + } + t2.ExpressionTypeTimeOptions = r2; + }, 74705: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importDefault(i2(92140)), o = n2.__importDefault(i2(55988)); + class a extends o.default { + constructor(e3) { + super(e3), this._checkItemUndefinedOrNull(this._infoParmCtor("coreDataPairList"), e3); + } + get _globalTypeName() { + return ""; + } + get displayTypeName() { + return "ArchNamedValueList"; + } + get length() { + return this._length; + } + getNamedValueByIndex(e3) { + return this._getNamedValueByIndex(e3); + } + getNamedValueByName(e3) { + const t3 = this._infoParm("valueName", "getNamedValueByName"); + this._checkItemIsValidLiteralString(t3, e3, false); + const i3 = r2.default.find(this._coreExpressionContainerViewModel.items, function(t4) { + return e3 === t4.name; + }); + if (i3) return this.coreFactory.createArchWrapper(i3); + } + get isArchNamedValueList() { + return true; + } + } + t2.default = a; + }, 74731: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.isLoaded = a, t2.loadFlowTypeExpansions = function(e3 = {}) { + r2 = e3, s.length && (s.forEach((e4) => o(e4.unexpandedFlowTypes, e4.callback)), s.length = 0); + }, t2.expandFlowTypeMapAsync = function(e3, t3) { + a() ? o(e3, t3) : s.push({ unexpandedFlowTypes: e3, callback: t3 }); + }; + const n2 = i2(96618); + let r2; + function o(e3, t3) { + try { + const i3 = {}; + e3 && Object.entries(e3).forEach(([e4, t4]) => { + var n3; + (n3 = e4, r2[n3] ? r2[n3] : [n3]).forEach((e5) => { + i3[e5] = Object.assign(t4, { id: e5 }); + }); + }), n2.flowTypes.flowTypesAll.forEach((e4) => { + i3[e4] || (i3[e4] = { id: e4, isAvailable: false }); + }), t3(i3); + } catch (e4) { + console.error(e4); + } + } + function a() { + return !!r2; + } + const s = []; + }, 74761: (e2, t2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + }, 74797: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.ArchBaseActionConversationAttribute = void 0; + const n2 = i2(31635), r2 = n2.__importDefault(i2(94225)), o = n2.__importDefault(i2(56549)), a = i2(85415), s = n2.__importDefault(i2(21345)); + class l extends s.default { + constructor(e3) { + super(e3), e3.input && (this._input = this.coreFactory.createArchWrapper(e3.input)), e3.output && (this._output = this.coreFactory.createArchWrapper(e3.output)), e3.conversationId && (this._conversationId = this.coreFactory.createArchWrapper(e3.conversationId)); + } + get displayTypeName() { + return this._scriptingName; + } + get isArchBaseActionConversationAttribute() { + return true; + } + get conversationCustomAttributeSchemaOutputsFailure() { + return this._coreActionViewModel.errorBindings ? this.coreFactory.createArchWrapper(this._coreActionViewModel.errorBindings) : null; + } + setConversationCustomAttributeSchemaByIdAsync(e3, t3) { + return n2.__awaiter(this, void 0, void 0, function* () { + this._checkItemIsValidLiteralString(this._infoParm("conversationCustomAttributeSchemaId", "setConversationCustomAttributeSchemaByIdAsync"), e3, false), this._checkItemIsValidFunction(this._infoParm("callbackFunction", "setConversationCustomAttributeSchemaByIdAsync"), t3, true); + const i3 = yield o.default.findItemByIdAsync(a.conversationCustomAttributeSchemaManager, e3, "cca schema"); + return this.logNote("Found info for the cca schema named '" + i3.name + "' for the passed in cca schema id '" + e3 + "'. Getting cca schema details."), this._checkItem(this._infoMethod("setConversationCustomAttributeSchemaByIdAsync"), i3.disabled, "This script references a disabled schema. Update all Conversation Attributes actions (GET, CREATE, UPDATE) to use an active schema."), yield this._coreActionViewModel.setSelectedActionByViewModel(i3), yield this._updateInputOutput(), r2.default.executeCallback(this, "setConversationCustomAttributeSchemaByIdAsync", t3, this); + }); + } + setConversationCustomAttributeSchemaByNameAsync(e3, t3) { + return n2.__awaiter(this, void 0, void 0, function* () { + this._checkItemIsValidLiteralString(this._infoParm("conversationCustomAttributeSchemaName", "setConversationCustomAttributeSchemaByNameAsync"), e3, false), this._checkItemIsValidFunction(this._infoParm("callbackFunction", "setConversationCustomAttributeSchemaByNameAsync"), t3, true); + const i3 = yield o.default.findItemByValueAsync(a.conversationCustomAttributeSchemaManager, e3, "cca schema"); + this.logNote("Found partial info for the cca schema named '" + i3.name + "' for the passed in cca schema name '" + e3 + "'. Getting full cca schema details."), this._checkItem(this._infoMethod("setConversationCustomAttributeSchemaByNameAsync"), i3.disabled, "This script references a disabled schema. Update all Conversation Attributes actions (GET, CREATE, UPDATE) to use an active schema."); + const n3 = yield o.default.findItemByIdAsync(a.conversationCustomAttributeSchemaManager, i3.id, "cca schema"); + return this.logNote("Found info for the cca schema named '" + n3.name + "' for the passed in cca schema id '" + i3.id + "'. Getting cca schema details."), yield this._coreActionViewModel.setSelectedActionByViewModel(n3), yield this._updateInputOutput(), r2.default.executeCallback(this, "setConversationCustomAttributeSchemaByNameAsync", t3, this); + }); + } + _updateInputOutput() { + return n2.__awaiter(this, void 0, void 0, function* () { + this._input && (this._input = this.coreFactory.createArchWrapper(this._getCoreViewModel().input)), this._output && (this._output = this.coreFactory.createArchWrapper(this._getCoreViewModel().output)); + }); + } + get input() { + return this._input; + } + get output() { + return this._output; + } + get conversationId() { + return this._conversationId; + } + } + t2.ArchBaseActionConversationAttribute = l; + }, 74803: (e2, t2, i2) => { + const n2 = i2(45214), r2 = i2(7401); + function o(e3) { + o.baseConstructor.apply(this, arguments), this._initialize(e3); + } + n2.extend(o, "DefaultSettings"), Object.defineProperties(o.prototype, { _initialize: { value: function(e3) { + for (const t3 in e3) if (e3.hasOwnProperty(t3)) { + this[t3] = e3[t3]; + for (const e4 in this[t3]) this[t3].hasOwnProperty(e4) && (this[t3][e4] instanceof Array ? this._reviveItemArray(this[t3][e4]) : this[t3][e4] && (this[t3][e4] = this.reviveItem(this[t3][e4], r2))); + } + } }, _reviveItemArray: { value: function(e3) { + for (let t3 = 0; t3 < e3.length; t3++) e3[t3] = this.reviveItem(e3[t3], r2); + } } }), e2.exports = o; + }, 74817: (e2, t2, i2) => { + function n2() { + this.id = void 0, this.trackingId = void 0, n2.baseConstructor.apply(this, arguments); + } + i2(73649).extend(n2, "BaseClipboardManifestItemWithTrackingtId"), e2.exports = n2; + }, 74828: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.getSingleNuanceMixBotJobResults = t2.getSingleNuanceMixBotJobStatus = t2.startGetSingleNuanceMixBot = t2.getAllNuanceMixBotsJobResults = t2.getAllNuanceMixBotsJobStatus = t2.startGetAllNuanceMixBots = void 0; + const n2 = i2(84584), r2 = i2(20125), o = i2(24528), a = i2(36019).default, s = { ignoreBadResponse: true }; + t2.startGetAllNuanceMixBots = a.request("POST", "{public-api.apps}/api/v2/integrations/speech/nuance/{integrationId}/bots/jobs?onlyRegisteredBots=true", r2, s), t2.getAllNuanceMixBotsJobStatus = a.request("GET", "{public-api.apps}/api/v2/integrations/speech/nuance/{integrationId}/bots/jobs/{jobId}", r2, s), t2.getAllNuanceMixBotsJobResults = a.request("GET", "{public-api.apps}/api/v2/integrations/speech/nuance/{integrationId}/bots/jobs/{jobId}/results", o, s), t2.startGetSingleNuanceMixBot = a.request("POST", "{public-api.apps}/api/v2/integrations/speech/nuance/{integrationId}/bots/{botId}/jobs?expand=variables&expand=transferNodes&expand=channels&expand=locales", r2, s), t2.getSingleNuanceMixBotJobStatus = a.request("GET", "{public-api.apps}/api/v2/integrations/speech/nuance/{integrationId}/bots/{botId}/jobs/{jobId}", r2, s), t2.getSingleNuanceMixBotJobResults = a.request("GET", "{public-api.apps}/api/v2/integrations/speech/nuance/{integrationId}/bots/{botId}/jobs/{jobId}/results", n2, s); + }, 74871: (e2, t2, i2) => { + const n2 = i2(11475), r2 = i2(63005).default; + function o() { + o.baseConstructor.apply(this, arguments), this.facets || (this.facets = new r2({ decimalPlaces: 10 })); + } + n2.extend(o, "DecimalVariable", true), Object.defineProperties(o.prototype, { facets: { enumerable: false, get: function() { + return this._facets; + }, set: function(e3) { + this._facets = this.reviveItem(e3, r2); + } } }), e2.exports = o; + }, 74884: (e2, t2, i2) => { + "use strict"; + const n2 = i2(31635), r2 = n2.__importStar(i2(63824)), o = i2(12179), a = n2.__importDefault(i2(5730)), s = n2.__importDefault(i2(27203)), l = n2.__importDefault(i2(73198)), u = n2.__importDefault(i2(97891)), d = i2(24235), c = i2(79467), p = i2(78513), _ = i2(81516), h = i2(80428), m = i2(47957); + class g extends a.default { + constructor(e3, t3) { + super(e3.parentFlow, e3), this.editor_testing_tag = "dialByExtensionController", this.digitTimeout = null, this.numReprompts = null, this.repromptAudio = null, this.resultData = null, this._loadModel(t3); + } + static get branchInfo() { + return [s.default.fake, s.default.failure, s.default.timeout]; + } + static get managedProperties() { + return [{ label: m.collectInput.interDigitTimeout, options: c.ExpressionTypeDurationOptions.create((e3) => e3.setDefaultText(l.default.litDurationSixSeconds).setAllowFlowLevelDefault(true).setScriptingPropertyName("interDigitTimeout").setDurationStyle(r2.durationStyles.secondsAndTenthsDuration).setAsInput(true).setIninTestingField("digitTimeoutControl").setUiPropertyOrder(20).facets.setMinDur(1e3, true)), yamlOptions: g.createYamlOptions("digitTimeout", (e3) => e3.setPropertyName("interDigitTimeout")), property: "digitTimeout", type: h.expressionTypeNames.duration }, { audio: true, options: d.AudioViewModelOptions.create((e3) => e3.setUiPropertyOrder(30).setIninTestingField("audioToPlay").setLabel(m.dialExtension.audioToPlay)), property: "repromptAudio" }, { label: m.dialExtension.extensionVariable, options: _.ExpressionTypeStringOptions.create((e3) => e3.setUiPropertyOrder(10).setAsOutput().setIsOptional(true).setBlankWarningText(m.errors.noVariableSpecified)), yamlOptions: g.createYamlOptions("resultData", (e3) => e3.setPropertyName("extensionVariable").setExportOrder(20)), property: "resultData", type: h.expressionTypeNames.string }, { label: m.dialExtension.numReprompts, property: "numReprompts", type: h.expressionTypeNames.integer, options: p.ExpressionTypeIntegerOptions.create((e3) => e3.setUiPropertyOrder(40).setDefaultText("0").setIninTestingField("numRepromptsControl").facets.setMinInt(0, true)), yamlOptions: g.createYamlOptions("numReprompts", (e3) => e3.setPropertyName("repromptCount")) }]; + } + } + g.info = u.default.createActionInfo({ actionClass: g, canBeInTask: true, canBeTreeNode: true, helpTopic: o.helpTopics.actions.dialExtension, modelClass: i2(77170), name: m.dialExtension.title, scriptingName: "ArchActionDialByExtension" }), t2.A = g; + }, 74920: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = i2(31145), o = n2.__importDefault(i2(99025)), a = i2(64420), { flowTypes: s } = i2(96618), l = i2(88); + class u extends r2.NluFlowViewModel { + constructor(e3) { + super(e3), this.speechRecognition = new o.default(this), this._addToAutoManageSettings(this.speechRecognition); + } + get className() { + return "VoiceFlowViewModel"; + } + get isVoiceFlow() { + return true; + } + get type() { + return s.flowTypeVoice; + } + get wrappedYamlName() { + return "voice"; + } + getFlowConfigurationClass() { + return l; + } + get overrideWireFlowConfiguration() { + return a.getVoiceFlowConfiguration; + } + get overrideWireFlowVersionConfiguration() { + return a.getVersionVoiceflowConfiguration; + } + } + t2.default = u; + }, 74986: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = i2(17604), o = n2.__importDefault(i2(92140)), a = n2.__importDefault(i2(41510)), s = i2(80295), l = n2.__importDefault(i2(67114)), u = i2(55909), d = i2(33951), c = i2(47957); + class p extends l.default { + constructor() { + super(), this._maxValInclusive = false, this._minValInclusive = false, (0, s.makeUnenumerable)(this, "_maxVal"), (0, s.makeUnenumerable)(this, "_maxValInclusive"), (0, s.makeUnenumerable)(this, "_minVal"), (0, s.makeUnenumerable)(this, "_minValInclusive"); + } + _setFromFacets(e3) { + super._setFromFacets(e3), this._setFacetIfSet(this.setMinValInclusive, e3.minValInclusive), this._setFacetIfSet(this.setMaxValInclusive, e3.maxValInclusive); + } + _facetValidateValue(e3, t3) { + if (void 0 !== this.minVal) { + if (this.minValInclusive) { + if (e3 < this.minVal) return this._createErrorResult((0, r2.sprintf)(c.facets.valueMustBeGreaterThanOrEqualTo, e3, this.minVal)); + } else if (e3 <= this.minVal) return this._createErrorResult((0, r2.sprintf)(c.facets.valueMustBeGreaterThan, e3, this.minVal)); + } + if (void 0 !== this.maxVal) { + if (this.maxValInclusive) { + if (e3 > this.maxVal) return this._createErrorResult((0, r2.sprintf)(c.facets.valueMustBeLessThanOrEqualTo, e3, this.maxVal)); + } else if (e3 >= this.maxVal) return this._createErrorResult((0, r2.sprintf)(c.facets.valueMustBeLessThan, e3, this.maxVal)); + } + } + addDescriptionInfo(e3, t3) { + super.addDescriptionInfo(e3, t3), o.default.isActualNumber(this.minVal) && t3.push((0, r2.sprintf)(a.default.itemColonValue, c.expressionsHelp.parameters.minValue, this._getFacetValueForDisplay(this.minVal))), o.default.isActualNumber(this.maxVal) && t3.push((0, r2.sprintf)(a.default.itemColonValue, c.expressionsHelp.parameters.maxValue, this._getFacetValueForDisplay(this.maxVal))); + } + _getFacetValueForDisplay(e3) { + return e3; + } + get hasDescriptionInfo() { + return !!super.hasDescriptionInfo || !o.default.isUndefined(this.minVal) || !o.default.isUndefined(this.maxVal); + } + get className() { + return "MinMaxFacets"; + } + get isMinMaxFacets() { + return true; + } + get maxVal() { + return this._maxVal; + } + get maxValInclusive() { + return this._maxValInclusive; + } + set maxValInclusive(e3) { + this._maxValInclusive = d.ParameterValidator.expectBool(e3, () => u.ParameterInfo.createPropertySet(this.className, "maxValInclusive", "value")); + } + setMaxValInclusive(e3) { + return this.maxValInclusive = e3, this; + } + get minVal() { + return this._minVal; + } + get minValInclusive() { + return this._minValInclusive; + } + set minValInclusive(e3) { + this._minValInclusive = d.ParameterValidator.expectBool(e3, () => u.ParameterInfo.createPropertySet(this.className, "minValInclusive", "value")); + } + setMinValInclusive(e3) { + return this.minValInclusive = e3, this; + } + } + t2.default = p, n2.__decorate([(0, s.enumerable)(true), n2.__metadata("design:type", Object), n2.__metadata("design:paramtypes", [])], p.prototype, "maxVal", null), n2.__decorate([(0, s.enumerable)(true), n2.__metadata("design:type", Boolean), n2.__metadata("design:paramtypes", [Object])], p.prototype, "maxValInclusive", null), n2.__decorate([(0, s.enumerable)(true), n2.__metadata("design:type", Object), n2.__metadata("design:paramtypes", [])], p.prototype, "minVal", null), n2.__decorate([(0, s.enumerable)(true), n2.__metadata("design:type", Boolean), n2.__metadata("design:paramtypes", [Object])], p.prototype, "minValInclusive", null); + }, 74998: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = i2(99772), o = n2.__importDefault(i2(96727)), a = i2(12847); + class s extends r2.BaseBuilderWithBuilderPartsViewModel { + constructor({ owningExpression: e3, model: t3, reId: i3 }) { + super(e3, t3, void 0, i3, false); + } + get className() { + return "BuilderWithSingleBuilderPartViewModel"; + } + get isBuilderWithSingleBuilderPartViewModel() { + return true; + } + _buildExpressionGenerationFromManager(e3) { + this.builderDef.maxBuilderPartCount > 1 && a.error(`${this.builderDef.name} is mis-configured to support multiple parts: ${this.builderDef.maxBuilderPartCount}`); + const t3 = e3.getIndividualPartGenerations(); + return 1 === t3.length ? t3[0] : o.default.createEmptyStringGeneration(); + } + } + t2.default = s; + }, 75019: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.materialize = void 0; + var n2 = i2(31245), r2 = i2(65212), o = i2(17214); + t2.materialize = function() { + return r2.operate(function(e3, t3) { + e3.subscribe(o.createOperatorSubscriber(t3, function(e4) { + t3.next(n2.Notification.createNext(e4)); + }, function() { + t3.next(n2.Notification.createComplete()), t3.complete(); + }, function(e4) { + t3.next(n2.Notification.createError(e4)), t3.complete(); + })); + }); + }; + }, 75151: (e2, t2, i2) => { + const n2 = i2(13240), r2 = i2(7401), { setWrapupCodeActionType: o } = i2(30801); + function a() { + Object.defineProperties(this, { _wrapupCode: { writable: true } }), a.baseConstructor.apply(this, arguments); + } + n2.extend(a, o, true), Object.defineProperties(a.prototype, { pasteReIdOrRename: { value: function(e3) { + a._super.pasteReIdOrRename.apply(this, arguments), this.wrapupCode.pasteReIdOrRename(e3); + } }, pasteResolveOldToNewValues: { value: function(e3) { + a._super.pasteResolveOldToNewValues.apply(this, arguments), this.wrapupCode.pasteResolveOldToNewValues(e3); + } }, wrapupCode: { enumerable: true, get: function() { + return this._wrapupCode; + }, set: function(e3) { + this._wrapupCode = this.reviveItem(e3, r2); + } } }), e2.exports = a; + }, 75228: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importDefault(i2(92140)), o = n2.__importStar(i2(24032)), a = n2.__importDefault(i2(77862)), s = n2.__importDefault(i2(49416)), l = i2(12179), u = n2.__importDefault(i2(27377)), d = i2(47957), c = "intentsSettings"; + class p extends u.default { + constructor() { + super(...arguments), this.topic = o.getTopic("IntentsSettingsViewModel"); + } + get id() { + return c; + } + static get id() { + return c; + } + get className() { + return "IntentsSettingsViewModel"; + } + get showInFlowSize() { + return false; + } + getDisplayName() { + return d.intents.label; + } + get isIntentsSettingsNode() { + return true; + } + get nodeGuxIcon() { + return "fa/signs-post-regular"; + } + get helpTopic() { + return l.helpTopics.treeNodes.intentsSettings; + } + get useLabelBadge() { + return this.virtualAgentEnabled; + } + _destroy() { + super._destroy(); + } + get workbenchArchNodeName() { + return a.default.nodeIds.intents; + } + validate(e3) { + super.validate(e3); + const t3 = this.parentFlow.nluMetaData.getArchNluWithFallback(); + if (this.parentFlow.isDigitalBotFlow && r2.default.isArray(null == t3 ? void 0 : t3.intents)) { + const i3 = this.parentFlow.nluMetaData.intentsToReusableTasksMapping, n3 = !!t3.intents.find((e4) => !i3[e4.name]), r3 = !!Object.entries(i3).find(([e4, t4]) => { + const i4 = this.parentFlow.tasks.find((e5) => e5.id === t4.id); + return !i4 || i4 && !i4.isReusableTask; + }); + n3 && e3.addError(this, s.default.resolveString(d.digitalBot.intentNotMappedToTask)), r3 && e3.addError(this, s.default.resolveString(d.digitalBot.intentMappedToInvalidTask)); + } + } + } + t2.default = p; + }, 75255: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.ExpressionTypeScheduleGroupOptions = void 0; + const n2 = i2(71056); + class r2 extends n2.ExpressionTypeNetworkObjectOptions { + static create(e3, t3) { + return new this(t3).invokeOptionsCallback(e3); + } + constructor(e3) { + super(e3); + } + get className() { + return "ExpressionTypeScheduleGroupOptions"; + } + get isExpressionTypeScheduleGroupOptions() { + return true; + } + } + t2.ExpressionTypeScheduleGroupOptions = r2; + }, 75266: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.forkJoin = void 0; + var n2 = i2(48051), r2 = i2(50439), o = i2(19724), a = i2(26404), s = i2(17214), l = i2(13916), u = i2(15810); + t2.forkJoin = function() { + for (var e3 = [], t3 = 0; t3 < arguments.length; t3++) e3[t3] = arguments[t3]; + var i3 = a.popResultSelector(e3), d = r2.argsArgArrayOrObject(e3), c = d.args, p = d.keys, _ = new n2.Observable(function(e4) { + var t4 = c.length; + if (t4) for (var i4 = new Array(t4), n3 = t4, r3 = t4, a2 = function(t5) { + var a3 = false; + o.innerFrom(c[t5]).subscribe(s.createOperatorSubscriber(e4, function(e5) { + a3 || (a3 = true, r3--), i4[t5] = e5; + }, function() { + return n3--; + }, void 0, function() { + n3 && a3 || (r3 || e4.next(p ? u.createObject(p, i4) : i4), e4.complete()); + })); + }, l2 = 0; l2 < t4; l2++) a2(l2); + else e4.complete(); + }); + return i3 ? _.pipe(l.mapOneOrManyArgs(i3)) : _; + }; + }, 75342: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importDefault(i2(94225)), o = i2(97629), a = n2.__importDefault(i2(45894)); + class s extends a.default { + constructor(e3) { + super(e3, o.imageManager); + } + get _globalTypeName() { + return "image"; + } + get displayTypeName() { + return "ArchValueImage"; + } + isArchValueImage() { + return true; + } + setLiteralByImageIdAsync(e3, t3) { + return this._checkItemIsValidLiteralString(this._infoParm("imageId", "setLiteralByImageIdAsync"), e3), this._checkItemIsValidFunction(this._infoParm("callbackFunction", "setLiteralByImageIdAsync"), t3, true), this._setLiteralByIdAsync(e3).then(() => r2.default.executeCallback(this, "setLiteralByImageIdAsync", t3, this)); + } + setLiteralByImageNameAsync(e3, t3) { + return this._checkItemIsValidLiteralString(this._infoParm("imageName", "setLiteralByImageNameAsync"), e3), this._checkItemIsValidFunction(this._infoParm("callbackFunction", "setLiteralByImageNameAsync"), t3, true), this._setLiteralByValueAsync(e3).then(() => r2.default.executeCallback(this, "setLiteralByImageNameAsync", t3, this)); + } + } + t2.default = s; + }, 75374: (e2, t2, i2) => { + "use strict"; + const n2 = i2(31635), r2 = i2(17604), o = n2.__importStar(i2(1115)), a = i2(12179), s = n2.__importDefault(i2(5478)), l = n2.__importDefault(i2(97891)), u = i2(21305), d = i2(81516), c = i2(81063), p = i2(81063), _ = i2(80428), h = i2(47957); + class m extends s.default { + constructor(e3, t3) { + super(e3.parentFlow, e3), this._loadModel(t3); + } + static get managedProperties() { + return [{ label: h.encryptData.dataToEncryptLabel, options: u.ExpressionTypeJsonOptions.create((e3) => e3.setAsInput().setIninTestingField("DataToEncrypt").setAllowModeExpression(true).setAllowModeLiteral(true).setAllowNotSet(true).setAllowSecure(true).setDescriptionInfo(h.encryptData.dataToEncryptLabel, (0, r2.sprintf)(h.encryptData.dataToEncryptDescription, h.generic.branches.failure, c.getAllEncryptDecryptFailureReasons.noDataSupplied, c.getAllEncryptDecryptFailureReasons.maximumDataSizeExceeded))), property: "dataToEncrypt", type: _.expressionTypeNames.json }, { label: h.encryptData.encryptedDataOutputLabel, options: d.ExpressionTypeStringOptions.create((e3) => e3.setAsOutput().setIninTestingField("EncryptedDataOutput").setDefaultToVariable(true).setDescriptionInfo(h.encryptData.encryptedDataOutputLabel, h.encryptData.encryptedDataOutputDescription)), property: "encryptedDataOutput", yamlOptions: m.createYamlOptions("encryptedDataOutput", (e3) => e3.setPropertyName("encryptedData")), type: _.expressionTypeNames.string }]; + } + _getPossibleErrors() { + return p.getEncryptFailureReasons; + } + propertyChanged(e3) { + super.propertyChanged(e3), this.parentFlow.loaded && this.initializeDesignTimeCalled && e3 === this.dataToEncrypt && o.validateItem(this.encryptedDataOutput, true, true); + } + _initializeDesignTime() { + super._initializeDesignTime(), this.encryptedDataOutput.attachValidator((e3) => { + this.dataToEncrypt.consumesSecureData && !this.encryptedDataOutput.consumesSecureData && (e3.addError(this.encryptedDataOutput, (0, r2.sprintf)(h.securedActions.variableMustBeMadeSecure, h.encryptData.encryptedDataOutputLabel)), this.encryptedDataOutput.setParseError((0, r2.sprintf)(h.securedActions.outputMustBeSecureIfInputIsSecure, h.encryptData.encryptedDataOutputLabel, h.encryptData.dataToEncryptLabel))); + }); + } + } + m.info = l.default.createActionInfo({ actionClass: m, canBeInTask: true, helpTopic: a.helpTopics.actions.encryptData, modelClass: i2(14300), name: h.actions.encryptData, scriptingName: "ArchActionEncryptData" }), t2.A = m; + }, 75458: (e2, t2, i2) => { + const n2 = i2(13240), r2 = i2(90807); + function o() { + Object.defineProperties(this, { _errorBindings: { writable: true } }), o.baseConstructor.apply(this, arguments); + } + n2.extend(o, "BaseFailureOutputsActionModel"), Object.defineProperties(o.prototype, { errorBindings: { enumerable: true, get: function() { + return this._errorBindings; + }, set: function(e3) { + this._errorBindings = this.reviveArray(e3, r2); + } }, pasteReIdOrRename: { value: function(e3) { + o._super.pasteReIdOrRename.apply(this, arguments), this._errorBindings.forEach((t3) => t3.pasteReIdOrRename(e3)); + } }, pasteResolveOldToNewValues: { value: function(e3) { + o._super.pasteResolveOldToNewValues.apply(this, arguments), this._errorBindings.forEach((t3) => t3.pasteResolveOldToNewValues(e3)); + } } }), e2.exports = o; + }, 75544: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.expand = void 0; + var n2 = i2(65212), r2 = i2(2574); + t2.expand = function(e3, t3, i3) { + return void 0 === t3 && (t3 = 1 / 0), t3 = (t3 || 0) < 1 ? 1 / 0 : t3, n2.operate(function(n3, o) { + return r2.mergeInternals(n3, o, e3, t3, void 0, true, i3); + }); + }; + }, 75599: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.createCall = a, t2.callFlow = function(e3) { + return a(`sip:${encodeURIComponent(e3)}@localhost`); + }, t2.callDefaultVoicemailFlowForCurrentUser = function() { + return a(`${encodeURIComponent("*86")}`); + }, t2.callFlowDebug = function(e3) { + return a(`${encodeURIComponent(e3)}-debug@localhost`); + }; + const n2 = i2(31635), r2 = n2.__importDefault(i2(36019)), o = n2.__importStar(i2(69671)); + function a(e3) { + const t3 = r2.default.build(o.createCall), i3 = { phoneNumber: e3 }; + return t3.content(i3), t3.call(); + } + i2(34825), a.api = o.createCall; + }, 75601: (e2, t2, i2) => { + const n2 = i2(58597); + function r2() { + Object.defineProperties(this, { _botCompositeTag: { writable: true }, _botIntegrationId: { writable: true }, _versions: { writable: true } }), this.id = void 0, this.name = void 0, r2.baseConstructor.apply(this, arguments); + } + i2(45214).extend(r2, "BotConnector"), Object.defineProperties(r2.prototype, { archInternalId: { enumerable: true, get: function() { + return this.botCompositeTag; + } }, getContextInfo: { value: function() { + return { botId: this.id, botCompositeTag: this.botCompositeTag, integrationId: this._botIntegrationId }; + } }, setParentContextInfo: { value: function(e3) { + this._botIntegrationId = e3; + } }, botCompositeTag: { get: function() { + return this._botCompositeTag; + }, set: function(e3) { + this._botCompositeTag = e3; + } }, integrationId: { get: function() { + return this._botIntegrationId; + }, set: function(e3) { + this._botIntegrationId = e3; + } }, label: { get: function() { + return this.name; + }, set: function(e3) { + this.name = e3; + } }, versions: { enumerable: true, get: function() { + return this._versions; + }, set: function(e3) { + this._versions = this.reviveArray(e3, n2); + } } }), e2.exports = r2; + }, 75669: (e2, t2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.unknownLibrary = void 0, t2.unknownLibrary = "unknownLibrary"; + }, 75678: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(20692)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "groupCollection"; + } + get displayTypeName() { + return "ArchVariableGroupCollection"; + } + get initialValue() { + return this._initialValue; + } + get isArchVariableGroupCollection() { + return true; + } + } + t2.default = r2; + }, 75679: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.DynamicSlotTypeList = void 0; + const n2 = i2(31635), r2 = n2.__importDefault(i2(92140)), o = n2.__importDefault(i2(7401)), a = n2.__importStar(i2(10798)), s = n2.__importDefault(i2(4648)), l = i2(44703), u = n2.__importDefault(i2(49304)), d = i2(81161); + class c extends l.ExpressionContainer { + constructor(e3, t3) { + super(e3.parentFlow, e3, t3), this._initialize(); + const i3 = []; + r2.default.each(this.model, (e4) => { + i3.push(e4); + }), this.model = i3; + } + _initialize() { + r2.default.each(this.model, (e3, t3) => { + const i3 = this.createItem(e3, t3); + this.items.push(i3); + }); + } + get className() { + return "DynamicSlotTypeList"; + } + initializeDesignTime() { + super.initializeDesignTime(), this.outOfService = !a.isFeatureAvailable(s.default.botFlowsDynamicSlotTypeFeature); + } + _getConfiguration(e3, t3, i3) { + const n3 = {}; + return r2.default.each(this.items, (e4) => { + e4.name && (n3[e4.name] = e4.model); + }), n3; + } + createItem(e3, t3) { + return (e3 = "object" == typeof e3 ? new d(e3) : e3).name = t3, e3.values = new o.default(e3.values), e3.synonyms = new o.default(e3.synonyms), e3.labels = new o.default(e3.labels), new u.default(e3, this.parentFlow); + } + getItem(e3) { + return r2.default.findWhere(this.items, { name: e3 }); + } + } + t2.DynamicSlotTypeList = c; + }, 75700: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(20692)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "agentScorePairCollection"; + } + get initialValue() { + return this._initialValue; + } + get displayTypeName() { + return "ArchVariableAgentScorePairCollection"; + } + get isArchVariableAgentScorePairCollection() { + return true; + } + } + t2.default = r2; + }, 75705: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(20692)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "journeySessionCollection"; + } + get initialValue() { + return this._initialValue; + } + get displayTypeName() { + return "ArchVariableJourneySessionCollection"; + } + get isArchVariableJourneySessionCollection() { + return true; + } + } + t2.default = r2; + }, 75754: (e2, t2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.environmentEnum = void 0, t2.environmentEnum = { dev: "dev", test: "test", prod: "prod" }; + }, 75755: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.schemaManager = t2.SchemaManager = void 0; + const n2 = i2(31635), r2 = n2.__importStar(i2(1360)), o = n2.__importStar(i2(24032)), a = n2.__importStar(i2(73270)), s = n2.__importDefault(i2(47532)), l = i2(81801), u = n2.__importDefault(i2(67377)), d = i2(61730), c = i2(27862); + class p extends s.default { + get requiredAuth() { + return l.externalAuthorizations.authStrings.worktypesView; + } + get dependencyType() { + return c.Schema; + } + constructor() { + super(), this.topic = o.getTopic("SchemaManager"), this.apiCallSingle = a.getSchema, this.apiCallList = void 0, this._rawServerCache = {}, this.actionPropertyForUsageSearch = "", this.actionsForUsageSearch = [], this.className = "SchemaManager", this.defaultMatchingStyle = r2.startsWith, this.dependencyContext = null, this.securityError = true, this.suppressSearch = false, this.sortNotSupported = true, this.uiMetadataSectionName = "schema", this.useStartsWithKeywordForExactMatch = true, this.noApiCallList = true, this._initialize(); + } + _createItemViewModel(e3) { + return new d.SchemaViewModel(e3); + } + get _networkModel() { + return u.default; + } + get isSchemaManager() { + return true; + } + } + t2.SchemaManager = p, t2.schemaManager = new p(); + }, 75758: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.allSupportedDigitalChannelTypes = t2.whatsapp = t2.facebook = void 0; + const n2 = i2(47957); + t2.facebook = { displayString: n2.generic.facebook, id: "facebook" }, t2.whatsapp = { displayString: n2.generic.whatsApp, id: "whatsapp" }, t2.allSupportedDigitalChannelTypes = [t2.facebook, t2.whatsapp]; + }, 75773: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.getOrgSupportsAudio = function() { + return r2.isFeatureAvailable(o.default.orgAvailabilityMediaAudio); + }; + const n2 = i2(31635), r2 = n2.__importStar(i2(10798)), o = n2.__importDefault(i2(4648)); + }, 75800: (e2, t2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + }, 75810: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = i2(30801), o = n2.__importDefault(i2(56549)), a = n2.__importDefault(i2(94225)), s = n2.__importDefault(i2(39292)), { milestoneManager: l } = i2(37120); + class u extends s.default { + constructor(e3) { + super(e3); + } + get _actionTypeId() { + return r2.addFlowMilestoneActionType; + } + get displayTypeName() { + return this._scriptingName; + } + get isArchActionAddFlowMilestone() { + return true; + } + get flowMilestoneId() { + return this._getCoreViewModel().milestoneId; + } + get flowMilestoneName() { + return this._getCoreViewModel().milestoneName; + } + setFlowMilestoneByIdAsync(e3, t3) { + return this._checkItemIsValidLiteralString(this._infoParm("flowMilestoneId", "setFlowMilestoneByIdAsync"), e3, false), this._checkItemIsValidFunction(this._infoParm("callbackFunction", "setFlowMilestoneByIdAsync"), t3, true), o.default.findItemByIdAsync(l, e3, "flowMilestoneId").then(function(i3) { + return this.logNote("found the flow milestone named '" + i3.name + "' for the flow milestone ID of '" + e3 + "'"), this._coreActionViewModel.milestone.setValue(i3), a.default.executeCallback(this, "setFlowMilestoneByIdAsync", t3, this); + }.bind(this)); + } + setFlowMilestoneByNameAsync(e3, t3) { + return this._checkItemIsValidLiteralString(this._infoParm("flowMilestoneName", "setFlowMilestoneByNameAsync"), e3), this._checkItemIsValidFunction(this._infoParm("callbackFunction", "setFlowMilestoneByNameAsync"), t3, true), o.default.findItemByValueAsync(l, e3, "flow milestone", "name", "name").then(function(i3) { + return this.logNote(`Found info for the flow milestone named '${i3.name}' for the passed flow milestone name of '${e3}'.`), this._coreActionViewModel.milestone.setValue(i3), a.default.executeCallback(this, "setFlowMilestoneByNameAsync", t3, this); + }.bind(this)); + } + } + t2.default = u; + }, 75845: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(84655)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "journeySession"; + } + get initialValue() { + return this._initialValue; + } + get displayTypeName() { + return "ArchVariableJourneySession"; + } + get isArchVariableJourneySession() { + return true; + } + } + t2.default = r2; + }, 75849: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.ExpressionTypeFormInputOptions = void 0; + const n2 = i2(65615); + class r2 extends n2.BaseExpressionTypeCollectionOptions { + static create(e3, t3) { + return new this(t3).invokeOptionsCallback(e3); + } + constructor(e3) { + super(e3); + } + get className() { + return "ExpressionTypeFormInputOptions"; + } + get isExpressionTypeFormInputOptions() { + return true; + } + } + t2.ExpressionTypeFormInputOptions = r2; + }, 75983: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importDefault(i2(92140)), o = n2.__importDefault(i2(78432)), a = n2.__importDefault(i2(56549)), s = n2.__importDefault(i2(94225)), l = i2(69078), u = i2(67801), d = i2(18894), c = n2.__importDefault(i2(66978)), p = n2.__importDefault(i2(67336)), _ = i2(50474); + class h extends p.default { + constructor(e3) { + super(e3), this._coreKnowledgeSettingsViewModel = e3; + } + get displayTypeName() { + return "ArchSettingsNluKnowledge"; + } + get isArchSettingsNluKnowledge() { + return true; + } + get logStr() { + if (!this._coreKnowledgeSettingsViewModel) return this.logStrTypeOnly; + const e3 = []; + return this._appendLogStrType(e3, this.displayTypeName), this._createLogStrFromParts(e3); + } + get responseBias() { + return this.coreFactory.createArchWrapper(this._coreKnowledgeSettingsViewModel.responseBias); + } + get knowledgeBaseName() { + return this._getCoreViewModel().knowledgeBaseName; + } + get knowledgeBaseId() { + return this._getCoreViewModel().knowledgeBaseId; + } + get knowledgeSettingName() { + return this._getCoreViewModel().knowledgeSettingName; + } + get knowledgeSettingId() { + return this._getCoreViewModel().knowledgeSettingId; + } + get welcomeArticleName() { + return this._getCoreViewModel().knowledgeBaseWelcomeDocumentName; + } + get welcomeArticleId() { + return this._getCoreViewModel().knowledgeBaseWelcomeDocumentId; + } + get knowledgeConfirmation() { + return this.coreFactory.createArchWrapper(this._coreKnowledgeSettingsViewModel.knowledgeConfirmation); + } + get knowledgeInitialResponseFollowup() { + return this.coreFactory.createArchWrapper(this._coreKnowledgeSettingsViewModel.knowledgeInitialResponseFollowup); + } + get knowledgePathMode() { + return this.coreFactory.createArchWrapper(this._coreKnowledgeSettingsViewModel.knowledgePathMode); + } + setKnowledgePathModeStatement() { + this.knowledgePathMode.setLiteralString(o.default.KNOWLEDGE_PATH_MODES.statement); + } + setKnowledgePathModeTask() { + this.knowledgePathMode.setLiteralString(o.default.KNOWLEDGE_PATH_MODES.task); + } + get knowledgeAnswerContentType() { + return this.coreFactory.createArchWrapper(this._coreKnowledgeSettingsViewModel.knowledgeAnswerContentType); + } + setKnowledgeAnswerContentTypeStandard() { + this.knowledgeAnswerContentType.setLiteralString(o.default.KNOWLEDGE_ANSWER_CONTENT_TYPES.standard); + } + setKnowledgeAnswerContentTypeHighlight() { + this.knowledgeAnswerContentType.setLiteralString(o.default.KNOWLEDGE_ANSWER_CONTENT_TYPES.highlight); + } + setKnowledgeAnswerContentTypeGenerative() { + this.knowledgeAnswerContentType.setLiteralString(o.default.KNOWLEDGE_ANSWER_CONTENT_TYPES.generative); + } + get knowledgeSettingsMode() { + return this.coreFactory.createArchWrapper(this._coreKnowledgeSettingsViewModel.knowledgeSettingsMode); + } + setKnowledgeSettingsModeStandard() { + this.knowledgeSettingsMode.setLiteralString(o.default.KNOWLEDGE_SETTINGS_MODES.standard); + } + setKnowledgeSettingsModeCustom() { + this.knowledgeSettingsMode.setLiteralString(o.default.KNOWLEDGE_SETTINGS_MODES.custom); + } + get knowledgeInitialResponseMulti() { + return this.coreFactory.createArchWrapper(this._coreKnowledgeSettingsViewModel.knowledgeInitialResponseMulti); + } + get knowledgeInitialResponseMultiRetry() { + return this.coreFactory.createArchWrapper(this._coreKnowledgeSettingsViewModel.knowledgeInitialResponseMultiRetry); + } + get knowledgeInitialResponseSingle() { + return this.coreFactory.createArchWrapper(this._coreKnowledgeSettingsViewModel.knowledgeInitialResponseSingle); + } + get knowledgeNoMatch() { + return this.coreFactory.createArchWrapper(this._coreKnowledgeSettingsViewModel.knowledgeNoMatch); + } + get maxNumOfAnswersReturned() { + return this.coreFactory.createArchWrapper(this._coreKnowledgeSettingsViewModel.maxNumOfAnswersReturned); + } + get sendKnowledgeFeedback() { + return this.coreFactory.createArchWrapper(this._coreKnowledgeSettingsViewModel.sendKnowledgeFeedback); + } + get knowledgeAnswerHighlight() { + return this.coreFactory.createArchWrapper(this._coreKnowledgeSettingsViewModel.knowledgeAnswerHighlight); + } + get knowledgeMultiArticleSource() { + return this.coreFactory.createArchWrapper(this._coreKnowledgeSettingsViewModel.knowledgeMultiArticleSource); + } + get knowledgeContextSearch() { + return this.coreFactory.createArchWrapper(this._coreKnowledgeSettingsViewModel.knowledgeContextSearch); + } + get knowledgeVersion() { + return this.coreFactory.createArchWrapper(this._coreKnowledgeSettingsViewModel.knowledgeVersion); + } + get knowledgeAnswerHighlightFullArticle() { + return this.coreFactory.createArchWrapper(this._coreKnowledgeSettingsViewModel.knowledgeAnswerHighlightFullArticle); + } + get knowledgeAnswerHighlightFlowProgression() { + return this.coreFactory.createArchWrapper(this._coreKnowledgeSettingsViewModel.knowledgeAnswerHighlightFlowProgression); + } + _setKnowledgeBaseByIdAsync(e3, t3, i3) { + this._checkItemIsValidLiteralString(this._infoParm("knowledgeBaseId", e3), t3, false), this._checkItemIsValidFunction(this._infoParm("callbackFunction", e3), i3, true); + const n3 = this._coreKnowledgeSettingsViewModel.getAdditionalKnowledgeParams(); + return a.default.findItemByIdAsync(u.knowledgeBaseManager, t3, "knowledgeBaseId", n3).then((n4) => (this.logNote(`found the knowledge base named '${n4.name}' for the knowledge base ID of '${t3}'`), this._coreKnowledgeSettingsViewModel.knowledge.setValue(n4), s.default.executeCallback(this, e3, i3, this))); + } + _setKnowledgeSettingByIdAsync(e3, t3, i3) { + return this._checkItemIsValidLiteralString(this._infoParm("knowledgeSettingId", e3), t3, false), this._checkItemIsValidFunction(this._infoParm("callbackFunction", e3), i3, true), a.default.findItemByIdAsync(d.knowledgeSettingManager, t3, "knowledgeSettingId").then((n3) => (this.logNote(`found the knowledge setting named '${n3.name}' for the knowledge setting ID of '${t3}'`), this._coreKnowledgeSettingsViewModel.knowledge_v3.setValue(n3), s.default.executeCallback(this, e3, i3, this))); + } + setKnowledgeBaseByIdAsync(e3, t3) { + return this._setKnowledgeBaseByIdAsync("setKnowledgeBaseByIdAsync", e3, t3); + } + setKnowledgeBaseByNameAsync(e3, t3) { + return this._checkItemIsValidLiteralString(this._infoParm("knowledgeBaseName", "setKnowledgeBaseByNameAsync"), e3, false), this._checkItemIsValidFunction(this._infoParm("callbackFunction", "setKnowledgeBaseByNameAsync"), t3, true), a.default.findItemByValueAsync(u.knowledgeBaseManager, e3, "knowledge base", "name", "name").then((i3) => (this.logNote(`Found partial info for the knowledge base named '${i3.name}' for the passed knowledge base name of '${e3}'. Getting full knowledge base details.`), c.default.addPromise(this._setKnowledgeBaseByIdAsync("setKnowledgeBaseByNameAsync", i3.id, t3), "setKnowledgeBaseByNameAsync"))); + } + setKnowledgeSettingByIdAsync(e3, t3) { + return this._setKnowledgeSettingByIdAsync("setKnowledgeSettingByIdAsync", e3, t3); + } + setKnowledgeSettingByNameAsync(e3, t3) { + return this._checkItemIsValidLiteralString(this._infoParm("knowledgeSettingName", "setKnowledgeSettingByNameAsync"), e3, false), this._checkItemIsValidFunction(this._infoParm("callbackFunction", "setKnowledgeSettingByNameAsync"), t3, true), a.default.findItemByValueAsync(d.knowledgeSettingManager, e3, "knowledge setting", "name", "name").then((i3) => (this.logNote(`Found partial info for the knowledge setting named '${i3.name}' for the passed knowledge setting name of '${e3}'. Getting full knowledge setting details.`), c.default.addPromise(this._setKnowledgeSettingByIdAsync("setKnowledgeSettingByNameAsync", i3.id, t3), "setKnowledgeSettingByNameAsync"))); + } + _setWelcomeArticleByIdAsync(e3, t3, i3) { + return this._checkItemIsValidLiteralString(this._infoParm("knowledgeBaseDocumentId", e3), t3, false), this._checkItemIsValidFunction(this._infoParm("callbackFunction", e3), i3, true), this.knowledgeBaseId || this.logErrorAndThrow("a knowledge base must be set on this action before the welcome article document can be set"), a.default.findItemByIdAsync(l.knowledgeBaseDocumentManager, t3, "knowledgeBaseDocumentId", { knowledgeId: this.knowledgeBaseId }).then((n3) => (this.logNote(`found the knowledge base document named '${n3.name}' for the knowledge base document identifier of '${t3}'`), n3.knowledgeBase.id !== this.knowledgeBaseId && this.logErrorAndThrow(`cannot set welcome article '${n3.knowledgeBase.id}' because the document does not belong to the knowledge base with the id '${this.knowledgeBaseId}'`), this._coreKnowledgeSettingsViewModel.welcomeArticle.setValue(n3), s.default.executeCallback(this, e3, i3, this))); + } + setWelcomeArticleByIdAsync(e3, t3) { + return this._setWelcomeArticleByIdAsync("setWelcomeArticleByIdAsync", e3, t3); + } + setWelcomeArticleByNameAsync(e3, t3) { + return this._checkItemIsValidLiteralString(this._infoParm("knowledgeBaseDocumentName", "setWelcomeArticleByNameAsync"), e3, false), this._checkItemIsValidFunction(this._infoParm("callbackFunction", "setWelcomeArticleByNameAsync"), t3, true), this.knowledgeBaseId || this.logErrorAndThrow("a knowledge base must be set on this action before the welcome article document can be set"), a.default.findItemByValueAsync(l.knowledgeBaseDocumentManager, e3, "knowledge base document", "name", "name", void 0, { knowledgeId: this.knowledgeBaseId }).then((i3) => (this.logNote(`Found partial info for the knowledge base document named '${i3.name}' for the passed knowledge base document name of '${e3}'. Getting full knowledge base document details.`), c.default.addPromise(this._setWelcomeArticleByIdAsync("setWelcomeArticleByNameAsync", i3.id, t3), "setWelcomeArticleByNameAsync"))); + } + get knowledgeTargetTask() { + if (r2.default.isUndefined(this._targetArchTask) && (this._targetArchTask = this._findTaskById(this._coreKnowledgeSettingsViewModel.knowledgeFollowupTaskId)), this._targetArchTask) return this._targetArchTask; + } + set knowledgeTargetTask(e3) { + const t3 = this._infoPropSet("archTaskTarget", "knowledgeTargetTask"); + if (this._checkItem(t3, "task" !== this.knowledgePathMode.valueText, "the knowledgePathMode must be set to 'task' to set the task."), !e3) return this._targetArchTask = null, this.logNote("setting the knowledge task to null"), void this._coreKnowledgeSettingsViewModel.knowledgeFollowupTask.setReference(null); + this._checkItem(t3, !e3 || !e3.isArchTask, "you cannot set the knowledge task to an object that is not an Architect task"); + const i3 = this._coreKnowledgeSettingsViewModel.knowledgeFollowupTask.getInvalidReferenceReason(e3.coreTaskViewModel); + this._checkItem(this._infoPropSet("archTaskTarget", "knowledgeTargetTask"), !(0, _.isNullOrUndefined)(i3), `targetTask is not valid as the knowledge task, reason: ${i3}`), this._targetArchTask = e3, this.logNote("setting the knowledge task to " + e3.logStr), this._coreKnowledgeSettingsViewModel.knowledgeFollowupTask.setReference(e3.coreTaskViewModel); + } + get knowledgeCustomTask() { + if (r2.default.isUndefined(this._targetCustomTask) && (this._targetCustomTask = this._findTaskById(this._coreKnowledgeSettingsViewModel.knowledgeCustomHandlerTaskId)), this._targetCustomTask) return this._targetCustomTask; + } + set knowledgeCustomTask(e3) { + const t3 = this._infoPropSet("archTaskTarget", "knowledgeCustomTask"); + if (this._checkItem(t3, "custom" !== this.knowledgeSettingsMode.valueText, "the knowledgeSettingsMode must be set to 'custom' to set the task."), !e3) return this._targetCustomTask = null, this.logNote("setting the knowledge custom task to null"), void this._coreKnowledgeSettingsViewModel.knowledgeCustomHandlerTask.setReference(null); + this._checkItem(t3, !e3 || !e3.isArchTask, "you cannot set the knowledge custom task to an object that is not an Architect task"); + const i3 = this._coreKnowledgeSettingsViewModel.knowledgeCustomHandlerTask.getInvalidReferenceReason(e3.coreTaskViewModel); + this._checkItem(this._infoPropSet("archTaskTarget", "knowledgeCustomTask"), !(0, _.isNullOrUndefined)(i3), `targetTask is not valid as the knowledge custom task, reason: ${i3}`), this._targetCustomTask = e3, this.logNote("setting the knowledge custom task to " + e3.logStr), this._coreKnowledgeSettingsViewModel.knowledgeCustomHandlerTask.setReference(e3.coreTaskViewModel); + } + _findTaskById(e3) { + const t3 = this._coreKnowledgeSettingsViewModel.parentFlow; + if (t3 && r2.default.isArray(t3.tasks) && t3.tasks.length) { + const i3 = t3.tasks, n3 = r2.default.findWhere(i3, { id: e3 }); + if (n3) return this.coreFactory.createArchWrapper(n3); + } + return null; + } + } + t2.default = h; + }, 75992: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(20692)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "responseAssetCollection"; + } + get displayTypeName() { + return "ArchVariableResponseAssetCollection"; + } + get initialValue() { + return this._initialValue; + } + get isArchVariableResponseAssetCollection() { + return true; + } + } + t2.default = r2; + }, 76035: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.distinctUntilKeyChanged = void 0; + var n2 = i2(22044); + t2.distinctUntilKeyChanged = function(e3, t3) { + return n2.distinctUntilChanged(function(i3, n3) { + return t3 ? t3(i3[e3], n3[e3]) : i3[e3] === n3[e3]; + }); + }; + }, 76063: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.default = function(e3, t3) { + t3 || (t3 = e3); + const i3 = new n2(); + i3.variables = [], i3.defaultSettings = new o(), i3.defaultLanguage = e3, i3.flowMetaData = new a({ flowDocumentVersion: "1.0", minimumServerVersion: "1.0", ttsDataVersion: "1.0", features: [] }), i3.flowSequenceItemList = []; + const l = new r2(); + return l.name = s(t3).initialSurveyBotState, l.variables = [], l.actionList = [], i3.flowSequenceItemList = [l], i3.initialSequence = l.id, i3; + }; + const n2 = i2(19098), r2 = i2(69674), o = i2(74803), a = i2(89266), s = i2(21733); + }, 76075: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.mergeMapTo = void 0; + var n2 = i2(67478), r2 = i2(10281); + t2.mergeMapTo = function(e3, t3, i3) { + return void 0 === i3 && (i3 = 1 / 0), r2.isFunction(t3) ? n2.mergeMap(function() { + return e3; + }, t3, i3) : ("number" == typeof t3 && (i3 = t3), n2.mergeMap(function() { + return e3; + }, i3)); + }; + }, 76117: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importDefault(i2(54882)), o = n2.__importDefault(i2(64584)), a = n2.__importDefault(i2(43693)); + class s extends r2.default { + constructor(e3, t3, i3, n3, r3) { + super(e3, t3, i3, n3, r3), Object.defineProperties(this, { _builderPartsManager: { value: new a.default({ builderViewModel: e3, containerPartViewModel: this, owningExpression: t3, parentModel: i3, isManagingPartContainers: false }), enumerable: false }, _criteria: { value: i3 && i3.criteria ? o.default.createFromJsonObject(i3.criteria) : o.default.NO_CRITERIA, writable: false, enumerable: true } }), i3.criteria = this._criteria.json; + } + get isContainerPart() { + return true; + } + get hasMaxNumOfBuilderPartsConfigured() { + return this.builderPartsManager.hasMaxNumOfBuilderPartsConfigured; + } + get containerDisplayString() { + throw `classes inheriting from ${this.className} should override the containerDisplayString property.`; + } + get isBaseBuilderPartContainerViewModel() { + return true; + } + _addClipboardDependencies(e3) { + super._addClipboardDependencies(e3), this._builderPartsManager.addClipboardDependencies(e3); + } + _initializeDesignTime() { + super._initializeDesignTime(), this._builderPartsManager.initializeDesignTime(); + } + getInternalExpressions() { + return this._builderPartsManager.getInternalExpressions(); + } + _processOutOfService(e3) { + super._processOutOfService(e3), this._builderPartsManager.setPartsOutOfServiceValue(e3); + } + _replaceUsages(e3, t3, i3) { + super._replaceUsages(e3, t3, i3), this._builderPartsManager.replaceUsages(e3, t3, i3); + } + get className() { + return "BaseBuilderPartContainerViewModel"; + } + get criteria() { + return this._criteria; + } + get criteriaLanguageTag() { + var e3; + return null === (e3 = this.criteria) || void 0 === e3 ? void 0 : e3.languageTag; + } + get criteriaOutputMode() { + var e3; + return null === (e3 = this.criteria) || void 0 === e3 ? void 0 : e3.outputMode; + } + _getCriteriaGeneration() { + return this._criteria.getGeneration(this); + } + get sortValue() { + return this.criteria.sortValue; + } + _preValidateConfigureResultsOrganizer(e3) { + super._preValidateConfigureResultsOrganizer(e3), e3.setContextBuilderPartContainer(this); + } + _postValidateClearResultsOrganizer(e3) { + super._postValidateClearResultsOrganizer(e3), e3.clearContextBuilderPartContainer(); + } + _buildExpressionGeneration() { + const e3 = this._getCriteriaGeneration(), t3 = this.builderPartsManager.getIndividualPartGenerations(); + let i3; + return 1 !== t3.length || this.builderPartDef.generators.wantContainerPartsGeneratorForSingleton ? (i3 = this.builderPartDef.generators.containerPartsGenerator.createGeneration(), t3.forEach((e4) => { + i3.addGenerationToBucket(e4); + })) : i3 = t3[0], e3.addGenerationToBucket(i3, "true"), e3; + } + _validateContainerOnly(e3, t3) { + return true; + } + _validatePart(e3, t3) { + let i3 = super._validatePart(e3, t3); + try { + e3.setContextIsContainerRelated(), this._validateContainerOnly(e3, t3) || (i3 = false); + } finally { + e3.clearContextIsContainerRelated(); + } + return this._builderPartsManager.validateBuilderObject(e3, t3) || (i3 = false), i3; + } + get builderParts() { + return this._builderPartsManager.parts; + } + get builderPartsManager() { + return this._builderPartsManager; + } + _destroy() { + this.builderPartsManager.destroy(), this.criteria.destroy(), super._destroy(); + } + get partAndPartsOutOfService() { + return this.outOfService; + } + set partAndPartsOutOfService(e3) { + this.outOfService = e3; + } + getExpressionDetails(e3) { + if (!this.isDestroyed) return this.builderPartsManager.getExpressionDetails(e3); + console.error("Unable to return expression details on destroyed builder part container."); + } + getExpressionDetailParts(e3) { + return this.builderPartsManager.getExpressionDetailParts(e3); + } + } + t2.default = s; + }, 76122: (e2, t2, i2) => { + const n2 = i2(75458), { clearUtilizationLabelActionType: r2 } = i2(30801); + function o() { + o.baseConstructor.apply(this, arguments); + } + n2.extend(o, r2, true), e2.exports = o; + }, 76123: (e2, t2, i2) => { + var n2; + !(function() { + var r2 = { ar: { y: function(e3) { + return 1 === e3 ? "\u0633\u0646\u0629" : "\u0633\u0646\u0648\u0627\u062A"; + }, mo: function(e3) { + return 1 === e3 ? "\u0634\u0647\u0631" : "\u0623\u0634\u0647\u0631"; + }, w: function(e3) { + return 1 === e3 ? "\u0623\u0633\u0628\u0648\u0639" : "\u0623\u0633\u0627\u0628\u064A\u0639"; + }, d: function(e3) { + return 1 === e3 ? "\u064A\u0648\u0645" : "\u0623\u064A\u0627\u0645"; + }, h: function(e3) { + return 1 === e3 ? "\u0633\u0627\u0639\u0629" : "\u0633\u0627\u0639\u0627\u062A"; + }, m: function(e3) { + return 1 === e3 ? "\u062F\u0642\u064A\u0642\u0629" : "\u062F\u0642\u0627\u0626\u0642"; + }, s: function(e3) { + return 1 === e3 ? "\u062B\u0627\u0646\u064A\u0629" : "\u062B\u0648\u0627\u0646\u064A"; + }, ms: function(e3) { + return 1 === e3 ? "\u062C\u0632\u0621 \u0645\u0646 \u0627\u0644\u062B\u0627\u0646\u064A\u0629" : "\u0623\u062C\u0632\u0627\u0621 \u0645\u0646 \u0627\u0644\u062B\u0627\u0646\u064A\u0629"; + }, decimal: "," }, bg: { y: function(e3) { + return ["\u0433\u043E\u0434\u0438\u043D\u0438", "\u0433\u043E\u0434\u0438\u043D\u0430", "\u0433\u043E\u0434\u0438\u043D\u0438"][d(e3)]; + }, mo: function(e3) { + return ["\u043C\u0435\u0441\u0435\u0446\u0430", "\u043C\u0435\u0441\u0435\u0446", "\u043C\u0435\u0441\u0435\u0446\u0430"][d(e3)]; + }, w: function(e3) { + return ["\u0441\u0435\u0434\u043C\u0438\u0446\u0438", "\u0441\u0435\u0434\u043C\u0438\u0446\u0430", "\u0441\u0435\u0434\u043C\u0438\u0446\u0438"][d(e3)]; + }, d: function(e3) { + return ["\u0434\u043D\u0438", "\u0434\u0435\u043D", "\u0434\u043D\u0438"][d(e3)]; + }, h: function(e3) { + return ["\u0447\u0430\u0441\u0430", "\u0447\u0430\u0441", "\u0447\u0430\u0441\u0430"][d(e3)]; + }, m: function(e3) { + return ["\u043C\u0438\u043D\u0443\u0442\u0438", "\u043C\u0438\u043D\u0443\u0442\u0430", "\u043C\u0438\u043D\u0443\u0442\u0438"][d(e3)]; + }, s: function(e3) { + return ["\u0441\u0435\u043A\u0443\u043D\u0434\u0438", "\u0441\u0435\u043A\u0443\u043D\u0434\u0430", "\u0441\u0435\u043A\u0443\u043D\u0434\u0438"][d(e3)]; + }, ms: function(e3) { + return ["\u043C\u0438\u043B\u0438\u0441\u0435\u043A\u0443\u043D\u0434\u0438", "\u043C\u0438\u043B\u0438\u0441\u0435\u043A\u0443\u043D\u0434\u0430", "\u043C\u0438\u043B\u0438\u0441\u0435\u043A\u0443\u043D\u0434\u0438"][d(e3)]; + }, decimal: "," }, ca: { y: function(e3) { + return "any" + (1 === e3 ? "" : "s"); + }, mo: function(e3) { + return "mes" + (1 === e3 ? "" : "os"); + }, w: function(e3) { + return "setman" + (1 === e3 ? "a" : "es"); + }, d: function(e3) { + return "di" + (1 === e3 ? "a" : "es"); + }, h: function(e3) { + return "hor" + (1 === e3 ? "a" : "es"); + }, m: function(e3) { + return "minut" + (1 === e3 ? "" : "s"); + }, s: function(e3) { + return "segon" + (1 === e3 ? "" : "s"); + }, ms: function(e3) { + return "milisegon" + (1 === e3 ? "" : "s"); + }, decimal: "," }, cs: { y: function(e3) { + return ["rok", "roku", "roky", "let"][c(e3)]; + }, mo: function(e3) { + return ["m\u011Bs\xEDc", "m\u011Bs\xEDce", "m\u011Bs\xEDce", "m\u011Bs\xEDc\u016F"][c(e3)]; + }, w: function(e3) { + return ["t\xFDden", "t\xFDdne", "t\xFDdny", "t\xFDdn\u016F"][c(e3)]; + }, d: function(e3) { + return ["den", "dne", "dny", "dn\xED"][c(e3)]; + }, h: function(e3) { + return ["hodina", "hodiny", "hodiny", "hodin"][c(e3)]; + }, m: function(e3) { + return ["minuta", "minuty", "minuty", "minut"][c(e3)]; + }, s: function(e3) { + return ["sekunda", "sekundy", "sekundy", "sekund"][c(e3)]; + }, ms: function(e3) { + return ["milisekunda", "milisekundy", "milisekundy", "milisekund"][c(e3)]; + }, decimal: "," }, da: { y: "\xE5r", mo: function(e3) { + return "m\xE5ned" + (1 === e3 ? "" : "er"); + }, w: function(e3) { + return "uge" + (1 === e3 ? "" : "r"); + }, d: function(e3) { + return "dag" + (1 === e3 ? "" : "e"); + }, h: function(e3) { + return "time" + (1 === e3 ? "" : "r"); + }, m: function(e3) { + return "minut" + (1 === e3 ? "" : "ter"); + }, s: function(e3) { + return "sekund" + (1 === e3 ? "" : "er"); + }, ms: function(e3) { + return "millisekund" + (1 === e3 ? "" : "er"); + }, decimal: "," }, de: { y: function(e3) { + return "Jahr" + (1 === e3 ? "" : "e"); + }, mo: function(e3) { + return "Monat" + (1 === e3 ? "" : "e"); + }, w: function(e3) { + return "Woche" + (1 === e3 ? "" : "n"); + }, d: function(e3) { + return "Tag" + (1 === e3 ? "" : "e"); + }, h: function(e3) { + return "Stunde" + (1 === e3 ? "" : "n"); + }, m: function(e3) { + return "Minute" + (1 === e3 ? "" : "n"); + }, s: function(e3) { + return "Sekunde" + (1 === e3 ? "" : "n"); + }, ms: function(e3) { + return "Millisekunde" + (1 === e3 ? "" : "n"); + }, decimal: "," }, en: { y: function(e3) { + return "year" + (1 === e3 ? "" : "s"); + }, mo: function(e3) { + return "month" + (1 === e3 ? "" : "s"); + }, w: function(e3) { + return "week" + (1 === e3 ? "" : "s"); + }, d: function(e3) { + return "day" + (1 === e3 ? "" : "s"); + }, h: function(e3) { + return "hour" + (1 === e3 ? "" : "s"); + }, m: function(e3) { + return "minute" + (1 === e3 ? "" : "s"); + }, s: function(e3) { + return "second" + (1 === e3 ? "" : "s"); + }, ms: function(e3) { + return "millisecond" + (1 === e3 ? "" : "s"); + }, decimal: "." }, es: { y: function(e3) { + return "a\xF1o" + (1 === e3 ? "" : "s"); + }, mo: function(e3) { + return "mes" + (1 === e3 ? "" : "es"); + }, w: function(e3) { + return "semana" + (1 === e3 ? "" : "s"); + }, d: function(e3) { + return "d\xEDa" + (1 === e3 ? "" : "s"); + }, h: function(e3) { + return "hora" + (1 === e3 ? "" : "s"); + }, m: function(e3) { + return "minuto" + (1 === e3 ? "" : "s"); + }, s: function(e3) { + return "segundo" + (1 === e3 ? "" : "s"); + }, ms: function(e3) { + return "milisegundo" + (1 === e3 ? "" : "s"); + }, decimal: "," }, fa: { y: "\u0633\u0627\u0644", mo: "\u0645\u0627\u0647", w: "\u0647\u0641\u062A\u0647", d: "\u0631\u0648\u0632", h: "\u0633\u0627\u0639\u062A", m: "\u062F\u0642\u06CC\u0642\u0647", s: "\u062B\u0627\u0646\u06CC\u0647", ms: "\u0645\u06CC\u0644\u06CC \u062B\u0627\u0646\u06CC\u0647", decimal: "." }, fi: { y: function(e3) { + return 1 === e3 ? "vuosi" : "vuotta"; + }, mo: function(e3) { + return 1 === e3 ? "kuukausi" : "kuukautta"; + }, w: function(e3) { + return "viikko" + (1 === e3 ? "" : "a"); + }, d: function(e3) { + return "p\xE4iv\xE4" + (1 === e3 ? "" : "\xE4"); + }, h: function(e3) { + return "tunti" + (1 === e3 ? "" : "a"); + }, m: function(e3) { + return "minuutti" + (1 === e3 ? "" : "a"); + }, s: function(e3) { + return "sekunti" + (1 === e3 ? "" : "a"); + }, ms: function(e3) { + return "millisekunti" + (1 === e3 ? "" : "a"); + }, decimal: "," }, fr: { y: function(e3) { + return "an" + (e3 >= 2 ? "s" : ""); + }, mo: "mois", w: function(e3) { + return "semaine" + (e3 >= 2 ? "s" : ""); + }, d: function(e3) { + return "jour" + (e3 >= 2 ? "s" : ""); + }, h: function(e3) { + return "heure" + (e3 >= 2 ? "s" : ""); + }, m: function(e3) { + return "minute" + (e3 >= 2 ? "s" : ""); + }, s: function(e3) { + return "seconde" + (e3 >= 2 ? "s" : ""); + }, ms: function(e3) { + return "milliseconde" + (e3 >= 2 ? "s" : ""); + }, decimal: "," }, gr: { y: function(e3) { + return 1 === e3 ? "\u03C7\u03C1\u03CC\u03BD\u03BF\u03C2" : "\u03C7\u03C1\u03CC\u03BD\u03B9\u03B1"; + }, mo: function(e3) { + return 1 === e3 ? "\u03BC\u03AE\u03BD\u03B1\u03C2" : "\u03BC\u03AE\u03BD\u03B5\u03C2"; + }, w: function(e3) { + return 1 === e3 ? "\u03B5\u03B2\u03B4\u03BF\u03BC\u03AC\u03B4\u03B1" : "\u03B5\u03B2\u03B4\u03BF\u03BC\u03AC\u03B4\u03B5\u03C2"; + }, d: function(e3) { + return 1 === e3 ? "\u03BC\u03AD\u03C1\u03B1" : "\u03BC\u03AD\u03C1\u03B5\u03C2"; + }, h: function(e3) { + return 1 === e3 ? "\u03CE\u03C1\u03B1" : "\u03CE\u03C1\u03B5\u03C2"; + }, m: function(e3) { + return 1 === e3 ? "\u03BB\u03B5\u03C0\u03C4\u03CC" : "\u03BB\u03B5\u03C0\u03C4\u03AC"; + }, s: function(e3) { + return 1 === e3 ? "\u03B4\u03B5\u03C5\u03C4\u03B5\u03C1\u03CC\u03BB\u03B5\u03C0\u03C4\u03BF" : "\u03B4\u03B5\u03C5\u03C4\u03B5\u03C1\u03CC\u03BB\u03B5\u03C0\u03C4\u03B1"; + }, ms: function(e3) { + return 1 === e3 ? "\u03C7\u03B9\u03BB\u03B9\u03BF\u03C3\u03C4\u03CC \u03C4\u03BF\u03C5 \u03B4\u03B5\u03C5\u03C4\u03B5\u03C1\u03BF\u03BB\u03AD\u03C0\u03C4\u03BF\u03C5" : "\u03C7\u03B9\u03BB\u03B9\u03BF\u03C3\u03C4\u03AC \u03C4\u03BF\u03C5 \u03B4\u03B5\u03C5\u03C4\u03B5\u03C1\u03BF\u03BB\u03AD\u03C0\u03C4\u03BF\u03C5"; + }, decimal: "," }, hu: { y: "\xE9v", mo: "h\xF3nap", w: "h\xE9t", d: "nap", h: "\xF3ra", m: "perc", s: "m\xE1sodperc", ms: "ezredm\xE1sodperc", decimal: "," }, id: { y: "tahun", mo: "bulan", w: "minggu", d: "hari", h: "jam", m: "menit", s: "detik", ms: "milidetik", decimal: "." }, is: { y: "\xE1r", mo: function(e3) { + return "m\xE1nu\xF0" + (1 === e3 ? "ur" : "ir"); + }, w: function(e3) { + return "vik" + (1 === e3 ? "a" : "ur"); + }, d: function(e3) { + return "dag" + (1 === e3 ? "ur" : "ar"); + }, h: function(e3) { + return "klukkut\xEDm" + (1 === e3 ? "i" : "ar"); + }, m: function(e3) { + return "m\xEDn\xFAt" + (1 === e3 ? "a" : "ur"); + }, s: function(e3) { + return "sek\xFAnd" + (1 === e3 ? "a" : "ur"); + }, ms: function(e3) { + return "millisek\xFAnd" + (1 === e3 ? "a" : "ur"); + }, decimal: "." }, it: { y: function(e3) { + return "ann" + (1 === e3 ? "o" : "i"); + }, mo: function(e3) { + return "mes" + (1 === e3 ? "e" : "i"); + }, w: function(e3) { + return "settiman" + (1 === e3 ? "a" : "e"); + }, d: function(e3) { + return "giorn" + (1 === e3 ? "o" : "i"); + }, h: function(e3) { + return "or" + (1 === e3 ? "a" : "e"); + }, m: function(e3) { + return "minut" + (1 === e3 ? "o" : "i"); + }, s: function(e3) { + return "second" + (1 === e3 ? "o" : "i"); + }, ms: function(e3) { + return "millisecond" + (1 === e3 ? "o" : "i"); + }, decimal: "," }, ja: { y: "\u5E74", mo: "\u6708", w: "\u9031", d: "\u65E5", h: "\u6642\u9593", m: "\u5206", s: "\u79D2", ms: "\u30DF\u30EA\u79D2", decimal: "." }, ko: { y: "\uB144", mo: "\uAC1C\uC6D4", w: "\uC8FC\uC77C", d: "\uC77C", h: "\uC2DC\uAC04", m: "\uBD84", s: "\uCD08", ms: "\uBC00\uB9AC \uCD08", decimal: "." }, lt: { y: function(e3) { + return e3 % 10 == 0 || e3 % 100 >= 10 && e3 % 100 <= 20 ? "met\u0173" : "metai"; + }, mo: function(e3) { + return ["m\u0117nuo", "m\u0117nesiai", "m\u0117nesi\u0173"][p(e3)]; + }, w: function(e3) { + return ["savait\u0117", "savait\u0117s", "savai\u010Di\u0173"][p(e3)]; + }, d: function(e3) { + return ["diena", "dienos", "dien\u0173"][p(e3)]; + }, h: function(e3) { + return ["valanda", "valandos", "valand\u0173"][p(e3)]; + }, m: function(e3) { + return ["minut\u0117", "minut\u0117s", "minu\u010Di\u0173"][p(e3)]; + }, s: function(e3) { + return ["sekund\u0117", "sekund\u0117s", "sekund\u017Ei\u0173"][p(e3)]; + }, ms: function(e3) { + return ["milisekund\u0117", "milisekund\u0117s", "milisekund\u017Ei\u0173"][p(e3)]; + }, decimal: "," }, ms: { y: "tahun", mo: "bulan", w: "minggu", d: "hari", h: "jam", m: "minit", s: "saat", ms: "milisaat", decimal: "." }, nl: { y: "jaar", mo: function(e3) { + return 1 === e3 ? "maand" : "maanden"; + }, w: function(e3) { + return 1 === e3 ? "week" : "weken"; + }, d: function(e3) { + return 1 === e3 ? "dag" : "dagen"; + }, h: "uur", m: function(e3) { + return 1 === e3 ? "minuut" : "minuten"; + }, s: function(e3) { + return 1 === e3 ? "seconde" : "seconden"; + }, ms: function(e3) { + return 1 === e3 ? "milliseconde" : "milliseconden"; + }, decimal: "," }, no: { y: "\xE5r", mo: function(e3) { + return "m\xE5ned" + (1 === e3 ? "" : "er"); + }, w: function(e3) { + return "uke" + (1 === e3 ? "" : "r"); + }, d: function(e3) { + return "dag" + (1 === e3 ? "" : "er"); + }, h: function(e3) { + return "time" + (1 === e3 ? "" : "r"); + }, m: function(e3) { + return "minutt" + (1 === e3 ? "" : "er"); + }, s: function(e3) { + return "sekund" + (1 === e3 ? "" : "er"); + }, ms: function(e3) { + return "millisekund" + (1 === e3 ? "" : "er"); + }, decimal: "," }, pl: { y: function(e3) { + return ["rok", "roku", "lata", "lat"][u(e3)]; + }, mo: function(e3) { + return ["miesi\u0105c", "miesi\u0105ca", "miesi\u0105ce", "miesi\u0119cy"][u(e3)]; + }, w: function(e3) { + return ["tydzie\u0144", "tygodnia", "tygodnie", "tygodni"][u(e3)]; + }, d: function(e3) { + return ["dzie\u0144", "dnia", "dni", "dni"][u(e3)]; + }, h: function(e3) { + return ["godzina", "godziny", "godziny", "godzin"][u(e3)]; + }, m: function(e3) { + return ["minuta", "minuty", "minuty", "minut"][u(e3)]; + }, s: function(e3) { + return ["sekunda", "sekundy", "sekundy", "sekund"][u(e3)]; + }, ms: function(e3) { + return ["milisekunda", "milisekundy", "milisekundy", "milisekund"][u(e3)]; + }, decimal: "," }, pt: { y: function(e3) { + return "ano" + (1 === e3 ? "" : "s"); + }, mo: function(e3) { + return 1 === e3 ? "m\xEAs" : "meses"; + }, w: function(e3) { + return "semana" + (1 === e3 ? "" : "s"); + }, d: function(e3) { + return "dia" + (1 === e3 ? "" : "s"); + }, h: function(e3) { + return "hora" + (1 === e3 ? "" : "s"); + }, m: function(e3) { + return "minuto" + (1 === e3 ? "" : "s"); + }, s: function(e3) { + return "segundo" + (1 === e3 ? "" : "s"); + }, ms: function(e3) { + return "milissegundo" + (1 === e3 ? "" : "s"); + }, decimal: "," }, ru: { y: function(e3) { + return ["\u043B\u0435\u0442", "\u0433\u043E\u0434", "\u0433\u043E\u0434\u0430"][d(e3)]; + }, mo: function(e3) { + return ["\u043C\u0435\u0441\u044F\u0446\u0435\u0432", "\u043C\u0435\u0441\u044F\u0446", "\u043C\u0435\u0441\u044F\u0446\u0430"][d(e3)]; + }, w: function(e3) { + return ["\u043D\u0435\u0434\u0435\u043B\u044C", "\u043D\u0435\u0434\u0435\u043B\u044F", "\u043D\u0435\u0434\u0435\u043B\u0438"][d(e3)]; + }, d: function(e3) { + return ["\u0434\u043D\u0435\u0439", "\u0434\u0435\u043D\u044C", "\u0434\u043D\u044F"][d(e3)]; + }, h: function(e3) { + return ["\u0447\u0430\u0441\u043E\u0432", "\u0447\u0430\u0441", "\u0447\u0430\u0441\u0430"][d(e3)]; + }, m: function(e3) { + return ["\u043C\u0438\u043D\u0443\u0442", "\u043C\u0438\u043D\u0443\u0442\u0430", "\u043C\u0438\u043D\u0443\u0442\u044B"][d(e3)]; + }, s: function(e3) { + return ["\u0441\u0435\u043A\u0443\u043D\u0434", "\u0441\u0435\u043A\u0443\u043D\u0434\u0430", "\u0441\u0435\u043A\u0443\u043D\u0434\u044B"][d(e3)]; + }, ms: function(e3) { + return ["\u043C\u0438\u043B\u043B\u0438\u0441\u0435\u043A\u0443\u043D\u0434", "\u043C\u0438\u043B\u043B\u0438\u0441\u0435\u043A\u0443\u043D\u0434\u0430", "\u043C\u0438\u043B\u043B\u0438\u0441\u0435\u043A\u0443\u043D\u0434\u044B"][d(e3)]; + }, decimal: "," }, uk: { y: function(e3) { + return ["\u0440\u043E\u043A\u0456\u0432", "\u0440\u0456\u043A", "\u0440\u043E\u043A\u0438"][d(e3)]; + }, mo: function(e3) { + return ["\u043C\u0456\u0441\u044F\u0446\u0456\u0432", "\u043C\u0456\u0441\u044F\u0446\u044C", "\u043C\u0456\u0441\u044F\u0446\u0456"][d(e3)]; + }, w: function(e3) { + return ["\u0442\u0438\u0436\u043D\u0456\u0432", "\u0442\u0438\u0436\u0434\u0435\u043D\u044C", "\u0442\u0438\u0436\u043D\u0456"][d(e3)]; + }, d: function(e3) { + return ["\u0434\u043D\u0456\u0432", "\u0434\u0435\u043D\u044C", "\u0434\u043D\u0456"][d(e3)]; + }, h: function(e3) { + return ["\u0433\u043E\u0434\u0438\u043D", "\u0433\u043E\u0434\u0438\u043D\u0430", "\u0433\u043E\u0434\u0438\u043D\u0438"][d(e3)]; + }, m: function(e3) { + return ["\u0445\u0432\u0438\u043B\u0438\u043D", "\u0445\u0432\u0438\u043B\u0438\u043D\u0430", "\u0445\u0432\u0438\u043B\u0438\u043D\u0438"][d(e3)]; + }, s: function(e3) { + return ["\u0441\u0435\u043A\u0443\u043D\u0434", "\u0441\u0435\u043A\u0443\u043D\u0434\u0430", "\u0441\u0435\u043A\u0443\u043D\u0434\u0438"][d(e3)]; + }, ms: function(e3) { + return ["\u043C\u0456\u043B\u0456\u0441\u0435\u043A\u0443\u043D\u0434", "\u043C\u0456\u043B\u0456\u0441\u0435\u043A\u0443\u043D\u0434\u0430", "\u043C\u0456\u043B\u0456\u0441\u0435\u043A\u0443\u043D\u0434\u0438"][d(e3)]; + }, decimal: "," }, ur: { y: "\u0633\u0627\u0644", mo: function(e3) { + return 1 === e3 ? "\u0645\u06C1\u06CC\u0646\u06C1" : "\u0645\u06C1\u06CC\u0646\u06D2"; + }, w: function(e3) { + return 1 === e3 ? "\u06C1\u0641\u062A\u06C1" : "\u06C1\u0641\u062A\u06D2"; + }, d: "\u062F\u0646", h: function(e3) { + return 1 === e3 ? "\u06AF\u06BE\u0646\u0679\u06C1" : "\u06AF\u06BE\u0646\u0679\u06D2"; + }, m: "\u0645\u0646\u0679", s: "\u0633\u06CC\u06A9\u0646\u0688", ms: "\u0645\u0644\u06CC \u0633\u06CC\u06A9\u0646\u0688", decimal: "." }, sk: { y: function(e3) { + return ["rok", "roky", "roky", "rokov"][c(e3)]; + }, mo: function(e3) { + return ["mesiac", "mesiace", "mesiace", "mesiacov"][c(e3)]; + }, w: function(e3) { + return ["t\xFD\u017Ede\u0148", "t\xFD\u017Edne", "t\xFD\u017Edne", "t\xFD\u017Ed\u0148ov"][c(e3)]; + }, d: function(e3) { + return ["de\u0148", "dni", "dni", "dn\xED"][c(e3)]; + }, h: function(e3) { + return ["hodina", "hodiny", "hodiny", "hod\xEDn"][c(e3)]; + }, m: function(e3) { + return ["min\xFAta", "min\xFAty", "min\xFAty", "min\xFAt"][c(e3)]; + }, s: function(e3) { + return ["sekunda", "sekundy", "sekundy", "sek\xFAnd"][c(e3)]; + }, ms: function(e3) { + return ["milisekunda", "milisekundy", "milisekundy", "milisek\xFAnd"][c(e3)]; + }, decimal: "," }, sv: { y: "\xE5r", mo: function(e3) { + return "m\xE5nad" + (1 === e3 ? "" : "er"); + }, w: function(e3) { + return "veck" + (1 === e3 ? "a" : "or"); + }, d: function(e3) { + return "dag" + (1 === e3 ? "" : "ar"); + }, h: function(e3) { + return "timm" + (1 === e3 ? "e" : "ar"); + }, m: function(e3) { + return "minut" + (1 === e3 ? "" : "er"); + }, s: function(e3) { + return "sekund" + (1 === e3 ? "" : "er"); + }, ms: function(e3) { + return "millisekund" + (1 === e3 ? "" : "er"); + }, decimal: "," }, tr: { y: "y\u0131l", mo: "ay", w: "hafta", d: "g\xFCn", h: "saat", m: "dakika", s: "saniye", ms: "milisaniye", decimal: "," }, vi: { y: "n\u0103m", mo: "th\xE1ng", w: "tu\u1EA7n", d: "ng\xE0y", h: "gi\u1EDD", m: "ph\xFAt", s: "gi\xE2y", ms: "mili gi\xE2y", decimal: "," }, zh_CN: { y: "\u5E74", mo: "\u4E2A\u6708", w: "\u5468", d: "\u5929", h: "\u5C0F\u65F6", m: "\u5206\u949F", s: "\u79D2", ms: "\u6BEB\u79D2", decimal: "." }, zh_TW: { y: "\u5E74", mo: "\u500B\u6708", w: "\u5468", d: "\u5929", h: "\u5C0F\u6642", m: "\u5206\u9418", s: "\u79D2", ms: "\u6BEB\u79D2", decimal: "." } }; + function o(e3) { + var t3 = function(e4, i3) { + return (function(e5, t4) { + var i4, n3, o2; + e5 = Math.abs(e5); + var a2 = t4.languages[t4.language] || r2[t4.language]; + if (!a2) throw new Error("No language " + a2 + "."); + var l2, u2, d2, c2 = []; + for (i4 = 0, n3 = t4.units.length; i4 < n3; i4++) l2 = t4.units[i4], u2 = t4.unitMeasures[l2], d2 = i4 + 1 === n3 ? e5 / u2 : Math.floor(e5 / u2), c2.push({ unitCount: d2, unitName: l2 }), e5 -= d2 * u2; + var p2, _, h = 0; + for (i4 = 0; i4 < c2.length; i4++) if (c2[i4].unitCount) { + h = i4; + break; + } + if (t4.round) for (i4 = c2.length - 1; i4 >= 0 && ((o2 = c2[i4]).unitCount = Math.round(o2.unitCount), 0 !== i4); i4--) _ = c2[i4 - 1], p2 = t4.unitMeasures[_.unitName] / t4.unitMeasures[o2.unitName], (o2.unitCount % p2 === 0 || t4.largest && t4.largest - 1 < i4 - h) && (_.unitCount += o2.unitCount / p2, o2.unitCount = 0); + var m = []; + for (i4 = 0, c2.length; i4 < n3 && ((o2 = c2[i4]).unitCount && m.push(s(o2.unitCount, o2.unitName, a2, t4)), m.length !== t4.largest); i4++) ; + return m.length ? t4.conjunction && 1 !== m.length ? 2 === m.length ? m.join(t4.conjunction) : m.length > 2 ? m.slice(0, -1).join(t4.delimiter) + (t4.serialComma ? "," : "") + t4.conjunction + m.slice(-1) : void 0 : m.join(t4.delimiter) : s(0, t4.units[t4.units.length - 1], a2, t4); + })(e4, l({}, t3, i3 || {})); + }; + return l(t3, { language: "en", delimiter: ", ", spacer: " ", conjunction: "", serialComma: true, units: ["y", "mo", "w", "d", "h", "m", "s"], languages: {}, round: false, unitMeasures: { y: 315576e5, mo: 26298e5, w: 6048e5, d: 864e5, h: 36e5, m: 6e4, s: 1e3, ms: 1 } }, e3); + } + var a = o({}); + function s(e3, t3, i3, n3) { + var r3; + r3 = void 0 === n3.decimal ? i3.decimal : n3.decimal; + var o2, a2 = e3.toString().replace(".", r3), s2 = i3[t3]; + return o2 = "function" == typeof s2 ? s2(e3) : s2, a2 + n3.spacer + o2; + } + function l(e3) { + for (var t3, i3 = 1; i3 < arguments.length; i3++) for (var n3 in t3 = arguments[i3]) t3.hasOwnProperty(n3) && (e3[n3] = t3[n3]); + return e3; + } + function u(e3) { + return 1 === e3 ? 0 : Math.floor(e3) !== e3 ? 1 : e3 % 10 >= 2 && e3 % 10 <= 4 && !(e3 % 100 > 10 && e3 % 100 < 20) ? 2 : 3; + } + function d(e3) { + return Math.floor(e3) !== e3 ? 2 : e3 % 100 >= 5 && e3 % 100 <= 20 || e3 % 10 >= 5 && e3 % 10 <= 9 || e3 % 10 == 0 ? 0 : e3 % 10 == 1 ? 1 : e3 > 1 ? 2 : 0; + } + function c(e3) { + return 1 === e3 ? 0 : Math.floor(e3) !== e3 ? 1 : e3 % 10 >= 2 && e3 % 10 <= 4 && e3 % 100 < 10 ? 2 : 3; + } + function p(e3) { + return 1 === e3 || e3 % 10 == 1 && e3 % 100 > 20 ? 0 : Math.floor(e3) !== e3 || e3 % 10 >= 2 && e3 % 100 > 20 || e3 % 10 >= 2 && e3 % 100 < 10 ? 1 : 2; + } + a.getSupportedLanguages = function() { + var e3 = []; + for (var t3 in r2) r2.hasOwnProperty(t3) && e3.push(t3); + return e3; + }, a.humanizer = o, void 0 === (n2 = function() { + return a; + }.call(t2, i2, t2, e2)) || (e2.exports = n2); + })(); + }, 76150: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(83663)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "quickReplies"; + } + get buttons() { + return this._getAssignableProperty("buttons"); + } + get quickReplySummary() { + return this._getAssignableProperty("quickReplySummary"); + } + get displayTypeName() { + return "ArchValueQuickReplies"; + } + get isArchValueQuickReplies() { + return true; + } + } + t2.default = r2; + }, 76155: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importDefault(i2(92140)), o = n2.__importStar(i2(36781)), a = n2.__importStar(i2(62829)), s = n2.__importStar(i2(58380)), l = n2.__importStar(i2(24032)), u = n2.__importStar(i2(48565)), d = n2.__importStar(i2(14187)), c = i2(1115), p = n2.__importDefault(i2(68460)), _ = n2.__importDefault(i2(73198)), h = i2(19384), m = i2(30801), g = i2(30801), f = i2(80295), T = i2(26847), y = i2(55909), S = i2(33951), A = i2(17604), N = n2.__importDefault(i2(41510)), O = n2.__importDefault(i2(22465)), I = n2.__importDefault(i2(22917)), v = i2(47957), C = r2.default.invert(T.outputIds), b = l.getTopic("FlowElementWithNodeInformation"); + class E extends p.default { + constructor(e3, t3) { + super(e3, t3), this._nameStringFacet = O.default.createMinMaxLength(void 0, _.default.maxActionNameLength), this.characterToReplace = /* @__PURE__ */ new Map([["[", "_LBRACKET_"], ["#", "_POUND_"], ["]", "_RBRACKET_"], ["/", "_SLASH_"], ["~", "_TILDE_"]]), (0, f.makeUnenumerable)(this, "_model"), S.ParameterValidator.expectFlowViewModel(e3, () => y.ParameterInfo.createConstructorParameter(this.className, "parentFlowViewModel")), this.updateTraceTopic(); + } + get amObjectEventEmitter() { + return true; + } + get className() { + return "FlowElementWithNodeInformation"; + } + get deprecatedViewModelMarker() { + return "__DEPRECATED__"; + } + get info() { + return this.constructor.info; + } + get isStartUpObject() { + const e3 = this.parentFlow.startUpObject; + return e3 && e3.id === this.id; + } + get name() { + return this.model.name; + } + set name(e3) { + this.model.name = null == e3 ? void 0 : e3.trim(), this.nameFacetError = this.validateName(this.name), s.fireEvent(this, o.nameChanged); + } + validateName(e3, t3) { + let i3, n3 = false; + if (e3) { + const t4 = this._nameStringFacet._facetValidateValue(e3); + !t4 || t4.isValid ? i3 = void 0 : (i3 = t4.message, n3 = true); + } else i3 = v.errors.noName; + return t3 && this.nameFacetError && t3.addError(this, n3 ? (0, A.sprintf)(N.default.facets.errorWithExpressionLabel, i3, v.generic.name) : i3), i3; + } + getParentingFlowElementByIdOrNodeInfoId(e3, t3) { + let i3 = t3 ? this.parent : this; + if (i3) for (; i3.parent; ) { + if (r2.default.contains(e3, i3.id) || i3.info && r2.default.contains(e3, i3.info.id)) return i3; + for (i3 = i3.parent; i3 && !r2.default.contains([T.outputIds.loop, T.outputIds.loopNext], i3.id); ) { + const e4 = i3.parent; + if (!(e4 && e4.info && r2.default.contains([m.loopActionType, g.loopUntilActionType], e4.info.id))) break; + i3 = e4.parent; + } + } + } + get isFlowElementWithNodeInformation() { + return true; + } + get model() { + return this._model; + } + get availableVariableScopes() { + return r2.default.union(this.userCreatableVariableScopes, this.parentFlow.availableVariableScopes); + } + get defaultVariableScope() { + return this.localVariableScope; + } + get localVariableScope() { + return d.scopes.flow; + } + get builtInVariableScopes() { + return this.parentFlow.builtInVariableScopes; + } + get userCreatableVariableScopes() { + return r2.default.union([this.localVariableScope]); + } + get canRename() { + return true; + } + canAddNode(e3) { + const t3 = a.getInfo(e3); + if (!t3) return false; + if (this.parentFlow.isReadOnly) return false; + const i3 = this.topParent || this; + return t3.getAvailability(i3, !(i3.isMenu || i3.isMenuChoice), this.parentFlow); + } + getConfiguration(e3, t3) { + return (null == t3 ? void 0 : t3.isForFlowYaml) ? this._getConfigurationForYaml(e3, t3) : this.model.getConfiguration(e3, t3); + } + processYamlProperty(e3, t3, i3, n3) { + var o2, a2; + return r2.default.isNullOrUndefined(i3) || (null === (o2 = null == n3 ? void 0 : n3.doNotExportForFlowTypes) || void 0 === o2 ? void 0 : o2.includes(this.parentFlow.type)) || i3.outOfService && !(null == n3 ? void 0 : n3.serializeOutOfService) || i3.isExpressionMode && (null === (a2 = null == n3 ? void 0 : n3.doNotExportAsExpressionForFlowTypes) || void 0 === a2 ? void 0 : a2.includes(this.parentFlow.type)) ? null : r2.default.isFunction(i3.getConfiguration) ? i3.getConfiguration(e3, t3, n3) : i3; + } + getDisplayName() { + return this.name ? this.name : this.info ? this.info.name : ""; + } + getIsChildOfObject(e3) { + if (!e3) return false; + let t3 = this.parent; + for (; t3; ) { + if (t3 === e3) return true; + if (t3 === e3.menu) return true; + t3 = t3.parentMenu || t3.parent; + } + return false; + } + getNodeToNavigateToOnDelete() { + let e3 = this.parent; + for (; e3; ) { + if (!e3.isDestroyed && !e3.isFlowViewModel) return e3; + e3 = e3.parent; + } + return this.parentFlow.startUpObject; + } + getYamlOptionsMap() { + return b.errorWithErrorObjectInfo(`getYamlOptionsMap not implemented for class ${this.className}`, this, true), null; + } + get yamlPath() { + let e3; + return this.parentMenu ? `${this.parentMenu.yamlPath}/choices/menuSubMenu[${this.getRefId()}]` : this.isInQueueStartUpState ? `/${this.parentFlow.wrappedYamlName}/startUpState` : this.isPeriodicState ? `/${this.parentFlow.wrappedYamlName}/periodicState` : this.isMenu || this.isTaskLike ? (e3 = this.wrappedYamlName, `/${this.parentFlow.wrappedYamlName}/${e3}s/${e3}[${this.getRefId()}]`) : null; + } + getRefId() { + let e3 = r2.default.isObject(this.linkedMenuChoice) ? this.linkedMenuChoice.trackingId : this.trackingId, t3 = this.getDisplayName(); + if (!r2.default.isString(t3)) return `_${e3}`; + for (const e4 of this.characterToReplace.entries()) t3 = t3.split(e4[0]).join(e4[1]); + return `${t3}_${e3}`; + } + initialize() { + super.initialize(); + } + updateTraceTopic() { + var e3, t3; + const i3 = l.getTopic((null === (e3 = this.info) || void 0 === e3 ? void 0 : e3.typeId) || this.className); + this.topic = this.model ? i3.withMultipleContext(Object.assign({ actionId: this.id, infoName: null === (t3 = this.info) || void 0 === t3 ? void 0 : t3.name }, this.parentFlow.topic.context)) : i3; + } + validate(e3) { + this.nameFacetError = this.validateName(this.name, e3); + } + _getConfigurationForYaml(e3, t3) { + var i3; + let n3 = {}, o2 = false; + if (!r2.default.isFunction(this.getYamlOptionsMap)) return null; + const a2 = this.getYamlOptionsMap(); + if (a2 ? r2.default.mapObject(a2, (i4, a3) => { + if (!i4) return void b.errorWithStack(null, `No yamlOptions found for property '${a3}'.`); + if (i4.skipProperty) return; + i4.wrapValueAndActionsInPropertyName && (o2 = true), a3.startsWith(this.deprecatedViewModelMarker) && (a3 = a3.replace(this.deprecatedViewModelMarker, "")); + const s3 = this[a3]; + let l2 = this.processYamlProperty(e3, t3, s3, i4); + r2.default.isNullOrUndefined(l2) || (r2.default.isObject(l2) && r2.default.isEmpty(l2) && b.errorWithStack(null, `Empty object generated for YAML property '${a3}'`), l2 = r2.default.tryWrapObject(l2, i4.wrappedValueName), i4.wrappedObjectName ? n3[i4.wrappedObjectName] = r2.default.tryWrapObject(l2, i4.propertyName || a3) : n3[i4.propertyName || a3] = l2); + }) : b.errorWithErrorObjectInfo("No yamlOptionsMap found for node.", this, true), r2.default.each(this.branches, (i4) => { + if (o2 && !i4.isBuiltInBranch) return; + const a3 = i4.getConfiguration(e3, t3); + if (a3 || this.supportsNLUIntents) if (this.supportsIntents && i4.isDynamicBranch) this._ensureOutputsObjectAddedToYamlConfig(n3), n3.outputs.intents || (n3.outputs.intents = {}), n3.outputs.intents[i4.getYamlOutputId(i4.id)] = a3; + else if (this.supportsCustomOutputPaths && this.getOptionalBranchInfo(i4.id)) { + this._ensureOutputsObjectAddedToYamlConfig(n3); + const e4 = this.supportsNLUIntents ? "intent" : "path", t4 = `${e4}s`; + n3.outputs[t4] || (n3.outputs[t4] = []); + const o3 = r2.default.extend({ name: i4.label }, a3); + this.supportsNLUIntents && (i4.isDynamicBranch ? o3.enabled = i4.isEnabledDynamicBranch : o3.enabled = !i4.outOfService), n3.outputs[t4].push(r2.default.tryWrapObject(o3, e4)); + } else a3 && (this._ensureOutputsObjectAddedToYamlConfig(n3), n3.outputs[i4.getYamlOutputId(i4.id)] = a3); + }), this.postProcessYamlConfig && this.postProcessYamlConfig(n3, e3, t3), this.isMenu && (n3.refId = this.getRefId()), null === (i3 = null == t3 ? void 0 : t3.yamlOptions) || void 0 === i3 ? void 0 : i3.includeTrackingIds) { + const e4 = this.trackingId; + e4 && (n3.trackingId = e4); + } + this.isStartUpObject && (e3.startUpRef = this.yamlPath); + const s2 = {}; + return r2.default.each(a2, (e4, t4) => { + e4 && r2.default.isActualNumber(e4.exportOrder) && (s2[e4.propertyName || t4] = e4.exportOrder); + }), n3 = I.default.sortObjectByPropertyMap(n3, r2.default.extend(this.yamlPropertyOrderMap, s2)), r2.default.tryWrapObject(n3, this.wrappedYamlName); + } + getYamlOutputId(e3) { + return C[e3]; + } + get supportsNLUIntents() { + } + get supportsIntents() { + } + get supportsCustomOutputPaths() { + } + get yamlPropertyOrderMap() { + return { name: 0, refId: 10, trackingId: 15, outputs: 999 }; + } + _ensureOutputsObjectAddedToYamlConfig(e3) { + e3.outputs || (e3.outputs = {}); + } + _loadModel(e3) { + e3 && (this._model = e3, this.updateTraceTopic(), h.flowElementRegistrationService.registerItem(this)); + } + _preDestroy() { + super._preDestroy(), u.removeNode(this), (0, c.clearIssues)(this), h.flowElementRegistrationService.unregisterItem(this); + } + toString() { + var e3, t3; + return `infoName: '${null === (e3 = this.info) || void 0 === e3 ? void 0 : e3.name}', infoType: '${null === (t3 = this.info) || void 0 === t3 ? void 0 : t3.typeId}', id: '${this.id}'`; + } + } + t2.default = E; + }, 76159: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.SurveyFormType = void 0; + const n2 = i2(70147), r2 = i2(94765), o = i2(80428); + class a extends r2.ExpressionType { + constructor(e3, t3, i3) { + super(e3, t3, i3); + } + get className() { + return "SurveyFormType"; + } + createExpressionOptionClass() { + return new n2.ExpressionTypeSurveyFormOptions(); + } + validateLiteral(e3, t3) { + return true; + } + get supportsLiteralEditor() { + return false; + } + } + t2.SurveyFormType = a, a.typeIdentifier = o.expressionTypeNames.surveyForm; + }, 76171: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.ArchDefinitionValue = void 0; + const n2 = i2(31635), r2 = i2(39637), o = n2.__importDefault(i2(78432)); + class a extends r2.ArchBaseDefinition { + constructor(e3) { + super(e3); + } + get dataType() { + return this.coreFactory.createArchWrapper(this._getCoreViewModel()); + } + get displayTypeName() { + return "ArchDefinitionValue"; + } + get isArchDefinitionValue() { + return true; + } + isAvailableForFlowType(e3) { + return this._checkItemIsValidLiteralStringEnum(this._infoParm("flowType", "getFlowInfoByFlowIdAsync"), e3, o.default.FLOW_TYPES_ALL), this._getCoreViewModel().isAvailableForFlowType(e3); + } + } + t2.ArchDefinitionValue = a; + }, 76189: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importDefault(i2(92140)), o = n2.__importStar(i2(37097)), a = i2(5173); + class s extends a.BaseFlowPreviewInstance { + _startPreviewForFlowInfo(e3, t3, i3, a2) { + return n2.__awaiter(this, void 0, void 0, function* () { + const i4 = yield o.postDigitalBotFlowLaunch(e3.id, t3, r2.default.isObject(a2) ? a2 : {}); + return console.log(`digital bot flow instance '${i4.id}'`), i4.id; + }); + } + _isFlowNotificationEventDataForThisPreview(e3, t3) { + return e3 && (null == t3 ? void 0 : t3.executionId) === e3; + } + get supportsDebugPublishedPreview() { + return false; + } + get supportsPublishedFlowPreview() { + return true; + } + get supportsPreviewPayload() { + return true; + } + } + t2.default = s; + }, 76217: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(84655)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "choice"; + } + get initialValue() { + return this._initialValue; + } + get displayTypeName() { + return "ArchVariableChoice"; + } + get isArchVariableChoice() { + return true; + } + } + t2.default = r2; + }, 76218: (e2, t2, i2) => { + "use strict"; + const n2 = i2(31635), r2 = n2.__importStar(i2(63352)), o = i2(12179), a = n2.__importDefault(i2(5730)), s = n2.__importDefault(i2(73198)), l = i2(80428), u = n2.__importDefault(i2(97891)), d = i2(12457), c = i2(81516), p = i2(24383), _ = i2(47957); + class h extends a.default { + constructor(e3, t3) { + super(e3.parentFlow, e3), this._loadModel(t3), this.setTargetAddressType(); + } + getDetails() { + return this.targetAddress ? new d.ActionDetails([_.completeSurvey.targetAddressLabel], [this.targetAddress.text]) : null; + } + static get managedProperties() { + return [{ label: _.completeSurvey.targetAddressLabel, options: c.ExpressionTypeStringOptions.create((e3) => e3.setIninTestingField("completeSurveyTargetAddressExpression").setDescriptionInfo(_.completeSurvey.targetAddressLabel, _.completeSurvey.targetAddressDescription).facets.setMinLength(1).setTrim(true)), property: "targetAddress", type: l.expressionTypeNames.string }, { label: _.completeSurvey.targetAddressTypeLabel, options: c.ExpressionTypeStringOptions.create((e3) => e3.facets.setMinLength(1).setTrim(true)), property: "targetAddressType", type: l.expressionTypeNames.string }, { label: _.completeSurvey.inviteSubjectLabel, options: c.ExpressionTypeStringOptions.create((e3) => e3.setIninTestingField("completeSurveyInviteSubjectExpression").setDescriptionInfo(_.completeSurvey.inviteSubjectLabel, _.completeSurvey.inviteSubjectDescription).facets.setMinLength(1).setTrim(true).setMaxLength(s.default.maxEmailSubjectLength)), property: "inviteSubject", type: l.expressionTypeNames.string }, { label: _.completeSurvey.inviteBodyLabel, options: c.ExpressionTypeStringOptions.create((e3) => e3.setIninTestingField("completeSurveyInviteBodyExpression").setDefaultToExpression(true).setDescriptionInfo(_.completeSurvey.inviteBodyLabel, _.completeSurvey.inviteBodyDescription).facets.setMinLength(1).setTrim(true)), property: "inviteBody", type: l.expressionTypeNames.string }, { label: _.completeSurvey.reminderSubject.label, options: c.ExpressionTypeStringOptions.create((e3) => e3.setIninTestingField("completeSurveyReminderSubjectExpression").setDescriptionInfo(_.completeSurvey.reminderSubject.label, _.completeSurvey.reminderSubject.description).setIsOptional(true).setModeNoValueRuntimeEvaluationStr(_.completeSurvey.reminderSubject.noValue.runtimeStr).setModeNoValueSelectionLabel(_.completeSurvey.reminderSubject.noValue.selectionLabel).facets.setMinLength(1).setTrim(true)), property: "reminderSubject", type: l.expressionTypeNames.string }, { label: _.completeSurvey.reminderBody.label, options: c.ExpressionTypeStringOptions.create((e3) => e3.setIninTestingField("completeSurveyReminderBodyExpression").setDescriptionInfo(_.completeSurvey.reminderBody.label, _.completeSurvey.reminderBody.description).setIsOptional(true).setModeNoValueSelectionLabel(_.completeSurvey.reminderBody.noValue.selectionLabel).setModeNoValueRuntimeEvaluationStr(_.completeSurvey.reminderBody.noValue.runtimeStr).facets.setMinLength(1).setTrim(true)), property: "reminderBody", type: l.expressionTypeNames.string }]; + } + setTargetAddressType() { + this.targetAddressType.outOfService = true, this.targetAddressType.setAsLiteral("Email"); + } + validate(e3) { + super.validate(e3), (this.reminderSubject.mode === r2.noValue && this.reminderBody.mode !== r2.noValue || this.reminderSubject.mode !== r2.noValue && this.reminderBody.mode === r2.noValue) && e3.addError(this, _.completeSurvey.validation.reminderMustHaveSubjectAndBody); + } + } + h.info = u.default.createActionInfo({ actionClass: h, canBeInTask: true, helpTopic: o.helpTopics.actions.completeSurvey, modelClass: i2(5138), name: _.actions.completeSurvey, scriptingName: "ArchActionCompleteSurveyInvite", termination: p.terminatesFlow }), t2.A = h; + }, 76319: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.CommunicationType = void 0; + const n2 = i2(94765), r2 = i2(82319), o = i2(80428); + class a extends n2.ExpressionType { + constructor(e3, t3, i3) { + super(e3, t3, i3); + } + get className() { + return "CommunicationType"; + } + canConvertLitToExpression(e3) { + return false; + } + convertLitToExpression(e3, t3) { + return ""; + } + createExpressionOptionClass() { + return new r2.ExpressionTypeCommunicationOptions(); + } + get supportsLiteralEditor() { + return false; + } + } + t2.CommunicationType = a, a.typeIdentifier = o.expressionTypeNames.communication; + }, 76366: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(7635), r2 = i2(59449), o = i2(25054), a = i2(76171), s = i2(21601), l = { ArchDefinitionAction: n2.ArchDefinitionAction, ArchDefinitionFlow: r2.ArchDefinitionFlow, ArchDefinitionMenu: o.ArchDefinitionMenu, ArchDefinitionValue: a.ArchDefinitionValue, ArchDefinitionVariable: s.ArchDefinitionVariable }; + t2.default = l; + }, 76395: (e2, t2, i2) => { + const n2 = i2(92140), r2 = i2(25088), o = i2(45421), a = i2(13126), s = i2(85160), l = i2(27359), u = i2(92330), d = "rawJsonToModels", c = "pasteReIdOrRename", p = "performPasteResolveOldToNewValues", _ = "modelsToViewModels"; + class h extends r2 { + constructor(e3, t3) { + super(e3, t3); + } + static _addMenuChoiceToCoreContent(e3, t3) { + const i3 = e3.getConfiguration(); + if (!i3) throw "could not get core menu choice view model configuration"; + const r3 = { menuChoice: o.cloneToRawJsonObject(i3) }; + if (e3.isSubMenu) { + const t4 = e3.action.menuReference; + if (t4) { + const i4 = n2.find(e3.parentFlow.menus, function(e4) { + return e4.id === t4; + }); + i4 && (r3.menu = h._cloneMenuToJSONClearingChoices(i4.model)); + } + } else if (e3.isInlineTask) { + const t4 = e3.action.taskReference; + if (t4) { + const i4 = n2.find(e3.parentFlow.tasks, function(e4) { + return e4.id === t4; + }); + i4 && (r3.task = o.cloneToRawJsonObject(i4.getConfiguration())); + } + } + t3.push(r3), n2.isArray(e3.choices) && (r3.menuChoices = [], n2.each(e3.choices, function(e4) { + h._addMenuChoiceToCoreContent(e4, r3.menuChoices); + }.bind(this))); + } + static _addMenuToCoreContent(e3) { + const t3 = e3.model; + if (!t3) throw "could not get core mnenu view model configuration"; + const i3 = { menu: h._cloneMenuToJSONClearingChoices(t3), menuChoices: [] }; + return n2.each(e3.choices, function(e4) { + h._addMenuChoiceToCoreContent(e4, i3.menuChoices); + }.bind(this)), i3; + } + _deleteMenuChoicesForCut(e3) { + if (n2.isArray(e3.choices)) for (let t3 = e3.choices.length - 1; t3 >= 0; t3--) { + const i3 = this._deleteMenuChoicesForCut(e3.choices[t3]); + if (i3.isFailure) return i3; + } + return e3.destroy(), this.createClipboardResultSuccess(); + } + _deleteMenuForCut(e3) { + for (let t3 = e3.choices.length - 1; t3 >= 0; t3--) { + const i3 = this._deleteMenuChoicesForCut(e3.choices[t3]); + if (i3.isFailure) return i3; + } + return e3.parentFlow.deleteNode(e3), this.createClipboardResultSuccess(); + } + static _cloneMenuToJSONClearingChoices(e3) { + const t3 = o.cloneToRawJsonObject(e3); + return t3.menuChoiceList = [], t3; + } + _iterateModelsAndProcess(e3, t3, i3, r3, o2, a2) { + let h2, m; + const g = t3.menuChoice, f = t3.menuChoiceModel, T = t3.menu, y = t3.menuModel, S = t3.task, A = t3.taskModel; + let N, O, I; + if (!n2.isUndefined(y) && r3 === _) { + this.pushLogHeader("menu - name " + this._getNameAndIdStr(y)); + try { + this.log("Adding view model for menu " + this._getNameAndIdStr(y) + " to flow menus that currently has " + e3.destFlowViewModel.menus.length + " menu(s)."), m = this._pasteAddMenuViewModelForMenuModel(e3, y), a2 && (this.pastedMenuOrTaskOrActionViewModel = m), N = m; + } finally { + this.popLogHeader(); + } + } + if (!n2.isUndefined(A) && r3 === _) { + this.pushLogHeader("task - name " + this._getNameAndIdStr(A)); + try { + this.log("Adding view model for task " + this._getNameAndIdStr(A) + " to flow tasks that currently has " + e3.destFlowViewModel.tasks.length + " task(s)."); + const t4 = this._pasteAddTaskViewModelForTaskModel(e3, A); + a2 && (this.pastedMenuOrTaskOrActionViewModel = t4), O = t4; + } finally { + this.popLogHeader(); + } + } + if (n2.isUndefined(g)) { + if (i3) return this.createClipboardResultFailurePasteGeneric("There is no menu choice model for " + this._getNameAndIdStr(t3.menuChoice) + " to call " + r3 + "."); + } else { + this.pushLogHeader("menu choice - name " + this._getNameAndIdStr(g)); + try { + switch (r3) { + case d: + t3.menuChoiceModel = new l(g); + break; + case c: + f.pasteReIdOrRename(e3.clipboardObject); + break; + case p: + f.pasteResolveOldToNewValues(e3.clipboardObject); + break; + case _: + a2 && (this.shouldPasteAsReusableMenu(e3) || this.shouldPasteAsReusableTask(e3) || this.shouldPasteAsDownConvertAction(e3)) ? this.shouldPasteAsDownConvertAction(e3) && (h2 = this._pasteAddActionViewModelForActionModel(e3, o2, f.action, e3.destViewModel.isAction ? e3.destViewModel : void 0)) : h2 = this._pasteAddMenuChoiceViewModelForMenuChoiceModel(e3, o2, f), a2 && !this.pastedMenuOrTaskOrActionViewModel && (this.pastedMenuOrTaskOrActionViewModel = h2), I = h2; + } + } finally { + this.popLogHeader(); + } + } + if (!n2.isUndefined(T)) { + this.pushLogHeader("menu - name " + this._getNameAndIdStr(T)); + try { + switch (r3) { + case d: + t3.menuModel = new s(T); + break; + case c: + y.pasteReIdOrRename(e3.clipboardObject); + break; + case p: + y.pasteResolveOldToNewValues(e3.clipboardObject); + } + } finally { + this.popLogHeader(); + } + } + if (!n2.isUndefined(S)) { + this.pushLogHeader("task - name " + this._getNameAndIdStr(S)); + try { + switch (r3) { + case d: + t3.taskModel = new u(S); + break; + case c: + A.pasteReIdOrRename(e3.clipboardObject); + break; + case p: + A.pasteResolveOldToNewValues(e3.clipboardObject); + } + } finally { + this.popLogHeader(); + } + } + if (a2 && !this._destUpconvertMenuChoiceViewModel && (I || N || O) && e3.additionalInfo && e3.additionalInfo.addNotableObject(I || N || O), n2.isArray(t3.menuChoices)) for (let i4 = 0; i4 < t3.menuChoices.length; i4++) { + const n3 = this._iterateModelsAndProcess(e3, t3.menuChoices[i4], true, r3, h2 || m, false); + if (n3.isFailure) return n3; + } + return this.createClipboardResultSuccess(); + } + _performDestroy() { + super._performDestroy(); + } + _performPaste(e3) { + let t3; + try { + const i3 = this.clipboardContentType === a.menuChoice; + if (t3 = this._iterateModelsAndProcess(e3, this._pasteJsonObjects.content, i3, d), t3.isFailure) return t3; + if (t3 = this._iterateModelsAndProcess(e3, this._pasteJsonObjects.content, i3, c), t3.isFailure) return t3; + if (t3 = this._iterateModelsAndProcess(e3, this._pasteJsonObjects.content, i3, p), t3.isFailure) return t3; + t3 = this._iterateModelsAndProcess(e3, this._pasteJsonObjects.content, i3, _, e3.destViewModel, true), this._destUpconvertMenuChoiceViewModel && e3.additionalInfo && e3.additionalInfo.addNotableObject(this._destUpconvertMenuChoiceViewModel); + } catch (e4) { + t3 = this.createClipboardResultFailurePasteException(e4, "Exception caught in clipboard menu / menu choice paste handling.", e4); + } + return t3; + } + _resetUpconvertViewModels() { + super._resetUpconvertViewModels(), this._destUpconvertMenuChoiceViewModel = void 0; + } + get className() { + return "BaseClipboardContentMenuMenuChoiceViewModel"; + } + get isBaseClipboardContentMenuMenuChoiceViewModel() { + return true; + } + shouldPasteAsDownConvertAction(e3) { + return false; + } + shouldPasteAsReusableMenu(e3) { + return false; + } + shouldPasteAsReusableTask(e3) { + return false; + } + } + e2.exports = h; + }, 76486: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(55909), r2 = i2(33951); + t2.default = class { + constructor({ expressionType: e3, label: t3, descriptionInfo: i3, configureOptionsCallback: o, requiredFuncOpOverloadIds: a }) { + r2.ParameterValidator.expectExpressionType(e3, () => n2.ParameterInfo.createConstructorParameter(this.className, "expressionType")), r2.ParameterValidator.expectString(t3, () => n2.ParameterInfo.createConstructorParameter(this.className, "label")), r2.ParameterValidator.expectObject(i3, () => n2.ParameterInfo.createConstructorParameter(this.className, "descriptionInfo"), true), r2.ParameterValidator.expectFunction(o, () => n2.ParameterInfo.createConstructorParameter(this.className, "configureOptionsCallback"), true), r2.ParameterValidator.expectArray(a, () => n2.ParameterInfo.createConstructorParameter(this.className, "requiredFuncOpOverloadIds"), true), Object.defineProperties(this, { _configureOptionsCallback: { value: o }, _descriptionInfo: { value: i3 }, _expressionType: { value: e3 }, _label: { value: t3 }, _requiredFuncOpOverloadIds: { value: a } }); + } + get defaultText() { + return this._defaultText; + } + get label() { + return this._label; + } + get configureOptionsCallback() { + return this._configureOptionsCallback; + } + get type() { + return this._expressionType; + } + get descriptionInfo() { + return this._descriptionInfo; + } + get requiredFuncOpOverloadIds() { + return this._requiredFuncOpOverloadIds; + } + get className() { + return "ExpressionDef"; + } + get isExpressionDef() { + return true; + } + createExpression(e3) { + } + reviveItem(e3, t3, i3) { + } + }; + }, 76501: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(81574)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "any"; + } + get displayTypeName() { + return "ArchValueAny"; + } + get isArchValueAny() { + return true; + } + } + t2.default = r2; + }, 76533: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importDefault(i2(77862)), o = i2(12179), a = n2.__importDefault(i2(27377)), s = n2.__importDefault(i2(4406)), l = i2(47957), u = "learningSettings"; + class d extends a.default { + get id() { + return u; + } + static get id() { + return u; + } + get showInFlowSize() { + return false; + } + get parentFlowTreeNodeId() { + return s.default.id; + } + get className() { + return "LearningSettingsViewModel"; + } + getDisplayName() { + return l.learning.label; + } + get helpTopic() { + return o.helpTopics.treeNodes.learningSettings; + } + get isLearningSettingsNode() { + return true; + } + get nodeGuxIcon() { + return "skills"; + } + get workbenchArchNodeName() { + return r2.default.nodeIds.learning; + } + _destroy() { + super._destroy(); + } + } + t2.default = d; + }, 76573: (e2, t2, i2) => { + const n2 = i2(5410), { initializeFlowOutcomeActionType: r2 } = i2(30801); + function o() { + o.baseConstructor.apply(this, arguments); + } + n2.extend(o, r2, true), e2.exports = o; + }, 76632: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.GetJourneySessionsByCustomerActionModel = void 0; + const n2 = i2(31635), r2 = i2(28904), o = i2(80295), a = n2.__importDefault(i2(7401)), s = i2(30801), l = i2(80295); + class u extends r2.BaseFindSystemObjectByIdActionModel { + constructor(e3) { + super(e3), this.__type = u.__type, (0, l.makeUnenumerable)(this, "_findIdType"); + } + get findIdType() { + return this._findIdType; + } + set findIdType(e3) { + this._findIdType = this.reviveItem(e3, a.default); + } + pasteReIdOrRename(e3) { + super.pasteReIdOrRename(e3), this._findIdType.pasteReIdOrRename(e3); + } + pasteResolveOldToNewValues(e3) { + super.pasteResolveOldToNewValues(e3), this._findIdType.pasteResolveOldToNewValues(e3); + } + } + t2.GetJourneySessionsByCustomerActionModel = u, u.__type = s.getJourneySessionsByCustomerActionType, n2.__decorate([(0, o.enumerable)(true), n2.__metadata("design:type", Object), n2.__metadata("design:paramtypes", [Object])], u.prototype, "findIdType", null), u.registerType(); + }, 76634: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(37873)); + class r2 extends n2.default { + constructor(e3) { + super(e3), this._coreSpeechRecSettingsViewModel = e3; + } + get displayTypeName() { + return "ArchSettingsSpeechRec"; + } + get _allowBlankObjectId() { + return true; + } + get completeMatchTimeout() { + return this.coreFactory.createArchWrapper(this._getCoreViewModel().speechRecTimeoutComplete); + } + get incompleteMatchTimeout() { + return this.coreFactory.createArchWrapper(this._getCoreViewModel().speechRecTimeoutIncomplete); + } + get maxSpeechLengthTimeout() { + return this.coreFactory.createArchWrapper(this._getCoreViewModel().speechRecTimeoutTotal); + } + get logStr() { + if (!this._coreSpeechRecSettingsViewModel) return this.logStrTypeOnly; + const e3 = []; + return this._appendLogStrType(e3, this.displayTypeName), this._createLogStrFromParts(e3); + } + get minConfidenceLevel() { + return this.coreFactory.createArchWrapper(this._getCoreViewModel().speechRecMinConfidence); + } + get isArchSettingsSpeechRec() { + return true; + } + } + t2.default = r2; + }, 76641: (e2) => { + e2.exports = { askCommon: { invalidInputReceived: "\u041D\u0435\u0434\u043E\u043F\u0443\u0441\u0442\u0438\u043C\u044B\u0435 \u0432\u0445\u043E\u0434\u043D\u044B\u0435 \u0434\u0430\u043D\u043D\u044B\u0435.", noInputReceived: "\u0412\u0445\u043E\u0434\u043D\u044B\u0435 \u0434\u0430\u043D\u043D\u044B\u0435 \u043D\u0435 \u043F\u043E\u043B\u0443\u0447\u0435\u043D\u044B." }, askForBoolean: { noInput: '\u0415\u0441\u043B\u0438 \u0432\u044B \u0445\u043E\u0442\u0438\u0442\u0435 \u043F\u0440\u043E\u0434\u043E\u043B\u0436\u0438\u0442\u044C, \u0441\u043A\u0430\u0436\u0438\u0442\u0435 "\u0434\u0430". \u0415\u0441\u043B\u0438 \u043D\u0435 \u0445\u043E\u0442\u0438\u0442\u0435, \u0441\u043A\u0430\u0436\u0438\u0442\u0435 "\u043D\u0435\u0442".', noMatch: '\u041F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u0441\u043A\u0430\u0436\u0438\u0442\u0435 "\u0414\u0430" \u0438\u043B\u0438 "\u041D\u0435\u0442". \u041F\u0440\u043E\u0434\u043E\u043B\u0436\u0438\u0442\u044C?', question: "\u041F\u0440\u043E\u0434\u043E\u043B\u0436\u0438\u0442\u044C?", noInputDigitalBot: '\u0415\u0441\u043B\u0438 \u0445\u043E\u0442\u0438\u0442\u0435 \u043F\u0440\u043E\u0434\u043E\u043B\u0436\u0438\u0442\u044C, \u0432\u0432\u0435\u0434\u0438\u0442\u0435 "\u0414\u0430". \u0415\u0441\u043B\u0438 \u043D\u0435 \u0445\u043E\u0442\u0438\u0442\u0435, \u0432\u0432\u0435\u0434\u0438\u0442\u0435 "\u041D\u0435\u0442".', noMatchDigitalBot: '\u041F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u0432\u0432\u0435\u0434\u0438\u0442\u0435 "\u0414\u0430" \u0438\u043B\u0438 "\u041D\u0435\u0442". \u041F\u0440\u043E\u0434\u043E\u043B\u0436\u0438\u0442\u044C?' }, askForIntent: { noInput: '\u041F\u0440\u043E\u0438\u0437\u043D\u0435\u0441\u0438\u0442\u0435 \u043A\u043E\u0440\u043E\u0442\u043A\u043E\u0435 \u043F\u0440\u0435\u0434\u043B\u043E\u0436\u0435\u043D\u0438\u0435, \u043A\u043E\u0442\u043E\u0440\u043E\u0435 \u043E\u043F\u0438\u0441\u044B\u0432\u0430\u0435\u0442 \u0432\u0430\u0448 \u0437\u0430\u043F\u0440\u043E\u0441. \u041D\u0430\u043F\u0440\u0438\u043C\u0435\u0440, "\u041F\u0440\u043E\u0432\u0435\u0440\u0438\u0442\u044C \u043E\u0441\u0442\u0430\u0442\u043E\u043A \u043D\u0430 \u0441\u0447\u0435\u0442\u0435"', noMatch: "\u0421\u043A\u0430\u0436\u0438\u0442\u0435 \u0435\u0449\u0435 \u0440\u0430\u0437, \u0447\u0442\u043E \u0432\u044B \u0445\u043E\u0442\u0438\u0442\u0435 \u0441\u0434\u0435\u043B\u0430\u0442\u044C.", question: "\u0427\u0442\u043E \u0432\u044B \u0445\u043E\u0442\u0438\u0442\u0435 \u0441\u0434\u0435\u043B\u0430\u0442\u044C?", noInputDigitalBot: '\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u043A\u043E\u0440\u043E\u0442\u043A\u043E\u0435 \u043F\u0440\u0435\u0434\u043B\u043E\u0436\u0435\u043D\u0438\u0435, \u043A\u043E\u0442\u043E\u0440\u043E\u0435 \u043E\u043F\u0438\u0441\u044B\u0432\u0430\u0435\u0442 \u0432\u0430\u0448 \u0437\u0430\u043F\u0440\u043E\u0441. \u041D\u0430\u043F\u0440\u0438\u043C\u0435\u0440, "\u041F\u0440\u043E\u0432\u0435\u0440\u0438\u0442\u044C \u043E\u0441\u0442\u0430\u0442\u043E\u043A \u043D\u0430 \u0441\u0447\u0435\u0442\u0435"' }, askForSlot: { askFor: "\u0423\u0437\u043D\u0430\u0442\u044C %1$s", noInput: "\u041F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u043F\u0440\u043E\u0438\u0437\u043D\u0435\u0441\u0438\u0442\u0435 \u0438\u043B\u0438 \u0432\u0432\u0435\u0434\u0438\u0442\u0435 (\u0443\u043A\u0430\u0436\u0438\u0442\u0435 \u0437\u0434\u0435\u0441\u044C \u0438\u043C\u044F \u0441\u043B\u043E\u0442\u0430).", noInputWithSlot: "\u041F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u043F\u0440\u043E\u0438\u0437\u043D\u0435\u0441\u0438\u0442\u0435 \u0438\u043B\u0438 \u0432\u0432\u0435\u0434\u0438\u0442\u0435 %1$s.", noMatch: "\u041F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u0441\u043E\u043E\u0431\u0449\u0438\u0442\u0435 (\u0443\u043A\u0430\u0436\u0438\u0442\u0435 \u0437\u0434\u0435\u0441\u044C \u0438\u043C\u044F \u0441\u043B\u043E\u0442\u0430) \u0435\u0449\u0435 \u0440\u0430\u0437.", noMatchWithSlot: "\u041F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u0441\u043E\u043E\u0431\u0449\u0438\u0442\u0435 %1$s \u0435\u0449\u0435 \u0440\u0430\u0437.", question: "\u041D\u0430\u0437\u043E\u0432\u0438\u0442\u0435 (\u0443\u043A\u0430\u0436\u0438\u0442\u0435 \u0437\u0434\u0435\u0441\u044C \u0438\u043C\u044F \u0441\u043B\u043E\u0442\u0430).", questionWithSlot: "\u041D\u0430\u0437\u043E\u0432\u0438\u0442\u0435 %1$s.", pleaseEnterSlotNameHere: "(\u0443\u043A\u0430\u0436\u0438\u0442\u0435 \u0437\u0434\u0435\u0441\u044C \u0438\u043C\u044F \u0441\u043B\u043E\u0442\u0430)", noInputDigitalBot: "\u041F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u0432\u0432\u0435\u0434\u0438\u0442\u0435 (\u0443\u043A\u0430\u0436\u0438\u0442\u0435 \u0437\u0434\u0435\u0441\u044C \u0438\u043C\u044F \u0441\u043B\u043E\u0442\u0430).", noInputWithSlotDigitalBot: "\u041F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u0432\u0432\u0435\u0434\u0438\u0442\u0435 %1$s.", continuationPromptWithSlot: "\u041D\u0430 \u0434\u0430\u043D\u043D\u044B\u0439 \u043C\u043E\u043C\u0435\u043D\u0442 \u0443 \u043C\u0435\u043D\u044F {{Slot.%1$s}} \u043F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u043F\u0440\u043E\u0434\u043E\u043B\u0436\u0438\u0442\u0435." }, askForNextSlot: { noInput: '\u0415\u0441\u043B\u0438 \u0443 \u0432\u0430\u0441 \u0435\u0441\u0442\u044C \u0435\u0449\u0435 \u043E\u0434\u0438\u043D \u0437\u0430\u043F\u0440\u043E\u0441, \u0441\u043A\u0430\u0436\u0438\u0442\u0435 "\u0434\u0430". \u0427\u0442\u043E\u0431\u044B \u0437\u0430\u0432\u0435\u0440\u0448\u0438\u0442\u044C \u0437\u0432\u043E\u043D\u043E\u043A, \u0441\u043A\u0430\u0436\u0438\u0442\u0435 "\u043D\u0435\u0442".', noMatch: '\u0415\u0441\u043B\u0438 \u0443 \u0432\u0430\u0441 \u0435\u0441\u0442\u044C \u0435\u0449\u0435 \u043E\u0434\u0438\u043D \u0437\u0430\u043F\u0440\u043E\u0441, \u0441\u043A\u0430\u0436\u0438\u0442\u0435 "\u0414\u0430". \u0427\u0442\u043E\u0431\u044B \u0437\u0430\u0432\u0435\u0440\u0448\u0438\u0442\u044C \u0441\u0435\u0430\u043D\u0441, \u0441\u043A\u0430\u0436\u0438\u0442\u0435 "\u041D\u0435\u0442".', question: "\u0427\u0435\u043C \u0435\u0449\u0435 \u044F \u043C\u043E\u0433\u0443 \u043F\u043E\u043C\u043E\u0447\u044C \u0432\u0430\u043C?", noInputDigitalBot: '\u0415\u0441\u043B\u0438 \u0443 \u0432\u0430\u0441 \u0435\u0441\u0442\u044C \u0435\u0449\u0435 \u043E\u0434\u0438\u043D \u0437\u0430\u043F\u0440\u043E\u0441, \u0432\u0432\u0435\u0434\u0438\u0442\u0435 "\u0414\u0430". \u0427\u0442\u043E\u0431\u044B \u0437\u0430\u0432\u0435\u0440\u0448\u0438\u0442\u044C \u0441\u0435\u0430\u043D\u0441, \u0432\u0432\u0435\u0434\u0438\u0442\u0435 "\u041D\u0435\u0442".', noMatchDigitalBot: '\u0415\u0441\u043B\u0438 \u0443 \u0432\u0430\u0441 \u0435\u0441\u0442\u044C \u0435\u0449\u0435 \u043E\u0434\u0438\u043D \u0437\u0430\u043F\u0440\u043E\u0441, \u0432\u0432\u0435\u0434\u0438\u0442\u0435 "\u0414\u0430". \u0427\u0442\u043E\u0431\u044B \u0437\u0430\u0432\u0435\u0440\u0448\u0438\u0442\u044C \u0441\u0435\u0430\u043D\u0441, \u0432\u0432\u0435\u0434\u0438\u0442\u0435 "\u041D\u0435\u0442".' }, askForPayment: { noInputDigitalBot: "\u0414\u043B\u044F \u043F\u0440\u043E\u0434\u043E\u043B\u0436\u0435\u043D\u0438\u044F \u0443\u043A\u0430\u0436\u0438\u0442\u0435 \u043F\u043B\u0430\u0442\u0435\u0436\u043D\u044B\u0435 \u0434\u0430\u043D\u043D\u044B\u0435.", noMatchDigitalBot: "\u041C\u043D\u0435 \u043D\u0435\u043F\u043E\u043D\u044F\u0442\u0435\u043D \u0432\u0430\u0448 \u043E\u0442\u0432\u0435\u0442. \u041F\u043E\u043F\u0440\u043E\u0431\u0443\u0439\u0442\u0435 \u0435\u0449\u0435 \u0440\u0430\u0437." }, askForAuthentication: { noInputDigitalBot: "\u0414\u043B\u044F \u043F\u0440\u043E\u0434\u043E\u043B\u0436\u0435\u043D\u0438\u044F \u0432\u0432\u0435\u0434\u0438\u0442\u0435 \u0434\u0430\u043D\u043D\u044B\u0435 \u0430\u0443\u0442\u0435\u043D\u0442\u0438\u0444\u0438\u043A\u0430\u0446\u0438\u0438.", noMatchDigitalBot: "\u041C\u043D\u0435 \u043D\u0435\u043F\u043E\u043D\u044F\u0442\u0435\u043D \u0432\u0430\u0448 \u043E\u0442\u0432\u0435\u0442. \u041F\u043E\u043F\u0440\u043E\u0431\u0443\u0439\u0442\u0435 \u0435\u0449\u0435 \u0440\u0430\u0437." }, askSurveyQuestion: { notApplicable: "\u041D\u0435\u043F\u0440\u0438\u043C\u0435\u043D\u0438\u043C\u043E", surveyAnswerOptionSequence: "\u041D\u0430\u0436\u043C\u0438\u0442\u0435 %1$s \u0434\u043B\u044F '%2$s'.", surveyAnswerNotApplicableSequence: "\u041D\u0430\u0436\u043C\u0438\u0442\u0435 \u0437\u0432\u0435\u0437\u0434\u043E\u0447\u043A\u0443 \u0434\u043B\u044F \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438 \xAB\u041D\u0435\u043F\u0440\u0438\u043C\u0435\u043D\u0438\u043C\u043E\xBB", surveyAnswerNotApplicableWithQuestionSequence: "%1$s. \u041D\u0430\u0436\u043C\u0438\u0442\u0435 \u0437\u0432\u0435\u0437\u0434\u043E\u0447\u043A\u0443 \u0434\u043B\u044F \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438 \xAB\u041D\u0435\u043F\u0440\u0438\u043C\u0435\u043D\u0438\u043C\u043E\xBB.", voiceSurveyNoInputText: "\u0414\u0430\u0442\u0435 \u043E\u0442\u0432\u0435\u0442 \u043D\u0430 \u0432\u043E\u043F\u0440\u043E\u0441.", voiceSurveyNoMatchText: "\u041D\u0435 \u043F\u043E\u043D\u0438\u043C\u0430\u044E \u0432\u0430\u0441." }, commonModule: { exitCommonModule: "\u0412\u044B\u0445\u043E\u0434 \u0438\u0437 \u043E\u0431\u0449\u0435\u0433\u043E \u043C\u043E\u0434\u0443\u043B\u044F" }, form: { noInputDigitalBot: "\u0414\u043B\u044F \u043F\u0440\u043E\u0434\u043E\u043B\u0436\u0435\u043D\u0438\u044F \u0437\u0430\u0432\u0435\u0440\u0448\u0438\u0442\u0435 \u0437\u0430\u043F\u043E\u043B\u043D\u0435\u043D\u0438\u0435 \u0444\u043E\u0440\u043C\u044B.", noMatchDigitalBot: "\u0414\u043B\u044F \u043F\u0440\u043E\u0434\u043E\u043B\u0436\u0435\u043D\u0438\u044F \u0437\u0430\u0432\u0435\u0440\u0448\u0438\u0442\u0435 \u0437\u0430\u043F\u043E\u043B\u043D\u0435\u043D\u0438\u0435 \u0444\u043E\u0440\u043C\u044B." }, messagingTemplate: { noInputDigitalBot: "\xAB\u041F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430 \u0432\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u043E\u0434\u0438\u043D \u0438\u0437 \u0434\u043E\u0441\u0442\u0443\u043F\u043D\u044B\u0445 \u0432\u0430\u0440\u0438\u0430\u043D\u0442\u043E\u0432.\xBB", noMatchDigitalBot: "\xAB\u041F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430 \u0432\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u043E\u0434\u0438\u043D \u0438\u0437 \u0434\u043E\u0441\u0442\u0443\u043F\u043D\u044B\u0445 \u0432\u0430\u0440\u0438\u0430\u043D\u0442\u043E\u0432.\xBB." }, knowledgeSettings: { knowledgeAnswerHighlightFlowProgressionDefault: "\u041F\u0440\u043E\u0434\u043E\u043B\u0436\u0438\u0442\u044C", knowledgeAnswerHighlightFullArticleDefault: "\u041F\u0440\u043E\u0441\u043C\u043E\u0442\u0440\u0435\u0442\u044C \u043F\u043E\u043B\u043D\u0443\u044E \u0441\u0442\u0430\u0442\u044C\u044E", knowledgeInitialResponseMulti: "\u0427\u0442\u043E\u0431\u044B \u043F\u043E\u043C\u043E\u0447\u044C \u043C\u043D\u0435 \u0431\u043E\u043B\u0435\u0435 \u0447\u0435\u0442\u043A\u043E \u043E\u043F\u0440\u0435\u0434\u0435\u043B\u0438\u0442\u044C \u0432\u0430\u0448\u0443 \u0446\u0435\u043B\u044C, \u0432\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u0432\u0430\u0440\u0438\u0430\u043D\u0442 \u043E\u0442\u0432\u0435\u0442\u0430 \u0438\u0437 \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u0433\u043E \u0441\u043F\u0438\u0441\u043A\u0430:", knowledgeInitialResponseMultiRetry: "\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u043D\u043E\u043C\u0435\u0440 \u0432\u0430\u0440\u0438\u0430\u043D\u0442\u0430 \u043E\u0442\u0432\u0435\u0442\u0430, \u043D\u0430\u043F\u0440\u0438\u043C\u0435\u0440, '1'.\n\u0412\u043E\u0442 \u0435\u0449\u0435 \u0440\u0430\u0437 \u0441\u043F\u0438\u0441\u043E\u043A \u0432\u0430\u0440\u0438\u0430\u043D\u0442\u043E\u0432 \u043E\u0442\u0432\u0435\u0442\u043E\u0432:", knowledgeNoMatch: "\u041D\u0438 \u043E\u0434\u0438\u043D \u0438\u0437 \u044D\u0442\u0438\u0445 \u0432\u0430\u0440\u0438\u0430\u043D\u0442\u043E\u0432", knowledgeConfirmation: "\u041F\u043E\u043B\u0443\u0447\u0438\u043B\u0438 \u043B\u0438 \u0432\u044B \u043E\u0442\u0432\u0435\u0442 \u043D\u0430 \u0441\u0432\u043E\u0439 \u0432\u043E\u043F\u0440\u043E\u0441?", knowledgeFollowup: "\u041D\u0430\u0434\u0435\u044E\u0441\u044C, \u0432\u044B \u043F\u043E\u043B\u0443\u0447\u0438\u043B\u0438 \u043E\u0442\u0432\u0435\u0442 \u043D\u0430 \u0441\u0432\u043E\u0439 \u0432\u043E\u043F\u0440\u043E\u0441. \u0412\u044B \u043C\u043E\u0436\u0435\u0442\u0435 \u0437\u0430\u0434\u0430\u0442\u044C \u0434\u0440\u0443\u0433\u043E\u0439 \u0432\u043E\u043F\u0440\u043E\u0441, \u0435\u0441\u043B\u0438 \u043E\u043D \u0443 \u0432\u0430\u0441 \u0435\u0441\u0442\u044C." }, noOverlay: { intent: { intentConfirmationStr1: "\u041F\u043E-\u043C\u043E\u0435\u043C\u0443, \u0432\u044B \u0445\u043E\u0442\u0438\u0442\u0435", intentConfirmationStr2: "\u042D\u0442\u043E \u0432\u0435\u0440\u043D\u043E?" }, youSaid: { youSaidConfirmationStr1: "\u0412\u044B \u0441\u043A\u0430\u0437\u0430\u043B\u0438", youSaidConfirmationStr2: "\u042D\u0442\u043E \u0432\u0435\u0440\u043D\u043E?", youSaidConfirmationStr1DigitalBot: "\u0412\u044B \u0432\u0432\u0435\u043B\u0438" }, noInput: { noInputStr1: "\u041F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u043F\u0440\u043E\u0438\u0437\u043D\u0435\u0441\u0438\u0442\u0435 \u0438\u043B\u0438 \u0432\u0432\u0435\u0434\u0438\u0442\u0435", noInputStr1DigitalBot: "\u041F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u0432\u0432\u0435\u0434\u0438\u0442\u0435" }, noMatch: { noMatchStr1: "\u041F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u0441\u043E\u043E\u0431\u0449\u0438\u0442\u0435" }, whatIs: { whatIsQuestionStr1: "\u041D\u0430\u0437\u043E\u0432\u0438\u0442\u0435", whatIsQuestionStr2: "?" }, iGotContinuation: { iGotContinuationStr1: "\u041D\u0430 \u0434\u0430\u043D\u043D\u044B\u0439 \u043C\u043E\u043C\u0435\u043D\u0442 \u0443 \u043C\u0435\u043D\u044F", iGotContinuationStr2: ", \u043F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u043F\u0440\u043E\u0434\u043E\u043B\u0436\u0438\u0442\u0435." } }, defaultCallFlowOne: "\u041F\u043E\u0442\u043E\u043A \u0437\u0432\u043E\u043D\u043A\u043E\u0432 \u043F\u043E \u0443\u043C\u043E\u043B\u0447\u0430\u043D\u0438\u044E", errorHandlingAgentEscalationConfirmation: "\u0412\u044B \u0445\u043E\u0442\u0438\u0442\u0435 \u043F\u043E\u0433\u043E\u0432\u043E\u0440\u0438\u0442\u044C \u0441 \u043A\u043E\u043D\u0441\u0443\u043B\u044C\u0442\u0430\u043D\u0442\u043E\u043C. \u042D\u0442\u043E \u0432\u0435\u0440\u043D\u043E?", errorHandlingAgentEscalationHandover: "\u041F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u043F\u043E\u0434\u043E\u0436\u0434\u0438\u0442\u0435 \u043D\u0435\u043C\u043D\u043E\u0433\u043E, \u044F \u043F\u0435\u0440\u0435\u0432\u0435\u0434\u0443 \u0432\u0430\u0441 \u043D\u0430 \u0434\u0440\u0443\u0433\u0443\u044E \u043B\u0438\u043D\u0438\u044E.", errorHandlingErrorEventHandover: "\u041A \u0441\u043E\u0436\u0430\u043B\u0435\u043D\u0438\u044E, \u043F\u0440\u043E\u0438\u0437\u043E\u0448\u043B\u0430 \u043E\u0448\u0438\u0431\u043A\u0430. \u041F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u043F\u043E\u0434\u043E\u0436\u0434\u0438\u0442\u0435 \u043D\u0435\u043C\u043D\u043E\u0433\u043E, \u044F \u043F\u0435\u0440\u0435\u0432\u0435\u0434\u0443 \u0432\u0430\u0441 \u043D\u0430 \u043B\u0438\u043D\u0438\u044E, \u0433\u0434\u0435 \u0432\u0430\u043C \u043F\u043E\u043C\u043E\u0433\u0443\u0442.", errorHandlingErrorEventHandoverVoiceSurvey: "\u041A \u0441\u043E\u0436\u0430\u043B\u0435\u043D\u0438\u044E, \u043F\u0440\u043E\u0438\u0437\u043E\u0448\u043B\u0430 \u043E\u0448\u0438\u0431\u043A\u0430. \u0412\u0441\u0435\u0433\u043E \u0445\u043E\u0440\u043E\u0448\u0435\u0433\u043E.", errorHandlingRecognitionEventHandover: "\u041A \u0441\u043E\u0436\u0430\u043B\u0435\u043D\u0438\u044E, \u043C\u043D\u0435 \u043D\u0435 \u0443\u0434\u0430\u043B\u043E\u0441\u044C \u0432\u0430\u0441 \u043F\u043E\u043D\u044F\u0442\u044C. \u041F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u043F\u043E\u0434\u043E\u0436\u0434\u0438\u0442\u0435 \u043D\u0435\u043C\u043D\u043E\u0433\u043E, \u044F \u043F\u0435\u0440\u0435\u0432\u0435\u0434\u0443 \u0432\u0430\u0441 \u043D\u0430 \u043B\u0438\u043D\u0438\u044E, \u0433\u0434\u0435 \u0432\u0430\u043C \u043F\u043E\u043C\u043E\u0433\u0443\u0442.", errorHandlingRecognitionEventHandoverVoiceSurvey: "\u041A \u0441\u043E\u0436\u0430\u043B\u0435\u043D\u0438\u044E, \u043D\u0435 \u043F\u043E\u043D\u0438\u043C\u0430\u044E \u0432\u0430\u0441. \u0412\u0441\u0435\u0433\u043E \u0445\u043E\u0440\u043E\u0448\u0435\u0433\u043E.", errorHandlingTTS: "\u041A \u0441\u043E\u0436\u0430\u043B\u0435\u043D\u0438\u044E, \u043F\u0440\u043E\u0438\u0437\u043E\u0448\u043B\u0430 \u043E\u0448\u0438\u0431\u043A\u0430. \u041F\u043E\u043F\u0440\u043E\u0431\u0443\u0439\u0442\u0435 \u043F\u043E\u0437\u0432\u043E\u043D\u0438\u0442\u044C \u0435\u0449\u0435 \u0440\u0430\u0437.", initialGreetingTTS: "\u0417\u0434\u0440\u0430\u0432\u0441\u0442\u0432\u0443\u0439\u0442\u0435, \u044D\u0442\u043E \u0438\u0441\u0445\u043E\u0434\u043D\u043E\u0435 \u043F\u0440\u0438\u0432\u0435\u0442\u0441\u0442\u0432\u0438\u0435.", initialState: "\u0418\u0441\u0445\u043E\u0434\u043D\u043E\u0435 \u0441\u043E\u0441\u0442\u043E\u044F\u043D\u0438\u0435", initialBotState: "\u0411\u043E\u0442 \u043F\u043E \u0443\u043C\u043E\u043B\u0447\u0430\u043D\u0438\u044E", initialDigitalBotState: "\u0418\u0441\u0445\u043E\u0434\u043D\u043E\u0435 \u043F\u0440\u0438\u0432\u0435\u0442\u0441\u0442\u0432\u0438\u0435", initialSurveyBotState: "\u0411\u043E\u0442 \u043E\u043F\u0440\u043E\u0441\u0430", intentConfirmation: "\u041F\u043E-\u043C\u043E\u0435\u043C\u0443, \u0432\u044B \u0445\u043E\u0442\u0438\u0442\u0435 %1$s. \u042D\u0442\u043E \u0432\u0435\u0440\u043D\u043E?", mainMenu: "\u0413\u043B\u0430\u0432\u043D\u043E\u0435 \u043C\u0435\u043D\u044E", mainMenuTTS: "\u0412\u044B \u0432 \u0433\u043B\u0430\u0432\u043D\u043E\u043C \u043C\u0435\u043D\u044E; \u0434\u043B\u044F \u043E\u0442\u0441\u043E\u0435\u0434\u0438\u043D\u0435\u043D\u0438\u044F \u043D\u0430\u0436\u043C\u0438\u0442\u0435 9", mainTask: "\u0417\u0430\u0434\u0430\u0447\u0430", settingsConfirmationNoInputApology: "\u041A \u0441\u043E\u0436\u0430\u043B\u0435\u043D\u0438\u044E, \u043C\u043D\u0435 \u043D\u0435 \u0443\u0434\u0430\u043B\u043E\u0441\u044C \u0432\u0430\u0441 \u0443\u0441\u043B\u044B\u0448\u0430\u0442\u044C. \u041F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u0441\u043A\u0430\u0436\u0438\u0442\u0435 \xAB\u0434\u0430\xBB \u0438\u043B\u0438 \xAB\u043D\u0435\u0442\xBB.", settingsConfirmationNoInputApologyDigitalBot: '\u0418\u0437\u0432\u0438\u043D\u0438\u0442\u0435, \u0432\u044B \u043D\u0438\u0447\u0435\u0433\u043E \u043D\u0435 \u0432\u0432\u0435\u043B\u0438. \u041F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u0432\u0432\u0435\u0434\u0438\u0442\u0435 "\u0414\u0430" \u0438\u043B\u0438 "\u041D\u0435\u0442".', settingsConfirmationNoMatchApology: "\u041F\u0440\u043E\u0441\u0442\u0438\u0442\u0435. \u041F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u0441\u043A\u0430\u0436\u0438\u0442\u0435 \xAB\u0434\u0430\xBB \u0438\u043B\u0438 \xAB\u043D\u0435\u0442\xBB.", settingsConfirmationNoMatchApologyDigitalBot: '\u0418\u0437\u0432\u0438\u043D\u0438\u0442\u0435. \u041F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u0432\u0432\u0435\u0434\u0438\u0442\u0435 "\u0414\u0430"\u0438\u043B\u0438 "\u041D\u0435\u0442".', settingsNoInputApology: "\u041A \u0441\u043E\u0436\u0430\u043B\u0435\u043D\u0438\u044E, \u043C\u043D\u0435 \u043D\u0435 \u0443\u0434\u0430\u043B\u043E\u0441\u044C \u0432\u0430\u0441 \u0443\u0441\u043B\u044B\u0448\u0430\u0442\u044C.", settingsNoInputApologyDigitalBot: "\u0418\u0437\u0432\u0438\u043D\u0438\u0442\u0435, \u0432\u044B \u043D\u0438\u0447\u0435\u0433\u043E \u043D\u0435 \u0432\u0432\u0435\u043B\u0438.", settingsEndOfSessionMessageDigitalBot: "\u0412\u044B \u0434\u0430\u0432\u043D\u043E \u043D\u0435 \u043F\u0438\u0441\u0430\u043B\u0438, \u043F\u043E\u044D\u0442\u043E\u043C\u0443 \u044F \u0437\u0430\u043A\u0440\u044B\u0432\u0430\u044E \u044D\u0442\u043E\u0442 \u0447\u0430\u0442. \u041E\u0431\u0440\u0430\u0449\u0430\u0439\u0442\u0435\u0441\u044C \u0441\u043D\u043E\u0432\u0430, \u0435\u0441\u043B\u0438 \u0412\u0430\u043C \u043F\u043E\u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044F \u043C\u043E\u044F \u043F\u043E\u043C\u043E\u0449\u044C. \u0421\u043F\u0430\u0441\u0438\u0431\u043E.", settingsNoMatchApology: "\u041F\u0440\u043E\u0441\u0442\u0438\u0442\u0435.", settingsNoToConfirmationApology: "\u0418\u0437\u0432\u0438\u043D\u0438\u0442\u0435 \u043C\u0435\u043D\u044F.", periodicStateName: "\u041F\u043E\u0432\u0442\u043E\u0440\u044F\u044E\u0449\u0435\u0435\u0441\u044F \u0441\u043E\u0441\u0442\u043E\u044F\u043D\u0438\u0435" }; + }, 76657: (e2, t2, i2) => { + "use strict"; + const n2 = i2(31635), r2 = i2(80428), o = i2(64720), a = i2(81516), s = n2.__importDefault(i2(27203)), l = i2(96546), u = i2(12179), d = i2(82632), c = n2.__importDefault(i2(97891)), p = i2(87870), _ = n2.__importDefault(i2(5730)), h = i2(47957); + class m extends _.default { + constructor(e3, t3) { + super(e3.parentFlow, e3), this._loadModel(t3); + } + static get branchInfo() { + return s.default.successFailure; + } + static get managedProperties() { + return [{ createDetails: p.NoteActionProperty.createCreateDetails(h.sendInteractiveApplication.sendApplicationSupportNoteApple, "info", "showAppleNote"), property: "appleInfo", yamlOptions: m.createYamlOptions("appleInfo", (e3) => e3.setSkipProperty(true)) }, { label: h.sendInteractiveApplication.applicationName, options: a.ExpressionTypeStringOptions.create((e3) => e3.setIsOptional(false).setAllowModeBuilder(false).setIninTestingField("applicationName").setAllowNotSet(false).facets.setAllowableValuePlaceholder(h.sendInteractiveApplication.applicationNamePlaceholder).setMinLength(d.interactiveApplicationLimits.application.name.minLength).setAllowNull(false)), property: "applicationName", type: r2.expressionTypeNames.string }, { label: h.sendInteractiveApplication.applicationUrl, options: a.ExpressionTypeStringOptions.create((e3) => e3.setIsOptional(false).setIninTestingField("applicationUrl").setAllowModeBuilder(false).setAllowNotSet(false).facets.setAllowableValuePlaceholder(h.sendInteractiveApplication.applicationUrlPlaceholder).setMinLength(d.interactiveApplicationLimits.application.url.minLength).setAllowNull(false)), property: "applicationUrl", type: r2.expressionTypeNames.string }, { label: h.image.image, options: o.ExpressionTypeImageOptions.create((e3) => e3.setIsOptional(true).setAllowModeLiteralOnly().setUiPropertyGroup(h.sendInteractiveApplication.receivedMessage).setIninTestingField("applicationImage")), property: "applicationImage", type: r2.expressionTypeNames.image }, { label: h.cardsAndCars.buttonTitlePlaceholder, options: a.ExpressionTypeStringOptions.create((e3) => e3.setIsOptional(true).setIninTestingField("title").setUiPropertyGroup(h.sendInteractiveApplication.receivedMessage).setDefaultToNoValue(true).facets.setAllowableValuePlaceholder(h.sendInteractiveApplication.titlePlaceholder).setMaxLength(d.interactiveApplicationLimits.receivedMessage.title.maxLength)), property: "title", type: r2.expressionTypeNames.string }, { label: h.cardsAndCars.timePickerType.subtitlePlaceHolder, options: a.ExpressionTypeStringOptions.create((e3) => e3.setIsOptional(true).setIninTestingField("subTitle").setUiPropertyGroup(h.sendInteractiveApplication.receivedMessage).setDefaultToNoValue(true).facets.setMaxLength(d.interactiveApplicationLimits.receivedMessage.subTitle.maxLength)), property: "subTitle", type: r2.expressionTypeNames.string }]; + } + } + m.info = c.default.createActionInfo({ actionClass: m, canBeInTask: true, canBeTreeNode: false, helpTopic: u.helpTopics.actions.sendInteractiveApplication, modelClass: i2(4009), name: h.actions.sendInteractiveApplication, scriptingName: "ArchActionSendInteractiveApplication", supportedSessionSources: l.appleBusinessOnly }), t2.A = m; + }, 76692: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.buildWorkitemFlowSettingConfig = function(e3) { + var t3, i3; + const n3 = { worktype: { id: e3.id, name: e3.name, schema: e3.schema, statuses: [], dateBasedRules: e3.dateBasedRules }, customFieldsSchemaName: "", customFieldsSchemaId: "" }; + return n3.customFieldsSchemaId = null === (t3 = e3.schema) || void 0 === t3 ? void 0 : t3.id, n3.customFieldsSchemaName = null === (i3 = e3.schema) || void 0 === i3 ? void 0 : i3.name, n3; + }, t2.createWorkitemFlow = function(e3, t3, i3, s2) { + return n2.__awaiter(this, void 0, void 0, function* () { + const n3 = yield o.worktypeManager.apiCallSingle(e3), c = new r2.default(i3), p = a.getFullFlow(c); + return yield u.loadTemplate(p, t3), d.info(`Calling configureForWorktype with a value of '${s2}' for createInitialActionsBasedOnWorktypeConfig. Worktype id: ${e3}`), yield p.configureForWorktype(n3, s2), yield l.default.initializeDesignTimeAndValidate(p), p; + }); + }; + const n2 = i2(31635), r2 = n2.__importDefault(i2(90396)), o = i2(38725), a = n2.__importStar(i2(89884)), s = n2.__importStar(i2(24032)), l = n2.__importDefault(i2(96875)), u = i2(46920), d = s.getTopic("WorkitemFlowCreation"); + }, 76768: (e2, t2, i2) => { + const n2 = i2(92140), r2 = i2(24005), { uuid: o } = i2(9456); + function a() { + this.id = void 0, this.name = void 0, a.baseConstructor.apply(this, arguments), this.id || (this.id = o()); + } + r2.extend(a, "BaseFlowItemWithNameAndId"), Object.defineProperties(a.prototype, { pasteResolveOldToNewValues: { value: function(e3) { + } }, pasteReIdOrRename: { value: function(e3) { + this.id = e3.pasteGenerateNewGuid(this.id); + } }, pasteResolveReferenceAndName: { value: function(e3, t3, i3, r3) { + const o2 = { reference: e3.pasteResolveOldIdToNewId(i3) }; + switch (t3) { + case "menu": + o2.name = e3.pasteResolveOldMenuNameToNewMenuName(r3); + break; + case "state": + o2.name = e3.pasteResolveOldStateNameToNewStateName(r3); + break; + case "task": + o2.name = e3.pasteResolveOldTaskNameToNewTaskName(r3); + break; + default: + throw "unsupported resolve type passed to pasteResolveReferenceAndName"; + } + if (o2.reference !== i3) return o2; + let a2; + switch (t3) { + case "menu": + a2 = e3.pasteContext.destFlowViewModel.menus; + break; + case "state": + a2 = e3.pasteContext.destFlowViewModel.states; + break; + case "task": + a2 = e3.pasteContext.destFlowViewModel.tasks; + break; + default: + throw "unsupported resolve type passed to pasteResolveReferenceAndName"; + } + if (!a2) return o2; + let s = n2.find(a2, function(e4) { + return e4.id === i3; + }); + return n2.isUndefined(s) && n2.isString(r3) && (s = n2.find(a2, function(e4) { + return e4.name === r3; + })), s && (o2.reference = s.id, o2.name = s.name), o2; + } } }), e2.exports = a; + }, 76808: function(e2, t2, i2) { + "use strict"; + var n2, r2 = this && this.__extends || (n2 = function(e3, t3) { + return n2 = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(e4, t4) { + e4.__proto__ = t4; + } || function(e4, t4) { + for (var i3 in t4) Object.prototype.hasOwnProperty.call(t4, i3) && (e4[i3] = t4[i3]); + }, n2(e3, t3); + }, function(e3, t3) { + if ("function" != typeof t3 && null !== t3) throw new TypeError("Class extends value " + String(t3) + " is not a constructor or null"); + function i3() { + this.constructor = e3; + } + n2(e3, t3), e3.prototype = null === t3 ? Object.create(t3) : (i3.prototype = t3.prototype, new i3()); + }), o = this && this.__values || function(e3) { + var t3 = "function" == typeof Symbol && Symbol.iterator, i3 = t3 && e3[t3], n3 = 0; + if (i3) return i3.call(e3); + if (e3 && "number" == typeof e3.length) return { next: function() { + return e3 && n3 >= e3.length && (e3 = void 0), { value: e3 && e3[n3++], done: !e3 }; + } }; + throw new TypeError(t3 ? "Object is not iterable." : "Symbol.iterator is not defined."); + }; + Object.defineProperty(t2, "__esModule", { value: true }), t2.AnonymousSubject = t2.Subject = void 0; + var a = i2(48051), s = i2(69879), l = i2(50839), u = i2(54830), d = i2(12688), c = (function(e3) { + function t3() { + var t4 = e3.call(this) || this; + return t4.closed = false, t4.currentObservers = null, t4.observers = [], t4.isStopped = false, t4.hasError = false, t4.thrownError = null, t4; + } + return r2(t3, e3), t3.prototype.lift = function(e4) { + var t4 = new p(this, this); + return t4.operator = e4, t4; + }, t3.prototype._throwIfClosed = function() { + if (this.closed) throw new l.ObjectUnsubscribedError(); + }, t3.prototype.next = function(e4) { + var t4 = this; + d.errorContext(function() { + var i3, n3; + if (t4._throwIfClosed(), !t4.isStopped) { + t4.currentObservers || (t4.currentObservers = Array.from(t4.observers)); + try { + for (var r3 = o(t4.currentObservers), a2 = r3.next(); !a2.done; a2 = r3.next()) a2.value.next(e4); + } catch (e5) { + i3 = { error: e5 }; + } finally { + try { + a2 && !a2.done && (n3 = r3.return) && n3.call(r3); + } finally { + if (i3) throw i3.error; + } + } + } + }); + }, t3.prototype.error = function(e4) { + var t4 = this; + d.errorContext(function() { + if (t4._throwIfClosed(), !t4.isStopped) { + t4.hasError = t4.isStopped = true, t4.thrownError = e4; + for (var i3 = t4.observers; i3.length; ) i3.shift().error(e4); + } + }); + }, t3.prototype.complete = function() { + var e4 = this; + d.errorContext(function() { + if (e4._throwIfClosed(), !e4.isStopped) { + e4.isStopped = true; + for (var t4 = e4.observers; t4.length; ) t4.shift().complete(); + } + }); + }, t3.prototype.unsubscribe = function() { + this.isStopped = this.closed = true, this.observers = this.currentObservers = null; + }, Object.defineProperty(t3.prototype, "observed", { get: function() { + var e4; + return (null === (e4 = this.observers) || void 0 === e4 ? void 0 : e4.length) > 0; + }, enumerable: false, configurable: true }), t3.prototype._trySubscribe = function(t4) { + return this._throwIfClosed(), e3.prototype._trySubscribe.call(this, t4); + }, t3.prototype._subscribe = function(e4) { + return this._throwIfClosed(), this._checkFinalizedStatuses(e4), this._innerSubscribe(e4); + }, t3.prototype._innerSubscribe = function(e4) { + var t4 = this, i3 = this, n3 = i3.hasError, r3 = i3.isStopped, o2 = i3.observers; + return n3 || r3 ? s.EMPTY_SUBSCRIPTION : (this.currentObservers = null, o2.push(e4), new s.Subscription(function() { + t4.currentObservers = null, u.arrRemove(o2, e4); + })); + }, t3.prototype._checkFinalizedStatuses = function(e4) { + var t4 = this, i3 = t4.hasError, n3 = t4.thrownError, r3 = t4.isStopped; + i3 ? e4.error(n3) : r3 && e4.complete(); + }, t3.prototype.asObservable = function() { + var e4 = new a.Observable(); + return e4.source = this, e4; + }, t3.create = function(e4, t4) { + return new p(e4, t4); + }, t3; + })(a.Observable); + t2.Subject = c; + var p = (function(e3) { + function t3(t4, i3) { + var n3 = e3.call(this) || this; + return n3.destination = t4, n3.source = i3, n3; + } + return r2(t3, e3), t3.prototype.next = function(e4) { + var t4, i3; + null === (i3 = null === (t4 = this.destination) || void 0 === t4 ? void 0 : t4.next) || void 0 === i3 || i3.call(t4, e4); + }, t3.prototype.error = function(e4) { + var t4, i3; + null === (i3 = null === (t4 = this.destination) || void 0 === t4 ? void 0 : t4.error) || void 0 === i3 || i3.call(t4, e4); + }, t3.prototype.complete = function() { + var e4, t4; + null === (t4 = null === (e4 = this.destination) || void 0 === e4 ? void 0 : e4.complete) || void 0 === t4 || t4.call(e4); + }, t3.prototype._subscribe = function(e4) { + var t4, i3; + return null !== (i3 = null === (t4 = this.source) || void 0 === t4 ? void 0 : t4.subscribe(e4)) && void 0 !== i3 ? i3 : s.EMPTY_SUBSCRIPTION; + }, t3; + })(c); + t2.AnonymousSubject = p; + }, 76827: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(74797), r2 = i2(30801); + class o extends n2.ArchBaseActionConversationAttribute { + constructor(e3) { + super(e3), this._recordId = this.coreFactory.createArchWrapper(e3.recordId), this._divisions = this.coreFactory.createArchWrapper(e3.divisions); + } + get _actionTypeId() { + return r2.updateConversationAttributeActionType; + } + get displayTypeName() { + return this._scriptingName; + } + get isArchActionUpdateConversationAttribute() { + return true; + } + get recordId() { + return this._recordId; + } + get divisions() { + return this._divisions; + } + } + t2.default = o; + }, 76869: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.VariableOptions = void 0; + const n2 = i2(31635), r2 = i2(80295), o = i2(80295), a = i2(42433), s = i2(55909), l = i2(33951); + class u extends a.BaseOptions { + static create(e3) { + return new this().invokeOptionsCallback(e3); + } + constructor() { + super(), (0, o.makeUnenumerable)(this, "_variableOptionsOverrideCallback"); + } + _setFromOptions(e3) { + super._setFromOptions(e3), this._setOptionIfSet(this.setVariableOptionsOverrideCallback, e3.variableOptionsOverrideCallback, "_variableOptionsOverrideCallback"); + } + get className() { + return "VariableOptions"; + } + get isVariableOptions() { + return true; + } + setVariableOptionsOverrideCallback(e3) { + return this.variableOptionsOverrideCallback = e3, this; + } + get variableOptionsOverrideCallback() { + return this._variableOptionsOverrideCallback; + } + set variableOptionsOverrideCallback(e3) { + this._variableOptionsOverrideCallback = l.ParameterValidator.expectFunction(e3, () => s.ParameterInfo.createPropertySet(this.className, "variableOptionsOverrideCallback", "value")); + } + } + t2.VariableOptions = u, n2.__decorate([(0, r2.enumerable)(true), n2.__metadata("design:type", Function), n2.__metadata("design:paramtypes", [Object])], u.prototype, "variableOptionsOverrideCallback", null); + }, 76919: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(54063)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "emailAddressCollection"; + } + get displayTypeName() { + return "ArchValueEmailAddressCollection"; + } + get isArchValueEmailAddressCollection() { + return true; + } + } + t2.default = r2; + }, 76978: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.ExpressionTypeChoiceOptions = void 0; + const n2 = i2(65615); + class r2 extends n2.BaseExpressionTypeCollectionOptions { + static create(e3, t3) { + return new this(t3).invokeOptionsCallback(e3); + } + constructor(e3) { + super(e3); + } + get className() { + return "ExpressionTypeChoiceOptions"; + } + get isExpressionTypeChoiceOptions() { + return true; + } + } + t2.ExpressionTypeChoiceOptions = r2; + }, 76982: (e2) => { + "use strict"; + e2.exports = require("crypto"); + }, 77031: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importDefault(i2(67193)), o = i2(30801), a = n2.__importDefault(i2(94225)); + class s extends r2.default { + constructor(e3) { + super(e3), this._appendSkills = this.coreFactory.createArchValueFromExpression(e3.appendSkills), this._directAgent = this.coreFactory.createArchValueFromExpression(e3.directAgent), this._languageSkill = this.coreFactory.createArchWrapper(e3.languageSkill), this._preferredAgents = this.coreFactory.createArchValueFromExpression(e3.preferredAgents), this._priority = this.coreFactory.createArchValueFromExpression(e3.priority), this._queues = this.coreFactory.createArchValueFromExpression(e3.queues), this._skills = this.coreFactory.createArchBaseValueContainer(e3.skills), this._skillExpressionFilters = this.coreFactory.createArchValueFromExpression(e3.skillExpressionFilters); + } + get _actionTypeId() { + return o.transferPureMatchActionType; + } + get displayTypeName() { + return this._scriptingName; + } + addLiteralBySkillNameAsync(e3, t3) { + return n2.__awaiter(this, void 0, void 0, function* () { + return this._checkItemIsValidLiteralString(this._infoParm("skillName", "addLiteralBySkillNameAsync"), e3), this._checkItemIsValidFunction(this._infoParm("callbackFunction", "addLiteralBySkillNameAsync"), t3, true), yield this._skills.addLiteralBySkillNameAsync(e3), a.default.executeCallback(this, "addLiteralBySkillNameAsync", t3, this); + }); + } + get isArchActionTransferToAcd() { + return true; + } + get priority() { + return this._priority; + } + get targetQueue() { + return this.coreFactory.createArchWrapper(this._queues._getCoreViewModel().items[0]); + } + setLiteralByQueueNameAsync(e3, t3) { + return n2.__awaiter(this, void 0, void 0, function* () { + return this._checkItemIsValidLiteralString(this._infoParm("queueName", "setLiteralByQueueNameAsync"), e3), this._checkItemIsValidFunction(this._infoParm("callbackFunction", "setLiteralByQueueNameAsync"), t3, true), yield this.targetQueue.setLiteralByQueueNameAsync(e3), a.default.executeCallback(this, "setLiteralByQueueNameAsync", t3, this); + }); + } + setLiteralByQueueIdAsync(e3, t3) { + return n2.__awaiter(this, void 0, void 0, function* () { + return this._checkItemIsValidLiteralString(this._infoParm("queueId", "setLiteralByQueueIdAsync"), e3), this._checkItemIsValidFunction(this._infoParm("callbackFunction", "setLiteralByQueueIdAsync"), t3, true), yield this.targetQueue.setLiteralByQueueIdAsync(e3), a.default.executeCallback(this, "setLiteralByQueueIdAsync", t3, this); + }); + } + get skills() { + return this._skills; + } + get appendSkills() { + return this._appendSkills; + } + get directAgent() { + return this._directAgent; + } + get languageSkill() { + return this._languageSkill; + } + get preferredAgents() { + return this._preferredAgents; + } + useDefaultInQueueHandling() { + this.logNote("setting the action to use default in-queue handling."), this._getCoreViewModel().useDefaultHandling = true; + } + get inQueueHandlingFlowInfo() { + if (this.inQueueHandlingFlowType && this._getCoreViewModel().inQueueFlowId) return this.coreFactory.createArchFlowInfoBasic(this._getCoreViewModel().inQueueFlowId, this._getCoreViewModel().inQueueFlowName, this.inQueueHandlingFlowType); + } + set inQueueHandlingFlowInfo(e3) { + const t3 = this._infoPropSet("newValue", "inQueueHandlingFlowInfo"); + this._checkItem(t3, !e3 || !e3.isArchFlowInfo && !e3.isArchFlowInfoBasic, "You must pass in an ArchFlowInfo or ArchFlowInfoBasic instance for the target in-queue Flow Info setter."), this._checkItem(t3, e3.type !== this.inQueueHandlingFlowType, "The flow info has a flow type of '" + e3.type + "' and it needs to be of type '" + this.inQueueHandlingFlowType + "'"), this.logNote("setting the in-queue flow '" + e3.name + "' to be used for the in-queue handling of the call."), this._getCoreViewModel().useDefaultHandling = false, this._getCoreViewModel().inQueueFlow.setInQueueFlow(e3.id, e3.name); + } + get inQueueHandlingFlowType() { + return this._getCoreViewModel().supportedInQueueFlowType; + } + get skillExpressionFilters() { + return this._skillExpressionFilters; + } + } + t2.default = s; + }, 77054: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.SurveyQuestionGroupType = void 0; + const n2 = i2(33668), r2 = i2(94765), o = i2(80428); + class a extends r2.ExpressionType { + constructor(e3, t3, i3) { + super(e3, t3, i3); + } + get className() { + return "SurveyQuestionGroupType"; + } + createExpressionOptionClass() { + return new n2.ExpressionTypeSurveyQuestionGroupOptions(); + } + validateLiteral(e3, t3) { + return true; + } + get supportsLiteralEditor() { + return false; + } + } + t2.SurveyQuestionGroupType = a, a.typeIdentifier = o.expressionTypeNames.surveyQuestionGroup; + }, 77105: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.PropertyDefinition = void 0; + const n2 = i2(31635), r2 = n2.__importDefault(i2(92140)), o = n2.__importDefault(i2(22917)), a = n2.__importStar(i2(12847)), s = i2(10798), l = i2(10798), u = i2(55299), d = n2.__importDefault(i2(87675)), c = i2(27491), p = n2.__importDefault(i2(65302)), _ = i2(7098), h = { isComputed: "boolean", isOptional: "boolean", isReadOnly: "boolean", isRequired: "boolean", isUnavailable: "boolean", literalOnly: "boolean", minItems: "integer", maxItems: "integer", maxItemsIsSoftLimit: "boolean", minLength: "integer", maxLength: "integer", minValue: "number", minValueInclusive: "boolean", maxValue: "number", maxValueInclusive: "boolean" }; + class m extends u.BaseClass { + constructor(e3, t3, i3) { + let n3; + super(), this.allowableValuesMap = {}, this._typeGroup = p.default.getTypeGroup(e3), this.model = t3, this.defaultValue = t3.defaultValue, this.description = i3, this.displayValue = t3.displayValue ? _.expression[t3.displayValue] : "", this.expressionText = c.expressionDataService.getExpressionIdentifier(t3.name), this.group = t3.group, this.id = t3.id, this.isRequired = t3.isRequired, this.literalOnly = t3.literalOnly, this.minItems = t3.minItems, this.minLength = t3.minLength, this.minValue = t3.minValue, this.minValueInclusive = t3.minValueInclusive, this.maxItems = t3.maxItems, this.maxLength = t3.maxLength, this.maxValue = t3.maxValue, this.maxValueInclusive = t3.maxValueInclusive, this.name = t3.name, this.parentFlow = e3, this.usageValidation = t3.usageValidation, this.version = t3.version, this.featureConfigName = t3.featureConfigName, this._supportedSessionSources = t3.supportedSessionSources, this.yamlSerializeIfOutOfService = t3.yamlSerializeIfOutOfService, r2.default.isUndefined(t3.maxItemsIsSoftLimit) || (this.maxItemsIsSoftLimit = !!t3.maxItemsIsSoftLimit), r2.default.isArray(t3.allowableValuesRaw) && t3.allowableValuesRaw.length ? n3 = t3.allowableValuesRaw : r2.default.isString(t3.allowableValues) && (n3 = t3.allowableValues.split(",")), r2.default.isArray(n3) && (null == n3 ? void 0 : n3.length) && (this.allowableValues = n3.map((e4) => { + let t4; + return t4 = (null == e4 ? void 0 : e4.displayString) && (null == e4 ? void 0 : e4.id) ? { id: e4.id, displayString: e4.displayString } : { id: e4, displayString: null == e4 ? void 0 : e4.toString() }, this.allowableValuesMap[t4.displayString] = true, t4; + })), t3.noValueRuntimeStr && (this.noValueRuntimeStr = t3.noValueRuntimeStr), t3.propertyToLiteralResolvers && (this.propertyToLiteralResolvers = t3.propertyToLiteralResolvers), t3.propertyResolvedLiteralValue && (this.propertyResolvedLiteralValue = t3.propertyResolvedLiteralValue), t3.isComputed && (this.isComputed = t3.isComputed), t3.isOptional && (this.isOptional = t3.isOptional), this.isReadOnly = !(false === t3.readOnly), this.yamlSerializeIfOutOfService && (this.yamlOptions = o.default.create(this.name, (e4) => e4.setSerializeOutOfService(true))); + } + _applyOverrides() { + if (this.model.overrides) { + for (const e3 of this.model.overrides) if (e3.featureConfigName && (0, l.isFeatureAvailable)(e3.featureConfigName)) if (h[e3.propertyName]) { + let t3; + switch (h[e3.propertyName]) { + case "integer": + t3 = parseInt(e3.newValue, 10), !isNaN(t3) && r2.default.isNumber(t3) || (t3 = void 0); + break; + case "number": + t3 = parseFloat(e3.newValue), !isNaN(t3) && r2.default.isNumber(t3) || (t3 = void 0); + break; + case "boolean": + t3 = true === e3.newValue || "true" === e3.newValue; + } + r2.default.isNullOrUndefined(t3) ? a.error(`an override value for the property facet '${e3.propertyName}' on property with id '${this.model.id}' could not be set because the override value ${e3.newValue} when converted to the appropriate typed value for the facet was either undefined, null or NaN. Skipping.`) : (this[e3.propertyName] = t3, this.model[e3.propertyName] = t3); + } else a.error(`an override value for the property facet '${e3.propertyName}' on property with id '${this.model.id}' could not be set because there is no type associated with the facet so do not know how to convert the desired override value. Skipping.`); + } + } + get typeGroup() { + return this._typeGroup; + } + get className() { + return "PropertyDefinition"; + } + createDataTypeDef() { + return d.default.createFromPropertyDefinition(this); + } + get type() { + const e3 = this._typeGroup.getType(this.model.type, this.model.isCollection); + return e3 || this._typeGroup.getType(this.model.type, this.model.isCollection), e3; + } + get isCollection() { + return !!this.model.isCollection; + } + get dataTypeId() { + return this.model.type; + } + get supportedSessionSources() { + return this._supportedSessionSources || []; + } + setJsonExpressionType(e3) { + return e3 ? e3.isJsonType ? (e3.model.support.expressionDataType === this.model.type && e3.model.support.expressionBaseDataType === this.model.baseType && !!e3.isCollection === this.model.isCollection || (a.info(`setting custom expression type on property '${this.name}' to '${e3.model.support.expressionDataType}'`), this.model.type = e3.model.support.expressionDataType, this.model.baseType = e3.model.support.expressionBaseDataType, this.model.isCollection = !!e3.isCollection), true) : (a.info(`a non JSON expression type was passed in to setCustomExpressionType for property '${this.name}'. Exiting.`), false) : (a.info(`no JSON expression type passed in when setting a custom expression type on property '${this.name}'. Exiting.`), false); + } + checkVersion(e3) { + e3.checkVersion(this.version), e3.checkVersion(this.type.version); + } + startupConnectedAndReady(e3) { + e3 ? (this.isUnavailable = !e3.availability.isAvailable, this._applyOverrides()) : this.featureConfigName && (this.isUnavailable = (0, s.isFeatureUnavailable)(this.featureConfigName)); + } + } + t2.PropertyDefinition = m; + }, 77109: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.briefCommonModuleFlowListManager = void 0; + const n2 = i2(31635), r2 = n2.__importStar(i2(36781)), o = n2.__importStar(i2(24032)), a = i2(70726), s = i2(30801), l = i2(96618), u = i2(27862); + class d extends a.BriefFlowListManager { + get dependencyType() { + return u.CommonModuleFlow; + } + constructor() { + super(), this.topic = o.getTopic("BriefCommonModuleFlowListManager"), this.additionalQueryParams = { type: l.flowTypes.flowTypeCommonModule }, this.actionPropertyForUsageSearch = "flowId", this.actionsForUsageSearch = [s.callCommonModuleActionType], this.className = "BriefCommonModuleFlowListManager", this.uiMetadataSectionName = "commonModuleFlows", this.flowType = l.flowTypes.flowTypeCommonModule, this._initialize(), r2.serviceListen(r2.flowLoaded, (e3) => { + e3.cleanUiMetadataInfoSection(this.uiMetadataSectionName, this.actionsForUsageSearch, this.actionPropertyForUsageSearch); + }); + } + } + t2.briefCommonModuleFlowListManager = new d(); + }, 77114: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(20692)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "shippingOptionCollection"; + } + get displayTypeName() { + return "ArchVariableShippingOptionCollection"; + } + get initialValue() { + return this._initialValue; + } + get isArchVariableShippingOptionCollection() { + return true; + } + } + t2.default = r2; + }, 77147: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.promptHasRequiredMedia = a, t2.promptLanguageResourceHasAudio = s, t2.getPromptGridLanguageError = function(e3, t3) { + return a(e3, t3, t3.languageUsages); + }; + const n2 = i2(31635), r2 = n2.__importDefault(i2(92140)), o = n2.__importStar(i2(98442)); + function a(e3, t3, i3) { + const n3 = (function(e4, t4) { + const i4 = e4 && e4.languages; + return t4 && 0 !== t4.length || !i4 || (t4 = i4.supportedLanguages), r2.default.map(t4, function(e5) { + return r2.default.isString(e5) ? e5 : e5.id; + }); + })(e3, i3); + return n3.every((i4) => e3.validateHasAudio && e3.validateHasTTS ? s(t3, i4) || l(e3, t3, i4) : e3.validateHasAudio ? s(t3, i4) : !e3.validateHasTTS || l(e3, t3, i4)); + } + function s(e3, t3) { + if (!e3.getResource) return false; + const i3 = e3.getResource(t3); + return !(!i3 || !i3.mediaUri); + } + function l(e3, t3, i3) { + if (!t3.getResource) return false; + if (!o.supportsTTSPlaybackForFlow(i3, e3)) return false; + const n3 = t3.getResource(i3); + return !(!n3 || !n3.ttsAvailable); + } + }, 77152: (e2, t2, i2) => { + "use strict"; + const n2 = i2(31635), r2 = n2.__importDefault(i2(942)), o = i2(80428), a = i2(8136), s = i2(42170), l = i2(12179), u = n2.__importDefault(i2(97891)), d = i2(47957); + class c extends r2.default { + constructor(e3, t3) { + super(e3.parentFlow, e3), this._loadModel(t3); + } + static get managedProperties() { + return r2.default.createManagedProperties({ searchFieldLabel: d.findActions.findSchedule.findScheduleNameLabel, searchResultLabel: d.findActions.findSchedule.findScheduleResultLabel, searchResultExpressionOptions: a.ExpressionTypeScheduleOptions.create(), searchResultItemType: o.expressionTypeNames.schedule }); + } + } + c.info = u.default.createActionInfo({ actionClass: c, canBeInTask: true, helpTopic: l.helpTopics.actions.findSchedule, modelClass: s.FindScheduleActionModel, name: d.actions.findScheduleActionLabel, scriptingName: "ArchActionFindSchedule" }), t2.A = c; + }, 77170: (e2, t2, i2) => { + const n2 = i2(2210), r2 = i2(13240), { dialExtensionActionType: o } = i2(30801), a = i2(7401); + function s() { + Object.defineProperties(this, { _digitTimeout: { writable: true }, _numReprompts: { writable: true }, _repromptAudio: { writable: true }, _resultData: { writable: true } }), s.baseConstructor.apply(this, arguments); + } + r2.extend(s, o, true), Object.defineProperties(s.prototype, { pasteReIdOrRename: { value: function(e3) { + s._super.pasteReIdOrRename.apply(this, arguments), this.digitTimeout.pasteReIdOrRename(e3), this.numReprompts.pasteReIdOrRename(e3), this.repromptAudio.pasteReIdOrRename(e3), this.resultData.pasteReIdOrRename(e3); + } }, pasteResolveOldToNewValues: { value: function(e3) { + s._super.pasteResolveOldToNewValues.apply(this, arguments), this.digitTimeout.pasteResolveOldToNewValues(e3), this.numReprompts.pasteResolveOldToNewValues(e3), this.repromptAudio.pasteResolveOldToNewValues(e3), this.resultData.pasteResolveOldToNewValues(e3); + } }, digitTimeout: { enumerable: true, get: function() { + return this._digitTimeout; + }, set: function(e3) { + this._digitTimeout = this.reviveItem(e3, a); + } }, numReprompts: { enumerable: true, get: function() { + return this._numReprompts; + }, set: function(e3) { + this._numReprompts = this.reviveItem(e3, a); + } }, repromptAudio: { enumerable: true, get: function() { + return this._repromptAudio; + }, set: function(e3) { + this._repromptAudio = this.reviveItem(e3, n2); + } }, resultData: { enumerable: true, get: function() { + return this._resultData; + }, set: function(e3) { + this._resultData = this.reviveItem(e3, a); + } } }), e2.exports = s; + }, 77315: (e2, t2, i2) => { + const n2 = i2(28730), { endWorkflowActionType: r2 } = i2(30801), o = i2(7401); + function a() { + Object.defineProperties(this, { _exitReason: { writable: true } }), a.baseConstructor.apply(this, arguments); + } + n2.extend(a, r2, true), Object.defineProperties(a.prototype, { pasteResolveOldToNewValues: { value: function(e3) { + a._super.pasteResolveOldToNewValues.apply(this, arguments), this.exitReason.pasteReIdOrRename(e3); + } }, pasteReIdOrRename: { value: function(e3) { + a._super.pasteReIdOrRename.apply(this, arguments), this.exitReason.pasteResolveOldToNewValues(e3); + } }, exitReason: { enumerable: true, get: function() { + return this._exitReason; + }, set: function(e3) { + this._exitReason = this.reviveItem(e3, o); + } } }), e2.exports = a; + }, 77372: (e2, t2, i2) => { + "use strict"; + const n2 = i2(31635), r2 = i2(17604), o = i2(52357), a = i2(32773), s = i2(91035), l = i2(28443), u = i2(44612), d = i2(12179), c = i2(12457), p = n2.__importDefault(i2(97891)), _ = i2(77415), h = n2.__importDefault(i2(5730)), m = i2(47957); + class g extends h.default { + constructor(e3, t3) { + let i3, n3; + super(e3.parentFlow, e3), this._allScriptsManager = o.allScriptsManager, e3.parentFlow.isInboundEmail || e3.parentFlow.isInQueueEmailFlow ? (this._scriptManager = s.emailScriptManager, n3 = m.screenPop.scriptProperties.scriptPropertyEmail, i3 = m.screenPop.emailScript) : e3.parentFlow.isInboundShortMessage || e3.parentFlow.isInQueueShortMessageFlow ? (this._scriptManager = u.shortMessageScriptManager, n3 = m.screenPop.scriptProperties.scriptPropertyMessage, i3 = m.screenPop.shortMessageScript) : e3.parentFlow.isInboundChat ? (this._scriptManager = a.chatScriptManager, n3 = m.screenPop.scriptProperties.scriptPropertyChat, i3 = m.screenPop.chatScript) : e3.parentFlow.isOutboundCallFlow ? (this._scriptManager = o.allScriptsManager, n3 = m.screenPop.scriptProperties.scriptPropertyScreenPop, i3 = m.screenPop.screenPopScript) : (this._scriptManager = l.screenPopManager, n3 = m.screenPop.scriptProperties.scriptPropertyScreenPop, i3 = m.screenPop.screenPopScript), this.resources = { mustSelectScript: (0, r2.sprintf)(m.screenPop.mustSelectScript, i3), noInputs: (0, r2.sprintf)(m.screenPop.noInputs, i3), savedVersionOfScript: (0, r2.sprintf)(m.screenPop.savedVersionOfScript, i3), scriptMissingFeature: (0, r2.sprintf)(m.screenPop.scriptMissingFeature, i3, n3), scriptNotFound: (0, r2.sprintf)(m.screenPop.scriptNotFound, i3), selectedScript: this._scriptManager.dependencyContext, selectScript: (0, r2.sprintf)(m.screenPop.selectScript, i3) }, this._loadModel(t3); + } + get result() { + return this.model.result; + } + getDetails() { + return this.scriptName ? new c.ActionDetails([this.resources.selectedScript], [this.scriptName]) : null; + } + static get managedProperties() { + return [{ createDetails: _.ScriptProperties.createCreateDetails("screenPopId", "screenPopName"), yamlOptions: g.createYamlOptions("scriptSettings", (e3) => e3.setPropertyName("screenPopScript")), property: "scriptSettings" }]; + } + get scriptManager() { + return this._scriptManager; + } + get allScriptsManager() { + return this._allScriptsManager; + } + getCachedServerPropertyById(e3, t3) { + return this.scriptManager.getCachedServerPropertyById(e3, this.scriptId, t3, this); + } + } + g.info = p.default.createActionInfo({ actionClass: g, canBeInTask: true, helpTopic: d.helpTopics.actions.screenPop, modelClass: i2(55422), name: m.actions.screenPop, scriptingName: "ArchActionSetScreenPop" }), t2.A = g; + }, 77373: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(11210)), r2 = i2(30801); + class o extends n2.default { + constructor(e3) { + super(e3); + } + get _actionTypeId() { + return r2.repeatMenuActionType; + } + get displayTypeName() { + return this._scriptingName; + } + get isArchActionRepeatMenu() { + return true; + } + } + t2.default = o; + }, 77396: (e2, t2, i2) => { + const n2 = i2(68511); + function r2() { + r2.baseConstructor.apply(this, arguments); + } + i2(22124).extend(r2, "LanguageList"), Object.defineProperties(r2.prototype, { entities: { enumerable: true, get: function() { + return this._entities; + }, set: function(e3) { + this._entities = this.reviveArray(e3, n2); + } } }), e2.exports = r2; + }, 77415: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.ScriptProperties = void 0; + const n2 = i2(31635), r2 = n2.__importDefault(i2(92140)), o = i2(9456), a = n2.__importDefault(i2(22917)), s = n2.__importStar(i2(17498)), l = i2(55867), u = i2(47957); + class d extends l.BaseActionProperty { + constructor(e3, t3, i3, n3, r3, a2) { + super(e3, t3), this.id = (0, o.uuid)(), this.scriptManager = i3, this._outOfService = false, this._scriptIdPropName = n3 || "scriptId", this._scriptNamePropName = r3 || "scriptName", this.isOptional = a2, this.parent = e3, Object.defineProperties(e3, { scriptId: { get: () => this.scriptId }, scriptName: { get: () => this.scriptName, set: (e4) => { + this.scriptName = e4; + } }, setScriptAsync: { value: this.setScriptOnAction.bind(this) } }); + } + get scriptIdPropName() { + return this._scriptIdPropName; + } + get scriptNamePropName() { + return this._scriptNamePropName; + } + get scriptId() { + return this.action.model[this._scriptIdPropName]; + } + get scriptName() { + return this.action.model[this._scriptNamePropName]; + } + set scriptName(e3) { + this.action.model[this._scriptNamePropName] = e3; + } + get isBaseActionProperty() { + return true; + } + addClipboardDependencies(e3) { + super.addClipboardDependencies(e3), this.action && this.scriptId && this.scriptManager.addClipboardDependencies(e3, this.scriptId, this.action.parentFlow); + } + destroy() { + super.destroy(), this.scriptManager.tryRemoveItemFromFlowMetadata(this.action, this.scriptId); + } + getConfiguration(e3, t3, i3) { + if (null == t3 ? void 0 : t3.isForFlowYaml) { + if (!this.scriptName) return null; + const n3 = {}; + n3[this.scriptName] = {}; + let o2 = this.inputs.getConfiguration(e3, t3, i3); + return this.inputs.items.length ? n3[this.scriptName].inputs = o2 : (r2.default.isNull(o2) && (o2 = { none: true }), n3[this.scriptName] = o2), n3; + } + return console.error("Trying to access ScriptProperties.getConfiguration for non-flow-YAML"), null; + } + get outOfService() { + return this._outOfService = false; + } + set outOfService(e3) { + this._outOfService = e3, this.inputs.outOfService = e3; + } + search(e3) { + super.search(e3), e3.checkText(this.action, this.scriptName, this.scriptManager.dependencyContext); + const t3 = this.scriptManager.getCategoryForScript(this.scriptId); + e3.checkText(this.action, t3, this.scriptManager.dependencyContext); + } + setScriptOnAction(e3) { + const t3 = e3 ? e3.name : "", i3 = e3 ? e3.id : ""; + return this.scriptName === t3 && this.scriptId === i3 ? Promise.resolve() : (this.scriptName && this.scriptManager.tryRemoveItemFromFlowMetadata(this.action, this.scriptId), this.action.model[this._scriptIdPropName] = i3, this.action.model[this._scriptNamePropName] = t3, this.inputs.destroyChildren(), this.scriptName ? (this.scriptManager.addItemToFlowMetadata(this.action, this.scriptName, this.scriptId), this.scriptManager.getScriptInputs(e3).then(() => { + this.scriptManager.mergeSchemaProperties(e3.inputs, this.inputs), this.validateAction(); + })) : (this.validateAction(), Promise.resolve())); + } + _initializeDesignTime() { + super._initializeDesignTime(); + const e3 = this.scriptManager.getScript(this.scriptId); + e3 && this.scriptManager.mergeSchemaProperties(e3.inputs, this.inputs); + } + updateDependencies() { + super.updateDependencies(), this.scriptName && this.scriptId && (this.outOfService ? s.registerNonDependencyValidationItem(this.action, this.scriptManager.dependencyContext, this.scriptName, this.scriptId, this.scriptManager.dependencyType.value) : this.scriptManager.registerConsumer(this.action, this.scriptName, this.scriptId)); + } + validate(e3) { + if (super.validate(e3), this.scriptId || this.isOptional) if (!this.outOfService && this.scriptId) { + const t3 = this.scriptManager.getItem(this.scriptId); + !t3 || t3.isFlowCachedVersion ? this.action.allScriptsManager && this.action.allScriptsManager.getItem(this.scriptId) ? e3.addWarning(this, this.action.resources && this.action.resources.scriptMissingFeature || u.scripts.scriptMissingFeature, void 0, true) : e3.addError(this, this.action.resources && this.action.resources.scriptNotFound || u.scripts.scriptNotFound, false, true) : e3.isDeep && (this.scriptManager.registerConsumer(this.action, t3.name, t3.id), this.scriptName !== t3.label && (this.scriptName = t3.label), "schemas.not.available" === t3.result && e3.addError(this, u.inputOutputList.unableToRetrieveSchema, false, true), this.scriptManager.mergeSchemaProperties(t3.inputs, this.inputs), this.scriptManager.addItemToFlowMetadata(this.action, this.scriptName, this.scriptId)); + } else s.unRegisterConsumer(this.action, this.scriptManager.dependencyContext); + else e3.addError(this, this.action.resources.mustSelectScript, false, true); + } + get inputs() { + return this.action.inputs; + } + static get managedProperties() { + return [{ property: "inputs", dataList: true, yamlOptions: a.default.create("scriptProperties-inputs", (e3) => e3.setSkipProperty(true)) }]; + } + static createCreateDetails(e3, t3, i3) { + return { modelProperties: [], create: function(n3, r3) { + return new d(n3, r3, n3.scriptManager, e3, t3, i3); + }, getCreateClass: function() { + return d; + } }; + } + get isScriptProperties() { + return true; + } + } + t2.ScriptProperties = d; + }, 77450: (e2, t2, i2) => { + const n2 = i2(14961), r2 = { replacementId: "$positionInQueueInt", subExpressions: { toAudioBlank: { ids: ["Audio_ONE ToAudioBlank(Long_ONE)"], _label: "blank_0ms", value: "ToAudioBlank(0)" }, toAudioNumber: { ids: ["Audio_ONE ToAudioNumber(Long_ONE)"], _label: "position_in_queue_as_number", value: "ToAudioNumber($positionInQueueInt)" }, toAudioNumberMinusOne: { ids: ["Audio_ONE ToAudioNumber(Long_ONE)"], _label: "position_in_queue_minus_one_as_number", value: "ToAudioNumber(($positionInQueueInt) - 1)" }, toAudioNumberOrdinal: { ids: ["Audio_ONE ToAudioNumberOrdinal(Long_ONE)"], _label: "position_in_queue_as_ordinal_number", value: "ToAudioNumberOrdinal($positionInQueueInt)" }, toAudioNumberOrdinalFeminine: { ids: ["Audio_ONE ToAudioNumberOrdinal(Long_ONE,LanguageContextEnum_ONE...)"], _label: "position_in_queue_as_ordinal_number_feminine", value: "ToAudioNumberOrdinal($positionInQueueInt, Language.Gender.feminine, Language.Quantity.singular)" } }, systemPrompts: { position_in_queue_many_ahead: "position_in_queue_many_ahead", position_in_queue_many_ahead_2: "position_in_queue_many_ahead_2", position_in_queue_next_caller: "position_in_queue_next_caller", position_in_queue_one_caller_ahead: "position_in_queue_one_caller_ahead", position_in_queue_ordinal: "position_in_queue_ordinal", position_in_queue_ordinal_2: "position_in_queue_ordinal_2", position_in_queue_your_position_is: "position_in_queue_your_position_is", position_in_queue_your_position_is_2: "position_in_queue_your_position_is_2" }, sequenceTypes: { tts: "tts", subExpression: "subExpression", systemPrompt: "systemPrompt" } }; + function o() { + o._super.constructor.call(this), Object.defineProperties(this, { _label: { value: "PIQ" }, className: { value: "PositionInQueueSequences" }, parts: { value: r2 }, adsSectionName: { value: "positionInQueue" }, languageSequences: { value: { "da-dk": "mainSequence", "de-de": "mainSequence", "de-ch": "mainSequence", "el-gr": "mainSequence", "en-au": "mainSequence", "en-gb": "mainSequence", "en-us": "mainSequence", "es-es": "localizedSequence2", "es-us": "localizedSequence2", "fi-fi": "localizedSequence3", "fil-ph": "mainSequence", "fr-ca": "mainSequence", "fr-fr": "mainSequence", "it-it": "localizedSequence1", "ja-jp": "localizedSequence1", "ms-my": "mainSequence", "nb-no": "mainSequence", "nl-nl": "mainSequence", "pl-pl": "mainSequence", "pt-br": "mainSequence", "pt-pt": "mainSequence", "sv-se": "localizedSequence1", "th-th": "mainSequence", "zh-cn": "mainSequence", "zh-hk": "mainSequence" } }, allSequences: { value: { allModes: { _label: "mode_all_no_pos", conditions: [{ _label: "caller_pos_not_set", condition: "IsNotSetOrEmpty($positionInQueueInt)", sequence: [{ type: r2.sequenceTypes.subExpression, value: r2.subExpressions.toAudioBlank }] }] } } }, mainSequence: { value: { number: { _label: "mode_pos_number", conditions: [{ condition: "$positionInQueueInt <= 1", _label: "caller_pos <= 1", sequence: [{ type: r2.sequenceTypes.systemPrompt, value: "position_in_queue_next_caller" }] }, { _label: "caller_pos > 1", sequence: [{ type: r2.sequenceTypes.systemPrompt, value: "position_in_queue_your_position_is" }, { type: r2.sequenceTypes.subExpression, value: r2.subExpressions.toAudioNumber }] }] }, ordinal: { _label: "mode_pos_ordinal", conditions: [{ condition: "$positionInQueueInt <= 1", _label: "caller_pos <= 1", sequence: [{ type: r2.sequenceTypes.systemPrompt, value: "position_in_queue_next_caller" }] }, { _label: "caller_pos > 1", sequence: [{ type: r2.sequenceTypes.systemPrompt, value: "position_in_queue_ordinal" }, { type: r2.sequenceTypes.subExpression, value: r2.subExpressions.toAudioNumberOrdinal }, { type: r2.sequenceTypes.systemPrompt, value: "position_in_queue_ordinal_2" }] }] }, ahead: { _label: "mode_pos_ahead", conditions: [{ _label: "caller_pos == 2", condition: "$positionInQueueInt == 2", sequence: [{ type: r2.sequenceTypes.systemPrompt, value: "position_in_queue_one_caller_ahead" }] }, { _label: "caller_pos <= 1", condition: "$positionInQueueInt <= 1", sequence: [{ type: r2.sequenceTypes.systemPrompt, value: "position_in_queue_next_caller" }] }, { _label: "caller_pos > 2", sequence: [{ type: r2.sequenceTypes.systemPrompt, value: "position_in_queue_many_ahead" }, { type: r2.sequenceTypes.subExpression, value: r2.subExpressions.toAudioNumberMinusOne }, { type: r2.sequenceTypes.systemPrompt, value: "position_in_queue_many_ahead_2" }] }] } } }, localizedSequence1: { value: { number: { _label: "mode_pos_number", conditions: [{ _label: "caller_pos <= 1", condition: "$positionInQueueInt <= 1", sequence: [{ type: r2.sequenceTypes.systemPrompt, value: "position_in_queue_next_caller" }] }, { _label: "caller_pos > 1", sequence: [{ type: r2.sequenceTypes.systemPrompt, value: "position_in_queue_your_position_is" }, { type: r2.sequenceTypes.subExpression, value: r2.subExpressions.toAudioNumber }, { type: r2.sequenceTypes.systemPrompt, value: "position_in_queue_your_position_is_2" }] }] }, ordinal: { _label: "mode_pos_ordinal", conditions: [{ _label: "caller_pos <= 1", condition: "$positionInQueueInt <= 1", sequence: [{ type: r2.sequenceTypes.systemPrompt, value: "position_in_queue_next_caller" }] }, { _label: "caller_pos > 1", sequence: [{ type: r2.sequenceTypes.systemPrompt, value: "position_in_queue_ordinal" }, { type: r2.sequenceTypes.subExpression, value: r2.subExpressions.toAudioNumberOrdinal }, { type: r2.sequenceTypes.systemPrompt, value: "position_in_queue_ordinal_2" }] }] }, ahead: { _label: "mode_pos_ahead", conditions: [{ _label: "caller_pos == 2", condition: "$positionInQueueInt == 2", sequence: [{ type: r2.sequenceTypes.systemPrompt, value: "position_in_queue_one_caller_ahead" }] }, { _label: "caller_pos <= 1", condition: "$positionInQueueInt <= 1", sequence: [{ type: r2.sequenceTypes.systemPrompt, value: "position_in_queue_next_caller" }] }, { _label: "caller_pos > 2", sequence: [{ type: r2.sequenceTypes.systemPrompt, value: "position_in_queue_many_ahead" }, { type: r2.sequenceTypes.subExpression, value: r2.subExpressions.toAudioNumberMinusOne }, { type: r2.sequenceTypes.systemPrompt, value: "position_in_queue_many_ahead_2" }] }] } } }, localizedSequence2: { value: { number: { _label: "mode_pos_number", conditions: [{ _label: "caller_pos <= 1", condition: "$positionInQueueInt <= 1", sequence: [{ type: r2.sequenceTypes.systemPrompt, value: "position_in_queue_next_caller" }] }, { _label: "caller_pos > 1", sequence: [{ type: r2.sequenceTypes.systemPrompt, value: "position_in_queue_your_position_is" }, { type: r2.sequenceTypes.subExpression, value: r2.subExpressions.toAudioNumber }, { type: r2.sequenceTypes.systemPrompt, value: "position_in_queue_your_position_is_2" }] }] }, ordinal: { _label: "mode_pos_ordinal", conditions: [{ _label: "caller_pos <= 1", condition: "$positionInQueueInt <= 1", sequence: [{ type: r2.sequenceTypes.systemPrompt, value: "position_in_queue_next_caller" }] }, { _label: "caller_pos > 1", sequence: [{ type: r2.sequenceTypes.systemPrompt, value: "position_in_queue_ordinal" }, { type: r2.sequenceTypes.subExpression, value: r2.subExpressions.toAudioNumberOrdinalFeminine }, { type: r2.sequenceTypes.systemPrompt, value: "position_in_queue_ordinal_2" }] }] }, ahead: { _label: "mode_pos_ahead", conditions: [{ _label: "caller_pos == 2", condition: "$positionInQueueInt == 2", sequence: [{ type: r2.sequenceTypes.systemPrompt, value: "position_in_queue_one_caller_ahead" }] }, { _label: "caller_pos <= 1", condition: "$positionInQueueInt <= 1", sequence: [{ type: r2.sequenceTypes.systemPrompt, value: "position_in_queue_next_caller" }] }, { _label: "caller_pos > 2", sequence: [{ type: r2.sequenceTypes.systemPrompt, value: "position_in_queue_many_ahead" }, { type: r2.sequenceTypes.subExpression, value: r2.subExpressions.toAudioNumberMinusOne }, { type: r2.sequenceTypes.systemPrompt, value: "position_in_queue_many_ahead_2" }] }] } } }, localizedSequence3: { value: { number: { _label: "mode_pos_number", conditions: [{ condition: "$positionInQueueInt <= 1", _label: "caller_pos <= 1", sequence: [{ type: r2.sequenceTypes.systemPrompt, value: "position_in_queue_next_caller" }] }, { _label: "caller_pos > 1", sequence: [{ type: r2.sequenceTypes.systemPrompt, value: "position_in_queue_your_position_is" }, { type: r2.sequenceTypes.subExpression, value: r2.subExpressions.toAudioNumber }] }] }, ordinal: { _label: "mode_pos_ordinal", conditions: [{ condition: "$positionInQueueInt <= 1", _label: "caller_pos <= 1", sequence: [{ type: r2.sequenceTypes.systemPrompt, value: "position_in_queue_next_caller" }] }, { _label: "caller_pos > 1", sequence: [{ type: r2.sequenceTypes.systemPrompt, value: "position_in_queue_ordinal" }, { type: r2.sequenceTypes.subExpression, value: r2.subExpressions.toAudioNumberOrdinal }, { type: r2.sequenceTypes.systemPrompt, value: "position_in_queue_ordinal_2" }] }] }, ahead: { _label: "mode_pos_ahead", conditions: [{ _label: "caller_pos == 2", condition: "$positionInQueueInt == 2", sequence: [{ type: r2.sequenceTypes.systemPrompt, value: "position_in_queue_one_caller_ahead" }] }, { _label: "caller_pos <= 1", condition: "$positionInQueueInt <= 1", sequence: [{ type: r2.sequenceTypes.systemPrompt, value: "position_in_queue_next_caller" }] }, { _label: "caller_pos > 2", sequence: [{ type: r2.sequenceTypes.subExpression, value: r2.subExpressions.toAudioNumberMinusOne }, { type: r2.sequenceTypes.systemPrompt, value: "position_in_queue_many_ahead" }] }] } } } }); + } + n2.extend(o), e2.exports = new o(); + }, 77479: (e2, t2, i2) => { + "use strict"; + const n2 = i2(31635), r2 = i2(12179), o = n2.__importDefault(i2(5478)), a = n2.__importDefault(i2(27203)), s = n2.__importDefault(i2(97891)), l = i2(21305), u = i2(81516), d = i2(70283), c = i2(80428), p = i2(47957), { sipHeaderNamesLimits: _ } = i2(82632); + class h extends o.default { + constructor(e3, t3) { + super(e3.parentFlow, e3), this._loadModel(t3); + } + static get branchInfo() { + return a.default.successFailure; + } + static get managedProperties() { + return [{ label: p.getSIPHeaders.sipHeaderNamesLabel, type: c.expressionTypeNames.string, options: u.ExpressionTypeStringOptions.create((e3) => e3.setDescriptionInfo(p.getSIPHeaders.sipHeaderNamesLabel, p.getSIPHeaders.sipHeaderNamesDescription).setIninTestingField("sipHeaderNamesExpression").setAllowModeExpression(true).setIsOptional(true).setAllowNotSet(true).setModeNoValueRuntimeEvaluationStr(p.getSIPHeaders.sipHeaderNamesNoValueLabel).setModeNoValueSelectionLabel(p.getSIPHeaders.sipHeaderNamesNoValueLabel).setEmptyMessage(p.getSIPHeaders.noSipHeaderNames).setMaxItems(_.maxItems.count, _.maxItems.isSoftLimit), true), yamlOptions: h.createYamlOptions("sipHeaderNames", (e3) => e3.setExportOrder(1)), property: "sipHeaderNames" }, { label: p.getSIPHeaders.sipHeadersResultLabel, type: c.expressionTypeNames.json, options: l.ExpressionTypeJsonOptions.create((e3) => e3.setAsOutput().setDescriptionInfo(p.getSIPHeaders.sipHeadersResultLabel, p.getSIPHeaders.sipHeadersResultDescription).setIninTestingField("sipHeadersResultExpression")), yamlOptions: h.createYamlOptions("sipHeadersResult", (e3) => e3.setExportOrder(2)), property: "sipHeadersResult" }]; + } + _getPossibleErrors() { + return d.getSipHeadersFailureReasons; + } + } + h.info = s.default.createActionInfo({ actionClass: h, canBeInTask: true, helpTopic: r2.helpTopics.actions.getSIPHeaders, modelClass: i2(60633), name: p.actions.getSIPHeaders, scriptingName: "ArchActionGetSIPHeaders" }), t2.A = h; + }, 77667: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.lexAliasManager = t2.LexAliasManager = void 0; + const n2 = i2(31635), r2 = n2.__importDefault(i2(92140)), o = n2.__importStar(i2(1360)), a = n2.__importDefault(i2(47532)), s = i2(81801), l = i2(24032), u = i2(30801), d = i2(34490), c = i2(77681), p = i2(27862), _ = i2(44931), h = i2(47957); + class m extends a.default { + get requiredAuth() { + return s.externalAuthorizations.authStrings.integrationView; + } + get dependencyType() { + return p.LexBotAlias; + } + constructor() { + super(), this.topic = (0, l.getTopic)("LexAliasManager"), this._rawServerCache = {}, this.actionsForUsageSearch = [u.lexActionType], this.actionPropertyForUsageSearch = "alias", this.apiCallList = _.getAliases, this.apiCallSingle = _.getAlias, this.defaultMatchingStyle = o.exactMatch, this.dependencyContext = h.lex.lexBotAlias, this.isDependentOnCategory = true, this.searchField = "name", this.uiMetadataSectionName = "lexBotAliases", this.className = "LexAliasManager", this._initialize(); + } + _createItemViewModel(e3) { + return new d.LexAliasViewModel(e3); + } + getBotCategoryForBotRunnable(e3) { + if (!r2.default.isString(e3)) return this.topic.error("Object passed to getBotCategoryForBotRunnable was not a string: " + e3), null; + const t3 = this.items[e3.toLowerCase()]; + return t3 ? c.lexBotNameManager.getItem(t3.botId) : null; + } + } + t2.LexAliasManager = m, t2.lexAliasManager = new m(); + }, 77680: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = i2(30801), o = n2.__importDefault(i2(11210)); + class a extends o.default { + constructor(e3) { + super(e3); + } + get _actionTypeId() { + return r2.exitBotFlowActionType; + } + get displayTypeName() { + return this._scriptingName; + } + get isArchActionExitBotFlow() { + return true; + } + } + t2.default = a; + }, 77681: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.lexBotNameManager = t2.LexBotNameManager = void 0; + const n2 = i2(31635), r2 = n2.__importStar(i2(1360)), o = n2.__importDefault(i2(47532)), a = i2(81801), s = i2(24032), l = i2(30801), u = i2(11865), d = i2(30801), c = i2(27862), p = i2(44931), _ = i2(24171), h = i2(47957); + class m extends o.default { + get requiredAuth() { + return a.externalAuthorizations.authStrings.integrationView; + } + get dependencyType() { + return c.LexBot; + } + constructor() { + super(), this.topic = (0, s.getTopic)("LexBotNameManager"), this._rawServerCache = {}, this.apiCallList = p.getBots, this.apiCallSingle = void 0, this.className = "LexBotNameManager", this.defaultMatchingStyle = r2.exactMatch, this.dependencyContext = h.lex.botName, this.noApiCallSingle = true, this.searchField = "name", this.uiMetadataSectionName = "lexBotNames", this.actionsForUsageSearch = [l.lexActionType, d.lexV2ActionType], this.actionPropertyForUsageSearch = "bot", this._initialize(); + } + get _networkModel() { + return this.apiCallList.api ? this.apiCallList.api.DataContract : _; + } + _createItemViewModel(e3) { + return new u.LexBotViewModel(e3); + } + } + t2.LexBotNameManager = m, t2.lexBotNameManager = new m(); + }, 77685: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.activeHelpTopic$ = t2.showHelpTopic$ = t2.toggleExpressionHelp$ = t2.themeUrlSuffix = void 0, t2.getHelpUrl = d, t2.openHelpSystemArticleInNewWindow = function(e3) { + let t3; + t3 = e3 ? c(e3) : u(), window.open(t3, "_blank"); + }, t2.getHelpSystemArticleUrl = c, t2.toggleExpressionHelp = function() { + p.next(void 0); + }, t2.openExpressionHelp = function(e3) { + p.next(e3); + }, t2.getOpenHelpParams = function() { + return h; + }, t2.openHelpTopic = function(e3, t3) { + const i3 = t3 || {}; + h = i3, i3.forceNewWindow ? window.open(d(e3), "_blank") : _.next(e3); + }, t2.advertiseHelpTopic = function(e3, t3) { + f(e3, true), m.push({ owner: e3, helpTopic: t3 }), g(); + }, t2.removeAdvertisedHelpTopic = f; + const n2 = i2(79364), r2 = i2(79364), o = i2(12179), a = i2(12179), s = i2(12179), l = i2(12179); + function u() { + return l.helpUrlRoot; + } + function d(e3, i3) { + return e3 || (e3 = "main"), e3 === s.helpTopics.articles.resourceCenter ? u() : `${u()}/${o.architectHelpPrefix}/${e3}${i3 ? t2.themeUrlSuffix : ""}`; + } + function c(e3) { + return e3 ? `${u()}/${a.systemArticlePrefix}/${e3}` : u(); + } + t2.themeUrlSuffix = "?theme=simplified"; + const p = new n2.BehaviorSubject(void 0); + t2.toggleExpressionHelp$ = p.asObservable(); + const _ = new r2.Subject(); + t2.showHelpTopic$ = _.asObservable(); + let h = {}; + t2.activeHelpTopic$ = new n2.BehaviorSubject(void 0); + const m = []; + function g() { + var e3; + const i3 = m[m.length - 1]; + (null === (e3 = t2.activeHelpTopic$.value) || void 0 === e3 ? void 0 : e3.helpTopic) !== (null == i3 ? void 0 : i3.helpTopic) && t2.activeHelpTopic$.next(i3); + } + function f(e3, t3) { + const i3 = m.findIndex((t4) => t4.owner === e3); + i3 >= 0 && m.splice(i3, 1), t3 || g(); + } + }, 77697: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(84655)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "userQueue"; + } + get displayTypeName() { + return "ArchVariableUser"; + } + get initialValue() { + return this._initialValue; + } + get isArchVariableUser() { + return true; + } + } + t2.default = r2; + }, 77751: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.emailStylesAll = t2.emailStylePlain = t2.emailStyleHtml = t2.notificationTypesAll = t2.typeChat = t2.typeEmail = void 0; + const n2 = i2(47957); + t2.typeEmail = { displayString: n2.sendNotification.notificationTypeEmailLabel, id: "email" }, t2.typeChat = { displayString: n2.sendNotification.notificationTypeChatLabel, id: "chat" }, t2.notificationTypesAll = [t2.typeEmail, t2.typeChat], t2.emailStyleHtml = { displayString: n2.sendNotification.emailStyleHtmlLabel, id: "html" }, t2.emailStylePlain = { displayString: n2.sendNotification.emailStylePlainLabel, id: "plain" }, t2.emailStylesAll = [t2.emailStyleHtml, t2.emailStylePlain]; + }, 77761: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(20692)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "durationCollection"; + } + get displayTypeName() { + return "ArchVariableDurationCollection"; + } + get initialValue() { + return this._initialValue; + } + get isArchVariableDurationCollection() { + return true; + } + } + t2.default = r2; + }, 77775: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importDefault(i2(11210)), { isoLanguages: o } = i2(24812), a = i2(30801), s = n2.__importDefault(i2(3220)), l = i2(98442); + class u extends r2.default { + constructor(e3) { + super(e3), this._languageCode = this.coreFactory.createArchValueFromExpression(e3.languageCode); + } + get _actionTypeId() { + return a.setLocaleActionType; + } + get displayTypeName() { + return this._scriptingName; + } + get isArchActionSetLanguage() { + return true; + } + get language() { + var e3, t3; + let i3 = this._languageCode && this._languageCode._coreExpression ? this._languageCode._coreExpression.text : null; + return i3 && (null === (t3 = null === (e3 = this._languageCode) || void 0 === e3 ? void 0 : e3._coreExpression) || void 0 === t3 ? void 0 : t3.isLiteralMode) ? (i3 = this._languageCode._getCoreViewModel().config.root.text, o[i3.toLowerCase()] ? s.default.getByLanguageTag(i3) : null) : null; + } + set language(e3) { + const t3 = this._infoPropSet("archLanguage", "language"); + this._checkItem(t3, !e3 || !e3.isArchLanguage, "you must specify an Architect language for the language to set."), this._checkItem(t3, l.langCodeIsGeneric(e3.tag), "the language " + e3.logStr + " cannot be used because it does not have a region sub-tag."), this._checkItem(t3, !this._coreActionViewModel.parentFlow.languages.isFlowSupportedLanguage(e3.tag), "the language '" + e3.logStr + "' is not a supported language on the flow."), this._languageCode._setLiteral(t3, e3.tag); + } + get languageValue() { + return this._languageCode; + } + } + t2.default = u; + }, 77787: (e2, t2, i2) => { + "use strict"; + var n2, r2; + Object.defineProperty(t2, "__esModule", { value: true }), t2.GetConversationAttributeActionModel = void 0; + const o = i2(31635), a = i2(70630), s = i2(80295), l = o.__importDefault(i2(7401)), u = i2(30801), d = i2(80295); + class c extends a.BaseConversationAttributeActionModel { + constructor(e3) { + super(e3), this.__type = c.__type, (0, d.makeUnenumerable)(this, "_recordId"), (0, d.makeUnenumerable)(this, "_output"); + } + get recordId() { + return this._recordId; + } + set recordId(e3) { + this._recordId = this.reviveItem(e3, l.default); + } + get output() { + return this._output; + } + set output(e3) { + this._output = this.reviveItem(e3, l.default); + } + pasteReIdOrRename(e3) { + var t3; + super.pasteReIdOrRename(e3), this.recordId.pasteReIdOrRename(e3), null === (t3 = this.output) || void 0 === t3 || t3.pasteReIdOrRename(e3); + } + pasteResolveOldToNewValues(e3) { + var t3; + super.pasteResolveOldToNewValues(e3), this.recordId.pasteResolveOldToNewValues(e3), null === (t3 = this.output) || void 0 === t3 || t3.pasteResolveOldToNewValues(e3); + } + } + t2.GetConversationAttributeActionModel = c, c.__type = u.getConversationAttributeActionType, o.__decorate([(0, s.enumerable)(true), o.__metadata("design:type", "function" == typeof (n2 = void 0 !== l.default && l.default) ? n2 : Object), o.__metadata("design:paramtypes", [Object])], c.prototype, "recordId", null), o.__decorate([(0, s.enumerable)(true), o.__metadata("design:type", "function" == typeof (r2 = void 0 !== l.default && l.default) ? r2 : Object), o.__metadata("design:paramtypes", [Object])], c.prototype, "output", null), c.registerType(); + }, 77838: (e2, t2, i2) => { + let n2 = null; + if (i2(6697)) n2 = i2(92421); + else { + const e3 = i2(29546); + try { + n2 = i2(44485)("./" + e3.getCurrentLanguage() + "/isoLanguages.js"); + } catch (e4) { + n2 = i2(92421); + } + } + n2.then && n2.then((t3) => { + e2.exports = t3; + }), e2.exports = n2; + }, 77841: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.grammarManager = t2.GrammarManager = void 0; + const n2 = i2(31635), r2 = n2.__importStar(i2(95873)), o = n2.__importStar(i2(1360)), a = n2.__importStar(i2(24032)), s = i2(30801), l = n2.__importDefault(i2(47532)), u = i2(81801), d = n2.__importDefault(i2(43933)), c = i2(57416), p = i2(27862), _ = i2(47957); + class h extends l.default { + get requiredAuth() { + return u.externalAuthorizations.authStrings.grammarView; + } + get dependencyType() { + return p.Grammar; + } + constructor() { + super(), this.topic = a.getTopic("GrammarManager"), this.apiCallList = r2.getGrammars, this.apiCallSingle = r2.getGrammar, this._rawServerCache = {}, this.actionPropertyForUsageSearch = "", this.actionsForUsageSearch = [s.askForSlotActionType], this.className = "GrammarManager", this.defaultMatchingStyle = o.startsWith, this.dependencyContext = _.grammars.grammarLabel, this.securityError = true, this.suppressSearch = false, this.uiMetadataSectionName = "grammars", this.useStartsWithKeywordForExactMatch = true, this._initialize(); + } + _createItemViewModel(e3) { + return new c.GrammarViewModel(e3); + } + get _networkModel() { + return d.default; + } + } + t2.GrammarManager = h, t2.grammarManager = new h(); + }, 77853: function(e2, t2, i2) { + !(function(e3) { + "use strict"; + function t3(e4, t4, i3, n2) { + var r2 = { m: ["eine Minute", "einer Minute"], h: ["eine Stunde", "einer Stunde"], d: ["ein Tag", "einem Tag"], dd: [e4 + " Tage", e4 + " Tagen"], w: ["eine Woche", "einer Woche"], M: ["ein Monat", "einem Monat"], MM: [e4 + " Monate", e4 + " Monaten"], y: ["ein Jahr", "einem Jahr"], yy: [e4 + " Jahre", e4 + " Jahren"] }; + return t4 ? r2[i3][0] : r2[i3][1]; + } + e3.defineLocale("de", { months: "Januar_Februar_M\xE4rz_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"), monthsShort: "Jan._Feb._M\xE4rz_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"), monthsParseExact: true, weekdays: "Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"), weekdaysShort: "So._Mo._Di._Mi._Do._Fr._Sa.".split("_"), weekdaysMin: "So_Mo_Di_Mi_Do_Fr_Sa".split("_"), weekdaysParseExact: true, longDateFormat: { LT: "HH:mm", LTS: "HH:mm:ss", L: "DD.MM.YYYY", LL: "D. MMMM YYYY", LLL: "D. MMMM YYYY HH:mm", LLLL: "dddd, D. MMMM YYYY HH:mm" }, calendar: { sameDay: "[heute um] LT [Uhr]", sameElse: "L", nextDay: "[morgen um] LT [Uhr]", nextWeek: "dddd [um] LT [Uhr]", lastDay: "[gestern um] LT [Uhr]", lastWeek: "[letzten] dddd [um] LT [Uhr]" }, relativeTime: { future: "in %s", past: "vor %s", s: "ein paar Sekunden", ss: "%d Sekunden", m: t3, mm: "%d Minuten", h: t3, hh: "%d Stunden", d: t3, dd: t3, w: t3, ww: "%d Wochen", M: t3, MM: t3, y: t3, yy: t3 }, dayOfMonthOrdinalParse: /\d{1,2}\./, ordinal: "%d.", week: { dow: 1, doy: 4 } }); + })(i2(95093)); + }, 77858: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(81574)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "agentScorePair"; + } + get agent() { + } + get score() { + } + get displayTypeName() { + return "ArchValueAgentScorePair"; + } + get isArchValueAgentScorePair() { + return true; + } + } + t2.default = r2; + }, 77862: (e2, t2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.default = { ciceroTrainingWaitTimeMs: 2e3, compressionFormats: { none: "none" }, entityType: { maxListEntityItemValueStrLen: 50, maxListEntityTypes: 50 }, nodeIds: { intents: "intents", knowledge: "knowledge", learning: "learning", slots: "slots", slotTypes: "slot-types", dynamicSlotTypes: "dynamic-slots", utteranceHistory: "utterance-history", optimizationOverview: "optimization-overview" }, trainingStatuses: { error: "Error", trained: "Trained", training: "Training", unknown: "Unknown", untrained: "Untrained" }, validationResultTypes: { error: "error", info: "info", warn: "warn" }, variable: { virtualAgentEnabled: "virtualAgentEnabled", nameFollowUpSuffix: "_Follow_Up" } }; + }, 77876: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.distinct = void 0; + var n2 = i2(65212), r2 = i2(17214), o = i2(5717), a = i2(19724); + t2.distinct = function(e3, t3) { + return n2.operate(function(i3, n3) { + var s = /* @__PURE__ */ new Set(); + i3.subscribe(r2.createOperatorSubscriber(n3, function(t4) { + var i4 = e3 ? e3(t4) : t4; + s.has(i4) || (s.add(i4), n3.next(t4)); + })), t3 && a.innerFrom(t3).subscribe(r2.createOperatorSubscriber(n3, function() { + return s.clear(); + }, o.noop)); + }); + }; + }, 77886: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.getAgenticCopilotsMessagesTopic = function() { + return "v2.users.userId.agentic.copilots.messages"; + }, t2.getDependencyTrackingTopic = function() { + return "v2.architect.dependencytracking.build"; + }, t2.getFlowOperationsTopic = function(e3) { + return e3 || n2.error("a flow id was not provided to getFlowOperationsTopic"), `v2.flows.${e3}`; + }, t2.getFlowInstancesTopic = function(e3) { + return e3 || n2.error("a flow id was not provided to getFlowInstancesTopic"), `v2.flows.instances.flow.${e3}`; + }, t2.getSystemTokenRevokedTopic = function(e3) { + return e3 || n2.error("a user id was not provided to getSystemTokenRevokedTopic"), `v2.system.token_revoked.${e3}`; + }, t2.getSystemPromptsTopic = function(e3, t3) { + return e3 || n2.error("a prompt id was not provided to getSystemPromptsTopic"), t3 || n2.error("a resource id was not provided to getSystemPromptsTopic"), `v2.architect.systemprompts.${e3}.resources.${t3}`; + }, t2.getUserPromptsTopic = function(e3, t3) { + return e3 || n2.error("a prompt id was not provided to getUserPromptsTopic"), t3 || n2.error("a resource id was not provided to getUserPromptsTopic"), `v2.architect.prompts.${e3}.resources.${t3}`; + }; + const n2 = (0, i2(24032).getTopic)("subscriptionTopics"); + }, 77953: (e2, t2, i2) => { + "use strict"; + const n2 = i2(31635), r2 = i2(17604), o = n2.__importDefault(i2(41510)), a = i2(80428), s = i2(61568), l = i2(64720), u = i2(81516), d = i2(99469), c = n2.__importDefault(i2(27203)), p = n2.__importStar(i2(36781)), _ = i2(29626), h = i2(27667), m = i2(27667), g = i2(27667), f = i2(82632), T = i2(12179), y = n2.__importDefault(i2(97891)), S = i2(87870), A = n2.__importDefault(i2(5730)), N = i2(47957); + class O extends A.default { + static get branchInfo() { + return c.default.successFailure; + } + constructor(e3, t3) { + super(e3.parentFlow, e3), this._loadModel(t3); + } + static get managedProperties() { + return [{ createDetails: S.NoteActionProperty.createCreateDetails(N.sendRichLink.showNote, "info", "showNote"), options: d.ManagedPropertyOptions.create((e3) => e3.setUiPropertyOrder(0)), property: "showNote", yamlOptions: O.createYamlOptions("showNote", (e3) => e3.setSkipProperty(true)) }, { label: N.sendRichLink.headerType, options: u.ExpressionTypeStringOptions.create((e3) => e3.setIsOptional(true).setDescriptionInfo(N.sendRichLink.headerType, N.sendRichLink.headerTypeDescription).setIninTestingField("headerType").setUiPropertyCardGroup(N.sendRichLink.uiPanelName, void 0, false).setModeNoValueSelectionLabel(N.sendRichLink.headerTypeNoValueSelectionLabel).setModeNoValueRuntimeEvaluationStr(N.sendRichLink.headerTypeNoValueRuntimeEvalStr).setUiPropertyOrder(1).facets.setAllowableValues(h.allHeaderTypeChoices, true).setAllowableValuePlaceholder(N.sendRichLink.headerTypePlaceholder)), property: "headerType", type: a.expressionTypeNames.string }, { label: N.sendRichLink.headerText, options: u.ExpressionTypeStringOptions.create((e3) => e3.setIsOptional(false).setDescriptionInfo(N.sendRichLink.headerText, N.sendRichLink.headerTextDescription).setIninTestingField("headerText").setUiPropertyCardGroup(N.sendRichLink.uiPanelName, void 0, false).setUiPropertyOrder(2).facets.setMinLength(f.richLink.header.minLength).setMaxLength(f.richLink.header.maxLength)), property: "headerText", type: a.expressionTypeNames.string }, { label: N.sendRichLink.headerImage, options: l.ExpressionTypeImageOptions.create((e3) => e3.setIsOptional(false).setDescriptionInfo(N.sendRichLink.headerImage, N.sendRichLink.headerImageDescription).setIninTestingField("headerImage").setUiPropertyCardGroup(N.sendRichLink.uiPanelName, void 0, false).setUiPropertyOrder(3)), property: "headerImage", type: a.expressionTypeNames.image }, { label: N.sendRichLink.body, options: u.ExpressionTypeStringOptions.create((e3) => e3.setIsOptional(false).setDescriptionInfo(N.sendRichLink.body, N.sendRichLink.bodyDescription).setIninTestingField("body").setUiPropertyCardGroup(N.sendRichLink.uiPanelName, "title", false).setUiPropertyOrder(4).facets.setMinLength(f.richLink.body.minLength).setMaxLength(f.richLink.body.maxLength)), property: "body", type: a.expressionTypeNames.string }, { label: N.sendRichLink.footer, options: u.ExpressionTypeStringOptions.create((e3) => e3.setIsOptional(true).setDescriptionInfo(N.sendRichLink.footer, N.sendRichLink.footerDescription).setIninTestingField("footer").setUiPropertyCardGroup(N.sendRichLink.uiPanelName, "subtitle", false).setModeNoValueSelectionLabel(N.sendRichLink.footerNoValueSelectionLabel).setModeNoValueRuntimeEvaluationStr(N.sendRichLink.footerNoValueRuntimeEvalStr).setUiPropertyOrder(5).facets.setMinLength(f.richLink.footer.minLength).setMaxLength(f.richLink.footer.maxLength)), property: "footer", type: a.expressionTypeNames.string }, { label: N.sendRichLink.urlValue, options: u.ExpressionTypeStringOptions.create((e3) => e3.setIsOptional(false).setDescriptionInfo(N.sendRichLink.urlValue, (0, r2.sprintf)(o.default.generic.threeStringsSpaceSeparator, N.sendRichLink.urlValueDescription, N.generic.urlFormat, N.sendRichLink.urlInvalidWarning)).setIninTestingField("urlValue").setUiPropertyCardGroup(N.sendRichLink.uiPanelName, void 0, false).setUiPropertyOrder(6).facets.setMinLength(f.richLink.url.minLength)), property: "urlValue", type: a.expressionTypeNames.string }, { label: N.sendRichLink.urlLabel, options: u.ExpressionTypeStringOptions.create((e3) => e3.setIsOptional(false).setDescriptionInfo(N.sendRichLink.urlLabel, N.sendRichLink.urlLabelDescription).setIninTestingField("urlLabel").setUiPropertyCardGroup(N.sendRichLink.uiPanelName, void 0, false).setUiPropertyOrder(7).facets.setMinLength(f.richLink.urlLabel.minLength).setMaxLength(f.richLink.urlLabel.maxLength)), property: "urlLabel", type: a.expressionTypeNames.string }]; + } + initializeDesignTime() { + super.initializeDesignTime(), this.addAutoCleanedUpEventSinkWatch(p.expressionValueChanged, this.headerType, () => { + this._updateState(); + }), this.addAutoCleanedUpEventSinkWatch(p.expressionModeChanged, this.headerType, () => { + this._updateState(); + }), this._updateState(); + } + _updateOutOfService() { + this.headerText.outOfService = this._shouldOOSHeaderType(g.headerTypeTextChoice.id), this.headerImage.outOfService = this._shouldOOSHeaderType(m.headerTypeImageChoice.id); + } + _shouldOOSHeaderType(e3) { + var t3; + if (!(null === (t3 = this.headerType.text) || void 0 === t3 ? void 0 : t3.length)) return true; + const i3 = this.headerType.getDesignTimeAllowableValue(); + return i3 && i3.id !== e3; + } + _updateCardProperties() { + this.headerText.outOfService && this.headerImage.outOfService ? (this.body.options.setUiPropertyCardGroup(N.sendRichLink.uiPanelName, "title", false), this.footer.options.setUiPropertyCardGroup(N.sendRichLink.uiPanelName, "subtitle", false), this.headerText.options.setUiPropertyCardGroup(N.sendRichLink.uiPanelName, void 0, false), this.headerImage.options.setUiPropertyCardGroup(N.sendRichLink.uiPanelName, void 0, false)) : this.headerImage.outOfService ? (this.headerText.options.setUiPropertyCardGroup(N.sendRichLink.uiPanelName, "title", false), this.body.options.setUiPropertyCardGroup(N.sendRichLink.uiPanelName, "subtitle", false), this.headerImage.options.setUiPropertyCardGroup(N.sendRichLink.uiPanelName, void 0, false), this.footer.options.setUiPropertyCardGroup(N.sendRichLink.uiPanelName, void 0, false)) : (this.headerImage.options.setUiPropertyCardGroup(N.sendRichLink.uiPanelName, "image", false), this.body.options.setUiPropertyCardGroup(N.sendRichLink.uiPanelName, "title", false), this.footer.options.setUiPropertyCardGroup(N.sendRichLink.uiPanelName, "subtitle", false), this.headerText.options.setUiPropertyCardGroup(N.sendRichLink.uiPanelName, void 0, false)); + } + _updateState() { + this._updateOutOfService(), this._updateCardProperties(); + } + _getPossibleErrors() { + return _.getSendRichLinkFailureReasons; + } + } + O.info = y.default.createActionInfo({ actionClass: O, canBeInTask: true, canBeTreeNode: false, helpTopic: T.helpTopics.actions.sendRichLink, modelClass: s.SendRichLinkActionModel, name: N.actions.sendRichLink, scriptingName: "ArchActionSendRichLink" }), t2.A = O; + }, 78051: function(e2, t2, i2) { + "use strict"; + var n2, r2 = this && this.__extends || (n2 = function(e3, t3) { + return n2 = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(e4, t4) { + e4.__proto__ = t4; + } || function(e4, t4) { + for (var i3 in t4) Object.prototype.hasOwnProperty.call(t4, i3) && (e4[i3] = t4[i3]); + }, n2(e3, t3); + }, function(e3, t3) { + if ("function" != typeof t3 && null !== t3) throw new TypeError("Class extends value " + String(t3) + " is not a constructor or null"); + function i3() { + this.constructor = e3; + } + n2(e3, t3), e3.prototype = null === t3 ? Object.create(t3) : (i3.prototype = t3.prototype, new i3()); + }); + Object.defineProperty(t2, "__esModule", { value: true }), t2.AsapAction = void 0; + var o = i2(64772), a = i2(16002), s = (function(e3) { + function t3(t4, i3) { + var n3 = e3.call(this, t4, i3) || this; + return n3.scheduler = t4, n3.work = i3, n3; + } + return r2(t3, e3), t3.prototype.requestAsyncId = function(t4, i3, n3) { + return void 0 === n3 && (n3 = 0), null !== n3 && n3 > 0 ? e3.prototype.requestAsyncId.call(this, t4, i3, n3) : (t4.actions.push(this), t4._scheduled || (t4._scheduled = a.immediateProvider.setImmediate(t4.flush.bind(t4, void 0)))); + }, t3.prototype.recycleAsyncId = function(t4, i3, n3) { + var r3; + if (void 0 === n3 && (n3 = 0), null != n3 ? n3 > 0 : this.delay > 0) return e3.prototype.recycleAsyncId.call(this, t4, i3, n3); + var o2 = t4.actions; + null != i3 && (null === (r3 = o2[o2.length - 1]) || void 0 === r3 ? void 0 : r3.id) !== i3 && (a.immediateProvider.clearImmediate(i3), t4._scheduled === i3 && (t4._scheduled = void 0)); + }, t3; + })(o.AsyncAction); + t2.AsapAction = s; + }, 78072: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.window = void 0; + var n2 = i2(76808), r2 = i2(65212), o = i2(17214), a = i2(5717), s = i2(19724); + t2.window = function(e3) { + return r2.operate(function(t3, i3) { + var r3 = new n2.Subject(); + i3.next(r3.asObservable()); + var l = function(e4) { + r3.error(e4), i3.error(e4); + }; + return t3.subscribe(o.createOperatorSubscriber(i3, function(e4) { + return null == r3 ? void 0 : r3.next(e4); + }, function() { + r3.complete(), i3.complete(); + }, l)), s.innerFrom(e3).subscribe(o.createOperatorSubscriber(i3, function() { + r3.complete(), i3.next(r3 = new n2.Subject()); + }, a.noop, l)), function() { + null == r3 || r3.unsubscribe(), r3 = null; + }; + }); + }; + }, 78091: (e2, t2, i2) => { + "use strict"; + const n2 = i2(31635), r2 = n2.__importDefault(i2(942)), o = i2(20083), a = i2(80428), s = i2(9311), l = i2(12179), u = n2.__importDefault(i2(97891)), d = i2(47957); + class c extends r2.default { + constructor(e3, t3) { + super(e3.parentFlow, e3), this._loadModel(t3); + } + static get managedProperties() { + return r2.default.createManagedProperties({ searchFieldPropertyName: "findId", searchFieldOptionsCallback: (e3) => e3.facets.setLengthForUuid(), searchFieldLabel: d.findActions.findKnowledgeBaseDocument.findKnowledgeBaseDocumentIdLabel, searchResultLabel: d.findActions.findKnowledgeBaseDocument.findKnowledgeBaseDocumentResultLabel, searchResultExpressionOptions: o.ExpressionTypeKnowledgeBaseDocumentOptions.create(), searchResultItemType: a.expressionTypeNames.knowledgeBaseDocument }); + } + } + c.info = u.default.createActionInfo({ actionClass: c, canBeInTask: true, helpTopic: l.helpTopics.actions.findKnowledgeBaseDocumentById, modelClass: s.FindKnowledgeBaseDocumentByIdActionModel, name: d.actions.findKnowledgeBaseDocumentById, scriptingName: "ArchActionFindKnowledgeBaseDocumentById" }), t2.A = c; + }, 78102: (e2, t2, i2) => { + const n2 = i2(62979).default; + function r2() { + Object.defineProperties(this, { _nextUri: { value: void 0, writable: true } }), r2.baseConstructor.apply(this, arguments); + } + i2(22124).extend(r2, "DecisionTableList"), Object.defineProperties(r2.prototype, { entities: { enumerable: true, get: function() { + return this._entities; + }, set: function(e3) { + this._entities = this.reviveArray(e3, n2); + } }, nextUri: { enumerable: true, get: function() { + return this._nextUri; + }, set: function(e3) { + this._nextUri = e3; + } } }), e2.exports = r2; + }, 78105: (e2, t2, i2) => { + "use strict"; + const n2 = i2(31635), r2 = n2.__importDefault(i2(97891)), o = i2(81516), a = i2(80428), s = i2(96546), l = n2.__importDefault(i2(27203)), u = i2(79537), d = i2(12179), c = i2(81904), p = i2(49892), _ = i2(79467), h = n2.__importDefault(i2(73198)), m = n2.__importStar(i2(63824)), g = i2(82632), f = n2.__importDefault(i2(47163)), T = i2(87870), y = i2(47957), S = i2(21733); + class A extends f.default { + constructor(e3, t3) { + super(e3), this._loadModel(t3); + } + setNewInstanceDefaults(e3) { + super.setNewInstanceDefaults(e3); + const t3 = S(this.parentFlow.defaultLanguage).askForAuthentication.noInputDigitalBot; + this.setNewInstanceNoInputText(t3); + const i3 = S(this.parentFlow.defaultLanguage).askForAuthentication.noMatchDigitalBot; + this.setNewInstanceNoMatchText(i3), this.setBranchOutOfService(l.default.maxNoInputsOptional.outputId), this.setBranchOutOfService(l.default.maxNoMatchesOptional.outputId); + } + static get managedProperties() { + return [{ createDetails: T.NoteActionProperty.createCreateDetails(y.askForAuthentication.askForAuthChannelNote, "info", "askForAuthenticationChannelNote"), property: "channelAlert", options: p.ExpressionTypelessOptions.create((e3) => e3.setUiPropertyOrder(1)), yamlOptions: A.createYamlOptions("channelAlert", (e3) => e3.setSkipProperty(true)) }, { label: y.askForAuthentication.askForAuthSignInMessage, options: o.ExpressionTypeStringOptions.create((e3) => e3.setAsInput().setDefaultText(y.askForAuthentication.askForAuthSignInMessageDefault).setIninTestingField("signInMessage").setUiPropertyOrder(2).setAllowNotSet(false).facets.setAllowNull(false).setMinLength(g.askForAuthentication.signInMessage.minLength).setMaxLength(g.askForAuthentication.signInMessage.maxLength)), property: "signInMessage", type: a.expressionTypeNames.string }, { label: y.askForAuthentication.askForAuthSuccessMessage, options: o.ExpressionTypeStringOptions.create((e3) => e3.setAsInput().setDefaultText(y.askForAuthentication.askForAuthSuccessMessageDefault).setIninTestingField("successMessage").setUiPropertyOrder(3).setAllowNotSet(false).facets.setAllowNull(false).setMinLength(g.askForAuthentication.successMessage.minLength).setMaxLength(g.askForAuthentication.successMessage.maxLength)), property: "successMessage", type: a.expressionTypeNames.string }, { label: y.askForAuthentication.askForAuthCompletionTimeout, options: _.ExpressionTypeDurationOptions.create((e3) => e3.setIninTestingField("authenticationCompletionTimeout").setDescriptionInfo(y.askForAuthentication.askForAuthCompletionTimeout, y.askForAuthentication.askForAuthCompletionTimeoutDesc).setDefaultText(h.default.litDurationThreeMinutes).setDurationStyle(m.durationStyles.fullDuration).setUiPropertyOrder(4).facets.setMinDur(g.askForAuthentication.authenticationCompletionTimeout.minDuration, g.askForAuthentication.authenticationCompletionTimeout.minDurationInclusive).setMaxDur(g.askForAuthentication.authenticationCompletionTimeout.maxDuration, g.askForAuthentication.authenticationCompletionTimeout.maxDurationInclusive)), property: "authenticationCompletionTimeout", type: a.expressionTypeNames.duration }]; + } + get supportsCustomOutputPaths() { + return true; + } + get hasOptionalPaths() { + return true; + } + static get branchInfo() { + return [...l.default.successFailure, l.default.maxNoInputsOptional, l.default.maxNoMatchesOptional]; + } + _getPossibleErrors() { + return u.getAuthenticationFailureReasons; + } + } + A.info = r2.default.createActionInfo({ actionClass: A, canBeInTask: true, helpTopic: d.helpTopics.actions.askForAuthentication, modelClass: c.AskForAuthenticationActionModel, name: y.actions.askForAuthentication, scriptingName: "ArchActionAskForAuthentication", supportedSessionSources: s.appleBusinessOnly, supportsUtteranceHistoricalData: true }), t2.A = A; + }, 78234: (e2, t2, i2) => { + function n2() { + this.dataTypeDef = void 0, n2.baseConstructor.apply(this, arguments); + } + i2(88732).extend(n2, "ClipboardDependencyCustomDataTypeDefModel", true), e2.exports = n2; + }, 78235: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.EmergencyGroupViewModel = void 0; + const n2 = i2(74483); + class r2 extends n2.NameIdConfigurationListViewModel { + constructor(e3) { + super(e3); + } + get className() { + return "EmergencyGroupViewModel"; + } + get label() { + return this._model.name; + } + } + t2.EmergencyGroupViewModel = r2; + }, 78249: (e2, t2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.typeMap = t2.MISMATCH_TYPES = t2.MISMATCH_OUTPUT = t2.MISMATCH_NAME = t2.MISMATCH_INPUT = t2.MISMATCH_INCOMPATIBLE = t2.MISMATCH_DATA_TYPE = void 0, t2.MISMATCH_DATA_TYPE = "dataType", t2.MISMATCH_INCOMPATIBLE = "incompatible", t2.MISMATCH_INPUT = "input", t2.MISMATCH_NAME = "name", t2.MISMATCH_OUTPUT = "output", t2.MISMATCH_TYPES = [t2.MISMATCH_DATA_TYPE, t2.MISMATCH_INCOMPATIBLE, t2.MISMATCH_INPUT, t2.MISMATCH_NAME, t2.MISMATCH_OUTPUT], t2.typeMap = {}, t2.MISMATCH_TYPES.forEach((e3) => t2.typeMap[e3] = e3); + }, 78258: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(54063)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "externalInstagramInfoCollection"; + } + get displayTypeName() { + return "ArchValueExternalInstagramInfoCollection"; + } + get isArchValueExternalInstagramInfoCollection() { + return true; + } + } + t2.default = r2; + }, 78263: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.isAsyncIterable = void 0; + var n2 = i2(10281); + t2.isAsyncIterable = function(e3) { + return Symbol.asyncIterator && n2.isFunction(null == e3 ? void 0 : e3[Symbol.asyncIterator]); + }; + }, 78280: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.getConversationCustomAttributeSchemas = a, t2.getConversationCustomAttributeSchema = s; + const n2 = i2(31635), r2 = n2.__importStar(i2(66359)), o = n2.__importDefault(i2(36019)); + function a(e3) { + return o.default.build(r2.getConversationCustomAttributeSchemas).call(); + } + function s(e3) { + return o.default.build(r2.getConversationCustomAttributeSchema).templateParams({ id: e3 }).call(); + } + a.api = r2.getConversationCustomAttributeSchemas, s.api = r2.getConversationCustomAttributeSchema; + }, 78306: (e2, t2, i2) => { + "use strict"; + const n2 = i2(31635), r2 = n2.__importDefault(i2(92140)), o = i2(81516), a = i2(99469), s = i2(36128), l = n2.__importDefault(i2(27203)), u = i2(64437), d = i2(12179), c = n2.__importDefault(i2(97891)), p = i2(28803), _ = n2.__importDefault(i2(88391)), h = i2(80428), m = i2(47957); + class g extends _.default { + constructor(e3, t3) { + super(e3, t3); + } + get applicationName() { + const e3 = this.botRunnableManager.getItem(this.botRunnableProperty.idValue, this); + return null == e3 ? void 0 : e3.applicationName; + } + static get branchInfo() { + return l.default.successFailure; + } + static get managedProperties() { + return [{ property: "botIntegration", skipNetworkPropertyDependencyUpdate: true, createDetails: p.NetworkBasedActionProperty.createCreateDetails("integrationId", "integrationName", u.audioConnectorManager, m.callAudioConnector.mustSelectAudioConnectorIntegration, m.botGeneric.selectedBotIntegrationNotFound, null), yamlOptions: g.createYamlOptions("botIntegration", (e3) => e3.setSkipProperty(true)), label: m.callAudioConnector.audioConnectorType, options: a.ManagedPropertyOptions.create((e3) => e3.setDescriptionInfo(m.integration.name, m.callAudioConnector.audioConnectorIntegrationDescription)) }, { property: "connectorId", label: m.callAudioConnector.connectorId, type: h.expressionTypeNames.string, options: o.ExpressionTypeStringOptions.create((e3) => e3.setIninTestingField("connectorId").setAllowNotSet(false).setIsOptional(false).facets.setMinLength(1).setAllowNull(false)) }, { property: "sessionVariables", namedItems: true, isOutput: false, options: s.NameValuePairsOptions.create((e3) => e3.setNameLabel(m.updateVariables.variableName).setValueLabel(m.updateVariables.variableValue).setAllowLiteralModeOnlyOnName(true)), yamlOptions: g.createYamlOptions("sessionVariables", (e3) => e3.setWrappedCollectionItemName("sessionVariable")) }, { property: "outputSessionVariables", namedItems: true, isOutput: true, options: s.NameValuePairsOptions.create((e3) => e3.setAllowLiteralModeOnlyOnName(true).setNameLabel(m.dialogflow.sessionKeyLabel).setValueLabel(m.getAttributes.variableLabel)), yamlOptions: g.createYamlOptions("outputSessionVariables", (e3) => e3.setWrappedCollectionItemName("outputSessionVariable").setNameValuePairShouldUseVariableProperty(true)) }, { dataList: true, isOutput: true, property: "errorBindings", yamlOptions: g.createYamlOptions("errorBindings", (e3) => e3.setPropertyName("failureOutputs")) }]; + } + get botRunnableProperty() { + return this.botIntegration; + } + get isCallAudioConnectorAction() { + return true; + } + get supportsInputsOutputs() { + return true; + } + get doesNotSupportIntents() { + return true; + } + get supportsSessionVariables() { + return false; + } + get shouldSkipLanguageValidation() { + return true; + } + postProcessYamlConfig(e3, t3, i3) { + if (this.botRunnableProperty.idValue || (this.removeYamlExportPropsThatRequireRunnable(e3), delete e3.connectorId), !this.botIntegration.nameValue) return; + e3.integration = {}; + const n3 = e3.integration[this.botIntegration.nameValue] = {}; + r2.default.moveAndDeleteProperty(e3, n3, "connectorId"), this.commonBotPostProcessYamlConfig(e3, n3); + } + } + g.info = c.default.createActionInfo({ actionClass: g, canBeInTask: true, helpTopic: d.helpTopics.actions.callAudioConnector, modelClass: i2(19886), name: m.actions.callAudioConnector, scriptingName: "ArchActionCallAudioConnector" }), t2.A = g; + }, 78322: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importDefault(i2(92140)), o = n2.__importDefault(i2(3220)), a = n2.__importDefault(i2(94225)), s = n2.__importDefault(i2(56549)), l = i2(63221), u = i2(67801), d = i2(18894), c = n2.__importDefault(i2(67336)), p = n2.__importStar(i2(10798)), _ = n2.__importDefault(i2(4648)), h = n2.__importDefault(i2(65449)), m = n2.__importDefault(i2(6953)), g = i2(89599); + class f extends c.default { + constructor(e3) { + super(e3); + } + get logStr() { + if (!this._getCoreViewModel()) return this.logStrTypeOnly; + const e3 = []; + this._appendLogStrType(e3, this.displayTypeName), this._appendLogStrLanguageTag(e3, this._getCoreViewModel().language); + const t3 = this._getCoreViewModel().textToSpeech; + return t3 && (this._appendLogStrTtsEngineSelectionType(e3, t3.engine.selection.toString()), t3.engine.selection !== l.engineSelectionTypes.engineSelectionNone && this._appendLogStrTtsEngineName(e3, t3.engine.name || ""), this._appendLogStrTtsEngineVoiceSelectionType(e3, t3.voice.selection.toString()), t3.voice.selection !== l.engineSelectionTypes.engineSelectionNone && this._appendLogStrTtsEngineVoiceName(e3, t3.voice.name || "")), this._createLogStrFromParts(e3); + } + get defaultLanguageSkill() { + const e3 = this._getCoreViewModel().parent.parentFlow; + return e3 && e3.isFlowViewModel && e3.languagesSupportDefaultLanguageSkill ? this.coreFactory.createArchWrapper(this._getCoreViewModel().languageSkill) : null; + } + get displayTypeName() { + return "ArchSettingsSupportedLanguage"; + } + get isArchSettingsSupportedLanguage() { + return true; + } + get language() { + const e3 = this._getCoreViewModel().language; + if (r2.default.isString(e3) && e3.length) return o.default.getByLanguageTag(e3); + } + setTtsEngine(e3) { + this.throwIfDoesNotSupportTts("setTtsEngine"); + const t3 = this._infoParm("archTtsEngine", "setTtsEngine"); + this._checkItem(t3, !e3 || !e3.isArchTtsEngine, "you must pass in a valid ArchTtsEngine instance."); + const i3 = e3._getCoreViewModel(), n3 = this._getCoreViewModel().language; + 0 === i3.getSelectableVoicesForLanguage(n3).length && this.logErrorAndThrow(`the text to speech engine '${e3.name}' does have any voices that support language '${n3}'.`), this._getCoreViewModel().textToSpeech.setEngine(i3, false); + } + setTtsEngineNone() { + this.throwIfDoesNotSupportTts("setTtsEngineNone"), this._getCoreViewModel().textToSpeech.setEngine(null, false); + } + setTtsEngineDefault() { + this.throwIfDoesNotSupportTts("setTtsEngineDefault"); + const e3 = this._getCoreViewModel().language, t3 = this._getCoreViewModel().parent.parentFlow, i3 = m.default.getDefaultEngineForLanguageAndFlowTypeOrTypes(e3, t3.type); + return i3 || this.logErrorAndThrow(`a default engine was not found for language '${e3}'.`), this._getCoreViewModel().textToSpeech.setEngine(i3, true), this.coreFactory.createArchWrapper(i3); + } + setTtsVoice(e3) { + this.throwIfDoesNotSupportTts("setTtsVoice"); + const t3 = this._getCoreViewModel().language; + if (!e3._getCoreViewModel().getVoiceSupportsLanguage(t3)) { + const i4 = `voice '${e3.name}' does not support language '${t3}'.`; + p.isFeatureAvailable(_.default.flexibleTtsSelection) ? this.logWarning(i4) : this.logErrorAndThrow(i4); + } + const i3 = this.ttsEngine; + i3 && i3.id !== e3.parentEngine.id && this.setTtsEngine(e3.parentEngine), this._getCoreViewModel().textToSpeech.setVoice(e3._getCoreViewModel(), false); + } + setTtsVoiceNone() { + this.throwIfDoesNotSupportTts("setTtsVoiceNone"), this._getCoreViewModel().textToSpeech.setVoice(null, false); + } + setTtsVoiceDefaultForCurrentEngine() { + this.throwIfDoesNotSupportTts("setTtsVoiceDefaultForCurrentEngine"); + const e3 = this._getCoreViewModel().language, t3 = this.ttsEngine; + t3 || this.logErrorAndThrow(`a text to speech engine was not set for language '${e3}' before setTtsVoiceDefaultForCurrentEngine was called.`); + const i3 = t3._getCoreViewModel(), n3 = i3.getDefaultVoiceForLanguage(e3); + return n3 || this.logErrorAndThrow(`a default voice was not found for engine '${i3.name}' and language '${e3}'.`), this._getCoreViewModel().textToSpeech.setVoice(n3, true), this.coreFactory.createArchWrapper(n3); + } + get speechToTextEngine() { + if (!this._getCoreViewModel().parent.parentFlow.definition.languagesSupportSttSetting) return null; + const e3 = this._getCoreViewModel().speechToTextEngine; + return e3 && e3.model.id ? this.coreFactory.createArchWrapper(e3) : void 0; + } + get ttsEngine() { + if (!this._getCoreViewModel().parent.parentFlow.definition.languagesSupportTtsAndAsrSettings) return null; + const e3 = this._getCoreViewModel().textToSpeech; + if (e3.engine && e3.engine.id) { + const t3 = m.default.getItemById(e3.engine.id); + if (t3) return this.coreFactory.createArchWrapper(t3); + this._logErrorInternalAndThrow(`text to speech engine not found for ID '${e3.engine.id}'.`); + } + return null; + } + get ttsVoice() { + const e3 = this.ttsEngine; + if (e3) { + const t3 = this._getCoreViewModel().textToSpeech; + if (t3.voice && t3.voice.id) return e3.getVoiceById(t3.voice.id); + } + return null; + } + setSpeechToTextEngineByNameAsync(e3, t3) { + return n2.__awaiter(this, void 0, void 0, function* () { + this._checkItemIsValidLiteralString(this._infoParm("engineName", "setSpeechToTextEngineByNameAsync"), e3), this._checkItemIsValidFunction(this._infoParm("callbackFunction", "setSpeechToTextEngineByNameAsync"), t3, true), this._getCoreViewModel().parent.parentFlow.languagesSupportSpeechToTextSettings || this.logErrorAndThrow("flow does not support speech to text settings, can not set speech to text engine by name"); + const i3 = h.default.getItemByName(e3); + if (i3) return (null == i3 ? void 0 : i3.grammarBased) && this.logErrorAndThrow("Unable to set a grammar-based speech to text engine in supported language settings."), (null == i3 ? void 0 : i3.isLanguageSupported(this._getCoreViewModel().language)) || this.logErrorAndThrow(`Unable to set ${i3.name} as speech to text engine in supported language settings for language ${this._getCoreViewModel().language}.`), this._getCoreViewModel().speechToTextEngine.setEngine(i3, false), this._getCoreViewModel().speechToTextEngineChoice = i3, a.default.executeCallback(this, "setSpeechToTextEngineByNameAsync", t3, this); + }); + } + setSpeechToTextEngineByIdAsync(e3, t3) { + return n2.__awaiter(this, void 0, void 0, function* () { + this._checkItemIsValidLiteralString(this._infoParm("engineId", "setSpeechToTextEngineByIdAsync"), e3), this._checkItemIsValidFunction(this._infoParm("callbackFunction", "setSpeechToTextEngineByIdAsync"), t3, true), this._getCoreViewModel().parent.parentFlow.languagesSupportSpeechToTextSettings || this.logErrorAndThrow("flow does not support speech to text settings, can not set speech to text engine by id"); + const i3 = h.default.getItemById(e3); + if (i3) return (null == i3 ? void 0 : i3.grammarBased) && this.logErrorAndThrow("Unable to set a grammar-based speech to text engine in supported language settings."), (null == i3 ? void 0 : i3.isLanguageSupported(this._getCoreViewModel().language)) || this.logErrorAndThrow(`Unable to set ${i3.id} as speech to text engine in supported language settings for language ${this._getCoreViewModel().language}.`), this._getCoreViewModel().speechToTextEngine.setEngine(i3, false), this._getCoreViewModel().speechToTextEngineChoice = i3, a.default.executeCallback(this, "setSpeechToTextEngineByNameAsync", t3, this); + }); + } + setSpeechToTextEngineFromDefaultAsync(e3) { + return n2.__awaiter(this, void 0, void 0, function* () { + this._checkItemIsValidFunction(this._infoParm("callbackFunction", "setSpeechToTextEngineFromDefaultAsync"), e3, true), this._getCoreViewModel().parent.parentFlow.languagesSupportSpeechToTextSettings || this.logErrorAndThrow("flow does not support speech to text settings, can not set speech to text engine by id"); + const t3 = h.default.getDefaultEngineForLanguage(this._getCoreViewModel().language); + if (t3) return (null == t3 ? void 0 : t3.grammarBased) && this.logErrorAndThrow("Unable to set a grammar-based speech to text engine in supported language settings."), this._getCoreViewModel().speechToTextEngine.setEngine(t3, true), this._getCoreViewModel().speechToTextEngineChoice = this._getCoreViewModel().defaultSttEngineChoice, a.default.executeCallback(this, "setSpeechToTextEngineFromDefaultAsync", e3, this); + }); + } + get knowledgeBaseName() { + var e3, t3; + const i3 = this._getCoreViewModel().parent.parentFlow; + if (i3.supportsMultilingualKnowledge) return this._isDefaultLanguageForFlow ? null === (e3 = i3.knowledgeSettings) || void 0 === e3 ? void 0 : e3.knowledgeBaseName : null === (t3 = this._getCoreViewModel().knowledgeBase) || void 0 === t3 ? void 0 : t3.name; + } + get knowledgeBaseId() { + var e3, t3; + const i3 = this._getCoreViewModel().parent.parentFlow; + if (i3.supportsMultilingualKnowledge) return this._isDefaultLanguageForFlow ? null === (e3 = i3.knowledgeSettings) || void 0 === e3 ? void 0 : e3.knowledgeBaseId : null === (t3 = this._getCoreViewModel().knowledgeBase) || void 0 === t3 ? void 0 : t3.id; + } + get knowledgeSettingName() { + var e3, t3; + const i3 = this._getCoreViewModel().parent.parentFlow; + if (i3.supportsMultilingualKnowledge) return this._isDefaultLanguageForFlow ? null === (e3 = i3.knowledgeSettings) || void 0 === e3 ? void 0 : e3.knowledgeSettingName : null === (t3 = this._getCoreViewModel().knowledgeSetting) || void 0 === t3 ? void 0 : t3.name; + } + get knowledgeSettingId() { + var e3, t3; + const i3 = this._getCoreViewModel().parent.parentFlow; + if (i3.supportsMultilingualKnowledge) return this._isDefaultLanguageForFlow ? null === (e3 = i3.knowledgeSettings) || void 0 === e3 ? void 0 : e3.knowledgeSettingId : null === (t3 = this._getCoreViewModel().knowledgeSetting) || void 0 === t3 ? void 0 : t3.id; + } + _setKnowledgeBaseAsync(e3, t3, i3) { + return n2.__awaiter(this, void 0, void 0, function* () { + var n3, r3; + const o2 = this._getCoreViewModel().parent.parentFlow; + return o2.supportsMultilingualKnowledge || this.logErrorAndThrow(`cannot set a knowledge base on the language '${this._getCoreViewModel().language}' as the flow '${o2.displayName}' does not support knowledge bases for multiple languages.`), this._isDefaultLanguageForFlow ? (this.logNote(`The language '${this._getCoreViewModel().language}' is the default language for the flow. Forwarding to Knowledge Settings to set the default Knowledge Base.`), null === (n3 = o2.knowledgeSettings) || void 0 === n3 || n3.knowledge.setValue(t3)) : ((null === (r3 = o2.knowledgeSettings) || void 0 === r3 ? void 0 : r3.knowledgeBaseId) || this.logErrorAndThrow(`cannot set a knowledge base on the language '${this._getCoreViewModel().language}' as the default knowledge base has not been set.`), this._getCoreViewModel().languageSupportsKnowledge || this.logErrorAndThrow(`cannot set a knowledge base on the language '${this._getCoreViewModel().language}' as knowledge is unavailable for this language.`), this._getCoreViewModel().knowledgeBase = t3), yield a.default.executeCallback(this, e3, i3, this); + }); + } + _setKnowledgeSettingAsync(e3, t3, i3) { + return n2.__awaiter(this, void 0, void 0, function* () { + var n3, r3; + const o2 = this._getCoreViewModel().parent.parentFlow; + return o2.supportsMultilingualKnowledge || this.logErrorAndThrow(`cannot set a knowledge setting on the language '${this._getCoreViewModel().language}' as the flow '${o2.displayName}' does not support knowledge settings for multiple languages.`), this._isDefaultLanguageForFlow ? (this.logNote(`The language '${this._getCoreViewModel().language}' is the default language for the flow. Forwarding to Knowledge Settings to set the default Knowledge Setting.`), null === (n3 = o2.knowledgeSettings) || void 0 === n3 || n3.knowledge_v3.setValue(t3)) : ((null === (r3 = o2.knowledgeSettings) || void 0 === r3 ? void 0 : r3.knowledgeSettingId) || this.logErrorAndThrow(`cannot set a knowledge setting on the language '${this._getCoreViewModel().language}' as the default knowledge setting has not been set.`), this._getCoreViewModel().languageSupportsKnowledge || this.logErrorAndThrow(`cannot set a knowledge setting on the language '${this._getCoreViewModel().language}' as knowledge is unavailable for this language.`), this._getCoreViewModel().knowledgeSetting = t3), yield a.default.executeCallback(this, e3, i3, this); + }); + } + setKnowledgeBaseByIdAsync(e3, t3) { + return n2.__awaiter(this, void 0, void 0, function* () { + this._checkItemIsValidLiteralString(this._infoParm("knowledgeBaseId", "setKnowledgeBaseByIdAsync"), e3, false), this._checkItemIsValidFunction(this._infoParm("callbackFunction", "setKnowledgeBaseByIdAsync"), t3, true); + const i3 = yield s.default.findItemByIdAsync(u.knowledgeBaseManager, e3, "knowledgeBaseId"); + return this.logNote(`found the knowledge base named '${i3.name}' for the knowledge base ID of '${e3}'`), yield this._setKnowledgeBaseAsync("setKnowledgeBaseByIdAsync", i3, t3); + }); + } + setKnowledgeBaseByNameAsync(e3, t3) { + return n2.__awaiter(this, void 0, void 0, function* () { + this._checkItemIsValidLiteralString(this._infoParm("knowledgeBaseName", "setKnowledgeBaseByNameAsync"), e3, false), this._checkItemIsValidFunction(this._infoParm("callbackFunction", "setKnowledgeBaseByNameAsync"), t3, true); + const i3 = yield s.default.findItemByValueAsync(u.knowledgeBaseManager, e3, "knowledge base", "name", "name"); + return this.logNote(`found the knowledge base named '${i3.name}'`), yield this._setKnowledgeBaseAsync("setKnowledgeBaseByNameAsync", i3, t3); + }); + } + setKnowledgeSettingByIdAsync(e3, t3) { + return n2.__awaiter(this, void 0, void 0, function* () { + this._checkItemIsValidLiteralString(this._infoParm("knowledgeSettingId", "setKnowledgeSettingByIdAsync"), e3, false), this._checkItemIsValidFunction(this._infoParm("callbackFunction", "setKnowledgeSettingByIdAsync"), t3, true); + const i3 = yield s.default.findItemByIdAsync(d.knowledgeSettingManager, e3, "knowledgeSettingId"); + return this.logNote(`found the knowledge setting named '${i3.name}' for the knowledge base ID of '${e3}'`), yield this._setKnowledgeSettingAsync("setKnowledgeSettingByIdAsync", i3, t3); + }); + } + setKnowledgeSettingByNameAsync(e3, t3) { + return n2.__awaiter(this, void 0, void 0, function* () { + this._checkItemIsValidLiteralString(this._infoParm("knowledgeSettingName", "setKnowledgeSettingByNameAsync"), e3, false), this._checkItemIsValidFunction(this._infoParm("callbackFunction", "setKnowledgeSettingByNameAsync"), t3, true); + const i3 = yield s.default.findItemByValueAsync(d.knowledgeSettingManager, e3, "knowledge setting", "name", "name"); + return this.logNote(`found the knowledge setting named '${i3.name}'`), yield this._setKnowledgeSettingAsync("setKnowledgeSettingByNameAsync", i3, t3); + }); + } + get conversationSummarySettingName() { + var e3; + if (this._getCoreViewModel().parent.parentFlow.supportsConversationSummary) return null === (e3 = this._getCoreViewModel().conversationSummarySetting) || void 0 === e3 ? void 0 : e3.name; + } + get conversationSummarySettingId() { + var e3; + if (this._getCoreViewModel().parent.parentFlow.supportsConversationSummary) return null === (e3 = this._getCoreViewModel().conversationSummarySetting) || void 0 === e3 ? void 0 : e3.id; + } + setConversationSummaryByIdAsync(e3, t3) { + return n2.__awaiter(this, void 0, void 0, function* () { + this._checkItemIsValidLiteralString(this._infoParm("conversationSummaryId", "setConversationSummaryByIdAsync"), e3, false), this._checkItemIsValidFunction(this._infoParm("callbackFunction", "setConversationSummaryByIdAsync"), t3, true); + const i3 = this._getCoreViewModel(), n3 = i3.parent.parentFlow; + n3.supportsConversationSummary || this.logErrorAndThrow(`cannot set a conversation summary setting on the language '${i3.language}' as the flow '${n3.displayName}' does not support conversation summary.`); + const r3 = yield s.default.findItemByIdAsync(g.conversationSummarySettingManager, e3, "conversationSummaryId"); + return this.logNote(`found the summarization setting named '${r3.name}' for the summarization setting ID of '${e3}'`), i3.conversationSummarySetting = r3, a.default.executeCallback(this, "setConversationSummaryByIdAsync", t3, this); + }); + } + setConversationSummaryByNameAsync(e3, t3) { + return n2.__awaiter(this, void 0, void 0, function* () { + this._checkItemIsValidLiteralString(this._infoParm("conversationSummaryName", "setConversationSummaryByNameAsync"), e3, false), this._checkItemIsValidFunction(this._infoParm("callbackFunction", "setConversationSummaryByNameAsync"), t3, true); + const i3 = this._getCoreViewModel().parent.parentFlow; + i3.supportsConversationSummary || this.logErrorAndThrow(`cannot set a conversation summary setting on the language '${this._getCoreViewModel().language}' as the flow '${i3.displayName}' does not support conversation summary.`); + const n3 = yield s.default.findItemByValueAsync(g.conversationSummarySettingManager, e3, "summarization setting", "name", "name"); + return this.logNote(`Found partial info for the summarization setting named '${n3.name}' for the passed summarization setting name of '${e3}'. Getting full summarization setting details.`), this.setConversationSummaryByIdAsync(n3.id, t3); + }); + } + get _isDefaultLanguageForFlow() { + return this._getCoreViewModel().parent.parentFlow.defaultLanguage === this._getCoreViewModel().language; + } + throwIfDoesNotSupportTts(e3) { + const t3 = this._infoMethod(e3); + this._ensureTtsInfoAvailable(t3, a.default); + const i3 = this._getCoreViewModel().parent.parentFlow; + i3.definition.supportsAudio || i3.definition.languagesSupportTtsAndAsrSettings || this.logErrorAndThrow("the flow type '" + i3.type + "' does not support text to speech. You can see if a flow type supports text to speech by accessing the supportsAudio property on it."); + } + } + t2.default = f; + }, 78350: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.TimeType = void 0; + const n2 = i2(31635), r2 = i2(17604), o = n2.__importDefault(i2(92140)), a = i2(24032), s = i2(74636), l = i2(94765), u = i2(80428), d = (0, a.getTopic)("TimeType"); + class c extends l.ExpressionType { + constructor(e3, t3, i3) { + super(e3, t3, i3), this.expressionOptionClass = s.ExpressionTypeTimeOptions; + } + get className() { + return "TimeType"; + } + createExpressionOptionClass() { + return new s.ExpressionTypeTimeOptions(this.isCollection); + } + get supportsLiteralEditor() { + return true; + } + _getIsTimeExpressionTextValid(e3) { + return !!o.default.isString(e3) && new RegExp("[0-2][0-9]:[0-5][0-9]:[0-5][0-9]").test(e3) && 8 === e3.length; + } + convertLitToExpression(e3, t3) { + if (this._getIsTimeExpressionTextValid(t3)) { + const e4 = this._parseTimeString(t3); + return `MakeTime(${e4.hours}, ${e4.minutes}, ${e4.seconds})`; + } + return t3; + } + _getLiteralValueOfExpression() { + return ""; + } + getYamlObjectForLiteralSingleton(e3) { + if (super.getYamlObjectForLiteralSingleton(e3), !this._getIsTimeExpressionTextValid(e3.text)) { + const t4 = `Invalid time parsed in TimeType.getYamlObjectForLiteralSingleton for expression text '${e3.text}'`; + throw d.exceptionWithErrorObjectInfo(null, t4, e3, true), t4; + } + const t3 = this._parseTimeString(e3.text); + return { hour: t3.hours, minute: t3.minutes, second: t3.seconds }; + } + _parseTimeString(e3) { + return { hours: parseInt(e3.substr(0, 2)), minutes: parseInt(e3.substr(3, 5)), seconds: parseInt(e3.substr(6, 2)) }; + } + searchExpression(e3, t3) { + if (t3.isLiteralMode && this._getIsTimeExpressionTextValid(t3.text)) { + const i3 = this._parseTimeString(t3.text); + let n3 = i3.hours; + const o2 = n3 >= 12 ? "PM" : "AM"; + n3 = n3 > 12 ? n3 - 12 : n3; + const a2 = (0, r2.sprintf)("%s:%02d:%02d %s", n3, i3.minutes, i3.seconds, o2); + e3.checkText(t3, a2, t3.label); + } else super.searchExpression(e3, t3); + } + convertLitToCustomJsonStr(e3, t3, i3, n3) { + return `"${i3 || t3 || ""}"`; + } + } + t2.TimeType = c, c.typeIdentifier = u.expressionTypeNames.time; + }, 78354: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.TimeslotType = t2.PROP_DURATION = t2.PROP_DATETIME = void 0; + const n2 = i2(31635), r2 = i2(79056), o = i2(80428), a = n2.__importDefault(i2(73198)), s = i2(94765), l = i2(47957); + t2.PROP_DATETIME = "dateTime", t2.PROP_DURATION = "duration"; + class u extends s.ExpressionType { + constructor(e3, t3, i3) { + super(e3, t3, i3); + } + get className() { + return "TimeslotType"; + } + convertLitToExpression(e3, t3) { + return ""; + } + _getLiteralValueOfExpression() { + return ""; + } + createExpressionOptionClass() { + return new r2.ExpressionTypeTimeslotOptions(this.isCollection); + } + get supportsLiteralEditor() { + return true; + } + get hasRichLiteralEditor() { + return true; + } + getPropDateTime(e3) { + return e3.getProperty(t2.PROP_DATETIME); + } + getPropDuration(e3) { + return e3.getProperty(t2.PROP_DURATION); + } + configurePropertyCreationParams(e3, i3, n3) { + switch (super.configurePropertyCreationParams(e3, i3, n3), i3.name) { + case t2.PROP_DATETIME: + n3.label = l.dynamicTimeslots.dynamicTimeslotsDateTimeLabel, n3.options.setIninTestingField("date-time"); + break; + case t2.PROP_DURATION: + n3.label = l.dynamicTimeslots.dynamicTimeslotsDurationLabel, n3.options.setIninTestingField("duration"), n3.options.setDefaultText(a.default.litDurationOneMinute); + } + } + } + t2.TimeslotType = u, u.typeIdentifier = o.expressionTypeNames.timeslot; + }, 78432: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.ArchEnums = void 0; + const n2 = i2(31635), r2 = n2.__importDefault(i2(92140)), o = i2(96618), a = i2(17666), s = i2(97111), l = n2.__importStar(i2(18325)), u = i2(35711), d = i2(89134), c = i2(32108), p = n2.__importDefault(i2(15928)), _ = n2.__importStar(i2(77751)), h = n2.__importDefault(i2(86531)), m = i2(44351), g = i2(79519), f = i2(24237), T = i2(30065), y = ["error", "optOut"], S = ["continue", "disconnect"], A = ["always", "never"], N = ["single", "multiple"], O = ["postback", "url"], I = ["carousel", "quickReplies", "timePicker", "listPicker"], v = [a.CodeLanguage.architectJson, a.CodeLanguage.architectYaml], C = ["input", "output", "error"], b = g.CustomJsonNamespace.architect, E = g.CustomJsonNamespace.decisionTable, R = g.CustomJsonNamespace.userDefined, w = g.CustomJsonNamespace.worktype, D = [b, g.CustomJsonNamespace.conversationAttribute, E, R, w], P = m.surveyFormDtmfTerminatingValues.map((e3) => e3.id), M = ["SMS"], F = ["intents", "knowledge", "neutral"], L = ["and", "or"], x = ["dev", "test", "prod"], k = ["DataTablesInternalServerError", "DataTablesServerTooBusyException", "DataTablesSyntaxError", "DataTablesTableNotFoundException"], V = ["FeatureNotEnabledError", "InternalServerError", "NoInputError", "NoMatchError", "NoResourceError", "VersionMismatchError"], U = "abortSend", B = "state", G = "completeSend", j = "continue", W = "disconnect", q = "endFlow", Y = "endInQueueState", H = "endWorkflow", J = "exit", z = "menu", K = "queue", $ = "task", Q = [U, B, G, j, W, q, Y, H, J, z, K, $], X = [l.debug, l.latest, l.published], Z = ["architect", "yaml"], ee = ["prompt", "duration"], te = ["individualDigits", "none", "numeric"], ie = ["positive", "negative"], ne = ["statement", "task"], re = ["standard", "highlight", "generative"], oe = ["standard", "custom"], ae = ["error", "info", "warning"], se = ["standard", "carousel"], le = ["convertToHtml", "convertToMarkdown", "none", "removeAllFormatting"], ue = ["active", "canceled", "closed", "conditionsNotMet", "default", "disconnect", "emergency", "error", "event", "failure", "formOutputs", "found", "holiday", "inactive", "invalid", "knowledge", "loop", "loopNext", "loopsMax", "matchExact", "matchMultiple", "maxNoInputs", "maxNoMatches", "no", "noInput", "noIntent", "notFound", "open", "partiallyFound", "skipResponseCapture", "success", "timeout", "valid", "voicemail", "yes"], de = f.all.map((e3) => e3.id), ce = T.all.map((e3) => e3.id), pe = ["about", "exact", "lessThan", "range"], _e = ["ahead", "number", "ordinal"], he = u.allPostFlowActionTypes.map((e3) => e3.id), me = d.allPostFlowTargetTypes.map((e3) => e3.id), ge = ["end", "endWithLogout"], fe = ["ended", "notStarted", "running"], Te = [h.default.entireFlow, h.default.none, h.default.startUpObject], ye = "notice", Se = "standard", Ae = [ye, Se], Ne = ["image", "text"], Oe = ["transfer", "disconnect"], Ie = ["matchExpression", "matchFirstTrue"], ve = ["Exit", "ExecuteTask"], Ce = []; + s.environmentList.forEach((e3) => { + e3.host.includes("app-regional") || ("dev" === e3.env || "test" === e3.env ? Ce.push(e3.env) : Ce.push(`${e3.env}_${e3.region}`.replace(/-/g, "_"))); + }), Ce.sort(); + const be = ["bot", "call", "chat", "common", "email", "flow", "interaction", "menu", "message", "session", "slot", "state", "survey", "task", "workflow", "workitem"], Ee = ["voiceSnippetService", "voicemailService"], Re = ["queue", "group", "user"], we = ["emergencyGroup", "schedule"], De = ["SUCCESS", "FAILURE"], Pe = [p.default.replyToAll, p.default.replyToSender], Me = [_.typeEmail.id, _.typeChat.id], Fe = [_.emailStyleHtml.id, _.emailStylePlain.id], Le = c.promptMediaTypes.audio, xe = c.promptMediaTypes.text, ke = [Le, "none", c.promptMediaTypes.tts, xe]; + class Ve { + constructor() { + this._cache = /* @__PURE__ */ new Map(); + } + arrayToMap(e3, t3, i3) { + this._cache || (this._cache = /* @__PURE__ */ new Map()); + let n3 = this._cache.get(t3); + return n3 || (n3 = e3.reduce((e4, t4) => { + let n4 = i3 ? i3(t4) : t4; + return n4 = n4.charAt(0).toLowerCase() + n4.slice(1), e4[n4] = t4, e4; + }, {}), this._cache.set(t3, n3)), n3; + } + get displayTypeName() { + return this._scriptingName; + } + get ABORT_SURVEY_INVITE_DISPOSITIONS() { + return this.arrayToMap(y, "_abort_survey_invite_dispositions"); + } + get ABORT_SURVEY_INVITE_DISPOSITIONS_ALL() { + return y; + } + get AUTO_GENERATED_EMAIL_HANDLING() { + return this.arrayToMap(S, "_auto_generated_email_handling"); + } + get AUTO_GENERATED_EMAIL_HANDLING_ALL() { + return S; + } + get BOT_CONFIRMATION_MODES() { + return this.arrayToMap(A, "_bot_confirmation_modes"); + } + get BOT_CONFIRMATION_MODES_ALL() { + return A; + } + get CAPTURE_TYPES() { + return this.arrayToMap(N, "_capture_types"); + } + get CAPTURE_TYPES_ALL() { + return N; + } + get CHOICE_TYPES() { + return this.arrayToMap(O, "_choice_types"); + } + get CHOICE_TYPES_ALL() { + return O; + } + get CHOOSER_PRESENTATION_MODES() { + return this.arrayToMap(I, "_chooser_modes"); + } + get CHOOSER_PRESENTATION_MODES_ALL() { + return I; + } + get CODE_LANGUAGES() { + return { archJson: a.CodeLanguage.architectJson, archYaml: a.CodeLanguage.architectYaml }; + } + get CODE_LANGUAGES_ALL() { + return v; + } + get CUSTOM_JSON_SCHEMA_TYPES() { + return this.arrayToMap(C, "_custom_json_schema_types"); + } + get CUSTOM_JSON_SCHEMA_TYPES_ALL() { + return C; + } + get CUSTOM_JSON_TYPE_NAMESPACES() { + return this.arrayToMap(D, "_custom_json_type_namespaces"); + } + get CUSTOM_JSON_TYPE_NAMESPACES_ALL() { + return D; + } + get DEFLECT_TYPES() { + return this.arrayToMap(M, "_deflect_types"); + } + get DEFLECT_TYPES_ALL() { + return M; + } + get DTMF_TERMINATING_CHARACTERS_ALL() { + return P; + } + get DTMF_TERMINATING_CHARACTERS() { + return this.arrayToMap(P, "_dtmf_terminating_characters"); + } + get ENVIRONMENTS() { + return this.arrayToMap(x, "_environments"); + } + get ENVIRONMENTS_ALL() { + return x; + } + get ERROR_TYPE_DATA_TABLE_VALUES() { + return this.arrayToMap(k, "_error_type_data_table_values", (e3) => 0 === e3.indexOf("DataTables") ? e3.slice(10).charAt(0).toLowerCase() + e3.slice(11) : e3); + } + get ERROR_TYPE_DATA_TABLE_VALUES_ALL() { + return k; + } + get ERROR_TYPE_LEX_BOT_VALUES() { + return this.arrayToMap(V, "_error_type_lex_bot_values"); + } + get ERROR_TYPE_LEX_BOT_VALUES_ALL() { + return V; + } + get EVENTS_FLOW_ERROR_HANDLING() { + return { abortSend: U, changeState: B, completeSend: G, continue: j, disconnect: W, endFlow: q, endInQueueState: Y, endWorkflow: H, exit: J, jumpToMenu: z, transferToQueue: K, jumpToTask: $ }; + } + get EVENTS_FLOW_ERROR_HANDLING_ALL() { + return Q; + } + get FILTER_CONTAINER_OPERATORS() { + return { and: "and", or: "or" }; + } + get FILTER_CONTAINER_OPERATORS_ALL() { + return L; + } + get FLOW_OUTCOMES() { + return this.arrayToMap(De, "_flow_outcomes", (e3) => e3.toLowerCase()); + } + get FLOW_OUTCOMES_ALL() { + return De; + } + get FLOW_TYPES() { + return { bot: o.flowTypes.flowTypeBot, commonModule: o.flowTypes.flowTypeCommonModule, digitalBot: o.flowTypes.flowTypeDigitalBot, emailSend: o.flowTypes.flowTypeEmailSend, inboundCall: o.flowTypes.flowTypeInboundCall, inboundChat: o.flowTypes.flowTypeInboundChat, inboundEmail: o.flowTypes.flowTypeInboundEmail, inboundShortMessage: o.flowTypes.flowTypeInboundShortMessage, inqueueCall: o.flowTypes.flowTypeInQueueCall, inqueueEmail: o.flowTypes.flowTypeInQueueEmail, inqueueShortMessage: o.flowTypes.flowTypeInQueueShortMessage, outboundCall: o.flowTypes.flowTypeOutboundCall, secureCall: o.flowTypes.flowTypeSecureCall, surveyInvite: o.flowTypes.flowTypeSurveyInvite, voice: o.flowTypes.flowTypeVoice, voiceSurvey: o.flowTypes.flowTypeVoiceSurvey, voicemail: o.flowTypes.flowTypeVoicemail, workflow: o.flowTypes.flowTypeWorkflow, workitem: o.flowTypes.flowTypeWorkitem }; + } + get FLOW_TYPES_ALL() { + return r2.default.without(o.flowTypes.flowTypesAll); + } + get FLOW_VERSIONS() { + return this.arrayToMap(X, "_flow_versions"); + } + get FLOW_VERSIONS_ALL() { + return X; + } + get FLOW_FORMAT_TYPES() { + return this.arrayToMap(Z, "_format_types"); + } + get FLOW_FORMAT_TYPES_ALL() { + return Z; + } + get HOLD_MUSIC_PLAY_STYLES() { + return this.arrayToMap(ee, "_hold_music_play_styles"); + } + get HOLD_MUSIC_PLAY_STYLES_ALL() { + return ee; + } + get INPUT_VERIFICATION_TYPES() { + return this.arrayToMap(te, "_input_verification_types"); + } + get INPUT_VERIFICATION_TYPES_ALL() { + return te; + } + get KNOWLEDGE_FEEDBACK_TYPES() { + return this.arrayToMap(ie, "_knowledge_feedback_types"); + } + get KNOWLEDGE_FEEDBACK_TYPES_ALL() { + return ie; + } + get KNOWLEDGE_PATH_MODES() { + return this.arrayToMap(ne, "_knowledge_path_modes"); + } + get KNOWLEDGE_PATH_MODES_ALL() { + return ne; + } + get KNOWLEDGE_ANSWER_CONTENT_TYPES() { + return this.arrayToMap(re, "_knowledge_answer_content_types"); + } + get KNOWLEDGE_ANSWER_CONTENT_TYPES_ALL() { + return re; + } + get KNOWLEDGE_SETTINGS_MODES() { + return this.arrayToMap(oe, "_knowledge_settings_modes"); + } + get KNOWLEDGE_SETTINGS_MODES_ALL() { + return oe; + } + get LOCATIONS() { + return this.arrayToMap(Ce, "_runtime_locations"); + } + get LOCATIONS_ALL() { + return Ce; + } + get LOG_TYPES() { + return this.arrayToMap(ae, "_log_types"); + } + get LOG_TYPES_ALL() { + return ae; + } + get CANNED_RESPONSE_MESSAGE_TEMPLATE_TYPES() { + return this.arrayToMap(se, "_canned_response_message_template_types"); + } + get STRING_BODY_HANDLING_TYPES() { + return this.arrayToMap(le, "_string_body_handling_types"); + } + get STRING_BODY_HANDLING_TYPES_ALL() { + return le; + } + get NLU_RESPONSE_BIAS_MODES() { + return this.arrayToMap(F, "_nlu_response_bias_modes"); + } + get NLU_RESPONSE_BIAS_MODES_ALL() { + return F; + } + get OUTPUT_IDS() { + return this.arrayToMap(ue, "_output_ids"); + } + get OUTPUT_IDS_ALL() { + return ue; + } + get PAYMENT_CONTACT_INFORMATION_TYPES() { + return this.arrayToMap(de, "_payment_contact_information_types"); + } + get PAYMENT_CONTACT_INFORMATION_TYPES_ALL() { + return de; + } + get PAYMENT_PLATFORMS_TYPES() { + return this.arrayToMap(ce, "_payment_platforms_types"); + } + get PAYMENT_PLATFORMS_TYPES_ALL() { + return ce; + } + get PLAY_ESTIMATED_WAIT_STYLES() { + return this.arrayToMap(pe, "_play_estimated_wait_styles"); + } + get PLAY_ESTIMATED_WAIT_STYLES_ALL() { + return pe; + } + get PLAY_POSITION_STYLES() { + return this.arrayToMap(_e, "_play_position_styles"); + } + get PLAY_POSITION_STYLES_ALL() { + return _e; + } + get POST_FLOW_ACTION_TYPES() { + return this.arrayToMap(he, "_post_flow_action_types"); + } + get POST_FLOW_ACTION_TYPES_ALL() { + return he; + } + get POST_FLOW_TARGET_TYPES() { + return this.arrayToMap(me, "_post_flow_target_types"); + } + get POST_FLOW_TARGET_TYPES_ALL() { + return me; + } + get SCHEDULE_EVALUATION_TYPES() { + return this.arrayToMap(we, "_schedule_evaluation_type"); + } + get SCHEDULE_EVALUATION_TYPES_ALL() { + return we; + } + get SEND_AUTO_REPLY_MODES() { + return this.arrayToMap(Pe, "_send_auto_reply_modes"); + } + get SEND_AUTO_REPLY_MODES_ALL() { + return Pe; + } + get SEND_NOTIFICATION_TYPES() { + return this.arrayToMap(Me, "_send_notification"); + } + get SEND_NOTIFICATION_TYPES_ALL() { + return Me; + } + get EMAIL_STYLES() { + return this.arrayToMap(Fe, "_send_notification"); + } + get EMAIL_STYLES_ALL() { + return Fe; + } + get PROMPT_MEDIA_TYPES() { + return this.arrayToMap(ke, "_prompt_media_types"); + } + get PROMPT_MEDIA_TYPES_ALL() { + return ke; + } + get SESSION_END_MODES() { + return this.arrayToMap(ge, "_session_end_modes"); + } + get SESSION_END_MODES_ALL() { + return ge; + } + get SESSION_STATUSES() { + return this.arrayToMap(fe, "_session_statuses"); + } + get SESSION_STATUSES_ALL() { + return fe; + } + get SPEECH_REC_COMPANY_MODES() { + return this.arrayToMap(Te, "_speech_rec_company_modes"); + } + get SPEECH_REC_COMPANY_MODES_ALL() { + return Te; + } + get MESSAGE_BODY_STYLES() { + return { notice: ye, standard: Se }; + } + get MESSAGE_BODY_STYLES_ALL() { + return Ae; + } + get RICH_LINK_HEADER_TYPES() { + return this.arrayToMap(Ne, "_rich_link_header_types"); + } + get RICH_LINK_HEADER_TYPES_ALL() { + return Ne; + } + get SET_UUI_DATA_MODES() { + return this.arrayToMap(Oe, "set_uui_data_mode_all"); + } + get SET_UUI_DATA_MODES_ALL() { + return Oe; + } + get SWITCH_EVALUATION_STYLES() { + return this.arrayToMap(Ie, "_switch_evaluation_styles"); + } + get SWITCH_EVALUATION_STYLES_ALL() { + return Ie; + } + get SUBSEQUENT_RECOGNITION_FAILURES_HANDLING() { + return this.arrayToMap(ve, "_subsequent_recognition_failures_modes"); + } + get SUBSEQUENT_RECOGNITION_FAILURES_HANDLING_ALL() { + return ve; + } + get VARIABLE_SCOPES() { + return this.arrayToMap(be, "_variable_scopes"); + } + get VARIABLE_SCOPES_ALL() { + return be; + } + get VOICE_SNIPPET_DESTINATION_VALUES() { + return this.arrayToMap(Ee, "_voice_snippet_destination_values"); + } + get VOICE_SNIPPET_DESTINATION_VALUES_ALL() { + return Ee; + } + get VOICEMAIL_TRANSFER_TARGET_TYPES() { + return this.arrayToMap(Re, "_voicemail_transfer_target_type"); + } + get VOICEMAIL_TRANSFER_TARGET_TYPES_ALL() { + return Re; + } + } + t2.ArchEnums = Ve; + const Ue = new Ve(); + t2.default = Ue; + }, 78446: (e2, t2, i2) => { + const n2 = i2(45421), r2 = i2(13126); + e2.exports = class extends n2 { + constructor(e3) { + super(e3); + } + _throwAbstractMethodCalled(e3) { + throw `${this.className}::${e3} being called and should be overridden in inheriting classes`; + } + get nodeInformation() { + this._throwAbstractMethodCalled("nodeInformation (get)"); + } + checkCanPaste(e3) { + this._throwAbstractMethodCalled("checkCanPaste"); + } + checkCanPasteClipboardContextWithDetails(e3) { + this._throwAbstractMethodCalled("checkCanPasteClipboardContextWithDetails"); + } + get className() { + return "BaseClipboardContentViewModel"; + } + get clipboardContentType() { + this._throwAbstractMethodCalled("clipboardContentType (get)"); + } + copyCutAddDependencyFlowUiMetaData(e3, t3, i3) { + this._throwAbstractMethodCalled("copyCutAddDependencyFlowUiMetaData"); + } + copyCutAddDependencyVariable(e3, t3) { + this._throwAbstractMethodCalled("copyCutAddDependencyVariable"); + } + copyCutAddDependencyCustomType(e3) { + this._throwAbstractMethodCalled("copyCutAddDependencyCustomType"); + } + addOldIdToOldNameMapping(e3, t3) { + this._throwAbstractMethodCalled("addOldIdToOldNameMapping"); + } + resolveOldIdToOldName(e3) { + this._throwAbstractMethodCalled("resolveOldIdToOldName"); + } + copyCutProcessActionViewModel(e3) { + this._throwAbstractMethodCalled("copyCutProcessActionViewModel"); + } + copyCutProcessMenuChoiceViewModel(e3) { + this._throwAbstractMethodCalled("copyCutProcessMenuChoiceViewModel"); + } + copyCutProcessMenuViewModel(e3) { + this._throwAbstractMethodCalled("copyCutProcessMenuViewModel"); + } + copyCutProcessStateViewModel(e3) { + this._throwAbstractMethodCalled("copyCutProcessStateViewModel"); + } + copyCutProcessTaskViewModel(e3) { + this._throwAbstractMethodCalled("copyCutProcessTaskViewModel"); + } + copyCutResetSupportedFlowTypeFilter() { + this._throwAbstractMethodCalled("copyCutResetSupportedFlowTypeFilter"); + } + copyCutSetSupportedFlowTypeFilter(e3) { + this._throwAbstractMethodCalled("copyCutSetSupportedFlowTypeFilter"); + } + get isBaseClipboardContentViewModel() { + return true; + } + isVariableScopedToClipboardContent(e3) { + if (!e3 || !e3.isVariableViewModel) return false; + switch (this.clipboardContentType) { + case r2.task: + return e3.isTaskVariable; + case r2.state: + return e3.isStateVariable; + case r2.flow: + return e3.isFlowVariable; + case r2.menuChoice: + return !e3.isFlowVariable; + default: + return false; + } + } + get logHeader() { + this._throwAbstractMethodCalled("logHeader (get)"); + } + get name() { + this._throwAbstractMethodCalled("name (get)"); + } + set name(e3) { + this._throwAbstractMethodCalled("name (set)"); + } + get originalObjectInfo() { + this._throwAbstractMethodCalled("originalObjectInfo (get)"); + } + get originalObjectId() { + this._throwAbstractMethodCalled("originalObjectInfoId (get)"); + } + get originalObjectFlowId() { + this._throwAbstractMethodCalled("originalObjectFlowId (get)"); + } + get originalObjectFlowType() { + this._throwAbstractMethodCalled("originalObjectFlowType (get)"); + } + get originalObjectLogStr() { + this._throwAbstractMethodCalled("originalObjectLogStr (get)"); + } + get originalObjectLogStrFull() { + this._throwAbstractMethodCalled("originalObjectLogStrFull (get)"); + } + paste(e3) { + this._throwAbstractMethodCalled("paste"); + } + get pastedMenuOrTaskOrActionViewModel() { + this._throwAbstractMethodCalled("pastedMenuOrTaskOrActionViewModel (get)"); + } + set pastedMenuOrTaskOrActionViewModel(e3) { + this._throwAbstractMethodCalled("pastedMenuOrTaskOrActionViewModel (set)"); + } + }; + }, 78495: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + var n2 = i2(41827), r2 = i2(67359); + const o = 68; + class a { + constructor(e3, t3, i3) { + this.parent = e3, this.depth = t3, this.type = i3, this.hash = (e3 ? e3.hash + e3.hash << 8 : 0) + t3 + (t3 << 4) + i3; + } + } + function s(e3, t3) { + for (let i3 = 0, n3 = t3 - e3.pos - 1; ; n3--, i3++) { + let t4 = e3.peek(n3); + if (u(t4) || -1 == t4) return i3; + } + } + function l(e3) { + return 32 == e3 || 9 == e3; + } + function u(e3) { + return 10 == e3 || 13 == e3; + } + function d(e3) { + return l(e3) || u(e3); + } + function c(e3) { + return e3 < 0 || d(e3); + } + a.top = new a(null, -1, 0); + const p = new n2.ContextTracker({ start: a.top, reduce: (e3, t3) => 3 != e3.type || 20 != t3 && 34 != t3 ? e3 : e3.parent, shift(e3, t3, i3, n3) { + if (3 == t3) return new a(e3, s(n3, n3.pos), 1); + if (70 == t3 || 5 == t3) return new a(e3, s(n3, n3.pos), 2); + if (t3 == o) return e3.parent; + if (19 == t3 || 33 == t3) return new a(e3, 0, 3); + if (13 == t3 && 4 == e3.type) return e3.parent; + if (47 == t3) { + let t4 = /[1-9]/.exec(n3.read(n3.pos, i3.pos)); + if (t4) return new a(e3, e3.depth + +t4[0], 4); + } + return e3; + }, hash: (e3) => e3.hash }); + function _(e3, t3, i3 = 0) { + return e3.peek(i3) == t3 && e3.peek(i3 + 1) == t3 && e3.peek(i3 + 2) == t3 && c(e3.peek(i3 + 3)); + } + const h = new n2.ExternalTokenizer((e3, t3) => { + if (-1 == e3.next && t3.canShift(69)) return e3.acceptToken(69); + let i3 = e3.peek(-1); + if ((u(i3) || i3 < 0) && 3 != t3.context.type) { + if (_(e3, 45)) { + if (!t3.canShift(o)) return e3.acceptToken(1, 3); + e3.acceptToken(o); + } + if (_(e3, 46)) { + if (!t3.canShift(o)) return e3.acceptToken(2, 3); + e3.acceptToken(o); + } + let i4 = 0; + for (; 32 == e3.next; ) i4++, e3.advance(); + !(i4 < t3.context.depth) && (i4 != t3.context.depth || 1 != t3.context.type || 45 == e3.next && c(e3.peek(1))) || -1 == e3.next || u(e3.next) || 35 == e3.next || e3.acceptToken(o, -i4); + } + }, { contextual: true }), m = new n2.ExternalTokenizer((e3, t3) => { + if (3 != t3.context.type) if (45 == e3.next) e3.advance(), c(e3.next) && e3.acceptToken(1 == t3.context.type && t3.context.depth == s(e3, e3.pos - 1) ? 4 : 3); + else if (63 == e3.next) e3.advance(), c(e3.next) && e3.acceptToken(2 == t3.context.type && t3.context.depth == s(e3, e3.pos - 1) ? 6 : 5); + else { + let i3 = e3.pos; + for (; ; ) if (l(e3.next)) { + if (e3.pos == i3) return; + e3.advance(); + } else if (33 == e3.next) T(e3); + else { + if (38 != e3.next) { + if (42 == e3.next) { + y(e3); + break; + } + if (39 == e3.next || 34 == e3.next) { + if (S(e3, true)) break; + return; + } + if (91 == e3.next || 123 == e3.next) { + if (!A(e3)) return; + break; + } + v(e3, true, false, 0); + break; + } + y(e3); + } + for (; l(e3.next); ) e3.advance(); + if (58 == e3.next) { + if (e3.pos == i3 && t3.canShift(29)) return; + c(e3.peek(1)) && e3.acceptTokenTo(2 == t3.context.type && t3.context.depth == s(e3, i3) ? 71 : 70, i3); + } + } + else 63 == e3.next && (e3.advance(), c(e3.next) && e3.acceptToken(7)); + }, { contextual: true }); + function g(e3) { + return e3 >= 48 && e3 <= 57 || e3 >= 97 && e3 <= 102 || e3 >= 65 && e3 <= 70; + } + function f(e3, t3) { + return 37 == e3.next ? (e3.advance(), g(e3.next) && e3.advance(), g(e3.next) && e3.advance(), true) : !!((i3 = e3.next) > 32 && i3 < 127 && 34 != i3 && 37 != i3 && 44 != i3 && 60 != i3 && 62 != i3 && 92 != i3 && 94 != i3 && 96 != i3 && 123 != i3 && 124 != i3 && 125 != i3 || t3 && 44 == e3.next) && (e3.advance(), true); + var i3; + } + function T(e3) { + if (e3.advance(), 60 == e3.next) { + for (e3.advance(); ; ) if (!f(e3, true)) { + 62 == e3.next && e3.advance(); + break; + } + } else for (; f(e3, false); ) ; + } + function y(e3) { + for (e3.advance(); !c(e3.next) && "f" != O(e3.tag); ) e3.advance(); + } + function S(e3, t3) { + let i3 = e3.next, n3 = false, r3 = e3.pos; + for (e3.advance(); ; ) { + let o2 = e3.next; + if (o2 < 0) break; + if (e3.advance(), o2 == i3) { + if (39 != o2) break; + if (39 != e3.next) break; + e3.advance(); + } else if (92 == o2 && 34 == i3) e3.next >= 0 && e3.advance(); + else if (u(o2)) { + if (t3) return false; + n3 = true; + } else if (t3 && e3.pos >= r3 + 1024) return false; + } + return !n3; + } + function A(e3) { + for (let t3 = [], i3 = e3.pos + 1024; ; ) if (91 == e3.next || 123 == e3.next) t3.push(e3.next), e3.advance(); + else if (39 == e3.next || 34 == e3.next) { + if (!S(e3, true)) return false; + } else if (93 == e3.next || 125 == e3.next) { + if (t3[t3.length - 1] != e3.next - 2) return false; + if (t3.pop(), e3.advance(), !t3.length) return true; + } else { + if (e3.next < 0 || e3.pos > i3 || u(e3.next)) return false; + e3.advance(); + } + } + const N = "iiisiiissisfissssssssssssisssiiissssssssssssssssssssssssssfsfssissssssssssssssssssssssssssfif"; + function O(e3) { + return e3 < 33 ? "u" : e3 > 125 ? "s" : N[e3 - 33]; + } + function I(e3, t3) { + let i3 = O(e3); + return "u" != i3 && !(t3 && "f" == i3); + } + function v(e3, t3, i3, n3) { + if ("s" != O(e3.next) && (63 != e3.next && 58 != e3.next && 45 != e3.next || !I(e3.peek(1), i3))) return false; + e3.advance(); + let r3 = e3.pos; + for (; ; ) { + let o2 = e3.next, a2 = 0, s2 = n3 + 1; + for (; d(o2); ) { + if (u(o2)) { + if (t3) return false; + s2 = 0; + } else s2++; + o2 = e3.peek(++a2); + } + if (!(o2 >= 0 && (58 == o2 ? I(e3.peek(a2 + 1), i3) : 35 == o2 ? 32 != e3.peek(a2 - 1) : I(o2, i3))) || !i3 && s2 <= n3 || 0 == s2 && !i3 && (_(e3, 45, a2) || _(e3, 46, a2))) break; + if (t3 && "f" == O(o2)) return false; + for (let t4 = a2; t4 >= 0; t4--) e3.advance(); + if (t3 && e3.pos > r3 + 1024) return false; + } + return true; + } + const C = new n2.ExternalTokenizer((e3, t3) => { + if (33 == e3.next) T(e3), e3.acceptToken(12); + else if (38 == e3.next || 42 == e3.next) { + let t4 = 38 == e3.next ? 10 : 11; + y(e3), e3.acceptToken(t4); + } else 39 == e3.next || 34 == e3.next ? (S(e3, false), e3.acceptToken(9)) : v(e3, false, 3 == t3.context.type, t3.context.depth) && e3.acceptToken(8); + }), b = new n2.ExternalTokenizer((e3, t3) => { + let i3 = 4 == t3.context.type ? t3.context.depth : -1, n3 = e3.pos; + e: for (; ; ) { + let r3 = 0, o2 = e3.next; + for (; 32 == o2; ) o2 = e3.peek(++r3); + if (!r3 && (_(e3, 45, r3) || _(e3, 46, r3))) break; + if (!u(o2) && (i3 < 0 && (i3 = Math.max(t3.context.depth + 1, r3)), r3 < i3)) break; + for (; ; ) { + if (e3.next < 0) break e; + let t4 = u(e3.next); + if (e3.advance(), t4) continue e; + n3 = e3.pos; + } + } + e3.acceptTokenTo(13, n3); + }), E = r2.styleTags({ DirectiveName: r2.tags.keyword, DirectiveContent: r2.tags.attributeValue, "DirectiveEnd DocEnd": r2.tags.meta, QuotedLiteral: r2.tags.string, BlockLiteralHeader: r2.tags.special(r2.tags.string), BlockLiteralContent: r2.tags.content, Literal: r2.tags.content, "Key/Literal Key/QuotedLiteral": r2.tags.definition(r2.tags.propertyName), "Anchor Alias": r2.tags.labelName, Tag: r2.tags.typeName, Comment: r2.tags.lineComment, ": , -": r2.tags.separator, "?": r2.tags.punctuation, "[ ]": r2.tags.squareBracket, "{ }": r2.tags.brace }), R = n2.LRParser.deserialize({ version: 14, states: "6zQ!aQgOOO#VQfO'#CpO#{QfO'#DOOOQR'#D{'#D{O$}QgO'#DRO%sQdO'#DUO%zQgO'#DUO&_OaO'#D[OOQR'#Dz'#DzO'XQgO'#D^O(OQgO'#D`O(uQpO'#DbO(}QpO'#DdOOQR'#Dy'#DyO)VO!cO'#DfOOQP'#Do'#DoO)hQaO'#CmO)vQgO'#CmOOQP'#Cm'#CmQ*WQaOOQ*cQgOOQ]QgOOO*mQdO'#CrO+[QdO'#CtOOQO'#D|'#D|O+yQ`O'#CxO,UQdO'#CwO,`Q`O'#CwOOQO'#Cv'#CvO,eQdO'#CvOOQO'#Cq'#CqO,rQ`O,59[O,zQfO,59[OOQR,59[,59[OOQO'#Cx'#CxO-RQ`O'#DPO-^QdO'#DPOOQO'#D}'#D}O-hQdO'#D}O-uQ`O,59jO-}QfO,59jOOQR,59j,59jOOQR'#DS'#DSO.UQcO,59mO.aQgO'#DVO.qQ`O'#DVO.vQcO,59pOOQR'#DX'#DXO$SQfO'#DWO/UQcO'#DWOOQR,59v,59vO/gOWO,59vO/lOaO,59vO/tOaO,59vO0PQgO'#D_OOQR,59x,59xO0sQgO'#DaOOQR,59z,59zOOQO'#Dn'#DnO1gQpO'#DcO1oQpO,59|O1tQpO'#DeO1|QpO,5:OOOQP,5:Q,5:QO2ROaO,5:QO2ZOaO,5:QO2iO!cO,5:QOOQP-E7m-E7mO2wQgO,59XOOQP,59X,59XO3XQaO'#DiO3gQgO'#DiO3wQgO'#DpOOQP'#Dp'#DpQ*WQaOOO4XQdO'#CsOOQO,59^,59^O4sQdO'#CuOOQO,59`,59`OOQO,59c,59cO5_QdO,59cO5iQdO'#CzO5sQ`O'#CzOOQO,59b,59bOOQU,5:U,5:UOOQR1G.v1G.vO5xQ`O1G.vOOQU-E7h-E7hO6QQdO,59kOOQO,59k,59kO6[QdO'#DQO6fQ`O'#DQOOQO,5:i,5:iOOQU,5:V,5:VOOQR1G/U1G/UO6kQ`O1G/UOOQU-E7i-E7iO6sQgO'#DlO7QQcO1G/XOOQR1G/X1G/XOOQR,59q,59qO7]QgO,59qO7mQdO'#DmO7tQgO'#DmO8XQcO1G/[OOQR1G/[1G/[OOQR,59r,59rO$SQfO,59rOOQR1G/b1G/bO8gOWO1G/bO8lOaO1G/bOOQR,59y,59yOOQR,59{,59{OOQO-E7l-E7lOOQR1G/h1G/hOOQR1G/j1G/jOOQP1G/l1G/lO8tOaO1G/lO8|OaO1G/lO9XOaO1G/lOOQP1G.s1G.sO9gQgO,5:TOOQP,5:T,5:TOOQP,5:[,5:[OOQP-E7n-E7nOOQO,59_,59_OOQO,59a,59aOOQO1G.}1G.}OOQO,59f,59fO9wQdO,59fOOQR7+$b7+$bP,uQ`O'#DjOOQO1G/V1G/VOOQO,59l,59lO:RQdO,59lOOQR7+$p7+$pP:]Q`O'#DkOOQR'#DT'#DTOOQR,5:W,5:WOOQR-E7j-E7jOOQR7+$s7+$sOOQR1G/]1G/]O:bQgO'#DYO:rQ`O'#DYOOQR,5:X,5:XO$SQfO'#DZO:wQcO'#DZOOQR-E7k-E7kOOQR7+$v7+$vOOQR1G/^1G/^OOQR7+$|7+$|O;YOWO7+$|OOQP7+%W7+%WO;_OaO7+%WO;gOaO7+%WOOQP1G/o1G/oOOQO1G/Q1G/QOOQO1G/W1G/WOOQR,59t,59tO;rQgO,59tOOQR,59u,59uO$SQfO,59uOOQR<^AN>^", stateData: " { + "use strict"; + var n2; + Object.defineProperty(t2, "__esModule", { value: true }), t2.ExpressionTypeIntegerOptions = void 0; + const r2 = i2(31635), o = r2.__importDefault(i2(15508)), a = i2(80295), s = i2(65615), l = i2(55909), u = i2(33951); + class d extends s.BaseExpressionTypeCollectionOptions { + static create(e3, t3) { + return new this(t3).invokeOptionsCallback(e3); + } + constructor(e3) { + super(e3), this._integerFacets = new o.default(), (0, a.makeUnenumerable)(this, "_integerFacets"), (0, a.makeUnenumerable)(this, "_useStar"); + } + _setFromOptions(e3) { + super._setFromOptions(e3); + } + get isExpressionTypeIntegerOptions() { + return true; + } + get className() { + return "ExpressionTypeIntegerOptions"; + } + get facets() { + return this._integerFacets; + } + set facets(e3) { + this._integerFacets = u.ParameterValidator.expectTrue(e3 && true === e3.isIntegerFacets, e3, "IntegerFacets", () => l.ParameterInfo.createPropertySet(this.className, "facets", "value")); + } + get min() { + return this.facets.minVal; + } + get max() { + return this.facets.maxVal; + } + _setRestrictionsFromOperandDef(e3) { + void 0 !== e3.min && this.facets.setMinInt(e3.min, true), void 0 !== e3.max && this.facets.setMaxInt(e3.max, true), void 0 !== e3.disallowZero && this.facets.setDisallowZero(e3.disallowZero); + } + } + t2.ExpressionTypeIntegerOptions = d, r2.__decorate([(0, a.enumerable)(true), r2.__metadata("design:type", "function" == typeof (n2 = void 0 !== o.default && o.default) ? n2 : Object), r2.__metadata("design:paramtypes", [Object])], d.prototype, "facets", null); + }, 78531: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.scanInternals = void 0; + var n2 = i2(17214); + t2.scanInternals = function(e3, t3, i3, r2, o) { + return function(a, s) { + var l = i3, u = t3, d = 0; + a.subscribe(n2.createOperatorSubscriber(s, function(t4) { + var i4 = d++; + u = l ? e3(u, t4, i4) : (l = true, t4), r2 && s.next(u); + }, o && function() { + l && s.next(u), s.complete(); + })); + }; + }; + }, 78534: (e2, t2, i2) => { + "use strict"; + const n2 = i2(31635), r2 = n2.__importDefault(i2(942)), o = i2(80428), a = i2(58525), s = i2(83620), l = i2(12179), u = n2.__importDefault(i2(97891)), d = i2(47957); + class c extends r2.default { + constructor(e3, t3) { + super(e3.parentFlow, e3), this._loadModel(t3); + } + static get managedProperties() { + return r2.default.createManagedProperties({ searchFieldLabel: d.findActions.findSystemPrompt.nameLabel, searchResultLabel: d.findActions.findSystemPrompt.resultLabel, searchResultExpressionOptions: a.ExpressionTypePromptOptions.create(), searchResultItemType: o.expressionTypeNames.prompt }); + } + } + c.info = u.default.createActionInfo({ actionClass: c, canBeInTask: true, helpTopic: l.helpTopics.actions.findSystemPrompt, modelClass: s.FindSystemPromptActionModel, name: d.actions.findSystemPrompt, scriptingName: "ArchActionFindSystemPrompt" }), t2.A = c; + }, 78616: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importDefault(i2(14820)), o = n2.__importDefault(i2(56549)), a = n2.__importDefault(i2(94225)), s = i2(64437), l = i2(30801), u = i2(26847); + class d extends r2.default { + constructor(e3) { + super(e3), this._manager = s.audioConnectorManager, this._connectorId = this.coreFactory.createArchWrapper(e3.connectorId); + } + get _actionTypeId() { + return l.callAudioConnectorActionType; + } + get displayTypeName() { + return this._scriptingName; + } + get audioConnectorOutputsFailure() { + return this._getCoreViewModel().errorBindings ? this.coreFactory.createArchWrapper(this._getCoreViewModel().errorBindings) : null; + } + get connectorId() { + return this._connectorId; + } + get isArchActionCallAudioConnector() { + return true; + } + addSessionVariableOutputNameValuePair(e3, t3) { + return this._checkItemIsValidLiteralString(this._infoParm("nameLiteral", "addSessionVariableOutputNameValuePair"), e3, true), this._checkItemIsValidLiteralStringOrArchVariableString(this._infoParm("outputVariable", "addSessionVariableOutputNameValuePair"), t3, true), this.sessionVariableOutputs._addNameValueAssignment(e3, t3, true, true); + } + get sessionVariableOutputs() { + const e3 = this._getCoreViewModel().outputSessionVariables; + if (e3) return this.coreFactory.createArchBaseValueContainer(e3); + } + setAudioConnectorByIdAsync(e3, t3) { + return this._checkItemIsValidLiteralString(this._infoParm("audioConnectorId", "setAudioConnectorByIdAsync"), e3, false), this._checkItemIsValidFunction(this._infoParm("callbackFunction", "setAudioConnectorByIdAsync"), t3, true), o.default.findItemByIdAsync(this._manager, e3, "audio connector").then((e4) => (this._getCoreViewModel().setBotRunnableByViewModel(e4), a.default.executeCallback(this, "setAudioConnectorByIdAsync", t3, this))); + } + setAudioConnectorByNameAsync(e3, t3) { + return this._checkItemIsValidLiteralString(this._infoParm("audioConnectorName", "setAudioConnectorByNameAsync"), e3, false), this._checkItemIsValidFunction(this._infoParm("callbackFunction", "setAudioConnectorByNameAsync"), t3, true), o.default.findItemByValueAsync(this._manager, e3, "audio connector", null, null).then((i3) => (this._getCoreViewModel().setBotCategoryByViewModel(i3), this.logNote("Found the Audio Connector bot with ID '" + i3.id + "' for the name of '" + e3 + "'"), this._getCoreViewModel().setBotRunnableByViewModel(i3), a.default.executeCallback(this, "setAudioConnectorByIdAsync", t3, this))); + } + get outputSuccess() { + return this._getOutputById(u.outputIds.success, true); + } + } + t2.default = d; + }, 78641: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = i2(33231), o = n2.__importDefault(i2(66978)), a = n2.__importDefault(i2(8471)); + class s extends a.default { + constructor() { + super(), this._callingMethodName = "", this._maxTries = 0, this._pollingCounter = 0, this._pollingIntervalMs = 0; + } + _beginAsyncPolling(e3, t3, i3, n3, r3, o2, a2) { + this._pollingQ && this.logErrorAndThrow("you already have a polling promise in this class instance that has not completed yet."); + const s2 = a2 || "_beginAsyncPolling"; + this._checkItemIsValidLiteralIntInRange(this._infoParm("intervalMs", s2), t3, 0, 15e3), this._checkItemIsValidLiteralIntInRange(this._infoParm("maxTries", s2), e3, 1, 100); + const l = t3 * e3; + return this._checkItem(this._infoVal("total_time", s2), l > 8e4, "the intervalMs * maxTries value of " + l + " milliseconds cannot exceed the maximum allowed of 80000 milliseconds."), this._checkItemIsValidFunction(this._infoParm("callbackFunction", s2), i3), this._checkItem(this._infoParm("callingArchObject", s2), r3 && !r3.isArchBaseObject, "The calling object must be an Architect Scripting object if specified."), this._checkItemIsValidLiteralString(this._infoParm("callingMethodName", s2), o2, true), this._configure(e3, t3, i3, n3, r3, o2), this._scheduleCallbackFunc(), this._pollingQ.promise; + } + _callCallbackFunc() { + try { + this._incrementPollCount(), this.logNoteVerbose("invoking polling callback function."); + const e3 = this._callbackFunc(this._callbackFuncParm); + if (!r2.isPromiseAlike(e3)) return this.logNoteVerbose("polling callback function did not return a promise. Now resolving the polling promise and returning the callback function result."), this._resolve(e3); + this.logNoteVerbose("callback function returned a promise. Waiting until it resolves."), e3.then(function(e4) { + return this.logNoteVerbose("callback function returned promise successfully resolved. Now resolving the polling promise and returning the callback function returned promise's result."), this._resolve(e4); + }.bind(this)).catch(function() { + if (this.logNoteVerbose("callback function returned promise threw an error which was caught. Checking to see if further attempts should be made."), this._pollingCounter >= this._maxTries) return this.logNoteVerbose("polling promise iteration count max reached of " + this._maxTries + ". Now rejecting the polling promise."), this._reject(); + this.logNoteVerbose("polling promise iteration count of " + this._pollingCounter + " less than max of " + this._maxTries + ". Scheduling another timer interval callback."), this._scheduleCallbackFunc(); + }.bind(this)); + } catch (e3) { + return this.logError("error calling the polling callback function. Now rejecting the polling promise."), this._reject(); + } + } + _configure(e3, t3, i3, n3, a2, s2) { + this._reset(), this._callingArchObject = a2, this._callingMethodName = s2, this._callbackFunc = i3, this._callbackFuncParm = n3, this._maxTries = e3, this._pollingCounter = 0, this._pollingIntervalMs = t3, this._pollingQ = r2.defer(), o.default.addPromise(this._pollingQ.promise, "ArchAsyncPolling"); + } + _incrementPollCount() { + this._pollingCounter++, this.logNoteVerbose("polling counter incremented to " + this._pollingCounter + " (max poll count: " + this._maxTries + ")"); + } + _reject() { + this.logNoteVerbose("rejecting the polling promise."), this._pollingQ.reject(), this._reset(); + } + _reset() { + this._callingArchObject = void 0, this._callingMethodName = "", this._callbackFunc = void 0, this._callbackFuncParm = void 0, this._maxTries = 0, this._pollingCounter = 0, this._pollingIntervalMs = 0, this._pollingQ = void 0; + } + _resolve(e3) { + this.logNote("resolving the polling promise."), this._pollingQ.resolve(), this._reset(); + } + _scheduleCallbackFunc() { + this.logNoteVerbose("scheduling polling promise callback timer to make callback in " + this._pollingIntervalMs + " millisecond(s)."), setTimeout(this._callCallbackFunc.bind(this), this._pollingIntervalMs); + } + beginAsyncPolling(e3, t3, i3, n3) { + return this._beginAsyncPolling(e3, t3, i3, n3, void 0, void 0, "beginAsyncPolling"); + } + get amPolling() { + return void 0 !== this._pollingQ; + } + get displayTypeName() { + return "ArchAsyncPolling"; + } + get logStr() { + const e3 = ["ArchAsyncPolling"]; + return this._callingArchObject && this._appendLogStrCallingArchObject(e3, this._callingArchObject), this._callingMethodName && this._appendLogStrCallingMethod(e3, this._callingMethodName), this._appendLogStrPart(e3, "AmPolling", void 0 !== this._pollingQ), void 0 !== this._pollingQ && (this._appendLogStrPart(e3, "PollingCounter", this._pollingCounter), this._appendLogStrPart(e3, "PollingInterval", this._pollingIntervalMs), this._appendLogStrPart(e3, "MaxTries", this._maxTries)), this._createLogStrFromParts(e3); + } + get isArchAsyncPolling() { + return true; + } + } + t2.default = s; + }, 78685: (e2, t2, i2) => { + const n2 = i2(43933).default; + function r2() { + r2.baseConstructor.apply(this, arguments); + } + i2(22124).extend(r2, "GrammarList"), Object.defineProperties(r2.prototype, { entities: { enumerable: true, get: function() { + return this._entities; + }, set: function(e3) { + this._entities = this.reviveArray(e3, n2); + } } }), e2.exports = r2; + }, 78785: (e2, t2, i2) => { + "use strict"; + const n2 = i2(31635), r2 = n2.__importDefault(i2(942)), o = i2(80428), a = i2(29505), s = i2(63619), l = i2(12179), u = n2.__importDefault(i2(97891)), d = i2(47957); + class c extends r2.default { + constructor(e3, t3) { + super(e3.parentFlow, e3), this._loadModel(t3); + } + static get managedProperties() { + return r2.default.createManagedProperties({ searchFieldLabel: d.findActions.findUtilizationLabel.nameLabel, searchResultLabel: d.findActions.findUtilizationLabel.resultLabel, searchResultExpressionOptions: a.ExpressionTypeUtilizationLabelOptions.create(), searchResultItemType: o.expressionTypeNames.utilizationLabel }); + } + } + c.info = u.default.createActionInfo({ actionClass: c, canBeInTask: true, helpTopic: l.helpTopics.actions.findUtilizationLabel, modelClass: s.FindUtilizationLabelActionModel, name: d.actions.findUtilizationLabel, scriptingName: "ArchActionFindUtilizationLabel" }), t2.A = c; + }, 78791: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = i2(96618), o = i2(28562), a = i2(80428), s = i2(82319), l = i2(24235), u = n2.__importDefault(i2(27203)), d = n2.__importStar(i2(85020)), c = i2(9290), p = n2.__importDefault(i2(57606)), _ = n2.__importDefault(i2(5730)), h = i2(47957), m = i2(3916); + class g extends _.default { + constructor(e3) { + super(e3.parentFlow, e3); + } + static get branchInfo() { + return u.default.fakeFailure; + } + _getPossibleErrors() { + return c.defaultTransferFailureReasons; + } + _createErrorSchema() { + return new p.default({ properties: { errorType: { allowableValues: this._getPossibleErrors().sort(), type: "string", description: h.errorSchema.errorTypeDescription }, errorMessage: { type: "string", description: h.errorSchema.errorMessageDescription } } }, false); + } + setNewInstanceDefaults() { + this.preTransferCommunication.setCommunicationBuilderText("", true), this.failureTransferCommunication.setCommunicationBuilderText("", true), super.setNewInstanceDefaults(...arguments); + } + _initializeDesignTime() { + super._initializeDesignTime(), this._createErrorSchema().properties.forEach((e3) => { + let t3 = this.errorBindings.items.find((t4) => t4.name === e3.name); + t3 || (t3 = m.createDataPairForSchemaProperty(this.errorBindings, e3), this.errorBindings.addItem(t3)), m.setExpressionWithSchemaProperty(t3.value, e3); + }); + } + static get managedProperties() { + return [{ audio: true, supportedFlowTypes: r2.flowTypes.flowTypesAllVxmlgen, options: l.AudioViewModelOptions.create((e3) => e3.setUiPropertyGroup(h.audio.audioLabel).setAssumeOosIfTypeUnavailable(true).setIninTestingField("preTransferAudio").setLabel(h.transfer.preTransferAudio)), property: "preTransferAudio", yamlOptions: g.createYamlOptions("preTransferAudio", (e3) => e3.setExportOrder(50)) }, { audio: true, supportedFlowTypes: r2.flowTypes.flowTypesAllVxmlgen, options: l.AudioViewModelOptions.create((e3) => e3.setUiPropertyGroup(h.audio.audioLabel).setAssumeOosIfTypeUnavailable(true).setIninTestingField("failedTransferAudio").setLabel(h.transfer.failureTransferAudio)), property: "failureTransferAudio", yamlOptions: g.createYamlOptions("failureTransferAudio", (e3) => e3.setExportOrder(60)) }, { label: h.transfer.preTransferCommunication, property: "preTransferCommunication", supportedFlowTypes: r2.flowTypes.flowTypesAllCicero, type: a.expressionTypeNames.communication, options: s.ExpressionTypeCommunicationOptions.create((e3) => e3.setIninTestingField("preTransferCommunication").setDescriptionInfo(h.transfer.preTransferCommunication, h.transfer.preTransferCommunicationDescription).setIsOptional(true).setDefaultToNoValue(true).setDoNotTransitionToNoValue(false).setRequiredFlowChannelType(d.channelTypeCall).setDefaultToBuilderId(o.builderIds.parts.genericCommunication).setUiPropertyGroup(h.communicate.communication).setScriptingPropertyName("preTransferCommunication").setUiPropertyOrder(21)), optionsForSpecificFlowTypes: [{ flowTypes: [r2.flowTypes.flowTypeDigitalBot], options: s.ExpressionTypeCommunicationOptions.create((e3) => e3.setAllowSecure(true).setIninTestingField("preTransferCommunication").setDescriptionInfo(h.transfer.preTransferCommunication, h.transfer.preTransferCommunicationDescription).setIsOptional(true).setDefaultToNoValue(true).setDoNotTransitionToNoValue(false).setRequiredFlowChannelType(d.channelTypeChat).setDefaultToBuilderId(o.builderIds.parts.markdownCommunication).setUiPropertyGroup(h.communicate.communication).setScriptingPropertyName("preTransferCommunication").setUiPropertyOrder(22)) }], yamlOptions: g.createYamlOptions("preTransferCommunication", (e3) => e3.setExportOrder(50)) }, { label: h.transfer.failureTransferCommunication, property: "failureTransferCommunication", supportedFlowTypes: r2.flowTypes.flowTypesAllCicero, type: a.expressionTypeNames.communication, options: s.ExpressionTypeCommunicationOptions.create((e3) => e3.setIninTestingField("failureTransferCommunication").setDescriptionInfo(h.transfer.failureTransferCommunication, h.transfer.failureTransferCommunicationDescription).setIsOptional(true).setDefaultToNoValue(true).setDoNotTransitionToNoValue(false).setRequiredFlowChannelType(d.channelTypeCall).setDefaultToBuilderId(o.builderIds.parts.genericCommunication).setUiPropertyGroup(h.communicate.communication).setScriptingPropertyName("failureTransferCommunication").setUiPropertyOrder(23)), optionsForSpecificFlowTypes: [{ flowTypes: [r2.flowTypes.flowTypeDigitalBot], options: s.ExpressionTypeCommunicationOptions.create((e3) => e3.setAllowSecure(true).setIninTestingField("failureTransferCommunication").setDescriptionInfo(h.transfer.failureTransferCommunication, h.transfer.failureTransferCommunicationDescription).setIsOptional(true).setDefaultToNoValue(true).setDoNotTransitionToNoValue(false).setRequiredFlowChannelType(d.channelTypeChat).setDefaultToBuilderId(o.builderIds.parts.markdownCommunication).setUiPropertyGroup(h.communicate.communication).setScriptingPropertyName("failureTransferCommunication").setUiPropertyOrder(24)) }], yamlOptions: g.createYamlOptions("failureTransferCommunication", (e3) => e3.setExportOrder(50)) }, { dataList: true, label: h.inputOutputList.failureOutputs, isOutput: true, property: "errorBindings", supportedFlowTypes: [...r2.flowTypes.flowTypesAllVxmlgen, ...r2.flowTypes.flowTypesAllCicero, r2.flowTypes.flowTypeWorkitem], yamlOptions: g.createYamlOptions("errorBindings", (e3) => e3.setPropertyName("failureOutputs").setExportOrder(120)) }]; + } + } + g.className = "BaseTransferAction", t2.default = g; + }, 78830: (e2, t2, i2) => { + "use strict"; + const n2 = i2(31635), r2 = n2.__importDefault(i2(92140)), o = i2(77667), a = i2(77681), s = i2(12179), l = n2.__importDefault(i2(97891)), u = i2(28803), d = n2.__importDefault(i2(87951)), c = i2(60885), p = i2(47957); + class _ extends d.default { + static get managedProperties() { + return [{ property: "alias", createDetails: u.NetworkBasedActionProperty.createCreateDetails("aliasId", "aliasName", o.lexAliasManager, p.lex.mustSelectAlias, p.lex.aliasNotFound, "bot"), yamlOptions: _.createYamlOptions("alias", (e3) => e3.setSkipProperty(true)) }, { property: "bot", createDetails: u.NetworkBasedActionProperty.createCreateDetails("botId", "botName", a.lexBotNameManager, p.lex.mustSelectBotName, p.lex.botNameNotFound, null), yamlOptions: _.createYamlOptions("bot", (e3) => e3.setSkipProperty(true)) }]; + } + get aliasReadyStatus() { + return c.lexStatuses.v1.ready; + } + get aliasReadyStatusLower() { + return c.lexStatuses.v1.readyLower; + } + _postProcessYamlConfig(e3, t3, i3) { + e3.lexBot = {}; + const n3 = e3.lexBot[this.botName] = {}; + if (!this.aliasName) return void r2.default.ensureYamlNoneTrue(n3); + const o2 = n3[this.aliasName] = {}; + this.commonBotPostProcessYamlConfig(e3, o2); + } + get supportsSessionVariables() { + return true; + } + get requiresSpeechRec() { + return true; + } + } + _.info = l.default.createActionInfo({ actionClass: _, canBeInTask: true, helpTopic: s.helpTopics.actions.lex, modelClass: i2(47380), name: p.actions.lex, scriptingName: "ArchActionCallLexBot" }), t2.A = _; + }, 78858: (e2, t2, i2) => { + var n2 = { "./cs-cz/currency.js": [50548, 548], "./de-de/currency.js": [35707, 5707], "./en-us/currency.js": [17186], "./es-us/currency.js": [81041, 1041], "./fr-ca/currency.js": [27165, 7165], "./it-it/currency.js": [83179, 3179], "./ja-jp/currency.js": [8938, 8938], "./ko-kr/currency.js": [31384, 1384], "./nb-no/currency.js": [36372, 6372], "./nl-nl/currency.js": [43853, 3853], "./pl-pl/currency.js": [5633, 5633], "./pt-br/currency.js": [27201, 7201], "./ru-ru/currency.js": [78879, 8879], "./sv-se/currency.js": [89440, 9440], "./tr-tr/currency.js": [74113, 4113], "./zh-cn/currency.js": [55692, 5692], "./zh-tw/currency.js": [83108, 3108] }; + function r2(e3) { + if (!i2.o(n2, e3)) return Promise.resolve().then(() => { + var t4 = new Error("Cannot find module '" + e3 + "'"); + throw t4.code = "MODULE_NOT_FOUND", t4; + }); + var t3 = n2[e3], r3 = t3[0]; + return Promise.all(t3.slice(1).map(i2.e)).then(() => i2(r3)); + } + r2.keys = () => Object.keys(n2), r2.id = 78858, e2.exports = r2; + }, 78863: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.SurveyFormVersionViewModel = t2.SurveyFormViewModel = void 0; + const n2 = i2(56969), r2 = i2(56969), o = i2(5587); + class a { + constructor(e3) { + var t3; + this._model = e3, this.hasInternalFormError = false; + const i3 = (0, n2.checkSurveyForm)(this._model); + (null === (t3 = null == i3 ? void 0 : i3.rawErrors) || void 0 === t3 ? void 0 : t3.length) && (this.hasInternalFormError = true, this.dependencyErrorDetails = (0, r2.getSurveyFormErrorText)(i3)); + } + get className() { + return "SurveyFormViewModel"; + } + get isBaseClass() { + return false; + } + get id() { + return this._model.id; + } + get name() { + return this._model.name; + } + get label() { + return this.name; + } + get questionGroups() { + return this._model.questionGroups; + } + get language() { + return this._model.language; + } + get header() { + return this._model.header; + } + get footer() { + return this._model.footer; + } + get latestPublishedVersion() { + return this._model.latestPublishedVersion; + } + get isSurveyFormViewModel() { + return true; + } + get contextId() { + return this._model.contextId; + } + get result() { + return this._model.result; + } + get dependencyError() { + return this._model.dependencyError; + } + get division() { + return this._model.division; + } + get isPublished() { + var e3; + return !!(null === (e3 = this._model) || void 0 === e3 ? void 0 : e3.published); + } + get isDisabled() { + var e3; + return !!(null === (e3 = this._model) || void 0 === e3 ? void 0 : e3.disabled); + } + get modifiedDate() { + var e3; + return new Date(null === (e3 = this._model) || void 0 === e3 ? void 0 : e3.modifiedDate); + } + get modifiedDateStr() { + return this._model.modifiedDate; + } + } + t2.SurveyFormViewModel = a, t2.SurveyFormVersionViewModel = class extends a { + constructor(e3) { + super(e3), this._label = (0, o.dateTimeToDisplay)(this._model.modifiedDate); + } + get label() { + return this._label; + } + get description() { + return this._model.name; + } + }; + }, 78870: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.PropertyBaseSupportedSetService = void 0; + const n2 = i2(31635), r2 = i2(55299), o = n2.__importStar(i2(27099)); + class a extends r2.BaseClass { + get className() { + return "PropertyBaseSupportedSetService"; + } + getIsFlowEditable(e3, t3) { + return !t3.isReadOnly || this._propertyReasonsInstance.setFlowReadOnly(e3); + } + getIsFeatureToggleAvailable(e3, t3) { + return !!o.isEnabled(t3) || this._propertyReasonsInstance.setFeatureToggleUnavailable(e3, t3); + } + } + t2.PropertyBaseSupportedSetService = a; + }, 78982: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(43212); + class r2 extends n2.BaseConfigurationListViewModel { + constructor(e3) { + super(e3); + } + get className() { + return "ConversationSummarySettingViewModel"; + } + get getConfiguration() { + return this.model; + } + get id() { + return this.model.id; + } + get name() { + return this.model.name; + } + get label() { + return this.model.name; + } + get language() { + return this.model.language; + } + get summaryType() { + return this.model.summaryType; + } + } + t2.default = r2; + }, 79015: (e2, t2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.GuideViewModel = void 0, t2.GuideViewModel = class { + constructor(e3) { + this._model = e3; + } + get className() { + return "GuideViewModel"; + } + get isBaseClass() { + return false; + } + get id() { + return this._model.id; + } + get name() { + return this._model.name; + } + set name(e3) { + this._model.name = e3; + } + get label() { + return this.name; + } + get version() { + var e3; + return null === (e3 = this._model.latestProductionReadyVersion) || void 0 === e3 ? void 0 : e3.version; + } + }; + }, 79042: (e2, t2, i2) => { + const n2 = i2(45421); + e2.exports = class extends n2 { + constructor(e3) { + super(e3); + } + get className() { + return "BaseClipboardDependencyViewModel"; + } + get isBaseClipboardDependencyViewModel() { + return true; + } + paste(e3) { + return this._performPaste(e3); + } + _performPaste(e3) { + return this.createClipboardResultFailurePasteGeneric("BaseClipboardDependency::_performPaste being called on " + this.className + " instance. Inheriting classes should override."); + } + }; + }, 79056: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.ExpressionTypeTimeslotOptions = void 0; + const n2 = i2(65615); + class r2 extends n2.BaseExpressionTypeCollectionOptions { + static create(e3, t3) { + return new this(t3).invokeOptionsCallback(e3); + } + constructor(e3) { + super(e3); + } + get className() { + return "ExpressionTypeTimeslotOptions"; + } + get isExpressionTypeTimeslotOptions() { + return true; + } + } + t2.ExpressionTypeTimeslotOptions = r2; + }, 79069: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.skillManager = t2.SkillManager = void 0; + const n2 = i2(31635), r2 = i2(24032), o = n2.__importStar(i2(1360)), a = n2.__importDefault(i2(47532)), s = i2(27862), l = i2(776); + class u extends a.default { + get dependencyType() { + return s.Skill; + } + constructor() { + super(), this.topic = (0, r2.getTopic)("skillManager"), this.apiCallList = l.getSkills, this.apiCallSingle = l.getSkill, this.defaultMatchingStyle = o.startsWith, this.className = "SkillManager", this.dependencyContext = null, this._initialize(); + } + } + t2.SkillManager = u, t2.skillManager = new u(); + }, 79133: (e2) => { + e2.exports = { askCommon: { invalidInputReceived: "Ez nem \xE9rv\xE9nyes.", noInputReceived: "Nem kaptam semmilyen visszajelz\xE9st." }, askForBoolean: { noInput: "Mondja az \u201Eigen\u201D lehet\u0151s\xE9get, ha folytatni szeretn\xE9, vagy a \u201Enem\u201D lehet\u0151s\xE9get, amennyiben nem.", noMatch: "K\xE9rem, mondja az \u201Eigen\u201D vagy a \u201Enem\u201D lehet\u0151s\xE9get. Szeretn\xE9 folytatni?", question: "Szeretn\xE9 folytatni?", noInputDigitalBot: "Adja meg az \u201EIgen\u201D lehet\u0151s\xE9get, ha folytatni szeretn\xE9, vagy a \u201ENem\u201D lehet\u0151s\xE9get, amennyiben nem.", noMatchDigitalBot: "K\xE9rem, adja meg az \u201EIgen\u201D vagy a \u201ENem\u201D lehet\u0151s\xE9get. Szeretn\xE9 folytatni?" }, askForIntent: { noInput: "Csak egy r\xF6vid mondatot mondjon, amely le\xEDrja a k\xE9rd\xE9s\xE9t. P\xE9ld\xE1ul: \u201EEllen\u0151rizze a sz\xE1ml\xE1m egyenleg\xE9t\u201D", noMatch: "Mondja el m\xE9g egyszer, mit szeretne tenni.", question: "Mit szeretne tenni?", noInputDigitalBot: "K\xE9rem, \xEDrjon be egy r\xF6vid mondatot, amely le\xEDrja a k\xE9rd\xE9s\xE9t. P\xE9ld\xE1ul: \u201EEllen\u0151rizze a sz\xE1ml\xE1m egyenleg\xE9t\u201D" }, askForSlot: { askFor: "K\xE9rje a(z) %1$s lehet\u0151s\xE9get", noInput: "K\xE9rem, mondja vagy \xEDrja be (k\xE9rem, \xEDrja be ide a slot nev\xE9t).", noInputWithSlot: "K\xE9rem, mondja vagy \xEDrja be a(z) %1$s lehet\u0151s\xE9get.", noMatch: "K\xE9rem, mondja el \xFAjra a(z) (k\xE9rem, \xEDrja be ide a slot nev\xE9t) nevet.", noMatchWithSlot: "K\xE9rem, adja meg \xFAjra a(z) %1$s lehet\u0151s\xE9get.", question: "Mi a(z) (k\xE9rem, \xEDrja be ide a slot nev\xE9t)?", questionWithSlot: "Mi a(z) %1$s?", pleaseEnterSlotNameHere: "(k\xE9rem, \xEDrja be ide a slot nev\xE9t)", noInputDigitalBot: "K\xE9rem, \xEDrja be a(z) (k\xE9rem, \xEDrja be ide a slot nev\xE9t) nevet.", noInputWithSlotDigitalBot: "K\xE9rem, \xEDrja be a(z) %1$s lehet\u0151s\xE9get.", continuationPromptWithSlot: "Eddig a k\xF6vetkez\u0151t:{{Slot.%1$s}} kaptam, k\xE9rem, folytassa." }, askForNextSlot: { noInput: "Mondja az \u201Eigen\u201D lehet\u0151s\xE9get, ha van m\xE9g k\xE9rd\xE9se, vagy a \u201Enem\u201D lehet\u0151s\xE9get, ha szeretn\xE9 befejezni a h\xEDv\xE1st.", noMatch: "Mondja az \u201Eigen\u201D lehet\u0151s\xE9get, ha van m\xE9g k\xE9rd\xE9se, vagy a \u201Enem\u201D lehet\u0151s\xE9get, ha szeretn\xE9 befejezni a munkamenetet.", question: "Seg\xEDthetek m\xE9g valamiben?", noInputDigitalBot: "Adja meg az \u201Eigen\u201D lehet\u0151s\xE9get, ha van m\xE9g k\xE9rd\xE9se, vagy a \u201Enem\u201D lehet\u0151s\xE9get, ha szeretn\xE9 befejezni a munkamenetet.", noMatchDigitalBot: "Adja meg az \u201Eigen\u201D lehet\u0151s\xE9get, ha van m\xE9g k\xE9rd\xE9se, vagy a \u201Enem\u201D lehet\u0151s\xE9get, ha szeretn\xE9 befejezni a munkamenetet." }, askForPayment: { noInputDigitalBot: "K\xE9rem, adja meg fizet\xE9si adatait a folytat\xE1shoz.", noMatchDigitalBot: "Nem \xE9rtettem a v\xE1lasz\xE1t. K\xE9rem, pr\xF3b\xE1lja meg \xFAjra." }, askForAuthentication: { noInputDigitalBot: "K\xE9rem, adja meg hiteles\xEDt\xE9si adatait a folytat\xE1shoz.", noMatchDigitalBot: "Nem \xE9rtettem a v\xE1lasz\xE1t. K\xE9rem, pr\xF3b\xE1lja meg \xFAjra." }, askSurveyQuestion: { notApplicable: "Nem alkalmazhat\xF3", surveyAnswerOptionSequence: "Nyomja meg a(z) %1$s for '%2$s lehet\u0151s\xE9get'.", surveyAnswerNotApplicableSequence: "Nyomja meg a csillag gombot a \u201ENem alkalmazhat\xF3\u201D kiv\xE1laszt\xE1s\xE1hoz.", surveyAnswerNotApplicableWithQuestionSequence: "%1$s. Nyomja meg a csillag gombot a \u201ENem alkalmazhat\xF3\u201D kiv\xE1laszt\xE1s\xE1hoz.", voiceSurveyNoInputText: "K\xE9rem, v\xE1laszoljon a k\xE9rd\xE9sre.", voiceSurveyNoMatchText: "Nem \xE9rtettem." }, commonModule: { exitCommonModule: "Kil\xE9p\xE9s a k\xF6z\xF6s modulb\xF3l" }, form: { noInputDigitalBot: "K\xE9rem, t\xF6ltse ki az \u0171rlapot a folytat\xE1shoz.", noMatchDigitalBot: "K\xE9rem, t\xF6ltse ki az \u0171rlapot a folytat\xE1shoz." }, messagingTemplate: { noInputDigitalBot: "K\xE9rj\xFCk, v\xE1lassza az al\xE1bbi lehet\u0151s\xE9gek egyik\xE9t.", noMatchDigitalBot: "K\xE9rj\xFCk, v\xE1lassza az al\xE1bbi lehet\u0151s\xE9gek egyik\xE9t." }, knowledgeSettings: { knowledgeAnswerHighlightFlowProgressionDefault: "Folytat\xE1s", knowledgeAnswerHighlightFullArticleDefault: "Teljes cikk megtekint\xE9se", knowledgeInitialResponseMulti: "Ahhoz, hogy jobban meg\xE9rtsem c\xE9lj\xE1t, k\xE9rem, v\xE1lasszon egy sz\xE1mot az al\xE1bbi list\xE1b\xF3l:", knowledgeInitialResponseMultiRetry: "K\xE9rem, v\xE1lasszon egy sz\xE1mot, p\xE9ld\xE1ul \u201E1\u201D.\nItt van \xFAjra a lehet\u0151s\xE9gek list\xE1ja:", knowledgeNoMatch: "Ezek k\xF6z\xFCl egyik sem", knowledgeConfirmation: "Ezzel v\xE1laszt kapott a k\xE9rd\xE9s\xE9re?", knowledgeFollowup: "Rem\xE9lem, megv\xE1laszoltam a k\xE9rd\xE9s\xE9t. B\xE1rmi m\xE1st is k\xE9rdezhet, amit csak tudni szeretne." }, noOverlay: { intent: { intentConfirmationStr1: "Azt hiszem, azt szeretn\xE9, hogy", intentConfirmationStr2: "Igazam van?" }, youSaid: { youSaidConfirmationStr1: "Azt mondta, hogy", youSaidConfirmationStr2: "Igazam van?", youSaidConfirmationStr1DigitalBot: "Azt \xEDrta be, hogy" }, noInput: { noInputStr1: "K\xE9rem, mondja vagy \xEDrja be a k\xF6vetkez\u0151t:", noInputStr1DigitalBot: "K\xE9rem, \xEDrja be a k\xF6vetkez\u0151t:" }, noMatch: { noMatchStr1: "K\xE9rem, adja meg nekem a k\xF6vetkez\u0151t:" }, whatIs: { whatIsQuestionStr1: "Mi a(z)", whatIsQuestionStr2: "?" }, iGotContinuation: { iGotContinuationStr1: "Eddig a k\xF6vetkez\u0151t:", iGotContinuationStr2: "kaptam, k\xE9rem folytassa." } }, defaultCallFlowOne: "Alap\xE9rtelmezett h\xEDv\xE1sfolyamat", errorHandlingAgentEscalationConfirmation: "\xD6n egy tan\xE1csad\xF3val szeretne besz\xE9lni. Igazam van?", errorHandlingAgentEscalationHandover: "Egy pillanat, k\xE9rem, \xE9s \xF6sszek\xF6t\xF6m valakivel.", errorHandlingErrorEventHandover: "Sajn\xE1lom, hiba t\xF6rt\xE9nt. K\xE9rem, v\xE1rjon egy pillanatot, am\xEDg \xE1tkapcsolom \xD6nt valakihez, aki seg\xEDteni tud.", errorHandlingErrorEventHandoverVoiceSurvey: "Sajn\xE1lom, hiba t\xF6rt\xE9nt. Viszl\xE1t!", errorHandlingRecognitionEventHandover: "Sajn\xE1lom, nem \xE9rtem, amit mond. K\xE9rem, v\xE1rjon egy pillanatot, am\xEDg \xE1tkapcsolom \xD6nt valakihez, aki seg\xEDteni tud.", errorHandlingRecognitionEventHandoverVoiceSurvey: "Sajn\xE1lom, nem \xE9rtem, amit mond. Viszl\xE1t!", errorHandlingTTS: "Sajn\xE1lom, hiba t\xF6rt\xE9nt. K\xE9rem, pr\xF3b\xE1lja meg \xFAjra a h\xEDv\xE1st.", initialGreetingTTS: "\xDCdv\xF6zl\xF6m, ez az els\u0151 \xFCdv\xF6zl\u0151 \xFCzenet.", initialState: "Kezdeti \xE1llapot", initialBotState: "Alap\xE9rtelmezett bot", initialDigitalBotState: "\xDCdv\xF6zl\u0151 \xFCzenet", initialSurveyBotState: "Felm\xE9r\xE9si bot", intentConfirmation: "Azt hiszem, \xD6n a k\xF6vetkez\u0151t szeretn\xE9 tenni: %1$s, igazam van?", mainMenu: "F\u0151men\xFC", mainMenuTTS: "\xD6n a f\u0151men\xFCben van, nyomja meg a 9-es gombot a kapcsolat bont\xE1s\xE1hoz", mainTask: "Feladat", settingsConfirmationNoInputApology: "Sajn\xE1lom, nem hallottam. K\xE9rem, mondja az igen vagy a nem lehet\u0151s\xE9get.", settingsConfirmationNoInputApologyDigitalBot: "Sajn\xE1lom, nem kaptam \xD6nt\u0151l semmilyen visszajelz\xE9st. K\xE9rem, \xEDrja be a \u201EIgen\u201D vagy a \u201ENem\u201D lehet\u0151s\xE9get.", settingsConfirmationNoMatchApology: "K\xE9rem, mondja az igen vagy a nem lehet\u0151s\xE9get.", settingsConfirmationNoMatchApologyDigitalBot: "Sajn\xE1lom, k\xE9rem, adja meg a \u201EIgen\u201D vagy a \u201ENem\u201D lehet\u0151s\xE9get.", settingsNoInputApology: "Sajn\xE1lom, nem hallottam.", settingsNoInputApologyDigitalBot: "Sajn\xE1lom, nem kaptam \xD6nt\u0151l semmilyen visszajelz\xE9st.", settingsEndOfSessionMessageDigitalBot: "Egy ideje nem hallottam \xD6nr\u0151l, ez\xE9rt bez\xE1rom ezt a cseveg\xE9st. K\xE9rem, t\xE9rjen vissza, ha \xFAjra sz\xFCks\xE9ge van a seg\xEDts\xE9gemre. K\xF6sz\xF6n\xF6m.", settingsNoMatchApology: "Sajn\xE1lom.", settingsNoToConfirmationApology: "Az \xE9n hib\xE1m.", periodicStateName: "Ism\xE9tl\u0151d\u0151 \xE1llapot" }; + }, 79159: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importDefault(i2(33231)), o = n2.__importDefault(i2(92140)), a = n2.__importStar(i2(68223)), s = i2(24032), l = i2(27283), u = i2(55299), d = n2.__importStar(i2(36781)), c = (0, s.getTopic)("asyncOperationManager"); + function p(e3, t3) { + const i3 = e3.constructor.name + "does not implement asyncOperationManager function: " + t3; + throw c.error(i3), new Error(i3); + } + class _ extends u.BaseClass { + constructor() { + super(...arguments), this._operations = []; + } + get className() { + return "AsyncOperationManager"; + } + _cleanOperation(e3, t3, i3) { + p(this, "_cleanOperation"); + } + _pollingDisallowedBehavior(e3) { + } + _clearTimeouts(e3) { + e3._emergencyPollTimeoutId && (clearTimeout(e3._emergencyPollTimeoutId), e3._emergencyPollTimeoutId = void 0), e3._abandonTimeoutId && (clearTimeout(e3._abandonTimeoutId), e3._abandonTimeoutId = void 0), e3._emergencyPollingTimeoutId && (clearTimeout(e3._emergencyPollingTimeoutId), e3._emergencyPollingTimeoutId = void 0); + } + _emergencyPollProcessing(e3, t3) { + p(this, "_emergencyPollProcessing"); + } + _emergencyPollNetworkCall(e3) { + p(this, "_emergencyPollNetworkCall"); + } + _startEmergencyPollRetryTimer(e3) { + e3._emergencyPollTimeoutId = setTimeout(() => { + this._doEmergencyPoll(e3); + }, e3.emergencyPollingRetryTimeoutMS); + } + _doEmergencyPoll(e3) { + if (e3.logTopic.info("invoking emergency poll network call"), !e3.emergencyRequestPending) { + e3.emergencyRequestPending = true; + const t3 = this._emergencyPollNetworkCall(e3); + if (!t3 || !t3.then) return; + t3.then((t4) => { + this._emergencyPollProcessing(t4, e3), e3.operationStillInProgress && !e3.stopEmergencyPolling ? this._startEmergencyPollRetryTimer(e3) : e3.stopEmergencyPolling && (e3.stopEmergencyPolling = void 0); + }, (t4) => { + t4 && 404 === t4.status && e3.retryEmergencyPollOn404 ? this._startEmergencyPollRetryTimer(e3) : (e3.logTopic.errorPromise(t4, "_emergencyPollNetworkCall failed"), this._cleanOperation(false, e3)); + }).finally(() => e3.emergencyRequestPending = false); + } + } + _finished(e3) { + this._removeEventNotifications(e3), e3.operationStillInProgress = false, this._clearTimeouts(e3), e3.stateChangedCallBack && d.emitter.removeListener(d.stateChangeStarted, e3.stateChangedCallBack); + const t3 = this._operations.indexOf(e3); + t3 >= 0 && this._operations.splice(t3, 1); + } + _loadNewModelDetails(e3, t3) { + p(this, "_loadNewModelDetails"); + } + _performOperation(e3) { + const t3 = o.default.extEnsureArray(e3.subscriptionTopics); + if (this._operations.find((i4) => { + if (i4.subscribedToNotifications) { + const n3 = o.default.extEnsureArray(i4.subscriptionTopics); + if (o.default.intersection(t3, n3).length) return !e3.flowViewModel || !i4.flowViewModel || e3.flowViewModel.instanceId === i4.flowViewModel.instanceId; + } + })) { + const t4 = "duplicate or overlapping async operation encountered, aborting"; + return e3.logTopic.warning(t4), e3.deferredOperation.reject(t4), e3.deferredOperation.promise; + } + this._operations.push(e3), e3.startAbandonProcessingTimeout = () => { + e3._abandonTimeoutId = setTimeout(this._abandonProcessing.bind(this, e3), e3.abandonProcessingTimeoutMS); + }, e3.autoStartEmergencyPolling = void 0 === e3.autoStartEmergencyPolling || e3.autoStartEmergencyPolling; + let i3 = false; + if (a.isConnected() ? this._subscribeToEventNotifications(e3) : e3.disallowPolling ? this._pollingDisallowedBehavior && this._pollingDisallowedBehavior(e3) : i3 = true, e3.operationToPerform) { + const t4 = (t5) => { + e3.logTopic.errorPromise(t5, "Operation failed"), this._cleanOperation(false, e3, t5); + }; + try { + (e3.subscribePromise || r2.default.resolve()).finally(() => { + e3._operationStillInProgress && (e3._initialOperationPending = true, e3.operationToPerform(e3).then(() => { + e3._initialOperationPending = void 0, e3._unprocessedNotifications && (o.default.each(e3._unprocessedNotifications, (t5) => { + const i4 = Date.now() - t5.received; + i4 > e3.staleNotificationTimeMS ? e3.logTopic.warning("Ignoring unprocessed notification because it has become stale at {}ms, exceeds {}ms", i4, e3.staleNotificationTimeMS) : this._processNotification(e3, t5.notification); + }), e3._unprocessedNotifications = void 0, e3.operationStillInProgress) || (i3 ? (e3.logTopic.warning("Emergency polling will be used for this operation because no notification channel is available."), this._doEmergencyPoll(e3)) : !e3.disallowPolling && e3.autoStartEmergencyPolling && this.startEmergencyPollingTimer(e3)); + }).catch((e4) => { + t4(e4); + })); + }); + } catch (e4) { + t4(e4); + } + } + return e3.stateChangedCallBack && d.emitter.on(d.stateChangeStarted, e3.stateChangedCallBack), e3.deferredOperation.promise.finally(() => { + this._finished(e3); + }), e3.deferredOperation.promise; + } + _processNotification(e3, t3) { + p(this, "_processNotification"); + } + _abandonProcessing(e3) { + l.queuedNetworkCallService.rateLimitRestricted ? e3.startAbandonProcessingTimeout() : (e3._abandonTimeoutId = void 0, e3.operationStillInProgress && (e3.logTopic.error("Abandoning operation. The operation did not complete in total allowed time of " + e3.abandonProcessingTimeout + " seconds."), e3.operationStillInProgress = false, e3.deferredOperation.reject())); + } + _removeEventNotifications(e3) { + e3 && (e3.subscribedToNotifications = false, a.removeSubscription(e3.subscriptionTopics, e3.subscriberId)); + } + _removeSingleNotificationTopic(e3, t3) { + e3 && (o.default.contains(e3.subscriptionTopics, t3) ? (e3.subscriptionTopics = o.default.without(e3.subscriptionTopics, t3), a.removeSubscription(t3, e3.subscriberId)) : e3.logTopic.error("Unknown topic to remove: {}", t3)); + } + getOperationsWithSubscriptionTopic(e3) { + const t3 = []; + return o.default.each(this._operations, (i3) => { + o.default.isArray(i3.subscriptionTopics) ? o.default.contains(i3.subscriptionTopics, e3) && t3.push(i3) : i3.subscriptionTopics === e3 && t3.push(i3); + }), t3; + } + startEmergencyPollingTimer(e3) { + e3._emergencyPollingTimeoutId || (e3._emergencyPollingTimeoutId = setTimeout(() => { + clearTimeout(e3._emergencyPollingTimeoutId), e3._emergencyPollingTimeoutId = void 0, e3.logTopic.warning("Emergency polling started because operation did not complete within " + e3.emergencyPollingTimeout + " seconds."), this._doEmergencyPoll(e3); + }, e3.emergencyPollingTimeoutMS), e3.startAbandonProcessingTimeout()); + } + _subscribeToEventNotifications(e3) { + e3 && (e3.subscribedToNotifications ? e3.logTopic.error("already looking at notifications") : (e3.subscribePromise = a.addSubscription(e3.subscriptionTopics, e3.subscriberId, (t3) => { + e3._initialOperationPending ? (e3._unprocessedNotifications || (e3._unprocessedNotifications = []), e3._unprocessedNotifications.push({ notification: t3, received: Date.now() })) : e3.operationStillInProgress && this._processNotification(e3, t3); + }).catch((t3) => { + t3.isAborted && (e3.logTopic.requestError(t3, "notification subscribe was aborted, cancelling operation"), this._cleanOperation(false, e3)); + }), e3.subscribedToNotifications = true)); + } + } + t2.default = _; + }, 79163: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(81574)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "externalPhoneNumber"; + } + get display() { + } + get extension() { + } + get userInput() { + } + get e164() { + } + get countryCode() { + } + get acceptsSMS() { + } + get displayTypeName() { + return "ArchValueExternalPhoneNumber"; + } + get isArchValueExternalPhoneNumber() { + return true; + } + } + t2.default = r2; + }, 79183: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(84655)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "workitemEventData"; + } + get initialValue() { + return this._initialValue; + } + get displayTypeName() { + return "ArchVariableWorkitemEventData"; + } + get isArchVariableWorkitemEventData() { + return true; + } + } + t2.default = r2; + }, 79186: (e2) => { + e2.exports = { askCommon: { invalidInputReceived: "Ceci n'est pas valide.", noInputReceived: "Je n'ai re\xE7u aucune entr\xE9e." }, askForBoolean: { noInput: 'Dites "oui" pour continuer ou "non" pour quitter.', noMatch: 'R\xE9pondez par "Oui" ou "Non". Voulez-vous continuer ?', question: "Voulez-vous continuer ?", noInputDigitalBot: 'Saisissez "Yes" si vous souhaitez continuer ou "No" si vous ne le souhaitez pas.', noMatchDigitalBot: 'Saisissez "Yes" ou "No". Souhaitez-vous continuer ?' }, askForIntent: { noInput: 'Dites simplement une phrase courte d\xE9crivant votre requ\xEAte. Par exemple, "Check my account balance"', noMatch: "Dites-moi de nouveau ce que vous souhaitez faire.", question: "Que souhaitez-vous faire ?", noInputDigitalBot: 'Saisissez une courte phrase d\xE9crivant votre requ\xEAte. Par exemple, "Check my account balance"' }, askForSlot: { askFor: "Demander %1$s", noInput: "Dites ou entrez (sp\xE9cifier le nom de l'emplacement ici).", noInputWithSlot: "Dites ou entrez %1$s.", noMatch: "Donnez de nouveau (entrer le nom de l'emplacement ici).", noMatchWithSlot: "Donnez-moi %1$s de nouveau.", question: "Qu'est-ce que (entrer le nom de l'emplacement ici) ?", questionWithSlot: "Qu'est-ce que %1$s ?", pleaseEnterSlotNameHere: "(entrer le nom de l'emplacement ici)", noInputDigitalBot: "Saisissez (indiquez votre nom d'emplacement ici).", noInputWithSlotDigitalBot: "Saisissez %1$s.", continuationPromptWithSlot: "J'ai {{Slot.%1$s}} pour le moment. Continuez" }, askForNextSlot: { noInput: `Dites "oui" si vous avez une autre demande ou "non" pour terminer l'appel.`, noMatch: 'Dites "Oui" si vous avez une autre demande ou "Non" pour terminer la session.', question: "Y a-t-il autre chose que je puisse faire pour vous ?", noInputDigitalBot: 'Saisissez "Yes" si vous avez une autre requ\xEAte ou "No" pour terminer la session.', noMatchDigitalBot: 'Saisissez "Yes" si vous avez une autre requ\xEAte ou "No" pour terminer la session.' }, askForPayment: { noInputDigitalBot: "Veuillez fournir vos informations de paiement pour continuer.", noMatchDigitalBot: "Je n\u2019ai pas compris votre r\xE9ponse. Veuillez r\xE9essayer." }, askForAuthentication: { noInputDigitalBot: "Veuillez vous authentifier pour continuer.", noMatchDigitalBot: "Je n\u2019ai pas compris votre r\xE9ponse. Veuillez r\xE9essayer." }, askSurveyQuestion: { notApplicable: "Non applicable", surveyAnswerOptionSequence: "Appuyez sur %1$s pour %2$s", surveyAnswerNotApplicableSequence: "Appuyez sur \xC9toile pour Non applicable.", surveyAnswerNotApplicableWithQuestionSequence: "%1$s. Appuyez sur \xC9toile pour Non applicable.", voiceSurveyNoInputText: "Merci de r\xE9pondre \xE0 la question.", voiceSurveyNoMatchText: "Je n'ai pas compris." }, commonModule: { exitCommonModule: "Quitter le module commun" }, form: { noInputDigitalBot: "Veuillez compl\xE9ter le formulaire pour continuer.", noMatchDigitalBot: "Veuillez compl\xE9ter le formulaire pour continuer." }, messagingTemplate: { noInputDigitalBot: "Veuillez s\xE9lectionner l\u2019une des options disponibles.", noMatchDigitalBot: "Veuillez s\xE9lectionner l\u2019une des options disponibles." }, knowledgeSettings: { knowledgeAnswerHighlightFlowProgressionDefault: "Continuer", knowledgeAnswerHighlightFullArticleDefault: "Afficher l'article complet", knowledgeInitialResponseMulti: "Pour m'aider \xE0 mieux comprendre votre objectif, choisissez un num\xE9ro dans la liste suivante\xA0::", knowledgeInitialResponseMultiRetry: "Choisissez un num\xE9ro, par exemple '1'.\nVoici la liste des options\xA0:", knowledgeNoMatch: "Aucun(e)", knowledgeConfirmation: "Cela a-t-il r\xE9pondu \xE0 votre question ?", knowledgeFollowup: "J'esp\xE8re avoir r\xE9pondu \xE0 votre question. Vous pouvez poser toutes les questions que vous souhaitez." }, noOverlay: { intent: { intentConfirmationStr1: "Je pense que vous voulez", intentConfirmationStr2: "Est-ce correct ?" }, youSaid: { youSaidConfirmationStr1: "Vous avez dit", youSaidConfirmationStr2: "Est-ce correct ?", youSaidConfirmationStr1DigitalBot: "Vous avez saisi" }, noInput: { noInputStr1: "Dites ou entrez", noInputStr1DigitalBot: "Saisissez" }, noMatch: { noMatchStr1: "Donnez-moi" }, whatIs: { whatIsQuestionStr1: "Qu'est-ce", whatIsQuestionStr2: "?" }, iGotContinuation: { iGotContinuationStr1: "J'ai", iGotContinuationStr2: "pour le moment. Continuez" } }, defaultCallFlowOne: "Flux d'appel par d\xE9faut", errorHandlingAgentEscalationConfirmation: "Vous voulez parler \xE0 un conseiller, c'est exact ?", errorHandlingAgentEscalationHandover: "Merci de patienter pendant que je vous transf\xE8re \xE0 un agent.", errorHandlingErrorEventHandover: "D\xE9sol\xE9, une erreur s'est produite. Merci de patienter pendant que je vous transf\xE8re \xE0 une personne qui peut vous aider.", errorHandlingErrorEventHandoverVoiceSurvey: "Une erreur s'est produite. Au revoir !", errorHandlingRecognitionEventHandover: "D\xE9sol\xE9, j'ai du mal \xE0 vous comprendre. Merci de patienter pendant que je vous transf\xE8re \xE0 une personne qui peut vous aider.", errorHandlingRecognitionEventHandoverVoiceSurvey: "D\xE9sol\xE9, j'ai du mal \xE0 vous comprendre. Toutes nos excuses. Au revoir !", errorHandlingTTS: "D\xE9sol\xE9, une erreur s'est produite. Veuillez r\xE9essayer votre appel..", initialGreetingTTS: "Bonjour. Ceci est l'annonce initiale.", initialState: "Statut initial", initialBotState: "Bot par d\xE9faut", initialDigitalBotState: "Annonce d'accueil", initialSurveyBotState: "Bot d'enqu\xEAte", intentConfirmation: "Je pense que vous souhaitez %1$s, est-ce correct ?", mainMenu: "Menu principal", mainMenuTTS: "Vous \xEAtes au Menu principal, faites le 9 pour vous d\xE9connecter.", mainTask: "T\xE2che", settingsConfirmationNoInputApology: "D\xE9sol\xE9, je n'ai pas entendu ce que vous avez dit. R\xE9pondez par oui ou non.", settingsConfirmationNoInputApologyDigitalBot: `D\xE9sol\xE9, je n'ai re\xE7u aucune entr\xE9e de votre part. Saisissez "Yes" ou "No".`, settingsConfirmationNoMatchApology: "D\xE9sol\xE9, r\xE9pondez par oui ou non.", settingsConfirmationNoMatchApologyDigitalBot: 'D\xE9sol\xE9, saisissez "Yes" ou "No".', settingsNoInputApology: "D\xE9sol\xE9, je n'ai pas entendu ce que vous avez dit.", settingsNoInputApologyDigitalBot: "D\xE9sol\xE9, je n'ai re\xE7u aucune entr\xE9e de votre part.", settingsEndOfSessionMessageDigitalBot: "Cela fait un moment que je n'ai pas eu de vos nouvelles. Je ferme donc ce chat. Si vous avez de nouveau besoin de mon aide, n'h\xE9sitez pas \xE0 revenir. Merci.", settingsNoMatchApology: "D\xE9sol\xE9.", settingsNoToConfirmationApology: "C'est une erreur de ma part.", periodicStateName: "Statut r\xE9current" }; + }, 79200: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importDefault(i2(95085)), o = n2.__importDefault(i2(56549)), a = n2.__importDefault(i2(94225)); + class s extends r2.default { + constructor(e3) { + super(e3), this._timeout = this.coreFactory.createArchWrapper(e3.timeout), this._processingPrompt = this.coreFactory.createArchWrapper(e3.processingPrompt); + } + _clearInputsOutputs() { + this._dataActionInputs = void 0, this._dataActionOutputsSuccess = void 0, this._dataActionOutputsFailure = void 0; + } + get displayTypeName() { + return "ArchBaseActionDataAction"; + } + get dataActionInputs() { + return this._dataActionInputs || (this._dataActionInputs = this.coreFactory.createArchBaseValueContainer(this._getCoreViewModel().inputs)), this._dataActionInputs; + } + get dataActionOutputsFailure() { + if (this._getCoreViewModel().allowErrorSchema) return this._dataActionOutputsFailure || (this._dataActionOutputsFailure = this.coreFactory.createArchBaseValueContainer(this._getCoreViewModel().errorBindings)), this._dataActionOutputsFailure; + } + get dataActionOutputsSuccess() { + return this._dataActionOutputsSuccess || (this._dataActionOutputsSuccess = this.coreFactory.createArchBaseValueContainer(this._getCoreViewModel().outputs)), this._dataActionOutputsSuccess; + } + get isArchBaseActionDataAction() { + return true; + } + _setIntegrationActionByIdAsync(e3, t3, i3) { + return this._checkItemIsValidLiteralString(this._infoParm("integrationActionId", "setIntegrationActionByIdAsync"), e3, false), this._checkItemIsValidFunction(this._infoParm("callbackFunction", "setIntegrationActionByIdAsync"), t3, true), this._checkItemIsValidLiteralString(this._infoParm("integrationActionType", "setIntegrationActionByIdAsync"), i3, false), i3 = (i3 || "integration") + "action", o.default.findItemByIdAsync(this._getCoreViewModel().serverManager, e3, i3 + " id").then((n3) => (this.logNote("found the " + i3 + " named '" + n3.name + "' for the " + i3 + " ID of '" + e3 + "'"), this._coreActionViewModel.setIntegrationActionByViewModel(n3), this._clearInputsOutputs(), a.default.executeCallback(this, "setIntegrationActionByIdAsync", t3, this))); + } + get timeout() { + return this._timeout; + } + get processingPrompt() { + return this._processingPrompt; + } + get supportsDataActionOutputsFailure() { + return !!this._getCoreViewModel().allowErrorSchema; + } + get useSuggestedTimeout() { + return this._coreActionViewModel.useSuggestedTimeout; + } + set useSuggestedTimeout(e3) { + this._checkItemIsValidLiteralBool(this._infoPropSet("newValue", "useSuggestedTimeout"), e3, false), this._coreActionViewModel.useSuggestedTimeout = e3; + } + } + t2.default = s; + }, 79224: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.refCount = void 0; + var n2 = i2(65212), r2 = i2(17214); + t2.refCount = function() { + return n2.operate(function(e3, t3) { + var i3 = null; + e3._refCount++; + var n3 = r2.createOperatorSubscriber(t3, void 0, void 0, void 0, function() { + if (!e3 || e3._refCount <= 0 || 0 < --e3._refCount) i3 = null; + else { + var n4 = e3._connection, r3 = i3; + i3 = null, !n4 || r3 && n4 !== r3 || n4.unsubscribe(), t3.unsubscribe(); + } + }); + e3.subscribe(n3), n3.closed || (i3 = e3.connect()); + }); + }; + }, 79238: (e2, t2, i2) => { + function n2() { + this.id = void 0, this.name = void 0, this.state = void 0, this.addresses = void 0, n2.baseConstructor.apply(this, arguments); + } + i2(45214).extend(n2, "Group"), Object.defineProperties(n2.prototype, { displayName: { get: function() { + return this.name; + }, set: function(e3) { + this.name = e3; + } }, label: { get: function() { + return this.name; + }, set: function(e3) { + this.name = e3; + } }, deleted: { get: function() { + return "deleted" === this.state; + } }, hasExtension: { get: function() { + return this.addresses && this.addresses.length > 0; + } } }), e2.exports = n2; + }, 79348: (e2, t2, i2) => { + "use strict"; + const n2 = i2(31635), r2 = i2(81516), o = n2.__importDefault(i2(27203)), a = i2(12179), s = n2.__importDefault(i2(97891)), l = n2.__importDefault(i2(55581)), u = i2(80428), d = i2(47957); + class c extends l.default { + constructor(e3, t3) { + super(e3), this._loadModel(t3); + } + static get branchInfo() { + return o.default.foundNotFound; + } + static get managedProperties() { + return [{ label: d.getConversationData.participantLabel, options: r2.ExpressionTypeStringOptions.create((e3) => e3.setAsInput().setDescriptionInfo(d.getConversationData.participantLabel, d.getConversationData.participantDescription).setIsOptional(true).setIninTestingField("ParticipantIdExpression").setDisableSpellcheck(true).setUiPropertyOrder(20).facets.setLengthForUuid()), property: "participantId", type: u.expressionTypeNames.string, yamlOptions: c.createYamlOptions("participantId", (e3) => e3.setExportOrder(20)) }]; + } + } + c.info = s.default.createActionInfo({ actionClass: c, canBeInTask: true, canBeTreeNode: false, helpTopic: a.helpTopics.actions.getConversationData, modelClass: i2(40762), name: d.actions.getConversationData, scriptingName: "ArchActionGetConversationData" }), t2.A = c; + }, 79353: (e2, t2, i2) => { + const n2 = i2(92140), r2 = i2(81086), o = i2(65302), a = i2(22928).default, s = i2(14187); + function l(e3) { + Object.defineProperties(this, { canAttachProperty: { value: true, writable: true }, isUnavailable: { value: false, writable: true }, _isReadOnly: { value: e3.isReadOnly, writable: true }, properties: { value: {} }, realVariable: { value: e3 } }), this._cloneRealModel(); + } + r2.extend(l), Object.defineProperties(l.prototype, { _cloneRealModel: { value: function() { + this.name = this.realVariable.name, n2.each(this.realVariable.model, function(e3, t3) { + this[t3] = e3; + }.bind(this)), this.__type = this.__type || this.realVariable.model.__type; + } }, addReader: { value: function(e3) { + return this.realVariable.addReader(e3); + } }, addWriter: { value: function(e3) { + return this.realVariable.addWriter(e3); + } }, attachProperty: { value: function(e3) { + this.canAttachProperty && (this.expressionText = this.name + "." + e3.expressionText, this.name += "." + e3.name, this.lastPropertyName = e3.name, this.id += "." + e3.id, this.isCollection = e3.type.isCollection, this.__type = e3.type.icwsType, this.typeIdentifier = e3.type.expressionType, this.description = e3.description, e3.isUnavailable && (this.isUnavailable = true), this.properties[e3.name.toLowerCase()] = e3, e3.type.isCollection && (this.canAttachProperty = false)); + } }, checkVersion: { value: function(e3) { + this.realVariable.checkVersion(e3), n2.each(this.properties, function(t3) { + t3.checkVersion(e3); + }); + } }, deleteItem: { value: function(e3) { + } }, deleteReference: { value: function(e3) { + return this.realVariable.deleteReference(e3); + } }, expandedKey: { get: function() { + return a.getExpandedKey(this.name, this.id, this.parent); + } }, getExpressionTextWithNameFallback: { value: function() { + return this.expressionText ? this.expressionText : this.name; + } }, hierarchicalParent: { get: function() { + return this._hierarchicalParent; + }, set: function(e3) { + this._hierarchicalParent = e3; + } }, iconGux: { get: function() { + return this.type.getIconGux(); + } }, isClone: { value: true }, isFlowVariable: { get: function() { + return this.realVariable.isFlowVariable; + } }, isSecure: { get: function() { + return this.realVariable.isSecure; + }, set: function() { + } }, isSystemOrFlowVariable: { get: function() { + return this.realVariable.isSystemOrFlowVariable; + } }, isSystemVariable: { get: function() { + return this.realVariable.isSystemVariable; + } }, isTaskVariable: { get: function() { + return this.realVariable.isTaskVariable; + } }, isReadOnly: { get: function() { + return this._isReadOnly; + }, set: function(e3) { + this._isReadOnly = e3; + } }, isStateVariable: { get: function() { + return this.realVariable.isStateVariable; + } }, isVariableClone: { get: function() { + return true; + } }, lowerName: { get: function() { + return this.name.toLocaleLowerCase(); + } }, lowerUnscopedName: { get: function() { + return this.unscopedName.toLocaleLowerCase(); + } }, removeUsage: { value: function(e3) { + return this.realVariable.removeUsage(e3); + } }, parent: { get: function() { + return this.realVariable.parent; + } }, parentFlow: { get: function() { + return this.realVariable.parentFlow; + } }, type: { get: function() { + return this.typeIdentifier ? o.resolveType(this.parentFlow, this.typeIdentifier) : o.getTypeFromIcwsType(this.parentFlow, this.__type, this.isCollection); + } }, unscopedName: { get: function() { + return s.getUnscopedName(this.name); + } }, usages: { get: function() { + return this.realVariable.usages; + } }, isPartOfEnum: { get: function() { + return this.realVariable.isPartOfEnum; + } } }), e2.exports = l; + }, 79364: function(e2, t2, i2) { + "use strict"; + var n2 = this && this.__createBinding || (Object.create ? function(e3, t3, i3, n3) { + void 0 === n3 && (n3 = i3), Object.defineProperty(e3, n3, { enumerable: true, get: function() { + return t3[i3]; + } }); + } : function(e3, t3, i3, n3) { + void 0 === n3 && (n3 = i3), e3[n3] = t3[i3]; + }), r2 = this && this.__exportStar || function(e3, t3) { + for (var i3 in e3) "default" === i3 || Object.prototype.hasOwnProperty.call(t3, i3) || n2(t3, e3, i3); + }; + Object.defineProperty(t2, "__esModule", { value: true }), t2.interval = t2.iif = t2.generate = t2.fromEventPattern = t2.fromEvent = t2.from = t2.forkJoin = t2.empty = t2.defer = t2.connectable = t2.concat = t2.combineLatest = t2.bindNodeCallback = t2.bindCallback = t2.UnsubscriptionError = t2.TimeoutError = t2.SequenceError = t2.ObjectUnsubscribedError = t2.NotFoundError = t2.EmptyError = t2.ArgumentOutOfRangeError = t2.firstValueFrom = t2.lastValueFrom = t2.isObservable = t2.identity = t2.noop = t2.pipe = t2.NotificationKind = t2.Notification = t2.Subscriber = t2.Subscription = t2.Scheduler = t2.VirtualAction = t2.VirtualTimeScheduler = t2.animationFrameScheduler = t2.animationFrame = t2.queueScheduler = t2.queue = t2.asyncScheduler = t2.async = t2.asapScheduler = t2.asap = t2.AsyncSubject = t2.ReplaySubject = t2.BehaviorSubject = t2.Subject = t2.animationFrames = t2.observable = t2.ConnectableObservable = t2.Observable = void 0, t2.filter = t2.expand = t2.exhaustMap = t2.exhaustAll = t2.exhaust = t2.every = t2.endWith = t2.elementAt = t2.distinctUntilKeyChanged = t2.distinctUntilChanged = t2.distinct = t2.dematerialize = t2.delayWhen = t2.delay = t2.defaultIfEmpty = t2.debounceTime = t2.debounce = t2.count = t2.connect = t2.concatWith = t2.concatMapTo = t2.concatMap = t2.concatAll = t2.combineLatestWith = t2.combineLatestAll = t2.combineAll = t2.catchError = t2.bufferWhen = t2.bufferToggle = t2.bufferTime = t2.bufferCount = t2.buffer = t2.auditTime = t2.audit = t2.config = t2.NEVER = t2.EMPTY = t2.scheduled = t2.zip = t2.using = t2.timer = t2.throwError = t2.range = t2.race = t2.partition = t2.pairs = t2.onErrorResumeNext = t2.of = t2.never = t2.merge = void 0, t2.switchMap = t2.switchAll = t2.subscribeOn = t2.startWith = t2.skipWhile = t2.skipUntil = t2.skipLast = t2.skip = t2.single = t2.shareReplay = t2.share = t2.sequenceEqual = t2.scan = t2.sampleTime = t2.sample = t2.refCount = t2.retryWhen = t2.retry = t2.repeatWhen = t2.repeat = t2.reduce = t2.raceWith = t2.publishReplay = t2.publishLast = t2.publishBehavior = t2.publish = t2.pluck = t2.pairwise = t2.onErrorResumeNextWith = t2.observeOn = t2.multicast = t2.min = t2.mergeWith = t2.mergeScan = t2.mergeMapTo = t2.mergeMap = t2.flatMap = t2.mergeAll = t2.max = t2.materialize = t2.mapTo = t2.map = t2.last = t2.isEmpty = t2.ignoreElements = t2.groupBy = t2.first = t2.findIndex = t2.find = t2.finalize = void 0, t2.zipWith = t2.zipAll = t2.withLatestFrom = t2.windowWhen = t2.windowToggle = t2.windowTime = t2.windowCount = t2.window = t2.toArray = t2.timestamp = t2.timeoutWith = t2.timeout = t2.timeInterval = t2.throwIfEmpty = t2.throttleTime = t2.throttle = t2.tap = t2.takeWhile = t2.takeUntil = t2.takeLast = t2.take = t2.switchScan = t2.switchMapTo = void 0; + var o = i2(48051); + Object.defineProperty(t2, "Observable", { enumerable: true, get: function() { + return o.Observable; + } }); + var a = i2(14359); + Object.defineProperty(t2, "ConnectableObservable", { enumerable: true, get: function() { + return a.ConnectableObservable; + } }); + var s = i2(2884); + Object.defineProperty(t2, "observable", { enumerable: true, get: function() { + return s.observable; + } }); + var l = i2(21875); + Object.defineProperty(t2, "animationFrames", { enumerable: true, get: function() { + return l.animationFrames; + } }); + var u = i2(76808); + Object.defineProperty(t2, "Subject", { enumerable: true, get: function() { + return u.Subject; + } }); + var d = i2(97314); + Object.defineProperty(t2, "BehaviorSubject", { enumerable: true, get: function() { + return d.BehaviorSubject; + } }); + var c = i2(10381); + Object.defineProperty(t2, "ReplaySubject", { enumerable: true, get: function() { + return c.ReplaySubject; + } }); + var p = i2(5130); + Object.defineProperty(t2, "AsyncSubject", { enumerable: true, get: function() { + return p.AsyncSubject; + } }); + var _ = i2(22105); + Object.defineProperty(t2, "asap", { enumerable: true, get: function() { + return _.asap; + } }), Object.defineProperty(t2, "asapScheduler", { enumerable: true, get: function() { + return _.asapScheduler; + } }); + var h = i2(62326); + Object.defineProperty(t2, "async", { enumerable: true, get: function() { + return h.async; + } }), Object.defineProperty(t2, "asyncScheduler", { enumerable: true, get: function() { + return h.asyncScheduler; + } }); + var m = i2(99245); + Object.defineProperty(t2, "queue", { enumerable: true, get: function() { + return m.queue; + } }), Object.defineProperty(t2, "queueScheduler", { enumerable: true, get: function() { + return m.queueScheduler; + } }); + var g = i2(15887); + Object.defineProperty(t2, "animationFrame", { enumerable: true, get: function() { + return g.animationFrame; + } }), Object.defineProperty(t2, "animationFrameScheduler", { enumerable: true, get: function() { + return g.animationFrameScheduler; + } }); + var f = i2(50875); + Object.defineProperty(t2, "VirtualTimeScheduler", { enumerable: true, get: function() { + return f.VirtualTimeScheduler; + } }), Object.defineProperty(t2, "VirtualAction", { enumerable: true, get: function() { + return f.VirtualAction; + } }); + var T = i2(65881); + Object.defineProperty(t2, "Scheduler", { enumerable: true, get: function() { + return T.Scheduler; + } }); + var y = i2(69879); + Object.defineProperty(t2, "Subscription", { enumerable: true, get: function() { + return y.Subscription; + } }); + var S = i2(2708); + Object.defineProperty(t2, "Subscriber", { enumerable: true, get: function() { + return S.Subscriber; + } }); + var A = i2(31245); + Object.defineProperty(t2, "Notification", { enumerable: true, get: function() { + return A.Notification; + } }), Object.defineProperty(t2, "NotificationKind", { enumerable: true, get: function() { + return A.NotificationKind; + } }); + var N = i2(99517); + Object.defineProperty(t2, "pipe", { enumerable: true, get: function() { + return N.pipe; + } }); + var O = i2(5717); + Object.defineProperty(t2, "noop", { enumerable: true, get: function() { + return O.noop; + } }); + var I = i2(87699); + Object.defineProperty(t2, "identity", { enumerable: true, get: function() { + return I.identity; + } }); + var v = i2(62560); + Object.defineProperty(t2, "isObservable", { enumerable: true, get: function() { + return v.isObservable; + } }); + var C = i2(85761); + Object.defineProperty(t2, "lastValueFrom", { enumerable: true, get: function() { + return C.lastValueFrom; + } }); + var b = i2(40841); + Object.defineProperty(t2, "firstValueFrom", { enumerable: true, get: function() { + return b.firstValueFrom; + } }); + var E = i2(7024); + Object.defineProperty(t2, "ArgumentOutOfRangeError", { enumerable: true, get: function() { + return E.ArgumentOutOfRangeError; + } }); + var R = i2(59328); + Object.defineProperty(t2, "EmptyError", { enumerable: true, get: function() { + return R.EmptyError; + } }); + var w = i2(23506); + Object.defineProperty(t2, "NotFoundError", { enumerable: true, get: function() { + return w.NotFoundError; + } }); + var D = i2(50839); + Object.defineProperty(t2, "ObjectUnsubscribedError", { enumerable: true, get: function() { + return D.ObjectUnsubscribedError; + } }); + var P = i2(94708); + Object.defineProperty(t2, "SequenceError", { enumerable: true, get: function() { + return P.SequenceError; + } }); + var M = i2(81713); + Object.defineProperty(t2, "TimeoutError", { enumerable: true, get: function() { + return M.TimeoutError; + } }); + var F = i2(69517); + Object.defineProperty(t2, "UnsubscriptionError", { enumerable: true, get: function() { + return F.UnsubscriptionError; + } }); + var L = i2(79750); + Object.defineProperty(t2, "bindCallback", { enumerable: true, get: function() { + return L.bindCallback; + } }); + var x = i2(21946); + Object.defineProperty(t2, "bindNodeCallback", { enumerable: true, get: function() { + return x.bindNodeCallback; + } }); + var k = i2(88246); + Object.defineProperty(t2, "combineLatest", { enumerable: true, get: function() { + return k.combineLatest; + } }); + var V = i2(39546); + Object.defineProperty(t2, "concat", { enumerable: true, get: function() { + return V.concat; + } }); + var U = i2(98590); + Object.defineProperty(t2, "connectable", { enumerable: true, get: function() { + return U.connectable; + } }); + var B = i2(35884); + Object.defineProperty(t2, "defer", { enumerable: true, get: function() { + return B.defer; + } }); + var G = i2(44885); + Object.defineProperty(t2, "empty", { enumerable: true, get: function() { + return G.empty; + } }); + var j = i2(75266); + Object.defineProperty(t2, "forkJoin", { enumerable: true, get: function() { + return j.forkJoin; + } }); + var W = i2(47058); + Object.defineProperty(t2, "from", { enumerable: true, get: function() { + return W.from; + } }); + var q = i2(88616); + Object.defineProperty(t2, "fromEvent", { enumerable: true, get: function() { + return q.fromEvent; + } }); + var Y = i2(26920); + Object.defineProperty(t2, "fromEventPattern", { enumerable: true, get: function() { + return Y.fromEventPattern; + } }); + var H = i2(87281); + Object.defineProperty(t2, "generate", { enumerable: true, get: function() { + return H.generate; + } }); + var J = i2(99380); + Object.defineProperty(t2, "iif", { enumerable: true, get: function() { + return J.iif; + } }); + var z = i2(62275); + Object.defineProperty(t2, "interval", { enumerable: true, get: function() { + return z.interval; + } }); + var K = i2(95936); + Object.defineProperty(t2, "merge", { enumerable: true, get: function() { + return K.merge; + } }); + var $ = i2(11934); + Object.defineProperty(t2, "never", { enumerable: true, get: function() { + return $.never; + } }); + var Q = i2(61587); + Object.defineProperty(t2, "of", { enumerable: true, get: function() { + return Q.of; + } }); + var X = i2(1903); + Object.defineProperty(t2, "onErrorResumeNext", { enumerable: true, get: function() { + return X.onErrorResumeNext; + } }); + var Z = i2(88269); + Object.defineProperty(t2, "pairs", { enumerable: true, get: function() { + return Z.pairs; + } }); + var ee = i2(57406); + Object.defineProperty(t2, "partition", { enumerable: true, get: function() { + return ee.partition; + } }); + var te = i2(89795); + Object.defineProperty(t2, "race", { enumerable: true, get: function() { + return te.race; + } }); + var ie = i2(74385); + Object.defineProperty(t2, "range", { enumerable: true, get: function() { + return ie.range; + } }); + var ne = i2(26680); + Object.defineProperty(t2, "throwError", { enumerable: true, get: function() { + return ne.throwError; + } }); + var re = i2(5825); + Object.defineProperty(t2, "timer", { enumerable: true, get: function() { + return re.timer; + } }); + var oe = i2(35904); + Object.defineProperty(t2, "using", { enumerable: true, get: function() { + return oe.using; + } }); + var ae = i2(11415); + Object.defineProperty(t2, "zip", { enumerable: true, get: function() { + return ae.zip; + } }); + var se = i2(30131); + Object.defineProperty(t2, "scheduled", { enumerable: true, get: function() { + return se.scheduled; + } }); + var le = i2(44885); + Object.defineProperty(t2, "EMPTY", { enumerable: true, get: function() { + return le.EMPTY; + } }); + var ue = i2(11934); + Object.defineProperty(t2, "NEVER", { enumerable: true, get: function() { + return ue.NEVER; + } }), r2(i2(96153), t2); + var de = i2(93728); + Object.defineProperty(t2, "config", { enumerable: true, get: function() { + return de.config; + } }); + var ce = i2(88877); + Object.defineProperty(t2, "audit", { enumerable: true, get: function() { + return ce.audit; + } }); + var pe = i2(51608); + Object.defineProperty(t2, "auditTime", { enumerable: true, get: function() { + return pe.auditTime; + } }); + var _e = i2(10706); + Object.defineProperty(t2, "buffer", { enumerable: true, get: function() { + return _e.buffer; + } }); + var he = i2(9287); + Object.defineProperty(t2, "bufferCount", { enumerable: true, get: function() { + return he.bufferCount; + } }); + var me = i2(41719); + Object.defineProperty(t2, "bufferTime", { enumerable: true, get: function() { + return me.bufferTime; + } }); + var ge = i2(61778); + Object.defineProperty(t2, "bufferToggle", { enumerable: true, get: function() { + return ge.bufferToggle; + } }); + var fe = i2(56606); + Object.defineProperty(t2, "bufferWhen", { enumerable: true, get: function() { + return fe.bufferWhen; + } }); + var Te = i2(72719); + Object.defineProperty(t2, "catchError", { enumerable: true, get: function() { + return Te.catchError; + } }); + var ye = i2(89244); + Object.defineProperty(t2, "combineAll", { enumerable: true, get: function() { + return ye.combineAll; + } }); + var Se = i2(67933); + Object.defineProperty(t2, "combineLatestAll", { enumerable: true, get: function() { + return Se.combineLatestAll; + } }); + var Ae = i2(82044); + Object.defineProperty(t2, "combineLatestWith", { enumerable: true, get: function() { + return Ae.combineLatestWith; + } }); + var Ne = i2(70201); + Object.defineProperty(t2, "concatAll", { enumerable: true, get: function() { + return Ne.concatAll; + } }); + var Oe = i2(29512); + Object.defineProperty(t2, "concatMap", { enumerable: true, get: function() { + return Oe.concatMap; + } }); + var Ie = i2(19913); + Object.defineProperty(t2, "concatMapTo", { enumerable: true, get: function() { + return Ie.concatMapTo; + } }); + var ve = i2(98032); + Object.defineProperty(t2, "concatWith", { enumerable: true, get: function() { + return ve.concatWith; + } }); + var Ce = i2(17812); + Object.defineProperty(t2, "connect", { enumerable: true, get: function() { + return Ce.connect; + } }); + var be = i2(88589); + Object.defineProperty(t2, "count", { enumerable: true, get: function() { + return be.count; + } }); + var Ee = i2(3143); + Object.defineProperty(t2, "debounce", { enumerable: true, get: function() { + return Ee.debounce; + } }); + var Re = i2(21762); + Object.defineProperty(t2, "debounceTime", { enumerable: true, get: function() { + return Re.debounceTime; + } }); + var we = i2(58799); + Object.defineProperty(t2, "defaultIfEmpty", { enumerable: true, get: function() { + return we.defaultIfEmpty; + } }); + var De = i2(5797); + Object.defineProperty(t2, "delay", { enumerable: true, get: function() { + return De.delay; + } }); + var Pe = i2(72885); + Object.defineProperty(t2, "delayWhen", { enumerable: true, get: function() { + return Pe.delayWhen; + } }); + var Me = i2(19818); + Object.defineProperty(t2, "dematerialize", { enumerable: true, get: function() { + return Me.dematerialize; + } }); + var Fe = i2(77876); + Object.defineProperty(t2, "distinct", { enumerable: true, get: function() { + return Fe.distinct; + } }); + var Le = i2(22044); + Object.defineProperty(t2, "distinctUntilChanged", { enumerable: true, get: function() { + return Le.distinctUntilChanged; + } }); + var xe = i2(76035); + Object.defineProperty(t2, "distinctUntilKeyChanged", { enumerable: true, get: function() { + return xe.distinctUntilKeyChanged; + } }); + var ke = i2(61279); + Object.defineProperty(t2, "elementAt", { enumerable: true, get: function() { + return ke.elementAt; + } }); + var Ve = i2(66791); + Object.defineProperty(t2, "endWith", { enumerable: true, get: function() { + return Ve.endWith; + } }); + var Ue = i2(21361); + Object.defineProperty(t2, "every", { enumerable: true, get: function() { + return Ue.every; + } }); + var Be = i2(11464); + Object.defineProperty(t2, "exhaust", { enumerable: true, get: function() { + return Be.exhaust; + } }); + var Ge = i2(17977); + Object.defineProperty(t2, "exhaustAll", { enumerable: true, get: function() { + return Ge.exhaustAll; + } }); + var je = i2(86632); + Object.defineProperty(t2, "exhaustMap", { enumerable: true, get: function() { + return je.exhaustMap; + } }); + var We = i2(75544); + Object.defineProperty(t2, "expand", { enumerable: true, get: function() { + return We.expand; + } }); + var qe = i2(85934); + Object.defineProperty(t2, "filter", { enumerable: true, get: function() { + return qe.filter; + } }); + var Ye = i2(17802); + Object.defineProperty(t2, "finalize", { enumerable: true, get: function() { + return Ye.finalize; + } }); + var He = i2(98183); + Object.defineProperty(t2, "find", { enumerable: true, get: function() { + return He.find; + } }); + var Je = i2(29035); + Object.defineProperty(t2, "findIndex", { enumerable: true, get: function() { + return Je.findIndex; + } }); + var ze = i2(19980); + Object.defineProperty(t2, "first", { enumerable: true, get: function() { + return ze.first; + } }); + var Ke = i2(5128); + Object.defineProperty(t2, "groupBy", { enumerable: true, get: function() { + return Ke.groupBy; + } }); + var $e = i2(2959); + Object.defineProperty(t2, "ignoreElements", { enumerable: true, get: function() { + return $e.ignoreElements; + } }); + var Qe = i2(69915); + Object.defineProperty(t2, "isEmpty", { enumerable: true, get: function() { + return Qe.isEmpty; + } }); + var Xe = i2(32568); + Object.defineProperty(t2, "last", { enumerable: true, get: function() { + return Xe.last; + } }); + var Ze = i2(26872); + Object.defineProperty(t2, "map", { enumerable: true, get: function() { + return Ze.map; + } }); + var et = i2(13337); + Object.defineProperty(t2, "mapTo", { enumerable: true, get: function() { + return et.mapTo; + } }); + var tt = i2(75019); + Object.defineProperty(t2, "materialize", { enumerable: true, get: function() { + return tt.materialize; + } }); + var it = i2(50096); + Object.defineProperty(t2, "max", { enumerable: true, get: function() { + return it.max; + } }); + var nt = i2(68087); + Object.defineProperty(t2, "mergeAll", { enumerable: true, get: function() { + return nt.mergeAll; + } }); + var rt = i2(74613); + Object.defineProperty(t2, "flatMap", { enumerable: true, get: function() { + return rt.flatMap; + } }); + var ot = i2(67478); + Object.defineProperty(t2, "mergeMap", { enumerable: true, get: function() { + return ot.mergeMap; + } }); + var at = i2(76075); + Object.defineProperty(t2, "mergeMapTo", { enumerable: true, get: function() { + return at.mergeMapTo; + } }); + var st = i2(16707); + Object.defineProperty(t2, "mergeScan", { enumerable: true, get: function() { + return st.mergeScan; + } }); + var lt = i2(79694); + Object.defineProperty(t2, "mergeWith", { enumerable: true, get: function() { + return lt.mergeWith; + } }); + var ut = i2(80142); + Object.defineProperty(t2, "min", { enumerable: true, get: function() { + return ut.min; + } }); + var dt = i2(18464); + Object.defineProperty(t2, "multicast", { enumerable: true, get: function() { + return dt.multicast; + } }); + var ct = i2(32071); + Object.defineProperty(t2, "observeOn", { enumerable: true, get: function() { + return ct.observeOn; + } }); + var pt = i2(95513); + Object.defineProperty(t2, "onErrorResumeNextWith", { enumerable: true, get: function() { + return pt.onErrorResumeNextWith; + } }); + var _t = i2(26744); + Object.defineProperty(t2, "pairwise", { enumerable: true, get: function() { + return _t.pairwise; + } }); + var ht = i2(66355); + Object.defineProperty(t2, "pluck", { enumerable: true, get: function() { + return ht.pluck; + } }); + var mt = i2(53197); + Object.defineProperty(t2, "publish", { enumerable: true, get: function() { + return mt.publish; + } }); + var gt = i2(82955); + Object.defineProperty(t2, "publishBehavior", { enumerable: true, get: function() { + return gt.publishBehavior; + } }); + var ft = i2(26569); + Object.defineProperty(t2, "publishLast", { enumerable: true, get: function() { + return ft.publishLast; + } }); + var Tt = i2(68710); + Object.defineProperty(t2, "publishReplay", { enumerable: true, get: function() { + return Tt.publishReplay; + } }); + var yt = i2(6677); + Object.defineProperty(t2, "raceWith", { enumerable: true, get: function() { + return yt.raceWith; + } }); + var St = i2(92070); + Object.defineProperty(t2, "reduce", { enumerable: true, get: function() { + return St.reduce; + } }); + var At = i2(56131); + Object.defineProperty(t2, "repeat", { enumerable: true, get: function() { + return At.repeat; + } }); + var Nt = i2(82139); + Object.defineProperty(t2, "repeatWhen", { enumerable: true, get: function() { + return Nt.repeatWhen; + } }); + var Ot = i2(3352); + Object.defineProperty(t2, "retry", { enumerable: true, get: function() { + return Ot.retry; + } }); + var It = i2(73956); + Object.defineProperty(t2, "retryWhen", { enumerable: true, get: function() { + return It.retryWhen; + } }); + var vt = i2(79224); + Object.defineProperty(t2, "refCount", { enumerable: true, get: function() { + return vt.refCount; + } }); + var Ct = i2(43434); + Object.defineProperty(t2, "sample", { enumerable: true, get: function() { + return Ct.sample; + } }); + var bt = i2(44143); + Object.defineProperty(t2, "sampleTime", { enumerable: true, get: function() { + return bt.sampleTime; + } }); + var Et = i2(35565); + Object.defineProperty(t2, "scan", { enumerable: true, get: function() { + return Et.scan; + } }); + var Rt = i2(73929); + Object.defineProperty(t2, "sequenceEqual", { enumerable: true, get: function() { + return Rt.sequenceEqual; + } }); + var wt = i2(93405); + Object.defineProperty(t2, "share", { enumerable: true, get: function() { + return wt.share; + } }); + var Dt = i2(17782); + Object.defineProperty(t2, "shareReplay", { enumerable: true, get: function() { + return Dt.shareReplay; + } }); + var Pt = i2(55440); + Object.defineProperty(t2, "single", { enumerable: true, get: function() { + return Pt.single; + } }); + var Mt = i2(23079); + Object.defineProperty(t2, "skip", { enumerable: true, get: function() { + return Mt.skip; + } }); + var Ft = i2(92359); + Object.defineProperty(t2, "skipLast", { enumerable: true, get: function() { + return Ft.skipLast; + } }); + var Lt = i2(97783); + Object.defineProperty(t2, "skipUntil", { enumerable: true, get: function() { + return Lt.skipUntil; + } }); + var xt = i2(65774); + Object.defineProperty(t2, "skipWhile", { enumerable: true, get: function() { + return xt.skipWhile; + } }); + var kt = i2(99054); + Object.defineProperty(t2, "startWith", { enumerable: true, get: function() { + return kt.startWith; + } }); + var Vt = i2(5455); + Object.defineProperty(t2, "subscribeOn", { enumerable: true, get: function() { + return Vt.subscribeOn; + } }); + var Ut = i2(16201); + Object.defineProperty(t2, "switchAll", { enumerable: true, get: function() { + return Ut.switchAll; + } }); + var Bt = i2(90680); + Object.defineProperty(t2, "switchMap", { enumerable: true, get: function() { + return Bt.switchMap; + } }); + var Gt = i2(761); + Object.defineProperty(t2, "switchMapTo", { enumerable: true, get: function() { + return Gt.switchMapTo; + } }); + var jt = i2(48461); + Object.defineProperty(t2, "switchScan", { enumerable: true, get: function() { + return jt.switchScan; + } }); + var Wt = i2(54383); + Object.defineProperty(t2, "take", { enumerable: true, get: function() { + return Wt.take; + } }); + var qt = i2(65279); + Object.defineProperty(t2, "takeLast", { enumerable: true, get: function() { + return qt.takeLast; + } }); + var Yt = i2(66911); + Object.defineProperty(t2, "takeUntil", { enumerable: true, get: function() { + return Yt.takeUntil; + } }); + var Ht = i2(60598); + Object.defineProperty(t2, "takeWhile", { enumerable: true, get: function() { + return Ht.takeWhile; + } }); + var Jt = i2(15019); + Object.defineProperty(t2, "tap", { enumerable: true, get: function() { + return Jt.tap; + } }); + var zt = i2(44880); + Object.defineProperty(t2, "throttle", { enumerable: true, get: function() { + return zt.throttle; + } }); + var Kt = i2(7245); + Object.defineProperty(t2, "throttleTime", { enumerable: true, get: function() { + return Kt.throttleTime; + } }); + var $t = i2(30632); + Object.defineProperty(t2, "throwIfEmpty", { enumerable: true, get: function() { + return $t.throwIfEmpty; + } }); + var Qt = i2(32508); + Object.defineProperty(t2, "timeInterval", { enumerable: true, get: function() { + return Qt.timeInterval; + } }); + var Xt = i2(81713); + Object.defineProperty(t2, "timeout", { enumerable: true, get: function() { + return Xt.timeout; + } }); + var Zt = i2(50597); + Object.defineProperty(t2, "timeoutWith", { enumerable: true, get: function() { + return Zt.timeoutWith; + } }); + var ei = i2(53866); + Object.defineProperty(t2, "timestamp", { enumerable: true, get: function() { + return ei.timestamp; + } }); + var ti = i2(73484); + Object.defineProperty(t2, "toArray", { enumerable: true, get: function() { + return ti.toArray; + } }); + var ii = i2(78072); + Object.defineProperty(t2, "window", { enumerable: true, get: function() { + return ii.window; + } }); + var ni = i2(62893); + Object.defineProperty(t2, "windowCount", { enumerable: true, get: function() { + return ni.windowCount; + } }); + var ri = i2(90037); + Object.defineProperty(t2, "windowTime", { enumerable: true, get: function() { + return ri.windowTime; + } }); + var oi = i2(28996); + Object.defineProperty(t2, "windowToggle", { enumerable: true, get: function() { + return oi.windowToggle; + } }); + var ai = i2(65156); + Object.defineProperty(t2, "windowWhen", { enumerable: true, get: function() { + return ai.windowWhen; + } }); + var si = i2(66975); + Object.defineProperty(t2, "withLatestFrom", { enumerable: true, get: function() { + return si.withLatestFrom; + } }); + var li = i2(5362); + Object.defineProperty(t2, "zipAll", { enumerable: true, get: function() { + return li.zipAll; + } }); + var ui = i2(36977); + Object.defineProperty(t2, "zipWith", { enumerable: true, get: function() { + return ui.zipWith; + } }); + }, 79411: (e2) => { + e2.exports = { AF: "Afghanistan", AX: "Aland Islands", AL: "Albania", DZ: "Algeria", AS: "American Samoa", AD: "Andorra", AO: "Angola", AI: "Anguilla", AQ: "Antarctica", AG: "Antigua and Barbuda", AR: "Argentina", AM: "Armenia", AW: "Aruba", AU: "Australia", AT: "Austria", AZ: "Azerbaijan", BS: "Bahamas", BH: "Bahrain", BD: "Bangladesh", BB: "Barbados", BY: "Belarus", BE: "Belgium", BZ: "Belize", BQ: "Bonaire, Sint Eustatius and Saba", BJ: "Benin", BM: "Bermuda", BT: "Bhutan", BO: "Bolivia, Plurinational State of", BA: "Bosnia and Herzegovina", BW: "Botswana", BV: "Bouvet Island", BR: "Brazil", IO: "British Indian Ocean Territory", BN: "Brunei Darussalam", BG: "Bulgaria", BF: "Burkina Faso", BI: "Burundi", KH: "Cambodia", CM: "Cameroon", CA: "Canada", CV: "Cape Verde", CW: "Cura\xE7ao", KY: "Cayman Islands", CF: "Central African Republic", TD: "Chad", CL: "Chile", CN: "China", CX: "Christmas Island", CC: "Cocos (Keeling) Islands", CO: "Colombia", KM: "Comoros", CG: "Congo", CD: "The Democratic Republic of the Congo", CK: "Cook Islands", CR: "Costa Rica", CI: "Cote d'Ivoire", HR: "Croatia", CU: "Cuba", CY: "Cyprus", CZ: "Czech Republic", DK: "Denmark", DJ: "Djibouti", DM: "Dominica", DO: "Dominican Republic", EC: "Ecuador", EG: "Egypt", SV: "El Salvador", GQ: "Equatorial Guinea", ER: "Eritrea", EE: "Estonia", ET: "Ethiopia", EH: "Western Sahara", FK: "Falkland Islands (Malvinas)", FO: "Faroe Islands", FJ: "Fiji", FI: "Finland", FR: "France", GF: "French Guiana", PF: "French Polynesia", TF: "French Southern Territories", GA: "Gabon", GM: "Gambia", GE: "Georgia", DE: "Germany", GH: "Ghana", GI: "Gibraltar", GR: "Greece", GL: "Greenland", GD: "Grenada", GP: "Guadeloupe", GU: "Guam", GT: "Guatemala", GG: "Guernsey", GN: "Guinea", GW: "Guinea-Bissau", GY: "Guyana", HT: "Haiti", VA: "Holy See", HN: "Honduras", HK: "Hong Kong", HU: "Hungary", IS: "Iceland", IN: "India", ID: "Indonesia", IR: "Iran", IQ: "Iraq", IE: "Ireland", IM: "Isle of Man", IL: "Israel", IT: "Italy", JM: "Jamaica", JP: "Japan", JE: "Jersey", JO: "Jordan", HM: "Heard Island and McDonald Islands", KZ: "Kazakhstan", KE: "Kenya", KI: "Kiribati", KP: "Korea, Democratic People's Republic of", KR: "Republic of South Korea", XK: "Kosovo", KW: "Kuwait", KG: "Kyrgyzstan", LA: "Laos", LV: "Latvia", LB: "Lebanon", LS: "Lesotho", LR: "Liberia", LY: "Libyan Arab Jamahiriya", LI: "Liechtenstein", LT: "Lithuania", LU: "Luxembourg", MO: "Macao", MK: "Macedonia", MG: "Madagascar", MW: "Malawi", MY: "Malaysia", MV: "Maldives", ML: "Mali", MT: "Malta", MH: "Marshall Islands", MQ: "Martinique", MR: "Mauritania", MU: "Mauritius", YT: "Mayotte", MX: "Mexico", FM: "Micronesia, Federated States of", MD: "Moldova", MC: "Monaco", MN: "Mongolia", ME: "Montenegro", MS: "Montserrat", MA: "Morocco", MZ: "Mozambique", MM: "Myanmar", NA: "Namibia", NR: "Nauru", NP: "Nepal", NL: "Netherlands", AN: "Netherlands Antilles", NC: "New Caledonia", NZ: "New Zealand", NI: "Nicaragua", NE: "Niger", NG: "Nigeria", NU: "Niue", NF: "Norfolk Island", MP: "Northern Mariana Islands", NO: "Norway", OM: "Oman", PK: "Pakistan", PW: "Palau", PS: "Palestine, State of", PA: "Panama", PG: "Papua New Guinea", PY: "Paraguay", PE: "Peru", PH: "Philippines", PN: "Pitcairn", PL: "Poland", PT: "Portugal", PR: "Puerto Rico", QA: "Qatar", RO: "Romania", RU: "Russia", RW: "Rwanda", RE: "Reunion", BL: "Saint Barthelemy", SH: "Saint Helena, Ascension and Tristan Da Cunha", KN: "Saint Kitts and Nevis", LC: "Saint Lucia", MF: "Saint Martin", PM: "Saint Pierre and Miquelon", VC: "Saint Vincent and the Grenadines", WS: "Samoa", SM: "San Marino", ST: "Sao Tome and Principe", SA: "Saudi Arabia", SN: "Senegal", RS: "Serbia", SC: "Seychelles", SL: "Sierra Leone", SG: "Singapore", SK: "Slovakia", SI: "Slovenia", SB: "Solomon Islands", SO: "Somalia", ZA: "South Africa", GS: "South Georgia and the South Sandwich Islands", SS: "South Sudan", SX: "Sint Maarten", ES: "Spain", LK: "Sri Lanka", SD: "Sudan", SR: "Suriname", SJ: "Svalbard and Jan Mayen", SZ: "Swaziland", SE: "Sweden", CH: "Switzerland", SY: "Syrian Arab Republic", TW: "Taiwan", TJ: "Tajikistan", TZ: "Tanzania, United Republic of", TH: "Thailand", TL: "Timor-Leste", TG: "Togo", TK: "Tokelau", TO: "Tonga", TT: "Trinidad and Tobago", TN: "Tunisia", TR: "Turkey", TM: "Turkmenistan", TC: "Turks and Caicos Islands", TV: "Tuvalu", UG: "Uganda", UA: "Ukraine", AE: "United Arab Emirates", GB: "United Kingdom", US: "United States", UM: "United States Minor Outlying Islands", UY: "Uruguay", UZ: "Uzbekistan", VU: "Vanuatu", VE: "Venezuela, Bolivarian Republic of", VN: "Vietnam", VG: "Virgin Islands, British", VI: "Virgin Islands, U.S.", WF: "Wallis and Futuna", YE: "Yemen", ZM: "Zambia", ZW: "Zimbabwe" }; + }, 79467: (e2, t2, i2) => { + "use strict"; + var n2, r2; + Object.defineProperty(t2, "__esModule", { value: true }), t2.ExpressionTypeDurationOptions = void 0; + const o = i2(31635), a = o.__importStar(i2(63824)), s = i2(63824), l = o.__importDefault(i2(50964)), u = i2(80295), d = i2(65615), c = i2(55909), p = i2(33951); + class _ extends d.BaseExpressionTypeCollectionOptions { + static create(e3, t3) { + return new this(t3).invokeOptionsCallback(e3); + } + constructor(e3) { + super(e3), this._durationFacets = new l.default(), (0, u.makeUnenumerable)(this, "_durationFacets"), (0, u.makeUnenumerable)(this, "_durationStyle"); + } + _setFromOptions(e3) { + super._setFromOptions(e3), this._setOptionIfSet(this.setDurationStyle, e3.durationStyle, "_durationStyle"); + } + get isExpressionTypeDurationOptions() { + return true; + } + get className() { + return "ExpressionTypeDurationOptions"; + } + get facets() { + return this._durationFacets; + } + set facets(e3) { + this._durationFacets = p.ParameterValidator.expectTrue(e3 && true === e3.isDurationFacets, e3, "DurationFacets", () => c.ParameterInfo.createPropertySet(this.className, "facets", "value")); + } + _getDefaultTextForDisplay() { + return this.defaultText && !this.defaultToExpression ? a.getSearchStringFromLiteral(this.defaultText) : this.defaultText; + } + get min() { + return this.facets.minVal / 1e3; + } + get max() { + return this.facets.maxVal / 1e3; + } + get durationStyle() { + return this._durationStyle; + } + set durationStyle(e3) { + this._durationStyle = p.ParameterValidator.expectObject(e3, () => c.ParameterInfo.createPropertySet(this.className, "durationStyle", "value")); + } + setDurationStyle(e3) { + return this.durationStyle = e3, this; + } + } + t2.ExpressionTypeDurationOptions = _, o.__decorate([(0, u.enumerable)(true), o.__metadata("design:type", "function" == typeof (n2 = void 0 !== l.default && l.default) ? n2 : Object), o.__metadata("design:paramtypes", [Object])], _.prototype, "facets", null), o.__decorate([(0, u.enumerable)(true), o.__metadata("design:type", "function" == typeof (r2 = void 0 !== s.IDurationStyle && s.IDurationStyle) ? r2 : Object), o.__metadata("design:paramtypes", [Object])], _.prototype, "durationStyle", null); + }, 79516: (e2, t2) => { + "use strict"; + var i2; + Object.defineProperty(t2, "__esModule", { value: true }), t2.AlertTypeEnum = void 0, (function(e3) { + e3.info = "info", e3.error = "error"; + })(i2 || (t2.AlertTypeEnum = i2 = {})); + }, 79519: (e2, t2) => { + "use strict"; + var i2, n2, r2, o, a, s; + Object.defineProperty(t2, "__esModule", { value: true }), t2.SchemaSource = t2.JsonSchemaProcessingWarning = t2.JsonSchemaProcessingFailure = t2.JsonSchemaUsage = t2.CustomJsonContext = t2.CustomJsonNamespace = void 0, (function(e3) { + e3.architect = "architect", e3.architectFlow = "architectFlow", e3.botConnector = "botConnector", e3.composerScript = "composerScript", e3.conversationAttribute = "conversationAttribute", e3.dataAction = "dataAction", e3.decisionTable = "decisionTable", e3.externalContact = "externalContact", e3.structuredParticipantData = "structuredParticipantData", e3.userDefined = "userDefined", e3.worktype = "worktype"; + })(i2 || (t2.CustomJsonNamespace = i2 = {})), (function(e3) { + e3.error = "error", e3.input = "input", e3.none = "none", e3.output = "output", e3.record = "record", e3.schemaData = "schemaData"; + })(n2 || (t2.CustomJsonContext = n2 = {})), (function(e3) { + e3[e3.none = 0] = "none", e3[e3.error = 1] = "error", e3[e3.input = 2] = "input", e3[e3.output = 4] = "output"; + })(r2 || (t2.JsonSchemaUsage = r2 = {})), (function(e3) { + e3.failureBadComparison = "failureBadComparison", e3.failureGeneric = "failureGeneric", e3.failureDefinitionNameNotFound = "failureDefinitionNameNotFound", e3.failureMappedDataTypeUnavailableToFlowType = "failureMappedDataTypeUnavailableToFlowType", e3.failureNoSchema = "failureNoSchema", e3.failureUnableToDetermineIdentifierSuffix = "failureUnableToDetermineIdentifierSuffix", e3.failureUnableToDetermineRootType = "failureUnableToDetermineRootType", e3.failureUnableToMapSchemaPropertyToDataType = "failureUnableToMapSchemaPropertyToDataType", e3.failureUnsupportedDssSchemaVersion = "failureUnsupportedDssSchemaVersion"; + })(o || (t2.JsonSchemaProcessingFailure = o = {})), (function(e3) { + e3.warningGeneric = "warningGeneric", e3.warningNoProperties = "warningNoProperties"; + })(a || (t2.JsonSchemaProcessingWarning = a = {})), (function(e3) { + e3.aiGuide = "aiGuide"; + })(s || (t2.SchemaSource = s = {})); + }, 79537: (e2, t2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.getAuthenticationFailureReasons = void 0; + t2.getAuthenticationFailureReasons = ["GeneralError", "SignInFieldRequired", "SuccessFieldRequired", "ChannelNotSupported"]; + }, 79585: (e2, t2, i2) => { + const n2 = i2(10798), r2 = i2(4648).default, o = i2(95712), a = i2(36019).default; + function s() { + } + s.prototype.getWrapupCodes = function(e3) { + e3 = e3 || {}; + const t3 = n2.isFeatureAvailable(r2.divisionedWrapupCodes) ? o.getWrapupCodesDivisionView : o.getWrapupCodes; + return a.build(t3).queryParams(e3.isConfigListSearchParams ? e3.getSearchQueryParams() : e3).call(); + }, s.prototype.getWrapupCode = function(e3) { + const t3 = n2.isFeatureAvailable(r2.divisionedWrapupCodes) ? o.getWrapupCodeDivisionView : o.getWrapupCode; + return a.build(t3).templateParams({ id: e3 }).call(); + }, s.prototype.getWrapupCode.api = o.getWrapupCode, s.prototype.getWrapupCodesListView = function(e3) { + return a.build(o.getWrapupCodes).queryParams(e3 || {}).call(); + }, e2.exports = new s(); + }, 79608: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(20692)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "externalContactCollection"; + } + get initialValue() { + return this._initialValue; + } + get displayTypeName() { + return "ArchVariableExternalContactCollection"; + } + get isArchVariableExternalContactCollection() { + return true; + } + } + t2.default = r2; + }, 79627: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.GuideVersionViewModel = void 0; + const n2 = i2(31635), r2 = n2.__importDefault(i2(92140)), o = n2.__importDefault(i2(57606)), a = i2(79519); + t2.GuideVersionViewModel = class { + constructor(e3) { + if (this._schemasNotLoaded = false, this._model = e3, this._schemasNotLoaded = true, this._model.inputs && this._model.outputs) { + this._schemasNotLoaded = false; + const e4 = { properties: {}, required: [] }, t3 = { properties: {}, required: [] }; + r2.default.each(this._model.inputs, (t4) => { + r2.default.isObject(t4) && (e4.properties[t4.name] = Object.assign(Object.assign({}, t4), { source: a.SchemaSource.aiGuide })); + }), r2.default.each(this._model.outputs, (e5) => { + r2.default.isObject(e5) && (t3.properties[e5.name] = Object.assign(Object.assign({}, e5), { source: a.SchemaSource.aiGuide }), t3.required.push(e5.name)); + }), this._inputSchema = new o.default(e4, true), this._outputSchema = new o.default(t3, false); + } else this._schemasNotLoaded = true; + } + get className() { + return "GuideVersionViewModel"; + } + get isBaseClass() { + return false; + } + get id() { + return this._model.id; + } + get name() { + return this._model.version; + } + get label() { + return this.name; + } + get version() { + return this._model.version; + } + get inputSchema() { + return this._inputSchema; + } + get outputSchema() { + return this._outputSchema; + } + get schemasNotLoaded() { + return this._schemasNotLoaded; + } + }; + }, 79635: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importDefault(i2(92140)), o = n2.__importDefault(i2(87675)), a = i2(82632), s = n2.__importDefault(i2(37873)), l = i2(73198).default; + class u extends s.default { + constructor(e3) { + super(e3); + } + _getCoreViewModelTyped() { + return this._getCoreViewModel(); + } + get displayTypeName() { + return "ArchDataTypeJsonCustomSchema"; + } + get logStr() { + if (!this._getCoreViewModel()) return this.logStrTypeOnly; + const e3 = []; + return this._appendLogStrType(e3, this.displayTypeName), this._appendLogStrPart(e3, "Name", this.name, false, true), this._appendLogStrPart(e3, "Description", this.description, false, true), this.id === this.dataTypeId ? this._appendLogStrPart(e3, "Id/DataTypeId", this.id, false, true) : (this._appendLogStrPart(e3, "Id", this.id, false, true), this._appendLogStrPart(e3, "DataTypeId", this.dataTypeId, false, true)), this._appendLogStrPart(e3, "IsCollection", this.isCollection, true, true), this._appendLogStrPart(e3, "MinValue", this.minValue, true, true), this._appendLogStrPart(e3, "MinValueInclusive", this.minValueInclusive, true, true), this._appendLogStrPart(e3, "MaxValue", this.maxValue, true, true), this._appendLogStrPart(e3, "MaxValueInclusive", this.maxValueInclusive, true, true), this._appendLogStrPart(e3, "MinItems", this.minItems, true, true), this._appendLogStrPart(e3, "MaxItems", this.maxItems, true, true), this._appendLogStrPart(e3, "MinLength", this.minLength, true, true), this._appendLogStrPart(e3, "MaxLength", this.maxLength, true, true), this._appendLogStrPart(e3, "Properties", this.properties.length, true, true), this._createLogStrFromParts(e3); + } + get isArchDataTypeJsonCustomSchema() { + return true; + } + set maxItems(e3) { + const t3 = this._infoPropSet("newMaxItems", "maxItems"); + this._checkItemIsValidLiteralInt(t3, e3, true), r2.default.isNullOrUndefined(e3) ? e3 = void 0 : this._checkItemIsValidLiteralIntInRange(t3, e3, 0, l.defaultCollectionItemsMax), this._getCoreViewModelTyped().maxItems = e3; + } + get maxItems() { + return this._getCoreViewModelTyped().maxItems; + } + set minItems(e3) { + const t3 = this._infoPropSet("newMinItems", "minItems"); + this._checkItemIsValidLiteralInt(t3, e3, true), r2.default.isNullOrUndefined(e3) ? e3 = void 0 : this._checkItemIsValidLiteralIntInRange(t3, e3, 0, l.defaultCollectionItemsMax), this._getCoreViewModelTyped().minItems = e3; + } + get minItems() { + return this._getCoreViewModelTyped().minItems; + } + get minLength() { + return this._getCoreViewModelTyped().minLength; + } + set minLength(e3) { + const t3 = this._infoPropSet("newMinLength", "minLength"); + this._checkItemIsValidLiteralInt(t3, e3, true), r2.default.isNullOrUndefined(e3) ? e3 = void 0 : this._checkItemIsValidLiteralIntInRange(t3, e3, 0, l.maxStringLength), this._getCoreViewModelTyped().minLength = e3; + } + get maxLength() { + return this._getCoreViewModelTyped().maxLength; + } + set maxLength(e3) { + const t3 = this._infoPropSet("newMaxLength", "maxLength"); + this._checkItemIsValidLiteralInt(t3, e3, true), r2.default.isNullOrUndefined(e3) ? e3 = void 0 : this._checkItemIsValidLiteralIntInRange(t3, e3, 0, l.maxStringLength), this._getCoreViewModelTyped().maxLength = e3; + } + get isCollection() { + return this._getCoreViewModelTyped().isCollection; + } + set isRequired(e3) { + const t3 = this._infoPropSet("newIsRequiredValue", "isRequired"); + this._checkItemIsValidLiteralBool(t3, e3, false), this._getCoreViewModelTyped().isRequired = !!e3; + } + get isRequired() { + return this._getCoreViewModelTyped().isRequired; + } + set additionalProperties(e3) { + const t3 = this._infoPropSet("newAdditionalProperties", "additionalProperties"); + this._checkItemIsValidLiteralBool(t3, e3, true), this._getCoreViewModelTyped().additionalProperties = !!e3; + } + get additionalProperties() { + return this._getCoreViewModelTyped().additionalProperties; + } + set allowableValues(e3) { + const t3 = this._infoPropSet("newAllowableValues", "allowableValues"); + this._checkItem(t3, !(r2.default.isNullOrUndefined(e3) || r2.default.isArray(e3) && e3.length), "when setting allowable values, the value must either be null or undefined to clear allowable values or an array with at least one allowable value in it."), this._getCoreViewModelTyped().allowableValues = e3; + } + get allowableValues() { + return this._getCoreViewModelTyped().allowableValues; + } + set description(e3) { + const t3 = this._infoPropSet("newDescription", "description"); + this._checkItemIsValidLiteralString(t3, e3, false, a.propertyLimits.description.maxLength, true), this._getCoreViewModelTyped().description = e3; + } + get description() { + return this._getCoreViewModelTyped().description; + } + set name(e3) { + const t3 = this._infoPropSet("newName", "name"); + this._checkItemIsValidLiteralString(t3, e3, false, a.propertyLimits.name.maxLength, true), this._getCoreViewModelTyped().name = e3; + } + get name() { + return this._getCoreViewModelTyped().name; + } + set minValueInclusive(e3) { + const t3 = this._infoPropSet("newMinValueInclusiveValue", "minValueInclusive"); + this._checkItemIsValidLiteralBool(t3, e3, false), this._getCoreViewModelTyped().minValueInclusive = !!e3; + } + get minValueInclusive() { + return this._getCoreViewModelTyped().minValueInclusive; + } + set maxValueInclusive(e3) { + const t3 = this._infoPropSet("newMaxValueInclusiveValue", "maxValueInclusive"); + this._checkItemIsValidLiteralBool(t3, e3, false), this._getCoreViewModelTyped().maxValueInclusive = !!e3; + } + get maxValueInclusive() { + return this._getCoreViewModelTyped().maxValueInclusive; + } + get dataTypeId() { + return this._getCoreViewModelTyped().dataTypeId; + } + set minValue(e3) { + const t3 = this._infoPropSet("newMinValue", "minValue"); + r2.default.isNullOrUndefined(e3) ? e3 = void 0 : this._checkItem(t3, !r2.default.isActualNumber(e3), "when specifying a minimum value, it must be a numeric value, undefined or null"), this._getCoreViewModelTyped().minValue = e3; + } + get minValue() { + return this._getCoreViewModelTyped().minValue; + } + set maxValue(e3) { + const t3 = this._infoPropSet("newMaxValue", "maxValue"); + r2.default.isNullOrUndefined(e3) ? e3 = void 0 : this._checkItem(t3, !r2.default.isActualNumber(e3), "when specifying a minimum value, it must be a numeric value, undefined or null"), this._getCoreViewModelTyped().maxValue = e3; + } + get maxValue() { + return this._getCoreViewModelTyped().maxValue; + } + get properties() { + var e3; + const t3 = [], i3 = null === (e3 = this._getCoreViewModelTyped()) || void 0 === e3 ? void 0 : e3.propertiesSnapshot; + if (null == i3 ? void 0 : i3.length) for (const e4 of i3) t3.push(this.coreFactory.createArchWrapper(e4)); + return t3; + } + addProperty(e3, t3, i3) { + const n3 = o.default.createEmptyDataTypeDef(); + return n3.name = e3, n3.id = e3, n3.description = i3, t3.endsWith("_coll") ? (n3.dataTypeId = t3.slice(0, -5), n3.isCollection = true) : n3.dataTypeId = t3, this._getCoreViewModelTyped().addProperty(n3), this.coreFactory.createArchWrapper(n3); + } + } + t2.default = u; + }, 79694: function(e2, t2, i2) { + "use strict"; + var n2 = this && this.__read || function(e3, t3) { + var i3 = "function" == typeof Symbol && e3[Symbol.iterator]; + if (!i3) return e3; + var n3, r3, o2 = i3.call(e3), a = []; + try { + for (; (void 0 === t3 || t3-- > 0) && !(n3 = o2.next()).done; ) a.push(n3.value); + } catch (e4) { + r3 = { error: e4 }; + } finally { + try { + n3 && !n3.done && (i3 = o2.return) && i3.call(o2); + } finally { + if (r3) throw r3.error; + } + } + return a; + }, r2 = this && this.__spreadArray || function(e3, t3) { + for (var i3 = 0, n3 = t3.length, r3 = e3.length; i3 < n3; i3++, r3++) e3[r3] = t3[i3]; + return e3; + }; + Object.defineProperty(t2, "__esModule", { value: true }), t2.mergeWith = void 0; + var o = i2(9330); + t2.mergeWith = function() { + for (var e3 = [], t3 = 0; t3 < arguments.length; t3++) e3[t3] = arguments[t3]; + return o.merge.apply(void 0, r2([], n2(e3))); + }; + }, 79747: (e2, t2, i2) => { + const n2 = i2(81086), r2 = i2(57606).default; + function o(e3) { + o.baseConstructor.call(this), Object.defineProperties(this, { _model: { writable: true }, _errorSchema: { writable: true }, _inputSchema: { writable: true }, _successSchema: { writable: true }, isFlowCachedVersion: { value: false, writable: true }, schemasNotLoaded: { value: true, writable: true } }), this.model = e3, (e3.errorSchema && e3.errorSchemaUri || e3.inputSchema && e3.inputSchemaUri || e3.successSchema && e3.successSchemaUri) && (this.schemasNotLoaded = false); + } + n2.extend(o), Object.defineProperties(o.prototype, { actionId: { get: function() { + return this.model.actionId; + }, set: function(e3) { + this.model.actionId = e3; + } }, id: { get: function() { + return this.actionId; + } }, category: { get: function() { + return this.model.category; + }, set: function(e3) { + this.model.category = e3; + } }, errorSchema: { get: function() { + return this._errorSchema; + } }, getProperty: { value: function(e3, t3, i3) { + return t3 ? this.successSchema?.getProperty(e3, i3) : this.inputSchema?.getProperty(e3, i3); + } }, inputSchema: { get: function() { + return this._inputSchema; + } }, successSchema: { get: function() { + return this._successSchema; + } }, model: { get: function() { + return this._model; + }, set: function(e3) { + this._model = e3, this._model.errorSchema && (this._errorSchema = new r2(this._model.errorSchema, false)), this._model.inputSchema && (this._inputSchema = new r2(this._model.inputSchema, true)), this._model.successSchema && (this._successSchema = new r2(this._model.successSchema, false)); + } }, name: { get: function() { + return this.model.name; + }, set: function(e3) { + this.model.category = e3; + } }, label: { get: function() { + return this.model.name; + } }, result: { get: function() { + return this.model.result; + } } }), e2.exports = o; + }, 79750: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.bindCallback = void 0; + var n2 = i2(17474); + t2.bindCallback = function(e3, t3, i3) { + return n2.bindCallbackInternals(false, e3, t3, i3); + }; + }, 79771: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importDefault(i2(92140)), o = n2.__importDefault(i2(78432)), a = i2(38249), s = n2.__importDefault(i2(67336)), l = i2(50474); + class u extends s.default { + constructor(e3) { + super(e3), this._coreUserInputSettingsViewModel = e3, this._collectionHighConfidenceThreshold = this.coreFactory.createArchWrapper(e3.collectionHighConfidenceThreshold), this._collectionLowConfidenceThreshold = this.coreFactory.createArchWrapper(e3.collectionLowConfidenceThreshold), this._confirmationLowConfidenceThreshold = this.coreFactory.createArchWrapper(e3.confirmationLowConfidenceThreshold), this._confirmationRejectionsMax = this.coreFactory.createArchWrapper(e3.confirmationRejectionsMax), this._enableBargeIn = this.coreFactory.createArchWrapper(e3.enableBargeIn), this._enableAutomaticQuickReplies = this.coreFactory.createArchWrapper(e3.enableAutomaticQuickReplies), this._noInputsMax = this.coreFactory.createArchWrapper(e3.noInputsMax), this._noMatchesMax = this.coreFactory.createArchWrapper(e3.noMatchesMax), this._noInputsTimeout = this.coreFactory.createArchWrapper(e3.noInputsTimeout), this._speechToTextSpeechDetectionSensitivity = this.coreFactory.createArchWrapper(e3.speechToTextSpeechDetectionSensitivity), this._enableIntentClassificationHinting = this.coreFactory.createArchWrapper(e3.enableIntentClassificationHinting), this._speechToTextMaxSpeechTimeout = this.coreFactory.createArchWrapper(e3.speechToTextMaxSpeechTimeout), this._interDigitTimeout = this.coreFactory.createArchWrapper(e3.interDigitTimeout), this._dtmfTerminatingCharacter = this.coreFactory.createArchWrapper(e3.dtmfTerminatingCharacter), this._confirmationNoInputApology = this.coreFactory.createArchWrapper(e3.confirmationNoInputApologies.items[0]), this._confirmationNoMatchApology = this.coreFactory.createArchWrapper(e3.confirmationNoMatchApologies.items[0]), this._noInputApology = this.coreFactory.createArchWrapper(e3.noInputsApologies.items[0]), this._endOfSessionMessage = this.coreFactory.createArchWrapper(e3.endOfSessionMessage), this._noMatchApology = this.coreFactory.createArchWrapper(e3.noMatchApologies.items[0]), this._noToConfirmationApology = this.coreFactory.createArchWrapper(e3.noToConfirmationApologies.items[0]); + } + get displayTypeName() { + return "ArchSettingsUserInput"; + } + get isArchSettingsUserInput() { + return true; + } + get logStr() { + if (!this._getCoreViewModel()) return this.logStrTypeOnly; + const e3 = []; + return this._appendLogStrType(e3, this.displayTypeName), this._createLogStrFromParts(e3); + } + get collectionHighConfidenceThreshold() { + return this._collectionHighConfidenceThreshold; + } + get collectionLowConfidenceThreshold() { + return this._collectionLowConfidenceThreshold; + } + get confirmationLowConfidenceThreshold() { + return this._confirmationLowConfidenceThreshold; + } + get confirmationNoInputApology() { + return this._confirmationNoInputApology; + } + get confirmationNoMatchApology() { + return this._confirmationNoMatchApology; + } + get confirmationRejectionsMax() { + return this._confirmationRejectionsMax; + } + get enableBargeIn() { + return this._enableBargeIn; + } + get enableAutomaticQuickReplies() { + return this._enableAutomaticQuickReplies; + } + get noInputApology() { + return this._noInputApology; + } + get endOfSessionMessage() { + return this._endOfSessionMessage; + } + get noInputsMax() { + return this._noInputsMax; + } + get noInputsMaxExceededHandling() { + return a.archHandlingTypeConversion.getArchEnumHandlingForCoreHandling(this._coreUserInputSettingsViewModel.noInputsMaxExceededHandling.handlingType); + } + set noInputsMaxExceededHandling(e3) { + const t3 = this._infoPropSet("newHandlingTypeValue", "noInputsMaxExceededHandling"); + this._checkItemIsValidLiteralStringEnum(t3, e3, o.default.EVENTS_FLOW_ERROR_HANDLING_ALL); + const i3 = a.archHandlingTypeConversion.getCoreHandlingTypeForEnum(e3); + this._coreUserInputSettingsViewModel.noInputsMaxExceededHandling.handlingTypes.find((e4) => e4 === i3) || this.logItemErrorAndThrow(t3, `the handling type of '${e3}' is not available to be configured when no inputs max is exceeded.`), this.logNote(`setting the no inputs max exceeded handling type to '${e3}'.`), this._coreUserInputSettingsViewModel.noInputsMaxExceededHandling.handlingType = i3; + } + get noInputsMaxExceededTargetTask() { + const e3 = this._coreUserInputSettingsViewModel.parentFlow; + if (e3 && r2.default.isArray(e3.tasks) && e3.tasks.length) { + const t3 = e3.tasks.find((e4) => e4.id === this._coreUserInputSettingsViewModel.noInputsMaxExceededTaskId); + if (t3) return this.coreFactory.createArchWrapper(t3); + } + } + set noInputsMaxExceededTargetTask(e3) { + const t3 = this._infoPropSet("archTaskTarget", "noInputsMaxExceededTargetTask"); + if (this.logNote(`noInputsMaxExceededHandling: ${this.noInputsMaxExceededHandling}`), this._checkItem(t3, "task" !== this.noInputsMaxExceededHandling, 'the noInputMaxExceeded handling type must be set to "Jump to Reusable Task" to set the noInputMaxExceeded task path.'), !e3) return void this._coreUserInputSettingsViewModel.noInputsMaxExceededTask.setReference(null); + this._checkItem(t3, !e3 || !e3.isArchTask, "the noInputMaxExceeded task path must be an ArchTask."); + const i3 = this._coreUserInputSettingsViewModel.noInputsMaxExceededTask.getInvalidReferenceReason(e3._getCoreViewModel()); + this._checkItem(this._infoPropSet("archTaskTarget", "targetTask"), !(0, l.isNullOrUndefined)(i3), `targetTask is not valid as the noInputsMaxExceeded task path: ${i3}`), this.logNote("setting the noInputsMaxExceeded task path to " + e3.logStr), this._coreUserInputSettingsViewModel.noInputsMaxExceededTask.setReference(e3._getCoreViewModel()); + } + isNoInputsMaxExceededTypeAvailable(e3) { + return this._checkItemIsValidLiteralStringEnum(this._infoParm("errorHandlingEnumValue", "isNoInputsMaxExceededTypeAvailable"), e3, o.default.EVENTS_FLOW_ERROR_HANDLING_ALL), a.archHandlingTypeConversion.findHandlingTypeForValue(this._coreUserInputSettingsViewModel.noInputsMaxExceededHandlingTypes, e3); + } + get noInputsTimeout() { + return this._noInputsTimeout; + } + get speechToTextSpeechDetectionSensitivity() { + return this._speechToTextSpeechDetectionSensitivity; + } + get speechToTextMaxSpeechTimeout() { + return this._speechToTextMaxSpeechTimeout; + } + get enableIntentClassificationHinting() { + return this._enableIntentClassificationHinting; + } + get interDigitTimeout() { + return this._interDigitTimeout; + } + get dtmfTerminatingCharacter() { + return this._dtmfTerminatingCharacter; + } + get noMatchApology() { + return this._noMatchApology; + } + get noMatchesMax() { + return this._noMatchesMax; + } + get noToConfirmationApology() { + return this._noToConfirmationApology; + } + } + t2.default = u; + }, 79857: (e2, t2, i2) => { + const n2 = i2(32726), { dialogflowActionType: r2 } = i2(30801), o = i2(7401); + function a() { + Object.defineProperties(this, { _intentProbability: { writable: true } }), a.baseConstructor.apply(this, arguments); + } + n2.extend(a, r2, true), Object.defineProperties(a.prototype, { pasteReIdOrRename: { value: function(e3) { + a._super.pasteReIdOrRename.apply(this, arguments), this.intentProbability.pasteReIdOrRename(e3); + } }, pasteResolveOldToNewValues: { value: function(e3) { + a._super.pasteResolveOldToNewValues.apply(this, arguments), this.intentProbability.pasteResolveOldToNewValues(e3); + } }, intentProbability: { enumerable: true, get: function() { + return this._intentProbability; + }, set: function(e3) { + this._intentProbability = this.reviveItem(e3, o); + } } }), e2.exports = a; + }, 79896: (e2) => { + "use strict"; + e2.exports = require("fs"); + }, 79904: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importDefault(i2(39732)), o = n2.__importDefault(i2(41800)), a = n2.__importDefault(i2(83630)); + class s extends r2.default { + constructor({ id: e3, name: t3, description: i3, version: n3, generators: r3, partConfigurators: o2, resultExpressionType: a2, type: s2, expressionDefs: l, restrictToFlowTypeOrTypes: u, categoryIdentifierOrIdentifiers: d }) { + super(e3, t3, i3, n3, r3, o2, a2 = a2 || s2, { languageTag: "lower-case ietf language-tag" }, u, d, a2.getArchIcon()); + } + get className() { + return "BuilderPartContainerLanguageDef"; + } + isAvailableForFlow(e3) { + const t3 = null == e3 ? void 0 : e3.definition.supportsMoreThanOneLanguage; + return this.supportsLanguageTag && t3 && !this.supportsOutputMode; + } + get isBuilderPartContainerLanguageDef() { + return true; + } + get supportsLanguageTag() { + return true; + } + createBuilderPartViewModel(e3, t3, i3) { + const n3 = new o.default({ builderPartDefId: this.id, criteria: i3, version: this.version }); + return this.reviveItem(e3, t3, n3); + } + reviveItem(e3, t3, i3, n3) { + return new a.default({ builderViewModel: e3, owningExpressionViewModel: t3, builderPartModel: i3, reId: !!n3 }); + } + } + t2.default = s; + }, 79963: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.callbackManager = t2.CallbackManager = void 0; + const n2 = i2(31635).__importDefault(i2(92140)), r2 = i2(30801), o = i2(24032), a = i2(82915), s = i2(47957), l = i2(52124), u = i2(28195); + class d extends a.ScriptManager { + constructor() { + super("CallbackManager"), this.topic = (0, o.getTopic)("AllScriptsManager"), this.actionsForUsageSearch = [r2.createCallbackActionType], this.apiCallList = n2.default.partial(l.getScriptsForFeature, u.callback), this.dependencyContext = s.createCallback.selectedScript, this.scriptFeatureType = u.callback; + } + } + t2.CallbackManager = d, t2.callbackManager = new d(); + }, 80133: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(54063)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "cardCollection"; + } + get displayTypeName() { + return "ArchValueCardCollection"; + } + get isArchValueCardCollection() { + return true; + } + } + t2.default = r2; + }, 80142: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.min = void 0; + var n2 = i2(92070), r2 = i2(10281); + t2.min = function(e3) { + return n2.reduce(r2.isFunction(e3) ? function(t3, i3) { + return e3(t3, i3) < 0 ? t3 : i3; + } : function(e4, t3) { + return e4 < t3 ? e4 : t3; + }); + }; + }, 80145: (e2, t2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.default = { any_ResolveSlot_any: "Any_ONE resolveSlot(Any_ONE)", audio_AudioPlaybackOptions_Barge: "Audio_ONE audioPlaybackOptions(AnyPromptOrAudio_ONE,Boolean_ONE)", audio_AudioPlaybackOptions_Barge_Flush: "Audio_ONE audioPlaybackOptions(AnyPromptOrAudio_ONE,Boolean_ONE,Boolean_ONE)", audio_ToAudio_Prompt: "Audio_ONE toAudio(Prompt_ONE)", audio_ToAudio_VoiceSnippet: "Audio_ONE toAudio(VoiceSnippet_ONE)", audio_ToAudioBool_Bool: "Audio_ONE ToAudioBool(Boolean_ONE)", audio_ToAudioBool_Bool_FormatEnum: "Audio_ONE ToAudioBool(Boolean_ONE,BoolFormatEnum_ONE)", audio_ToAudioCurrency_Currency: "Audio_ONE ToAudioCurrency(Currency_ONE)", audio_ToAudioCurrency_Currency_FormatEnum: "Audio_ONE ToAudioCurrency(Currency_ONE,CurrencyFormat_ONE)", audio_ToAudioCurrency_Currency_Int: "Audio_ONE ToAudioCurrency(Currency_ONE,Long_ONE)", audio_ToAudioDate_Date: "Audio_ONE ToAudioDate(Date_ONE)", audio_ToAudioDate_Date_FormatEnum: "Audio_ONE ToAudioDate(Date_ONE,DateFormatEnum_ONE)", audio_ToAudioDate_DateTime_FormatEnum: "Audio_ONE ToAudioDate(DateTime_ONE,DateTimeFormatEnum_ONE)", audio_ToAudioDateTime_DateTime: "Audio_ONE ToAudioDateTime(DateTime_ONE)", audio_ToAudioDuration_Duration: "Audio_ONE ToAudioDuration(Duration_ONE)", audio_ToAudioNumber_Decimal: "Audio_ONE ToAudioNumber(Decimal_ONE)", audio_ToAudioNumber_Decimal_FormatEnum: "Audio_ONE ToAudioNumber(Decimal_ONE,NumberFormatEnum_ONE)", audio_ToAudioNumber_Decimal_FormatEnum_LangEnumStar: "Audio_ONE ToAudioNumber(Decimal_ONE,NumberFormatEnum_ONE,LanguageContextEnum_ONE...)", audio_ToAudioNumber_Decimal_Int: "Audio_ONE ToAudioNumber(Decimal_ONE,Long_ONE)", audio_ToAudioNumber_Decimal_LangEnumStar: "Audio_ONE ToAudioNumber(Decimal_ONE,LanguageContextEnum_ONE...)", audio_ToAudioNumber_Decimal_Int_LangEnumStar: "Audio_ONE ToAudioNumber(Decimal_ONE,Long_ONE,LanguageContextEnum_ONE...)", audio_ToAudioNumber_Int: "Audio_ONE ToAudioNumber(Long_ONE)", audio_ToAudioNumber_Int_FormatEnum: "Audio_ONE ToAudioNumber(Long_ONE,NumberFormatEnum_ONE)", audio_ToAudioNumber_Int_FormatEnum_LangEnumStar: "Audio_ONE ToAudioNumber(Long_ONE,NumberFormatEnum_ONE,LanguageContextEnum_ONE...)", audio_ToAudioNumberOrdinal_Int: "Audio_ONE ToAudioNumberOrdinal(Long_ONE)", audio_ToAudioNumberOrdinal_Int_LangEnumStar: "Audio_ONE ToAudioNumberOrdinal(Long_ONE,LanguageContextEnum_ONE...)", audio_ToAudioPercent_Int: "Audio_ONE ToAudioPercent(Long_ONE)", audio_ToAudioPercent_Decimal: "Audio_ONE ToAudioPercent(Decimal_ONE)", audio_ToAudioPhoneNumber_PhoneNumber: "Audio_ONE ToAudioPhoneNumber(PhoneNumber_ONE)", audio_ToAudioPhoneNumber_String: "Audio_ONE ToAudioPhoneNumber(String_ONE)", audio_ToAudioPhoneNumber_PhoneNumber_FormatEnum: "Audio_ONE ToAudioPhoneNumber(PhoneNumber_ONE,PhoneNumberFormatEnum_ONE)", audio_ToAudioPhoneNumber_PhoneNumber_String: "Audio_ONE ToAudioPhoneNumber(PhoneNumber_ONE,String_ONE)", audio_ToAudioTTS_String: "Audio_ONE ToAudioTTS(String_ONE)", audio_ToAudioTTS_String_FormatEnum: "Audio_ONE ToAudioTTS(String_ONE,StringFormat_ONE)", audio_ToAudioTime_DateTime: "Audio_ONE ToAudioTime(DateTime_ONE)", audio_ToAudioTime_DateTime_FormatEnum: "Audio_ONE ToAudioTime(DateTime_ONE,TimeFormatEnum_ONE)", duration_RoundUp_Duration: "Duration_ONE RoundUp(Duration_ONE)", duration_MakeDuration_Int_Int_Int_Int: "Duration_ONE makeDuration(Long_ONE,Long_ONE,Long_ONE,Long_ONE)" }; + }, 80219: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importDefault(i2(92140)), o = n2.__importDefault(i2(25298)), a = n2.__importDefault(i2(73198)), s = i2(30801); + class l extends o.default { + constructor(e3) { + super(e3), this._currentIndex = this.coreFactory.createArchWrapper(e3.currentIndex), this._maxLoopCount = this.coreFactory.createArchWrapper(e3.maxLoopCount); + } + get _actionTypeId() { + return s.loopUntilActionType; + } + _getArchNamedValue(e3, t3) { + return this.coreFactory.createArchWrapper({ name: e3, value: t3, model: { isDataPair: true } }); + } + get displayTypeName() { + return this._scriptingName; + } + addUntilCase(e3, t3) { + const i3 = this._infoParm("untilCaseName", "addUntilCase"); + this._checkItemIsValidLiteralString(i3, e3); + const n3 = this._getOutputByName(e3, true, true); + this._checkItem(i3, !!n3, `you cannot add an until case with the name '${e3}' because there is already another until case with that name and until case names should be unique on a loop until action.`), this._checkItemIsValidLiteralString(this._infoParm("untilCaseExpression", "addUntilCase"), t3, true); + const o2 = this._getCoreViewModel().addUntilCase(e3, a.default.false), s2 = this._getArchNamedValue(o2.label, o2.value); + return r2.default.isString(t3) && s2.value.setExpression(t3), s2; + } + get currentIndex() { + return this._currentIndex; + } + get isArchActionLoopUntil() { + return true; + } + get maxLoopCount() { + return this._maxLoopCount; + } + get untilCases() { + const e3 = this._getCoreViewModel().untilCases.items, t3 = []; + return r2.default.each(e3, (e4) => { + const i3 = this._getOutputById(e4.referenceId, true); + t3.push(this._getArchNamedValue(i3 ? i3.name : "", e4.value)); + }), t3; + } + } + t2.default = l; + }, 80251: (e2, t2, i2) => { + "use strict"; + const n2 = i2(31635), r2 = n2.__importDefault(i2(942)), o = i2(21647), a = i2(80428), s = i2(85251), l = i2(12179), u = n2.__importDefault(i2(97891)), d = i2(47957); + class c extends r2.default { + constructor(e3, t3) { + super(e3.parentFlow, e3), this._loadModel(t3); + } + static get managedProperties() { + return r2.default.createManagedProperties({ searchFieldPropertyName: "findId", searchFieldOptionsCallback: (e3) => e3.facets.setLengthForUuid(), searchFieldLabel: d.findActions.getJourneySegment.idLabel, searchResultLabel: d.findActions.getJourneySegment.resultLabel, searchResultExpressionOptions: o.ExpressionTypeComplexOptions.create(), searchResultItemType: a.expressionTypeNames.journeySegment }); + } + } + c.info = u.default.createActionInfo({ actionClass: c, canBeInTask: true, helpTopic: l.helpTopics.actions.getJourneySegment, modelClass: s.GetJourneySegmentActionModel, name: d.actions.getJourneySegment, scriptingName: "ArchActionGetJourneySegment" }), t2.A = c; + }, 80259: (e2, t2, i2) => { + function n2() { + this.id = void 0, this.name = void 0, n2.baseConstructor.apply(this, arguments); + } + i2(45214).extend(n2, "EmergencyGroup"), Object.defineProperties(n2.prototype, { displayName: { get: function() { + return this.name; + }, set: function(e3) { + this.name = e3; + } }, label: { get: function() { + return this.name; + }, set: function(e3) { + this.name = e3; + } } }), e2.exports = n2; + }, 80295: (e2, t2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.enumerable = function(e3) { + return (t3, i2, n2) => { + n2.enumerable = e3; + }; + }, t2.makeUnenumerable = function(e3, t3) { + Object.getOwnPropertyDescriptor(e3, t3) ? Object.defineProperty(e3, t3, { enumerable: false }) : Object.defineProperty(e3, t3, { enumerable: false, writable: true }); + }; + }, 80344: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(93523)), r2 = i2(30801); + class o extends n2.default { + constructor(e3) { + super(e3); + } + get _actionTypeId() { + return r2.getJourneySessionsByExternalContactActionType; + } + get displayTypeName() { + return this._scriptingName; + } + get isArchActionGetJourneySessionsByExternalContact() { + return true; + } + get findResult() { + return this._findResult; + } + } + t2.default = o; + }, 80408: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(84050); + class r2 extends n2.NameIdDescriptionModel { + constructor(e3) { + super(e3); + } + } + t2.default = r2; + }, 80428: (e2, t2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.expressionTypeNames = void 0, t2.expressionTypeNames = { agentScorePair: "cpx_agent_score_pair", any: "any", anyAudio: "apa", anyComplex: "acp", assignedCustomerIntent: "aci", assignedCustomerSegment: "acs", audio: "aud", boolean: "bln", campaign: "cam", card: "crd", carousel: "crs", chatGuest: "cpx_chat_guest", choice: "chc", chooser: "chs", communication: "com", contact: "con", contactList: "cnl", currency: "cur", customerIntent: "cin", customerSegment: "csg", date: "dat", dateTime: "dtm", decimal: "dec", digitalAudio: "dia", division: "dvn", draftEmail: "jsn__architect::draft_email", draftEmailAddress: "jsn__architect::draft_email_address", draftEmailAttachment: "jsn__architect::draft_email_attachment", duration: "dur", email: "cpx_email", emailAddress: "cpx_email_address", emailAttachment: "cpx_email_attachment", emergencyGroup: "emg", emptyJson: "jsn__architect::empty_json", externalAddress: "cpx_external_address", externalAppleInfo: "cpx_external_apple_info", externalContact: "cpx_external_contact", externalFacebookId: "cpx_external_facebook_id", externalFacebookInfo: "cpx_external_facebook_info", externalIdInfo: "cpx_external_id_info", externalInstagramInfo: "cpx_external_instagram_info", externalInstagramScopedId: "cpx_external_instagram_scoped_id", externalLineId: "cpx_external_line_id", externalLineInfo: "cpx_external_line_info", externalLinkConfiguration: "cpx_external_link_configuration", externalOrganization: "cpx_external_organization", externalPhoneNumber: "cpx_external_phone_number", externalSource: "cpx_external_source", externalTwitterInfo: "cpx_external_twitter_info", externalWhatsAppInfo: "cpx_external_whats_app_info", file: "fil", formInput: "fip", grammar: "gmr", group: "grp", image: "img", integer: "int", issueInfo: "jsn__architect::issue_info", journeyAction: "cpx_journey_action", journeyActionMap: "cpx_journey_action_map", journeyApp: "cpx_journey_app", journeyBrowser: "cpx_journey_browser", journeyCampaign: "cpx_journey_campaign", journeyContext: "cpx_journey_context", journeyCustomEventAttribute: "cpx_journey_custom_event_attribute", journeyCustomEventAttributeList: "cpx_journey_custom_event_attribute_list", journeyCustomer: "cpx_journey_customer", journeyCustomerSession: "cpx_journey_customer_session", journeyDevice: "cpx_journey_device", journeyGeolocation: "cpx_journey_geolocation", journeyNetworkConnectivity: "cpx_journey_network_connectivity", journeyOutcome: "cpx_journey_outcome", journeyOutcomeScore: "cpx_journey_outcome_score", journeyPage: "cpx_journey_page", journeyReferrer: "cpx_journey_referrer", journeySdkLibrary: "cpx_journey_sdk_library", journeySegment: "cpx_journey_segment", journeySession: "cpx_journey_session", journeySessionOutcomeAchievement: "cpx_journey_session_outcome_achievement", journeySessionSegmentAssignment: "cpx_journey_session_segment_assignment", json: "jsn", knowledgeBaseDocument: "kbd", knowledgeBaseDocumentCategory: "cpx_knowledge_base_document_category", knowledgeBaseDocumentLabel: "cpx_knowledge_base_document_label", languageSkill: "lac", lineItem: "lni", listPicker: "lpk", listPickerItem: "lpi", listPickerSection: "lps", messageAddressInfo: "cpx_message_address_info", messageStickerInfo: "cpx_message_sticker_info", notSet: "nts", phoneNumber: "phn", prompt: "pmt", queue: "que", quickReplies: "qrl", responseAsset: "rpa", schedule: "sch", scheduleGroup: "scg", shippingOption: "sho", shortMessage: "cpx_short_message", skill: "skl", skillExpressionFilter: "jsn__architect::skill_expression_filter", string: "str", stringKeyValuePair: "cpx_string_key_value_pair", surveyAnswerOption: "sao", surveyForm: "sfo", surveyQuestion: "squ", surveyQuestionGroup: "sqg", time: "tim", timePicker: "tpk", timeslot: "tsl", userQueue: "usr", utilizationLabel: "cul", video: "vid", voiceSnippet: "cpx_voice_snippet", voicemailSnippet: "cpx_voicemail_snippet", wheelPicker: "wpk", wheelPickerItem: "wpi", workbin: "cpx_workbin", workitem: "cpx_workitem", workitemEventData: "jsn__architect::workitem_event_data", workitemEventRule: "jsn__architect::workitem_event_rule", worktypeStatus: "cpx_worktype_status", wrapupCode: "wrc" }; + }, 80434: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.BaseActionWithFailureOutputsNoInputNoMatchModel = void 0; + const n2 = i2(31635), r2 = i2(5894), o = n2.__importDefault(i2(7401)), a = i2(80295), s = i2(80295); + class l extends r2.BaseFailureOutputsActionModel { + constructor(e3) { + super(e3), (0, s.makeUnenumerable)(this, "_customizeNoInput"), (0, s.makeUnenumerable)(this, "_customizeNoMatch"), (0, s.makeUnenumerable)(this, "_noInputs"), (0, s.makeUnenumerable)(this, "_noInputReprompts"), (0, s.makeUnenumerable)(this, "_noMatches"), (0, s.makeUnenumerable)(this, "_noMatchReprompts"), (0, s.makeUnenumerable)(this, "_voiceEndOfInputTimeout"); + } + get customizeNoInput() { + return this._customizeNoInput; + } + set customizeNoInput(e3) { + this._customizeNoInput = this.reviveItem(e3, o.default); + } + get customizeNoMatch() { + return this._customizeNoMatch; + } + set customizeNoMatch(e3) { + this._customizeNoMatch = this.reviveItem(e3, o.default); + } + get noInput() { + return this.noInputs && this.noInputs[0]; + } + set noInput(e3) { + this.noInputs = [e3]; + } + get noMatch() { + return this.noMatches && this.noMatches[0]; + } + set noMatch(e3) { + this.noMatches = [e3]; + } + get noInputs() { + return this._noInputs; + } + set noInputs(e3) { + this._noInputs = this.reviveArray(e3, o.default); + } + get noInputReprompts() { + return this._noInputReprompts; + } + set noInputReprompts(e3) { + this._noInputReprompts = this.reviveItem(e3, o.default); + } + get noMatches() { + return this._noMatches; + } + set noMatches(e3) { + this._noMatches = this.reviveArray(e3, o.default); + } + get noMatchReprompts() { + return this._noMatchReprompts; + } + set noMatchReprompts(e3) { + this._noMatchReprompts = this.reviveItem(e3, o.default); + } + get voiceEndOfInputTimeout() { + return this._voiceEndOfInputTimeout; + } + set voiceEndOfInputTimeout(e3) { + this._voiceEndOfInputTimeout = this.reviveItem(e3, o.default); + } + pasteResolveOldToNewValues(e3) { + super.pasteResolveOldToNewValues(e3), this.customizeNoInput && this.customizeNoInput.pasteResolveOldToNewValues(e3), this.customizeNoMatch && this.customizeNoMatch.pasteResolveOldToNewValues(e3), this.noInputs && this.noInputs.forEach((t3) => t3.pasteResolveOldToNewValues(e3)), this.noInputReprompts && this.noInputReprompts.pasteResolveOldToNewValues(e3), this.noMatches && this.noMatches.forEach((t3) => t3.pasteResolveOldToNewValues(e3)), this.noMatchReprompts && this.noMatchReprompts.pasteResolveOldToNewValues(e3), this.voiceEndOfInputTimeout && this.voiceEndOfInputTimeout.pasteResolveOldToNewValues(e3); + } + pasteReIdOrRename(e3) { + super.pasteReIdOrRename(e3), this.customizeNoInput && this.customizeNoInput.pasteReIdOrRename(e3), this.customizeNoMatch && this.customizeNoMatch.pasteReIdOrRename(e3), this.noInputs && this.noInputs.forEach((t3) => t3.pasteReIdOrRename(e3)), this.noInputReprompts && this.noInputReprompts.pasteReIdOrRename(e3), this.noMatches && this.noMatches.forEach((t3) => t3.pasteReIdOrRename(e3)), this.noMatchReprompts && this.noMatchReprompts.pasteReIdOrRename(e3), this.voiceEndOfInputTimeout && this.voiceEndOfInputTimeout.pasteReIdOrRename(e3); + } + } + t2.BaseActionWithFailureOutputsNoInputNoMatchModel = l, n2.__decorate([(0, a.enumerable)(true), n2.__metadata("design:type", Object), n2.__metadata("design:paramtypes", [Object])], l.prototype, "customizeNoInput", null), n2.__decorate([(0, a.enumerable)(true), n2.__metadata("design:type", Object), n2.__metadata("design:paramtypes", [Object])], l.prototype, "customizeNoMatch", null), n2.__decorate([(0, a.enumerable)(false), n2.__metadata("design:type", Object), n2.__metadata("design:paramtypes", [Object])], l.prototype, "noInput", null), n2.__decorate([(0, a.enumerable)(false), n2.__metadata("design:type", Object), n2.__metadata("design:paramtypes", [Object])], l.prototype, "noMatch", null), n2.__decorate([(0, a.enumerable)(true), n2.__metadata("design:type", Object), n2.__metadata("design:paramtypes", [Object])], l.prototype, "noInputs", null), n2.__decorate([(0, a.enumerable)(true), n2.__metadata("design:type", Object), n2.__metadata("design:paramtypes", [Object])], l.prototype, "noInputReprompts", null), n2.__decorate([(0, a.enumerable)(true), n2.__metadata("design:type", Object), n2.__metadata("design:paramtypes", [Object])], l.prototype, "noMatches", null), n2.__decorate([(0, a.enumerable)(true), n2.__metadata("design:type", Object), n2.__metadata("design:paramtypes", [Object])], l.prototype, "noMatchReprompts", null), n2.__decorate([(0, a.enumerable)(true), n2.__metadata("design:type", Object), n2.__metadata("design:paramtypes", [Object])], l.prototype, "voiceEndOfInputTimeout", null); + }, 80496: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.postDigitalBotFlowTurns = t2.postDigitalBotFlowLaunch = void 0; + const n2 = i2(17599), r2 = i2(13440), o = i2(36019).default; + t2.postDigitalBotFlowLaunch = o.request("POST", "{public-api.apps}/api/v2/textbots/botflows/sessions", n2), t2.postDigitalBotFlowTurns = o.request("POST", "{public-api.apps}/api/v2/textbots/botflows/sessions/{sessionId}/turns", r2); + }, 80517: (e2, t2, i2) => { + const n2 = i2(99505).A, r2 = i2(59964), o = i2(83462), a = i2(92314), s = i2(36019).default; + function l() { + } + const u = new l(); + l.prototype.getCurrentUser = s.request("GET", "{public-api.apps}/api/v2/users/me?expand=token,authorization", o), l.prototype.getCurrentToken = s.request("GET", "{public-api.apps}/api/v2/tokens/me", r2), l.prototype.getUser = s.request("GET", "{public-api.apps}/api/v2/users/{id}", o), l.prototype.getUserRolesAndPermissions = s.request("GET", "{public-api.apps}/api/v2/users/{id}/roles", n2), l.prototype.getUsers = s.request("POST", "{public-api.apps}/api/v2/users/search", a), u.getUsers.addOptions({ ignoreBadResponse: true }), e2.exports = u; + }, 80568: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.resolvePartsParametersAndGetText = function(e3, t3, i3, r3) { + const a = []; + return t3.length ? (n2.default.each(t3, (t4) => { + const s = o(e3, t4, i3, r3); + n2.default.isString(s) && a.push(s); + }), a) : a; + }, t2.resolveParametersAndGetText = o, t2.resolveParametersAndSetExpressionValue = function(e3, t3, i3, o2) { + var a, s, l, u; + if (!(null == i3 ? void 0 : i3.parameters)) return false; + let d = i3.parameters.text; + if (n2.default.isString(d)) return t3.setAsLiteral(d), true; + if (o2) { + const e4 = i3.parameters.templateNoOverlaySection; + if (e4) { + const a2 = i3.parameters.templateNoOverlaySectionKey; + if (a2) { + const i4 = r2(o2.idExpressionText).noOverlay; + if (i4 && i4[e4] && (d = i4[e4][a2], n2.default.isString(d))) return t3.setAsLiteral(d), true; + } + } else if (1 === Object.keys(i3.parameters).length && "reference" !== Object.keys(i3.parameters)[0]) { + const e5 = Object.keys(i3.parameters)[0]; + if (e5) { + const a2 = r2(o2.idExpressionText)[e5]; + if (n2.default.isString(a2)) return d = a2, t3.setAsLiteral(d), true; + const s2 = a2[i3.parameters[e5]]; + if (s2 && (d = s2, n2.default.isString(d))) return t3.setAsLiteral(d), true; + } + } + } + switch (i3.parameters.reference) { + case "$askResultVariable": + if (d = null === (l = null === (s = null === (a = e3.owningExpression.parent) || void 0 === a ? void 0 : a.askResult) || void 0 === s ? void 0 : s.variableReference) || void 0 === l ? void 0 : l.text, n2.default.isString(d)) return t3.text = d, true; + break; + case "$selectedSlotName": + if (d = (null === (u = e3.owningExpression.parent) || void 0 === u ? void 0 : u.selectedSlot) || r2(e3.owningExpression.parentFlow.defaultLanguage).askForSlot.pleaseEnterSlotNameHere, n2.default.isString(d)) return t3.setAsLiteral(d), true; + } + return false; + }; + const n2 = i2(31635).__importDefault(i2(92140)), r2 = i2(21733); + function o(e3, t3, i3, o2) { + var a, s, l, u; + if (!(null == t3 ? void 0 : t3.parameters)) return; + let d = t3.parameters.text; + if (n2.default.isString(d)) return d; + if (i3) { + const e4 = t3.parameters.templateNoOverlaySection; + if (e4) { + const o3 = t3.parameters.templateNoOverlaySectionKey; + if (o3) { + const t4 = r2(i3.idExpressionText).noOverlay; + if (t4 && t4[e4] && (d = t4[e4][o3], n2.default.isString(d))) return d; + } + } else if (1 === Object.keys(t3.parameters).length && "reference" !== Object.keys(t3.parameters)[0]) { + const e5 = Object.keys(t3.parameters)[0]; + if (e5) { + const o3 = r2(i3.idExpressionText)[e5]; + if (n2.default.isString(o3)) return o3; + const a2 = o3[t3.parameters[e5]]; + if (a2 && (d = a2, n2.default.isString(d))) return d; + } + } + } + switch (t3.parameters.reference) { + case "$askResultVariable": + if (d = null === (l = null === (s = null === (a = e3.owningExpression.parent) || void 0 === a ? void 0 : a.askResult) || void 0 === s ? void 0 : s.variableReference) || void 0 === l ? void 0 : l.text, n2.default.isString(d)) return o2 ? `{{${d}}}` : d; + break; + case "$selectedSlotName": + if (d = (null === (u = e3.owningExpression.parent) || void 0 === u ? void 0 : u.selectedSlot) || r2(e3.owningExpression.parentFlow.defaultLanguage).askForSlot.pleaseEnterSlotNameHere, n2.default.isString(d)) return d; + } + } + }, 80570: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = i2(96618), o = i2(28562), a = n2.__importDefault(i2(73198)), s = n2.__importStar(i2(63824)), l = i2(80428), u = i2(67607), d = i2(82319), c = i2(79467), p = n2.__importStar(i2(85020)), _ = n2.__importDefault(i2(81823)), h = i2(47957); + class m extends _.default { + static get managedProperties() { + return [{ label: h.askCommon.noInput, options: m.createNoInputOptions().setDefaultToBuilderId(o.builderIds.parts.genericCommunication), supportedFlowTypes: [r2.flowTypes.flowTypeBot, r2.flowTypes.flowTypeVoiceSurvey], yamlOptions: m.createYamlOptions("noInput", (e3) => e3.setPropertyName("noInput")), property: "noInput", type: l.expressionTypeNames.communication }, { label: h.askCommon.noInputReprompts, options: d.ExpressionTypeCommunicationOptions.create((e3) => e3.setAllowSecure(true).setIninTestingField("noInputReprompts").setDescriptionInfo(h.askCommon.noInputReprompts, h.askCommon.noInputRepromptsDescription).setIsOptional(true).setRequiredFlowChannelType(p.channelTypeCall).setUiPropertyGroup(h.askCommon.invalidResponse).setScriptingPropertyName("noInputReprompts").setIsCollection(true).setAllowModeLiteral(true).setMaxItems(10).setDoNotTransitionToNoValue(true).setUiPropertyOrder(21), true).setDefaultToBuilderId(o.builderIds.parts.genericCommunication), supportedFlowTypes: [r2.flowTypes.flowTypeBot, r2.flowTypes.flowTypeVoiceSurvey], yamlOptions: m.createYamlOptions("noInputReprompts", (e3) => e3.setPropertyName("noInputReprompts").setWrappedObjectName("customizeNoInput")), property: "noInputReprompts", type: l.expressionTypeNames.communication }, { options: u.ExpressionTypeBooleanOptions.create((e3) => e3.setUseButton(true).setAllowModeLiteralOnly().setDefaultText("false").setIninTestingField("customizeNoInputButton").setBoolText(h.askCommon.defaultNoInput, h.askCommon.customizeNoInput).setUiPropertyGroup(h.askCommon.invalidResponse).setUiPropertyOrder(22)), supportedFlowTypes: [r2.flowTypes.flowTypeBot, r2.flowTypes.flowTypeVoiceSurvey], yamlOptions: m.createYamlOptions("customizeNoInput", (e3) => e3.setSkipProperty(true)), property: "customizeNoInput", type: l.expressionTypeNames.boolean }, { label: h.askCommon.noMatch, options: m.createNoMatchOptions().setDefaultToBuilderId(o.builderIds.parts.genericCommunication), optionsForSpecificFlowTypes: [{ flowTypes: [r2.flowTypes.flowTypeDigitalBot], options: m.createNoMatchOptions().setDefaultToBuilderId(o.builderIds.parts.markdownCommunication) }], yamlOptions: m.createYamlOptions("noMatch", (e3) => e3.setPropertyName("noMatch")), property: "noMatch", type: l.expressionTypeNames.communication }, { label: h.askCommon.noMatchReprompts, options: m.createNoMatchRepromptsOptions().setDefaultToBuilderId(o.builderIds.parts.genericCommunication), optionsForSpecificFlowTypes: [{ flowTypes: [r2.flowTypes.flowTypeDigitalBot], options: m.createNoMatchRepromptsOptions().setDefaultToBuilderId(o.builderIds.parts.markdownCommunication) }], yamlOptions: m.createYamlOptions("noMatchReprompts", (e3) => e3.setPropertyName("noMatchReprompts").setWrappedObjectName("customizeNoMatch")), property: "noMatchReprompts", type: l.expressionTypeNames.communication }, { options: u.ExpressionTypeBooleanOptions.create((e3) => e3.setUseButton(true).setAllowModeLiteralOnly().setDefaultText("false").setIninTestingField("customizeNoMatchButton").setBoolText(h.askCommon.defaultNoMatch, h.askCommon.customizeNoMatch).setUiPropertyGroup(h.askCommon.invalidResponse).setUiPropertyOrder(25)), yamlOptions: m.createYamlOptions("customizeNoMatch", (e3) => e3.setSkipProperty(true)), property: "customizeNoMatch", type: l.expressionTypeNames.boolean }, { label: h.askCommon.voiceEndOfInputTimeout, options: c.ExpressionTypeDurationOptions.create((e3) => e3.setAllowSecure(true).setRequiredFlowChannelType(p.channelTypeCall).setIninTestingField("voiceEndOfInputTimeout").setDescriptionInfo(h.askCommon.voiceEndOfInputTimeout, h.askCommon.voiceEndOfInputTimeoutDescriptionAskActions).setDefaultText(a.default.litDurationOneSecond).setAllowFlowLevelDefault(true).setFlowLevelDefaultSameModes(true).setUiPropertyOrder(9).setUiPropertyGroup(h.speechToText.recognitionParams.speechRecognitionParameters).setScriptingPropertyName("voiceEndOfInputTimeout").setDurationStyle(s.durationStyles.secondsAndTenthsDuration).facets.setMinDur(100, true).setMaxDur(10 * a.default.msPerSecond, true)), property: "voiceEndOfInputTimeout", type: l.expressionTypeNames.duration }]; + } + constructor(e3) { + super(e3); + } + setNewInstanceDefaults(e3) { + var t3, i3; + super.setNewInstanceDefaults(e3), null === (t3 = this.noInput.builder) || void 0 === t3 || t3.deleteAllParts(), null === (i3 = this.noMatch.builder) || void 0 === i3 || i3.deleteAllParts(); + } + initializeDesignTime() { + super.initializeDesignTime(), this._updatePropertiesOOS(); + } + setNewInstanceNoInputText(e3) { + return this.noInput.setCommunicationBuilderText(e3); + } + setNewInstanceNoMatchText(e3) { + return this.noMatch.setCommunicationBuilderText(e3); + } + getConfiguration(e3, t3) { + const i3 = super.getConfiguration(e3, t3); + return this.parentFlow.isDigitalBotFlow && (i3.noInputReprompts = void 0, i3.noInputs = void 0), i3; + } + _updatePropertiesOOS() { + this.noInput.outOfService = this._isNoInputOOS(), this.noInputReprompts.outOfService = this._isNoInputRepromptsOOS(), this.noMatch.outOfService = this._isNoMatchOOS(), this.noMatchReprompts.outOfService = this._isNoMatchRepromptsOOS(); + } + _isNoInputOOS() { + return this.customizeNoInput.model.text === a.default.true; + } + _isNoInputRepromptsOOS() { + return this.customizeNoInput.model.text !== a.default.true; + } + _isNoMatchOOS() { + return this.customizeNoMatch.model.text === a.default.true; + } + _isNoMatchRepromptsOOS() { + return this.customizeNoMatch.model.text !== a.default.true; + } + propertyChanged(e3) { + var t3, i3; + super.propertyChanged(e3), !e3.propertyName || e3.propertyName !== (null === (t3 = this.customizeNoInput) || void 0 === t3 ? void 0 : t3.propertyName) && e3.propertyName !== (null === (i3 = this.customizeNoMatch) || void 0 === i3 ? void 0 : i3.propertyName) || this._updatePropertiesOOS(); + } + static createNoInputOptions() { + return d.ExpressionTypeCommunicationOptions.create((e3) => e3.setAllowSecure(true).setIninTestingField("noInput").setDescriptionInfo(h.askCommon.noInput, h.askCommon.noInputDescription).setIsOptional(true).setDefaultToNoValue(true).setDoNotTransitionToNoValue(false).setRequiredFlowChannelType(p.channelTypeCall).setUiPropertyGroup(h.askCommon.invalidResponse).setScriptingPropertyName("noInput").setUiPropertyOrder(20)); + } + static createNoMatchOptions() { + return d.ExpressionTypeCommunicationOptions.create((e3) => e3.setAllowSecure(true).setIninTestingField("noMatch").setIsOptional(true).setDefaultToNoValue(true).setDoNotTransitionToNoValue(false).setDescriptionInfo(h.askCommon.noMatch, h.askCommon.noMatchDescription).setScriptingPropertyName("noMatch").setUiPropertyGroup(h.askCommon.invalidResponse).setUiPropertyOrder(23)); + } + static createNoMatchRepromptsOptions() { + return d.ExpressionTypeCommunicationOptions.create((e3) => e3.setAllowSecure(true).setIninTestingField("noMatchReprompts").setDescriptionInfo(h.askCommon.noMatchReprompts, h.askCommon.noMatchRepromptsDescription).setIsOptional(true).setRequiredFlowChannelType(p.channelTypeCall).setUiPropertyGroup(h.askCommon.invalidResponse).setScriptingPropertyName("noMatchReprompts").setIsCollection(true).setAllowModeLiteral(true).setMaxItems(10).setDoNotTransitionToNoValue(true).setUiPropertyOrder(24), true); + } + } + t2.default = m, m.className = "BaseAskActionNoInputNoMatchViewModel"; + }, 80629: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.isInteropObservable = void 0; + var n2 = i2(2884), r2 = i2(10281); + t2.isInteropObservable = function(e3) { + return r2.isFunction(e3[n2.observable]); + }; + }, 80632: (e2, t2, i2) => { + "use strict"; + const n2 = i2(31635), r2 = i2(30801), o = n2.__importDefault(i2(5730)), a = i2(12179), s = i2(30801), l = i2(30801), u = n2.__importDefault(i2(97891)), d = i2(24383), c = i2(47957); + class p extends o.default { + constructor(e3, t3) { + super(e3.parentFlow, e3), this._loadModel(t3); + } + validate(e3) { + super.validate(e3), this.getParentingFlowElementByIdOrNodeInfoId([s.loopActionType, l.loopUntilActionType, r2.askForNLUNextIntentActionActionType]) || e3.addError(this, c.loop.notInLoop); + } + } + p.info = u.default.createActionInfo({ actionClass: p, canBeInTask: true, helpTopic: a.helpTopics.actions.nextLoop, modelClass: i2(30276), name: c.actions.nextLoop, scriptingName: "ArchActionLoopNext", termination: d.terminatesNextLoop }), t2.A = p; + }, 80644: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(84655)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "customerSegment"; + } + get displayTypeName() { + return "ArchVariableCustomerSegment"; + } + get initialValue() { + return this._initialValue; + } + get isArchVariableCustomerSegment() { + return true; + } + } + t2.default = r2; + }, 80665: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.briefInboundFlowListManager = void 0; + const n2 = i2(31635).__importStar(i2(24032)), r2 = i2(70726), o = i2(96618), a = i2(30801), s = i2(30801), l = i2(27862); + class u extends r2.BriefFlowListManager { + get dependencyType() { + return l.InboundCallFlow; + } + constructor() { + super(), this.topic = n2.getTopic("briefInboundFlowListManager"), this.additionalQueryParams = { type: o.flowTypes.flowTypeInboundCall }, this.className = "BriefInboundFlowListManager", this.actionsForUsageSearch = [s.transferFlowActionType, a.setPostFlowActionType], this.actionPropertyForUsageSearch = "inboundCallFlow", this.uiMetadataSectionName = "inboundCallFlows", this.flowType = o.flowTypes.flowTypeInboundCall, this._initialize(); + } + } + t2.briefInboundFlowListManager = new u(); + }, 80684: (e2, t2, i2) => { + "use strict"; + const n2 = i2(31635), r2 = i2(19384), o = i2(12179), a = i2(12457), s = n2.__importDefault(i2(97891)), l = i2(24383), u = i2(4333), d = n2.__importDefault(i2(5730)), c = i2(47957); + class p extends d.default { + constructor(e3, t3) { + super(e3.parentFlow, e3), this._loadModel(t3); + } + _preDestroy() { + super._preDestroy(), this.parentFlow.tryRemoveUiMetadataInfo(this, "menu", this.menuReference, [this.model.__type], "menuReference", false); + } + getDetails() { + if (!this.menuReference) return null; + const e3 = r2.flowElementRegistrationService.getItemById(this.parentFlow, this.menuReference); + return e3 ? new a.ActionDetails([c.menu.label], [e3.name]) : null; + } + addClipboardDependencies(e3) { + super.addClipboardDependencies(e3); + const t3 = r2.flowElementRegistrationService.getItemById(this.parentFlow, this.menuReference); + t3 && t3.name && e3.addOldIdToOldNameMapping(this.menuReference, t3.name); + } + linkMenu(e3) { + var t3; + if (this.parentFlow.tryRemoveUiMetadataInfo(this, "menu", this.menuReference, [this.model.__type], "menuReference", false), e3) { + const i3 = e3.isMenuChoice || (null === (t3 = e3.menu) || void 0 === t3 ? void 0 : t3.isMenu) ? e3.menu : e3; + this.parentFlow.setUiMetadataInfo("menu", { id: e3.id, name: e3.name }), this.menuReference = i3.id, this.menuName = i3.name; + } else this.menuReference = void 0, this.menuName = void 0; + } + static get managedProperties() { + return [{ property: "menu", createDetails: u.ContainerActionProperty.createCreateDetails({ modelIdPropName: "menuReference", modelNamePropName: "menuName", itemDoesNotExistBaseString: c.menu.label, noReferenceString: c.menu.noReference, referencesMenus: true, validReferenceCallback: (e3) => { + if (!e3 || !e3.isMenu && !e3.isSubMenu) return { error: c.menu.invalidReference }; + } }), yamlOptions: p.createYamlOptions("menu", (e3) => e3.setPropertyName("targetMenuRef")) }]; + } + validate(e3) { + super.validate(e3); + } + } + p.info = s.default.createActionInfo({ actionClass: p, canBeInTask: true, canBeTreeNode: true, helpTopic: o.helpTopics.actions.menuJump, modelClass: i2(31061), name: c.actions.menuJump, scriptingName: "ArchActionJumpToMenu", termination: l.terminatesTask }), t2.A = p; + }, 80693: (e2, t2, i2) => { + const n2 = i2(92140), { ParameterInfo: r2 } = i2(55909), { ParameterValidator: o } = i2(33951); + e2.exports = class { + constructor(e3) { + o.expectBool(e3, () => r2.createConstructorParameter(this.className, "enableLogging"), true), Object.defineProperties(this, { _lastLogHeaderWritten: { writable: true, enumerable: true }, _logHeaders: { value: [], enumerable: false }, _shouldLog: { value: true === e3, writable: true, enumerable: true }, _suppressLogHeaders: { value: false, writable: true, enumerable: false } }); + } + get className() { + return "ClipboardLogging"; + } + get isClipboardLogging() { + return true; + } + get shouldLog() { + return this._shouldLog; + } + set shouldLog(e3) { + this._shouldLog = o.expectBool(e3, () => r2.createPropertySet(this.className, "shouldLog", "newValue")); + } + get suppressLogHeaders() { + return this._suppressLogHeaders; + } + set suppressLogHeaders(e3) { + this._suppressLogHeaders = o.expectBool(e3, () => r2.createPropertySet(this.className, "suppressLogHeaders", "newValue")); + } + _log(e3, t3) { + if (this._shouldLog) { + if (!this._suppressLogHeaders && this._logHeaders.length > 0) { + const e4 = "clipboard: " + this._logHeaders[this._logHeaders.length - 1]; + e4 !== this._lastLogHeaderWritten && (this._lastLogHeaderWritten = e4, console.log("Clipboard: " + this._logHeaders[this._logHeaders.length - 1])); + } + console.log("Clipboard: " + (n2.isString(t3) && t3.length ? t3 + " " : "") + e3); + } + } + log(e3) { + this._log(e3); + } + logError(e3) { + this._log(e3, "ERROR"); + } + logException(e3, t3) { + let i3 = n2.isString(t3) ? t3 : ""; + e3 && e3.message && (i3 = i3 + " -> " + e3.message), this._log(i3, "EXCEPTION"); + } + pushLogHeader(e3) { + this._logHeaders.push("[ " + e3 + " ]"); + } + popLogHeader() { + this._logHeaders.length > 0 && this._logHeaders.pop(); + } + }; + }, 80700: (e2, t2, i2) => { + "use strict"; + const n2 = i2(31635), r2 = n2.__importDefault(i2(942)), o = i2(80428), a = i2(55720), s = i2(17512), l = i2(12179), u = n2.__importDefault(i2(97891)), d = i2(47957); + class c extends r2.default { + constructor(e3, t3) { + super(e3.parentFlow, e3), this._loadModel(t3); + } + static get managedProperties() { + return r2.default.createManagedProperties({ searchFieldLabel: d.findActions.findSkill.nameLabel, searchResultLabel: d.findActions.findSkill.resultLabel, searchResultExpressionOptions: a.ExpressionTypeSkillOptions.create(), searchResultItemType: o.expressionTypeNames.skill }); + } + } + c.info = u.default.createActionInfo({ actionClass: c, canBeInTask: true, helpTopic: l.helpTopics.actions.findSkill, modelClass: s.FindSkillActionModel, name: d.actions.findSkill, scriptingName: "ArchActionFindSkill" }), t2.A = c; + }, 80719: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.joinAllInternals = void 0; + var n2 = i2(87699), r2 = i2(13916), o = i2(99517), a = i2(67478), s = i2(73484); + t2.joinAllInternals = function(e3, t3) { + return o.pipe(s.toArray(), a.mergeMap(function(t4) { + return e3(t4); + }), t3 ? r2.mapOneOrManyArgs(t3) : n2.identity); + }; + }, 80748: (e2, t2, i2) => { + const n2 = i2(57731), r2 = i2(47957), o = {}; + function a(e3, t3) { + o[e3] = this, o[t3] = this, a.baseConstructor.apply(this, arguments); + } + n2.extend(a, "VoicemailTransferTargetType"), a.getInstance = function(e3) { + return o[e3 || 0] || o[0]; + }, a.User = new a(0, "user", r2.user.label), a.Queue = new a(1, "queue", r2.transferPureMatch.queue), a.Group = new a(2, "group", r2.group.label), e2.exports = a; + }, 80782: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.default = function(e3, t3, i3) { + const a = (0, n2.default)(e3, t3, i3); + t3 || (t3 = e3); + const s = new o(); + return s.name = r2(t3).periodicStateName, s.variables = [], a.periodicStateId = s.id, a.flowSequenceItemList.push(s), a; + }; + const n2 = i2(31635).__importDefault(i2(42193)), r2 = (i2(83051), i2(21733)), o = (i2(47957), i2(69674)); + }, 80800: (e2, t2, i2) => { + const n2 = i2(92140); + function r2() { + this.id = void 0, this.name = void 0, this._state = void 0, r2.baseConstructor.apply(this, arguments); + } + i2(45214).extend(r2, "Skill"), Object.defineProperties(r2.prototype, { displayName: { get: function() { + return this.name; + }, set: function(e3) { + this.name = e3; + } }, label: { get: function() { + return this.name; + }, set: function(e3) { + this.name = e3; + } }, state: { get: function() { + return this._state; + }, set: function(e3) { + this._state = n2.isString(e3) ? e3.toLowerCase() : e3; + } } }), e2.exports = r2; + }, 80815: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(54063)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "journeySessionCollection"; + } + get displayTypeName() { + return "ArchValueJourneySessionCollection"; + } + get isArchValueJourneySessionCollection() { + return true; + } + } + t2.default = r2; + }, 80817: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importDefault(i2(84783)), o = n2.__importDefault(i2(56549)), a = n2.__importDefault(i2(94225)), s = i2(27854), { systemPromptListManager: l } = i2(97951), { userPromptListManager: u } = i2(23293); + class d extends r2.default { + get displayTypeName() { + return "ArchFactoryPrompts"; + } + get logStr() { + return this._createLogStrFromParts(["ArchFactoryPrompts"]); + } + get isArchFactoryPrompts() { + return true; + } + getPromptByPromptNameAsync(e3, t3) { + const i3 = this._infoParm("prefixedPromptName", "getPromptByPromptNameAsync"); + return this._checkItemIsValidLiteralString(i3, e3), this._checkItem(i3, !s.hasPromptPrefix(e3), `The prompt name of '${e3}' is not prefixed with 'Prompt.' or 'PromptSystem.'.`), o.default.findItemByValueAsync(s.hasUserPromptPrefix(e3) ? u : l, s.removePrefix(e3), "prompt").then((e4) => { + if (e4) return a.default.executeCallback(this, "getPromptByPromptNameAsync", t3, this.coreFactory.createArchWrapper(e4)); + }); + } + } + t2.default = new d(); + }, 80911: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.getBotConnectorBots = h, t2.getBotConnectorBotVersions = m, t2.getBotConnectorBotVersion = g, t2.getBotConnectorBot = f, t2.ensureCorrectVersionProperties = T; + const n2 = i2(31635), r2 = n2.__importStar(i2(8818)), o = n2.__importDefault(i2(36019)), a = n2.__importDefault(i2(73198)), s = i2(80428), l = i2(29795), u = n2.__importDefault(i2(92140)), d = i2(24032).getTopic("botConnectorApi"), c = "collection", p = c.length, _ = {}; + function h(e3) { + const t3 = e3.additionalParams.integrationId, i3 = e3.getSearchQueryParams(true); + return o.default.build(r2.getBotConnectorBots).templateParams({ integrationId: t3 }).queryParams(i3).call().then((e4) => (u.default.each(e4.entities, (e5) => { + e5.setParentContextInfo(t3); + }), e4)); + } + function m(e3) { + const t3 = (null == e3 ? void 0 : e3.additionalParams) || e3; + if (!t3 || !t3.botId || !t3.integrationId) return; + const i3 = e3.getSearchQueryParams(true); + return o.default.build(r2.getBotConnectorBotVersions).templateParams({ botId: t3.botId, integrationId: t3.integrationId }).queryParams(i3).call().then(function(t4) { + return u.default.each(t4.entities, function(t5) { + t5.setParentContextInfo(e3.additionalParams.integrationId); + }), t4; + }); + } + function g(e3, t3) { + return n2.__awaiter(this, void 0, void 0, function* () { + const i3 = (null == t3 ? void 0 : t3.additionalParams) || t3; + if (!i3 || !i3.botId || !i3.integrationId) return; + const n3 = { version: e3 }, a2 = o.default.build(r2.getBotConnectorBot).templateParams({ botId: i3.botId, integrationId: i3.integrationId }).queryParams(n3), s2 = yield a2.call(); + return u.default.find(s2.versions, (t4) => { + if (t4.version === e3) return T(t4, s2.name, i3.botId, i3.integrationId); + }); + }); + } + function f(e3, t3) { + return n2.__awaiter(this, void 0, void 0, function* () { + const i3 = (null == t3 ? void 0 : t3.additionalParams) || t3; + if (!i3 || !i3.integrationId) return; + const n3 = { botId: e3, integrationId: i3.integrationId }, a2 = o.default.build(r2.getBotConnectorBot).templateParams(n3), s2 = yield a2.call(); + return s2 && s2.setParentContextInfo(i3.integrationId), s2; + }); + } + function T(e3, t3, i3, n3) { + if (!u.default.isObject(e3)) return; + const r3 = e3; + return t3 && (r3.name = t3), r3.id = i3, r3.version = e3.version, r3.setParentContextInfo(n3), r3.isFromAdsValidationResults = false, u.default.each(e3.intents, (e4) => { + u.default.each(null == e4 ? void 0 : e4.slots, (e5) => { + var t4; + if (u.default.isString(null == e5 ? void 0 : e5.type)) { + if (e5.archDataTypeId = _[e5.type], !e5.archDataTypeId && e5.type === l.jsonSchemaTypeNames.array && (null === (t4 = e5.items) || void 0 === t4 ? void 0 : t4.type) && (e5.archDataTypeId = _[e5.items.type]), u.default.isUndefined(e5.archDataTypeId)) d.error(`invalid architect data type for slot. type: '${e5.type}'`); + else if (e5.type.endsWith(c)) { + const t5 = e5.type.slice(0, -p); + e5.archDataTypeId = _[t5], u.default.isUndefined(e5.archDataTypeId) ? d.error(`invalid architect data type for collection slot. name:${e5.name} type:${e5.type}`) : (e5.items = { type: t5 }, e5.type = l.jsonSchemaTypeNames.array); + } + } else d.error("missing type for slot"); + }); + }), r3; + } + u.default.each(["boolean", "currency", "dateTime", "decimal", "duration", "integer", "string"], (e3) => { + const t3 = e3.toLowerCase(); + _[t3] = s.expressionTypeNames[e3], _[`${t3}${c}`] = `${s.expressionTypeNames[e3]}${a.default.exprDataTypeSuffixCollection}`; + }), h.api = r2.getBotConnectorBots, m.api = r2.getBotConnectorBotVersions, g.api = r2.getBotConnectorBot, f.api = r2.getBotConnectorBot; + }, 80934: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.BaseActionWithOutputsModel = void 0; + const n2 = i2(31635), r2 = n2.__importDefault(i2(92140)), o = i2(68794), a = i2(94858), s = i2(80295), l = i2(80295); + class u extends a.BaseActionModel { + constructor(e3) { + super(e3), (0, l.makeUnenumerable)(this, "_paths"); + } + pasteResolveOldToNewValues(e3) { + super.pasteResolveOldToNewValues(e3), r2.default.each(this._paths, function(t3) { + t3.pasteResolveOldToNewValues(e3); + }.bind(this)); + } + pasteReIdOrRename(e3) { + super.pasteReIdOrRename(e3), r2.default.each(this._paths, function(t3) { + t3.pasteReIdOrRename(e3); + }.bind(this)); + } + get paths() { + return this._paths; + } + set paths(e3) { + this._paths = this.reviveArray(e3, o.ActionOutput); + } + } + t2.BaseActionWithOutputsModel = u, n2.__decorate([(0, s.enumerable)(true), n2.__metadata("design:type", Array), n2.__metadata("design:paramtypes", [Array])], u.prototype, "paths", null); + }, 81063: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.getAllEncryptDecryptFailureReasons = t2.getDecryptFailureReasons = t2.getEncryptFailureReasons = void 0; + const n2 = i2(31635).__importDefault(i2(92140)), r2 = { customerKeyNotConfigured: "CustomerKeyNotConfigured", customerKeyNotFound: "CustomerKeyNotFound", encryptedDataKeyInvalid: "EncryptedDataKeyInvalid", generalError: "GeneralError", invalidData: "InvalidData", maximumDataSizeExceeded: "MaximumDataSizeExceeded", noDataSupplied: "NoDataSupplied", timeout: "Timeout" }, o = [r2.generalError]; + t2.getEncryptFailureReasons = n2.default.uniq(o.concat([r2.customerKeyNotConfigured, r2.customerKeyNotFound, r2.maximumDataSizeExceeded, r2.noDataSupplied, r2.timeout])), t2.getDecryptFailureReasons = n2.default.uniq(o.concat([r2.customerKeyNotConfigured, r2.customerKeyNotFound, r2.encryptedDataKeyInvalid, r2.invalidData, r2.maximumDataSizeExceeded, r2.noDataSupplied, r2.timeout])), t2.getAllEncryptDecryptFailureReasons = r2; + }, 81084: (e2, t2, i2) => { + const n2 = i2(13240), r2 = i2(7401); + function o() { + Object.defineProperties(this, { _silenceDuration: { writable: true }, _timeout: { writable: true } }), o.baseConstructor.apply(this, arguments); + } + n2.extend(o, "BaseDetectSilenceActionModel"), Object.defineProperties(o.prototype, { pasteResolveOldToNewValues: { value: function(e3) { + o._super.pasteResolveOldToNewValues.apply(this, arguments), this.silenceDuration.pasteReIdOrRename(e3), this.timeout.pasteReIdOrRename(e3); + } }, pasteReIdOrRename: { value: function(e3) { + o._super.pasteReIdOrRename.apply(this, arguments), this.silenceDuration.pasteResolveOldToNewValues(e3), this.timeout.pasteResolveOldToNewValues(e3); + } }, silenceDuration: { enumerable: true, get: function() { + return this._silenceDuration; + }, set: function(e3) { + this._silenceDuration = this.reviveItem(e3, r2); + } }, timeout: { enumerable: true, get: function() { + return this._timeout; + }, set: function(e3) { + this._timeout = this.reviveItem(e3, r2); + } } }), e2.exports = o; + }, 81086: (e2, t2, i2) => { + const n2 = i2(16029); + function r2() { + } + r2.extend = function(e3, t3) { + n2(e3, this); + const i3 = this.extend; + t3 ? Object.defineProperty(e3, "extend", { value: function() { + t3.apply(this, arguments), i3.apply(this, arguments); + } }) : Object.defineProperty(e3, "extend", { value: i3 }); + const r3 = e3._super.constructor; + /^class[\s{]/.test(Function.prototype.toString.call(r3)) ? Object.defineProperties(e3, { baseConstructor: { value: { call: function(t4) { + const i4 = Array.prototype.slice.call(arguments, 1), n3 = Reflect.construct(r3, i4, e3), o = Object.getOwnPropertyNames(n3); + for (let e4 = 0; e4 < o.length; e4++) { + const i5 = o[e4]; + Object.prototype.hasOwnProperty.call(t4, i5) || Object.defineProperty(t4, i5, Object.getOwnPropertyDescriptor(n3, i5)); + } + } } } }) : Object.defineProperties(e3, { baseConstructor: { value: r3 } }); + }, Object.defineProperties(r2.prototype, { className: { get: function() { + return "BaseClass"; + } }, isBaseClass: { get: function() { + return true; + } } }), r2.isBaseClassObject = true, e2.exports = r2; + }, 81104: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(83747)), r2 = i2(96618); + class o extends n2.default { + constructor(e3) { + super(e3), this._promptSettings = this.coreFactory.createArchWrapper(e3.callPrompts), this._virtualAgentSettings = this.coreFactory.createArchWrapper(e3.virtualAgentSettings); + } + get _flowType() { + return r2.flowTypes.flowTypeBot; + } + get displayTypeName() { + return "ArchFlowBot"; + } + get isArchFlowBot() { + return true; + } + get settingsPrompts() { + return this._promptSettings; + } + get settingsVirtualAgent() { + return this._virtualAgentSettings; + } + } + t2.default = o; + }, 81116: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.audioExpression = function(e3, t3, i3, n3, r3, o2) { + const a2 = new d.ExpressionParameters(e3, t3, i3, n3, r3, o2); + return new l.AudioExpression(a2); + }, t2.doNotTrackExpression = function(e3, t3, i3, n3, r3, o2, a2) { + return h(e3, t3, i3, n3, r3, o2, a2, true); + }, t2.expression = h, t2.cloneExpression = function(e3) { + if (!e3) return; + const t3 = new d.ExpressionParameters(e3.parentFlow, e3.parent, new o.default(r2.default.deepClone(e3.model)), e3.label); + let i3; + return t3.options = e3.options, t3.type = e3.type, i3 = t3.type && t3.type.isCollection ? new u.CollectionExpression(t3) : new c.NormalExpression(t3), e3.initializeDesignTimeCalled && i3.initializeDesignTime(), i3; + }; + const n2 = i2(31635), r2 = n2.__importDefault(i2(92140)), o = n2.__importDefault(i2(7401)), a = i2(55909), s = i2(33951), l = i2(18637), u = i2(91491), d = i2(59263), c = i2(39168), p = n2.__importDefault(i2(65302)), _ = i2(50474); + function h(e3, t3, i3, n3, r3, o2, l2, h2) { + var m; + s.ParameterValidator.expectFlowViewModel(e3, function() { + return a.ParameterInfo.createConstructorParameter("expressionCreator", "flow"); + }.bind(this), true), s.ParameterValidator.expectBaseClassObject(t3, function() { + return a.ParameterInfo.createConstructorParameter("expressionCreator", "parent"); + }.bind(this), true), s.ParameterValidator.expectObject(i3, function() { + return a.ParameterInfo.createConstructorParameter("expressionCreator", "model"); + }.bind(this), true), s.ParameterValidator.expectString(n3, function() { + return a.ParameterInfo.createConstructorParameter("expressionCreator", "label"); + }.bind(this), true), s.ParameterValidator.expectExpressionTypeOrString(r3, function() { + return a.ParameterInfo.createConstructorParameter("expressionCreator", "type"); + }.bind(this), true), s.ParameterValidator.expectString(o2, function() { + return a.ParameterInfo.createConstructorParameter("expressionCreator", "propertyName"); + }.bind(this), true), s.ParameterValidator.expectExpressionOptions(l2, function() { + return a.ParameterInfo.createConstructorParameter("expressionCreator", "options"); + }.bind(this), true), s.ParameterValidator.expectBool(h2, function() { + return a.ParameterInfo.createConstructorParameter("expressionCreator", "transitory"); + }.bind(this), true); + const g = new d.ExpressionParameters(e3, t3, i3, n3); + return g.propertyName = o2, g.options = l2, (0, _.isString)(r3) && (r3 = p.default.resolveType(e3, r3, void 0)), i3 && (i3.config || i3.type) && (!r3 || r3.isAny && (null === (m = i3.config) || void 0 === m ? void 0 : m.ref)) ? g.type = p.default.resolveType(e3, i3.type, i3.config) : g.type = r3, h2 && (g.transitory = true), g.type && g.type.isCollection ? new u.CollectionExpression(g) : new c.NormalExpression(g); + } + }, 81120: (e2, t2, i2) => { + const n2 = i2(92140), r2 = i2(33231); + class o { + constructor(e3) { + if (!n2.isFunction(e3)) throw "not a function"; + this._functionToExecute = e3, this._currentDefer = void 0, this._nextDefer = void 0; + } + executeInternal(e3) { + const t3 = this._functionToExecute(); + r2.isPromiseAlike(t3) ? t3.then(() => { + e3.resolve(), this.startNext(); + }).catch((t4) => { + e3.reject(t4), this.startNext(); + }) : e3.reject("function did not return a promise"); + } + startNext() { + setTimeout(function() { + this._currentDefer = this._nextDefer, this._nextDefer = void 0, this._currentDefer && this.executeInternal(this._currentDefer); + }.bind(this), 0); + } + execute() { + return this._currentDefer ? (this._nextDefer || (this._nextDefer = r2.defer()), this._nextDefer.promise) : (this._currentDefer = r2.defer(), this.executeInternal(this._currentDefer), this._currentDefer.promise); + } + } + e2.exports = function(e3) { + const t3 = new o(e3); + return function() { + return t3.execute(); + }; + }; + }, 81161: (e2, t2, i2) => { + const n2 = i2(45214), r2 = i2(7401); + function o() { + Object.defineProperties(this, { _synonyms: { writable: true }, _labels: { writable: true }, _values: { writable: true } }), this.name = void 0, o.baseConstructor.apply(this, arguments); + } + n2.extend(o, "DynamicSlotTypeModel"), Object.defineProperties(o.prototype, { pasteResolveOldToNewValues: { value: function(e3) { + o._super.pasteResolveOldToNewValues.apply(this, arguments), this.labels.pasteResolveOldToNewValues(e3), this.synonyms.pasteResolveOldToNewValues(e3), this.values.pasteResolveOldToNewValues(e3); + } }, pasteReIdOrRename: { value: function(e3) { + o._super.pasteReIdOrRename.apply(this, arguments), this.labels.pasteReIdOrRename(e3), this.synonyms.pasteReIdOrRename(e3), this.values.pasteReIdOrRename(e3); + } }, labels: { enumerable: true, get: function() { + return this._labels; + }, set: function(e3) { + this._labels = this.reviveItem(e3, r2); + } }, synonyms: { enumerable: true, get: function() { + return this._synonyms; + }, set: function(e3) { + this._synonyms = this.reviveItem(e3, r2); + } }, values: { enumerable: true, get: function() { + return this._values; + }, set: function(e3) { + this._values = this.reviveItem(e3, r2); + } } }), e2.exports = o; + }, 81167: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(84655)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "formInput"; + } + get displayTypeName() { + return "ArchVariableFormInput"; + } + get isArchVariableFormInput() { + return true; + } + } + t2.default = r2; + }, 81176: (e2, t2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.allInputCollectionModes = t2.inputMode = void 0, t2.inputMode = { dtmf: "dtmf", speech: "speech", text: "text" }, t2.allInputCollectionModes = [t2.inputMode.dtmf, t2.inputMode.speech, t2.inputMode.text]; + }, 81452: (e2) => { + "use strict"; + var t2 = 1; + e2.exports = { nextValue: function() { + return (t2 = (9301 * t2 + 49297) % 233280) / 233280; + }, seed: function(e3) { + t2 = e3; + } }; + }, 81453: (e2, t2, i2) => { + "use strict"; + const n2 = i2(31635), r2 = i2(96618), o = i2(17604), a = n2.__importDefault(i2(92140)), s = n2.__importStar(i2(1115)), l = i2(15364), u = i2(60186), d = i2(48112), c = i2(37830), p = i2(81516), _ = i2(26954), h = i2(24235), m = i2(89876), g = n2.__importStar(i2(36781)), f = i2(44724), T = i2(9290), y = n2.__importStar(i2(66381)), S = n2.__importStar(i2(98442)), A = i2(12179), N = i2(12457), O = n2.__importDefault(i2(97891)), I = i2(77415), v = n2.__importDefault(i2(78791)), C = i2(80428), b = i2(47957), E = i2(80748); + class R extends v.default { + constructor(e3, t3) { + super(e3), this._loadModel(t3), this.resources = { scriptNotFound: b.createCallback.callbackScriptNotFound }, this.parentFlow.isCommonModuleFlow && this.addAutoCleanedUpEventSinkWatch(g.destinationFlowTypesChanged, this.parentFlow.commonModuleSettings, () => this.setOutOfService()); + } + static get managedProperties() { + return [{ label: b.createCallback.calleeName, options: p.ExpressionTypeStringOptions.create((e3) => e3.setIsOptional(true).setDefaultToExpression(true).setIninTestingField("calleeName")), property: "calleeName", type: C.expressionTypeNames.string }, { label: b.createCallback.callbackNumber, list: true, property: "callbackNumbers", type: C.expressionTypeNames.phoneNumber, options: d.ExpressionTypePhoneNumberOptions.create((e3) => e3.setIsCollection(true).setIninTestingField("callbackNumber")), yamlOptions: R.createYamlOptions("callbackNumbers", (e3) => e3.setPropertyName("callbackNumber").setConvertToSingleItem(true)) }, { property: "destination", isJustForFlowYaml: true, yamlOptions: R.createYamlOptions("destination", (e3) => e3.setExportOrder(30)) }, { label: b.user.label, options: _.ExpressionTypeUserOptions.create((e3) => e3.addAuthToCheck(f.permissionStrings.external.externalAuthorizations.voicemailReceive, true).setIninTestingField("transferTargetExpression")), yamlOptions: R.createYamlOptions("transferTarget", (e3) => e3.setPropertyName("targetUser")), property: "transferTarget", type: C.expressionTypeNames.userQueue }, { label: b.transferPureMatch.queue, options: c.ExpressionTypeQueueOptions.create((e3) => e3.setIninTestingField("transferTargetExpressionQueue")), yamlOptions: R.createYamlOptions("transferTargetQueue", (e3) => e3.setPropertyName("targetQueue")), property: "transferTargetQueue", type: C.expressionTypeNames.queue }, { label: b.group.label, options: u.ExpressionTypeGroupOptions.create((e3) => e3.setIninTestingField("transferTargetExpressionGroup")), yamlOptions: R.createYamlOptions("transferTargetGroup", (e3) => e3.setPropertyName("targetGroup")), property: "transferTargetGroup", type: C.expressionTypeNames.group }, { audio: true, options: h.AudioViewModelOptions.create((e3) => e3.setIninTestingField("voicemailGreeting").setLabel(b.transferVoicemail.voicemailGreeting)), property: "voicemailGreeting", type: C.expressionTypeNames.audio }, { createDetails: I.ScriptProperties.createCreateDetails(void 0, void 0, true), property: "scriptSettings", yamlOptions: R.createYamlOptions("scriptSettings", (e3) => e3.setPropertyName("voicemailScript").setUseNoneTrueForExpressionContainerClass(l.DataPairList.className)) }]; + } + _getPossibleErrors() { + return T.voicemailTransferFailureReasons; + } + _loadModel(e3) { + super._loadModel(e3), this.transferTargetType || (this.transferTargetType = E.User), 0 === this.callbackNumbers.items.length && (this.callbackNumbers.add(), this.callbackNumbers.items[0].setAsExpression("ToPhoneNumber(Call.Ani)")), this.callbackNumbers.items[0].options.isOptional = true, this.setOutOfService(); + } + getCachedServerPropertyById(e3, t3) { + return this.scriptManager.getCachedServerPropertyById(e3, this.scriptId, t3, this); + } + getDetails() { + const e3 = [], t3 = []; + return this.isQueueTransfer ? (this.transferTargetQueue.outOfService || (e3.push(this.transferTargetQueue.label), t3.push(this.transferTargetQueue.text)), this.scriptName && (e3.push(b.transferVoicemail.voicemailScript), t3.push(this.scriptName)), this.calleeName.text && (e3.push(this.calleeName.label), t3.push(this.calleeName.text)), this.callbackNumbers.items && this.callbackNumbers.items.length > 0 && this.callbackNumbers.items[0].text && (e3.push(this.callbackNumbers.label), t3.push(this.callbackNumbers.items[0].text))) : this.isUserTransfer ? (e3.push(this.transferTargetUser.label), t3.push(this.transferTargetUser.text)) : this.isGroupTransfer && (e3.push(this.transferTargetGroup.label), t3.push(this.transferTargetGroup.text)), new N.ActionDetails(e3, t3); + } + get isQueueTransfer() { + return this.transferTargetType === E.Queue; + } + get isUserTransfer() { + return this.transferTargetType === E.User; + } + get isGroupTransfer() { + return this.transferTargetType === E.Group; + } + get scriptManager() { + return m.voicemailScriptManager; + } + postProcessYamlConfig(e3, t3, i3) { + if (!this.transferTargetType) return; + e3.destination = {}; + const n3 = e3.destination[this.transferTargetType.name] = {}; + a.default.moveAndDeleteProperty(e3, n3, "targetUser"), a.default.moveAndDeleteProperty(e3, n3, "targetQueue"), a.default.moveAndDeleteProperty(e3, n3, "targetGroup"), a.default.moveAndDeleteProperty(e3, n3, "callbackNumber"), a.default.moveAndDeleteProperty(e3, n3, "calleeName"), a.default.moveAndDeleteProperty(e3, n3, "voicemailGreeting"), a.default.moveAndDeleteProperty(e3, n3, "voicemailScript"); + } + setOutOfService() { + this.transferTargetUser.outOfService = !this.isUserTransfer, this.transferTargetGroup.outOfService = !this.isGroupTransfer, this.transferTargetQueue.outOfService = !this.isQueueTransfer || this.doesQueueTransferToCurrentQueueVoicemail, this.voicemailGreeting.outOfService = !this.isQueueTransfer, this.calleeName.outOfService = !this.isQueueTransfer, this.callbackNumbers.outOfService = !this.isQueueTransfer, this.scriptSettings.outOfService = !this.isQueueTransfer, this.shouldShowDescriptionTooltip ? this.transferTargetQueue.options.setDescriptionInfo(b.transferVoicemail.transferTarget, (0, o.sprintf)(b.transferVoicemail.noQueueTooltip, y.getFlowTypesDisplayString([r2.flowTypes.flowTypeInQueueCall]))) : this.transferTargetQueue.options.clearDescriptionInfo(); + } + get shouldShowDescriptionTooltip() { + var e3; + return !this.transferTargetQueue.outOfService && this.parentFlow.isCommonModuleFlow && (null === (e3 = this.parentFlow.destinationFlowTypes) || void 0 === e3 ? void 0 : e3.length) > 1 && this.parentFlow.destinationFlowTypesInclude(r2.flowTypes.flowTypeInQueueCall); + } + get doesQueueTransferToCurrentQueueVoicemail() { + var e3; + const t3 = this.isQueueTransfer && this.parentFlow.isInQueueCallFlow, i3 = this.isQueueTransfer && this.parentFlow.isCommonModuleFlow && 1 === (null === (e3 = this.parentFlow.destinationFlowTypes) || void 0 === e3 ? void 0 : e3.length) && this.parentFlow.destinationFlowTypes[0] === r2.flowTypes.flowTypeInQueueCall; + return !(!t3 && !i3); + } + setOpenedBefore() { + this.model.uiMetaData || (this.model.uiMetaData = {}), this.model.uiMetaData.openedBefore = true; + } + get transferTargetType() { + return this.model.transferTargetType; + } + set transferTargetType(e3) { + switch (e3) { + case E.User: + case E.Group: + case E.Queue: + this.model.transferTargetType = e3, this.setOutOfService(), s.validate(this, true); + } + } + get transferTargetUser() { + return this.transferTarget; + } + validate(e3) { + const t3 = a.default.filter(this.parentFlow.supportedLanguageOptions, (e4) => !!this.parentFlow.destinationFlowTypes.find((t4) => !S.supportsVoicemailTypeForFlowType(e4.language, t4, this.transferTargetType))); + if (t3.length > 0) { + const i3 = y.getListDisplayString(a.default.map(t3, function(e4) { + return S.getLanguageNameAndCodeDisplay(e4.language); + })), n3 = t3.length > 1 ? b.transferVoicemail.voicemailTypeNonVocalByLangs : b.transferVoicemail.voicemailTypeNonVocalByLang; + e3.addWarning(this, (0, o.sprintf)(n3, this.transferTargetType.displayName, i3)); + } + super.validate(e3); + } + } + R.info = O.default.createActionInfo({ actionClass: R, canBeInTask: true, canBeTreeNode: true, helpTopic: A.helpTopics.actions.transferVoicemail, modelClass: i2(63207), name: b.actions.transfers.voicemail, scriptingName: "ArchActionTransferToVoicemail" }), t2.A = R; + }, 81467: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.languageSkillManager = t2.LanguageSkillManager = void 0; + const n2 = i2(31635), r2 = i2(24032), o = n2.__importStar(i2(1360)), a = n2.__importDefault(i2(47532)), s = i2(81801), l = i2(27862), u = i2(61846); + class d extends a.default { + get requiredAuth() { + return s.externalAuthorizations.authStrings.languageSkillsView; + } + get dependencyType() { + return l.LanguageSkill; + } + constructor() { + super(), this.topic = (0, r2.getTopic)("languageSkills"), this.apiCallList = u.getLanguageSkills, this.apiCallSingle = u.getLanguageSkill, this.className = "LanguageSkillManager", this.defaultMatchingStyle = o.startsWith, this.dependencyContext = null, this.suppressSearch = false, this._initialize(); + } + } + t2.LanguageSkillManager = d, t2.languageSkillManager = new d(); + }, 81500: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(84655)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "externalContact"; + } + get initialValue() { + return this._initialValue; + } + get displayTypeName() { + return "ArchVariableExternalContact"; + } + get isArchVariableExternalContact() { + return true; + } + } + t2.default = r2; + }, 81516: (e2, t2, i2) => { + "use strict"; + var n2; + Object.defineProperty(t2, "__esModule", { value: true }), t2.ExpressionTypeStringOptions = void 0; + const r2 = i2(31635), o = r2.__importDefault(i2(22465)), a = i2(80295), s = i2(65615), l = r2.__importDefault(i2(22226)), u = i2(55909), d = i2(33951); + class c extends s.BaseExpressionTypeCollectionOptions { + static create(e3, t3) { + return new this(t3).invokeOptionsCallback(e3); + } + constructor(e3) { + super(e3), this._disableSpellcheck = false, this._blankDeterminationShouldNotTrim = false, this._wantLowerCaseStringLiteralValue = false, (0, a.makeUnenumerable)(this, "_blankWarningText"), (0, a.makeUnenumerable)(this, "_disableSpellcheck"), (0, a.makeUnenumerable)(this, "_blankDeterminationShouldNotTrim"), (0, a.makeUnenumerable)(this, "_stringFacets"), (0, a.makeUnenumerable)(this, "_wantLowerCaseStringLiteralValue"), this.facets = o.default.create(); + } + _setFromOptions(e3) { + super._setFromOptions(e3), this._setOptionIfSet(this.setDisableSpellcheck, e3.disableSpellcheck), this._setOptionIfSet(this.setBlankDeterminationShouldNotTrim, e3.blankDeterminationShouldNotTrim), this._setOptionIfSet(this.setBlankWarningText, e3.blankWarningText, "_blankWarningText"), this._setOptionIfSet(this.setWantLowerCaseStringLiteralValue, e3.wantLowerCaseStringLiteralValue); + } + get allowEmpty() { + return this.facets.allowEmpty; + } + get className() { + return "ExpressionTypeStringOptions"; + } + get isExpressionTypeStringOptions() { + return true; + } + get blankDeterminationShouldNotTrim() { + return this._blankDeterminationShouldNotTrim; + } + set blankDeterminationShouldNotTrim(e3) { + this._blankDeterminationShouldNotTrim = d.ParameterValidator.expectBool(e3, () => u.ParameterInfo.createPropertySet(this.className, "blankDeterminationShouldNotTrim", "value")); + } + get blankWarningText() { + return this._blankWarningText; + } + set blankWarningText(e3) { + this._blankWarningText = d.ParameterValidator.expectString(e3, () => u.ParameterInfo.createPropertySet(this.className, "blankWarningText", "value")); + } + get disableSpellcheck() { + return this._disableSpellcheck; + } + set disableSpellcheck(e3) { + this._disableSpellcheck = d.ParameterValidator.expectBool(e3, () => u.ParameterInfo.createPropertySet(this.className, "disableSpellcheck", "value")); + } + get wantLowerCaseStringLiteralValue() { + return this._wantLowerCaseStringLiteralValue; + } + set wantLowerCaseStringLiteralValue(e3) { + this._wantLowerCaseStringLiteralValue = d.ParameterValidator.expectBool(e3, () => u.ParameterInfo.createPropertySet(this.className, "wantLowerCaseStringLiteralValue", "value")); + } + get facets() { + return this._stringFacets; + } + set facets(e3) { + this._stringFacets = d.ParameterValidator.expectTrue(e3 && true === e3.isStringFacets, e3, "StringFacets", () => u.ParameterInfo.createPropertySet(this.className, "facets", "value")), this._stringFacets = e3; + } + _getDefaultTextForDisplay() { + return this.defaultToExpression ? this.defaultText : this.hasDefaultText ? l.default.getQuotedExpressionStringLiteral(this.defaultText) : void 0; + } + setBlankDeterminationShouldNotTrim(e3) { + return this.blankDeterminationShouldNotTrim = e3, this; + } + setBlankWarningText(e3) { + return this.blankWarningText = e3, this; + } + setDisableSpellcheck(e3) { + return this.disableSpellcheck = e3, this; + } + setWantLowerCaseStringLiteralValue(e3) { + return this.wantLowerCaseStringLiteralValue = e3, this; + } + } + t2.ExpressionTypeStringOptions = c, r2.__decorate([(0, a.enumerable)(true), r2.__metadata("design:type", Boolean), r2.__metadata("design:paramtypes", [Object])], c.prototype, "blankDeterminationShouldNotTrim", null), r2.__decorate([(0, a.enumerable)(true), r2.__metadata("design:type", String), r2.__metadata("design:paramtypes", [Object])], c.prototype, "blankWarningText", null), r2.__decorate([(0, a.enumerable)(true), r2.__metadata("design:type", Boolean), r2.__metadata("design:paramtypes", [Object])], c.prototype, "disableSpellcheck", null), r2.__decorate([(0, a.enumerable)(true), r2.__metadata("design:type", Boolean), r2.__metadata("design:paramtypes", [Boolean])], c.prototype, "wantLowerCaseStringLiteralValue", null), r2.__decorate([(0, a.enumerable)(true), r2.__metadata("design:type", "function" == typeof (n2 = void 0 !== o.default && o.default) ? n2 : Object), r2.__metadata("design:paramtypes", [Object])], c.prototype, "facets", null); + }, 81526: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importDefault(i2(96481)), o = n2.__importDefault(i2(56549)), a = n2.__importDefault(i2(94225)), s = i2(30801), l = i2(30888), u = i2(26847), d = n2.__importDefault(i2(66978)); + class c extends r2.default { + constructor(e3) { + super(e3), this._terminationState = this.coreFactory.createArchWrapper(e3.terminationState); + } + get _actionTypeId() { + return s.dialogEngineActionType; + } + get displayTypeName() { + return this._scriptingName; + } + get isArchActionCallDialogEngineBot() { + return true; + } + get intentParameters() { + return this.coreFactory.createArchWrapper(this._getCoreViewModel().outputs); + } + get dialogEngineOutputsFailure() { + return this._coreActionViewModel.errorBindings ? this.coreFactory.createArchWrapper(this._coreActionViewModel.errorBindings) : null; + } + get outputKnowledge() { + return this._getOutputById(u.outputIds.knowledge, true); + } + get outputNoIntent() { + return this._getOutputById(u.outputIds.noIntent, true); + } + _setDialogEngineBotByIdAsync(e3, t3) { + return n2.__awaiter(this, void 0, void 0, function* () { + return this._checkItemIsValidLiteralString(this._infoParm("botId", "setDialogEngineBotByIdAsync"), e3, false), this._checkItemIsValidFunction(this._infoParm("callbackFunction", "setDialogEngineBotByIdAsync"), t3, true), this._coreActionViewModel.botCategoryProperty.idValue = e3, this._coreActionViewModel.getAutoSelectedBotRunnable().then((i3) => { + if (!i3) { + const t4 = `There was an error getting the full bot details for bot with ID ${e3}`; + throw this.logError(t4), t4; + } + return this._coreActionViewModel.setBotRunnableByViewModel(i3), a.default.executeCallback(this, "setDialogEngineBotByIdAsync", t3, this); + }); + }); + } + setDialogEngineBotByIdAsync(e3, t3) { + return n2.__awaiter(this, void 0, void 0, function* () { + return this._checkItemIsValidLiteralString(this._infoParm("dialogEngineBotId", "setDialogEngineBotByIdAsync"), e3, false), this._checkItemIsValidFunction(this._infoParm("callbackFunction", "setDialogEngineBotByIdAsync"), t3, true), o.default.findItemByIdAsync(l.dialogEngineBotManager, e3, "dialog engine bot").then((i3) => (this.logNote(`Found partial info for the Dialog Engine named '${i3.name}' for the bot ID of '${e3}'. Getting full bot details.`), d.default.addPromise(this._setDialogEngineBotByIdAsync(i3.id, t3), "setDialogEngineBotByIdAsync"))); + }); + } + setDialogEngineBotByNameAsync(e3, t3) { + return n2.__awaiter(this, void 0, void 0, function* () { + return this._checkItemIsValidLiteralString(this._infoParm("botName", "setDialogEngineBotByNameAsync"), e3), this._checkItemIsValidFunction(this._infoParm("callbackFunction", "setDialogEngineBotByNameAsync"), t3, true), o.default.findItemByValueAsync(l.dialogEngineBotManager, e3, "dialog engine bot").then((i3) => (this.logNote(`Found info for the Dialog Engine bot named '${i3.name}' for the passed bot name of '${e3}'.`), this._coreActionViewModel.botCategoryProperty.idValue = i3.id, this._coreActionViewModel.getAutoSelectedBotRunnable().then((e4) => { + if (!e4) { + const e5 = `There was an error getting the full bot details for bot with ID ${i3.id}`; + throw this.logError(e5), e5; + } + return this._coreActionViewModel.setBotRunnableByViewModel(e4), a.default.executeCallback(this, "setDialogEngineBotByNameAsync", t3, this); + }))); + }); + } + get terminationState() { + return this._terminationState; + } + } + t2.default = c; + }, 81562: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.secureCallFlowListManager = t2.SecureCallFlowListManager = void 0; + const n2 = i2(46761), r2 = i2(6109), o = i2(96618), a = i2(24032), s = i2(27862); + class l extends r2.FlowListManager { + get dependencyType() { + return s.SecureCallFlow; + } + constructor() { + super(), this.topic = (0, a.getTopic)("secureCallFlowListManager"), this.briefManager = n2.briefCallSecureFlowListManager, this.additionalQueryParams = { type: o.flowTypes.flowTypeSecureCall }, this.className = "SecureCallFlowListManager", this.flowType = o.flowTypes.flowTypeSecureCall, this._initialize(); + } + } + t2.SecureCallFlowListManager = l, t2.secureCallFlowListManager = new l(); + }, 81574: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importDefault(i2(23335)), o = n2.__importDefault(i2(73198)); + class a extends r2.default { + constructor(e3) { + super(e3); + } + get displayTypeName() { + return "ArchBaseValueSingleton"; + } + get isArchBaseValueSingleton() { + return true; + } + get isCollection() { + return false; + } + setExpressionNotSet() { + return this.setExpression(o.default.notSet); + } + get valueText() { + let e3 = this._getValueTextCommon(); + return void 0 === e3 && this.isLiteral && (e3 = this._getCoreExpressionText()), "string" == typeof e3 ? e3 : ""; + } + } + t2.default = a; + }, 81621: (e2, t2, i2) => { + const { Response: n2 } = i2(4251), { ResponseLibrary: r2 } = i2(23436), { ResponseAsset: o } = i2(23343), { ResponseAssetList: a } = i2(82699), { ResponseLibraryList: s } = i2(89240), { ResponseList: l } = i2(24247), u = i2(36019).default; + function d() { + } + const c = new d(); + d.prototype.getLibraries = u.request("GET", "{public-api.apps}/api/v2/responsemanagement/libraries", s), d.prototype.getLibrary = u.request("GET", "{public-api.apps}/api/v2/responsemanagement/libraries/{id}", r2), d.prototype.getResponses = u.request("POST", "{public-api.apps}/api/v2/responsemanagement/responses/query", l), d.prototype.getResponse = u.request("GET", "{public-api.apps}/api/v2/responsemanagement/responses/{id}", n2), d.prototype.getResponseAsset = u.request("GET", "{public-api.apps}/api/v2/responsemanagement/responseassets/{id}", o), d.prototype.getResponseAssets = u.request("POST", "{public-api.apps}/api/v2/responsemanagement/responseassets/search", a), d.prototype.getResponseAssetUploadURL = u.request("POST", "{public-api.apps}/api/v2/responsemanagement/responseassets/uploads"), d.prototype.getResponseAssetUploadStatus = u.request("GET", "{public-api.apps}/api/v2/responsemanagement/responseassets/status/{statusId}"), d.prototype.uploadResponseAsset = u.request("PUT"), c.getResponseAssets.addOptions({ ignoreBadResponse: true }), c.getResponseAsset.addOptions({ ignoreBadResponse: true }), c.getResponse.addOptions({ ignoreBadResponse: true }), c.uploadResponseAsset.addOptions({ ignoreBadResponse: true }), c.getResponseAssetUploadURL.addOptions({ ignoreBadResponse: true }), c.getResponseAssetUploadStatus.addOptions({ ignoreBadResponse: true }), e2.exports = c; + }, 81713: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.timeout = t2.TimeoutError = void 0; + var n2 = i2(62326), r2 = i2(85345), o = i2(65212), a = i2(19724), s = i2(9619), l = i2(17214), u = i2(28619); + function d(e3) { + throw new t2.TimeoutError(e3); + } + t2.TimeoutError = s.createErrorClass(function(e3) { + return function(t3) { + void 0 === t3 && (t3 = null), e3(this), this.message = "Timeout has occurred", this.name = "TimeoutError", this.info = t3; + }; + }), t2.timeout = function(e3, t3) { + var i3 = r2.isValidDate(e3) ? { first: e3 } : "number" == typeof e3 ? { each: e3 } : e3, s2 = i3.first, c = i3.each, p = i3.with, _ = void 0 === p ? d : p, h = i3.scheduler, m = void 0 === h ? null != t3 ? t3 : n2.asyncScheduler : h, g = i3.meta, f = void 0 === g ? null : g; + if (null == s2 && null == c) throw new TypeError("No timeout provided."); + return o.operate(function(e4, t4) { + var i4, n3, r3 = null, o2 = 0, d2 = function(e5) { + n3 = u.executeSchedule(t4, m, function() { + try { + i4.unsubscribe(), a.innerFrom(_({ meta: f, lastValue: r3, seen: o2 })).subscribe(t4); + } catch (e6) { + t4.error(e6); + } + }, e5); + }; + i4 = e4.subscribe(l.createOperatorSubscriber(t4, function(e5) { + null == n3 || n3.unsubscribe(), o2++, t4.next(r3 = e5), c > 0 && d2(c); + }, void 0, void 0, function() { + (null == n3 ? void 0 : n3.closed) || null == n3 || n3.unsubscribe(), r3 = null; + })), !o2 && d2(null != s2 ? "number" == typeof s2 ? s2 : +s2 - m.now() : c); + }); + }; + }, 81778: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.ScheduleType = void 0; + const n2 = i2(31635), r2 = i2(14394), o = i2(71056), a = i2(4861), s = i2(27491), l = n2.__importDefault(i2(22226)), u = i2(80428), d = i2(94765); + class c extends d.ExpressionType { + constructor(e3, t3, i3) { + super(e3, t3, i3); + } + get className() { + return "ScheduleType"; + } + createExpressionOptionClass() { + return new o.ExpressionTypeNetworkObjectOptions(this.isCollection); + } + get listManager() { + return a.scheduleManager.getBriefManagerWithFallback(); + } + canConvertLitToExpression(e3) { + return s.expressionDataService.isFunctionTextAvailableForFlowTypeAndOperandTypes("FindSchedule", e3, [r2.globalTypes.string]); + } + convertLitToExpression(e3, t3) { + return t3 && this.canConvertLitToExpression(e3) ? `FindSchedule(${l.default.getQuotedExpressionStringLiteral(t3)})` : ""; + } + } + t2.ScheduleType = c, c.typeIdentifier = u.expressionTypeNames.schedule; + }, 81801: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.externalAuthorizations = void 0; + const n2 = i2(31635).__importDefault(i2(92140)), r2 = i2(17604), o = i2(47957), a = (o.externalAuths.agenticVirtualAgentView.displayTitle, o.externalAuths.agenticVirtualAgentVersionView.displayTitle, o.externalAuths.auditView.displayTitle, o.externalAuths.botConnectorView.displayTitle, o.externalAuths.bridgeActionView.displayTitle, o.externalAuths.conversationConferenceAdd.displayTitle, o.externalAuths.conversationCustomAttributesSchemaView.conversationCustomAttributesSchemaViewDisplayTitle, o.externalAuths.contactListsView.displayTitle, o.externalAuths.customerIntentsView.customerIntentsViewDisplayTitle, o.externalAuths.dataTablesView.displayTitle, o.externalAuths.decisionTablesSearch.decisionTablesSearchDisplayTitle, o.externalAuths.divisionsView.divisionsViewDisplayTitle, o.externalAuths.emergencyGroupView.displayTitle, o.externalAuths.flowLaunch.displayTitle, o.externalAuths.flowMilestonesView.displayTitle, o.externalAuths.flowOutcomesView.displayTitle, o.externalAuths.flowView.displayTitle, o.externalAuths.grammarView.displayTitle, o.externalAuths.guideView.displayTitle, o.externalAuths.guideVersionView.displayTitle, o.externalAuths.integrationsActionView.displayTitle, o.externalAuths.integrationView.displayTitle, o.externalAuths.knowledgeBaseView.knowledgeBaseViewDisplayTitle, o.externalAuths.knowledgeBaseDocumentView.knowledgeBaseDocumentViewDisplayTitle, o.externalAuths.languageSkillsView.displayTitle, o.externalAuths.messagingIntegrationView.messagingIntegrationViewDisplayTitle, o.externalAuths.nluView.displayTitle, o.externalAuths.oAuthClientView.oAuthClientViewDisplayTitle, o.externalAuths.promptsSystemView.displayTitle, o.externalAuths.promptsUserView.displayTitle, o.externalAuths.processAutomationTriggerView.displayTitle, o.externalAuths.queuesView.displayTitle, o.externalAuths.responseAssetAdd.displayTitle, o.externalAuths.responseAssetView.displayTitle, o.externalAuths.responseLibraryView.displayTitle, o.externalAuths.responseView.displayTitle, o.externalAuths.schedulesView.displayTitle, o.externalAuths.scheduleGroupView.displayTitle, o.externalAuths.scriptsView.displayTitle, o.externalAuths.smsPhoneNumberView.smsPhoneNumberViewDisplayTitle, o.externalAuths.surveyFormView.displayTitle, o.externalAuths.utilizationLabelView.utilizationLabelViewDisplayTitle, o.externalAuths.voicemailReceive.displayTitle, o.externalAuths.wrapupCodesView.displayTitle, o.externalAuths.worktypesView.displayTitle, { contactListsSearch: { permissionInfo: { domain: "outbound", entityName: "contactList", action: "search", displayText: "outbound:contactList:search" }, commonResourceKey: "contactListsView" }, contactListsView: { permissionInfo: { domain: "outbound", entityName: "contactList", action: "view", displayText: "outbound:contactList:view" } }, agenticVirtualAgentView: { permissionInfo: { domain: "agentic", entityName: "virtualAgent", action: "view", displayText: "agentic:virtualAgent:view" } }, agenticVirtualAgentVersionView: { permissionInfo: { domain: "agentic", entityName: "virtualAgentVersion", action: "view", displayText: "agentic:virtualAgentVersion:view" } }, auditView: { permissionInfo: { domain: "outbound", entityName: "audit", action: "view", displayText: "outbound:audit:view" } }, botConnectorView: { permissionInfo: { domain: "integration", entityName: "botConnector", action: "view", displayText: "integration:botConnector:view" } }, bridgeActionView: { permissionInfo: { domain: "bridge", entityName: "actions", action: "view", displayText: "bridge:actions:view" } }, conversationConferenceAdd: { permissionInfo: { domain: "conversation", entityName: "conference", action: "add", displayText: "conversation:conference:add" } }, conversationCustomAttributesSchemaView: { permissionInfo: { domain: "conversation", entityName: "customAttributes", action: "schemaView", displayText: "conversation:customAttributes:schemaView" } }, dataTablesSearch: { permissionInfo: { domain: "architect", entityName: "datatable", action: "search", displayText: "architect:datatable:search" }, commonResourceKey: "dataTablesView" }, dataTablesView: { permissionInfo: { domain: "architect", entityName: "datatable", action: "view", displayText: "architect:datatable:view" } }, decisionTablesSearch: { permissionInfo: { domain: "businessrules", entityName: "decisiontable", action: "search", displayText: "businessrules:decisionTable:search" } }, divisionsView: { permissionInfo: { domain: "authorization", entityName: "division", action: "view", displayText: "authorization:division:view" } }, emergencyGroupSearch: { permissionInfo: { domain: "routing", entityName: "emergencyGroup", action: "search", displayText: "routing:emergencyGroup:search" }, commonResourceKey: "emergencyGroupView" }, emergencyGroupView: { permissionInfo: { domain: "routing", entityName: "emergencyGroup", action: "view", displayText: "routing:emergencyGroup:view" } }, flowSearch: { permissionInfo: { domain: "architect", entityName: "flow", action: "search", displayText: "architect:flow:search" }, commonResourceKey: "flowView" }, flowLaunch: { permissionInfo: { domain: "architect", entityName: "flow", action: "launch", displayText: "architect:flow:launch" } }, flowView: { permissionInfo: { domain: "architect", entityName: "flow", action: "view", displayText: "architect:flow:view" } }, flowMilestonesSearch: { permissionInfo: { domain: "architect", entityName: "flowMilestone", action: "search", displayText: "architect:flowMilestone:search" }, commonResourceKey: "flowMilestonesView" }, flowMilestonesView: { permissionInfo: { domain: "architect", entityName: "flowMilestone", action: "view", displayText: "architect:flowMilestone:view" } }, flowOutcomesSearch: { permissionInfo: { domain: "architect", entityName: "flowOutcome", action: "search", displayText: "architect:flowOutcome:search" }, commonResourceKey: "flowOutcomesView" }, flowOutcomesView: { permissionInfo: { domain: "architect", entityName: "flowOutcome", action: "view", displayText: "architect:flowOutcome:view" } }, grammarView: { permissionInfo: { domain: "architect", entityName: "grammars", action: "view", displayText: "architect:grammar:view" } }, guideView: { permissionInfo: { domain: "aiStudio", entityName: "guide", action: "view", displayText: "aiStudio:guide:view" } }, guideVersionView: { permissionInfo: { domain: "aiStudio", entityName: "guideVersion", action: "view", displayText: "aiStudio:guideVersion:view" } }, integrationsActionView: { permissionInfo: { domain: "integrations", entityName: "action", action: "view", displayText: "integrations:action:view" } }, integrationView: { permissionInfo: { domain: "integrations", entityName: "integration", action: "view", displayText: "integrations:integration:view" } }, knowledgeBaseView: { permissionInfo: { domain: "knowledge", entityName: "knowledgeBase", action: "view", displayText: "knowledge:knowledgebase:view" } }, knowledgeBaseDocumentView: { permissionInfo: { domain: "knowledge", entityName: "document", action: "view", displayText: "knowledge:document:view" } }, languageSkillsView: { permissionInfo: { domain: "routing", entityName: "skill", action: "manage", displayText: "routing:skill:manage" } }, messagingIntegrationView: { permissionInfo: { domain: "integrations", entityName: "messaging", action: "view", displayText: "integrations:messaging:view" } }, nluView: { permissionInfo: { domain: "languageUnderstanding", entityName: "nluDomain", action: "view", displayText: "languageUnderstanding:nluDomain:view" } }, oAuthClientView: { permissionInfo: { domain: "oauth", entityName: "client", action: "view", displayText: "oauth:client:view" } }, promptsSystemView: { permissionInfo: { domain: "architect", entityName: "systemPrompt", action: "view", displayText: "architect:systemPrompt:view" } }, promptsUserView: { permissionInfo: { domain: "architect", entityName: "userPrompt", action: "view", displayText: "architect:userPrompt:view" } }, queuesSearch: { permissionInfo: { domain: "routing", entityName: "queue", action: "search", displayText: "routing:queue:search" }, commonResourceKey: "queuesView" }, queuesView: { permissionInfo: { domain: "routing", entityName: "queue", action: "view", displayText: "routing:queue:view" } }, responseAssetAdd: { permissionInfo: { domain: "responseAssets", entityName: "asset", action: "add", displayText: "responseAssets:asset:add" } }, responseAssetView: { permissionInfo: { domain: "responseAssets", entityName: "asset", action: "view", displayText: "responseAssets:asset:view" } }, responseLibraryView: { permissionInfo: { domain: "responses", entityName: "library", action: "view", displayText: "responses:library:view" } }, responseView: { permissionInfo: { domain: "responses", entityName: "response", action: "view", displayText: "responses:response:view" } }, schedulesSearch: { permissionInfo: { domain: "routing", entityName: "schedule", action: "search", displayText: "routing:schedule:search" }, commonResourceKey: "schedulesView" }, schedulesView: { permissionInfo: { domain: "routing", entityName: "schedule", action: "view", displayText: "routing:schedule:view" } }, scheduleGroupSearch: { permissionInfo: { domain: "routing", entityName: "scheduleGroup", action: "search", displayText: "routing:scheduleGroup:search" }, commonResourceKey: "scheduleGroupView" }, scheduleGroupView: { permissionInfo: { domain: "routing", entityName: "scheduleGroup", action: "view", displayText: "routing:scheduleGroup:view" } }, scriptsView: { permissionInfo: { domain: "scripter", entityName: "publishedScript", action: "view", displayText: "scripter:publishedScript:view" } }, scriptsSearch: { permissionInfo: { domain: "scripter", entityName: "publishedScript", action: "search", displayText: "scripter:publishedScript:search" }, commonResourceKey: "scriptsView" }, smsPhoneNumberView: { permissionInfo: { domain: "sms", entityName: "smsPhoneNumber", action: "view", displayText: "sms:phoneNumber:view" } }, surveyFormView: { permissionInfo: { domain: "quality", entityName: "surveyForm", action: "view", displayText: "quality:surveyForm:view" } }, utilizationLabelView: { permissionInfo: { domain: "routing", entityName: "utilizationLabel", action: "view", displayText: "routing:utilizationLabel:view" } }, voicemailReceive: { permissionInfo: { domain: "voicemail", entityName: "voicemail", action: "receive", displayText: "voicemail:voicemail:receive" } }, processAutomationTriggerView: { permissionInfo: { domain: "processautomation", entityName: "trigger", action: "view", displayText: "processautomation:trigger:view" } }, wrapupCodesSearch: { permissionInfo: { domain: "routing", entityName: "wrapupCode", action: "search", displayText: "routing:wrapupCode:search" }, commonResourceKey: "wrapupCodesView" }, wrapupCodesView: { permissionInfo: { domain: "routing", entityName: "wrapupCode", action: "view", displayText: "routing:wrapupCode:view" } }, worktypesView: { permissionInfo: { domain: "workitems", entityName: "worktype", action: "view", displayText: "workitems:worktype:view" } } }), s = { agenticVirtualAgentView: "agenticVirtualAgentView", agenticVirtualAgentVersionView: "agenticVirtualAgentVersionView", auditView: "auditView", botConnectorView: "botConnectorView", bridgeActionView: "bridgeActionView", contactListsSearch: "contactListsSearch", contactListsView: "contactListsView", conversationConferenceAdd: "conversationConferenceAdd", conversationCustomAttributesSchemaView: "conversationCustomAttributesSchemaView", dataTablesSearch: "dataTablesSearch", dataTablesView: "dataTablesView", decisionTablesSearch: "decisionTablesSearch", divisionsView: "divisionsView", emergencyGroupSearch: "emergencyGroupSearch", emergencyGroupView: "emergencyGroupView", flowLaunch: "flowLaunch", flowSearch: "flowSearch", flowView: "flowView", flowMilestonesSearch: "flowMilestonesSearch", flowMilestonesView: "flowMilestonesView", flowOutcomesSearch: "flowOutcomesSearch", flowOutcomesView: "flowOutcomesView", grammarView: "grammarView", guideView: "guideView", guideVersionView: "guideVersionView", integrationsActionView: "integrationsActionView", integrationView: "integrationView", knowledgeBaseView: "knowledgeBaseView", knowledgeBaseDocumentView: "knowledgeBaseDocumentView", languageSkillsView: "languageSkillsView", messagingIntegrationView: "messagingIntegrationView", nluView: "nluView", oAuthClientView: "oAuthClientView", processAutomationTriggerView: "processAutomationTriggerView", promptsSystemView: "promptsSystemView", promptsUserView: "promptsUserView", queuesView: "queuesView", queuesSearch: "queuesSearch", responseAssetAdd: "responseAssetAdd", responseAssetView: "responseAssetView", responseLibraryView: "responseLibraryView", responseView: "responseView", schedulesSearch: "schedulesSearch", schedulesView: "schedulesView", scheduleGroupSearch: "scheduleGroupSearch", scheduleGroupView: "scheduleGroupView", scriptsView: "scriptsView", scriptsSearch: "scriptsSearch", smsPhoneNumberView: "smsPhoneNumberView", surveyFormView: "surveyFormView", utilizationLabelView: "utilizationLabelView", voicemailReceive: "voicemailReceive", wrapupCodesSearch: "wrapupCodesSearch", wrapupCodesView: "wrapupCodesView", worktypesView: "worktypesView" }, l = { agenticVirtualAgentView: { havePermission: true }, agenticVirtualAgentVersionView: { havePermission: true }, auditView: { havePermission: true }, botConnectorView: { havePermission: true }, bridgeActionView: { havePermission: true }, contactListsSearch: { havePermission: true }, contactListsView: { havePermission: true }, conversationConferenceAdd: { havePermission: true }, conversationCustomAttributesSchemaView: { havePermission: true }, dataTablesView: { havePermission: true }, dataTablesSearch: { havePermission: true }, decisionTablesSearch: { havePermission: true }, divisionsView: { havePermission: true }, emergencyGroupSearch: { havePermission: true }, emergencyGroupView: { havePermission: true }, flowLaunch: { havePermission: true }, flowSearch: { havePermission: true }, flowView: { havePermission: true }, flowMilestonesSearch: { havePermission: true }, flowMilestonesView: { havePermission: true }, flowOutcomesSearch: { havePermission: true }, flowOutcomesView: { havePermission: true }, grammarView: { havePermission: true }, guideView: { havePermission: true }, guideVersionView: { havePermission: true }, integrationsActionView: { havePermission: true }, integrationView: { havePermission: true }, knowledgeBaseView: { havePermission: true }, knowledgeBaseDocumentView: { havePermission: true }, languageSkillsView: { havePermission: true }, messagingIntegrationView: { havePermission: true }, nluView: { havePermission: true }, oAuthClientView: { havePermission: true }, responseAssetAdd: { havePermission: true }, responseAssetView: { havePermission: true }, responseLibraryView: { havePermission: true }, responseView: { havePermission: true }, processAutomationTriggerView: { havePermission: true }, promptsUserView: { havePermission: true }, promptsSystemView: { havePermission: true }, schedulesSearch: { havePermission: true }, schedulesView: { havePermission: true }, scheduleGroupSearch: { havePermission: true }, scheduleGroupView: { havePermission: true }, scriptsSearch: { havePermission: true }, scriptsView: { havePermission: true }, smsPhoneNumberView: { havePermission: true }, surveyFormView: { havePermission: true }, queuesSearch: { havePermission: true }, queuesView: { havePermission: true }, utilizationLabelView: { havePermission: true }, voicemailReceive: { havePermission: true }, wrapupCodesSearch: { havePermission: true }, wrapupCodesView: { havePermission: true }, worktypesView: { havePermission: true } }; + t2.externalAuthorizations = new class { + constructor() { + this.authStrings = s, this.currentAuthorizations = l, this.externalAuthorizations = a; + } + _getAuthStringDisplayTitle(e3, t3) { + if (n2.default.isObject(t3) || (t3 = this._getAuthWarningResourceObject(e3), n2.default.isObject(t3))) return t3.displayTitle ? t3.displayTitle : t3[`${e3}DisplayTitle`]; + } + _getAuthWarningResourceObject(e3) { + const t3 = this.externalAuthorizations[e3]; + let i3; + return o.externalAuths[e3] ? i3 = o.externalAuths[e3] : t3.commonResourceKey && o.externalAuths[t3.commonResourceKey] && (i3 = o.externalAuths[t3.commonResourceKey]), i3; + } + getFormattedAuthWarning(e3) { + const t3 = this._getAuthStringDisplayTitle(e3); + if (!t3) return ""; + const i3 = this.externalAuthorizations[e3], n3 = "
  • " + (0, r2.sprintf)(o.externalAuths.missingPermissionContext, i3.permissionInfo.displayText) + "
"; + return (0, r2.sprintf)(o.externalAuths.overviewContext, t3, n3); + } + getPermissionString(e3) { + return `${e3.domain}:${e3.entityName}:${e3.action}`; + } + getSchedulesPermissions() { + return { schedulesView: this.externalAuthorizations.schedulesView, scheduleGroupView: this.externalAuthorizations.scheduleGroupView, emergencyGroupView: this.externalAuthorizations.emergencyGroupView }; + } + getAuthValidationWarning(e3, t3) { + const i3 = this._getAuthStringDisplayTitle(e3); + if (!i3) return ""; + const n3 = t3 ? o.externalAuths.thirdPersonValidationContext : o.externalAuths.validationContext; + return (0, r2.sprintf)(n3, i3); + } + setAuthorization(e3, t3) { + const i3 = this.currentAuthorizations[t3]; + i3 && (i3.havePermission = e3); + } + checkHasRequiredAuth(e3) { + return this.currentAuthorizations[e3].havePermission; + } + }(); + }, 81818: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importDefault(i2(39732)), o = n2.__importDefault(i2(4778)), a = n2.__importDefault(i2(22456)); + class s extends r2.default { + constructor({ id: e3, name: t3, description: i3, version: n3, generators: r3, partConfigurators: o2, resultExpressionType: a2, type: s2, expressionDefs: l, restrictToFlowTypeOrTypes: u, categoryIdentifierOrIdentifiers: d }) { + super(e3, t3, i3, n3, r3, o2, a2 = a2 || s2, { languageTag: "", outputMode: "" }, u, d, a2.getArchIcon()); + } + get className() { + return "BuilderPartContainerLanguageOutputModeDef"; + } + isAvailableForFlow(e3) { + const t3 = null == e3 ? void 0 : e3.definition.supportsMoreThanOneLanguage, i3 = (null == e3 ? void 0 : e3.definition.outputModes.length) > 1; + return this.supportsLanguageTag && t3 && this.supportsOutputMode && i3; + } + get isBuilderPartContainerLanguageOutputModeDef() { + return true; + } + get supportsLanguageTag() { + return true; + } + get supportsOutputMode() { + return true; + } + createBuilderPartViewModel(e3, t3, i3) { + const n3 = new o.default({ builderPartDefId: this.id, criteria: i3, version: this.version }); + return this.reviveItem(e3, t3, n3); + } + reviveItem(e3, t3, i3, n3) { + return new a.default({ builderViewModel: e3, owningExpressionViewModel: t3, builderPartModel: i3, reId: !!n3 }); + } + } + t2.default = s; + }, 81823: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = i2(96618), o = i2(28562), a = i2(80428), s = i2(82319), l = n2.__importDefault(i2(5730)), u = i2(47957); + class d extends l.default { + static get managedProperties() { + return [{ label: u.askCommon.question, options: s.ExpressionTypeCommunicationOptions.create((e3) => e3.setAllowSecure(true).setDescriptionInfo(u.askCommon.question, u.askCommon.questionDescriptionAskActions).setIninTestingField("question").setIsOptional(true).setDefaultToNoValue(true).setDoNotTransitionToNoValue(false).setDefaultToBuilderId(o.builderIds.parts.genericCommunication).setUiPropertyOrder(5)), optionsForSpecificFlowTypes: [{ flowTypes: [r2.flowTypes.flowTypeDigitalBot], options: s.ExpressionTypeCommunicationOptions.create((e3) => e3.setAllowSecure(true).setDescriptionInfo(u.askCommon.question, u.askCommon.questionDescriptionAskActions).setIninTestingField("question").setIsOptional(true).setDefaultToNoValue(true).setDoNotTransitionToNoValue(false).setDefaultToBuilderId(o.builderIds.parts.markdownCommunication).setUiPropertyOrder(5)) }], yamlOptions: d.createYamlOptions("question", (e3) => e3.setExportOrder(30).setPropertyName("question")), property: "question", type: a.expressionTypeNames.communication }]; + } + constructor(e3) { + super(e3.parentFlow, e3); + } + setNewInstanceDefaults(e3) { + var t3; + super.setNewInstanceDefaults(e3), null === (t3 = this.question.builder) || void 0 === t3 || t3.deleteAllParts(); + } + setNewInstanceQuestionText(e3) { + return this.question.setCommunicationBuilderText(e3); + } + get hasOptionalPaths() { + return true; + } + getDetails() { + return this.getDetailsForProperties([this.question]); + } + } + t2.default = d, d.className = "BaseAskActionViewModel"; + }, 81832: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importDefault(i2(92140)), o = i2(30801), a = n2.__importDefault(i2(65305)); + class s extends a.default { + constructor(e3) { + super(e3); + } + get _actionTypeId() { + return o.callTaskActionType; + } + get displayTypeName() { + return this._scriptingName; + } + get isArchActionCallTask() { + return true; + } + get taskInputs() { + return this.coreFactory.createArchWrapper(this._getCoreViewModel().inputs); + } + get taskOutputs() { + return this.coreFactory.createArchWrapper(this._getCoreViewModel().outputs); + } + get targetTask() { + if (!this._targetArchTask && this._getCoreViewModel().taskReference) { + const e3 = this._coreActionViewModel.parentFlow; + if (e3 && r2.default.isArray(e3.tasks) && e3.tasks.length) { + const t3 = e3.tasks, i3 = r2.default.findWhere(t3, { id: this._getCoreViewModel().taskReference }); + i3 && (this._targetArchTask = this.coreFactory.createArchWrapper(i3)); + } + } + return this._targetArchTask; + } + set targetTask(e3) { + if (r2.default.isNull(e3) || r2.default.isUndefined(e3)) return this._targetArchTask = null, this.logNote("setting the task to call to null"), void this._coreActionViewModel.containerActionProperty.setReference(null); + const t3 = this._infoPropSet("archTaskTarget", "targetTask"); + this._checkItem(t3, !r2.default.isObject(e3) || !e3.isArchTask, "you cannot set the task target to an object that is not an Architect task."), this._checkItemSameParentFlow(t3, this.parentFlow, e3.parentFlow); + const i3 = this._coreActionViewModel.containerActionProperty.getInvalidReferenceReason(e3._getCoreViewModel()); + this._checkItem(t3, i3, `the supplied targetTask value is not valid as the target task. Reason: '${i3}'`), this._targetArchTask = e3, this.logNote("setting the task to call to " + e3.logStr), this._coreActionViewModel.containerActionProperty.setReference(e3._getCoreViewModel()); + } + } + t2.default = s; + }, 81858: (e2, t2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.archShortcuts = t2.archRenumber = t2.archPhoneNumberPhase2 = t2.archFuncToAudioTTSWithLang = t2.archExpressionNoConfigError = t2.archExpressionBuilders = void 0, t2.archExpressionBuilders = "archExpressionBuilders", t2.archExpressionNoConfigError = "archExpressionNoConfigError", t2.archFuncToAudioTTSWithLang = "archFuncToAudioTTSWithLang", t2.archPhoneNumberPhase2 = "archPhoneNumberPhase2", t2.archRenumber = "archRenumber", t2.archShortcuts = "archShortcuts"; + }, 81901: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importDefault(i2(92140)), o = n2.__importDefault(i2(13720)), a = n2.__importDefault(i2(78432)), s = n2.__importDefault(i2(67222)), l = n2.__importDefault(i2(93229)), u = n2.__importDefault(i2(46422)); + class d extends o.default { + constructor(e3) { + super(), this._archFilterClausesOrContainers = [], r2.default.isUndefined(e3) ? e3 = a.default.FILTER_CONTAINER_OPERATORS.and : this._checkItemIsValidLiteralStringEnum(this._infoParmCtor("operator"), e3, a.default.FILTER_CONTAINER_OPERATORS_ALL), this.operator = e3; + } + addClausePropertyCallback(e3, t3, i3) { + this._checkItemIsValidLiteralString(this._infoParm("propertyName", "addClausePropertyCallback"), e3), this._checkItemIsValidFunction(this._infoParm("callbackFunction", "addClausePropertyCallback"), t3), this._checkItemIsValidLiteralBool(this._infoParm("propertyMustExist", "addClausePropertyCallback"), i3, true), (r2.default.isUndefined(i3) || null === i3) && (i3 = true); + const n3 = new s.default(e3, t3, i3); + return this._archFilterClausesOrContainers.push(n3), n3; + } + addClausePropertyValueEquals(e3, t3, i3) { + this._checkItemIsValidLiteralString(this._infoParm("propertyName", "addClausePropertyValueEquals"), e3), this._checkItemIsValidLiteralBool(this._infoParm("propertyMustExist", "addClausePropertyValueEquals"), i3, true), (r2.default.isUndefined(i3) || null === i3) && (i3 = true); + const n3 = new l.default(e3, t3, i3); + return this._archFilterClausesOrContainers.push(n3), n3; + } + addClausePropertyValueNotEquals(e3, t3, i3) { + this._checkItemIsValidLiteralString(this._infoParm("propertyName", "addClausePropertyValueNotEquals"), e3), this._checkItemIsValidLiteralBool(this._infoParm("propertyMustExist", "addClausePropertyValueNotEquals"), i3, true), (r2.default.isUndefined(i3) || null === i3) && (i3 = true); + const n3 = new u.default(e3, t3, i3); + return this._archFilterClausesOrContainers.push(n3), n3; + } + addFilterClauseContainer(e3) { + (r2.default.isUndefined(e3) || null === e3) && (e3 = a.default.FILTER_CONTAINER_OPERATORS.and), this._checkItemIsValidLiteralStringEnum(this._infoParm("operator", "addFilterClauseContainer"), e3, a.default.FILTER_CONTAINER_OPERATORS_ALL); + const t3 = new d(e3); + return this._archFilterClausesOrContainers.push(t3), t3; + } + get displayTypeName() { + return "ArchFilterClauseContainer"; + } + get isArchFilterClauseContainer() { + return true; + } + get operator() { + return this._operator; + } + set operator(e3) { + this._checkItemIsValidLiteralStringEnum(this._infoPropSet("newValue", "operator"), e3, a.default.FILTER_CONTAINER_OPERATORS_ALL), this._operator = e3; + } + _isMatch(e3) { + if (0 === this._archFilterClausesOrContainers.length) return true; + switch (this.operator) { + case a.default.FILTER_CONTAINER_OPERATORS.and: + return r2.default.isUndefined(r2.default.find(this._archFilterClausesOrContainers, (t3) => !t3.isMatch(e3))); + case a.default.FILTER_CONTAINER_OPERATORS.or: + return !r2.default.isUndefined(r2.default.find(this._archFilterClausesOrContainers, (t3) => t3.isMatch(e3))); + default: + this._logErrorInternalAndThrow(`Unsupported filter clause container operator of '${this.operator}'.`); + } + } + } + t2.default = d; + }, 81904: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.AskForAuthenticationActionModel = void 0; + const n2 = i2(31635), r2 = i2(30801), o = i2(80434), a = i2(80295), s = n2.__importDefault(i2(7401)), l = i2(80295); + class u extends o.BaseActionWithFailureOutputsNoInputNoMatchModel { + constructor(e3) { + super(e3), this.__type = u.__type, (0, l.makeUnenumerable)(this, "_signInMessage"), (0, l.makeUnenumerable)(this, "_successMessage"), (0, l.makeUnenumerable)(this, "_authenticationCompletionTimeout"); + } + get signInMessage() { + return this._signInMessage; + } + set signInMessage(e3) { + this._signInMessage = this.reviveItem(e3, s.default); + } + get successMessage() { + return this._successMessage; + } + set successMessage(e3) { + this._successMessage = this.reviveItem(e3, s.default); + } + get authenticationCompletionTimeout() { + return this._authenticationCompletionTimeout; + } + set authenticationCompletionTimeout(e3) { + this._authenticationCompletionTimeout = this.reviveItem(e3, s.default); + } + pasteResolveOldToNewValues(e3) { + super.pasteResolveOldToNewValues(e3), this._signInMessage.pasteResolveOldToNewValues(e3), this._successMessage.pasteResolveOldToNewValues(e3), this._authenticationCompletionTimeout.pasteResolveOldToNewValues(e3); + } + pasteReIdOrRename(e3) { + super.pasteReIdOrRename(e3), this._signInMessage.pasteReIdOrRename(e3), this._successMessage.pasteReIdOrRename(e3), this._authenticationCompletionTimeout.pasteReIdOrRename(e3); + } + } + t2.AskForAuthenticationActionModel = u, u.__type = r2.askForAuthenticationActionType, n2.__decorate([(0, a.enumerable)(true), n2.__metadata("design:type", Object), n2.__metadata("design:paramtypes", [Object])], u.prototype, "signInMessage", null), n2.__decorate([(0, a.enumerable)(true), n2.__metadata("design:type", Object), n2.__metadata("design:paramtypes", [Object])], u.prototype, "successMessage", null), n2.__decorate([(0, a.enumerable)(true), n2.__metadata("design:type", Object), n2.__metadata("design:paramtypes", [Object])], u.prototype, "authenticationCompletionTimeout", null), u.registerType(); + }, 81907: (e2, t2, i2) => { + "use strict"; + const n2 = i2(31635), r2 = i2(12179), o = n2.__importDefault(i2(97891)), a = i2(24383), s = n2.__importDefault(i2(5730)), l = i2(47957); + class u extends s.default { + constructor(e3, t3) { + super(e3.parentFlow, e3), this._loadModel(t3); + } + } + u.info = o.default.createActionInfo({ actionClass: u, canBeInTask: true, canBeTreeNode: true, helpTopic: r2.helpTopics.actions.disconnect, modelClass: i2(44095), name: l.actions.disconnect, scriptingName: "ArchActionDisconnect", termination: a.terminatesFlow }), t2.A = u; + }, 81912: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(20692)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "chooserCollection"; + } + get initialValue() { + return this._initialValue; + } + get displayTypeName() { + return "ArchVariableChooserCollection"; + } + get isArchVariableChooserCollection() { + return true; + } + } + t2.default = r2; + }, 81948: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.TEST_getFlowCount = function() { + return Object.keys(le).length; + }, t2.TEST_getFlowWithName = function(e3) { + return Object.values(le).find((t3) => t3.displayName = e3); + }; + const n2 = i2(31635), r2 = i2(96618), o = n2.__importDefault(i2(33231)), a = i2(79364), s = i2(79364), l = i2(92794), u = i2(17604), d = n2.__importDefault(i2(92140)), c = n2.__importDefault(i2(96875)), p = n2.__importStar(i2(71004)), _ = n2.__importDefault(i2(64584)), h = n2.__importDefault(i2(73198)), m = n2.__importDefault(i2(65302)), g = i2(66314), f = i2(14394), T = n2.__importDefault(i2(85499)), y = i2(84464), S = i2(66942), A = i2(16321), N = n2.__importDefault(i2(33139)), O = n2.__importStar(i2(12847)), I = i2(12847), v = n2.__importStar(i2(36781)), C = n2.__importDefault(i2(55006)), b = n2.__importStar(i2(27099)), E = n2.__importStar(i2(46920)), R = n2.__importDefault(i2(98114)), w = i2(19384), D = n2.__importStar(i2(19312)), P = n2.__importStar(i2(1638)), M = n2.__importStar(i2(18325)), F = n2.__importStar(i2(58380)), L = n2.__importStar(i2(32108)), x = n2.__importStar(i2(98442)), k = n2.__importStar(i2(1115)), V = n2.__importDefault(i2(92859)), U = n2.__importDefault(i2(59805)), B = n2.__importStar(i2(14187)), G = n2.__importDefault(i2(12889)), j = i2(32854), W = n2.__importDefault(i2(54508)), q = n2.__importDefault(i2(92346)), Y = i2(73266), H = n2.__importDefault(i2(31151)), J = i2(6099), z = n2.__importDefault(i2(56510)), K = n2.__importDefault(i2(29102)), $ = n2.__importDefault(i2(68460)), Q = i2(1782), X = n2.__importDefault(i2(60571)), Z = i2(32531), ee = n2.__importDefault(i2(90396)), te = i2(37345), ie = i2(89266), ne = i2(81120), re = i2(47957), oe = i2(25015), ae = i2(85160), se = i2(92330), le = {}; + class ue extends $.default { + get wrappedYamlName() { + } + constructor(e3) { + super(void 0), this.tasks = [], this.nextTrackingNumber = void 0, this.flowNotLockedError = false, this.isImporting = false, this.discardChanges = false, this._receivedInitialValidationData = false, this._supportedLanguageOptions = [], this._commonModules = [], this._autoManagedSettings = [], this._uninitializedObjects = [], this.loaded$ = new s.BehaviorSubject(false), this.info = e3, this.topic = e3.topic, this._validationResults = new U.default(this, false), this._validationComplete$ = new a.Subject(), this._singleItemValidated$ = new a.Subject(), this.validationComplete$ = this._validationComplete$.pipe((0, l.filter)((e4) => !!e4)), this.singleItemValidated$ = this._singleItemValidated$.pipe((0, l.filter)(({ validationResults: e4, validatedItem: t3 }) => t3 && e4 && !this.isDestroyedOrDestroying && this.loaded && !t3.isDestroyedOrDestroying)), this.data = new W.default(this), this.debugging = this._addToAutoManageSettings(new q.default(this)), this.defaultSettings = this._addToAutoManageSettings(new Y.DefaultSettingsViewModel(this)), this.definitions = this._addToAutoManageSettings(new Z.FlowCustomDefinitionsViewModel(this)), this.dependencies = this._addToAutoManageSettings(new H.default(this)), this.languages = this._addToAutoManageSettings(new z.default(this)), this.flowSize = this._addToAutoManageSettings(new J.FlowSizeViewModel(this)), this.customTypes = this._addToAutoManageSettings(new j.CustomTypesViewModel(this)), this.supportsReusableMenus && (this.menuSettings = this._addToAutoManageSettings(new K.default(this))); + } + invokeValidationComplete() { + this._validationComplete$.next(this.validationResults); + } + invokeSingleItemValidated(e3) { + var t3; + this._singleItemValidated$.next({ validationResults: this.validationResults, validatedItem: e3 }), (null === (t3 = e3.parent) || void 0 === t3 ? void 0 : t3.topParent) && this._singleItemValidated$.next({ validationResults: this.validationResults, validatedItem: e3.parent }); + } + get loaded() { + return this.loaded$.value; + } + set loaded(e3) { + this.loaded$.next(e3); + } + get amObjectEventEmitter() { + return true; + } + get supportedLanguageOptions() { + return this._supportedLanguageOptions; + } + set supportedLanguageOptions(e3) { + this._supportedLanguageOptions = e3; + } + buildConfiguration(e3, t3, i3) { + var n3; + e3.name = this.displayName, e3.description = this.description, this.supportsLanguages && (!(null == i3 ? void 0 : i3.isForFlowYaml) || (null == i3 ? void 0 : i3.isForFlowYaml) && this.languagesSupportDefaultLanguage) && (e3.defaultLanguage = this.defaultLanguage), this.writeTasksToConfig(i3, e3), this.writeMenusToConfig(i3, e3), d.default.each(this._autoManagedSettings, (n4) => { + if (t3 && n4.isDependenciesNode) return; + if ((null == i3 ? void 0 : i3.isForFlowYaml) && !n4.wrappedYamlName) return; + const r4 = n4.getConfiguration(e3, i3); + (null == i3 ? void 0 : i3.isForFlowYaml) && r4 && !d.default.isEmpty(r4) && (e3[n4.wrappedYamlName] = r4); + }); + const r3 = this.data.getConfiguration(e3, i3); + (null == i3 ? void 0 : i3.isForFlowYaml) && !r3.length || (e3.variables = r3); + const o2 = this.variableGroup.getSystemVariablesWithInitialValues(); + if (null == i3 ? void 0 : i3.isForFlowYaml) { + if (e3.division = this.info.division.name, (null === (n3 = this.initialPrompts) || void 0 === n3 ? void 0 : n3.hasAudioSet) && (e3.initialGreeting = this.initialPrompts.getConfiguration(e3, i3)), d.default.isString(e3.defaultLanguage) && (e3.defaultLanguage = e3.defaultLanguage.toLowerCase()), null == o2 ? void 0 : o2.length) { + const t4 = o2.filter((e4) => !e4.initValue.isNoValueMode).map((t5) => t5.getConfiguration(e3, i3)); + t4.length && (e3.variables || (e3.variables = []), e3.variables.push(...t4)); + } + return e3; + } + (null == o2 ? void 0 : o2.length) && (e3.systemInitialValues = o2.reduce((e4, t4) => (e4[t4.id] = t4.initValue.model, e4), {})), e3.nextTrackingNumber = this.nextTrackingNumber, e3.initialSequence = this.initialSequence, e3.type = this.type; + const a2 = oe.getVersionInfo(this); + return e3.flowMetaData.flowDocumentVersion = a2.version, e3.flowMetaData.features = a2.featureToggles, this.uiMetaData && (e3.uiMetaData = d.default.clone(this.uiMetaData)), e3.uiMetaData.bridgeServerActions || (e3.uiMetaData.bridgeServerActions = []), e3.uiMetaData.screenPops || (e3.uiMetaData.screenPops = []), this._commonModules.length && (e3.commonModules = this._commonModules.map((e4) => ({ actionReferences: e4.actionReferences, id: e4.id, model: e4.viewModel ? E.getConfiguration(e4.viewModel) : void 0, name: e4.name, version: e4.version }))), e3; + } + writeTasksToConfig(e3, t3) { + var i3, n3; + if (null === (i3 = this.tasks) || void 0 === i3 ? void 0 : i3.length) if ((null == e3 ? void 0 : e3.isForFlowYaml) && !this.supportsReusableTasks) { + const i4 = this.tasks[0].getConfiguration(t3, e3); + t3.startUpTaskActions = i4.task.actions, (null === (n3 = i4.task.variables) || void 0 === n3 ? void 0 : n3.length) && (t3.startUpTaskVariables = i4.task.variables), delete t3.startUpRef; + } else { + const i4 = (null == e3 ? void 0 : e3.isForFlowYaml) ? N.default.tasks : N.default.flowSequenceItemList; + d.default.isArray(t3[i4]) || (t3[i4] = []), d.default.each(this.tasks, (n4) => { + (null == e3 ? void 0 : e3.isForFlowYaml) && n4.isInlineTask || t3[i4].push(n4.getConfiguration(t3, e3)); + }), (null == e3 ? void 0 : e3.isForFlowYaml) && !t3[i4].length && delete t3[i4]; + } + } + writeMenusToConfig(e3, t3) { + if (this.supportsReusableMenus && this.menus && (this.menus.length || !(null == e3 ? void 0 : e3.isForFlowYaml))) { + const i3 = (null == e3 ? void 0 : e3.isForFlowYaml) ? N.default.menus : N.default.flowSequenceItemList; + d.default.isArray(t3[i3]) || (t3[i3] = []), d.default.each(this.menus, (n3) => { + (null == e3 ? void 0 : e3.isForFlowYaml) && n3.isHidden || t3[i3].push(n3.getConfiguration(t3, e3)); + }); + } + } + canBeValidated() { + return this.loaded && this._receivedInitialValidationData && !this.isDestroyedOrDestroying && this.initializeDesignTimeCalled; + } + checkVersion(e3) { + d.default.each(this.tasks, (t3) => { + t3.checkVersion(e3); + }), d.default.each(this.menus, (t3) => { + t3.checkVersion(e3); + }); + } + get children() { + let e3 = []; + return this.menus && (e3 = e3.concat(...this.menus)), this.tasks && (e3 = e3.concat(...this.tasks)), e3; + } + createMenu(e3) { + if (!this.supportsReusableMenus) return void O.error(`Flow type ${this.type} does not support menus`); + const t3 = new ae(), i3 = new Q.MenuViewModel(this, t3); + return i3.name = e3 || this._getUniqueName(this.menus, re.menu.newDefaultName), this.addNewChild(i3), i3; + } + createTask(e3) { + const t3 = new se(); + t3.name = e3 || this._getUniqueName(this.tasks, re.task.newDefaultName); + const i3 = new G.default(this, t3); + return this.addNewChild(i3), i3; + } + deleteNode(e3, t3) { + if (!e3) return null; + if (this.initialSequence === e3.id) return null; + const i3 = e3.parent; + t3 && e3.isMenuChoice && (e3.task ? (e3.task.isHidden = false, e3.task = null) : e3.menu && (e3.menu.isHidden = false, e3.menu = null)); + const n3 = e3.isMenu ? this.menus : this.tasks, r3 = n3.indexOf(e3); + return !t3 && r3 >= 0 && n3.splice(r3, 1), e3.destroy(), k.validateNode(i3, true), F.fireEvent(this, v.containerListChanged, e3), i3; + } + getOrderedMenusForPrint() { + const e3 = [], t3 = (i3) => { + if (!i3 || d.default.findWhere(e3, { id: i3.id })) return; + e3.push(i3); + const n3 = i3.getOrderedChoices(); + d.default.each(n3, (e4) => { + e4.isSubMenu && t3(e4.menu); + }); + }; + return t3(d.default.findWhere(this.menus, { isStartUpObject: true })), d.default.each(this.menus, t3), e3; + } + get defaultLanguageLCase() { + if (d.default.isString(this.defaultLanguage)) return this.defaultLanguage.toLowerCase(); + } + getFlowConfigurationClass() { + O.error("getFlowConfigurationClass should be implemented by a FlowViewModel class"); + } + createFlowConfiguration(e3, t3) { + if (null == t3 ? void 0 : t3.isForFlowYaml) return {}; + const i3 = new (this.getFlowConfigurationClass())(e3); + return e3 || this.addDefaultConfigSections(i3), i3; + } + get availableVariableScopes() { + const e3 = []; + return f.globalTypes.prompt.isAvailableForFlow(this) && (e3.push(B.scopes.prompt), e3.push(B.scopes.promptSystem)), d.default.union(this.userCreatableVariableScopes, this.builtInVariableScopes, e3); + } + get defaultVariableScope() { + return this.localVariableScope; + } + get localVariableScope() { + return this.definition.variableScope; + } + get builtInVariableScopes() { + return [B.scopes.system]; + } + get channelTypes() { + return this.definition.channelTypes; + } + get channelTypeVariableName() { + return this.definition.channelTypeVariableName; + } + get outputModes() { + return this.definition.outputModes; + } + get outputModeVariableName() { + return this.definition.outputModeVariableName; + } + get userCreatableVariableScopes() { + return [this.defaultVariableScope]; + } + get allowedAssignableVariableScopes() { + return this.userCreatableVariableScopes; + } + get definition() { + return this._definition || (this._definition = R.default.getDefinitionForFlowType(this.type)), this._definition; + } + get deleted() { + var e3; + return (null === (e3 = this.info) || void 0 === e3 ? void 0 : e3.deleted) || false; + } + get description() { + return this.info.description; + } + set description(e3) { + this.info.description = e3; + } + get displayName() { + return this.info.displayName; + } + set displayName(e3) { + e3 = e3.replace("/", ""), this.info.displayName = e3; + } + getDisplayName() { + return this.containerLabel; + } + get containerLabel() { + return re.flow.flow; + } + get containerLabelAndName() { + return (0, u.sprintf)(re.labelAndName, this.containerLabel, this.displayName); + } + get ensureAudioInPrompts() { + return this.validateHasAudioOnly; + } + set ensureAudioInPrompts(e3) { + this.promptMediaToValidate = e3 ? L.audioOnly : L.audioAndTTS; + } + get flowTypeDisplayName() { + return R.default.getDefinitionForFlowType(this.type).typeDisplayName; + } + get flowSequenceItemList() { + return this._flowSequenceItemList; + } + get validateHasAudio() { + return L.hasMediaType(this.promptMediaToValidate, L.promptMediaTypes.audio); + } + get validateHasTTS() { + return L.hasMediaType(this.promptMediaToValidate, L.promptMediaTypes.tts); + } + get validateHasAudioOnly() { + return this.validateHasAudio && !this.validateHasTTS; + } + get promptMediaToValidate() { + var e3, t3; + return this.supportsAudio ? (null === (e3 = this.uiMetaData) || void 0 === e3 ? void 0 : e3.promptMediaToValidate) ? d.default.isString(this.uiMetaData.promptMediaToValidate) ? this.uiMetaData.promptMediaToValidate.toString().split(/,\s*/) : this.uiMetaData.promptMediaToValidate : (null === (t3 = this.uiMetaData) || void 0 === t3 ? void 0 : t3.ensureAudioInPrompts) ? L.audioOnly : L.audioAndTTS : []; + } + set promptMediaToValidate(e3) { + this.supportsAudio ? (this.uiMetaData || (this.uiMetaData = {}), this.uiMetaData.promptMediaToValidate = e3, this.uiMetaData.ensureAudioInPrompts = this.validateHasAudioOnly) : this.topic.error(`can't set promptMediaToValidate to ${e3} because it doesn't support audio`); + } + flowNameIsInvalidMessage(e3) { + return e3 ? e3.trim().match(/-debug$/i) ? re.editFlow.noDebugPostfix : e3.indexOf("/") > -1 ? re.editFlow.flowNameInvalidCharacter : null : re.editFlow.flowNameCannotBeBlank; + } + getAllowableFlowInputTypes() { + return m.default.getTypeGroup(this)._getFlowInputTypes(this.type); + } + getAllowableFlowOutputTypes() { + return m.default.getTypeGroup(this)._getFlowOutputTypes(this.type); + } + getCreatableDataTypes() { + return m.default.getTypeGroup(this)._getFlowCreatableDataTypes(this); + } + getChild(e3) { + if (!e3) return null; + if (this[e3]) return this[e3]; + let t3; + for (let i3 = 0; i3 < this.children.length; i3++) { + if (t3 = this.children[i3], t3.id === e3) return t3; + const n3 = t3.getChild(e3); + if (n3) return n3; + } + return null; + } + addNewChild(e3) { + e3.isTask ? this.tasks.push(e3) : e3.isMenu && this.menus.push(e3), e3.initialize(), this.initializeDesignTimeCalled && (e3.initializeDesignTime(), k.validateNode(e3, true), F.fireEvent(this, v.containerListChanged, e3)); + } + getUiMetadataInfo(e3, t3) { + if (this.uiMetaData) return d.default.findWhere(this.uiMetaData[e3], t3); + } + getUiMetadataInfoById(e3, t3) { + return this.getUiMetadataInfo(e3, { id: t3 }); + } + getUsesSpeechRec() { + return !!this.definition.supportsSpeechRec && this._getUsesSpeechRec(); + } + getSiblings(e3) { + return e3 && !e3.isTopLevelNode && e3.parent ? d.default.reject(e3.parent.children, (t3) => t3.id === e3.id) : null; + } + getVariable(e3) { + if (this.variableGroup) return this.variableGroup.getVariable(e3); + } + get hasDependencies() { + return !!this.dependencies; + } + get id() { + return this.info.id; + } + get instanceId() { + return this._instanceId || (this.id ? this._instanceId = d.default.uniqueId(`${this.id}-`) : (O.warn("instance id being generated before there is a flow id"), this._instanceId = d.default.uniqueId("unknown-"))), this._instanceId; + } + get isCreated() { + return "__" !== this.id.slice(0, 2); + } + get isFlowViewModel() { + return true; + } + get isReadOnly() { + return !this.info || this.info.isReadOnly; + } + loadConfiguration(e3) { + return this._finishLoadTimeCallback = O.time(`${this.type} flow was loaded in: `, 1e4), this.nextTrackingNumber = void 0, this._startUpObject = void 0, this.requiresFeatures && d.default.each(this.requiresFeatures, (e4) => { + if (b.isDisabled(e4)) { + const t3 = "Unable to load flow configuration because the feature toggle '" + e4 + "' is not available."; + throw this.topic.error(t3), t3; + } + }), this.uiMetaData = e3.uiMetaData, p.createVariableGroupForFlow(this, e3.systemInitialValues), d.default.each(this._autoManagedSettings, (t3) => { + "flowDefinitions" === t3.id && t3.loadConfiguration(e3); + }), this._loadConfiguration(e3); + } + get validationResults() { + return this._validationResults; + } + set validationResults(e3) { + this._validationResults = e3; + } + queuedAsyncValidate() { + return this._queuedAsyncValidate || (this._queuedAsyncValidate = ne(c.default.validateFlow.bind(c.default, this))), this._queuedAsyncValidate(); + } + get isAutomateFlowType() { + return this.definition.isAutomateFlowType; + } + get isCallFlowType() { + return this.definition.isCallFlowType; + } + get supportsAddVariablesInDataView() { + return this.definition.supportsAddVariablesInDataView; + } + get supportsAutoDeletingVariablesWithNoUsages() { + return this.definition.supportsAutoDeletingVariablesWithNoUsages; + } + get supportsComplexDataTypes() { + return this.definition.supportsComplexTypes; + } + get supportsConversationSummary() { + return this.definition.supportsConversationSummary; + } + get supportsContactDataType() { + return this.definition.supportsContactDataType; + } + get supportsDataViewFiltering() { + return this.definition.supportsDataViewFiltering; + } + get supportsErrorAudio() { + return this.definition.supportsErrorAudio; + } + get supportsAudio() { + return !!this.destinationFlowTypes.find((e3) => R.default.getOrgAndFlowTypeSupportAudio(e3)); + } + get supportsDigital() { + return !!this.destinationFlowTypes.find((e3) => r2.flowTypes.isAutomateOrCiceroFlowType(e3)); + } + get supportsFlowInputVariables() { + return this.definition.supportsFlowInputVariables; + } + get supportsFlowOutputVariables() { + return this.definition.supportsFlowOutputVariables; + } + get supportsFlowInputAndOutputVariables() { + return this.supportsFlowInputVariables && this.supportsFlowOutputVariables; + } + get supportsGrammars() { + return this.definition.supportsGrammars; + } + get grammarsInUse() { + return null; + } + get speechToTextEnginesInUse() { + return null; + } + get supportsLanguages() { + return this.definition.supportsLanguages; + } + get supportsAddRemoveLanguages() { + return this.destinationFlowTypes.every((e3) => R.default.doesFlowTypeSupportLanguageAddRemove(e3)); + } + get languageChangesAreImmediate() { + return this.destinationFlowTypes.every((e3) => R.default.areLanguageChangesImmediate(e3)); + } + get supportsMoreThanOneLanguage() { + return this.destinationFlowTypes.every((e3) => R.default.doesFlowTypeSupportMoreThanOneLanguage(e3)); + } + canAddLanguage() { + const e3 = !!this.supportedLanguageOptions.length; + return !(this.isReadOnly || !this.supportsLanguages || e3 && !this.supportsMoreThanOneLanguage) && (!e3 || this.supportsAddRemoveLanguages); + } + get canOnlyAddLanguageInAnotherFlowInstance() { + return !(this.canAddLanguage() || !this.supportsMoreThanOneLanguage || !this.supportsAddRemoveLanguages) && this._canOnlyAddLanguageInAnotherFlowInstance; + } + get _canOnlyAddLanguageInAnotherFlowInstance() { + return false; + } + get languagesSupportDefaultLanguageSkill() { + return this.definition.languagesSupportDefaultLanguageSkill; + } + get languagesSupportTtsAndAsrSettings() { + return this.definition.languagesSupportTtsAndAsrSettings; + } + get languagesSupportSpeechToTextSettings() { + return this.definition.languagesSupportSttSetting; + } + get supportsMultilingualKnowledge() { + return this.definition.supportsMultilingualKnowledge; + } + get supportsKnowledgePaths() { + return this.definition.supportsKnowledgePaths; + } + get supportsEndToEndKnowledgeHandling() { + return this.definition.supportsEndToEndKnowledgeHandling; + } + get supportsAdvancedKnowledgeHandling() { + return this.definition.supportsAdvancedKnowledgeHandling; + } + get languagesSupportDefaultLanguage() { + return this.definition.languagesSupportDefaultLanguage; + } + get languagesSupportTtsAndAsrRuntime() { + return this.definition.languagesSupportTtsAndAsrRuntime; + } + get parentFlow() { + return this; + } + get topParentFlow() { + return this; + } + get supportsScopedData() { + return true; + } + get supportsDefaultLanguageChange() { + return this.definition.supportsDefaultLanguageChange; + } + get supportsReusableMenus() { + return this.definition.supportsReusableMenus; + } + get supportsSpeechRec() { + return !!this.definition.supportsSpeechRec && d.default.some(this.destinationFlowTypes, (e3) => R.default.getDefinitionForFlowType(e3).supportsSpeechRec); + } + get supportsReusableTasks() { + return this.definition.supportsReusableTasks; + } + get supportsStates() { + return this.definition.supportsStates; + } + get supportsMultipleStates() { + return this.definition.supportsMultipleStates; + } + get supportsStateInputVariables() { + return this.definition.supportsStateInputVariables; + } + get supportsStateOutputVariables() { + return this.definition.supportsStateOutputVariables; + } + get supportsTaskInputVariables() { + return this.definition.supportsTaskInputVariables; + } + get supportsTaskOutputVariables() { + return this.definition.supportsTaskOutputVariables; + } + get supportsTaskInputAndOutputVariables() { + return this.supportsTaskInputVariables && this.supportsTaskOutputVariables; + } + get supportsSecureVariables() { + return this.definition.supportsSecureVariables; + } + get supportsTasksWithOutputPaths() { + return this.definition.supportsTasksWithOutputPaths; + } + speechRecEnabled() { + return false; + } + get hasVariableGroupSet() { + return !!this._variableGroup; + } + get variableGroup() { + return this._variableGroup || O.error("trying to get variableGroup before it was set"), this._variableGroup; + } + set variableGroup(e3) { + this._variableGroup && (O.error("trying to get reset the variable group, you probably want to be calling variableGroup.reset instead"), this._variableGroup.destroy()), this._variableGroup = e3; + } + cleanUiMetadataInfoSection(e3, t3, i3) { + try { + if (!e3 || !t3) return; + const n3 = this.uiMetaData && this.uiMetaData[e3]; + if (!n3) return; + const r3 = []; + t3.forEach((e4) => { + y.actionRegistrationService.getActionIdsForActionType(this.parentFlow, e4).forEach((e5) => { + const t4 = e5[i3]; + t4 && r3.indexOf(t4) < 0 && r3.push(t4); + }); + }); + for (let e4 = n3.length - 1; e4 >= 0; e4--) r3.indexOf(n3[e4].id) < 0 && n3.splice(e4, 1); + } catch (e4) { + this.topic.exception(e4, "Exception during cleanUiMetadataInfoSection"); + } + } + tryRemoveUiMetadataInfo(e3, t3, i3, n3, r3, o2) { + if (!(e3 && t3 && i3 && n3 && this.loaded)) return; + if (!o2) { + let t4 = []; + if (this.traverse(new V.default({ actionCallback: (e4, t5) => { + d.default.contains(n3, e4.model.__type) && e4[r3] === i3 && t5.data.push(e4); + }, data: t4 })), t4 = d.default.reject(t4, (t5) => t5.id === e3.id), t4.length > 0) return; + } + const a2 = this.uiMetaData && this.uiMetaData[t3]; + if (a2) { + for (let e4 = 0; e4 < a2.length; e4++) if (a2[e4].id === i3) return void a2.splice(e4, 1); + } + } + isVersionLoaded(e3) { + const t3 = this.versions.convertVersionUrl(e3); + return this.versions.alreadyLoaded(t3); + } + onTypeMapCreated() { + this.definitions.addCustomTypesToFlowExpressionTypeGroup(); + } + registerExpressionTypeGroupEventSink() { + this.definitions.registerExpressionTypeGroupEventSink(); + } + requestConfiguration(e3, t3, i3) { + return n2.__awaiter(this, void 0, void 0, function* () { + try { + const n3 = this.versions.convertVersionUrl(e3); + if (!t3 && this.versions.alreadyLoaded(n3)) return this; + const r3 = i3 ? { ignoreBadResponse: true } : void 0, o2 = n3 === M.latest ? yield te.getConfiguration(this.id, this.overrideWireFlowConfiguration, r3) : yield te.getVersionConfiguration(this.id, n3, this.overrideWireFlowVersionConfiguration, r3); + return this.versions.loadedConfigurationVersion(n3), i3 ? yield E.loadConfigForEmbedding(this, o2) : yield E.tryLoadConfig(this, o2), this; + } catch (e4) { + throw i3 || (this.topic.errorPromise(e4, "Failure during requestConfiguration"), this.versions.loadedConfigurationVersion(void 0)), e4; + } + }); + } + get overrideWireFlowConfiguration() { + } + get overrideWireFlowVersionConfiguration() { + } + search(e3) { + e3.checkId(null, this.id, this.displayName), e3.checkName(null, this.displayName, re.flow.flow), e3.checkText(null, this.description, re.search.flowDescription), d.default.each(this.tasks, e3.addToQueue.bind(e3)), d.default.each(this.menus, e3.addToQueue.bind(e3)), d.default.each(this._autoManagedSettings, (t3) => { + t3.isDisplayableNode && e3.addToQueue(t3); + }), e3.addToQueue(this.data); + } + setReceivedInitialValidationData() { + this._receivedInitialValidationData = true, d.default.each(this._commonModules, (e3) => { + var t3; + null === (t3 = e3.viewModel) || void 0 === t3 || t3.setReceivedInitialValidationData(); + }); + } + setUiMetadataInfo(e3, t3, i3 = "id") { + this.uiMetaData || (this.uiMetaData = {}), this.uiMetaData[e3] || (this.uiMetaData[e3] = []), this.uiMetaData[e3].length && t3[i3] && (this.uiMetaData[e3] = this.uiMetaData[e3].filter((e4) => e4[i3] !== t3[i3])), this.uiMetaData[e3].push(t3); + } + get shouldParseExpressions() { + return this._receivedInitialValidationData || !this.isCreated; + } + get className() { + return "FlowViewModel"; + } + get maxFlowSize() { + return this.definition.maxFlowSize; + } + get maxNameLength() { + return this.definition.commonLimits.name.maxLength; + } + get nodeGuxIcon() { + return "file"; + } + get startUpObject() { + if (this.initialSequence) return this._startUpObject && !this._startUpObject.isDestroyed && this.initialSequence === this._startUpObject.id || (this._startUpObject = w.flowElementRegistrationService.getItemById(this, this.initialSequence)), this._startUpObject || this.isDestroyedOrDestroying || !this.loaded || this.topic.traceOnce("noStartUpObject", (e3) => e3.errorWithErrorObjectInfo("Failed to get startUpObject", this, true)), this._startUpObject; + } + set startUpObject(e3) { + this._startUpObject && k.validateNode(this._startUpObject, true), e3 && e3.isTopLevelNode && (this.initialSequence = e3.id, this._startUpObject = this.initialSequence ? this.getChild(this.initialSequence) : void 0, F.fireEvent(this, v.startUpObjectChanged)), this._startUpObject ? k.validateNode(this._startUpObject, true) : this.topic.errorWithErrorObjectInfo(`Failed to set startUpObject with className: "${null == e3 ? void 0 : e3.className}"`, e3, true); + } + calcFlowSizeAsync() { + this.isEmbeddedFlow || this.isDestroyedOrDestroying || this.loaded && !this.isReadOnly && (this._callFlowSizeTimerId && clearTimeout(this._callFlowSizeTimerId), this._callFlowSizeTimerId = setTimeout(() => v.emitter.emit(v.checkSize), 2.5 * h.default.msPerSecond)); + } + traverse(e3) { + e3 && !e3.isCanceled && [this.tasks, this.menus].forEach((t3) => { + if (t3) { + for (let i3 = t3.length - 1; i3 >= 0; i3--) if (t3[i3].traverse(e3), e3.isCanceled) return; + } + }); + } + get supportsFlowExecutionData() { + return C.default.flowTypeSupportsExecutionData(this.type); + } + get type() { + return this.info.type; + } + getDestinationFlowTypesThatSupportTtsAndAsrAtRuntime(e3) { + const t3 = this.destinationFlowTypes.filter((e4) => R.default.doesFlowTypeLanguagesSupportTtsAndAsrRuntime(e4)); + return e3 || t3 && t3.length ? t3 : [this.info.type]; + } + getAllDestinationFlowTypesSupportAudioDataPlaybackForLang(e3) { + return this.getDestinationFlowTypesThatSupportTtsAndAsrAtRuntime().every((t3) => e3.getSupportsAudioDataPlaybackForFlowType(t3)); + } + getAllDestinationFlowTypesSupportSpeechRecForLang(e3) { + return this.getDestinationFlowTypesThatSupportTtsAndAsrAtRuntime().every((t3) => e3.getSupportsSpeechRecForFlowType(t3)); + } + get hasDestinationFlowTypesThatSupportTtsAndAsrAtRuntime() { + return this.getDestinationFlowTypesThatSupportTtsAndAsrAtRuntime(true).length > 0; + } + getUnsupportedFlowTypes(e3) { + return d.default.isArray(e3) ? d.default.without(this.destinationFlowTypes, ...e3) : []; + } + get destinationFlowTypes() { + return [this.info.type]; + } + get destinationFlowTypeMap() { + return void 0 === this._destinationFlowTypeMap && (this._destinationFlowTypeMap = { [this.info.type]: true }), this._destinationFlowTypeMap; + } + destinationFlowTypesInclude(e3) { + return !!this.destinationFlowTypeMap[e3]; + } + updateInitialValueDependencies() { + d.default.each(this.variableGroup.flowVariables, (e3) => { + e3.updateDependencies(); + }), d.default.each(this.variableGroup.taskVariables, (e3) => { + e3.updateDependencies(); + }), this.variableGroup.getSystemVariablesWithInitialValues().forEach((e3) => e3.updateDependencies()); + } + updateDependencies() { + d.default.each(this.tasks, (e3) => { + e3.updateDependencies(); + }), d.default.each(this.menus, (e3) => { + e3.updateDependencies(); + }), d.default.each(this._autoManagedSettings, (e3) => e3.updateDependencies()), this._cleanUpCommonModulesWithInvalidActionReference(), d.default.each(this._commonModules, (e3) => { + var t3; + return null === (t3 = e3.viewModel) || void 0 === t3 ? void 0 : t3.updateDependencies(); + }), this.updateInitialValueDependencies(); + } + validate(e3) { + A.bootstrapService.flowTypes[this.type] && A.bootstrapService.flowTypes[this.type].isAvailable || e3.addError(this, (0, u.sprintf)(re.missingRequiredProducts.flowType.unavailable, this.type), true); + const t3 = D.flowNameIsInvalidMessage(this.displayName); + t3 && e3.addError(this, t3, true), this.startUpObject || e3.addError(this, re.flow.noStartUpObject, true), !this.defaultLanguage && this.definition.languagesSupportDefaultLanguage && e3.addError(this, re.flow.noDefaultLanguage, true), this.flowSize.validateSize(e3); + } + get versions() { + return this.info.versions; + } + getSupportedLanguagesForTtsEngine(e3) { + if (e3 && this.supportsLanguages && this.languagesSupportTtsAndAsrSettings) return this.languages.getLanguagesForTTSEngine(e3); + } + getSupportedLanguagesWithNoEngineSelected() { + if (this.supportsLanguages && this.languagesSupportTtsAndAsrSettings) return this.languages.getLanguagesWithNoEngineSelected(); + } + setNewInstanceDefaults(e3) { + const t3 = []; + return d.default.each(this._autoManagedSettings, (e4) => { + if (d.default.isFunction(e4.setNewInstanceDefaults)) { + const i3 = e4.setNewInstanceDefaults(); + o.default.isPromiseAlike(i3) && t3.push(i3); + } + }), t3.length ? o.default.all(t3).then(() => this) : o.default.resolve(this); + } + createInitialActions() { + return n2.__awaiter(this, void 0, void 0, function* () { + const e3 = yield this._createInitialActions(); + return k.validateFlow(this), e3; + }); + } + addCommonModuleActionReference(e3, t3, i3, n3) { + let r3 = this.getCommonModuleReference(t3.id, n3); + return r3 || (r3 = { actionReferences: [], id: t3.id, name: t3.displayName, version: n3, viewModel: i3 }, this._commonModules.push(r3)), r3.actionReferences.includes(e3.id) || r3.actionReferences.push(e3.id), r3; + } + removeCommonModuleActionReference(e3, t3, i3) { + var n3; + if (this.isDestroying) return; + const r3 = this.getCommonModuleReference(t3, i3); + if (r3) { + const t4 = r3.actionReferences.indexOf(e3.id); + t4 >= 0 && r3.actionReferences.splice(t4, 1), 0 === r3.actionReferences.length && (this._commonModules.splice(this._commonModules.indexOf(r3), 1), null === (n3 = r3.viewModel) || void 0 === n3 || n3.destroy()); + } + } + get isEmbeddedFlow() { + return false; + } + get hasCommonModules() { + return this._commonModules.length > 0; + } + getCommonModuleReference(e3, t3) { + return this._commonModules.find((i3) => i3.id === e3 && i3.version === t3); + } + getCommonModuleReferenceByInstanceId(e3) { + return this._commonModules.find((t3) => { + var i3; + return (null === (i3 = t3.viewModel) || void 0 === i3 ? void 0 : i3.instanceId) === e3; + }); + } + _cleanUpCommonModulesWithInvalidActionReference() { + const { valid: e3, invalid: t3 } = this._commonModules.reduce((e4, t4) => { + var i3; + return ((null === (i3 = t4.actionReferences) || void 0 === i3 ? void 0 : i3.length) && t4.actionReferences.some((e5) => y.actionRegistrationService.getActionById(this, e5)) ? e4.valid : e4.invalid).push(t4), e4; + }, { valid: [], invalid: [] }); + this._commonModules = e3, (null == t3 ? void 0 : t3.length) && t3.forEach((e4) => { + this.topic.traceOnce("no action reference for common module", (t4) => t4.errorWithErrorObjectInfo(`Common module ${e4.id} removed from flow, due to no valid action references.`, this, true)); + }); + } + getEmbeddedCommonModules() { + return this._commonModules.map((e3) => e3.viewModel).filter((e3) => !!e3); + } + getEmbeddedCommonModuleTasks() { + return this._commonModules.map((e3) => { + var t3; + return null === (t3 = e3.viewModel) || void 0 === t3 ? void 0 : t3.getCommonModuleTask(); + }).filter((e3) => !!e3); + } + getEmbeddedCommonModuleChild(e3, t3, i3) { + if (!t3 || !e3) return; + let n3; + return i3 && (n3 = this.getCommonModuleReferenceByInstanceId(i3)), n3 || (n3 = this._commonModules.find((t4) => { + var i4; + return (null === (i4 = t4.viewModel) || void 0 === i4 ? void 0 : i4.id) === e3; + })), n3 ? n3.viewModel.getChild(t3) : void 0; + } + addDefaultConfigSections(e3) { + e3 && (e3.flowMetaData = new ie(this.flowMetaData), e3.flowMetaData.minimumServerVersion || (e3.flowMetaData.minimumServerVersion = "1.0"), e3.uiMetaData = {}, e3.variables = [], e3.flowSequenceItemList = []); + } + _addToAutoManageSettings(e3) { + return this._autoManagedSettings.push(e3), e3; + } + getAutoManagedSettings() { + return [...this._autoManagedSettings]; + } + _createInitialActions() { + return o.default.resolve(this); + } + _setInitialTrackingNumberFromConfiguration(e3) { + d.default.isUndefined(this.nextTrackingNumber) ? this.nextTrackingNumber = e3 : this.nextTrackingNumber !== e3 && this.nextTrackingNumber < e3 && (this.topic.error(`something amiss, the tracking number is being set again from ${this.nextTrackingNumber} to ${e3}.`), this.nextTrackingNumber = e3); + } + _getUniqueName(e3, t3, i3, n3) { + let r3, o2; + const a2 = (e4) => e4.name.toLowerCase() === o2, s2 = (e4, t4) => n3 ? d.default.find(e4, (e5) => d.default.find(e5, t4)) : d.default.find(e4, t4); + t3.includes("%1") || (t3 += "%1$s"); + for (let n4 = 1; n4 < 1e3; n4++) if (r3 = (0, u.sprintf)(t3, n4.toString()), o2 = r3.toLowerCase(), !s2(e3, a2)) { + if (!d.default.isArray(i3)) break; + if (!d.default.find(i3, (e4) => { + if (e4) return o2 === e4.toLowerCase(); + })) break; + } + return r3; + } + _extractSequenceItemViewModels(e3, t3, i3) { + if (e3.flowSequenceItemList) for (let n3 = 0; n3 < e3.flowSequenceItemList.length; n3++) { + const r3 = e3.flowSequenceItemList[n3]; + if (d.default.isFunction(i3.loadSequenceItemListForModel) ? i3.loadSequenceItemListForModel(this, r3) : r3.__type === i3.info.typeId) { + const e4 = new i3(this, r3); + t3.push(e4), this._uninitializedObjects.push(e4); + } + } + } + _destroy() { + super._destroy(); + const e3 = O.time(`destroying '${this.toString()}'`); + P.clearPreviewerForFlow(this), delete this._validationResults, d.default.each(this._autoManagedSettings, (e4) => e4.destroy()), d.default.each(this._commonModules, (e4) => { + var t3; + return null === (t3 = e4.viewModel) || void 0 === t3 ? void 0 : t3.destroy(); + }), d.default.destroyContents(this.tasks), d.default.destroyContents(this.menus), this.variableGroup && this.variableGroup.destroy(), this._callFlowSizeTimerId && (clearTimeout(this._callFlowSizeTimerId), this._callFlowSizeTimerId = void 0), e3(); + } + _postDestroy() { + super._postDestroy(), y.actionRegistrationService.flowDestroyed(this), S.audioRegistrationService.flowDestroyed(this), v.emitter.emit(v.cleanUpFlow, this), this.amObjectEventEmitter && F.removeEventEmitter(this); + } + _loadConfiguration(e3) { + e3 && (d.default.isUndefined(this.nextTrackingNumber) && (this.topic.error("nextTrackingNumber should have been set in a derived class"), this._setInitialTrackingNumberFromConfiguration(e3.nextTrackingNumber)), this.supportsReusableMenus && (d.default.destroyContents(this.menus), this.menus = [], this._extractSequenceItemViewModels(e3, this.menus, Q.MenuViewModel)), this.supportsReusableTasks && (d.default.destroyContents(this.tasks), this._extractSequenceItemViewModels(e3, this.tasks, G.default)), this._flowSequenceItemList = e3.flowSequenceItemList, this.initialSequence = e3.initialSequence, this.data.loadVariables(e3.variables), this.supportsLanguages && (e3.defaultLanguage ? this.defaultLanguage = e3.defaultLanguage : this.definition.languagesSupportDefaultLanguage ? this.defaultLanguage = x.getDefaultFlowLanguageCode() : this.defaultLanguage = void 0), this.flowMetaData = e3.flowMetaData, d.default.each(this._autoManagedSettings, (t3) => { + "flowDefinitions" !== t3.id && t3.loadConfiguration(e3); + }), this._commonModules.length = 0, e3.commonModules && this._commonModules.push(...e3.commonModules.map((e4) => { + try { + const t3 = new ee.default({ displayName: e4.name, id: e4.id, type: r2.flowTypes.flowTypeCommonModule }); + let i3; + if (e4.model) { + i3 = new X.default(t3, this); + const n3 = i3.createFlowConfiguration(e4.model); + i3.loadConfiguration(n3); + } + return { actionReferences: e4.actionReferences, id: e4.id, name: e4.name, version: e4.version, viewModel: i3 }; + } catch (t3) { + this.topic.exception(t3, `failed to load config for common module ${e4.id}`); + } + }).filter((e4) => e4)), d.default.invoke(this._uninitializedObjects, "initialize"), this._uninitializedObjects.length = 0); + } + _initializeDesignTime() { + super._initializeDesignTime(), this.tasks && d.default.each(this.tasks, (e3) => { + e3.initializeDesignTime(); + }), this.menus && d.default.each(this.menus, (e3) => { + e3.initializeDesignTime(); + }), d.default.each(this._autoManagedSettings, (e3) => e3.initializeDesignTime()), d.default.each(this._commonModules, (e3) => { + var t3; + return null === (t3 = e3.viewModel) || void 0 === t3 ? void 0 : t3.initializeDesignTime(); + }), this.variableGroup.initializeDesignTime(), this.flowMetaData.ttsDataVersion || (this.flowMetaData.ttsDataVersion = "1.0"); + } + _postInitializeDesignTime() { + super._postInitializeDesignTime(), this.loaded = true, this.isEmbeddedFlow || v.emitter.emit(v.flowLoaded, this), this._finishLoadTimeCallback && (this._finishLoadTimeCallback(), delete this._finishLoadTimeCallback); + } + _getUsesSpeechRec() { + return false; + } + preExport(e3, t3) { + return n2.__awaiter(this, void 0, void 0, function* () { + return e3; + }); + } + preImport(e3) { + return n2.__awaiter(this, void 0, void 0, function* () { + var t3, i3, r3; + return null === (t3 = this.definitions) || void 0 === t3 || t3.loadConfiguration(e3), yield Promise.all(null === (r3 = null === (i3 = e3.variables) || void 0 === i3 ? void 0 : i3.map) || void 0 === r3 ? void 0 : r3.call(i3, (e4) => n2.__awaiter(this, void 0, void 0, function* () { + var t4; + return (0, g.isCustomJsonExpressionDataType)(null == e4 ? void 0 : e4.typeIdentifier) && !(null === (t4 = this.definitions) || void 0 === t4 ? void 0 : t4.getCustomDataTypeDefinition(null == e4 ? void 0 : e4.typeIdentifier)) ? yield T.default.resolveTypeFromId(this, e4.typeIdentifier) : Promise.resolve(); + }))); + }); + } + postCreate(e3) { + return n2.__awaiter(this, void 0, void 0, function* () { + }); + } + postSave(e3, t3) { + return n2.__awaiter(this, void 0, void 0, function* () { + }); + } + postScriptingCreateFlowAsync(e3) { + } + postImport(e3, t3, i3) { + return n2.__awaiter(this, void 0, void 0, function* () { + }); + } + getSaveAsConfig(e3) { + return n2.__awaiter(this, void 0, void 0, function* () { + return { newConfig: E.getStringifiedConfiguration(this) }; + }); + } + toString() { + return `Flow <${super.toString()}>`; + } + get areFlowFilterPreviewOptionsAvailable() { + return false; + } + get flowViewFilterOptions() { + var e3, t3, i3, n3, r3, o2; + return { language: null === (t3 = null === (e3 = this.uiMetaData) || void 0 === e3 ? void 0 : e3.flowViewFilterOptions) || void 0 === t3 ? void 0 : t3.language, outputMode: null === (n3 = null === (i3 = this.uiMetaData) || void 0 === i3 ? void 0 : i3.flowViewFilterOptions) || void 0 === n3 ? void 0 : n3.outputMode, enabled: (null === (o2 = null === (r3 = this.uiMetaData) || void 0 === r3 ? void 0 : r3.flowViewFilterOptions) || void 0 === o2 ? void 0 : o2.enabled) || false }; + } + set flowViewFilterOptions(e3) { + this.uiMetaData || (this.uiMetaData = {}), this.uiMetaData.flowViewFilterOptions = { outputMode: e3.outputMode, language: e3.language, enabled: e3.enabled || false }; + } + get areFlowFilterPreviewOptionsActive() { + var e3, t3, i3; + return !!this.areFlowFilterPreviewOptionsAvailable && (null === (e3 = this.flowViewFilterOptions) || void 0 === e3 ? void 0 : e3.enabled) && (!!(null === (t3 = this.flowViewFilterOptions) || void 0 === t3 ? void 0 : t3.language) || !!(null === (i3 = this.flowViewFilterOptions) || void 0 === i3 ? void 0 : i3.outputMode)); + } + getFlowFilterPreviewOptionsExpressionDisplayOptions(e3) { + if (!this.areFlowFilterPreviewOptionsAvailable) return; + let t3; + return e3.isBuilderMode && (t3 = { richSummary: true }, this.areFlowFilterPreviewOptionsActive && (this.flowViewFilterOptions.outputMode && this.flowViewFilterOptions.language ? t3.criteria = _.default.createForLanguageTagAndOutputMode(this.flowViewFilterOptions.language, this.flowViewFilterOptions.outputMode) : this.flowViewFilterOptions.language ? t3.criteria = _.default.createForLanguageTag(this.flowViewFilterOptions.language) : t3.criteria = _.default.createForOutputMode(this.flowViewFilterOptions.outputMode))), t3; + } + getComplexTypeLiteralValues(e3) { + } + getVariableViewModelFromAssignmentViewModel(e3) { + if (!(null == e3 ? void 0 : e3.id)) return; + let t3 = this.variableGroup.getVariable(e3.id); + if (!t3 && this.hasCommonModules) for (const i3 of this.getEmbeddedCommonModules()) { + const n3 = i3.variableGroup.getVariable(e3.id); + if (n3) { + t3 = n3; + break; + } + } + if (!t3) { + if ((0, I.error)(`did not find variable for name:${e3.name} - id:${e3.id}`), !e3.id.startsWith("__")) return; + if (t3 = this.variableGroup.getVariable(e3.id.toUpperCase()), !t3) return; + (0, I.error)("found it using uppercase id"); + } + return t3; + } + } + t2.default = ue; + }, 81993: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.JsonType = void 0; + const n2 = i2(31635), r2 = n2.__importDefault(i2(92140)), o = i2(17604), a = n2.__importStar(i2(66314)), s = n2.__importStar(i2(10798)), l = i2(89917), u = i2(79519), d = n2.__importDefault(i2(73198)), c = i2(94765), p = i2(21305), _ = i2(80428), h = n2.__importDefault(i2(4648)), m = n2.__importDefault(i2(98114)), g = i2(10798), f = i2(77105), T = i2(59393), y = i2(47957), S = i2(41510).default, A = { id: S.expression.genericJsonPropertyDefModelPropId, name: "*", description: "", type: _.expressionTypeNames.json, isCollection: false, isComputed: false, version: "1.0", readOnly: false }; + let N; + class O extends c.ExpressionType { + constructor(e3, t3, i3, n3) { + super(e3, t3, i3, n3), this.typeIdentifier = _.expressionTypeNames.json, this.additionalProperties = true, void 0 !== n3 && (this.additionalProperties = n3), t3.support.expressionDataType.startsWith(d.default.exprDataTypePrefixJsonArch) && (this.typeIdentifier = t3.support.expressionDataType), this._customJsonIdentifierInfo = l.CustomJsonIdentifierInfo.create(this.dataType), this.isCustomTypeArchitectBuiltIn && (this.schemaName = this.customTypeName); + } + get yamlName() { + return this.isCustomTypeArchitectBuiltIn && this.isCustomType && this.isCollection ? `${this.customTypeNameWithoutContext}Collection` : this.customTypeNameWithoutContext; + } + get className() { + return "JsonType"; + } + get bootstrapDataType() { + return this.typeIdentifier; + } + get customTypeName() { + var e3; + if (!this.isCustomType) return; + if (this.schemaName) return this.schemaName; + const t3 = null === (e3 = this.model.support) || void 0 === e3 ? void 0 : e3.expressionDataType, i3 = null == t3 ? void 0 : t3.indexOf("::"); + return -1 !== i3 ? t3.substring(i3 + 2).split("_").map((e4) => e4.charAt(0).toUpperCase() + e4.slice(1)).join("") : void 0; + } + get customTypeNameWithoutContext() { + return this.customTypeNamespace === u.CustomJsonNamespace.decisionTable ? this.decisionTableName : this.customTypeName; + } + get decisionTableName() { + var e3; + if (this.customTypeNamespace === u.CustomJsonNamespace.decisionTable) { + if (this.schemaName) { + const t3 = this.customTypeName.split("-"); + return t3.pop(), null === (e3 = t3.join("-")) || void 0 === e3 ? void 0 : e3.trim(); + } + return this._customJsonIdentifierInfo.subIdentifier; + } + } + get displayString() { + if (!this.isCustomType) return super.displayString; + const e3 = this.isCollection ? this.singletonType.customTypeName : this.customTypeName, t3 = this.customTypeNamespaceLabel, i3 = (null == t3 ? void 0 : t3.length) && this.customTypeNamespace !== u.CustomJsonNamespace.architect; + let n3 = ""; + if (null == e3 ? void 0 : e3.length) if (i3) { + if (this.doesNamespaceSupportInputOutput) return this.isCustomTypeContextOutput ? `${y.json.input.outputsLabel} - ${e3.replace(/\s-\sOutput$/, "")} (${this.customTypeNamespaceLabel})` : `${y.json.input.inputsLabel} - ${e3.replace(/\s-\sInput$/, "")} (${this.customTypeNamespaceLabel})`; + n3 = `${e3} (${this.customTypeNamespaceLabel})`; + } else n3 = `${e3}`; + return n3 || (n3 = y.json.general.customJSONLabel), this.isCollection ? i3 ? (0, o.sprintf)(y.expression.collection, e3) + ` (${this.customTypeNamespaceLabel})` : (0, o.sprintf)(y.expression.collection, n3) : n3; + } + getDisplayString(e3) { + return !this.isCustomType || e3 ? super.getDisplayString(e3) : this.customTypeName; + } + canConvertLitToExpression(e3) { + return true; + } + createExpressionOptionClass() { + const e3 = new p.ExpressionTypeJsonOptions(this.isCollection); + return this.isCustomType && (e3.setIsCustomJsonType(true), this.typeIdentifier && this.typeIdentifier !== _.expressionTypeNames.json && e3.setTypeIdentifier(this.typeIdentifier)), e3; + } + getPropertyDefinition(e3, t3) { + if (!e3) return; + let i3 = super.getPropertyDefinition(e3, t3); + return !i3 && this.additionalProperties && (N || (N = new f.PropertyDefinition(null, A, A.description)), i3 = N), i3; + } + get supportsLiteralEditor() { + return true; + } + validateLiteral(e3, t3) { + if (!this.isCustomType && !t3.options.isCustomJsonType) { + const i3 = T.validateLiteralJson(t3.text, t3), n3 = T.getDisplayString(i3); + if (i3.errorText) return t3.setParseError(n3), e3.addError(t3, (0, o.sprintf)(S.expression.returnValueWithString, y.json.genericError.invalidJson, n3), false, true), false; + } + return true; + } + get isCustomType() { + return this._customJsonIdentifierInfo.isCustomJsonType; + } + get isJsonType() { + return true; + } + get customTypeNamespace() { + return this._customJsonIdentifierInfo.namespace; + } + get isCustomTypeContextInput() { + return this._customJsonIdentifierInfo.isContextInput; + } + get isCustomTypeContextNone() { + return this._customJsonIdentifierInfo.isContextNone; + } + get isCustomTypeContextOutput() { + return this._customJsonIdentifierInfo.isContextOutput; + } + get customTypeContext() { + return this._customJsonIdentifierInfo.context; + } + get doesNamespaceSupportInputOutput() { + return a.namespaceSupportsInputOutput(this.customTypeNamespace); + } + get customTypeNamespaceLabel() { + if (this.isCustomType) return this._customJsonIdentifierInfo.namespaceLabel || this._customJsonIdentifierInfo.namespace; + } + get isCustomTypeArchitectBuiltIn() { + return this._customJsonIdentifierInfo.isNamespaceArchitect; + } + _getLiteralValueOfExpression() { + return ""; + } + set schemaName(e3) { + this._schemaName = e3; + } + get schemaName() { + return this._schemaName; + } + getYamlObjectForLiteralSingleton(e3) { + let t3; + super.getYamlObjectForLiteralSingleton(e3); + try { + t3 = JSON.parse(e3.text); + } catch (e4) { + } + return r2.default.isObject(t3) || r2.default.isUndefined(t3) ? e3.text : t3; + } + isUserCreatableForFlow(e3) { + return this.isCustomType ? this.isCustomTypeArchitectBuiltIn ? super.isUserCreatableForFlow(e3) : !!e3.destinationFlowTypes.every((e4) => { + var t3; + return !!(null === (t3 = m.default.getDefinitionForFlowType(e4)) || void 0 === t3 ? void 0 : t3.supportsCustomJsonTypeUserCreatedVariables); + }) && (this.model.support.isCustomizablePerFlow && this.doesNamespaceSupportInputOutput ? (this.parentFlow.definitions.getCustomDataTypeDefinition(this.dataType), this.isAvailableForFlow(e3)) : this.isAvailableForFlow(e3)) : super.isUserCreatableForFlow(e3); + } + isUserCreatableForFlowType(e3) { + var t3; + return this.isCustomType ? this.isCustomTypeArchitectBuiltIn ? super.isUserCreatableForFlowType(e3) : !!(null === (t3 = m.default.getDefinitionForFlowType(e3)) || void 0 === t3 ? void 0 : t3.supportsCustomJsonTypeUserCreatedVariables) : super.isUserCreatableForFlowType(e3); + } + convertLitToExpression(e3, t3) { + if (r2.default.isUndefined(t3)) return ""; + const i3 = T.validateLiteralJson(t3); + if (i3 && i3.errorText) { + if ("" === t3) return ""; + const e4 = JSON.stringify(t3); + return `JsonParse("${null == e4 ? void 0 : e4.replaceAll(/"/g, '\\"')}")`; + } + return `JsonParse(${JSON.stringify(t3)})`; + } + _isAvailableForFlowType(e3, t3) { + var i3; + if (!this.isCustomType) return super._isAvailableForFlowType(e3); + if (!this._isCustomTypeFeatureAvailable) return false; + if (this.isCustomTypeArchitectBuiltIn) { + const t4 = null === (i3 = this.model.support) || void 0 === i3 ? void 0 : i3.supportedFlowTypes; + return !!t4 && !r2.default.isUndefined(t4[e3]); + } + return super._isAvailableForFlowType(e3); + } + get _isCustomTypeFeatureAvailable() { + if (!this.isCustomType) return false; + if (void 0 === this._featureAvailabilityCheckResult) switch (this.customTypeNamespace) { + case u.CustomJsonNamespace.architect: + this._featureAvailabilityCheckResult = !(this.featureConfigName && !(0, g.isFeatureAvailable)(this.featureConfigName)), this.featureConfigName2 && this._featureAvailabilityCheckResult && (this._featureAvailabilityCheckResult = !(this.featureConfigName2 && !(0, g.isFeatureAvailable)(this.featureConfigName2))); + break; + case u.CustomJsonNamespace.architectFlow: + this._featureAvailabilityCheckResult = s.isFeatureAvailable(h.default.customJSONV2); + break; + case u.CustomJsonNamespace.conversationAttribute: + this._featureAvailabilityCheckResult = s.isFeatureAvailable(h.default.customConversationAttributes); + break; + case u.CustomJsonNamespace.decisionTable: + this._featureAvailabilityCheckResult = s.isFeatureAvailable(h.default.ruleBasedDecisionsFeature); + break; + case u.CustomJsonNamespace.userDefined: + this._featureAvailabilityCheckResult = s.isFeatureAvailable(h.default.customJSONUserDefinedTypes); + break; + case u.CustomJsonNamespace.worktype: + this._featureAvailabilityCheckResult = s.isFeatureAvailable(h.default.workItemFlows); + break; + case u.CustomJsonNamespace.botConnector: + case u.CustomJsonNamespace.composerScript: + case u.CustomJsonNamespace.dataAction: + case u.CustomJsonNamespace.externalContact: + case u.CustomJsonNamespace.structuredParticipantData: + default: + this._featureAvailabilityCheckResult = false; + } + return this._featureAvailabilityCheckResult; + } + isAvailableAsInputForFlowType(e3) { + return !this.isCustomType && super.isAvailableAsInputOrOutputForFlowType(e3, "flowInput"); + } + isAvailableAsOutputForFlowType(e3) { + return !this.isCustomType && this.isAvailableAsInputOrOutputForFlowType(e3, "flowOutput"); + } + get yamlTypeName() { + if (this.isCustomType) { + const e3 = "customJson"; + return this.isCollection ? e3 + "Collection" : e3; + } + return super.yamlTypeName; + } + convertLitToCustomJsonStr(e3, t3, i3, n3) { + return i3 || t3 || ""; + } + get customTypeInfo() { + return this._customJsonIdentifierInfo; + } + addYamlExportTypeInfo(e3) { + this.isCustomType && (e3.type = {}, e3.type[this.customTypeNamespace] = { name: this.yamlName }); + } + get hasRichLiteralEditor() { + return this.isCustomType; + } + } + t2.JsonType = O; + }, 82044: function(e2, t2, i2) { + "use strict"; + var n2 = this && this.__read || function(e3, t3) { + var i3 = "function" == typeof Symbol && e3[Symbol.iterator]; + if (!i3) return e3; + var n3, r3, o2 = i3.call(e3), a = []; + try { + for (; (void 0 === t3 || t3-- > 0) && !(n3 = o2.next()).done; ) a.push(n3.value); + } catch (e4) { + r3 = { error: e4 }; + } finally { + try { + n3 && !n3.done && (i3 = o2.return) && i3.call(o2); + } finally { + if (r3) throw r3.error; + } + } + return a; + }, r2 = this && this.__spreadArray || function(e3, t3) { + for (var i3 = 0, n3 = t3.length, r3 = e3.length; i3 < n3; i3++, r3++) e3[r3] = t3[i3]; + return e3; + }; + Object.defineProperty(t2, "__esModule", { value: true }), t2.combineLatestWith = void 0; + var o = i2(64948); + t2.combineLatestWith = function() { + for (var e3 = [], t3 = 0; t3 < arguments.length; t3++) e3[t3] = arguments[t3]; + return o.combineLatest.apply(void 0, r2([], n2(e3))); + }; + }, 82118: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importDefault(i2(92140)), o = n2.__importDefault(i2(21345)), a = n2.__importDefault(i2(56549)), s = n2.__importDefault(i2(94225)), l = n2.__importDefault(i2(66978)), u = i2(30801), d = i2(640), c = i2(71528); + class p extends o.default { + constructor(e3) { + super(e3), this._responseBodyHandling = this.coreFactory.createArchWrapper(e3.responseBodyHandling), this._responseSubstitutions = void 0, this._responseBody = this.coreFactory.createArchWrapper(e3.responseBody), this._attachments = this.coreFactory.createArchWrapper(e3.attachments); + } + get _actionTypeId() { + return u.getResponseActionType; + } + _clearResponseSubstitutions() { + this._responseSubstitutions = void 0; + } + get displayTypeName() { + return this._scriptingName; + } + get responseSubstitutions() { + return this._responseSubstitutions || (this._responseSubstitutions = this.coreFactory.createArchBaseValueContainer(this._getCoreViewModel().substitutions)), this._responseSubstitutions; + } + get isArchActionGetResponse() { + return true; + } + get isSelectedResponseInSelectedResponseLibrary() { + return this._coreActionViewModel.isSelectedResponseInSelectedResponseLibrary; + } + get performSubstitutions() { + return this._coreActionViewModel.performSubstitutions; + } + set performSubstitutions(e3) { + this._checkItemIsValidLiteralBool(this._infoPropSet("value", "performSubstitutions"), e3, false), this._coreActionViewModel.performSubstitutions = e3; + } + get responseBodyHandling() { + return this._responseBodyHandling; + } + setResponseByIdAsync(e3, t3) { + return this._checkItemIsValidLiteralString(this._infoParm("responseId", "setResponseByIdAsync"), e3, false), this._checkItemIsValidFunction(this._infoParm("callbackFunction", "setResponseByIdAsync"), t3, true), a.default.findItemByIdAsync(d.nonFormResponseManager, e3, "response").then((i3) => (this.logNote("found the response named '" + i3.name + "' by the response Id '" + e3 + "'"), l.default.addPromise(this._setResponseDataAsync(i3, "setResponseByIdAsync", t3), "setResponseByIdAsync"))); + } + setResponseByNameAsync(e3, t3, i3) { + let n3; + return this._checkItemIsValidLiteralString(this._infoParm("responseName", "setResponseByNameAsync"), e3), this._checkItemIsValidFunction(this._infoParm("callbackFunction", "setResponseByNameAsync"), t3, true), this._checkItemIsValidLiteralString(this._infoParm("responseLibraryName", "setResponseByNameAsync"), i3, true), r2.default.isString(i3) && i3.length && (n3 = (e4) => { + var t4; + return (null === (t4 = e4.library) || void 0 === t4 ? void 0 : t4.name) === i3; + }), a.default.findItemByValueAsync(d.nonFormResponseManager, e3, "response", null, null, n3, { queryPhrase: e3 }).then((i4) => (this.logNote(`Resolved response named '${e3}' to '${i4.model.name} (id: ${i4.model.id})'.`), l.default.addPromise(this._setResponseDataAsync(i4, "setResponseByNameAsync", t3), "setResponseByNameAsync"))); + } + _setResponseDataAsync(e3, t3, i3) { + return this._coreActionViewModel.setResponseDataAsync(e3).then(() => (this._clearResponseSubstitutions(), s.default.executeCallback(this, t3, i3, this))); + } + setResponseLibraryByNameAsync(e3, t3) { + return this._checkItemIsValidLiteralString(this._infoParm("responseLibraryName", "setResponseLibraryByNameAsync"), e3, false), this._checkItemIsValidFunction(this._infoParm("callbackFunction", "setResponseLibraryByNameAsync"), t3, true), a.default.findItemByValueAsync(c.responseLibraryManager, e3, "response library", "name").then((e4) => (this.logNote("found the response library named '" + e4.name + "'."), this._coreActionViewModel.setResponseLibrary(e4), s.default.executeCallback(this, "setResponseLibraryByNameAsync", t3, this))); + } + setResponseBodyVariable(e3) { + this._checkItemIsValidLiteralStringOrArchVariableString(this._infoParm("responseBodyVariable", "setResponseBodyVariable"), e3, false), this.valueResponseBody.setVariable(e3); + } + get valueResponseBody() { + return this._responseBody; + } + get attachments() { + return this._attachments; + } + } + t2.default = p; + }, 82133: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.CampaignType = void 0; + const n2 = i2(94765), r2 = i2(71056), o = i2(80428); + class a extends n2.ExpressionType { + constructor(e3, t3, i3) { + super(e3, t3, i3); + } + get className() { + return "CampaignType"; + } + canConvertLitToExpression(e3) { + return false; + } + createExpressionOptionClass() { + return new r2.ExpressionTypeNetworkObjectOptions(); + } + } + t2.CampaignType = a, a.typeIdentifier = o.expressionTypeNames.campaign; + }, 82139: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.repeatWhen = void 0; + var n2 = i2(19724), r2 = i2(76808), o = i2(65212), a = i2(17214); + t2.repeatWhen = function(e3) { + return o.operate(function(t3, i3) { + var o2, s, l = false, u = false, d = false, c = function() { + return d && u && (i3.complete(), true); + }, p = function() { + d = false, o2 = t3.subscribe(a.createOperatorSubscriber(i3, void 0, function() { + d = true, !c() && (s || (s = new r2.Subject(), n2.innerFrom(e3(s)).subscribe(a.createOperatorSubscriber(i3, function() { + o2 ? p() : l = true; + }, function() { + u = true, c(); + }))), s).next(); + })), l && (o2.unsubscribe(), o2 = null, l = false, p()); + }; + p(); + }); + }; + }, 82149: (e2, t2, i2) => { + const n2 = i2(92140), r2 = i2(13240), o = i2(90807), a = i2(52706), s = i2(7401), l = i2(42217); + function u() { + Object.defineProperties(this, { _errorBindings: { writable: true }, _followupResponseTimeout: { writable: true }, _inputText: { writable: true }, _outputs: { writable: true }, _sessionVariables: { writable: true } }), this.botId = void 0, this.botName = void 0, u.baseConstructor.apply(this, arguments); + } + r2.extend(u, "BaseBotActionModel"), Object.defineProperties(u.prototype, { pasteReIdOrRename: { value: function(e3) { + if (u._super.pasteReIdOrRename.apply(this, arguments), this.errorBindings.forEach((t3) => t3.pasteReIdOrRename(e3)), this.followupResponseTimeout?.pasteReIdOrRename(e3), this.inputText?.pasteReIdOrRename(e3), n2.isArray(this.outputs)) for (let t3 = 0; t3 < this.outputs.length; t3++) this.outputs[t3].pasteReIdOrRename(e3); + if (n2.isArray(this.sessionVariables)) for (let t3 = 0; t3 < this.sessionVariables.length; t3++) this.sessionVariables[t3].pasteReIdOrRename(e3); + } }, pasteResolveOldToNewValues: { value: function(e3) { + if (u._super.pasteResolveOldToNewValues.apply(this, arguments), this.errorBindings.forEach((t3) => t3.pasteResolveOldToNewValues(e3)), this.followupResponseTimeout?.pasteResolveOldToNewValues(e3), this.inputText?.pasteResolveOldToNewValues(e3), n2.isArray(this.outputs)) for (let t3 = 0; t3 < this.outputs.length; t3++) this.outputs[t3].pasteResolveOldToNewValues(e3); + if (n2.isArray(this.sessionVariables)) for (let t3 = 0; t3 < this.sessionVariables.length; t3++) this.sessionVariables[t3].pasteResolveOldToNewValues(e3); + } }, errorBindings: { enumerable: true, get: function() { + return this._errorBindings; + }, set: function(e3) { + this._errorBindings = this.reviveArray(e3, o); + } }, followupResponseTimeout: { enumerable: true, get: function() { + return this._followupResponseTimeout; + }, set: function(e3) { + this._followupResponseTimeout = this.reviveItem(e3, s); + } }, inputText: { enumerable: true, get: function() { + return this._inputText; + }, set: function(e3) { + this._inputText = this.reviveItem(e3, s); + } }, outputs: { enumerable: true, get: function() { + return this._outputs; + }, set: function(e3) { + this._outputs = this.reviveArray(e3, a); + } }, sessionVariables: { enumerable: true, get: function() { + return this._sessionVariables; + }, set: function(e3) { + this._sessionVariables = this.reviveArray(e3, l); + } } }), e2.exports = u; + }, 82185: (e2, t2, i2) => { + function n2(e3) { + n2.baseConstructor.call(this), Object.defineProperties(this, { _model: { value: e3 }, id: { value: e3.id, enumerable: true }, name: { value: e3.name, enumerable: true }, label: { value: e3.name, enumerable: false } }); + } + i2(81086).extend(n2), e2.exports = n2; + }, 82190: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(92140)), r2 = i2(24032).getTopic("AsyncOperationError"); + t2.default = class { + constructor(e3, t3) { + if (e3.isRequestError) { + t3 || r2.errorWithStack(null, "AsyncOperationError was passed a request error with no operationInfo."); + const i3 = [], o = t3.flowId ? [t3.flowId] : n2.default.keys(t3.remainingFlowsInfoViewModels); + n2.default.each(o, (t4) => { + i3.push({ entityId: t4, code: e3.response ? e3.response.code : e3.code, messageParams: e3.response ? e3.response.messageParams : void 0 }); + }), this.response = { errors: i3 }; + } else this.response = { errors: [e3] }; + } + }; + }, 82271: function(e2, t2, i2) { + !(function(e3) { + "use strict"; + function t3(e4, t4, i4) { + return "m" === i4 ? t4 ? "\u043C\u0438\u043D\u0443\u0442\u0430" : "\u043C\u0438\u043D\u0443\u0442\u0443" : e4 + " " + (n2 = +e4, r2 = { ss: t4 ? "\u0441\u0435\u043A\u0443\u043D\u0434\u0430_\u0441\u0435\u043A\u0443\u043D\u0434\u044B_\u0441\u0435\u043A\u0443\u043D\u0434" : "\u0441\u0435\u043A\u0443\u043D\u0434\u0443_\u0441\u0435\u043A\u0443\u043D\u0434\u044B_\u0441\u0435\u043A\u0443\u043D\u0434", mm: t4 ? "\u043C\u0438\u043D\u0443\u0442\u0430_\u043C\u0438\u043D\u0443\u0442\u044B_\u043C\u0438\u043D\u0443\u0442" : "\u043C\u0438\u043D\u0443\u0442\u0443_\u043C\u0438\u043D\u0443\u0442\u044B_\u043C\u0438\u043D\u0443\u0442", hh: "\u0447\u0430\u0441_\u0447\u0430\u0441\u0430_\u0447\u0430\u0441\u043E\u0432", dd: "\u0434\u0435\u043D\u044C_\u0434\u043D\u044F_\u0434\u043D\u0435\u0439", ww: "\u043D\u0435\u0434\u0435\u043B\u044F_\u043D\u0435\u0434\u0435\u043B\u0438_\u043D\u0435\u0434\u0435\u043B\u044C", MM: "\u043C\u0435\u0441\u044F\u0446_\u043C\u0435\u0441\u044F\u0446\u0430_\u043C\u0435\u0441\u044F\u0446\u0435\u0432", yy: "\u0433\u043E\u0434_\u0433\u043E\u0434\u0430_\u043B\u0435\u0442" }[i4].split("_"), n2 % 10 == 1 && n2 % 100 != 11 ? r2[0] : n2 % 10 >= 2 && n2 % 10 <= 4 && (n2 % 100 < 10 || n2 % 100 >= 20) ? r2[1] : r2[2]); + var n2, r2; + } + var i3 = [/^янв/i, /^фев/i, /^мар/i, /^апр/i, /^ма[йя]/i, /^июн/i, /^июл/i, /^авг/i, /^сен/i, /^окт/i, /^ноя/i, /^дек/i]; + e3.defineLocale("ru", { months: { format: "\u044F\u043D\u0432\u0430\u0440\u044F_\u0444\u0435\u0432\u0440\u0430\u043B\u044F_\u043C\u0430\u0440\u0442\u0430_\u0430\u043F\u0440\u0435\u043B\u044F_\u043C\u0430\u044F_\u0438\u044E\u043D\u044F_\u0438\u044E\u043B\u044F_\u0430\u0432\u0433\u0443\u0441\u0442\u0430_\u0441\u0435\u043D\u0442\u044F\u0431\u0440\u044F_\u043E\u043A\u0442\u044F\u0431\u0440\u044F_\u043D\u043E\u044F\u0431\u0440\u044F_\u0434\u0435\u043A\u0430\u0431\u0440\u044F".split("_"), standalone: "\u044F\u043D\u0432\u0430\u0440\u044C_\u0444\u0435\u0432\u0440\u0430\u043B\u044C_\u043C\u0430\u0440\u0442_\u0430\u043F\u0440\u0435\u043B\u044C_\u043C\u0430\u0439_\u0438\u044E\u043D\u044C_\u0438\u044E\u043B\u044C_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043D\u0442\u044F\u0431\u0440\u044C_\u043E\u043A\u0442\u044F\u0431\u0440\u044C_\u043D\u043E\u044F\u0431\u0440\u044C_\u0434\u0435\u043A\u0430\u0431\u0440\u044C".split("_") }, monthsShort: { format: "\u044F\u043D\u0432._\u0444\u0435\u0432\u0440._\u043C\u0430\u0440._\u0430\u043F\u0440._\u043C\u0430\u044F_\u0438\u044E\u043D\u044F_\u0438\u044E\u043B\u044F_\u0430\u0432\u0433._\u0441\u0435\u043D\u0442._\u043E\u043A\u0442._\u043D\u043E\u044F\u0431._\u0434\u0435\u043A.".split("_"), standalone: "\u044F\u043D\u0432._\u0444\u0435\u0432\u0440._\u043C\u0430\u0440\u0442_\u0430\u043F\u0440._\u043C\u0430\u0439_\u0438\u044E\u043D\u044C_\u0438\u044E\u043B\u044C_\u0430\u0432\u0433._\u0441\u0435\u043D\u0442._\u043E\u043A\u0442._\u043D\u043E\u044F\u0431._\u0434\u0435\u043A.".split("_") }, weekdays: { standalone: "\u0432\u043E\u0441\u043A\u0440\u0435\u0441\u0435\u043D\u044C\u0435_\u043F\u043E\u043D\u0435\u0434\u0435\u043B\u044C\u043D\u0438\u043A_\u0432\u0442\u043E\u0440\u043D\u0438\u043A_\u0441\u0440\u0435\u0434\u0430_\u0447\u0435\u0442\u0432\u0435\u0440\u0433_\u043F\u044F\u0442\u043D\u0438\u0446\u0430_\u0441\u0443\u0431\u0431\u043E\u0442\u0430".split("_"), format: "\u0432\u043E\u0441\u043A\u0440\u0435\u0441\u0435\u043D\u044C\u0435_\u043F\u043E\u043D\u0435\u0434\u0435\u043B\u044C\u043D\u0438\u043A_\u0432\u0442\u043E\u0440\u043D\u0438\u043A_\u0441\u0440\u0435\u0434\u0443_\u0447\u0435\u0442\u0432\u0435\u0440\u0433_\u043F\u044F\u0442\u043D\u0438\u0446\u0443_\u0441\u0443\u0431\u0431\u043E\u0442\u0443".split("_"), isFormat: /\[ ?[Вв] ?(?:прошлую|следующую|эту)? ?] ?dddd/ }, weekdaysShort: "\u0432\u0441_\u043F\u043D_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043F\u0442_\u0441\u0431".split("_"), weekdaysMin: "\u0432\u0441_\u043F\u043D_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043F\u0442_\u0441\u0431".split("_"), monthsParse: i3, longMonthsParse: i3, shortMonthsParse: i3, monthsRegex: /^(январ[ья]|янв\.?|феврал[ья]|февр?\.?|марта?|мар\.?|апрел[ья]|апр\.?|ма[йя]|июн[ья]|июн\.?|июл[ья]|июл\.?|августа?|авг\.?|сентябр[ья]|сент?\.?|октябр[ья]|окт\.?|ноябр[ья]|нояб?\.?|декабр[ья]|дек\.?)/i, monthsShortRegex: /^(январ[ья]|янв\.?|феврал[ья]|февр?\.?|марта?|мар\.?|апрел[ья]|апр\.?|ма[йя]|июн[ья]|июн\.?|июл[ья]|июл\.?|августа?|авг\.?|сентябр[ья]|сент?\.?|октябр[ья]|окт\.?|ноябр[ья]|нояб?\.?|декабр[ья]|дек\.?)/i, monthsStrictRegex: /^(январ[яь]|феврал[яь]|марта?|апрел[яь]|ма[яй]|июн[яь]|июл[яь]|августа?|сентябр[яь]|октябр[яь]|ноябр[яь]|декабр[яь])/i, monthsShortStrictRegex: /^(янв\.|февр?\.|мар[т.]|апр\.|ма[яй]|июн[ья.]|июл[ья.]|авг\.|сент?\.|окт\.|нояб?\.|дек\.)/i, longDateFormat: { LT: "H:mm", LTS: "H:mm:ss", L: "DD.MM.YYYY", LL: "D MMMM YYYY \u0433.", LLL: "D MMMM YYYY \u0433., H:mm", LLLL: "dddd, D MMMM YYYY \u0433., H:mm" }, calendar: { sameDay: "[\u0421\u0435\u0433\u043E\u0434\u043D\u044F, \u0432] LT", nextDay: "[\u0417\u0430\u0432\u0442\u0440\u0430, \u0432] LT", lastDay: "[\u0412\u0447\u0435\u0440\u0430, \u0432] LT", nextWeek: function(e4) { + if (e4.week() === this.week()) return 2 === this.day() ? "[\u0412\u043E] dddd, [\u0432] LT" : "[\u0412] dddd, [\u0432] LT"; + switch (this.day()) { + case 0: + return "[\u0412 \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u0435] dddd, [\u0432] LT"; + case 1: + case 2: + case 4: + return "[\u0412 \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0438\u0439] dddd, [\u0432] LT"; + case 3: + case 5: + case 6: + return "[\u0412 \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0443\u044E] dddd, [\u0432] LT"; + } + }, lastWeek: function(e4) { + if (e4.week() === this.week()) return 2 === this.day() ? "[\u0412\u043E] dddd, [\u0432] LT" : "[\u0412] dddd, [\u0432] LT"; + switch (this.day()) { + case 0: + return "[\u0412 \u043F\u0440\u043E\u0448\u043B\u043E\u0435] dddd, [\u0432] LT"; + case 1: + case 2: + case 4: + return "[\u0412 \u043F\u0440\u043E\u0448\u043B\u044B\u0439] dddd, [\u0432] LT"; + case 3: + case 5: + case 6: + return "[\u0412 \u043F\u0440\u043E\u0448\u043B\u0443\u044E] dddd, [\u0432] LT"; + } + }, sameElse: "L" }, relativeTime: { future: "\u0447\u0435\u0440\u0435\u0437 %s", past: "%s \u043D\u0430\u0437\u0430\u0434", s: "\u043D\u0435\u0441\u043A\u043E\u043B\u044C\u043A\u043E \u0441\u0435\u043A\u0443\u043D\u0434", ss: t3, m: t3, mm: t3, h: "\u0447\u0430\u0441", hh: t3, d: "\u0434\u0435\u043D\u044C", dd: t3, w: "\u043D\u0435\u0434\u0435\u043B\u044F", ww: t3, M: "\u043C\u0435\u0441\u044F\u0446", MM: t3, y: "\u0433\u043E\u0434", yy: t3 }, meridiemParse: /ночи|утра|дня|вечера/i, isPM: function(e4) { + return /^(дня|вечера)$/.test(e4); + }, meridiem: function(e4, t4, i4) { + return e4 < 4 ? "\u043D\u043E\u0447\u0438" : e4 < 12 ? "\u0443\u0442\u0440\u0430" : e4 < 17 ? "\u0434\u043D\u044F" : "\u0432\u0435\u0447\u0435\u0440\u0430"; + }, dayOfMonthOrdinalParse: /\d{1,2}-(й|го|я)/, ordinal: function(e4, t4) { + switch (t4) { + case "M": + case "d": + case "DDD": + return e4 + "-\u0439"; + case "D": + return e4 + "-\u0433\u043E"; + case "w": + case "W": + return e4 + "-\u044F"; + default: + return e4; + } + }, week: { dow: 1, doy: 4 } }); + })(i2(95093)); + }, 82298: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.getKnowledgeSetting = a, t2.getKnowledgeSettings = s; + const n2 = i2(31635), r2 = n2.__importDefault(i2(36019)), o = n2.__importStar(i2(48229)); + function a(e3) { + return r2.default.build(o.getKnowledgeSetting).templateParams({ id: e3 }).call(); + } + function s(e3) { + return r2.default.build(o.getKnowledgeSettings).queryParams(e3.getSearchQueryParams(true)).call(); + } + a.api = o.getKnowledgeSetting, s.api = o.getKnowledgeSettings; + }, 82319: (e2, t2, i2) => { + "use strict"; + var n2; + Object.defineProperty(t2, "__esModule", { value: true }), t2.ExpressionTypeCommunicationOptions = void 0; + const r2 = i2(31635), o = r2.__importDefault(i2(59046)), a = i2(80295), s = i2(65615), l = i2(55909), u = i2(33951); + class d extends s.BaseExpressionTypeCollectionOptions { + static create(e3, t3) { + return new this(t3).invokeOptionsCallback(e3); + } + constructor(e3) { + super(e3), this._communicationFacets = new o.default(), (0, a.makeUnenumerable)(this, "_communicationFacets"); + } + get isExpressionTypeCommunicationOptions() { + return true; + } + get className() { + return "ExpressionTypeCommunicationOptions"; + } + get facets() { + return this._communicationFacets; + } + set facets(e3) { + this._communicationFacets = u.ParameterValidator.expectTrue(e3 && true === e3.isCommunicationFacets, e3, "CommunicationFacets", () => l.ParameterInfo.createPropertySet(this.className, "facets", "value")); + } + get supportsLiteralMode() { + return this.isCollection; + } + setAsInput(e3) { + u.ParameterValidator.expectBool(e3, () => l.ParameterInfo.createFunctionParameter(this.className, "setAsInput", "restrictToLiteral"), true); + const t3 = !(true === e3); + return this._configureInputOutputState(true, false, false, t3); + } + setAsOutput() { + return this._configureInputOutputState(false, false, true, false); + } + setCollectionItemFromCollectionOptions(e3) { + return super.setCollectionItemFromCollectionOptions(e3), this.defaultToBuilderId = e3._defaultToBuilderId, this; + } + } + t2.ExpressionTypeCommunicationOptions = d, r2.__decorate([(0, a.enumerable)(true), r2.__metadata("design:type", "function" == typeof (n2 = void 0 !== o.default && o.default) ? n2 : Object), r2.__metadata("design:paramtypes", [Object])], d.prototype, "facets", null); + }, 82394: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importDefault(i2(23516)), o = n2.__importDefault(i2(91928)), a = { ArchAudio: r2.default, ArchAudioCase: o.default }; + t2.default = a; + }, 82453: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.getUnsupportedDestinationFlowTypes = function(e3) { + return c(e3).unsupportedFlowTypes; + }, t2.needsConflictingInQueueFlowTypes = function(e3) { + if (e3.isCommonModuleFlow) { + const { inQueueCall: t3, inQueueEmail: i3, inQueueShortMessage: n3 } = c(e3); + return [t3, i3, n3].filter(Boolean).length >= 2; + } + return false; + }, t2.getSupportedInQueueFlowType = p, t2.getInqueueFlowTypeDefinition = function(e3) { + return o.default.getDefinitionForFlowType(p(e3)); + }, t2.getSupportedInQueueFlowManager = function(e3) { + const t3 = p(e3); + return r2.flowTypes.isShortMessageFlowType(t3) ? l.inqueueShortMessageFlowListManager.getBriefManagerWithFallback() : r2.flowTypes.isEmailFlowType(t3) ? s.inqueueEmailFlowListManager.getBriefManagerWithFallback() : a.inqueueCallFlowListManager.getBriefManagerWithFallback(); + }, t2.botFlowsAlignTransferActions = _; + const n2 = i2(31635), r2 = i2(96618), o = n2.__importDefault(i2(98114)), a = i2(4085), s = i2(36843), l = i2(33690), u = n2.__importStar(i2(10798)), d = n2.__importDefault(i2(4648)); + function c(e3) { + let t3 = false, i3 = false, n3 = false; + const a2 = []; + return e3.destinationFlowTypes.forEach((e4) => { + r2.flowTypes.isVxmlgenFlowType(e4) && o.default.getDefinitionForFlowType(r2.flowTypes.flowTypeInQueueCall).isAvailable ? t3 = true : r2.flowTypes.isShortMessageFlowType(e4) && o.default.getDefinitionForFlowType(r2.flowTypes.flowTypeInQueueShortMessage).isAvailable || e4 === r2.flowTypes.flowTypeDigitalBot && _() ? n3 = true : r2.flowTypes.isEmailFlowType(e4) && o.default.getDefinitionForFlowType(r2.flowTypes.flowTypeInQueueEmail).isAvailable ? i3 = true : a2.push(e4); + }), { inQueueCall: t3, inQueueEmail: i3, inQueueShortMessage: n3, unsupportedFlowTypes: a2 }; + } + function p(e3) { + const { inQueueCall: t3, inQueueEmail: i3, inQueueShortMessage: n3 } = c(e3); + return !t3 || i3 || n3 ? t3 || i3 || !n3 ? t3 || !i3 || n3 ? void 0 : r2.flowTypes.flowTypeInQueueEmail : r2.flowTypes.flowTypeInQueueShortMessage : r2.flowTypes.flowTypeInQueueCall; + } + function _() { + return u.isFeatureAvailable(d.default.botFlowsAlignTransferActions); + } + }, 82472: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(67193)); + class r2 extends n2.default { + constructor(e3) { + super(e3), this._connectTimeout = this.coreFactory.createArchWrapper(e3.connTimeout); + } + get displayTypeName() { + return "ArchBaseActionTransferWithConnectTimeout"; + } + get isArchBaseActionTransferWithConnectTimeout() { + return true; + } + get connectTimeout() { + return this._connectTimeout; + } + } + t2.default = r2; + }, 82485: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.VersionItem = void 0; + const n2 = i2(31635).__importDefault(i2(92140)), r2 = i2(55299), o = i2(68899), a = i2(57141); + class s extends r2.BaseClass { + constructor() { + super(), this.features = [], this.products = [], this.version = a.one.zero; + } + get className() { + return "VersionItem"; + } + _checkVersion(e3) { + const t3 = this._generateVersionParts(e3); + this._isGreater(t3) || (this._version = e3, this._versionParts = t3); + } + _generateVersionParts(e3) { + return n2.default.map(e3.split("."), function(e4) { + return Number(e4) || Number(0); + }); + } + _isGreater(e3) { + let t3, i3; + for (let n3 = 0; n3 < this._versionParts.length; n3++) { + if (t3 = this._versionParts[n3], i3 = e3[n3], t3 > i3) return true; + if (t3 < i3) return false; + } + return this._versionParts.length >= e3.length; + } + checkFeatures(e3) { + e3 && (e3.featuresToggles || e3.products) && (e3.featuresToggles && n2.default.each(e3.featuresToggles, (e4) => { + n2.default.contains(this.features, e4) || (this.features.push(e4), this._checkVersion(o[e4])); + }), e3.products && n2.default.each(e3.products, (e4) => { + n2.default.contains(this.products, e4) || (this.products.push(e4), this._checkVersion(o[e4])); + })); + } + checkVersion(e3) { + e3 && (n2.default.isArray(e3) ? n2.default.each(e3, (e4) => { + n2.default.contains(this.features, e4) || (this.features.push(e4), this._checkVersion(o[e4])); + }) : this._checkVersion(e3)); + } + featureIsEnabled(e3) { + return !!o[e3] && o[e3]; + } + isGreater(e3) { + return !e3 || !e3._versionParts || this._isGreater(e3._versionParts); + } + get version() { + return this._version; + } + set version(e3) { + e3 && e3 !== this._version && (this._version = e3, this._versionParts = this._generateVersionParts(e3)); + } + } + t2.VersionItem = s; + }, 82490: (e2, t2, i2) => { + "use strict"; + const n2 = i2(31635), r2 = n2.__importDefault(i2(92140)), o = i2(81516), a = i2(36128), s = i2(71439), l = i2(9485), u = n2.__importStar(i2(1115)), d = i2(12179), c = n2.__importDefault(i2(97891)), p = i2(28803), _ = n2.__importDefault(i2(87951)), h = i2(60885), m = i2(80428), g = i2(44931), f = i2(47957); + class T extends _.default { + _initializeDesignTime() { + super._initializeDesignTime(), this.prompts.outOfService = true, this._configureInitialIntentAllowableValues(); + } + get botRunnableNetworkGetCall() { + return g.getV2Alias; + } + get isLexV2Action() { + return true; + } + get aliasLanguage() { + return r2.default.isArray(this.languagesProperty) && r2.default.isString(this.languagesProperty[0]) ? this.languagesProperty[0] : null; + } + get aliasReadyStatus() { + return h.lexStatuses.v2.available; + } + get aliasReadyStatusLower() { + return h.lexStatuses.v2.availableLower; + } + static get managedProperties() { + return [{ property: "alias", createDetails: p.NetworkBasedActionProperty.createCreateDetails("aliasId", "aliasName", s.lexV2AliasManager, f.lex.mustSelectAlias, f.lex.aliasNotFound, "bot"), yamlOptions: T.createYamlOptions("alias", (e3) => e3.setSkipProperty(true)) }, { property: "bot", createDetails: p.NetworkBasedActionProperty.createCreateDetails("botId", "botName", l.lexV2BotNameManager, f.lex.mustSelectBotName, f.lex.botNameNotFound, null), yamlOptions: T.createYamlOptions("bot", (e3) => e3.setSkipProperty(true)) }, { property: "outputSessionVariables", namedItems: true, isOutput: true, options: a.NameValuePairsOptions.create((e3) => e3.setAllowLiteralModeOnlyOnName(true).setNameLabel(f.dialogflow.sessionKeyLabel).setValueLabel(f.getAttributes.variableLabel)), yamlOptions: T.createYamlOptions("outputSessionVariables", (e3) => e3.setWrappedCollectionItemName("outputSessionVariable").setNameValuePairShouldUseVariableProperty(true)) }, { label: f.lex.initialIntentLabel, options: o.ExpressionTypeStringOptions.create((e3) => e3.setIsOptional(false).setAllowNotSet(false).setIninTestingField("initialIntentExpression")), yamlOptions: T.createYamlOptions("initialIntent", (e3) => e3.setPropertyName("aliasInitialIntentName")), property: "initialIntent", type: m.expressionTypeNames.string }]; + } + _postProcessYamlConfig(e3, t3, i3) { + e3.lexBot = {}; + const n3 = (e3.lexBot[this.region] = {})[this.botName] = {}; + if (!this.aliasName) return void r2.default.ensureYamlNoneTrue(n3); + const o2 = (n3[this.aliasLanguage] = {})[this.aliasName] = {}; + r2.default.moveAndDeleteProperty(e3, o2, "aliasInitialIntentName"), this.commonBotPostProcessYamlConfig(e3, o2); + } + get region() { + return this.model.region || this.getRegionFromBotId(this.botId); + } + set region(e3) { + this.model.region = e3; + } + getRegionFromBotId(e3) { + var t3; + if (e3) return null === (t3 = null == e3 ? void 0 : e3.split("~")) || void 0 === t3 ? void 0 : t3[1]; + } + setBotCategoryByViewModel(e3) { + super.setBotCategoryByViewModel(e3), this.region = (null == e3 ? void 0 : e3.region) || this.getRegionFromBotId(null == e3 ? void 0 : e3.id); + } + setBotRunnableByViewModel(e3) { + super.setBotRunnableByViewModel(e3), this.shortBotId = null == e3 ? void 0 : e3.botId, this.shortAliasId = null == e3 ? void 0 : e3.shortAliasId, this._configureInitialIntentAllowableValues(e3); + } + get shortAliasId() { + return this.model.shortAliasId; + } + set shortAliasId(e3) { + this.model.shortAliasId = e3; + } + get shortBotId() { + return this.model.shortBotId; + } + set shortBotId(e3) { + this.model.shortBotId = e3; + } + get shouldSkipLanguageValidation() { + return true; + } + get supportsInputsOutputs() { + return true; + } + _configureInitialIntentAllowableValues(e3) { + e3 || (e3 = s.lexV2AliasManager.getItem(this.aliasId)); + const t3 = ((null == e3 ? void 0 : e3.intents) || []).filter((e4) => "FALLBCKINT" !== e4.model.intentId); + this.initialIntent.options.facets.setAllowableValues(t3), u.validateAction(this, false, true); + } + } + T.info = c.default.createActionInfo({ actionClass: T, canBeInTask: true, helpTopic: d.helpTopics.actions.lexV2, modelClass: i2(12044), name: f.actions.lexV2, scriptingName: "ArchActionCallLexV2Bot" }), t2.A = T; + }, 82584: (e2, t2, i2) => { + const n2 = i2(11475), { expressionTypeNames: r2 } = i2(80428); + function o() { + o.baseConstructor.apply(this, arguments), this.typeIdentifier || (this.typeIdentifier = r2.json); + } + n2.extend(o, "JsonVariable", true), Object.defineProperties(o.prototype, { typeIdentifier: { writable: true } }), e2.exports = o; + }, 82619: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importDefault(i2(23581)), o = n2.__importDefault(i2(66959)); + class a extends r2.default { + constructor({ id: e3, name: t3, description: i3, version: n3, generators: r3, resultExpressionType: o2, restrictToFlowTypeOrTypes: a2, categoryIdentifierOrIdentifiers: s, builderPartDefCategoryIdentifierOrIdentifiers: l, defaultBuilderPartId: u, icon: d, helpTopic: c, requiredFeatureToggle: p, requiredFeatureConfig: _, requiredChannelTypeOrTypes: h, minMaxInfo: m }) { + super(e3, t3, i3, n3, r3, o2, a2, s, l, u, d, c, p, _, h, m); + } + get className() { + return "BooleanBuilderWithBuilderPartsDef"; + } + get isBooleanBuilderWithBuilderPartsDef() { + return true; + } + createBuilder(e3) { + const t3 = this.reviveBuilder(e3, this.createDefaultBuilderPartsModel()); + return t3.setNewInstanceDefaults(), t3; + } + reviveBuilder(e3, t3, i3) { + return new o.default({ owningExpression: e3, model: t3, reId: !!i3 }); + } + } + t2.default = a; + }, 82630: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = i2(80295), o = i2(19596); + class a extends o.DataContract { + get id() { + var e3; + return this._id ? this._id : `${null === (e3 = this._guide) || void 0 === e3 ? void 0 : e3.id}~${this._version}`; + } + set id(e3) { + this._id = e3; + } + get name() { + return this._name; + } + set name(e3) { + this._name = e3; + } + get version() { + return this._version; + } + set version(e3) { + this._version = e3; + } + get guide() { + return this._guide; + } + set guide(e3) { + this._guide = e3; + } + get variables() { + return this._variables; + } + set variables(e3) { + this._variables = e3, this.inputs = this._variables.filter((e4) => "Input" === e4.scope || "InputAndOutput" === e4.scope), this.outputs = this._variables.filter((e4) => "Output" === e4.scope || "InputAndOutput" === e4.scope); + } + get inputs() { + return this._inputs; + } + set inputs(e3) { + this._inputs = e3; + } + get outputs() { + return this._outputs; + } + set outputs(e3) { + this._outputs = e3; + } + } + t2.default = a, n2.__decorate([(0, r2.enumerable)(true), n2.__metadata("design:type", String), n2.__metadata("design:paramtypes", [String])], a.prototype, "id", null), n2.__decorate([(0, r2.enumerable)(true), n2.__metadata("design:type", String), n2.__metadata("design:paramtypes", [String])], a.prototype, "name", null), n2.__decorate([(0, r2.enumerable)(true), n2.__metadata("design:type", String), n2.__metadata("design:paramtypes", [String])], a.prototype, "version", null), n2.__decorate([(0, r2.enumerable)(true), n2.__metadata("design:type", Object), n2.__metadata("design:paramtypes", [Object])], a.prototype, "guide", null), n2.__decorate([(0, r2.enumerable)(true), n2.__metadata("design:type", Array), n2.__metadata("design:paramtypes", [Array])], a.prototype, "variables", null), n2.__decorate([(0, r2.enumerable)(true), n2.__metadata("design:type", Object), n2.__metadata("design:paramtypes", [Object])], a.prototype, "inputs", null), n2.__decorate([(0, r2.enumerable)(true), n2.__metadata("design:type", Object), n2.__metadata("design:paramtypes", [Object])], a.prototype, "outputs", null); + }, 82632: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.transferToAcd = t2.conversationAttributeLimits = t2.setSkillExpressionFilters = t2.richLink = t2.abortSend = t2.askForAuthentication = t2.evaluateSkillExpressionFilters = t2.collectInput = t2.askForPaymentLimits = t2.interactiveApplicationLimits = t2.findLimits = t2.switchActionCaseLimits = t2.voiceSurveyLimits = t2.sipHeaderNamesLimits = t2.emailHeaderNamesLimits = t2.sendAutoReplyAction = t2.sendResponseAction = t2.responseAssetLimits = t2.propertyLimits = t2.promptLimits = t2.imageLimits = t2.flowSizeLimits = t2.system = t2.flowLimits = t2.grammarLimits = t2.dataTypeLimits = void 0; + const n2 = i2(31635), r2 = n2.__importDefault(i2(73198)), o = n2.__importDefault(i2(77862)); + var a = i2(35648); + Object.defineProperty(t2, "dataTypeLimits", { enumerable: true, get: function() { + return n2.__importDefault(a).default; + } }), t2.grammarLimits = { name: { maxLength: 64 }, description: { maxLength: 500 }, gram: { maxSizeBytes: 25 * r2.default.oneMegabyte }, grxml: { maxSizeBytes: r2.default.oneMegabyte } }, t2.flowLimits = { name: { maxLength: 200 }, description: { maxLength: 500 } }, t2.system = { maxPubApiRequestSize: 6 * r2.default.oneMegabyte }, t2.flowSizeLimits = { maxFlowSize: t2.system.maxPubApiRequestSize, maxFlowSizeEmail: Math.round(t2.system.maxPubApiRequestSize / 2), maxFlowSizeCommonModule: Math.round(t2.system.maxPubApiRequestSize / 4), maxFlowSizeToStopPublish: 0.98 }, t2.imageLimits = { size: { maxSizeMegabytes: 25 } }, t2.promptLimits = { name: { maxLength: 200 } }, t2.propertyLimits = { name: { maxLength: 128 }, description: { maxLength: 128 } }, t2.responseAssetLimits = { size: { maxSizeMegabytes: 100 } }, t2.sendResponseAction = { attachments: { maxItems: 5 } }, t2.sendAutoReplyAction = { attachments: { maxItems: 5 } }, t2.emailHeaderNamesLimits = { maxItems: { count: 5, isSoftLimit: false } }, t2.sipHeaderNamesLimits = { maxItems: { count: 10, isSoftLimit: false } }, t2.voiceSurveyLimits = { answerOptionTextLength: { maxLength: o.default.entityType.maxListEntityItemValueStrLen }, multipleChoiceQuestions: { maxLength: o.default.entityType.maxListEntityTypes } }, t2.switchActionCaseLimits = { numDefaultCases: 3, numMaxCases: 64 }, t2.findLimits = { maxBulkFindByName: 50, findName: { minLength: 1, maxLength: 256 } }, t2.interactiveApplicationLimits = { application: { name: { minLength: 1 }, url: { minLength: 1 } }, receivedMessage: { subTitle: { maxLength: 256 }, title: { maxLength: 256 } } }, t2.askForPaymentLimits = { lineItems: { maxItems: 10 }, shippingOptions: { maxItems: 4 }, totalPrice: { minValue: 1e-3, maxValue: 1e9, decimalPlaces: 3 }, title: { minLength: 1, maxLength: 256 }, contactInformation: { maxItems: 4 } }, t2.collectInput = { maxDigits_40: 40, maxDigits_32: 32 }, t2.evaluateSkillExpressionFilters = { skillExpressionFilters: { minItems: 1, maxItems: 1, items: { minLength: 1, maxLength: 1024 } } }, t2.askForAuthentication = { authenticationCompletionTimeout: { maxDuration: 3 * r2.default.msPerDay, maxDurationInclusive: true, minDuration: 30 * r2.default.msPerSecond, minDurationInclusive: true }, signInMessage: { maxLength: 256, minLength: 1 }, successMessage: { maxLength: 256, minLength: 1 } }, t2.abortSend = { message: { minLength: 1, maxLength: 300 } }, t2.richLink = { body: { maxLength: 1024, minLength: 1 }, footer: { maxLength: 60, minLength: 1 }, header: { maxLength: 60, minLength: 1 }, url: { minLength: 12 }, urlLabel: { maxLength: 20, minLength: 1 } }, t2.setSkillExpressionFilters = { skillExpressionFilters: { minItems: 1, maxItems: 1 } }, t2.conversationAttributeLimits = { recordId: { minLength: 1, maxLength: 50, literalPattern: "^[a-zA-Z0-9_-]+$" }, versionId: { minValue: 1, minValueInclusive: true } }, t2.transferToAcd = { preferredAgents: { maxItems: 20 }, skillExpressionFilters: { minItems: 1, maxItems: 1 } }; + }, 82675: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.ConversationCustomAttributeSchema = void 0; + const n2 = i2(31635), r2 = i2(80295), o = i2(80295), a = i2(84050); + class s extends a.NameIdDescriptionModel { + constructor(e3) { + super(e3), (0, o.makeUnenumerable)(this, "_version"), (0, o.makeUnenumerable)(this, "_enabled"), (0, o.makeUnenumerable)(this, "_jsonSchema"); + } + get name() { + var e3; + return (null === (e3 = this.jsonSchema) || void 0 === e3 ? void 0 : e3.title) || super.name; + } + set name(e3) { + super.name = e3; + } + get version() { + return this._version; + } + set version(e3) { + this._version = e3; + } + get enabled() { + return this._enabled; + } + set enabled(e3) { + this._enabled = e3; + } + get jsonSchema() { + return this._jsonSchema; + } + set jsonSchema(e3) { + this._jsonSchema = e3; + } + } + t2.ConversationCustomAttributeSchema = s, n2.__decorate([(0, r2.enumerable)(true), n2.__metadata("design:type", String), n2.__metadata("design:paramtypes", [String])], s.prototype, "name", null), n2.__decorate([(0, r2.enumerable)(true), n2.__metadata("design:type", Number), n2.__metadata("design:paramtypes", [Number])], s.prototype, "version", null), n2.__decorate([(0, r2.enumerable)(true), n2.__metadata("design:type", Boolean), n2.__metadata("design:paramtypes", [Boolean])], s.prototype, "enabled", null), n2.__decorate([(0, r2.enumerable)(true), n2.__metadata("design:type", Object), n2.__metadata("design:paramtypes", [Object])], s.prototype, "jsonSchema", null); + }, 82699: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.ResponseAssetList = void 0; + const n2 = i2(31635), r2 = i2(80295), o = i2(15116), a = i2(23343); + class s extends o.PagedList { + constructor(e3) { + super(e3); + } + get entities() { + return this._entities; + } + set entities(e3) { + this._entities = this.reviveArray(e3, a.ResponseAsset); + } + } + t2.ResponseAssetList = s, n2.__decorate([(0, r2.enumerable)(true), n2.__metadata("design:type", Array), n2.__metadata("design:paramtypes", [Array])], s.prototype, "entities", null); + }, 82915: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.ScriptManager = void 0; + const n2 = i2(31635), r2 = n2.__importDefault(i2(92140)), o = i2(24032), a = n2.__importDefault(i2(4648)), s = i2(10798), l = n2.__importDefault(i2(47532)), u = i2(86050), d = n2.__importStar(i2(1360)), c = n2.__importDefault(i2(33231)), p = i2(81801), _ = i2(27862), h = i2(52124); + class m extends l.default { + get requiredAuth() { + return (0, s.isFeatureAvailable)(a.default.divisionedScriptsV2) ? p.externalAuthorizations.authStrings.scriptsSearch : p.externalAuthorizations.authStrings.scriptsView; + } + get dependencyType() { + return _.ScreenPop; + } + constructor(e3) { + super(), this.topic = (0, o.getTopic)("scriptManager"), this._rawServerCache = {}, this.actionPropertyForUsageSearch = "scriptId", this.defaultMatchingStyle = d.exactMatch, this.apiCallList = h.getScripts, this.apiCallSingle = h.getScript, this.isScriptManager = true, this.uiMetadataSectionName = "scripts", this.className = e3 || "ScriptManager", this._initialize(); + } + _createItemViewModel(e3) { + return new u.ScreenPopViewModel(e3); + } + getCategoryForScript(e3) { + const t3 = this.items[e3]; + return t3 ? t3.category : null; + } + getScriptCategories() { + const e3 = r2.default.pluck(this.items, "category"); + return r2.default.uniq(e3, false); + } + getScript(e3) { + return this.items[e3]; + } + getScriptInputs(e3) { + return e3.isFlowCachedVersion ? c.default.fcall(function() { + e3.loadVariables(e3.model.variables); + }) : h.getScriptVariables(e3.id).then((t3) => { + e3.loadVariables(t3); + const i3 = r2.default.findWhere(this._rawServerCache, { id: e3.id }); + i3 && (i3.variables = t3); + }); + } + manifestFilter(e3) { + return !this.scriptFeatureType || r2.default.contains(e3.features, this.scriptFeatureType); + } + } + t2.ScriptManager = m; + }, 82926: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importDefault(i2(92140)), o = n2.__importDefault(i2(8471)); + let a = false; + class s extends o.default { + constructor(e3) { + super(), this._notWritableOverride = false, this._writableOverride = false, this._checkItem(this._infoParmCtor("archBaseValue"), !e3 || !e3.isArchBaseValue, "INTERNAL ERROR - invalid archBaseValue passed to ArchValueSettings"), this._archBaseValue = e3; + } + get _coreExpressionOptions() { + return this._coreExpressionViewModel.options; + } + get _coreExpressionViewModel() { + return this._archBaseValue._getCoreViewModel(); + } + _setNotWritableOverride(e3) { + return this._notWritableOverride = e3, this._archBaseValue; + } + _setWritableOverride(e3) { + return this._writableOverride = e3, this._archBaseValue; + } + get displayTypeName() { + return "ArchValueSettings"; + } + get logStr() { + if (!this._archBaseValue) return this.logStrTypeOnly; + const e3 = []; + return this._appendLogStrPart(e3, "IsOutput", this.isOutput, true, false), this._appendLogStrPart(e3, "CanBeExpression", this.canBeExpression, true, false), this._appendLogStrPart(e3, "CanBeLiteral", this.canBeLiteral, true, false), this._appendLogStrPart(e3, "CanBeNoValue", this.canBeNoValue, true, false), this._appendLogStrPart(e3, "CanBeVariable", this.canBeVariable, true, false), this._appendLogStrPart(e3, "isReadable", this.isReadable, true, false), this._appendLogStrPart(e3, "isWritable", this.isWritable, true, false), this._createLogStrFromParts(e3); + } + get canBeExpression() { + const e3 = this._coreExpressionOptions; + return !!r2.default.isFunction(null == e3 ? void 0 : e3.getAllowModeExpression) && e3.getAllowModeExpression(this._coreExpressionViewModel); + } + get canBeLiteral() { + const e3 = this._coreExpressionOptions; + return !!e3 && e3.allowModeLiteral; + } + get canBeVariable() { + const e3 = this._coreExpressionOptions; + return !!e3 && e3.allowModeVariable; + } + get canBeNoValue() { + const e3 = this._coreExpressionOptions; + return !!e3 && e3.allowModeNoValue; + } + get canBeNoValueNoFallback() { + const e3 = this._coreExpressionOptions; + return !!e3 && e3.allowNoValueModeWithNoFallback; + } + get canUseSecureVariables() { + const e3 = this._coreExpressionOptions; + return !!e3 && e3.allowSecure; + } + get label() { + return this._coreExpressionViewModel ? this._coreExpressionViewModel.label : ""; + } + get hasFlowLevelDefault() { + const e3 = this._coreExpressionViewModel; + if (e3 && r2.default.isArray(e3.supportedFlowTypes) && e3.parentFlow && !e3.supportedFlowTypes.includes(e3.parentFlow.type)) return false; + const t3 = this._coreExpressionOptions; + return !!t3 && t3.allowFlowLevelDefault; + } + get isArchValueSettings() { + return true; + } + get isInput() { + const e3 = this._coreExpressionOptions; + return !!e3 && e3.isInput; + } + get isOutput() { + const e3 = this._coreExpressionOptions; + return !!e3 && e3.isOutput; + } + get isReadable() { + return !this._coreExpressionViewModel.outOfService; + } + get isWritable() { + return this._writableOverride || !this._coreExpressionViewModel.outOfService && !this._notWritableOverride; + } + get mustBeExpression() { + const e3 = this._coreExpressionOptions; + return !!e3 && e3.expressionOnly; + } + get mustBeLiteral() { + const e3 = this._coreExpressionOptions; + return !!e3 && e3.literalOnly; + } + get mustBeVariable() { + const e3 = this._coreExpressionOptions; + return !!e3 && e3.variableOnly; + } + get allowInvalidExpressionText() { + return a; + } + set allowInvalidExpressionText(e3) { + this._checkItemIsValidLiteralBool(this._infoPropSet("newValue", "allowInvalidExpressionText"), e3, false), a = e3, this.logNote(`the allowInvalidExpressionText property is now set to ${a}`); + } + } + t2.default = s; + }, 82955: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.publishBehavior = void 0; + var n2 = i2(97314), r2 = i2(14359); + t2.publishBehavior = function(e3) { + return function(t3) { + var i3 = new n2.BehaviorSubject(e3); + return new r2.ConnectableObservable(t3, function() { + return i3; + }); + }; + }; + }, 82984: (e2) => { + e2.exports = { askCommon: { invalidInputReceived: "\uC785\uB825\uD55C \uB0B4\uC6A9\uC774 \uC720\uD6A8\uD558\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4.", noInputReceived: "\uC785\uB825\uD55C \uB0B4\uC6A9\uC774 \uC5C6\uC2B5\uB2C8\uB2E4." }, askForBoolean: { noInput: '\uACC4\uC18D \uC9C4\uD589\uD558\uB824\uBA74 "\uC608", \uADF8\uB807\uC9C0 \uC54A\uC73C\uBA74 "\uC544\uB2C8\uC694"\uB77C\uACE0 \uB9D0\uD558\uC138\uC694.', noMatch: '"\uC608" \uB610\uB294 "\uC544\uB2C8\uC694"\uB77C\uACE0 \uB9D0\uD558\uC2ED\uC2DC\uC624. \uACC4\uC18D \uC9C4\uD589\uD558\uC2DC\uACA0\uC2B5\uB2C8\uAE4C?', question: "\uACC4\uC18D \uC9C4\uD589\uD558\uC2DC\uACA0\uC2B5\uB2C8\uAE4C?", noInputDigitalBot: '\uACC4\uC18D\uD558\uB824\uBA74 "\uC608"\uB97C \uC785\uB825\uD558\uACE0 \uADF8\uB807\uC9C0 \uC54A\uC73C\uBA74 "\uC544\uB2C8\uC694"\uB97C \uC785\uB825\uD558\uC2ED\uC2DC\uC624.', noMatchDigitalBot: '"\uC608" \uB610\uB294 "\uC544\uB2C8\uC694"\uB97C \uC785\uB825\uD558\uC2ED\uC2DC\uC624. \uACC4\uC18D\uD558\uC2DC\uACA0\uC2B5\uB2C8\uAE4C?' }, askForIntent: { noInput: '\uCFFC\uB9AC\uAC00 \uC5B4\uB5A4 \uB0B4\uC6A9\uC778\uC9C0 \uAC04\uB2E8\uD558\uAC8C \uC124\uBA85\uD558\uC2ED\uC2DC\uC624. \uC608\uB97C \uB4E4\uC5B4 "\uB0B4 \uACC4\uC88C \uC794\uC561 \uD655\uC778"\uC774\uB77C\uACE0 \uB9D0\uD558\uBA74 \uB429\uB2C8\uB2E4.', noMatch: "\uBB34\uC5C7\uC744 \uD558\uACE0 \uC2F6\uC73C\uC2E0\uC9C0 \uB2E4\uC2DC \uB9D0\uD574 \uC8FC\uC138\uC694.", question: "\uC5B4\uB5A4 \uC791\uC5C5\uC744 \uD558\uACE0 \uC2F6\uC73C\uC2E0\uAC00\uC694?", noInputDigitalBot: '\uBB38\uC758 \uB0B4\uC6A9\uC744 \uC124\uBA85\uD558\uB294 \uC9E7\uC740 \uBB38\uC7A5\uC744 \uC785\uB825\uD558\uC2ED\uC2DC\uC624. \uC608: "\uB0B4 \uACC4\uC88C \uC794\uC561 \uD655\uC778"' }, askForSlot: { askFor: "%1$s \uC694\uCCAD", noInput: "(\uC5EC\uAE30\uC5D0 \uC2AC\uB86F \uC774\uB984 \uC785\uB825)\uC744(\uB97C) \uB9D0\uD558\uAC70\uB098 \uC785\uB825\uD558\uC138\uC694.", noInputWithSlot: "%1$s\uC744(\uB97C) \uB9D0\uD558\uAC70\uB098 \uC785\uB825\uD558\uC138\uC694.", noMatch: "(\uC5EC\uAE30\uC5D0 \uC2AC\uB86F \uC774\uB984 \uC785\uB825)\uC744(\uB97C) \uB2E4\uC2DC \uC54C\uB824 \uC8FC\uC138\uC694.", noMatchWithSlot: "%1$s\uC744(\uB97C) \uB2E4\uC2DC \uC54C\uB824 \uC8FC\uC138\uC694.", question: "(\uC5EC\uAE30\uC5D0 \uC2AC\uB86F \uC774\uB984 \uC785\uB825)\uC774(\uAC00) \uBB34\uC5C7\uC778\uAC00\uC694?", questionWithSlot: "%1$s\uC774(\uAC00) \uBB34\uC5C7\uC778\uAC00\uC694?", pleaseEnterSlotNameHere: "(\uC5EC\uAE30\uC5D0 \uC2AC\uB86F \uC774\uB984\uC744 \uC785\uB825\uD558\uC138\uC694)", noInputDigitalBot: "(\uC5EC\uAE30\uC5D0 \uC2AC\uB86F \uC774\uB984 \uC785\uB825)\uC744(\uB97C) \uC785\uB825\uD558\uC2ED\uC2DC\uC624.", noInputWithSlotDigitalBot: "%1$s\uC744(\uB97C) \uC785\uB825\uD574 \uC8FC\uC2ED\uC2DC\uC624.", continuationPromptWithSlot: "\uC9C0\uAE08\uAE4C\uC9C0 {{Slot.%1$s}}\uC774(\uAC00) \uC788\uC2B5\uB2C8\uB2E4. \uACC4\uC18D\uD558\uC2ED\uC2DC\uC624." }, askForNextSlot: { noInput: '\uB2E4\uB978 \uCFFC\uB9AC\uAC00 \uC788\uC73C\uBA74 "\uC608", \uD1B5\uD654\uB97C \uC885\uB8CC\uD558\uB824\uBA74 "\uC544\uB2C8\uC694"\uB77C\uACE0 \uB9D0\uD558\uC138\uC694.', noMatch: '\uB2E4\uB978 \uCFFC\uB9AC\uAC00 \uC788\uC73C\uBA74 "\uC608", \uC138\uC158\uC744 \uC885\uB8CC\uD558\uB824\uBA74 "\uC544\uB2C8\uC694"\uB77C\uACE0 \uB9D0\uD558\uC2ED\uC2DC\uC624.', question: "\uC774\uC678\uC5D0 \uB2E4\uB978 \uB3C4\uC6C0\uC774 \uD544\uC694\uD558\uC138\uC694?", noInputDigitalBot: '\uB2E4\uB978 \uBB38\uC758\uAC00 \uC788\uC73C\uBA74 "\uC608"\uB97C \uC785\uB825\uD558\uACE0 \uC138\uC158\uC744 \uC885\uB8CC\uD558\uB824\uBA74 "\uC544\uB2C8\uC694"\uB97C \uC785\uB825\uD558\uC2ED\uC2DC\uC624.', noMatchDigitalBot: '\uB2E4\uB978 \uBB38\uC758\uAC00 \uC788\uC73C\uBA74 "\uC608"\uB97C \uC785\uB825\uD558\uACE0 \uC138\uC158\uC744 \uC885\uB8CC\uD558\uB824\uBA74 "\uC544\uB2C8\uC694"\uB97C \uC785\uB825\uD558\uC2ED\uC2DC\uC624.' }, askForPayment: { noInputDigitalBot: "\uACC4\uC18D\uD558\uB824\uBA74 \uACB0\uC81C \uC815\uBCF4\uB97C \uC81C\uACF5\uD558\uC2ED\uC2DC\uC624.", noMatchDigitalBot: "\uC751\uB2F5\uC744 \uC774\uD574\uD558\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4. \uB2E4\uC2DC \uC2DC\uB3C4\uD558\uC2ED\uC2DC\uC624." }, askForAuthentication: { noInputDigitalBot: "\uACC4\uC18D\uD558\uB824\uBA74 \uC778\uC99D \uC815\uBCF4\uB97C \uC81C\uACF5\uD558\uC2ED\uC2DC\uC624.", noMatchDigitalBot: "\uC751\uB2F5\uC744 \uC774\uD574\uD558\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4. \uB2E4\uC2DC \uC2DC\uB3C4\uD558\uC2ED\uC2DC\uC624." }, askSurveyQuestion: { notApplicable: "\uD574\uB2F9\uB418\uC9C0 \uC54A\uC74C", surveyAnswerOptionSequence: "'%2$s'\uC5D0 \uB300\uD55C %1$s\uC744(\uB97C) \uB204\uB985\uB2C8\uB2E4.", surveyAnswerNotApplicableSequence: "\uD574\uB2F9 \uC5C6\uC74C\uC5D0 \uB300\uD55C \uBCC4\uC744 \uB204\uB985\uB2C8\uB2E4.", surveyAnswerNotApplicableWithQuestionSequence: "%1$s. \uD574\uB2F9 \uC5C6\uC74C\uC5D0 \uB300\uD55C \uBCC4\uC744 \uB204\uB985\uB2C8\uB2E4.", voiceSurveyNoInputText: "\uC9C8\uBB38\uC5D0 \uC751\uB2F5\uD558\uC2ED\uC2DC\uC624.", voiceSurveyNoMatchText: "\uC81C\uAC00 \uC81C\uB300\uB85C \uD30C\uC545\uD558\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4." }, commonModule: { exitCommonModule: "\uACF5\uD1B5 \uBAA8\uB4C8 \uC885\uB8CC" }, form: { noInputDigitalBot: "\uACC4\uC18D\uD558\uB824\uBA74 \uC591\uC2DD\uC744 \uC791\uC131\uD558\uC2ED\uC2DC\uC624.", noMatchDigitalBot: "\uACC4\uC18D\uD558\uB824\uBA74 \uC591\uC2DD\uC744 \uC791\uC131\uD558\uC2ED\uC2DC\uC624." }, messagingTemplate: { noInputDigitalBot: "\uC0AC\uC6A9 \uAC00\uB2A5\uD55C \uC635\uC158 \uC911 \uD558\uB098\uB97C \uC120\uD0DD\uD558\uC138\uC694.", noMatchDigitalBot: "\uC0AC\uC6A9 \uAC00\uB2A5\uD55C \uC635\uC158 \uC911 \uD558\uB098\uB97C \uC120\uD0DD\uD558\uC138\uC694." }, knowledgeSettings: { knowledgeAnswerHighlightFlowProgressionDefault: "\uACC4\uC18D", knowledgeAnswerHighlightFullArticleDefault: "\uC804\uCCB4 \uBB38\uC11C \uBCF4\uAE30", knowledgeInitialResponseMulti: "\uBAA9\uD45C\uB97C \uBA85\uD655\uD788 \uC54C \uC218 \uC788\uB3C4\uB85D \uB2E4\uC74C \uBAA9\uB85D\uC5D0\uC11C \uBC88\uD638\uB97C \uC120\uD0DD\uD558\uC2ED\uC2DC\uC624.", knowledgeInitialResponseMultiRetry: "\uBC88\uD638\uB97C \uC120\uD0DD\uD558\uC2ED\uC2DC\uC624. \uC608\uB97C \uB4E4\uC5B4 '1'\uC744 \uC120\uD0DD\uD569\uB2C8\uB2E4.\n\uB2E4\uC74C\uC740 \uC635\uC158 \uBAA9\uB85D\uC785\uB2C8\uB2E4.", knowledgeNoMatch: "\uC5C6\uC74C", knowledgeConfirmation: "\uC9C8\uBB38\uC758 \uC751\uB2F5\uC774 \uB418\uC5C8\uC2B5\uB2C8\uAE4C?", knowledgeFollowup: "\uC9C8\uBB38\uC5D0 \uB300\uD55C \uB2F5\uBCC0\uC774 \uB418\uC5C8\uAE30\uB97C \uBC14\uB78D\uB2C8\uB2E4. \uAD81\uAE08\uD55C \uAC83\uC774 \uC788\uC73C\uC2DC\uBA74 \uB354 \uC9C8\uBB38\uD558\uC2E4 \uC218 \uC788\uC2B5\uB2C8\uB2E4." }, noOverlay: { intent: { intentConfirmationStr1: "\uC6D0\uD558\uC2DC\uB294\uAD70\uC694.", intentConfirmationStr2: "\uB9DE\uC2B5\uB2C8\uAE4C?" }, youSaid: { youSaidConfirmationStr1: "\uB9D0\uC500\uD558\uC168\uC2B5\uB2C8\uB2E4.", youSaidConfirmationStr2: "\uB9DE\uC2B5\uB2C8\uAE4C?", youSaidConfirmationStr1DigitalBot: "\uC785\uB825\uD558\uC2E0 \uC0AC\uD56D" }, noInput: { noInputStr1: "\uB9D0\uD558\uAC70\uB098 \uC785\uB825\uD574 \uC8FC\uC2ED\uC2DC\uC624.", noInputStr1DigitalBot: "\uB2E4\uC74C \uC0AC\uD56D\uC744 \uC785\uB825\uD574 \uC8FC\uC2ED\uC2DC\uC624." }, noMatch: { noMatchStr1: "\uC81C\uACF5\uD574 \uC8FC\uC2ED\uC2DC\uC624." }, whatIs: { whatIsQuestionStr1: "\uBB34\uC5C7\uC785\uB2C8\uAE4C?", whatIsQuestionStr2: "?" }, iGotContinuation: { iGotContinuationStr1: "\uC9C0\uAE08\uAE4C\uC9C0", iGotContinuationStr2: "\uC774(\uAC00) \uC788\uC2B5\uB2C8\uB2E4. \uACC4\uC18D\uD558\uC2ED\uC2DC\uC624." } }, defaultCallFlowOne: "\uAE30\uBCF8 \uD1B5\uD654 \uD750\uB984", errorHandlingAgentEscalationConfirmation: "\uC0C1\uB2F4 \uC804\uBB38\uAC00\uC640 \uD1B5\uD654\uD558\uB824\uACE0 \uD569\uB2C8\uB2E4. \uB9DE\uC2B5\uB2C8\uAE4C?", errorHandlingAgentEscalationHandover: "\uC7A0\uC2DC \uAE30\uB2E4\uB824 \uC8FC\uC2DC\uBA74 \uC5F0\uACB0\uD574 \uB4DC\uB9AC\uACA0\uC2B5\uB2C8\uB2E4.", errorHandlingErrorEventHandover: "\uC8C4\uC1A1\uD569\uB2C8\uB2E4. \uC624\uB958\uAC00 \uBC1C\uC0DD\uD588\uC2B5\uB2C8\uB2E4. \uC7A0\uC2DC \uAE30\uB2E4\uB824 \uC8FC\uC2DC\uBA74 \uB3C4\uC6C0\uC744 \uB4DC\uB9B4 \uC218 \uC788\uB294 \uC0AC\uB78C\uACFC \uC5F0\uACB0\uD574 \uB4DC\uB9AC\uACA0\uC2B5\uB2C8\uB2E4.", errorHandlingErrorEventHandoverVoiceSurvey: "\uC8C4\uC1A1\uD569\uB2C8\uB2E4. \uC624\uB958\uAC00 \uBC1C\uC0DD\uD588\uC2B5\uB2C8\uB2E4. \uC5F0\uACB0\uC744 \uC885\uB8CC\uD569\uB2C8\uB2E4.", errorHandlingRecognitionEventHandover: "\uC8C4\uC1A1\uD569\uB2C8\uB2E4. \uC81C\uAC00 \uC81C\uB300\uB85C \uD30C\uC545\uD558\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4. \uC7A0\uC2DC \uAE30\uB2E4\uB824 \uC8FC\uC2DC\uBA74 \uB3C4\uC6C0\uC744 \uB4DC\uB9B4 \uC218 \uC788\uB294 \uC0AC\uB78C\uACFC \uC5F0\uACB0\uD574 \uB4DC\uB9AC\uACA0\uC2B5\uB2C8\uB2E4.", errorHandlingRecognitionEventHandoverVoiceSurvey: "\uC8C4\uC1A1\uD569\uB2C8\uB2E4. \uC81C\uAC00 \uC81C\uB300\uB85C \uD30C\uC545\uD558\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4. \uC5F0\uACB0\uC744 \uC885\uB8CC\uD569\uB2C8\uB2E4.", errorHandlingTTS: "\uC8C4\uC1A1\uD569\uB2C8\uB2E4. \uC624\uB958\uAC00 \uBC1C\uC0DD\uD588\uC2B5\uB2C8\uB2E4. \uD1B5\uD654\uB97C \uB2E4\uC2DC \uC2DC\uB3C4\uD558\uC2ED\uC2DC\uC624.", initialGreetingTTS: "\uC548\uB155\uD558\uC138\uC694? \uC11C\uBE44\uC2A4\uB97C \uC2DC\uC791\uD569\uB2C8\uB2E4.", initialState: "\uCD5C\uCD08 \uC0C1\uD0DC", initialBotState: "\uAE30\uBCF8 \uBD07", initialDigitalBotState: "\uC2DC\uC791 \uC778\uC0AC\uB9D0", initialSurveyBotState: "\uC870\uC0AC \uBD07", intentConfirmation: "%1$s\uC744(\uB97C) \uC6D0\uD558\uC2DC\uB294 \uAC83\uC774 \uB9DE\uB098\uC694?", mainMenu: "\uAE30\uBCF8 \uBA54\uB274", mainMenuTTS: "\uAE30\uBCF8 \uBA54\uB274\uC5D0 \uC788\uC2B5\uB2C8\uB2E4. \uC5F0\uACB0\uC744 \uB04A\uC73C\uB824\uBA74 9\uB97C \uB204\uB974\uC2ED\uC2DC\uC624.", mainTask: "\uC791\uC5C5", settingsConfirmationNoInputApology: "\uC8C4\uC1A1\uD569\uB2C8\uB2E4. \uB4E3\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4. \uC608\uB098 \uC544\uB2C8\uC694\uB85C \uB9D0\uC500\uD558\uC2ED\uC2DC\uC624.", settingsConfirmationNoInputApologyDigitalBot: '\uC8C4\uC1A1\uD569\uB2C8\uB2E4. \uC785\uB825\uD558\uC2E0 \uB0B4\uC6A9\uC774 \uC218\uC2E0\uB418\uC9C0 \uC54A\uC558\uC2B5\uB2C8\uB2E4. "\uC608" \uB610\uB294 "\uC544\uB2C8\uC694"\uB97C \uC785\uB825\uD574 \uC8FC\uC2ED\uC2DC\uC624.', settingsConfirmationNoMatchApology: "\uC8C4\uC1A1\uD569\uB2C8\uB2E4. \uC608\uB098 \uC544\uB2C8\uC694\uB85C \uB9D0\uC500\uD558\uC2ED\uC2DC\uC624.", settingsConfirmationNoMatchApologyDigitalBot: '\uC8C4\uC1A1\uD569\uB2C8\uB2E4. "\uC608" \uB610\uB294 "\uC544\uB2C8\uC694"\uB97C \uC785\uB825\uD574 \uC8FC\uC2ED\uC2DC\uC624.', settingsNoInputApology: "\uC8C4\uC1A1\uD569\uB2C8\uB2E4. \uB4E3\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4.", settingsNoInputApologyDigitalBot: "\uC8C4\uC1A1\uD569\uB2C8\uB2E4. \uC785\uB825\uD558\uC2E0 \uB0B4\uC6A9\uC774 \uC218\uC2E0\uB418\uC9C0 \uC54A\uC558\uC2B5\uB2C8\uB2E4.", settingsEndOfSessionMessageDigitalBot: "\uD55C\uCC38 \uB3D9\uC548 \uC751\uB2F5\uD558\uC2DC\uC9C0 \uC54A\uC558\uAE30 \uB54C\uBB38\uC5D0 \uC774 \uCC44\uD305\uC744 \uB2EB\uC73C\uB824\uACE0 \uD569\uB2C8\uB2E4. \uB3C4\uC6C0\uC774 \uD544\uC694\uD558\uC2DC\uBA74 \uB2E4\uC2DC \uC5F0\uB77D\uC8FC\uC138\uC694. \uAC10\uC0AC\uD569\uB2C8\uB2E4.", settingsNoMatchApology: "\uC8C4\uC1A1\uD569\uB2C8\uB2E4.", settingsNoToConfirmationApology: "\uC81C \uC798\uBABB\uC785\uB2C8\uB2E4.", periodicStateName: "\uBC18\uBCF5 \uC0C1\uD0DC" }; + }, 82985: (e2, t2, i2) => { + "use strict"; + var n2, r2, o; + Object.defineProperty(t2, "__esModule", { value: true }); + const a = i2(31635), s = a.__importDefault(i2(94225)), l = a.__importDefault(i2(11210)); + class u extends l.default { + constructor(e3) { + super(e3), n2.set(this, void 0), r2.set(this, void 0), o.set(this, void 0), a.__classPrivateFieldSet(this, n2, this.coreFactory.createArchValueFromExpression(e3.exitReason), "f"), a.__classPrivateFieldSet(this, r2, this.coreFactory.createArchWrapper(e3.inputText), "f"), a.__classPrivateFieldSet(this, o, this.coreFactory.createArchValueFromExpression(e3.intent), "f"); + } + get isArchBaseActionCallBotFlow() { + return true; + } + get botFlowTypeEnum() { + return ""; + } + get inputs() { + return this.coreFactory.createArchWrapper(this._getCoreViewModel().inputs); + } + get outputs() { + return this.coreFactory.createArchWrapper(this._getCoreViewModel().outputs); + } + get exitReason() { + return a.__classPrivateFieldGet(this, n2, "f"); + } + get inputText() { + return a.__classPrivateFieldGet(this, r2, "f"); + } + get intent() { + return a.__classPrivateFieldGet(this, o, "f"); + } + get targetFlowInfo() { + return this.coreFactory.createArchFlowInfoBasic(this._getCoreViewModel().model.flowId, this._getCoreViewModel().model.flowName, this.botFlowTypeEnum); + } + setTargetFlowInfoAsync(e3, t3) { + return a.__awaiter(this, void 0, void 0, function* () { + const i3 = this._infoPropSet("newValue", "targetFlowInfo"); + return this._checkItem(i3, !e3 || !e3.isArchFlowInfo && !e3.isArchFlowInfoBasic, "you must pass in an ArchFlowInfo or ArchFlowInfoBasic instance when setting the targetFlowInfo value."), this._checkItem(i3, e3.type !== this.botFlowTypeEnum, `the supplied flow information points to a flow of type '${e3.type}' which is not supported by this action. You must pass in a flow information value that specifies a flow of type '${this.botFlowTypeEnum}'.`), this.logNote(`configuring the call bot flow action to call the bot flow with name '${e3.name}' (id: '${e3.id}') at runtime.`), yield this._getCoreViewModel().setBotFlowReferenceToCallByFlowId(e3.id), s.default.executeCallback(this, "setTargetFlowInfoAsync", t3); + }); + } + } + n2 = /* @__PURE__ */ new WeakMap(), r2 = /* @__PURE__ */ new WeakMap(), o = /* @__PURE__ */ new WeakMap(), t2.default = u; + }, 83051: (e2, t2, i2) => { + const n2 = i2(28730), { endStateActionType: r2 } = i2(30801); + function o() { + o.baseConstructor.apply(this, arguments); + } + n2.extend(o, r2, true), e2.exports = o; + }, 83054: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(11210)), r2 = i2(30801); + class o extends n2.default { + constructor(e3) { + super(e3); + } + get _actionTypeId() { + return r2.nextLoopActionType; + } + get displayTypeName() { + return this._scriptingName; + } + get isArchActionLoopNext() { + return true; + } + } + t2.default = o; + }, 83226: (e2, t2, i2) => { + const n2 = i2(11475), r2 = i2(50964).default; + function o() { + o.baseConstructor.apply(this, arguments); + } + n2.extend(o, "DurationVariable", true), Object.defineProperties(o.prototype, { facets: { enumerable: true, get: function() { + return this._facets; + }, set: function(e3) { + this._facets = this.reviveItem(e3, r2); + } } }), e2.exports = o; + }, 83231: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = i2(43212), o = n2.__importStar(i2(25657)), a = n2.__importStar(i2(24032)), s = i2(47957), l = a.getTopic("KnowledgeSettingViewModel"); + class u extends r2.BaseConfigurationListViewModel { + constructor(e3) { + super(e3); + } + get className() { + return "KnowledgeSettingViewModel"; + } + get getConfiguration() { + return this.model; + } + get id() { + return this.model.id; + } + get knowledgeSettingId() { + return this.model.id; + } + get label() { + return this.model.name; + } + get name() { + return this.model.name; + } + get knowledgeSettingName() { + return this.model.name; + } + get version() { + return this.model.version; + } + get isMultiSourceEnabled() { + return this.model.isMultiSourceEnabled; + } + get isDisambiguationTabDisabled() { + return this.isMultiSourceEnabled; + } + get searchSetting() { + return this.model.searchSetting; + } + get sources() { + return this.model.sources; + } + getSourceNames() { + return n2.__awaiter(this, void 0, void 0, function* () { + if (!this.model.sources || !Array.isArray(this.model.sources)) return []; + try { + const e3 = this.model.sources.map((e4) => o.getKnowledgeSource(e4.id).catch(() => null)); + return (yield Promise.all(e3)).filter((e4) => null !== e4).map((e4) => e4.name); + } catch (e3) { + return l.error("Error fetching source names:", e3), []; + } + }); + } + get generationSetting() { + return this.model.generationSetting; + } + get detailDescription() { + return this.model.description ? this.model.description : s.knowledgeSettings.knowledgeNoDescription; + } + get stateful() { + return this.model.stateful; + } + get dateCreated() { + return this.model.dateCreated; + } + get dateModified() { + return this.model.dateModified; + } + } + t2.default = u; + }, 83276: (e2, t2, i2) => { + const n2 = i2(31140); + function r2() { + r2.baseConstructor.apply(this, arguments); + } + i2(22124).extend(r2, "HedwigActionCategoryList"), Object.defineProperties(r2.prototype, { entities: { enumerable: true, get: function() { + return this._entities; + }, set: function(e3) { + (e3 = this.reviveArray(e3, n2)) && (this._entities = e3); + } } }), e2.exports = r2; + }, 83277: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.getDecisionTables = l, t2.getDecisionTable = u; + const n2 = i2(31635), r2 = n2.__importStar(i2(24032)), o = n2.__importStar(i2(72746)), a = n2.__importDefault(i2(36019)), s = r2.getTopic("decisionTableApi"); + function l(e3) { + const t3 = a.default.build(o.getDecisionTables), i3 = e3.searchTerm ? { name: e3.searchTerm, pageSize: e3.defaultPageSize, withPublishedVersion: e3.additionalParams.withPublishedVersion } : { pageSize: e3.defaultPageSize, withPublishedVersion: e3.additionalParams.withPublishedVersion }; + return e3.after && (i3.after = e3.after), t3.queryParams(i3), t3.call(); + } + function u(e3) { + return a.default.build(o.getDecisionTable).templateParams({ tableId: e3 }).call().then((t3) => { + if (!t3.entities || 0 === t3.entities.length) throw s.error(`No decision table found with id ${e3}`), new Error(`No decision table found with id ${e3}`); + return t3.entities[0]; + }); + } + l.api = o.getDecisionTables, u.api = o.getDecisionTable; + }, 83462: (e2, t2, i2) => { + const n2 = i2(92140), r2 = i2(2398), { permissionService: o } = i2(67210), a = i2(47957), s = i2(97591); + function l() { + Object.defineProperties(this, { _displayName: { writable: true }, _username: { writable: true }, _state: { writable: true } }), this.email = void 0, this.organization = void 0, this._permissions = void 0, this._authorization = void 0, this.divisions = {}, this.status = void 0, this.token = void 0, this.images = void 0, l.baseConstructor.apply(this, arguments); + } + r2.extend(l, "User"), Object.defineProperties(l.prototype, { displayName: { get: function() { + let e3 = this._displayName || this.name || this.username; + return e3 || this.id !== s.systemUser || (e3 = a.user.system), e3; + }, set: function(e3) { + this._displayName = e3; + } }, label: { get: function() { + return this.displayName; + }, set: function(e3) { + this.displayName = e3; + } }, state: { get: function() { + return this._state; + }, set: function(e3) { + this._state = n2.isString(e3) ? e3.toLowerCase() : e3; + } }, authorization: { get: function() { + return this._authorization; + }, set: function(e3) { + this._authorization = e3, e3 && e3.permissions && (this.permissions = e3.permissions); + } }, permissions: { get: function() { + return this._permissions; + }, set: function(e3) { + this._permissions = e3, n2.each(e3, function(e4) { + o.addPermissionToUser(e4, this); + }.bind(this)); + } }, username: { get: function() { + return this._username || this.email; + }, set: function(e3) { + this._username = e3; + } } }), e2.exports = l; + }, 83516: (e2, t2, i2) => { + "use strict"; + const n2 = i2(31635), r2 = i2(81516), o = i2(91546), a = n2.__importDefault(i2(27203)), s = i2(12179), l = n2.__importDefault(i2(66753)), u = n2.__importDefault(i2(97891)), d = n2.__importDefault(i2(5730)), c = i2(80428), p = i2(47957), _ = i2(17604); + class h extends d.default { + static get managedProperties() { + return [{ label: p.submitVoiceSnippet.voiceSnippetToSubmitLabel, options: o.ExpressionTypeVoiceSnippetOptions.create((e3) => e3.setAsInput().setDescriptionInfo(p.submitVoiceSnippet.voiceSnippetToSubmitLabel, (0, _.sprintf)(p.submitVoiceSnippet.voiceSnippetToSubmitDescription, p.generic.branches.failure)).setIninTestingField("snippet")), property: "snippet", type: c.expressionTypeNames.voiceSnippet }, { label: p.submitVoiceSnippet.voiceSnippetDestinationLabel, options: r2.ExpressionTypeStringOptions.create((e3) => e3.setAsInput().setAllowModeLiteralOnly().setDescriptionInfo(p.submitVoiceSnippet.voiceSnippetDestinationLabel, p.submitVoiceSnippet.voiceSnippetDestinationDescription).setIninTestingField("destination").facets.setTrim(true)), yamlOptions: h.createYamlOptions("destination", (e3) => e3.setPropertyName("destination")), property: "destination", type: c.expressionTypeNames.string }, { label: p.submitVoiceSnippet.destinationVoiceSnippetIdLabel, options: r2.ExpressionTypeStringOptions.create((e3) => e3.setAsOutput().setIsOptional(true).setDescriptionInfo(p.submitVoiceSnippet.destinationVoiceSnippetIdLabel, p.submitVoiceSnippet.destinationVoiceSnippetIdDescription).setIninTestingField("destinationSnippetId")), property: "destinationSnippetId", type: c.expressionTypeNames.string }]; + } + constructor(e3, t3) { + super(e3.parentFlow, e3), this._loadModel(t3); + } + setNewInstanceDefaults(e3) { + super.setNewInstanceDefaults(e3), this.destination.setText(l.default.defaultDestinationId); + } + initializeDesignTime() { + super.initializeDesignTime(), this.destination.options.facets.setAllowableValueUseOriginalDisplayString(true).setAllowableValueShowOriginalDisplayStringInPopover(true).setAllowableValues(l.default.getAvailableDestinations()), this.destinationSnippetId.outOfService = !l.default.getDestination(this.destination.text).submissionReturnsSnippetIdentifier; + } + static get branchInfo() { + return a.default.successFailure; + } + } + h.info = u.default.createActionInfo({ actionClass: h, canBeInTask: true, helpTopic: s.helpTopics.actions.submitVoiceSnippet, modelClass: i2(50736), name: p.actions.submitVoiceSnippet, scriptingName: "ArchActionSubmitVoiceSnippet" }), t2.A = h; + }, 83563: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.FlowExportSettings = void 0; + const n2 = i2(37007), r2 = i2(2560); + class o { + constructor(e3, t3) { + var i3; + this.format = e3; + const o2 = n2.FlowExportSettingAvailability.getFlowExportSettingAvailabilityInfo(); + e3 === r2.FlowFileFormatTypes.Yaml && (this.yamlOptions = { includeTrackingIds: !!t3 && (null === (i3 = o2.yaml) || void 0 === i3 ? void 0 : i3.trackingIdsCanBeExported) }); + } + get isFormatYaml() { + return this.format === r2.FlowFileFormatTypes.Yaml; + } + get isFormatArchitect() { + return this.format === r2.FlowFileFormatTypes.Architect; + } + static createForArchitectFormat() { + return this.create(r2.FlowFileFormatTypes.Architect); + } + static createForYamlFormat(e3) { + return this.create(r2.FlowFileFormatTypes.Yaml, e3); + } + static create(e3, t3) { + return e3 === r2.FlowFileFormatTypes.Yaml ? new o(r2.FlowFileFormatTypes.Yaml, t3) : new o(r2.FlowFileFormatTypes.Architect); + } + get isForComparison() { + return false; + } + get isForFlowYaml() { + return this.isFormatYaml; + } + get isArchitectFormatExport() { + return this.isFormatArchitect; + } + } + t2.FlowExportSettings = o; + }, 83566: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(54063)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "externalLineInfoCollection"; + } + get displayTypeName() { + return "ArchValueExternalLineInfoCollection"; + } + get isArchValueExternalLineInfoCollection() { + return true; + } + } + t2.default = r2; + }, 83620: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.FindSystemPromptActionModel = void 0; + const n2 = i2(49574), r2 = i2(30801); + class o extends n2.BaseFindSystemObjectByNameActionModel { + constructor(e3) { + super(e3), this.__type = o.__type; + } + } + t2.FindSystemPromptActionModel = o, o.__type = r2.findSystemPromptActionType, o.registerType(); + }, 83630: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = i2(17604), o = n2.__importDefault(i2(92140)), a = n2.__importStar(i2(58380)), s = n2.__importStar(i2(98442)), l = n2.__importDefault(i2(76117)), u = i2(24812), d = i2(47957); + class c extends l.default { + constructor({ builderViewModel: e3, owningExpressionViewModel: t3, builderPartModel: i3, reId: n3 }) { + super(e3, t3, i3, void 0, n3), a.registerEventSinkForEventEmitter(t3.parentFlow.languages.id, this); + } + objEvent_supportedLanguagesChanged() { + this._getIsInFlowSupportedLanguages() || this.builderViewModel.postNeedsConfigurationForFlowState(); + } + _getIsInFlowSupportedLanguages() { + const e3 = this.parentFlow; + return !!(e3 && e3.definition && e3.definition.supportsLanguages && e3.languages && e3.languages.supportedLanguages) && o.default.contains(e3.languages.supportedLanguagesLCase, this.languageTag); + } + get _needsDeletion() { + return !!super._needsDeletion || !this._getIsInFlowSupportedLanguages(); + } + get className() { + return "LanguageBuilderPartContainerViewModel"; + } + get isLanguageBuilderPartContainerViewModel() { + return true; + } + get languageTag() { + return this.criteria ? this.criteria.languageTag : ""; + } + get containerDisplayString() { + const e3 = s.getLanguageEntry(this.languageTag); + return e3 ? e3.text : ""; + } + _validateContainerOnly(e3, t3) { + let i3 = super._validateContainerOnly(e3, t3); + if (i3) { + const t4 = this.languageTag; + if (o.default.isString(t4) && 0 !== t4.length) { + const n3 = this.parentFlow; + if (n3 && n3.definition && n3.definition.supportsLanguages && n3.languages && n3.languages.supportedLanguages) { + const a2 = u.isoLanguages[t4]; + a2 ? o.default.contains(n3.languages.supportedLanguagesLCase, t4) || (e3.addError(this, (0, r2.sprintf)(d.builders.containerParts.language.languageNotInFlowSupportedLanguages, a2.displayString)), i3 = false) : (e3.addError(this, (0, r2.sprintf)(d.builders.containerParts.language.languageTagNotValid, t4)), i3 = false); + } else e3.addError(this, d.builders.containerParts.language.noFlowSupportedLanguages), i3 = false; + } else e3.addError(this, d.builders.containerParts.language.languageTagNotString), i3 = false; + } + return i3; + } + _destroy() { + a.unregisterEventSinkForEventEmitter(this.parentFlow.languages.id, this), super._destroy(); + } + } + t2.default = c; + }, 83645: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.AssignedCustomerIntentType = void 0; + const n2 = i2(80428), r2 = i2(94765), o = i2(53477); + class a extends r2.ExpressionType { + constructor(e3, t3, i3) { + super(e3, t3, i3); + } + get className() { + return "AssignedCustomerIntentType"; + } + createExpressionOptionClass() { + return new o.ExpressionTypeAssignedCustomerIntentOptions(); + } + get supportsLiteralEditor() { + return false; + } + } + t2.AssignedCustomerIntentType = a, a.typeIdentifier = n2.expressionTypeNames.assignedCustomerIntent; + }, 83663: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = i2(63352), o = n2.__importDefault(i2(81574)); + class a extends o.default { + constructor(e3) { + super(e3), this._coreExpressionViewModel = e3; + } + get displayTypeName() { + return "ArchBaseValueWithAssignableProperties"; + } + get isArchBaseValueWithAssignableProperties() { + return true; + } + setLiteral() { + this._getCoreViewModel().mode = r2.ExpressionModes.literal; + } + } + t2.default = a; + }, 83668: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(28562), r2 = i2(69149), o = { _label: "BotNoInput", availableLanguages: { "ar-ae": "defaultSequence", "ar-eg": "defaultSequence", "ar-sa": "defaultSequence", "ca-es": "defaultSequence", "cs-cz": "defaultSequence", "da-dk": "defaultSequence", "de-ch": "defaultSequence", "de-de": "defaultSequence", "el-gr": "defaultSequence", "en-au": "defaultSequence", "en-gb": "defaultSequence", "en-us": "defaultSequence", "es-es": "defaultSequence", "es-mx": "defaultSequence", "es-us": "defaultSequence", "eu-es": "defaultSequence", "fi-fi": "defaultSequence", "fil-ph": "defaultSequence", "fr-be": "defaultSequence", "fr-ca": "defaultSequence", "fr-fr": "defaultSequence", "he-il": "defaultSequence", "hi-in": "defaultSequence", "hu-hu": "defaultSequence", "it-it": "defaultSequence", "ja-jp": "localizedSequence1", "ko-kr": "localizedSequence1", "ms-my": "defaultSequence", "nb-no": "defaultSequence", "nl-be": "defaultSequence", "nl-nl": "defaultSequence", "pl-pl": "defaultSequence", "pt-br": "defaultSequence", "pt-pt": "defaultSequence", "ru-ru": "defaultSequence", "sv-se": "defaultSequence", "th-th": "defaultSequence", "tr-tr": "defaultSequence", "uk-ua": "defaultSequence", "vi-vn": "defaultSequence", "zh-cn": "defaultSequence", "zh-hk": "defaultSequence", "zh-tw": "defaultSequence" }, builderId: n2.builderIds.parts.genericCommunication, flowTypeOverrides: { digitalbot: { builderId: n2.builderIds.parts.markdownCommunication, languageSequences: { defaultSequence: { _label: "bot_slot_noInput", partContents: [{ builderPartId: r2.builderPartIds.communication.text, parameters: { templateNoOverlaySection: "noInput", templateNoOverlaySectionKey: "noInputStr1DigitalBot" } }, { builderPartId: r2.builderPartIds.communication.text, parameters: { reference: "$selectedSlotName" } }] }, localizedSequence1: { _label: "bot_slot_noInput_seq_1", partContents: [{ builderPartId: r2.builderPartIds.communication.text, parameters: { reference: "$selectedSlotName" } }, { builderPartId: r2.builderPartIds.communication.text, parameters: { templateNoOverlaySection: "noInput", templateNoOverlaySectionKey: "noInputStr1DigitalBot" } }] } } } }, languageSequences: { defaultSequence: { _label: "bot_slot_noInput", parts: [{ builderPartId: r2.builderPartIds.communication.text, parameters: { templateNoOverlaySection: "noInput", templateNoOverlaySectionKey: "noInputStr1" } }, { builderPartId: r2.builderPartIds.communication.text, parameters: { reference: "$selectedSlotName" } }] }, localizedSequence1: { _label: "bot_slot_noInput_seq_1", parts: [{ builderPartId: r2.builderPartIds.communication.text, parameters: { reference: "$selectedSlotName" } }, { builderPartId: r2.builderPartIds.communication.text, parameters: { templateNoOverlaySection: "noInput", templateNoOverlaySectionKey: "noInputStr1" } }] } } }; + t2.default = o; + }, 83697: (e2, t2, i2) => { + let n2 = null; + if (i2(6697)) n2 = i2(17186); + else { + const e3 = i2(29546); + try { + n2 = i2(78858)("./" + e3.getCurrentLanguage() + "/currency.js"); + } catch (e4) { + n2 = i2(17186); + } + } + n2.then && n2.then((t3) => { + e2.exports = t3; + }), e2.exports = n2; + }, 83726: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = i2(80295), o = i2(15116), a = n2.__importDefault(i2(3542)); + class s extends o.PagedList { + constructor(e3) { + super(e3); + } + get entities() { + return this._entities; + } + set entities(e3) { + this._entities = this.reviveArray(e3, a.default); + } + } + t2.default = s, n2.__decorate([(0, r2.enumerable)(true), n2.__metadata("design:type", Array), n2.__metadata("design:paramtypes", [Array])], s.prototype, "entities", null); + }, 83735: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importDefault(i2(23488)), o = i2(19596), a = n2.__importDefault(i2(40974)), s = n2.__importDefault(i2(66973)), l = n2.__importStar(i2(74731)), u = n2.__importDefault(i2(14166)), d = n2.__importDefault(i2(94164)), c = n2.__importDefault(i2(88417)), p = n2.__importDefault(i2(47782)), _ = n2.__importDefault(i2(74384)); + class h extends o.DataContract { + constructor(e3) { + super(e3); + } + get actions() { + return this._actions; + } + set actions(e3) { + this._actions = this.reviveMap(e3, r2.default, true); + } + get dataTypes() { + return this._dataTypes; + } + set dataTypes(e3) { + this._dataTypes = this.reviveMap(e3, a.default); + } + get dependencyTypes() { + return this._dependencyTypes; + } + set dependencyTypes(e3) { + this._dependencyTypes = this.reviveMap(e3, s.default, true); + } + get features() { + return this.featureConfigs; + } + set features(e3) { + this.featureConfigs = e3; + } + get featureConfigs() { + return this._featureConfigs; + } + set featureConfigs(e3) { + this._featureConfigs = this.reviveMap(e3, u.default, true); + } + get featureSupport() { + return this._featureSupport; + } + set featureSupport(e3) { + this._featureSupport = this.reviveItem(e3, d.default); + } + get functions() { + return this._functions; + } + set functions(e3) { + this._functions = this.reviveMap(e3, p.default, true); + } + get flowTypes() { + return this._flowTypes; + } + set flowTypes(e3) { + l.expandFlowTypeMapAsync(e3, (e4) => { + this._flowTypes = this.reviveMap(e4, c.default, true); + }); + } + get languages() { + return this._languages; + } + set languages(e3) { + this._languages = this.reviveMap(e3, _.default, true); + } + set expansions(e3) { + l.loadFlowTypeExpansions(e3.flowTypes); + } + } + t2.default = h; + }, 83737: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = i2(96618), o = n2.__importStar(i2(14187)), a = n2.__importDefault(i2(71824)); + class s extends a.default { + constructor(e3) { + super(e3); + } + get className() { + return "SurveyInviteViewModel"; + } + get builtInVariableScopes() { + return [...super.builtInVariableScopes, o.scopes.survey]; + } + get isSurveyInvite() { + return true; + } + get type() { + return r2.flowTypes.flowTypeSurveyInvite; + } + get wrappedYamlName() { + return "surveyInvite"; + } + } + t2.default = s; + }, 83747: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(16731)); + class r2 extends n2.default { + constructor(e3) { + super(e3), this._botFlowSettings = this.coreFactory.createArchWrapper(e3.botFlowSettings), e3.definition.supportsKnowledge && (this._knowledgeSettings = this.coreFactory.createArchWrapper(e3.knowledgeSettings)); + } + get displayTypeName() { + return "ArchBaseFlowBotWithKnowledge"; + } + get isArchBaseFlowBotWithKnowledge() { + return true; + } + get knowledgeSettings() { + var e3; + return !this._knowledgeSettings || (null === (e3 = this._getCoreViewModel().knowledgeSettings) || void 0 === e3 ? void 0 : e3.outOfService) ? null : this._knowledgeSettings; + } + get botFlowSettings() { + return this._botFlowSettings; + } + } + t2.default = r2; + }, 83959: (e2, t2, i2) => { + const n2 = i2(26063); + function r2() { + r2.baseConstructor.apply(this, arguments); + } + i2(22124).extend(r2, "LexV2BotList"), Object.defineProperties(r2.prototype, { entities: { enumerable: true, get: function() { + return this._entities; + }, set: function(e3) { + this._entities = this.reviveArray(e3, n2); + } } }), e2.exports = r2; + }, 84041: (e2, t2) => { + "use strict"; + var i2; + Object.defineProperty(t2, "__esModule", { value: true }), t2.NluUpdateType = void 0, (function(e3) { + e3.nluUpdated = "nluUpdated", e3.dynamicSlotTypes = "dynamicSlotTypes", e3.taskUpdate = "taskUpdate"; + })(i2 || (t2.NluUpdateType = i2 = {})); + }, 84050: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.NameIdDescriptionModel = void 0; + const n2 = i2(31635), r2 = i2(19596), o = i2(80295), a = i2(80295); + class s extends r2.DataContract { + constructor(e3) { + super(e3), (0, a.makeUnenumerable)(this, "_name"), (0, a.makeUnenumerable)(this, "_id"), (0, a.makeUnenumerable)(this, "_description"); + } + get displayName() { + return this._name; + } + set displayName(e3) { + this._name = e3; + } + get label() { + return this._name; + } + set label(e3) { + this._name = e3; + } + get name() { + return this._name; + } + set name(e3) { + this._name = e3; + } + get id() { + return this._id; + } + set id(e3) { + this._id = e3; + } + get description() { + return this._description; + } + set description(e3) { + this._description = e3; + } + } + t2.NameIdDescriptionModel = s, n2.__decorate([(0, o.enumerable)(true), n2.__metadata("design:type", String), n2.__metadata("design:paramtypes", [String])], s.prototype, "name", null), n2.__decorate([(0, o.enumerable)(true), n2.__metadata("design:type", String), n2.__metadata("design:paramtypes", [String])], s.prototype, "id", null); + }, 84111: (e2, t2, i2) => { + const n2 = i2(93476), r2 = i2(28730), o = i2(7401), { loopActionType: a } = i2(30801); + function s() { + Object.defineProperties(this, { _currentIndex: { writable: true }, _loopCount: { writable: true }, _path: { writable: true } }), s.baseConstructor.apply(this, arguments); + } + r2.extend(s, a, true), Object.defineProperties(s.prototype, { pasteReIdOrRename: { value: function(e3) { + s._super.pasteReIdOrRename.apply(this, arguments), this.currentIndex.pasteReIdOrRename(e3), this.loopCount.pasteReIdOrRename(e3), this.path.pasteReIdOrRename(e3); + } }, pasteResolveOldToNewValues: { value: function(e3) { + s._super.pasteResolveOldToNewValues.apply(this, arguments), this.currentIndex.pasteResolveOldToNewValues(e3), this.loopCount.pasteResolveOldToNewValues(e3), this.path.pasteResolveOldToNewValues(e3); + } }, currentIndex: { enumerable: true, get: function() { + return this._currentIndex; + }, set: function(e3) { + this._currentIndex = this.reviveItem(e3, o); + } }, loopCount: { enumerable: true, get: function() { + return this._loopCount; + }, set: function(e3) { + this._loopCount = this.reviveItem(e3, o); + } }, path: { enumerable: true, get: function() { + return this._path; + }, set: function(e3) { + this._path = this.reviveItem(e3, n2); + } } }), e2.exports = s; + }, 84133: (e2, t2, i2) => { + const n2 = i2(45214), r2 = i2(7401); + function o() { + Object.defineProperties(this, { _audioExpression: { writable: true } }), this.langCode = void 0, this.disabled = void 0, this.uiMetaData = void 0, o.baseConstructor.apply(this, arguments); + } + n2.extend(o, "AudioCase", true), Object.defineProperties(o.prototype, { pasteReIdOrRename: { value: function(e3) { + this.audioExpression.pasteReIdOrRename(e3); + } }, pasteResolveOldToNewValues: { value: function(e3) { + this.audioExpression.pasteResolveOldToNewValues(e3); + } }, audioExpression: { enumerable: true, get: function() { + return this._audioExpression; + }, set: function(e3) { + this._audioExpression = this.reviveItem(e3, r2); + } } }), e2.exports = o; + }, 84151: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.FindUsersByIdActionModel = void 0; + const n2 = i2(64599), r2 = i2(30801); + class o extends n2.BaseFindSystemObjectsByIdActionModel { + constructor(e3) { + super(e3), this.__type = o.__type; + } + } + t2.FindUsersByIdActionModel = o, o.__type = r2.findUsersByIdActionType, o.registerType(); + }, 84195: (e2, t2, i2) => { + const n2 = i2(28730), r2 = i2(7401), { transcriptionActionType: o } = i2(30801); + function a() { + Object.defineProperties(this, { _enableTranscription: { writable: true } }), a.baseConstructor.apply(this, arguments); + } + n2.extend(a, o, true), Object.defineProperties(a.prototype, { pasteReIdOrRename: { value: function(e3) { + a._super.pasteReIdOrRename.apply(this, arguments), this.enableTranscription.pasteReIdOrRename(e3); + } }, pasteResolveOldToNewValues: { value: function(e3) { + a._super.pasteResolveOldToNewValues.apply(this, arguments), this.enableTranscription.pasteResolveOldToNewValues(e3); + } }, enableTranscription: { enumerable: true, get: function() { + return this._enableTranscription; + }, set: function(e3) { + this._enableTranscription = this.reviveItem(e3, r2); + } } }), e2.exports = a; + }, 84250: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.groupedFlowSecureService = void 0; + const n2 = i2(31635).__importDefault(i2(92140)), r2 = i2(62613); + class o extends r2.GroupedFlowService { + constructor() { + super(); + } + get className() { + return "GroupedFlowSecureService"; + } + _getShouldRegisterObjectInGroup(e3) { + if (n2.default.isBoolean(e3.consumesSecureData)) return e3.consumesSecureData; + } + } + t2.groupedFlowSecureService = new o(); + }, 84282: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = i2(26847), o = n2.__importDefault(i2(57382)); + class a extends o.default { + constructor(e3) { + super(e3); + } + get displayTypeName() { + return "ArchBaseActionWithOutputsMatchExactMatchMultipleNotFound"; + } + get isArchBaseActionWithOutputsMatchExactMatchMultipleNotFound() { + return true; + } + get outputMatchExact() { + return this._getOutputById(r2.outputIds.matchExact, true); + } + get outputMatchMultiple() { + return this._getOutputById(r2.outputIds.matchMultiple, true); + } + get outputNotFound() { + return this._getOutputById(r2.outputIds.notFound, true); + } + } + t2.default = a; + }, 84346: (e2, t2, i2) => { + var n2 = i2(61154).random; + e2.exports = n2; + }, 84378: (e2, t2, i2) => { + "use strict"; + const n2 = i2(31635), r2 = i2(81516), o = n2.__importDefault(i2(27203)), a = i2(12179), s = n2.__importDefault(i2(97891)), l = n2.__importDefault(i2(5730)), u = i2(80428), d = i2(47957); + class c extends l.default { + constructor(e3, t3) { + super(e3.parentFlow, e3), this._loadModel(t3); + } + static get managedProperties() { + return [{ label: d.setExternalTag.externalTagSettingLabel, options: r2.ExpressionTypeStringOptions.create((e3) => e3.setAsInput().setIninTestingField("ExternalTag").setDisableSpellcheck(true).facets.setMaxLength(36)), property: "externalTag", type: u.expressionTypeNames.string }]; + } + static get branchInfo() { + return o.default.successFailure; + } + } + c.info = s.default.createActionInfo({ actionClass: c, canBeInTask: true, canBeTreeNode: false, helpTopic: a.helpTopics.actions.setExternalTag, modelClass: i2(60232), name: d.actions.setExternalTag, scriptingName: "ArchActionSetExternalTag" }), t2.A = c; + }, 84415: (e2, t2, i2) => { + "use strict"; + const n2 = i2(31635), r2 = i2(96618), o = i2(12179), a = n2.__importDefault(i2(97891)), s = i2(33381), l = n2.__importDefault(i2(9183)), u = i2(99469), d = i2(47957); + class c extends l.default { + constructor(e3, t3) { + super(e3, t3); + } + static get managedProperties() { + return [{ createDetails: s.FlowReferenceProperty.createCreateDetails({ flowType: r2.flowTypes.flowTypeVoice, supportsSpecificVersion: false }), options: u.ManagedPropertyOptions.create((e3) => e3.setUiPropertyOrder(1).setCanCreateObjectInAction(true)), property: "voiceFlow", yamlOptions: c.createYamlOptions("voiceFlow", (e3) => e3.setExportOrder(6)) }]; + } + get targetFlowType() { + return this.voiceFlow; + } + } + c.className = "CallVoiceFlowAction", c.info = a.default.createActionInfo({ actionClass: c, canBeInTask: true, helpTopic: o.helpTopics.actions.callVoiceFlow, modelClass: i2(55817), name: d.actions.callVoiceFlow, scriptingName: "ArchActionCallVoiceFlow" }), t2.A = c; + }, 84424: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.FindUserByIdActionModel = void 0; + const n2 = i2(28904), r2 = i2(30801); + class o extends n2.BaseFindSystemObjectByIdActionModel { + constructor(e3) { + super(e3), this.__type = o.__type; + } + } + t2.FindUserByIdActionModel = o, o.__type = r2.findUserByIdActionType, o.registerType(); + }, 84433: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = i2(96618), o = n2.__importDefault(i2(66700)), a = i2(94453), s = i2(31145); + class l extends s.NluFlowViewModel { + constructor(e3) { + super(e3); + } + get className() { + return "BotFlowViewModel"; + } + get stateViewModel() { + return o.default; + } + get isBotFlow() { + return true; + } + get type() { + return r2.flowTypes.flowTypeBot; + } + _createInitialActions() { + return n2.__awaiter(this, void 0, void 0, function* () { + return (0, a.addBotFlowActions)(this), this; + }); + } + get wrappedYamlName() { + return "botFlow"; + } + get statesYamlPropertyName() { + return "bots"; + } + } + t2.default = l; + }, 84464: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.actionRegistrationService = void 0; + const n2 = i2(31635), r2 = n2.__importDefault(i2(92140)), o = n2.__importStar(i2(12847)), a = i2(56673), s = i2(55909), l = i2(33951); + class u extends a.BaseRegistrationService { + constructor() { + super(); + } + get className() { + return "ActionRegistrationService"; + } + get isActionRegistrationService() { + return true; + } + registerItem(e3) { + super.registerItem(e3), l.ParameterValidator.expectObject(e3.info, () => s.ParameterInfo.createFunctionParameter(this.className, "registerItem", "itemViewModel.info")), l.ParameterValidator.expectActionType(e3.info.typeId, () => s.ParameterInfo.createFunctionParameter(this.className, "registerItem", "itemViewModel.info.typeId")); + const t3 = this._getFlowSpecificMap(e3); + let i3 = t3[e3.info.typeId]; + i3 || (i3 = t3[e3.info.typeId] = {}), i3[e3.id] = e3; + } + unregisterItem(e3) { + var t3; + super.unregisterItem(e3), l.ParameterValidator.expectObject(e3.info, () => s.ParameterInfo.createFunctionParameter(this.className, "unregisterItem", "itemViewModel.info")), l.ParameterValidator.expectActionType(e3.info.typeId, () => s.ParameterInfo.createFunctionParameter(this.className, "unregisterItem", "itemViewModel.info.typeId")); + try { + const i3 = this._getFlowSpecificMap(e3); + if (!i3) return void o.error(`${e3.id} not found to unregister - no flow bucket available for flow id '${e3.parentFlow.id}'`); + if (!(null === (t3 = null == e3 ? void 0 : e3.parentFlow) || void 0 === t3 ? void 0 : t3.loaded)) return; + const n3 = i3[e3.info.typeId]; + if (!n3) return void o.error(`${e3.id} not found to unregister - no instances of the action type '${e3.info.typeId}' registered`); + if (!n3[e3.id]) return void o.error(`${e3.id} not found to unregister - the action id '${e3.id}' is not in the action type '${e3.info.typeId}' bucket`); + delete n3[e3.id], r2.default.values(n3).length || (delete i3[e3.info.typeId], r2.default.values(i3).length || delete this._flowMap[e3.parentFlow.instanceId]); + } catch (e4) { + o.error("exception caught in ActionRegistrationService::unregisterItem"); + } + } + getActionById(e3, t3) { + const i3 = this._getFlowSpecificMap(e3); + let n3; + return Object.entries(i3).find(([e4]) => { + if (i3[e4][t3]) return n3 = i3[e4][t3], true; + }), n3; + } + getActionIdsForActionType(e3, t3) { + if (l.ParameterValidator.expectFlowViewModel(e3, () => s.ParameterInfo.createFunctionParameter(this.className, "getActionIdsForActionType", "flowViewModel")), l.ParameterValidator.expectActionType(t3, () => s.ParameterInfo.createFunctionParameter(this.className, "getActionIdsForActionType", "actionType")), !e3 || !e3.id || !t3) return []; + const i3 = this._getFlowSpecificMap(e3); + if (!i3) return []; + const n3 = i3[t3]; + return n3 ? r2.default.values(n3) : []; + } + getHasActionsOfActionType(e3, t3) { + if (l.ParameterValidator.expectFlowViewModel(e3, () => s.ParameterInfo.createFunctionParameter(this.className, "getHasActionsOfActionType", "flowViewModel")), l.ParameterValidator.expectActionType(t3, () => s.ParameterInfo.createFunctionParameter(this.className, "getHasActionsOfActionType", "actionType")), !e3 || !e3.id || !t3) return false; + const i3 = this._getFlowSpecificMap(e3); + if (!i3) return false; + const n3 = i3[t3]; + return !!n3 && !r2.default.isEmpty(n3); + } + } + t2.actionRegistrationService = new u(); + }, 84502: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(16434)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get displayTypeName() { + return "ArchBaseFlowInQueueWorkflow"; + } + get isArchBaseFlowInQueueWorkflow() { + return true; + } + setPeriodicState(e3) { + const t3 = this._infoParm("archState", "setPeriodicState"); + this._checkItem(t3, !e3 || !e3.isArchState, "you must pass in a valid ArchState instance to set it as the periodic state on a flow."), this._checkItem(t3, !e3._getCoreViewModel().isAllowedAsPeriodicState, "you cannot use the same state for both the startUpObject and the periodicState in an in-queue flow. State: " + e3.logStr), this.logNote("setting the periodic state to " + e3.logStr), this._getCoreViewModel().periodicState = e3._getCoreViewModel(); + } + get periodicState() { + const e3 = this._getCoreViewModel().periodicState; + return e3 ? this.coreFactory.createArchWrapper(e3) : null; + } + } + t2.default = r2; + }, 84556: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.getConversationSummarySettings = a, t2.getConversationSummarySetting = s; + const n2 = i2(31635), r2 = n2.__importDefault(i2(36019)), o = n2.__importStar(i2(30097)); + function a(e3) { + const t3 = r2.default.build(o.getConversationSummarySettings); + return e3 && t3.queryParams(e3.getSearchQueryParams(true)), t3.call(); + } + function s(e3) { + return r2.default.build(o.getConversationSummarySetting).templateParams({ id: e3 }).call(); + } + a.api = o.getConversationSummarySettings, s.api = o.getConversationSummarySetting; + }, 84568: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = i2(17604), o = i2(24032), a = i2(90480), s = n2.__importStar(i2(17498)), l = i2(9290), u = i2(12179), d = i2(12457), c = n2.__importDefault(i2(97891)), p = n2.__importDefault(i2(78791)), _ = n2.__importStar(i2(19859)), h = i2(47957); + class m extends p.default { + constructor(e3, t3) { + var i3; + super(e3), this.flowListManager = a.inboundFlowListManager.getBriefManagerWithFallback(), this.flowTypeResource = h.flow.types.inboundCall, t3 && this._loadModel(t3), this.topic = (0, o.getTopic)("transferToFlowAction").withContext("parentFlowId", null === (i3 = null == e3 ? void 0 : e3.topParentFlow) || void 0 === i3 ? void 0 : i3.id); + } + get className() { + return "TransferFlowActionViewModel"; + } + _getPossibleErrors() { + return l.flowTransferFailureReasons; + } + get flowId() { + return this.model.flowId; + } + get flowName() { + return this.model.flowName; + } + getDetails() { + return this.flowId ? new d.ActionDetails([h.flow.flow], [this.flowName]) : null; + } + static get managedProperties() { + return [{ property: "flowName", isJustForFlowYaml: true, yamlOptions: m.createYamlOptions("flowName", (e3) => e3.setExportOrder(20).setPropertyName("targetFlow").setWrappedValueName("name")) }]; + } + search(e3) { + super.search(e3), e3.checkText(this, this.flowName, h.flow.flow); + } + setTransferToFlowInfo(e3, t3) { + this.model.flowId = e3, e3 || this.topic.infoWithStack(null, `No flow id specified for flow transfer to ( flowId: '${e3}' )`), this.model.flowName = t3, this.updateDependencies(); + } + updateDependencies() { + super.updateDependencies(), this.flowName && this.flowId ? this.flowListManager.registerConsumer(this, this.flowName, this.flowId) : s.unRegisterConsumer(this, "flow"); + } + validate(e3) { + if (super.validate(e3), !this.flowId) return void e3.addError(this, (0, r2.sprintf)(h.expression.notSetWithContext, this.flowTypeResource)); + let t3 = this.flowListManager.getItem(this.flowId); + t3 || (t3 = this.flowListManager.getItemFromFullManager(this.flowId)), !t3 || t3.deleted ? e3.addError(this, (0, r2.sprintf)(h.expression.literalDropDownValueDoesNotExist, this.flowTypeResource, this.flowName)) : (this.flowName !== t3.displayName && this.setTransferToFlowInfo(this.flowId, t3.displayName), _.flowHasUnpublishedWarning(t3, this.parentFlow) && e3.addWarning(this, _.getUnpublishedWarning(t3, this.parentFlow))); + } + get isTransferFlowAction() { + return true; + } + } + m.info = c.default.createActionInfo({ actionClass: m, canBeInTask: true, canBeTreeNode: true, helpTopic: u.helpTopics.actions.transferFlow, modelClass: i2(54668), name: h.actions.transfers.flow, scriptingName: "ArchActionTransferToFlow" }), t2.default = m; + }, 84584: (e2, t2, i2) => { + const n2 = i2(45214), r2 = i2(29374); + function o() { + Object.defineProperties(this, { _channels: { writable: true } }), this.id = void 0, this.integrationId = void 0, this.name = void 0, this.application = void 0, this.transferNodes = void 0, this.variables = void 0, this.locales = void 0, o.baseConstructor.apply(this, arguments); + } + n2.extend(o, "NuanceMixBot"), Object.defineProperties(o.prototype, { label: { get: function() { + return this.name; + }, set: function(e3) { + this.name = e3; + } }, channels: { get: function() { + return this._channels; + }, set: function(e3) { + this._channels = this.reviveArray(e3, r2); + }, enumerable: true } }), e2.exports = o; + }, 84655: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(31824)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get displayTypeName() { + return "ArchBaseVariableSingleton"; + } + setInitialValueNotSet() { + this.logNote("setting the variable initial value to NOT_SET."), this.initialValue.setNoValue(); + } + } + t2.default = r2; + }, 84663: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.SpeechRecViewModel = void 0; + const n2 = i2(31635), r2 = n2.__importDefault(i2(92140)), o = n2.__importStar(i2(62829)), a = n2.__importStar(i2(98442)), s = i2(84464), l = i2(30801), u = i2(30801), d = i2(30801), c = i2(30801), p = i2(65888), _ = i2(17604), h = n2.__importDefault(i2(41510)), m = i2(47957); + t2.SpeechRecViewModel = class { + constructor(e3, t3, i3) { + this.parentFlow = e3, this.menuChoice = t3, this.model = i3, this._allContainers = {}, this._duplicates = [], this._initialize(); + } + addDuplicate(e3) { + const t3 = e3.toLocaleLowerCase(), i3 = r2.default.find(this._duplicates, function(e4) { + return t3 === e4.toLocaleLowerCase(); + }); + i3 || this._duplicates.push(e3); + } + _containerHasUnsupportedLangSpeechRecTerms(e3) { + return !!e3.hasTerms && !e3.isSupported; + } + _createContainer(e3) { + const t3 = a.getDisplayName(e3), i3 = a.getLanguageEntry(e3), n3 = new p.SpeechRecTermContainer(this, i3, t3); + return this._allContainers[e3.toLowerCase()] = n3, n3; + } + _initialize() { + r2.default.each(this.model, (e3, t3) => this._createContainer(t3)), this.refreshContainers(); + } + get containers() { + return this._containers; + } + findDuplicates() { + this._duplicates.length = 0, r2.default.each(this.containers, (e3) => { + r2.default.each(e3.getDuplicateTerms(), (e4) => this.addDuplicate(e4)); + }); + } + getConfiguration(e3, t3) { + if (null == t3 ? void 0 : t3.isForFlowYaml) { + if (!this.hasTermsAny) return null; + const e4 = {}; + return r2.default.each(this.model, (t4, i3) => { + t4.length && (e4[i3.toLocaleLowerCase()] = { terms: t4 }); + }), Object.keys(e4).length ? e4 : null; + } + return this.model; + } + getContainer(e3) { + return this._allContainers[e3.toLowerCase()]; + } + getSpeechRecTermsString(e3) { + let t3 = ""; + const i3 = this.getContainer(e3); + return i3 && i3.hasTerms && (t3 = i3.terms.join(h.default.itemListing.itemSeparator)), t3; + } + getUnsupportedSpeechRecLangContainers() { + return r2.default.filter(this.containers, (e3) => this._containerHasUnsupportedLangSpeechRecTerms(e3)); + } + getUnsupportedSpeechRecLangContainersStr() { + const e3 = this.getUnsupportedSpeechRecLangContainers(); + if (!e3 || 0 === e3.length) return; + const t3 = []; + let i3; + if (r2.default.each(e3, (e4) => { + t3.push((0, _.sprintf)(h.default.language.formatDisplayStringAndCode, e4.languageEntry.text, e4.languageEntry.id)); + }), 1 === t3.length) i3 = t3[0]; + else { + const e4 = t3.pop(); + i3 = t3.join(h.default.itemListing.itemSeparator).concat(m.itemListing.lastItemAndSeparator + e4); + } + return (0, _.sprintf)(m.speechRec.notSupportedLanguage, i3); + } + get hasDuplicates() { + return this._duplicates.length > 0; + } + hasTermsAny() { + return !!r2.default.find(this.containers, function(e3) { + return e3.hasTerms; + }); + } + hasTermsFull() { + return r2.default.every(this.containers, function(e3) { + return e3.hasTerms; + }); + } + get hasUnsupportedSpeechRecLangContainer() { + return !!r2.default.find(this.containers, (e3) => this._containerHasUnsupportedLangSpeechRecTerms(e3)); + } + get isSpeechRecViewModel() { + return true; + } + getGlobalSpeechSpeechRecDisabledError() { + const e3 = [d.lexActionType, c.lexV2ActionType, l.dialogflowActionType, u.dialogflowCxActionType]; + let t3; + for (let i3 = 0; i3 < e3.length; i3++) { + const n3 = e3[i3]; + if (s.actionRegistrationService.getActionIdsForActionType(this.parentFlow, n3).length > 0) { + t3 = o.getInfo(n3); + break; + } + } + return t3 ? (0, _.sprintf)(m.menuChoice.globalSpeechAndActionError, t3.name) : null; + } + get languages() { + return this.parentFlow ? this.parentFlow.languages.supportedLanguages : []; + } + refreshContainers() { + const e3 = []; + this._duplicates.length = 0, r2.default.each(this.model, (e4, t3) => delete this.model[t3]), r2.default.each(this.languages, (t3) => { + let i3 = this._allContainers[t3.toLowerCase()]; + i3 || (i3 = this._createContainer(t3), this._allContainers[t3.toLowerCase()] = i3), this.model[t3] = i3.terms, e3.push(i3); + }), this._containers = r2.default.sortBy(e3, (e4) => e4.language); + } + search(e3) { + r2.default.each(this.containers, (t3) => e3.addToQueue(t3)); + } + validate(e3) { + if (this.findDuplicates(), this._duplicates.length > 0) { + const t3 = (0, _.sprintf)(m.menuChoice.duplicateSpeechTerms, this._duplicates); + e3.addError(this.menuChoice, t3); + } + } + }; + }, 84670: (e2, t2, i2) => { + function n2() { + this.id = void 0, this.name = void 0, n2.baseConstructor.apply(this, arguments); + } + i2(45214).extend(n2, "Queue"), Object.defineProperties(n2.prototype, { displayName: { get: function() { + return this.name; + }, set: function(e3) { + this.name = e3; + } }, label: { get: function() { + return this.name; + }, set: function(e3) { + this.name = e3; + } } }), e2.exports = n2; + }, 84684: (e2, t2, i2) => { + "use strict"; + const n2 = i2(31635), r2 = n2.__importDefault(i2(942)), o = i2(21647), a = i2(80428), s = i2(27244), l = i2(12179), u = n2.__importDefault(i2(97891)), d = i2(47957); + class c extends r2.default { + constructor(e3, t3) { + super(e3.parentFlow, e3), this._loadModel(t3); + } + static get managedProperties() { + return r2.default.createManagedProperties({ searchFieldPropertyName: "findId", searchFieldOptionsCallback: (e3) => e3.facets.setLengthForUuid(), searchFieldLabel: d.findActions.getJourneySession.idLabel, searchResultLabel: d.findActions.getJourneySession.resultLabel, searchResultExpressionOptions: o.ExpressionTypeComplexOptions.create(), searchResultItemType: a.expressionTypeNames.journeySession }); + } + } + c.info = u.default.createActionInfo({ actionClass: c, canBeInTask: true, helpTopic: l.helpTopics.actions.getJourneySession, modelClass: s.GetJourneySessionActionModel, name: d.actions.getJourneySession, scriptingName: "ArchActionGetJourneySession" }), t2.A = c; + }, 84693: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = i2(96618), o = i2(79364), a = i2(17604), s = n2.__importDefault(i2(92140)), l = i2(33380), u = i2(4333), d = i2(28803), c = n2.__importDefault(i2(20030)), p = i2(73062), _ = i2(28562), h = n2.__importDefault(i2(73198)), m = (n2.__importStar(i2(63352)), i2(80428)), g = n2.__importStar(i2(24032)), f = i2(67607), T = i2(82319), y = i2(78513), S = i2(81516), A = i2(99469), N = n2.__importDefault(i2(22917)), O = n2.__importDefault(i2(2318)), I = i2(99472), v = i2(69078), C = i2(67801), b = i2(18894), E = n2.__importStar(i2(36781)), R = n2.__importStar(i2(10798)), w = n2.__importDefault(i2(77862)), D = n2.__importStar(i2(13436)), P = n2.__importStar(i2(98442)), M = n2.__importDefault(i2(4648)), F = i2(37647), L = i2(14240), x = i2(56872), k = i2(56872), V = i2(38551), U = i2(12179), B = n2.__importDefault(i2(20084)), G = i2(18685), j = i2(21733), W = i2(47957), q = "knowledgeSettings", Y = g.getTopic(q); + class H extends B.default { + get knowledgeBaseModel() { + return this.knowledgeBaseModel$.value; + } + set knowledgeBaseModel(e3) { + this.knowledgeBaseModel$.next(e3); + } + constructor(e3) { + super(e3, q, G), this.knowledgeBaseModel$ = new o.BehaviorSubject(void 0), this.labelBadge = I.aiPoweredBadgeWithNoText; + } + static get managedProperties() { + const e3 = { responsiveForm: true, hideInfoIcon: true, showInputDescription: true }; + return [{ label: W.knowledgeSettings.knowledgeAnswerContentTypeSwitcherLabel, options: S.ExpressionTypeStringOptions.create((t3) => t3.setDescriptionInfo(W.knowledgeSettings.knowledgeAnswerContentTypeSwitcherLabel, W.knowledgeSettings.knowledgeAnswerContentTypeSwitcherDescription).setIninTestingField("knowledgeVersion").setAllowModeLiteralOnly().setIsOptional(true).setFeatureConfigName(M.default.botFlowsVirtualAgentKnowledgeV3).setValueChangedCallback((e4) => e4.parent.updateKnowledgeVersionSetting()).setUiLayout(Object.assign({}, e3)).facets.setAllowableValues([V.KnowledgeVersionValues.v2, V.KnowledgeVersionValues.v3])), supportedFlowTypes: [r2.flowTypes.flowTypeDigitalBot, r2.flowTypes.flowTypeBot], property: "knowledgeVersion", type: m.expressionTypeNames.string }, { label: W.knowledgeSettings.defaultKnowledgeBase, options: A.ManagedPropertyOptions.create((t3) => t3.setIninTestingField("knowledge-selector").setFeatureConfigName(M.default.botFlowsKnowledge).setDropdownPlaceholder(W.knowledgeSettings.knowledgeBasePlaceholder).setDescriptionInfo(W.knowledgeSettings.knowledgeBase, W.knowledgeSettings.knowledgeBaseDescription).setUiLayout(Object.assign({}, e3))), property: "knowledge", createDetails: d.NetworkBasedActionProperty.createCreateDetails("knowledgeBaseId", "knowledgeBaseName", C.knowledgeBaseManager, W.knowledgeSettings.knowledgeBasePlaceholder, W.knowledgeSettings.knowledgeBaseNotFound, null, (e4) => e4.action.getAdditionalKnowledgeParams(), (e4, t3) => { + const i3 = P.getLangKnowledgeBaseLanguageTag(e4.action.parentFlow.defaultLanguageLCase); + return (O.default.currentUserCanUseContentSearchEnabledKnowledge || !t3.contentSearchEnabled) && t3.coreLanguage.toLowerCase() === i3; + }), yamlOptions: N.default.create("knowledge", (e4) => e4.setSkipProperty(true)) }, { label: W.knowledgeSettings.defaultKnowledgeBase, options: A.ManagedPropertyOptions.create((t3) => t3.setIninTestingField("knowledge-selector-v3").setFeatureConfigName(M.default.botFlowsVirtualAgentKnowledgeV3).setDropdownPlaceholder(W.knowledgeSettings.knowledgeSettingPlaceHolder).setDescriptionInfo(W.knowledgeSettings.knowledgeSetting, W.knowledgeSettings.knowledgeSettingDescription).setUiLayout(Object.assign({}, e3))), property: "knowledge_v3", createDetails: d.NetworkBasedActionProperty.createCreateDetails("knowledgeSettingId", "knowledgeSettingName", b.knowledgeSettingManager, W.knowledgeSettings.knowledgeSettingPlaceHolder, W.knowledgeSettings.knowledgeSettingNotFound, null), yamlOptions: N.default.create("knowledge_v3", (e4) => e4.setSkipProperty(true)) }, { label: W.knowledgeSettings.welcomeArticle, options: A.ManagedPropertyOptions.create((t3) => t3.setIninTestingField("knowledge-document-selector").setDropdownPlaceholder(W.knowledgeSettings.knowledgeBaseDocumentPlaceholder).setFeatureConfigName(M.default.botFlowsDxBotSupportFeature).setDescriptionInfo(W.knowledgeSettings.welcomeArticle, W.knowledgeSettings.welcomeArticleDescription).setUiLayout(Object.assign({}, e3))), property: "welcomeArticle", createDetails: d.NetworkBasedActionProperty.createCreateDetails("knowledgeBaseWelcomeDocumentId", "knowledgeBaseWelcomeDocumentName", v.knowledgeBaseDocumentManager, W.knowledgeSettings.knowledgeBaseDocumentPlaceholder, W.knowledgeSettings.knowledgeBaseDocumentNotFound, "knowledge", (e4) => e4.action.getAdditionalKnowledgeArticleParams(), (e4, t3) => e4.action.knowledgeDocumentSearchFilter(t3)), supportedFlowTypes: [r2.flowTypes.flowTypeBot], yamlOptions: N.default.create("welcomeArticle", (e4) => e4.setPropertyName("welcomeArticle")) }, { label: W.knowledgeSettings.knowledgeMaxNumAnswersReturned, options: y.ExpressionTypeIntegerOptions.create((t3) => t3.setDescriptionInfo(W.knowledgeSettings.knowledgeMaxNumAnswersReturned, W.knowledgeSettings.knowledgeMaxNumAnswersReturnedDescription).setIninTestingField("maxNumOfAnswersReturned").setIsOptional(false).setDefaultText("3").setFeatureConfigName(M.default.botFlowsKnowledge).setUiDisableOnOutOfService(true).setValueChangedCallback((e4) => e4.parent.updateSettingsDependentOnMaxNumOfAnswers()).setUiLayout(Object.assign({}, e3)).facets.setMinInt(1, true).setMaxInt(20, true)), property: "maxNumOfAnswersReturned", type: m.expressionTypeNames.integer }, { label: W.knowledgeSettings.knowledgeFollowUpStatement, options: T.ExpressionTypeCommunicationOptions.create((t3) => t3.setDescriptionInfo(W.knowledgeSettings.knowledgeFollowUpStatement, W.knowledgeSettings.knowledgeInitialResponseFollowupDescription).setIninTestingField("knowledgeInitialResponseFollowup").setIsOptional(true).setDefaultToNoValue(true).setFeatureConfigName(M.default.botFlowsKnowledge).setDefaultToBuilderId(_.builderIds.parts.markdownCommunication).setBuilderLanguagesSequenceConfig(l.botFlowKnowledgeSettingsSequences.knowledgeFollowupSequence).setUiLayout(Object.assign({}, e3))), supportedFlowTypes: [r2.flowTypes.flowTypeDigitalBot], property: "knowledgeInitialResponseFollowup", type: m.expressionTypeNames.communication, yamlOptions: N.default.create("knowledgeInitialResponseFollowup", (e4) => e4.setSerializeOutOfService(R.isFeatureAvailable(M.default.botFlowsDigitalBotFlowsKnowledgePathFeature)).setDoNotExportForFlowTypes([r2.flowTypes.flowTypeBot, r2.flowTypes.flowTypeVoice])) }, { label: W.knowledgeSettings.knowledgeFollowUpSwitcherLabel, options: S.ExpressionTypeStringOptions.create((t3) => t3.setDescriptionInfo(W.knowledgeSettings.knowledgeFollowUpSwitcherLabel, W.knowledgeSettings.knowledgeFollowUpSwitcherDescription).setIninTestingField("knowledgePathMode").setAllowModeLiteralOnly().setIsOptional(false).setDefaultText(L.KnowledgeMode.statement).setFeatureConfigName(M.default.botFlowsDigitalBotFlowsKnowledgePathFeature).setUiDisableOnOutOfService(true).setValueChangedCallback((e4) => e4.parent.updateSettingsKnowledgePaths()).setUiLayout(Object.assign({}, e3)).facets.setAllowableValues([L.KnowledgeMode.statement, L.KnowledgeMode.task])), supportedFlowTypes: [r2.flowTypes.flowTypeDigitalBot], property: "knowledgePathMode", type: m.expressionTypeNames.string }, { label: W.knowledgeSettings.knowledgeFollowUpTaskLabel, createDetails: u.ContainerActionProperty.createCreateDetails({ modelIdPropName: "knowledgeFollowupTaskId", modelNamePropName: "knowledgeFollowupTaskName", itemDoesNotExistBaseString: W.task.label, noReferenceString: W.knowledgeSettings.knowledgeFollowUpTaskErrorMessage, referencesTasks: true, isForFollowUpKnowledgeTask: true, validReferenceCallback: (e4) => e4 && !e4.isTransferable && e4.hasBranchTerminatingWithEndTask ? { error: W.task.invalidReferenceTaskTransfer } : e4 && e4.isTask && e4.isTransferable ? void 0 : { error: W.task.invalidReference } }), options: A.ManagedPropertyOptions.create((t3) => t3.setDescriptionInfo(W.knowledgeSettings.knowledgeFollowUpTaskLabel, W.knowledgeSettings.knowledgeFollowUpTaskDescription).setIninTestingField("knowledgeFollowupTask").setFeatureConfigName(M.default.botFlowsDigitalBotFlowsKnowledgePathFeature).setUiLayout(Object.assign({}, e3))), property: "knowledgeFollowupTask", supportedFlowTypes: [r2.flowTypes.flowTypeDigitalBot], yamlOptions: c.default.createYamlOptions("knowledgeFollowupTask", (e4) => e4.setSerializeOutOfService(R.isFeatureAvailable(M.default.botFlowsDigitalBotFlowsKnowledgePathFeature)).setPropertyName("targetTaskRef").setWrappedObjectName("knowledgePath")) }, { label: W.knowledgeSettings.knowledgeInitialResponseSingleLabel, options: T.ExpressionTypeCommunicationOptions.create((t3) => t3.setDescriptionInfo(W.knowledgeSettings.knowledgeInitialResponseSingleLabel, W.knowledgeSettings.knowledgeInitialResponseSingleDescription).setIninTestingField("knowledgeInitialResponseSingle").setIsOptional(true).setFeatureConfigName(M.default.botFlowsKnowledge).setDefaultToNoValue(true).setUiDisableOnOutOfService(true).setUiLayout(Object.assign({}, e3))), property: "knowledgeInitialResponseSingle", type: m.expressionTypeNames.communication }, { label: W.knowledgeSettings.knowledgeContextSearchLabel, options: f.ExpressionTypeBooleanOptions.create((t3) => t3.setDescriptionInfo(W.knowledgeSettings.knowledgeContextSearchLabel, W.knowledgeSettings.knowledgeContextSearchDescription).setIninTestingField("knowledgeContextSearch").setUseToggle(true).setDefaultText(h.default.true).setFeatureConfigName(M.default.botFlowsVirtualAgentKnowledgeV3).setAllowModeLiteralOnly().setDescriptionNote(W.knowledgeSettings.knowledgeContextSearchDescriptionNote).setBoolText(W.knowledgeSettings.knowledgeContextSearchEnabled, W.knowledgeSettings.knowledgeContextSearchDisabled).setUiLayout(Object.assign({}, e3))), supportedFlowTypes: [r2.flowTypes.flowTypeDigitalBot, r2.flowTypes.flowTypeBot], property: "knowledgeContextSearch", type: m.expressionTypeNames.boolean }, { label: W.knowledgeSettings.knowledgeAnswerContentTypeSwitcherLabel, options: S.ExpressionTypeStringOptions.create((t3) => t3.setDescriptionInfo(W.knowledgeSettings.knowledgeAnswerContentTypeSwitcherLabel, W.knowledgeSettings.knowledgeAnswerContentTypeSwitcherDescription).setIninTestingField("knowledgeAnswerContentType").setAllowModeLiteralOnly().setIsOptional(false).setDefaultText(F.KnowledgeAnswerContentType.standard).setFeatureConfigName(M.default.botFlowsAnswerGeneration).setValueChangedCallback((e4) => e4.parent.updateSettingsDependentOnAnswerContentTypeMode()).setUiLayout(Object.assign({}, e3)).facets.setAllowableValues([F.KnowledgeAnswerContentType.standard, F.KnowledgeAnswerContentType.highlight, F.KnowledgeAnswerContentType.generative])), optionsForSpecificFlowTypes: [{ flowTypes: [r2.flowTypes.flowTypeBot], options: S.ExpressionTypeStringOptions.create((t3) => t3.setDescriptionInfo(W.knowledgeSettings.knowledgeAnswerContentTypeSwitcherLabel, W.knowledgeSettings.knowledgeAnswerContentTypeSwitcherDescription).setIninTestingField("knowledgeAnswerContentType").setAllowModeLiteralOnly().setIsOptional(false).setDefaultText(F.KnowledgeAnswerContentType.standard).setFeatureConfigName(M.default.botFlowsAnswerGenerationMultipleArticles).setValueChangedCallback((e4) => e4.parent.updateSettingsDependentOnAnswerContentTypeMode()).setUiLayout(Object.assign({}, e3)).facets.setAllowableValues([F.KnowledgeAnswerContentType.standard, F.KnowledgeAnswerContentType.generative])) }], supportedFlowTypes: [r2.flowTypes.flowTypeDigitalBot, r2.flowTypes.flowTypeBot], property: "knowledgeAnswerContentType", type: m.expressionTypeNames.string }, { label: W.knowledgeSettings.knowledgeAnswerHighlightLabel, supportedFlowTypes: [r2.flowTypes.flowTypeDigitalBot], options: f.ExpressionTypeBooleanOptions.create((t3) => t3.setDescriptionInfo(W.knowledgeSettings.knowledgeAnswerHighlightLabel, W.knowledgeSettings.knowledgeAnswerHighlightDescription).setIninTestingField("knowledgeAnswerHighlight").setDefaultText(h.default.false).setVirtualAgentLabelBadge().setUseToggle(true).setIsOptional(false).setFeatureConfigName(M.default.botFlowsAnswerHighlight).setAllowModeLiteralOnly().setBoolText(W.knowledgeSettings.knowledgeAnswerHighlightEnabled, W.knowledgeSettings.knowledgeAnswerHighlightDisabled).setValueChangedCallback((e4) => e4.parent.updateSettingsDependentOnAnswerHighlight()).setUiLayout(Object.assign({}, e3))), property: "knowledgeAnswerHighlight", type: m.expressionTypeNames.boolean }, { label: W.knowledgeSettings.knowledgeMultiArticleLabel, options: f.ExpressionTypeBooleanOptions.create((t3) => t3.setDescriptionInfo(W.knowledgeSettings.knowledgeMultiArticleLabel, W.knowledgeSettings.knowledgeMultiArticleDescription).setIninTestingField("knowledgeMultiArticleSource").setUseToggle(true).setDefaultText(h.default.false).setFeatureConfigName(M.default.botFlowsAnswerGenerationMultipleArticles).setAllowModeLiteralOnly().setBoolText(W.knowledgeSettings.knowledgeMultiArticleEnabled, W.knowledgeSettings.knowledgeMultiArticleDisabled).setValueChangedCallback((e4) => e4.parent.updateSettingsDependentOnMultiArticle()).setUiLayout(Object.assign({}, e3))), supportedFlowTypes: [r2.flowTypes.flowTypeDigitalBot, r2.flowTypes.flowTypeBot], property: "knowledgeMultiArticleSource", type: m.expressionTypeNames.boolean }, { label: W.knowledgeSettings.knowledgeAnswerHighlightFullArticleLabel, supportedFlowTypes: [r2.flowTypes.flowTypeDigitalBot], options: S.ExpressionTypeStringOptions.create((t3) => t3.setDescriptionInfo(W.knowledgeSettings.knowledgeAnswerHighlightFullArticleLabel, W.knowledgeSettings.knowledgeAnswerHighlightFullArticleDescription).setIninTestingField("knowledgeAnswerHighlightFullArticle").setIsOptional(true).setAllowedBuilderCategoryIdFilter(p.builderCategoryIds.labelString).setDefaultToBuilderId(_.builderIds.parts.labelString).setFeatureConfigName(M.default.botFlowsAnswerHighlight).setUiLayout(Object.assign({}, e3))), property: "knowledgeAnswerHighlightFullArticle", type: m.expressionTypeNames.string }, { label: W.knowledgeSettings.knowledgeAnswerHighlightFlowProgressionLabel, supportedFlowTypes: [r2.flowTypes.flowTypeDigitalBot], options: S.ExpressionTypeStringOptions.create((t3) => t3.setDescriptionInfo(W.knowledgeSettings.knowledgeAnswerHighlightFlowProgressionLabel, W.knowledgeSettings.knowledgeAnswerHighlightFlowProgressionDescription).setIninTestingField("knowledgeAnswerHighlightFlowProgression").setIsOptional(true).setAllowedBuilderCategoryIdFilter(p.builderCategoryIds.labelString).setDefaultToBuilderId(_.builderIds.parts.labelString).setFeatureConfigName(M.default.botFlowsAnswerHighlight).setUiLayout(Object.assign({}, e3))), property: "knowledgeAnswerHighlightFlowProgression", type: m.expressionTypeNames.string }, { label: W.knowledgeSettings.knowledgeInitialResponseMultiLabel, options: T.ExpressionTypeCommunicationOptions.create((t3) => t3.setDescriptionInfo(W.knowledgeSettings.knowledgeInitialResponseMultiLabel, W.knowledgeSettings.knowledgeInitialResponseMultiDescription).setIninTestingField("knowledgeInitialResponseMulti").setIsOptional(false).setFeatureConfigName(M.default.botFlowsKnowledge).setDefaultToBuilderId(_.builderIds.parts.genericCommunication).setBuilderLanguagesSequenceConfig(l.botFlowKnowledgeSettingsSequences.knowledgeInitialResponseMultiSequence).setUiLayout(Object.assign({}, e3))), optionsForSpecificFlowTypes: [{ flowTypes: [r2.flowTypes.flowTypeDigitalBot], options: T.ExpressionTypeCommunicationOptions.create((t3) => t3.setDescriptionInfo(W.knowledgeSettings.knowledgeInitialResponseMultiLabel, W.knowledgeSettings.knowledgeInitialResponseMultiDescription).setIninTestingField("knowledgeInitialResponseMulti").setIsOptional(false).setFeatureConfigName(M.default.botFlowsKnowledge).setDefaultToBuilderId(_.builderIds.parts.markdownCommunication).setBuilderLanguagesSequenceConfig(l.botFlowKnowledgeSettingsSequences.knowledgeInitialResponseMultiSequence).setUiLayout(Object.assign({}, e3))) }], property: "knowledgeInitialResponseMulti", type: m.expressionTypeNames.communication }, { label: W.knowledgeSettings.knowledgeInitialResponseMultiRetryLabel, options: T.ExpressionTypeCommunicationOptions.create((t3) => t3.setDescriptionInfo(W.knowledgeSettings.knowledgeInitialResponseMultiRetryLabel, W.knowledgeSettings.knowledgeInitialResponseMultiRetryDescription).setIninTestingField("knowledgeInitialResponseMultiRetry").setIsOptional(false).setFeatureConfigName(M.default.botFlowsKnowledge).setDefaultToBuilderId(_.builderIds.parts.genericCommunication).setBuilderLanguagesSequenceConfig(l.botFlowKnowledgeSettingsSequences.knowledgeInitialResponseMultiRetrySequence).setUiLayout(Object.assign({}, e3))), optionsForSpecificFlowTypes: [{ flowTypes: [r2.flowTypes.flowTypeDigitalBot], options: T.ExpressionTypeCommunicationOptions.create((t3) => t3.setDescriptionInfo(W.knowledgeSettings.knowledgeInitialResponseMultiRetryLabel, W.knowledgeSettings.knowledgeInitialResponseMultiRetryDescription).setIninTestingField("knowledgeInitialResponseMultiRetry").setIsOptional(false).setFeatureConfigName(M.default.botFlowsKnowledge).setDefaultToBuilderId(_.builderIds.parts.markdownCommunication).setBuilderLanguagesSequenceConfig(l.botFlowKnowledgeSettingsSequences.knowledgeInitialResponseMultiRetrySequence).setUiLayout(Object.assign({}, e3))) }], property: "knowledgeInitialResponseMultiRetry", type: m.expressionTypeNames.communication }, { label: W.knowledgeSettings.knowledgeNoMatchLabel, options: T.ExpressionTypeCommunicationOptions.create((t3) => t3.setDescriptionInfo(W.knowledgeSettings.knowledgeNoMatchLabel, W.knowledgeSettings.knowledgeNoMatchDescription).setIninTestingField("knowledgeNoMatch").setIsOptional(false).setFeatureConfigName(M.default.botFlowsKnowledge).setDefaultToBuilderId(_.builderIds.parts.genericCommunication).setBuilderLanguagesSequenceConfig(l.botFlowKnowledgeSettingsSequences.knowledgeNoMatchSequence).setDoNotWantBlankRuntimeOutput(true).setAllowNotSet(false).setUiLayout(Object.assign({}, e3)).facets.setAllowNull(false)), optionsForSpecificFlowTypes: [{ flowTypes: [r2.flowTypes.flowTypeDigitalBot], options: T.ExpressionTypeCommunicationOptions.create((t3) => t3.setDescriptionInfo(W.knowledgeSettings.knowledgeNoMatchLabel, W.knowledgeSettings.knowledgeNoMatchDescription).setIninTestingField("knowledgeNoMatch").setIsOptional(false).setFeatureConfigName(M.default.botFlowsKnowledge).setDefaultToBuilderId(_.builderIds.parts.markdownCommunication).setBuilderLanguagesSequenceConfig(l.botFlowKnowledgeSettingsSequences.knowledgeNoMatchSequence).setDoNotWantBlankRuntimeOutput(true).setAllowNotSet(false).setUiLayout(Object.assign({}, e3)).facets.setAllowNull(false)) }], property: "knowledgeNoMatch", type: m.expressionTypeNames.communication }, { label: W.knowledgeSettings.knowledgeConfirmationToggleLabel, options: f.ExpressionTypeBooleanOptions.create((t3) => t3.setDescriptionInfo(W.knowledgeSettings.knowledgeConfirmationToggleLabel, (0, a.sprintf)(W.knowledgeSettings.knowledgeConfirmationToggleDescription, W.knowledgeSettings.knowledgeConfirmationLabel)).setIninTestingField("sendKnowledgeFeedback").setDefaultText(h.default.true).setIsOptional(false).setFeatureConfigName(M.default.botFlowsKnowledge).setAllowModeLiteralOnly().setUiDisableOnOutOfService(true).setBoolText(W.generic.genericOn, W.generic.genericOff).setValueChangedCallback((e4) => e4.parent.updateSettingsDependentOnKnowledgeFeedback()).setUiLayout(Object.assign({}, e3))), optionsForSpecificFlowTypes: [{ flowTypes: [r2.flowTypes.flowTypeDigitalBot], options: f.ExpressionTypeBooleanOptions.create((t3) => t3.setDescriptionInfo(W.knowledgeSettings.knowledgeConfirmationToggleLabel, (0, a.sprintf)(W.knowledgeSettings.knowledgeConfirmationToggleDescription, W.knowledgeSettings.knowledgeConfirmationLabel)).setIninTestingField("sendKnowledgeFeedback").setUseToggle(R.isFeatureAvailable(M.default.botFlowsAnswerHighlight)).setDefaultText(h.default.false).setIsOptional(false).setFeatureConfigName(M.default.botFlowsKnowledgeFeedback).setAllowModeLiteralOnly().setUiDisableOnOutOfService(true).setBoolText(R.isFeatureAvailable(M.default.botFlowsAnswerHighlight) ? W.knowledgeSettings.knowledgeSendFeedbackEnabled : W.generic.genericOn, R.isFeatureAvailable(M.default.botFlowsAnswerHighlight) ? W.knowledgeSettings.knowledgeSendFeedbackDisabled : W.generic.genericOff).setValueChangedCallback((e4) => e4.parent.updateSettingsDependentOnKnowledgeFeedback()).setUiLayout(Object.assign({}, e3))) }], supportedFlowTypes: [r2.flowTypes.flowTypeBot, r2.flowTypes.flowTypeDigitalBot], property: "sendKnowledgeFeedback", type: m.expressionTypeNames.boolean }, { label: W.knowledgeSettings.knowledgeConfirmationLabel, options: T.ExpressionTypeCommunicationOptions.create((t3) => t3.setDescriptionInfo(W.knowledgeSettings.knowledgeConfirmationLabel, W.knowledgeSettings.knowledgeConfirmationDescription).setIninTestingField("knowledgeConfirmation").setIsOptional(false).setFeatureConfigName(M.default.botFlowsKnowledge).setDefaultToBuilderId(_.builderIds.parts.genericCommunication).setBuilderLanguagesSequenceConfig(l.botFlowKnowledgeSettingsSequences.knowledgeConfirmationSequence).setUiLayout(Object.assign({}, e3))), optionsForSpecificFlowTypes: [{ flowTypes: [r2.flowTypes.flowTypeDigitalBot], options: T.ExpressionTypeCommunicationOptions.create((t3) => t3.setDescriptionInfo(W.knowledgeSettings.knowledgeConfirmationLabel, W.knowledgeSettings.knowledgeConfirmationDescription).setIninTestingField("knowledgeConfirmation").setIsOptional(false).setFeatureConfigName(M.default.botFlowsKnowledgeFeedback).setDefaultToBuilderId(_.builderIds.parts.markdownCommunication).setBuilderLanguagesSequenceConfig(l.botFlowKnowledgeSettingsSequences.knowledgeConfirmationSequence).setUiLayout(Object.assign({}, e3))) }], supportedFlowTypes: [r2.flowTypes.flowTypeBot, r2.flowTypes.flowTypeDigitalBot], property: "knowledgeConfirmation", type: m.expressionTypeNames.communication }, { label: W.knowledgeSettings.knowledgeResponseBias, options: S.ExpressionTypeStringOptions.create((t3) => t3.setDescriptionInfo(W.knowledgeSettings.knowledgeResponseBias, W.knowledgeSettings.responseBiasDescription).setIninTestingField("responseBias").setAllowModeLiteralOnly().setIsOptional(false).setDefaultText(D.neutral.id).setFeatureConfigName(M.default.botFlowsKnowledge).setUiDisableOnOutOfService(true).setUiLayout(Object.assign({}, e3)).facets.setAllowableValues(D.allModes).setPreferRadioButtonsCount(3)), property: "responseBias", type: m.expressionTypeNames.string }, { label: W.knowledgeSettings.knowledgeSettingsModeLabel, options: S.ExpressionTypeStringOptions.create((e4) => e4.setDescriptionInfo(W.knowledgeSettings.knowledgeSettingsModeLabel, W.knowledgeSettings.knowledgeSettingsModeDescription).setIninTestingField("knowledgeSettingsMode").setAllowModeLiteralOnly().setIsOptional(false).setDefaultText(x.KnowledgeSettingsModeValues.standard.id).setFeatureConfigName(M.default.botFlowsDigitalBotFlowsKnowledgeEndToEndFeature).setValueChangedCallback((e5) => e5.parent.setOutOfService(!e5.parent.knowledgeId)).facets.setAllowableValues([x.KnowledgeSettingsModeValues.standard, x.KnowledgeSettingsModeValues.custom])), optionsForSpecificFlowTypes: [{ flowTypes: [r2.flowTypes.flowTypeBot], options: S.ExpressionTypeStringOptions.create((e4) => e4.setDescriptionInfo(W.knowledgeSettings.knowledgeSettingsModeLabel, W.knowledgeSettings.knowledgeSettingsModeDescription).setIninTestingField("knowledgeSettingsMode").setAllowModeLiteralOnly().setIsOptional(false).setDefaultText(x.KnowledgeSettingsModeValues.standard.id).setFeatureConfigName(M.default.botFlowsAdvancedKnowledgeHandling).setValueChangedCallback((e5) => e5.parent.setOutOfService(!e5.parent.knowledgeId)).facets.setAllowableValues([x.KnowledgeSettingsModeValues.standard, x.KnowledgeSettingsModeValues.custom])) }], supportedFlowTypes: [r2.flowTypes.flowTypeBot, r2.flowTypes.flowTypeDigitalBot], property: "knowledgeSettingsMode", type: m.expressionTypeNames.string }, { label: W.knowledgeSettings.knowledgeCustomHandlerTaskLabel, createDetails: u.ContainerActionProperty.createCreateDetails({ modelIdPropName: "knowledgeCustomHandlerTaskId", modelNamePropName: "knowledgeCustomHandlerTaskName", itemDoesNotExistBaseString: W.task.label, noReferenceString: W.knowledgeSettings.knowledgeCustomHandlerTaskErrorMessage, referencesTasks: true, isForCustomKnowledgeHandlingTask: true, validReferenceCallback: (e4) => e4 && !e4.isTransferable && e4.hasBranchTerminatingWithEndTask ? { error: W.task.invalidReferenceTaskTransfer } : e4 && e4.isTask && e4.isTransferable ? void 0 : { error: W.task.invalidReference } }), options: A.ManagedPropertyOptions.create((t3) => t3.setDescriptionInfo(W.knowledgeSettings.knowledgeCustomHandlerTaskLabel, W.knowledgeSettings.knowledgeCustomHandlerTaskDescription).setIninTestingField("knowledgeCustomHandlerTask").setFeatureConfigName(M.default.botFlowsDigitalBotFlowsKnowledgeEndToEndFeature).setUiLayout(Object.assign({}, e3))), property: "knowledgeCustomHandlerTask", supportedFlowTypes: [r2.flowTypes.flowTypeDigitalBot], yamlOptions: c.default.createYamlOptions("knowledgeCustomHandlerTask", (e4) => e4.setPropertyName("targetTaskRef").setWrappedObjectName("knowledgeCustomTask")) }]; + } + _updateKnowledgeOutOfService() { + P.getLangSupportsKnowledgeForFlowType(this.parentFlow.defaultLanguage, this.parentFlow.type) ? (this.knowledge.outOfService = this.outOfService, this.knowledge.currentUiInfoMessage = "") : (this.knowledge.outOfService = true, this.knowledge.currentUiInfoMessage = (0, a.sprintf)(W.knowledgeSettings.knowledgeBaseNotSupportedForLanguage, P.getLanguageNameAndCodeDisplay(this.parentFlow.defaultLanguage, true))); + } + _initializeDesignTime() { + super._initializeDesignTime(), this.parentFlow.definition.supportsKnowledgeConfirmation || this.sendKnowledgeFeedback.options.setUiDisableOnOutOfService(false), this._updateKnowledgeOutOfService(), this.knowledge.isOptional = true, this.knowledge_v3.isOptional = true, this.welcomeArticle.isOptional = true, this.setOutOfService(!this.knowledgeId), this.canGenerateAnswers && this.knowledgeAnswerHighlight.isBooleanTrue && (this.knowledgeAnswerContentType.setAsLiteral(F.KnowledgeAnswerContentType.highlight), this.knowledgeAnswerHighlight.setAsLiteral(null)), this.parentFlow.isBotFlow && !this.parentFlow.definition.supportsAdvancedKnowledgeHandling && this.updateKnowledgeSettingsModeValue(k.KnowledgeSettingsMode.standard), this.virtualAgentEnabled && this.initialiseAnswerHighlightValues(), this.isKnowledgeV3AvailableInOrg && (this.knowledge.options.descriptionInfo.description = W.knowledgeSettings.knowledgeBaseV3Description, this.addAutoCleanedUpEventSinkWatch(E.valueChanged, this.knowledge_v3, () => { + this.knowledgeSettingId && this._setKnowledgeVersionWithFallback(), this.setOutOfService(!this.knowledgeSettingId), this.knowledgeBaseModel = this.knowledge_v3.getItem(); + })), this.isKnowledgeV3AvailableInFlow && (this.clearKnowledgeHeader(), this._setKnowledgeVersionWithFallback()), O.default.currentUserCanUseKnowledge && this.addAutoCleanedUpEventSinkWatch(E.valueChanged, this.knowledge, () => { + var e3; + const t3 = this.welcomeArticle.getItem(); + (!this.knowledgeBaseId || t3 && (null === (e3 = t3.knowledgeBase) || void 0 === e3 ? void 0 : e3.id) !== this.knowledgeBaseId) && this.welcomeArticle.setValue(void 0), this.setOutOfService(!this.knowledgeBaseId), this.knowledgeBaseModel = this.knowledge.getItem(); + }), this.addAutoCleanedUpEventListener(E.botFlowSettingChanged, (e3) => { + e3.setting === w.default.variable.virtualAgentEnabled && (this.setOutOfService(!this.knowledgeId), this.isKnowledgeV3AvailableInOrg && (this.clearKnowledgeHeader(), this._setKnowledgeVersionWithFallback())); + }), this.addAutoCleanedUpEventSinkWatch(E.supportedLanguagesChanged, this.parentFlow.languages, () => this._updateKnowledgeOutOfService()); + } + setOutOfService(e3) { + var t3, i3, n3, r3; + const o2 = e3 || this.outOfService; + this.welcomeArticle.outOfService = !this.parentFlow.definition.supportsKnowledgeWelcomeArticle || o2 || this.isCustomKnowledgeSettingsMode, this.sendKnowledgeFeedback.outOfService = !this.parentFlow.definition.supportsKnowledgeConfirmation || o2 || this.isCustomKnowledgeSettingsMode || this.isMultiSourceEnabled || this.isKnowledgeV3EnabledInFlow, this.knowledgeConfirmation.outOfService = (null === (t3 = this.sendKnowledgeFeedback) || void 0 === t3 ? void 0 : t3.outOfService) || (null === (i3 = this.sendKnowledgeFeedback) || void 0 === i3 ? void 0 : i3.text) === h.default.false || this.isKnowledgeV3EnabledInFlow, this.maxNumOfAnswersReturned.outOfService = o2 || this.isKnowledgeV3EnabledInFlow || this.isCustomKnowledgeSettingsMode || this.isMultiSourceEnabled, this.knowledgeInitialResponseFollowup.outOfService = this.knowledgeInitialResponseSingle.outOfService = o2 || this.isCustomKnowledgeSettingsMode, this.knowledgeAnswerHighlight.outOfService = o2 || this.isCustomKnowledgeSettingsMode || !this.virtualAgentEnabled || this.canGenerateAnswers, this.isKnowledgeV3EnabledInFlow ? this.knowledgeAnswerContentType.outOfService = o2 || this.isCustomKnowledgeSettingsMode || !this.canGenerateAnswers : this.knowledgeAnswerContentType.outOfService = o2 || this.isCustomKnowledgeSettingsMode || !this.canGenerateAnswers || this.parentFlow.isBotFlow && !(null === (r3 = null === (n3 = this.knowledge) || void 0 === n3 ? void 0 : n3.getItem()) || void 0 === r3 ? void 0 : r3.contentSearchEnabled), this.knowledgeVersion.outOfService = o2 || !this.virtualAgentEnabled, this.responseBias.outOfService = o2, this.knowledgeSettingsMode.outOfService = !this.parentFlow.supportsEndToEndKnowledgeHandling || o2, this.updateDependentSettings(); + } + updateDependentSettings() { + this.updateKnowledgeHandlingSettings(), this.updateSettingsDependentOnMaxNumOfAnswers(), this.updateSettingsDependentOnKnowledgeFeedback(), this.updateSettingsKnowledgePaths(), this.updateSettingsDependentOnAnswerHighlight(), this.updateSettingsDependentOnAnswerContentTypeMode(), this.updateKnowledgeVersionSetting(); + } + updateKnowledgeVersionSetting() { + this.isFlowCurrentKnowledgeVersionV3 && this.isKnowledgeV3AvailableInFlow ? (this.knowledge.outOfService = true, this.knowledge_v3.outOfService = false, this.knowledgeContextSearch.outOfService = false) : (this.knowledge.outOfService = false, this.knowledge_v3.outOfService = true, this.knowledgeContextSearch.outOfService = true); + } + updateSettingsKnowledgePaths() { + var e3; + this.knowledgeId ? this.parentFlow.definition.supportsKnowledgePaths && (null === (e3 = this.knowledgePathMode) || void 0 === e3 ? void 0 : e3.text) === L.KnowledgeMode.task ? this.setOutOfServiceForKnowledgeMode(L.KnowledgeMode.task) : this.setOutOfServiceForKnowledgeMode(L.KnowledgeMode.statement) : this.knowledgeFollowupTask.outOfService = this.knowledgeInitialResponseFollowup.outOfService = true; + } + updateSettingsDependentOnMaxNumOfAnswers() { + this.knowledgeNoMatch.outOfService = this.knowledgeInitialResponseMulti.outOfService = this.knowledgeInitialResponseMultiRetry.outOfService = "1" === this.maxNumOfAnswersReturned.getEmbeddableExpressionText() || this.maxNumOfAnswersReturned.outOfService; + } + updateSettingsDependentOnKnowledgeFeedback() { + var e3, t3; + this.knowledgeConfirmation.outOfService = (null === (e3 = this.sendKnowledgeFeedback) || void 0 === e3 ? void 0 : e3.outOfService) || (null === (t3 = this.sendKnowledgeFeedback) || void 0 === t3 ? void 0 : t3.text) === h.default.false; + } + updateSettingsDependentOnAnswerHighlight() { + const e3 = this.hideContentTypeFields; + this.knowledgeAnswerHighlightFlowProgression.outOfService = this.knowledgeAnswerHighlightFullArticle.outOfService = e3 || this.isFlowCurrentKnowledgeVersionV3, e3 || this.initialiseAnswerHighlightValues(); + } + updateSettingsDependentOnMultiArticle() { + const e3 = this.hideContentTypeFields; + this.knowledgeAnswerHighlightFullArticle.outOfService = this.knowledgeAnswerHighlightFlowProgression.outOfService = e3 || this.isFlowCurrentKnowledgeVersionV3, this.updateDisambiguationFeedbackSettings(), this.knowledgeAnswerContentType.text === F.KnowledgeAnswerContentType.generative && this.parentFlow.isBotFlow && !e3 && this.knowledgeMultiArticleSource.setAsLiteral(h.default.true); + } + updateSettingsDependentOnAnswerContentTypeMode() { + var e3, t3, i3, n3; + if (this.knowledgeMultiArticleSource.outOfService = !O.default.currentUserCanUseContentSearchEnabledKnowledge || !this.knowledgeBaseId || this.knowledgeAnswerContentType.text !== F.KnowledgeAnswerContentType.generative || !(null === (t3 = null === (e3 = this.knowledge) || void 0 === e3 ? void 0 : e3.getItem()) || void 0 === t3 ? void 0 : t3.contentSearchEnabled), this.updateDisambiguationFeedbackSettings(), this.isKnowledgeV3EnabledInFlow ? this.knowledgeAnswerContentType.outOfService = this.isCustomKnowledgeSettingsMode || !this.canGenerateAnswers : this.knowledgeAnswerContentType.outOfService = this.isCustomKnowledgeSettingsMode || !this.canGenerateAnswers || this.parentFlow.isBotFlow && !(null === (n3 = null === (i3 = this.knowledge) || void 0 === i3 ? void 0 : i3.getItem()) || void 0 === n3 ? void 0 : n3.contentSearchEnabled), !this.canGenerateAnswers) return; + const r3 = this.knowledgeAnswerContentType.text === F.KnowledgeAnswerContentType.standard || this.knowledgeAnswerContentType.outOfService; + this.knowledgeAnswerHighlightFlowProgression.outOfService = this.knowledgeAnswerHighlightFullArticle.outOfService = r3 || this.isKnowledgeV3EnabledInFlow, this.updateSettingsDependentOnMultiArticle(), r3 || this.initialiseAnswerHighlightValues(); + } + updateDisambiguationFeedbackSettings() { + var e3, t3; + this.sendKnowledgeFeedback.outOfService = !this.parentFlow.definition.supportsKnowledgeConfirmation || this.isCustomKnowledgeSettingsMode || this.isMultiSourceEnabled || this.isKnowledgeV3EnabledInFlow, this.knowledgeConfirmation.outOfService = (null === (e3 = this.sendKnowledgeFeedback) || void 0 === e3 ? void 0 : e3.outOfService) || (null === (t3 = this.sendKnowledgeFeedback) || void 0 === t3 ? void 0 : t3.text) === h.default.false || this.isKnowledgeV3EnabledInFlow, this.maxNumOfAnswersReturned.outOfService = this.isKnowledgeV3EnabledInFlow || this.isCustomKnowledgeSettingsMode || this.isMultiSourceEnabled, this.knowledgeInitialResponseFollowup.outOfService = this.knowledgeInitialResponseSingle.outOfService = this.isCustomKnowledgeSettingsMode, this.updateSettingsDependentOnMaxNumOfAnswers(); + } + get className() { + return "KnowledgeSettingsViewModel"; + } + get id() { + return q; + } + static get id() { + return q; + } + get useLabelBadge() { + return this.canGenerateAnswers; + } + get isMultiSourceEnabled() { + var e3, t3; + return !R.isFeatureUnavailable(M.default.botFlowsAnswerGenerationMultipleArticles) && !(null === (e3 = this.knowledgeMultiArticleSource) || void 0 === e3 ? void 0 : e3.outOfService) && (null === (t3 = this.knowledgeMultiArticleSource) || void 0 === t3 ? void 0 : t3.text) === h.default.true; + } + get isCustomKnowledgeSettingsMode() { + var e3; + return this.parentFlow.supportsEndToEndKnowledgeHandling && (null === (e3 = this.knowledgeSettingsMode) || void 0 === e3 ? void 0 : e3.text) === x.KnowledgeSettingsModeValues.custom.id; + } + get hideContentTypeFields() { + return this.isMultiSourceEnabled || "standard" === this.knowledgeAnswerContentType.text || this.knowledgeAnswerContentType.outOfService; + } + getDisplayName() { + return W.knowledgeSettings.knowledgeLabel; + } + getConfiguration(e3, t3) { + if (null == t3 ? void 0 : t3.isForFlowYaml) { + const i3 = {}; + if (!this.knowledgeBaseName && !this.knowledgeSettingName) return s.default.ensureYamlNoneTrue(i3), i3; + if (this.isKnowledgeV3EnabledInFlow) { + i3[this.knowledgeSettingName] = {}; + const n3 = i3[this.knowledgeSettingName]; + return s.default.extend(n3, super.getConfiguration(e3, t3)), i3; + } + { + i3[this.knowledgeBaseName] = {}; + const n3 = i3[this.knowledgeBaseName]; + return s.default.extend(n3, super.getConfiguration(e3, t3)), i3; + } + } + if (super.getConfiguration(e3, t3), this.knowledgeBaseId) { + const t4 = this.knowledge.configListManager.getItem(this.knowledgeBaseId); + t4 ? t4.coreLanguage ? e3.knowledgeSettings.knowledgeBaseCoreLanguage = null == t4 ? void 0 : t4.coreLanguage : Y.warning("While the knowledge base with id '{}' exists, it does not have a core language defined so nothing to save for the knowledge base core language in knowledge settings.", this.knowledgeBaseId) : Y.warning("Knowledge base not found for id '{}' so unable save the knowledge base core language value to knowledge settings. Maybe the referenced knowledge base is deleted?", this.knowledgeBaseId); + } + } + get isKnowledgeSettingsNode() { + return true; + } + get canGenerateAnswers() { + var e3; + return this.virtualAgentEnabled && (null === (e3 = this.parentFlow.definition) || void 0 === e3 ? void 0 : e3.supportsAnswerGeneration); + } + get hasKnowledgeBaseConfigured() { + return s.default.isString(this.model.knowledgeBaseId) && this.model.knowledgeBaseId.length; + } + get hasKnowledgeSettingConfigured() { + return s.default.isString(this.model.knowledgeSettingId) && this.model.knowledgeSettingId.length; + } + getAdditionalKnowledgeParams() { + return { coreLanguage: P.getLangKnowledgeBaseLanguageTag(this.parentFlow.defaultLanguageLCase), published: true }; + } + getAdditionalKnowledgeArticleParams() { + return { knowledgeId: this.knowledgeBaseId, documentId: this.knowledgeBaseWelcomeDocumentId }; + } + setOutOfServiceForKnowledgeMode(e3) { + var t3; + if (this.parentFlow.supportsEndToEndKnowledgeHandling && (null === (t3 = this.knowledgeSettingsMode) || void 0 === t3 ? void 0 : t3.text) === x.KnowledgeSettingsModeValues.custom.id) return this.knowledgePathMode.outOfService = this.knowledgeFollowupTask.outOfService = this.knowledgeInitialResponseFollowup.outOfService = true, this.knowledgeFollowupTask.metaData.yamlOptions.serializeOutOfService = false, void (this.knowledgeInitialResponseFollowup.yamlOptions.serializeOutOfService = false); + this.parentFlow.isDigitalBotFlow && this.parentFlow.definition.supportsKnowledgePaths && (e3 === L.KnowledgeMode.statement ? (this.knowledgeFollowupTask.outOfService = true, this.knowledgeInitialResponseFollowup.outOfService = false) : e3 === L.KnowledgeMode.task && (this.knowledgeFollowupTask.outOfService = false, this.knowledgeInitialResponseFollowup.outOfService = true), this.knowledgePathMode.outOfService = false, this.knowledgeFollowupTask.metaData.yamlOptions.serializeOutOfService = true, this.knowledgeInitialResponseFollowup.yamlOptions.serializeOutOfService = true); + } + resetKnowledge(e3) { + e3 === V.KnowledgeVersionValues.v3 ? this.knowledge.reset() : this.knowledge_v3.reset(), this.parent.languages.resetLanguageKnowledge(e3); + } + setKnowledgeVersion(e3) { + this.knowledgeVersion.setAsLiteral(e3), this.resetKnowledge(e3), this.updateKnowledgeVersionSetting(), e3 === V.KnowledgeVersionValues.v3 && (this.updateKnowledgeSettingsModeValue(k.KnowledgeSettingsMode.standard), this.knowledgeAnswerContentType.setAsLiteral(F.KnowledgeAnswerContentType.generative)), E.emitter.emit(E.knowledgeVersionChanged, e3); + } + clearKnowledgeHeader() { + this.knowledge.metaData.label = null, this.knowledge_v3.metaData.label = null; + } + get isConfiguredKnowledgeVersionV3() { + var e3; + return (null === (e3 = this.knowledgeVersion) || void 0 === e3 ? void 0 : e3.text) === V.KnowledgeVersionValues.v3; + } + _setKnowledgeVersionWithFallback() { + this.knowledgeVersion.outOfService = false, this.hasKnowledgeSettingConfigured ? this.knowledgeVersion.setAsLiteral(V.KnowledgeVersionValues.v3) : this.knowledgeVersion.setAsLiteral(V.KnowledgeVersionValues.v2); + } + updateKnowledgeSettingsModeValue(e3) { + this.knowledgeSettingsMode.setText(x.KnowledgeSettingsModeValues[e3].id); + } + updateKnowledgeHandlingSettings() { + var e3; + this.knowledgeCustomHandlerTask.outOfService = this.knowledgeSettingsMode.outOfService || (null === (e3 = this.knowledgeSettingsMode) || void 0 === e3 ? void 0 : e3.text) === x.KnowledgeSettingsModeValues[k.KnowledgeSettingsMode.standard].id; + } + knowledgeDocumentSearchFilter(e3) { + return e3.knowledgeBase.id === this.knowledgeBaseId; + } + get nodeGuxIcon() { + return "fa/book-regular"; + } + get helpTopic() { + return U.helpTopics.treeNodes.knowledge; + } + get outOfService() { + var e3, t3; + return !O.default.currentUserCanUseKnowledge || !P.getLangSupportsKnowledgeForFlowType(null === (e3 = this.parentFlow) || void 0 === e3 ? void 0 : e3.defaultLanguageLCase, null === (t3 = this.parentFlow) || void 0 === t3 ? void 0 : t3.type); + } + get wrappedYamlName() { + return "settingsKnowledge"; + } + get virtualAgentEnabled() { + var e3; + return null === (e3 = this.parentFlow.botFlowSettings) || void 0 === e3 ? void 0 : e3.virtualAgentEnabled; + } + get isKnowledgeV3AvailableInFlow() { + return this.isKnowledgeV3AvailableInOrg && this.virtualAgentEnabled; + } + get isKnowledgeV3EnabledInFlow() { + return this.isFlowCurrentKnowledgeVersionV3 && this.isKnowledgeV3AvailableInFlow; + } + get isKnowledgeV3AvailableInOrg() { + return R.isFeatureAvailable(M.default.botFlowsVirtualAgentKnowledgeV3); + } + get isFlowCurrentKnowledgeVersionV3() { + return this.currentKnowledgeVersion === V.KnowledgeVersionValues.v3; + } + get currentKnowledgeVersion() { + return this.isKnowledgeV3AvailableInFlow ? this.knowledgeVersion.text : V.KnowledgeVersionValues.v2; + } + get knowledgeId() { + return this.isKnowledgeV3AvailableInFlow ? this.currentKnowledgeVersion === V.KnowledgeVersionValues.v2 ? this.knowledgeBaseId : this.knowledgeSettingId : this.knowledgeBaseId; + } + get currentUiVersion() { + return 2; + } + updateConfiguration(e3, t3) { + const i3 = j(this.parentFlow.defaultLanguage); + (!e3 || e3 < 2) && (this.knowledgeInitialResponseMulti.text || this.knowledgeInitialResponseMulti.setCommunicationBuilderText(i3.knowledgeSettings.knowledgeInitialResponseMulti, true), this.knowledgeInitialResponseMultiRetry.text || this.knowledgeInitialResponseMultiRetry.setCommunicationBuilderText(i3.knowledgeSettings.knowledgeInitialResponseMultiRetry, true), this.knowledgeNoMatch.text || this.knowledgeNoMatch.setCommunicationBuilderText(i3.knowledgeSettings.knowledgeNoMatch, true), this.knowledgeConfirmation.text || this.knowledgeConfirmation.setCommunicationBuilderText(i3.knowledgeSettings.knowledgeConfirmation, true), e3 = 2); + } + getDependencyTrackingId() { + if (this.knowledgeBaseId && this.knowledgeBaseWelcomeDocumentId) return `${this.knowledgeBaseId}/${this.knowledgeBaseWelcomeDocumentId}`; + } + setNewInstanceDefaults() { + super.setNewInstanceDefaults(); + } + initialiseAnswerHighlightValues() { + const e3 = j(this.parentFlow.defaultLanguage); + this.knowledgeAnswerHighlightFlowProgression.text || this.knowledgeAnswerHighlightFlowProgression.setAsLiteral(e3.knowledgeSettings.knowledgeAnswerHighlightFlowProgressionDefault), this.knowledgeAnswerHighlightFullArticle.text || this.knowledgeAnswerHighlightFullArticle.setAsLiteral(e3.knowledgeSettings.knowledgeAnswerHighlightFullArticleDefault); + } + validate(e3) { + if (super.validate(e3), this.parentFlow.supportsMultilingualKnowledge) { + if (this.knowledgeVersion.text === V.KnowledgeVersionValues.v2) { + const t3 = this.parentFlow.languages.supportedLanguageOptions.some((e4) => { + var t4; + return null === (t4 = e4.knowledgeBase) || void 0 === t4 ? void 0 : t4.id; + }); + if (!this.knowledgeBaseId && t3) { + const t4 = W.knowledgeSettings.knowledgeBaseNoDefaultSelected; + e3.addError(this, t4), this.knowledge.currentUiErrorMessage = t4; + } + } + if (this.isFlowCurrentKnowledgeVersionV3) { + const t3 = this.parentFlow.languages.supportedLanguageOptions.some((e4) => { + var t4; + return null === (t4 = e4.knowledgeSetting) || void 0 === t4 ? void 0 : t4.id; + }); + if (!this.knowledgeSettingId && t3) { + const t4 = W.knowledgeSettings.knowledgeSettingNoDefaultSelected; + e3.addError(this, t4), this.knowledge_v3.currentUiErrorMessage = t4; + } + if (!this.isKnowledgeV3AvailableInOrg) { + const t4 = W.knowledgeSettings.knowledgeConfigurationNotEnabled; + e3.addError(this, t4); + } + } + } + } + get isKnowledgePathModeStatement() { + var e3; + return (null === (e3 = this.knowledgePathMode) || void 0 === e3 ? void 0 : e3.text) === L.KnowledgeMode.statement; + } + get isKnowledgePathModeTask() { + var e3; + return (null === (e3 = this.knowledgePathMode) || void 0 === e3 ? void 0 : e3.text) === L.KnowledgeMode.task; + } + } + t2.default = H; + }, 84783: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importStar(i2(62829)), o = n2.__importDefault(i2(8471)); + class a extends o.default { + get displayTypeName() { + return "ArchBaseFactory"; + } + get logStr() { + return this._createLogStrFromParts(["ArchBaseFactory"]); + } + get isArchBaseFactory() { + return true; + } + validateActionDefId(e3, t3) { + const i3 = this._infoParm("actionDefId", "validateActionDefId"); + this._checkItemUndefinedOrNull(i3, e3), this._checkItemUndefinedOrNull(this._infoParm("coreFlowViewModel", "validateActionDefId"), t3); + const n3 = r2.getInfo(e3); + this._checkItem(i3, !n3, "the action definition of " + e3 + " is not a valid action definition"), n3.isAvailableForFlow(t3) || this._itemIsInvalid(i3, "invalid action definition because '" + e3 + "' cannot be used in flows of type '" + t3.destinationFlowTypes.join(",") + "'"), n3.isDeprecatedForFlowType(t3.type) && this._itemIsInvalid(i3, "invalid action because '" + e3 + "' is deprecated for use in flows of type '" + t3.type + "'"); + } + } + t2.default = a; + }, 84821: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(37873)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + _getCoreViewModelTyped() { + return this._getCoreViewModel(); + } + get displayTypeName() { + return "ArchDataTypeJsonCustomProperty"; + } + get isArchDataTypeJsonCustomProperty() { + return true; + } + get maxItems() { + return this._getCoreViewModelTyped().maxItems; + } + get minItems() { + return this._getCoreViewModelTyped().minItems; + } + get minLength() { + return this._getCoreViewModelTyped().minLength; + } + get maxLength() { + return this._getCoreViewModelTyped().maxLength; + } + get isCollection() { + return this._getCoreViewModelTyped().isCollection; + } + get isRequired() { + return this._getCoreViewModelTyped().isRequired; + } + get allowableValues() { + return this._getCoreViewModelTyped().allowableValues; + } + get description() { + return this._getCoreViewModelTyped().description; + } + get name() { + return this._getCoreViewModelTyped().name; + } + get dataType() { + var e3; + if (null === (e3 = this._getCoreViewModelTyped()) || void 0 === e3 ? void 0 : e3.type) return this.coreFactory.createArchWrapper(this._getCoreViewModelTyped().type); + } + get minValueInclusive() { + return this._getCoreViewModelTyped().minValueInclusive; + } + get maxValueInclusive() { + return this._getCoreViewModelTyped().maxValueInclusive; + } + get parentFlow() { + var e3; + const t3 = null === (e3 = this._getCoreViewModelTyped()) || void 0 === e3 ? void 0 : e3.parentFlow; + if (t3) return this.coreFactory.createArchWrapper(t3); + } + get minValue() { + return this._getCoreViewModelTyped().minValue; + } + get maxValue() { + return this._getCoreViewModelTyped().maxValue; + } + get logStr() { + if (!this._getCoreViewModel()) return this.logStrTypeOnly; + const e3 = []; + return this._appendLogStrType(e3, this.displayTypeName), this._appendLogStrPart(e3, "Name", this.name, false, true), this._appendLogStrPart(e3, "Description", this.description, false, true), this.id === this._getCoreViewModelTyped().dataTypeId ? this._appendLogStrPart(e3, "Id/DataTypeId", this.id, false, true) : (this._appendLogStrPart(e3, "Id", this.id, false, true), this._appendLogStrPart(e3, "DataTypeId", this._getCoreViewModelTyped().dataTypeId, false, true)), this._appendLogStrPart(e3, "IsCollection", this.isCollection, true, true), this._appendLogStrPart(e3, "MinValue", this.minValue, true, true), this._appendLogStrPart(e3, "MinValueInclusive", this.minValueInclusive, true, true), this._appendLogStrPart(e3, "MaxValue", this.maxValue, true, true), this._appendLogStrPart(e3, "MaxValueInclusive", this.maxValueInclusive, true, true), this._appendLogStrPart(e3, "MinItems", this.minItems, true, true), this._appendLogStrPart(e3, "MaxItems", this.maxItems, true, true), this._appendLogStrPart(e3, "MinLength", this.minLength, true, true), this._appendLogStrPart(e3, "MaxLength", this.maxLength, true, true), this._createLogStrFromParts(e3); + } + } + t2.default = r2; + }, 84822: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.BaseIntegrationsActionManager = void 0; + const n2 = i2(31635), r2 = n2.__importDefault(i2(92140)), o = n2.__importDefault(i2(47532)), a = i2(81801), s = i2(40174), l = i2(79747); + class u extends o.default { + get requiredAuth() { + return a.externalAuthorizations.authStrings.integrationsActionView; + } + constructor() { + super(), this._rawServerCache = {}, this.actionPropertyForUsageSearch = "actionId", this.isDependentOnCategory = true, this.apiCallList = s.getActions, this.apiCallSingle = s.getAction, this.suppressSearch = true, this.uiMetadataSectionName = "actionServiceActions"; + } + _createItemViewModel(e3) { + return new l(e3); + } + getCategoryForAction(e3, t3) { + if (t3) { + const e4 = r2.default.findWhere(this.items, { actionId: t3 }); + if (e4) return e4.category; + } + const i3 = r2.default.findWhere(this.items, { name: e3 }); + return i3 ? i3.category : null; + } + addItem(e3, t3, i3) { + var n3, r3, o2, a2, s2, l2, u2, d, c, p, _, h; + const m = super.addItem(e3, t3); + return m ? (m.inputSchemaInError = this.schemaHasEmptyAttribute(null === (r3 = null === (n3 = m.model) || void 0 === n3 ? void 0 : n3.inputSchema) || void 0 === r3 ? void 0 : r3.properties), m.successOutputSchemaInError = this.schemaHasEmptyAttribute(null === (a2 = null === (o2 = m.model) || void 0 === o2 ? void 0 : o2.successSchema) || void 0 === a2 ? void 0 : a2.properties), m.failureOutputSchemaInError = this.schemaHasEmptyAttribute(null === (l2 = null === (s2 = m.model) || void 0 === s2 ? void 0 : s2.errorSchema) || void 0 === l2 ? void 0 : l2.properties), m.schemaInError = false, m.inputSchemaMixedTypeWarning = this.schemaHasArrayWithMixedTypes(null === (d = null === (u2 = m.model) || void 0 === u2 ? void 0 : u2.inputSchema) || void 0 === d ? void 0 : d.properties), m.successOutputSchemaMixedTypeWarning = this.schemaHasArrayWithMixedTypes(null === (p = null === (c = m.model) || void 0 === c ? void 0 : c.successSchema) || void 0 === p ? void 0 : p.properties), m.failureOutputSchemaMixedTypeWarning = this.schemaHasArrayWithMixedTypes(null === (h = null === (_ = m.model) || void 0 === _ ? void 0 : _.errorSchema) || void 0 === h ? void 0 : h.properties), (m.inputSchemaInError || m.successOutputSchemaInError || m.failureOutputSchemaInError) && (this.topic.error(`Invalid data action schema returned from Hedwig with id: '${m.id}'. The 'name' attributes in the inputs and outputs schema must not be empty.`), m.schemaInError = true), m) : m; + } + schemaHasEmptyAttribute(e3) { + return !!r2.default.find(e3, (e4) => r2.default.isEmpty(e4.name)); + } + schemaHasArrayWithMixedTypes(e3) { + var t3; + if (!e3 || r2.default.isEmpty(e3)) return false; + let i3 = false; + for (const n3 in e3) if ("array" === e3[n3].type && (null === (t3 = e3[n3].items) || void 0 === t3 ? void 0 : t3.length)) { + const t4 = e3[n3].items.filter((e4) => (null == e4 ? void 0 : e4.type) && "null" !== e4.type).map((e4) => e4.type).filter((e4, t5, i4) => i4.indexOf(e4) === t5); + if ((null == t4 ? void 0 : t4.length) > 1) { + i3 = true; + break; + } + } + return i3; + } + } + t2.BaseIntegrationsActionManager = u; + }, 84896: (e2, t2, i2) => { + "use strict"; + const n2 = i2(31635), r2 = i2(99469), o = i2(37120), a = i2(12179), s = i2(12457), l = n2.__importDefault(i2(97891)), u = i2(28803), d = n2.__importDefault(i2(33644)), c = i2(47957); + class p extends d.default { + getDetails() { + return new s.ActionDetails([c.flowOutcomes.flowOutcome, c.flowOutcomes.flowMilestone], [this.outcomeName, this.milestoneName]); + } + static get managedProperties() { + return [{ property: "milestone", label: c.flowOutcomes.flowMilestone, options: r2.ManagedPropertyOptions.create((e3) => e3.setIninTestingField("milestone-selector").setDropdownPlaceholder(c.flowOutcomes.selectFlowMilestone).setUiPropertyOrder(1)), createDetails: u.NetworkBasedActionProperty.createCreateDetails("milestoneId", "milestoneName", o.milestoneManager, c.flowOutcomes.mustSelectFlowMilestone, c.flowOutcomes.flowMilestoneNotFound, null) }]; + } + constructor(e3, t3) { + super(e3.parentFlow, e3), this._loadModel(t3); + } + } + p.info = l.default.createActionInfo({ actionClass: p, canBeInTask: true, helpTopic: a.helpTopics.actions.addFlowMilestone, modelClass: i2(1080), name: c.actions.addFlowMilestone, scriptingName: "ArchActionAddFlowMilestone" }), t2.A = p; + }, 84940: (e2, t2, i2) => { + const n2 = i2(92140); + function r2(e3) { + n2.each(e3, function(e4, t3) { + this[t3] = e4; + }.bind(this)), r2.baseConstructor.apply(this); + } + i2(45214).extend(r2, "SimpleContract"), e2.exports = r2; + }, 84986: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importDefault(i2(94225)), o = i2(77841), a = n2.__importDefault(i2(45894)); + class s extends a.default { + constructor(e3) { + super(e3, o.grammarManager); + } + get _globalTypeName() { + return "grammar"; + } + get isArchValueGrammar() { + return true; + } + get displayTypeName() { + return "ArchValueGrammar"; + } + setLiteralByGrammarIdAsync(e3, t3) { + return n2.__awaiter(this, void 0, void 0, function* () { + return this._checkItemIsValidLiteralString(this._infoParm("grammarId", "setLiteralByGrammarIdAsync"), e3), this._checkItemIsValidFunction(this._infoParm("callbackFunction", "setLiteralByGrammarIdAsync"), t3, true), this._setLiteralByIdAsync(e3).then(() => r2.default.executeCallback(this, "setLiteralByGrammarIdAsync", t3, this)); + }); + } + setLiteralByGrammarNameAsync(e3, t3) { + return n2.__awaiter(this, void 0, void 0, function* () { + return this._checkItemIsValidLiteralString(this._infoParm("grammarName", "setLiteralByGrammarNameAsync"), e3), this._checkItemIsValidFunction(this._infoParm("callbackFunction", "setLiteralByGrammarNameAsync"), t3, true), this._setLiteralByValueAsync(e3).then(() => r2.default.executeCallback(this, "setLiteralByGrammarNameAsync", t3, this)); + }); + } + } + t2.default = s; + }, 85003: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importDefault(i2(51953)), o = n2.__importDefault(i2(9436)), a = { ArchValidationIssue: r2.default, ArchValidationResults: o.default }; + t2.default = a; + }, 85020: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.channelTypesAll = t2.channelTypeChat = t2.channelTypeCall = void 0, t2.getChannelTypeForChannelId = function(e3) { + if (e3.length) return o[e3.toLowerCase()]; + }; + const n2 = i2(31635).__importDefault(i2(96629)), r2 = i2(47957), o = {}, a = (e3, t3) => o[e3] = n2.default.create(e3, t3); + t2.channelTypeCall = a("call", r2.channelTypes.call), t2.channelTypeChat = a("chat", r2.channelTypes.chat), t2.channelTypesAll = Object.values(o); + }, 85080: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(20692)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "lineItemCollection"; + } + get displayTypeName() { + return "ArchVariableLineItemCollection"; + } + get initialValue() { + return this._initialValue; + } + get isArchVariableLineItemCollection() { + return true; + } + } + t2.default = r2; + }, 85096: function(e2, t2, i2) { + !(function(e3) { + "use strict"; + var t3 = { 1: "'inci", 5: "'inci", 8: "'inci", 70: "'inci", 80: "'inci", 2: "'nci", 7: "'nci", 20: "'nci", 50: "'nci", 3: "'\xFCnc\xFC", 4: "'\xFCnc\xFC", 100: "'\xFCnc\xFC", 6: "'nc\u0131", 9: "'uncu", 10: "'uncu", 30: "'uncu", 60: "'\u0131nc\u0131", 90: "'\u0131nc\u0131" }; + e3.defineLocale("tr", { months: "Ocak_\u015Eubat_Mart_Nisan_May\u0131s_Haziran_Temmuz_A\u011Fustos_Eyl\xFCl_Ekim_Kas\u0131m_Aral\u0131k".split("_"), monthsShort: "Oca_\u015Eub_Mar_Nis_May_Haz_Tem_A\u011Fu_Eyl_Eki_Kas_Ara".split("_"), weekdays: "Pazar_Pazartesi_Sal\u0131_\xC7ar\u015Famba_Per\u015Fembe_Cuma_Cumartesi".split("_"), weekdaysShort: "Paz_Pzt_Sal_\xC7ar_Per_Cum_Cmt".split("_"), weekdaysMin: "Pz_Pt_Sa_\xC7a_Pe_Cu_Ct".split("_"), meridiem: function(e4, t4, i3) { + return e4 < 12 ? i3 ? "\xF6\xF6" : "\xD6\xD6" : i3 ? "\xF6s" : "\xD6S"; + }, meridiemParse: /öö|ÖÖ|ös|ÖS/, isPM: function(e4) { + return "\xF6s" === e4 || "\xD6S" === e4; + }, longDateFormat: { LT: "HH:mm", LTS: "HH:mm:ss", L: "DD.MM.YYYY", LL: "D MMMM YYYY", LLL: "D MMMM YYYY HH:mm", LLLL: "dddd, D MMMM YYYY HH:mm" }, calendar: { sameDay: "[bug\xFCn saat] LT", nextDay: "[yar\u0131n saat] LT", nextWeek: "[gelecek] dddd [saat] LT", lastDay: "[d\xFCn] LT", lastWeek: "[ge\xE7en] dddd [saat] LT", sameElse: "L" }, relativeTime: { future: "%s sonra", past: "%s \xF6nce", s: "birka\xE7 saniye", ss: "%d saniye", m: "bir dakika", mm: "%d dakika", h: "bir saat", hh: "%d saat", d: "bir g\xFCn", dd: "%d g\xFCn", w: "bir hafta", ww: "%d hafta", M: "bir ay", MM: "%d ay", y: "bir y\u0131l", yy: "%d y\u0131l" }, ordinal: function(e4, i3) { + switch (i3) { + case "d": + case "D": + case "Do": + case "DD": + return e4; + default: + if (0 === e4) return e4 + "'\u0131nc\u0131"; + var n2 = e4 % 10; + return e4 + (t3[n2] || t3[e4 % 100 - n2] || t3[e4 >= 100 ? 100 : null]); + } + }, week: { dow: 1, doy: 7 } }); + })(i2(95093)); + }, 85148: (e2, t2, i2) => { + const { loopTaskActionType: n2 } = i2(30801); + function r2() { + r2.baseConstructor.apply(this, arguments); + } + i2(92330).extend(r2, n2, true), e2.exports = r2; + }, 85160: (e2, t2, i2) => { + const n2 = i2(92140), r2 = i2(2210), o = i2(7401), a = i2(62229), { menuActionType: s } = i2(30801), l = i2(27359), { uuid: u } = i2(9456); + function d() { + Object.defineProperties(this, { _extensionDialingDelay: { writable: true }, _expression: { writable: true }, _menuChoiceList: { writable: true }, _promptRepeatCount: { writable: true }, _promptRepeatDelay: { writable: true }, _prompts: { writable: true }, _speechRecMinConfidence: { writable: true }, _speechRecTimeoutComplete: { writable: true }, _speechRecTimeoutIncomplete: { writable: true }, _speechRecTimeoutTotal: { writable: true }, _useExtensionDialing: { writable: true } }), this.defaultMenuChoice = void 0, d.baseConstructor.apply(this, arguments), this.id || (this.id = u()); + } + a.extend(d, s, true), Object.defineProperties(d.prototype, { pasteReIdOrRename: { value: function(e3) { + d._super.pasteReIdOrRename.apply(this, arguments), this.name = e3.pasteGetUniqueMenuName(this.name), this.extensionDialingDelay.pasteReIdOrRename(e3), n2.each(this.menuChoiceList, function(t3) { + t3.pasteReIdOrRename(e3); + }), this.promptRepeatCount.pasteReIdOrRename(e3), this.promptRepeatDelay.pasteReIdOrRename(e3), this.speechRecMinConfidence.pasteReIdOrRename(e3), this.speechRecTimeoutComplete.pasteReIdOrRename(e3), this.speechRecTimeoutIncomplete.pasteReIdOrRename(e3), this.speechRecTimeoutTotal.pasteReIdOrRename(e3), this.useExtensionDialing.pasteReIdOrRename(e3), this.prompts.pasteReIdOrRename(e3); + } }, pasteResolveOldToNewValues: { value: function(e3) { + d._super.pasteResolveOldToNewValues.apply(this, arguments), this.extensionDialingDelay.pasteResolveOldToNewValues(e3), n2.each(this.menuChoiceList, function(t3) { + t3.pasteResolveOldToNewValues(e3); + }), this.promptRepeatCount.pasteResolveOldToNewValues(e3), this.promptRepeatDelay.pasteResolveOldToNewValues(e3), this.speechRecMinConfidence.pasteResolveOldToNewValues(e3), this.speechRecTimeoutComplete.pasteResolveOldToNewValues(e3), this.speechRecTimeoutIncomplete.pasteResolveOldToNewValues(e3), this.speechRecTimeoutTotal.pasteResolveOldToNewValues(e3), this.useExtensionDialing.pasteResolveOldToNewValues(e3), this.prompts.pasteResolveOldToNewValues(e3); + } }, extensionDialingDelay: { enumerable: true, get: function() { + return this._extensionDialingDelay; + }, set: function(e3) { + this._extensionDialingDelay = this.reviveItem(e3, o); + } }, menuChoiceList: { enumerable: true, get: function() { + return this._menuChoiceList; + }, set: function(e3) { + this._menuChoiceList = this.reviveArray(e3, l); + } }, promptRepeatCount: { enumerable: true, get: function() { + return this._promptRepeatCount; + }, set: function(e3) { + this._promptRepeatCount = this.reviveItem(e3, o); + } }, promptRepeatDelay: { enumerable: true, get: function() { + return this._promptRepeatDelay; + }, set: function(e3) { + this._promptRepeatDelay = this.reviveItem(e3, o); + } }, prompts: { enumerable: true, get: function() { + return this._expression; + }, set: function(e3) { + this._expression = this.reviveItem(e3, r2); + } }, speechRecMinConfidence: { enumerable: true, get: function() { + return this._speechRecMinConfidence; + }, set: function(e3) { + this._speechRecMinConfidence = this.reviveItem(e3, o); + } }, speechRecTimeoutComplete: { enumerable: true, get: function() { + return this._speechRecTimeoutComplete; + }, set: function(e3) { + this._speechRecTimeoutComplete = this.reviveItem(e3, o); + } }, speechRecTimeoutIncomplete: { enumerable: true, get: function() { + return this._speechRecTimeoutIncomplete; + }, set: function(e3) { + this._speechRecTimeoutIncomplete = this.reviveItem(e3, o); + } }, speechRecTimeoutTotal: { enumerable: true, get: function() { + return this._speechRecTimeoutTotal; + }, set: function(e3) { + this._speechRecTimeoutTotal = this.reviveItem(e3, o); + } }, useExtensionDialing: { enumerable: true, get: function() { + return this._useExtensionDialing; + }, set: function(e3) { + this._useExtensionDialing = this.reviveItem(e3, o); + } } }), e2.exports = d; + }, 85167: (e2, t2, i2) => { + const n2 = i2(4495), r2 = i2(43278), o = i2(43278), a = i2(95803), s = i2(36179), l = i2(72698), u = i2(30218), d = i2(59426), c = i2(42091), p = i2(10236), _ = i2(46575), h = i2(56016); + i2(5532).default, e2.exports = { initialize: () => { + n2.create(), r2.create(), o.create(), a.create(), s.create(), l.create(), u.create(), d.create(), c.create(), _.create(), p.create(), h.create(); + } }; + }, 85247: (e2, t2, i2) => { + const n2 = i2(45214), r2 = i2(7401), o = i2(24710), a = i2(88654), s = i2(66848), l = i2(66445), u = i2(32798); + function d() { + Object.defineProperties(this, { _languageSkill: { writable: true }, _textToSpeech: { writable: true }, _speechToText: { writable: true }, _knowledgeBase: { writable: true }, _knowledgeSetting: { writable: true }, _conversationSummarySetting: { writable: true } }), this.language = void 0, d.baseConstructor.apply(this, arguments); + } + n2.extend(d, "LanguageOptions"), Object.defineProperties(d.prototype, { languageSkill: { enumerable: true, get: function() { + return this._languageSkill; + }, set: function(e3) { + this._languageSkill = this.reviveItem(e3, r2); + } }, textToSpeech: { enumerable: true, get: function() { + return this._textToSpeech; + }, set: function(e3) { + this._textToSpeech = this.reviveItem(e3, a); + } }, speechToText: { enumerable: true, get: function() { + return this._speechToText; + }, set: function(e3) { + this._speechToText = this.reviveItem(e3, o); + } }, knowledgeBase: { enumerable: true, get: function() { + return this._knowledgeBase; + }, set: function(e3) { + this._knowledgeBase = this.reviveItem(e3, s); + } }, knowledgeSetting: { enumerable: true, get: function() { + return this._knowledgeSetting; + }, set: function(e3) { + this._knowledgeSetting = this.reviveItem(e3, l); + } }, conversationSummarySetting: { enumerable: true, get: function() { + return this._conversationSummarySetting; + }, set: function(e3) { + this._conversationSummarySetting = this.reviveItem(e3, u); + } } }), e2.exports = d; + }, 85251: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.GetJourneySegmentActionModel = void 0; + const n2 = i2(28904), r2 = i2(30801); + class o extends n2.BaseFindSystemObjectByIdActionModel { + constructor(e3) { + super(e3), this.__type = o.__type; + } + } + t2.GetJourneySegmentActionModel = o, o.__type = r2.getJourneySegmentActionType, o.registerType(); + }, 85321: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importDefault(i2(94225)), o = n2.__importDefault(i2(40559)), a = i2(59912); + class s extends o.default { + constructor(e3) { + super(e3, a.utilizationLabelManager); + } + get _globalTypeName() { + return "utilizationLabelCollection"; + } + get displayTypeName() { + return "ArchValueUtilizationLabelCollection"; + } + get isArchValueUtilizationLabelCollection() { + return true; + } + get _searchByValueSearchProperty() { + return "name"; + } + addLiteralByUtilizationLabelIdAsync(e3, t3) { + return this._checkItemIsValidLiteralString(this._infoParm("utilizationLabelId", "addLiteralByUtilizationLabelIdAsync"), e3), this._checkItemIsValidFunction(this._infoParm("callbackFunction", "addLiteralByUtilizationLabelIdAsync"), t3, true), this._addLiteralByIdAsync(e3, "utilizationLabel").then(function() { + return r2.default.executeCallback(this, "addLiteralByUtilizationLabelIdAsync", t3, this); + }.bind(this)); + } + addLiteralByUtilizationLabelNameAsync(e3, t3) { + return this._checkItemIsValidLiteralString(this._infoParm("utilizationLabelName", "addLiteralByUtilizationLabelNameAsync"), e3), this._checkItemIsValidFunction(this._infoParm("callbackFunction", "addLiteralByUtilizationLabelNameAsync"), t3, true), this._addLiteralByValueAsync(e3, "utilizationLabel").then(function() { + return r2.default.executeCallback(this, "addLiteralByUtilizationLabelNameAsync", t3, this); + }.bind(this)); + } + } + t2.default = s; + }, 85345: (e2, t2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.isValidDate = void 0, t2.isValidDate = function(e3) { + return e3 instanceof Date && !isNaN(e3); + }; + }, 85383: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importDefault(i2(23335)), o = n2.__importDefault(i2(56549)); + class a extends r2.default { + constructor(e3, t3) { + super(e3), this._checkItemUndefinedOrNull(this._infoParmCtor("coreConfigurationListManager"), t3), this._configListManager = t3; + } + get displayTypeName() { + return "ArchBaseNetworkValue"; + } + get _searchByValueSearchProperty() { + } + get isArchBaseNetworkValue() { + return true; + } + _findItemByIdAsync(e3, t3) { + return n2.__awaiter(this, void 0, void 0, function* () { + const i3 = t3 || this._coreExpression.label; + return o.default.findItemByIdAsync(this._configListManager, e3, i3); + }); + } + _findItemByValueAsync(e3, t3, i3) { + return n2.__awaiter(this, void 0, void 0, function* () { + const n3 = t3 || this._coreExpression.label; + return o.default.findItemByValueAsync(this._configListManager, e3, n3, this._searchByValueSearchProperty, void 0, void 0, i3); + }); + } + } + t2.default = a; + }, 85386: (e2, t2, i2) => { + const n2 = i2(50778); + function r2() { + Object.defineProperties(this, { _division: { writable: true } }), r2.baseConstructor.apply(this, arguments); + } + i2(52722).extend(r2, "BaseDivisionedEntity"), Object.defineProperties(r2.prototype, { division: { enumerable: true, get: function() { + return this._division; + }, set: function(e3) { + this._division = this.reviveItem(e3, n2); + } }, isBaseDivisionedEntity: { get: function() { + return true; + } } }), e2.exports = r2; + }, 85415: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.conversationCustomAttributeSchemaManager = t2.ConversationCustomAttributeSchemaManager = void 0; + const n2 = i2(31635), r2 = n2.__importStar(i2(78280)), o = n2.__importStar(i2(1360)), a = n2.__importStar(i2(24032)), s = n2.__importDefault(i2(47532)), l = i2(82675), u = i2(86750), d = i2(30801), c = i2(81801), p = i2(30801), _ = i2(30801), h = i2(30801), m = i2(27862); + class g extends s.default { + get dependencyType() { + return m.ConversationCustomAttributeSchema; + } + get requiredAuth() { + return c.externalAuthorizations.authStrings.conversationCustomAttributesSchemaView; + } + constructor() { + super(), this.topic = a.getTopic("ConversationCustomAttributeSchemaManager"), this.apiCallList = r2.getConversationCustomAttributeSchemas, this.apiCallSingle = r2.getConversationCustomAttributeSchema, this._rawServerCache = {}, this.actionPropertyForUsageSearch = "", this.actionsForUsageSearch = [d.createConversationAttributeActionType, p.getConversationAttributeActionType, _.getConversationAttributesActionType, h.updateConversationAttributeActionType], this.className = "ConversationCustomAttributeSchemaManager", this.defaultMatchingStyle = o.startsWith, this.dependencyContext = null, this.securityError = true, this.suppressSearch = false, this.uiMetadataSectionName = "conversationCustomAttributeSchema", this.useStartsWithKeywordForExactMatch = true, this._initialize(); + } + _createItemViewModel(e3) { + return new u.ConversationCustomAttributeSchemaViewModel(e3); + } + get _networkModel() { + return l.ConversationCustomAttributeSchema; + } + get isConversationCustomAttributeSchemaManager() { + return true; + } + getOrFetchItem(e3) { + return n2.__awaiter(this, void 0, void 0, function* () { + const t3 = this.getItem(e3); + return (null == t3 ? void 0 : t3.successSchema) ? Promise.resolve(t3) : this.fetchItem(e3); + }); + } + addItemToFlowMetadata(e3, t3, i3) { + const n3 = e3.isFlowViewModel ? e3 : e3.parentFlow; + return n3.getUiMetadataInfoById(this.uiMetadataSectionName, i3) && n3.tryRemoveUiMetadataInfo(e3, this.uiMetadataSectionName, i3, this.actionsForUsageSearch, this.actionPropertyForUsageSearch, true), n3.setUiMetadataInfo(this.uiMetadataSectionName, { id: i3, name: t3 }), true; + } + } + t2.ConversationCustomAttributeSchemaManager = g, t2.conversationCustomAttributeSchemaManager = new g(); + }, 85499: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importStar(i2(12847)), o = n2.__importStar(i2(14592)), a = n2.__importStar(i2(36781)), s = n2.__importStar(i2(24032)), l = i2(79516), u = i2(85415), d = i2(66314), c = i2(79519), p = i2(79519), _ = i2(89917), h = i2(33264), m = n2.__importDefault(i2(99006)), g = i2(17604), f = n2.__importDefault(i2(65302)), T = i2(47957), y = s.getTopic("CustomJsonTypeManager"), S = i2(80428); + class A { + static getCustomJsonTypeManagerByDataTypeId(e3) { + return A.instances.get(e3); + } + static addCustomJsonTypeManager(e3) { + A.instances.set(e3.dataTypeId, e3); + } + static removeAllCustomJsonTypeManagers() { + A.instances.clear(); + } + constructor(e3) { + this._resources = { schemaNotUsable: T.customJson.schemaNotUsable, schemaChanged: T.customJson.schemaChanged, schemaChangeApplied: T.customJson.schemaChangeApplied, schemaChangeNotApplied: T.customJson.schemaChangeNotApplied, schemaChangeMoreRestrictive: T.customJson.schemaChangeMoreRestrictive, schemaGone: T.customJson.schemaGone }, this._flow = e3.flow, this._dataTypeId = e3.dataTypeId, this._parentExpressionTypeName = e3.parentExpressionTypeName, this._jsonSchemaIdBase = e3.jsonSchemaIdBase, this._jsonSchemaSource = e3.jsonSchemaSource, this._propName = e3.parentExpressionPropName, this._schemaName = e3.schemaName, this._updateCallback = e3.updateCallback, e3.resourcesOverride && (this._resources = e3.resourcesOverride), r2.info("Adding custom json type with config", e3), A.addCustomJsonTypeManager(this); + } + get noLongerHasSchema() { + return this._noLongerHasSchema; + } + get schemaChangeMoreRestrictive() { + return this._schemaChangeMoreRestrictive; + } + get schemaChangeNotUsable() { + return this._schemaChangeNotUsable; + } + get schemaNotUsable() { + return this._schemaNotUsable; + } + get updateSchemaProcessingResult() { + return this._updateSchemaProcessingResult; + } + get updateSchemaDiffResults() { + return this._updateSchemaDiffResults; + } + get _parentFlow() { + return this._flow.parentFlow; + } + get customDataType() { + return f.default.getType(this._parentFlow, this._dataTypeId); + } + get dataTypeId() { + return this._dataTypeId; + } + set dataTypeId(e3) { + this._dataTypeId = e3, A.addCustomJsonTypeManager(this), this._updateCallback && this._updateCallback(this); + } + get hasSchema() { + return !!this.customDataType; + } + _clearProcessingResults() { + this._updateSchemaDiffResults = void 0, this._updateSchemaProcessingResult = void 0, this._schemaNotUsable = void 0, this._schemaChangeNotUsable = void 0, this._schemaChangeMoreRestrictive = void 0; + } + tryUpdateParentExpressionPropTypeFromSchema(e3, t3, i3, n3, r3) { + var s2, u2, d2, c2, p2, _2, h2; + if (this._clearProcessingResults(), !this._parentFlow.info.currentUserCanEdit && !i3) return true; + const m2 = this.hasSchema; + try { + const i4 = this.createDataTypeDefsAndCheckParentExpressionTypePropCompatibility(e3, n3); + if (null == i4 ? void 0 : i4.canUse) { + if (null === (u2 = i4.schemaDiffResult) || void 0 === u2 ? void 0 : u2.isDiffResultMoreRestrictiveThan()) this._schemaChangeMoreRestrictive = true; + else if (m2 && !(null === (d2 = i4.schemaDiffResult) || void 0 === d2 ? void 0 : d2.isDiffResultLessRestrictiveThan())) return r3 && this._flow.definitions.getCustomDataTypeDefinition(this.dataTypeId).addReader(r3), false; + } else m2 ? (null === (s2 = i4.schemaDiffResult) || void 0 === s2 ? void 0 : s2.isDiffResultMoreRestrictiveThan()) ? this._schemaChangeMoreRestrictive = true : this._schemaChangeNotUsable = true : this._schemaNotUsable = true; + if (this._updateSchemaDiffResults = i4.schemaDiffResult, this._updateSchemaProcessingResult = i4.schemaProcessingResult, this._schemaNotUsable) return y.warning(`Not usable schema for flow (ID: '${null === (c2 = this._parentFlow) || void 0 === c2 ? void 0 : c2.id}')`, i4.schemaDiffResult.individualDiffs), a.emitter.emit(a.alert, { message: this.formatResources(this._resources.schemaNotUsable), type: l.AlertTypeEnum.error }), false; + if (this._schemaChangeNotUsable) return y.warning(`Not usable schema change to flow (ID: '${null === (p2 = this._parentFlow) || void 0 === p2 ? void 0 : p2.id}')`, i4.schemaDiffResult.individualDiffs), a.emitter.emit(a.alert, { message: this.formatResources(this._resources.schemaChanged, this._resources.schemaNotUsable, this._resources.schemaChangeNotApplied), type: l.AlertTypeEnum.error }), false; + if (this._schemaChangeMoreRestrictive && (y.warning(`More restrictive schema change to flow (ID: '${null === (_2 = this._parentFlow) || void 0 === _2 ? void 0 : _2.id}')`, i4.schemaDiffResult.individualDiffs), !n3)) return a.emitter.emit(a.alert, { message: this.formatResources(this._resources.schemaChanged, this._resources.schemaChangeMoreRestrictive, this._resources.schemaChangeNotApplied), type: l.AlertTypeEnum.error }), false; + this.dataTypeId = i4.schemaProcessingResult.rootDataTypeDefId; + const h3 = Object.values(i4.schemaProcessingResult.customDataTypeDefs); + o.createCustomExpressionTypesFromDataTypeDefs(this._parentFlow, h3, true), r3 && h3.forEach((e4) => { + e4.addReader(r3); + }), t3 || a.emitter.emit(a.alert, { message: this.formatResources(this._resources.schemaChanged, this._resources.schemaChangeApplied), type: l.AlertTypeEnum.info }); + } catch (e4) { + return y.exception(e4, `Exception encountered during custom type creation for flow (ID: '${null === (h2 = this._parentFlow) || void 0 === h2 ? void 0 : h2.id}').`), m2 ? this._schemaChangeNotUsable = true : this._schemaNotUsable = true, a.emitter.emit(a.alert, { message: m2 ? this.formatResources(this._resources.schemaChanged, this._resources.schemaNotUsable, this._resources.schemaChangeNotApplied) : this.formatResources(this._resources.schemaNotUsable, this._resources.schemaChangeNotApplied), type: l.AlertTypeEnum.error }), false; + } + return true; + } + createDataTypeDefsAndCheckParentExpressionTypePropCompatibility(e3, t3) { + const i3 = new m.default(this._jsonSchemaIdBase, e3, this._jsonSchemaSource, null, this._schemaName).createDataTypeDefViewModelsForJsonSchema(this._flow, true), n3 = { canUse: !i3.failure, isLessRestrictive: false, schemaProcessingResult: i3 }; + if (!n3.canUse) return n3; + const r3 = this._flow.definitions.getCustomDataTypeDefinition(i3.rootDataTypeDefId); + if (!r3) return n3; + const o2 = i3.customDataTypeDefs[i3.rootDataTypeDefId]; + return n3.schemaDiffResult = r3.compareToAndGetDiffs(o2), n3.schemaDiffResult.isDiffResultMoreRestrictiveThan() ? (n3.canUse = !!t3, n3.isLessRestrictive = false) : n3.schemaDiffResult.isDiffResultLessRestrictiveThan() && (n3.isLessRestrictive = true), n3; + } + updateExpressionTypeAndVariable() { + var e3; + const t3 = f.default.getType(this._parentFlow, this._parentExpressionTypeName); + if (!t3) return; + let i3 = this.customDataType; + i3 || (i3 = f.default.getType(this._parentFlow, S.emptyJson)), this._schemaName && (i3.schemaName = this._schemaName), this.updateJsonPropertyToJsonExpressionType(this._propName, t3, i3) && (null === (e3 = this._flow.variableGroup) || void 0 === e3 || e3.reexpandVariablesForType(t3)); + } + updateJsonPropertyToJsonExpressionType(e3, t3, i3) { + if (!e3) return r2.error("no property name passed in when attempting to update a property to a custom data type."), false; + if (!i3) return r2.error(`no custom data type passed in when attempting to update the property '${e3}' to a custom data type.`), false; + const n3 = t3.getPropertyDefinition(e3); + return n3 ? (n3.setJsonExpressionType(i3) ? r2.info(`successfully updated '${e3}' to '${i3.dataType}'`) : r2.error(`error! did not '${e3}' to '${i3.dataType}'`), n3.setJsonExpressionType(i3)) : (r2.error(`unable to find the property '${e3}' on the type '${t3.expressionType}' when attempting to set it to a custom type.`), false); + } + getErrors() { + var e3; + const t3 = []; + return this.noLongerHasSchema && t3.push(this.formatResources(this._resources.schemaGone)), (null === (e3 = this._updateSchemaProcessingResult) || void 0 === e3 ? void 0 : e3.failure) && t3.push(this._updateSchemaProcessingResult.failure.displayStr), t3; + } + getWarnings() { + var e3; + const t3 = []; + return this.schemaNotUsable && t3.push(this.formatResources(this._resources.schemaNotUsable)), this.schemaChangeMoreRestrictive ? t3.push(this.formatResources(this._resources.schemaChanged, this._resources.schemaChangeMoreRestrictive)) : this._schemaChangeNotUsable && t3.push(this.formatResources(this._resources.schemaChanged, this._resources.schemaNotUsable)), (null === (e3 = this._updateSchemaProcessingResult) || void 0 === e3 ? void 0 : e3.warning) && t3.push(this._updateSchemaProcessingResult.warning.displayStr), t3; + } + processValidationSchema(e3, t3, i3 = false) { + this._noLongerHasSchema = void 0, this._schemaChangeMoreRestrictive = void 0, this._schemaChangeNotUsable = void 0, this._schemaNotUsable = void 0, this._deferredSchemaToUpdate = void 0, e3 ? t3 ? this.tryUpdateParentExpressionPropTypeFromSchema(e3, i3) && this.updateExpressionTypeAndVariable() : this._deferredSchemaToUpdate = e3 : this.hasSchema && (this._noLongerHasSchema = true); + } + formatResources(...e3) { + const t3 = this._schemaName || this._propName, i3 = e3.map((e4) => (0, g.sprintf)(e4, t3)); + switch (i3.length) { + case 1: + return i3[0]; + case 2: + return (0, g.sprintf)(T.generic.joinTwoSentences, i3[0], i3[1]); + case 3: + return (0, g.sprintf)(T.generic.joinThreeSentences, i3[0], i3[1], i3[2]); + default: + return r2.warn(`No resources for joining ${i3.length} sentences. Just jamming them together.`), i3.join(" "); + } + } + processDeferredSchemaUpdate(e3) { + this._deferredSchemaToUpdate && this.tryUpdateParentExpressionPropTypeFromSchema(this._deferredSchemaToUpdate, e3), this.updateExpressionTypeAndVariable(); + } + static resolveTypeFromId(e3, t3) { + return n2.__awaiter(this, void 0, void 0, function* () { + var i3; + if (!(null == t3 ? void 0 : t3.length)) return; + const n3 = _.CustomJsonIdentifierInfo.create(t3); + switch (n3.namespace) { + case p.CustomJsonNamespace.conversationAttribute: { + const r3 = A.getCustomJsonTypeManagerByDataTypeId(t3); + if (null == r3 ? void 0 : r3.customDataType) return r3.customDataType; + const o2 = yield u.conversationCustomAttributeSchemaManager.getOrFetchItem(n3.conversationAttributeSchemaId), a2 = o2.id, s2 = A.getOrCreateConversationCustomAttributeSchemaCustomJsonManager(e3, o2.name, a2), l2 = null === (i3 = null == o2 ? void 0 : o2.model) || void 0 === i3 ? void 0 : i3.jsonSchema; + return s2.tryUpdateParentExpressionPropTypeFromSchema(l2, true, false, true), s2.customDataType; + } + case p.CustomJsonNamespace.decisionTable: { + const i4 = A.getCustomJsonTypeManagerByDataTypeId(t3); + if (i4 && i4.customDataType) return i4.customDataType; + const r3 = yield h.decisionTableManager.getOrFetchItem(n3.decisionTableId), o2 = r3.id, a2 = n3.isContextInput, s2 = A.getOrCreateDecisionTableCustomJsonManager(e3, r3.name, o2, a2, T.variable.input, T.variable.output), l2 = r3.model.publishedContract, u2 = a2 ? l2.executionInputSchema : l2.executionOutputSchema; + return s2.tryUpdateParentExpressionPropTypeFromSchema(u2, true, false, true), s2.customDataType; + } + } + }); + } + static getOrCreateDecisionTableCustomJsonManager(e3, t3, i3, n3, o2, a2) { + const s2 = `${t3} - ${n3 ? o2 : a2}`, l2 = `${i3}_${n3 ? A.CUSTOM_JSON_INPUT : A.CUSTOM_JSON_TABLE_OUTPUT}`, u2 = A.getCustomJsonTypeManagerByDataTypeId(l2); + return u2 ? u2._parentFlow.id === e3.id ? (r2.info(`Reusing pre-existing custom Json type manager: ${u2.dataTypeId}`), u2) : (r2.info(`Deleting manager for another flow (custom Json type manager: ${l2})`), this.instances.delete(u2._dataTypeId), r2.info(`Creating new custom Json type manager: ${l2}`), new A({ dataTypeId: l2, jsonSchemaIdBase: l2, jsonSchemaSource: p.CustomJsonNamespace.decisionTable, parentExpressionPropName: null, schemaName: s2, flow: e3 })) : (r2.info(`Creating new custom Json type manager: ${l2}`), new A({ dataTypeId: l2, jsonSchemaIdBase: l2, jsonSchemaSource: p.CustomJsonNamespace.decisionTable, parentExpressionPropName: null, schemaName: s2, flow: e3 })); + } + static getOrCreateConversationCustomAttributeSchemaCustomJsonManager(e3, t3, i3) { + const n3 = `${t3} - Schema Data`, o2 = _.CustomJsonIdentifierInfo.create((0, d.createCustomJsonExpressionDataTypeStr)(p.CustomJsonNamespace.conversationAttribute, i3, c.CustomJsonContext.schemaData)), a2 = A.getCustomJsonTypeManagerByDataTypeId(o2.expressionTypeStr); + return a2 ? a2._parentFlow.id === e3.id ? (r2.info(`Reusing pre-existing custom Json type manager: ${a2.dataTypeId}`), a2) : (r2.info(`Deleting manager for another flow (custom Json type manager: ${o2.expressionTypeStr})`), this.instances.delete(a2._dataTypeId), r2.info(`Creating new custom Json type manager: ${o2.expressionTypeStr}`), new A({ dataTypeId: o2.expressionTypeStr, jsonSchemaIdBase: o2.identifier, jsonSchemaSource: p.CustomJsonNamespace.conversationAttribute, parentExpressionPropName: null, schemaName: n3, flow: e3 })) : (r2.info(`Creating new custom Json type manager: ${o2.expressionTypeStr}`), new A({ dataTypeId: o2.expressionTypeStr, jsonSchemaIdBase: o2.identifier, jsonSchemaSource: p.CustomJsonNamespace.conversationAttribute, parentExpressionPropName: null, schemaName: n3, flow: e3 })); + } + } + A.CUSTOM_JSON_INPUT = "input", A.CUSTOM_JSON_TABLE_OUTPUT = "output", A.instances = /* @__PURE__ */ new Map(), t2.default = A; + }, 85510: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(67336)); + class r2 extends n2.default { + constructor(e3) { + super(e3), this._coreDataPair = e3; + } + get displayTypeName() { + return "ArchNamedValue"; + } + get name() { + return this._coreDataPair.name; + } + get value() { + return this.coreFactory.createArchValueFromExpression(this._coreDataPair.value); + } + get isArchNamedValue() { + return true; + } + } + t2.default = r2; + }, 85660: (e2, t2, i2) => { + "use strict"; + var n2; + Object.defineProperty(t2, "__esModule", { value: true }), t2.isPromptContainerViewModel = function(e3) { + return e3 instanceof v; + }; + const r2 = i2(31635), o = i2(79364), a = i2(79364), s = r2.__importDefault(i2(92140)), l = r2.__importStar(i2(63352)), u = i2(14394), d = r2.__importStar(i2(24032)), c = r2.__importStar(i2(36781)), p = r2.__importStar(i2(15717)), _ = i2(18638), h = r2.__importStar(i2(97920)), m = r2.__importStar(i2(77147)), g = r2.__importStar(i2(27854)), f = i2(82632), T = i2(52023), y = i2(80295), S = i2(80295), A = r2.__importDefault(i2(89034)), N = r2.__importDefault(i2(54061)), O = i2(27862), I = d.getTopic("prompt"); + class v extends A.default { + constructor(e3, t3) { + super(), this.topic = I, this._promptResources = /* @__PURE__ */ new Map(), this.promptResources$ = (0, o.from)(this._promptResources), n2.set(this, void 0), this.promptContainerSaved$ = new a.Subject(), this.isUser = !t3, this.isSystem = t3, (0, S.makeUnenumerable)(this, "isUser"), (0, S.makeUnenumerable)(this, "isSystem"), (0, S.makeUnenumerable)(this, "topic"), (0, S.makeUnenumerable)(this, "_model"), this.loadModel(e3); + } + canDelete() { + return false; + } + get canEdit() { + return this.isSystem ? _.permissionServiceHelper.canEditSystemPrompts() : _.permissionServiceHelper.canEditUserPrompts(); + } + get canView() { + return this.isSystem ? _.permissionServiceHelper.canViewSystemPrompts() : _.permissionServiceHelper.canViewUserPrompts(); + } + checkVersion(e3) { + e3.checkVersion(this.type.version); + } + get id() { + return this._model.id; + } + get isPromptContainer() { + return true; + } + get expressionName() { + return this._promptPrefix + this.displayName; + } + getResource(e3) { + return this._promptResources.get(e3.toLowerCase()); + } + getResourceOrLang(e3) { + return this.getResource(e3) || { language: e3 }; + } + get description() { + return this._model.description; + } + set description(e3) { + this._model.description = e3; + } + get displayName() { + return this._model.displayName; + } + set displayName(e3) { + this._model.displayName = e3, r2.__classPrivateFieldSet(this, n2, void 0, "f"); + } + get label() { + return this.displayName || ""; + } + get lowerDisplayName() { + return r2.__classPrivateFieldGet(this, n2, "f") || r2.__classPrivateFieldSet(this, n2, this.displayName.toLowerCase(), "f"), r2.__classPrivateFieldGet(this, n2, "f"); + } + get name() { + return this.displayName; + } + get text() { + return this.displayName; + } + get languageUsages() { + let e3 = []; + return s.default.each(this.usages, (t3) => { + t3.referenceElement.languages && (e3 = s.default.union(e3, t3.referenceElement.languages)); + }), e3; + } + clearResourceAudio(e3) { + return h.clearOrRevertAudio(this.id, e3.language, this.isSystem).then(() => { + if (!this.isSystem || e3.hasDefaultAudio) return h.getPromptResource(this.id, e3.language, this.isSystem).then((e4) => this.setPromptResource(new N.default(this, e4), e4.language.toLowerCase())).catch((t3) => I.requestError(t3, `Failed to refresh prompt resource for ${e3.language}, ${this.id}`)); + e3.textAvailable || e3.ttsAvailable ? e3.resetAudio() : this.deletePromptResourceForKey(e3.language.toLowerCase()); + }).catch((t3) => I.requestError(t3, `Failed to clear\revert prompt resource for ${e3.language}, ${this.id}`)); + } + getTtsExceedsMaxLengthError(e3) { + if (!e3 || !e3.languages || !e3.parentFlow.definition.supportsAudio) return null; + for (let t3 = 0; t3 < e3.languages.length; t3++) { + const i3 = e3.languages[t3], n3 = this.getResource(i3.idExpressionText); + if (n3 && n3.isPromptResourceViewModel && !n3.getAudioLength() && s.default.isString(n3.ttsString)) { + const t4 = i3.getStringExceedsMaxRequestLengthError(e3.parentFlow, n3.ttsString, this.name); + if (t4) return t4; + } + } + return null; + } + get allResources() { + return Array.from(this._promptResources.values()); + } + savePromptContainer(e3, t3) { + return h.updatePromptContainer(this.id, this.displayName, this.description).then(() => { + if (this.isUser && e3 && c.emitter.emit(c.promptChanged, this, e3), !t3) { + const e4 = []; + return this._promptResources.forEach((t4) => { + t4.changed && e4.push(t4.saveResource()); + }), Promise.all(e4); + } + }).then(() => { + this.promptContainerSaved$.next(); + }).catch((e4) => { + I.requestError(e4, "Failed to update the prompt container: " + this.id); + }); + } + createPromptResource(e3, t3, i3) { + const n3 = new T.PromiseDefer(); + return h.createPromptResource(this.id, e3, t3, i3, this.isSystem).then((e4) => { + const t4 = e4.language.toLowerCase(), i4 = new N.default(this, e4); + this.setPromptResource(i4, t4), n3.resolve(i4); + }, (t4) => { + I.errorPromise(t4, "Failed to create a {} prompt resource for {}:", e3, this.id), n3.reject(t4); + }), n3.promise; + } + setPromptResource(e3, t3) { + this._promptResources.set(t3.toLowerCase(), e3); + } + deletePromptResourceForKey(e3) { + this._promptResources.delete(e3); + } + deletePromptResource(e3) { + return r2.__awaiter(this, void 0, void 0, function* () { + const t3 = new T.PromiseDefer(); + return h.deletePromptResource(this.id, e3.language).then(() => { + this.deletePromptResourceForKey(e3.language.toLowerCase()); + for (let t4 = 0; t4 < this._model.resources.length; t4++) this._model.resources[t4].language === e3.language.toLowerCase() && this._model.resources.splice(t4, 1); + c.emitter.emit(c.promptResourceDeleted, this), t3.resolve(this); + }, (i3) => { + I.requestError(i3, `Failed to delete prompt resource '${e3.language}' from prompt '${this.id}'`), t3.reject(i3); + }), t3.promise; + }); + } + get type() { + return u.globalTypes.prompt; + } + get dependencyType() { + return this.isSystem ? O.SystemPrompt : O.UserPrompt; + } + get nodeGuxIcon() { + return "roster-chat"; + } + getDisplayName() { + return this.expressionName; + } + isMissingAudioOrTtsForLanguages(e3, t3, i3) { + return !!(i3 && i3.mode === l.builder && i3.options && i3.options.suppressBuilderModePromptResourceChecks) || !t3 || t3.length < 1 || m.promptHasRequiredMedia(e3, this, t3); + } + get _promptPrefix() { + return this.isSystem ? g.prefixes.system : g.prefixes.user; + } + copyModel(e3) { + this.loadModel(e3._model); + } + loadModel(e3) { + if (!e3) return; + this._model = e3, s.default.each(e3.resources, (e4) => { + if (!e4.result || "does.not.exist" !== e4.result) { + const t4 = new N.default(this, e4), i3 = this.getResource(t4.language.toLowerCase()); + !t4.language || i3 && i3 === t4 || this.setPromptResource(t4, t4.language.toLowerCase()); + } + }); + const t3 = s.default.difference(this.allResources.map((e4) => e4._model), e3._resources); + t3.length && t3.forEach((e4) => this.deletePromptResourceForKey(e4.language)); + } + toString() { + return `Prompt: id: ${this.id}`; + } + static get nameMaxLength() { + return f.promptLimits.name.maxLength; + } + getResourceForLanguageTag(e3) { + const t3 = this.allResources.find((t4) => t4.language === e3.criteria.languageTag); + switch (e3.criteria.outputMode) { + case p.outputModeText.id: + if (null == t3 ? void 0 : t3.textAvailable) return t3.text; + break; + case p.outputModeVoice.id: + if (null == t3 ? void 0 : t3.ttsAvailable) return t3.ttsString; + } + } + } + n2 = /* @__PURE__ */ new WeakMap(), t2.default = v, r2.__decorate([(0, y.enumerable)(true), r2.__metadata("design:type", String), r2.__metadata("design:paramtypes", [Object])], v.prototype, "description", null), r2.__decorate([(0, y.enumerable)(true), r2.__metadata("design:type", String), r2.__metadata("design:paramtypes", [Object])], v.prototype, "displayName", null); + }, 85697: (e2, t2, i2) => { + "use strict"; + var n2 = i2(61897), r2 = i2(84346), o = i2(61154).customRandom; + e2.exports = function(e3) { + for (var t3, i3 = 0, a = ""; !t3; ) a += o(n2.get(), 1, r2)(), t3 = e3 < Math.pow(16, i3 + 1), i3++; + return a; + }; + }, 85705: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.countryCodes = t2.dialingCodes = t2.countryMap = void 0, t2.getCountryCodeAllowableValues = function() { + return void 0 === r2 && (r2 = [], Object.entries(t2.countryMap).forEach(([e3, t3]) => { + r2.push({ id: e3, displayString: t3.name }); + })), r2; + }; + const n2 = i2(95142); + let r2; + t2.countryMap = { AF: { dialingCode: "93", name: n2.AF }, AX: { dialingCode: "358", name: n2.AX }, AL: { dialingCode: "355", name: n2.AL }, DZ: { dialingCode: "213", name: n2.DZ }, AS: { dialingCode: "1", name: n2.AS }, AD: { dialingCode: "376", name: n2.AD }, AO: { dialingCode: "244", name: n2.AO }, AI: { dialingCode: "1", name: n2.AI }, AQ: { dialingCode: "672", name: n2.AQ }, AG: { dialingCode: "1", name: n2.AG }, AR: { dialingCode: "54", name: n2.AR }, AM: { dialingCode: "374", name: n2.AM }, AW: { dialingCode: "297", name: n2.AW }, AU: { dialingCode: "61", name: n2.AU }, AT: { dialingCode: "43", name: n2.AT }, AZ: { dialingCode: "994", name: n2.AZ }, BS: { dialingCode: "1", name: n2.BS }, BH: { dialingCode: "973", name: n2.BH }, BD: { dialingCode: "880", name: n2.BD }, BB: { dialingCode: "1", name: n2.BB }, BY: { dialingCode: "375", name: n2.BY }, BE: { dialingCode: "32", name: n2.BE }, BZ: { dialingCode: "501", name: n2.BZ }, BQ: { dialingCode: "599", name: n2.BQ }, BJ: { dialingCode: "229", name: n2.BJ }, BM: { dialingCode: "1", name: n2.BM }, BT: { dialingCode: "975", name: n2.BT }, BO: { dialingCode: "591", name: n2.BO }, BA: { dialingCode: "387", name: n2.BA }, BW: { dialingCode: "267", name: n2.BW }, BR: { dialingCode: "55", name: n2.BR }, BV: { dialingCode: "47", name: n2.BV }, IO: { dialingCode: "246", name: n2.IO }, BN: { dialingCode: "673", name: n2.BN }, BG: { dialingCode: "359", name: n2.BG }, BF: { dialingCode: "226", name: n2.BF }, BI: { dialingCode: "257", name: n2.BI }, KH: { dialingCode: "855", name: n2.KH }, CM: { dialingCode: "237", name: n2.CM }, CA: { dialingCode: "1", name: n2.CA }, CV: { dialingCode: "238", name: n2.CV }, CW: { dialingCode: "599", name: n2.CW }, KY: { dialingCode: "1", name: n2.KY }, CF: { dialingCode: "236", name: n2.CF }, TD: { dialingCode: "235", name: n2.TD }, TF: { dialingCode: "262", name: n2.TF }, CL: { dialingCode: "56", name: n2.CL }, CN: { dialingCode: "86", name: n2.CN }, CX: { dialingCode: "61", name: n2.CX }, CC: { dialingCode: "61", name: n2.CC }, CO: { dialingCode: "57", name: n2.CO }, KM: { dialingCode: "269", name: n2.KM }, CG: { dialingCode: "242", name: n2.CG }, CD: { dialingCode: "243", name: n2.CD }, CK: { dialingCode: "682", name: n2.CK }, CR: { dialingCode: "506", name: n2.CR }, CI: { dialingCode: "225", name: n2.CI }, HR: { dialingCode: "385", name: n2.HR }, CU: { dialingCode: "53", name: n2.CU }, CY: { dialingCode: "357", name: n2.CY }, CZ: { dialingCode: "420", name: n2.CZ }, DK: { dialingCode: "45", name: n2.DK }, DJ: { dialingCode: "253", name: n2.DJ }, DM: { dialingCode: "1", name: n2.DM }, DO: { dialingCode: "1", name: n2.DO }, EC: { dialingCode: "593", name: n2.EC }, EG: { dialingCode: "20", name: n2.EG }, SV: { dialingCode: "503", name: n2.SV }, SX: { dialingCode: "1", name: n2.SX }, GQ: { dialingCode: "240", name: n2.GQ }, ER: { dialingCode: "291", name: n2.ER }, EE: { dialingCode: "372", name: n2.EE }, ET: { dialingCode: "251", name: n2.ET }, EH: { dialingCode: "212", name: n2.EH }, FK: { dialingCode: "500", name: n2.FK }, FO: { dialingCode: "298", name: n2.FO }, FJ: { dialingCode: "679", name: n2.FJ }, FI: { dialingCode: "358", name: n2.FI }, FR: { dialingCode: "33", name: n2.FR }, GF: { dialingCode: "594", name: n2.GF }, PF: { dialingCode: "689", name: n2.PF }, GA: { dialingCode: "241", name: n2.GA }, GM: { dialingCode: "220", name: n2.GM }, GE: { dialingCode: "995", name: n2.GE }, DE: { dialingCode: "49", name: n2.DE }, GH: { dialingCode: "233", name: n2.GH }, GI: { dialingCode: "350", name: n2.GI }, GR: { dialingCode: "30", name: n2.GR }, GL: { dialingCode: "299", name: n2.GL }, GD: { dialingCode: "1", name: n2.GD }, GP: { dialingCode: "590", name: n2.GP }, GU: { dialingCode: "1", name: n2.GU }, GT: { dialingCode: "502", name: n2.GT }, GG: { dialingCode: "44", name: n2.GG }, GN: { dialingCode: "224", name: n2.GN }, GW: { dialingCode: "245", name: n2.GW }, GY: { dialingCode: "595", name: n2.GY }, HT: { dialingCode: "509", name: n2.HT }, VA: { dialingCode: "379", name: n2.VA }, HN: { dialingCode: "504", name: n2.HN }, HK: { dialingCode: "852", name: n2.HK }, HM: { dialingCode: "672", name: n2.HM }, HU: { dialingCode: "36", name: n2.HU }, IS: { dialingCode: "354", name: n2.IS }, IN: { dialingCode: "91", name: n2.IN }, ID: { dialingCode: "62", name: n2.ID }, IR: { dialingCode: "98", name: n2.IR }, IQ: { dialingCode: "964", name: n2.IQ }, IE: { dialingCode: "353", name: n2.IE }, IM: { dialingCode: "44", name: n2.IM }, IL: { dialingCode: "972", name: n2.IL }, IT: { dialingCode: "39", name: n2.IT }, JM: { dialingCode: "1", name: n2.JM }, JP: { dialingCode: "81", name: n2.JP }, JE: { dialingCode: "44", name: n2.JE }, JO: { dialingCode: "962", name: n2.JO }, KZ: { dialingCode: "7", name: n2.KZ }, KE: { dialingCode: "254", name: n2.KE }, KI: { dialingCode: "686", name: n2.KI }, KP: { dialingCode: "850", name: n2.KP }, KR: { dialingCode: "82", name: n2.KR }, XK: { dialingCode: "383", name: n2.XK }, KW: { dialingCode: "965", name: n2.KW }, KG: { dialingCode: "996", name: n2.KG }, LA: { dialingCode: "856", name: n2.LA }, LV: { dialingCode: "371", name: n2.LV }, LB: { dialingCode: "961", name: n2.LB }, LS: { dialingCode: "266", name: n2.LS }, LR: { dialingCode: "231", name: n2.LR }, LY: { dialingCode: "218", name: n2.LY }, LI: { dialingCode: "423", name: n2.LI }, LT: { dialingCode: "370", name: n2.LT }, LU: { dialingCode: "352", name: n2.LU }, MO: { dialingCode: "853", name: n2.MO }, MK: { dialingCode: "389", name: n2.MK }, MG: { dialingCode: "261", name: n2.MG }, MW: { dialingCode: "265", name: n2.MW }, MY: { dialingCode: "60", name: n2.MY }, MV: { dialingCode: "960", name: n2.MV }, ML: { dialingCode: "223", name: n2.ML }, MT: { dialingCode: "356", name: n2.MT }, MH: { dialingCode: "692", name: n2.MH }, MQ: { dialingCode: "596", name: n2.MQ }, MR: { dialingCode: "222", name: n2.MR }, MU: { dialingCode: "230", name: n2.MU }, YT: { dialingCode: "262", name: n2.YT }, MX: { dialingCode: "52", name: n2.MX }, FM: { dialingCode: "691", name: n2.FM }, MD: { dialingCode: "373", name: n2.MD }, MC: { dialingCode: "377", name: n2.MC }, MN: { dialingCode: "976", name: n2.MN }, ME: { dialingCode: "382", name: n2.ME }, MS: { dialingCode: "1", name: n2.MS }, MA: { dialingCode: "212", name: n2.MA }, MZ: { dialingCode: "258", name: n2.MZ }, MM: { dialingCode: "95", name: n2.MM }, NA: { dialingCode: "264", name: n2.NA }, NR: { dialingCode: "674", name: n2.NR }, NP: { dialingCode: "977", name: n2.NP }, NL: { dialingCode: "31", name: n2.NL }, AN: { dialingCode: "599", name: n2.AN }, NC: { dialingCode: "687", name: n2.NC }, NZ: { dialingCode: "64", name: n2.NZ }, NI: { dialingCode: "505", name: n2.NI }, NE: { dialingCode: "227", name: n2.NE }, NG: { dialingCode: "234", name: n2.NG }, NU: { dialingCode: "683", name: n2.NU }, NF: { dialingCode: "672", name: n2.NF }, MP: { dialingCode: "1", name: n2.MP }, NO: { dialingCode: "47", name: n2.NO }, OM: { dialingCode: "968", name: n2.OM }, PK: { dialingCode: "92", name: n2.PK }, PW: { dialingCode: "680", name: n2.PW }, PS: { dialingCode: "970", name: n2.PS }, PA: { dialingCode: "507", name: n2.PA }, PG: { dialingCode: "675", name: n2.PG }, PY: { dialingCode: "595", name: n2.PY }, PE: { dialingCode: "51", name: n2.PE }, PH: { dialingCode: "63", name: n2.PH }, PN: { dialingCode: "872", name: n2.PN }, PL: { dialingCode: "48", name: n2.PL }, PT: { dialingCode: "351", name: n2.PT }, PR: { dialingCode: "1", name: n2.PR }, QA: { dialingCode: "974", name: n2.QA }, RO: { dialingCode: "40", name: n2.RO }, RU: { dialingCode: "7", name: n2.RU }, RW: { dialingCode: "250", name: n2.RW }, RE: { dialingCode: "262", name: n2.RE }, BL: { dialingCode: "590", name: n2.BL }, SH: { dialingCode: "290", name: n2.SH }, KN: { dialingCode: "1", name: n2.KN }, LC: { dialingCode: "1", name: n2.LC }, MF: { dialingCode: "590", name: n2.MF }, PM: { dialingCode: "508", name: n2.PM }, VC: { dialingCode: "1", name: n2.VC }, WS: { dialingCode: "685", name: n2.WS }, SM: { dialingCode: "378", name: n2.SM }, ST: { dialingCode: "239", name: n2.ST }, SA: { dialingCode: "966", name: n2.SA }, SN: { dialingCode: "221", name: n2.SN }, RS: { dialingCode: "381", name: n2.RS }, SC: { dialingCode: "248", name: n2.SC }, SL: { dialingCode: "232", name: n2.SL }, SG: { dialingCode: "65", name: n2.SG }, SK: { dialingCode: "421", name: n2.SK }, SI: { dialingCode: "386", name: n2.SI }, SB: { dialingCode: "677", name: n2.SB }, SO: { dialingCode: "252", name: n2.SO }, ZA: { dialingCode: "27", name: n2.ZA }, GS: { dialingCode: "500", name: n2.GS }, ES: { dialingCode: "34", name: n2.ES }, LK: { dialingCode: "94", name: n2.LK }, SD: { dialingCode: "249", name: n2.SD }, SR: { dialingCode: "597", name: n2.SR }, SS: { dialingCode: "211", name: n2.SS }, SJ: { dialingCode: "47", name: n2.SJ }, SZ: { dialingCode: "268", name: n2.SZ }, SE: { dialingCode: "46", name: n2.SE }, CH: { dialingCode: "41", name: n2.CH }, SY: { dialingCode: "963", name: n2.SY }, TW: { dialingCode: "886", name: n2.TW }, TJ: { dialingCode: "992", name: n2.TJ }, TZ: { dialingCode: "255", name: n2.TZ }, TH: { dialingCode: "66", name: n2.TH }, TL: { dialingCode: "670", name: n2.TL }, TG: { dialingCode: "228", name: n2.TG }, TK: { dialingCode: "690", name: n2.TK }, TO: { dialingCode: "676", name: n2.TO }, TT: { dialingCode: "1", name: n2.TT }, TN: { dialingCode: "216", name: n2.TN }, TR: { dialingCode: "90", name: n2.TR }, TM: { dialingCode: "993", name: n2.TM }, TC: { dialingCode: "1", name: n2.TC }, TV: { dialingCode: "688", name: n2.TV }, UG: { dialingCode: "256", name: n2.UG }, UM: { dialingCode: "1", name: n2.UM }, UA: { dialingCode: "380", name: n2.UA }, AE: { dialingCode: "971", name: n2.AE }, GB: { dialingCode: "44", name: n2.GB }, US: { dialingCode: "1", name: n2.US }, UY: { dialingCode: "598", name: n2.UY }, UZ: { dialingCode: "998", name: n2.UZ }, VU: { dialingCode: "678", name: n2.VU }, VE: { dialingCode: "58", name: n2.VE }, VN: { dialingCode: "84", name: n2.VN }, VG: { dialingCode: "1", name: n2.VG }, VI: { dialingCode: "1", name: n2.VI }, WF: { dialingCode: "681", name: n2.WF }, YE: { dialingCode: "967", name: n2.YE }, ZM: { dialingCode: "260", name: n2.ZM }, ZW: { dialingCode: "263", name: n2.ZW } }, t2.dialingCodes = {}, Object.values(t2.countryMap).forEach((e3) => { + t2.dialingCodes[e3.dialingCode] = e3.dialingCode; + }), t2.countryCodes = {}, Object.keys(t2.countryMap).forEach((e3) => { + t2.countryCodes[e3] = e3; + }); + }, 85714: (e2, t2, i2) => { + "use strict"; + const n2 = i2(31635), r2 = i2(12179), o = n2.__importDefault(i2(97891)), a = n2.__importDefault(i2(5478)), s = i2(20815), l = i2(45077), u = n2.__importDefault(i2(27203)), d = i2(81516), c = i2(21305), p = i2(80428), _ = i2(82632), h = i2(47957); + class m extends a.default { + constructor(e3, t3) { + super(e3.parentFlow, e3), this._loadModel(t3); + } + static get branchInfo() { + return u.default.validInvalidFailure; + } + static get managedProperties() { + return [{ label: h.skillExpressionFilters.skillExpressionFiltersLabel, property: "skillExpressionFilters", options: d.ExpressionTypeStringOptions.create((e3) => e3.setAsInput().setIsOptional(false).setIsCollection(true).setIninTestingField("skillExpressionFilters").setDescriptionInfo(null, h.skillExpressionFilters.evaluateSkillExpressionFiltersTooltipInfo).setMaxItems(_.evaluateSkillExpressionFilters.skillExpressionFilters.maxItems).setMinItems(_.evaluateSkillExpressionFilters.skillExpressionFilters.minItems).facets.setMinLength(_.evaluateSkillExpressionFilters.skillExpressionFilters.items.minLength).setMaxLength(_.evaluateSkillExpressionFilters.skillExpressionFilters.items.maxLength)), type: p.expressionTypeNames.string, yamlOptions: m.createYamlOptions("skillExpressionFilters", (e3) => e3.setPropertyName("skillExpressionFilters")) }, { label: h.skillExpressionFilters.skillExpressionFiltersResult, options: c.ExpressionTypeJsonOptions.create((e3) => e3.setIsCustomJsonType(true).setTypeIdentifier(p.expressionTypeNames.skillExpressionFilter).setIninTestingField("skillExpressionFiltersResult").setIsCollection(true).setAsOutput().setDescriptionInfo(null, h.skillExpressionFilters.evaluateSkillExpressionFiltersResultTooltipInfo)), property: "skillExpressionFiltersResult", type: p.expressionTypeNames.skillExpressionFilter, typeOfJsonShouldBeCustom: true, yamlOptions: m.createYamlOptions("skillExpressionFiltersResult", (e3) => e3.setPropertyName("skillExpressionFiltersResult").setExportOrder(100)) }]; + } + _initializeDesignTime() { + var e3, t3, i3; + super._initializeDesignTime(); + const n3 = (null === (i3 = null === (t3 = null === (e3 = this.skillExpressionFiltersResult) || void 0 === e3 ? void 0 : e3.options) || void 0 === t3 ? void 0 : t3.issueInfoTypes) || void 0 === i3 ? void 0 : i3.sort()) || []; + n3.length > 0 && this.skillExpressionFiltersResult.options.setDescriptionAdditionalInfoSection({ title: h.skillExpressionFilters.exampleErrorResultsTitle, entries: n3 }); + } + _getPossibleErrors() { + return l.getEvaluateSkillExpressionFiltersFailureReasons; + } + } + m.info = o.default.createActionInfo({ actionClass: m, canBeInTask: true, helpTopic: r2.helpTopics.actions.evaluateSkillExpressionFilters, modelClass: s.EvaluateSkillExpressionFiltersActionModel, name: h.actions.evaluateSkillExpressionFilters, scriptingName: "ArchActionEvaluateSkillExpressionFilters" }), t2.A = m; + }, 85761: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.lastValueFrom = void 0; + var n2 = i2(59328); + t2.lastValueFrom = function(e3, t3) { + var i3 = "object" == typeof t3; + return new Promise(function(r2, o) { + var a, s = false; + e3.subscribe({ next: function(e4) { + a = e4, s = true; + }, error: o, complete: function() { + s ? r2(a) : i3 ? r2(t3.defaultValue) : o(new n2.EmptyError()); + } }); + }); + }; + }, 85763: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = i2(26847), o = i2(30801), a = n2.__importDefault(i2(27873)); + class s extends a.default { + constructor(e3) { + super(e3); + } + get _actionTypeId() { + return o.processVoicemailInputActionType; + } + get displayTypeName() { + return this._scriptingName; + } + get hasFakeFaxProcessedOutput() { + return true; + } + get isArchActionProcessVoicemailInput() { + return true; + } + get outputVoicemail() { + return this._getOutputById(r2.outputIds.voicemail, true); + } + } + t2.default = s; + }, 85839: (e2, t2, i2) => { + const { expressionTypeNames: n2 } = i2(80428), r2 = {}; + r2[n2.boolean] = "false", r2[n2.currency] = "0.0|USD", r2[n2.decimal] = "0.0", r2[n2.duration] = "P0D0H0M0S0F", r2[n2.integer] = "0", r2[n2.string] = "", e2.exports = { defaultTextMap: r2, getDefaultText: function(e3) { + return r2[e3]; + } }; + }, 85867: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(20692)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "wheelPickerItemCollection"; + } + get displayTypeName() { + return "ArchVariableWheelPickerItemCollection"; + } + get isArchVariableWheelPickerItemCollection() { + return true; + } + } + t2.default = r2; + }, 85889: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.CarouselType = void 0; + const n2 = i2(31635), r2 = n2.__importDefault(i2(92140)), o = i2(17604), a = n2.__importStar(i2(12847)), s = i2(44521), l = i2(82632), u = i2(28033), d = n2.__importStar(i2(36781)), c = n2.__importStar(i2(63352)), p = n2.__importStar(i2(58380)), _ = i2(28614), h = i2(80428), m = i2(47957), g = "cards", f = l.dataTypeLimits.carouselDataType.properties.cards.maxItems.count, T = l.dataTypeLimits.carouselDataType.properties.cards.minItems.count; + class y extends s.BasedOnChoicesType { + constructor(e3, t3, i3) { + super(e3, t3, i3); + } + get className() { + return "CarouselType"; + } + canConvertLitToExpression(e3) { + return false; + } + convertLitToExpression(e3, t3, i3) { + return ""; + } + deleteChoiceAtIndex(e3, t3) { + if (t3 < 0) return false; + let i3 = false; + return this._processCards(e3, false, (e4) => { + if (!i3) { + const n3 = e4.type.getPossibleChoiceCount(e4); + t3 >= n3 ? t3 -= n3 : t3 >= 0 && (i3 = e4.type.deleteChoiceAtIndex(e4, t3), t3 = -1); + } + }), i3; + } + createExpressionOptionClass() { + return new u.ExpressionTypeCarouselOptions(); + } + get supportsLiteralEditor() { + return true; + } + getPropCards(e3) { + return e3.getProperty(g); + } + _processCards(e3, t3, i3) { + var n3; + if (!e3) return; + const o2 = e3.getProperty(g, true); + !o2 || !t3 && o2.outOfService || r2.default.each(null === (n3 = o2.collectionItems) || void 0 === n3 ? void 0 : n3.items, (e4) => { + try { + i3(e4); + } catch (e5) { + } + }); + } + couldHaveUnknownPostbackValue(e3) { + if (!e3 || e3.outOfService) return false; + if (!e3.isLiteralMode) return true; + const t3 = e3.getProperty(g, true); + return !t3 || !!r2.default.find(t3.collectionItems.items, (e4) => e4.type.couldHaveUnknownPostbackValue(e4)); + } + isUnknownAtDesignTime(e3) { + if (!(null == e3 ? void 0 : e3.isLiteralMode) || e3.outOfService) return true; + const t3 = e3.getProperty(g, true); + return !t3 || t3.outOfService; + } + getHasAtLeastOnePostbackChoice(e3) { + var t3; + if (this.isUnknownAtDesignTime(e3)) return; + const i3 = e3.getProperty(g, true); + if (!i3 || i3.outOfService) return; + let n3, o2; + return r2.default.find(null === (t3 = i3.collectionItems) || void 0 === t3 ? void 0 : t3.items, (e4) => { + const t4 = e4.type.getHasAtLeastOnePostbackChoice(e4); + if (t4) return o2 = true, e4; + (r2.default.isUndefined(t4) || e4.type.isUnknownAtDesignTime(e4)) && (n3 = true); + }), !!o2 || !!n3 && void 0; + } + getPossibleChoices(e3, t3, i3) { + let n3 = []; + return e3 ? (this._processCards(e3, i3, (e4) => { + const i4 = e4.type.getPossibleChoices(e4, t3); + r2.default.isArray(i4) && i4.length && (n3 = n3.concat(i4)); + }), n3) : n3; + } + resetCards(e3) { + const t3 = e3.getProperty(g); + if (t3) return t3.mode = c.literal, t3.removeAll(), t3; + } + _ensureCardsIsLiteral(e3, t3, i3) { + const n3 = e3.getProperty(g); + if (n3) { + if (n3.mode !== c.literal) { + if (!t3) return; + n3.mode = c.literal, n3.removeAll(); + } + if (!(i3 && n3.collectionItems.items.length >= f)) return n3; + } + } + addCard(e3, t3, i3, n3) { + const r3 = this._ensureCardsIsLiteral(e3, n3, true); + if (!r3 || r3.outOfService || !r3.isLiteralMode) return; + const o2 = r3.type.singletonType.createCard(r3, t3, i3); + return r3.collectionItems.addItem(o2), o2; + } + configureFromChoices(e3, t3, i3, n3, o2) { + if (!this.resetCards(e3)) return; + let s2, u2 = 0, d2 = 0; + const c2 = o2 === _.slotTypeValueMergeMode.asIndividualValues ? 1 : l.dataTypeLimits.cardDataType.properties.buttons.maxItems.count; + r2.default.each(t3, (t4) => { + u2 >= f || ((d2 >= c2 || !s2) && (u2++, d2 = 0, s2 = this.addCard(e3, `${i3 || m.cardsAndCars.cardType.label} ${u2}`)), s2 ? (d2++, s2.type.addChoiceClonedFromChoice(s2, t4)) : a.error(`Card could not be created for carousel expression: ${null == e3 ? void 0 : e3.toString()}`)); + }); + } + applyNluDiffs(e3, t3, i3, n3) { + var a2; + let s2 = n3 && t3 && !t3.outOfService; + const l2 = this._ensureCardsIsLiteral(t3); + if (l2 && !l2.outOfService && l2.isLiteralMode || (s2 = false), s2) { + if (n3.invalidPostbackValueChoices) { + const t4 = l2.collectionItems; + for (let i4 = t4.items.length - 1; i4 >= 0; i4--) { + const r3 = t4.items[i4]; + (null === (a2 = null == r3 ? void 0 : r3.type.removeInvalidNluDiffButtonChoices(r3, n3, e3)) || void 0 === a2 ? void 0 : a2.cardChoicesAreEmpty) && t4.removeChild(r3); + } + } + r2.default.each(n3.missingSlotTypeValues, (n4) => { + if (!n4) return; + let r3; + switch (i3) { + case _.slotTypeValueMergeMode.asIndividualValues: { + const e4 = this.addCard(t3, (0, o.sprintf)(m.cardsAndCars.carouselType.defaultCardTitle, l2.collectionItems.items.length + 1)); + e4 && (r3 = e4.type.addChoiceForPostbackValue(e4, n4, true)); + break; + } + case _.slotTypeValueMergeMode.asStackedValues: { + let e4; + if (l2.collectionItems.items.length && (e4 = l2.collectionItems.items[l2.collectionItems.items.length - 1], r3 = e4.type.addChoiceForPostbackValue(e4, n4, false), !r3)) { + const e5 = this.addCard(t3); + e5 && (r3 = e5.type.addChoiceForPostbackValue(e5, n4, true)); + } + break; + } + } + r3 && (e3.missingSlotTypeValuesAdded || (e3.missingSlotTypeValuesAdded = []), e3.missingSlotTypeValuesAdded.push(n4)); + }); + } + } + updateAllowableValues(e3, t3) { + this._processCards(e3, false, (e4) => { + e4.type.updateAllowableValues(e4, t3); + }); + } + configurePropertyCreationParams(e3, t3, i3) { + var n3; + if (super.configurePropertyCreationParams(e3, t3, i3), (null === (n3 = t3.name) || void 0 === n3 ? void 0 : n3.toLowerCase()) === g) { + const e4 = i3.options; + e4.setMaxItems(f), e4.setMinItems(T), e4.setIninTestingField("carousel-cards"); + } + } + initializeDesignTime(e3) { + super.initializeDesignTime(e3); + const t3 = this.getPropCards(e3); + t3 && (e3.addAutoCleanedUpSubscription(p.createObservableForEvent$(d.listOrderChanged, t3).subscribe(() => this._setCardCount(e3))), e3.addAutoCleanedUpSubscription(p.createObservableForEvent$(d.expressionModeChanged, e3).subscribe(() => this._setCardCount(e3)))), this._setCardCount(e3); + } + validateLiteral(e3, t3) { + let i3 = super.validateLiteral(e3, t3); + if (i3 && false === this.getHasAtLeastOnePostbackChoice(t3)) { + i3 = false; + const n3 = t3.getProperty(g, true); + e3.addExpressionError(n3 || t3, m.carouselType.carouselErrorAddAtLeastOnePostbackButton); + } + return i3; + } + _setCardCount(e3) { + const t3 = this.getPropCards(e3); + let i3; + e3.isLiteralMode && t3.isLiteralMode && (i3 = `${t3.collectionItems.length} / ${l.dataTypeLimits.carouselDataType.properties.cards.maxItems.count}`), e3.options.setSubLabel(i3); + } + get hasRichLiteralEditor() { + return true; + } + } + t2.CarouselType = y, y.typeIdentifier = h.expressionTypeNames.carousel; + }, 85934: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.filter = void 0; + var n2 = i2(65212), r2 = i2(17214); + t2.filter = function(e3, t3) { + return n2.operate(function(i3, n3) { + var o = 0; + i3.subscribe(r2.createOperatorSubscriber(n3, function(i4) { + return e3.call(t3, i4, o++) && n3.next(i4); + })); + }); + }; + }, 86015: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = i2(30801), o = n2.__importDefault(i2(78432)), a = n2.__importDefault(i2(56549)), s = n2.__importDefault(i2(94225)), l = n2.__importDefault(i2(37603)), { outputIds: u } = i2(26847), { scheduleManager: d } = i2(4861); + class c extends l.default { + constructor(e3) { + super(e3), this._scheduleTimeZone = this.coreFactory.createArchWrapper(e3.timeZone), this._schedule = this.coreFactory.createArchWrapper(e3.schedule); + } + get _actionTypeId() { + return r2.evaluateScheduleActionType; + } + get displayTypeName() { + return this._scriptingName; + } + get isArchActionEvaluateSchedule() { + return true; + } + get evaluateEmergencyGroup() { + return this._coreActionViewModel.evaluateEmergencyGroup; + } + setEvaluateEmergencyGroup(e3) { + const t3 = this._infoPropSet("newEvaluationType", "evaluateEmergencyGroup"); + this._checkItemIsValidLiteralStringEnum(t3, e3, o.default.SCHEDULE_EVALUATION_TYPES_ALL), this._coreActionViewModel.evaluateEmergencyGroup = e3 === o.default.SCHEDULE_EVALUATION_TYPES.emergencyGroup, this.logNote("evaluateEmergencyGroup set to '" + this.evaluateEmergencyGroup + "'"); + } + get schedule() { + return this._schedule; + } + setScheduleByIdAsync(e3, t3) { + return this._checkItemIsValidLiteralString(this._infoParm("scheduleId", "setScheduleByIdAsync"), e3, false), this._checkItemIsValidFunction(this._infoParm("callbackFunction", "setScheduleByIdAsync"), t3, true), a.default.findItemByIdAsync(d, e3, "schedule").then((i3) => (this.logNote("found the schedule named '" + i3.name + "' by the schedule id '" + e3 + "'"), this._coreActionViewModel.setSchedule(i3), s.default.executeCallback(this, "setScheduleByIdAsync", t3, this))); + } + setScheduleByNameAsync(e3, t3) { + return this._checkItemIsValidLiteralString(this._infoParm("scheduleName", "setScheduleByNameAsync"), e3, false), this._checkItemIsValidFunction(this._infoParm("callbackFunction", "setScheduleByNameAsync"), t3, true), a.default.findItemByValueAsync(d, e3, "schedule", "name").then((i3) => (this.logNote("found the schedule named '" + i3.name + "' by the schedule Name '" + e3 + "'"), this._coreActionViewModel.setSchedule(i3), s.default.executeCallback(this, "setScheduleByNameAsync", t3, this))); + } + get scheduleTimeZone() { + return this._scheduleTimeZone; + } + get outputActive() { + return this._getOutputById(u.active, true); + } + get outputInactive() { + return this._getOutputById(u.inactive, true); + } + } + t2.default = c; + }, 86042: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = i2(56969), o = n2.__importDefault(i2(25767)); + class a extends o.default { + constructor(e3) { + super(e3), this._coreVoiceSurveyFlowSettingsViewModel = e3; + } + get displayTypeName() { + return "ArchSettingsVoiceSurveyFlow"; + } + get isArchSettingsVoiceSurveyFlow() { + return true; + } + get surveyFormName() { + var e3; + return null === (e3 = this._coreVoiceSurveyFlowSettingsViewModel.archSurveyForm) || void 0 === e3 ? void 0 : e3.name; + } + get surveyFormId() { + var e3; + return null === (e3 = this._coreVoiceSurveyFlowSettingsViewModel.archSurveyForm) || void 0 === e3 ? void 0 : e3.id; + } + getSurveyQuestionsForSurveyForm() { + const e3 = (0, r2.getAllQuestions)(this._coreVoiceSurveyFlowSettingsViewModel.archSurveyForm); + return (null == e3 ? void 0 : e3.map((e4) => e4.questionText)) || []; + } + getAnswerOptionsForSurveyQuestionText(e3) { + const t3 = this._infoParm("questionText", "getAnswerOptionsForSurveyQuestionText"); + if (this._checkItemIsValidLiteralString(t3, e3), !(null == e3 ? void 0 : e3.length)) return void this.logNote("the question text specified in the questionText parameter is blank. Exiting."); + this.logNote(`lookup up answer options for the question text '${e3}'.`); + const i3 = this._coreVoiceSurveyFlowSettingsViewModel.getAnswerOptionsExpressionForQuestionText(e3); + if (i3) return this.logNote("answer options found based on the question text."), this.coreFactory.createArchWrapper(i3); + this.logNote(`there are no answer options found for the question text '${e3}'. Exiting.`); + } + } + t2.default = a; + }, 86050: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.ScreenPopViewModel = void 0; + const n2 = i2(31635), r2 = n2.__importDefault(i2(92140)), o = n2.__importDefault(i2(3916)), a = i2(43212); + class s extends a.BaseConfigurationListViewModel { + constructor(e3) { + super(e3), this._model.variables && this.loadVariables(this._model.variables); + } + get className() { + return "ScreenPopViewModel"; + } + get category() { + return this._model.category; + } + get description() { + return this._model.description; + } + getConfiguration() { + return { name: this._model.name, description: this._model.description, category: this._model.category, url: this._model.url, inputs: this._model.variables }; + } + getProperty(e3, t3, i3) { + const n3 = i3 ? { name: e3 } : { id: e3 }; + return r2.default.findWhere(t3 ? this.outputs : this.inputs, n3); + } + get id() { + return this._model.id; + } + get input() { + return this._model.variables; + } + get label() { + return this._model.name || ""; + } + loadVariables(e3) { + let t3 = {}; + e3 && e3.properties && (t3 = r2.default.omit(e3.properties, function(e4) { + return !(!e4.hasOwnProperty("input") && !e4.hasOwnProperty("output")) && true !== e4.input; + })), this.inputs = o.default.createSchemaPropertyList(t3); + } + get name() { + return this._model.name; + } + get result() { + return this._model.result; + } + get url() { + return this._model.url; + } + } + t2.ScreenPopViewModel = s; + }, 86081: function(e2, t2, i2) { + "use strict"; + var n2 = this && this.__read || function(e3, t3) { + var i3 = "function" == typeof Symbol && e3[Symbol.iterator]; + if (!i3) return e3; + var n3, r3, o2 = i3.call(e3), a2 = []; + try { + for (; (void 0 === t3 || t3-- > 0) && !(n3 = o2.next()).done; ) a2.push(n3.value); + } catch (e4) { + r3 = { error: e4 }; + } finally { + try { + n3 && !n3.done && (i3 = o2.return) && i3.call(o2); + } finally { + if (r3) throw r3.error; + } + } + return a2; + }, r2 = this && this.__spreadArray || function(e3, t3) { + for (var i3 = 0, n3 = t3.length, r3 = e3.length; i3 < n3; i3++, r3++) e3[r3] = t3[i3]; + return e3; + }; + Object.defineProperty(t2, "__esModule", { value: true }), t2.race = void 0; + var o = i2(7652), a = i2(6677); + t2.race = function() { + for (var e3 = [], t3 = 0; t3 < arguments.length; t3++) e3[t3] = arguments[t3]; + return a.raceWith.apply(void 0, r2([], n2(o.argsOrArgArray(e3)))); + }; + }, 86115: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = i2(80295), o = n2.__importDefault(i2(67336)); + class a extends o.default { + constructor(e3) { + super(e3), this._checkItemUndefinedOrNull(this._infoParmCtor("coreDynamicTimeslotTypeViewModel"), e3), this._coreDynamicTimeslotTypeViewModel = e3, (0, r2.makeUnenumerable)(this, "_coreDynamicTimeslotTypeViewModel"), this._timeslots = this.coreFactory.createArchWrapper(e3.timeslots); + } + get displayTypeName() { + return "ArchSettingsNluDynamicTimeslotType"; + } + get isArchSettingsNluDynamicTimeslotType() { + return true; + } + get logStr() { + if (!this._getCoreViewModel()) return this.logStrTypeOnly; + const e3 = []; + return this._appendLogStrType(e3, this.displayTypeName), this._createLogStrFromParts(e3); + } + get timeslots() { + return this._timeslots; + } + } + t2.default = a; + }, 86167: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(84655)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "utilizationLabel"; + } + get displayTypeName() { + return "ArchVariableUtilizationLabel"; + } + get initialValue() { + return this._initialValue; + } + get isArchVariableUtilizationLabel() { + return true; + } + } + t2.default = r2; + }, 86297: (e2, t2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.createInvalidObservableTypeError = void 0, t2.createInvalidObservableTypeError = function(e3) { + return new TypeError("You provided " + (null !== e3 && "object" == typeof e3 ? "an invalid object" : "'" + e3 + "'") + " where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable."); + }; + }, 86332: (e2, t2, i2) => { + "use strict"; + const n2 = i2(31635), r2 = n2.__importStar(i2(69453)), o = i2(69149), a = n2.__importDefault(i2(5532)), s = n2.__importDefault(i2(73198)), l = i2(80428), u = i2(59777), d = i2(48112), c = i2(81516), p = n2.__importDefault(i2(27203)), _ = n2.__importStar(i2(17498)), h = i2(58132), m = i2(12179), g = n2.__importDefault(i2(97891)), f = n2.__importDefault(i2(5478)), T = i2(27862); + class y extends f.default { + constructor(e3, t3) { + super(e3.parentFlow, e3), this._loadModel(t3); + } + static get managedProperties() { + return [{ label: r2.deflect.deflectToLabel, options: c.ExpressionTypeStringOptions.create((e3) => e3.setDescriptionInfo(r2.deflect.deflectToLabel, r2.deflect.deflectToDescription).setAsInput().setIsOptional(false).setDefaultText(r2.deflect.sms).setAllowModeLiteralOnly().setIninTestingField("deflect-deflectTo").setReadOnly(true).facets.setAllowableValues([r2.deflect.sms]).setDisplayFacetsAsInputWhenOnlyOneValueAllowed(true)), property: "deflectTo", type: l.expressionTypeNames.string }, { label: r2.deflect.messageLabel, options: c.ExpressionTypeStringOptions.create((e3) => e3.setAsInput().setDescriptionInfo(r2.deflect.messageLabel, r2.deflect.messageDescription).setIninTestingField("deflect-message").setAdditionalBuilderPartDefs([a.default.getBuilderPartDefById(o.builderPartIds.string.deflectionURL)]).facets.setMinLength(1).setMaxLength(s.default.maxSmsMessageLength).setTrim(true)), property: "message", type: l.expressionTypeNames.string }, { label: r2.deflect.smsToLabel, options: d.ExpressionTypePhoneNumberOptions.create((e3) => e3.setAsInput().setIsOptional(false).setDescriptionInfo(r2.deflect.smsToLabel, r2.deflect.smsToDescription).setDefaultToExpression(true).setDefaultText("ToPhoneNumber(Call.Ani)").setIninTestingField("deflect-smsTo")), property: "smsTo", type: l.expressionTypeNames.phoneNumber }, { label: r2.deflect.smsFromLabel, options: d.ExpressionTypePhoneNumberOptions.create((e3) => e3.setAsInput().setIsOptional(false).setDescriptionInfo(r2.deflect.smsFromLabel, r2.deflect.smsFromDescription).setAllowModeLiteralOnly().setLiteralUsesSmsPhoneNumberDropdown(true).setIninTestingField("deflect-smsFrom")), property: "smsFrom", type: l.expressionTypeNames.phoneNumber }]; + } + static get branchInfo() { + return p.default.successFailure; + } + _getPossibleErrors() { + return h.getDeflectFailureReasons; + } + updateDependencies() { + var e3, t3, i3, n3; + super.updateDependencies(), (null === (e3 = this.smsFrom) || void 0 === e3 ? void 0 : e3.id) && (null === (n3 = null === (i3 = null === (t3 = this.smsFrom) || void 0 === t3 ? void 0 : t3.model) || void 0 === i3 ? void 0 : i3.config) || void 0 === n3 ? void 0 : n3.val) && _.registerConsumer(this, "smsPhoneNumber", this.smsFrom.model.config.val, this.smsFrom.model.config.val, _.NO_VERSION, T.SmsPhoneNumber, this.parentFlow); + } + } + y.info = g.default.createActionInfo({ actionClass: y, canBeInTask: true, helpTopic: m.helpTopics.actions.deflect, modelClass: u.DeflectActionModel, name: r2.deflect.deflect, scriptingName: "ArchActionDeflect" }), t2.A = y; + }, 86473: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(11210)), r2 = i2(30801); + class o extends n2.default { + constructor(e3) { + super(e3), this._statements = this.coreFactory.createArchBaseValueContainer(e3.variables); + } + get _actionTypeId() { + return r2.extractSecureDataActionType; + } + acknowledgeSecureUsage() { + this._coreActionViewModel.setAcknowledgment() || this.logErrorAndThrow("unable to set the secure data extraction acknowledgement."); + } + addExtractSecureDataStatement(e3, t3, i3) { + const n3 = this._infoParm("archDataType", "addExtractSecureDataStatement"); + return this._checkItem(n3, !e3 || !e3.isArchDataType, "you must pass in a valid Architect data type for the statement to create"), this._checkItem(n3, !e3.isScriptCreatableForFlow(this.parentFlow), "the Architect data type " + e3.label + " is not creatable from scripting for one of the flow types '" + this._getCoreViewModel().parentFlow.destinationFlowTypes.join(",") + "'. The data type's isScriptCreatableForFlow must return true to be valid for use when creating an extract secure data statement"), this._statements._addVariableValueAssignment(e3, t3, i3, true, this._getCoreViewModel().createStatementOptions); + } + get displayTypeName() { + return this._scriptingName; + } + get hasSecureDataAcknowledgment() { + return this._coreActionViewModel.hasSecureDataAcknowledgment; + } + get isArchActionExtractSecureData() { + return true; + } + get statements() { + return this._statements._createVariableValuePairArray(); + } + } + t2.default = o; + }, 86500: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(54757)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "decimalCollection"; + } + get displayTypeName() { + return "ArchValueDecimalCollection"; + } + get isArchValueDecimalCollection() { + return true; + } + } + t2.default = r2; + }, 86527: (e2, t2, i2) => { + "use strict"; + const n2 = i2(31635), r2 = i2(12179), o = i2(12457), a = n2.__importDefault(i2(5730)), s = i2(26954), l = n2.__importDefault(i2(97891)), u = i2(80428), d = i2(47957); + class c extends a.default { + constructor(e3, t3) { + super(e3.parentFlow, e3), this.user = null, this._loadModel(t3); + } + getDetails() { + var e3; + return (null === (e3 = this.user) || void 0 === e3 ? void 0 : e3.isLiteralMode) && this.user.text ? new o.ActionDetails([d.user.label], [this.user.text]) : super.getDetails(); + } + static get managedProperties() { + return [{ label: d.user.label, options: s.ExpressionTypeUserOptions.create((e3) => e3.setUiPropertyOrder(10).setIninTestingField("userTransferExpression")), yamlOptions: c.createYamlOptions("user", (e3) => e3.setPropertyName("targetUser").setExportOrder(20)), property: "user", type: u.expressionTypeNames.userQueue }]; + } + } + c.info = l.default.createActionInfo({ actionClass: c, canBeInTask: true, helpTopic: r2.helpTopics.actions.playUserName, modelClass: i2(36955), name: d.actions.playUserName, scriptingName: "ArchActionPlayUserName" }), t2.A = c; + }, 86531: (e2, t2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.default = { entireFlow: "entireFlow", none: "none", startUpObject: "startUpObject" }; + }, 86580: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.requestHandler = function(e3, t3) { + return "success" === e3 ? (function(e4) { + return e4.deferredResult.resolve(e4.getResponse()), false; + })(t3) : "error" === e3 ? (function(e4) { + return e4.deferredResult.reject(r2(e4)), false; + })(t3) : "abort" === e3 ? (function(e4) { + const t4 = r2(e4); + return t4.isAborted = true, e4.deferredResult.reject(t4), false; + })(t3) : void 0; + }; + const n2 = i2(97834); + function r2(e3) { + const t3 = e3.parseResponse(), i3 = e3.getResponseHeaders(); + return new n2.RequestError(t3, e3.status, e3.statusText, e3.handled, i3); + } + }, 86591: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(20692)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "utilizationLabelCollection"; + } + get displayTypeName() { + return "ArchVariableUtilizationLabelCollection"; + } + get initialValue() { + return this._initialValue; + } + get isArchVariableUtilizationLabelCollection() { + return true; + } + } + t2.default = r2; + }, 86632: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.exhaustMap = void 0; + var n2 = i2(26872), r2 = i2(19724), o = i2(65212), a = i2(17214); + t2.exhaustMap = function e3(t3, i3) { + return i3 ? function(o2) { + return o2.pipe(e3(function(e4, o3) { + return r2.innerFrom(t3(e4, o3)).pipe(n2.map(function(t4, n3) { + return i3(e4, t4, o3, n3); + })); + })); + } : o.operate(function(e4, i4) { + var n3 = 0, o2 = null, s = false; + e4.subscribe(a.createOperatorSubscriber(i4, function(e5) { + o2 || (o2 = a.createOperatorSubscriber(i4, void 0, function() { + o2 = null, s && i4.complete(); + }), r2.innerFrom(t3(e5, n3++)).subscribe(o2)); + }, function() { + s = true, !o2 && i4.complete(); + })); + }); + }; + }, 86637: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(20692)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "emergencyGroupCollection"; + } + get displayTypeName() { + return "ArchVariableEmergencyGroupCollection"; + } + get initialValue() { + return this._initialValue; + } + get isArchVariableEmergencyGroupCollection() { + return true; + } + } + t2.default = r2; + }, 86750: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.ConversationCustomAttributeSchemaViewModel = void 0; + const n2 = i2(31635), r2 = n2.__importDefault(i2(92140)), o = i2(74483), a = n2.__importDefault(i2(57606)), s = i2(47957); + class l extends o.NameIdConfigurationListViewModel { + constructor(e3) { + if (super(e3), this._schemasNotLoaded = false, this._model.jsonSchema) { + const e4 = { properties: {}, required: [] }; + r2.default.each(this._model.jsonSchema.properties, (t3, i3) => { + r2.default.isObject(t3) && (e4.properties[i3] = t3, e4.required.push(i3)); + }), this._successSchema = new a.default(e4, false); + } else this._schemasNotLoaded = true; + } + get className() { + return "ConversationCustomAttributeSchemaViewModel"; + } + get schemasNotLoaded() { + return this._schemasNotLoaded; + } + get successSchema() { + return this._successSchema; + } + get disabled() { + return !this._model.enabled; + } + get tooltip() { + return this.disabled ? s.generic.disabledDiscourageForNewUse : ""; + } + } + t2.ConversationCustomAttributeSchemaViewModel = l; + }, 86758: (e2, t2, i2) => { + "use strict"; + const n2 = i2(31635), r2 = n2.__importDefault(i2(942)), o = i2(80428), a = i2(37830), s = i2(30502), l = i2(12179), u = n2.__importDefault(i2(97891)), d = i2(47957); + class c extends r2.default { + constructor(e3, t3) { + super(e3.parentFlow, e3), this._loadModel(t3); + } + static get managedProperties() { + return r2.default.createManagedProperties({ searchFieldPropertyName: "findId", searchFieldOptionsCallback: (e3) => e3.facets.setLengthForUuid(), searchFieldLabel: d.findActions.findQueue.idLabel, searchResultLabel: d.findActions.findQueue.resultLabel, searchResultExpressionOptions: a.ExpressionTypeQueueOptions.create(), searchResultItemType: o.expressionTypeNames.queue }); + } + } + c.info = u.default.createActionInfo({ actionClass: c, canBeInTask: true, helpTopic: l.helpTopics.actions.findQueueById, modelClass: s.FindQueueByIdActionModel, name: d.actions.findQueueById, scriptingName: "ArchActionFindQueueById" }), t2.A = c; + }, 86767: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importStar(i2(68694)), o = i2(68694), a = i2(17604), s = n2.__importDefault(i2(92140)), l = i2(75679), u = i2(66882), d = n2.__importStar(i2(24032)), c = i2(79516), p = i2(63689), _ = n2.__importStar(i2(36781)), h = n2.__importStar(i2(10798)), m = n2.__importDefault(i2(77862)), g = n2.__importStar(i2(66381)), f = n2.__importStar(i2(94453)), T = n2.__importDefault(i2(4648)), y = n2.__importDefault(i2(68460)), S = n2.__importDefault(i2(33050)), A = n2.__importDefault(i2(32224)), N = n2.__importDefault(i2(40773)), O = i2(16926), I = i2(96563), v = i2(47957), C = d.getTopic("NluMetaDataViewModel"); + class b extends y.default { + constructor() { + super(...arguments), this.intentSettingsMap = {}, this.slotSettingsMap = {}, this._allowableIntentValues = [], this.modelPropertyName = "nluMetaData"; + } + get isNluMetaDataViewModel() { + return true; + } + get className() { + return "NluMetaDataViewModel"; + } + get id() { + return "nluMetaData"; + } + getDisplayName() { + return this.id; + } + addSlot(e3, t3, i3) { + this.slotToSlotVariablesMapping[e3] = t3.id, this.slotToEntityTypesMapping[e3] = i3, this.slotToReferencingIntentsMapping[e3] = []; + } + getArchNluWithFallback() { + var e3, t3, i3; + if (this.archNlu) return this.archNlu; + const n3 = null === (e3 = this.parentFlow.botFlowSettings) || void 0 === e3 ? void 0 : e3.nluDomainVersionId; + if (!s.default.isString(n3) || 0 === n3.length) return; + const r3 = null === (t3 = p.nluDomainManager.getItem(this.parentFlow.botFlowSettings.nluDomainId)) || void 0 === t3 ? void 0 : t3.model; + return r3 ? { id: null === (i3 = this.parentFlow.botFlowSettings) || void 0 === i3 ? void 0 : i3.nluDomainVersionId, entities: r3.entities, entityTypes: r3.entityTypes, intents: r3.intents } : void 0; + } + get archNlu() { + var e3; + return null === (e3 = this._model) || void 0 === e3 ? void 0 : e3.archNlu; + } + set archNlu(e3) { + this._model.archNlu = e3; + } + get intentHealthInfo() { + var e3; + return null === (e3 = this._model) || void 0 === e3 ? void 0 : e3.intentHealthInfo; + } + setIntentHealthInfo(e3) { + this._model.intentHealthInfo = e3; + } + get nluGeneratedInputInfo() { + var e3; + return null === (e3 = this._model) || void 0 === e3 ? void 0 : e3.nluGeneratedInputInfo; + } + setNluGeneratedInputInfo(e3) { + this._model.nluGeneratedInputInfo = e3; + } + removeSlotBySlotName(e3) { + s.default.isString(e3) && e3.length && (delete this.slotToSlotVariablesMapping[e3], delete this.slotToEntityTypesMapping[e3], delete this.slotToReferencingIntentsMapping[e3]); + } + getSlotNameForVariableId(e3) { + if (!s.default.isString(e3) || !e3.length) return; + let t3; + return s.default.find(this.slotToSlotVariablesMapping, (i3, n3) => { + if (i3 === e3) return t3 = n3, true; + }), t3; + } + getSlotVariableForSlotName(e3) { + const t3 = this.slotToSlotVariablesMapping[e3]; + let i3; + return t3 && (i3 = this.parentFlow.variableGroup.getExpandedVariable(t3)), i3; + } + destroy() { + var e3, t3; + return s.default.each(this.intentSettingsMap, (e4) => e4.destroy()), s.default.each(this.slotSettingsMap, (e4) => e4.destroy()), null === (e3 = this.dynamicSlotTypesMap) || void 0 === e3 || e3.destroy(), null === (t3 = this.dynamicTimeslotTypeList) || void 0 === t3 || t3.destroy(), super.destroy(); + } + getConfiguration(e3, t3) { + e3.nluMetaData = s.default.clone(this._model), e3.nluMetaData.intents = {}, this.rawNlu && this.setRawNluAndCompressionFormat(this.rawNlu, m.default.compressionFormats.none, e3.nluMetaData), (null == t3 ? void 0 : t3.isArchitectFormatExport) && (e3.nluMetaData.archNlu = this.getArchNluWithFallback()), s.default.each(this.intentSettingsMap, (i3) => i3.getConfiguration(e3, t3)), e3.nluMetaData.mappings.dynamicSlotTypes = this.dynamicSlotTypesMap.getConfiguration(e3, t3), e3.nluMetaData.mappings.dynamicTimeslots = this.dynamicTimeslotTypeList.getConfiguration(e3, t3); + } + getEntityTypeAllowableValues(e3) { + return o.EntityUtil.getListTypeEntityTypeByNameAllowableValues(this.rawNluAsINluDomainVersion, e3); + } + getEntityTypeValueLabels(e3, t3) { + return o.EntityUtil.getListTypeEntityTypeByNameValueLabels(this.rawNluAsINluDomainVersion, e3, t3); + } + getEntityTypeValueLabelForLanguage(e3, t3, i3) { + return o.EntityUtil.getListTypeEntityTypeByNameValueLabelForLanguage(this.rawNluAsINluDomainVersion, e3, t3, i3); + } + get rawNluAsINluDomainVersion() { + return this.parentFlow.nlu; + } + getEntityTypeNames() { + return o.EntityUtil.getEntityTypeNames(this.rawNluAsINluDomainVersion); + } + getEntityNames() { + return o.EntityUtil.getEntityNames(this.rawNluAsINluDomainVersion); + } + getProperlyCasedEntityTypeName(e3) { + var t3; + return null === (t3 = o.EntityUtil.getEntityTypeByName(this.rawNluAsINluDomainVersion, e3)) || void 0 === t3 ? void 0 : t3.name; + } + loadConfiguration(e3) { + var t3, i3, n3; + this._model = e3.nluMetaData || new I(), this.intentSettingsMap = s.default.mapObject(this._model.intents, (t4, i4) => { + const n4 = new S.default(i4, this.parentFlow, this); + return n4.loadConfiguration(e3), n4; + }), Object.keys(this._model.slots || {}).forEach((e4) => { + this.slotSettingsMap[e4] = new A.default(e4, this.parentFlow, this); + }), this.dynamicSlotTypesMap = new l.DynamicSlotTypeList(this.parent, null === (t3 = this._model.mappings) || void 0 === t3 ? void 0 : t3.dynamicSlotTypes), this.updateDynamicSlotTypes(), this.dynamicTimeslotTypeList = new u.DynamicTimeslotTypeList(this.parent, Object.values((null === (i3 = this._model.mappings) || void 0 === i3 ? void 0 : i3.dynamicTimeslots) || {})), this.updateDynamicTimeslotTypes(), this.updateAllowableIntentValues(Object.keys(this._model.intents || {})); + const r3 = this.unpackRawNlu(null == e3 ? void 0 : e3.nluMetaData); + if (r3 && (this.rawNlu = r3), null === (n3 = this.archNlu) || void 0 === n3 ? void 0 : n3.id) { + const e4 = new O(this.archNlu); + e4.isFromWorkbench = true, p.nluDomainManager.addItem(e4, true); + } + } + unpackRawNlu(e3) { + if (e3 && s.default.isString(e3.rawNlu)) try { + return e3.rawNluCompressionFormat === m.default.compressionFormats.none || C.error("Temporarily falling back to JSON.parse of raw NLU meta data because no compression format available. This shouldn't be happening."), JSON.parse(e3.rawNlu); + } catch (t3) { + C.errorWithStack(t3, `Failed to unpack nlu - compressionFormat: '${e3.rawNluCompressionFormat}', raw: '${e3.rawNlu}'`); + } + } + initializeDesignTime() { + const e3 = Object.create(null, { initializeDesignTime: { get: () => super.initializeDesignTime } }); + return n2.__awaiter(this, void 0, void 0, function* () { + e3.initializeDesignTime.call(this), this.archNlu || (this.archNlu = this.getArchNluWithFallback()), s.default.each(this.intentSettingsMap, (e4) => e4.initializeDesignTime()), s.default.each(this.slotSettingsMap, (e4) => e4.initializeDesignTime()), this.dynamicSlotTypesMap.initializeDesignTime(), this.dynamicTimeslotTypeList.initializeDesignTime(), this.parentFlow.isReadOnly || this.updateIntents(this.parentFlow.botFlowSettings.nluDomain); + }); + } + get rawNlu() { + var e3; + return null === (e3 = this._model) || void 0 === e3 ? void 0 : e3.rawNlu; + } + set rawNlu(e3) { + const t3 = this._model.rawNlu; + this._model.rawNlu = e3, (this.parentFlow.isImporting || (s.default.isObject(t3) ? JSON.stringify(t3) : t3) !== (s.default.isObject(e3) ? JSON.stringify(e3) : e3)) && this.parentFlow.updateWorkbench(); + } + setRawNluFromWorkbench(e3) { + if (s.default.isString(e3)) try { + e3 = JSON.parse(e3); + } catch (t3) { + C.errorWithStack(t3, `Failed to parse string rawNlu from Workbench: '${e3}'`); + } + else s.default.isObject(e3) && (e3 = s.default.deepClone(e3)); + (null == e3 ? void 0 : e3.nluDomainVersion) && (e3 = e3.nluDomainVersion), this._model.rawNlu = e3; + } + setRawNluAndCompressionFormat(e3, t3 = m.default.compressionFormats.none, i3 = this) { + i3 === this || s.default.isString(e3) || s.default.isNullOrUndefined(e3) || (e3 = JSON.stringify(e3)), i3.rawNlu = e3, i3.rawNluCompressionFormat = t3; + } + removeSlotByVariableId(e3) { + const t3 = this.getSlotNameForVariableId(e3); + t3 && this.removeSlotBySlotName(t3); + } + search(e3) { + s.default.each(this.intentSettingsMap, (t3) => e3.addToQueue(t3)), s.default.each(this.slotSettingsMap, (t3) => e3.addToQueue(t3)), this.dynamicSlotTypesMap.search(e3), this.dynamicTimeslotTypeList.search(e3); + } + dynamicSlotTypesListIsAvailable() { + var e3; + return ((null === (e3 = this.archNlu) || void 0 === e3 ? void 0 : e3.entityTypes) || []).some((e4) => r2.EntityUtil.isEntityTypeOfTypeDynamicList(e4)); + } + dynamicTimeslotListIsAvailable() { + var e3; + return this.parentFlow.definition.supportsDynamicTimeslots && ((null === (e3 = this.archNlu) || void 0 === e3 ? void 0 : e3.entityTypes) || []).some((e4) => r2.EntityUtil.isEntityTypeOfTypeDynamicDateTime(e4)); + } + updateDependencies() { + s.default.each(this.intentSettingsMap, (e3) => e3.updateDependencies()), this.dynamicSlotTypesMap.updateDependencies(), this.dynamicTimeslotTypeList.updateDependencies(); + } + get allowableIntentValues() { + return this._allowableIntentValues; + } + updateAllowableIntentValues(e3) { + this._allowableIntentValues = [], s.default.each(e3, (e4) => { + this._allowableIntentValues.push({ id: e4, displayString: e4 }); + }), this._allowableIntentValues.sort((e4, t3) => (null == e4 ? void 0 : e4.displayString) > (null == t3 ? void 0 : t3.displayString) ? 1 : (null == e4 ? void 0 : e4.displayString) < (null == t3 ? void 0 : t3.displayString) ? -1 : 0); + } + updateIntentTaskMappings(e3) { + this._model.mappings.intentsToReusableTasks = {}, s.default.each(e3, (e4) => { + this.addIntentTaskMapping(e4); + }); + } + updateSlotGrammarMappings(e3) { + this._model.mappings.slotsToGrammars = {}, e3 && Object.entries(e3).forEach((e4) => { + this.addSlotGrammarMapping(e4[0], e4[1]); + }); + } + updateListPickerMappings(e3) { + this._model.mappings.listPickerMappings = e3 || {}; + } + isMultiSelectSlot(e3) { + return this.listPickerMappings && "multiple" === this.listPickerMappings[e3]; + } + addIntentTaskMapping(e3) { + const t3 = e3.intentName; + t3.trim() === t3 && t3.length ? this.intentsToReusableTasksMapping[t3] = { id: e3.taskId } : C.error("invalid intent name detected while creating intent to task map"); + } + addListPickerMapping(e3, t3, i3) { + this.listPickerMappings[e3] ? s.default.extend(this.listPickerMappings[e3], t3) : this.listPickerMappings[e3] = t3, i3 && (this.updateIntents(this.parentFlow.botFlowSettings.nluDomain), _.emitter.emit(_.slotListPickerMappingUpdated)); + } + addSlotGrammarMapping(e3, t3) { + e3 && e3.trim() === e3 && e3.length ? this.slotsToGrammarsMapping[e3] ? s.default.extend(this.slotsToGrammarsMapping[e3], t3) : this.slotsToGrammarsMapping[e3] = t3 : C.error("invalid slot name detected while creating grammar to slot map"); + } + addSlotGrammarSttEngineMapping(e3, t3) { + e3 && e3.trim() === e3 && e3.length ? this.slotsToGrammarsMapping[e3] ? this.slotsToGrammarsMapping[e3].sttEngine = t3 : this.slotsToGrammarsMapping[e3] = { id: "", sttEngine: t3 } : C.error("invalid slot name detected while creating stt engine to slot map"); + } + updateDynamicSlotTypes(e3) { + return !!h.isFeatureAvailable(T.default.botFlowsDynamicSlotTypeFeature) && this.updateSlotTypeExpressionContainerItems(r2.EntityTypeMechanismType.DynamicList, this.dynamicSlotTypesMap, e3 || this.archNlu); + } + updateDynamicTimeslotTypes(e3) { + return !!this.parentFlow.definition.supportsDynamicTimeslots && this.updateSlotTypeExpressionContainerItems(r2.EntityTypeMechanismType.DynamicDateTime, this.dynamicTimeslotTypeList, e3 || this.archNlu); + } + updateMutedUtteranceIds(e3) { + this.setIntentHealthInfo(Object.assign(Object.assign({}, this.intentHealthInfo || {}), { mutedUtterances: e3 })); + } + updateIntents(e3) { + var t3; + if (!e3) return; + { + const t4 = e3.getSlotsWithSameNameButDiffType(); + if (t4.length) { + const e4 = 1 === t4.length ? v.bot.sameNamedSlotsWithDifferentSlotTypes : v.bot.sameNamedSlotsWithDifferentSlotTypesMultiple, i4 = g.getListDisplayString(t4, false, false), n4 = (0, a.sprintf)(e4, i4); + throw _.emitter.emit(_.alert, { message: n4, type: c.AlertTypeEnum.info }), n4; + } + } + this.intentSettingsMap = s.default.pick(this.intentSettingsMap, (t4, i4) => s.default.findWhere(e3.intents, { name: i4 })), this.updateAllowableIntentValues(null === (t3 = e3.intents) || void 0 === t3 ? void 0 : t3.map((e4) => e4.name)), this._model.mappings.slotToReferencingIntents = {}, this._model.mappings.slotToEntityTypes = {}; + const i3 = []; + e3.entities && e3.entities.forEach((t4) => { + var n4, o3; + const a2 = e3.getEntityTypeMechanismForArchNluEntity(t4); + a2 && a2.toLowerCase() !== r2.EntityTypeMechanismType.List && a2.toLowerCase() !== r2.EntityTypeMechanismType.DynamicList && (null === (n4 = this.listPickerMappings) || void 0 === n4 ? void 0 : n4[t4.name]) && delete this.listPickerMappings[t4.name], f.getVariableForNluEntity(this.parentFlow, t4.name, t4.type, a2, this.isMultiSelectSlot(t4.name)); + const s2 = t4.name; + i3.push(s2); + const l2 = null === (o3 = e3.intents) || void 0 === o3 ? void 0 : o3.filter((e4) => { + var i4; + return (null === (i4 = e4.entityNameReferences) || void 0 === i4 ? void 0 : i4.indexOf(t4.name)) > -1; + }).map((e4) => e4.name); + this.slotToReferencingIntentsMapping[t4.name] = l2 || [], this.slotToEntityTypesMapping[s2] = t4.type, this._addSlotToSlotMappings(s2); + }), s.default.each(e3.intents, (e4) => { + var t4; + null === (t4 = e4.entityTypeBindings) || void 0 === t4 || t4.forEach((t5) => { + f.getVariableForNluEntity(this.parentFlow, t5.entityName, t5.entityType, void 0, this.isMultiSelectSlot(t5.entityName)); + const n4 = t5.entityName; + i3.push(n4); + const r3 = this.slotToReferencingIntentsMapping[n4]; + s.default.isArray(r3) ? r3.push(e4.name) : this.slotToReferencingIntentsMapping[n4] = [e4.name], this.slotToEntityTypesMapping[n4] = t5.entityType, this._addSlotToSlotMappings(n4); + }), this.intentSettingsMap[e4.name] || (this.intentSettingsMap[e4.name] = new S.default(e4.name, this.parentFlow, this), this.intentSettingsMap[e4.name].createNewConfirmationExpression()); + }), s.default.keys(this.slotToSlotVariablesMapping).forEach((e4) => { + if (!i3.includes(e4)) { + const t4 = this.slotToSlotVariablesMapping[e4]; + if (t4) { + const e5 = this.parentFlow.variableGroup.getExpandedVariable(t4); + e5 && (e5.isInPublishedFlowSchema ? (e5.doNotCleanupIfOrphanedSlot && delete e5.model.doNotCleanupIfOrphanedSlot, e5.setSlotVariableDescription(v.variable.slotVariableNotUsedButInPublishedSignature, true)) : e5.doNotCleanupIfOrphanedSlot || (this.parentFlow.variableGroup.removeVariable(e5), this.removeSlotByVariableId(t4))); + } + } + }); + const n3 = this.parentFlow.variableGroup.getSlotVariables(), o2 = s.default.values(this.slotToSlotVariablesMapping); + n3.forEach((e4) => { + o2.includes(e4.id) || e4.isInPublishedFlowSchema || this.parentFlow.variableGroup.removeVariable(e4); + }); + for (const e4 in this.slotToSlotVariablesMapping) { + const t4 = this.slotToSlotVariablesMapping[e4]; + this.parentFlow.variableGroup.getExpandedVariable(t4) || delete this.slotToSlotVariablesMapping[e4]; + } + this.parentFlow.initializeDesignTimeCalled && _.emitter.emit(_.nluIntentConfigurationUpdated, this.parentFlow); + } + validate(e3) { + super.validate(e3), e3.isDeep && !this.parentFlow.isReadOnly && this.updateIntents(this.parentFlow.botFlowSettings.nluDomain), s.default.each(this.intentSettingsMap, (t3) => t3.validate(e3)), this.dynamicSlotTypesMap.validate(e3), this.dynamicTimeslotTypeList.validate(e3), s.default.isEmpty(this.slotsToGrammarsMapping) || s.default.each(this.slotsToGrammarsMapping, (t3, i3) => { + var n3, r3, o2, s2; + if ((null === (n3 = t3.id) || void 0 === n3 ? void 0 : n3.length) && !(null === (r3 = t3.sttEngine) || void 0 === r3 ? void 0 : r3.id)) e3.addError(this.parentFlow, `Must have a speech to text engine associated with the slot '${i3}' in order to associate a grammar.`); + else if (!(null === (o2 = t3.id) || void 0 === o2 ? void 0 : o2.length) && (null === (s2 = t3.sttEngine) || void 0 === s2 ? void 0 : s2.id) && !N.default.isSttIdBotTranscriptionConnectorType(t3.sttEngine.id)) { + const t4 = (0, a.sprintf)(v.errors.grammarOnSlotError, i3); + e3.addError(this.parentFlow, t4); + } + }); + } + updateSlotTypeExpressionContainerItems(e3, t3, i3) { + const n3 = {}, r3 = s.default.filter(null == i3 ? void 0 : i3.entityTypes, (t4) => t4.mechanism.type.toLowerCase() === e3); + if (s.default.each(r3, (e4) => { + (null == e4 ? void 0 : e4.name) && (n3[e4.name] = true, t3.getItem(e4.name) || t3.add(e4, e4.name)); + }), !i3) return; + let o2 = false; + for (let e4 = t3.items.length - 1; e4 >= 0; e4--) { + const i4 = t3.items[e4]; + n3[i4.name] || (t3.removeChild(i4), o2 = true); + } + return o2; + } + _addSlotToSlotMappings(e3) { + if (this.slotSettingsMap[e3]) return; + const t3 = new A.default(e3, this.parentFlow, this); + this.slotSettingsMap[e3] = t3, this._model.slots[e3] = t3; + } + get slotsToGrammarsMapping() { + return this._model.mappings.slotsToGrammars; + } + get listPickerMappings() { + var e3, t3; + return null === (t3 = null === (e3 = this._model) || void 0 === e3 ? void 0 : e3.mappings) || void 0 === t3 ? void 0 : t3.listPickerMappings; + } + get intentsToReusableTasksMapping() { + return this._model.mappings.intentsToReusableTasks; + } + get slotToSlotVariablesMapping() { + return this._model.mappings.slotToSlotVariables; + } + get slotToEntityTypesMapping() { + return this._model.mappings.slotToEntityTypes; + } + get slotToReferencingIntentsMapping() { + return this._model.mappings.slotToReferencingIntents; + } + } + t2.default = b; + }, 86833: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.expressionParser = void 0; + const n2 = i2(31635), r2 = i2(17604), o = n2.__importDefault(i2(92140)), a = n2.__importStar(i2(24032)), s = n2.__importStar(i2(43011)), l = n2.__importDefault(i2(41510)), u = n2.__importStar(i2(66381)), d = i2(53476), c = i2(53476), p = i2(44076), _ = i2(26403), h = i2(98552), m = n2.__importStar(i2(9345)), g = i2(14394), f = i2(47957); + a.getTopic("expressionParser"), t2.expressionParser = new class { + _addErrorOrWarning(e3, t3, i3, n3, r3) { + var a2; + if (i3 && (r3 ? t3.setParseWarning(i3) : t3.setParseError(i3)), (n3 || i3) && !t3.options.suppressParserValidationMessages) { + if (t3.options.isExpressionPart) return; + n3 && o.default.isString(null === (a2 = t3._parseResult) || void 0 === a2 ? void 0 : a2.resultMessage) && (n3 += ` - ${t3._parseResult.resultMessage}`), r3 ? e3.addWarning(t3, n3 || i3, void 0, true) : e3.addError(t3, n3 || i3, void 0, true); + } + return false; + } + getLiteral(e3, t3, i3, n3) { + const r3 = g.globalTypes.string; + if (!i3 && e3.type.isMatch(r3, m.settings.typeOf)) return h.expressionItems.literal(1, t3, r3, n3); + const o2 = h.expressionItems.literal(1, t3, e3.type, n3); + return i3 && (o2.val = i3), o2; + } + getNull(e3) { + return h.expressionItems.nul(1, e3.type); + } + getEmp(e3) { + return h.expressionItems.emp(e3.type); + } + parse(e3) { + const t3 = new _.ParseResult(e3); + return (0, p.parseExpression)(t3), t3; + } + addWarning(e3, t3, i3) { + this._addErrorOrWarning(e3, t3, i3, void 0, true); + } + addError(e3, t3, i3) { + this._addErrorOrWarning(e3, t3, i3); + } + validateExpression(e3, t3) { + if (e3 && !e3.shouldValidate()) return; + const i3 = this._validateTypeAvailability(t3, e3); + (e3.isDeep || e3.forceTextReprocess) && t3.processText(true); + const n3 = t3; + if (t3.isBlank) { + if (t3.clearParseResult(), n3.isLiteralMode) if (n3.typeHasAssignableProperties && !t3.type.isCustomType) ; + else { + if (n3.shouldBeNoValue) return t3.options.isNonFlowLevelInheritingExpression ? this._addErrorOrWarning(e3, t3, f.facets.valueShouldBeUseFlowDefault, (0, r2.sprintf)(f.expression.invalidLiteralContext, t3.label)) : this._addErrorOrWarning(e3, t3, f.facets.valueShouldBeNoValue, (0, r2.sprintf)(f.expression.invalidLiteralContext, t3.label)); + if (!(0, c.areOptionsStringType)(t3.options) || !t3.options.allowEmpty) return t3.options.isOptional ? ((0, c.areOptionsStringType)(t3.options) && o.default.isString(t3.options.blankWarningText) && t3.options.blankWarningText.length && this._addErrorOrWarning(e3, t3, t3.options.blankWarningText, (0, r2.sprintf)(f.expression.invalidLiteralContext, t3.label), true), true) : this._addErrorOrWarning(e3, t3, f.facets.valueStringMinLengthOne, (0, r2.sprintf)(f.expression.invalidLiteralContext, t3.label)); + } + else if (n3.isVariableMode) { + if (n3.shouldBeNoValue || !t3.options.isOptional) return this._addErrorOrWarning(e3, t3, f.expression.noVariableSet, (0, r2.sprintf)(f.expression.notSetWithContext, t3.label)); + } else if (n3.isExpressionMode) return this._addErrorOrWarning(e3, t3, f.expression.notSet, (0, r2.sprintf)(f.expression.notSetWithContext, t3.label)); + } + if (!n3.mode || n3.isExpressionMode || n3.isBuilderMode || n3.isLiteralMode && t3.type.isCustomType) { + if (t3.hasError) { + if (!t3.isInternal) return this._addErrorOrWarning(e3, t3, void 0, (0, r2.sprintf)(f.errors.invalidValue, t3.label)); + e3.addError(t3, f.expression.internalErrorExpression, void 0, true); + } + return t3.hasWarning && this._addErrorOrWarning(e3, t3, void 0, t3.resultMessage, true), true; + } + if (n3.isLiteralMode) { + if (i3 && t3.clearParseResult(true), t3.options && t3.options.facets) { + const i4 = t3.options.facets.validateExpressionItem(t3.config, t3); + i4.isValid && !i4.isWarning || this._addErrorOrWarning(e3, t3, i4.message, t3.label ? (0, r2.sprintf)(l.default.facets.errorWithExpressionLabel, i4.message, t3.label) : i4.message, i4.isWarning); + } + if (n3.val && t3.type.isMatch(g.globalTypes.prompt, m.settings.exact)) { + const i4 = s.getItem(n3.val); + i4 && (i4.isMissingAudioOrTtsForLanguages(t3.parentFlow, t3.languages, n3) || this._addErrorOrWarning(e3, t3, t3.getPromptMissingResourcesErrorString(i4))); + } + if (t3.options && t3.options.customLiteralValidator) { + const i4 = t3.options.customLiteralValidator(t3); + i4 && ((0, d.areOptionsBooleanType)(t3.options) && t3.options.useCustomWarning ? this._addErrorOrWarning(e3, t3, null, i4, true) : this._addErrorOrWarning(e3, t3, i4, null)); + } + if (n3.val && t3.type.isMatch(g.globalTypes.prompt, m.settings.exact)) { + const e4 = s.getItem(n3.val); + e4 && t3.addVariableOrPromptReference(e4.expressionName); + } + return !t3.setLiteralError(!t3.type.validateLiteral(e3, n3)); + } + if (n3.isVariableMode) { + let o2; + if (i3 && t3.clearParseResult(), t3.parentFlow && (o2 = t3.parentFlow.variableGroup.getVariableFromExpression(n3), o2)) { + if (o2.isUnavailable) return this._addErrorOrWarning(e3, t3, (0, r2.sprintf)(f.expression.unavailableVariable, t3.text)); + if (n3.isOutput && o2.isReadOnly) return this._addErrorOrWarning(e3, t3, (0, r2.sprintf)(f.expression.variableIsReadOnly, o2.name)); + if (o2.isSecure && (!t3.options || !t3.options.allowSecure)) return this._addErrorOrWarning(e3, t3, (0, r2.sprintf)(f.expression.secureVariableUsageNotAllowed, o2.name)); + if (!t3.allowExpandedVariableReference(o2)) return this._addErrorOrWarning(e3, t3, f.audio.errorInvalidVariable); + } + const a2 = n3.checkVariableModeType(); + return a2 ? this._addErrorOrWarning(e3, t3, a2) : !!t3.type.validateVariable(e3, n3) && (!(t3.text && !o2 && t3.isEmpty) || this._addErrorOrWarning(e3, t3, f.expression.noVariableSet)); + } + return !n3.isNoValueMode || (t3.clearParseResult(), true); + } + _validateTypeAvailability(e3, t3) { + const i3 = e3.type.getFlowTypesUnavailableForExpression(e3); + if (!i3 || 0 === i3.length) return true; + let n3, o2; + if (e3.parentFlow.definition.hasDestinationFlowTypes && !e3.parentFlow.isEmbeddedFlow) { + const t4 = e3.parentFlow.destinationFlowTypes.filter((e4) => i3.indexOf(e4) >= 0); + if (e3.isOptional && (null == t4 ? void 0 : t4.length)) return true; + o2 = n3 = (0, r2.sprintf)(f.expression.unavailableDataTypeForFlowTypes, e3.type.displayString, u.getFlowTypesDisplayString(i3)); + } else n3 = (0, r2.sprintf)(f.expression.unavailableDataType, e3.type.displayString), o2 = e3.label ? (0, r2.sprintf)(f.expression.unavailableDataTypeWithContext, e3.type.displayString, e3.label) : n3; + return this._addErrorOrWarning(t3, e3, n3, o2), false; + } + }(), t2.default = t2.expressionParser; + }, 86855: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importDefault(i2(92140)), o = n2.__importStar(i2(99434)), a = i2(12457), s = n2.__importDefault(i2(5730)), l = i2(12179), u = n2.__importDefault(i2(97891)), d = n2.__importDefault(i2(41510)), c = i2(17604), p = i2(76869), _ = i2(47957); + class h extends s.default { + constructor(e3, t3) { + super(e3.parentFlow, e3), this._loadModel(t3); + } + getDetails() { + const e3 = this.variables ? this.variables.items : null; + if (e3 && e3.length) { + const t3 = [], i3 = []; + return r2.default.each(e3, (e4, n3) => { + if (!e4.variable || !e4.expression) return; + const r3 = o.getDisplayText(e4.expression); + t3.push(n3 + 1), i3.push((0, c.sprintf)(d.default.updateVariables.labelValue, e4.variable.text, r3)); + }), new a.ActionDetails(t3, i3); + } + return null; + } + static get managedProperties() { + return [{ property: "variables", variables: true, options: p.VariableOptions.create(), yamlOptions: h.createYamlOptions("variables", (e3) => e3.setPropertyName("statements")) }]; + } + validate(e3) { + const t3 = this.variables ? this.variables.items : null; + t3 && 0 !== t3.length || e3.addWarning(this, _.updateVariables.noStatementError), super.validate(e3); + } + } + h.info = u.default.createActionInfo({ actionClass: h, canBeInTask: true, canBeTreeNode: false, helpTopic: l.helpTopics.actions.updateVariables, modelClass: i2(73954), name: _.actions.updateVariables, scriptingName: "ArchActionUpdateData" }), t2.default = h; + }, 86875: (e2) => { + e2.exports = { askCommon: { invalidInputReceived: "Ce n'est pas valide.", noInputReceived: "Je n'ai re\xE7u aucune entr\xE9e." }, askForBoolean: { noInput: 'Dites "oui" pour continuer ou "non" pour quitter.', noMatch: 'R\xE9pondez par "Oui" ou "Non". Voulez-vous continuer ?', question: "Voulez-vous continuer ?", noInputDigitalBot: 'Saisissez "Yes" si vous souhaitez continuer ou "No" si vous ne le souhaitez pas.', noMatchDigitalBot: 'Saisissez "Yes" ou "No". Souhaitez-vous continuer\xA0?' }, askForIntent: { noInput: 'Dites simplement une phrase courte d\xE9crivant votre requ\xEAte, p. ex. "Check my account balance"', noMatch: "Dites-moi de nouveau ce que vous souhaitez faire.", question: "Que souhaitez-vous faire ?", noInputDigitalBot: 'Saisissez une courte phrase d\xE9crivant votre requ\xEAte. Par exemple, "Check my account balance"' }, askForSlot: { askFor: "Demander %1$s", noInput: "Dites ou entrez (sp\xE9cifier le nom de l'emplacement ici).", noInputWithSlot: "Dites ou entrez %1$s.", noMatch: "Donnez de nouveau (entrer le nom de l'emplacement ici).", noMatchWithSlot: "Donnez-moi %1$s de nouveau.", question: "Qu'est-ce que (entrer le nom de l'emplacement ici) ?", questionWithSlot: "Qu'est-ce que %1$s ?", pleaseEnterSlotNameHere: "(entrer le nom de l'emplacement ici)", noInputDigitalBot: "Saisissez (indiquez votre nom d'emplacement ici).", noInputWithSlotDigitalBot: "Saisissez %1$s.", continuationPromptWithSlot: "J'ai {{Slot.%1$s}} pour le moment. Continuez" }, askForNextSlot: { noInput: `Dites "oui" si vous avez une autre demande ou "non" pour terminer l'appel.`, noMatch: 'Dites "Oui" si vous avez une autre demande ou "Non" pour terminer la session.', question: "Y a-t-il autre chose que je puisse faire pour vous\xA0?", noInputDigitalBot: 'Saisissez "Yes" si vous avez une autre requ\xEAte ou "No" pour terminer la session.', noMatchDigitalBot: 'Saisissez "Yes" si vous avez une autre requ\xEAte ou "No" pour terminer la session.' }, askForPayment: { noInputDigitalBot: "Fournissez vos informations de paiement pour continuer.", noMatchDigitalBot: "Je n'ai pas compris votre r\xE9ponse. R\xE9essayez." }, askForAuthentication: { noInputDigitalBot: "Fournissez vos informations d'authentification pour continuer.", noMatchDigitalBot: "Je n'ai pas compris votre r\xE9ponse. R\xE9essayez." }, askSurveyQuestion: { notApplicable: "Non applicable", surveyAnswerOptionSequence: "Appuyez sur %1$s pour %2$s", surveyAnswerNotApplicableSequence: "Appuyez sur \xC9toile pour Non applicable.", surveyAnswerNotApplicableWithQuestionSequence: "%1$s. Appuyez sur \xC9toile pour Non applicable.", voiceSurveyNoInputText: "R\xE9pondez \xE0 la question.", voiceSurveyNoMatchText: "Je n'ai pas compris." }, commonModule: { exitCommonModule: "Quitter le module commun" }, form: { noInputDigitalBot: "Renseignez le formulaire pour continuer.", noMatchDigitalBot: "Renseignez le formulaire pour continuer." }, messagingTemplate: { noInputDigitalBot: "S\xE9lectionnez une des options disponibles.", noMatchDigitalBot: "S\xE9lectionnez une des options disponibles." }, knowledgeSettings: { knowledgeAnswerHighlightFlowProgressionDefault: "Continuer", knowledgeAnswerHighlightFullArticleDefault: "Afficher l'article complet", knowledgeInitialResponseMulti: "Pour m'aider \xE0 mieux comprendre votre objectif, choisissez un num\xE9ro dans la liste suivante\xA0:", knowledgeInitialResponseMultiRetry: "Choisissez un num\xE9ro, par exemple '1'.\nVoici la liste des options\xA0:", knowledgeNoMatch: "Aucun(e)", knowledgeConfirmation: "Est-ce la r\xE9ponse \xE0 votre question\xA0?", knowledgeFollowup: "J'esp\xE8re que j'ai r\xE9pondu \xE0 votre question. Vous pouvez demander quoi que ce soit d'autre que vous souhaitiez savoir." }, noOverlay: { intent: { intentConfirmationStr1: "Voulez-vous vraiment", intentConfirmationStr2: "Est-ce correct ?" }, youSaid: { youSaidConfirmationStr1: "Vous avez dit", youSaidConfirmationStr2: "Est-ce correct ?", youSaidConfirmationStr1DigitalBot: "Vous avez saisi" }, noInput: { noInputStr1: "Dites ou entrez", noInputStr1DigitalBot: "Saisissez" }, noMatch: { noMatchStr1: "Donnez-moi" }, whatIs: { whatIsQuestionStr1: "Qu'est-ce", whatIsQuestionStr2: "?" }, iGotContinuation: { iGotContinuationStr1: "J'ai", iGotContinuationStr2: "pour le moment. Continuez" } }, defaultCallFlowOne: "Flux d'appel par d\xE9faut", errorHandlingAgentEscalationConfirmation: "Vous voulez parler \xE0 un conseiller, c'est exact ?", errorHandlingAgentEscalationHandover: "Merci de patienter pendant que je vous transf\xE8re \xE0 un agent.", errorHandlingErrorEventHandover: "Une erreur s'est produite. Merci de patienter pendant que je vous transf\xE8re \xE0 un agent.", errorHandlingErrorEventHandoverVoiceSurvey: "Une erreur s'est produite. Au revoir\xA0!", errorHandlingRecognitionEventHandover: "D\xE9sol\xE9, j'ai du mal \xE0 vous comprendre. Merci de patienter pendant que je vous transf\xE8re \xE0 un agent.", errorHandlingRecognitionEventHandoverVoiceSurvey: "Je n'arrive pas \xE0 vous comprendre. Toutes nos excuses. Au revoir\xA0!", errorHandlingTTS: "Une erreur s'est produite. Veuillez r\xE9essayer.", initialGreetingTTS: "Bonjour. Ceci est l'annonce initiale.", initialState: "Statut initial", initialBotState: "Bot par d\xE9faut", initialDigitalBotState: "Annonce d'accueil", initialSurveyBotState: "Bot d'enqu\xEAte", intentConfirmation: "Je pense que vous souhaitez %1$s. Est-ce correct ?", mainMenu: "Menu principal", mainMenuTTS: "Vous \xEAtes au menu principal. Faites le 9 pour vous d\xE9connecter.", mainTask: "T\xE2che", settingsConfirmationNoInputApology: "D\xE9sol\xE9, je n'ai pas entendu ce que vous avez dit. R\xE9pondez par oui ou non.", settingsConfirmationNoInputApologyDigitalBot: `D\xE9sol\xE9, je n'ai re\xE7u aucune entr\xE9e de votre part. Saisissez "Yes" ou "No".`, settingsConfirmationNoMatchApology: "D\xE9sol\xE9, r\xE9pondez par oui ou non.", settingsConfirmationNoMatchApologyDigitalBot: 'D\xE9sol\xE9, saisissez "Yes" ou "No".', settingsNoInputApology: "D\xE9sol\xE9, je n'ai pas entendu ce que vous avez dit.", settingsNoInputApologyDigitalBot: "D\xE9sol\xE9, je n'ai re\xE7u aucune entr\xE9e de votre part.", settingsEndOfSessionMessageDigitalBot: "Cela fait un moment que je n'ai pas eu de vos nouvelles. Je ferme donc ce chat. Si vous avez de nouveau besoin de mon aide, n'h\xE9sitez pas \xE0 revenir. Merci.", settingsNoMatchApology: "D\xE9sol\xE9 !", settingsNoToConfirmationApology: "C'est une erreur de ma part.", periodicStateName: "Statut r\xE9current" }; + }, 86977: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importDefault(i2(81104)), o = n2.__importDefault(i2(4612)), a = n2.__importDefault(i2(18184)), s = n2.__importDefault(i2(74299)), l = n2.__importDefault(i2(57612)), u = n2.__importDefault(i2(24886)), d = n2.__importDefault(i2(21273)), c = n2.__importDefault(i2(14517)), p = n2.__importDefault(i2(74535)), _ = n2.__importDefault(i2(26567)), h = n2.__importDefault(i2(55167)), m = n2.__importDefault(i2(67010)), g = n2.__importDefault(i2(10673)), f = n2.__importDefault(i2(12384)), T = n2.__importDefault(i2(5482)), y = n2.__importDefault(i2(40721)), S = n2.__importDefault(i2(18381)), A = n2.__importDefault(i2(93975)), N = n2.__importDefault(i2(45524)), O = n2.__importDefault(i2(25609)), I = n2.__importDefault(i2(19496)), v = n2.__importDefault(i2(50419)), C = { ArchFlowBot: r2.default, ArchFlowCommonModule: o.default, ArchFlowDigitalBot: a.default, ArchFlowEmailSend: s.default, ArchFlowInboundCall: l.default, ArchFlowInboundChat: u.default, ArchFlowInfo: d.default, ArchFlowInfoVersion: c.default, ArchFlowInfoBasic: p.default, ArchFlowInQueueCall: _.default, ArchFlowInQueueEmail: h.default, ArchFlowInQueueShortMessage: m.default, ArchFlowOutboundCall: g.default, ArchFlowSecureCall: f.default, ArchFlowInboundEmail: T.default, ArchFlowInboundShortMessage: y.default, ArchFlowSurveyInvite: S.default, ArchFlowVoice: A.default, ArchFlowVoicemail: N.default, ArchFlowVoiceSurvey: O.default, ArchFlowWorkflow: I.default, ArchFlowWorkitem: v.default }; + t2.default = C; + }, 86991: (e2, t2, i2) => { + const n2 = i2(92289), r2 = i2(36019).default; + function o() { + } + const a = new o(); + o.prototype.connect = r2.request("POST", "{public-api.apps}/api/v2/auth/sessions", n2), o.prototype.disconnect = r2.request("DELETE", "{public-api.apps}/api/v2/auth/sessions/{id}"), e2.exports = a; + }, 87016: (e2) => { + "use strict"; + e2.exports = require("url"); + }, 87022: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.SkillType = void 0; + const n2 = i2(31635), r2 = i2(71056), o = i2(79069), a = i2(27491), s = n2.__importDefault(i2(22226)), l = i2(80428), u = i2(14394), d = i2(94765); + class c extends d.ExpressionType { + constructor(e3, t3, i3) { + super(e3, t3, i3); + } + get className() { + return "SkillType"; + } + createExpressionOptionClass() { + return new r2.ExpressionTypeNetworkObjectOptions(this.isCollection); + } + canConvertLitToExpression(e3) { + return a.expressionDataService.isFunctionTextAvailableForFlowTypeAndOperandTypes("FindSkill", e3, [u.globalTypes.string]); + } + convertLitToExpression(e3, t3) { + return t3 && this.canConvertLitToExpression(e3) ? `FindSkill(${s.default.getQuotedExpressionStringLiteral(t3)})` : ""; + } + get listManager() { + return o.skillManager; + } + } + t2.SkillType = c, c.typeIdentifier = l.expressionTypeNames.skill; + }, 87083: (e2, t2, i2) => { + "use strict"; + var n2 = i2(71447), r2 = i2(9805), o = i2(41996), a = i2(19681), s = i2(54674), l = i2(44442), u = i2(37414), d = Object.prototype.toString; + function c(e3) { + if (!(this instanceof c)) return new c(e3); + this.options = r2.assign({ chunkSize: 16384, windowBits: 0, to: "" }, e3 || {}); + var t3 = this.options; + t3.raw && t3.windowBits >= 0 && t3.windowBits < 16 && (t3.windowBits = -t3.windowBits, 0 === t3.windowBits && (t3.windowBits = -15)), !(t3.windowBits >= 0 && t3.windowBits < 16) || e3 && e3.windowBits || (t3.windowBits += 32), t3.windowBits > 15 && t3.windowBits < 48 && (15 & t3.windowBits || (t3.windowBits |= 15)), this.err = 0, this.msg = "", this.ended = false, this.chunks = [], this.strm = new l(), this.strm.avail_out = 0; + var i3 = n2.inflateInit2(this.strm, t3.windowBits); + if (i3 !== a.Z_OK) throw new Error(s[i3]); + if (this.header = new u(), n2.inflateGetHeader(this.strm, this.header), t3.dictionary && ("string" == typeof t3.dictionary ? t3.dictionary = o.string2buf(t3.dictionary) : "[object ArrayBuffer]" === d.call(t3.dictionary) && (t3.dictionary = new Uint8Array(t3.dictionary)), t3.raw && (i3 = n2.inflateSetDictionary(this.strm, t3.dictionary)) !== a.Z_OK)) throw new Error(s[i3]); + } + function p(e3, t3) { + var i3 = new c(t3); + if (i3.push(e3, true), i3.err) throw i3.msg || s[i3.err]; + return i3.result; + } + c.prototype.push = function(e3, t3) { + var i3, s2, l2, u2, c2, p2 = this.strm, _ = this.options.chunkSize, h = this.options.dictionary, m = false; + if (this.ended) return false; + s2 = t3 === ~~t3 ? t3 : true === t3 ? a.Z_FINISH : a.Z_NO_FLUSH, "string" == typeof e3 ? p2.input = o.binstring2buf(e3) : "[object ArrayBuffer]" === d.call(e3) ? p2.input = new Uint8Array(e3) : p2.input = e3, p2.next_in = 0, p2.avail_in = p2.input.length; + do { + if (0 === p2.avail_out && (p2.output = new r2.Buf8(_), p2.next_out = 0, p2.avail_out = _), (i3 = n2.inflate(p2, a.Z_NO_FLUSH)) === a.Z_NEED_DICT && h && (i3 = n2.inflateSetDictionary(this.strm, h)), i3 === a.Z_BUF_ERROR && true === m && (i3 = a.Z_OK, m = false), i3 !== a.Z_STREAM_END && i3 !== a.Z_OK) return this.onEnd(i3), this.ended = true, false; + p2.next_out && (0 !== p2.avail_out && i3 !== a.Z_STREAM_END && (0 !== p2.avail_in || s2 !== a.Z_FINISH && s2 !== a.Z_SYNC_FLUSH) || ("string" === this.options.to ? (l2 = o.utf8border(p2.output, p2.next_out), u2 = p2.next_out - l2, c2 = o.buf2string(p2.output, l2), p2.next_out = u2, p2.avail_out = _ - u2, u2 && r2.arraySet(p2.output, p2.output, l2, u2, 0), this.onData(c2)) : this.onData(r2.shrinkBuf(p2.output, p2.next_out)))), 0 === p2.avail_in && 0 === p2.avail_out && (m = true); + } while ((p2.avail_in > 0 || 0 === p2.avail_out) && i3 !== a.Z_STREAM_END); + return i3 === a.Z_STREAM_END && (s2 = a.Z_FINISH), s2 === a.Z_FINISH ? (i3 = n2.inflateEnd(this.strm), this.onEnd(i3), this.ended = true, i3 === a.Z_OK) : s2 !== a.Z_SYNC_FLUSH || (this.onEnd(a.Z_OK), p2.avail_out = 0, true); + }, c.prototype.onData = function(e3) { + this.chunks.push(e3); + }, c.prototype.onEnd = function(e3) { + e3 === a.Z_OK && ("string" === this.options.to ? this.result = this.chunks.join("") : this.result = r2.flattenChunks(this.chunks)), this.chunks = [], this.err = e3, this.msg = this.strm.msg; + }, t2.Inflate = c, t2.inflate = p, t2.inflateRaw = function(e3, t3) { + return (t3 = t3 || {}).raw = true, p(e3, t3); + }, t2.ungzip = p; + }, 87115: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = i2(30801), o = n2.__importDefault(i2(11210)); + class a extends o.default { + constructor(e3) { + super(e3), this._targetUser = this.coreFactory.createArchWrapper(e3.user); + } + get _actionTypeId() { + return r2.playUserGreetingActionType; + } + get displayTypeName() { + return this._scriptingName; + } + get isArchActionPlayUserGreeting() { + return true; + } + get targetUser() { + return this._targetUser; + } + } + t2.default = a; + }, 87129: (e2, t2, i2) => { + const n2 = i2(28730), { repeatMenuActionType: r2 } = i2(30801); + function o() { + o.baseConstructor.apply(this, arguments); + } + n2.extend(o, r2, true), e2.exports = o; + }, 87145: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = { ArchDivision: i2(31635).__importDefault(i2(69014)).default }; + t2.default = n2; + }, 87200: (e2, t2, i2) => { + const n2 = i2(35515), r2 = i2(84940), o = i2(36019).default, a = i2(29526); + function s() { + } + const l = new s(); + s.prototype.featureToggles = o.request("GET", "{public-api.apps}/api/v2/featuretoggles", r2), s.prototype.orgInfo = o.request("GET", "{public-api.apps}/api/v2/organizations/me", r2), s.prototype.getTimeZones = o.request("GET", "{public-api.apps}/api/v2/telephony/providers/edges/timezones?pageSize=1000", a), s.prototype.getAuthToken = o.request("POST", "{auth}/token", r2), s.prototype.mainAppHtml = o.request("GET", n2.values.local ? "http://" + window.location.host : "{purecloud.uri}/architect"), s.prototype.reportError = o.request("POST", "{public-api.apps}/api/v2/diagnostics/support"), s.prototype.trace = o.request("POST", "{public-api.apps}/api/v2/diagnostics/trace", null), l.featureToggles.addOptions({ ignoreBadResponse: true, allowRequestChunking: true, chunkingParamName: "feature", chunkResultsHandling: "chunkResponseToKeyValue" }), l.trace.addOptions({ ignoreTimeouts: true, ignoreBadResponse: true, suppressSuccessTrace: true }), l.orgInfo.addOptions({ ignoreBadResponse: true }), l.mainAppHtml.addOptions({ ignoreBadResponse: true }), e2.exports = l; + }, 87281: function(e2, t2, i2) { + "use strict"; + var n2 = this && this.__generator || function(e3, t3) { + var i3, n3, r3, o2, a2 = { label: 0, sent: function() { + if (1 & r3[0]) throw r3[1]; + return r3[1]; + }, trys: [], ops: [] }; + return o2 = { next: s2(0), throw: s2(1), return: s2(2) }, "function" == typeof Symbol && (o2[Symbol.iterator] = function() { + return this; + }), o2; + function s2(o3) { + return function(s3) { + return (function(o4) { + if (i3) throw new TypeError("Generator is already executing."); + for (; a2; ) try { + if (i3 = 1, n3 && (r3 = 2 & o4[0] ? n3.return : o4[0] ? n3.throw || ((r3 = n3.return) && r3.call(n3), 0) : n3.next) && !(r3 = r3.call(n3, o4[1])).done) return r3; + switch (n3 = 0, r3 && (o4 = [2 & o4[0], r3.value]), o4[0]) { + case 0: + case 1: + r3 = o4; + break; + case 4: + return a2.label++, { value: o4[1], done: false }; + case 5: + a2.label++, n3 = o4[1], o4 = [0]; + continue; + case 7: + o4 = a2.ops.pop(), a2.trys.pop(); + continue; + default: + if (!((r3 = (r3 = a2.trys).length > 0 && r3[r3.length - 1]) || 6 !== o4[0] && 2 !== o4[0])) { + a2 = 0; + continue; + } + if (3 === o4[0] && (!r3 || o4[1] > r3[0] && o4[1] < r3[3])) { + a2.label = o4[1]; + break; + } + if (6 === o4[0] && a2.label < r3[1]) { + a2.label = r3[1], r3 = o4; + break; + } + if (r3 && a2.label < r3[2]) { + a2.label = r3[2], a2.ops.push(o4); + break; + } + r3[2] && a2.ops.pop(), a2.trys.pop(); + continue; + } + o4 = t3.call(e3, a2); + } catch (e4) { + o4 = [6, e4], n3 = 0; + } finally { + i3 = r3 = 0; + } + if (5 & o4[0]) throw o4[1]; + return { value: o4[0] ? o4[1] : void 0, done: true }; + })([o3, s3]); + }; + } + }; + Object.defineProperty(t2, "__esModule", { value: true }), t2.generate = void 0; + var r2 = i2(87699), o = i2(68596), a = i2(35884), s = i2(36805); + t2.generate = function(e3, t3, i3, l, u) { + var d, c, p, _; + function h() { + var e4; + return n2(this, function(n3) { + switch (n3.label) { + case 0: + e4 = _, n3.label = 1; + case 1: + return t3 && !t3(e4) ? [3, 4] : [4, p(e4)]; + case 2: + n3.sent(), n3.label = 3; + case 3: + return e4 = i3(e4), [3, 1]; + case 4: + return [2]; + } + }); + } + return 1 === arguments.length ? (_ = (d = e3).initialState, t3 = d.condition, i3 = d.iterate, c = d.resultSelector, p = void 0 === c ? r2.identity : c, u = d.scheduler) : (_ = e3, !l || o.isScheduler(l) ? (p = r2.identity, u = l) : p = l), a.defer(u ? function() { + return s.scheduleIterable(h(), u); + } : h); + }; + }, 87290: (e2, t2, i2) => { + function n2() { + this.bot = void 0, this.id = void 0, this.language = void 0, this.name = void 0, this.status = void 0, this.intents = void 0, n2.baseConstructor.apply(this, arguments); + } + i2(45214).extend(n2, "LexAlias"), Object.defineProperties(n2.prototype, { label: { get: function() { + return this.aliasName; + }, set: function(e3) { + this.aliasName = e3; + } } }), e2.exports = n2; + }, 87321: (e2, t2, i2) => { + "use strict"; + const n2 = i2(31635), r2 = i2(17604), o = i2(67607), a = n2.__importStar(i2(98442)), s = i2(12179), l = n2.__importDefault(i2(97891)), u = n2.__importDefault(i2(5730)), d = i2(80428), c = i2(47957); + class p extends u.default { + static get managedProperties() { + return [{ label: c.transcription.enableTranscription, options: o.ExpressionTypeBooleanOptions.create((e3) => e3.setDefaultText("true").setDescriptionInfo(c.transcription.enableTranscription, c.transcription.enableTranscriptionDescription).setIninTestingField("enableTranscription").setBoolText(c.boolean.enabled, c.boolean.disabled)), property: "enableTranscription", type: d.expressionTypeNames.boolean }]; + } + constructor(e3, t3) { + super(e3.parentFlow, e3), this._loadModel(t3); + } + validate(e3) { + const t3 = []; + Object.values(this.parentFlow.supportedLanguageOptions).forEach((e4) => { + this.parentFlow.destinationFlowTypes.some((t4) => !a.supportsTranscriptionForFlowType(e4.language, t4)) && t3.push(e4.language); + }), t3.length > 0 && e3.addWarning(this, (0, r2.sprintf)(c.transcription.notValidForLanguages, a.getLanguageNameAndCodeDisplay(t3))), super.validate(e3); + } + } + p.info = l.default.createActionInfo({ actionClass: p, canBeInTask: true, helpTopic: s.helpTopics.actions.transcription, modelClass: i2(84195), name: c.actions.transcription, scriptingName: "ArchActionTranscription" }), t2.A = p; + }, 87333: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importStar(i2(36781)), o = n2.__importStar(i2(58380)), a = n2.__importDefault(i2(92140)); + class s { + constructor(e3, t3) { + Object.defineProperties(this, { _attemptCounter: { value: 0, writable: true }, _checkIntervalMs: { value: a.default.isActualNumber(t3) && t3 > 0 ? t3 : 35, writable: true }, _callbackFunction: { value: e3, writable: true } }), this._processCallbackAttempt(); + } + static create(e3, t3) { + if (a.default.isFunction(e3)) return new s(e3, t3); + } + _processCallbackAttempt() { + this._timeoutVal = setTimeout(() => n2.__awaiter(this, void 0, void 0, function* () { + if (!this._callbackFunction) return; + let e3 = !o.isFiringEvents() && !r2.isFiringEvents(); + if (e3 || (this._attemptCounter++, this._attemptCounter >= 30 && (e3 = true)), e3) try { + yield this._callbackFunction(); + } catch (e4) { + } finally { + this.destroy(); + } + else this._processCallbackAttempt(); + }), this._checkIntervalMs); + } + destroy() { + this._attemptCounter = void 0, this._callbackFunction = void 0, clearInterval(this._timeoutVal); + } + } + t2.default = s; + }, 87340: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importDefault(i2(92140)), o = n2.__importDefault(i2(33923)); + class a extends o.default { + constructor(e3, t3) { + super(e3, t3); + } + get className() { + return "ContainedDataPairList"; + } + getConfiguration(e3, t3, i3) { + if (null == t3 ? void 0 : t3.isForFlowYaml) { + const n3 = {}; + return r2.default.each(this.contents, (o2) => { + r2.default.extend(n3, o2.getConfiguration(e3, t3, i3)); + }), r2.default.ensureYamlNoneTrue(n3), r2.default.tryWrapObject(n3, this.name); + } + return this.model; + } + get name() { + return this.model.name; + } + get isContainedDataPairList() { + return true; + } + } + t2.default = a; + }, 87392: (e2, t2, i2) => { + function n2() { + this.worktype = void 0, this.customFieldsDataTypeId = void 0, this.customFieldsSchemaId = void 0, this.customFieldsSchemaName = void 0, n2.baseConstructor.apply(this, arguments); + } + i2(45214).extend(n2, "WorkitemFlowSettings"), Object.defineProperties(n2.prototype, { pasteReIdOrRename: { value: function(e3) { + n2._super.pasteReIdOrRename.apply(this, arguments); + } }, pasteResolveOldToNewValues: { value: function(e3) { + n2._super.pasteResolveOldToNewValues.apply(this, arguments); + } } }), e2.exports = n2; + }, 87459: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.getDataTableDivisionView = t2.getDataTable = t2.getDataTablesDivisionView = t2.getDataTables = void 0; + const n2 = i2(31635), r2 = n2.__importDefault(i2(46400)), o = i2(74156), a = n2.__importDefault(i2(36019)); + t2.getDataTables = a.default.request("GET", "{public-api.apps}/api/v2/flows/datatables", o.DataTableList, { ignoreBadResponse: true }), t2.getDataTablesDivisionView = a.default.request("GET", "{public-api.apps}/api/v2/flows/datatables/divisionviews", o.DataTableList, { ignoreBadResponse: true }), t2.getDataTable = a.default.request("GET", "{public-api.apps}/api/v2/flows/datatables/{id}?expand=schema", r2.default, { ignoreBadResponse: true }), t2.getDataTableDivisionView = a.default.request("GET", "{public-api.apps}/api/v2/flows/datatables/divisionviews/{id}?expand=schema", r2.default, { ignoreBadResponse: true }); + }, 87532: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(20692)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "timeslotCollection"; + } + get displayTypeName() { + return "ArchVariableTimeslotCollection"; + } + get initialValue() { + return this._initialValue; + } + get isArchVariableTimeslotCollection() { + return true; + } + } + t2.default = r2; + }, 87644: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(84655)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "chooser"; + } + get initialValue() { + return this._initialValue; + } + get displayTypeName() { + return "ArchVariableChooser"; + } + get isArchVariableChooser() { + return true; + } + } + t2.default = r2; + }, 87675: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.DataTypeDefValidationError = void 0; + const n2 = i2(31635), r2 = n2.__importDefault(i2(92140)), o = i2(77105), a = n2.__importDefault(i2(71538)), s = n2.__importDefault(i2(89034)), l = n2.__importDefault(i2(65498)), u = n2.__importDefault(i2(13140)), d = i2(13140), c = i2(13140), p = i2(13140), _ = i2(89917), h = n2.__importDefault(i2(65302)); + var m; + !(function(e3) { + e3.propDataTypeIdInvalid = "propDataTypeIdInvalid", e3.propDataTypeNotAvailableInFlow = "propDataTypeNotAvailableInFlow"; + })(m || (t2.DataTypeDefValidationError = m = {})); + class g extends s.default { + constructor(e3) { + super(), this._dataTypeDef = e3; + } + get className() { + return "DataTypeDefViewModel"; + } + _canDelete() { + return !this.hasUsages; + } + get hasUsages() { + return !!this.usages && !r2.default.isEmpty(this.usages); + } + isInUse() { + return !this.canDelete(); + } + static createEmptyDataTypeDef() { + return new g(new a.default()); + } + static createAndPopulateRootPropertiesFromJsonSchema(e3) { + const t3 = g.createEmptyDataTypeDef(); + return t3._dataTypeDef.populateRootPropertiesFromJsonSchema(e3), t3; + } + static createFromPropertyDefinition(e3) { + var t3, i3, n3; + const r3 = new a.default(); + return r3.id = e3.id, r3.dataTypeId = (null === (i3 = null === (t3 = e3.type) || void 0 === t3 ? void 0 : t3.singletonType) || void 0 === i3 ? void 0 : i3.expressionType) || (null === (n3 = e3.type) || void 0 === n3 ? void 0 : n3.expressionType), r3.allowableValues = e3.allowableValues, r3.description = e3.description, r3.isCollection = e3.isCollection, r3.isRequired = e3.isRequired, r3.readOnly = e3.isReadOnly, r3.minLength = e3.minLength, r3.maxLength = e3.maxLength, r3.minValue = e3.minValue, r3.minValueInclusive = e3.minValueInclusive, r3.maxValue = e3.maxValue, r3.maxValueInclusive = e3.maxValueInclusive, r3.minItems = e3.minItems, r3.maxItems = e3.maxItems, r3.name = e3.name, new g(r3); + } + static createFromPropertyParams(e3, t3, i3, n3, r3) { + var a2, s2, l2; + const u2 = { id: t3, name: t3, type: i3, isCollection: null !== (a2 = null == r3 ? void 0 : r3.isCollection) && void 0 !== a2 && a2, isRequired: null !== (s2 = null == r3 ? void 0 : r3.isRequired) && void 0 !== s2 && s2, readOnly: null !== (l2 = null == r3 ? void 0 : r3.isReadOnly) && void 0 !== l2 && l2, minLength: null == r3 ? void 0 : r3.minLength, maxLength: null == r3 ? void 0 : r3.maxLength, minValue: null == r3 ? void 0 : r3.minValue, minValueInclusive: null == r3 ? void 0 : r3.minValueInclusive, maxValue: null == r3 ? void 0 : r3.maxValue, maxValueInclusive: null == r3 ? void 0 : r3.maxValueInclusive, minItems: null == r3 ? void 0 : r3.minItems, maxItems: null == r3 ? void 0 : r3.maxItems, allowableValues: null == r3 ? void 0 : r3.allowableValues }, d2 = new o.PropertyDefinition(e3, u2, n3); + return g.createFromPropertyDefinition(d2); + } + static validateDataTypeDefsForCreation(e3, t3) { + const i3 = { errors: [] }, n3 = {}; + for (const e4 of t3) n3[e4.id] = true; + const r3 = h.default.getTypeGroup(e3); + for (const o2 of t3) for (const t4 of o2.propertiesSnapshot) if (n3[t4.dataTypeId]) ; + else { + const n4 = r3.getType(t4.dataTypeId, t4.isCollection); + n4 ? n4.isAvailableForFlow(e3) || i3.errors.push({ error: m.propDataTypeNotAvailableInFlow, customDataTypeDef: o2, propDataTypeDef: t4, propDataType: n4 }) : i3.errors.push({ error: m.propDataTypeIdInvalid, customDataTypeDef: o2, propDataTypeDef: t4 }); + } + return i3; + } + get isDataTypeDefViewModel() { + return true; + } + get allowableValues() { + return this._dataTypeDef.allowableValues; + } + set allowableValues(e3) { + this._dataTypeDef.allowableValues = e3; + } + get dataTypeId() { + return this._dataTypeDef.dataTypeId; + } + set dataTypeId(e3) { + this._dataTypeDef.dataTypeId = e3; + } + get description() { + return this._dataTypeDef.description; + } + set description(e3) { + this._dataTypeDef.description = e3; + } + get id() { + return this._dataTypeDef.id; + } + set id(e3) { + this._dataTypeDef.id = e3; + } + get name() { + return this._dataTypeDef.name; + } + set name(e3) { + this._dataTypeDef.name = e3; + } + get customJsonIdentifierInfo() { + return this._customJsonIdentifierInfo || (this._customJsonIdentifierInfo = _.CustomJsonIdentifierInfo.create(this.dataTypeId)), this._customJsonIdentifierInfo; + } + get namespace() { + return this.customJsonIdentifierInfo.namespace; + } + get additionalProperties() { + return this._dataTypeDef.additionalProperties; + } + set additionalProperties(e3) { + this._dataTypeDef.additionalProperties = !!e3; + } + get isCollection() { + return !!this._dataTypeDef.isCollection; + } + set isCollection(e3) { + this._dataTypeDef.isCollection = !!e3; + } + get isRequired() { + return !!this._dataTypeDef.isRequired; + } + set isRequired(e3) { + this._dataTypeDef.isRequired = !!e3; + } + get readOnly() { + return !!this._dataTypeDef.readOnly; + } + set readOnly(e3) { + this._dataTypeDef.readOnly = !!e3; + } + get isReadOnly() { + return this.readOnly; + } + set isReadOnly(e3) { + this.readOnly = e3; + } + get minItems() { + return this._dataTypeDef.minItems; + } + set minItems(e3) { + this._dataTypeDef.minItems = e3; + } + get maxItems() { + return this._dataTypeDef.maxItems; + } + set maxItems(e3) { + this._dataTypeDef.maxItems = e3; + } + get minLength() { + return this._dataTypeDef.minLength; + } + set minLength(e3) { + this._dataTypeDef.minLength = e3; + } + get maxLength() { + return this._dataTypeDef.maxLength; + } + set maxLength(e3) { + this._dataTypeDef.maxLength = e3; + } + get minValue() { + return this._dataTypeDef.minValue; + } + set minValue(e3) { + this._dataTypeDef.minValue = e3; + } + set minValueInclusive(e3) { + this._dataTypeDef.minValueInclusive = e3; + } + get minValueInclusive() { + return this._dataTypeDef.minValueInclusive; + } + get maxValue() { + return this._dataTypeDef.maxValue; + } + set maxValue(e3) { + this._dataTypeDef.maxValue = e3; + } + get maxValueInclusive() { + return this._dataTypeDef.maxValueInclusive; + } + set maxValueInclusive(e3) { + this._dataTypeDef.maxValueInclusive = e3; + } + get hasProperties() { + var e3, t3; + return (null === (t3 = null === (e3 = this._dataTypeDef) || void 0 === e3 ? void 0 : e3.properties) || void 0 === t3 ? void 0 : t3.length) > 0; + } + get model() { + return this._dataTypeDef; + } + get propertiesSnapshot() { + var e3; + if (!(null === (e3 = this._dataTypeDef.properties) || void 0 === e3 ? void 0 : e3.length)) return []; + const t3 = []; + for (const e4 of this._dataTypeDef.properties) t3.push(new g(e4)); + return t3; + } + addProperty(e3) { + e3 && (void 0 === this._dataTypeDef.properties && (this._dataTypeDef.properties = []), this._dataTypeDef.properties.push(e3._dataTypeDef)); + } + setProperties(e3) { + (null == e3 ? void 0 : e3.length) || (this._dataTypeDef.properties = void 0), this._dataTypeDef.properties = []; + for (const t3 of e3) this._dataTypeDef.properties.push(t3._dataTypeDef); + } + get propertiesMap() { + var e3; + if (!(null === (e3 = this._dataTypeDef.properties) || void 0 === e3 ? void 0 : e3.length)) return {}; + const t3 = {}; + for (const e4 of this._dataTypeDef.properties) t3[e4.name] = new g(e4); + return t3; + } + _addItemDiffResult(e3, t3, i3, n3, r3, o2, a2, s2, l2) { + const d2 = new u.default(e3.currentPath.join("/"), n3, i3, r3, t3, o2, s2, a2, l2); + switch (e3.diffResult.addDiff(d2), d2.diffResult) { + case c.DiffResult.doesNotMatch: + case c.DiffResult.moreRestrictive: + if (e3.diffResult.diffSettings.shortCircuitOnFirstMoreRestrictiveDiff) return false; + } + return true; + } + _compareBooleanFacets(e3, t3, i3, n3, r3) { + return n3 === r3 || this._addItemDiffResult(e3, i3, p.DiffType.isNotEqual, c.DiffResult.doesNotMatch, t3, n3, r3); + } + _compareStringFacets(e3, t3, i3, n3, r3) { + return n3 === r3 || this._addItemDiffResult(e3, i3, p.DiffType.isNotEqual, c.DiffResult.moreRestrictive, t3, n3, r3); + } + _compareNumericRangeFacets(e3, t3, i3, n3, r3, o2, a2, s2) { + if (void 0 === r3) return void 0 === n3 || this._addItemDiffResult(e3, i3, p.DiffType.valueNoLongerDefined, c.DiffResult.lessRestrictive, t3, n3, r3, a2, s2); + if (void 0 === n3) return this._addItemDiffResult(e3, i3, p.DiffType.valueNowDefined, c.DiffResult.moreRestrictive, t3, n3, r3, a2, s2); + if (n3 === r3) if (o2) { + if (s2 && !a2) return this._addItemDiffResult(e3, i3, p.DiffType.minValueIsLessThanInclusive, c.DiffResult.lessRestrictive, t3, n3, r3, a2, s2); + if (!s2 && a2) return this._addItemDiffResult(e3, i3, p.DiffType.minValueIsGreaterThanInclusive, c.DiffResult.moreRestrictive, t3, n3, r3, a2, s2); + } else { + if (s2 && !a2) return this._addItemDiffResult(e3, i3, p.DiffType.maxValueIsGreaterThanInclusive, c.DiffResult.lessRestrictive, t3, n3, r3, a2, s2); + if (!s2 && a2) return this._addItemDiffResult(e3, i3, p.DiffType.maxValueIsLessThanInclusive, c.DiffResult.moreRestrictive, t3, n3, r3, a2, s2); + } + else if (o2) { + if (r3 < n3) return this._addItemDiffResult(e3, i3, p.DiffType.minValueIsLessThan, c.DiffResult.lessRestrictive, t3, n3, r3, a2, s2); + if (r3 > n3) return this._addItemDiffResult(e3, i3, p.DiffType.minValueIsGreaterThan, c.DiffResult.moreRestrictive, t3, n3, r3, a2, s2); + } else { + if (r3 > n3) return this._addItemDiffResult(e3, i3, p.DiffType.maxValueIsGreaterThan, c.DiffResult.lessRestrictive, t3, n3, r3, a2, s2); + if (r3 < n3) return this._addItemDiffResult(e3, i3, p.DiffType.maxValueIsLessThan, c.DiffResult.moreRestrictive, t3, n3, r3, a2, s2); + } + return true; + } + _getDataTypeDefDiffs(e3, t3) { + const i3 = e3.diffResult.diffSettings; + if (i3.diffIds && !this._compareStringFacets(e3, d.DiffItem.property, "id", this.id, t3.id)) return false; + if (i3.diffDataTypeIds && !this._compareStringFacets(e3, d.DiffItem.property, "dataTypeId", this.dataTypeId, t3.dataTypeId)) return false; + if (!this._compareBooleanFacets(e3, d.DiffItem.property, "isCollection", this.isCollection, t3.isCollection)) return false; + if (!this._compareEnumFacets(e3, d.DiffItem.property, "isEnum", this.allowableValues, t3.allowableValues)) return false; + if (!this._compareNumericRangeFacets(e3, d.DiffItem.property, "minValue", this.minValue, t3.minValue, true, this.minValueInclusive, t3.minValueInclusive)) return false; + if (!this._compareNumericRangeFacets(e3, d.DiffItem.property, "maxValue", this.maxValue, t3.maxValue, false, this.maxValueInclusive, t3.maxValueInclusive)) return false; + if (!this._compareNumericRangeFacets(e3, d.DiffItem.property, "minLength", this.minLength, t3.minLength, true)) return false; + if (!this._compareNumericRangeFacets(e3, d.DiffItem.property, "maxLength", this.maxLength, t3.maxLength, false)) return false; + if (!this._compareNumericRangeFacets(e3, d.DiffItem.property, "minItems", this.minItems, t3.minItems, true)) return false; + if (!this._compareNumericRangeFacets(e3, d.DiffItem.property, "maxItems", this.maxItems, t3.maxItems, false)) return false; + const n3 = this.propertiesMap, r3 = t3.propertiesMap, o2 = Object.keys(n3).length, a2 = Object.keys(r3).length; + if (o2 > a2) { + if (!this._addItemDiffResult(e3, "", p.DiffType.removed, c.DiffResult.moreRestrictive, d.DiffItem.propertyCount, o2, a2)) return false; + } else if (o2 < a2 && !this._addItemDiffResult(e3, "", p.DiffType.addition, c.DiffResult.lessRestrictive, d.DiffItem.propertyCount, o2, a2)) return false; + const s2 = {}; + let l2 = 0; + for (const [t4, i4] of Object.entries(n3)) { + s2[t4] = true, l2++; + const n4 = r3[t4]; + if (!n4 && !this._addItemDiffResult(e3, t4, p.DiffType.removed, c.DiffResult.moreRestrictive, d.DiffItem.property, void 0, void 0)) return false; + try { + if (e3.currentPath.push(t4), !i4._getDataTypeDefDiffs(e3, n4)) return false; + } finally { + e3.currentPath.pop(); + } + } + if (l2 < a2) { + for (const t4 of Object.keys(r3)) if (!s2[t4] && !this._addItemDiffResult(e3, t4, p.DiffType.addition, c.DiffResult.lessRestrictive, d.DiffItem.property, void 0, void 0)) return false; + } + return true; + } + _compareEnumFacets(e3, t3, i3, n3, r3) { + if (void 0 === n3) return void 0 === r3 || this._addItemDiffResult(e3, i3, p.DiffType.valueNowDefined, c.DiffResult.lessRestrictive, t3, n3, r3); + if (void 0 === r3) return this._addItemDiffResult(e3, i3, p.DiffType.valueNoLongerDefined, c.DiffResult.moreRestrictive, t3, n3, r3); + if (n3.length > r3.length) return this._addItemDiffResult(e3, i3, p.DiffType.removed, c.DiffResult.moreRestrictive, t3, n3, r3); + if (n3.length < r3.length) return this._addItemDiffResult(e3, i3, p.DiffType.addition, c.DiffResult.lessRestrictive, t3, n3, r3); + for (let o2 = 0; o2 < n3.length; o2++) if (!r3.includes(n3[o2])) return this._addItemDiffResult(e3, i3, p.DiffType.removed, c.DiffResult.moreRestrictive, t3, n3, r3); + } + compareToAndGetDiffs(e3, t3) { + if (!e3) { + const t4 = new l.default(this, e3, void 0); + return t4.setNotComparableTo(), t4; + } + const i3 = { diffResult: new l.default(this, e3, t3 || { diffIds: true, diffDataTypeIds: true, shortCircuitOnFirstMoreRestrictiveDiff: true }), currentPath: ["#"] }; + return this._getDataTypeDefDiffs(i3, e3), i3.diffResult; + } + getExpressionTypeForFlow(e3) { + if (!e3) return; + const t3 = h.default.getTypeGroup(e3); + return t3 ? t3.getType(this.id, this.isCollection) : void 0; + } + } + t2.default = g; + }, 87699: (e2, t2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.identity = void 0, t2.identity = function(e3) { + return e3; + }; + }, 87719: (e2, t2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.default = class { + constructor(e3, t3, i2) { + this._hasPermission = e3, this._shiroString = t3, this._noPermissionDisplayString = i2; + } + get results() { + return this.hasPermission; + } + get hasPermission() { + return this._hasPermission; + } + get lacksPermission() { + return !this._hasPermission; + } + get shiroString() { + return this._shiroString; + } + get displayString() { + return this.noPermissionDisplayString; + } + get noPermissionDisplayString() { + return this._noPermissionDisplayString; + } + }; + }, 87734: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(20692)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "videoCollection"; + } + get displayTypeName() { + return "ArchVariableVideoCollection"; + } + get initialValue() { + return this._initialValue; + } + get isArchVariableVideoCollection() { + return true; + } + } + t2.default = r2; + }, 87759: (e2, t2, i2) => { + "use strict"; + const n2 = i2(31635), r2 = i2(12179), o = n2.__importDefault(i2(97891)), a = i2(24383), s = n2.__importDefault(i2(5730)), l = i2(47957); + class u extends s.default { + constructor(e3, t3) { + super(e3.parentFlow, e3), this._loadModel(t3); + } + } + u.info = o.default.createActionInfo({ actionClass: u, canBeInTask: true, helpTopic: r2.helpTopics.actions.endState, modelClass: i2(83051), name: l.actions.endState, scriptingName: "ArchActionEndState", termination: a.terminatesState, availabilityCallback: function(e3, t3, i3) { + return !(!i3 || !t3.isState); + } }), t2.A = u; + }, 87769: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(28562), r2 = i2(69149), o = { _label: "BotNoMatch", availableLanguages: { "ar-ae": "defaultSequence", "ar-eg": "defaultSequence", "ar-sa": "defaultSequence", "ca-es": "defaultSequence", "cs-cz": "defaultSequence", "da-dk": "defaultSequence", "de-ch": "defaultSequence", "de-de": "defaultSequence", "el-gr": "defaultSequence", "en-au": "defaultSequence", "en-gb": "defaultSequence", "en-us": "defaultSequence", "es-es": "defaultSequence", "es-mx": "defaultSequence", "es-us": "defaultSequence", "eu-es": "defaultSequence", "fi-fi": "defaultSequence", "fil-ph": "defaultSequence", "fr-be": "defaultSequence", "fr-ca": "defaultSequence", "fr-fr": "defaultSequence", "he-il": "defaultSequence", "hi-in": "defaultSequence", "hu-hu": "defaultSequence", "it-it": "defaultSequence", "ja-jp": "localizedSequence1", "ko-kr": "localizedSequence1", "ms-my": "defaultSequence", "nb-no": "defaultSequence", "nl-be": "defaultSequence", "nl-nl": "defaultSequence", "pl-pl": "defaultSequence", "pt-br": "defaultSequence", "pt-pt": "defaultSequence", "ru-ru": "defaultSequence", "sv-se": "defaultSequence", "th-th": "defaultSequence", "tr-tr": "defaultSequence", "uk-ua": "defaultSequence", "vi-vn": "defaultSequence", "zh-cn": "defaultSequence", "zh-hk": "defaultSequence", "zh-tw": "defaultSequence" }, builderId: n2.builderIds.parts.genericCommunication, flowTypeOverrides: { digitalbot: { builderId: n2.builderIds.parts.markdownCommunication, languageSequences: { defaultSequence: { _label: "bot_slot_noMatch", partContents: [{ builderPartId: r2.builderPartIds.communication.text, parameters: { templateNoOverlaySection: "noMatch", templateNoOverlaySectionKey: "noMatchStr1" } }, { builderPartId: r2.builderPartIds.communication.text, parameters: { reference: "$selectedSlotName" } }] }, localizedSequence1: { _label: "bot_slot_noMatch_seq_1", partContents: [{ builderPartId: r2.builderPartIds.communication.text, parameters: { reference: "$selectedSlotName" } }, { builderPartId: r2.builderPartIds.communication.text, parameters: { templateNoOverlaySection: "noMatch", templateNoOverlaySectionKey: "noMatchStr1" } }] } } } }, languageSequences: { defaultSequence: { _label: "bot_slot_noMatch", parts: [{ builderPartId: r2.builderPartIds.communication.text, parameters: { templateNoOverlaySection: "noMatch", templateNoOverlaySectionKey: "noMatchStr1" } }, { builderPartId: r2.builderPartIds.communication.text, parameters: { reference: "$selectedSlotName" } }] }, localizedSequence1: { _label: "bot_slot_noMatch_seq_1", parts: [{ builderPartId: r2.builderPartIds.communication.text, parameters: { reference: "$selectedSlotName" } }, { builderPartId: r2.builderPartIds.communication.text, parameters: { templateNoOverlaySection: "noMatch", templateNoOverlaySectionKey: "noMatchStr1" } }] } } }; + t2.default = o; + }, 87828: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = i2(30801), o = n2.__importDefault(i2(78432)), a = n2.__importDefault(i2(66978)), s = n2.__importDefault(i2(94225)), l = n2.__importDefault(i2(11210)); + class u extends l.default { + constructor(e3) { + super(e3), this._coreCallCommonModuleAction = e3; + } + get _actionTypeId() { + return r2.callCommonModuleActionType; + } + get displayTypeName() { + return "ArchActionCallCommonModule"; + } + get isArchActionCallCommonModule() { + return true; + } + get inputs() { + return this.coreFactory.createArchWrapper(this._getCoreViewModel().inputs); + } + get outputs() { + return this.coreFactory.createArchWrapper(this._getCoreViewModel().outputs); + } + get commonModuleFlowInfo() { + if (this._coreCallCommonModuleAction.commonModule.flowId) return this.coreFactory.createArchWrapper(this._coreCallCommonModuleAction.commonModule.getFlowInfoReference(this._coreCallCommonModuleAction.commonModule.flowId)); + } + setTargetFlowInfoAsync(e3, t3) { + return n2.__awaiter(this, void 0, void 0, function* () { + const i3 = this._infoPropSet("newValue", "targetFlowInfo"); + return this._checkItem(i3, !e3 || !e3.isArchFlowInfo && !e3.isArchFlowInfoBasic, "you must pass in an ArchFlowInfo or ArchFlowInfoBasic instance when setting the targetFlowInfo value."), this._checkItem(i3, e3.type !== o.default.FLOW_TYPES.commonModule, `the supplied flow information points to a flow of type '${e3.type}' which is not supported by this action. You must pass in a flow information value that specifies a flow of type '${o.default.FLOW_TYPES.commonModule}'.`), this.logNote(`configuring the call common module action to call the common module flow with name '${e3.name}' (id: '${e3.id}') at runtime.`), yield this._coreCallCommonModuleAction.commonModule.setFlowById(e3.id), s.default.executeCallback(this, "setTargetFlowInfoAsync", t3); + }); + } + setCommonModuleFlowByIdAsync(e3, t3, i3) { + this._checkItemIsValidLiteralString(this._infoParm("commonModuleFlowId", "setCommonModuleFlowByIdAsync"), e3), this._checkItemIsValidLiteralStringEnum(this._infoParm("flowVersion", "setCommonModuleFlowByIdAsync"), t3, o.default.FLOW_VERSIONS_ALL, true), this._checkItemIsValidFunction(this._infoParm("callbackFunction", "setCommonModuleFlowByIdAsync"), i3, true), this.logNote(`configuring the call common module action to flow with id ${e3}`); + let n3 = false, r3 = t3; + switch (null == t3 ? void 0 : t3.toLowerCase()) { + case o.default.FLOW_VERSIONS.debug: + n3 = true, r3 = void 0; + break; + case o.default.FLOW_VERSIONS.latest: + r3 = void 0; + } + return a.default.addPromise(this._coreCallCommonModuleAction.commonModule.setFlowById(e3, n3, r3), "setCommonModuleFlowByIdAsync").then(() => s.default.executeCallback(this, "setCommonModuleFlowByIdAsync", i3, this)); + } + } + t2.default = u; + }, 87860: (e2, t2, i2) => { + var n2 = { "./cs-cz/builder.js": [55320, 5320], "./de-de/builder.js": [73121, 3121], "./en-us/builder.js": [39958], "./es-us/builder.js": [93996, 1615], "./fr-ca/builder.js": [35979, 5979], "./it-it/builder.js": [69425, 1806], "./ja-jp/builder.js": [24206, 4206], "./ko-kr/builder.js": [12188, 2188], "./nb-no/builder.js": [33867, 6248], "./nl-nl/builder.js": [22216, 9835], "./pl-pl/builder.js": [21807, 1807], "./pt-br/builder.js": [7983, 7983], "./ru-ru/builder.js": [49989, 9989], "./sv-se/builder.js": [46164, 6164], "./tr-tr/builder.js": [33391, 3391], "./zh-cn/builder.js": [23584, 3584], "./zh-tw/builder.js": [56520, 6520] }; + function r2(e3) { + if (!i2.o(n2, e3)) return Promise.resolve().then(() => { + var t4 = new Error("Cannot find module '" + e3 + "'"); + throw t4.code = "MODULE_NOT_FOUND", t4; + }); + var t3 = n2[e3], r3 = t3[0]; + return Promise.all(t3.slice(1).map(i2.e)).then(() => i2(r3)); + } + r2.keys = () => Object.keys(n2), r2.id = 87860, e2.exports = r2; + }, 87870: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.NoteActionProperty = void 0, t2.isNoteActionProperty = function(e3) { + return null == e3 ? void 0 : e3.isNoteProperty; + }; + const n2 = i2(31635), r2 = n2.__importDefault(i2(92140)), o = i2(88473), a = n2.__importDefault(i2(49416)), s = i2(55867); + class l extends s.BaseActionProperty { + constructor(e3, t3, i3, n3, r3, a2, s2) { + super(e3, t3), this.accent = n3, this.ininTestField = r3, this.ininTestField = r3, this.hasInteractiveLinks = s2 || false, this.note = i3, this._outOfServiceProvider = (0, o.addOutOfServiceProperties)(this), this.supportedFlowTypes = a2 || []; + } + destroy() { + super.destroy(), this._outOfServiceProvider.destroy(); + } + get note() { + return this._note; + } + set note(e3) { + this._noteUnresolved = e3, this._note = a.default.resolveString(e3, this.parentFlow); + } + get noteUnresolved() { + return this._noteUnresolved; + } + get isNoteProperty() { + return true; + } + get className() { + return "NoteActionProperty"; + } + getDetailDescription() { + } + get isNoteEmpty() { + return r2.default.isEmpty(this.note); + } + static createCreateDetails(e3, t3, i3, n3, r3) { + return { create: (o2, a2) => new l(o2, a2, e3, t3, i3, n3, r3), getCreateClass: () => l, modelProperties: [] }; + } + } + t2.NoteActionProperty = l; + }, 87889: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.formResponseManager = t2.FormResponseManager = void 0; + const n2 = i2(30801), r2 = i2(24032), o = i2(60609), a = i2(10535); + class s extends a.ResponseManager { + additionalItemFilter(e3) { + return e3.filter((e4) => e4.responseType === this.responseType); + } + constructor() { + super(), this.topic = (0, r2.getTopic)("FormResponseManager"), this.responseType = o.CannedResponseType.form, this.actionsForUsageSearch = [n2.formActionType]; + } + } + t2.FormResponseManager = s, t2.formResponseManager = new s(); + }, 87921: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = i2(17604), o = n2.__importDefault(i2(92140)), a = n2.__importStar(i2(9345)), s = i2(19596), l = i2(80295), u = i2(80295), d = i2(98126), c = i2(55909), p = i2(33951), _ = i2(47957); + class h extends s.DataContract { + constructor() { + super(), this._allowNull = true, this._isCollection = false, (0, u.makeUnenumerable)(this, "_allowNull"), (0, u.makeUnenumerable)(this, "_isCollection"); + } + get isBaseFacets() { + return true; + } + setFromFacets(e3) { + e3 && this._setFromFacets(e3); + } + _setFromFacets(e3) { + p.ParameterValidator.expectObject(e3, () => c.ParameterInfo.createFunctionParameter(this.className, "_setFromFacets", "baseFacets"), false), this._setFacetIfSet(this.setAllowNull, e3.allowNull), this._setFacetIfSet(this.setIsCollection, e3.isCollection); + } + _setFacetIfSet(e3, t3, i3) { + p.ParameterValidator.expectFunction(e3, () => c.ParameterInfo.createFunctionParameter(this.className, "_setFromFacets", "setter"), false), o.default.isUndefined(t3) ? i3 && (p.ParameterValidator.expectTrue(i3 in this, i3, "property exists on this", () => c.ParameterInfo.createFunctionParameter(this.className, "_setFromFacets", "propertyName"), false), this[i3] = void 0) : e3.call(this, t3); + } + _createValidationResult(e3, t3, i3) { + return { isValid: e3, isWarning: true === i3, message: t3 }; + } + _createErrorResult(e3) { + return this._createValidationResult(false, e3); + } + _createSuccessResult() { + return this._createValidationResult(true); + } + _createWarningResult(e3) { + return this._createValidationResult(true, e3, true); + } + _validateValue(e3, t3) { + return this._facetValidateValue(e3, t3) || this._createSuccessResult(); + } + addDescriptionInfo(e3, t3) { + } + get hasDescriptionInfo() { + return false; + } + get allowNull() { + return this._allowNull; + } + set allowNull(e3) { + this._allowNull = p.ParameterValidator.expectBool(e3, () => c.ParameterInfo.createPropertySet(this.className, "isCollection", "value")); + } + setAllowNull(e3) { + return this.allowNull = e3, this; + } + get isCollection() { + return this._isCollection; + } + set isCollection(e3) { + this._isCollection = p.ParameterValidator.expectBool(e3, () => c.ParameterInfo.createPropertySet(this.className, "isCollection", "value")); + } + setIsCollection(e3) { + return this.isCollection = e3, this; + } + validateExpressionItem(e3, t3) { + if (null == e3) return this._createErrorResult(_.facets.nothingToValidate); + if (e3.isCollection) return this._createSuccessResult(); + const i3 = this._facetGetExpressionType(), n3 = e3.type; + return n3.isMatch(i3, a.settings.typeOf) ? e3.isNotSet ? this.allowNull ? this._createSuccessResult() : this._createErrorResult(_.facets.valueCannotBeNotSet) : e3.isLit ? this._validateValue(this._facetGetExpressionItemLitValue(e3), t3) : this._createSuccessResult() : this._createErrorResult((0, r2.sprintf)(_.facets.incorrectType, n3.displayString, i3.displayString)); + } + clone() { + return (0, d.clone)(this); + } + } + t2.default = h, n2.__decorate([(0, l.enumerable)(true), n2.__metadata("design:type", Boolean), n2.__metadata("design:paramtypes", [Object])], h.prototype, "allowNull", null), n2.__decorate([(0, l.enumerable)(true), n2.__metadata("design:type", Boolean), n2.__metadata("design:paramtypes", [Object])], h.prototype, "isCollection", null); + }, 87951: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = i2(96618), o = i2(17604), a = n2.__importDefault(i2(73198)), s = n2.__importStar(i2(63824)), l = i2(15364), u = i2(79467), d = i2(81516), c = i2(99469), p = i2(24235), _ = i2(36128), h = n2.__importStar(i2(10798)), m = n2.__importDefault(i2(4648)), g = n2.__importDefault(i2(88391)), f = i2(80428), T = i2(44931), y = i2(47957); + class S extends g.default { + constructor(e3, t3) { + super(e3, t3); + } + _postProcessYamlConfig(e3, t3, i3) { + } + _setBotCategoryProperties(e3) { + e3 && (this.botCategoryProperty.nameValue = e3.botName, this.isLexV2Action || (this.botCategoryProperty.idValue = e3.botId)); + } + get botRunnableProperty() { + return this.alias; + } + get botCategoryProperty() { + return this.bot; + } + get botRunnableNetworkGetCall() { + return T.getAlias; + } + get languagesProperty() { + return this.model.aliasLanguages; + } + set languagesProperty(e3) { + this.model.aliasLanguages = e3; + } + get isLexAction() { + return true; + } + static get managedProperties() { + return [{ dataList: true, isOutput: true, property: "errorBindings", yamlOptions: S.createYamlOptions("errorBindings", (e3) => e3.setPropertyName("failureOutputs")) }, { property: "sessionVariables", namedItems: true, isOutput: false, options: _.NameValuePairsOptions.create((e3) => e3.setNameLabel(y.updateVariables.variableName).setValueLabel(y.updateVariables.variableValue).setAllowLiteralModeOnlyOnName(true)), yamlOptions: S.createYamlOptions("sessionVariables", (e3) => e3.setWrappedCollectionItemName("sessionVariable")) }, { property: "outputs", dataPairListCollection: true, isOutput: true, options: c.ManagedPropertyOptions.create((e3) => e3.setIsOptional(true)), yamlOptions: S.createYamlOptions("outputs", (e3) => e3.setPropertyName("intents").setUseNoneTrueForExpressionContainerClass(l.DataPairList.className)) }, { label: y.bot.followupResponseTimeoutLabel, type: f.expressionTypeNames.duration, supportedFlowTypes: [r2.flowTypes.flowTypeInboundShortMessage, r2.flowTypes.flowTypeInQueueShortMessage, r2.flowTypes.flowTypeInboundChat], options: u.ExpressionTypeDurationOptions.create((e3) => e3.setDefaultText(a.default.litDurationTwelveHours).setDescriptionInfo(y.bot.followupResponseTimeoutLabel, y.bot.followupResponseTimeoutDescription).setDurationStyle(s.durationStyles.fullDuration).setIninTestingField("followupResponseTimeoutExpression").facets.setMinDur(0, true)), optionsForSpecificFlowTypes: [{ flowTypes: [r2.flowTypes.flowTypeInboundChat], options: u.ExpressionTypeDurationOptions.create((e3) => e3.setDefaultText(a.default.litDurationFiveMinutes).setDescriptionInfo(y.bot.followupResponseTimeoutLabel, y.bot.followupResponseTimeoutDescription).setDurationStyle(s.durationStyles.fullDuration).setIninTestingField("followupResponseTimeoutExpression").facets.setMinDur(0, true).setMaxDur(10 * a.default.msPerHour, true)) }], property: "followupResponseTimeout" }, { label: y.lex.inputTextLabel, supportedFlowTypes: [r2.flowTypes.flowTypeInboundShortMessage, r2.flowTypes.flowTypeInQueueShortMessage, r2.flowTypes.flowTypeInboundChat], type: f.expressionTypeNames.string, options: d.ExpressionTypeStringOptions.create((e3) => e3.setIsOptional(true).setDescriptionInfo(y.lex.inputTextLabel, y.lex.inputTextDescriptionForChat).setIninTestingField("inputTextExpression")), optionsForSpecificFlowTypes: [{ flowTypes: [r2.flowTypes.flowTypeInboundShortMessage, r2.flowTypes.flowTypeInQueueShortMessage], options: d.ExpressionTypeStringOptions.create((e3) => e3.setDefaultToExpression(true).setDefaultText(a.default.messageBodyVariable).setDescriptionInfo(y.lex.inputTextLabel, y.lex.inputTextDescription).setIninTestingField("inputTextExpression").setIsOptional(h.isFeatureAvailable(m.default.autoStartConversations)).setDoNotTransitionToNoValue(true)) }], property: "inputText" }, { property: "prompts", audio: true, supportedFlowTypes: r2.flowTypes.flowTypesAllVxmlgen, options: p.AudioViewModelOptions.create((e3) => e3.setLabel(y.lex.startingAudio).setIninTestingField("startingAudio")), yamlOptions: S.createYamlOptions("prompts", (e3) => e3.setPropertyName("startAudio")) }]; + } + postProcessYamlConfig(e3, t3, i3) { + this.botRunnableProperty.idValue || this.removeYamlExportPropsThatRequireRunnable(e3), this.botName && this._postProcessYamlConfig(e3, t3, i3); + } + removeYamlExportPropsThatRequireRunnable(e3) { + super.removeYamlExportPropsThatRequireRunnable(e3), delete e3.aliasInitialIntentName; + } + validate(e3) { + var t3; + super.validate(e3); + const i3 = this.botRunnableManager.getItem(this.botRunnableProperty.idValue); + i3 && (null === (t3 = i3.status) || void 0 === t3 ? void 0 : t3.toLowerCase()) !== this.aliasReadyStatus.toLowerCase() && e3.addError(this, (0, o.sprintf)(y.lex.lexAliasNotReady, i3.status, this.aliasReadyStatus)); + } + get yamlNoBotRunnablePropName() { + return "noLexBot"; + } + } + S.className = "BaseLexAction", t2.default = S; + }, 87964: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(54063)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "externalLinkConfigurationCollection"; + } + get displayTypeName() { + return "ArchValueExternalLinkConfigurationCollection"; + } + get isArchValueExternalLinkConfigurationCollection() { + return true; + } + } + t2.default = r2; + }, 87995: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.getSurveyForms = a, t2.getSurveyForm = s, t2.getSurveyFormVersions = function(e3) { + const t3 = r2.default.build(o.getSurveyFormVersions), i3 = e3.getSearchQueryParams(true), n3 = e3.additionalParams; + return t3.templateParams(n3).queryParams(i3).call(); + }, t2.getLatestPublishedSurveyForm = function(e3) { + return n2.__awaiter(this, void 0, void 0, function* () { + const t3 = r2.default.build(o.getLatestPublishedSurveyForm).templateParams({ contextId: e3 }), i3 = yield t3.call(); + return null == i3 ? void 0 : i3.entities[0]; + }); + }; + const n2 = i2(31635), r2 = n2.__importDefault(i2(36019)), o = n2.__importStar(i2(13202)); + function a(e3) { + return n2.__awaiter(this, void 0, void 0, function* () { + const t3 = r2.default.build(o.getSurveyForms); + if (e3) { + const i4 = e3.getSearchQueryParams(); + i4.onlyLatestEnabledPerContext = true, t3.queryParams(i4); + } + const i3 = yield t3.call(); + return i3.entities.sort((e4, t4) => e4.name.localeCompare(t4.name)), i3; + }); + } + function s(e3) { + return r2.default.build(o.getSurveyForm).templateParams({ id: e3 }).call(); + } + a.api = o.getSurveyForms, s.api = o.getSurveyForm; + }, 88027: (e2, t2, i2) => { + const n2 = i2(22124), r2 = i2(98643); + function o() { + o.baseConstructor.apply(this, arguments); + } + n2.extend(o, "ScheduleGroupList"), Object.defineProperties(o.prototype, { entities: { enumerable: true, get: function() { + return this._entities; + }, set: function(e3) { + this._entities = this.reviveArray(e3, r2); + } } }), e2.exports = o; + }, 88051: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = i2(30801), o = n2.__importDefault(i2(62028)); + class a extends o.default { + constructor(e3) { + super(e3); + } + get _actionTypeId() { + return r2.transferPureMatchActionType; + } + get displayTypeName() { + return "ArchMenuTransferToAcd"; + } + get actionTransferToAcd() { + return this._archAction; + } + get isArchMenuTransferToAcd() { + return true; + } + } + t2.default = a; + }, 88067: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(84655)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "assignedCustomerIntent"; + } + get displayTypeName() { + return "ArchVariableAssignedCustomerIntent"; + } + get initialValue() { + return this._initialValue; + } + get isArchVariableAssignedCustomerIntent() { + return true; + } + } + t2.default = r2; + }, 88176: (e2, t2, i2) => { + const n2 = i2(75458), r2 = i2(7401), { getAssignedCustomerIntentsActionType: o } = i2(30801); + function a() { + Object.defineProperties(this, { _externalContactId: { writable: true }, _getAssignedCustomerIntentsResult: { writable: true } }), a.baseConstructor.apply(this, arguments); + } + n2.extend(a, o, true), Object.defineProperties(a.prototype, { pasteReIdOrRename: { value: function(e3) { + a._super.pasteReIdOrRename.apply(this, arguments), this.getAssignedCustomerIntentsResult.pasteReIdOrRename(e3), this.externalContactId.pasteReIdOrRename(e3); + } }, pasteResolveOldToNewValues: { value: function(e3) { + a._super.pasteResolveOldToNewValues.apply(this, arguments), this.getAssignedCustomerIntentsResult.pasteResolveOldToNewValues(e3), this.externalContactId.pasteResolveOldToNewValues(e3); + } }, getAssignedCustomerIntentsResult: { enumerable: true, get: function() { + return this._getAssignedCustomerIntentsResult; + }, set: function(e3) { + this._getAssignedCustomerIntentsResult = this.reviveItem(e3, r2); + } }, externalContactId: { enumerable: true, get: function() { + return this._externalContactId; + }, set: function(e3) { + this._externalContactId = this.reviveItem(e3, r2); + } } }), e2.exports = a; + }, 88199: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(67336)); + class r2 extends n2.default { + constructor(e3) { + super(e3), this._coreSpeechRecTermContainerViewModel = e3; + } + get displayTypeName() { + return "ArchSpeechRecTermContainer"; + } + get logStr() { + if (!this._coreSpeechRecTermContainerViewModel) return this.logStrTypeOnly; + const e3 = []; + return this._appendLogStrType(e3, this.displayTypeName), this._appendLogStrTag(e3, this._coreSpeechRecTermContainerViewModel.languageCode), this._createLogStrFromParts(e3); + } + addTerm(e3) { + const t3 = this._infoParm("newTerm", "addTerm"); + return this._checkItemIsValidLiteralString(t3, e3), this._checkItem(t3, !!this._coreSpeechRecTermContainerViewModel.contains(e3), "the term '" + e3 + "' is already in the container."), this._coreSpeechRecTermContainerViewModel.terms.push(e3), true; + } + containsTerm(e3) { + const t3 = this._infoParm("term", "containsTerm"); + return this._checkItemIsValidLiteralString(t3, e3, false), this._coreSpeechRecTermContainerViewModel.terms.includes(e3); + } + get language() { + return this.coreFactory.getArchLanguageForTag(this._coreSpeechRecTermContainerViewModel.languageCode); + } + get isArchSpeechRecTermContainer() { + return true; + } + } + t2.default = r2; + }, 88246: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.combineLatestInit = t2.combineLatest = void 0; + var n2 = i2(48051), r2 = i2(50439), o = i2(47058), a = i2(87699), s = i2(13916), l = i2(26404), u = i2(15810), d = i2(17214), c = i2(28619); + function p(e3, t3, i3) { + return void 0 === i3 && (i3 = a.identity), function(n3) { + _(t3, function() { + for (var r3 = e3.length, a2 = new Array(r3), s2 = r3, l2 = r3, u2 = function(r4) { + _(t3, function() { + var u3 = o.from(e3[r4], t3), c3 = false; + u3.subscribe(d.createOperatorSubscriber(n3, function(e4) { + a2[r4] = e4, c3 || (c3 = true, l2--), l2 || n3.next(i3(a2.slice())); + }, function() { + --s2 || n3.complete(); + })); + }, n3); + }, c2 = 0; c2 < r3; c2++) u2(c2); + }, n3); + }; + } + function _(e3, t3, i3) { + e3 ? c.executeSchedule(i3, e3, t3) : t3(); + } + t2.combineLatest = function() { + for (var e3 = [], t3 = 0; t3 < arguments.length; t3++) e3[t3] = arguments[t3]; + var i3 = l.popScheduler(e3), d2 = l.popResultSelector(e3), c2 = r2.argsArgArrayOrObject(e3), _2 = c2.args, h = c2.keys; + if (0 === _2.length) return o.from([], i3); + var m = new n2.Observable(p(_2, i3, h ? function(e4) { + return u.createObject(h, e4); + } : a.identity)); + return d2 ? m.pipe(s.mapOneOrManyArgs(d2)) : m; + }, t2.combineLatestInit = p; + }, 88269: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.pairs = void 0; + var n2 = i2(47058); + t2.pairs = function(e3, t3) { + return n2.from(Object.entries(e3), t3); + }; + }, 88276: (e2, t2, i2) => { + const n2 = i2(47957); + e2.exports = [{ displayString: n2.sendResponse.messageBodyStyleNotice, id: "notice" }, { displayString: n2.sendResponse.messageBodyStyleStandard, id: "standard" }]; + }, 88280: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = i2(9456), o = i2(73270), a = i2(5173); + class s extends a.BaseFlowPreviewInstance { + _startPreviewForFlowInfo(e3, t3, i3, a2) { + return n2.__awaiter(this, void 0, void 0, function* () { + return a2.name || (a2.name = `ArchitectWorkitemPreview_${e3.displayName}_${(0, r2.uuid)()}`), a2.typeId = e3.workitemFlowSettings.worktype.id, (yield (0, o.createWorkitem)(a2)).id; + }); + } + _isFlowNotificationEventDataForThisPreview(e3, t3) { + var i3, n3; + return (null === (n3 = null === (i3 = t3.invokingContext) || void 0 === i3 ? void 0 : i3.workitem) || void 0 === n3 ? void 0 : n3.workitemId) === this.tag; + } + get supportsDebugPublishedPreview() { + return false; + } + get supportsPreviewPayload() { + return true; + } + get supportsPublishedFlowPreview() { + return true; + } + } + t2.default = s; + }, 88308: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importDefault(i2(92140)), o = n2.__importDefault(i2(66872)); + class a extends o.default { + constructor(e3) { + super(e3); + } + deleteTask(e3) { + const t3 = this._infoParm("reusableTaskToDelete", "deleteTask"); + this._checkItem(t3, !e3 || !e3.isArchTask, "the parameter value must be an ArchTask instance."), this._checkItem(t3, !e3.isReusableTask, "the task to delete must be a reusable task instance."), this._checkItem(t3, e3.parentFlow._getCoreViewModel() !== this._getCoreViewModel(), "the task to delete is not part of this flow."); + const i3 = e3.logStr; + this.logNote("deleting the reusable task " + i3), this._coreFlowViewModel.deleteNode(e3._getCoreViewModel()) || this.logErrorAndThrow(`the task ${e3.logStr} could not be deleted.`), this.logNote("reusable task deletion complete for " + i3); + } + get tasksReusable() { + const e3 = []; + return r2.default.each(this._getCoreViewModel().tasks, (t3) => { + const i3 = this.coreFactory.createArchWrapper(t3); + i3.isReusableTask && e3.push(i3); + }), e3; + } + } + t2.default = a; + }, 88383: function(e2, t2, i2) { + !(function(e3) { + "use strict"; + e3.defineLocale("it", { months: "gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"), monthsShort: "gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"), weekdays: "domenica_luned\xEC_marted\xEC_mercoled\xEC_gioved\xEC_venerd\xEC_sabato".split("_"), weekdaysShort: "dom_lun_mar_mer_gio_ven_sab".split("_"), weekdaysMin: "do_lu_ma_me_gi_ve_sa".split("_"), longDateFormat: { LT: "HH:mm", LTS: "HH:mm:ss", L: "DD/MM/YYYY", LL: "D MMMM YYYY", LLL: "D MMMM YYYY HH:mm", LLLL: "dddd D MMMM YYYY HH:mm" }, calendar: { sameDay: function() { + return "[Oggi a" + (this.hours() > 1 ? "lle " : 0 === this.hours() ? " " : "ll'") + "]LT"; + }, nextDay: function() { + return "[Domani a" + (this.hours() > 1 ? "lle " : 0 === this.hours() ? " " : "ll'") + "]LT"; + }, nextWeek: function() { + return "dddd [a" + (this.hours() > 1 ? "lle " : 0 === this.hours() ? " " : "ll'") + "]LT"; + }, lastDay: function() { + return "[Ieri a" + (this.hours() > 1 ? "lle " : 0 === this.hours() ? " " : "ll'") + "]LT"; + }, lastWeek: function() { + return 0 === this.day() ? "[La scorsa] dddd [a" + (this.hours() > 1 ? "lle " : 0 === this.hours() ? " " : "ll'") + "]LT" : "[Lo scorso] dddd [a" + (this.hours() > 1 ? "lle " : 0 === this.hours() ? " " : "ll'") + "]LT"; + }, sameElse: "L" }, relativeTime: { future: "tra %s", past: "%s fa", s: "alcuni secondi", ss: "%d secondi", m: "un minuto", mm: "%d minuti", h: "un'ora", hh: "%d ore", d: "un giorno", dd: "%d giorni", w: "una settimana", ww: "%d settimane", M: "un mese", MM: "%d mesi", y: "un anno", yy: "%d anni" }, dayOfMonthOrdinalParse: /\d{1,2}º/, ordinal: "%d\xBA", week: { dow: 1, doy: 4 } }); + })(i2(95093)); + }, 88391: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = i2(17604), o = n2.__importDefault(i2(92140)), a = n2.__importStar(i2(63352)), s = i2(14394), l = n2.__importStar(i2(24032)), u = n2.__importDefault(i2(51499)), d = n2.__importDefault(i2(27203)), c = n2.__importStar(i2(12847)), p = n2.__importStar(i2(17498)), _ = n2.__importStar(i2(36781)), h = n2.__importStar(i2(33230)), m = n2.__importDefault(i2(41510)), g = n2.__importStar(i2(98442)), f = i2(1115), T = i2(12457), y = n2.__importDefault(i2(5730)), S = i2(47957), A = l.getTopic("BaseBotActionViewModel"); + class N extends y.default { + get hasAutoSelectedBotRunnable() { + return false; + } + get shouldSkipLanguageValidation() { + return false; + } + get supportsEnvironments() { + return false; + } + get doesNotSupportIntents() { + return false; + } + constructor(e3, t3) { + super(e3.parentFlow, e3), this.addOptionalPathsFromModel(t3), this._loadModel(t3), this.addAutoCleanedUpEventSinkWatch(_.lastPathActionRemoved, this, this.removeUnusedOutput.bind(this)); + } + get customIntentNames() { + const e3 = []; + let t3; + return t3 = this.hasAutoSelectedBotRunnable && this.botCategoryProperty.idValue ? this._getLocalAutoSelectedBotRunnable() : this.botRunnableManager.getItem(this.botRunnableProperty.idValue, this), o.default.each(null == t3 ? void 0 : t3.intents, (t4) => { + e3.push(t4.name); + }), e3; + } + _destroy() { + super._destroy(); + } + _initializeDesignTime() { + let e3; + this.isReadOnly || (e3 = this.botRunnableManager.getItem(this.botRunnableProperty.idValue, this)), e3 || (e3 = this.botRunnableManager.getItemFromFlowMetadata(this, this.botRunnableProperty.idValue)), e3 && this.updateBotActionFromBotRunnable(e3), this.setBotLanguages(e3 ? e3.languages || e3.language : void 0), super._initializeDesignTime(); + } + _processMergedSchema(e3) { + this.initializeDesignTimeCalled && o.default.each(e3, (e4) => { + e4.data && e4.data.initializeDesignTime && e4.data.initializeDesignTime(); + }); + } + _setBotIntegrationProperties(e3) { + } + _setBotCategoryProperties(e3) { + } + addAttribute() { + const e3 = this.sessionVariables.add(null, s.globalTypes.string); + return (0, f.validateAction)(this, true, true), e3.id; + } + addOutputSessionVariablesAttribute() { + if (!this.outputSessionVariables) return; + const e3 = this.outputSessionVariables.add(null, s.globalTypes.string); + return e3.expression.mode = a.variable, e3.expression.setAsOutput(), (0, f.validateAction)(this, true, true), e3.id; + } + getLanguageWarning(e3) { + if (!o.default.isArray(e3) || !e3.length) return null; + let t3; + if (1 === (e3 = e3.map((e4) => `'${e4}'`)).length) t3 = e3[0]; + else { + const i3 = e3.pop(); + t3 = e3.join(m.default.itemListing.itemSeparator).concat(S.itemListing.lastItemAndSeparator + i3); + } + return (0, r2.sprintf)(S.bot.languageWarning, this.botRunnableManager.dependencyType.displayName, t3); + } + static get branchInfo() { + return [d.default.failure]; + } + get languagesProperty() { + return this.model.languages; + } + set languagesProperty(e3) { + this.model.languages = e3; + } + get botRunnableManager() { + return this.botRunnableProperty.configListManager; + } + get botCategoryProperty() { + return null; + } + get botCategoryManager() { + return this.botCategoryProperty ? this.botCategoryProperty.configListManager : null; + } + get botIntegrationProperty() { + return null; + } + get botIntegrationManager() { + return this.botIntegrationProperty ? this.botIntegrationProperty.configListManager : null; + } + get botRunnableNetworkGetCall() { + return c.error("botRunnableNetworkGetCall not implemented!"), null; + } + commonBotPostProcessYamlConfig(e3, t3) { + o.default.moveAndDeleteProperty(e3, t3, "intents"), o.default.moveAndDeleteProperty(e3, t3, "outputs"), o.default.moveAndDeleteProperty(e3, t3, "failureOutputs"); + } + removeYamlExportPropsThatRequireRunnable(e3) { + if (delete e3.intents, delete e3.failureOutputs, e3.outputs) { + const t3 = e3[this.yamlNoBotRunnablePropName] = {}; + o.default.moveAndDeleteProperty(e3, t3, "outputs"); + } + } + clearSchemaBindings() { + this.outputs && o.default.isFunction(this.outputs.destroyChildren) && this.outputs.destroyChildren(), this.errorBindings && o.default.isFunction(this.errorBindings.destroyChildren) && this.errorBindings.destroyChildren(); + } + refreshBotRunnableFromServer(e3) { + if (e3) { + const t3 = this.getAdditionalParams(); + return this.botRunnableNetworkGetCall(e3.id, t3).then((t4) => (e3.model = t4, e3.fullBotNotLoaded = false, this.botRunnableManager.addItem(t4, true), e3)); + } + return Promise.resolve(); + } + getDetails() { + if (this.botIntegrationProperty && !this.botIntegrationProperty.nameValue) return null; + if (this.botCategoryProperty && !this.botCategoryProperty.nameValue) return null; + const e3 = [], t3 = []; + return this.botIntegrationProperty && (e3.push(this.botIntegrationManager.dependencyType.displayName), t3.push(this.botIntegrationProperty.nameValue)), this.botCategoryProperty && (e3.push(this.botCategoryManager.dependencyType.displayName), t3.push(this.botCategoryProperty.nameValue)), this.hasAutoSelectedBotRunnable || (e3.push(this.botRunnableManager.dependencyType.displayName), t3.push(this.botRunnableProperty.nameValue)), o.default.isFunction(this.getEnvironmentName) && (e3.push(S.dialogflow.environment), t3.push(this.getEnvironmentName())), new T.ActionDetails(e3, t3); + } + getUnsupportedLanguageInfo(e3) { + if (this.shouldSkipLanguageValidation) return null; + if (e3 || (e3 = this.botRunnableManager.getItem(this.botRunnableProperty.idValue, this)), !e3) return null; + const t3 = o.default.filter(e3.languages, (e4) => g.isValidLanguageCode(e4)); + if (!t3.length) return { message: (0, r2.sprintf)(S.bot.noSupportedLanguages, this.botRunnableManager.dependencyType.displayName) }; + const i3 = t3.map((e4) => e4.toLowerCase()); + if (o.default.filter(this.parentFlow.languages.supportedLanguages, (e4) => !i3.includes(e4.toLowerCase())).length) { + const t4 = o.default.map(e3.languages, (e4) => g.isValidLanguageCode(e4) ? g.getLanguageNameAndCodeDisplay(e4) : e4); + return { message: this.getLanguageWarning(t4), isWarning: true }; + } + return null; + } + get isBaseBotActionViewModel() { + return true; + } + mergeSlotSchemas(e3) { + const t3 = []; + if (e3) { + if (e3.errorSchema && this._processMergedSchema(this.botRunnableManager.mergeSchemaProperties(e3.errorSchema.properties, this.errorBindings)), this.doesNotSupportIntents) return null; + o.default.each(e3.intents, (i3) => { + if (i3.slots) { + let n3 = o.default.findWhere(this.outputs.items, { name: i3.name }); + const r3 = o.default.find(this.branches, (e4) => !(!i3.builtInPathId || e4.id !== i3.builtInPathId) || !(e4.label !== i3.name && e4.label !== i3.localizedLabel || !e4.isDynamicBranch)); + r3 && r3.id || A.errorWithErrorObjectInfo(`${this.info.name}: No matching branch or branch ID was found for bot '${e3.id}'. Intent id: ${i3.id},`, this, true), n3 ? (n3.referenceId = r3 ? r3.id : null, n3.referenceId || A.errorWithErrorObjectInfo(`${this.info.name}: No matching branch found for data list with ID '${n3.id}', intent id: '${i3.id}'`, this, true)) : (n3 = this.outputs.createItem({ name: i3.name, referenceId: r3 ? r3.id : null }), this.outputs.addItem(n3), this.initializeDesignTimeCalled && n3.initializeDesignTime()); + const a2 = this.botRunnableManager.mergeSchemaProperties(i3.slots, n3.value); + this._processMergedSchema(a2), t3.push({ name: i3.localizedLabel || i3.name, value: a2, description: i3.description, secondaryHeader: i3.secondaryHeader }); + } + }); + for (let t4 = this.outputs.items.length - 1; t4 >= 0; t4--) { + const i3 = this.outputs.items[t4]; + o.default.findWhere(e3.intents, { name: i3.name }) || this.outputs.removeChildByReferenceId(i3); + } + } + return t3; + } + removeUnusedOutput(e3, t3) { + if (!this.getOptionalBranchInfo(this.id)) return; + const i3 = this.botRunnableManager.getItem(this.botRunnableProperty.idValue, this); + i3 && this.getIntentIndexByLabel(i3.intents, t3.label) >= 0 || this.removeOptionalBranchInfoById(t3.id, false); + } + getIntentIndexByLabel(e3, t3) { + return o.default.findIndex(e3, { name: t3 }); + } + setBotLanguages(e3) { + if (o.default.isString(e3)) e3 = [e3.toLowerCase()]; + else if (o.default.isUndefined(e3) || null === e3) e3 = []; + else if (!o.default.isArray(e3)) { + const t3 = []; + o.default.each(e3, (e4) => { + t3.push(o.default.isString(e4) ? e4.toLowerCase() : e4); + }), e3 = t3; + } + this.languagesProperty = e3; + } + setBotCategoryByViewModel(e3) { + this.botCategoryProperty && (this.botCategoryProperty.nameValue = e3 ? e3.name : null, this.botCategoryProperty.idValue = e3 ? e3.id : null); + } + setBotIntegrationByViewModel(e3) { + this.botIntegrationProperty && (this.botIntegrationProperty.nameValue = null == e3 ? void 0 : e3.name, this.botIntegrationProperty.idValue = null == e3 ? void 0 : e3.id); + } + setBotRunnableByViewModel(e3) { + const t3 = e3 ? e3.id : ""; + this.botIntegrationProperty && this.botIntegrationProperty.idValue && p.unRegisterConsumer(this, this.botIntegrationManager.dependencyContext), this.botCategoryProperty && this.botCategoryProperty.idValue && p.unRegisterConsumer(this, this.botCategoryManager.dependencyContext), this.botRunnableProperty.idValue && p.unRegisterConsumer(this, this.botRunnableManager.dependencyContext), this.botRunnableProperty.idValue = t3, this.botRunnableProperty.nameValue = e3 ? e3.name : "", this.setBotLanguages(e3 ? e3.languages || e3.language : void 0), this._setBotIntegrationProperties(e3), this._setBotCategoryProperties(e3), this.botRunnableProperty.idValue && this.botRunnableManager.addItemToFlowMetadata(this, null, this.botRunnableProperty.idValue), this.updateBotActionFromBotRunnable(e3), (0, f.validateAction)(this, false, true); + } + _getLocalAutoSelectedBotRunnable() { + if (!this.hasAutoSelectedBotRunnable) return A.error("Tried to getAutoSelectedBotRunnable in an unsupported action"), null; + if (!this.botCategoryProperty) return A.error("Tried to getAutoSelectedBotRunnable in an action without a botCategoryProperty"), null; + const e3 = this.botCategoryProperty.idValue; + if (!e3) return A.error("Tried to getAutoSelectedBotRunnable in an action without a botCategory id set"), null; + const t3 = this.botCategoryManager.getItem(e3); + return t3 ? t3.activeVersion ? this.botRunnableManager.getItem(t3.activeVersion) : (A.error(`No activeVersion set on bot category for category ID '${e3}'`), null) : (c.error(`Could not get bot category for category ID '${e3}'`), null); + } + getAdditionalParams() { + return this.hasAutoSelectedBotRunnable ? new u.default(this.botRunnableManager, { additionalParams: { botId: this.botCategoryProperty.idValue } }) : null; + } + getDependencyTrackingId() { + return this.botRunnableProperty && this.botRunnableProperty.idValue; + } + getAutoSelectedBotRunnable() { + if (!this.botCategoryProperty.idValue) return Promise.resolve(null); + const e3 = this._getLocalAutoSelectedBotRunnable(); + if (e3) return Promise.resolve(e3); + const t3 = this.botCategoryManager.getItem(this.botCategoryProperty.idValue); + return this.botRunnableManager.fetchItem(t3.activeVersion, null, this.getAdditionalParams()).then((e4) => e4 && e4.isDialogEngineVersionViewModel ? (e4.fullBotNotLoaded = false, e4) : (A.error(`Received incorrect or no dialogEngineVersionViewModel: '${JSON.stringify(e4)}'`), Promise.reject())); + } + get supportsIntents() { + return true; + } + switchToNewBotPaths(e3) { + return h.switchToNewIntentPaths(this, e3); + } + translateIntentsToBranchItems(e3) { + return h.translateIntentsToBranchItems(this, e3); + } + updateBotActionFromBotRunnable(e3) { + const t3 = this.translateIntentsToBranchItems(e3 ? e3.intents : []); + return this.switchToNewBotPaths(t3), this.mergeSlotSchemas(e3); + } + updateDependencies() { + this.updateBotIntegrationPropertyDependency(), this.updateBotCategoryPropertyDependency(), this.updateBotRunnablePropertyDependency(), super.updateDependencies(); + } + updateBotIntegrationPropertyDependency() { + var e3; + (null === (e3 = this.botIntegrationProperty) || void 0 === e3 ? void 0 : e3.idValue) && this.botIntegrationManager.registerConsumer(this, this.botIntegrationProperty.nameValue, this.botIntegrationProperty.idValue); + } + updateBotCategoryPropertyDependency() { + var e3; + (null === (e3 = this.botCategoryProperty) || void 0 === e3 ? void 0 : e3.idValue) && this.botCategoryManager.registerConsumer(this, this.botCategoryProperty.nameValue, this.botCategoryProperty.idValue); + } + updateBotRunnablePropertyDependency() { + (this.botRunnableProperty.nameValue || this.botRunnableProperty.idValue) && this.botRunnableManager.registerConsumer(this, this.botRunnableProperty.nameValue, this.getDependencyTrackingId()); + } + validate(e3) { + let t3; + if (super.validate(e3), this.requiresSpeechRec && (this.parentFlow.isCommonModuleFlow ? this.parentFlow.isEmbeddedFlow && !this.topParentFlow.speechRecEnabled() && this.topParentFlow.supportsSpeechRec && this.topParentFlow.validationResults.addError(this.topParentFlow.speechRecognition, (0, r2.sprintf)(S.lex.speechRecMustBeEnabledBecauseCommonModuleNeedsIt, this.parentFlow.displayName)) : this.parentFlow && !this.parentFlow.speechRecEnabled() && this.parentFlow.definition.supportsSpeechRec && e3.addError(this, S.lex.speechRecMustBeEnabled)), t3 = e3.isDeep && this.hasAutoSelectedBotRunnable && this.botCategoryProperty.idValue ? this._getLocalAutoSelectedBotRunnable() : this.botRunnableManager.getItem(this.botRunnableProperty.idValue, this), t3 && !this.isReadOnly) { + if (e3.isDeep) { + const e4 = this.translateIntentsToBranchItems(t3 ? t3.intents : []); + this.switchToNewBotPaths(e4); + } + if (this.mergeSlotSchemas(t3), this.outputs) { + for (const t4 of this.outputs.items) if (!t4.referenceId) { + e3.addError(this, (0, r2.sprintf)(S.bot.internalErrReferenceId, this.botRunnableManager.dependencyType.displayName)); + break; + } + } + } + const i3 = this.getUnsupportedLanguageInfo(t3); + i3 && (i3.isWarning ? e3.addWarning(this, i3.message) : e3.addError(this, i3.message, false, false)); + } + get yamlNoBotRunnablePropName() { + return "noBot"; + } + get requiresSpeechRec() { + return false; + } + } + N.className = "BaseBotActionViewModel", t2.default = N; + }, 88417: (e2, t2, i2) => { + "use strict"; + var n2, r2, o, a; + Object.defineProperty(t2, "__esModule", { value: true }); + const s = i2(31635), l = s.__importDefault(i2(55015)), u = i2(80295), d = s.__importDefault(i2(14e3)); + class c extends l.default { + constructor(e3) { + super(e3), (0, u.makeUnenumerable)(this, "_components"), (0, u.makeUnenumerable)(this, "_supportsLanguages"), (0, u.makeUnenumerable)(this, "_userCreatable"), (0, u.makeUnenumerable)(this, "_maxSize"); + } + get components() { + return this._components; + } + set components(e3) { + this._components = e3; + } + get supportsLanguages() { + return this._supportsLanguages; + } + set supportsLanguages(e3) { + this._supportsLanguages = this.reviveItem(e3, d.default); + } + get userCreatable() { + return this._userCreatable; + } + set userCreatable(e3) { + this._userCreatable = e3; + } + get maxSize() { + return this._maxSize; + } + set maxSize(e3) { + this._maxSize = e3; + } + } + t2.default = c, s.__decorate([(0, u.enumerable)(true), s.__metadata("design:type", Object), s.__metadata("design:paramtypes", [Object])], c.prototype, "components", null), s.__decorate([(0, u.enumerable)(true), s.__metadata("design:type", "function" == typeof (n2 = void 0 !== d.default && d.default) ? n2 : Object), s.__metadata("design:paramtypes", ["function" == typeof (r2 = void 0 !== d.default && d.default) ? r2 : Object])], c.prototype, "supportsLanguages", null), s.__decorate([(0, u.enumerable)(true), s.__metadata("design:type", "function" == typeof (o = void 0 !== l.default && l.default) ? o : Object), s.__metadata("design:paramtypes", ["function" == typeof (a = void 0 !== l.default && l.default) ? a : Object])], c.prototype, "userCreatable", null), s.__decorate([(0, u.enumerable)(true), s.__metadata("design:type", Number), s.__metadata("design:paramtypes", [Object])], c.prototype, "maxSize", null); + }, 88439: (e2) => { + e2.exports = { askCommon: { invalidInputReceived: "Esa acci\xF3n no es v\xE1lida.", noInputReceived: "No recib\xED ninguna entrada." }, askForBoolean: { noInput: 'Responda "s\xED" si desea continuar o, caso contrario, "no".', noMatch: 'Responda "S\xED" o "No". \xBFDesea continuar?', question: "\xBFDesea continuar?", noInputDigitalBot: 'Seleccione "S\xED" si desea continuar o, de lo contrario, "No".', noMatchDigitalBot: '\xBFDesea continuar? Seleccione "S\xED" o "No".' }, askForIntent: { noInput: 'Describa su consulta con una oraci\xF3n corta, por ejemplo, "Revisar mi saldo"', noMatch: "D\xEDgame una vez m\xE1s lo que quiere hacer.", question: "\xBFQu\xE9 le gustar\xEDa hacer?", noInputDigitalBot: 'Escriba una oraci\xF3n corta que describa su consulta. Por ejemplo, "Revisar mi saldo de cuenta"' }, askForSlot: { askFor: "Solicitar %1$s", noInput: "Pronuncie o escriba (coloque el nombre de la ranura aqu\xED).", noInputWithSlot: "Pronuncie o escriba %1$s.", noMatch: "Vuelva a proporcionar (coloque el nombre de la ranura aqu\xED).", noMatchWithSlot: "Vuelva a proporcionar %1$s.", question: "\xBFQu\xE9 es (coloque el nombre de la ranura aqu\xED)?", questionWithSlot: "\xBFQu\xE9 es %1$s?", pleaseEnterSlotNameHere: "(ponga el nombre de su ranura aqu\xED)", noInputDigitalBot: "Escriba (coloque aqu\xED el nombre de la ranura).", noInputWithSlotDigitalBot: "Escriba %1$s.", continuationPromptWithSlot: "De momento tengo {{Slot.%1$s}}, contin\xFAe." }, askForNextSlot: { noInput: 'Responda "s\xED", en caso de que tenga otra consulta, o "no" para finalizar la llamada.', noMatch: 'Responda "S\xED", en caso de que tenga otra consulta, o "No", para finalizar la sesi\xF3n.', question: "\xBFPuedo serle \xFAtil en algo m\xE1s?", noInputDigitalBot: 'Seleccione "S\xED" si tiene otra consulta o "No" para finalizar la sesi\xF3n.', noMatchDigitalBot: 'Seleccione "S\xED" si tiene otra consulta o "No" para finalizar la sesi\xF3n.' }, askForPayment: { noInputDigitalBot: "Proporcione su informaci\xF3n de pago para continuar.", noMatchDigitalBot: "No he entendido su respuesta. Vuelva a intentarlo." }, askForAuthentication: { noInputDigitalBot: "Proporcione su informaci\xF3n de autenticaci\xF3n para continuar.", noMatchDigitalBot: "No he entendido su respuesta. Vuelva a intentarlo." }, askSurveyQuestion: { notApplicable: "No aplicable", surveyAnswerOptionSequence: "Pulse %1$s para %2$s.", surveyAnswerNotApplicableSequence: "Pulse la estrella para No aplicable.", surveyAnswerNotApplicableWithQuestionSequence: "%1$s. Pulse la estrella para No aplicable.", voiceSurveyNoInputText: "Responda la pregunta.", voiceSurveyNoMatchText: "No le entend\xED." }, commonModule: { exitCommonModule: "Salir del m\xF3dulo com\xFAn" }, form: { noInputDigitalBot: "Complete el formulario para continuar.", noMatchDigitalBot: "Complete el formulario para continuar." }, messagingTemplate: { noInputDigitalBot: "Seleccione una de las opciones disponibles.", noMatchDigitalBot: "Seleccione una de las opciones disponibles." }, knowledgeSettings: { knowledgeAnswerHighlightFlowProgressionDefault: "Continuar", knowledgeAnswerHighlightFullArticleDefault: "Ver art\xEDculo completo", knowledgeInitialResponseMulti: "Para ayudarme a entender su meta, elija un n\xFAmero de la siguiente lista:", knowledgeInitialResponseMultiRetry: "Elija un n\xFAmero, por ejemplo '1'.\nEsta es la lista de opciones:", knowledgeNoMatch: "Ninguna de estas", knowledgeConfirmation: "\xBFEsto responde a su pregunta?", knowledgeFollowup: "Espero haber respondido su pregunta. Puede preguntar sobre cualquier otro tema que desee." }, noOverlay: { intent: { intentConfirmationStr1: "Creo que quiero", intentConfirmationStr2: "\xBFEs correcto?" }, youSaid: { youSaidConfirmationStr1: "Usted dijo", youSaidConfirmationStr2: "\xBFEs correcto?", youSaidConfirmationStr1DigitalBot: "Escribi\xF3" }, noInput: { noInputStr1: "Pronuncie o escriba", noInputStr1DigitalBot: "Escriba el" }, noMatch: { noMatchStr1: "Proporcione" }, whatIs: { whatIsQuestionStr1: "\xBFQu\xE9 es", whatIsQuestionStr2: "?" }, iGotContinuation: { iGotContinuationStr1: "De momento tengo", iGotContinuationStr2: ", contin\xFAe." } }, defaultCallFlowOne: "Flujo de llamadas predeterminado", errorHandlingAgentEscalationConfirmation: "\xBFDesea hablar con un asesor?", errorHandlingAgentEscalationHandover: "Espere un momento. Lo pondr\xE9 en contacto con alguien.", errorHandlingErrorEventHandover: "Se produjo un error. Espere un momento mientras lo pongo en contacto con alguien que lo pueda ayudar.", errorHandlingErrorEventHandoverVoiceSurvey: "Lo siento, se produjo un error. Hasta luego.", errorHandlingRecognitionEventHandover: "No logro comprender lo que dice. Espere un momento mientras lo pongo en contacto con alguien que lo pueda ayudar.", errorHandlingRecognitionEventHandoverVoiceSurvey: "Lo siento, no entiendo lo que dice. Hasta luego.", errorHandlingTTS: "Se produjo un error. Intente llamar de nuevo.", initialGreetingTTS: "Hola, este es el saludo inicial.", initialState: "Estado inicial", initialBotState: "Bot predeterminado", initialDigitalBotState: "Saludo inicial", initialSurveyBotState: "Bot de encuesta", intentConfirmation: "Creo que quiere %1$s, \xBFes correcto?", mainMenu: "Men\xFA principal", mainMenuTTS: "Se encuentra en el men\xFA principal; presione 9 para desconectar", mainTask: "Tarea", settingsConfirmationNoInputApology: "No logro escucharlo. Responda s\xED o no.", settingsConfirmationNoInputApologyDigitalBot: 'No se registr\xF3 ninguna entrada. Seleccione "S\xED" o "No".', settingsConfirmationNoMatchApology: "Responda s\xED o no.", settingsConfirmationNoMatchApologyDigitalBot: 'Seleccione "S\xED" o "No".', settingsNoInputApology: "No logro escucharlo.", settingsNoInputApologyDigitalBot: "No se registr\xF3 ninguna entrada.", settingsEndOfSessionMessageDigitalBot: "No he tenido noticias suyas por un tiempo. Por lo tanto, voy a cerrar este chat. No dude en regresar si vuelve a necesitar mi ayuda. Gracias.", settingsNoMatchApology: "Lo siento.", settingsNoToConfirmationApology: "Fue mi error.", periodicStateName: "Estado recurrente" }; + }, 88473: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.OutOfServiceProvider = void 0, t2.addOutOfServiceProperties = function(e3, t3) { + return new y(e3, t3); + }; + const n2 = i2(31635), r2 = i2(79364), o = n2.__importDefault(i2(92140)), a = n2.__importStar(i2(12847)), s = n2.__importStar(i2(10798)), l = n2.__importStar(i2(81858)), u = i2(69212), d = i2(50474), c = i2(50474), p = i2(50474), _ = i2(36781), h = n2.__importStar(i2(27099)), m = n2.__importDefault(i2(98114)), g = i2(58380), f = i2(55909), T = i2(33951); + class y { + constructor(e3, t3) { + this._target = e3, this.storeOnModel = t3, this._allSupportedFlowTypesMustBeAvailableInFlow = false, this._outOfServiceChangedSubject = new r2.Subject(), this.outOfServiceChanged$ = this._outOfServiceChangedSubject.asObservable(), e3.parentFlow, Object.defineProperties(this._target, { featureFlags: { get: () => this.featureFlags, set: (e4) => { + this.featureFlags = e4; + } }, hasOutOfServiceProvider: { value: true, writable: false }, outOfService: { get: () => this.outOfService, set: (e4) => { + this.outOfService = e4; + } }, outOfServiceProvider: { get: () => this }, supportedFlowTypes: { get: () => this.supportedFlowTypes, set: (e4) => { + this.supportedFlowTypes = e4; + } } }); + } + get className() { + return "OutOfServiceProvider"; + } + _resetProductFeatureRulesCache() { + this._oosFromProductFeatureRules = void 0; + } + get isOosFromProductFeatureRules() { + return this._oosFromProductFeatureRules && this.outOfService; + } + _updateOosFromProductFeatureRules() { + return !!(this._checkFeatureFlags() || this._checkTargetOptions() || this._checkFeatureConfig() || this._checkAntiFeatureConfig() || this._checkExpressionType() || this._checkSupportedFlowTypes()); + } + _checkFeatureFlags() { + if (this.featureFlags && !o.default.every(this.featureFlags, (e3) => h.isEnabled(e3))) return true; + } + _checkParentsForOOS() { + var e3, t3; + return !(!(0, c.isNormalExpression)(this._target) || !(null === (e3 = this._target.propertyParent) || void 0 === e3 ? void 0 : e3.outOfService) && !(null === (t3 = this._target.parentList) || void 0 === t3 ? void 0 : t3.outOfService)); + } + _checkTargetOptions() { + if ((0, p.isBaseExpression)(this._target) && this._target.options.featureConfigName && s.isFeatureUnavailable(this._target.options.featureConfigName)) return true; + } + _checkFeatureConfig() { + if (this.featureConfigName && s.isFeatureUnavailable(this.featureConfigName)) return true; + } + _checkAntiFeatureConfig() { + if (this.antiFeatureConfigName && s.isFeatureAvailable(this.antiFeatureConfigName)) return true; + } + _checkExpressionType() { + if ((0, c.isNormalExpression)(this._target) && this._target.parentFlow && this._target.options.assumeOosIfTypeUnavailable && !this._target.type.isAvailableForExpressionsFlowTypes(this._target)) return true; + } + _checkSupportedFlowTypes() { + var e3; + const t3 = this._target.parentFlow; + if (t3 && (null === (e3 = this.supportedFlowTypes) || void 0 === e3 ? void 0 : e3.length)) { + if (this.allSupportedFlowTypesMustBeAvailableInFlow && t3.getUnsupportedFlowTypes(this.supportedFlowTypes).length) return true; + if (!o.default.intersection(t3.destinationFlowTypes, this.supportedFlowTypes).length) return true; + } + } + _invokeOutOfServiceChanged() { + var e3; + if (this._outOfServiceChangedSubject.next(), o.default.isFunction(this._target.outOfServiceChanged)) try { + this._target.outOfServiceChanged(this._target.isValidating); + } catch (e4) { + console.error(e4); + } + this.storeOnModel && (this.outOfService ? this._target.model.outOfService = true : null === (e3 = this._target) || void 0 === e3 || delete e3.model.outOfService); + } + _shouldRecomputeOosFromProductFeatureRules() { + return void 0 === this._oosFromProductFeatureRules; + } + get outOfService() { + if (this._explicitOutOfService) return true; + let e3; + try { + let t3; + t3 = this._shouldRecomputeOosFromProductFeatureRules() ? this._updateOosFromProductFeatureRules() : this._oosFromProductFeatureRules, void 0 === this._oosFromProductFeatureRules && ((0, u.supportsInitializeDesignTime)(this._target) ? this._target.initializeDesignTimeCalled && (this._oosFromProductFeatureRules = t3) : this._oosFromProductFeatureRules = t3), e3 = t3 || this._checkParentsForOOS(); + } catch (e4) { + console.error(e4); + } + return e3 !== this._lastAutoOfService && (this._lastAutoOfService = e3, this._invokeOutOfServiceChanged()), this._lastAutoOfService; + } + set outOfService(e3) { + (e3 = !!e3) !== this._explicitOutOfService && (this._explicitOutOfService = e3, this._invokeOutOfServiceChanged()); + } + get featureConfigName() { + return this._featureConfigName; + } + set featureConfigName(e3) { + this._featureConfigName = e3, this._resetProductFeatureRulesCache(); + } + get antiFeatureConfigName() { + return this._antiFeatureConfigName; + } + set antiFeatureConfigName(e3) { + this._antiFeatureConfigName = e3; + } + get featureFlags() { + return this._featureFlags; + } + set featureFlags(e3) { + T.ParameterValidator.expectArray(e3, () => f.ParameterInfo.createPropertySet(this.className, "featureFlags", "value")), o.default.isArray(e3) && (this._target && this._target.isExpression && a.error("use expression options for the feature flags"), o.default.every(e3, (e4) => l[e4]) ? (this._featureFlags = e3, this._resetProductFeatureRulesCache()) : a.error("not valid feature names")); + } + get supportedFlowTypes() { + return this._supportedFlowTypes; + } + set supportedFlowTypes(e3) { + T.ParameterValidator.expectArray(e3, () => f.ParameterInfo.createPropertySet(this.className, "supportedFlowTypes", "value")), o.default.isArray(e3) && (!e3.length || o.default.find(e3, (e4) => m.default.getIsValidFlowType(e4)) ? (this._supportedFlowTypes = e3, this._destinationFlowTypesSubscription || (0, d.isCommonModuleFlow)(this._target.parentFlow) && (this._destinationFlowTypesSubscription = (0, g.createObservableForEvent$)(_.destinationFlowTypesChanged, this._target.parentFlow.commonModuleSettings).subscribe(() => { + this._resetProductFeatureRulesCache(); + })), this._resetProductFeatureRulesCache()) : a.error("not a valid flow type")); + } + destroy() { + var e3; + null === (e3 = this._destinationFlowTypesSubscription) || void 0 === e3 || e3.unsubscribe(), this._destinationFlowTypesSubscription = void 0, this._outOfServiceChangedSubject.complete(); + } + get allSupportedFlowTypesMustBeAvailableInFlow() { + return this._allSupportedFlowTypesMustBeAvailableInFlow; + } + set allSupportedFlowTypesMustBeAvailableInFlow(e3) { + this._allSupportedFlowTypesMustBeAvailableInFlow = e3, this._resetProductFeatureRulesCache(); + } + } + t2.OutOfServiceProvider = y; + }, 88557: (e2, t2, i2) => { + "use strict"; + var n2, r2; + Object.defineProperty(t2, "__esModule", { value: true }); + const o = i2(31635), a = i2(80295), s = i2(80295), l = i2(19596), u = o.__importDefault(i2(7401)); + class d extends l.DataContract { + constructor(e3) { + super(e3), (0, s.makeUnenumerable)(this, "_defaultAbortMessage"); + } + pasteReIdOrRename(e3) { + super.pasteReIdOrRename(e3), this.defaultAbortMessage && this.defaultAbortMessage.pasteReIdOrRename(e3); + } + pasteResolveOldToNewValues(e3) { + super.pasteResolveOldToNewValues(e3), this.defaultAbortMessage && this.defaultAbortMessage.pasteResolveOldToNewValues(e3); + } + get defaultAbortMessage() { + return this._defaultAbortMessage; + } + set defaultAbortMessage(e3) { + this._defaultAbortMessage = this.reviveItem(e3, u.default); + } + } + t2.default = d, o.__decorate([(0, a.enumerable)(true), o.__metadata("design:type", "function" == typeof (n2 = void 0 !== u.default && u.default) ? n2 : Object), o.__metadata("design:paramtypes", ["function" == typeof (r2 = void 0 !== u.default && u.default) ? r2 : Object])], d.prototype, "defaultAbortMessage", null); + }, 88589: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.count = void 0; + var n2 = i2(92070); + t2.count = function(e3) { + return n2.reduce(function(t3, i3, n3) { + return !e3 || e3(i3, n3) ? t3 + 1 : t3; + }, 0); + }; + }, 88616: function(e2, t2, i2) { + "use strict"; + var n2 = this && this.__read || function(e3, t3) { + var i3 = "function" == typeof Symbol && e3[Symbol.iterator]; + if (!i3) return e3; + var n3, r3, o2 = i3.call(e3), a2 = []; + try { + for (; (void 0 === t3 || t3-- > 0) && !(n3 = o2.next()).done; ) a2.push(n3.value); + } catch (e4) { + r3 = { error: e4 }; + } finally { + try { + n3 && !n3.done && (i3 = o2.return) && i3.call(o2); + } finally { + if (r3) throw r3.error; + } + } + return a2; + }; + Object.defineProperty(t2, "__esModule", { value: true }), t2.fromEvent = void 0; + var r2 = i2(19724), o = i2(48051), a = i2(67478), s = i2(94975), l = i2(10281), u = i2(13916), d = ["addListener", "removeListener"], c = ["addEventListener", "removeEventListener"], p = ["on", "off"]; + function _(e3, t3) { + return function(i3) { + return function(n3) { + return e3[i3](t3, n3); + }; + }; + } + t2.fromEvent = function e3(t3, i3, h, m) { + if (l.isFunction(h) && (m = h, h = void 0), m) return e3(t3, i3, h).pipe(u.mapOneOrManyArgs(m)); + var g = n2((function(e4) { + return l.isFunction(e4.addEventListener) && l.isFunction(e4.removeEventListener); + })(t3) ? c.map(function(e4) { + return function(n3) { + return t3[e4](i3, n3, h); + }; + }) : (function(e4) { + return l.isFunction(e4.addListener) && l.isFunction(e4.removeListener); + })(t3) ? d.map(_(t3, i3)) : (function(e4) { + return l.isFunction(e4.on) && l.isFunction(e4.off); + })(t3) ? p.map(_(t3, i3)) : [], 2), f = g[0], T = g[1]; + if (!f && s.isArrayLike(t3)) return a.mergeMap(function(t4) { + return e3(t4, i3, h); + })(r2.innerFrom(t3)); + if (!f) throw new TypeError("Invalid event target"); + return new o.Observable(function(e4) { + var t4 = function() { + for (var t5 = [], i4 = 0; i4 < arguments.length; i4++) t5[i4] = arguments[i4]; + return e4.next(1 < t5.length ? t5 : t5[0]); + }; + return f(t4), function() { + return T(t4); + }; + }); + }; + }, 88654: (e2, t2, i2) => { + const n2 = i2(45214), r2 = i2(56322); + function o() { + Object.defineProperties(this, { _engine: { writable: true }, _voice: { writable: true } }), o.baseConstructor.apply(this, arguments); + } + n2.extend(o, "TTSData"), Object.defineProperties(o.prototype, { engine: { enumerable: true, get: function() { + return this._engine || (this._engine = new r2()), this._engine; + }, set: function(e3) { + this._engine = this.reviveItem(e3, r2); + } }, voice: { enumerable: true, get: function() { + return this._voice || (this._voice = new r2()), this._voice; + }, set: function(e3) { + this._voice = this.reviveItem(e3, r2); + } } }), e2.exports = o; + }, 88715: (e2, t2, i2) => { + function n2() { + n2.baseConstructor.apply(this, arguments); + } + i2(74817).extend(n2, "ClipboardManifestItemStateModel", true), e2.exports = n2; + }, 88732: (e2, t2, i2) => { + function n2() { + n2.baseConstructor.apply(this, arguments); + } + i2(45214).extend(n2, "BaseClipboardDependencyModel"), e2.exports = n2; + }, 88779: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(54063)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "externalPhoneNumberCollection"; + } + get displayTypeName() { + return "ArchValueExternalPhoneNumberCollection"; + } + get isArchValueExternalPhoneNumberCollection() { + return true; + } + } + t2.default = r2; + }, 88802: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.isIsoLanguageViewModel = function(e3) { + return true === (null == e3 ? void 0 : e3.isIsoLanguageViewModel); + }; + const n2 = i2(31635), r2 = i2(17604), o = n2.__importDefault(i2(92140)), a = n2.__importDefault(i2(6953)), s = i2(10798), l = n2.__importDefault(i2(98114)), u = n2.__importDefault(i2(41510)), d = i2(55299), c = n2.__importDefault(i2(4648)); + class p extends d.BaseClass { + constructor(e3) { + super(), this.contexts = { case: [], gender: [], quantity: [] }, this.debug = {}, this.features = {}, this.functions = {}, this.id = e3.id, this._lowerId = e3.id.toLowerCase(), this.hasFlowCreationTTS = e3.hasFlowCreationTTS, this.hasFlowDebugTTS = e3.hasFlowDebugTTS, this.isAutomateFlowCreateSuggestion = e3.isAutomateFlowCreateSuggestion, this.needsServerInfo = e3.needsServerInfo, this.text = e3.text; + } + get className() { + return "IsoLanguageViewModel"; + } + get isIsoLanguageViewModel() { + return true; + } + addServerData(e3) { + const t3 = this.id; + this.contexts = e3.contexts, this.debug = e3.debug, this.features = e3.features || {}, this.functions = e3.functions || {}, this.id = t3, this._lowerId = t3.toLowerCase(), this.contexts && (this._setUpContexts(this.contexts.case, "case"), this._setUpContexts(this.contexts.gender, "gender"), this._setUpContexts(this.contexts.quantity, "quantity")); + } + get displayString() { + return (0, r2.sprintf)(u.default.setLocale.fullLanguageNameContext, this.text, this.idExpressionText); + } + get knowledgeBaseLanguageTag() { + var e3, t3; + return null === (t3 = null === (e3 = this.features) || void 0 === e3 ? void 0 : e3.knowledgeBase) || void 0 === t3 ? void 0 : t3.language; + } + getSupportsRdpSpeechRecAndTtsForFlow(e3) { + const t3 = e3.getAllDestinationFlowTypesSupportAudioDataPlaybackForLang(this), i3 = e3.getAllDestinationFlowTypesSupportSpeechRecForLang(this), n3 = this.getSupportsTTSPlaybackForFlow(e3); + return t3 && i3 && n3; + } + getSupportsRdpSpeechRecAndTtsForFlowType(e3) { + const t3 = this.getSupportsAudioDataPlaybackForFlowType(e3), i3 = this.getSupportsSpeechRecForFlowType(e3), n3 = this.getSupportsTTSPlaybackForFlowType(e3); + return t3 && i3 && n3; + } + getSupportsKnowledgeForFlowType(e3) { + var t3, i3, n3; + return !!(null === (t3 = l.default.getDefinitionForFlowType(e3)) || void 0 === t3 ? void 0 : t3.supportsKnowledge) && (null === (n3 = null === (i3 = this.features) || void 0 === i3 ? void 0 : i3.knowledgeBase) || void 0 === n3 ? void 0 : n3.isAvailable); + } + getSupportsAudioDataPlaybackForFlowType(e3) { + return this.features && this.features.runtimeDataPlayback && this.features.runtimeDataPlayback.flowTypes[e3] && this.features.runtimeDataPlayback.flowTypes[e3].isAvailable; + } + getSupportsSpeechRecForFlowType(e3) { + return this.features && this.features.speechRec && this.features.speechRec.flowTypes[e3] && this.features.speechRec.flowTypes[e3].isAvailable; + } + getSelectedTtsEngine(e3) { + if (!e3) return null; + const t3 = e3.languages.getSupportedLanguageOption(this.id); + return t3 && t3.textToSpeech && t3.textToSpeech ? t3.textToSpeech.getSelectedEngine() : null; + } + getSupportsTTSPlaybackForFlowType(e3, t3) { + if (!o.default.isNullOrUndefined(e3)) { + const t4 = l.default.getDefinitionForFlowType(e3); + if (t4) { + if (t4.languageTtsAndAsrSettingsComeFromConversation) return true; + if (!t4.languagesSupportTtsAndAsrRuntime) return false; + } + } + if ((0, s.isFeatureAvailable)(c.default.flexibleTtsSelection) && t3) { + const i3 = t3.topParentFlow; + return !l.default.getDefinitionForFlowType(i3.type).languagesSupportTtsAndAsrSettings && i3.isCommonModuleFlow ? i3.destinationFlowTypes.every((e4) => l.default.getDefinitionForFlowType(e4).languagesSupportTtsAndAsrSettings) : a.default.getSelectableEnginesForLanguageAndFlowTypeOrTypes(this._lowerId, e3).length > 0; + } + return !!a.default.getEnginesForLanguageAndFlowTypeOrTypes(this.id, e3)[0]; + } + getSupportsTTSPlaybackForFlow(e3) { + if (!e3) return false; + if (e3.definition.languageTtsAndAsrSettingsComeFromConversation) return true; + const t3 = e3.languages.getSupportedLanguageOption(this.id); + return (null == t3 ? void 0 : t3.textToSpeech) ? t3.textToSpeech.hasUsableEngineSelectedForLanguage : this.getSupportsTTSPlaybackForFlowType(e3.type); + } + getSupportsTranscriptionForFlowType(e3) { + return !!(e3 && this.features && this.features.transcription) && this.features.transcription.flowTypes[e3] && this.features.transcription.flowTypes[e3].isAvailable; + } + getSupportsVoicemailTypeForFlowType(e3, t3) { + if (!e3 || !this.features || !this.features.voicemail) return false; + const i3 = this.features.voicemail[t3.name]; + return !!i3 && i3.flowTypes[e3] && i3.flowTypes[e3].isAvailable; + } + getStringExceedsMaxRequestLengthError(e3, t3, i3) { + if (!e3 || !o.default.isString(t3) || !e3.definition.supportsAudio) return null; + const n3 = this.getSelectedTtsEngine(e3); + return n3 ? n3.getStringExceedsMaxRequestLengthError(t3, i3, this.id) : null; + } + get idExpressionText() { + return !this._lowerId && this.id && (this._lowerId = this.id.toLowerCase()), this._lowerId; + } + _setUpContexts(e3, t3) { + o.default.each(e3, (e4) => { + e4 = e4.charAt(0).toUpperCase() + e4.slice(1); + const i3 = t3 + e4; + this.supportedLanguageContexts || (this.supportedLanguageContexts = {}), this.supportedLanguageContexts[i3] = true; + }); + } + } + t2.default = p; + }, 88827: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = i2(26847), o = n2.__importDefault(i2(57382)); + class a extends o.default { + constructor(e3) { + super(e3); + } + get displayTypeName() { + return "ArchBaseActionWithOutputsFoundNotFound"; + } + get isArchBaseActionWithOutputsFoundNotFound() { + return true; + } + get outputFound() { + return this._getOutputById(r2.outputIds.found, true); + } + get outputNotFound() { + return this._getOutputById(r2.outputIds.notFound, true); + } + } + t2.default = a; + }, 88835: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importDefault(i2(92140)), o = n2.__importDefault(i2(62121)), a = n2.__importDefault(i2(16945)); + class s extends a.default { + constructor(e3, t3, i3, n3, o2, a2, s2, l, u, d, c, p, _, h, m, g) { + super(e3, t3, i3, n3, s2, l, u, d, c, p, _, h, m), Object.defineProperties(this, { _generators: { value: r2.default.isObject(o2) ? o2 : {} }, _partConfigurators: { value: r2.default.isObject(a2) ? a2 : {} } }), this.displayStringOverride = g; + } + get generators() { + return this._generators; + } + get partConfigurators() { + return this._partConfigurators; + } + getExpressionGenerator(e3) { + if (this._generators.getExpressionGenerator && r2.default.isFunction(this._generators.getExpressionGenerator)) { + const t3 = this._generators.getExpressionGenerator(e3, this.generators); + if (t3) return t3; + } + return this._generators.expressionGenerator; + } + get className() { + return "BaseBuilderPartDef"; + } + get isBaseBuilderPartDef() { + return true; + } + createBuilderPartViewModel(e3, t3, i3) { + throw "You must override the createBuilderPartViewModel method in inheriting classes"; + } + reviveItem(e3, t3, i3, n3) { + throw "You must override the reviveItem method in inheriting classes"; + } + get modelType() { + return o.default; + } + } + t2.default = s; + }, 88874: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(54757)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "surveyQuestionGroupCollection"; + } + get displayTypeName() { + return "ArchValueSurveyQuestionGroupCollection"; + } + get isArchValueSurveyQuestionGroupCollection() { + return true; + } + } + t2.default = r2; + }, 88877: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.audit = void 0; + var n2 = i2(65212), r2 = i2(19724), o = i2(17214); + t2.audit = function(e3) { + return n2.operate(function(t3, i3) { + var n3 = false, a = null, s = null, l = false, u = function() { + if (null == s || s.unsubscribe(), s = null, n3) { + n3 = false; + var e4 = a; + a = null, i3.next(e4); + } + l && i3.complete(); + }, d = function() { + s = null, l && i3.complete(); + }; + t3.subscribe(o.createOperatorSubscriber(i3, function(t4) { + n3 = true, a = t4, s || r2.innerFrom(e3(t4)).subscribe(s = o.createOperatorSubscriber(i3, u, d)); + }, function() { + l = true, (!n3 || !s || s.closed) && i3.complete(); + })); + }); + }; + }, 88878: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = i2(92794), o = i2(92794), a = n2.__importDefault(i2(92140)), s = n2.__importDefault(i2(7401)), l = n2.__importStar(i2(36781)), u = n2.__importStar(i2(58380)), d = n2.__importDefault(i2(73198)), c = n2.__importStar(i2(81116)), p = n2.__importDefault(i2(22226)), _ = n2.__importStar(i2(63352)), h = i2(14394), m = i2(26403), g = i2(69149), f = n2.__importDefault(i2(16864)), T = i2(24032).getTopic("MarkdownPartWithExpressionsViewModel"), y = i2(47957), S = "{{", A = "markdownText"; + class N extends f.default { + get curlyExpression() { + return this._curlyExpression || (this._curlyExpression = c.doNotTrackExpression(this.parentFlow, this.owningExpression.parent, new s.default(), "", h.globalTypes.any, ""), this._curlyExpression.setModeWithTransition(_.expression), this._curlyExpression.initializeDesignTime(), this.clearCurlyExpressionResult()), this._curlyExpression; + } + constructor({ builderViewModel: e3, owningExpressionViewModel: t3, builderPartModel: i3, overrideBuilderPartDef: n3, reId: r3 }) { + super({ builderViewModel: e3, owningExpressionViewModel: t3, builderPartModel: i3, overrideBuilderPartDef: n3, reId: r3 }), this._hasNoClosingCurlyBraces = false, this._hasNestedCurlyBraces = false, this._processMarkdownTextCalled = false; + } + get isCommunicationPart() { + return this.builderPartDef.id === g.builderPartIds.communication.markdown; + } + get isStringPart() { + return this.builderPartDef.id === g.builderPartIds.string.markdown; + } + clearCurlyExpressionResult() { + this.curlyExpression.setText(this.isStringPart ? "ToString(NOT_SET)" : "ToCommunication(NOT_SET)", true); + } + get curlyExpressionHasError() { + var e3; + return (null === (e3 = this.curlyExpression._parseResult) || void 0 === e3 ? void 0 : e3.resultType) === m.ParseResultTypes.error; + } + verifyCurlyExpression(e3, t3) { + var i3, n3, r3, o2; + if (!e3 || this.curlyExpressionHasError) return e3; + this.curlyExpression.setText(e3, true), (null === (i3 = this.curlyExpression._parseResult) || void 0 === i3 ? void 0 : i3.resultType) !== m.ParseResultTypes.error && (null === (r3 = null === (n3 = this.curlyExpression._parseResult) || void 0 === n3 ? void 0 : n3.resultExpression) || void 0 === r3 ? void 0 : r3.isCollection) && (this.curlyExpression.setText(`ToCommunication(${e3})`, true), (null === (o2 = this.curlyExpression._parseResult) || void 0 === o2 ? void 0 : o2.resultType) !== m.ParseResultTypes.error ? e3 = `ToCommunication(${e3})` : this.curlyExpression.setText(e3, true)); + const s2 = this.curlyExpression._parseResult; + if ((null == s2 ? void 0 : s2.resultType) === m.ParseResultTypes.error) { + const i4 = s2.resultPosition; + return s2.resultPosition = i4 >= 0 ? i4 + t3 : -1, a.default.isString(s2.resultMessage) && a.default.isNumber(i4) && (s2.resultMessage = s2.resultMessage.replace((i4 + 1).toString(), s2.resultPosition.toString())), u.fireEvent(this.curlyExpression, l.expressionParseComplete), e3; + } + return (null == s2 ? void 0 : s2.resultType) && (s2.resultMessage = void 0, s2.resultPosition = void 0, s2.resultType = void 0, u.fireEvent(this.curlyExpression, l.expressionParseComplete)), e3; + } + get _overrideErrorText() { + if (this._processMarkdownTextCalled || this.setMarkdownTextImmediate(this.getSavedMarkdownText()), this.curlyExpressionHasError) return this._curlyExpression.resultMessage; + } + getMarkdownImageFromString(e3) { + const t3 = e3.indexOf("!["); + if (-1 === t3) return; + const i3 = e3.indexOf("](", t3 + 2); + if (-1 === i3) return; + const n3 = e3.indexOf(")", i3 + 2); + if (-1 === n3) return; + const r3 = { startPos: t3, endPos: n3 + 1, url: e3.substring(i3 + 2, n3) }; + return t3 + 2 < i3 - 1 && (r3.alternateText = e3.substring(t3 + 2, i3)), r3; + } + generateExpressionTextForMarkdownPart(e3, t3, i3, n3) { + if (a.default.isString(e3) && e3.length) { + const r3 = e3.length; + if (t3) { + if (this.isCommunicationPart || this.isStringPart) { + let t4 = e3.trim(); + t4.trim().length && (t4 = this.verifyCurlyExpression(t4, n3), i3.push(this.isStringPart ? `ToDisplayString(${t4})` : `${t4}`)); + } + } else { + let t4 = this.getMarkdownImageFromString(e3); + for (; t4; ) t4.startPos > 0 && i3.push(`"${p.default.rawEscapeStringForExpressionMode(e3.substring(0, t4.startPos))}"`), i3.push(`MakeImageFromUrl("${p.default.rawEscapeStringForExpressionMode(t4.url)}")`), t4 = (e3 = e3.substring(t4.endPos + 1)) ? this.getMarkdownImageFromString(e3) : void 0; + e3 && i3.push(`"${p.default.rawEscapeStringForExpressionMode(e3)}"`); + } + return r3; + } + return 0; + } + get isMarkdownSingleExpressionPart() { + return true; + } + get markdownExpression() { + return this.builderPartExpressions[0]; + } + getSavedMarkdownText() { + var e3; + return null === (e3 = this.markdownExpression) || void 0 === e3 ? void 0 : e3.getUiMetaData(A); + } + _validateBuilderObject(e3, t3) { + return !!super._validateBuilderObject(e3, t3) && (this._updateBracesWarnings(this._hasNoClosingCurlyBraces, this._hasNestedCurlyBraces), this._hasNoClosingCurlyBraces && e3.addWarning(this, y.markdownEditor.missingClosingCurlyBraces), this._hasNestedCurlyBraces && e3.addWarning(this, y.markdownEditor.nestedCurlyBraces), true); + } + checkCurlyBraceWarnings(e3) { + const t3 = ((e3 = e3 || "").match(/\{\{[^}]*}}/g) || []).some((e4) => /\{\{/.test(e4.slice(2, -2))), i3 = e3.replace(/\{\{[^}]*}}/g, "").includes(S); + this._hasNestedCurlyBraces = t3, this._hasNoClosingCurlyBraces = !t3 && i3; + } + _processMarkdownText() { + var e3; + this._processMarkdownTextCalled = true; + const t3 = this.markdownExpression; + if (!t3) return; + this._markdownTextToSet = this._markdownTextToSet || "", t3.setUiMetaData(A, this._markdownTextToSet), this.clearCurlyExpressionResult(), this.checkCurlyBraceWarnings(this._markdownTextToSet); + const i3 = this._markdownTextToSet.split(S); + if (this._markdownTextToSet = void 0, 0 === i3.length) return void t3.setAsExpression('""'); + const n3 = []; + let r3 = 0; + if (this.clearCurlyExpressionResult(), 1 === i3.length) r3 += this.generateExpressionTextForMarkdownPart(i3[0], false, n3, r3); + else for (let t4 = 0; t4 < i3.length; t4++) { + const o3 = i3[t4], a2 = t4 > 0; + if (0 === o3.length) { + if (a2 && (r3 += this.generateExpressionTextForMarkdownPart(S, false, n3, r3), null === (e3 = this.curlyExpression._parseResult) || void 0 === e3 ? void 0 : e3.resultType)) break; + } else if (a2) { + const e4 = o3.split("}}"); + if (1 === e4.length) { + if (r3 += this.generateExpressionTextForMarkdownPart(`${S}${e4[0]}`, false, n3, r3), this.curlyExpressionHasError) break; + r3 += 2; + } else { + if (r3 += this.generateExpressionTextForMarkdownPart(e4[0], true, n3, r3 + 2), this.curlyExpressionHasError) break; + r3 += 2; + for (let t5 = 1; t5 < e4.length && (r3 += this.generateExpressionTextForMarkdownPart(e4[t5], false, n3, r3 + 2), !this.curlyExpressionHasError); t5++) r3 += 2; + } + } else { + if (r3 += this.generateExpressionTextForMarkdownPart(o3, false, n3, r3 + 2), this.curlyExpressionHasError) break; + r3 += 2; + } + } + const o2 = () => { + this._updateBracesWarnings(this._hasNoClosingCurlyBraces, this._hasNestedCurlyBraces); + }; + 0 === n3.length ? t3.setAsExpression(d.default.notSet, void 0, o2) : 1 === n3.length ? t3.setAsExpression(n3[0], void 0, o2) : this.isStringPart ? t3.setAsExpression(`Append(${n3.join(", ")})`, void 0, o2) : this.isCommunicationPart && t3.setAsExpression(`MakeCommunication(${n3.join(", ")})`, void 0, o2); + } + _initializeDesignTime() { + super._initializeDesignTime(); + const e3 = this.getSavedMarkdownText(); + e3 && (this._loadSubscription = this.parentFlow.loaded$.pipe((0, o.skipWhile)((e4) => !e4), (0, r2.take)(1)).subscribe(() => { + this.setMarkdownTextImmediate(e3); + })); + } + destroy() { + var e3, t3; + super.destroy(), null === (e3 = this._curlyExpression) || void 0 === e3 || e3.destroy(), null === (t3 = this._loadSubscription) || void 0 === t3 || t3.unsubscribe(); + } + setMarkdownTextImmediate(e3) { + this._markdownTextToSet = e3, this._processMarkdownText(); + } + setMarkdownText(e3) { + this._markdownTimeout && clearTimeout(this._markdownTimeout), this._markdownTextToSet = e3, this._markdownTimeout = setTimeout(() => { + this.isDestroyed ? T.error(`cannot set markdown text because we have been destroyed: builderPartDefId:${this.builderPartDefId}`) : this._processMarkdownText(); + }, 250); + } + _updateBracesWarnings(e3, t3) { + t3 ? this.markdownExpression.setParseWarning(y.markdownEditor.nestedCurlyBraces) : e3 && this.markdownExpression.setParseWarning(y.markdownEditor.missingClosingCurlyBraces); + } + get className() { + return "MarkdownPartWithExpressionsViewModel"; + } + get isMarkdownPartWithExpressionsViewModel() { + return true; + } + } + t2.default = N; + }, 88911: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = i2(30801), o = n2.__importDefault(i2(21345)); + class a extends o.default { + constructor(e3) { + super(e3), this._utilizationLabel = this.coreFactory.createArchWrapper(e3.utilizationLabel); + } + get _actionTypeId() { + return r2.setUtilizationLabelActionType; + } + get displayTypeName() { + return this._scriptingName; + } + get isArchActionSetUtilizationLabel() { + return true; + } + get utilizationLabel() { + return this._utilizationLabel; + } + get setUtilizationLabelOutputsFailure() { + return this._coreActionViewModel.errorBindings ? this.coreFactory.createArchWrapper(this._coreActionViewModel.errorBindings) : null; + } + } + t2.default = a; + }, 89016: (e2, t2, i2) => { + const n2 = i2(75458), { terminateWorkitemActionType: r2 } = i2(30801); + function o() { + o.baseConstructor.apply(this, arguments); + } + n2.extend(o, r2, true), e2.exports = o; + }, 89034: (e2, t2, i2) => { + "use strict"; + var n2; + Object.defineProperty(t2, "__esModule", { value: true }); + const r2 = i2(31635), o = r2.__importDefault(i2(92140)), a = r2.__importDefault(i2(61864)), s = r2.__importStar(i2(1115)), l = i2(55299), u = i2(50474), d = i2(50474), c = i2(80295), p = i2(47957), _ = "reader", h = "writer"; + function m(e3, t3, i3) { + const n3 = { expression: t3, referenceElement: t3, isReader: i3 === _, isWriter: i3 === h, icon: i3 === _ ? a.default.book : a.default.modifyIntents, titleText: i3 === _ ? p.dataView.usageReaderTitle : p.dataView.usageWriterTitle }; + return !e3.usages[t3.id] && (e3.usages[t3.id] = n3, true); + } + class g extends l.BaseClass { + _canDelete() { + } + get name() { + } + get isSecure() { + } + get id() { + } + get isDestroyedOrDestroying() { + } + get initializeDesignTimeCalled() { + } + constructor() { + super(), this.usages = {}, n2.set(this, void 0), (0, c.makeUnenumerable)(this, "transferring"); + } + get className() { + return "UsageItem"; + } + get isUsageItem() { + return true; + } + get hasVisibleUsages() { + return this.visibleUsages && !o.default.isEmpty(this.visibleUsages); + } + get outOfServiceUsages() { + return o.default.filter(this.usages, (e3) => e3.referenceElement.outOfService); + } + get visibleUsages() { + return this._visibleUsages; + } + canDelete() { + return !(this._canDelete && !this._canDelete() || this._hasWriters()); + } + addReader(e3) { + e3 && (m(this, e3, _), this.initializeDesignTimeCalled && s.validateItem(this, true)); + } + addWriter(e3) { + e3 && m(this, e3, h) && (o.default.isBoolean(this.isSecure) && this._updateExpressionSecurity(e3), this.initializeDesignTimeCalled && s.validateItem(this, true)); + } + deleteItem(e3) { + this.canDelete() && (e3 && this.parentFlow.supportsAutoDeletingVariablesWithNoUsages ? this.destroy() : e3 || this.destroy()); + } + deleteReference(e3) { + this.removeUsage(e3) && (this.isSecure && this._updateExpressionSecurity(e3), (0, u.isBaseExpression)(e3) && e3.variables && this.id && e3.variables[this.id] && delete e3.variables[this.id]); + } + removeUsage(e3, t3) { + return !!this.usages[e3.id] && (delete this.usages[e3.id], t3 || s.validateItem(this), true); + } + removeUsageForFlow(e3) { + o.default.each(this.usages, (t3) => { + t3.referenceElement.parentFlow.id === e3.id && this.removeUsage(t3.referenceElement); + }); + } + transferUsages(e3, t3) { + this.transferring = true; + try { + if (!e3 || !t3 || o.default.isEmpty(t3)) return; + const i3 = this.name, n3 = (0, d.isString)(e3) ? e3 : e3.name; + o.default.each(t3, (t4) => { + t4.isReader && (0, u.isBaseExpression)(t4.referenceElement) && t4.referenceElement.replaceUsages(i3, n3, e3); + }), o.default.each(t3, (e4) => { + if (e4.isWriter && (0, u.isBaseExpression)(e4.referenceElement)) { + const t4 = e4.referenceElement.text; + e4.referenceElement.setText((t4 || "").replace(i3, n3), true), this.deleteReference(e4.referenceElement); + } + }); + } finally { + this.transferring = false; + } + } + updateSecurityForUsages() { + const e3 = o.default.clone(this.usages); + if (o.default.isBoolean(this.isSecure)) { + const t3 = []; + o.default.each(e3, (e4) => { + (0, u.isBaseExpression)(e4.referenceElement) && this._updateExpressionSecurity(e4.referenceElement, t3); + }), o.default.each(t3, (e4) => { + s.validateNode(e4); + }); + } + } + get _visibleUsages() { + return o.default.reject(this.usages, (e3) => e3.referenceElement.outOfService || e3.referenceElement.isDestroyed); + } + _updateExpressionSecurity(e3, t3) { + if (!e3) return; + if (r2.__classPrivateFieldGet(this, n2, "f") === e3) return; + if (this.isSecure === e3.consumesSecureData) return; + if (this.isDestroyedOrDestroying) return; + if (!(0, u.isBaseExpression)(e3)) return; + const i3 = r2.__classPrivateFieldGet(this, n2, "f"); + r2.__classPrivateFieldSet(this, n2, e3, "f"); + try { + e3.updateSecureUsage(e3.parentFlow.validationResults, t3); + } finally { + r2.__classPrivateFieldSet(this, n2, i3, "f"); + } + } + _hasWriters() { + return o.default.where(this.usages, { isWriter: true }).length > 0; + } + } + n2 = /* @__PURE__ */ new WeakMap(), t2.default = g; + }, 89059: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.ArchFactoryFlows = void 0; + const n2 = i2(31635), r2 = n2.__importDefault(i2(33231)), o = n2.__importStar(i2(74359)), a = i2(94110), s = i2(66663), l = i2(27491), u = i2(96618), d = i2(68694), c = i2(24812), p = i2(17894), _ = i2(56969), h = i2(17894), m = i2(17894), g = i2(56969), f = i2(99918), T = i2(9456), y = i2(38725), S = n2.__importStar(i2(27099)), A = n2.__importStar(i2(46920)), N = n2.__importDefault(i2(98114)), O = n2.__importDefault(i2(17848)), I = n2.__importDefault(i2(90396)), v = n2.__importStar(i2(19312)), C = n2.__importStar(i2(51998)), b = n2.__importStar(i2(44392)), E = n2.__importStar(i2(98442)), R = n2.__importStar(i2(97591)), w = n2.__importDefault(i2(78432)), D = n2.__importDefault(i2(3220)), P = n2.__importDefault(i2(98717)), M = n2.__importDefault(i2(56549)), F = n2.__importDefault(i2(41714)), L = n2.__importDefault(i2(94225)), x = n2.__importDefault(i2(84433)), k = n2.__importDefault(i2(60571)), V = n2.__importDefault(i2(31375)), U = n2.__importDefault(i2(37824)), B = n2.__importDefault(i2(54625)), G = n2.__importDefault(i2(22999)), j = n2.__importDefault(i2(65641)), W = n2.__importDefault(i2(55974)), q = n2.__importDefault(i2(24212)), Y = n2.__importDefault(i2(44130)), H = n2.__importDefault(i2(58407)), J = n2.__importDefault(i2(40192)), z = n2.__importDefault(i2(44231)), K = n2.__importDefault(i2(83737)), $ = n2.__importDefault(i2(98253)), Q = n2.__importDefault(i2(66350)), X = n2.__importDefault(i2(74920)), Z = n2.__importDefault(i2(71191)), ee = n2.__importDefault(i2(43314)), te = i2(50474), ie = i2(50474), ne = i2(50474), re = i2(50474), oe = i2(50474), ae = i2(20850), se = n2.__importDefault(i2(84783)); + class le extends se.default { + constructor() { + super(), Object.defineProperties(this, { _defaultCreationDivision: { writable: true } }), r2.default.all([o.bootstrapLanguageDataLoaded, o.featureTogglesLoaded, o.divisionsLoaded]).then(() => { + if (this.logNote("ArchFactoryFlows startup initialization - begin."), L.default.orgInfo.areDivisionsAvailable) { + this.logNote("Divisions are available for this organization. Now processing division information to determine the default flow creation division to set on the flow factory."); + const e3 = this.getDefaultDivisionWhereUserCanAdd(); + this.defaultFlowCreationDivision = e3, this.logNote(e3 ? `The default flow creation division is '${e3.logStr}'.` : "The currently logged in user will not be able to create any flows. While division support is enabled, there are no divisions in which the currently logged in user has ability to add flows. This error often happens when you are missing architect:flow permissions such as add, edit, or view in at least one division."); + } + this.logNote("ArchFactoryFlows startup initialization - end."), L.default._setFactoryFlowStartupComplete(); + }); + } + getDefaultDivisionWhereUserCanAdd() { + var e3; + let t3 = L.default.orgInfo.getHomeDivision(); + return t3 && t3.canAddFlow || (t3 = null === (e3 = L.default.orgInfo.getAllDivisions()) || void 0 === e3 ? void 0 : e3.find((e4) => e4 && e4.canAddFlow)), t3; + } + get defaultFlowCreationDivision() { + if (L.default.orgInfo.areDivisionsAvailable) return this._defaultCreationDivision; + } + set defaultFlowCreationDivision(e3) { + const t3 = this._infoPropSet("newValue", "defaultFlowCreationDivision"); + if (this._ensureSessionIsConnected(t3, L.default), L.default.orgInfo.areDivisionsAvailable || this._itemIsInvalid(t3, "divisions are not supported for the current organization."), (0, oe.isUndefined)(e3) || null === e3) return this._defaultCreationDivision = void 0, void this.logNote("the default flow creation division successfully set to undefined. In order for flow creation calls to succeed, a division will need to be passed in for the division override parameter."); + this._checkItem(t3, !e3 || !e3.isArchDivision, "the default flow creation division must be an ArchDivision instance."), this._checkItem(t3, !e3.canAddFlow, "attempting to set the default flow creation division to a division whose canAddFlow property is false. " + e3.logStr), this._defaultCreationDivision = e3, this.logNote("the default flow creation division successfully set to " + e3.logStr); + } + get displayTypeName() { + return "ArchFactoryFlows"; + } + get logStr() { + return this._createLogStrFromParts(["ArchFactoryFlows"]); + } + get isArchFactoryFlows() { + return true; + } + _createFlowViewModel(e3, t3, i3) { + const n3 = this._infoParm("flowType", i3); + let r3; + switch (t3.isFlowInfoViewModel || (t3 = new I.default(t3)), e3) { + case u.flowTypes.flowTypeBot: + r3 = x.default; + break; + case u.flowTypes.flowTypeCommonModule: + r3 = k.default; + break; + case u.flowTypes.flowTypeInboundCall: + r3 = B.default; + break; + case u.flowTypes.flowTypeDigitalBot: + r3 = V.default; + break; + case u.flowTypes.flowTypeEmailSend: + r3 = U.default; + break; + case u.flowTypes.flowTypeInboundChat: + r3 = G.default; + break; + case u.flowTypes.flowTypeInQueueCall: + r3 = q.default; + break; + case u.flowTypes.flowTypeInQueueEmail: + r3 = Y.default; + break; + case u.flowTypes.flowTypeInQueueShortMessage: + r3 = H.default; + break; + case u.flowTypes.flowTypeOutboundCall: + r3 = J.default; + break; + case u.flowTypes.flowTypeSecureCall: + r3 = z.default; + break; + case u.flowTypes.flowTypeInboundEmail: + r3 = j.default; + break; + case u.flowTypes.flowTypeInboundShortMessage: + r3 = W.default; + break; + case u.flowTypes.flowTypeSurveyInvite: + r3 = K.default; + break; + case u.flowTypes.flowTypeVoice: + r3 = X.default; + break; + case u.flowTypes.flowTypeVoicemail: + r3 = $.default; + break; + case u.flowTypes.flowTypeVoiceSurvey: + r3 = Q.default; + break; + case u.flowTypes.flowTypeWorkflow: + r3 = Z.default; + break; + case u.flowTypes.flowTypeWorkitem: + r3 = ee.default; + break; + default: + this._itemIsInvalid(n3, "INTERNAL ERROR - the flow type '" + e3 + "' is not supported."); + } + return new r3(t3); + } + verifyNluCreationDataSlotNames(e3) { + if (!(0, ne.isObject)(e3)) return void this.logNote("no slot names to validate - there is no natural language understanding meta data defined."); + const t3 = null == e3 ? void 0 : e3.intents; + if (!(0, ie.isArray)(t3) || !t3.length) return void this.logNote("no slot names to validate - there are no intents defined in the natural language understanding meta data."); + let i3 = 0; + t3.forEach((e4, t4) => { + const n3 = null == e4 ? void 0 : e4.entityTypeBindings; + (0, ie.isArray)(n3) && n3.length && n3.forEach((e5, n4) => { + const r3 = null == e5 ? void 0 : e5.entityName; + if ((0, re.isString)(r3)) { + const e6 = l.expressionDataService.getInvalidIdentifierCharPos(r3); + if ((0, te.isActualNumber)(e6)) { + let i4 = `invalid natural language understanding creation data. Entity (slot) names must be a valid Architect variable name because Architect creates slot variables in a bot flow using those names. creationData.intents[${t4}].entityTypeBindings[${n4}].entityName - `; + i4 += -1 === e6 ? "cannot be blank." : `invalid character at position ${e6}.`, this.logErrorAndThrow(i4); + } else i3++; + } + }); + }), this.logNote(`processed a total of ${i3} entity / slot name(s) across ${t3.length} intent(s) and did not find any invalid names.`); + } + verifyInboundEmailIntentDetectionCreationData(e3) { + if (!(0, ne.isObject)(e3)) return void this.logNote("no intent names to validate - there is no natural language understanding meta data defined."); + const t3 = null == e3 ? void 0 : e3.intents; + if ((0, ie.isArray)(t3) && t3.length) return e3.intents = t3.reduce((e4, t4) => (e4.some((e5) => e5.name === t4.name || t4.id && e5.id === t4.id) || e4.push(t4), e4), []), e3.intents.map((e4) => { + e4.id || (e4.id = (0, T.uuid)()); + }), e3; + this.logNote("no intent names to validate - there are no intents defined in the natural language understanding meta data."); + } + _getFlowInfoByFlowIdAsync(e3, t3, i3) { + const n3 = this._infoParm("flowType", i3); + return this._checkItemIsValidLiteralStringEnum(n3, t3, w.default.FLOW_TYPES_ALL), M.default.findItemByIdAsync(F.default.getConfigListManagerForFlowType(this, n3, t3), e3, "flow id"); + } + _getFlowInfoByFlowNameAsync(e3, t3, i3) { + const n3 = this._infoParm("flowType", i3); + return this._checkItemIsValidLiteralStringEnum(n3, t3, w.default.FLOW_TYPES_ALL), M.default.findItemByValueAsync(F.default.getConfigListManagerForFlowType(this, n3, t3), e3, "flow name", "name", "displayName"); + } + createFlowAsync(e3, t3, i3, r3, o2, l2, R2, F2, x2, k2, V2) { + return n2.__awaiter(this, void 0, void 0, function* () { + var n3, U2, B2, G2, j2, W2, q2, Y2, H2, J2, z2, K2, $2, Q2, X2, Z2; + this._checkItem(this._infoParm("flowName", o2), !e3, "no flow name specified"), this._checkItemIsValidLiteralString(this._infoParm("flowDescription", o2), t3, true); + const ee2 = this._infoParm("flowType", o2); + this._checkItem(ee2, !N.default.getIsValidFlowType(r3), "invalid flow type of '" + r3 + "' specified for new flow"); + const te2 = N.default.getDefinitionForFlowType(r3); + this._checkItemIsValidLiteralStringOrStringArray(this._infoParm("compatibleFlowTypes", o2), x2, true), x2 && x2.forEach((e4) => { + this._checkItemIsValidLiteralStringEnum(this._infoParm("compatibleFlowTypes", o2), e4, w.default.FLOW_TYPES_ALL); + const t4 = N.default.getDefinitionForFlowType(e4); + this._checkItem(this._infoParm("compatibleFlowTypes", o2), !t4 || !t4.isEmbeddable, `the flow type '${e4}' cannot be used as a compatible flow type when creating a flow of type '${r3}'`); + }), this._checkItem(this._infoParm("compatibleFlowTypes", o2), x2 && x2.length && !N.default.doesFlowTypeHaveDestinationFlowTypes(r3), `supported flow types were specified for the creation of flow '${e3}' but are not supported for flow type '${r3}'.`); + const ie2 = this._infoParm("flowDivision", o2); + L.default.orgInfo.areDivisionsAvailable ? (((0, oe.isUndefined)(R2) || null === R2) && (this.defaultFlowCreationDivision ? (this.logItemNote(ie2, "No flow division passed in on create call. Using the division specified in the defaultFlowCreationDivision property. Division: " + this.defaultFlowCreationDivision.logStr), R2 = this.defaultFlowCreationDivision) : this._itemIsInvalid(ie2, "When creating a flow, you must either pass an ArchDivision instance in the flowDivision parameter or have an ArchDivision instance set for the ArchFactoryFlows defaultFlowCreationDivision property.")), this._checkItem(ie2, !R2, "there is no flow creation division specified for the flow creation."), this._checkItem(ie2, !(null == R2 ? void 0 : R2.isArchDivision), "the flow creation division must be an ArchDivision instance."), this._checkItem(ie2, !(null == R2 ? void 0 : R2.canAddFlow), "the flow creation division must be a division whose canAddFlow property has a value of true. Division: " + (null == R2 ? void 0 : R2.logStr)), this.logItemNote(ie2, `flow will be created in the division ${null == R2 ? void 0 : R2.logStr}`)) : ((0, oe.isUndefined)(R2) || null === R2 || this._itemIsInvalid(ie2, "A value was specified for the flow creation division but divisions are not enabled for this organization."), R2 = void 0), this._checkItemIsValidLiteralBool(this._infoParm("generateFlowLogic", o2), V2, true); + const re2 = this._infoParm("creationData", o2); + let ae2, se2; + switch (r3) { + case u.flowTypes.flowTypeBot: + case u.flowTypes.flowTypeDigitalBot: + case u.flowTypes.flowTypeVoice: { + let e4; + if (this._checkItemIsValidJsonObject(re2, F2, true), (0, ne.isObject)(F2)) this._checkItemIsValidJsonObject(this._infoVal("creationData.nluDomainVersion", o2), F2.nluDomainVersion), e4 = F2.nluDomainVersion || {}, this.verifyNluCreationDataSlotNames(e4), !te2.supportsNluIntents && d.IntentUtil.hasIntents(e4) && this.logErrorAndThrow(`the flow type '${r3}' does not support intents to be defined within the natural language configuration supplied from caller creation data.`), this.logNote("using natural language configuration supplied from caller for bot flow creation."); + else { + const t5 = b.templates.find((e5) => e5.id === b.nluVersionIds.blankBot); + (0, ne.isObject)(t5) || this.logErrorAndThrow("unable to load the default blank natural language understanding configuration to create the bot flow."), this.logNote("since no creation data JSON object was passed in, using a default blank natural language configuration for bot flow creation."), e4 = null == t5 ? void 0 : t5.templateObject; + } + const t4 = ((null == F2 ? void 0 : F2.mutedUtterances) || []).filter((e5) => d.IntentUtil.isUtteranceInNluDomainVersion((null == F2 ? void 0 : F2.nluDomainVersion) || {}, e5.id)); + F2 = { nluVersionTemplate: { templateObject: e4 } }, t4.length && (F2.mutedUtterances = t4); + break; + } + case u.flowTypes.flowTypeVoiceSurvey: + if (this._checkItemIsValidJsonObject(re2, F2, true), (0, ne.isObject)(F2)) { + this._checkItemIsValidJsonObject(this._infoVal("creationData.surveyForm", o2), F2.surveyForm); + const e4 = null == F2 ? void 0 : F2.surveyForm; + if (null == e4 ? void 0 : e4.id) ae2 = yield f.surveyFormManager.apiCallSingle(null == e4 ? void 0 : e4.id), ae2 || this.logErrorAndThrow(`unable to find survey form with id '${e4.id}'`); + else if (null == e4 ? void 0 : e4.name) { + const t5 = yield M.default.findItemByValueAsync(f.surveyFormManager, e4.name, "survey forms", "name"); + t5 ? ae2 = yield M.default.findItemByIdAsync(f.surveyFormManager, t5.id, "survey form") : this.logErrorAndThrow(`unable to find survey form with name '${e4.name}'`); + const i4 = (0, g.getSurveyFormErrorText)((0, _.checkSurveyForm)(ae2._model)); + i4 && this.logErrorAndThrow(`unable to create flow for survey form with name '${e4.name}'. ${i4}`); + } + let t4; + (null == F2 ? void 0 : F2.nluDomainVersion) && (this._checkItemIsValidJsonObject(this._infoVal("creationData.nluDomainVersion", o2), F2.nluDomainVersion, true), t4 = F2.nluDomainVersion, this.verifyNluCreationDataSlotNames(t4), !te2.supportsNluIntents && d.IntentUtil.hasIntents(t4) && this.logErrorAndThrow(`the flow type '${r3}' does not support intents to be defined within the natural language configuration supplied from caller creation data.`), this.logNote("using natural language configuration supplied from caller for bot flow creation.")), F2.nluVersionTemplate = { templateObject: t4 }; + } + break; + case u.flowTypes.flowTypeWorkitem: + if (this._checkItemIsValidJsonObject(re2, F2, true), (0, ne.isObject)(F2)) { + this._checkItemIsValidJsonObject(this._infoVal("creationData.worktype", o2), F2.worktype); + const e4 = null == F2 ? void 0 : F2.worktype; + if (null == e4 ? void 0 : e4.id) se2 = yield y.worktypeManager.apiCallSingle(null == e4 ? void 0 : e4.id), se2 || this.logErrorAndThrow(`unable to find worktype with id '${e4.id}'`); + else if (null == e4 ? void 0 : e4.name) { + const t4 = yield M.default.findItemByValueAsync(y.worktypeManager, e4.name, "worktype", "name"); + t4 ? se2 = yield M.default.findItemByIdAsync(y.worktypeManager, t4.id, "worktype") : this.logErrorAndThrow(`unable to find worktype with name '${e4.name}'`); + } + } + break; + case u.flowTypes.flowTypeInboundEmail: + this._checkItemIsValidJsonObject(re2, F2, true), (0, ne.isObject)(F2) && (this._checkItemIsValidJsonObject(this._infoVal("creationData.intentDetection", o2), F2.intentDetection), te2.supportsNluCortex && te2.supportsNluCortexIntents || this.logErrorAndThrow(`the flow type '${r3}' does not support detection job intents to be defined within the natural language configuration supplied from caller creation data.`), F2.intentDetection = this.verifyInboundEmailIntentDetectionCreationData(F2.intentDetection || {})); + break; + default: + this.isUndefinedOrNull(F2) || this._logErrorInternalAndThrow(`the Architect flow factory code needs updating to handle flow creation data for the flow type '${r3}'. A creation call is being made which internally we see creation data being passed in but the factory does not know what to do with it. :(`); + } + const le2 = v.flowNameIsInvalidMessage(e3); + this._checkItem(this._infoParm("flowName", o2), null !== le2, le2); + const ue = this._infoParm("defaultSupportedLanguage", o2); + N.default.doesFlowTypeSupportLanguages(r3) ? i3 ? this._checkItem(ue, !i3 || !i3.isArchLanguage, "the default language specified for a flow must be a valid ArchLanguage this.") : te2.languagesSupportDefaultLanguage && (this.logNote("no language specified for creation of flow '" + e3 + "' ( type: " + r3 + " ). Defaulting default language to US English"), i3 = D.default.englishUnitedStates) : (i3 && this.logNote("a default language was specified for the creation of flow '" + e3 + "' ( type: " + r3 + " ). It is being ignored since the flow type does not have supported languages."), i3 = D.default.englishUnitedStates), i3 && (this._checkItem(ue, E.langCodeIsGeneric(i3.tag), "the language " + i3.logStr + " cannot be used as a flow supported language because it does not have a region sub-tag."), E.hasFlowCreationLocalizedText(i3.tag) || this.logItemNote(ue, "The language '" + i3.tag + "' does not have localized text so the created flow will not have any localized configuration names, text to speech, etc. etc.")), this._checkItemIsValidFunction(this._infoParm("callbackFunction", o2), l2, true); + const de = new O.default(); + de.description = t3, de.name = e3, de.type = r3, de.id = "__script_flow__" + (0, T.uuid)(), L.default.orgInfo.areDivisionsAvailable && (de.division = null == R2 ? void 0 : R2._getCoreViewModel().model); + const ce = C.getScriptingTemplate(r3, null == i3 ? void 0 : i3.tag, null, x2 || []), pe = this._createFlowViewModel(r3, new I.default(de), "createFlowAsync"), _e = this._infoParm("flowType", o2); + switch (pe.requiresFeatures && pe.requiresFeatures.forEach((e4) => { + S.isDisabled(e4) && this._itemIsInvalid(_e, "the flow type '" + r3 + "' cannot be created because it requires the feature '" + e4 + "' which is not enabled."); + }), r3) { + case u.flowTypes.flowTypeBot: + F2.defaultLanguage = i3._getCoreViewModel(); + break; + case u.flowTypes.flowTypeVoiceSurvey: { + const e4 = c.isoLanguages[i3.tag.toLowerCase()]; + let t4; + const r4 = (0, p.buildFlowEntitiesFromSurveyForm)(ae2, e4); + if ((null === (n3 = r4.flowVariables) || void 0 === n3 ? void 0 : n3.length) && ce.variables.push(...r4.flowVariables), k2) { + const e5 = { nluDomainVersion: { language: "", entities: [], entityTypes: [] } }; + (null === (U2 = null == F2 ? void 0 : F2.nluDomainVersion) || void 0 === U2 ? void 0 : U2.language) ? e5.nluDomainVersion.language = F2.nluDomainVersion.language : (this.logNote(`Using language from surveyForm ${r4.nluDomainVersion.language}`), e5.nluDomainVersion.language = r4.nluDomainVersion.language), null === (G2 = null === (B2 = null == r4 ? void 0 : r4.nluDomainVersion) || void 0 === B2 ? void 0 : B2.entities) || void 0 === G2 || G2.forEach((t5) => { + var i4; + (null !== (i4 = e5.nluDomainVersion.entities) && void 0 !== i4 ? i4 : []).push(t5); + }), (null === (W2 = null === (j2 = null == F2 ? void 0 : F2.nluDomainVersion) || void 0 === j2 ? void 0 : j2.entities) || void 0 === W2 ? void 0 : W2.length) && F2.nluDomainVersion.entities.length > 0 && F2.nluDomainVersion.entities.forEach((t5) => { + var i4, n4, o3; + (null !== (n4 = null === (i4 = null == r4 ? void 0 : r4.nluDomainVersion) || void 0 === i4 ? void 0 : i4.entities) && void 0 !== n4 ? n4 : []).filter((e6) => e6.name === t5.name).length > 0 && this.logErrorAndThrow(`an entity with the name ${t5.name} exists in both the supplied nluDomainVersion and what is being generated from the survey form.`), (null !== (o3 = e5.nluDomainVersion.entities) && void 0 !== o3 ? o3 : []).push(t5); + }), null === (Y2 = null === (q2 = null == r4 ? void 0 : r4.nluDomainVersion) || void 0 === q2 ? void 0 : q2.entityTypes) || void 0 === Y2 || Y2.forEach((t5) => { + var i4; + (null !== (i4 = e5.nluDomainVersion.entityTypes) && void 0 !== i4 ? i4 : []).push(t5); + }), (null === (J2 = null === (H2 = null == F2 ? void 0 : F2.nluDomainVersion) || void 0 === H2 ? void 0 : H2.entityTypes) || void 0 === J2 ? void 0 : J2.length) && F2.nluDomainVersion.entityTypes.length > 0 && F2.nluDomainVersion.entityTypes.forEach((t5) => { + var i4, n4, o3; + (null !== (n4 = null === (i4 = null == r4 ? void 0 : r4.nluDomainVersion) || void 0 === i4 ? void 0 : i4.entityTypes) && void 0 !== n4 ? n4 : []).filter((e6) => e6.name === t5.name).length > 0 && this.logErrorAndThrow(`an entity type with the name ${t5.name} exists in both the supplied nluDomainVersion and what is being generated from the survey form.`), (null !== (o3 = e5.nluDomainVersion.entityTypes) && void 0 !== o3 ? o3 : []).push(t5); + }), e5.surveyInfo = r4.surveyInfo, t4 = e5; + } else { + const e5 = (null === (z2 = null == F2 ? void 0 : F2.nluDomainVersion) || void 0 === z2 ? void 0 : z2.entities) || []; + e5 || this.logErrorAndThrow("cannot create the flow as the supplied nluDomainVersion does not contain any entities required for the survey form."); + const i4 = (0, h.getFirstEntityErrorInfo)(e5, null !== ($2 = null === (K2 = null == r4 ? void 0 : r4.nluDomainVersion) || void 0 === K2 ? void 0 : K2.entities) && void 0 !== $2 ? $2 : []); + i4.name && (i4.namesMatch ? i4.typesMatch || this.logErrorAndThrow(`cannot create the flow as the configuration for the entity named ${i4.name} has an invalid type. This slot must be of type ${i4.type}`) : this.logErrorAndThrow(`cannot create the flow as the supplied nluDomainVersion does not contain all entities required for the survey form. You must provide an entity named ${i4.name}.`)); + const n4 = (null === (Q2 = null == F2 ? void 0 : F2.nluDomainVersion) || void 0 === Q2 ? void 0 : Q2.entityTypes) || []; + n4 || this.logErrorAndThrow("cannot create the flow as the supplied nluDomainVersion does not contain any entityTypes required for the survey form."); + const o3 = (0, m.getFirstEntityTypeErrorInfo)(n4, null !== (Z2 = null === (X2 = null == r4 ? void 0 : r4.nluDomainVersion) || void 0 === X2 ? void 0 : X2.entityTypes) && void 0 !== Z2 ? Z2 : []); + o3.name && (o3.namesMatch ? o3.mechanismsMatch || this.logErrorAndThrow(`cannot create the flow as the configuration for the entity typed named ${o3.name} contains a mechanism which is incompatible with the type required by the survey form.`) : this.logErrorAndThrow(`cannot create the flow as the supplied nluDomainVersion does not contain all entity types required for the survey form. You must provide an entity type named ${o3.name}.`)), t4 = { nluDomainVersion: null == F2 ? void 0 : F2.nluDomainVersion, surveyInfo: r4.surveyInfo }; + } + pe.voiceSurveyFlowSettings.surveyFormInfo = t4.surveyInfo, F2.nluVersionTemplate = { templateObject: t4.nluDomainVersion }; + break; + } + case u.flowTypes.flowTypeWorkitem: + yield pe.configureForWorktype(se2), F2.worktypeId = se2.id; + } + const he = yield A.loadTemplate(pe, ce), me = yield he.setNewInstanceDefaults(); + r3 === u.flowTypes.flowTypeVoiceSurvey && me.isVoiceSurveyFlow && V2 ? (0, a.buildSurveyFlow)(me) : r3 === u.flowTypes.flowTypeWorkitem && me.isWorkitemFlow && V2 && (0, s.buildWorkitemFlow)(me); + const ge = this.coreFactory.createArchWrapper(me); + return me.postScriptingCreateFlowAsync(F2), P.default.logNotesVerbose && me.definition.supportsLanguages && me.defaultLanguage && ge.settingsSupportedLanguages.getDefaultSupportedLanguageSettings().logNoteVerbose("flow default language settings information."), L.default.executeCallback(this, o2, l2, ge); + }); + } + createFlowBotAsync(e3, t3, i3, n3, r3, o2) { + return this.createFlowAsync(e3, t3, i3, u.flowTypes.flowTypeBot, "createFlowBotAsync", n3, r3, o2); + } + createFlowDigitalBotAsync(e3, t3, i3, n3, r3, o2) { + return this.createFlowAsync(e3, t3, i3, u.flowTypes.flowTypeDigitalBot, "createFlowDigitalBotAsync", n3, r3, o2); + } + createFlowCommonModuleAsync(e3, t3, i3, n3, r3, o2) { + return this.createFlowAsync(e3, t3, i3, u.flowTypes.flowTypeCommonModule, "createFlowCommonModuleAsync", n3, r3, void 0, o2); + } + createFlowInboundCallAsync(e3, t3, i3, n3, r3) { + return this.createFlowAsync(e3, t3, i3, u.flowTypes.flowTypeInboundCall, "createFlowInboundCallAsync", n3, r3); + } + createFlowOutboundCallAsync(e3, t3, i3, n3, r3) { + return this.createFlowAsync(e3, t3, i3, u.flowTypes.flowTypeOutboundCall, "createFlowOutboundCallAsync", n3, r3); + } + createFlowInQueueCallAsync(e3, t3, i3, n3, r3) { + return this.createFlowAsync(e3, t3, i3, u.flowTypes.flowTypeInQueueCall, "createFlowInQueueCallAsync", n3, r3); + } + createFlowInQueueEmailAsync(e3, t3, i3, n3, r3) { + return this.createFlowAsync(e3, t3, i3, u.flowTypes.flowTypeInQueueEmail, "createFlowInQueueEmailAsync", n3, r3); + } + createFlowInQueueShortMessageAsync(e3, t3, i3, n3, r3) { + return this.createFlowAsync(e3, t3, i3, u.flowTypes.flowTypeInQueueShortMessage, "createFlowInQueueShortMessageAsync", n3, r3); + } + createFlowSecureCallAsync(e3, t3, i3, n3, r3) { + return this.createFlowAsync(e3, t3, i3, u.flowTypes.flowTypeSecureCall, "createFlowSecureCallAsync", n3, r3); + } + createFlowInboundEmailAsync(e3, t3, i3, n3, r3, o2) { + return this.createFlowAsync(e3, t3, i3, u.flowTypes.flowTypeInboundEmail, "createFlowInboundEmailAsync", n3, r3, o2); + } + createFlowInboundShortMessageAsync(e3, t3, i3, n3, r3) { + return this.createFlowAsync(e3, t3, i3, u.flowTypes.flowTypeInboundShortMessage, "createFlowInboundShortMessageAsync", n3, r3); + } + createFlowSurveyInviteAsync(e3, t3, i3, n3, r3) { + return this.createFlowAsync(e3, t3, i3, u.flowTypes.flowTypeSurveyInvite, "createFlowSurveyInviteAsync", n3, r3); + } + createFlowInboundChatAsync(e3, t3, i3, n3, r3) { + return this.createFlowAsync(e3, t3, i3, u.flowTypes.flowTypeInboundChat, "createFlowInboundChatAsync", n3, r3); + } + createFlowVoiceAsync(e3, t3, i3, n3, r3, o2) { + return this.createFlowAsync(e3, t3, i3, u.flowTypes.flowTypeVoice, "createFlowVoiceAsync", n3, r3, o2); + } + createFlowVoicemailAsync(e3, t3, i3, n3, r3) { + return this.createFlowAsync(e3, t3, i3, u.flowTypes.flowTypeVoicemail, "createFlowVoicemailAsync", n3, r3); + } + createFlowVoiceSurveyAsync(e3, t3, i3, n3, r3, o2, a2, s2, l2, d2) { + var c2, p2, _2, h2, m2, g2, f2, T2; + return a2 && this._checkItemIsValidLiteralString(this._infoParm("surveyFormName", "createFlowVoiceSurveyAsync"), a2), s2 && this._checkItemIsValidLiteralString(this._infoParm("surveyFormId", "createFlowVoiceSurveyAsync"), s2), o2 = null != o2 ? o2 : {}, (a2 && s2 || !a2 && !s2 && (null === (c2 = o2.surveyForm) || void 0 === c2 ? void 0 : c2.name) && (null === (p2 = o2.surveyForm) || void 0 === p2 ? void 0 : p2.id)) && this.logErrorAndThrow("Cannot create the flow if both name and ID are provided for the survey form. Please choose one or the other."), a2 || s2 || (null === (_2 = o2.surveyForm) || void 0 === _2 ? void 0 : _2.name) || (null === (h2 = o2.surveyForm) || void 0 === h2 ? void 0 : h2.id) || this.logErrorAndThrow("Cannot create the flow if no value is specified for the survey form name or ID."), ((null === (m2 = o2.surveyForm) || void 0 === m2 ? void 0 : m2.name) || (null === (g2 = o2.surveyForm) || void 0 === g2 ? void 0 : g2.id) && a2) && this.logWarning(`Creation data is being ignored. Using surveyFormName ${a2}`), ((null === (f2 = o2.surveyForm) || void 0 === f2 ? void 0 : f2.name) || (null === (T2 = o2.surveyForm) || void 0 === T2 ? void 0 : T2.id) && s2) && this.logWarning(`Creation data is being ignored. Using surveyFormId ${s2}`), a2 ? o2.surveyForm = { name: a2 } : s2 && (o2.surveyForm = { id: s2 }), this.createFlowAsync(e3, t3, i3, u.flowTypes.flowTypeVoiceSurvey, "createFlowVoiceSurveyAsync", n3, r3, o2, void 0, l2, d2); + } + createFlowWorkflowAsync(e3, t3, i3, n3, r3) { + return this.createFlowAsync(e3, t3, i3, u.flowTypes.flowTypeWorkflow, "createFlowWorkflowAsync", n3, r3); + } + createFlowEmailSendAsync(e3, t3, i3, n3, r3) { + return this.createFlowAsync(e3, t3, i3, u.flowTypes.flowTypeEmailSend, "createFlowEmailSendAsync", n3, r3); + } + createFlowWorkitemAsync(e3, t3, i3, n3, r3, o2, a2, s2, l2) { + var d2, c2, p2, _2, h2, m2, g2, f2; + return a2 && this._checkItemIsValidLiteralString(this._infoParm("worktypeName", "createFlowWorkitemAsync"), a2), s2 && this._checkItemIsValidLiteralString(this._infoParm("worktypeId", "createFlowWorkitemAsync"), s2), o2 = null != o2 ? o2 : {}, (a2 && s2 || !a2 && !s2 && (null === (d2 = o2.worktype) || void 0 === d2 ? void 0 : d2.name) && (null === (c2 = o2.worktype) || void 0 === c2 ? void 0 : c2.id)) && this.logErrorAndThrow("Cannot create the flow if both worktypeName and worktypeId are provided. Please choose one or the other."), a2 || s2 || (null === (p2 = o2.worktype) || void 0 === p2 ? void 0 : p2.name) || (null === (_2 = o2.worktype) || void 0 === _2 ? void 0 : _2.id) || this.logErrorAndThrow("Cannot create the flow if no value is specified for the worktypeName or worktypeId."), ((null === (h2 = o2.worktype) || void 0 === h2 ? void 0 : h2.name) || (null === (m2 = o2.worktype) || void 0 === m2 ? void 0 : m2.id) && a2) && this.logWarning(`Creation data is being ignored. Using worktypeName ${a2}`), ((null === (g2 = o2.worktype) || void 0 === g2 ? void 0 : g2.name) || (null === (f2 = o2.worktype) || void 0 === f2 ? void 0 : f2.id) && s2) && this.logWarning(`Creation data is being ignored. Using worktypeId ${s2}`), a2 ? o2.worktype = { name: a2 } : s2 && (o2.worktype = { id: s2 }), this.createFlowAsync(e3, t3, i3, u.flowTypes.flowTypeWorkitem, "createFlowWorkitemAsync", n3, r3, o2, void 0, void 0, l2); + } + getFlowInfoByFlowIdAsync(e3, t3, i3) { + return n2.__awaiter(this, void 0, void 0, function* () { + this._checkItemIsValidLiteralString(this._infoParm("flowId", "getFlowInfoByFlowIdAsync"), e3), this._checkItemIsValidLiteralStringEnum(this._infoParm("flowType", "getFlowInfoByFlowIdAsync"), t3, w.default.FLOW_TYPES_ALL), this._checkItemIsValidFunction(this._infoParm("callbackFunction", "getFlowInfoByFlowIdAsync"), i3, true); + const n3 = yield this._getFlowInfoByFlowIdAsync(e3, t3, "getFlowInfoByFlowIdAsync"), r3 = this.coreFactory.createArchWrapper(n3); + return L.default.executeCallback(this, "getFlowInfoByFlowIdAsync", i3, r3); + }); + } + getFlowInfoByFlowNameAsync(e3, t3, i3, r3) { + return n2.__awaiter(this, void 0, void 0, function* () { + this._checkItemIsValidLiteralString(this._infoParm("flowName", "getFlowInfoByFlowNameAsync"), e3), this._checkItemIsValidLiteralStringEnum(this._infoParm("flowType", "getFlowInfoByFlowNameAsync"), t3, w.default.FLOW_TYPES_ALL), this._checkItemIsValidFunction(this._infoParm("callbackFunction", "getFlowInfoByFlowNameAsync"), i3, true); + let n3 = false; + r3 && (n3 = ae.archFlowStubbing.canStubFlowType(t3)); + try { + const n4 = yield this._getFlowInfoByFlowNameAsync(e3, t3, "getFlowInfoByFlowNameAsync"), r4 = this.coreFactory.createArchWrapper(n4); + return L.default.executeCallback(this, "getFlowInfoByFlowNameAsync", i3, r4); + } catch (o2) { + if (r3 && n3) { + const n4 = r3.defaultLanguage ? r3 : Object.assign(Object.assign({}, r3), { defaultLanguage: "en-us" }); + return yield ae.archFlowStubbing.createStubFlowAsync(t3, e3, n4.division, n4.defaultLanguage, n4), this.getFlowInfoByFlowNameAsync(e3, t3, i3); + } + return; + } + }); + } + loadFlowByFlowNameAsync(e3, t3, i3, r3) { + return n2.__awaiter(this, void 0, void 0, function* () { + this._checkItemIsValidLiteralString(this._infoParm("flowName", "loadFlowByFlowNameAsync"), e3), this._checkItemIsValidLiteralStringEnum(this._infoParm("flowType", "loadFlowByFlowNameAsync"), t3, w.default.FLOW_TYPES_ALL), this._checkItemIsValidLiteralString(this._infoParm("flowVersion", "loadFlowByFlowNameAsync"), i3, true), this._checkItemIsValidFunction(this._infoParm("callbackFunction", "loadFlowByFlowNameAsync"), r3, true), (0, oe.isUndefined)(i3) && (i3 = w.default.FLOW_VERSIONS.latest); + const n3 = yield this._getFlowInfoByFlowNameAsync(e3, t3, "loadFlowByFlowNameAsync"), o2 = yield M.default._loadFlowByFlowInfoAsync(this._createFlowViewModel(n3.type, n3, "loadFlowByFlowNameAsync"), n3, i3, "loadFlowByFlowNameAsync"); + return L.default.executeCallback(this, "loadFlowByFlowNameAsync", r3, this.coreFactory.createArchWrapper(o2)); + }); + } + loadFlowByFlowIdAsync(e3, t3, i3, r3) { + return n2.__awaiter(this, void 0, void 0, function* () { + this._checkItemIsValidLiteralString(this._infoParm("flowId", "loadFlowByFlowIdAsync"), e3), this._checkItemIsValidLiteralStringEnum(this._infoParm("flowType", "loadFlowByFlowIdAsync"), t3, w.default.FLOW_TYPES_ALL), this._checkItemIsValidLiteralString(this._infoParm("flowVersion", "loadFlowByFlowIdAsync"), i3, true), this._checkItemIsValidFunction(this._infoParm("callbackFunction", "loadFlowByFlowIdAsync"), r3, true), (0, oe.isUndefined)(i3) && (i3 = w.default.FLOW_VERSIONS.latest); + const n3 = yield this._getFlowInfoByFlowIdAsync(e3, t3, "loadFlowByFlowIdAsync"), o2 = yield M.default._loadFlowByFlowInfoAsync(this._createFlowViewModel(n3.type, n3, "loadFlowByFlowIdAsync"), n3, i3, "loadFlowByFlowIdAsync"); + return L.default.executeCallback(this, "loadFlowByFlowIdAsync", r3, this.coreFactory.createArchWrapper(o2)); + }); + } + loadFlowDefaultInQueueCallAsync(e3, t3) { + return n2.__awaiter(this, void 0, void 0, function* () { + this._checkItemIsValidLiteralString(this._infoParm("flowVersion", "loadFlowDefaultInQueueCallAsync"), e3, true), this._checkItemIsValidFunction(this._infoParm("callbackFunction", "loadFlowDefaultInQueueCallAsync"), t3, true), (0, oe.isUndefined)(e3) && (e3 = w.default.FLOW_VERSIONS.latest); + const i3 = yield this._getFlowInfoByFlowIdAsync(R.defaultInQueueFlowId, u.flowTypes.flowTypeInQueueCall, "loadFlowDefaultInQueueCallAsync"), n3 = yield M.default._loadFlowByFlowInfoAsync(this._createFlowViewModel(i3.type, i3, "loadFlowDefaultInQueueCallAsync"), i3, e3, "loadFlowDefaultInQueueCallAsync"); + return L.default.executeCallback(this, "loadFlowDefaultInQueueCallAsync", t3, this.coreFactory.createArchWrapper(n3)); + }); + } + loadFlowDefaultVoicemailAsync(e3, t3) { + return n2.__awaiter(this, void 0, void 0, function* () { + this._checkItemIsValidLiteralString(this._infoParm("flowVersion", "loadFlowDefaultVoicemailAsync"), e3, true), this._checkItemIsValidFunction(this._infoParm("callbackFunction", "loadFlowDefaultVoicemailAsync"), t3, true), (0, oe.isUndefined)(e3) && (e3 = w.default.FLOW_VERSIONS.latest); + const i3 = yield this._getFlowInfoByFlowIdAsync(R.defaultVoicemailFlowId, u.flowTypes.flowTypeVoicemail, "loadFlowDefaultVoicemailAsync"), n3 = yield M.default._loadFlowByFlowInfoAsync(this._createFlowViewModel(i3.type, i3, "loadFlowDefaultVoicemailAsync"), i3, e3, "loadFlowDefaultVoicemailAsync"); + return L.default.executeCallback(this, "loadFlowDefaultVoicemailAsync", t3, this.coreFactory.createArchWrapper(n3)); + }); + } + loadFlowByFlowInfoAsync(e3, t3, i3) { + return n2.__awaiter(this, void 0, void 0, function* () { + this._checkItemIsArchFlowInfo(this._infoParm("flowInfo", "loadFlowByFlowInfoAsync"), e3), this._checkItemIsValidLiteralString(this._infoParm("flowVersion", "loadFlowByFlowInfoAsync"), t3, true), this._checkItemIsValidFunction(this._infoParm("callbackFunction", "loadFlowByFlowInfoAsync"), i3, true), (0, oe.isUndefined)(t3) && (t3 = w.default.FLOW_VERSIONS.latest); + const n3 = e3._getCoreViewModel(), r3 = yield M.default._loadFlowByFlowInfoAsync(this._createFlowViewModel(n3.type, n3, "loadFlowByFlowInfoAsync"), n3, t3, "loadFlowByFlowInfoAsync"); + return L.default.executeCallback(this, "loadFlowByFlowInfoAsync", i3, this.coreFactory.createArchWrapper(r3)); + }); + } + checkoutFlowByFlowNameAsync(e3, t3, i3, r3) { + return n2.__awaiter(this, void 0, void 0, function* () { + this._checkItemIsValidLiteralString(this._infoParm("flowName", "checkoutFlowByFlowNameAsync"), e3), this._checkItemIsValidLiteralStringEnum(this._infoParm("flowType", "checkoutFlowByFlowNameAsync"), t3, w.default.FLOW_TYPES_ALL), this._checkItemIsValidLiteralBool(this._infoParm("forceUnlock", "checkoutFlowByFlowNameAsync"), i3, true), this._checkItemIsValidFunction(this._infoParm("callbackFunction", "checkoutFlowByFlowNameAsync"), r3, true); + const n3 = yield this._getFlowInfoByFlowNameAsync(e3, t3, "checkoutFlowByFlowNameAsync"), o2 = yield M.default._checkoutFlowByFlowInfoAsync(n3, i3, "checkoutFlowByFlowNameAsync"); + return L.default.executeCallback(this, "checkoutFlowByFlowNameAsync", r3, this.coreFactory.createArchWrapper(o2)); + }); + } + checkoutFlowByFlowIdAsync(e3, t3, i3, r3) { + return n2.__awaiter(this, void 0, void 0, function* () { + this._checkItemIsValidLiteralString(this._infoParm("flowId", "checkoutFlowByFlowIdAsync"), e3), this._checkItemIsValidLiteralStringEnum(this._infoParm("flowType", "checkoutFlowByFlowIdAsync"), t3, w.default.FLOW_TYPES_ALL), this._checkItemIsValidLiteralBool(this._infoParm("forceUnlock", "checkoutFlowByFlowIdAsync"), i3, true), this._checkItemIsValidFunction(this._infoParm("callbackFunction", "checkoutFlowByFlowIdAsync"), r3, true); + const n3 = yield this._getFlowInfoByFlowIdAsync(e3, t3, "checkoutFlowByFlowIdAsync"), o2 = yield M.default._checkoutFlowByFlowInfoAsync(n3, i3, "checkoutFlowByFlowIdAsync"); + return L.default.executeCallback(this, "checkoutFlowByFlowIdAsync", r3, this.coreFactory.createArchWrapper(o2)); + }); + } + checkoutFlowByFlowInfoAsync(e3, t3, i3) { + return n2.__awaiter(this, void 0, void 0, function* () { + this._checkItemIsArchFlowInfo(this._infoParm("archFlowInfo", "checkoutFlowByFlowInfoAsync"), e3), this._checkItemIsValidLiteralBool(this._infoParm("forceUnlock", "checkoutFlowByFlowInfoAsync"), t3, true); + const n3 = e3._getCoreViewModel(), r3 = yield M.default._checkoutFlowByFlowInfoAsync(n3, t3, "checkoutFlowByFlowInfoAsync"); + return L.default.executeCallback(this, "checkoutFlowByFlowInfoAsync", i3, this.coreFactory.createArchWrapper(r3)); + }); + } + unlockFlowByFlowNameAsync(e3, t3, i3) { + return n2.__awaiter(this, void 0, void 0, function* () { + this._checkItemIsValidLiteralString(this._infoParm("flowName", "unlockFlowByFlowNameAsync"), e3), this._checkItemIsValidLiteralStringEnum(this._infoParm("flowType", "unlockFlowByFlowNameAsync"), t3, w.default.FLOW_TYPES_ALL), this._checkItemIsValidFunction(this._infoParm("callbackFunction", "unlockFlowByFlowNameAsync"), i3, true); + const n3 = yield this._getFlowInfoByFlowNameAsync(e3, t3, "unlockFlowByFlowNameAsync"), r3 = yield M.default._unlockFlowAsync(n3); + return L.default.executeCallback(this, "unlockFlowByFlowNameAsync", i3, this.coreFactory.createArchWrapper(r3)); + }); + } + unlockFlowByFlowIdAsync(e3, t3, i3) { + return n2.__awaiter(this, void 0, void 0, function* () { + this._checkItemIsValidLiteralString(this._infoParm("flowId", "unlockFlowByFlowIdAsync"), e3), this._checkItemIsValidLiteralStringEnum(this._infoParm("flowType", "unlockFlowByFlowIdAsync"), t3, w.default.FLOW_TYPES_ALL), this._checkItemIsValidFunction(this._infoParm("callbackFunction", "unlockFlowByFlowIdAsync"), i3, true); + const n3 = yield this._getFlowInfoByFlowIdAsync(e3, t3, "unlockFlowByFlowIdAsync"), r3 = yield M.default._unlockFlowAsync(n3); + return L.default.executeCallback(this, "unlockFlowByFlowIdAsync", i3, this.coreFactory.createArchWrapper(r3)); + }); + } + unlockFlowByFlowInfoAsync(e3, t3) { + return n2.__awaiter(this, void 0, void 0, function* () { + this._checkItemIsArchFlowInfo(this._infoParm("archFlowInfo", "unlockFlowByFlowInfoAsync"), e3); + const i3 = e3._getCoreViewModel(), n3 = yield M.default._unlockFlowAsync(i3); + return L.default.executeCallback(this, "unlockFlowByFlowInfoAsync", t3, this.coreFactory.createArchWrapper(n3)); + }); + } + checkoutAndLoadFlowByFlowNameAsync(e3, t3, i3, r3, o2) { + return n2.__awaiter(this, void 0, void 0, function* () { + this._checkItemIsValidLiteralString(this._infoParm("flowName", "checkoutAndLoadFlowByFlowNameAsync"), e3), this._checkItemIsValidLiteralStringEnum(this._infoParm("flowType", "checkoutAndLoadFlowByFlowNameAsync"), t3, w.default.FLOW_TYPES_ALL), this._checkItemIsValidLiteralBool(this._infoParm("forceUnlock", "checkoutAndLoadFlowByFlowNameAsync"), i3, true), this._checkItemIsValidLiteralString(this._infoParm("flowVersion", "checkoutAndLoadFlowByFlowNameAsync"), r3, true), this._checkItemIsValidFunction(this._infoParm("callbackFunction", "checkoutAndLoadFlowByFlowNameAsync"), o2, true), (0, oe.isUndefined)(i3) && (i3 = false), (0, oe.isUndefined)(r3) && (r3 = w.default.FLOW_VERSIONS.latest); + const n3 = yield this._getFlowInfoByFlowNameAsync(e3, t3, "checkoutAndLoadFlowByFlowNameAsync"), a2 = yield M.default._checkoutFlowByFlowInfoAsync(n3, i3, "checkoutAndLoadFlowByFlowNameAsync"), s2 = yield M.default._loadFlowByFlowInfoAsync(this._createFlowViewModel(a2.type.toLowerCase(), a2, "checkoutAndLoadFlowByFlowNameAsync"), a2, r3, "checkoutAndLoadFlowByFlowNameAsync", void 0, true); + return L.default.executeCallback(this, "checkoutAndLoadFlowByFlowNameAsync", o2, this.coreFactory.createArchWrapper(s2)); + }); + } + checkoutAndLoadFlowByFlowIdAsync(e3, t3, i3, r3, o2) { + return n2.__awaiter(this, void 0, void 0, function* () { + this._checkItemIsValidLiteralString(this._infoParm("flowId", "checkoutAndLoadFlowByFlowIdAsync"), e3), this._checkItemIsValidLiteralStringEnum(this._infoParm("flowType", "checkoutAndLoadFlowByFlowIdAsync"), t3, w.default.FLOW_TYPES_ALL), this._checkItemIsValidLiteralBool(this._infoParm("forceUnlock", "checkoutAndLoadFlowByFlowIdAsync"), i3, true), this._checkItemIsValidLiteralString(this._infoParm("flowVersion", "checkoutAndLoadFlowByFlowIdAsync"), r3, true), this._checkItemIsValidFunction(this._infoParm("callbackFunction", "checkoutAndLoadFlowByFlowIdAsync"), o2, true), (0, oe.isUndefined)(i3) && (i3 = false), (0, oe.isUndefined)(r3) && (r3 = w.default.FLOW_VERSIONS.latest); + const n3 = yield this._getFlowInfoByFlowIdAsync(e3, t3, "checkoutAndLoadFlowByFlowIdAsync"), a2 = yield M.default._checkoutFlowByFlowInfoAsync(n3, i3, "checkoutAndLoadFlowByFlowIdAsync"), s2 = yield M.default._loadFlowByFlowInfoAsync(this._createFlowViewModel(a2.type.toLowerCase(), a2, "checkoutAndLoadFlowByFlowIdAsync"), a2, r3, "checkoutAndLoadFlowByFlowIdAsync", void 0, true); + return L.default.executeCallback(this, "checkoutAndLoadFlowByFlowIdAsync", o2, this.coreFactory.createArchWrapper(s2)); + }); + } + checkoutAndLoadFlowByFlowInfoAsync(e3, t3, i3, r3) { + return n2.__awaiter(this, void 0, void 0, function* () { + this._checkItemIsArchFlowInfo(this._infoParm("flowInfo", "checkoutAndLoadFlowByFlowInfoAsync"), e3), this._checkItemIsValidLiteralBool(this._infoParm("forceUnlock", "checkoutAndLoadFlowByFlowInfoAsync"), t3, true), this._checkItemIsValidLiteralString(this._infoParm("flowVersion", "checkoutAndLoadFlowByFlowInfoAsync"), i3, true), this._checkItemIsValidFunction(this._infoParm("callbackFunction", "loadFlowByFlowInfoAsync"), r3, true), (0, oe.isUndefined)(t3) && (t3 = false), (0, oe.isUndefined)(i3) && (i3 = w.default.FLOW_VERSIONS.latest); + const n3 = e3._getCoreViewModel(), o2 = yield M.default._checkoutFlowByFlowInfoAsync(n3, t3, "checkoutAndLoadFlowByFlowInfoAsync"), a2 = yield M.default._loadFlowByFlowInfoAsync(this._createFlowViewModel(o2.type.toLowerCase(), o2, "checkoutAndLoadFlowByFlowInfoAsync"), o2, i3, "checkoutAndLoadFlowByFlowInfoAsync", void 0, true); + return L.default.executeCallback(this, "checkoutAndLoadFlowByFlowInfoAsync", r3, this.coreFactory.createArchWrapper(a2)); + }); + } + createFlowFromDefinitionAsync(e3, t3, i3, n3, r3, o2, a2, s2, l2) { + const u2 = this._infoParm("archDefinitionFlow", "createFlowFromDefinitionAsync"); + if (this._checkItem(u2, !e3 || !e3.isArchDefinitionFlow, "you must pass in a valid ArchDefinitionFlow instance."), !e3.supportsFlowCreationData) { + const e4 = this._infoParm("creationData", "createFlowFromDefinitionAsync"); + this._checkItemIsUndefinedOrNull(e4, a2); + } + return this.createFlowAsync(t3, i3, n3, e3.type, "createFlowFromDefinitionAsync", r3, o2, a2, s2, l2); + } + } + t2.ArchFactoryFlows = le, t2.default = new le(); + }, 89069: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importDefault(i2(92140)), o = i2(9456), a = i2(5173), s = i2(37345); + class l extends a.BaseFlowPreviewInstance { + _startPreviewForFlowInfo(e3, t3, i3, a2) { + return n2.__awaiter(this, void 0, void 0, function* () { + const i4 = `ArchitectWorkflowPreview_${(0, o.uuid)()}`, n3 = yield s.postFlowLaunch(e3.id, t3, r2.default.isObject(a2) ? a2 : {}, i4); + return console.log(`workflow launch name '${i4}'`), n3.id; + }); + } + _isFlowNotificationEventDataForThisPreview(e3, t3) { + return t3.flowId === this.flowId; + } + get supportsDebugPublishedPreview() { + return false; + } + get supportsPublishedFlowPreview() { + return true; + } + get supportsPreviewPayload() { + return true; + } + } + t2.default = l; + }, 89125: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.FormViewModel = void 0; + const n2 = i2(43212), r2 = i2(30356); + class o extends n2.BaseConfigurationListViewModel { + constructor(e3) { + super(e3), this._formPages = e3.formPages.map((e4) => new r2.FormPageViewModel(e4)); + } + get className() { + return "FormViewModel"; + } + get formPages() { + return this._formPages; + } + } + t2.FormViewModel = o; + }, 89127: (e2, t2, i2) => { + const { audioMonitoringActionType: n2 } = i2(30801), r2 = i2(28730), o = i2(7401); + function a() { + Object.defineProperties(this, { _enableMonitoring: { writable: true } }), a.baseConstructor.apply(this, arguments); + } + r2.extend(a, n2, true), Object.defineProperties(a.prototype, { pasteReIdOrRename: { value: function(e3) { + a._super.pasteReIdOrRename.apply(this, arguments), this.enableMonitoring.pasteReIdOrRename(e3); + } }, pasteResolveOldToNewValues: { value: function(e3) { + a._super.pasteResolveOldToNewValues.apply(this, arguments), this.enableMonitoring.pasteResolveOldToNewValues(e3); + } }, enableMonitoring: { enumerable: true, get: function() { + return this._enableMonitoring; + }, set: function(e3) { + this._enableMonitoring = this.reviveItem(e3, o); + } } }), e2.exports = a; + }, 89134: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.allPostFlowTargetTypes = t2.allPostMessageFlowTargetTypes = t2.allPostCallFlowTargetTypes = t2.any = t2.sender = t2.agent = t2.callee = t2.caller = void 0; + const n2 = i2(47957); + t2.caller = { displayString: n2.setPostFlow.callerDisplayString, id: "caller" }, t2.callee = { displayString: n2.setPostFlow.calleeDisplayString, id: "callee" }, t2.agent = { displayString: n2.setPostFlow.agentDisplayString, id: "agent" }, t2.sender = { displayString: n2.setPostFlow.senderDisplayString, id: "sender" }, t2.any = { displayString: n2.setPostFlow.anyDisplayString, id: "any" }, t2.allPostCallFlowTargetTypes = [t2.callee, t2.caller, t2.any], t2.allPostMessageFlowTargetTypes = [t2.agent], t2.allPostFlowTargetTypes = [...t2.allPostCallFlowTargetTypes, ...t2.allPostMessageFlowTargetTypes]; + }, 89154: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importDefault(i2(94225)), o = i2(79069), a = n2.__importDefault(i2(40559)); + class s extends a.default { + constructor(e3) { + super(e3, o.skillManager); + } + get _globalTypeName() { + return "skillCollection"; + } + get displayTypeName() { + return "ArchValueSkillCollection"; + } + get _searchByValueSearchProperty() { + return "name"; + } + addLiteralBySkillIdAsync(e3, t3) { + return n2.__awaiter(this, void 0, void 0, function* () { + return this._checkItemIsValidLiteralString(this._infoParm("skillId", "addLiteralBySkillIdAsync"), e3), this._checkItemIsValidFunction(this._infoParm("callbackFunction", "addLiteralBySkillIdAsync"), t3, true), this._addLiteralByIdAsync(e3, "skill").then(() => r2.default.executeCallback(this, "addLiteralBySkillIdAsync", t3, this)); + }); + } + addLiteralBySkillNameAsync(e3, t3) { + return n2.__awaiter(this, void 0, void 0, function* () { + return this._checkItemIsValidLiteralString(this._infoParm("skillName", "addLiteralBySkillNameAsync"), e3), this._checkItemIsValidFunction(this._infoParm("callbackFunction", "addLiteralBySkillNameAsync"), t3, true), this._addLiteralByValueAsync(e3, "skill").then(() => r2.default.executeCallback(this, "addLiteralBySkillNameAsync", t3, this)); + }); + } + get isArchValueSkillCollection() { + return true; + } + } + t2.default = s; + }, 89181: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importStar(i2(63352)), o = i2(14394), a = i2(36128), s = n2.__importStar(i2(1115)), l = n2.__importDefault(i2(49487)), u = i2(47957); + class d extends l.default { + constructor(e3) { + super(e3); + } + addAttribute() { + const e3 = this.variables.add(null, o.globalTypes.string); + return e3.expression.mode = r2.variable, e3.expression.setAsOutput(), s.validateAction(this, true, true), e3.id; + } + static get managedProperties() { + return [{ property: "variables", namedItems: true, isOutput: true, options: a.NameValuePairsOptions.create((e3) => e3.setAddButtonLabel(u.getAttributes.addAttributeLabel).setSectionLabel(u.setAttributes.attribute).setValueLabel(u.getAttributes.variableLabel)), yamlOptions: d.createYamlOptions("variables", (e3) => e3.setPropertyName("attributes").setNameValuePairShouldUseVariableProperty(true).setWrappedCollectionItemName("attribute")) }]; + } + } + t2.default = d; + }, 89240: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.ResponseLibraryList = void 0; + const n2 = i2(31635), r2 = i2(80295), o = i2(15116), a = i2(23436); + class s extends o.PagedList { + constructor(e3) { + super(e3); + } + get entities() { + return this._entities; + } + set entities(e3) { + this._entities = this.reviveArray(e3, a.ResponseLibrary); + } + } + t2.ResponseLibraryList = s, n2.__decorate([(0, r2.enumerable)(true), n2.__metadata("design:type", Array), n2.__metadata("design:paramtypes", [Array])], s.prototype, "entities", null); + }, 89244: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.combineAll = void 0; + var n2 = i2(67933); + t2.combineAll = n2.combineLatestAll; + }, 89266: (e2, t2, i2) => { + function n2() { + this.features = void 0, this.flowDocumentVersion = void 0, this.minimumServerVersion = void 0, this.ttsDataVersion = void 0, n2.baseConstructor.apply(this, arguments); + } + i2(45214).extend(n2, "FlowMetaData"), e2.exports = n2; + }, 89343: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.GetJourneySessionsByExternalContactActionModel = void 0; + const n2 = i2(28904), r2 = i2(30801); + class o extends n2.BaseFindSystemObjectByIdActionModel { + constructor(e3) { + super(e3), this.__type = o.__type; + } + } + t2.GetJourneySessionsByExternalContactActionModel = o, o.__type = r2.getJourneySessionsByExternalContactActionType, o.registerType(); + }, 89452: (e2, t2, i2) => { + function n2() { + this.sectionName = void 0, this.metaDataId = void 0, this.metaDataJSON = void 0, n2.baseConstructor.apply(this, arguments); + } + i2(88732).extend(n2, "ClipboardDependencyFlowUiMetaDataModel", true), e2.exports = n2; + }, 89501: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(20692)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "scheduleGroupCollection"; + } + get displayTypeName() { + return "ArchVariableScheduleGroupCollection"; + } + get initialValue() { + return this._initialValue; + } + get isArchVariableScheduleGroupCollection() { + return true; + } + } + t2.default = r2; + }, 89599: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.conversationSummarySettingManager = t2.ConversationSummarySettingManager = void 0; + const n2 = i2(31635), r2 = n2.__importStar(i2(84556)), o = n2.__importStar(i2(36781)), a = n2.__importStar(i2(1360)), s = n2.__importStar(i2(24032)), l = n2.__importDefault(i2(47532)), u = n2.__importDefault(i2(78982)), d = i2(47957), c = i2(27862); + class p extends l.default { + get dependencyType() { + return c.ConversationSummarySetting; + } + constructor() { + super(), this.topic = s.getTopic("ConversationSummarySettingManager"), this.apiCallList = r2.getConversationSummarySettings, this.apiCallSingle = r2.getConversationSummarySetting, this._rawServerCache = {}, this.className = "ConversationSummarySettingManager", this.defaultMatchingStyle = a.startsWith, this.defaultPageSize = 100, this.dependencyContext = d.customNodes.virtualAgentSettings.conversationSummarySettingsTitle, this.securityError = true, this.suppressSearch = false, this.uiMetadataSectionName = "ConversationSummarySetting", this.actionsForUsageSearch = [], this.actionPropertyForUsageSearch = "", this.searchField = "nameContains", this.searchWildcardSupport = false, this._initialize(), o.serviceListen(o.cleanUpFlow, () => this.resetState()); + } + _createItemViewModel(e3) { + return new u.default(e3); + } + } + t2.ConversationSummarySettingManager = p, t2.conversationSummarySettingManager = new p(); + }, 89690: (e2, t2, i2) => { + "use strict"; + const n2 = i2(31635), r2 = i2(96618), o = i2(19384), a = i2(12179), s = i2(12457), l = n2.__importDefault(i2(97891)), u = i2(24383), d = i2(4333), c = n2.__importDefault(i2(5730)), p = i2(47957); + class _ extends c.default { + constructor(e3, t3) { + super(e3.parentFlow, e3), this._loadModel(t3); + } + get amObjectEventSink() { + return true; + } + _preDestroy() { + super._preDestroy(), this.parentFlow.tryRemoveUiMetadataInfo(this, "state", this.stateReference, [this.model.__type], "stateReference", false); + } + initialize() { + super.initialize(); + } + getDetails() { + return this.stateName ? new s.ActionDetails([p.state.label], [this.stateName]) : null; + } + linkState(e3) { + this.parentFlow.tryRemoveUiMetadataInfo(this, "state", this.stateReference, [this.model.__type], "stateReference", false), e3 ? (this.parentFlow.setUiMetadataInfo("state", { id: e3.id, name: e3.name }), this.stateName = e3.name, this.stateReference = e3.id) : (this.stateName = void 0, this.stateReference = void 0); + } + search(e3) { + super.search(e3); + const t3 = o.flowElementRegistrationService.getItemById(this.parentFlow, this.stateReference); + t3 && e3.checkText(this, t3.name, p.state.label); + } + static get managedProperties() { + return [{ property: "state", createDetails: d.ContainerActionProperty.createCreateDetails({ modelIdPropName: "stateReference", modelNamePropName: "stateName", itemDoesNotExistBaseString: p.state.label, invalidStringText: p.state.invalidReference, noReferenceString: p.state.noReference, referencesStates: true, validReferenceCallback: (e3) => { + if (!e3 || !e3.isState) return { error: p.state.invalidReference }; + } }), yamlOptions: _.createYamlOptions("state", (e3) => e3.setPropertyName("targetStateRef")) }]; + } + validate(e3) { + super.validate(e3); + } + } + _.info = l.default.createActionInfo({ actionClass: _, canBeInTask: true, helpTopic: a.helpTopics.actions.changeState, modelClass: i2(15948), name: p.actions.changeState, scriptingName: "ArchActionChangeState", availabilityCallback: function(e3, t3, i3) { + return !(!i3 || !t3.isState || t3.isStartUpObject && r2.flowTypes.isInQueueAutomateFlowType(e3)); + }, termination: u.terminatesState }), t2.A = _; + }, 89720: (e2, t2, i2) => { + const n2 = i2(57731), r2 = i2(47957), o = {}; + function a(e3, t3) { + o[e3] = this, o[t3] = this, a.baseConstructor.apply(this, arguments); + } + n2.extend(a, "UUIDataTransferTypeEnum"), a.getInstance = function(e3) { + return o[e3 || 0] || o[0]; + }, a.transfer = new a(0, "transfer", r2.setUUIData.transferDropDownText), a.disconnect = new a(1, "disconnect", r2.setUUIData.disconnectDropDownText), e2.exports = a; + }, 89795: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.raceInit = t2.race = void 0; + var n2 = i2(48051), r2 = i2(19724), o = i2(7652), a = i2(17214); + function s(e3) { + return function(t3) { + for (var i3 = [], n3 = function(n4) { + i3.push(r2.innerFrom(e3[n4]).subscribe(a.createOperatorSubscriber(t3, function(e4) { + if (i3) { + for (var r3 = 0; r3 < i3.length; r3++) r3 !== n4 && i3[r3].unsubscribe(); + i3 = null; + } + t3.next(e4); + }))); + }, o2 = 0; i3 && !t3.closed && o2 < e3.length; o2++) n3(o2); + }; + } + t2.race = function() { + for (var e3 = [], t3 = 0; t3 < arguments.length; t3++) e3[t3] = arguments[t3]; + return 1 === (e3 = o.argsOrArgArray(e3)).length ? r2.innerFrom(e3[0]) : new n2.Observable(s(e3)); + }, t2.raceInit = s; + }, 89844: (e2, t2, i2) => { + const n2 = i2(28730), { setAttributesActionType: r2 } = i2(30801), o = i2(42217); + function a() { + Object.defineProperties(this, { _variables: { writable: true } }), a.baseConstructor.apply(this, arguments); + } + n2.extend(a, r2, true), Object.defineProperties(a.prototype, { pasteReIdOrRename: { value: function(e3) { + a._super.pasteReIdOrRename.apply(this, arguments); + for (let t3 = 0; t3 < this.variables.length; t3++) this.variables[t3].pasteReIdOrRename(e3); + } }, pasteResolveOldToNewValues: { value: function(e3) { + a._super.pasteResolveOldToNewValues.apply(this, arguments); + for (let t3 = 0; t3 < this.variables.length; t3++) this.variables[t3].pasteResolveOldToNewValues(e3); + } }, variables: { enumerable: true, get: function() { + return this._variables; + }, set: function(e3) { + this._variables = this.reviveArray(e3, o); + } } }), e2.exports = a; + }, 89876: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.voicemailScriptManager = t2.VoicemailScriptManager = void 0; + const n2 = i2(24032), r2 = i2(82915), o = i2(30801), a = i2(47957), s = i2(52124); + class l extends r2.ScriptManager { + constructor() { + super("VoicemailScriptManager"), this.topic = (0, n2.getTopic)("VoicemailScriptManager"), this.actionsForUsageSearch = [o.transferVoicemailActionType], this.apiCallList = s.getScripts, this.dependencyContext = a.transferVoicemail.voicemailScript; + } + } + t2.VoicemailScriptManager = l, t2.voicemailScriptManager = new l(); + }, 89878: (e2, t2, i2) => { + const n2 = i2(36019).default, r2 = i2(15139); + class o { + } + const a = new o(); + o.prototype.getValidationResults = n2.request("GET", "{public-api.apps}/api/v2/flows/{flowId}/validate/{operationId}", r2), o.prototype.postValidationManifest = n2.request("POST", "{public-api.apps}/api/v2/flows/actions/validate", r2), a.getValidationResults.addOptions({ ignoreBadResponse: true }), a.postValidationManifest.addOptions({ ignoreBadResponse: true }), e2.exports = a; + }, 89884: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.getFlowInfoForOpen = function(e3) { + return n2.__awaiter(this, void 0, void 0, function* () { + var t3; + D.withContext("flowId", e3).info("Starting flow open"); + const i3 = yield w.getFlow(e3, true, true); + if (!i3) throw D.withContext("flowId", e3).error("Failed to retrieve flow information"), new Error(`Failed to retrieve flow information for flow ID '${e3}'`); + if ("FAILURE" === (null === (t3 = i3.currentOperation) || void 0 === t3 ? void 0 : t3.actionStatus)) { + const { errorCode: t4, errorMessage: n4, actionName: r3 } = i3.currentOperation; + D.withContext("flowId", e3).withContext("errorCode", t4).withContext("errorMessage", n4).error(`Flow operation '${r3}' failed but allowing flow to load`); + } + const n3 = new p.default(i3); + return n3.topic.info(`Received flow info - type:'${i3.type}', id: '${i3.id}'`), n3; + }); + }, t2.getFullFlow = function(e3) { + return e3.type === a.flowTypes.flowTypeBot ? new s.default(e3) : e3.type === a.flowTypes.flowTypeCommonModule ? new l.default(e3) : e3.type === a.flowTypes.flowTypeDigitalBot ? new u.default(e3) : e3.type === a.flowTypes.flowTypeEmailSend ? new c.default(e3) : e3.type === a.flowTypes.flowTypeOutboundCall ? new S.default(e3) : e3.type === a.flowTypes.flowTypeInQueueCall ? new f.default(e3) : e3.type === a.flowTypes.flowTypeSecureCall ? new A.default(e3) : e3.type === a.flowTypes.flowTypeInboundEmail ? new m.default(e3) : e3.type === a.flowTypes.flowTypeSurveyInvite ? new N.default(e3) : e3.type === a.flowTypes.flowTypeInboundCall ? new _.default(e3) : e3.type === a.flowTypes.flowTypeInboundChat ? new h.default(e3) : e3.type === a.flowTypes.flowTypeInboundShortMessage ? new g.default(e3) : e3.type === a.flowTypes.flowTypeWorkflow ? new C.default(e3) : e3.type === a.flowTypes.flowTypeWorkitem ? new b.default(e3) : e3.type === a.flowTypes.flowTypeInQueueEmail ? new T.default(e3) : e3.type === a.flowTypes.flowTypeInQueueShortMessage ? new y.default(e3) : e3.type === a.flowTypes.flowTypeVoice ? new O.default(e3) : e3.type === a.flowTypes.flowTypeVoiceSurvey ? new v.default(e3) : e3.type === a.flowTypes.flowTypeVoicemail ? new I.default(e3) : e3.type === a.flowTypes.flowTypeVoiceSurvey ? new v.default(e3) : void console.error((0, r2.sprintf)("Type not supported for flow retrieval: %s", e3.type)); + }, t2.makeReplayUrlFromFlowInstanceData = function(e3, t3, i3, n3) { + return R.ParameterValidator.expectString(e3, () => E.ParameterInfo.createFunctionParameter(P, "makeReplayUrlFromFlowInstanceData", "flowInstanceId")), R.ParameterValidator.expectString(t3, () => E.ParameterInfo.createFunctionParameter(P, "makeReplayUrlFromFlowInstanceData", "flowVersion")), R.ParameterValidator.expectString(i3, () => E.ParameterInfo.createFunctionParameter(P, "makeReplayUrlFromFlowInstanceData", "flowId")), R.ParameterValidator.expectFlowType(n3, () => E.ParameterInfo.createFunctionParameter(P, "makeReplayUrlFromFlowInstanceData", "flowType")), M(e3, t3, i3, n3); + }, t2.makeReplayUrlFromFlowPreview = function(e3) { + const t3 = null == e3 ? void 0 : e3.previewedFlowInfo; + if (t3) return M(t3.executionId, t3.flowVersion, t3.flowId, t3.flowType); + }; + const n2 = i2(31635), r2 = i2(17604), o = i2(24032), a = i2(96618), s = n2.__importDefault(i2(84433)), l = n2.__importDefault(i2(60571)), u = n2.__importDefault(i2(31375)), d = n2.__importStar(i2(35515)), c = n2.__importDefault(i2(37824)), p = n2.__importDefault(i2(90396)), _ = n2.__importDefault(i2(54625)), h = n2.__importDefault(i2(22999)), m = n2.__importDefault(i2(65641)), g = n2.__importDefault(i2(55974)), f = n2.__importDefault(i2(24212)), T = n2.__importDefault(i2(44130)), y = n2.__importDefault(i2(58407)), S = n2.__importDefault(i2(40192)), A = n2.__importDefault(i2(44231)), N = n2.__importDefault(i2(83737)), O = n2.__importDefault(i2(74920)), I = n2.__importDefault(i2(98253)), v = n2.__importDefault(i2(66350)), C = n2.__importDefault(i2(71191)), b = n2.__importDefault(i2(43314)), E = i2(55909), R = i2(33951), w = i2(37345), D = (0, o.getTopic)("flowListHelper"), P = "flowHelper"; + function M(e3, t3, i3, n3) { + if (!(n3 && i3 && e3 && t3)) return; + let r3 = `https://${d.values.host}/architect/#/`; + return r3 += `flowInstance/${e3}`, r3; + } + }, 89917: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.CustomJsonIdentifierInfo = void 0; + const n2 = i2(31635), r2 = i2(79519), o = i2(79519), a = n2.__importDefault(i2(73198)), s = i2(66314), l = i2(66314), u = i2(66314); + class d { + constructor(e3) { + this._model = e3; + } + static create(e3) { + return new d((0, l.getCustomJsonInfoForDataTypeStr)(e3)); + } + static createFromDataTypeDef(e3) { + return this.create(null == e3 ? void 0 : e3.dataTypeId); + } + static createFromDataTypeDefViewModel(e3) { + return this.createFromDataTypeDef(null == e3 ? void 0 : e3.model); + } + get expressionTypeStr() { + return this._model.expressionDataTypeStr; + } + get dataTypeStr() { + return this._model.dataTypeStr; + } + get context() { + return this._model.context || r2.CustomJsonContext.none; + } + get conversationAttributeSchemaId() { + if (this.isNamespaceConversationAttribute) return this.subIdentifier; + } + get decisionTableId() { + if (this.isNamespaceDecisionTable) return this.subIdentifier; + } + get hasContext() { + return this.context !== r2.CustomJsonContext.none; + } + get isCollection() { + var e3; + return null === (e3 = this._model.expressionDataTypeStr) || void 0 === e3 ? void 0 : e3.endsWith(a.default.exprDataTypeSuffixCollection); + } + get isCustomJsonType() { + return this._model.isCustomJsonType; + } + get identifier() { + return this._model.identifier; + } + get isContextError() { + return this.context === r2.CustomJsonContext.error; + } + get isContextInput() { + return this.context === r2.CustomJsonContext.input; + } + get isContextRecord() { + return this.context === r2.CustomJsonContext.record; + } + get isContextSchemaData() { + return this.context === r2.CustomJsonContext.schemaData; + } + get isContextNone() { + return this.context === r2.CustomJsonContext.none; + } + get isContextOutput() { + return this.context === r2.CustomJsonContext.output; + } + get isNamespaceArchitect() { + return this.namespace === o.CustomJsonNamespace.architect; + } + get isNamespaceConversationAttribute() { + return this.namespace === o.CustomJsonNamespace.conversationAttribute; + } + get isNamespaceDecisionTable() { + return this.namespace === o.CustomJsonNamespace.decisionTable; + } + get isNamespaceWorktype() { + return this.namespace === o.CustomJsonNamespace.worktype; + } + get namespace() { + return this._model.namespace; + } + get namespaceLabel() { + return (0, s.getCustomJsonNamespaceLabel)(this._model.namespace); + } + get namespaceSupportsContext() { + return (0, u.getCustomJsonNamespaceSupportsContext)(this.namespace); + } + get subIdentifier() { + return this._model.subIdentifier; + } + get worktypeSchemaId() { + if (this.isNamespaceWorktype) return this.identifier; + } + } + t2.CustomJsonIdentifierInfo = d; + }, 89965: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(92661)), r2 = i2(30801); + class o extends n2.default { + constructor(e3) { + super(e3); + } + get _actionTypeId() { + return r2.findQueueActionType; + } + get displayTypeName() { + return this._scriptingName; + } + get isArchActionFindQueue() { + return true; + } + get findResult() { + return this._findResult; + } + } + t2.default = o; + }, 89982: (e2, t2, i2) => { + function n2() { + this.isDefault = void 0, this.language = void 0, n2.baseConstructor.apply(this, arguments); + } + i2(45214).extend(n2, "FlowSupportedLanguage"), e2.exports = n2; + }, 89986: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.briefOutboundFlowListManager = void 0; + const n2 = i2(31635).__importStar(i2(24032)), r2 = i2(70726), o = i2(96618), a = i2(27862); + class s extends r2.BriefFlowListManager { + get dependencyType() { + return a.OutboundCallFlow; + } + constructor() { + super(), this.topic = n2.getTopic("briefOutboundFlowListManager"), this.additionalQueryParams = { type: o.flowTypes.flowTypeOutboundCall }, this.className = "BriefOutboundFlowListManager", this.flowType = o.flowTypes.flowTypeOutboundCall, this._initialize(); + } + } + t2.briefOutboundFlowListManager = new s(); + }, 90037: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.windowTime = void 0; + var n2 = i2(76808), r2 = i2(62326), o = i2(69879), a = i2(65212), s = i2(17214), l = i2(54830), u = i2(26404), d = i2(28619); + t2.windowTime = function(e3) { + for (var t3, i3, c = [], p = 1; p < arguments.length; p++) c[p - 1] = arguments[p]; + var _ = null !== (t3 = u.popScheduler(c)) && void 0 !== t3 ? t3 : r2.asyncScheduler, h = null !== (i3 = c[0]) && void 0 !== i3 ? i3 : null, m = c[1] || 1 / 0; + return a.operate(function(t4, i4) { + var r3 = [], a2 = false, u2 = function(e4) { + var t5 = e4.window, i5 = e4.subs; + t5.complete(), i5.unsubscribe(), l.arrRemove(r3, e4), a2 && c2(); + }, c2 = function() { + if (r3) { + var t5 = new o.Subscription(); + i4.add(t5); + var a3 = new n2.Subject(), s2 = { window: a3, subs: t5, seen: 0 }; + r3.push(s2), i4.next(a3.asObservable()), d.executeSchedule(t5, _, function() { + return u2(s2); + }, e3); + } + }; + null !== h && h >= 0 ? d.executeSchedule(i4, _, c2, h, true) : a2 = true, c2(); + var p2 = function(e4) { + return r3.slice().forEach(e4); + }, g = function(e4) { + p2(function(t5) { + var i5 = t5.window; + return e4(i5); + }), e4(i4), i4.unsubscribe(); + }; + return t4.subscribe(s.createOperatorSubscriber(i4, function(e4) { + p2(function(t5) { + t5.window.next(e4), m <= ++t5.seen && u2(t5); + }); + }, function() { + return g(function(e4) { + return e4.complete(); + }); + }, function(e4) { + return g(function(t5) { + return t5.error(e4); + }); + })), function() { + r3 = null; + }; + }); + }; + }, 90067: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(15453)), r2 = i2(30801); + class o extends n2.default { + constructor(e3) { + super(e3), this._currentIndex = this.coreFactory.createArchValueFromExpression(e3.currentIndex), this._loopCount = this.coreFactory.createArchValueFromExpression(e3.loopCount); + } + get _actionTypeId() { + return r2.loopActionType; + } + get displayTypeName() { + return this._scriptingName; + } + get currentIndex() { + return this._currentIndex; + } + get isArchActionLoop() { + return true; + } + get loopCount() { + return this._loopCount; + } + } + t2.default = o; + }, 90077: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(65485)); + class r2 extends n2.default { + constructor(e3) { + super(e3), this._question = this.coreFactory.createArchWrapper(e3.question); + } + get displayTypeName() { + return "ArchBaseActionAsk"; + } + get isArchBaseActionAsk() { + return true; + } + get question() { + return this._question; + } + } + t2.default = r2; + }, 90152: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = i2(80295), o = i2(80295), a = i2(19596); + class s extends a.DataContract { + constructor(e3) { + super(e3), (0, o.makeUnenumerable)(this, "_categoryId"), (0, o.makeUnenumerable)(this, "_displayIndex"); + } + get categoryId() { + return this._categoryId; + } + set categoryId(e3) { + e3.startsWith("category.") || (e3 = "category." + e3), this._categoryId = e3; + } + get displayIndex() { + return this._displayIndex; + } + set displayIndex(e3) { + this._displayIndex = e3; + } + } + t2.default = s, n2.__decorate([(0, r2.enumerable)(true), n2.__metadata("design:type", String), n2.__metadata("design:paramtypes", [String])], s.prototype, "categoryId", null), n2.__decorate([(0, r2.enumerable)(true), n2.__metadata("design:type", Number), n2.__metadata("design:paramtypes", [Number])], s.prototype, "displayIndex", null); + }, 90159: (e2, t2, i2) => { + "use strict"; + var n2, r2; + const o = i2(31635), a = i2(19596), s = i2(80295); + class l extends a.DataContract { + constructor(e3) { + super(e3); + } + get url() { + return this._url; + } + set url(e3) { + this._url = e3; + } + get fileUrl() { + return this._fileUrl; + } + set fileUrl(e3) { + this._fileUrl = e3; + } + get uploadKey() { + return this._uploadKey; + } + set uploadKey(e3) { + this._uploadKey = e3; + } + get headers() { + return this._headers; + } + set headers(e3) { + this._headers = e3; + } + } + t2.A = l, o.__decorate([(0, s.enumerable)(true), o.__metadata("design:type", String), o.__metadata("design:paramtypes", [String])], l.prototype, "url", null), o.__decorate([(0, s.enumerable)(true), o.__metadata("design:type", String), o.__metadata("design:paramtypes", [String])], l.prototype, "fileUrl", null), o.__decorate([(0, s.enumerable)(true), o.__metadata("design:type", String), o.__metadata("design:paramtypes", [String])], l.prototype, "uploadKey", null), o.__decorate([(0, s.enumerable)(true), o.__metadata("design:type", "function" == typeof (n2 = "undefined" != typeof Map && Map) ? n2 : Object), o.__metadata("design:paramtypes", ["function" == typeof (r2 = "undefined" != typeof Map && Map) ? r2 : Object])], l.prototype, "headers", null); + }, 90178: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importDefault(i2(28130)), o = n2.__importDefault(i2(61864)), a = n2.__importStar(i2(62829)), s = n2.__importDefault(i2(41510)), l = n2.__importDefault(i2(92140)), u = i2(47957), d = { aiStudio: r2.default.create("category.aiStudio", s.default.genesys.aiStudio, o.default.aiStudio), userInput: r2.default.create("category.userInput", u.actions.ask, o.default.ask), audio: r2.default.create("category.audio", u.audio.audioLabel, o.default.playAudio), bot: r2.default.create("category.bot", u.actions.botState, o.default.bot), common: r2.default.create("category.common", u.actions.common, o.default.common), communication: r2.default.create("category.communication", u.actions.communicate, o.default.communication), conversation: r2.default.create("category.conversation", u.actions.conversation, o.default.conversation), customerSecureData: r2.default.create("category.customerSecuredData", u.categories.customerSecuredData, o.default.lock), data: r2.default.create("category.data", u.actions.data, o.default.database), dial: r2.default.create("category.dial", u.actions.dial, o.default.dial), disconnect: r2.default.create("category.disconnect", u.actions.disconnect, o.default.disconnect), email: r2.default.create("category.email", u.actions.email, o.default.sendReply), external: r2.default.create("category.external", u.actions.external, o.default.road), find: r2.default.create("category.find", u.categories.find, o.default.find), flow: r2.default.create("category.flow", u.categories.flow, o.default.change), holdMusic: r2.default.create("category.holdMusic", u.actions.holdMusic, o.default.hold), journey: r2.default.create("category.journey", u.categories.journey, o.default.journey), logical: r2.default.create("category.logical", u.actions.logical, o.default.decision), loop: r2.default.create("category.loop", u.actions.loop, o.default.loop), media: r2.default.create("category.media", u.actions.media, o.default.mailbox), menu: r2.default.create("category.menu", u.actions.menu, o.default.menu), returnToAgent: r2.default.create("category.returnToAgent", u.actions.returnToAgent, o.default.terminator), send: r2.default.create("category.send", u.actions.send, o.default.send), state: r2.default.create("category.state", u.actions.state, o.default.state), surveyInvite: r2.default.create("category.surveyInvite", u.actions.surveyInvite, o.default.survey), task: r2.default.create("category.task", u.actions.task, o.default.task), transfer: r2.default.create("category.transfer", u.actions.transfer, o.default.transfer), unknown: r2.default.create("category.unknown", u.actions.unknown, o.default.unknown), wait: r2.default.create("category.wait", u.actions.wait, o.default.duration), workitem: r2.default.create("category.workitem", u.actions.workitem, o.default.workitem) }; + l.default.each(d, function(e3) { + a.registerActionCategory(e3); + }), t2.default = d; + }, 90196: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(20692)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "scheduleCollection"; + } + get displayTypeName() { + return "ArchVariableScheduleCollection"; + } + get initialValue() { + return this._initialValue; + } + get isArchVariableScheduleCollection() { + return true; + } + } + t2.default = r2; + }, 90342: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.BaseTypeWithDate = void 0; + const n2 = i2(31635).__importDefault(i2(95093)), r2 = i2(24032), o = i2(94765), a = (0, r2.getTopic)("BaseTypeWithDate"); + class s extends o.ExpressionType { + constructor(e3, t3, i3) { + super(e3, t3, i3); + } + get className() { + return "BaseTypeWithDate"; + } + getParsedDate(e3, t3, i3) { + const r3 = n2.default.utc(e3); + if (!r3 || !r3.isValid()) { + const n3 = `Invalid date parsed in BaseTypeWithDate.getParsedDate for expression text '${e3}'`; + if (a.exceptionWithErrorObjectInfo(null, n3, t3, true), i3) throw n3; + } + return { year: r3.year(), month: r3.month() + 1, date: r3.date(), hours: r3.hours(), minutes: r3.minutes(), seconds: r3.seconds() }; + } + } + t2.BaseTypeWithDate = s; + }, 90358: (e2, t2, i2) => { + let n2 = null; + if (i2(6697)) n2 = i2(70425); + else { + const e3 = i2(29546); + try { + n2 = i2(26349)("./" + e3.getCurrentLanguage() + "/serverErrors.js"); + } catch (e4) { + n2 = i2(70425); + } + } + n2.then && n2.then((t3) => { + e2.exports = t3; + }), e2.exports = n2; + }, 90366: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(54063)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "externalAddressCollection"; + } + get displayTypeName() { + return "ArchValueExternalAddressCollection"; + } + get isArchValueExternalAddressCollection() { + return true; + } + } + t2.default = r2; + }, 90396: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importStar(i2(74359)), o = n2.__importStar(i2(62241)), a = n2.__importStar(i2(24032)), s = n2.__importDefault(i2(92140)), l = n2.__importDefault(i2(55006)), u = n2.__importDefault(i2(98114)), d = n2.__importDefault(i2(57606)), c = i2(55299), p = i2(79364), _ = i2(1234), h = i2(96618), m = i2(19975), g = i2(80295), f = i2(18638), T = i2(47957), y = i2(70610); + class S extends c.BaseClass { + constructor(e3) { + super(), this._alternateInputSchemas = {}, this._alternateOutputSchemas = {}, this.newModelLoaded$ = new p.BehaviorSubject(null), this._topic = a.getTopic(e3.type).withMultipleContext({ flowId: e3.id || e3.flowId, flowType: e3.type }), this._versions = new m.FlowVersionManager(this), (0, g.makeUnenumerable)(this, "_alternateInputSchemas"), (0, g.makeUnenumerable)(this, "_alternateOutputSchemas"), (0, g.makeUnenumerable)(this, "_currentUserHasLock"), (0, g.makeUnenumerable)(this, "_definition"), (0, g.makeUnenumerable)(this, "_inputSchema"), (0, g.makeUnenumerable)(this, "_model"), (0, g.makeUnenumerable)(this, "_outputSchema"), (0, g.makeUnenumerable)(this, "_topic"), (0, g.makeUnenumerable)(this, "_versions"), this.loadModel(e3); + } + loadModel(e3) { + if (e3) { + if (e3.isFlowInfoViewModel ? this._model = e3._model : this._model = e3, this._versions.updateInfoVersions(e3.savedVersion, e3.checkedInVersion, e3.publishedVersion, e3.debugVersion), this._definition = u.default.getDefinitionForFlowType(this.type), this.isLocked && r2.getConnectedUser().id) { + const e4 = r2.getConnectedUser().id.toLocaleLowerCase(), t3 = this.lockedUser.id.toLocaleLowerCase(); + this._currentUserHasLock = t3 === e4; + } else this._currentUserHasLock = false; + this.resetCurrentUserCanEdit(), this.lockedUser && !this.lockedUser.displayName && y.addUnknownUser(this.lockedUser.id), this._model.inputSchema && (this._inputSchema = new d.default(this._model.inputSchema, true)), this._model.outputSchema && (this._outputSchema = new d.default(this._model.outputSchema, false)), s.default.isArray(this._model.alternateFlowInfos) && this._model.alternateFlowInfos.forEach((e4) => { + e4.version && this.loadAlternateSchema(e4.version, e4); + }), this.newModelLoaded$.next(this._model); + } + } + loadAlternateSchema(e3, t3) { + t3.inputSchema && (this._alternateInputSchemas[e3] = new d.default(t3.inputSchema, true)), t3.outputSchema && (this._alternateOutputSchemas[e3] = new d.default(t3.outputSchema, false)); + } + get topic() { + return this._topic; + } + get versions() { + return this._versions; + } + get className() { + return "FlowInfoViewModel"; + } + get checkedInDisplay() { + return this.versions.checkedInDisplay; + } + get debugVersionDisplay() { + return this.versions.debugDisplay; + } + get debugVersion() { + return this.versions.debugVersion; + } + get description() { + return this._model.description; + } + set description(e3) { + this._model.description = e3; + } + get displayName() { + return this._model.displayName; + } + set displayName(e3) { + this._model.displayName = e3; + } + get displayNameEscaped() { + return s.default.escape(this.displayName); + } + get division() { + return this._model.division; + } + get divisionViewModel() { + return new _.DivisionViewModel(this._model.division); + } + get divisionName() { + return this.division && this.division.name ? this.division.name : T.flow.unknownDivision; + } + get lockedUserName() { + if (!this.lockedUser) return ""; + if (!this.lockedUser.displayName) { + if (this.lockedUser.id === r2.getConnectedUser().id) return r2.getConnectedUser().displayName || T.generic.currentUser; + let e3 = y.getUnknownUserName(this.lockedUser.id, this.lockedUser.isOAuthClient); + return e3 || (e3 = this.lockedUser.isOAuthClient ? T.flow.unknownClient : T.flow.unknownUser), e3; + } + return this.lockedUser.displayName; + } + get nluInfo() { + var e3; + return null === (e3 = this._model) || void 0 === e3 ? void 0 : e3.nluInfo; + } + get surveyForm() { + var e3; + return null === (e3 = this._model) || void 0 === e3 ? void 0 : e3.surveyForm; + } + get publishedDisplay() { + return this.versions.publishedDisplay; + } + get publishedVersion() { + return this.versions.publishedVersion; + } + get system() { + return this._model.system; + } + actionInProgress(e3) { + if (this._model.currentOperation && (!e3 || this._model.currentOperation.actionName === e3)) switch (this._model.currentOperation.actionStatus) { + case o.actionStatus.started: + case o.actionStatus.pendingGeneration: + case o.actionStatus.pendingBackendNotification: + return true; + case o.actionStatus.success: + case o.actionStatus.failure: + default: + return false; + } + return false; + } + get isActive() { + return this._model.active; + } + get hasBriefModel() { + return this._model && this._model.isBaseBriefEntity; + } + get hasCheckedInVersion() { + return !(!this.versions || !this.versions.checkedInVersion); + } + get hasDebugPublish() { + return !(!this.versions || !this.versions.debugVersion); + } + get couldHavePublishedVersionExecutionData() { + return (this.isPublished || this.hasDebugPublish || this.versions.getInferredVersions().length > 1) && l.default.flowTypeSupportsExecutionData(this.type); + } + get canEdit() { + return f.permissionServiceHelper.canEditFlow(this); + } + get checkCanEdit() { + return f.permissionServiceHelper.checkCanEditFlow(this); + } + get canDelete() { + return f.permissionServiceHelper.canDeleteFlow(this); + } + get checkCanDelete() { + return f.permissionServiceHelper.checkCanDeleteFlow(this); + } + get canPublish() { + return f.permissionServiceHelper.canPublishFlow(this); + } + get checkCanPublish() { + return f.permissionServiceHelper.checkCanPublishFlow(this); + } + get canUnlock() { + return this.currentUserHasLock ? f.permissionServiceHelper.canEditFlow(this) : f.permissionServiceHelper.canUnlockFlow(this); + } + get checkCanUnlock() { + return this.currentUserHasLock ? f.permissionServiceHelper.checkCanEditFlow(this) : f.permissionServiceHelper.checkCanUnlockFlow(this); + } + get canView() { + return f.permissionServiceHelper.canViewFlow(this); + } + get canViewDisplayString() { + return f.permissionServiceHelper.checkCanViewFlow(this).displayString; + } + get currentUserCanEdit() { + return this._currentUserCanEdit; + } + resetCurrentUserCanEdit() { + this._currentUserCanEdit = this.currentUserHasLock && r2.getConnectedUser() && this.canEdit && this.versions.isLatestVersion && !this.deleted || this.id && "__" === this.id.slice(0, 2); + } + get currentUserHasLock() { + return this._currentUserHasLock; + } + get currentOperation() { + return this._model.currentOperation; + } + get defaultLanguage() { + var e3; + if (null === (e3 = this.supportedLanguages) || void 0 === e3 ? void 0 : e3.length) { + for (const e4 of this.supportedLanguages) if (null == e4 ? void 0 : e4.isDefault) return e4.language; + } + } + get deleted() { + return this._model.deleted || "deleted" === this.state; + } + get state() { + return this._model.state; + } + get definition() { + return this._definition; + } + get flowTypeName() { + return this.definition.typeDisplayName; + } + get virtualAgentEnabled() { + var e3, t3, i3; + return (null === (e3 = this._model) || void 0 === e3 ? void 0 : e3.virtualAgentEnabled) || (null === (i3 = null === (t3 = this._model) || void 0 === t3 ? void 0 : t3.publishedVersion) || void 0 === i3 ? void 0 : i3.virtualAgentEnabled) || false; + } + get agenticVirtualAgentEnabled() { + var e3, t3, i3; + return (null === (e3 = this._model) || void 0 === e3 ? void 0 : e3.agenticVirtualAgentEnabled) || (null === (i3 = null === (t3 = this._model) || void 0 === t3 ? void 0 : t3.publishedVersion) || void 0 === i3 ? void 0 : i3.agenticVirtualAgentEnabled) || false; + } + get inputSchema() { + return this._inputSchema; + } + get outputSchema() { + return this._outputSchema; + } + get alternateInputSchemas() { + return this._alternateInputSchemas; + } + get alternateOutputSchemas() { + return this._alternateOutputSchemas; + } + get hasLoadedSchemas() { + return !!this.inputSchema || !!this.outputSchema; + } + hasSchemaInputVariable(e3) { + return !(!e3 || "string" != typeof e3 || e3.trim().length < 1) && (e3 = e3.toLowerCase(), this.inputSchema && s.default.find(this.inputSchema.properties, (t3) => { + var i3; + return (null === (i3 = t3.name) || void 0 === i3 ? void 0 : i3.toLowerCase()) === e3; + })); + } + hasSchemaOutputVariable(e3) { + return !(!e3 || "string" != typeof e3 || e3.trim().length < 1) && (e3 = e3.toLowerCase(), this.outputSchema && s.default.find(this.outputSchema.properties, (t3) => { + var i3; + return (null === (i3 = t3.name) || void 0 === i3 ? void 0 : i3.toLowerCase()) === e3; + })); + } + hasSchemaVariable(e3) { + return this.hasSchemaOutputVariable(e3) || this.hasSchemaInputVariable(e3); + } + getAllSchemaProperties() { + const e3 = this.outputSchema ? this.outputSchema.properties : [], t3 = this.inputSchema ? this.inputSchema.properties : []; + return [].concat(e3 || [], t3 || []); + } + get id() { + return this._model.id || this._model.flowId; + } + get info() { + return this.topic.warningWithStack(null, "Accessing the getter info off of FlowInfoViewModel."), this; + } + get isCheckedInSecure() { + return this._model.checkedInVersion && this._model.checkedInVersion.secure; + } + get isPublishedSecure() { + return this._model.publishedVersion && this._model.publishedVersion.secure; + } + get isFlowInfo() { + return true; + } + get isFlowInfoViewModel() { + return true; + } + get isInQueueCallFlow() { + return this.type === h.flowTypes.flowTypeInQueueCall; + } + get isVoicemailFlow() { + return this.type === h.flowTypes.flowTypeVoicemail; + } + get isImportant() { + return this.system; + } + get isLocked() { + return !!this._model.lockedUser || !!this._model.lockedClient; + } + get isPublished() { + return !!this._model.publishedVersion; + } + get isDebugPublished() { + return !!this._model.debugVersion; + } + get isLockedByOtherUser() { + return this.isLocked && !this.currentUserHasLock; + } + get isReadOnly() { + return !this.currentUserCanEdit; + } + get label() { + return this.displayName || ""; + } + get lockedUser() { + return this._model.lockedUser || this._model.lockedClient; + } + get supportedLanguages() { + var e3, t3; + return this._model.supportedLanguages || (null === (t3 = null === (e3 = this._model) || void 0 === e3 ? void 0 : e3.publishedVersion) || void 0 === t3 ? void 0 : t3.supportedLanguages); + } + get text() { + return this.displayName || ""; + } + get type() { + return this._model.type.toLowerCase(); + } + updateSavedVersion(e3) { + this._model.savedVersion = e3, this.versions.updateInfoVersions(this._model.savedVersion, this._model.checkedInVersion, this._model.publishedVersion, this._model.debugVersion); + } + toString() { + return `FlowInfo - type: '${this.type}', id: '${this.id}'`; + } + } + t2.default = S; + }, 90436: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = i2(17604), o = n2.__importDefault(i2(92140)), a = n2.__importDefault(i2(41510)), s = i2(43212), l = n2.__importDefault(i2(56133)), u = n2.__importDefault(i2(25154)), d = n2.__importDefault(i2(27579)), c = i2(47957), p = i2(3916); + function _(e3) { + const t3 = o.default.isUndefined(e3.complexGenericVariableInfo) ? (0, r2.sprintf)(c.nuanceMix.externalDataTypeLabel, e3.simpleVariableInfo) : o.default.isUndefined(e3.complexGenericVariableInfo.name) ? (0, r2.sprintf)(c.nuanceMix.externalComplexDataTypeLabel) : (0, r2.sprintf)(c.nuanceMix.externalDataTypeLabel, e3.complexGenericVariableInfo.name); + return { title: c.nuanceMix.externalDataTypeTitle, entries: [t3] }; + } + function h(e3) { + return { nuanceExternalDataType: e3 }; + } + class m extends s.BaseConfigurationListViewModel { + constructor(e3) { + super(e3), this.fullBotNotLoaded = true, this._errorSchema = (0, d.default)(); + } + get className() { + return "NuanceMixBotViewModel"; + } + get applicationName() { + var e3; + return null === (e3 = this.model.application) || void 0 === e3 ? void 0 : e3.name; + } + get botId() { + return this.model.botId; + } + get botName() { + return this.model.botName; + } + get integrationId() { + return this.model.integrationId; + } + get name() { + return this.model.name; + } + get errorSchema() { + return this._errorSchema; + } + get languages() { + return this._languages; + } + get id() { + return this.model.id; + } + get isNuanceMixBotViewModel() { + return true; + } + get label() { + return (0, r2.sprintf)(a.default.itemParenValue, this.model.name, this.applicationName); + } + get botVariables() { + return this._botVariables; + } + get audioChannels() { + return o.default.filter(this.channels, (e3) => e3.isVoiceChannel); + } + get textChannels() { + return o.default.filter(this.channels, (e3) => e3.isTextChannel); + } + get model() { + return this._model; + } + set model(e3) { + if (this._model = e3, this.intents = [], this.channels = [], this._botVariables = [], this._languages = [], this._model.variables) { + const e4 = {}; + o.default.each(this._model.variables, (t3) => { + const i3 = o.default.clone(t3); + i3.type = "string", i3.staticMetaData = h(t3), i3.additionalInfoSection = _(t3), e4[i3.name] = i3; + }), this._botVariables = p.createSchemaPropertyList(e4); + } + this._model.transferNodes && o.default.each(this._model.transferNodes, (e4) => { + const t3 = o.default.clone(e4); + t3.localizedLabel = (0, r2.sprintf)(a.default.itemColonValue, e4.type, e4.name), t3.slots = {}, o.default.each(t3.requestVariables, (e5) => { + t3.slots[e5.name] = { description: e5.description, name: e5.name, staticMetaData: h(e5), additionalInfoSection: _(e5), type: "string" }; + }), this.intents.push(new l.default(t3)); + }), this._model.locales && o.default.each(this._model.locales, (e4) => { + this._languages.push(e4); + }), this._model.channels && o.default.each(this._model.channels, (e4) => { + this.channels.push(new u.default(e4)); + }); + } + } + t2.default = m; + }, 90480: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.inboundFlowListManager = t2.InboundFlowListManager = void 0; + const n2 = i2(80665), r2 = i2(6109), o = i2(96618), a = i2(24032), s = i2(27862); + class l extends r2.FlowListManager { + get dependencyType() { + return s.InboundCallFlow; + } + constructor() { + super(), this.topic = (0, a.getTopic)("inboundFlowListManager"), this.briefManager = n2.briefInboundFlowListManager, this.additionalQueryParams = { type: o.flowTypes.flowTypeInboundCall }, this.className = "InboundFlowListManager", this.flowType = o.flowTypes.flowTypeInboundCall, this._initialize(); + } + } + t2.InboundFlowListManager = l, t2.inboundFlowListManager = new l(); + }, 90562: (e2, t2, i2) => { + const n2 = i2(46205), { callDigitalBotFlowActionType: r2 } = i2(30801); + function o() { + o.baseConstructor.apply(this, arguments); + } + n2.extend(o, r2, true), e2.exports = o; + }, 90601: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(54063)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "messageStickerInfoCollection"; + } + get displayTypeName() { + return "ArchValueMessageStickerInfoCollection"; + } + get isArchValueMessageStickerInfoCollection() { + return true; + } + } + t2.default = r2; + }, 90680: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.switchMap = void 0; + var n2 = i2(19724), r2 = i2(65212), o = i2(17214); + t2.switchMap = function(e3, t3) { + return r2.operate(function(i3, r3) { + var a = null, s = 0, l = false, u = function() { + return l && !a && r3.complete(); + }; + i3.subscribe(o.createOperatorSubscriber(r3, function(i4) { + null == a || a.unsubscribe(); + var l2 = 0, d = s++; + n2.innerFrom(e3(i4, d)).subscribe(a = o.createOperatorSubscriber(r3, function(e4) { + return r3.next(t3 ? t3(i4, e4, d, l2++) : e4); + }, function() { + a = null, u(); + })); + }, function() { + l = true, u(); + })); + }); + }; + }, 90700: (e2, t2, i2) => { + const n2 = i2(58649); + function r2() { + r2.baseConstructor.apply(this, arguments); + } + i2(22124).extend(r2, "ContactListArray"), Object.defineProperties(r2.prototype, { entities: { enumerable: true, get: function() { + return this._entities; + }, set: function(e3) { + this._entities = this.reviveArray(e3, n2); + } } }), e2.exports = r2; + }, 90708: (e2, t2, i2) => { + "use strict"; + var n2; + Object.defineProperty(t2, "__esModule", { value: true }), t2.AbortSendActionModel = void 0; + const r2 = i2(31635), o = i2(30801), a = i2(94858), s = i2(80295), l = r2.__importDefault(i2(7401)); + class u extends a.BaseActionModel { + constructor(e3) { + super(e3), this.__type = u.__type, (0, s.makeUnenumerable)(this, "_message"); + } + get message() { + return this._message; + } + set message(e3) { + this._message = this.reviveItem(e3, l.default); + } + pasteReIdOrRename(e3) { + var t3; + super.pasteReIdOrRename(e3), null === (t3 = this.message) || void 0 === t3 || t3.pasteReIdOrRename(e3); + } + pasteResolveOldToNewValues(e3) { + var t3; + super.pasteResolveOldToNewValues(e3), null === (t3 = this.message) || void 0 === t3 || t3.pasteResolveOldToNewValues(e3); + } + } + t2.AbortSendActionModel = u, u.__type = o.abortSendActionType, r2.__decorate([(0, s.enumerable)(true), r2.__metadata("design:type", "function" == typeof (n2 = void 0 !== l.default && l.default) ? n2 : Object), r2.__metadata("design:paramtypes", [Object])], u.prototype, "message", null), u.registerType(); + }, 90715: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.IntegrationType = void 0; + const n2 = i2(31635), r2 = i2(80295), o = i2(80295), a = i2(19596); + class s extends a.DataContract { + constructor(e3) { + super(e3), (0, o.makeUnenumerable)(this, "_id"); + } + get id() { + return this._id; + } + set id(e3) { + this._id = e3; + } + } + t2.IntegrationType = s, n2.__decorate([(0, r2.enumerable)(true), n2.__metadata("design:type", String), n2.__metadata("design:paramtypes", [String])], s.prototype, "id", null); + }, 90729: (e2, t2, i2) => { + const n2 = i2(63416), r2 = i2(83276), o = i2(99552), a = i2(5080), s = i2(36019).default; + function l() { + } + const u = new l(); + l.prototype.getCategoryList = s.request("GET", "{public-api.apps}/api/v2/integrations/actions/categories", r2), l.prototype.getActionList = s.request("GET", "{public-api.apps}/api/v2/integrations/actions", o), l.prototype.getAction = s.request("GET", "{public-api.apps}/api/v2/integrations/actions/{id}", n2), l.prototype.getSchema = s.request("GET", "{public-api.apps}{schema_uri}", a); + const d = { ignoreBadResponse: true }; + u.getCategoryList.addOptions(d), u.getActionList.addOptions(d), e2.exports = u; + }, 90733: (e2, t2, i2) => { + "use strict"; + var n2, r2; + Object.defineProperty(t2, "__esModule", { value: true }); + const o = i2(31635), a = i2(30801), s = o.__importDefault(i2(21345)); + class l extends s.default { + constructor(e3) { + super(e3), n2.set(this, void 0), r2.set(this, void 0), o.__classPrivateFieldSet(this, n2, this.coreFactory.createArchWrapper(e3.rawSIPHeadersResult), "f"), e3.errorBindings && o.__classPrivateFieldSet(this, r2, this.coreFactory.createArchWrapper(e3.errorBindings), "f"); + } + get _actionTypeId() { + return a.getRawSIPHeadersActionType; + } + get displayTypeName() { + return this._scriptingName; + } + get isArchActionGetRawSIPHeaders() { + return true; + } + get rawSIPHeadersResult() { + return o.__classPrivateFieldGet(this, n2, "f"); + } + setInputDataVariable(e3) { + this._checkItemIsValidLiteralStringOrStringArray(this._infoParm("inputDataVariable", "setInputDataVariable"), e3, false), o.__classPrivateFieldGet(this, n2, "f").setVariable(e3); + } + get getRawSipHeadersFailureOutputs() { + return o.__classPrivateFieldGet(this, r2, "f"); + } + } + n2 = /* @__PURE__ */ new WeakMap(), r2 = /* @__PURE__ */ new WeakMap(), t2.default = l; + }, 90807: (e2, t2, i2) => { + const n2 = i2(45214), r2 = i2(7401); + function o() { + Object.defineProperties(this, { _value: { writable: true } }), this.name = void 0, this.referenceId = void 0, o.baseConstructor.apply(this, arguments); + } + n2.extend(o, "DataPair"), Object.defineProperties(o.prototype, { pasteReIdOrRename: { value: function(e3) { + this.value.pasteReIdOrRename(e3); + } }, pasteResolveOldToNewValues: { value: function(e3) { + this.value.pasteResolveOldToNewValues(e3), this.referenceId = e3.pasteResolveOldIdToNewId(this.referenceId); + } }, isDataPair: { value: true }, value: { enumerable: true, get: function() { + return this._value; + }, set: function(e3) { + this._value = this.reviveItem(e3, r2); + } } }), e2.exports = o; + }, 90858: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.messagingTemplateSequences = void 0; + const n2 = i2(31635), r2 = i2(28562), o = i2(80295), a = i2(73324); + class s extends a.BaseBotActionSettingsSequence { + constructor() { + super("messagingTemplate"); + } + get noInputDigitalBotSequence() { + const e3 = this.generateLanguageSequencesDefaultSequence("noInputDigitalBot"); + return this.generateLanguageSequenceConfig("MessagingTemplateNoInputDigitalBot", r2.builderIds.parts.genericCommunication, e3); + } + get noMatchDigitalBotSequence() { + const e3 = this.generateLanguageSequencesDefaultSequence("noMatchDigitalBot"); + return this.generateLanguageSequenceConfig("MessagingTemplateNoMatchDigitalBot", r2.builderIds.parts.markdownCommunication, e3); + } + } + n2.__decorate([(0, o.enumerable)(true), n2.__metadata("design:type", Object), n2.__metadata("design:paramtypes", [])], s.prototype, "noInputDigitalBotSequence", null), n2.__decorate([(0, o.enumerable)(true), n2.__metadata("design:type", Object), n2.__metadata("design:paramtypes", [])], s.prototype, "noMatchDigitalBotSequence", null), t2.messagingTemplateSequences = new s(); + }, 90891: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.getResponseLibraries = o, t2.getResponseLibrary = a, t2.getResponses = s, t2.getResponseAsset = l, t2.getResponseAssets = u, t2.getDigitalAudioResponseAssets = d, t2.getFileResponseAssets = c, t2.getImageResponseAssets = p, t2.getVideoResponseAssets = _, t2.getResponse = h, t2.getResponseAssetUploadURL = m, t2.getResponseAssetUploadStatus = g, t2.uploadResponseAsset = function(e3, t3, i3) { + const r3 = n2.default.build(n2.default.request("PUT", e3)); + return r3.headers = t3, r3.imageFile(i3).call(); + }; + const n2 = i2(31635).__importDefault(i2(36019)), r2 = i2(81621); + function o(e3) { + return n2.default.build(r2.getLibraries).queryParams(e3.getSearchQueryParams()).call(); + } + function a(e3) { + return n2.default.build(r2.getLibrary).templateParams({ id: e3 }).call(); + } + function s(e3) { + const t3 = n2.default.build(r2.getResponses), i3 = e3.getSearchQueryParams(); + return t3.content(i3), t3.call(); + } + function l(e3) { + return n2.default.build(r2.getResponseAsset).templateParams({ id: e3 }).call(); + } + function u(e3) { + const t3 = n2.default.build(r2.getResponseAssets), i3 = e3.get_q64searchContent(); + return t3.content(i3), t3.call(); + } + function d(e3) { + const t3 = n2.default.build(r2.getResponseAssets), i3 = e3.get_q64searchContent(); + return i3.query || (i3.query = []), i3.query.push({ fields: ["contentType"], value: "audio", type: "STARTS_WITH" }), t3.content(i3), t3.call(); + } + function c(e3) { + const t3 = n2.default.build(r2.getResponseAssets), i3 = e3.get_q64searchContent(); + return i3.query || (i3.query = []), i3.query.push({ fields: ["contentType"], value: "application", type: "STARTS_WITH" }), t3.content(i3), t3.call(); + } + function p(e3) { + const t3 = n2.default.build(r2.getResponseAssets), i3 = e3.get_q64searchContent(); + return i3.query || (i3.query = []), i3.query.push({ fields: ["contentType"], value: "image", type: "STARTS_WITH" }), t3.content(i3), t3.call(); + } + function _(e3) { + const t3 = n2.default.build(r2.getResponseAssets), i3 = e3.get_q64searchContent(); + return i3.query || (i3.query = []), i3.query.push({ fields: ["contentType"], value: "video", type: "STARTS_WITH" }), t3.content(i3), t3.call(); + } + function h(e3) { + return n2.default.build(r2.getResponse).queryParams({ expand: "substitutionsSchema" }).templateParams({ id: e3 }).call(); + } + function m(e3) { + const t3 = n2.default.build(r2.getResponseAssetUploadURL); + return t3.content(e3), t3.call(); + } + function g(e3) { + return n2.default.build(r2.getResponseAssetUploadStatus).templateParams({ statusId: e3 }).call(); + } + o.api = r2.getLibraries, a.api = r2.getLibrary, s.api = r2.getResponses, l.api = r2.getResponseAsset, u.api = r2.getResponseAssets, d.api = r2.getResponseAssets, c.api = r2.getResponseAssets, p.api = r2.getResponseAssets, _.api = r2.getResponseAssets, h.api = r2.getResponse, m.api = r2.getResponseAssetUploadURL, g.api = r2.getResponseAssetUploadStatus; + }, 90897: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = i2(26847), o = n2.__importDefault(i2(62957)); + class a extends o.default { + constructor(e3) { + super(e3); + } + get displayTypeName() { + return "ArchBaseActionWithOutputsFoundNotFoundFailure"; + } + get isArchBaseActionWithOutputsFoundNotFoundFailure() { + return true; + } + get outputFound() { + return this._getOutputById(r2.outputIds.found, true); + } + get outputNotFound() { + return this._getOutputById(r2.outputIds.notFound, true); + } + } + t2.default = a; + }, 90924: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.ExpressionFuncPart = void 0; + const n2 = i2(31635).__importStar(i2(81116)), r2 = i2(27491), o = i2(14394), a = i2(55909), s = i2(33951), l = i2(36470); + t2.ExpressionFuncPart = class { + constructor(e3) { + this._endTextPos = -1, this._identifierText = "", this._identifierStartTextPos = -1, this._leftParenTextPos = -1, this._nextTokenGetsNewParameter = false, this._parenCount = 0, this._parameterItemIdx = -1, this._parameterItems = [], this._resolvedFuncDefChecked = false, this._resolvedFuncOverloadDefChecked = false, this._rightParenTextPos = -1, this._expression = e3; + } + get parameterStrings() { + const e3 = []; + return this._parameterItems.forEach((t3) => { + "string" == typeof t3 ? e3.push(t3) : t3.isExpressionFuncPart ? e3.push(t3.partText) : e3.push(""); + }), e3; + } + get className() { + return "ExpressionFuncPart"; + } + get isExpressionFuncPart() { + return true; + } + get parameterHasMismatchedParens() { + return 0 !== this._parenCount; + } + get partText() { + return this._expression.text.substring(this.startTextPos, this.endTextPos + 1); + } + get resolvedFuncOverloadDef() { + if (!this._resolvedFuncOverloadDefChecked && (this._resolvedFuncOverloadDefChecked = true, this.partText)) { + const e3 = n2.doNotTrackExpression(this._expression.parentFlow, this._expression.parent, null, "", o.globalTypes.any); + e3.setAsExpression(this.partText), e3.processText(true); + let t3 = e3.config; + if (t3 && t3.isImplicitCastingFunc && (t3 = t3.getOperands()[0]), t3) { + const e4 = r2.expressionDataService.getOverload(t3, void 0, this._expression); + e4.result && (this._resolvedFuncOverloadDef = e4.result); + } + this.resolvedFuncDef && !this._resolvedFuncOverloadDef && 1 === this.resolvedFuncDef.overloads.length && (this._resolvedFuncOverloadDef = this.resolvedFuncDef.overloads[0]); + } + return this._resolvedFuncOverloadDef; + } + get identifierText() { + return this._identifierText; + } + get hasIdentifier() { + return this.identifierStartTextPos >= 0 && this.identifierText.length > 0; + } + get identifierStartTextPos() { + return this._identifierStartTextPos; + } + get identifierEndTextPos() { + return -1 === this._identifierStartTextPos ? -1 : this._identifierStartTextPos + this._identifierText.length - 1; + } + get resolvedFuncDef() { + if (!this._resolvedFuncDefChecked) { + this._resolvedFuncDefChecked = true; + const e3 = r2.expressionDataService.getFuncIdByText(this._identifierText); + e3 && 1 === e3.length && e3[0].isFunction ? this._resolvedFuncDef = e3[0] : this._resolvedFuncDef = void 0; + } + return this._resolvedFuncDef; + } + get isValidFunctionCall() { + return !!this.resolvedFuncDef && this.hasLeftParen && this.hasRightParen; + } + get isFunctionCall() { + return this.hasIdentifier && this.hasLeftParen && this.hasRightParen; + } + get isParensOnly() { + return this.hasLeftParen && this.hasRightParen && !this.hasIdentifier; + } + get functionText() { + const e3 = this.resolvedFuncDef; + return e3 ? e3.text : void 0; + } + get leftParenTextPos() { + return this._leftParenTextPos; + } + get hasLeftParen() { + return -1 !== this._leftParenTextPos; + } + get rightParenTextPos() { + return this._rightParenTextPos; + } + get hasRightParen() { + return -1 !== this._rightParenTextPos; + } + get startTextPos() { + return -1 !== this._identifierStartTextPos ? this._identifierStartTextPos : -1 !== this._leftParenTextPos ? this._leftParenTextPos : this._rightParenTextPos; + } + get endTextPos() { + return -1 !== this._endTextPos ? this._endTextPos : -1 !== this._rightParenTextPos ? this._rightParenTextPos : -1 !== this._leftParenTextPos ? this.leftParenTextPos : this.identifierEndTextPos; + } + setEndTextPosToExpressionTextLength() { + this._endTextPos = this._expression.text.length - 1; + } + get infoString() { + const e3 = []; + this.resolvedFuncDef ? (e3.push("resolved function: " + this.functionText), this.resolvedFuncOverloadDef && e3.push("overload: " + this.resolvedFuncOverloadDef.id)) : -1 !== this.identifierStartTextPos && e3.push("unresolved function: " + this.identifierText), e3.push("parens: " + (this.hasLeftParen ? "(" : "") + (this.hasRightParen ? ")" : "") + (this.hasLeftParen ? ", leftParenTextPos: " + this.leftParenTextPos : "") + (this.hasRightParen ? ", rightParenTextPos: " + this.rightParenTextPos : "")), e3.push("startTextPos: " + this.startTextPos), e3.push("endTextPos: " + this.endTextPos), e3.push("partText: " + this.partText), e3.push("parameter count: " + this._parameterItems.length); + const t3 = this.parameterStrings; + for (let i3 = 0; i3 < t3.length; i3++) e3.push(" parm " + i3 + ": " + t3[i3]); + return e3.join("\n "); + } + containsPosition(e3) { + return s.ParameterValidator.expectInt(e3, () => a.ParameterInfo.createFunctionParameter(this.className, "containsPosition", "position")), this.startTextPos <= e3 && this.endTextPos >= e3; + } + setLeftParenFromAntlrToken(e3) { + return this._leftParenTextPos = s.ParameterValidator.expectTrue(-1 === this._leftParenTextPos, e3.tokenPos, "left paren already set", () => a.ParameterInfo.createFunctionParameter(this.className, "setLeftParenFromAntlrToken", "token")), this.hasIdentifier && this.addParameterPlaceholder(), this; + } + setRightParenFromAntlrToken(e3) { + return this._rightParenTextPos = s.ParameterValidator.expectTrue(-1 === this._rightParenTextPos, e3.tokenPos, "right paren already set", () => a.ParameterInfo.createFunctionParameter(this.className, "setRightParenFromAntlrToken", "token")), this; + } + setIdentifierFromAntlrToken(e3) { + return this._identifierText = e3.token.getText(), this._identifierStartTextPos = s.ParameterValidator.expectTrue(-1 === this._leftParenTextPos || e3.tokenPos < this._leftParenTextPos, e3.tokenPos, "identifier token pos < left paren pos", () => a.ParameterInfo.createFunctionParameter(this.className, "setIdentifierFromAntlrToken", "token")), this._resolvedFuncDefChecked = false, this; + } + _appendTextToCurrentParameter(e3) { + if (this._nextTokenGetsNewParameter) return this._parameterItems.push(e3), this._parameterItemIdx = this._parameterItemIdx + 1, void (this._nextTokenGetsNewParameter = false); + "string" == typeof this._parameterItems[this._parameterItemIdx] ? this._parameterItems[this._parameterItemIdx] = this._parameterItems[this._parameterItemIdx] + e3 : this._parameterItems[this._parameterItemIdx] = e3; + } + appendExpressionFuncPartTextForCurrentParameter(e3) { + this._appendTextToCurrentParameter(e3.partText); + } + addParameterPlaceholder() { + this._nextTokenGetsNewParameter && (this._parameterItems.push(""), this._parameterItemIdx = this._parameterItemIdx + 1), this._nextTokenGetsNewParameter = true; + } + addLParenAntlrTokenToCurrentParameter(e3) { + this._parenCount = this._parenCount + 1, this.addAntlrTokenToCurrentParameter(e3); + } + addRParenAntlrTokenToCurrentParameter(e3) { + this._parenCount = this._parenCount - 1, this.addAntlrTokenToCurrentParameter(e3); + } + addAntlrTokenToCurrentParameter(e3) { + this._nextTokenGetsNewParameter && e3.tokenType === l.WS || this._appendTextToCurrentParameter(e3.token.getText()); + } + destroy() { + this._resolvedFuncDef = void 0, this._resolvedFuncOverloadDef = void 0; + } + }; + }, 90961: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(54757)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "wheelPickerItemCollection"; + } + get displayTypeName() { + return "ArchValueWheelPickerItemCollection"; + } + get isArchValueWheelPickerItemCollection() { + return true; + } + } + t2.default = r2; + }, 91013: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(81574)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "externalSource"; + } + get id() { + } + get name() { + } + get active() { + } + get linkConfiguration() { + } + get displayTypeName() { + return "ArchValueExternalSource"; + } + get isArchValueExternalSource() { + return true; + } + } + t2.default = r2; + }, 91035: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.emailScriptManager = t2.EmailScriptManager = void 0; + const n2 = i2(31635).__importDefault(i2(92140)), r2 = i2(24032), o = i2(30801), a = i2(82915), s = i2(47957), l = i2(52124), u = i2(28195); + class d extends a.ScriptManager { + constructor() { + super("EmailScriptManager"), this.topic = (0, r2.getTopic)("emailScriptManager"), this.actionsForUsageSearch = [o.screenPopActionType], this.apiCallList = n2.default.partial(l.getScriptsForFeature, u.email), this.dependencyContext = s.screenPop.selectedEmailScript, this.scriptFeatureType = u.email; + } + } + t2.EmailScriptManager = d, t2.emailScriptManager = new d(); + }, 91048: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.default = function(e3, t3) { + return (0, n2.default)(e3, t3); + }; + const n2 = i2(31635).__importDefault(i2(68631)); + }, 91156: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.voicemailFlowListManager = t2.VoicemailFlowListManager = void 0; + const n2 = i2(31635).__importStar(i2(24032)), r2 = i2(5261), o = i2(6109), a = i2(96618), s = i2(27862); + class l extends o.FlowListManager { + get dependencyType() { + return s.VoicemailFlow; + } + constructor() { + super(), this.topic = n2.getTopic("VoicemailFlowListManager"), this.briefManager = r2.briefVoicemailFlowListManager, this.additionalQueryParams = { type: a.flowTypes.flowTypeVoicemail }, this.className = "VoicemailFlowListManager", this.flowType = a.flowTypes.flowTypeVoicemail, this._rawServerCache = {}, this._initialize(); + } + } + t2.VoicemailFlowListManager = l, t2.voicemailFlowListManager = new l(); + }, 91173: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(93523)), r2 = i2(30801); + class o extends n2.default { + constructor(e3) { + super(e3); + } + get _actionTypeId() { + return r2.findUserByIdActionType; + } + get displayTypeName() { + return this._scriptingName; + } + get isArchActionFindUserById() { + return true; + } + get findResult() { + return this._findResult; + } + } + t2.default = o; + }, 91292: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(81574)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "externalFacebookInfo"; + } + get displayName() { + } + get ids() { + } + get displayTypeName() { + return "ArchValueExternalFacebookInfo"; + } + get isArchValueExternalFacebookInfo() { + return true; + } + } + t2.default = r2; + }, 91358: (e2, t2, i2) => { + var n2 = { "./cs-cz/resources.js": [23546, 3546], "./de-de/resources.js": [791, 791], "./en-us/resources.js": [12664], "./es-us/resources.js": [54581, 4581], "./fr-ca/resources.js": [22609, 2609], "./it-it/resources.js": [63271, 3271], "./ja-jp/resources.js": [14080, 4080], "./ko-kr/resources.js": [39838, 9838], "./nb-no/resources.js": [75610, 5610], "./nl-nl/resources.js": [90209, 209], "./pl-pl/resources.js": [72421, 2421], "./pt-br/resources.js": [88421, 8421], "./ru-ru/resources.js": [5931, 5931], "./sv-se/resources.js": [75238, 5238], "./tr-tr/resources.js": [14181, 4181], "./zh-cn/resources.js": [75314, 5314], "./zh-tw/resources.js": [5930, 5930] }; + function r2(e3) { + if (!i2.o(n2, e3)) return Promise.resolve().then(() => { + var t4 = new Error("Cannot find module '" + e3 + "'"); + throw t4.code = "MODULE_NOT_FOUND", t4; + }); + var t3 = n2[e3], r3 = t3[0]; + return Promise.all(t3.slice(1).map(i2.e)).then(() => i2(r3)); + } + r2.keys = () => Object.keys(n2), r2.id = 91358, e2.exports = r2; + }, 91437: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.ExpressionTypeWheelPickerItemOptions = void 0; + const n2 = i2(65615); + class r2 extends n2.BaseExpressionTypeCollectionOptions { + static create(e3, t3) { + return new this(t3).invokeOptionsCallback(e3); + } + constructor(e3) { + super(e3); + } + get className() { + return "ExpressionTypeWheelPickerItemOptions"; + } + get isExpressionTypeWheelPickerItemOptions() { + return true; + } + } + t2.ExpressionTypeWheelPickerItemOptions = r2; + }, 91491: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.CollectionExpression = void 0; + const n2 = i2(31635), r2 = i2(17604), o = n2.__importDefault(i2(92140)), a = n2.__importStar(i2(24032)), s = n2.__importDefault(i2(7401)), l = n2.__importStar(i2(35515)), u = n2.__importStar(i2(36781)), d = n2.__importStar(i2(58380)), c = i2(1115), p = i2(50474), _ = i2(50474), h = i2(98552), m = n2.__importStar(i2(63352)), g = i2(94486), f = i2(39168), T = i2(26403), y = n2.__importDefault(i2(65302)), S = i2(47957), A = a.getTopic("CollectionExpression"); + class N extends f.NormalExpression { + constructor(e3) { + super(e3); + } + copyExpressionValue(e3) { + var t3; + e3.isCollectionExpression && (e3.isLiteralMode ? (this.mode = e3.mode, this.config = e3.config, this.processCollection(true), this.initializeDesignTimeCalled && (null === (t3 = this.collectionItems) || void 0 === t3 ? void 0 : t3.items) && o.default.each(this.collectionItems.items, (e4) => e4.initializeDesignTime()), this._fireEvent(u.expressionValueChanged)) : super.copyExpressionValue(e3)); + } + get className() { + return "CollectionExpression"; + } + get displayValue() { + return this.collectionItems && this.isLiteralMode ? 1 === this.collectionItems.length ? (0, r2.sprintf)(S.collectionEditor.itemsInCollectionOne, this.type.displayString) : (0, r2.sprintf)(S.collectionEditor.itemsInCollection, this.collectionItems.length, this.type.displayString) : super.displayValue; + } + get errorMessage() { + return this.hasError ? this.isLiteralMode ? this.hasParseError ? this._parseResult.resultMessage : S.errors.collectionError : this.resultMessage : null; + } + get hasError() { + return this.isLiteralMode ? this.collectionItems && this.collectionItems.hasError || this.hasParseError : this._getHasError(); + } + get label() { + var e3; + return (null === (e3 = this.options) || void 0 === e3 ? void 0 : e3.labelOverride) || this._label; + } + set label(e3) { + this._label = e3, this.collectionItems && this.collectionItems.orderChanged && this.collectionItems.orderChanged(); + } + get resultMessage() { + return this.isLiteralMode && this.hasError ? this.hasParseError ? this._parseResult.resultMessage : S.errors.collectionError : this._parseResult ? this._parseResult.resultMessage : ""; + } + get resultType() { + return this.isLiteralMode && this.hasError ? T.ParseResultTypes.error : this._parseResult ? this._parseResult.resultType : void 0; + } + get type() { + return this._type; + } + set type(e3) { + (null == e3 ? void 0 : e3.isCustomType) ? super.type = e3 : this._type = e3; + } + removeChild(e3) { + this.collectionItems.removeChild(e3); + } + removeAll() { + var e3, t3, i3; + this.collectionItems.removeAll(), o.default.isArray(null === (i3 = null === (t3 = null === (e3 = this.model) || void 0 === e3 ? void 0 : e3.config) || void 0 === t3 ? void 0 : t3.lit) || void 0 === i3 ? void 0 : i3.items) && (this.model.config.lit.items.length = 0); + } + setLiteralEmptyCollection() { + this.mode = m.literal, this.removeAll(); + } + get amObjectEventSink() { + return true; + } + objEvent_listOrderChanged() { + d.fireEvent(this, u.listOrderChanged), (0, c.validateItem)(this, true, true); + } + _initialize() { + this.singleType = y.default.getType(this.parentFlow, this.type.dataType, false), this.config || (this.config = {}, this._ensureUiMetaData()), this.model.type = this.type.expressionType, this._needsDefaultTextSet && (this.text = this.options.defaultText), this.processText(); + } + get isCollectionExpression() { + return true; + } + processCollection(e3) { + if (this.collectionItems && !e3 && this.config) return; + this.config && this.config.lit && this.config.lit.items || this.setConfigAndMetaData(h.expressionItems.litColl(this.type)); + const t3 = this.config.lit.items; + for (let e4 = 0; e4 < t3.length; e4++) t3[e4] instanceof s.default || (t3[e4] = new s.default(t3[e4])); + this.collectionItems = new g.CollectionExpressionList(this, this.parent, this.model.config.lit.items, this.label, this.singleType, this.options, this.isTransitory), this.collectionItems.isOptional = this.isOptional, this.collectionItems.isZeroBasedList = true, this.collectionItems.shouldUseBracketsInLabel = true, d.registerEventSinkForEventEmitter(this.collectionItems.id, this); + } + setAsLiteral(e3) { + if (this.mode = m.literal, (0, p.isCollectionExpression)(e3)) { + const t3 = e3; + (null == t3 ? void 0 : t3.isLiteralMode) ? (A.errorWithStack(null, `Invalid CollectionExpression parameter value passed to '${this.className}::setAsLiteral'. We will process it but the calling method should not do this.`), o.default.each(t3.collectionItems.items, (e4) => { + this.collectionItems.addItem(this.collectionItems.createItem(e4.model, null, e4.options)); + })) : A.errorWithStack(null, `Invalid CollectionExpression parameter value passed to '${this.className}::setAsLiteral'. Not processing because value is not a literal collection.`); + } else { + if (!e3 || (0, _.isString)(e3) && !e3.length) return; + A.errorWithStack(null, `Invalid value passed to '${this.className}::setAsLiteral'. CollectionExpression cannot process a string value.`); + } + } + addItem() { + const e3 = this.collectionItems.type.createExpressionOptionClass().setCollectionItemFromCollectionOptions(this.options), t3 = this.collectionItems.createItem(null, null, e3); + return this.collectionItems.addItem(t3), t3; + } + _clearCollectionItems() { + this.collectionItems && (d.unregisterEventSinkForEventEmitter(this.collectionItems.id, this), this.collectionItems.destroy(), this.collectionItems = void 0); + } + get mode() { + return super.mode; + } + set mode(e3) { + this.isLiteralMode && e3 !== m.literal && this._clearCollectionItems(), super.mode = e3, this.createDefaultItems(); + } + createDefaultItems() { + } + outOfServiceChanged(e3) { + super.outOfServiceChanged(e3), this.createDefaultItems(); + } + setModeWithTransition(e3, t3) { + if (this.mode !== e3) { + if (this.isLiteralMode && e3 === m.expression) { + if (this.collectionItems.length > 0) this.model.text = this.getEmbeddableExpressionText(); + else { + const e4 = this.type.getConversionText(); + this.model.text = e4 ? (0, r2.sprintf)("MakeEmptyList(%s(NOT_SET))", e4) : ""; + } + this._savedConfig = this.config, this._savedMetaData = this.metaData; + } else this.model.text = "", this._savedConfig && this.setConfigAndMetaData(this._savedConfig, this._savedMetaData); + this.mode = e3, this.rebuildOrCreateBuilderByDefId(t3); + } + } + validate(e3) { + if (this.isLiteralMode && !this.outOfService) { + this.processCollection(false); + let t3 = true; + const i3 = this.collectionItems.items && this.collectionItems.items.length; + let n3; + if (i3 > l.limits.collectionItemsMax) n3 = (0, r2.sprintf)(S.expression.collectionItemsMaxExceeded, this.collectionItems.items.length, l.limits.collectionItemsMax), this.setParseError(n3), t3 = false; + else if (this.optionsAs().maxItems && i3 > this.optionsAs().maxItems) this.optionsAs().maxItemsIsSoftLimit ? (n3 = (0, r2.sprintf)(S.expression.collectionItemsMaxRecommendedExceeded, this.collectionItems.items.length, this.optionsAs().maxItems), this.setParseWarning(n3)) : (n3 = (0, r2.sprintf)(S.expression.collectionItemsMaxExceeded, this.collectionItems.items.length, this.optionsAs().maxItems), this.setParseError(n3), t3 = false); + else if (1 === this.optionsAs().minItems && 0 === i3) n3 = S.expression.collectionItemsEmpty, this.setParseError(n3), t3 = false; + else if (this.optionsAs() && i3 < this.optionsAs().minItems) n3 = (0, r2.sprintf)(S.expression.collectionItemsMinNotExceeded, this.collectionItems.items.length, this.optionsAs().minItems), this.setParseError(n3), t3 = false; + else { + const e4 = this.type.singletonType.validateLiteralCollection(this); + e4 ? (n3 = e4.issueText, e4.isError ? (t3 = false, this.setParseError(n3)) : this.setParseWarning(n3)) : this.clearParseResult(); + } + if (t3) n3 && (e3.nodeHasWarning(this.parent.id, n3) || (e3.addWarning(this.parent, n3), e3.addWarning(this.parent, n3))); + else { + const t4 = (0, r2.sprintf)(S.errors.invalidValue, this.errorLabel); + e3.nodeHasError(this.parent.id, t4) || (e3.addError(this.parent, t4), e3.addError(this.parent, n3)); + } + return o.default.each(this.collectionItems.items, function(i4) { + t3 = i4.validate(e3) && t3; + }), true !== t3 || this.hasConfig ? t3 : this._handleNoConfigAtEndOfValidation(e3); + } + return super.validate(e3); + } + _initializeDesignTime() { + super._initializeDesignTime(), this.collectionItems && this.collectionItems.items && o.default.each(this.collectionItems.items, (e3) => e3.initializeDesignTime()); + } + getExpressions() { + return this.isLiteralMode ? this.collectionItems.getExpressions() : super.getExpressions(); + } + removeDependantValidationIssues(e3, t3, i3) { + var n3; + super.removeDependantValidationIssues(e3, t3, i3), t3.isCollectionExpression && (null === (n3 = t3.collectionItems) || void 0 === n3 ? void 0 : n3.items) && t3.collectionItems.items.forEach((t4) => { + e3.removeIssues(t4, i3); + }); + } + getEmbeddableExpressionText() { + if (this.isLiteralMode && this.type.canConvertLitToExpression(this.parentFlow.type)) { + const e3 = o.default.map(this.collectionItems.items, (e4) => e4.getEmbeddableExpressionText()).join(", "); + return (0, r2.sprintf)("MakeList(%s)", e3); + } + return super.getEmbeddableExpressionText(); + } + getCustomJsonText() { + if (this.isLiteralMode) { + const e3 = []; + for (const t3 of this.collectionItems.items) e3.push(t3.getCustomJsonText()); + return `[ ${e3.join(", ")} ]`; + } + return `{{ ${this.getEmbeddableExpressionText()} }}`; + } + } + t2.CollectionExpression = N, f.NormalExpression.CollectionExpression = N; + }, 91546: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.ExpressionTypeVoiceSnippetOptions = void 0; + const n2 = i2(65615), r2 = i2(55909), o = i2(33951); + class a extends n2.BaseExpressionTypeCollectionOptions { + static create(e3, t3) { + return new this(t3).invokeOptionsCallback(e3); + } + constructor(e3) { + super(e3); + } + get isExpressionTypeVoiceSnippetOptions() { + return true; + } + get className() { + return "ExpressionTypeVoiceSnippetOptions"; + } + get supportsLiteralMode() { + return false; + } + setAsInput(e3) { + o.ParameterValidator.expectBool(e3, () => r2.ParameterInfo.createFunctionParameter(this.className, "setAsInput", "restrictToLiteral"), true); + const t3 = !(true === e3); + return this._configureInputOutputState(true, false, false, t3); + } + setAsOutput() { + return this._configureInputOutputState(false, false, true, false); + } + } + t2.ExpressionTypeVoiceSnippetOptions = a; + }, 91606: (e2, t2, i2) => { + "use strict"; + const n2 = i2(31635), r2 = n2.__importDefault(i2(942)), o = i2(21647), a = i2(80428), s = i2(81516), l = i2(76632), u = i2(12179), d = n2.__importDefault(i2(97891)), c = i2(47957); + class p extends r2.default { + constructor(e3, t3) { + super(e3.parentFlow, e3), this._loadModel(t3); + } + static get managedProperties() { + const e3 = r2.default.createManagedProperties({ searchFieldPropertyName: "findId", searchFieldOptionsCallback: (e4) => e4.facets.setLengthForUuid(), searchFieldLabel: c.findActions.getJourneySessionsByCustomer.idLabel, searchResultLabel: c.findActions.getJourneySessionsByCustomer.resultsLabel, searchResultExpressionOptions: o.ExpressionTypeComplexOptions.create((e4) => e4.setIsCollection(true)), searchResultItemType: a.expressionTypeNames.journeySession }); + return e3.push({ label: c.findActions.getJourneySessionsByCustomer.idTypeLabel, options: s.ExpressionTypeStringOptions.create((e4) => { + e4.setAsInput().setUiPropertyOrder(11).setIninTestingField("findIdType").setDisableSpellcheck(true).setDefaultToExpression(true).facets.setMaxLength(256).setMinLength(1); + }), property: "findIdType", type: a.expressionTypeNames.string }), e3; + } + } + p.info = d.default.createActionInfo({ actionClass: p, canBeInTask: true, helpTopic: u.helpTopics.actions.getJourneySessionsByCustomer, modelClass: l.GetJourneySessionsByCustomerActionModel, name: c.actions.getJourneySessionsByCustomer, scriptingName: "ArchActionGetJourneySessionsByCustomer" }), t2.A = p; + }, 91625: (e2, t2, i2) => { + const n2 = i2(28730), r2 = i2(7401); + function o() { + Object.defineProperties(this, { _noInput: { writable: true }, _noMatch: { writable: true }, _question: { writable: true } }), o.baseConstructor.apply(this, arguments); + } + n2.extend(o, "BaseAskActionModel"), e2.exports = o, Object.defineProperties(o.prototype, { pasteResolveOldToNewValues: { value: function(e3) { + o._super.pasteResolveOldToNewValues.apply(this, arguments), this.question && this.question.pasteResolveOldToNewValues(e3); + } }, pasteReIdOrRename: { value: function(e3) { + o._super.pasteReIdOrRename.apply(this, arguments), this.question && this.question.pasteReIdOrRename(e3); + } }, question: { enumerable: true, get: function() { + return this._question; + }, set: function(e3) { + this._question = this.reviveItem(e3, r2); + } } }), e2.exports = o; + }, 91674: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.emergencyGroupManager = t2.EmergencyGroupManager = void 0; + const n2 = i2(31635), r2 = n2.__importStar(i2(50461)), o = n2.__importDefault(i2(47532)), a = i2(78235), s = i2(30801), l = i2(30801), u = i2(81801), d = n2.__importDefault(i2(4648)), c = i2(24032), p = i2(10798), _ = i2(47957), h = i2(27862); + class m extends o.default { + get requiredAuth() { + return (0, p.isFeatureAvailable)(d.default.divisionedRoutingObjects) ? u.externalAuthorizations.authStrings.emergencyGroupSearch : u.externalAuthorizations.authStrings.emergencyGroupView; + } + get dependencyType() { + return h.EmergencyGroup; + } + constructor() { + super(), this.topic = (0, c.getTopic)("emergencyGroupManager"), this._rawServerCache = {}, this.actionsForUsageSearch = [l.evaluateScheduleGroupActionType, s.evaluateScheduleActionType], this.actionPropertyForUsageSearch = "emergencyGroupId", this.apiCallList = r2.getEmergencyGroups, this.apiCallSingle = r2.getEmergencyGroup, this.uiMetadataSectionName = "emergencyGroups", this.dependencyContext = _.evaluateSchedules.emergencyGroup, this.className = "EmergencyGroupManager", this._initialize(); + } + _createItemViewModel(e3) { + return new a.EmergencyGroupViewModel(e3); + } + } + t2.EmergencyGroupManager = m, t2.emergencyGroupManager = new m(); + }, 91685: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = i2(30801), o = n2.__importDefault(i2(21345)); + class a extends o.default { + constructor(e3) { + super(e3); + } + get _actionTypeId() { + return r2.disconnectWorkitemActionType; + } + get displayTypeName() { + return this._scriptingName; + } + get isArchActionDisconnectWorkitem() { + return true; + } + get disconnectWorkitemOutputsFailure() { + return this._coreActionViewModel.errorBindings ? this.coreFactory.createArchWrapper(this._coreActionViewModel.errorBindings) : null; + } + } + t2.default = a; + }, 91709: (e2) => { + e2.exports = { askCommon: { invalidInputReceived: "\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B1\u03C0\u03AC\u03BD\u03C4\u03B7\u03C3\u03B7.", noInputReceived: "\u0394\u03B5\u03BD \u03AD\u03BB\u03B1\u03B2\u03B1 \u03BA\u03B1\u03BC\u03AF\u03B1 \u03B1\u03C0\u03AC\u03BD\u03C4\u03B7\u03C3\u03B7." }, askForBoolean: { noInput: '\u03A0\u03B5\u03AF\u03C4\u03B5 "\u03BD\u03B1\u03B9" \u03B3\u03B9\u03B1 \u03BD\u03B1 \u03C3\u03C5\u03BD\u03B5\u03C7\u03AF\u03C3\u03B5\u03C4\u03B5 \u03AE "\u03CC\u03C7\u03B9" \u03B1\u03BD \u03B4\u03B5\u03BD \u03B8\u03AD\u03BB\u03B5\u03C4\u03B5 \u03BD\u03B1 \u03C3\u03C5\u03BD\u03B5\u03C7\u03AF\u03C3\u03B5\u03C4\u03B5.', noMatch: '\u03A0\u03B5\u03AF\u03C4\u03B5 "\u03BD\u03B1\u03B9" \u03AE "\u03CC\u03C7\u03B9". \u0398\u03AD\u03BB\u03B5\u03C4\u03B5 \u03BD\u03B1 \u03C3\u03C5\u03BD\u03B5\u03C7\u03AF\u03C3\u03B5\u03C4\u03B5;', question: "\u0398\u03AD\u03BB\u03B5\u03C4\u03B5 \u03BD\u03B1 \u03C3\u03C5\u03BD\u03B5\u03C7\u03AF\u03C3\u03B5\u03C4\u03B5;", noInputDigitalBot: '\u0391\u03C0\u03B1\u03BD\u03C4\u03AE\u03C3\u03C4\u03B5 "\u039D\u03B1\u03B9" \u03B3\u03B9\u03B1 \u03BD\u03B1 \u03C3\u03C5\u03BD\u03B5\u03C7\u03AF\u03C3\u03B5\u03C4\u03B5 \u03AE "\u038C\u03C7\u03B9" \u03B1\u03BD \u03B4\u03B5\u03BD \u03B8\u03AD\u03BB\u03B5\u03C4\u03B5 \u03BD\u03B1 \u03C3\u03C5\u03BD\u03B5\u03C7\u03AF\u03C3\u03B5\u03C4\u03B5.', noMatchDigitalBot: '\u0391\u03C0\u03B1\u03BD\u03C4\u03AE\u03C3\u03C4\u03B5 "\u039D\u03B1\u03B9" \u03AE "\u038C\u03C7\u03B9". \u0398\u03AD\u03BB\u03B5\u03C4\u03B5 \u03BD\u03B1 \u03C3\u03C5\u03BD\u03B5\u03C7\u03AF\u03C3\u03B5\u03C4\u03B5;' }, askForIntent: { noInput: '\u03A0\u03B5\u03AF\u03C4\u03B5 \u03BC\u03B9\u03B1 \u03C3\u03CD\u03BD\u03C4\u03BF\u03BC\u03B7 \u03C0\u03C1\u03CC\u03C4\u03B1\u03C3\u03B7 \u03C0\u03BF\u03C5 \u03C0\u03B5\u03C1\u03B9\u03B3\u03C1\u03AC\u03C6\u03B5\u03B9 \u03C4\u03BF \u03B1\u03AF\u03C4\u03B7\u03BC\u03AC \u03C3\u03B1\u03C2. \u0393\u03B9\u03B1 \u03C0\u03B1\u03C1\u03AC\u03B4\u03B5\u03B9\u03B3\u03BC\u03B1, "\u0388\u03BB\u03B5\u03B3\u03C7\u03BF\u03C2 \u03C5\u03C0\u03BF\u03BB\u03BF\u03AF\u03C0\u03BF\u03C5 \u03BB\u03BF\u03B3\u03B1\u03C1\u03B9\u03B1\u03C3\u03BC\u03BF\u03CD"', noMatch: "\u03A0\u03B5\u03AF\u03C4\u03B5 \u03BC\u03BF\u03C5 \u03BE\u03B1\u03BD\u03AC \u03C4\u03B9 \u03B8\u03B1 \u03B8\u03AD\u03BB\u03B1\u03C4\u03B5 \u03BD\u03B1 \u03BA\u03AC\u03BD\u03B5\u03C4\u03B5.", question: "\u03A4\u03B9 \u03B8\u03B1 \u03B8\u03AD\u03BB\u03B1\u03C4\u03B5 \u03BD\u03B1 \u03BA\u03AC\u03BD\u03B5\u03C4\u03B5;", noInputDigitalBot: '\u03A0\u03BB\u03B7\u03BA\u03C4\u03C1\u03BF\u03BB\u03BF\u03B3\u03AE\u03C3\u03C4\u03B5 \u03BC\u03B9\u03B1 \u03C3\u03CD\u03BD\u03C4\u03BF\u03BC\u03B7 \u03C0\u03C1\u03CC\u03C4\u03B1\u03C3\u03B7 \u03C0\u03BF\u03C5 \u03C0\u03B5\u03C1\u03B9\u03B3\u03C1\u03AC\u03C6\u03B5\u03B9 \u03C4\u03BF \u03B1\u03AF\u03C4\u03B7\u03BC\u03AC \u03C3\u03B1\u03C2. \u0393\u03B9\u03B1 \u03C0\u03B1\u03C1\u03AC\u03B4\u03B5\u03B9\u03B3\u03BC\u03B1, "\u0388\u03BB\u03B5\u03B3\u03C7\u03BF\u03C2 \u03C5\u03C0\u03BF\u03BB\u03BF\u03AF\u03C0\u03BF\u03C5 \u03BB\u03BF\u03B3\u03B1\u03C1\u03B9\u03B1\u03C3\u03BC\u03BF\u03CD"' }, askForSlot: { askFor: "\u03A0\u03B5\u03AF\u03C4\u03B5 %1$s", noInput: "\u03A0\u03B5\u03AF\u03C4\u03B5 \u03AE \u03C0\u03BB\u03B7\u03BA\u03C4\u03C1\u03BF\u03BB\u03BF\u03B3\u03AE\u03C3\u03C4\u03B5 (please put your slot name here).", noInputWithSlot: "\u03A0\u03B5\u03AF\u03C4\u03B5 \u03AE \u03C0\u03BB\u03B7\u03BA\u03C4\u03C1\u03BF\u03BB\u03BF\u03B3\u03AE\u03C3\u03C4\u03B5 %1$s.", noMatch: "\u03A0\u03B5\u03AF\u03C4\u03B5 \u03BE\u03B1\u03BD\u03AC (please put your slot name here).", noMatchWithSlot: "\u03A0\u03B5\u03AF\u03C4\u03B5 \u03BE\u03B1\u03BD\u03AC %1$s.", question: "\u039C\u03C0\u03BF\u03C1\u03B5\u03AF\u03C4\u03B5 \u03BD\u03B1 \u03BC\u03B1\u03C2 \u03C0\u03B5\u03AF\u03C4\u03B5 (please put your slot name here);", questionWithSlot: "\u039C\u03C0\u03BF\u03C1\u03B5\u03AF\u03C4\u03B5 \u03BD\u03B1 \u03BC\u03B1\u03C2 \u03C0\u03B5\u03AF\u03C4\u03B5 %1$s;", pleaseEnterSlotNameHere: "(please put your slot name here)", noInputDigitalBot: "\u03A0\u03BB\u03B7\u03BA\u03C4\u03C1\u03BF\u03BB\u03BF\u03B3\u03AE\u03C3\u03C4\u03B5 (please put your slot name here).", noInputWithSlotDigitalBot: "\u03A0\u03BB\u03B7\u03BA\u03C4\u03C1\u03BF\u03BB\u03BF\u03B3\u03AE\u03C3\u03C4\u03B5 %1$s.", continuationPromptWithSlot: "\u0388\u03C7\u03C9 \u03BB\u03AC\u03B2\u03B5\u03B9 {{Slot.%1$s}} \u03AD\u03C9\u03C2 \u03C4\u03CE\u03C1\u03B1, \u03C3\u03C5\u03BD\u03B5\u03C7\u03AF\u03C3\u03C4\u03B5." }, askForNextSlot: { noInput: '\u03A0\u03B5\u03AF\u03C4\u03B5 "\u03BD\u03B1\u03B9"\u03B1\u03BD \u03AD\u03C7\u03B5\u03C4\u03B5 \u03AC\u03BB\u03BB\u03BF \u03B1\u03AF\u03C4\u03B7\u03BC\u03B1 \u03AE "\u03CC\u03C7\u03B9" \u03B3\u03B9\u03B1 \u03BD\u03B1 \u03C4\u03B5\u03C1\u03BC\u03B1\u03C4\u03B9\u03C3\u03C4\u03B5\u03AF \u03B7 \u03BA\u03BB\u03AE\u03C3\u03B7.', noMatch: '\u03A0\u03B5\u03AF\u03C4\u03B5 "\u03BD\u03B1\u03B9"\u03B1\u03BD \u03AD\u03C7\u03B5\u03C4\u03B5 \u03AC\u03BB\u03BB\u03BF \u03B1\u03AF\u03C4\u03B7\u03BC\u03B1 \u03AE "\u03CC\u03C7\u03B9" \u03B3\u03B9\u03B1 \u03BD\u03B1 \u03C4\u03B5\u03C1\u03BC\u03B1\u03C4\u03B9\u03C3\u03C4\u03B5\u03AF \u03B7 \u03C3\u03C5\u03BD\u03B5\u03B4\u03C1\u03AF\u03B1.', question: "\u039C\u03C0\u03BF\u03C1\u03CE \u03BD\u03B1 \u03C3\u03B1\u03C2 \u03B2\u03BF\u03B7\u03B8\u03AE\u03C3\u03C9 \u03C3\u03B5 \u03BA\u03AC\u03C4\u03B9 \u03AC\u03BB\u03BB\u03BF;", noInputDigitalBot: '\u03A0\u03BB\u03B7\u03BA\u03C4\u03C1\u03BF\u03BB\u03BF\u03B3\u03AE\u03C3\u03C4\u03B5 "\u039D\u03B1\u03B9"\u03B1\u03BD \u03AD\u03C7\u03B5\u03C4\u03B5 \u03AC\u03BB\u03BB\u03BF \u03B1\u03AF\u03C4\u03B7\u03BC\u03B1 \u03AE "\u038C\u03C7\u03B9" \u03B3\u03B9\u03B1 \u03BD\u03B1 \u03C4\u03B5\u03C1\u03BC\u03B1\u03C4\u03B9\u03C3\u03C4\u03B5\u03AF \u03B7 \u03C3\u03C5\u03BD\u03B5\u03B4\u03C1\u03AF\u03B1.', noMatchDigitalBot: '\u03A0\u03BB\u03B7\u03BA\u03C4\u03C1\u03BF\u03BB\u03BF\u03B3\u03AE\u03C3\u03C4\u03B5 "\u039D\u03B1\u03B9"\u03B1\u03BD \u03AD\u03C7\u03B5\u03C4\u03B5 \u03AC\u03BB\u03BB\u03BF \u03B1\u03AF\u03C4\u03B7\u03BC\u03B1 \u03AE "\u038C\u03C7\u03B9" \u03B3\u03B9\u03B1 \u03BD\u03B1 \u03C4\u03B5\u03C1\u03BC\u03B1\u03C4\u03B9\u03C3\u03C4\u03B5\u03AF \u03B7 \u03C3\u03C5\u03BD\u03B5\u03B4\u03C1\u03AF\u03B1.' }, askForPayment: { noInputDigitalBot: "\u0394\u03CE\u03C3\u03C4\u03B5 \u03C4\u03B1 \u03C3\u03C4\u03BF\u03B9\u03C7\u03B5\u03AF\u03B1 \u03C0\u03BB\u03B7\u03C1\u03C9\u03BC\u03AE\u03C2 \u03C3\u03B1\u03C2 \u03B3\u03B9\u03B1 \u03BD\u03B1 \u03C3\u03C5\u03BD\u03B5\u03C7\u03AF\u03C3\u03B5\u03C4\u03B5", noMatchDigitalBot: "\u0394\u03B5\u03BD \u03BA\u03B1\u03C4\u03B1\u03BB\u03AC\u03B2\u03B1\u03BC\u03B5 \u03C4\u03B7\u03BD \u03B1\u03C0\u03AC\u03BD\u03C4\u03B7\u03C3\u03AE \u03C3\u03B1\u03C2. \u0394\u03BF\u03BA\u03B9\u03BC\u03AC\u03C3\u03C4\u03B5 \u03BE\u03B1\u03BD\u03AC." }, askForAuthentication: { noInputDigitalBot: "\u0394\u03CE\u03C3\u03C4\u03B5 \u03C4\u03B1 \u03C3\u03C4\u03BF\u03B9\u03C7\u03B5\u03AF\u03B1 \u03B5\u03BB\u03AD\u03B3\u03C7\u03BF\u03C5 \u03C4\u03B1\u03C5\u03C4\u03CC\u03C4\u03B7\u03C4\u03AC\u03C2 \u03C3\u03B1\u03C2 \u03B3\u03B9\u03B1 \u03BD\u03B1 \u03C3\u03C5\u03BD\u03B5\u03C7\u03AF\u03C3\u03B5\u03C4\u03B5.", noMatchDigitalBot: "\u0394\u03B5\u03BD \u03BA\u03B1\u03C4\u03B1\u03BB\u03AC\u03B2\u03B1\u03BC\u03B5 \u03C4\u03B7\u03BD \u03B1\u03C0\u03AC\u03BD\u03C4\u03B7\u03C3\u03AE \u03C3\u03B1\u03C2. \u0394\u03BF\u03BA\u03B9\u03BC\u03AC\u03C3\u03C4\u03B5 \u03BE\u03B1\u03BD\u03AC." }, askSurveyQuestion: { notApplicable: "\u0394\u03B5\u03BD \u03B5\u03C6\u03B1\u03C1\u03BC\u03CC\u03B6\u03B5\u03C4\u03B1\u03B9", surveyAnswerOptionSequence: "\u03A0\u03B1\u03C4\u03AE\u03C3\u03C4\u03B5 %1$s \u03B3\u03B9\u03B1 '%2$s'.", surveyAnswerNotApplicableSequence: '\u03A0\u03B1\u03C4\u03AE\u03C3\u03C4\u03B5 \u03B1\u03C3\u03C4\u03B5\u03C1\u03AF\u03C3\u03BA\u03BF \u03B3\u03B9\u03B1 "\u0394\u03B5\u03BD \u03B5\u03C6\u03B1\u03C1\u03BC\u03CC\u03B6\u03B5\u03C4\u03B1\u03B9".', surveyAnswerNotApplicableWithQuestionSequence: '%1$s. \u03A0\u03B1\u03C4\u03AE\u03C3\u03C4\u03B5 \u03B1\u03C3\u03C4\u03B5\u03C1\u03AF\u03C3\u03BA\u03BF \u03B3\u03B9\u03B1 "\u0394\u03B5\u03BD \u03B5\u03C6\u03B1\u03C1\u03BC\u03CC\u03B6\u03B5\u03C4\u03B1\u03B9".', voiceSurveyNoInputText: "\u0391\u03C0\u03B1\u03BD\u03C4\u03AE\u03C3\u03C4\u03B5 \u03C3\u03C4\u03B7\u03BD \u03B5\u03C1\u03CE\u03C4\u03B7\u03C3\u03B7.", voiceSurveyNoMatchText: "\u0394\u03B5\u03BD \u03C3\u03B1\u03C2 \u03BA\u03B1\u03C4\u03AC\u03BB\u03B1\u03B2\u03B1." }, commonModule: { exitCommonModule: "\u0388\u03BE\u03BF\u03B4\u03BF\u03C2 \u03B1\u03C0\u03CC \u0392\u03B1\u03C3\u03B9\u03BA\u03CC \u039C\u03B5\u03BD\u03BF\u03CD" }, form: { noInputDigitalBot: "\u03A3\u03C5\u03BC\u03C0\u03BB\u03B7\u03C1\u03CE\u03C3\u03C4\u03B5 \u03C4\u03B7 \u03C6\u03CC\u03C1\u03BC\u03B1 \u03B3\u03B9\u03B1 \u03BD\u03B1 \u03C3\u03C5\u03BD\u03B5\u03C7\u03AF\u03C3\u03B5\u03C4\u03B5.", noMatchDigitalBot: "\u03A3\u03C5\u03BC\u03C0\u03BB\u03B7\u03C1\u03CE\u03C3\u03C4\u03B5 \u03C4\u03B7 \u03C6\u03CC\u03C1\u03BC\u03B1 \u03B3\u03B9\u03B1 \u03BD\u03B1 \u03C3\u03C5\u03BD\u03B5\u03C7\u03AF\u03C3\u03B5\u03C4\u03B5." }, messagingTemplate: { noInputDigitalBot: "\u039F\u03C1\u03AF\u03C3\u03C4\u03B5 \u03BC\u03AF\u03B1 \u03B1\u03C0\u03CC \u03C4\u03B9\u03C2 \u03B4\u03B9\u03B1\u03B8\u03AD\u03C3\u03B9\u03BC\u03B5\u03C2 \u03B5\u03C0\u03B9\u03BB\u03BF\u03B3\u03AD\u03C2.", noMatchDigitalBot: "\u039F\u03C1\u03AF\u03C3\u03C4\u03B5 \u03BC\u03AF\u03B1 \u03B1\u03C0\u03CC \u03C4\u03B9\u03C2 \u03B4\u03B9\u03B1\u03B8\u03AD\u03C3\u03B9\u03BC\u03B5\u03C2 \u03B5\u03C0\u03B9\u03BB\u03BF\u03B3\u03AD\u03C2." }, knowledgeSettings: { knowledgeAnswerHighlightFlowProgressionDefault: "\u03A3\u03C5\u03BD\u03AD\u03C7\u03B5\u03B9\u03B1", knowledgeAnswerHighlightFullArticleDefault: "\u03A0\u03C1\u03BF\u03B2\u03BF\u03BB\u03AE \u03C0\u03BB\u03AE\u03C1\u03BF\u03C5\u03C2 \u03AC\u03C1\u03B8\u03C1\u03BF\u03C5", knowledgeInitialResponseMulti: "\u0393\u03B9\u03B1 \u03BD\u03B1 \u03BC\u03B5 \u03B2\u03BF\u03B7\u03B8\u03AE\u03C3\u03B5\u03C4\u03B5 \u03BD\u03B1 \u03B4\u03B9\u03B5\u03C5\u03BA\u03C1\u03B9\u03BD\u03AF\u03C3\u03C9 \u03C4\u03BF\u03BD \u03C3\u03C4\u03CC\u03C7\u03BF \u03C3\u03B1\u03C2, \u03B5\u03C0\u03B9\u03BB\u03AD\u03BE\u03C4\u03B5 \u03AD\u03BD\u03B1\u03BD \u03B1\u03C1\u03B9\u03B8\u03BC\u03CC \u03B1\u03C0\u03CC \u03C4\u03B7\u03BD \u03C0\u03B1\u03C1\u03B1\u03BA\u03AC\u03C4\u03C9 \u03BB\u03AF\u03C3\u03C4\u03B1:", knowledgeInitialResponseMultiRetry: '\u0395\u03C0\u03B9\u03BB\u03AD\u03BE\u03C4\u03B5 \u03AD\u03BD\u03B1\u03BD \u03B1\u03C1\u03B9\u03B8\u03BC\u03CC, \u03B3\u03B9\u03B1 \u03C0\u03B1\u03C1\u03AC\u03B4\u03B5\u03B9\u03B3\u03BC\u03B1 "1".\n\u0394\u03B5\u03AF\u03C4\u03B5 \u03BE\u03B1\u03BD\u03AC \u03C4\u03B7 \u03BB\u03AF\u03C3\u03C4\u03B1 \u03B5\u03C0\u03B9\u03BB\u03BF\u03B3\u03CE\u03BD:', knowledgeNoMatch: "\u039A\u03B1\u03BD\u03AD\u03BD\u03B1\u03C2 \u03B1\u03C0\u03CC \u03B1\u03C5\u03C4\u03BF\u03CD\u03C2", knowledgeConfirmation: "\u0391\u03C0\u03B1\u03BD\u03C4\u03AE\u03B8\u03B7\u03BA\u03B5 \u03B7 \u03B5\u03C1\u03CE\u03C4\u03B7\u03C3\u03AE \u03C3\u03B1\u03C2;", knowledgeFollowup: "\u0395\u03BB\u03C0\u03AF\u03B6\u03C9 \u03BD\u03B1 \u03B1\u03C0\u03AC\u03BD\u03C4\u03B7\u03C3\u03B1 \u03C3\u03C4\u03B7\u03BD \u03B5\u03C1\u03CE\u03C4\u03B7\u03C3\u03AE \u03C3\u03B1\u03C2. \u039C\u03C0\u03BF\u03C1\u03B5\u03AF\u03C4\u03B5 \u03BD\u03B1 \u03C1\u03C9\u03C4\u03AE\u03C3\u03B5\u03C4\u03B5 \u03BF\u03C4\u03B9\u03B4\u03AE\u03C0\u03BF\u03C4\u03B5 \u03AC\u03BB\u03BB\u03BF \u03B8\u03AD\u03BB\u03B5\u03C4\u03B5 \u03BD\u03B1 \u03BC\u03AC\u03B8\u03B5\u03C4\u03B5." }, noOverlay: { intent: { intentConfirmationStr1: "\u039D\u03BF\u03BC\u03AF\u03B6\u03C9 \u03CC\u03C4\u03B9 \u03B8\u03AD\u03BB\u03B5\u03C4\u03B5 \u03BD\u03B1", intentConfirmationStr2: "\u03A3\u03C9\u03C3\u03C4\u03AC;" }, youSaid: { youSaidConfirmationStr1: "\u0395\u03AF\u03C0\u03B1\u03C4\u03B5", youSaidConfirmationStr2: "\u03A3\u03C9\u03C3\u03C4\u03AC;", youSaidConfirmationStr1DigitalBot: "\u03A0\u03BB\u03B7\u03BA\u03C4\u03C1\u03BF\u03BB\u03BF\u03B3\u03AE\u03C3\u03B1\u03C4\u03B5" }, noInput: { noInputStr1: "\u03A0\u03B5\u03AF\u03C4\u03B5 \u03AE \u03C0\u03BB\u03B7\u03BA\u03C4\u03C1\u03BF\u03BB\u03BF\u03B3\u03AE\u03C3\u03C4\u03B5", noInputStr1DigitalBot: "\u03A0\u03BB\u03B7\u03BA\u03C4\u03C1\u03BF\u03BB\u03BF\u03B3\u03AE\u03C3\u03C4\u03B5" }, noMatch: { noMatchStr1: "\u03A0\u03B5\u03AF\u03C4\u03B5 \u03BC\u03BF\u03C5" }, whatIs: { whatIsQuestionStr1: "\u039C\u03C0\u03BF\u03C1\u03B5\u03AF\u03C4\u03B5 \u03BD\u03B1 \u03C0\u03B5\u03AF\u03C4\u03B5", whatIsQuestionStr2: ";" }, iGotContinuation: { iGotContinuationStr1: "\u0388\u03C7\u03C9 \u03BB\u03AC\u03B2\u03B5\u03B9", iGotContinuationStr2: "\u03AD\u03C9\u03C2 \u03C4\u03CE\u03C1\u03B1, \u03C3\u03C5\u03BD\u03B5\u03C7\u03AF\u03C3\u03C4\u03B5." } }, defaultCallFlowOne: "\u03A0\u03C1\u03BF\u03B5\u03C0\u03B9\u03BB\u03B5\u03B3\u03BC\u03AD\u03BD\u03B7 \u03C1\u03BF\u03AE \u03BA\u03BB\u03AE\u03C3\u03B7\u03C2", errorHandlingAgentEscalationConfirmation: "\u0398\u03AD\u03BB\u03B5\u03C4\u03B5 \u03BD\u03B1 \u03BC\u03B9\u03BB\u03AE\u03C3\u03B5\u03C4\u03B5 \u03BC\u03B5 \u03AD\u03BD\u03B1\u03BD \u03C3\u03CD\u03BC\u03B2\u03BF\u03C5\u03BB\u03BF. \u03A3\u03C9\u03C3\u03C4\u03AC;", errorHandlingAgentEscalationHandover: "\u03A0\u03B5\u03C1\u03B9\u03BC\u03AD\u03BD\u03B5\u03C4\u03B5 \u03AD\u03BD\u03B1 \u03BB\u03B5\u03C0\u03C4\u03CC \u03BA\u03B1\u03B9 \u03B8\u03B1 \u03C3\u03B1\u03C2 \u03C3\u03C5\u03BD\u03B4\u03AD\u03C3\u03BF\u03C5\u03BC\u03B5 \u03BC\u03B5 \u03BA\u03AC\u03C0\u03BF\u03B9\u03BF\u03BD.", errorHandlingErrorEventHandover: "\u0394\u03C5\u03C3\u03C4\u03C5\u03C7\u03CE\u03C2, \u03C0\u03B1\u03C1\u03BF\u03C5\u03C3\u03B9\u03AC\u03C3\u03C4\u03B7\u03BA\u03B5 \u03C3\u03C6\u03AC\u03BB\u03BC\u03B1. \u03A0\u03B5\u03C1\u03B9\u03BC\u03AD\u03BD\u03B5\u03C4\u03B5 \u03AD\u03BD\u03B1 \u03BB\u03B5\u03C0\u03C4\u03CC, \u03B5\u03BD\u03CE \u03C3\u03B1\u03C2 \u03C3\u03C5\u03BD\u03B4\u03AD\u03BF\u03C5\u03BC\u03B5 \u03BC\u03B5 \u03BA\u03AC\u03C0\u03BF\u03B9\u03BF\u03BD \u03C0\u03BF\u03C5 \u03BC\u03C0\u03BF\u03C1\u03B5\u03AF \u03BD\u03B1 \u03C3\u03B1\u03C2 \u03B2\u03BF\u03B7\u03B8\u03AE\u03C3\u03B5\u03B9.", errorHandlingErrorEventHandoverVoiceSurvey: "\u0394\u03C5\u03C3\u03C4\u03C5\u03C7\u03CE\u03C2, \u03C0\u03B1\u03C1\u03BF\u03C5\u03C3\u03B9\u03AC\u03C3\u03C4\u03B7\u03BA\u03B5 \u03BA\u03AC\u03C0\u03BF\u03B9\u03BF \u03C3\u03C6\u03AC\u03BB\u03BC\u03B1. \u0391\u03BD\u03C4\u03AF\u03BF.", errorHandlingRecognitionEventHandover: "\u0394\u03C5\u03C3\u03C4\u03C5\u03C7\u03CE\u03C2, \u03B4\u03C5\u03C3\u03BA\u03BF\u03BB\u03B5\u03C5\u03CC\u03BC\u03B1\u03C3\u03C4\u03B5 \u03BD\u03B1 \u03C3\u03B1\u03C2 \u03BA\u03B1\u03C4\u03B1\u03BB\u03AC\u03B2\u03BF\u03C5\u03BC\u03B5. \u03A0\u03B5\u03C1\u03B9\u03BC\u03AD\u03BD\u03B5\u03C4\u03B5 \u03AD\u03BD\u03B1 \u03BB\u03B5\u03C0\u03C4\u03CC, \u03B5\u03BD\u03CE \u03C3\u03B1\u03C2 \u03C3\u03C5\u03BD\u03B4\u03AD\u03BF\u03C5\u03BC\u03B5 \u03BC\u03B5 \u03BA\u03AC\u03C0\u03BF\u03B9\u03BF\u03BD \u03C0\u03BF\u03C5 \u03BC\u03C0\u03BF\u03C1\u03B5\u03AF \u03BD\u03B1 \u03C3\u03B1\u03C2 \u03B2\u03BF\u03B7\u03B8\u03AE\u03C3\u03B5\u03B9.", errorHandlingRecognitionEventHandoverVoiceSurvey: "\u0394\u03C5\u03C3\u03C4\u03C5\u03C7\u03CE\u03C2, \u03B4\u03C5\u03C3\u03BA\u03BF\u03BB\u03B5\u03C5\u03CC\u03BC\u03B1\u03C3\u03C4\u03B5 \u03BD\u03B1 \u03C3\u03B1\u03C2 \u03BA\u03B1\u03C4\u03B1\u03BB\u03AC\u03B2\u03BF\u03C5\u03BC\u03B5. \u0391\u03BD\u03C4\u03AF\u03BF.", errorHandlingTTS: "\u0394\u03C5\u03C3\u03C4\u03C5\u03C7\u03CE\u03C2, \u03C0\u03B1\u03C1\u03BF\u03C5\u03C3\u03B9\u03AC\u03C3\u03C4\u03B7\u03BA\u03B5 \u03BA\u03AC\u03C0\u03BF\u03B9\u03BF \u03C3\u03C6\u03AC\u03BB\u03BC\u03B1. \u0394\u03BF\u03BA\u03B9\u03BC\u03AC\u03C3\u03C4\u03B5 \u03BD\u03B1 \u03BA\u03B1\u03BB\u03AD\u03C3\u03B5\u03C4\u03B5 \u03BE\u03B1\u03BD\u03AC.", initialGreetingTTS: "\u0393\u03B5\u03B9\u03B1 \u03C3\u03B1\u03C2, \u03B1\u03C5\u03C4\u03CC\u03C2 \u03B5\u03AF\u03BD\u03B1\u03B9 \u03BF \u03B1\u03C1\u03C7\u03B9\u03BA\u03CC\u03C2 \u03C7\u03B1\u03B9\u03C1\u03B5\u03C4\u03B9\u03C3\u03BC\u03CC\u03C2.", initialState: "\u0391\u03C1\u03C7\u03B9\u03BA\u03AE \u03BA\u03B1\u03C4\u03AC\u03C3\u03C4\u03B1\u03C3\u03B7", initialBotState: "\u03A0\u03C1\u03BF\u03B5\u03C0\u03B9\u03BB\u03B5\u03B3\u03BC\u03AD\u03BD\u03BF bot", initialDigitalBotState: "\u0391\u03C1\u03C7\u03B9\u03BA\u03CC\u03C2 \u03C7\u03B1\u03B9\u03C1\u03B5\u03C4\u03B9\u03C3\u03BC\u03CC\u03C2", initialSurveyBotState: "Bot \u03AD\u03C1\u03B5\u03C5\u03BD\u03B1\u03C2", intentConfirmation: "\u039D\u03BF\u03BC\u03AF\u03B6\u03C9 \u03CC\u03C4\u03B9 \u03B8\u03AD\u03BB\u03B5\u03C4\u03B5 \u03BD\u03B1 %1$s, \u03C3\u03C9\u03C3\u03C4\u03AC;", mainMenu: "\u039A\u03CD\u03C1\u03B9\u03BF \u03BC\u03B5\u03BD\u03BF\u03CD", mainMenuTTS: "\u0392\u03C1\u03AF\u03C3\u03BA\u03B5\u03C3\u03C4\u03B5 \u03C3\u03C4\u03BF \u039A\u03CD\u03C1\u03B9\u03BF \u03BC\u03B5\u03BD\u03BF\u03CD, \u03C0\u03B1\u03C4\u03AE\u03C3\u03C4\u03B5 9 \u03B3\u03B9\u03B1 \u03B1\u03C0\u03BF\u03C3\u03CD\u03BD\u03B4\u03B5\u03C3\u03B7", mainTask: "\u0395\u03C1\u03B3\u03B1\u03C3\u03AF\u03B1", settingsConfirmationNoInputApology: '\u0394\u03C5\u03C3\u03C4\u03C5\u03C7\u03CE\u03C2, \u03B4\u03B5\u03BD \u03C3\u03B1\u03C2 \u03B1\u03BA\u03BF\u03CD\u03C3\u03B1\u03BC\u03B5. \u03A0\u03B5\u03AF\u03C4\u03B5 "\u03BD\u03B1\u03B9" \u03AE "\u03CC\u03C7\u03B9".', settingsConfirmationNoInputApologyDigitalBot: '\u0394\u03C5\u03C3\u03C4\u03C5\u03C7\u03CE\u03C2, \u03B4\u03B5\u03BD \u03BB\u03AC\u03B2\u03B1\u03BC\u03B5 \u03BA\u03AC\u03C0\u03BF\u03B9\u03B1 \u03B1\u03C0\u03AC\u03BD\u03C4\u03B7\u03C3\u03B7 \u03B1\u03C0\u03CC \u03B5\u03C3\u03AC\u03C2. \u03A0\u03BB\u03B7\u03BA\u03C4\u03C1\u03BF\u03BB\u03BF\u03B3\u03AE\u03C3\u03C4\u03B5 "\u039D\u03B1\u03B9" \u03AE "\u038C\u03C7\u03B9".', settingsConfirmationNoMatchApology: '\u0394\u03C5\u03C3\u03C4\u03C5\u03C7\u03CE\u03C2, \u03C0\u03B5\u03AF\u03C4\u03B5 "\u03BD\u03B1\u03B9" \u03AE "\u03CC\u03C7\u03B9".', settingsConfirmationNoMatchApologyDigitalBot: '\u0394\u03C5\u03C3\u03C4\u03C5\u03C7\u03CE\u03C2, \u03C0\u03B5\u03AF\u03C4\u03B5 "\u039D\u03B1\u03B9" \u03AE "\u038C\u03C7\u03B9".', settingsNoInputApology: "\u0394\u03C5\u03C3\u03C4\u03C5\u03C7\u03CE\u03C2, \u03B4\u03B5\u03BD \u03C3\u03B1\u03C2 \u03B1\u03BA\u03BF\u03CD\u03C3\u03B1\u03BC\u03B5.", settingsNoInputApologyDigitalBot: "\u0394\u03C5\u03C3\u03C4\u03C5\u03C7\u03CE\u03C2, \u03B4\u03B5\u03BD \u03BB\u03AC\u03B2\u03B1\u03BC\u03B5 \u03BA\u03AC\u03C0\u03BF\u03B9\u03B1 \u03B1\u03C0\u03AC\u03BD\u03C4\u03B7\u03C3\u03B7 \u03B1\u03C0\u03CC \u03B5\u03C3\u03AC\u03C2.", settingsEndOfSessionMessageDigitalBot: "\u0394\u03C5\u03C3\u03C4\u03C5\u03C7\u03CE\u03C2, \u03B4\u03B5\u03BD \u03BB\u03AC\u03B2\u03B1\u03BC\u03B5 \u03BA\u03AC\u03C0\u03BF\u03B9\u03B1 \u03B1\u03C0\u03AC\u03BD\u03C4\u03B7\u03C3\u03B7 \u03B1\u03C0\u03CC \u03B5\u03C3\u03AC\u03C2 \u03B5\u03B4\u03CE \u03BA\u03B1\u03B9 \u03B1\u03C1\u03BA\u03B5\u03C4\u03AE \u03CE\u03C1\u03B1, \u03BF\u03C0\u03CC\u03C4\u03B5 \u03C4\u03B5\u03C1\u03BC\u03B1\u03C4\u03AF\u03B6\u03BF\u03C5\u03BC\u03B5 \u03B1\u03C5\u03C4\u03AE \u03C4\u03B7 \u03C3\u03C5\u03BD\u03BF\u03BC\u03B9\u03BB\u03AF\u03B1. \u0395\u03C0\u03B9\u03C3\u03C4\u03C1\u03AD\u03C8\u03C4\u03B5 \u03B1\u03BD \u03C7\u03C1\u03B5\u03B9\u03B1\u03C3\u03C4\u03B5\u03AF\u03C4\u03B5 \u03BE\u03B1\u03BD\u03AC \u03B2\u03BF\u03AE\u03B8\u03B5\u03B9\u03B1. \u03A3\u03B1\u03C2 \u03B5\u03C5\u03C7\u03B1\u03C1\u03B9\u03C3\u03C4\u03BF\u03CD\u03BC\u03B5.", settingsNoMatchApology: "\u039B\u03C5\u03C0\u03AC\u03BC\u03B1\u03B9.", settingsNoToConfirmationApology: "\u0388\u03BA\u03B1\u03BD\u03B1 \u03BB\u03AC\u03B8\u03BF\u03C2.", periodicStateName: "\u0395\u03C0\u03B1\u03BD\u03B1\u03BB\u03B1\u03BC\u03B2\u03B1\u03BD\u03CC\u03BC\u03B5\u03BD\u03B7 \u03BA\u03B1\u03C4\u03AC\u03C3\u03C4\u03B1\u03C3\u03B7" }; + }, 91722: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(33423)); + class r2 extends n2.default { + constructor(e3, t3) { + super(), this._checkItemIsValidLiteralString(this._infoParmCtor("propertyName"), e3), this._checkItemIsValidLiteralBool(this._infoParmCtor("propertyMustExist"), t3), this._propertyName = e3, this._propertyMustExist = t3; + } + get displayTypeName() { + return "ArchBaseFilterClauseProperty"; + } + get isArchBaseFilterClauseProperty() { + return true; + } + get propertyMustExist() { + return this._propertyMustExist; + } + get propertyName() { + return this._propertyName; + } + _isMatch(e3) { + return !this._propertyMustExist || this._propertyName in e3; + } + } + t2.default = r2; + }, 91734: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importDefault(i2(97847)), o = n2.__importDefault(i2(85510)), a = n2.__importDefault(i2(74705)), s = n2.__importDefault(i2(77858)), l = n2.__importDefault(i2(7946)), u = n2.__importDefault(i2(76501)), d = n2.__importDefault(i2(67817)), c = n2.__importDefault(i2(41857)), p = n2.__importDefault(i2(58253)), _ = n2.__importDefault(i2(20498)), h = n2.__importDefault(i2(56474)), m = n2.__importDefault(i2(69581)), g = n2.__importDefault(i2(9283)), f = n2.__importDefault(i2(39635)), T = n2.__importDefault(i2(59193)), y = n2.__importDefault(i2(80133)), S = n2.__importDefault(i2(40549)), A = n2.__importDefault(i2(24629)), N = n2.__importDefault(i2(17769)), O = n2.__importDefault(i2(47016)), I = n2.__importDefault(i2(39148)), v = n2.__importDefault(i2(7658)), C = n2.__importDefault(i2(59123)), b = n2.__importDefault(i2(41187)), E = n2.__importDefault(i2(64751)), R = n2.__importDefault(i2(54280)), w = n2.__importDefault(i2(94380)), D = n2.__importDefault(i2(40057)), P = n2.__importDefault(i2(52901)), M = n2.__importDefault(i2(70570)), F = n2.__importDefault(i2(59794)), L = n2.__importDefault(i2(38863)), x = n2.__importDefault(i2(55031)), k = n2.__importDefault(i2(16598)), V = n2.__importDefault(i2(63446)), U = n2.__importDefault(i2(55072)), B = n2.__importDefault(i2(86500)), G = n2.__importDefault(i2(42237)), j = n2.__importDefault(i2(23217)), W = n2.__importDefault(i2(51236)), q = n2.__importDefault(i2(35520)), Y = n2.__importDefault(i2(2583)), H = n2.__importDefault(i2(99423)), J = n2.__importDefault(i2(63463)), z = n2.__importDefault(i2(50447)), K = n2.__importDefault(i2(76919)), $ = n2.__importDefault(i2(93218)), Q = n2.__importDefault(i2(31485)), X = n2.__importDefault(i2(72943)), Z = n2.__importDefault(i2(29651)), ee = n2.__importDefault(i2(14115)), te = n2.__importDefault(i2(2812)), ie = n2.__importDefault(i2(61272)), ne = n2.__importDefault(i2(52510)), re = n2.__importDefault(i2(90366)), oe = n2.__importDefault(i2(70518)), ae = n2.__importDefault(i2(38422)), se = n2.__importDefault(i2(43190)), le = n2.__importDefault(i2(21046)), ue = n2.__importDefault(i2(92993)), de = n2.__importDefault(i2(65165)), ce = n2.__importDefault(i2(91292)), pe = n2.__importDefault(i2(48312)), _e = n2.__importDefault(i2(60577)), he = n2.__importDefault(i2(33805)), me = n2.__importDefault(i2(64042)), ge = n2.__importDefault(i2(78258)), fe = n2.__importDefault(i2(1607)), Te = n2.__importDefault(i2(50479)), ye = n2.__importDefault(i2(51895)), Se = n2.__importDefault(i2(62527)), Ae = n2.__importDefault(i2(3022)), Ne = n2.__importDefault(i2(83566)), Oe = n2.__importDefault(i2(56248)), Ie = n2.__importDefault(i2(87964)), ve = n2.__importDefault(i2(23399)), Ce = n2.__importDefault(i2(25679)), be = n2.__importDefault(i2(79163)), Ee = n2.__importDefault(i2(88779)), Re = n2.__importDefault(i2(91013)), we = n2.__importDefault(i2(59929)), De = n2.__importDefault(i2(29925)), Pe = n2.__importDefault(i2(39865)), Me = n2.__importDefault(i2(23206)), Fe = n2.__importDefault(i2(73510)), Le = n2.__importDefault(i2(60341)), xe = n2.__importDefault(i2(56617)), ke = n2.__importDefault(i2(74617)), Ve = n2.__importDefault(i2(84986)), Ue = n2.__importDefault(i2(24962)), Be = n2.__importDefault(i2(52828)), Ge = n2.__importDefault(i2(22488)), je = n2.__importDefault(i2(75342)), We = n2.__importDefault(i2(18126)), qe = n2.__importDefault(i2(12861)), Ye = n2.__importDefault(i2(33169)), He = n2.__importDefault(i2(96713)), Je = n2.__importDefault(i2(46999)), ze = n2.__importDefault(i2(74400)), Ke = n2.__importDefault(i2(98631)), $e = n2.__importDefault(i2(62905)), Qe = n2.__importDefault(i2(58108)), Xe = n2.__importDefault(i2(48467)), Ze = n2.__importDefault(i2(18759)), et = n2.__importDefault(i2(40904)), tt = n2.__importDefault(i2(2092)), it = n2.__importDefault(i2(53908)), nt = n2.__importDefault(i2(8784)), rt = n2.__importDefault(i2(48349)), ot = n2.__importDefault(i2(12298)), at = n2.__importDefault(i2(33286)), st = n2.__importDefault(i2(20695)), lt = n2.__importDefault(i2(14175)), ut = n2.__importDefault(i2(93421)), dt = n2.__importDefault(i2(45422)), ct = n2.__importDefault(i2(96776)), pt = n2.__importDefault(i2(64792)), _t = n2.__importDefault(i2(42268)), ht = n2.__importDefault(i2(28850)), mt = n2.__importDefault(i2(48730)), gt = n2.__importDefault(i2(12199)), ft = n2.__importDefault(i2(80815)), Tt = n2.__importDefault(i2(27368)), yt = n2.__importDefault(i2(50924)), St = n2.__importDefault(i2(28071)), At = n2.__importDefault(i2(63439)), Nt = n2.__importDefault(i2(60061)), Ot = n2.__importDefault(i2(28817)), It = n2.__importDefault(i2(8311)), vt = n2.__importDefault(i2(57247)), Ct = n2.__importDefault(i2(93348)), bt = n2.__importDefault(i2(59424)), Et = n2.__importDefault(i2(44502)), Rt = n2.__importDefault(i2(70838)), wt = n2.__importDefault(i2(6085)), Dt = n2.__importDefault(i2(66418)), Pt = n2.__importDefault(i2(30042)), Mt = n2.__importDefault(i2(4266)), Ft = n2.__importDefault(i2(18322)), Lt = n2.__importDefault(i2(35786)), xt = n2.__importDefault(i2(92498)), kt = n2.__importDefault(i2(69109)), Vt = n2.__importDefault(i2(90601)), Ut = n2.__importDefault(i2(7302)), Bt = n2.__importDefault(i2(71814)), Gt = n2.__importDefault(i2(8833)), jt = n2.__importDefault(i2(28333)), Wt = n2.__importDefault(i2(45964)), qt = n2.__importDefault(i2(40776)), Yt = n2.__importDefault(i2(76150)), Ht = n2.__importDefault(i2(95250)), Jt = n2.__importDefault(i2(73946)), zt = n2.__importDefault(i2(20846)), Kt = n2.__importDefault(i2(59630)), $t = n2.__importDefault(i2(903)), Qt = n2.__importDefault(i2(64847)), Xt = n2.__importDefault(i2(82926)), Zt = n2.__importDefault(i2(64576)), ei = n2.__importDefault(i2(58308)), ti = n2.__importDefault(i2(57498)), ii = n2.__importDefault(i2(15138)), ni = n2.__importDefault(i2(50202)), ri = n2.__importDefault(i2(89154)), oi = n2.__importDefault(i2(18818)), ai = n2.__importDefault(i2(95338)), si = n2.__importDefault(i2(23906)), li = n2.__importDefault(i2(55050)), ui = n2.__importDefault(i2(13442)), di = n2.__importDefault(i2(21770)), ci = n2.__importDefault(i2(4219)), pi = n2.__importDefault(i2(44633)), _i = n2.__importDefault(i2(11909)), hi = n2.__importDefault(i2(68322)), mi = n2.__importDefault(i2(88874)), gi = n2.__importDefault(i2(64986)), fi = n2.__importDefault(i2(13730)), Ti = n2.__importDefault(i2(29304)), yi = n2.__importDefault(i2(53318)), Si = n2.__importDefault(i2(99622)), Ai = n2.__importDefault(i2(93260)), Ni = n2.__importDefault(i2(50504)), Oi = n2.__importDefault(i2(60725)), Ii = n2.__importDefault(i2(85321)), vi = n2.__importDefault(i2(28912)), Ci = n2.__importDefault(i2(63668)), bi = n2.__importDefault(i2(71840)), Ei = n2.__importDefault(i2(39554)), Ri = n2.__importDefault(i2(51837)), wi = n2.__importDefault(i2(90961)), Di = n2.__importDefault(i2(27381)), Pi = n2.__importDefault(i2(53097)), Mi = n2.__importDefault(i2(39729)), Fi = n2.__importDefault(i2(56961)), Li = n2.__importDefault(i2(57855)), xi = n2.__importDefault(i2(48880)), ki = n2.__importDefault(i2(29268)), Vi = n2.__importDefault(i2(99163)), Ui = n2.__importDefault(i2(60843)), Bi = { ArchChoice: r2.default, ArchValueAgentScorePair: s.default, ArchValueAgentScorePairCollection: l.default, ArchNamedValue: o.default, ArchNamedValueList: a.default, ArchValueAny: u.default, ArchValueAnyCollection: d.default, ArchValueCustomerIntent: D.default, ArchValueCustomerIntentCollection: P.default, ArchValueCustomerSegment: M.default, ArchValueCustomerSegmentCollection: F.default, ArchValueAssignedCustomerIntent: c.default, ArchValueAssignedCustomerIntentCollection: p.default, ArchValueAssignedCustomerSegment: _.default, ArchValueAssignedCustomerSegmentCollection: h.default, ArchValueAudio: m.default, ArchValueBoolean: g.default, ArchValueBooleanCollection: f.default, ArchValueCard: T.default, ArchValueCardCollection: y.default, ArchValueCarousel: S.default, ArchValueChooser: v.default, ArchValueContactList: E.default, ArchValueChatGuest: A.default, ArchValueChatGuestCollection: N.default, ArchValueChoice: O.default, ArchValueChoiceCollection: I.default, ArchValueCommunication: C.default, ArchValueCommunicationCollection: b.default, ArchValueCurrency: R.default, ArchValueCurrencyCollection: w.default, ArchValueDate: L.default, ArchValueDateCollection: x.default, ArchValueDateTime: k.default, ArchValueDateTimeCollection: V.default, ArchValueDecimal: U.default, ArchValueDecimalCollection: B.default, ArchValueDigitalAudio: G.default, ArchValueDigitalAudioCollection: j.default, ArchValueDivision: W.default, ArchValueDivisionCollection: q.default, ArchValueDuration: Y.default, ArchValueDurationCollection: H.default, ArchValueEmail: J.default, ArchValueEmailCollection: X.default, ArchValueEmailAddress: z.default, ArchValueEmailAddressCollection: K.default, ArchValueEmailAttachment: $.default, ArchValueEmailAttachmentCollection: Q.default, ArchValueEmergencyGroup: Z.default, ArchValueEmergencyGroupCollection: ee.default, ArchValueEmptyJson: te.default, ArchValueEmptyJsonCollection: ie.default, ArchValueExternalAddress: ne.default, ArchValueExternalAddressCollection: re.default, ArchValueExternalAppleInfo: oe.default, ArchValueExternalAppleInfoCollection: ae.default, ArchValueExternalContact: se.default, ArchValueExternalContactCollection: le.default, ArchValueExternalFacebookId: ue.default, ArchValueExternalFacebookIdCollection: de.default, ArchValueExternalFacebookInfo: ce.default, ArchValueExternalFacebookInfoCollection: pe.default, ArchValueExternalIdInfo: _e.default, ArchValueExternalIdInfoCollection: he.default, ArchValueExternalInstagramInfo: me.default, ArchValueExternalInstagramInfoCollection: ge.default, ArchValueExternalInstagramScopedId: fe.default, ArchValueExternalInstagramScopedIdCollection: Te.default, ArchValueExternalLineId: ye.default, ArchValueExternalLineIdCollection: Se.default, ArchValueExternalLineInfo: Ae.default, ArchValueExternalLineInfoCollection: Ne.default, ArchValueExternalOrganization: ve.default, ArchValueExternalOrganizationCollection: Ce.default, ArchValueExternalTwitterInfo: De.default, ArchValueExternalTwitterInfoCollection: Pe.default, ArchValueExternalPhoneNumber: be.default, ArchValueExternalPhoneNumberCollection: Ee.default, ArchValueExternalSource: Re.default, ArchValueExternalSourceCollection: we.default, ArchValueExternalLinkConfiguration: Oe.default, ArchValueExternalLinkConfigurationCollection: Ie.default, ArchValueFile: Le.default, ArchValueFileCollection: xe.default, ArchValueFormInput: ke.default, ArchValueGrammar: Ve.default, ArchValueGrammarCollection: Ue.default, ArchValueGroup: Be.default, ArchValueGroupCollection: Ge.default, ArchValueImage: je.default, ArchValueImageCollection: We.default, ArchValueInteger: qe.default, ArchValueIntegerCollection: Ye.default, ArchValueJourneyAction: He.default, ArchValueJourneyActionMap: Je.default, ArchValueJourneyApp: ze.default, ArchValueJourneyBrowser: Ke.default, ArchValueJourneyCampaign: $e.default, ArchValueJourneyContext: Qe.default, ArchValueJourneyCustomer: Xe.default, ArchValueJourneyCustomerSession: Ze.default, ArchValueJourneyCustomEventAttribute: et.default, ArchValueJourneyCustomEventAttributeCollection: tt.default, ArchValueJourneyCustomEventAttributeList: it.default, ArchValueJourneyCustomEventAttributeListCollection: nt.default, ArchValueJourneyDevice: rt.default, ArchValueJourneyGeolocation: ot.default, ArchValueJourneyNetworkConnectivity: at.default, ArchValueJourneyOutcome: st.default, ArchValueJourneyOutcomeCollection: lt.default, ArchValueJourneyOutcomeScore: ut.default, ArchValueJourneyOutcomeScoreCollection: dt.default, ArchValueJourneySdkLibrary: _t.default, ArchValueJourneySegment: ht.default, ArchValueJourneySegmentCollection: mt.default, ArchValueJourneySessionOutcomeAchievement: Tt.default, ArchValueJourneySessionOutcomeAchievementCollection: yt.default, ArchValueJourneyPage: ct.default, ArchValueJourneyReferrer: pt.default, ArchValueJourneySessionSegmentAssignment: St.default, ArchValueJourneySessionSegmentAssignmentCollection: At.default, ArchValueJourneySession: gt.default, ArchValueJourneySessionCollection: ft.default, ArchValueJson: Nt.default, ArchValueJsonCollection: Ot.default, ArchValueKnowledgeBaseDocument: It.default, ArchValueKnowledgeBaseDocumentCollection: vt.default, ArchValueLanguageSkill: Ct.default, ArchValueLanguageSkillCollection: bt.default, ArchValueLineItem: Et.default, ArchValueLineItemCollection: Rt.default, ArchValueListPicker: wt.default, ArchValueListPickerItem: Dt.default, ArchValueListPickerItemCollection: Pt.default, ArchValueListPickerSection: Mt.default, ArchValueListPickerSectionCollection: Ft.default, ArchValueMessageAddressInfo: Lt.default, ArchValueMessageAddressInfoCollection: xt.default, ArchValueMessageStickerInfo: kt.default, ArchValueMessageStickerInfoCollection: Vt.default, ArchValuePhoneNumber: Ut.default, ArchValuePhoneNumberCollection: Bt.default, ArchValuePrompt: Gt.default, ArchValuePromptCollection: jt.default, ArchValueQueue: Wt.default, ArchValueQueueCollection: qt.default, ArchValueQuickReplies: Yt.default, ArchValueResponseAsset: Ht.default, ArchValueResponseAssetCollection: Jt.default, ArchValueSchedule: zt.default, ArchValueScheduleCollection: Kt.default, ArchValueScheduleGroup: $t.default, ArchValueScheduleGroupCollection: Qt.default, ArchValueSettings: Xt.default, ArchValueShippingOption: Zt.default, ArchValueShippingOptionCollection: ei.default, ArchValueShortMessage: ti.default, ArchValueShortMessageCollection: ii.default, ArchValueSkill: ni.default, ArchValueSkillCollection: ri.default, ArchValueString: oi.default, ArchValueStringCollection: ai.default, ArchValueStringKeyValuePair: si.default, ArchValueStringKeyValuePairCollection: li.default, ArchValueSurveyAnswerOption: ui.default, ArchValueSurveyAnswerOptionCollection: di.default, ArchValueSurveyForm: ci.default, ArchValueSurveyQuestion: pi.default, ArchValueSurveyQuestionCollection: _i.default, ArchValueSurveyQuestionGroup: hi.default, ArchValueSurveyQuestionGroupCollection: mi.default, ArchValueTime: gi.default, ArchValueTimeCollection: fi.default, ArchValueTimePicker: Ti.default, ArchValueTimeslot: yi.default, ArchValueTimeslotCollection: Si.default, ArchValueUser: Ai.default, ArchValueUserCollection: Ni.default, ArchValueUtilizationLabel: Oi.default, ArchValueUtilizationLabelCollection: Ii.default, ArchValueVideo: vi.default, ArchValueVideoCollection: Ci.default, ArchValueVoiceSnippet: bi.default, ArchValueExternalWhatsAppInfo: Me.default, ArchValueExternalWhatsAppInfoCollection: Fe.default, ArchValueWheelPicker: Ei.default, ArchValueWheelPickerItem: Ri.default, ArchValueWheelPickerItemCollection: wi.default, ArchValueWorkbin: Di.default, ArchValueWorkbinCollection: Pi.default, ArchValueWorkitem: Mi.default, ArchValueWorkitemEventData: Fi.default, ArchValueWorkitemEventRule: Li.default, ArchValueWorktypeStatus: xi.default, ArchValueWorktypeStatusCollection: ki.default, ArchValueWrapupCode: Vi.default, ArchValueWrapupCodeCollection: Ui.default }; + t2.default = Bi; + }, 91911: (e2, t2) => { + "use strict"; + var i2; + Object.defineProperty(t2, "__esModule", { value: true }), t2.AiGuideStatus = void 0, (function(e3) { + e3.draft = "Draft", e3.published = "Published", e3.unknown = "Unknown"; + })(i2 || (t2.AiGuideStatus = i2 = {})); + }, 91919: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.EmergencyGroupType = void 0; + const n2 = i2(31635), r2 = i2(14394), o = i2(71056), a = i2(91674), s = i2(27491), l = n2.__importDefault(i2(22226)), u = i2(80428), d = i2(94765); + class c extends d.ExpressionType { + constructor(e3, t3, i3) { + super(e3, t3, i3); + } + get className() { + return "EmergencyGroupType"; + } + createExpressionOptionClass() { + return new o.ExpressionTypeNetworkObjectOptions(this.isCollection); + } + get listManager() { + return a.emergencyGroupManager.getBriefManagerWithFallback(); + } + canConvertLitToExpression(e3) { + return s.expressionDataService.isFunctionTextAvailableForFlowTypeAndOperandTypes("FindEmergencyGroup", e3, [r2.globalTypes.string]); + } + convertLitToExpression(e3, t3) { + return t3 && this.canConvertLitToExpression(e3) ? `FindEmergencyGroup(${l.default.getQuotedExpressionStringLiteral(t3)})` : ""; + } + } + t2.EmergencyGroupType = c, c.typeIdentifier = u.expressionTypeNames.emergencyGroup; + }, 91928: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(67336)); + class r2 extends n2.default { + constructor(e3) { + super(e3), this._notWritableOverride = false, this._checkItemUndefinedOrNull(this._infoParmCtor("coreAudioCaseViewModel"), e3), this._coreAudioCaseViewModel = e3; + } + _setNotWritableOverride(e3) { + return this._notWritableOverride = e3, this; + } + get displayTypeName() { + return "ArchAudioCase"; + } + get audio() { + const e3 = this.coreFactory.createArchValueFromExpression(this._coreAudioCaseViewModel.audioExpression); + return e3._setNotWritableOverride(this._notWritableOverride), e3; + } + get enabled() { + return !this._coreAudioCaseViewModel.disabled; + } + set enabled(e3) { + this._coreAudioCaseViewModel.disabled = !e3; + } + get isArchAudioCase() { + return true; + } + get isWritable() { + return !this._notWritableOverride; + } + setAudioExpression(e3) { + this.audio.setExpression(e3); + } + setAudioExpressionToAudioTTS(e3, t3) { + this.audio.setExpressionToAudioTTS(e3, t3); + } + setAudioLiteralTTS(e3) { + this.audio.setLiteralTTS(e3); + } + } + t2.default = r2; + }, 91935: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importDefault(i2(23581)), o = n2.__importDefault(i2(69215)); + class a extends r2.default { + constructor({ id: e3, name: t3, description: i3, version: n3, generators: r3, resultExpressionType: o2, restrictToFlowTypeOrTypes: a2, categoryIdentifierOrIdentifiers: s, builderPartDefCategoryIdentifierOrIdentifiers: l, defaultBuilderPartId: u, icon: d, helpTopic: c, requiredFeatureToggle: p, requiredFeatureConfig: _, requiredChannelTypeOrTypes: h, minMaxInfo: m, builderPartTypes: g, builderManagesContainerOrder: f }) { + super(e3, t3, i3, n3, r3, o2, a2, s, l, u, d, c, p, _, h, m, g, f); + } + get className() { + return "CommunicationBuilderWithBuilderPartsDef"; + } + get isCommunicationBuilderWithBuilderPartsDef() { + return true; + } + createBuilder(e3) { + const t3 = this.reviveBuilder(e3, this.createDefaultBuilderPartsModel()); + return t3.setNewInstanceDefaults(), t3; + } + reviveBuilder(e3, t3, i3) { + return new o.default({ owningExpression: e3, model: t3, reId: true === i3 }); + } + } + t2.default = a; + }, 91941: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.SpeechDataViewModel = void 0; + const n2 = i2(31635), r2 = n2.__importStar(i2(24032)), o = n2.__importStar(i2(1115)), a = i2(55299), s = i2(63221), l = r2.getTopic("TTSDataViewModel"); + class u extends a.BaseClass { + constructor(e3, t3, i3) { + super(), Object.defineProperties(this, { initializeDesignTimeCalled: { value: false, writable: true, enumerable: false } }), this._model = e3, this.languageId = t3, this.parent = i3, i3 && i3.isLanguageNode || l.errorWithStack(null, `Non-LanguageSelectionViewModel parent passed into SpeechDataViewModel. id: '${null == i3 ? void 0 : i3.id}'`); + } + get className() { + return "SpeechDataViewModel"; + } + get engine() { + return this._model.engine; + } + set engine(e3) { + this._model.engine = e3; + } + get isReadOnly() { + return this.parentFlow.isReadOnly; + } + get model() { + return this._model; + } + get hasDefaultEngineSelected() { + return this.engine.selection === s.engineSelectionTypes.engineSelectionDefault; + } + get hasNoEngineSelected() { + return this.engine.selection === s.engineSelectionTypes.engineSelectionNone; + } + initializeDesignTime() { + this.initializeDesignTimeCalled = true; + } + get parentFlow() { + return this.parent && this.parent.parentFlow; + } + setEngine(e3, t3) { + e3 ? (this.engine.id = e3.id, this.engine.name = e3.name, this.engine.selection = t3 ? s.engineSelectionTypes.engineSelectionDefault : s.engineSelectionTypes.engineSelectionSpecific) : (this.engine.id = null, this.engine.name = null, this.engine.selection = s.engineSelectionTypes.engineSelectionNone); + } + validateParent() { + this.parent && this.parent.initializeDesignTimeCalled && this.parent.validate && o.validateNode(this.parent, true); + } + } + t2.SpeechDataViewModel = u; + }, 91981: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(21345)); + class r2 extends n2.default { + constructor(e3) { + super(e3), this._attributeVariableValuePairs = this.coreFactory.createArchBaseValueContainer(e3.variables); + } + addAttributeNameOutputValuePair(e3, t3) { + return this._checkItemIsValidLiteralString(this._infoParm("nameExpression", "addAttributeNameOutputValuePair"), e3, true), this._checkItemIsValidLiteralString(this._infoParm("variableExpression", "addAttributeNameOutputValuePair"), t3, true), this._attributeVariableValuePairs._addNameValueAssignment(e3, t3, true, false); + } + get attributeNameOutputValuePairs() { + return this._attributeVariableValuePairs; + } + get displayTypeName() { + return this._scriptingName; + } + } + t2.default = r2; + }, 92052: (e2, t2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.TestTools = t2.Immediate = void 0; + var i2, n2 = 1, r2 = {}; + function o(e3) { + return e3 in r2 && (delete r2[e3], true); + } + t2.Immediate = { setImmediate: function(e3) { + var t3 = n2++; + return r2[t3] = true, i2 || (i2 = Promise.resolve()), i2.then(function() { + return o(t3) && e3(); + }), t3; + }, clearImmediate: function(e3) { + o(e3); + } }, t2.TestTools = { pending: function() { + return Object.keys(r2).length; + } }; + }, 92070: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.reduce = void 0; + var n2 = i2(78531), r2 = i2(65212); + t2.reduce = function(e3, t3) { + return r2.operate(n2.scanInternals(e3, t3, arguments.length >= 2, false, true)); + }; + }, 92109: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(92661)), r2 = i2(30801); + class o extends n2.default { + constructor(e3) { + super(e3); + } + get _actionTypeId() { + return r2.findSystemPromptActionType; + } + get displayTypeName() { + return this._scriptingName; + } + get isArchActionFindSystemPrompt() { + return true; + } + get findResult() { + return this._findResult; + } + } + t2.default = o; + }, 92140: function(e2) { + var t2; + t2 = function() { + var e3 = "1.13.8", t3 = "object" == typeof self && self.self === self && self || "object" == typeof global && global.global === global && global || Function("return this")() || {}, i2 = Array.prototype, n2 = Object.prototype, r2 = "undefined" != typeof Symbol ? Symbol.prototype : null, o = i2.push, a = i2.slice, s = n2.toString, l = n2.hasOwnProperty, u = "undefined" != typeof ArrayBuffer, d = "undefined" != typeof DataView, c = Array.isArray, p = Object.keys, _ = Object.create, h = u && ArrayBuffer.isView, m = isNaN, g = isFinite, f = !{ toString: null }.propertyIsEnumerable("toString"), T = ["valueOf", "isPrototypeOf", "toString", "propertyIsEnumerable", "hasOwnProperty", "toLocaleString"], y = Math.pow(2, 53) - 1; + function S(e4, t4) { + return t4 = null == t4 ? e4.length - 1 : +t4, function() { + for (var i3 = Math.max(arguments.length - t4, 0), n3 = Array(i3), r3 = 0; r3 < i3; r3++) n3[r3] = arguments[r3 + t4]; + switch (t4) { + case 0: + return e4.call(this, n3); + case 1: + return e4.call(this, arguments[0], n3); + case 2: + return e4.call(this, arguments[0], arguments[1], n3); + } + var o2 = Array(t4 + 1); + for (r3 = 0; r3 < t4; r3++) o2[r3] = arguments[r3]; + return o2[t4] = n3, e4.apply(this, o2); + }; + } + function A(e4) { + var t4 = typeof e4; + return "function" === t4 || "object" === t4 && !!e4; + } + function N(e4) { + return void 0 === e4; + } + function O(e4) { + return true === e4 || false === e4 || "[object Boolean]" === s.call(e4); + } + function I(e4) { + var t4 = "[object " + e4 + "]"; + return function(e5) { + return s.call(e5) === t4; + }; + } + var v = I("String"), C = I("Number"), b = I("Date"), E = I("RegExp"), R = I("Error"), w = I("Symbol"), D = I("ArrayBuffer"), P = I("Function"), M = t3.document && t3.document.childNodes; + "object" != typeof Int8Array && "function" != typeof M && (P = function(e4) { + return "function" == typeof e4 || false; + }); + var F = P, L = I("Object"), x = d && (!/\[native code\]/.test(String(DataView)) || L(new DataView(new ArrayBuffer(8)))), k = "undefined" != typeof Map && L(/* @__PURE__ */ new Map()), V = I("DataView"), U = x ? function(e4) { + return null != e4 && F(e4.getInt8) && D(e4.buffer); + } : V, B = c || I("Array"); + function G(e4, t4) { + return null != e4 && l.call(e4, t4); + } + var j = I("Arguments"); + !(function() { + j(arguments) || (j = function(e4) { + return G(e4, "callee"); + }); + })(); + var W = j; + function q(e4) { + return C(e4) && m(e4); + } + function Y(e4) { + return function() { + return e4; + }; + } + function H(e4) { + return function(t4) { + var i3 = e4(t4); + return "number" == typeof i3 && i3 >= 0 && i3 <= y; + }; + } + function J(e4) { + return function(t4) { + return null == t4 ? void 0 : t4[e4]; + }; + } + var z = J("byteLength"), K = H(z), $ = /\[object ((I|Ui)nt(8|16|32)|Float(32|64)|Uint8Clamped|Big(I|Ui)nt64)Array\]/, Q = u ? function(e4) { + return h ? h(e4) && !U(e4) : K(e4) && $.test(s.call(e4)); + } : Y(false), X = J("length"); + function Z(e4, t4) { + t4 = (function(e5) { + for (var t5 = {}, i4 = e5.length, n3 = 0; n3 < i4; ++n3) t5[e5[n3]] = true; + return { contains: function(e6) { + return true === t5[e6]; + }, push: function(i5) { + return t5[i5] = true, e5.push(i5); + } }; + })(t4); + var i3 = T.length, r3 = e4.constructor, o2 = F(r3) && r3.prototype || n2, a2 = "constructor"; + for (G(e4, a2) && !t4.contains(a2) && t4.push(a2); i3--; ) (a2 = T[i3]) in e4 && e4[a2] !== o2[a2] && !t4.contains(a2) && t4.push(a2); + } + function ee(e4) { + if (!A(e4)) return []; + if (p) return p(e4); + var t4 = []; + for (var i3 in e4) G(e4, i3) && t4.push(i3); + return f && Z(e4, t4), t4; + } + function te(e4, t4) { + var i3 = ee(t4), n3 = i3.length; + if (null == e4) return !n3; + for (var r3 = Object(e4), o2 = 0; o2 < n3; o2++) { + var a2 = i3[o2]; + if (t4[a2] !== r3[a2] || !(a2 in r3)) return false; + } + return true; + } + function ie(e4) { + return e4 instanceof ie ? e4 : this instanceof ie ? void (this._wrapped = e4) : new ie(e4); + } + function ne(e4) { + return new Uint8Array(e4.buffer || e4, e4.byteOffset || 0, z(e4)); + } + ie.VERSION = e3, ie.prototype.value = function() { + return this._wrapped; + }, ie.prototype.valueOf = ie.prototype.toJSON = ie.prototype.value, ie.prototype.toString = function() { + return String(this._wrapped); + }; + var re = "[object DataView]"; + function oe(e4) { + if (!A(e4)) return []; + var t4 = []; + for (var i3 in e4) t4.push(i3); + return f && Z(e4, t4), t4; + } + function ae(e4) { + var t4 = X(e4); + return function(i3) { + if (null == i3) return false; + var n3 = oe(i3); + if (X(n3)) return false; + for (var r3 = 0; r3 < t4; r3++) if (!F(i3[e4[r3]])) return false; + return e4 !== ce || !F(i3[se]); + }; + } + var se = "forEach", le = ["clear", "delete"], ue = ["get", "has", "set"], de = le.concat(se, ue), ce = le.concat(ue), pe = ["add"].concat(le, se, "has"), _e = k ? ae(de) : I("Map"), he = k ? ae(ce) : I("WeakMap"), me = k ? ae(pe) : I("Set"), ge = I("WeakSet"); + function fe(e4) { + for (var t4 = ee(e4), i3 = t4.length, n3 = Array(i3), r3 = 0; r3 < i3; r3++) n3[r3] = e4[t4[r3]]; + return n3; + } + function Te(e4) { + for (var t4 = {}, i3 = ee(e4), n3 = 0, r3 = i3.length; n3 < r3; n3++) t4[e4[i3[n3]]] = i3[n3]; + return t4; + } + function ye(e4) { + var t4 = []; + for (var i3 in e4) F(e4[i3]) && t4.push(i3); + return t4.sort(); + } + function Se(e4, t4) { + return function(i3) { + var n3 = arguments.length; + if (t4 && (i3 = Object(i3)), n3 < 2 || null == i3) return i3; + for (var r3 = 1; r3 < n3; r3++) for (var o2 = arguments[r3], a2 = e4(o2), s2 = a2.length, l2 = 0; l2 < s2; l2++) { + var u2 = a2[l2]; + t4 && void 0 !== i3[u2] || (i3[u2] = o2[u2]); + } + return i3; + }; + } + var Ae = Se(oe), Ne = Se(ee), Oe = Se(oe, true); + function Ie(e4) { + if (!A(e4)) return {}; + if (_) return _(e4); + var t4 = function() { + }; + t4.prototype = e4; + var i3 = new t4(); + return t4.prototype = null, i3; + } + function ve(e4) { + return B(e4) ? e4 : [e4]; + } + function Ce(e4) { + return ie.toPath(e4); + } + function be(e4, t4) { + for (var i3 = t4.length, n3 = 0; n3 < i3; n3++) { + if (null == e4) return; + e4 = e4[t4[n3]]; + } + return i3 ? e4 : void 0; + } + function Ee(e4, t4, i3) { + var n3 = be(e4, Ce(t4)); + return N(n3) ? i3 : n3; + } + function Re(e4) { + return e4; + } + function we(e4) { + return e4 = Ne({}, e4), function(t4) { + return te(t4, e4); + }; + } + function De(e4) { + return e4 = Ce(e4), function(t4) { + return be(t4, e4); + }; + } + function Pe(e4, t4, i3) { + if (void 0 === t4) return e4; + switch (null == i3 ? 3 : i3) { + case 1: + return function(i4) { + return e4.call(t4, i4); + }; + case 3: + return function(i4, n3, r3) { + return e4.call(t4, i4, n3, r3); + }; + case 4: + return function(i4, n3, r3, o2) { + return e4.call(t4, i4, n3, r3, o2); + }; + } + return function() { + return e4.apply(t4, arguments); + }; + } + function Me(e4, t4, i3) { + return null == e4 ? Re : F(e4) ? Pe(e4, t4, i3) : A(e4) && !B(e4) ? we(e4) : De(e4); + } + function Fe(e4, t4) { + return Me(e4, t4, 1 / 0); + } + function Le(e4, t4, i3) { + return ie.iteratee !== Fe ? ie.iteratee(e4, t4) : Me(e4, t4, i3); + } + function xe() { + } + function ke(e4, t4) { + return null == t4 && (t4 = e4, e4 = 0), e4 + Math.floor(Math.random() * (t4 - e4 + 1)); + } + ie.toPath = ve, ie.iteratee = Fe; + var Ve = Date.now || function() { + return (/* @__PURE__ */ new Date()).getTime(); + }; + function Ue(e4) { + var t4 = function(t5) { + return e4[t5]; + }, i3 = "(?:" + ee(e4).join("|") + ")", n3 = RegExp(i3), r3 = RegExp(i3, "g"); + return function(e5) { + return e5 = null == e5 ? "" : "" + e5, n3.test(e5) ? e5.replace(r3, t4) : e5; + }; + } + var Be = { "&": "&", "<": "<", ">": ">", '"': """, "'": "'", "`": "`" }, Ge = Ue(Be), je = Ue(Te(Be)), We = ie.templateSettings = { evaluate: /<%([\s\S]+?)%>/g, interpolate: /<%=([\s\S]+?)%>/g, escape: /<%-([\s\S]+?)%>/g }, qe = /(.)^/, Ye = { "'": "'", "\\": "\\", "\r": "r", "\n": "n", "\u2028": "u2028", "\u2029": "u2029" }, He = /\\|'|\r|\n|\u2028|\u2029/g; + function Je(e4) { + return "\\" + Ye[e4]; + } + var ze = /^\s*(\w|\$)+\s*$/, Ke = 0; + function $e(e4, t4, i3, n3, r3) { + if (!(n3 instanceof t4)) return e4.apply(i3, r3); + var o2 = Ie(e4.prototype), a2 = e4.apply(o2, r3); + return A(a2) ? a2 : o2; + } + var Qe = S(function(e4, t4) { + var i3 = Qe.placeholder, n3 = function() { + for (var r3 = 0, o2 = t4.length, a2 = Array(o2), s2 = 0; s2 < o2; s2++) a2[s2] = t4[s2] === i3 ? arguments[r3++] : t4[s2]; + for (; r3 < arguments.length; ) a2.push(arguments[r3++]); + return $e(e4, n3, this, this, a2); + }; + return n3; + }); + Qe.placeholder = ie; + var Xe = S(function(e4, t4, i3) { + if (!F(e4)) throw new TypeError("Bind must be called on a function"); + var n3 = S(function(r3) { + return $e(e4, n3, t4, this, i3.concat(r3)); + }); + return n3; + }), Ze = H(X); + function et(e4, t4, i3) { + t4 || 0 === t4 || (t4 = 1 / 0); + for (var n3 = [], r3 = 0, o2 = 0, a2 = X(e4) || 0, s2 = []; ; ) if (o2 >= a2) { + if (!s2.length) break; + var l2 = s2.pop(); + o2 = l2.i, e4 = l2.v, a2 = X(e4); + } else { + var u2 = e4[o2++]; + s2.length >= t4 ? n3[r3++] = u2 : Ze(u2) && (B(u2) || W(u2)) ? (s2.push({ i: o2, v: e4 }), o2 = 0, a2 = X(e4 = u2)) : i3 || (n3[r3++] = u2); + } + return n3; + } + var tt = S(function(e4, t4) { + var i3 = (t4 = et(t4, false, false)).length; + if (i3 < 1) throw new Error("bindAll must be passed function names"); + for (; i3--; ) { + var n3 = t4[i3]; + e4[n3] = Xe(e4[n3], e4); + } + return e4; + }), it = S(function(e4, t4, i3) { + return setTimeout(function() { + return e4.apply(null, i3); + }, t4); + }), nt = Qe(it, ie, 1); + function rt(e4) { + return function() { + return !e4.apply(this, arguments); + }; + } + function ot(e4, t4) { + var i3; + return function() { + return --e4 > 0 && (i3 = t4.apply(this, arguments)), e4 <= 1 && (t4 = null), i3; + }; + } + var at = Qe(ot, 2); + function st(e4, t4, i3) { + t4 = Le(t4, i3); + for (var n3, r3 = ee(e4), o2 = 0, a2 = r3.length; o2 < a2; o2++) if (t4(e4[n3 = r3[o2]], n3, e4)) return n3; + } + function lt(e4) { + return function(t4, i3, n3) { + i3 = Le(i3, n3); + for (var r3 = X(t4), o2 = e4 > 0 ? 0 : r3 - 1; o2 >= 0 && o2 < r3; o2 += e4) if (i3(t4[o2], o2, t4)) return o2; + return -1; + }; + } + var ut = lt(1), dt = lt(-1); + function ct(e4, t4, i3, n3) { + for (var r3 = (i3 = Le(i3, n3, 1))(t4), o2 = 0, a2 = X(e4); o2 < a2; ) { + var s2 = Math.floor((o2 + a2) / 2); + i3(e4[s2]) < r3 ? o2 = s2 + 1 : a2 = s2; + } + return o2; + } + function pt(e4, t4, i3) { + return function(n3, r3, o2) { + var s2 = 0, l2 = X(n3); + if ("number" == typeof o2) e4 > 0 ? s2 = o2 >= 0 ? o2 : Math.max(o2 + l2, s2) : l2 = o2 >= 0 ? Math.min(o2 + 1, l2) : o2 + l2 + 1; + else if (i3 && o2 && l2) return n3[o2 = i3(n3, r3)] === r3 ? o2 : -1; + if (r3 != r3) return (o2 = t4(a.call(n3, s2, l2), q)) >= 0 ? o2 + s2 : -1; + for (o2 = e4 > 0 ? s2 : l2 - 1; o2 >= 0 && o2 < l2; o2 += e4) if (n3[o2] === r3) return o2; + return -1; + }; + } + var _t = pt(1, ut, ct), ht = pt(-1, dt); + function mt(e4, t4, i3) { + var n3 = (Ze(e4) ? ut : st)(e4, t4, i3); + if (void 0 !== n3 && -1 !== n3) return e4[n3]; + } + function gt(e4, t4, i3) { + var n3, r3; + if (t4 = Pe(t4, i3), Ze(e4)) for (n3 = 0, r3 = e4.length; n3 < r3; n3++) t4(e4[n3], n3, e4); + else { + var o2 = ee(e4); + for (n3 = 0, r3 = o2.length; n3 < r3; n3++) t4(e4[o2[n3]], o2[n3], e4); + } + return e4; + } + function ft(e4, t4, i3) { + t4 = Le(t4, i3); + for (var n3 = !Ze(e4) && ee(e4), r3 = (n3 || e4).length, o2 = Array(r3), a2 = 0; a2 < r3; a2++) { + var s2 = n3 ? n3[a2] : a2; + o2[a2] = t4(e4[s2], s2, e4); + } + return o2; + } + function Tt(e4) { + return function(t4, i3, n3, r3) { + var o2 = arguments.length >= 3; + return (function(t5, i4, n4, r4) { + var o3 = !Ze(t5) && ee(t5), a2 = (o3 || t5).length, s2 = e4 > 0 ? 0 : a2 - 1; + for (r4 || (n4 = t5[o3 ? o3[s2] : s2], s2 += e4); s2 >= 0 && s2 < a2; s2 += e4) { + var l2 = o3 ? o3[s2] : s2; + n4 = i4(n4, t5[l2], l2, t5); + } + return n4; + })(t4, Pe(i3, r3, 4), n3, o2); + }; + } + var yt = Tt(1), St = Tt(-1); + function At(e4, t4, i3) { + var n3 = []; + return t4 = Le(t4, i3), gt(e4, function(e5, i4, r3) { + t4(e5, i4, r3) && n3.push(e5); + }), n3; + } + function Nt(e4, t4, i3) { + t4 = Le(t4, i3); + for (var n3 = !Ze(e4) && ee(e4), r3 = (n3 || e4).length, o2 = 0; o2 < r3; o2++) { + var a2 = n3 ? n3[o2] : o2; + if (!t4(e4[a2], a2, e4)) return false; + } + return true; + } + function Ot(e4, t4, i3) { + t4 = Le(t4, i3); + for (var n3 = !Ze(e4) && ee(e4), r3 = (n3 || e4).length, o2 = 0; o2 < r3; o2++) { + var a2 = n3 ? n3[o2] : o2; + if (t4(e4[a2], a2, e4)) return true; + } + return false; + } + function It(e4, t4, i3, n3) { + return Ze(e4) || (e4 = fe(e4)), ("number" != typeof i3 || n3) && (i3 = 0), _t(e4, t4, i3) >= 0; + } + var vt = S(function(e4, t4, i3) { + var n3, r3; + return F(t4) ? r3 = t4 : (t4 = Ce(t4), n3 = t4.slice(0, -1), t4 = t4[t4.length - 1]), ft(e4, function(e5) { + var o2 = r3; + if (!o2) { + if (n3 && n3.length && (e5 = be(e5, n3)), null == e5) return; + o2 = e5[t4]; + } + return null == o2 ? o2 : o2.apply(e5, i3); + }); + }); + function Ct(e4, t4) { + return ft(e4, De(t4)); + } + function bt(e4, t4, i3) { + var n3, r3, o2 = -1 / 0, a2 = -1 / 0; + if (null == t4 || "number" == typeof t4 && "object" != typeof e4[0] && null != e4) for (var s2 = 0, l2 = (e4 = Ze(e4) ? e4 : fe(e4)).length; s2 < l2; s2++) null != (n3 = e4[s2]) && n3 > o2 && (o2 = n3); + else t4 = Le(t4, i3), gt(e4, function(e5, i4, n4) { + ((r3 = t4(e5, i4, n4)) > a2 || r3 === -1 / 0 && o2 === -1 / 0) && (o2 = e5, a2 = r3); + }); + return o2; + } + var Et = /[^\ud800-\udfff]|[\ud800-\udbff][\udc00-\udfff]|[\ud800-\udfff]/g; + function Rt(e4) { + return e4 ? B(e4) ? a.call(e4) : v(e4) ? e4.match(Et) : Ze(e4) ? ft(e4, Re) : fe(e4) : []; + } + function wt(e4, t4, i3) { + if (null == t4 || i3) return Ze(e4) || (e4 = fe(e4)), e4[ke(e4.length - 1)]; + var n3 = Rt(e4), r3 = X(n3); + t4 = Math.max(Math.min(t4, r3), 0); + for (var o2 = r3 - 1, a2 = 0; a2 < t4; a2++) { + var s2 = ke(a2, o2), l2 = n3[a2]; + n3[a2] = n3[s2], n3[s2] = l2; + } + return n3.slice(0, t4); + } + function Dt(e4, t4) { + return function(i3, n3, r3) { + var o2 = t4 ? [[], []] : {}; + return n3 = Le(n3, r3), gt(i3, function(t5, r4) { + var a2 = n3(t5, r4, i3); + e4(o2, t5, a2); + }), o2; + }; + } + var Pt = Dt(function(e4, t4, i3) { + G(e4, i3) ? e4[i3].push(t4) : e4[i3] = [t4]; + }), Mt = Dt(function(e4, t4, i3) { + e4[i3] = t4; + }), Ft = Dt(function(e4, t4, i3) { + G(e4, i3) ? e4[i3]++ : e4[i3] = 1; + }), Lt = Dt(function(e4, t4, i3) { + e4[i3 ? 0 : 1].push(t4); + }, true); + function xt(e4, t4, i3) { + return t4 in i3; + } + var kt = S(function(e4, t4) { + var i3 = {}, n3 = t4[0]; + if (null == e4) return i3; + F(n3) ? (t4.length > 1 && (n3 = Pe(n3, t4[1])), t4 = oe(e4)) : (n3 = xt, t4 = et(t4, false, false), e4 = Object(e4)); + for (var r3 = 0, o2 = t4.length; r3 < o2; r3++) { + var a2 = t4[r3], s2 = e4[a2]; + n3(s2, a2, e4) && (i3[a2] = s2); + } + return i3; + }), Vt = S(function(e4, t4) { + var i3, n3 = t4[0]; + return F(n3) ? (n3 = rt(n3), t4.length > 1 && (i3 = t4[1])) : (t4 = ft(et(t4, false, false), String), n3 = function(e5, i4) { + return !It(t4, i4); + }), kt(e4, n3, i3); + }); + function Ut(e4, t4, i3) { + return a.call(e4, 0, Math.max(0, e4.length - (null == t4 || i3 ? 1 : t4))); + } + function Bt(e4, t4, i3) { + return null == e4 || e4.length < 1 ? null == t4 || i3 ? void 0 : [] : null == t4 || i3 ? e4[0] : Ut(e4, e4.length - t4); + } + function Gt(e4, t4, i3) { + return a.call(e4, null == t4 || i3 ? 1 : t4); + } + var jt = S(function(e4, t4) { + return t4 = et(t4, true, true), At(e4, function(e5) { + return !It(t4, e5); + }); + }), Wt = S(function(e4, t4) { + return jt(e4, t4); + }); + function qt(e4, t4, i3, n3) { + O(t4) || (n3 = i3, i3 = t4, t4 = false), null != i3 && (i3 = Le(i3, n3)); + for (var r3 = [], o2 = [], a2 = 0, s2 = X(e4); a2 < s2; a2++) { + var l2 = e4[a2], u2 = i3 ? i3(l2, a2, e4) : l2; + t4 && !i3 ? (a2 && o2 === u2 || r3.push(l2), o2 = u2) : i3 ? It(o2, u2) || (o2.push(u2), r3.push(l2)) : It(r3, l2) || r3.push(l2); + } + return r3; + } + var Yt = S(function(e4) { + return qt(et(e4, true, true)); + }); + function Ht(e4) { + for (var t4 = e4 && bt(e4, X).length || 0, i3 = Array(t4), n3 = 0; n3 < t4; n3++) i3[n3] = Ct(e4, n3); + return i3; + } + var Jt = S(Ht); + function zt(e4, t4) { + return e4._chain ? ie(t4).chain() : t4; + } + function Kt(e4) { + return gt(ye(e4), function(t4) { + var i3 = ie[t4] = e4[t4]; + ie.prototype[t4] = function() { + var e5 = [this._wrapped]; + return o.apply(e5, arguments), zt(this, i3.apply(ie, e5)); + }; + }), ie; + } + gt(["pop", "push", "reverse", "shift", "sort", "splice", "unshift"], function(e4) { + var t4 = i2[e4]; + ie.prototype[e4] = function() { + var i3 = this._wrapped; + return null != i3 && (t4.apply(i3, arguments), "shift" !== e4 && "splice" !== e4 || 0 !== i3.length || delete i3[0]), zt(this, i3); + }; + }), gt(["concat", "join", "slice"], function(e4) { + var t4 = i2[e4]; + ie.prototype[e4] = function() { + var e5 = this._wrapped; + return null != e5 && (e5 = t4.apply(e5, arguments)), zt(this, e5); + }; + }); + var $t = { __proto__: null, VERSION: e3, restArguments: S, isObject: A, isNull: function(e4) { + return null === e4; + }, isUndefined: N, isBoolean: O, isElement: function(e4) { + return !(!e4 || 1 !== e4.nodeType); + }, isString: v, isNumber: C, isDate: b, isRegExp: E, isError: R, isSymbol: w, isArrayBuffer: D, isDataView: U, isArray: B, isFunction: F, isArguments: W, isFinite: function(e4) { + return !w(e4) && g(e4) && !isNaN(parseFloat(e4)); + }, isNaN: q, isTypedArray: Q, isEmpty: function(e4) { + if (null == e4) return true; + var t4 = X(e4); + return "number" == typeof t4 && (B(e4) || v(e4) || W(e4)) ? 0 === t4 : 0 === X(ee(e4)); + }, isMatch: te, isEqual: function(e4, t4) { + for (var i3 = [{ a: e4, b: t4 }], n3 = [], o2 = []; i3.length; ) { + var a2 = i3.pop(); + if (true !== a2) { + if ((e4 = a2.a) === (t4 = a2.b)) { + if (0 !== e4 || 1 / e4 == 1 / t4) continue; + return false; + } + if (null == e4 || null == t4) return false; + if (e4 != e4) { + if (t4 != t4) continue; + return false; + } + var l2 = typeof e4; + if ("function" !== l2 && "object" !== l2 && "object" != typeof t4) return false; + e4 instanceof ie && (e4 = e4._wrapped), t4 instanceof ie && (t4 = t4._wrapped); + var u2 = s.call(e4); + if (u2 !== s.call(t4)) return false; + if (x && "[object Object]" == u2 && U(e4)) { + if (!U(t4)) return false; + u2 = re; + } + switch (u2) { + case "[object RegExp]": + case "[object String]": + if ("" + e4 == "" + t4) continue; + return false; + case "[object Number]": + i3.push({ a: +e4, b: +t4 }); + continue; + case "[object Date]": + case "[object Boolean]": + if (+e4 === +t4) continue; + return false; + case "[object Symbol]": + if (r2.valueOf.call(e4) === r2.valueOf.call(t4)) continue; + return false; + case "[object ArrayBuffer]": + case re: + i3.push({ a: ne(e4), b: ne(t4) }); + continue; + } + var d2 = "[object Array]" === u2; + if (!d2 && Q(e4)) { + if (z(e4) !== z(t4)) return false; + if (e4.buffer === t4.buffer && e4.byteOffset === t4.byteOffset) continue; + d2 = true; + } + if (!d2) { + if ("object" != typeof e4 || "object" != typeof t4) return false; + var c2 = e4.constructor, p2 = t4.constructor; + if (c2 !== p2 && !(F(c2) && c2 instanceof c2 && F(p2) && p2 instanceof p2) && "constructor" in e4 && "constructor" in t4) return false; + } + for (var _2 = n3.length; _2--; ) if (n3[_2] === e4) { + if (o2[_2] === t4) break; + return false; + } + if (!(_2 >= 0)) if (n3.push(e4), o2.push(t4), i3.push(true), d2) { + if ((_2 = e4.length) !== t4.length) return false; + for (; _2--; ) i3.push({ a: e4[_2], b: t4[_2] }); + } else { + var h2, m2 = ee(e4); + if (_2 = m2.length, ee(t4).length !== _2) return false; + for (; _2--; ) { + if (!G(t4, h2 = m2[_2])) return false; + i3.push({ a: e4[h2], b: t4[h2] }); + } + } + } else n3.pop(), o2.pop(); + } + return true; + }, isMap: _e, isWeakMap: he, isSet: me, isWeakSet: ge, keys: ee, allKeys: oe, values: fe, pairs: function(e4) { + for (var t4 = ee(e4), i3 = t4.length, n3 = Array(i3), r3 = 0; r3 < i3; r3++) n3[r3] = [t4[r3], e4[t4[r3]]]; + return n3; + }, invert: Te, functions: ye, methods: ye, extend: Ae, extendOwn: Ne, assign: Ne, defaults: Oe, create: function(e4, t4) { + var i3 = Ie(e4); + return t4 && Ne(i3, t4), i3; + }, clone: function(e4) { + return A(e4) ? B(e4) ? e4.slice() : Ae({}, e4) : e4; + }, tap: function(e4, t4) { + return t4(e4), e4; + }, get: Ee, has: function(e4, t4) { + for (var i3 = (t4 = Ce(t4)).length, n3 = 0; n3 < i3; n3++) { + var r3 = t4[n3]; + if (!G(e4, r3)) return false; + e4 = e4[r3]; + } + return !!i3; + }, mapObject: function(e4, t4, i3) { + t4 = Le(t4, i3); + for (var n3 = ee(e4), r3 = n3.length, o2 = {}, a2 = 0; a2 < r3; a2++) { + var s2 = n3[a2]; + o2[s2] = t4(e4[s2], s2, e4); + } + return o2; + }, identity: Re, constant: Y, noop: xe, toPath: ve, property: De, propertyOf: function(e4) { + return null == e4 ? xe : function(t4) { + return Ee(e4, t4); + }; + }, matcher: we, matches: we, times: function(e4, t4, i3) { + var n3 = Array(Math.max(0, e4)); + t4 = Pe(t4, i3, 1); + for (var r3 = 0; r3 < e4; r3++) n3[r3] = t4(r3); + return n3; + }, random: ke, now: Ve, escape: Ge, unescape: je, templateSettings: We, template: function(e4, t4, i3) { + !t4 && i3 && (t4 = i3), t4 = Oe({}, t4, ie.templateSettings); + var n3 = RegExp([(t4.escape || qe).source, (t4.interpolate || qe).source, (t4.evaluate || qe).source].join("|") + "|$", "g"), r3 = 0, o2 = "__p+='"; + e4.replace(n3, function(t5, i4, n4, a3, s3) { + return o2 += e4.slice(r3, s3).replace(He, Je), r3 = s3 + t5.length, i4 ? o2 += "'+\n((__t=(" + i4 + "))==null?'':_.escape(__t))+\n'" : n4 ? o2 += "'+\n((__t=(" + n4 + "))==null?'':__t)+\n'" : a3 && (o2 += "';\n" + a3 + "\n__p+='"), t5; + }), o2 += "';\n"; + var a2, s2 = t4.variable; + if (s2) { + if (!ze.test(s2)) throw new Error("variable is not a bare identifier: " + s2); + } else o2 = "with(obj||{}){\n" + o2 + "}\n", s2 = "obj"; + o2 = "var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n" + o2 + "return __p;\n"; + try { + a2 = new Function(s2, "_", o2); + } catch (e5) { + throw e5.source = o2, e5; + } + var l2 = function(e5) { + return a2.call(this, e5, ie); + }; + return l2.source = "function(" + s2 + "){\n" + o2 + "}", l2; + }, result: function(e4, t4, i3) { + var n3 = (t4 = Ce(t4)).length; + if (!n3) return F(i3) ? i3.call(e4) : i3; + for (var r3 = 0; r3 < n3; r3++) { + var o2 = null == e4 ? void 0 : e4[t4[r3]]; + void 0 === o2 && (o2 = i3, r3 = n3), e4 = F(o2) ? o2.call(e4) : o2; + } + return e4; + }, uniqueId: function(e4) { + var t4 = ++Ke + ""; + return e4 ? e4 + t4 : t4; + }, chain: function(e4) { + var t4 = ie(e4); + return t4._chain = true, t4; + }, iteratee: Fe, partial: Qe, bind: Xe, bindAll: tt, memoize: function(e4, t4) { + var i3 = function(n3) { + var r3 = i3.cache, o2 = "" + (t4 ? t4.apply(this, arguments) : n3); + return G(r3, o2) || (r3[o2] = e4.apply(this, arguments)), r3[o2]; + }; + return i3.cache = {}, i3; + }, delay: it, defer: nt, throttle: function(e4, t4, i3) { + var n3, r3, o2, a2, s2 = 0; + i3 || (i3 = {}); + var l2 = function() { + s2 = false === i3.leading ? 0 : Ve(), n3 = null, a2 = e4.apply(r3, o2), n3 || (r3 = o2 = null); + }, u2 = function() { + var u3 = Ve(); + s2 || false !== i3.leading || (s2 = u3); + var d2 = t4 - (u3 - s2); + return r3 = this, o2 = arguments, d2 <= 0 || d2 > t4 ? (n3 && (clearTimeout(n3), n3 = null), s2 = u3, a2 = e4.apply(r3, o2), n3 || (r3 = o2 = null)) : n3 || false === i3.trailing || (n3 = setTimeout(l2, d2)), a2; + }; + return u2.cancel = function() { + clearTimeout(n3), s2 = 0, n3 = r3 = o2 = null; + }, u2; + }, debounce: function(e4, t4, i3) { + var n3, r3, o2, a2, s2, l2 = function() { + var u3 = Ve() - r3; + t4 > u3 ? n3 = setTimeout(l2, t4 - u3) : (n3 = null, i3 || (a2 = e4.apply(s2, o2)), n3 || (o2 = s2 = null)); + }, u2 = S(function(u3) { + return s2 = this, o2 = u3, r3 = Ve(), n3 || (n3 = setTimeout(l2, t4), i3 && (a2 = e4.apply(s2, o2))), a2; + }); + return u2.cancel = function() { + clearTimeout(n3), n3 = o2 = s2 = null; + }, u2; + }, wrap: function(e4, t4) { + return Qe(t4, e4); + }, negate: rt, compose: function() { + var e4 = arguments, t4 = e4.length - 1; + return function() { + for (var i3 = t4, n3 = e4[t4].apply(this, arguments); i3--; ) n3 = e4[i3].call(this, n3); + return n3; + }; + }, after: function(e4, t4) { + return function() { + if (--e4 < 1) return t4.apply(this, arguments); + }; + }, before: ot, once: at, findKey: st, findIndex: ut, findLastIndex: dt, sortedIndex: ct, indexOf: _t, lastIndexOf: ht, find: mt, detect: mt, findWhere: function(e4, t4) { + return mt(e4, we(t4)); + }, each: gt, forEach: gt, map: ft, collect: ft, reduce: yt, foldl: yt, inject: yt, reduceRight: St, foldr: St, filter: At, select: At, reject: function(e4, t4, i3) { + return At(e4, rt(Le(t4)), i3); + }, every: Nt, all: Nt, some: Ot, any: Ot, contains: It, includes: It, include: It, invoke: vt, pluck: Ct, where: function(e4, t4) { + return At(e4, we(t4)); + }, max: bt, min: function(e4, t4, i3) { + var n3, r3, o2 = 1 / 0, a2 = 1 / 0; + if (null == t4 || "number" == typeof t4 && "object" != typeof e4[0] && null != e4) for (var s2 = 0, l2 = (e4 = Ze(e4) ? e4 : fe(e4)).length; s2 < l2; s2++) null != (n3 = e4[s2]) && n3 < o2 && (o2 = n3); + else t4 = Le(t4, i3), gt(e4, function(e5, i4, n4) { + ((r3 = t4(e5, i4, n4)) < a2 || r3 === 1 / 0 && o2 === 1 / 0) && (o2 = e5, a2 = r3); + }); + return o2; + }, shuffle: function(e4) { + return wt(e4, 1 / 0); + }, sample: wt, sortBy: function(e4, t4, i3) { + var n3 = 0; + return t4 = Le(t4, i3), Ct(ft(e4, function(e5, i4, r3) { + return { value: e5, index: n3++, criteria: t4(e5, i4, r3) }; + }).sort(function(e5, t5) { + var i4 = e5.criteria, n4 = t5.criteria; + if (i4 !== n4) { + if (i4 > n4 || void 0 === i4) return 1; + if (i4 < n4 || void 0 === n4) return -1; + } + return e5.index - t5.index; + }), "value"); + }, groupBy: Pt, indexBy: Mt, countBy: Ft, partition: Lt, toArray: Rt, size: function(e4) { + return null == e4 ? 0 : Ze(e4) ? e4.length : ee(e4).length; + }, pick: kt, omit: Vt, first: Bt, head: Bt, take: Bt, initial: Ut, last: function(e4, t4, i3) { + return null == e4 || e4.length < 1 ? null == t4 || i3 ? void 0 : [] : null == t4 || i3 ? e4[e4.length - 1] : Gt(e4, Math.max(0, e4.length - t4)); + }, rest: Gt, tail: Gt, drop: Gt, compact: function(e4) { + return At(e4, Boolean); + }, flatten: function(e4, t4) { + return et(e4, t4, false); + }, without: Wt, uniq: qt, unique: qt, union: Yt, intersection: function(e4) { + for (var t4 = [], i3 = arguments.length, n3 = 0, r3 = X(e4); n3 < r3; n3++) { + var o2 = e4[n3]; + if (!It(t4, o2)) { + var a2; + for (a2 = 1; a2 < i3 && It(arguments[a2], o2); a2++) ; + a2 === i3 && t4.push(o2); + } + } + return t4; + }, difference: jt, unzip: Ht, transpose: Ht, zip: Jt, object: function(e4, t4) { + for (var i3 = {}, n3 = 0, r3 = X(e4); n3 < r3; n3++) t4 ? i3[e4[n3]] = t4[n3] : i3[e4[n3][0]] = e4[n3][1]; + return i3; + }, range: function(e4, t4, i3) { + null == t4 && (t4 = e4 || 0, e4 = 0), i3 || (i3 = t4 < e4 ? -1 : 1); + for (var n3 = Math.max(Math.ceil((t4 - e4) / i3), 0), r3 = Array(n3), o2 = 0; o2 < n3; o2++, e4 += i3) r3[o2] = e4; + return r3; + }, chunk: function(e4, t4) { + if (null == t4 || t4 < 1) return []; + for (var i3 = [], n3 = 0, r3 = e4.length; n3 < r3; ) i3.push(a.call(e4, n3, n3 += t4)); + return i3; + }, mixin: Kt, default: ie }, Qt = Kt($t); + return Qt._ = Qt, Qt; + }, e2.exports = t2(); + }, 92158: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.wrapupCodeManager = t2.WrapupCodeManager = void 0; + const n2 = i2(31635), r2 = i2(24032), o = n2.__importDefault(i2(4648)), a = i2(10798), s = n2.__importDefault(i2(47532)), l = i2(81801), u = i2(27862), d = i2(79585); + class c extends s.default { + get requiredAuth() { + return (0, a.isFeatureAvailable)(o.default.divisionedWrapupCodes) ? l.externalAuthorizations.authStrings.wrapupCodesSearch : l.externalAuthorizations.authStrings.wrapupCodesView; + } + get dependencyType() { + return u.WrapupCode; + } + constructor() { + super(), this.topic = (0, r2.getTopic)("wrapupCodeManager"), this.apiCallList = d.getWrapupCodes, this.apiCallSingle = d.getWrapupCode, this.className = "WrapupCodeManager", this.dependencyContext = null, this._initialize(); + } + } + t2.WrapupCodeManager = c, t2.wrapupCodeManager = new c(); + }, 92217: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.UtilizationLabelType = void 0; + const n2 = i2(31635), r2 = i2(29505), o = i2(59912), a = i2(27491), s = n2.__importDefault(i2(22226)), l = i2(80428), u = i2(14394), d = i2(94765); + class c extends d.ExpressionType { + constructor(e3, t3, i3) { + super(e3, t3, i3); + } + get className() { + return "UtilizationLabelType"; + } + canConvertLitToExpression(e3) { + return a.expressionDataService.isFunctionTextAvailableForFlowTypeAndOperandTypes("FindUtilizationLabel", e3, [u.globalTypes.string]); + } + convertLitToExpression(e3, t3) { + return t3 && this.canConvertLitToExpression(e3) ? `FindUtilizationLabel(${s.default.getQuotedExpressionStringLiteral(t3)})` : ""; + } + _getLiteralValueOfExpression() { + return ""; + } + createExpressionOptionClass() { + return new r2.ExpressionTypeUtilizationLabelOptions(); + } + get listManager() { + return o.utilizationLabelManager; + } + get supportsLiteralEditor() { + return true; + } + } + t2.UtilizationLabelType = c, c.typeIdentifier = l.expressionTypeNames.utilizationLabel; + }, 92244: (e2, t2, i2) => { + "use strict"; + const n2 = i2(31635), r2 = i2(12179), o = n2.__importDefault(i2(97891)), a = n2.__importDefault(i2(5730)), s = i2(47957); + class l extends a.default { + constructor(e3, t3) { + super(e3.parentFlow, e3), this._loadModel(t3); + } + } + l.info = o.default.createActionInfo({ actionClass: l, canBeInTask: true, helpTopic: r2.helpTopics.actions.clearVoicemailSnippet, modelClass: i2(51336), name: s.actions.clearVoicemailSnippetActionLabel, scriptingName: "ArchActionClearVoicemailSnippet" }), t2.A = l; + }, 92257: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(93523)), r2 = i2(30801); + class o extends n2.default { + constructor(e3) { + super(e3); + } + get _actionTypeId() { + return r2.findGrammarByIdActionType; + } + get displayTypeName() { + return this._scriptingName; + } + get isArchActionFindGrammarById() { + return true; + } + get findResult() { + return this._findResult; + } + } + t2.default = o; + }, 92289: (e2, t2, i2) => { + function n2() { + this.authorizations = void 0, this.id = void 0, this.primaryAuthorization = void 0, this.thirdPartyOrgName = void 0, this.username = void 0, this.userId = void 0, n2.baseConstructor.apply(this, arguments); + } + i2(45214).extend(n2, "ConnectionInfo"), e2.exports = n2; + }, 92314: (e2, t2, i2) => { + const n2 = i2(22124), r2 = i2(83462); + function o() { + o.baseConstructor.apply(this, arguments); + } + n2.extend(o, "UserList"), Object.defineProperties(o.prototype, { entities: { enumerable: true, get: function() { + return this._entities; + }, set: function(e3) { + this._entities = this.reviveArray(e3, r2); + } } }), e2.exports = o; + }, 92330: (e2, t2, i2) => { + const n2 = i2(92140), r2 = i2(15655), o = i2(57632), { outputIds: a } = i2(26847), s = i2(47957), { taskActionType: l } = i2(30801); + function u() { + if (Object.defineProperties(this, { _branchItems: { writable: true }, _variableScope: { value: "Task" } }), u.baseConstructor.apply(this, arguments), !this._branchItems) { + this._branchItems = []; + const e3 = new o({ label: s.task.defaultPathLabel, outputId: a.default }); + this._branchItems.push(e3); + } + } + r2.extend(u, l, true), Object.defineProperties(u.prototype, { pasteReIdOrRename: { value: function(e3) { + u._super.pasteReIdOrRename.apply(this, arguments), this.name = e3.pasteGetUniqueTaskName(this.name), n2.each(this.paths, function(t3) { + t3.pasteReIdOrRename(e3); + }); + } }, pasteResolveOldToNewValues: { value: function(e3) { + u._super.pasteResolveOldToNewValues.apply(this, arguments), n2.each(this.paths, function(t3) { + t3.pasteResolveOldToNewValues(e3); + }); + } }, paths: { enumerable: true, get: function() { + return this._branchItems; + }, set: function(e3) { + this._branchItems = this.reviveArray(e3, o); + } } }), e2.exports = u; + }, 92346: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(68460)), r2 = i2(13265), o = i2(47957); + class a extends n2.default { + get className() { + return "DebuggingViewModel"; + } + get id() { + return "debugging"; + } + get showInFlowSize() { + return false; + } + getConfiguration(e3, t3) { + e3.debugSettings || (e3.debugSettings = new r2()); + } + getDisplayName() { + return o.customNodes.debugging; + } + get isDebuggingNode() { + return true; + } + loadConfiguration(e3) { + e3.debugSettings || (e3.debugSettings = new r2()); + } + get nodeGuxIcon() { + return "bug"; + } + } + t2.default = a; + }, 92359: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.skipLast = void 0; + var n2 = i2(87699), r2 = i2(65212), o = i2(17214); + t2.skipLast = function(e3) { + return e3 <= 0 ? n2.identity : r2.operate(function(t3, i3) { + var n3 = new Array(e3), r3 = 0; + return t3.subscribe(o.createOperatorSubscriber(i3, function(t4) { + var o2 = r3++; + if (o2 < e3) n3[o2] = t4; + else { + var a = o2 % e3, s = n3[a]; + n3[a] = t4, i3.next(s); + } + })), function() { + n3 = null; + }; + }); + }; + }, 92372: (e2, t2, i2) => { + const n2 = i2(13240), { collectVoiceSnippetActionType: r2 } = i2(30801), o = i2(7401); + function a() { + Object.defineProperties(this, { _maxSnippetTime: { writable: true }, _snippet: { writable: true } }), a.baseConstructor.apply(this, arguments); + } + n2.extend(a, r2, true), Object.defineProperties(a.prototype, { pasteResolveOldToNewValues: { value: function(e3) { + a._super.pasteResolveOldToNewValues.apply(this, arguments), this.maxSnippetTime.pasteResolveOldToNewValues(e3), this.snippet.pasteResolveOldToNewValues(e3); + } }, pasteReIdOrRename: { value: function(e3) { + a._super.pasteReIdOrRename.apply(this, arguments), this.maxSnippetTime.pasteReIdOrRename(e3), this.snippet.pasteReIdOrRename(e3); + } }, maxSnippetTime: { enumerable: true, get: function() { + return this._maxSnippetTime; + }, set: function(e3) { + this._maxSnippetTime = this.reviveItem(e3, o); + } }, snippet: { enumerable: true, get: function() { + return this._snippet; + }, set: function(e3) { + this._snippet = this.reviveItem(e3, o); + } } }), e2.exports = a; + }, 92378: (e2, t2, i2) => { + const n2 = i2(12614); + function r2() { + r2.baseConstructor.apply(this, arguments); + } + i2(22124).extend(r2, "DialogEngineBotList"), Object.defineProperties(r2.prototype, { entities: { enumerable: true, get: function() { + return this._entities; + }, set: function(e3) { + this._entities = this.reviveArray(e3, n2); + } } }), e2.exports = r2; + }, 92395: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(39292)), r2 = i2(30801); + class o extends n2.default { + constructor(e3) { + super(e3); + } + get _actionTypeId() { + return r2.initializeFlowOutcomeActionType; + } + get displayTypeName() { + return this._scriptingName; + } + get isArchActionInitializeFlowOutcome() { + return true; + } + } + t2.default = o; + }, 92421: (e2) => { + e2.exports = { af: "Afrikaans", af_na: "Afrikaans (Namibia)", af_za: "Afrikaans (South Africa)", agq: "Aghem", agq_cm: "Aghem (Cameroon)", ak: "Akan", ak_gh: "Akan (Ghana)", am: "Amharic", am_et: "Amharic (Ethiopia)", ar: "Arabic", ar_001: "Arabic (World)", ar_ae: "Arabic (United Arab Emirates)", ar_bh: "Arabic (Bahrain)", ar_dj: "Arabic (Djibouti)", ar_dz: "Arabic (Algeria)", ar_eg: "Arabic (Egypt)", ar_eh: "Arabic (Western Sahara)", ar_er: "Arabic (Eritrea)", ar_il: "Arabic (Israel)", ar_iq: "Arabic (Iraq)", ar_jo: "Arabic (Jordan)", ar_km: "Arabic (Comoros)", ar_kw: "Arabic (Kuwait)", ar_lb: "Arabic (Lebanon)", ar_ly: "Arabic (Libya)", ar_ma: "Arabic (Morocco)", ar_mr: "Arabic (Mauritania)", ar_om: "Arabic (Oman)", ar_ps: "Arabic (Palestinian Territories)", ar_qa: "Arabic (Qatar)", ar_sa: "Arabic (Saudi Arabia)", ar_sd: "Arabic (Sudan)", ar_so: "Arabic (Somalia)", ar_sy: "Arabic (Syria)", ar_td: "Arabic (Chad)", ar_tn: "Arabic (Tunisia)", ar_ye: "Arabic (Yemen)", arn_cl: "Mapudungun (Chile)", as: "Assamese", as_in: "Assamese (India)", asa: "Asu", asa_tz: "Asu (Tanzania)", az: "Azerbaijani", az_cyrl: "Azerbaijani (Cyrillic)", az_cyrl_az: "Azerbaijani (Cyrillic, Azerbaijan)", az_latn: "Azerbaijani (Latin)", az_latn_az: "Azerbaijani (Latin, Azerbaijan)", ba_ru: "Bashkir (Russia)", bas: "Basaa", bas_cm: "Basaa (Cameroon)", be: "Belarusian", be_by: "Belarusian (Belarus)", bem: "Bemba", bem_zm: "Bemba (Zambia)", bez: "Bena", bez_tz: "Bena (Tanzania)", bg: "Bulgarian", bg_bg: "Bulgarian (Bulgaria)", bm: "Bambara", bm_ml: "Bambara (Mali)", bn: "Bengali", bn_bd: "Bengali (Bangladesh)", bn_in: "Bengali (India)", bo: "Tibetan", bo_cn: "Tibetan (China)", bo_in: "Tibetan (India)", br: "Breton", br_fr: "Breton (France)", brx: "Bodo", brx_in: "Bodo (India)", bs: "Bosnian", bs_cyrl: "Bosnian (Cyrillic)", bs_cyrl_ba: "Bosnian (Cyrillic, Bosnia and Herzegovina)", bs_latn: "Bosnian (Latin)", bs_latn_ba: "Bosnian (Latin, Bosnia and Herzegovina)", ca: "Catalan", ca_ad: "Catalan (Andorra)", ca_es: "Catalan (Spain)", cgg: "Chiga", cgg_ug: "Chiga (Uganda)", chr: "Cherokee", chr_us: "Cherokee (United States)", co_fr: "Corsican (France)", cs: "Czech", cs_cz: "Czech (Czech Republic)", cy: "Welsh", cy_gb: "Welsh (United Kingdom)", da: "Danish", da_dk: "Danish (Denmark)", dav: "Taita", dav_ke: "Taita (Kenya)", de: "German", de_at: "German (Austria)", de_be: "German (Belgium)", de_ch: "German (Switzerland)", de_de: "German (Germany)", de_li: "German (Liechtenstein)", de_lu: "German (Luxembourg)", dje: "Zarma", dje_ne: "Zarma (Niger)", dsb_de: "Lower Sorbian (Germany)", dua: "Duala", dua_cm: "Duala (Cameroon)", dv_mv: "Divehi (Maldives)", dyo: "Jola-Fonyi", dyo_sn: "Jola-Fonyi (Senegal)", dz: "Dzongkha", dz_bt: "Dzongkha (Bhutan)", ebu: "Embu", ebu_ke: "Embu (Kenya)", ee: "Ewe", ee_gh: "Ewe (Ghana)", ee_tg: "Ewe (Togo)", el: "Greek", el_cy: "Greek (Cyprus)", el_gr: "Greek (Greece)", en: "English", en_029: "English (Caribbean)", en_150: "English (Europe)", en_ag: "English (Antigua and Barbuda)", en_as: "English (American Samoa)", en_au: "English (Australia)", en_bb: "English (Barbados)", en_be: "English (Belgium)", en_bm: "English (Bermuda)", en_bs: "English (Bahamas)", en_bw: "English (Botswana)", en_bz: "English (Belize)", en_ca: "English (Canada)", en_cm: "English (Cameroon)", en_dm: "English (Dominica)", en_fj: "English (Fiji)", en_fm: "English (Micronesia)", en_gb: "English (United Kingdom)", en_gb_wls: "English (Wales)", en_gd: "English (Grenada)", en_gg: "English (Guernsey)", en_gh: "English (Ghana)", en_gi: "English (Gibraltar)", en_gm: "English (Gambia)", en_gu: "English (Guam)", en_gy: "English (Guyana)", en_hk: "English (Hong Kong SAR China)", en_ie: "English (Ireland)", en_im: "English (Isle of Man)", en_in: "English (India)", en_je: "English (Jersey)", en_jm: "English (Jamaica)", en_ke: "English (Kenya)", en_ki: "English (Kiribati)", en_kn: "English (Saint Kitts and Nevis)", en_ky: "English (Cayman Islands)", en_lc: "English (Saint Lucia)", en_lr: "English (Liberia)", en_ls: "English (Lesotho)", en_mg: "English (Madagascar)", en_mh: "English (Marshall Islands)", en_mp: "English (Northern Mariana Islands)", en_mt: "English (Malta)", en_mu: "English (Mauritius)", en_mw: "English (Malawi)", en_my: "English (Malaysia)", en_na: "English (Namibia)", en_ng: "English (Nigeria)", en_nz: "English (New Zealand)", en_pg: "English (Papua New Guinea)", en_ph: "English (Philippines)", en_pk: "English (Pakistan)", en_pr: "English (Puerto Rico)", en_pw: "English (Palau)", en_sb: "English (Solomon Islands)", en_sc: "English (Seychelles)", en_sg: "English (Singapore)", en_sl: "English (Sierra Leone)", en_ss: "English (South Sudan)", en_sz: "English (Swaziland)", en_tc: "English (Turks and Caicos Islands)", en_to: "English (Tonga)", en_tt: "English (Trinidad and Tobago)", en_tz: "English (Tanzania)", en_ug: "English (Uganda)", en_um: "English (U.S. Outlying Islands)", en_us: "English (United States)", en_vc: "English (Saint Vincent and the Grenadines)", en_vg: "English (British Virgin Islands)", en_vi: "English (U.S. Virgin Islands)", en_vu: "English (Vanuatu)", en_ws: "English (Samoa)", en_za: "English (South Africa)", en_zm: "English (Zambia)", en_zw: "English (Zimbabwe)", eo: "Esperanto", es: "Spanish", es_419: "Spanish (Latin America)", es_ar: "Spanish (Argentina)", es_bo: "Spanish (Bolivia)", es_cl: "Spanish (Chile)", es_co: "Spanish (Colombia)", es_cr: "Spanish (Costa Rica)", es_cu: "Spanish (Cuba)", es_do: "Spanish (Dominican Republic)", es_ea: "Spanish (Ceuta and Melilla)", es_ec: "Spanish (Ecuador)", es_es: "Spanish (Spain)", es_gq: "Spanish (Equatorial Guinea)", es_gt: "Spanish (Guatemala)", es_hn: "Spanish (Honduras)", es_ic: "Spanish (Canary Islands)", es_mx: "Spanish (Mexico)", es_ni: "Spanish (Nicaragua)", es_pa: "Spanish (Panama)", es_pe: "Spanish (Peru)", es_ph: "Spanish (Philippines)", es_pr: "Spanish (Puerto Rico)", es_py: "Spanish (Paraguay)", es_sv: "Spanish (El Salvador)", es_us: "Spanish (United States)", es_uy: "Spanish (Uruguay)", es_ve: "Spanish (Venezuela)", et: "Estonian", et_ee: "Estonian (Estonia)", eu: "Basque", eu_es: "Basque (Spain)", ewo: "Ewondo", ewo_cm: "Ewondo (Cameroon)", fa: "Persian", fa_af: "Persian (Afghanistan)", fa_ir: "Persian (Iran)", ff: "Fulah", ff_sn: "Fulah (Senegal)", fi: "Finnish", fi_fi: "Finnish (Finland)", fil: "Filipino", fil_ph: "Filipino (Philippines)", fo: "Faroese", fo_fo: "Faroese (Faroe Islands)", fr: "French", fr_be: "French (Belgium)", fr_bf: "French (Burkina Faso)", fr_bi: "French (Burundi)", fr_bj: "French (Benin)", fr_bl: "French (Saint Barth\xE9lemy)", fr_ca: "French (Canada)", fr_cd: "French (Congo - Kinshasa)", fr_cf: "French (Central African Republic)", fr_cg: "French (Congo - Brazzaville)", fr_ch: "French (Switzerland)", fr_ci: "French (C\xF4te d'Ivoire)", fr_cm: "French (Cameroon)", fr_dj: "French (Djibouti)", fr_dz: "French (Algeria)", fr_fr: "French (France)", fr_ga: "French (Gabon)", fr_gf: "French (French Guiana)", fr_gn: "French (Guinea)", fr_gp: "French (Guadeloupe)", fr_gq: "French (Equatorial Guinea)", fr_ht: "French (Haiti)", fr_km: "French (Comoros)", fr_lu: "French (Luxembourg)", fr_ma: "French (Morocco)", fr_mc: "French (Monaco)", fr_mf: "French (Saint Martin)", fr_mg: "French (Madagascar)", fr_ml: "French (Mali)", fr_mq: "French (Martinique)", fr_mr: "French (Mauritania)", fr_mu: "French (Mauritius)", fr_nc: "French (New Caledonia)", fr_ne: "French (Niger)", fr_pf: "French (French Polynesia)", fr_re: "French (R\xE9union)", fr_rw: "French (Rwanda)", fr_sc: "French (Seychelles)", fr_sn: "French (Senegal)", fr_sy: "French (Syria)", fr_td: "French (Chad)", fr_tg: "French (Togo)", fr_tn: "French (Tunisia)", fr_vu: "French (Vanuatu)", fr_yt: "French (Mayotte)", fy_nl: "Frisian (Netherlands)", ga: "Irish", ga_ie: "Irish (Ireland)", gd_gb: "Scottish Gaelic (United Kingdom)", gl: "Galician", gl_es: "Galician (Spain)", gsw: "Swiss German", gsw_ch: "Swiss German (Switzerland)", gsw_fr: "Alsatian (France)", gu: "Gujarati", gu_in: "Gujarati (India)", guz: "Gusii", guz_ke: "Gusii (Kenya)", gv: "Manx", gv_gb: "Manx (United Kingdom)", ha: "Hausa", ha_latn: "Hausa (Latin)", ha_latn_gh: "Hausa (Latin, Ghana)", ha_latn_ne: "Hausa (Latin, Niger)", ha_latn_ng: "Hausa (Latin, Nigeria)", ha_ng: "Hausa-Latin (Nigeria)", haw: "Hawaiian", haw_us: "Hawaiian (United States)", he: "Hebrew", he_il: "Hebrew (Israel)", hi: "Hindi", hi_in: "Hindi (India)", hr: "Croatian", hr_ba: "Croatian (Bosnia and Herzegovina)", hr_hr: "Croatian (Croatia)", hsb_de: "Upper Sorbian (Germany)", hu: "Hungarian", hu_hu: "Hungarian (Hungary)", hy: "Armenian", hy_am: "Armenian (Armenia)", id: "Indonesian", id_id: "Indonesian (Indonesia)", ig: "Igbo", ig_ng: "Igbo (Nigeria)", ii: "Sichuan Yi", ii_cn: "Sichuan Yi (China)", is: "Icelandic", is_is: "Icelandic (Iceland)", it: "Italian", it_ch: "Italian (Switzerland)", it_it: "Italian (Italy)", it_sm: "Italian (San Marino)", ja: "Japanese", ja_jp: "Japanese (Japan)", jgo: "Ngomba", jgo_cm: "Ngomba (Cameroon)", jmc: "Machame", jmc_tz: "Machame (Tanzania)", ka: "Georgian", ka_ge: "Georgian (Georgia)", kab: "Kabyle", kab_dz: "Kabyle (Algeria)", kam: "Kamba", kam_ke: "Kamba (Kenya)", kde: "Makonde", kde_tz: "Makonde (Tanzania)", kea: "Kabuverdianu", kea_cv: "Kabuverdianu (Cape Verde)", khq: "Koyra Chiini", khq_ml: "Koyra Chiini (Mali)", ki: "Kikuyu", ki_ke: "Kikuyu (Kenya)", kk: "Kazakh", kk_cyrl: "Kazakh (Cyrillic)", kk_cyrl_kz: "Kazakh (Cyrillic, Kazakhstan)", kk_kz: "Kazakh (Kazakhstan)", kl: "Kalaallisut", kl_gl: "Kalaallisut (Greenland)", kln: "Kalenjin", kln_ke: "Kalenjin (Kenya)", km: "Khmer", km_kh: "Khmer (Cambodia)", kn: "Kannada", kn_in: "Kannada (India)", ko: "Korean", ko_kp: "Korean (North Korea)", ko_kr: "Korean (South Korea)", kok: "Konkani", kok_in: "Konkani (India)", ks: "Kashmiri", ks_arab: "Kashmiri (Arabic)", ks_arab_in: "Kashmiri (Arabic, India)", ksb: "Shambala", ksb_tz: "Shambala (Tanzania)", ksf: "Bafia", ksf_cm: "Bafia (Cameroon)", kw: "Cornish", kw_gb: "Cornish (United Kingdom)", ky_kg: "Kyrgyz (Kyrgyzstan)", lag: "Langi", lag_tz: "Langi (Tanzania)", lb_lu: "Luxembourgish (Luxembourg)", lg: "Ganda", lg_ug: "Ganda (Uganda)", ln: "Lingala", ln_ao: "Lingala (Angola)", ln_cd: "Lingala (Congo - Kinshasa)", ln_cf: "Lingala (Central African Republic)", ln_cg: "Lingala (Congo - Brazzaville)", lo: "Lao", lo_la: "Lao (Laos)", lt: "Lithuanian", lt_lt: "Lithuanian (Lithuania)", lu: "Luba-Katanga", lu_cd: "Luba-Katanga (Congo - Kinshasa)", luo: "Luo", luo_ke: "Luo (Kenya)", luy: "Luyia", luy_ke: "Luyia (Kenya)", lv: "Latvian", lv_lv: "Latvian (Latvia)", mas: "Masai", mas_ke: "Masai (Kenya)", mas_tz: "Masai (Tanzania)", mer: "Meru", mer_ke: "Meru (Kenya)", mfe: "Morisyen", mfe_mu: "Morisyen (Mauritius)", mg: "Malagasy", mg_mg: "Malagasy (Madagascar)", mgh: "Makhuwa-Meetto", mgh_mz: "Makhuwa-Meetto (Mozambique)", mgo: "Meta'", mgo_cm: "Meta' (Cameroon)", mi_nz: "Maori (New Zealand)", mk: "Macedonian", mk_mk: "Macedonian (Macedonia)", ml: "Malayalam", ml_in: "Malayalam (India)", mn_cn: "Mongolian-Traditional Mongolian (People's Republic of China)", mn_mn: "Mongolian-Cyrillic (Mongolia)", moh_ca: "Mohawk (Canada)", mr: "Marathi", mr_in: "Marathi (India)", ms: "Malay", ms_bn: "Malay (Brunei)", ms_my: "Malay (Malaysia)", ms_sg: "Malay (Singapore)", mt: "Maltese", mt_mt: "Maltese (Malta)", mua: "Mundang", mua_cm: "Mundang (Cameroon)", my: "Burmese", my_mm: "Burmese (Myanmar (Burma))", naq: "Nama", naq_na: "Nama (Namibia)", nb: "Norwegian Bokm\xE5l", nb_no: "Norwegian Bokm\xE5l (Norway)", nd: "North Ndebele", nd_zw: "North Ndebele (Zimbabwe)", ne: "Nepali", ne_in: "Nepali (India)", ne_np: "Nepali (Nepal)", nl: "Dutch", nl_aw: "Dutch (Aruba)", nl_be: "Dutch (Belgium)", nl_cw: "Dutch (Cura\xE7ao)", nl_nl: "Dutch (Netherlands)", nl_sr: "Dutch (Suriname)", nl_sx: "Dutch (Sint Maarten)", nmg: "Kwasio", nmg_cm: "Kwasio (Cameroon)", nn: "Norwegian Nynorsk", nn_no: "Norwegian Nynorsk (Norway)", no: "Norwegian Nynorsk", nso_za: "Sesotho sa Leboa (South Africa)", nus: "Nuer", nus_sd: "Nuer (Sudan)", nyn: "Nyankole", nyn_ug: "Nyankole (Uganda)", oc_fr: "Occitan (France)", om: "Oromo", om_et: "Oromo (Ethiopia)", om_ke: "Oromo (Kenya)", or: "Oriya", or_in: "Oriya (India)", pa: "Punjabi", pa_arab: "Punjabi (Arabic)", pa_arab_pk: "Punjabi (Arabic, Pakistan)", pa_guru: "Punjabi (Gurmukhi)", pa_guru_in: "Punjabi (Gurmukhi, India)", pa_in: "Punjabi (India)", pl: "Polish", pl_pl: "Polish (Poland)", prs_af: "Dari (Afghanistan)", ps: "Pashto", ps_af: "Pashto (Afghanistan)", pt: "Portuguese", pt_ao: "Portuguese (Angola)", pt_br: "Portuguese (Brazil)", pt_cv: "Portuguese (Cape Verde)", pt_gw: "Portuguese (Guinea-Bissau)", pt_mo: "Portuguese (Macau SAR China)", pt_mz: "Portuguese (Mozambique)", pt_pt: "Portuguese (Portugal)", pt_st: "Portuguese (S\xE3o Tom\xE9 and Pr\xEDncipe)", pt_tl: "Portuguese (Timor-Leste)", qut_gt: "K'iche (Guatemala)", quz_bo: "Quechua (Bolivia)", quz_ec: "Quechua (Ecuador)", quz_pe: "Quechua (Peru)", rm: "Romansh", rm_ch: "Romansh (Switzerland)", rn: "Rundi", rn_bi: "Rundi (Burundi)", ro: "Romanian", ro_md: "Romanian (Moldova)", ro_ro: "Romanian (Romania)", rof: "Rombo", rof_tz: "Rombo (Tanzania)", ru: "Russian", ru_by: "Russian (Belarus)", ru_kg: "Russian (Kyrgyzstan)", ru_kz: "Russian (Kazakhstan)", ru_md: "Russian (Moldova)", ru_ru: "Russian (Russia)", ru_ua: "Russian (Ukraine)", rw: "Kinyarwanda", rw_rw: "Kinyarwanda (Rwanda)", rwk: "Rwa", rwk_tz: "Rwa (Tanzania)", sa_in: "Sanskrit (India)", sah_ru: "Yakut (Russia)", saq: "Samburu", saq_ke: "Samburu (Kenya)", sbp: "Sangu", sbp_tz: "Sangu (Tanzania)", se_fi: "Sami-Northern (Finland)", se_no: "Sami-Northern (Norway)", se_se: "Sami-Northern (Sweden)", seh: "Sena", seh_mz: "Sena (Mozambique)", ses: "Koyraboro Senni", ses_ml: "Koyraboro Senni (Mali)", sg: "Sango", sg_cf: "Sango (Central African Republic)", shi: "Tachelhit", shi_latn: "Tachelhit (Latin)", shi_latn_ma: "Tachelhit (Latin, Morocco)", shi_tfng: "Tachelhit (Tifinagh)", shi_tfng_ma: "Tachelhit (Tifinagh, Morocco)", si: "Sinhala", si_lk: "Sinhala (Sri Lanka)", sk: "Slovak", sk_sk: "Slovak (Slovakia)", sl: "Slovenian", sl_si: "Slovenian (Slovenia)", sma_no: "Sami-Southern (Norway)", sma_se: "Sami-Southern (Sweden)", smj_no: "Sami-Lule (Norway)", smj_se: "Sami-Lule (Sweden)", smn_fi: "Sami-Inari (Finland)", sms_fi: "Sami-Skolt (Finland)", sn: "Shona", sn_zw: "Shona (Zimbabwe)", so: "Somali", so_dj: "Somali (Djibouti)", so_et: "Somali (Ethiopia)", so_ke: "Somali (Kenya)", so_so: "Somali (Somalia)", sq: "Albanian", sq_al: "Albanian (Albania)", sq_mk: "Albanian (Macedonia)", sr: "Serbian", sr_cyrl: "Serbian (Cyrillic)", sr_cyrl_ba: "Serbian (Cyrillic, Bosnia and Herzegovina)", sr_cyrl_cs: "Serbian-Cyrillic (Serbia and Montenegro (Former))", sr_cyrl_me: "Serbian (Cyrillic, Montenegro)", sr_cyrl_rs: "Serbian (Cyrillic, Serbia)", sr_latn: "Serbian (Latin)", sr_latn_ba: "Serbian (Latin, Bosnia and Herzegovina)", sr_latn_cs: "Serbian-Latin (Serbia and Montenegro (Former))", sr_latn_me: "Serbian (Latin, Montenegro)", sr_latn_rs: "Serbian (Latin, Serbia)", sv: "Swedish", sv_ax: "Swedish (\xC5land Islands)", sv_fi: "Swedish (Finland)", sv_se: "Swedish (Sweden)", sw: "Swahili", sw_ke: "Swahili (Kenya)", sw_tz: "Swahili (Tanzania)", sw_ug: "Swahili (Uganda)", swc: "Congo Swahili", swc_cd: "Congo Swahili (Congo - Kinshasa)", syr_sy: "Syriac (Syria)", ta: "Tamil", ta_in: "Tamil (India)", ta_lk: "Tamil (Sri Lanka)", ta_my: "Tamil (Malaysia)", ta_sg: "Tamil (Singapore)", te: "Telugu", te_in: "Telugu (India)", teo: "Teso", teo_ke: "Teso (Kenya)", teo_ug: "Teso (Uganda)", tg_tj: "Tajik-Cyrillic (Tajikistan)", th: "Thai", th_th: "Thai (Thailand)", ti: "Tigrinya", ti_er: "Tigrinya (Eritrea)", ti_et: "Tigrinya (Ethiopia)", tk_tm: "Turkmen (Turkmenistan)", tn_za: "Setswana (South Africa)", to: "Tongan", to_to: "Tongan (Tonga)", tr: "Turkish", tr_cy: "Turkish (Cyprus)", tr_tr: "Turkish (Turkey)", tt_ru: "Tatar (Russia)", twq: "Tasawaq", twq_ne: "Tasawaq (Niger)", tzm: "Central Atlas Tamazight", tzm_dz: "Tamazight-Latin (Algeria)", tzm_latn: "Central Atlas Tamazight (Latin)", tzm_latn_ma: "Central Atlas Tamazight (Latin, Morocco)", ug_cn: "Uyghur (People's Republic of China)", uk: "Ukrainian", uk_ua: "Ukrainian (Ukraine)", ur: "Urdu", ur_in: "Urdu (India)", ur_pk: "Urdu (Pakistan)", uz: "Uzbek", uz_arab: "Uzbek (Arabic)", uz_arab_af: "Uzbek (Arabic, Afghanistan)", uz_cyrl: "Uzbek (Cyrillic)", uz_cyrl_uz: "Uzbek (Cyrillic, Uzbekistan)", uz_latn: "Uzbek (Latin)", uz_latn_uz: "Uzbek (Latin, Uzbekistan)", vai: "Vai", vai_latn: "Vai (Latin)", vai_latn_lr: "Vai (Latin, Liberia)", vai_vaii: "Vai (Vai)", vai_vaii_lr: "Vai (Vai, Liberia)", vi: "Vietnamese", vi_vn: "Vietnamese (Vietnam)", vun: "Vunjo", vun_tz: "Vunjo (Tanzania)", wo_sn: "Wolof (Senegal)", xh_za: "isiXhosa (South Africa)", xog: "Soga", xog_ug: "Soga (Uganda)", yav: "Yangben", yav_cm: "Yangben (Cameroon)", yo: "Yoruba", yo_ng: "Yoruba (Nigeria)", zh: "Chinese", zh_cn: "Chinese-Simplified (People's Republic of China)", zh_hans: "Chinese (Simplified)", zh_hans_cn: "Chinese (Simplified, China)", zh_hans_hk: "Chinese (Simplified, Hong Kong SAR China)", zh_hans_mo: "Chinese (Simplified, Macau SAR China)", zh_hans_sg: "Chinese (Simplified, Singapore)", zh_hant: "Chinese (Traditional)", zh_hant_hk: "Chinese (Traditional, Hong Kong SAR China)", zh_hant_mo: "Chinese (Traditional, Macau SAR China)", zh_hant_tw: "Chinese (Traditional, Taiwan)", zh_hk: "Chinese-Traditional (Hong Kong S.A.R.)", zh_mo: "Chinese-Traditional (Macao S.A.R.)", zh_sg: "Chinese-Simplified (Singapore)", zh_tw: "Chinese-Traditional (Taiwan)", zu: "Zulu", zu_za: "Zulu (South Africa)" }; + }, 92448: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.ArchBaseDefinitionActionMenu = void 0; + const n2 = i2(31635), r2 = n2.__importDefault(i2(92140)), o = i2(39637), a = n2.__importDefault(i2(78432)), s = n2.__importDefault(i2(98114)), l = i2(30801), u = i2(30801); + class d extends o.ArchBaseDefinition { + constructor(e3) { + super(e3), this._coreNodeInformationArray = [], e3.isNodeInformation ? this.coreNodeInformationArray.push(e3) : (this.coreNodeInformationArray.push(e3.coreActionNodeInformation), this.coreNodeInformationArray.push(e3.coreMenuNodeInformation)); + } + get coreNodeInformationArray() { + return this._coreNodeInformationArray; + } + get actionNodeInformation() { + return this.coreNodeInformationArray[0]; + } + get menuNodeInformation() { + if (this.coreNodeInformationArray.length >= 2) return this.coreNodeInformationArray[1]; + } + get menuWithActionFallbackNodeInformation() { + return this.coreNodeInformationArray[this.coreNodeInformationArray.length - 1]; + } + get _coreTypeId() { + return this.menuWithActionFallbackNodeInformation.typeId; + } + get availableFlowTypes() { + const e3 = []; + return r2.default.each(a.default.FLOW_TYPES_ALL, (t3) => { + this.isAvailableForFlowType(t3) && e3.push(t3); + }), e3; + } + get canCreateFromDefinition() { + return this.menuWithActionFallbackNodeInformation.id !== u.taskActionActionType; + } + get displayTypeName() { + return "ArchBaseDefinitionActionMenu"; + } + get label() { + const e3 = this.actionNodeInformation, t3 = this.menuNodeInformation; + return t3 ? `${t3.name} - ${e3.name}` : e3.name; + } + get isArchBaseDefinitionActionMenu() { + return true; + } + get logStr() { + if (!this._getCoreViewModel()) return this.logStrTypeOnly; + const e3 = []; + return this._appendLogStrType(e3, this.displayTypeName), this._appendLogStrLabel(e3, this.label), this._createLogStrFromParts(e3); + } + isAvailableForFlowType(e3) { + return this._checkItemIsValidLiteralStringEnum(this._infoParm("flowType", "isAvailableForFlowType"), e3, a.default.FLOW_TYPES_ALL), !r2.default.find(this.coreNodeInformationArray, (t3) => t3.id === l.menuActionType ? !s.default.getDefinitionForFlowType(e3).supportsReusableMenus : !(t3.isAvailableForFlowType(e3, true) && !t3.isDeprecatedForFlowType(e3))); + } + } + t2.ArchBaseDefinitionActionMenu = d; + }, 92457: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.ListPickerType = t2.PROP_REPLY_MESSAGE_SUBTITLE = t2.PROP_REPLY_MESSAGE_IMAGE = t2.PROP_RECEIVED_MESSAGE_BUTTON_TEXT = t2.PROP_RECEIVED_MESSAGE_SUBTITLE = t2.PROP_RECEIVED_MESSAGE_TITLE = t2.PROP_RECEIVED_MESSAGE_IMAGE = t2.PROP_SECTIONS = void 0; + const n2 = i2(31635), r2 = i2(17785), o = n2.__importStar(i2(10798)), a = n2.__importDefault(i2(4648)), s = i2(28562), l = n2.__importDefault(i2(73198)), u = i2(27491), d = n2.__importStar(i2(9345)), c = n2.__importStar(i2(63352)), p = i2(80428), _ = i2(14394), h = i2(94765), m = i2(98598), g = i2(47957); + t2.PROP_SECTIONS = "sections", t2.PROP_RECEIVED_MESSAGE_IMAGE = "receivedmessageimage", t2.PROP_RECEIVED_MESSAGE_TITLE = "receivedmessagetitle", t2.PROP_RECEIVED_MESSAGE_SUBTITLE = "receivedmessagesubtitle", t2.PROP_RECEIVED_MESSAGE_BUTTON_TEXT = "receivedmessagebuttontext", t2.PROP_REPLY_MESSAGE_IMAGE = "replymessageimage", t2.PROP_REPLY_MESSAGE_SUBTITLE = "replymessagesubtitle"; + class f extends h.ExpressionType { + constructor(e3, t3, i3) { + super(e3, t3, i3), this.invalidChoicesErrors = { chooserNoChoicesConfiguredForSlotTypeValues: g.cardsAndCars.expression.chooserNoListItemsConfiguredForSlotTypeValues, chooserInvalidChoiceValueForSlotTypeExpressionMode: g.cardsAndCars.expression.chooserInvalidListItemValueForSlotTypeExpressionMode, chooserInvalidChoiceValueForSlotType: g.cardsAndCars.expression.chooserInvalidListItemValueForSlotType, chooserInvalidChoiceCountForSlotType: g.cardsAndCars.expression.chooserInvalidListItemCountForSlotType }; + } + get className() { + return "ListPickerType"; + } + get isListPickerType() { + return true; + } + canConvertLitToExpression(e3) { + return u.expressionDataService.isFunctionTextAvailableForFlowTypeAndOperandTypes("MakeListPicker", e3, [_.globalTypes.listPickerSectionCollection, _.globalTypes.image, _.globalTypes.string, _.globalTypes.string, _.globalTypes.image, _.globalTypes.string]) || u.expressionDataService.isFunctionTextAvailableForFlowTypeAndOperandTypes("MakeListPicker", e3, [_.globalTypes.listPickerSectionCollection, _.globalTypes.image, _.globalTypes.string, _.globalTypes.string, _.globalTypes.image, _.globalTypes.string, _.globalTypes.string]); + } + convertLitToExpression(e3, t3, i3, n3) { + var r3, o2, a2, s2, u2, d2; + if (n3 && this.canConvertLitToExpression(e3)) { + const e4 = (null === (r3 = this.getPropSections(n3)) || void 0 === r3 ? void 0 : r3.getEmbeddableExpressionText()) || l.default.notSet, t4 = (null === (o2 = this.getPropReceivedMessageImage(n3)) || void 0 === o2 ? void 0 : o2.getEmbeddableExpressionText()) || l.default.notSet, i4 = (null === (a2 = this.getPropReceivedMessageTitle(n3)) || void 0 === a2 ? void 0 : a2.getEmbeddableExpressionText()) || l.default.notSet, c2 = (null === (s2 = this.getPropReceivedMessageSubtitle(n3)) || void 0 === s2 ? void 0 : s2.getEmbeddableExpressionText()) || l.default.notSet, p2 = (null === (u2 = this.getPropReplyMessageImage(n3)) || void 0 === u2 ? void 0 : u2.getEmbeddableExpressionText()) || l.default.notSet, _2 = (null === (d2 = this.getPropReplyMessageSubtitle(n3)) || void 0 === d2 ? void 0 : d2.getEmbeddableExpressionText()) || l.default.notSet, h2 = this.getPropReceivedMessageButtonText(n3); + return (null == h2 ? void 0 : h2.isNoValueMode) ? `MakeListPicker(${e4}, ${t4}, ${i4}, ${c2}, ${p2}, ${_2})` : `MakeListPicker(${e4}, ${t4}, ${i4}, ${c2}, ${p2}, ${_2}, ${(null == h2 ? void 0 : h2.getEmbeddableExpressionText()) || l.default.notSet})`; + } + return ""; + } + _getLiteralValueOfExpression() { + return ""; + } + getYamlObjectForLiteralSingleton(e3, t3, i3, n3) { + return o.isFeatureAvailable(a.default.botFlowsAppleListPicker) ? super.getYamlObjectForLiteralSingleton(e3, t3, i3, n3) : null; + } + createExpressionOptionClass() { + return new r2.ExpressionTypeListPickerOptions(); + } + get supportsLiteralEditor() { + return true; + } + getChooser(e3) { + var t3; + if (null === (t3 = e3.propertyParent) || void 0 === t3 ? void 0 : t3.type.isMatch(_.globalTypes.chooser, d.settings.exact)) return e3.propertyParent; + } + getPropSections(e3) { + return e3.getProperty(t2.PROP_SECTIONS); + } + getPropReceivedMessageImage(e3) { + return e3.getProperty(t2.PROP_RECEIVED_MESSAGE_IMAGE); + } + getPropReceivedMessageTitle(e3) { + return e3.getProperty(t2.PROP_RECEIVED_MESSAGE_TITLE); + } + getPropReceivedMessageSubtitle(e3) { + return e3.getProperty(t2.PROP_RECEIVED_MESSAGE_SUBTITLE); + } + getPropReceivedMessageButtonText(e3) { + return e3.getProperty(t2.PROP_RECEIVED_MESSAGE_BUTTON_TEXT); + } + getPropReplyMessageImage(e3) { + return e3.getProperty(t2.PROP_REPLY_MESSAGE_IMAGE); + } + getPropReplyMessageSubtitle(e3) { + return e3.getProperty(t2.PROP_REPLY_MESSAGE_SUBTITLE); + } + configurePropertyCreationParams(e3, i3, n3) { + var r3; + switch (super.configurePropertyCreationParams(e3, i3, n3), n3.options.setIninTestingField(`list-picker-${i3.name}`), null === (r3 = i3.name) || void 0 === r3 ? void 0 : r3.toLowerCase()) { + case t2.PROP_SECTIONS: + n3.options.setCreateMinItemsByDefault(true), n3.options.setItemAddedCallback((e4) => { + if (e4.isLiteralMode) { + const t3 = e4.type.getPropTitle(e4); + (null == t3 ? void 0 : t3.isLiteralMode) && !t3.text && (t3.text = e4.type.getUniqueTitleName(e4)); + } + }); + break; + case t2.PROP_RECEIVED_MESSAGE_IMAGE: + n3.options.setIsOptional(true), n3.options.setAllowNotSet(true), n3.options.setDefaultToNoValue(true); + break; + case t2.PROP_RECEIVED_MESSAGE_TITLE: + n3.options.setIsOptional(false), n3.options.setAllowedBuilderIds([s.builderIds.parts.genericString]); + break; + case t2.PROP_RECEIVED_MESSAGE_SUBTITLE: + n3.options.setIsOptional(true), n3.options.setAllowedBuilderIds([s.builderIds.parts.genericString]); + break; + case t2.PROP_RECEIVED_MESSAGE_BUTTON_TEXT: + n3.options.setIsOptional(true), n3.options.setAllowNotSet(false), n3.options.facets.setAllowNull(false), n3.options.setAllowedBuilderIds([s.builderIds.parts.genericString]); + break; + case t2.PROP_REPLY_MESSAGE_IMAGE: + n3.options.setIsOptional(true), n3.options.setAllowNotSet(true), n3.options.setDefaultToNoValue(true); + break; + case t2.PROP_REPLY_MESSAGE_SUBTITLE: + n3.options.setIsOptional(true); + } + } + get hasRichLiteralEditor() { + return true; + } + useCustomExpressionEditor(e3) { + return !!(null == e3 ? void 0 : e3.parentList); + } + _getLiteralChoicesMap(e3, t3, i3) { + if (!(null == e3 ? void 0 : e3.isLiteralMode) || e3.outOfService) return {}; + const n3 = {}, r3 = null != i3 ? i3 : this.getPropSections(e3); + return (null == r3 ? void 0 : r3.isLiteralMode) ? (null == r3 || r3.collectionItems.items.forEach((e4) => { + var i4; + const r4 = e4.type.getPropItems(e4); + !t3 && r4.outOfService || r4.isLiteralMode && (null === (i4 = r4.collectionItems.items) || void 0 === i4 || i4.forEach((e5) => { + e5.isLiteralMode && (n3[e5.type.getPropTitle(e5).text] = e5); + })); + }), n3) : {}; + } + getPossibleChoices(e3, t3, i3) { + const n3 = this._getLiteralChoicesMap(e3, t3, i3); + return Object.values(n3); + } + applyNluDiffs(e3, t3, i3, n3) { + var r3; + if (n3) { + if (n3.invalidPostbackValueChoices) { + e3.invalidSlotTypeValuesRemoved = []; + const i4 = this._getLiteralChoicesMap(t3); + Object.keys(n3.invalidPostbackValueChoices).forEach((t4) => { + const n4 = i4[t4]; + n4 && (n4.parentList.removeChild(n4), e3.invalidSlotTypeValuesRemoved.push(t4)); + }); + } + (null === (r3 = n3.missingSlotTypeValues) || void 0 === r3 ? void 0 : r3.length) && (e3.missingSlotTypeValuesAdded = this.configureFromChoices(t3, n3.missingSlotTypeValues, true)); + } + } + reset(e3) { + const t3 = this.getPropSections(e3); + t3 && (t3.mode = c.literal, t3.removeAll()); + } + initializeDesignTime(e3) { + super.initializeDesignTime(e3), this.updatePropertiesOutOfServiceStatus(e3); + } + updatePropertiesOutOfServiceStatus(e3) { + const t3 = this.getPropSections(e3); + (null == t3 ? void 0 : t3.isLiteralMode) && t3.collectionItems.items.forEach((e4) => e4.type.updatePropertiesOutOfServiceStatus(e4)); + } + configureFromChoices(e3, t3, i3) { + if (i3 || this.reset(e3), !(null == e3 ? void 0 : e3.isLiteralMode) || !t3) return; + const n3 = this.getPropSections(e3); + if (!(null == n3 ? void 0 : n3.isLiteralMode)) return; + let r3; + if (0 === n3.collectionItems.items.length) r3 = n3.collectionItems.add(), r3.type.getPropTitle(r3).text = r3.type.getUniqueTitleName(r3); + else if (1 === n3.collectionItems.items.length) { + const e4 = n3.collectionItems.items[0], t4 = e4.type.getPropTitle(e4), i4 = e4.type.getPropItems(e4); + i4.isLiteralMode && 0 === i4.collectionItems.length && t4.text === g.generic.section && (r3 = e4); + } + return r3 || (r3 = m.ListPickerSectionType.findOrCreateMissingValuesSection(n3)), r3 ? (t3.forEach((e4) => { + const t4 = r3.type.getPropItems(r3).collectionItems.add(); + t4.type.setAsManagedValue(t4, e4); + }), t3) : void 0; + } + isUnknownAtDesignTime(e3) { + if (!(null == e3 ? void 0 : e3.isLiteralMode) || e3.outOfService) return true; + const t3 = this.getPropSections(e3); + return !t3.isLiteralMode || t3.collectionItems.items.some((e4) => e4.type.isUnknownAtDesignTime(e4)); + } + getHasAtLeastOnePostbackChoice(e3) { + if (!this.isUnknownAtDesignTime(e3)) return this.getPossibleChoices(e3).length > 0; + } + } + t2.ListPickerType = f, f.typeIdentifier = p.expressionTypeNames.listPicker; + }, 92475: (e2) => { + e2.exports = { askCommon: { invalidInputReceived: "\u05E4\u05E2\u05D5\u05DC\u05D4 \u05D6\u05D5 \u05DC\u05D0 \u05D7\u05D5\u05E7\u05D9\u05EA.", noInputReceived: "\u05DC\u05D0 \u05E7\u05D9\u05D1\u05DC\u05EA\u05D9 \u05D0\u05E3 \u05E0\u05EA\u05D5\u05DF." }, askForBoolean: { noInput: '\u05D0\u05DE\u05D5\u05E8 "\u05DB\u05DF" \u05D0\u05DD \u05D1\u05E8\u05E6\u05D5\u05E0\u05DA \u05DC\u05D4\u05DE\u05E9\u05D9\u05DA \u05D0\u05D5 "\u05DC\u05D0" \u05D0\u05DD \u05D0\u05D9\u05E0\u05DA \u05DE\u05E2\u05D5\u05E0\u05D9\u05D9\u05DF \u05DC\u05D4\u05DE\u05E9\u05D9\u05DA.', noMatch: '\u05D0\u05DE\u05D5\u05E8 "\u05DB\u05DF" \u05D0\u05D5 "\u05DC\u05D0". \u05D4\u05D0\u05DD \u05D1\u05E8\u05E6\u05D5\u05E0\u05DA \u05DC\u05D4\u05DE\u05E9\u05D9\u05DA?', question: "\u05D4\u05D0\u05DD \u05D1\u05E8\u05E6\u05D5\u05E0\u05DA \u05DC\u05D4\u05DE\u05E9\u05D9\u05DA?", noInputDigitalBot: '\u05D9\u05E9 \u05DC\u05D4\u05D6\u05D9\u05DF "\u05DB\u05DF" \u05D0\u05DD \u05D1\u05E8\u05E6\u05D5\u05E0\u05DA \u05DC\u05D4\u05DE\u05E9\u05D9\u05DA \u05D0\u05D5 "\u05DC\u05D0" \u05D0\u05DD \u05D0\u05D9\u05E0\u05DA \u05DE\u05E2\u05D5\u05E0\u05D9\u05D9\u05DF \u05DC\u05D4\u05DE\u05E9\u05D9\u05DA.', noMatchDigitalBot: '\u05D4\u05D6\u05DF \u05D1\u05D1\u05E7\u05E9\u05D4 "\u05DB\u05DF" \u05D0\u05D5 "\u05DC\u05D0". \u05D4\u05D0\u05DD \u05D1\u05E8\u05E6\u05D5\u05E0\u05DA \u05DC\u05D4\u05DE\u05E9\u05D9\u05DA?' }, askForIntent: { noInput: '\u05D0\u05DE\u05D5\u05E8 \u05DE\u05E9\u05E4\u05D8 \u05E7\u05E6\u05E8 \u05E9\u05DE\u05EA\u05D0\u05E8 \u05D0\u05EA \u05D4\u05E9\u05D0\u05D9\u05DC\u05EA\u05D4 \u05E9\u05DC\u05DA. \u05DC\u05D3\u05D5\u05D2\u05DE\u05D4, "\u05D1\u05D3\u05D5\u05E7 \u05D0\u05EA \u05D9\u05EA\u05E8\u05EA \u05D4\u05D7\u05E9\u05D1\u05D5\u05DF \u05E9\u05DC\u05D9"', noMatch: "\u05D0\u05DE\u05D5\u05E8 \u05DC\u05D9 \u05E9\u05D5\u05D1 \u05DE\u05D4 \u05D1\u05E8\u05E6\u05D5\u05E0\u05DA \u05DC\u05E2\u05E9\u05D5\u05EA.", question: "\u05DE\u05D4 \u05D1\u05E8\u05E6\u05D5\u05E0\u05DA \u05DC\u05E2\u05E9\u05D5\u05EA?", noInputDigitalBot: '\u05D4\u05D6\u05DF \u05D1\u05D1\u05E7\u05E9\u05D4 \u05DE\u05E9\u05E4\u05D8 \u05E7\u05E6\u05E8 \u05E9\u05DE\u05EA\u05D0\u05E8 \u05D0\u05EA \u05D4\u05E9\u05D0\u05D9\u05DC\u05EA\u05D4 \u05E9\u05DC\u05DA. \u05DC\u05D3\u05D5\u05D2\u05DE\u05D4, "\u05D1\u05D3\u05D5\u05E7 \u05D0\u05EA \u05D9\u05EA\u05E8\u05EA \u05D4\u05D7\u05E9\u05D1\u05D5\u05DF \u05E9\u05DC\u05D9"' }, askForSlot: { askFor: "\u05D1\u05E7\u05E9 \u05D0\u05EA %1$s", noInput: "\u05D0\u05DE\u05D5\u05E8 \u05D0\u05D5 \u05D4\u05D6\u05DF \u05D1\u05D1\u05E7\u05E9\u05D4 \u05D0\u05EA (\u05E8\u05E9\u05D5\u05DD \u05DB\u05D0\u05DF \u05D0\u05EA \u05E9\u05DD \u05D4\u05DE\u05E9\u05D1\u05E6\u05EA \u05E9\u05DC\u05DA).", noInputWithSlot: "\u05D0\u05DE\u05D5\u05E8 \u05D0\u05D5 \u05D4\u05D6\u05DF \u05D1\u05D1\u05E7\u05E9\u05D4 \u05D0\u05EA %1$s.", noMatch: "\u05EA\u05DF \u05DC\u05D9 \u05E9\u05D5\u05D1 \u05D1\u05D1\u05E7\u05E9\u05D4 \u05D0\u05EA (\u05E8\u05E9\u05D5\u05DD \u05D0\u05EA \u05E9\u05DD \u05D4\u05DE\u05E9\u05D1\u05E6\u05EA \u05E9\u05DC\u05DA \u05DB\u05D0\u05DF).", noMatchWithSlot: "\u05EA\u05DF \u05DC\u05D9 \u05D1\u05D1\u05E7\u05E9\u05D4 \u05E9\u05D5\u05D1 \u05D0\u05EA %1$s.", question: "\u05DE\u05D4 \u05D4\u05D5\u05D0 (\u05E8\u05E9\u05D5\u05DD \u05D0\u05EA \u05E9\u05DD \u05D4\u05DE\u05E9\u05D1\u05E6\u05EA \u05E9\u05DC\u05DA \u05DB\u05D0\u05DF)?", questionWithSlot: "\u05DE\u05D4 \u05D4\u05D5\u05D0 \u05D4-%1$s?", pleaseEnterSlotNameHere: "(\u05E8\u05E9\u05D5\u05DD \u05D1\u05D1\u05E7\u05E9\u05D4 \u05D0\u05EA \u05E9\u05DD \u05D4\u05DE\u05E9\u05D1\u05E6\u05EA \u05E9\u05DC\u05DA \u05DB\u05D0\u05DF)", noInputDigitalBot: "\u05D4\u05D6\u05DF \u05D1\u05D1\u05E7\u05E9\u05D4 \u05D0\u05EA (\u05E8\u05E9\u05D5\u05DD \u05D0\u05EA \u05E9\u05DD \u05D4\u05DE\u05E9\u05D1\u05E6\u05EA \u05E9\u05DC\u05DA \u05DB\u05D0\u05DF).", noInputWithSlotDigitalBot: "\u05D4\u05D6\u05DF \u05D1\u05D1\u05E7\u05E9\u05D4 \u05D0\u05EA \u05D4-%1$s.", continuationPromptWithSlot: "\u05D0\u05E0\u05D9 \u05E7\u05D9\u05D1\u05DC\u05EA\u05D9 {{Slot.%1$s}} \u05E2\u05D3 \u05DB\u05D4, \u05D4\u05DE\u05E9\u05DA \u05D1\u05D1\u05E7\u05E9\u05D4." }, askForNextSlot: { noInput: '\u05D0\u05DE\u05D5\u05E8 "\u05DB\u05DF" \u05D0\u05DD \u05D9\u05E9 \u05DC\u05DA \u05E9\u05D0\u05D9\u05DC\u05EA\u05D4 \u05E0\u05D5\u05E1\u05E4\u05EA, \u05D0\u05D5 "\u05DC\u05D0" \u05DB\u05D3\u05D9 \u05DC\u05E1\u05D9\u05D9\u05DD \u05D0\u05EA \u05D4\u05E9\u05D9\u05D7\u05D4.', noMatch: '\u05D0\u05DE\u05D5\u05E8 "\u05DB\u05DF" \u05D0\u05DD \u05D9\u05E9 \u05DC\u05DA \u05E9\u05D0\u05D9\u05DC\u05EA\u05D4 \u05E0\u05D5\u05E1\u05E4\u05EA, \u05D0\u05D5 "\u05DC\u05D0" \u05DB\u05D3\u05D9 \u05DC\u05E1\u05D9\u05D9\u05DD \u05D0\u05EA \u05D4\u05E9\u05D9\u05D7\u05D4.', question: "\u05D4\u05D0\u05DD \u05D9\u05E9 \u05DE\u05E9\u05D4\u05D5 \u05E0\u05D5\u05E1\u05E3 \u05E9\u05D0\u05E0\u05D9 \u05D9\u05DB\u05D5\u05DC \u05DC\u05E2\u05D6\u05D5\u05E8 \u05DC\u05DA \u05D1\u05D5?", noInputDigitalBot: '\u05D4\u05D6\u05DF "\u05DB\u05DF" \u05D0\u05DD \u05D9\u05E9 \u05DC\u05DA \u05E9\u05D0\u05D9\u05DC\u05EA\u05D4 \u05E0\u05D5\u05E1\u05E4\u05EA, \u05D0\u05D5 "\u05DC\u05D0" \u05DB\u05D3\u05D9 \u05DC\u05E1\u05D9\u05D9\u05DD \u05D0\u05EA \u05D4\u05E9\u05D9\u05D7\u05D4.', noMatchDigitalBot: '\u05D4\u05D6\u05DF "\u05DB\u05DF" \u05D0\u05DD \u05D9\u05E9 \u05DC\u05DA \u05E9\u05D0\u05D9\u05DC\u05EA\u05D4 \u05E0\u05D5\u05E1\u05E4\u05EA, \u05D0\u05D5 "\u05DC\u05D0" \u05DB\u05D3\u05D9 \u05DC\u05E1\u05D9\u05D9\u05DD \u05D0\u05EA \u05D4\u05E9\u05D9\u05D7\u05D4.' }, askForPayment: { noInputDigitalBot: "\u05E8\u05E9\u05D5\u05DD \u05D1\u05D1\u05E7\u05E9\u05D4 \u05D0\u05EA \u05E4\u05E8\u05D8\u05D9 \u05D4\u05EA\u05E9\u05DC\u05D5\u05DD \u05E9\u05DC\u05DA \u05DB\u05D3\u05D9 \u05DC\u05D4\u05DE\u05E9\u05D9\u05DA.", noMatchDigitalBot: "\u05D0\u05E0\u05D9 \u05DC\u05D0 \u05D4\u05D1\u05E0\u05EA\u05D9 \u05D0\u05EA \u05DE\u05D4 \u05E9\u05E8\u05E9\u05DE\u05EA. \u05E0\u05E1\u05D4 \u05E9\u05D5\u05D1 \u05D1\u05D1\u05E7\u05E9\u05D4." }, askForAuthentication: { noInputDigitalBot: "\u05E8\u05E9\u05D5\u05DD \u05D1\u05D1\u05E7\u05E9\u05D4 \u05D0\u05EA \u05E4\u05E8\u05D8\u05D9 \u05D4\u05D0\u05D9\u05DE\u05D5\u05EA \u05E9\u05DC\u05DA \u05DB\u05D3\u05D9 \u05DC\u05D4\u05DE\u05E9\u05D9\u05DA.", noMatchDigitalBot: "\u05D0\u05E0\u05D9 \u05DC\u05D0 \u05D4\u05D1\u05E0\u05EA\u05D9 \u05D0\u05EA \u05DE\u05D4 \u05E9\u05E8\u05E9\u05DE\u05EA. \u05E0\u05E1\u05D4 \u05E9\u05D5\u05D1 \u05D1\u05D1\u05E7\u05E9\u05D4." }, askSurveyQuestion: { notApplicable: "\u05DC\u05D0 \u05EA\u05E7\u05E3", surveyAnswerOptionSequence: "\u05DC\u05D7\u05E5 \u05E2\u05DC %1$s \u05E2\u05D1\u05D5\u05E8 '%2$s'.", surveyAnswerNotApplicableSequence: "\u05DC\u05D7\u05E5 \u05E2\u05DC \u05DB\u05D5\u05DB\u05D1\u05D9\u05EA \u05E2\u05D1\u05D5\u05E8 '\u05DC\u05D0 \u05EA\u05E7\u05E3'.", surveyAnswerNotApplicableWithQuestionSequence: "%1$s. \u05DC\u05D7\u05E5 \u05E2\u05DC \u05DB\u05D5\u05DB\u05D1\u05D9\u05EA \u05E2\u05D1\u05D5\u05E8 '\u05DC\u05D0 \u05EA\u05E7\u05E3'.", voiceSurveyNoInputText: "\u05E2\u05E0\u05D4 \u05D1\u05D1\u05E7\u05E9\u05D4 \u05E2\u05DC \u05D4\u05E9\u05D0\u05DC\u05D4.", voiceSurveyNoMatchText: "\u05DC\u05D0 \u05D4\u05D1\u05E0\u05EA\u05D9 \u05D0\u05D5\u05EA\u05DA." }, commonModule: { exitCommonModule: "\u05E6\u05D0 \u05DE\u05D4\u05DE\u05D5\u05D3\u05D5\u05DC \u05D4\u05DE\u05E9\u05D5\u05EA\u05E3" }, form: { noInputDigitalBot: "\u05D4\u05E9\u05DC\u05DD \u05D1\u05D1\u05E7\u05E9\u05D4 \u05D0\u05EA \u05D4\u05E4\u05E8\u05D8\u05D9\u05DD \u05D1\u05D8\u05D5\u05E4\u05E1 \u05E2\u05DC \u05DE\u05E0\u05EA \u05DC\u05D4\u05DE\u05E9\u05D9\u05DA.", noMatchDigitalBot: "\u05D4\u05E9\u05DC\u05DD \u05D1\u05D1\u05E7\u05E9\u05D4 \u05D0\u05EA \u05D4\u05E4\u05E8\u05D8\u05D9\u05DD \u05D1\u05D8\u05D5\u05E4\u05E1 \u05E2\u05DC \u05DE\u05E0\u05EA \u05DC\u05D4\u05DE\u05E9\u05D9\u05DA." }, messagingTemplate: { noInputDigitalBot: "\u05D9\u05E9 \u05DC\u05D1\u05D7\u05D5\u05E8 \u05D0\u05D7\u05EA \u05DE\u05D4\u05D0\u05E4\u05E9\u05E8\u05D5\u05D9\u05D5\u05EA \u05D4\u05D6\u05DE\u05D9\u05E0\u05D5\u05EA.", noMatchDigitalBot: "\u05D9\u05E9 \u05DC\u05D1\u05D7\u05D5\u05E8 \u05D0\u05D7\u05EA \u05DE\u05D4\u05D0\u05E4\u05E9\u05E8\u05D5\u05D9\u05D5\u05EA \u05D4\u05D6\u05DE\u05D9\u05E0\u05D5\u05EA." }, knowledgeSettings: { knowledgeAnswerHighlightFlowProgressionDefault: "\u05D4\u05DE\u05E9\u05DA", knowledgeAnswerHighlightFullArticleDefault: "\u05D4\u05E6\u05D2 \u05D0\u05EA \u05D4\u05DE\u05D0\u05DE\u05E8 \u05D4\u05DE\u05DC\u05D0", knowledgeInitialResponseMulti: "\u05DB\u05D3\u05D9 \u05DC\u05E2\u05D6\u05D5\u05E8 \u05DC\u05D9 \u05DC\u05D4\u05D1\u05D9\u05DF \u05D9\u05D5\u05EA\u05E8 \u05D0\u05EA \u05D4\u05DE\u05D8\u05E8\u05D4 \u05E9\u05DC\u05DA, \u05D1\u05D7\u05E8 \u05DE\u05E1\u05E4\u05E8 \u05D1\u05D1\u05E7\u05E9\u05D4 \u05DE\u05D4\u05E8\u05E9\u05D9\u05DE\u05D4 \u05D4\u05D1\u05D0\u05D4:", knowledgeInitialResponseMultiRetry: "\u05D1\u05D7\u05E8 \u05DE\u05E1\u05E4\u05E8, \u05DC\u05D3\u05D5\u05D2\u05DE\u05D4 '1'.\n\u05DC\u05D4\u05DC\u05DF \u05E9\u05D5\u05D1 \u05D4\u05E8\u05E9\u05D9\u05DE\u05D4 \u05E9\u05DC \u05D4\u05D0\u05E4\u05E9\u05E8\u05D5\u05D9\u05D5\u05EA:", knowledgeNoMatch: "\u05D0\u05E3 \u05D0\u05D7\u05D3 \u05DE\u05D0\u05DC\u05D4", knowledgeConfirmation: "\u05D4\u05D0\u05DD \u05D6\u05D4 \u05E2\u05E0\u05D4 \u05DC\u05E9\u05D0\u05DC\u05D4 \u05E9\u05DC\u05DA?", knowledgeFollowup: "\u05D0\u05E0\u05D9 \u05DE\u05E7\u05D5\u05D5\u05D4 \u05E9\u05E2\u05E0\u05D9\u05EA\u05D9 \u05DC\u05E9\u05D0\u05DC\u05D4 \u05E9\u05DC\u05DA. \u05D1\u05D0\u05E4\u05E9\u05E8\u05D5\u05EA\u05DA \u05DC\u05E9\u05D0\u05D5\u05DC \u05DB\u05DC \u05D3\u05D1\u05E8 \u05D0\u05D7\u05E8 \u05E9\u05D0\u05D5\u05DC\u05D9 \u05D1\u05E8\u05E6\u05D5\u05E0\u05DA \u05DC\u05D3\u05E2\u05EA." }, noOverlay: { intent: { intentConfirmationStr1: "\u05DC\u05D3\u05E2\u05EA\u05D9 \u05D0\u05EA\u05D4 \u05E8\u05D5\u05E6\u05D4", intentConfirmationStr2: "\u05D4\u05D0\u05DD \u05D6\u05D4 \u05E0\u05DB\u05D5\u05DF?" }, youSaid: { youSaidConfirmationStr1: "\u05D0\u05EA\u05D4 \u05D0\u05DE\u05E8\u05EA", youSaidConfirmationStr2: "\u05D4\u05D0\u05DD \u05D6\u05D4 \u05E0\u05DB\u05D5\u05DF?", youSaidConfirmationStr1DigitalBot: "\u05D0\u05EA\u05D4 \u05D4\u05D6\u05E0\u05EA" }, noInput: { noInputStr1: "\u05D0\u05DE\u05D5\u05E8 \u05D0\u05D5 \u05D4\u05D6\u05DF \u05D1\u05D1\u05E7\u05E9\u05D4 \u05D0\u05EA \u05D4-", noInputStr1DigitalBot: "\u05D4\u05D6\u05DF \u05D1\u05D1\u05E7\u05E9\u05D4 \u05D0\u05EA \u05D4-" }, noMatch: { noMatchStr1: "\u05EA\u05DF \u05DC\u05D9 \u05D1\u05D1\u05E7\u05E9\u05D4 \u05D0\u05EA \u05D4-" }, whatIs: { whatIsQuestionStr1: "\u05DE\u05D4\u05D5 \u05D4-", whatIsQuestionStr2: "?" }, iGotContinuation: { iGotContinuationStr1: "\u05E7\u05D9\u05D1\u05DC\u05EA\u05D9", iGotContinuationStr2: "\u05E2\u05D3 \u05DB\u05D4, \u05D4\u05DE\u05E9\u05DA \u05D1\u05D1\u05E7\u05E9\u05D4." } }, defaultCallFlowOne: "\u05EA\u05E8\u05E9\u05D9\u05DD \u05D6\u05E8\u05D9\u05DE\u05D4 \u05D1\u05E8\u05D9\u05E8\u05EA \u05DE\u05D7\u05D3\u05DC \u05E9\u05DC \u05E9\u05D9\u05D7\u05D4", errorHandlingAgentEscalationConfirmation: "\u05D1\u05E8\u05E6\u05D5\u05E0\u05DA \u05DC\u05D3\u05D1\u05E8 \u05E2\u05DD \u05D9\u05D5\u05E2\u05E5. \u05D4\u05D0\u05DD \u05D6\u05D4 \u05E0\u05DB\u05D5\u05DF?", errorHandlingAgentEscalationHandover: "\u05E8\u05D2\u05E2 \u05D0\u05D7\u05D3, \u05D1\u05D1\u05E7\u05E9\u05D4, \u05D5\u05D0\u05E0\u05D9 \u05D0\u05E2\u05D1\u05D9\u05E8 \u05D0\u05D5\u05EA\u05DA \u05DC\u05DE\u05D9\u05E9\u05D4\u05D5.", errorHandlingErrorEventHandover: "\u05D0\u05E0\u05D9 \u05DE\u05EA\u05E0\u05E6\u05DC, \u05E7\u05E8\u05EA\u05D4 \u05E9\u05D2\u05D9\u05D0\u05D4. \u05E8\u05E7 \u05E8\u05D2\u05E2 \u05D1\u05D1\u05E7\u05E9\u05D4, \u05D4\u05DE\u05EA\u05DF \u05D1\u05D6\u05DE\u05DF \u05E9\u05D0\u05E0\u05D9 \u05DE\u05E2\u05D1\u05D9\u05E8 \u05D0\u05D5\u05EA\u05DA \u05DC\u05DE\u05D9\u05E9\u05D4\u05D5 \u05E9\u05D9\u05DB\u05D5\u05DC \u05DC\u05E2\u05D6\u05D5\u05E8.", errorHandlingErrorEventHandoverVoiceSurvey: "\u05E1\u05DC\u05D9\u05D7\u05D4, \u05E7\u05E8\u05EA\u05D4 \u05E9\u05D2\u05D9\u05D0\u05D4. \u05E9\u05DC\u05D5\u05DD.", errorHandlingRecognitionEventHandover: "\u05E1\u05DC\u05D9\u05D7\u05D4, \u05D0\u05E0\u05D9 \u05DE\u05EA\u05E7\u05E9\u05D4 \u05DC\u05D4\u05D1\u05D9\u05DF \u05D0\u05D5\u05EA\u05DA. \u05E8\u05D2\u05E2 \u05D0\u05D7\u05D3 \u05D1\u05D1\u05E7\u05E9\u05D4, \u05D4\u05DE\u05EA\u05DF \u05D1\u05D6\u05DE\u05DF \u05E9\u05D0\u05E0\u05D9 \u05DE\u05E2\u05D1\u05D9\u05E8 \u05D0\u05D5\u05EA\u05DA \u05DC\u05DE\u05D9\u05E9\u05D4\u05D5 \u05E9\u05D9\u05DB\u05D5\u05DC \u05DC\u05E2\u05D6\u05D5\u05E8 \u05DC\u05DA.", errorHandlingRecognitionEventHandoverVoiceSurvey: "\u05E1\u05DC\u05D9\u05D7\u05D4, \u05D0\u05E0\u05D9 \u05DE\u05EA\u05E7\u05E9\u05D4 \u05DC\u05D4\u05D1\u05D9\u05DF \u05D0\u05D5\u05EA\u05DA. \u05E9\u05DC\u05D5\u05DD.", errorHandlingTTS: "\u05E1\u05DC\u05D9\u05D7\u05D4, \u05D0\u05D9\u05E8\u05E2\u05D4 \u05E9\u05D2\u05D9\u05D0\u05D4. \u05E0\u05E1\u05D4 \u05DC\u05D1\u05E6\u05E2 \u05E9\u05D5\u05D1 \u05D0\u05EA \u05D4\u05E9\u05D9\u05D7\u05D4 \u05E9\u05DC\u05DA.", initialGreetingTTS: "\u05E9\u05DC\u05D5\u05DD, \u05D6\u05D5\u05D4\u05D9 \u05D1\u05E8\u05DB\u05EA \u05D4\u05E9\u05DC\u05D5\u05DD \u05D4\u05E8\u05D0\u05E9\u05D5\u05E0\u05D9\u05EA.", initialState: "\u05DE\u05D3\u05D9\u05E0\u05D4 \u05E8\u05D0\u05E9\u05D5\u05E0\u05D4", initialBotState: "\u05D1\u05D5\u05D8 \u05D1\u05E8\u05D9\u05E8\u05EA \u05DE\u05D7\u05D3\u05DC", initialDigitalBotState: "\u05D1\u05E8\u05DB\u05EA \u05E9\u05DC\u05D5\u05DD \u05E8\u05D0\u05E9\u05D5\u05E0\u05D9\u05EA", initialSurveyBotState: "\u05D1\u05D5\u05D8 \u05E1\u05E7\u05E8\u05D9\u05DD", intentConfirmation: "\u05DC\u05D3\u05E2\u05EA\u05D9 \u05D0\u05EA\u05D4 \u05E8\u05D5\u05E6\u05D4 %1$s, \u05D4\u05D0\u05DD \u05D6\u05D4 \u05E0\u05DB\u05D5\u05DF?", mainMenu: "\u05EA\u05E4\u05E8\u05D9\u05D8 \u05E8\u05D0\u05E9\u05D9", mainMenuTTS: "\u05D0\u05EA\u05D4 \u05D1\u05EA\u05E4\u05E8\u05D9\u05D8 \u05D4\u05E8\u05D0\u05E9\u05D9, \u05DC\u05D7\u05E5 \u05E2\u05DC 9 \u05DB\u05D3\u05D9 \u05DC\u05D4\u05EA\u05E0\u05EA\u05E7", mainTask: "\u05DE\u05E9\u05D9\u05DE\u05D4", settingsConfirmationNoInputApology: "\u05E1\u05DC\u05D9\u05D7\u05D4, \u05DC\u05D0 \u05E9\u05DE\u05E2\u05EA\u05D9 \u05D0\u05D5\u05EA\u05DA. \u05D0\u05DE\u05D5\u05E8 \u05D1\u05D1\u05E7\u05E9\u05D4 \u05DB\u05DF \u05D0\u05D5 \u05DC\u05D0.", settingsConfirmationNoInputApologyDigitalBot: '\u05E1\u05DC\u05D9\u05D7\u05D4, \u05DC\u05D0 \u05E7\u05D9\u05D1\u05DC\u05EA\u05D9 \u05EA\u05D2\u05D5\u05D1\u05D4 \u05DE\u05DE\u05DA. \u05D4\u05D6\u05DF \u05D1\u05D1\u05E7\u05E9\u05D4 "\u05DB\u05DF" \u05D0\u05D5 "\u05DC\u05D0".', settingsConfirmationNoMatchApology: "\u05E1\u05DC\u05D9\u05D7\u05D4, \u05D0\u05DE\u05D5\u05E8 \u05D1\u05D1\u05E7\u05E9\u05D4 \u05DB\u05DF \u05D0\u05D5 \u05DC\u05D0.", settingsConfirmationNoMatchApologyDigitalBot: '\u05E1\u05DC\u05D9\u05D7\u05D4, \u05D4\u05D6\u05DF \u05D1\u05D1\u05E7\u05E9\u05D4 "\u05DB\u05DF" \u05D0\u05D5 "\u05DC\u05D0".', settingsNoInputApology: "\u05E1\u05DC\u05D9\u05D7\u05D4, \u05DC\u05D0 \u05E9\u05DE\u05E2\u05EA\u05D9 \u05D0\u05D5\u05EA\u05DA.", settingsNoInputApologyDigitalBot: "\u05E1\u05DC\u05D9\u05D7\u05D4, \u05DC\u05D0 \u05E7\u05D9\u05D1\u05DC\u05EA\u05D9 \u05DE\u05DE\u05DA \u05E0\u05EA\u05D5\u05DF.", settingsEndOfSessionMessageDigitalBot: "\u05DC\u05D0 \u05E9\u05DE\u05E2\u05EA\u05D9 \u05DE\u05DE\u05DA \u05DE\u05D6\u05D4 \u05D6\u05DE\u05DF, \u05DC\u05DB\u05DF \u05D0\u05E0\u05D9 \u05E1\u05D5\u05D2\u05E8 \u05D0\u05EA \u05D4\u05E6'\u05D8 \u05D4\u05D6\u05D4. \u05D7\u05D6\u05D5\u05E8 \u05D1\u05D1\u05E7\u05E9\u05D4 \u05D0\u05DD \u05D0\u05EA\u05D4 \u05D6\u05E7\u05D5\u05E7 \u05DC\u05E2\u05D6\u05E8\u05EA\u05D9 \u05E9\u05D5\u05D1. \u05EA\u05D5\u05D3\u05D4 \u05E8\u05D1\u05D4.", settingsNoMatchApology: "\u05E1\u05DC\u05D9\u05D7\u05D4.", settingsNoToConfirmationApology: "\u05D8\u05E2\u05D5\u05EA \u05E9\u05DC\u05D9.", periodicStateName: "\u05DE\u05D3\u05D9\u05E0\u05D4 \u05D7\u05D5\u05D6\u05E8\u05EA" }; + }, 92498: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(54063)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "messageAddressInfoCollection"; + } + get displayTypeName() { + return "ArchValueMessageAddressInfoCollection"; + } + get isArchValueMessageAddressInfoCollection() { + return true; + } + } + t2.default = r2; + }, 92512: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = i2(30801), o = n2.__importDefault(i2(21345)); + class a extends o.default { + constructor(e3) { + super(e3), this._externalId = this.coreFactory.createArchWrapper(e3.externalId), this._externalResult = this.coreFactory.createArchWrapper(e3.externalResult); + } + get _actionTypeId() { + return r2.promoteExternalContactActionType; + } + get displayTypeName() { + return this._scriptingName; + } + get promoteExternalContactOutputsFailure() { + return this._coreActionViewModel.errorBindings ? this.coreFactory.createArchWrapper(this._coreActionViewModel.errorBindings) : null; + } + get isArchActionPromoteExternalContact() { + return true; + } + get externalId() { + return this._externalId; + } + get externalResult() { + return this._externalResult; + } + } + t2.default = a; + }, 92533: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(67432)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get isFileViewModel() { + return true; + } + } + t2.default = r2; + }, 92566: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importStar(i2(63824)), o = n2.__importStar(i2(36781)), a = n2.__importStar(i2(10798)), s = n2.__importStar(i2(1115)), l = n2.__importDefault(i2(92140)), u = n2.__importDefault(i2(88391)), d = n2.__importDefault(i2(73198)), c = n2.__importDefault(i2(4648)), p = n2.__importDefault(i2(41510)), _ = i2(79467), h = i2(81516), m = i2(96618), g = i2(80428), f = i2(47957); + class T extends u.default { + constructor(e3, t3) { + super(e3, t3); + } + _initializeDesignTime() { + super._initializeDesignTime(), this.addAutoCleanedUpEventSinkWatch(o.listOrderChanged, this.sessionVariables, () => this.validateIfNoSessionVariables()); + } + get botRunnableProperty() { + return this.bot; + } + get environmentId() { + return this.model.environmentId; + } + set environmentId(e3) { + this.model.environmentId = e3; + } + get environmentName() { + return this.model.environmentName; + } + getEnvironmentName() { + return this.environmentId === p.default.dialogflow.draftEnvironmentId ? p.default.dialogflow.draftEnvironmentName : this.environmentName || this.environmentId; + } + get integrationName() { + return this.model.integrationName; + } + set integrationName(e3) { + this.model.integrationName = e3; + } + get integrationId() { + return this.model.integrationId; + } + set integrationId(e3) { + this.model.integrationId = e3; + } + get isBaseDialogflowAction() { + return true; + } + static get managedProperties() { + return [{ dataList: true, isOutput: true, property: "errorBindings", yamlOptions: T.createYamlOptions("errorBindings", (e3) => e3.setPropertyName("failureOutputs")) }, { label: f.dialogflow.initialEventNameLabel, options: h.ExpressionTypeStringOptions.create((e3) => e3.setDefaultToNoValue(true).setIsOptional(true).setIninTestingField("eventNameExpression").setDescriptionInfo(f.dialogflow.initialEventNameLabel, f.dialogflow.initialEventNameDescription)), property: "eventName", type: g.expressionTypeNames.string, yamlOptions: T.createYamlOptions("eventName", (e3) => e3.setExportOrder(3)) }, { label: f.bot.followupResponseTimeoutLabel, options: _.ExpressionTypeDurationOptions.create((e3) => e3.setDefaultText(d.default.litDurationTwelveHours).setDescriptionInfo(f.bot.followupResponseTimeoutLabel, f.bot.followupResponseTimeoutDescription).setDurationStyle(r2.durationStyles.fullDuration).setIninTestingField("followupResponseTimeoutExpression").facets.setMinDur(0, true)), optionsForSpecificFlowTypes: [{ flowTypes: [m.flowTypes.flowTypeInboundChat], options: _.ExpressionTypeDurationOptions.create((e3) => e3.setDefaultText(d.default.litDurationFiveMinutes).setDescriptionInfo(f.bot.followupResponseTimeoutLabel, f.bot.followupResponseTimeoutDescription).setDurationStyle(r2.durationStyles.fullDuration).setIninTestingField("followupResponseTimeoutExpression").facets.setMinDur(0, true).setMaxDur(10 * d.default.msPerHour, true)) }], property: "followupResponseTimeout", supportedFlowTypes: [m.flowTypes.flowTypeInboundShortMessage, m.flowTypes.flowTypeInQueueShortMessage, m.flowTypes.flowTypeInboundChat], type: g.expressionTypeNames.duration, yamlOptions: T.createYamlOptions("followupResponseTimeout", (e3) => e3.setExportOrder(2)) }, { label: f.dialogflow.inputTextLabel, options: h.ExpressionTypeStringOptions.create((e3) => e3.setDescriptionInfo(f.dialogflow.inputTextLabel, f.dialogflow.inputTextDescription).setIninTestingField("inputTextExpression").setIsOptional(true)), optionsForSpecificFlowTypes: [{ flowTypes: [m.flowTypes.flowTypeInboundShortMessage, m.flowTypes.flowTypeInQueueShortMessage], options: h.ExpressionTypeStringOptions.create((e3) => e3.setDefaultToExpression(true).setDefaultText(d.default.messageBodyVariable).setIsOptional(a.isFeatureAvailable(c.default.autoStartConversations)).setDoNotTransitionToNoValue(true).setDescriptionInfo(f.dialogflow.inputTextLabel, f.dialogflow.inputTextDescriptionForChat).setIninTestingField("inputTextExpression")) }], property: "inputText", supportedFlowTypes: [m.flowTypes.flowTypeInboundShortMessage, m.flowTypes.flowTypeInQueueShortMessage, m.flowTypes.flowTypeInboundChat], type: g.expressionTypeNames.string, yamlOptions: T.createYamlOptions("inputText", (e3) => e3.setExportOrder(1)) }]; + } + postProcessYamlConfig(e3, t3, i3) { + if (!this.botRunnableProperty.idValue) return void this.removeYamlExportPropsThatRequireRunnable(e3); + let n3 = this.botRunnableManager.getItem(this.botRunnableProperty.idValue); + n3 || (n3 = this.botRunnableManager.getItemFromFlowMetadata(this, this.botRunnableProperty.idValue)), n3.integrationName && (e3.integration = {}, e3.integration.name = n3.integrationName); + const r3 = (null == n3 ? void 0 : n3.projectId) || "unknownProjectId"; + e3.dialogflow = {}, e3.dialogflow[r3] = {}; + const o2 = e3.dialogflow[r3][this.botName || "unknownBotName"] = {}; + o2.environment = this.getEnvironmentName(), this.commonBotPostProcessYamlConfig(e3, o2); + } + setBotRunnableByViewModel(e3) { + this.environmentId = e3 ? p.default.dialogflow.draftEnvironmentId : null, this.integrationId = null == e3 ? void 0 : e3.integrationId, this.integrationName = null == e3 ? void 0 : e3.integrationName, super.setBotRunnableByViewModel(e3); + } + get shouldSkipLanguageValidation() { + return true; + } + get supportsEnvironments() { + return true; + } + get supportsInputsOutputs() { + return true; + } + get sessionInputsWarning() { + if (this.parentFlow.definition && !this.parentFlow.definition.supportsAudio && this.supportsInputsOutputs) { + const e3 = this.sessionVariables && this.sessionVariables.items.length > 0, t3 = this.eventName && (this.eventName.isNotSet || this.eventName.isBlank); + return e3 && t3 ? f.dialogflow.sessionInputsWarning : ""; + } + return ""; + } + setEnvironment(e3) { + this.environmentId = null == e3 ? void 0 : e3.id; + } + validate(e3) { + if (super.validate(e3), !l.default.isNullOrUndefined(this.environmentId)) { + const t3 = this.botRunnableManager.getItem(this.botRunnableProperty.idValue); + t3 && !l.default.findWhere(t3.environments, { id: this.environmentId }) && e3.addError(this, f.dialogflow.environmentNotFound); + } + l.default.isEmpty(this.sessionInputsWarning) || e3.addWarning(this, this.sessionInputsWarning); + } + propertyChanged(e3) { + super.propertyChanged(e3), this.parentFlow.loaded && this.initializeDesignTimeCalled && e3 === this.eventName && s.validateAction(this, false, true); + } + validateIfNoSessionVariables() { + this.sessionVariables && 0 === this.sessionVariables.length && s.validateAction(this, true, true); + } + get yamlNoBotRunnablePropName() { + return "noDialogflowBot"; + } + } + T.className = "BaseDialogflowActionViewModel", t2.default = T; + }, 92572: function(e2, t2, i2) { + !(function(e3) { + "use strict"; + var t3 = "jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"), i3 = "jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"), n2 = [/^jan/i, /^feb/i, /^maart|mrt.?$/i, /^apr/i, /^mei$/i, /^jun[i.]?$/i, /^jul[i.]?$/i, /^aug/i, /^sep/i, /^okt/i, /^nov/i, /^dec/i], r2 = /^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i; + e3.defineLocale("nl", { months: "januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"), monthsShort: function(e4, n3) { + return e4 ? /-MMM-/.test(n3) ? i3[e4.month()] : t3[e4.month()] : t3; + }, monthsRegex: r2, monthsShortRegex: r2, monthsStrictRegex: /^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i, monthsShortStrictRegex: /^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i, monthsParse: n2, longMonthsParse: n2, shortMonthsParse: n2, weekdays: "zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"), weekdaysShort: "zo._ma._di._wo._do._vr._za.".split("_"), weekdaysMin: "zo_ma_di_wo_do_vr_za".split("_"), weekdaysParseExact: true, longDateFormat: { LT: "HH:mm", LTS: "HH:mm:ss", L: "DD-MM-YYYY", LL: "D MMMM YYYY", LLL: "D MMMM YYYY HH:mm", LLLL: "dddd D MMMM YYYY HH:mm" }, calendar: { sameDay: "[vandaag om] LT", nextDay: "[morgen om] LT", nextWeek: "dddd [om] LT", lastDay: "[gisteren om] LT", lastWeek: "[afgelopen] dddd [om] LT", sameElse: "L" }, relativeTime: { future: "over %s", past: "%s geleden", s: "een paar seconden", ss: "%d seconden", m: "\xE9\xE9n minuut", mm: "%d minuten", h: "\xE9\xE9n uur", hh: "%d uur", d: "\xE9\xE9n dag", dd: "%d dagen", w: "\xE9\xE9n week", ww: "%d weken", M: "\xE9\xE9n maand", MM: "%d maanden", y: "\xE9\xE9n jaar", yy: "%d jaar" }, dayOfMonthOrdinalParse: /\d{1,2}(ste|de)/, ordinal: function(e4) { + return e4 + (1 === e4 || 8 === e4 || e4 >= 20 ? "ste" : "de"); + }, week: { dow: 1, doy: 4 } }); + })(i2(95093)); + }, 92595: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = i2(30801), o = n2.__importDefault(i2(11210)); + class a extends o.default { + constructor(e3) { + super(e3); + } + get _actionTypeId() { + return r2.endStateActionType; + } + get displayTypeName() { + return this._scriptingName; + } + get isArchActionEndState() { + return true; + } + } + t2.default = a; + }, 92646: (e2, t2, i2) => { + const n2 = i2(71844); + function r2() { + r2.baseConstructor.apply(this, arguments); + } + i2(22124).extend(r2, "CategoryList"), Object.defineProperties(r2.prototype, { entities: { enumerable: true, get: function() { + return this._entities; + }, set: function(e3) { + (e3 = this.reviveArray(e3, n2)) && (this._entities = e3); + } } }), e2.exports = r2; + }, 92661: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(19047)); + class r2 extends n2.default { + constructor(e3) { + super(e3), this._findName = this.coreFactory.createArchWrapper(e3.findName); + } + get displayTypeName() { + return "ArchBaseActionFindSystemObjectByName"; + } + get isArchBaseActionFindSystemObjectByName() { + return true; + } + get findName() { + return this._findName; + } + } + t2.default = r2; + }, 92669: (e2) => { + e2.exports = [{ id: "call" }, { id: "callback" }, { id: "chat" }, { id: "cobrowse" }, { id: "email" }, { id: "screenShare" }, { id: "socialExpression" }, { id: "unknown" }, { id: "videoComm" }]; + }, 92737: (e2, t2, i2) => { + const n2 = i2(15338), r2 = i2(34622), o = i2(67513), a = i2(36019).default; + function s() { + } + const l = new s(); + s.prototype.getScript = a.request("GET", "{public-api.apps}/api/v2/scripts/published/{id}", n2), s.prototype.getScriptDivisionView = a.request("GET", "{public-api.apps}/api/v2/scripts/published/divisionviews/?id={id}", r2), s.prototype.getScripts = a.request("GET", "{public-api.apps}/api/v2/scripts/published", r2), s.prototype.getScriptsDivisionView = a.request("GET", "{public-api.apps}/api/v2/scripts/published/divisionviews", r2), s.prototype.getScriptsForFeature = a.request("GET", "{public-api.apps}/api/v2/scripts/published?feature={feature}", r2), s.prototype.getScriptsForFeatureDivisionView = a.request("GET", "{public-api.apps}/api/v2/scripts/published/divisionviews?feature={feature}", r2), s.prototype.getScriptVariables = a.request("GET", "{public-api.apps}/api/v2/scripts/published/{id}/variables", o), s.prototype.getScriptVariablesDivisionView = a.request("GET", "{public-api.apps}/api/v2/scripts/published/divisionviews/{id}/variables", o), l.getScripts.addOptions({ ignoreBadResponse: true }), l.getScript.addOptions({ ignoreBadResponse: true }), l.getScriptsDivisionView.addOptions({ ignoreBadResponse: true }), l.getScriptDivisionView.addOptions({ ignoreBadResponse: true }), e2.exports = l; + }, 92794: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.mergeAll = t2.merge = t2.max = t2.materialize = t2.mapTo = t2.map = t2.last = t2.isEmpty = t2.ignoreElements = t2.groupBy = t2.first = t2.findIndex = t2.find = t2.finalize = t2.filter = t2.expand = t2.exhaustMap = t2.exhaustAll = t2.exhaust = t2.every = t2.endWith = t2.elementAt = t2.distinctUntilKeyChanged = t2.distinctUntilChanged = t2.distinct = t2.dematerialize = t2.delayWhen = t2.delay = t2.defaultIfEmpty = t2.debounceTime = t2.debounce = t2.count = t2.connect = t2.concatWith = t2.concatMapTo = t2.concatMap = t2.concatAll = t2.concat = t2.combineLatestWith = t2.combineLatest = t2.combineLatestAll = t2.combineAll = t2.catchError = t2.bufferWhen = t2.bufferToggle = t2.bufferTime = t2.bufferCount = t2.buffer = t2.auditTime = t2.audit = void 0, t2.timeInterval = t2.throwIfEmpty = t2.throttleTime = t2.throttle = t2.tap = t2.takeWhile = t2.takeUntil = t2.takeLast = t2.take = t2.switchScan = t2.switchMapTo = t2.switchMap = t2.switchAll = t2.subscribeOn = t2.startWith = t2.skipWhile = t2.skipUntil = t2.skipLast = t2.skip = t2.single = t2.shareReplay = t2.share = t2.sequenceEqual = t2.scan = t2.sampleTime = t2.sample = t2.refCount = t2.retryWhen = t2.retry = t2.repeatWhen = t2.repeat = t2.reduce = t2.raceWith = t2.race = t2.publishReplay = t2.publishLast = t2.publishBehavior = t2.publish = t2.pluck = t2.partition = t2.pairwise = t2.onErrorResumeNext = t2.observeOn = t2.multicast = t2.min = t2.mergeWith = t2.mergeScan = t2.mergeMapTo = t2.mergeMap = t2.flatMap = void 0, t2.zipWith = t2.zipAll = t2.zip = t2.withLatestFrom = t2.windowWhen = t2.windowToggle = t2.windowTime = t2.windowCount = t2.window = t2.toArray = t2.timestamp = t2.timeoutWith = t2.timeout = void 0; + var n2 = i2(88877); + Object.defineProperty(t2, "audit", { enumerable: true, get: function() { + return n2.audit; + } }); + var r2 = i2(51608); + Object.defineProperty(t2, "auditTime", { enumerable: true, get: function() { + return r2.auditTime; + } }); + var o = i2(10706); + Object.defineProperty(t2, "buffer", { enumerable: true, get: function() { + return o.buffer; + } }); + var a = i2(9287); + Object.defineProperty(t2, "bufferCount", { enumerable: true, get: function() { + return a.bufferCount; + } }); + var s = i2(41719); + Object.defineProperty(t2, "bufferTime", { enumerable: true, get: function() { + return s.bufferTime; + } }); + var l = i2(61778); + Object.defineProperty(t2, "bufferToggle", { enumerable: true, get: function() { + return l.bufferToggle; + } }); + var u = i2(56606); + Object.defineProperty(t2, "bufferWhen", { enumerable: true, get: function() { + return u.bufferWhen; + } }); + var d = i2(72719); + Object.defineProperty(t2, "catchError", { enumerable: true, get: function() { + return d.catchError; + } }); + var c = i2(89244); + Object.defineProperty(t2, "combineAll", { enumerable: true, get: function() { + return c.combineAll; + } }); + var p = i2(67933); + Object.defineProperty(t2, "combineLatestAll", { enumerable: true, get: function() { + return p.combineLatestAll; + } }); + var _ = i2(64948); + Object.defineProperty(t2, "combineLatest", { enumerable: true, get: function() { + return _.combineLatest; + } }); + var h = i2(82044); + Object.defineProperty(t2, "combineLatestWith", { enumerable: true, get: function() { + return h.combineLatestWith; + } }); + var m = i2(96328); + Object.defineProperty(t2, "concat", { enumerable: true, get: function() { + return m.concat; + } }); + var g = i2(70201); + Object.defineProperty(t2, "concatAll", { enumerable: true, get: function() { + return g.concatAll; + } }); + var f = i2(29512); + Object.defineProperty(t2, "concatMap", { enumerable: true, get: function() { + return f.concatMap; + } }); + var T = i2(19913); + Object.defineProperty(t2, "concatMapTo", { enumerable: true, get: function() { + return T.concatMapTo; + } }); + var y = i2(98032); + Object.defineProperty(t2, "concatWith", { enumerable: true, get: function() { + return y.concatWith; + } }); + var S = i2(17812); + Object.defineProperty(t2, "connect", { enumerable: true, get: function() { + return S.connect; + } }); + var A = i2(88589); + Object.defineProperty(t2, "count", { enumerable: true, get: function() { + return A.count; + } }); + var N = i2(3143); + Object.defineProperty(t2, "debounce", { enumerable: true, get: function() { + return N.debounce; + } }); + var O = i2(21762); + Object.defineProperty(t2, "debounceTime", { enumerable: true, get: function() { + return O.debounceTime; + } }); + var I = i2(58799); + Object.defineProperty(t2, "defaultIfEmpty", { enumerable: true, get: function() { + return I.defaultIfEmpty; + } }); + var v = i2(5797); + Object.defineProperty(t2, "delay", { enumerable: true, get: function() { + return v.delay; + } }); + var C = i2(72885); + Object.defineProperty(t2, "delayWhen", { enumerable: true, get: function() { + return C.delayWhen; + } }); + var b = i2(19818); + Object.defineProperty(t2, "dematerialize", { enumerable: true, get: function() { + return b.dematerialize; + } }); + var E = i2(77876); + Object.defineProperty(t2, "distinct", { enumerable: true, get: function() { + return E.distinct; + } }); + var R = i2(22044); + Object.defineProperty(t2, "distinctUntilChanged", { enumerable: true, get: function() { + return R.distinctUntilChanged; + } }); + var w = i2(76035); + Object.defineProperty(t2, "distinctUntilKeyChanged", { enumerable: true, get: function() { + return w.distinctUntilKeyChanged; + } }); + var D = i2(61279); + Object.defineProperty(t2, "elementAt", { enumerable: true, get: function() { + return D.elementAt; + } }); + var P = i2(66791); + Object.defineProperty(t2, "endWith", { enumerable: true, get: function() { + return P.endWith; + } }); + var M = i2(21361); + Object.defineProperty(t2, "every", { enumerable: true, get: function() { + return M.every; + } }); + var F = i2(11464); + Object.defineProperty(t2, "exhaust", { enumerable: true, get: function() { + return F.exhaust; + } }); + var L = i2(17977); + Object.defineProperty(t2, "exhaustAll", { enumerable: true, get: function() { + return L.exhaustAll; + } }); + var x = i2(86632); + Object.defineProperty(t2, "exhaustMap", { enumerable: true, get: function() { + return x.exhaustMap; + } }); + var k = i2(75544); + Object.defineProperty(t2, "expand", { enumerable: true, get: function() { + return k.expand; + } }); + var V = i2(85934); + Object.defineProperty(t2, "filter", { enumerable: true, get: function() { + return V.filter; + } }); + var U = i2(17802); + Object.defineProperty(t2, "finalize", { enumerable: true, get: function() { + return U.finalize; + } }); + var B = i2(98183); + Object.defineProperty(t2, "find", { enumerable: true, get: function() { + return B.find; + } }); + var G = i2(29035); + Object.defineProperty(t2, "findIndex", { enumerable: true, get: function() { + return G.findIndex; + } }); + var j = i2(19980); + Object.defineProperty(t2, "first", { enumerable: true, get: function() { + return j.first; + } }); + var W = i2(5128); + Object.defineProperty(t2, "groupBy", { enumerable: true, get: function() { + return W.groupBy; + } }); + var q = i2(2959); + Object.defineProperty(t2, "ignoreElements", { enumerable: true, get: function() { + return q.ignoreElements; + } }); + var Y = i2(69915); + Object.defineProperty(t2, "isEmpty", { enumerable: true, get: function() { + return Y.isEmpty; + } }); + var H = i2(32568); + Object.defineProperty(t2, "last", { enumerable: true, get: function() { + return H.last; + } }); + var J = i2(26872); + Object.defineProperty(t2, "map", { enumerable: true, get: function() { + return J.map; + } }); + var z = i2(13337); + Object.defineProperty(t2, "mapTo", { enumerable: true, get: function() { + return z.mapTo; + } }); + var K = i2(75019); + Object.defineProperty(t2, "materialize", { enumerable: true, get: function() { + return K.materialize; + } }); + var $ = i2(50096); + Object.defineProperty(t2, "max", { enumerable: true, get: function() { + return $.max; + } }); + var Q = i2(9330); + Object.defineProperty(t2, "merge", { enumerable: true, get: function() { + return Q.merge; + } }); + var X = i2(68087); + Object.defineProperty(t2, "mergeAll", { enumerable: true, get: function() { + return X.mergeAll; + } }); + var Z = i2(74613); + Object.defineProperty(t2, "flatMap", { enumerable: true, get: function() { + return Z.flatMap; + } }); + var ee = i2(67478); + Object.defineProperty(t2, "mergeMap", { enumerable: true, get: function() { + return ee.mergeMap; + } }); + var te = i2(76075); + Object.defineProperty(t2, "mergeMapTo", { enumerable: true, get: function() { + return te.mergeMapTo; + } }); + var ie = i2(16707); + Object.defineProperty(t2, "mergeScan", { enumerable: true, get: function() { + return ie.mergeScan; + } }); + var ne = i2(79694); + Object.defineProperty(t2, "mergeWith", { enumerable: true, get: function() { + return ne.mergeWith; + } }); + var re = i2(80142); + Object.defineProperty(t2, "min", { enumerable: true, get: function() { + return re.min; + } }); + var oe = i2(18464); + Object.defineProperty(t2, "multicast", { enumerable: true, get: function() { + return oe.multicast; + } }); + var ae = i2(32071); + Object.defineProperty(t2, "observeOn", { enumerable: true, get: function() { + return ae.observeOn; + } }); + var se = i2(95513); + Object.defineProperty(t2, "onErrorResumeNext", { enumerable: true, get: function() { + return se.onErrorResumeNext; + } }); + var le = i2(26744); + Object.defineProperty(t2, "pairwise", { enumerable: true, get: function() { + return le.pairwise; + } }); + var ue = i2(99516); + Object.defineProperty(t2, "partition", { enumerable: true, get: function() { + return ue.partition; + } }); + var de = i2(66355); + Object.defineProperty(t2, "pluck", { enumerable: true, get: function() { + return de.pluck; + } }); + var ce = i2(53197); + Object.defineProperty(t2, "publish", { enumerable: true, get: function() { + return ce.publish; + } }); + var pe = i2(82955); + Object.defineProperty(t2, "publishBehavior", { enumerable: true, get: function() { + return pe.publishBehavior; + } }); + var _e = i2(26569); + Object.defineProperty(t2, "publishLast", { enumerable: true, get: function() { + return _e.publishLast; + } }); + var he = i2(68710); + Object.defineProperty(t2, "publishReplay", { enumerable: true, get: function() { + return he.publishReplay; + } }); + var me = i2(86081); + Object.defineProperty(t2, "race", { enumerable: true, get: function() { + return me.race; + } }); + var ge = i2(6677); + Object.defineProperty(t2, "raceWith", { enumerable: true, get: function() { + return ge.raceWith; + } }); + var fe = i2(92070); + Object.defineProperty(t2, "reduce", { enumerable: true, get: function() { + return fe.reduce; + } }); + var Te = i2(56131); + Object.defineProperty(t2, "repeat", { enumerable: true, get: function() { + return Te.repeat; + } }); + var ye = i2(82139); + Object.defineProperty(t2, "repeatWhen", { enumerable: true, get: function() { + return ye.repeatWhen; + } }); + var Se = i2(3352); + Object.defineProperty(t2, "retry", { enumerable: true, get: function() { + return Se.retry; + } }); + var Ae = i2(73956); + Object.defineProperty(t2, "retryWhen", { enumerable: true, get: function() { + return Ae.retryWhen; + } }); + var Ne = i2(79224); + Object.defineProperty(t2, "refCount", { enumerable: true, get: function() { + return Ne.refCount; + } }); + var Oe = i2(43434); + Object.defineProperty(t2, "sample", { enumerable: true, get: function() { + return Oe.sample; + } }); + var Ie = i2(44143); + Object.defineProperty(t2, "sampleTime", { enumerable: true, get: function() { + return Ie.sampleTime; + } }); + var ve = i2(35565); + Object.defineProperty(t2, "scan", { enumerable: true, get: function() { + return ve.scan; + } }); + var Ce = i2(73929); + Object.defineProperty(t2, "sequenceEqual", { enumerable: true, get: function() { + return Ce.sequenceEqual; + } }); + var be = i2(93405); + Object.defineProperty(t2, "share", { enumerable: true, get: function() { + return be.share; + } }); + var Ee = i2(17782); + Object.defineProperty(t2, "shareReplay", { enumerable: true, get: function() { + return Ee.shareReplay; + } }); + var Re = i2(55440); + Object.defineProperty(t2, "single", { enumerable: true, get: function() { + return Re.single; + } }); + var we = i2(23079); + Object.defineProperty(t2, "skip", { enumerable: true, get: function() { + return we.skip; + } }); + var De = i2(92359); + Object.defineProperty(t2, "skipLast", { enumerable: true, get: function() { + return De.skipLast; + } }); + var Pe = i2(97783); + Object.defineProperty(t2, "skipUntil", { enumerable: true, get: function() { + return Pe.skipUntil; + } }); + var Me = i2(65774); + Object.defineProperty(t2, "skipWhile", { enumerable: true, get: function() { + return Me.skipWhile; + } }); + var Fe = i2(99054); + Object.defineProperty(t2, "startWith", { enumerable: true, get: function() { + return Fe.startWith; + } }); + var Le = i2(5455); + Object.defineProperty(t2, "subscribeOn", { enumerable: true, get: function() { + return Le.subscribeOn; + } }); + var xe = i2(16201); + Object.defineProperty(t2, "switchAll", { enumerable: true, get: function() { + return xe.switchAll; + } }); + var ke = i2(90680); + Object.defineProperty(t2, "switchMap", { enumerable: true, get: function() { + return ke.switchMap; + } }); + var Ve = i2(761); + Object.defineProperty(t2, "switchMapTo", { enumerable: true, get: function() { + return Ve.switchMapTo; + } }); + var Ue = i2(48461); + Object.defineProperty(t2, "switchScan", { enumerable: true, get: function() { + return Ue.switchScan; + } }); + var Be = i2(54383); + Object.defineProperty(t2, "take", { enumerable: true, get: function() { + return Be.take; + } }); + var Ge = i2(65279); + Object.defineProperty(t2, "takeLast", { enumerable: true, get: function() { + return Ge.takeLast; + } }); + var je = i2(66911); + Object.defineProperty(t2, "takeUntil", { enumerable: true, get: function() { + return je.takeUntil; + } }); + var We = i2(60598); + Object.defineProperty(t2, "takeWhile", { enumerable: true, get: function() { + return We.takeWhile; + } }); + var qe = i2(15019); + Object.defineProperty(t2, "tap", { enumerable: true, get: function() { + return qe.tap; + } }); + var Ye = i2(44880); + Object.defineProperty(t2, "throttle", { enumerable: true, get: function() { + return Ye.throttle; + } }); + var He = i2(7245); + Object.defineProperty(t2, "throttleTime", { enumerable: true, get: function() { + return He.throttleTime; + } }); + var Je = i2(30632); + Object.defineProperty(t2, "throwIfEmpty", { enumerable: true, get: function() { + return Je.throwIfEmpty; + } }); + var ze = i2(32508); + Object.defineProperty(t2, "timeInterval", { enumerable: true, get: function() { + return ze.timeInterval; + } }); + var Ke = i2(81713); + Object.defineProperty(t2, "timeout", { enumerable: true, get: function() { + return Ke.timeout; + } }); + var $e = i2(50597); + Object.defineProperty(t2, "timeoutWith", { enumerable: true, get: function() { + return $e.timeoutWith; + } }); + var Qe = i2(53866); + Object.defineProperty(t2, "timestamp", { enumerable: true, get: function() { + return Qe.timestamp; + } }); + var Xe = i2(73484); + Object.defineProperty(t2, "toArray", { enumerable: true, get: function() { + return Xe.toArray; + } }); + var Ze = i2(78072); + Object.defineProperty(t2, "window", { enumerable: true, get: function() { + return Ze.window; + } }); + var et = i2(62893); + Object.defineProperty(t2, "windowCount", { enumerable: true, get: function() { + return et.windowCount; + } }); + var tt = i2(90037); + Object.defineProperty(t2, "windowTime", { enumerable: true, get: function() { + return tt.windowTime; + } }); + var it = i2(28996); + Object.defineProperty(t2, "windowToggle", { enumerable: true, get: function() { + return it.windowToggle; + } }); + var nt = i2(65156); + Object.defineProperty(t2, "windowWhen", { enumerable: true, get: function() { + return nt.windowWhen; + } }); + var rt = i2(66975); + Object.defineProperty(t2, "withLatestFrom", { enumerable: true, get: function() { + return rt.withLatestFrom; + } }); + var ot = i2(26749); + Object.defineProperty(t2, "zip", { enumerable: true, get: function() { + return ot.zip; + } }); + var at = i2(5362); + Object.defineProperty(t2, "zipAll", { enumerable: true, get: function() { + return at.zipAll; + } }); + var st = i2(36977); + Object.defineProperty(t2, "zipWith", { enumerable: true, get: function() { + return st.zipWith; + } }); + }, 92825: (e2, t2, i2) => { + const n2 = i2(13240), r2 = i2(7401), { setSkillsActionType: o } = i2(30801); + function a() { + Object.defineProperties(this, { _acdSkills: { writable: true }, _languageSkill: { writable: true } }), a.baseConstructor.apply(this, arguments); + } + n2.extend(a, o, true), Object.defineProperties(a.prototype, { pasteResolveOldToNewValues: { value: function(e3) { + a._super.pasteResolveOldToNewValues.apply(this, arguments), this.acdSkills.pasteResolveOldToNewValues(e3), this.languageSkill.pasteResolveOldToNewValues(e3); + } }, pasteReIdOrRename: { value: function(e3) { + a._super.pasteReIdOrRename.apply(this, arguments), this.acdSkills.pasteReIdOrRename(e3), this.languageSkill.pasteReIdOrRename(e3); + } }, acdSkills: { enumerable: true, get: function() { + return this._acdSkills; + }, set: function(e3) { + this._acdSkills = this.reviveItem(e3, r2); + } }, languageSkill: { enumerable: true, get: function() { + return this._languageSkill; + }, set: function(e3) { + this._languageSkill = this.reviveItem(e3, r2); + } } }), e2.exports = a; + }, 92859: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(92140)), r2 = i2(55299); + class o extends r2.BaseClass { + get className() { + return "TraverseSettings"; + } + constructor(e3) { + super(), this.isCanceled = false, e3 && n2.default.extend(this, e3); + } + createCallbackParam(e3) { + const t3 = { cancelTraverse: false, data: this.data }; + return e3 && (t3.traverseChildren = true), t3; + } + getActionCallback() { + return this.actionCallback ? this.actionCallback : this.defaultCallback; + } + getMenuCallback() { + return this.menuCallback ? this.menuCallback : this.defaultCallback; + } + getMenuChoiceCallback() { + return this.menuChoiceCallback ? this.menuChoiceCallback : this.defaultCallback; + } + getTaskCallback() { + return this.taskCallback ? this.taskCallback : this.defaultCallback; + } + processCallbackParamAndContinue(e3, t3) { + return !(e3 && (e3.cancelTraverse && (this.isCanceled = true), t3 && !e3.traverseChildren || this.isCanceled)); + } + } + t2.default = o; + }, 92908: (e2, t2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.uiMetaDataKey = void 0, t2.uiMetaDataKey = { builder: "builder", builderVariableFormattingOptions: "builderVariableFormattingOptions", cameFromNull: "cameFromNull", isJsonViewMode: "isJsonViewMode", customJsonSubFieldModes: "customJsonSubFieldModes", litLanguage: "litLanguage", mode: "mode", nestedJson: "nestedJson" }; + }, 92944: (e2) => { + e2.exports = { tasks: "tasks", states: "states" }; + }, 92993: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(81574)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "externalFacebookId"; + } + get scopedId() { + } + get displayTypeName() { + return "ArchValueExternalFacebookId"; + } + get isArchValueExternalFacebookId() { + return true; + } + } + t2.default = r2; + }, 93078: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(8471)); + class r2 extends n2.default { + static create(e3, t3, i3) { + return new r2(e3, t3, i3); + } + constructor(e3, t3, i3) { + super(), this._checkItemIsArchBaseObject(this._infoParmCtor("matchArchBaseCoreObject"), e3), this._checkItemIsArchTraverseContext(this._infoParmCtor("archTraverseContext"), t3), this._checkItemIsArchTraverseSettings(this._infoParmCtor("archTraverseSettings"), i3), this._matchArchBaseCoreObject = e3, this._traverseContext = t3, this._traverseSettings = i3; + } + get matchObject() { + return this._matchArchBaseCoreObject; + } + get displayTypeName() { + return "ArchTraverseInfo"; + } + get isArchCallbackTraverseInfo() { + return true; + } + get logStr() { + const e3 = []; + return this._appendLogStrType(e3, this.displayTypeName), this._createLogStrFromParts(e3); + } + get context() { + return this._traverseContext; + } + get settings() { + return this._traverseSettings; + } + } + t2.default = r2; + }, 93087: (e2, t2, i2) => { + "use strict"; + const n2 = i2(31635), r2 = n2.__importDefault(i2(27203)), o = n2.__importStar(i2(10798)), a = n2.__importDefault(i2(4648)), s = i2(12179), l = n2.__importDefault(i2(97891)), u = i2(87870), d = n2.__importDefault(i2(5730)), c = i2(47957); + class p extends d.default { + static get managedProperties() { + return [{ createDetails: u.NoteActionProperty.createCreateDetails(p.voicemailInputInfoMessage, "info", "processVoicemailInput"), property: "processVoicemailInputInfoMessage" }]; + } + constructor(e3, t3) { + super(e3.parentFlow, e3), this._loadModel(t3); + } + static get voicemailInputInfoMessage() { + return o.isFeatureAvailable(a.default.voicemailRecordingMaxTime) ? c.processVoicemailInput.processVoicemailInputInfoMessageWithMaxRecordingTime : c.processVoicemailInput.processVoicemailInputInfoMessage; + } + static get branchInfo() { + return r2.default.faxProcessedVoicemailNoInputFailure; + } + } + p.info = l.default.createActionInfo({ actionClass: p, canBeInTask: true, helpTopic: s.helpTopics.actions.processVoicemailInput, modelClass: i2(13462), name: c.actions.processVoicemailInput, scriptingName: "ArchActionProcessVoicemailInput" }), t2.A = p; + }, 93105: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.DigitalAudioType = void 0; + const n2 = i2(31635), r2 = i2(66800), o = i2(27491), a = i2(94765), s = i2(29017), l = i2(80428), u = n2.__importDefault(i2(4648)), d = i2(14394), c = i2(10798), p = i2(22226); + class _ extends a.ExpressionType { + constructor(e3, t3, i3) { + super(e3, t3, i3); + } + get className() { + return "DigitalAudioType"; + } + canConvertLitToExpression(e3) { + return o.expressionDataService.isFunctionTextAvailableForFlowTypeAndOperandTypes("ToDigitalAudio", e3, [d.globalTypes.responseAsset, d.globalTypes.digitalAudio]) && o.expressionDataService.isFunctionTextAvailableForFlowTypeAndOperandTypes("FindResponseAsset", e3, [d.globalTypes.string]); + } + convertLitToExpression(e3, t3) { + return t3 && this.canConvertLitToExpression(e3) ? `ToDigitalAudio(FindResponseAsset(${p.getQuotedExpressionStringLiteral(t3)}), NOT_SET)` : ""; + } + _getLiteralValueOfExpression() { + return ""; + } + get supportsLiteralEditor() { + return (0, c.isFeatureAvailable)(u.default.cannedResponseAttachmentsPostGaFeature); + } + get listManager() { + return r2.digitalAudioManager; + } + createExpressionOptionClass() { + return new s.ExpressionTypeDigitalAudioOptions(); + } + } + t2.DigitalAudioType = _, _.typeIdentifier = l.expressionTypeNames.digitalAudio; + }, 93161: (e2, t2, i2) => { + const n2 = i2(36370), r2 = i2(65029); + function o() { + o.baseConstructor.apply(this, arguments); + } + n2.extend(o, "BriefFlowEntityList"), Object.defineProperties(o.prototype, { entities: { enumerable: true, get: function() { + return this._entities; + }, set: function(e3) { + this._entities = this.reviveArray(e3, r2); + } } }), e2.exports = o; + }, 93213: (e2, t2, i2) => { + "use strict"; + const n2 = i2(31635), r2 = i2(96618), o = i2(12179), a = n2.__importDefault(i2(5730)), s = n2.__importDefault(i2(27203)), l = n2.__importDefault(i2(73198)), u = n2.__importDefault(i2(97891)), d = i2(78513), c = i2(80428), p = i2(47957); + class _ extends a.default { + static get managedProperties() { + return [{ label: p.setPriority.setPriorityLabel, options: d.ExpressionTypeIntegerOptions.create((e3) => e3.setAsInput().setIninTestingField("priority").setIsOptional(false).setDefaultText("0").setDescriptionInfo(p.setPriority.setPriorityLabel, p.setPriority.setPriorityDescription).facets.setMaxInt(l.default.maxConversationPriority, true).setMinInt(l.default.minConversationPriority, true)), optionsForSpecificFlowTypes: [{ flowTypes: [r2.flowTypes.flowTypeWorkitem], options: d.ExpressionTypeIntegerOptions.create((e3) => e3.setAsInput().setIninTestingField("priority").setIsOptional(false).setDefaultText("0").setDescriptionInfo(p.setPriority.setPriorityLabel, p.setPriority.setPriorityDescriptionWorkitemFlow).facets.setMaxInt(l.default.maxConversationPriority, true).setMinInt(l.default.minConversationPriority, true)) }], property: "priority", type: c.expressionTypeNames.integer }]; + } + constructor(e3, t3) { + super(e3.parentFlow, e3), this._loadModel(t3); + } + static get branchInfo() { + return s.default.successFailure; + } + } + _.info = u.default.createActionInfo({ actionClass: _, canBeInTask: true, helpTopic: o.helpTopics.actions.setPriority, modelClass: i2(371), name: p.actions.setPriority, scriptingName: "ArchActionSetPriority" }), t2.A = _; + }, 93218: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(81574)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "emailAttachment"; + } + get id() { + } + get contentLength() { + } + get contentType() { + } + get contentUri() { + } + get name() { + } + get displayTypeName() { + return "ArchValueEmailAttachment"; + } + get isArchValueEmailAttachment() { + return true; + } + } + t2.default = r2; + }, 93229: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(74369)); + class r2 extends n2.default { + constructor(e3, t3, i3) { + super(e3, t3, i3); + } + get displayTypeName() { + return "ArchFilterClausePropertyValueEquals"; + } + get isArchFilterClausePropertyValueEquals() { + return true; + } + _isMatch(e3) { + return !!super._isMatch(e3) && e3[this._propertyName] === this._value; + } + } + t2.default = r2; + }, 93260: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importDefault(i2(94225)), o = i2(30163), a = n2.__importDefault(i2(45894)); + class s extends a.default { + constructor(e3) { + super(e3, o.userManager); + } + get _globalTypeName() { + return "userQueue"; + } + get displayTypeName() { + return "ArchValueUser"; + } + get _searchByValueSearchProperty() { + return "username"; + } + get isArchValueUser() { + return true; + } + setLiteralByUserIdAsync(e3, t3) { + return n2.__awaiter(this, void 0, void 0, function* () { + return this._checkItemIsValidLiteralString(this._infoParm("userId", "setLiteralByUserIdAsync"), e3), this._checkItemIsValidFunction(this._infoParm("callbackFunction", "setLiteralByUserIdAsync"), t3, true), this._setLiteralByIdAsync(e3).then(() => r2.default.executeCallback(this, "setLiteralByUserIdAsync", t3, this)); + }); + } + setLiteralByUserNameAsync(e3, t3) { + return n2.__awaiter(this, void 0, void 0, function* () { + return this._checkItemIsValidLiteralString(this._infoParm("userName", "setLiteralByUserNameAsync"), e3), this._checkItemIsValidFunction(this._infoParm("callbackFunction", "setLiteralByUserNameAsync"), t3, true), this._setLiteralByValueAsync(e3).then(() => r2.default.executeCallback(this, "setLiteralByUserNameAsync", t3, this)); + }); + } + } + t2.default = s; + }, 93275: (e2, t2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.dateTimestampProvider = void 0, t2.dateTimestampProvider = { now: function() { + return (t2.dateTimestampProvider.delegate || Date).now(); + }, delegate: void 0 }; + }, 93348: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importDefault(i2(94225)), o = i2(81467), a = n2.__importDefault(i2(45894)); + class s extends a.default { + constructor(e3) { + super(e3, o.languageSkillManager); + } + get _globalTypeName() { + return "languageSkill"; + } + get displayTypeName() { + return "ArchValueLanguageSkill"; + } + get isArchValueLanguageSkill() { + return true; + } + setLiteralByLanguageSkillIdAsync(e3, t3) { + return n2.__awaiter(this, void 0, void 0, function* () { + return this._checkItemIsValidLiteralString(this._infoParm("languageSkillId", "setLiteralByLanguageSkillIdAsync"), e3), this._checkItemIsValidFunction(this._infoParm("callbackFunction", "setLiteralByLanguageSkillIdAsync"), t3, true), this._setLiteralByIdAsync(e3).then(() => r2.default.executeCallback(this, "setLiteralByLanguageSkillIdAsync", t3, this)); + }); + } + setLiteralByLanguageSkillNameAsync(e3, t3) { + return n2.__awaiter(this, void 0, void 0, function* () { + return this._checkItemIsValidLiteralString(this._infoParm("languageSkillName", "setLiteralByLanguageSkillNameAsync"), e3), this._checkItemIsValidFunction(this._infoParm("callbackFunction", "setLiteralByLanguageSkillNameAsync"), t3, true), this._setLiteralByValueAsync(e3).then(() => r2.default.executeCallback(this, "setLiteralByLanguageSkillNameAsync", t3, this)); + }); + } + } + t2.default = s; + }, 93405: function(e2, t2, i2) { + "use strict"; + var n2 = this && this.__read || function(e3, t3) { + var i3 = "function" == typeof Symbol && e3[Symbol.iterator]; + if (!i3) return e3; + var n3, r3, o2 = i3.call(e3), a2 = []; + try { + for (; (void 0 === t3 || t3-- > 0) && !(n3 = o2.next()).done; ) a2.push(n3.value); + } catch (e4) { + r3 = { error: e4 }; + } finally { + try { + n3 && !n3.done && (i3 = o2.return) && i3.call(o2); + } finally { + if (r3) throw r3.error; + } + } + return a2; + }, r2 = this && this.__spreadArray || function(e3, t3) { + for (var i3 = 0, n3 = t3.length, r3 = e3.length; i3 < n3; i3++, r3++) e3[r3] = t3[i3]; + return e3; + }; + Object.defineProperty(t2, "__esModule", { value: true }), t2.share = void 0; + var o = i2(19724), a = i2(76808), s = i2(2708), l = i2(65212); + function u(e3, t3) { + for (var i3 = [], a2 = 2; a2 < arguments.length; a2++) i3[a2 - 2] = arguments[a2]; + if (true !== t3) { + if (false !== t3) { + var l2 = new s.SafeSubscriber({ next: function() { + l2.unsubscribe(), e3(); + } }); + return o.innerFrom(t3.apply(void 0, r2([], n2(i3)))).subscribe(l2); + } + } else e3(); + } + t2.share = function(e3) { + void 0 === e3 && (e3 = {}); + var t3 = e3.connector, i3 = void 0 === t3 ? function() { + return new a.Subject(); + } : t3, n3 = e3.resetOnError, r3 = void 0 === n3 || n3, d = e3.resetOnComplete, c = void 0 === d || d, p = e3.resetOnRefCountZero, _ = void 0 === p || p; + return function(e4) { + var t4, n4, a2, d2 = 0, p2 = false, h = false, m = function() { + null == n4 || n4.unsubscribe(), n4 = void 0; + }, g = function() { + m(), t4 = a2 = void 0, p2 = h = false; + }, f = function() { + var e5 = t4; + g(), null == e5 || e5.unsubscribe(); + }; + return l.operate(function(e5, l2) { + d2++, h || p2 || m(); + var T = a2 = null != a2 ? a2 : i3(); + l2.add(function() { + 0 !== --d2 || h || p2 || (n4 = u(f, _)); + }), T.subscribe(l2), !t4 && d2 > 0 && (t4 = new s.SafeSubscriber({ next: function(e6) { + return T.next(e6); + }, error: function(e6) { + h = true, m(), n4 = u(g, r3, e6), T.error(e6); + }, complete: function() { + p2 = true, m(), n4 = u(g, c), T.complete(); + } }), o.innerFrom(e5).subscribe(t4)); + })(e4); + }; + }; + }, 93421: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(81574)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "journeyOutcomeScore"; + } + get id() { + } + get probability() { + } + get sessionMaxProbability() { + } + get displayTypeName() { + return "ArchValueJourneyOutcomeScore"; + } + get isArchValueJourneyOutcomeScore() { + return true; + } + } + t2.default = r2; + }, 93443: (e2, t2, i2) => { + const n2 = i2(13240), { submitVoicemailSnippetActionType: r2 } = i2(30801); + function o() { + o.baseConstructor.apply(this, arguments); + } + n2.extend(o, r2, true), Object.defineProperties(o.prototype, { pasteResolveOldToNewValues: { value: function(e3) { + o._super.pasteResolveOldToNewValues.apply(this, arguments); + } }, pasteReIdOrRename: { value: function(e3) { + o._super.pasteReIdOrRename.apply(this, arguments); + } } }), e2.exports = o; + }, 93476: (e2, t2, i2) => { + function n2() { + this.nextActionId = void 0, this.disabled = void 0, this.isDynamicBranch = void 0, this.unreachable = void 0, this.outOfService = void 0, n2.baseConstructor.apply(this, arguments); + } + i2(57632).extend(n2, "ActionOutput"), Object.defineProperties(n2.prototype, { pasteResolveOldToNewValues: { value: function(e3) { + n2._super.pasteResolveOldToNewValues.apply(this, arguments), this.nextActionId = e3.pasteResolveOldIdToNewId(this.nextActionId); + } }, pasteReIdOrRename: { value: function(e3) { + n2._super.pasteReIdOrRename.apply(this, arguments); + } } }), e2.exports = n2; + }, 93500: (e2) => { + e2.exports = { askCommon: { invalidInputReceived: "\u8F93\u5165\u65E0\u6548\u3002", noInputReceived: "\u6211\u6CA1\u6709\u6536\u5230\u4EFB\u4F55\u8F93\u5165\u3002" }, askForBoolean: { noInput: '\u5982\u679C\u60F3\u7EE7\u7EED\uFF0C\u8BF7\u8BF4"\u662F"\uFF1B\u5426\u5219\u8BF7\u8BF4"\u5426"\u3002', noMatch: '\u8BF7\u8BF4 "\u662F" \u6216 "\u5426"\u3002\u662F\u5426\u8981\u7EE7\u7EED\uFF1F', question: "\u662F\u5426\u8981\u7EE7\u7EED\uFF1F", noInputDigitalBot: '\u5982\u679C\u60F3\u7EE7\u7EED\uFF0C\u8BF7\u8F93\u5165"\u662F"\uFF1B\u5426\u5219\u8BF7\u8F93\u5165"\u5426"\u3002', noMatchDigitalBot: '\u8BF7\u8F93\u5165"\u662F"\u6216"\u5426"\u3002\u662F\u5426\u8981\u7EE7\u7EED\uFF1F' }, askForIntent: { noInput: '\u53EA\u9700\u7528\u4E00\u4E2A\u7B80\u77ED\u7684\u53E5\u5B50\u6765\u63CF\u8FF0\u60A8\u7684\u95EE\u9898\u3002\u4F8B\u5982\uFF0C"\u67E5\u770B\u6211\u7684\u8D26\u6237\u4F59\u989D"', noMatch: "\u8BF7\u518D\u6B21\u544A\u8BC9\u6211\u60A8\u60F3\u505A\u4EC0\u4E48\u3002", question: "\u60A8\u5E0C\u671B\u505A\u4EC0\u4E48\uFF1F", noInputDigitalBot: '\u8BF7\u8F93\u5165\u4E00\u4E2A\u7B80\u77ED\u7684\u53E5\u5B50\u6765\u63CF\u8FF0\u60A8\u7684\u95EE\u9898\u3002\u4F8B\u5982\uFF0C"\u67E5\u770B\u6211\u7684\u8D26\u6237\u4F59\u989D"' }, askForSlot: { askFor: "\u9700\u8981 %1$s", noInput: "\u8BF7\u8BF4\u51FA\u6216\u8F93\u5165\uFF08\u8BF7\u5728\u6B64\u5904\u8F93\u5165\u60A8\u7684\u63D2\u69FD\u540D\u79F0\uFF09\u3002", noInputWithSlot: "\u8BF7\u8BF4\u51FA\u6216\u8F93\u5165 %1$s\u3002", noMatch: "\u8BF7\u518D\u6B21\u5C06\uFF08\u8BF7\u5728\u6B64\u5904\u8F93\u5165\u60A8\u7684\u63D2\u69FD\u540D\u79F0\uFF09\u63D0\u4F9B\u7ED9\u6211\u3002", noMatchWithSlot: "\u8BF7\u518D\u6B21\u5C06 %1$s \u63D0\u4F9B\u7ED9\u6211\u3002", question: "\uFF08\u8BF7\u5728\u6B64\u5904\u8F93\u5165\u60A8\u7684\u63D2\u69FD\u540D\u79F0\uFF09\u662F\u4EC0\u4E48\uFF1F", questionWithSlot: "\u4EC0\u4E48\u662F %1$s\uFF1F", pleaseEnterSlotNameHere: "\uFF08\u8BF7\u5728\u6B64\u5904\u8F93\u5165\u60A8\u7684\u63D2\u69FD\u540D\u79F0\uFF09", noInputDigitalBot: "\u8BF7\u8F93\u5165\uFF08\u8BF7\u5728\u6B64\u5904\u8F93\u5165\u60A8\u7684\u63D2\u69FD\u540D\u79F0\uFF09\u3002", noInputWithSlotDigitalBot: "\u8BF7\u8F93\u5165 %1$s\u3002", continuationPromptWithSlot: "\u76EE\u524D\u6211\u5DF2\u6536\u5230\u4E86 {{Slot.%1$s}}\uFF0C\u8BF7\u7EE7\u7EED\u3002" }, askForNextSlot: { noInput: '\u5982\u679C\u6709\u5176\u4ED6\u95EE\u9898\uFF0C\u8BF7\u8BF4"\u662F"\uFF1B\u5982\u679C\u60F3\u7ED3\u675F\u901A\u8BDD\uFF0C\u8BF7\u8BF4"\u5426"\u3002', noMatch: '\u5982\u679C\u6709\u5176\u4ED6\u95EE\u9898\uFF0C\u8BF7\u8BF4 "\u662F"\uFF0C\u5982\u679C\u60F3\u7ED3\u675F\u4F1A\u8BDD\uFF0C\u8BF7\u8BF4 "\u5426" \u3002', question: "\u8FD8\u6709\u4EC0\u4E48\u9700\u8981\u6211\u5E2E\u52A9\u7684\u5417\uFF1F", noInputDigitalBot: '\u5982\u679C\u6709\u5176\u4ED6\u95EE\u9898\uFF0C\u8BF7\u8F93\u5165"\u662F"\uFF0C\u5982\u679C\u60F3\u7ED3\u675F\u4F1A\u8BDD\uFF0C\u8BF7\u8F93\u5165"\u5426"\u3002', noMatchDigitalBot: '\u5982\u679C\u6709\u5176\u4ED6\u95EE\u9898\uFF0C\u8BF7\u8F93\u5165"\u662F"\uFF0C\u5982\u679C\u60F3\u7ED3\u675F\u4F1A\u8BDD\uFF0C\u8BF7\u8F93\u5165"\u5426"\u3002' }, askForPayment: { noInputDigitalBot: "\u8BF7\u63D0\u4F9B\u4ED8\u6B3E\u4FE1\u606F\u4EE5\u7EE7\u7EED\u3002", noMatchDigitalBot: "\u6211\u4E0D\u7406\u89E3\u60A8\u7684\u56DE\u590D\u3002\u8BF7\u91CD\u8BD5\u3002" }, askForAuthentication: { noInputDigitalBot: "\u8BF7\u63D0\u4F9B\u60A8\u7684\u8BA4\u8BC1\u4FE1\u606F\u4EE5\u7EE7\u7EED\u3002", noMatchDigitalBot: "\u6211\u4E0D\u7406\u89E3\u60A8\u7684\u56DE\u590D\u3002\u8BF7\u91CD\u8BD5\u3002" }, askSurveyQuestion: { notApplicable: "\u4E0D\u9002\u7528", surveyAnswerOptionSequence: "\u6309 %1$s \u4EE5\u83B7\u53D6 '%2$s'\u3002", surveyAnswerNotApplicableSequence: "\u6309\u4E0B\u661F\u53F7\u952E\u8868\u793A\u4E0D\u9002\u7528\u3002", surveyAnswerNotApplicableWithQuestionSequence: "%1$s\u3002\u6309\u4E0B\u661F\u53F7\u952E\u8868\u793A\u4E0D\u9002\u7528\u3002", voiceSurveyNoInputText: "\u8BF7\u56DE\u7B54\u95EE\u9898\u3002", voiceSurveyNoMatchText: "\u6211\u4E0D\u660E\u767D\u60A8\u7684\u610F\u601D\u3002" }, commonModule: { exitCommonModule: "\u9000\u51FA\u901A\u7528\u6A21\u5757" }, form: { noInputDigitalBot: "\u8BF7\u5B8C\u6210\u8868\u5355\u4EE5\u7EE7\u7EED\u3002", noMatchDigitalBot: "\u8BF7\u5B8C\u6210\u8868\u5355\u4EE5\u7EE7\u7EED\u3002" }, messagingTemplate: { noInputDigitalBot: "\u8BF7\u9009\u62E9\u53EF\u7528\u9009\u9879\u7684\u5176\u4E2D\u4E4B\u4E00\u3002", noMatchDigitalBot: "\u8BF7\u9009\u62E9\u53EF\u7528\u9009\u9879\u7684\u5176\u4E2D\u4E4B\u4E00\u3002" }, knowledgeSettings: { knowledgeAnswerHighlightFlowProgressionDefault: "\u7EE7\u7EED", knowledgeAnswerHighlightFullArticleDefault: "\u67E5\u770B\u5B8C\u6574\u6587\u7AE0", knowledgeInitialResponseMulti: "\u4E3A\u4E86\u5E2E\u52A9\u6211\u7406\u89E3\u60A8\u7684\u76EE\u7684\uFF0C\u8BF7\u4ECE\u4EE5\u4E0B\u5217\u8868\u4E2D\u9009\u62E9\u4E00\u4E2A\u6570\u5B57\uFF1A", knowledgeInitialResponseMultiRetry: "\u8BF7\u9009\u62E9\u4E00\u4E2A\u6570\u5B57\uFF0C\u4F8B\u5982\u201C1\u201D\u3002\n\u6211\u5C06\u518D\u6B21\u63D0\u4F9B\u9009\u9879\u5217\u8868\uFF1A", knowledgeNoMatch: "\u4EE5\u4E0A\u90FD\u4E0D\u662F", knowledgeConfirmation: "\u8FD9\u662F\u5426\u56DE\u7B54\u4E86\u60A8\u7684\u95EE\u9898\uFF1F", knowledgeFollowup: "\u5E0C\u671B\u6211\u56DE\u7B54\u4E86\u60A8\u7684\u95EE\u9898\u3002\u60A8\u53EF\u4EE5\u63D0\u51FA\u4EFB\u4F55\u60A8\u60F3\u8981\u77E5\u9053\u7684\u95EE\u9898\u3002" }, noOverlay: { intent: { intentConfirmationStr1: "\u6211\u60F3\u60A8\u662F\u60F3", intentConfirmationStr2: "\u5BF9\u5417\uFF1F" }, youSaid: { youSaidConfirmationStr1: "\u60A8\u8BF4", youSaidConfirmationStr2: "\u5BF9\u5417\uFF1F", youSaidConfirmationStr1DigitalBot: "\u60A8\u8F93\u5165\u4E86" }, noInput: { noInputStr1: "\u8BF7\u8BF4\u51FA\u6216\u8F93\u5165", noInputStr1DigitalBot: "\u8BF7\u8F93\u5165" }, noMatch: { noMatchStr1: "\u8BF7\u544A\u8BC9\u6211" }, whatIs: { whatIsQuestionStr1: "\u4EC0\u4E48\u662F", whatIsQuestionStr2: "?" }, iGotContinuation: { iGotContinuationStr1: "\u6211\u6536\u5230\u4E86", iGotContinuationStr2: "\u8BF7\u7EE7\u7EED\u3002" } }, defaultCallFlowOne: "\u9ED8\u8BA4\u547C\u53EB\u6D41\u7A0B", errorHandlingAgentEscalationConfirmation: "\u60A8\u60F3\u4E0E\u987E\u95EE\u4EA4\u8C08\u3002\u5BF9\u5417\uFF1F", errorHandlingAgentEscalationHandover: "\u8BF7\u7A0D\u7B49\u7247\u523B\uFF0C\u6211\u4F1A\u4E3A\u60A8\u8F6C\u63A5\u5176\u4ED6\u4EBA\u3002", errorHandlingErrorEventHandover: "\u62B1\u6B49\uFF0C\u51FA\u9519\u4E86\u3002\u8BF7\u7A0D\u7B49\u7247\u523B\uFF0C\u6211\u4F1A\u4E3A\u60A8\u8F6C\u63A5\u53EF\u4EE5\u5E2E\u52A9\u60A8\u7684\u5176\u4ED6\u4EBA\u3002", errorHandlingErrorEventHandoverVoiceSurvey: "\u975E\u5E38\u62B1\u6B49\uFF0C\u51FA\u9519\u4E86\u3002\u6211\u4EEC\u4E0B\u6B21\u89C1\u3002", errorHandlingRecognitionEventHandover: "\u62B1\u6B49\uFF0C\u51FA\u9519\u4E86\u3002\u8BF7\u7A0D\u7B49\u7247\u523B\uFF0C\u6211\u4F1A\u4E3A\u60A8\u8F6C\u63A5\u53EF\u4EE5\u5E2E\u52A9\u60A8\u7684\u5176\u4ED6\u4EBA\u3002", errorHandlingRecognitionEventHandoverVoiceSurvey: "\u975E\u5E38\u62B1\u6B49\uFF0C\u6211\u4E0D\u660E\u767D\u60A8\u7684\u610F\u601D\u3002\u6211\u4EEC\u4E0B\u6B21\u89C1\u3002", errorHandlingTTS: "\u62B1\u6B49\uFF0C\u51FA\u9519\u4E86\u3002\u8BF7\u518D\u6B21\u5C1D\u8BD5\u62E8\u6253\u3002", initialGreetingTTS: "\u60A8\u597D\uFF0C\u8BF7\u63A5\u6536\u6211\u8BDA\u631A\u7684\u95EE\u5019\u3002", initialState: "\u521D\u59CB\u72B6\u6001", initialBotState: "\u9ED8\u8BA4 Bot", initialDigitalBotState: "\u521D\u59CB\u95EE\u5019", initialSurveyBotState: "\u8C03\u67E5 Bot", intentConfirmation: "\u6211\u60F3\u60A8\u662F\u8981 %1$s\uFF0C\u5BF9\u5417\uFF1F", mainMenu: "\u4E3B\u83DC\u5355", mainMenuTTS: "\u60A8\u76EE\u524D\u4F4D\u4E8E\u4E3B\u83DC\u5355\uFF0C\u6309 9 \u5C06\u65AD\u5F00\u8FDE\u63A5", mainTask: "\u4EFB\u52A1", settingsConfirmationNoInputApology: "\u62B1\u6B49\uFF0C\u6211\u6CA1\u6709\u542C\u5230\u60A8\u7684\u58F0\u97F3\u3002\u8BF7\u8BF4\u201C\u662F\u201D\u6216\u201C\u5426\u201D\u3002", settingsConfirmationNoInputApologyDigitalBot: '\u62B1\u6B49\uFF0C\u6211\u6CA1\u6709\u6536\u5230\u60A8\u7684\u4EFB\u4F55\u8F93\u5165\u3002\u8BF7\u8F93\u5165"\u662F"\u6216"\u5426"\u3002', settingsConfirmationNoMatchApology: "\u62B1\u6B49\uFF0C\u8BF7\u8BF4\u201C\u662F\u201D\u6216\u201C\u5426\u201D\u3002", settingsConfirmationNoMatchApologyDigitalBot: '\u62B1\u6B49\uFF0C\u8BF7\u8F93\u5165"\u662F"\u6216"\u5426"\u3002', settingsNoInputApology: "\u62B1\u6B49\uFF0C\u6211\u6CA1\u6709\u542C\u5230\u60A8\u7684\u58F0\u97F3\u3002", settingsNoInputApologyDigitalBot: "\u62B1\u6B49\uFF0C\u6211\u6CA1\u6709\u6536\u5230\u60A8\u7684\u4EFB\u4F55\u8F93\u5165\u3002", settingsEndOfSessionMessageDigitalBot: "\u5F88\u957F\u65F6\u95F4\u6CA1\u6709\u6536\u5230\u60A8\u7684\u6D88\u606F\uFF0C\u6240\u4EE5\u6211\u5C06\u7ED3\u675F\u672C\u6B21\u804A\u5929\u3002\u5982\u679C\u60A8\u8FD8\u9700\u8981\u6211\u7684\u5E2E\u52A9\uFF0C\u8BF7\u518D\u6B21\u8054\u7CFB\u3002\u611F\u8C22\u7406\u89E3\uFF01", settingsNoMatchApology: "\u62B1\u6B49\u3002", settingsNoToConfirmationApology: "\u8FD9\u662F\u6211\u7684\u9519\u3002", periodicStateName: "\u91CD\u590D\u72B6\u6001" }; + }, 93523: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(19047)); + class r2 extends n2.default { + constructor(e3) { + super(e3), this._findId = this.coreFactory.createArchWrapper(e3.findId); + } + get displayTypeName() { + return "ArchBaseActionFindSystemObjectById"; + } + get isArchBaseActionFindSystemObjectById() { + return true; + } + get findId() { + return this._findId; + } + } + t2.default = r2; + }, 93555: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(55299); + class r2 extends n2.BaseClass { + constructor(e3, t3, i3, n3, r3, o, a) { + super(), this.text = e3, this.flowElementId = t3, this.priority = i3 || 0, this.item = n3, this.displayName = r3, this.guxIcon = o, this.jumpToItem = a; + } + get className() { + return "ValidationIssue"; + } + getNodeToShow() { + return this.jumpToItem || this.item; + } + } + t2.default = r2; + }, 93619: (e2, t2, i2) => { + "use strict"; + const n2 = i2(31635), r2 = i2(96618), o = i2(17604), a = n2.__importDefault(i2(73198)), s = n2.__importStar(i2(63824)), l = i2(79467), u = i2(81516), d = i2(99469), c = n2.__importDefault(i2(27203)), p = i2(30888), _ = i2(55420), h = n2.__importStar(i2(10798)), m = n2.__importStar(i2(34475)), g = n2.__importDefault(i2(4648)), f = i2(12179), T = n2.__importDefault(i2(97891)), y = i2(28803), S = n2.__importDefault(i2(88391)), A = i2(80428), N = i2(94384), O = i2(47957), I = [(0, o.sprintf)(O.dialogEngine.terminationStateDescription, "AgentEscalation", O.generic.branches.noIntent), (0, o.sprintf)(O.dialogEngine.terminationStateDescription, "Error", O.generic.branches.failure), (0, o.sprintf)(O.dialogEngine.terminationStateDescription, "Expired", O.generic.branches.failure), (0, o.sprintf)(O.dialogEngine.terminationStateDescription, "Failure", O.generic.branches.failure), (0, o.sprintf)(O.dialogEngine.terminationStateDescriptionIntentOutput, "GoalReached")]; + class v extends S.default { + constructor(e3, t3) { + super(e3, t3); + } + get botRunnableProperty() { + return this.botVersion; + } + get botCategoryProperty() { + return this.bot; + } + static get branchInfo() { + return [c.default.noIntent, c.default.failure]; + } + getDependencyTrackingId() { + if (!this.botRunnableProperty.idValue) return null; + let e3; + const t3 = this.botRunnableManager.getItem(this.botRunnableProperty.idValue); + return t3 && t3.dependencyTrackingId ? e3 = t3.dependencyTrackingId : t3 && !t3.dependencyTrackingId && console.error("botRunnable has no dependencyTrackingId"), !e3 && this.botCategoryProperty.idValue && (e3 = this.botCategoryProperty.idValue + "/" + this.botRunnableProperty.idValue), e3; + } + get botRunnableNetworkGetCall() { + return N.getVersion; + } + get isDialogEngineAction() { + return true; + } + get hasAutoSelectedBotRunnable() { + return true; + } + get linkButtonInfo() { + return { text: O.dialogEngine.openDialogEngineUI, url: m.getDialogEngineWorkbenchUrl() }; + } + static get managedProperties() { + return [{ dataList: true, isOutput: true, property: "errorBindings", yamlOptions: v.createYamlOptions("errorBindings", (e3) => e3.setPropertyName("failureOutputs")) }, { createDetails: y.NetworkBasedActionProperty.createCreateDetails("botId", "botName", p.dialogEngineBotManager, O.dialogEngine.mustSelectBot, O.dialogEngine.botNotFound, null), property: "bot", yamlOptions: v.createYamlOptions("bot", (e3) => e3.setSkipProperty(true)) }, { createDetails: y.NetworkBasedActionProperty.createCreateDetails("versionId", "versionName", _.dialogEngineVersionManager, O.bot.informationCouldNotBeLoaded, O.bot.informationCouldNotBeLoaded, "bot"), property: "botVersion", yamlOptions: v.createYamlOptions("botVersion", (e3) => e3.setSkipProperty(true)) }, { dataPairListCollection: true, isOutput: true, options: d.ManagedPropertyOptions.create((e3) => e3.setIsOptional(true)), property: "outputs", yamlOptions: v.createYamlOptions("outputs", (e3) => e3.setPropertyName("intents")) }, { label: O.dialogEngine.terminationState, options: u.ExpressionTypeStringOptions.create((e3) => e3.setAsOutput().setIsOptional(true).setIninTestingField("terminationStateExpression").setExamples(I)), property: "terminationState", type: A.expressionTypeNames.string }, { label: O.bot.followupResponseTimeoutLabel, options: l.ExpressionTypeDurationOptions.create((e3) => e3.setDefaultText(a.default.litDurationTwelveHours).setDescriptionInfo(O.bot.followupResponseTimeoutLabel, O.bot.followupResponseTimeoutDescription).setDurationStyle(s.durationStyles.fullDuration).setIninTestingField("followupResponseTimeoutExpression").facets.setMinDur(0, true)), optionsForSpecificFlowTypes: [{ flowTypes: [r2.flowTypes.flowTypeInboundChat], options: l.ExpressionTypeDurationOptions.create((e3) => e3.setDefaultText(a.default.litDurationFiveMinutes).setDescriptionInfo(O.bot.followupResponseTimeoutLabel, O.bot.followupResponseTimeoutDescription).setDurationStyle(s.durationStyles.fullDuration).setIninTestingField("followupResponseTimeoutExpression").facets.setMinDur(0, true).setMaxDur(10 * a.default.msPerHour, true)) }], property: "followupResponseTimeout", supportedFlowTypes: [r2.flowTypes.flowTypeInboundShortMessage, r2.flowTypes.flowTypeInboundChat], type: A.expressionTypeNames.duration }, { label: O.dialogEngine.inputTextLabel, options: u.ExpressionTypeStringOptions.create((e3) => e3.setDescriptionInfo(O.dialogEngine.inputTextLabel, O.dialogEngine.inputTextDescription).setIninTestingField("inputTextExpression").setIsOptional(true)), optionsForSpecificFlowTypes: [{ flowTypes: [r2.flowTypes.flowTypeInboundShortMessage], options: u.ExpressionTypeStringOptions.create((e3) => e3.setDefaultToExpression(true).setDefaultText(a.default.messageBodyVariable).setIsOptional(h.isFeatureAvailable(g.default.autoStartConversations)).setDoNotTransitionToNoValue(true).setDescriptionInfo(O.dialogEngine.inputTextLabel, O.dialogEngine.inputTextDescriptionForChat).setIninTestingField("inputTextExpression")) }], property: "inputText", supportedFlowTypes: [r2.flowTypes.flowTypeInboundShortMessage, r2.flowTypes.flowTypeInboundChat], type: A.expressionTypeNames.string }]; + } + postProcessYamlConfig(e3, t3, i3) { + if (!this.botRunnableProperty.idValue) return void this.removeYamlExportPropsThatRequireRunnable(e3); + e3.bot = {}; + const n3 = e3.bot[this.botName] = {}; + this.commonBotPostProcessYamlConfig(e3, n3); + } + _setBotCategoryProperties(e3) { + e3 && (this.botCategoryProperty.nameValue = e3.botName, this.botCategoryProperty.idValue = e3.botId); + } + } + v.info = T.default.createActionInfo({ actionClass: v, canBeInTask: true, canBeTreeNode: false, helpTopic: f.helpTopics.actions.dialogEngine, modelClass: i2(66063), name: O.actions.dialogEngine, scriptingName: "ArchActionCallDialogEngineBot" }), t2.A = v; + }, 93631: (e2, t2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.markdown = t2.variableWithFormatting = t2.defaultWithNoLabel = t2.selectAndAddText = t2.selectAndAddPrompt = void 0, t2.selectAndAddPrompt = "__SELECT_AND_ADD_PROMPT__", t2.selectAndAddText = "__SELECT_AND_ADD_TEXT__", t2.defaultWithNoLabel = "__DEFAULT_WITH_NO_LABEL__", t2.variableWithFormatting = "__VARIABLE_WITH_FORMATTING__", t2.markdown = "__MARKDOWN__"; + }, 93646: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(28562), r2 = i2(69149), o = { _label: "BotIntentConf", availableLanguages: { "ar-ae": "defaultSequence", "ar-eg": "defaultSequence", "ar-sa": "defaultSequence", "ca-es": "defaultSequence", "cs-cz": "defaultSequence", "da-dk": "defaultSequence", "de-ch": "defaultSequence", "de-de": "defaultSequence", "el-gr": "defaultSequence", "en-au": "defaultSequence", "en-gb": "defaultSequence", "en-us": "defaultSequence", "es-es": "defaultSequence", "es-mx": "defaultSequence", "es-us": "defaultSequence", "eu-es": "defaultSequence", "fi-fi": "defaultSequence", "fil-ph": "defaultSequence", "fr-be": "defaultSequence", "fr-ca": "defaultSequence", "fr-fr": "defaultSequence", "he-il": "defaultSequence", "hi-in": "defaultSequence", "hu-hu": "defaultSequence", "it-it": "defaultSequence", "ja-jp": "localizedSequence1", "ko-kr": "localizedSequence1", "ms-my": "defaultSequence", "nb-no": "defaultSequence", "nl-be": "defaultSequence", "nl-nl": "defaultSequence", "pl-pl": "defaultSequence", "pt-br": "defaultSequence", "pt-pt": "defaultSequence", "ru-ru": "defaultSequence", "sv-se": "defaultSequence", "th-th": "defaultSequence", "tr-tr": "defaultSequence", "uk-ua": "defaultSequence", "vi-vn": "defaultSequence", "zh-cn": "defaultSequence", "zh-hk": "defaultSequence", "zh-tw": "defaultSequence" }, builderId: n2.builderIds.parts.genericCommunication, flowTypeOverrides: { digitalbot: { builderId: n2.builderIds.parts.markdownCommunication, languageSequences: { defaultSequence: { _label: "bot_intent_conf", partContents: [{ builderPartId: r2.builderPartIds.communication.text, parameters: { templateNoOverlaySection: "intent", templateNoOverlaySectionKey: "intentConfirmationStr1" } }, { builderPartId: r2.builderPartIds.communication.data, parameters: { reference: "$intentName" } }, { builderPartId: r2.builderPartIds.communication.text, parameters: { templateNoOverlaySection: "intent", templateNoOverlaySectionKey: "intentConfirmationStr2" } }] }, localizedSequence1: { _label: "bot_intent_conf_seq_1", partContents: [{ builderPartId: r2.builderPartIds.communication.data, parameters: { reference: "$intentName" } }, { builderPartId: r2.builderPartIds.communication.text, parameters: { templateNoOverlaySection: "intent", templateNoOverlaySectionKey: "intentConfirmationStr1" } }, { builderPartId: r2.builderPartIds.communication.text, parameters: { templateNoOverlaySection: "intent", templateNoOverlaySectionKey: "intentConfirmationStr2" } }] } } } }, languageSequences: { defaultSequence: { _label: "bot_intent_conf", parts: [{ builderPartId: r2.builderPartIds.communication.text, parameters: { templateNoOverlaySection: "intent", templateNoOverlaySectionKey: "intentConfirmationStr1" } }, { builderPartId: r2.builderPartIds.communication.data, parameters: { reference: "$intentName" } }, { builderPartId: r2.builderPartIds.communication.text, parameters: { templateNoOverlaySection: "intent", templateNoOverlaySectionKey: "intentConfirmationStr2" } }] }, localizedSequence1: { _label: "bot_intent_conf_seq_1", parts: [{ builderPartId: r2.builderPartIds.communication.data, parameters: { reference: "$intentName" } }, { builderPartId: r2.builderPartIds.communication.text, parameters: { templateNoOverlaySection: "intent", templateNoOverlaySectionKey: "intentConfirmationStr1" } }, { builderPartId: r2.builderPartIds.communication.text, parameters: { templateNoOverlaySection: "intent", templateNoOverlaySectionKey: "intentConfirmationStr2" } }] } } }; + t2.default = o; + }, 93693: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importDefault(i2(92140)), o = n2.__importDefault(i2(78432)), a = i2(80295), s = n2.__importDefault(i2(37873)); + class l extends s.default { + constructor(e3) { + super(e3), this._checkItemUndefinedOrNull(this._infoParmCtor("corePromptSettingsViewModel"), e3), this._corePromptSettingsViewModel = e3, (0, a.makeUnenumerable)(this, "_corePromptSettingsViewModel"); + } + get displayTypeName() { + return "ArchSettingsPromptsFlow"; + } + get isArchSettingsPromptsFlow() { + return true; + } + get ensureAudioInPrompts() { + return this._corePromptSettingsViewModel.ensureAudioInPrompts; + } + set ensureAudioInPrompts(e3) { + const t3 = this._infoPropSet("newValue", "ensureAudioInPrompts"); + this._checkItemIsValidLiteralBool(t3, e3), this.logDeprecatedPropertyWarning(t3, "promptMediaToValidate", "if setting ensureAudioInPrompts to true, please update calling code to call the prompt settings promptMediaToValidate property setter instead with the string value 'audio' ( archEnums.PROMPT_MEDIA_TYPES.audio ). If false, use a JavaScript array of [ 'audio', 'tts' ] where the string values come from archEnums.PROMPT_MEDIA_TYPES.audio and archEnums.PROMPT_MEDIA_TYPES.tts respectively."), this.logNote("setting flow ensure audio in prompts setting to '" + e3 + "'"), this._corePromptSettingsViewModel.ensureAudioInPrompts = e3; + } + get promptMediaToValidate() { + return [].concat(this._corePromptSettingsViewModel.parentFlow.promptMediaToValidate); + } + set promptMediaToValidate(e3) { + const t3 = this._infoPropSet("value", "promptMediaToValidate"); + this._checkItemIsValidLiteralStringOrStringArray(t3, e3, false), "string" != typeof e3 ? e3.forEach((e4) => this._checkItemIsValidLiteralStringEnum(this._infoPropSet("value", "promptMediaToValidate"), e4, o.default.PROMPT_MEDIA_TYPES_ALL)) : (this._checkItemIsValidLiteralStringEnum(t3, e3, o.default.PROMPT_MEDIA_TYPES_ALL), e3 = [e3]), this._checkItem(t3, !this._corePromptSettingsViewModel.parentFlow.supportsAudio && r2.default.contains(e3, o.default.PROMPT_MEDIA_TYPES.audio), "this flow does not support audio so it cannot be set as a media type to validate on a prompt."), this._checkItem(t3, r2.default.contains(e3, o.default.PROMPT_MEDIA_TYPES.text), `the prompt media type '${o.default.PROMPT_MEDIA_TYPES.text}' cannot be set as a prompt media type to validate yet.`), e3 = r2.default.uniq(e3), this._checkItem(t3, 1 === e3.length && e3[0] === o.default.PROMPT_MEDIA_TYPES.tts, `you cannot use the prompt media type '${o.default.PROMPT_MEDIA_TYPES.tts}' by itself. You must have prompt media type '${o.default.PROMPT_MEDIA_TYPES.audio}' to use '${o.default.PROMPT_MEDIA_TYPES.tts}'.`), this._checkItem(t3, r2.default.contains(e3, o.default.PROMPT_MEDIA_TYPES.none) && e3.length > 1, `when using the prompt media type '${o.default.PROMPT_MEDIA_TYPES.none}', no other values can be set.`), this._corePromptSettingsViewModel.parentFlow.promptMediaToValidate = 1 === e3.length && e3[0] === o.default.PROMPT_MEDIA_TYPES.none ? [] : e3, this.logNote(`prompt media to validate set to '${e3.join("', '")}'`); + } + get logStr() { + if (!this._corePromptSettingsViewModel) return this.logStrTypeOnly; + const e3 = []; + return this._appendLogStrType(e3, this.displayTypeName), this._corePromptSettingsViewModel.outOfService || this._appendLogStrPart(e3, "ensureAudioInPrompts", this.ensureAudioInPrompts, true, true), this._appendLogStrParentFlowInfo(e3, this._getCoreViewModel()), this._createLogStrFromParts(e3); + } + } + t2.default = l; + }, 93728: (e2, t2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.config = void 0, t2.config = { onUnhandledError: null, onStoppedNotification: null, Promise: void 0, useDeprecatedSynchronousErrorHandling: false, useDeprecatedNextContext: false }; + }, 93805: (e2, t2, i2) => { + const n2 = i2(89452), r2 = i2(72529), o = i2(45214), a = i2(87675).default; + function s() { + Object.defineProperties(this, { _dependencyCustomDataTypes: { value: [], writable: true }, _dependencyFlowUiMetaDataModels: { value: [], writable: true }, _dependencyVariableModels: { value: [], writable: true } }), s.baseConstructor.apply(this, arguments); + } + o.extend(s, "ClipboardDependenciesModel", true), Object.defineProperties(s.prototype, { dependencyFlowUiMetaDataModels: { enumerable: true, get: function() { + return this._dependencyFlowUiMetaDataModels; + }, set: function(e3) { + this._dependencyFlowUiMetaDataModels = this.reviveArray(e3, n2); + } }, dependencyVariableModels: { enumerable: true, get: function() { + return this._dependencyVariableModels; + }, set: function(e3) { + this._dependencyVariableModels = this.reviveArray(e3, r2); + } }, dependencyCustomDataTypes: { enumerable: true, get: function() { + return this._dependencyCustomDataTypes; + }, set: function(e3) { + this._dependencyCustomDataTypes = this.reviveArray(e3, a); + } } }), e2.exports = s; + }, 93818: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(20692)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "queueCollection"; + } + get displayTypeName() { + return "ArchVariableQueueCollection"; + } + get initialValue() { + return this._initialValue; + } + get isArchVariableQueueCollection() { + return true; + } + } + t2.default = r2; + }, 93832: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(84655)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "timeslot"; + } + get displayTypeName() { + return "ArchVariableTimeslot"; + } + get initialValue() { + return this._initialValue; + } + get isArchVariableTimeslot() { + return true; + } + } + t2.default = r2; + }, 93852: (e2, t2, i2) => { + function n2() { + this.dataTypeId = void 0, this.applicableFlowTypes = void 0, n2.baseConstructor.apply(this, arguments); + } + i2(73649).extend(n2, "ClipboardManifestItemDataTypeModel", true), e2.exports = n2; + }, 93856: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = { ArchSpeechToTextEngine: i2(31635).__importDefault(i2(25016)).default }; + t2.default = n2; + }, 93858: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.PropertyBaseReasons = void 0; + const n2 = i2(17604), r2 = i2(55299), o = i2(47957); + class a extends r2.BaseClass { + constructor() { + super(...arguments), this.REASON_FEATURE_TOGGLE_UNAVAILABLE = { code: "feature_toggle_unavailable", resource: o.properties.common.featureToggleUnavailble }, this.REASON_FLOW_READ_ONLY = { code: "flow_read_only", resource: o.properties.common.flowReadOnly, additionalInfo: { isReadOnlyReason: true } }; + } + get className() { + return "PropertyBaseReasons"; + } + _setReason(e3, t3, ...i3) { + if (e3 && t3) if (e3.code = t3.code, e3.additionalInfo = t3.additionalInfo, arguments.length > 2) { + const i4 = [t3.resource]; + for (let e4 = 2; e4 < arguments.length; e4++) i4.push(arguments[e4]); + e3.displayString = n2.sprintf.apply(null, i4); + } else e3.displayString = t3.resource; + return false; + } + setFeatureToggleUnavailable(e3, t3) { + return this._setReason(e3, this.REASON_FEATURE_TOGGLE_UNAVAILABLE); + } + setFlowReadOnly(e3) { + return this._setReason(e3, this.REASON_FLOW_READ_ONLY); + } + } + t2.PropertyBaseReasons = a; + }, 93899: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(84655)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "prompt"; + } + get displayTypeName() { + return "ArchVariablePrompt"; + } + get initialValue() { + return this._initialValue; + } + get isArchVariablePrompt() { + return true; + } + } + t2.default = r2; + }, 93973: (e2, t2, i2) => { + const n2 = i2(68511), r2 = i2(77396), o = i2(36019).default; + function a() { + } + const s = new a(); + a.prototype.getLanguageSkill = o.request("GET", "{public-api.apps}/api/v2/routing/languages/{id}", n2), a.prototype.getLanguageSkills = o.request("GET", "{public-api.apps}/api/v2/routing/languages", r2), e2.exports = s; + }, 93975: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(83747)), r2 = i2(96618); + class o extends n2.default { + constructor(e3) { + super(e3), this._promptSettings = this.coreFactory.createArchWrapper(e3.callPrompts), this._speechRecSettings = this.coreFactory.createArchWrapper(e3.speechRecognition); + } + get _flowType() { + return r2.flowTypes.flowTypeVoice; + } + get displayTypeName() { + return "ArchFlowVoice"; + } + get isArchFlowVoice() { + return true; + } + get settingsPrompts() { + return this._promptSettings; + } + get settingsSpeechRec() { + return this._speechRecSettings; + } + } + t2.default = o; + }, 93991: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(84655)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "integer"; + } + get displayTypeName() { + return "ArchVariableInteger"; + } + get initialValue() { + return this._initialValue; + } + get isArchVariableInteger() { + return true; + } + } + t2.default = r2; + }, 94053: (e2, t2, i2) => { + "use strict"; + const n2 = i2(31635), r2 = n2.__importDefault(i2(98114)), o = i2(14394), a = n2.__importDefault(i2(76486)), s = n2.__importDefault(i2(22599)), l = i2(73062), u = n2.__importDefault(i2(16864)), d = n2.__importDefault(i2(42290)), c = i2(16958); + class p extends d.default { + constructor({ isSystem: e3, resultType: t3, id: i3 }) { + const n3 = e3 ? "FindSystemPrompt" : "FindUserPrompt", u2 = t3.isMatch(o.globalTypes.prompt), d2 = t3.isMatch(o.globalTypes.audio); + if (!d2 && !u2) throw "Unsupported result type for a find prompt part definition"; + const p2 = s.default.create(), _ = { categoryIdentifierOrIdentifiers: l.builderCategoryIds.prompt, description: e3 ? c.builderParts.findPrompt.system.description : c.builderParts.findPrompt.user.description, expressionDefs: [new a.default({ configureOptionsCallback: (e4) => e4.setDefaultToExpression(true).setIninTestingField("promptName").facets.setMaxLength(256), expressionType: o.globalTypes.string, label: e3 ? c.builderParts.findPrompt.system.findLabel : c.builderParts.findPrompt.user.findLabel }), new a.default({ configureOptionsCallback: (e4) => e4.setAllowModeLiteralOnly(true).setIninTestingField("promptFallback"), expressionType: o.globalTypes.prompt, label: c.builderParts.findPrompt.fallbackLabel })], generators: { expressionGenerator: p2 }, id: i3, name: e3 ? c.builderParts.findPrompt.system.name : c.builderParts.findPrompt.user.name, resultExpressionType: t3, restrictToFlowTypeOrTypes: r2.default.getFlowTypesThatSupportLanguages(), version: 1 }; + d2 && p2.addFuncCall("ToAudio"), p2.addFuncCall("If").addFuncCall("IsSet").addFuncCall(n3).addTokenReplacement(0).addFuncCallEnd().addFuncCallEnd().addFuncParameterSeparator().addFuncCall(n3).addTokenReplacement(0).addFuncCallEnd().addFuncParameterSeparator().addTokenReplacement(1).addFuncCallEnd().addFuncCallEnd(), d2 ? p2.addFuncCallEnd().verifySprintfStringAndInitialize(`ToAudio(If(IsSet(${n3}(%1$s)), ${n3}(%1$s), %2$s))`) : p2.verifySprintfStringAndInitialize(`If(IsSet(${n3}(%1$s)), ${n3}(%1$s), %2$s)`), super(_); + } + get className() { + return "FindPromptPartDef"; + } + reviveItem(e3, t3, i3, n3) { + return new u.default({ builderViewModel: e3, owningExpressionViewModel: t3, builderPartModel: i3, overrideBuilderPartDef: void 0, reId: !!n3 }); + } + } + t2.A = p; + }, 94083: (e2, t2, i2) => { + "use strict"; + e2 = i2.nmd(e2); + const n2 = i2(10734), r2 = (e3, t3) => function() { + return `\x1B[${e3.apply(n2, arguments) + t3}m`; + }, o = (e3, t3) => function() { + const i3 = e3.apply(n2, arguments); + return `\x1B[${38 + t3};5;${i3}m`; + }, a = (e3, t3) => function() { + const i3 = e3.apply(n2, arguments); + return `\x1B[${38 + t3};2;${i3[0]};${i3[1]};${i3[2]}m`; + }; + Object.defineProperty(e2, "exports", { enumerable: true, get: function() { + const e3 = /* @__PURE__ */ new Map(), t3 = { modifier: { reset: [0, 0], bold: [1, 22], dim: [2, 22], italic: [3, 23], underline: [4, 24], inverse: [7, 27], hidden: [8, 28], strikethrough: [9, 29] }, color: { 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], redBright: [91, 39], greenBright: [92, 39], yellowBright: [93, 39], blueBright: [94, 39], magentaBright: [95, 39], cyanBright: [96, 39], whiteBright: [97, 39] }, bgColor: { bgBlack: [40, 49], bgRed: [41, 49], bgGreen: [42, 49], bgYellow: [43, 49], bgBlue: [44, 49], bgMagenta: [45, 49], bgCyan: [46, 49], bgWhite: [47, 49], bgBlackBright: [100, 49], bgRedBright: [101, 49], bgGreenBright: [102, 49], bgYellowBright: [103, 49], bgBlueBright: [104, 49], bgMagentaBright: [105, 49], bgCyanBright: [106, 49], bgWhiteBright: [107, 49] } }; + t3.color.grey = t3.color.gray; + for (const i4 of Object.keys(t3)) { + const n3 = t3[i4]; + for (const i5 of Object.keys(n3)) { + const r3 = n3[i5]; + t3[i5] = { open: `\x1B[${r3[0]}m`, close: `\x1B[${r3[1]}m` }, n3[i5] = t3[i5], e3.set(r3[0], r3[1]); + } + Object.defineProperty(t3, i4, { value: n3, enumerable: false }), Object.defineProperty(t3, "codes", { value: e3, enumerable: false }); + } + const i3 = (e4) => e4, s = (e4, t4, i4) => [e4, t4, i4]; + t3.color.close = "\x1B[39m", t3.bgColor.close = "\x1B[49m", t3.color.ansi = { ansi: r2(i3, 0) }, t3.color.ansi256 = { ansi256: o(i3, 0) }, t3.color.ansi16m = { rgb: a(s, 0) }, t3.bgColor.ansi = { ansi: r2(i3, 10) }, t3.bgColor.ansi256 = { ansi256: o(i3, 10) }, t3.bgColor.ansi16m = { rgb: a(s, 10) }; + for (let e4 of Object.keys(n2)) { + if ("object" != typeof n2[e4]) continue; + const i4 = n2[e4]; + "ansi16" === e4 && (e4 = "ansi"), "ansi16" in i4 && (t3.color.ansi[e4] = r2(i4.ansi16, 0), t3.bgColor.ansi[e4] = r2(i4.ansi16, 10)), "ansi256" in i4 && (t3.color.ansi256[e4] = o(i4.ansi256, 0), t3.bgColor.ansi256[e4] = o(i4.ansi256, 10)), "rgb" in i4 && (t3.color.ansi16m[e4] = a(i4.rgb, 0), t3.bgColor.ansi16m[e4] = a(i4.rgb, 10)); + } + return t3; + } }); + }, 94110: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.buildSurveyFlow = function(e3) { + var t3; + e3.voiceSurveyFlowSettings.archSurveyForm.header && g(a.communicateActionType, e3.startUpObject, (t4) => { + t4.name = h.voiceSurvey.voiceSurveyHeaderLabel, t4.communication.options.setAllowModeBuilder(true), t4.communication.options.setDefaultToBuilderId(r2.builderIds.parts.genericCommunication), t4.communication.setCommunicationBuilderText(e3.voiceSurveyFlowSettings.archSurveyForm.header, true); + }); + const i3 = (function(e4) { + const t4 = e4.reduce((e5, t5) => (e5[t5.name] || (e5[t5.name] = []), e5[t5.name].push(t5), e5), {}), i4 = {}; + return Object.entries(t4).forEach(([e5, t5]) => { + 1 === t5.length ? i4[t5[0].id] = e5 : t5.forEach((e6, t6) => { + i4[e6.id] = `${e6.name} ${t6 + 1}`; + }); + }), i4; + })(e3.voiceSurveyFlowSettings.archSurveyForm.questionGroups); + (null === (t3 = e3.voiceSurveyFlowSettings.archSurveyForm.questionGroups) || void 0 === t3 ? void 0 : t3.length) && e3.voiceSurveyFlowSettings.archSurveyForm.questionGroups.forEach((t4, r3) => { + !(function(e4, t5, i4, r4) { + var a2; + const l2 = e4.createTask(i4); + let d2 = l2; + const m2 = (0, c.getVisibilityConditionExprText)(t5.visibilityCondition, e4.voiceSurveyFlowSettings.archSurveyForm); + m2 && g(s.decisionActionType, l2, (e5) => { + e5.expression.setAsExpression(m2), e5.name = (0, _.sprintf)(h.voiceSurvey.voiceSurveyQuestionGroupVisibilityActionName, r4 + 1); + const t6 = e5.branches.find((e6) => e6.id === p.outputIds.no); + g(u.endTaskActionType, t6, (e6) => { + e6.name = (0, _.sprintf)(h.voiceSurvey.voiceSurveyQuestionGroupNotApplicable, r4 + 1); + const t7 = l2.createBranch(h.voiceSurvey.voiceSurveyNotApplicableLabel); + e6.linkPath(t7); + }), d2 = e5.branches.find((e6) => e6.id === p.outputIds.yes); + }), (null === (a2 = t5.questions) || void 0 === a2 ? void 0 : a2.length) && t5.questions.forEach((e5, t6) => { + g(n2.askSurveyQuestionActionType, d2, (i5) => { + i5.name = (0, _.sprintf)(h.voiceSurvey.voiceSurveyQuestionWithIndex, t6 + 1), i5.configureFromArchSurveyQuestionId(e5.id); + }); + }), g(u.endTaskActionType, l2, (e5) => { + e5.name = (0, _.sprintf)(h.voiceSurvey.voiceSurveyEndQuestionGroupTaskActionLabel, t5.name); + const i5 = l2.getBranches().find((e6) => e6.outputId === p.outputIds.default); + e5.linkPath(i5); + }), g(o.callTaskActionType, e4.startUpObject, (e5) => { + e5.name = (0, _.sprintf)(h.voiceSurvey.voiceSurveyQuestionGroupTaskName, r4 + 1), e5.containerActionProperty.setReference(l2); + }); + })(e3, t4, i3[t4.id], r3); + }), e3.voiceSurveyFlowSettings.archSurveyForm.footer && g(a.communicateActionType, e3.startUpObject, (t4) => { + t4.name = h.voiceSurvey.voiceSurveyFooterLabel, t4.communication.options.setAllowModeBuilder(true), t4.communication.options.setDefaultToBuilderId(r2.builderIds.parts.genericCommunication), t4.communication.setCommunicationBuilderText(e3.voiceSurveyFlowSettings.archSurveyForm.footer, true); + }), g(l.disconnectActionType, e3.startUpObject); + }; + const n2 = i2(30801), r2 = i2(28562), o = i2(30801), a = i2(30801), s = i2(30801), l = i2(30801), u = i2(30801), d = i2(24032), c = i2(56969), p = i2(26847), _ = i2(17604), h = i2(47957), m = (0, d.getTopic)("buildSurveyFlow"); + function g(e3, t3, i3) { + try { + const n3 = t3.addAction(e3, t3.lastAction); + i3 && i3(n3); + } catch (t4) { + m.exception(t4, `failed to create ${e3} action`); + } + } + }, 94147: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importDefault(i2(6074)), o = n2.__importDefault(i2(94225)); + class a extends r2.default { + constructor(e3) { + super(e3), this._coreStateViewModel = e3, this._isVariableContainer = true; + } + get coreStateViewModel() { + return this._coreStateViewModel; + } + addVariable(e3, t3, i3) { + return this._addVariable(this, "addVariable", e3, t3, i3); + } + get displayTypeName() { + return "ArchState"; + } + get isArchState() { + return true; + } + get logStr() { + if (!this._coreStateViewModel) return this.logStrTypeOnly; + const e3 = []; + return this._appendLogStrTrackingIdNameType(e3, this.trackingId, this.name, this.displayTypeName), this._createLogStrFromParts(e3); + } + getVariableByName(e3) { + this._checkItemIsValidLiteralString(this._infoParm("variableName", "getVariableByName"), e3); + const t3 = this._coreStateViewModel.parentFlow.variableGroup.getVariableByName(e3, this._coreStateViewModel); + if (t3) return this.coreFactory.createArchWrapper(t3); + } + get name() { + return this._coreStateViewModel.name; + } + set name(e3) { + this._checkItemIsValidLiteralString(this._infoPropSet("newValue", "name"), e3), this._coreStateViewModel.name = e3; + } + get parentFlow() { + return this.coreFactory.createArchWrapper(this._coreStateViewModel.parentFlow); + } + get trackingId() { + return this._coreStateViewModel.trackingId; + } + set trackingId(e3) { + const t3 = this._infoPropSet("value", "trackingId"); + this._ensureCanSetTrackingIds(t3, o.default, e3); + const i3 = this._coreStateViewModel.trackingId; + e3 !== i3 && (this._coreStateViewModel.trackingId = e3, this.logItemVerboseNote(t3, `updated tracking ID from ${i3} to ${this._coreStateViewModel.trackingId}.`)); + } + get variables() { + return this._coreStateViewModel.parentFlow.variableGroup.filterByTask(this._coreStateViewModel).filter((e3) => e3.isStateVariable && !e3.isClone).map((e3) => this.coreFactory.createArchWrapper(e3)); + } + } + t2.default = a; + }, 94164: (e2, t2, i2) => { + "use strict"; + var n2, r2; + Object.defineProperty(t2, "__esModule", { value: true }); + const o = i2(31635), a = i2(19596), s = i2(80295), l = i2(80295), u = i2(75800); + class d extends a.DataContract { + constructor(e3) { + super(e3), (0, l.makeUnenumerable)(this, "_textToSpeech"), (0, l.makeUnenumerable)(this, "_speechToText"), (0, l.makeUnenumerable)(this, "_naturalLanguageUnderstanding"), (0, l.makeUnenumerable)(this, "_workitems"); + } + get textToSpeech() { + return this._textToSpeech; + } + set textToSpeech(e3) { + this._textToSpeech = e3; + } + get speechToText() { + return this._speechToText; + } + set speechToText(e3) { + this._speechToText = e3; + } + get naturalLanguageUnderstanding() { + return this._naturalLanguageUnderstanding; + } + set naturalLanguageUnderstanding(e3) { + this._naturalLanguageUnderstanding = e3; + } + get workitems() { + return this._workitems; + } + set workitems(e3) { + this._workitems = e3; + } + } + t2.default = d, o.__decorate([(0, s.enumerable)(true), o.__metadata("design:type", Object), o.__metadata("design:paramtypes", [Object])], d.prototype, "textToSpeech", null), o.__decorate([(0, s.enumerable)(true), o.__metadata("design:type", Object), o.__metadata("design:paramtypes", [Object])], d.prototype, "speechToText", null), o.__decorate([(0, s.enumerable)(true), o.__metadata("design:type", "function" == typeof (n2 = void 0 !== u.INaturalLanguageUnderstandingData && u.INaturalLanguageUnderstandingData) ? n2 : Object), o.__metadata("design:paramtypes", ["function" == typeof (r2 = void 0 !== u.INaturalLanguageUnderstandingData && u.INaturalLanguageUnderstandingData) ? r2 : Object])], d.prototype, "naturalLanguageUnderstanding", null), o.__decorate([(0, s.enumerable)(true), o.__metadata("design:type", Object), o.__metadata("design:paramtypes", [Object])], d.prototype, "workitems", null); + }, 94225: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.ArchSession = void 0; + const n2 = i2(31635), r2 = n2.__importDefault(i2(92140)), o = n2.__importStar(i2(74359)), a = n2.__importStar(i2(35515)), s = n2.__importStar(i2(36781)), l = n2.__importStar(i2(68223)), u = n2.__importStar(i2(14232)), d = n2.__importDefault(i2(78432)), c = n2.__importDefault(i2(72203)), p = n2.__importDefault(i2(74142)), _ = i2(54251), h = i2(97111), m = i2(50474), g = i2(67210), f = i2(44724), T = n2.__importDefault(i2(36019)), y = n2.__importDefault(i2(66978)), S = n2.__importDefault(i2(98717)), A = i2(53919), N = i2(58611), O = i2(33231); + let I; + I = i2(42714); + const v = i2(36479), C = i2(26031), b = i2(33588), E = n2.__importDefault(i2(8471)); + let R = O.defer(); + function w(e3, t3, i3, n3, r3) { + e3[t3] = { env: i3, host: n3, region: r3 }; + } + function D(e3) { + return n2.__awaiter(this, void 0, void 0, function* () { + o.authenticatedUser(e3), this.logNote(`authenticated name: '${e3.name}', id: '${e3.id}', OAuth type: '${e3.isOAuthClient ? "client" : "user"}'`); + try { + yield o.getAuthorizedPromise(); + const e4 = yield C.orgInfo(); + e4 ? (o.setOrgInfo(e4), this.logNote(`obtained organization information. organization name: '${e4.name}', id: '${e4.id}'`)) : this.logWarning("no organization information obtained - Architect Scripting will continue execution but organization information will not be available."); + } catch (e4) { + let t3 = "error during authentication and authorization: "; + if ((0, m.isString)(e4)) t3 += e4; + else try { + t3 += JSON.stringify(e4); + } catch (e5) { + } + this.logError(t3), this._endSessionWithReservedError("error encountered during authentication and authorization. Check logging for additional error information."); + } finally { + g.permissionService.checkHasPermissionInAtLeastOneDivision(o.getConnectedUser(), g.permissionService.staticPermissions[f.permissionStrings.architect.application.use]).lacksPermission && this._endSessionWithReservedError("in order to use Architect Scripting, the 'architect:ui:view' permission is required."), o.finishedLoading(); + } + }); + } + function P(e3, t3, i3) { + e3(t3).then((e4) => { + this.logNote("setting auth token '" + e4.access_token + "'"), a.setAuthToken(e4.access_token), i3.resolve(); + }, (e4) => { + this.logError("error getting auth token:", e4), i3.reject(); + }); + } + class M extends E.default { + constructor() { + super(), this._boundTokenRevoked = null, this._coreConfigured = false, this._endExitCode = 0, this._endMode = d.default.SESSION_END_MODES.end, this._endTerminatesProcess = true, this._locations = {}, this._organizationInfo = new p.default(this), this._sessionStartDeferred = O.defer(), this._sessionEnded = false, this._status = d.default.SESSION_STATUSES.notStarted, this._useRegionalHost = false; + for (const e3 of h.environmentList) { + if (e3.host.includes("app-regional")) continue; + if ("dev" === e3.env || "test" === e3.env) { + w(this._locations, d.default.LOCATIONS[e3.env], e3.env, e3.host, e3.region); + continue; + } + const t3 = `${e3.env}_${e3.region}`.replace(/-/g, "_"); + d.default.LOCATIONS[t3] && w(this._locations, d.default.LOCATIONS[t3], e3.env, e3.host, e3.region); + } + process && r2.default.isFunction(process.exit) || (this.logNote("defaulting endTerminatesProcess property to false because there is no process or process.exit method available to call when the session ends."), this._endTerminatesProcess = false), _.divisionManager.defaultPageSize, this._boundTtsEngineChanged = this._ttsEngineChanged.bind(this), this._boundTtsEngineVoiceChanged = this._ttsEngineVoiceChanged.bind(this), s.serviceListen(s.ttsEngineChanged, this._boundTtsEngineChanged), s.serviceListen(s.ttsEngineVoiceChanged, this._boundTtsEngineVoiceChanged); + } + _coreAuthenticate(e3, t3) { + const r3 = O.defer(), s2 = [o.getAuthenticatedPromise(), o.bootstrapLanguageDataLoaded, o.featureTogglesLoaded, o.divisionsLoaded, R.promise]; + if (this.logNote("core environment initialized. Now logging in..."), a.getAuthToken()) r3.resolve(); + else if (e3.isClientCredentialsClient) P.call(this, C.getAuthTokenClientCredentials, null, r3); + else { + const e4 = N.createServer((t5, n3) => { + if (t5.url.match(/callback/)) { + const o2 = i2(87016).parse(t5.url, true).query; + o2 && o2.code ? P.call(this, C.getAuthToken, o2.code, r3) : r3.reject(), n3.end("You may close this window now."), e4.close(); + } + }).listen(9001), t4 = a.getConnectUrl(null, a.values.coreRedirectUri, true); + I.open(t4); + } + const l2 = r3.promise.then(() => n2.__awaiter(this, void 0, void 0, function* () { + var i3; + if (e3.isClientCredentialsAuthToken) try { + const e4 = yield b.getCurrentToken(), t4 = null === (i3 = null == e4 ? void 0 : e4.OAuthClient) || void 0 === i3 ? void 0 : i3.id; + t4 || this._endSessionWithReservedError("an OAuth client ID was not found."), a.values.client = t4; + } catch (e4) { + this.logPromiseError(this._infoMethod(t3), e4, "error getting OAuth Client ID from auth token info"), this._endSessionWithReservedError("an OAuth client ID could not be obtained. Check logging for additional error information."); + } + return e3.isClientCredentialsClient || e3.isClientCredentialsAuthToken ? u.getOAuthClientInfo(a.values.client).then((e4) => b.getUserRolesAndPermissions(e4.id).then((t4) => { + e4.permissions = t4.permissions, D.call(this, e4); + }, (e5) => { + throw this.logPromiseError(this._infoMethod(t3), e5, "error getting oauth client roles and permissions info"), e5; + }), (e4) => { + throw this.logPromiseError(this._infoMethod(t3), e4, "error getting client credentials info"), e4; + }) : b.getCurrentUser().then(D.bind(this), (e4) => { + throw this.logPromiseError(this._infoMethod(t3), e4, "error getting user info"), e4; + }); + })); + return s2.push(l2), O.all(s2).catch(() => { + this._endSessionWithReservedError("error encountered with startup processing. Check logging for additional error information."); + }); + } + _coreInitializeEnvironment(e3) { + return a.initialize(e3.env, e3.host, e3.region), "env: '" + e3.env + "', host: '" + e3.host + "', region: '" + e3.region + "'"; + } + _determineEndPromiseToResolve(e3) { + if (e3) return this.logNote("waiting for any pending work to complete before ending the session"), y.default.allSettled(); + { + const e4 = O.defer(); + return e4.resolve(), e4.promise; + } + } + _endSession() { + switch (this._endMode) { + case d.default.SESSION_END_MODES.end: + this.end(true); + break; + case d.default.SESSION_END_MODES.endWithLogout: + this.endWithLogout(); + break; + default: + this.logError("unknown end mode. Will end with logout to be safe."), this.endWithLogout(); + } + } + _endSessionWithReservedError(e3, t3) { + this._endExitCode = 99, e3 || (e3 = ""), t3 && (t3 instanceof Error ? e3 += " Exception info: " + t3.message + (t3.stack ? " Stack: " + t3.stack : "") : e3 += "string" == typeof t3 ? " Exception info: " + t3 : " Exception info: " + JSON.stringify(t3)), this.logError((e3 && (r2.default.isUndefined(S.default.lastError) || S.default.lastError && -1 === S.default.lastError.indexOf(e3)) ? e3 + " " : "") + "ending the Session. Setting the exit code to 99."), this._endSession(); + } + _removeTtsListeners() { + s.emitter.removeListener(s.ttsEngineChanged, this._boundTtsEngineChanged), s.emitter.removeListener(s.ttsEngineVoiceChanged, this._boundTtsEngineVoiceChanged); + } + _cleanupSessionResources() { + try { + this._removeTtsListeners(), this._boundTokenRevoked && (s.emitter.removeListener(s.tokenRevoked, this._boundTokenRevoked), this._boundTokenRevoked = null); + } catch (e3) { + this.logError("error removing event listeners during session cleanup: " + e3); + } + try { + c.default.destroy(); + } catch (e3) { + this.logError("error destroying network value cache during session cleanup: " + e3); + } + try { + y.default.reset(); + } catch (e3) { + this.logError("error resetting async tracker during session cleanup: " + e3); + } + this.logNote("session resources cleaned up."); + } + _invokeSessionEndingCallback() { + if (this._endCallbackFunction) try { + this.logNoteVerbose("calling session end callback function."), this._endCallbackFunction(this), this.logNoteVerbose("session end callback function execution complete."); + } catch (e3) { + const t3 = this.displayTypeName + ".end - Caught unhandled exception during session end callback function execution. Exception info: " + e3; + this.logError(t3); + } finally { + this._endCallbackFunction = void 0; + } + } + _ttsEngineChanged(e3) { + this._ttsInfoChanged(e3, false); + } + _ttsEngineVoiceChanged(e3) { + this._ttsInfoChanged(e3, true); + } + _ttsInfoChanged(e3, t3) { + if (S.default.logNotesVerbose) try { + const i3 = e3.parent, n3 = e3.languageId.toLowerCase(), o2 = r2.default.find(i3.supportedLanguageOptions, (e4) => r2.default.isString(e4.language) && e4.language.toLowerCase() === n3); + o2 && this.coreFactory.createArchWrapper(o2).logNoteVerbose(`language tts engine${t3 ? " voice" : ""} updated.`); + } catch (e4) { + } + } + _unhandledCallbackException(e3, t3, i3) { + let n3 = ""; + t3 && (n3 += `${t3.displayTypeName}.`), i3 && (n3 += `${i3} `), n3 += " - Caught unhandled exception during callback function execution. Ending session.", e3 && (n3 += " Exception info: ", r2.default.isObject(e3) ? e3.message ? n3 += e3.message : r2.default.isString(e3.text) ? n3 += e3.text : n3 += JSON.stringify(e3) : n3 += e3), t3.logError(n3), this._endSessionWithReservedError(n3); + } + _processCallbackResult(e3, t3, i3, n3, r3) { + return O.isPromiseAlike(n3) ? (e3.logNoteVerbose(r3 + " Callback function returned a promise. Waiting until it resolves."), n3.then((n4) => (e3.logNoteVerbose(r3 + " Callback function returned promise successfully resolved."), O.isPromiseAlike(n4) ? (e3.logNoteVerbose(r3 + " The result value from the returned promise is another promise. Will begin the process of waiting for it to resolve."), this._processCallbackResult(e3, t3, i3, n4, r3)) : n4)).catch((i4) => { + e3.logError(r3 + " Caught unhandled exception waiting for callback function returned promise to resolve."), this._unhandledCallbackException(i4, this, t3); + }).finally(() => { + i3 && this._endSession(); + })) : i3 && this._endSession(), n3; + } + executeCallback(e3, t3, i3, n3, r3, o2) { + const a2 = o2 || "async processing for " + t3 + " complete."; + if (!i3) return e3.logNoteVerbose(a2), n3; + let s2; + try { + return arguments.length < 4 ? (e3.logNoteVerbose(a2 + " Calling callback function. Note: No parameter being passed to the callback function."), s2 = i3()) : (e3.logNoteVerbose(a2 + " Calling callback function."), s2 = i3(n3)), e3.logNoteVerbose(a2 + " Callback function execution complete."), this._processCallbackResult(e3, t3, r3, s2, a2); + } catch (i4) { + this._unhandledCallbackException(i4, e3, t3); + } + } + _getDiscoveryProperties() { + return n2.__awaiter(this, void 0, void 0, function* () { + this.logNote("getting discovery properties..."), this._coreConfigured = true; + const e3 = a.values.host + "/services/discovery.properties", t3 = yield T.default.makeRequest("GET", e3, void 0, void 0, true); + a.loadProperties(t3), this.logNote("core environment discovery properties loaded."); + }); + } + _getLocationInfo(e3, t3) { + this._checkItemIsValidLiteralStringEnum(this._infoParm("orgLocation", t3), e3, d.default.LOCATIONS_ALL); + const i3 = this._locations[e3]; + return i3 || this._logErrorInternalAndThrow("the location of '" + e3 + "' is valid in the Architect enums but not available in the session object."), this.useRegionalHost && (i3.host = i3.host.replace("apps", "app-regional")), i3; + } + _setFactoryFlowStartupComplete() { + R.resolve(); + } + _startAndRun(e3, t3, i3, n3, u2, p2) { + var _2, h2; + switch (this._status) { + case d.default.SESSION_STATUSES.running: + this._itemIsInvalid(this._infoCalledObject(this, u2), "'" + u2 + "' called when the session status is in the status of '" + d.default.SESSION_STATUSES.running + "' which is not allowed."); + break; + case d.default.SESSION_STATUSES.ended: + this.logNoteVerbose("restarting previously ended session."), o.resetAuthPromise(); + } + let m2; + return R = O.defer(), this._status === d.default.SESSION_STATUSES.ended && O.all([o.bootstrapLanguageDataLoaded, o.featureTogglesLoaded, o.divisionsLoaded]).then(() => { + this._setFactoryFlowStartupComplete(); + }), this._removeTtsListeners(), s.serviceListen(s.ttsEngineChanged, this._boundTtsEngineChanged), s.serviceListen(s.ttsEngineVoiceChanged, this._boundTtsEngineVoiceChanged), this.logNote("starting session authorization."), A.authorize(), this.logNoteVerbose("setting session status to '" + d.default.SESSION_STATUSES.running + "'."), this._status = d.default.SESSION_STATUSES.running, this._sessionStartDeferred = O.defer(), c.default.cacheEnabled = null !== (_2 = null == p2 ? void 0 : p2.cacheEnabled) && void 0 !== _2 && _2, c.default.showDiagnostics = null !== (h2 = null == p2 ? void 0 : p2.showCacheDiagnostics) && void 0 !== h2 && h2, n3.authToken ? (m2 = this._coreInitializeEnvironment(e3) + ", authToken: '" + n3.authToken + "'", a.setAuthToken(n3.authToken)) : (a.overrideProperties({ client: n3.clientId, client_secret: n3.clientSecret }), m2 = `${this._coreInitializeEnvironment(e3)}, clientId: '${n3.clientId}', clientSecret: '${n3.clientSecret}', isClientCredentialsOAuthClient: '${n3.isClientCredentialsClient}'`), this.logNote("architect scripting version: 0.66.1"), this.logNote("core environment configuration. " + m2), r2.default.isFunction(i3) && (this.logNote("end session callback function specified."), this._endCallbackFunction = i3), this._sessionEnded = false, this._endExitCode = 0, this._getDiscoveryProperties().then(() => { + this._coreAuthenticate(n3, u2).then(() => { + this.logNote(`starting session startup initialization for '${u2}'.`); + const e4 = new Promise((e5) => setTimeout(e5, 5e3)); + Promise.race([e4, l.getInitialConnected()]).finally(() => { + const e5 = "session startup initialization for " + u2 + " complete."; + t3 ? this.executeCallback(this, u2, t3, this, true, e5) : this.logNote(e5 + " No callback function supplied so nothing to do."); + }); + }).catch((e4) => this._endSessionWithReservedError("Unable to authenticate.", e4)); + }).catch((e4) => this._endSessionWithReservedError("Unable to read discovery properties.", e4)), this._boundTokenRevoked = this._endSessionWithReservedError.bind(this, "User has been logged out."), s.serviceListen(s.tokenRevoked, this._boundTokenRevoked), this._sessionStartDeferred.promise; + } + get archSessionId() { + return a.archSessionId; + } + get authToken() { + return this._coreConfigured ? a.getAuthToken() : void 0; + } + get displayTypeName() { + return "ArchSession"; + } + end(e3) { + this._sessionEnded ? this.logItemWarning(this._infoMethod("end"), "the end method is being called and the session status already ended. Exiting end call.") : (r2.default.isUndefined(e3) ? e3 = false : r2.default.isBoolean(e3) || (this.logItemWarning(this._infoParm("processPendingAsyncWork", "end"), "a non-boolean value was specified for processPendingAsyncWork. Architect Scripting will use the value false for processPendingAsyncWork."), e3 = false), this._cleanupSessionResources(), this._determineEndPromiseToResolve(e3).then(() => { + this._sessionEnded = true, this._invokeSessionEndingCallback(), this.logNoteVerbose("setting session status to '" + d.default.SESSION_STATUSES.ended + "'."), this._status = d.default.SESSION_STATUSES.ended, this._determineEndPromiseToResolve(e3).then(() => { + this.logNote("ending with exit code: " + this.endExitCode), this._endTerminatesProcess ? (this.logNote("session is configured to terminate the process when ending."), process && r2.default.isFunction(process.exit) ? (this.logNote("now exiting the process with exit code: " + this.endExitCode), process.exit(this.endExitCode)) : this.logError("unable to exit the process because unable to determine the process or find an exit method to call.")) : this.logNote("the session is ending but is not configured to terminate the process in which it is running."); + }).finally(() => { + this._sessionStartDeferred && (this.logNote("resolving session start promise."), this._sessionStartDeferred.resolve(), this._sessionStartDeferred = void 0, c.default.cacheEnabled && c.default.showDiagnostics && c.default.logCacheStats()); + }); + })); + } + get endExitCode() { + return this._endExitCode; + } + set endExitCode(e3) { + const t3 = this._infoPropSet("newEndExitCode", "endExitCode"); + this._checkItemIsValidLiteralInt(t3, e3), this._checkItem(t3, 99 === e3, "The exit code of 99 cannot be set because it is reserved for use by Architect Scripting."), this.logNote("setting the session end exit code to " + e3), this._endExitCode = e3; + } + get useRegionalHost() { + return this._useRegionalHost; + } + set useRegionalHost(e3) { + this._checkItemIsValidLiteralBool(this._infoPropSet("newUseRegionalHost", "useRegionalHost"), e3), this.logNote("setting the session useRegionalHost setting to " + e3), this._useRegionalHost = e3; + } + get endMode() { + return this._endMode; + } + set endMode(e3) { + this._checkItemIsValidLiteralStringEnum(this._infoPropSet("newEndMode", "endMode"), e3, d.default.SESSION_END_MODES_ALL), this.logNote("setting the session end mode to '" + e3 + "'"), this._endMode = e3; + } + get endTerminatesProcess() { + return this._endTerminatesProcess; + } + set endTerminatesProcess(e3) { + this._checkItemIsValidLiteralBool(this._infoPropSet("newValue", "endTerminatesProcess"), e3), this.logNote("setting the endTerminatesProcess to " + e3), this._endTerminatesProcess = e3; + } + endWithLogout(e3) { + r2.default.isUndefined(e3) ? e3 = false : r2.default.isBoolean(e3) || (this.logItemWarning(this._infoParm("processPendingAsyncWork", "endWithLogout"), "a non-boolean value was specified for processPendingAsyncWork. Architect Scripting will use the value false for processPendingAsyncWork."), e3 = false), this._determineEndPromiseToResolve(e3).then(() => { + this._invokeSessionEndingCallback(), this._determineEndPromiseToResolve(e3).then(() => { + a.getAuthToken() ? (this.logNote("logging out..."), v.disconnect(a.getAuthToken()).then(() => { + a.setAuthToken(void 0); + const e4 = a.getDisconnectUrl(); + I.open(e4), this.logNote("logged out."); + }).catch((e4) => this.logError("logout failure. Error: " + e4)).finally(() => this.end())) : this.end(); + }); + }); + } + get environment() { + return this._coreConfigured ? a.values.env : void 0; + } + get host() { + return this._coreConfigured ? a.values.host : void 0; + } + get isArchSession() { + return true; + } + get isConnected() { + return a.isConnected(); + } + get logStr() { + const e3 = ["ArchSession"]; + this._appendLogStrEnvironment(e3, this.environment), this._appendLogStrHost(e3, this.host), this._appendLogStrRegion(e3, this.region), this._appendLogStrSessionId(e3, this.archSessionId); + const t3 = this.orgInfo; + return t3 && (t3.name && this._appendLogStrOrgName(e3, t3.name), t3.id && this._appendLogStrOrgId(e3, t3.id)), this._createLogStrFromParts(e3); + } + get orgId() { + return this.logDeprecatedPropertyWarning(this._infoPropGet("orgId"), "orgInfo", "Then access the id property off of the orgInfo to get the organization identifier."), this.orgInfo.id; + } + get orgName() { + return this.logDeprecatedPropertyWarning(this._infoPropGet("orgName"), "orgInfo", "Then access the name property off of the orgInfo to get the organization name."), this.orgInfo.name; + } + get orgInfo() { + return this._organizationInfo; + } + get region() { + return this._coreConfigured ? a.values.region : void 0; + } + startWithAuthToken(e3, t3, i3, n3, r3, o2) { + return this._checkItemIsValidFunction(this._infoParm("callbackFunctionStart", "startWithAuthToken"), t3), this._checkItemIsValidLiteralString(this._infoParm("authToken", "startWithAuthToken"), i3), n3 && this._checkItemIsValidFunction(this._infoParm("callbackFunctionEnd", "startWithAuthToken"), n3), this._checkItemIsValidLiteralBool(this._infoParm("isClientCredentialsAuthToken", "startWithAuthToken"), r3, true), this._checkItemIsValidJsonObject(this._infoParm("options", "startWithAuthToken"), o2, true), this._getLocationInfoAndStartAndRun(e3, t3, n3, { authToken: i3, isClientCredentialsAuthToken: r3 }, "startWithAuthToken", o2); + } + startWithClientIdAndSecret(e3, t3, i3, n3, o2, a2, s2) { + return this._checkItemIsValidFunction(this._infoParm("callbackFunctionStart", "startWithClientIdAndSecret"), t3), this._checkItemIsValidLiteralString(this._infoParm("clientId", "startWithClientIdAndSecret"), i3), this._checkItemIsValidLiteralString(this._infoParm("clientSecret", "startWithClientIdAndSecret"), n3), o2 && this._checkItemIsValidFunction(this._infoParm("callbackFunctionEnd", "startWithClientIdAndSecret"), o2), this._checkItemIsValidLiteralBool(this._infoParm("isClientCredentialsOAuthClient", "startWithClientIdAndSecret"), a2, true), this._checkItemIsValidJsonObject(this._infoParm("options", "startWithClientIdAndSecret"), s2, true), (r2.default.isUndefined(a2) || null === a2) && (a2 = false), this._getLocationInfoAndStartAndRun(e3, t3, o2, { clientId: i3, clientSecret: n3, isClientCredentialsClient: a2 }, "startWithClientIdAndSecret", s2); + } + _getLocationInfoAndStartAndRun(e3, t3, i3, n3, r3, o2) { + let a2; + try { + return a2 = this._getLocationInfo(e3, r3), this._startAndRun(a2, t3, i3, n3, r3, o2); + } catch (e4) { + this._endSessionWithReservedError(); + } + } + get status() { + return this._status; + } + get cacheStats() { + return c.default.getCacheStats(); + } + get isCacheEnabled() { + return c.default.cacheEnabled; + } + get isShowCacheDiagnosticsEnabled() { + return c.default.showDiagnostics; + } + } + t2.ArchSession = M; + const F = new M(); + t2.default = F; + }, 94241: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importDefault(i2(92140)), o = n2.__importDefault(i2(78432)), a = n2.__importDefault(i2(94225)), s = i2(80428), l = n2.__importDefault(i2(4648)), u = i2(53476), d = i2(79519), c = i2(66381), p = n2.__importDefault(i2(67336)), _ = r2.default.invert(s.expressionTypeNames); + class h extends p.default { + constructor(e3, t3) { + super(e3), t3 || (this._checkItem(this._infoParmCtor("coreExpressionType.model"), !e3.model, "the core expression type does not have a model property"), this._checkItem(this._infoParmCtor("coreExpressionType.model.support"), !e3.model.support, "the core expression type model does not have a support property"), this._checkItem(this._infoParmCtor("coreExpressionType.model.support.expressionDataType"), !e3.model.support.expressionDataType, "the core expression type model's support property does not have an expression data type"), (0, u.isCustomJsonExpressionType)(e3) ? (t3 = e3.customTypeName.replace(/[\s-]+/g, ""), (null == e3 ? void 0 : e3.customTypeNamespace) === d.CustomJsonNamespace.architect && (null == t3 ? void 0 : t3.length) > 0 && (t3 = (0, c.convertPascalToCamelCase)(t3))) : t3 = _[e3.model.support.expressionDataType], this._checkItem(this._infoParmCtor("coreExpressionType.model.support.expressionDataType"), !t3, "data type name could be determined")), this._name = t3 + (e3.isCollection && !t3.endsWith("Collection") ? "Collection" : ""); + } + _getCoreViewModelTyped() { + return this._getCoreViewModel(); + } + _getCoreViewModelJsonType() { + const e3 = this._getCoreViewModelTyped(); + if (null == e3 ? void 0 : e3.isJsonType) return e3; + } + get name() { + return this._name; + } + get logStr() { + if (!this._getCoreViewModel()) return this.logStrTypeOnly; + const e3 = []; + return this._appendLogStrLabel(e3, this.label), this._appendLogStrIsCollection(e3, this.isCollection), this._createLogStrFromParts(e3); + } + get displayTypeName() { + return "ArchDataType"; + } + get isAnAnyType() { + return !!this._getCoreViewModelTyped().isSupportedByAny; + } + get isArchDataType() { + return true; + } + isAvailableForFlowType(e3) { + return this._ensureSessionIsConnected(this._infoMethod("isAvailableForFlowType"), a.default), this._checkItemIsValidLiteralStringEnum(this._infoParm("flowType", "isAvailableForFlowType"), e3, o.default.FLOW_TYPES_ALL), !!this._getCoreViewModelTyped().isAvailableForFlowType(e3, true); + } + isAvailableForFlow(e3) { + return this._ensureSessionIsConnected(this._infoMethod("isAvailableForFlow"), a.default), this._checkItem(this._infoParm("archBaseFlow", "isAvailableForFlow"), !e3 || !e3.isArchBaseFlow, "you must pass in a valid ArchBaseFlow instance."), !!this._getCoreViewModel().isAvailableForFlow(e3, true); + } + isAvailableAsInputForFlowType(e3) { + return this._ensureSessionIsConnected(this._infoMethod("isAvailableAsInputForFlowType"), a.default), this._checkItemIsValidLiteralStringEnum(this._infoParm("flowType", "isAvailableAsInputForFlowType"), e3, o.default.FLOW_TYPES_ALL), !!this._getCoreViewModelTyped().isAvailableAsInputForFlowType(e3); + } + isAvailableAsOutputForFlowType(e3) { + return this._ensureSessionIsConnected(this._infoMethod("isAvailableAsOutputForFlowType"), a.default), this._checkItemIsValidLiteralStringEnum(this._infoParm("flowType", "isAvailableAsOutputForFlowType"), e3, o.default.FLOW_TYPES_ALL), !!this._getCoreViewModelTyped().isAvailableAsOutputForFlowType(e3); + } + get isCollection() { + var e3; + return !!(null === (e3 = this._getCoreViewModelTyped()) || void 0 === e3 ? void 0 : e3.isCollection); + } + get isComplex() { + var e3; + return !!(null === (e3 = this._getCoreViewModelTyped()) || void 0 === e3 ? void 0 : e3.isComplex); + } + get valueCanBeLiteral() { + return this._getCoreViewModelTyped().supportsLiteralEditor; + } + isScriptCreatableForFlowType(e3) { + return this._ensureSessionIsConnected(this._infoMethod("isScriptCreatableForFlowType"), a.default), this._checkItemIsValidLiteralStringEnum(this._infoParm("flowType", "isScriptCreatableForFlowType"), e3, o.default.FLOW_TYPES_ALL), this._getCoreViewModelTyped().isUserCreatableForFlowType(e3); + } + isScriptCreatableForFlow(e3) { + return this._ensureSessionIsConnected(this._infoMethod("isScriptCreatableForFlow"), a.default), this._checkItem(this._infoParm("archBaseFlow", "isScriptCreatableForFlow"), !e3 || !e3.isArchBaseFlow, "you must pass in a valid ArchBaseFlow instance."), this._getCoreViewModelTyped().isUserCreatableForFlow(e3._getCoreViewModel()); + } + get label() { + return this._getCoreViewModelTyped().displayString; + } + get isCustomJsonType() { + return !!this._getCoreViewModelTyped().isCustomType; + } + get customJsonNamespace() { + var e3; + return this._checkMethodCallFeatureIsAvailable(this._infoPropGet("customJsonNamespace"), l.default.customJSONV2), (null === (e3 = this._getCoreViewModelJsonType()) || void 0 === e3 ? void 0 : e3.customTypeNamespace) || ""; + } + getCustomJsonSchema() { + this._checkMethodCallFeatureIsAvailable(this._infoMethod("getCustomJsonSchema"), l.default.customJSONV2); + const e3 = this._getCoreViewModelJsonType(); + if (null == e3 ? void 0 : e3.isCustomType) { + const t3 = e3.getCustomDataTypeDefinition(); + return this.coreFactory.createArchWrapper(t3); + } + } + get id() { + return this._getCoreViewModelTyped().expressionType; + } + get hasProperties() { + return this._getCoreViewModelTyped().hasProperties(); + } + get hasPropertiesAndAllAreReadOnly() { + return this._getCoreViewModelTyped().hasPropertiesAndAllAreReadOnly; + } + } + t2.default = h; + }, 94335: (e2, t2, i2) => { + const n2 = i2(2444), r2 = i2(90807), o = i2(7401), { formActionType: a } = i2(30801), { ResponseLibrary: s } = i2(23436); + function l() { + Object.defineProperties(this, { _form: { writable: true }, _formCompletionTimeout: { writable: true }, _outputs: { writable: true }, _responseLibrary: { writable: true } }), this.formId = void 0, this.formName = void 0, l.baseConstructor.apply(this, arguments); + } + n2.extend(l, a, true), Object.defineProperties(l.prototype, { pasteReIdOrRename: { value: function(e3) { + l._super.pasteReIdOrRename.apply(this, arguments), this.formCompletionTimeout.pasteReIdOrRename(e3); + for (let t3 = 0; t3 < this.outputs.length; t3++) this.outputs[t3].pasteReIdOrRename(e3); + } }, pasteResolveOldToNewValues: { value: function(e3) { + l._super.pasteResolveOldToNewValues.apply(this, arguments), this.formCompletionTimeout.pasteResolveOldToNewValues(e3); + for (let t3 = 0; t3 < this.outputs.length; t3++) this.outputs[t3].pasteResolveOldToNewValues(e3); + } }, formCompletionTimeout: { enumerable: true, get: function() { + return this._formCompletionTimeout; + }, set: function(e3) { + this._formCompletionTimeout = this.reviveItem(e3, o); + } }, outputs: { enumerable: true, get: function() { + return this._outputs; + }, set: function(e3) { + this._outputs = this.reviveArray(e3, r2); + } }, responseLibrary: { enumerable: true, get: function() { + return this._responseLibrary; + }, set: function(e3) { + this._responseLibrary = this.reviveItem(e3, s); + } } }), e2.exports = l; + }, 94380: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(54757)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "currencyCollection"; + } + get displayTypeName() { + return "ArchValueCurrencyCollection"; + } + get isArchValueCurrencyCollection() { + return true; + } + } + t2.default = r2; + }, 94384: (e2, t2, i2) => { + const n2 = i2(24032), r2 = i2(36019).default, o = i2(21623), a = n2.getTopic("dialogEngineApi"); + class s { + } + s.prototype.getBot = function(e3) { + return r2.build(o.getBot).templateParams({ id: e3 }).call(); + }, s.prototype.getBot.api = o.getBot, s.prototype.getBots = function(e3) { + return r2.build(o.getBots).queryParams(e3.getSearchQueryParams()).call(); + }, s.prototype.getBots.api = o.getBots, s.prototype.getVersion = function(e3, t3) { + t3 && t3.additionalParams && t3.additionalParams.botId || a.errorWithStack(null, `No botId was included for dialogEngine.getVersion call with search params: ${JSON.stringify(t3)}`); + const i3 = { versionId: e3, botId: t3.additionalParams.botId }; + return r2.build(o.getVersion).templateParams(i3).call(); + }, s.prototype.getVersion.api = o.getVersion, e2.exports = new s(); + }, 94418: function(e2, t2, i2) { + !(function(e3) { + "use strict"; + var t3 = "stycze\u0144_luty_marzec_kwiecie\u0144_maj_czerwiec_lipiec_sierpie\u0144_wrzesie\u0144_pa\u017Adziernik_listopad_grudzie\u0144".split("_"), i3 = "stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_wrze\u015Bnia_pa\u017Adziernika_listopada_grudnia".split("_"), n2 = [/^sty/i, /^lut/i, /^mar/i, /^kwi/i, /^maj/i, /^cze/i, /^lip/i, /^sie/i, /^wrz/i, /^paź/i, /^lis/i, /^gru/i]; + function r2(e4) { + return e4 % 10 < 5 && e4 % 10 > 1 && ~~(e4 / 10) % 10 != 1; + } + function o(e4, t4, i4) { + var n3 = e4 + " "; + switch (i4) { + case "ss": + return n3 + (r2(e4) ? "sekundy" : "sekund"); + case "m": + return t4 ? "minuta" : "minut\u0119"; + case "mm": + return n3 + (r2(e4) ? "minuty" : "minut"); + case "h": + return t4 ? "godzina" : "godzin\u0119"; + case "hh": + return n3 + (r2(e4) ? "godziny" : "godzin"); + case "ww": + return n3 + (r2(e4) ? "tygodnie" : "tygodni"); + case "MM": + return n3 + (r2(e4) ? "miesi\u0105ce" : "miesi\u0119cy"); + case "yy": + return n3 + (r2(e4) ? "lata" : "lat"); + } + } + e3.defineLocale("pl", { months: function(e4, n3) { + return e4 ? /D MMMM/.test(n3) ? i3[e4.month()] : t3[e4.month()] : t3; + }, monthsShort: "sty_lut_mar_kwi_maj_cze_lip_sie_wrz_pa\u017A_lis_gru".split("_"), monthsParse: n2, longMonthsParse: n2, shortMonthsParse: n2, weekdays: "niedziela_poniedzia\u0142ek_wtorek_\u015Broda_czwartek_pi\u0105tek_sobota".split("_"), weekdaysShort: "ndz_pon_wt_\u015Br_czw_pt_sob".split("_"), weekdaysMin: "Nd_Pn_Wt_\u015Ar_Cz_Pt_So".split("_"), longDateFormat: { LT: "HH:mm", LTS: "HH:mm:ss", L: "DD.MM.YYYY", LL: "D MMMM YYYY", LLL: "D MMMM YYYY HH:mm", LLLL: "dddd, D MMMM YYYY HH:mm" }, calendar: { sameDay: "[Dzi\u015B o] LT", nextDay: "[Jutro o] LT", nextWeek: function() { + switch (this.day()) { + case 0: + return "[W niedziel\u0119 o] LT"; + case 2: + return "[We wtorek o] LT"; + case 3: + return "[W \u015Brod\u0119 o] LT"; + case 6: + return "[W sobot\u0119 o] LT"; + default: + return "[W] dddd [o] LT"; + } + }, lastDay: "[Wczoraj o] LT", lastWeek: function() { + switch (this.day()) { + case 0: + return "[W zesz\u0142\u0105 niedziel\u0119 o] LT"; + case 3: + return "[W zesz\u0142\u0105 \u015Brod\u0119 o] LT"; + case 6: + return "[W zesz\u0142\u0105 sobot\u0119 o] LT"; + default: + return "[W zesz\u0142y] dddd [o] LT"; + } + }, sameElse: "L" }, relativeTime: { future: "za %s", past: "%s temu", s: "kilka sekund", ss: o, m: o, mm: o, h: o, hh: o, d: "1 dzie\u0144", dd: "%d dni", w: "tydzie\u0144", ww: o, M: "miesi\u0105c", MM: o, y: "rok", yy: o }, dayOfMonthOrdinalParse: /\d{1,2}\./, ordinal: "%d.", week: { dow: 1, doy: 4 } }); + })(i2(95093)); + }, 94434: (e2) => { + e2.exports = { askCommon: { invalidInputReceived: "\u0647\u0630\u0627 \u063A\u064A\u0631 \u0635\u0627\u0644\u062D.", noInputReceived: "\u0644\u0645 \u0623\u062A\u0644\u0642\u0649 \u0623\u064A \u0645\u062F\u062E\u0644\u0627\u062A." }, askForBoolean: { noInput: '\u0642\u0644 "\u0646\u0639\u0645" \u0625\u0630\u0627 \u0643\u0646\u062A \u062A\u0631\u064A\u062F \u0627\u0644\u0645\u062A\u0627\u0628\u0639\u0629 \u0623\u0648 "\u0644\u0627" \u0625\u0630\u0627 \u0644\u0645 \u062A\u0643\u0646 \u062A\u0631\u064A\u062F \u0627\u0644\u0645\u062A\u0627\u0628\u0639\u0629.', noMatch: '\u064A\u0631\u062C\u0649 \u0623\u0646 \u062A\u0642\u0648\u0644 "\u0646\u0639\u0645" \u0623\u0648 "\u0644\u0627". \u0647\u0644 \u062A\u0631\u064A\u062F \u0627\u0644\u0645\u062A\u0627\u0628\u0639\u0629\u061F', question: "\u0647\u0644 \u062A\u0631\u064A\u062F \u0627\u0644\u0645\u062A\u0627\u0628\u0639\u0629\u061F", noInputDigitalBot: '\u0623\u062F\u062E\u0644 "\u0646\u0639\u0645" \u0625\u0630\u0627 \u0643\u0646\u062A \u062A\u0631\u064A\u062F \u0627\u0644\u0645\u062A\u0627\u0628\u0639\u0629 \u0623\u0648 "\u0644\u0627" \u0625\u0630\u0627 \u0643\u0646\u062A \u0644\u0627 \u062A\u0631\u064A\u062F \u0627\u0644\u0645\u062A\u0627\u0628\u0639\u0629.', noMatchDigitalBot: '\u064A\u0631\u062C\u0649 \u0625\u062F\u062E\u0627\u0644 "\u0646\u0639\u0645" \u0623\u0648 "\u0644\u0627". \u0647\u0644 \u062A\u0631\u064A\u062F \u0627\u0644\u0645\u062A\u0627\u0628\u0639\u0629\u061F' }, askForIntent: { noInput: '\u062A\u062D\u062F\u062B \u0641\u0642\u0637 \u062C\u0645\u0644\u0629 \u0642\u0635\u064A\u0631\u0629 \u062A\u0635\u0641 \u0627\u0633\u062A\u0639\u0644\u0627\u0645\u0643. \u0639\u0644\u0649 \u0633\u0628\u064A\u0644 \u0627\u0644\u0645\u062B\u0627\u0644\u060C "\u062A\u062D\u0642\u0642 \u0645\u0646 \u0631\u0635\u064A\u062F \u062D\u0633\u0627\u0628\u064A"', noMatch: "\u0623\u062E\u0628\u0631\u0646\u064A \u0645\u0631\u0629 \u0623\u062E\u0631\u0649 \u0628\u0645\u0627 \u062A\u0631\u064A\u062F \u0641\u0639\u0644\u0647.", question: "\u0645\u0627 \u0627\u0644\u0630\u064A \u062A\u0648\u062F \u0641\u0639\u0644\u0647\u061F", noInputDigitalBot: '\u064A\u0631\u062C\u0649 \u0625\u062F\u062E\u0627\u0644 \u062C\u0645\u0644\u0629 \u0642\u0635\u064A\u0631\u0629 \u062A\u0635\u0641 \u0627\u0633\u062A\u0639\u0644\u0627\u0645\u0643. \u0639\u0644\u0649 \u0633\u0628\u064A\u0644 \u0627\u0644\u0645\u062B\u0627\u0644\u060C "\u062A\u062D\u0642\u0642 \u0645\u0646 \u0631\u0635\u064A\u062F \u062D\u0633\u0627\u0628\u064A"' }, askForSlot: { askFor: "\u0627\u0637\u0644\u0628 %1$s", noInput: "\u064A\u0631\u062C\u0649 \u0623\u0646 \u062A\u0642\u0648\u0644 \u0623\u0648 \u062A\u062F\u062E\u0644 (\u064A\u0631\u062C\u0649 \u0648\u0636\u0639 \u0627\u0633\u0645 \u0645\u0646\u0641\u0630\u0643 \u0647\u0646\u0627).", noInputWithSlot: "\u064A\u0631\u062C\u0649 \u0623\u0646 \u062A\u0642\u0648\u0644 \u0623\u0648 \u062A\u062F\u062E\u0644 %1$s.", noMatch: "\u064A\u0631\u062C\u0649 \u0625\u0639\u0637\u0627\u0626\u064A (\u064A\u0631\u062C\u0649 \u0625\u062F\u062E\u0627\u0644 \u0627\u0633\u0645 \u0645\u0646\u0641\u0630\u0643 \u0647\u0646\u0627) \u0645\u0631\u0629 \u0623\u062E\u0631\u0649.", noMatchWithSlot: "\u064A\u0631\u062C\u0649 \u0625\u0639\u0637\u0627\u0626\u064A %1$s \u0645\u0631\u0629 \u0623\u062E\u0631\u0649.", question: "\u0645\u0627 \u0647\u0648 (\u064A\u0631\u062C\u0649 \u0625\u062F\u062E\u0627\u0644 \u0627\u0633\u0645 \u0645\u0646\u0641\u0630\u0643 \u0647\u0646\u0627)\u061F", questionWithSlot: "\u0645\u0627 \u0647\u0648 %1$s\u061F", pleaseEnterSlotNameHere: "(\u064A\u0631\u062C\u0649 \u0648\u0636\u0639 \u0627\u0633\u0645 \u0645\u0646\u0641\u0630\u0643 \u0647\u0646\u0627)", noInputDigitalBot: "\u064A\u0631\u062C\u0649 \u0625\u062F\u062E\u0627\u0644 (\u064A\u0631\u062C\u0649 \u0648\u0636\u0639 \u0627\u0633\u0645 \u0645\u0646\u0641\u0630\u0643 \u0647\u0646\u0627).", noInputWithSlotDigitalBot: "\u064A\u0631\u062C\u0649 \u0625\u062F\u062E\u0627\u0644 %1$s.", continuationPromptWithSlot: "\u0644\u0642\u062F \u062D\u0635\u0644\u062A \u0639\u0644\u0649 {{Slot.%1$s}} \u062D\u062A\u0649 \u0627\u0644\u0622\u0646\u060C \u0623\u0631\u062C\u0648 \u0627\u0644\u0645\u062A\u0627\u0628\u0639\u0629." }, askForNextSlot: { noInput: '\u0642\u0644 "\u0646\u0639\u0645" \u0625\u0630\u0627 \u0643\u0627\u0646 \u0644\u062F\u064A\u0643 \u0627\u0633\u062A\u0639\u0644\u0627\u0645 \u0622\u062E\u0631\u060C \u0623\u0648 "\u0644\u0627" \u0644\u0625\u0646\u0647\u0627\u0621 \u0627\u0644\u0645\u0643\u0627\u0644\u0645\u0629.', noMatch: '\u0642\u0644 "\u0646\u0639\u0645" \u0625\u0630\u0627 \u0643\u0627\u0646 \u0644\u062F\u064A\u0643 \u0627\u0633\u062A\u0639\u0644\u0627\u0645 \u0622\u062E\u0631\u060C \u0623\u0648 "\u0644\u0627" \u0644\u0625\u0646\u0647\u0627\u0621 \u0627\u0644\u062C\u0644\u0633\u0629.', question: "\u0647\u0644 \u0647\u0646\u0627\u0643 \u0623\u064A \u0634\u064A\u0621 \u0622\u062E\u0631 \u0623\u0633\u062A\u0637\u064A\u0639 \u0645\u0633\u0627\u0639\u062F\u062A\u0643 \u0641\u064A\u0647\u061F", noInputDigitalBot: '\u0623\u062F\u062E\u0644 "\u0646\u0639\u0645" \u0625\u0630\u0627 \u0643\u0627\u0646 \u0644\u062F\u064A\u0643 \u0627\u0633\u062A\u0639\u0644\u0627\u0645 \u0622\u062E\u0631\u060C \u0623\u0648 "\u0644\u0627" \u0644\u0625\u0646\u0647\u0627\u0621 \u0627\u0644\u062C\u0644\u0633\u0629.', noMatchDigitalBot: '\u0623\u062F\u062E\u0644 "\u0646\u0639\u0645" \u0625\u0630\u0627 \u0643\u0627\u0646 \u0644\u062F\u064A\u0643 \u0627\u0633\u062A\u0639\u0644\u0627\u0645 \u0622\u062E\u0631\u060C \u0623\u0648 "\u0644\u0627" \u0644\u0625\u0646\u0647\u0627\u0621 \u0627\u0644\u062C\u0644\u0633\u0629.' }, askForPayment: { noInputDigitalBot: "\u064A\u064F\u0631\u062C\u0649 \u062A\u0642\u062F\u064A\u0645 \u0645\u0639\u0644\u0648\u0645\u0627\u062A \u0627\u0644\u062F\u0641\u0639 \u0627\u0644\u062E\u0627\u0635\u0629 \u0628\u0643 \u0644\u0644\u0645\u062A\u0627\u0628\u0639\u0629.", noMatchDigitalBot: "\u0644\u0645 \u0623\u0641\u0647\u0645 \u0631\u062F\u0643. \u062A\u064F\u0631\u062C\u0649 \u0625\u0639\u0627\u062F\u0629 \u0627\u0644\u0645\u062D\u0627\u0648\u0644\u0629." }, askForAuthentication: { noInputDigitalBot: "\u064A\u064F\u0631\u062C\u0649 \u062A\u0642\u062F\u064A\u0645 \u0645\u0639\u0644\u0648\u0645\u0627\u062A \u0627\u0644\u0645\u0635\u0627\u062F\u0642\u0629 \u0627\u0644\u062E\u0627\u0635\u0629 \u0628\u0643 \u0644\u0644\u0645\u062A\u0627\u0628\u0639\u0629.", noMatchDigitalBot: "\u0644\u0645 \u0623\u0641\u0647\u0645 \u0631\u062F\u0643. \u062A\u064F\u0631\u062C\u0649 \u0625\u0639\u0627\u062F\u0629 \u0627\u0644\u0645\u062D\u0627\u0648\u0644\u0629." }, askSurveyQuestion: { notApplicable: "\u063A\u064A\u0631 \u0642\u0627\u0628\u0644 \u0644\u0644\u062A\u0637\u0628\u064A\u0642", surveyAnswerOptionSequence: "\u0627\u0636\u063A\u0637 \u0639\u0644\u0649 %1$s \u0644\u0640 '%2$s'.", surveyAnswerNotApplicableSequence: "\u0627\u0636\u063A\u0637 \u0639\u0644\u0649 \u0639\u0644\u0627\u0645\u0629 \u0627\u0644\u0646\u062C\u0645\u0629 \u0644\u062A\u062D\u062F\u064A\u062F \u063A\u064A\u0631 \u0642\u0627\u0628\u0644 \u0644\u0644\u062A\u0637\u0628\u064A\u0642.", surveyAnswerNotApplicableWithQuestionSequence: "%1$s. \u0627\u0636\u063A\u0637 \u0639\u0644\u0649 \u0639\u0644\u0627\u0645\u0629 \u0627\u0644\u0646\u062C\u0645\u0629 \u0644\u062A\u062D\u062F\u064A\u062F \u063A\u064A\u0631 \u0642\u0627\u0628\u0644 \u0644\u0644\u062A\u0637\u0628\u064A\u0642.", voiceSurveyNoInputText: "\u064A\u064F\u0631\u062C\u0649 \u0627\u0644\u0625\u062C\u0627\u0628\u0629 \u0639\u0646 \u0627\u0644\u0633\u0624\u0627\u0644.", voiceSurveyNoMatchText: "\u0644\u0645 \u0623\u0641\u0647\u0645." }, commonModule: { exitCommonModule: "\u062E\u0631\u0648\u062C \u0645\u0646 \u0627\u0644\u0648\u062D\u062F\u0629 \u0627\u0644\u0645\u0634\u062A\u0631\u0643\u0629" }, form: { noInputDigitalBot: "\u064A\u064F\u0631\u062C\u0649 \u0625\u0643\u0645\u0627\u0644 \u0627\u0644\u0646\u0645\u0648\u0630\u062C \u0644\u0644\u0645\u062A\u0627\u0628\u0639\u0629.", noMatchDigitalBot: "\u064A\u064F\u0631\u062C\u0649 \u0625\u0643\u0645\u0627\u0644 \u0627\u0644\u0646\u0645\u0648\u0630\u062C \u0644\u0644\u0645\u062A\u0627\u0628\u0639\u0629." }, messagingTemplate: { noInputDigitalBot: "\u064A\u064F\u0631\u062C\u064A \u062A\u062D\u062F\u064A\u062F \u0623\u062D\u062F \u0627\u0644\u062E\u064A\u0627\u0631\u0627\u062A \u0627\u0644\u0645\u062A\u0648\u0641\u0631\u0629.", noMatchDigitalBot: "\u064A\u064F\u0631\u062C\u064A \u062A\u062D\u062F\u064A\u062F \u0623\u062D\u062F \u0627\u0644\u062E\u064A\u0627\u0631\u0627\u062A \u0627\u0644\u0645\u062A\u0648\u0641\u0631\u0629." }, knowledgeSettings: { knowledgeAnswerHighlightFlowProgressionDefault: "\u0645\u062A\u0627\u0628\u0639\u0629", knowledgeAnswerHighlightFullArticleDefault: "\u0639\u0631\u0636 \u0627\u0644\u0645\u0642\u0627\u0644\u0629 \u0627\u0644\u0643\u0627\u0645\u0644\u0629", knowledgeInitialResponseMulti: "\u0644\u0645\u0633\u0627\u0639\u062F\u062A\u064A \u0641\u064A \u062A\u0648\u0636\u064A\u062D \u0647\u062F\u0641\u0643\u060C \u064A\u0631\u062C\u0649 \u0627\u062E\u062A\u064A\u0627\u0631 \u0631\u0642\u0645 \u0645\u0646 \u0627\u0644\u0642\u0627\u0626\u0645\u0629 \u0627\u0644\u062A\u0627\u0644\u064A\u0629:", knowledgeInitialResponseMultiRetry: "\u064A\u0631\u062C\u0649 \u0627\u062E\u062A\u064A\u0627\u0631 \u0631\u0642\u0645\u060C \u0639\u0644\u0649 \u0633\u0628\u064A\u0644 \u0627\u0644\u0645\u062B\u0627\u0644 '1'.\n\u0625\u0644\u064A\u0643 \u0642\u0627\u0626\u0645\u0629 \u0627\u0644\u062E\u064A\u0627\u0631\u0627\u062A \u0645\u0631\u0629 \u0623\u062E\u0631\u0649:", knowledgeNoMatch: "\u0644\u0627 \u0634\u064A\u0621 \u0645\u0646 \u0630\u0644\u0643", knowledgeConfirmation: "\u0647\u0644 \u0623\u062C\u0627\u0628 \u0647\u0630\u0627 \u0639\u0644\u0649 \u0633\u0624\u0627\u0644\u0643\u061F", knowledgeFollowup: "\u0623\u0631\u062C\u0648 \u0623\u0646 \u0623\u0643\u0648\u0646 \u0642\u062F \u0623\u062C\u0628\u062A \u0639\u0644\u0649 \u0633\u0624\u0627\u0644\u0643. \u064A\u0645\u0643\u0646\u0643 \u0627\u0644\u0633\u0624\u0627\u0644 \u0639\u0646 \u0623\u064A \u0634\u064A\u0621 \u0622\u062E\u0631 \u0642\u062F \u062A\u0631\u064A\u062F \u0645\u0639\u0631\u0641\u0629 \u0627\u0644\u0645\u0632\u064A\u062F \u0639\u0646\u0647." }, noOverlay: { intent: { intentConfirmationStr1: "\u0623\u0639\u062A\u0642\u062F \u0623\u0646\u0646\u064A \u0623\u0631\u064A\u062F", intentConfirmationStr2: "\u0647\u0644 \u0647\u0630\u0627 \u0635\u062D\u064A\u062D\u061F" }, youSaid: { youSaidConfirmationStr1: "\u0642\u0644\u062A", youSaidConfirmationStr2: "\u0647\u0644 \u0647\u0630\u0627 \u0635\u062D\u064A\u062D\u061F?", youSaidConfirmationStr1DigitalBot: "\u0623\u062F\u062E\u0644\u062A" }, noInput: { noInputStr1: "\u064A\u0631\u062C\u0649 \u0623\u0646 \u062A\u0642\u0648\u0644 \u0623\u0648 \u062A\u062F\u062E\u0644", noInputStr1DigitalBot: "\u064A\u0631\u062C\u0649 \u0625\u062F\u062E\u0627\u0644" }, noMatch: { noMatchStr1: "\u064A\u0631\u062C\u0649 \u0625\u0639\u0637\u0627\u0626\u064A" }, whatIs: { whatIsQuestionStr1: "\u0645\u0627 \u0647\u0648", whatIsQuestionStr2: "\u061F" }, iGotContinuation: { iGotContinuationStr1: "\u0644\u0642\u062F \u062D\u0635\u0644\u062A", iGotContinuationStr2: "\u062D\u062A\u0649 \u0627\u0644\u0622\u0646\u060C \u0623\u0631\u062C\u0648 \u0627\u0644\u0645\u062A\u0627\u0628\u0639\u0629." } }, defaultCallFlowOne: "\u062A\u062F\u0641\u0642 \u0627\u0644\u0645\u0643\u0627\u0644\u0645\u0627\u062A \u0627\u0644\u0627\u0641\u062A\u0631\u0627\u0636\u064A", errorHandlingAgentEscalationConfirmation: "\u062A\u0631\u064A\u062F \u0627\u0644\u062A\u062D\u062F\u062B \u0625\u0644\u0649 \u0645\u0633\u062A\u0634\u0627\u0631. \u0647\u0644 \u0647\u0630\u0627 \u0635\u062D\u064A\u062D\u061F", errorHandlingAgentEscalationHandover: "\u0644\u062D\u0638\u0629 \u0645\u0646 \u0641\u0636\u0644\u0643\u060C \u0648\u0633\u0648\u0641 \u0623\u0648\u0635\u0644\u0643 \u0628\u0634\u062E\u0635 \u0645\u0627.", errorHandlingErrorEventHandover: "\u0645\u0639\u0630\u0631\u0629\u060C \u062D\u062F\u062B \u062E\u0637\u0623. \u0644\u062D\u0638\u0629 \u0645\u0646 \u0641\u0636\u0644\u0643 \u0628\u064A\u0646\u0645\u0627 \u0623\u0648\u0635\u0644\u0643 \u0628\u0634\u062E\u0635 \u0645\u0627 \u064A\u0633\u062A\u0637\u064A\u0639 \u0645\u0633\u0627\u0639\u062F\u062A\u0643.", errorHandlingErrorEventHandoverVoiceSurvey: "\u0639\u0630\u0631\u064B\u0627\u060C \u062D\u062F\u062B \u062E\u0637\u0623. \u0645\u0639 \u0627\u0644\u0633\u0644\u0627\u0645\u0629.", errorHandlingRecognitionEventHandover: "\u0645\u0639\u0630\u0631\u0629\u060C \u0623\u0648\u0627\u062C\u0647 \u0645\u0634\u0643\u0644\u0629 \u0641\u064A \u0641\u0647\u0645\u0643. \u0644\u062D\u0638\u0629 \u0645\u0646 \u0641\u0636\u0644\u0643 \u0648\u0633\u0648\u0641 \u0623\u0648\u0635\u0644\u0643 \u0628\u0634\u062E\u0635 \u0645\u0627 \u064A\u0633\u062A\u0637\u064A\u0639 \u0645\u0633\u0627\u0639\u062F\u062A\u0643.", errorHandlingRecognitionEventHandoverVoiceSurvey: "\u0639\u0630\u0631\u064B\u0627\u060C \u0644\u0627 \u0623\u0633\u062A\u0637\u064A\u0639 \u0641\u0647\u0645\u0643. \u0645\u0639 \u0627\u0644\u0633\u0644\u0627\u0645\u0629.", errorHandlingTTS: "\u0645\u0639\u0630\u0631\u0629\u060C \u062D\u062F\u062B \u062E\u0637\u0623. \u064A\u0631\u062C\u0649 \u0627\u0644\u0645\u062D\u0627\u0648\u0644\u0629 \u0645\u0631\u0629 \u0623\u062E\u0631\u0649.", initialGreetingTTS: "\u0645\u0631\u062D\u0628\u064B\u0627\u060C \u0647\u0630\u0647 \u0647\u064A \u0627\u0644\u062A\u062D\u064A\u0629 \u0627\u0644\u0623\u0648\u0644\u064A\u0629.", initialState: "\u0627\u0644\u062D\u0627\u0644\u0629 \u0627\u0644\u0623\u0648\u0644\u064A\u0629", initialBotState: "\u0627\u0644\u0631\u0648\u0628\u0648\u062A \u0627\u0644\u0627\u0641\u062A\u0631\u0627\u0636\u064A", initialDigitalBotState: "\u0627\u0644\u062A\u062D\u064A\u0629 \u0627\u0644\u0623\u0648\u0644\u064A\u0629", initialSurveyBotState: "\u0631\u0648\u0628\u0648\u062A \u0627\u0644\u0627\u0633\u062A\u0628\u064A\u0627\u0646", intentConfirmation: "\u0623\u0639\u062A\u0642\u062F \u0623\u0646\u0643 \u062A\u0631\u064A\u062F %1$s, \u0647\u0644 \u0647\u0630\u0627 \u0635\u062D\u064A\u062D\u061F", mainMenu: "\u0627\u0644\u0642\u0627\u0626\u0645\u0629 \u0627\u0644\u0631\u0626\u064A\u0633\u064A\u0629", mainMenuTTS: "\u0623\u0646\u062A \u0641\u064A \u0627\u0644\u0642\u0627\u0626\u0645\u0629 \u0627\u0644\u0631\u0626\u064A\u0633\u064A\u0629\u060C \u064A\u0631\u062C\u0649 \u0627\u0644\u0636\u063A\u0637 \u0639\u0644\u0649 9 \u0644\u0644\u0625\u0646\u0647\u0627\u0621", mainTask: "\u0627\u0644\u0645\u0647\u0645\u0629", settingsConfirmationNoInputApology: "\u0645\u0639\u0630\u0631\u0629\u060C \u0644\u0645 \u0623\u0633\u0645\u0639\u0643. \u064A\u0631\u062C\u0649 \u0627\u0644\u0646\u0637\u0642 \u0628\u0643\u0644\u0645\u0629 \u0646\u0639\u0645 \u0623\u0648 \u0644\u0627.", settingsConfirmationNoInputApologyDigitalBot: '\u0645\u0639\u0630\u0631\u0629\u060C \u0644\u0645 \u0623\u0633\u062A\u0644\u0645 \u0631\u062F\u064B\u0627 \u0645\u0646\u0643. \u064A\u0631\u062C\u0649 \u0625\u062F\u062E\u0627\u0644 "\u0646\u0639\u0645" \u0623\u0648 "\u0644\u0627".', settingsConfirmationNoMatchApology: "\u0645\u0639\u0630\u0631\u0629\u060C \u064A\u0631\u062C\u0649 \u0623\u0646 \u062A\u0642\u0648\u0644 \u0646\u0639\u0645 \u0623\u0648 \u0644\u0627.", settingsConfirmationNoMatchApologyDigitalBot: '\u0645\u0639\u0630\u0631\u0629\u060C \u064A\u0631\u062C\u0649 \u0625\u062F\u062E\u0627\u0644 "\u0646\u0639\u0645" \u0623\u0648 "\u0644\u0627".', settingsNoInputApology: "\u0645\u0639\u0630\u0631\u0629\u060C \u0644\u0645 \u0623\u0633\u0645\u0639\u0643.", settingsNoInputApologyDigitalBot: "\u0645\u0639\u0630\u0631\u0629\u060C \u0644\u0645 \u0623\u062A\u0644\u0642 \u0631\u062F\u064B\u0627 \u0645\u0646\u0643.", settingsEndOfSessionMessageDigitalBot: "\u0644\u0645 \u0623\u0633\u0645\u0639 \u0645\u0646\u0643 \u0645\u0646\u0630 \u0641\u062A\u0631\u0629\u060C \u0644\u0630\u0627 \u0633\u0623\u063A\u0644\u0642 \u0627\u0644\u062F\u0631\u062F\u0634\u0629\u060C \u064A\u0631\u062C\u0649 \u0627\u0644\u0631\u062C\u0648\u0639 \u0645\u0631\u0629 \u0623\u062E\u0631\u0649 \u0625\u0630\u0627 \u0643\u0646\u062A \u062A\u0631\u064A\u062F \u0627\u0644\u0645\u0633\u0627\u0639\u062F\u0629 \u062B\u0627\u0646\u064A\u0629. \u0634\u0643\u0631\u064B\u0627 \u0644\u0643.", settingsNoMatchApology: "\u0645\u0639\u0630\u0631\u0629.", settingsNoToConfirmationApology: "\u062E\u0637\u0626\u064A.", periodicStateName: "\u0627\u0644\u062D\u0627\u0644\u0629 \u0627\u0644\u0645\u062A\u0643\u0631\u0631\u0629" }; + }, 94449: (e2, t2, i2) => { + const n2 = i2(75458), r2 = i2(7401), { setUtilizationLabelActionType: o } = i2(30801); + function a() { + Object.defineProperties(this, { _utilizationLabel: { writable: true } }), a.baseConstructor.apply(this, arguments); + } + n2.extend(a, o, true), Object.defineProperties(a.prototype, { pasteResolveOldToNewValues: { value: function(e3) { + a._super.pasteResolveOldToNewValues.apply(this, arguments), this.utilizationLabel.pasteResolveOldToNewValues(e3); + } }, pasteReIdOrRename: { value: function(e3) { + a._super.pasteReIdOrRename.apply(this, arguments), this.utilizationLabel.pasteReIdOrRename(e3); + } }, utilizationLabel: { enumerable: true, get: function() { + return this._utilizationLabel; + }, set: function(e3) { + this._utilizationLabel = this.reviveItem(e3, r2); + } } }), e2.exports = a; + }, 94453: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.addBotFlowActions = function(e3) { + const t3 = e3.startUpObject; + let i3; + e3.botFlowSettings.nluDomainIntents.length && (i3 = t3.addAction(o.askForNLUIntentActionType), i3.createBranchesForAllNLUIntents().forEach((e4) => { + h(i3, e4.branchItem, e4.intent); + })), t3.addAction(e3.isDigitalBotFlow ? p.waitForInputActionType : u.exitBotFlowActionType, i3); + }, t2.addAskForSlotActionsToAskForNluIntentBranch = h, t2.getArchitectTypeForNluType = g, t2.getNluTypeForArchitectType = function(e3, t3) { + return r2.isMatch(e3, d.globalTypes.currencyCollection, r2.settings.exact) || r2.isMatch(e3, d.globalTypes.currency, r2.settings.exact) ? { nluDataType: l.BuiltInEntityType.BuiltInAmountOfMoney } : r2.isMatch(e3, d.globalTypes.dateCollection, r2.settings.exact) || r2.isMatch(e3, d.globalTypes.date, r2.settings.exact) ? { nluDataType: l.BuiltInEntityType.BuiltInDate } : r2.isMatch(e3, d.globalTypes.dateTimeCollection, r2.settings.exact) || r2.isMatch(e3, d.globalTypes.dateTime, r2.settings.exact) ? { nluDataType: l.BuiltInEntityType.BuiltInDateTime } : r2.isMatch(e3, d.globalTypes.durationCollection, r2.settings.exact) || r2.isMatch(e3, d.globalTypes.duration, r2.settings.exact) ? { nluDataType: l.BuiltInEntityType.BuiltInDuration } : r2.isMatch(e3, d.globalTypes.integerCollection, r2.settings.exact) || r2.isMatch(e3, d.globalTypes.integer, r2.settings.exact) ? { nluDataType: l.BuiltInEntityType.BuiltInInteger } : r2.isMatch(e3, d.globalTypes.decimalCollection, r2.settings.exact) || r2.isMatch(e3, d.globalTypes.decimal, r2.settings.exact) ? { nluDataType: l.BuiltInEntityType.BuiltInNumber } : r2.isMatch(e3, d.globalTypes.timeCollection, r2.settings.exact) || r2.isMatch(e3, d.globalTypes.time, r2.settings.exact) ? { nluDataType: l.BuiltInEntityType.BuiltInTime } : r2.isMatch(e3, d.globalTypes.timeslotCollection, r2.settings.exact) || r2.isMatch(e3, d.globalTypes.timeslot, r2.settings.exact) ? { nluDataType: t3 || "", mechanism: l.EntityTypeMechanismType.DynamicDateTime } : { nluDataType: l.BuiltInEntityType.BuiltInAny }; + }, t2.getVariableForNluEntity = f; + const n2 = i2(31635), r2 = n2.__importStar(i2(9345)), o = i2(30801), a = i2(30801), s = n2.__importDefault(i2(60873)), l = i2(68694), u = i2(30801), d = i2(14394), c = i2(17604), p = i2(30801), _ = i2(21733); + function h(e3, t3, i3) { + var n3; + if (s.default.info.isAvailableForFlow(e3.parentFlow)) { + if (i3.entityTypeBindings) { + const r3 = e3.getBranch(t3.id); + null === (n3 = i3.entityTypeBindings) || void 0 === n3 || n3.forEach((e4) => { + r3 && m(r3.addAction(a.askForSlotActionType), e4); + }); + } else if (i3.entityNameReferences) { + const n4 = e3.getBranch(t3.id); + i3.entityNameReferences.forEach((t4) => { + const i4 = (function(e4, t5) { + if (e4.nluDomainEntities) return e4.nluDomainEntities.find((e5) => t5 === e5.name); + })(e3.parentFlow.botFlowSettings, t4); + i4 && n4 && m(n4.addAction(a.askForSlotActionType), i4); + }); + } + } + } + function m(e3, t3) { + const i3 = _(e3.parentFlow.defaultLanguage); + e3.name = (0, c.sprintf)(i3.askForSlot.askFor, t3.name); + const n3 = f(e3.parentFlow, t3.name, t3.type); + e3.askResult.type = n3.type, e3.askResult.setText(n3.name, true, true), e3.setSelectedSlotNameAndType(t3.name, t3.type), e3.setNewInstanceDefaults(null); + } + function g(e3, t3, i3) { + let n3; + switch (e3) { + case l.BuiltInEntityType.BuiltInAmountOfMoney: + n3 = i3 ? d.globalTypes.currencyCollection : d.globalTypes.currency; + break; + case l.BuiltInEntityType.BuiltInDate: + n3 = i3 ? d.globalTypes.dateCollection : d.globalTypes.date; + break; + case l.BuiltInEntityType.BuiltInDateTime: + n3 = i3 ? d.globalTypes.dateTimeCollection : d.globalTypes.dateTime; + break; + case l.BuiltInEntityType.BuiltInDuration: + n3 = i3 ? d.globalTypes.durationCollection : d.globalTypes.duration; + break; + case l.BuiltInEntityType.BuiltInInteger: + n3 = i3 ? d.globalTypes.integerCollection : d.globalTypes.integer; + break; + case l.BuiltInEntityType.BuiltInNumber: + n3 = i3 ? d.globalTypes.decimalCollection : d.globalTypes.decimal; + break; + case l.BuiltInEntityType.BuiltInTime: + n3 = i3 ? d.globalTypes.timeCollection : d.globalTypes.time; + break; + default: + n3 = t3 && t3.toLowerCase() === l.EntityTypeMechanismType.DynamicDateTime ? i3 ? d.globalTypes.timeslotCollection : d.globalTypes.timeslot : i3 ? d.globalTypes.stringCollection : d.globalTypes.string; + } + return n3; + } + function f(e3, t3, i3, n3, o2) { + let a2 = e3.nluMetaData.getSlotVariableForSlotName(t3); + return a2 && a2.type.isMatch(g(i3, n3, o2), r2.settings.exact) || (a2 = e3.botFlowSettings.createSlotVarForSlotName(t3, i3, n3, o2)), a2; + } + }, 94455: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(11210)), r2 = i2(30801); + class o extends n2.default { + constructor(e3) { + super(e3); + } + get _actionTypeId() { + return r2.previousMenuActionType; + } + get displayTypeName() { + return this._scriptingName; + } + get isArchActionPreviousMenu() { + return true; + } + } + t2.default = o; + }, 94486: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.CollectionExpressionList = void 0, t2.isCollectionExpressionList = function(e3) { + return e3 instanceof p; + }; + const n2 = i2(31635), r2 = i2(79364), o = i2(92794), a = i2(36781), s = i2(36781), l = i2(36781), u = n2.__importStar(i2(58380)), d = i2(58380), c = i2(71514); + class p extends c.ExpressionList { + constructor(e3, t3, i3, n3, r3, o2, a2) { + super(t3, i3, n3, r3, null, o2, void 0, a2), this._collectionParent = e3, this._subscriptions = {}, this.items.forEach((e4) => this._newCollectionItemAdded(e4)); + } + get collectionParent() { + return this._collectionParent; + } + addItem(e3) { + this._newCollectionItemAdded(e3), super.addItem(e3), this.options.itemAddedCallback && this.options.itemAddedCallback(e3); + } + _newCollectionItemAdded(e3) { + e3.parentList = this._collectionParent; + const t3 = (e4, t4) => (0, d.createObservableForEvent$)(e4, t4).pipe((0, o.map)((t5) => t5 ? e4 : null)); + this._subscriptions[e3.id] = (0, r2.merge)(t3(s.listOrderChanged, e3), t3(a.collectionItemValueChanged, e3), t3(l.expressionValueChanged, e3)).subscribe((e4) => u.fireEvent(this._collectionParent, e4)); + } + destroyChild(e3) { + this._subscriptions[e3.id] && (this._subscriptions[e3.id].unsubscribe(), delete this._subscriptions[e3.id]), super.destroyChild(e3); + } + canMove(e3) { + return this._collectionParent.options.uiCanMoveItemCallback ? this._collectionParent.options.uiCanMoveItemCallback(e3) : super.canMove(e3); + } + } + t2.CollectionExpressionList = p; + }, 94564: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.inboundEmailListManager = t2.InboundEmailListManager = void 0; + const n2 = i2(96618), r2 = i2(6109), o = i2(24032), a = i2(27862); + class s extends r2.FlowListManager { + get dependencyType() { + return a.InboundEmailFlow; + } + constructor() { + super(), this.topic = (0, o.getTopic)("inboundEmailListManager"), this.additionalQueryParams = { type: n2.flowTypes.flowTypeInboundEmail }, this.className = "InboundEmailListManager", this.flowType = n2.flowTypes.flowTypeInboundEmail, this._initialize(); + } + } + t2.InboundEmailListManager = s, t2.inboundEmailListManager = new s(); + }, 94604: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.getKnowledgeSource = void 0; + const n2 = i2(19760), r2 = i2(36019).default; + t2.getKnowledgeSource = r2.request("GET", "{public-api.apps}/api/v2/knowledge/sources/{id}", n2, { ignoreBadResponse: true }); + }, 94639: (e2, t2, i2) => { + const n2 = i2(28730), r2 = i2(7401), { setActiveIntentActionType: o } = i2(30801); + function a() { + Object.defineProperties(this, { _intent: { writable: true } }), a.baseConstructor.apply(this, arguments); + } + n2.extend(a, o, true), Object.defineProperties(a.prototype, { pasteResolveOldToNewValues: { value: function(e3) { + a._super.pasteResolveOldToNewValues.apply(this, arguments), this.intent.pasteResolveOldToNewValues(e3); + } }, pasteReIdOrRename: { value: function(e3) { + a._super.pasteReIdOrRename.apply(this, arguments), this.intent.pasteReIdOrRename(e3); + } }, intent: { enumerable: true, get: function() { + return this._intent; + }, set: function(e3) { + this._intent = this.reviveItem(e3, r2); + } } }), e2.exports = a; + }, 94681: (e2) => { + e2.exports = { askCommon: { invalidInputReceived: "Ez du balio.", noInputReceived: "Ez dut mezurik jaso." }, askForBoolean: { noInput: 'Esan "bai" jarraitu nahi baduzu edo "ez" ez baduzu jarraitu nahi.', noMatch: 'Esan "bai" ala "ez". Jarraitu nahi duzu?', question: "Jarraitu nahi duzu?", noInputDigitalBot: 'Idatzi "Bai" jarraitu nahi baduzu edo "Ez" ez baduzu jarraitu nahi.', noMatchDigitalBot: 'Idatzi "Bai" ala "Ez". Jarraitu nahi duzu?' }, askForIntent: { noInput: 'Esan zure eskaera azaltzen duen esaldi labur bat. Adibidez, "Ikusi nire kontuko saldoa"', noMatch: "Esan berriro zer egin nahi duzun.", question: "Zer egin nahi duzu?", noInputDigitalBot: 'Idatzi zure eskaera azaltzen duen esaldi labur bat. Adibidez, "Ikusi nire kontuko saldoa"' }, askForSlot: { askFor: "Eskatu %1$s", noInput: "Esan edo idatzi (jarri hemen zure slotaren izena).", noInputWithSlot: "Esan edo idatzi %1$s.", noMatch: "Eman (jarri hemen zure slotaren izena) berriro.", noMatchWithSlot: "Eman berriro %1$s.", question: "Zer da (jarri hemen zure slotaren izena)?", questionWithSlot: "Zer da %1$s?", pleaseEnterSlotNameHere: "(jarri hemen zure slotaren izena)", noInputDigitalBot: "Idatzi (jarri hemen zure slotaren izena).", noInputWithSlotDigitalBot: "Idatzi %1$s.", continuationPromptWithSlot: "Oraingoz {{Slot.%1$s}} d(it)ut, jarraitu." }, askForNextSlot: { noInput: 'Esan "bai" beste eskaera bat egiteko, edo "ez" deia bukatzeko.', noMatch: 'Esan "bai" beste eskaera bat egiteko, edo "ez" saioa bukatzeko.', question: "Beste zerbaitekin lagun zaitzaket?", noInputDigitalBot: 'Idatzi "Bai" beste eskaera bat egiteko edo "Ez" saioa bukatzeko.', noMatchDigitalBot: 'Idatzi "Bai" beste eskaera bat egiteko edo "Ez" saioa bukatzeko.' }, askForPayment: { noInputDigitalBot: "Jarraitzeko, adierazi zure ordainketa-informazioa.", noMatchDigitalBot: "Ez dut zure erantzuna ulertu. Saiatu berriro." }, askForAuthentication: { noInputDigitalBot: "Jarraitzeko, eman zure autentifikazio-informazioa.", noMatchDigitalBot: "Ez dut zure erantzuna ulertu. Saiatu berriro." }, askSurveyQuestion: { notApplicable: "Ezin da aplikatu", surveyAnswerOptionSequence: "Sakatu %1$s honetarako: '%2$s'.", surveyAnswerNotApplicableSequence: "Sakatu izarra Ez da aplikagarria aukeratu nahi baduzu.", surveyAnswerNotApplicableWithQuestionSequence: "%1$s. Sakatu izarra Ez da aplikagarria aukeratu nahi baduzu.", voiceSurveyNoInputText: "Erantzun galderari.", voiceSurveyNoMatchText: "Ez zaitut ulertu." }, commonModule: { exitCommonModule: "Itxi modulu arrunta" }, form: { noInputDigitalBot: "Jarraitzeko, osatu galdetegia.", noMatchDigitalBot: "Jarraitzeko, osatu galdetegia." }, messagingTemplate: { noInputDigitalBot: "Mesedez, hautatu eskuragarri dauden aukeretako bat.", noMatchDigitalBot: "Mesedez, hautatu eskuragarri dauden aukeretako bat." }, knowledgeSettings: { knowledgeAnswerHighlightFlowProgressionDefault: "Egin aurrera", knowledgeAnswerHighlightFullArticleDefault: "Ikusi artikulu osoa", knowledgeInitialResponseMulti: "Zure helburua hobeto uler dezadan, hautatu hurrengo zerrendako zenbaki bat:", knowledgeInitialResponseMultiRetry: "Hautatu zenbaki bat, adibidez, '1'.\nHemen duzu aukeren zerrenda:", knowledgeNoMatch: "Horietako bat ere ez", knowledgeConfirmation: "Zure galderari erantzun diogu?", knowledgeFollowup: "Espero dut zure galderari erantzun izana. Zerbait gehiago jakin nahi baduzu, galdetu." }, noOverlay: { intent: { intentConfirmationStr1: "Hau nahi duzula uste dut:", intentConfirmationStr2: "Zuzena da?" }, youSaid: { youSaidConfirmationStr1: "Hau esan duzu:", youSaidConfirmationStr2: "Zuzena da?", youSaidConfirmationStr1DigitalBot: "Hau idatzi duzu:" }, noInput: { noInputStr1: "Esan edo idatzi", noInputStr1DigitalBot: "Idatzi" }, noMatch: { noMatchStr1: "Eman" }, whatIs: { whatIsQuestionStr1: "Zer da", whatIsQuestionStr2: "?" }, iGotContinuation: { iGotContinuationStr1: "Oraingoz", iGotContinuationStr2: "d(it)ut, jarraitu." } }, defaultCallFlowOne: "Dei-fluxu lehenetsia", errorHandlingAgentEscalationConfirmation: "Aholkulari batekin hitz egin nahi duzu, ezta?", errorHandlingAgentEscalationHandover: "Itxaron pixka bat, mesedez, beste norbaitekin jarriko zaitut harremanetan.", errorHandlingErrorEventHandover: "Barkatu, errore bat egon da. Itxaron pixka bat, lagun zaitzakeen norbaitekin harremanetan jartzen zaitudan bitartean.", errorHandlingErrorEventHandoverVoiceSurvey: "Errore bat gertatu da. Hurrengora arte.", errorHandlingRecognitionEventHandover: "Barkatu, ez zaitut ulertzen. Itxaron pixka bat, lagun zaitzakeen norbaitekin harremanetan jartzen zaitudan bitartean.", errorHandlingRecognitionEventHandoverVoiceSurvey: "Ulertzeko arazoak ditut. Hurrengora arte.", errorHandlingTTS: "Barkatu, errore bat egon da. Deitu berriro, mesedez.", initialGreetingTTS: "Kaixo, ongi etorri.", initialState: "Hasierako egoera", initialBotState: "Bot lehenetsia", initialDigitalBotState: "Ongi etorri", initialSurveyBotState: "Inkesta bot", intentConfirmation: "Hau nahi duzula uste dut: %1$s. Zuzena da?", mainMenu: "Menu nagusia", mainMenuTTS: "Menu nagusian zaude, sakatu 9 deskonektatzeko", mainTask: "Ataza", settingsConfirmationNoInputApology: "Barkatu, ez zaitut entzun. Esan bai ala ez.", settingsConfirmationNoInputApologyDigitalBot: 'Barkatu, ez dut zure mezurik jaso. Idatzi"Bai" ala "Ez".', settingsConfirmationNoMatchApology: "Barkatu, esan bai ala ez.", settingsConfirmationNoMatchApologyDigitalBot: 'Barkatu, idatzi "Bai" ala "Ez".', settingsNoInputApology: "Barkatu, ez zaitut entzun.", settingsNoInputApologyDigitalBot: "Barkatu, ez dut zure mezurik jaso.", settingsEndOfSessionMessageDigitalBot: "Aspaldian ez dut zure mezurik jaso; beraz, txat hau itxiko dut. Zerbait behar izanez gero, jarri harremanetan.", settingsNoMatchApology: "Barkatu.", settingsNoToConfirmationApology: "Nire errua izan da.", periodicStateName: "Egoera errepikakorra" }; + }, 94684: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(93523)), r2 = i2(30801); + class o extends n2.default { + constructor(e3) { + super(e3); + } + get _actionTypeId() { + return r2.getJourneySegmentActionType; + } + get displayTypeName() { + return this._scriptingName; + } + get isArchActionGetJourneySegment() { + return true; + } + get findResult() { + return this._findResult; + } + } + t2.default = o; + }, 94705: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importDefault(i2(92140)), o = n2.__importDefault(i2(65305)), a = i2(30801), s = n2.__importDefault(i2(78432)), { SwitchStyles: l } = i2(68038); + class u extends o.default { + constructor(e3) { + super(e3), this._cases = this.coreFactory.createArchWrapper(this._getCoreViewModel().cases); + } + get _actionTypeId() { + return a.switchActionActionType; + } + addCase() { + this._checkItem(this._infoMethod("addCase"), this._cases.length === this.caseCountMax, `You cannot add a case because it would make the case count greater than the maximum allowed of ${this.caseCountMax}.`); + const e3 = this._getCoreViewModel(); + return this.logNoteVerbose("adding new case."), e3.addCase(), this.logNote(`new case added at index ${e3.cases.length - 1}.`), this.coreFactory.createArchWrapper(this._cases.getNamedValueByIndex(this._cases._getCoreViewModel().items.length - 1).value._getCoreViewModel()); + } + get caseCount() { + return this._getCoreViewModel().cases.length; + } + get caseCountMax() { + return 64; + } + get caseCountMin() { + return 1; + } + deleteCaseByIndex(e3) { + const t3 = this._infoPropSet("index", "deleteCaseByIndex"); + this._checkItemIsValidLiteralInt(t3, e3, false), this._checkItem(t3, e3 < 0 || e3 >= this._cases.length, "the index parameter value of " + e3 + " is invalid. It must be >=0 and <" + this._cases.length + "."), this._checkItem(t3, this._cases.length === this.caseCountMin, `You cannot delete case at index ${e3} because it would make the case count less than the minimum required of ${this.caseCountMin}.`), this.logNoteVerbose(`deleting case at index: ${e3}.`), this._getCoreViewModel().deleteCase(this._cases._getCoreViewModel().items[e3]), this.logNote(`deleted the case at index ${e3}.`); + } + get displayTypeName() { + return this._scriptingName; + } + get evaluationStyle() { + switch (this._coreActionViewModel.switchStyle) { + case l.firstTrueCase: + return s.default.SWITCH_EVALUATION_STYLES.matchFirstTrue; + case l.matchExpression: + return s.default.SWITCH_EVALUATION_STYLES.matchExpression; + default: + this._logErrorInternalAndThrow("unknown evaluation style on core switch action."); + } + } + getCaseValue(e3) { + const t3 = this._infoParm("index", "getCaseValue"); + return this._checkItemIsValidLiteralInt(t3, e3, false), this._checkItem(t3, e3 < 0 || e3 >= this._cases.length, "the index parameter value of " + e3 + " is invalid. It must be >=0 and <" + this._cases.length + "."), this.coreFactory.createArchWrapper(this._cases.getNamedValueByIndex(e3).value._coreExpression); + } + get isArchActionSwitch() { + return true; + } + setExpressionSwitch(e3, t3) { + this._checkItemIsValidLiteralString(this._infoParm("expressionText", "setExpressionSwitch"), e3); + const i3 = this._infoParm("caseExpressionOrExpressions", "setExpressionSwitch"); + this._checkItemIsValidLiteralStringOrStringArray(i3, t3, true), r2.default.isArray(t3) && this._checkItem(this._infoParm("caseExpressionOrExpressions", "setExpressionSwitch"), t3.length > this.caseCountMax, "If specifying a case expression array, the maximum number of case expression strings is " + this.caseCountMax); + const n3 = this._getCoreViewModel(); + n3.switchStyle = l.matchExpression, this.coreFactory.createArchValueFromExpression(n3.expression).setExpression(e3); + const o2 = this.switchDataType, a2 = this._infoVal("", "setExpressionSwitch"); + if (this._checkItem(a2, !o2, "a resulting data type could not be determined from the expression text"), this._checkItem(a2, !o2.isScriptCreatableForFlow(this.parentFlow), "the resulting data type of " + o2 + " from the expression text is not script creatable for one of the flow types '" + this._getCoreViewModel().parentFlow.destinationFlowTypes.join(",") + "' so it cannot be used."), n3.expression.type = o2._getCoreViewModel(), r2.default.isArray(t3)) { + const e4 = t3.length ? t3.length : 1; + if (n3.cases.length !== e4) { + for (this.logNoteVerbose(`updating the switch action to have ${e4} case${1 === e4 ? "" : "s"} in addition to the Default case.`); n3.cases.length > e4; ) this.deleteCaseByIndex(n3.cases.length - 1); + for (; n3.cases.length < e4; ) this.addCase(); + } + } + let s2; + if (this.logNote(`the switch action has ${n3.cases.length} case${1 === n3.cases.length ? "" : "s"} in addition to the Default case.`), this.logNote(`the switch expression will be switching at runtime based on the data type ${o2.logStr}.`), n3.updateCaseTypes(o2._getCoreViewModel(), true), r2.default.isString(t3) && t3.length) for (this.logNote(`setting all cases to the expression text '${t3}'`), s2 = 0; s2 < this._cases.length; s2++) this.getCaseValue(s2).setExpression(t3); + else if (r2.default.isArray(t3)) if (t3.length) for (s2 = 0; s2 < t3.length; s2++) r2.default.isUndefined(t3[s2]) || null === t3[s2] ? (this.logNote(`setting case at index ${s2} to noValue ( no value specified ) since the caseExpressionOrExpressions array at index ${s2} is null or undefined.`), this.getCaseValue(s2).setNoValue()) : (this.logNote(`setting case at index ${s2} to '${t3[s2]}'.`), this.getCaseValue(s2).setExpression(t3[s2])); + else this.logNote("setting case at incex 0 to no value ( no value specified ) since the caseExpressionOrExpressions array is empty."), this.getCaseValue(0).setNoValue(); + return o2; + } + setFirstTrueSwitch() { + this._coreActionViewModel.switchStyle = l.firstTrueCase, this._coreActionViewModel.expression.resetToDefaultValue(); + const e3 = this.switchDataType; + this.logNote(`the switch expression will be switching at runtime based on the data type ${e3.logStr}.`), this._coreActionViewModel.updateCaseTypes(e3._getCoreViewModel(), true); + for (let e4 = 0; e4 < this._cases.length; e4++) this.getCaseValue(e4).setLiteralFalse(); + return e3; + } + get switchDataType() { + const e3 = this._coreActionViewModel.expression; + return this.evaluationStyle === s.default.SWITCH_EVALUATION_STYLES.matchFirstTrue ? this.coreFactory.createArchWrapper(e3.parentFlow).dataTypes.boolean : e3 && e3.model && e3.model.config && !e3.type.isAny ? this.coreFactory.createArchWrapper(e3.type) : void 0; + } + } + t2.default = u; + }, 94708: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.SequenceError = void 0; + var n2 = i2(9619); + t2.SequenceError = n2.createErrorClass(function(e3) { + return function(t3) { + e3(this), this.name = "SequenceError", this.message = t3; + }; + }); + }, 94729: (e2, t2, i2) => { + "use strict"; + var n2, r2; + Object.defineProperty(t2, "__esModule", { value: true }), t2.PromptResource = void 0; + const o = i2(31635), a = i2(19596), s = i2(80295), l = i2(80295); + class u extends a.DataContract { + constructor(e3) { + super(e3), (0, l.makeUnenumerable)(this, "_durationSeconds"), (0, l.makeUnenumerable)(this, "_hasDefault"), (0, l.makeUnenumerable)(this, "_language"), (0, l.makeUnenumerable)(this, "_mediaUri"), (0, l.makeUnenumerable)(this, "_name"), (0, l.makeUnenumerable)(this, "_promptId"), (0, l.makeUnenumerable)(this, "_text"), (0, l.makeUnenumerable)(this, "_ttsString"), (0, l.makeUnenumerable)(this, "_tags"), (0, l.makeUnenumerable)(this, "_uploadStatus"), (0, l.makeUnenumerable)(this, "_uploadUri"); + } + get durationSeconds() { + return this._durationSeconds; + } + set durationSeconds(e3) { + this._durationSeconds = e3; + } + set duration(e3) { + this._durationSeconds = e3; + } + get hasDefault() { + return this._hasDefault; + } + set hasDefault(e3) { + this._hasDefault = e3; + } + get language() { + return this._language; + } + set language(e3) { + this._language = e3; + } + get mediaUri() { + return this._mediaUri; + } + set mediaUri(e3) { + this._mediaUri = e3; + } + get name() { + return this._name; + } + set name(e3) { + this._name = e3; + } + get displayName() { + return this._name; + } + set displayName(e3) { + this._name = e3; + } + get promptId() { + return this._promptId; + } + set promptId(e3) { + this._promptId = e3; + } + get text() { + return this._text; + } + set text(e3) { + this._text = e3; + } + get textAvailable() { + return !!this._text; + } + get ttsString() { + return this._ttsString; + } + set ttsString(e3) { + this._ttsString = e3; + } + get ttsAvailable() { + return !!this._ttsString; + } + get tags() { + return this._tags; + } + set tags(e3) { + this._tags = e3; + } + get uploadStatus() { + return this._uploadStatus; + } + set uploadStatus(e3) { + this._uploadStatus = e3; + } + get uploadUri() { + return this._uploadUri; + } + set uploadUri(e3) { + this._uploadUri = e3; + } + } + t2.PromptResource = u, o.__decorate([(0, s.enumerable)(true), o.__metadata("design:type", Number), o.__metadata("design:paramtypes", [Number])], u.prototype, "durationSeconds", null), o.__decorate([(0, s.enumerable)(true), o.__metadata("design:type", Boolean), o.__metadata("design:paramtypes", [Boolean])], u.prototype, "hasDefault", null), o.__decorate([(0, s.enumerable)(true), o.__metadata("design:type", String), o.__metadata("design:paramtypes", [String])], u.prototype, "language", null), o.__decorate([(0, s.enumerable)(true), o.__metadata("design:type", String), o.__metadata("design:paramtypes", [String])], u.prototype, "mediaUri", null), o.__decorate([(0, s.enumerable)(true), o.__metadata("design:type", String), o.__metadata("design:paramtypes", [String])], u.prototype, "name", null), o.__decorate([(0, s.enumerable)(true), o.__metadata("design:type", String), o.__metadata("design:paramtypes", [String])], u.prototype, "promptId", null), o.__decorate([(0, s.enumerable)(true), o.__metadata("design:type", String), o.__metadata("design:paramtypes", [String])], u.prototype, "text", null), o.__decorate([(0, s.enumerable)(true), o.__metadata("design:type", String), o.__metadata("design:paramtypes", [String])], u.prototype, "ttsString", null), o.__decorate([(0, s.enumerable)(true), o.__metadata("design:type", "function" == typeof (n2 = "undefined" != typeof Map && Map) ? n2 : Object), o.__metadata("design:paramtypes", ["function" == typeof (r2 = "undefined" != typeof Map && Map) ? r2 : Object])], u.prototype, "tags", null), o.__decorate([(0, s.enumerable)(true), o.__metadata("design:type", String), o.__metadata("design:paramtypes", [String])], u.prototype, "uploadStatus", null), o.__decorate([(0, s.enumerable)(true), o.__metadata("design:type", String), o.__metadata("design:paramtypes", [String])], u.prototype, "uploadUri", null); + }, 94745: (e2, t2, i2) => { + const n2 = i2(57731), r2 = {}; + function o(e3, t3) { + r2[e3] = this, r2[t3] = this, o.baseConstructor.apply(this, arguments); + } + n2.extend(o, "DialNameMatchType"), o.getInstance = function(e3) { + return r2[e3 || 0] || r2[0]; + }, o.FirstName = new o(0, "FirstName"), o.LastName = new o(1, "LastName"), o.FirstOrLastName = new o(2, "FirstOrLastName"), e2.exports = o; + }, 94765: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.ExpressionType = void 0, t2.isCollectionType = function(e3) { + return e3.isExpressionType && e3.isCollection; + }, t2.isSingletonType = function(e3) { + return e3.isExpressionType && !e3.isCollection; + }; + const n2 = i2(31635), r2 = i2(96618), o = i2(17604), a = n2.__importDefault(i2(92140)), s = n2.__importStar(i2(12847)), l = i2(24032), u = i2(55352), d = i2(49892), c = i2(16321), p = n2.__importStar(i2(10798)), _ = n2.__importStar(i2(27099)), h = n2.__importDefault(i2(61864)), m = i2(55299), g = n2.__importDefault(i2(87675)), f = n2.__importDefault(i2(39041)), T = n2.__importDefault(i2(73198)), y = n2.__importDefault(i2(7342)), S = i2(27491), A = n2.__importDefault(i2(22226)), N = n2.__importStar(i2(9345)), O = i2(80428), I = i2(14394), v = i2(77105), C = i2(53476), b = n2.__importDefault(i2(65302)), E = i2(47957), R = i2(34005), w = (0, l.getTopic)("ExpressionType"), D = a.default.invert(O.expressionTypeNames); + D.usr = "user"; + class P extends m.BaseClass { + constructor(e3, t3, i3, n3) { + var r3; + super(), this._isAvailableForFlowTypeCheckResult = {}, this.singletonProperties = {}, this.expressionTextPropToName = {}, this.expressionOptionClass = void 0, this._customJsonTypeIcon = { worktype: h.default.workitem, decisionTable: h.default.decisionTable, conversationCustomAttribute: h.default.conversationCustomAttribute }, this._model = t3, this.parentFlow = e3, this.isCollection = i3, this.additionalProperties = n3, ((r3 = this).model.nativeProperties || r3.model.propertiesAllowAssignment) && a.default.each(r3.model.nativeProperties, function(e4) { + const t4 = new v.PropertyDefinition(r3.parentFlow, e4, y.default[e4.descriptionId] || e4.description); + r3.singletonProperties[t4.name.toLocaleLowerCase()] = t4; + }), this._syncHasPropertyAndReadOnlyFromProperties(), Object.freeze(this._model); + } + getDisplayString(e3) { + return this.displayString; + } + get className() { + return "ExpressionType"; + } + _syncHasPropertyAndReadOnlyFromProperties() { + this._hasProperties = !a.default.isEmpty(this.properties), this._hasProperties ? this._allPropertiesAreReadOnly = !Object.values(this.properties).find((e3) => !e3.isReadOnly) : this._allPropertiesAreReadOnly = false; + } + get hasPropertiesAndAllAreReadOnly() { + return this._syncHasPropertyAndReadOnlyFromProperties(), this._hasProperties && this._allPropertiesAreReadOnly; + } + get model() { + return this._model; + } + set model(e3) { + console.log("nope"); + } + get isCustomType() { + return false; + } + get customTypeInfo() { + } + get customTypeNamespace() { + } + get customTypeNamespaceLabel() { + } + get isJsonType() { + return false; + } + get isCustomTypeArchitectBuiltIn() { + return false; + } + get listManager() { + return null; + } + getListManagerForExpression(e3) { + return this.listManager; + } + _getIsEnabledForFeatureConfigInfo(e3) { + if (!a.default.isObject(e3)) return false; + const t3 = !e3.featureConfigName || p.isFeatureAvailable(e3.featureConfigName); + if (!e3.hasOwnProperty("featureConfigName2")) return t3; + if (true === e3.featureConfigsAllOf) { + if (!t3) return false; + } else if (t3) return true; + return !e3.featureConfigName2 || p.isFeatureAvailable(e3.featureConfigName2); + } + _getStaticSupportedFlowTypes(e3) { + if (!e3 || !this.model.support.supportedFlowTypes) return; + if (this.model.support.featureToggleName && _.isDisabled(this.model.support.featureToggleName) || !this._getIsEnabledForFeatureConfigInfo(this.model.support)) return; + const t3 = this.model.support.supportedFlowTypes[e3]; + return t3 && (t3.featureToggleName && _.isDisabled(t3.featureToggleName) || !this._getIsEnabledForFeatureConfigInfo(t3)) ? void 0 : this.model.support.supportedFlowTypes[e3]; + } + isAvailableAsInputOrOutputForFlowType(e3, t3) { + var i3; + if (c.bootstrapService.dataTypes) { + const n3 = null === (i3 = c.bootstrapService.dataTypes[this.dataType]) || void 0 === i3 ? void 0 : i3.direction; + if (!a.default.isObject(n3)) return false; + const r3 = n3.flow; + if (!a.default.isObject(r3)) return false; + const o2 = "flowInput" === t3; + let s2; + if (s2 = this.isCollection && o2 ? r3.inputColl : this.isCollection ? r3.outputColl : o2 ? r3.inputOne : r3.outputOne, a.default.isObject(s2)) { + const t4 = s2[e3]; + if (a.default.isObject(t4)) return t4.isAvailable; + } + return false; + } + { + const i4 = this._getStaticSupportedFlowTypes(e3); + return i4 && void 0 !== i4[t3 + (this.isCollection ? "Collection" : "Singleton")]; + } + } + get collectionType() { + return this.isCollection ? this : b.default.getType(this.parentFlow, this.dataType, true); + } + getLiteralValueOfExpression(e3) { + return (null == e3 ? void 0 : e3.isExpressionMode) || (null == e3 ? void 0 : e3.isBuilderMode) ? this._getLiteralValueOfExpression(e3) : ""; + } + _getLiteralValueOfExpression(e3) { + return (null == e3 ? void 0 : e3.text) || ""; + } + get expressionType() { + return this.isCollection ? this.dataType + T.default.exprDataTypeSuffixCollection : this.dataType; + } + get expressionTypeBase() { + return (this.isCollection ? this.dataTypeBase + T.default.exprDataTypeSuffixCollection : this.dataTypeBase) || this.dataType; + } + createExpressionOptionClass() { + return this === this.collectionType && this !== this.singletonType ? this.singletonType.createExpressionOptionClass().setIsCollection(true) : new d.ExpressionTypelessOptions(this.isCollection); + } + get dataType() { + return this.model.support.expressionDataType; + } + get dataTypeBase() { + return this.model.support.expressionBaseDataType; + } + get isCustomizablePerFlow() { + return !!this.model.support.isCustomizablePerFlow; + } + get displayString() { + if (void 0 === this._displayString) { + const e3 = y.default[this.typeCode]; + this._displayString = this.isCollection ? (0, o.sprintf)(E.expression.collection, e3) : e3; + } + return this._displayString; + } + get featureConfigName() { + return this.model.support.featureConfigName; + } + get featureConfigName2() { + return this.model.support.featureConfigName2; + } + get featureToggleName() { + return this.model.support.featureToggleName; + } + get icwsType() { + return this.model.support.classType; + } + get inheritedType() { + const e3 = this.model.support.expressionBaseDataType || this.dataType; + return b.default.getType(this.parentFlow, e3); + } + get isAbstract() { + return !!this.model.isAbstract; + } + get allowLiteralSelect() { + return !!this.model.allowLiteralSelect && (!this.model.allowLiteralSelectFeatureConfig || p.isFeatureAvailable(this.model.allowLiteralSelectFeatureConfig)); + } + get isAny() { + return this.dataType === I.globalTypes.any.dataType; + } + get isAnyComplex() { + return this.dataType === I.globalTypes.anyComplex.dataType; + } + get isAnyPromptOrAudio() { + return "apa" === this.dataType; + } + get isComplex() { + return this.dataType.substring(0, 3) === T.default.exprDataTypePrefixComplex; + } + isAvailableForFlowType(e3, t3) { + let i3 = !!c.bootstrapService.dataTypes; + if (e3 === r2.flowTypes.flowTypeCommonModule && (i3 = false), i3) { + let i4 = this._isAvailableForFlowTypeCheckResult[e3]; + return void 0 === i4 && (i4 = this._isAvailableForFlowType(e3, t3), this._isAvailableForFlowTypeCheckResult[e3] = i4), i4; + } + return this._isAvailableForFlowType(e3, t3); + } + _isAvailableForFlowType(e3, t3) { + if (!c.bootstrapService.dataTypes) return void 0 !== this._getStaticSupportedFlowTypes(e3); + { + const t4 = this.bootstrapDataType, i3 = c.bootstrapService.dataTypes[t4]; + if (i3) return i3.flowTypes[e3] && i3.flowTypes[e3].isAvailable; + } + } + get bootstrapDataType() { + return this.dataType; + } + isAvailableForFlow(e3) { + return e3.destinationFlowTypes.every((e4) => this.isAvailableForFlowType(e4, true)); + } + isAvailableForExpressionsFlowTypes(e3) { + return !this.getFlowTypesUnavailableForExpression(e3); + } + getFlowTypesUnavailableForExpression(e3) { + if (!e3 || !e3.parentFlow) return; + const t3 = e3.parentFlow.destinationFlowTypes.filter((e4) => !this.isAvailableForFlowType(e4)); + return t3.length ? t3 : void 0; + } + isAvailableAsInputForFlowType(e3) { + return this.isAvailableAsInputOrOutputForFlowType(e3, "flowInput"); + } + isAvailableAsOutputForFlowType(e3) { + return this.isAvailableAsInputOrOutputForFlowType(e3, "flowOutput"); + } + get isEnum() { + return !!this.model.isEnum; + } + get isEnumContainer() { + return !!this.model.isEnumContainer; + } + get isEnumOrEnumContainer() { + return this.isEnum || this.isEnumContainer; + } + get isExpressionType() { + return true; + } + get isNotSet() { + return this.dataType === I.globalTypes.notSet.dataType; + } + get isSupportedByAny() { + return this.model.support.isSupportedByAny; + } + get propertiesAllowAssignment() { + return this.model.propertiesAllowAssignment; + } + get additionalPropertiesAreManaged() { + var e3; + return this.model.additionalProperties && !!(null === (e3 = this.model) || void 0 === e3 ? void 0 : e3.additionalPropertiesAreManaged); + } + isUserCreatableForFlowType(e3) { + return this.model.support.userCanCreate && this.isAvailableForFlowType(e3); + } + isUserCreatableForFlow(e3) { + return this.model.support.userCanCreate && this.isAvailableForFlow(e3); + } + get properties() { + return this.isCollection ? {} : this.singletonProperties; + } + globalMatchingTypes() { + return b.default.getGlobalMatchingTypes(this); + } + get singletonType() { + return this.isCollection ? b.default.getType(this.parentFlow, this.dataType, false) : this; + } + startupConnectedAndReady() { + if (c.bootstrapService.dataTypes) { + const e3 = c.bootstrapService.dataTypes[this.dataType]; + e3 && (this.model.support.isSupportedByAny = e3.isAnAnyType.isAvailable, this.model.support.userCanCreate = e3.userCreatable.isAvailable, Object.values(this.properties).forEach((t3) => { + t3.startupConnectedAndReady(e3.properties.find((e4) => e4.name === t3.name)); + })); + } else this.model.support.isSupportedByAny && this.model.support.anySupportFeatureToggleName && (this.model.support.isSupportedByAny = _.isEnabled(this.model.support.anySupportFeatureToggleName)), this.model.support.userCanCreate && this.model.support.userCanCreateFeatureToggleName && (this.model.support.userCanCreate = _.isEnabled(this.model.support.userCanCreateFeatureToggleName)), Object.values(this.properties).forEach((e3) => { + e3.startupConnectedAndReady(); + }); + } + get supportsLiteralEditor() { + return true; + } + get typeCode() { + return this.model.name; + } + get version() { + return this.model.support.version; + } + get yamlLiteralWrapperString() { + return "name"; + } + get yamlTypeName() { + const e3 = D[this.singletonType.expressionType]; + return e3 ? this.isCollection ? e3 + "Collection" : e3 : (w.errorWithStack(null, `yamlTypeName could not be created for type '${this.displayString}'`), null); + } + _addPropertyFromModel(e3, t3) { + if (!e3) return; + const i3 = new v.PropertyDefinition(this.parentFlow, e3, t3); + return this.properties[i3.name.toLocaleLowerCase()] = i3, this.expressionTextPropToName[i3.expressionText.toLocaleLowerCase()] = i3.name, i3; + } + hasProperties() { + return this._hasProperties; + } + get hasAtLeastOneWritableProperty() { + return this._syncHasPropertyAndReadOnlyFromProperties(), this.hasProperties() && !this._allPropertiesAreReadOnly; + } + get supportsLiteralCustomJsonInput() { + return this.isCustomType || this.hasProperties() && this._supportsLiteralCustomJsonInput; + } + get _supportsLiteralCustomJsonInput() { + return false; + } + _addProperty(e3, t3, i3, n3, r3, o2) { + const a2 = { id: e3, isCollection: !!o2, name: t3, type: i3, version: r3 }; + return this._addPropertyFromModel(a2, n3); + } + hydratePropertiesFromDataTypeDefViewModel(e3) { + if (null == e3 ? void 0 : e3.hasProperties) for (const t3 of e3.propertiesSnapshot) this.hydratePropertyFromDataTypeDefViewModel(t3); + } + hydratePropertyFromDataTypeDefViewModel(e3) { + if (!e3) return; + const t3 = { id: e3.id, isCollection: !!e3.isCollection, name: e3.name || e3.id, allowableValuesRaw: a.default.isArray(e3.allowableValues) && e3.allowableValues.length ? e3.allowableValues : void 0, minItems: e3.minItems, maxItems: e3.maxItems, minLength: e3.minLength, maxLength: e3.maxLength, minValue: e3.minValue, minValueInclusive: e3.minValueInclusive, maxValue: e3.maxValue, maxValueInclusive: e3.maxValueInclusive, isRequired: e3.isRequired, type: e3.dataTypeId, readOnly: true === e3.readOnly, version: "1.0" }; + return this._addPropertyFromModel(t3, e3.description); + } + canConvertLitToExpression(e3) { + return true; + } + convertLitToExpression(e3, t3, i3, n3) { + return t3 || ""; + } + convertLitToCustomJsonStr(e3, t3, i3, n3) { + if (this.listManager) return `[[${t3 || i3 || ""}]]`; + if (this.canConvertLitToExpression(e3)) { + const r3 = this.convertLitToExpression(e3, t3, i3, n3); + return (null == r3 ? void 0 : r3.length) ? `{{ ${r3} }}` : "{{}}"; + } + return "{{}}"; + } + destroy() { + } + destroyInstance(e3) { + } + getAvailableExpressionBuilders(e3, t3, i3) { + return f.default.getAvailableBuilderDefinitions(this, e3, t3, i3); + } + getConversionText() { + const e3 = this.singletonType.getDefaultImplicitConversionFunc(I.globalTypes.notSet); + return e3 ? e3.text : ""; + } + getDefaultImplicitConversionFunc(e3) { + if (!e3) return null; + this._defaultImplicitTypeCastFuncs || (function(e4) { + e4._defaultImplicitTypeCastFuncs = {}; + const t3 = S.expressionDataService.getFunctionsForCategory(S.expressionDataService.expressionFuncOpCategories.cast); + for (let i3 = 0; i3 < t3.length; i3++) { + let n3 = false; + for (let r3 = 0; r3 < t3[i3].overloads.length; r3++) { + const o2 = t3[i3].overloads[r3]; + if (o2 && o2.operands && 1 === o2.operands.length && !o2.disallowAsDefaultCast) { + if (!n3 && !o2.returnType.isMatch(e4, N.settings.exact)) break; + n3 = true, e4._defaultImplicitTypeCastFuncs[o2.operands[0].type.expressionType] = t3[i3]; + } + } + } + })(this); + return this._defaultImplicitTypeCastFuncs[e3.dataTypeBase] || this._defaultImplicitTypeCastFuncs[e3.expressionType] || (e3.isSupportedByAny ? this._defaultImplicitTypeCastFuncs[e3.isCollection ? I.globalTypes.any.collectionType.expressionType : I.globalTypes.any.expressionType] : null); + } + getDisplayStrForExpressionDataType(e3) { + if (!a.default.isString(e3) || 0 === e3.length) return; + let t3 = false; + e3.endsWith(T.default.exprDataTypeSuffixCollection) && (t3 = true, e3 = e3.substring(0, e3.length - T.default.exprDataTypeSuffixCollection.length)); + const i3 = a.default.find(R.type, function(t4) { + return t4.support && t4.support.expressionDataType === e3; + }); + if (!i3) return; + const n3 = y.default[i3.name]; + return a.default.isString(n3) && 0 !== n3.length ? t3 ? (0, o.sprintf)(E.expression.collection, n3) : n3 : void 0; + } + getIconGux() { + return this.getArchIcon().gux; + } + _getCustomDataTypeDefinition(e3, t3) { + if (!this.isCustomType) return; + if (e3[this.dataType]) return; + const i3 = g.default.createEmptyDataTypeDef(); + i3.id = this.dataType, i3.dataTypeId = this.expressionType, i3.name = (0, C.isCustomJsonExpressionType)(this) ? this.customTypeName : void 0, e3[this.dataType] = i3; + const n3 = this.properties; + n3 && Object.entries(n3).forEach(([n4, r3]) => { + var o2; + const a2 = r3.createDataTypeDef(); + i3.addProperty(a2), t3 && (null === (o2 = r3.type) || void 0 === o2 ? void 0 : o2.isCustomType) && r3.type._getCustomDataTypeDefinition(e3, t3); + }); + } + getCustomDataTypeDefinition() { + var e3; + if (this.isCollection) { + const e4 = g.default.createEmptyDataTypeDef(); + return e4.id = this.dataType, e4.dataTypeId = this.expressionType, e4.name = (0, C.isCustomJsonExpressionType)(this) ? this.customTypeName : void 0, e4; + } + if (null === (e3 = this.parentFlow) || void 0 === e3 ? void 0 : e3.definitions) { + const e4 = this.parentFlow.definitions.getCustomDataTypeDefinition(this.dataType); + if (e4) return e4; + } + const t3 = {}; + return this._getCustomDataTypeDefinition(t3), Object.values(t3)[0]; + } + getCustomDataTypeDefinitions(e3) { + const t3 = {}; + return this._getCustomDataTypeDefinition(t3, e3), Object.values(t3); + } + getPathedTypeAdjacencyList(e3, t3) { + return e3 || (e3 = {}), e3[t3 || "."] = this, this.properties && Object.entries(this.properties).forEach(([i3, n3]) => { + const r3 = t3 ? `${t3}.${i3}` : i3; + n3.type.getPathedTypeAdjacencyList(e3, r3); + }), e3; + } + getArchIcon() { + switch (this.dataType) { + case "btn": + return h.default.button; + case "mbx": + return h.default.mailbox; + case "rcd": + return h.default.recording; + case "vsn": + return h.default.record; + case O.expressionTypeNames.any: + return h.default.any; + case O.expressionTypeNames.assignedCustomerIntent: + return h.default.assignedCustomerIntent; + case O.expressionTypeNames.assignedCustomerSegment: + return h.default.assignedCustomerSegment; + case O.expressionTypeNames.customerIntent: + return h.default.customerIntent; + case O.expressionTypeNames.customerSegment: + return h.default.customerSegment; + case O.expressionTypeNames.audio: + return h.default.prompt; + case O.expressionTypeNames.boolean: + return h.default.boolean; + case O.expressionTypeNames.campaign: + return h.default.contact; + case O.expressionTypeNames.card: + return h.default.card; + case O.expressionTypeNames.carousel: + return h.default.carousel; + case O.expressionTypeNames.choice: + return h.default.button; + case O.expressionTypeNames.chooser: + return h.default.complex; + case O.expressionTypeNames.communication: + return h.default.communication; + case O.expressionTypeNames.contact: + case O.expressionTypeNames.contactList: + return h.default.contact; + case O.expressionTypeNames.currency: + return h.default.currency; + case O.expressionTypeNames.date: + return h.default.date; + case O.expressionTypeNames.dateTime: + return h.default.datetime; + case O.expressionTypeNames.decimal: + return h.default.decimal; + case O.expressionTypeNames.division: + return h.default.division; + case O.expressionTypeNames.digitalAudio: + return h.default.digitalAudio; + case O.expressionTypeNames.duration: + return h.default.duration; + case O.expressionTypeNames.emergencyGroup: + return h.default.emergencyGroup; + case O.expressionTypeNames.file: + return h.default.file; + case O.expressionTypeNames.formInput: + return h.default.string; + case O.expressionTypeNames.grammar: + return h.default.grammar; + case O.expressionTypeNames.group: + return h.default.group; + case O.expressionTypeNames.image: + return h.default.image; + case O.expressionTypeNames.integer: + return h.default.integer; + case O.expressionTypeNames.json: + return h.default.json; + case O.expressionTypeNames.knowledgeBaseDocument: + return h.default.knowledgeBaseDocument; + case O.expressionTypeNames.languageSkill: + return h.default.languageSkill; + case O.expressionTypeNames.lineItem: + return h.default.lineItem; + case O.expressionTypeNames.listPicker: + return h.default.listPicker; + case O.expressionTypeNames.listPickerItem: + return h.default.listPickerItem; + case O.expressionTypeNames.listPickerSection: + return h.default.listPickerSection; + case O.expressionTypeNames.phoneNumber: + return h.default.phone; + case O.expressionTypeNames.prompt: + return h.default.prompt; + case O.expressionTypeNames.queue: + return h.default.queue; + case O.expressionTypeNames.quickReplies: + return h.default.button; + case O.expressionTypeNames.responseAsset: + return h.default.responseAsset; + case O.expressionTypeNames.schedule: + return h.default.schedule; + case O.expressionTypeNames.scheduleGroup: + return h.default.scheduleGroup; + case O.expressionTypeNames.shippingOption: + return h.default.shippingOption; + case O.expressionTypeNames.skill: + return h.default.skill; + case O.expressionTypeNames.string: + return h.default.string; + case O.expressionTypeNames.surveyAnswerOption: + case O.expressionTypeNames.surveyForm: + case O.expressionTypeNames.surveyQuestion: + case O.expressionTypeNames.surveyQuestionGroup: + return h.default.complex; + case O.expressionTypeNames.time: + return h.default.time; + case O.expressionTypeNames.timePicker: + return h.default.timePicker; + case O.expressionTypeNames.timeslot: + return h.default.datetime; + case O.expressionTypeNames.userQueue: + return h.default.user; + case O.expressionTypeNames.utilizationLabel: + return h.default.utilizationLabel; + case O.expressionTypeNames.video: + return h.default.video; + case O.expressionTypeNames.wheelPicker: + case O.expressionTypeNames.wheelPickerItem: + return h.default.enum; + case O.expressionTypeNames.wrapupCode: + return h.default.wrapupCode; + } + if (this.isEnumContainer) return h.default.enumContainer; + if (this.isEnum) return h.default.enum; + if (this.dataType.contains("journey")) return h.default.journey; + if (this.dataType.substring(0, 3) === T.default.exprDataTypePrefixComplex) return h.default.complex; + if (this.dataType.substring(0, 3) === T.default.exprDataTypePrefixJson) { + for (const e3 in this._customJsonTypeIcon) if (this.dataType.contains(e3)) return this._customJsonTypeIcon[e3]; + return h.default.json; + } + return s.warn(`no icon set for dataType:${this.dataType}`), h.default.complex; + } + getPropertyDefinition(e3, t3) { + if (!e3) return; + t3 && (e3 = A.default.getUnquotedExpressionStringLiteralContents(e3)); + const i3 = e3.toLowerCase(); + return this.properties[i3] || this.properties[this.expressionTextPropToName[i3]]; + } + getYamlObjectForLiteralSingleton(e3, t3, i3, n3) { + if (this.isCollection && w.errorWithStack(null, "Tried to access getYamlObjectForLiteralSingleton on a collection type"), this.listManager || this.allowLiteralSelect) return a.default.tryWrapObject(e3.text, this.yamlLiteralWrapperString); + if (this.propertiesAllowAssignment) { + const r3 = {}; + return a.default.each(this.singletonProperties, (o2) => { + const a2 = e3.getProperty(o2.name).getConfiguration(t3, i3, o2.yamlOptions || n3); + null !== a2 && (r3[o2.name] = a2); + }), r3; + } + return e3.text; + } + isBidirectionalMatch(e3, t3) { + return N.isBidirectionalMatch(this, e3, t3); + } + isMatch(e3, t3) { + return N.isMatch(this, e3, t3 || (this.isAny ? N.settings.typeOfOrAny : this.isAnyComplex ? N.settings.anyComplex : N.settings.typeOf)); + } + searchExpression(e3, t3) { + e3.checkText(t3, t3.text, t3.label); + } + validateLiteralCollection(e3) { + } + validateLiteral(e3, t3, i3) { + if (t3.outOfService) return true; + const n3 = this.getListManagerForExpression(t3); + if (!n3) return true; + let r3 = n3.getItem(t3.val); + if (r3 || (r3 = n3.getItemFromFullManager(t3.val)), t3.type.listManager && void 0 === i3 && (i3 = true), !r3 || r3.state && r3.state === u.ConfigurationListItemStatuses.deleted) { + let n4 = r3 && r3.state === u.ConfigurationListItemStatuses.deleted ? E.expression.literalDropDownValueIsDeleted : E.expression.literalDropDownValueDoesNotExist; + return n4 = (0, o.sprintf)(n4, t3.type.displayString, t3.text), e3.addError(t3, n4, void 0, true), t3.setLiteralError(true), i3 && t3.setParseError(n4), false; + } + return t3.text !== r3.label && (t3.text = r3.label), t3.parentFlow && !t3.parentFlow.isReadOnly && t3.config && t3.config.lit && t3.type.additionLiteralProperties && a.default.each(t3.type.additionLiteralProperties, function(e4) { + t3.config.lit[e4] = r3[e4]; + }), t3.options.authToCheck && a.default.each(t3.options.authToCheck, (i4) => { + i4.authString && this._checkForPermission(i4, r3, e3, t3); + }), true; + } + _checkForPermission(e3, t3, i3, n3) { + console.error("_checkForPermission not implemented"); + } + validateVariable(e3, t3) { + return true; + } + initializeDesignTime(e3) { + } + configurePropertyCreationParams(e3, t3, i3) { + var n3, r3; + t3.literalOnly && i3.options.setAllowModeLiteralOnly(), t3.allowableValues && a.default.isFunction(null === (r3 = null === (n3 = i3.options) || void 0 === n3 ? void 0 : n3.facets) || void 0 === r3 ? void 0 : r3.setAllowableValues) && i3.options.facets.setAllowableValues(t3.allowableValues), t3.defaultValue && a.default.isFunction(i3.options.setDefaultText) && i3.options.setDefaultText(t3.defaultValue); + } + propertiesCreatedForThisTypeInstance(e3) { + } + useCustomExpressionEditor(e3) { + return false; + } + get hasRichLiteralEditor() { + return false; + } + getLiteralValues(e3) { + } + setPropertiesAsLiteral(e3, t3) { + w.errorWithStack(null, `setPropertiesAsLiteral should not be called for type '${this.displayString}'`); + } + copyExpressionValue(e3, t3) { + } + addYamlExportTypeInfo(e3) { + } + } + t2.ExpressionType = P; + }, 94808: function(e2, t2) { + "use strict"; + var i2 = this && this.__read || function(e3, t3) { + var i3 = "function" == typeof Symbol && e3[Symbol.iterator]; + if (!i3) return e3; + var n3, r2, o = i3.call(e3), a = []; + try { + for (; (void 0 === t3 || t3-- > 0) && !(n3 = o.next()).done; ) a.push(n3.value); + } catch (e4) { + r2 = { error: e4 }; + } finally { + try { + n3 && !n3.done && (i3 = o.return) && i3.call(o); + } finally { + if (r2) throw r2.error; + } + } + return a; + }, n2 = this && this.__spreadArray || function(e3, t3) { + for (var i3 = 0, n3 = t3.length, r2 = e3.length; i3 < n3; i3++, r2++) e3[r2] = t3[i3]; + return e3; + }; + Object.defineProperty(t2, "__esModule", { value: true }), t2.timeoutProvider = void 0, t2.timeoutProvider = { setTimeout: function(e3, r2) { + for (var o = [], a = 2; a < arguments.length; a++) o[a - 2] = arguments[a]; + var s = t2.timeoutProvider.delegate; + return (null == s ? void 0 : s.setTimeout) ? s.setTimeout.apply(s, n2([e3, r2], i2(o))) : setTimeout.apply(void 0, n2([e3, r2], i2(o))); + }, clearTimeout: function(e3) { + var i3 = t2.timeoutProvider.delegate; + return ((null == i3 ? void 0 : i3.clearTimeout) || clearTimeout)(e3); + }, delegate: void 0 }; + }, 94829: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.DarthUploadResponse = void 0; + const n2 = i2(31635), r2 = i2(19596), o = i2(80295), a = i2(80295); + class s extends r2.DataContract { + constructor(e3) { + super(e3), (0, a.makeUnenumerable)(this, "_url"), (0, a.makeUnenumerable)(this, "_headers"); + } + get url() { + return this._url; + } + set url(e3) { + this._url = e3; + } + get headers() { + return this._headers; + } + set headers(e3) { + this._headers = e3; + } + } + t2.DarthUploadResponse = s, n2.__decorate([(0, o.enumerable)(true), n2.__metadata("design:type", String), n2.__metadata("design:paramtypes", [String])], s.prototype, "url", null), n2.__decorate([(0, o.enumerable)(true), n2.__metadata("design:type", Object), n2.__metadata("design:paramtypes", [Object])], s.prototype, "headers", null); + }, 94830: (e2, t2, i2) => { + const n2 = i2(50778); + function r2() { + r2.baseConstructor.apply(this, arguments); + } + i2(22124).extend(r2, "DivisionList"), Object.defineProperties(r2.prototype, { entities: { enumerable: true, get: function() { + return this._entities; + }, set: function(e3) { + this._entities = this.reviveArray(e3, n2); + } } }), e2.exports = r2; + }, 94858: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.BaseActionModel = void 0; + const n2 = i2(31635), r2 = n2.__importDefault(i2(92140)), o = i2(23316), a = i2(80295), s = i2(80295); + class l extends o.BaseFlowItemWithNameAndId { + constructor(e3) { + super(e3), (0, s.makeUnenumerable)(this, "_nextAction"), (0, s.makeUnenumerable)(this, "_trackingId"); + } + get nextAction() { + return this._nextAction; + } + set nextAction(e3) { + this._nextAction = e3; + } + get trackingId() { + return this._trackingId; + } + set trackingId(e3) { + this._trackingId = e3; + } + pasteReIdOrRename(e3) { + super.pasteReIdOrRename(e3), r2.default.isUndefined(this.trackingId) || (this.trackingId = e3.pasteGetNewTrackingId(this.trackingId)); + } + pasteResolveOldToNewValues(e3) { + super.pasteResolveOldToNewValues(e3), this.nextAction = e3.pasteResolveOldIdToNewId(this.nextAction); + } + get type() { + return this.__type; + } + } + t2.BaseActionModel = l, n2.__decorate([(0, a.enumerable)(true), n2.__metadata("design:type", String), n2.__metadata("design:paramtypes", [String])], l.prototype, "nextAction", null), n2.__decorate([(0, a.enumerable)(true), n2.__metadata("design:type", Number), n2.__metadata("design:paramtypes", [Number])], l.prototype, "trackingId", null); + }, 94886: (e2, t2, i2) => { + function n2() { + this.id = void 0, this.name = void 0, n2.baseConstructor.apply(this, arguments); + } + i2(45214).extend(n2, "Schedule"), Object.defineProperties(n2.prototype, { displayName: { get: function() { + return this.name; + }, set: function(e3) { + this.name = e3; + } }, label: { get: function() { + return this.name; + }, set: function(e3) { + this.name = e3; + } } }), e2.exports = n2; + }, 94975: (e2, t2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.isArrayLike = void 0, t2.isArrayLike = function(e3) { + return e3 && "number" == typeof e3.length && "function" != typeof e3; + }; + }, 95079: (e2, t2, i2) => { + "use strict"; + var n2; + Object.defineProperty(t2, "__esModule", { value: true }); + const r2 = i2(31635), o = r2.__importDefault(i2(55015)), a = r2.__importStar(i2(74731)), s = r2.__importStar(i2(75800)), l = i2(80295), u = i2(80295), d = i2(84050); + class c extends d.NameIdDescriptionModel { + constructor(e3) { + super(e3), (0, u.makeUnenumerable)(this, "_debugIdType"), (0, u.makeUnenumerable)(this, "_flowTypes"); + } + get flowTypes() { + return this._flowTypes; + } + set flowTypes(e3) { + this._reviveFlowTypeMap(e3, "_flowTypes"); + } + _reviveFlowTypeMap(e3, t3) { + a.expandFlowTypeMapAsync(e3, (e4) => { + this[t3] = this.reviveMap(e4, o.default, true); + }); + } + } + t2.default = c, r2.__decorate([(0, l.enumerable)(true), r2.__metadata("design:type", "function" == typeof (n2 = void 0 !== s && s.IAvailabilitySupportMap) ? n2 : Object), r2.__metadata("design:paramtypes", [Object])], c.prototype, "flowTypes", null); + }, 95085: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = i2(26847), o = n2.__importDefault(i2(21345)); + class a extends o.default { + constructor(e3) { + super(e3); + } + get displayTypeName() { + return "ArchBaseActionWithOutputsSuccessFailureTimeout"; + } + get isArchBaseActionWithOutputsSuccessFailureTimeout() { + return true; + } + get outputTimeout() { + return this._getOutputById(r2.outputIds.timeout, true); + } + } + t2.default = a; + }, 95090: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(84655)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "shippingOption"; + } + get displayTypeName() { + return "ArchVariableShippingOption"; + } + get initialValue() { + return this._initialValue; + } + get isArchVariableShippingOption() { + return true; + } + } + t2.default = r2; + }, 95093: function(e2, t2, i2) { + (e2 = i2.nmd(e2)).exports = (function() { + "use strict"; + var t3, n2; + function r2() { + return t3.apply(null, arguments); + } + function o(e3) { + return e3 instanceof Array || "[object Array]" === Object.prototype.toString.call(e3); + } + function a(e3) { + return null != e3 && "[object Object]" === Object.prototype.toString.call(e3); + } + function s(e3, t4) { + return Object.prototype.hasOwnProperty.call(e3, t4); + } + function l(e3) { + if (Object.getOwnPropertyNames) return 0 === Object.getOwnPropertyNames(e3).length; + var t4; + for (t4 in e3) if (s(e3, t4)) return false; + return true; + } + function u(e3) { + return void 0 === e3; + } + function d(e3) { + return "number" == typeof e3 || "[object Number]" === Object.prototype.toString.call(e3); + } + function c(e3) { + return e3 instanceof Date || "[object Date]" === Object.prototype.toString.call(e3); + } + function p(e3, t4) { + var i3, n3 = [], r3 = e3.length; + for (i3 = 0; i3 < r3; ++i3) n3.push(t4(e3[i3], i3)); + return n3; + } + function _(e3, t4) { + for (var i3 in t4) s(t4, i3) && (e3[i3] = t4[i3]); + return s(t4, "toString") && (e3.toString = t4.toString), s(t4, "valueOf") && (e3.valueOf = t4.valueOf), e3; + } + function h(e3, t4, i3, n3) { + return Lt(e3, t4, i3, n3, true).utc(); + } + function m(e3) { + return null == e3._pf && (e3._pf = { empty: false, unusedTokens: [], unusedInput: [], overflow: -2, charsLeftOver: 0, nullInput: false, invalidEra: null, invalidMonth: null, invalidFormat: false, userInvalidated: false, iso: false, parsedDateParts: [], era: null, meridiem: null, rfc2822: false, weekdayMismatch: false }), e3._pf; + } + function g(e3) { + if (null == e3._isValid) { + var t4 = m(e3), i3 = n2.call(t4.parsedDateParts, function(e4) { + return null != e4; + }), r3 = !isNaN(e3._d.getTime()) && t4.overflow < 0 && !t4.empty && !t4.invalidEra && !t4.invalidMonth && !t4.invalidWeekday && !t4.weekdayMismatch && !t4.nullInput && !t4.invalidFormat && !t4.userInvalidated && (!t4.meridiem || t4.meridiem && i3); + if (e3._strict && (r3 = r3 && 0 === t4.charsLeftOver && 0 === t4.unusedTokens.length && void 0 === t4.bigHour), null != Object.isFrozen && Object.isFrozen(e3)) return r3; + e3._isValid = r3; + } + return e3._isValid; + } + function f(e3) { + var t4 = h(NaN); + return null != e3 ? _(m(t4), e3) : m(t4).userInvalidated = true, t4; + } + n2 = Array.prototype.some ? Array.prototype.some : function(e3) { + var t4, i3 = Object(this), n3 = i3.length >>> 0; + for (t4 = 0; t4 < n3; t4++) if (t4 in i3 && e3.call(this, i3[t4], t4, i3)) return true; + return false; + }; + var T = r2.momentProperties = [], y = false; + function S(e3, t4) { + var i3, n3, r3, o2 = T.length; + if (u(t4._isAMomentObject) || (e3._isAMomentObject = t4._isAMomentObject), u(t4._i) || (e3._i = t4._i), u(t4._f) || (e3._f = t4._f), u(t4._l) || (e3._l = t4._l), u(t4._strict) || (e3._strict = t4._strict), u(t4._tzm) || (e3._tzm = t4._tzm), u(t4._isUTC) || (e3._isUTC = t4._isUTC), u(t4._offset) || (e3._offset = t4._offset), u(t4._pf) || (e3._pf = m(t4)), u(t4._locale) || (e3._locale = t4._locale), o2 > 0) for (i3 = 0; i3 < o2; i3++) u(r3 = t4[n3 = T[i3]]) || (e3[n3] = r3); + return e3; + } + function A(e3) { + S(this, e3), this._d = new Date(null != e3._d ? e3._d.getTime() : NaN), this.isValid() || (this._d = /* @__PURE__ */ new Date(NaN)), false === y && (y = true, r2.updateOffset(this), y = false); + } + function N(e3) { + return e3 instanceof A || null != e3 && null != e3._isAMomentObject; + } + function O(e3) { + false === r2.suppressDeprecationWarnings && "undefined" != typeof console && console.warn && console.warn("Deprecation warning: " + e3); + } + function I(e3, t4) { + var i3 = true; + return _(function() { + if (null != r2.deprecationHandler && r2.deprecationHandler(null, e3), i3) { + var n3, o2, a2, l2 = [], u2 = arguments.length; + for (o2 = 0; o2 < u2; o2++) { + if (n3 = "", "object" == typeof arguments[o2]) { + for (a2 in n3 += "\n[" + o2 + "] ", arguments[0]) s(arguments[0], a2) && (n3 += a2 + ": " + arguments[0][a2] + ", "); + n3 = n3.slice(0, -2); + } else n3 = arguments[o2]; + l2.push(n3); + } + O(e3 + "\nArguments: " + Array.prototype.slice.call(l2).join("") + "\n" + new Error().stack), i3 = false; + } + return t4.apply(this, arguments); + }, t4); + } + var v, C = {}; + function b(e3, t4) { + null != r2.deprecationHandler && r2.deprecationHandler(e3, t4), C[e3] || (O(t4), C[e3] = true); + } + function E(e3) { + return "undefined" != typeof Function && e3 instanceof Function || "[object Function]" === Object.prototype.toString.call(e3); + } + function R(e3, t4) { + var i3, n3 = _({}, e3); + for (i3 in t4) s(t4, i3) && (a(e3[i3]) && a(t4[i3]) ? (n3[i3] = {}, _(n3[i3], e3[i3]), _(n3[i3], t4[i3])) : null != t4[i3] ? n3[i3] = t4[i3] : delete n3[i3]); + for (i3 in e3) s(e3, i3) && !s(t4, i3) && a(e3[i3]) && (n3[i3] = _({}, n3[i3])); + return n3; + } + function w(e3) { + null != e3 && this.set(e3); + } + r2.suppressDeprecationWarnings = false, r2.deprecationHandler = null, v = Object.keys ? Object.keys : function(e3) { + var t4, i3 = []; + for (t4 in e3) s(e3, t4) && i3.push(t4); + return i3; + }; + function D(e3, t4, i3) { + var n3 = "" + Math.abs(e3), r3 = t4 - n3.length; + return (e3 >= 0 ? i3 ? "+" : "" : "-") + Math.pow(10, Math.max(0, r3)).toString().substr(1) + n3; + } + var P = /(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g, M = /(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g, F = {}, L = {}; + function x(e3, t4, i3, n3) { + var r3 = n3; + "string" == typeof n3 && (r3 = function() { + return this[n3](); + }), e3 && (L[e3] = r3), t4 && (L[t4[0]] = function() { + return D(r3.apply(this, arguments), t4[1], t4[2]); + }), i3 && (L[i3] = function() { + return this.localeData().ordinal(r3.apply(this, arguments), e3); + }); + } + function k(e3) { + return e3.match(/\[[\s\S]/) ? e3.replace(/^\[|\]$/g, "") : e3.replace(/\\/g, ""); + } + function V(e3, t4) { + return e3.isValid() ? (t4 = U(t4, e3.localeData()), F[t4] = F[t4] || (function(e4) { + var t5, i3, n3 = e4.match(P); + for (t5 = 0, i3 = n3.length; t5 < i3; t5++) L[n3[t5]] ? n3[t5] = L[n3[t5]] : n3[t5] = k(n3[t5]); + return function(t6) { + var r3, o2 = ""; + for (r3 = 0; r3 < i3; r3++) o2 += E(n3[r3]) ? n3[r3].call(t6, e4) : n3[r3]; + return o2; + }; + })(t4), F[t4](e3)) : e3.localeData().invalidDate(); + } + function U(e3, t4) { + var i3 = 5; + function n3(e4) { + return t4.longDateFormat(e4) || e4; + } + for (M.lastIndex = 0; i3 >= 0 && M.test(e3); ) e3 = e3.replace(M, n3), M.lastIndex = 0, i3 -= 1; + return e3; + } + var B = {}; + function G(e3, t4) { + var i3 = e3.toLowerCase(); + B[i3] = B[i3 + "s"] = B[t4] = e3; + } + function j(e3) { + return "string" == typeof e3 ? B[e3] || B[e3.toLowerCase()] : void 0; + } + function W(e3) { + var t4, i3, n3 = {}; + for (i3 in e3) s(e3, i3) && (t4 = j(i3)) && (n3[t4] = e3[i3]); + return n3; + } + var q = {}; + function Y(e3, t4) { + q[e3] = t4; + } + function H(e3) { + return e3 % 4 == 0 && e3 % 100 != 0 || e3 % 400 == 0; + } + function J(e3) { + return e3 < 0 ? Math.ceil(e3) || 0 : Math.floor(e3); + } + function z(e3) { + var t4 = +e3, i3 = 0; + return 0 !== t4 && isFinite(t4) && (i3 = J(t4)), i3; + } + function K(e3, t4) { + return function(i3) { + return null != i3 ? (Q(this, e3, i3), r2.updateOffset(this, t4), this) : $(this, e3); + }; + } + function $(e3, t4) { + return e3.isValid() ? e3._d["get" + (e3._isUTC ? "UTC" : "") + t4]() : NaN; + } + function Q(e3, t4, i3) { + e3.isValid() && !isNaN(i3) && ("FullYear" === t4 && H(e3.year()) && 1 === e3.month() && 29 === e3.date() ? (i3 = z(i3), e3._d["set" + (e3._isUTC ? "UTC" : "") + t4](i3, e3.month(), Pe(i3, e3.month()))) : e3._d["set" + (e3._isUTC ? "UTC" : "") + t4](i3)); + } + var X, Z = /\d/, ee = /\d\d/, te = /\d{3}/, ie = /\d{4}/, ne = /[+-]?\d{6}/, re = /\d\d?/, oe = /\d\d\d\d?/, ae = /\d\d\d\d\d\d?/, se = /\d{1,3}/, le = /\d{1,4}/, ue = /[+-]?\d{1,6}/, de = /\d+/, ce = /[+-]?\d+/, pe = /Z|[+-]\d\d:?\d\d/gi, _e = /Z|[+-]\d\d(?::?\d\d)?/gi, he = /[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i; + function me(e3, t4, i3) { + X[e3] = E(t4) ? t4 : function(e4, n3) { + return e4 && i3 ? i3 : t4; + }; + } + function ge(e3, t4) { + return s(X, e3) ? X[e3](t4._strict, t4._locale) : new RegExp(fe(e3.replace("\\", "").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g, function(e4, t5, i3, n3, r3) { + return t5 || i3 || n3 || r3; + }))); + } + function fe(e3) { + return e3.replace(/[-\/\\^$*+?.()|[\]{}]/g, "\\$&"); + } + X = {}; + var Te = {}; + function ye(e3, t4) { + var i3, n3, r3 = t4; + for ("string" == typeof e3 && (e3 = [e3]), d(t4) && (r3 = function(e4, i4) { + i4[t4] = z(e4); + }), n3 = e3.length, i3 = 0; i3 < n3; i3++) Te[e3[i3]] = r3; + } + function Se(e3, t4) { + ye(e3, function(e4, i3, n3, r3) { + n3._w = n3._w || {}, t4(e4, n3._w, n3, r3); + }); + } + function Ae(e3, t4, i3) { + null != t4 && s(Te, e3) && Te[e3](t4, i3._a, i3, e3); + } + var Ne, Oe = 0, Ie = 1, ve = 2, Ce = 3, be = 4, Ee = 5, Re = 6, we = 7, De = 8; + function Pe(e3, t4) { + if (isNaN(e3) || isNaN(t4)) return NaN; + var i3, n3 = (t4 % (i3 = 12) + i3) % i3; + return e3 += (t4 - n3) / 12, 1 === n3 ? H(e3) ? 29 : 28 : 31 - n3 % 7 % 2; + } + Ne = Array.prototype.indexOf ? Array.prototype.indexOf : function(e3) { + var t4; + for (t4 = 0; t4 < this.length; ++t4) if (this[t4] === e3) return t4; + return -1; + }, x("M", ["MM", 2], "Mo", function() { + return this.month() + 1; + }), x("MMM", 0, 0, function(e3) { + return this.localeData().monthsShort(this, e3); + }), x("MMMM", 0, 0, function(e3) { + return this.localeData().months(this, e3); + }), G("month", "M"), Y("month", 8), me("M", re), me("MM", re, ee), me("MMM", function(e3, t4) { + return t4.monthsShortRegex(e3); + }), me("MMMM", function(e3, t4) { + return t4.monthsRegex(e3); + }), ye(["M", "MM"], function(e3, t4) { + t4[Ie] = z(e3) - 1; + }), ye(["MMM", "MMMM"], function(e3, t4, i3, n3) { + var r3 = i3._locale.monthsParse(e3, n3, i3._strict); + null != r3 ? t4[Ie] = r3 : m(i3).invalidMonth = e3; + }); + var Me = "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), Fe = "Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"), Le = /D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/, xe = he, ke = he; + function Ve(e3, t4, i3) { + var n3, r3, o2, a2 = e3.toLocaleLowerCase(); + if (!this._monthsParse) for (this._monthsParse = [], this._longMonthsParse = [], this._shortMonthsParse = [], n3 = 0; n3 < 12; ++n3) o2 = h([2e3, n3]), this._shortMonthsParse[n3] = this.monthsShort(o2, "").toLocaleLowerCase(), this._longMonthsParse[n3] = this.months(o2, "").toLocaleLowerCase(); + return i3 ? "MMM" === t4 ? -1 !== (r3 = Ne.call(this._shortMonthsParse, a2)) ? r3 : null : -1 !== (r3 = Ne.call(this._longMonthsParse, a2)) ? r3 : null : "MMM" === t4 ? -1 !== (r3 = Ne.call(this._shortMonthsParse, a2)) || -1 !== (r3 = Ne.call(this._longMonthsParse, a2)) ? r3 : null : -1 !== (r3 = Ne.call(this._longMonthsParse, a2)) || -1 !== (r3 = Ne.call(this._shortMonthsParse, a2)) ? r3 : null; + } + function Ue(e3, t4) { + var i3; + if (!e3.isValid()) return e3; + if ("string" == typeof t4) { + if (/^\d+$/.test(t4)) t4 = z(t4); + else if (!d(t4 = e3.localeData().monthsParse(t4))) return e3; + } + return i3 = Math.min(e3.date(), Pe(e3.year(), t4)), e3._d["set" + (e3._isUTC ? "UTC" : "") + "Month"](t4, i3), e3; + } + function Be(e3) { + return null != e3 ? (Ue(this, e3), r2.updateOffset(this, true), this) : $(this, "Month"); + } + function Ge() { + function e3(e4, t5) { + return t5.length - e4.length; + } + var t4, i3, n3 = [], r3 = [], o2 = []; + for (t4 = 0; t4 < 12; t4++) i3 = h([2e3, t4]), n3.push(this.monthsShort(i3, "")), r3.push(this.months(i3, "")), o2.push(this.months(i3, "")), o2.push(this.monthsShort(i3, "")); + for (n3.sort(e3), r3.sort(e3), o2.sort(e3), t4 = 0; t4 < 12; t4++) n3[t4] = fe(n3[t4]), r3[t4] = fe(r3[t4]); + for (t4 = 0; t4 < 24; t4++) o2[t4] = fe(o2[t4]); + this._monthsRegex = new RegExp("^(" + o2.join("|") + ")", "i"), this._monthsShortRegex = this._monthsRegex, this._monthsStrictRegex = new RegExp("^(" + r3.join("|") + ")", "i"), this._monthsShortStrictRegex = new RegExp("^(" + n3.join("|") + ")", "i"); + } + function je(e3) { + return H(e3) ? 366 : 365; + } + x("Y", 0, 0, function() { + var e3 = this.year(); + return e3 <= 9999 ? D(e3, 4) : "+" + e3; + }), x(0, ["YY", 2], 0, function() { + return this.year() % 100; + }), x(0, ["YYYY", 4], 0, "year"), x(0, ["YYYYY", 5], 0, "year"), x(0, ["YYYYYY", 6, true], 0, "year"), G("year", "y"), Y("year", 1), me("Y", ce), me("YY", re, ee), me("YYYY", le, ie), me("YYYYY", ue, ne), me("YYYYYY", ue, ne), ye(["YYYYY", "YYYYYY"], Oe), ye("YYYY", function(e3, t4) { + t4[Oe] = 2 === e3.length ? r2.parseTwoDigitYear(e3) : z(e3); + }), ye("YY", function(e3, t4) { + t4[Oe] = r2.parseTwoDigitYear(e3); + }), ye("Y", function(e3, t4) { + t4[Oe] = parseInt(e3, 10); + }), r2.parseTwoDigitYear = function(e3) { + return z(e3) + (z(e3) > 68 ? 1900 : 2e3); + }; + var We = K("FullYear", true); + function qe(e3, t4, i3, n3, r3, o2, a2) { + var s2; + return e3 < 100 && e3 >= 0 ? (s2 = new Date(e3 + 400, t4, i3, n3, r3, o2, a2), isFinite(s2.getFullYear()) && s2.setFullYear(e3)) : s2 = new Date(e3, t4, i3, n3, r3, o2, a2), s2; + } + function Ye(e3) { + var t4, i3; + return e3 < 100 && e3 >= 0 ? ((i3 = Array.prototype.slice.call(arguments))[0] = e3 + 400, t4 = new Date(Date.UTC.apply(null, i3)), isFinite(t4.getUTCFullYear()) && t4.setUTCFullYear(e3)) : t4 = new Date(Date.UTC.apply(null, arguments)), t4; + } + function He(e3, t4, i3) { + var n3 = 7 + t4 - i3; + return -(7 + Ye(e3, 0, n3).getUTCDay() - t4) % 7 + n3 - 1; + } + function Je(e3, t4, i3, n3, r3) { + var o2, a2, s2 = 1 + 7 * (t4 - 1) + (7 + i3 - n3) % 7 + He(e3, n3, r3); + return s2 <= 0 ? a2 = je(o2 = e3 - 1) + s2 : s2 > je(e3) ? (o2 = e3 + 1, a2 = s2 - je(e3)) : (o2 = e3, a2 = s2), { year: o2, dayOfYear: a2 }; + } + function ze(e3, t4, i3) { + var n3, r3, o2 = He(e3.year(), t4, i3), a2 = Math.floor((e3.dayOfYear() - o2 - 1) / 7) + 1; + return a2 < 1 ? n3 = a2 + Ke(r3 = e3.year() - 1, t4, i3) : a2 > Ke(e3.year(), t4, i3) ? (n3 = a2 - Ke(e3.year(), t4, i3), r3 = e3.year() + 1) : (r3 = e3.year(), n3 = a2), { week: n3, year: r3 }; + } + function Ke(e3, t4, i3) { + var n3 = He(e3, t4, i3), r3 = He(e3 + 1, t4, i3); + return (je(e3) - n3 + r3) / 7; + } + x("w", ["ww", 2], "wo", "week"), x("W", ["WW", 2], "Wo", "isoWeek"), G("week", "w"), G("isoWeek", "W"), Y("week", 5), Y("isoWeek", 5), me("w", re), me("ww", re, ee), me("W", re), me("WW", re, ee), Se(["w", "ww", "W", "WW"], function(e3, t4, i3, n3) { + t4[n3.substr(0, 1)] = z(e3); + }); + function $e(e3, t4) { + return e3.slice(t4, 7).concat(e3.slice(0, t4)); + } + x("d", 0, "do", "day"), x("dd", 0, 0, function(e3) { + return this.localeData().weekdaysMin(this, e3); + }), x("ddd", 0, 0, function(e3) { + return this.localeData().weekdaysShort(this, e3); + }), x("dddd", 0, 0, function(e3) { + return this.localeData().weekdays(this, e3); + }), x("e", 0, 0, "weekday"), x("E", 0, 0, "isoWeekday"), G("day", "d"), G("weekday", "e"), G("isoWeekday", "E"), Y("day", 11), Y("weekday", 11), Y("isoWeekday", 11), me("d", re), me("e", re), me("E", re), me("dd", function(e3, t4) { + return t4.weekdaysMinRegex(e3); + }), me("ddd", function(e3, t4) { + return t4.weekdaysShortRegex(e3); + }), me("dddd", function(e3, t4) { + return t4.weekdaysRegex(e3); + }), Se(["dd", "ddd", "dddd"], function(e3, t4, i3, n3) { + var r3 = i3._locale.weekdaysParse(e3, n3, i3._strict); + null != r3 ? t4.d = r3 : m(i3).invalidWeekday = e3; + }), Se(["d", "e", "E"], function(e3, t4, i3, n3) { + t4[n3] = z(e3); + }); + var Qe = "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), Xe = "Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"), Ze = "Su_Mo_Tu_We_Th_Fr_Sa".split("_"), et = he, tt = he, it = he; + function nt(e3, t4, i3) { + var n3, r3, o2, a2 = e3.toLocaleLowerCase(); + if (!this._weekdaysParse) for (this._weekdaysParse = [], this._shortWeekdaysParse = [], this._minWeekdaysParse = [], n3 = 0; n3 < 7; ++n3) o2 = h([2e3, 1]).day(n3), this._minWeekdaysParse[n3] = this.weekdaysMin(o2, "").toLocaleLowerCase(), this._shortWeekdaysParse[n3] = this.weekdaysShort(o2, "").toLocaleLowerCase(), this._weekdaysParse[n3] = this.weekdays(o2, "").toLocaleLowerCase(); + return i3 ? "dddd" === t4 ? -1 !== (r3 = Ne.call(this._weekdaysParse, a2)) ? r3 : null : "ddd" === t4 ? -1 !== (r3 = Ne.call(this._shortWeekdaysParse, a2)) ? r3 : null : -1 !== (r3 = Ne.call(this._minWeekdaysParse, a2)) ? r3 : null : "dddd" === t4 ? -1 !== (r3 = Ne.call(this._weekdaysParse, a2)) || -1 !== (r3 = Ne.call(this._shortWeekdaysParse, a2)) || -1 !== (r3 = Ne.call(this._minWeekdaysParse, a2)) ? r3 : null : "ddd" === t4 ? -1 !== (r3 = Ne.call(this._shortWeekdaysParse, a2)) || -1 !== (r3 = Ne.call(this._weekdaysParse, a2)) || -1 !== (r3 = Ne.call(this._minWeekdaysParse, a2)) ? r3 : null : -1 !== (r3 = Ne.call(this._minWeekdaysParse, a2)) || -1 !== (r3 = Ne.call(this._weekdaysParse, a2)) || -1 !== (r3 = Ne.call(this._shortWeekdaysParse, a2)) ? r3 : null; + } + function rt() { + function e3(e4, t5) { + return t5.length - e4.length; + } + var t4, i3, n3, r3, o2, a2 = [], s2 = [], l2 = [], u2 = []; + for (t4 = 0; t4 < 7; t4++) i3 = h([2e3, 1]).day(t4), n3 = fe(this.weekdaysMin(i3, "")), r3 = fe(this.weekdaysShort(i3, "")), o2 = fe(this.weekdays(i3, "")), a2.push(n3), s2.push(r3), l2.push(o2), u2.push(n3), u2.push(r3), u2.push(o2); + a2.sort(e3), s2.sort(e3), l2.sort(e3), u2.sort(e3), this._weekdaysRegex = new RegExp("^(" + u2.join("|") + ")", "i"), this._weekdaysShortRegex = this._weekdaysRegex, this._weekdaysMinRegex = this._weekdaysRegex, this._weekdaysStrictRegex = new RegExp("^(" + l2.join("|") + ")", "i"), this._weekdaysShortStrictRegex = new RegExp("^(" + s2.join("|") + ")", "i"), this._weekdaysMinStrictRegex = new RegExp("^(" + a2.join("|") + ")", "i"); + } + function ot() { + return this.hours() % 12 || 12; + } + function at(e3, t4) { + x(e3, 0, 0, function() { + return this.localeData().meridiem(this.hours(), this.minutes(), t4); + }); + } + function st(e3, t4) { + return t4._meridiemParse; + } + x("H", ["HH", 2], 0, "hour"), x("h", ["hh", 2], 0, ot), x("k", ["kk", 2], 0, function() { + return this.hours() || 24; + }), x("hmm", 0, 0, function() { + return "" + ot.apply(this) + D(this.minutes(), 2); + }), x("hmmss", 0, 0, function() { + return "" + ot.apply(this) + D(this.minutes(), 2) + D(this.seconds(), 2); + }), x("Hmm", 0, 0, function() { + return "" + this.hours() + D(this.minutes(), 2); + }), x("Hmmss", 0, 0, function() { + return "" + this.hours() + D(this.minutes(), 2) + D(this.seconds(), 2); + }), at("a", true), at("A", false), G("hour", "h"), Y("hour", 13), me("a", st), me("A", st), me("H", re), me("h", re), me("k", re), me("HH", re, ee), me("hh", re, ee), me("kk", re, ee), me("hmm", oe), me("hmmss", ae), me("Hmm", oe), me("Hmmss", ae), ye(["H", "HH"], Ce), ye(["k", "kk"], function(e3, t4, i3) { + var n3 = z(e3); + t4[Ce] = 24 === n3 ? 0 : n3; + }), ye(["a", "A"], function(e3, t4, i3) { + i3._isPm = i3._locale.isPM(e3), i3._meridiem = e3; + }), ye(["h", "hh"], function(e3, t4, i3) { + t4[Ce] = z(e3), m(i3).bigHour = true; + }), ye("hmm", function(e3, t4, i3) { + var n3 = e3.length - 2; + t4[Ce] = z(e3.substr(0, n3)), t4[be] = z(e3.substr(n3)), m(i3).bigHour = true; + }), ye("hmmss", function(e3, t4, i3) { + var n3 = e3.length - 4, r3 = e3.length - 2; + t4[Ce] = z(e3.substr(0, n3)), t4[be] = z(e3.substr(n3, 2)), t4[Ee] = z(e3.substr(r3)), m(i3).bigHour = true; + }), ye("Hmm", function(e3, t4, i3) { + var n3 = e3.length - 2; + t4[Ce] = z(e3.substr(0, n3)), t4[be] = z(e3.substr(n3)); + }), ye("Hmmss", function(e3, t4, i3) { + var n3 = e3.length - 4, r3 = e3.length - 2; + t4[Ce] = z(e3.substr(0, n3)), t4[be] = z(e3.substr(n3, 2)), t4[Ee] = z(e3.substr(r3)); + }); + var lt = K("Hours", true); + var ut, dt = { calendar: { sameDay: "[Today at] LT", nextDay: "[Tomorrow at] LT", nextWeek: "dddd [at] LT", lastDay: "[Yesterday at] LT", lastWeek: "[Last] dddd [at] LT", sameElse: "L" }, longDateFormat: { LTS: "h:mm:ss A", LT: "h:mm A", L: "MM/DD/YYYY", LL: "MMMM D, YYYY", LLL: "MMMM D, YYYY h:mm A", LLLL: "dddd, MMMM D, YYYY h:mm A" }, invalidDate: "Invalid date", ordinal: "%d", dayOfMonthOrdinalParse: /\d{1,2}/, relativeTime: { future: "in %s", past: "%s ago", s: "a few seconds", ss: "%d seconds", m: "a minute", mm: "%d minutes", h: "an hour", hh: "%d hours", d: "a day", dd: "%d days", w: "a week", ww: "%d weeks", M: "a month", MM: "%d months", y: "a year", yy: "%d years" }, months: Me, monthsShort: Fe, week: { dow: 0, doy: 6 }, weekdays: Qe, weekdaysMin: Ze, weekdaysShort: Xe, meridiemParse: /[ap]\.?m?\.?/i }, ct = {}, pt = {}; + function _t(e3, t4) { + var i3, n3 = Math.min(e3.length, t4.length); + for (i3 = 0; i3 < n3; i3 += 1) if (e3[i3] !== t4[i3]) return i3; + return n3; + } + function ht(e3) { + return e3 ? e3.toLowerCase().replace("_", "-") : e3; + } + function mt(t4) { + var n3 = null; + if (void 0 === ct[t4] && e2 && e2.exports && (function(e3) { + return null != e3.match("^[^/\\\\]*$"); + })(t4)) try { + n3 = ut._abbr, i2(35133)("./" + t4), gt(n3); + } catch (e3) { + ct[t4] = null; + } + return ct[t4]; + } + function gt(e3, t4) { + var i3; + return e3 && ((i3 = u(t4) ? Tt(e3) : ft(e3, t4)) ? ut = i3 : "undefined" != typeof console && console.warn && console.warn("Locale " + e3 + " not found. Did you forget to load it?")), ut._abbr; + } + function ft(e3, t4) { + if (null !== t4) { + var i3, n3 = dt; + if (t4.abbr = e3, null != ct[e3]) b("defineLocaleOverride", "use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."), n3 = ct[e3]._config; + else if (null != t4.parentLocale) if (null != ct[t4.parentLocale]) n3 = ct[t4.parentLocale]._config; + else { + if (null == (i3 = mt(t4.parentLocale))) return pt[t4.parentLocale] || (pt[t4.parentLocale] = []), pt[t4.parentLocale].push({ name: e3, config: t4 }), null; + n3 = i3._config; + } + return ct[e3] = new w(R(n3, t4)), pt[e3] && pt[e3].forEach(function(e4) { + ft(e4.name, e4.config); + }), gt(e3), ct[e3]; + } + return delete ct[e3], null; + } + function Tt(e3) { + var t4; + if (e3 && e3._locale && e3._locale._abbr && (e3 = e3._locale._abbr), !e3) return ut; + if (!o(e3)) { + if (t4 = mt(e3)) return t4; + e3 = [e3]; + } + return (function(e4) { + for (var t5, i3, n3, r3, o2 = 0; o2 < e4.length; ) { + for (t5 = (r3 = ht(e4[o2]).split("-")).length, i3 = (i3 = ht(e4[o2 + 1])) ? i3.split("-") : null; t5 > 0; ) { + if (n3 = mt(r3.slice(0, t5).join("-"))) return n3; + if (i3 && i3.length >= t5 && _t(r3, i3) >= t5 - 1) break; + t5--; + } + o2++; + } + return ut; + })(e3); + } + function yt(e3) { + var t4, i3 = e3._a; + return i3 && -2 === m(e3).overflow && (t4 = i3[Ie] < 0 || i3[Ie] > 11 ? Ie : i3[ve] < 1 || i3[ve] > Pe(i3[Oe], i3[Ie]) ? ve : i3[Ce] < 0 || i3[Ce] > 24 || 24 === i3[Ce] && (0 !== i3[be] || 0 !== i3[Ee] || 0 !== i3[Re]) ? Ce : i3[be] < 0 || i3[be] > 59 ? be : i3[Ee] < 0 || i3[Ee] > 59 ? Ee : i3[Re] < 0 || i3[Re] > 999 ? Re : -1, m(e3)._overflowDayOfYear && (t4 < Oe || t4 > ve) && (t4 = ve), m(e3)._overflowWeeks && -1 === t4 && (t4 = we), m(e3)._overflowWeekday && -1 === t4 && (t4 = De), m(e3).overflow = t4), e3; + } + var St = /^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/, At = /^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/, Nt = /Z|[+-]\d\d(?::?\d\d)?/, Ot = [["YYYYYY-MM-DD", /[+-]\d{6}-\d\d-\d\d/], ["YYYY-MM-DD", /\d{4}-\d\d-\d\d/], ["GGGG-[W]WW-E", /\d{4}-W\d\d-\d/], ["GGGG-[W]WW", /\d{4}-W\d\d/, false], ["YYYY-DDD", /\d{4}-\d{3}/], ["YYYY-MM", /\d{4}-\d\d/, false], ["YYYYYYMMDD", /[+-]\d{10}/], ["YYYYMMDD", /\d{8}/], ["GGGG[W]WWE", /\d{4}W\d{3}/], ["GGGG[W]WW", /\d{4}W\d{2}/, false], ["YYYYDDD", /\d{7}/], ["YYYYMM", /\d{6}/, false], ["YYYY", /\d{4}/, false]], It = [["HH:mm:ss.SSSS", /\d\d:\d\d:\d\d\.\d+/], ["HH:mm:ss,SSSS", /\d\d:\d\d:\d\d,\d+/], ["HH:mm:ss", /\d\d:\d\d:\d\d/], ["HH:mm", /\d\d:\d\d/], ["HHmmss.SSSS", /\d\d\d\d\d\d\.\d+/], ["HHmmss,SSSS", /\d\d\d\d\d\d,\d+/], ["HHmmss", /\d\d\d\d\d\d/], ["HHmm", /\d\d\d\d/], ["HH", /\d\d/]], vt = /^\/?Date\((-?\d+)/i, Ct = /^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/, bt = { UT: 0, GMT: 0, EDT: -240, EST: -300, CDT: -300, CST: -360, MDT: -360, MST: -420, PDT: -420, PST: -480 }; + function Et(e3) { + var t4, i3, n3, r3, o2, a2, s2 = e3._i, l2 = St.exec(s2) || At.exec(s2), u2 = Ot.length, d2 = It.length; + if (l2) { + for (m(e3).iso = true, t4 = 0, i3 = u2; t4 < i3; t4++) if (Ot[t4][1].exec(l2[1])) { + r3 = Ot[t4][0], n3 = false !== Ot[t4][2]; + break; + } + if (null == r3) return void (e3._isValid = false); + if (l2[3]) { + for (t4 = 0, i3 = d2; t4 < i3; t4++) if (It[t4][1].exec(l2[3])) { + o2 = (l2[2] || " ") + It[t4][0]; + break; + } + if (null == o2) return void (e3._isValid = false); + } + if (!n3 && null != o2) return void (e3._isValid = false); + if (l2[4]) { + if (!Nt.exec(l2[4])) return void (e3._isValid = false); + a2 = "Z"; + } + e3._f = r3 + (o2 || "") + (a2 || ""), Mt(e3); + } else e3._isValid = false; + } + function Rt(e3) { + var t4 = parseInt(e3, 10); + return t4 <= 49 ? 2e3 + t4 : t4 <= 999 ? 1900 + t4 : t4; + } + function wt(e3) { + var t4, i3, n3, r3, o2, a2, s2, l2, u2 = Ct.exec(e3._i.replace(/\([^()]*\)|[\n\t]/g, " ").replace(/(\s\s+)/g, " ").replace(/^\s\s*/, "").replace(/\s\s*$/, "")); + if (u2) { + if (i3 = u2[4], n3 = u2[3], r3 = u2[2], o2 = u2[5], a2 = u2[6], s2 = u2[7], l2 = [Rt(i3), Fe.indexOf(n3), parseInt(r3, 10), parseInt(o2, 10), parseInt(a2, 10)], s2 && l2.push(parseInt(s2, 10)), t4 = l2, !(function(e4, t5, i4) { + return !e4 || Xe.indexOf(e4) === new Date(t5[0], t5[1], t5[2]).getDay() || (m(i4).weekdayMismatch = true, i4._isValid = false, false); + })(u2[1], t4, e3)) return; + e3._a = t4, e3._tzm = (function(e4, t5, i4) { + if (e4) return bt[e4]; + if (t5) return 0; + var n4 = parseInt(i4, 10), r4 = n4 % 100; + return (n4 - r4) / 100 * 60 + r4; + })(u2[8], u2[9], u2[10]), e3._d = Ye.apply(null, e3._a), e3._d.setUTCMinutes(e3._d.getUTCMinutes() - e3._tzm), m(e3).rfc2822 = true; + } else e3._isValid = false; + } + function Dt(e3, t4, i3) { + return null != e3 ? e3 : null != t4 ? t4 : i3; + } + function Pt(e3) { + var t4, i3, n3, o2, a2, s2 = []; + if (!e3._d) { + for (n3 = (function(e4) { + var t5 = new Date(r2.now()); + return e4._useUTC ? [t5.getUTCFullYear(), t5.getUTCMonth(), t5.getUTCDate()] : [t5.getFullYear(), t5.getMonth(), t5.getDate()]; + })(e3), e3._w && null == e3._a[ve] && null == e3._a[Ie] && (function(e4) { + var t5, i4, n4, r3, o3, a3, s3, l2, u2; + null != (t5 = e4._w).GG || null != t5.W || null != t5.E ? (o3 = 1, a3 = 4, i4 = Dt(t5.GG, e4._a[Oe], ze(xt(), 1, 4).year), n4 = Dt(t5.W, 1), ((r3 = Dt(t5.E, 1)) < 1 || r3 > 7) && (l2 = true)) : (o3 = e4._locale._week.dow, a3 = e4._locale._week.doy, u2 = ze(xt(), o3, a3), i4 = Dt(t5.gg, e4._a[Oe], u2.year), n4 = Dt(t5.w, u2.week), null != t5.d ? ((r3 = t5.d) < 0 || r3 > 6) && (l2 = true) : null != t5.e ? (r3 = t5.e + o3, (t5.e < 0 || t5.e > 6) && (l2 = true)) : r3 = o3), n4 < 1 || n4 > Ke(i4, o3, a3) ? m(e4)._overflowWeeks = true : null != l2 ? m(e4)._overflowWeekday = true : (s3 = Je(i4, n4, r3, o3, a3), e4._a[Oe] = s3.year, e4._dayOfYear = s3.dayOfYear); + })(e3), null != e3._dayOfYear && (a2 = Dt(e3._a[Oe], n3[Oe]), (e3._dayOfYear > je(a2) || 0 === e3._dayOfYear) && (m(e3)._overflowDayOfYear = true), i3 = Ye(a2, 0, e3._dayOfYear), e3._a[Ie] = i3.getUTCMonth(), e3._a[ve] = i3.getUTCDate()), t4 = 0; t4 < 3 && null == e3._a[t4]; ++t4) e3._a[t4] = s2[t4] = n3[t4]; + for (; t4 < 7; t4++) e3._a[t4] = s2[t4] = null == e3._a[t4] ? 2 === t4 ? 1 : 0 : e3._a[t4]; + 24 === e3._a[Ce] && 0 === e3._a[be] && 0 === e3._a[Ee] && 0 === e3._a[Re] && (e3._nextDay = true, e3._a[Ce] = 0), e3._d = (e3._useUTC ? Ye : qe).apply(null, s2), o2 = e3._useUTC ? e3._d.getUTCDay() : e3._d.getDay(), null != e3._tzm && e3._d.setUTCMinutes(e3._d.getUTCMinutes() - e3._tzm), e3._nextDay && (e3._a[Ce] = 24), e3._w && void 0 !== e3._w.d && e3._w.d !== o2 && (m(e3).weekdayMismatch = true); + } + } + function Mt(e3) { + if (e3._f !== r2.ISO_8601) if (e3._f !== r2.RFC_2822) { + e3._a = [], m(e3).empty = true; + var t4, i3, n3, o2, a2, s2, l2, u2 = "" + e3._i, d2 = u2.length, c2 = 0; + for (l2 = (n3 = U(e3._f, e3._locale).match(P) || []).length, t4 = 0; t4 < l2; t4++) o2 = n3[t4], (i3 = (u2.match(ge(o2, e3)) || [])[0]) && ((a2 = u2.substr(0, u2.indexOf(i3))).length > 0 && m(e3).unusedInput.push(a2), u2 = u2.slice(u2.indexOf(i3) + i3.length), c2 += i3.length), L[o2] ? (i3 ? m(e3).empty = false : m(e3).unusedTokens.push(o2), Ae(o2, i3, e3)) : e3._strict && !i3 && m(e3).unusedTokens.push(o2); + m(e3).charsLeftOver = d2 - c2, u2.length > 0 && m(e3).unusedInput.push(u2), e3._a[Ce] <= 12 && true === m(e3).bigHour && e3._a[Ce] > 0 && (m(e3).bigHour = void 0), m(e3).parsedDateParts = e3._a.slice(0), m(e3).meridiem = e3._meridiem, e3._a[Ce] = (function(e4, t5, i4) { + var n4; + return null == i4 ? t5 : null != e4.meridiemHour ? e4.meridiemHour(t5, i4) : null != e4.isPM ? ((n4 = e4.isPM(i4)) && t5 < 12 && (t5 += 12), n4 || 12 !== t5 || (t5 = 0), t5) : t5; + })(e3._locale, e3._a[Ce], e3._meridiem), null !== (s2 = m(e3).era) && (e3._a[Oe] = e3._locale.erasConvertYear(s2, e3._a[Oe])), Pt(e3), yt(e3); + } else wt(e3); + else Et(e3); + } + function Ft(e3) { + var t4 = e3._i, i3 = e3._f; + return e3._locale = e3._locale || Tt(e3._l), null === t4 || void 0 === i3 && "" === t4 ? f({ nullInput: true }) : ("string" == typeof t4 && (e3._i = t4 = e3._locale.preparse(t4)), N(t4) ? new A(yt(t4)) : (c(t4) ? e3._d = t4 : o(i3) ? (function(e4) { + var t5, i4, n3, r3, o2, a2, s2 = false, l2 = e4._f.length; + if (0 === l2) return m(e4).invalidFormat = true, void (e4._d = /* @__PURE__ */ new Date(NaN)); + for (r3 = 0; r3 < l2; r3++) o2 = 0, a2 = false, t5 = S({}, e4), null != e4._useUTC && (t5._useUTC = e4._useUTC), t5._f = e4._f[r3], Mt(t5), g(t5) && (a2 = true), o2 += m(t5).charsLeftOver, o2 += 10 * m(t5).unusedTokens.length, m(t5).score = o2, s2 ? o2 < n3 && (n3 = o2, i4 = t5) : (null == n3 || o2 < n3 || a2) && (n3 = o2, i4 = t5, a2 && (s2 = true)); + _(e4, i4 || t5); + })(e3) : i3 ? Mt(e3) : (function(e4) { + var t5 = e4._i; + u(t5) ? e4._d = new Date(r2.now()) : c(t5) ? e4._d = new Date(t5.valueOf()) : "string" == typeof t5 ? (function(e5) { + var t6 = vt.exec(e5._i); + null === t6 ? (Et(e5), false === e5._isValid && (delete e5._isValid, wt(e5), false === e5._isValid && (delete e5._isValid, e5._strict ? e5._isValid = false : r2.createFromInputFallback(e5)))) : e5._d = /* @__PURE__ */ new Date(+t6[1]); + })(e4) : o(t5) ? (e4._a = p(t5.slice(0), function(e5) { + return parseInt(e5, 10); + }), Pt(e4)) : a(t5) ? (function(e5) { + if (!e5._d) { + var t6 = W(e5._i), i4 = void 0 === t6.day ? t6.date : t6.day; + e5._a = p([t6.year, t6.month, i4, t6.hour, t6.minute, t6.second, t6.millisecond], function(e6) { + return e6 && parseInt(e6, 10); + }), Pt(e5); + } + })(e4) : d(t5) ? e4._d = new Date(t5) : r2.createFromInputFallback(e4); + })(e3), g(e3) || (e3._d = null), e3)); + } + function Lt(e3, t4, i3, n3, r3) { + var s2, u2 = {}; + return true !== t4 && false !== t4 || (n3 = t4, t4 = void 0), true !== i3 && false !== i3 || (n3 = i3, i3 = void 0), (a(e3) && l(e3) || o(e3) && 0 === e3.length) && (e3 = void 0), u2._isAMomentObject = true, u2._useUTC = u2._isUTC = r3, u2._l = i3, u2._i = e3, u2._f = t4, u2._strict = n3, (s2 = new A(yt(Ft(u2))))._nextDay && (s2.add(1, "d"), s2._nextDay = void 0), s2; + } + function xt(e3, t4, i3, n3) { + return Lt(e3, t4, i3, n3, false); + } + r2.createFromInputFallback = I("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.", function(e3) { + e3._d = /* @__PURE__ */ new Date(e3._i + (e3._useUTC ? " UTC" : "")); + }), r2.ISO_8601 = function() { + }, r2.RFC_2822 = function() { + }; + var kt = I("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/", function() { + var e3 = xt.apply(null, arguments); + return this.isValid() && e3.isValid() ? e3 < this ? this : e3 : f(); + }), Vt = I("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/", function() { + var e3 = xt.apply(null, arguments); + return this.isValid() && e3.isValid() ? e3 > this ? this : e3 : f(); + }); + function Ut(e3, t4) { + var i3, n3; + if (1 === t4.length && o(t4[0]) && (t4 = t4[0]), !t4.length) return xt(); + for (i3 = t4[0], n3 = 1; n3 < t4.length; ++n3) t4[n3].isValid() && !t4[n3][e3](i3) || (i3 = t4[n3]); + return i3; + } + var Bt = ["year", "quarter", "month", "week", "day", "hour", "minute", "second", "millisecond"]; + function Gt(e3) { + var t4 = W(e3), i3 = t4.year || 0, n3 = t4.quarter || 0, r3 = t4.month || 0, o2 = t4.week || t4.isoWeek || 0, a2 = t4.day || 0, l2 = t4.hour || 0, u2 = t4.minute || 0, d2 = t4.second || 0, c2 = t4.millisecond || 0; + this._isValid = (function(e4) { + var t5, i4, n4 = false, r4 = Bt.length; + for (t5 in e4) if (s(e4, t5) && (-1 === Ne.call(Bt, t5) || null != e4[t5] && isNaN(e4[t5]))) return false; + for (i4 = 0; i4 < r4; ++i4) if (e4[Bt[i4]]) { + if (n4) return false; + parseFloat(e4[Bt[i4]]) !== z(e4[Bt[i4]]) && (n4 = true); + } + return true; + })(t4), this._milliseconds = +c2 + 1e3 * d2 + 6e4 * u2 + 1e3 * l2 * 60 * 60, this._days = +a2 + 7 * o2, this._months = +r3 + 3 * n3 + 12 * i3, this._data = {}, this._locale = Tt(), this._bubble(); + } + function jt(e3) { + return e3 instanceof Gt; + } + function Wt(e3) { + return e3 < 0 ? -1 * Math.round(-1 * e3) : Math.round(e3); + } + function qt(e3, t4) { + x(e3, 0, 0, function() { + var e4 = this.utcOffset(), i3 = "+"; + return e4 < 0 && (e4 = -e4, i3 = "-"), i3 + D(~~(e4 / 60), 2) + t4 + D(~~e4 % 60, 2); + }); + } + qt("Z", ":"), qt("ZZ", ""), me("Z", _e), me("ZZ", _e), ye(["Z", "ZZ"], function(e3, t4, i3) { + i3._useUTC = true, i3._tzm = Ht(_e, e3); + }); + var Yt = /([\+\-]|\d\d)/gi; + function Ht(e3, t4) { + var i3, n3, r3 = (t4 || "").match(e3); + return null === r3 ? null : 0 === (n3 = 60 * (i3 = ((r3[r3.length - 1] || []) + "").match(Yt) || ["-", 0, 0])[1] + z(i3[2])) ? 0 : "+" === i3[0] ? n3 : -n3; + } + function Jt(e3, t4) { + var i3, n3; + return t4._isUTC ? (i3 = t4.clone(), n3 = (N(e3) || c(e3) ? e3.valueOf() : xt(e3).valueOf()) - i3.valueOf(), i3._d.setTime(i3._d.valueOf() + n3), r2.updateOffset(i3, false), i3) : xt(e3).local(); + } + function zt(e3) { + return -Math.round(e3._d.getTimezoneOffset()); + } + function Kt() { + return !!this.isValid() && this._isUTC && 0 === this._offset; + } + r2.updateOffset = function() { + }; + var $t = /^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/, Qt = /^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/; + function Xt(e3, t4) { + var i3, n3, r3, o2, a2, l2, u2 = e3, c2 = null; + return jt(e3) ? u2 = { ms: e3._milliseconds, d: e3._days, M: e3._months } : d(e3) || !isNaN(+e3) ? (u2 = {}, t4 ? u2[t4] = +e3 : u2.milliseconds = +e3) : (c2 = $t.exec(e3)) ? (i3 = "-" === c2[1] ? -1 : 1, u2 = { y: 0, d: z(c2[ve]) * i3, h: z(c2[Ce]) * i3, m: z(c2[be]) * i3, s: z(c2[Ee]) * i3, ms: z(Wt(1e3 * c2[Re])) * i3 }) : (c2 = Qt.exec(e3)) ? (i3 = "-" === c2[1] ? -1 : 1, u2 = { y: Zt(c2[2], i3), M: Zt(c2[3], i3), w: Zt(c2[4], i3), d: Zt(c2[5], i3), h: Zt(c2[6], i3), m: Zt(c2[7], i3), s: Zt(c2[8], i3) }) : null == u2 ? u2 = {} : "object" == typeof u2 && ("from" in u2 || "to" in u2) && (o2 = xt(u2.from), a2 = xt(u2.to), r3 = o2.isValid() && a2.isValid() ? (a2 = Jt(a2, o2), o2.isBefore(a2) ? l2 = ei(o2, a2) : ((l2 = ei(a2, o2)).milliseconds = -l2.milliseconds, l2.months = -l2.months), l2) : { milliseconds: 0, months: 0 }, (u2 = {}).ms = r3.milliseconds, u2.M = r3.months), n3 = new Gt(u2), jt(e3) && s(e3, "_locale") && (n3._locale = e3._locale), jt(e3) && s(e3, "_isValid") && (n3._isValid = e3._isValid), n3; + } + function Zt(e3, t4) { + var i3 = e3 && parseFloat(e3.replace(",", ".")); + return (isNaN(i3) ? 0 : i3) * t4; + } + function ei(e3, t4) { + var i3 = {}; + return i3.months = t4.month() - e3.month() + 12 * (t4.year() - e3.year()), e3.clone().add(i3.months, "M").isAfter(t4) && --i3.months, i3.milliseconds = +t4 - +e3.clone().add(i3.months, "M"), i3; + } + function ti(e3, t4) { + return function(i3, n3) { + var r3; + return null === n3 || isNaN(+n3) || (b(t4, "moment()." + t4 + "(period, number) is deprecated. Please use moment()." + t4 + "(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."), r3 = i3, i3 = n3, n3 = r3), ii(this, Xt(i3, n3), e3), this; + }; + } + function ii(e3, t4, i3, n3) { + var o2 = t4._milliseconds, a2 = Wt(t4._days), s2 = Wt(t4._months); + e3.isValid() && (n3 = null == n3 || n3, s2 && Ue(e3, $(e3, "Month") + s2 * i3), a2 && Q(e3, "Date", $(e3, "Date") + a2 * i3), o2 && e3._d.setTime(e3._d.valueOf() + o2 * i3), n3 && r2.updateOffset(e3, a2 || s2)); + } + Xt.fn = Gt.prototype, Xt.invalid = function() { + return Xt(NaN); + }; + var ni = ti(1, "add"), ri = ti(-1, "subtract"); + function oi(e3) { + return "string" == typeof e3 || e3 instanceof String; + } + function ai(e3) { + return N(e3) || c(e3) || oi(e3) || d(e3) || (function(e4) { + var t4 = o(e4), i3 = false; + return t4 && (i3 = 0 === e4.filter(function(t5) { + return !d(t5) && oi(e4); + }).length), t4 && i3; + })(e3) || (function(e4) { + var t4, i3, n3 = a(e4) && !l(e4), r3 = false, o2 = ["years", "year", "y", "months", "month", "M", "days", "day", "d", "dates", "date", "D", "hours", "hour", "h", "minutes", "minute", "m", "seconds", "second", "s", "milliseconds", "millisecond", "ms"], u2 = o2.length; + for (t4 = 0; t4 < u2; t4 += 1) i3 = o2[t4], r3 = r3 || s(e4, i3); + return n3 && r3; + })(e3) || null == e3; + } + function si(e3, t4) { + if (e3.date() < t4.date()) return -si(t4, e3); + var i3 = 12 * (t4.year() - e3.year()) + (t4.month() - e3.month()), n3 = e3.clone().add(i3, "months"); + return -(i3 + (t4 - n3 < 0 ? (t4 - n3) / (n3 - e3.clone().add(i3 - 1, "months")) : (t4 - n3) / (e3.clone().add(i3 + 1, "months") - n3))) || 0; + } + function li(e3) { + var t4; + return void 0 === e3 ? this._locale._abbr : (null != (t4 = Tt(e3)) && (this._locale = t4), this); + } + r2.defaultFormat = "YYYY-MM-DDTHH:mm:ssZ", r2.defaultFormatUtc = "YYYY-MM-DDTHH:mm:ss[Z]"; + var ui = I("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.", function(e3) { + return void 0 === e3 ? this.localeData() : this.locale(e3); + }); + function di() { + return this._locale; + } + var ci = 1e3, pi = 6e4, _i = 36e5, hi = 126227808e5; + function mi(e3, t4) { + return (e3 % t4 + t4) % t4; + } + function gi(e3, t4, i3) { + return e3 < 100 && e3 >= 0 ? new Date(e3 + 400, t4, i3) - hi : new Date(e3, t4, i3).valueOf(); + } + function fi(e3, t4, i3) { + return e3 < 100 && e3 >= 0 ? Date.UTC(e3 + 400, t4, i3) - hi : Date.UTC(e3, t4, i3); + } + function Ti(e3, t4) { + return t4.erasAbbrRegex(e3); + } + function yi() { + var e3, t4, i3 = [], n3 = [], r3 = [], o2 = [], a2 = this.eras(); + for (e3 = 0, t4 = a2.length; e3 < t4; ++e3) n3.push(fe(a2[e3].name)), i3.push(fe(a2[e3].abbr)), r3.push(fe(a2[e3].narrow)), o2.push(fe(a2[e3].name)), o2.push(fe(a2[e3].abbr)), o2.push(fe(a2[e3].narrow)); + this._erasRegex = new RegExp("^(" + o2.join("|") + ")", "i"), this._erasNameRegex = new RegExp("^(" + n3.join("|") + ")", "i"), this._erasAbbrRegex = new RegExp("^(" + i3.join("|") + ")", "i"), this._erasNarrowRegex = new RegExp("^(" + r3.join("|") + ")", "i"); + } + function Si(e3, t4) { + x(0, [e3, e3.length], 0, t4); + } + function Ai(e3, t4, i3, n3, r3) { + var o2; + return null == e3 ? ze(this, n3, r3).year : (t4 > (o2 = Ke(e3, n3, r3)) && (t4 = o2), Ni.call(this, e3, t4, i3, n3, r3)); + } + function Ni(e3, t4, i3, n3, r3) { + var o2 = Je(e3, t4, i3, n3, r3), a2 = Ye(o2.year, 0, o2.dayOfYear); + return this.year(a2.getUTCFullYear()), this.month(a2.getUTCMonth()), this.date(a2.getUTCDate()), this; + } + x("N", 0, 0, "eraAbbr"), x("NN", 0, 0, "eraAbbr"), x("NNN", 0, 0, "eraAbbr"), x("NNNN", 0, 0, "eraName"), x("NNNNN", 0, 0, "eraNarrow"), x("y", ["y", 1], "yo", "eraYear"), x("y", ["yy", 2], 0, "eraYear"), x("y", ["yyy", 3], 0, "eraYear"), x("y", ["yyyy", 4], 0, "eraYear"), me("N", Ti), me("NN", Ti), me("NNN", Ti), me("NNNN", function(e3, t4) { + return t4.erasNameRegex(e3); + }), me("NNNNN", function(e3, t4) { + return t4.erasNarrowRegex(e3); + }), ye(["N", "NN", "NNN", "NNNN", "NNNNN"], function(e3, t4, i3, n3) { + var r3 = i3._locale.erasParse(e3, n3, i3._strict); + r3 ? m(i3).era = r3 : m(i3).invalidEra = e3; + }), me("y", de), me("yy", de), me("yyy", de), me("yyyy", de), me("yo", function(e3, t4) { + return t4._eraYearOrdinalRegex || de; + }), ye(["y", "yy", "yyy", "yyyy"], Oe), ye(["yo"], function(e3, t4, i3, n3) { + var r3; + i3._locale._eraYearOrdinalRegex && (r3 = e3.match(i3._locale._eraYearOrdinalRegex)), i3._locale.eraYearOrdinalParse ? t4[Oe] = i3._locale.eraYearOrdinalParse(e3, r3) : t4[Oe] = parseInt(e3, 10); + }), x(0, ["gg", 2], 0, function() { + return this.weekYear() % 100; + }), x(0, ["GG", 2], 0, function() { + return this.isoWeekYear() % 100; + }), Si("gggg", "weekYear"), Si("ggggg", "weekYear"), Si("GGGG", "isoWeekYear"), Si("GGGGG", "isoWeekYear"), G("weekYear", "gg"), G("isoWeekYear", "GG"), Y("weekYear", 1), Y("isoWeekYear", 1), me("G", ce), me("g", ce), me("GG", re, ee), me("gg", re, ee), me("GGGG", le, ie), me("gggg", le, ie), me("GGGGG", ue, ne), me("ggggg", ue, ne), Se(["gggg", "ggggg", "GGGG", "GGGGG"], function(e3, t4, i3, n3) { + t4[n3.substr(0, 2)] = z(e3); + }), Se(["gg", "GG"], function(e3, t4, i3, n3) { + t4[n3] = r2.parseTwoDigitYear(e3); + }), x("Q", 0, "Qo", "quarter"), G("quarter", "Q"), Y("quarter", 7), me("Q", Z), ye("Q", function(e3, t4) { + t4[Ie] = 3 * (z(e3) - 1); + }), x("D", ["DD", 2], "Do", "date"), G("date", "D"), Y("date", 9), me("D", re), me("DD", re, ee), me("Do", function(e3, t4) { + return e3 ? t4._dayOfMonthOrdinalParse || t4._ordinalParse : t4._dayOfMonthOrdinalParseLenient; + }), ye(["D", "DD"], ve), ye("Do", function(e3, t4) { + t4[ve] = z(e3.match(re)[0]); + }); + var Oi = K("Date", true); + x("DDD", ["DDDD", 3], "DDDo", "dayOfYear"), G("dayOfYear", "DDD"), Y("dayOfYear", 4), me("DDD", se), me("DDDD", te), ye(["DDD", "DDDD"], function(e3, t4, i3) { + i3._dayOfYear = z(e3); + }), x("m", ["mm", 2], 0, "minute"), G("minute", "m"), Y("minute", 14), me("m", re), me("mm", re, ee), ye(["m", "mm"], be); + var Ii = K("Minutes", false); + x("s", ["ss", 2], 0, "second"), G("second", "s"), Y("second", 15), me("s", re), me("ss", re, ee), ye(["s", "ss"], Ee); + var vi, Ci, bi = K("Seconds", false); + for (x("S", 0, 0, function() { + return ~~(this.millisecond() / 100); + }), x(0, ["SS", 2], 0, function() { + return ~~(this.millisecond() / 10); + }), x(0, ["SSS", 3], 0, "millisecond"), x(0, ["SSSS", 4], 0, function() { + return 10 * this.millisecond(); + }), x(0, ["SSSSS", 5], 0, function() { + return 100 * this.millisecond(); + }), x(0, ["SSSSSS", 6], 0, function() { + return 1e3 * this.millisecond(); + }), x(0, ["SSSSSSS", 7], 0, function() { + return 1e4 * this.millisecond(); + }), x(0, ["SSSSSSSS", 8], 0, function() { + return 1e5 * this.millisecond(); + }), x(0, ["SSSSSSSSS", 9], 0, function() { + return 1e6 * this.millisecond(); + }), G("millisecond", "ms"), Y("millisecond", 16), me("S", se, Z), me("SS", se, ee), me("SSS", se, te), vi = "SSSS"; vi.length <= 9; vi += "S") me(vi, de); + function Ei(e3, t4) { + t4[Re] = z(1e3 * ("0." + e3)); + } + for (vi = "S"; vi.length <= 9; vi += "S") ye(vi, Ei); + Ci = K("Milliseconds", false), x("z", 0, 0, "zoneAbbr"), x("zz", 0, 0, "zoneName"); + var Ri = A.prototype; + function wi(e3) { + return e3; + } + Ri.add = ni, Ri.calendar = function(e3, t4) { + 1 === arguments.length && (arguments[0] ? ai(arguments[0]) ? (e3 = arguments[0], t4 = void 0) : (function(e4) { + var t5, i4 = a(e4) && !l(e4), n4 = false, r3 = ["sameDay", "nextDay", "lastDay", "nextWeek", "lastWeek", "sameElse"]; + for (t5 = 0; t5 < r3.length; t5 += 1) n4 = n4 || s(e4, r3[t5]); + return i4 && n4; + })(arguments[0]) && (t4 = arguments[0], e3 = void 0) : (e3 = void 0, t4 = void 0)); + var i3 = e3 || xt(), n3 = Jt(i3, this).startOf("day"), o2 = r2.calendarFormat(this, n3) || "sameElse", u2 = t4 && (E(t4[o2]) ? t4[o2].call(this, i3) : t4[o2]); + return this.format(u2 || this.localeData().calendar(o2, this, xt(i3))); + }, Ri.clone = function() { + return new A(this); + }, Ri.diff = function(e3, t4, i3) { + var n3, r3, o2; + if (!this.isValid()) return NaN; + if (!(n3 = Jt(e3, this)).isValid()) return NaN; + switch (r3 = 6e4 * (n3.utcOffset() - this.utcOffset()), t4 = j(t4)) { + case "year": + o2 = si(this, n3) / 12; + break; + case "month": + o2 = si(this, n3); + break; + case "quarter": + o2 = si(this, n3) / 3; + break; + case "second": + o2 = (this - n3) / 1e3; + break; + case "minute": + o2 = (this - n3) / 6e4; + break; + case "hour": + o2 = (this - n3) / 36e5; + break; + case "day": + o2 = (this - n3 - r3) / 864e5; + break; + case "week": + o2 = (this - n3 - r3) / 6048e5; + break; + default: + o2 = this - n3; + } + return i3 ? o2 : J(o2); + }, Ri.endOf = function(e3) { + var t4, i3; + if (void 0 === (e3 = j(e3)) || "millisecond" === e3 || !this.isValid()) return this; + switch (i3 = this._isUTC ? fi : gi, e3) { + case "year": + t4 = i3(this.year() + 1, 0, 1) - 1; + break; + case "quarter": + t4 = i3(this.year(), this.month() - this.month() % 3 + 3, 1) - 1; + break; + case "month": + t4 = i3(this.year(), this.month() + 1, 1) - 1; + break; + case "week": + t4 = i3(this.year(), this.month(), this.date() - this.weekday() + 7) - 1; + break; + case "isoWeek": + t4 = i3(this.year(), this.month(), this.date() - (this.isoWeekday() - 1) + 7) - 1; + break; + case "day": + case "date": + t4 = i3(this.year(), this.month(), this.date() + 1) - 1; + break; + case "hour": + t4 = this._d.valueOf(), t4 += _i - mi(t4 + (this._isUTC ? 0 : this.utcOffset() * pi), _i) - 1; + break; + case "minute": + t4 = this._d.valueOf(), t4 += pi - mi(t4, pi) - 1; + break; + case "second": + t4 = this._d.valueOf(), t4 += ci - mi(t4, ci) - 1; + } + return this._d.setTime(t4), r2.updateOffset(this, true), this; + }, Ri.format = function(e3) { + e3 || (e3 = this.isUtc() ? r2.defaultFormatUtc : r2.defaultFormat); + var t4 = V(this, e3); + return this.localeData().postformat(t4); + }, Ri.from = function(e3, t4) { + return this.isValid() && (N(e3) && e3.isValid() || xt(e3).isValid()) ? Xt({ to: this, from: e3 }).locale(this.locale()).humanize(!t4) : this.localeData().invalidDate(); + }, Ri.fromNow = function(e3) { + return this.from(xt(), e3); + }, Ri.to = function(e3, t4) { + return this.isValid() && (N(e3) && e3.isValid() || xt(e3).isValid()) ? Xt({ from: this, to: e3 }).locale(this.locale()).humanize(!t4) : this.localeData().invalidDate(); + }, Ri.toNow = function(e3) { + return this.to(xt(), e3); + }, Ri.get = function(e3) { + return E(this[e3 = j(e3)]) ? this[e3]() : this; + }, Ri.invalidAt = function() { + return m(this).overflow; + }, Ri.isAfter = function(e3, t4) { + var i3 = N(e3) ? e3 : xt(e3); + return !(!this.isValid() || !i3.isValid()) && ("millisecond" === (t4 = j(t4) || "millisecond") ? this.valueOf() > i3.valueOf() : i3.valueOf() < this.clone().startOf(t4).valueOf()); + }, Ri.isBefore = function(e3, t4) { + var i3 = N(e3) ? e3 : xt(e3); + return !(!this.isValid() || !i3.isValid()) && ("millisecond" === (t4 = j(t4) || "millisecond") ? this.valueOf() < i3.valueOf() : this.clone().endOf(t4).valueOf() < i3.valueOf()); + }, Ri.isBetween = function(e3, t4, i3, n3) { + var r3 = N(e3) ? e3 : xt(e3), o2 = N(t4) ? t4 : xt(t4); + return !!(this.isValid() && r3.isValid() && o2.isValid()) && ("(" === (n3 = n3 || "()")[0] ? this.isAfter(r3, i3) : !this.isBefore(r3, i3)) && (")" === n3[1] ? this.isBefore(o2, i3) : !this.isAfter(o2, i3)); + }, Ri.isSame = function(e3, t4) { + var i3, n3 = N(e3) ? e3 : xt(e3); + return !(!this.isValid() || !n3.isValid()) && ("millisecond" === (t4 = j(t4) || "millisecond") ? this.valueOf() === n3.valueOf() : (i3 = n3.valueOf(), this.clone().startOf(t4).valueOf() <= i3 && i3 <= this.clone().endOf(t4).valueOf())); + }, Ri.isSameOrAfter = function(e3, t4) { + return this.isSame(e3, t4) || this.isAfter(e3, t4); + }, Ri.isSameOrBefore = function(e3, t4) { + return this.isSame(e3, t4) || this.isBefore(e3, t4); + }, Ri.isValid = function() { + return g(this); + }, Ri.lang = ui, Ri.locale = li, Ri.localeData = di, Ri.max = Vt, Ri.min = kt, Ri.parsingFlags = function() { + return _({}, m(this)); + }, Ri.set = function(e3, t4) { + if ("object" == typeof e3) { + var i3, n3 = (function(e4) { + var t5, i4 = []; + for (t5 in e4) s(e4, t5) && i4.push({ unit: t5, priority: q[t5] }); + return i4.sort(function(e5, t6) { + return e5.priority - t6.priority; + }), i4; + })(e3 = W(e3)), r3 = n3.length; + for (i3 = 0; i3 < r3; i3++) this[n3[i3].unit](e3[n3[i3].unit]); + } else if (E(this[e3 = j(e3)])) return this[e3](t4); + return this; + }, Ri.startOf = function(e3) { + var t4, i3; + if (void 0 === (e3 = j(e3)) || "millisecond" === e3 || !this.isValid()) return this; + switch (i3 = this._isUTC ? fi : gi, e3) { + case "year": + t4 = i3(this.year(), 0, 1); + break; + case "quarter": + t4 = i3(this.year(), this.month() - this.month() % 3, 1); + break; + case "month": + t4 = i3(this.year(), this.month(), 1); + break; + case "week": + t4 = i3(this.year(), this.month(), this.date() - this.weekday()); + break; + case "isoWeek": + t4 = i3(this.year(), this.month(), this.date() - (this.isoWeekday() - 1)); + break; + case "day": + case "date": + t4 = i3(this.year(), this.month(), this.date()); + break; + case "hour": + t4 = this._d.valueOf(), t4 -= mi(t4 + (this._isUTC ? 0 : this.utcOffset() * pi), _i); + break; + case "minute": + t4 = this._d.valueOf(), t4 -= mi(t4, pi); + break; + case "second": + t4 = this._d.valueOf(), t4 -= mi(t4, ci); + } + return this._d.setTime(t4), r2.updateOffset(this, true), this; + }, Ri.subtract = ri, Ri.toArray = function() { + var e3 = this; + return [e3.year(), e3.month(), e3.date(), e3.hour(), e3.minute(), e3.second(), e3.millisecond()]; + }, Ri.toObject = function() { + var e3 = this; + return { years: e3.year(), months: e3.month(), date: e3.date(), hours: e3.hours(), minutes: e3.minutes(), seconds: e3.seconds(), milliseconds: e3.milliseconds() }; + }, Ri.toDate = function() { + return new Date(this.valueOf()); + }, Ri.toISOString = function(e3) { + if (!this.isValid()) return null; + var t4 = true !== e3, i3 = t4 ? this.clone().utc() : this; + return i3.year() < 0 || i3.year() > 9999 ? V(i3, t4 ? "YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]" : "YYYYYY-MM-DD[T]HH:mm:ss.SSSZ") : E(Date.prototype.toISOString) ? t4 ? this.toDate().toISOString() : new Date(this.valueOf() + 60 * this.utcOffset() * 1e3).toISOString().replace("Z", V(i3, "Z")) : V(i3, t4 ? "YYYY-MM-DD[T]HH:mm:ss.SSS[Z]" : "YYYY-MM-DD[T]HH:mm:ss.SSSZ"); + }, Ri.inspect = function() { + if (!this.isValid()) return "moment.invalid(/* " + this._i + " */)"; + var e3, t4, i3, n3 = "moment", r3 = ""; + return this.isLocal() || (n3 = 0 === this.utcOffset() ? "moment.utc" : "moment.parseZone", r3 = "Z"), e3 = "[" + n3 + '("]', t4 = 0 <= this.year() && this.year() <= 9999 ? "YYYY" : "YYYYYY", i3 = r3 + '[")]', this.format(e3 + t4 + "-MM-DD[T]HH:mm:ss.SSS" + i3); + }, "undefined" != typeof Symbol && null != Symbol.for && (Ri[Symbol.for("nodejs.util.inspect.custom")] = function() { + return "Moment<" + this.format() + ">"; + }), Ri.toJSON = function() { + return this.isValid() ? this.toISOString() : null; + }, Ri.toString = function() { + return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ"); + }, Ri.unix = function() { + return Math.floor(this.valueOf() / 1e3); + }, Ri.valueOf = function() { + return this._d.valueOf() - 6e4 * (this._offset || 0); + }, Ri.creationData = function() { + return { input: this._i, format: this._f, locale: this._locale, isUTC: this._isUTC, strict: this._strict }; + }, Ri.eraName = function() { + var e3, t4, i3, n3 = this.localeData().eras(); + for (e3 = 0, t4 = n3.length; e3 < t4; ++e3) { + if (i3 = this.clone().startOf("day").valueOf(), n3[e3].since <= i3 && i3 <= n3[e3].until) return n3[e3].name; + if (n3[e3].until <= i3 && i3 <= n3[e3].since) return n3[e3].name; + } + return ""; + }, Ri.eraNarrow = function() { + var e3, t4, i3, n3 = this.localeData().eras(); + for (e3 = 0, t4 = n3.length; e3 < t4; ++e3) { + if (i3 = this.clone().startOf("day").valueOf(), n3[e3].since <= i3 && i3 <= n3[e3].until) return n3[e3].narrow; + if (n3[e3].until <= i3 && i3 <= n3[e3].since) return n3[e3].narrow; + } + return ""; + }, Ri.eraAbbr = function() { + var e3, t4, i3, n3 = this.localeData().eras(); + for (e3 = 0, t4 = n3.length; e3 < t4; ++e3) { + if (i3 = this.clone().startOf("day").valueOf(), n3[e3].since <= i3 && i3 <= n3[e3].until) return n3[e3].abbr; + if (n3[e3].until <= i3 && i3 <= n3[e3].since) return n3[e3].abbr; + } + return ""; + }, Ri.eraYear = function() { + var e3, t4, i3, n3, o2 = this.localeData().eras(); + for (e3 = 0, t4 = o2.length; e3 < t4; ++e3) if (i3 = o2[e3].since <= o2[e3].until ? 1 : -1, n3 = this.clone().startOf("day").valueOf(), o2[e3].since <= n3 && n3 <= o2[e3].until || o2[e3].until <= n3 && n3 <= o2[e3].since) return (this.year() - r2(o2[e3].since).year()) * i3 + o2[e3].offset; + return this.year(); + }, Ri.year = We, Ri.isLeapYear = function() { + return H(this.year()); + }, Ri.weekYear = function(e3) { + return Ai.call(this, e3, this.week(), this.weekday(), this.localeData()._week.dow, this.localeData()._week.doy); + }, Ri.isoWeekYear = function(e3) { + return Ai.call(this, e3, this.isoWeek(), this.isoWeekday(), 1, 4); + }, Ri.quarter = Ri.quarters = function(e3) { + return null == e3 ? Math.ceil((this.month() + 1) / 3) : this.month(3 * (e3 - 1) + this.month() % 3); + }, Ri.month = Be, Ri.daysInMonth = function() { + return Pe(this.year(), this.month()); + }, Ri.week = Ri.weeks = function(e3) { + var t4 = this.localeData().week(this); + return null == e3 ? t4 : this.add(7 * (e3 - t4), "d"); + }, Ri.isoWeek = Ri.isoWeeks = function(e3) { + var t4 = ze(this, 1, 4).week; + return null == e3 ? t4 : this.add(7 * (e3 - t4), "d"); + }, Ri.weeksInYear = function() { + var e3 = this.localeData()._week; + return Ke(this.year(), e3.dow, e3.doy); + }, Ri.weeksInWeekYear = function() { + var e3 = this.localeData()._week; + return Ke(this.weekYear(), e3.dow, e3.doy); + }, Ri.isoWeeksInYear = function() { + return Ke(this.year(), 1, 4); + }, Ri.isoWeeksInISOWeekYear = function() { + return Ke(this.isoWeekYear(), 1, 4); + }, Ri.date = Oi, Ri.day = Ri.days = function(e3) { + if (!this.isValid()) return null != e3 ? this : NaN; + var t4 = this._isUTC ? this._d.getUTCDay() : this._d.getDay(); + return null != e3 ? (e3 = (function(e4, t5) { + return "string" != typeof e4 ? e4 : isNaN(e4) ? "number" == typeof (e4 = t5.weekdaysParse(e4)) ? e4 : null : parseInt(e4, 10); + })(e3, this.localeData()), this.add(e3 - t4, "d")) : t4; + }, Ri.weekday = function(e3) { + if (!this.isValid()) return null != e3 ? this : NaN; + var t4 = (this.day() + 7 - this.localeData()._week.dow) % 7; + return null == e3 ? t4 : this.add(e3 - t4, "d"); + }, Ri.isoWeekday = function(e3) { + if (!this.isValid()) return null != e3 ? this : NaN; + if (null != e3) { + var t4 = (function(e4, t5) { + return "string" == typeof e4 ? t5.weekdaysParse(e4) % 7 || 7 : isNaN(e4) ? null : e4; + })(e3, this.localeData()); + return this.day(this.day() % 7 ? t4 : t4 - 7); + } + return this.day() || 7; + }, Ri.dayOfYear = function(e3) { + var t4 = Math.round((this.clone().startOf("day") - this.clone().startOf("year")) / 864e5) + 1; + return null == e3 ? t4 : this.add(e3 - t4, "d"); + }, Ri.hour = Ri.hours = lt, Ri.minute = Ri.minutes = Ii, Ri.second = Ri.seconds = bi, Ri.millisecond = Ri.milliseconds = Ci, Ri.utcOffset = function(e3, t4, i3) { + var n3, o2 = this._offset || 0; + if (!this.isValid()) return null != e3 ? this : NaN; + if (null != e3) { + if ("string" == typeof e3) { + if (null === (e3 = Ht(_e, e3))) return this; + } else Math.abs(e3) < 16 && !i3 && (e3 *= 60); + return !this._isUTC && t4 && (n3 = zt(this)), this._offset = e3, this._isUTC = true, null != n3 && this.add(n3, "m"), o2 !== e3 && (!t4 || this._changeInProgress ? ii(this, Xt(e3 - o2, "m"), 1, false) : this._changeInProgress || (this._changeInProgress = true, r2.updateOffset(this, true), this._changeInProgress = null)), this; + } + return this._isUTC ? o2 : zt(this); + }, Ri.utc = function(e3) { + return this.utcOffset(0, e3); + }, Ri.local = function(e3) { + return this._isUTC && (this.utcOffset(0, e3), this._isUTC = false, e3 && this.subtract(zt(this), "m")), this; + }, Ri.parseZone = function() { + if (null != this._tzm) this.utcOffset(this._tzm, false, true); + else if ("string" == typeof this._i) { + var e3 = Ht(pe, this._i); + null != e3 ? this.utcOffset(e3) : this.utcOffset(0, true); + } + return this; + }, Ri.hasAlignedHourOffset = function(e3) { + return !!this.isValid() && (e3 = e3 ? xt(e3).utcOffset() : 0, (this.utcOffset() - e3) % 60 == 0); + }, Ri.isDST = function() { + return this.utcOffset() > this.clone().month(0).utcOffset() || this.utcOffset() > this.clone().month(5).utcOffset(); + }, Ri.isLocal = function() { + return !!this.isValid() && !this._isUTC; + }, Ri.isUtcOffset = function() { + return !!this.isValid() && this._isUTC; + }, Ri.isUtc = Kt, Ri.isUTC = Kt, Ri.zoneAbbr = function() { + return this._isUTC ? "UTC" : ""; + }, Ri.zoneName = function() { + return this._isUTC ? "Coordinated Universal Time" : ""; + }, Ri.dates = I("dates accessor is deprecated. Use date instead.", Oi), Ri.months = I("months accessor is deprecated. Use month instead", Be), Ri.years = I("years accessor is deprecated. Use year instead", We), Ri.zone = I("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/", function(e3, t4) { + return null != e3 ? ("string" != typeof e3 && (e3 = -e3), this.utcOffset(e3, t4), this) : -this.utcOffset(); + }), Ri.isDSTShifted = I("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information", function() { + if (!u(this._isDSTShifted)) return this._isDSTShifted; + var e3, t4 = {}; + return S(t4, this), (t4 = Ft(t4))._a ? (e3 = t4._isUTC ? h(t4._a) : xt(t4._a), this._isDSTShifted = this.isValid() && (function(e4, t5, i3) { + var n3, r3 = Math.min(e4.length, t5.length), o2 = Math.abs(e4.length - t5.length), a2 = 0; + for (n3 = 0; n3 < r3; n3++) (i3 && e4[n3] !== t5[n3] || !i3 && z(e4[n3]) !== z(t5[n3])) && a2++; + return a2 + o2; + })(t4._a, e3.toArray()) > 0) : this._isDSTShifted = false, this._isDSTShifted; + }); + var Di = w.prototype; + function Pi(e3, t4, i3, n3) { + var r3 = Tt(), o2 = h().set(n3, t4); + return r3[i3](o2, e3); + } + function Mi(e3, t4, i3) { + if (d(e3) && (t4 = e3, e3 = void 0), e3 = e3 || "", null != t4) return Pi(e3, t4, i3, "month"); + var n3, r3 = []; + for (n3 = 0; n3 < 12; n3++) r3[n3] = Pi(e3, n3, i3, "month"); + return r3; + } + function Fi(e3, t4, i3, n3) { + "boolean" == typeof e3 ? (d(t4) && (i3 = t4, t4 = void 0), t4 = t4 || "") : (i3 = t4 = e3, e3 = false, d(t4) && (i3 = t4, t4 = void 0), t4 = t4 || ""); + var r3, o2 = Tt(), a2 = e3 ? o2._week.dow : 0, s2 = []; + if (null != i3) return Pi(t4, (i3 + a2) % 7, n3, "day"); + for (r3 = 0; r3 < 7; r3++) s2[r3] = Pi(t4, (r3 + a2) % 7, n3, "day"); + return s2; + } + Di.calendar = function(e3, t4, i3) { + var n3 = this._calendar[e3] || this._calendar.sameElse; + return E(n3) ? n3.call(t4, i3) : n3; + }, Di.longDateFormat = function(e3) { + var t4 = this._longDateFormat[e3], i3 = this._longDateFormat[e3.toUpperCase()]; + return t4 || !i3 ? t4 : (this._longDateFormat[e3] = i3.match(P).map(function(e4) { + return "MMMM" === e4 || "MM" === e4 || "DD" === e4 || "dddd" === e4 ? e4.slice(1) : e4; + }).join(""), this._longDateFormat[e3]); + }, Di.invalidDate = function() { + return this._invalidDate; + }, Di.ordinal = function(e3) { + return this._ordinal.replace("%d", e3); + }, Di.preparse = wi, Di.postformat = wi, Di.relativeTime = function(e3, t4, i3, n3) { + var r3 = this._relativeTime[i3]; + return E(r3) ? r3(e3, t4, i3, n3) : r3.replace(/%d/i, e3); + }, Di.pastFuture = function(e3, t4) { + var i3 = this._relativeTime[e3 > 0 ? "future" : "past"]; + return E(i3) ? i3(t4) : i3.replace(/%s/i, t4); + }, Di.set = function(e3) { + var t4, i3; + for (i3 in e3) s(e3, i3) && (E(t4 = e3[i3]) ? this[i3] = t4 : this["_" + i3] = t4); + this._config = e3, this._dayOfMonthOrdinalParseLenient = new RegExp((this._dayOfMonthOrdinalParse.source || this._ordinalParse.source) + "|" + /\d{1,2}/.source); + }, Di.eras = function(e3, t4) { + var i3, n3, o2, a2 = this._eras || Tt("en")._eras; + for (i3 = 0, n3 = a2.length; i3 < n3; ++i3) switch ("string" == typeof a2[i3].since && (o2 = r2(a2[i3].since).startOf("day"), a2[i3].since = o2.valueOf()), typeof a2[i3].until) { + case "undefined": + a2[i3].until = 1 / 0; + break; + case "string": + o2 = r2(a2[i3].until).startOf("day").valueOf(), a2[i3].until = o2.valueOf(); + } + return a2; + }, Di.erasParse = function(e3, t4, i3) { + var n3, r3, o2, a2, s2, l2 = this.eras(); + for (e3 = e3.toUpperCase(), n3 = 0, r3 = l2.length; n3 < r3; ++n3) if (o2 = l2[n3].name.toUpperCase(), a2 = l2[n3].abbr.toUpperCase(), s2 = l2[n3].narrow.toUpperCase(), i3) switch (t4) { + case "N": + case "NN": + case "NNN": + if (a2 === e3) return l2[n3]; + break; + case "NNNN": + if (o2 === e3) return l2[n3]; + break; + case "NNNNN": + if (s2 === e3) return l2[n3]; + } + else if ([o2, a2, s2].indexOf(e3) >= 0) return l2[n3]; + }, Di.erasConvertYear = function(e3, t4) { + var i3 = e3.since <= e3.until ? 1 : -1; + return void 0 === t4 ? r2(e3.since).year() : r2(e3.since).year() + (t4 - e3.offset) * i3; + }, Di.erasAbbrRegex = function(e3) { + return s(this, "_erasAbbrRegex") || yi.call(this), e3 ? this._erasAbbrRegex : this._erasRegex; + }, Di.erasNameRegex = function(e3) { + return s(this, "_erasNameRegex") || yi.call(this), e3 ? this._erasNameRegex : this._erasRegex; + }, Di.erasNarrowRegex = function(e3) { + return s(this, "_erasNarrowRegex") || yi.call(this), e3 ? this._erasNarrowRegex : this._erasRegex; + }, Di.months = function(e3, t4) { + return e3 ? o(this._months) ? this._months[e3.month()] : this._months[(this._months.isFormat || Le).test(t4) ? "format" : "standalone"][e3.month()] : o(this._months) ? this._months : this._months.standalone; + }, Di.monthsShort = function(e3, t4) { + return e3 ? o(this._monthsShort) ? this._monthsShort[e3.month()] : this._monthsShort[Le.test(t4) ? "format" : "standalone"][e3.month()] : o(this._monthsShort) ? this._monthsShort : this._monthsShort.standalone; + }, Di.monthsParse = function(e3, t4, i3) { + var n3, r3, o2; + if (this._monthsParseExact) return Ve.call(this, e3, t4, i3); + for (this._monthsParse || (this._monthsParse = [], this._longMonthsParse = [], this._shortMonthsParse = []), n3 = 0; n3 < 12; n3++) { + if (r3 = h([2e3, n3]), i3 && !this._longMonthsParse[n3] && (this._longMonthsParse[n3] = new RegExp("^" + this.months(r3, "").replace(".", "") + "$", "i"), this._shortMonthsParse[n3] = new RegExp("^" + this.monthsShort(r3, "").replace(".", "") + "$", "i")), i3 || this._monthsParse[n3] || (o2 = "^" + this.months(r3, "") + "|^" + this.monthsShort(r3, ""), this._monthsParse[n3] = new RegExp(o2.replace(".", ""), "i")), i3 && "MMMM" === t4 && this._longMonthsParse[n3].test(e3)) return n3; + if (i3 && "MMM" === t4 && this._shortMonthsParse[n3].test(e3)) return n3; + if (!i3 && this._monthsParse[n3].test(e3)) return n3; + } + }, Di.monthsRegex = function(e3) { + return this._monthsParseExact ? (s(this, "_monthsRegex") || Ge.call(this), e3 ? this._monthsStrictRegex : this._monthsRegex) : (s(this, "_monthsRegex") || (this._monthsRegex = ke), this._monthsStrictRegex && e3 ? this._monthsStrictRegex : this._monthsRegex); + }, Di.monthsShortRegex = function(e3) { + return this._monthsParseExact ? (s(this, "_monthsRegex") || Ge.call(this), e3 ? this._monthsShortStrictRegex : this._monthsShortRegex) : (s(this, "_monthsShortRegex") || (this._monthsShortRegex = xe), this._monthsShortStrictRegex && e3 ? this._monthsShortStrictRegex : this._monthsShortRegex); + }, Di.week = function(e3) { + return ze(e3, this._week.dow, this._week.doy).week; + }, Di.firstDayOfYear = function() { + return this._week.doy; + }, Di.firstDayOfWeek = function() { + return this._week.dow; + }, Di.weekdays = function(e3, t4) { + var i3 = o(this._weekdays) ? this._weekdays : this._weekdays[e3 && true !== e3 && this._weekdays.isFormat.test(t4) ? "format" : "standalone"]; + return true === e3 ? $e(i3, this._week.dow) : e3 ? i3[e3.day()] : i3; + }, Di.weekdaysMin = function(e3) { + return true === e3 ? $e(this._weekdaysMin, this._week.dow) : e3 ? this._weekdaysMin[e3.day()] : this._weekdaysMin; + }, Di.weekdaysShort = function(e3) { + return true === e3 ? $e(this._weekdaysShort, this._week.dow) : e3 ? this._weekdaysShort[e3.day()] : this._weekdaysShort; + }, Di.weekdaysParse = function(e3, t4, i3) { + var n3, r3, o2; + if (this._weekdaysParseExact) return nt.call(this, e3, t4, i3); + for (this._weekdaysParse || (this._weekdaysParse = [], this._minWeekdaysParse = [], this._shortWeekdaysParse = [], this._fullWeekdaysParse = []), n3 = 0; n3 < 7; n3++) { + if (r3 = h([2e3, 1]).day(n3), i3 && !this._fullWeekdaysParse[n3] && (this._fullWeekdaysParse[n3] = new RegExp("^" + this.weekdays(r3, "").replace(".", "\\.?") + "$", "i"), this._shortWeekdaysParse[n3] = new RegExp("^" + this.weekdaysShort(r3, "").replace(".", "\\.?") + "$", "i"), this._minWeekdaysParse[n3] = new RegExp("^" + this.weekdaysMin(r3, "").replace(".", "\\.?") + "$", "i")), this._weekdaysParse[n3] || (o2 = "^" + this.weekdays(r3, "") + "|^" + this.weekdaysShort(r3, "") + "|^" + this.weekdaysMin(r3, ""), this._weekdaysParse[n3] = new RegExp(o2.replace(".", ""), "i")), i3 && "dddd" === t4 && this._fullWeekdaysParse[n3].test(e3)) return n3; + if (i3 && "ddd" === t4 && this._shortWeekdaysParse[n3].test(e3)) return n3; + if (i3 && "dd" === t4 && this._minWeekdaysParse[n3].test(e3)) return n3; + if (!i3 && this._weekdaysParse[n3].test(e3)) return n3; + } + }, Di.weekdaysRegex = function(e3) { + return this._weekdaysParseExact ? (s(this, "_weekdaysRegex") || rt.call(this), e3 ? this._weekdaysStrictRegex : this._weekdaysRegex) : (s(this, "_weekdaysRegex") || (this._weekdaysRegex = et), this._weekdaysStrictRegex && e3 ? this._weekdaysStrictRegex : this._weekdaysRegex); + }, Di.weekdaysShortRegex = function(e3) { + return this._weekdaysParseExact ? (s(this, "_weekdaysRegex") || rt.call(this), e3 ? this._weekdaysShortStrictRegex : this._weekdaysShortRegex) : (s(this, "_weekdaysShortRegex") || (this._weekdaysShortRegex = tt), this._weekdaysShortStrictRegex && e3 ? this._weekdaysShortStrictRegex : this._weekdaysShortRegex); + }, Di.weekdaysMinRegex = function(e3) { + return this._weekdaysParseExact ? (s(this, "_weekdaysRegex") || rt.call(this), e3 ? this._weekdaysMinStrictRegex : this._weekdaysMinRegex) : (s(this, "_weekdaysMinRegex") || (this._weekdaysMinRegex = it), this._weekdaysMinStrictRegex && e3 ? this._weekdaysMinStrictRegex : this._weekdaysMinRegex); + }, Di.isPM = function(e3) { + return "p" === (e3 + "").toLowerCase().charAt(0); + }, Di.meridiem = function(e3, t4, i3) { + return e3 > 11 ? i3 ? "pm" : "PM" : i3 ? "am" : "AM"; + }, gt("en", { eras: [{ since: "0001-01-01", until: 1 / 0, offset: 1, name: "Anno Domini", narrow: "AD", abbr: "AD" }, { since: "0000-12-31", until: -1 / 0, offset: 1, name: "Before Christ", narrow: "BC", abbr: "BC" }], dayOfMonthOrdinalParse: /\d{1,2}(th|st|nd|rd)/, ordinal: function(e3) { + var t4 = e3 % 10; + return e3 + (1 === z(e3 % 100 / 10) ? "th" : 1 === t4 ? "st" : 2 === t4 ? "nd" : 3 === t4 ? "rd" : "th"); + } }), r2.lang = I("moment.lang is deprecated. Use moment.locale instead.", gt), r2.langData = I("moment.langData is deprecated. Use moment.localeData instead.", Tt); + var Li = Math.abs; + function xi(e3, t4, i3, n3) { + var r3 = Xt(t4, i3); + return e3._milliseconds += n3 * r3._milliseconds, e3._days += n3 * r3._days, e3._months += n3 * r3._months, e3._bubble(); + } + function ki(e3) { + return e3 < 0 ? Math.floor(e3) : Math.ceil(e3); + } + function Vi(e3) { + return 4800 * e3 / 146097; + } + function Ui(e3) { + return 146097 * e3 / 4800; + } + function Bi(e3) { + return function() { + return this.as(e3); + }; + } + var Gi = Bi("ms"), ji = Bi("s"), Wi = Bi("m"), qi = Bi("h"), Yi = Bi("d"), Hi = Bi("w"), Ji = Bi("M"), zi = Bi("Q"), Ki = Bi("y"); + function $i(e3) { + return function() { + return this.isValid() ? this._data[e3] : NaN; + }; + } + var Qi = $i("milliseconds"), Xi = $i("seconds"), Zi = $i("minutes"), en = $i("hours"), tn = $i("days"), nn = $i("months"), rn = $i("years"); + var on = Math.round, an = { ss: 44, s: 45, m: 45, h: 22, d: 26, w: null, M: 11 }; + function sn(e3, t4, i3, n3, r3) { + return r3.relativeTime(t4 || 1, !!i3, e3, n3); + } + var ln = Math.abs; + function un(e3) { + return (e3 > 0) - (e3 < 0) || +e3; + } + function dn() { + if (!this.isValid()) return this.localeData().invalidDate(); + var e3, t4, i3, n3, r3, o2, a2, s2, l2 = ln(this._milliseconds) / 1e3, u2 = ln(this._days), d2 = ln(this._months), c2 = this.asSeconds(); + return c2 ? (e3 = J(l2 / 60), t4 = J(e3 / 60), l2 %= 60, e3 %= 60, i3 = J(d2 / 12), d2 %= 12, n3 = l2 ? l2.toFixed(3).replace(/\.?0+$/, "") : "", r3 = c2 < 0 ? "-" : "", o2 = un(this._months) !== un(c2) ? "-" : "", a2 = un(this._days) !== un(c2) ? "-" : "", s2 = un(this._milliseconds) !== un(c2) ? "-" : "", r3 + "P" + (i3 ? o2 + i3 + "Y" : "") + (d2 ? o2 + d2 + "M" : "") + (u2 ? a2 + u2 + "D" : "") + (t4 || e3 || l2 ? "T" : "") + (t4 ? s2 + t4 + "H" : "") + (e3 ? s2 + e3 + "M" : "") + (l2 ? s2 + n3 + "S" : "")) : "P0D"; + } + var cn = Gt.prototype; + return cn.isValid = function() { + return this._isValid; + }, cn.abs = function() { + var e3 = this._data; + return this._milliseconds = Li(this._milliseconds), this._days = Li(this._days), this._months = Li(this._months), e3.milliseconds = Li(e3.milliseconds), e3.seconds = Li(e3.seconds), e3.minutes = Li(e3.minutes), e3.hours = Li(e3.hours), e3.months = Li(e3.months), e3.years = Li(e3.years), this; + }, cn.add = function(e3, t4) { + return xi(this, e3, t4, 1); + }, cn.subtract = function(e3, t4) { + return xi(this, e3, t4, -1); + }, cn.as = function(e3) { + if (!this.isValid()) return NaN; + var t4, i3, n3 = this._milliseconds; + if ("month" === (e3 = j(e3)) || "quarter" === e3 || "year" === e3) switch (t4 = this._days + n3 / 864e5, i3 = this._months + Vi(t4), e3) { + case "month": + return i3; + case "quarter": + return i3 / 3; + case "year": + return i3 / 12; + } + else switch (t4 = this._days + Math.round(Ui(this._months)), e3) { + case "week": + return t4 / 7 + n3 / 6048e5; + case "day": + return t4 + n3 / 864e5; + case "hour": + return 24 * t4 + n3 / 36e5; + case "minute": + return 1440 * t4 + n3 / 6e4; + case "second": + return 86400 * t4 + n3 / 1e3; + case "millisecond": + return Math.floor(864e5 * t4) + n3; + default: + throw new Error("Unknown unit " + e3); + } + }, cn.asMilliseconds = Gi, cn.asSeconds = ji, cn.asMinutes = Wi, cn.asHours = qi, cn.asDays = Yi, cn.asWeeks = Hi, cn.asMonths = Ji, cn.asQuarters = zi, cn.asYears = Ki, cn.valueOf = function() { + return this.isValid() ? this._milliseconds + 864e5 * this._days + this._months % 12 * 2592e6 + 31536e6 * z(this._months / 12) : NaN; + }, cn._bubble = function() { + var e3, t4, i3, n3, r3, o2 = this._milliseconds, a2 = this._days, s2 = this._months, l2 = this._data; + return o2 >= 0 && a2 >= 0 && s2 >= 0 || o2 <= 0 && a2 <= 0 && s2 <= 0 || (o2 += 864e5 * ki(Ui(s2) + a2), a2 = 0, s2 = 0), l2.milliseconds = o2 % 1e3, e3 = J(o2 / 1e3), l2.seconds = e3 % 60, t4 = J(e3 / 60), l2.minutes = t4 % 60, i3 = J(t4 / 60), l2.hours = i3 % 24, a2 += J(i3 / 24), s2 += r3 = J(Vi(a2)), a2 -= ki(Ui(r3)), n3 = J(s2 / 12), s2 %= 12, l2.days = a2, l2.months = s2, l2.years = n3, this; + }, cn.clone = function() { + return Xt(this); + }, cn.get = function(e3) { + return e3 = j(e3), this.isValid() ? this[e3 + "s"]() : NaN; + }, cn.milliseconds = Qi, cn.seconds = Xi, cn.minutes = Zi, cn.hours = en, cn.days = tn, cn.weeks = function() { + return J(this.days() / 7); + }, cn.months = nn, cn.years = rn, cn.humanize = function(e3, t4) { + if (!this.isValid()) return this.localeData().invalidDate(); + var i3, n3, r3 = false, o2 = an; + return "object" == typeof e3 && (t4 = e3, e3 = false), "boolean" == typeof e3 && (r3 = e3), "object" == typeof t4 && (o2 = Object.assign({}, an, t4), null != t4.s && null == t4.ss && (o2.ss = t4.s - 1)), n3 = (function(e4, t5, i4, n4) { + var r4 = Xt(e4).abs(), o3 = on(r4.as("s")), a2 = on(r4.as("m")), s2 = on(r4.as("h")), l2 = on(r4.as("d")), u2 = on(r4.as("M")), d2 = on(r4.as("w")), c2 = on(r4.as("y")), p2 = o3 <= i4.ss && ["s", o3] || o3 < i4.s && ["ss", o3] || a2 <= 1 && ["m"] || a2 < i4.m && ["mm", a2] || s2 <= 1 && ["h"] || s2 < i4.h && ["hh", s2] || l2 <= 1 && ["d"] || l2 < i4.d && ["dd", l2]; + return null != i4.w && (p2 = p2 || d2 <= 1 && ["w"] || d2 < i4.w && ["ww", d2]), (p2 = p2 || u2 <= 1 && ["M"] || u2 < i4.M && ["MM", u2] || c2 <= 1 && ["y"] || ["yy", c2])[2] = t5, p2[3] = +e4 > 0, p2[4] = n4, sn.apply(null, p2); + })(this, !r3, o2, i3 = this.localeData()), r3 && (n3 = i3.pastFuture(+this, n3)), i3.postformat(n3); + }, cn.toISOString = dn, cn.toString = dn, cn.toJSON = dn, cn.locale = li, cn.localeData = di, cn.toIsoString = I("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)", dn), cn.lang = ui, x("X", 0, 0, "unix"), x("x", 0, 0, "valueOf"), me("x", ce), me("X", /[+-]?\d+(\.\d{1,3})?/), ye("X", function(e3, t4, i3) { + i3._d = new Date(1e3 * parseFloat(e3)); + }), ye("x", function(e3, t4, i3) { + i3._d = new Date(z(e3)); + }), r2.version = "2.29.4", t3 = xt, r2.fn = Ri, r2.min = function() { + return Ut("isBefore", [].slice.call(arguments, 0)); + }, r2.max = function() { + return Ut("isAfter", [].slice.call(arguments, 0)); + }, r2.now = function() { + return Date.now ? Date.now() : +/* @__PURE__ */ new Date(); + }, r2.utc = h, r2.unix = function(e3) { + return xt(1e3 * e3); + }, r2.months = function(e3, t4) { + return Mi(e3, t4, "months"); + }, r2.isDate = c, r2.locale = gt, r2.invalid = f, r2.duration = Xt, r2.isMoment = N, r2.weekdays = function(e3, t4, i3) { + return Fi(e3, t4, i3, "weekdays"); + }, r2.parseZone = function() { + return xt.apply(null, arguments).parseZone(); + }, r2.localeData = Tt, r2.isDuration = jt, r2.monthsShort = function(e3, t4) { + return Mi(e3, t4, "monthsShort"); + }, r2.weekdaysMin = function(e3, t4, i3) { + return Fi(e3, t4, i3, "weekdaysMin"); + }, r2.defineLocale = ft, r2.updateLocale = function(e3, t4) { + if (null != t4) { + var i3, n3, r3 = dt; + null != ct[e3] && null != ct[e3].parentLocale ? ct[e3].set(R(ct[e3]._config, t4)) : (null != (n3 = mt(e3)) && (r3 = n3._config), t4 = R(r3, t4), null == n3 && (t4.abbr = e3), (i3 = new w(t4)).parentLocale = ct[e3], ct[e3] = i3), gt(e3); + } else null != ct[e3] && (null != ct[e3].parentLocale ? (ct[e3] = ct[e3].parentLocale, e3 === gt() && gt(e3)) : null != ct[e3] && delete ct[e3]); + return ct[e3]; + }, r2.locales = function() { + return v(ct); + }, r2.weekdaysShort = function(e3, t4, i3) { + return Fi(e3, t4, i3, "weekdaysShort"); + }, r2.normalizeUnits = j, r2.relativeTimeRounding = function(e3) { + return void 0 === e3 ? on : "function" == typeof e3 && (on = e3, true); + }, r2.relativeTimeThreshold = function(e3, t4) { + return void 0 !== an[e3] && (void 0 === t4 ? an[e3] : (an[e3] = t4, "s" === e3 && (an.ss = t4 - 1), true)); + }, r2.calendarFormat = function(e3, t4) { + var i3 = e3.diff(t4, "days", true); + return i3 < -6 ? "sameElse" : i3 < -1 ? "lastWeek" : i3 < 0 ? "lastDay" : i3 < 1 ? "sameDay" : i3 < 2 ? "nextDay" : i3 < 7 ? "nextWeek" : "sameElse"; + }, r2.prototype = Ri, r2.HTML5_FMT = { DATETIME_LOCAL: "YYYY-MM-DDTHH:mm", DATETIME_LOCAL_SECONDS: "YYYY-MM-DDTHH:mm:ss", DATETIME_LOCAL_MS: "YYYY-MM-DDTHH:mm:ss.SSS", DATE: "YYYY-MM-DD", TIME: "HH:mm", TIME_SECONDS: "HH:mm:ss", TIME_MS: "HH:mm:ss.SSS", WEEK: "GGGG-[W]WW", MONTH: "YYYY-MM" }, r2; + })(); + }, 95142: (e2, t2, i2) => { + let n2 = null; + if (i2(6697)) n2 = i2(79411); + else { + const e3 = i2(29546); + try { + n2 = i2(97549)("./" + e3.getCurrentLanguage() + "/countries.js"); + } catch (e4) { + n2 = i2(79411); + } + } + n2.then && n2.then((t3) => { + e2.exports = t3; + }), e2.exports = n2; + }, 95201: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(55572)), r2 = i2(30801); + class o extends n2.default { + constructor(e3) { + super(e3), this._actualRepeatCount = this.coreFactory.createArchWrapper(e3.actualRepeatCount), this._allowedRepeatCount = this.coreFactory.createArchWrapper(e3.allowedRepeatCount), this._audio = this.coreFactory.createArchWrapper(e3.audio); + } + get _actionTypeId() { + return r2.playAudioOnSilenceActionType; + } + get displayTypeName() { + return this._scriptingName; + } + get isArchActionPlayAudioOnSilence() { + return true; + } + get actualRepeatCount() { + return this._actualRepeatCount; + } + get allowedRepeatCount() { + return this._allowedRepeatCount; + } + get audio() { + return this._audio; + } + } + t2.default = o; + }, 95212: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(82472)), r2 = i2(30801); + class o extends n2.default { + constructor(e3) { + super(e3), this._allowVoicemail = this.coreFactory.createArchWrapper(e3.allowVoicemail), this._targetGroup = this.coreFactory.createArchValueFromExpression(e3.group); + } + get _actionTypeId() { + return r2.transferGroupActionType; + } + get allowVoicemailRollover() { + return this._allowVoicemail; + } + get displayTypeName() { + return this._scriptingName; + } + get isArchActionTransferToGroup() { + return true; + } + get targetGroup() { + return this._targetGroup; + } + } + t2.default = o; + }, 95250: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importDefault(i2(94225)), o = i2(63345), a = n2.__importDefault(i2(45894)); + class s extends a.default { + constructor(e3) { + super(e3, o.responseAssetManager); + } + get _globalTypeName() { + return "responseAsset"; + } + get displayTypeName() { + return "ArchValueResponseAsset"; + } + get isArchValueResponseAsset() { + return true; + } + setLiteralByResponseAssetIdAsync(e3, t3) { + return this._checkItemIsValidLiteralString(this._infoParm("responseAssetId", "setLiteralByResponseAssetIdAsync"), e3), this._checkItemIsValidFunction(this._infoParm("callbackFunction", "setLiteralByResponseAssetIdAsync"), t3, true), this._setLiteralByIdAsync(e3).then(() => r2.default.executeCallback(this, "setLiteralByResponseAssetIdAsync", t3, this)); + } + setLiteralByResponseAssetNameAsync(e3, t3) { + return this._checkItemIsValidLiteralString(this._infoParm("responseAssetName", "setLiteralByResponseAssetNameAsync"), e3), this._checkItemIsValidFunction(this._infoParm("callbackFunction", "setLiteralByResponseAssetNameAsync"), t3, true), this._setLiteralByValueAsync(e3).then(() => r2.default.executeCallback(this, "setLiteralByResponseAssetNameAsync", t3, this)); + } + } + t2.default = s; + }, 95258: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.PromptContainerList = void 0; + const n2 = i2(31635), r2 = i2(80295), o = i2(15116), a = i2(53314); + class s extends o.PagedList { + constructor(e3) { + super(e3); + } + get entities() { + return this._entities; + } + set entities(e3) { + this._entities = this.reviveArray(e3, a.PromptContainer); + } + } + t2.PromptContainerList = s, n2.__decorate([(0, r2.enumerable)(true), n2.__metadata("design:type", Array), n2.__metadata("design:paramtypes", [Array])], s.prototype, "entities", null); + }, 95275: (e2, t2, i2) => { + function n2() { + this.bot = void 0, this.id = void 0, this.languages = void 0, this.name = void 0, this.intents = void 0, this.knowledgebases = void 0, n2.baseConstructor.apply(this, arguments); + } + i2(45214).extend(n2, "DialogEngineVersion"), Object.defineProperties(n2.prototype, { label: { get: function() { + return this.name; + }, set: function(e3) { + this.name = e3; + } } }), e2.exports = n2; + }, 95320: (e2, t2, i2) => { + "use strict"; + const n2 = i2(31635), r2 = i2(12179), o = n2.__importDefault(i2(5478)), a = n2.__importDefault(i2(27203)), s = n2.__importDefault(i2(97891)), l = i2(67483), u = i2(67483), d = i2(47957); + class c extends o.default { + constructor(e3, t3) { + super(e3.parentFlow, e3), this._loadModel(t3); + } + static get branchInfo() { + return a.default.successFailure; + } + _getPossibleErrors() { + return this.parentFlow.isWorkitemFlow ? u.getClearUtilizationLabelFailureReasonsWithWorkitem : l.getClearUtilizationLabelFailureReasons; + } + } + c.info = s.default.createActionInfo({ actionClass: c, canBeInTask: true, helpTopic: r2.helpTopics.actions.clearUtilizationLabel, modelClass: i2(76122), name: d.actions.clearUtilizationLabel, scriptingName: "ArchActionClearUtilizationLabel" }), t2.A = c; + }, 95338: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(54757)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "stringCollection"; + } + get displayTypeName() { + return "ArchValueStringCollection"; + } + get isArchValueStringCollection() { + return true; + } + } + t2.default = r2; + }, 95372: (e2, t2, i2) => { + function n2() { + n2.baseConstructor.apply(this, arguments); + } + i2(11475).extend(n2, "ComplexVariable", true), Object.defineProperties(n2.prototype, { typeIdentifier: { writable: true } }), e2.exports = n2; + }, 95433: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(11210)), r2 = i2(30801); + class o extends n2.default { + constructor(e3) { + super(e3), this._audio = this.coreFactory.createArchAudio(e3.prompts); + } + get _actionTypeId() { + return r2.playAudioActionType; + } + get displayTypeName() { + return this._scriptingName; + } + get audio() { + return this._audio; + } + get isArchActionPlayAudio() { + return true; + } + } + t2.default = o; + }, 95462: function(e2, t2, i2) { + "use strict"; + var n2 = this && this.__generator || function(e3, t3) { + var i3, n3, r3, o2, a2 = { label: 0, sent: function() { + if (1 & r3[0]) throw r3[1]; + return r3[1]; + }, trys: [], ops: [] }; + return o2 = { next: s(0), throw: s(1), return: s(2) }, "function" == typeof Symbol && (o2[Symbol.iterator] = function() { + return this; + }), o2; + function s(o3) { + return function(s2) { + return (function(o4) { + if (i3) throw new TypeError("Generator is already executing."); + for (; a2; ) try { + if (i3 = 1, n3 && (r3 = 2 & o4[0] ? n3.return : o4[0] ? n3.throw || ((r3 = n3.return) && r3.call(n3), 0) : n3.next) && !(r3 = r3.call(n3, o4[1])).done) return r3; + switch (n3 = 0, r3 && (o4 = [2 & o4[0], r3.value]), o4[0]) { + case 0: + case 1: + r3 = o4; + break; + case 4: + return a2.label++, { value: o4[1], done: false }; + case 5: + a2.label++, n3 = o4[1], o4 = [0]; + continue; + case 7: + o4 = a2.ops.pop(), a2.trys.pop(); + continue; + default: + if (!((r3 = (r3 = a2.trys).length > 0 && r3[r3.length - 1]) || 6 !== o4[0] && 2 !== o4[0])) { + a2 = 0; + continue; + } + if (3 === o4[0] && (!r3 || o4[1] > r3[0] && o4[1] < r3[3])) { + a2.label = o4[1]; + break; + } + if (6 === o4[0] && a2.label < r3[1]) { + a2.label = r3[1], r3 = o4; + break; + } + if (r3 && a2.label < r3[2]) { + a2.label = r3[2], a2.ops.push(o4); + break; + } + r3[2] && a2.ops.pop(), a2.trys.pop(); + continue; + } + o4 = t3.call(e3, a2); + } catch (e4) { + o4 = [6, e4], n3 = 0; + } finally { + i3 = r3 = 0; + } + if (5 & o4[0]) throw o4[1]; + return { value: o4[0] ? o4[1] : void 0, done: true }; + })([o3, s2]); + }; + } + }, r2 = this && this.__await || function(e3) { + return this instanceof r2 ? (this.v = e3, this) : new r2(e3); + }, o = this && this.__asyncGenerator || function(e3, t3, i3) { + if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); + var n3, o2 = i3.apply(e3, t3 || []), a2 = []; + return n3 = {}, s("next"), s("throw"), s("return"), n3[Symbol.asyncIterator] = function() { + return this; + }, n3; + function s(e4) { + o2[e4] && (n3[e4] = function(t4) { + return new Promise(function(i4, n4) { + a2.push([e4, t4, i4, n4]) > 1 || l(e4, t4); + }); + }); + } + function l(e4, t4) { + try { + (i4 = o2[e4](t4)).value instanceof r2 ? Promise.resolve(i4.value.v).then(u, d) : c(a2[0][2], i4); + } catch (e5) { + c(a2[0][3], e5); + } + var i4; + } + function u(e4) { + l("next", e4); + } + function d(e4) { + l("throw", e4); + } + function c(e4, t4) { + e4(t4), a2.shift(), a2.length && l(a2[0][0], a2[0][1]); + } + }; + Object.defineProperty(t2, "__esModule", { value: true }), t2.isReadableStreamLike = t2.readableStreamLikeToAsyncGenerator = void 0; + var a = i2(10281); + t2.readableStreamLikeToAsyncGenerator = function(e3) { + return o(this, arguments, function() { + var t3, i3, o2; + return n2(this, function(n3) { + switch (n3.label) { + case 0: + t3 = e3.getReader(), n3.label = 1; + case 1: + n3.trys.push([1, , 9, 10]), n3.label = 2; + case 2: + return [4, r2(t3.read())]; + case 3: + return i3 = n3.sent(), o2 = i3.value, i3.done ? [4, r2(void 0)] : [3, 5]; + case 4: + return [2, n3.sent()]; + case 5: + return [4, r2(o2)]; + case 6: + return [4, n3.sent()]; + case 7: + return n3.sent(), [3, 2]; + case 8: + return [3, 10]; + case 9: + return t3.releaseLock(), [7]; + case 10: + return [2]; + } + }); + }); + }, t2.isReadableStreamLike = function(e3) { + return a.isFunction(null == e3 ? void 0 : e3.getReader); + }; + }, 95513: function(e2, t2, i2) { + "use strict"; + var n2 = this && this.__read || function(e3, t3) { + var i3 = "function" == typeof Symbol && e3[Symbol.iterator]; + if (!i3) return e3; + var n3, r3, o2 = i3.call(e3), a2 = []; + try { + for (; (void 0 === t3 || t3-- > 0) && !(n3 = o2.next()).done; ) a2.push(n3.value); + } catch (e4) { + r3 = { error: e4 }; + } finally { + try { + n3 && !n3.done && (i3 = o2.return) && i3.call(o2); + } finally { + if (r3) throw r3.error; + } + } + return a2; + }, r2 = this && this.__spreadArray || function(e3, t3) { + for (var i3 = 0, n3 = t3.length, r3 = e3.length; i3 < n3; i3++, r3++) e3[r3] = t3[i3]; + return e3; + }; + Object.defineProperty(t2, "__esModule", { value: true }), t2.onErrorResumeNext = t2.onErrorResumeNextWith = void 0; + var o = i2(7652), a = i2(1903); + function s() { + for (var e3 = [], t3 = 0; t3 < arguments.length; t3++) e3[t3] = arguments[t3]; + var i3 = o.argsOrArgArray(e3); + return function(e4) { + return a.onErrorResumeNext.apply(void 0, r2([e4], n2(i3))); + }; + } + t2.onErrorResumeNextWith = s, t2.onErrorResumeNext = s; + }, 95682: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.QuickRepliesType = t2.PROP_QUICK_REPLY_SUMMARY = t2.PROP_BUTTONS = void 0; + const n2 = i2(31635), r2 = n2.__importDefault(i2(92140)), o = i2(19360), a = n2.__importStar(i2(12847)), s = n2.__importStar(i2(36781)), l = n2.__importStar(i2(58380)), u = i2(82632), d = n2.__importStar(i2(9345)), c = i2(80428), p = i2(14394), _ = i2(44521), h = i2(1492), m = i2(53476), g = n2.__importStar(i2(10798)), f = n2.__importDefault(i2(4648)), T = i2(63352); + t2.PROP_BUTTONS = "buttons", t2.PROP_QUICK_REPLY_SUMMARY = "quickreplysummary"; + const y = u.dataTypeLimits.quickRepliesDataType.properties.buttons.maxItems.count; + class S extends _.BasedOnChoicesType { + constructor(e3, t3, i3) { + super(e3, t3, i3); + } + get className() { + return "QuickRepliesType"; + } + canConvertLitToExpression(e3) { + return false; + } + convertLitToExpression(e3, t3, i3) { + return ""; + } + createExpressionOptionClass() { + return new o.ExpressionTypeQuickRepliesOptions(); + } + get supportsLiteralEditor() { + return true; + } + getChooser(e3) { + var t3; + if (null === (t3 = e3.propertyParent) || void 0 === t3 ? void 0 : t3.type.isMatch(p.globalTypes.chooser, d.settings.exact)) return e3.propertyParent; + } + getPropButtons(e3) { + return null == e3 ? void 0 : e3.getProperty(t2.PROP_BUTTONS); + } + getQuickReplySummary(e3) { + return null == e3 ? void 0 : e3.getProperty(t2.PROP_QUICK_REPLY_SUMMARY); + } + validateLiteral(e3, t3) { + return this.validateDuplicates(e3, t3) && super.validateLiteral(e3, t3); + } + _processButtonChoices(e3, i3, n3) { + var o2; + if (!e3) return; + const a2 = e3.getProperty(t2.PROP_BUTTONS, true); + !a2 || !i3 && a2.outOfService || r2.default.each(null === (o2 = a2.collectionItems) || void 0 === o2 ? void 0 : o2.items, (e4) => { + try { + n3(e4); + } catch (e5) { + } + }); + } + getPossibleChoices(e3, t3, i3) { + const n3 = []; + return e3 ? (this._processButtonChoices(e3, i3, (e4) => { + t3 && !e4.type.isPostbackChoice(e4) || n3.push(e4); + }), n3) : n3; + } + isUnknownAtDesignTime(e3) { + if (!(null == e3 ? void 0 : e3.isLiteralMode) || e3.outOfService) return true; + const i3 = e3.getProperty(t2.PROP_BUTTONS, true); + return !i3 || i3.outOfService; + } + getHasAtLeastOnePostbackChoice(e3) { + var i3; + if (this.isUnknownAtDesignTime(e3)) return; + const n3 = e3.getProperty(t2.PROP_BUTTONS, true); + if (!n3 || n3.outOfService) return; + let o2, a2; + return r2.default.find(null === (i3 = n3.collectionItems) || void 0 === i3 ? void 0 : i3.items, (e4) => { + if (e4.type.getHasPostbackValue(e4)) return a2 = true, e4; + e4.type.isUnknownAtDesignTime(e4) && (o2 = true); + }), !!a2 || !!o2 && void 0; + } + deleteChoiceAtIndex(e3, t3) { + return this.deleteButtonsChoiceAtIndex(e3, t3); + } + applyNluDiffs(e3, i3, n3) { + var o2, a2; + if (!n3) return; + const s2 = i3.getProperty(t2.PROP_BUTTONS, true); + if ((null === (o2 = null == s2 ? void 0 : s2.collectionItems) || void 0 === o2 ? void 0 : o2.items) && !s2.outOfService) { + if (n3.invalidPostbackValueChoices) for (let t3 = s2.collectionItems.items.length - 1; t3 >= 0; t3--) { + const i4 = null === (a2 = s2.collectionItems) || void 0 === a2 ? void 0 : a2.items[t3]; + i4.type.isInvalidNluChoice(i4, n3) && (e3.invalidSlotTypeValuesRemoved || (e3.invalidSlotTypeValuesRemoved = []), e3.invalidSlotTypeValuesRemoved.push(i4.type.getManagedSlotTypeValue(i4)), s2.collectionItems.removeChild(i4)); + } + r2.default.each(n3.missingSlotTypeValues, (t3) => { + const n4 = g.isFeatureAvailable(f.default.botFlowsSupportDontKnowAnswers) ? s2.collectionItems.items.find((e4) => { + var t4; + return null === (t4 = e4.type) || void 0 === t4 ? void 0 : t4.isSkipChoice(e4); + }) : null; + if (s2.collectionItems.items.length < y || n4) { + const n5 = h.ChoiceType.createPostbackChoice(t3, true, i3.parentFlow, i3.parent); + s2.collectionItems.addItem(n5), e3.missingSlotTypeValuesAdded || (e3.missingSlotTypeValuesAdded = []), e3.missingSlotTypeValuesAdded.push(t3); + } + }); + } + } + reorderItemsByAllowableValues(e3, i3) { + var n3; + if (!(null == i3 ? void 0 : i3.length)) return; + const r3 = e3.getProperty(t2.PROP_BUTTONS, true); + if (!(null === (n3 = null == r3 ? void 0 : r3.collectionItems) || void 0 === n3 ? void 0 : n3.items) || r3.outOfService) return; + const o2 = [], a2 = []; + let s2 = false; + if (r3.collectionItems.items.forEach((e4) => { + e4.type.isSkipChoice(e4) ? o2.push(e4) : e4.type.getIsManagedSlotTypeValueChoice(e4) ? a2.push(e4) : s2 = true; + }), s2) return; + const l2 = {}; + a2.forEach((e4) => { + const t3 = e4.type.getManagedSlotTypeValue(e4) || e4.type.getPostbackValue(e4); + t3 && i3.includes(t3) && (l2[t3] = e4); + }); + const u2 = []; + i3.forEach((e4) => { + const t3 = l2[e4]; + t3 && u2.push(t3); + }), u2.push(...o2), u2.length > 0 && r3.collectionItems.setItemsOrder && r3.collectionItems.setItemsOrder(u2); + } + initializeDesignTime(e3) { + super.initializeDesignTime(e3); + const t3 = this.getPropButtons(e3); + t3 && (e3.addAutoCleanedUpSubscription(l.createObservableForEvent$(s.listOrderChanged, t3).subscribe(() => this._onChoicesUpdated(e3))), e3.addAutoCleanedUpSubscription(l.createObservableForEvent$(s.expressionModeChanged, e3).subscribe(() => this._onChoicesUpdated(e3)))), this._onChoicesUpdated(e3); + } + configurePropertyCreationParams(e3, i3, n3) { + var r3; + switch (super.configurePropertyCreationParams(e3, i3, n3), null === (r3 = i3.name) || void 0 === r3 ? void 0 : r3.toLowerCase()) { + case t2.PROP_BUTTONS: + n3.options.setUiCanMoveItemCallback((e4) => !e4.type.isSkipChoice(e4)); + break; + case t2.PROP_QUICK_REPLY_SUMMARY: + n3.options.setIsOptional(true), n3.options.setIninTestingField("quick-reply-summary"); + } + } + _onChoicesUpdated(e3) { + const t3 = this.getPropButtons(e3); + let i3; + (null == e3 ? void 0 : e3.isLiteralMode) && t3.isLiteralMode && (i3 = `${t3.collectionItems.length} / ${y}`), e3.options.setSubLabel(i3); + } + configureFromChoices(e3, i3) { + const n3 = e3.getProperty(t2.PROP_BUTTONS); + n3 && (n3.mode = T.literal, n3.removeAll(), r2.default.each(i3, (t3) => { + if ((0, m.isChoiceExpressionType)(t3.type)) { + if (t3.type.getPostbackValue(t3)) { + const e4 = t3.tempClone(); + n3.collectionItems.addItem(e4); + } + } else { + const i4 = t3.type.getValueStr(t3); + if (i4) { + const t4 = h.ChoiceType.createPostbackChoice(i4, true, e3.parentFlow, e3.parent); + n3.collectionItems.addItem(t4); + } + } + })); + } + setLiteralFromChoiceListViewModel(e3, i3) { + const n3 = e3.getProperty(t2.PROP_BUTTONS); + n3 && (n3.mode = T.literal, n3.removeAll(), r2.default.each(i3.items, (t3) => { + if (t3.isChoiceViewModel) if (t3.isEnabled) { + const i4 = n3.singleType.createChoiceFromChoiceViewModel(e3.parentFlow, e3.parent, t3); + n3.collectionItems.addItem(i4); + } else a.log(`Not migrating choice '${t3.name}' to quick reply button choice as it is not enabled.`); + })); + } + getYamlObjectForLiteralSingleton(e3, t3, i3, n3) { + const r3 = super.getYamlObjectForLiteralSingleton(e3, t3, i3, n3); + return g.isFeatureAvailable(f.default.digitalBotFlowsAppleMessaging) || delete r3.quickReplySummary, r3; + } + couldHaveUnknownPostbackValue(e3) { + if (!e3 || e3.outOfService) return false; + if (!e3.isLiteralMode) return true; + const i3 = e3.getProperty(t2.PROP_BUTTONS); + return !(null == i3 ? void 0 : i3.isLiteralMode) || !!r2.default.find(i3.collectionItems.items, (e4) => e4.type.couldHaveUnknownPostbackValue(e4)); + } + get hasRichLiteralEditor() { + return true; + } + } + t2.QuickRepliesType = S, S.typeIdentifier = c.expressionTypeNames.quickReplies; + }, 95689: (e2, t2, i2) => { + "use strict"; + const n2 = i2(31635), r2 = i2(12179), o = n2.__importDefault(i2(97891)), a = n2.__importDefault(i2(5730)), s = i2(47957); + class l extends a.default { + constructor(e3, t3) { + super(e3.parentFlow, e3), this._loadModel(t3); + } + validate(e3) { + super.validate(e3); + } + } + l.info = o.default.createActionInfo({ actionClass: l, canBeInTask: true, helpTopic: r2.helpTopics.actions.participantRecord, modelClass: i2(11343), name: s.actions.enableParticipantRecording, scriptingName: "ArchActionEnableParticipantRecord" }), t2.A = l; + }, 95712: (e2, t2, i2) => { + const n2 = i2(36019).default, r2 = i2(54557), o = i2(48481); + function a() { + } + const s = new a(); + a.prototype.getWrapupCode = n2.request("GET", "{public-api.apps}/api/v2/routing/wrapupcodes/{id}", r2), a.prototype.getWrapupCodeDivisionView = n2.request("GET", "{public-api.apps}/api/v2/routing/wrapupcodes/divisionviews/{id}", r2), a.prototype.getWrapupCodes = n2.request("GET", "{public-api.apps}/api/v2/routing/wrapupcodes", o), a.prototype.getWrapupCodesDivisionView = n2.request("GET", "{public-api.apps}/api/v2/routing/wrapupcodes/divisionviews", o), s.getWrapupCodes.addOptions({ ignoreBadResponse: true }), s.getWrapupCodesDivisionView.addOptions({ ignoreBadResponse: true }), e2.exports = s; + }, 95774: (e2, t2, i2) => { + const n2 = i2(69823), { secureActionActionType: r2 } = i2(30801); + function o() { + o.baseConstructor.apply(this, arguments); + } + n2.extend(o, r2, true), e2.exports = o; + }, 95803: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.create = function() { + D.default.addBuilderPartDef(new y.default({ categoryIdentifierOrIdentifiers: I.builderCategoryIds.toolbar, description: M.builderParts.communication.prompt.description, expressionDefs: [new m.default({ configureOptionsCallback: (e3) => e3.setIninTestingField("promptCommunication"), expressionType: h.globalTypes.prompt, label: M.builderParts.communication.prompt.name }), new m.default({ configureOptionsCallback: (e3) => e3.setIninTestingField("addPromptCommunicationType").setDefaultText("auto").setAllowModeLiteralOnly(true).facets.setTrim(true).setAllowableValues([{ id: "auto", displayString: F.editPrompt.automaticForOutputMode }, { id: "tts", displayString: F.editPrompt.ttsLabel }, { id: "text", displayString: F.editPrompt.textLabel }]), expressionType: h.globalTypes.string, label: M.builderParts.string.prompt.name })], generators: { promptGenerator: A.default.create().addFuncCall("ToCommunication").addTokenReplacement(0).addFuncCallEnd().verifySprintfStringAndInitialize("ToCommunication(%1$s)"), promptGeneratorGenericBuilder: N.default.singleTokenReplacementGenerator, promptTextGenerator: A.default.create().addFuncCall("ToCommunication").addFuncCall("GetPromptText").addTokenReplacement(0).addFuncCallEnd().addFuncCallEnd().verifySprintfStringAndInitialize("ToCommunication(GetPromptText(%1$s))"), promptTextGeneratorGenericBuilder: A.default.create().addFuncCall("GetPromptText").addTokenReplacement(0).addFuncCallEnd().verifySprintfStringAndInitialize("GetPromptText(%1$s)"), promptTtsGenerator: A.default.create().addFuncCall("ToCommunication").addFuncCall("GetPromptTextToSpeech").addTokenReplacement(0).addFuncCallEnd().addFuncCallEnd().verifySprintfStringAndInitialize("ToCommunication(GetPromptTextToSpeech(%1$s))"), promptTtsGeneratorGenericBuilder: A.default.create().addFuncCall("GetPromptTextToSpeech").addTokenReplacement(0).addFuncCallEnd().verifySprintfStringAndInitialize("GetPromptTextToSpeech(%1$s)"), getExpressionGenerator: (e3, t3) => { + let i3; + try { + if (e3 && e3.builderPartExpressions && e3.builderPartExpressions.length > 1) { + const n3 = e3.builderViewModel.builderDef.id === v.builderIds.parts.genericCommunication ? "GenericBuilder" : ""; + switch (e3.builderPartExpressions[1].text) { + case "auto": + i3 = t3[`promptGenerator${n3}`]; + break; + case "tts": + i3 = t3[`promptTtsGenerator${n3}`]; + break; + case "text": + i3 = t3[`promptTextGenerator${n3}`]; + } + } + } catch (e4) { + } + return i3 || t3.promptGenerator; + } }, requiredFeatureConfig: p.default.botFlowsPromptFeature, viewId: R.selectAndAddPrompt, id: C.builderPartIds.communication.prompt, icon: d.default.communication, name: M.builderParts.communication.prompt.name, resultExpressionType: h.globalTypes.communication, restrictToFlowTypeOrTypes: r2.flowTypes.flowTypesAllCicero, version: 1 })), D.default.addBuilderPartDef(new y.default({ categoryIdentifierOrIdentifiers: I.builderCategoryIds.toolbar, description: M.builderParts.string.text.description, partConfigurators: { configureWithLanguageContext: (e3, t3, i3) => { + O.resolveParametersAndSetExpressionValue(e3, e3.builderPartExpressions[0], t3, i3); + } }, expressionDefs: [new m.default({ configureOptionsCallback: (e3) => { + e3.setAllowModeLiteralOnly().setBlankDeterminationShouldNotTrim(true).setBlankWarningText(F.facets.valueIsBlank).setIninTestingField("stringLiteral").facets.setWarnOnEmpty(true); + }, expressionType: h.globalTypes.string, label: M.builderParts.string.text.name })], generators: { expressionGenerator: A.default.create().addFuncCall("ToCommunication").addTokenReplacement(0).addFuncCallEnd().verifySprintfStringAndInitialize("ToCommunication(%1$s)"), rawExpressionGenerator: N.default.singleTokenReplacementGenerator, getExpressionGenerator: (e3, t3) => { + let i3 = t3.expressionGenerator; + try { + e3.builderViewModel.builderDef.id === v.builderIds.parts.genericCommunication && (i3 = t3.rawExpressionGenerator); + } catch (e4) { + } + return i3; + } }, viewId: b.defaultWithNoLabel, id: C.builderPartIds.communication.text, icon: d.default.string, name: M.builderParts.communication.text.name, resultExpressionType: h.globalTypes.communication, restrictToFlowTypeOrTypes: [r2.flowTypes.flowTypeBot, r2.flowTypes.flowTypeVoice, r2.flowTypes.flowTypeVoiceSurvey], version: 1 })), D.default.addBuilderPartDef(new y.default({ categoryIdentifierOrIdentifiers: [I.builderCategoryIds.toolbar, I.builderCategoryIds.markdown], description: M.builderParts.communication.markdown.description, displayStringOverride: (e3, t3) => ({ displayString: (null == e3 ? void 0 : e3.getSavedMarkdownText()) || e3.markdownExpression.text, shouldTokenizeDisplayString: false }), expressionDefs: [new m.default({ configureOptionsCallback: (e3) => e3.setDefaultToExpression(true).setIninTestingField("communicationMarkdown").setIsOptional(true), expressionType: h.globalTypes.communication, label: M.builderParts.communication.markdown.name })], generators: { blankGenerator: N.default.notSetCommunicationGenerator, expressionGenerator: A.default.create().addFuncCall("ToCommunication").addTokenReplacement(0).addFuncCallEnd().verifySprintfStringAndInitialize("ToCommunication(%1$s)"), getExpressionGenerator: (e3, t3) => { + var i3; + return (null === (i3 = e3.builderPartExpressions[0]) || void 0 === i3 ? void 0 : i3.text) ? t3.expressionGenerator : t3.blankGenerator; + } }, partConfigurators: { configureWithLanguageContexts: (e3, t3, i3) => { + const n3 = O.resolvePartsParametersAndGetText(e3, t3, i3, true); + if (!n3.length) return; + const r3 = n3.join(" "); + e3.setMarkdownTextImmediate(r3); + } }, viewId: E.markdown, id: C.builderPartIds.communication.markdown, icon: d.default.modifyIntents, name: M.builderParts.communication.markdown.name, resultExpressionType: h.globalTypes.communication, restrictToFlowTypeOrTypes: r2.flowTypes.flowTypeDigitalBot, version: 1 })), D.default.addBuilderPartDef(new S.default({ categoryIdentifierOrIdentifiers: I.builderCategoryIds.toolbar, description: M.builderParts.communication.data.description, expressionDefs: [new m.default({ configureOptionsCallback: (e3) => e3.setAsVariableInput().setIninTestingField("dataToCommunication"), expressionType: h.globalTypes.any, label: M.builderParts.communication.data.name })], generators: { toDisplayStringGenerator: A.default.create().addFuncCall("ToDisplayString").addTokenReplacement(0).addFuncCallEnd().verifySprintfStringAndInitialize("ToDisplayString(%1$s)"), toStringGenerator: A.default.create().addFuncCall("ToString").addTokenReplacement(0).addFuncCallEnd().verifySprintfStringAndInitialize("ToString(%1$s)"), formattingGenerator: (e3, t3) => { + const i3 = e3.getVariableFormattingMetadataForExpression(t3); + if (!(null == i3 ? void 0 : i3.overloadId)) return; + const n3 = _.expressionDataService.expressionFuncOpsByOverloadId[i3.overloadId]; + if (!n3) return void P.error(`could not find FuncOp: ${i3.overloadId}`); + if (n3.isUnavailable) return void P.error(`FuncOp: ${i3.overloadId} is not available to use`); + let r3, o2, s2, l2; + if (null == t3 ? void 0 : t3.isVariableMode) { + const i4 = t3.variables[Object.keys(t3.variables)[0]]; + o2 = _.expressionDataService.expressionFuncOpsByOverloadId[c.default.any_ResolveSlot_any], (null == i4 ? void 0 : i4.isSlotVariable) && (null == o2 ? void 0 : o2.isAvailableForFlowType(e3.parentFlowType)) && (r3 = true); + } + return r3 && o2 ? (s2 = A.default.create().addFuncCall(n3.parent.text).addFuncCall(o2.parent.text).addTokenReplacement(0).addFuncCallEnd(), l2 = `${n3.parent.text}(${o2.parent.text}(%1$s)`) : (s2 = A.default.create().addFuncCall(n3.parent.text).addTokenReplacement(0), l2 = `${n3.parent.text}(%1$s`), n3.operands.forEach((e4, t4) => { + 0 !== t4 && (i3.operandValues[e4.name] ? a.default.extEnsureArray(i3.operandValues[e4.name]).forEach((e5) => { + s2.addFuncParameterSeparator().addText(e5), l2 += `, ${e5}`; + }) : P.error(`could not find operand value for: ${e4.name}`)); + }), s2.addFuncCallEnd(), l2 += ")", s2.verifySprintfStringAndInitialize(l2), s2; + }, getExpressionGenerator: (e3, t3) => { + if (e3.builderPartExpressions && e3.builderPartExpressions[0]) { + const i3 = e3.builderPartExpressions[0].configType; + if (a.default.isObject(i3)) { + const n3 = e3.builderPartExpressions[0]; + return t3.formattingGenerator(e3, n3) || (i3.isSupportedByAny ? N.default.singleTokenReplacementGenerator : e3.parentFlow.definition.isAutomateOrCiceroFlowType ? t3.toDisplayStringGenerator : t3.toStringGenerator); + } + } + return N.default.singleTokenReplacementGenerator; + } }, id: C.builderPartIds.communication.data, icon: d.default.database, viewId: w.variableWithFormatting, name: M.builderParts.communication.data.name, partConfigurators: { configureWithLanguageContext: (e3, t3, i3) => { + O.resolveParametersAndSetExpressionValue(e3, e3.builderPartExpressions[0], t3, i3); + } }, resultExpressionType: h.globalTypes.communication, restrictToFlowTypeOrTypes: u.default.getFlowTypesThatSupportLanguages(), version: 1 })), D.default.addBuilderPartContainerDef(new g.default({ categoryIdentifierOrIdentifiers: [I.builderCategoryIds.container, I.builderCategoryIds.markdown], description: M.builderParts.container.language.description, generators: { containerPartsGenerator: A.default.create().addFuncCall("MakeCommunication").addFuncCallParmGenerationBucket("makeCommunication", true).addFuncCallEnd().verifySprintfStringAndInitialize("MakeCommunication()"), languageCheckGenerator: A.default.create().addFuncCall("If").addFuncCall("AreEqual").addTokenBooleanTrue().addFuncParameterSeparator().addTokenReplacement(0).addFuncParameterSeparator().addTokenReplacement(1).addFuncCallEnd().addFuncParameterSeparator().addFuncCallParmGenerationBucket("makeCommunication", true).verifySprintfStringAndInitialize("If(AreEqual(true, %1$s, %2$s), "), wantContainerPartsGeneratorForSingleton: true }, id: C.builderPartIds.communication.container.language, name: M.builderParts.container.language.name, resultExpressionType: h.globalTypes.communication, version: 1, wantBucketOnSingleGeneration: true })), D.default.addBuilderPartContainerDef(new f.default({ categoryIdentifierOrIdentifiers: [I.builderCategoryIds.container, I.builderCategoryIds.markdown], description: M.builderParts.container.languageAndOutputMode.description, generators: { containerPartsGenerator: A.default.create().addFuncCall("MakeCommunication").addFuncCallParmGenerationBucket("makeCommunication", true).addFuncCallEnd().verifySprintfStringAndInitialize("MakeCommunication()"), wantContainerPartsGeneratorForSingleton: true }, id: C.builderPartIds.communication.container.languageAndOutputMode, name: M.builderParts.container.languageAndOutputMode.name, restrictToFlowTypeOrTypes: r2.flowTypes.flowTypesAllCicero, resultExpressionType: h.globalTypes.communication, version: 1, wantBucketOnSingleGeneration: true })), D.default.addBuilderPartContainerDef(new T.default({ categoryIdentifierOrIdentifiers: [I.builderCategoryIds.container, I.builderCategoryIds.markdown], description: M.builderParts.container.outputMode.description, generators: { containerPartsGenerator: A.default.create().addFuncCall("MakeCommunication").addFuncCallParmGenerationBucket("makeCommunication", true).addFuncCallEnd().verifySprintfStringAndInitialize("MakeCommunication()"), wantContainerPartsGeneratorForSingleton: true }, id: C.builderPartIds.communication.container.outputMode, name: M.builderParts.container.outputMode.name, restrictToFlowTypeOrTypes: r2.flowTypes.flowTypesAllCicero, resultExpressionType: h.globalTypes.communication, version: 1 })), D.default.addBuilderPartDef(new y.default({ categoryIdentifierOrIdentifiers: I.builderCategoryIds.toolbar, description: M.builderParts.communication.expression.description, expressionDefs: [new m.default({ configureOptionsCallback: (e3) => e3.setAllowModeExpressionOnly(true).setIninTestingField("communicationExpression"), expressionType: h.globalTypes.communication, label: M.builderParts.communication.expression.name })], viewId: b.defaultWithNoLabel, generators: { expressionGenerator: N.default.singleTokenReplacementGenerator }, id: C.builderPartIds.communication.expression, icon: d.default.expression, name: M.builderParts.communication.expression.name, resultExpressionType: h.globalTypes.communication, version: 1 })), D.default.addBuilderPartDef(new y.default({ categoryIdentifierOrIdentifiers: I.builderCategoryIds.toolbar, description: M.builderParts.communication.imageUrlText.description, expressionDefs: [new m.default({ configureOptionsCallback: (e3) => e3.setIninTestingField("urlExpression").setDefaultText("https://"), expressionType: h.globalTypes.string, label: M.builderParts.communication.imageUrlText.name })], viewId: b.defaultWithNoLabel, generators: { expressionGenerator: A.default.create().addFuncCall("ToCommunication").addFuncCall("MakeImageFromUrl").addTokenReplacement(0).addFuncCallEnd().addFuncCallEnd().verifySprintfStringAndInitialize("ToCommunication(MakeImageFromUrl(%1$s))") }, id: C.builderPartIds.communication.imageUrl, icon: d.default.image, name: M.builderParts.communication.imageUrlText.name, resultExpressionType: h.globalTypes.communication, restrictToFlowTypeOrTypes: r2.flowTypes.flowTypeDigitalBot, version: 1 })), D.default.addBuilderPartDef(new y.default({ categoryIdentifierOrIdentifiers: I.builderCategoryIds.toolbar, description: M.builderParts.communication.videoUrlText.description, expressionDefs: [new m.default({ configureOptionsCallback: (e3) => e3.setIninTestingField("urlExpression").setDefaultText("https://"), expressionType: h.globalTypes.string, label: M.builderParts.communication.videoUrlText.name })], viewId: b.defaultWithNoLabel, generators: { expressionGenerator: A.default.create().addFuncCall("ToCommunication").addFuncCall("MakeVideoFromUrl").addTokenReplacement(0).addFuncCallEnd().addFuncCallEnd().verifySprintfStringAndInitialize("ToCommunication(MakeVideoFromUrl(%1$s))") }, id: C.builderPartIds.communication.videoUrl, icon: d.default.video, name: M.builderParts.communication.videoUrlText.name, resultExpressionType: h.globalTypes.communication, restrictToFlowTypeOrTypes: r2.flowTypes.flowTypeDigitalBot, requiredFeatureConfig: p.default.botFlowsAttachmentsFeature, version: 1 })), D.default.addBuilderPartDef(new y.default({ categoryIdentifierOrIdentifiers: I.builderCategoryIds.toolbar, description: M.builderParts.communication.digitalAudioUrlText.description, expressionDefs: [new m.default({ configureOptionsCallback: (e3) => e3.setIninTestingField("urlExpression").setDefaultText("https://"), expressionType: h.globalTypes.string, label: M.builderParts.communication.digitalAudioUrlText.name })], viewId: b.defaultWithNoLabel, generators: { expressionGenerator: A.default.create().addFuncCall("ToCommunication").addFuncCall("MakeDigitalAudioFromUrl").addTokenReplacement(0).addFuncCallEnd().addFuncCallEnd().verifySprintfStringAndInitialize("ToCommunication(MakeDigitalAudioFromUrl(%1$s))") }, id: C.builderPartIds.communication.digitalAudioUrl, icon: d.default.digitalAudio, name: M.builderParts.communication.digitalAudioUrlText.name, resultExpressionType: h.globalTypes.communication, restrictToFlowTypeOrTypes: r2.flowTypes.flowTypeDigitalBot, requiredFeatureConfig: p.default.botFlowsAttachmentsFeature, sortValue: "rjd", version: 1 })), D.default.addBuilderPartDef(new y.default({ categoryIdentifierOrIdentifiers: I.builderCategoryIds.toolbar, description: M.builderParts.communication.fileUrlText.description, expressionDefs: [new m.default({ configureOptionsCallback: (e3) => e3.setIninTestingField("urlExpression").setDefaultText("https://"), expressionType: h.globalTypes.string, label: M.builderParts.communication.fileUrlText.name })], viewId: b.defaultWithNoLabel, generators: { expressionGenerator: A.default.create().addFuncCall("ToCommunication").addFuncCall("MakeFileFromUrl").addTokenReplacement(0).addFuncCallEnd().addFuncCallEnd().verifySprintfStringAndInitialize("ToCommunication(MakeFileFromUrl(%1$s))") }, id: C.builderPartIds.communication.fileUrl, icon: d.default.file, name: M.builderParts.communication.fileUrlText.name, resultExpressionType: h.globalTypes.communication, restrictToFlowTypeOrTypes: r2.flowTypes.flowTypeDigitalBot, requiredFeatureConfig: p.default.botFlowsAttachmentsFeature, sortValue: "rjf", version: 1 })), D.default.addBuilderPartDef(new y.default({ categoryIdentifierOrIdentifiers: I.builderCategoryIds.toolbar, description: M.builderParts.communication.blank.blankCommunicationDescription, partConfigurators: { configureWithLanguageContext: (e3, t3, i3) => { + O.resolveParametersAndSetExpressionValue(e3, e3.builderPartExpressions[0], t3, i3); + } }, expressionDefs: [new m.default({ configureOptionsCallback: (e3) => { + e3.setIninTestingField("addBlankCommunicationType").setAllowModeLiteralOnly().facets.setAllowableValueUseOriginalDisplayString(true).setAllowableValues([{ id: 100, displayString: (0, o.sprintf)(F.blankAudio.msContext, "100") }, { id: 250, displayString: (0, o.sprintf)(F.blankAudio.msContext, "250") }, { id: 500, displayString: (0, o.sprintf)(F.blankAudio.msContext, "500") }, { id: 750, displayString: (0, o.sprintf)(F.blankAudio.msContext, "750") }, { id: 1e3, displayString: F.blankAudio.oneSecond }, { id: 2e3, displayString: (0, o.sprintf)(F.blankAudio.secondsContext, "2") }, { id: 3e3, displayString: (0, o.sprintf)(F.blankAudio.secondsContext, "3") }, { id: 5e3, displayString: (0, o.sprintf)(F.blankAudio.secondsContext, "5") }], true); + }, expressionType: h.globalTypes.integer, label: M.builderParts.communication.blank.blankCommunicationName, requiredFuncOpOverloadIds: ["Communication_ONE ToCommunicationBlank(Long_ONE)"] })], generators: { blankGenerator: A.default.create().addFuncCall("ToCommunicationBlank").addTokenReplacement(0).addFuncCallEnd().verifySprintfStringAndInitialize("ToCommunicationBlank(%1$s)"), getExpressionGenerator: (e3, t3) => t3.blankGenerator }, viewId: b.defaultWithNoLabel, id: C.builderPartIds.communication.blank, icon: d.default.blankAudio, name: M.builderParts.communication.blank.blankCommunicationName, resultExpressionType: h.globalTypes.communication, requiredChannelTypeOrTypes: l.channelTypeCall, version: 1, sortValue: "z", displayStringOverride: (e3, t3) => ({ displayString: (0, o.sprintf)(F.blankAudio.blankAudioLabel, t3 || F.literal.empty), shouldTokenizeDisplayString: true }) })); + }; + const n2 = i2(31635), r2 = i2(96618), o = i2(17604), a = n2.__importDefault(i2(92140)), s = n2.__importStar(i2(24032)), l = n2.__importStar(i2(85020)), u = n2.__importDefault(i2(98114)), d = n2.__importDefault(i2(61864)), c = n2.__importDefault(i2(80145)), p = n2.__importDefault(i2(4648)), _ = i2(27491), h = i2(14394), m = n2.__importDefault(i2(76486)), g = n2.__importDefault(i2(79904)), f = n2.__importDefault(i2(81818)), T = n2.__importDefault(i2(41568)), y = n2.__importDefault(i2(42290)), S = n2.__importDefault(i2(34875)), A = n2.__importDefault(i2(22599)), N = n2.__importDefault(i2(96727)), O = n2.__importStar(i2(80568)), I = i2(73062), v = i2(28562), C = i2(69149), b = i2(93631), E = i2(93631), R = i2(93631), w = i2(93631), D = n2.__importDefault(i2(5532)), P = s.getTopic("communicationPartDefs"), M = i2(16958), F = i2(47957); + }, 95812: (e2, t2, i2) => { + const n2 = i2(76768), r2 = i2(7401), { uuid: o } = i2(9456); + function a() { + Object.defineProperties(this, { _label: { writable: true } }), this.isEnabled = void 0, this.referenceId = void 0, a.baseConstructor.apply(this, arguments), this.id || (this.id = o()); + } + Object.defineProperties(a.prototype, { isChoice: { value: true }, label: { enumerable: true, get: function() { + return this._label; + }, set: function(e3) { + this._label = this.reviveItem(e3, r2); + } } }), n2.extend(a, "Choice"), e2.exports = a; + }, 95847: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importDefault(i2(67193)), o = i2(30801), a = n2.__importDefault(i2(78432)); + class s extends r2.default { + constructor(e3) { + super(e3), this._coreTransferToFlowActionViewModel = e3; + } + get _actionTypeId() { + return o.transferFlowActionType; + } + get _supportedTargetFlowType() { + return a.default.FLOW_TYPES.inboundCall; + } + get displayTypeName() { + return this._scriptingName; + } + get isArchActionTransferToFlow() { + return true; + } + get targetFlowInfo() { + return this.coreFactory.createArchFlowInfoBasic(this._coreTransferToFlowActionViewModel.flowId, this._coreTransferToFlowActionViewModel.flowName, a.default.FLOW_TYPES.inboundCall); + } + set targetFlowInfo(e3) { + const t3 = this._infoPropSet("newValue", "targetFlowInfo"); + this._checkItem(t3, !e3 || !e3.isArchFlowInfo && !e3.isArchFlowInfoBasic, "You must pass in an ArchFlowInfo or ArchFlowInfoBasic instance for the target Flow Info setter."), this._checkItem(t3, e3.type !== this._supportedTargetFlowType, "This action does not let you transfer to flows of type '" + e3.type + "'. It only supports flows of type '" + this._supportedTargetFlowType + "'"), this.logNote("configuring the transfer action to transfer to the flow name '" + e3.name + "' with id '" + e3.id + "'"), this._coreTransferToFlowActionViewModel.setTransferToFlowInfo(e3.id, e3.name); + } + } + t2.default = s; + }, 95873: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.getGrammars = a, t2.getGrammar = s, t2.getGrammarWithStatus = function(e3, t3) { + return o.default.build(r2.getGrammarWithStatus).templateParams({ id: e3, includeFileUrls: !!t3 }).call(); + }, t2.getGrammarLanguage = l, t2.deleteGrammar = u, t2.updateGrammar = d, t2.updateGrammarLanguage = c, t2.createGrammar = p, t2.addLanguageToGrammar = _, t2.removeLanguageFromGrammar = h, t2.createGrammarFileUploadUrl = m, t2.deleteGrammarFile = g, t2.uploadGrammarFile = f, t2.downloadGrammarFile = T; + const n2 = i2(31635), r2 = n2.__importStar(i2(72124)), o = n2.__importDefault(i2(36019)); + function a(e3) { + const t3 = o.default.build(r2.getGrammars); + return t3.queryParams(e3), t3.call(); + } + function s(e3, t3) { + return o.default.build(r2.getGrammar).templateParams({ id: e3, includeFileUrls: !!t3 }).call(); + } + function l(e3, t3) { + return o.default.build(r2.getGrammarLanguage).templateParams({ grammarId: e3, languageCode: t3 }).call(); + } + function u(e3) { + const t3 = o.default.build(r2.deleteGrammar); + return t3.templateParams({ id: e3 }), t3.call(); + } + function d(e3, t3, i3) { + const n3 = o.default.build(r2.updateGrammar); + n3.templateParams({ id: e3 }); + const a2 = { name: t3, description: i3 }; + return n3.content(a2), n3.headers["Content-Type"] = "application/json", n3.call(); + } + function c(e3, t3, i3, n3) { + const a2 = o.default.build(r2.updateGrammarLanguage).templateParams({ grammarId: e3, languageCode: t3 }), s2 = {}; + return null !== i3 && (s2.dtmfFileMetadata = i3), null !== n3 && (s2.voiceFileMetadata = n3), a2.content(s2), a2.headers["Content-Type"] = "application/json", a2.call(); + } + function p(e3, t3) { + const i3 = o.default.build(r2.createGrammar), n3 = { name: e3, description: t3 }; + return i3.content(n3), i3.call(); + } + function _(e3, t3) { + const i3 = o.default.build(r2.addLanguageToGrammar), n3 = { language: e3 }; + return i3.templateParams({ grammarId: t3 }), i3.content(n3), i3.call(); + } + function h(e3, t3) { + const i3 = o.default.build(r2.removeLanguageFromGrammar); + return i3.templateParams({ grammarId: t3, languageCode: e3 }), i3.call(); + } + function m(e3, t3, i3, n3) { + const a2 = o.default.build(r2.createGrammarFileUploadUrl); + return a2.templateParams({ grammarId: e3, languageCode: t3, grammarType: i3 }), a2.content({ fileType: n3 }), a2.call(); + } + function g(e3, t3, i3) { + const n3 = o.default.build(r2.deleteGrammarFile); + return n3.templateParams({ grammarId: e3, languageCode: t3, grammarType: i3 }), n3.call(); + } + function f(e3, t3, i3) { + const n3 = o.default.build(r2.uploadGrammarFile); + return n3.templateParams({ url: e3 }), n3.headers = t3, n3.content(i3), n3.call(); + } + function T(e3) { + const t3 = o.default.build(r2.downloadGrammarFile); + return t3.templateParams({ url: e3 }), t3.headers = "raw-file", t3.call(); + } + a.api = r2.getGrammars, s.api = r2.getGrammar, s.api = r2.getGrammarWithStatus, l.api = r2.getGrammarLanguage, u.api = r2.deleteGrammar, d.api = r2.updateGrammar, c.api = r2.updateGrammarLanguage, p.api = r2.createGrammar, _.api = r2.addLanguageToGrammar, h.api = r2.removeLanguageFromGrammar, m.api = r2.createGrammarFileUploadUrl, g.api = r2.deleteGrammarFile, f.api = r2.uploadGrammarFile, T.api = r2.downloadGrammarFile; + }, 95934: (e2, t2, i2) => { + "use strict"; + var n2, r2, o, a; + Object.defineProperty(t2, "__esModule", { value: true }); + const s = i2(31635), l = s.__importDefault(i2(78432)), u = i2(30801), d = s.__importDefault(i2(21345)); + class c extends d.default { + constructor(e3) { + super(e3), n2.set(this, void 0), r2.set(this, void 0), o.set(this, void 0), a.set(this, void 0), s.__classPrivateFieldSet(this, n2, this.coreFactory.createArchWrapper(e3.deflectTo), "f"), s.__classPrivateFieldSet(this, r2, this.coreFactory.createArchWrapper(e3.message), "f"), s.__classPrivateFieldSet(this, o, this.coreFactory.createArchWrapper(e3.smsFrom), "f"), s.__classPrivateFieldSet(this, a, this.coreFactory.createArchWrapper(e3.smsTo), "f"); + } + get _actionTypeId() { + return u.deflectActionType; + } + get displayTypeName() { + return this._scriptingName; + } + get isArchActionDeflect() { + return true; + } + get deflectTo() { + return s.__classPrivateFieldGet(this, n2, "f"); + } + setDeflectTo(e3) { + const t3 = this._infoPropSet("name", "setDeflectTo"); + this._checkItemIsValidLiteralStringEnum(t3, e3, l.default.DEFLECT_TYPES_ALL), this.deflectTo.setLiteralString(e3); + } + get message() { + return s.__classPrivateFieldGet(this, r2, "f"); + } + get smsFrom() { + return s.__classPrivateFieldGet(this, o, "f"); + } + get smsTo() { + return s.__classPrivateFieldGet(this, a, "f"); + } + get deflectOutputsFailure() { + return this._coreActionViewModel.errorBindings ? this.coreFactory.createArchWrapper(this._coreActionViewModel.errorBindings) : null; + } + } + n2 = /* @__PURE__ */ new WeakMap(), r2 = /* @__PURE__ */ new WeakMap(), o = /* @__PURE__ */ new WeakMap(), a = /* @__PURE__ */ new WeakMap(), t2.default = c; + }, 95936: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.merge = void 0; + var n2 = i2(68087), r2 = i2(19724), o = i2(44885), a = i2(26404), s = i2(47058); + t2.merge = function() { + for (var e3 = [], t3 = 0; t3 < arguments.length; t3++) e3[t3] = arguments[t3]; + var i3 = a.popScheduler(e3), l = a.popNumber(e3, 1 / 0), u = e3; + return u.length ? 1 === u.length ? r2.innerFrom(u[0]) : n2.mergeAll(l)(s.from(u, i3)) : o.EMPTY; + }; + }, 95955: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = i2(17604), o = n2.__importDefault(i2(92140)), a = n2.__importStar(i2(43011)), s = n2.__importStar(i2(98442)), l = i2(14394), u = i2(1115), d = i2(12179), c = n2.__importDefault(i2(68460)), p = i2(47957), _ = i2(33948); + class h extends c.default { + get className() { + return "CallPromptsViewModel"; + } + get id() { + return "callPrompts"; + } + get showInFlowSize() { + return false; + } + get ensureAudioInPrompts() { + return this.parentFlow.ensureAudioInPrompts; + } + set ensureAudioInPrompts(e3) { + this.parentFlow.ensureAudioInPrompts = e3, (0, u.validateItem)(this, true); + } + get promptMediaToValidate() { + return this.parentFlow.promptMediaToValidate; + } + set promptMediaToValidate(e3) { + this.parentFlow.promptMediaToValidate = e3, (0, u.validateItem)(this, true), Object.values(a.getAllPrompts()).forEach((e4) => { + e4.visibleUsages && e4.visibleUsages.length > 0 && Object.values(e4.usages).forEach((e5) => { + (0, u.validateItem)(e5.referenceElement.parent, true); + }); + }); + } + getConfiguration(e3, t3) { + var i3, n3; + if ((null == t3 ? void 0 : t3.isForFlowYaml) && this.parentFlow.supportsAudio) { + const e4 = []; + return 0 === (null === (i3 = this.parentFlow.promptMediaToValidate) || void 0 === i3 ? void 0 : i3.length) ? e4.push({ mediaType: "none" }) : null === (n3 = this.parentFlow.promptMediaToValidate) || void 0 === n3 || n3.forEach((t4) => { + e4.push({ mediaType: t4 }); + }), { ensureAudioInPrompts: !!this.ensureAudioInPrompts, promptMediaToValidate: e4 }; + } + return null; + } + getDisplayName() { + return p.audio.prompts; + } + get isCallPromptsNode() { + return true; + } + get nodeGuxIcon() { + return "roster-chat"; + } + get helpTopic() { + return d.helpTopics.treeNodes.promptsView; + } + get outOfService() { + return !l.globalTypes.prompt.isAvailableForFlow(this.parentFlow); + } + search(e3) { + o.default.each(a.getAllPrompts(), (t3) => { + o.default.isEmpty(t3.usages) || (e3.checkName(t3, t3.displayName, t3.type.displayString), e3.checkText(t3, t3.description, p.search.promptDescription)); + }); + } + validate(e3) { + if (!this.parentFlow.validateHasAudioOnly) return; + const t3 = Object.values(a.getAllPrompts()).filter((e4) => Object.keys(e4.usages).length > 0 && Object.values(e4.usages).some((e5) => e5.referenceElement.parentFlow === this.parentFlow)); + o.default.each(t3, (t4) => { + o.default.each(t4.languageUsages, (i3) => { + const n3 = t4.getResource(i3.id); + n3 && n3.mediaUri || (n3 && n3.uploadStatus === _.uploaded && !n3.mediaUri ? e3.addError(this, (0, r2.sprintf)(t4.isSystem ? p.audio.promptBeingUploadedSystem : p.audio.promptBeingUploadedUser, t4.displayName, s.getLanguageNameAndCodeDisplay(i3.id))) : e3.addError(this, (0, r2.sprintf)(t4.isSystem ? p.audio.noPromptRecordedSystem : p.audio.noPromptRecordedUser, t4.displayName, s.getLanguageNameAndCodeDisplay(i3.id)))); + }); + }); + } + get wrappedYamlName() { + return "settingsPrompts"; + } + } + t2.default = h; + }, 96060: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = i2(17604), o = n2.__importDefault(i2(73198)), a = i2(80428), s = n2.__importStar(i2(69453)), l = i2(48109), u = n2.__importDefault(i2(4648)), d = n2.__importStar(i2(81858)), c = i2(81176), p = i2(99923), _ = i2(99923), h = i2(99923), m = i2(99923), g = i2(67093), f = i2(14134), T = i2(3172), y = i2(35825), S = i2(47957), A = new y.BoolVariable({ name: "Flow.IsTest", id: "__FLOW_IS_TEST__", description: S.systemVariables.flowIsTest, isReadOnly: true, isSystemVariable: true, version: "1.0" }), N = [new y.DateTimeVariable({ name: "Flow.StartDateTimeUtc", id: "__FLOW_START_TIME__", description: S.systemVariables.flowStartTime, isReadOnly: true, isSystemVariable: true, version: "1.0" }), new y.StringVariable({ name: "Flow.Version", id: "__FLOW_VERSION__", description: S.systemVariables.flowVersion, isReadOnly: true, isSystemVariable: true, version: "1.0" }), new y.IntegerVariable({ name: "System.MaxInt", id: "__MAX_INT__", description: (0, r2.sprintf)(S.systemVariables.maxInt, o.default.maxInt), isReadOnly: true, isSystemVariable: true, version: "1.0" }), new y.DateTimeVariable({ name: "System.MaxDateTime", id: "__MAX_DATETIME__", description: S.systemVariables.maxDateTime, isReadOnly: true, isSystemVariable: true, version: "1.0" }), new y.DurationVariable({ name: "System.MaxDuration", id: "__MAX_DURATION__", description: S.systemVariables.maxDuration, isReadOnly: true, isSystemVariable: true, version: "1.0" }), new y.IntegerVariable({ name: "System.MinInt", id: "__MIN_INT__", description: (0, r2.sprintf)(S.systemVariables.minInt, o.default.minInt), isReadOnly: true, isSystemVariable: true, version: "1.0" }), new y.DateTimeVariable({ name: "System.MinDateTime", id: "__MIN_DATETIME__", description: S.systemVariables.minDateTime, isReadOnly: true, isSystemVariable: true, version: "1.0" }), new y.DurationVariable({ name: "System.MinDuration", id: "__MIN_DURATION__", description: S.systemVariables.minDuration, isReadOnly: true, isSystemVariable: true, version: "1.0" })], O = [A, ...N], I = { digitalBotFlowVariables: [new y.StringVariable({ name: "Session.ExternalContactId", id: "__EXTERNAL_CONTACT_ID__", description: S.systemVariables.externalContactId, isReadOnly: true, isSystemVariable: true, version: "1.0", featureConfig: u.default.externalContactIdentityResolutionPhase1 }), new y.StringVariable({ name: "Session.LastKnowledgeGeneratedAnswer", id: "__SESSION_LAST_KNOWLEDGE_GENERATION__", description: S.systemVariables.sessionLastKnowledgeGenerated, isReadOnly: true, isSystemVariable: true, featureConfig: u.default.botFlowsAnswerGenerationMultipleArticles, version: "1.0" }), new y.StringVariable({ name: "Session.LastKnowledgeSearchId", id: "__SESSION_LAST_KNOWLEDGE_SEARCH_ID__", description: S.systemVariables.sessionLastKnowledgeSearchId, isReadOnly: true, isSystemVariable: true, featureConfig: u.default.botFlowsDigitalBotFlowsKnowledgeEndToEndFeature, version: "1.0" }), new y.BoolVariable({ name: "Session.IsAuthenticated", id: "__MESSAGE_IS_AUTHENTICATED__", description: S.systemVariables.messagingIsAuthenticated, isReadOnly: true, isSystemVariable: true, version: "1.0", featureConfig: u.default.botFlowsAuthentication })], botFlowVariables: [new y.StringVariable({ name: "Session.ExternalContactId", id: "__EXTERNAL_CONTACT_ID__", description: S.systemVariables.externalContactId, isReadOnly: true, isSystemVariable: true, version: "1.0", featureConfig: u.default.externalContactIdentityResolutionPhase1 }), new y.StringVariable({ name: "Session.LastKnowledgeGeneratedAnswer", id: "__SESSION_LAST_KNOWLEDGE_GENERATION__", description: S.systemVariables.sessionLastKnowledgeGenerated, isReadOnly: true, isSystemVariable: true, featureConfig: u.default.botFlowsAnswerGenerationMultipleArticles, version: "1.0" }), new y.StringVariable({ name: "Session.LastKnowledgeSearchId", id: "__SESSION_LAST_KNOWLEDGE_SEARCH_ID__", description: S.systemVariables.sessionLastKnowledgeSearchId, isReadOnly: true, isSystemVariable: true, featureConfig: u.default.botFlowsAdvancedKnowledgeHandling, version: "1.0" }), new y.StringVariable({ name: "Session.LastCollectionMode", id: "__LAST_COLLECTION_MODE__", description: (0, r2.sprintf)(S.systemVariables.lastCollectionModeDescription, (0, l.getListDisplayString)([c.inputMode.speech, c.inputMode.dtmf, c.inputMode.text], false, false, true)), isReadOnly: true, isSystemVariable: true, version: "1.0", featureConfig: u.default.lastCollectionModeVariable })], internalFlowVariables: [new y.StringVariable({ name: "Flow.$lastInput", id: "__LAST_INPUT__", isInternal: true, isReadOnly: true, isSystemVariable: true, version: "1.0" })], commonCallVariables: [new y.StringVariable({ name: "Call.Ani", id: "__CALL_ANI__", description: S.systemVariables.callAni, isReadOnly: true, isSystemVariable: true, version: "1.0" }), new y.StringVariable({ name: "Call.CalledAddress", id: "__CALL_DNIS__", description: S.systemVariables.callCalledAddress, isReadOnly: true, isSystemVariable: true, version: "1.0" }), new y.StringVariable({ name: "Call.CalledAddressOriginal", id: "__CALL_DNIS_ORIGINAL__", description: S.systemVariables.callCalledAddressOriginal, isReadOnly: true, isSystemVariable: true, version: "1.0" }), new y.StringVariable({ name: "Call.ExternalContactId", id: "__EXTERNAL_CONTACT_ID__", description: S.systemVariables.externalContactId, isReadOnly: true, isSystemVariable: true, version: "1.0", featureConfig: u.default.externalContactIdentityResolutionPhase1 }), new y.StringVariable({ name: "Call.ExternalTag", id: "__EXTERNAL_TAG__", description: S.systemVariables.callExternalTag, isReadOnly: true, isSystemVariable: true, version: "1.0" }), new y.StringVariable({ name: "Call.RemoteName", id: "__CALL_REMOTE_NAME__", description: S.systemVariables.callRemoteName, isReadOnly: true, isSystemVariable: true, version: "1.0" })], callFlowVariables: [new y.StringVariable({ name: "Call.ConversationId", id: "__CALL_CONVERSATION_ID__", copyPasteId: "__CONVERSATION_ID__", description: S.systemVariables.callConversationId, isReadOnly: true, isSystemVariable: true, version: "1.0" }), new y.StringVariable({ name: "Interaction.Id", id: "__INTERACTION_ID__", description: S.systemVariables.interactionId, isReadOnly: true, isSystemVariable: true, version: "1.0" }), new y.StringVariable({ name: "Call.Language", id: "__INTERACTION_LANGUAGE__", deprecatedName: "interaction.language", description: S.systemVariables.interactionLanguage, isReadOnly: true, isSystemVariable: true, version: "1.0" }), new y.StringVariable({ name: "Call.LastCollectionMode", id: "__LAST_COLLECTION_MODE__", description: (0, r2.sprintf)(S.systemVariables.lastCollectionModeDescription, (0, l.getListDisplayString)([c.inputMode.speech, c.inputMode.dtmf], false, false, true)), isReadOnly: true, isSystemVariable: true, version: "1.0", featureConfig: u.default.lastCollectionModeVariable })], dateOnlyAndTimeOnlySystemVariables: [new y.DateVariable({ name: "System.MaxDate", id: "__MAX_DATE__", description: S.systemVariables.maxDate, isReadOnly: true, isSystemVariable: true, version: "1.0" }), new y.DateVariable({ name: "System.MinDate", id: "__MIN_DATE__", description: S.systemVariables.minDate, isReadOnly: true, isSystemVariable: true, version: "1.0" }), new y.TimeVariable({ name: "System.MaxTime", id: "__MAX_TIME__", description: S.systemVariables.maxTime, isReadOnly: true, isSystemVariable: true, version: "1.0" }), new y.TimeVariable({ name: "System.MinTime", id: "__MIN_TIME__", description: S.systemVariables.minTime, isReadOnly: true, isSystemVariable: true, version: "1.0" })], formatVariables: [new g.BoolFormatEnumContainerVariable({ name: "Format.Bool", id: "__FORMAT_BOOL__", isReadOnly: true, isSystemVariable: true, version: "1.0", hideFromAutocomplete: true }), new g.CurrencyFormatEnumContainerVariable({ name: "Format.Currency", id: "__FORMAT_CURRENCY__", isReadOnly: true, isSystemVariable: true, version: "1.0", hideFromAutocomplete: true }), new g.DateFormatEnumContainerVariable({ name: "Format.Date", id: "__FORMAT_DATE__", isReadOnly: true, isSystemVariable: true, version: "1.0", hideFromAutocomplete: true }), new g.TimePartEnumContainerVariable({ name: "Format.TimePart", id: "__FORMAT_TIME_PART__", isReadOnly: true, isSystemVariable: true, version: "1.0", hideFromAutocomplete: true }), new g.NumberFormatEnumContainerVariable({ name: "Format.Number", id: "__FORMAT_NUMBER__", isReadOnly: true, isSystemVariable: true, version: "1.0", hideFromAutocomplete: true }), new g.PhoneNumberFormatEnumContainerVariable({ name: "Format.PhoneNumber", id: "__FORMAT_PHONE_NUMBER__", isReadOnly: true, isSystemVariable: true, version: "1.0", hideFromAutocomplete: true, featureToggleName: d.archPhoneNumberPhase2 }), new g.StringFormatEnumContainerVariable({ name: "Format.String", id: "__FORMAT_STRING__", isReadOnly: true, isSystemVariable: true, version: "1.0", hideFromAutocomplete: true }), new g.TimeFormatEnumContainerVariable({ name: "Format.Time", id: "__FORMAT_TIME__", isReadOnly: true, isSystemVariable: true, version: "1.0", hideFromAutocomplete: true })], languageVariables: [new T.LanguageCaseEnumContainerVariable({ name: "Language.Case", id: "__LANGUAGE_CASE__", isReadOnly: true, isSystemVariable: true, version: "1.0" }), new T.LanguageGenderEnumContainerVariable({ name: "Language.Gender", id: "__LANGUAGE_GENDER__", isReadOnly: true, isSystemVariable: true, version: "1.0" }), new T.LanguageQuantityEnumContainerVariable({ name: "Language.Quantity", id: "__LANGUAGE_QUANTITY__", isReadOnly: true, isSystemVariable: true, version: "1.0" })], lookupVariables: [new f.DateTimeEnumContainerVariable({ name: "System.DateTime", id: "__SYSINFO_DATETIME__", description: S.systemVariables.infoDateTimes, isReadOnly: true, isSystemVariable: true, version: "1.0" }), new f.CurrenciesEnumContainerVariable({ name: "System.Currencies", id: "__SYSINFO_CURRENCIES__", description: S.systemVariables.infoCurrencies, isReadOnly: true, isSystemVariable: true, version: "1.0" }), new f.LanguagesEnumContainerVariable({ name: "System.Languages", id: "__SYSINFO_LANGUAGES__", description: S.systemVariables.infoLanguages, isReadOnly: true, isSystemVariable: true, version: "1.0" }), new f.RegionsEnumContainerVariable({ name: "System.Regions", id: "__SYSINFO_REGIONS__", description: S.systemVariables.infoRegions, isReadOnly: true, isSystemVariable: true, version: "1.0" })], menuVariables: [new y.BoolVariable({ name: "Menu.LastCollectionNoInput", id: "__MENU_LAST_COLLECTION_NO_INPUT__", description: S.systemVariables.menuLastCollectionNoInput, isReadOnly: true, isSystemVariable: true, version: "1.0", featureConfig: u.default.voicemailFlows }), new y.BoolVariable({ name: "Menu.LastCollectionNoMatch", id: "__MENU_LAST_COLLECTION_NO_MATCH__", description: S.systemVariables.menuLastCollectionNoMatch, isReadOnly: true, isSystemVariable: true, version: "1.0", featureConfig: u.default.voicemailFlows })], nluBasedCommonFlowVariables: [new y.StringVariable({ name: "Session.ChannelType", id: "__SESSION_CHANNEL_TYPE__", description: S.systemVariables.sessionChannelType, descriptionOverrides: { voicesurvey: S.systemVariables.sessionChannelTypeVoiceSurvey }, isReadOnly: true, isSystemVariable: true, version: "1.0" }), new y.StringVariable({ name: "Session.ConversationId", id: "__SESSION_CONVERSATION_ID__", copyPasteId: "__CONVERSATION_ID__", description: S.systemVariables.sessionConversationId, descriptionOverrides: { voicesurvey: S.systemVariables.sessionConversationIdVoiceSurvey }, isReadOnly: true, isSystemVariable: true, version: "1.0" }), new y.StringVariable({ name: "Session.Language", id: "__INTERACTION_LANGUAGE__", description: S.systemVariables.interactionLanguage, isReadOnly: true, isSystemVariable: true, version: "1.0" }), new y.DecimalVariable({ name: "Session.LastCollectionConfidence", id: "__SESSION_LAST_COLLECTION_CONFIDENCE__", description: (0, r2.sprintf)(S.systemVariables.sessionLastCollectionConfidence, S.actions.askForActionGeneric), descriptionOverrides: { voicesurvey: (0, r2.sprintf)(S.systemVariables.sessionLastCollectionConfidenceVoiceSurvey, S.actions.askForActionGeneric) }, isReadOnly: true, isSystemVariable: true, version: "1.0" }), new y.StringVariable({ name: "Session.LastCollectionUtterance", id: "__SESSION_LAST_COLLECTION_UTTERANCE__", description: (0, r2.sprintf)(S.systemVariables.sessionLastCollectionUtterance, S.actions.askForActionGeneric), descriptionOverrides: { voicesurvey: (0, r2.sprintf)(S.systemVariables.sessionLastCollectionUtteranceVoiceSurvey, S.actions.askForActionGeneric) }, isReadOnly: true, isSystemVariable: true, version: "1.0" }), new y.DecimalVariable({ name: "Session.LastNLUCollectionConfidence", id: "__SESSION_LAST_NLU_COLLECTION_CONFIDENCE__", description: (0, r2.sprintf)(S.systemVariables.sessionLastNLUCollectionConfidence, S.actions.askForActionGeneric), featureConfig: u.default.botFlowsLastNLUCollectionConfidence, isReadOnly: true, isSystemVariable: true, version: "1.0" }), new y.StringVariable({ name: "Session.Source", id: "__SESSION_SOURCE__", description: S.systemVariables.sessionSource, descriptionOverrides: { voicesurvey: S.systemVariables.sessionSourceVoiceSurvey }, isReadOnly: true, isSystemVariable: true, version: "1.0" })], nluBasedIntentVariables: [new y.StringVariable({ name: "Session.ActiveIntent", id: "__SESSION_ACTIVE_INTENT__", description: S.systemVariables.sessionActiveIntent, isReadOnly: true, isSystemVariable: true, version: "1.0" }), new y.StringVariable({ name: "Session.LastCompletedIntent", id: "__SESSION_LAST_COMPLETED_INTENT__", description: (0, r2.sprintf)(S.systemVariables.sessionLastCompletedIntent, S.actions.askForIntent), isReadOnly: true, isSystemVariable: true, version: "1.0" })], nluBasedKnowledgeVariables: [new y.StringVariable({ name: "Session.LastKnowledgeAnswer", id: "__SESSION_LAST_KNOWLEDGE_ANSWER__", description: S.systemVariables.sessionLastKnowledgeAnswer, isReadOnly: true, isSystemVariable: true, featureConfig: u.default.botFlowsKnowledge, version: "1.0" }), new y.StringVariable({ name: "Session.LastKnowledgeQuestion", id: "__SESSION_LAST_KNOWLEDGE_QUESTION__", description: S.systemVariables.sessionLastKnowledgeQuestion, isReadOnly: true, isSystemVariable: true, featureConfig: u.default.botFlowsKnowledge, version: "1.0" })], automateLookupVariables: [new f.ConversationTypesEnumContainerVariable({ name: "System.Conversation", id: "__SYSINFO_CONVERSATION__", description: S.surveyInviteFlowVariables.conversation, isReadOnly: true, isSystemVariable: true, version: "1.0" }), new f.SurveyDispositionsEnumContainerVariable({ name: "System.Survey", id: "__SYSINFO_SURVEY__", description: S.surveyInviteFlowVariables.survey, isReadOnly: true, isSystemVariable: true, version: "1.0" })], systemVariablesNoIsTest: N, systemVariables: O, uuiDataVariable: [new y.StringVariable({ name: "Call.UUIData", id: "__CALL_UUIDATA__", description: S.inboundOutboundAndInQueueCallFlowVariables.uuiData, isReadOnly: true, isSystemVariable: true, version: "1.0", initialValue: false })], outboundCallFlowVariables: [new y.CampaignVariable({ name: "Call.Campaign", id: "__FLOW_CAMPAIGN__", deprecatedName: "flow.campaign", description: S.systemVariables.flowCampaign, isReadOnly: true, isSystemVariable: true, version: "1.0" }), new y.ContactListVariable({ name: "Call.ContactList", id: "__FLOW_CONTACT_LIST__", deprecatedName: "flow.contactlist", description: S.systemVariables.flowContactList, isReadOnly: true, isSystemVariable: true, version: "1.0" }), new y.WrapupCodeVariable({ name: "Flow.WrapupCode", id: "__FLOW_WRAPUP_CODE__", description: S.systemVariables.flowWrapupCode, isReadOnly: true, isSystemVariable: true, version: "1.0" }), new y.StringVariable({ name: "Call.ContactId", id: "__CALL_CONTACT_ID__", description: S.systemVariables.callContactId, isReadOnly: true, isSystemVariable: true, version: "1.0" }), new y.ContactVariable({ name: "Call.Contact", id: "__FLOW_CONTACT__", deprecatedName: "flow.contact", description: S.systemVariables.flowContact, isReadOnly: true, isSystemVariable: true, version: "1.0" }), new y.StringVariable({ name: "Call.ExternalContactId", id: "__EXTERNAL_CONTACT_ID__", description: S.systemVariables.externalContactId, isReadOnly: true, isSystemVariable: true, version: "1.0", featureConfig: u.default.externalContactIdentityResolutionPhase1 })], emailSendFlowVariables: [new y.StringVariable({ name: "Email.ConversationId", id: "__EMAIL_CONVERSATION_ID__", copyPasteId: "__CONVERSATION_ID__", description: S.systemVariables.emailDraftConversationId, isReadOnly: true, isSystemVariable: true, version: "1.0" }), new y.QueueVariable({ name: "Email.CurrentQueue", id: "__CALL_CURRENT_QUEUE__", description: S.systemVariables.emailDraftCurrentQueueVariableDescription, isReadOnly: true, isSystemVariable: true, version: "1.0" }), new y.JsonVariable({ name: "Email.Draft", id: "__EMAIL_DRAFT__", description: S.systemVariables.emailDraftVariableDescription, isReadOnly: true, isSystemVariable: true, version: "1.0", typeIdentifier: a.expressionTypeNames.draftEmail }), new y.StringVariable({ name: "Flow.AgentUiLanguage", id: "__AGENT_UI_LANGUAGE__", description: s.emailSend.variables.agentUiLanguageDescription, isReadOnly: true, isSystemVariable: true, version: "1.0" })], inboundEmailFlowVariables: [new y.CampaignVariable({ name: "Email.Campaign", id: "__FLOW_CAMPAIGN__", description: S.systemVariables.flowCampaign, isReadOnly: true, isSystemVariable: true, version: "1.0", featureConfig: u.default.outboundEmailCampaigns }), new y.ContactListVariable({ name: "Email.ContactList", id: "__FLOW_CONTACT_LIST__", description: S.systemVariables.flowContactList, isReadOnly: true, isSystemVariable: true, version: "1.0", featureConfig: u.default.outboundEmailCampaigns }), new y.StringVariable({ name: "Email.ContactId", id: "__CALL_CONTACT_ID__", description: S.systemVariables.callContactId, isReadOnly: true, isSystemVariable: true, version: "1.0", featureConfig: u.default.outboundEmailCampaigns }), new y.StringVariable({ name: "Email.ExternalTag", id: "__EXTERNAL_TAG__", description: S.systemVariables.emailExternalTag, isReadOnly: true, isSystemVariable: true, version: "1.0" }), new y.ComplexVariable({ name: "Email.Message", id: "__EMAIL_MESSAGE__", description: S.systemVariables.emailMessage, typeIdentifier: a.expressionTypeNames.email, isReadOnly: true, isSystemVariable: true, version: "1.0" }), new y.StringVariable({ name: "Email.ConversationId", id: "__EMAIL_CONVERSATION_ID__", copyPasteId: "__CONVERSATION_ID__", description: S.systemVariables.emailConversationId, isReadOnly: true, isSystemVariable: true, version: "1.0" }), new y.StringVariable({ name: "Email.ExternalContactId", id: "__EXTERNAL_CONTACT_ID__", description: S.systemVariables.externalContactId, isReadOnly: true, isSystemVariable: true, version: "1.0", featureConfig: u.default.externalContactIdentityResolutionPhase1 }), new y.StringVariable({ name: "Email.Language", id: "__INTERACTION_LANGUAGE__", description: S.systemVariables.interactionLanguage, isReadOnly: true, isSystemVariable: true, version: "1.0" }), new y.LanguageSkillVariable({ name: "Email.LanguageSkill", id: "__CONVERSATION_LANGUAGE_SKILL__", deprecatedId: "__EMAIL_LANGUAGE_SKILL__", description: S.systemVariables.emailLanguageSkill, isReadOnly: true, isSystemVariable: true, version: "1.0" })], inboundShortMessageFlowVariables: [new y.ComplexVariable({ name: "Message.Message", id: "__MESSAGE_MESSAGE__", description: S.systemVariables.messageMessage, typeIdentifier: a.expressionTypeNames.shortMessage, isReadOnly: true, isSystemVariable: true, version: "1.0" }), new y.StringVariable({ name: "Message.ConversationId", id: "__MESSAGE_CONVERSATION_ID__", copyPasteId: "__CONVERSATION_ID__", description: S.systemVariables.messagingConversationId, isReadOnly: true, isSystemVariable: true, version: "1.0" }), new y.StringVariable({ name: "Message.ExternalContactId", id: "__EXTERNAL_CONTACT_ID__", description: S.systemVariables.externalContactId, isReadOnly: true, isSystemVariable: true, version: "1.0", featureConfig: u.default.externalContactIdentityResolutionPhase1 }), new y.StringVariable({ name: "Message.ExternalTag", id: "__EXTERNAL_TAG__", description: S.systemVariables.messageExternalTag, isReadOnly: true, isSystemVariable: true, version: "1.0" }), new y.BoolVariable({ name: "Message.IsAuthenticated", id: "__MESSAGE_IS_AUTHENTICATED__", description: S.systemVariables.messagingIsAuthenticated, isReadOnly: true, isSystemVariable: true, version: "1.0", featureConfig: u.default.authorizedWebMessaging }), new y.BoolVariable({ name: "Message.IsNewConversation", id: "__MESSAGE_IS_NEW_CONVERSATION__", description: S.systemVariables.messagingIsNewConversation, isReadOnly: true, isSystemVariable: true, version: "1.0" }), new y.StringVariable({ name: "Message.Language", id: "__INTERACTION_LANGUAGE__", description: S.systemVariables.interactionLanguage, isReadOnly: true, isSystemVariable: true, version: "1.0" }), new y.CampaignVariable({ name: "Message.Campaign", id: "__FLOW_CAMPAIGN__", description: S.systemVariables.flowCampaign, isReadOnly: true, isSystemVariable: true, version: "1.0" }), new y.ContactListVariable({ name: "Message.ContactList", id: "__FLOW_CONTACT_LIST__", description: S.systemVariables.flowContactList, isReadOnly: true, isSystemVariable: true, version: "1.0" }), new y.StringVariable({ name: "Message.ContactId", id: "__CALL_CONTACT_ID__", description: S.systemVariables.callContactId, isReadOnly: true, isSystemVariable: true, version: "1.0" }), new y.ComplexVariable({ name: "Message.JourneyContext", id: "__CHAT_JOURNEY_CONTEXT__", description: S.systemVariables.messageJourneyContextVariableDescription, typeIdentifier: a.expressionTypeNames.journeyContext, isReadOnly: true, isSystemVariable: true, version: "1.0", featureConfig: u.default.inboundShortMessageFlows_Journey }), new y.JsonVariable({ name: "Message.InvocationData", id: "__MESSAGE_INVOCATION_DATA__", description: S.systemVariables.invocationData, isReadOnly: true, isSystemVariable: true, version: "1.0", featureConfig: u.default.postFlowDigitalFeature })], inboundChatFlowVariables: [new y.ComplexVariable({ name: "Chat.Guest", id: "__CHAT_GUEST__", description: S.systemVariables.chatGuest, typeIdentifier: a.expressionTypeNames.chatGuest, isReadOnly: true, isSystemVariable: true, version: "1.0" }), new y.StringVariable({ name: "Chat.ConversationId", id: "__CHAT_CONVERSATION_ID__", copyPasteId: "__CONVERSATION_ID__", description: S.systemVariables.chatConversationId, isReadOnly: true, isSystemVariable: true, version: "1.0" }), new y.StringVariable({ name: "Chat.Language", id: "__INTERACTION_LANGUAGE__", description: S.systemVariables.interactionLanguage, isReadOnly: true, isSystemVariable: true, version: "1.0" }), new y.ComplexVariable({ name: "Chat.JourneyContext", id: "__CHAT_JOURNEY_CONTEXT__", description: S.systemVariables.chatJourneyContext, typeIdentifier: a.expressionTypeNames.journeyContext, isReadOnly: true, isSystemVariable: true, version: "1.0" })], inQueueCallFlowVariables: [new y.SkillVariable({ name: "Call.ACDSkills", id: "__CONVERSATION_ACD_SKILLS__", description: S.systemVariables.conversationACDSkillsVariableDescription, isReadOnly: true, isSystemVariable: true, isCollection: true, version: "1.0", featureConfig: u.default.setPrioritySkillsFeature }), new y.QueueVariable({ name: "Call.CurrentQueue", id: "__CALL_CURRENT_QUEUE__", description: S.systemVariables.callCurrentQueue, isReadOnly: true, isSystemVariable: true, version: "1.0" }), new y.DurationVariable({ name: "Call.EstimatedWaitTime", id: "__CALL_ESTIMATED_WAIT_TIME__", description: S.systemVariables.callEstimatedWaitTime, isReadOnly: true, isSystemVariable: true, version: "1.0" }), new y.StringVariable({ name: "Call.ExternalContactId", id: "__EXTERNAL_CONTACT_ID__", description: S.systemVariables.externalContactId, isReadOnly: true, isSystemVariable: true, version: "1.0", featureConfig: u.default.externalContactIdentityResolutionPhase1 }), new y.LanguageSkillVariable({ name: "Call.LanguageSkill", id: "__CONVERSATION_LANGUAGE_SKILL__", description: S.systemVariables.conversationLanguageSkillVariableDescription, isReadOnly: true, isSystemVariable: true, version: "1.0", featureConfig: u.default.setPrioritySkillsFeature }), new y.PromptVariable({ name: "Flow.HoldPrompt", id: "__FLOW_HOLD_PROMPT__", description: S.inQueueFlowVariables.flowHoldPrompt, isReadOnly: true, isSystemVariable: true, version: "1.0" }), new y.IntegerVariable({ name: "Call.PositionInQueue", id: "__CALL_POSITION_IN_QUEUE__", description: S.systemVariables.callPositionInQueue, isReadOnly: true, isSystemVariable: true, version: "1.0" }), new y.IntegerVariable({ name: "Call.Priority", id: "__CONVERSATION_PRIORITY__", description: S.systemVariables.conversationPriorityVariableDescription, isReadOnly: true, isSystemVariable: true, version: "1.0", featureConfig: u.default.setPrioritySkillsFeature })], inQueueEmailFlowVariables: [new y.SkillVariable({ name: "Email.ACDSkills", id: "__CONVERSATION_ACD_SKILLS__", description: S.systemVariables.conversationACDSkillsVariableDescription, isReadOnly: true, isSystemVariable: true, isCollection: true, version: "1.0", featureConfig: u.default.setPrioritySkillsFeature }), new y.QueueVariable({ name: "Email.CurrentQueue", id: "__CALL_CURRENT_QUEUE__", description: S.systemVariables.emailCurrentQueueVariableDescription, isReadOnly: true, isSystemVariable: true, version: "1.0" }), new y.DurationVariable({ name: "Email.EstimatedWaitTime", id: "__CALL_ESTIMATED_WAIT_TIME__", description: S.systemVariables.emailEstimatedWaitTimeVariableDescription, isReadOnly: true, isSystemVariable: true, version: "1.0" }), new y.IntegerVariable({ name: "Email.PositionInQueue", id: "__CALL_POSITION_IN_QUEUE__", description: S.systemVariables.emailPositionInQueueVariableDescription, isReadOnly: true, isSystemVariable: true, version: "1.0" }), new y.IntegerVariable({ name: "Email.Priority", id: "__CONVERSATION_PRIORITY__", description: S.systemVariables.conversationPriorityVariableDescription, isReadOnly: true, isSystemVariable: true, version: "1.0", featureConfig: u.default.setPrioritySkillsFeature })], inQueueShortMessageFlowVariables: [new y.SkillVariable({ name: "Message.ACDSkills", id: "__CONVERSATION_ACD_SKILLS__", description: S.systemVariables.conversationACDSkillsVariableDescription, isReadOnly: true, isSystemVariable: true, isCollection: true, version: "1.0", featureConfig: u.default.setPrioritySkillsFeature }), new y.QueueVariable({ name: "Message.CurrentQueue", id: "__CALL_CURRENT_QUEUE__", description: S.systemVariables.messageCurrentQueueVariableDescription, isReadOnly: true, isSystemVariable: true, version: "1.0" }), new y.DurationVariable({ name: "Message.EstimatedWaitTime", id: "__CALL_ESTIMATED_WAIT_TIME__", description: S.systemVariables.messageEstimatedWaitTimeVariableDescription, isReadOnly: true, isSystemVariable: true, version: "1.0" }), new y.LanguageSkillVariable({ name: "Message.LanguageSkill", id: "__CONVERSATION_LANGUAGE_SKILL__", description: S.systemVariables.conversationLanguageSkillVariableDescription, isReadOnly: true, isSystemVariable: true, version: "1.0", featureConfig: u.default.setPrioritySkillsFeature }), new y.IntegerVariable({ name: "Message.PositionInQueue", id: "__CALL_POSITION_IN_QUEUE__", description: S.systemVariables.messagePositionInQueueVariableDescription, isReadOnly: true, isSystemVariable: true, version: "1.0" }), new y.IntegerVariable({ name: "Message.Priority", id: "__CONVERSATION_PRIORITY__", description: S.systemVariables.conversationPriorityVariableDescription, isReadOnly: true, isSystemVariable: true, version: "1.0", featureConfig: u.default.setPrioritySkillsFeature })], invocationDataVariable: [new y.JsonVariable({ name: "Call.InvocationData", id: "__CALL_INVOCATION_DATA__", description: S.systemVariables.invocationData, isReadOnly: true, isSystemVariable: true, version: "1.0", featureConfig: u.default.postCallActionFeature })], secureCallFlowVariables: [new y.StringVariable({ name: "Flow.InvocationData", id: "__FLOW_INVOCATION_DATA__", description: S.systemVariables.flowInvocationData, isReadOnly: true, isSystemVariable: true, version: "1.0" })], surveyInviteFlowVariables: [new y.ComplexVariable({ name: "Survey.CustomerContact", id: "__SURVEY_CUSTOMER_CONTACT__", typeIdentifier: a.expressionTypeNames.externalContact, description: S.surveyInviteFlowVariables.customerContact, isReadOnly: true, isSystemVariable: true, version: "1.0" }), new y.ComplexVariable({ name: "Survey.CustomerOrganization", id: "__SURVEY_CUSTOMER_ORGANIZATION__", typeIdentifier: a.expressionTypeNames.externalOrganization, description: S.surveyInviteFlowVariables.customerOrganization, isReadOnly: true, isSystemVariable: true, version: "1.0" }), new y.StringVariable({ name: "Survey.ConversationId", id: "__SURVEY_CONVERSATION_ID__", copyPasteId: "__CONVERSATION_ID__", description: S.surveyInviteFlowVariables.conversationId, isReadOnly: true, isSystemVariable: true, version: "1.0" }), new y.StringVariable({ name: "Survey.Url", id: "__SURVEY_URL__", description: S.surveyInviteFlowVariables.url, isReadOnly: true, isSystemVariable: true, version: "1.0" }), new y.StringVariable({ name: "Survey.ConversationType", id: "__SURVEY_CONVERSATION_TYPE__", description: S.surveyInviteFlowVariables.conversationType, isReadOnly: true, isSystemVariable: true, version: "1.0" }), new y.StringVariable({ name: "Survey.CustomerAddress", id: "__SURVEY_CUSTOMER_ADDRESS__", description: S.surveyInviteFlowVariables.customerAddress, isReadOnly: true, isSystemVariable: true, version: "1.0" }), new y.DateTimeVariable({ name: "Survey.ConversationStartDateTimeUtc", id: "__SURVEY_CONVERSATION_START_DATETIME__", description: S.surveyInviteFlowVariables.conversationStartDateTime, isReadOnly: true, isSystemVariable: true, version: "1.0" }), new y.DateTimeVariable({ name: "Survey.ConversationEndDateTimeUtc", id: "__SURVEY_CONVERSATION_END_DATETIME__", description: S.surveyInviteFlowVariables.conversationEndDateTime, isReadOnly: true, isSystemVariable: true, version: "1.0" })], voicemailFlowVariables: [new y.StringVariable({ name: "Voicemail.DebugEntityType", id: "__VOICEMAIL_DEBUG_ENTITY_TYPE__", description: (0, r2.sprintf)(S.systemVariables.voicemailDebugEntityTypeDescription, p.vmEntityTypeGroup.id, _.vmEntityTypeQueue.id, h.vmEntityTypeUser.id), isReadOnly: true, allowInitialValueForReadOnly: true, isSystemVariable: true, version: "1.0", initialValueOptionsCallback: () => { + const { ExpressionTypeStringOptions: e3 } = i2(81516); + return e3.create((e4) => e4.setDefaultText(h.vmEntityTypeUser.id).setDescriptionInfo(S.variable.initialValueLabel, (0, r2.sprintf)(S.systemVariables.voicemailDebugEntityTypeDescription, p.vmEntityTypeGroup.id, _.vmEntityTypeQueue.id, h.vmEntityTypeUser.id)).setModeNoValueSelectionLabel(S.systemVariables.voicemailDebugEntityTypeNoValueLabel).facets.setTrim(true).setAllowableValues(m.vmEntityTypesAll)); + } }), new y.GroupVariable({ name: "Voicemail.DebugGroup", id: "__VOICEMAIL_DEBUG_GROUP__", description: (0, r2.sprintf)(S.systemVariables.voicemailDebugGroupDescription, p.vmEntityTypeGroup.id), isReadOnly: true, allowInitialValueForReadOnly: true, isSystemVariable: true, version: "1.0", initialValueOptionsCallback: () => { + const { ExpressionTypeGroupOptions: e3 } = i2(60186); + return e3.create((e4) => e4.setDescriptionInfo(S.variable.initialValueLabel, (0, r2.sprintf)(S.systemVariables.voicemailDebugGroupDescription, p.vmEntityTypeGroup.id))); + } }), new y.QueueVariable({ name: "Voicemail.DebugQueue", id: "__VOICEMAIL_DEBUG_QUEUE__", description: (0, r2.sprintf)(S.systemVariables.voicemailDebugQueueDescription, _.vmEntityTypeQueue.id), isReadOnly: true, isSystemVariable: true, allowInitialValueForReadOnly: true, version: "1.0", initialValueOptionsCallback: () => { + const { ExpressionTypeQueueOptions: e3 } = i2(37830); + return e3.create((e4) => e4.setDescriptionInfo(S.variable.initialValueLabel, (0, r2.sprintf)(S.systemVariables.voicemailDebugQueueDescription, _.vmEntityTypeQueue.id))); + } }), new y.UserVariable({ name: "Voicemail.DebugUser", id: "__VOICEMAIL_DEBUG_USER__", description: (0, r2.sprintf)(S.systemVariables.voicemailDebugUserDescription, h.vmEntityTypeUser.id), isReadOnly: true, allowInitialValueForReadOnly: true, isSystemVariable: true, version: "1.0", initialValueOptionsCallback: () => { + const { ExpressionTypeUserOptions: e3 } = i2(26954); + return e3.create((e4) => e4.setDescriptionInfo(S.variable.initialValueLabel, (0, r2.sprintf)(S.systemVariables.voicemailDebugUserDescription, h.vmEntityTypeUser.id))); + } }), new y.AudioVariable({ name: "Voicemail.EntityGreetingAudio", id: "__VOICEMAIL_ENTITY_GREETING_AUDIO__", description: S.systemVariables.voicemailEntityGreetingAudioDescription, isReadOnly: true, isSystemVariable: true, version: "1.0" }), new y.AudioVariable({ name: "Voicemail.EntityNameAudio", id: "__VOICEMAIL_ENTITY_NAME_AUDIO__", description: S.systemVariables.voicemailEntityNameAudioDescription, isReadOnly: true, isSystemVariable: true, version: "1.0" }), new y.BoolVariable({ name: "Voicemail.Enabled", id: "__VOICEMAIL_ENABLED__", description: S.systemVariables.voicemailEnabledDescription, isReadOnly: true, isSystemVariable: true, version: "1.0" }), new y.StringVariable({ name: "Voicemail.EntityName", id: "__VOICEMAIL_ENTITY_NAME__", description: S.systemVariables.voicemailEntityNameDescription, isReadOnly: true, isSystemVariable: true, version: "1.0" }), new y.StringVariable({ name: "Voicemail.EntityType", id: "__VOICEMAIL_ENTITY_TYPE__", description: S.systemVariables.voicemailEntityTypeDescription, isReadOnly: true, isSystemVariable: true, version: "1.0" }), new y.StringVariable({ name: "Voicemail.ExternalContactId", id: "__EXTERNAL_CONTACT_ID__", description: S.systemVariables.externalContactId, isReadOnly: true, isSystemVariable: true, version: "1.0", featureConfig: u.default.externalContactIdentityResolutionPhase1 }), new y.GroupVariable({ name: "Voicemail.Group", id: "__VOICEMAIL_GROUP__", description: S.systemVariables.voicemailGroupDescription, isReadOnly: true, isSystemVariable: true, version: "1.0" }), new y.QueueVariable({ name: "Voicemail.Queue", id: "__VOICEMAIL_QUEUE__", description: S.systemVariables.voicemailQueueDescription, isReadOnly: true, isSystemVariable: true, version: "1.0" }), new y.UserVariable({ name: "Voicemail.User", id: "__VOICEMAIL_USER__", description: S.systemVariables.voicemailUserDescription, isReadOnly: true, isSystemVariable: true, version: "1.0" }), new y.ComplexVariable({ name: "Voicemail.VoicemailSnippet", id: "__VOICEMAIL_VOICEMAIL_SNIPPET__", typeIdentifier: a.expressionTypeNames.voicemailSnippet, description: S.systemVariables.voicemailVoicemailSnippet, isReadOnly: true, isSystemVariable: true, version: "1.0" })], voiceSurveyFlowVariables: [new y.JsonVariable({ name: "Session.InvocationData", id: "__CALL_INVOCATION_DATA__", description: S.systemVariables.invocationData, isReadOnly: true, isSystemVariable: true, version: "1.0" }), new y.StringVariable({ name: "Session.LastCollectionMode", id: "__LAST_COLLECTION_MODE__", description: (0, r2.sprintf)(S.systemVariables.lastCollectionModeDescription, (0, l.getListDisplayString)([c.inputMode.speech, c.inputMode.dtmf], false, false, true)), isReadOnly: true, isSystemVariable: true, version: "1.0", featureConfig: u.default.lastCollectionModeVariable })], workflowVariables: [new y.StringVariable({ name: "Workflow.Language", id: "__INTERACTION_LANGUAGE__", description: S.systemVariables.interactionLanguage, isReadOnly: true, isSystemVariable: true, version: "1.0" })], commonModuleVariables: [new y.StringVariable({ name: "Session.Language", id: "__INTERACTION_LANGUAGE__", description: S.systemVariables.interactionLanguage, isReadOnly: true, isSystemVariable: true, version: "1.0" }), new y.SkillVariable({ name: "Session.ACDSkills", id: "__CONVERSATION_ACD_SKILLS__", description: S.systemVariables.conversationACDSkillsVariableDescription, isReadOnly: true, isSystemVariable: true, isCollection: true, version: "1.0", featureConfig: u.default.setPrioritySkillsFeature }), new y.LanguageSkillVariable({ name: "Session.LanguageSkill", id: "__CONVERSATION_LANGUAGE_SKILL__", description: S.systemVariables.conversationLanguageSkillVariableDescription, isReadOnly: true, isSystemVariable: true, version: "1.0", featureConfig: u.default.setPrioritySkillsFeature }), new y.IntegerVariable({ name: "Session.Priority", id: "__CONVERSATION_PRIORITY__", description: S.systemVariables.conversationPriorityVariableDescription, isReadOnly: true, isSystemVariable: true, version: "1.0", featureConfig: u.default.setPrioritySkillsFeature })], workitemFlowVariables: [new y.JsonVariable({ name: "Workitem.EventData", id: "__EVENT_DATA__", description: S.workitem.workitemEventData, isReadOnly: true, isSystemVariable: true, featureConfig: u.default.workitemDateAutomationFeature, version: "1.0", typeIdentifier: a.expressionTypeNames.workitemEventData }), new y.StringVariable({ name: "Workitem.EventType", id: "__EVENT_TYPE__", description: S.systemVariables.workitemEventType, isReadOnly: true, isSystemVariable: true, version: "1.0" }), new y.StringVariable({ name: "Workitem.Language", id: "__INTERACTION_LANGUAGE__", description: S.systemVariables.interactionLanguage, isReadOnly: true, isSystemVariable: true, version: "1.0" }), new y.ComplexVariable({ name: "Workitem.Workitem", id: "__WORKITEM_WORKITEM__", description: S.systemVariables.workitem, typeIdentifier: a.expressionTypeNames.workitem, isReadOnly: false, isSystemVariable: true, version: "1.0" }), new y.ComplexVariable({ name: "Workitem.WorkitemOriginal", id: "__WORKITEM_WORKITEM_ORIGINAL__", description: S.systemVariables.workitemOriginal, typeIdentifier: a.expressionTypeNames.workitem, isReadOnly: true, isSystemVariable: true, version: "1.0" })] }; + t2.default = I; + }, 96128: (e2, t2, i2) => { + const n2 = i2(38416).default; + function r2() { + Object.defineProperties(this, { _model: { writable: true } }), this.actionReferences = void 0, this.version = void 0, r2.baseConstructor.apply(this, arguments); + } + i2(52722).extend(r2, "CommonModuleReference"), Object.defineProperties(r2.prototype, { model: { enumerable: true, get: function() { + return this._model; + }, set: function(e3) { + this._model = this.reviveItem(e3, n2); + } } }), e2.exports = r2; + }, 96153: (e2, t2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + }, 96169: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(19596), r2 = i2(80295); + class o extends n2.DataContract { + constructor(e3) { + super(e3), (0, r2.makeUnenumerable)(this, "_executionInputSchema"), (0, r2.makeUnenumerable)(this, "_executionOutputSchema"), (0, r2.makeUnenumerable)(this, "_parentSchema"); + } + get executionInputSchema() { + return this._executionInputSchema; + } + set executionInputSchema(e3) { + this._executionInputSchema = e3; + } + get executionOutputSchema() { + return this._executionOutputSchema; + } + set executionOutputSchema(e3) { + this._executionOutputSchema = e3; + } + get parentSchema() { + return this._parentSchema; + } + set parentSchema(e3) { + this._parentSchema = e3; + } + } + t2.default = o; + }, 96237: (e2, t2, i2) => { + const n2 = i2(57731), r2 = {}; + function o(e3, t3) { + r2[e3] = this, r2[t3] = this, o.baseConstructor.apply(this, arguments); + } + n2.extend(o, "SubsequentRecognitionFailuresEnum"), o.getInstance = function(e3) { + return r2[e3 || 0]; + }, o.Exit = new o(0, "Exit"), o.ExecuteTask = new o(1, "ExecuteTask"), e2.exports = o; + }, 96328: function(e2, t2, i2) { + "use strict"; + var n2 = this && this.__read || function(e3, t3) { + var i3 = "function" == typeof Symbol && e3[Symbol.iterator]; + if (!i3) return e3; + var n3, r3, o2 = i3.call(e3), a2 = []; + try { + for (; (void 0 === t3 || t3-- > 0) && !(n3 = o2.next()).done; ) a2.push(n3.value); + } catch (e4) { + r3 = { error: e4 }; + } finally { + try { + n3 && !n3.done && (i3 = o2.return) && i3.call(o2); + } finally { + if (r3) throw r3.error; + } + } + return a2; + }, r2 = this && this.__spreadArray || function(e3, t3) { + for (var i3 = 0, n3 = t3.length, r3 = e3.length; i3 < n3; i3++, r3++) e3[r3] = t3[i3]; + return e3; + }; + Object.defineProperty(t2, "__esModule", { value: true }), t2.concat = void 0; + var o = i2(65212), a = i2(70201), s = i2(26404), l = i2(47058); + t2.concat = function() { + for (var e3 = [], t3 = 0; t3 < arguments.length; t3++) e3[t3] = arguments[t3]; + var i3 = s.popScheduler(e3); + return o.operate(function(t4, o2) { + a.concatAll()(l.from(r2([t4], n2(e3)), i3)).subscribe(o2); + }); + }; + }, 96347: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.getBotList = function(e3) { + return n2.__awaiter(this, void 0, void 0, function* () { + const t3 = (null == e3 ? void 0 : e3.additionalParams) || e3; + if (!t3 || !t3.botId && !t3.integrationId) throw u.error("Invalid getBotList request parameters"), new Error("Invalid getBotList request parameters"); + const i3 = l.default.isString(t3.integrationId) ? t3.integrationId : t3.botId.split("~")[0]; + try { + const t4 = yield _(i3, e3); + return yield y(h, i3, t4.id, null), m(i3, t4.id); + } catch (e4) { + throw u.exception(e4, `Failed to get bots for ${i3}`), e4; + } + }); + }, t2.getSingleBot = function(e3, t3) { + return n2.__awaiter(this, void 0, void 0, function* () { + const i3 = (null == t3 ? void 0 : t3.additionalParams) || t3; + if (!i3 || !i3.integrationId) throw u.error("Invalid getSingleBot request parameters"), new Error("Invalid getSingleBot request parameters"); + const n3 = i3.integrationId; + try { + const t4 = yield g(n3, e3); + return yield y(f, n3, t4.id, e3), yield T(n3, t4.id, e3); + } catch (t4) { + throw u.exception(t4, `Failed to get botId ${e3}:`), t4; + } + }); + }; + const n2 = i2(31635), r2 = n2.__importStar(i2(24032)), o = n2.__importStar(i2(74828)), a = n2.__importDefault(i2(36019)), s = n2.__importStar(i2(22717)), l = n2.__importDefault(i2(92140)), u = r2.getTopic("nuanceApi"), d = 150, c = 2e3, p = "Running"; + function _(e3, t3) { + const i3 = { integrationId: e3 }; + return a.default.build(o.startGetAllNuanceMixBots).templateParams(i3).queryParams(t3.getSearchQueryParams()).call(); + } + function h(e3, t3) { + const i3 = { integrationId: e3, jobId: t3 }; + return a.default.build(o.getAllNuanceMixBotsJobStatus).templateParams(i3).call(); + } + function m(e3, t3) { + const i3 = { integrationId: e3, jobId: t3 }; + return a.default.build(o.getAllNuanceMixBotsJobResults).templateParams(i3).call(); + } + function g(e3, t3, i3) { + const n3 = { botId: t3, integrationId: e3 }; + return a.default.build(o.startGetSingleNuanceMixBot).templateParams(n3).call(); + } + function f(e3, t3, i3) { + const n3 = { botId: i3, integrationId: e3, jobId: t3 }; + return a.default.build(o.getSingleNuanceMixBotJobStatus).templateParams(n3).call(); + } + function T(e3, t3, i3) { + const n3 = { botId: i3, integrationId: e3, jobId: t3 }; + return a.default.build(o.getSingleNuanceMixBotJobResults).templateParams(n3).call(); + } + function y(e3, t3, i3, r3) { + return n2.__awaiter(this, void 0, void 0, function* () { + return s.poll(() => n2.__awaiter(this, void 0, void 0, function* () { + return e3(t3, i3, r3); + }), (e4) => { + if (l.default.isObject(e4)) return e4.state !== p; + }, c, d); + }); + } + _.api = o.startGetAllNuanceMixBots, h.api = o.getAllNuanceMixBotsJobStatus, m.api = o.getAllNuanceMixBotsJobResults, g.api = o.startGetSingleNuanceMixBot, f.api = o.getSingleNuanceMixBotJobStatus, T.api = o.getSingleNuanceMixBotJobResults; + }, 96348: (e2, t2, i2) => { + const n2 = i2(92140), r2 = i2(25088); + e2.exports = class extends r2 { + constructor(e3, t3) { + super(e3, t3); + } + initialize(e3, t3, i3) { + try { + if (!t3.getConfiguration()) throw "could not get core view model configuration"; + t3.addClipboardDependencies(this), i3 && (e3.deleteNode(t3), this.validateFlow(e3)); + } catch (e4) { + throw this.logException(e4, "'" + this.clipboardContentType + "' initialization failure."), this.destroy(), e4; + } + } + _performDestroy() { + super._performDestroy(), this._destUpconvertMenuChoiceViewModel = void 0; + } + _performPaste(e3) { + const t3 = this._pasteGetCoreModelForContent(); + return t3.pasteReIdOrRename(e3.clipboardObject), t3.pasteResolveOldToNewValues(e3.clipboardObject), n2.each(t3.variables, function(t4) { + this.pasteFixVariable(e3, t4); + }.bind(this)), this.pastedMenuOrTaskOrActionViewModel = this._pasteGetCoreViewModelForCoreModel(e3, t3), n2.each(this.pastedMenuOrTaskOrActionViewModel.variables, (e4) => { + e4 && n2.isFunction(e4.initializeDesignTime) && e4.initializeDesignTime(); + }), e3.additionalInfo && e3.additionalInfo.addNotableObject(this._destUpconvertMenuChoiceViewModel ? this._destUpconvertMenuChoiceViewModel : this.pastedMenuOrTaskOrActionViewModel), this.createClipboardResultSuccess(); + } + _pasteGetCoreModelForContent() { + this.logError("_pasteGetCoreModelForContent being called on base class. This should be overridden by inheriting classes!"); + } + _pasteGetCoreViewModelForCoreModel(e3, t3) { + this.logError("_pasteGetCoreViewModelForCoreModel being called on base class. This should be overridden by inheriting classes!"); + } + get isBaseClipboardContentStateTaskViewModel() { + return true; + } + }; + }, 96353: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.AudioViewModel = void 0; + const n2 = i2(31635), r2 = i2(17604), o = n2.__importDefault(i2(92140)), a = i2(9456), s = n2.__importDefault(i2(73198)), l = n2.__importStar(i2(42989)), u = n2.__importStar(i2(81116)), d = i2(14394), c = n2.__importDefault(i2(7401)), p = i2(62017), _ = i2(24235), h = i2(66942), m = n2.__importStar(i2(12847)), g = n2.__importStar(i2(17498)), f = i2(88473), T = n2.__importStar(i2(43011)), y = n2.__importStar(i2(27854)), S = n2.__importDefault(i2(41510)), A = n2.__importStar(i2(98442)), N = n2.__importStar(i2(1115)), O = i2(73381), I = n2.__importDefault(i2(17102)), v = n2.__importStar(i2(43773)), C = i2(84133), b = i2(27862), E = i2(47957); + class R extends I.default { + constructor(e3, t3, i3, n3) { + super(e3, t3), this.model = i3, this.options = n3, this._id = (0, a.uuid)(), this.cases = [], this.options && this.options.isAudioViewModelOptions || (m.error("did not get a AudioViewModelOptions instance"), this.options = _.AudioViewModelOptions.create()), this._isInternal = this.options.isInternal, !this.model.uiMetaData && this.options.noValueSelectionLabel && (this.noValueMode = true), this._initialize(), this._outOfServiceProvider = (0, f.addOutOfServiceProperties)(this), h.audioRegistrationService.registerItem(this); + } + get id() { + return this._id; + } + get className() { + return "AudioViewModel"; + } + _createAudioCase(e3) { + e3.audioExpression = this._prepareModel(e3, "audioExpression"); + const t3 = u.audioExpression(this.parentFlow, this.parent, e3.audioExpression, this.getExpressionLabel(e3.langCode), this._isInternal, p.ExpressionTypeAudioOptions.create((e4) => { + e4.setFromOptions(this.options), e4.setIsOptional(true); + })); + return new O.AudioCaseViewModel(this.parentFlow, this, e3, t3); + } + _prepareModel(e3, t3) { + return e3[t3] && !o.default.isEmpty(e3[t3]) || (e3[t3] = new c.default()), e3[t3]; + } + _initialize() { + this.model.cases || (this.model.cases = []), o.default.each(this.model.cases, (e4) => { + const t3 = this._createAudioCase(e4); + this.cases.push(t3), this.initializeDesignTimeCalled && t3.initializeDesignTime(); + }); + const e3 = this.label + " (" + E.audio.defaultAudio + ")"; + this._defaultAudio = u.audioExpression(this.parentFlow, this.parent, this._prepareModel(this.model, "defaultAudio"), e3, this._isInternal, p.ExpressionTypeAudioOptions.create((e4) => { + e4.setFromOptions(this.options); + })), this._defaultAudio.parentAudio = this, this.options.supportsBargeInExpression && (this.bargeInExpression = u.expression(this.parentFlow, this.parent, this._prepareModel(this.model, "bargeInExpression"), E.audio.bargeInExpressionLabel, d.globalTypes.boolean, "bargeInExpression", d.globalTypes.boolean.createExpressionOptionClass().setAsInput(true).setUseCheckbox(true).setDefaultText(s.default.true).setDescriptionInfo(E.audio.bargeInExpressionLabel, E.audio.bargeInExpressionTooltip))), this.flushExpression = u.expression(this.parentFlow, this.parent, this._prepareModel(this.model, "flushExpression"), E.audio.flushAudio, d.globalTypes.boolean, "flushExpression", d.globalTypes.boolean.createExpressionOptionClass().setAsInput(true).setUseCheckbox(true).setDefaultText(s.default.false)), this.flushExpression.outOfService = true; + } + initializeDesignTime() { + this._defaultAudio.initializeDesignTime(), this.flushExpression.initializeDesignTime(), this.bargeInExpression && this.bargeInExpression.initializeDesignTime(), this.cases.forEach((e3) => e3.initializeDesignTime()), super.initializeDesignTime(); + } + addAudioCase(e3) { + const t3 = new C(); + t3.langCode = e3, t3.disabled = true; + const i3 = this._createAudioCase(t3); + return this.cases.push(i3), this.model.cases.push(i3.model), this.initializeDesignTimeCalled && i3.initializeDesignTime(), i3; + } + addClipboardDependencies(e3) { + try { + e3.copyCutSetSupportedFlowTypeFilter(this.supportedFlowTypes); + const t3 = this.supportedFlowTypes; + this.defaultAudio.addClipboardDependencies(e3, t3), this.cases.forEach((i3) => { + i3.addClipboardDependencies(e3, t3); + }); + } finally { + e3.copyCutResetSupportedFlowTypeFilter(); + } + } + allPromptsHaveAudio() { + return this._defaultAudio.allPromptsHaveAudio() && this.cases.every((e3) => e3.disabled || e3.audioExpression.allPromptsHaveAudio()); + } + checkVersion(e3) { + this.defaultAudio.checkVersion(e3), this.cases.forEach((t3) => { + t3.checkVersion(e3); + }); + } + copyAudioViewModel(e3) { + this.defaultAudio.copyExpressionValue(e3.defaultAudio), this._destroyCases(), e3.cases.forEach((e4) => { + this.addAudioCase(e4.langCode).audioExpression.copyExpressionValue(e4.audioExpression); + }); + } + clearCases() { + this.defaultAudio && (o.default.each(this.defaultAudio.sequenceItems, (e3) => { + this.defaultAudio.deleteSequenceItem(e3); + }), this.defaultAudio.clear(true)), o.default.each(this.cases, (e3) => { + o.default.each(e3.audioExpression.sequenceItems, (t3) => { + e3.audioExpression.deleteSequenceItem(t3); + }), e3.audioExpression.clear(true); + }); + } + get defaultAudio() { + return this._defaultAudio; + } + get defaultAudioLanguages() { + const e3 = []; + if (0 === this.cases.length) { + const t3 = this.parentFlow ? this.parentFlow.topParentFlow.languages.supportedLanguages : []; + o.default.each(t3, (t4) => { + e3.push(A.getLanguageEntry(t4)); + }); + } else o.default.each(this.cases, (t3) => { + t3.disabled && this.parentFlow.topParentFlow.languages.getSupportedLanguageOption(t3.langCode) && e3.push(A.getLanguageEntry(t3.langCode)); + }); + return e3; + } + _destroyCases() { + o.default.each(this.cases, (e3) => { + e3.destroy(); + }), this.cases.length = 0, this.bargeInExpression && this.bargeInExpression.destroy(), this.flushExpression.destroy(); + } + _destroy() { + this.defaultAudio.destroy(), this._destroyCases(), this._outOfServiceProvider.destroy(), h.audioRegistrationService.unregisterItem(this); + } + getCaseForLang(e3, t3) { + let i3 = o.default.findWhere(this.cases, { langCode: e3 }); + return t3 || i3 || (i3 = this.defaultAudio), i3; + } + getExpressionDescription() { + if (this.hasError) return E.audio.advancedAudioInError; + { + let e3 = 0; + return o.default.each(this.cases, (t3) => { + t3.hasAudioSet && !t3.disabled && e3++; + }), 0 === e3 ? this.defaultAudio.customExpressionMode ? E.audio.customAudioExpressionInUse : this.defaultAudio.hasSequenceItems ? E.audio.advancedAudioInUseSingle : this.defaultAudio.isBlank ? "" : E.audio.advancedAudioInUseSingle : (this.defaultAudio.hasAudioSet && e3++, 1 === e3 ? E.audio.advancedAudioInUseSingle : (0, r2.sprintf)(E.audio.advancedAudioInUse, e3)); + } + } + getDescription() { + if (this.isBasicMode) { + if (this.defaultAudio.isPromptOnly) { + const e3 = T.getItem(this.defaultAudio.sequenceItems[0].parameter); + return e3 ? e3.expressionName : ""; + } + if (this.defaultAudio.isPromptVariableOnly) { + const e3 = this.parentFlow.getVariable(this.defaultAudio.sequenceItems[0].variableId); + return e3 ? e3.name : ""; + } + return this.defaultAudio.isTTSOnly ? this.defaultAudio.sequenceItems[0].parameter : ""; + } + return this.getExpressionDescription(); + } + getEditPromptSaveCallback() { + let e3; + const t3 = this.parent && this.parent.startUpObject || null; + return t3 && t3.validate ? e3 = N.validateNode.bind(this, t3, false) : this.parent && this.parent.validate && (e3 = N.validateNode.bind(this, this.parent, false)), e3; + } + getExpressionLabel(e3) { + return (0, r2.sprintf)(S.default.audio.languageLabel, this.label, e3); + } + getAllPrompts() { + let e3 = this.getPromptsUsedForLang(); + return this.cases.forEach((t3) => { + e3 = o.default.union(e3, this.getPromptsUsedForLang(t3.langCode)); + }), e3; + } + getConfiguration(e3, t3) { + if (null == t3 ? void 0 : t3.isForComparison) return v.removePropertiesForComparison(this.model); + if (null == t3 ? void 0 : t3.isForFlowYaml) { + if (!this.hasAudioSet) return null; + const i3 = {}; + let n3; + const r3 = this.defaultAudio.getConfiguration(e3, t3); + return r3 && (o.default.extend(i3, r3), n3 = true), o.default.each(this.cases, (r4) => { + if (!r4.hasAudioSet) return; + if (r4.disabled) return; + i3.alternateSequences || (i3.alternateSequences = {}); + const a2 = r4.audioExpression.getConfiguration(e3, t3); + o.default.isNullOrUndefined(a2) || (i3.alternateSequences[r4.langCode.toLowerCase()] = a2, n3 = true); + }), n3 ? (o.default.isEmpty(i3.alternateSequences) && delete i3.alternateSequences, i3) : null; + } + return this.model; + } + getPromptsUsedForLang(e3) { + const t3 = this.getCaseForLang(e3); + return t3 ? (t3.hasAudioSet ? t3.audioExpression || t3 : this.defaultAudio).getOrderedPrompts() : []; + } + getFirstExpressionWithParseMessage() { + if (this.defaultAudio.resultMessage && this.willMainSequenceRun()) return this.defaultAudio; + const e3 = o.default.find(this.cases, (e4) => !e4.disabled && e4.audioExpression.resultMessage); + return null == e3 ? void 0 : e3.audioExpression; + } + get hasAudioSet() { + return !!o.default.some(this.cases, function(e3) { + return e3.audioExpression.hasAudioSet; + }) || this.defaultAudio.hasAudioSet; + } + get hasError() { + return !(!this.defaultAudio.hasError || !this.willMainSequenceRun()) || o.default.some(this.cases, (e3) => !e3.disabled && e3.audioExpression.hasError); + } + get hasInfo() { + return !(!this.defaultAudio.hasInfo || !this.willMainSequenceRun()) || o.default.some(this.cases, (e3) => !e3.disabled && e3.audioExpression.hasInfo); + } + get isEmpty() { + return !(this.hasError || !this.isOptional || this.defaultAudio.customExpressionMode || !this.willMainSequenceRun()) && (!this.defaultAudio.hasSequenceItems || this.defaultAudio.isTTSOnly && !this.defaultAudio.hasAudioSet); + } + get hasWarning() { + return this.isEmpty || this.defaultAudio.hasWarning && this.willMainSequenceRun(); + } + get isAudioViewModel() { + return true; + } + get isBasicMode() { + return !this.noValueMode && !o.default.some(this.cases, (e3) => e3.audioExpression.hasSequenceItems || e3.audioExpression.customExpressionMode) && !this.defaultAudio.customExpressionMode && (!this.defaultAudio.sequenceItems || 0 === this.defaultAudio.sequenceItems.length || this.defaultAudio.isTTSOnly || this.defaultAudio.isPromptOnly || this.defaultAudio.isPromptVariableOnly); + } + get isOptional() { + return this.options.isOptional; + } + set isOptional(e3) { + this.options.isOptional = e3; + } + get noValueMode() { + return this.model.uiMetaData && this.model.uiMetaData.noValueMode; + } + set noValueMode(e3) { + this.model.uiMetaData || (this.model.uiMetaData = {}), this.model.uiMetaData.noValueMode = e3, e3 ? (this.defaultAudio && (this.defaultAudio.customExpressionMode = false), this.clearCases()) : (this.defaultAudio && this.defaultAudio.updateSequenceExpression(), o.default.each(this.cases, (e4) => { + e4.audioExpression && e4.audioExpression.updateSequenceExpression(); + })); + } + getDisplayName() { + return this.label; + } + get label() { + return this.options.label; + } + set label(e3) { + this.options.label = e3, this.defaultAudio.label = e3, this.cases.forEach((e4) => { + e4.audioExpression.label = this.getExpressionLabel(e4.langCode); + }); + } + outOfServiceChanged() { + this.defaultAudio.outOfService = this.outOfService, this.cases.forEach((e3) => { + e3.audioExpression.outOfService = this.outOfService; + }); + } + reprocessSequenceExpressionText(e3) { + o.default.each(e3.sequenceItems, (e4) => { + const t3 = e4.expression; + t3 && t3.processText(true); + }); + } + removeAudioCase(e3) { + if (!e3) return; + let t3 = this.model.cases.indexOf(e3.model); + t3 >= 0 && this.model.cases.splice(t3, 1), t3 = this.cases.indexOf(e3), t3 >= 0 && this.cases.splice(t3, 1), e3.destroy(); + } + search(e3) { + e3.addToQueue(this.defaultAudio), this.cases.forEach((t3) => e3.addToQueue(t3)); + } + get uiMetaData() { + return this.model.uiMetaData; + } + set uiMetaData(e3) { + this.model.uiMetaData = e3; + } + updateCases() { + const e3 = this.parentFlow ? this.parentFlow.languages.supportedLanguages : []; + if (e3.length <= 1) { + for (let e4 = this.cases.length - 1; e4 >= 0; --e4) this.removeAudioCase(this.cases[e4]); + this.defaultAudio.options.setIsOptional(!!this.isOptional), this.defaultAudio.renamePromptVariables(); + } else { + for (let e4 = this.cases.length - 1; e4 >= 0; --e4) this.parentFlow && !this.parentFlow.languages.isFlowSupportedLanguage(this.cases[e4].langCode) && this.removeAudioCase(this.cases[e4]); + o.default.each(e3, (e4) => { + o.default.find(this.cases, (t3) => t3.langCode.toLowerCase() === e4.toLowerCase()) || this.addAudioCase(e4); + }), this.defaultAudio.options.setIsOptional(this.isOptional || !this.willMainSequenceRun()), this.defaultAudio.renamePromptVariables(); + } + this.parentFlow.isEmbeddedFlow && this.cases.forEach((e4) => { + e4.audioExpression.outOfService = !this.topParentFlow.languages.isFlowSupportedLanguage(e4.langCode); + }), this.updateBargeInOOS(); + } + updateBargeInOOS() { + this.bargeInExpression && (0 === this.cases.length ? this.bargeInExpression.outOfService = this.defaultAudio.customExpressionMode : this.bargeInExpression.outOfService = false); + } + updateDependencies() { + const e3 = [], t3 = (t4) => { + t4.customExpressionMode ? e3.push({ expression: t4, type: l.expression }) : e3.push(t4.sequenceItems); + }; + o.default.each(this.cases, (e4) => { + t3(e4.audioExpression); + }), t3(this.defaultAudio), o.default.each(o.default.flatten(e3), (e4) => { + switch (e4.type) { + case l.tts: + case l.data: + break; + case l.prompt: + const t4 = e4; + g.registerPrompt(y.removePrefix(t4.name), t4.isSystem ? b.SystemPrompt : b.UserPrompt, this._defaultAudio.parentFlow, t4.parameter); + break; + case l.expression: + e4.expression.registerDependencies(); + } + }); + } + updateExpression(e3) { + this.cases.forEach((t3) => { + t3.audioExpression.updateSequenceExpression(e3); + }), this._defaultAudio.updateSequenceExpression(e3); + } + validate(e3) { + this.outOfService || (this.updateCases(), this.defaultAudio.validate(e3), this.options.supportsBargeInExpression && this.bargeInExpression.validate(e3), this.flushExpression.validate(e3), o.default.each(this.cases, (t3) => { + t3.disabled || t3.validate(e3); + }), this.isEmpty && !this.noValueMode && this.options.allowBlankAudio && e3.addWarning(this, (0, r2.sprintf)(E.audio.blankMainSeqWarningContext, this.label), void 0, true)); + } + willMainSequenceRun() { + return 0 === this.cases.length || !o.default.every(this.cases, (e3) => !e3.disabled && e3.hasAudioSet); + } + getExpressions() { + } + } + t2.AudioViewModel = R; + }, 96390: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(84655)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "division"; + } + get displayTypeName() { + return "ArchVariableDivision"; + } + get initialValue() { + return this._initialValue; + } + get isArchVariableDivision() { + return true; + } + } + t2.default = r2; + }, 96422: (e2, t2, i2) => { + "use strict"; + const n2 = i2(31635), r2 = n2.__importStar(i2(63824)), o = n2.__importStar(i2(99434)), a = i2(12179), s = n2.__importDefault(i2(5730)), l = n2.__importDefault(i2(73198)), u = n2.__importDefault(i2(4648)), d = n2.__importDefault(i2(97891)), c = i2(12457), p = i2(67607), _ = i2(79467), h = i2(96618), m = i2(80428), g = i2(47957); + class f extends s.default { + constructor(e3, t3) { + super(e3.parentFlow, e3), this.duration = null, this._loadModel(t3); + } + getDetails() { + return this.duration ? new c.ActionDetails([g.wait.durationLabel], [o.getDisplayText(this.duration)]) : null; + } + static get managedProperties() { + return [{ label: g.wait.durationLabel, type: m.expressionTypeNames.duration, options: _.ExpressionTypeDurationOptions.create((e3) => e3.setDefaultText(l.default.litDurationOneMinute).setDurationStyle(r2.durationStyles.fullDuration).setIninTestingField("durationExpression").facets.setMinDur(0, true)), property: "duration", yamlOptions: f.createYamlOptions("duration", (e3) => e3.setExportOrder(30)) }, { label: g.wait.trimDurationLabel, supportedFlowTypes: h.flowTypes.flowTypesAllAutomate, options: p.ExpressionTypeBooleanOptions.create((e3) => e3.setIninTestingField("trimDurationExpression").setFeatureConfigName(u.default.workflowWaitActionUpdatesPhase1).setDescriptionInfo(g.wait.trimDurationLabel, g.wait.trimDurationDescription)), property: "trimDurationNearMaxRunningTime", type: m.expressionTypeNames.boolean, yamlOptions: f.createYamlOptions("trimDurationNearMaxRunningTime", (e3) => e3.setExportOrder(20)) }]; + } + initializeDesignTime() { + super.initializeDesignTime(), this.trimDurationNearMaxRunningTime.isLiteralMode && this.trimDurationNearMaxRunningTime.isBlank && this.trimDurationNearMaxRunningTime.setAsLiteral(l.default.false); + } + validate(e3) { + super.validate(e3), this.duration || e3.addError(this, g.wait.noDurationSet); + } + } + f.info = d.default.createActionInfo({ actionClass: f, canBeInTask: true, helpTopic: a.helpTopics.actions.wait, modelClass: i2(590), name: g.actions.wait, scriptingName: "ArchActionWait" }), t2.A = f; + }, 96481: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(14820)); + class r2 extends n2.default { + constructor(e3) { + super(e3), e3.followupResponseTimeout && (this._followupResponseTimeout = this.coreFactory.createArchWrapper(e3.followupResponseTimeout)), e3.inputText && (this._inputText = this.coreFactory.createArchWrapper(e3.inputText)); + } + get displayTypeName() { + return "ArchBaseActionBot"; + } + get isArchBaseActionBot() { + return true; + } + get intentNames() { + return this._getCoreViewModel().customIntentNames; + } + getOutputByIntentName(e3) { + this._checkItemIsValidLiteralString(this._infoParm("intentName", "getOutputByIntentName"), e3, false); + const t3 = this._coreActionViewModel.getBranchByLabel(e3, true); + if (t3) return this.coreFactory.createArchWrapper(t3); + this.logErrorAndThrow("there is no output for name: " + e3); + } + get followupResponseTimeout() { + return this._followupResponseTimeout; + } + get inputText() { + return this._inputText; + } + } + t2.default = r2; + }, 96546: (e2, t2) => { + "use strict"; + var i2; + Object.defineProperty(t2, "__esModule", { value: true }), t2.whatsAppOnly = t2.appleBusinessOnly = t2.SessionSource = void 0, (function(e3) { + e3.apple = "apple", e3.appleBusiness = "applebusinesschat", e3.discord = "discord", e3.facebookMessenger = "facebookmessenger", e3.genesysChatWidget = "genesyschatwidget", e3.line = "line", e3.phone = "phone", e3.signal = "signal", e3.slack = "slack", e3.telegram = "telegram", e3.webChat = "webchat", e3.whatsApp = "whatsapp", e3.unknown = "unknown"; + })(i2 || (t2.SessionSource = i2 = {})), t2.appleBusinessOnly = [i2.appleBusiness], t2.whatsAppOnly = [i2.whatsApp]; + }, 96563: (e2, t2, i2) => { + const n2 = i2(92140), r2 = i2(45214), o = i2(7800); + function a() { + Object.defineProperties(this, { _mappings: { writable: true } }), this.intents = {}, this.slots = {}, this.rawNlu = null, this.intentHealthInfo = null, this.rawNluCompressionFormat = null, this.archNlu = null, this.nluGeneratedInputInfo = {}, a.baseConstructor.apply(this, arguments), n2.isObject(this._mappings) || (this._mappings = new o()); + } + Object.defineProperties(a.prototype, { mappings: { enumerable: true, get: function() { + return this._mappings; + }, set: function(e3) { + this._mappings = this.reviveItem(e3, o, false); + } } }), r2.extend(a, "NluMetaData"), e2.exports = a; + }, 96583: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.KnowledgeBaseDocumentViewModel = void 0; + const n2 = i2(31635), r2 = i2(43212), o = n2.__importDefault(i2(52816)); + class a extends r2.BaseConfigurationListViewModel { + constructor(e3) { + super(e3), e3.knowledgeBase && (this.knowledgeBase = new o.default(e3.knowledgeBase)); + } + get className() { + return "KnowledgeBaseDocumentViewModel"; + } + get id() { + return this.model.id; + } + get label() { + return this.model.name; + } + get name() { + return this.model.name; + } + get dependencySearchId() { + return `${this.knowledgeBase.id}/${this.id}`; + } + } + t2.KnowledgeBaseDocumentViewModel = a; + }, 96603: (e2, t2, i2) => { + const n2 = i2(28730), { exitWorkitemFlowActionType: r2 } = i2(30801); + function o() { + o.baseConstructor.apply(this, arguments); + } + n2.extend(o, r2, true), e2.exports = o; + }, 96618: function(e2, t2, i2) { + "use strict"; + var n2 = this && this.__createBinding || (Object.create ? function(e3, t3, i3, n3) { + void 0 === n3 && (n3 = i3); + var r3 = Object.getOwnPropertyDescriptor(t3, i3); + r3 && !("get" in r3 ? !t3.__esModule : r3.writable || r3.configurable) || (r3 = { enumerable: true, get: function() { + return t3[i3]; + } }), Object.defineProperty(e3, n3, r3); + } : function(e3, t3, i3, n3) { + void 0 === n3 && (n3 = i3), e3[n3] = t3[i3]; + }), r2 = this && this.__setModuleDefault || (Object.create ? function(e3, t3) { + Object.defineProperty(e3, "default", { enumerable: true, value: t3 }); + } : function(e3, t3) { + e3.default = t3; + }), o = this && this.__importStar || function(e3) { + if (e3 && e3.__esModule) return e3; + var t3 = {}; + if (null != e3) for (var i3 in e3) "default" !== i3 && Object.prototype.hasOwnProperty.call(e3, i3) && n2(t3, e3, i3); + return r2(t3, e3), t3; + }; + Object.defineProperty(t2, "__esModule", { value: true }), t2.flowTypes = void 0, t2.flowTypes = o(i2(69706)); + }, 96629: (e2, t2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + class i2 { + constructor(e3, t3) { + this._id = e3, this._displayStr = t3; + } + static create(e3, t3) { + return new i2(e3, t3); + } + get id() { + return this._id; + } + get displayStr() { + return this._displayStr; + } + get isChannelType() { + return true; + } + } + t2.default = i2; + }, 96646: (e2, t2, i2) => { + const n2 = i2(13240), { detectIntentActionType: r2 } = i2(30801), o = i2(7401); + function a() { + Object.defineProperties(this, { _detectedIntent: { writable: true } }), a.baseConstructor.apply(this, arguments); + } + n2.extend(a, r2, true), Object.defineProperties(a.prototype, { pasteResolveOldToNewValues: { value: function(e3) { + a._super.pasteResolveOldToNewValues.apply(this, arguments), this.detectedIntent.pasteResolveOldToNewValues(e3); + } }, pasteReIdOrRename: { value: function(e3) { + a._super.pasteReIdOrRename.apply(this, arguments), this.detectedIntent.pasteResolveOldToNewValues(e3); + } }, detectedIntent: { enumerable: true, get: function() { + return this._detectedIntent; + }, set: function(e3) { + this._detectedIntent = this.reviveItem(e3, o); + } } }), e2.exports = a; + }, 96651: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importStar(i2(14187)), o = n2.__importDefault(i2(61610)), a = i2(12179), s = n2.__importDefault(i2(97891)), l = i2(30801), u = i2(47957); + i2(69674); + class d extends o.default { + constructor(e3, t3) { + super(e3), this._loadModel(t3); + } + get nodeGuxIcon() { + return "site"; + } + get isStateLike() { + return true; + } + get isState() { + return true; + } + get shouldBeTerminated() { + return !(!this.parentFlow.definition.startUpStateMustTerminate && this.isStartUpObject) && super.shouldBeTerminated; + } + get resources() { + return { deleteTitle: u.deleteState, edit: u.states.editState, multipleNameError: u.states.multipleNames, noTerminatingAction: u.states.noTerminatingAction, setAsStartup: u.setStateAsStartup, startUpDisplayName: u.startUpStateDisplayName }; + } + get defaultVariableScope() { + return r2.scopes.state; + } + get localVariableScope() { + return r2.scopes.state; + } + get isAllowedAsStartupNode() { + return this.parentFlow.isAutomateFlowType && !this.isStartUpObject && this.parentFlow.periodicState !== this; + } + get isAllowedAsPeriodicState() { + return this.parentFlow.definition.supportsPeriodicState && !this.isStartUpObject && !this.isPeriodicState; + } + get isInQueueStartUpState() { + return this.parentFlow.isInQueueWorkflow && this.isStartUpObject; + } + get isPeriodicState() { + return this.parentFlow.periodicState === this; + } + get containerLabel() { + return u.state.label; + } + get supportsInputVariables() { + return this.parentFlow.supportsStateInputVariables; + } + get supportsOutputVariables() { + return this.parentFlow.supportsStateOutputVariables; + } + get uiMetaDataSectionName() { + return "state"; + } + addClipboardDependencies(e3) { + super.addClipboardDependencies(e3), e3.copyCutProcessStateViewModel(this); + } + } + d.info = s.default.createReusableNodeInfo({ actionType: l.stateActionType, actionClass: d, helpTopic: a.helpTopics.tasks.state, name: u.actions.state }), t2.default = d; + }, 96684: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.FindUserActionModel = void 0; + const n2 = i2(49574), r2 = i2(30801); + class o extends n2.BaseFindSystemObjectByNameActionModel { + constructor(e3) { + super(e3), this.__type = o.__type; + } + } + t2.FindUserActionModel = o, o.__type = r2.findUserActionType, o.registerType(); + }, 96713: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(81574)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "journeyAction"; + } + get id() { + } + get actionMap() { + } + get displayTypeName() { + return "ArchValueJourneyAction"; + } + get isArchValueJourneyAction() { + return true; + } + } + t2.default = r2; + }, 96727: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importStar(i2(74359)), o = n2.__importDefault(i2(73198)), a = i2(14394), s = n2.__importDefault(i2(22599)), l = i2(16958), u = new class { + constructor() { + Object.defineProperties(this, { _genericBuilderWithPartsGenerator: { value: s.default.create().addFuncCallParmGenerationBucket("containerPartGenerations", true).addFuncCallParmGenerationBucket("builderGeneration").addTokenReplacement(0).verifySprintfStringAndInitialize("%1$s") }, _emptyStringGenerator: { value: s.default.create().addText("").verifySprintfStringAndInitialize("") }, _emptyStringLiteralGenerator: { value: s.default.create().addText('""').verifySprintfStringAndInitialize('""') }, _falseLiteralGenerator: { value: s.default.create().addTokenBooleanFalse().verifySprintfStringAndInitialize("false") }, _lastGenNotSetOrEmptySpaceSepGenerator: { value: s.default.create().addFuncCall("If").addFuncCall("IsNotSetOrEmpty").addLastGeneratedText().addFuncCallEnd().addFuncParameterSeparator().addToken('""').addFuncParameterSeparator().addToken('" "').addFuncCallEnd().verifySprintfStringAndInitialize('If(IsNotSetOrEmpty(), "", " ")') }, _notSetAudioGenerator: { value: s.default.create().addFuncCall("ToAudio").addFuncCall("ToPrompt").addNotSet().addFuncCallEnd().addFuncCallEnd().verifySprintfStringAndInitialize("ToAudio(ToPrompt(NOT_SET))") }, _notSetBooleanGenerator: { value: s.default.create().addFuncCall("ToBool").addNotSet().addFuncCallEnd().verifySprintfStringAndInitialize("ToBool(NOT_SET)") }, _notSetCommunicationGenerator: { value: s.default.create().addFuncCall("ToCommunication").addNotSet().addFuncCallEnd().verifySprintfStringAndInitialize("ToCommunication(NOT_SET)") }, _notSetDateTimeGenerator: { value: s.default.create().addFuncCall("ToDateTime").addNotSet().addFuncCallEnd().verifySprintfStringAndInitialize("ToDateTime(NOT_SET)") }, _notSetDurationGenerator: { value: s.default.create().addFuncCall("ToDuration").addNotSet().addFuncCallEnd().verifySprintfStringAndInitialize("ToDuration(NOT_SET)") }, _notSetImageGenerator: { value: s.default.create().addFuncCall("ToImage").addNotSet().addFuncCallEnd().verifySprintfStringAndInitialize("ToImage(NOT_SET)") }, _notSetIntegerGenerator: { value: s.default.create().addFuncCall("ToInt").addNotSet().addFuncCallEnd().verifySprintfStringAndInitialize("ToInt(NOT_SET)") }, _notSetPromptGenerator: { value: s.default.create().addFuncCall("ToPrompt").addNotSet().addFuncCallEnd().verifySprintfStringAndInitialize("ToPrompt(NOT_SET)") }, _notSetStringGenerator: { value: s.default.create().addFuncCall("ToString").addNotSet().addFuncCallEnd().verifySprintfStringAndInitialize("ToString(NOT_SET)") }, _notSetVideoGenerator: { value: s.default.create().addFuncCall("ToVideo").addNotSet().addFuncCallEnd().verifySprintfStringAndInitialize("ToVideo(NOT_SET)") }, _notSetAgentScorePairGenerator: { value: s.default.create().addFuncCall("ToAgentScorePair").addNotSet().addFuncCallEnd().verifySprintfStringAndInitialize("ToAgentScorePair(NOT_SET)") }, _singleSpaceStringLiteralGenerator: { value: s.default.create().addText('" "').verifySprintfStringAndInitialize('" "') }, _singleTokenReplacementGenerator: { value: s.default.create().addTokenReplacement(0).verifySprintfStringAndInitialize("%1$s") } }), r2.loaded.then(() => this._finalizeGenerators()); + } + get singleTokenReplacementGenerator() { + return this._singleTokenReplacementGenerator; + } + get emptyStringLiteralGenerator() { + return this._emptyStringLiteralGenerator; + } + get emptyStringGenerator() { + return this._emptyStringGenerator; + } + get falseLiteralGenerator() { + return this._falseLiteralGenerator; + } + get lastGenNotSetOrEmptySpaceSepGenerator() { + return this._lastGenNotSetOrEmptySpaceSepGenerator; + } + get singleSpaceStringLiteralGenerator() { + return this._singleSpaceStringLiteralGenerator; + } + get genericBuilderWithPartsGenerator() { + return this._genericBuilderWithPartsGenerator; + } + get notSetAudioGenerator() { + return this._notSetAudioGenerator; + } + get notSetBooleanGenerator() { + return this._notSetBooleanGenerator; + } + get notSetCommunicationGenerator() { + return this._notSetCommunicationGenerator; + } + get notSetDateTimeGenerator() { + return this._notSetDateTimeGenerator; + } + get notSetDurationGenerator() { + return this._notSetDurationGenerator; + } + get notSetIntegerGenerator() { + return this._notSetIntegerGenerator; + } + get notSetImageGenerator() { + return this._notSetImageGenerator; + } + get notSetPromptGenerator() { + return this._notSetPromptGenerator; + } + get notSetStringGenerator() { + return this._notSetStringGenerator; + } + get notSetVideoGenerator() { + return this._notSetVideoGenerator; + } + get notSetAgentScorePairGenerator() { + return this._notSetAgentScorePairGenerator; + } + createEmptyStringGeneration() { + return this._emptyStringGenerator.createGeneration(); + } + _finalizeGenerators() { + this._emptyStringLiteralGenerator.setGenerationDescription(l.generators.emptyStringLiteral.generationDescription), this._falseLiteralGenerator.setGenerationDescription(o.default.false), this._notSetAudioGenerator.setGenerationDescriptionFromType(a.globalTypes.audio), this._notSetBooleanGenerator.setGenerationDescriptionFromType(a.globalTypes.boolean), this._notSetDateTimeGenerator.setGenerationDescriptionFromType(a.globalTypes.dateTime), this._notSetDurationGenerator.setGenerationDescriptionFromType(a.globalTypes.duration), this._notSetImageGenerator.setGenerationDescriptionFromType(a.globalTypes.image), this._notSetIntegerGenerator.setGenerationDescriptionFromType(a.globalTypes.integer), this._notSetPromptGenerator.setGenerationDescriptionFromType(a.globalTypes.prompt), this._notSetStringGenerator.setGenerationDescriptionFromType(a.globalTypes.string), this._notSetVideoGenerator.setGenerationDescriptionFromType(a.globalTypes.video), this._notSetAgentScorePairGenerator.setGenerationDescriptionFromType(a.globalTypes.agentScorePair); + } + }(); + t2.default = u; + }, 96776: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(81574)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "journeyPage"; + } + get url() { + } + get title() { + } + get domain() { + } + get fragment() { + } + get hostname() { + } + get keywords() { + } + get lang() { + } + get pathname() { + } + get queryString() { + } + get breadcrumb() { + } + get displayTypeName() { + return "ArchValueJourneyPage"; + } + get isArchValueJourneyPage() { + return true; + } + } + t2.default = r2; + }, 96815: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(20692)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "integerCollection"; + } + get displayTypeName() { + return "ArchVariableIntegerCollection"; + } + get initialValue() { + return this._initialValue; + } + get isArchVariableIntegerCollection() { + return true; + } + } + t2.default = r2; + }, 96875: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = i2(17604), o = n2.__importDefault(i2(92140)), a = n2.__importStar(i2(30260)), s = n2.__importStar(i2(24032)), l = n2.__importStar(i2(62241)), u = i2(51830), d = (n2.__importStar(i2(12847)), n2.__importStar(i2(33909))), c = n2.__importStar(i2(66381)), p = n2.__importStar(i2(1115)), _ = n2.__importDefault(i2(82190)), h = n2.__importDefault(i2(35583)), m = n2.__importDefault(i2(79159)), g = i2(77886), f = i2(37345), T = i2(47957), y = i2(38297), S = s.getTopic("asyncFlowOperationManager"), A = function(e3) { + return { code: e3.currentOperation.errorCode, entityId: e3.id, details: e3.currentOperation.errorDetails, message: e3.currentOperation.errorMessage, messageParams: e3.currentOperation.errorMessageParams ? e3.currentOperation.errorMessageParams.additionalProperties || e3.currentOperation.errorMessageParams : "" }; + }; + class N extends m.default { + _cleanOperation(e3, t3, i3) { + if (this._removeEventNotifications(t3), t3.operationStillInProgress = false, i3 && i3.isRequestError && (i3 = new _.default(i3, t3)), t3.isValidate && !e3 && (o.default.isString(i3) || (i3 = T.errors.validateFailed), p.validateFlowFailed(t3.flowViewModel, i3)), e3) { + let e4; + t3.logTopic.info("operation completed with success"), e4 = t3.isGetHistory ? t3.firstOperationId : t3.flowViewModel && t3.flowViewModel.isFlowViewModel ? t3.flowViewModel.info._model : t3.flowInfoModel, t3.deferredOperation.resolve(e4); + } else t3.logTopic.info("operation completed with error"), t3.deferredOperation.reject(i3); + } + _emergencyPollProcessing(e3, t3) { + t3.isDelete ? o.default.each(e3.entities, (e4) => { + this._processNotification(t3, e4); + }) : t3.isValidate || t3.isGetHistory || t3.initializeDesignTime ? this._processManifestResults(t3, e3) : this._processNotification(t3, e3); + } + _emergencyPollNetworkCall(e3) { + if (!e3.operationIds) return e3.logTopic.error("No operation id set, can not do emergency polling"), void this._cleanOperation(false, e3); + if (e3.isDelete) { + const t3 = o.default.keys(e3.remainingFlowsInfoViewModels); + return f.getFlows({ id: t3 }); + } + return e3.isPublish || e3.isCheckIn ? f.getFlow(e3.flowId, false) : e3.isValidate || e3.initializeDesignTime ? y.getValidationResults(e3.flowViewModel.id, e3.firstOperationId) : e3.isGetHistory ? f.getHistoryResults(e3.flowId, e3.firstOperationId, 1) : void 0; + } + _getSubscriptionTopic(e3) { + return (0, g.getFlowOperationsTopic)(e3); + } + _loadNewModelDetails(e3, t3) { + try { + t3.flowInfoModel = e3, t3.flowViewModel && (t3.flowViewModel.isFlowInfo ? t3.flowViewModel : t3.flowViewModel.info).loadModel(e3); + const i3 = a.getItem(e3.id); + i3 && (i3.isFlowInfo ? i3 : i3.info).loadModel(e3); + } catch (e4) { + t3.logTopic.exception(e4, "Failed to load new flow model details"); + } + } + _processNotification(e3, t3) { + t3 && t3.currentOperation && !t3.currentOperation.operationId ? t3.currentOperation.actionName !== l.actionName.stateChange && (e3.matchesOperationId(t3.currentOperation.id) ? (e3.loggingCallback && e3.loggingCallback(t3), t3.currentOperation.complete && (e3.isPublish ? this._checkPublishFinished(e3, t3) : e3.isDelete ? this._checkDeleteFinished(e3, t3) : e3.isValidate || e3.initializeDesignTime ? this._checkValidationFinished(e3, t3) : e3.isCheckIn ? this._checkCheckInFinished(e3, t3) : e3.isGetHistory && this._checkGetHistoryFinished(e3, t3))) : e3.logCurrentOperation(t3, "unknown operation id: " + t3.currentOperation.id, false)) : e3.logCurrentOperation(t3, "missing operation id", true); + } + _refreshFlowInfoAndFinish(e3, t3) { + t3.isFlowInfo ? (this._loadNewModelDetails(t3, e3), this._cleanOperation(true, e3)) : f.getFlow(e3.flowId, false).then((t4) => { + this._loadNewModelDetails(t4, e3), this._cleanOperation(true, e3); + }, (t4) => { + e3.logTopic.errorPromise(t4, "_refreshFlowInfoAndFinish getFlow failed"), this._cleanOperation(false, e3); + }); + } + _checkCheckInFinished(e3, t3) { + if (t3.currentOperation.actionStatus === l.actionStatus.success && t3.checkedInVersion) this._refreshFlowInfoAndFinish(e3, t3); + else { + const i3 = A(t3), n3 = new _.default(i3, null); + d.log(e3.logTopic, i3, "Failed Checkin: "), this._cleanOperation(false, e3, n3); + } + } + _checkGetHistoryFinished(e3, t3) { + if (t3 && t3.currentOperation && t3.currentOperation.actionStatus === l.actionStatus.success) this._cleanOperation(true, e3); + else { + const i3 = A(t3); + d.log(e3.logTopic, i3, "Failed History: "), this._cleanOperation(false, e3); + } + } + _checkPublishFinished(e3, t3) { + if (t3.currentOperation.actionStatus === l.actionStatus.success && (e3.isDebugPublish || t3.publishedVersion)) this._refreshFlowInfoAndFinish(e3, t3); + else { + const i3 = A(t3); + d.log(e3.logTopic, i3, "Failed Publish: "), this._cleanOperation(false, e3, i3); + } + } + _checkDeleteFinished(e3, t3) { + if (!e3.remainingFlowsInfoViewModels[t3.id]) return void e3.logTopic.error("Notified about {} again", t3.id); + if (t3 && t3.currentOperation || e3.logTopic.error("Unable to check flow deletion state. No current operation information available."), t3.currentOperation.actionStatus === l.actionStatus.success) a.removeItem(e3.remainingFlowsInfoViewModels[t3.id]); + else { + const i4 = A(t3), n3 = (0, r2.sprintf)("Failed to delete flow {%1$s}", i4.entityId); + d.log(e3.logTopic, i4, n3), e3.errors || (e3.errors = []), e3.errors.push(i4); + } + const i3 = this._getSubscriptionTopic(t3.id); + if (this._removeSingleNotificationTopic(e3, i3), delete e3.remainingFlowsInfoViewModels[t3.id], 0 === o.default.keys(e3.remainingFlowsInfoViewModels).length) { + const t4 = e3.errors && e3.errors.length > 0 ? { response: { errors: e3.errors } } : void 0; + this._cleanOperation(!t4, e3, t4); + } + } + _checkValidationFinished(e3, t3) { + if (t3 && t3.currentOperation && t3.currentOperation.actionStatus === l.actionStatus.success) y.getValidationResults(e3.flowViewModel.id, e3.firstOperationId).then((t4) => { + this._processManifestResults(e3, t4, true); + }).catch((t4) => { + e3.logTopic.exception(t4, "Could not get flow validation results"), this._cleanOperation(false, e3); + }); + else { + const i3 = t3 && t3.currentOperation ? t3.currentOperation.errorMessage : void 0; + this._cleanOperation(false, e3, i3); + } + } + _processManifestResults(e3, t3, i3) { + var n3, r3, a2, s2, d2; + if (!e3.operationStillInProgress || o.default.isFunction(null === (n3 = e3.deferredOperation) || void 0 === n3 ? void 0 : n3.isFulfilled) && e3.deferredOperation.isFulfilled()) e3.logTopic.warning("operation is complete, no need to _processManifestResults again"); + else { + if (t3.actionStatus !== l.actionStatus.success) return i3 && e3.logTopic.error("manifest results not ready yet but we received notification saying it was"), t3.actionStatus === l.actionStatus.failure ? (e3.logTopic.error("manifest results is marked as failed.", t3.errorMessage), void this._cleanOperation(false, e3, t3.errorMessage)) : void 0; + if (!t3.results) return e3.logTopic.error("missing manifest results"), void this._cleanOperation(false, e3); + e3.isGetHistory || (new u.ConfigListManagerSeeder(t3).seedListManagers(), e3.flowViewModel.setReceivedInitialValidationData()), e3.initializeDesignTime && e3.flowViewModel.initializeDesignTime(), e3.isValidate && (p.validateFlow(e3.flowViewModel, e3.initializeDesignTime), e3.flowViewModel.isNluFlow && (null === (r3 = t3.results) || void 0 === r3 ? void 0 : r3.nluDomain) && N._checkNluEngineVersion(e3.flowViewModel, null === (a2 = Object.values(t3.results.nluDomain)) || void 0 === a2 ? void 0 : a2[0])), e3.isValidate && e3.firstValidate && (null === (s2 = e3.flowViewModel.validationResults) || void 0 === s2 ? void 0 : s2.needsRevalidate) ? this._retryAsyncAdsValidationResults(e3) : (e3.isValidate && !e3.firstValidate && (null === (d2 = e3.flowViewModel.validationResults) || void 0 === d2 ? void 0 : d2.needsRevalidate) && e3.logTopic.error("A third validate was triggered, will not be doing it"), this._cleanOperation(true, e3)); + } + } + static _checkNluEngineVersion(e3, t3) { + const i3 = null == t3 ? void 0 : t3.engineVersion; + i3 && (!e3.botFlowSettings.engineVersion || parseFloat(e3.botFlowSettings.engineVersion) < parseFloat(i3)) && e3.updateNluEngineVersion(i3); + } + fallback(e3, t3) { + const i3 = S.withMultipleContext({ flowId: e3.id, opName: l.actionName.publish }); + i3.info("starting fallback publish flow"); + const n3 = this._createPublishOperationInfo(e3.id, void 0, t3, i3); + return e3.checkCanPublish.lacksPermission ? this._permissionErrorHandling(e3, n3, e3.checkCanPublish.noPermissionDisplayString) : (n3.operationToPerform = () => f.publish(e3.id, true), this._performOperation(n3)); + } + _permissionErrorHandling(e3, t3, i3) { + const n3 = { response: {} }; + return n3.response.errors = [], n3.response.errors.push({ entityId: null == e3 ? void 0 : e3.id, errorDisplayString: i3 }), S.errorWithErrorObjectInfo(i3, e3, false), t3.deferredOperation.reject(n3), t3.deferredOperation.promise; + } + checkInFlow(e3, t3) { + const i3 = S.withMultipleContext({ flowId: e3.id, opName: l.actionName.checkin }); + i3.info("starting checkin flow"); + const n3 = new h.default("asyncCheckin", this._getSubscriptionTopic(e3.id), i3, this.stateChangedCheck, this); + n3.flowId = e3.id, n3.flowViewModel = e3.isFlowViewModel ? e3 : null, n3.loggingCallback = t3, n3.isCheckIn = true, n3.operationToPerform = f.checkIn.bind(f, e3.id); + const r3 = e3.isFlowViewModel ? e3.info : e3, o2 = r3.currentUserHasLock ? r3.checkCanEdit : r3.checkCanUnlock; + return o2.lacksPermission ? this._permissionErrorHandling(r3, n3, o2.noPermissionDisplayString) : this._performOperation(n3); + } + postFlowHistoryRequest(e3, t3) { + const i3 = S.withMultipleContext({ flowId: e3, pageNum: t3, opName: l.actionName.history }), n3 = new h.default("AsyncHistoryManager", this._getSubscriptionTopic(e3), i3); + return n3.flowId = e3, n3.operationToPerform = f.postHistoryRequest.bind(f, e3, t3), n3.isGetHistory = true, this._performOperation(n3); + } + _createPublishOperationInfo(e3, t3, i3, n3) { + const r3 = new h.default("asyncPublish", this._getSubscriptionTopic(e3), n3, this.stateChangedCheck, this); + r3.flowId = e3, r3.flowViewModel = t3, r3.loggingCallback = i3, r3.isPublish = true; + let a2 = 30; + try { + if (t3 && (t3.isCallFlowType || t3.isCommonModuleFlow)) { + const e4 = t3.dependencies.getValidationManifest(), i4 = e4.userPrompt && e4.userPrompt.length ? e4.userPrompt.length : 1, r4 = t3.languages.supportedLanguageOptions.length; + a2 = o.default.clamp(i4 * r4, 30, 100), o.default.isActualNumber(a2) || (n3.error(`pollingTimeout is not a number: ${JSON.stringify(a2)}`), a2 = 30); + } + } catch (e4) { + n3.exception(e4, "Caught error when trying to set polling timeout."), a2 = 30; + } + return r3.emergencyPollingTimeout = a2, r3; + } + publishFlow(e3, t3, i3) { + const n3 = S.withMultipleContext({ flowId: e3.id, opName: l.actionName.publish }); + n3.info("starting publish flow"); + const r3 = this._createPublishOperationInfo(e3.id, e3, t3, n3); + return e3.info.checkCanPublish.lacksPermission ? this._permissionErrorHandling(e3.info, r3, e3.info.checkCanPublish.noPermissionDisplayString) : (r3.operationToPerform = () => f.publish(e3.id, i3), this._performOperation(r3)); + } + debugPublishFlow(e3, t3, i3) { + const n3 = S.withMultipleContext({ flowId: e3.id, opName: l.actionName.debugPublish }); + n3.info("starting debug publish flow"); + const r3 = this._createPublishOperationInfo(e3.id, e3, t3, n3); + return r3.isDebugPublish = true, r3.flowViewModel.info.checkCanPublish.lacksPermission ? this._permissionErrorHandling(r3.flowViewModel.info, r3, r3.flowViewModel.info.checkCanPublish.noPermissionDisplayString) : (r3.operationToPerform = () => f.enableFlowDebug(e3.id, i3), this._performOperation(r3)); + } + deleteFlows(e3) { + S.info("starting bulk delete of flows:{}", c.getListOfFlowIds(e3)); + const t3 = o.default.pluck(e3, "id"), i3 = {}, n3 = []; + o.default.each(e3, (e4) => { + const t4 = e4.isFlowViewModel ? e4.info : e4, r4 = t4.checkCanDelete; + r4.lacksPermission ? (S.errorWithErrorObjectInfo("Current user does not have permissions to delete this flow.", t4, false), n3.push({ entityId: t4.id, errorDisplayString: r4.noPermissionDisplayString })) : i3[t4.id] = t4; + }); + const r3 = []; + o.default.each(t3, (e4) => { + r3.push(this._getSubscriptionTopic(e4)); + }); + const a2 = new h.default("asyncDelete", r3, S, this.stateChangedCheck, this); + return a2.remainingFlowsInfoViewModels = i3, a2.isDelete = true, a2.operationToPerform = f.deleteBulkFlows.bind(f, t3), n3.length > 0 ? (a2.deferredOperation.reject({ response: { errors: n3 } }), a2.deferredOperation.promise) : this._performOperation(a2); + } + validateFlow(e3) { + return e3 ? this._getAsyncAdsValidationResults(e3, true, false, e3.topic.withMultipleContext({ opName: l.actionName.validate })) : Promise.reject("flowViewModel:validateFlow - no flow view model specified to validate."); + } + initializeDesignTimeAndValidate(e3) { + return e3 ? this._getAsyncAdsValidationResults(e3, true, true, e3.topic.withMultipleContext({ opName: l.actionName.initializeDesignTime })) : Promise.reject("flowViewModel:initializeDesignTime - no flow view model specified to validate."); + } + _createAsyncAdsValidationResultsOperationInfo(e3, t3, i3, n3) { + const r3 = e3.dependencies.getValidationManifest(); + n3.info("starting flow validation"); + const o2 = e3.isEmbeddedFlow ? void 0 : this.stateChangedCheck, a2 = new h.default("asyncValidate", this._getSubscriptionTopic(e3.id), n3, o2, this); + return a2.flowId = e3.id, a2.isValidate = t3, a2.firstValidate = true, a2.initializeDesignTime = i3, a2.flowViewModel = e3, a2.operationToPerform = y.postValidationManifest.bind(y, e3, r3), a2.emergencyPollingTimeout = 5, a2.retryEmergencyPollOn404 = true, a2; + } + _retryAsyncAdsValidationResults(e3) { + return n2.__awaiter(this, void 0, void 0, function* () { + if (!e3 || !e3.flowViewModel) throw new Error("flowViewModel:validateFlow - no flow view model specified to validate."); + this._clearTimeouts(e3), this._removeEventNotifications(e3), e3.stopEmergencyPolling = true; + try { + yield Promise.all(e3.flowViewModel.validationResults.getRevalidateTriggers()), e3.logTopic.info("starting flow second validation"); + const t3 = this._createAsyncAdsValidationResultsOperationInfo(e3.flowViewModel, e3.isValidate, false, e3.logTopic); + t3.firstValidate = false, yield this._performOperation(t3), this._cleanOperation(true, e3); + } catch (t3) { + e3.logTopic.exception(t3, "failure during _retryAsyncAdsValidationResults"), this._cleanOperation(true, e3); + } + }); + } + _getAsyncAdsValidationResults(e3, t3, i3, n3) { + if (!e3) return Promise.reject("flowViewModel:validateFlow - no flow view model specified to validate."); + const r3 = this._createAsyncAdsValidationResultsOperationInfo(e3, t3, i3, n3); + return this._performOperation(r3); + } + stateChangedCheck(e3, t3) { + t3 && e3.flowId && e3.flowId === t3.flow || (e3.logTopic.info("Switched to a different flow, ending operation"), this._cleanOperation(true, e3)); + } + } + const O = new N(); + t2.default = O; + }, 96946: (e2, t2, i2) => { + const n2 = i2(92140), r2 = i2(57731), o = {}; + function a(e3, t3) { + o[e3] = this, o[t3] = this, a.baseConstructor.apply(this, arguments); + } + r2.extend(a, "PlaybackModePositionInQueue"), a.getInstance = function(e3) { + return o[e3 || 0] || o[0]; + }, a.number = new a(0, "Number"), a.ordinal = new a(1, "Ordinal"), a.ahead = new a(2, "Ahead"), Object.defineProperties(a.prototype, { getConfiguration: { value: function(e3, t3) { + return t3?.isForFlowYaml ? n2.lowercaseFirstLetter(this.name) : this; + } } }), e2.exports = a; + }, 96950: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.botConnectorManager = t2.BotConnectorManager = void 0; + const n2 = i2(31635), r2 = n2.__importDefault(i2(92140)), o = n2.__importStar(i2(80911)), a = n2.__importStar(i2(1360)), s = n2.__importStar(i2(24032)), l = i2(30801), u = i2(99835), d = i2(33143), c = n2.__importDefault(i2(47532)), p = i2(81801), _ = i2(47957), h = i2(75601), m = i2(27862); + class g extends c.default { + get requiredAuth() { + return p.externalAuthorizations.authStrings.botConnectorView; + } + get dependencyType() { + return m.BotConnectorBot; + } + constructor() { + super(), this.topic = s.getTopic("BotConnectorManager"), this._rawServerCache = {}, this.actionPropertyForUsageSearch = "bot", this.actionsForUsageSearch = [l.botConnectorActionType], this.apiCallList = o.getBotConnectorBots, this.apiCallSingle = o.getBotConnectorBot, this.className = "BotConnectorManager", this.defaultMatchingStyle = a.exactMatch, this.dependencyContext = _.botConnector.botName, this.searchField = "name", this.securityError = true, this.suppressSearch = true, this.uiMetadataSectionName = "botConnector", this._initialize(); + } + areServerItemViewModelsEqual(e3, t3) { + return e3 === t3 || r2.default.isEqual(e3, t3); + } + createAndAddBot(e3, t3, i3, n3) { + const r3 = new h({ id: e3, name: t3, botCompositeTag: i3, integrationId: n3 }); + this.addItem(r3); + } + _createItemViewModel(e3) { + return new d.BotConnectorViewModel(e3); + } + get _networkModel() { + return h; + } + _registerWithManifest() { + } + manifestFilter() { + return false; + } + getBotIntegrationForBotCategory(e3) { + if (!r2.default.isString(e3)) return this.topic.error("Object passed to getBotIntegrationForBotCategory was not a string: " + e3), null; + const t3 = this.items[e3.toLowerCase()]; + return t3 ? u.botConnectorIntegrationManager.getItem(t3.integrationId) : null; + } + getItem(e3, t3) { + const i3 = t3, n3 = r2.default.isFunction(null == i3 ? void 0 : i3.getUniqueBotCategoryId) ? i3.getUniqueBotCategoryId() : e3; + return super.getItem(n3); + } + } + t2.BotConnectorManager = g, t2.botConnectorManager = new g(); + }, 97038: (e2, t2, i2) => { + const n2 = i2(70380), { callTaskActionType: r2 } = i2(30801); + function o() { + o.baseConstructor.apply(this, arguments); + } + n2.extend(o, r2, true), e2.exports = o; + }, 97063: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(55299); + class r2 extends n2.BaseClass { + constructor(e3, t3, i3 = false) { + super(), this._featureConfigName = e3, this._featureConfigData = t3, this._isOverride = i3; + } + get isAvailable() { + return this._featureConfigData.isAvailable; + } + get featureConfigName() { + return this._featureConfigName; + } + get isOverride() { + return this._isOverride; + } + get className() { + return "FeatureConfigViewModel"; + } + } + t2.default = r2; + }, 97081: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.IntegrationViewModel = void 0; + const n2 = i2(43212); + class r2 extends n2.BaseConfigurationListViewModel { + constructor(e3) { + super(e3); + } + get className() { + return "IntegrationViewModel"; + } + get id() { + return this._model.id; + } + getConfiguration() { + return this._model; + } + get label() { + return this._model.name || ""; + } + get name() { + return this._model.name; + } + } + t2.IntegrationViewModel = r2; + }, 97086: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importDefault(i2(47563)), o = n2.__importDefault(i2(68268)), a = { ArchActionOutput: r2.default, ArchBranch: o.default }; + t2.default = a; + }, 97111: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.environmentList = void 0; + const n2 = i2(75754); + t2.environmentList = [{ env: n2.environmentEnum.dev, appsV2Env: "dev", host: "apps.inindca.com", region: "us-east-1" }, { env: n2.environmentEnum.dev, appsV2Env: "dev", host: "app-regional.inindca.com", region: "us-east-1" }, { env: n2.environmentEnum.test, appsV2Env: "test", host: "apps.inintca.com", region: "us-east-1" }, { env: n2.environmentEnum.test, appsV2Env: "test", host: "app-regional.inintca.com", region: "us-east-1" }, { env: n2.environmentEnum.prod, appsV2Env: "prod-cac1", host: "apps.cac1.pure.cloud", region: "ca-central-1" }, { env: n2.environmentEnum.prod, appsV2Env: "prod-cac1", host: "app-regional.cac1.pure.cloud", region: "ca-central-1" }, { env: n2.environmentEnum.prod, appsV2Env: "prod-mec1", host: "apps.mec1.pure.cloud", region: "me-central-1" }, { env: n2.environmentEnum.prod, appsV2Env: "prod-mec1", host: "app-regional.mec1.pure.cloud", region: "me-central-1" }, { env: n2.environmentEnum.prod, appsV2Env: "prod", host: "apps.mypurecloud.com", region: "us-east-1" }, { env: n2.environmentEnum.prod, appsV2Env: "prod", host: "app-regional.mypurecloud.com", region: "us-east-1" }, { env: n2.environmentEnum.prod, appsV2Env: "prod-apse1", host: "apps.apse1.pure.cloud", region: "ap-southeast-1" }, { env: n2.environmentEnum.prod, appsV2Env: "prod-apse1", host: "app-regional.apse1.pure.cloud", region: "ap-southeast-1" }, { env: n2.environmentEnum.prod, appsV2Env: "prod-apse2", host: "apps.mypurecloud.com.au", region: "ap-southeast-2" }, { env: n2.environmentEnum.prod, appsV2Env: "prod-apse2", host: "app-regional.mypurecloud.com.au", region: "ap-southeast-2" }, { env: n2.environmentEnum.prod, appsV2Env: "prod-euc1", host: "apps.mypurecloud.de", region: "eu-central-1" }, { env: n2.environmentEnum.prod, appsV2Env: "prod-euc1", host: "app-regional.mypurecloud.de", region: "eu-central-1" }, { env: n2.environmentEnum.prod, appsV2Env: "prod-euc2", host: "apps.euc2.pure.cloud", region: "eu-central-2" }, { env: n2.environmentEnum.prod, appsV2Env: "prod-euc2", host: "app-regional.euc2.pure.cloud", region: "eu-central-2" }, { env: n2.environmentEnum.prod, appsV2Env: "prod-euw1", host: "apps.mypurecloud.ie", region: "eu-west-1" }, { env: n2.environmentEnum.prod, appsV2Env: "prod-euw1", host: "app-regional.mypurecloud.ie", region: "eu-west-1" }, { env: n2.environmentEnum.prod, appsV2Env: "prod-apne1", host: "apps.mypurecloud.jp", region: "ap-northeast-1" }, { env: n2.environmentEnum.prod, appsV2Env: "prod-apne1", host: "app-regional.mypurecloud.jp", region: "ap-northeast-1" }, { env: n2.environmentEnum.prod, appsV2Env: "fedramp-use2-core", host: "apps.use2.us-gov-pure.cloud", region: "us-east-2", isFedRamp: true }, { env: n2.environmentEnum.prod, appsV2Env: "fedramp-use2-core", host: "app-regional.use2.us-gov-pure.cloud", region: "us-east-2", isFedRamp: true }, { env: n2.environmentEnum.prod, appsV2Env: "prod-euw2", host: "apps.euw2.pure.cloud", region: "eu-west-2" }, { env: n2.environmentEnum.prod, appsV2Env: "prod-euw2", host: "app-regional.euw2.pure.cloud", region: "eu-west-2" }, { env: n2.environmentEnum.prod, appsV2Env: "prod-usw2", host: "apps.usw2.pure.cloud", region: "us-west-2" }, { env: n2.environmentEnum.prod, appsV2Env: "prod-usw2", host: "app-regional.usw2.pure.cloud", region: "us-west-2" }, { env: n2.environmentEnum.prod, appsV2Env: "prod-apne2", host: "apps.apne2.pure.cloud", region: "ap-northeast-2" }, { env: n2.environmentEnum.prod, appsV2Env: "prod-apne2", host: "app-regional.apne2.pure.cloud", region: "ap-northeast-2" }, { env: n2.environmentEnum.prod, appsV2Env: "prod-apne3", host: "apps.apne3.pure.cloud", region: "ap-northeast-3" }, { env: n2.environmentEnum.prod, appsV2Env: "prod-apne3", host: "app-regional.apne3.pure.cloud", region: "ap-northeast-3" }, { env: n2.environmentEnum.prod, appsV2Env: "prod-aps1", host: "apps.aps1.pure.cloud", region: "ap-south-1" }, { env: n2.environmentEnum.prod, appsV2Env: "prod-aps1", host: "app-regional.aps1.pure.cloud", region: "ap-south-1" }, { env: n2.environmentEnum.prod, appsV2Env: "prod-mxc1", host: "apps.mxc1.pure.cloud", region: "mx-central-1" }, { env: n2.environmentEnum.prod, appsV2Env: "prod-mxc1", host: "app-regional.mxc1.pure.cloud", region: "mx-central-1" }, { env: n2.environmentEnum.prod, appsV2Env: "prod-sae1", host: "apps.sae1.pure.cloud", region: "sa-east-1" }, { env: n2.environmentEnum.prod, appsV2Env: "prod-sae1", host: "app-regional.sae1.pure.cloud", region: "sa-east-1" }, { env: n2.environmentEnum.prod, appsV2Env: "eusc-edee1", host: "apps.eusc-edee1.pure.cloud", region: "eusc-de-east-1" }, { env: n2.environmentEnum.prod, appsV2Env: "eusc-edee1", host: "app-regional.eusc-edee1.pure.cloud", region: "eusc-de-east-1" }]; + }, 97122: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = i2(26847), o = n2.__importDefault(i2(21345)); + class a extends o.default { + constructor(e3) { + super(e3); + } + get displayTypeName() { + return "ArchBaseActionWithOutputsSuccessFailureCanceled"; + } + get isArchBaseActionWithOutputsSuccessFailureCanceled() { + return true; + } + get outputCanceled() { + return this._getOutputById(r2.outputIds.canceled, true); + } + } + t2.default = a; + }, 97314: function(e2, t2, i2) { + "use strict"; + var n2, r2 = this && this.__extends || (n2 = function(e3, t3) { + return n2 = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(e4, t4) { + e4.__proto__ = t4; + } || function(e4, t4) { + for (var i3 in t4) Object.prototype.hasOwnProperty.call(t4, i3) && (e4[i3] = t4[i3]); + }, n2(e3, t3); + }, function(e3, t3) { + if ("function" != typeof t3 && null !== t3) throw new TypeError("Class extends value " + String(t3) + " is not a constructor or null"); + function i3() { + this.constructor = e3; + } + n2(e3, t3), e3.prototype = null === t3 ? Object.create(t3) : (i3.prototype = t3.prototype, new i3()); + }); + Object.defineProperty(t2, "__esModule", { value: true }), t2.BehaviorSubject = void 0; + var o = (function(e3) { + function t3(t4) { + var i3 = e3.call(this) || this; + return i3._value = t4, i3; + } + return r2(t3, e3), Object.defineProperty(t3.prototype, "value", { get: function() { + return this.getValue(); + }, enumerable: false, configurable: true }), t3.prototype._subscribe = function(t4) { + var i3 = e3.prototype._subscribe.call(this, t4); + return !i3.closed && t4.next(this._value), i3; + }, t3.prototype.getValue = function() { + var e4 = this, t4 = e4.hasError, i3 = e4.thrownError, n3 = e4._value; + if (t4) throw i3; + return this._throwIfClosed(), n3; + }, t3.prototype.next = function(t4) { + e3.prototype.next.call(this, this._value = t4); + }, t3; + })(i2(76808).Subject); + t2.BehaviorSubject = o; + }, 97329: (e2, t2, i2) => { + const n2 = i2(35158), r2 = i2(93852), o = i2(62120), a = i2(20557), s = i2(88715), l = i2(4491); + function u() { + Object.defineProperties(this, { _actionItems: { writable: true }, _dataTypeItems: { writable: true }, _menuItems: { writable: true }, _menuChoiceItems: { writable: true }, _stateItems: { writable: true }, _taskItems: { writable: true } }), u.baseConstructor.apply(this, arguments); + } + i2(45214).extend(u, "ClipboardManifestModel", true), Object.defineProperties(u.prototype, { actionItems: { enumerable: true, get: function() { + return this._actionItems; + }, set: function(e3) { + this._actionItems = this.reviveArray(e3, n2); + } }, dataTypeItems: { enumerable: true, get: function() { + return this._dataTypeItems; + }, set: function(e3) { + this._dataTypeItems = this.reviveArray(e3, r2); + } }, menuItems: { enumerable: true, get: function() { + return this._menuItems; + }, set: function(e3) { + this._menuItems = this.reviveArray(e3, a); + } }, menuChoiceItems: { enumerable: true, get: function() { + return this._menuChoiceItems; + }, set: function(e3) { + this._menuChoiceItems = this.reviveArray(e3, o); + } }, stateItems: { enumerable: true, get: function() { + return this._stateItems; + }, set: function(e3) { + this._stateItems = this.reviveArray(e3, s); + } }, taskItems: { enumerable: true, get: function() { + return this._taskItems; + }, set: function(e3) { + this._taskItems = this.reviveArray(e3, l); + } } }), e2.exports = u; + }, 97354: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(81901)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get displayTypeName() { + return "ArchFilterObject"; + } + get isArchFilterObject() { + return true; + } + } + t2.default = r2; + }, 97361: (e2, t2, i2) => { + const n2 = i2(45214); + class r2 extends n2 { + } + r2.registerObject = function(e3, t3) { + const i3 = "_" + e3; + r2.prototype.hasOwnProperty(e3) || Object.defineProperty(r2.prototype, e3, { get: function() { + return this[i3]; + }, set: function(e4) { + this[i3] = this.reviveArrayToMap(e4, t3); + } }); + }, e2.exports = r2; + }, 97362: (e2) => { + e2.exports = { urlAlphabet: "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict" }; + }, 97400: (e2, t2, i2) => { + "use strict"; + var n2, r2; + Object.defineProperty(t2, "__esModule", { value: true }); + const o = i2(31635), a = o.__importDefault(i2(92140)), s = o.__importStar(i2(24032)), l = o.__importStar(i2(62829)), u = i2(26847), d = o.__importStar(i2(1115)), c = o.__importDefault(i2(41197)), p = i2(36781), _ = i2(58380), h = i2(47957), m = s.getTopic("ActionContainerViewModel"); + class g extends c.default { + constructor(e3, t3) { + super(e3, t3), this.actions = [], this.hasBranchTerminatingWithEndTask = false, this.isHidden = false, this.isTerminating = false, n2.set(this, false), r2.set(this, void 0); + } + get terminatesLoop() { + return o.__classPrivateFieldGet(this, n2, "f"); + } + addAction(e3, t3) { + const i3 = l.createAction(e3, this); + return this._insertAction(i3, t3), this.parentFlow.calcFlowSizeAsync(), p.emitter.emit(p.actionsChanged), i3; + } + addClipboardDependencies(e3) { + a.default.each(this.actions, (t3) => { + t3.addClipboardDependencies(e3); + }); + } + get amObjectEventSink() { + return false; + } + get amObjectEventEmitter() { + return true; + } + get children() { + return this.actions; + } + get containedActionCount() { + if (!this.actions || 0 === this.actions.length) return 0; + let e3 = this.actions.length; + return a.default.each(this.actions, (t3) => { + e3 += t3.containedActionCount; + }), e3; + } + deleteChild(e3) { + e3 && (this._removeAction(e3), e3.isDestroyedOrDestroying || e3.destroy(), p.emitter.emit(p.actionsChanged), this.parentFlow.calcFlowSizeAsync()); + } + destroyChildren() { + a.default.each(a.default.clone(this.children), (e3) => { + this.deleteChild(e3); + }), o.__classPrivateFieldSet(this, r2, null, "f"); + } + getChild(e3) { + if (!e3 || !this.actions) return null; + for (let t3 = 0; t3 < this.actions.length; t3++) { + const i3 = this.actions[t3]; + if (i3.id === e3) return i3; + } + return null; + } + get canCollapse() { + return true; + } + get uiMetaData() { + return this.model.uiMetaData; + } + set uiMetaData(e3) { + this.model.uiMetaData = e3; + } + get collapsed() { + return this.uiMetaData || (this.uiMetaData = { collapsed: false }), this.uiMetaData.collapsed; + } + set collapsed(e3) { + this.uiMetaData ? this.uiMetaData.collapsed = e3 : this.uiMetaData = { collapsed: e3 }, p.emitter.emit(p.collapseExpand, this); + } + collapse(e3) { + return this.expandOrCollapse(true, e3); + } + expand(e3) { + return this.expandOrCollapse(false, e3); + } + expandOrCollapse(e3, t3) { + let i3 = false; + if (this.collapsed !== e3 && (this.collapsed = e3, i3 = true), t3) { + const t4 = this.parent; + t4 && a.default.isFunction(t4.expandOrCollapse) && t4.expandOrCollapse(e3, true) && (i3 = true); + } + return i3; + } + getMainPathActions() { + const e3 = []; + let t3 = this.topAction; + for (; t3; ) e3.push(t3), t3 = t3.nextAction; + return e3; + } + get id() { + return this.model.id; + } + initialize() { + if (!this.topAction) return; + const e3 = this.isTaskLike ? this.getChild.bind(this) : this.topParent.getChild.bind(this.topParent); + let t3 = null, i3 = this.topAction; + for (; i3; ) i3.claim(this), i3.previousAction = t3, i3.nextAction = e3(i3.model.nextAction), this.isTaskLike || this.actions.push(i3), i3.initialize(), this._processActionTermination(i3), t3 = i3, i3 = i3.nextAction; + } + get isActionContainerViewModel() { + return true; + } + get isTopLevelNode() { + return true; + } + get lastAction() { + let e3 = this.topAction; + for (; e3 && e3.nextAction; ) e3 = e3.nextAction; + return e3; + } + moveAction(e3, t3) { + e3.parent._removeAction(e3), e3.resetTermination(), this._insertAction(e3, t3), p.emitter.emit(p.actionsChanged); + } + resetTermination() { + o.__classPrivateFieldSet(this, n2, false, "f"), this.terminatingAction = null, this.isTerminating = false, this.hasBranchTerminatingWithEndTask = false; + } + get terminatingLabel() { + return this.terminatingAction ? this.terminatingAction.terminatingLabel : this.isFake ? h.task.endFlow : void 0; + } + get topAction() { + return o.__classPrivateFieldGet(this, r2, "f"); + } + set topAction(e3) { + o.__classPrivateFieldSet(this, r2, e3, "f"), this._topActionId = o.__classPrivateFieldGet(this, r2, "f") ? o.__classPrivateFieldGet(this, r2, "f").id : void 0; + } + traverse(e3) { + if (!e3 || e3.isCanceled) return; + const t3 = e3.getActionCallback(); + if (!t3) return; + const i3 = e3.createCallbackParam(false); + for (let n3 = this.actions.length - 1; n3 >= 0; n3--) if (t3(this.actions[n3], i3), !e3.processCallbackParamAndContinue(i3)) return; + } + updateTermination(e3) { + let t3 = this.topAction; + const i3 = this.isTerminating, n3 = this.terminatesLoop, r3 = this.hasBranchTerminatingWithEndTask; + this.resetTermination(); + const o2 = []; + for (; t3; ) this._processActionTermination(t3), o2.push(t3), t3 = t3.nextAction; + a.default.each(o2, (e4) => { + a.default.each(e4.branches, (e5) => { + e5.updateTermination(); + }); + }), (e3 || this.isTerminating !== i3 || this.terminatesLoop !== n3 || this.hasBranchTerminatingWithEndTask !== r3) && (this.parent && this.parent.updateTermination && this.parent.updateTermination(), _.fireEvent(this, p.terminatingStateChanged)); + } + _postDestroy() { + super._postDestroy(), this.amObjectEventSink && _.unregisterEventSink(this), this.amObjectEventEmitter && _.removeEventEmitter(this); + } + get _topActionId() { + return this.model.startAction; + } + set _topActionId(e3) { + this.model.startAction = e3; + } + _insertAction(e3, t3) { + if (e3.claim(this), this._pushAction(e3), t3) e3.nextAction = t3.nextAction, t3.nextAction = e3, e3.previousAction = t3, e3.nextAction && (e3.nextAction.previousAction = e3); + else { + const t4 = this.topAction; + e3.nextAction = t4, e3.previousAction = null, t4 && (t4.previousAction = e3), this.topAction = e3; + } + e3.initialize(), this.updateTermination(), this.childAdded(e3); + } + _processActionTermination(e3) { + let t3, i3; + (e3.isEndTask || e3.hasBranchTerminatingWithEndTask) && (this.hasBranchTerminatingWithEndTask = true), this.terminatingAction || this.terminatesLoop && e3.getParentingFlowElementByIdOrNodeInfoId([u.outputIds.loop, u.outputIds.loopNext]) ? (t3 = true, i3 = false) : (e3.terminatesTaskOrFlow && (this.terminatingAction = e3, this.isTerminating = true), e3.terminatesLoop && o.__classPrivateFieldSet(this, n2, true, "f"), t3 = this.isDisabled, i3 = this.outOfService), e3.isDisabled === t3 && e3.isContainerOutOfService === i3 || (e3.isDisabled = t3, e3.isContainerOutOfService = i3, e3.initializeDesignTimeCalled && d.validateAction(e3, false, true)); + } + _pushAction(e3) { + a.default.findWhere(this.actions, { id: e3.id }) ? m.errorWithErrorObjectInfo("Tried to double add action.", e3, false) : this.actions.push(e3); + } + _removeAction(e3) { + if (!this._spliceAction(e3)) return; + if (e3.isOrphan) return; + const t3 = e3.previousAction, i3 = e3.nextAction; + t3 ? (t3.nextAction = i3, i3 && (i3.previousAction = t3)) : i3 ? (this.topAction = i3, i3.previousAction = null) : this.topAction = null, this.updateTermination(), this.childRemoved(e3); + } + _spliceAction(e3) { + const t3 = this.actions.indexOf(e3); + return t3 >= 0 && (this.actions.splice(t3, 1), true); + } + } + n2 = /* @__PURE__ */ new WeakMap(), r2 = /* @__PURE__ */ new WeakMap(), t2.default = g; + }, 97505: (e2, t2, i2) => { + "use strict"; + const n2 = i2(31635), r2 = i2(12179), o = n2.__importDefault(i2(5730)), a = n2.__importDefault(i2(27203)), s = n2.__importDefault(i2(73198)), l = n2.__importDefault(i2(97891)), u = i2(79467), d = i2(91546), c = i2(80428), p = i2(47957), _ = "maxSnippetTime", h = "snippet"; + class m extends o.default { + static get managedProperties() { + return [{ label: p.collectVoiceSnippet.maxVoiceSnippetTimeLabel, options: u.ExpressionTypeDurationOptions.create((e3) => e3.setIninTestingField(_).setScriptingPropertyName(_).setAllowFlowLevelDefault(true).setDefaultText(s.default.litDurationThirtySeconds).setModeNoValueSelectionLabel(p.expression.noValue.selection.default).setAllowModeLiteralOnly().setDescriptionInfo(p.collectVoiceSnippet.maxVoiceSnippetTimeLabel, p.collectVoiceSnippet.maxVoiceSnippetTimeDescription).facets.setMinDur(1 * s.default.msPerSecond, true).setMaxDur(1 * s.default.msPerMinute, true)), property: _, type: c.expressionTypeNames.duration }, { label: p.collectVoiceSnippet.voiceSnippetLabel, options: d.ExpressionTypeVoiceSnippetOptions.create((e3) => e3.setIninTestingField(h).setScriptingPropertyName(h).setAsOutput().setIsOptional(true).setDescriptionInfo(p.collectVoiceSnippet.voiceSnippetLabel, p.collectVoiceSnippet.voiceSnippetDescription)), property: h, type: c.expressionTypeNames.voiceSnippet }]; + } + constructor(e3, t3) { + super(e3.parentFlow, e3), this._loadModel(t3); + } + static get branchInfo() { + return a.default.successNoInputFailure; + } + } + m.info = l.default.createActionInfo({ actionClass: m, canBeInTask: true, helpTopic: r2.helpTopics.actions.collectVoiceSnippet, modelClass: i2(92372), name: p.actions.collectVoiceSnippet, scriptingName: "ArchActionCollectVoiceSnippet" }), t2.A = m; + }, 97534: (e2, t2, i2) => { + const n2 = i2(28730), { clearPostFlowActionType: r2 } = i2(30801), o = i2(7401); + function a() { + Object.defineProperties(this, { _target: { writable: true } }), a.baseConstructor.apply(this, arguments); + } + n2.extend(a, r2, true), Object.defineProperties(a.prototype, { pasteResolveOldToNewValues: { value: function(e3) { + a._super.pasteResolveOldToNewValues.apply(this, arguments), this.target.pasteResolveOldToNewValues(e3); + } }, pasteReIdOrRename: { value: function(e3) { + a._super.pasteReIdOrRename.apply(this, arguments), this.target.pasteReIdOrRename(e3); + } }, target: { enumerable: true, get: function() { + return this._target; + }, set: function(e3) { + this._target = this.reviveItem(e3, o); + } } }), e2.exports = a; + }, 97549: (e2, t2, i2) => { + var n2 = { "./cs-cz/countries.js": [52961, 2961], "./de-de/countries.js": [99708, 9708], "./en-us/countries.js": [79411], "./es-us/countries.js": [15302, 5302], "./fr-ca/countries.js": [83242, 3242], "./it-it/countries.js": [40652, 652], "./ja-jp/countries.js": [19675, 9675], "./ko-kr/countries.js": [64893, 4893], "./nb-no/countries.js": [66497, 6497], "./nl-nl/countries.js": [46074, 6074], "./pl-pl/countries.js": [63926, 3926], "./pt-br/countries.js": [50550, 550], "./ru-ru/countries.js": [95832, 5832], "./sv-se/countries.js": [10341, 341], "./tr-tr/countries.js": [62806, 2806], "./zh-cn/countries.js": [1657, 1657], "./zh-tw/countries.js": [43057, 3057] }; + function r2(e3) { + if (!i2.o(n2, e3)) return Promise.resolve().then(() => { + var t4 = new Error("Cannot find module '" + e3 + "'"); + throw t4.code = "MODULE_NOT_FOUND", t4; + }); + var t3 = n2[e3], r3 = t3[0]; + return Promise.all(t3.slice(1).map(i2.e)).then(() => i2(r3)); + } + r2.keys = () => Object.keys(n2), r2.id = 97549, e2.exports = r2; + }, 97591: (e2, t2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.systemUser = t2.starDivision = t2.defaultVoicemailFlowId = t2.defaultInQueueFlowId = void 0, t2.defaultInQueueFlowId = "037f2416-0bfc-4172-afe1-18a8989cae7e", t2.defaultVoicemailFlowId = "de4c63f0-0be1-11ec-9a03-0242ac130003", t2.starDivision = "*", t2.systemUser = "__system__"; + }, 97629: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.imageManager = t2.ImageManager = void 0; + const n2 = i2(31635), r2 = n2.__importStar(i2(1360)), o = n2.__importStar(i2(90891)), a = n2.__importStar(i2(24032)), s = n2.__importDefault(i2(47532)), l = i2(81801), u = n2.__importDefault(i2(64836)), d = i2(47957), c = i2(27862); + class p extends s.default { + get requiredAuth() { + return l.externalAuthorizations.authStrings.responseAssetView; + } + get dependencyType() { + return c.Image; + } + constructor() { + super(), this.topic = a.getTopic("ImageManager"), this.apiCallList = o.getImageResponseAssets, this.apiCallSingle = o.getResponseAsset, this._rawServerCache = {}, this.className = "ImageManager", this.defaultMatchingStyle = r2.startsWith, this.dependencyContext = d.image.image, this.securityError = true, this.suppressSearch = false, this.uiMetadataSectionName = "images", this.useStartsWithKeywordForExactMatch = true, this.actionsForUsageSearch = [], this.actionPropertyForUsageSearch = "", this._initialize(); + } + _createItemViewModel(e3) { + return new u.default(e3); + } + } + t2.ImageManager = p, t2.imageManager = new p(); + }, 97643: (e2, t2, i2) => { + "use strict"; + const n2 = i2(31635), r2 = i2(96618), o = i2(17466), a = i2(55720), s = n2.__importDefault(i2(27203)), l = i2(12179), u = n2.__importDefault(i2(97891)), d = n2.__importDefault(i2(5730)), c = i2(80428), p = i2(47957); + class _ extends d.default { + static get managedProperties() { + return [{ label: p.setSkills.setACDSkillsLabel, options: a.ExpressionTypeSkillOptions.create((e3) => e3.setAsInput().setIsOptional(true).setDefaultToExpression(true).setDoNotTransitionToNoValue(true).setDefaultText("{{variable.__CONVERSATION_ACD_SKILLS__}}").setIsCollection(true).setMaxItems(32).setDescriptionInfo(p.setSkills.setACDSkillsLabel, p.setSkills.setACDSkillsDescription).setIninTestingField("acdSkills")).setModeNoValueRuntimeEvaluationStr(p.setSkills.noValueACDSkills), optionsForSpecificFlowTypes: [{ flowTypes: [r2.flowTypes.flowTypeWorkitem], options: a.ExpressionTypeSkillOptions.create((e3) => e3.setAsInput().setIsOptional(true).setDefaultToExpression(true).setDoNotTransitionToNoValue(true).setDefaultText("Workitem.Workitem.skills").setIsCollection(true).setMaxItems(32).setDescriptionInfo(p.setSkills.setACDSkillsLabel, p.setSkills.setACDSkillsDescriptionWorkitemFlow).setIninTestingField("acdSkills")).setModeNoValueRuntimeEvaluationStr(p.setSkills.noValueACDSkills) }], property: "acdSkills", type: c.expressionTypeNames.skill }, { label: p.setSkills.setLanguageSkillLabel, options: o.ExpressionTypeLanguageSkillOptions.create((e3) => e3.setAsInput().setIsOptional(true).setDefaultToExpression(true).setDoNotTransitionToNoValue(true).setDefaultText("{{variable.__CONVERSATION_LANGUAGE_SKILL__}}").setDescriptionInfo(p.setSkills.setLanguageSkillLabel, p.setSkills.setLanguageSkillDescription).setIninTestingField("languageSkill").setModeNoValueRuntimeEvaluationStr(p.setSkills.noValueLanagugeSkill)), optionsForSpecificFlowTypes: [{ flowTypes: [r2.flowTypes.flowTypeWorkitem], options: o.ExpressionTypeLanguageSkillOptions.create((e3) => e3.setAsInput().setIsOptional(true).setDefaultToExpression(true).setDoNotTransitionToNoValue(true).setDefaultText("Workitem.Workitem.languageSkill").setDescriptionInfo(p.setSkills.setLanguageSkillLabel, p.setSkills.setLanguageSkillDescriptionWorkitemFlow).setIninTestingField("languageSkill").setModeNoValueRuntimeEvaluationStr(p.setSkills.noValueLanagugeSkill)) }], property: "languageSkill", type: c.expressionTypeNames.languageSkill }]; + } + constructor(e3, t3) { + super(e3.parentFlow, e3), this._loadModel(t3); + } + static get branchInfo() { + return s.default.successFailure; + } + } + _.info = u.default.createActionInfo({ actionClass: _, canBeInTask: true, helpTopic: l.helpTopics.actions.setSkills, modelClass: i2(92825), name: p.actions.setSkills, scriptingName: "ArchActionSetSkills" }), t2.A = _; + }, 97650: function(e2, t2, i2) { + !(function(e3) { + "use strict"; + var t3 = "ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"), i3 = "ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"), n2 = [/^ene/i, /^feb/i, /^mar/i, /^abr/i, /^may/i, /^jun/i, /^jul/i, /^ago/i, /^sep/i, /^oct/i, /^nov/i, /^dic/i], r2 = /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i; + e3.defineLocale("es", { months: "enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"), monthsShort: function(e4, n3) { + return e4 ? /-MMM-/.test(n3) ? i3[e4.month()] : t3[e4.month()] : t3; + }, monthsRegex: r2, monthsShortRegex: r2, monthsStrictRegex: /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i, monthsShortStrictRegex: /^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i, monthsParse: n2, longMonthsParse: n2, shortMonthsParse: n2, weekdays: "domingo_lunes_martes_mi\xE9rcoles_jueves_viernes_s\xE1bado".split("_"), weekdaysShort: "dom._lun._mar._mi\xE9._jue._vie._s\xE1b.".split("_"), weekdaysMin: "do_lu_ma_mi_ju_vi_s\xE1".split("_"), weekdaysParseExact: true, longDateFormat: { LT: "H:mm", LTS: "H:mm:ss", L: "DD/MM/YYYY", LL: "D [de] MMMM [de] YYYY", LLL: "D [de] MMMM [de] YYYY H:mm", LLLL: "dddd, D [de] MMMM [de] YYYY H:mm" }, calendar: { sameDay: function() { + return "[hoy a la" + (1 !== this.hours() ? "s" : "") + "] LT"; + }, nextDay: function() { + return "[ma\xF1ana a la" + (1 !== this.hours() ? "s" : "") + "] LT"; + }, nextWeek: function() { + return "dddd [a la" + (1 !== this.hours() ? "s" : "") + "] LT"; + }, lastDay: function() { + return "[ayer a la" + (1 !== this.hours() ? "s" : "") + "] LT"; + }, lastWeek: function() { + return "[el] dddd [pasado a la" + (1 !== this.hours() ? "s" : "") + "] LT"; + }, sameElse: "L" }, relativeTime: { future: "en %s", past: "hace %s", s: "unos segundos", ss: "%d segundos", m: "un minuto", mm: "%d minutos", h: "una hora", hh: "%d horas", d: "un d\xEDa", dd: "%d d\xEDas", w: "una semana", ww: "%d semanas", M: "un mes", MM: "%d meses", y: "un a\xF1o", yy: "%d a\xF1os" }, dayOfMonthOrdinalParse: /\d{1,2}º/, ordinal: "%d\xBA", week: { dow: 1, doy: 4 }, invalidDate: "Fecha inv\xE1lida" }); + })(i2(95093)); + }, 97675: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = i2(96618), o = i2(17604), a = i2(80428), s = n2.__importDefault(i2(37752)), l = n2.__importDefault(i2(15244)), u = i2(81516), d = n2.__importStar(i2(53128)), c = i2(82632), p = i2(12179), _ = i2(10016), h = i2(47957); + class m extends _.BaseEventHandlingViewModel { + constructor(e3) { + super(e3, s.default); + } + get className() { + return "EmailSendErrorHandlingViewModel"; + } + get helpTopic() { + return p.helpTopics.treeNodes.eventHandling; + } + get handlingTypes() { + return d.getHandlingTypesForFlowType(this.parentFlow.type); + } + get isEmailErrorHandlingNode() { + return true; + } + get handlingType() { + return super.handlingType; + } + set handlingType(e3) { + super.handlingType = e3, this._updateOutOfService(); + } + initializeDesignTime() { + super.initializeDesignTime(), this._updateOutOfService(); + } + static get managedProperties() { + return [{ label: h.actions.abortSendErrorEventMessageSettingLabel, options: u.ExpressionTypeStringOptions.create((e3) => e3.setAsInput().setDescriptionInfo(h.actions.abortSendErrorEventMessageSettingLabel, h.actions.abortSendActionMessageSettingDescription).setIninTestingField("abortSendMessage").setDefaultToNoValue(false).setIsOptional(false).setUiPropertyOrder(1).facets.setMinLength(0).setMaxLength(c.abortSend.message.maxLength).setTruncatesToMaxLength(true)), property: "abortMessage", supportedFlowTypes: [r2.flowTypes.flowTypeEmailSend], type: a.expressionTypeNames.string }]; + } + validate(e3) { + var t3, i3, n3, r3; + super.validate(e3), this.handlingType && !(null === (t3 = this.parentFlow.definition) || void 0 === t3 ? void 0 : t3.errorHandlingTypesMap[this.handlingType.value]) && e3.addError(this, (0, o.sprintf)(h.customNodes.errorHandling.errorHandlingTypeNotAvailableForFlowType, null === (i3 = this.handlingType) || void 0 === i3 ? void 0 : i3.label, null === (r3 = null === (n3 = this.parentFlow) || void 0 === n3 ? void 0 : n3.definition) || void 0 === r3 ? void 0 : r3.typeDisplayName)); + } + _updateOutOfService() { + this.abortMessage.outOfService = this.handlingType !== l.default.AbortSend; + } + } + t2.default = m; + }, 97678: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.FindQueueActionModel = void 0; + const n2 = i2(49574), r2 = i2(30801); + class o extends n2.BaseFindSystemObjectByNameActionModel { + constructor(e3) { + super(e3), this.__type = o.__type; + } + } + t2.FindQueueActionModel = o, o.__type = r2.findQueueActionType, o.registerType(); + }, 97720: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(8471)); + class r2 extends n2.default { + get version() { + return "0.66.1"; + } + get isArchScriptingInfo() { + return true; + } + get displayTypeName() { + return "ArchScriptingInfo"; + } + get logStr() { + const e3 = []; + return this.version && super._appendLogStrVersion(e3, this.version), super._appendLogStrType(e3, r2.displayTypeName), super._createLogStrFromParts(e3); + } + } + t2.default = new r2(); + }, 97773: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(84655)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "duration"; + } + get displayTypeName() { + return "ArchVariableDuration"; + } + get initialValue() { + return this._initialValue; + } + get isArchVariableDuration() { + return true; + } + } + t2.default = r2; + }, 97783: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.skipUntil = void 0; + var n2 = i2(65212), r2 = i2(17214), o = i2(19724), a = i2(5717); + t2.skipUntil = function(e3) { + return n2.operate(function(t3, i3) { + var n3 = false, s = r2.createOperatorSubscriber(i3, function() { + null == s || s.unsubscribe(), n3 = true; + }, a.noop); + o.innerFrom(e3).subscribe(s), t3.subscribe(r2.createOperatorSubscriber(i3, function(e4) { + return n3 && i3.next(e4); + })); + }); + }; + }, 97834: (e2, t2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.RequestError = void 0; + class i2 extends Error { + constructor(e3, t3, i3, n2, r2) { + var o, a; + super(), this._response = e3, this._status = t3, this._statusText = i3, this._handled = n2, this._headers = r2, this.isRequestError = true, this.isAborted = false, this.name = this.statusText || "Request Error", this.status && (this.name += ` (${this._status})`), (null === (o = this._response) || void 0 === o ? void 0 : o.code) && (this._code = this._response.code), (null === (a = this._response) || void 0 === a ? void 0 : a.message) && (this.message = this._response.message, this.code && (this.message += ` (${this.code})`)); + } + get response() { + return this._response; + } + set response(e3) { + this._response = e3; + } + get status() { + return this._status; + } + set status(e3) { + this._status = e3; + } + get statusText() { + return this._statusText; + } + set statusText(e3) { + this._statusText = e3; + } + get handled() { + return this._handled; + } + set handled(e3) { + this._handled = e3; + } + get headers() { + return this._headers; + } + set headers(e3) { + this._headers = e3; + } + get code() { + return this._code; + } + set code(e3) { + this._code = e3; + } + } + t2.RequestError = i2; + }, 97847: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(67336)); + class r2 extends n2.default { + constructor(e3) { + super(e3), this._coreChoice = e3; + } + get displayTypeName() { + return "ArchChoice"; + } + get logStr() { + return this.logStrTypeOnly; + } + get name() { + return this._coreChoice.name; + } + get enabled() { + return this._coreChoice.isEnabled; + } + set enabled(e3) { + const t3 = this._infoPropSet("index", "enabled"); + this._checkItemIsValidLiteralBool(t3, e3, false), this._coreChoice.isEnabled = e3; + } + get isArchChoice() { + return true; + } + get label() { + return this.coreFactory.createArchWrapper(this._coreChoice.label); + } + } + t2.default = r2; + }, 97883: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = i2(96618), o = i2(28562), a = n2.__importDefault(i2(73198)), s = n2.__importStar(i2(63824)), l = i2(80428), u = i2(67607), d = i2(82319), c = i2(79467), p = n2.__importStar(i2(85020)), _ = n2.__importDefault(i2(5730)), h = i2(47957); + class m extends _.default { + static get managedProperties() { + return [{ label: h.askCommon.noInput, options: m.createNoInputOptions().setDefaultToBuilderId(o.builderIds.parts.genericCommunication), supportedFlowTypes: [r2.flowTypes.flowTypeBot, r2.flowTypes.flowTypeVoiceSurvey], yamlOptions: m.createYamlOptions("noInput", (e3) => e3.setPropertyName("noInput")), property: "noInput", type: l.expressionTypeNames.communication }, { label: h.askCommon.noInputReprompts, options: d.ExpressionTypeCommunicationOptions.create((e3) => e3.setAllowSecure(true).setIninTestingField("noInputReprompts").setDescriptionInfo(h.askCommon.noInputReprompts, h.askCommon.noInputRepromptsDescription).setIsOptional(true).setRequiredFlowChannelType(p.channelTypeCall).setUiPropertyGroup(h.askCommon.invalidResponse).setScriptingPropertyName("noInputReprompts").setIsCollection(true).setAllowModeLiteral(true).setMaxItems(10).setDoNotTransitionToNoValue(true).setUiPropertyOrder(21), true).setDefaultToBuilderId(o.builderIds.parts.genericCommunication), supportedFlowTypes: [r2.flowTypes.flowTypeBot, r2.flowTypes.flowTypeVoiceSurvey], yamlOptions: m.createYamlOptions("noInputReprompts", (e3) => e3.setPropertyName("noInputReprompts").setWrappedObjectName("customizeNoInput")), property: "noInputReprompts", type: l.expressionTypeNames.communication }, { options: u.ExpressionTypeBooleanOptions.create((e3) => e3.setUseButton(true).setAllowModeLiteralOnly().setDefaultText("false").setIninTestingField("customizeNoInputButton").setBoolText(h.askCommon.defaultNoInput, h.askCommon.customizeNoInput).setUiPropertyGroup(h.askCommon.invalidResponse).setUiPropertyOrder(22)), supportedFlowTypes: [r2.flowTypes.flowTypeBot, r2.flowTypes.flowTypeVoiceSurvey], yamlOptions: m.createYamlOptions("customizeNoInput", (e3) => e3.setSkipProperty(true)), property: "customizeNoInput", type: l.expressionTypeNames.boolean }, { label: h.askCommon.noMatch, options: m.createNoMatchOptions().setDefaultToBuilderId(o.builderIds.parts.genericCommunication).setUiPropertyGroup(h.askCommon.invalidResponse), optionsForSpecificFlowTypes: [{ flowTypes: [r2.flowTypes.flowTypeDigitalBot], options: m.createNoMatchOptions().setDefaultToBuilderId(o.builderIds.parts.markdownCommunication).setUiPropertyGroup(h.askCommon.invalidResponse) }], yamlOptions: m.createYamlOptions("noMatch", (e3) => e3.setPropertyName("noMatch")), property: "noMatch", type: l.expressionTypeNames.communication }, { label: h.askCommon.noMatchReprompts, options: m.createNoMatchRepromptsOptions().setDefaultToBuilderId(o.builderIds.parts.genericCommunication).setUiPropertyGroup(h.askCommon.invalidResponse), optionsForSpecificFlowTypes: [{ flowTypes: [r2.flowTypes.flowTypeDigitalBot], options: m.createNoMatchRepromptsOptions().setDefaultToBuilderId(o.builderIds.parts.markdownCommunication).setUiPropertyGroup(h.askCommon.invalidResponse) }], yamlOptions: m.createYamlOptions("noMatchReprompts", (e3) => e3.setPropertyName("noMatchReprompts").setWrappedObjectName("customizeNoMatch")), property: "noMatchReprompts", type: l.expressionTypeNames.communication }, { options: u.ExpressionTypeBooleanOptions.create((e3) => e3.setUseButton(true).setAllowModeLiteralOnly().setDefaultText("false").setIninTestingField("customizeNoMatchButton").setBoolText(h.askCommon.defaultNoMatch, h.askCommon.customizeNoMatch).setUiPropertyGroup(h.askCommon.invalidResponse).setUiPropertyOrder(25)), yamlOptions: m.createYamlOptions("customizeNoMatch", (e3) => e3.setSkipProperty(true)), property: "customizeNoMatch", type: l.expressionTypeNames.boolean }, { label: h.askCommon.voiceEndOfInputTimeout, options: c.ExpressionTypeDurationOptions.create((e3) => e3.setAllowSecure(true).setRequiredFlowChannelType(p.channelTypeCall).setIninTestingField("voiceEndOfInputTimeout").setDescriptionInfo(h.askCommon.voiceEndOfInputTimeout, h.askCommon.voiceEndOfInputTimeoutDescriptionAskActions).setDefaultText(a.default.litDurationOneSecond).setAllowFlowLevelDefault(true).setFlowLevelDefaultSameModes(true).setUiPropertyOrder(19).setUiPropertyGroup(h.speechToText.recognitionParams.speechRecognitionParameters).setScriptingPropertyName("voiceEndOfInputTimeout").setDurationStyle(s.durationStyles.secondsAndTenthsDuration).facets.setMinDur(100, true).setMaxDur(10 * a.default.msPerSecond, true)), property: "voiceEndOfInputTimeout", type: l.expressionTypeNames.duration }]; + } + constructor(e3) { + super(e3.parentFlow, e3); + } + setNewInstanceDefaults(e3) { + var t3, i3; + super.setNewInstanceDefaults(e3), null === (t3 = this.noInput.builder) || void 0 === t3 || t3.deleteAllParts(), null === (i3 = this.noMatch.builder) || void 0 === i3 || i3.deleteAllParts(); + } + initializeDesignTime() { + super.initializeDesignTime(), this._updatePropertiesOOS(); + } + setNewInstanceNoInputText(e3) { + return this.noInput.setCommunicationBuilderText(e3); + } + setNewInstanceNoMatchText(e3) { + return this.noMatch.setCommunicationBuilderText(e3); + } + getConfiguration(e3, t3) { + const i3 = super.getConfiguration(e3, t3); + return this.parentFlow.isDigitalBotFlow && (i3.noInputReprompts = void 0, i3.noInputs = void 0), i3; + } + _updatePropertiesOOS() { + this.noInput.outOfService = this._isNoInputOOS(), this.noInputReprompts.outOfService = this._isNoInputRepromptsOOS(), this.noMatch.outOfService = this._isNoMatchOOS(), this.noMatchReprompts.outOfService = this._isNoMatchRepromptsOOS(); + } + _isNoInputOOS() { + return this.customizeNoInput.model.text === a.default.true; + } + _isNoInputRepromptsOOS() { + return this.customizeNoInput.model.text !== a.default.true; + } + _isNoMatchOOS() { + return this.customizeNoMatch.model.text === a.default.true; + } + _isNoMatchRepromptsOOS() { + return this.customizeNoMatch.model.text !== a.default.true; + } + propertyChanged(e3) { + var t3, i3; + super.propertyChanged(e3), !e3.propertyName || e3.propertyName !== (null === (t3 = this.customizeNoInput) || void 0 === t3 ? void 0 : t3.propertyName) && e3.propertyName !== (null === (i3 = this.customizeNoMatch) || void 0 === i3 ? void 0 : i3.propertyName) || this._updatePropertiesOOS(); + } + static createNoInputOptions() { + return d.ExpressionTypeCommunicationOptions.create((e3) => e3.setAllowSecure(true).setIninTestingField("noInput").setDescriptionInfo(h.askCommon.noInput, h.askCommon.noInputDescription).setIsOptional(true).setDefaultToNoValue(true).setDoNotTransitionToNoValue(false).setRequiredFlowChannelType(p.channelTypeCall).setUiPropertyGroup(h.askCommon.invalidResponse).setScriptingPropertyName("noInput").setUiPropertyOrder(20)); + } + static createNoMatchOptions() { + return d.ExpressionTypeCommunicationOptions.create((e3) => e3.setAllowSecure(true).setIninTestingField("noMatch").setIsOptional(true).setDefaultToNoValue(true).setDoNotTransitionToNoValue(false).setDescriptionInfo(h.askCommon.noMatch, h.askCommon.noMatchDescription).setScriptingPropertyName("noMatch").setUiPropertyGroup(h.askCommon.invalidResponse).setUiPropertyOrder(23)); + } + static createNoMatchRepromptsOptions() { + return d.ExpressionTypeCommunicationOptions.create((e3) => e3.setAllowSecure(true).setIninTestingField("noMatchReprompts").setDescriptionInfo(h.askCommon.noMatchReprompts, h.askCommon.noMatchRepromptsDescription).setIsOptional(true).setRequiredFlowChannelType(p.channelTypeCall).setUiPropertyGroup(h.askCommon.invalidResponse).setScriptingPropertyName("noMatchReprompts").setIsCollection(true).setAllowModeLiteral(true).setMaxItems(10).setDoNotTransitionToNoValue(true).setUiPropertyOrder(24), true); + } + } + t2.default = m, m.className = "BaseActionNoInputNoMatchViewModel"; + }, 97891: (e2, t2, i2) => { + "use strict"; + var n2, r2; + Object.defineProperty(t2, "__esModule", { value: true }), t2.hasNodeInformation = function(e3) { + var t3; + return null === (t3 = null == e3 ? void 0 : e3.info) || void 0 === t3 ? void 0 : t3.isNodeInformation; + }; + const o = i2(31635), a = i2(96618), s = o.__importDefault(i2(92140)), l = o.__importStar(i2(24032)), u = o.__importDefault(i2(90178)), d = o.__importStar(i2(12847)), c = o.__importStar(i2(62829)), p = i2(55909), _ = i2(33951), h = i2(24383), m = "NodeInformation", g = l.getTopic("NodeInformation"); + class f { + static create(e3, t3, i3, n3) { + return new f(e3, t3, i3, n3); + } + static createReusableNodeInfo(e3) { + const t3 = "createReusableNodeInfo", i3 = _.ParameterValidator.expectActionType(e3.actionType, () => p.ParameterInfo.createFunctionParameter(m, t3, "actionType")), n3 = new f(i3, false, true, (e4, t4, i4) => t4.parentFlow.definition.supportsReusableMenus); + return e3.needsServerInfo && (n3.needsServerInfo = _.ParameterValidator.expectBool(e3.needsServerInfo, () => p.ParameterInfo.createFunctionParameter(m, t3, "needsServerInfo"))), n3.name = _.ParameterValidator.expectString(e3.name, () => p.ParameterInfo.createFunctionParameter(m, t3, "name")), n3.helpTopic = e3.helpTopic, n3.setActionClass(_.ParameterValidator.expectFunction(e3.actionClass, () => p.ParameterInfo.createFunctionParameter(m, t3, "actionClass"))), e3.supportedFlowTypes && (n3.supportedFlowTypes = e3.supportedFlowTypes), e3.categoryId && n3.setActionCategoryInfo({ categoryId: _.ParameterValidator.expectString(e3.categoryId, () => p.ParameterInfo.createFunctionParameter(m, t3, "categoryId")), displayIndex: -1 }), c.registerReusableObject(n3), n3; + } + static createActionInfo(e3) { + const { canBeInTask: t3 = false, canBeTreeNode: i3 = false, helpTopic: n3, name: r3, actionClass: o2, modelClass: a2, termination: s2, terminationInfoForFlowTypes: l2, scriptingName: u2, supportsUtteranceHistoricalData: d2 = false, supportedSessionSources: h2, availabilityCallback: g2, actionIsAlwaysSecure: T = false } = e3, y = "createActionInfo"; + _.ParameterValidator.expectFunction(a2, () => p.ParameterInfo.createFunctionParameter(m, y, "modelClass")); + const S = new f(_.ParameterValidator.expectActionType(a2.__type, () => p.ParameterInfo.createFunctionParameter(m, y, "modelClass.__type")), _.ParameterValidator.expectBool(t3, () => p.ParameterInfo.createFunctionParameter(m, y, "canBeInTask")), _.ParameterValidator.expectBool(i3, () => p.ParameterInfo.createFunctionParameter(m, y, "canBeTreeNode")), g2); + return S.modelClass = a2, S.helpTopic = n3, S.name = _.ParameterValidator.expectString(r3, () => p.ParameterInfo.createFunctionParameter(m, y, "name")), S.needsServerInfo = true, S.scriptingName = u2, S.actionIsAlwaysSecure = T, S.setActionClass(_.ParameterValidator.expectFunction(o2, () => p.ParameterInfo.createFunctionParameter(m, y, "actionClass"))), s2 && (_.ParameterValidator.expectBool(s2.isTerminationInfo, () => p.ParameterInfo.createFunctionParameter(m, y, "termination")), S.setTermination(s2)), l2 && l2.forEach((e4) => S.setTerminationForFlowTypes(e4.flowTypes, e4.terminationInfo)), S.supportsUtteranceHistoricalData = _.ParameterValidator.expectBool(d2, () => p.ParameterInfo.createFunctionParameter(m, y, "supportsUtteranceHistoricalData"), true), S.supportedSessionSources = h2, c.registerAction(S), S; + } + constructor(e3, t3, i3, o2) { + this._terminationInfos = {}, this.className = m, this.bootStrapInfoProcessed = false, n2.set(this, false), r2.set(this, a.flowTypes.flowTypesAll), this.availabilityCallback = o2, this.canBeInTask = t3 || false, this.canBeTreeNode = i3 || false, this.helpTopic = void 0, this.name = "", this.requirements = { products: null }, this.typeId = e3, this.traceTopic = g.withContext("id", e3); + } + get category() { + return this.actionCategory; + } + get categoryId() { + return this.actionCategory ? this.actionCategory.id : ""; + } + get deprecatedFlowTypes() { + return this._deprecatedFlowTypes; + } + set deprecatedFlowTypes(e3) { + this.needsServerInfo && this.traceTopic.error("needsServerInfo trumps deprecatedFlowTypes"), this._deprecatedFlowTypes = e3; + } + get needsServerInfo() { + return o.__classPrivateFieldGet(this, n2, "f"); + } + set needsServerInfo(e3) { + o.__classPrivateFieldSet(this, n2, e3, "f"), o.__classPrivateFieldGet(this, n2, "f") && o.__classPrivateFieldGet(this, r2, "f") !== a.flowTypes.flowTypesAll && this.traceTopic.error("needsServerInfo trumps supportedFlowTypes"), o.__classPrivateFieldSet(this, r2, [], "f"); + } + get supportedFlowTypes() { + return o.__classPrivateFieldGet(this, r2, "f"); + } + set supportedFlowTypes(e3) { + this.needsServerInfo && this.traceTopic.error("needsServerInfo trumps supportedFlowTypes"), o.__classPrivateFieldSet(this, r2, e3, "f"); + } + getAvailability(e3, t3, i3) { + return i3 ? !!this.isAvailableForTaskMode(t3) && (a.flowTypes.flowTypeCommonModule === i3.type ? i3.destinationFlowTypes.concat(a.flowTypes.flowTypeCommonModule) : i3.destinationFlowTypes).every((i4) => !!this.isAvailableForFlowType(i4, true) && !!this.passesAvailabilityCallback(i4, e3, t3) && !this.isDeprecatedForFlowType(i4)) : (this.traceTopic.error("no flowViewModel passed in for getAvailability check"), false); + } + get id() { + return this.typeId; + } + get isNodeInformation() { + return true; + } + isAvailableForFlowType(e3, t3) { + return s.default.contains(this.supportedFlowTypes, e3); + } + isAvailableForFlow(e3) { + return e3.destinationFlowTypes.every((e4) => this.isAvailableForFlowType(e4, true)); + } + isAvailableForTaskMode(e3) { + return e3 && this.canBeInTask || !e3 && this.canBeTreeNode; + } + isAvailableForOrg() { + return !!a.flowTypes.flowTypesAll.find((e3) => this.isAvailableForFlowType(e3, true) && !this.isDeprecatedForFlowType(e3)); + } + isDeprecatedForFlowType(e3) { + return s.default.contains(this.deprecatedFlowTypes, e3); + } + loadServerData(e3) { + this.bootStrapInfoProcessed = true; + const t3 = []; + s.default.each(e3.flowTypes, (e4, i4) => { + s.default.contains(a.flowTypes.flowTypesAll, i4) && e4.isAvailable && t3.push(i4); + }), o.__classPrivateFieldSet(this, r2, t3, "f"); + const i3 = []; + s.default.each(e3.flowTypesDeprecated, (e4, t4) => { + s.default.contains(a.flowTypes.flowTypesAll, t4) && e4.isAvailable && i3.push(t4); + }), this._deprecatedFlowTypes = i3, this.setActionCategoryInfo(e3.categoryInfo), c.registerAction(this); + } + passesAvailabilityCallback(e3, t3, i3) { + return !this.availabilityCallback || this.availabilityCallback(e3, t3, i3); + } + getTerminationInfo(e3) { + return this._terminationInfos[e3] || h.terminatesNone; + } + setTerminationForFlowTypes(e3, t3) { + s.default.each(e3, (e4) => { + this._terminationInfos[e4] = t3; + }); + } + setTermination(e3) { + this.setTerminationForFlowTypes(a.flowTypes.flowTypesAll, e3); + } + setActionClass(e3) { + this.actionClass = e3; + } + setActionCategoryInfo(e3) { + e3 || this.traceTopic.error("Null actionCategoryInfo passed to setActionCategoryInfo."); + let t3 = s.default.findWhere(u.default, { id: e3.categoryId }); + t3 || (t3 = u.default.unknown); + let i3 = e3.displayIndex; + s.default.isUndefined(i3) && (this.traceTopic.error("No display index found for category id " + e3.categoryId), i3 = 256), this.actionCategory = _.ParameterValidator.expectObject(t3, () => p.ParameterInfo.createConstructorParameter(this.className, "actionCategory")), this.displayIndex = _.ParameterValidator.expectInt(i3, () => p.ParameterInfo.createConstructorParameter(this.className, "displayIndex")), c.registerActionIntoCategory(this); + } + getWrappedYamlName(e3, t3) { + if (!this.scriptingName) return d.error(`No scriptingName defined for action ${this.className}`), "unsupportedAction"; + let i3 = this.scriptingName.replace("ArchAction", ""); + if (e3) { + if (t3) return "menuSubMenu"; + i3 = "menu" + i3; + } else i3 = i3.charAt(0).toLowerCase() + i3.slice(1); + return i3; + } + } + n2 = /* @__PURE__ */ new WeakMap(), r2 = /* @__PURE__ */ new WeakMap(), t2.default = f; + }, 97920: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.createPromptContainer = o, t2.createPromptResource = a, t2.deletePromptContainer = s, t2.deletePromptResource = l, t2.clearOrRevertAudio = u, t2.getPromptContainer = d, t2.getUserPromptContainer_ignoreBadResponse = _, t2.getSystemPromptContainer_ignoreBadResponse = h, t2.getSystemPromptContainer = function(e3) { + return d(e3, true, { includeMediaUris: true }); + }, t2.getPromptContainers = m, t2.getBulkUserPromptContainers = g, t2.getBulkSystemPromptContainers = f, t2.getPromptContainers_ignoreBadResponse = S, t2.getSystemPromptContainers = function(e3) { + return m(e3, true); + }, t2.getSystemPromptContainers_ignoreBadResponse = function(e3) { + return S(e3, true); + }, t2.getUserPromptContainers = function(e3) { + return m(e3, false); + }, t2.getUserPromptContainers_ignoreBadResponse = function(e3) { + return S(e3, false); + }, t2.getPromptResource = A, t2.getPromptResources = N, t2.updatePromptContainer = O, t2.updatePromptResource = I, t2.uploadAudio = v, t2.getPromptUploadPresignedUrl = C, t2.uploadAudioViaPresignedUrl = b; + const n2 = i2(31635).__importDefault(i2(36019)), r2 = i2(10954); + function o(e3, t3) { + const i3 = n2.default.build(r2.createPromptContainer); + return i3.content({ name: e3, description: t3 || "" }), i3.call(); + } + function a(e3, t3, i3, o2, a2) { + const s2 = a2 ? n2.default.build(r2.createSystemPromptResource) : n2.default.build(r2.createPromptResource), l2 = { language: t3, ttsString: i3 || "", text: o2 || "" }; + return s2.content(l2).templateParams({ promptId: e3 }), s2.call(); + } + function s(e3) { + const t3 = n2.default.build(r2.deletePromptContainer); + return t3.templateParams({ id: e3 }), t3.queryParams({ allResources: true }), t3.call(); + } + function l(e3, t3) { + const i3 = n2.default.build(r2.deletePromptResource); + return i3.templateParams({ promptId: e3, language: t3 }), i3.call(); + } + function u(e3, t3, i3) { + const o2 = i3 ? n2.default.build(r2.revertSystemPromptResourceAudio) : n2.default.build(r2.clearUserPromptAudio); + return o2.templateParams({ promptId: e3, language: t3 }), o2.call(); + } + function d(e3, t3, i3) { + const o2 = t3 ? n2.default.build(r2.getSystemPromptContainer) : n2.default.build(r2.getPromptContainer); + return o2.templateParams({ id: e3 }), o2.queryParams(i3), o2.call(); + } + o.api = r2.createPromptContainer, a.api = (e3) => e3 ? r2.createSystemPromptResource : r2.createPromptResource, s.api = r2.deletePromptContainer, l.api = r2.deletePromptResource, u.api = (e3) => e3 ? r2.revertSystemPromptResourceAudio : r2.clearUserPromptAudio, d.api = (e3) => e3 ? r2.getSystemPromptContainer : r2.getPromptContainer; + const c = r2.getSystemPromptContainer.clone({ ignoreBadResponse: true }), p = r2.getPromptContainer.clone({ ignoreBadResponse: true }); + function _(e3) { + const t3 = n2.default.build(p); + return t3.templateParams({ id: e3 }), t3.call(); + } + function h(e3) { + const t3 = n2.default.build(c); + return t3.templateParams({ id: e3 }), t3.call(); + } + function m(e3, t3) { + const i3 = t3 ? n2.default.build(r2.getSystemPromptContainers) : n2.default.build(r2.getPromptContainers); + return i3.queryParams(e3), i3.call(); + } + function g(e3) { + const t3 = n2.default.build(r2.getPromptContainers); + return t3.queryParams({ pageSize: e3.length, name: e3 }), t3.call(); + } + function f(e3) { + const t3 = n2.default.build(r2.getSystemPromptContainers); + return t3.queryParams({ pageSize: e3.length, name: e3 }), t3.call(); + } + _.api = p, h.api = c, m.api = (e3) => e3 ? r2.getSystemPromptContainers : r2.getPromptContainers, g.api = r2.getPromptContainers, f.api = r2.getSystemPromptContainers; + const T = r2.getSystemPromptContainers.clone({ ignoreBadResponse: true }), y = r2.getPromptContainers.clone({ ignoreBadResponse: true }); + function S(e3, t3) { + const i3 = t3 ? n2.default.build(T) : n2.default.build(y); + return i3.queryParams(e3.getSearchQueryParams()), i3.call(); + } + function A(e3, t3, i3) { + const o2 = i3 ? n2.default.build(r2.getSystemPromptResource) : n2.default.build(r2.getPromptResource); + return o2.templateParams({ promptId: e3, language: t3 }), o2.call(); + } + function N(e3, t3, i3) { + const o2 = i3 ? n2.default.build(r2.getSystemPromptResources) : n2.default.build(r2.getPromptResources); + return o2.templateParams({ promptId: e3 }).queryParams(t3), o2.call(); + } + function O(e3, t3, i3) { + const o2 = n2.default.build(r2.updatePromptContainer); + return o2.content({ name: t3, description: i3 || "" }).templateParams({ id: e3 }), o2.call(); + } + function I(e3, t3) { + const i3 = n2.default.build(r2.updatePromptResource), o2 = { durationSeconds: "durationSeconds" in t3 ? t3.durationSeconds : "audioLength" in t3 ? t3.audioLength : 0, language: t3.language || "", mediaUri: t3.mediaUri, name: "name" in t3 ? t3.name : "", ttsString: t3.ttsString || "", text: t3.text || "" }; + return t3.tags && (o2.tags = t3.tags), i3.templateParams({ promptId: e3, language: t3.language }).content(o2).call(); + } + function v(e3, t3) { + const i3 = n2.default.build(r2.audioUpload); + return i3.url = t3, delete i3.headers.Accept, delete i3.headers["Content-Type"], delete i3.headers["Genesys-App"], i3.file(e3).call(); + } + function C(e3, t3, i3) { + const o2 = e3 ? n2.default.build(r2.getSystemPromptUploadPresignedUrl) : n2.default.build(r2.getUserPromptUploadPresignedUrl); + return o2.templateParams({ promptId: t3, language: i3 }), o2.call(); + } + function b(e3, t3) { + const i3 = n2.default.build(r2.audioUploadViaPresignedUrl); + return i3.url = t3.url, i3.headers = Object.assign(Object.assign({}, i3.headers), t3.headers), delete i3.headers.Accept, delete i3.headers["Content-Type"], delete i3.headers.Authorization, i3.audioFile(e3).call(); + } + S.api = (e3) => e3 ? T : y, A.api = (e3) => e3 ? r2.getSystemPromptResource : r2.getPromptResource, N.api = (e3) => e3 ? r2.getSystemPromptResources : r2.getPromptResources, O.api = r2.updatePromptContainer, I.api = r2.updatePromptResource, v.api = r2.audioUpload, C.api = (e3) => e3 ? r2.getSystemPromptUploadPresignedUrl : r2.getUserPromptUploadPresignedUrl, b.api = r2.audioUploadViaPresignedUrl; + }, 97930: (e2, t2, i2) => { + "use strict"; + var n2; + Object.defineProperty(t2, "__esModule", { value: true }), t2.ExpressionTypeCurrencyOptions = void 0; + const r2 = i2(31635), o = r2.__importDefault(i2(68259)), a = i2(80295), s = i2(61870), l = i2(55909), u = i2(33951); + class d extends s.ExpressionTypeDecimalOptions { + static create(e3, t3) { + return new this(t3).invokeOptionsCallback(e3); + } + constructor(e3) { + super(e3), this._currencyFacets = new o.default(), this._currencyAmountOnly = false, (0, a.makeUnenumerable)(this, "_currencyFacets"), (0, a.makeUnenumerable)(this, "_currencyAmountOnly"); + } + get facets() { + return this._currencyFacets; + } + _setFromOptions(e3) { + super._setFromOptions(e3), this._setOptionIfSet(this.setCurrencyAmountOnly, e3._currencyAmountOnly); + } + get currencyAmountOnly() { + return this._currencyAmountOnly; + } + set currencyAmountOnly(e3) { + this._currencyAmountOnly = u.ParameterValidator.expectBool(e3, () => l.ParameterInfo.createPropertySet(this.className, "currencyAmountOnly", "value")); + } + setCurrencyAmountOnly(e3) { + return this.currencyAmountOnly = e3, this; + } + set facets(e3) { + this._currencyFacets = u.ParameterValidator.expectTrue(e3 && true === e3.isCurrencyFacets, e3, "CurrencyFacets", () => l.ParameterInfo.createPropertySet(this.className, "facets", "value")); + } + get className() { + return "ExpressionTypeCurrencyOptions"; + } + get isExpressionTypeCurrencyOptions() { + return true; + } + } + t2.ExpressionTypeCurrencyOptions = d, r2.__decorate([(0, a.enumerable)(true), r2.__metadata("design:type", "function" == typeof (n2 = void 0 !== o.default && o.default) ? n2 : Object), r2.__metadata("design:paramtypes", [Object])], d.prototype, "facets", null), r2.__decorate([(0, a.enumerable)(true), r2.__metadata("design:type", Boolean), r2.__metadata("design:paramtypes", [Object])], d.prototype, "currencyAmountOnly", null); + }, 97951: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.systemPromptListManager = t2.SystemPromptListManager = void 0; + const n2 = i2(31635), r2 = n2.__importDefault(i2(92140)), o = n2.__importStar(i2(36781)), a = n2.__importStar(i2(97920)), s = n2.__importStar(i2(27854)), l = n2.__importDefault(i2(47532)), u = i2(24032), d = n2.__importDefault(i2(85660)), c = i2(81801), p = i2(47957), _ = i2(27862), h = { name: p.sectionSystemPrompts, singularName: p.audio.promptSystem }; + class m extends l.default { + get requiredAuth() { + return c.externalAuthorizations.authStrings.promptsSystemView; + } + get dependencyType() { + return _.SystemPrompt; + } + constructor(e3, t3) { + super(), this.topic = (0, u.getTopic)("systemPromptListManager"), this.apiCallList = a.getSystemPromptContainers_ignoreBadResponse, this.apiCallSingle = a.getSystemPromptContainer_ignoreBadResponse, this.className = "SystemPromptListManager", this.dependencyContext = null, this.filterNames = [], this.supportedLanguages = null, this.isPromptManager = true, this.knownEmptySearches = [], e3 && (this.filterNames = e3), t3 && (this.supportedLanguages = t3), o.serviceListen(o.promptResourceDeleted, (e4) => { + e4.isSystem && this.addItem(e4._model, true); + }), o.serviceListen(o.cleanUpFlow, (e4) => { + r2.default.each(this.items, (t4) => t4.removeUsageForFlow(e4)); + }), this._initialize(); + } + _createItemViewModel(e3) { + return new d.default(e3, true); + } + getBulkPromptContainers(e3) { + return a.getBulkSystemPromptContainers(e3).then((e4) => { + r2.default.each(e4.entities, (e5) => { + this.addItem(e5, true); + }); + }); + } + getItemByName(e3) { + if (!e3) return null; + if (s.hasUserPromptPrefix(e3)) return null; + const t3 = s.removePrefix(e3).toLowerCase(); + return r2.default.find(this.items, (e4) => e4.lowerDisplayName === t3); + } + getGroupForItem(e3) { + if ((e3 = e3.isPromptContainer ? e3 : this.getItem(e3.id)) && e3.isSystem) return Object.assign(Object.assign({}, h), { audioPreview: this.audioPreview }); + } + promptHasAudioForLanguages(e3, t3) { + return this.getOrFetchItem(t3).then((t4) => { + let i3, n3 = true; + if (!t4) return false; + const o2 = e3.languages.supportedLanguages; + return r2.default.each(o2, (e4) => { + i3 = e4.toLowerCase(); + const o3 = t4.getResource(i3); + o3 && !r2.default.isNullOrUndefined(o3.audioLength) && 0 !== o3.audioLength || (n3 = false); + }), n3; + }); + } + refreshSinglePrompt(e3) { + return a.getSystemPromptContainer(e3).then((e4) => { + const t3 = this._createItemViewModel(e4); + return this.items[e4.id] && (t3.usages = this.items[e4.id].usages, this.items[e4.id] = t3), t3; + }); + } + removeItemWithName(e3) { + const t3 = this.getItemByName(e3); + t3 && delete this.items[t3.id]; + } + } + t2.SystemPromptListManager = m, t2.systemPromptListManager = new m(); + }, 98009: (e2, t2, i2) => { + const n2 = i2(75458), r2 = i2(90807), { dataTableLookupActionType: o } = i2(30801), a = i2(7401); + function s() { + Object.defineProperties(this, { _lookupKeyValue: { writable: true }, _outputs: { writable: true } }), this.datatableId = void 0, this.datatableName = void 0, s.baseConstructor.apply(this, arguments); + } + n2.extend(s, o, true), Object.defineProperties(s.prototype, { lookupKeyValue: { enumerable: true, get: function() { + return this._lookupKeyValue; + }, set: function(e3) { + this._lookupKeyValue = this.reviveItem(e3, a); + } }, outputs: { enumerable: true, get: function() { + return this._outputs; + }, set: function(e3) { + this._outputs = this.reviveArray(e3, r2); + } }, pasteReIdOrRename: { value: function(e3) { + s._super.pasteReIdOrRename.apply(this, arguments), this.lookupKeyValue.pasteReIdOrRename(e3), this.outputs.forEach((t3) => t3.pasteReIdOrRename(e3)); + } }, pasteResolveOldToNewValues: { value: function(e3) { + s._super.pasteResolveOldToNewValues.apply(this, arguments), this.lookupKeyValue.pasteResolveOldToNewValues(e3), this.outputs.forEach((t3) => t3.pasteResolveOldToNewValues(e3)); + } } }), e2.exports = s; + }, 98032: function(e2, t2, i2) { + "use strict"; + var n2 = this && this.__read || function(e3, t3) { + var i3 = "function" == typeof Symbol && e3[Symbol.iterator]; + if (!i3) return e3; + var n3, r3, o2 = i3.call(e3), a = []; + try { + for (; (void 0 === t3 || t3-- > 0) && !(n3 = o2.next()).done; ) a.push(n3.value); + } catch (e4) { + r3 = { error: e4 }; + } finally { + try { + n3 && !n3.done && (i3 = o2.return) && i3.call(o2); + } finally { + if (r3) throw r3.error; + } + } + return a; + }, r2 = this && this.__spreadArray || function(e3, t3) { + for (var i3 = 0, n3 = t3.length, r3 = e3.length; i3 < n3; i3++, r3++) e3[r3] = t3[i3]; + return e3; + }; + Object.defineProperty(t2, "__esModule", { value: true }), t2.concatWith = void 0; + var o = i2(96328); + t2.concatWith = function() { + for (var e3 = [], t3 = 0; t3 < arguments.length; t3++) e3[t3] = arguments[t3]; + return o.concat.apply(void 0, r2([], n2(e3))); + }; + }, 98046: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(1735)), r2 = i2(19596); + class o extends r2.DataContract { + constructor(e3) { + super(e3), this.entities = this.reviveArray(e3, n2.default); + } + } + t2.default = o; + }, 98088: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = i2(30801), o = n2.__importDefault(i2(54016)); + class a extends o.default { + constructor(e3) { + super(e3); + } + get _actionTypeId() { + return r2.findDivisionsActionType; + } + get displayTypeName() { + return this._scriptingName; + } + get isArchActionFindDivisions() { + return true; + } + get findResult() { + return this._findResult; + } + } + t2.default = a; + }, 98099: (e2, t2, i2) => { + const n2 = i2(27727), { bridgeServerActionType: r2 } = i2(30801); + function o() { + o.baseConstructor.apply(this, arguments); + } + n2.extend(o, r2, true), e2.exports = o; + }, 98114: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importStar(i2(24032)), o = n2.__importStar(i2(74359)), a = i2(82632), s = i2(36494), l = n2.__importStar(i2(85020)), u = n2.__importStar(i2(12847)), d = n2.__importStar(i2(53128)), c = n2.__importStar(i2(10798)), p = n2.__importDefault(i2(3465)), _ = i2(96618), h = n2.__importStar(i2(75773)), m = n2.__importStar(i2(15717)), g = n2.__importDefault(i2(96060)), f = n2.__importDefault(i2(92140)), T = n2.__importStar(i2(14187)), y = i2(27862), S = i2(4648).default, A = i2(47957), N = r2.getTopic("FlowDefinitionService"), O = {}; + O[_.flowTypes.flowTypeBot] = y.BotFlow, O[_.flowTypes.flowTypeCommonModule] = y.CommonModuleFlow, O[_.flowTypes.flowTypeDigitalBot] = y.DigitalBotFlow, O[_.flowTypes.flowTypeInboundCall] = y.InboundCallFlow, O[_.flowTypes.flowTypeInboundEmail] = y.InboundEmailFlow, O[_.flowTypes.flowTypeInboundShortMessage] = y.InboundShortMessageFlow, O[_.flowTypes.flowTypeInboundChat] = y.InboundChatFlow, O[_.flowTypes.flowTypeInQueueCall] = y.InqueueCallFlow, O[_.flowTypes.flowTypeInQueueEmail] = y.InqueueEmailFlow, O[_.flowTypes.flowTypeInQueueShortMessage] = y.InqueueShortMessageFlow, O[_.flowTypes.flowTypeOutboundCall] = y.OutboundCallFlow, O[_.flowTypes.flowTypeSecureCall] = y.SecureCallFlow, O[_.flowTypes.flowTypeSurveyInvite] = y.SurveyInviteFlow, O[_.flowTypes.flowTypeVoice] = y.VoiceFlow, O[_.flowTypes.flowTypeVoicemail] = y.VoicemailFlow, O[_.flowTypes.flowTypeVoiceSurvey] = y.VoiceSurveyFlow, O[_.flowTypes.flowTypeEmailSend] = y.EmailSendFlow, O[_.flowTypes.flowTypeWorkflow] = y.Workflow, O[_.flowTypes.flowTypeWorkitem] = y.WorkItemFlow; + const I = {}; + f.default.each(O, (e3, t3) => I[e3.value.toLowerCase()] = t3); + const v = new class { + constructor() { + this._flowDefinitions = {}, this._isInitialized = false, this._lookupCache = {}, this._createInitialFlowDefinitions(), o.bootstrapDataLoaded.then((e3) => this._processBootstrapDataLoaded(e3)); + } + _addFlowDefinition(e3) { + if (e3 && (e3.isFlowDefinition || this._flowDefinitions[e3.type])) return this._flowDefinitions[e3.type] = e3, e3; + } + _createInitialFlowDefinitions() { + this._createBotFlowDefinition(_.flowTypes.flowTypeBot, A.flow.types.bot, ".i3BotFlow"), this._createCommonModuleDefinition(_.flowTypes.flowTypeCommonModule, A.flow.types.commonModule, ".i3CommonModuleFlow"), this._createBotFlowDefinition(_.flowTypes.flowTypeDigitalBot, A.flow.types.digitalBotFlow, ".i3DigitalBotFlow"), this._createCallFlowDefinition(_.flowTypes.flowTypeInboundCall, A.flow.types.inboundCall, ".i3InboundFlow"), this._createAutomateFlowDefinition(_.flowTypes.flowTypeInboundEmail, A.flow.types.inboundEmail, ".i3InboundEmailFlow"), this._createAutomateFlowDefinition(_.flowTypes.flowTypeInboundChat, A.flow.types.inboundChat, ".i3InboundChatFlow"), this._createAutomateFlowDefinition(_.flowTypes.flowTypeInboundShortMessage, A.flow.types.inboundShortMessage, ".i3InboundMessage"), this._createCallFlowDefinition(_.flowTypes.flowTypeInQueueCall, A.flow.types.inQueueCall, ".i3InQueueFlow"), this._createAutomateFlowDefinition(_.flowTypes.flowTypeInQueueEmail, A.flow.types.inQueueEmail, ".i3InQueueEmailFlow"), this._createAutomateFlowDefinition(_.flowTypes.flowTypeInQueueShortMessage, A.flow.types.inQueueShortMessage, ".i3InQueueMessageFlow"), this._createCallFlowDefinition(_.flowTypes.flowTypeOutboundCall, A.flow.types.outboundCall, ".i3OutboundFlow"), this._createCallFlowDefinition(_.flowTypes.flowTypeSecureCall, A.flow.types.secureCall, ".i3SecureCallFlow"), this._createAutomateFlowDefinition(_.flowTypes.flowTypeSurveyInvite, A.flow.types.surveyInviteWebPrefix, ".i3SurveyInviteFlow"), this._createCallFlowDefinition(_.flowTypes.flowTypeInboundCall, A.flow.types.inboundCall, ".i3InboundFlow"), this._createAutomateFlowDefinition(_.flowTypes.flowTypeEmailSend, A.emailSendFlow.emailSendFlowTypeDisplayName, ".i3EmailSendFlow"), this._createAutomateFlowDefinition(_.flowTypes.flowTypeWorkflow, A.flow.types.workflow, ".i3WorkFlow"), this._createAutomateFlowDefinition(_.flowTypes.flowTypeWorkitem, A.flow.types.workItem, ".i3WorkitemFlow"), this._createVoiceFlowDefinition(_.flowTypes.flowTypeVoice, A.flow.types.voiceFlow, ".i3VoiceFlow"), this._createVoiceSurveyFlowDefinition(_.flowTypes.flowTypeVoiceSurvey, A.flow.types.voiceSurveyFlow, ".i3VoiceSurveyFlow"), this._createCallFlowDefinition(_.flowTypes.flowTypeVoicemail, A.flow.types.voicemailFlow, ".i3VoicemailFlow"), f.default.each(_.flowTypes.flowTypesAll, (e3) => { + if (!this._flowDefinitions[e3]) throw `Bad programmer! You need to add a flow definition to the flow definition service initialization for the flow type '${e3}'`; + }); + } + _createAutomateFlowDefinition(e3, t3, i3) { + const n3 = [_.flowTypes.flowTypeEmailSend, _.flowTypes.flowTypeInboundChat, _.flowTypes.flowTypeInboundEmail, _.flowTypes.flowTypeInboundShortMessage, _.flowTypes.flowTypeInQueueEmail, _.flowTypes.flowTypeInQueueShortMessage, _.flowTypes.flowTypeWorkflow, _.flowTypes.flowTypeWorkitem]; + return this._addFlowDefinition(p.default.createForFlowType(e3).setChannelTypes(e3 === _.flowTypes.flowTypeInboundChat ? [l.channelTypeChat] : []).setOutputModes(_.flowTypes.isFlowType(e3, _.flowTypes.flowTypeInboundChat, _.flowTypes.flowTypeInboundEmail, _.flowTypes.flowTypeInboundShortMessage) ? [m.outputModeText] : []).setDependencyType(O[e3]).setFileExtension(i3).setStartupObjectCanBeState(true).setSupportsAddVariablesInDataView(true).setIsCreatable(true).setSupportsComplexTypes(true).setSupportsCustomJsonTypes(true).setCanSaveAs(e3 !== _.flowTypes.flowTypeWorkitem).setSupportsDataViewFiltering(true).setSupportsErrorHandlingQueueRouting(_.flowTypes.isFlowType(e3, _.flowTypes.flowTypeInboundChat, _.flowTypes.flowTypeInboundEmail, _.flowTypes.flowTypeInboundShortMessage)).setSupportsFlowInputVariables(_.flowTypes.isFlowType(e3, _.flowTypes.flowTypeWorkflow, _.flowTypes.flowTypeWorkitem, _.flowTypes.flowTypeDigitalBot, _.flowTypes.flowTypeBot)).setIsReferenceableFromOtherFlows(_.flowTypes.isFlowType(e3, _.flowTypes.flowTypeInQueueEmail, _.flowTypes.flowTypeInQueueShortMessage)).setSupportsFlowOutputVariables(true).setSupportsLanguages(n3.includes(e3)).setSupportsLogLevelConfiguration(true).setLanguagesSupportDefaultLanguage(n3.includes(e3)).setSupportsMoreThanOneLanguage(n3.includes(e3)).setSupportsLanguageAddRemove(n3.includes(e3)).setSupportsLanguageDefaultChange(n3.includes(e3)).setLanguagesSupportDefaultLanguageSkill(_.flowTypes.isFlowType(e3, _.flowTypes.flowTypeInboundChat, _.flowTypes.flowTypeInboundEmail, _.flowTypes.flowTypeInboundShortMessage, _.flowTypes.flowTypeInQueueEmail, _.flowTypes.flowTypeInQueueShortMessage, _.flowTypes.flowTypeWorkitem)).setIsTestLaunchable(_.flowTypes.isFlowType(e3, _.flowTypes.flowTypeWorkflow, _.flowTypes.flowTypeWorkitem)).setSupportsFlowCreationData(e3 === _.flowTypes.flowTypeWorkitem).setSupportsAudio(false).setSupportsReusableTasks(true).setSupportsStates(true).setSupportsMultipleStates(true).setStartupStateMustTerminate(true).setSupportsPeriodicState(_.flowTypes.isFlowType(e3, _.flowTypes.flowTypeInQueueEmail, _.flowTypes.flowTypeInQueueShortMessage)).setSupportsTaskInputVariables(true).setSupportsTaskOutputVariables(true).setSupportsTasksWithOutputPaths(true).setTypeDisplayName(t3).setSystemVariableModels(this._getSystemVariableModelsForFlowType(e3)).setMaxFlowSize(_.flowTypes.isFlowType(e3, _.flowTypes.flowTypeEmailSend) ? a.flowSizeLimits.maxFlowSizeEmail : a.flowSizeLimits.maxFlowSize)); + } + _flowTypeSupportsMenus(e3) { + return _.flowTypes.isFlowType(e3, _.flowTypes.flowTypeInboundCall, _.flowTypes.flowTypeOutboundCall, _.flowTypes.flowTypeSecureCall, _.flowTypes.flowTypeVoicemail); + } + _createCallFlowDefinition(e3, t3, i3) { + return this._addFlowDefinition(p.default.createForFlowType(e3).setChannelTypes([l.channelTypeCall]).setOutputModes([m.outputModeVoice]).setDependencyType(O[e3]).setFileExtension(i3).setIsReferenceableFromOtherFlows(_.flowTypes.isFlowType(e3, _.flowTypes.flowTypeInQueueCall, _.flowTypes.flowTypeSecureCall)).setIsCreatable(e3 !== _.flowTypes.flowTypeVoicemail).setSupportsDebugPublish(_.flowTypes.isFlowType(e3, _.flowTypes.flowTypeInboundCall, _.flowTypes.flowTypeVoicemail)).setSupportsAutoDeletingVariablesWithNoUsages(true).setLanguagesSupportTtsAndAsrSettings(true).setLanguagesSupportTtsAndAsrRuntime(true).setSupportsContactDataType(e3 === _.flowTypes.flowTypeOutboundCall).setSupportsErrorAudio(true).setSupportsLanguages(true).setSupportsLogLevelConfiguration(true).setLanguagesSupportDefaultLanguage(true).setSupportsMoreThanOneLanguage(true).setLanguageChangesAreImmediate(false).setSupportsLanguageAddRemove(true).setSupportsLanguageDefaultChange(true).setLanguagesSupportDefaultLanguageSkill(true).setSupportsAudio(true).setSupportsSpeechRec(_.flowTypes.isFlowType(e3, _.flowTypes.flowTypeInboundCall, _.flowTypes.flowTypeOutboundCall, _.flowTypes.flowTypeSecureCall, _.flowTypes.flowTypeVoicemail)).setSupportsReusableMenus(this._flowTypeSupportsMenus(e3)).setSupportsReusableTasks(e3 !== _.flowTypes.flowTypeInQueueCall).setSupportsSecureVariables(e3 === _.flowTypes.flowTypeSecureCall).setStartupObjectCanBeMenu(_.flowTypes.isFlowType(e3, _.flowTypes.flowTypeInboundCall, _.flowTypes.flowTypeOutboundCall, _.flowTypes.flowTypeSecureCall, _.flowTypes.flowTypeVoicemail)).setStartupObjectCanBeTask(_.flowTypes.isFlowType(e3, _.flowTypes.flowTypeInboundCall, _.flowTypes.flowTypeOutboundCall, _.flowTypes.flowTypeSecureCall, _.flowTypes.flowTypeVoicemail)).setStartupObjectCanBeRepeatingTask(e3 === _.flowTypes.flowTypeInQueueCall).setTypeDisplayName(t3).setIsTestCallable(_.flowTypes.isFlowType(e3, _.flowTypes.flowTypeInboundCall, _.flowTypes.flowTypeSecureCall, _.flowTypes.flowTypeVoicemail)).setSystemVariableModels(this._getSystemVariableModelsForFlowType(e3))); + } + _createBotFlowDefinition(e3, t3, i3) { + return this._addFlowDefinition(p.default.createForFlowType(e3).addAdditionalInfoSection("exitReasons", "This is a list of example exit reason strings and is *not* all possible values.", s.botFlowExitReasons).setChannelTypes(e3 === _.flowTypes.flowTypeBot ? [l.channelTypeCall, l.channelTypeChat] : [l.channelTypeChat]).setChannelTypeVariableName("Session.ChannelType").setOutputModes(e3 === _.flowTypes.flowTypeBot ? [m.outputModeVoice, m.outputModeText] : [m.outputModeText]).setSupportsQuickRepliesFlowLevelSetting(e3 === _.flowTypes.flowTypeBot).setSupportsAgentEscalation(true).setSupportsLogLevelConfiguration(true).setSupportsNlu(true).setSupportsNluIntents(true).setOutputModeVariableName("Session.ChannelType").setDependencyType(O[e3]).setIsCreatable(true).setIsReferenceableFromOtherFlows(true).setFileExtension(i3).setStartupObjectCanBeState(true).setStartupObjectCanBeTask(false).setSupportsAddVariablesInDataView(true).setSupportsComplexTypes(true).setSupportsDataViewFiltering(true).setSupportsFlowCreationData(true).setSupportsFlowInputVariables(true).setSupportsFlowOutputVariables(true).setSupportsLanguages(true).setLanguagesSupportDefaultLanguage(true).setSupportsMoreThanOneLanguage(false).setSupportsLanguageAddRemove(false).setSupportsLanguageDefaultChange(false).setSupportsAudio(false).setSupportsReusableTasks(true).setSupportsStates(true).setSupportsMultipleStates(false).setSupportsTaskInputVariables(true).setSupportsTaskOutputVariables(true).setSupportsTasksWithOutputPaths(true).setSupportsVoiceProcessingPrompt(true).setTypeDisplayName(t3).setSystemVariableModels(this._getSystemVariableModelsForFlowType(e3))); + } + _createVoiceFlowDefinition(e3, t3, i3) { + return this._addFlowDefinition(p.default.createForFlowType(_.flowTypes.flowTypeVoice).addAdditionalInfoSection("exitReasons", "This is a list of example exit reason strings and is *not* all possible values.", s.botFlowExitReasons).setChannelTypes([l.channelTypeCall]).setChannelTypeVariableName("Session.ChannelType").setOutputModes([m.outputModeVoice]).setSupportsQuickRepliesFlowLevelSetting(false).setDependencyType(O[_.flowTypes.flowTypeVoice]).setIsCreatable(true).setSupportsLogLevelConfiguration(true).setSupportsNlu(true).setSupportsNluIntents(true).setIsReferenceableFromOtherFlows(true).setFileExtension(i3).setLanguagesSupportSttSetting(true).setLanguagesSupportTtsAndAsrSettings(true).setLanguagesSupportTtsAndAsrRuntime(true).setStartupObjectCanBeState(true).setStartupObjectCanBeTask(false).setSupportsAddVariablesInDataView(true).setSupportsAgentEscalation(true).setSupportsComplexTypes(true).setSupportsDataViewFiltering(true).setSupportsFlowCreationData(true).setSupportsFlowInputVariables(true).setSupportsFlowOutputVariables(true).setSupportsKnowledge(true).setSupportsLanguages(true).setLanguagesSupportDefaultLanguage(true).setLanguagesSupportDefaultLanguageSkill(true).setStartupStateMustTerminate(true).setSupportsMoreThanOneLanguage(true).setSupportsLanguageAddRemove(true).setSupportsLanguageDefaultChange(false).setSupportsAudio(false).setSupportsReusableTasks(true).setSupportsStates(true).setSupportsMultipleStates(true).setSupportsTaskInputVariables(true).setSupportsTaskOutputVariables(true).setSupportsTasksWithOutputPaths(true).setTypeDisplayName(t3).setSystemVariableModels(this._getSystemVariableModelsForFlowType(_.flowTypes.flowTypeVoice))); + } + _createVoiceSurveyFlowDefinition(e3, t3, i3) { + return this._addFlowDefinition(p.default.createForFlowType(_.flowTypes.flowTypeVoiceSurvey).addAdditionalInfoSection("exitReasons", "This is a list of example exit reason strings and is *not* all possible values.", s.botFlowExitReasons).setChannelTypes([l.channelTypeCall]).setChannelTypeVariableName("Session.ChannelType").setOutputModes([m.outputModeVoice]).setCanSuppressCallRecordings(true).setSuppressCallRecordingsDefaultValue(false).setSupportsQuickRepliesFlowLevelSetting(false).setDependencyType(O[_.flowTypes.flowTypeVoiceSurvey]).setIsCreatable(true).setSupportsLogLevelConfiguration(true).setSupportsNlu(true).setSupportsNluIntents(false).setIsReferenceableFromOtherFlows(false).setFileExtension(i3).setLanguagesSupportSttSetting(true).setLanguagesSupportTtsAndAsrSettings(true).setLanguagesRequireTts(true).setLanguagesSupportTtsAndAsrRuntime(true).setStartupObjectCanBeState(true).setStartupObjectCanBeTask(true).setSupportsAddVariablesInDataView(true).setSupportsComplexTypes(true).setSupportsDataViewFiltering(true).setSupportsFlowCreationData(true).setIsTestCallable(true).setSupportsFlowInputVariables(false).setSupportsFlowOutputVariables(false).setSupportsKnowledge(false).setSupportsLanguages(true).setLanguagesSupportDefaultLanguage(true).setLanguagesSupportDefaultLanguageSkill(false).setStartupStateMustTerminate(true).setSupportsMoreThanOneLanguage(false).setSupportsLanguageAddRemove(false).setSupportsLanguageDefaultChange(false).setSupportsAudio(true).setSupportsReusableTasks(true).setSupportsStates(true).setSupportsMultipleStates(false).setSupportsTaskInputVariables(true).setSupportsTaskOutputVariables(true).setSupportsTasksWithOutputPaths(true).setTypeDisplayName(t3).setSystemVariableModels(this._getSystemVariableModelsForFlowType(_.flowTypes.flowTypeVoiceSurvey))); + } + _createCommonModuleDefinition(e3, t3, i3) { + return this._addFlowDefinition(p.default.createForFlowType(e3).setChannelTypes(l.channelTypesAll).setOutputModes(m.outputModesAll).setDependencyType(O[e3]).setFileExtension(i3).setIsCreatable(true).setIsReferenceableFromOtherFlows(true).setMaxFlowSize(a.flowSizeLimits.maxFlowSizeCommonModule).setSupportsAutoDeletingVariablesWithNoUsages(false).setLanguagesSupportTtsAndAsrSettings(false).setLanguagesSupportTtsAndAsrRuntime(true).setHasDestinationFlowTypes(true).setSupportsAddVariablesInDataView(true).setSupportsContactDataType(true).setSupportsFlowInputVariables(true).setSupportsFlowOutputVariables(true).setSupportsLanguages(true).setLanguagesSupportDefaultLanguage(false).setSupportsMoreThanOneLanguage(true).setSupportsLanguageAddRemove(true).setSupportsLanguageDefaultChange(true).setLanguagesSupportDefaultLanguageSkill(false).setSupportsAudio(true).setSupportsSpeechRec(true).setSupportsSecureVariables(false).setStartupObjectCanBeTask(true).setTypeDisplayName(t3).setVariableScope(T.scopes.common).setSystemVariableModels(this._getSystemVariableModelsForFlowType(e3))); + } + _getSystemVariableModelsForFlowType(e3) { + const t3 = [e3 === _.flowTypes.flowTypeEmailSend ? g.default.systemVariablesNoIsTest : g.default.systemVariables], i3 = _.flowTypes.isVxmlgenFlowType(e3), n3 = _.flowTypes.isAutomateFlowType(e3), r3 = _.flowTypes.isCiceroFlowType(e3), o2 = e3 === _.flowTypes.flowTypeCommonModule; + switch (i3 && (t3.push(g.default.commonCallVariables), t3.push(g.default.callFlowVariables)), (i3 || o2) && (t3.push(g.default.formatVariables), t3.push(g.default.languageVariables), t3.push(g.default.lookupVariables), t3.push(g.default.internalFlowVariables)), (i3 || n3) && t3.push(g.default.automateLookupVariables), r3 && (t3.push(g.default.dateOnlyAndTimeOnlySystemVariables), t3.push(g.default.formatVariables), t3.push(g.default.languageVariables), t3.push(g.default.nluBasedCommonFlowVariables)), this._flowTypeSupportsMenus(e3) && t3.push(g.default.menuVariables), e3 === _.flowTypes.flowTypeDigitalBot && t3.push(g.default.digitalBotFlowVariables), e3 === _.flowTypes.flowTypeBot && t3.push(g.default.botFlowVariables), e3) { + case _.flowTypes.flowTypeBot: + case _.flowTypes.flowTypeDigitalBot: + t3.push(g.default.nluBasedIntentVariables), t3.push(g.default.nluBasedKnowledgeVariables); + break; + case _.flowTypes.flowTypeEmailSend: + t3.push(g.default.emailSendFlowVariables); + break; + case _.flowTypes.flowTypeInboundCall: + t3.push(g.default.uuiDataVariable, g.default.invocationDataVariable); + break; + case _.flowTypes.flowTypeOutboundCall: + t3.push(g.default.uuiDataVariable), t3.push(g.default.outboundCallFlowVariables); + break; + case _.flowTypes.flowTypeInQueueCall: + t3.push(g.default.uuiDataVariable), t3.push(g.default.inQueueCallFlowVariables); + break; + case _.flowTypes.flowTypeInQueueEmail: + t3.push(g.default.inboundEmailFlowVariables, g.default.inQueueEmailFlowVariables); + break; + case _.flowTypes.flowTypeInQueueShortMessage: + t3.push(g.default.inboundShortMessageFlowVariables, g.default.inQueueShortMessageFlowVariables); + break; + case _.flowTypes.flowTypeSecureCall: + t3.push(g.default.secureCallFlowVariables); + break; + case _.flowTypes.flowTypeInboundEmail: + t3.push(g.default.inboundEmailFlowVariables); + break; + case _.flowTypes.flowTypeInboundShortMessage: + t3.push(g.default.inboundShortMessageFlowVariables); + break; + case _.flowTypes.flowTypeInboundChat: + t3.push(g.default.inboundChatFlowVariables); + break; + case _.flowTypes.flowTypeSurveyInvite: + t3.push(g.default.surveyInviteFlowVariables); + break; + case _.flowTypes.flowTypeVoicemail: + t3.push(g.default.voicemailFlowVariables); + break; + case _.flowTypes.flowTypeWorkflow: + t3.push(g.default.workflowVariables); + break; + case _.flowTypes.flowTypeCommonModule: + t3.push(g.default.commonModuleVariables); + break; + case _.flowTypes.flowTypeWorkitem: + t3.push(g.default.workitemFlowVariables); + break; + case _.flowTypes.flowTypeVoice: + t3.push(g.default.commonCallVariables), t3.push(g.default.nluBasedIntentVariables), t3.push(g.default.nluBasedKnowledgeVariables); + break; + case _.flowTypes.flowTypeVoiceSurvey: + t3.push(g.default.voiceSurveyFlowVariables); + } + return [].concat(...t3); + } + _processBootstrapDataLoaded(e3) { + var t3, i3; + f.default.each(e3.flowTypes, (e4) => { + var t4, i4, n3; + try { + const r3 = this._flowDefinitions[e4.id]; + if (r3) { + r3.isAvailable = e4.isAvailable, f.default.isBoolean(null === (t4 = e4.userCreatable) || void 0 === t4 ? void 0 : t4.isAvailable) && (r3.isCreatable = null === (i4 = e4.userCreatable) || void 0 === i4 ? void 0 : i4.isAvailable), f.default.isBoolean(null === (n3 = e4.supportsLanguages) || void 0 === n3 ? void 0 : n3.moreThanOneLanguage) && (r3.supportsMoreThanOneLanguage = e4.supportsLanguages.moreThanOneLanguage); + const o2 = e4.maxSize; + f.default.isActualNumber(o2) && Number.isFinite(o2) && o2 > 0 ? r3.setMaxFlowSize(o2) : u.error(`no valid max size specified for flow ${e4.id} - ${o2}`); + } + } catch (t5) { + N.exception(t5, `error processing bootstrap flow type '${e4.id}' - this flow type may not be available when it should be.`); + } + }), c.isFeatureAvailable(S.botFlowsPromptFeature) && this._flowDefinitions[_.flowTypes.flowTypeBot].setSupportsAudio(true).setLanguagesSupportTtsAndAsrRuntime(true), c.isFeatureAvailable(S.emailBotsFeature) && this._flowDefinitions[_.flowTypes.flowTypeInboundEmail].setSupportsNluCortex(true).setSupportsNluCortexIntents(true).setSupportsFlowCreationData(true); + for (const e4 of _.flowTypes.flowTypesAll) { + const t4 = this._flowDefinitions[e4]; + t4 && t4.setErrorHandlingTypes(d.getHandlingTypesForFlowType(e4)); + } + if (c.isFeatureAvailable(S.customJSONV2)) for (const e4 of _.flowTypes.flowTypesAllVxmlgen) this._flowDefinitions[e4].setSupportsCustomJsonTypes(true); + if (c.isFeatureAvailable(S.customJSONUserDefinedTypes) || c.isFeatureAvailable(S.ruleBasedDecisionsFeature)) for (const e4 of _.flowTypes.flowTypesAllVxmlgen) this._flowDefinitions[e4].setSupportsCustomJsonTypeUserCreatedVariables(true); + if (c.isFeatureAvailable(S.customJSONUserDefinedTypes) || c.isFeatureAvailable(S.ruleBasedDecisionsDigitalFeature)) for (const e4 of _.flowTypes.flowTypesAllAutomate) this._flowDefinitions[e4].setSupportsCustomJsonTypeUserCreatedVariables(true); + if (c.isFeatureAvailable(S.ruleBasedDecisionsDigitalFeature)) for (const e4 of _.flowTypes.flowTypesAllAutomate) this._flowDefinitions[e4].setSupportsCustomJsonTypes(true); + if (c.isFeatureAvailable(S.previewDigitalBotFlowTestWidgetFeature) && this._flowDefinitions[_.flowTypes.flowTypeDigitalBot].setSupportsPreview(true).setSupportsDebugPublish(true), c.isFeatureAvailable(S.previewInboundCallFlowFeature) && this._flowDefinitions[_.flowTypes.flowTypeInboundCall].setSupportsPreview(true).setPreviewsAreReplayable(true), c.isFeatureAvailable(S.previewVoicemailFlowFeature) && this._flowDefinitions[_.flowTypes.flowTypeVoicemail].setSupportsPreview(true).setPreviewsAreReplayable(true), c.isFeatureAvailable(S.previewVoiceSurveyFlowFeature) && this._flowDefinitions[_.flowTypes.flowTypeVoiceSurvey].setSupportsPreview(true).setPreviewsAreReplayable(true), c.isFeatureAvailable(S.previewWorkflowFlowFeature) && this._flowDefinitions[_.flowTypes.flowTypeWorkflow].setSupportsPreview(true).setPreviewsAreReplayable(true).setPreviewAcceptsJsonPayload(true), c.isFeatureAvailable(S.previewWorkitemFlowFeature) && this._flowDefinitions[_.flowTypes.flowTypeWorkitem].setSupportsPreview(true).setPreviewsAreReplayable(true).setPreviewAcceptsJsonPayload(true), c.isFeatureAvailable(S.botFlowsDigitalBotFlowsReprompts)) { + const e4 = s.botFlowExitReasons.filter((e5) => "RecognitionFailure.MaxTurns" !== e5); + this._flowDefinitions[_.flowTypes.flowTypeBot].additionalInfo.exitReasons.value = e4, this._flowDefinitions[_.flowTypes.flowTypeDigitalBot].additionalInfo.exitReasons.value = e4; + } + if (c.isFeatureAvailable(S.botFlowsPciPhase1Feature) && this._flowDefinitions[_.flowTypes.flowTypeBot].setSupportsSecureVariables(true), c.isFeatureAvailable(S.botFlowsKnowledge)) { + const e4 = this._flowDefinitions[_.flowTypes.flowTypeBot]; + e4.setSupportsKnowledge(true), e4.setSupportsKnowledgeConfirmation(true), e4.setSupportsKnowledgeWelcomeArticle(true); + const t4 = this._flowDefinitions[_.flowTypes.flowTypeDigitalBot]; + t4.setSupportsKnowledge(true), c.isFeatureAvailable(S.botFlowsKnowledgeFeedback) && t4.setSupportsKnowledgeConfirmation(true); + } + if (c.isFeatureAvailable(S.flowOptimizationFrequencyFeature) && (this._flowDefinitions[_.flowTypes.flowTypeBot].setSupportsFlowOptimizationData(true), this._flowDefinitions[_.flowTypes.flowTypeDigitalBot].setSupportsFlowOptimizationData(true)), c.isFeatureAvailable(S.flowOptimizationFrequencyAllFlowTypesFeature) && f.default.each([_.flowTypes.flowTypeInboundCall, _.flowTypes.flowTypeInboundEmail, _.flowTypes.flowTypeInboundShortMessage, _.flowTypes.flowTypeInQueueCall, _.flowTypes.flowTypeInQueueEmail, _.flowTypes.flowTypeInQueueShortMessage, _.flowTypes.flowTypeOutboundCall, _.flowTypes.flowTypeSecureCall, _.flowTypes.flowTypeSurveyInvite, _.flowTypes.flowTypeVoiceSurvey, _.flowTypes.flowTypeVoicemail, _.flowTypes.flowTypeWorkflow], (e4) => { + this._flowDefinitions[e4].setSupportsFlowOptimizationData(true); + }), c.isFeatureAvailable(S.botFlowsDigitalBotFlowsKnowledgePathFeature) && this._flowDefinitions[_.flowTypes.flowTypeDigitalBot].setSupportsKnowledgePaths(true), c.isFeatureAvailable(S.botFlowsDigitalBotFlowsKnowledgeEndToEndFeature) && this._flowDefinitions[_.flowTypes.flowTypeDigitalBot].setSupportsEndToEndKnowledgeHandling(true), c.isFeatureAvailable(S.botFlowsAdvancedKnowledgeHandling) && c.isFeatureAvailable(S.botFlowsKnowledge) && this._flowDefinitions[_.flowTypes.flowTypeBot].setSupportsEndToEndKnowledgeHandling(true), c.isFeatureAvailable(S.botFlowsAdvancedKnowledgeHandling) && c.isFeatureAvailable(S.botFlowsKnowledge) && this._flowDefinitions[_.flowTypes.flowTypeBot].setSupportsAdvancedKnowledgeHandling(true), c.isFeatureAvailable(S.pathDiscoveryFeature) && (this._flowDefinitions[_.flowTypes.flowTypeBot].setSupportsPathDiscovery(true), this._flowDefinitions[_.flowTypes.flowTypeDigitalBot].setSupportsPathDiscovery(true)), c.isFeatureAvailable(S.pathDiscoveryCallFlowsFeature) && (this._flowDefinitions[_.flowTypes.flowTypeInboundCall].setSupportsPathDiscovery(true), this._flowDefinitions[_.flowTypes.flowTypeSecureCall].setSupportsPathDiscovery(true)), c.isFeatureAvailable(S.pathDiscoveryV3Feature) && (this._flowDefinitions[_.flowTypes.flowTypeInboundEmail].setSupportsPathDiscovery(true), this._flowDefinitions[_.flowTypes.flowTypeInboundShortMessage].setSupportsPathDiscovery(true), this._flowDefinitions[_.flowTypes.flowTypeOutboundCall].setSupportsPathDiscovery(true)), c.isFeatureAvailable(S.botFlowsDigitalBotFlowsMultiLingualFeature)) { + const e4 = this._flowDefinitions[_.flowTypes.flowTypeBot]; + e4.setSupportsMoreThanOneLanguage(true), e4.setSupportsLanguageAddRemove(true), e4.setSupportsMultilingualKnowledge(true); + const t4 = this._flowDefinitions[_.flowTypes.flowTypeDigitalBot]; + t4.setSupportsMoreThanOneLanguage(true), t4.setSupportsLanguageAddRemove(true), t4.setSupportsMultilingualKnowledge(true); + } + if (c.isFeatureAvailable(S.botFlowsQueueSupportFeature) && (this._flowDefinitions[_.flowTypes.flowTypeBot].setLanguagesSupportDefaultLanguageSkill(true), this._flowDefinitions[_.flowTypes.flowTypeDigitalBot].setLanguagesSupportDefaultLanguageSkill(true)), c.isFeatureAvailable(S.workItemFlows)) { + const n3 = this._flowDefinitions[_.flowTypes.flowTypeWorkitem]; + n3.setOutputValuesSupportVariableExpressions(true); + const r3 = null === (i3 = null === (t3 = e3.featureSupport) || void 0 === t3 ? void 0 : t3.workitems) || void 0 === i3 ? void 0 : i3.events; + if (null == r3 ? void 0 : r3.length) for (const e4 of r3) n3.addFlowInvokingEvent(null == e4 ? void 0 : e4.id); + n3.setSupportsFlowOptimizationData(true); + } + f.default.each(this._flowDefinitions, (e4) => { + e4.isCallFlowType && e4._supportsReusableTasks && e4.setSupportsTaskInputVariables(true).setSupportsTaskOutputVariables(true).setSupportsTasksWithOutputPaths(true); + }), f.default.each(this._flowDefinitions, (e4) => { + switch (e4.type) { + case _.flowTypes.flowTypeInboundCall: + case _.flowTypes.flowTypeOutboundCall: + case _.flowTypes.flowTypeSecureCall: + case _.flowTypes.flowTypeVoicemail: + e4.setSupportsDefaultSpeechSettings(true), e4.setSupportsDisableASR(true), e4.setSupportsCompanyDirectory(true); + } + }), f.default.each(this._flowDefinitions, (e4) => { + _.flowTypes.flowTypesAllCicero.includes(e4.type) ? e4.isEmbeddable = c.isFeatureAvailable(S.botFlowsPhase2) : e4.isEmbeddable = e4.type !== _.flowTypes.flowTypeCommonModule; + }), f.default.each(this._flowDefinitions, (e4) => { + switch (e4.type) { + case _.flowTypes.flowTypeInboundCall: + case _.flowTypes.flowTypeOutboundCall: + case _.flowTypes.flowTypeVoicemail: + e4.canSuppressCallRecordings = c.isFeatureAvailable(S.suppressCallRecordingsFeature); + break; + case _.flowTypes.flowTypeSecureCall: + e4.canSuppressCallRecordings = c.isFeatureAvailable(S.suppressCallRecordingsSecureCallFeature); + } + }), this._flowDefinitions[_.flowTypes.flowTypeVoice].setCanSuppressCallRecordings(true), f.default.each(this._flowDefinitions, (e4) => { + e4.type === _.flowTypes.flowTypeBot && (e4.languagesSupportSttSetting = c.isFeatureAvailable(S.botFlowsThirdPartySttFeature)); + }), c.isFeatureAvailable(S.orgAvailabilityGrammars) && f.default.each(this._flowDefinitions, (e4) => { + switch (e4.type) { + case _.flowTypes.flowTypeBot: + case _.flowTypes.flowTypeVoice: + e4.supportsGrammars = c.isFeatureAvailable(S.orgAvailabilityGrammars); + } + }), this._isInitialized = true, f.default.each(this._flowDefinitions, (e4) => { + e4.isInitialized = true; + }), f.default.each(_.flowTypes.flowTypesAll, (t4) => { + var i4, n3, r3, o2; + if (!this._flowDefinitions[t4].supportsNlu) return; + let a2 = ["en-au", "en-gb", "en-us"]; + const s2 = null === (i4 = e3.featureSupport.naturalLanguageUnderstanding) || void 0 === i4 ? void 0 : i4.flowTypesToEngines; + if (f.default.isObject(s2)) { + const e4 = s2[t4 !== _.flowTypes.flowTypeVoice ? t4 : _.flowTypes.flowTypeBot]; + if (f.default.isObject(e4)) { + const t5 = {}; + f.default.each(e4, (e5, i5) => { + t5[i5] = true; + }), a2 = f.default.keys(t5) || []; + } + } else if (null === (o2 = null === (r3 = null === (n3 = e3.featureSupport) || void 0 === n3 ? void 0 : n3.naturalLanguageUnderstanding) || void 0 === r3 ? void 0 : r3.supportedLanguages) || void 0 === o2 ? void 0 : o2.length) { + const t5 = f.default.pluck(e3.featureSupport.naturalLanguageUnderstanding.supportedLanguages, "language"); + t5.length && (a2 = t5); + } + this._flowDefinitions[t4].setAvailableLanguageTags(a2); + }), c.isFeatureAvailable(S.botFlowsVirtualAgentOffering) && (this._flowDefinitions[_.flowTypes.flowTypeBot].setSupportsVirtualAgent(true), this._flowDefinitions[_.flowTypes.flowTypeDigitalBot].setSupportsVirtualAgent(true)), c.isFeatureAvailable(S.botFlowsMessagingDatePicker) && this._flowDefinitions[_.flowTypes.flowTypeDigitalBot].setSupportsDynamicTimeslots(true), c.isFeatureAvailable(S.botFlowsAnswerGeneration) && this._flowDefinitions[_.flowTypes.flowTypeDigitalBot].setSupportsAnswerGeneration(true), c.isFeatureAvailable(S.botFlowsAnswerGenerationMultipleArticles) && this._flowDefinitions[_.flowTypes.flowTypeBot].setSupportsAnswerGeneration(true), c.isFeatureAvailable(S.botFlowsIntentClassificationHintingAsr) && this._flowDefinitions[_.flowTypes.flowTypeBot].setSupportsEnableIntentClassificationHinting(true), c.isFeatureAvailable(S.botFlowsIntentDescriptions) && this._flowDefinitions[_.flowTypes.flowTypeBot].setSupportsIntentDescriptions(true), c.isFeatureAvailable(S.botFlowsVirtualAgentCustomSummaries) && (this._flowDefinitions[_.flowTypes.flowTypeBot].setSupportsConversationSummary(true), this._flowDefinitions[_.flowTypes.flowTypeDigitalBot].setSupportsConversationSummary(true)); + } + _getFlowTypesForPropertyValue(e3, t3) { + const i3 = []; + return f.default.each(this._flowDefinitions, (n3) => { + n3[e3] === t3 && i3.push(n3.type); + }), i3; + } + areLanguageChangesImmediate(e3) { + const t3 = this.getDefinitionForFlowType(e3); + return !!t3 && t3.languageChangesAreImmediate; + } + doesFlowTypeHaveDestinationFlowTypes(e3) { + const t3 = this.getDefinitionForFlowType(e3); + return !!t3 && t3.hasDestinationFlowTypes; + } + doesFlowTypeSupportErrorHandlingQueueRouting(e3) { + const t3 = this.getDefinitionForFlowType(e3); + return !!t3 && t3.supportsErrorHandlingQueueRouting; + } + doesFlowTypeSupportLanguages(e3) { + const t3 = this.getDefinitionForFlowType(e3); + return !!t3 && t3.supportsLanguages; + } + doesFlowTypeSupportDefaultLanguage(e3) { + const t3 = this.getDefinitionForFlowType(e3); + return !!t3 && t3.languagesSupportDefaultLanguage; + } + doesFlowTypeSupportAudio(e3) { + const t3 = this.getDefinitionForFlowType(e3); + return !!t3 && t3.supportsAudio; + } + doesFlowTypeLanguagesSupportTtsAndAsrSettings(e3) { + const t3 = this.getDefinitionForFlowType(e3); + return !!t3 && t3.languagesSupportTtsAndAsrSettings; + } + doesFlowTypeLanguagesSupportTtsAndAsrRuntime(e3) { + const t3 = this.getDefinitionForFlowType(e3); + return !!t3 && t3.languagesSupportTtsAndAsrRuntime; + } + doesFlowTypeSupportDefaultLanguageSkill(e3) { + const t3 = this.getDefinitionForFlowType(e3); + return !!t3 && t3.languagesSupportDefaultLanguageSkill; + } + doesFlowTypeSupportMoreThanOneLanguage(e3) { + const t3 = this.getDefinitionForFlowType(e3); + return !!t3 && t3.supportsMoreThanOneLanguage; + } + doesFlowTypeSupportLanguageAddRemove(e3) { + const t3 = this.getDefinitionForFlowType(e3); + return !!t3 && t3.supportsLanguageAddRemove; + } + doesFlowTypeSupportVirtualAgent(e3) { + const t3 = this.getDefinitionForFlowType(e3); + return !!t3 && t3.supportsVirtualAgent; + } + getFlowTypesThatSupportLanguages() { + let e3 = this._lookupCache.getFlowTypesThatSupportLanguages; + return void 0 === e3 && (e3 = this._getFlowTypesForPropertyValue("supportsLanguages", true), this._lookupCache.getFlowTypesThatSupportLanguages = e3), e3; + } + getFlowTypesThatSupportMenus() { + let e3 = this._lookupCache.getFlowTypesThatSupportMenus; + return void 0 === e3 && (e3 = this._getFlowTypesForPropertyValue("supportsReusableMenus", true), this._lookupCache.getFlowTypesThatSupportMenus = e3), e3; + } + getDefinitionForFlowType(e3) { + return this._flowDefinitions[e3]; + } + getDependencyTypeForFlowType(e3) { + const t3 = this.getDefinitionForFlowType(e3); + if (t3) return t3.dependencyType; + } + getFileExtensionForFlowType(e3) { + const t3 = this.getDefinitionForFlowType(e3); + return t3 ? t3.fileExtension : ""; + } + iterateFlowTypeDefinitions(e3) { + if (e3) for (const t3 of Object.values(this._flowDefinitions)) try { + e3(t3); + } catch (e4) { + } + } + getFlowTypeDisplayName(e3) { + const t3 = this.getDefinitionForFlowType(e3); + return t3 ? t3.typeDisplayName : (u.error(`flowDefinitionService::getFlowTypeDisplayName - Unknown flowType '${e3}'`), A.flow.types.inboundCall); + } + getFlowTypeForDependencyType(e3) { + if (e3) return I[e3.toLowerCase()]; + } + getFlowTypeIsAvailable(e3) { + this._isInitialized || u.error("Asking for a flow type's availability prior to the flow definition service having bootstrap data loaded. Bad!"); + const t3 = this.getDefinitionForFlowType(e3); + return t3 ? t3.isAvailable : (u.error("Asking for flow type availability for a flow type that cannot be found. Bad!"), false); + } + getIsValidFlowType(e3) { + return !f.default.isUndefined(this.getDefinitionForFlowType(e3)); + } + getOrgAndFlowTypeSupportAudio(e3) { + return e3 ? h.getOrgSupportsAudio() && this.doesFlowTypeSupportAudio(e3) : h.getOrgSupportsAudio(); + } + get className() { + return "FlowDefinitionService"; + } + dump() { + } + get isFlowDefinitionService() { + return true; + } + get isInitialize() { + return this._isInitialized; + } + }(); + t2.default = v; + }, 98126: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.clone = function(e3) { + const t3 = new e3.constructor(); + return Object.getOwnPropertyNames(e3).forEach((i3) => { + const r2 = Object.getOwnPropertyDescriptor(t3, i3); + if (r2 && !r2.writable) return; + let o = e3[i3]; + o && o.className && n2.default.isFunction(o.clone) && (o = o.clone()), t3[i3] = o; + }), t3; + }; + const n2 = i2(31635).__importDefault(i2(92140)); + }, 98134: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importDefault(i2(92140)), o = n2.__importDefault(i2(11541)), a = n2.__importDefault(i2(27702)), s = n2.__importDefault(i2(62252)); + class l extends s.default { + constructor(e3) { + super(e3), Object.defineProperties(this, { _builderPartContainerModels: { writable: true, enumerable: false }, _builderPartModels: { writable: true, enumerable: false } }), this.partAndPartsOutOfService = void 0; + } + pasteReIdOrRename(e3) { + super.pasteReIdOrRename(e3), r2.default.each(this._builderPartModels, function(t3) { + t3.pasteReIdOrRename(e3); + }.bind(this)), r2.default.each(this._builderPartContainerModels, function(t3) { + t3.pasteReIdOrRename(e3); + }.bind(this)); + } + pasteResolveOldToNewValues(e3) { + super.pasteResolveOldToNewValues(e3), r2.default.each(this._builderPartModels, function(t3) { + t3.pasteResolveOldToNewValues(e3); + }.bind(this)), r2.default.each(this._builderPartContainerModels, function(t3) { + t3.pasteResolveOldToNewValues(e3); + }.bind(this)); + } + } + t2.default = l, Object.defineProperties(l.prototype, { builderPartContainers: { enumerable: true, get: function() { + return this._builderPartContainerModels; + }, set: function(e3) { + this._builderPartContainerModels = this.reviveArray(e3, o.default); + } }, builderParts: { enumerable: true, get: function() { + return this._builderPartModels; + }, set: function(e3) { + this._builderPartModels = this.reviveArray(e3, a.default); + } } }); + }, 98151: (e2, t2, i2) => { + "use strict"; + const n2 = i2(31635), r2 = i2(12179), o = n2.__importDefault(i2(97891)), a = n2.__importDefault(i2(25234)), s = i2(47957); + class l extends a.default { + constructor(e3, t3) { + super(e3), this._loadModel(t3); + } + } + l.info = o.default.createActionInfo({ actionClass: l, canBeInTask: true, helpTopic: r2.helpTopics.actions.detectSilence, modelClass: i2(39533), name: s.actions.detectSilence, scriptingName: "ArchActionDetectSilence" }), t2.A = l; + }, 98183: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.createFind = t2.find = void 0; + var n2 = i2(65212), r2 = i2(17214); + function o(e3, t3, i3) { + var n3 = "index" === i3; + return function(i4, o2) { + var a = 0; + i4.subscribe(r2.createOperatorSubscriber(o2, function(r3) { + var s = a++; + e3.call(t3, r3, s, i4) && (o2.next(n3 ? s : r3), o2.complete()); + }, function() { + o2.next(n3 ? -1 : void 0), o2.complete(); + })); + }; + } + t2.find = function(e3, t3) { + return n2.operate(o(e3, t3, "value")); + }, t2.createFind = o; + }, 98253: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(6035)), r2 = i2(96618); + class o extends n2.default { + constructor(e3) { + super(e3); + } + get className() { + return "VoicemailFlowViewModel"; + } + get isVoicemailFlow() { + return true; + } + get type() { + return r2.flowTypes.flowTypeVoicemail; + } + get wrappedYamlName() { + return "voicemail"; + } + } + t2.default = o; + }, 98261: (e2, t2, i2) => { + const n2 = i2(37675); + e2.exports = [{ id: "cs-cz", angular: "cs", moment: "cs", humanizeDuration: "cs", pureCloudLocale: "cs", spark: "cs", italic: true, verticalTextSideways: true, direction: n2.leftToRight }, { id: "en-us", angular: "en", moment: "", humanizeDuration: "en", pureCloudLocale: "en-us", spark: "en", italic: true, verticalTextSideways: true, direction: n2.leftToRight }, { id: "es-us", angular: "es", moment: "es", humanizeDuration: "es", pureCloudLocale: "es", spark: "es", italic: true, verticalTextSideways: true, direction: n2.leftToRight }, { id: "fr-ca", angular: "fr", moment: "fr-ca", humanizeDuration: "fr", pureCloudLocale: "fr", spark: "fr-ca", italic: true, verticalTextSideways: true, direction: n2.leftToRight }, { id: "de-de", angular: "de", moment: "de", humanizeDuration: "de", pureCloudLocale: "de", spark: "de", italic: true, verticalTextSideways: true, direction: n2.leftToRight }, { id: "ja-jp", angular: "ja", moment: "ja", humanizeDuration: "ja", pureCloudLocale: "ja", spark: "ja", italic: false, verticalTextSideways: false, direction: n2.leftToRight }, { id: "nb-no", angular: "nb", moment: "nb", humanizeDuration: "no", pureCloudLocale: "no", spark: "no", italic: true, verticalTextSideways: true, direction: n2.leftToRight }, { id: "nl-nl", angular: "nl", moment: "nl", humanizeDuration: "nl", pureCloudLocale: "nl", spark: "nl", italic: true, verticalTextSideways: true, direction: n2.leftToRight }, { id: "pt-br", angular: "pt", moment: "pt-br", humanizeDuration: "pt", pureCloudLocale: "pt-br", spark: "pt-br", italic: true, verticalTextSideways: true, direction: n2.leftToRight }, { id: "it-it", angular: "it", moment: "it", humanizeDuration: "it", pureCloudLocale: "it", spark: "it", italic: true, verticalTextSideways: true, direction: n2.leftToRight }, { id: "ko-kr", angular: "ko", moment: "ko", humanizeDuration: "ko", pureCloudLocale: "ko", spark: "ko", italic: false, verticalTextSideways: false, direction: n2.leftToRight }, { id: "pl-pl", angular: "pl", moment: "pl", humanizeDuration: "pl", pureCloudLocale: "pl", spark: "pl", italic: true, verticalTextSideways: true, direction: n2.leftToRight }, { id: "ru-ru", angular: "ru", moment: "ru", humanizeDuration: "ru", pureCloudLocale: "ru", spark: "ru", italic: true, verticalTextSideways: true, direction: n2.leftToRight }, { id: "sv-se", angular: "sv", moment: "sv", humanizeDuration: "sv", pureCloudLocale: "sv", spark: "sv", italic: true, verticalTextSideways: true, direction: n2.leftToRight }, { id: "tr-tr", angular: "tr", moment: "tr", humanizeDuration: "tr", pureCloudLocale: "tr", spark: "tr", italic: true, verticalTextSideways: true, direction: n2.leftToRight }, { id: "zh-cn", angular: "zh-Hans", moment: "zh-cn", humanizeDuration: "zh_CN", pureCloudLocale: "zh-cn", spark: "zh-cn", italic: false, verticalTextSideways: false, direction: n2.leftToRight }, { id: "zh-tw", angular: "zh-Hant", moment: "zh-tw", humanizeDuration: "zh_TW", pureCloudLocale: "zh-tw", spark: "zh-tw", italic: false, verticalTextSideways: false, direction: n2.leftToRight }]; + }, 98348: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(84655)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "assignedCustomerSegment"; + } + get displayTypeName() { + return "ArchVariableAssignedCustomerSegment"; + } + get initialValue() { + return this._initialValue; + } + get isArchVariableAssignedCustomerSegment() { + return true; + } + } + t2.default = r2; + }, 98364: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.ExpressionTypeResponseAssetOptions = void 0; + const n2 = i2(65615); + class r2 extends n2.BaseExpressionTypeCollectionOptions { + static create(e3, t3) { + return new this(t3).invokeOptionsCallback(e3); + } + constructor(e3) { + super(e3); + } + get className() { + return "ExpressionTypeResponseAssetOptions"; + } + get isExpressionTypeResponseAssetOptions() { + return true; + } + } + t2.ExpressionTypeResponseAssetOptions = r2; + }, 98368: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(84655)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "journeySegment"; + } + get initialValue() { + return this._initialValue; + } + get displayTypeName() { + return "ArchVariableJourneySegment"; + } + get isArchVariableJourneySegment() { + return true; + } + } + t2.default = r2; + }, 98442: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.NluFlowLanguageStatus = t2.nonGenericLangs = t2.allLangs = void 0, t2.langCodeIsGeneric = T, t2.getDefaultFlowLanguageCode = function() { + var e3; + const i3 = (null === (e3 = u.getCurrentLanguage()) || void 0 === e3 ? void 0 : e3.toLowerCase()) || "en-us", n3 = t2.allLangs[i3]; + return n3 ? n3.id : null; + }, t2.getDisplayName = y, t2.getDefaultFlowCreationLangs = function(e3) { + const i3 = s.default.getDefinitionForFlowType(e3); + return (null == i3 ? void 0 : i3.supportsNlu) ? v(i3.availableLanguageTags) : r2.flowTypes.isAutomateFlowType(e3) ? a.default.filter(t2.nonGenericLangs, function(e4) { + return e4.isAutomateFlowCreateSuggestion; + }) : a.default.filter(t2.nonGenericLangs, function(t3) { + return t3.getSupportsAudioDataPlaybackForFlowType(e3) && t3.getSupportsTTSPlaybackForFlowType(e3) && t3.hasFlowCreationTTS; + }); + }, t2.getDefaultSystemPromptLangs = A, t2.getFlowTypesThatSupportLanguages = function() { + return s.default.getFlowTypesThatSupportLanguages(); + }, t2.getTtsSupportedLangs = N, t2.getLanguageListDisplayStr = function(e3, t3, i3) { + if (!e3) return ""; + const n3 = S(e3, i3); + return _.getListDisplayString(n3, t3); + }, t2.getSystemPromptLangList = function(e3, t3) { + return S(A(t3), e3); + }, t2.getTTSSupportedLangList = function(e3, t3) { + return S(N(t3), e3); + }, t2.getLanguageDisplayName = O, t2.getLanguageNameAndCodeDisplay = function(e3, t3) { + if (!e3) return null; + const i3 = a.default.isArray(e3) ? e3 : [e3]; + return _.getListDisplayString(i3.reduce((e4, i4) => { + const n3 = I(i4); + if (n3) { + const r3 = t3 ? y(i4) : O(i4); + e4.push((0, o.sprintf)(p.default.language.formatDisplayStringAndCode, r3, n3.idExpressionText)); + } else f.error(`Language entry not found for code '${i4}'`); + return e4; + }, [])); + }, t2.getLanguageEntry = I, t2.getLanguageEntries = v, t2.getLanguageObjectForCurrentLocale = function() { + return a.default.findWhere(g, { id: u.getCurrentLanguage() }); + }, t2.getProperCasedLangCode = function(e3) { + const i3 = t2.allLangs[e3.toLowerCase()]; + return i3 ? i3.id : null; + }, t2.getLangKnowledgeBaseLanguageTag = function(e3) { + const i3 = t2.allLangs[e3.toLowerCase()]; + return null == i3 ? void 0 : i3.knowledgeBaseLanguageTag; + }, t2.getLangSupportsConversationSummary = function(e3) { + return m.conversationSummaryLanguageSupport.isLanguageSupported(e3); + }, t2.getLangSupportsKnowledgeForFlowType = function(e3, i3) { + const n3 = t2.allLangs[e3.toLowerCase()]; + return !!(null == n3 ? void 0 : n3.getSupportsKnowledgeForFlowType(i3)); + }, t2.getTerritoryDisplayName = function(e3) { + const t3 = y(e3), i3 = t3.search(/\(/g); + return i3 >= 0 ? t3.substring(i3 + 1, t3.length - 1) : ""; + }, t2.hasFlowDebugTTS = function(e3) { + const i3 = e3 ? t2.allLangs[e3.toLowerCase()] : null; + return !!i3 && true === i3.hasFlowDebugTTS; + }, t2.hasFlowCreationLocalizedText = function(e3) { + const i3 = e3 ? t2.allLangs[e3.toLowerCase()] : null; + return !!i3 && true === i3.hasFlowCreationTTS; + }, t2.supportsShowLanguagePreviewForNluFlowType = E, t2.getLanguagePreviewStatusForNluFlowType = function(e3, t3) { + var i3; + if (!E(e3)) return C.None; + const n3 = d.bootstrapService.featureSupport.naturalLanguageUnderstanding.supportedLanguages.find((e4) => e4.language === t3); + return (null == n3 ? void 0 : n3.status) ? b.get(null === (i3 = n3.status) || void 0 === i3 ? void 0 : i3.toLowerCase()) : C.None; + }, t2.isFlowTypeWithLanguageSupportedInSystem = function(e3, t3) { + return t3 === r2.flowTypes.flowTypeInboundShortMessage || t3 === r2.flowTypes.flowTypeInboundEmail || t3 === r2.flowTypes.flowTypeInboundChat || R(e3, t3); + }, t2.supportsAudioDataAndTTSPlaybackAndSpeechRecForFlowType = R, t2.supportsFlowDebugForFlowType = function(e3, i3) { + if (i3 === r2.flowTypes.flowTypeVoicemail) return true; + const n3 = e3 ? t2.allLangs[e3.toLowerCase()] : null; + return !!n3 && (true === n3.getSupportsTTSPlaybackForFlowType(i3) && true === n3.hasFlowDebugTTS); + }, t2.supportsSpeechRecForFlowType = function(e3, i3) { + const n3 = e3 ? t2.allLangs[e3.toLowerCase()] : null; + return !!n3 && n3.getSupportsSpeechRecForFlowType(i3); + }, t2.supportsTTSPlaybackForFlow = function(e3, i3) { + const n3 = e3 ? t2.allLangs[e3.toLowerCase()] : null; + return !!n3 && n3.getSupportsTTSPlaybackForFlow(i3); + }, t2.supportsTTSPlaybackForFlowType = function(e3, i3) { + const n3 = e3 ? t2.allLangs[e3.toLowerCase()] : null; + return !!n3 && n3.getSupportsTTSPlaybackForFlowType(i3); + }, t2.supportsTranscriptionForFlowType = function(e3, i3) { + const n3 = e3 ? t2.allLangs[e3.toLowerCase()] : null; + return !!n3 && n3.getSupportsTranscriptionForFlowType(i3); + }, t2.supportsVoicemailTypeForFlowType = function(e3, i3, n3) { + const r3 = e3 ? t2.allLangs[e3.toLowerCase()] : null; + return !!r3 && r3.getSupportsVoicemailTypeForFlowType(i3, n3); + }, t2.isValidLanguageCode = function(e3) { + return !(!e3 || !e3.toLowerCase) && !!t2.allLangs[e3.toLowerCase()]; + }; + const n2 = i2(31635), r2 = i2(96618), o = i2(17604), a = n2.__importDefault(i2(92140)), s = n2.__importDefault(i2(98114)), l = n2.__importDefault(i2(4648)), u = n2.__importStar(i2(74359)), d = i2(16321), c = n2.__importStar(i2(10798)), p = n2.__importDefault(i2(41510)), _ = n2.__importStar(i2(66381)), h = i2(24812), m = i2(73078), g = i2(98261), f = i2(24032).getTopic("supportedLanguageManager"); + function T(e3) { + return e3 && -1 === e3.indexOf("-"); + } + function y(e3) { + if (!e3) return null; + const i3 = t2.allLangs[e3.toLowerCase()]; + return i3 ? i3.text : e3; + } + function S(e3, t3) { + let i3; + return t3 ? (i3 = [], a.default.each(e3, function(e4) { + t3[e4.id] && i3.push(e4.text); + })) : i3 = a.default.pluck(e3, "text"), i3; + } + function A(e3) { + const i3 = s.default.getDefinitionForFlowType(e3); + return (null == i3 ? void 0 : i3.supportsNlu) ? v(i3.availableLanguageTags) : e3 === r2.flowTypes.flowTypeInboundEmail || e3 === r2.flowTypes.flowTypeInboundShortMessage || e3 === r2.flowTypes.flowTypeInboundChat || e3 === r2.flowTypes.flowTypeWorkflow || e3 === r2.flowTypes.flowTypeWorkitem || e3 === r2.flowTypes.flowTypeInQueueEmail || e3 === r2.flowTypes.flowTypeInQueueShortMessage ? a.default.filter(t2.nonGenericLangs, function(e4) { + return e4.isAutomateFlowCreateSuggestion; + }) : a.default.filter(t2.nonGenericLangs, function(t3) { + return t3.getSupportsAudioDataPlaybackForFlowType(e3); + }); + } + function N(e3) { + return a.default.filter(h.isoLanguages, function(t3) { + return t3.getSupportsTTSPlaybackForFlowType(e3); + }); + } + function O(e3) { + if (!e3) return null; + const t3 = y(e3), i3 = t3.search(/\(/g); + return i3 >= 0 ? t3.substring(0, i3).trim() : t3.trim(); + } + function I(e3) { + return e3 ? t2.allLangs[e3.toLowerCase()] : null; + } + function v(e3) { + const t3 = []; + return e3 && a.default.each(e3, function(e4) { + const i3 = I(e4); + i3 ? t3.push(i3) : f.error("Language entry was not found for code: " + e4); + }.bind(this)), t3; + } + var C; + t2.allLangs = h.isoLanguages, t2.nonGenericLangs = a.default.reject(h.isoLanguages, (e3) => T(e3.id)), (function(e3) { + e3[e3.None = 0] = "None", e3[e3.Ga = 1] = "Ga", e3[e3.Preview = 2] = "Preview", e3[e3.EarlyPreview = 3] = "EarlyPreview"; + })(C || (t2.NluFlowLanguageStatus = C = {})); + const b = /* @__PURE__ */ new Map([["preview", C.Preview], ["earlypreview", C.EarlyPreview], ["ga", C.Ga]]); + function E(e3) { + var t3; + return c.isFeatureAvailable(l.default.nluLanguageStatus) && (null === (t3 = s.default.getDefinitionForFlowType(e3)) || void 0 === t3 ? void 0 : t3.supportsNlu); + } + function R(e3, i3) { + const n3 = e3 ? t2.allLangs[e3.toLowerCase()] : null; + return !!n3 && n3.getSupportsTTSPlaybackForFlowType(i3) && n3.getSupportsAudioDataPlaybackForFlowType(i3) && n3.getSupportsSpeechRecForFlowType(i3); + } + }, 98489: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.briefBotFlowListManager = void 0; + const n2 = i2(31635).__importStar(i2(24032)), r2 = i2(70726), o = i2(30801), a = i2(96618), s = i2(27862); + class l extends r2.BriefFlowListManager { + get dependencyType() { + return s.BotFlow; + } + constructor() { + super(), this.topic = n2.getTopic("briefBotFlowListManager"), this.additionalQueryParams = { type: a.flowTypes.flowTypeBot }, this.className = "BriefBotFlowListManager", this.uiMetadataSectionName = "botFlows", this.actionsForUsageSearch = [o.callBotFlowActionType], this.actionPropertyForUsageSearch = "botFlow", this.flowType = a.flowTypes.flowTypeBot, this._initialize(); + } + } + t2.briefBotFlowListManager = new l(); + }, 98495: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importDefault(i2(5730)), o = n2.__importStar(i2(1115)); + class a extends r2.default { + constructor(e3) { + super(e3.parentFlow, e3); + } + propertyChanged(e3) { + super.propertyChanged(e3), this.parentFlow.loaded && this.initializeDesignTimeCalled && e3 === this.variables && o.validateAction(this, false, true); + } + setNewInstanceDefaults(e3) { + return super.setNewInstanceDefaults(e3); + } + validate(e3) { + this.variables.isVariableListEmpty(e3), super.validate(e3); + } + } + a.className = "BaseConversationDataActionViewModel", t2.default = a; + }, 98552: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.expressionItems = void 0; + const n2 = i2(31635), r2 = n2.__importDefault(i2(92140)), o = n2.__importDefault(i2(73198)), a = i2(69772), s = i2(27491), l = n2.__importStar(i2(9345)), u = i2(80428), d = i2(14394); + t2.expressionItems = new class { + constructor() { + this.makeListExpressionItem = this.funcOp(-1, "MakeList", "MakeList"); + } + isSystemId(e3) { + return e3 && "__" === e3.substring(0, 2); + } + accessor(e3) { + const t3 = new a.ExpressionItem(".", e3, null); + return t3.type = ".", t3.opOrFunc = true, t3; + } + checkDecimalStr(e3, t3) { + if (!e3 || 0 === e3.length) return false; + const i3 = "-" === e3[0] ? 1 : 0, n3 = e3.length; + let r3 = n3 - 1; + for (; r3 >= 0 && "0" === e3[r3]; ) r3--; + let a2, s2 = r3 !== n3 - 1, l2 = false, u2 = 0; + for (let t4 = i3; t4 <= r3; t4++) if (a2 = e3[t4], "0" !== a2) if ("." !== a2) { + if (!(a2 >= "1" && a2 <= "9")) return false; + if (u2 === o.default.maxPrecision) return false; + u2++; + } else { + if (l2) return false; + l2 = true; + } + else 0 !== u2 || s2 ? u2++ : s2 = true; + return (t3 || l2) && (u2 > 0 || s2); + } + checkIntStr(e3) { + return e3 && e3.match(/^[-]?[0-9]+$/) && (e3.length <= 15 || 16 === e3.length && "-" === e3[0]); + } + isCollectionCreatableFromMakeList(e3, t3) { + if (!t3.isCollection) return false; + if (e3.type.isCollection) return false; + if (!t3.isMatch(e3.type.collectionType, l.settings.exact)) return false; + const i3 = s.expressionDataService.makeListFunc, n3 = s.expressionDataService.evaluateRegisteredFuncOp(this.makeListExpressionItem, i3, [e3], [], e3); + return !!n3 && !!n3.success; + } + conversionFuncWrapper(e3, t3) { + const i3 = e3.type, n3 = t3.getDefaultImplicitConversionFunc(i3); + if (!n3) return null; + const r3 = new a.ExpressionItem(n3.text, e3.position, n3.display); + return r3.opOrFunc = "fn", r3.getOperands().push(e3), r3; + } + emp(e3) { + if (!e3) return null; + const t3 = new a.ExpressionItem("emp", 1, null); + return t3.type = e3, t3; + } + enf(e3) { + if (!e3) return null; + const t3 = new a.ExpressionItem("enf", 1, null); + return t3.type = e3, t3; + } + empOrEnf(e3, t3) { + return t3 && t3.emitNonConfigItemForEmptyAndNoDefault ? this.enf(e3) : this.emp(e3); + } + getPromptsFromExpressionMetadata(e3) { + if (!e3.isOutput) return e3.metaData && e3.metaData.references && e3.metaData.references.length > 0 ? r2.default.filter(e3.metaData.references, function(e4) { + return e4.type === u.expressionTypeNames.prompt; + }) : []; + } + getUniquePromptIds(e3, t3, i3) { + return t3 || (t3 = []), r2.default.each(e3, function(e4, n3) { + if (e4.operands && r2.default.each(e4.operands, function(e5) { + this.getUniquePromptIds(e5, t3, i3); + }.bind(this)), e4.type === u.expressionTypeNames.prompt && (!i3 || "sysref" !== n3 || "ref" === n3)) { + const i4 = e4.val; + r2.default.find(t3, function(e5) { + return e5.id === i4; + }) || t3.push({ id: i4, type: e4.type, isSysRef: "sysref" === n3 }); + } + }.bind(this)), t3; + } + intLiteral(e3, t3, i3) { + return this.literal(e3, t3.toString(), d.globalTypes.integer, i3); + } + litColl(e3) { + if (!e3) return null; + const t3 = new a.ExpressionItem("lit", 1, ""); + return t3.type = e3, t3.items = [], t3; + } + literal(e3, t3, i3, n3) { + if (!i3) return null; + const r3 = new a.ExpressionItem("lit", e3, t3); + return r3.type = i3, n3 && r3.addAdditionalProperties(n3), r3; + } + nul(e3, t3) { + const i3 = new a.ExpressionItem("nul", e3, null); + return i3.type = t3 || d.globalTypes.notSet, i3; + } + fieldAccess(e3) { + const t3 = new a.ExpressionItem(".", e3, null); + return t3.opOrFunc = "op", t3; + } + funcOp(e3, t3, i3) { + const n3 = new a.ExpressionItem(t3, e3, i3); + return n3.opOrFunc = "fn", n3; + } + getStringLiteralText(e3) { + return this.stringLiteral(1, e3, d.globalTypes.string).getText(); + } + op(e3, t3, i3) { + const n3 = new a.ExpressionItem(t3, e3, i3); + return n3.opOrFunc = "op", n3; + } + root() { + const e3 = new a.ExpressionItem("root", -1, "**ROOT**"); + return e3.opOrFunc = "rt", e3; + } + reference(e3, t3, i3) { + const n3 = new a.ExpressionItem(this.isSystemId(t3.id) || t3.isSystem ? "sysref" : "ref", e3, i3); + n3.type = t3.type, n3.val = t3.id; + const r3 = t3.expressionText; + return r3 && i3 !== r3 && (n3.knownExprText = r3), n3; + } + stringWrapper(e3) { + const t3 = new a.ExpressionItem("tostring", e3.position, "ToString"); + return t3.opOrFunc = "fn", t3.getOperands().push(e3), t3; + } + stringLiteral(e3, t3, i3, n3) { + if (t3.indexOf("\\") >= 0) { + const e4 = []; + for (let i4 = 0; i4 < t3.length; i4++) if ("\\" === t3[i4]) switch (t3[i4 + 1]) { + case "\\": + e4.push("\\"), i4++; + break; + case '"': + e4.push('"'), i4++; + break; + case "r": + e4.push("\r"), i4++; + break; + case "n": + e4.push("\n"), i4++; + break; + case "f": + e4.push("\f"), i4++; + break; + case "t": + e4.push(" "), i4++; + break; + default: + e4.push(t3[i4]); + } + else e4.push(t3[i4]); + t3 = e4.join(""); + } + return this.literal(e3, t3, i3, n3); + } + propAccessLiteral(e3, t3, i3, n3) { + t3 = t3.replace(/\\"/g, '"').replace(/\\\\/g, "\\").replace(/\r/g, "\r").replace(/\n/g, "\n").replace(/\f/g, "\f").replace(/\t/g, " "); + const r3 = this.literal(e3, t3, d.globalTypes.string); + return r3.lit.val = i3, n3 && (r3.lit.propGroup = n3), r3; + } + }(); + }, 98590: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.connectable = void 0; + var n2 = i2(76808), r2 = i2(48051), o = i2(35884), a = { connector: function() { + return new n2.Subject(); + }, resetOnDisconnect: true }; + t2.connectable = function(e3, t3) { + void 0 === t3 && (t3 = a); + var i3 = null, n3 = t3.connector, s = t3.resetOnDisconnect, l = void 0 === s || s, u = n3(), d = new r2.Observable(function(e4) { + return u.subscribe(e4); + }); + return d.connect = function() { + return i3 && !i3.closed || (i3 = o.defer(function() { + return e3; + }).subscribe(u), l && i3.add(function() { + return u = n3(); + })), i3; + }, d; + }; + }, 98598: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.ListPickerSectionType = t2.PROP_ITEMS = t2.PROP_MULTI_SELECT_ENABLED = t2.PROP_TITLE = void 0; + const n2 = i2(31635), r2 = i2(53476), o = i2(28562), a = n2.__importDefault(i2(73198)), s = i2(27491), l = i2(94765), u = i2(2584), d = i2(80428), c = n2.__importDefault(i2(4648)), p = i2(66381), _ = i2(14394), h = i2(60873), m = i2(10798), g = i2(17604), f = n2.__importDefault(i2(41510)), T = i2(47957); + t2.PROP_TITLE = "title", t2.PROP_MULTI_SELECT_ENABLED = "multiselectenabled", t2.PROP_ITEMS = "items"; + class y extends l.ExpressionType { + constructor(e3, t3, i3) { + super(e3, t3, i3); + } + get className() { + return "ListPickerSectionType"; + } + canConvertLitToExpression(e3) { + return s.expressionDataService.isFunctionTextAvailableForFlowTypeAndOperandTypes("MakeListPickerSection", e3, [_.globalTypes.string, _.globalTypes.boolean, _.globalTypes.listPickerItemCollection]); + } + convertLitToExpression(e3, t3, i3, n3) { + var r3, o2, s2; + return n3 && this.canConvertLitToExpression(e3) ? `MakeListPickerSection(${(null === (r3 = this.getPropTitle(n3)) || void 0 === r3 ? void 0 : r3.getEmbeddableExpressionText()) || a.default.notSet}, ${(null === (o2 = this.getPropMultiSelectEnabled(n3)) || void 0 === o2 ? void 0 : o2.getEmbeddableExpressionText()) || a.default.notSet}, ${(null === (s2 = this.getPropItems(n3)) || void 0 === s2 ? void 0 : s2.getEmbeddableExpressionText()) || a.default.notSet})` : ""; + } + _getLiteralValueOfExpression() { + return ""; + } + createExpressionOptionClass() { + return new u.ExpressionTypeListPickerSectionOptions(); + } + get supportsLiteralEditor() { + return true; + } + getPropTitle(e3) { + return e3.getProperty(t2.PROP_TITLE); + } + getPropMultiSelectEnabled(e3) { + return e3.getProperty(t2.PROP_MULTI_SELECT_ENABLED); + } + getPropItems(e3) { + return e3.getProperty(t2.PROP_ITEMS); + } + configurePropertyCreationParams(e3, i3, n3) { + var s2; + switch (super.configurePropertyCreationParams(e3, i3, n3), n3.options.setIninTestingField(`list-picker-section-${i3.name}`), null === (s2 = i3.name) || void 0 === s2 ? void 0 : s2.toLowerCase()) { + case t2.PROP_TITLE: + n3.options.setAllowedBuilderIds([o.builderIds.parts.genericString]); + break; + case t2.PROP_MULTI_SELECT_ENABLED: + n3.options.setAllowModeLiteralOnly(), n3.options.setUiDisableOnOutOfService(true), (0, r2.areOptionsBooleanType)(n3.options) && (n3.options.setHideLabel(true), n3.options.setUseToggle(true), n3.options.setDefaultText(a.default.false), n3.options.setBoolText(T.generic.selectMulti, T.generic.selectMulti)); + case t2.PROP_ITEMS: + } + } + initializeDesignTime(e3) { + super.initializeDesignTime(e3), this.updatePropertiesOutOfServiceStatus(e3); + } + updatePropertiesOutOfServiceStatus(e3) { + const t3 = e3.parent; + if ((null == t3 ? void 0 : t3.initializeDesignTimeCalled) && e3.isLiteralMode) { + const i3 = this.getPropMultiSelectEnabled(e3); + t3.hasSingleSelectSlot && i3.setAsLiteral(a.default.false); + } + } + get hasRichLiteralEditor() { + return true; + } + useCustomExpressionEditor(e3) { + return !!(null == e3 ? void 0 : e3.parentList); + } + getUniqueTitleName(e3) { + let t3 = T.generic.section; + const i3 = e3.parentList; + if (null == i3 ? void 0 : i3.isLiteralMode) { + const e4 = i3.collectionItems.items.map((e5) => { + const t4 = e5.type.getPropTitle(e5); + if (null == t4 ? void 0 : t4.isLiteralMode) return t4.text; + }); + for (let n3 = 1; n3 < i3.collectionItems.items.length && (t3 = `${T.generic.section} ${n3}`, e4.includes(t3)); n3++) ; + } + return t3; + } + isUnknownAtDesignTime(e3) { + if (!e3.isLiteralMode) return true; + const t3 = this.getPropItems(e3); + return !(null == t3 ? void 0 : t3.isLiteralMode) || t3.collectionItems.items.some((e4) => e4.type.isValueUnknownAtDesignTime(e4)); + } + validateLiteralCollection(e3) { + if (e3.collectionItems.length > 1 && (0, h.isAskForSlotActionViewModel)(e3.parent) && e3.parent.hasSingleSelectSlot) { + let e4; + return e4 = (0, m.isFeatureAvailable)(c.default.whatsAppListPickerFeature) ? (0, g.sprintf)(T.cardsAndCars.listPickerType.invalidMultipleSectionsWarningMessage, (0, p.getListDisplayString)(f.default.sessionSources.applebusinesschat), (0, p.getListDisplayString)(f.default.sessionSources.whatsapp)) : T.cardsAndCars.listPickerType.invalidMultipleSectionsWarning, { issueText: e4, isError: false }; + } + return super.validateLiteralCollection(e3); + } + static findOrCreateMissingValuesSection(e3) { + if (!(null == e3 ? void 0 : e3.isLiteralMode)) return; + let t3 = e3.collectionItems.items.find((e4) => { + if (e4.isLiteralMode) return e4.type.getPropTitle(e4).text === T.cardsAndCars.listPickerType.missingValuesSectionLabel; + }); + return t3 || (t3 = e3.collectionItems.add(), t3.type.getPropTitle(t3).text = T.cardsAndCars.listPickerType.missingValuesSectionLabel), t3; + } + } + t2.ListPickerSectionType = y, y.typeIdentifier = d.expressionTypeNames.listPickerSection; + }, 98631: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(81574)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "journeyBrowser"; + } + get family() { + } + get version() { + } + get lang() { + } + get fingerprint() { + } + get isMobile() { + } + get viewHeight() { + } + get viewWidth() { + } + get featuresFlash() { + } + get featuresJava() { + } + get featuresPdf() { + } + get featuresWebrtc() { + } + get displayTypeName() { + return "ArchValueJourneyBrowser"; + } + get isArchValueJourneyBrowser() { + return true; + } + } + t2.default = r2; + }, 98643: (e2, t2, i2) => { + const n2 = i2(45214), r2 = i2(94886); + function o() { + Object.defineProperties(this, { _schedules: { writable: true }, _closedSchedules: { writable: true }, _openSchedules: { writable: true } }), this.id = void 0, this.name = void 0, o.baseConstructor.apply(this, arguments); + } + n2.extend(o, "ScheduleGroup"), Object.defineProperties(o.prototype, { displayName: { get: function() { + return this.name; + }, set: function(e3) { + this.name = e3; + } }, label: { get: function() { + return this.name; + }, set: function(e3) { + this.name = e3; + } }, schedules: { get: function() { + return this._schedules; + }, set: function(e3) { + this._schedules = this.reviveArray(e3, r2); + } }, openSchedules: { get: function() { + return this._openSchedules; + }, set: function(e3) { + this._openSchedules = this.reviveArray(e3, r2); + } }, closedSchedules: { get: function() { + return this._closedSchedules; + }, set: function(e3) { + this._closedSchedules = this.reviveArray(e3, r2); + } } }), e2.exports = o; + }, 98717: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.ArchLogging = void 0; + const n2 = i2(31635), r2 = n2.__importDefault(i2(92140)), o = i2(17604), a = n2.__importDefault(i2(78432)), s = n2.__importStar(i2(12847)), l = n2.__importStar(i2(36781)), u = i2(55909), d = i2(33951), c = i2(15896), p = "noThrow", _ = "throwMessageFullText", h = "throwMessageText", m = "'ArchLogging'", g = "[" + m + "]"; + function f() { + let e3 = ""; + r2.default.each(arguments, function() { + e3 += "%s"; + }); + const t3 = Array.prototype.slice.call(arguments); + return (0, o.vsprintf)(e3, t3); + } + class T { + get lastError() { + return this._lastError; + } + set lastError(e3) { + this._lastError = e3; + } + get lastNote() { + return this._lastNote; + } + set lastNote(e3) { + this._lastNote = e3; + } + get lastWarning() { + return this._lastWarning; + } + set lastWarning(e3) { + this._lastWarning = e3; + } + constructor() { + this.logErrors = true, this.logNotes = true, this.logNotesVerbose = false, this.logNetworkActivity = false, this.logWarnings = true, l.serviceListen(l.rateLimited, function(e3) { + this.logNote(c.inverse(`Currently rate limited, please wait ${e3 / 1e3} seconds...`)); + const t3 = setInterval(() => { + (e3 -= 5e3) > 0 ? this.logNote(c.inverse(`Currently rate limited, please wait ${e3 / 1e3} seconds...`)) : clearInterval(t3); + }, 5e3); + }.bind(this)); + } + get _logHeader() { + return g; + } + _invokeCallbackLoggingHook(e3, t3, i3, n3, r3, o2) { + if (!this._loggingHook) return false; + try { + return true === this._loggingHook({ logType: e3, messageFull: t3, messageParts: { displayTypeName: o2, header: r3 || "[ArchLogging Default]", itemInfo: i3, message: n3 } }); + } catch (e4) { + s.errorAlways("Exception encountered calling Architect Scripting logging hook - '" + e4 + "'"); + } + return false; + } + _logToConsole(...e3) { + s.logAlways(...e3); + } + _getLoggingSettings() { + return { logErrors: this.logErrors, logNotes: this.logNotes, logNotesVerbose: this.logNotesVerbose, logNetworkActivity: this.logNetworkActivity, logWarnings: this.logWarnings }; + } + _restoreLoggingSettings(e3) { + r2.default.isObject(e3) && (this.logErrors = e3.logErrors, this.logNotes = e3.logNotes, this.logNotesVerbose = e3.logNotesVerbose, this.logNetworkActivity = e3.logNetworkActivity, this.logWarnings = e3.logWarnings); + } + _suppressLogging() { + const e3 = this._getLoggingSettings(); + return this.logErrors = false, this.logNotes = false, this.logNotesVerbose = false, this.logNetworkActivity = false, this.logWarnings = false, e3; + } + _errorToConsole(...e3) { + s.errorAlways(...e3); + } + _warningToConsole(...e3) { + s.warnAlways(...e3); + } + _logItemCommon(e3, t3, i3, n3, r3, o2, s2, l2, p2) { + d.ParameterValidator.expectBool(e3, function() { + return u.ParameterInfo.createFunctionParameter(this.displayTypeName, "_logItemCommon", "shouldLog"); + }.bind(this)), d.ParameterValidator.expectString(t3, function() { + return u.ParameterInfo.createFunctionParameter(this.displayTypeName, "_logItemCommon", "logType"); + }.bind(this)), d.ParameterValidator.expectObject(i3, function() { + return u.ParameterInfo.createFunctionParameter(this.displayTypeName, "_logItemCommon", "itemInfo"); + }.bind(this)), d.ParameterValidator.expectString(n3, function() { + return u.ParameterInfo.createFunctionParameter(this.displayTypeName, "_logItemCommon", "itemMessage"); + }.bind(this)), d.ParameterValidator.expectString(r3, function() { + return u.ParameterInfo.createFunctionParameter(this.displayTypeName, "_logItemCommon", "logHeader"); + }.bind(this)), d.ParameterValidator.expectString(o2, function() { + return u.ParameterInfo.createFunctionParameter(this.displayTypeName, "_logItemCommon", "displayTypeName"); + }.bind(this)), d.ParameterValidator.expectBool(s2, function() { + return u.ParameterInfo.createFunctionParameter(this.displayTypeName, "_logItemCommon", "wantInvalidMessage"); + }.bind(this)), d.ParameterValidator.expectString(l2, function() { + return u.ParameterInfo.createFunctionParameter(this.displayTypeName, "_logItemCommon", "throwType"); + }.bind(this), true), d.ParameterValidator.expectBool(p2, function() { + return u.ParameterInfo.createFunctionParameter(this.displayTypeName, "_logItemCommon", "wantInErrorMessage"); + }.bind(this), true); + let m2 = ""; + switch (t3) { + case a.default.LOG_TYPES.error: + m2 = "ERROR!"; + break; + case a.default.LOG_TYPES.warning: + m2 = "WARNING!"; + } + const f2 = (function(e4, t4, i4, n4, r4, o3, a2) { + let s3 = "", l3 = false; + return "Called Object" !== e4.title && (s3 += `- ${e4.title}`, l3 = true, "Method" !== e4.title && e4.label && (s3 += ` '${e4.label}'`), e4.methodName && (s3 += " in '", n4 && (s3 += `${n4}.`), s3 += `${e4.methodName}'`)), r4 && l3 ? s3 += " is invalid. Reason: " : a2 && l3 && (s3 += " is in error. Reason: "), l3 || (s3 += "- "), s3.endsWith(" ") || (s3 += " "), o3 && (s3 += `${o3} `), s3 += t4, t4.length && !t4.endsWith(".") && (s3 += "."), i4 === g && (i4 = void 0), i4 && (s3 += c.cyan(` -- ${i4}`)), s3; + })(i3, n3, r3, o2, s2, m2, p2); + if (e3) switch (this._invokeCallbackLoggingHook(t3, f2, i3, n3, r3, o2) || (t3 === a.default.LOG_TYPES.error ? this._errorToConsole(f2) : t3 === a.default.LOG_TYPES.warning ? this._warningToConsole(f2) : this._logToConsole(f2)), t3) { + case a.default.LOG_TYPES.error: + this.lastError = f2; + break; + case a.default.LOG_TYPES.warning: + this.lastWarning = f2; + break; + case a.default.LOG_TYPES.info: + this.lastNote = f2; + } + switch (l2) { + case h: + throw n3; + case _: + throw f2; + } + } + get displayTypeName() { + return m; + } + itemInvalid(e3, t3, i3, n3, r3) { + this._logItemCommon(this.logErrors && !!r3, a.default.LOG_TYPES.error, e3, t3, i3, n3, true, _); + } + itemError(e3, t3, i3, n3) { + this._logItemCommon(this.logErrors, a.default.LOG_TYPES.error, e3, t3, i3, n3, false, p, true); + } + itemNote(e3, t3, i3, n3) { + this._logItemCommon(this.logNotes, a.default.LOG_TYPES.info, e3, t3, i3, n3, false, p); + } + itemNoteVerbose(e3, t3, i3, n3) { + this._logItemCommon(this.logNotesVerbose, a.default.LOG_TYPES.info, e3, t3, i3, n3, false, p); + } + itemThrow(e3, t3, i3, n3) { + this._logItemCommon(false, a.default.LOG_TYPES.error, e3, t3, i3, n3, false, _); + } + itemWarning(e3, t3, i3, n3) { + this._logItemCommon(this.logWarnings, a.default.LOG_TYPES.warning, e3, t3, i3, n3, false, p); + } + logError(...e3) { + this._logItemCommon(this.logErrors, a.default.LOG_TYPES.error, { methodName: "logError", title: "Called Object" }, f.apply(this, e3), this._logHeader, this.displayTypeName, false, p); + } + logErrorAndThrow(...e3) { + this._logItemCommon(this.logErrors, a.default.LOG_TYPES.error, { methodName: "logErrorAndThrow", title: "Called Object" }, f.apply(this, e3), this._logHeader, this.displayTypeName, false, h); + } + logNote(...e3) { + this._logItemCommon(this.logNotes, a.default.LOG_TYPES.info, { methodName: "logNote", title: "Called Object" }, f.apply(this, e3), this._logHeader, this.displayTypeName, false, p); + } + logNoteVerbose(...e3) { + this._logItemCommon(this.logNotesVerbose, a.default.LOG_TYPES.info, { methodName: "logNoteVerbose", title: "Called Object" }, f.apply(this, e3), this._logHeader, this.displayTypeName, false, p); + } + logWarning(...e3) { + this._logItemCommon(this.logWarnings, a.default.LOG_TYPES.warning, { methodName: "logWarning", title: "Called Object" }, f.apply(this, e3), this._logHeader, this.displayTypeName, false, p); + } + setLoggingCallback(e3) { + const t3 = { label: "loggingCallback", methodName: "setLoggingCallback", title: "Parameter" }; + r2.default.isFunction(e3) || this.itemInvalid(t3, "The value is not a valid JavaScript function.", this._logHeader, this.displayTypeName), this._loggingHook = e3, this.itemNote(t3, "Logging callback hook successfully set.", this._logHeader, this.displayTypeName); + } + } + t2.ArchLogging = T, t2.default = new T(); + }, 98835: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.groupManager = t2.GroupManager = void 0; + const n2 = i2(31635).__importDefault(i2(47532)), r2 = i2(24032), o = i2(27862), a = i2(58650); + class s extends n2.default { + get dependencyType() { + return o.Group; + } + constructor() { + super(), this.topic = (0, r2.getTopic)("groupManager"), this.apiCallList = a.getGroups, this.apiCallSingle = a.getGroup, this.className = "GroupManager", this.dependencyContext = null, this.networkType = "groups", this.removeDeleted = true, this._initialize(); + } + } + t2.GroupManager = s, t2.groupManager = new s(); + }, 98962: (e2, t2, i2) => { + const n2 = i2(92140), r2 = i2(45214), o = i2(89982), a = i2(83462); + function s(e3) { + Object.defineProperties(this, { _createdBy: { writable: true }, _supportedLanguages: { writable: true } }), this.commitVersion = void 0, this.configurationVersion = void 0, this.dateCreated = void 0, this.id = void 0, this.name = n2.isString(e3) ? e3 : void 0, this.nluInfo = void 0, this.secure = void 0, this.generationId = void 0, this.debug = void 0, this.virtualAgentEnabled = void 0, this.agenticVirtualAgentEnabled = void 0, s.baseConstructor.apply(this, arguments); + } + r2.extend(s, "FlowVersion"), Object.defineProperties(s.prototype, { createdBy: { enumerable: true, get: function() { + return this._createdBy; + }, set: function(e3) { + this._createdBy = this.reviveItem(e3, a); + } }, supportedLanguages: { enumerable: true, get: function() { + return this._supportedLanguages; + }, set: function(e3) { + this._supportedLanguages = this.reviveArray(e3, o); + } } }), e2.exports = s; + }, 99006: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importDefault(i2(92140)), o = i2(17604), a = n2.__importStar(i2(12847)), s = n2.__importDefault(i2(87675)), l = i2(79519), u = i2(79519), d = i2(79519), c = i2(79519), p = n2.__importStar(i2(24032)), _ = n2.__importStar(i2(69453)), h = n2.__importStar(i2(66314)), m = i2(80428), g = n2.__importDefault(i2(65302)), f = p.getTopic("JsonSchemaWrapper"); + t2.default = class { + constructor(e3, t3, i3, n3, r3) { + this._baseJsonSchemaIdNoNamespace = e3, this._rawJsonSchema = t3, this._schemaSource = i3, this._schemaUsage = n3 || c.JsonSchemaUsage.none, this._baseJsonSchemaIdFull = e3 ? `${this._schemaSource}::${e3}` : this._schemaSource, this._displayName = r3; + } + get rawJsonSchema() { + return this._rawJsonSchema; + } + get title() { + var e3; + return null === (e3 = this._rawJsonSchema) || void 0 === e3 ? void 0 : e3.title; + } + get displayName() { + return this._displayName; + } + get hasSchema() { + return r2.default.isObject(this._rawJsonSchema) && !r2.default.isEmpty(this.rawJsonSchema); + } + get schemaHasProperties() { + var e3, t3; + return r2.default.isObject(null === (e3 = this._rawJsonSchema) || void 0 === e3 ? void 0 : e3.properties) && !r2.default.isEmpty(null === (t3 = this.rawJsonSchema) || void 0 === t3 ? void 0 : t3.properties); + } + get definitions() { + var e3; + if (r2.default.isObject(null === (e3 = this._rawJsonSchema) || void 0 === e3 ? void 0 : e3.definitions)) return this._rawJsonSchema.definitions; + } + get isJsonSchemaWrapper() { + return true; + } + get isErrorSchema() { + return (this._schemaUsage | c.JsonSchemaUsage.error) !== c.JsonSchemaUsage.none; + } + get isInputSchema() { + return (this._schemaUsage | c.JsonSchemaUsage.input) !== c.JsonSchemaUsage.none; + } + get isOutputSchema() { + return (this._schemaUsage | c.JsonSchemaUsage.output) !== c.JsonSchemaUsage.none; + } + get schemaSource() { + return this._schemaSource; + } + get baseJsonSchemaIdFull() { + return this._baseJsonSchemaIdFull; + } + get baseJsonSchemaIdNoNamespace() { + return this._baseJsonSchemaIdNoNamespace; + } + get trustArchitectTypeHints() { + return this.schemaSource === l.CustomJsonNamespace.architectFlow; + } + get trustGCTypeHints() { + switch (this.schemaSource) { + case l.CustomJsonNamespace.conversationAttribute: + case l.CustomJsonNamespace.decisionTable: + case l.CustomJsonNamespace.externalContact: + case l.CustomJsonNamespace.structuredParticipantData: + case l.CustomJsonNamespace.worktype: + return true; + default: + return false; + } + } + setProcessingFailure(e3, t3, i3, n3) { + var r3, o2; + e3.failure = { hierarchy: null === (r3 = e3.jsonSchemaPropertyHierarchy) || void 0 === r3 ? void 0 : r3.concat(), hierarchyStr: null === (o2 = e3.jsonSchemaPropertyHierarchy) || void 0 === o2 ? void 0 : o2.join("/"), code: t3, displayStr: i3, logStr: n3 }; + } + setProcessingWarning(e3, t3, i3, n3) { + var r3, o2; + e3.warning = { hierarchy: null === (r3 = e3.jsonSchemaPropertyHierarchy) || void 0 === r3 ? void 0 : r3.concat(), hierarchyStr: null === (o2 = e3.jsonSchemaPropertyHierarchy) || void 0 === o2 ? void 0 : o2.join("/"), code: t3, displayStr: i3, logStr: n3 }; + } + get dynamicSchemaServiceSchemaVersion() { + var e3; + if (this.trustGCTypeHints) return r2.default.isActualNumber(null === (e3 = this.rawJsonSchema) || void 0 === e3 ? void 0 : e3.version) ? this.rawJsonSchema.version : 1; + } + checkParsedReturnType(e3, t3, i3, n3, r3) { + const a2 = n3.getType(i3.dataTypeId, i3.isCollection); + if (a2) { + if (null == t3 ? void 0 : t3.isCommonModuleFlow) { + if (!t3.destinationFlowTypes.find((e4) => !a2.isAvailableForFlowType(e4))) return i3; + } else if (!t3 || a2.isAvailableForFlowType(t3.type)) return i3; + this.setProcessingFailure(e3, u.JsonSchemaProcessingFailure.failureMappedDataTypeUnavailableToFlowType, (0, o.sprintf)(_.jsonSchemaProcessing.schemaTypeMapsToUnavailableDataType, r3, i3.dataTypeId, i3.isCollection, a2.displayString, t3.flowTypeDisplayName)); + } else this.setProcessingFailure(e3, u.JsonSchemaProcessingFailure.failureUnableToMapSchemaPropertyToDataType, (0, o.sprintf)(_.jsonSchemaProcessing.schemaUnableToMapPropertyToType, r3, i3.dataTypeId, i3.isCollection)); + } + processDataTypeDefinitionsForSchema(e3, t3, i3, n3, l2, c2, p2, g2, f2) { + var T, y, S; + if (l2 && !e3.failure) try { + e3.jsonSchemaPropertyHierarchy.push(i3); + const A = e3.jsonSchemaPropertyHierarchy.join("/"); + a.info(`Processing JSON schema path: ${A}`); + const N = s.default.createAndPopulateRootPropertiesFromJsonSchema(l2); + if (this.trustArchitectTypeHints && g2) { + const n4 = l2.archDataTypeId; + if (r2.default.isString(n4) && n4.length) return n4.endsWith("_coll") ? (N.dataTypeId = n4.substring(0, n4.length - 5), N.isCollection = true) : (N.dataTypeId = n4, N.isCollection = false), this.checkParsedReturnType(e3, t3, N, c2, i3); + } + if (!N.dataTypeId && this.trustGCTypeHints && g2) { + const n4 = this._getTypeDefinitionForDssRef(f2, e3, c2, t3, this.dynamicSchemaServiceSchemaVersion); + if (void 0 !== n4.dataTypeId && (N.dataTypeId = n4.dataTypeId), void 0 !== n4.isCollection && (N.isCollection = n4.isCollection), N.dataTypeId) return N.isCollection = "array" === (null == l2 ? void 0 : l2.type), this.checkParsedReturnType(e3, t3, N, c2, i3); + } + if (r2.default.isArray(l2.allOf) && l2.allOf.length) { + const i4 = this.processDataTypeDefinitionsForSchema(e3, t3, "allOf", n3, l2.allOf[0], c2, p2, g2); + return i4 && (N.dataTypeId = i4.dataTypeId, N.isCollection = N.isCollection || i4.isCollection), N; + } + if (r2.default.isArray(l2.oneOf) && l2.oneOf.length) { + const i4 = this.processDataTypeDefinitionsForSchema(e3, t3, "oneOf", n3, l2.oneOf[0], c2, p2, g2); + return i4 && (N.dataTypeId = i4.dataTypeId, N.isCollection = N.isCollection || i4.isCollection), N; + } + const O = l2.$ref; + if (r2.default.isString(O) && O.startsWith("#/definitions/")) { + const i4 = O.slice(14), n4 = r2.default.isObject(this.definitions) ? this.definitions[i4] : void 0; + if (!n4) return void this.setProcessingFailure(e3, u.JsonSchemaProcessingFailure.failureDefinitionNameNotFound, (0, o.sprintf)(_.jsonSchemaProcessing.schemaReferenceNotFound, i4)); + const a2 = this.processDataTypeDefinitionsForSchema(e3, t3, ` >> $ref >> #/definitions/${i4}`, i4, n4, c2, p2, true, `#/definitions/${i4}`); + return a2 && (N.dataTypeId = a2.dataTypeId, N.isCollection = N.isCollection || a2.isCollection), N; + } + if (!N.dataTypeId) { + switch (l2.type) { + case "boolean": + N.dataTypeId = m.expressionTypeNames.boolean; + break; + case "number": + N.dataTypeId = m.expressionTypeNames.decimal; + break; + case "string": + N.dataTypeId = m.expressionTypeNames.string; + break; + case "integer": + N.dataTypeId = (null === (T = e3.settings) || void 0 === T ? void 0 : T.convertGCTypesToArchitectTypes) ? m.expressionTypeNames.integer : m.expressionTypeNames.decimal; + break; + case "array": + N.isCollection = true, l2.items ? N.dataTypeId = null === (y = this.processDataTypeDefinitionsForSchema(e3, t3, "items", n3, l2.items, c2, p2, g2)) || void 0 === y ? void 0 : y.dataTypeId : N.dataTypeId = m.expressionTypeNames.json; + } + if (N.dataTypeId) return this.checkParsedReturnType(e3, t3, N, c2, i3); + } + const I = this._getDataTypeDefViewModelForObject(l2, e3, t3, i3, n3, c2, p2); + if (I) return I; + let v = h.createCustomJsonExpressionDataTypeStr(this.schemaSource, this.baseJsonSchemaIdNoNamespace); + if ("object" === l2.type) { + let e4 = null === (S = l2.title) || void 0 === S ? void 0 : S.replace(/ /g, "_SPACE_"); + e4 = e4 || n3, v += `_${e4}`; + } + return N.dataTypeId = v, N.id = v, N.name = n3.length > 0 ? n3 : this.displayName, !!e3.customDataTypeDefs[v] || (a.info(`Creating a new JSON expression data type with name '${n3}' (id: '${v}').`), N.name = n3, N.additionalProperties = false !== l2.additionalProperties, (null == l2 ? void 0 : l2.properties) ? r2.default.each(null == l2 ? void 0 : l2.properties, (i4, n4) => { + var r3; + if (e3.failure) return; + a.info(`Processing JSON schema property '${n4}'.`); + const o2 = i4.title || "", s2 = i4.description || ""; + let u2; + u2 = o2 ? s2 ? `${o2} - ${s2}` : o2 : s2 || ""; + const d2 = this.processDataTypeDefinitionsForSchema(e3, t3, `properties/${n4}`, `${p2} ${n4}`, i4, c2, p2, g2); + d2.name = n4, d2.id = n4, d2.description = u2, d2.isRequired = null === (r3 = l2.required) || void 0 === r3 ? void 0 : r3.includes(n4), N.addProperty(d2), a.info(`Property added '${n4}' with type '${d2.dataTypeId}'.`); + }) : this.setProcessingWarning(e3, d.JsonSchemaProcessingWarning.warningNoProperties, _.jsonSchemaProcessing.referencedSchemaHasNoProperties), e3.customDataTypeDefs[N.dataTypeId] = N), N; + } finally { + e3.jsonSchemaPropertyHierarchy.pop(); + } + } + createDataTypeDefViewModelsForJsonSchema(e3, t3, i3) { + var n3; + const r3 = { customDataTypeDefs: {}, jsonSchemaPropertyHierarchy: [], rootDataTypeDefId: void 0, settings: i3 || { convertGCTypesToArchitectTypes: true } }; + let o2; + if (r3.settings.convertGCTypesToArchitectTypes && !e3 && this.setProcessingWarning(r3, d.JsonSchemaProcessingWarning.warningGeneric, "processing will be performed in a flow agnostic manner."), (null == this ? void 0 : this.hasSchema) || this.setProcessingFailure(r3, u.JsonSchemaProcessingFailure.failureNoSchema, _.jsonSchemaProcessing.noSchemaToProcess), !r3.failure) { + let e4; + e4 = t3 ? "" : this.title, void 0 === e4 ? (r3.jsonSchemaPropertyHierarchy = ["#"], this.setProcessingFailure(r3, u.JsonSchemaProcessingFailure.failureUnableToDetermineIdentifierSuffix, _.jsonSchemaProcessing.schemaHasNoName)) : o2 = e4, this.schemaSource !== l.CustomJsonNamespace.decisionTable && this.schemaSource !== l.CustomJsonNamespace.conversationAttribute || (o2 = this.displayName); + } + try { + const t4 = g.default.getTypeGroup(e3); + r3.rootDataTypeDefId = null === (n3 = this.processDataTypeDefinitionsForSchema(r3, e3, "#", o2, this.rawJsonSchema, t4, o2, false)) || void 0 === n3 ? void 0 : n3.dataTypeId, r3.rootDataTypeDefId || r3.failure || this.setProcessingFailure(r3, u.JsonSchemaProcessingFailure.failureUnableToDetermineRootType, _.jsonSchemaProcessing.schemaUnableToDetermineRootType); + } catch (e4) { + f.exception(e4, "Exception caught processing a JSON schema with the JSON schema wrapper."), r3.failure || this.setProcessingFailure(r3, u.JsonSchemaProcessingFailure.failureGeneric, _.jsonSchemaProcessing.schemaUnableToProcess); + } + return delete r3.jsonSchemaPropertyHierarchy, r3; + } + checkCanBeUsedInArchitect(e3) { + return { processingResult: this.createDataTypeDefViewModelsForJsonSchema(e3) }; + } + _getExpressionTypeForJsonSchemaDatetimeType(e3) { + return e3 ? m.expressionTypeNames.dateTime : m.expressionTypeNames.string; + } + _getExpressionTypeForJsonSchemaDateType(e3, t3, i3) { + return e3 ? t3.getType(m.expressionTypeNames.date).isAvailableForFlowType(i3) ? m.expressionTypeNames.date : m.expressionTypeNames.dateTime : m.expressionTypeNames.string; + } + _getDataTypeDefViewModelForObject(e3, t3, i3, n3, r3, o2, s2) { + const l2 = this._getFirstPropertyNameIfOnlyOneProperty(e3); + if (!l2) return; + const u2 = e3.properties[l2]; + if (!u2) return void a.warn(`Unable to resolve propertyValue: ${u2} for propertyName: ${l2}. Are you sure you should be calling _resolveNestedArchitectType with this schema?`); + const d2 = this._extractDssRefPathValue(u2); + if (!d2) return void a.warn(`Unable to extract reference for property ${l2}`); + const c2 = d2.split("/"); + if (!(null == c2 ? void 0 : c2.length) || c2.length < 3) return void a.warn(`Type not found in '${d2}'. No valid path. Expected -> #/definitions/`); + if ("#" !== c2[0] || "definitions" !== c2[1]) return void a.warn(`Type not found in '${d2}'. Path does not begin with '#/definitions'`); + let p2 = this.definitions; + c2.splice(0, 2); + for (const e4 of c2) { + const t4 = p2[e4]; + if ("object" != typeof t4) return void a.warn(`Type not found in '${d2}'. Property name '${e4}' in path does not reference an object.`); + p2 = t4; + } + const _2 = this.processDataTypeDefinitionsForSchema(t3, i3, `${n3}/${l2}`, `${r3}_${l2}`, p2, o2, s2, true, d2); + if (_2) return this.checkParsedReturnType(t3, i3, _2, o2, n3); + a.warn(`Failed to resolve data type for referenced type '#/definitions/${c2.join("/")}'`); + } + _getFirstPropertyNameIfOnlyOneProperty(e3) { + const t3 = Object.keys(e3.properties); + if (e3 && "object" === e3.type && e3.properties && "object" == typeof e3.properties && 1 === t3.length && this.trustGCTypeHints) return t3[0]; + } + _extractDssRefPathValue(e3) { + if (e3 && "object" == typeof e3 && Array.isArray(e3.allOf) && 1 === e3.allOf.length && "object" == typeof e3.allOf[0] && e3.allOf[0].$ref) return e3.allOf[0].$ref; + } + _getTypeDefinitionForDssRef(e3, t3, i3, n3, r3) { + var s2, l2, d2; + if (1 !== r3 && 2 !== r3 && void 0 !== this.dynamicSchemaServiceSchemaVersion) return f.traceOnce("Unsupported dynamic schema service version being processed", (e4) => e4.error(`Dynamic schema service schema version ${this.dynamicSchemaServiceSchemaVersion} is not supported. Architect needs to be updated.`)), void this.setProcessingFailure(t3, u.JsonSchemaProcessingFailure.failureUnsupportedDssSchemaVersion, (0, o.sprintf)(_.jsonSchemaProcessing.schemaUnsupportedDssSchemaVersion, this.dynamicSchemaServiceSchemaVersion)); + switch (e3) { + case "#/definitions/checkbox": + return { dataTypeId: m.expressionTypeNames.boolean }; + case "#/definitions/currency": + return { dataTypeId: m.expressionTypeNames.currency }; + case "#/definitions/date": + return { dataTypeId: this._getExpressionTypeForJsonSchemaDateType(null === (s2 = t3.settings) || void 0 === s2 ? void 0 : s2.convertGCTypesToArchitectTypes, i3, null == n3 ? void 0 : n3.type) }; + case "#/definitions/datetime": + return { dataTypeId: this._getExpressionTypeForJsonSchemaDatetimeType(null === (l2 = t3.settings) || void 0 === l2 ? void 0 : l2.convertGCTypesToArchitectTypes) }; + case "#/definitions/enum": + case "#/definitions/identifier": + case "#/definitions/longtext": + case "#/definitions/text": + case "#/definitions/url": + return { dataTypeId: m.expressionTypeNames.string }; + case "#/definitions/integer": + return { dataTypeId: (null === (d2 = t3.settings) || void 0 === d2 ? void 0 : d2.convertGCTypesToArchitectTypes) ? m.expressionTypeNames.integer : m.expressionTypeNames.decimal }; + case "#/definitions/number": + return { dataTypeId: m.expressionTypeNames.decimal }; + case "#/definitions/tag": + case "#/definitions/stringList": + case "#/definitions/list": + return { dataTypeId: m.expressionTypeNames.string, isCollection: true }; + case "#/definitions/queue": + return { dataTypeId: m.expressionTypeNames.queue }; + default: + return e3 || a.warn("Unrecognized DSS type definition encountered", { refDefinition: e3, message: "Attempted to process DSS type based on schema ref but found no matching case. Is this a new type that needs to be handled?", context: { processingInfo: t3, expressionTypeGroup: i3, parentFlowType: null == n3 ? void 0 : n3.type } }), { dataTypeId: void 0 }; + } + } + }; + }, 99025: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = i2(17604), o = n2.__importDefault(i2(92140)), a = n2.__importDefault(i2(73198)), s = n2.__importStar(i2(63824)), l = n2.__importStar(i2(81116)), u = i2(14394), d = i2(81516), c = n2.__importDefault(i2(61864)), p = n2.__importDefault(i2(86531)), _ = n2.__importStar(i2(66381)), h = n2.__importStar(i2(98442)), m = i2(1115), g = i2(12179), f = n2.__importDefault(i2(68460)), T = i2(74803), y = i2(7401), S = i2(47957); + class A extends f.default { + constructor(e3, t3) { + super(e3, t3), this._canSuppressCallRecordings = this.parentFlow.definition.canSuppressCallRecordings, this._suppressCallRecordingsDefaultValue = this.parentFlow.definition.suppressCallRecordingsDefaultValue, this._supportsCompanyDirectory = this.parentFlow.definition.supportsCompanyDirectory, this._supportsDefaultSpeechSettings = this.parentFlow.definition.supportsDefaultSpeechSettings, this._supportsDisableASR = this.parentFlow.definition.supportsDisableASR, this.modelPropertyName = "defaultSettings.SpeechRec", t3 || this._resetParent(this), Object.defineProperties(this, { isFlowSettings: { value: !t3 } }); + } + get asrCompanyDir() { + return this.speechRecCompanyDirectory.text === a.default.true ? this.disableAsrCompanyDirectory.text !== a.default.true ? p.default.entireFlow : null : this.disableAsrCompanyDirectory.text === a.default.true ? p.default.none : p.default.startUpObject; + } + get hasRecordingSettingsOnly() { + return !this._supportsDefaultSpeechSettings && !this._supportsCompanyDirectory && !this._supportsDisableASR; + } + get id() { + return "speechRecognition"; + } + get showInFlowSize() { + return false; + } + get className() { + return "SpeechRecSettingsViewModel"; + } + getDisplayName() { + return this.parentFlow.definition.supportsRecordingSettings ? this.hasRecordingSettingsOnly ? S.generic.recording : S.speechRec.suppressCallRecordingLabel : S.speechRec.label; + } + getConfiguration(e3, t3) { + if (null == t3 ? void 0 : t3.isForFlowYaml) { + const i3 = {}; + return this._supportsDefaultSpeechSettings && (i3.completeMatchTimeout = this.speechRecTimeoutComplete.getConfiguration(e3, t3), i3.incompleteMatchTimeout = this.speechRecTimeoutIncomplete.getConfiguration(e3, t3), i3.maxSpeechLengthTimeout = this.speechRecTimeoutTotal.getConfiguration(e3, t3), i3.minConfidenceLevel = this.speechRecMinConfidence.getConfiguration(e3, t3)), this.isFlowSettings && (this._supportsCompanyDirectory && (i3.asrCompanyDir = this.asrCompanyDir), this._supportsDisableASR && (i3.asrEnabledOnFlow = this.disableAsr.text !== a.default.true), this._canSuppressCallRecordings && (i3.suppressRecording = this.suppressRecording.text === a.default.true)), i3; + } + this.isFlowSettings && (e3.defaultSettings || (e3.defaultSettings = new T()), e3.defaultSettings.SpeechRec || (e3.defaultSettings.SpeechRec = {}), e3.speechRecCompanyDirectory = this.speechRecCompanyDirectory.getConfiguration(e3, t3), e3.disableAsr = this.disableAsr.getConfiguration(e3, t3), e3.disableAsrCompanyDirectory = this.disableAsrCompanyDirectory.getConfiguration(e3, t3), e3.speechRecEngine = this.speechRecEngine.getConfiguration(e3, t3), e3.suppressRecording = this.suppressRecording.getConfiguration(e3, t3), e3.defaultSettings.SpeechRec.speechRecMinConfidence = this.speechRecMinConfidence.getConfiguration(e3, t3), e3.defaultSettings.SpeechRec.speechRecTimeoutComplete = this.speechRecTimeoutComplete.getConfiguration(e3, t3), e3.defaultSettings.SpeechRec.speechRecTimeoutIncomplete = this.speechRecTimeoutIncomplete.getConfiguration(e3, t3), e3.defaultSettings.SpeechRec.speechRecTimeoutTotal = this.speechRecTimeoutTotal.getConfiguration(e3, t3)); + } + get isSpeechRecNode() { + return true; + } + setNewInstanceDefaults() { + this._canSuppressCallRecordings && this.suppressRecording.setAsLiteral(this._suppressCallRecordingsDefaultValue ? a.default.true : a.default.false); + } + loadConfiguration(e3) { + const t3 = (e4) => e4.setAllowFlowLevelDefault(true).setIsOptional(true).setDefaultToExpression(true); + this.isFlowSettings && (e3.speechRecCompanyDirectory || (e3.speechRecCompanyDirectory = new y()), this.speechRecCompanyDirectory = l.expression(this.parentFlow, this, e3.speechRecCompanyDirectory, S.speechRec.enableCompanyDirectory, u.globalTypes.boolean, null, u.globalTypes.boolean.createExpressionOptionClass().setAllowModeLiteralOnly().setDefaultText(a.default.false).setCustomLiteralValidator(this.getUnsupportedLanguageError.bind(this))), this.speechRecCompanyDirectory.outOfService = !this._supportsCompanyDirectory, e3.disableAsr || (e3.disableAsr = new y()), this.disableAsr = l.expression(this.parentFlow, this, e3.disableAsr, S.speechRec.enableAllSpeechRec, u.globalTypes.boolean, null, u.globalTypes.boolean.createExpressionOptionClass().setAllowModeLiteralOnly().setCustomLiteralValidator(this._getDisableWithSpeechRecError.bind(this)).setDefaultText(a.default.false).setBoolText(S.boolean.enabled, S.boolean.disabled).setUseCustomWarning(true)), this.disableAsr.outOfService = !this._supportsDisableASR, e3.disableAsrCompanyDirectory || (e3.disableAsrCompanyDirectory = new y()), this.disableAsrCompanyDirectory = l.expression(this.parentFlow, this, e3.disableAsrCompanyDirectory, S.speechRec.disableAllCompanyDirectory, u.globalTypes.boolean, null, u.globalTypes.boolean.createExpressionOptionClass().setAllowModeLiteralOnly().setCustomLiteralValidator(this._getDisableEnableError.bind(this)).setDefaultText(a.default.false).setBoolText(S.boolean.enabled, S.boolean.disabled).setUseCustomWarning(true)), this.disableAsrCompanyDirectory.outOfService = !this._supportsCompanyDirectory, e3.suppressRecording || (e3.suppressRecording = new y()), this.suppressRecording = l.expression(this.parentFlow, this, e3.suppressRecording, S.speechRec.suppressCallRecordingsSpeechRec, u.globalTypes.boolean, null, u.globalTypes.boolean.createExpressionOptionClass().setIninTestingField("suppressRecording").setAllowModeLiteralOnly().setHideDefaultTextDescription(true).setDefaultText(a.default.false).setUseCheckbox(true)), this.suppressRecording.outOfService = !this._canSuppressCallRecordings, e3.speechRecEngine || (e3.speechRecEngine = new y()), this.speechRecEngine = l.expression(this.parentFlow, this, e3.speechRecEngine, S.speechRec.engineLabel, u.globalTypes.string, null, new d.ExpressionTypeStringOptions().setDefaultText("")), e3.defaultSettings || (e3.defaultSettings = new T())); + const i3 = u.globalTypes.integer.expressionOptionClass.create((e4) => e4.setSubLabel(S.speechRec.minConfidenceLevelRange).setAllowModeLiteralOnly().facets.setMinInt(0, true).setMaxInt(100, true)), n3 = u.globalTypes.duration.expressionOptionClass.create((e4) => e4.setDurationStyle(s.durationStyles.secondsAndTenthsDuration).setAllowModeLiteralOnly().facets.setMinDur(100, true).setMaxDur(2e4, true)), r3 = u.globalTypes.duration.expressionOptionClass.create((e4) => e4.setDurationStyle(s.durationStyles.secondsAndTenthsDuration).setAllowModeLiteralOnly().facets.setMinDur(100, true).setMaxDur(2e4, true)), o2 = u.globalTypes.duration.expressionOptionClass.create((e4) => e4.setDurationStyle(s.durationStyles.secondsAndTenthsDuration).setAllowModeLiteralOnly().facets.setMinDur(100, true).setMaxDur(4e4, true)); + this.isFlowSettings ? (i3.setDefaultText("50"), n3.setDefaultText(a.default.litDurationOneHundredMs), r3.setDefaultText(a.default.litDurationFifteenHundredMs), o2.setDefaultText(a.default.litDurationTwentySeconds)) : (t3(i3), t3(n3), t3(r3), t3(o2)), this.speechRecMinConfidence = l.expression(this.parentFlow, this.parent, this._prepareModel(e3, "speechRecMinConfidence"), S.speechRec.minConfidenceLevel, u.globalTypes.integer, null, i3), this.speechRecMinConfidence.outOfService = !this._supportsDefaultSpeechSettings, this.speechRecTimeoutComplete = l.expression(this.parentFlow, this.parent, this._prepareModel(e3, "speechRecTimeoutComplete"), S.speechRec.timeoutComplete, u.globalTypes.duration, null, n3), this.speechRecTimeoutComplete.outOfService = !this._supportsDefaultSpeechSettings, this.speechRecTimeoutIncomplete = l.expression(this.parentFlow, this.parent, this._prepareModel(e3, "speechRecTimeoutIncomplete"), S.speechRec.timeoutIncomplete, u.globalTypes.duration, null, r3), this.speechRecTimeoutIncomplete.outOfService = !this._supportsDefaultSpeechSettings, this.speechRecTimeoutTotal = l.expression(this.parentFlow, this.parent, this._prepareModel(e3, "speechRecTimeoutTotal"), S.speechRec.timeoutMaxSpeech, u.globalTypes.duration, null, o2), this.speechRecTimeoutTotal.outOfService = !this._supportsDefaultSpeechSettings; + } + get nodeGuxIcon() { + return this.hasRecordingSettingsOnly ? c.default.record.gux : c.default.speechRec.gux; + } + get helpTopic() { + return this.parentFlow.isVoiceSurveyFlow ? g.helpTopics.treeNodes.speechRecConfigVoiceSurvey : g.helpTopics.treeNodes.speechRecConfig; + } + search(e3) { + this.isFlowSettings && e3.addToQueue(this.speechRecCompanyDirectory), this.isFlowSettings && e3.addToQueue(this.disableAsr), this.isFlowSettings && e3.addToQueue(this.disableAsrCompanyDirectory), this.isFlowSettings && e3.addToQueue(this.suppressRecording), e3.addToQueue(this.speechRecMinConfidence), e3.addToQueue(this.speechRecTimeoutComplete), e3.addToQueue(this.speechRecTimeoutIncomplete), e3.addToQueue(this.speechRecTimeoutTotal); + } + validateLanguageSpeechRecSupport(e3) { + const t3 = this.getUnsupportedLanguageError(); + t3 && e3.addError(this, t3); + } + validate(e3) { + this.speechRecCompanyDirectory && this.speechRecCompanyDirectory.validate(e3), this.disableAsr && this.disableAsr.validate(e3), this.disableAsrCompanyDirectory && this.disableAsrCompanyDirectory.validate(e3), this.suppressRecording && this.suppressRecording.validate(e3), this._supportsDefaultSpeechSettings && (this.speechRecMinConfidence.validate(e3), this.speechRecTimeoutComplete.validate(e3), this.speechRecTimeoutIncomplete.validate(e3), this.speechRecTimeoutTotal.validate(e3)); + } + get wrappedYamlName() { + return "settingsSpeechRec"; + } + _destroy() { + super._destroy(), this.speechRecCompanyDirectory && this.speechRecCompanyDirectory.destroy(), this.disableAsr && this.disableAsr.destroy(), this.disableAsrCompanyDirectory && this.disableAsrCompanyDirectory.destroy(), this.suppressRecording && this.suppressRecording.destroy(), this.speechRecMinConfidence && this.speechRecMinConfidence.destroy(), this.speechRecTimeoutComplete && this.speechRecTimeoutComplete.destroy(), this.speechRecTimeoutIncomplete && this.speechRecTimeoutIncomplete.destroy(), this.speechRecTimeoutTotal && this.speechRecTimeoutTotal.destroy(), this.speechRecEngine && this.speechRecEngine.destroy(); + } + _initializeDesignTime() { + super._initializeDesignTime(), this.speechRecMinConfidence.initializeDesignTime(), this.speechRecTimeoutComplete.initializeDesignTime(), this.speechRecTimeoutIncomplete.initializeDesignTime(), this.speechRecTimeoutTotal.initializeDesignTime(), this.speechRecCompanyDirectory && this.speechRecCompanyDirectory.initializeDesignTime(), this.disableAsrCompanyDirectory && this.disableAsrCompanyDirectory.initializeDesignTime(), this.disableAsr && this.disableAsr.initializeDesignTime(), this.suppressRecording && this.suppressRecording.initializeDesignTime(); + } + enableSpeechRecChanged(e3) { + this.disableAsr.setAsLiteral(e3 ? a.default.false : a.default.true), this.disableAsrCompanyDirectory.outOfService = !e3, this.speechRecCompanyDirectory.outOfService = !e3 || !this._supportsCompanyDirectory; + } + _prepareModel(e3, t3, i3) { + const n3 = this.isFlowSettings ? e3.defaultSettings : e3; + return this.isFlowSettings ? (n3.SpeechRec || (n3.SpeechRec = {}), n3.SpeechRec[t3] && !o.default.isEmpty(n3.SpeechRec[t3]) || (n3.SpeechRec[t3] = i3 || new y()), n3.SpeechRec[t3]) : (n3[t3] && !o.default.isEmpty(n3[t3]) || (n3[t3] = i3 || new y()), n3[t3]); + } + getUnsupportedLanguageError() { + if (!this.disableAsr || this.disableAsr.text === a.default.true || !this.disableAsrCompanyDirectory || this.disableAsrCompanyDirectory.text === a.default.true) return; + const e3 = o.default.filter(this.parentFlow.supportedLanguageOptions, (e4) => !h.supportsSpeechRecForFlowType(e4.language, this.parentFlow.type)), t3 = e3.length > 1 ? S.speechRec.companyDirectoryNotSupportedPlural : S.speechRec.companyDirectoryNotSupportedSingle, i3 = _.getListDisplayString(o.default.map(e3, (e4) => h.getLanguageNameAndCodeDisplay(e4.language))); + return e3.length > 0 ? (0, r2.sprintf)(t3, i3) : ""; + } + _getDisableWithSpeechRecError() { + if (this.disableAsr.text !== a.default.false) return o.default.any(this.parentFlow.menus, (e3) => { + if (!e3.isHidden) return o.default.any(e3.choices, (e4) => e4.speechRecTerms.hasTermsAny()); + }) && this.disableAsr.text === a.default.true ? S.speechRec.errorSpeechRecDisabledWithSpeechRec : void 0; + } + _getDisableEnableError() { + const e3 = this.disableAsr.text === a.default.true, t3 = this.speechRecCompanyDirectory.text === a.default.true; + if (e3 && t3) return S.speechRec.errorSpeechRecEnabledDisabled; + } + setCompanyDirectoryHandling(e3, t3) { + this.speechRecCompanyDirectory.setAsLiteral(e3), this.disableAsrCompanyDirectory.setAsLiteral(t3), (0, m.validateNode)(this); + } + } + t2.default = A; + }, 99054: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.startWith = void 0; + var n2 = i2(39546), r2 = i2(26404), o = i2(65212); + t2.startWith = function() { + for (var e3 = [], t3 = 0; t3 < arguments.length; t3++) e3[t3] = arguments[t3]; + var i3 = r2.popScheduler(e3); + return o.operate(function(t4, r3) { + (i3 ? n2.concat(e3, t4, i3) : n2.concat(e3, t4)).subscribe(r3); + }); + }; + }, 99131: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importDefault(i2(61864)), o = n2.__importDefault(i2(46772)), a = i2(73062), s = i2(16958), l = new class { + constructor() { + Object.defineProperties(this, { _categories: { value: {} } }); + } + initialize() { + this.addCategory(new o.default(a.builderCategoryIds.email, s.categories.emailName, s.categories.emailDesc, r2.default.emailEnvelope)), this.addCategory(new o.default(a.builderCategoryIds.stringParsing, s.categories.stringParsingName, s.categories.stringParsingDesc, r2.default.stringMethods)), this.addCategory(new o.default(a.builderCategoryIds.toolbar, s.categories.stringSequenceName, s.categories.stringSequenceDesc, r2.default.wrench, true)), this.addCategory(new o.default(a.builderCategoryIds.phoneNumber, s.categories.phoneNumber, s.categories.phoneNumberDesc, r2.default.phone)), this.addCategory(new o.default(a.builderCategoryIds.dateTime, s.categories.dateTime, s.categories.dateTimeDesc, r2.default.datetime)), this.addCategory(new o.default(a.builderCategoryIds.markdown, s.categories.markdownName, s.categories.markdownDesc, r2.default.string)), this.addCategory(new o.default(a.builderCategoryIds.prompt, s.categories.prompt, s.categories.promptDesc, r2.default.prompt)), this.addCategory(new o.default(a.builderCategoryIds.container, s.categories.container, s.categories.containerDesc, r2.default.complex)), this.addCategory(new o.default(a.builderCategoryIds.agentScorePair, s.categories.agentScorePair, s.categories.agentScorePairDesc, r2.default.complex)), this.addCategory(new o.default(a.builderCategoryIds.communication, s.categories.communicationName, s.categories.communicationDesc, r2.default.communication)), this.addCategory(new o.default(a.builderCategoryIds.labelString, s.categories.labelStringName, s.categories.labelStringDesc, r2.default.label)); + } + get className() { + return "BuilderCategories"; + } + get isBuilderCategories() { + return true; + } + get categories() { + return this._categories; + } + addCategory(e3) { + this.categories[e3.id] || (this.categories[e3.id] = e3); + } + getCategory(e3) { + return this.categories[e3]; + } + }(); + t2.default = l; + }, 99163: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = n2.__importDefault(i2(94225)), o = i2(92158), a = n2.__importDefault(i2(45894)); + class s extends a.default { + constructor(e3) { + super(e3, o.wrapupCodeManager); + } + get _globalTypeName() { + return "wrapupCode"; + } + get displayTypeName() { + return "ArchValueWrapupCode"; + } + get isArchValueWrapupCode() { + return true; + } + setLiteralByWrapupCodeIdAsync(e3, t3) { + return n2.__awaiter(this, void 0, void 0, function* () { + return this._checkItemIsValidLiteralString(this._infoParm("wrapupCodeId", "setLiteralByWrapupCodeIdAsync"), e3), this._checkItemIsValidFunction(this._infoParm("callbackFunction", "setLiteralByWrapupCodeIdAsync"), t3, true), this._setLiteralByIdAsync(e3).then(() => r2.default.executeCallback(this, "setLiteralByWrapupCodeIdAsync", t3, this)); + }); + } + setLiteralByWrapupCodeNameAsync(e3, t3) { + return n2.__awaiter(this, void 0, void 0, function* () { + return this._checkItemIsValidLiteralString(this._infoParm("wrapupCodeName", "setLiteralByWrapupCodeNameAsync"), e3), this._checkItemIsValidFunction(this._infoParm("callbackFunction", "setLiteralByWrapupCodeNameAsync"), t3, true), this._setLiteralByValueAsync(e3).then(() => r2.default.executeCallback(this, "setLiteralByWrapupCodeNameAsync", t3, this)); + }); + } + } + t2.default = s; + }, 99245: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.queue = t2.queueScheduler = void 0; + var n2 = i2(31983), r2 = i2(32036); + t2.queueScheduler = new r2.QueueScheduler(n2.QueueAction), t2.queue = t2.queueScheduler; + }, 99380: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.iif = void 0; + var n2 = i2(35884); + t2.iif = function(e3, t3, i3) { + return n2.defer(function() { + return e3() ? t3 : i3; + }); + }; + }, 99407: (e2, t2, i2) => { + const n2 = i2(28730), { exitLoopActionType: r2 } = i2(30801); + function o() { + o.baseConstructor.apply(this, arguments); + } + n2.extend(o, r2, true), e2.exports = o; + }, 99423: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(54757)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "durationCollection"; + } + get displayTypeName() { + return "ArchValueDurationCollection"; + } + get isArchValueDurationCollection() { + return true; + } + } + t2.default = r2; + }, 99431: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.IntegrationList = void 0; + const n2 = i2(31635), r2 = i2(15116), o = i2(37707), a = i2(80295); + class s extends r2.PagedList { + constructor(e3) { + super(e3); + } + get entities() { + return this._entities; + } + set entities(e3) { + this._entities = this.reviveArray(e3, o.Integration); + } + } + t2.IntegrationList = s, n2.__decorate([(0, a.enumerable)(true), n2.__metadata("design:type", Array), n2.__metadata("design:paramtypes", [Array])], s.prototype, "entities", null); + }, 99434: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.getDisplayText = function e3(t3, i3) { + var n3, u2; + if (t3.isCollectionExpression) return (function(e4) { + return e4.isExpressionMode ? e4.text : e4.displayValue; + })(t3); + if (i3 || (i3 = t3.parentFlow.getFlowFilterPreviewOptionsExpressionDisplayOptions(t3)), t3.isNoValueMode) return t3.options ? t3.options.getModeNoValueRuntimeEvaluationStrForContext(t3) : void 0; + if (t3.isBuilderMode) { + const e4 = null === (n3 = t3.builder) || void 0 === n3 ? void 0 : n3.getExpressionDetails(i3); + if (e4) return e4; + } + if (null == i3 ? void 0 : i3.richSummary) { + if (!t3.text) return; + if (t3.isVariableMode || t3.isExpressionMode) return t3.text; + } + if (s.isMatch(t3.type, l.globalTypes.currency, s.settings.exact)) return (function(e4) { + const t4 = /^(-?\d*\.?(\d*)?)\|(\w{3})?$/.exec(e4.text); + if (t4) { + const e5 = t4 ? _[t4[3]] : void 0; + if (t4[1] && e5) try { + return Number(t4[1]).toLocaleString(c.getCurrentLanguage() || "en-us", { style: "currency", currency: e5.code, currencyDisplay: "symbol" }); + } catch (e6) { + m.exception(e6, "Error encountered when creating currency text."); + } + } + return e4.text; + })(t3); + if (s.isMatch(t3.type, l.globalTypes.duration, s.settings.exact)) return (function(e4) { + return a.getSearchStringFromLiteral(e4.text); + })(t3); + if (s.isMatch(t3.type, l.globalTypes.string, s.settings.exact)) return (function(e4, t4) { + return e4.text || (null == t4 ? void 0 : t4.noEmptyText) ? e4.text : h.literal.empty; + })(t3, i3); + if (s.isMatch(t3.type, l.globalTypes.boolean, s.settings.exact)) return (function(e4) { + var t4, i4; + const n4 = e4.options; + return e4.isLiteralMode && e4.text.toLocaleLowerCase() === o.default.true ? (null === (t4 = n4.boolText) || void 0 === t4 ? void 0 : t4.true) || h.boolean.true : e4.isLiteralMode && e4.text.toLocaleLowerCase() === o.default.false ? (null === (i4 = n4.boolText) || void 0 === i4 ? void 0 : i4.false) || h.boolean.false : e4.text; + })(t3); + if (s.isMatch(t3.type, l.globalTypes.prompt, s.settings.exact)) return (function(e4, t4) { + var i4; + if (e4.isLiteralMode && e4.val) { + const n4 = r2.getItem(e4.val); + if (n4) { + if ((null == t4 ? void 0 : t4.richSummary) && (null === (i4 = null == t4 ? void 0 : t4.criteria) || void 0 === i4 ? void 0 : i4.languageTag) && (0, p.isFeatureAvailable)(d.default.botFlowsDigitalBotFlowsMultiLingualFeature)) { + const e5 = n4.getResourceForLanguageTag(t4); + if (e5) return e5; + } + return (null == t4 ? void 0 : t4.richSummary) ? `${e4.getEmbeddableExpressionText()}` : `${e4.text} (${n4.isSystem ? h.audio.promptSystem : h.audio.promptUser})`; + } + } + return e4.text; + })(t3, i3); + if (s.isMatch(t3.type, l.globalTypes.timeslot, s.settings.exact)) return (function(t4) { + const i4 = t4.type.getPropDateTime(t4), n4 = t4.type.getPropDuration(t4); + return t4.isLiteralMode && i4 && n4 ? `${e3(i4)}|${e3(n4)}` : t4.text; + })(t3); + if (s.isMatch(t3.type, l.globalTypes.lineItem, s.settings.exact)) return (function(t4) { + const i4 = t4.type.getPropListingName(t4), n4 = t4.type.getPropListingPrice(t4); + return t4.isLiteralMode && i4 && n4 ? `${e3(i4)}|${e3(n4)}` : t4.text; + })(t3); + if (t3.type.hasRichLiteralEditor && t3.isLiteralMode) return h.expression.literal; + if (t3.isLiteralMode && t3.text && t3.options && t3.options.isExpressionTypeNetworkObjectOptions) return `${t3.text} (${t3.type.displayString})`; + if (null === (u2 = t3.options) || void 0 === u2 ? void 0 : u2.allowableValues) { + const e4 = t3.options.allowableValues.find((e5) => { + var i4, n4; + return (null === (i4 = e5.id) || void 0 === i4 ? void 0 : i4.toString()) === (null === (n4 = t3.text) || void 0 === n4 ? void 0 : n4.toString()); + }); + if (e4 && e4.displayString) return e4.displayString; + } + return t3.text; + }; + const n2 = i2(31635), r2 = n2.__importStar(i2(43011)), o = n2.__importDefault(i2(73198)), a = n2.__importStar(i2(63824)), s = n2.__importStar(i2(9345)), l = i2(14394), u = n2.__importStar(i2(24032)), d = n2.__importDefault(i2(4648)), c = n2.__importStar(i2(74359)), p = i2(10798), _ = i2(19502), h = i2(47957), m = u.getTopic("notifications"); + }, 99469: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.ManagedPropertyOptions = void 0; + const n2 = i2(31635), r2 = i2(80295), o = i2(63029), a = i2(55909), s = i2(33951); + class l extends o.BaseOptionsWithOptional { + static create(e3) { + return new this().invokeOptionsCallback(e3); + } + constructor() { + super(), this._descriptionInfo = { name: void 0, description: void 0 }, (0, r2.makeUnenumerable)(this, "_dropdownPlaceholder"), (0, r2.makeUnenumerable)(this, "_descriptionInfo"), (0, r2.makeUnenumerable)(this, "_inlineDescription"); + } + _setFromOptions(e3) { + super._setFromOptions(e3), e3.isBaseOptionsWithOptional && (this._setOptionIfSet(this.setDropdownPlaceholder, e3.dropdownPlaceholder, "_dropdownPlaceholder"), this.hasDescriptionInfo && this.setDescriptionInfo(this._descriptionInfo.name, this._descriptionInfo.description), this._setOptionIfSet(this.inlineDescription, e3.inlineDescription, "_inlineDescription")); + } + get className() { + return "ManagedPropertyOptions"; + } + get isManagedPropertyOptions() { + return true; + } + get dropdownPlaceholder() { + return this._dropdownPlaceholder; + } + set dropdownPlaceholder(e3) { + this._dropdownPlaceholder = s.ParameterValidator.expectString(e3, () => a.ParameterInfo.createPropertySet(this.className, "_dropdownPlaceholder", "value")); + } + setDropdownPlaceholder(e3) { + return this.dropdownPlaceholder = e3, this; + } + get descriptionInfo() { + return this._descriptionInfo; + } + setDescriptionInfo(e3, t3) { + return this._descriptionInfo.name = s.ParameterValidator.expectString(e3, () => a.ParameterInfo.createPropertySet(this.className, "setDescriptionInfo", "name"), true), this._descriptionInfo.description = s.ParameterValidator.expectString(t3, () => a.ParameterInfo.createPropertySet(this.className, "setDescriptionInfo", "description"), true), this; + } + get hasDescriptionInfo() { + var e3, t3; + return !(!(null === (e3 = this._descriptionInfo) || void 0 === e3 ? void 0 : e3.name) && !(null === (t3 = this._descriptionInfo) || void 0 === t3 ? void 0 : t3.description)); + } + clearDescriptionInfo() { + return this.setDescriptionInfo(void 0, void 0); + } + get inlineDescription() { + return this._inlineDescription; + } + set inlineDescription(e3) { + this._inlineDescription = s.ParameterValidator.expectString(e3, () => a.ParameterInfo.createPropertySet(this.className, "_inlineDescription", "value")); + } + setInlineDescription(e3) { + return this.inlineDescription = e3, this; + } + } + t2.ManagedPropertyOptions = l, n2.__decorate([(0, r2.enumerable)(true), n2.__metadata("design:type", String), n2.__metadata("design:paramtypes", [Object])], l.prototype, "dropdownPlaceholder", null), n2.__decorate([(0, r2.enumerable)(true), n2.__metadata("design:type", Object), n2.__metadata("design:paramtypes", [])], l.prototype, "descriptionInfo", null); + }, 99472: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.aiPoweredBadgeWithText = t2.aiPoweredBadgeWithNoText = void 0; + const n2 = i2(47957); + t2.aiPoweredBadgeWithNoText = { text: "", guxIcon: "restricted/custom/sparkles-solid", badgeClass: "ai-powered-badge", iconClass: "custom-label-header-icon", ariaLabel: n2.generic.aiPowered, treeNodeIcon: "custom/ai-tooltip-regular" }, t2.aiPoweredBadgeWithText = { text: n2.generic.aiPowered, guxIcon: "restricted/custom/sparkles-solid", badgeClass: "ai-powered-badge", iconClass: "custom-label-header-icon" }; + }, 99505: (e2, t2, i2) => { + "use strict"; + const n2 = i2(19596); + class r2 extends n2.DataContract { + constructor(e3) { + super(e3); + } + get permissions() { + return this._permissions; + } + set permissions(e3) { + this._permissions = e3; + } + get permissionPolicies() { + return this._permissionPolicies; + } + set permissionPolicies(e3) { + this._permissionPolicies = e3; + } + get roles() { + return this._roles; + } + set roles(e3) { + this._roles = e3; + } + } + t2.A = r2; + }, 99516: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.partition = void 0; + var n2 = i2(14120), r2 = i2(85934); + t2.partition = function(e3, t3) { + return function(i3) { + return [r2.filter(e3, t3)(i3), r2.filter(n2.not(e3, t3))(i3)]; + }; + }; + }, 99517: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.pipeFromArray = t2.pipe = void 0; + var n2 = i2(87699); + function r2(e3) { + return 0 === e3.length ? n2.identity : 1 === e3.length ? e3[0] : function(t3) { + return e3.reduce(function(e4, t4) { + return t4(e4); + }, t3); + }; + } + t2.pipe = function() { + for (var e3 = [], t3 = 0; t3 < arguments.length; t3++) e3[t3] = arguments[t3]; + return r2(e3); + }, t2.pipeFromArray = r2; + }, 99528: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(92661)), r2 = i2(30801); + class o extends n2.default { + constructor(e3) { + super(e3); + } + get _actionTypeId() { + return r2.findUserPromptActionType; + } + get displayTypeName() { + return this._scriptingName; + } + get isArchActionFindUserPrompt() { + return true; + } + get findResult() { + return this._findResult; + } + } + t2.default = o; + }, 99552: (e2, t2, i2) => { + const n2 = i2(63416); + function r2() { + r2.baseConstructor.apply(this, arguments); + } + i2(22124).extend(r2, "HedwigActionList"), Object.defineProperties(r2.prototype, { entities: { enumerable: true, get: function() { + return this._entities; + }, set: function(e3) { + this._entities = this.reviveArray(e3, n2); + } } }), e2.exports = r2; + }, 99621: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635), r2 = i2(79364), o = i2(79364), a = i2(8758), s = i2(30801), l = n2.__importDefault(i2(94225)), u = n2.__importDefault(i2(56549)), d = n2.__importDefault(i2(95085)); + class c extends d.default { + constructor(e3) { + super(e3); + } + get _actionTypeId() { + return s.callGuideActionType; + } + get isArchActionCallGuide() { + return true; + } + get displayTypeName() { + return this._scriptingName; + } + get guideOutputsFailure() { + return this._coreActionViewModel.errorBindings ? this.coreFactory.createArchWrapper(this._coreActionViewModel.errorBindings) : null; + } + get guideInputs() { + return this.coreFactory.createArchWrapper(this._getCoreViewModel().inputs); + } + get guideOutputs() { + return this.coreFactory.createArchWrapper(this._getCoreViewModel().outputs); + } + get voiceProcessingPrompt() { + return this.coreFactory.createArchWrapper(this._getCoreViewModel().voiceProcessingPrompt); + } + setGuideByIdAsync(e3, t3) { + return n2.__awaiter(this, void 0, void 0, function* () { + this._checkItemIsValidLiteralString(this._infoParm("guideId", "setGuideByIdAsync"), e3, false), this._checkItemIsValidFunction(this._infoParm("callbackFunction", "setGuideByIdAsync"), t3, true); + const i3 = yield u.default.findItemByIdAsync(a.guideManager, e3, "guideId"); + return this.logNote("found the Guide named '" + i3.name + "' for the Guide ID of '" + e3 + "'"), this.validateGuideIsPublished(i3), this._getCoreViewModel().guideSetting.setValue(i3), yield this.waitForGuideVersionLoading(), l.default.executeCallback(this, "setGuideByIdAsync", t3, this); + }); + } + setGuideByNameAsync(e3, t3) { + return n2.__awaiter(this, void 0, void 0, function* () { + this._checkItemIsValidLiteralString(this._infoParm("guideName", "setGuideByNameAsync"), e3), this._checkItemIsValidFunction(this._infoParm("callbackFunction", "setGuideByNameAsync"), t3, true); + const i3 = yield u.default.findItemByValueAsync(a.guideManager, e3, "guide", "name", "name"); + return this.logNote(`Found info for the guide named '${i3.name}' for the passed guide name of '${e3}'. Getting guide details.`), this.validateGuideIsPublished(i3), this._getCoreViewModel().guideSetting.setValue(i3), yield this.waitForGuideVersionLoading(), l.default.executeCallback(this, "setGuideByNameAsync", t3, this); + }); + } + waitForGuideVersionLoading() { + return n2.__awaiter(this, void 0, void 0, function* () { + this.logNoteVerbose(`Loading latest version definition for guide version, guideId: ${this._getCoreViewModel().guideId}`), yield (0, o.firstValueFrom)(this._getCoreViewModel().guideVersionSetting.loadingReference$.pipe((0, r2.first)((e3) => false === e3))), this._getCoreViewModel().guideVersionSetting.currentUiErrorMessage ? this.logError(`error loading latest guide version, guideId: ${this._coreActionViewModel.guideId} - ${this._coreActionViewModel.guideVersionSetting.currentUiErrorMessage}`) : this.logNoteVerbose(`Successfully loaded latest version definition for guide, guideId: ${this._coreActionViewModel.guideId}`); + }); + } + validateGuideIsPublished(e3) { + e3.version || this.logErrorAndThrow(`Guide '${e3.name}' is not published. Only published guides can be used in Call Guide action.`); + } + } + t2.default = c; + }, 99622: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(54757)); + class r2 extends n2.default { + constructor(e3) { + super(e3); + } + get _globalTypeName() { + return "timeslotCollection"; + } + get displayTypeName() { + return "ArchValueTimeslotCollection"; + } + get isArchValueTimeslotCollection() { + return true; + } + } + t2.default = r2; + }, 99678: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.commonModuleFlowListManager = t2.CommonModuleFlowListManager = void 0; + const n2 = i2(31635).__importStar(i2(24032)), r2 = i2(77109), o = i2(30801), a = i2(6109), s = i2(96618), l = i2(27862); + class u extends a.FlowListManager { + get dependencyType() { + return l.CommonModuleFlow; + } + constructor() { + super(), this.topic = n2.getTopic("CommonModuleFlowListManager"), this.briefManager = r2.briefCommonModuleFlowListManager, this.additionalQueryParams = { type: s.flowTypes.flowTypeCommonModule }, this.actionPropertyForUsageSearch = "flowId", this.actionsForUsageSearch = [o.callCommonModuleActionType], this.className = "CommonModuleFlowListManager", this.uiMetadataSectionName = "commonModuleFlows", this.flowType = s.flowTypes.flowTypeCommonModule, this._rawServerCache = {}, this._initialize(); + } + } + t2.CommonModuleFlowListManager = u, t2.commonModuleFlowListManager = new u(); + }, 99769: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.allKnowledgeFeedbackValues = t2.knowledgeFeedbackNegative = t2.knowledgeFeedbackPositive = void 0; + const n2 = i2(47957); + t2.knowledgeFeedbackPositive = { displayString: n2.sendKnowledgeFeedback.positive, description: n2.sendKnowledgeFeedback.positiveDescription, id: "positive" }, t2.knowledgeFeedbackNegative = { displayString: n2.sendKnowledgeFeedback.negative, description: n2.sendKnowledgeFeedback.negativeDescription, id: "negative" }, t2.allKnowledgeFeedbackValues = [t2.knowledgeFeedbackPositive, t2.knowledgeFeedbackNegative]; + }, 99772: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.BaseBuilderWithBuilderPartsViewModel = void 0, t2.isBaseBuilderWithBuilderPartsViewModel = function(e3) { + return null == e3 ? void 0 : e3.isBaseBuilderWithBuilderPartsViewModel; + }; + const n2 = i2(31635), r2 = i2(17604), o = n2.__importDefault(i2(92140)), a = i2(9456), s = n2.__importDefault(i2(61864)), l = i2(55909), u = i2(33951), d = n2.__importStar(i2(98442)), c = i2(12179), p = n2.__importDefault(i2(73198)), _ = n2.__importDefault(i2(96727)), h = i2(73062), m = n2.__importDefault(i2(99131)), g = n2.__importDefault(i2(5532)), f = n2.__importDefault(i2(16864)), T = n2.__importDefault(i2(64584)), y = n2.__importDefault(i2(71549)), S = n2.__importDefault(i2(43693)), A = i2(16958), N = i2(12847), O = i2(58380), I = i2(47957); + class v extends y.default { + constructor(e3, t3, i3, n3, r3) { + super(e3, t3, i3, n3), Object.defineProperties(this, { _builderPartsManager: { value: new S.default({ builderViewModel: this, containerPartViewModel: void 0, owningExpression: e3, parentModel: t3, isManagingPartContainers: false, reId: n3 }), writable: true, enumerable: false }, _builderContainerPartsManager: { value: new S.default({ builderViewModel: this, containerPartViewModel: void 0, owningExpression: e3, parentModel: t3, isManagingPartContainers: true, reId: n3, sortParts: r3 }), writable: true, enumerable: false } }); + } + setNewInstanceDefaults() { + if (this.builderDef.defaultBuilderPartId) { + const e3 = o.default.find(this.availableBuilderPartDefinitions, (e4) => e4.id === this.builderDef.defaultBuilderPartId); + e3 && this._builderPartsManager.createAndAddPartFromBuilderPartDef(e3, void 0); + } + } + get helpTopic() { + return this.builderDef.helpTopic || c.helpTopics.builders.builder; + } + _addClipboardDependencies(e3) { + super._addClipboardDependencies(e3), this.builderPartsManager.addClipboardDependencies(e3), this.builderContainerPartsManager.addClipboardDependencies(e3); + } + _initializeDesignTime() { + super._initializeDesignTime(), this._builderPartsManager.initializeDesignTime(), this._builderContainerPartsManager.initializeDesignTime(), this.parentFlowIsReadOnly || this.supportsLanguageContainersOnly && !this.partAndPartsOutOfService && this.hasEnabledLanguageContainerPartsForAllSupportedLanguages && (this.partAndPartsOutOfService = true); + } + getInternalExpressions() { + const e3 = this._builderPartsManager.getInternalExpressions(), t3 = this._builderContainerPartsManager.getInternalExpressions(); + return o.default.union(e3, t3); + } + _replaceUsages(e3, t3, i3) { + super._replaceUsages(e3, t3, i3), this._builderPartsManager.replaceUsages(e3, t3, i3), this._builderContainerPartsManager.replaceUsages(e3, t3, i3); + } + _getManagerForBuilderPart(e3) { + return e3.isContainerPart ? this._builderContainerPartsManager : this._builderPartsManager; + } + _processLanguagesChanged() { + super._processLanguagesChanged(), this.supportsLanguageContainersOnly && (this.hasEnabledLanguageContainerPartsForAllSupportedLanguages ? this.mainSequenceEnabled && (this.mainSequenceEnabled = false) : this.mainSequenceEnabled = true); + } + objEvent_idAboutToChange(e3, t3) { + O.updateEventEmitterIdentifier(e3.id, t3, this); + } + get className() { + return "BaseBuilderWithBuilderPartsViewModel"; + } + _configureForLanguageSequence(e3, t3) { + var i3, n3; + const r3 = super._configureForLanguageSequence(e3, t3); + if (!r3) return r3; + t3 || this.deleteAllParts(); + const a2 = null === (i3 = this.parentFlow) || void 0 === i3 ? void 0 : i3.languages; + if (!a2) return; + const s2 = null === (n3 = this.parentFlow) || void 0 === n3 ? void 0 : n3.defaultLanguageLCase; + o.default.each(a2.supportedLanguagesViewModels, (i4) => { + var n4, r4, a3; + const l2 = e3.availableLanguages[i4.idExpressionText]; + if (!l2) return; + let u2; + e3.flowTypeOverrides && (u2 = e3.flowTypeOverrides[this.parentFlow.type]), u2 || (u2 = e3); + const d2 = u2.languageSequences[l2]; + if (!d2) return; + let c2; + if (i4.idExpressionText === s2) c2 = this.builderPartsManager; + else { + const e4 = this.getLanguageContainerPart(i4.idExpressionText, true); + c2 = e4.builderPartsManager; + } + if ((null === (n4 = c2.parts) || void 0 === n4 ? void 0 : n4.length) && t3) return; + const p2 = this.builderDef; + if (!(null === (r4 = c2.parts) || void 0 === r4 ? void 0 : r4.length) && p2.defaultBuilderPartId) { + const e4 = o.default.find(this.availableBuilderPartDefinitions, (e5) => e5.id === p2.defaultBuilderPartId); + c2.createAndAddPartFromBuilderPartDef(e4, void 0); + } + d2.partContents ? 1 === (null === (a3 = c2.parts) || void 0 === a3 ? void 0 : a3.length) ? c2.parts[0].configureWithLanguageContexts(d2.partContents, i4) : o.default.each(d2.partContents, (e4) => { + const t4 = g.default.getBuilderPartDefById(e4.builderPartId); + c2.createAndAddPartFromBuilderPartDef(t4).configureWithLanguageContext(e4, i4); + }) : o.default.each(d2.parts, (e4) => { + const t4 = g.default.getBuilderPartDefById(e4.builderPartId); + c2.createAndAddPartFromBuilderPartDef(t4).configureWithLanguageContext(e4, i4); + }); + }); + } + deleteAllParts() { + const e3 = this._builderPartsManager.deleteAllParts(), t3 = this._builderContainerPartsManager.deleteAllParts(); + return o.default.isUndefined(e3) ? t3 : o.default.isUndefined(t3) ? e3 : o.default.isArray(e3) && o.default.isArray(t3) ? e3.concat(t3) : void 0; + } + get overrideErrorText() { + var e3; + return super.overrideErrorText || (this.builderDef.fixedBuilderPart || !this.hasMaxNumOfBuilderPartsConfigured || 1 !== this.builderDef.maxBuilderPartCount || 1 !== this.builderParts.length ? null === (e3 = this.builderParts[0]) || void 0 === e3 ? void 0 : e3.overrideErrorText : void 0); + } + get isBaseBuilderWithBuilderPartsViewModel() { + return true; + } + get supportsLanguageContainersOnly() { + return 1 === this.availableBuilderPartContainerDefinitions.length && this.availableBuilderPartContainerDefinitions[0].isBuilderPartContainerLanguageDef; + } + get mainSequenceEnabled() { + return !this.supportsLanguageContainersOnly || !this.partAndPartsOutOfService; + } + set mainSequenceEnabled(e3) { + (e3 || this.supportsLanguageContainersOnly) && (u.ParameterValidator.expectBool(e3, () => l.ParameterInfo.createPropertySet(this.className, "mainSequenceEnabled", "value")), this.partAndPartsOutOfService !== !e3 && (this.partAndPartsOutOfService = !e3, this.buildExpressionText())); + } + _validateBuilderObject(e3, t3) { + var i3; + let n3 = super._validateBuilderObject(e3, t3); + const a2 = this.owningExpression.options; + if (a2 && a2.doNotWantBlankRuntimeOutput && (n3 = this._validateSequenceRuntimeNotBlank(this, this.builderParts, e3), (null === (i3 = this.builderPartContainers) || void 0 === i3 ? void 0 : i3.length) && o.default.each(this.builderPartContainers, (t4) => { + this._validateSequenceRuntimeNotBlank(t4, t4.builderParts, e3) || (n3 = false); + })), !n3) return n3; + !this.partAndPartsOutOfService && n3 && (this._builderPartsManager.validateBuilderObject(e3, t3) || (n3 = false)), this._builderContainerPartsManager.validateBuilderObject(e3, t3) || (n3 = false); + const s2 = this.builderContainerPartsManager.getMissingFlowSupportedLanguages(); + if (o.default.isArray(s2) && s2.length) { + let t4; + t4 = 1 === s2.length ? (0, r2.sprintf)(I.builders.builderSupportedLanguageMissing, s2[0].text) : (0, r2.sprintf)(I.builders.builderSupportedLanguageMissingMoreThanOne, d.getLanguageListDisplayStr(s2)), e3.addError(this, t4), n3 = false; + } else this.supportsLanguageContainersOnly && !this.partAndPartsOutOfService && this.hasEnabledLanguageContainerPartsForAllSupportedLanguages && e3.addWarning(this, I.builders.builderMainSequenceWillNotBeRun); + return n3; + } + _validateSequenceRuntimeNotBlank(e3, t3, i3) { + let n3 = true; + if ((null == t3 ? void 0 : t3.length) && (o.default.isUndefined(o.default.find(t3, (e4) => e4 instanceof f.default && !o.default.isUndefined(o.default.find(e4.getInternalExpressions(), (e5) => !e5.isBlankOrNotSetOrEmpty)))) || (n3 = false)), n3) try { + e3 !== this && i3.setContextIsContainerRelated(), i3.addError(e3, I.expression.builderOrContainerErrorRuntimeOutputBlank); + } finally { + e3 !== this && i3.clearContextIsContainerRelated(); + } + return !n3; + } + get builderParts() { + return this._builderPartsManager.parts; + } + get builderPartsManager() { + return this._builderPartsManager; + } + get builderPartContainers() { + return this._builderContainerPartsManager.parts; + } + get builderContainerPartsManager() { + return this._builderContainerPartsManager; + } + builderPartAdded(e3) { + } + builderPartContainerAdded(e3) { + } + _destroy() { + try { + this.builderPartsManager.destroy(), this.builderContainerPartsManager.destroy(); + } catch (e3) { + } + this._builderPartsManager = void 0, this._builderContainerPartsManager = void 0, super._destroy(); + } + get partAndPartsOutOfService() { + return !!this.model.partAndPartsOutOfService; + } + set partAndPartsOutOfService(e3) { + u.ParameterValidator.expectBool(e3, () => l.ParameterInfo.createPropertySet(this.className, "partAndPartsOutOfService", "value")), this.model.partAndPartsOutOfService !== !!e3 && (this.model.partAndPartsOutOfService = e3, this.builderPartsManager.setPartsOutOfServiceValue(e3), this.postUpdateOwningExpression(p.default.msWaitPartsChanged)); + } + get hasMaxNumOfBuilderPartsConfigured() { + return !!this.hasMaxBuilderPartCount && (this.builderPartsManager.hasMaxNumOfBuilderPartsConfigured || this.builderContainerPartsManager.hasMaxNumOfBuilderPartsConfigured); + } + getToolbarActions() { + if (this.builderDef.fixedBuilderPart && this.hasMaxNumOfBuilderPartsConfigured) return []; + const e3 = {}, t3 = []; + return o.default.each(this.availableBuilderPartDefinitions, (i3) => { + const n3 = { toolbarId: (0, a.uuid)(), name: i3.name, icon: i3.icon || s.default.any, testAttr: "addBuilderOptions-" + i3.name, callback: (e4) => e4 && e4.builderPartsManager ? e4.builderPartsManager.createAndAddPartFromBuilderPartDef(i3) : this.createAndAddPartFromBuilderPartDef(i3), sortName: i3.sortValue || i3.name }; + 0 !== i3.categories.length ? o.default.each(o.default.contains(i3.categories, h.builderCategoryIds.toolbar) ? [h.builderCategoryIds.toolbar] : i3.categories, (i4) => { + if (0 === this.builderDef.categories.length || o.default.contains(this.builderDef.categories, i4)) { + const r3 = m.default.getCategory(i4); + r3.actionsOnToolbar ? t3.push(n3) : (e3[i4] || (e3[i4] = { toolbarId: (0, a.uuid)(), name: r3.name, icon: r3.icon, isCategory: true, testAttr: "addBuilderCategory", actions: [] }), e3[i4].actions.push(n3)); + } + }) : N.error(`${i3.id} has no categories`); + }), o.default.union(o.default.values(e3), t3); + } + _configureForFlowState() { + let e3 = this.builderPartsManager.configureForFlowState(); + return this.builderContainerPartsManager.configureForFlowState() && (e3 = true), e3; + } + deletePart(e3) { + const t3 = this._getManagerForBuilderPart(e3); + return !!t3 && t3.deletePart(e3); + } + get hasMaxBuilderPartCount() { + return this.builderPartsManager.hasMaxBuilderPartCount; + } + get maxBuilderPartCount() { + return this.builderPartsManager.maxBuilderPartCount; + } + get hasMinBuilderPartCount() { + return this.builderPartsManager.hasMinBuilderPartCount; + } + get minBuilderPartCount() { + return this.builderPartsManager.minBuilderPartCount; + } + getBuilderPartTotal() { + let e3 = this.builderPartsManager.enabledNonContainerPartCount; + return e3 += this.builderContainerPartsManager.enabledNonContainerPartCount, e3; + } + getExpressionDetails(e3) { + if ((null == e3 ? void 0 : e3.richSummary) && e3.criteria) { + const t4 = this.builderContainerPartsManager.getExpressionDetails(e3); + if (t4) return t4; + } + if (this.builderPartsManager.enabledNonContainerPartCount > 0 && (null == e3 ? void 0 : e3.richSummary)) return this.builderPartsManager.getExpressionDetails(e3); + const t3 = this.getBuilderPartTotal(); + let i3; + switch (t3) { + case 0: + i3 = A.builders.shared.details.builderPartsNone; + break; + case 1: + i3 = A.builders.shared.details.builderPartsOne; + break; + default: + i3 = (0, r2.sprintf)(A.builders.shared.details.builderPartsMoreThanOne, t3); + } + return i3; + } + getExpressionDetailParts(e3) { + if ((null == e3 ? void 0 : e3.richSummary) && e3.criteria) { + const t3 = this.builderContainerPartsManager.getExpressionDetailParts(e3); + if (t3) return t3; + } + return this.builderPartsManager.enabledNonContainerPartCount > 0 && (null == e3 ? void 0 : e3.richSummary) ? this.builderPartsManager.getExpressionDetailParts(e3) : []; + } + movePartToIndex(e3, t3) { + const i3 = this._getManagerForBuilderPart(e3); + return !!i3 && i3.movePartToIndex(e3, t3); + } + movePartDown(e3) { + const t3 = this._getManagerForBuilderPart(e3); + return t3 ? t3.movePartDown(e3) : -1; + } + movePartUp(e3) { + const t3 = this._getManagerForBuilderPart(e3); + return t3 ? t3.movePartUp(e3) : -1; + } + createAndAddPartFromBuilderPartDef(e3, t3) { + return this._getManagerForBuilderPart(e3).createAndAddPartFromBuilderPartDef(e3, t3); + } + getContainerPart(e3, t3, i3) { + let n3 = this.builderContainerPartsManager.findContainerPart(e3, t3); + return !n3 && i3 && (n3 = this.createAndAddPartFromBuilderPartDef(e3, t3)), n3; + } + getOutputModeContainerPart(e3, t3) { + if (!o.default.isString(e3) || 0 === e3.length) return; + const i3 = this.availableBuilderPartContainerDefinitions.find((e4) => e4.isBuilderPartContainerOutputModeDef); + if (!i3) return; + const n3 = T.default.createForOutputMode(e3); + return this.getContainerPart(i3, n3, t3); + } + getLanguageOutputModeContainerPart(e3, t3, i3) { + if (!o.default.isString(e3) || 0 === e3.length || !o.default.isString(t3) || 0 === t3.length) return; + const n3 = this.availableBuilderPartContainerDefinitions.find((e4) => e4.isBuilderPartContainerLanguageOutputModeDef); + if (!n3) return; + const r3 = T.default.createForLanguageTagAndOutputMode(e3, t3); + return this.getContainerPart(n3, r3, i3); + } + getLanguageContainerPart(e3, t3) { + if (!o.default.isString(e3) || 0 === e3.length) return; + const i3 = this.availableBuilderPartContainerDefinitions.find((e4) => e4.isBuilderPartContainerLanguageDef); + if (!i3) return; + const n3 = T.default.createForLanguageTag(e3); + return this.getContainerPart(i3, n3, t3); + } + get hasEnabledLanguageContainerPartsForAllSupportedLanguages() { + if (!this.supportsLanguageContainersOnly) return false; + const e3 = this.parentFlow; + if (!e3 || !e3.languages) return false; + if (!o.default.isArray(e3.languages.supportedLanguagesViewModels) || 0 === e3.languages.supportedLanguagesViewModels.length) return false; + const t3 = o.default.find(e3.languages.supportedLanguagesViewModels, (e4) => { + const t4 = this.getLanguageContainerPart(e4.idExpressionText, false); + return o.default.isUndefined(t4) || t4.outOfService; + }); + return o.default.isUndefined(t3); + } + _buildExpressionGeneration() { + if (0 === this.builderPartContainers.length) { + return this._buildExpressionGenerationFromManager(this.builderPartsManager) || _.default.createEmptyStringGeneration(); + } + let e3 = ""; + const t3 = _.default.genericBuilderWithPartsGenerator.createGeneration(); + o.default.each(this.builderPartContainers, (i4) => { + const n3 = i4.buildExpressionGeneration(); + n3 && (t3.addGenerationToBucket(n3, "containerPartGenerations"), e3 += ")"); + }); + const i3 = this._buildExpressionGenerationFromManager(this.builderPartsManager); + return t3.addGenerationToBucket(i3 || _.default.createEmptyStringGeneration(), "builderGeneration"), t3.setReplacementTokens(e3), t3; + } + _buildExpressionGenerationFromManager(e3) { + } + findBestContainerPartForCriteria(e3) { + return this.builderContainerPartsManager.findBestContainerPartForCriteria(e3) || this.builderPartsManager.findBestContainerPartForCriteria(e3); + } + } + t2.BaseBuilderWithBuilderPartsViewModel = v; + }, 99831: (e2, t2, i2) => { + "use strict"; + const n2 = i2(31635), r2 = i2(96618), o = i2(17604), a = n2.__importDefault(i2(92140)), s = n2.__importDefault(i2(73198)), l = i2(67607), u = i2(21647), d = i2(78513), c = i2(17466), p = i2(37830), _ = i2(26954), h = i2(99469), m = n2.__importDefault(i2(27203)), g = n2.__importStar(i2(36781)), f = n2.__importStar(i2(10798)), T = n2.__importStar(i2(82453)), y = n2.__importStar(i2(66381)), S = n2.__importStar(i2(98442)), A = n2.__importStar(i2(1115)), N = n2.__importDefault(i2(4648)), O = i2(12179), I = i2(12457), v = n2.__importDefault(i2(97891)), C = i2(24383), b = i2(30028), E = i2(87870), R = n2.__importDefault(i2(78791)), w = i2(9290), D = i2(9290), P = i2(9290), M = i2(9290), F = i2(9290), L = i2(9290), x = i2(9290), k = i2(9290), V = i2(80428), U = i2(21305), B = i2(82632), G = i2(47957), j = [r2.flowTypes.flowTypeInboundEmail, r2.flowTypes.flowTypeInQueueEmail], W = r2.flowTypes.flowTypesAllVxmlgen.concat(r2.flowTypes.flowTypeInboundShortMessage, r2.flowTypes.flowTypeInQueueShortMessage, r2.flowTypes.flowTypeInboundEmail, r2.flowTypes.flowTypeInQueueEmail), q = [r2.flowTypes.flowTypeInboundChat, r2.flowTypes.flowTypeInboundEmail, r2.flowTypes.flowTypeInboundShortMessage, r2.flowTypes.flowTypeInQueueEmail, r2.flowTypes.flowTypeInQueueShortMessage, r2.flowTypes.flowTypeSurveyInvite, r2.flowTypes.flowTypeWorkflow], Y = m.default.setSupportedFlowTypes(a.default.clone(m.default.fakeFailure), [...r2.flowTypes.flowTypesAllVxmlgen, r2.flowTypes.flowTypeCommonModule, ...r2.flowTypes.flowTypesAllCicero, r2.flowTypes.flowTypeWorkitem]); + class H extends R.default { + constructor(e3, t3) { + super(e3), this._loadModel(t3); + } + get isTransferPureMatchAction() { + return true; + } + static get branchInfo() { + return Y; + } + static get managedProperties() { + return [{ label: G.transferPureMatch.languageSkill, options: c.ExpressionTypeLanguageSkillOptions.create((e3) => e3.setIsOptional(true).setDefaultToNoValue(true).setModeNoValueSelectionLabel(G.expression.noValue.selection.useDefault).setDescriptionInfo(G.transferPureMatch.languageSkill, G.transferPureMatch.languageSkillDescription).setUseDefaultValueNodeIcons(true).setModeNoValueRuntimeEvaluationStr(G.transferPureMatch.languageSkillDefault, S.getFlowTypesThatSupportLanguages()).setIninTestingField("pureMatchLanguageSkill")), property: "languageSkill", type: V.expressionTypeNames.languageSkill, yamlOptions: H.createYamlOptions("languageSkill", (e3) => e3.setExportOrder(90)) }, { label: G.transferPureMatch.priority, options: d.ExpressionTypeIntegerOptions.create((e3) => e3.setIninTestingField("priorityVSC").facets.setMinInt(0, true).setMaxInt(10, true)), property: "priority", type: V.expressionTypeNames.integer, yamlOptions: H.createYamlOptions("priority", (e3) => e3.setExportOrder(70)), optionsForSpecificFlowTypes: [{ flowTypes: [r2.flowTypes.flowTypeWorkitem], options: d.ExpressionTypeIntegerOptions.create((e3) => e3.setIninTestingField("priorityVSC").setDescriptionInfo(G.transferPureMatch.priority, G.transferPureMatch.workitemPriorityDescription).facets.setMinInt(0, true).setMaxInt(10, true)) }] }, { label: G.configurations.queue, list: true, property: "queues", type: V.expressionTypeNames.queue, options: p.ExpressionTypeQueueOptions.create((e3) => e3.setIninTestingField("pureMatchTransferExpression")), yamlOptions: H.createYamlOptions("queues", (e3) => e3.setPropertyName("targetQueue").setConvertToSingleItem(true).setExportOrder(20)) }, { property: "skills", skills: true, yamlOptions: H.createYamlOptions("skills", (e3) => e3.setPropertyName("acdSkills").setExportOrder(30)) }, { createDetails: b.InqueueFlowActionProperty.createCreateDetails("inQueueFlowId", "inQueueFlowName"), options: h.ManagedPropertyOptions.create(), property: "inQueueFlow", yamlOptions: H.createYamlOptions("inQueueFlow", (e3) => e3.setPropertyName("overrideInQueueFlow").setExportOrder(40)) }, { createDetails: E.NoteActionProperty.createCreateDetails(G.transferPureMatch.transferACDInCommonModuleWarning, "info", "inQueueFlowWarning"), property: "inQueueFlowWarning", yamlOptions: H.createYamlOptions("inQueueFlowWarning", (e3) => e3.setSkipProperty(true)) }, { label: G.transferPureMatch.appendSkills, supportedFlowTypes: j, options: l.ExpressionTypeBooleanOptions.create((e3) => e3.setIninTestingField("appendSkillsExpression").setDescriptionInfo(G.transferPureMatch.appendSkillsHeader, G.transferPureMatch.appendSkillsDescription)), property: "appendSkills", type: V.expressionTypeNames.boolean, yamlOptions: H.createYamlOptions("appendSkills", (e3) => e3.setExportOrder(100)) }, { property: "preferredAgents", label: G.transferPureMatch.preferredAgents, type: V.expressionTypeNames.agentScorePair, options: u.ExpressionTypeComplexOptions.create((e3) => e3.setFeatureConfigName(N.default.knownAgentRouting).setAssumeOosIfTypeUnavailable(true).setAllowModeLiteral(false).setDescriptionInfo(null, G.transferPureMatch.preferredAgentsDescription).setIsOptional(true).setDefaultToNoValue(true).setIninTestingField("preferred-agents"), true).setMaxItems(B.transferToAcd.preferredAgents.maxItems), yamlOptions: H.createYamlOptions("preferredAgents", (e3) => e3.setExportOrder(80)) }, { property: "directAgent", label: G.transferPureMatch.directAgent, supportedFlowTypes: [...W, ...f.isFeatureAvailable(N.default.botFlowsAlignTransferActions) ? [r2.flowTypes.flowTypeDigitalBot] : []], type: V.expressionTypeNames.userQueue, options: _.ExpressionTypeUserOptions.create((e3) => e3.setFeatureConfigName(N.default.vipExperience).setDescriptionInfo(null, G.transferPureMatch.directAgentDescription).setIsOptional(true).setDefaultToNoValue(true).setIninTestingField("direct-agent")), yamlOptions: H.createYamlOptions("directAgent", (e3) => e3.setExportOrder(100)) }, { createDetails: E.NoteActionProperty.createCreateDetails((0, o.sprintf)(G.commonModule.actionOutputExecutableOnlyIfEmbeddingFlowIsCallFlow, G.generic.branches.failure), "info", "branch-warning"), property: "branchExecutionRestriction" }, { label: G.skillExpressionFilters.skillExpressionFiltersLabel, property: "skillExpressionFilters", type: V.expressionTypeNames.skillExpressionFilter, supportedFlowTypes: [r2.flowTypes.flowTypeInboundCall, r2.flowTypes.flowTypeInboundEmail, r2.flowTypes.flowTypeInboundShortMessage, r2.flowTypes.flowTypeOutboundCall, r2.flowTypes.flowTypeInQueueCall, r2.flowTypes.flowTypeInQueueEmail, r2.flowTypes.flowTypeInQueueShortMessage, r2.flowTypes.flowTypeSecureCall, r2.flowTypes.flowTypeVoicemail, r2.flowTypes.flowTypeCommonModule], options: U.ExpressionTypeJsonOptions.create((e3) => e3.setAsInput().setIsOptional(true).setDefaultToNoValue(true).setIsCollection(true).setMinItems(B.transferToAcd.skillExpressionFilters.minItems).setMaxItems(B.transferToAcd.skillExpressionFilters.maxItems).setFeatureConfigName(N.default.routingSkillExpressionsFeature).setIninTestingField("skillExpressionFilters").setDescriptionInfo(null, (0, o.sprintf)(G.generic.joinTwoSentences, G.skillExpressionFilters.transferToAcdSkillExpressionFiltersTooltipInfoPrefix, G.skillExpressionFilters.transferToAcdSkillExpressionFiltersTooltipInfoNonAutomateSuffix))), optionsForSpecificFlowTypes: [{ flowTypes: r2.flowTypes.flowTypesAllAutomate, options: U.ExpressionTypeJsonOptions.create((e3) => e3.setAsInput().setIsOptional(true).setDefaultToNoValue(true).setIsCollection(true).setMinItems(B.transferToAcd.skillExpressionFilters.minItems).setMaxItems(B.transferToAcd.skillExpressionFilters.maxItems).setFeatureConfigName(N.default.routingSkillExpressionsFeature).setIninTestingField("skillExpressionFilters").setDescriptionInfo(null, (0, o.sprintf)(G.generic.joinTwoSentences, G.skillExpressionFilters.transferToAcdSkillExpressionFiltersTooltipInfoPrefix, G.skillExpressionFilters.transferToAcdSkillExpressionFiltersTooltipInfoAutomateSuffix))) }], yamlOptions: H.createYamlOptions("skillExpressionFilters", (e3) => e3.setPropertyName("skillExpressionFilters")) }]; + } + _getPossibleErrors() { + const e3 = f.isFeatureAvailable(N.default.knownAgentRouting), t3 = f.isFeatureAvailable(N.default.routingSkillExpressionsFeature); + return e3 && t3 ? this.parentFlow.isWorkitemFlow ? L.transferToAcdWorkitemFailureReasonsAll : P.transferToAcdFailureReasonsAll : e3 ? this.parentFlow.isWorkitemFlow ? x.transferToAcdWorkitemFailureReasonsKnownAgentRoutingFeature : M.transferToAcdFailureReasonsKnownAgentRoutingFeature : t3 ? this.parentFlow.isWorkitemFlow ? k.transferToAcdWorkitemFailureReasonsRoutingSkillExpressionsFeature : F.transferToAcdFailureReasonsRoutingSkillExpressionsFeature : this.parentFlow.isWorkitemFlow ? D.baseTransferToAcdWorkitemFailureReasons : w.baseTransferToAcdFailureReasons; + } + _loadModel(e3) { + super._loadModel(e3), this.useDefaultHandling = void 0 === this.useDefaultHandling || this.useDefaultHandling, this.languageSkill.isEmpty && this.languageSkill.isExpressionMode && this.languageSkill.setAsNoValue(); + } + _overrideProperties() { + super._overrideProperties.apply(this, arguments), this.skills.attachValidator((e3, t3, i3) => { + const n3 = a.default.where(i3, { text: t3.text }); + if (n3 && n3.length > 1) { + const i4 = G.skills.multipleSkillsError; + t3.setLiteralError(true), t3.setParseError(i4), e3.nodeHasError(this.id, i4) || e3.addError(this, i4); + } + }); + } + getDetails() { + const e3 = [], t3 = [], i3 = function(i4, n3, r3) { + if (i4 && i4.length) for (let a2 = 0; a2 < i4.length; a2++) { + const s2 = i4[a2]; + e3.push((0, o.sprintf)(n3, a2 + 1)), t3.push(r3(s2)); + } + }; + return this.queues ? i3(this.queues.items, G.transferPureMatch.queue, function(e4) { + return e4.text; + }) : this.topic.errorWithErrorObjectInfo(`Blank queues property found in TransferPureMatchActionViewModel. Action info: ${this.toString()}`, this, true), this.skills ? i3(this.skills.items, G.transferPureMatch.skill, function(e4) { + return e4.skill.text; + }) : this.topic.errorWithErrorObjectInfo(`Blank skills property found in TransferPureMatchActionViewModel. Action info: ${this.toString()}`, this, true), this.supportedInQueueFlowType && !this.model.useDefaultHandling && (e3.push(this.inQueueFlow.configListManager.dependencyType.name), t3.push(this.inQueueFlowName)), new I.ActionDetails(e3, t3); + } + setNewInstanceDefaults() { + super.setNewInstanceDefaults(), this.queues.add(), this.priority.setAsLiteral("0"), this.appendSkills.setAsLiteral(this.supportsAppendSkills.toString()); + } + _initializeDesignTime() { + super._initializeDesignTime(), this.appendSkills.isLiteralMode && this.appendSkills.isBlank && this.appendSkills.setAsLiteral(s.default.false), this.priority.options.facets.setMinInt(s.default.minConversationPriority, true).setMaxInt(s.default.maxConversationPriority, true), this.parentFlow.isCommonModuleFlow ? (this.addAutoCleanedUpEventSinkWatch(g.destinationFlowTypesChanged, this.parentFlow.commonModuleSettings, () => { + this._updateInqueueFlowWarningOutOfService(), this._updateBranchesOOS(); + }), this._updateBranchesOOS()) : this.branchExecutionRestriction.outOfService = true, this._updateInqueueFlowWarningOutOfService(); + } + _updateInqueueFlowWarningOutOfService() { + if (this.parentFlow.isCommonModuleFlow) { + if (this.inQueueFlowWarning.outOfService = !T.needsConflictingInQueueFlowTypes(this.parentFlow), this.inQueueFlowWarning.outOfService) { + const e3 = T.getUnsupportedDestinationFlowTypes(this.parentFlow); + e3.length ? this.inQueueFlow.options.setDescriptionInfo(this.inQueueFlow.configListManager.dependencyType.displayName, (0, o.sprintf)(G.commonModule.notAvailableInFlowTypes, y.getFlowTypesDisplayString(e3))) : this.inQueueFlow.options.clearDescriptionInfo(); + } + } else this.inQueueFlowWarning.outOfService = true, this.inQueueFlow.options.clearDescriptionInfo(); + } + _updateBranchesOOS() { + const e3 = r2.flowTypes.hasVxmlgenFlowType(this.parentFlow.destinationFlowTypes) || r2.flowTypes.hasCiceroFlowType(this.parentFlow.destinationFlowTypes), t3 = r2.flowTypes.hasAutomateFlowType(this.parentFlow.destinationFlowTypes); + this.branches.forEach((t4) => { + t4.outOfService = !e3; + }), this.branchExecutionRestriction.outOfService = !(e3 && t3); + } + get supportsAppendSkills() { + return a.default.contains(j, this.parentFlow.type); + } + search(e3) { + var t3; + super.search.apply(this, arguments), this.inQueueFlowName && (null === (t3 = this.supportedInQueueFlowTypeDefinition) || void 0 === t3 ? void 0 : t3.typeDisplayName) && e3.checkText(this, this.inQueueFlowName, this.supportedInQueueFlowTypeDefinition.typeDisplayName); + } + get supportedInQueueFlowTypeDefinition() { + return T.getInqueueFlowTypeDefinition(this.parentFlow); + } + get supportedInQueueFlowType() { + return T.getSupportedInQueueFlowType(this.parentFlow); + } + get useDefaultHandling() { + return this.model.useDefaultHandling; + } + set useDefaultHandling(e3) { + e3 !== this.model.useDefaultHandling && (this.model.useDefaultHandling = e3, this.initializeDesignTimeCalled && A.validateNode(this)); + } + } + H.info = v.default.createActionInfo({ actionClass: H, canBeInTask: true, canBeTreeNode: true, helpTopic: O.helpTopics.actions.transferPureMatch, modelClass: i2(24421), name: G.actions.transfers.acd, scriptingName: "ArchActionTransferToAcd", terminationInfoForFlowTypes: [{ flowTypes: q, terminationInfo: C.terminatesFlow }] }), t2.A = H; + }, 99835: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.botConnectorIntegrationManager = t2.BotConnectorIntegrationManager = void 0; + const n2 = i2(31635), r2 = n2.__importStar(i2(32236)), o = n2.__importStar(i2(1360)), a = n2.__importStar(i2(24032)), s = i2(30801), l = n2.__importDefault(i2(47532)), u = i2(81801), d = i2(37707), c = i2(97081), p = i2(47957), _ = i2(27862); + class h extends l.default { + get requiredAuth() { + return u.externalAuthorizations.authStrings.integrationView; + } + get dependencyType() { + return _.BotConnectorIntegration; + } + constructor() { + super(), this.topic = a.getTopic("BotConnectorIntegrationManager"), this.apiCallList = r2.getBotConnectorIntegrations, this.apiCallSingle = r2.getIntegration, this._rawServerCache = {}, this.actionPropertyForUsageSearch = "botIntegration", this.actionsForUsageSearch = [s.botConnectorActionType], this.className = "BotConnectorIntegrationManager", this.defaultMatchingStyle = o.exactMatch, this.dependencyContext = p.botConnector.botIntegration, this.searchField = "name", this.securityError = true, this.suppressSearch = true, this.shouldRequestAllPages = true, this.defaultPageSize = 100, this.uiMetadataSectionName = "botIntegration", this._initialize(); + } + _createItemViewModel(e3) { + return new c.IntegrationViewModel(e3); + } + get _networkModel() { + return d.Integration; + } + } + t2.BotConnectorIntegrationManager = h, t2.botConnectorIntegrationManager = new h(); + }, 99847: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = i2(31635).__importDefault(i2(92661)), r2 = i2(30801); + class o extends n2.default { + constructor(e3) { + super(e3); + } + get _actionTypeId() { + return r2.findGroupActionType; + } + get displayTypeName() { + return this._scriptingName; + } + get isArchActionFindGroup() { + return true; + } + get findResult() { + return this._findResult; + } + } + t2.default = o; + }, 99918: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.surveyFormManager = t2.SurveyFormManager = void 0; + const n2 = i2(31635), r2 = n2.__importStar(i2(62241)), o = n2.__importStar(i2(87995)), a = n2.__importStar(i2(24032)), s = n2.__importDefault(i2(47532)), l = i2(81801), u = n2.__importDefault(i2(1360)), d = n2.__importDefault(i2(1735)), c = i2(2305), p = i2(78863), _ = i2(27862); + class h extends s.default { + get requiredAuth() { + return l.externalAuthorizations.authStrings.surveyFormView; + } + get dependencyType() { + return _.SurveyForm; + } + constructor() { + super(), this.topic = a.getTopic("SurveyFormManager"), this.apiCallList = o.getSurveyForms, this.apiCallSingle = o.getSurveyForm, this._rawServerCache = {}, this.actionsForUsageSearch = [], this.actionPropertyForUsageSearch = "", this.className = "SurveyFormManager", this.defaultMatchingStyle = u.default.containsAssumed, this.dependencyContext = null, this.securityError = true, this.sortNotSupported = true, this.suppressSearch = false, this.uiMetadataSectionName = "surveyForms", this.defaultPageSize = 100, this.keepDeletedItems = true, this._initialize(); + } + _createItemViewModel(e3) { + return (null == e3 ? void 0 : e3.result) === r2.results.doesNotExist ? e3.dependencyError = c.SurveyFormDependencyErrors.doesNotExist : (null == e3 ? void 0 : e3.disabled) ? e3.dependencyError = c.SurveyFormDependencyErrors.disabled : false === (null == e3 ? void 0 : e3.latestPublishedVersion) ? e3.dependencyError = c.SurveyFormDependencyErrors.notLatest : e3.dependencyError = c.SurveyFormDependencyErrors.none, new p.SurveyFormViewModel(e3); + } + get _networkModel() { + return d.default; + } + get isSurveyFormManager() { + return true; + } + additionalItemFilter(e3) { + const t3 = e3.filter((e4) => !e4.disabled); + return this.filteredOutItemCount += e3.length - t3.length, t3; + } + filterDuplicates(e3) { + const t3 = []; + return e3.forEach((e4) => { + const i3 = t3.find((t4) => t4.contextId === e4.contextId); + e4.dependencyError !== c.SurveyFormDependencyErrors.doesNotExist && (i3 ? i3 && this._publishedFormDateIsNewerThanPrevious(e4, i3) && Object.assign(i3, e4) : t3.push(e4)); + }), t3.sort(function(e4, t4) { + return e4.name.localeCompare(t4.name); + }); + } + _publishedFormDateIsNewerThanPrevious(e3, t3) { + return !(!(null == e3 ? void 0 : e3.isPublished) || e3.isDisabled) && (null == e3 ? void 0 : e3.modifiedDate.getTime()) > (null == t3 ? void 0 : t3.modifiedDate.getTime()); + } + } + t2.SurveyFormManager = h, t2.surveyFormManager = new h(); + }, 99923: (e2, t2, i2) => { + "use strict"; + Object.defineProperty(t2, "__esModule", { value: true }), t2.vmEntityTypesAll = t2.vmEntityTypeUser = t2.vmEntityTypeQueue = t2.vmEntityTypeGroup = void 0; + const n2 = i2(47957); + t2.vmEntityTypeGroup = { displayString: n2.group.label, id: "group" }, t2.vmEntityTypeQueue = { displayString: n2.configurations.queue, id: "queue" }, t2.vmEntityTypeUser = { displayString: n2.user.label, id: "user" }, t2.vmEntityTypesAll = [t2.vmEntityTypeGroup, t2.vmEntityTypeQueue, t2.vmEntityTypeUser]; + } }, n = {}; + function r(e2) { + var t2 = n[e2]; + if (void 0 !== t2) return t2.exports; + var o = n[e2] = { id: e2, loaded: false, exports: {} }; + return i[e2].call(o.exports, o, o.exports, r), o.loaded = true, o.exports; + } + return r.m = i, r.d = (e2, t2) => { + for (var i2 in t2) r.o(t2, i2) && !r.o(e2, i2) && Object.defineProperty(e2, i2, { enumerable: true, get: t2[i2] }); + }, r.f = {}, r.e = (e2) => Promise.all(Object.keys(r.f).reduce((t2, i2) => (r.f[i2](e2, t2), t2), [])), r.u = (e2) => e2 + ".bundle.js", r.o = (e2, t2) => Object.prototype.hasOwnProperty.call(e2, t2), r.r = (e2) => { + "undefined" != typeof Symbol && Symbol.toStringTag && Object.defineProperty(e2, Symbol.toStringTag, { value: "Module" }), Object.defineProperty(e2, "__esModule", { value: true }); + }, r.nmd = (e2) => (e2.paths = [], e2.children || (e2.children = []), e2), e = { 6562: 1 }, r.f.require = (t2, i2) => { + if (!e[t2]) { + var n2 = globRequire("./" + r.u(t2)); + e[t2] || ((t3) => { + var i3 = t3.modules, n3 = t3.ids, o = t3.runtime; + for (var a in i3) r.o(i3, a) && (r.m[a] = i3[a]); + o && o(r); + for (var s = 0; s < n3.length; s++) e[n3[s]] = 1; + })(n2); + } + }, r(42699); + })()); + } +}); + +// src/deploy-runner/index.ts +var import_node_https = __toESM(require("node:https")); +var import_node_path = __toESM(require("node:path")); +var import_node_url = require("node:url"); +var import_node_util = require("node:util"); +var TIMEOUT_MS = 9e4; +function emit(type, ...args) { + if (type === "log") { + const [level, message] = args; + process.stdout.write(`${JSON.stringify({ type, level, message })} +`); + } else { + const [payload] = args; + process.stdout.write(`${JSON.stringify({ type, ...payload })} +`); + } +} +var httpErrors = []; +var traces = []; +function wrapResponseCallback(args, opts) { + const lastIdx = args.length - 1; + if (lastIdx < 0 || typeof args[lastIdx] !== "function") return; + const origCb = args[lastIdx]; + args[lastIdx] = (res) => { + if (res.statusCode && res.statusCode >= 400) { + let body = ""; + res.on("data", (chunk) => body += chunk); + res.on("end", () => { + let parsed; + try { + parsed = JSON.parse(body); + } catch { + parsed = body; + } + const entry = { + status: res.statusCode, + method: opts.method || "GET", + path: opts.path ?? void 0, + body: parsed + }; + httpErrors.push(entry); + const msg = typeof parsed === "object" && parsed !== null ? parsed.message || parsed.error || JSON.stringify(parsed) : parsed; + emit( + "log", + "error", + `HTTP ${entry.status} ${entry.method} ${entry.path} \u2014 ${msg}` + ); + }); + } + origCb(res); + }; +} +function extractOpts(args) { + for (const arg of args) { + if (typeof arg === "object" && arg !== null && !(arg instanceof URL)) + return arg; + } + return {}; +} +var origRequest = import_node_https.default.request; +import_node_https.default.request = function patchedRequest(...args) { + wrapResponseCallback(args, extractOpts(args)); + return origRequest.apply(this, args); +}; +var origGet = import_node_https.default.get; +import_node_https.default.get = function patchedGet(...args) { + wrapResponseCallback(args, extractOpts(args)); + return origGet.apply(this, args); +}; +var origConsoleLog = console.log; +var tracePrefix = "TRACE:"; +function interceptTrace(text) { + if (text.startsWith(tracePrefix)) { + const msg = text.slice(tracePrefix.length).trim(); + traces.push(msg); + emit("log", "info", msg); + return true; + } + return false; +} +console.log = (...args) => { + const first = args[0]; + if (typeof first === "string") { + if (interceptTrace(first)) return; + if (first.startsWith("- ") || first.startsWith("navigator unavailable")) + return; + } + origConsoleLog.apply(console, args); +}; +var origStdoutWrite = process.stdout.write.bind(process.stdout); +process.stdout.write = ((chunk, ...rest) => { + const str = typeof chunk === "string" ? chunk : String(chunk); + if (str.startsWith(tracePrefix)) { + interceptTrace(str.trimEnd()); + return true; + } + return origStdoutWrite(chunk, ...rest); +}); +var LEVEL_PREFIX = { + error: "error", + warning: "warn", + info: "info" +}; +function installLogging(scripting) { + const logging = scripting.services.archLogging; + logging.setLoggingCallback((logMessage) => { + const level = logMessage.logType || "info"; + const msg = logMessage.messageParts?.message || logMessage.messageFull || ""; + if (msg.includes("clientSecret:") || msg.includes("auth token")) + return false; + emit("log", LEVEL_PREFIX[level] || "info", msg); + return false; + }); +} +function startSession(scripting, { region, clientId, clientSecret }) { + const session = scripting.environment.archSession; + session.endTerminatesProcess = false; + return new Promise((resolve, reject) => { + let started = false; + session.startWithClientIdAndSecret( + region, + function onStarted() { + started = true; + resolve(session); + }, + clientId, + clientSecret, + function onEnding() { + if (started) return; + const lastHttp = httpErrors[httpErrors.length - 1]; + const lastTrace = traces[traces.length - 1]; + const detail = lastHttp ? `HTTP ${lastHttp.status}: ${typeof lastHttp.body === "object" ? lastHttp.body.message || JSON.stringify(lastHttp.body) : lastHttp.body}` : lastTrace || "Session ended before authentication completed"; + reject(new Error(`Session start failed \u2014 ${detail}`)); + }, + true + ); + }); +} +async function main() { + const timer = setTimeout(() => { + emit("result", { + success: false, + error: `Deploy timed out after ${TIMEOUT_MS / 1e3}s` + }); + process.exit(2); + }, TIMEOUT_MS); + timer.unref(); + const { values } = (0, import_node_util.parseArgs)({ + options: { + "flow-file": { type: "string" } + }, + strict: true + }); + const flowFile = values["flow-file"]; + if (!flowFile) { + emit("result", { + success: false, + error: "Missing --flow-file argument" + }); + process.exit(1); + } + const absoluteFlowPath = import_node_path.default.resolve(flowFile); + const region = process.env.GENESYS_REGION; + const clientId = process.env.GENESYS_CLIENT_ID; + const clientSecret = process.env.GENESYS_CLIENT_SECRET; + if (!region || !clientId || !clientSecret) { + emit("result", { + success: false, + error: "Missing required environment variables: GENESYS_REGION, GENESYS_CLIENT_ID, GENESYS_CLIENT_SECRET" + }); + process.exit(1); + } + emit("log", "info", "Loading Architect Scripting SDK..."); + const scripting = require_scripting_bundle(); + installLogging(scripting); + emit("log", "info", `Starting SDK session (region: ${region})...`); + const session = await startSession(scripting, { + region, + clientId, + clientSecret + }); + try { + emit("log", "info", `Importing flow file: ${absoluteFlowPath}`); + const mod = await import((0, import_node_url.pathToFileURL)(absoluteFlowPath).href); + if (typeof mod.buildFlow !== "function") { + emit("result", { + success: false, + error: `Flow file does not export a buildFlow function: ${absoluteFlowPath}` + }); + return; + } + await mod.buildFlow(scripting); + emit("result", { success: true }); + } catch (err) { + const message = err instanceof Error ? err.message : String(err); + emit("result", { success: false, error: message }); + } finally { + session.endExitCode = 0; + session.end(); + } +} +main().then(() => process.exit(0)).catch((err) => { + emit("result", { + success: false, + error: `Unhandled error: ${err instanceof Error ? err.message : String(err)}` + }); + process.exit(1); +}); +/*! Bundled license information: + +purecloud-flow-scripting-api-sdk-javascript/build-scripting/release/scripting.bundle.js: + (*! For license information please see scripting.bundle.js.LICENSE.txt *) +*/ From b2d3c8015b0f009cf7c5c5eac01ddba4e8f9ad05 Mon Sep 17 00:00:00 2001 From: Lucas Woodward <31957045+SketchingDev@users.noreply.github.com> Date: Mon, 1 Jun 2026 22:02:38 +0100 Subject: [PATCH 03/11] Define deploy flow tool --- src/mcp-server/index.ts | 21 ++- src/mcp-server/tools/deploy-flow.ts | 179 ++++++++++++++++++++++ src/mcp-server/tools/flow-dependencies.ts | 9 +- src/mcp-server/tools/types.ts | 9 +- 4 files changed, 204 insertions(+), 14 deletions(-) create mode 100644 src/mcp-server/tools/deploy-flow.ts diff --git a/src/mcp-server/index.ts b/src/mcp-server/index.ts index 981483a..ddb3bb8 100644 --- a/src/mcp-server/index.ts +++ b/src/mcp-server/index.ts @@ -2,8 +2,8 @@ import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js"; import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js"; import platformClient from "purecloud-platform-client-v2"; import { z } from "zod/v3"; +import { deployFlow } from "./tools/deploy-flow.ts"; import { flowDependencies } from "./tools/flow-dependencies.ts"; -import type { ServerContext } from "./tools/types.ts"; const envVars = z .object({ @@ -13,22 +13,31 @@ const envVars = z }) .parse(process.env); -const ctx: ServerContext = { - architectApi: new platformClient.ArchitectApi(), -}; - const server = new McpServer({ name: "genesys-cloud-architect", version: process.env.npm_package_version ?? "0.0.0", }); -const flowDependenciesTool = flowDependencies(ctx); +const flowDependenciesTool = flowDependencies({ + architectApi: new platformClient.ArchitectApi(), +}); server.registerTool( "flow_dependencies", flowDependenciesTool.config, flowDependenciesTool.handler, ); +const deployFlowTool = deployFlow({ + clientId: envVars.CLAUDE_PLUGIN_OPTION_genesys_client_id, + clientSecret: envVars.CLAUDE_PLUGIN_OPTION_genesys_client_secret, + region: envVars.CLAUDE_PLUGIN_OPTION_genesys_region, +}); +server.registerTool( + "deploy_flow", + deployFlowTool.config, + deployFlowTool.handler, +); + void (async () => { const client = platformClient.ApiClient.instance; client.setEnvironment(envVars.CLAUDE_PLUGIN_OPTION_genesys_region); diff --git a/src/mcp-server/tools/deploy-flow.ts b/src/mcp-server/tools/deploy-flow.ts new file mode 100644 index 0000000..799ab62 --- /dev/null +++ b/src/mcp-server/tools/deploy-flow.ts @@ -0,0 +1,179 @@ +import { spawn } from "node:child_process"; +import fs from "node:fs"; +import path from "node:path"; +import { z } from "zod/v3"; +import type { ToolFactory } from "./types.ts"; + +interface DeployRunnerLine { + type: "log" | "result"; + level?: string; + message?: string; + success?: boolean; + flowId?: string; + flowName?: string; + error?: string; +} + +const DEPLOY_TIMEOUT_MS = 120_000; +const DEPLOY_RUNNER_PATH = path.resolve("bin", "deploy-runner.js"); + +export interface DeployFlowConfig { + readonly region: string; + readonly clientId: string; + readonly clientSecret: string; +} + +export const deployFlow: ToolFactory = (toolConfig) => ({ + 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.", + annotations: { + title: "Deploy Flow", + readOnlyHint: false, + destructiveHint: true, + }, + inputSchema: { + flowFile: z + .string() + .min(1) + .describe("Path to the TypeScript flow file"), + }, + }, + handler: async ({ flowFile }) => { + const absolutePath = path.resolve(flowFile as string); + if (!fs.existsSync(absolutePath)) { + return { + isError: true, + content: [ + { + type: "text", + text: `Flow file not found: ${absolutePath}`, + }, + ], + }; + } + + const nodeArgs = [DEPLOY_RUNNER_PATH, "--flow-file", absolutePath]; + + return new Promise((resolve) => { + const logs: string[] = []; + let resultLine: DeployRunnerLine | undefined; + let settled = false; + + const settle = (value: { + isError?: boolean; + content: Array<{ type: "text"; text: string }>; + }) => { + if (settled) return; + settled = true; + clearTimeout(timer); + resolve(value); + }; + + const child = spawn("node", nodeArgs, { + env: { + ...process.env, + GENESYS_REGION: toolConfig.region, + GENESYS_CLIENT_ID: toolConfig.clientId, + GENESYS_CLIENT_SECRET: toolConfig.clientSecret, + }, + cwd: path.dirname(absolutePath), + stdio: ["ignore", "pipe", "pipe"], + }); + + const timer = setTimeout(() => { + child.kill("SIGTERM"); + settle({ + isError: true, + content: [ + { + type: "text", + text: `Deploy timed out after ${DEPLOY_TIMEOUT_MS / 1000}s.\n\nLogs:\n${logs.join("\n")}`, + }, + ], + }); + }, DEPLOY_TIMEOUT_MS); + + let stdoutBuf = ""; + child.stdout.on("data", (chunk: Buffer) => { + stdoutBuf += chunk.toString(); + const lines = stdoutBuf.split("\n"); + stdoutBuf = lines.pop() ?? ""; + + for (const line of lines) { + if (!line.trim()) continue; + try { + const parsed = JSON.parse(line) as DeployRunnerLine; + if (parsed.type === "log") { + logs.push(`[${parsed.level}] ${parsed.message}`); + } else if (parsed.type === "result") { + resultLine = parsed; + } + } catch { + logs.push(line); + } + } + }); + + let stderrBuf = ""; + child.stderr.on("data", (chunk: Buffer) => { + stderrBuf += chunk.toString(); + }); + + child.on("close", (code) => { + if (stdoutBuf.trim()) { + try { + const parsed = JSON.parse( + stdoutBuf.trim(), + ) as DeployRunnerLine; + if (parsed.type === "result") resultLine = parsed; + else if (parsed.type === "log") + logs.push(`[${parsed.level}] ${parsed.message}`); + } catch { + if (stdoutBuf.trim()) logs.push(stdoutBuf.trim()); + } + } + + if (stderrBuf.trim()) { + logs.push(`[stderr] ${stderrBuf.trim()}`); + } + + const logOutput = logs.length + ? `\n\nLogs:\n${logs.join("\n")}` + : ""; + + if (resultLine?.success) { + const parts = ["Flow deployed successfully."]; + if (resultLine.flowId) + parts.push(`Flow ID: ${resultLine.flowId}`); + if (resultLine.flowName) + parts.push(`Flow Name: ${resultLine.flowName}`); + + settle({ + content: [ + { + type: "text", + text: parts.join("\n") + logOutput, + }, + ], + }); + } else { + const errorMsg = + resultLine?.error ?? + `Deploy runner exited with code ${code}`; + settle({ + isError: true, + content: [ + { + type: "text", + text: `Deploy failed: ${errorMsg}${logOutput}`, + }, + ], + }); + } + }); + }); + }, +}); diff --git a/src/mcp-server/tools/flow-dependencies.ts b/src/mcp-server/tools/flow-dependencies.ts index a3a16c2..447adad 100644 --- a/src/mcp-server/tools/flow-dependencies.ts +++ b/src/mcp-server/tools/flow-dependencies.ts @@ -1,4 +1,5 @@ import type platformClient from "purecloud-platform-client-v2"; +import type { ArchitectApi } from "purecloud-platform-client-v2"; import { z } from "zod/v3"; import type { ToolFactory } from "./types.ts"; @@ -47,7 +48,13 @@ function buildResult( }; } -export const flowDependencies: ToolFactory = ({ architectApi }) => ({ +export interface ToolConfig { + architectApi: ArchitectApi; +} + +export const flowDependencies: ToolFactory = ({ + architectApi, +}: ToolConfig) => ({ config: { description: "Retrieves all dependencies consumed by a Genesys Cloud Architect flow. " + diff --git a/src/mcp-server/tools/types.ts b/src/mcp-server/tools/types.ts index e343727..5355eee 100644 --- a/src/mcp-server/tools/types.ts +++ b/src/mcp-server/tools/types.ts @@ -1,11 +1,6 @@ import type { ToolAnnotations } from "@modelcontextprotocol/sdk/types.js"; -import type { ArchitectApi } from "purecloud-platform-client-v2"; import type { ZodRawShape } from "zod/v3"; -export type ServerContext = { - architectApi: ArchitectApi; -}; - export type ToolConfig = { config: { description: string; @@ -18,6 +13,6 @@ export type ToolConfig = { }>; }; -export type ToolFactory = ( - ctx: ServerContext, +export type ToolFactory = ( + ctx: U, ) => ToolConfig; From 0750eae115b3267359ec3c137f19a28bfab8522a Mon Sep 17 00:00:00 2001 From: Lucas Woodward <31957045+SketchingDev@users.noreply.github.com> Date: Mon, 1 Jun 2026 22:06:57 +0100 Subject: [PATCH 04/11] Add deploy runner --- src/deploy-runner/index.ts | 303 +++++++++++++++++++++++++++++++++++++ 1 file changed, 303 insertions(+) create mode 100644 src/deploy-runner/index.ts diff --git a/src/deploy-runner/index.ts b/src/deploy-runner/index.ts new file mode 100644 index 0000000..7873016 --- /dev/null +++ b/src/deploy-runner/index.ts @@ -0,0 +1,303 @@ +// biome-ignore-all lint/suspicious/noExplicitAny: monkey-patching the SDK requires unsafe casts +// biome-ignore-all lint/complexity/noBannedTypes: same reason +// biome-ignore-all lint/style/noNonNullAssertion: statusCode is guaranteed non-null inside the >= 400 guard +import type { IncomingMessage, RequestOptions } from "node:http"; +import https from "node:https"; +import path from "node:path"; +import { pathToFileURL } from "node:url"; +import { parseArgs } from "node:util"; + +const TIMEOUT_MS = 90_000; + +type LogLevel = "info" | "warn" | "error"; + +function emit(type: "log", level: LogLevel, message: string): void; +function emit( + type: "result", + payload: { + success: boolean; + flowId?: string; + flowName?: string; + error?: string; + }, +): void; +function emit(type: string, ...args: unknown[]): void { + if (type === "log") { + const [level, message] = args as [LogLevel, string]; + process.stdout.write(`${JSON.stringify({ type, level, message })}\n`); + } else { + const [payload] = args as [Record]; + process.stdout.write(`${JSON.stringify({ type, ...payload })}\n`); + } +} + +// ── HTTPS interceptor ────────────────────────────────────────────────── +// Must be installed before requiring the SDK so all its requests are wrapped. + +interface HttpError { + status: number; + method: string; + path: string | undefined; + body: unknown; +} + +const httpErrors: HttpError[] = []; +const traces: string[] = []; + +function wrapResponseCallback(args: any[], opts: RequestOptions): void { + const lastIdx = args.length - 1; + if (lastIdx < 0 || typeof args[lastIdx] !== "function") return; + const origCb = args[lastIdx] as (res: IncomingMessage) => void; + args[lastIdx] = (res: IncomingMessage) => { + if (res.statusCode && res.statusCode >= 400) { + let body = ""; + res.on("data", (chunk: Buffer) => (body += chunk)); + res.on("end", () => { + let parsed: unknown; + try { + parsed = JSON.parse(body); + } catch { + parsed = body; + } + const entry: HttpError = { + status: res.statusCode!, + method: opts.method || "GET", + path: opts.path ?? undefined, + body: parsed, + }; + httpErrors.push(entry); + const msg = + typeof parsed === "object" && parsed !== null + ? (parsed as any).message || + (parsed as any).error || + JSON.stringify(parsed) + : parsed; + emit( + "log", + "error", + `HTTP ${entry.status} ${entry.method} ${entry.path} — ${msg}`, + ); + }); + } + origCb(res); + }; +} + +function extractOpts(args: any[]): RequestOptions { + for (const arg of args) { + if (typeof arg === "object" && arg !== null && !(arg instanceof URL)) + return arg as RequestOptions; + } + return {}; +} + +const origRequest = https.request; +(https as any).request = function patchedRequest(...args: any[]) { + wrapResponseCallback(args, extractOpts(args)); + return origRequest.apply(this, args as any); +}; + +const origGet = https.get; +(https as any).get = function patchedGet(...args: any[]) { + wrapResponseCallback(args, extractOpts(args)); + return origGet.apply(this, args as any); +}; + +// ── TRACE interceptor ────────────────────────────────────────────────── +// The SDK writes TRACE: lines directly to console.log and stdout, bypassing +// the logging callback. These often contain the actual permission error text. + +const origConsoleLog = console.log; +const tracePrefix = "TRACE:"; + +function interceptTrace(text: string): boolean { + if (text.startsWith(tracePrefix)) { + const msg = text.slice(tracePrefix.length).trim(); + traces.push(msg); + emit("log", "info", msg); + return true; + } + return false; +} + +console.log = (...args: unknown[]) => { + const first = args[0]; + if (typeof first === "string") { + if (interceptTrace(first)) return; + if (first.startsWith("- ") || first.startsWith("navigator unavailable")) + return; + } + origConsoleLog.apply(console, args); +}; + +const origStdoutWrite = process.stdout.write.bind(process.stdout); +process.stdout.write = ((chunk: unknown, ...rest: unknown[]): boolean => { + const str = typeof chunk === "string" ? chunk : String(chunk); + if (str.startsWith(tracePrefix)) { + interceptTrace(str.trimEnd()); + return true; + } + return (origStdoutWrite as Function)(chunk, ...rest); +}) as typeof process.stdout.write; + +// ── SDK logging ──────────────────────────────────────────────────────── + +import type { + ArchitectScripting, + ArchSession, +} from "purecloud-flow-scripting-api-sdk-javascript"; + +const LEVEL_PREFIX: Record = { + error: "error", + warning: "warn", + info: "info", +}; + +interface SdkLogMessage { + logType?: string; + messageParts?: { message?: string }; + messageFull?: string; +} + +function installLogging(scripting: ArchitectScripting): void { + const logging = scripting.services.archLogging; + logging.setLoggingCallback((logMessage: SdkLogMessage) => { + const level = logMessage.logType || "info"; + const msg = + logMessage.messageParts?.message || logMessage.messageFull || ""; + if (msg.includes("clientSecret:") || msg.includes("auth token")) + return false; + emit("log", LEVEL_PREFIX[level] || "info", msg); + return false; + }); +} + +// ── Session wrapper ──────────────────────────────────────────────────── + +interface SessionConfig { + region: string; + clientId: string; + clientSecret: string; +} + +function startSession( + scripting: ArchitectScripting, + { region, clientId, clientSecret }: SessionConfig, +): Promise { + const session = scripting.environment.archSession; + session.endTerminatesProcess = false; + + return new Promise((resolve, reject) => { + let started = false; + session.startWithClientIdAndSecret( + region, + function onStarted() { + started = true; + resolve(session); + }, + clientId, + clientSecret, + function onEnding() { + if (started) return; + const lastHttp = httpErrors[httpErrors.length - 1]; + const lastTrace = traces[traces.length - 1]; + const detail = lastHttp + ? `HTTP ${lastHttp.status}: ${typeof lastHttp.body === "object" ? (lastHttp.body as any).message || JSON.stringify(lastHttp.body) : lastHttp.body}` + : lastTrace || + "Session ended before authentication completed"; + reject(new Error(`Session start failed — ${detail}`)); + }, + true, + ); + }); +} + +// ── Main ─────────────────────────────────────────────────────────────── + +async function main(): Promise { + const timer = setTimeout(() => { + emit("result", { + success: false, + error: `Deploy timed out after ${TIMEOUT_MS / 1000}s`, + }); + process.exit(2); + }, TIMEOUT_MS); + timer.unref(); + + const { values } = parseArgs({ + options: { + "flow-file": { type: "string" }, + }, + strict: true, + }); + + const flowFile = values["flow-file"]; + + if (!flowFile) { + emit("result", { + success: false, + error: "Missing --flow-file argument", + }); + process.exit(1); + } + + const absoluteFlowPath = path.resolve(flowFile); + + const region = process.env.GENESYS_REGION; + const clientId = process.env.GENESYS_CLIENT_ID; + const clientSecret = process.env.GENESYS_CLIENT_SECRET; + + if (!region || !clientId || !clientSecret) { + emit("result", { + success: false, + error: "Missing required environment variables: GENESYS_REGION, GENESYS_CLIENT_ID, GENESYS_CLIENT_SECRET", + }); + process.exit(1); + } + + emit("log", "info", "Loading Architect Scripting SDK..."); + const scripting: ArchitectScripting = require("purecloud-flow-scripting-api-sdk-javascript"); + + installLogging(scripting); + + emit("log", "info", `Starting SDK session (region: ${region})...`); + + const session = await startSession(scripting, { + region, + clientId, + clientSecret, + }); + + try { + emit("log", "info", `Importing flow file: ${absoluteFlowPath}`); + const mod = await import(pathToFileURL(absoluteFlowPath).href); + + if (typeof mod.buildFlow !== "function") { + emit("result", { + success: false, + error: `Flow file does not export a buildFlow function: ${absoluteFlowPath}`, + }); + return; + } + + await mod.buildFlow(scripting); + + emit("result", { success: true }); + } catch (err) { + const message = err instanceof Error ? err.message : String(err); + emit("result", { success: false, error: message }); + } finally { + session.endExitCode = 0; + session.end(); + } +} + +main() + .then(() => process.exit(0)) + .catch((err) => { + emit("result", { + success: false, + error: `Unhandled error: ${err instanceof Error ? err.message : String(err)}`, + }); + process.exit(1); + }); From 75d655ed9f24701c68c064939351808713a959e7 Mon Sep 17 00:00:00 2001 From: Lucas Woodward <31957045+SketchingDev@users.noreply.github.com> Date: Mon, 1 Jun 2026 22:24:55 +0100 Subject: [PATCH 05/11] Add skill for writing flows --- skills/write-flow/SKILL.md | 109 +++++++++++++ .../write-flow/references/action-reference.md | 147 ++++++++++++++++++ .../references/examples/inbound-call.md | 45 ++++++ .../references/examples/inbound-chat.md | 31 ++++ .../references/examples/inbound-email.md | 33 ++++ .../references/examples/inbound-message.md | 31 ++++ .../references/examples/workflow.md | 38 +++++ skills/write-flow/references/gotchas.md | 78 ++++++++++ skills/write-flow/references/sdk-patterns.md | 146 +++++++++++++++++ 9 files changed, 658 insertions(+) create mode 100644 skills/write-flow/SKILL.md create mode 100644 skills/write-flow/references/action-reference.md create mode 100644 skills/write-flow/references/examples/inbound-call.md create mode 100644 skills/write-flow/references/examples/inbound-chat.md create mode 100644 skills/write-flow/references/examples/inbound-email.md create mode 100644 skills/write-flow/references/examples/inbound-message.md create mode 100644 skills/write-flow/references/examples/workflow.md create mode 100644 skills/write-flow/references/gotchas.md create mode 100644 skills/write-flow/references/sdk-patterns.md diff --git a/skills/write-flow/SKILL.md b/skills/write-flow/SKILL.md new file mode 100644 index 0000000..f51ea16 --- /dev/null +++ b/skills/write-flow/SKILL.md @@ -0,0 +1,109 @@ +--- +name: write-flow +description: Write and deploy Genesys Cloud Architect flows as TypeScript using the Architect Scripting SDK. Guides Claude to produce correct flow code that typechecks and deploys. +trigger: + - write a flow + - create a flow + - build a flow + - architect flow + - inbound call flow + - inbound chat flow + - inbound email flow + - inbound message flow + - IVR flow + - chat flow + - email flow + - SMS flow + - workflow flow + - digital bot flow + - deploy a flow +--- + +# Write & Deploy Architect Flows + +Create Genesys Cloud Architect flows as TypeScript, typecheck them, and deploy them via the `deploy_flow` MCP tool. + +## Prerequisites + +The user's project must have the Architect Scripting SDK installed for type checking: + +```bash +npm install --save-dev purecloud-flow-scripting-api-sdk-javascript +``` + +## Workflow + +### 1. Understand the requirement + +Ask the user: +- **Flow type**: inbound call, inbound chat, inbound email, inbound message (SMS), or workflow +- **What it should do**: routing, menus, greetings, queue transfers, data lookups, etc. +- **Queue names**: which Genesys Cloud queues to route to (must exist in the org) +- **Flow name**: what to name the flow in Architect + +### 2. Read the relevant references + +Before writing any flow code, read these reference files from this skill: + +1. **Always read**: `references/sdk-patterns.md` — core SDK patterns and the `buildFlow` contract +2. **Always read**: `references/gotchas.md` — SDK quirks that cause silent failures +3. **Always read**: `references/action-reference.md` — available action types +4. **Read the matching example** from `references/examples/`: + - `inbound-call.md` — IVR with menus and queue transfers + - `inbound-chat.md` — chat greeting and queue transfer + - `inbound-email.md` — auto-reply and queue transfer + - `inbound-message.md` — SMS auto-reply and queue transfer + - `workflow.md` — callback workflow + +### 3. Write the flow file + +Write a TypeScript file in the user's project that exports a `buildFlow` function: + +```typescript +import type { ArchitectScripting } from "purecloud-flow-scripting-api-sdk-javascript"; + +export async function buildFlow(scripting: ArchitectScripting): Promise { + const { archFactoryFlows, archFactoryActions } = scripting.factories; + + const flow = await archFactoryFlows.createFlowInboundCallAsync( + "Flow Name", + "Flow Description", + ); + + // Build the flow... + + await flow.checkInAsync(); +} +``` + +**Rules:** +- The function receives the SDK as a parameter — never `require()` the SDK in the flow file +- Only use `import type` from the SDK (stripped at runtime) +- Always call `flow.checkInAsync()` at the end to save the flow +- Use the exact patterns from the reference docs — the SDK is quirky + +### 4. Typecheck + +Run the TypeScript compiler to validate the flow code: + +```bash +npx tsc --noEmit +``` + +Fix any errors before deploying. + +### 5. Deploy + +Use the `deploy_flow` MCP tool: + +``` +Tool: deploy_flow +Input: { "flowFile": "./path/to/flow.ts" } +``` + +The tool spawns an isolated process that: +1. Starts an authenticated SDK session using the plugin's Genesys credentials +2. Imports the flow file and calls `buildFlow(scripting)` +3. Returns success/failure with SDK logs + +If deployment fails, read the error logs carefully — the SDK has three error channels (logging callback, TRACE lines, HTTP errors) and the deploy runner captures all of them. diff --git a/skills/write-flow/references/action-reference.md b/skills/write-flow/references/action-reference.md new file mode 100644 index 0000000..6b72b1d --- /dev/null +++ b/skills/write-flow/references/action-reference.md @@ -0,0 +1,147 @@ +# Action Reference + +All actions are created via `scripting.factories.archFactoryActions` (aliased as `actionFactory` below). Actions are added to a sequence (e.g., `state.outputSequence`). + +## Voice Actions + +### PlayAudio (TTS) +```typescript +const play = actionFactory.addActionPlayAudio(sequence); +play.setTextToSpeak("Welcome to our service!"); +``` + +### TransferToAcd (Queue Transfer) +```typescript +const transfer = actionFactory.addActionTransferToAcd(sequence); +await transfer.setQueueByName("Sales Queue"); // async — looks up the queue +``` + +### TransferToNumber +```typescript +const transfer = actionFactory.addActionTransferToNumber(sequence); +transfer.numberExpression = '"+15551234567"'; +``` + +### TransferToUser +```typescript +const transfer = actionFactory.addActionTransferToUser(sequence); +// Configure target user +``` + +### GetInput (Collect DTMF) +```typescript +const input = actionFactory.addActionGetInput(sequence); +input.maxDigits = 1; +input.digitTerminator = "#"; +input.noEntryTimeout = 5000; +``` + +### JumpToMenu +```typescript +const jump = actionFactory.addActionJumpToMenu(sequence); +jump.targetMenu = menuObject; +``` + +## Chat / Message Actions + +### SendResponse +```typescript +const response = actionFactory.addActionSendResponse(sequence); +response.setResponseBodyByLiteralString("Hello! How can I help?"); +``` + +### SendAutoReply (Email) +```typescript +const reply = actionFactory.addActionSendAutoReply(sequence); +reply.setFromAddressByLiteralString("noreply@example.com"); +reply.setSubjectByLiteralString("We received your email"); +reply.setBodyByLiteralString("Thank you for your email."); +``` + +## Digital Bot Actions + +### Communicate +```typescript +const comm = actionFactory.addActionCommunicate(container, "Greeting"); +comm.communicationExpression.setExpression('"Hello! How can I help?"'); +``` +Note: use quoted strings inside the expression, NOT `ToAudioTTS()`. + +### DigitalMenu +```typescript +const menu = actionFactory.addActionDigitalMenu(container, "Main Menu"); +menu.question.setExpression('"Choose an option:"'); +const choice1 = menu.addChoice("Option A"); +const choice2 = menu.addChoice("Option B"); +// Access choice output: menu.getOutputByName("Option A", true) +``` + +### ExitBotFlow +```typescript +actionFactory.addActionExitBotFlow(container, "Exit"); +``` + +## Flow Control Actions + +### Decision (Branch) +```typescript +const decision = actionFactory.addActionDecision(sequence); +// Configure conditions on decision.outputs +``` + +### SetVariable +```typescript +const setVar = actionFactory.addActionSetVariable(sequence); +setVar.variableName = "Flow.myVariable"; +setVar.variableValue = '"Hello"'; // string values need expression quotes +``` + +### ChangeState +```typescript +const change = actionFactory.addActionChangeState(sequence); +change.targetState = stateObject; +``` + +### JumpToTask +```typescript +const jump = actionFactory.addActionJumpToTask(container, "Jump Name", taskObject); +``` + +### Loop +```typescript +const loop = actionFactory.addActionLoop(sequence); +loop.loopCount = 3; +// Add actions inside loop.loopSequence +``` + +### Disconnect +```typescript +actionFactory.addActionDisconnect(sequence); +``` + +### EndWorkflow +```typescript +actionFactory.addActionEndWorkflow(sequence); +``` + +## Workflow-Specific Actions + +### CreateCallback +```typescript +const callback = actionFactory.addActionCreateCallback(sequence); +await callback.setQueueByName("Callback Queue"); +callback.callbackNumberExpression = "Flow.callbackNumber"; +``` + +### CallData (Data Action) +```typescript +const dataAction = actionFactory.addActionCallData(sequence); +dataAction.integrationName = "My Integration"; +// Configure action and data mapping +``` + +## Action Naming Convention + +Actions follow the pattern: `addAction[ActionType](sequence)`. + +The first argument is always the sequence/container to add the action to. Some actions (like `addActionCommunicate`, `addActionDigitalMenu`, `addActionJumpToTask`) take an additional name parameter. diff --git a/skills/write-flow/references/examples/inbound-call.md b/skills/write-flow/references/examples/inbound-call.md new file mode 100644 index 0000000..c18872c --- /dev/null +++ b/skills/write-flow/references/examples/inbound-call.md @@ -0,0 +1,45 @@ +# Example: Inbound Call Flow (IVR) + +Simple IVR with a welcome message, main menu with 3 choices, and queue transfers. + +```typescript +import type { ArchitectScripting } from "purecloud-flow-scripting-api-sdk-javascript"; + +export async function buildFlow(scripting: ArchitectScripting): Promise { + const { archFactoryFlows, archFactoryActions, archFactoryMenus } = scripting.factories; + + const flow = await archFactoryFlows.createFlowInboundCallAsync( + "Example IVR Menu", + "Simple IVR with Sales/Support/Billing options", + ); + + const initialState = flow.startUpObject; + + // Play welcome message + const welcome = archFactoryActions.addActionPlayAudio(initialState.outputSequence); + welcome.setTextToSpeak("Thank you for calling. Please listen to the following options."); + + // Create main menu + const mainMenu = archFactoryMenus.addMenu(flow, "Main Menu"); + mainMenu.setMenuPromptByText("Press 1 for Sales, 2 for Support, or 3 for Billing"); + + // Add menu choices with queue transfers + const salesChoice = mainMenu.addMenuChoice("1", "Sales"); + const salesTransfer = archFactoryActions.addActionTransferToAcd(salesChoice.outputSequence); + await salesTransfer.setQueueByName("Sales Queue"); + + const supportChoice = mainMenu.addMenuChoice("2", "Support"); + const supportTransfer = archFactoryActions.addActionTransferToAcd(supportChoice.outputSequence); + await supportTransfer.setQueueByName("Support Queue"); + + const billingChoice = mainMenu.addMenuChoice("3", "Billing"); + const billingTransfer = archFactoryActions.addActionTransferToAcd(billingChoice.outputSequence); + await billingTransfer.setQueueByName("Billing Queue"); + + // Jump to menu from initial state + const jumpToMenu = archFactoryActions.addActionJumpToMenu(initialState.outputSequence); + jumpToMenu.targetMenu = mainMenu; + + await flow.checkInAsync(); +} +``` diff --git a/skills/write-flow/references/examples/inbound-chat.md b/skills/write-flow/references/examples/inbound-chat.md new file mode 100644 index 0000000..0a7bf73 --- /dev/null +++ b/skills/write-flow/references/examples/inbound-chat.md @@ -0,0 +1,31 @@ +# Example: Inbound Chat Flow + +Chat flow with a greeting message and queue transfer. + +```typescript +import type { ArchitectScripting } from "purecloud-flow-scripting-api-sdk-javascript"; + +export async function buildFlow(scripting: ArchitectScripting): Promise { + const { archFactoryFlows, archFactoryActions } = scripting.factories; + + const flow = await archFactoryFlows.createFlowInboundChatAsync( + "Example Chat Flow", + "Simple chat flow with greeting and queue transfer", + ); + + const initialState = flow.startUpObject; + const sequence = initialState.outputSequence; + + // Send initial greeting message + const greeting = archFactoryActions.addActionSendResponse(sequence); + greeting.setResponseBodyByLiteralString( + "Hello! Thank you for contacting us. Please wait while we connect you to an agent.", + ); + + // Transfer to chat queue + const transfer = archFactoryActions.addActionTransferToAcd(sequence); + await transfer.setQueueByName("Chat Support Queue"); + + await flow.checkInAsync(); +} +``` diff --git a/skills/write-flow/references/examples/inbound-email.md b/skills/write-flow/references/examples/inbound-email.md new file mode 100644 index 0000000..3313692 --- /dev/null +++ b/skills/write-flow/references/examples/inbound-email.md @@ -0,0 +1,33 @@ +# Example: Inbound Email Flow + +Email flow with auto-reply and queue transfer. + +```typescript +import type { ArchitectScripting } from "purecloud-flow-scripting-api-sdk-javascript"; + +export async function buildFlow(scripting: ArchitectScripting): Promise { + const { archFactoryFlows, archFactoryActions } = scripting.factories; + + const flow = await archFactoryFlows.createFlowInboundEmailAsync( + "Example Email Flow", + "Simple email handling flow", + ); + + const initialState = flow.startUpObject; + const sequence = initialState.outputSequence; + + // Send auto-reply + const autoReply = archFactoryActions.addActionSendAutoReply(sequence); + autoReply.setFromAddressByLiteralString("noreply@example.com"); + autoReply.setSubjectByLiteralString("We received your email"); + autoReply.setBodyByLiteralString( + "Thank you for your email. We have received it and will respond shortly.", + ); + + // Transfer to email queue + const transfer = archFactoryActions.addActionTransferToAcd(sequence); + await transfer.setQueueByName("Email Support Queue"); + + await flow.checkInAsync(); +} +``` diff --git a/skills/write-flow/references/examples/inbound-message.md b/skills/write-flow/references/examples/inbound-message.md new file mode 100644 index 0000000..8efc1e7 --- /dev/null +++ b/skills/write-flow/references/examples/inbound-message.md @@ -0,0 +1,31 @@ +# Example: Inbound Message Flow (SMS) + +SMS/messaging flow with auto-reply and queue transfer. + +```typescript +import type { ArchitectScripting } from "purecloud-flow-scripting-api-sdk-javascript"; + +export async function buildFlow(scripting: ArchitectScripting): Promise { + const { archFactoryFlows, archFactoryActions } = scripting.factories; + + const flow = await archFactoryFlows.createFlowInboundShortMessageAsync( + "Example SMS Flow", + "Simple SMS auto-reply and queue routing", + ); + + const initialState = flow.startUpObject; + const sequence = initialState.outputSequence; + + // Send auto-reply message + const reply = archFactoryActions.addActionSendResponse(sequence); + reply.setResponseBodyByLiteralString( + "Thank you for your message. An agent will respond to you shortly.", + ); + + // Transfer to messaging queue + const transfer = archFactoryActions.addActionTransferToAcd(sequence); + await transfer.setQueueByName("SMS Support Queue"); + + await flow.checkInAsync(); +} +``` diff --git a/skills/write-flow/references/examples/workflow.md b/skills/write-flow/references/examples/workflow.md new file mode 100644 index 0000000..425e3a4 --- /dev/null +++ b/skills/write-flow/references/examples/workflow.md @@ -0,0 +1,38 @@ +# Example: Workflow (Callback) + +Automated workflow that creates a callback request. + +```typescript +import type { ArchitectScripting } from "purecloud-flow-scripting-api-sdk-javascript"; + +export async function buildFlow(scripting: ArchitectScripting): Promise { + const { archFactoryFlows, archFactoryActions } = scripting.factories; + + const flow = await archFactoryFlows.createFlowWorkflowAsync( + "Example Workflow", + "Simple callback acknowledgment workflow", + ); + + const initialState = flow.startUpObject; + const sequence = initialState.outputSequence; + + // Create callback number variable + const callbackVar = flow.addVariableString("callbackNumber"); + callbackVar.setDefaultValueAsString("Not provided"); + + // Set callback number from caller ANI + const setVar = archFactoryActions.addActionSetVariable(sequence); + setVar.variableName = "Flow.callbackNumber"; + setVar.variableValue = "Call.Ani"; + + // Create callback request + const callback = archFactoryActions.addActionCreateCallback(sequence); + await callback.setQueueByName("Callback Queue"); + callback.callbackNumberExpression = "Flow.callbackNumber"; + + // End workflow + archFactoryActions.addActionEndWorkflow(sequence); + + await flow.checkInAsync(); +} +``` diff --git a/skills/write-flow/references/gotchas.md b/skills/write-flow/references/gotchas.md new file mode 100644 index 0000000..8663a44 --- /dev/null +++ b/skills/write-flow/references/gotchas.md @@ -0,0 +1,78 @@ +# SDK Gotchas + +## Default objects + +Each flow type auto-creates different startup objects: +- `createFlowInboundCallAsync` — "Main Menu" + a default reusable task +- `createFlowDigitalBotAsync` — "Initial Greeting" (`ArchStateBot`) as the starting state +- `createFlowInboundShortMessageAsync` — "Initial State" (`ArchState`) as the starting state + +Adding your own with the same names causes "Another menu/task has the same name" validation errors. Use unique names. + +## Communication expressions in digital bot flows + +Digital bot flows are text-based. Use plain string literal expressions, NOT `ToAudioTTS()`: +- Correct: `'"Hello! How can I help?"'` (a quoted string inside the expression) +- Wrong: `'ToAudioTTS("Hello!")'` — fails with "text to speech is not supported" + +`addActionPlayAudio` wraps its TTS parameter in `ToAudioTTS()` internally, but `addActionCommunicate` takes a raw expression string. + +## Flow dependency chains + +A bot flow cannot be deleted while another flow references it (e.g. via `CallDigitalBotFlow`). The error is `ARCHITECT_DEPENDENCY_OBJECT_IN_USE`. Delete the dependent flow first. + +## Flow name lookups require a saved flow + +`getFlowInfoByFlowNameAsync` searches the server. A flow created in memory is not findable by name until `saveAsync()` or `checkInAsync()` has been called. Build and save the bot flow before calling `buildMessageFlow()`. + +## Type definition inaccuracy: setTargetFlowInfoAsync + +The JSDoc says it accepts `ArchFlowInfo | ArchFlowInfoBasic`, but the TypeScript declaration only lists `ArchFlowInfoBasic`. Use `as any` to pass `ArchFlowInfo` from `getFlowInfoByFlowNameAsync`. + +## Validation vs publish + +`publishAsync` validates locally first. If validation finds only warnings (not errors), it proceeds. The "Initial Greeting has no audio set" warning is cosmetic and does not block publishing. + +## Waiting for free-text input in digital bot flows + +`WaitForInput` is terminal (no continuation). `AskForIntent` is not available. `AskForBoolean`'s `outputMaxNoMatches` path is hardcoded as disabled. + +The working pattern uses `DigitalMenu`: + +```typescript +const menu = actionFactory.addActionDigitalMenu(state, "Menu"); +menu.question.setExpression('"Pick a topic or type a question."'); +menu.addChoice("Topic A"); +menu.customizeNoMatch.setLiteralTrue(); // empty reprompts → immediate MaxNoMatches +menu.outputMaxNoMatches.enabled = true; // must explicitly enable +const freeTextPath = menu.outputMaxNoMatches; +actionFactory.addActionCommunicate(freeTextPath, "Answer", '"Here is the answer."'); +``` + +## Output path enable/disable + +`ArchActionOutput.enabled` controls whether an output path (MaxNoMatches, MaxNoInputs, etc.) is active. Paths default to disabled on most action types. Adding actions to a disabled path produces "Unreachable because path is disabled" warnings. Check `canEnableDisable` before setting. + +## DigitalMenu for Yes/No choices + +In digital bot flows, prefer `DigitalMenu` with Yes/No choices over `AskForBoolean`. AskForBoolean's MaxNoMatches is disabled in digital bot flows and cannot be enabled. Access dynamic outputs with `menu.getOutputByName("Yes", true)` (the `true` flag is required for dynamic outputs). + +## AskForBoolean question property + +`AskForBoolean.question` is typed as `ArchValueString` but `setLiteralString()` throws at runtime. Use `setExpression('"text"')` instead. + +## ArchValueBoolean setExpression + +`setExpression("true")` fails on `ArchValueBoolean` with "cannot assign the expression text 'true'". Use `setLiteralTrue()` / `setLiteralFalse()` instead. + +## Flow naming on re-runs + +`createFlow*Async` deletes an existing flow with the same name. This requires `architect:flow:delete` permission. If you don't have it, use a new name or use `checkoutAndLoadFlowByFlowNameAsync` to update existing flows. + +## Division + +The SDK auto-resolves the Home division during session startup and sets it on `flowFactory.defaultFlowCreationDivision`. You do NOT need to pass a division. + +## Reusable tasks and jumpToTask + +`archFactoryTasks.addTask(flow, name)` creates a reusable task on any flow extending `ArchBaseFlowWorkflow` (includes digital bot flows). For circular references (task A → task B → A), create all tasks as empty shells upfront, then populate them with actions afterward. diff --git a/skills/write-flow/references/sdk-patterns.md b/skills/write-flow/references/sdk-patterns.md new file mode 100644 index 0000000..8cb8156 --- /dev/null +++ b/skills/write-flow/references/sdk-patterns.md @@ -0,0 +1,146 @@ +# Architect Scripting SDK Patterns + +## SDK Namespaces + +The SDK object (`scripting`) has these namespaces: + +```typescript +scripting.environment // archSession, org info +scripting.factories // archFactoryFlows, archFactoryActions, archFactoryMenus, archFactoryStates, archFactoryTasks +scripting.enums // archEnums (constants, flow types, locations) +scripting.services // archLogging +scripting.dataTypes // data type definitions +scripting.languages // language support +``` + +## The `buildFlow` Contract + +Every flow file must export this function: + +```typescript +import type { ArchitectScripting } from "purecloud-flow-scripting-api-sdk-javascript"; + +export async function buildFlow(scripting: ArchitectScripting): Promise { + const { archFactoryFlows, archFactoryActions } = scripting.factories; + + const flow = await archFactoryFlows.createFlowInboundCallAsync( + "My Flow Name", + "Description of the flow", + ); + + // Build the flow logic... + + await flow.checkInAsync(); +} +``` + +- The SDK instance is passed as a parameter — never `require()` it +- Only use `import type` from the SDK package +- The deploy runner handles authentication and session management +- Call `flow.checkInAsync()` to save the flow to Genesys Cloud + +## Flow Creation Methods + +| Flow Type | Factory Method | +|-----------|----------------| +| Inbound Call | `archFactoryFlows.createFlowInboundCallAsync(name, description)` | +| Inbound Chat | `archFactoryFlows.createFlowInboundChatAsync(name, description)` | +| Inbound Email | `archFactoryFlows.createFlowInboundEmailAsync(name, description)` | +| Inbound Message (SMS) | `archFactoryFlows.createFlowInboundShortMessageAsync(name, description)` | +| Workflow | `archFactoryFlows.createFlowWorkflowAsync(name, description)` | +| Digital Bot | `archFactoryFlows.createFlowDigitalBotAsync(name, description)` | + +All return a Promise that resolves to the flow object. + +## Initial State / Startup Object + +Every flow has a `startUpObject` where execution begins: + +```typescript +const initialState = flow.startUpObject; +const sequence = initialState.outputSequence; +``` + +Actions are added to sequences. Every state, menu choice, and decision output has an `outputSequence`. + +## Variables + +```typescript +const nameVar = flow.addVariableString("customerName"); +nameVar.setDefaultValueAsString("Guest"); + +const countVar = flow.addVariableInteger("attemptCount"); +countVar.setDefaultValueAsInteger(0); + +const isVIPVar = flow.addVariableBoolean("isVIP"); +isVIPVar.setDefaultValueAsBoolean(false); +``` + +Common built-in variables: `Call.Ani` (caller's phone), `Call.Dnis` (dialed number). + +## Menus (IVR / DTMF) + +```typescript +const { archFactoryMenus } = scripting.factories; + +const menu = archFactoryMenus.addMenu(flow, "Main Menu"); +menu.setMenuPromptByText("Press 1 for Sales, 2 for Support"); + +const choice1 = menu.addMenuChoice("1", "Sales"); +const choice2 = menu.addMenuChoice("2", "Support"); + +// Add actions to each choice's sequence +const transfer = archFactoryActions.addActionTransferToAcd(choice1.outputSequence); +await transfer.setQueueByName("Sales Queue"); + +// Jump to menu from initial state +const jumpToMenu = archFactoryActions.addActionJumpToMenu(sequence); +jumpToMenu.targetMenu = menu; +``` + +## States (Reusable Segments) + +```typescript +const { archFactoryStates } = scripting.factories; + +const state = archFactoryStates.addState(flow, "MyState"); +// Add actions to state.outputSequence... + +// Jump to state from elsewhere +const changeState = archFactoryActions.addActionChangeState(someSequence); +changeState.targetState = state; +``` + +## Reusable Tasks + +```typescript +const { archFactoryTasks } = scripting.factories; + +const task = archFactoryTasks.addTask(flow, "My Task"); +// Add actions to task.outputSequence... + +// Jump to task from elsewhere +const jumpToTask = archFactoryActions.addActionJumpToTask(someContainer, "jump", task); +``` + +For circular references (task A → task B → task A), create all tasks as empty shells first, then populate them with actions. + +## Async Operations + +Always `await` these: +- Flow creation (`createFlow*Async`) +- Flow save (`checkInAsync`) +- Flow publish (`publishAsync`) +- Queue lookup (`setQueueByName`) +- Flow info lookup (`getFlowInfoByFlowNameAsync`) + +## Flow Lifecycle + +1. **Create in-memory**: `archFactoryFlows.createFlow*Async()` +2. **Build logic**: add variables, states, actions, menus +3. **Save**: `flow.checkInAsync()` — saves to Genesys Cloud and unlocks +4. **Publish** (optional): `flow.publishAsync()` — makes flow live + +## Re-creating Existing Flows + +`createFlow*Async` will delete an existing flow with the same name before creating. This requires `architect:flow:delete` permission. If the flow is referenced by another flow, delete the dependent flow first. From 6a3d01fd1f0afd7de88faf2cd0b2d3d7602b6c54 Mon Sep 17 00:00:00 2001 From: Lucas Woodward <31957045+SketchingDev@users.noreply.github.com> Date: Tue, 2 Jun 2026 00:26:44 +0100 Subject: [PATCH 06/11] Update runner to map region, and skills with more advice --- bin/deploy-runner.js | 38 +++++++++++++- skills/write-flow/SKILL.md | 6 ++- .../write-flow/references/action-reference.md | 5 +- .../references/examples/inbound-chat.md | 9 ++-- .../references/examples/inbound-message.md | 9 ++-- skills/write-flow/references/gotchas.md | 16 ++++++ skills/write-flow/references/sdk-patterns.md | 3 +- src/deploy-runner/index.ts | 51 ++++++++++++++++++- 8 files changed, 117 insertions(+), 20 deletions(-) diff --git a/bin/deploy-runner.js b/bin/deploy-runner.js index 8f78c9c..32218b2 100644 --- a/bin/deploy-runner.js +++ b/bin/deploy-runner.js @@ -117045,6 +117045,32 @@ function startSession(scripting, { region, clientId, clientSecret }) { ); }); } +var API_DOMAIN_TO_SDK_REGION = { + "mypurecloud.com": "prod_us_east_1", + "use2.us-gov-pure.cloud": "prod_us_east_2", + "usw2.pure.cloud": "prod_us_west_2", + "cac1.pure.cloud": "prod_ca_central_1", + "mypurecloud.ie": "prod_eu_west_1", + "euw2.pure.cloud": "prod_eu_west_2", + "euc1.pure.cloud": "prod_eu_central_1", + "euc2.pure.cloud": "prod_eu_central_2", + "apse2.pure.cloud": "prod_ap_southeast_2", + "apne1.pure.cloud": "prod_ap_northeast_1", + "apne2.pure.cloud": "prod_ap_northeast_2", + "apne3.pure.cloud": "prod_ap_northeast_3", + "aps1.pure.cloud": "prod_ap_south_1", + "apse1.pure.cloud": "prod_ap_southeast_1", + "mec1.pure.cloud": "prod_me_central_1", + "sae1.pure.cloud": "prod_sa_east_1", + "afs1.pure.cloud": "prod_af_south_1" +}; +function toArchitectSdkRegion(scripting, apiDomain) { + const mapped = API_DOMAIN_TO_SDK_REGION[apiDomain]; + if (mapped) return mapped; + const locations = scripting.enums.archEnums.LOCATIONS; + if (Object.values(locations).includes(apiDomain)) return apiDomain; + return void 0; +} async function main() { const timer = setTimeout(() => { emit("result", { @@ -117082,9 +117108,17 @@ async function main() { emit("log", "info", "Loading Architect Scripting SDK..."); const scripting = require_scripting_bundle(); installLogging(scripting); - emit("log", "info", `Starting SDK session (region: ${region})...`); + const sdkRegion = toArchitectSdkRegion(scripting, region); + if (!sdkRegion) { + emit("result", { + success: false, + error: `Unknown region "${region}". Known API domains: ${Object.keys(API_DOMAIN_TO_SDK_REGION).join(", ")}` + }); + process.exit(1); + } + emit("log", "info", `Starting SDK session (region: ${sdkRegion})...`); const session = await startSession(scripting, { - region, + region: sdkRegion, clientId, clientSecret }); diff --git a/skills/write-flow/SKILL.md b/skills/write-flow/SKILL.md index f51ea16..a7d46b0 100644 --- a/skills/write-flow/SKILL.md +++ b/skills/write-flow/SKILL.md @@ -84,12 +84,14 @@ export async function buildFlow(scripting: ArchitectScripting): Promise { ### 4. Typecheck -Run the TypeScript compiler to validate the flow code: +Run the TypeScript compiler against the flow file directly (the user's project may not have a `tsconfig.json`): ```bash -npx tsc --noEmit +npx tsc --noEmit --strict --moduleResolution bundler --module ES2022 --target ES2022 --allowImportingTsExtensions --skipLibCheck path/to/flow.ts ``` +`--skipLibCheck` is required because the SDK's own `types.d.ts` has internal errors (duplicate identifiers, missing type references). Without it, `tsc` fails on the SDK — not on your flow code. + Fix any errors before deploying. ### 5. Deploy diff --git a/skills/write-flow/references/action-reference.md b/skills/write-flow/references/action-reference.md index 6b72b1d..af9b41a 100644 --- a/skills/write-flow/references/action-reference.md +++ b/skills/write-flow/references/action-reference.md @@ -46,9 +46,10 @@ jump.targetMenu = menuObject; ### SendResponse ```typescript -const response = actionFactory.addActionSendResponse(sequence); -response.setResponseBodyByLiteralString("Hello! How can I help?"); +const response = actionFactory.addActionSendResponse(stateOrTask); +response.messageBody.setExpression('"Hello! How can I help?"'); ``` +Note: pass the state or task object directly — not its `outputSequence`. The expression value must be a quoted string inside the expression (double quotes inside single quotes). ### SendAutoReply (Email) ```typescript diff --git a/skills/write-flow/references/examples/inbound-chat.md b/skills/write-flow/references/examples/inbound-chat.md index 0a7bf73..320f2f4 100644 --- a/skills/write-flow/references/examples/inbound-chat.md +++ b/skills/write-flow/references/examples/inbound-chat.md @@ -14,16 +14,15 @@ export async function buildFlow(scripting: ArchitectScripting): Promise { ); const initialState = flow.startUpObject; - const sequence = initialState.outputSequence; // Send initial greeting message - const greeting = archFactoryActions.addActionSendResponse(sequence); - greeting.setResponseBodyByLiteralString( - "Hello! Thank you for contacting us. Please wait while we connect you to an agent.", + const greeting = archFactoryActions.addActionSendResponse(initialState); + greeting.messageBody.setExpression( + '"Hello! Thank you for contacting us. Please wait while we connect you to an agent."', ); // Transfer to chat queue - const transfer = archFactoryActions.addActionTransferToAcd(sequence); + const transfer = archFactoryActions.addActionTransferToAcd(initialState); await transfer.setQueueByName("Chat Support Queue"); await flow.checkInAsync(); diff --git a/skills/write-flow/references/examples/inbound-message.md b/skills/write-flow/references/examples/inbound-message.md index 8efc1e7..b93a170 100644 --- a/skills/write-flow/references/examples/inbound-message.md +++ b/skills/write-flow/references/examples/inbound-message.md @@ -14,16 +14,15 @@ export async function buildFlow(scripting: ArchitectScripting): Promise { ); const initialState = flow.startUpObject; - const sequence = initialState.outputSequence; // Send auto-reply message - const reply = archFactoryActions.addActionSendResponse(sequence); - reply.setResponseBodyByLiteralString( - "Thank you for your message. An agent will respond to you shortly.", + const reply = archFactoryActions.addActionSendResponse(initialState); + reply.messageBody.setExpression( + '"Thank you for your message. An agent will respond to you shortly."', ); // Transfer to messaging queue - const transfer = archFactoryActions.addActionTransferToAcd(sequence); + const transfer = archFactoryActions.addActionTransferToAcd(initialState); await transfer.setQueueByName("SMS Support Queue"); await flow.checkInAsync(); diff --git a/skills/write-flow/references/gotchas.md b/skills/write-flow/references/gotchas.md index 8663a44..7443127 100644 --- a/skills/write-flow/references/gotchas.md +++ b/skills/write-flow/references/gotchas.md @@ -65,6 +65,22 @@ In digital bot flows, prefer `DigitalMenu` with Yes/No choices over `AskForBoole `setExpression("true")` fails on `ArchValueBoolean` with "cannot assign the expression text 'true'". Use `setLiteralTrue()` / `setLiteralFalse()` instead. +## Action containers: pass the object, not outputSequence + +For chat, message, and email flows, pass the state or task object directly to action factory methods — not `state.outputSequence`. The `outputSequence` property exists at runtime but is rejected as an invalid action container: +- Correct: `archFactoryActions.addActionSendResponse(initialState)` +- Wrong: `archFactoryActions.addActionSendResponse(initialState.outputSequence)` + +## SendResponse API + +The type definitions declare `setResponseBodyByLiteralString` but it does not exist at runtime. Use `messageBody.setExpression()` instead: +- Correct: `reply.messageBody.setExpression('"Hello!"')` +- Wrong: `reply.setResponseBodyByLiteralString("Hello!")` + +## JumpToTask not available in inbound message flows + +`addActionJumpToTask` (`TransferTaskAction`) cannot be used in `inboundshortmessage` flows. Add actions directly to the initial state instead of routing through reusable tasks. + ## Flow naming on re-runs `createFlow*Async` deletes an existing flow with the same name. This requires `architect:flow:delete` permission. If you don't have it, use a new name or use `checkoutAndLoadFlowByFlowNameAsync` to update existing flows. diff --git a/skills/write-flow/references/sdk-patterns.md b/skills/write-flow/references/sdk-patterns.md index 8cb8156..a14d84a 100644 --- a/skills/write-flow/references/sdk-patterns.md +++ b/skills/write-flow/references/sdk-patterns.md @@ -58,10 +58,9 @@ Every flow has a `startUpObject` where execution begins: ```typescript const initialState = flow.startUpObject; -const sequence = initialState.outputSequence; ``` -Actions are added to sequences. Every state, menu choice, and decision output has an `outputSequence`. +Actions are added by passing the state or task object directly to action factory methods. For voice flows (inbound call), you can also use `outputSequence` on menu choices. See gotchas for details on which container types are accepted. ## Variables diff --git a/src/deploy-runner/index.ts b/src/deploy-runner/index.ts index 7873016..7a48f1b 100644 --- a/src/deploy-runner/index.ts +++ b/src/deploy-runner/index.ts @@ -212,6 +212,44 @@ function startSession( }); } +// ── Region mapping ──────────────────────────────────────────────────── +// The Platform Client SDK uses API domains (e.g. "usw2.pure.cloud") but +// the Architect Scripting SDK expects enum strings (e.g. "prod_us_west_2"). + +const API_DOMAIN_TO_SDK_REGION: Record = { + "mypurecloud.com": "prod_us_east_1", + "use2.us-gov-pure.cloud": "prod_us_east_2", + "usw2.pure.cloud": "prod_us_west_2", + "cac1.pure.cloud": "prod_ca_central_1", + "mypurecloud.ie": "prod_eu_west_1", + "euw2.pure.cloud": "prod_eu_west_2", + "euc1.pure.cloud": "prod_eu_central_1", + "euc2.pure.cloud": "prod_eu_central_2", + "apse2.pure.cloud": "prod_ap_southeast_2", + "apne1.pure.cloud": "prod_ap_northeast_1", + "apne2.pure.cloud": "prod_ap_northeast_2", + "apne3.pure.cloud": "prod_ap_northeast_3", + "aps1.pure.cloud": "prod_ap_south_1", + "apse1.pure.cloud": "prod_ap_southeast_1", + "mec1.pure.cloud": "prod_me_central_1", + "sae1.pure.cloud": "prod_sa_east_1", + "afs1.pure.cloud": "prod_af_south_1", +}; + +function toArchitectSdkRegion( + scripting: ArchitectScripting, + apiDomain: string, +): string | undefined { + const mapped = API_DOMAIN_TO_SDK_REGION[apiDomain]; + if (mapped) return mapped; + const locations = scripting.enums.archEnums.LOCATIONS as Record< + string, + string + >; + if (Object.values(locations).includes(apiDomain)) return apiDomain; + return undefined; +} + // ── Main ─────────────────────────────────────────────────────────────── async function main(): Promise { @@ -260,10 +298,19 @@ async function main(): Promise { installLogging(scripting); - emit("log", "info", `Starting SDK session (region: ${region})...`); + const sdkRegion = toArchitectSdkRegion(scripting, region); + if (!sdkRegion) { + emit("result", { + success: false, + error: `Unknown region "${region}". Known API domains: ${Object.keys(API_DOMAIN_TO_SDK_REGION).join(", ")}`, + }); + process.exit(1); + } + + emit("log", "info", `Starting SDK session (region: ${sdkRegion})...`); const session = await startSession(scripting, { - region, + region: sdkRegion, clientId, clientSecret, }); From 5a9a740ce5855bf79ea53334a0d38dc5b889c60b Mon Sep 17 00:00:00 2001 From: Lucas Woodward <31957045+SketchingDev@users.noreply.github.com> Date: Tue, 2 Jun 2026 22:27:21 +0100 Subject: [PATCH 07/11] Prevent unhandled failure if env vars missing --- servers/genesys-cloud-architect-mcp.js | 94 +++++++++++++------------- src/mcp-server/index.ts | 12 +++- 2 files changed, 58 insertions(+), 48 deletions(-) diff --git a/servers/genesys-cloud-architect-mcp.js b/servers/genesys-cloud-architect-mcp.js index 8dbcac7..6a77009 100644 --- a/servers/genesys-cloud-architect-mcp.js +++ b/servers/genesys-cloud-architect-mcp.js @@ -1,40 +1,40 @@ -"use strict";var mI=Object.create;var hd=Object.defineProperty;var fI=Object.getOwnPropertyDescriptor;var wI=Object.getOwnPropertyNames;var vI=Object.getPrototypeOf,CI=Object.prototype.hasOwnProperty;var w=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),gd=(t,e)=>{for(var i in e)hd(t,i,{get:e[i],enumerable:!0})},AI=(t,e,i,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of wI(e))!CI.call(t,a)&&a!==i&&hd(t,a,{get:()=>e[a],enumerable:!(n=fI(e,a))||n.enumerable});return t};var Xa=(t,e,i)=>(i=t!=null?mI(vI(t)):{},AI(e||!t||!t.__esModule?hd(i,"default",{value:t,enumerable:!0}):i,t));var Ys=w(Pe=>{"use strict";Object.defineProperty(Pe,"__esModule",{value:!0});Pe.regexpCode=Pe.getEsmExportName=Pe.getProperty=Pe.safeStringify=Pe.stringify=Pe.strConcat=Pe.addCodeArg=Pe.str=Pe._=Pe.nil=Pe._Code=Pe.Name=Pe.IDENTIFIER=Pe._CodeOrName=void 0;var Ks=class{};Pe._CodeOrName=Ks;Pe.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;var va=class extends Ks{constructor(e){if(super(),!Pe.IDENTIFIER.test(e))throw new Error("CodeGen: name must be a valid identifier");this.str=e}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}};Pe.Name=va;var cn=class extends Ks{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((i,n)=>`${i}${n}`,"")}get names(){var e;return(e=this._names)!==null&&e!==void 0?e:this._names=this._items.reduce((i,n)=>(n instanceof va&&(i[n.str]=(i[n.str]||0)+1),i),{})}};Pe._Code=cn;Pe.nil=new cn("");function XS(t,...e){let i=[t[0]],n=0;for(;n{"use strict";Object.defineProperty(Ni,"__esModule",{value:!0});Ni.ValueScope=Ni.ValueScopeName=Ni.Scope=Ni.varKinds=Ni.UsedValueState=void 0;var $i=Ys(),mm=class extends Error{constructor(e){super(`CodeGen: "code" for ${e} not defined`),this.value=e.value}},Ru;(function(t){t[t.Started=0]="Started",t[t.Completed=1]="Completed"})(Ru||(Ni.UsedValueState=Ru={}));Ni.varKinds={const:new $i.Name("const"),let:new $i.Name("let"),var:new $i.Name("var")};var Iu=class{constructor({prefixes:e,parent:i}={}){this._names={},this._prefixes=e,this._parent=i}toName(e){return e instanceof $i.Name?e:this.name(e)}name(e){return new $i.Name(this._newName(e))}_newName(e){let i=this._names[e]||this._nameGroup(e);return`${e}${i.index++}`}_nameGroup(e){var i,n;if(!((n=(i=this._parent)===null||i===void 0?void 0:i._prefixes)===null||n===void 0)&&n.has(e)||this._prefixes&&!this._prefixes.has(e))throw new Error(`CodeGen: prefix "${e}" is not allowed in this scope`);return this._names[e]={prefix:e,index:0}}};Ni.Scope=Iu;var zu=class extends $i.Name{constructor(e,i){super(i),this.prefix=e}setValue(e,{property:i,itemIndex:n}){this.value=e,this.scopePath=(0,$i._)`.${new $i.Name(i)}[${n}]`}};Ni.ValueScopeName=zu;var z$=(0,$i._)`\n`,fm=class extends Iu{constructor(e){super(e),this._values={},this._scope=e.scope,this.opts={...e,_n:e.lines?z$:$i.nil}}get(){return this._scope}name(e){return new zu(e,this._newName(e))}value(e,i){var n;if(i.ref===void 0)throw new Error("CodeGen: ref must be passed in value");let a=this.toName(e),{prefix:r}=a,s=(n=i.key)!==null&&n!==void 0?n:i.ref,o=this._values[r];if(o){let c=o.get(s);if(c)return c}else o=this._values[r]=new Map;o.set(s,a);let l=this._scope[r]||(this._scope[r]=[]),u=l.length;return l[u]=i.ref,a.setValue(i,{property:r,itemIndex:u}),a}getValue(e,i){let n=this._values[e];if(n)return n.get(i)}scopeRefs(e,i=this._values){return this._reduceValues(i,n=>{if(n.scopePath===void 0)throw new Error(`CodeGen: name "${n}" has no value`);return(0,$i._)`${e}${n.scopePath}`})}scopeCode(e=this._values,i,n){return this._reduceValues(e,a=>{if(a.value===void 0)throw new Error(`CodeGen: name "${a}" has no value`);return a.value.code},i,n)}_reduceValues(e,i,n={},a){let r=$i.nil;for(let s in e){let o=e[s];if(!o)continue;let l=n[s]=n[s]||new Map;o.forEach(u=>{if(l.has(u))return;l.set(u,Ru.Started);let c=i(u);if(c){let p=this.opts.es5?Ni.varKinds.var:Ni.varKinds.const;r=(0,$i._)`${r}${p} ${u} = ${c};${this.opts._n}`}else if(c=a?.(u))r=(0,$i._)`${r}${c}${this.opts._n}`;else throw new mm(u);l.set(u,Ru.Completed)})}return r}};Ni.ValueScope=fm});var re=w(oe=>{"use strict";Object.defineProperty(oe,"__esModule",{value:!0});oe.or=oe.and=oe.not=oe.CodeGen=oe.operators=oe.varKinds=oe.ValueScopeName=oe.ValueScope=oe.Scope=oe.Name=oe.regexpCode=oe.stringify=oe.getProperty=oe.nil=oe.strConcat=oe.str=oe._=void 0;var fe=Ys(),yn=wm(),xt=Ys();Object.defineProperty(oe,"_",{enumerable:!0,get:function(){return xt._}});Object.defineProperty(oe,"str",{enumerable:!0,get:function(){return xt.str}});Object.defineProperty(oe,"strConcat",{enumerable:!0,get:function(){return xt.strConcat}});Object.defineProperty(oe,"nil",{enumerable:!0,get:function(){return xt.nil}});Object.defineProperty(oe,"getProperty",{enumerable:!0,get:function(){return xt.getProperty}});Object.defineProperty(oe,"stringify",{enumerable:!0,get:function(){return xt.stringify}});Object.defineProperty(oe,"regexpCode",{enumerable:!0,get:function(){return xt.regexpCode}});Object.defineProperty(oe,"Name",{enumerable:!0,get:function(){return xt.Name}});var Nu=wm();Object.defineProperty(oe,"Scope",{enumerable:!0,get:function(){return Nu.Scope}});Object.defineProperty(oe,"ValueScope",{enumerable:!0,get:function(){return Nu.ValueScope}});Object.defineProperty(oe,"ValueScopeName",{enumerable:!0,get:function(){return Nu.ValueScopeName}});Object.defineProperty(oe,"varKinds",{enumerable:!0,get:function(){return Nu.varKinds}});oe.operators={GT:new fe._Code(">"),GTE:new fe._Code(">="),LT:new fe._Code("<"),LTE:new fe._Code("<="),EQ:new fe._Code("==="),NEQ:new fe._Code("!=="),NOT:new fe._Code("!"),OR:new fe._Code("||"),AND:new fe._Code("&&"),ADD:new fe._Code("+")};var at=class{optimizeNodes(){return this}optimizeNames(e,i){return this}},vm=class extends at{constructor(e,i,n){super(),this.varKind=e,this.name=i,this.rhs=n}render({es5:e,_n:i}){let n=e?yn.varKinds.var:this.varKind,a=this.rhs===void 0?"":` = ${this.rhs}`;return`${n} ${this.name}${a};`+i}optimizeNames(e,i){if(e[this.name.str])return this.rhs&&(this.rhs=br(this.rhs,e,i)),this}get names(){return this.rhs instanceof fe._CodeOrName?this.rhs.names:{}}},Du=class extends at{constructor(e,i,n){super(),this.lhs=e,this.rhs=i,this.sideEffects=n}render({_n:e}){return`${this.lhs} = ${this.rhs};`+e}optimizeNames(e,i){if(!(this.lhs instanceof fe.Name&&!e[this.lhs.str]&&!this.sideEffects))return this.rhs=br(this.rhs,e,i),this}get names(){let e=this.lhs instanceof fe.Name?{}:{...this.lhs.names};return $u(e,this.rhs)}},Cm=class extends Du{constructor(e,i,n,a){super(e,n,a),this.op=i}render({_n:e}){return`${this.lhs} ${this.op}= ${this.rhs};`+e}},Am=class extends at{constructor(e){super(),this.label=e,this.names={}}render({_n:e}){return`${this.label}:`+e}},bm=class extends at{constructor(e){super(),this.label=e,this.names={}}render({_n:e}){return`break${this.label?` ${this.label}`:""};`+e}},ym=class extends at{constructor(e){super(),this.error=e}render({_n:e}){return`throw ${this.error};`+e}get names(){return this.error.names}},Pm=class extends at{constructor(e){super(),this.code=e}render({_n:e}){return`${this.code};`+e}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(e,i){return this.code=br(this.code,e,i),this}get names(){return this.code instanceof fe._CodeOrName?this.code.names:{}}},Xs=class extends at{constructor(e=[]){super(),this.nodes=e}render(e){return this.nodes.reduce((i,n)=>i+n.render(e),"")}optimizeNodes(){let{nodes:e}=this,i=e.length;for(;i--;){let n=e[i].optimizeNodes();Array.isArray(n)?e.splice(i,1,...n):n?e[i]=n:e.splice(i,1)}return e.length>0?this:void 0}optimizeNames(e,i){let{nodes:n}=this,a=n.length;for(;a--;){let r=n[a];r.optimizeNames(e,i)||(D$(e,r.names),n.splice(a,1))}return n.length>0?this:void 0}get names(){return this.nodes.reduce((e,i)=>ba(e,i.names),{})}},rt=class extends Xs{render(e){return"{"+e._n+super.render(e)+"}"+e._n}},jm=class extends Xs{},Ar=class extends rt{};Ar.kind="else";var Ca=class t extends rt{constructor(e,i){super(i),this.condition=e}render(e){let i=`if(${this.condition})`+super.render(e);return this.else&&(i+="else "+this.else.render(e)),i}optimizeNodes(){super.optimizeNodes();let e=this.condition;if(e===!0)return this.nodes;let i=this.else;if(i){let n=i.optimizeNodes();i=this.else=Array.isArray(n)?new Ar(n):n}if(i)return e===!1?i instanceof t?i:i.nodes:this.nodes.length?this:new t(iO(e),i instanceof t?[i]:i.nodes);if(!(e===!1||!this.nodes.length))return this}optimizeNames(e,i){var n;if(this.else=(n=this.else)===null||n===void 0?void 0:n.optimizeNames(e,i),!!(super.optimizeNames(e,i)||this.else))return this.condition=br(this.condition,e,i),this}get names(){let e=super.names;return $u(e,this.condition),this.else&&ba(e,this.else.names),e}};Ca.kind="if";var Aa=class extends rt{};Aa.kind="for";var Sm=class extends Aa{constructor(e){super(),this.iteration=e}render(e){return`for(${this.iteration})`+super.render(e)}optimizeNames(e,i){if(super.optimizeNames(e,i))return this.iteration=br(this.iteration,e,i),this}get names(){return ba(super.names,this.iteration.names)}},Om=class extends Aa{constructor(e,i,n,a){super(),this.varKind=e,this.name=i,this.from=n,this.to=a}render(e){let i=e.es5?yn.varKinds.var:this.varKind,{name:n,from:a,to:r}=this;return`for(${i} ${n}=${a}; ${n}<${r}; ${n}++)`+super.render(e)}get names(){let e=$u(super.names,this.from);return $u(e,this.to)}},Gu=class extends Aa{constructor(e,i,n,a){super(),this.loop=e,this.varKind=i,this.name=n,this.iterable=a}render(e){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(e)}optimizeNames(e,i){if(super.optimizeNames(e,i))return this.iterable=br(this.iterable,e,i),this}get names(){return ba(super.names,this.iterable.names)}},eo=class extends rt{constructor(e,i,n){super(),this.name=e,this.args=i,this.async=n}render(e){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(e)}};eo.kind="func";var io=class extends Xs{render(e){return"return "+super.render(e)}};io.kind="return";var xm=class extends rt{render(e){let i="try"+super.render(e);return this.catch&&(i+=this.catch.render(e)),this.finally&&(i+=this.finally.render(e)),i}optimizeNodes(){var e,i;return super.optimizeNodes(),(e=this.catch)===null||e===void 0||e.optimizeNodes(),(i=this.finally)===null||i===void 0||i.optimizeNodes(),this}optimizeNames(e,i){var n,a;return super.optimizeNames(e,i),(n=this.catch)===null||n===void 0||n.optimizeNames(e,i),(a=this.finally)===null||a===void 0||a.optimizeNames(e,i),this}get names(){let e=super.names;return this.catch&&ba(e,this.catch.names),this.finally&&ba(e,this.finally.names),e}},no=class extends rt{constructor(e){super(),this.error=e}render(e){return`catch(${this.error})`+super.render(e)}};no.kind="catch";var to=class extends rt{render(e){return"finally"+super.render(e)}};to.kind="finally";var Tm=class{constructor(e,i={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...i,_n:i.lines?` -`:""},this._extScope=e,this._scope=new yn.Scope({parent:e}),this._nodes=[new jm]}toString(){return this._root.render(this.opts)}name(e){return this._scope.name(e)}scopeName(e){return this._extScope.name(e)}scopeValue(e,i){let n=this._extScope.value(e,i);return(this._values[n.prefix]||(this._values[n.prefix]=new Set)).add(n),n}getScopeValue(e,i){return this._extScope.getValue(e,i)}scopeRefs(e){return this._extScope.scopeRefs(e,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(e,i,n,a){let r=this._scope.toName(i);return n!==void 0&&a&&(this._constants[r.str]=n),this._leafNode(new vm(e,r,n)),r}const(e,i,n){return this._def(yn.varKinds.const,e,i,n)}let(e,i,n){return this._def(yn.varKinds.let,e,i,n)}var(e,i,n){return this._def(yn.varKinds.var,e,i,n)}assign(e,i,n){return this._leafNode(new Du(e,i,n))}add(e,i){return this._leafNode(new Cm(e,oe.operators.ADD,i))}code(e){return typeof e=="function"?e():e!==fe.nil&&this._leafNode(new Pm(e)),this}object(...e){let i=["{"];for(let[n,a]of e)i.length>1&&i.push(","),i.push(n),(n!==a||this.opts.es5)&&(i.push(":"),(0,fe.addCodeArg)(i,a));return i.push("}"),new fe._Code(i)}if(e,i,n){if(this._blockNode(new Ca(e)),i&&n)this.code(i).else().code(n).endIf();else if(i)this.code(i).endIf();else if(n)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(e){return this._elseNode(new Ca(e))}else(){return this._elseNode(new Ar)}endIf(){return this._endBlockNode(Ca,Ar)}_for(e,i){return this._blockNode(e),i&&this.code(i).endFor(),this}for(e,i){return this._for(new Sm(e),i)}forRange(e,i,n,a,r=this.opts.es5?yn.varKinds.var:yn.varKinds.let){let s=this._scope.toName(e);return this._for(new Om(r,s,i,n),()=>a(s))}forOf(e,i,n,a=yn.varKinds.const){let r=this._scope.toName(e);if(this.opts.es5){let s=i instanceof fe.Name?i:this.var("_arr",i);return this.forRange("_i",0,(0,fe._)`${s}.length`,o=>{this.var(r,(0,fe._)`${s}[${o}]`),n(r)})}return this._for(new Gu("of",a,r,i),()=>n(r))}forIn(e,i,n,a=this.opts.es5?yn.varKinds.var:yn.varKinds.const){if(this.opts.ownProperties)return this.forOf(e,(0,fe._)`Object.keys(${i})`,n);let r=this._scope.toName(e);return this._for(new Gu("in",a,r,i),()=>n(r))}endFor(){return this._endBlockNode(Aa)}label(e){return this._leafNode(new Am(e))}break(e){return this._leafNode(new bm(e))}return(e){let i=new io;if(this._blockNode(i),this.code(e),i.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(io)}try(e,i,n){if(!i&&!n)throw new Error('CodeGen: "try" without "catch" and "finally"');let a=new xm;if(this._blockNode(a),this.code(e),i){let r=this.name("e");this._currNode=a.catch=new no(r),i(r)}return n&&(this._currNode=a.finally=new to,this.code(n)),this._endBlockNode(no,to)}throw(e){return this._leafNode(new ym(e))}block(e,i){return this._blockStarts.push(this._nodes.length),e&&this.code(e).endBlock(i),this}endBlock(e){let i=this._blockStarts.pop();if(i===void 0)throw new Error("CodeGen: not in self-balancing block");let n=this._nodes.length-i;if(n<0||e!==void 0&&n!==e)throw new Error(`CodeGen: wrong number of nodes: ${n} vs ${e} expected`);return this._nodes.length=i,this}func(e,i=fe.nil,n,a){return this._blockNode(new eo(e,i,n)),a&&this.code(a).endFunc(),this}endFunc(){return this._endBlockNode(eo)}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,i){let n=this._currNode;if(n instanceof e||i&&n instanceof i)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${i?`${e.kind}/${i.kind}`:e.kind}"`)}_elseNode(e){let i=this._currNode;if(!(i instanceof Ca))throw new Error('CodeGen: "else" without "if"');return this._currNode=i.else=e,this}get _root(){return this._nodes[0]}get _currNode(){let e=this._nodes;return e[e.length-1]}set _currNode(e){let i=this._nodes;i[i.length-1]=e}};oe.CodeGen=Tm;function ba(t,e){for(let i in e)t[i]=(t[i]||0)+(e[i]||0);return t}function $u(t,e){return e instanceof fe._CodeOrName?ba(t,e.names):t}function br(t,e,i){if(t instanceof fe.Name)return n(t);if(!a(t))return t;return new fe._Code(t._items.reduce((r,s)=>(s instanceof fe.Name&&(s=n(s)),s instanceof fe._Code?r.push(...s._items):r.push(s),r),[]));function n(r){let s=i[r.str];return s===void 0||e[r.str]!==1?r:(delete e[r.str],s)}function a(r){return r instanceof fe._Code&&r._items.some(s=>s instanceof fe.Name&&e[s.str]===1&&i[s.str]!==void 0)}}function D$(t,e){for(let i in e)t[i]=(t[i]||0)-(e[i]||0)}function iO(t){return typeof t=="boolean"||typeof t=="number"||t===null?!t:(0,fe._)`!${Mm(t)}`}oe.not=iO;var G$=nO(oe.operators.AND);function $$(...t){return t.reduce(G$)}oe.and=$$;var N$=nO(oe.operators.OR);function U$(...t){return t.reduce(N$)}oe.or=U$;function nO(t){return(e,i)=>e===fe.nil?i:i===fe.nil?e:(0,fe._)`${Mm(e)} ${t} ${Mm(i)}`}function Mm(t){return t instanceof fe.Name?t:(0,fe._)`(${t})`}});var we=w(le=>{"use strict";Object.defineProperty(le,"__esModule",{value:!0});le.checkStrictMode=le.getErrorPath=le.Type=le.useFunc=le.setEvaluated=le.evaluatedPropsToName=le.mergeEvaluated=le.eachItem=le.unescapeJsonPointer=le.escapeJsonPointer=le.escapeFragment=le.unescapeFragment=le.schemaRefOrVal=le.schemaHasRulesButRef=le.schemaHasRules=le.checkUnknownRules=le.alwaysValidSchema=le.toHash=void 0;var _e=re(),L$=Ys();function W$(t){let e={};for(let i of t)e[i]=!0;return e}le.toHash=W$;function B$(t,e){return typeof e=="boolean"?e:Object.keys(e).length===0?!0:(rO(t,e),!sO(e,t.self.RULES.all))}le.alwaysValidSchema=B$;function rO(t,e=t.schema){let{opts:i,self:n}=t;if(!i.strictSchema||typeof e=="boolean")return;let a=n.RULES.keywords;for(let r in e)a[r]||uO(t,`unknown keyword: "${r}"`)}le.checkUnknownRules=rO;function sO(t,e){if(typeof t=="boolean")return!t;for(let i in t)if(e[i])return!0;return!1}le.schemaHasRules=sO;function F$(t,e){if(typeof t=="boolean")return!t;for(let i in t)if(i!=="$ref"&&e.all[i])return!0;return!1}le.schemaHasRulesButRef=F$;function V$({topSchemaRef:t,schemaPath:e},i,n,a){if(!a){if(typeof i=="number"||typeof i=="boolean")return i;if(typeof i=="string")return(0,_e._)`${i}`}return(0,_e._)`${t}${e}${(0,_e.getProperty)(n)}`}le.schemaRefOrVal=V$;function J$(t){return oO(decodeURIComponent(t))}le.unescapeFragment=J$;function Z$(t){return encodeURIComponent(km(t))}le.escapeFragment=Z$;function km(t){return typeof t=="number"?`${t}`:t.replace(/~/g,"~0").replace(/\//g,"~1")}le.escapeJsonPointer=km;function oO(t){return t.replace(/~1/g,"/").replace(/~0/g,"~")}le.unescapeJsonPointer=oO;function K$(t,e){if(Array.isArray(t))for(let i of t)e(i);else e(t)}le.eachItem=K$;function tO({mergeNames:t,mergeToName:e,mergeValues:i,resultToName:n}){return(a,r,s,o)=>{let l=s===void 0?r:s instanceof _e.Name?(r instanceof _e.Name?t(a,r,s):e(a,r,s),s):r instanceof _e.Name?(e(a,s,r),r):i(r,s);return o===_e.Name&&!(l instanceof _e.Name)?n(a,l):l}}le.mergeEvaluated={props:tO({mergeNames:(t,e,i)=>t.if((0,_e._)`${i} !== true && ${e} !== undefined`,()=>{t.if((0,_e._)`${e} === true`,()=>t.assign(i,!0),()=>t.assign(i,(0,_e._)`${i} || {}`).code((0,_e._)`Object.assign(${i}, ${e})`))}),mergeToName:(t,e,i)=>t.if((0,_e._)`${i} !== true`,()=>{e===!0?t.assign(i,!0):(t.assign(i,(0,_e._)`${i} || {}`),qm(t,i,e))}),mergeValues:(t,e)=>t===!0?!0:{...t,...e},resultToName:lO}),items:tO({mergeNames:(t,e,i)=>t.if((0,_e._)`${i} !== true && ${e} !== undefined`,()=>t.assign(i,(0,_e._)`${e} === true ? true : ${i} > ${e} ? ${i} : ${e}`)),mergeToName:(t,e,i)=>t.if((0,_e._)`${i} !== true`,()=>t.assign(i,e===!0?!0:(0,_e._)`${i} > ${e} ? ${i} : ${e}`)),mergeValues:(t,e)=>t===!0?!0:Math.max(t,e),resultToName:(t,e)=>t.var("items",e)})};function lO(t,e){if(e===!0)return t.var("props",!0);let i=t.var("props",(0,_e._)`{}`);return e!==void 0&&qm(t,i,e),i}le.evaluatedPropsToName=lO;function qm(t,e,i){Object.keys(i).forEach(n=>t.assign((0,_e._)`${e}${(0,_e.getProperty)(n)}`,!0))}le.setEvaluated=qm;var aO={};function Q$(t,e){return t.scopeValue("func",{ref:e,code:aO[e.code]||(aO[e.code]=new L$._Code(e.code))})}le.useFunc=Q$;var Em;(function(t){t[t.Num=0]="Num",t[t.Str=1]="Str"})(Em||(le.Type=Em={}));function Y$(t,e,i){if(t instanceof _e.Name){let n=e===Em.Num;return i?n?(0,_e._)`"[" + ${t} + "]"`:(0,_e._)`"['" + ${t} + "']"`:n?(0,_e._)`"/" + ${t}`:(0,_e._)`"/" + ${t}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return i?(0,_e.getProperty)(t).toString():"/"+km(t)}le.getErrorPath=Y$;function uO(t,e,i=t.opts.strictSchema){if(i){if(e=`strict mode: ${e}`,i===!0)throw new Error(e);t.self.logger.warn(e)}}le.checkStrictMode=uO});var st=w(_m=>{"use strict";Object.defineProperty(_m,"__esModule",{value:!0});var Ti=re(),X$={data:new Ti.Name("data"),valCxt:new Ti.Name("valCxt"),instancePath:new Ti.Name("instancePath"),parentData:new Ti.Name("parentData"),parentDataProperty:new Ti.Name("parentDataProperty"),rootData:new Ti.Name("rootData"),dynamicAnchors:new Ti.Name("dynamicAnchors"),vErrors:new Ti.Name("vErrors"),errors:new Ti.Name("errors"),this:new Ti.Name("this"),self:new Ti.Name("self"),scope:new Ti.Name("scope"),json:new Ti.Name("json"),jsonPos:new Ti.Name("jsonPos"),jsonLen:new Ti.Name("jsonLen"),jsonPart:new Ti.Name("jsonPart")};_m.default=X$});var ao=w(Mi=>{"use strict";Object.defineProperty(Mi,"__esModule",{value:!0});Mi.extendErrors=Mi.resetErrorsCount=Mi.reportExtraError=Mi.reportError=Mi.keyword$DataError=Mi.keywordError=void 0;var ve=re(),Uu=we(),Hi=st();Mi.keywordError={message:({keyword:t})=>(0,ve.str)`must pass "${t}" keyword validation`};Mi.keyword$DataError={message:({keyword:t,schemaType:e})=>e?(0,ve.str)`"${t}" keyword must be ${e} ($data)`:(0,ve.str)`"${t}" keyword is invalid ($data)`};function eN(t,e=Mi.keywordError,i,n){let{it:a}=t,{gen:r,compositeRule:s,allErrors:o}=a,l=dO(t,e,i);n??(s||o)?cO(r,l):pO(a,(0,ve._)`[${l}]`)}Mi.reportError=eN;function iN(t,e=Mi.keywordError,i){let{it:n}=t,{gen:a,compositeRule:r,allErrors:s}=n,o=dO(t,e,i);cO(a,o),r||s||pO(n,Hi.default.vErrors)}Mi.reportExtraError=iN;function nN(t,e){t.assign(Hi.default.errors,e),t.if((0,ve._)`${Hi.default.vErrors} !== null`,()=>t.if(e,()=>t.assign((0,ve._)`${Hi.default.vErrors}.length`,e),()=>t.assign(Hi.default.vErrors,null)))}Mi.resetErrorsCount=nN;function tN({gen:t,keyword:e,schemaValue:i,data:n,errsCount:a,it:r}){if(a===void 0)throw new Error("ajv implementation error");let s=t.name("err");t.forRange("i",a,Hi.default.errors,o=>{t.const(s,(0,ve._)`${Hi.default.vErrors}[${o}]`),t.if((0,ve._)`${s}.instancePath === undefined`,()=>t.assign((0,ve._)`${s}.instancePath`,(0,ve.strConcat)(Hi.default.instancePath,r.errorPath))),t.assign((0,ve._)`${s}.schemaPath`,(0,ve.str)`${r.errSchemaPath}/${e}`),r.opts.verbose&&(t.assign((0,ve._)`${s}.schema`,i),t.assign((0,ve._)`${s}.data`,n))})}Mi.extendErrors=tN;function cO(t,e){let i=t.const("err",e);t.if((0,ve._)`${Hi.default.vErrors} === null`,()=>t.assign(Hi.default.vErrors,(0,ve._)`[${i}]`),(0,ve._)`${Hi.default.vErrors}.push(${i})`),t.code((0,ve._)`${Hi.default.errors}++`)}function pO(t,e){let{gen:i,validateName:n,schemaEnv:a}=t;a.$async?i.throw((0,ve._)`new ${t.ValidationError}(${e})`):(i.assign((0,ve._)`${n}.errors`,e),i.return(!1))}var ya={keyword:new ve.Name("keyword"),schemaPath:new ve.Name("schemaPath"),params:new ve.Name("params"),propertyName:new ve.Name("propertyName"),message:new ve.Name("message"),schema:new ve.Name("schema"),parentSchema:new ve.Name("parentSchema")};function dO(t,e,i){let{createErrors:n}=t.it;return n===!1?(0,ve._)`{}`:aN(t,e,i)}function aN(t,e,i={}){let{gen:n,it:a}=t,r=[rN(a,i),sN(t,i)];return oN(t,e,r),n.object(...r)}function rN({errorPath:t},{instancePath:e}){let i=e?(0,ve.str)`${t}${(0,Uu.getErrorPath)(e,Uu.Type.Str)}`:t;return[Hi.default.instancePath,(0,ve.strConcat)(Hi.default.instancePath,i)]}function sN({keyword:t,it:{errSchemaPath:e}},{schemaPath:i,parentSchema:n}){let a=n?e:(0,ve.str)`${e}/${t}`;return i&&(a=(0,ve.str)`${a}${(0,Uu.getErrorPath)(i,Uu.Type.Str)}`),[ya.schemaPath,a]}function oN(t,{params:e,message:i},n){let{keyword:a,data:r,schemaValue:s,it:o}=t,{opts:l,propertyName:u,topSchemaRef:c,schemaPath:p}=o;n.push([ya.keyword,a],[ya.params,typeof e=="function"?e(t):e||(0,ve._)`{}`]),l.messages&&n.push([ya.message,typeof i=="function"?i(t):i]),l.verbose&&n.push([ya.schema,s],[ya.parentSchema,(0,ve._)`${c}${p}`],[Hi.default.data,r]),u&&n.push([ya.propertyName,u])}});var gO=w(yr=>{"use strict";Object.defineProperty(yr,"__esModule",{value:!0});yr.boolOrEmptySchema=yr.topBoolOrEmptySchema=void 0;var lN=ao(),uN=re(),cN=st(),pN={message:"boolean schema is false"};function dN(t){let{gen:e,schema:i,validateName:n}=t;i===!1?hO(t,!1):typeof i=="object"&&i.$async===!0?e.return(cN.default.data):(e.assign((0,uN._)`${n}.errors`,null),e.return(!0))}yr.topBoolOrEmptySchema=dN;function hN(t,e){let{gen:i,schema:n}=t;n===!1?(i.var(e,!1),hO(t)):i.var(e,!0)}yr.boolOrEmptySchema=hN;function hO(t,e){let{gen:i,data:n}=t,a={gen:i,keyword:"false schema",data:n,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:t};(0,lN.reportError)(a,pN,void 0,e)}});var Hm=w(Pr=>{"use strict";Object.defineProperty(Pr,"__esModule",{value:!0});Pr.getRules=Pr.isJSONType=void 0;var gN=["string","number","integer","boolean","null","object","array"],mN=new Set(gN);function fN(t){return typeof t=="string"&&mN.has(t)}Pr.isJSONType=fN;function wN(){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:{}}}Pr.getRules=wN});var Rm=w(Tt=>{"use strict";Object.defineProperty(Tt,"__esModule",{value:!0});Tt.shouldUseRule=Tt.shouldUseGroup=Tt.schemaHasRulesForType=void 0;function vN({schema:t,self:e},i){let n=e.RULES.types[i];return n&&n!==!0&&mO(t,n)}Tt.schemaHasRulesForType=vN;function mO(t,e){return e.rules.some(i=>fO(t,i))}Tt.shouldUseGroup=mO;function fO(t,e){var i;return t[e.keyword]!==void 0||((i=e.definition.implements)===null||i===void 0?void 0:i.some(n=>t[n]!==void 0))}Tt.shouldUseRule=fO});var ro=w(Ei=>{"use strict";Object.defineProperty(Ei,"__esModule",{value:!0});Ei.reportTypeError=Ei.checkDataTypes=Ei.checkDataType=Ei.coerceAndCheckDataType=Ei.getJSONTypes=Ei.getSchemaTypes=Ei.DataType=void 0;var CN=Hm(),AN=Rm(),bN=ao(),te=re(),wO=we(),jr;(function(t){t[t.Correct=0]="Correct",t[t.Wrong=1]="Wrong"})(jr||(Ei.DataType=jr={}));function yN(t){let e=vO(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}Ei.getSchemaTypes=yN;function vO(t){let e=Array.isArray(t)?t:t?[t]:[];if(e.every(CN.isJSONType))return e;throw new Error("type must be JSONType or JSONType[]: "+e.join(","))}Ei.getJSONTypes=vO;function PN(t,e){let{gen:i,data:n,opts:a}=t,r=jN(e,a.coerceTypes),s=e.length>0&&!(r.length===0&&e.length===1&&(0,AN.schemaHasRulesForType)(t,e[0]));if(s){let o=zm(e,n,a.strictNumbers,jr.Wrong);i.if(o,()=>{r.length?SN(t,e,r):Dm(t)})}return s}Ei.coerceAndCheckDataType=PN;var CO=new Set(["string","number","integer","boolean","null"]);function jN(t,e){return e?t.filter(i=>CO.has(i)||e==="array"&&i==="array"):[]}function SN(t,e,i){let{gen:n,data:a,opts:r}=t,s=n.let("dataType",(0,te._)`typeof ${a}`),o=n.let("coerced",(0,te._)`undefined`);r.coerceTypes==="array"&&n.if((0,te._)`${s} == 'object' && Array.isArray(${a}) && ${a}.length == 1`,()=>n.assign(a,(0,te._)`${a}[0]`).assign(s,(0,te._)`typeof ${a}`).if(zm(e,a,r.strictNumbers),()=>n.assign(o,a))),n.if((0,te._)`${o} !== undefined`);for(let u of i)(CO.has(u)||u==="array"&&r.coerceTypes==="array")&&l(u);n.else(),Dm(t),n.endIf(),n.if((0,te._)`${o} !== undefined`,()=>{n.assign(a,o),ON(t,o)});function l(u){switch(u){case"string":n.elseIf((0,te._)`${s} == "number" || ${s} == "boolean"`).assign(o,(0,te._)`"" + ${a}`).elseIf((0,te._)`${a} === null`).assign(o,(0,te._)`""`);return;case"number":n.elseIf((0,te._)`${s} == "boolean" || ${a} === null +"use strict";var fI=Object.create;var hd=Object.defineProperty;var wI=Object.getOwnPropertyDescriptor;var vI=Object.getOwnPropertyNames;var CI=Object.getPrototypeOf,AI=Object.prototype.hasOwnProperty;var w=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),gd=(t,e)=>{for(var i in e)hd(t,i,{get:e[i],enumerable:!0})},bI=(t,e,i,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of vI(e))!AI.call(t,a)&&a!==i&&hd(t,a,{get:()=>e[a],enumerable:!(n=wI(e,a))||n.enumerable});return t};var Xa=(t,e,i)=>(i=t!=null?fI(CI(t)):{},bI(e||!t||!t.__esModule?hd(i,"default",{value:t,enumerable:!0}):i,t));var Ys=w(Pe=>{"use strict";Object.defineProperty(Pe,"__esModule",{value:!0});Pe.regexpCode=Pe.getEsmExportName=Pe.getProperty=Pe.safeStringify=Pe.stringify=Pe.strConcat=Pe.addCodeArg=Pe.str=Pe._=Pe.nil=Pe._Code=Pe.Name=Pe.IDENTIFIER=Pe._CodeOrName=void 0;var Ks=class{};Pe._CodeOrName=Ks;Pe.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;var va=class extends Ks{constructor(e){if(super(),!Pe.IDENTIFIER.test(e))throw new Error("CodeGen: name must be a valid identifier");this.str=e}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}};Pe.Name=va;var cn=class extends Ks{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((i,n)=>`${i}${n}`,"")}get names(){var e;return(e=this._names)!==null&&e!==void 0?e:this._names=this._items.reduce((i,n)=>(n instanceof va&&(i[n.str]=(i[n.str]||0)+1),i),{})}};Pe._Code=cn;Pe.nil=new cn("");function eO(t,...e){let i=[t[0]],n=0;for(;n{"use strict";Object.defineProperty(Ni,"__esModule",{value:!0});Ni.ValueScope=Ni.ValueScopeName=Ni.Scope=Ni.varKinds=Ni.UsedValueState=void 0;var $i=Ys(),mm=class extends Error{constructor(e){super(`CodeGen: "code" for ${e} not defined`),this.value=e.value}},Ru;(function(t){t[t.Started=0]="Started",t[t.Completed=1]="Completed"})(Ru||(Ni.UsedValueState=Ru={}));Ni.varKinds={const:new $i.Name("const"),let:new $i.Name("let"),var:new $i.Name("var")};var Iu=class{constructor({prefixes:e,parent:i}={}){this._names={},this._prefixes=e,this._parent=i}toName(e){return e instanceof $i.Name?e:this.name(e)}name(e){return new $i.Name(this._newName(e))}_newName(e){let i=this._names[e]||this._nameGroup(e);return`${e}${i.index++}`}_nameGroup(e){var i,n;if(!((n=(i=this._parent)===null||i===void 0?void 0:i._prefixes)===null||n===void 0)&&n.has(e)||this._prefixes&&!this._prefixes.has(e))throw new Error(`CodeGen: prefix "${e}" is not allowed in this scope`);return this._names[e]={prefix:e,index:0}}};Ni.Scope=Iu;var zu=class extends $i.Name{constructor(e,i){super(i),this.prefix=e}setValue(e,{property:i,itemIndex:n}){this.value=e,this.scopePath=(0,$i._)`.${new $i.Name(i)}[${n}]`}};Ni.ValueScopeName=zu;var D$=(0,$i._)`\n`,fm=class extends Iu{constructor(e){super(e),this._values={},this._scope=e.scope,this.opts={...e,_n:e.lines?D$:$i.nil}}get(){return this._scope}name(e){return new zu(e,this._newName(e))}value(e,i){var n;if(i.ref===void 0)throw new Error("CodeGen: ref must be passed in value");let a=this.toName(e),{prefix:r}=a,s=(n=i.key)!==null&&n!==void 0?n:i.ref,o=this._values[r];if(o){let c=o.get(s);if(c)return c}else o=this._values[r]=new Map;o.set(s,a);let l=this._scope[r]||(this._scope[r]=[]),u=l.length;return l[u]=i.ref,a.setValue(i,{property:r,itemIndex:u}),a}getValue(e,i){let n=this._values[e];if(n)return n.get(i)}scopeRefs(e,i=this._values){return this._reduceValues(i,n=>{if(n.scopePath===void 0)throw new Error(`CodeGen: name "${n}" has no value`);return(0,$i._)`${e}${n.scopePath}`})}scopeCode(e=this._values,i,n){return this._reduceValues(e,a=>{if(a.value===void 0)throw new Error(`CodeGen: name "${a}" has no value`);return a.value.code},i,n)}_reduceValues(e,i,n={},a){let r=$i.nil;for(let s in e){let o=e[s];if(!o)continue;let l=n[s]=n[s]||new Map;o.forEach(u=>{if(l.has(u))return;l.set(u,Ru.Started);let c=i(u);if(c){let p=this.opts.es5?Ni.varKinds.var:Ni.varKinds.const;r=(0,$i._)`${r}${p} ${u} = ${c};${this.opts._n}`}else if(c=a?.(u))r=(0,$i._)`${r}${c}${this.opts._n}`;else throw new mm(u);l.set(u,Ru.Completed)})}return r}};Ni.ValueScope=fm});var re=w(oe=>{"use strict";Object.defineProperty(oe,"__esModule",{value:!0});oe.or=oe.and=oe.not=oe.CodeGen=oe.operators=oe.varKinds=oe.ValueScopeName=oe.ValueScope=oe.Scope=oe.Name=oe.regexpCode=oe.stringify=oe.getProperty=oe.nil=oe.strConcat=oe.str=oe._=void 0;var fe=Ys(),yn=wm(),xt=Ys();Object.defineProperty(oe,"_",{enumerable:!0,get:function(){return xt._}});Object.defineProperty(oe,"str",{enumerable:!0,get:function(){return xt.str}});Object.defineProperty(oe,"strConcat",{enumerable:!0,get:function(){return xt.strConcat}});Object.defineProperty(oe,"nil",{enumerable:!0,get:function(){return xt.nil}});Object.defineProperty(oe,"getProperty",{enumerable:!0,get:function(){return xt.getProperty}});Object.defineProperty(oe,"stringify",{enumerable:!0,get:function(){return xt.stringify}});Object.defineProperty(oe,"regexpCode",{enumerable:!0,get:function(){return xt.regexpCode}});Object.defineProperty(oe,"Name",{enumerable:!0,get:function(){return xt.Name}});var Nu=wm();Object.defineProperty(oe,"Scope",{enumerable:!0,get:function(){return Nu.Scope}});Object.defineProperty(oe,"ValueScope",{enumerable:!0,get:function(){return Nu.ValueScope}});Object.defineProperty(oe,"ValueScopeName",{enumerable:!0,get:function(){return Nu.ValueScopeName}});Object.defineProperty(oe,"varKinds",{enumerable:!0,get:function(){return Nu.varKinds}});oe.operators={GT:new fe._Code(">"),GTE:new fe._Code(">="),LT:new fe._Code("<"),LTE:new fe._Code("<="),EQ:new fe._Code("==="),NEQ:new fe._Code("!=="),NOT:new fe._Code("!"),OR:new fe._Code("||"),AND:new fe._Code("&&"),ADD:new fe._Code("+")};var at=class{optimizeNodes(){return this}optimizeNames(e,i){return this}},vm=class extends at{constructor(e,i,n){super(),this.varKind=e,this.name=i,this.rhs=n}render({es5:e,_n:i}){let n=e?yn.varKinds.var:this.varKind,a=this.rhs===void 0?"":` = ${this.rhs}`;return`${n} ${this.name}${a};`+i}optimizeNames(e,i){if(e[this.name.str])return this.rhs&&(this.rhs=br(this.rhs,e,i)),this}get names(){return this.rhs instanceof fe._CodeOrName?this.rhs.names:{}}},Du=class extends at{constructor(e,i,n){super(),this.lhs=e,this.rhs=i,this.sideEffects=n}render({_n:e}){return`${this.lhs} = ${this.rhs};`+e}optimizeNames(e,i){if(!(this.lhs instanceof fe.Name&&!e[this.lhs.str]&&!this.sideEffects))return this.rhs=br(this.rhs,e,i),this}get names(){let e=this.lhs instanceof fe.Name?{}:{...this.lhs.names};return $u(e,this.rhs)}},Cm=class extends Du{constructor(e,i,n,a){super(e,n,a),this.op=i}render({_n:e}){return`${this.lhs} ${this.op}= ${this.rhs};`+e}},Am=class extends at{constructor(e){super(),this.label=e,this.names={}}render({_n:e}){return`${this.label}:`+e}},bm=class extends at{constructor(e){super(),this.label=e,this.names={}}render({_n:e}){return`break${this.label?` ${this.label}`:""};`+e}},ym=class extends at{constructor(e){super(),this.error=e}render({_n:e}){return`throw ${this.error};`+e}get names(){return this.error.names}},Pm=class extends at{constructor(e){super(),this.code=e}render({_n:e}){return`${this.code};`+e}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(e,i){return this.code=br(this.code,e,i),this}get names(){return this.code instanceof fe._CodeOrName?this.code.names:{}}},Xs=class extends at{constructor(e=[]){super(),this.nodes=e}render(e){return this.nodes.reduce((i,n)=>i+n.render(e),"")}optimizeNodes(){let{nodes:e}=this,i=e.length;for(;i--;){let n=e[i].optimizeNodes();Array.isArray(n)?e.splice(i,1,...n):n?e[i]=n:e.splice(i,1)}return e.length>0?this:void 0}optimizeNames(e,i){let{nodes:n}=this,a=n.length;for(;a--;){let r=n[a];r.optimizeNames(e,i)||(G$(e,r.names),n.splice(a,1))}return n.length>0?this:void 0}get names(){return this.nodes.reduce((e,i)=>ba(e,i.names),{})}},rt=class extends Xs{render(e){return"{"+e._n+super.render(e)+"}"+e._n}},jm=class extends Xs{},Ar=class extends rt{};Ar.kind="else";var Ca=class t extends rt{constructor(e,i){super(i),this.condition=e}render(e){let i=`if(${this.condition})`+super.render(e);return this.else&&(i+="else "+this.else.render(e)),i}optimizeNodes(){super.optimizeNodes();let e=this.condition;if(e===!0)return this.nodes;let i=this.else;if(i){let n=i.optimizeNodes();i=this.else=Array.isArray(n)?new Ar(n):n}if(i)return e===!1?i instanceof t?i:i.nodes:this.nodes.length?this:new t(nO(e),i instanceof t?[i]:i.nodes);if(!(e===!1||!this.nodes.length))return this}optimizeNames(e,i){var n;if(this.else=(n=this.else)===null||n===void 0?void 0:n.optimizeNames(e,i),!!(super.optimizeNames(e,i)||this.else))return this.condition=br(this.condition,e,i),this}get names(){let e=super.names;return $u(e,this.condition),this.else&&ba(e,this.else.names),e}};Ca.kind="if";var Aa=class extends rt{};Aa.kind="for";var Sm=class extends Aa{constructor(e){super(),this.iteration=e}render(e){return`for(${this.iteration})`+super.render(e)}optimizeNames(e,i){if(super.optimizeNames(e,i))return this.iteration=br(this.iteration,e,i),this}get names(){return ba(super.names,this.iteration.names)}},Om=class extends Aa{constructor(e,i,n,a){super(),this.varKind=e,this.name=i,this.from=n,this.to=a}render(e){let i=e.es5?yn.varKinds.var:this.varKind,{name:n,from:a,to:r}=this;return`for(${i} ${n}=${a}; ${n}<${r}; ${n}++)`+super.render(e)}get names(){let e=$u(super.names,this.from);return $u(e,this.to)}},Gu=class extends Aa{constructor(e,i,n,a){super(),this.loop=e,this.varKind=i,this.name=n,this.iterable=a}render(e){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(e)}optimizeNames(e,i){if(super.optimizeNames(e,i))return this.iterable=br(this.iterable,e,i),this}get names(){return ba(super.names,this.iterable.names)}},eo=class extends rt{constructor(e,i,n){super(),this.name=e,this.args=i,this.async=n}render(e){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(e)}};eo.kind="func";var io=class extends Xs{render(e){return"return "+super.render(e)}};io.kind="return";var xm=class extends rt{render(e){let i="try"+super.render(e);return this.catch&&(i+=this.catch.render(e)),this.finally&&(i+=this.finally.render(e)),i}optimizeNodes(){var e,i;return super.optimizeNodes(),(e=this.catch)===null||e===void 0||e.optimizeNodes(),(i=this.finally)===null||i===void 0||i.optimizeNodes(),this}optimizeNames(e,i){var n,a;return super.optimizeNames(e,i),(n=this.catch)===null||n===void 0||n.optimizeNames(e,i),(a=this.finally)===null||a===void 0||a.optimizeNames(e,i),this}get names(){let e=super.names;return this.catch&&ba(e,this.catch.names),this.finally&&ba(e,this.finally.names),e}},no=class extends rt{constructor(e){super(),this.error=e}render(e){return`catch(${this.error})`+super.render(e)}};no.kind="catch";var to=class extends rt{render(e){return"finally"+super.render(e)}};to.kind="finally";var Tm=class{constructor(e,i={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...i,_n:i.lines?` +`:""},this._extScope=e,this._scope=new yn.Scope({parent:e}),this._nodes=[new jm]}toString(){return this._root.render(this.opts)}name(e){return this._scope.name(e)}scopeName(e){return this._extScope.name(e)}scopeValue(e,i){let n=this._extScope.value(e,i);return(this._values[n.prefix]||(this._values[n.prefix]=new Set)).add(n),n}getScopeValue(e,i){return this._extScope.getValue(e,i)}scopeRefs(e){return this._extScope.scopeRefs(e,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(e,i,n,a){let r=this._scope.toName(i);return n!==void 0&&a&&(this._constants[r.str]=n),this._leafNode(new vm(e,r,n)),r}const(e,i,n){return this._def(yn.varKinds.const,e,i,n)}let(e,i,n){return this._def(yn.varKinds.let,e,i,n)}var(e,i,n){return this._def(yn.varKinds.var,e,i,n)}assign(e,i,n){return this._leafNode(new Du(e,i,n))}add(e,i){return this._leafNode(new Cm(e,oe.operators.ADD,i))}code(e){return typeof e=="function"?e():e!==fe.nil&&this._leafNode(new Pm(e)),this}object(...e){let i=["{"];for(let[n,a]of e)i.length>1&&i.push(","),i.push(n),(n!==a||this.opts.es5)&&(i.push(":"),(0,fe.addCodeArg)(i,a));return i.push("}"),new fe._Code(i)}if(e,i,n){if(this._blockNode(new Ca(e)),i&&n)this.code(i).else().code(n).endIf();else if(i)this.code(i).endIf();else if(n)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(e){return this._elseNode(new Ca(e))}else(){return this._elseNode(new Ar)}endIf(){return this._endBlockNode(Ca,Ar)}_for(e,i){return this._blockNode(e),i&&this.code(i).endFor(),this}for(e,i){return this._for(new Sm(e),i)}forRange(e,i,n,a,r=this.opts.es5?yn.varKinds.var:yn.varKinds.let){let s=this._scope.toName(e);return this._for(new Om(r,s,i,n),()=>a(s))}forOf(e,i,n,a=yn.varKinds.const){let r=this._scope.toName(e);if(this.opts.es5){let s=i instanceof fe.Name?i:this.var("_arr",i);return this.forRange("_i",0,(0,fe._)`${s}.length`,o=>{this.var(r,(0,fe._)`${s}[${o}]`),n(r)})}return this._for(new Gu("of",a,r,i),()=>n(r))}forIn(e,i,n,a=this.opts.es5?yn.varKinds.var:yn.varKinds.const){if(this.opts.ownProperties)return this.forOf(e,(0,fe._)`Object.keys(${i})`,n);let r=this._scope.toName(e);return this._for(new Gu("in",a,r,i),()=>n(r))}endFor(){return this._endBlockNode(Aa)}label(e){return this._leafNode(new Am(e))}break(e){return this._leafNode(new bm(e))}return(e){let i=new io;if(this._blockNode(i),this.code(e),i.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(io)}try(e,i,n){if(!i&&!n)throw new Error('CodeGen: "try" without "catch" and "finally"');let a=new xm;if(this._blockNode(a),this.code(e),i){let r=this.name("e");this._currNode=a.catch=new no(r),i(r)}return n&&(this._currNode=a.finally=new to,this.code(n)),this._endBlockNode(no,to)}throw(e){return this._leafNode(new ym(e))}block(e,i){return this._blockStarts.push(this._nodes.length),e&&this.code(e).endBlock(i),this}endBlock(e){let i=this._blockStarts.pop();if(i===void 0)throw new Error("CodeGen: not in self-balancing block");let n=this._nodes.length-i;if(n<0||e!==void 0&&n!==e)throw new Error(`CodeGen: wrong number of nodes: ${n} vs ${e} expected`);return this._nodes.length=i,this}func(e,i=fe.nil,n,a){return this._blockNode(new eo(e,i,n)),a&&this.code(a).endFunc(),this}endFunc(){return this._endBlockNode(eo)}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,i){let n=this._currNode;if(n instanceof e||i&&n instanceof i)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${i?`${e.kind}/${i.kind}`:e.kind}"`)}_elseNode(e){let i=this._currNode;if(!(i instanceof Ca))throw new Error('CodeGen: "else" without "if"');return this._currNode=i.else=e,this}get _root(){return this._nodes[0]}get _currNode(){let e=this._nodes;return e[e.length-1]}set _currNode(e){let i=this._nodes;i[i.length-1]=e}};oe.CodeGen=Tm;function ba(t,e){for(let i in e)t[i]=(t[i]||0)+(e[i]||0);return t}function $u(t,e){return e instanceof fe._CodeOrName?ba(t,e.names):t}function br(t,e,i){if(t instanceof fe.Name)return n(t);if(!a(t))return t;return new fe._Code(t._items.reduce((r,s)=>(s instanceof fe.Name&&(s=n(s)),s instanceof fe._Code?r.push(...s._items):r.push(s),r),[]));function n(r){let s=i[r.str];return s===void 0||e[r.str]!==1?r:(delete e[r.str],s)}function a(r){return r instanceof fe._Code&&r._items.some(s=>s instanceof fe.Name&&e[s.str]===1&&i[s.str]!==void 0)}}function G$(t,e){for(let i in e)t[i]=(t[i]||0)-(e[i]||0)}function nO(t){return typeof t=="boolean"||typeof t=="number"||t===null?!t:(0,fe._)`!${Mm(t)}`}oe.not=nO;var $$=tO(oe.operators.AND);function N$(...t){return t.reduce($$)}oe.and=N$;var U$=tO(oe.operators.OR);function L$(...t){return t.reduce(U$)}oe.or=L$;function tO(t){return(e,i)=>e===fe.nil?i:i===fe.nil?e:(0,fe._)`${Mm(e)} ${t} ${Mm(i)}`}function Mm(t){return t instanceof fe.Name?t:(0,fe._)`(${t})`}});var we=w(le=>{"use strict";Object.defineProperty(le,"__esModule",{value:!0});le.checkStrictMode=le.getErrorPath=le.Type=le.useFunc=le.setEvaluated=le.evaluatedPropsToName=le.mergeEvaluated=le.eachItem=le.unescapeJsonPointer=le.escapeJsonPointer=le.escapeFragment=le.unescapeFragment=le.schemaRefOrVal=le.schemaHasRulesButRef=le.schemaHasRules=le.checkUnknownRules=le.alwaysValidSchema=le.toHash=void 0;var _e=re(),W$=Ys();function B$(t){let e={};for(let i of t)e[i]=!0;return e}le.toHash=B$;function F$(t,e){return typeof e=="boolean"?e:Object.keys(e).length===0?!0:(sO(t,e),!oO(e,t.self.RULES.all))}le.alwaysValidSchema=F$;function sO(t,e=t.schema){let{opts:i,self:n}=t;if(!i.strictSchema||typeof e=="boolean")return;let a=n.RULES.keywords;for(let r in e)a[r]||cO(t,`unknown keyword: "${r}"`)}le.checkUnknownRules=sO;function oO(t,e){if(typeof t=="boolean")return!t;for(let i in t)if(e[i])return!0;return!1}le.schemaHasRules=oO;function V$(t,e){if(typeof t=="boolean")return!t;for(let i in t)if(i!=="$ref"&&e.all[i])return!0;return!1}le.schemaHasRulesButRef=V$;function J$({topSchemaRef:t,schemaPath:e},i,n,a){if(!a){if(typeof i=="number"||typeof i=="boolean")return i;if(typeof i=="string")return(0,_e._)`${i}`}return(0,_e._)`${t}${e}${(0,_e.getProperty)(n)}`}le.schemaRefOrVal=J$;function Z$(t){return lO(decodeURIComponent(t))}le.unescapeFragment=Z$;function K$(t){return encodeURIComponent(km(t))}le.escapeFragment=K$;function km(t){return typeof t=="number"?`${t}`:t.replace(/~/g,"~0").replace(/\//g,"~1")}le.escapeJsonPointer=km;function lO(t){return t.replace(/~1/g,"/").replace(/~0/g,"~")}le.unescapeJsonPointer=lO;function Q$(t,e){if(Array.isArray(t))for(let i of t)e(i);else e(t)}le.eachItem=Q$;function aO({mergeNames:t,mergeToName:e,mergeValues:i,resultToName:n}){return(a,r,s,o)=>{let l=s===void 0?r:s instanceof _e.Name?(r instanceof _e.Name?t(a,r,s):e(a,r,s),s):r instanceof _e.Name?(e(a,s,r),r):i(r,s);return o===_e.Name&&!(l instanceof _e.Name)?n(a,l):l}}le.mergeEvaluated={props:aO({mergeNames:(t,e,i)=>t.if((0,_e._)`${i} !== true && ${e} !== undefined`,()=>{t.if((0,_e._)`${e} === true`,()=>t.assign(i,!0),()=>t.assign(i,(0,_e._)`${i} || {}`).code((0,_e._)`Object.assign(${i}, ${e})`))}),mergeToName:(t,e,i)=>t.if((0,_e._)`${i} !== true`,()=>{e===!0?t.assign(i,!0):(t.assign(i,(0,_e._)`${i} || {}`),qm(t,i,e))}),mergeValues:(t,e)=>t===!0?!0:{...t,...e},resultToName:uO}),items:aO({mergeNames:(t,e,i)=>t.if((0,_e._)`${i} !== true && ${e} !== undefined`,()=>t.assign(i,(0,_e._)`${e} === true ? true : ${i} > ${e} ? ${i} : ${e}`)),mergeToName:(t,e,i)=>t.if((0,_e._)`${i} !== true`,()=>t.assign(i,e===!0?!0:(0,_e._)`${i} > ${e} ? ${i} : ${e}`)),mergeValues:(t,e)=>t===!0?!0:Math.max(t,e),resultToName:(t,e)=>t.var("items",e)})};function uO(t,e){if(e===!0)return t.var("props",!0);let i=t.var("props",(0,_e._)`{}`);return e!==void 0&&qm(t,i,e),i}le.evaluatedPropsToName=uO;function qm(t,e,i){Object.keys(i).forEach(n=>t.assign((0,_e._)`${e}${(0,_e.getProperty)(n)}`,!0))}le.setEvaluated=qm;var rO={};function Y$(t,e){return t.scopeValue("func",{ref:e,code:rO[e.code]||(rO[e.code]=new W$._Code(e.code))})}le.useFunc=Y$;var Em;(function(t){t[t.Num=0]="Num",t[t.Str=1]="Str"})(Em||(le.Type=Em={}));function X$(t,e,i){if(t instanceof _e.Name){let n=e===Em.Num;return i?n?(0,_e._)`"[" + ${t} + "]"`:(0,_e._)`"['" + ${t} + "']"`:n?(0,_e._)`"/" + ${t}`:(0,_e._)`"/" + ${t}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return i?(0,_e.getProperty)(t).toString():"/"+km(t)}le.getErrorPath=X$;function cO(t,e,i=t.opts.strictSchema){if(i){if(e=`strict mode: ${e}`,i===!0)throw new Error(e);t.self.logger.warn(e)}}le.checkStrictMode=cO});var st=w(_m=>{"use strict";Object.defineProperty(_m,"__esModule",{value:!0});var Ti=re(),eN={data:new Ti.Name("data"),valCxt:new Ti.Name("valCxt"),instancePath:new Ti.Name("instancePath"),parentData:new Ti.Name("parentData"),parentDataProperty:new Ti.Name("parentDataProperty"),rootData:new Ti.Name("rootData"),dynamicAnchors:new Ti.Name("dynamicAnchors"),vErrors:new Ti.Name("vErrors"),errors:new Ti.Name("errors"),this:new Ti.Name("this"),self:new Ti.Name("self"),scope:new Ti.Name("scope"),json:new Ti.Name("json"),jsonPos:new Ti.Name("jsonPos"),jsonLen:new Ti.Name("jsonLen"),jsonPart:new Ti.Name("jsonPart")};_m.default=eN});var ao=w(Mi=>{"use strict";Object.defineProperty(Mi,"__esModule",{value:!0});Mi.extendErrors=Mi.resetErrorsCount=Mi.reportExtraError=Mi.reportError=Mi.keyword$DataError=Mi.keywordError=void 0;var ve=re(),Uu=we(),Hi=st();Mi.keywordError={message:({keyword:t})=>(0,ve.str)`must pass "${t}" keyword validation`};Mi.keyword$DataError={message:({keyword:t,schemaType:e})=>e?(0,ve.str)`"${t}" keyword must be ${e} ($data)`:(0,ve.str)`"${t}" keyword is invalid ($data)`};function iN(t,e=Mi.keywordError,i,n){let{it:a}=t,{gen:r,compositeRule:s,allErrors:o}=a,l=hO(t,e,i);n??(s||o)?pO(r,l):dO(a,(0,ve._)`[${l}]`)}Mi.reportError=iN;function nN(t,e=Mi.keywordError,i){let{it:n}=t,{gen:a,compositeRule:r,allErrors:s}=n,o=hO(t,e,i);pO(a,o),r||s||dO(n,Hi.default.vErrors)}Mi.reportExtraError=nN;function tN(t,e){t.assign(Hi.default.errors,e),t.if((0,ve._)`${Hi.default.vErrors} !== null`,()=>t.if(e,()=>t.assign((0,ve._)`${Hi.default.vErrors}.length`,e),()=>t.assign(Hi.default.vErrors,null)))}Mi.resetErrorsCount=tN;function aN({gen:t,keyword:e,schemaValue:i,data:n,errsCount:a,it:r}){if(a===void 0)throw new Error("ajv implementation error");let s=t.name("err");t.forRange("i",a,Hi.default.errors,o=>{t.const(s,(0,ve._)`${Hi.default.vErrors}[${o}]`),t.if((0,ve._)`${s}.instancePath === undefined`,()=>t.assign((0,ve._)`${s}.instancePath`,(0,ve.strConcat)(Hi.default.instancePath,r.errorPath))),t.assign((0,ve._)`${s}.schemaPath`,(0,ve.str)`${r.errSchemaPath}/${e}`),r.opts.verbose&&(t.assign((0,ve._)`${s}.schema`,i),t.assign((0,ve._)`${s}.data`,n))})}Mi.extendErrors=aN;function pO(t,e){let i=t.const("err",e);t.if((0,ve._)`${Hi.default.vErrors} === null`,()=>t.assign(Hi.default.vErrors,(0,ve._)`[${i}]`),(0,ve._)`${Hi.default.vErrors}.push(${i})`),t.code((0,ve._)`${Hi.default.errors}++`)}function dO(t,e){let{gen:i,validateName:n,schemaEnv:a}=t;a.$async?i.throw((0,ve._)`new ${t.ValidationError}(${e})`):(i.assign((0,ve._)`${n}.errors`,e),i.return(!1))}var ya={keyword:new ve.Name("keyword"),schemaPath:new ve.Name("schemaPath"),params:new ve.Name("params"),propertyName:new ve.Name("propertyName"),message:new ve.Name("message"),schema:new ve.Name("schema"),parentSchema:new ve.Name("parentSchema")};function hO(t,e,i){let{createErrors:n}=t.it;return n===!1?(0,ve._)`{}`:rN(t,e,i)}function rN(t,e,i={}){let{gen:n,it:a}=t,r=[sN(a,i),oN(t,i)];return lN(t,e,r),n.object(...r)}function sN({errorPath:t},{instancePath:e}){let i=e?(0,ve.str)`${t}${(0,Uu.getErrorPath)(e,Uu.Type.Str)}`:t;return[Hi.default.instancePath,(0,ve.strConcat)(Hi.default.instancePath,i)]}function oN({keyword:t,it:{errSchemaPath:e}},{schemaPath:i,parentSchema:n}){let a=n?e:(0,ve.str)`${e}/${t}`;return i&&(a=(0,ve.str)`${a}${(0,Uu.getErrorPath)(i,Uu.Type.Str)}`),[ya.schemaPath,a]}function lN(t,{params:e,message:i},n){let{keyword:a,data:r,schemaValue:s,it:o}=t,{opts:l,propertyName:u,topSchemaRef:c,schemaPath:p}=o;n.push([ya.keyword,a],[ya.params,typeof e=="function"?e(t):e||(0,ve._)`{}`]),l.messages&&n.push([ya.message,typeof i=="function"?i(t):i]),l.verbose&&n.push([ya.schema,s],[ya.parentSchema,(0,ve._)`${c}${p}`],[Hi.default.data,r]),u&&n.push([ya.propertyName,u])}});var mO=w(yr=>{"use strict";Object.defineProperty(yr,"__esModule",{value:!0});yr.boolOrEmptySchema=yr.topBoolOrEmptySchema=void 0;var uN=ao(),cN=re(),pN=st(),dN={message:"boolean schema is false"};function hN(t){let{gen:e,schema:i,validateName:n}=t;i===!1?gO(t,!1):typeof i=="object"&&i.$async===!0?e.return(pN.default.data):(e.assign((0,cN._)`${n}.errors`,null),e.return(!0))}yr.topBoolOrEmptySchema=hN;function gN(t,e){let{gen:i,schema:n}=t;n===!1?(i.var(e,!1),gO(t)):i.var(e,!0)}yr.boolOrEmptySchema=gN;function gO(t,e){let{gen:i,data:n}=t,a={gen:i,keyword:"false schema",data:n,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:t};(0,uN.reportError)(a,dN,void 0,e)}});var Hm=w(Pr=>{"use strict";Object.defineProperty(Pr,"__esModule",{value:!0});Pr.getRules=Pr.isJSONType=void 0;var mN=["string","number","integer","boolean","null","object","array"],fN=new Set(mN);function wN(t){return typeof t=="string"&&fN.has(t)}Pr.isJSONType=wN;function vN(){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:{}}}Pr.getRules=vN});var Rm=w(Tt=>{"use strict";Object.defineProperty(Tt,"__esModule",{value:!0});Tt.shouldUseRule=Tt.shouldUseGroup=Tt.schemaHasRulesForType=void 0;function CN({schema:t,self:e},i){let n=e.RULES.types[i];return n&&n!==!0&&fO(t,n)}Tt.schemaHasRulesForType=CN;function fO(t,e){return e.rules.some(i=>wO(t,i))}Tt.shouldUseGroup=fO;function wO(t,e){var i;return t[e.keyword]!==void 0||((i=e.definition.implements)===null||i===void 0?void 0:i.some(n=>t[n]!==void 0))}Tt.shouldUseRule=wO});var ro=w(Ei=>{"use strict";Object.defineProperty(Ei,"__esModule",{value:!0});Ei.reportTypeError=Ei.checkDataTypes=Ei.checkDataType=Ei.coerceAndCheckDataType=Ei.getJSONTypes=Ei.getSchemaTypes=Ei.DataType=void 0;var AN=Hm(),bN=Rm(),yN=ao(),te=re(),vO=we(),jr;(function(t){t[t.Correct=0]="Correct",t[t.Wrong=1]="Wrong"})(jr||(Ei.DataType=jr={}));function PN(t){let e=CO(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}Ei.getSchemaTypes=PN;function CO(t){let e=Array.isArray(t)?t:t?[t]:[];if(e.every(AN.isJSONType))return e;throw new Error("type must be JSONType or JSONType[]: "+e.join(","))}Ei.getJSONTypes=CO;function jN(t,e){let{gen:i,data:n,opts:a}=t,r=SN(e,a.coerceTypes),s=e.length>0&&!(r.length===0&&e.length===1&&(0,bN.schemaHasRulesForType)(t,e[0]));if(s){let o=zm(e,n,a.strictNumbers,jr.Wrong);i.if(o,()=>{r.length?ON(t,e,r):Dm(t)})}return s}Ei.coerceAndCheckDataType=jN;var AO=new Set(["string","number","integer","boolean","null"]);function SN(t,e){return e?t.filter(i=>AO.has(i)||e==="array"&&i==="array"):[]}function ON(t,e,i){let{gen:n,data:a,opts:r}=t,s=n.let("dataType",(0,te._)`typeof ${a}`),o=n.let("coerced",(0,te._)`undefined`);r.coerceTypes==="array"&&n.if((0,te._)`${s} == 'object' && Array.isArray(${a}) && ${a}.length == 1`,()=>n.assign(a,(0,te._)`${a}[0]`).assign(s,(0,te._)`typeof ${a}`).if(zm(e,a,r.strictNumbers),()=>n.assign(o,a))),n.if((0,te._)`${o} !== undefined`);for(let u of i)(AO.has(u)||u==="array"&&r.coerceTypes==="array")&&l(u);n.else(),Dm(t),n.endIf(),n.if((0,te._)`${o} !== undefined`,()=>{n.assign(a,o),xN(t,o)});function l(u){switch(u){case"string":n.elseIf((0,te._)`${s} == "number" || ${s} == "boolean"`).assign(o,(0,te._)`"" + ${a}`).elseIf((0,te._)`${a} === null`).assign(o,(0,te._)`""`);return;case"number":n.elseIf((0,te._)`${s} == "boolean" || ${a} === null || (${s} == "string" && ${a} && ${a} == +${a})`).assign(o,(0,te._)`+${a}`);return;case"integer":n.elseIf((0,te._)`${s} === "boolean" || ${a} === null || (${s} === "string" && ${a} && ${a} == +${a} && !(${a} % 1))`).assign(o,(0,te._)`+${a}`);return;case"boolean":n.elseIf((0,te._)`${a} === "false" || ${a} === 0 || ${a} === null`).assign(o,!1).elseIf((0,te._)`${a} === "true" || ${a} === 1`).assign(o,!0);return;case"null":n.elseIf((0,te._)`${a} === "" || ${a} === 0 || ${a} === false`),n.assign(o,null);return;case"array":n.elseIf((0,te._)`${s} === "string" || ${s} === "number" - || ${s} === "boolean" || ${a} === null`).assign(o,(0,te._)`[${a}]`)}}}function ON({gen:t,parentData:e,parentDataProperty:i},n){t.if((0,te._)`${e} !== undefined`,()=>t.assign((0,te._)`${e}[${i}]`,n))}function Im(t,e,i,n=jr.Correct){let a=n===jr.Correct?te.operators.EQ:te.operators.NEQ,r;switch(t){case"null":return(0,te._)`${e} ${a} null`;case"array":r=(0,te._)`Array.isArray(${e})`;break;case"object":r=(0,te._)`${e} && typeof ${e} == "object" && !Array.isArray(${e})`;break;case"integer":r=s((0,te._)`!(${e} % 1) && !isNaN(${e})`);break;case"number":r=s();break;default:return(0,te._)`typeof ${e} ${a} ${t}`}return n===jr.Correct?r:(0,te.not)(r);function s(o=te.nil){return(0,te.and)((0,te._)`typeof ${e} == "number"`,o,i?(0,te._)`isFinite(${e})`:te.nil)}}Ei.checkDataType=Im;function zm(t,e,i,n){if(t.length===1)return Im(t[0],e,i,n);let a,r=(0,wO.toHash)(t);if(r.array&&r.object){let s=(0,te._)`typeof ${e} != "object"`;a=r.null?s:(0,te._)`!${e} || ${s}`,delete r.null,delete r.array,delete r.object}else a=te.nil;r.number&&delete r.integer;for(let s in r)a=(0,te.and)(a,Im(s,e,i,n));return a}Ei.checkDataTypes=zm;var xN={message:({schema:t})=>`must be ${t}`,params:({schema:t,schemaValue:e})=>typeof t=="string"?(0,te._)`{type: ${t}}`:(0,te._)`{type: ${e}}`};function Dm(t){let e=TN(t);(0,bN.reportError)(e,xN)}Ei.reportTypeError=Dm;function TN(t){let{gen:e,data:i,schema:n}=t,a=(0,wO.schemaRefOrVal)(t,n,"type");return{gen:e,keyword:"type",data:i,schema:n.type,schemaCode:a,schemaValue:a,parentSchema:n,params:{},it:t}}});var bO=w(Lu=>{"use strict";Object.defineProperty(Lu,"__esModule",{value:!0});Lu.assignDefaults=void 0;var Sr=re(),MN=we();function EN(t,e){let{properties:i,items:n}=t.schema;if(e==="object"&&i)for(let a in i)AO(t,a,i[a].default);else e==="array"&&Array.isArray(n)&&n.forEach((a,r)=>AO(t,r,a.default))}Lu.assignDefaults=EN;function AO(t,e,i){let{gen:n,compositeRule:a,data:r,opts:s}=t;if(i===void 0)return;let o=(0,Sr._)`${r}${(0,Sr.getProperty)(e)}`;if(a){(0,MN.checkStrictMode)(t,`default is ignored for: ${o}`);return}let l=(0,Sr._)`${o} === undefined`;s.useDefaults==="empty"&&(l=(0,Sr._)`${l} || ${o} === null || ${o} === ""`),n.if(l,(0,Sr._)`${o} = ${(0,Sr.stringify)(i)}`)}});var pn=w(Ee=>{"use strict";Object.defineProperty(Ee,"__esModule",{value:!0});Ee.validateUnion=Ee.validateArray=Ee.usePattern=Ee.callValidateCode=Ee.schemaProperties=Ee.allSchemaProperties=Ee.noPropertyInData=Ee.propertyInData=Ee.isOwnProperty=Ee.hasPropFunc=Ee.reportMissingProp=Ee.checkMissingProp=Ee.checkReportMissingProp=void 0;var Ne=re(),Gm=we(),Mt=st(),kN=we();function qN(t,e){let{gen:i,data:n,it:a}=t;i.if(Nm(i,n,e,a.opts.ownProperties),()=>{t.setParams({missingProperty:(0,Ne._)`${e}`},!0),t.error()})}Ee.checkReportMissingProp=qN;function _N({gen:t,data:e,it:{opts:i}},n,a){return(0,Ne.or)(...n.map(r=>(0,Ne.and)(Nm(t,e,r,i.ownProperties),(0,Ne._)`${a} = ${r}`)))}Ee.checkMissingProp=_N;function HN(t,e){t.setParams({missingProperty:e},!0),t.error()}Ee.reportMissingProp=HN;function yO(t){return t.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,Ne._)`Object.prototype.hasOwnProperty`})}Ee.hasPropFunc=yO;function $m(t,e,i){return(0,Ne._)`${yO(t)}.call(${e}, ${i})`}Ee.isOwnProperty=$m;function RN(t,e,i,n){let a=(0,Ne._)`${e}${(0,Ne.getProperty)(i)} !== undefined`;return n?(0,Ne._)`${a} && ${$m(t,e,i)}`:a}Ee.propertyInData=RN;function Nm(t,e,i,n){let a=(0,Ne._)`${e}${(0,Ne.getProperty)(i)} === undefined`;return n?(0,Ne.or)(a,(0,Ne.not)($m(t,e,i))):a}Ee.noPropertyInData=Nm;function PO(t){return t?Object.keys(t).filter(e=>e!=="__proto__"):[]}Ee.allSchemaProperties=PO;function IN(t,e){return PO(e).filter(i=>!(0,Gm.alwaysValidSchema)(t,e[i]))}Ee.schemaProperties=IN;function zN({schemaCode:t,data:e,it:{gen:i,topSchemaRef:n,schemaPath:a,errorPath:r},it:s},o,l,u){let c=u?(0,Ne._)`${t}, ${e}, ${n}${a}`:e,p=[[Mt.default.instancePath,(0,Ne.strConcat)(Mt.default.instancePath,r)],[Mt.default.parentData,s.parentData],[Mt.default.parentDataProperty,s.parentDataProperty],[Mt.default.rootData,Mt.default.rootData]];s.opts.dynamicRef&&p.push([Mt.default.dynamicAnchors,Mt.default.dynamicAnchors]);let d=(0,Ne._)`${c}, ${i.object(...p)}`;return l!==Ne.nil?(0,Ne._)`${o}.call(${l}, ${d})`:(0,Ne._)`${o}(${d})`}Ee.callValidateCode=zN;var DN=(0,Ne._)`new RegExp`;function GN({gen:t,it:{opts:e}},i){let n=e.unicodeRegExp?"u":"",{regExp:a}=e.code,r=a(i,n);return t.scopeValue("pattern",{key:r.toString(),ref:r,code:(0,Ne._)`${a.code==="new RegExp"?DN:(0,kN.useFunc)(t,a)}(${i}, ${n})`})}Ee.usePattern=GN;function $N(t){let{gen:e,data:i,keyword:n,it:a}=t,r=e.name("valid");if(a.allErrors){let o=e.let("valid",!0);return s(()=>e.assign(o,!1)),o}return e.var(r,!0),s(()=>e.break()),r;function s(o){let l=e.const("len",(0,Ne._)`${i}.length`);e.forRange("i",0,l,u=>{t.subschema({keyword:n,dataProp:u,dataPropType:Gm.Type.Num},r),e.if((0,Ne.not)(r),o)})}}Ee.validateArray=$N;function NN(t){let{gen:e,schema:i,keyword:n,it:a}=t;if(!Array.isArray(i))throw new Error("ajv implementation error");if(i.some(l=>(0,Gm.alwaysValidSchema)(a,l))&&!a.opts.unevaluated)return;let s=e.let("valid",!1),o=e.name("_valid");e.block(()=>i.forEach((l,u)=>{let c=t.subschema({keyword:n,schemaProp:u,compositeRule:!0},o);e.assign(s,(0,Ne._)`${s} || ${o}`),t.mergeValidEvaluated(c,o)||e.if((0,Ne.not)(s))})),t.result(s,()=>t.reset(),()=>t.error(!0))}Ee.validateUnion=NN});var OO=w(In=>{"use strict";Object.defineProperty(In,"__esModule",{value:!0});In.validateKeywordUsage=In.validSchemaType=In.funcKeywordCode=In.macroKeywordCode=void 0;var Ri=re(),Pa=st(),UN=pn(),LN=ao();function WN(t,e){let{gen:i,keyword:n,schema:a,parentSchema:r,it:s}=t,o=e.macro.call(s.self,a,r,s),l=SO(i,n,o);s.opts.validateSchema!==!1&&s.self.validateSchema(o,!0);let u=i.name("valid");t.subschema({schema:o,schemaPath:Ri.nil,errSchemaPath:`${s.errSchemaPath}/${n}`,topSchemaRef:l,compositeRule:!0},u),t.pass(u,()=>t.error(!0))}In.macroKeywordCode=WN;function BN(t,e){var i;let{gen:n,keyword:a,schema:r,parentSchema:s,$data:o,it:l}=t;VN(l,e);let u=!o&&e.compile?e.compile.call(l.self,r,s,l):e.validate,c=SO(n,a,u),p=n.let("valid");t.block$data(p,d),t.ok((i=e.valid)!==null&&i!==void 0?i:p);function d(){if(e.errors===!1)m(),e.modifying&&jO(t),f(()=>t.error());else{let v=e.async?h():g();e.modifying&&jO(t),f(()=>FN(t,v))}}function h(){let v=n.let("ruleErrs",null);return n.try(()=>m((0,Ri._)`await `),y=>n.assign(p,!1).if((0,Ri._)`${y} instanceof ${l.ValidationError}`,()=>n.assign(v,(0,Ri._)`${y}.errors`),()=>n.throw(y))),v}function g(){let v=(0,Ri._)`${c}.errors`;return n.assign(v,null),m(Ri.nil),v}function m(v=e.async?(0,Ri._)`await `:Ri.nil){let y=l.opts.passContext?Pa.default.this:Pa.default.self,A=!("compile"in e&&!o||e.schema===!1);n.assign(p,(0,Ri._)`${v}${(0,UN.callValidateCode)(t,c,y,A)}`,e.modifying)}function f(v){var y;n.if((0,Ri.not)((y=e.valid)!==null&&y!==void 0?y:p),v)}}In.funcKeywordCode=BN;function jO(t){let{gen:e,data:i,it:n}=t;e.if(n.parentData,()=>e.assign(i,(0,Ri._)`${n.parentData}[${n.parentDataProperty}]`))}function FN(t,e){let{gen:i}=t;i.if((0,Ri._)`Array.isArray(${e})`,()=>{i.assign(Pa.default.vErrors,(0,Ri._)`${Pa.default.vErrors} === null ? ${e} : ${Pa.default.vErrors}.concat(${e})`).assign(Pa.default.errors,(0,Ri._)`${Pa.default.vErrors}.length`),(0,LN.extendErrors)(t)},()=>t.error())}function VN({schemaEnv:t},e){if(e.async&&!t.$async)throw new Error("async keyword in sync schema")}function SO(t,e,i){if(i===void 0)throw new Error(`keyword "${e}" failed to compile`);return t.scopeValue("keyword",typeof i=="function"?{ref:i}:{ref:i,code:(0,Ri.stringify)(i)})}function JN(t,e,i=!1){return!e.length||e.some(n=>n==="array"?Array.isArray(t):n==="object"?t&&typeof t=="object"&&!Array.isArray(t):typeof t==n||i&&typeof t>"u")}In.validSchemaType=JN;function ZN({schema:t,opts:e,self:i,errSchemaPath:n},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 "${n}": `+i.errorsText(a.validateSchema.errors);if(e.validateSchema==="log")i.logger.error(l);else throw new Error(l)}}In.validateKeywordUsage=ZN});var TO=w(Et=>{"use strict";Object.defineProperty(Et,"__esModule",{value:!0});Et.extendSubschemaMode=Et.extendSubschemaData=Et.getSubschema=void 0;var zn=re(),xO=we();function KN(t,{keyword:e,schemaProp:i,schema:n,schemaPath:a,errSchemaPath:r,topSchemaRef:s}){if(e!==void 0&&n!==void 0)throw new Error('both "keyword" and "schema" passed, only one allowed');if(e!==void 0){let o=t.schema[e];return i===void 0?{schema:o,schemaPath:(0,zn._)`${t.schemaPath}${(0,zn.getProperty)(e)}`,errSchemaPath:`${t.errSchemaPath}/${e}`}:{schema:o[i],schemaPath:(0,zn._)`${t.schemaPath}${(0,zn.getProperty)(e)}${(0,zn.getProperty)(i)}`,errSchemaPath:`${t.errSchemaPath}/${e}/${(0,xO.escapeFragment)(i)}`}}if(n!==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:n,schemaPath:a,topSchemaRef:s,errSchemaPath:r}}throw new Error('either "keyword" or "schema" must be passed')}Et.getSubschema=KN;function QN(t,e,{dataProp:i,dataPropType:n,data:a,dataTypes:r,propertyName:s}){if(a!==void 0&&i!==void 0)throw new Error('both "data" and "dataProp" passed, only one allowed');let{gen:o}=e;if(i!==void 0){let{errorPath:u,dataPathArr:c,opts:p}=e,d=o.let("data",(0,zn._)`${e.data}${(0,zn.getProperty)(i)}`,!0);l(d),t.errorPath=(0,zn.str)`${u}${(0,xO.getErrorPath)(i,n,p.jsPropertySyntax)}`,t.parentDataProperty=(0,zn._)`${i}`,t.dataPathArr=[...c,t.parentDataProperty]}if(a!==void 0){let u=a instanceof zn.Name?a:o.let("data",a,!0);l(u),s!==void 0&&(t.propertyName=s)}r&&(t.dataTypes=r);function l(u){t.data=u,t.dataLevel=e.dataLevel+1,t.dataTypes=[],e.definedProperties=new Set,t.parentData=e.data,t.dataNames=[...e.dataNames,u]}}Et.extendSubschemaData=QN;function YN(t,{jtdDiscriminator:e,jtdMetadata:i,compositeRule:n,createErrors:a,allErrors:r}){n!==void 0&&(t.compositeRule=n),a!==void 0&&(t.createErrors=a),r!==void 0&&(t.allErrors=r),t.jtdDiscriminator=e,t.jtdMetadata=i}Et.extendSubschemaMode=YN});var Um=w((Sae,MO)=>{"use strict";MO.exports=function t(e,i){if(e===i)return!0;if(e&&i&&typeof e=="object"&&typeof i=="object"){if(e.constructor!==i.constructor)return!1;var n,a,r;if(Array.isArray(e)){if(n=e.length,n!=i.length)return!1;for(a=n;a--!==0;)if(!t(e[a],i[a]))return!1;return!0}if(e.constructor===RegExp)return e.source===i.source&&e.flags===i.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===i.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===i.toString();if(r=Object.keys(e),n=r.length,n!==Object.keys(i).length)return!1;for(a=n;a--!==0;)if(!Object.prototype.hasOwnProperty.call(i,r[a]))return!1;for(a=n;a--!==0;){var s=r[a];if(!t(e[s],i[s]))return!1}return!0}return e!==e&&i!==i}});var kO=w((Oae,EO)=>{"use strict";var kt=EO.exports=function(t,e,i){typeof e=="function"&&(i=e,e={}),i=e.cb||i;var n=typeof i=="function"?i:i.pre||function(){},a=i.post||function(){};Wu(e,n,a,t,"",t)};kt.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0};kt.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0};kt.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0};kt.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 Wu(t,e,i,n,a,r,s,o,l,u){if(n&&typeof n=="object"&&!Array.isArray(n)){e(n,a,r,s,o,l,u);for(var c in n){var p=n[c];if(Array.isArray(p)){if(c in kt.arrayKeywords)for(var d=0;d{"use strict";Object.defineProperty(Ui,"__esModule",{value:!0});Ui.getSchemaRefs=Ui.resolveUrl=Ui.normalizeId=Ui._getFullPath=Ui.getFullPath=Ui.inlineRef=void 0;var eU=we(),iU=Um(),nU=kO(),tU=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function aU(t,e=!0){return typeof t=="boolean"?!0:e===!0?!Lm(t):e?qO(t)<=e:!1}Ui.inlineRef=aU;var rU=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function Lm(t){for(let e in t){if(rU.has(e))return!0;let i=t[e];if(Array.isArray(i)&&i.some(Lm)||typeof i=="object"&&Lm(i))return!0}return!1}function qO(t){let e=0;for(let i in t){if(i==="$ref")return 1/0;if(e++,!tU.has(i)&&(typeof t[i]=="object"&&(0,eU.eachItem)(t[i],n=>e+=qO(n)),e===1/0))return 1/0}return e}function _O(t,e="",i){i!==!1&&(e=Or(e));let n=t.parse(e);return HO(t,n)}Ui.getFullPath=_O;function HO(t,e){return t.serialize(e).split("#")[0]+"#"}Ui._getFullPath=HO;var sU=/#\/?$/;function Or(t){return t?t.replace(sU,""):""}Ui.normalizeId=Or;function oU(t,e,i){return i=Or(i),t.resolve(e,i)}Ui.resolveUrl=oU;var lU=/^[a-z_][-a-z0-9._]*$/i;function uU(t,e){if(typeof t=="boolean")return{};let{schemaId:i,uriResolver:n}=this.opts,a=Or(t[i]||e),r={"":a},s=_O(n,a,!1),o={},l=new Set;return nU(t,{allKeys:!0},(p,d,h,g)=>{if(g===void 0)return;let m=s+d,f=r[g];typeof p[i]=="string"&&(f=v.call(this,p[i])),y.call(this,p.$anchor),y.call(this,p.$dynamicAnchor),r[d]=f;function v(A){let b=this.opts.uriResolver.resolve;if(A=Or(f?b(f,A):A),l.has(A))throw c(A);l.add(A);let O=this.refs[A];return typeof O=="string"&&(O=this.refs[O]),typeof O=="object"?u(p,O.schema,A):A!==Or(m)&&(A[0]==="#"?(u(p,o[A],A),o[A]=p):this.refs[A]=m),A}function y(A){if(typeof A=="string"){if(!lU.test(A))throw new Error(`invalid anchor "${A}"`);v.call(this,`#${A}`)}}}),o;function u(p,d,h){if(d!==void 0&&!iU(p,d))throw c(h)}function c(p){return new Error(`reference "${p}" resolves to more than one schema`)}}Ui.getSchemaRefs=uU});var uo=w(qt=>{"use strict";Object.defineProperty(qt,"__esModule",{value:!0});qt.getData=qt.KeywordCxt=qt.validateFunctionCode=void 0;var GO=gO(),RO=ro(),Bm=Rm(),Bu=ro(),cU=bO(),lo=OO(),Wm=TO(),B=re(),ee=st(),pU=so(),ot=we(),oo=ao();function dU(t){if(UO(t)&&(LO(t),NO(t))){mU(t);return}$O(t,()=>(0,GO.topBoolOrEmptySchema)(t))}qt.validateFunctionCode=dU;function $O({gen:t,validateName:e,schema:i,schemaEnv:n,opts:a},r){a.code.es5?t.func(e,(0,B._)`${ee.default.data}, ${ee.default.valCxt}`,n.$async,()=>{t.code((0,B._)`"use strict"; ${IO(i,a)}`),gU(t,a),t.code(r)}):t.func(e,(0,B._)`${ee.default.data}, ${hU(a)}`,n.$async,()=>t.code(IO(i,a)).code(r))}function hU(t){return(0,B._)`{${ee.default.instancePath}="", ${ee.default.parentData}, ${ee.default.parentDataProperty}, ${ee.default.rootData}=${ee.default.data}${t.dynamicRef?(0,B._)`, ${ee.default.dynamicAnchors}={}`:B.nil}}={}`}function gU(t,e){t.if(ee.default.valCxt,()=>{t.var(ee.default.instancePath,(0,B._)`${ee.default.valCxt}.${ee.default.instancePath}`),t.var(ee.default.parentData,(0,B._)`${ee.default.valCxt}.${ee.default.parentData}`),t.var(ee.default.parentDataProperty,(0,B._)`${ee.default.valCxt}.${ee.default.parentDataProperty}`),t.var(ee.default.rootData,(0,B._)`${ee.default.valCxt}.${ee.default.rootData}`),e.dynamicRef&&t.var(ee.default.dynamicAnchors,(0,B._)`${ee.default.valCxt}.${ee.default.dynamicAnchors}`)},()=>{t.var(ee.default.instancePath,(0,B._)`""`),t.var(ee.default.parentData,(0,B._)`undefined`),t.var(ee.default.parentDataProperty,(0,B._)`undefined`),t.var(ee.default.rootData,ee.default.data),e.dynamicRef&&t.var(ee.default.dynamicAnchors,(0,B._)`{}`)})}function mU(t){let{schema:e,opts:i,gen:n}=t;$O(t,()=>{i.$comment&&e.$comment&&BO(t),AU(t),n.let(ee.default.vErrors,null),n.let(ee.default.errors,0),i.unevaluated&&fU(t),WO(t),PU(t)})}function fU(t){let{gen:e,validateName:i}=t;t.evaluated=e.const("evaluated",(0,B._)`${i}.evaluated`),e.if((0,B._)`${t.evaluated}.dynamicProps`,()=>e.assign((0,B._)`${t.evaluated}.props`,(0,B._)`undefined`)),e.if((0,B._)`${t.evaluated}.dynamicItems`,()=>e.assign((0,B._)`${t.evaluated}.items`,(0,B._)`undefined`))}function IO(t,e){let i=typeof t=="object"&&t[e.schemaId];return i&&(e.code.source||e.code.process)?(0,B._)`/*# sourceURL=${i} */`:B.nil}function wU(t,e){if(UO(t)&&(LO(t),NO(t))){vU(t,e);return}(0,GO.boolOrEmptySchema)(t,e)}function NO({schema:t,self:e}){if(typeof t=="boolean")return!t;for(let i in t)if(e.RULES.all[i])return!0;return!1}function UO(t){return typeof t.schema!="boolean"}function vU(t,e){let{schema:i,gen:n,opts:a}=t;a.$comment&&i.$comment&&BO(t),bU(t),yU(t);let r=n.const("_errs",ee.default.errors);WO(t,r),n.var(e,(0,B._)`${r} === ${ee.default.errors}`)}function LO(t){(0,ot.checkUnknownRules)(t),CU(t)}function WO(t,e){if(t.opts.jtd)return zO(t,[],!1,e);let i=(0,RO.getSchemaTypes)(t.schema),n=(0,RO.coerceAndCheckDataType)(t,i);zO(t,i,!n,e)}function CU(t){let{schema:e,errSchemaPath:i,opts:n,self:a}=t;e.$ref&&n.ignoreKeywordsWithRef&&(0,ot.schemaHasRulesButRef)(e,a.RULES)&&a.logger.warn(`$ref: keywords ignored in schema at path "${i}"`)}function AU(t){let{schema:e,opts:i}=t;e.default!==void 0&&i.useDefaults&&i.strictSchema&&(0,ot.checkStrictMode)(t,"default is ignored in the schema root")}function bU(t){let e=t.schema[t.opts.schemaId];e&&(t.baseId=(0,pU.resolveUrl)(t.opts.uriResolver,t.baseId,e))}function yU(t){if(t.schema.$async&&!t.schemaEnv.$async)throw new Error("async schema in sync schema")}function BO({gen:t,schemaEnv:e,schema:i,errSchemaPath:n,opts:a}){let r=i.$comment;if(a.$comment===!0)t.code((0,B._)`${ee.default.self}.logger.log(${r})`);else if(typeof a.$comment=="function"){let s=(0,B.str)`${n}/$comment`,o=t.scopeValue("root",{ref:e.root});t.code((0,B._)`${ee.default.self}.opts.$comment(${r}, ${s}, ${o}.schema)`)}}function PU(t){let{gen:e,schemaEnv:i,validateName:n,ValidationError:a,opts:r}=t;i.$async?e.if((0,B._)`${ee.default.errors} === 0`,()=>e.return(ee.default.data),()=>e.throw((0,B._)`new ${a}(${ee.default.vErrors})`)):(e.assign((0,B._)`${n}.errors`,ee.default.vErrors),r.unevaluated&&jU(t),e.return((0,B._)`${ee.default.errors} === 0`))}function jU({gen:t,evaluated:e,props:i,items:n}){i instanceof B.Name&&t.assign((0,B._)`${e}.props`,i),n instanceof B.Name&&t.assign((0,B._)`${e}.items`,n)}function zO(t,e,i,n){let{gen:a,schema:r,data:s,allErrors:o,opts:l,self:u}=t,{RULES:c}=u;if(r.$ref&&(l.ignoreKeywordsWithRef||!(0,ot.schemaHasRulesButRef)(r,c))){a.block(()=>VO(t,"$ref",c.all.$ref.definition));return}l.jtd||SU(t,e),a.block(()=>{for(let d of c.rules)p(d);p(c.post)});function p(d){(0,Bm.shouldUseGroup)(r,d)&&(d.type?(a.if((0,Bu.checkDataType)(d.type,s,l.strictNumbers)),DO(t,d),e.length===1&&e[0]===d.type&&i&&(a.else(),(0,Bu.reportTypeError)(t)),a.endIf()):DO(t,d),o||a.if((0,B._)`${ee.default.errors} === ${n||0}`))}}function DO(t,e){let{gen:i,schema:n,opts:{useDefaults:a}}=t;a&&(0,cU.assignDefaults)(t,e.type),i.block(()=>{for(let r of e.rules)(0,Bm.shouldUseRule)(n,r)&&VO(t,r.keyword,r.definition,e.type)})}function SU(t,e){t.schemaEnv.meta||!t.opts.strictTypes||(OU(t,e),t.opts.allowUnionTypes||xU(t,e),TU(t,t.dataTypes))}function OU(t,e){if(e.length){if(!t.dataTypes.length){t.dataTypes=e;return}e.forEach(i=>{FO(t.dataTypes,i)||Fm(t,`type "${i}" not allowed by context "${t.dataTypes.join(",")}"`)}),EU(t,e)}}function xU(t,e){e.length>1&&!(e.length===2&&e.includes("null"))&&Fm(t,"use allowUnionTypes to allow union type keyword")}function TU(t,e){let i=t.self.RULES.all;for(let n in i){let a=i[n];if(typeof a=="object"&&(0,Bm.shouldUseRule)(t.schema,a)){let{type:r}=a.definition;r.length&&!r.some(s=>MU(e,s))&&Fm(t,`missing type "${r.join(",")}" for keyword "${n}"`)}}}function MU(t,e){return t.includes(e)||e==="number"&&t.includes("integer")}function FO(t,e){return t.includes(e)||e==="integer"&&t.includes("number")}function EU(t,e){let i=[];for(let n of t.dataTypes)FO(e,n)?i.push(n):e.includes("integer")&&n==="number"&&i.push("integer");t.dataTypes=i}function Fm(t,e){let i=t.schemaEnv.baseId+t.errSchemaPath;e+=` at "${i}" (strictTypes)`,(0,ot.checkStrictMode)(t,e,t.opts.strictTypes)}var Fu=class{constructor(e,i,n){if((0,lo.validateKeywordUsage)(e,i,n),this.gen=e.gen,this.allErrors=e.allErrors,this.keyword=n,this.data=e.data,this.schema=e.schema[n],this.$data=i.$data&&e.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,ot.schemaRefOrVal)(e,this.schema,n,this.$data),this.schemaType=i.schemaType,this.parentSchema=e.schema,this.params={},this.it=e,this.def=i,this.$data)this.schemaCode=e.gen.const("vSchema",JO(this.$data,e));else if(this.schemaCode=this.schemaValue,!(0,lo.validSchemaType)(this.schema,i.schemaType,i.allowUndefined))throw new Error(`${n} value must be ${JSON.stringify(i.schemaType)}`);("code"in i?i.trackErrors:i.errors!==!1)&&(this.errsCount=e.gen.const("_errs",ee.default.errors))}result(e,i,n){this.failResult((0,B.not)(e),i,n)}failResult(e,i,n){this.gen.if(e),n?n():this.error(),i?(this.gen.else(),i(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(e,i){this.failResult((0,B.not)(e),void 0,i)}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:i}=this;this.fail((0,B._)`${i} !== undefined && (${(0,B.or)(this.invalid$data(),e)})`)}error(e,i,n){if(i){this.setParams(i),this._error(e,n),this.setParams({});return}this._error(e,n)}_error(e,i){(e?oo.reportExtraError:oo.reportError)(this,this.def.error,i)}$dataError(){(0,oo.reportError)(this,this.def.$dataError||oo.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');(0,oo.resetErrorsCount)(this.gen,this.errsCount)}ok(e){this.allErrors||this.gen.if(e)}setParams(e,i){i?Object.assign(this.params,e):this.params=e}block$data(e,i,n=B.nil){this.gen.block(()=>{this.check$data(e,n),i()})}check$data(e=B.nil,i=B.nil){if(!this.$data)return;let{gen:n,schemaCode:a,schemaType:r,def:s}=this;n.if((0,B.or)((0,B._)`${a} === undefined`,i)),e!==B.nil&&n.assign(e,!0),(r.length||s.validateSchema)&&(n.elseIf(this.invalid$data()),this.$dataError(),e!==B.nil&&n.assign(e,!1)),n.else()}invalid$data(){let{gen:e,schemaCode:i,schemaType:n,def:a,it:r}=this;return(0,B.or)(s(),o());function s(){if(n.length){if(!(i instanceof B.Name))throw new Error("ajv implementation error");let l=Array.isArray(n)?n:[n];return(0,B._)`${(0,Bu.checkDataTypes)(l,i,r.opts.strictNumbers,Bu.DataType.Wrong)}`}return B.nil}function o(){if(a.validateSchema){let l=e.scopeValue("validate$data",{ref:a.validateSchema});return(0,B._)`!${l}(${i})`}return B.nil}}subschema(e,i){let n=(0,Wm.getSubschema)(this.it,e);(0,Wm.extendSubschemaData)(n,this.it,e),(0,Wm.extendSubschemaMode)(n,e);let a={...this.it,...n,items:void 0,props:void 0};return wU(a,i),a}mergeEvaluated(e,i){let{it:n,gen:a}=this;n.opts.unevaluated&&(n.props!==!0&&e.props!==void 0&&(n.props=ot.mergeEvaluated.props(a,e.props,n.props,i)),n.items!==!0&&e.items!==void 0&&(n.items=ot.mergeEvaluated.items(a,e.items,n.items,i)))}mergeValidEvaluated(e,i){let{it:n,gen:a}=this;if(n.opts.unevaluated&&(n.props!==!0||n.items!==!0))return a.if(i,()=>this.mergeEvaluated(e,B.Name)),!0}};qt.KeywordCxt=Fu;function VO(t,e,i,n){let a=new Fu(t,i,e);"code"in i?i.code(a,n):a.$data&&i.validate?(0,lo.funcKeywordCode)(a,i):"macro"in i?(0,lo.macroKeywordCode)(a,i):(i.compile||i.validate)&&(0,lo.funcKeywordCode)(a,i)}var kU=/^\/(?:[^~]|~0|~1)*$/,qU=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function JO(t,{dataLevel:e,dataNames:i,dataPathArr:n}){let a,r;if(t==="")return ee.default.rootData;if(t[0]==="/"){if(!kU.test(t))throw new Error(`Invalid JSON-pointer: ${t}`);a=t,r=ee.default.rootData}else{let u=qU.exec(t);if(!u)throw new Error(`Invalid JSON-pointer: ${t}`);let c=+u[1];if(a=u[2],a==="#"){if(c>=e)throw new Error(l("property/index",c));return n[e-c]}if(c>e)throw new Error(l("data",c));if(r=i[e-c],!a)return r}let s=r,o=a.split("/");for(let u of o)u&&(r=(0,B._)`${r}${(0,B.getProperty)((0,ot.unescapeJsonPointer)(u))}`,s=(0,B._)`${s} && ${r}`);return s;function l(u,c){return`Cannot access ${u} ${c} levels up, current level is ${e}`}}qt.getData=JO});var Vu=w(Jm=>{"use strict";Object.defineProperty(Jm,"__esModule",{value:!0});var Vm=class extends Error{constructor(e){super("validation failed"),this.errors=e,this.ajv=this.validation=!0}};Jm.default=Vm});var co=w(Qm=>{"use strict";Object.defineProperty(Qm,"__esModule",{value:!0});var Zm=so(),Km=class extends Error{constructor(e,i,n,a){super(a||`can't resolve reference ${n} from id ${i}`),this.missingRef=(0,Zm.resolveUrl)(e,i,n),this.missingSchema=(0,Zm.normalizeId)((0,Zm.getFullPath)(e,this.missingRef))}};Qm.default=Km});var Zu=w(dn=>{"use strict";Object.defineProperty(dn,"__esModule",{value:!0});dn.resolveSchema=dn.getCompilingSchema=dn.resolveRef=dn.compileSchema=dn.SchemaEnv=void 0;var Pn=re(),_U=Vu(),ja=st(),jn=so(),ZO=we(),HU=uo(),xr=class{constructor(e){var i;this.refs={},this.dynamicAnchors={};let n;typeof e.schema=="object"&&(n=e.schema),this.schema=e.schema,this.schemaId=e.schemaId,this.root=e.root||this,this.baseId=(i=e.baseId)!==null&&i!==void 0?i:(0,jn.normalizeId)(n?.[e.schemaId||"$id"]),this.schemaPath=e.schemaPath,this.localRefs=e.localRefs,this.meta=e.meta,this.$async=n?.$async,this.refs={}}};dn.SchemaEnv=xr;function Xm(t){let e=KO.call(this,t);if(e)return e;let i=(0,jn.getFullPath)(this.opts.uriResolver,t.root.baseId),{es5:n,lines:a}=this.opts.code,{ownProperties:r}=this.opts,s=new Pn.CodeGen(this.scope,{es5:n,lines:a,ownProperties:r}),o;t.$async&&(o=s.scopeValue("Error",{ref:_U.default,code:(0,Pn._)`require("ajv/dist/runtime/validation_error").default`}));let l=s.scopeName("validate");t.validateName=l;let u={gen:s,allErrors:this.opts.allErrors,data:ja.default.data,parentData:ja.default.parentData,parentDataProperty:ja.default.parentDataProperty,dataNames:[ja.default.data],dataPathArr:[Pn.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:s.scopeValue("schema",this.opts.code.source===!0?{ref:t.schema,code:(0,Pn.stringify)(t.schema)}:{ref:t.schema}),validateName:l,ValidationError:o,schema:t.schema,schemaEnv:t,rootId:i,baseId:t.baseId||i,schemaPath:Pn.nil,errSchemaPath:t.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,Pn._)`""`,opts:this.opts,self:this},c;try{this._compilations.add(t),(0,HU.validateFunctionCode)(u),s.optimize(this.opts.code.optimize);let p=s.toString();c=`${s.scopeRefs(ja.default.scope)}return ${p}`,this.opts.code.process&&(c=this.opts.code.process(c,t));let h=new Function(`${ja.default.self}`,`${ja.default.scope}`,c)(this,this.scope.get());if(this.scope.value(l,{ref:h}),h.errors=null,h.schema=t.schema,h.schemaEnv=t,t.$async&&(h.$async=!0),this.opts.code.source===!0&&(h.source={validateName:l,validateCode:p,scopeValues:s._values}),this.opts.unevaluated){let{props:g,items:m}=u;h.evaluated={props:g instanceof Pn.Name?void 0:g,items:m instanceof Pn.Name?void 0:m,dynamicProps:g instanceof Pn.Name,dynamicItems:m instanceof Pn.Name},h.source&&(h.source.evaluated=(0,Pn.stringify)(h.evaluated))}return t.validate=h,t}catch(p){throw delete t.validate,delete t.validateName,c&&this.logger.error("Error compiling schema, function code:",c),p}finally{this._compilations.delete(t)}}dn.compileSchema=Xm;function RU(t,e,i){var n;i=(0,jn.resolveUrl)(this.opts.uriResolver,e,i);let a=t.refs[i];if(a)return a;let r=DU.call(this,t,i);if(r===void 0){let s=(n=t.localRefs)===null||n===void 0?void 0:n[i],{schemaId:o}=this.opts;s&&(r=new xr({schema:s,schemaId:o,root:t,baseId:e}))}if(r!==void 0)return t.refs[i]=IU.call(this,r)}dn.resolveRef=RU;function IU(t){return(0,jn.inlineRef)(t.schema,this.opts.inlineRefs)?t.schema:t.validate?t:Xm.call(this,t)}function KO(t){for(let e of this._compilations)if(zU(e,t))return e}dn.getCompilingSchema=KO;function zU(t,e){return t.schema===e.schema&&t.root===e.root&&t.baseId===e.baseId}function DU(t,e){let i;for(;typeof(i=this.refs[e])=="string";)e=i;return i||this.schemas[e]||Ju.call(this,t,e)}function Ju(t,e){let i=this.opts.uriResolver.parse(e),n=(0,jn._getFullPath)(this.opts.uriResolver,i),a=(0,jn.getFullPath)(this.opts.uriResolver,t.baseId,void 0);if(Object.keys(t.schema).length>0&&n===a)return Ym.call(this,i,t);let r=(0,jn.normalizeId)(n),s=this.refs[r]||this.schemas[r];if(typeof s=="string"){let o=Ju.call(this,t,s);return typeof o?.schema!="object"?void 0:Ym.call(this,i,o)}if(typeof s?.schema=="object"){if(s.validate||Xm.call(this,s),r===(0,jn.normalizeId)(e)){let{schema:o}=s,{schemaId:l}=this.opts,u=o[l];return u&&(a=(0,jn.resolveUrl)(this.opts.uriResolver,a,u)),new xr({schema:o,schemaId:l,root:t,baseId:a})}return Ym.call(this,i,s)}}dn.resolveSchema=Ju;var GU=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function Ym(t,{baseId:e,schema:i,root:n}){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 i=="boolean")return;let l=i[(0,ZO.unescapeFragment)(o)];if(l===void 0)return;i=l;let u=typeof i=="object"&&i[this.opts.schemaId];!GU.has(o)&&u&&(e=(0,jn.resolveUrl)(this.opts.uriResolver,e,u))}let r;if(typeof i!="boolean"&&i.$ref&&!(0,ZO.schemaHasRulesButRef)(i,this.RULES)){let o=(0,jn.resolveUrl)(this.opts.uriResolver,e,i.$ref);r=Ju.call(this,n,o)}let{schemaId:s}=this.opts;if(r=r||new xr({schema:i,schemaId:s,root:n,baseId:e}),r.schema!==r.root.schema)return r}});var QO=w((qae,$U)=>{$U.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 tf=w((_ae,tx)=>{"use strict";var NU=RegExp.prototype.test.bind(/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu),XO=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),ef=RegExp.prototype.test.bind(/^[\da-f]{2}$/iu),ex=RegExp.prototype.test.bind(/^[\da-z\-._~]$/iu),UU=RegExp.prototype.test.bind(/^[\da-z\-._~!$&'()*+,;=:@/]$/iu);function nf(t){let e="",i=0,n=0;for(n=0;n=48&&i<=57||i>=65&&i<=70||i>=97&&i<=102))return"";e+=t[n];break}for(n+=1;n=48&&i<=57||i>=65&&i<=70||i>=97&&i<=102))return"";e+=t[n]}return e}var LU=RegExp.prototype.test.bind(/[^!"$&'()*+,\-.;=_`a-z{}~]/u);function YO(t){return t.length=0,!0}function WU(t,e,i){if(t.length){let n=nf(t);if(n!=="")e.push(n);else return i.error=!0,!1;t.length=0}return!0}function BU(t){let e=0,i={error:!1,address:"",zone:""},n=[],a=[],r=!1,s=!1,o=WU;for(let l=0;l7){i.error=!0;break}l>0&&t[l-1]===":"&&(r=!0),n.push(":");continue}else if(u==="%"){if(!o(a,n,i))break;o=YO}else{a.push(u);continue}}return a.length&&(o===YO?i.zone=a.join(""):s?n.push(a.join("")):n.push(nf(a))),i.address=n.join(""),i}function ix(t){if(FU(t,":")<2)return{host:t,isIPV6:!1};let e=BU(t);if(e.error)return{host:t,isIPV6:!1};{let i=e.address,n=e.address;return e.zone&&(i+="%"+e.zone,n+="%25"+e.zone),{host:i,isIPV6:!0,escapedHost:n}}}function FU(t,e){let i=0;for(let n=0;nJU[n])}function QU(t,e=!1){if(t.indexOf("%")===-1)return t;let i="";for(let n=0;n{"use strict";var{isUUID:iL}=tf(),nL=/([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu,tL=["http","https","ws","wss","urn","urn:uuid"];function aL(t){return tL.indexOf(t)!==-1}function af(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 ax(t){return t.host||(t.error=t.error||"HTTP URIs must have a host."),t}function rx(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 rL(t){return t.secure=af(t),t.resourceName=(t.path||"/")+(t.query?"?"+t.query:""),t.path=void 0,t.query=void 0,t}function sL(t){if((t.port===(af(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,i]=t.resourceName.split("?");t.path=e&&e!=="/"?e:void 0,t.query=i,t.resourceName=void 0}return t.fragment=void 0,t}function oL(t,e){if(!t.path)return t.error="URN can not be parsed",t;let i=t.path.match(nL);if(i){let n=e.scheme||t.scheme||"urn";t.nid=i[1].toLowerCase(),t.nss=i[2];let a=`${n}:${e.nid||t.nid}`,r=rf(a);t.path=void 0,r&&(t=r.parse(t,e))}else t.error=t.error||"URN can not be parsed.";return t}function lL(t,e){if(t.nid===void 0)throw new Error("URN without nid cannot be serialized");let i=e.scheme||t.scheme||"urn",n=t.nid.toLowerCase(),a=`${i}:${e.nid||n}`,r=rf(a);r&&(t=r.serialize(t,e));let s=t,o=t.nss;return s.path=`${n||e.nid}:${o}`,e.skipEscape=!0,s}function uL(t,e){let i=t;return i.uuid=i.nss,i.nss=void 0,!e.tolerant&&(!i.uuid||!iL(i.uuid))&&(i.error=i.error||"UUID is not valid."),i}function cL(t){let e=t;return e.nss=(t.uuid||"").toLowerCase(),e}var sx={scheme:"http",domainHost:!0,parse:ax,serialize:rx},pL={scheme:"https",domainHost:sx.domainHost,parse:ax,serialize:rx},Ku={scheme:"ws",domainHost:!0,parse:rL,serialize:sL},dL={scheme:"wss",domainHost:Ku.domainHost,parse:Ku.parse,serialize:Ku.serialize},hL={scheme:"urn",parse:oL,serialize:lL,skipNormalize:!0},gL={scheme:"urn:uuid",parse:uL,serialize:cL,skipNormalize:!0},Qu={http:sx,https:pL,ws:Ku,wss:dL,urn:hL,"urn:uuid":gL};Object.setPrototypeOf(Qu,null);function rf(t){return t&&(Qu[t]||Qu[t.toLowerCase()])||void 0}ox.exports={wsIsSecure:af,SCHEMES:Qu,isValidSchemeName:aL,getSchemeHandler:rf}});var gx=w((Rae,Yu)=>{"use strict";var{normalizeIPv6:mL,removeDotSegments:po,recomposeAuthority:fL,normalizePercentEncoding:wL,normalizePathEncoding:vL,escapePreservingEscapes:CL,reescapeHostDelimiters:AL,isIPv4:bL,nonSimpleDomain:yL}=tf(),{SCHEMES:PL,getSchemeHandler:cx}=lx();function jL(t,e){return typeof t=="string"?t=ML(t,e):typeof t=="object"&&(t=Tr(Sa(t,e),e)),t}function SL(t,e,i){let n=i?Object.assign({scheme:"null"},i):{scheme:"null"},a=px(Tr(t,n),Tr(e,n),n,!0);return n.skipEscape=!0,Sa(a,n)}function px(t,e,i,n){let a={};return n||(t=Tr(Sa(t,i),i),e=Tr(Sa(e,i),i)),i=i||{},!i.tolerant&&e.scheme?(a.scheme=e.scheme,a.userinfo=e.userinfo,a.host=e.host,a.port=e.port,a.path=po(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=po(e.path||""),a.query=e.query):(e.path?(e.path[0]==="/"?a.path=po(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=po(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 OL(t,e,i){let n=ux(t,i),a=ux(e,i);return n!==void 0&&a!==void 0&&n.toLowerCase()===a.toLowerCase()}function Sa(t,e){let i={host:t.host,scheme:t.scheme,userinfo:t.userinfo,port:t.port,path:t.path,query:t.query,nid:t.nid,nss:t.nss,uuid:t.uuid,fragment:t.fragment,reference:t.reference,resourceName:t.resourceName,secure:t.secure,error:""},n=Object.assign({},e),a=[],r=cx(n.scheme||i.scheme);r&&r.serialize&&r.serialize(i,n),i.path!==void 0&&(n.skipEscape?i.path=wL(i.path):(i.path=CL(i.path),i.scheme!==void 0&&(i.path=i.path.split("%3A").join(":")))),n.reference!=="suffix"&&i.scheme&&a.push(i.scheme,":");let s=fL(i);if(s!==void 0&&(n.reference!=="suffix"&&a.push("//"),a.push(s),i.path&&i.path[0]!=="/"&&a.push("/")),i.path!==void 0){let o=i.path;!n.absolutePath&&(!r||!r.absolutePath)&&(o=po(o)),s===void 0&&o[0]==="/"&&o[1]==="/"&&(o="/%2F"+o.slice(2)),a.push(o)}return i.query!==void 0&&a.push("?",i.query),i.fragment!==void 0&&a.push("#",i.fragment),a.join("")}var xL=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u;function TL(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 dx(t,e){let i=Object.assign({},e),n={scheme:void 0,userinfo:void 0,host:"",port:void 0,path:"",query:void 0,fragment:void 0},a=!1,r=!1;i.reference==="suffix"&&(i.scheme?t=i.scheme+":"+t:t="//"+t);let s=t.match(xL);if(s){n.scheme=s[1],n.userinfo=s[3],n.host=s[4],n.port=parseInt(s[5],10),n.path=s[6]||"",n.query=s[7],n.fragment=s[8],isNaN(n.port)&&(n.port=s[5]);let o=TL(n,s);if(o!==void 0&&(n.error=n.error||o,a=!0),n.host)if(bL(n.host)===!1){let c=mL(n.host);n.host=c.host.toLowerCase(),r=c.isIPV6}else r=!0;n.scheme===void 0&&n.userinfo===void 0&&n.host===void 0&&n.port===void 0&&n.query===void 0&&!n.path?n.reference="same-document":n.scheme===void 0?n.reference="relative":n.fragment===void 0?n.reference="absolute":n.reference="uri",i.reference&&i.reference!=="suffix"&&i.reference!==n.reference&&(n.error=n.error||"URI is not a "+i.reference+" reference.");let l=cx(i.scheme||n.scheme);if(!i.unicodeSupport&&(!l||!l.unicodeSupport)&&n.host&&(i.domainHost||l&&l.domainHost)&&r===!1&&yL(n.host))try{n.host=URL.domainToASCII(n.host.toLowerCase())}catch(u){n.error=n.error||"Host's domain name can not be converted to ASCII: "+u}if((!l||l&&!l.skipNormalize)&&(t.indexOf("%")!==-1&&(n.scheme!==void 0&&(n.scheme=unescape(n.scheme)),n.host!==void 0&&(n.host=AL(unescape(n.host),r))),n.path&&(n.path=vL(n.path)),n.fragment))try{n.fragment=encodeURI(decodeURIComponent(n.fragment))}catch{n.error=n.error||"URI malformed"}l&&l.parse&&l.parse(n,i)}else n.error=n.error||"URI can not be parsed.";return{parsed:n,malformedAuthorityOrPort:a}}function Tr(t,e){return dx(t,e).parsed}function ML(t,e){return hx(t,e).normalized}function hx(t,e){let{parsed:i,malformedAuthorityOrPort:n}=dx(t,e);return{normalized:n?t:Sa(i,e),malformedAuthorityOrPort:n}}function ux(t,e){if(typeof t=="string"){let{normalized:i,malformedAuthorityOrPort:n}=hx(t,e);return n?void 0:i}if(typeof t=="object")return Sa(t,e)}var sf={SCHEMES:PL,normalize:jL,resolve:SL,resolveComponent:px,equal:OL,serialize:Sa,parse:Tr};Yu.exports=sf;Yu.exports.default=sf;Yu.exports.fastUri=sf});var fx=w(of=>{"use strict";Object.defineProperty(of,"__esModule",{value:!0});var mx=gx();mx.code='require("ajv/dist/runtime/uri").default';of.default=mx});var jx=w(yi=>{"use strict";Object.defineProperty(yi,"__esModule",{value:!0});yi.CodeGen=yi.Name=yi.nil=yi.stringify=yi.str=yi._=yi.KeywordCxt=void 0;var EL=uo();Object.defineProperty(yi,"KeywordCxt",{enumerable:!0,get:function(){return EL.KeywordCxt}});var Mr=re();Object.defineProperty(yi,"_",{enumerable:!0,get:function(){return Mr._}});Object.defineProperty(yi,"str",{enumerable:!0,get:function(){return Mr.str}});Object.defineProperty(yi,"stringify",{enumerable:!0,get:function(){return Mr.stringify}});Object.defineProperty(yi,"nil",{enumerable:!0,get:function(){return Mr.nil}});Object.defineProperty(yi,"Name",{enumerable:!0,get:function(){return Mr.Name}});Object.defineProperty(yi,"CodeGen",{enumerable:!0,get:function(){return Mr.CodeGen}});var kL=Vu(),bx=co(),qL=Hm(),ho=Zu(),_L=re(),go=so(),Xu=ro(),uf=we(),wx=QO(),HL=fx(),yx=(t,e)=>new RegExp(t,e);yx.code="new RegExp";var RL=["removeAdditional","useDefaults","coerceTypes"],IL=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),zL={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."},DL={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},vx=200;function GL(t){var e,i,n,a,r,s,o,l,u,c,p,d,h,g,m,f,v,y,A,b,O,$,N,X,F;let k=t.strict,Q=(e=t.code)===null||e===void 0?void 0:e.optimize,Z=Q===!0||Q===void 0?1:Q||0,ie=(n=(i=t.code)===null||i===void 0?void 0:i.regExp)!==null&&n!==void 0?n:yx,se=(a=t.uriResolver)!==null&&a!==void 0?a:HL.default;return{strictSchema:(s=(r=t.strictSchema)!==null&&r!==void 0?r:k)!==null&&s!==void 0?s:!0,strictNumbers:(l=(o=t.strictNumbers)!==null&&o!==void 0?o:k)!==null&&l!==void 0?l:!0,strictTypes:(c=(u=t.strictTypes)!==null&&u!==void 0?u:k)!==null&&c!==void 0?c:"log",strictTuples:(d=(p=t.strictTuples)!==null&&p!==void 0?p:k)!==null&&d!==void 0?d:"log",strictRequired:(g=(h=t.strictRequired)!==null&&h!==void 0?h:k)!==null&&g!==void 0?g:!1,code:t.code?{...t.code,optimize:Z,regExp:ie}:{optimize:Z,regExp:ie},loopRequired:(m=t.loopRequired)!==null&&m!==void 0?m:vx,loopEnum:(f=t.loopEnum)!==null&&f!==void 0?f:vx,meta:(v=t.meta)!==null&&v!==void 0?v:!0,messages:(y=t.messages)!==null&&y!==void 0?y:!0,inlineRefs:(A=t.inlineRefs)!==null&&A!==void 0?A:!0,schemaId:(b=t.schemaId)!==null&&b!==void 0?b:"$id",addUsedSchema:(O=t.addUsedSchema)!==null&&O!==void 0?O:!0,validateSchema:($=t.validateSchema)!==null&&$!==void 0?$:!0,validateFormats:(N=t.validateFormats)!==null&&N!==void 0?N:!0,unicodeRegExp:(X=t.unicodeRegExp)!==null&&X!==void 0?X:!0,int32range:(F=t.int32range)!==null&&F!==void 0?F:!0,uriResolver:se}}var mo=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,...GL(e)};let{es5:i,lines:n}=this.opts.code;this.scope=new _L.ValueScope({scope:{},prefixes:IL,es5:i,lines:n}),this.logger=BL(e.logger);let a=e.validateFormats;e.validateFormats=!1,this.RULES=(0,qL.getRules)(),Cx.call(this,zL,e,"NOT SUPPORTED"),Cx.call(this,DL,e,"DEPRECATED","warn"),this._metaOpts=LL.call(this),e.formats&&NL.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),e.keywords&&UL.call(this,e.keywords),typeof e.meta=="object"&&this.addMetaSchema(e.meta),$L.call(this),e.validateFormats=a}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){let{$data:e,meta:i,schemaId:n}=this.opts,a=wx;n==="id"&&(a={...wx},a.id=a.$id,delete a.$id),i&&e&&this.addMetaSchema(a,a[n],!1)}defaultMeta(){let{meta:e,schemaId:i}=this.opts;return this.opts.defaultMeta=typeof e=="object"?e[i]||e:void 0}validate(e,i){let n;if(typeof e=="string"){if(n=this.getSchema(e),!n)throw new Error(`no schema with key or ref "${e}"`)}else n=this.compile(e);let a=n(i);return"$async"in n||(this.errors=n.errors),a}compile(e,i){let n=this._addSchema(e,i);return n.validate||this._compileSchemaEnv(n)}compileAsync(e,i){if(typeof this.opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");let{loadSchema:n}=this.opts;return a.call(this,e,i);async function a(c,p){await r.call(this,c.$schema);let d=this._addSchema(c,p);return d.validate||s.call(this,d)}async function r(c){c&&!this.getSchema(c)&&await a.call(this,{$ref:c},!0)}async function s(c){try{return this._compileSchemaEnv(c)}catch(p){if(!(p instanceof bx.default))throw p;return o.call(this,p),await l.call(this,p.missingSchema),s.call(this,c)}}function o({missingSchema:c,missingRef:p}){if(this.refs[c])throw new Error(`AnySchema ${c} is loaded but ${p} cannot be resolved`)}async function l(c){let p=await u.call(this,c);this.refs[c]||await r.call(this,p.$schema),this.refs[c]||this.addSchema(p,c,i)}async function u(c){let p=this._loading[c];if(p)return p;try{return await(this._loading[c]=n(c))}finally{delete this._loading[c]}}}addSchema(e,i,n,a=this.opts.validateSchema){if(Array.isArray(e)){for(let s of e)this.addSchema(s,void 0,n,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 i=(0,go.normalizeId)(i||r),this._checkUnique(i),this.schemas[i]=this._addSchema(e,n,i,a,!0),this}addMetaSchema(e,i,n=this.opts.validateSchema){return this.addSchema(e,i,!0,n),this}validateSchema(e,i){if(typeof e=="boolean")return!0;let n;if(n=e.$schema,n!==void 0&&typeof n!="string")throw new Error("$schema must be a string");if(n=n||this.opts.defaultMeta||this.defaultMeta(),!n)return this.logger.warn("meta-schema not available"),this.errors=null,!0;let a=this.validate(n,e);if(!a&&i){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 i;for(;typeof(i=Ax.call(this,e))=="string";)e=i;if(i===void 0){let{schemaId:n}=this.opts,a=new ho.SchemaEnv({schema:{},schemaId:n});if(i=ho.resolveSchema.call(this,a,e),!i)return;this.refs[e]=i}return i.validate||this._compileSchemaEnv(i)}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 i=Ax.call(this,e);return typeof i=="object"&&this._cache.delete(i.schema),delete this.schemas[e],delete this.refs[e],this}case"object":{let i=e;this._cache.delete(i);let n=e[this.opts.schemaId];return n&&(n=(0,go.normalizeId)(n),delete this.schemas[n],delete this.refs[n]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(e){for(let i of e)this.addKeyword(i);return this}addKeyword(e,i){let n;if(typeof e=="string")n=e,typeof i=="object"&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),i.keyword=n);else if(typeof e=="object"&&i===void 0){if(i=e,n=i.keyword,Array.isArray(n)&&!n.length)throw new Error("addKeywords: keyword must be string or non-empty array")}else throw new Error("invalid addKeywords parameters");if(VL.call(this,n,i),!i)return(0,uf.eachItem)(n,r=>lf.call(this,r)),this;ZL.call(this,i);let a={...i,type:(0,Xu.getJSONTypes)(i.type),schemaType:(0,Xu.getJSONTypes)(i.schemaType)};return(0,uf.eachItem)(n,a.type.length===0?r=>lf.call(this,r,a):r=>a.type.forEach(s=>lf.call(this,r,a,s))),this}getKeyword(e){let i=this.RULES.all[e];return typeof i=="object"?i.definition:!!i}removeKeyword(e){let{RULES:i}=this;delete i.keywords[e],delete i.all[e];for(let n of i.rules){let a=n.rules.findIndex(r=>r.keyword===e);a>=0&&n.rules.splice(a,1)}return this}addFormat(e,i){return typeof i=="string"&&(i=new RegExp(i)),this.formats[e]=i,this}errorsText(e=this.errors,{separator:i=", ",dataVar:n="data"}={}){return!e||e.length===0?"No errors":e.map(a=>`${n}${a.instancePath} ${a.message}`).reduce((a,r)=>a+i+r)}$dataMetaSchema(e,i){let n=this.RULES.all;e=JSON.parse(JSON.stringify(e));for(let a of i){let r=a.split("/").slice(1),s=e;for(let o of r)s=s[o];for(let o in n){let l=n[o];if(typeof l!="object")continue;let{$data:u}=l.definition,c=s[o];u&&c&&(s[o]=Px(c))}}return e}_removeAllSchemas(e,i){for(let n in e){let a=e[n];(!i||i.test(n))&&(typeof a=="string"?delete e[n]:a&&!a.meta&&(this._cache.delete(a.schema),delete e[n]))}}_addSchema(e,i,n,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;n=(0,go.normalizeId)(s||n);let u=go.getSchemaRefs.call(this,e,n);return l=new ho.SchemaEnv({schema:e,schemaId:o,meta:i,baseId:n,localRefs:u}),this._cache.set(l.schema,l),r&&!n.startsWith("#")&&(n&&this._checkUnique(n),this.refs[n]=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):ho.compileSchema.call(this,e),!e.validate)throw new Error("ajv implementation error");return e.validate}_compileMetaSchema(e){let i=this.opts;this.opts=this._metaOpts;try{ho.compileSchema.call(this,e)}finally{this.opts=i}}};mo.ValidationError=kL.default;mo.MissingRefError=bx.default;yi.default=mo;function Cx(t,e,i,n="error"){for(let a in t){let r=a;r in e&&this.logger[n](`${i}: option ${a}. ${t[r]}`)}}function Ax(t){return t=(0,go.normalizeId)(t),this.schemas[t]||this.refs[t]}function $L(){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 NL(){for(let t in this.opts.formats){let e=this.opts.formats[t];e&&this.addFormat(t,e)}}function UL(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 i=t[e];i.keyword||(i.keyword=e),this.addKeyword(i)}}function LL(){let t={...this.opts};for(let e of RL)delete t[e];return t}var WL={log(){},warn(){},error(){}};function BL(t){if(t===!1)return WL;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 FL=/^[a-z_$][a-z0-9_$:-]*$/i;function VL(t,e){let{RULES:i}=this;if((0,uf.eachItem)(t,n=>{if(i.keywords[n])throw new Error(`Keyword ${n} is already defined`);if(!FL.test(n))throw new Error(`Keyword ${n} has invalid name`)}),!!e&&e.$data&&!("code"in e||"validate"in e))throw new Error('$data keyword must have "code" or "validate" function')}function lf(t,e,i){var n;let a=e?.post;if(i&&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===i);if(s||(s={type:i,rules:[]},r.rules.push(s)),r.keywords[t]=!0,!e)return;let o={keyword:t,definition:{...e,type:(0,Xu.getJSONTypes)(e.type),schemaType:(0,Xu.getJSONTypes)(e.schemaType)}};e.before?JL.call(this,s,o,e.before):s.rules.push(o),r.all[t]=o,(n=e.implements)===null||n===void 0||n.forEach(l=>this.addKeyword(l))}function JL(t,e,i){let n=t.rules.findIndex(a=>a.keyword===i);n>=0?t.rules.splice(n,0,e):(t.rules.push(e),this.logger.warn(`rule ${i} is not defined`))}function ZL(t){let{metaSchema:e}=t;e!==void 0&&(t.$data&&this.opts.$data&&(e=Px(e)),t.validateSchema=this.compile(e,!0))}var KL={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function Px(t){return{anyOf:[t,KL]}}});var Sx=w(cf=>{"use strict";Object.defineProperty(cf,"__esModule",{value:!0});var QL={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};cf.default=QL});var Mx=w(Oa=>{"use strict";Object.defineProperty(Oa,"__esModule",{value:!0});Oa.callRef=Oa.getValidate=void 0;var YL=co(),Ox=pn(),Li=re(),Er=st(),xx=Zu(),ec=we(),XL={keyword:"$ref",schemaType:"string",code(t){let{gen:e,schema:i,it:n}=t,{baseId:a,schemaEnv:r,validateName:s,opts:o,self:l}=n,{root:u}=r;if((i==="#"||i==="#/")&&a===u.baseId)return p();let c=xx.resolveRef.call(l,u,a,i);if(c===void 0)throw new YL.default(n.opts.uriResolver,a,i);if(c instanceof xx.SchemaEnv)return d(c);return h(c);function p(){if(r===u)return ic(t,s,r,r.$async);let g=e.scopeValue("root",{ref:u});return ic(t,(0,Li._)`${g}.validate`,u,u.$async)}function d(g){let m=Tx(t,g);ic(t,m,g,g.$async)}function h(g){let m=e.scopeValue("schema",o.code.source===!0?{ref:g,code:(0,Li.stringify)(g)}:{ref:g}),f=e.name("valid"),v=t.subschema({schema:g,dataTypes:[],schemaPath:Li.nil,topSchemaRef:m,errSchemaPath:i},f);t.mergeEvaluated(v),t.ok(f)}}};function Tx(t,e){let{gen:i}=t;return e.validate?i.scopeValue("validate",{ref:e.validate}):(0,Li._)`${i.scopeValue("wrapper",{ref:e})}.validate`}Oa.getValidate=Tx;function ic(t,e,i,n){let{gen:a,it:r}=t,{allErrors:s,schemaEnv:o,opts:l}=r,u=l.passContext?Er.default.this:Li.nil;n?c():p();function c(){if(!o.$async)throw new Error("async schema referenced by sync schema");let g=a.let("valid");a.try(()=>{a.code((0,Li._)`await ${(0,Ox.callValidateCode)(t,e,u)}`),h(e),s||a.assign(g,!0)},m=>{a.if((0,Li._)`!(${m} instanceof ${r.ValidationError})`,()=>a.throw(m)),d(m),s||a.assign(g,!1)}),t.ok(g)}function p(){t.result((0,Ox.callValidateCode)(t,e,u),()=>h(e),()=>d(e))}function d(g){let m=(0,Li._)`${g}.errors`;a.assign(Er.default.vErrors,(0,Li._)`${Er.default.vErrors} === null ? ${m} : ${Er.default.vErrors}.concat(${m})`),a.assign(Er.default.errors,(0,Li._)`${Er.default.vErrors}.length`)}function h(g){var m;if(!r.opts.unevaluated)return;let f=(m=i?.validate)===null||m===void 0?void 0:m.evaluated;if(r.props!==!0)if(f&&!f.dynamicProps)f.props!==void 0&&(r.props=ec.mergeEvaluated.props(a,f.props,r.props));else{let v=a.var("props",(0,Li._)`${g}.evaluated.props`);r.props=ec.mergeEvaluated.props(a,v,r.props,Li.Name)}if(r.items!==!0)if(f&&!f.dynamicItems)f.items!==void 0&&(r.items=ec.mergeEvaluated.items(a,f.items,r.items));else{let v=a.var("items",(0,Li._)`${g}.evaluated.items`);r.items=ec.mergeEvaluated.items(a,v,r.items,Li.Name)}}}Oa.callRef=ic;Oa.default=XL});var Ex=w(pf=>{"use strict";Object.defineProperty(pf,"__esModule",{value:!0});var eW=Sx(),iW=Mx(),nW=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",eW.default,iW.default];pf.default=nW});var kx=w(df=>{"use strict";Object.defineProperty(df,"__esModule",{value:!0});var nc=re(),_t=nc.operators,tc={maximum:{okStr:"<=",ok:_t.LTE,fail:_t.GT},minimum:{okStr:">=",ok:_t.GTE,fail:_t.LT},exclusiveMaximum:{okStr:"<",ok:_t.LT,fail:_t.GTE},exclusiveMinimum:{okStr:">",ok:_t.GT,fail:_t.LTE}},tW={message:({keyword:t,schemaCode:e})=>(0,nc.str)`must be ${tc[t].okStr} ${e}`,params:({keyword:t,schemaCode:e})=>(0,nc._)`{comparison: ${tc[t].okStr}, limit: ${e}}`},aW={keyword:Object.keys(tc),type:"number",schemaType:"number",$data:!0,error:tW,code(t){let{keyword:e,data:i,schemaCode:n}=t;t.fail$data((0,nc._)`${i} ${tc[e].fail} ${n} || isNaN(${i})`)}};df.default=aW});var qx=w(hf=>{"use strict";Object.defineProperty(hf,"__esModule",{value:!0});var fo=re(),rW={message:({schemaCode:t})=>(0,fo.str)`must be multiple of ${t}`,params:({schemaCode:t})=>(0,fo._)`{multipleOf: ${t}}`},sW={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:rW,code(t){let{gen:e,data:i,schemaCode:n,it:a}=t,r=a.opts.multipleOfPrecision,s=e.let("res"),o=r?(0,fo._)`Math.abs(Math.round(${s}) - ${s}) > 1e-${r}`:(0,fo._)`${s} !== parseInt(${s})`;t.fail$data((0,fo._)`(${n} === 0 || (${s} = ${i}/${n}, ${o}))`)}};hf.default=sW});var Hx=w(gf=>{"use strict";Object.defineProperty(gf,"__esModule",{value:!0});function _x(t){let e=t.length,i=0,n=0,a;for(;n=55296&&a<=56319&&n{"use strict";Object.defineProperty(mf,"__esModule",{value:!0});var xa=re(),oW=we(),lW=Hx(),uW={message({keyword:t,schemaCode:e}){let i=t==="maxLength"?"more":"fewer";return(0,xa.str)`must NOT have ${i} than ${e} characters`},params:({schemaCode:t})=>(0,xa._)`{limit: ${t}}`},cW={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:uW,code(t){let{keyword:e,data:i,schemaCode:n,it:a}=t,r=e==="maxLength"?xa.operators.GT:xa.operators.LT,s=a.opts.unicode===!1?(0,xa._)`${i}.length`:(0,xa._)`${(0,oW.useFunc)(t.gen,lW.default)}(${i})`;t.fail$data((0,xa._)`${s} ${r} ${n}`)}};mf.default=cW});var Ix=w(ff=>{"use strict";Object.defineProperty(ff,"__esModule",{value:!0});var pW=pn(),dW=we(),kr=re(),hW={message:({schemaCode:t})=>(0,kr.str)`must match pattern "${t}"`,params:({schemaCode:t})=>(0,kr._)`{pattern: ${t}}`},gW={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:hW,code(t){let{gen:e,data:i,$data:n,schema:a,schemaCode:r,it:s}=t,o=s.opts.unicodeRegExp?"u":"";if(n){let{regExp:l}=s.opts.code,u=l.code==="new RegExp"?(0,kr._)`new RegExp`:(0,dW.useFunc)(e,l),c=e.let("valid");e.try(()=>e.assign(c,(0,kr._)`${u}(${r}, ${o}).test(${i})`),()=>e.assign(c,!1)),t.fail$data((0,kr._)`!${c}`)}else{let l=(0,pW.usePattern)(t,a);t.fail$data((0,kr._)`!${l}.test(${i})`)}}};ff.default=gW});var zx=w(wf=>{"use strict";Object.defineProperty(wf,"__esModule",{value:!0});var wo=re(),mW={message({keyword:t,schemaCode:e}){let i=t==="maxProperties"?"more":"fewer";return(0,wo.str)`must NOT have ${i} than ${e} properties`},params:({schemaCode:t})=>(0,wo._)`{limit: ${t}}`},fW={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:mW,code(t){let{keyword:e,data:i,schemaCode:n}=t,a=e==="maxProperties"?wo.operators.GT:wo.operators.LT;t.fail$data((0,wo._)`Object.keys(${i}).length ${a} ${n}`)}};wf.default=fW});var Dx=w(vf=>{"use strict";Object.defineProperty(vf,"__esModule",{value:!0});var vo=pn(),Co=re(),wW=we(),vW={message:({params:{missingProperty:t}})=>(0,Co.str)`must have required property '${t}'`,params:({params:{missingProperty:t}})=>(0,Co._)`{missingProperty: ${t}}`},CW={keyword:"required",type:"object",schemaType:"array",$data:!0,error:vW,code(t){let{gen:e,schema:i,schemaCode:n,data:a,$data:r,it:s}=t,{opts:o}=s;if(!r&&i.length===0)return;let l=i.length>=o.loopRequired;if(s.allErrors?u():c(),o.strictRequired){let h=t.parentSchema.properties,{definedProperties:g}=t.it;for(let m of i)if(h?.[m]===void 0&&!g.has(m)){let f=s.schemaEnv.baseId+s.errSchemaPath,v=`required property "${m}" is not defined at "${f}" (strictRequired)`;(0,wW.checkStrictMode)(s,v,s.opts.strictRequired)}}function u(){if(l||r)t.block$data(Co.nil,p);else for(let h of i)(0,vo.checkReportMissingProp)(t,h)}function c(){let h=e.let("missing");if(l||r){let g=e.let("valid",!0);t.block$data(g,()=>d(h,g)),t.ok(g)}else e.if((0,vo.checkMissingProp)(t,i,h)),(0,vo.reportMissingProp)(t,h),e.else()}function p(){e.forOf("prop",n,h=>{t.setParams({missingProperty:h}),e.if((0,vo.noPropertyInData)(e,a,h,o.ownProperties),()=>t.error())})}function d(h,g){t.setParams({missingProperty:h}),e.forOf(h,n,()=>{e.assign(g,(0,vo.propertyInData)(e,a,h,o.ownProperties)),e.if((0,Co.not)(g),()=>{t.error(),e.break()})},Co.nil)}}};vf.default=CW});var Gx=w(Cf=>{"use strict";Object.defineProperty(Cf,"__esModule",{value:!0});var Ao=re(),AW={message({keyword:t,schemaCode:e}){let i=t==="maxItems"?"more":"fewer";return(0,Ao.str)`must NOT have ${i} than ${e} items`},params:({schemaCode:t})=>(0,Ao._)`{limit: ${t}}`},bW={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:AW,code(t){let{keyword:e,data:i,schemaCode:n}=t,a=e==="maxItems"?Ao.operators.GT:Ao.operators.LT;t.fail$data((0,Ao._)`${i}.length ${a} ${n}`)}};Cf.default=bW});var ac=w(Af=>{"use strict";Object.defineProperty(Af,"__esModule",{value:!0});var $x=Um();$x.code='require("ajv/dist/runtime/equal").default';Af.default=$x});var Nx=w(yf=>{"use strict";Object.defineProperty(yf,"__esModule",{value:!0});var bf=ro(),Pi=re(),yW=we(),PW=ac(),jW={message:({params:{i:t,j:e}})=>(0,Pi.str)`must NOT have duplicate items (items ## ${e} and ${t} are identical)`,params:({params:{i:t,j:e}})=>(0,Pi._)`{i: ${t}, j: ${e}}`},SW={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:jW,code(t){let{gen:e,data:i,$data:n,schema:a,parentSchema:r,schemaCode:s,it:o}=t;if(!n&&!a)return;let l=e.let("valid"),u=r.items?(0,bf.getSchemaTypes)(r.items):[];t.block$data(l,c,(0,Pi._)`${s} === false`),t.ok(l);function c(){let g=e.let("i",(0,Pi._)`${i}.length`),m=e.let("j");t.setParams({i:g,j:m}),e.assign(l,!0),e.if((0,Pi._)`${g} > 1`,()=>(p()?d:h)(g,m))}function p(){return u.length>0&&!u.some(g=>g==="object"||g==="array")}function d(g,m){let f=e.name("item"),v=(0,bf.checkDataTypes)(u,f,o.opts.strictNumbers,bf.DataType.Wrong),y=e.const("indices",(0,Pi._)`{}`);e.for((0,Pi._)`;${g}--;`,()=>{e.let(f,(0,Pi._)`${i}[${g}]`),e.if(v,(0,Pi._)`continue`),u.length>1&&e.if((0,Pi._)`typeof ${f} == "string"`,(0,Pi._)`${f} += "_"`),e.if((0,Pi._)`typeof ${y}[${f}] == "number"`,()=>{e.assign(m,(0,Pi._)`${y}[${f}]`),t.error(),e.assign(l,!1).break()}).code((0,Pi._)`${y}[${f}] = ${g}`)})}function h(g,m){let f=(0,yW.useFunc)(e,PW.default),v=e.name("outer");e.label(v).for((0,Pi._)`;${g}--;`,()=>e.for((0,Pi._)`${m} = ${g}; ${m}--;`,()=>e.if((0,Pi._)`${f}(${i}[${g}], ${i}[${m}])`,()=>{t.error(),e.assign(l,!1).break(v)})))}}};yf.default=SW});var Ux=w(jf=>{"use strict";Object.defineProperty(jf,"__esModule",{value:!0});var Pf=re(),OW=we(),xW=ac(),TW={message:"must be equal to constant",params:({schemaCode:t})=>(0,Pf._)`{allowedValue: ${t}}`},MW={keyword:"const",$data:!0,error:TW,code(t){let{gen:e,data:i,$data:n,schemaCode:a,schema:r}=t;n||r&&typeof r=="object"?t.fail$data((0,Pf._)`!${(0,OW.useFunc)(e,xW.default)}(${i}, ${a})`):t.fail((0,Pf._)`${r} !== ${i}`)}};jf.default=MW});var Lx=w(Sf=>{"use strict";Object.defineProperty(Sf,"__esModule",{value:!0});var bo=re(),EW=we(),kW=ac(),qW={message:"must be equal to one of the allowed values",params:({schemaCode:t})=>(0,bo._)`{allowedValues: ${t}}`},_W={keyword:"enum",schemaType:"array",$data:!0,error:qW,code(t){let{gen:e,data:i,$data:n,schema:a,schemaCode:r,it:s}=t;if(!n&&a.length===0)throw new Error("enum must have non-empty array");let o=a.length>=s.opts.loopEnum,l,u=()=>l??(l=(0,EW.useFunc)(e,kW.default)),c;if(o||n)c=e.let("valid"),t.block$data(c,p);else{if(!Array.isArray(a))throw new Error("ajv implementation error");let h=e.const("vSchema",r);c=(0,bo.or)(...a.map((g,m)=>d(h,m)))}t.pass(c);function p(){e.assign(c,!1),e.forOf("v",r,h=>e.if((0,bo._)`${u()}(${i}, ${h})`,()=>e.assign(c,!0).break()))}function d(h,g){let m=a[g];return typeof m=="object"&&m!==null?(0,bo._)`${u()}(${i}, ${h}[${g}])`:(0,bo._)`${i} === ${m}`}}};Sf.default=_W});var Wx=w(Of=>{"use strict";Object.defineProperty(Of,"__esModule",{value:!0});var HW=kx(),RW=qx(),IW=Rx(),zW=Ix(),DW=zx(),GW=Dx(),$W=Gx(),NW=Nx(),UW=Ux(),LW=Lx(),WW=[HW.default,RW.default,IW.default,zW.default,DW.default,GW.default,$W.default,NW.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},UW.default,LW.default];Of.default=WW});var Tf=w(yo=>{"use strict";Object.defineProperty(yo,"__esModule",{value:!0});yo.validateAdditionalItems=void 0;var Ta=re(),xf=we(),BW={message:({params:{len:t}})=>(0,Ta.str)`must NOT have more than ${t} items`,params:({params:{len:t}})=>(0,Ta._)`{limit: ${t}}`},FW={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:BW,code(t){let{parentSchema:e,it:i}=t,{items:n}=e;if(!Array.isArray(n)){(0,xf.checkStrictMode)(i,'"additionalItems" is ignored when "items" is not an array of schemas');return}Bx(t,n)}};function Bx(t,e){let{gen:i,schema:n,data:a,keyword:r,it:s}=t;s.items=!0;let o=i.const("len",(0,Ta._)`${a}.length`);if(n===!1)t.setParams({len:e.length}),t.pass((0,Ta._)`${o} <= ${e.length}`);else if(typeof n=="object"&&!(0,xf.alwaysValidSchema)(s,n)){let u=i.var("valid",(0,Ta._)`${o} <= ${e.length}`);i.if((0,Ta.not)(u),()=>l(u)),t.ok(u)}function l(u){i.forRange("i",e.length,o,c=>{t.subschema({keyword:r,dataProp:c,dataPropType:xf.Type.Num},u),s.allErrors||i.if((0,Ta.not)(u),()=>i.break())})}}yo.validateAdditionalItems=Bx;yo.default=FW});var Mf=w(Po=>{"use strict";Object.defineProperty(Po,"__esModule",{value:!0});Po.validateTuple=void 0;var Fx=re(),rc=we(),VW=pn(),JW={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(t){let{schema:e,it:i}=t;if(Array.isArray(e))return Vx(t,"additionalItems",e);i.items=!0,!(0,rc.alwaysValidSchema)(i,e)&&t.ok((0,VW.validateArray)(t))}};function Vx(t,e,i=t.schema){let{gen:n,parentSchema:a,data:r,keyword:s,it:o}=t;c(a),o.opts.unevaluated&&i.length&&o.items!==!0&&(o.items=rc.mergeEvaluated.items(n,i.length,o.items));let l=n.name("valid"),u=n.const("len",(0,Fx._)`${r}.length`);i.forEach((p,d)=>{(0,rc.alwaysValidSchema)(o,p)||(n.if((0,Fx._)`${u} > ${d}`,()=>t.subschema({keyword:s,schemaProp:d,dataProp:d},l)),t.ok(l))});function c(p){let{opts:d,errSchemaPath:h}=o,g=i.length,m=g===p.minItems&&(g===p.maxItems||p[e]===!1);if(d.strictTuples&&!m){let f=`"${s}" is ${g}-tuple, but minItems or maxItems/${e} are not specified or different at path "${h}"`;(0,rc.checkStrictMode)(o,f,d.strictTuples)}}}Po.validateTuple=Vx;Po.default=JW});var Jx=w(Ef=>{"use strict";Object.defineProperty(Ef,"__esModule",{value:!0});var ZW=Mf(),KW={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:t=>(0,ZW.validateTuple)(t,"items")};Ef.default=KW});var Kx=w(kf=>{"use strict";Object.defineProperty(kf,"__esModule",{value:!0});var Zx=re(),QW=we(),YW=pn(),XW=Tf(),eB={message:({params:{len:t}})=>(0,Zx.str)`must NOT have more than ${t} items`,params:({params:{len:t}})=>(0,Zx._)`{limit: ${t}}`},iB={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:eB,code(t){let{schema:e,parentSchema:i,it:n}=t,{prefixItems:a}=i;n.items=!0,!(0,QW.alwaysValidSchema)(n,e)&&(a?(0,XW.validateAdditionalItems)(t,a):t.ok((0,YW.validateArray)(t)))}};kf.default=iB});var Qx=w(qf=>{"use strict";Object.defineProperty(qf,"__esModule",{value:!0});var hn=re(),sc=we(),nB={message:({params:{min:t,max:e}})=>e===void 0?(0,hn.str)`must contain at least ${t} valid item(s)`:(0,hn.str)`must contain at least ${t} and no more than ${e} valid item(s)`,params:({params:{min:t,max:e}})=>e===void 0?(0,hn._)`{minContains: ${t}}`:(0,hn._)`{minContains: ${t}, maxContains: ${e}}`},tB={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:nB,code(t){let{gen:e,schema:i,parentSchema:n,data:a,it:r}=t,s,o,{minContains:l,maxContains:u}=n;r.opts.next?(s=l===void 0?1:l,o=u):s=1;let c=e.const("len",(0,hn._)`${a}.length`);if(t.setParams({min:s,max:o}),o===void 0&&s===0){(0,sc.checkStrictMode)(r,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(o!==void 0&&s>o){(0,sc.checkStrictMode)(r,'"minContains" > "maxContains" is always invalid'),t.fail();return}if((0,sc.alwaysValidSchema)(r,i)){let m=(0,hn._)`${c} >= ${s}`;o!==void 0&&(m=(0,hn._)`${m} && ${c} <= ${o}`),t.pass(m);return}r.items=!0;let p=e.name("valid");o===void 0&&s===1?h(p,()=>e.if(p,()=>e.break())):s===0?(e.let(p,!0),o!==void 0&&e.if((0,hn._)`${a}.length > 0`,d)):(e.let(p,!1),d()),t.result(p,()=>t.reset());function d(){let m=e.name("_valid"),f=e.let("count",0);h(m,()=>e.if(m,()=>g(f)))}function h(m,f){e.forRange("i",0,c,v=>{t.subschema({keyword:"contains",dataProp:v,dataPropType:sc.Type.Num,compositeRule:!0},m),f()})}function g(m){e.code((0,hn._)`${m}++`),o===void 0?e.if((0,hn._)`${m} >= ${s}`,()=>e.assign(p,!0).break()):(e.if((0,hn._)`${m} > ${o}`,()=>e.assign(p,!1).break()),s===1?e.assign(p,!0):e.if((0,hn._)`${m} >= ${s}`,()=>e.assign(p,!0)))}}};qf.default=tB});var eT=w(Dn=>{"use strict";Object.defineProperty(Dn,"__esModule",{value:!0});Dn.validateSchemaDeps=Dn.validatePropertyDeps=Dn.error=void 0;var _f=re(),aB=we(),jo=pn();Dn.error={message:({params:{property:t,depsCount:e,deps:i}})=>{let n=e===1?"property":"properties";return(0,_f.str)`must have ${n} ${i} when property ${t} is present`},params:({params:{property:t,depsCount:e,deps:i,missingProperty:n}})=>(0,_f._)`{property: ${t}, + || ${s} === "boolean" || ${a} === null`).assign(o,(0,te._)`[${a}]`)}}}function xN({gen:t,parentData:e,parentDataProperty:i},n){t.if((0,te._)`${e} !== undefined`,()=>t.assign((0,te._)`${e}[${i}]`,n))}function Im(t,e,i,n=jr.Correct){let a=n===jr.Correct?te.operators.EQ:te.operators.NEQ,r;switch(t){case"null":return(0,te._)`${e} ${a} null`;case"array":r=(0,te._)`Array.isArray(${e})`;break;case"object":r=(0,te._)`${e} && typeof ${e} == "object" && !Array.isArray(${e})`;break;case"integer":r=s((0,te._)`!(${e} % 1) && !isNaN(${e})`);break;case"number":r=s();break;default:return(0,te._)`typeof ${e} ${a} ${t}`}return n===jr.Correct?r:(0,te.not)(r);function s(o=te.nil){return(0,te.and)((0,te._)`typeof ${e} == "number"`,o,i?(0,te._)`isFinite(${e})`:te.nil)}}Ei.checkDataType=Im;function zm(t,e,i,n){if(t.length===1)return Im(t[0],e,i,n);let a,r=(0,vO.toHash)(t);if(r.array&&r.object){let s=(0,te._)`typeof ${e} != "object"`;a=r.null?s:(0,te._)`!${e} || ${s}`,delete r.null,delete r.array,delete r.object}else a=te.nil;r.number&&delete r.integer;for(let s in r)a=(0,te.and)(a,Im(s,e,i,n));return a}Ei.checkDataTypes=zm;var TN={message:({schema:t})=>`must be ${t}`,params:({schema:t,schemaValue:e})=>typeof t=="string"?(0,te._)`{type: ${t}}`:(0,te._)`{type: ${e}}`};function Dm(t){let e=MN(t);(0,yN.reportError)(e,TN)}Ei.reportTypeError=Dm;function MN(t){let{gen:e,data:i,schema:n}=t,a=(0,vO.schemaRefOrVal)(t,n,"type");return{gen:e,keyword:"type",data:i,schema:n.type,schemaCode:a,schemaValue:a,parentSchema:n,params:{},it:t}}});var yO=w(Lu=>{"use strict";Object.defineProperty(Lu,"__esModule",{value:!0});Lu.assignDefaults=void 0;var Sr=re(),EN=we();function kN(t,e){let{properties:i,items:n}=t.schema;if(e==="object"&&i)for(let a in i)bO(t,a,i[a].default);else e==="array"&&Array.isArray(n)&&n.forEach((a,r)=>bO(t,r,a.default))}Lu.assignDefaults=kN;function bO(t,e,i){let{gen:n,compositeRule:a,data:r,opts:s}=t;if(i===void 0)return;let o=(0,Sr._)`${r}${(0,Sr.getProperty)(e)}`;if(a){(0,EN.checkStrictMode)(t,`default is ignored for: ${o}`);return}let l=(0,Sr._)`${o} === undefined`;s.useDefaults==="empty"&&(l=(0,Sr._)`${l} || ${o} === null || ${o} === ""`),n.if(l,(0,Sr._)`${o} = ${(0,Sr.stringify)(i)}`)}});var pn=w(Ee=>{"use strict";Object.defineProperty(Ee,"__esModule",{value:!0});Ee.validateUnion=Ee.validateArray=Ee.usePattern=Ee.callValidateCode=Ee.schemaProperties=Ee.allSchemaProperties=Ee.noPropertyInData=Ee.propertyInData=Ee.isOwnProperty=Ee.hasPropFunc=Ee.reportMissingProp=Ee.checkMissingProp=Ee.checkReportMissingProp=void 0;var Ne=re(),Gm=we(),Mt=st(),qN=we();function _N(t,e){let{gen:i,data:n,it:a}=t;i.if(Nm(i,n,e,a.opts.ownProperties),()=>{t.setParams({missingProperty:(0,Ne._)`${e}`},!0),t.error()})}Ee.checkReportMissingProp=_N;function HN({gen:t,data:e,it:{opts:i}},n,a){return(0,Ne.or)(...n.map(r=>(0,Ne.and)(Nm(t,e,r,i.ownProperties),(0,Ne._)`${a} = ${r}`)))}Ee.checkMissingProp=HN;function RN(t,e){t.setParams({missingProperty:e},!0),t.error()}Ee.reportMissingProp=RN;function PO(t){return t.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,Ne._)`Object.prototype.hasOwnProperty`})}Ee.hasPropFunc=PO;function $m(t,e,i){return(0,Ne._)`${PO(t)}.call(${e}, ${i})`}Ee.isOwnProperty=$m;function IN(t,e,i,n){let a=(0,Ne._)`${e}${(0,Ne.getProperty)(i)} !== undefined`;return n?(0,Ne._)`${a} && ${$m(t,e,i)}`:a}Ee.propertyInData=IN;function Nm(t,e,i,n){let a=(0,Ne._)`${e}${(0,Ne.getProperty)(i)} === undefined`;return n?(0,Ne.or)(a,(0,Ne.not)($m(t,e,i))):a}Ee.noPropertyInData=Nm;function jO(t){return t?Object.keys(t).filter(e=>e!=="__proto__"):[]}Ee.allSchemaProperties=jO;function zN(t,e){return jO(e).filter(i=>!(0,Gm.alwaysValidSchema)(t,e[i]))}Ee.schemaProperties=zN;function DN({schemaCode:t,data:e,it:{gen:i,topSchemaRef:n,schemaPath:a,errorPath:r},it:s},o,l,u){let c=u?(0,Ne._)`${t}, ${e}, ${n}${a}`:e,p=[[Mt.default.instancePath,(0,Ne.strConcat)(Mt.default.instancePath,r)],[Mt.default.parentData,s.parentData],[Mt.default.parentDataProperty,s.parentDataProperty],[Mt.default.rootData,Mt.default.rootData]];s.opts.dynamicRef&&p.push([Mt.default.dynamicAnchors,Mt.default.dynamicAnchors]);let d=(0,Ne._)`${c}, ${i.object(...p)}`;return l!==Ne.nil?(0,Ne._)`${o}.call(${l}, ${d})`:(0,Ne._)`${o}(${d})`}Ee.callValidateCode=DN;var GN=(0,Ne._)`new RegExp`;function $N({gen:t,it:{opts:e}},i){let n=e.unicodeRegExp?"u":"",{regExp:a}=e.code,r=a(i,n);return t.scopeValue("pattern",{key:r.toString(),ref:r,code:(0,Ne._)`${a.code==="new RegExp"?GN:(0,qN.useFunc)(t,a)}(${i}, ${n})`})}Ee.usePattern=$N;function NN(t){let{gen:e,data:i,keyword:n,it:a}=t,r=e.name("valid");if(a.allErrors){let o=e.let("valid",!0);return s(()=>e.assign(o,!1)),o}return e.var(r,!0),s(()=>e.break()),r;function s(o){let l=e.const("len",(0,Ne._)`${i}.length`);e.forRange("i",0,l,u=>{t.subschema({keyword:n,dataProp:u,dataPropType:Gm.Type.Num},r),e.if((0,Ne.not)(r),o)})}}Ee.validateArray=NN;function UN(t){let{gen:e,schema:i,keyword:n,it:a}=t;if(!Array.isArray(i))throw new Error("ajv implementation error");if(i.some(l=>(0,Gm.alwaysValidSchema)(a,l))&&!a.opts.unevaluated)return;let s=e.let("valid",!1),o=e.name("_valid");e.block(()=>i.forEach((l,u)=>{let c=t.subschema({keyword:n,schemaProp:u,compositeRule:!0},o);e.assign(s,(0,Ne._)`${s} || ${o}`),t.mergeValidEvaluated(c,o)||e.if((0,Ne.not)(s))})),t.result(s,()=>t.reset(),()=>t.error(!0))}Ee.validateUnion=UN});var xO=w(In=>{"use strict";Object.defineProperty(In,"__esModule",{value:!0});In.validateKeywordUsage=In.validSchemaType=In.funcKeywordCode=In.macroKeywordCode=void 0;var Ri=re(),Pa=st(),LN=pn(),WN=ao();function BN(t,e){let{gen:i,keyword:n,schema:a,parentSchema:r,it:s}=t,o=e.macro.call(s.self,a,r,s),l=OO(i,n,o);s.opts.validateSchema!==!1&&s.self.validateSchema(o,!0);let u=i.name("valid");t.subschema({schema:o,schemaPath:Ri.nil,errSchemaPath:`${s.errSchemaPath}/${n}`,topSchemaRef:l,compositeRule:!0},u),t.pass(u,()=>t.error(!0))}In.macroKeywordCode=BN;function FN(t,e){var i;let{gen:n,keyword:a,schema:r,parentSchema:s,$data:o,it:l}=t;JN(l,e);let u=!o&&e.compile?e.compile.call(l.self,r,s,l):e.validate,c=OO(n,a,u),p=n.let("valid");t.block$data(p,d),t.ok((i=e.valid)!==null&&i!==void 0?i:p);function d(){if(e.errors===!1)m(),e.modifying&&SO(t),f(()=>t.error());else{let v=e.async?h():g();e.modifying&&SO(t),f(()=>VN(t,v))}}function h(){let v=n.let("ruleErrs",null);return n.try(()=>m((0,Ri._)`await `),y=>n.assign(p,!1).if((0,Ri._)`${y} instanceof ${l.ValidationError}`,()=>n.assign(v,(0,Ri._)`${y}.errors`),()=>n.throw(y))),v}function g(){let v=(0,Ri._)`${c}.errors`;return n.assign(v,null),m(Ri.nil),v}function m(v=e.async?(0,Ri._)`await `:Ri.nil){let y=l.opts.passContext?Pa.default.this:Pa.default.self,A=!("compile"in e&&!o||e.schema===!1);n.assign(p,(0,Ri._)`${v}${(0,LN.callValidateCode)(t,c,y,A)}`,e.modifying)}function f(v){var y;n.if((0,Ri.not)((y=e.valid)!==null&&y!==void 0?y:p),v)}}In.funcKeywordCode=FN;function SO(t){let{gen:e,data:i,it:n}=t;e.if(n.parentData,()=>e.assign(i,(0,Ri._)`${n.parentData}[${n.parentDataProperty}]`))}function VN(t,e){let{gen:i}=t;i.if((0,Ri._)`Array.isArray(${e})`,()=>{i.assign(Pa.default.vErrors,(0,Ri._)`${Pa.default.vErrors} === null ? ${e} : ${Pa.default.vErrors}.concat(${e})`).assign(Pa.default.errors,(0,Ri._)`${Pa.default.vErrors}.length`),(0,WN.extendErrors)(t)},()=>t.error())}function JN({schemaEnv:t},e){if(e.async&&!t.$async)throw new Error("async keyword in sync schema")}function OO(t,e,i){if(i===void 0)throw new Error(`keyword "${e}" failed to compile`);return t.scopeValue("keyword",typeof i=="function"?{ref:i}:{ref:i,code:(0,Ri.stringify)(i)})}function ZN(t,e,i=!1){return!e.length||e.some(n=>n==="array"?Array.isArray(t):n==="object"?t&&typeof t=="object"&&!Array.isArray(t):typeof t==n||i&&typeof t>"u")}In.validSchemaType=ZN;function KN({schema:t,opts:e,self:i,errSchemaPath:n},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 "${n}": `+i.errorsText(a.validateSchema.errors);if(e.validateSchema==="log")i.logger.error(l);else throw new Error(l)}}In.validateKeywordUsage=KN});var MO=w(Et=>{"use strict";Object.defineProperty(Et,"__esModule",{value:!0});Et.extendSubschemaMode=Et.extendSubschemaData=Et.getSubschema=void 0;var zn=re(),TO=we();function QN(t,{keyword:e,schemaProp:i,schema:n,schemaPath:a,errSchemaPath:r,topSchemaRef:s}){if(e!==void 0&&n!==void 0)throw new Error('both "keyword" and "schema" passed, only one allowed');if(e!==void 0){let o=t.schema[e];return i===void 0?{schema:o,schemaPath:(0,zn._)`${t.schemaPath}${(0,zn.getProperty)(e)}`,errSchemaPath:`${t.errSchemaPath}/${e}`}:{schema:o[i],schemaPath:(0,zn._)`${t.schemaPath}${(0,zn.getProperty)(e)}${(0,zn.getProperty)(i)}`,errSchemaPath:`${t.errSchemaPath}/${e}/${(0,TO.escapeFragment)(i)}`}}if(n!==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:n,schemaPath:a,topSchemaRef:s,errSchemaPath:r}}throw new Error('either "keyword" or "schema" must be passed')}Et.getSubschema=QN;function YN(t,e,{dataProp:i,dataPropType:n,data:a,dataTypes:r,propertyName:s}){if(a!==void 0&&i!==void 0)throw new Error('both "data" and "dataProp" passed, only one allowed');let{gen:o}=e;if(i!==void 0){let{errorPath:u,dataPathArr:c,opts:p}=e,d=o.let("data",(0,zn._)`${e.data}${(0,zn.getProperty)(i)}`,!0);l(d),t.errorPath=(0,zn.str)`${u}${(0,TO.getErrorPath)(i,n,p.jsPropertySyntax)}`,t.parentDataProperty=(0,zn._)`${i}`,t.dataPathArr=[...c,t.parentDataProperty]}if(a!==void 0){let u=a instanceof zn.Name?a:o.let("data",a,!0);l(u),s!==void 0&&(t.propertyName=s)}r&&(t.dataTypes=r);function l(u){t.data=u,t.dataLevel=e.dataLevel+1,t.dataTypes=[],e.definedProperties=new Set,t.parentData=e.data,t.dataNames=[...e.dataNames,u]}}Et.extendSubschemaData=YN;function XN(t,{jtdDiscriminator:e,jtdMetadata:i,compositeRule:n,createErrors:a,allErrors:r}){n!==void 0&&(t.compositeRule=n),a!==void 0&&(t.createErrors=a),r!==void 0&&(t.allErrors=r),t.jtdDiscriminator=e,t.jtdMetadata=i}Et.extendSubschemaMode=XN});var Um=w((Oae,EO)=>{"use strict";EO.exports=function t(e,i){if(e===i)return!0;if(e&&i&&typeof e=="object"&&typeof i=="object"){if(e.constructor!==i.constructor)return!1;var n,a,r;if(Array.isArray(e)){if(n=e.length,n!=i.length)return!1;for(a=n;a--!==0;)if(!t(e[a],i[a]))return!1;return!0}if(e.constructor===RegExp)return e.source===i.source&&e.flags===i.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===i.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===i.toString();if(r=Object.keys(e),n=r.length,n!==Object.keys(i).length)return!1;for(a=n;a--!==0;)if(!Object.prototype.hasOwnProperty.call(i,r[a]))return!1;for(a=n;a--!==0;){var s=r[a];if(!t(e[s],i[s]))return!1}return!0}return e!==e&&i!==i}});var qO=w((xae,kO)=>{"use strict";var kt=kO.exports=function(t,e,i){typeof e=="function"&&(i=e,e={}),i=e.cb||i;var n=typeof i=="function"?i:i.pre||function(){},a=i.post||function(){};Wu(e,n,a,t,"",t)};kt.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0};kt.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0};kt.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0};kt.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 Wu(t,e,i,n,a,r,s,o,l,u){if(n&&typeof n=="object"&&!Array.isArray(n)){e(n,a,r,s,o,l,u);for(var c in n){var p=n[c];if(Array.isArray(p)){if(c in kt.arrayKeywords)for(var d=0;d{"use strict";Object.defineProperty(Ui,"__esModule",{value:!0});Ui.getSchemaRefs=Ui.resolveUrl=Ui.normalizeId=Ui._getFullPath=Ui.getFullPath=Ui.inlineRef=void 0;var iU=we(),nU=Um(),tU=qO(),aU=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function rU(t,e=!0){return typeof t=="boolean"?!0:e===!0?!Lm(t):e?_O(t)<=e:!1}Ui.inlineRef=rU;var sU=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function Lm(t){for(let e in t){if(sU.has(e))return!0;let i=t[e];if(Array.isArray(i)&&i.some(Lm)||typeof i=="object"&&Lm(i))return!0}return!1}function _O(t){let e=0;for(let i in t){if(i==="$ref")return 1/0;if(e++,!aU.has(i)&&(typeof t[i]=="object"&&(0,iU.eachItem)(t[i],n=>e+=_O(n)),e===1/0))return 1/0}return e}function HO(t,e="",i){i!==!1&&(e=Or(e));let n=t.parse(e);return RO(t,n)}Ui.getFullPath=HO;function RO(t,e){return t.serialize(e).split("#")[0]+"#"}Ui._getFullPath=RO;var oU=/#\/?$/;function Or(t){return t?t.replace(oU,""):""}Ui.normalizeId=Or;function lU(t,e,i){return i=Or(i),t.resolve(e,i)}Ui.resolveUrl=lU;var uU=/^[a-z_][-a-z0-9._]*$/i;function cU(t,e){if(typeof t=="boolean")return{};let{schemaId:i,uriResolver:n}=this.opts,a=Or(t[i]||e),r={"":a},s=HO(n,a,!1),o={},l=new Set;return tU(t,{allKeys:!0},(p,d,h,g)=>{if(g===void 0)return;let m=s+d,f=r[g];typeof p[i]=="string"&&(f=v.call(this,p[i])),y.call(this,p.$anchor),y.call(this,p.$dynamicAnchor),r[d]=f;function v(A){let b=this.opts.uriResolver.resolve;if(A=Or(f?b(f,A):A),l.has(A))throw c(A);l.add(A);let O=this.refs[A];return typeof O=="string"&&(O=this.refs[O]),typeof O=="object"?u(p,O.schema,A):A!==Or(m)&&(A[0]==="#"?(u(p,o[A],A),o[A]=p):this.refs[A]=m),A}function y(A){if(typeof A=="string"){if(!uU.test(A))throw new Error(`invalid anchor "${A}"`);v.call(this,`#${A}`)}}}),o;function u(p,d,h){if(d!==void 0&&!nU(p,d))throw c(h)}function c(p){return new Error(`reference "${p}" resolves to more than one schema`)}}Ui.getSchemaRefs=cU});var uo=w(qt=>{"use strict";Object.defineProperty(qt,"__esModule",{value:!0});qt.getData=qt.KeywordCxt=qt.validateFunctionCode=void 0;var $O=mO(),IO=ro(),Bm=Rm(),Bu=ro(),pU=yO(),lo=xO(),Wm=MO(),B=re(),ee=st(),dU=so(),ot=we(),oo=ao();function hU(t){if(LO(t)&&(WO(t),UO(t))){fU(t);return}NO(t,()=>(0,$O.topBoolOrEmptySchema)(t))}qt.validateFunctionCode=hU;function NO({gen:t,validateName:e,schema:i,schemaEnv:n,opts:a},r){a.code.es5?t.func(e,(0,B._)`${ee.default.data}, ${ee.default.valCxt}`,n.$async,()=>{t.code((0,B._)`"use strict"; ${zO(i,a)}`),mU(t,a),t.code(r)}):t.func(e,(0,B._)`${ee.default.data}, ${gU(a)}`,n.$async,()=>t.code(zO(i,a)).code(r))}function gU(t){return(0,B._)`{${ee.default.instancePath}="", ${ee.default.parentData}, ${ee.default.parentDataProperty}, ${ee.default.rootData}=${ee.default.data}${t.dynamicRef?(0,B._)`, ${ee.default.dynamicAnchors}={}`:B.nil}}={}`}function mU(t,e){t.if(ee.default.valCxt,()=>{t.var(ee.default.instancePath,(0,B._)`${ee.default.valCxt}.${ee.default.instancePath}`),t.var(ee.default.parentData,(0,B._)`${ee.default.valCxt}.${ee.default.parentData}`),t.var(ee.default.parentDataProperty,(0,B._)`${ee.default.valCxt}.${ee.default.parentDataProperty}`),t.var(ee.default.rootData,(0,B._)`${ee.default.valCxt}.${ee.default.rootData}`),e.dynamicRef&&t.var(ee.default.dynamicAnchors,(0,B._)`${ee.default.valCxt}.${ee.default.dynamicAnchors}`)},()=>{t.var(ee.default.instancePath,(0,B._)`""`),t.var(ee.default.parentData,(0,B._)`undefined`),t.var(ee.default.parentDataProperty,(0,B._)`undefined`),t.var(ee.default.rootData,ee.default.data),e.dynamicRef&&t.var(ee.default.dynamicAnchors,(0,B._)`{}`)})}function fU(t){let{schema:e,opts:i,gen:n}=t;NO(t,()=>{i.$comment&&e.$comment&&FO(t),bU(t),n.let(ee.default.vErrors,null),n.let(ee.default.errors,0),i.unevaluated&&wU(t),BO(t),jU(t)})}function wU(t){let{gen:e,validateName:i}=t;t.evaluated=e.const("evaluated",(0,B._)`${i}.evaluated`),e.if((0,B._)`${t.evaluated}.dynamicProps`,()=>e.assign((0,B._)`${t.evaluated}.props`,(0,B._)`undefined`)),e.if((0,B._)`${t.evaluated}.dynamicItems`,()=>e.assign((0,B._)`${t.evaluated}.items`,(0,B._)`undefined`))}function zO(t,e){let i=typeof t=="object"&&t[e.schemaId];return i&&(e.code.source||e.code.process)?(0,B._)`/*# sourceURL=${i} */`:B.nil}function vU(t,e){if(LO(t)&&(WO(t),UO(t))){CU(t,e);return}(0,$O.boolOrEmptySchema)(t,e)}function UO({schema:t,self:e}){if(typeof t=="boolean")return!t;for(let i in t)if(e.RULES.all[i])return!0;return!1}function LO(t){return typeof t.schema!="boolean"}function CU(t,e){let{schema:i,gen:n,opts:a}=t;a.$comment&&i.$comment&&FO(t),yU(t),PU(t);let r=n.const("_errs",ee.default.errors);BO(t,r),n.var(e,(0,B._)`${r} === ${ee.default.errors}`)}function WO(t){(0,ot.checkUnknownRules)(t),AU(t)}function BO(t,e){if(t.opts.jtd)return DO(t,[],!1,e);let i=(0,IO.getSchemaTypes)(t.schema),n=(0,IO.coerceAndCheckDataType)(t,i);DO(t,i,!n,e)}function AU(t){let{schema:e,errSchemaPath:i,opts:n,self:a}=t;e.$ref&&n.ignoreKeywordsWithRef&&(0,ot.schemaHasRulesButRef)(e,a.RULES)&&a.logger.warn(`$ref: keywords ignored in schema at path "${i}"`)}function bU(t){let{schema:e,opts:i}=t;e.default!==void 0&&i.useDefaults&&i.strictSchema&&(0,ot.checkStrictMode)(t,"default is ignored in the schema root")}function yU(t){let e=t.schema[t.opts.schemaId];e&&(t.baseId=(0,dU.resolveUrl)(t.opts.uriResolver,t.baseId,e))}function PU(t){if(t.schema.$async&&!t.schemaEnv.$async)throw new Error("async schema in sync schema")}function FO({gen:t,schemaEnv:e,schema:i,errSchemaPath:n,opts:a}){let r=i.$comment;if(a.$comment===!0)t.code((0,B._)`${ee.default.self}.logger.log(${r})`);else if(typeof a.$comment=="function"){let s=(0,B.str)`${n}/$comment`,o=t.scopeValue("root",{ref:e.root});t.code((0,B._)`${ee.default.self}.opts.$comment(${r}, ${s}, ${o}.schema)`)}}function jU(t){let{gen:e,schemaEnv:i,validateName:n,ValidationError:a,opts:r}=t;i.$async?e.if((0,B._)`${ee.default.errors} === 0`,()=>e.return(ee.default.data),()=>e.throw((0,B._)`new ${a}(${ee.default.vErrors})`)):(e.assign((0,B._)`${n}.errors`,ee.default.vErrors),r.unevaluated&&SU(t),e.return((0,B._)`${ee.default.errors} === 0`))}function SU({gen:t,evaluated:e,props:i,items:n}){i instanceof B.Name&&t.assign((0,B._)`${e}.props`,i),n instanceof B.Name&&t.assign((0,B._)`${e}.items`,n)}function DO(t,e,i,n){let{gen:a,schema:r,data:s,allErrors:o,opts:l,self:u}=t,{RULES:c}=u;if(r.$ref&&(l.ignoreKeywordsWithRef||!(0,ot.schemaHasRulesButRef)(r,c))){a.block(()=>JO(t,"$ref",c.all.$ref.definition));return}l.jtd||OU(t,e),a.block(()=>{for(let d of c.rules)p(d);p(c.post)});function p(d){(0,Bm.shouldUseGroup)(r,d)&&(d.type?(a.if((0,Bu.checkDataType)(d.type,s,l.strictNumbers)),GO(t,d),e.length===1&&e[0]===d.type&&i&&(a.else(),(0,Bu.reportTypeError)(t)),a.endIf()):GO(t,d),o||a.if((0,B._)`${ee.default.errors} === ${n||0}`))}}function GO(t,e){let{gen:i,schema:n,opts:{useDefaults:a}}=t;a&&(0,pU.assignDefaults)(t,e.type),i.block(()=>{for(let r of e.rules)(0,Bm.shouldUseRule)(n,r)&&JO(t,r.keyword,r.definition,e.type)})}function OU(t,e){t.schemaEnv.meta||!t.opts.strictTypes||(xU(t,e),t.opts.allowUnionTypes||TU(t,e),MU(t,t.dataTypes))}function xU(t,e){if(e.length){if(!t.dataTypes.length){t.dataTypes=e;return}e.forEach(i=>{VO(t.dataTypes,i)||Fm(t,`type "${i}" not allowed by context "${t.dataTypes.join(",")}"`)}),kU(t,e)}}function TU(t,e){e.length>1&&!(e.length===2&&e.includes("null"))&&Fm(t,"use allowUnionTypes to allow union type keyword")}function MU(t,e){let i=t.self.RULES.all;for(let n in i){let a=i[n];if(typeof a=="object"&&(0,Bm.shouldUseRule)(t.schema,a)){let{type:r}=a.definition;r.length&&!r.some(s=>EU(e,s))&&Fm(t,`missing type "${r.join(",")}" for keyword "${n}"`)}}}function EU(t,e){return t.includes(e)||e==="number"&&t.includes("integer")}function VO(t,e){return t.includes(e)||e==="integer"&&t.includes("number")}function kU(t,e){let i=[];for(let n of t.dataTypes)VO(e,n)?i.push(n):e.includes("integer")&&n==="number"&&i.push("integer");t.dataTypes=i}function Fm(t,e){let i=t.schemaEnv.baseId+t.errSchemaPath;e+=` at "${i}" (strictTypes)`,(0,ot.checkStrictMode)(t,e,t.opts.strictTypes)}var Fu=class{constructor(e,i,n){if((0,lo.validateKeywordUsage)(e,i,n),this.gen=e.gen,this.allErrors=e.allErrors,this.keyword=n,this.data=e.data,this.schema=e.schema[n],this.$data=i.$data&&e.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,ot.schemaRefOrVal)(e,this.schema,n,this.$data),this.schemaType=i.schemaType,this.parentSchema=e.schema,this.params={},this.it=e,this.def=i,this.$data)this.schemaCode=e.gen.const("vSchema",ZO(this.$data,e));else if(this.schemaCode=this.schemaValue,!(0,lo.validSchemaType)(this.schema,i.schemaType,i.allowUndefined))throw new Error(`${n} value must be ${JSON.stringify(i.schemaType)}`);("code"in i?i.trackErrors:i.errors!==!1)&&(this.errsCount=e.gen.const("_errs",ee.default.errors))}result(e,i,n){this.failResult((0,B.not)(e),i,n)}failResult(e,i,n){this.gen.if(e),n?n():this.error(),i?(this.gen.else(),i(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(e,i){this.failResult((0,B.not)(e),void 0,i)}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:i}=this;this.fail((0,B._)`${i} !== undefined && (${(0,B.or)(this.invalid$data(),e)})`)}error(e,i,n){if(i){this.setParams(i),this._error(e,n),this.setParams({});return}this._error(e,n)}_error(e,i){(e?oo.reportExtraError:oo.reportError)(this,this.def.error,i)}$dataError(){(0,oo.reportError)(this,this.def.$dataError||oo.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');(0,oo.resetErrorsCount)(this.gen,this.errsCount)}ok(e){this.allErrors||this.gen.if(e)}setParams(e,i){i?Object.assign(this.params,e):this.params=e}block$data(e,i,n=B.nil){this.gen.block(()=>{this.check$data(e,n),i()})}check$data(e=B.nil,i=B.nil){if(!this.$data)return;let{gen:n,schemaCode:a,schemaType:r,def:s}=this;n.if((0,B.or)((0,B._)`${a} === undefined`,i)),e!==B.nil&&n.assign(e,!0),(r.length||s.validateSchema)&&(n.elseIf(this.invalid$data()),this.$dataError(),e!==B.nil&&n.assign(e,!1)),n.else()}invalid$data(){let{gen:e,schemaCode:i,schemaType:n,def:a,it:r}=this;return(0,B.or)(s(),o());function s(){if(n.length){if(!(i instanceof B.Name))throw new Error("ajv implementation error");let l=Array.isArray(n)?n:[n];return(0,B._)`${(0,Bu.checkDataTypes)(l,i,r.opts.strictNumbers,Bu.DataType.Wrong)}`}return B.nil}function o(){if(a.validateSchema){let l=e.scopeValue("validate$data",{ref:a.validateSchema});return(0,B._)`!${l}(${i})`}return B.nil}}subschema(e,i){let n=(0,Wm.getSubschema)(this.it,e);(0,Wm.extendSubschemaData)(n,this.it,e),(0,Wm.extendSubschemaMode)(n,e);let a={...this.it,...n,items:void 0,props:void 0};return vU(a,i),a}mergeEvaluated(e,i){let{it:n,gen:a}=this;n.opts.unevaluated&&(n.props!==!0&&e.props!==void 0&&(n.props=ot.mergeEvaluated.props(a,e.props,n.props,i)),n.items!==!0&&e.items!==void 0&&(n.items=ot.mergeEvaluated.items(a,e.items,n.items,i)))}mergeValidEvaluated(e,i){let{it:n,gen:a}=this;if(n.opts.unevaluated&&(n.props!==!0||n.items!==!0))return a.if(i,()=>this.mergeEvaluated(e,B.Name)),!0}};qt.KeywordCxt=Fu;function JO(t,e,i,n){let a=new Fu(t,i,e);"code"in i?i.code(a,n):a.$data&&i.validate?(0,lo.funcKeywordCode)(a,i):"macro"in i?(0,lo.macroKeywordCode)(a,i):(i.compile||i.validate)&&(0,lo.funcKeywordCode)(a,i)}var qU=/^\/(?:[^~]|~0|~1)*$/,_U=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function ZO(t,{dataLevel:e,dataNames:i,dataPathArr:n}){let a,r;if(t==="")return ee.default.rootData;if(t[0]==="/"){if(!qU.test(t))throw new Error(`Invalid JSON-pointer: ${t}`);a=t,r=ee.default.rootData}else{let u=_U.exec(t);if(!u)throw new Error(`Invalid JSON-pointer: ${t}`);let c=+u[1];if(a=u[2],a==="#"){if(c>=e)throw new Error(l("property/index",c));return n[e-c]}if(c>e)throw new Error(l("data",c));if(r=i[e-c],!a)return r}let s=r,o=a.split("/");for(let u of o)u&&(r=(0,B._)`${r}${(0,B.getProperty)((0,ot.unescapeJsonPointer)(u))}`,s=(0,B._)`${s} && ${r}`);return s;function l(u,c){return`Cannot access ${u} ${c} levels up, current level is ${e}`}}qt.getData=ZO});var Vu=w(Jm=>{"use strict";Object.defineProperty(Jm,"__esModule",{value:!0});var Vm=class extends Error{constructor(e){super("validation failed"),this.errors=e,this.ajv=this.validation=!0}};Jm.default=Vm});var co=w(Qm=>{"use strict";Object.defineProperty(Qm,"__esModule",{value:!0});var Zm=so(),Km=class extends Error{constructor(e,i,n,a){super(a||`can't resolve reference ${n} from id ${i}`),this.missingRef=(0,Zm.resolveUrl)(e,i,n),this.missingSchema=(0,Zm.normalizeId)((0,Zm.getFullPath)(e,this.missingRef))}};Qm.default=Km});var Zu=w(dn=>{"use strict";Object.defineProperty(dn,"__esModule",{value:!0});dn.resolveSchema=dn.getCompilingSchema=dn.resolveRef=dn.compileSchema=dn.SchemaEnv=void 0;var Pn=re(),HU=Vu(),ja=st(),jn=so(),KO=we(),RU=uo(),xr=class{constructor(e){var i;this.refs={},this.dynamicAnchors={};let n;typeof e.schema=="object"&&(n=e.schema),this.schema=e.schema,this.schemaId=e.schemaId,this.root=e.root||this,this.baseId=(i=e.baseId)!==null&&i!==void 0?i:(0,jn.normalizeId)(n?.[e.schemaId||"$id"]),this.schemaPath=e.schemaPath,this.localRefs=e.localRefs,this.meta=e.meta,this.$async=n?.$async,this.refs={}}};dn.SchemaEnv=xr;function Xm(t){let e=QO.call(this,t);if(e)return e;let i=(0,jn.getFullPath)(this.opts.uriResolver,t.root.baseId),{es5:n,lines:a}=this.opts.code,{ownProperties:r}=this.opts,s=new Pn.CodeGen(this.scope,{es5:n,lines:a,ownProperties:r}),o;t.$async&&(o=s.scopeValue("Error",{ref:HU.default,code:(0,Pn._)`require("ajv/dist/runtime/validation_error").default`}));let l=s.scopeName("validate");t.validateName=l;let u={gen:s,allErrors:this.opts.allErrors,data:ja.default.data,parentData:ja.default.parentData,parentDataProperty:ja.default.parentDataProperty,dataNames:[ja.default.data],dataPathArr:[Pn.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:s.scopeValue("schema",this.opts.code.source===!0?{ref:t.schema,code:(0,Pn.stringify)(t.schema)}:{ref:t.schema}),validateName:l,ValidationError:o,schema:t.schema,schemaEnv:t,rootId:i,baseId:t.baseId||i,schemaPath:Pn.nil,errSchemaPath:t.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,Pn._)`""`,opts:this.opts,self:this},c;try{this._compilations.add(t),(0,RU.validateFunctionCode)(u),s.optimize(this.opts.code.optimize);let p=s.toString();c=`${s.scopeRefs(ja.default.scope)}return ${p}`,this.opts.code.process&&(c=this.opts.code.process(c,t));let h=new Function(`${ja.default.self}`,`${ja.default.scope}`,c)(this,this.scope.get());if(this.scope.value(l,{ref:h}),h.errors=null,h.schema=t.schema,h.schemaEnv=t,t.$async&&(h.$async=!0),this.opts.code.source===!0&&(h.source={validateName:l,validateCode:p,scopeValues:s._values}),this.opts.unevaluated){let{props:g,items:m}=u;h.evaluated={props:g instanceof Pn.Name?void 0:g,items:m instanceof Pn.Name?void 0:m,dynamicProps:g instanceof Pn.Name,dynamicItems:m instanceof Pn.Name},h.source&&(h.source.evaluated=(0,Pn.stringify)(h.evaluated))}return t.validate=h,t}catch(p){throw delete t.validate,delete t.validateName,c&&this.logger.error("Error compiling schema, function code:",c),p}finally{this._compilations.delete(t)}}dn.compileSchema=Xm;function IU(t,e,i){var n;i=(0,jn.resolveUrl)(this.opts.uriResolver,e,i);let a=t.refs[i];if(a)return a;let r=GU.call(this,t,i);if(r===void 0){let s=(n=t.localRefs)===null||n===void 0?void 0:n[i],{schemaId:o}=this.opts;s&&(r=new xr({schema:s,schemaId:o,root:t,baseId:e}))}if(r!==void 0)return t.refs[i]=zU.call(this,r)}dn.resolveRef=IU;function zU(t){return(0,jn.inlineRef)(t.schema,this.opts.inlineRefs)?t.schema:t.validate?t:Xm.call(this,t)}function QO(t){for(let e of this._compilations)if(DU(e,t))return e}dn.getCompilingSchema=QO;function DU(t,e){return t.schema===e.schema&&t.root===e.root&&t.baseId===e.baseId}function GU(t,e){let i;for(;typeof(i=this.refs[e])=="string";)e=i;return i||this.schemas[e]||Ju.call(this,t,e)}function Ju(t,e){let i=this.opts.uriResolver.parse(e),n=(0,jn._getFullPath)(this.opts.uriResolver,i),a=(0,jn.getFullPath)(this.opts.uriResolver,t.baseId,void 0);if(Object.keys(t.schema).length>0&&n===a)return Ym.call(this,i,t);let r=(0,jn.normalizeId)(n),s=this.refs[r]||this.schemas[r];if(typeof s=="string"){let o=Ju.call(this,t,s);return typeof o?.schema!="object"?void 0:Ym.call(this,i,o)}if(typeof s?.schema=="object"){if(s.validate||Xm.call(this,s),r===(0,jn.normalizeId)(e)){let{schema:o}=s,{schemaId:l}=this.opts,u=o[l];return u&&(a=(0,jn.resolveUrl)(this.opts.uriResolver,a,u)),new xr({schema:o,schemaId:l,root:t,baseId:a})}return Ym.call(this,i,s)}}dn.resolveSchema=Ju;var $U=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function Ym(t,{baseId:e,schema:i,root:n}){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 i=="boolean")return;let l=i[(0,KO.unescapeFragment)(o)];if(l===void 0)return;i=l;let u=typeof i=="object"&&i[this.opts.schemaId];!$U.has(o)&&u&&(e=(0,jn.resolveUrl)(this.opts.uriResolver,e,u))}let r;if(typeof i!="boolean"&&i.$ref&&!(0,KO.schemaHasRulesButRef)(i,this.RULES)){let o=(0,jn.resolveUrl)(this.opts.uriResolver,e,i.$ref);r=Ju.call(this,n,o)}let{schemaId:s}=this.opts;if(r=r||new xr({schema:i,schemaId:s,root:n,baseId:e}),r.schema!==r.root.schema)return r}});var YO=w((_ae,NU)=>{NU.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 tf=w((Hae,ax)=>{"use strict";var UU=RegExp.prototype.test.bind(/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu),ex=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),ef=RegExp.prototype.test.bind(/^[\da-f]{2}$/iu),ix=RegExp.prototype.test.bind(/^[\da-z\-._~]$/iu),LU=RegExp.prototype.test.bind(/^[\da-z\-._~!$&'()*+,;=:@/]$/iu);function nf(t){let e="",i=0,n=0;for(n=0;n=48&&i<=57||i>=65&&i<=70||i>=97&&i<=102))return"";e+=t[n];break}for(n+=1;n=48&&i<=57||i>=65&&i<=70||i>=97&&i<=102))return"";e+=t[n]}return e}var WU=RegExp.prototype.test.bind(/[^!"$&'()*+,\-.;=_`a-z{}~]/u);function XO(t){return t.length=0,!0}function BU(t,e,i){if(t.length){let n=nf(t);if(n!=="")e.push(n);else return i.error=!0,!1;t.length=0}return!0}function FU(t){let e=0,i={error:!1,address:"",zone:""},n=[],a=[],r=!1,s=!1,o=BU;for(let l=0;l7){i.error=!0;break}l>0&&t[l-1]===":"&&(r=!0),n.push(":");continue}else if(u==="%"){if(!o(a,n,i))break;o=XO}else{a.push(u);continue}}return a.length&&(o===XO?i.zone=a.join(""):s?n.push(a.join("")):n.push(nf(a))),i.address=n.join(""),i}function nx(t){if(VU(t,":")<2)return{host:t,isIPV6:!1};let e=FU(t);if(e.error)return{host:t,isIPV6:!1};{let i=e.address,n=e.address;return e.zone&&(i+="%"+e.zone,n+="%25"+e.zone),{host:i,isIPV6:!0,escapedHost:n}}}function VU(t,e){let i=0;for(let n=0;nZU[n])}function YU(t,e=!1){if(t.indexOf("%")===-1)return t;let i="";for(let n=0;n{"use strict";var{isUUID:nL}=tf(),tL=/([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu,aL=["http","https","ws","wss","urn","urn:uuid"];function rL(t){return aL.indexOf(t)!==-1}function af(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 rx(t){return t.host||(t.error=t.error||"HTTP URIs must have a host."),t}function sx(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 sL(t){return t.secure=af(t),t.resourceName=(t.path||"/")+(t.query?"?"+t.query:""),t.path=void 0,t.query=void 0,t}function oL(t){if((t.port===(af(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,i]=t.resourceName.split("?");t.path=e&&e!=="/"?e:void 0,t.query=i,t.resourceName=void 0}return t.fragment=void 0,t}function lL(t,e){if(!t.path)return t.error="URN can not be parsed",t;let i=t.path.match(tL);if(i){let n=e.scheme||t.scheme||"urn";t.nid=i[1].toLowerCase(),t.nss=i[2];let a=`${n}:${e.nid||t.nid}`,r=rf(a);t.path=void 0,r&&(t=r.parse(t,e))}else t.error=t.error||"URN can not be parsed.";return t}function uL(t,e){if(t.nid===void 0)throw new Error("URN without nid cannot be serialized");let i=e.scheme||t.scheme||"urn",n=t.nid.toLowerCase(),a=`${i}:${e.nid||n}`,r=rf(a);r&&(t=r.serialize(t,e));let s=t,o=t.nss;return s.path=`${n||e.nid}:${o}`,e.skipEscape=!0,s}function cL(t,e){let i=t;return i.uuid=i.nss,i.nss=void 0,!e.tolerant&&(!i.uuid||!nL(i.uuid))&&(i.error=i.error||"UUID is not valid."),i}function pL(t){let e=t;return e.nss=(t.uuid||"").toLowerCase(),e}var ox={scheme:"http",domainHost:!0,parse:rx,serialize:sx},dL={scheme:"https",domainHost:ox.domainHost,parse:rx,serialize:sx},Ku={scheme:"ws",domainHost:!0,parse:sL,serialize:oL},hL={scheme:"wss",domainHost:Ku.domainHost,parse:Ku.parse,serialize:Ku.serialize},gL={scheme:"urn",parse:lL,serialize:uL,skipNormalize:!0},mL={scheme:"urn:uuid",parse:cL,serialize:pL,skipNormalize:!0},Qu={http:ox,https:dL,ws:Ku,wss:hL,urn:gL,"urn:uuid":mL};Object.setPrototypeOf(Qu,null);function rf(t){return t&&(Qu[t]||Qu[t.toLowerCase()])||void 0}lx.exports={wsIsSecure:af,SCHEMES:Qu,isValidSchemeName:rL,getSchemeHandler:rf}});var mx=w((Iae,Yu)=>{"use strict";var{normalizeIPv6:fL,removeDotSegments:po,recomposeAuthority:wL,normalizePercentEncoding:vL,normalizePathEncoding:CL,escapePreservingEscapes:AL,reescapeHostDelimiters:bL,isIPv4:yL,nonSimpleDomain:PL}=tf(),{SCHEMES:jL,getSchemeHandler:px}=ux();function SL(t,e){return typeof t=="string"?t=EL(t,e):typeof t=="object"&&(t=Tr(Sa(t,e),e)),t}function OL(t,e,i){let n=i?Object.assign({scheme:"null"},i):{scheme:"null"},a=dx(Tr(t,n),Tr(e,n),n,!0);return n.skipEscape=!0,Sa(a,n)}function dx(t,e,i,n){let a={};return n||(t=Tr(Sa(t,i),i),e=Tr(Sa(e,i),i)),i=i||{},!i.tolerant&&e.scheme?(a.scheme=e.scheme,a.userinfo=e.userinfo,a.host=e.host,a.port=e.port,a.path=po(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=po(e.path||""),a.query=e.query):(e.path?(e.path[0]==="/"?a.path=po(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=po(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 xL(t,e,i){let n=cx(t,i),a=cx(e,i);return n!==void 0&&a!==void 0&&n.toLowerCase()===a.toLowerCase()}function Sa(t,e){let i={host:t.host,scheme:t.scheme,userinfo:t.userinfo,port:t.port,path:t.path,query:t.query,nid:t.nid,nss:t.nss,uuid:t.uuid,fragment:t.fragment,reference:t.reference,resourceName:t.resourceName,secure:t.secure,error:""},n=Object.assign({},e),a=[],r=px(n.scheme||i.scheme);r&&r.serialize&&r.serialize(i,n),i.path!==void 0&&(n.skipEscape?i.path=vL(i.path):(i.path=AL(i.path),i.scheme!==void 0&&(i.path=i.path.split("%3A").join(":")))),n.reference!=="suffix"&&i.scheme&&a.push(i.scheme,":");let s=wL(i);if(s!==void 0&&(n.reference!=="suffix"&&a.push("//"),a.push(s),i.path&&i.path[0]!=="/"&&a.push("/")),i.path!==void 0){let o=i.path;!n.absolutePath&&(!r||!r.absolutePath)&&(o=po(o)),s===void 0&&o[0]==="/"&&o[1]==="/"&&(o="/%2F"+o.slice(2)),a.push(o)}return i.query!==void 0&&a.push("?",i.query),i.fragment!==void 0&&a.push("#",i.fragment),a.join("")}var TL=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u;function ML(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 hx(t,e){let i=Object.assign({},e),n={scheme:void 0,userinfo:void 0,host:"",port:void 0,path:"",query:void 0,fragment:void 0},a=!1,r=!1;i.reference==="suffix"&&(i.scheme?t=i.scheme+":"+t:t="//"+t);let s=t.match(TL);if(s){n.scheme=s[1],n.userinfo=s[3],n.host=s[4],n.port=parseInt(s[5],10),n.path=s[6]||"",n.query=s[7],n.fragment=s[8],isNaN(n.port)&&(n.port=s[5]);let o=ML(n,s);if(o!==void 0&&(n.error=n.error||o,a=!0),n.host)if(yL(n.host)===!1){let c=fL(n.host);n.host=c.host.toLowerCase(),r=c.isIPV6}else r=!0;n.scheme===void 0&&n.userinfo===void 0&&n.host===void 0&&n.port===void 0&&n.query===void 0&&!n.path?n.reference="same-document":n.scheme===void 0?n.reference="relative":n.fragment===void 0?n.reference="absolute":n.reference="uri",i.reference&&i.reference!=="suffix"&&i.reference!==n.reference&&(n.error=n.error||"URI is not a "+i.reference+" reference.");let l=px(i.scheme||n.scheme);if(!i.unicodeSupport&&(!l||!l.unicodeSupport)&&n.host&&(i.domainHost||l&&l.domainHost)&&r===!1&&PL(n.host))try{n.host=URL.domainToASCII(n.host.toLowerCase())}catch(u){n.error=n.error||"Host's domain name can not be converted to ASCII: "+u}if((!l||l&&!l.skipNormalize)&&(t.indexOf("%")!==-1&&(n.scheme!==void 0&&(n.scheme=unescape(n.scheme)),n.host!==void 0&&(n.host=bL(unescape(n.host),r))),n.path&&(n.path=CL(n.path)),n.fragment))try{n.fragment=encodeURI(decodeURIComponent(n.fragment))}catch{n.error=n.error||"URI malformed"}l&&l.parse&&l.parse(n,i)}else n.error=n.error||"URI can not be parsed.";return{parsed:n,malformedAuthorityOrPort:a}}function Tr(t,e){return hx(t,e).parsed}function EL(t,e){return gx(t,e).normalized}function gx(t,e){let{parsed:i,malformedAuthorityOrPort:n}=hx(t,e);return{normalized:n?t:Sa(i,e),malformedAuthorityOrPort:n}}function cx(t,e){if(typeof t=="string"){let{normalized:i,malformedAuthorityOrPort:n}=gx(t,e);return n?void 0:i}if(typeof t=="object")return Sa(t,e)}var sf={SCHEMES:jL,normalize:SL,resolve:OL,resolveComponent:dx,equal:xL,serialize:Sa,parse:Tr};Yu.exports=sf;Yu.exports.default=sf;Yu.exports.fastUri=sf});var wx=w(of=>{"use strict";Object.defineProperty(of,"__esModule",{value:!0});var fx=mx();fx.code='require("ajv/dist/runtime/uri").default';of.default=fx});var Sx=w(yi=>{"use strict";Object.defineProperty(yi,"__esModule",{value:!0});yi.CodeGen=yi.Name=yi.nil=yi.stringify=yi.str=yi._=yi.KeywordCxt=void 0;var kL=uo();Object.defineProperty(yi,"KeywordCxt",{enumerable:!0,get:function(){return kL.KeywordCxt}});var Mr=re();Object.defineProperty(yi,"_",{enumerable:!0,get:function(){return Mr._}});Object.defineProperty(yi,"str",{enumerable:!0,get:function(){return Mr.str}});Object.defineProperty(yi,"stringify",{enumerable:!0,get:function(){return Mr.stringify}});Object.defineProperty(yi,"nil",{enumerable:!0,get:function(){return Mr.nil}});Object.defineProperty(yi,"Name",{enumerable:!0,get:function(){return Mr.Name}});Object.defineProperty(yi,"CodeGen",{enumerable:!0,get:function(){return Mr.CodeGen}});var qL=Vu(),yx=co(),_L=Hm(),ho=Zu(),HL=re(),go=so(),Xu=ro(),uf=we(),vx=YO(),RL=wx(),Px=(t,e)=>new RegExp(t,e);Px.code="new RegExp";var IL=["removeAdditional","useDefaults","coerceTypes"],zL=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),DL={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."},GL={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},Cx=200;function $L(t){var e,i,n,a,r,s,o,l,u,c,p,d,h,g,m,f,v,y,A,b,O,$,N,X,F;let k=t.strict,Q=(e=t.code)===null||e===void 0?void 0:e.optimize,Z=Q===!0||Q===void 0?1:Q||0,ie=(n=(i=t.code)===null||i===void 0?void 0:i.regExp)!==null&&n!==void 0?n:Px,se=(a=t.uriResolver)!==null&&a!==void 0?a:RL.default;return{strictSchema:(s=(r=t.strictSchema)!==null&&r!==void 0?r:k)!==null&&s!==void 0?s:!0,strictNumbers:(l=(o=t.strictNumbers)!==null&&o!==void 0?o:k)!==null&&l!==void 0?l:!0,strictTypes:(c=(u=t.strictTypes)!==null&&u!==void 0?u:k)!==null&&c!==void 0?c:"log",strictTuples:(d=(p=t.strictTuples)!==null&&p!==void 0?p:k)!==null&&d!==void 0?d:"log",strictRequired:(g=(h=t.strictRequired)!==null&&h!==void 0?h:k)!==null&&g!==void 0?g:!1,code:t.code?{...t.code,optimize:Z,regExp:ie}:{optimize:Z,regExp:ie},loopRequired:(m=t.loopRequired)!==null&&m!==void 0?m:Cx,loopEnum:(f=t.loopEnum)!==null&&f!==void 0?f:Cx,meta:(v=t.meta)!==null&&v!==void 0?v:!0,messages:(y=t.messages)!==null&&y!==void 0?y:!0,inlineRefs:(A=t.inlineRefs)!==null&&A!==void 0?A:!0,schemaId:(b=t.schemaId)!==null&&b!==void 0?b:"$id",addUsedSchema:(O=t.addUsedSchema)!==null&&O!==void 0?O:!0,validateSchema:($=t.validateSchema)!==null&&$!==void 0?$:!0,validateFormats:(N=t.validateFormats)!==null&&N!==void 0?N:!0,unicodeRegExp:(X=t.unicodeRegExp)!==null&&X!==void 0?X:!0,int32range:(F=t.int32range)!==null&&F!==void 0?F:!0,uriResolver:se}}var mo=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,...$L(e)};let{es5:i,lines:n}=this.opts.code;this.scope=new HL.ValueScope({scope:{},prefixes:zL,es5:i,lines:n}),this.logger=FL(e.logger);let a=e.validateFormats;e.validateFormats=!1,this.RULES=(0,_L.getRules)(),Ax.call(this,DL,e,"NOT SUPPORTED"),Ax.call(this,GL,e,"DEPRECATED","warn"),this._metaOpts=WL.call(this),e.formats&&UL.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),e.keywords&&LL.call(this,e.keywords),typeof e.meta=="object"&&this.addMetaSchema(e.meta),NL.call(this),e.validateFormats=a}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){let{$data:e,meta:i,schemaId:n}=this.opts,a=vx;n==="id"&&(a={...vx},a.id=a.$id,delete a.$id),i&&e&&this.addMetaSchema(a,a[n],!1)}defaultMeta(){let{meta:e,schemaId:i}=this.opts;return this.opts.defaultMeta=typeof e=="object"?e[i]||e:void 0}validate(e,i){let n;if(typeof e=="string"){if(n=this.getSchema(e),!n)throw new Error(`no schema with key or ref "${e}"`)}else n=this.compile(e);let a=n(i);return"$async"in n||(this.errors=n.errors),a}compile(e,i){let n=this._addSchema(e,i);return n.validate||this._compileSchemaEnv(n)}compileAsync(e,i){if(typeof this.opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");let{loadSchema:n}=this.opts;return a.call(this,e,i);async function a(c,p){await r.call(this,c.$schema);let d=this._addSchema(c,p);return d.validate||s.call(this,d)}async function r(c){c&&!this.getSchema(c)&&await a.call(this,{$ref:c},!0)}async function s(c){try{return this._compileSchemaEnv(c)}catch(p){if(!(p instanceof yx.default))throw p;return o.call(this,p),await l.call(this,p.missingSchema),s.call(this,c)}}function o({missingSchema:c,missingRef:p}){if(this.refs[c])throw new Error(`AnySchema ${c} is loaded but ${p} cannot be resolved`)}async function l(c){let p=await u.call(this,c);this.refs[c]||await r.call(this,p.$schema),this.refs[c]||this.addSchema(p,c,i)}async function u(c){let p=this._loading[c];if(p)return p;try{return await(this._loading[c]=n(c))}finally{delete this._loading[c]}}}addSchema(e,i,n,a=this.opts.validateSchema){if(Array.isArray(e)){for(let s of e)this.addSchema(s,void 0,n,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 i=(0,go.normalizeId)(i||r),this._checkUnique(i),this.schemas[i]=this._addSchema(e,n,i,a,!0),this}addMetaSchema(e,i,n=this.opts.validateSchema){return this.addSchema(e,i,!0,n),this}validateSchema(e,i){if(typeof e=="boolean")return!0;let n;if(n=e.$schema,n!==void 0&&typeof n!="string")throw new Error("$schema must be a string");if(n=n||this.opts.defaultMeta||this.defaultMeta(),!n)return this.logger.warn("meta-schema not available"),this.errors=null,!0;let a=this.validate(n,e);if(!a&&i){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 i;for(;typeof(i=bx.call(this,e))=="string";)e=i;if(i===void 0){let{schemaId:n}=this.opts,a=new ho.SchemaEnv({schema:{},schemaId:n});if(i=ho.resolveSchema.call(this,a,e),!i)return;this.refs[e]=i}return i.validate||this._compileSchemaEnv(i)}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 i=bx.call(this,e);return typeof i=="object"&&this._cache.delete(i.schema),delete this.schemas[e],delete this.refs[e],this}case"object":{let i=e;this._cache.delete(i);let n=e[this.opts.schemaId];return n&&(n=(0,go.normalizeId)(n),delete this.schemas[n],delete this.refs[n]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(e){for(let i of e)this.addKeyword(i);return this}addKeyword(e,i){let n;if(typeof e=="string")n=e,typeof i=="object"&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),i.keyword=n);else if(typeof e=="object"&&i===void 0){if(i=e,n=i.keyword,Array.isArray(n)&&!n.length)throw new Error("addKeywords: keyword must be string or non-empty array")}else throw new Error("invalid addKeywords parameters");if(JL.call(this,n,i),!i)return(0,uf.eachItem)(n,r=>lf.call(this,r)),this;KL.call(this,i);let a={...i,type:(0,Xu.getJSONTypes)(i.type),schemaType:(0,Xu.getJSONTypes)(i.schemaType)};return(0,uf.eachItem)(n,a.type.length===0?r=>lf.call(this,r,a):r=>a.type.forEach(s=>lf.call(this,r,a,s))),this}getKeyword(e){let i=this.RULES.all[e];return typeof i=="object"?i.definition:!!i}removeKeyword(e){let{RULES:i}=this;delete i.keywords[e],delete i.all[e];for(let n of i.rules){let a=n.rules.findIndex(r=>r.keyword===e);a>=0&&n.rules.splice(a,1)}return this}addFormat(e,i){return typeof i=="string"&&(i=new RegExp(i)),this.formats[e]=i,this}errorsText(e=this.errors,{separator:i=", ",dataVar:n="data"}={}){return!e||e.length===0?"No errors":e.map(a=>`${n}${a.instancePath} ${a.message}`).reduce((a,r)=>a+i+r)}$dataMetaSchema(e,i){let n=this.RULES.all;e=JSON.parse(JSON.stringify(e));for(let a of i){let r=a.split("/").slice(1),s=e;for(let o of r)s=s[o];for(let o in n){let l=n[o];if(typeof l!="object")continue;let{$data:u}=l.definition,c=s[o];u&&c&&(s[o]=jx(c))}}return e}_removeAllSchemas(e,i){for(let n in e){let a=e[n];(!i||i.test(n))&&(typeof a=="string"?delete e[n]:a&&!a.meta&&(this._cache.delete(a.schema),delete e[n]))}}_addSchema(e,i,n,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;n=(0,go.normalizeId)(s||n);let u=go.getSchemaRefs.call(this,e,n);return l=new ho.SchemaEnv({schema:e,schemaId:o,meta:i,baseId:n,localRefs:u}),this._cache.set(l.schema,l),r&&!n.startsWith("#")&&(n&&this._checkUnique(n),this.refs[n]=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):ho.compileSchema.call(this,e),!e.validate)throw new Error("ajv implementation error");return e.validate}_compileMetaSchema(e){let i=this.opts;this.opts=this._metaOpts;try{ho.compileSchema.call(this,e)}finally{this.opts=i}}};mo.ValidationError=qL.default;mo.MissingRefError=yx.default;yi.default=mo;function Ax(t,e,i,n="error"){for(let a in t){let r=a;r in e&&this.logger[n](`${i}: option ${a}. ${t[r]}`)}}function bx(t){return t=(0,go.normalizeId)(t),this.schemas[t]||this.refs[t]}function NL(){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 UL(){for(let t in this.opts.formats){let e=this.opts.formats[t];e&&this.addFormat(t,e)}}function LL(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 i=t[e];i.keyword||(i.keyword=e),this.addKeyword(i)}}function WL(){let t={...this.opts};for(let e of IL)delete t[e];return t}var BL={log(){},warn(){},error(){}};function FL(t){if(t===!1)return BL;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 VL=/^[a-z_$][a-z0-9_$:-]*$/i;function JL(t,e){let{RULES:i}=this;if((0,uf.eachItem)(t,n=>{if(i.keywords[n])throw new Error(`Keyword ${n} is already defined`);if(!VL.test(n))throw new Error(`Keyword ${n} has invalid name`)}),!!e&&e.$data&&!("code"in e||"validate"in e))throw new Error('$data keyword must have "code" or "validate" function')}function lf(t,e,i){var n;let a=e?.post;if(i&&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===i);if(s||(s={type:i,rules:[]},r.rules.push(s)),r.keywords[t]=!0,!e)return;let o={keyword:t,definition:{...e,type:(0,Xu.getJSONTypes)(e.type),schemaType:(0,Xu.getJSONTypes)(e.schemaType)}};e.before?ZL.call(this,s,o,e.before):s.rules.push(o),r.all[t]=o,(n=e.implements)===null||n===void 0||n.forEach(l=>this.addKeyword(l))}function ZL(t,e,i){let n=t.rules.findIndex(a=>a.keyword===i);n>=0?t.rules.splice(n,0,e):(t.rules.push(e),this.logger.warn(`rule ${i} is not defined`))}function KL(t){let{metaSchema:e}=t;e!==void 0&&(t.$data&&this.opts.$data&&(e=jx(e)),t.validateSchema=this.compile(e,!0))}var QL={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function jx(t){return{anyOf:[t,QL]}}});var Ox=w(cf=>{"use strict";Object.defineProperty(cf,"__esModule",{value:!0});var YL={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};cf.default=YL});var Ex=w(Oa=>{"use strict";Object.defineProperty(Oa,"__esModule",{value:!0});Oa.callRef=Oa.getValidate=void 0;var XL=co(),xx=pn(),Li=re(),Er=st(),Tx=Zu(),ec=we(),eW={keyword:"$ref",schemaType:"string",code(t){let{gen:e,schema:i,it:n}=t,{baseId:a,schemaEnv:r,validateName:s,opts:o,self:l}=n,{root:u}=r;if((i==="#"||i==="#/")&&a===u.baseId)return p();let c=Tx.resolveRef.call(l,u,a,i);if(c===void 0)throw new XL.default(n.opts.uriResolver,a,i);if(c instanceof Tx.SchemaEnv)return d(c);return h(c);function p(){if(r===u)return ic(t,s,r,r.$async);let g=e.scopeValue("root",{ref:u});return ic(t,(0,Li._)`${g}.validate`,u,u.$async)}function d(g){let m=Mx(t,g);ic(t,m,g,g.$async)}function h(g){let m=e.scopeValue("schema",o.code.source===!0?{ref:g,code:(0,Li.stringify)(g)}:{ref:g}),f=e.name("valid"),v=t.subschema({schema:g,dataTypes:[],schemaPath:Li.nil,topSchemaRef:m,errSchemaPath:i},f);t.mergeEvaluated(v),t.ok(f)}}};function Mx(t,e){let{gen:i}=t;return e.validate?i.scopeValue("validate",{ref:e.validate}):(0,Li._)`${i.scopeValue("wrapper",{ref:e})}.validate`}Oa.getValidate=Mx;function ic(t,e,i,n){let{gen:a,it:r}=t,{allErrors:s,schemaEnv:o,opts:l}=r,u=l.passContext?Er.default.this:Li.nil;n?c():p();function c(){if(!o.$async)throw new Error("async schema referenced by sync schema");let g=a.let("valid");a.try(()=>{a.code((0,Li._)`await ${(0,xx.callValidateCode)(t,e,u)}`),h(e),s||a.assign(g,!0)},m=>{a.if((0,Li._)`!(${m} instanceof ${r.ValidationError})`,()=>a.throw(m)),d(m),s||a.assign(g,!1)}),t.ok(g)}function p(){t.result((0,xx.callValidateCode)(t,e,u),()=>h(e),()=>d(e))}function d(g){let m=(0,Li._)`${g}.errors`;a.assign(Er.default.vErrors,(0,Li._)`${Er.default.vErrors} === null ? ${m} : ${Er.default.vErrors}.concat(${m})`),a.assign(Er.default.errors,(0,Li._)`${Er.default.vErrors}.length`)}function h(g){var m;if(!r.opts.unevaluated)return;let f=(m=i?.validate)===null||m===void 0?void 0:m.evaluated;if(r.props!==!0)if(f&&!f.dynamicProps)f.props!==void 0&&(r.props=ec.mergeEvaluated.props(a,f.props,r.props));else{let v=a.var("props",(0,Li._)`${g}.evaluated.props`);r.props=ec.mergeEvaluated.props(a,v,r.props,Li.Name)}if(r.items!==!0)if(f&&!f.dynamicItems)f.items!==void 0&&(r.items=ec.mergeEvaluated.items(a,f.items,r.items));else{let v=a.var("items",(0,Li._)`${g}.evaluated.items`);r.items=ec.mergeEvaluated.items(a,v,r.items,Li.Name)}}}Oa.callRef=ic;Oa.default=eW});var kx=w(pf=>{"use strict";Object.defineProperty(pf,"__esModule",{value:!0});var iW=Ox(),nW=Ex(),tW=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",iW.default,nW.default];pf.default=tW});var qx=w(df=>{"use strict";Object.defineProperty(df,"__esModule",{value:!0});var nc=re(),_t=nc.operators,tc={maximum:{okStr:"<=",ok:_t.LTE,fail:_t.GT},minimum:{okStr:">=",ok:_t.GTE,fail:_t.LT},exclusiveMaximum:{okStr:"<",ok:_t.LT,fail:_t.GTE},exclusiveMinimum:{okStr:">",ok:_t.GT,fail:_t.LTE}},aW={message:({keyword:t,schemaCode:e})=>(0,nc.str)`must be ${tc[t].okStr} ${e}`,params:({keyword:t,schemaCode:e})=>(0,nc._)`{comparison: ${tc[t].okStr}, limit: ${e}}`},rW={keyword:Object.keys(tc),type:"number",schemaType:"number",$data:!0,error:aW,code(t){let{keyword:e,data:i,schemaCode:n}=t;t.fail$data((0,nc._)`${i} ${tc[e].fail} ${n} || isNaN(${i})`)}};df.default=rW});var _x=w(hf=>{"use strict";Object.defineProperty(hf,"__esModule",{value:!0});var fo=re(),sW={message:({schemaCode:t})=>(0,fo.str)`must be multiple of ${t}`,params:({schemaCode:t})=>(0,fo._)`{multipleOf: ${t}}`},oW={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:sW,code(t){let{gen:e,data:i,schemaCode:n,it:a}=t,r=a.opts.multipleOfPrecision,s=e.let("res"),o=r?(0,fo._)`Math.abs(Math.round(${s}) - ${s}) > 1e-${r}`:(0,fo._)`${s} !== parseInt(${s})`;t.fail$data((0,fo._)`(${n} === 0 || (${s} = ${i}/${n}, ${o}))`)}};hf.default=oW});var Rx=w(gf=>{"use strict";Object.defineProperty(gf,"__esModule",{value:!0});function Hx(t){let e=t.length,i=0,n=0,a;for(;n=55296&&a<=56319&&n{"use strict";Object.defineProperty(mf,"__esModule",{value:!0});var xa=re(),lW=we(),uW=Rx(),cW={message({keyword:t,schemaCode:e}){let i=t==="maxLength"?"more":"fewer";return(0,xa.str)`must NOT have ${i} than ${e} characters`},params:({schemaCode:t})=>(0,xa._)`{limit: ${t}}`},pW={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:cW,code(t){let{keyword:e,data:i,schemaCode:n,it:a}=t,r=e==="maxLength"?xa.operators.GT:xa.operators.LT,s=a.opts.unicode===!1?(0,xa._)`${i}.length`:(0,xa._)`${(0,lW.useFunc)(t.gen,uW.default)}(${i})`;t.fail$data((0,xa._)`${s} ${r} ${n}`)}};mf.default=pW});var zx=w(ff=>{"use strict";Object.defineProperty(ff,"__esModule",{value:!0});var dW=pn(),hW=we(),kr=re(),gW={message:({schemaCode:t})=>(0,kr.str)`must match pattern "${t}"`,params:({schemaCode:t})=>(0,kr._)`{pattern: ${t}}`},mW={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:gW,code(t){let{gen:e,data:i,$data:n,schema:a,schemaCode:r,it:s}=t,o=s.opts.unicodeRegExp?"u":"";if(n){let{regExp:l}=s.opts.code,u=l.code==="new RegExp"?(0,kr._)`new RegExp`:(0,hW.useFunc)(e,l),c=e.let("valid");e.try(()=>e.assign(c,(0,kr._)`${u}(${r}, ${o}).test(${i})`),()=>e.assign(c,!1)),t.fail$data((0,kr._)`!${c}`)}else{let l=(0,dW.usePattern)(t,a);t.fail$data((0,kr._)`!${l}.test(${i})`)}}};ff.default=mW});var Dx=w(wf=>{"use strict";Object.defineProperty(wf,"__esModule",{value:!0});var wo=re(),fW={message({keyword:t,schemaCode:e}){let i=t==="maxProperties"?"more":"fewer";return(0,wo.str)`must NOT have ${i} than ${e} properties`},params:({schemaCode:t})=>(0,wo._)`{limit: ${t}}`},wW={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:fW,code(t){let{keyword:e,data:i,schemaCode:n}=t,a=e==="maxProperties"?wo.operators.GT:wo.operators.LT;t.fail$data((0,wo._)`Object.keys(${i}).length ${a} ${n}`)}};wf.default=wW});var Gx=w(vf=>{"use strict";Object.defineProperty(vf,"__esModule",{value:!0});var vo=pn(),Co=re(),vW=we(),CW={message:({params:{missingProperty:t}})=>(0,Co.str)`must have required property '${t}'`,params:({params:{missingProperty:t}})=>(0,Co._)`{missingProperty: ${t}}`},AW={keyword:"required",type:"object",schemaType:"array",$data:!0,error:CW,code(t){let{gen:e,schema:i,schemaCode:n,data:a,$data:r,it:s}=t,{opts:o}=s;if(!r&&i.length===0)return;let l=i.length>=o.loopRequired;if(s.allErrors?u():c(),o.strictRequired){let h=t.parentSchema.properties,{definedProperties:g}=t.it;for(let m of i)if(h?.[m]===void 0&&!g.has(m)){let f=s.schemaEnv.baseId+s.errSchemaPath,v=`required property "${m}" is not defined at "${f}" (strictRequired)`;(0,vW.checkStrictMode)(s,v,s.opts.strictRequired)}}function u(){if(l||r)t.block$data(Co.nil,p);else for(let h of i)(0,vo.checkReportMissingProp)(t,h)}function c(){let h=e.let("missing");if(l||r){let g=e.let("valid",!0);t.block$data(g,()=>d(h,g)),t.ok(g)}else e.if((0,vo.checkMissingProp)(t,i,h)),(0,vo.reportMissingProp)(t,h),e.else()}function p(){e.forOf("prop",n,h=>{t.setParams({missingProperty:h}),e.if((0,vo.noPropertyInData)(e,a,h,o.ownProperties),()=>t.error())})}function d(h,g){t.setParams({missingProperty:h}),e.forOf(h,n,()=>{e.assign(g,(0,vo.propertyInData)(e,a,h,o.ownProperties)),e.if((0,Co.not)(g),()=>{t.error(),e.break()})},Co.nil)}}};vf.default=AW});var $x=w(Cf=>{"use strict";Object.defineProperty(Cf,"__esModule",{value:!0});var Ao=re(),bW={message({keyword:t,schemaCode:e}){let i=t==="maxItems"?"more":"fewer";return(0,Ao.str)`must NOT have ${i} than ${e} items`},params:({schemaCode:t})=>(0,Ao._)`{limit: ${t}}`},yW={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:bW,code(t){let{keyword:e,data:i,schemaCode:n}=t,a=e==="maxItems"?Ao.operators.GT:Ao.operators.LT;t.fail$data((0,Ao._)`${i}.length ${a} ${n}`)}};Cf.default=yW});var ac=w(Af=>{"use strict";Object.defineProperty(Af,"__esModule",{value:!0});var Nx=Um();Nx.code='require("ajv/dist/runtime/equal").default';Af.default=Nx});var Ux=w(yf=>{"use strict";Object.defineProperty(yf,"__esModule",{value:!0});var bf=ro(),Pi=re(),PW=we(),jW=ac(),SW={message:({params:{i:t,j:e}})=>(0,Pi.str)`must NOT have duplicate items (items ## ${e} and ${t} are identical)`,params:({params:{i:t,j:e}})=>(0,Pi._)`{i: ${t}, j: ${e}}`},OW={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:SW,code(t){let{gen:e,data:i,$data:n,schema:a,parentSchema:r,schemaCode:s,it:o}=t;if(!n&&!a)return;let l=e.let("valid"),u=r.items?(0,bf.getSchemaTypes)(r.items):[];t.block$data(l,c,(0,Pi._)`${s} === false`),t.ok(l);function c(){let g=e.let("i",(0,Pi._)`${i}.length`),m=e.let("j");t.setParams({i:g,j:m}),e.assign(l,!0),e.if((0,Pi._)`${g} > 1`,()=>(p()?d:h)(g,m))}function p(){return u.length>0&&!u.some(g=>g==="object"||g==="array")}function d(g,m){let f=e.name("item"),v=(0,bf.checkDataTypes)(u,f,o.opts.strictNumbers,bf.DataType.Wrong),y=e.const("indices",(0,Pi._)`{}`);e.for((0,Pi._)`;${g}--;`,()=>{e.let(f,(0,Pi._)`${i}[${g}]`),e.if(v,(0,Pi._)`continue`),u.length>1&&e.if((0,Pi._)`typeof ${f} == "string"`,(0,Pi._)`${f} += "_"`),e.if((0,Pi._)`typeof ${y}[${f}] == "number"`,()=>{e.assign(m,(0,Pi._)`${y}[${f}]`),t.error(),e.assign(l,!1).break()}).code((0,Pi._)`${y}[${f}] = ${g}`)})}function h(g,m){let f=(0,PW.useFunc)(e,jW.default),v=e.name("outer");e.label(v).for((0,Pi._)`;${g}--;`,()=>e.for((0,Pi._)`${m} = ${g}; ${m}--;`,()=>e.if((0,Pi._)`${f}(${i}[${g}], ${i}[${m}])`,()=>{t.error(),e.assign(l,!1).break(v)})))}}};yf.default=OW});var Lx=w(jf=>{"use strict";Object.defineProperty(jf,"__esModule",{value:!0});var Pf=re(),xW=we(),TW=ac(),MW={message:"must be equal to constant",params:({schemaCode:t})=>(0,Pf._)`{allowedValue: ${t}}`},EW={keyword:"const",$data:!0,error:MW,code(t){let{gen:e,data:i,$data:n,schemaCode:a,schema:r}=t;n||r&&typeof r=="object"?t.fail$data((0,Pf._)`!${(0,xW.useFunc)(e,TW.default)}(${i}, ${a})`):t.fail((0,Pf._)`${r} !== ${i}`)}};jf.default=EW});var Wx=w(Sf=>{"use strict";Object.defineProperty(Sf,"__esModule",{value:!0});var bo=re(),kW=we(),qW=ac(),_W={message:"must be equal to one of the allowed values",params:({schemaCode:t})=>(0,bo._)`{allowedValues: ${t}}`},HW={keyword:"enum",schemaType:"array",$data:!0,error:_W,code(t){let{gen:e,data:i,$data:n,schema:a,schemaCode:r,it:s}=t;if(!n&&a.length===0)throw new Error("enum must have non-empty array");let o=a.length>=s.opts.loopEnum,l,u=()=>l??(l=(0,kW.useFunc)(e,qW.default)),c;if(o||n)c=e.let("valid"),t.block$data(c,p);else{if(!Array.isArray(a))throw new Error("ajv implementation error");let h=e.const("vSchema",r);c=(0,bo.or)(...a.map((g,m)=>d(h,m)))}t.pass(c);function p(){e.assign(c,!1),e.forOf("v",r,h=>e.if((0,bo._)`${u()}(${i}, ${h})`,()=>e.assign(c,!0).break()))}function d(h,g){let m=a[g];return typeof m=="object"&&m!==null?(0,bo._)`${u()}(${i}, ${h}[${g}])`:(0,bo._)`${i} === ${m}`}}};Sf.default=HW});var Bx=w(Of=>{"use strict";Object.defineProperty(Of,"__esModule",{value:!0});var RW=qx(),IW=_x(),zW=Ix(),DW=zx(),GW=Dx(),$W=Gx(),NW=$x(),UW=Ux(),LW=Lx(),WW=Wx(),BW=[RW.default,IW.default,zW.default,DW.default,GW.default,$W.default,NW.default,UW.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},LW.default,WW.default];Of.default=BW});var Tf=w(yo=>{"use strict";Object.defineProperty(yo,"__esModule",{value:!0});yo.validateAdditionalItems=void 0;var Ta=re(),xf=we(),FW={message:({params:{len:t}})=>(0,Ta.str)`must NOT have more than ${t} items`,params:({params:{len:t}})=>(0,Ta._)`{limit: ${t}}`},VW={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:FW,code(t){let{parentSchema:e,it:i}=t,{items:n}=e;if(!Array.isArray(n)){(0,xf.checkStrictMode)(i,'"additionalItems" is ignored when "items" is not an array of schemas');return}Fx(t,n)}};function Fx(t,e){let{gen:i,schema:n,data:a,keyword:r,it:s}=t;s.items=!0;let o=i.const("len",(0,Ta._)`${a}.length`);if(n===!1)t.setParams({len:e.length}),t.pass((0,Ta._)`${o} <= ${e.length}`);else if(typeof n=="object"&&!(0,xf.alwaysValidSchema)(s,n)){let u=i.var("valid",(0,Ta._)`${o} <= ${e.length}`);i.if((0,Ta.not)(u),()=>l(u)),t.ok(u)}function l(u){i.forRange("i",e.length,o,c=>{t.subschema({keyword:r,dataProp:c,dataPropType:xf.Type.Num},u),s.allErrors||i.if((0,Ta.not)(u),()=>i.break())})}}yo.validateAdditionalItems=Fx;yo.default=VW});var Mf=w(Po=>{"use strict";Object.defineProperty(Po,"__esModule",{value:!0});Po.validateTuple=void 0;var Vx=re(),rc=we(),JW=pn(),ZW={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(t){let{schema:e,it:i}=t;if(Array.isArray(e))return Jx(t,"additionalItems",e);i.items=!0,!(0,rc.alwaysValidSchema)(i,e)&&t.ok((0,JW.validateArray)(t))}};function Jx(t,e,i=t.schema){let{gen:n,parentSchema:a,data:r,keyword:s,it:o}=t;c(a),o.opts.unevaluated&&i.length&&o.items!==!0&&(o.items=rc.mergeEvaluated.items(n,i.length,o.items));let l=n.name("valid"),u=n.const("len",(0,Vx._)`${r}.length`);i.forEach((p,d)=>{(0,rc.alwaysValidSchema)(o,p)||(n.if((0,Vx._)`${u} > ${d}`,()=>t.subschema({keyword:s,schemaProp:d,dataProp:d},l)),t.ok(l))});function c(p){let{opts:d,errSchemaPath:h}=o,g=i.length,m=g===p.minItems&&(g===p.maxItems||p[e]===!1);if(d.strictTuples&&!m){let f=`"${s}" is ${g}-tuple, but minItems or maxItems/${e} are not specified or different at path "${h}"`;(0,rc.checkStrictMode)(o,f,d.strictTuples)}}}Po.validateTuple=Jx;Po.default=ZW});var Zx=w(Ef=>{"use strict";Object.defineProperty(Ef,"__esModule",{value:!0});var KW=Mf(),QW={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:t=>(0,KW.validateTuple)(t,"items")};Ef.default=QW});var Qx=w(kf=>{"use strict";Object.defineProperty(kf,"__esModule",{value:!0});var Kx=re(),YW=we(),XW=pn(),eB=Tf(),iB={message:({params:{len:t}})=>(0,Kx.str)`must NOT have more than ${t} items`,params:({params:{len:t}})=>(0,Kx._)`{limit: ${t}}`},nB={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:iB,code(t){let{schema:e,parentSchema:i,it:n}=t,{prefixItems:a}=i;n.items=!0,!(0,YW.alwaysValidSchema)(n,e)&&(a?(0,eB.validateAdditionalItems)(t,a):t.ok((0,XW.validateArray)(t)))}};kf.default=nB});var Yx=w(qf=>{"use strict";Object.defineProperty(qf,"__esModule",{value:!0});var hn=re(),sc=we(),tB={message:({params:{min:t,max:e}})=>e===void 0?(0,hn.str)`must contain at least ${t} valid item(s)`:(0,hn.str)`must contain at least ${t} and no more than ${e} valid item(s)`,params:({params:{min:t,max:e}})=>e===void 0?(0,hn._)`{minContains: ${t}}`:(0,hn._)`{minContains: ${t}, maxContains: ${e}}`},aB={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:tB,code(t){let{gen:e,schema:i,parentSchema:n,data:a,it:r}=t,s,o,{minContains:l,maxContains:u}=n;r.opts.next?(s=l===void 0?1:l,o=u):s=1;let c=e.const("len",(0,hn._)`${a}.length`);if(t.setParams({min:s,max:o}),o===void 0&&s===0){(0,sc.checkStrictMode)(r,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(o!==void 0&&s>o){(0,sc.checkStrictMode)(r,'"minContains" > "maxContains" is always invalid'),t.fail();return}if((0,sc.alwaysValidSchema)(r,i)){let m=(0,hn._)`${c} >= ${s}`;o!==void 0&&(m=(0,hn._)`${m} && ${c} <= ${o}`),t.pass(m);return}r.items=!0;let p=e.name("valid");o===void 0&&s===1?h(p,()=>e.if(p,()=>e.break())):s===0?(e.let(p,!0),o!==void 0&&e.if((0,hn._)`${a}.length > 0`,d)):(e.let(p,!1),d()),t.result(p,()=>t.reset());function d(){let m=e.name("_valid"),f=e.let("count",0);h(m,()=>e.if(m,()=>g(f)))}function h(m,f){e.forRange("i",0,c,v=>{t.subschema({keyword:"contains",dataProp:v,dataPropType:sc.Type.Num,compositeRule:!0},m),f()})}function g(m){e.code((0,hn._)`${m}++`),o===void 0?e.if((0,hn._)`${m} >= ${s}`,()=>e.assign(p,!0).break()):(e.if((0,hn._)`${m} > ${o}`,()=>e.assign(p,!1).break()),s===1?e.assign(p,!0):e.if((0,hn._)`${m} >= ${s}`,()=>e.assign(p,!0)))}}};qf.default=aB});var iT=w(Dn=>{"use strict";Object.defineProperty(Dn,"__esModule",{value:!0});Dn.validateSchemaDeps=Dn.validatePropertyDeps=Dn.error=void 0;var _f=re(),rB=we(),jo=pn();Dn.error={message:({params:{property:t,depsCount:e,deps:i}})=>{let n=e===1?"property":"properties";return(0,_f.str)`must have ${n} ${i} when property ${t} is present`},params:({params:{property:t,depsCount:e,deps:i,missingProperty:n}})=>(0,_f._)`{property: ${t}, missingProperty: ${n}, depsCount: ${e}, - deps: ${i}}`};var rB={keyword:"dependencies",type:"object",schemaType:"object",error:Dn.error,code(t){let[e,i]=sB(t);Yx(t,e),Xx(t,i)}};function sB({schema:t}){let e={},i={};for(let n in t){if(n==="__proto__")continue;let a=Array.isArray(t[n])?e:i;a[n]=t[n]}return[e,i]}function Yx(t,e=t.schema){let{gen:i,data:n,it:a}=t;if(Object.keys(e).length===0)return;let r=i.let("missing");for(let s in e){let o=e[s];if(o.length===0)continue;let l=(0,jo.propertyInData)(i,n,s,a.opts.ownProperties);t.setParams({property:s,depsCount:o.length,deps:o.join(", ")}),a.allErrors?i.if(l,()=>{for(let u of o)(0,jo.checkReportMissingProp)(t,u)}):(i.if((0,_f._)`${l} && (${(0,jo.checkMissingProp)(t,o,r)})`),(0,jo.reportMissingProp)(t,r),i.else())}}Dn.validatePropertyDeps=Yx;function Xx(t,e=t.schema){let{gen:i,data:n,keyword:a,it:r}=t,s=i.name("valid");for(let o in e)(0,aB.alwaysValidSchema)(r,e[o])||(i.if((0,jo.propertyInData)(i,n,o,r.opts.ownProperties),()=>{let l=t.subschema({keyword:a,schemaProp:o},s);t.mergeValidEvaluated(l,s)},()=>i.var(s,!0)),t.ok(s))}Dn.validateSchemaDeps=Xx;Dn.default=rB});var nT=w(Hf=>{"use strict";Object.defineProperty(Hf,"__esModule",{value:!0});var iT=re(),oB=we(),lB={message:"property name must be valid",params:({params:t})=>(0,iT._)`{propertyName: ${t.propertyName}}`},uB={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:lB,code(t){let{gen:e,schema:i,data:n,it:a}=t;if((0,oB.alwaysValidSchema)(a,i))return;let r=e.name("valid");e.forIn("key",n,s=>{t.setParams({propertyName:s}),t.subschema({keyword:"propertyNames",data:s,dataTypes:["string"],propertyName:s,compositeRule:!0},r),e.if((0,iT.not)(r),()=>{t.error(!0),a.allErrors||e.break()})}),t.ok(r)}};Hf.default=uB});var If=w(Rf=>{"use strict";Object.defineProperty(Rf,"__esModule",{value:!0});var oc=pn(),Sn=re(),cB=st(),lc=we(),pB={message:"must NOT have additional properties",params:({params:t})=>(0,Sn._)`{additionalProperty: ${t.additionalProperty}}`},dB={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:pB,code(t){let{gen:e,schema:i,parentSchema:n,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,lc.alwaysValidSchema)(s,i))return;let u=(0,oc.allSchemaProperties)(n.properties),c=(0,oc.allSchemaProperties)(n.patternProperties);p(),t.ok((0,Sn._)`${r} === ${cB.default.errors}`);function p(){e.forIn("key",a,f=>{!u.length&&!c.length?g(f):e.if(d(f),()=>g(f))})}function d(f){let v;if(u.length>8){let y=(0,lc.schemaRefOrVal)(s,n.properties,"properties");v=(0,oc.isOwnProperty)(e,y,f)}else u.length?v=(0,Sn.or)(...u.map(y=>(0,Sn._)`${f} === ${y}`)):v=Sn.nil;return c.length&&(v=(0,Sn.or)(v,...c.map(y=>(0,Sn._)`${(0,oc.usePattern)(t,y)}.test(${f})`))),(0,Sn.not)(v)}function h(f){e.code((0,Sn._)`delete ${a}[${f}]`)}function g(f){if(l.removeAdditional==="all"||l.removeAdditional&&i===!1){h(f);return}if(i===!1){t.setParams({additionalProperty:f}),t.error(),o||e.break();return}if(typeof i=="object"&&!(0,lc.alwaysValidSchema)(s,i)){let v=e.name("valid");l.removeAdditional==="failing"?(m(f,v,!1),e.if((0,Sn.not)(v),()=>{t.reset(),h(f)})):(m(f,v),o||e.if((0,Sn.not)(v),()=>e.break()))}}function m(f,v,y){let A={keyword:"additionalProperties",dataProp:f,dataPropType:lc.Type.Str};y===!1&&Object.assign(A,{compositeRule:!0,createErrors:!1,allErrors:!1}),t.subschema(A,v)}}};Rf.default=dB});var rT=w(Df=>{"use strict";Object.defineProperty(Df,"__esModule",{value:!0});var hB=uo(),tT=pn(),zf=we(),aT=If(),gB={keyword:"properties",type:"object",schemaType:"object",code(t){let{gen:e,schema:i,parentSchema:n,data:a,it:r}=t;r.opts.removeAdditional==="all"&&n.additionalProperties===void 0&&aT.default.code(new hB.KeywordCxt(r,aT.default,"additionalProperties"));let s=(0,tT.allSchemaProperties)(i);for(let p of s)r.definedProperties.add(p);r.opts.unevaluated&&s.length&&r.props!==!0&&(r.props=zf.mergeEvaluated.props(e,(0,zf.toHash)(s),r.props));let o=s.filter(p=>!(0,zf.alwaysValidSchema)(r,i[p]));if(o.length===0)return;let l=e.name("valid");for(let p of o)u(p)?c(p):(e.if((0,tT.propertyInData)(e,a,p,r.opts.ownProperties)),c(p),r.allErrors||e.else().var(l,!0),e.endIf()),t.it.definedProperties.add(p),t.ok(l);function u(p){return r.opts.useDefaults&&!r.compositeRule&&i[p].default!==void 0}function c(p){t.subschema({keyword:"properties",schemaProp:p,dataProp:p},l)}}};Df.default=gB});var uT=w(Gf=>{"use strict";Object.defineProperty(Gf,"__esModule",{value:!0});var sT=pn(),uc=re(),oT=we(),lT=we(),mB={keyword:"patternProperties",type:"object",schemaType:"object",code(t){let{gen:e,schema:i,data:n,parentSchema:a,it:r}=t,{opts:s}=r,o=(0,sT.allSchemaProperties)(i),l=o.filter(m=>(0,oT.alwaysValidSchema)(r,i[m]));if(o.length===0||l.length===o.length&&(!r.opts.unevaluated||r.props===!0))return;let u=s.strictSchema&&!s.allowMatchingProperties&&a.properties,c=e.name("valid");r.props!==!0&&!(r.props instanceof uc.Name)&&(r.props=(0,lT.evaluatedPropsToName)(e,r.props));let{props:p}=r;d();function d(){for(let m of o)u&&h(m),r.allErrors?g(m):(e.var(c,!0),g(m),e.if(c))}function h(m){for(let f in u)new RegExp(m).test(f)&&(0,oT.checkStrictMode)(r,`property ${f} matches pattern ${m} (use allowMatchingProperties)`)}function g(m){e.forIn("key",n,f=>{e.if((0,uc._)`${(0,sT.usePattern)(t,m)}.test(${f})`,()=>{let v=l.includes(m);v||t.subschema({keyword:"patternProperties",schemaProp:m,dataProp:f,dataPropType:lT.Type.Str},c),r.opts.unevaluated&&p!==!0?e.assign((0,uc._)`${p}[${f}]`,!0):!v&&!r.allErrors&&e.if((0,uc.not)(c),()=>e.break())})})}}};Gf.default=mB});var cT=w($f=>{"use strict";Object.defineProperty($f,"__esModule",{value:!0});var fB=we(),wB={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(t){let{gen:e,schema:i,it:n}=t;if((0,fB.alwaysValidSchema)(n,i)){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"}};$f.default=wB});var pT=w(Nf=>{"use strict";Object.defineProperty(Nf,"__esModule",{value:!0});var vB=pn(),CB={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:vB.validateUnion,error:{message:"must match a schema in anyOf"}};Nf.default=CB});var dT=w(Uf=>{"use strict";Object.defineProperty(Uf,"__esModule",{value:!0});var cc=re(),AB=we(),bB={message:"must match exactly one schema in oneOf",params:({params:t})=>(0,cc._)`{passingSchemas: ${t.passing}}`},yB={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:bB,code(t){let{gen:e,schema:i,parentSchema:n,it:a}=t;if(!Array.isArray(i))throw new Error("ajv implementation error");if(a.opts.discriminator&&n.discriminator)return;let r=i,s=e.let("valid",!1),o=e.let("passing",null),l=e.name("_valid");t.setParams({passing:o}),e.block(u),t.result(s,()=>t.reset(),()=>t.error(!0));function u(){r.forEach((c,p)=>{let d;(0,AB.alwaysValidSchema)(a,c)?e.var(l,!0):d=t.subschema({keyword:"oneOf",schemaProp:p,compositeRule:!0},l),p>0&&e.if((0,cc._)`${l} && ${s}`).assign(s,!1).assign(o,(0,cc._)`[${o}, ${p}]`).else(),e.if(l,()=>{e.assign(s,!0),e.assign(o,p),d&&t.mergeEvaluated(d,cc.Name)})})}}};Uf.default=yB});var hT=w(Lf=>{"use strict";Object.defineProperty(Lf,"__esModule",{value:!0});var PB=we(),jB={keyword:"allOf",schemaType:"array",code(t){let{gen:e,schema:i,it:n}=t;if(!Array.isArray(i))throw new Error("ajv implementation error");let a=e.name("valid");i.forEach((r,s)=>{if((0,PB.alwaysValidSchema)(n,r))return;let o=t.subschema({keyword:"allOf",schemaProp:s},a);t.ok(a),t.mergeEvaluated(o)})}};Lf.default=jB});var fT=w(Wf=>{"use strict";Object.defineProperty(Wf,"__esModule",{value:!0});var pc=re(),mT=we(),SB={message:({params:t})=>(0,pc.str)`must match "${t.ifClause}" schema`,params:({params:t})=>(0,pc._)`{failingKeyword: ${t.ifClause}}`},OB={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:SB,code(t){let{gen:e,parentSchema:i,it:n}=t;i.then===void 0&&i.else===void 0&&(0,mT.checkStrictMode)(n,'"if" without "then" and "else" is ignored');let a=gT(n,"then"),r=gT(n,"else");if(!a&&!r)return;let s=e.let("valid",!0),o=e.name("_valid");if(l(),t.reset(),a&&r){let c=e.let("ifClause");t.setParams({ifClause:c}),e.if(o,u("then",c),u("else",c))}else a?e.if(o,u("then")):e.if((0,pc.not)(o),u("else"));t.pass(s,()=>t.error(!0));function l(){let c=t.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},o);t.mergeEvaluated(c)}function u(c,p){return()=>{let d=t.subschema({keyword:c},o);e.assign(s,o),t.mergeValidEvaluated(d,s),p?e.assign(p,(0,pc._)`${c}`):t.setParams({ifClause:c})}}}};function gT(t,e){let i=t.schema[e];return i!==void 0&&!(0,mT.alwaysValidSchema)(t,i)}Wf.default=OB});var wT=w(Bf=>{"use strict";Object.defineProperty(Bf,"__esModule",{value:!0});var xB=we(),TB={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:t,parentSchema:e,it:i}){e.if===void 0&&(0,xB.checkStrictMode)(i,`"${t}" without "if" is ignored`)}};Bf.default=TB});var vT=w(Ff=>{"use strict";Object.defineProperty(Ff,"__esModule",{value:!0});var MB=Tf(),EB=Jx(),kB=Mf(),qB=Kx(),_B=Qx(),HB=eT(),RB=nT(),IB=If(),zB=rT(),DB=uT(),GB=cT(),$B=pT(),NB=dT(),UB=hT(),LB=fT(),WB=wT();function BB(t=!1){let e=[GB.default,$B.default,NB.default,UB.default,LB.default,WB.default,RB.default,IB.default,HB.default,zB.default,DB.default];return t?e.push(EB.default,qB.default):e.push(MB.default,kB.default),e.push(_B.default),e}Ff.default=BB});var CT=w(Vf=>{"use strict";Object.defineProperty(Vf,"__esModule",{value:!0});var ii=re(),FB={message:({schemaCode:t})=>(0,ii.str)`must match format "${t}"`,params:({schemaCode:t})=>(0,ii._)`{format: ${t}}`},VB={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:FB,code(t,e){let{gen:i,data:n,$data:a,schema:r,schemaCode:s,it:o}=t,{opts:l,errSchemaPath:u,schemaEnv:c,self:p}=o;if(!l.validateFormats)return;a?d():h();function d(){let g=i.scopeValue("formats",{ref:p.formats,code:l.code.formats}),m=i.const("fDef",(0,ii._)`${g}[${s}]`),f=i.let("fType"),v=i.let("format");i.if((0,ii._)`typeof ${m} == "object" && !(${m} instanceof RegExp)`,()=>i.assign(f,(0,ii._)`${m}.type || "string"`).assign(v,(0,ii._)`${m}.validate`),()=>i.assign(f,(0,ii._)`"string"`).assign(v,m)),t.fail$data((0,ii.or)(y(),A()));function y(){return l.strictSchema===!1?ii.nil:(0,ii._)`${s} && !${v}`}function A(){let b=c.$async?(0,ii._)`(${m}.async ? await ${v}(${n}) : ${v}(${n}))`:(0,ii._)`${v}(${n})`,O=(0,ii._)`(typeof ${v} == "function" ? ${b} : ${v}.test(${n}))`;return(0,ii._)`${v} && ${v} !== true && ${f} === ${e} && !${O}`}}function h(){let g=p.formats[r];if(!g){y();return}if(g===!0)return;let[m,f,v]=A(g);m===e&&t.pass(b());function y(){if(l.strictSchema===!1){p.logger.warn(O());return}throw new Error(O());function O(){return`unknown format "${r}" ignored in schema at path "${u}"`}}function A(O){let $=O instanceof RegExp?(0,ii.regexpCode)(O):l.code.formats?(0,ii._)`${l.code.formats}${(0,ii.getProperty)(r)}`:void 0,N=i.scopeValue("formats",{key:r,ref:O,code:$});return typeof O=="object"&&!(O instanceof RegExp)?[O.type||"string",O.validate,(0,ii._)`${N}.validate`]:["string",O,N]}function b(){if(typeof g=="object"&&!(g instanceof RegExp)&&g.async){if(!c.$async)throw new Error("async format in sync schema");return(0,ii._)`await ${v}(${n})`}return typeof f=="function"?(0,ii._)`${v}(${n})`:(0,ii._)`${v}.test(${n})`}}}};Vf.default=VB});var AT=w(Jf=>{"use strict";Object.defineProperty(Jf,"__esModule",{value:!0});var JB=CT(),ZB=[JB.default];Jf.default=ZB});var bT=w(qr=>{"use strict";Object.defineProperty(qr,"__esModule",{value:!0});qr.contentVocabulary=qr.metadataVocabulary=void 0;qr.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"];qr.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]});var PT=w(Zf=>{"use strict";Object.defineProperty(Zf,"__esModule",{value:!0});var KB=Ex(),QB=Wx(),YB=vT(),XB=AT(),yT=bT(),eF=[KB.default,QB.default,(0,YB.default)(),XB.default,yT.metadataVocabulary,yT.contentVocabulary];Zf.default=eF});var ST=w(dc=>{"use strict";Object.defineProperty(dc,"__esModule",{value:!0});dc.DiscrError=void 0;var jT;(function(t){t.Tag="tag",t.Mapping="mapping"})(jT||(dc.DiscrError=jT={}))});var xT=w(Qf=>{"use strict";Object.defineProperty(Qf,"__esModule",{value:!0});var _r=re(),Kf=ST(),OT=Zu(),iF=co(),nF=we(),tF={message:({params:{discrError:t,tagName:e}})=>t===Kf.DiscrError.Tag?`tag "${e}" must be string`:`value of tag "${e}" must be in oneOf`,params:({params:{discrError:t,tag:e,tagName:i}})=>(0,_r._)`{error: ${t}, tag: ${i}, tagValue: ${e}}`},aF={keyword:"discriminator",type:"object",schemaType:"object",error:tF,code(t){let{gen:e,data:i,schema:n,parentSchema:a,it:r}=t,{oneOf:s}=a;if(!r.opts.discriminator)throw new Error("discriminator: requires discriminator option");let o=n.propertyName;if(typeof o!="string")throw new Error("discriminator: requires propertyName");if(n.mapping)throw new Error("discriminator: mapping is not supported");if(!s)throw new Error("discriminator: requires oneOf keyword");let l=e.let("valid",!1),u=e.const("tag",(0,_r._)`${i}${(0,_r.getProperty)(o)}`);e.if((0,_r._)`typeof ${u} == "string"`,()=>c(),()=>t.error(!1,{discrError:Kf.DiscrError.Tag,tag:u,tagName:o})),t.ok(l);function c(){let h=d();e.if(!1);for(let g in h)e.elseIf((0,_r._)`${u} === ${g}`),e.assign(l,p(h[g]));e.else(),t.error(!1,{discrError:Kf.DiscrError.Mapping,tag:u,tagName:o}),e.endIf()}function p(h){let g=e.name("valid"),m=t.subschema({keyword:"oneOf",schemaProp:h},g);return t.mergeEvaluated(m,_r.Name),g}function d(){var h;let g={},m=v(a),f=!0;for(let b=0;b{rF.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 Xf=w((Ue,Yf)=>{"use strict";Object.defineProperty(Ue,"__esModule",{value:!0});Ue.MissingRefError=Ue.ValidationError=Ue.CodeGen=Ue.Name=Ue.nil=Ue.stringify=Ue.str=Ue._=Ue.KeywordCxt=Ue.Ajv=void 0;var sF=jx(),oF=PT(),lF=xT(),MT=TT(),uF=["/properties"],hc="http://json-schema.org/draft-07/schema",Hr=class extends sF.default{_addVocabularies(){super._addVocabularies(),oF.default.forEach(e=>this.addVocabulary(e)),this.opts.discriminator&&this.addKeyword(lF.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;let e=this.opts.$data?this.$dataMetaSchema(MT,uF):MT;this.addMetaSchema(e,hc,!1),this.refs["http://json-schema.org/schema"]=hc}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(hc)?hc:void 0)}};Ue.Ajv=Hr;Yf.exports=Ue=Hr;Yf.exports.Ajv=Hr;Object.defineProperty(Ue,"__esModule",{value:!0});Ue.default=Hr;var cF=uo();Object.defineProperty(Ue,"KeywordCxt",{enumerable:!0,get:function(){return cF.KeywordCxt}});var Rr=re();Object.defineProperty(Ue,"_",{enumerable:!0,get:function(){return Rr._}});Object.defineProperty(Ue,"str",{enumerable:!0,get:function(){return Rr.str}});Object.defineProperty(Ue,"stringify",{enumerable:!0,get:function(){return Rr.stringify}});Object.defineProperty(Ue,"nil",{enumerable:!0,get:function(){return Rr.nil}});Object.defineProperty(Ue,"Name",{enumerable:!0,get:function(){return Rr.Name}});Object.defineProperty(Ue,"CodeGen",{enumerable:!0,get:function(){return Rr.CodeGen}});var pF=Vu();Object.defineProperty(Ue,"ValidationError",{enumerable:!0,get:function(){return pF.default}});var dF=co();Object.defineProperty(Ue,"MissingRefError",{enumerable:!0,get:function(){return dF.default}})});var zT=w($n=>{"use strict";Object.defineProperty($n,"__esModule",{value:!0});$n.formatNames=$n.fastFormats=$n.fullFormats=void 0;function Gn(t,e){return{validate:t,compare:e}}$n.fullFormats={date:Gn(_T,tw),time:Gn(iw(!0),aw),"date-time":Gn(ET(!0),RT),"iso-time":Gn(iw(),HT),"iso-date-time":Gn(ET(),IT),duration:/^P(?!$)((\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?|(\d+W)?)$/,uri:vF,"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:SF,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:CF,int32:{type:"number",validate:yF},int64:{type:"number",validate:PF},float:{type:"number",validate:qT},double:{type:"number",validate:qT},password:!0,binary:!0};$n.fastFormats={...$n.fullFormats,date:Gn(/^\d\d\d\d-[0-1]\d-[0-3]\d$/,tw),time:Gn(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,aw),"date-time":Gn(/^\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,RT),"iso-time":Gn(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,HT),"iso-date-time":Gn(/^\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,IT),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};$n.formatNames=Object.keys($n.fullFormats);function hF(t){return t%4===0&&(t%100!==0||t%400===0)}var gF=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,mF=[0,31,28,31,30,31,30,31,31,30,31,30,31];function _T(t){let e=gF.exec(t);if(!e)return!1;let i=+e[1],n=+e[2],a=+e[3];return n>=1&&n<=12&&a>=1&&a<=(n===2&&hF(i)?29:mF[n])}function tw(t,e){if(t&&e)return t>e?1:t23||c>59||t&&!o)return!1;if(a<=23&&r<=59&&s<60)return!0;let p=r-c*l,d=a-u*l-(p<0?1:0);return(d===23||d===-1)&&(p===59||p===-1)&&s<61}}function aw(t,e){if(!(t&&e))return;let i=new Date("2020-01-01T"+t).valueOf(),n=new Date("2020-01-01T"+e).valueOf();if(i&&n)return i-n}function HT(t,e){if(!(t&&e))return;let i=ew.exec(t),n=ew.exec(e);if(i&&n)return t=i[1]+i[2]+i[3],e=n[1]+n[2]+n[3],t>e?1:t=AF}function PF(t){return Number.isInteger(t)}function qT(){return!0}var jF=/[^\\]\\Z/;function SF(t){if(jF.test(t))return!1;try{return new RegExp(t),!0}catch{return!1}}});var DT=w(Ir=>{"use strict";Object.defineProperty(Ir,"__esModule",{value:!0});Ir.formatLimitDefinition=void 0;var OF=Xf(),On=re(),Ht=On.operators,gc={formatMaximum:{okStr:"<=",ok:Ht.LTE,fail:Ht.GT},formatMinimum:{okStr:">=",ok:Ht.GTE,fail:Ht.LT},formatExclusiveMaximum:{okStr:"<",ok:Ht.LT,fail:Ht.GTE},formatExclusiveMinimum:{okStr:">",ok:Ht.GT,fail:Ht.LTE}},xF={message:({keyword:t,schemaCode:e})=>(0,On.str)`should be ${gc[t].okStr} ${e}`,params:({keyword:t,schemaCode:e})=>(0,On._)`{comparison: ${gc[t].okStr}, limit: ${e}}`};Ir.formatLimitDefinition={keyword:Object.keys(gc),type:"string",schemaType:"string",$data:!0,error:xF,code(t){let{gen:e,data:i,schemaCode:n,keyword:a,it:r}=t,{opts:s,self:o}=r;if(!s.validateFormats)return;let l=new OF.KeywordCxt(r,o.RULES.all.format.definition,"format");l.$data?u():c();function u(){let d=e.scopeValue("formats",{ref:o.formats,code:s.code.formats}),h=e.const("fmt",(0,On._)`${d}[${l.schemaCode}]`);t.fail$data((0,On.or)((0,On._)`typeof ${h} != "object"`,(0,On._)`${h} instanceof RegExp`,(0,On._)`typeof ${h}.compare != "function"`,p(h)))}function c(){let d=l.schema,h=o.formats[d];if(!h||h===!0)return;if(typeof h!="object"||h instanceof RegExp||typeof h.compare!="function")throw new Error(`"${a}": format "${d}" does not define "compare" function`);let g=e.scopeValue("formats",{key:d,ref:h,code:s.code.formats?(0,On._)`${s.code.formats}${(0,On.getProperty)(d)}`:void 0});t.fail$data(p(g))}function p(d){return(0,On._)`${d}.compare(${i}, ${n}) ${gc[a].fail} 0`}},dependencies:["format"]};var TF=t=>(t.addKeyword(Ir.formatLimitDefinition),t);Ir.default=TF});var UT=w((So,NT)=>{"use strict";Object.defineProperty(So,"__esModule",{value:!0});var zr=zT(),MF=DT(),rw=re(),GT=new rw.Name("fullFormats"),EF=new rw.Name("fastFormats"),sw=(t,e={keywords:!0})=>{if(Array.isArray(e))return $T(t,e,zr.fullFormats,GT),t;let[i,n]=e.mode==="fast"?[zr.fastFormats,EF]:[zr.fullFormats,GT],a=e.formats||zr.formatNames;return $T(t,a,i,n),e.keywords&&(0,MF.default)(t),t};sw.get=(t,e="full")=>{let n=(e==="fast"?zr.fastFormats:zr.fullFormats)[t];if(!n)throw new Error(`Unknown format "${t}"`);return n};function $T(t,e,i,n){var a,r;(a=(r=t.opts.code).formats)!==null&&a!==void 0||(r.formats=(0,rw._)`require("ajv-formats/dist/formats").${n}`);for(let s of e)t.addFormat(s,i[s])}NT.exports=So=sw;Object.defineProperty(So,"__esModule",{value:!0});So.default=sw});var tM=w((nse,nM)=>{var iM=require("stream").Stream,DF=require("util");nM.exports=xn;function xn(){this.source=null,this.dataSize=0,this.maxDataSize=1024*1024,this.pauseStream=!0,this._maxDataSizeExceeded=!1,this._released=!1,this._bufferedEvents=[]}DF.inherits(xn,iM);xn.create=function(t,e){var i=new this;e=e||{};for(var n in e)i[n]=e[n];i.source=t;var a=t.emit;return t.emit=function(){return i._handleEmit(arguments),a.apply(t,arguments)},t.on("error",function(){}),i.pauseStream&&t.pause(),i};Object.defineProperty(xn.prototype,"readable",{configurable:!0,enumerable:!0,get:function(){return this.source.readable}});xn.prototype.setEncoding=function(){return this.source.setEncoding.apply(this.source,arguments)};xn.prototype.resume=function(){this._released||this.release(),this.source.resume()};xn.prototype.pause=function(){this.source.pause()};xn.prototype.release=function(){this._released=!0,this._bufferedEvents.forEach(function(t){this.emit.apply(this,t)}.bind(this)),this._bufferedEvents=[]};xn.prototype.pipe=function(){var t=iM.prototype.pipe.apply(this,arguments);return this.resume(),t};xn.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)};xn.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 oM=w((tse,sM)=>{var GF=require("util"),rM=require("stream").Stream,aM=tM();sM.exports=Ke;function Ke(){this.writable=!1,this.readable=!0,this.dataSize=0,this.maxDataSize=2*1024*1024,this.pauseStreams=!0,this._released=!1,this._streams=[],this._currentStream=null,this._insideLoop=!1,this._pendingNext=!1}GF.inherits(Ke,rM);Ke.create=function(t){var e=new this;t=t||{};for(var i in t)e[i]=t[i];return e};Ke.isStreamLike=function(t){return typeof t!="function"&&typeof t!="string"&&typeof t!="boolean"&&typeof t!="number"&&!Buffer.isBuffer(t)};Ke.prototype.append=function(t){var e=Ke.isStreamLike(t);if(e){if(!(t instanceof aM)){var i=aM.create(t,{maxDataSize:1/0,pauseStream:this.pauseStreams});t.on("data",this._checkDataSize.bind(this)),t=i}this._handleErrors(t),this.pauseStreams&&t.pause()}return this._streams.push(t),this};Ke.prototype.pipe=function(t,e){return rM.prototype.pipe.call(this,t,e),this.resume(),t};Ke.prototype._getNext=function(){if(this._currentStream=null,this._insideLoop){this._pendingNext=!0;return}this._insideLoop=!0;try{do this._pendingNext=!1,this._realGetNext();while(this._pendingNext)}finally{this._insideLoop=!1}};Ke.prototype._realGetNext=function(){var t=this._streams.shift();if(typeof t>"u"){this.end();return}if(typeof t!="function"){this._pipeNext(t);return}var e=t;e(function(i){var n=Ke.isStreamLike(i);n&&(i.on("data",this._checkDataSize.bind(this)),this._handleErrors(i)),this._pipeNext(i)}.bind(this))};Ke.prototype._pipeNext=function(t){this._currentStream=t;var e=Ke.isStreamLike(t);if(e){t.on("end",this._getNext.bind(this)),t.pipe(this,{end:!1});return}var i=t;this.write(i),this._getNext()};Ke.prototype._handleErrors=function(t){var e=this;t.on("error",function(i){e._emitError(i)})};Ke.prototype.write=function(t){this.emit("data",t)};Ke.prototype.pause=function(){this.pauseStreams&&(this.pauseStreams&&this._currentStream&&typeof this._currentStream.pause=="function"&&this._currentStream.pause(),this.emit("pause"))};Ke.prototype.resume=function(){this._released||(this._released=!0,this.writable=!0,this._getNext()),this.pauseStreams&&this._currentStream&&typeof this._currentStream.resume=="function"&&this._currentStream.resume(),this.emit("resume")};Ke.prototype.end=function(){this._reset(),this.emit("end")};Ke.prototype.destroy=function(){this._reset(),this.emit("close")};Ke.prototype._reset=function(){this.writable=!1,this._streams=[],this._currentStream=null};Ke.prototype._checkDataSize=function(){if(this._updateDataSize(),!(this.dataSize<=this.maxDataSize)){var t="DelayedStream#maxDataSize of "+this.maxDataSize+" bytes exceeded.";this._emitError(new Error(t))}};Ke.prototype._updateDataSize=function(){this.dataSize=0;var t=this;this._streams.forEach(function(e){e.dataSize&&(t.dataSize+=e.dataSize)}),this._currentStream&&this._currentStream.dataSize&&(this.dataSize+=this._currentStream.dataSize)};Ke.prototype._emitError=function(t){this._reset(),this.emit("error",t)}});var lM=w((ase,$F)=>{$F.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 cM=w((rse,uM)=>{uM.exports=lM()});var hM=w(Wi=>{"use strict";var yc=cM(),NF=require("path").extname,pM=/^\s*([^;\s]*)(?:;|\s|$)/,UF=/^text\//i;Wi.charset=dM;Wi.charsets={lookup:dM};Wi.contentType=LF;Wi.extension=WF;Wi.extensions=Object.create(null);Wi.lookup=BF;Wi.types=Object.create(null);FF(Wi.extensions,Wi.types);function dM(t){if(!t||typeof t!="string")return!1;var e=pM.exec(t),i=e&&yc[e[1].toLowerCase()];return i&&i.charset?i.charset:e&&UF.test(e[1])?"UTF-8":!1}function LF(t){if(!t||typeof t!="string")return!1;var e=t.indexOf("/")===-1?Wi.lookup(t):t;if(!e)return!1;if(e.indexOf("charset")===-1){var i=Wi.charset(e);i&&(e+="; charset="+i.toLowerCase())}return e}function WF(t){if(!t||typeof t!="string")return!1;var e=pM.exec(t),i=e&&Wi.extensions[e[1].toLowerCase()];return!i||!i.length?!1:i[0]}function BF(t){if(!t||typeof t!="string")return!1;var e=NF("x."+t).toLowerCase().substr(1);return e&&Wi.types[e]||!1}function FF(t,e){var i=["nginx","apache",void 0,"iana"];Object.keys(yc).forEach(function(a){var r=yc[a],s=r.extensions;if(!(!s||!s.length)){t[a]=s;for(var o=0;oc||u===c&&e[l].substr(0,12)==="application/"))continue}e[l]=a}}})}});var mM=w((ose,gM)=>{gM.exports=VF;function VF(t){var e=typeof setImmediate=="function"?setImmediate:typeof process=="object"&&typeof process.nextTick=="function"?process.nextTick:null;e?e(t):setTimeout(t,0)}});var pw=w((lse,wM)=>{var fM=mM();wM.exports=JF;function JF(t){var e=!1;return fM(function(){e=!0}),function(n,a){e?t(n,a):fM(function(){t(n,a)})}}});var dw=w((use,vM)=>{vM.exports=ZF;function ZF(t){Object.keys(t.jobs).forEach(KF.bind(t)),t.jobs={}}function KF(t){typeof this.jobs[t]=="function"&&this.jobs[t]()}});var hw=w((cse,AM)=>{var CM=pw(),QF=dw();AM.exports=YF;function YF(t,e,i,n){var a=i.keyedList?i.keyedList[i.index]:i.index;i.jobs[a]=XF(e,a,t[a],function(r,s){a in i.jobs&&(delete i.jobs[a],r?QF(i):i.results[a]=s,n(r,i.results))})}function XF(t,e,i,n){var a;return t.length==2?a=t(i,CM(n)):a=t(i,e,CM(n)),a}});var gw=w((pse,bM)=>{bM.exports=eV;function eV(t,e){var i=!Array.isArray(t),n={index:0,keyedList:i||e?Object.keys(t):null,jobs:{},results:i?{}:[],size:i?Object.keys(t).length:t.length};return e&&n.keyedList.sort(i?e:function(a,r){return e(t[a],t[r])}),n}});var mw=w((dse,yM)=>{var iV=dw(),nV=pw();yM.exports=tV;function tV(t){Object.keys(this.jobs).length&&(this.index=this.size,iV(this),nV(t)(null,this.results))}});var jM=w((hse,PM)=>{var aV=hw(),rV=gw(),sV=mw();PM.exports=oV;function oV(t,e,i){for(var n=rV(t);n.index<(n.keyedList||t).length;)aV(t,e,n,function(a,r){if(a){i(a,r);return}if(Object.keys(n.jobs).length===0){i(null,n.results);return}}),n.index++;return sV.bind(n,i)}});var fw=w((gse,Pc)=>{var SM=hw(),lV=gw(),uV=mw();Pc.exports=cV;Pc.exports.ascending=OM;Pc.exports.descending=pV;function cV(t,e,i,n){var a=lV(t,i);return SM(t,e,a,function r(s,o){if(s){n(s,o);return}if(a.index++,a.index<(a.keyedList||t).length){SM(t,e,a,r);return}n(null,a.results)}),uV.bind(a,n)}function OM(t,e){return te?1:0}function pV(t,e){return-1*OM(t,e)}});var TM=w((mse,xM)=>{var dV=fw();xM.exports=hV;function hV(t,e,i){return dV(t,e,null,i)}});var EM=w((fse,MM)=>{MM.exports={parallel:jM(),serial:TM(),serialOrdered:fw()}});var ww=w((wse,kM)=>{"use strict";kM.exports=Object});var _M=w((vse,qM)=>{"use strict";qM.exports=Error});var RM=w((Cse,HM)=>{"use strict";HM.exports=EvalError});var zM=w((Ase,IM)=>{"use strict";IM.exports=RangeError});var GM=w((bse,DM)=>{"use strict";DM.exports=ReferenceError});var NM=w((yse,$M)=>{"use strict";$M.exports=SyntaxError});var It=w((Pse,UM)=>{"use strict";UM.exports=TypeError});var WM=w((jse,LM)=>{"use strict";LM.exports=URIError});var FM=w((Sse,BM)=>{"use strict";BM.exports=Math.abs});var JM=w((Ose,VM)=>{"use strict";VM.exports=Math.floor});var KM=w((xse,ZM)=>{"use strict";ZM.exports=Math.max});var YM=w((Tse,QM)=>{"use strict";QM.exports=Math.min});var eE=w((Mse,XM)=>{"use strict";XM.exports=Math.pow});var nE=w((Ese,iE)=>{"use strict";iE.exports=Math.round});var aE=w((kse,tE)=>{"use strict";tE.exports=Number.isNaN||function(e){return e!==e}});var sE=w((qse,rE)=>{"use strict";var gV=aE();rE.exports=function(e){return gV(e)||e===0?e:e<0?-1:1}});var lE=w((_se,oE)=>{"use strict";oE.exports=Object.getOwnPropertyDescriptor});var vw=w((Hse,uE)=>{"use strict";var jc=lE();if(jc)try{jc([],"length")}catch{jc=null}uE.exports=jc});var pE=w((Rse,cE)=>{"use strict";var Sc=Object.defineProperty||!1;if(Sc)try{Sc({},"a",{value:1})}catch{Sc=!1}cE.exports=Sc});var Cw=w((Ise,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={},i=Symbol("test"),n=Object(i);if(typeof i=="string"||Object.prototype.toString.call(i)!=="[object Symbol]"||Object.prototype.toString.call(n)!=="[object Symbol]")return!1;var a=42;e[i]=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]!==i||!Object.prototype.propertyIsEnumerable.call(e,i))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var o=Object.getOwnPropertyDescriptor(e,i);if(o.value!==a||o.enumerable!==!0)return!1}return!0}});var mE=w((zse,gE)=>{"use strict";var hE=typeof Symbol<"u"&&Symbol,mV=Cw();gE.exports=function(){return typeof hE!="function"||typeof Symbol!="function"||typeof hE("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:mV()}});var Aw=w((Dse,fE)=>{"use strict";fE.exports=typeof Reflect<"u"&&Reflect.getPrototypeOf||null});var bw=w((Gse,wE)=>{"use strict";var fV=ww();wE.exports=fV.getPrototypeOf||null});var AE=w(($se,CE)=>{"use strict";var wV="Function.prototype.bind called on incompatible ",vV=Object.prototype.toString,CV=Math.max,AV="[object Function]",vE=function(e,i){for(var n=[],a=0;a{"use strict";var PV=AE();bE.exports=Function.prototype.bind||PV});var Oc=w((Use,yE)=>{"use strict";yE.exports=Function.prototype.call});var yw=w((Lse,PE)=>{"use strict";PE.exports=Function.prototype.apply});var SE=w((Wse,jE)=>{"use strict";jE.exports=typeof Reflect<"u"&&Reflect&&Reflect.apply});var xE=w((Bse,OE)=>{"use strict";var jV=xo(),SV=yw(),OV=Oc(),xV=SE();OE.exports=xV||jV.call(OV,SV)});var Pw=w((Fse,TE)=>{"use strict";var TV=xo(),MV=It(),EV=Oc(),kV=xE();TE.exports=function(e){if(e.length<1||typeof e[0]!="function")throw new MV("a function is required");return kV(TV,EV,e)}});var HE=w((Vse,_E)=>{"use strict";var qV=Pw(),ME=vw(),kE;try{kE=[].__proto__===Array.prototype}catch(t){if(!t||typeof t!="object"||!("code"in t)||t.code!=="ERR_PROTO_ACCESS")throw t}var jw=!!kE&&ME&&ME(Object.prototype,"__proto__"),qE=Object,EE=qE.getPrototypeOf;_E.exports=jw&&typeof jw.get=="function"?qV([jw.get]):typeof EE=="function"?function(e){return EE(e==null?e:qE(e))}:!1});var GE=w((Jse,DE)=>{"use strict";var RE=Aw(),IE=bw(),zE=HE();DE.exports=RE?function(e){return RE(e)}:IE?function(e){if(!e||typeof e!="object"&&typeof e!="function")throw new TypeError("getProto: not an object");return IE(e)}:zE?function(e){return zE(e)}:null});var xc=w((Zse,$E)=>{"use strict";var _V=Function.prototype.call,HV=Object.prototype.hasOwnProperty,RV=xo();$E.exports=RV.call(_V,HV)});var ko=w((Kse,FE)=>{"use strict";var pe,IV=ww(),zV=_M(),DV=RM(),GV=zM(),$V=GM(),Nr=NM(),$r=It(),NV=WM(),UV=FM(),LV=JM(),WV=KM(),BV=YM(),FV=eE(),VV=nE(),JV=sE(),WE=Function,Sw=function(t){try{return WE('"use strict"; return ('+t+").constructor;")()}catch{}},To=vw(),ZV=pE(),Ow=function(){throw new $r},KV=To?(function(){try{return arguments.callee,Ow}catch{try{return To(arguments,"callee").get}catch{return Ow}}})():Ow,Dr=mE()(),gi=GE(),QV=bw(),YV=Aw(),BE=yw(),Mo=Oc(),Gr={},XV=typeof Uint8Array>"u"||!gi?pe:gi(Uint8Array),Ma={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?pe:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?pe:ArrayBuffer,"%ArrayIteratorPrototype%":Dr&&gi?gi([][Symbol.iterator]()):pe,"%AsyncFromSyncIteratorPrototype%":pe,"%AsyncFunction%":Gr,"%AsyncGenerator%":Gr,"%AsyncGeneratorFunction%":Gr,"%AsyncIteratorPrototype%":Gr,"%Atomics%":typeof Atomics>"u"?pe:Atomics,"%BigInt%":typeof BigInt>"u"?pe:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?pe:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?pe:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?pe:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":zV,"%eval%":eval,"%EvalError%":DV,"%Float16Array%":typeof Float16Array>"u"?pe:Float16Array,"%Float32Array%":typeof Float32Array>"u"?pe:Float32Array,"%Float64Array%":typeof Float64Array>"u"?pe:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?pe:FinalizationRegistry,"%Function%":WE,"%GeneratorFunction%":Gr,"%Int8Array%":typeof Int8Array>"u"?pe:Int8Array,"%Int16Array%":typeof Int16Array>"u"?pe:Int16Array,"%Int32Array%":typeof Int32Array>"u"?pe:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Dr&&gi?gi(gi([][Symbol.iterator]())):pe,"%JSON%":typeof JSON=="object"?JSON:pe,"%Map%":typeof Map>"u"?pe:Map,"%MapIteratorPrototype%":typeof Map>"u"||!Dr||!gi?pe:gi(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":IV,"%Object.getOwnPropertyDescriptor%":To,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?pe:Promise,"%Proxy%":typeof Proxy>"u"?pe:Proxy,"%RangeError%":GV,"%ReferenceError%":$V,"%Reflect%":typeof Reflect>"u"?pe:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?pe:Set,"%SetIteratorPrototype%":typeof Set>"u"||!Dr||!gi?pe:gi(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?pe:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":Dr&&gi?gi(""[Symbol.iterator]()):pe,"%Symbol%":Dr?Symbol:pe,"%SyntaxError%":Nr,"%ThrowTypeError%":KV,"%TypedArray%":XV,"%TypeError%":$r,"%Uint8Array%":typeof Uint8Array>"u"?pe:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?pe:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?pe:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?pe:Uint32Array,"%URIError%":NV,"%WeakMap%":typeof WeakMap>"u"?pe:WeakMap,"%WeakRef%":typeof WeakRef>"u"?pe:WeakRef,"%WeakSet%":typeof WeakSet>"u"?pe:WeakSet,"%Function.prototype.call%":Mo,"%Function.prototype.apply%":BE,"%Object.defineProperty%":ZV,"%Object.getPrototypeOf%":QV,"%Math.abs%":UV,"%Math.floor%":LV,"%Math.max%":WV,"%Math.min%":BV,"%Math.pow%":FV,"%Math.round%":VV,"%Math.sign%":JV,"%Reflect.getPrototypeOf%":YV};if(gi)try{null.error}catch(t){NE=gi(gi(t)),Ma["%Error.prototype%"]=NE}var NE,eJ=function t(e){var i;if(e==="%AsyncFunction%")i=Sw("async function () {}");else if(e==="%GeneratorFunction%")i=Sw("function* () {}");else if(e==="%AsyncGeneratorFunction%")i=Sw("async function* () {}");else if(e==="%AsyncGenerator%"){var n=t("%AsyncGeneratorFunction%");n&&(i=n.prototype)}else if(e==="%AsyncIteratorPrototype%"){var a=t("%AsyncGenerator%");a&&gi&&(i=gi(a.prototype))}return Ma[e]=i,i},UE={__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"]},Eo=xo(),Tc=xc(),iJ=Eo.call(Mo,Array.prototype.concat),nJ=Eo.call(BE,Array.prototype.splice),LE=Eo.call(Mo,String.prototype.replace),Mc=Eo.call(Mo,String.prototype.slice),tJ=Eo.call(Mo,RegExp.prototype.exec),aJ=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,rJ=/\\(\\)?/g,sJ=function(e){var i=Mc(e,0,1),n=Mc(e,-1);if(i==="%"&&n!=="%")throw new Nr("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&i!=="%")throw new Nr("invalid intrinsic syntax, expected opening `%`");var a=[];return LE(e,aJ,function(r,s,o,l){a[a.length]=o?LE(l,rJ,"$1"):s||r}),a},oJ=function(e,i){var n=e,a;if(Tc(UE,n)&&(a=UE[n],n="%"+a[0]+"%"),Tc(Ma,n)){var r=Ma[n];if(r===Gr&&(r=eJ(n)),typeof r>"u"&&!i)throw new $r("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:a,name:n,value:r}}throw new Nr("intrinsic "+e+" does not exist!")};FE.exports=function(e,i){if(typeof e!="string"||e.length===0)throw new $r("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof i!="boolean")throw new $r('"allowMissing" argument must be a boolean');if(tJ(/^%?[^%]*%?$/,e)===null)throw new Nr("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=sJ(e),a=n.length>0?n[0]:"",r=oJ("%"+a+"%",i),s=r.name,o=r.value,l=!1,u=r.alias;u&&(a=u[0],nJ(n,iJ([0,1],u)));for(var c=1,p=!0;c=n.length){var m=To(o,d);p=!!m,p&&"get"in m&&!("originalValue"in m.get)?o=m.get:o=o[d]}else p=Tc(o,d),o=o[d];p&&!l&&(Ma[s]=o)}}return o}});var JE=w((Qse,VE)=>{"use strict";var lJ=Cw();VE.exports=function(){return lJ()&&!!Symbol.toStringTag}});var QE=w((Yse,KE)=>{"use strict";var uJ=ko(),ZE=uJ("%Object.defineProperty%",!0),cJ=JE()(),pJ=xc(),dJ=It(),Ec=cJ?Symbol.toStringTag:null;KE.exports=function(e,i){var n=arguments.length>2&&!!arguments[2]&&arguments[2].force,a=arguments.length>2&&!!arguments[2]&&arguments[2].nonConfigurable;if(typeof n<"u"&&typeof n!="boolean"||typeof a<"u"&&typeof a!="boolean")throw new dJ("if provided, the `overrideIfSet` and `nonConfigurable` options must be booleans");Ec&&(n||!pJ(e,Ec))&&(ZE?ZE(e,Ec,{configurable:!a,enumerable:!1,value:i,writable:!1}):e[Ec]=i)}});var XE=w((Xse,YE)=>{"use strict";YE.exports=function(t,e){return Object.keys(e).forEach(function(i){t[i]=t[i]||e[i]}),t}});var ik=w((eoe,ek)=>{"use strict";var Ew=oM(),hJ=require("util"),xw=require("path"),gJ=require("http"),mJ=require("https"),fJ=require("url").parse,wJ=require("fs"),vJ=require("stream").Stream,CJ=require("crypto"),Tw=hM(),AJ=EM(),bJ=QE(),zt=xc(),Mw=XE();function Ce(t){if(!(this instanceof Ce))return new Ce(t);this._overheadLength=0,this._valueLength=0,this._valuesToMeasure=[],Ew.call(this),t=t||{};for(var e in t)this[e]=t[e]}hJ.inherits(Ce,Ew);Ce.LINE_BREAK=`\r -`;Ce.DEFAULT_CONTENT_TYPE="application/octet-stream";Ce.prototype.append=function(t,e,i){i=i||{},typeof i=="string"&&(i={filename:i});var n=Ew.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,i),r=this._multiPartFooter();n(a),n(e),n(r),this._trackLength(a,e,i)};Ce.prototype._trackLength=function(t,e,i){var n=0;i.knownLength!=null?n+=Number(i.knownLength):Buffer.isBuffer(e)?n=e.length:typeof e=="string"&&(n=Buffer.byteLength(e)),this._valueLength+=n,this._overheadLength+=Buffer.byteLength(t)+Ce.LINE_BREAK.length,!(!e||!e.path&&!(e.readable&&zt(e,"httpVersion"))&&!(e instanceof vJ))&&(i.knownLength||this._valuesToMeasure.push(e))};Ce.prototype._lengthRetriever=function(t,e){zt(t,"fd")?t.end!=null&&t.end!=1/0&&t.start!=null?e(null,t.end+1-(t.start?t.start:0)):wJ.stat(t.path,function(i,n){if(i){e(i);return}var a=n.size-(t.start?t.start:0);e(null,a)}):zt(t,"httpVersion")?e(null,Number(t.headers["content-length"])):zt(t,"httpModule")?(t.on("response",function(i){t.pause(),e(null,Number(i.headers["content-length"]))}),t.resume()):e("Unknown stream")};Ce.prototype._multiPartHeader=function(t,e,i){if(typeof i.header=="string")return i.header;var n=this._getContentDisposition(e,i),a=this._getContentType(e,i),r="",s={"Content-Disposition":["form-data",'name="'+t+'"'].concat(n||[]),"Content-Type":[].concat(a||[])};typeof i.header=="object"&&Mw(s,i.header);var o;for(var l in s)if(zt(s,l)){if(o=s[l],o==null)continue;Array.isArray(o)||(o=[o]),o.length&&(r+=l+": "+o.join("; ")+Ce.LINE_BREAK)}return"--"+this.getBoundary()+Ce.LINE_BREAK+r+Ce.LINE_BREAK};Ce.prototype._getContentDisposition=function(t,e){var i;if(typeof e.filepath=="string"?i=xw.normalize(e.filepath).replace(/\\/g,"/"):e.filename||t&&(t.name||t.path)?i=xw.basename(e.filename||t&&(t.name||t.path)):t&&t.readable&&zt(t,"httpVersion")&&(i=xw.basename(t.client._httpMessage.path||"")),i)return'filename="'+i+'"'};Ce.prototype._getContentType=function(t,e){var i=e.contentType;return!i&&t&&t.name&&(i=Tw.lookup(t.name)),!i&&t&&t.path&&(i=Tw.lookup(t.path)),!i&&t&&t.readable&&zt(t,"httpVersion")&&(i=t.headers["content-type"]),!i&&(e.filepath||e.filename)&&(i=Tw.lookup(e.filepath||e.filename)),!i&&t&&typeof t=="object"&&(i=Ce.DEFAULT_CONTENT_TYPE),i};Ce.prototype._multiPartFooter=function(){return function(t){var e=Ce.LINE_BREAK,i=this._streams.length===0;i&&(e+=this._lastBoundary()),t(e)}.bind(this)};Ce.prototype._lastBoundary=function(){return"--"+this.getBoundary()+"--"+Ce.LINE_BREAK};Ce.prototype.getHeaders=function(t){var e,i={"content-type":"multipart/form-data; boundary="+this.getBoundary()};for(e in t)zt(t,e)&&(i[e.toLowerCase()]=t[e]);return i};Ce.prototype.setBoundary=function(t){if(typeof t!="string")throw new TypeError("FormData boundary must be a string");this._boundary=t};Ce.prototype.getBoundary=function(){return this._boundary||this._generateBoundary(),this._boundary};Ce.prototype.getBuffer=function(){for(var t=new Buffer.alloc(0),e=this.getBoundary(),i=0,n=this._streams.length;i{var Ur=1e3,Lr=Ur*60,Wr=Lr*60,Ea=Wr*24,yJ=Ea*7,PJ=Ea*365.25;nk.exports=function(t,e){e=e||{};var i=typeof t;if(i==="string"&&t.length>0)return jJ(t);if(i==="number"&&isFinite(t))return e.long?OJ(t):SJ(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))};function jJ(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 i=parseFloat(e[1]),n=(e[2]||"ms").toLowerCase();switch(n){case"years":case"year":case"yrs":case"yr":case"y":return i*PJ;case"weeks":case"week":case"w":return i*yJ;case"days":case"day":case"d":return i*Ea;case"hours":case"hour":case"hrs":case"hr":case"h":return i*Wr;case"minutes":case"minute":case"mins":case"min":case"m":return i*Lr;case"seconds":case"second":case"secs":case"sec":case"s":return i*Ur;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return i;default:return}}}}function SJ(t){var e=Math.abs(t);return e>=Ea?Math.round(t/Ea)+"d":e>=Wr?Math.round(t/Wr)+"h":e>=Lr?Math.round(t/Lr)+"m":e>=Ur?Math.round(t/Ur)+"s":t+"ms"}function OJ(t){var e=Math.abs(t);return e>=Ea?kc(t,e,Ea,"day"):e>=Wr?kc(t,e,Wr,"hour"):e>=Lr?kc(t,e,Lr,"minute"):e>=Ur?kc(t,e,Ur,"second"):t+" ms"}function kc(t,e,i,n){var a=e>=i*1.5;return Math.round(t/i)+" "+n+(a?"s":"")}});var qw=w((noe,tk)=>{function xJ(t){i.debug=i,i.default=i,i.coerce=l,i.disable=s,i.enable=a,i.enabled=o,i.humanize=kw(),i.destroy=u,Object.keys(t).forEach(c=>{i[c]=t[c]}),i.names=[],i.skips=[],i.formatters={};function e(c){let p=0;for(let d=0;d{if($==="%%")return"%";b++;let X=i.formatters[N];if(typeof X=="function"){let F=f[b];$=X.call(v,F),f.splice(b,1),b--}return $}),i.formatArgs.call(v,f),(v.log||i.log).apply(v,f)}return m.namespace=c,m.useColors=i.useColors(),m.color=i.selectColor(c),m.extend=n,m.destroy=i.destroy,Object.defineProperty(m,"enabled",{enumerable:!0,configurable:!1,get:()=>d!==null?d:(h!==i.namespaces&&(h=i.namespaces,g=i.enabled(c)),g),set:f=>{d=f}}),typeof i.init=="function"&&i.init(m),m}function n(c,p){let d=i(this.namespace+(typeof p>"u"?":":p)+c);return d.log=this.log,d}function a(c){i.save(c),i.namespaces=c,i.names=[],i.skips=[];let p=(typeof c=="string"?c:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(let d of p)d[0]==="-"?i.skips.push(d.slice(1)):i.names.push(d)}function r(c,p){let d=0,h=0,g=-1,m=0;for(;d"-"+p)].join(",");return i.enable(""),c}function o(c){for(let p of i.skips)if(r(c,p))return!1;for(let p of i.names)if(r(c,p))return!0;return!1}function l(c){return c instanceof Error?c.stack||c.message:c}function u(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return i.enable(i.load()),i}tk.exports=xJ});var ak=w((Bi,qc)=>{Bi.formatArgs=MJ;Bi.save=EJ;Bi.load=kJ;Bi.useColors=TJ;Bi.storage=qJ();Bi.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`."))}})();Bi.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 TJ(){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 MJ(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+qc.exports.humanize(this.diff),!this.useColors)return;let e="color: "+this.color;t.splice(1,0,e,"color: inherit");let i=0,n=0;t[0].replace(/%[a-zA-Z%]/g,a=>{a!=="%%"&&(i++,a==="%c"&&(n=i))}),t.splice(n,0,e)}Bi.log=console.debug||console.log||(()=>{});function EJ(t){try{t?Bi.storage.setItem("debug",t):Bi.storage.removeItem("debug")}catch{}}function kJ(){let t;try{t=Bi.storage.getItem("debug")||Bi.storage.getItem("DEBUG")}catch{}return!t&&typeof process<"u"&&"env"in process&&(t=process.env.DEBUG),t}function qJ(){try{return localStorage}catch{}}qc.exports=qw()(Bi);var{formatters:_J}=qc.exports;_J.j=function(t){try{return JSON.stringify(t)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}});var sk=w((mi,Hc)=>{var HJ=require("tty"),_c=require("util");mi.init=NJ;mi.log=DJ;mi.formatArgs=IJ;mi.save=GJ;mi.load=$J;mi.useColors=RJ;mi.destroy=_c.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");mi.colors=[6,2,3,4,5,1];try{let t=require("supports-color");t&&(t.stderr||t).level>=2&&(mi.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{}mi.inspectOpts=Object.keys(process.env).filter(t=>/^debug_/i.test(t)).reduce((t,e)=>{let i=e.substring(6).toLowerCase().replace(/_([a-z])/g,(a,r)=>r.toUpperCase()),n=process.env[e];return/^(yes|on|true|enabled)$/i.test(n)?n=!0:/^(no|off|false|disabled)$/i.test(n)?n=!1:n==="null"?n=null:n=Number(n),t[i]=n,t},{});function RJ(){return"colors"in mi.inspectOpts?!!mi.inspectOpts.colors:HJ.isatty(process.stderr.fd)}function IJ(t){let{namespace:e,useColors:i}=this;if(i){let n=this.color,a="\x1B[3"+(n<8?n:"8;5;"+n),r=` ${a};1m${e} \x1B[0m`;t[0]=r+t[0].split(` + deps: ${i}}`};var sB={keyword:"dependencies",type:"object",schemaType:"object",error:Dn.error,code(t){let[e,i]=oB(t);Xx(t,e),eT(t,i)}};function oB({schema:t}){let e={},i={};for(let n in t){if(n==="__proto__")continue;let a=Array.isArray(t[n])?e:i;a[n]=t[n]}return[e,i]}function Xx(t,e=t.schema){let{gen:i,data:n,it:a}=t;if(Object.keys(e).length===0)return;let r=i.let("missing");for(let s in e){let o=e[s];if(o.length===0)continue;let l=(0,jo.propertyInData)(i,n,s,a.opts.ownProperties);t.setParams({property:s,depsCount:o.length,deps:o.join(", ")}),a.allErrors?i.if(l,()=>{for(let u of o)(0,jo.checkReportMissingProp)(t,u)}):(i.if((0,_f._)`${l} && (${(0,jo.checkMissingProp)(t,o,r)})`),(0,jo.reportMissingProp)(t,r),i.else())}}Dn.validatePropertyDeps=Xx;function eT(t,e=t.schema){let{gen:i,data:n,keyword:a,it:r}=t,s=i.name("valid");for(let o in e)(0,rB.alwaysValidSchema)(r,e[o])||(i.if((0,jo.propertyInData)(i,n,o,r.opts.ownProperties),()=>{let l=t.subschema({keyword:a,schemaProp:o},s);t.mergeValidEvaluated(l,s)},()=>i.var(s,!0)),t.ok(s))}Dn.validateSchemaDeps=eT;Dn.default=sB});var tT=w(Hf=>{"use strict";Object.defineProperty(Hf,"__esModule",{value:!0});var nT=re(),lB=we(),uB={message:"property name must be valid",params:({params:t})=>(0,nT._)`{propertyName: ${t.propertyName}}`},cB={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:uB,code(t){let{gen:e,schema:i,data:n,it:a}=t;if((0,lB.alwaysValidSchema)(a,i))return;let r=e.name("valid");e.forIn("key",n,s=>{t.setParams({propertyName:s}),t.subschema({keyword:"propertyNames",data:s,dataTypes:["string"],propertyName:s,compositeRule:!0},r),e.if((0,nT.not)(r),()=>{t.error(!0),a.allErrors||e.break()})}),t.ok(r)}};Hf.default=cB});var If=w(Rf=>{"use strict";Object.defineProperty(Rf,"__esModule",{value:!0});var oc=pn(),Sn=re(),pB=st(),lc=we(),dB={message:"must NOT have additional properties",params:({params:t})=>(0,Sn._)`{additionalProperty: ${t.additionalProperty}}`},hB={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:dB,code(t){let{gen:e,schema:i,parentSchema:n,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,lc.alwaysValidSchema)(s,i))return;let u=(0,oc.allSchemaProperties)(n.properties),c=(0,oc.allSchemaProperties)(n.patternProperties);p(),t.ok((0,Sn._)`${r} === ${pB.default.errors}`);function p(){e.forIn("key",a,f=>{!u.length&&!c.length?g(f):e.if(d(f),()=>g(f))})}function d(f){let v;if(u.length>8){let y=(0,lc.schemaRefOrVal)(s,n.properties,"properties");v=(0,oc.isOwnProperty)(e,y,f)}else u.length?v=(0,Sn.or)(...u.map(y=>(0,Sn._)`${f} === ${y}`)):v=Sn.nil;return c.length&&(v=(0,Sn.or)(v,...c.map(y=>(0,Sn._)`${(0,oc.usePattern)(t,y)}.test(${f})`))),(0,Sn.not)(v)}function h(f){e.code((0,Sn._)`delete ${a}[${f}]`)}function g(f){if(l.removeAdditional==="all"||l.removeAdditional&&i===!1){h(f);return}if(i===!1){t.setParams({additionalProperty:f}),t.error(),o||e.break();return}if(typeof i=="object"&&!(0,lc.alwaysValidSchema)(s,i)){let v=e.name("valid");l.removeAdditional==="failing"?(m(f,v,!1),e.if((0,Sn.not)(v),()=>{t.reset(),h(f)})):(m(f,v),o||e.if((0,Sn.not)(v),()=>e.break()))}}function m(f,v,y){let A={keyword:"additionalProperties",dataProp:f,dataPropType:lc.Type.Str};y===!1&&Object.assign(A,{compositeRule:!0,createErrors:!1,allErrors:!1}),t.subschema(A,v)}}};Rf.default=hB});var sT=w(Df=>{"use strict";Object.defineProperty(Df,"__esModule",{value:!0});var gB=uo(),aT=pn(),zf=we(),rT=If(),mB={keyword:"properties",type:"object",schemaType:"object",code(t){let{gen:e,schema:i,parentSchema:n,data:a,it:r}=t;r.opts.removeAdditional==="all"&&n.additionalProperties===void 0&&rT.default.code(new gB.KeywordCxt(r,rT.default,"additionalProperties"));let s=(0,aT.allSchemaProperties)(i);for(let p of s)r.definedProperties.add(p);r.opts.unevaluated&&s.length&&r.props!==!0&&(r.props=zf.mergeEvaluated.props(e,(0,zf.toHash)(s),r.props));let o=s.filter(p=>!(0,zf.alwaysValidSchema)(r,i[p]));if(o.length===0)return;let l=e.name("valid");for(let p of o)u(p)?c(p):(e.if((0,aT.propertyInData)(e,a,p,r.opts.ownProperties)),c(p),r.allErrors||e.else().var(l,!0),e.endIf()),t.it.definedProperties.add(p),t.ok(l);function u(p){return r.opts.useDefaults&&!r.compositeRule&&i[p].default!==void 0}function c(p){t.subschema({keyword:"properties",schemaProp:p,dataProp:p},l)}}};Df.default=mB});var cT=w(Gf=>{"use strict";Object.defineProperty(Gf,"__esModule",{value:!0});var oT=pn(),uc=re(),lT=we(),uT=we(),fB={keyword:"patternProperties",type:"object",schemaType:"object",code(t){let{gen:e,schema:i,data:n,parentSchema:a,it:r}=t,{opts:s}=r,o=(0,oT.allSchemaProperties)(i),l=o.filter(m=>(0,lT.alwaysValidSchema)(r,i[m]));if(o.length===0||l.length===o.length&&(!r.opts.unevaluated||r.props===!0))return;let u=s.strictSchema&&!s.allowMatchingProperties&&a.properties,c=e.name("valid");r.props!==!0&&!(r.props instanceof uc.Name)&&(r.props=(0,uT.evaluatedPropsToName)(e,r.props));let{props:p}=r;d();function d(){for(let m of o)u&&h(m),r.allErrors?g(m):(e.var(c,!0),g(m),e.if(c))}function h(m){for(let f in u)new RegExp(m).test(f)&&(0,lT.checkStrictMode)(r,`property ${f} matches pattern ${m} (use allowMatchingProperties)`)}function g(m){e.forIn("key",n,f=>{e.if((0,uc._)`${(0,oT.usePattern)(t,m)}.test(${f})`,()=>{let v=l.includes(m);v||t.subschema({keyword:"patternProperties",schemaProp:m,dataProp:f,dataPropType:uT.Type.Str},c),r.opts.unevaluated&&p!==!0?e.assign((0,uc._)`${p}[${f}]`,!0):!v&&!r.allErrors&&e.if((0,uc.not)(c),()=>e.break())})})}}};Gf.default=fB});var pT=w($f=>{"use strict";Object.defineProperty($f,"__esModule",{value:!0});var wB=we(),vB={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(t){let{gen:e,schema:i,it:n}=t;if((0,wB.alwaysValidSchema)(n,i)){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"}};$f.default=vB});var dT=w(Nf=>{"use strict";Object.defineProperty(Nf,"__esModule",{value:!0});var CB=pn(),AB={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:CB.validateUnion,error:{message:"must match a schema in anyOf"}};Nf.default=AB});var hT=w(Uf=>{"use strict";Object.defineProperty(Uf,"__esModule",{value:!0});var cc=re(),bB=we(),yB={message:"must match exactly one schema in oneOf",params:({params:t})=>(0,cc._)`{passingSchemas: ${t.passing}}`},PB={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:yB,code(t){let{gen:e,schema:i,parentSchema:n,it:a}=t;if(!Array.isArray(i))throw new Error("ajv implementation error");if(a.opts.discriminator&&n.discriminator)return;let r=i,s=e.let("valid",!1),o=e.let("passing",null),l=e.name("_valid");t.setParams({passing:o}),e.block(u),t.result(s,()=>t.reset(),()=>t.error(!0));function u(){r.forEach((c,p)=>{let d;(0,bB.alwaysValidSchema)(a,c)?e.var(l,!0):d=t.subschema({keyword:"oneOf",schemaProp:p,compositeRule:!0},l),p>0&&e.if((0,cc._)`${l} && ${s}`).assign(s,!1).assign(o,(0,cc._)`[${o}, ${p}]`).else(),e.if(l,()=>{e.assign(s,!0),e.assign(o,p),d&&t.mergeEvaluated(d,cc.Name)})})}}};Uf.default=PB});var gT=w(Lf=>{"use strict";Object.defineProperty(Lf,"__esModule",{value:!0});var jB=we(),SB={keyword:"allOf",schemaType:"array",code(t){let{gen:e,schema:i,it:n}=t;if(!Array.isArray(i))throw new Error("ajv implementation error");let a=e.name("valid");i.forEach((r,s)=>{if((0,jB.alwaysValidSchema)(n,r))return;let o=t.subschema({keyword:"allOf",schemaProp:s},a);t.ok(a),t.mergeEvaluated(o)})}};Lf.default=SB});var wT=w(Wf=>{"use strict";Object.defineProperty(Wf,"__esModule",{value:!0});var pc=re(),fT=we(),OB={message:({params:t})=>(0,pc.str)`must match "${t.ifClause}" schema`,params:({params:t})=>(0,pc._)`{failingKeyword: ${t.ifClause}}`},xB={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:OB,code(t){let{gen:e,parentSchema:i,it:n}=t;i.then===void 0&&i.else===void 0&&(0,fT.checkStrictMode)(n,'"if" without "then" and "else" is ignored');let a=mT(n,"then"),r=mT(n,"else");if(!a&&!r)return;let s=e.let("valid",!0),o=e.name("_valid");if(l(),t.reset(),a&&r){let c=e.let("ifClause");t.setParams({ifClause:c}),e.if(o,u("then",c),u("else",c))}else a?e.if(o,u("then")):e.if((0,pc.not)(o),u("else"));t.pass(s,()=>t.error(!0));function l(){let c=t.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},o);t.mergeEvaluated(c)}function u(c,p){return()=>{let d=t.subschema({keyword:c},o);e.assign(s,o),t.mergeValidEvaluated(d,s),p?e.assign(p,(0,pc._)`${c}`):t.setParams({ifClause:c})}}}};function mT(t,e){let i=t.schema[e];return i!==void 0&&!(0,fT.alwaysValidSchema)(t,i)}Wf.default=xB});var vT=w(Bf=>{"use strict";Object.defineProperty(Bf,"__esModule",{value:!0});var TB=we(),MB={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:t,parentSchema:e,it:i}){e.if===void 0&&(0,TB.checkStrictMode)(i,`"${t}" without "if" is ignored`)}};Bf.default=MB});var CT=w(Ff=>{"use strict";Object.defineProperty(Ff,"__esModule",{value:!0});var EB=Tf(),kB=Zx(),qB=Mf(),_B=Qx(),HB=Yx(),RB=iT(),IB=tT(),zB=If(),DB=sT(),GB=cT(),$B=pT(),NB=dT(),UB=hT(),LB=gT(),WB=wT(),BB=vT();function FB(t=!1){let e=[$B.default,NB.default,UB.default,LB.default,WB.default,BB.default,IB.default,zB.default,RB.default,DB.default,GB.default];return t?e.push(kB.default,_B.default):e.push(EB.default,qB.default),e.push(HB.default),e}Ff.default=FB});var AT=w(Vf=>{"use strict";Object.defineProperty(Vf,"__esModule",{value:!0});var ii=re(),VB={message:({schemaCode:t})=>(0,ii.str)`must match format "${t}"`,params:({schemaCode:t})=>(0,ii._)`{format: ${t}}`},JB={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:VB,code(t,e){let{gen:i,data:n,$data:a,schema:r,schemaCode:s,it:o}=t,{opts:l,errSchemaPath:u,schemaEnv:c,self:p}=o;if(!l.validateFormats)return;a?d():h();function d(){let g=i.scopeValue("formats",{ref:p.formats,code:l.code.formats}),m=i.const("fDef",(0,ii._)`${g}[${s}]`),f=i.let("fType"),v=i.let("format");i.if((0,ii._)`typeof ${m} == "object" && !(${m} instanceof RegExp)`,()=>i.assign(f,(0,ii._)`${m}.type || "string"`).assign(v,(0,ii._)`${m}.validate`),()=>i.assign(f,(0,ii._)`"string"`).assign(v,m)),t.fail$data((0,ii.or)(y(),A()));function y(){return l.strictSchema===!1?ii.nil:(0,ii._)`${s} && !${v}`}function A(){let b=c.$async?(0,ii._)`(${m}.async ? await ${v}(${n}) : ${v}(${n}))`:(0,ii._)`${v}(${n})`,O=(0,ii._)`(typeof ${v} == "function" ? ${b} : ${v}.test(${n}))`;return(0,ii._)`${v} && ${v} !== true && ${f} === ${e} && !${O}`}}function h(){let g=p.formats[r];if(!g){y();return}if(g===!0)return;let[m,f,v]=A(g);m===e&&t.pass(b());function y(){if(l.strictSchema===!1){p.logger.warn(O());return}throw new Error(O());function O(){return`unknown format "${r}" ignored in schema at path "${u}"`}}function A(O){let $=O instanceof RegExp?(0,ii.regexpCode)(O):l.code.formats?(0,ii._)`${l.code.formats}${(0,ii.getProperty)(r)}`:void 0,N=i.scopeValue("formats",{key:r,ref:O,code:$});return typeof O=="object"&&!(O instanceof RegExp)?[O.type||"string",O.validate,(0,ii._)`${N}.validate`]:["string",O,N]}function b(){if(typeof g=="object"&&!(g instanceof RegExp)&&g.async){if(!c.$async)throw new Error("async format in sync schema");return(0,ii._)`await ${v}(${n})`}return typeof f=="function"?(0,ii._)`${v}(${n})`:(0,ii._)`${v}.test(${n})`}}}};Vf.default=JB});var bT=w(Jf=>{"use strict";Object.defineProperty(Jf,"__esModule",{value:!0});var ZB=AT(),KB=[ZB.default];Jf.default=KB});var yT=w(qr=>{"use strict";Object.defineProperty(qr,"__esModule",{value:!0});qr.contentVocabulary=qr.metadataVocabulary=void 0;qr.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"];qr.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]});var jT=w(Zf=>{"use strict";Object.defineProperty(Zf,"__esModule",{value:!0});var QB=kx(),YB=Bx(),XB=CT(),eF=bT(),PT=yT(),iF=[QB.default,YB.default,(0,XB.default)(),eF.default,PT.metadataVocabulary,PT.contentVocabulary];Zf.default=iF});var OT=w(dc=>{"use strict";Object.defineProperty(dc,"__esModule",{value:!0});dc.DiscrError=void 0;var ST;(function(t){t.Tag="tag",t.Mapping="mapping"})(ST||(dc.DiscrError=ST={}))});var TT=w(Qf=>{"use strict";Object.defineProperty(Qf,"__esModule",{value:!0});var _r=re(),Kf=OT(),xT=Zu(),nF=co(),tF=we(),aF={message:({params:{discrError:t,tagName:e}})=>t===Kf.DiscrError.Tag?`tag "${e}" must be string`:`value of tag "${e}" must be in oneOf`,params:({params:{discrError:t,tag:e,tagName:i}})=>(0,_r._)`{error: ${t}, tag: ${i}, tagValue: ${e}}`},rF={keyword:"discriminator",type:"object",schemaType:"object",error:aF,code(t){let{gen:e,data:i,schema:n,parentSchema:a,it:r}=t,{oneOf:s}=a;if(!r.opts.discriminator)throw new Error("discriminator: requires discriminator option");let o=n.propertyName;if(typeof o!="string")throw new Error("discriminator: requires propertyName");if(n.mapping)throw new Error("discriminator: mapping is not supported");if(!s)throw new Error("discriminator: requires oneOf keyword");let l=e.let("valid",!1),u=e.const("tag",(0,_r._)`${i}${(0,_r.getProperty)(o)}`);e.if((0,_r._)`typeof ${u} == "string"`,()=>c(),()=>t.error(!1,{discrError:Kf.DiscrError.Tag,tag:u,tagName:o})),t.ok(l);function c(){let h=d();e.if(!1);for(let g in h)e.elseIf((0,_r._)`${u} === ${g}`),e.assign(l,p(h[g]));e.else(),t.error(!1,{discrError:Kf.DiscrError.Mapping,tag:u,tagName:o}),e.endIf()}function p(h){let g=e.name("valid"),m=t.subschema({keyword:"oneOf",schemaProp:h},g);return t.mergeEvaluated(m,_r.Name),g}function d(){var h;let g={},m=v(a),f=!0;for(let b=0;b{sF.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 Xf=w((Ue,Yf)=>{"use strict";Object.defineProperty(Ue,"__esModule",{value:!0});Ue.MissingRefError=Ue.ValidationError=Ue.CodeGen=Ue.Name=Ue.nil=Ue.stringify=Ue.str=Ue._=Ue.KeywordCxt=Ue.Ajv=void 0;var oF=Sx(),lF=jT(),uF=TT(),ET=MT(),cF=["/properties"],hc="http://json-schema.org/draft-07/schema",Hr=class extends oF.default{_addVocabularies(){super._addVocabularies(),lF.default.forEach(e=>this.addVocabulary(e)),this.opts.discriminator&&this.addKeyword(uF.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;let e=this.opts.$data?this.$dataMetaSchema(ET,cF):ET;this.addMetaSchema(e,hc,!1),this.refs["http://json-schema.org/schema"]=hc}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(hc)?hc:void 0)}};Ue.Ajv=Hr;Yf.exports=Ue=Hr;Yf.exports.Ajv=Hr;Object.defineProperty(Ue,"__esModule",{value:!0});Ue.default=Hr;var pF=uo();Object.defineProperty(Ue,"KeywordCxt",{enumerable:!0,get:function(){return pF.KeywordCxt}});var Rr=re();Object.defineProperty(Ue,"_",{enumerable:!0,get:function(){return Rr._}});Object.defineProperty(Ue,"str",{enumerable:!0,get:function(){return Rr.str}});Object.defineProperty(Ue,"stringify",{enumerable:!0,get:function(){return Rr.stringify}});Object.defineProperty(Ue,"nil",{enumerable:!0,get:function(){return Rr.nil}});Object.defineProperty(Ue,"Name",{enumerable:!0,get:function(){return Rr.Name}});Object.defineProperty(Ue,"CodeGen",{enumerable:!0,get:function(){return Rr.CodeGen}});var dF=Vu();Object.defineProperty(Ue,"ValidationError",{enumerable:!0,get:function(){return dF.default}});var hF=co();Object.defineProperty(Ue,"MissingRefError",{enumerable:!0,get:function(){return hF.default}})});var DT=w($n=>{"use strict";Object.defineProperty($n,"__esModule",{value:!0});$n.formatNames=$n.fastFormats=$n.fullFormats=void 0;function Gn(t,e){return{validate:t,compare:e}}$n.fullFormats={date:Gn(HT,tw),time:Gn(iw(!0),aw),"date-time":Gn(kT(!0),IT),"iso-time":Gn(iw(),RT),"iso-date-time":Gn(kT(),zT),duration:/^P(?!$)((\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?|(\d+W)?)$/,uri:CF,"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:OF,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:AF,int32:{type:"number",validate:PF},int64:{type:"number",validate:jF},float:{type:"number",validate:_T},double:{type:"number",validate:_T},password:!0,binary:!0};$n.fastFormats={...$n.fullFormats,date:Gn(/^\d\d\d\d-[0-1]\d-[0-3]\d$/,tw),time:Gn(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,aw),"date-time":Gn(/^\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,IT),"iso-time":Gn(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,RT),"iso-date-time":Gn(/^\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,zT),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};$n.formatNames=Object.keys($n.fullFormats);function gF(t){return t%4===0&&(t%100!==0||t%400===0)}var mF=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,fF=[0,31,28,31,30,31,30,31,31,30,31,30,31];function HT(t){let e=mF.exec(t);if(!e)return!1;let i=+e[1],n=+e[2],a=+e[3];return n>=1&&n<=12&&a>=1&&a<=(n===2&&gF(i)?29:fF[n])}function tw(t,e){if(t&&e)return t>e?1:t23||c>59||t&&!o)return!1;if(a<=23&&r<=59&&s<60)return!0;let p=r-c*l,d=a-u*l-(p<0?1:0);return(d===23||d===-1)&&(p===59||p===-1)&&s<61}}function aw(t,e){if(!(t&&e))return;let i=new Date("2020-01-01T"+t).valueOf(),n=new Date("2020-01-01T"+e).valueOf();if(i&&n)return i-n}function RT(t,e){if(!(t&&e))return;let i=ew.exec(t),n=ew.exec(e);if(i&&n)return t=i[1]+i[2]+i[3],e=n[1]+n[2]+n[3],t>e?1:t=bF}function jF(t){return Number.isInteger(t)}function _T(){return!0}var SF=/[^\\]\\Z/;function OF(t){if(SF.test(t))return!1;try{return new RegExp(t),!0}catch{return!1}}});var GT=w(Ir=>{"use strict";Object.defineProperty(Ir,"__esModule",{value:!0});Ir.formatLimitDefinition=void 0;var xF=Xf(),On=re(),Ht=On.operators,gc={formatMaximum:{okStr:"<=",ok:Ht.LTE,fail:Ht.GT},formatMinimum:{okStr:">=",ok:Ht.GTE,fail:Ht.LT},formatExclusiveMaximum:{okStr:"<",ok:Ht.LT,fail:Ht.GTE},formatExclusiveMinimum:{okStr:">",ok:Ht.GT,fail:Ht.LTE}},TF={message:({keyword:t,schemaCode:e})=>(0,On.str)`should be ${gc[t].okStr} ${e}`,params:({keyword:t,schemaCode:e})=>(0,On._)`{comparison: ${gc[t].okStr}, limit: ${e}}`};Ir.formatLimitDefinition={keyword:Object.keys(gc),type:"string",schemaType:"string",$data:!0,error:TF,code(t){let{gen:e,data:i,schemaCode:n,keyword:a,it:r}=t,{opts:s,self:o}=r;if(!s.validateFormats)return;let l=new xF.KeywordCxt(r,o.RULES.all.format.definition,"format");l.$data?u():c();function u(){let d=e.scopeValue("formats",{ref:o.formats,code:s.code.formats}),h=e.const("fmt",(0,On._)`${d}[${l.schemaCode}]`);t.fail$data((0,On.or)((0,On._)`typeof ${h} != "object"`,(0,On._)`${h} instanceof RegExp`,(0,On._)`typeof ${h}.compare != "function"`,p(h)))}function c(){let d=l.schema,h=o.formats[d];if(!h||h===!0)return;if(typeof h!="object"||h instanceof RegExp||typeof h.compare!="function")throw new Error(`"${a}": format "${d}" does not define "compare" function`);let g=e.scopeValue("formats",{key:d,ref:h,code:s.code.formats?(0,On._)`${s.code.formats}${(0,On.getProperty)(d)}`:void 0});t.fail$data(p(g))}function p(d){return(0,On._)`${d}.compare(${i}, ${n}) ${gc[a].fail} 0`}},dependencies:["format"]};var MF=t=>(t.addKeyword(Ir.formatLimitDefinition),t);Ir.default=MF});var LT=w((So,UT)=>{"use strict";Object.defineProperty(So,"__esModule",{value:!0});var zr=DT(),EF=GT(),rw=re(),$T=new rw.Name("fullFormats"),kF=new rw.Name("fastFormats"),sw=(t,e={keywords:!0})=>{if(Array.isArray(e))return NT(t,e,zr.fullFormats,$T),t;let[i,n]=e.mode==="fast"?[zr.fastFormats,kF]:[zr.fullFormats,$T],a=e.formats||zr.formatNames;return NT(t,a,i,n),e.keywords&&(0,EF.default)(t),t};sw.get=(t,e="full")=>{let n=(e==="fast"?zr.fastFormats:zr.fullFormats)[t];if(!n)throw new Error(`Unknown format "${t}"`);return n};function NT(t,e,i,n){var a,r;(a=(r=t.opts.code).formats)!==null&&a!==void 0||(r.formats=(0,rw._)`require("ajv-formats/dist/formats").${n}`);for(let s of e)t.addFormat(s,i[s])}UT.exports=So=sw;Object.defineProperty(So,"__esModule",{value:!0});So.default=sw});var aM=w((tse,tM)=>{var nM=require("stream").Stream,GF=require("util");tM.exports=xn;function xn(){this.source=null,this.dataSize=0,this.maxDataSize=1024*1024,this.pauseStream=!0,this._maxDataSizeExceeded=!1,this._released=!1,this._bufferedEvents=[]}GF.inherits(xn,nM);xn.create=function(t,e){var i=new this;e=e||{};for(var n in e)i[n]=e[n];i.source=t;var a=t.emit;return t.emit=function(){return i._handleEmit(arguments),a.apply(t,arguments)},t.on("error",function(){}),i.pauseStream&&t.pause(),i};Object.defineProperty(xn.prototype,"readable",{configurable:!0,enumerable:!0,get:function(){return this.source.readable}});xn.prototype.setEncoding=function(){return this.source.setEncoding.apply(this.source,arguments)};xn.prototype.resume=function(){this._released||this.release(),this.source.resume()};xn.prototype.pause=function(){this.source.pause()};xn.prototype.release=function(){this._released=!0,this._bufferedEvents.forEach(function(t){this.emit.apply(this,t)}.bind(this)),this._bufferedEvents=[]};xn.prototype.pipe=function(){var t=nM.prototype.pipe.apply(this,arguments);return this.resume(),t};xn.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)};xn.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 lM=w((ase,oM)=>{var $F=require("util"),sM=require("stream").Stream,rM=aM();oM.exports=Ke;function Ke(){this.writable=!1,this.readable=!0,this.dataSize=0,this.maxDataSize=2*1024*1024,this.pauseStreams=!0,this._released=!1,this._streams=[],this._currentStream=null,this._insideLoop=!1,this._pendingNext=!1}$F.inherits(Ke,sM);Ke.create=function(t){var e=new this;t=t||{};for(var i in t)e[i]=t[i];return e};Ke.isStreamLike=function(t){return typeof t!="function"&&typeof t!="string"&&typeof t!="boolean"&&typeof t!="number"&&!Buffer.isBuffer(t)};Ke.prototype.append=function(t){var e=Ke.isStreamLike(t);if(e){if(!(t instanceof rM)){var i=rM.create(t,{maxDataSize:1/0,pauseStream:this.pauseStreams});t.on("data",this._checkDataSize.bind(this)),t=i}this._handleErrors(t),this.pauseStreams&&t.pause()}return this._streams.push(t),this};Ke.prototype.pipe=function(t,e){return sM.prototype.pipe.call(this,t,e),this.resume(),t};Ke.prototype._getNext=function(){if(this._currentStream=null,this._insideLoop){this._pendingNext=!0;return}this._insideLoop=!0;try{do this._pendingNext=!1,this._realGetNext();while(this._pendingNext)}finally{this._insideLoop=!1}};Ke.prototype._realGetNext=function(){var t=this._streams.shift();if(typeof t>"u"){this.end();return}if(typeof t!="function"){this._pipeNext(t);return}var e=t;e(function(i){var n=Ke.isStreamLike(i);n&&(i.on("data",this._checkDataSize.bind(this)),this._handleErrors(i)),this._pipeNext(i)}.bind(this))};Ke.prototype._pipeNext=function(t){this._currentStream=t;var e=Ke.isStreamLike(t);if(e){t.on("end",this._getNext.bind(this)),t.pipe(this,{end:!1});return}var i=t;this.write(i),this._getNext()};Ke.prototype._handleErrors=function(t){var e=this;t.on("error",function(i){e._emitError(i)})};Ke.prototype.write=function(t){this.emit("data",t)};Ke.prototype.pause=function(){this.pauseStreams&&(this.pauseStreams&&this._currentStream&&typeof this._currentStream.pause=="function"&&this._currentStream.pause(),this.emit("pause"))};Ke.prototype.resume=function(){this._released||(this._released=!0,this.writable=!0,this._getNext()),this.pauseStreams&&this._currentStream&&typeof this._currentStream.resume=="function"&&this._currentStream.resume(),this.emit("resume")};Ke.prototype.end=function(){this._reset(),this.emit("end")};Ke.prototype.destroy=function(){this._reset(),this.emit("close")};Ke.prototype._reset=function(){this.writable=!1,this._streams=[],this._currentStream=null};Ke.prototype._checkDataSize=function(){if(this._updateDataSize(),!(this.dataSize<=this.maxDataSize)){var t="DelayedStream#maxDataSize of "+this.maxDataSize+" bytes exceeded.";this._emitError(new Error(t))}};Ke.prototype._updateDataSize=function(){this.dataSize=0;var t=this;this._streams.forEach(function(e){e.dataSize&&(t.dataSize+=e.dataSize)}),this._currentStream&&this._currentStream.dataSize&&(this.dataSize+=this._currentStream.dataSize)};Ke.prototype._emitError=function(t){this._reset(),this.emit("error",t)}});var uM=w((rse,NF)=>{NF.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 pM=w((sse,cM)=>{cM.exports=uM()});var gM=w(Wi=>{"use strict";var yc=pM(),UF=require("path").extname,dM=/^\s*([^;\s]*)(?:;|\s|$)/,LF=/^text\//i;Wi.charset=hM;Wi.charsets={lookup:hM};Wi.contentType=WF;Wi.extension=BF;Wi.extensions=Object.create(null);Wi.lookup=FF;Wi.types=Object.create(null);VF(Wi.extensions,Wi.types);function hM(t){if(!t||typeof t!="string")return!1;var e=dM.exec(t),i=e&&yc[e[1].toLowerCase()];return i&&i.charset?i.charset:e&&LF.test(e[1])?"UTF-8":!1}function WF(t){if(!t||typeof t!="string")return!1;var e=t.indexOf("/")===-1?Wi.lookup(t):t;if(!e)return!1;if(e.indexOf("charset")===-1){var i=Wi.charset(e);i&&(e+="; charset="+i.toLowerCase())}return e}function BF(t){if(!t||typeof t!="string")return!1;var e=dM.exec(t),i=e&&Wi.extensions[e[1].toLowerCase()];return!i||!i.length?!1:i[0]}function FF(t){if(!t||typeof t!="string")return!1;var e=UF("x."+t).toLowerCase().substr(1);return e&&Wi.types[e]||!1}function VF(t,e){var i=["nginx","apache",void 0,"iana"];Object.keys(yc).forEach(function(a){var r=yc[a],s=r.extensions;if(!(!s||!s.length)){t[a]=s;for(var o=0;oc||u===c&&e[l].substr(0,12)==="application/"))continue}e[l]=a}}})}});var fM=w((lse,mM)=>{mM.exports=JF;function JF(t){var e=typeof setImmediate=="function"?setImmediate:typeof process=="object"&&typeof process.nextTick=="function"?process.nextTick:null;e?e(t):setTimeout(t,0)}});var pw=w((use,vM)=>{var wM=fM();vM.exports=ZF;function ZF(t){var e=!1;return wM(function(){e=!0}),function(n,a){e?t(n,a):wM(function(){t(n,a)})}}});var dw=w((cse,CM)=>{CM.exports=KF;function KF(t){Object.keys(t.jobs).forEach(QF.bind(t)),t.jobs={}}function QF(t){typeof this.jobs[t]=="function"&&this.jobs[t]()}});var hw=w((pse,bM)=>{var AM=pw(),YF=dw();bM.exports=XF;function XF(t,e,i,n){var a=i.keyedList?i.keyedList[i.index]:i.index;i.jobs[a]=eV(e,a,t[a],function(r,s){a in i.jobs&&(delete i.jobs[a],r?YF(i):i.results[a]=s,n(r,i.results))})}function eV(t,e,i,n){var a;return t.length==2?a=t(i,AM(n)):a=t(i,e,AM(n)),a}});var gw=w((dse,yM)=>{yM.exports=iV;function iV(t,e){var i=!Array.isArray(t),n={index:0,keyedList:i||e?Object.keys(t):null,jobs:{},results:i?{}:[],size:i?Object.keys(t).length:t.length};return e&&n.keyedList.sort(i?e:function(a,r){return e(t[a],t[r])}),n}});var mw=w((hse,PM)=>{var nV=dw(),tV=pw();PM.exports=aV;function aV(t){Object.keys(this.jobs).length&&(this.index=this.size,nV(this),tV(t)(null,this.results))}});var SM=w((gse,jM)=>{var rV=hw(),sV=gw(),oV=mw();jM.exports=lV;function lV(t,e,i){for(var n=sV(t);n.index<(n.keyedList||t).length;)rV(t,e,n,function(a,r){if(a){i(a,r);return}if(Object.keys(n.jobs).length===0){i(null,n.results);return}}),n.index++;return oV.bind(n,i)}});var fw=w((mse,Pc)=>{var OM=hw(),uV=gw(),cV=mw();Pc.exports=pV;Pc.exports.ascending=xM;Pc.exports.descending=dV;function pV(t,e,i,n){var a=uV(t,i);return OM(t,e,a,function r(s,o){if(s){n(s,o);return}if(a.index++,a.index<(a.keyedList||t).length){OM(t,e,a,r);return}n(null,a.results)}),cV.bind(a,n)}function xM(t,e){return te?1:0}function dV(t,e){return-1*xM(t,e)}});var MM=w((fse,TM)=>{var hV=fw();TM.exports=gV;function gV(t,e,i){return hV(t,e,null,i)}});var kM=w((wse,EM)=>{EM.exports={parallel:SM(),serial:MM(),serialOrdered:fw()}});var ww=w((vse,qM)=>{"use strict";qM.exports=Object});var HM=w((Cse,_M)=>{"use strict";_M.exports=Error});var IM=w((Ase,RM)=>{"use strict";RM.exports=EvalError});var DM=w((bse,zM)=>{"use strict";zM.exports=RangeError});var $M=w((yse,GM)=>{"use strict";GM.exports=ReferenceError});var UM=w((Pse,NM)=>{"use strict";NM.exports=SyntaxError});var It=w((jse,LM)=>{"use strict";LM.exports=TypeError});var BM=w((Sse,WM)=>{"use strict";WM.exports=URIError});var VM=w((Ose,FM)=>{"use strict";FM.exports=Math.abs});var ZM=w((xse,JM)=>{"use strict";JM.exports=Math.floor});var QM=w((Tse,KM)=>{"use strict";KM.exports=Math.max});var XM=w((Mse,YM)=>{"use strict";YM.exports=Math.min});var iE=w((Ese,eE)=>{"use strict";eE.exports=Math.pow});var tE=w((kse,nE)=>{"use strict";nE.exports=Math.round});var rE=w((qse,aE)=>{"use strict";aE.exports=Number.isNaN||function(e){return e!==e}});var oE=w((_se,sE)=>{"use strict";var mV=rE();sE.exports=function(e){return mV(e)||e===0?e:e<0?-1:1}});var uE=w((Hse,lE)=>{"use strict";lE.exports=Object.getOwnPropertyDescriptor});var vw=w((Rse,cE)=>{"use strict";var jc=uE();if(jc)try{jc([],"length")}catch{jc=null}cE.exports=jc});var dE=w((Ise,pE)=>{"use strict";var Sc=Object.defineProperty||!1;if(Sc)try{Sc({},"a",{value:1})}catch{Sc=!1}pE.exports=Sc});var Cw=w((zse,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={},i=Symbol("test"),n=Object(i);if(typeof i=="string"||Object.prototype.toString.call(i)!=="[object Symbol]"||Object.prototype.toString.call(n)!=="[object Symbol]")return!1;var a=42;e[i]=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]!==i||!Object.prototype.propertyIsEnumerable.call(e,i))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var o=Object.getOwnPropertyDescriptor(e,i);if(o.value!==a||o.enumerable!==!0)return!1}return!0}});var fE=w((Dse,mE)=>{"use strict";var gE=typeof Symbol<"u"&&Symbol,fV=Cw();mE.exports=function(){return typeof gE!="function"||typeof Symbol!="function"||typeof gE("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:fV()}});var Aw=w((Gse,wE)=>{"use strict";wE.exports=typeof Reflect<"u"&&Reflect.getPrototypeOf||null});var bw=w(($se,vE)=>{"use strict";var wV=ww();vE.exports=wV.getPrototypeOf||null});var bE=w((Nse,AE)=>{"use strict";var vV="Function.prototype.bind called on incompatible ",CV=Object.prototype.toString,AV=Math.max,bV="[object Function]",CE=function(e,i){for(var n=[],a=0;a{"use strict";var jV=bE();yE.exports=Function.prototype.bind||jV});var Oc=w((Lse,PE)=>{"use strict";PE.exports=Function.prototype.call});var yw=w((Wse,jE)=>{"use strict";jE.exports=Function.prototype.apply});var OE=w((Bse,SE)=>{"use strict";SE.exports=typeof Reflect<"u"&&Reflect&&Reflect.apply});var TE=w((Fse,xE)=>{"use strict";var SV=xo(),OV=yw(),xV=Oc(),TV=OE();xE.exports=TV||SV.call(xV,OV)});var Pw=w((Vse,ME)=>{"use strict";var MV=xo(),EV=It(),kV=Oc(),qV=TE();ME.exports=function(e){if(e.length<1||typeof e[0]!="function")throw new EV("a function is required");return qV(MV,kV,e)}});var RE=w((Jse,HE)=>{"use strict";var _V=Pw(),EE=vw(),qE;try{qE=[].__proto__===Array.prototype}catch(t){if(!t||typeof t!="object"||!("code"in t)||t.code!=="ERR_PROTO_ACCESS")throw t}var jw=!!qE&&EE&&EE(Object.prototype,"__proto__"),_E=Object,kE=_E.getPrototypeOf;HE.exports=jw&&typeof jw.get=="function"?_V([jw.get]):typeof kE=="function"?function(e){return kE(e==null?e:_E(e))}:!1});var $E=w((Zse,GE)=>{"use strict";var IE=Aw(),zE=bw(),DE=RE();GE.exports=IE?function(e){return IE(e)}:zE?function(e){if(!e||typeof e!="object"&&typeof e!="function")throw new TypeError("getProto: not an object");return zE(e)}:DE?function(e){return DE(e)}:null});var xc=w((Kse,NE)=>{"use strict";var HV=Function.prototype.call,RV=Object.prototype.hasOwnProperty,IV=xo();NE.exports=IV.call(HV,RV)});var ko=w((Qse,VE)=>{"use strict";var pe,zV=ww(),DV=HM(),GV=IM(),$V=DM(),NV=$M(),Nr=UM(),$r=It(),UV=BM(),LV=VM(),WV=ZM(),BV=QM(),FV=XM(),VV=iE(),JV=tE(),ZV=oE(),BE=Function,Sw=function(t){try{return BE('"use strict"; return ('+t+").constructor;")()}catch{}},To=vw(),KV=dE(),Ow=function(){throw new $r},QV=To?(function(){try{return arguments.callee,Ow}catch{try{return To(arguments,"callee").get}catch{return Ow}}})():Ow,Dr=fE()(),gi=$E(),YV=bw(),XV=Aw(),FE=yw(),Mo=Oc(),Gr={},eJ=typeof Uint8Array>"u"||!gi?pe:gi(Uint8Array),Ma={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?pe:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?pe:ArrayBuffer,"%ArrayIteratorPrototype%":Dr&&gi?gi([][Symbol.iterator]()):pe,"%AsyncFromSyncIteratorPrototype%":pe,"%AsyncFunction%":Gr,"%AsyncGenerator%":Gr,"%AsyncGeneratorFunction%":Gr,"%AsyncIteratorPrototype%":Gr,"%Atomics%":typeof Atomics>"u"?pe:Atomics,"%BigInt%":typeof BigInt>"u"?pe:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?pe:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?pe:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?pe:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":DV,"%eval%":eval,"%EvalError%":GV,"%Float16Array%":typeof Float16Array>"u"?pe:Float16Array,"%Float32Array%":typeof Float32Array>"u"?pe:Float32Array,"%Float64Array%":typeof Float64Array>"u"?pe:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?pe:FinalizationRegistry,"%Function%":BE,"%GeneratorFunction%":Gr,"%Int8Array%":typeof Int8Array>"u"?pe:Int8Array,"%Int16Array%":typeof Int16Array>"u"?pe:Int16Array,"%Int32Array%":typeof Int32Array>"u"?pe:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Dr&&gi?gi(gi([][Symbol.iterator]())):pe,"%JSON%":typeof JSON=="object"?JSON:pe,"%Map%":typeof Map>"u"?pe:Map,"%MapIteratorPrototype%":typeof Map>"u"||!Dr||!gi?pe:gi(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":zV,"%Object.getOwnPropertyDescriptor%":To,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?pe:Promise,"%Proxy%":typeof Proxy>"u"?pe:Proxy,"%RangeError%":$V,"%ReferenceError%":NV,"%Reflect%":typeof Reflect>"u"?pe:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?pe:Set,"%SetIteratorPrototype%":typeof Set>"u"||!Dr||!gi?pe:gi(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?pe:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":Dr&&gi?gi(""[Symbol.iterator]()):pe,"%Symbol%":Dr?Symbol:pe,"%SyntaxError%":Nr,"%ThrowTypeError%":QV,"%TypedArray%":eJ,"%TypeError%":$r,"%Uint8Array%":typeof Uint8Array>"u"?pe:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?pe:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?pe:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?pe:Uint32Array,"%URIError%":UV,"%WeakMap%":typeof WeakMap>"u"?pe:WeakMap,"%WeakRef%":typeof WeakRef>"u"?pe:WeakRef,"%WeakSet%":typeof WeakSet>"u"?pe:WeakSet,"%Function.prototype.call%":Mo,"%Function.prototype.apply%":FE,"%Object.defineProperty%":KV,"%Object.getPrototypeOf%":YV,"%Math.abs%":LV,"%Math.floor%":WV,"%Math.max%":BV,"%Math.min%":FV,"%Math.pow%":VV,"%Math.round%":JV,"%Math.sign%":ZV,"%Reflect.getPrototypeOf%":XV};if(gi)try{null.error}catch(t){UE=gi(gi(t)),Ma["%Error.prototype%"]=UE}var UE,iJ=function t(e){var i;if(e==="%AsyncFunction%")i=Sw("async function () {}");else if(e==="%GeneratorFunction%")i=Sw("function* () {}");else if(e==="%AsyncGeneratorFunction%")i=Sw("async function* () {}");else if(e==="%AsyncGenerator%"){var n=t("%AsyncGeneratorFunction%");n&&(i=n.prototype)}else if(e==="%AsyncIteratorPrototype%"){var a=t("%AsyncGenerator%");a&&gi&&(i=gi(a.prototype))}return Ma[e]=i,i},LE={__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"]},Eo=xo(),Tc=xc(),nJ=Eo.call(Mo,Array.prototype.concat),tJ=Eo.call(FE,Array.prototype.splice),WE=Eo.call(Mo,String.prototype.replace),Mc=Eo.call(Mo,String.prototype.slice),aJ=Eo.call(Mo,RegExp.prototype.exec),rJ=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,sJ=/\\(\\)?/g,oJ=function(e){var i=Mc(e,0,1),n=Mc(e,-1);if(i==="%"&&n!=="%")throw new Nr("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&i!=="%")throw new Nr("invalid intrinsic syntax, expected opening `%`");var a=[];return WE(e,rJ,function(r,s,o,l){a[a.length]=o?WE(l,sJ,"$1"):s||r}),a},lJ=function(e,i){var n=e,a;if(Tc(LE,n)&&(a=LE[n],n="%"+a[0]+"%"),Tc(Ma,n)){var r=Ma[n];if(r===Gr&&(r=iJ(n)),typeof r>"u"&&!i)throw new $r("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:a,name:n,value:r}}throw new Nr("intrinsic "+e+" does not exist!")};VE.exports=function(e,i){if(typeof e!="string"||e.length===0)throw new $r("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof i!="boolean")throw new $r('"allowMissing" argument must be a boolean');if(aJ(/^%?[^%]*%?$/,e)===null)throw new Nr("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=oJ(e),a=n.length>0?n[0]:"",r=lJ("%"+a+"%",i),s=r.name,o=r.value,l=!1,u=r.alias;u&&(a=u[0],tJ(n,nJ([0,1],u)));for(var c=1,p=!0;c=n.length){var m=To(o,d);p=!!m,p&&"get"in m&&!("originalValue"in m.get)?o=m.get:o=o[d]}else p=Tc(o,d),o=o[d];p&&!l&&(Ma[s]=o)}}return o}});var ZE=w((Yse,JE)=>{"use strict";var uJ=Cw();JE.exports=function(){return uJ()&&!!Symbol.toStringTag}});var YE=w((Xse,QE)=>{"use strict";var cJ=ko(),KE=cJ("%Object.defineProperty%",!0),pJ=ZE()(),dJ=xc(),hJ=It(),Ec=pJ?Symbol.toStringTag:null;QE.exports=function(e,i){var n=arguments.length>2&&!!arguments[2]&&arguments[2].force,a=arguments.length>2&&!!arguments[2]&&arguments[2].nonConfigurable;if(typeof n<"u"&&typeof n!="boolean"||typeof a<"u"&&typeof a!="boolean")throw new hJ("if provided, the `overrideIfSet` and `nonConfigurable` options must be booleans");Ec&&(n||!dJ(e,Ec))&&(KE?KE(e,Ec,{configurable:!a,enumerable:!1,value:i,writable:!1}):e[Ec]=i)}});var ek=w((eoe,XE)=>{"use strict";XE.exports=function(t,e){return Object.keys(e).forEach(function(i){t[i]=t[i]||e[i]}),t}});var nk=w((ioe,ik)=>{"use strict";var Ew=lM(),gJ=require("util"),xw=require("path"),mJ=require("http"),fJ=require("https"),wJ=require("url").parse,vJ=require("fs"),CJ=require("stream").Stream,AJ=require("crypto"),Tw=gM(),bJ=kM(),yJ=YE(),zt=xc(),Mw=ek();function Ce(t){if(!(this instanceof Ce))return new Ce(t);this._overheadLength=0,this._valueLength=0,this._valuesToMeasure=[],Ew.call(this),t=t||{};for(var e in t)this[e]=t[e]}gJ.inherits(Ce,Ew);Ce.LINE_BREAK=`\r +`;Ce.DEFAULT_CONTENT_TYPE="application/octet-stream";Ce.prototype.append=function(t,e,i){i=i||{},typeof i=="string"&&(i={filename:i});var n=Ew.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,i),r=this._multiPartFooter();n(a),n(e),n(r),this._trackLength(a,e,i)};Ce.prototype._trackLength=function(t,e,i){var n=0;i.knownLength!=null?n+=Number(i.knownLength):Buffer.isBuffer(e)?n=e.length:typeof e=="string"&&(n=Buffer.byteLength(e)),this._valueLength+=n,this._overheadLength+=Buffer.byteLength(t)+Ce.LINE_BREAK.length,!(!e||!e.path&&!(e.readable&&zt(e,"httpVersion"))&&!(e instanceof CJ))&&(i.knownLength||this._valuesToMeasure.push(e))};Ce.prototype._lengthRetriever=function(t,e){zt(t,"fd")?t.end!=null&&t.end!=1/0&&t.start!=null?e(null,t.end+1-(t.start?t.start:0)):vJ.stat(t.path,function(i,n){if(i){e(i);return}var a=n.size-(t.start?t.start:0);e(null,a)}):zt(t,"httpVersion")?e(null,Number(t.headers["content-length"])):zt(t,"httpModule")?(t.on("response",function(i){t.pause(),e(null,Number(i.headers["content-length"]))}),t.resume()):e("Unknown stream")};Ce.prototype._multiPartHeader=function(t,e,i){if(typeof i.header=="string")return i.header;var n=this._getContentDisposition(e,i),a=this._getContentType(e,i),r="",s={"Content-Disposition":["form-data",'name="'+t+'"'].concat(n||[]),"Content-Type":[].concat(a||[])};typeof i.header=="object"&&Mw(s,i.header);var o;for(var l in s)if(zt(s,l)){if(o=s[l],o==null)continue;Array.isArray(o)||(o=[o]),o.length&&(r+=l+": "+o.join("; ")+Ce.LINE_BREAK)}return"--"+this.getBoundary()+Ce.LINE_BREAK+r+Ce.LINE_BREAK};Ce.prototype._getContentDisposition=function(t,e){var i;if(typeof e.filepath=="string"?i=xw.normalize(e.filepath).replace(/\\/g,"/"):e.filename||t&&(t.name||t.path)?i=xw.basename(e.filename||t&&(t.name||t.path)):t&&t.readable&&zt(t,"httpVersion")&&(i=xw.basename(t.client._httpMessage.path||"")),i)return'filename="'+i+'"'};Ce.prototype._getContentType=function(t,e){var i=e.contentType;return!i&&t&&t.name&&(i=Tw.lookup(t.name)),!i&&t&&t.path&&(i=Tw.lookup(t.path)),!i&&t&&t.readable&&zt(t,"httpVersion")&&(i=t.headers["content-type"]),!i&&(e.filepath||e.filename)&&(i=Tw.lookup(e.filepath||e.filename)),!i&&t&&typeof t=="object"&&(i=Ce.DEFAULT_CONTENT_TYPE),i};Ce.prototype._multiPartFooter=function(){return function(t){var e=Ce.LINE_BREAK,i=this._streams.length===0;i&&(e+=this._lastBoundary()),t(e)}.bind(this)};Ce.prototype._lastBoundary=function(){return"--"+this.getBoundary()+"--"+Ce.LINE_BREAK};Ce.prototype.getHeaders=function(t){var e,i={"content-type":"multipart/form-data; boundary="+this.getBoundary()};for(e in t)zt(t,e)&&(i[e.toLowerCase()]=t[e]);return i};Ce.prototype.setBoundary=function(t){if(typeof t!="string")throw new TypeError("FormData boundary must be a string");this._boundary=t};Ce.prototype.getBoundary=function(){return this._boundary||this._generateBoundary(),this._boundary};Ce.prototype.getBuffer=function(){for(var t=new Buffer.alloc(0),e=this.getBoundary(),i=0,n=this._streams.length;i{var Ur=1e3,Lr=Ur*60,Wr=Lr*60,Ea=Wr*24,PJ=Ea*7,jJ=Ea*365.25;tk.exports=function(t,e){e=e||{};var i=typeof t;if(i==="string"&&t.length>0)return SJ(t);if(i==="number"&&isFinite(t))return e.long?xJ(t):OJ(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))};function SJ(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 i=parseFloat(e[1]),n=(e[2]||"ms").toLowerCase();switch(n){case"years":case"year":case"yrs":case"yr":case"y":return i*jJ;case"weeks":case"week":case"w":return i*PJ;case"days":case"day":case"d":return i*Ea;case"hours":case"hour":case"hrs":case"hr":case"h":return i*Wr;case"minutes":case"minute":case"mins":case"min":case"m":return i*Lr;case"seconds":case"second":case"secs":case"sec":case"s":return i*Ur;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return i;default:return}}}}function OJ(t){var e=Math.abs(t);return e>=Ea?Math.round(t/Ea)+"d":e>=Wr?Math.round(t/Wr)+"h":e>=Lr?Math.round(t/Lr)+"m":e>=Ur?Math.round(t/Ur)+"s":t+"ms"}function xJ(t){var e=Math.abs(t);return e>=Ea?kc(t,e,Ea,"day"):e>=Wr?kc(t,e,Wr,"hour"):e>=Lr?kc(t,e,Lr,"minute"):e>=Ur?kc(t,e,Ur,"second"):t+" ms"}function kc(t,e,i,n){var a=e>=i*1.5;return Math.round(t/i)+" "+n+(a?"s":"")}});var qw=w((toe,ak)=>{function TJ(t){i.debug=i,i.default=i,i.coerce=l,i.disable=s,i.enable=a,i.enabled=o,i.humanize=kw(),i.destroy=u,Object.keys(t).forEach(c=>{i[c]=t[c]}),i.names=[],i.skips=[],i.formatters={};function e(c){let p=0;for(let d=0;d{if($==="%%")return"%";b++;let X=i.formatters[N];if(typeof X=="function"){let F=f[b];$=X.call(v,F),f.splice(b,1),b--}return $}),i.formatArgs.call(v,f),(v.log||i.log).apply(v,f)}return m.namespace=c,m.useColors=i.useColors(),m.color=i.selectColor(c),m.extend=n,m.destroy=i.destroy,Object.defineProperty(m,"enabled",{enumerable:!0,configurable:!1,get:()=>d!==null?d:(h!==i.namespaces&&(h=i.namespaces,g=i.enabled(c)),g),set:f=>{d=f}}),typeof i.init=="function"&&i.init(m),m}function n(c,p){let d=i(this.namespace+(typeof p>"u"?":":p)+c);return d.log=this.log,d}function a(c){i.save(c),i.namespaces=c,i.names=[],i.skips=[];let p=(typeof c=="string"?c:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(let d of p)d[0]==="-"?i.skips.push(d.slice(1)):i.names.push(d)}function r(c,p){let d=0,h=0,g=-1,m=0;for(;d"-"+p)].join(",");return i.enable(""),c}function o(c){for(let p of i.skips)if(r(c,p))return!1;for(let p of i.names)if(r(c,p))return!0;return!1}function l(c){return c instanceof Error?c.stack||c.message:c}function u(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return i.enable(i.load()),i}ak.exports=TJ});var rk=w((Bi,qc)=>{Bi.formatArgs=EJ;Bi.save=kJ;Bi.load=qJ;Bi.useColors=MJ;Bi.storage=_J();Bi.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`."))}})();Bi.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 MJ(){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 EJ(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+qc.exports.humanize(this.diff),!this.useColors)return;let e="color: "+this.color;t.splice(1,0,e,"color: inherit");let i=0,n=0;t[0].replace(/%[a-zA-Z%]/g,a=>{a!=="%%"&&(i++,a==="%c"&&(n=i))}),t.splice(n,0,e)}Bi.log=console.debug||console.log||(()=>{});function kJ(t){try{t?Bi.storage.setItem("debug",t):Bi.storage.removeItem("debug")}catch{}}function qJ(){let t;try{t=Bi.storage.getItem("debug")||Bi.storage.getItem("DEBUG")}catch{}return!t&&typeof process<"u"&&"env"in process&&(t=process.env.DEBUG),t}function _J(){try{return localStorage}catch{}}qc.exports=qw()(Bi);var{formatters:HJ}=qc.exports;HJ.j=function(t){try{return JSON.stringify(t)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}});var ok=w((mi,Hc)=>{var RJ=require("tty"),_c=require("util");mi.init=UJ;mi.log=GJ;mi.formatArgs=zJ;mi.save=$J;mi.load=NJ;mi.useColors=IJ;mi.destroy=_c.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");mi.colors=[6,2,3,4,5,1];try{let t=require("supports-color");t&&(t.stderr||t).level>=2&&(mi.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{}mi.inspectOpts=Object.keys(process.env).filter(t=>/^debug_/i.test(t)).reduce((t,e)=>{let i=e.substring(6).toLowerCase().replace(/_([a-z])/g,(a,r)=>r.toUpperCase()),n=process.env[e];return/^(yes|on|true|enabled)$/i.test(n)?n=!0:/^(no|off|false|disabled)$/i.test(n)?n=!1:n==="null"?n=null:n=Number(n),t[i]=n,t},{});function IJ(){return"colors"in mi.inspectOpts?!!mi.inspectOpts.colors:RJ.isatty(process.stderr.fd)}function zJ(t){let{namespace:e,useColors:i}=this;if(i){let n=this.color,a="\x1B[3"+(n<8?n:"8;5;"+n),r=` ${a};1m${e} \x1B[0m`;t[0]=r+t[0].split(` `).join(` -`+r),t.push(a+"m+"+Hc.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=zJ()+e+" "+t[0]}function zJ(){return mi.inspectOpts.hideDate?"":new Date().toISOString()+" "}function DJ(...t){return process.stderr.write(_c.formatWithOptions(mi.inspectOpts,...t)+` -`)}function GJ(t){t?process.env.DEBUG=t:delete process.env.DEBUG}function $J(){return process.env.DEBUG}function NJ(t){t.inspectOpts={};let e=Object.keys(mi.inspectOpts);for(let i=0;ie.trim()).join(" ")};rk.O=function(t){return this.inspectOpts.colors=this.useColors,_c.inspect(t,this.inspectOpts)}});var qo=w((toe,_w)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?_w.exports=ak():_w.exports=sk()});var ok=w(Hw=>{"use strict";Object.defineProperty(Hw,"__esModule",{value:!0});function UJ(t){return function(e,i){return new Promise((n,a)=>{t.call(this,e,i,(r,s)=>{r?a(r):n(s)})})}}Hw.default=UJ});var ck=w((Iw,uk)=>{"use strict";var lk=Iw&&Iw.__importDefault||function(t){return t&&t.__esModule?t:{default:t}},LJ=require("events"),WJ=lk(qo()),BJ=lk(ok()),_o=WJ.default("agent-base");function FJ(t){return!!t&&typeof t.addRequest=="function"}function Rw(){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 Rc(t,e){return new Rc.Agent(t,e)}(function(t){class e extends LJ.EventEmitter{constructor(n,a){super();let r=a;typeof n=="function"?this.callback=n:n&&(r=n),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:Rw()?443:80}set defaultPort(n){this.explicitDefaultPort=n}get protocol(){return typeof this.explicitProtocol=="string"?this.explicitProtocol:Rw()?"https:":"http:"}set protocol(n){this.explicitProtocol=n}callback(n,a,r){throw new Error('"agent-base" has no default implementation, you must subclass and override `callback()`')}addRequest(n,a){let r=Object.assign({},a);typeof r.secureEndpoint!="boolean"&&(r.secureEndpoint=Rw()),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,n._last=!0,n.shouldKeepAlive=!1;let s=!1,o=null,l=r.timeout||this.timeout,u=h=>{n._hadError||(n.emit("error",h),n._hadError=!0)},c=()=>{o=null,s=!0;let h=new Error(`A "socket" was not created for HTTP request before ${l}ms`);h.code="ETIMEOUT",u(h)},p=h=>{s||(o!==null&&(clearTimeout(o),o=null),u(h))},d=h=>{if(s)return;if(o!=null&&(clearTimeout(o),o=null),FJ(h)){_o("Callback returned another Agent instance %o",h.constructor.name),h.addRequest(n,r);return}if(h){h.once("free",()=>{this.freeSocket(h,r)}),n.onSocket(h);return}let g=new Error(`no Duplex stream was returned to agent-base for \`${n.method} ${n.path}\``);u(g)};if(typeof this.callback!="function"){u(new Error("`callback` is not defined"));return}this.promisifiedCallback||(this.callback.length>=3?(_o("Converting legacy callback function to promise"),this.promisifiedCallback=BJ.default(this.callback)):this.promisifiedCallback=this.callback),typeof l=="number"&&l>0&&(o=setTimeout(c,l)),"port"in r&&typeof r.port!="number"&&(r.port=Number(r.port));try{_o("Resolving socket for %o request: %o",r.protocol,`${n.method} ${n.path}`),Promise.resolve(this.promisifiedCallback(n,r)).then(d,p)}catch(h){Promise.reject(h).catch(p)}}freeSocket(n,a){_o("Freeing socket %o %o",n.constructor.name,a),n.destroy()}destroy(){_o("Destroying agent %o",this.constructor.name)}}t.Agent=e,t.prototype=t.Agent.prototype})(Rc||(Rc={}));uk.exports=Rc});var pk=w(Ro=>{"use strict";var VJ=Ro&&Ro.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Ro,"__esModule",{value:!0});var JJ=VJ(qo()),Ho=JJ.default("https-proxy-agent:parse-proxy-response");function ZJ(t){return new Promise((e,i)=>{let n=0,a=[];function r(){let p=t.read();p?c(p):t.once("readable",r)}function s(){t.removeListener("end",l),t.removeListener("error",u),t.removeListener("close",o),t.removeListener("readable",r)}function o(p){Ho("onclose had error %o",p)}function l(){Ho("onend")}function u(p){s(),Ho("onerror %o",p),i(p)}function c(p){a.push(p),n+=p.length;let d=Buffer.concat(a,n);if(d.indexOf(`\r +`+r),t.push(a+"m+"+Hc.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=DJ()+e+" "+t[0]}function DJ(){return mi.inspectOpts.hideDate?"":new Date().toISOString()+" "}function GJ(...t){return process.stderr.write(_c.formatWithOptions(mi.inspectOpts,...t)+` +`)}function $J(t){t?process.env.DEBUG=t:delete process.env.DEBUG}function NJ(){return process.env.DEBUG}function UJ(t){t.inspectOpts={};let e=Object.keys(mi.inspectOpts);for(let i=0;ie.trim()).join(" ")};sk.O=function(t){return this.inspectOpts.colors=this.useColors,_c.inspect(t,this.inspectOpts)}});var qo=w((aoe,_w)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?_w.exports=rk():_w.exports=ok()});var lk=w(Hw=>{"use strict";Object.defineProperty(Hw,"__esModule",{value:!0});function LJ(t){return function(e,i){return new Promise((n,a)=>{t.call(this,e,i,(r,s)=>{r?a(r):n(s)})})}}Hw.default=LJ});var pk=w((Iw,ck)=>{"use strict";var uk=Iw&&Iw.__importDefault||function(t){return t&&t.__esModule?t:{default:t}},WJ=require("events"),BJ=uk(qo()),FJ=uk(lk()),_o=BJ.default("agent-base");function VJ(t){return!!t&&typeof t.addRequest=="function"}function Rw(){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 Rc(t,e){return new Rc.Agent(t,e)}(function(t){class e extends WJ.EventEmitter{constructor(n,a){super();let r=a;typeof n=="function"?this.callback=n:n&&(r=n),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:Rw()?443:80}set defaultPort(n){this.explicitDefaultPort=n}get protocol(){return typeof this.explicitProtocol=="string"?this.explicitProtocol:Rw()?"https:":"http:"}set protocol(n){this.explicitProtocol=n}callback(n,a,r){throw new Error('"agent-base" has no default implementation, you must subclass and override `callback()`')}addRequest(n,a){let r=Object.assign({},a);typeof r.secureEndpoint!="boolean"&&(r.secureEndpoint=Rw()),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,n._last=!0,n.shouldKeepAlive=!1;let s=!1,o=null,l=r.timeout||this.timeout,u=h=>{n._hadError||(n.emit("error",h),n._hadError=!0)},c=()=>{o=null,s=!0;let h=new Error(`A "socket" was not created for HTTP request before ${l}ms`);h.code="ETIMEOUT",u(h)},p=h=>{s||(o!==null&&(clearTimeout(o),o=null),u(h))},d=h=>{if(s)return;if(o!=null&&(clearTimeout(o),o=null),VJ(h)){_o("Callback returned another Agent instance %o",h.constructor.name),h.addRequest(n,r);return}if(h){h.once("free",()=>{this.freeSocket(h,r)}),n.onSocket(h);return}let g=new Error(`no Duplex stream was returned to agent-base for \`${n.method} ${n.path}\``);u(g)};if(typeof this.callback!="function"){u(new Error("`callback` is not defined"));return}this.promisifiedCallback||(this.callback.length>=3?(_o("Converting legacy callback function to promise"),this.promisifiedCallback=FJ.default(this.callback)):this.promisifiedCallback=this.callback),typeof l=="number"&&l>0&&(o=setTimeout(c,l)),"port"in r&&typeof r.port!="number"&&(r.port=Number(r.port));try{_o("Resolving socket for %o request: %o",r.protocol,`${n.method} ${n.path}`),Promise.resolve(this.promisifiedCallback(n,r)).then(d,p)}catch(h){Promise.reject(h).catch(p)}}freeSocket(n,a){_o("Freeing socket %o %o",n.constructor.name,a),n.destroy()}destroy(){_o("Destroying agent %o",this.constructor.name)}}t.Agent=e,t.prototype=t.Agent.prototype})(Rc||(Rc={}));ck.exports=Rc});var dk=w(Ro=>{"use strict";var JJ=Ro&&Ro.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Ro,"__esModule",{value:!0});var ZJ=JJ(qo()),Ho=ZJ.default("https-proxy-agent:parse-proxy-response");function KJ(t){return new Promise((e,i)=>{let n=0,a=[];function r(){let p=t.read();p?c(p):t.once("readable",r)}function s(){t.removeListener("end",l),t.removeListener("error",u),t.removeListener("close",o),t.removeListener("readable",r)}function o(p){Ho("onclose had error %o",p)}function l(){Ho("onend")}function u(p){s(),Ho("onerror %o",p),i(p)}function c(p){a.push(p),n+=p.length;let d=Buffer.concat(a,n);if(d.indexOf(`\r \r `)===-1){Ho("have not received end of HTTP headers yet..."),r();return}let g=d.toString("ascii",0,d.indexOf(`\r -`)),m=+g.split(" ")[1];Ho("got proxy server response: %o",g),e({statusCode:m,buffered:d})}t.on("error",u),t.on("close",o),t.on("end",l),r()})}Ro.default=ZJ});var gk=w(ka=>{"use strict";var KJ=ka&&ka.__awaiter||function(t,e,i,n){function a(r){return r instanceof i?r:new i(function(s){s(r)})}return new(i||(i=Promise))(function(r,s){function o(c){try{u(n.next(c))}catch(p){s(p)}}function l(c){try{u(n.throw(c))}catch(p){s(p)}}function u(c){c.done?r(c.value):a(c.value).then(o,l)}u((n=n.apply(t,e||[])).next())})},Br=ka&&ka.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(ka,"__esModule",{value:!0});var dk=Br(require("net")),hk=Br(require("tls")),QJ=Br(require("url")),YJ=Br(require("assert")),XJ=Br(qo()),e4=ck(),i4=Br(pk()),Io=XJ.default("https-proxy-agent:agent"),zw=class extends e4.Agent{constructor(e){let i;if(typeof e=="string"?i=QJ.default.parse(e):i=e,!i)throw new Error("an HTTP(S) proxy server `host` and `port` must be specified!");Io("creating new HttpsProxyAgent instance: %o",i),super(i);let n=Object.assign({},i);this.secureProxy=i.secureProxy||a4(n.protocol),n.host=n.hostname||n.host,typeof n.port=="string"&&(n.port=parseInt(n.port,10)),!n.port&&n.host&&(n.port=this.secureProxy?443:80),this.secureProxy&&!("ALPNProtocols"in n)&&(n.ALPNProtocols=["http 1.1"]),n.host&&n.path&&(delete n.path,delete n.pathname),this.proxy=n}callback(e,i){return KJ(this,void 0,void 0,function*(){let{proxy:n,secureProxy:a}=this,r;a?(Io("Creating `tls.Socket`: %o",n),r=hk.default.connect(n)):(Io("Creating `net.Socket`: %o",n),r=dk.default.connect(n));let s=Object.assign({},n.headers),l=`CONNECT ${`${i.host}:${i.port}`} HTTP/1.1\r -`;n.auth&&(s["Proxy-Authorization"]=`Basic ${Buffer.from(n.auth).toString("base64")}`);let{host:u,port:c,secureEndpoint:p}=i;t4(c,p)||(u+=`:${c}`),s.Host=u,s.Connection="close";for(let f of Object.keys(s))l+=`${f}: ${s[f]}\r -`;let d=i4.default(r);r.write(`${l}\r -`);let{statusCode:h,buffered:g}=yield d;if(h===200){if(e.once("socket",n4),i.secureEndpoint){Io("Upgrading socket connection to TLS");let f=i.servername||i.host;return hk.default.connect(Object.assign(Object.assign({},r4(i,"host","hostname","path","port")),{socket:r,servername:f}))}return r}r.destroy();let m=new dk.default.Socket({writable:!1});return m.readable=!0,e.once("socket",f=>{Io("replaying proxy buffer for failed request"),YJ.default(f.listenerCount("data")>0),f.push(g),f.push(null)}),m})}};ka.default=zw;function n4(t){t.resume()}function t4(t,e){return!!(!e&&t===80||e&&t===443)}function a4(t){return typeof t=="string"?/^https:?$/i.test(t):!1}function r4(t,...e){let i={},n;for(n in t)e.includes(n)||(i[n]=t[n]);return i}});var fk=w(($w,mk)=>{"use strict";var s4=$w&&$w.__importDefault||function(t){return t&&t.__esModule?t:{default:t}},Dw=s4(gk());function Gw(t){return new Dw.default(t)}(function(t){t.HttpsProxyAgent=Dw.default,t.prototype=Dw.default.prototype})(Gw||(Gw={}));mk.exports=Gw});var vk=w((ooe,wk)=>{var zo;wk.exports=function(){if(!zo){try{zo=qo()("follow-redirects")}catch{}typeof zo!="function"&&(zo=function(){})}zo.apply(null,arguments)}});var Pk=w((loe,Yw)=>{var Go=require("url"),Do=Go.URL,o4=require("http"),l4=require("https"),Bw=require("stream").Writable,Fw=require("assert"),Ck=vk();(function(){var e=typeof process<"u",i=typeof window<"u"&&typeof document<"u",n=_a(Error.captureStackTrace);!e&&(i||!n)&&console.warn("The follow-redirects package should be excluded from browser builds.")})();var Vw=!1;try{Fw(new Do(""))}catch(t){Vw=t.code==="ERR_INVALID_URL"}var u4=["Authorization","Proxy-Authorization","Cookie"],c4=["auth","host","hostname","href","path","pathname","port","protocol","query","search","hash"],Jw=["abort","aborted","connect","error","socket","timeout"],Zw=Object.create(null);Jw.forEach(function(t){Zw[t]=function(e,i,n){this._redirectable.emit(t,e,i,n)}});var Uw=$o("ERR_INVALID_URL","Invalid URL",TypeError),Lw=$o("ERR_FR_REDIRECTION_FAILURE","Redirected request failed"),p4=$o("ERR_FR_TOO_MANY_REDIRECTS","Maximum number of redirects exceeded",Lw),d4=$o("ERR_FR_MAX_BODY_LENGTH_EXCEEDED","Request body larger than maxBodyLength limit"),h4=$o("ERR_STREAM_WRITE_AFTER_END","write after end"),g4=Bw.prototype.destroy||bk;function Fi(t,e){Bw.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 i=this;this._onNativeResponse=function(n){try{i._processResponse(n)}catch(a){i.emit("error",a instanceof Lw?a:new Lw({cause:a}))}},this._headerFilter=new RegExp("^(?:"+u4.concat(t.sensitiveHeaders).map(A4).join("|")+")$","i"),this._performRequest()}Fi.prototype=Object.create(Bw.prototype);Fi.prototype.abort=function(){Qw(this._currentRequest),this._currentRequest.abort(),this.emit("abort")};Fi.prototype.destroy=function(t){return Qw(this._currentRequest,t),g4.call(this,t),this};Fi.prototype.write=function(t,e,i){if(this._ending)throw new h4;if(!qa(t)&&!v4(t))throw new TypeError("data should be a string, Buffer or Uint8Array");if(_a(e)&&(i=e,e=null),t.length===0){i&&i();return}this._requestBodyLength+t.length<=this._options.maxBodyLength?(this._requestBodyLength+=t.length,this._requestBodyBuffers.push({data:t,encoding:e}),this._currentRequest.write(t,e,i)):(this.emit("error",new d4),this.abort())};Fi.prototype.end=function(t,e,i){if(_a(t)?(i=t,t=e=null):_a(e)&&(i=e,e=null),!t)this._ended=this._ending=!0,this._currentRequest.end(null,null,i);else{var n=this,a=this._currentRequest;this.write(t,e,function(){n._ended=!0,a.end(null,null,i)}),this._ending=!0}};Fi.prototype.setHeader=function(t,e){this._options.headers[t]=e,this._currentRequest.setHeader(t,e)};Fi.prototype.removeHeader=function(t){delete this._options.headers[t],this._currentRequest.removeHeader(t)};Fi.prototype.setTimeout=function(t,e){var i=this;function n(s){s.setTimeout(t),s.removeListener("timeout",s.destroy),s.addListener("timeout",s.destroy)}function a(s){i._timeout&&clearTimeout(i._timeout),i._timeout=setTimeout(function(){i.emit("timeout"),r()},t),n(s)}function r(){i._timeout&&(clearTimeout(i._timeout),i._timeout=null),i.removeListener("abort",r),i.removeListener("error",r),i.removeListener("response",r),i.removeListener("close",r),e&&i.removeListener("timeout",e),i.socket||i._currentRequest.removeListener("socket",a)}return e&&this.on("timeout",e),this.socket?a(this.socket):this._currentRequest.once("socket",a),this.on("socket",n),this.on("abort",r),this.on("error",r),this.on("response",r),this.on("close",r),this};["flushHeaders","getHeader","setNoDelay","setSocketKeepAlive"].forEach(function(t){Fi.prototype[t]=function(e,i){return this._currentRequest[t](e,i)}});["aborted","connection","socket"].forEach(function(t){Object.defineProperty(Fi.prototype,t,{get:function(){return this._currentRequest[t]}})});Fi.prototype._sanitizeOptions=function(t){if(t.headers||(t.headers={}),w4(t.sensitiveHeaders)||(t.sensitiveHeaders=[]),t.host&&(t.hostname||(t.hostname=t.host),delete t.host),!t.pathname&&t.path){var e=t.path.indexOf("?");e<0?t.pathname=t.path:(t.pathname=t.path.substring(0,e),t.search=t.path.substring(e))}};Fi.prototype._performRequest=function(){var t=this._options.protocol,e=this._options.nativeProtocols[t];if(!e)throw new TypeError("Unsupported protocol "+t);if(this._options.agents){var i=t.slice(0,-1);this._options.agent=this._options.agents[i]}var n=this._currentRequest=e.request(this._options,this._onNativeResponse);n._redirectable=this;for(var a of Jw)n.on(a,Zw[a]);if(this._currentUrl=/^\//.test(this._options.path)?Go.format(this._options):this._options.path,this._isRedirect){var r=0,s=this,o=this._requestBodyBuffers;(function l(u){if(n===s._currentRequest)if(u)s.emit("error",u);else if(r=400){t.responseUrl=this._currentUrl,t.redirects=this._redirects,this.emit("response",t),this._requestBodyBuffers=[];return}if(Qw(this._currentRequest),t.destroy(),++this._redirectCount>this._options.maxRedirects)throw new p4;var n,a=this._options.beforeRedirect;a&&(n=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=[],Nw(/^content-/i,this._options.headers));var s=Nw(/^host$/i,this._options.headers),o=Kw(this._currentUrl),l=s||o.host,u=/^\w+:/.test(i)?this._currentUrl:Go.format(Object.assign(o,{host:l})),c=m4(i,u);if(Ck("redirecting to",c.href),this._isRedirect=!0,Ww(c,this._options),(c.protocol!==o.protocol&&c.protocol!=="https:"||c.host!==l&&!f4(c.host,l))&&Nw(this._headerFilter,this._options.headers),_a(a)){var p={headers:t.headers,statusCode:e},d={url:u,method:r,headers:n};a(this._options,p,d),this._sanitizeOptions(this._options)}this._performRequest()};function Ak(t){var e={maxRedirects:21,maxBodyLength:10485760},i={};return Object.keys(t).forEach(function(n){var a=n+":",r=i[a]=t[n],s=e[n]=Object.create(r);function o(u,c,p){return C4(u)?u=Ww(u):qa(u)?u=Ww(Kw(u)):(p=c,c=yk(u),u={protocol:a}),_a(c)&&(p=c,c=null),c=Object.assign({maxRedirects:e.maxRedirects,maxBodyLength:e.maxBodyLength},u,c),c.nativeProtocols=i,!qa(c.host)&&!qa(c.hostname)&&(c.hostname="::1"),Fw.equal(c.protocol,a,"protocol mismatch"),Ck("options",c),new Fi(c,p)}function l(u,c,p){var d=s.request(u,c,p);return d.end(),d}Object.defineProperties(s,{request:{value:o,configurable:!0,enumerable:!0,writable:!0},get:{value:l,configurable:!0,enumerable:!0,writable:!0}})}),e}function bk(){}function Kw(t){var e;if(Vw)e=new Do(t);else if(e=yk(Go.parse(t)),!qa(e.protocol))throw new Uw({input:t});return e}function m4(t,e){return Vw?new Do(t,e):Kw(Go.resolve(e,t))}function yk(t){if(/^\[/.test(t.hostname)&&!/^\[[:0-9a-f]+\]$/i.test(t.hostname))throw new Uw({input:t.href||t});if(/^\[/.test(t.host)&&!/^\[[:0-9a-f]+\](:\d+)?$/i.test(t.host))throw new Uw({input:t.href||t});return t}function Ww(t,e){var i=e||{};for(var n of c4)i[n]=t[n];return i.hostname.startsWith("[")&&(i.hostname=i.hostname.slice(1,-1)),i.port!==""&&(i.port=Number(i.port)),i.path=i.search?i.pathname+i.search:i.pathname,i}function Nw(t,e){var i;for(var n in e)t.test(n)&&(i=e[n],delete e[n]);return i===null||typeof i>"u"?void 0:String(i).trim()}function $o(t,e,i){function n(a){_a(Error.captureStackTrace)&&Error.captureStackTrace(this,this.constructor),Object.assign(this,a||{}),this.code=t,this.message=this.cause?e+": "+this.cause.message:e}return n.prototype=new(i||Error),Object.defineProperties(n.prototype,{constructor:{value:n,enumerable:!1},name:{value:"Error ["+t+"]",enumerable:!1}}),n}function Qw(t,e){for(var i of Jw)t.removeListener(i,Zw[i]);t.on("error",bk),t.destroy(e)}function f4(t,e){Fw(qa(t)&&qa(e));var i=t.length-e.length-1;return i>0&&t[i]==="."&&t.endsWith(e)}function w4(t){return t instanceof Array}function qa(t){return typeof t=="string"||t instanceof String}function _a(t){return typeof t=="function"}function v4(t){return typeof t=="object"&&"length"in t}function C4(t){return Do&&t instanceof Do}function A4(t){return t.replace(/[\]\\/()*+?.$]/g,"\\$&")}Yw.exports=Ak({http:o4,https:l4});Yw.exports.wrap=Ak});var Pq=w((uoe,yq)=>{"use strict";var Jk=ik(),b4=require("crypto"),y4=require("url"),Zk=fk(),P4=require("http"),j4=require("https"),Kk=require("http2"),mv=require("util"),jk=require("path"),S4=Pk(),Dt=require("zlib"),Vi=require("stream"),O4=require("events");function Qk(t,e){return function(){return t.apply(e,arguments)}}var{toString:x4}=Object.prototype,{getPrototypeOf:Bc}=Object,{iterator:Fc,toStringTag:Yk}=Symbol,Vc=(t=>e=>{let i=x4.call(e);return t[i]||(t[i]=i.slice(8,-1).toLowerCase())})(Object.create(null)),Tn=t=>(t=t.toLowerCase(),e=>Vc(e)===t),Jc=t=>e=>typeof e===t,{isArray:Kr}=Array,Jr=Jc("undefined");function Wo(t){return t!==null&&!Jr(t)&&t.constructor!==null&&!Jr(t.constructor)&&Ji(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}var Xk=Tn("ArrayBuffer");function T4(t){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&Xk(t.buffer),e}var M4=Jc("string"),Ji=Jc("function"),eq=Jc("number"),Bo=t=>t!==null&&typeof t=="object",E4=t=>t===!0||t===!1,Dc=t=>{if(Vc(t)!=="object")return!1;let e=Bc(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Yk in t)&&!(Fc in t)},k4=t=>{if(!Bo(t)||Wo(t))return!1;try{return Object.keys(t).length===0&&Object.getPrototypeOf(t)===Object.prototype}catch{return!1}},q4=Tn("Date"),_4=Tn("File"),H4=t=>!!(t&&typeof t.uri<"u"),R4=t=>t&&typeof t.getParts<"u",I4=Tn("Blob"),z4=Tn("FileList"),D4=t=>Bo(t)&&Ji(t.pipe);function G4(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}}var Sk=G4(),Ok=typeof Sk.FormData<"u"?Sk.FormData:void 0,$4=t=>{if(!t)return!1;if(Ok&&t instanceof Ok)return!0;let e=Bc(t);if(!e||e===Object.prototype||!Ji(t.append))return!1;let i=Vc(t);return i==="formdata"||i==="object"&&Ji(t.toString)&&t.toString()==="[object FormData]"},N4=Tn("URLSearchParams"),[U4,L4,W4,B4]=["ReadableStream","Request","Response","Headers"].map(Tn),F4=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Fo(t,e,{allOwnKeys:i=!1}={}){if(t===null||typeof t>"u")return;let n,a;if(typeof t!="object"&&(t=[t]),Kr(t))for(n=0,a=t.length;n0;)if(a=i[n],e===a.toLowerCase())return a;return null}var Ha=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,nq=t=>!Jr(t)&&t!==Ha;function rv(...t){let{caseless:e,skipUndefined:i}=nq(this)&&this||{},n={},a=(r,s)=>{if(s==="__proto__"||s==="constructor"||s==="prototype")return;let o=e&&iq(n,s)||s,l=sv(n,o)?n[o]:void 0;Dc(l)&&Dc(r)?n[o]=rv(l,r):Dc(r)?n[o]=rv({},r):Kr(r)?n[o]=r.slice():(!i||!Jr(r))&&(n[o]=r)};for(let r=0,s=t.length;r(Fo(e,(a,r)=>{i&&Ji(a)?Object.defineProperty(t,r,{__proto__:null,value:Qk(a,i),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(t,r,{__proto__:null,value:a,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:n}),t),J4=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),Z4=(t,e,i,n)=>{t.prototype=Object.create(e.prototype,n),Object.defineProperty(t.prototype,"constructor",{__proto__:null,value:t,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(t,"super",{__proto__:null,value:e.prototype}),i&&Object.assign(t.prototype,i)},K4=(t,e,i,n)=>{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],(!n||n(s,t,e))&&!o[s]&&(e[s]=t[s],o[s]=!0);t=i!==!1&&Bc(t)}while(t&&(!i||i(t,e))&&t!==Object.prototype);return e},Q4=(t,e,i)=>{t=String(t),(i===void 0||i>t.length)&&(i=t.length),i-=e.length;let n=t.indexOf(e,i);return n!==-1&&n===i},Y4=t=>{if(!t)return null;if(Kr(t))return t;let e=t.length;if(!eq(e))return null;let i=new Array(e);for(;e-- >0;)i[e]=t[e];return i},X4=(t=>e=>t&&e instanceof t)(typeof Uint8Array<"u"&&Bc(Uint8Array)),e3=(t,e)=>{let n=(t&&t[Fc]).call(t),a;for(;(a=n.next())&&!a.done;){let r=a.value;e.call(t,r[0],r[1])}},i3=(t,e)=>{let i,n=[];for(;(i=t.exec(e))!==null;)n.push(i);return n},n3=Tn("HTMLFormElement"),t3=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(i,n,a){return n.toUpperCase()+a}),sv=(({hasOwnProperty:t})=>(e,i)=>t.call(e,i))(Object.prototype),a3=Tn("RegExp"),tq=(t,e)=>{let i=Object.getOwnPropertyDescriptors(t),n={};Fo(i,(a,r)=>{let s;(s=e(a,r,t))!==!1&&(n[r]=s||a)}),Object.defineProperties(t,n)},r3=t=>{tq(t,(e,i)=>{if(Ji(t)&&["arguments","caller","callee"].includes(i))return!1;let n=t[i];if(Ji(n)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+i+"'")})}})},s3=(t,e)=>{let i={},n=a=>{a.forEach(r=>{i[r]=!0})};return Kr(t)?n(t):n(String(t).split(e)),i},o3=()=>{},l3=(t,e)=>t!=null&&Number.isFinite(t=+t)?t:e;function u3(t){return!!(t&&Ji(t.append)&&t[Yk]==="FormData"&&t[Fc])}var c3=t=>{let e=new WeakSet,i=n=>{if(Bo(n)){if(e.has(n))return;if(Wo(n))return n;if(!("toJSON"in n)){e.add(n);let a=Kr(n)?[]:{};return Fo(n,(r,s)=>{let o=i(r);!Jr(o)&&(a[s]=o)}),e.delete(n),a}}return n};return i(t)},p3=Tn("AsyncFunction"),d3=t=>t&&(Bo(t)||Ji(t))&&Ji(t.then)&&Ji(t.catch),aq=((t,e)=>t?setImmediate:e?((i,n)=>(Ha.addEventListener("message",({source:a,data:r})=>{a===Ha&&r===i&&n.length&&n.shift()()},!1),a=>{n.push(a),Ha.postMessage(i,"*")}))(`axios@${Math.random()}`,[]):i=>setTimeout(i))(typeof setImmediate=="function",Ji(Ha.postMessage)),h3=typeof queueMicrotask<"u"?queueMicrotask.bind(Ha):typeof process<"u"&&process.nextTick||aq,g3=t=>t!=null&&Ji(t[Fc]),C={isArray:Kr,isArrayBuffer:Xk,isBuffer:Wo,isFormData:$4,isArrayBufferView:T4,isString:M4,isNumber:eq,isBoolean:E4,isObject:Bo,isPlainObject:Dc,isEmptyObject:k4,isReadableStream:U4,isRequest:L4,isResponse:W4,isHeaders:B4,isUndefined:Jr,isDate:q4,isFile:_4,isReactNativeBlob:H4,isReactNative:R4,isBlob:I4,isRegExp:a3,isFunction:Ji,isStream:D4,isURLSearchParams:N4,isTypedArray:X4,isFileList:z4,forEach:Fo,merge:rv,extend:V4,trim:F4,stripBOM:J4,inherits:Z4,toFlatObject:K4,kindOf:Vc,kindOfTest:Tn,endsWith:Q4,toArray:Y4,forEachEntry:e3,matchAll:i3,isHTMLForm:n3,hasOwnProperty:sv,hasOwnProp:sv,reduceDescriptors:tq,freezeMethods:r3,toObjectSet:s3,toCamelCase:t3,noop:o3,toFiniteNumber:l3,findKey:iq,global:Ha,isContextDefined:nq,isSpecCompliantForm:u3,toJSONObject:c3,isAsyncFn:p3,isThenable:d3,setImmediate:aq,asap:h3,isIterable:g3},m3=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"]),f3=t=>{let e={},i,n,a;return t&&t.split(` -`).forEach(function(s){a=s.indexOf(":"),i=s.substring(0,a).trim().toLowerCase(),n=s.substring(a+1).trim(),!(!i||e[i]&&m3[i])&&(i==="set-cookie"?e[i]?e[i].push(n):e[i]=[n]:e[i]=e[i]?e[i]+", "+n:n)}),e};function w3(t){let e=0,i=t.length;for(;ee;){let n=t.charCodeAt(i-1);if(n!==9&&n!==32)break;i-=1}return e===0&&i===t.length?t:t.slice(e,i)}var v3=new RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+","g"),C3=new RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+","g");function fv(t,e){return C.isArray(t)?t.map(i=>fv(i,e)):w3(String(t).replace(e,""))}var A3=t=>fv(t,v3),b3=t=>fv(t,C3);function wv(t){let e=Object.create(null);return C.forEach(t.toJSON(),(i,n)=>{e[n]=b3(i)}),e}var xk=Symbol("internals");function No(t){return t&&String(t).trim().toLowerCase()}function Gc(t){return t===!1||t==null?t:C.isArray(t)?t.map(Gc):A3(String(t))}function y3(t){let e=Object.create(null),i=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g,n;for(;n=i.exec(t);)e[n[1]]=n[2];return e}var P3=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function Xw(t,e,i,n,a){if(C.isFunction(n))return n.call(this,e,i);if(a&&(e=i),!!C.isString(e)){if(C.isString(n))return e.indexOf(n)!==-1;if(C.isRegExp(n))return n.test(e)}}function j3(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,i,n)=>i.toUpperCase()+n)}function S3(t,e){let i=C.toCamelCase(" "+e);["get","set","has"].forEach(n=>{Object.defineProperty(t,n+i,{__proto__:null,value:function(a,r,s){return this[n].call(this,e,a,r,s)},configurable:!0})})}var ti=class{constructor(e){e&&this.set(e)}set(e,i,n){let a=this;function r(o,l,u){let c=No(l);if(!c)throw new Error("header name must be a non-empty string");let p=C.findKey(a,c);(!p||a[p]===void 0||u===!0||u===void 0&&a[p]!==!1)&&(a[p||l]=Gc(o))}let s=(o,l)=>C.forEach(o,(u,c)=>r(u,c,l));if(C.isPlainObject(e)||e instanceof this.constructor)s(e,i);else if(C.isString(e)&&(e=e.trim())&&!P3(e))s(f3(e),i);else if(C.isObject(e)&&C.isIterable(e)){let o={},l,u;for(let c of e){if(!C.isArray(c))throw TypeError("Object iterator must return a key-value pair");o[u=c[0]]=(l=o[u])?C.isArray(l)?[...l,c[1]]:[l,c[1]]:c[1]}s(o,i)}else e!=null&&r(i,e,n);return this}get(e,i){if(e=No(e),e){let n=C.findKey(this,e);if(n){let a=this[n];if(!i)return a;if(i===!0)return y3(a);if(C.isFunction(i))return i.call(this,a,n);if(C.isRegExp(i))return i.exec(a);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,i){if(e=No(e),e){let n=C.findKey(this,e);return!!(n&&this[n]!==void 0&&(!i||Xw(this,this[n],n,i)))}return!1}delete(e,i){let n=this,a=!1;function r(s){if(s=No(s),s){let o=C.findKey(n,s);o&&(!i||Xw(n,n[o],o,i))&&(delete n[o],a=!0)}}return C.isArray(e)?e.forEach(r):r(e),a}clear(e){let i=Object.keys(this),n=i.length,a=!1;for(;n--;){let r=i[n];(!e||Xw(this,this[r],r,e,!0))&&(delete this[r],a=!0)}return a}normalize(e){let i=this,n={};return C.forEach(this,(a,r)=>{let s=C.findKey(n,r);if(s){i[s]=Gc(a),delete i[r];return}let o=e?j3(r):String(r).trim();o!==r&&delete i[r],i[o]=Gc(a),n[o]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){let i=Object.create(null);return C.forEach(this,(n,a)=>{n!=null&&n!==!1&&(i[a]=e&&C.isArray(n)?n.join(", "):n)}),i}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,i])=>e+": "+i).join(` -`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...i){let n=new this(e);return i.forEach(a=>n.set(a)),n}static accessor(e){let n=(this[xk]=this[xk]={accessors:{}}).accessors,a=this.prototype;function r(s){let o=No(s);n[o]||(S3(a,s),n[o]=!0)}return C.isArray(e)?e.forEach(r):r(e),this}};ti.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);C.reduceDescriptors(ti.prototype,({value:t},e)=>{let i=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(n){this[i]=n}}});C.freezeMethods(ti);var O3="[REDACTED ****]";function x3(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 T3(t,e){let i=new Set(e.map(r=>String(r).toLowerCase())),n=[],a=r=>{if(r===null||typeof r!="object"||C.isBuffer(r))return r;if(n.indexOf(r)!==-1)return;r instanceof ti&&(r=r.toJSON()),n.push(r);let s;if(C.isArray(r))s=[],r.forEach((o,l)=>{let u=a(o);C.isUndefined(u)||(s[l]=u)});else{if(!C.isPlainObject(r)&&x3(r))return n.pop(),r;s=Object.create(null);for(let[o,l]of Object.entries(r)){let u=i.has(o.toLowerCase())?O3:a(l);C.isUndefined(u)||(s[o]=u)}}return n.pop(),s};return a(t)}var T=class t extends Error{static from(e,i,n,a,r,s){let o=new t(e.message,i||e.code,n,a,r);return o.cause=e,o.name=e.name,e.status!=null&&o.status==null&&(o.status=e.status),s&&Object.assign(o,s),o}constructor(e,i,n,a,r){super(e),Object.defineProperty(this,"message",{__proto__:null,value:e,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,i&&(this.code=i),n&&(this.config=n),a&&(this.request=a),r&&(this.response=r,this.status=r.status)}toJSON(){let e=this.config,i=e&&C.hasOwnProp(e,"redact")?e.redact:void 0,n=C.isArray(i)&&i.length>0?T3(e,i):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:n,code:this.code,status:this.status}}};T.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE";T.ERR_BAD_OPTION="ERR_BAD_OPTION";T.ECONNABORTED="ECONNABORTED";T.ETIMEDOUT="ETIMEDOUT";T.ECONNREFUSED="ECONNREFUSED";T.ERR_NETWORK="ERR_NETWORK";T.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS";T.ERR_DEPRECATED="ERR_DEPRECATED";T.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE";T.ERR_BAD_REQUEST="ERR_BAD_REQUEST";T.ERR_CANCELED="ERR_CANCELED";T.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT";T.ERR_INVALID_URL="ERR_INVALID_URL";T.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";function ov(t){return C.isPlainObject(t)||C.isArray(t)}function rq(t){return C.endsWith(t,"[]")?t.slice(0,-2):t}function ev(t,e,i){return t?t.concat(e).map(function(a,r){return a=rq(a),!i&&r?"["+a+"]":a}).join(i?".":""):e}function M3(t){return C.isArray(t)&&!t.some(ov)}var E3=C.toFlatObject(C,{},null,function(e){return/^is[A-Z]/.test(e)});function Zc(t,e,i){if(!C.isObject(t))throw new TypeError("target must be an object");e=e||new(Jk||FormData),i=C.toFlatObject(i,{metaTokens:!0,dots:!1,indexes:!1},!1,function(f,v){return!C.isUndefined(v[f])});let n=i.metaTokens,a=i.visitor||p,r=i.dots,s=i.indexes,o=i.Blob||typeof Blob<"u"&&Blob,l=i.maxDepth===void 0?100:i.maxDepth,u=o&&C.isSpecCompliantForm(e);if(!C.isFunction(a))throw new TypeError("visitor must be a function");function c(m){if(m===null)return"";if(C.isDate(m))return m.toISOString();if(C.isBoolean(m))return m.toString();if(!u&&C.isBlob(m))throw new T("Blob is not supported. Use a Buffer instead.");return C.isArrayBuffer(m)||C.isTypedArray(m)?u&&typeof Blob=="function"?new Blob([m]):Buffer.from(m):m}function p(m,f,v){let y=m;if(C.isReactNative(e)&&C.isReactNativeBlob(m))return e.append(ev(v,f,r),c(m)),!1;if(m&&!v&&typeof m=="object"){if(C.endsWith(f,"{}"))f=n?f:f.slice(0,-2),m=JSON.stringify(m);else if(C.isArray(m)&&M3(m)||(C.isFileList(m)||C.endsWith(f,"[]"))&&(y=C.toArray(m)))return f=rq(f),y.forEach(function(b,O){!(C.isUndefined(b)||b===null)&&e.append(s===!0?ev([f],O,r):s===null?f:f+"[]",c(b))}),!1}return ov(m)?!0:(e.append(ev(v,f,r),c(m)),!1)}let d=[],h=Object.assign(E3,{defaultVisitor:p,convertValue:c,isVisitable:ov});function g(m,f,v=0){if(!C.isUndefined(m)){if(v>l)throw new T("Object is too deeply nested ("+v+" levels). Max depth: "+l,T.ERR_FORM_DATA_DEPTH_EXCEEDED);if(d.indexOf(m)!==-1)throw Error("Circular reference detected in "+f.join("."));d.push(m),C.forEach(m,function(A,b){(!(C.isUndefined(A)||A===null)&&a.call(e,A,C.isString(b)?b.trim():b,f,h))===!0&&g(A,f?f.concat(b):[b],v+1)}),d.pop()}}if(!C.isObject(t))throw new TypeError("data must be an object");return g(t),e}function Tk(t){let e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(t).replace(/[!'()~]|%20/g,function(n){return e[n]})}function sq(t,e){this._pairs=[],t&&Zc(t,this,e)}var oq=sq.prototype;oq.append=function(e,i){this._pairs.push([e,i])};oq.toString=function(e){let i=e?function(n){return e.call(this,n,Tk)}:Tk;return this._pairs.map(function(a){return i(a[0])+"="+i(a[1])},"").join("&")};function k3(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function vv(t,e,i){if(!e)return t;let n=i&&i.encode||k3,a=C.isFunction(i)?{serialize:i}:i,r=a&&a.serialize,s;if(r?s=r(e,a):s=C.isURLSearchParams(e)?e.toString():new sq(e,a).toString(n),s){let o=t.indexOf("#");o!==-1&&(t=t.slice(0,o)),t+=(t.indexOf("?")===-1?"?":"&")+s}return t}var Nc=class{constructor(){this.handlers=[]}use(e,i,n){return this.handlers.push({fulfilled:e,rejected:i,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){C.forEach(this.handlers,function(n){n!==null&&e(n)})}},Kc={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0},q3=y4.URLSearchParams,iv="abcdefghijklmnopqrstuvwxyz",Mk="0123456789",lq={DIGIT:Mk,ALPHA:iv,ALPHA_DIGIT:iv+iv.toUpperCase()+Mk},_3=(t=16,e=lq.ALPHA_DIGIT)=>{let i="",{length:n}=e,a=new Uint32Array(t);b4.randomFillSync(a);for(let r=0;re[0]==="[]"?"":e[1]||e[0])}function N3(t){let e={},i=Object.keys(t),n,a=i.length,r;for(n=0;n=i.length;return s=!s&&C.isArray(a)?a.length:s,l?(C.hasOwnProp(a,s)?a[s]=C.isArray(a[s])?a[s].concat(n):[a[s],n]:a[s]=n,!o):((!C.hasOwnProp(a,s)||!C.isObject(a[s]))&&(a[s]=[]),e(i,n,a[s],r)&&C.isArray(a[s])&&(a[s]=N3(a[s])),!o)}if(C.isFormData(t)&&C.isFunction(t.entries)){let i={};return C.forEachEntry(t,(n,a)=>{e($3(n),a,i,0)}),i}return null}var Fr=(t,e)=>t!=null&&C.hasOwnProp(t,e)?t[e]:void 0;function U3(t,e,i){if(C.isString(t))try{return(e||JSON.parse)(t),C.trim(t)}catch(n){if(n.name!=="SyntaxError")throw n}return(i||JSON.stringify)(t)}var Vo={transitional:Kc,adapter:["xhr","http","fetch"],transformRequest:[function(e,i){let n=i.getContentType()||"",a=n.indexOf("application/json")>-1,r=C.isObject(e);if(r&&C.isHTMLForm(e)&&(e=new FormData(e)),C.isFormData(e))return a?JSON.stringify(uq(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 i.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let o;if(r){let l=Fr(this,"formSerializer");if(n.indexOf("application/x-www-form-urlencoded")>-1)return G3(e,l).toString();if((o=C.isFileList(e))||n.indexOf("multipart/form-data")>-1){let u=Fr(this,"env"),c=u&&u.FormData;return Zc(o?{"files[]":e}:e,c&&new c,l)}}return r||a?(i.setContentType("application/json",!1),U3(e)):e}],transformResponse:[function(e){let i=Fr(this,"transitional")||Vo.transitional,n=i&&i.forcedJSONParsing,a=Fr(this,"responseType"),r=a==="json";if(C.isResponse(e)||C.isReadableStream(e))return e;if(e&&C.isString(e)&&(n&&!a||r)){let o=!(i&&i.silentJSONParsing)&&r;try{return JSON.parse(e,Fr(this,"parseReviver"))}catch(l){if(o)throw l.name==="SyntaxError"?T.from(l,T.ERR_BAD_RESPONSE,this,null,Fr(this,"response")):l}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Qe.classes.FormData,Blob:Qe.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};C.forEach(["delete","get","head","post","put","patch","query"],t=>{Vo.headers[t]={}});function nv(t,e){let i=this||Vo,n=e||i,a=ti.from(n.headers),r=n.data;return C.forEach(t,function(o){r=o.call(i,r,a.normalize(),e?e.status:void 0)}),a.normalize(),r}function cq(t){return!!(t&&t.__CANCEL__)}var ut=class extends T{constructor(e,i,n){super(e??"canceled",T.ERR_CANCELED,i,n),this.name="CanceledError",this.__CANCEL__=!0}};function Vr(t,e,i){let n=i.config.validateStatus;!i.status||!n||n(i.status)?t(i):e(new T("Request failed with status code "+i.status,i.status>=400&&i.status<500?T.ERR_BAD_REQUEST:T.ERR_BAD_RESPONSE,i.config,i.request,i))}function L3(t){return typeof t!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function W3(t,e){return e?t.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):t}function Av(t,e,i){let n=!L3(e);return t&&(n||i===!1)?W3(t,e):e}var B3={ftp:21,gopher:70,http:80,https:443,ws:80,wss:443};function F3(t){try{return new URL(t)}catch{return null}}function V3(t){var e=(typeof t=="string"?F3(t):t)||{},i=e.protocol,n=e.host,a=e.port;if(typeof n!="string"||!n||typeof i!="string"||(i=i.split(":",1)[0],n=n.replace(/:\d*$/,""),a=parseInt(a)||B3[i]||0,!J3(n,a)))return"";var r=uv(i+"_proxy")||uv("all_proxy");return r&&r.indexOf("://")===-1&&(r=i+"://"+r),r}function J3(t,e){var i=uv("no_proxy").toLowerCase();return i?i==="*"?!1:i.split(/[,\s]/).every(function(n){if(!n)return!0;var a=n.match(/^(.+):(\d+)$/),r=a?a[1]:n,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 uv(t){return process.env[t.toLowerCase()]||process.env[t.toUpperCase()]||""}var Uo="1.16.1";function pq(t){let e=/^([-+\w]{1,25}):(?:\/\/)?/.exec(t);return e&&e[1]||""}var Z3=/^([^,;]+\/[^,;]+)?((?:;[^,;=]+=[^,;]+)*)(;base64)?,([\s\S]*)$/;function K3(t,e,i){let n=i&&i.Blob||Qe.classes.Blob,a=pq(t);if(e===void 0&&n&&(e=!0),a==="data"){t=a.length?t.slice(a.length+1):t;let r=Z3.exec(t);if(!r)throw new T("Invalid URL",T.ERR_INVALID_URL);let s=r[1],o=r[2],l=r[3]?"base64":"utf8",u=r[4],c;s?c=o?s+o:s:o&&(c="text/plain"+o);let p=Buffer.from(decodeURIComponent(u),l);if(e){if(!n)throw new T("Blob is not supported",T.ERR_NOT_SUPPORT);return new n([p],{type:c})}return p}throw new T("Unsupported protocol "+a,T.ERR_NOT_SUPPORT)}var tv=Symbol("internals"),Uc=class extends Vi.Transform{constructor(e){e=C.toFlatObject(e,{maxRate:0,chunkSize:64*1024,minChunkSize:100,timeWindow:500,ticksRate:2,samplesCount:15},null,(n,a)=>!C.isUndefined(a[n])),super({readableHighWaterMark:e.chunkSize});let i=this[tv]={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",n=>{n==="progress"&&(i.isCaptured||(i.isCaptured=!0))})}_read(e){let i=this[tv];return i.onReadCallback&&i.onReadCallback(),super._read(e)}_transform(e,i,n){let a=this[tv],r=a.maxRate,s=this.readableHighWaterMark,o=a.timeWindow,l=1e3/o,u=r/l,c=a.minChunkSize!==!1?Math.max(a.minChunkSize,u*.01):0,p=(h,g)=>{let m=Buffer.byteLength(h);a.bytesSeen+=m,a.bytes+=m,a.isCaptured&&this.emit("progress",a.bytesSeen),this.push(h)?process.nextTick(g):a.onReadCallback=()=>{a.onReadCallback=null,process.nextTick(g)}},d=(h,g)=>{let m=Buffer.byteLength(h),f=null,v=s,y,A=0;if(r){let b=Date.now();(!a.ts||(A=b-a.ts)>=o)&&(a.ts=b,y=u-a.bytes,a.bytes=y<0?-y:0,A=0),y=u-a.bytes}if(r){if(y<=0)return setTimeout(()=>{g(null,h)},o-A);yv&&m-v>c&&(f=h.subarray(v),h=h.subarray(0,v)),p(h,f?()=>{process.nextTick(g,null,f)}:g)};d(e,function h(g,m){if(g)return n(g);m?d(m,h):n(null)})}},{asyncIterator:Ek}=Symbol,dq=async function*(t){t.stream?yield*t.stream():t.arrayBuffer?yield await t.arrayBuffer():t[Ek]?yield*t[Ek]():yield t},Q3=Qe.ALPHABET.ALPHA_DIGIT+"-_",Lo=typeof TextEncoder=="function"?new TextEncoder:new mv.TextEncoder,Ra=`\r -`,Y3=Lo.encode(Ra),X3=2,cv=class{constructor(e,i){let{escapeName:n}=this.constructor,a=C.isString(i),r=`Content-Disposition: form-data; name="${n(e)}"${!a&&i.name?`; filename="${n(i.name)}"`:""}${Ra}`;if(a)i=Lo.encode(String(i).replace(/\r?\n|\r\n?/g,Ra));else{let s=String(i.type||"application/octet-stream").replace(/[\r\n]/g,"");r+=`Content-Type: ${s}${Ra}`}this.headers=Lo.encode(r+Ra),this.contentLength=a?i.byteLength:i.size,this.size=this.headers.byteLength+this.contentLength+X3,this.name=e,this.value=i}async*encode(){yield this.headers;let{value:e}=this;C.isTypedArray(e)?yield e:yield*dq(e),yield Y3}static escapeName(e){return String(e).replace(/[\r\n"]/g,i=>({"\r":"%0D","\n":"%0A",'"':"%22"})[i])}},eZ=(t,e,i)=>{let{tag:n="form-data-boundary",size:a=25,boundary:r=n+"-"+Qe.generateString(a,Q3)}=i||{};if(!C.isFormData(t))throw TypeError("FormData instance required");if(r.length<1||r.length>70)throw Error("boundary must be 1-70 characters long");let s=Lo.encode("--"+r+Ra),o=Lo.encode("--"+r+"--"+Ra),l=o.byteLength,u=Array.from(t.entries()).map(([p,d])=>{let h=new cv(p,d);return l+=h.size,h});l+=s.byteLength*u.length,l=C.toFiniteNumber(l);let c={"Content-Type":`multipart/form-data; boundary=${r}`};return Number.isFinite(l)&&(c["Content-Length"]=l),e&&e(c),Vi.Readable.from((async function*(){for(let p of u)yield s,yield*p.encode();yield o})())},pv=class extends Vi.Transform{__transform(e,i,n){this.push(e),n()}_transform(e,i,n){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,i)}this.__transform(e,i,n)}},iZ=(t,e)=>C.isAsyncFn(t)?function(...i){let n=i.pop();t.apply(this,i).then(a=>{try{e?n(null,...e(a)):n(null,a)}catch(r){n(r)}},n)}:t,nZ=new Set(["localhost"]),hq=t=>{let e=t.split(".");return e.length!==4||e[0]!=="127"?!1:e.every(i=>/^\d+$/.test(i)&&Number(i)>=0&&Number(i)<=255)},tZ=t=>{if(t==="::1")return!0;let e=t.match(/^::ffff:(\d+\.\d+\.\d+\.\d+)$/i);if(e)return hq(e[1]);let i=t.match(/^::ffff:([0-9a-f]{1,4}):([0-9a-f]{1,4})$/i);if(i){let a=parseInt(i[1],16);return a>=32512&&a<=32767}let n=t.split(":");if(n.length===8){for(let a=0;a<7;a++)if(!/^0+$/.test(n[a]))return!1;return/^0*1$/.test(n[7])}return!1},kk=t=>t?nZ.has(t)||hq(t)?!0:tZ(t):!1,aZ={http:80,https:443,ws:80,wss:443,ftp:21},rZ=t=>{let e=t,i=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))&&(i=Number.parseInt(o.slice(1),10)),[s,i]}}let n=e.indexOf(":"),a=e.lastIndexOf(":");return n!==-1&&n===a&&/^\d+$/.test(e.slice(a+1))&&(i=Number.parseInt(e.slice(a+1),10),e=e.slice(0,a)),[e,i]},sZ=/^(?:::|(?:0{1,4}:){1,4}:|(?:0{1,4}:){5})ffff:(\d+\.\d+\.\d+\.\d+)$/i,oZ=/^(?:::|(?:0{1,4}:){1,4}:|(?:0{1,4}:){5})ffff:([0-9a-f]{1,4}):([0-9a-f]{1,4})$/i,lZ=t=>{if(typeof t!="string"||t.indexOf(":")===-1)return t;let e=t.match(sZ);if(e)return e[1];let i=t.match(oZ);if(i){let n=parseInt(i[1],16),a=parseInt(i[2],16);return`${n>>8}.${n&255}.${a>>8}.${a&255}`}return t},qk=t=>t&&(t.charAt(0)==="["&&t.charAt(t.length-1)==="]"&&(t=t.slice(1,-1)),lZ(t.replace(/\.+$/,"")));function uZ(t){let e;try{e=new URL(t)}catch{return!1}let i=(process.env.no_proxy||process.env.NO_PROXY||"").toLowerCase();if(!i)return!1;if(i==="*")return!0;let n=Number.parseInt(e.port,10)||aZ[e.protocol.split(":",1)[0]]||0,a=qk(e.hostname.toLowerCase());return i.split(/[\s,]+/).some(r=>{if(!r)return!1;let[s,o]=rZ(r);return s=qk(s),!s||o&&o!==n?!1:(s.charAt(0)==="*"&&(s=s.slice(1)),s.charAt(0)==="."?a.endsWith(s):a===s||kk(a)&&kk(s))})}function cZ(t,e){t=t||10;let i=new Array(t),n=new Array(t),a=0,r=0,s;return e=e!==void 0?e:1e3,function(l){let u=Date.now(),c=n[r];s||(s=u),i[a]=l,n[a]=u;let p=r,d=0;for(;p!==a;)d+=i[p++],p=p%t;if(a=(a+1)%t,a===r&&(r=(r+1)%t),u-s{i=c,a=null,r&&(clearTimeout(r),r=null),t(...u)};return[(...u)=>{let c=Date.now(),p=c-i;p>=n?s(u,c):(a=u,r||(r=setTimeout(()=>{r=null,s(a)},n-p)))},()=>a&&s(a)]}var Zr=(t,e,i=3)=>{let n=0,a=cZ(50,250);return pZ(r=>{if(!r||typeof r.loaded!="number")return;let s=r.loaded,o=r.lengthComputable?r.total:void 0,l=o!=null?Math.min(s,o):s,u=Math.max(0,l-n),c=a(u);n=Math.max(n,l);let p={loaded:l,total:o,progress:o?l/o:void 0,bytes:u,rate:c||void 0,estimated:c&&o?(o-l)/c:void 0,event:r,lengthComputable:o!=null,[e?"download":"upload"]:!0};t(p)},i)},Lc=(t,e)=>{let i=t!=null;return[n=>e[0]({lengthComputable:i,total:t,loaded:n}),e[1]]},Wc=t=>(...e)=>C.asap(()=>t(...e));function gq(t){if(!t||typeof t!="string"||!t.startsWith("data:"))return 0;let e=t.indexOf(",");if(e<0)return 0;let i=t.slice(5,e),n=t.slice(e+1);if(/;base64/i.test(i)){let s=n.length,o=n.length;for(let h=0;h=48&&g<=57||g>=65&&g<=70||g>=97&&g<=102)&&(m>=48&&m<=57||m>=65&&m<=70||m>=97&&m<=102)&&(s-=2,h+=2)}let l=0,u=o-1,c=h=>h>=2&&n.charCodeAt(h-2)===37&&n.charCodeAt(h-1)===51&&(n.charCodeAt(h)===68||n.charCodeAt(h)===100);u>=0&&(n.charCodeAt(u)===61?(l++,u--):c(u)&&(l++,u-=3)),l===1&&u>=0&&(n.charCodeAt(u)===61||c(u))&&l++;let d=Math.floor(s/4)*3-(l||0);return d>0?d:0}if(typeof Buffer<"u"&&typeof Buffer.byteLength=="function")return Buffer.byteLength(n,"utf8");let r=0;for(let s=0,o=n.length;s=55296&&l<=56319&&s+1=56320&&u<=57343?(r+=4,s++):r+=3}else r+=3}return r}var _k={flush:Dt.constants.Z_SYNC_FLUSH,finishFlush:Dt.constants.Z_SYNC_FLUSH},dZ={flush:Dt.constants.BROTLI_OPERATION_FLUSH,finishFlush:Dt.constants.BROTLI_OPERATION_FLUSH},Hk=C.isFunction(Dt.createBrotliDecompress),{http:hZ,https:gZ}=S4,mq=/https:?/,mZ=["content-type","content-length"];function fZ(t,e,i){if(i!=="content-only"){t.set(e);return}Object.entries(e).forEach(([n,a])=>{mZ.includes(n.toLowerCase())&&t.set(n,a)})}var Rk=Symbol("axios.http.socketListener"),Ic=Symbol("axios.http.currentReq"),fq=Symbol("axios.http.installedTunnel"),wZ=new Map,Ik=new WeakMap;function vZ(t,e){let i=t.protocol+"//"+t.hostname+":"+(t.port||"")+"#"+(t.auth||""),n=e?Ik.get(e)||Ik.set(e,new Map).get(e):wZ,a=n.get(i);if(a)return a;let r=e&&e.options?{...e.options,...t}:t;return a=new Zk(r),a[fq]=!0,n.set(i,a),a}var zk=Qe.protocols.map(t=>t+":"),Dk=t=>{if(!C.isString(t))return t;try{return decodeURIComponent(t)}catch{return t}},Gk=(t,[e,i])=>(t.on("end",i).on("error",i),e),dv=class{constructor(){this.sessions=Object.create(null)}getSession(e,i){i=Object.assign({sessionTimeout:1e3},i);let n=this.sessions[e];if(n){let c=n.length;for(let p=0;p{if(r)return;r=!0;let c=n,p=c.length,d=p;for(;d--;)if(c[d][0]===a){p===1?delete this.sessions[e]:c.splice(d,1),a.closed||a.close();return}},o=a.request,{sessionTimeout:l}=i;if(l!=null){let c,p=0;a.request=function(){let d=o.apply(this,arguments);return p++,c&&(clearTimeout(c),c=null),d.once("close",()=>{--p||(c=setTimeout(()=>{c=null,s()},l))}),d}}a.once("close",s);let u=[a,i];return n?n.push(u):n=this.sessions[e]=[u],a}},CZ=new dv;function AZ(t,e,i){t.beforeRedirects.proxy&&t.beforeRedirects.proxy(t),t.beforeRedirects.config&&t.beforeRedirects.config(t,e,i)}function wq(t,e,i,n,a){let r=e;if(!r&&r!==!1){let s=V3(i);s&&(uZ(i)||(r=new URL(s)))}if(n&&t.headers)for(let s of Object.keys(t.headers))s.toLowerCase()==="proxy-authorization"&&delete t.headers[s];if(n&&t.agent&&t.agent[fq]&&(t.agent=void 0),r){let s=r instanceof URL,o=d=>s||C.hasOwnProp(r,d)?r[d]:void 0,l=o("username"),u=o("password"),c=C.hasOwnProp(r,"auth")?r.auth:void 0;if(l&&(c=(l||"")+":"+(u||"")),c){let d=typeof c=="object",h=d&&C.hasOwnProp(c,"username")?c.username:void 0,g=d&&C.hasOwnProp(c,"password")?c.password:void 0;if(!!(h||g))c=(h||"")+":"+(g||"");else if(d)throw new T("Invalid proxy authorization",T.ERR_BAD_OPTION,{proxy:r})}if(mq.test(t.protocol)){if(!(a instanceof Zk)){let d=o("hostname")||o("host"),h=o("port"),g=o("protocol"),m=g?g.includes(":")?g:`${g}:`:"http:",f=d&&d.includes(":")&&!d.startsWith("[")?`[${d}]`:d,v=new URL(`${m}//${f}${h?":"+h:""}`),y={protocol:v.protocol,hostname:v.hostname.replace(/^\[|\]$/g,""),port:v.port,auth:c&&typeof c=="string"?c:void 0};v.protocol==="https:"&&(y.ALPNProtocols=["http/1.1"]);let A=vZ(y,a);t.agent=A,t.agents&&(t.agents.https=A)}}else{if(c){let m=Buffer.from(c,"utf8").toString("base64");t.headers["Proxy-Authorization"]="Basic "+m}let d=!1;for(let m of Object.keys(t.headers))if(m.toLowerCase()==="host"){d=!0;break}d||(t.headers.host=t.hostname+(t.port?":"+t.port:""));let h=o("hostname")||o("host");t.hostname=h,t.host=h,t.port=o("port"),t.path=i;let g=o("protocol");g&&(t.protocol=g.includes(":")?g:`${g}:`)}}t.beforeRedirects.proxy=function(o){wq(o,e,o.href,!0,a)}}var bZ=typeof process<"u"&&C.kindOf(process)==="process",yZ=t=>new Promise((e,i)=>{let n,a,r=(l,u)=>{a||(a=!0,n&&n(l,u))},s=l=>{r(l),e(l)},o=l=>{r(l,!0),i(l)};t(s,o,l=>n=l).catch(o)}),PZ=({address:t,family:e})=>{if(!C.isString(t))throw TypeError("address must be a string");return{address:t,family:e||(t.indexOf(".")<0?6:4)}},$k=(t,e)=>PZ(C.isObject(t)?t:{address:t,family:e}),jZ={request(t,e){let i=t.protocol+"//"+t.hostname+":"+(t.port||(t.protocol==="https:"?443:80)),{http2Options:n,headers:a}=t,r=CZ.getSession(i,n),{HTTP2_HEADER_SCHEME:s,HTTP2_HEADER_METHOD:o,HTTP2_HEADER_PATH:l,HTTP2_HEADER_STATUS:u}=Kk.constants,c={[s]:t.protocol.replace(":",""),[o]:t.method,[l]:t.path};C.forEach(a,(d,h)=>{h.charAt(0)!==":"&&(c[h]=d)});let p=r.request(c);return p.once("response",d=>{let h=p;d=Object.assign({},d);let g=d[u];delete d[u],h.headers=d,h.statusCode=+g,e(h)}),p}},SZ=bZ&&function(e){return yZ(async function(n,a,r){let s=G=>C.hasOwnProp(e,G)?e[G]:void 0,o=s("data"),l=s("lookup"),u=s("family"),c=s("httpVersion");c===void 0&&(c=1);let p=s("http2Options"),d=s("responseType"),h=s("responseEncoding"),g=e.method.toUpperCase(),m,f=!1,v,y;if(c=+c,Number.isNaN(c))throw TypeError(`Invalid protocol version: '${e.httpVersion}' is not a number`);if(c!==1&&c!==2)throw TypeError(`Unsupported protocol version '${c}'`);let A=c===2;if(l){let G=iZ(l,x=>C.isArray(x)?x:[x]);l=(x,be,Je)=>{G(x,be,(ye,ni,pi)=>{if(ye)return Je(ye);let xe=C.isArray(ni)?ni.map(gt=>$k(gt)):[$k(ni,pi)];be.all?Je(ye,xe):Je(ye,xe[0].address,xe[0].family)})}}let b=new O4.EventEmitter;function O(G){try{b.emit("abort",!G||G.type?new ut(null,e,v):G)}catch(x){console.warn("emit error",x)}}function $(){y&&(clearTimeout(y),y=null)}function N(){let G=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",x=e.transitional||Kc;return e.timeoutErrorMessage&&(G=e.timeoutErrorMessage),new T(G,x.clarifyTimeoutError?T.ETIMEDOUT:T.ECONNABORTED,e,v)}b.once("abort",a);let X=()=>{$(),e.cancelToken&&e.cancelToken.unsubscribe(O),e.signal&&e.signal.removeEventListener("abort",O),b.removeAllListeners()};(e.cancelToken||e.signal)&&(e.cancelToken&&e.cancelToken.subscribe(O),e.signal&&(e.signal.aborted?O():e.signal.addEventListener("abort",O))),r((G,x)=>{if(m=!0,$(),x){f=!0,X();return}let{data:be}=G;if(be instanceof Vi.Readable||be instanceof Vi.Duplex){let Je=Vi.finished(be,()=>{Je(),X()})}else X()});let F=Av(e.baseURL,e.url,e.allowAbsoluteUrls),k=new URL(F,Qe.hasBrowserEnv?Qe.origin:void 0),Q=k.protocol||zk[0];if(Q==="data:"){if(e.maxContentLength>-1){let x=String(e.url||F||"");if(gq(x)>e.maxContentLength)return a(new T("maxContentLength size of "+e.maxContentLength+" exceeded",T.ERR_BAD_RESPONSE,e))}let G;if(g!=="GET")return Vr(n,a,{status:405,statusText:"method not allowed",headers:{},config:e});try{G=K3(e.url,d==="blob",{Blob:e.env&&e.env.Blob})}catch(x){throw T.from(x,T.ERR_BAD_REQUEST,e)}return d==="text"?(G=G.toString(h),(!h||h==="utf8")&&(G=C.stripBOM(G))):d==="stream"&&(G=Vi.Readable.from(G)),Vr(n,a,{data:G,status:200,statusText:"OK",headers:new ti,config:e})}if(zk.indexOf(Q)===-1)return a(new T("Unsupported protocol "+Q,T.ERR_BAD_REQUEST,e));let Z=ti.from(e.headers).normalize();Z.set("User-Agent","axios/"+Uo,!1);let{onUploadProgress:ie,onDownloadProgress:se}=e,De=e.maxRate,S,R;if(C.isSpecCompliantForm(o)){let G=Z.getContentType(/boundary=([-_\w\d]{10,70})/i);o=eZ(o,x=>{Z.set(x)},{tag:`axios-${Uo}-boundary`,boundary:G&&G[1]||void 0})}else if(C.isFormData(o)&&C.isFunction(o.getHeaders)&&o.getHeaders!==Object.prototype.getHeaders){if(fZ(Z,o.getHeaders(),s("formDataHeaderPolicy")),!Z.hasContentLength())try{let G=await mv.promisify(o.getLength).call(o);Number.isFinite(G)&&G>=0&&Z.setContentLength(G)}catch{}}else if(C.isBlob(o)||C.isFile(o))o.size&&Z.setContentType(o.type||"application/octet-stream"),Z.setContentLength(o.size||0),o=Vi.Readable.from(dq(o));else if(o&&!C.isStream(o)){if(!Buffer.isBuffer(o))if(C.isArrayBuffer(o))o=Buffer.from(new Uint8Array(o));else if(C.isString(o))o=Buffer.from(o,"utf-8");else return a(new T("Data after transformation must be a string, an ArrayBuffer, a Buffer, or a Stream",T.ERR_BAD_REQUEST,e));if(Z.setContentLength(o.length,!1),e.maxBodyLength>-1&&o.length>e.maxBodyLength)return a(new T("Request body larger than maxBodyLength limit",T.ERR_BAD_REQUEST,e))}let Ae=C.toFiniteNumber(Z.getContentLength());C.isArray(De)?(S=De[0],R=De[1]):S=R=De,o&&(ie||S)&&(C.isStream(o)||(o=Vi.Readable.from(o,{objectMode:!1})),o=Vi.pipeline([o,new Uc({maxRate:C.toFiniteNumber(S)})],C.noop),ie&&o.on("progress",Gk(o,Lc(Ae,Zr(Wc(ie),!1,3)))));let Se,I=s("auth");if(I){let G=I.username||"",x=I.password||"";Se=G+":"+x}if(!Se&&k.username){let G=Dk(k.username),x=Dk(k.password);Se=G+":"+x}Se&&Z.delete("authorization");let ei;try{ei=vv(k.pathname+k.search,e.params,e.paramsSerializer).replace(/^\?/,"")}catch(G){let x=new Error(G.message);return x.config=e,x.url=e.url,x.exists=!0,a(x)}Z.set("Accept-Encoding","gzip, compress, deflate"+(Hk?", br":""),!1);let Re=Object.assign(Object.create(null),{path:ei,method:g,headers:wv(Z),agents:{http:e.httpAgent,https:e.httpsAgent},auth:Se,protocol:Q,family:u,beforeRedirect:AZ,beforeRedirects:Object.create(null),http2Options:p});if(!C.isUndefined(l)&&(Re.lookup=l),e.socketPath){if(typeof e.socketPath!="string")return a(new T("socketPath must be a string",T.ERR_BAD_OPTION_VALUE,e));if(e.allowedSocketPaths!=null){let G=Array.isArray(e.allowedSocketPaths)?e.allowedSocketPaths:[e.allowedSocketPaths],x=jk.resolve(e.socketPath);if(!G.some(Je=>typeof Je=="string"&&jk.resolve(Je)===x))return a(new T(`socketPath "${e.socketPath}" is not permitted by allowedSocketPaths`,T.ERR_BAD_OPTION_VALUE,e))}Re.socketPath=e.socketPath}else Re.hostname=k.hostname.startsWith("[")?k.hostname.slice(1,-1):k.hostname,Re.port=k.port,wq(Re,e.proxy,Q+"//"+k.hostname+(k.port?":"+k.port:"")+Re.path,!1,e.httpsAgent);let Me,Oi=!1,vi=mq.test(Re.protocol);if(Re.agent==null&&(Re.agent=vi?e.httpsAgent:e.httpAgent),A)Me=jZ;else{let G=s("transport");if(G)Me=G;else if(e.maxRedirects===0)Me=vi?j4:P4,Oi=!0;else{e.maxRedirects&&(Re.maxRedirects=e.maxRedirects);let x=s("beforeRedirect");x&&(Re.beforeRedirects.config=x),Me=vi?gZ:hZ}}e.maxBodyLength>-1?Re.maxBodyLength=e.maxBodyLength:Re.maxBodyLength=1/0,Re.insecureHTTPParser=!!s("insecureHTTPParser"),v=Me.request(Re,function(x){if($(),v.destroyed)return;let be=[x],Je=C.toFiniteNumber(x.headers["content-length"]);if(se||R){let xe=new Uc({maxRate:C.toFiniteNumber(R)});se&&xe.on("progress",Gk(xe,Lc(Je,Zr(Wc(se),!0,3)))),be.push(xe)}let ye=x,ni=x.req||v;if(e.decompress!==!1&&x.headers["content-encoding"])switch((g==="HEAD"||x.statusCode===204)&&delete x.headers["content-encoding"],(x.headers["content-encoding"]||"").toLowerCase()){case"gzip":case"x-gzip":case"compress":case"x-compress":be.push(Dt.createUnzip(_k)),delete x.headers["content-encoding"];break;case"deflate":be.push(new pv),be.push(Dt.createUnzip(_k)),delete x.headers["content-encoding"];break;case"br":Hk&&(be.push(Dt.createBrotliDecompress(dZ)),delete x.headers["content-encoding"])}ye=be.length>1?Vi.pipeline(be,C.noop):be[0];let pi={status:x.statusCode,statusText:x.statusMessage,headers:new ti(x.headers),config:e,request:ni};if(d==="stream"){if(e.maxContentLength>-1){let xe=e.maxContentLength,gt=ye;async function*wn(){let Ge=0;for await(let Ya of gt){if(Ge+=Ya.length,Ge>xe)throw new T("maxContentLength size of "+xe+" exceeded",T.ERR_BAD_RESPONSE,e,ni);yield Ya}}ye=Vi.Readable.from(wn(),{objectMode:!1})}pi.data=ye,Vr(n,a,pi)}else{let xe=[],gt=0;ye.on("data",function(Ge){xe.push(Ge),gt+=Ge.length,e.maxContentLength>-1&>>e.maxContentLength&&(f=!0,ye.destroy(),O(new T("maxContentLength size of "+e.maxContentLength+" exceeded",T.ERR_BAD_RESPONSE,e,ni)))}),ye.on("aborted",function(){if(f)return;let Ge=new T("stream has been aborted",T.ERR_BAD_RESPONSE,e,ni,pi);ye.destroy(Ge),a(Ge)}),ye.on("error",function(Ge){f||a(T.from(Ge,null,e,ni,pi))}),ye.on("end",function(){try{let Ge=xe.length===1?xe[0]:Buffer.concat(xe);d!=="arraybuffer"&&(Ge=Ge.toString(h),(!h||h==="utf8")&&(Ge=C.stripBOM(Ge))),pi.data=Ge}catch(Ge){return a(T.from(Ge,null,e,pi.request,pi))}Vr(n,a,pi)})}b.once("abort",xe=>{ye.destroyed||(ye.emit("error",xe),ye.destroy())})}),b.once("abort",G=>{v.close?v.close():v.destroy(G)}),v.on("error",function(x){a(T.from(x,null,e,v))});let nn=new Set;if(v.on("socket",function(x){x.setKeepAlive(!0,1e3*60),x[Rk]||(x.on("error",function(Je){let ye=x[Ic];ye&&!ye.destroyed&&ye.destroy(Je)}),x[Rk]=!0),x[Ic]=v,nn.add(x)}),v.once("close",function(){$();for(let x of nn)x[Ic]===v&&(x[Ic]=null);nn.clear()}),e.timeout){let G=parseInt(e.timeout,10);if(Number.isNaN(G)){O(new T("error trying to parse `config.timeout` to int",T.ERR_BAD_OPTION_VALUE,e,v));return}let x=function(){m||O(N())};Oi&&G>0&&(y=setTimeout(x,G)),v.setTimeout(G,x)}else v.setTimeout(0);if(C.isStream(o)){let G=!1,x=!1;o.on("end",()=>{G=!0}),o.once("error",Je=>{x=!0,v.destroy(Je)}),o.on("close",()=>{!G&&!x&&O(new ut("Request stream has been aborted",e,v))});let be=o;if(e.maxBodyLength>-1&&e.maxRedirects===0){let Je=e.maxBodyLength,ye=0;be=Vi.pipeline([o,new Vi.Transform({transform(ni,pi,xe){if(ye+=ni.length,ye>Je)return xe(new T("Request body larger than maxBodyLength limit",T.ERR_BAD_REQUEST,e,v));xe(null,ni)}})],C.noop),be.on("error",ni=>{v.destroyed||v.destroy(ni)})}be.pipe(v)}else o&&v.write(o),v.end()})},OZ=Qe.hasStandardBrowserEnv?((t,e)=>i=>(i=new URL(i,Qe.origin),t.protocol===i.protocol&&t.host===i.host&&(e||t.port===i.port)))(new URL(Qe.origin),Qe.navigator&&/(msie|trident)/i.test(Qe.navigator.userAgent)):()=>!0,xZ=Qe.hasStandardBrowserEnv?{write(t,e,i,n,a,r,s){if(typeof document>"u")return;let o=[`${t}=${encodeURIComponent(e)}`];C.isNumber(i)&&o.push(`expires=${new Date(i).toUTCString()}`),C.isString(n)&&o.push(`path=${n}`),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 i=0;it instanceof ti?{...t}:t;function Ia(t,e){e=e||{};let i=Object.create(null);Object.defineProperty(i,"hasOwnProperty",{__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});function n(u,c,p,d){return C.isPlainObject(u)&&C.isPlainObject(c)?C.merge.call({caseless:d},u,c):C.isPlainObject(c)?C.merge({},c):C.isArray(c)?c.slice():c}function a(u,c,p,d){if(C.isUndefined(c)){if(!C.isUndefined(u))return n(void 0,u,p,d)}else return n(u,c,p,d)}function r(u,c){if(!C.isUndefined(c))return n(void 0,c)}function s(u,c){if(C.isUndefined(c)){if(!C.isUndefined(u))return n(void 0,u)}else return n(void 0,c)}function o(u,c,p){if(C.hasOwnProp(e,p))return n(u,c);if(C.hasOwnProp(t,p))return n(void 0,u)}let l={url:r,method:r,data:r,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,allowedSocketPaths:s,responseEncoding:s,validateStatus:o,headers:(u,c,p)=>a(Nk(u),Nk(c),p,!0)};return C.forEach(Object.keys({...t,...e}),function(c){if(c==="__proto__"||c==="constructor"||c==="prototype")return;let p=C.hasOwnProp(l,c)?l[c]:a,d=C.hasOwnProp(t,c)?t[c]:void 0,h=C.hasOwnProp(e,c)?e[c]:void 0,g=p(d,h,c);C.isUndefined(g)&&p!==o||(i[c]=g)}),i}var TZ=["content-type","content-length"];function MZ(t,e,i){if(i!=="content-only"){t.set(e);return}Object.entries(e).forEach(([n,a])=>{TZ.includes(n.toLowerCase())&&t.set(n,a)})}var EZ=t=>encodeURIComponent(t).replace(/%([0-9A-F]{2})/gi,(e,i)=>String.fromCharCode(parseInt(i,16))),vq=t=>{let e=Ia({},t),i=d=>C.hasOwnProp(e,d)?e[d]:void 0,n=i("data"),a=i("withXSRFToken"),r=i("xsrfHeaderName"),s=i("xsrfCookieName"),o=i("headers"),l=i("auth"),u=i("baseURL"),c=i("allowAbsoluteUrls"),p=i("url");if(e.headers=o=ti.from(o),e.url=vv(Av(u,p,c),t.params,t.paramsSerializer),l&&o.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?EZ(l.password):""))),C.isFormData(n)&&(Qe.hasStandardBrowserEnv||Qe.hasStandardBrowserWebWorkerEnv?o.setContentType(void 0):C.isFunction(n.getHeaders)&&MZ(o,n.getHeaders(),i("formDataHeaderPolicy"))),Qe.hasStandardBrowserEnv&&(C.isFunction(a)&&(a=a(e)),a===!0||a==null&&OZ(e.url))){let h=r&&s&&xZ.read(s);h&&o.set(r,h)}return e},kZ=typeof XMLHttpRequest<"u",qZ=kZ&&function(t){return new Promise(function(i,n){let a=vq(t),r=a.data,s=ti.from(a.headers).normalize(),{responseType:o,onUploadProgress:l,onDownloadProgress:u}=a,c,p,d,h,g;function m(){h&&h(),g&&g(),a.cancelToken&&a.cancelToken.unsubscribe(c),a.signal&&a.signal.removeEventListener("abort",c)}let f=new XMLHttpRequest;f.open(a.method.toUpperCase(),a.url,!0),f.timeout=a.timeout;function v(){if(!f)return;let A=ti.from("getAllResponseHeaders"in f&&f.getAllResponseHeaders()),O={data:!o||o==="text"||o==="json"?f.responseText:f.response,status:f.status,statusText:f.statusText,headers:A,config:t,request:f};Vr(function(N){i(N),m()},function(N){n(N),m()},O),f=null}"onloadend"in f?f.onloadend=v:f.onreadystatechange=function(){!f||f.readyState!==4||f.status===0&&!(f.responseURL&&f.responseURL.startsWith("file:"))||setTimeout(v)},f.onabort=function(){f&&(n(new T("Request aborted",T.ECONNABORTED,t,f)),m(),f=null)},f.onerror=function(b){let O=b&&b.message?b.message:"Network Error",$=new T(O,T.ERR_NETWORK,t,f);$.event=b||null,n($),m(),f=null},f.ontimeout=function(){let b=a.timeout?"timeout of "+a.timeout+"ms exceeded":"timeout exceeded",O=a.transitional||Kc;a.timeoutErrorMessage&&(b=a.timeoutErrorMessage),n(new T(b,O.clarifyTimeoutError?T.ETIMEDOUT:T.ECONNABORTED,t,f)),m(),f=null},r===void 0&&s.setContentType(null),"setRequestHeader"in f&&C.forEach(wv(s),function(b,O){f.setRequestHeader(O,b)}),C.isUndefined(a.withCredentials)||(f.withCredentials=!!a.withCredentials),o&&o!=="json"&&(f.responseType=a.responseType),u&&([d,g]=Zr(u,!0),f.addEventListener("progress",d)),l&&f.upload&&([p,h]=Zr(l),f.upload.addEventListener("progress",p),f.upload.addEventListener("loadend",h)),(a.cancelToken||a.signal)&&(c=A=>{f&&(n(!A||A.type?new ut(null,t,f):A),f.abort(),m(),f=null)},a.cancelToken&&a.cancelToken.subscribe(c),a.signal&&(a.signal.aborted?c():a.signal.addEventListener("abort",c)));let y=pq(a.url);if(y&&!Qe.protocols.includes(y)){n(new T("Unsupported protocol "+y+":",T.ERR_BAD_REQUEST,t));return}f.send(r||null)})},_Z=(t,e)=>{if(t=t?t.filter(Boolean):[],!e&&!t.length)return;let i=new AbortController,n=!1,a=function(l){if(!n){n=!0,s();let u=l instanceof Error?l:this.reason;i.abort(u instanceof T?u:new ut(u instanceof Error?u.message:u))}},r=e&&setTimeout(()=>{r=null,a(new T(`timeout of ${e}ms exceeded`,T.ETIMEDOUT))},e),s=()=>{t&&(r&&clearTimeout(r),r=null,t.forEach(l=>{l.unsubscribe?l.unsubscribe(a):l.removeEventListener("abort",a)}),t=null)};t.forEach(l=>l.addEventListener("abort",a));let{signal:o}=i;return o.unsubscribe=()=>C.asap(s),o},HZ=function*(t,e){let i=t.byteLength;if(i{let a=RZ(t,e),r=0,s,o=l=>{s||(s=!0,n&&n(l))};return new ReadableStream({async pull(l){try{let{done:u,value:c}=await a.next();if(u){o(),l.close();return}let p=c.byteLength;if(i){let d=r+=p;i(d)}l.enqueue(new Uint8Array(c))}catch(u){throw o(u),u}},cancel(l){return o(l),a.return()}},{highWaterMark:2})},Lk=64*1024,{isFunction:zc}=C,Wk=(t,...e)=>{try{return!!t(...e)}catch{return!1}},zZ=t=>{let e=C.global!==void 0&&C.global!==null?C.global:globalThis,{ReadableStream:i,TextEncoder:n}=e;t=C.merge.call({skipUndefined:!0},{Request:e.Request,Response:e.Response},t);let{fetch:a,Request:r,Response:s}=t,o=a?zc(a):typeof fetch=="function",l=zc(r),u=zc(s);if(!o)return!1;let c=o&&zc(i),p=o&&(typeof n=="function"?(v=>y=>v.encode(y))(new n):async v=>new Uint8Array(await new r(v).arrayBuffer())),d=l&&c&&Wk(()=>{let v=!1,y=new r(Qe.origin,{body:new i,method:"POST",get duplex(){return v=!0,"half"}}),A=y.headers.has("Content-Type");return y.body!=null&&y.body.cancel(),v&&!A}),h=u&&c&&Wk(()=>C.isReadableStream(new s("").body)),g={stream:h&&(v=>v.body)};o&&["text","arrayBuffer","blob","formData","stream"].forEach(v=>{!g[v]&&(g[v]=(y,A)=>{let b=y&&y[v];if(b)return b.call(y);throw new T(`Response type '${v}' is not supported`,T.ERR_NOT_SUPPORT,A)})});let m=async v=>{if(v==null)return 0;if(C.isBlob(v))return v.size;if(C.isSpecCompliantForm(v))return(await new r(Qe.origin,{method:"POST",body:v}).arrayBuffer()).byteLength;if(C.isArrayBufferView(v)||C.isArrayBuffer(v))return v.byteLength;if(C.isURLSearchParams(v)&&(v=v+""),C.isString(v))return(await p(v)).byteLength},f=async(v,y)=>{let A=C.toFiniteNumber(v.getContentLength());return A??m(y)};return async v=>{let{url:y,method:A,data:b,signal:O,cancelToken:$,timeout:N,onDownloadProgress:X,onUploadProgress:F,responseType:k,headers:Q,withCredentials:Z="same-origin",fetchOptions:ie,maxContentLength:se,maxBodyLength:De}=vq(v),S=C.isNumber(se)&&se>-1,R=C.isNumber(De)&&De>-1,Ae=a||fetch;k=k?(k+"").toLowerCase():"text";let Se=_Z([O,$&&$.toAbortSignal()],N),I=null,ei=Se&&Se.unsubscribe&&(()=>{Se.unsubscribe()}),Re;try{if(S&&typeof y=="string"&&y.startsWith("data:")&&gq(y)>se)throw new T("maxContentLength size of "+se+" exceeded",T.ERR_BAD_RESPONSE,v,I);if(R&&A!=="get"&&A!=="head"){let x=await f(Q,b);if(typeof x=="number"&&isFinite(x)&&x>De)throw new T("Request body larger than maxBodyLength limit",T.ERR_BAD_REQUEST,v,I)}if(F&&d&&A!=="get"&&A!=="head"&&(Re=await f(Q,b))!==0){let x=new r(y,{method:"POST",body:b,duplex:"half"}),be;if(C.isFormData(b)&&(be=x.headers.get("content-type"))&&Q.setContentType(be),x.body){let[Je,ye]=Lc(Re,Zr(Wc(F)));b=Uk(x.body,Lk,Je,ye)}}C.isString(Z)||(Z=Z?"include":"omit");let Me=l&&"credentials"in r.prototype;if(C.isFormData(b)){let x=Q.getContentType();x&&/^multipart\/form-data/i.test(x)&&!/boundary=/i.test(x)&&Q.delete("content-type")}Q.set("User-Agent","axios/"+Uo,!1);let Oi={...ie,signal:Se,method:A.toUpperCase(),headers:wv(Q.normalize()),body:b,duplex:"half",credentials:Me?Z:void 0};I=l&&new r(y,Oi);let vi=await(l?Ae(I,ie):Ae(y,Oi));if(S){let x=C.toFiniteNumber(vi.headers.get("content-length"));if(x!=null&&x>se)throw new T("maxContentLength size of "+se+" exceeded",T.ERR_BAD_RESPONSE,v,I)}let nn=h&&(k==="stream"||k==="response");if(h&&vi.body&&(X||S||nn&&ei)){let x={};["status","statusText","headers"].forEach(xe=>{x[xe]=vi[xe]});let be=C.toFiniteNumber(vi.headers.get("content-length")),[Je,ye]=X&&Lc(be,Zr(Wc(X),!0))||[],ni=0,pi=xe=>{if(S&&(ni=xe,ni>se))throw new T("maxContentLength size of "+se+" exceeded",T.ERR_BAD_RESPONSE,v,I);Je&&Je(xe)};vi=new s(Uk(vi.body,Lk,pi,()=>{ye&&ye(),ei&&ei()}),x)}k=k||"text";let G=await g[C.findKey(g,k)||"text"](vi,v);if(S&&!h&&!nn){let x;if(G!=null&&(typeof G.byteLength=="number"?x=G.byteLength:typeof G.size=="number"?x=G.size:typeof G=="string"&&(x=typeof n=="function"?new n().encode(G).byteLength:G.length)),typeof x=="number"&&x>se)throw new T("maxContentLength size of "+se+" exceeded",T.ERR_BAD_RESPONSE,v,I)}return!nn&&ei&&ei(),await new Promise((x,be)=>{Vr(x,be,{data:G,headers:ti.from(vi.headers),status:vi.status,statusText:vi.statusText,config:v,request:I})})}catch(Me){if(ei&&ei(),Se&&Se.aborted&&Se.reason instanceof T){let Oi=Se.reason;throw Oi.config=v,I&&(Oi.request=I),Me!==Oi&&(Oi.cause=Me),Oi}throw Me&&Me.name==="TypeError"&&/Load failed|fetch/i.test(Me.message)?Object.assign(new T("Network Error",T.ERR_NETWORK,v,I,Me&&Me.response),{cause:Me.cause||Me}):T.from(Me,Me&&Me.code,v,I,Me&&Me.response)}}},DZ=new Map,Cq=t=>{let e=t&&t.env||{},{fetch:i,Request:n,Response:a}=e,r=[n,a,i],s=r.length,o=s,l,u,c=DZ;for(;o--;)l=r[o],u=c.get(l),u===void 0&&c.set(l,u=o?new Map:zZ(e)),c=u;return u};Cq();var bv={http:SZ,xhr:qZ,fetch:{get:Cq}};C.forEach(bv,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{__proto__:null,value:e})}catch{}Object.defineProperty(t,"adapterName",{__proto__:null,value:e})}});var Bk=t=>`- ${t}`,GZ=t=>C.isFunction(t)||t===null||t===!1;function $Z(t,e){t=C.isArray(t)?t:[t];let{length:i}=t,n,a,r={};for(let s=0;s`adapter ${l} `+(u===!1?"is not supported by the environment":"is not available in the build")),o=i?s.length>1?`since : -`+s.map(Bk).join(` -`):" "+Bk(s[0]):"as no adapter specified";throw new T("There is no suitable adapter to dispatch the request "+o,"ERR_NOT_SUPPORT")}return a}var Aq={getAdapter:$Z,adapters:bv};function av(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new ut(null,t)}function Fk(t){return av(t),t.headers=ti.from(t.headers),t.data=nv.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),Aq.getAdapter(t.adapter||Vo.adapter,t)(t).then(function(n){av(t),t.response=n;try{n.data=nv.call(t,t.transformResponse,n)}finally{delete t.response}return n.headers=ti.from(n.headers),n},function(n){if(!cq(n)&&(av(t),n&&n.response)){t.response=n.response;try{n.response.data=nv.call(t,t.transformResponse,n.response)}finally{delete t.response}n.response.headers=ti.from(n.response.headers)}return Promise.reject(n)})}var Qc={};["object","boolean","number","function","string","symbol"].forEach((t,e)=>{Qc[t]=function(n){return typeof n===t||"a"+(e<1?"n ":" ")+t}});var Vk={};Qc.transitional=function(e,i,n){function a(r,s){return"[Axios v"+Uo+"] Transitional option '"+r+"'"+s+(n?". "+n:"")}return(r,s,o)=>{if(e===!1)throw new T(a(s," has been removed"+(i?" in "+i:"")),T.ERR_DEPRECATED);return i&&!Vk[s]&&(Vk[s]=!0,console.warn(a(s," has been deprecated since v"+i+" and will be removed in the near future"))),e?e(r,s,o):!0}};Qc.spelling=function(e){return(i,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};function NZ(t,e,i){if(typeof t!="object")throw new T("options must be an object",T.ERR_BAD_OPTION_VALUE);let n=Object.keys(t),a=n.length;for(;a-- >0;){let r=n[a],s=Object.prototype.hasOwnProperty.call(e,r)?e[r]:void 0;if(s){let o=t[r],l=o===void 0||s(o,r,t);if(l!==!0)throw new T("option "+r+" must be "+l,T.ERR_BAD_OPTION_VALUE);continue}if(i!==!0)throw new T("Unknown option "+r,T.ERR_BAD_OPTION)}}var $c={assertOptions:NZ,validators:Qc},gn=$c.validators,lt=class{constructor(e){this.defaults=e||{},this.interceptors={request:new Nc,response:new Nc}}async request(e,i){try{return await this._request(e,i)}catch(n){if(n instanceof Error){let a={};Error.captureStackTrace?Error.captureStackTrace(a):a=new Error;let r=(()=>{if(!a.stack)return"";let s=a.stack.indexOf(` +`)),m=+g.split(" ")[1];Ho("got proxy server response: %o",g),e({statusCode:m,buffered:d})}t.on("error",u),t.on("close",o),t.on("end",l),r()})}Ro.default=KJ});var mk=w(ka=>{"use strict";var QJ=ka&&ka.__awaiter||function(t,e,i,n){function a(r){return r instanceof i?r:new i(function(s){s(r)})}return new(i||(i=Promise))(function(r,s){function o(c){try{u(n.next(c))}catch(p){s(p)}}function l(c){try{u(n.throw(c))}catch(p){s(p)}}function u(c){c.done?r(c.value):a(c.value).then(o,l)}u((n=n.apply(t,e||[])).next())})},Br=ka&&ka.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(ka,"__esModule",{value:!0});var hk=Br(require("net")),gk=Br(require("tls")),YJ=Br(require("url")),XJ=Br(require("assert")),e4=Br(qo()),i4=pk(),n4=Br(dk()),Io=e4.default("https-proxy-agent:agent"),zw=class extends i4.Agent{constructor(e){let i;if(typeof e=="string"?i=YJ.default.parse(e):i=e,!i)throw new Error("an HTTP(S) proxy server `host` and `port` must be specified!");Io("creating new HttpsProxyAgent instance: %o",i),super(i);let n=Object.assign({},i);this.secureProxy=i.secureProxy||r4(n.protocol),n.host=n.hostname||n.host,typeof n.port=="string"&&(n.port=parseInt(n.port,10)),!n.port&&n.host&&(n.port=this.secureProxy?443:80),this.secureProxy&&!("ALPNProtocols"in n)&&(n.ALPNProtocols=["http 1.1"]),n.host&&n.path&&(delete n.path,delete n.pathname),this.proxy=n}callback(e,i){return QJ(this,void 0,void 0,function*(){let{proxy:n,secureProxy:a}=this,r;a?(Io("Creating `tls.Socket`: %o",n),r=gk.default.connect(n)):(Io("Creating `net.Socket`: %o",n),r=hk.default.connect(n));let s=Object.assign({},n.headers),l=`CONNECT ${`${i.host}:${i.port}`} HTTP/1.1\r +`;n.auth&&(s["Proxy-Authorization"]=`Basic ${Buffer.from(n.auth).toString("base64")}`);let{host:u,port:c,secureEndpoint:p}=i;a4(c,p)||(u+=`:${c}`),s.Host=u,s.Connection="close";for(let f of Object.keys(s))l+=`${f}: ${s[f]}\r +`;let d=n4.default(r);r.write(`${l}\r +`);let{statusCode:h,buffered:g}=yield d;if(h===200){if(e.once("socket",t4),i.secureEndpoint){Io("Upgrading socket connection to TLS");let f=i.servername||i.host;return gk.default.connect(Object.assign(Object.assign({},s4(i,"host","hostname","path","port")),{socket:r,servername:f}))}return r}r.destroy();let m=new hk.default.Socket({writable:!1});return m.readable=!0,e.once("socket",f=>{Io("replaying proxy buffer for failed request"),XJ.default(f.listenerCount("data")>0),f.push(g),f.push(null)}),m})}};ka.default=zw;function t4(t){t.resume()}function a4(t,e){return!!(!e&&t===80||e&&t===443)}function r4(t){return typeof t=="string"?/^https:?$/i.test(t):!1}function s4(t,...e){let i={},n;for(n in t)e.includes(n)||(i[n]=t[n]);return i}});var wk=w(($w,fk)=>{"use strict";var o4=$w&&$w.__importDefault||function(t){return t&&t.__esModule?t:{default:t}},Dw=o4(mk());function Gw(t){return new Dw.default(t)}(function(t){t.HttpsProxyAgent=Dw.default,t.prototype=Dw.default.prototype})(Gw||(Gw={}));fk.exports=Gw});var Ck=w((loe,vk)=>{var zo;vk.exports=function(){if(!zo){try{zo=qo()("follow-redirects")}catch{}typeof zo!="function"&&(zo=function(){})}zo.apply(null,arguments)}});var jk=w((uoe,Yw)=>{var Go=require("url"),Do=Go.URL,l4=require("http"),u4=require("https"),Bw=require("stream").Writable,Fw=require("assert"),Ak=Ck();(function(){var e=typeof process<"u",i=typeof window<"u"&&typeof document<"u",n=_a(Error.captureStackTrace);!e&&(i||!n)&&console.warn("The follow-redirects package should be excluded from browser builds.")})();var Vw=!1;try{Fw(new Do(""))}catch(t){Vw=t.code==="ERR_INVALID_URL"}var c4=["Authorization","Proxy-Authorization","Cookie"],p4=["auth","host","hostname","href","path","pathname","port","protocol","query","search","hash"],Jw=["abort","aborted","connect","error","socket","timeout"],Zw=Object.create(null);Jw.forEach(function(t){Zw[t]=function(e,i,n){this._redirectable.emit(t,e,i,n)}});var Uw=$o("ERR_INVALID_URL","Invalid URL",TypeError),Lw=$o("ERR_FR_REDIRECTION_FAILURE","Redirected request failed"),d4=$o("ERR_FR_TOO_MANY_REDIRECTS","Maximum number of redirects exceeded",Lw),h4=$o("ERR_FR_MAX_BODY_LENGTH_EXCEEDED","Request body larger than maxBodyLength limit"),g4=$o("ERR_STREAM_WRITE_AFTER_END","write after end"),m4=Bw.prototype.destroy||yk;function Fi(t,e){Bw.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 i=this;this._onNativeResponse=function(n){try{i._processResponse(n)}catch(a){i.emit("error",a instanceof Lw?a:new Lw({cause:a}))}},this._headerFilter=new RegExp("^(?:"+c4.concat(t.sensitiveHeaders).map(b4).join("|")+")$","i"),this._performRequest()}Fi.prototype=Object.create(Bw.prototype);Fi.prototype.abort=function(){Qw(this._currentRequest),this._currentRequest.abort(),this.emit("abort")};Fi.prototype.destroy=function(t){return Qw(this._currentRequest,t),m4.call(this,t),this};Fi.prototype.write=function(t,e,i){if(this._ending)throw new g4;if(!qa(t)&&!C4(t))throw new TypeError("data should be a string, Buffer or Uint8Array");if(_a(e)&&(i=e,e=null),t.length===0){i&&i();return}this._requestBodyLength+t.length<=this._options.maxBodyLength?(this._requestBodyLength+=t.length,this._requestBodyBuffers.push({data:t,encoding:e}),this._currentRequest.write(t,e,i)):(this.emit("error",new h4),this.abort())};Fi.prototype.end=function(t,e,i){if(_a(t)?(i=t,t=e=null):_a(e)&&(i=e,e=null),!t)this._ended=this._ending=!0,this._currentRequest.end(null,null,i);else{var n=this,a=this._currentRequest;this.write(t,e,function(){n._ended=!0,a.end(null,null,i)}),this._ending=!0}};Fi.prototype.setHeader=function(t,e){this._options.headers[t]=e,this._currentRequest.setHeader(t,e)};Fi.prototype.removeHeader=function(t){delete this._options.headers[t],this._currentRequest.removeHeader(t)};Fi.prototype.setTimeout=function(t,e){var i=this;function n(s){s.setTimeout(t),s.removeListener("timeout",s.destroy),s.addListener("timeout",s.destroy)}function a(s){i._timeout&&clearTimeout(i._timeout),i._timeout=setTimeout(function(){i.emit("timeout"),r()},t),n(s)}function r(){i._timeout&&(clearTimeout(i._timeout),i._timeout=null),i.removeListener("abort",r),i.removeListener("error",r),i.removeListener("response",r),i.removeListener("close",r),e&&i.removeListener("timeout",e),i.socket||i._currentRequest.removeListener("socket",a)}return e&&this.on("timeout",e),this.socket?a(this.socket):this._currentRequest.once("socket",a),this.on("socket",n),this.on("abort",r),this.on("error",r),this.on("response",r),this.on("close",r),this};["flushHeaders","getHeader","setNoDelay","setSocketKeepAlive"].forEach(function(t){Fi.prototype[t]=function(e,i){return this._currentRequest[t](e,i)}});["aborted","connection","socket"].forEach(function(t){Object.defineProperty(Fi.prototype,t,{get:function(){return this._currentRequest[t]}})});Fi.prototype._sanitizeOptions=function(t){if(t.headers||(t.headers={}),v4(t.sensitiveHeaders)||(t.sensitiveHeaders=[]),t.host&&(t.hostname||(t.hostname=t.host),delete t.host),!t.pathname&&t.path){var e=t.path.indexOf("?");e<0?t.pathname=t.path:(t.pathname=t.path.substring(0,e),t.search=t.path.substring(e))}};Fi.prototype._performRequest=function(){var t=this._options.protocol,e=this._options.nativeProtocols[t];if(!e)throw new TypeError("Unsupported protocol "+t);if(this._options.agents){var i=t.slice(0,-1);this._options.agent=this._options.agents[i]}var n=this._currentRequest=e.request(this._options,this._onNativeResponse);n._redirectable=this;for(var a of Jw)n.on(a,Zw[a]);if(this._currentUrl=/^\//.test(this._options.path)?Go.format(this._options):this._options.path,this._isRedirect){var r=0,s=this,o=this._requestBodyBuffers;(function l(u){if(n===s._currentRequest)if(u)s.emit("error",u);else if(r=400){t.responseUrl=this._currentUrl,t.redirects=this._redirects,this.emit("response",t),this._requestBodyBuffers=[];return}if(Qw(this._currentRequest),t.destroy(),++this._redirectCount>this._options.maxRedirects)throw new d4;var n,a=this._options.beforeRedirect;a&&(n=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=[],Nw(/^content-/i,this._options.headers));var s=Nw(/^host$/i,this._options.headers),o=Kw(this._currentUrl),l=s||o.host,u=/^\w+:/.test(i)?this._currentUrl:Go.format(Object.assign(o,{host:l})),c=f4(i,u);if(Ak("redirecting to",c.href),this._isRedirect=!0,Ww(c,this._options),(c.protocol!==o.protocol&&c.protocol!=="https:"||c.host!==l&&!w4(c.host,l))&&Nw(this._headerFilter,this._options.headers),_a(a)){var p={headers:t.headers,statusCode:e},d={url:u,method:r,headers:n};a(this._options,p,d),this._sanitizeOptions(this._options)}this._performRequest()};function bk(t){var e={maxRedirects:21,maxBodyLength:10485760},i={};return Object.keys(t).forEach(function(n){var a=n+":",r=i[a]=t[n],s=e[n]=Object.create(r);function o(u,c,p){return A4(u)?u=Ww(u):qa(u)?u=Ww(Kw(u)):(p=c,c=Pk(u),u={protocol:a}),_a(c)&&(p=c,c=null),c=Object.assign({maxRedirects:e.maxRedirects,maxBodyLength:e.maxBodyLength},u,c),c.nativeProtocols=i,!qa(c.host)&&!qa(c.hostname)&&(c.hostname="::1"),Fw.equal(c.protocol,a,"protocol mismatch"),Ak("options",c),new Fi(c,p)}function l(u,c,p){var d=s.request(u,c,p);return d.end(),d}Object.defineProperties(s,{request:{value:o,configurable:!0,enumerable:!0,writable:!0},get:{value:l,configurable:!0,enumerable:!0,writable:!0}})}),e}function yk(){}function Kw(t){var e;if(Vw)e=new Do(t);else if(e=Pk(Go.parse(t)),!qa(e.protocol))throw new Uw({input:t});return e}function f4(t,e){return Vw?new Do(t,e):Kw(Go.resolve(e,t))}function Pk(t){if(/^\[/.test(t.hostname)&&!/^\[[:0-9a-f]+\]$/i.test(t.hostname))throw new Uw({input:t.href||t});if(/^\[/.test(t.host)&&!/^\[[:0-9a-f]+\](:\d+)?$/i.test(t.host))throw new Uw({input:t.href||t});return t}function Ww(t,e){var i=e||{};for(var n of p4)i[n]=t[n];return i.hostname.startsWith("[")&&(i.hostname=i.hostname.slice(1,-1)),i.port!==""&&(i.port=Number(i.port)),i.path=i.search?i.pathname+i.search:i.pathname,i}function Nw(t,e){var i;for(var n in e)t.test(n)&&(i=e[n],delete e[n]);return i===null||typeof i>"u"?void 0:String(i).trim()}function $o(t,e,i){function n(a){_a(Error.captureStackTrace)&&Error.captureStackTrace(this,this.constructor),Object.assign(this,a||{}),this.code=t,this.message=this.cause?e+": "+this.cause.message:e}return n.prototype=new(i||Error),Object.defineProperties(n.prototype,{constructor:{value:n,enumerable:!1},name:{value:"Error ["+t+"]",enumerable:!1}}),n}function Qw(t,e){for(var i of Jw)t.removeListener(i,Zw[i]);t.on("error",yk),t.destroy(e)}function w4(t,e){Fw(qa(t)&&qa(e));var i=t.length-e.length-1;return i>0&&t[i]==="."&&t.endsWith(e)}function v4(t){return t instanceof Array}function qa(t){return typeof t=="string"||t instanceof String}function _a(t){return typeof t=="function"}function C4(t){return typeof t=="object"&&"length"in t}function A4(t){return Do&&t instanceof Do}function b4(t){return t.replace(/[\]\\/()*+?.$]/g,"\\$&")}Yw.exports=bk({http:l4,https:u4});Yw.exports.wrap=bk});var jq=w((coe,Pq)=>{"use strict";var Zk=nk(),y4=require("crypto"),P4=require("url"),Kk=wk(),j4=require("http"),S4=require("https"),Qk=require("http2"),mv=require("util"),Sk=require("path"),O4=jk(),Dt=require("zlib"),Vi=require("stream"),x4=require("events");function Yk(t,e){return function(){return t.apply(e,arguments)}}var{toString:T4}=Object.prototype,{getPrototypeOf:Bc}=Object,{iterator:Fc,toStringTag:Xk}=Symbol,Vc=(t=>e=>{let i=T4.call(e);return t[i]||(t[i]=i.slice(8,-1).toLowerCase())})(Object.create(null)),Tn=t=>(t=t.toLowerCase(),e=>Vc(e)===t),Jc=t=>e=>typeof e===t,{isArray:Kr}=Array,Jr=Jc("undefined");function Wo(t){return t!==null&&!Jr(t)&&t.constructor!==null&&!Jr(t.constructor)&&Ji(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}var eq=Tn("ArrayBuffer");function M4(t){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&eq(t.buffer),e}var E4=Jc("string"),Ji=Jc("function"),iq=Jc("number"),Bo=t=>t!==null&&typeof t=="object",k4=t=>t===!0||t===!1,Dc=t=>{if(Vc(t)!=="object")return!1;let e=Bc(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Xk in t)&&!(Fc in t)},q4=t=>{if(!Bo(t)||Wo(t))return!1;try{return Object.keys(t).length===0&&Object.getPrototypeOf(t)===Object.prototype}catch{return!1}},_4=Tn("Date"),H4=Tn("File"),R4=t=>!!(t&&typeof t.uri<"u"),I4=t=>t&&typeof t.getParts<"u",z4=Tn("Blob"),D4=Tn("FileList"),G4=t=>Bo(t)&&Ji(t.pipe);function $4(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}}var Ok=$4(),xk=typeof Ok.FormData<"u"?Ok.FormData:void 0,N4=t=>{if(!t)return!1;if(xk&&t instanceof xk)return!0;let e=Bc(t);if(!e||e===Object.prototype||!Ji(t.append))return!1;let i=Vc(t);return i==="formdata"||i==="object"&&Ji(t.toString)&&t.toString()==="[object FormData]"},U4=Tn("URLSearchParams"),[L4,W4,B4,F4]=["ReadableStream","Request","Response","Headers"].map(Tn),V4=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Fo(t,e,{allOwnKeys:i=!1}={}){if(t===null||typeof t>"u")return;let n,a;if(typeof t!="object"&&(t=[t]),Kr(t))for(n=0,a=t.length;n0;)if(a=i[n],e===a.toLowerCase())return a;return null}var Ha=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,tq=t=>!Jr(t)&&t!==Ha;function rv(...t){let{caseless:e,skipUndefined:i}=tq(this)&&this||{},n={},a=(r,s)=>{if(s==="__proto__"||s==="constructor"||s==="prototype")return;let o=e&&nq(n,s)||s,l=sv(n,o)?n[o]:void 0;Dc(l)&&Dc(r)?n[o]=rv(l,r):Dc(r)?n[o]=rv({},r):Kr(r)?n[o]=r.slice():(!i||!Jr(r))&&(n[o]=r)};for(let r=0,s=t.length;r(Fo(e,(a,r)=>{i&&Ji(a)?Object.defineProperty(t,r,{__proto__:null,value:Yk(a,i),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(t,r,{__proto__:null,value:a,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:n}),t),Z4=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),K4=(t,e,i,n)=>{t.prototype=Object.create(e.prototype,n),Object.defineProperty(t.prototype,"constructor",{__proto__:null,value:t,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(t,"super",{__proto__:null,value:e.prototype}),i&&Object.assign(t.prototype,i)},Q4=(t,e,i,n)=>{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],(!n||n(s,t,e))&&!o[s]&&(e[s]=t[s],o[s]=!0);t=i!==!1&&Bc(t)}while(t&&(!i||i(t,e))&&t!==Object.prototype);return e},Y4=(t,e,i)=>{t=String(t),(i===void 0||i>t.length)&&(i=t.length),i-=e.length;let n=t.indexOf(e,i);return n!==-1&&n===i},X4=t=>{if(!t)return null;if(Kr(t))return t;let e=t.length;if(!iq(e))return null;let i=new Array(e);for(;e-- >0;)i[e]=t[e];return i},e3=(t=>e=>t&&e instanceof t)(typeof Uint8Array<"u"&&Bc(Uint8Array)),i3=(t,e)=>{let n=(t&&t[Fc]).call(t),a;for(;(a=n.next())&&!a.done;){let r=a.value;e.call(t,r[0],r[1])}},n3=(t,e)=>{let i,n=[];for(;(i=t.exec(e))!==null;)n.push(i);return n},t3=Tn("HTMLFormElement"),a3=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(i,n,a){return n.toUpperCase()+a}),sv=(({hasOwnProperty:t})=>(e,i)=>t.call(e,i))(Object.prototype),r3=Tn("RegExp"),aq=(t,e)=>{let i=Object.getOwnPropertyDescriptors(t),n={};Fo(i,(a,r)=>{let s;(s=e(a,r,t))!==!1&&(n[r]=s||a)}),Object.defineProperties(t,n)},s3=t=>{aq(t,(e,i)=>{if(Ji(t)&&["arguments","caller","callee"].includes(i))return!1;let n=t[i];if(Ji(n)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+i+"'")})}})},o3=(t,e)=>{let i={},n=a=>{a.forEach(r=>{i[r]=!0})};return Kr(t)?n(t):n(String(t).split(e)),i},l3=()=>{},u3=(t,e)=>t!=null&&Number.isFinite(t=+t)?t:e;function c3(t){return!!(t&&Ji(t.append)&&t[Xk]==="FormData"&&t[Fc])}var p3=t=>{let e=new WeakSet,i=n=>{if(Bo(n)){if(e.has(n))return;if(Wo(n))return n;if(!("toJSON"in n)){e.add(n);let a=Kr(n)?[]:{};return Fo(n,(r,s)=>{let o=i(r);!Jr(o)&&(a[s]=o)}),e.delete(n),a}}return n};return i(t)},d3=Tn("AsyncFunction"),h3=t=>t&&(Bo(t)||Ji(t))&&Ji(t.then)&&Ji(t.catch),rq=((t,e)=>t?setImmediate:e?((i,n)=>(Ha.addEventListener("message",({source:a,data:r})=>{a===Ha&&r===i&&n.length&&n.shift()()},!1),a=>{n.push(a),Ha.postMessage(i,"*")}))(`axios@${Math.random()}`,[]):i=>setTimeout(i))(typeof setImmediate=="function",Ji(Ha.postMessage)),g3=typeof queueMicrotask<"u"?queueMicrotask.bind(Ha):typeof process<"u"&&process.nextTick||rq,m3=t=>t!=null&&Ji(t[Fc]),C={isArray:Kr,isArrayBuffer:eq,isBuffer:Wo,isFormData:N4,isArrayBufferView:M4,isString:E4,isNumber:iq,isBoolean:k4,isObject:Bo,isPlainObject:Dc,isEmptyObject:q4,isReadableStream:L4,isRequest:W4,isResponse:B4,isHeaders:F4,isUndefined:Jr,isDate:_4,isFile:H4,isReactNativeBlob:R4,isReactNative:I4,isBlob:z4,isRegExp:r3,isFunction:Ji,isStream:G4,isURLSearchParams:U4,isTypedArray:e3,isFileList:D4,forEach:Fo,merge:rv,extend:J4,trim:V4,stripBOM:Z4,inherits:K4,toFlatObject:Q4,kindOf:Vc,kindOfTest:Tn,endsWith:Y4,toArray:X4,forEachEntry:i3,matchAll:n3,isHTMLForm:t3,hasOwnProperty:sv,hasOwnProp:sv,reduceDescriptors:aq,freezeMethods:s3,toObjectSet:o3,toCamelCase:a3,noop:l3,toFiniteNumber:u3,findKey:nq,global:Ha,isContextDefined:tq,isSpecCompliantForm:c3,toJSONObject:p3,isAsyncFn:d3,isThenable:h3,setImmediate:rq,asap:g3,isIterable:m3},f3=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"]),w3=t=>{let e={},i,n,a;return t&&t.split(` +`).forEach(function(s){a=s.indexOf(":"),i=s.substring(0,a).trim().toLowerCase(),n=s.substring(a+1).trim(),!(!i||e[i]&&f3[i])&&(i==="set-cookie"?e[i]?e[i].push(n):e[i]=[n]:e[i]=e[i]?e[i]+", "+n:n)}),e};function v3(t){let e=0,i=t.length;for(;ee;){let n=t.charCodeAt(i-1);if(n!==9&&n!==32)break;i-=1}return e===0&&i===t.length?t:t.slice(e,i)}var C3=new RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+","g"),A3=new RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+","g");function fv(t,e){return C.isArray(t)?t.map(i=>fv(i,e)):v3(String(t).replace(e,""))}var b3=t=>fv(t,C3),y3=t=>fv(t,A3);function wv(t){let e=Object.create(null);return C.forEach(t.toJSON(),(i,n)=>{e[n]=y3(i)}),e}var Tk=Symbol("internals");function No(t){return t&&String(t).trim().toLowerCase()}function Gc(t){return t===!1||t==null?t:C.isArray(t)?t.map(Gc):b3(String(t))}function P3(t){let e=Object.create(null),i=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g,n;for(;n=i.exec(t);)e[n[1]]=n[2];return e}var j3=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function Xw(t,e,i,n,a){if(C.isFunction(n))return n.call(this,e,i);if(a&&(e=i),!!C.isString(e)){if(C.isString(n))return e.indexOf(n)!==-1;if(C.isRegExp(n))return n.test(e)}}function S3(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,i,n)=>i.toUpperCase()+n)}function O3(t,e){let i=C.toCamelCase(" "+e);["get","set","has"].forEach(n=>{Object.defineProperty(t,n+i,{__proto__:null,value:function(a,r,s){return this[n].call(this,e,a,r,s)},configurable:!0})})}var ti=class{constructor(e){e&&this.set(e)}set(e,i,n){let a=this;function r(o,l,u){let c=No(l);if(!c)throw new Error("header name must be a non-empty string");let p=C.findKey(a,c);(!p||a[p]===void 0||u===!0||u===void 0&&a[p]!==!1)&&(a[p||l]=Gc(o))}let s=(o,l)=>C.forEach(o,(u,c)=>r(u,c,l));if(C.isPlainObject(e)||e instanceof this.constructor)s(e,i);else if(C.isString(e)&&(e=e.trim())&&!j3(e))s(w3(e),i);else if(C.isObject(e)&&C.isIterable(e)){let o={},l,u;for(let c of e){if(!C.isArray(c))throw TypeError("Object iterator must return a key-value pair");o[u=c[0]]=(l=o[u])?C.isArray(l)?[...l,c[1]]:[l,c[1]]:c[1]}s(o,i)}else e!=null&&r(i,e,n);return this}get(e,i){if(e=No(e),e){let n=C.findKey(this,e);if(n){let a=this[n];if(!i)return a;if(i===!0)return P3(a);if(C.isFunction(i))return i.call(this,a,n);if(C.isRegExp(i))return i.exec(a);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,i){if(e=No(e),e){let n=C.findKey(this,e);return!!(n&&this[n]!==void 0&&(!i||Xw(this,this[n],n,i)))}return!1}delete(e,i){let n=this,a=!1;function r(s){if(s=No(s),s){let o=C.findKey(n,s);o&&(!i||Xw(n,n[o],o,i))&&(delete n[o],a=!0)}}return C.isArray(e)?e.forEach(r):r(e),a}clear(e){let i=Object.keys(this),n=i.length,a=!1;for(;n--;){let r=i[n];(!e||Xw(this,this[r],r,e,!0))&&(delete this[r],a=!0)}return a}normalize(e){let i=this,n={};return C.forEach(this,(a,r)=>{let s=C.findKey(n,r);if(s){i[s]=Gc(a),delete i[r];return}let o=e?S3(r):String(r).trim();o!==r&&delete i[r],i[o]=Gc(a),n[o]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){let i=Object.create(null);return C.forEach(this,(n,a)=>{n!=null&&n!==!1&&(i[a]=e&&C.isArray(n)?n.join(", "):n)}),i}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,i])=>e+": "+i).join(` +`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...i){let n=new this(e);return i.forEach(a=>n.set(a)),n}static accessor(e){let n=(this[Tk]=this[Tk]={accessors:{}}).accessors,a=this.prototype;function r(s){let o=No(s);n[o]||(O3(a,s),n[o]=!0)}return C.isArray(e)?e.forEach(r):r(e),this}};ti.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);C.reduceDescriptors(ti.prototype,({value:t},e)=>{let i=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(n){this[i]=n}}});C.freezeMethods(ti);var x3="[REDACTED ****]";function T3(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 M3(t,e){let i=new Set(e.map(r=>String(r).toLowerCase())),n=[],a=r=>{if(r===null||typeof r!="object"||C.isBuffer(r))return r;if(n.indexOf(r)!==-1)return;r instanceof ti&&(r=r.toJSON()),n.push(r);let s;if(C.isArray(r))s=[],r.forEach((o,l)=>{let u=a(o);C.isUndefined(u)||(s[l]=u)});else{if(!C.isPlainObject(r)&&T3(r))return n.pop(),r;s=Object.create(null);for(let[o,l]of Object.entries(r)){let u=i.has(o.toLowerCase())?x3:a(l);C.isUndefined(u)||(s[o]=u)}}return n.pop(),s};return a(t)}var T=class t extends Error{static from(e,i,n,a,r,s){let o=new t(e.message,i||e.code,n,a,r);return o.cause=e,o.name=e.name,e.status!=null&&o.status==null&&(o.status=e.status),s&&Object.assign(o,s),o}constructor(e,i,n,a,r){super(e),Object.defineProperty(this,"message",{__proto__:null,value:e,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,i&&(this.code=i),n&&(this.config=n),a&&(this.request=a),r&&(this.response=r,this.status=r.status)}toJSON(){let e=this.config,i=e&&C.hasOwnProp(e,"redact")?e.redact:void 0,n=C.isArray(i)&&i.length>0?M3(e,i):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:n,code:this.code,status:this.status}}};T.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE";T.ERR_BAD_OPTION="ERR_BAD_OPTION";T.ECONNABORTED="ECONNABORTED";T.ETIMEDOUT="ETIMEDOUT";T.ECONNREFUSED="ECONNREFUSED";T.ERR_NETWORK="ERR_NETWORK";T.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS";T.ERR_DEPRECATED="ERR_DEPRECATED";T.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE";T.ERR_BAD_REQUEST="ERR_BAD_REQUEST";T.ERR_CANCELED="ERR_CANCELED";T.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT";T.ERR_INVALID_URL="ERR_INVALID_URL";T.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";function ov(t){return C.isPlainObject(t)||C.isArray(t)}function sq(t){return C.endsWith(t,"[]")?t.slice(0,-2):t}function ev(t,e,i){return t?t.concat(e).map(function(a,r){return a=sq(a),!i&&r?"["+a+"]":a}).join(i?".":""):e}function E3(t){return C.isArray(t)&&!t.some(ov)}var k3=C.toFlatObject(C,{},null,function(e){return/^is[A-Z]/.test(e)});function Zc(t,e,i){if(!C.isObject(t))throw new TypeError("target must be an object");e=e||new(Zk||FormData),i=C.toFlatObject(i,{metaTokens:!0,dots:!1,indexes:!1},!1,function(f,v){return!C.isUndefined(v[f])});let n=i.metaTokens,a=i.visitor||p,r=i.dots,s=i.indexes,o=i.Blob||typeof Blob<"u"&&Blob,l=i.maxDepth===void 0?100:i.maxDepth,u=o&&C.isSpecCompliantForm(e);if(!C.isFunction(a))throw new TypeError("visitor must be a function");function c(m){if(m===null)return"";if(C.isDate(m))return m.toISOString();if(C.isBoolean(m))return m.toString();if(!u&&C.isBlob(m))throw new T("Blob is not supported. Use a Buffer instead.");return C.isArrayBuffer(m)||C.isTypedArray(m)?u&&typeof Blob=="function"?new Blob([m]):Buffer.from(m):m}function p(m,f,v){let y=m;if(C.isReactNative(e)&&C.isReactNativeBlob(m))return e.append(ev(v,f,r),c(m)),!1;if(m&&!v&&typeof m=="object"){if(C.endsWith(f,"{}"))f=n?f:f.slice(0,-2),m=JSON.stringify(m);else if(C.isArray(m)&&E3(m)||(C.isFileList(m)||C.endsWith(f,"[]"))&&(y=C.toArray(m)))return f=sq(f),y.forEach(function(b,O){!(C.isUndefined(b)||b===null)&&e.append(s===!0?ev([f],O,r):s===null?f:f+"[]",c(b))}),!1}return ov(m)?!0:(e.append(ev(v,f,r),c(m)),!1)}let d=[],h=Object.assign(k3,{defaultVisitor:p,convertValue:c,isVisitable:ov});function g(m,f,v=0){if(!C.isUndefined(m)){if(v>l)throw new T("Object is too deeply nested ("+v+" levels). Max depth: "+l,T.ERR_FORM_DATA_DEPTH_EXCEEDED);if(d.indexOf(m)!==-1)throw Error("Circular reference detected in "+f.join("."));d.push(m),C.forEach(m,function(A,b){(!(C.isUndefined(A)||A===null)&&a.call(e,A,C.isString(b)?b.trim():b,f,h))===!0&&g(A,f?f.concat(b):[b],v+1)}),d.pop()}}if(!C.isObject(t))throw new TypeError("data must be an object");return g(t),e}function Mk(t){let e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(t).replace(/[!'()~]|%20/g,function(n){return e[n]})}function oq(t,e){this._pairs=[],t&&Zc(t,this,e)}var lq=oq.prototype;lq.append=function(e,i){this._pairs.push([e,i])};lq.toString=function(e){let i=e?function(n){return e.call(this,n,Mk)}:Mk;return this._pairs.map(function(a){return i(a[0])+"="+i(a[1])},"").join("&")};function q3(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function vv(t,e,i){if(!e)return t;let n=i&&i.encode||q3,a=C.isFunction(i)?{serialize:i}:i,r=a&&a.serialize,s;if(r?s=r(e,a):s=C.isURLSearchParams(e)?e.toString():new oq(e,a).toString(n),s){let o=t.indexOf("#");o!==-1&&(t=t.slice(0,o)),t+=(t.indexOf("?")===-1?"?":"&")+s}return t}var Nc=class{constructor(){this.handlers=[]}use(e,i,n){return this.handlers.push({fulfilled:e,rejected:i,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){C.forEach(this.handlers,function(n){n!==null&&e(n)})}},Kc={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0},_3=P4.URLSearchParams,iv="abcdefghijklmnopqrstuvwxyz",Ek="0123456789",uq={DIGIT:Ek,ALPHA:iv,ALPHA_DIGIT:iv+iv.toUpperCase()+Ek},H3=(t=16,e=uq.ALPHA_DIGIT)=>{let i="",{length:n}=e,a=new Uint32Array(t);y4.randomFillSync(a);for(let r=0;re[0]==="[]"?"":e[1]||e[0])}function U3(t){let e={},i=Object.keys(t),n,a=i.length,r;for(n=0;n=i.length;return s=!s&&C.isArray(a)?a.length:s,l?(C.hasOwnProp(a,s)?a[s]=C.isArray(a[s])?a[s].concat(n):[a[s],n]:a[s]=n,!o):((!C.hasOwnProp(a,s)||!C.isObject(a[s]))&&(a[s]=[]),e(i,n,a[s],r)&&C.isArray(a[s])&&(a[s]=U3(a[s])),!o)}if(C.isFormData(t)&&C.isFunction(t.entries)){let i={};return C.forEachEntry(t,(n,a)=>{e(N3(n),a,i,0)}),i}return null}var Fr=(t,e)=>t!=null&&C.hasOwnProp(t,e)?t[e]:void 0;function L3(t,e,i){if(C.isString(t))try{return(e||JSON.parse)(t),C.trim(t)}catch(n){if(n.name!=="SyntaxError")throw n}return(i||JSON.stringify)(t)}var Vo={transitional:Kc,adapter:["xhr","http","fetch"],transformRequest:[function(e,i){let n=i.getContentType()||"",a=n.indexOf("application/json")>-1,r=C.isObject(e);if(r&&C.isHTMLForm(e)&&(e=new FormData(e)),C.isFormData(e))return a?JSON.stringify(cq(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 i.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let o;if(r){let l=Fr(this,"formSerializer");if(n.indexOf("application/x-www-form-urlencoded")>-1)return $3(e,l).toString();if((o=C.isFileList(e))||n.indexOf("multipart/form-data")>-1){let u=Fr(this,"env"),c=u&&u.FormData;return Zc(o?{"files[]":e}:e,c&&new c,l)}}return r||a?(i.setContentType("application/json",!1),L3(e)):e}],transformResponse:[function(e){let i=Fr(this,"transitional")||Vo.transitional,n=i&&i.forcedJSONParsing,a=Fr(this,"responseType"),r=a==="json";if(C.isResponse(e)||C.isReadableStream(e))return e;if(e&&C.isString(e)&&(n&&!a||r)){let o=!(i&&i.silentJSONParsing)&&r;try{return JSON.parse(e,Fr(this,"parseReviver"))}catch(l){if(o)throw l.name==="SyntaxError"?T.from(l,T.ERR_BAD_RESPONSE,this,null,Fr(this,"response")):l}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Qe.classes.FormData,Blob:Qe.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};C.forEach(["delete","get","head","post","put","patch","query"],t=>{Vo.headers[t]={}});function nv(t,e){let i=this||Vo,n=e||i,a=ti.from(n.headers),r=n.data;return C.forEach(t,function(o){r=o.call(i,r,a.normalize(),e?e.status:void 0)}),a.normalize(),r}function pq(t){return!!(t&&t.__CANCEL__)}var ut=class extends T{constructor(e,i,n){super(e??"canceled",T.ERR_CANCELED,i,n),this.name="CanceledError",this.__CANCEL__=!0}};function Vr(t,e,i){let n=i.config.validateStatus;!i.status||!n||n(i.status)?t(i):e(new T("Request failed with status code "+i.status,i.status>=400&&i.status<500?T.ERR_BAD_REQUEST:T.ERR_BAD_RESPONSE,i.config,i.request,i))}function W3(t){return typeof t!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function B3(t,e){return e?t.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):t}function Av(t,e,i){let n=!W3(e);return t&&(n||i===!1)?B3(t,e):e}var F3={ftp:21,gopher:70,http:80,https:443,ws:80,wss:443};function V3(t){try{return new URL(t)}catch{return null}}function J3(t){var e=(typeof t=="string"?V3(t):t)||{},i=e.protocol,n=e.host,a=e.port;if(typeof n!="string"||!n||typeof i!="string"||(i=i.split(":",1)[0],n=n.replace(/:\d*$/,""),a=parseInt(a)||F3[i]||0,!Z3(n,a)))return"";var r=uv(i+"_proxy")||uv("all_proxy");return r&&r.indexOf("://")===-1&&(r=i+"://"+r),r}function Z3(t,e){var i=uv("no_proxy").toLowerCase();return i?i==="*"?!1:i.split(/[,\s]/).every(function(n){if(!n)return!0;var a=n.match(/^(.+):(\d+)$/),r=a?a[1]:n,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 uv(t){return process.env[t.toLowerCase()]||process.env[t.toUpperCase()]||""}var Uo="1.16.1";function dq(t){let e=/^([-+\w]{1,25}):(?:\/\/)?/.exec(t);return e&&e[1]||""}var K3=/^([^,;]+\/[^,;]+)?((?:;[^,;=]+=[^,;]+)*)(;base64)?,([\s\S]*)$/;function Q3(t,e,i){let n=i&&i.Blob||Qe.classes.Blob,a=dq(t);if(e===void 0&&n&&(e=!0),a==="data"){t=a.length?t.slice(a.length+1):t;let r=K3.exec(t);if(!r)throw new T("Invalid URL",T.ERR_INVALID_URL);let s=r[1],o=r[2],l=r[3]?"base64":"utf8",u=r[4],c;s?c=o?s+o:s:o&&(c="text/plain"+o);let p=Buffer.from(decodeURIComponent(u),l);if(e){if(!n)throw new T("Blob is not supported",T.ERR_NOT_SUPPORT);return new n([p],{type:c})}return p}throw new T("Unsupported protocol "+a,T.ERR_NOT_SUPPORT)}var tv=Symbol("internals"),Uc=class extends Vi.Transform{constructor(e){e=C.toFlatObject(e,{maxRate:0,chunkSize:64*1024,minChunkSize:100,timeWindow:500,ticksRate:2,samplesCount:15},null,(n,a)=>!C.isUndefined(a[n])),super({readableHighWaterMark:e.chunkSize});let i=this[tv]={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",n=>{n==="progress"&&(i.isCaptured||(i.isCaptured=!0))})}_read(e){let i=this[tv];return i.onReadCallback&&i.onReadCallback(),super._read(e)}_transform(e,i,n){let a=this[tv],r=a.maxRate,s=this.readableHighWaterMark,o=a.timeWindow,l=1e3/o,u=r/l,c=a.minChunkSize!==!1?Math.max(a.minChunkSize,u*.01):0,p=(h,g)=>{let m=Buffer.byteLength(h);a.bytesSeen+=m,a.bytes+=m,a.isCaptured&&this.emit("progress",a.bytesSeen),this.push(h)?process.nextTick(g):a.onReadCallback=()=>{a.onReadCallback=null,process.nextTick(g)}},d=(h,g)=>{let m=Buffer.byteLength(h),f=null,v=s,y,A=0;if(r){let b=Date.now();(!a.ts||(A=b-a.ts)>=o)&&(a.ts=b,y=u-a.bytes,a.bytes=y<0?-y:0,A=0),y=u-a.bytes}if(r){if(y<=0)return setTimeout(()=>{g(null,h)},o-A);yv&&m-v>c&&(f=h.subarray(v),h=h.subarray(0,v)),p(h,f?()=>{process.nextTick(g,null,f)}:g)};d(e,function h(g,m){if(g)return n(g);m?d(m,h):n(null)})}},{asyncIterator:kk}=Symbol,hq=async function*(t){t.stream?yield*t.stream():t.arrayBuffer?yield await t.arrayBuffer():t[kk]?yield*t[kk]():yield t},Y3=Qe.ALPHABET.ALPHA_DIGIT+"-_",Lo=typeof TextEncoder=="function"?new TextEncoder:new mv.TextEncoder,Ra=`\r +`,X3=Lo.encode(Ra),eZ=2,cv=class{constructor(e,i){let{escapeName:n}=this.constructor,a=C.isString(i),r=`Content-Disposition: form-data; name="${n(e)}"${!a&&i.name?`; filename="${n(i.name)}"`:""}${Ra}`;if(a)i=Lo.encode(String(i).replace(/\r?\n|\r\n?/g,Ra));else{let s=String(i.type||"application/octet-stream").replace(/[\r\n]/g,"");r+=`Content-Type: ${s}${Ra}`}this.headers=Lo.encode(r+Ra),this.contentLength=a?i.byteLength:i.size,this.size=this.headers.byteLength+this.contentLength+eZ,this.name=e,this.value=i}async*encode(){yield this.headers;let{value:e}=this;C.isTypedArray(e)?yield e:yield*hq(e),yield X3}static escapeName(e){return String(e).replace(/[\r\n"]/g,i=>({"\r":"%0D","\n":"%0A",'"':"%22"})[i])}},iZ=(t,e,i)=>{let{tag:n="form-data-boundary",size:a=25,boundary:r=n+"-"+Qe.generateString(a,Y3)}=i||{};if(!C.isFormData(t))throw TypeError("FormData instance required");if(r.length<1||r.length>70)throw Error("boundary must be 1-70 characters long");let s=Lo.encode("--"+r+Ra),o=Lo.encode("--"+r+"--"+Ra),l=o.byteLength,u=Array.from(t.entries()).map(([p,d])=>{let h=new cv(p,d);return l+=h.size,h});l+=s.byteLength*u.length,l=C.toFiniteNumber(l);let c={"Content-Type":`multipart/form-data; boundary=${r}`};return Number.isFinite(l)&&(c["Content-Length"]=l),e&&e(c),Vi.Readable.from((async function*(){for(let p of u)yield s,yield*p.encode();yield o})())},pv=class extends Vi.Transform{__transform(e,i,n){this.push(e),n()}_transform(e,i,n){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,i)}this.__transform(e,i,n)}},nZ=(t,e)=>C.isAsyncFn(t)?function(...i){let n=i.pop();t.apply(this,i).then(a=>{try{e?n(null,...e(a)):n(null,a)}catch(r){n(r)}},n)}:t,tZ=new Set(["localhost"]),gq=t=>{let e=t.split(".");return e.length!==4||e[0]!=="127"?!1:e.every(i=>/^\d+$/.test(i)&&Number(i)>=0&&Number(i)<=255)},aZ=t=>{if(t==="::1")return!0;let e=t.match(/^::ffff:(\d+\.\d+\.\d+\.\d+)$/i);if(e)return gq(e[1]);let i=t.match(/^::ffff:([0-9a-f]{1,4}):([0-9a-f]{1,4})$/i);if(i){let a=parseInt(i[1],16);return a>=32512&&a<=32767}let n=t.split(":");if(n.length===8){for(let a=0;a<7;a++)if(!/^0+$/.test(n[a]))return!1;return/^0*1$/.test(n[7])}return!1},qk=t=>t?tZ.has(t)||gq(t)?!0:aZ(t):!1,rZ={http:80,https:443,ws:80,wss:443,ftp:21},sZ=t=>{let e=t,i=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))&&(i=Number.parseInt(o.slice(1),10)),[s,i]}}let n=e.indexOf(":"),a=e.lastIndexOf(":");return n!==-1&&n===a&&/^\d+$/.test(e.slice(a+1))&&(i=Number.parseInt(e.slice(a+1),10),e=e.slice(0,a)),[e,i]},oZ=/^(?:::|(?:0{1,4}:){1,4}:|(?:0{1,4}:){5})ffff:(\d+\.\d+\.\d+\.\d+)$/i,lZ=/^(?:::|(?:0{1,4}:){1,4}:|(?:0{1,4}:){5})ffff:([0-9a-f]{1,4}):([0-9a-f]{1,4})$/i,uZ=t=>{if(typeof t!="string"||t.indexOf(":")===-1)return t;let e=t.match(oZ);if(e)return e[1];let i=t.match(lZ);if(i){let n=parseInt(i[1],16),a=parseInt(i[2],16);return`${n>>8}.${n&255}.${a>>8}.${a&255}`}return t},_k=t=>t&&(t.charAt(0)==="["&&t.charAt(t.length-1)==="]"&&(t=t.slice(1,-1)),uZ(t.replace(/\.+$/,"")));function cZ(t){let e;try{e=new URL(t)}catch{return!1}let i=(process.env.no_proxy||process.env.NO_PROXY||"").toLowerCase();if(!i)return!1;if(i==="*")return!0;let n=Number.parseInt(e.port,10)||rZ[e.protocol.split(":",1)[0]]||0,a=_k(e.hostname.toLowerCase());return i.split(/[\s,]+/).some(r=>{if(!r)return!1;let[s,o]=sZ(r);return s=_k(s),!s||o&&o!==n?!1:(s.charAt(0)==="*"&&(s=s.slice(1)),s.charAt(0)==="."?a.endsWith(s):a===s||qk(a)&&qk(s))})}function pZ(t,e){t=t||10;let i=new Array(t),n=new Array(t),a=0,r=0,s;return e=e!==void 0?e:1e3,function(l){let u=Date.now(),c=n[r];s||(s=u),i[a]=l,n[a]=u;let p=r,d=0;for(;p!==a;)d+=i[p++],p=p%t;if(a=(a+1)%t,a===r&&(r=(r+1)%t),u-s{i=c,a=null,r&&(clearTimeout(r),r=null),t(...u)};return[(...u)=>{let c=Date.now(),p=c-i;p>=n?s(u,c):(a=u,r||(r=setTimeout(()=>{r=null,s(a)},n-p)))},()=>a&&s(a)]}var Zr=(t,e,i=3)=>{let n=0,a=pZ(50,250);return dZ(r=>{if(!r||typeof r.loaded!="number")return;let s=r.loaded,o=r.lengthComputable?r.total:void 0,l=o!=null?Math.min(s,o):s,u=Math.max(0,l-n),c=a(u);n=Math.max(n,l);let p={loaded:l,total:o,progress:o?l/o:void 0,bytes:u,rate:c||void 0,estimated:c&&o?(o-l)/c:void 0,event:r,lengthComputable:o!=null,[e?"download":"upload"]:!0};t(p)},i)},Lc=(t,e)=>{let i=t!=null;return[n=>e[0]({lengthComputable:i,total:t,loaded:n}),e[1]]},Wc=t=>(...e)=>C.asap(()=>t(...e));function mq(t){if(!t||typeof t!="string"||!t.startsWith("data:"))return 0;let e=t.indexOf(",");if(e<0)return 0;let i=t.slice(5,e),n=t.slice(e+1);if(/;base64/i.test(i)){let s=n.length,o=n.length;for(let h=0;h=48&&g<=57||g>=65&&g<=70||g>=97&&g<=102)&&(m>=48&&m<=57||m>=65&&m<=70||m>=97&&m<=102)&&(s-=2,h+=2)}let l=0,u=o-1,c=h=>h>=2&&n.charCodeAt(h-2)===37&&n.charCodeAt(h-1)===51&&(n.charCodeAt(h)===68||n.charCodeAt(h)===100);u>=0&&(n.charCodeAt(u)===61?(l++,u--):c(u)&&(l++,u-=3)),l===1&&u>=0&&(n.charCodeAt(u)===61||c(u))&&l++;let d=Math.floor(s/4)*3-(l||0);return d>0?d:0}if(typeof Buffer<"u"&&typeof Buffer.byteLength=="function")return Buffer.byteLength(n,"utf8");let r=0;for(let s=0,o=n.length;s=55296&&l<=56319&&s+1=56320&&u<=57343?(r+=4,s++):r+=3}else r+=3}return r}var Hk={flush:Dt.constants.Z_SYNC_FLUSH,finishFlush:Dt.constants.Z_SYNC_FLUSH},hZ={flush:Dt.constants.BROTLI_OPERATION_FLUSH,finishFlush:Dt.constants.BROTLI_OPERATION_FLUSH},Rk=C.isFunction(Dt.createBrotliDecompress),{http:gZ,https:mZ}=O4,fq=/https:?/,fZ=["content-type","content-length"];function wZ(t,e,i){if(i!=="content-only"){t.set(e);return}Object.entries(e).forEach(([n,a])=>{fZ.includes(n.toLowerCase())&&t.set(n,a)})}var Ik=Symbol("axios.http.socketListener"),Ic=Symbol("axios.http.currentReq"),wq=Symbol("axios.http.installedTunnel"),vZ=new Map,zk=new WeakMap;function CZ(t,e){let i=t.protocol+"//"+t.hostname+":"+(t.port||"")+"#"+(t.auth||""),n=e?zk.get(e)||zk.set(e,new Map).get(e):vZ,a=n.get(i);if(a)return a;let r=e&&e.options?{...e.options,...t}:t;return a=new Kk(r),a[wq]=!0,n.set(i,a),a}var Dk=Qe.protocols.map(t=>t+":"),Gk=t=>{if(!C.isString(t))return t;try{return decodeURIComponent(t)}catch{return t}},$k=(t,[e,i])=>(t.on("end",i).on("error",i),e),dv=class{constructor(){this.sessions=Object.create(null)}getSession(e,i){i=Object.assign({sessionTimeout:1e3},i);let n=this.sessions[e];if(n){let c=n.length;for(let p=0;p{if(r)return;r=!0;let c=n,p=c.length,d=p;for(;d--;)if(c[d][0]===a){p===1?delete this.sessions[e]:c.splice(d,1),a.closed||a.close();return}},o=a.request,{sessionTimeout:l}=i;if(l!=null){let c,p=0;a.request=function(){let d=o.apply(this,arguments);return p++,c&&(clearTimeout(c),c=null),d.once("close",()=>{--p||(c=setTimeout(()=>{c=null,s()},l))}),d}}a.once("close",s);let u=[a,i];return n?n.push(u):n=this.sessions[e]=[u],a}},AZ=new dv;function bZ(t,e,i){t.beforeRedirects.proxy&&t.beforeRedirects.proxy(t),t.beforeRedirects.config&&t.beforeRedirects.config(t,e,i)}function vq(t,e,i,n,a){let r=e;if(!r&&r!==!1){let s=J3(i);s&&(cZ(i)||(r=new URL(s)))}if(n&&t.headers)for(let s of Object.keys(t.headers))s.toLowerCase()==="proxy-authorization"&&delete t.headers[s];if(n&&t.agent&&t.agent[wq]&&(t.agent=void 0),r){let s=r instanceof URL,o=d=>s||C.hasOwnProp(r,d)?r[d]:void 0,l=o("username"),u=o("password"),c=C.hasOwnProp(r,"auth")?r.auth:void 0;if(l&&(c=(l||"")+":"+(u||"")),c){let d=typeof c=="object",h=d&&C.hasOwnProp(c,"username")?c.username:void 0,g=d&&C.hasOwnProp(c,"password")?c.password:void 0;if(!!(h||g))c=(h||"")+":"+(g||"");else if(d)throw new T("Invalid proxy authorization",T.ERR_BAD_OPTION,{proxy:r})}if(fq.test(t.protocol)){if(!(a instanceof Kk)){let d=o("hostname")||o("host"),h=o("port"),g=o("protocol"),m=g?g.includes(":")?g:`${g}:`:"http:",f=d&&d.includes(":")&&!d.startsWith("[")?`[${d}]`:d,v=new URL(`${m}//${f}${h?":"+h:""}`),y={protocol:v.protocol,hostname:v.hostname.replace(/^\[|\]$/g,""),port:v.port,auth:c&&typeof c=="string"?c:void 0};v.protocol==="https:"&&(y.ALPNProtocols=["http/1.1"]);let A=CZ(y,a);t.agent=A,t.agents&&(t.agents.https=A)}}else{if(c){let m=Buffer.from(c,"utf8").toString("base64");t.headers["Proxy-Authorization"]="Basic "+m}let d=!1;for(let m of Object.keys(t.headers))if(m.toLowerCase()==="host"){d=!0;break}d||(t.headers.host=t.hostname+(t.port?":"+t.port:""));let h=o("hostname")||o("host");t.hostname=h,t.host=h,t.port=o("port"),t.path=i;let g=o("protocol");g&&(t.protocol=g.includes(":")?g:`${g}:`)}}t.beforeRedirects.proxy=function(o){vq(o,e,o.href,!0,a)}}var yZ=typeof process<"u"&&C.kindOf(process)==="process",PZ=t=>new Promise((e,i)=>{let n,a,r=(l,u)=>{a||(a=!0,n&&n(l,u))},s=l=>{r(l),e(l)},o=l=>{r(l,!0),i(l)};t(s,o,l=>n=l).catch(o)}),jZ=({address:t,family:e})=>{if(!C.isString(t))throw TypeError("address must be a string");return{address:t,family:e||(t.indexOf(".")<0?6:4)}},Nk=(t,e)=>jZ(C.isObject(t)?t:{address:t,family:e}),SZ={request(t,e){let i=t.protocol+"//"+t.hostname+":"+(t.port||(t.protocol==="https:"?443:80)),{http2Options:n,headers:a}=t,r=AZ.getSession(i,n),{HTTP2_HEADER_SCHEME:s,HTTP2_HEADER_METHOD:o,HTTP2_HEADER_PATH:l,HTTP2_HEADER_STATUS:u}=Qk.constants,c={[s]:t.protocol.replace(":",""),[o]:t.method,[l]:t.path};C.forEach(a,(d,h)=>{h.charAt(0)!==":"&&(c[h]=d)});let p=r.request(c);return p.once("response",d=>{let h=p;d=Object.assign({},d);let g=d[u];delete d[u],h.headers=d,h.statusCode=+g,e(h)}),p}},OZ=yZ&&function(e){return PZ(async function(n,a,r){let s=G=>C.hasOwnProp(e,G)?e[G]:void 0,o=s("data"),l=s("lookup"),u=s("family"),c=s("httpVersion");c===void 0&&(c=1);let p=s("http2Options"),d=s("responseType"),h=s("responseEncoding"),g=e.method.toUpperCase(),m,f=!1,v,y;if(c=+c,Number.isNaN(c))throw TypeError(`Invalid protocol version: '${e.httpVersion}' is not a number`);if(c!==1&&c!==2)throw TypeError(`Unsupported protocol version '${c}'`);let A=c===2;if(l){let G=nZ(l,x=>C.isArray(x)?x:[x]);l=(x,be,Je)=>{G(x,be,(ye,ni,pi)=>{if(ye)return Je(ye);let xe=C.isArray(ni)?ni.map(gt=>Nk(gt)):[Nk(ni,pi)];be.all?Je(ye,xe):Je(ye,xe[0].address,xe[0].family)})}}let b=new x4.EventEmitter;function O(G){try{b.emit("abort",!G||G.type?new ut(null,e,v):G)}catch(x){console.warn("emit error",x)}}function $(){y&&(clearTimeout(y),y=null)}function N(){let G=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",x=e.transitional||Kc;return e.timeoutErrorMessage&&(G=e.timeoutErrorMessage),new T(G,x.clarifyTimeoutError?T.ETIMEDOUT:T.ECONNABORTED,e,v)}b.once("abort",a);let X=()=>{$(),e.cancelToken&&e.cancelToken.unsubscribe(O),e.signal&&e.signal.removeEventListener("abort",O),b.removeAllListeners()};(e.cancelToken||e.signal)&&(e.cancelToken&&e.cancelToken.subscribe(O),e.signal&&(e.signal.aborted?O():e.signal.addEventListener("abort",O))),r((G,x)=>{if(m=!0,$(),x){f=!0,X();return}let{data:be}=G;if(be instanceof Vi.Readable||be instanceof Vi.Duplex){let Je=Vi.finished(be,()=>{Je(),X()})}else X()});let F=Av(e.baseURL,e.url,e.allowAbsoluteUrls),k=new URL(F,Qe.hasBrowserEnv?Qe.origin:void 0),Q=k.protocol||Dk[0];if(Q==="data:"){if(e.maxContentLength>-1){let x=String(e.url||F||"");if(mq(x)>e.maxContentLength)return a(new T("maxContentLength size of "+e.maxContentLength+" exceeded",T.ERR_BAD_RESPONSE,e))}let G;if(g!=="GET")return Vr(n,a,{status:405,statusText:"method not allowed",headers:{},config:e});try{G=Q3(e.url,d==="blob",{Blob:e.env&&e.env.Blob})}catch(x){throw T.from(x,T.ERR_BAD_REQUEST,e)}return d==="text"?(G=G.toString(h),(!h||h==="utf8")&&(G=C.stripBOM(G))):d==="stream"&&(G=Vi.Readable.from(G)),Vr(n,a,{data:G,status:200,statusText:"OK",headers:new ti,config:e})}if(Dk.indexOf(Q)===-1)return a(new T("Unsupported protocol "+Q,T.ERR_BAD_REQUEST,e));let Z=ti.from(e.headers).normalize();Z.set("User-Agent","axios/"+Uo,!1);let{onUploadProgress:ie,onDownloadProgress:se}=e,De=e.maxRate,S,R;if(C.isSpecCompliantForm(o)){let G=Z.getContentType(/boundary=([-_\w\d]{10,70})/i);o=iZ(o,x=>{Z.set(x)},{tag:`axios-${Uo}-boundary`,boundary:G&&G[1]||void 0})}else if(C.isFormData(o)&&C.isFunction(o.getHeaders)&&o.getHeaders!==Object.prototype.getHeaders){if(wZ(Z,o.getHeaders(),s("formDataHeaderPolicy")),!Z.hasContentLength())try{let G=await mv.promisify(o.getLength).call(o);Number.isFinite(G)&&G>=0&&Z.setContentLength(G)}catch{}}else if(C.isBlob(o)||C.isFile(o))o.size&&Z.setContentType(o.type||"application/octet-stream"),Z.setContentLength(o.size||0),o=Vi.Readable.from(hq(o));else if(o&&!C.isStream(o)){if(!Buffer.isBuffer(o))if(C.isArrayBuffer(o))o=Buffer.from(new Uint8Array(o));else if(C.isString(o))o=Buffer.from(o,"utf-8");else return a(new T("Data after transformation must be a string, an ArrayBuffer, a Buffer, or a Stream",T.ERR_BAD_REQUEST,e));if(Z.setContentLength(o.length,!1),e.maxBodyLength>-1&&o.length>e.maxBodyLength)return a(new T("Request body larger than maxBodyLength limit",T.ERR_BAD_REQUEST,e))}let Ae=C.toFiniteNumber(Z.getContentLength());C.isArray(De)?(S=De[0],R=De[1]):S=R=De,o&&(ie||S)&&(C.isStream(o)||(o=Vi.Readable.from(o,{objectMode:!1})),o=Vi.pipeline([o,new Uc({maxRate:C.toFiniteNumber(S)})],C.noop),ie&&o.on("progress",$k(o,Lc(Ae,Zr(Wc(ie),!1,3)))));let Se,I=s("auth");if(I){let G=I.username||"",x=I.password||"";Se=G+":"+x}if(!Se&&k.username){let G=Gk(k.username),x=Gk(k.password);Se=G+":"+x}Se&&Z.delete("authorization");let ei;try{ei=vv(k.pathname+k.search,e.params,e.paramsSerializer).replace(/^\?/,"")}catch(G){let x=new Error(G.message);return x.config=e,x.url=e.url,x.exists=!0,a(x)}Z.set("Accept-Encoding","gzip, compress, deflate"+(Rk?", br":""),!1);let Re=Object.assign(Object.create(null),{path:ei,method:g,headers:wv(Z),agents:{http:e.httpAgent,https:e.httpsAgent},auth:Se,protocol:Q,family:u,beforeRedirect:bZ,beforeRedirects:Object.create(null),http2Options:p});if(!C.isUndefined(l)&&(Re.lookup=l),e.socketPath){if(typeof e.socketPath!="string")return a(new T("socketPath must be a string",T.ERR_BAD_OPTION_VALUE,e));if(e.allowedSocketPaths!=null){let G=Array.isArray(e.allowedSocketPaths)?e.allowedSocketPaths:[e.allowedSocketPaths],x=Sk.resolve(e.socketPath);if(!G.some(Je=>typeof Je=="string"&&Sk.resolve(Je)===x))return a(new T(`socketPath "${e.socketPath}" is not permitted by allowedSocketPaths`,T.ERR_BAD_OPTION_VALUE,e))}Re.socketPath=e.socketPath}else Re.hostname=k.hostname.startsWith("[")?k.hostname.slice(1,-1):k.hostname,Re.port=k.port,vq(Re,e.proxy,Q+"//"+k.hostname+(k.port?":"+k.port:"")+Re.path,!1,e.httpsAgent);let Me,Oi=!1,vi=fq.test(Re.protocol);if(Re.agent==null&&(Re.agent=vi?e.httpsAgent:e.httpAgent),A)Me=SZ;else{let G=s("transport");if(G)Me=G;else if(e.maxRedirects===0)Me=vi?S4:j4,Oi=!0;else{e.maxRedirects&&(Re.maxRedirects=e.maxRedirects);let x=s("beforeRedirect");x&&(Re.beforeRedirects.config=x),Me=vi?mZ:gZ}}e.maxBodyLength>-1?Re.maxBodyLength=e.maxBodyLength:Re.maxBodyLength=1/0,Re.insecureHTTPParser=!!s("insecureHTTPParser"),v=Me.request(Re,function(x){if($(),v.destroyed)return;let be=[x],Je=C.toFiniteNumber(x.headers["content-length"]);if(se||R){let xe=new Uc({maxRate:C.toFiniteNumber(R)});se&&xe.on("progress",$k(xe,Lc(Je,Zr(Wc(se),!0,3)))),be.push(xe)}let ye=x,ni=x.req||v;if(e.decompress!==!1&&x.headers["content-encoding"])switch((g==="HEAD"||x.statusCode===204)&&delete x.headers["content-encoding"],(x.headers["content-encoding"]||"").toLowerCase()){case"gzip":case"x-gzip":case"compress":case"x-compress":be.push(Dt.createUnzip(Hk)),delete x.headers["content-encoding"];break;case"deflate":be.push(new pv),be.push(Dt.createUnzip(Hk)),delete x.headers["content-encoding"];break;case"br":Rk&&(be.push(Dt.createBrotliDecompress(hZ)),delete x.headers["content-encoding"])}ye=be.length>1?Vi.pipeline(be,C.noop):be[0];let pi={status:x.statusCode,statusText:x.statusMessage,headers:new ti(x.headers),config:e,request:ni};if(d==="stream"){if(e.maxContentLength>-1){let xe=e.maxContentLength,gt=ye;async function*wn(){let Ge=0;for await(let Ya of gt){if(Ge+=Ya.length,Ge>xe)throw new T("maxContentLength size of "+xe+" exceeded",T.ERR_BAD_RESPONSE,e,ni);yield Ya}}ye=Vi.Readable.from(wn(),{objectMode:!1})}pi.data=ye,Vr(n,a,pi)}else{let xe=[],gt=0;ye.on("data",function(Ge){xe.push(Ge),gt+=Ge.length,e.maxContentLength>-1&>>e.maxContentLength&&(f=!0,ye.destroy(),O(new T("maxContentLength size of "+e.maxContentLength+" exceeded",T.ERR_BAD_RESPONSE,e,ni)))}),ye.on("aborted",function(){if(f)return;let Ge=new T("stream has been aborted",T.ERR_BAD_RESPONSE,e,ni,pi);ye.destroy(Ge),a(Ge)}),ye.on("error",function(Ge){f||a(T.from(Ge,null,e,ni,pi))}),ye.on("end",function(){try{let Ge=xe.length===1?xe[0]:Buffer.concat(xe);d!=="arraybuffer"&&(Ge=Ge.toString(h),(!h||h==="utf8")&&(Ge=C.stripBOM(Ge))),pi.data=Ge}catch(Ge){return a(T.from(Ge,null,e,pi.request,pi))}Vr(n,a,pi)})}b.once("abort",xe=>{ye.destroyed||(ye.emit("error",xe),ye.destroy())})}),b.once("abort",G=>{v.close?v.close():v.destroy(G)}),v.on("error",function(x){a(T.from(x,null,e,v))});let nn=new Set;if(v.on("socket",function(x){x.setKeepAlive(!0,1e3*60),x[Ik]||(x.on("error",function(Je){let ye=x[Ic];ye&&!ye.destroyed&&ye.destroy(Je)}),x[Ik]=!0),x[Ic]=v,nn.add(x)}),v.once("close",function(){$();for(let x of nn)x[Ic]===v&&(x[Ic]=null);nn.clear()}),e.timeout){let G=parseInt(e.timeout,10);if(Number.isNaN(G)){O(new T("error trying to parse `config.timeout` to int",T.ERR_BAD_OPTION_VALUE,e,v));return}let x=function(){m||O(N())};Oi&&G>0&&(y=setTimeout(x,G)),v.setTimeout(G,x)}else v.setTimeout(0);if(C.isStream(o)){let G=!1,x=!1;o.on("end",()=>{G=!0}),o.once("error",Je=>{x=!0,v.destroy(Je)}),o.on("close",()=>{!G&&!x&&O(new ut("Request stream has been aborted",e,v))});let be=o;if(e.maxBodyLength>-1&&e.maxRedirects===0){let Je=e.maxBodyLength,ye=0;be=Vi.pipeline([o,new Vi.Transform({transform(ni,pi,xe){if(ye+=ni.length,ye>Je)return xe(new T("Request body larger than maxBodyLength limit",T.ERR_BAD_REQUEST,e,v));xe(null,ni)}})],C.noop),be.on("error",ni=>{v.destroyed||v.destroy(ni)})}be.pipe(v)}else o&&v.write(o),v.end()})},xZ=Qe.hasStandardBrowserEnv?((t,e)=>i=>(i=new URL(i,Qe.origin),t.protocol===i.protocol&&t.host===i.host&&(e||t.port===i.port)))(new URL(Qe.origin),Qe.navigator&&/(msie|trident)/i.test(Qe.navigator.userAgent)):()=>!0,TZ=Qe.hasStandardBrowserEnv?{write(t,e,i,n,a,r,s){if(typeof document>"u")return;let o=[`${t}=${encodeURIComponent(e)}`];C.isNumber(i)&&o.push(`expires=${new Date(i).toUTCString()}`),C.isString(n)&&o.push(`path=${n}`),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 i=0;it instanceof ti?{...t}:t;function Ia(t,e){e=e||{};let i=Object.create(null);Object.defineProperty(i,"hasOwnProperty",{__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});function n(u,c,p,d){return C.isPlainObject(u)&&C.isPlainObject(c)?C.merge.call({caseless:d},u,c):C.isPlainObject(c)?C.merge({},c):C.isArray(c)?c.slice():c}function a(u,c,p,d){if(C.isUndefined(c)){if(!C.isUndefined(u))return n(void 0,u,p,d)}else return n(u,c,p,d)}function r(u,c){if(!C.isUndefined(c))return n(void 0,c)}function s(u,c){if(C.isUndefined(c)){if(!C.isUndefined(u))return n(void 0,u)}else return n(void 0,c)}function o(u,c,p){if(C.hasOwnProp(e,p))return n(u,c);if(C.hasOwnProp(t,p))return n(void 0,u)}let l={url:r,method:r,data:r,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,allowedSocketPaths:s,responseEncoding:s,validateStatus:o,headers:(u,c,p)=>a(Uk(u),Uk(c),p,!0)};return C.forEach(Object.keys({...t,...e}),function(c){if(c==="__proto__"||c==="constructor"||c==="prototype")return;let p=C.hasOwnProp(l,c)?l[c]:a,d=C.hasOwnProp(t,c)?t[c]:void 0,h=C.hasOwnProp(e,c)?e[c]:void 0,g=p(d,h,c);C.isUndefined(g)&&p!==o||(i[c]=g)}),i}var MZ=["content-type","content-length"];function EZ(t,e,i){if(i!=="content-only"){t.set(e);return}Object.entries(e).forEach(([n,a])=>{MZ.includes(n.toLowerCase())&&t.set(n,a)})}var kZ=t=>encodeURIComponent(t).replace(/%([0-9A-F]{2})/gi,(e,i)=>String.fromCharCode(parseInt(i,16))),Cq=t=>{let e=Ia({},t),i=d=>C.hasOwnProp(e,d)?e[d]:void 0,n=i("data"),a=i("withXSRFToken"),r=i("xsrfHeaderName"),s=i("xsrfCookieName"),o=i("headers"),l=i("auth"),u=i("baseURL"),c=i("allowAbsoluteUrls"),p=i("url");if(e.headers=o=ti.from(o),e.url=vv(Av(u,p,c),t.params,t.paramsSerializer),l&&o.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?kZ(l.password):""))),C.isFormData(n)&&(Qe.hasStandardBrowserEnv||Qe.hasStandardBrowserWebWorkerEnv?o.setContentType(void 0):C.isFunction(n.getHeaders)&&EZ(o,n.getHeaders(),i("formDataHeaderPolicy"))),Qe.hasStandardBrowserEnv&&(C.isFunction(a)&&(a=a(e)),a===!0||a==null&&xZ(e.url))){let h=r&&s&&TZ.read(s);h&&o.set(r,h)}return e},qZ=typeof XMLHttpRequest<"u",_Z=qZ&&function(t){return new Promise(function(i,n){let a=Cq(t),r=a.data,s=ti.from(a.headers).normalize(),{responseType:o,onUploadProgress:l,onDownloadProgress:u}=a,c,p,d,h,g;function m(){h&&h(),g&&g(),a.cancelToken&&a.cancelToken.unsubscribe(c),a.signal&&a.signal.removeEventListener("abort",c)}let f=new XMLHttpRequest;f.open(a.method.toUpperCase(),a.url,!0),f.timeout=a.timeout;function v(){if(!f)return;let A=ti.from("getAllResponseHeaders"in f&&f.getAllResponseHeaders()),O={data:!o||o==="text"||o==="json"?f.responseText:f.response,status:f.status,statusText:f.statusText,headers:A,config:t,request:f};Vr(function(N){i(N),m()},function(N){n(N),m()},O),f=null}"onloadend"in f?f.onloadend=v:f.onreadystatechange=function(){!f||f.readyState!==4||f.status===0&&!(f.responseURL&&f.responseURL.startsWith("file:"))||setTimeout(v)},f.onabort=function(){f&&(n(new T("Request aborted",T.ECONNABORTED,t,f)),m(),f=null)},f.onerror=function(b){let O=b&&b.message?b.message:"Network Error",$=new T(O,T.ERR_NETWORK,t,f);$.event=b||null,n($),m(),f=null},f.ontimeout=function(){let b=a.timeout?"timeout of "+a.timeout+"ms exceeded":"timeout exceeded",O=a.transitional||Kc;a.timeoutErrorMessage&&(b=a.timeoutErrorMessage),n(new T(b,O.clarifyTimeoutError?T.ETIMEDOUT:T.ECONNABORTED,t,f)),m(),f=null},r===void 0&&s.setContentType(null),"setRequestHeader"in f&&C.forEach(wv(s),function(b,O){f.setRequestHeader(O,b)}),C.isUndefined(a.withCredentials)||(f.withCredentials=!!a.withCredentials),o&&o!=="json"&&(f.responseType=a.responseType),u&&([d,g]=Zr(u,!0),f.addEventListener("progress",d)),l&&f.upload&&([p,h]=Zr(l),f.upload.addEventListener("progress",p),f.upload.addEventListener("loadend",h)),(a.cancelToken||a.signal)&&(c=A=>{f&&(n(!A||A.type?new ut(null,t,f):A),f.abort(),m(),f=null)},a.cancelToken&&a.cancelToken.subscribe(c),a.signal&&(a.signal.aborted?c():a.signal.addEventListener("abort",c)));let y=dq(a.url);if(y&&!Qe.protocols.includes(y)){n(new T("Unsupported protocol "+y+":",T.ERR_BAD_REQUEST,t));return}f.send(r||null)})},HZ=(t,e)=>{if(t=t?t.filter(Boolean):[],!e&&!t.length)return;let i=new AbortController,n=!1,a=function(l){if(!n){n=!0,s();let u=l instanceof Error?l:this.reason;i.abort(u instanceof T?u:new ut(u instanceof Error?u.message:u))}},r=e&&setTimeout(()=>{r=null,a(new T(`timeout of ${e}ms exceeded`,T.ETIMEDOUT))},e),s=()=>{t&&(r&&clearTimeout(r),r=null,t.forEach(l=>{l.unsubscribe?l.unsubscribe(a):l.removeEventListener("abort",a)}),t=null)};t.forEach(l=>l.addEventListener("abort",a));let{signal:o}=i;return o.unsubscribe=()=>C.asap(s),o},RZ=function*(t,e){let i=t.byteLength;if(i{let a=IZ(t,e),r=0,s,o=l=>{s||(s=!0,n&&n(l))};return new ReadableStream({async pull(l){try{let{done:u,value:c}=await a.next();if(u){o(),l.close();return}let p=c.byteLength;if(i){let d=r+=p;i(d)}l.enqueue(new Uint8Array(c))}catch(u){throw o(u),u}},cancel(l){return o(l),a.return()}},{highWaterMark:2})},Wk=64*1024,{isFunction:zc}=C,Bk=(t,...e)=>{try{return!!t(...e)}catch{return!1}},DZ=t=>{let e=C.global!==void 0&&C.global!==null?C.global:globalThis,{ReadableStream:i,TextEncoder:n}=e;t=C.merge.call({skipUndefined:!0},{Request:e.Request,Response:e.Response},t);let{fetch:a,Request:r,Response:s}=t,o=a?zc(a):typeof fetch=="function",l=zc(r),u=zc(s);if(!o)return!1;let c=o&&zc(i),p=o&&(typeof n=="function"?(v=>y=>v.encode(y))(new n):async v=>new Uint8Array(await new r(v).arrayBuffer())),d=l&&c&&Bk(()=>{let v=!1,y=new r(Qe.origin,{body:new i,method:"POST",get duplex(){return v=!0,"half"}}),A=y.headers.has("Content-Type");return y.body!=null&&y.body.cancel(),v&&!A}),h=u&&c&&Bk(()=>C.isReadableStream(new s("").body)),g={stream:h&&(v=>v.body)};o&&["text","arrayBuffer","blob","formData","stream"].forEach(v=>{!g[v]&&(g[v]=(y,A)=>{let b=y&&y[v];if(b)return b.call(y);throw new T(`Response type '${v}' is not supported`,T.ERR_NOT_SUPPORT,A)})});let m=async v=>{if(v==null)return 0;if(C.isBlob(v))return v.size;if(C.isSpecCompliantForm(v))return(await new r(Qe.origin,{method:"POST",body:v}).arrayBuffer()).byteLength;if(C.isArrayBufferView(v)||C.isArrayBuffer(v))return v.byteLength;if(C.isURLSearchParams(v)&&(v=v+""),C.isString(v))return(await p(v)).byteLength},f=async(v,y)=>{let A=C.toFiniteNumber(v.getContentLength());return A??m(y)};return async v=>{let{url:y,method:A,data:b,signal:O,cancelToken:$,timeout:N,onDownloadProgress:X,onUploadProgress:F,responseType:k,headers:Q,withCredentials:Z="same-origin",fetchOptions:ie,maxContentLength:se,maxBodyLength:De}=Cq(v),S=C.isNumber(se)&&se>-1,R=C.isNumber(De)&&De>-1,Ae=a||fetch;k=k?(k+"").toLowerCase():"text";let Se=HZ([O,$&&$.toAbortSignal()],N),I=null,ei=Se&&Se.unsubscribe&&(()=>{Se.unsubscribe()}),Re;try{if(S&&typeof y=="string"&&y.startsWith("data:")&&mq(y)>se)throw new T("maxContentLength size of "+se+" exceeded",T.ERR_BAD_RESPONSE,v,I);if(R&&A!=="get"&&A!=="head"){let x=await f(Q,b);if(typeof x=="number"&&isFinite(x)&&x>De)throw new T("Request body larger than maxBodyLength limit",T.ERR_BAD_REQUEST,v,I)}if(F&&d&&A!=="get"&&A!=="head"&&(Re=await f(Q,b))!==0){let x=new r(y,{method:"POST",body:b,duplex:"half"}),be;if(C.isFormData(b)&&(be=x.headers.get("content-type"))&&Q.setContentType(be),x.body){let[Je,ye]=Lc(Re,Zr(Wc(F)));b=Lk(x.body,Wk,Je,ye)}}C.isString(Z)||(Z=Z?"include":"omit");let Me=l&&"credentials"in r.prototype;if(C.isFormData(b)){let x=Q.getContentType();x&&/^multipart\/form-data/i.test(x)&&!/boundary=/i.test(x)&&Q.delete("content-type")}Q.set("User-Agent","axios/"+Uo,!1);let Oi={...ie,signal:Se,method:A.toUpperCase(),headers:wv(Q.normalize()),body:b,duplex:"half",credentials:Me?Z:void 0};I=l&&new r(y,Oi);let vi=await(l?Ae(I,ie):Ae(y,Oi));if(S){let x=C.toFiniteNumber(vi.headers.get("content-length"));if(x!=null&&x>se)throw new T("maxContentLength size of "+se+" exceeded",T.ERR_BAD_RESPONSE,v,I)}let nn=h&&(k==="stream"||k==="response");if(h&&vi.body&&(X||S||nn&&ei)){let x={};["status","statusText","headers"].forEach(xe=>{x[xe]=vi[xe]});let be=C.toFiniteNumber(vi.headers.get("content-length")),[Je,ye]=X&&Lc(be,Zr(Wc(X),!0))||[],ni=0,pi=xe=>{if(S&&(ni=xe,ni>se))throw new T("maxContentLength size of "+se+" exceeded",T.ERR_BAD_RESPONSE,v,I);Je&&Je(xe)};vi=new s(Lk(vi.body,Wk,pi,()=>{ye&&ye(),ei&&ei()}),x)}k=k||"text";let G=await g[C.findKey(g,k)||"text"](vi,v);if(S&&!h&&!nn){let x;if(G!=null&&(typeof G.byteLength=="number"?x=G.byteLength:typeof G.size=="number"?x=G.size:typeof G=="string"&&(x=typeof n=="function"?new n().encode(G).byteLength:G.length)),typeof x=="number"&&x>se)throw new T("maxContentLength size of "+se+" exceeded",T.ERR_BAD_RESPONSE,v,I)}return!nn&&ei&&ei(),await new Promise((x,be)=>{Vr(x,be,{data:G,headers:ti.from(vi.headers),status:vi.status,statusText:vi.statusText,config:v,request:I})})}catch(Me){if(ei&&ei(),Se&&Se.aborted&&Se.reason instanceof T){let Oi=Se.reason;throw Oi.config=v,I&&(Oi.request=I),Me!==Oi&&(Oi.cause=Me),Oi}throw Me&&Me.name==="TypeError"&&/Load failed|fetch/i.test(Me.message)?Object.assign(new T("Network Error",T.ERR_NETWORK,v,I,Me&&Me.response),{cause:Me.cause||Me}):T.from(Me,Me&&Me.code,v,I,Me&&Me.response)}}},GZ=new Map,Aq=t=>{let e=t&&t.env||{},{fetch:i,Request:n,Response:a}=e,r=[n,a,i],s=r.length,o=s,l,u,c=GZ;for(;o--;)l=r[o],u=c.get(l),u===void 0&&c.set(l,u=o?new Map:DZ(e)),c=u;return u};Aq();var bv={http:OZ,xhr:_Z,fetch:{get:Aq}};C.forEach(bv,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{__proto__:null,value:e})}catch{}Object.defineProperty(t,"adapterName",{__proto__:null,value:e})}});var Fk=t=>`- ${t}`,$Z=t=>C.isFunction(t)||t===null||t===!1;function NZ(t,e){t=C.isArray(t)?t:[t];let{length:i}=t,n,a,r={};for(let s=0;s`adapter ${l} `+(u===!1?"is not supported by the environment":"is not available in the build")),o=i?s.length>1?`since : +`+s.map(Fk).join(` +`):" "+Fk(s[0]):"as no adapter specified";throw new T("There is no suitable adapter to dispatch the request "+o,"ERR_NOT_SUPPORT")}return a}var bq={getAdapter:NZ,adapters:bv};function av(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new ut(null,t)}function Vk(t){return av(t),t.headers=ti.from(t.headers),t.data=nv.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),bq.getAdapter(t.adapter||Vo.adapter,t)(t).then(function(n){av(t),t.response=n;try{n.data=nv.call(t,t.transformResponse,n)}finally{delete t.response}return n.headers=ti.from(n.headers),n},function(n){if(!pq(n)&&(av(t),n&&n.response)){t.response=n.response;try{n.response.data=nv.call(t,t.transformResponse,n.response)}finally{delete t.response}n.response.headers=ti.from(n.response.headers)}return Promise.reject(n)})}var Qc={};["object","boolean","number","function","string","symbol"].forEach((t,e)=>{Qc[t]=function(n){return typeof n===t||"a"+(e<1?"n ":" ")+t}});var Jk={};Qc.transitional=function(e,i,n){function a(r,s){return"[Axios v"+Uo+"] Transitional option '"+r+"'"+s+(n?". "+n:"")}return(r,s,o)=>{if(e===!1)throw new T(a(s," has been removed"+(i?" in "+i:"")),T.ERR_DEPRECATED);return i&&!Jk[s]&&(Jk[s]=!0,console.warn(a(s," has been deprecated since v"+i+" and will be removed in the near future"))),e?e(r,s,o):!0}};Qc.spelling=function(e){return(i,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};function UZ(t,e,i){if(typeof t!="object")throw new T("options must be an object",T.ERR_BAD_OPTION_VALUE);let n=Object.keys(t),a=n.length;for(;a-- >0;){let r=n[a],s=Object.prototype.hasOwnProperty.call(e,r)?e[r]:void 0;if(s){let o=t[r],l=o===void 0||s(o,r,t);if(l!==!0)throw new T("option "+r+" must be "+l,T.ERR_BAD_OPTION_VALUE);continue}if(i!==!0)throw new T("Unknown option "+r,T.ERR_BAD_OPTION)}}var $c={assertOptions:UZ,validators:Qc},gn=$c.validators,lt=class{constructor(e){this.defaults=e||{},this.interceptors={request:new Nc,response:new Nc}}async request(e,i){try{return await this._request(e,i)}catch(n){if(n instanceof Error){let a={};Error.captureStackTrace?Error.captureStackTrace(a):a=new Error;let r=(()=>{if(!a.stack)return"";let s=a.stack.indexOf(` `);return s===-1?"":a.stack.slice(s+1)})();try{if(!n.stack)n.stack=r;else if(r){let s=r.indexOf(` `),o=s===-1?-1:r.indexOf(` `,s+1),l=o===-1?"":r.slice(o+1);String(n.stack).endsWith(l)||(n.stack+=` -`+r)}}catch{}}throw n}}_request(e,i){typeof e=="string"?(i=i||{},i.url=e):i=e||{},i=Ia(this.defaults,i);let{transitional:n,paramsSerializer:a,headers:r}=i;n!==void 0&&$c.assertOptions(n,{silentJSONParsing:gn.transitional(gn.boolean),forcedJSONParsing:gn.transitional(gn.boolean),clarifyTimeoutError:gn.transitional(gn.boolean),legacyInterceptorReqResOrdering:gn.transitional(gn.boolean)},!1),a!=null&&(C.isFunction(a)?i.paramsSerializer={serialize:a}:$c.assertOptions(a,{encode:gn.function,serialize:gn.function},!0)),i.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?i.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:i.allowAbsoluteUrls=!0),$c.assertOptions(i,{baseUrl:gn.spelling("baseURL"),withXsrfToken:gn.spelling("withXSRFToken")},!0),i.method=(i.method||this.defaults.method||"get").toLowerCase();let s=r&&C.merge(r.common,r[i.method]);r&&C.forEach(["delete","get","head","post","put","patch","query","common"],g=>{delete r[g]}),i.headers=ti.concat(s,r);let o=[],l=!0;this.interceptors.request.forEach(function(m){if(typeof m.runWhen=="function"&&m.runWhen(i)===!1)return;l=l&&m.synchronous;let f=i.transitional||Kc;f&&f.legacyInterceptorReqResOrdering?o.unshift(m.fulfilled,m.rejected):o.push(m.fulfilled,m.rejected)});let u=[];this.interceptors.response.forEach(function(m){u.push(m.fulfilled,m.rejected)});let c,p=0,d;if(!l){let g=[Fk.bind(this),void 0];for(g.unshift(...o),g.push(...u),d=g.length,c=Promise.resolve(i);p{if(!n._listeners)return;let r=n._listeners.length;for(;r-- >0;)n._listeners[r](a);n._listeners=null}),this.promise.then=a=>{let r,s=new Promise(o=>{n.subscribe(o),r=o}).then(a);return s.cancel=function(){n.unsubscribe(r)},s},e(function(r,s,o){n.reason||(n.reason=new ut(r,s,o),i(n.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 i=this._listeners.indexOf(e);i!==-1&&this._listeners.splice(i,1)}toAbortSignal(){let e=new AbortController,i=n=>{e.abort(n)};return this.subscribe(i),e.signal.unsubscribe=()=>this.unsubscribe(i),e.signal}static source(){let e;return{token:new t(function(a){e=a}),cancel:e}}};function UZ(t){return function(i){return t.apply(null,i)}}function LZ(t){return C.isObject(t)&&t.isAxiosError===!0}var gv={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(gv).forEach(([t,e])=>{gv[e]=t});function bq(t){let e=new lt(t),i=Qk(lt.prototype.request,e);return C.extend(i,lt.prototype,e,{allOwnKeys:!0}),C.extend(i,e,null,{allOwnKeys:!0}),i.create=function(a){return bq(Ia(t,a))},i}var ai=bq(Vo);ai.Axios=lt;ai.CanceledError=ut;ai.CancelToken=hv;ai.isCancel=cq;ai.VERSION=Uo;ai.toFormData=Zc;ai.AxiosError=T;ai.Cancel=ai.CanceledError;ai.all=function(e){return Promise.all(e)};ai.spread=UZ;ai.isAxiosError=LZ;ai.mergeConfig=Ia;ai.AxiosHeaders=ti;ai.formToJSON=t=>uq(C.isHTMLForm(t)?new FormData(t):t);ai.getAdapter=Aq.getAdapter;ai.HttpStatusCode=gv;ai.default=ai;yq.exports=ai});var Sq=w((coe,jq)=>{jq.exports=require("util").inspect});var Yo=w((poe,Bq)=>{var kv=typeof Map=="function"&&Map.prototype,yv=Object.getOwnPropertyDescriptor&&kv?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,Xc=kv&&yv&&typeof yv.get=="function"?yv.get:null,Oq=kv&&Map.prototype.forEach,qv=typeof Set=="function"&&Set.prototype,Pv=Object.getOwnPropertyDescriptor&&qv?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,ep=qv&&Pv&&typeof Pv.get=="function"?Pv.get:null,xq=qv&&Set.prototype.forEach,WZ=typeof WeakMap=="function"&&WeakMap.prototype,Zo=WZ?WeakMap.prototype.has:null,BZ=typeof WeakSet=="function"&&WeakSet.prototype,Ko=BZ?WeakSet.prototype.has:null,FZ=typeof WeakRef=="function"&&WeakRef.prototype,Tq=FZ?WeakRef.prototype.deref:null,VZ=Boolean.prototype.valueOf,JZ=Object.prototype.toString,ZZ=Function.prototype.toString,KZ=String.prototype.match,_v=String.prototype.slice,Gt=String.prototype.replace,QZ=String.prototype.toUpperCase,Mq=String.prototype.toLowerCase,Dq=RegExp.prototype.test,Eq=Array.prototype.concat,Nn=Array.prototype.join,YZ=Array.prototype.slice,kq=Math.floor,Ov=typeof BigInt=="function"?BigInt.prototype.valueOf:null,jv=Object.getOwnPropertySymbols,xv=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,Qr=typeof Symbol=="function"&&typeof Symbol.iterator=="object",Qo=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===Qr||!0)?Symbol.toStringTag:null,Gq=Object.prototype.propertyIsEnumerable,qq=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(t){return t.__proto__}:null);function _q(t,e){if(t===1/0||t===-1/0||t!==t||t&&t>-1e3&&t<1e3||Dq.call(/e/,e))return e;var i=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof t=="number"){var n=t<0?-kq(-t):kq(t);if(n!==t){var a=String(n),r=_v.call(e,a.length+1);return Gt.call(a,i,"$&_")+"."+Gt.call(Gt.call(r,/([0-9]{3})/g,"$&_"),/_$/,"")}}return Gt.call(e,i,"$&_")}var Tv=Sq(),Hq=Tv.custom,Rq=Uq(Hq)?Hq:null,$q={__proto__:null,double:'"',single:"'"},XZ={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};Bq.exports=function t(e,i,n,a){var r=i||{};if(ct(r,"quoteStyle")&&!ct($q,r.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(ct(r,"maxStringLength")&&(typeof r.maxStringLength=="number"?r.maxStringLength<0&&r.maxStringLength!==1/0:r.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var s=ct(r,"customInspect")?r.customInspect:!0;if(typeof s!="boolean"&&s!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(ct(r,"indent")&&r.indent!==null&&r.indent!==" "&&!(parseInt(r.indent,10)===r.indent&&r.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(ct(r,"numericSeparator")&&typeof r.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var o=r.numericSeparator;if(typeof e>"u")return"undefined";if(e===null)return"null";if(typeof e=="boolean")return e?"true":"false";if(typeof e=="string")return Wq(e,r);if(typeof e=="number"){if(e===0)return 1/0/e>0?"0":"-0";var l=String(e);return o?_q(e,l):l}if(typeof e=="bigint"){var u=String(e)+"n";return o?_q(e,u):u}var c=typeof r.depth>"u"?5:r.depth;if(typeof n>"u"&&(n=0),n>=c&&c>0&&typeof e=="object")return Mv(e)?"[Array]":"[Object]";var p=w5(r,n);if(typeof a>"u")a=[];else if(Lq(a,e)>=0)return"[Circular]";function d(ie,se,De){if(se&&(a=YZ.call(a),a.push(se)),De){var S={depth:r.depth};return ct(r,"quoteStyle")&&(S.quoteStyle=r.quoteStyle),t(ie,S,n+1,a)}return t(ie,r,n+1,a)}if(typeof e=="function"&&!Iq(e)){var h=l5(e),g=Yc(e,d);return"[Function"+(h?": "+h:" (anonymous)")+"]"+(g.length>0?" { "+Nn.call(g,", ")+" }":"")}if(Uq(e)){var m=Qr?Gt.call(String(e),/^(Symbol\(.*\))_[^)]*$/,"$1"):xv.call(e);return typeof e=="object"&&!Qr?Jo(m):m}if(g5(e)){for(var f="<"+Mq.call(String(e.nodeName)),v=e.attributes||[],y=0;y",f}if(Mv(e)){if(e.length===0)return"[]";var A=Yc(e,d);return p&&!f5(A)?"["+Ev(A,p)+"]":"[ "+Nn.call(A,", ")+" ]"}if(n5(e)){var b=Yc(e,d);return!("cause"in Error.prototype)&&"cause"in e&&!Gq.call(e,"cause")?"{ ["+String(e)+"] "+Nn.call(Eq.call("[cause]: "+d(e.cause),b),", ")+" }":b.length===0?"["+String(e)+"]":"{ ["+String(e)+"] "+Nn.call(b,", ")+" }"}if(typeof e=="object"&&s){if(Rq&&typeof e[Rq]=="function"&&Tv)return Tv(e,{depth:c-n});if(s!=="symbol"&&typeof e.inspect=="function")return e.inspect()}if(u5(e)){var O=[];return Oq&&Oq.call(e,function(ie,se){O.push(d(se,e,!0)+" => "+d(ie,e))}),zq("Map",Xc.call(e),O,p)}if(d5(e)){var $=[];return xq&&xq.call(e,function(ie){$.push(d(ie,e))}),zq("Set",ep.call(e),$,p)}if(c5(e))return Sv("WeakMap");if(h5(e))return Sv("WeakSet");if(p5(e))return Sv("WeakRef");if(a5(e))return Jo(d(Number(e)));if(s5(e))return Jo(d(Ov.call(e)));if(r5(e))return Jo(VZ.call(e));if(t5(e))return Jo(d(String(e)));if(typeof window<"u"&&e===window)return"{ [object Window] }";if(typeof globalThis<"u"&&e===globalThis||typeof global<"u"&&e===global)return"{ [object globalThis] }";if(!i5(e)&&!Iq(e)){var N=Yc(e,d),X=qq?qq(e)===Object.prototype:e instanceof Object||e.constructor===Object,F=e instanceof Object?"":"null prototype",k=!X&&Qo&&Object(e)===e&&Qo in e?_v.call($t(e),8,-1):F?"Object":"",Q=X||typeof e.constructor!="function"?"":e.constructor.name?e.constructor.name+" ":"",Z=Q+(k||F?"["+Nn.call(Eq.call([],k||[],F||[]),": ")+"] ":"");return N.length===0?Z+"{}":p?Z+"{"+Ev(N,p)+"}":Z+"{ "+Nn.call(N,", ")+" }"}return String(e)};function Nq(t,e,i){var n=i.quoteStyle||e,a=$q[n];return a+t+a}function e5(t){return Gt.call(String(t),/"/g,""")}function za(t){return!Qo||!(typeof t=="object"&&(Qo in t||typeof t[Qo]<"u"))}function Mv(t){return $t(t)==="[object Array]"&&za(t)}function i5(t){return $t(t)==="[object Date]"&&za(t)}function Iq(t){return $t(t)==="[object RegExp]"&&za(t)}function n5(t){return $t(t)==="[object Error]"&&za(t)}function t5(t){return $t(t)==="[object String]"&&za(t)}function a5(t){return $t(t)==="[object Number]"&&za(t)}function r5(t){return $t(t)==="[object Boolean]"&&za(t)}function Uq(t){if(Qr)return t&&typeof t=="object"&&t instanceof Symbol;if(typeof t=="symbol")return!0;if(!t||typeof t!="object"||!xv)return!1;try{return xv.call(t),!0}catch{}return!1}function s5(t){if(!t||typeof t!="object"||!Ov)return!1;try{return Ov.call(t),!0}catch{}return!1}var o5=Object.prototype.hasOwnProperty||function(t){return t in this};function ct(t,e){return o5.call(t,e)}function $t(t){return JZ.call(t)}function l5(t){if(t.name)return t.name;var e=KZ.call(ZZ.call(t),/^function\s*([\w$]+)/);return e?e[1]:null}function Lq(t,e){if(t.indexOf)return t.indexOf(e);for(var i=0,n=t.length;ie.maxStringLength){var i=t.length-e.maxStringLength,n="... "+i+" more character"+(i>1?"s":"");return Wq(_v.call(t,0,e.maxStringLength),e)+n}var a=XZ[e.quoteStyle||"single"];a.lastIndex=0;var r=Gt.call(Gt.call(t,a,"\\$1"),/[\x00-\x1f]/g,m5);return Nq(r,"single",e)}function m5(t){var e=t.charCodeAt(0),i={8:"b",9:"t",10:"n",12:"f",13:"r"}[e];return i?"\\"+i:"\\x"+(e<16?"0":"")+QZ.call(e.toString(16))}function Jo(t){return"Object("+t+")"}function Sv(t){return t+" { ? }"}function zq(t,e,i,n){var a=n?Ev(i,n):Nn.call(i,", ");return t+" ("+e+") {"+a+"}"}function f5(t){for(var e=0;e=0)return!1;return!0}function w5(t,e){var i;if(t.indent===" ")i=" ";else if(typeof t.indent=="number"&&t.indent>0)i=Nn.call(Array(t.indent+1)," ");else return null;return{base:i,prev:Nn.call(Array(e+1),i)}}function Ev(t,e){if(t.length===0)return"";var i=` +`+r)}}catch{}}throw n}}_request(e,i){typeof e=="string"?(i=i||{},i.url=e):i=e||{},i=Ia(this.defaults,i);let{transitional:n,paramsSerializer:a,headers:r}=i;n!==void 0&&$c.assertOptions(n,{silentJSONParsing:gn.transitional(gn.boolean),forcedJSONParsing:gn.transitional(gn.boolean),clarifyTimeoutError:gn.transitional(gn.boolean),legacyInterceptorReqResOrdering:gn.transitional(gn.boolean)},!1),a!=null&&(C.isFunction(a)?i.paramsSerializer={serialize:a}:$c.assertOptions(a,{encode:gn.function,serialize:gn.function},!0)),i.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?i.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:i.allowAbsoluteUrls=!0),$c.assertOptions(i,{baseUrl:gn.spelling("baseURL"),withXsrfToken:gn.spelling("withXSRFToken")},!0),i.method=(i.method||this.defaults.method||"get").toLowerCase();let s=r&&C.merge(r.common,r[i.method]);r&&C.forEach(["delete","get","head","post","put","patch","query","common"],g=>{delete r[g]}),i.headers=ti.concat(s,r);let o=[],l=!0;this.interceptors.request.forEach(function(m){if(typeof m.runWhen=="function"&&m.runWhen(i)===!1)return;l=l&&m.synchronous;let f=i.transitional||Kc;f&&f.legacyInterceptorReqResOrdering?o.unshift(m.fulfilled,m.rejected):o.push(m.fulfilled,m.rejected)});let u=[];this.interceptors.response.forEach(function(m){u.push(m.fulfilled,m.rejected)});let c,p=0,d;if(!l){let g=[Vk.bind(this),void 0];for(g.unshift(...o),g.push(...u),d=g.length,c=Promise.resolve(i);p{if(!n._listeners)return;let r=n._listeners.length;for(;r-- >0;)n._listeners[r](a);n._listeners=null}),this.promise.then=a=>{let r,s=new Promise(o=>{n.subscribe(o),r=o}).then(a);return s.cancel=function(){n.unsubscribe(r)},s},e(function(r,s,o){n.reason||(n.reason=new ut(r,s,o),i(n.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 i=this._listeners.indexOf(e);i!==-1&&this._listeners.splice(i,1)}toAbortSignal(){let e=new AbortController,i=n=>{e.abort(n)};return this.subscribe(i),e.signal.unsubscribe=()=>this.unsubscribe(i),e.signal}static source(){let e;return{token:new t(function(a){e=a}),cancel:e}}};function LZ(t){return function(i){return t.apply(null,i)}}function WZ(t){return C.isObject(t)&&t.isAxiosError===!0}var gv={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(gv).forEach(([t,e])=>{gv[e]=t});function yq(t){let e=new lt(t),i=Yk(lt.prototype.request,e);return C.extend(i,lt.prototype,e,{allOwnKeys:!0}),C.extend(i,e,null,{allOwnKeys:!0}),i.create=function(a){return yq(Ia(t,a))},i}var ai=yq(Vo);ai.Axios=lt;ai.CanceledError=ut;ai.CancelToken=hv;ai.isCancel=pq;ai.VERSION=Uo;ai.toFormData=Zc;ai.AxiosError=T;ai.Cancel=ai.CanceledError;ai.all=function(e){return Promise.all(e)};ai.spread=LZ;ai.isAxiosError=WZ;ai.mergeConfig=Ia;ai.AxiosHeaders=ti;ai.formToJSON=t=>cq(C.isHTMLForm(t)?new FormData(t):t);ai.getAdapter=bq.getAdapter;ai.HttpStatusCode=gv;ai.default=ai;Pq.exports=ai});var Oq=w((poe,Sq)=>{Sq.exports=require("util").inspect});var Yo=w((doe,Fq)=>{var kv=typeof Map=="function"&&Map.prototype,yv=Object.getOwnPropertyDescriptor&&kv?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,Xc=kv&&yv&&typeof yv.get=="function"?yv.get:null,xq=kv&&Map.prototype.forEach,qv=typeof Set=="function"&&Set.prototype,Pv=Object.getOwnPropertyDescriptor&&qv?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,ep=qv&&Pv&&typeof Pv.get=="function"?Pv.get:null,Tq=qv&&Set.prototype.forEach,BZ=typeof WeakMap=="function"&&WeakMap.prototype,Zo=BZ?WeakMap.prototype.has:null,FZ=typeof WeakSet=="function"&&WeakSet.prototype,Ko=FZ?WeakSet.prototype.has:null,VZ=typeof WeakRef=="function"&&WeakRef.prototype,Mq=VZ?WeakRef.prototype.deref:null,JZ=Boolean.prototype.valueOf,ZZ=Object.prototype.toString,KZ=Function.prototype.toString,QZ=String.prototype.match,_v=String.prototype.slice,Gt=String.prototype.replace,YZ=String.prototype.toUpperCase,Eq=String.prototype.toLowerCase,Gq=RegExp.prototype.test,kq=Array.prototype.concat,Nn=Array.prototype.join,XZ=Array.prototype.slice,qq=Math.floor,Ov=typeof BigInt=="function"?BigInt.prototype.valueOf:null,jv=Object.getOwnPropertySymbols,xv=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,Qr=typeof Symbol=="function"&&typeof Symbol.iterator=="object",Qo=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===Qr||!0)?Symbol.toStringTag:null,$q=Object.prototype.propertyIsEnumerable,_q=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(t){return t.__proto__}:null);function Hq(t,e){if(t===1/0||t===-1/0||t!==t||t&&t>-1e3&&t<1e3||Gq.call(/e/,e))return e;var i=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof t=="number"){var n=t<0?-qq(-t):qq(t);if(n!==t){var a=String(n),r=_v.call(e,a.length+1);return Gt.call(a,i,"$&_")+"."+Gt.call(Gt.call(r,/([0-9]{3})/g,"$&_"),/_$/,"")}}return Gt.call(e,i,"$&_")}var Tv=Oq(),Rq=Tv.custom,Iq=Lq(Rq)?Rq:null,Nq={__proto__:null,double:'"',single:"'"},e5={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};Fq.exports=function t(e,i,n,a){var r=i||{};if(ct(r,"quoteStyle")&&!ct(Nq,r.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(ct(r,"maxStringLength")&&(typeof r.maxStringLength=="number"?r.maxStringLength<0&&r.maxStringLength!==1/0:r.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var s=ct(r,"customInspect")?r.customInspect:!0;if(typeof s!="boolean"&&s!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(ct(r,"indent")&&r.indent!==null&&r.indent!==" "&&!(parseInt(r.indent,10)===r.indent&&r.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(ct(r,"numericSeparator")&&typeof r.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var o=r.numericSeparator;if(typeof e>"u")return"undefined";if(e===null)return"null";if(typeof e=="boolean")return e?"true":"false";if(typeof e=="string")return Bq(e,r);if(typeof e=="number"){if(e===0)return 1/0/e>0?"0":"-0";var l=String(e);return o?Hq(e,l):l}if(typeof e=="bigint"){var u=String(e)+"n";return o?Hq(e,u):u}var c=typeof r.depth>"u"?5:r.depth;if(typeof n>"u"&&(n=0),n>=c&&c>0&&typeof e=="object")return Mv(e)?"[Array]":"[Object]";var p=v5(r,n);if(typeof a>"u")a=[];else if(Wq(a,e)>=0)return"[Circular]";function d(ie,se,De){if(se&&(a=XZ.call(a),a.push(se)),De){var S={depth:r.depth};return ct(r,"quoteStyle")&&(S.quoteStyle=r.quoteStyle),t(ie,S,n+1,a)}return t(ie,r,n+1,a)}if(typeof e=="function"&&!zq(e)){var h=u5(e),g=Yc(e,d);return"[Function"+(h?": "+h:" (anonymous)")+"]"+(g.length>0?" { "+Nn.call(g,", ")+" }":"")}if(Lq(e)){var m=Qr?Gt.call(String(e),/^(Symbol\(.*\))_[^)]*$/,"$1"):xv.call(e);return typeof e=="object"&&!Qr?Jo(m):m}if(m5(e)){for(var f="<"+Eq.call(String(e.nodeName)),v=e.attributes||[],y=0;y",f}if(Mv(e)){if(e.length===0)return"[]";var A=Yc(e,d);return p&&!w5(A)?"["+Ev(A,p)+"]":"[ "+Nn.call(A,", ")+" ]"}if(t5(e)){var b=Yc(e,d);return!("cause"in Error.prototype)&&"cause"in e&&!$q.call(e,"cause")?"{ ["+String(e)+"] "+Nn.call(kq.call("[cause]: "+d(e.cause),b),", ")+" }":b.length===0?"["+String(e)+"]":"{ ["+String(e)+"] "+Nn.call(b,", ")+" }"}if(typeof e=="object"&&s){if(Iq&&typeof e[Iq]=="function"&&Tv)return Tv(e,{depth:c-n});if(s!=="symbol"&&typeof e.inspect=="function")return e.inspect()}if(c5(e)){var O=[];return xq&&xq.call(e,function(ie,se){O.push(d(se,e,!0)+" => "+d(ie,e))}),Dq("Map",Xc.call(e),O,p)}if(h5(e)){var $=[];return Tq&&Tq.call(e,function(ie){$.push(d(ie,e))}),Dq("Set",ep.call(e),$,p)}if(p5(e))return Sv("WeakMap");if(g5(e))return Sv("WeakSet");if(d5(e))return Sv("WeakRef");if(r5(e))return Jo(d(Number(e)));if(o5(e))return Jo(d(Ov.call(e)));if(s5(e))return Jo(JZ.call(e));if(a5(e))return Jo(d(String(e)));if(typeof window<"u"&&e===window)return"{ [object Window] }";if(typeof globalThis<"u"&&e===globalThis||typeof global<"u"&&e===global)return"{ [object globalThis] }";if(!n5(e)&&!zq(e)){var N=Yc(e,d),X=_q?_q(e)===Object.prototype:e instanceof Object||e.constructor===Object,F=e instanceof Object?"":"null prototype",k=!X&&Qo&&Object(e)===e&&Qo in e?_v.call($t(e),8,-1):F?"Object":"",Q=X||typeof e.constructor!="function"?"":e.constructor.name?e.constructor.name+" ":"",Z=Q+(k||F?"["+Nn.call(kq.call([],k||[],F||[]),": ")+"] ":"");return N.length===0?Z+"{}":p?Z+"{"+Ev(N,p)+"}":Z+"{ "+Nn.call(N,", ")+" }"}return String(e)};function Uq(t,e,i){var n=i.quoteStyle||e,a=Nq[n];return a+t+a}function i5(t){return Gt.call(String(t),/"/g,""")}function za(t){return!Qo||!(typeof t=="object"&&(Qo in t||typeof t[Qo]<"u"))}function Mv(t){return $t(t)==="[object Array]"&&za(t)}function n5(t){return $t(t)==="[object Date]"&&za(t)}function zq(t){return $t(t)==="[object RegExp]"&&za(t)}function t5(t){return $t(t)==="[object Error]"&&za(t)}function a5(t){return $t(t)==="[object String]"&&za(t)}function r5(t){return $t(t)==="[object Number]"&&za(t)}function s5(t){return $t(t)==="[object Boolean]"&&za(t)}function Lq(t){if(Qr)return t&&typeof t=="object"&&t instanceof Symbol;if(typeof t=="symbol")return!0;if(!t||typeof t!="object"||!xv)return!1;try{return xv.call(t),!0}catch{}return!1}function o5(t){if(!t||typeof t!="object"||!Ov)return!1;try{return Ov.call(t),!0}catch{}return!1}var l5=Object.prototype.hasOwnProperty||function(t){return t in this};function ct(t,e){return l5.call(t,e)}function $t(t){return ZZ.call(t)}function u5(t){if(t.name)return t.name;var e=QZ.call(KZ.call(t),/^function\s*([\w$]+)/);return e?e[1]:null}function Wq(t,e){if(t.indexOf)return t.indexOf(e);for(var i=0,n=t.length;ie.maxStringLength){var i=t.length-e.maxStringLength,n="... "+i+" more character"+(i>1?"s":"");return Bq(_v.call(t,0,e.maxStringLength),e)+n}var a=e5[e.quoteStyle||"single"];a.lastIndex=0;var r=Gt.call(Gt.call(t,a,"\\$1"),/[\x00-\x1f]/g,f5);return Uq(r,"single",e)}function f5(t){var e=t.charCodeAt(0),i={8:"b",9:"t",10:"n",12:"f",13:"r"}[e];return i?"\\"+i:"\\x"+(e<16?"0":"")+YZ.call(e.toString(16))}function Jo(t){return"Object("+t+")"}function Sv(t){return t+" { ? }"}function Dq(t,e,i,n){var a=n?Ev(i,n):Nn.call(i,", ");return t+" ("+e+") {"+a+"}"}function w5(t){for(var e=0;e=0)return!1;return!0}function v5(t,e){var i;if(t.indent===" ")i=" ";else if(typeof t.indent=="number"&&t.indent>0)i=Nn.call(Array(t.indent+1)," ");else return null;return{base:i,prev:Nn.call(Array(e+1),i)}}function Ev(t,e){if(t.length===0)return"";var i=` `+e.prev+e.base;return i+Nn.call(t,","+i)+` -`+e.prev}function Yc(t,e){var i=Mv(t),n=[];if(i){n.length=t.length;for(var a=0;a{"use strict";var v5=Yo(),C5=It(),ip=function(t,e,i){for(var n=t,a;(a=n.next)!=null;n=a)if(a.key===e)return n.next=a.next,i||(a.next=t.next,t.next=a),a},A5=function(t,e){if(t){var i=ip(t,e);return i&&i.value}},b5=function(t,e,i){var n=ip(t,e);n?n.value=i:t.next={key:e,next:t.next,value:i}},y5=function(t,e){return t?!!ip(t,e):!1},P5=function(t,e){if(t)return ip(t,e,!0)};Fq.exports=function(){var e,i={assert:function(n){if(!i.has(n))throw new C5("Side channel does not contain "+v5(n))},delete:function(n){var a=P5(e,n);return a&&e&&!e.next&&(e=void 0),!!a},get:function(n){return A5(e,n)},has:function(n){return y5(e,n)},set:function(n,a){e||(e={next:void 0}),b5(e,n,a)}};return i}});var Hv=w((hoe,Kq)=>{"use strict";var Jq=ko(),Zq=Pw(),j5=Zq([Jq("%String.prototype.indexOf%")]);Kq.exports=function(e,i){var n=Jq(e,!!i);return typeof n=="function"&&j5(e,".prototype.")>-1?Zq([n]):n}});var Rv=w((goe,Yq)=>{"use strict";var S5=ko(),Xo=Hv(),O5=Yo(),x5=It(),Qq=S5("%Map%",!0),T5=Xo("Map.prototype.get",!0),M5=Xo("Map.prototype.set",!0),E5=Xo("Map.prototype.has",!0),k5=Xo("Map.prototype.delete",!0),q5=Xo("Map.prototype.size",!0);Yq.exports=!!Qq&&function(){var e,i={assert:function(n){if(!i.has(n))throw new x5("Side channel does not contain "+O5(n))},delete:function(n){if(e){var a=k5(e,n);return q5(e)===0&&(e=void 0),a}return!1},get:function(n){if(e)return T5(e,n)},has:function(n){return e?E5(e,n):!1},set:function(n,a){e||(e=new Qq),M5(e,n,a)}};return i}});var e_=w((moe,Xq)=>{"use strict";var _5=ko(),tp=Hv(),H5=Yo(),np=Rv(),R5=It(),Yr=_5("%WeakMap%",!0),I5=tp("WeakMap.prototype.get",!0),z5=tp("WeakMap.prototype.set",!0),D5=tp("WeakMap.prototype.has",!0),G5=tp("WeakMap.prototype.delete",!0);Xq.exports=Yr?function(){var e,i,n={assert:function(a){if(!n.has(a))throw new R5("Side channel does not contain "+H5(a))},delete:function(a){if(Yr&&a&&(typeof a=="object"||typeof a=="function")){if(e)return G5(e,a)}else if(np&&i)return i.delete(a);return!1},get:function(a){return Yr&&a&&(typeof a=="object"||typeof a=="function")&&e?I5(e,a):i&&i.get(a)},has:function(a){return Yr&&a&&(typeof a=="object"||typeof a=="function")&&e?D5(e,a):!!i&&i.has(a)},set:function(a,r){Yr&&a&&(typeof a=="object"||typeof a=="function")?(e||(e=new Yr),z5(e,a,r)):np&&(i||(i=np()),i.set(a,r))}};return n}:np});var Iv=w((foe,i_)=>{"use strict";var $5=It(),N5=Yo(),U5=Vq(),L5=Rv(),W5=e_(),B5=W5||L5||U5;i_.exports=function(){var e,i={assert:function(n){if(!i.has(n))throw new $5("Side channel does not contain "+N5(n))},delete:function(n){return!!e&&e.delete(n)},get:function(n){return e&&e.get(n)},has:function(n){return!!e&&e.has(n)},set:function(n,a){e||(e=B5()),e.set(n,a)}};return i}});var ap=w((woe,n_)=>{"use strict";var F5=String.prototype.replace,V5=/%20/g,zv={RFC1738:"RFC1738",RFC3986:"RFC3986"};n_.exports={default:zv.RFC3986,formatters:{RFC1738:function(t){return F5.call(t,V5,"+")},RFC3986:function(t){return String(t)}},RFC1738:zv.RFC1738,RFC3986:zv.RFC3986}});var Nv=w((voe,t_)=>{"use strict";var J5=ap(),Z5=Iv(),Dv=Object.prototype.hasOwnProperty,Da=Array.isArray,rp=Z5(),Xr=function(e,i){return rp.set(e,i),e},Ga=function(e){return rp.has(e)},el=function(e){return rp.get(e)},$v=function(e,i){rp.set(e,i)},Un=(function(){for(var t=[],e=0;e<256;++e)t[t.length]="%"+((e<16?"0":"")+e.toString(16)).toUpperCase();return t})(),K5=function(e){for(;e.length>1;){var i=e.pop(),n=i.obj[i.prop];if(Da(n)){for(var a=[],r=0;rn.arrayLimit)return Xr(il(e.concat(i),n),a);e[a]=i}else if(e&&typeof e=="object")if(Ga(e)){var r=el(e)+1;e[r]=i,$v(e,r)}else{if(n&&n.strictMerge)return[e,i];(n&&(n.plainObjects||n.allowPrototypes)||!Dv.call(Object.prototype,i))&&(e[i]=!0)}else return[e,i];return e}if(!e||typeof e!="object"){if(Ga(i)){for(var s=Object.keys(i),o=n&&n.plainObjects?{__proto__:null,0:e}:{0:e},l=0;ln.arrayLimit?Xr(il(c,n),c.length-1):c}var p=e;return Da(e)&&!Da(i)&&(p=il(e,n)),Da(e)&&Da(i)?(i.forEach(function(d,h){if(Dv.call(e,h)){var g=e[h];g&&typeof g=="object"&&d&&typeof d=="object"?e[h]=t(g,d,n):e[e.length]=d}else e[h]=d}),e):Object.keys(i).reduce(function(d,h){var g=i[h];if(Dv.call(d,h)?d[h]=t(d[h],g,n):d[h]=g,Ga(i)&&!Ga(d)&&Xr(d,el(i)),Ga(d)){var m=parseInt(h,10);String(m)===h&&m>=0&&m>el(d)&&$v(d,m)}return d},p)},Y5=function(e,i){return Object.keys(i).reduce(function(n,a){return n[a]=i[a],n},e)},X5=function(t,e,i){var n=t.replace(/\+/g," ");if(i==="iso-8859-1")return n.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(n)}catch{return n}},Gv=1024,eK=function(e,i,n,a,r){if(e.length===0)return e;var s=e;if(typeof e=="symbol"?s=Symbol.prototype.toString.call(e):typeof e!="string"&&(s=String(e)),n==="iso-8859-1")return escape(s).replace(/%u[0-9a-f]{4}/gi,function(h){return"%26%23"+parseInt(h.slice(2),16)+"%3B"});for(var o="",l=0;l=Gv?s.slice(l,l+Gv):s,c=[],p=0;p=48&&d<=57||d>=65&&d<=90||d>=97&&d<=122||r===J5.RFC1738&&(d===40||d===41)){c[c.length]=u.charAt(p);continue}if(d<128){c[c.length]=Un[d];continue}if(d<2048){c[c.length]=Un[192|d>>6]+Un[128|d&63];continue}if(d<55296||d>=57344){c[c.length]=Un[224|d>>12]+Un[128|d>>6&63]+Un[128|d&63];continue}p+=1,d=65536+((d&1023)<<10|u.charCodeAt(p)&1023),c[c.length]=Un[240|d>>18]+Un[128|d>>12&63]+Un[128|d>>6&63]+Un[128|d&63]}o+=c.join("")}return o},iK=function(e){for(var i=[{obj:{o:e},prop:"o"}],n=[],a=0;an?Xr(il(s,{plainObjects:a}),s.length-1):s},rK=function(e,i){if(Da(e)){for(var n=[],a=0;a{"use strict";var r_=Iv(),sp=Nv(),nl=ap(),sK=Object.prototype.hasOwnProperty,s_={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,i){return e+"["+i+"]"},repeat:function(e){return e}},Ln=Array.isArray,oK=Array.prototype.push,o_=function(t,e){oK.apply(t,Ln(e)?e:[e])},lK=Date.prototype.toISOString,a_=nl.default,oi={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,commaRoundTrip:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:sp.encode,encodeValuesOnly:!1,filter:void 0,format:a_,formatter:nl.formatters[a_],indices:!1,serializeDate:function(e){return lK.call(e)},skipNulls:!1,strictNullHandling:!1},uK=function(e){return typeof e=="string"||typeof e=="number"||typeof e=="boolean"||typeof e=="symbol"||typeof e=="bigint"},Uv={},cK=function t(e,i,n,a,r,s,o,l,u,c,p,d,h,g,m,f,v,y){for(var A=e,b=y,O=0,$=!1;(b=b.get(Uv))!==void 0&&!$;){var N=b.get(e);if(O+=1,typeof N<"u"){if(N===O)throw new RangeError("Cyclic object value");$=!0}typeof b.get(Uv)>"u"&&(O=0)}if(typeof c=="function"?A=c(i,A):A instanceof Date?A=h(A):n==="comma"&&Ln(A)&&(A=sp.maybeMap(A,function(I){return I instanceof Date?h(I):I})),A===null){if(s)return m(u&&!f?u(i,oi.encoder,v,"key",g):i);A=""}if(uK(A)||sp.isBuffer(A)){if(u){var X=f?i:u(i,oi.encoder,v,"key",g);return[m(X)+"="+m(u(A,oi.encoder,v,"value",g))]}return[m(i)+"="+m(String(A))]}var F=[];if(typeof A>"u")return F;var k;if(n==="comma"&&Ln(A))f&&u&&(A=sp.maybeMap(A,function(I){return I==null?I:u(I)})),k=[{value:A.length>0?A.join(",")||null:void 0}];else if(Ln(c))k=c;else{var Q=Object.keys(A);k=p?Q.sort(p):Q}var Z=l?String(i).replace(/\./g,"%2E"):String(i),ie=a&&Ln(A)&&A.length===1?Z+"[]":Z;if(r&&Ln(A)&&A.length===0)return ie+"[]";for(var se=0;se"u"?e.encodeDotInKeys===!0?!0:oi.allowDots:!!e.allowDots;return{addQueryPrefix:typeof e.addQueryPrefix=="boolean"?e.addQueryPrefix:oi.addQueryPrefix,allowDots:o,allowEmptyArrays:typeof e.allowEmptyArrays=="boolean"?!!e.allowEmptyArrays:oi.allowEmptyArrays,arrayFormat:s,charset:i,charsetSentinel:typeof e.charsetSentinel=="boolean"?e.charsetSentinel:oi.charsetSentinel,commaRoundTrip:!!e.commaRoundTrip,delimiter:typeof e.delimiter>"u"?oi.delimiter:e.delimiter,encode:typeof e.encode=="boolean"?e.encode:oi.encode,encodeDotInKeys:typeof e.encodeDotInKeys=="boolean"?e.encodeDotInKeys:oi.encodeDotInKeys,encoder:typeof e.encoder=="function"?e.encoder:oi.encoder,encodeValuesOnly:typeof e.encodeValuesOnly=="boolean"?e.encodeValuesOnly:oi.encodeValuesOnly,filter:r,format:n,formatter:a,serializeDate:typeof e.serializeDate=="function"?e.serializeDate:oi.serializeDate,skipNulls:typeof e.skipNulls=="boolean"?e.skipNulls:oi.skipNulls,sort:typeof e.sort=="function"?e.sort:null,strictNullHandling:typeof e.strictNullHandling=="boolean"?e.strictNullHandling:oi.strictNullHandling}};l_.exports=function(t,e){var i=t,n=pK(e),a,r;typeof n.filter=="function"?(r=n.filter,i=r("",i)):Ln(n.filter)&&(r=n.filter,a=r);var s=[];if(typeof i!="object"||i===null)return"";var o=s_[n.arrayFormat],l=o==="comma"&&n.commaRoundTrip;a||(a=Object.keys(i)),n.sort&&a.sort(n.sort);for(var u=r_(),c=0;c"u"||p===null)){var d=i[p];n.skipNulls&&d===null||o_(s,cK(d,p,o,l,n.allowEmptyArrays,n.strictNullHandling,n.skipNulls,n.encodeDotInKeys,n.encode?n.encoder:null,n.filter,n.sort,n.allowDots,n.serializeDate,n.format,n.formatter,n.encodeValuesOnly,n.charset,u))}}var h=s.join(n.delimiter),g=n.addQueryPrefix===!0?"?":"";return n.charsetSentinel&&(n.charset==="iso-8859-1"?g+="utf8=%26%2310003%3B"+n.delimiter:g+="utf8=%E2%9C%93"+n.delimiter),h.length>0?g+h:""}});var d_=w((Aoe,p_)=>{"use strict";var Wn=Nv(),op=Object.prototype.hasOwnProperty,Lv=Array.isArray,Ze={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:Wn.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictMerge:!0,strictNullHandling:!1,throwOnLimitExceeded:!1},dK=function(t){return t.replace(/&#(\d+);/g,function(e,i){return String.fromCharCode(parseInt(i,10))})},c_=function(t,e,i){if(t&&typeof t=="string"&&e.comma&&t.indexOf(",")>-1)return t.split(",");if(e.throwOnLimitExceeded&&i>=e.arrayLimit)throw new RangeError("Array limit exceeded. Only "+e.arrayLimit+" element"+(e.arrayLimit===1?"":"s")+" allowed in an array.");return t},hK="utf8=%26%2310003%3B",gK="utf8=%E2%9C%93",mK=function(e,i){var n={__proto__:null},a=i.ignoreQueryPrefix?e.replace(/^\?/,""):e;a=a.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var r=i.parameterLimit===1/0?void 0:i.parameterLimit,s=a.split(i.delimiter,i.throwOnLimitExceeded&&typeof r<"u"?r+1:r);if(i.throwOnLimitExceeded&&typeof r<"u"&&s.length>r)throw new RangeError("Parameter limit exceeded. Only "+r+" parameter"+(r===1?"":"s")+" allowed.");var o=-1,l,u=i.charset;if(i.charsetSentinel)for(l=0;l-1&&(g=Lv(g)?[g]:g),i.comma&&Lv(g)&&g.length>i.arrayLimit){if(i.throwOnLimitExceeded)throw new RangeError("Array limit exceeded. Only "+i.arrayLimit+" element"+(i.arrayLimit===1?"":"s")+" allowed in an array.");g=Wn.combine([],g,i.arrayLimit,i.plainObjects)}if(h!==null){var m=op.call(n,h);m&&(i.duplicates==="combine"||c.indexOf("[]=")>-1)?n[h]=Wn.combine(n[h],g,i.arrayLimit,i.plainObjects):(!m||i.duplicates==="last")&&(n[h]=g)}}return n},fK=function(t,e,i,n){var a=0;if(t.length>0&&t[t.length-1]==="[]"){var r=t.slice(0,-1).join("");a=Array.isArray(e)&&e[r]?e[r].length:0}for(var s=n?e:c_(e,i,a),o=t.length-1;o>=0;--o){var l,u=t[o];if(u==="[]"&&i.parseArrays)Wn.isOverflow(s)?l=s:l=i.allowEmptyArrays&&(s===""||i.strictNullHandling&&s===null)?[]:Wn.combine([],s,i.arrayLimit,i.plainObjects);else{l=i.plainObjects?{__proto__:null}:{};var c=u.charAt(0)==="["&&u.charAt(u.length-1)==="]"?u.slice(1,-1):u,p=i.decodeDotInKeys?c.replace(/%2E/g,"."):c,d=parseInt(p,10),h=!isNaN(d)&&u!==p&&String(d)===p&&d>=0&&i.parseArrays;if(!i.parseArrays&&p==="")l={0:s};else if(h&&d=0?n.slice(0,r):n;if(s){if(!i.plainObjects&&op.call(Object.prototype,s)&&!i.allowPrototypes)return;a[a.length]=s}for(var o=n.length,l=r,u=0;l>=0&&u=0){if(i.strictDepth===!0)throw new RangeError("Input depth exceeded depth option of "+i.depth+" and strictDepth is true");a[a.length]="["+n.slice(l)+"]"}return a},vK=function(e,i,n,a){if(e){var r=wK(e,n);if(r)return fK(r,i,n,a)}},CK=function(e){if(!e)return Ze;if(typeof e.allowEmptyArrays<"u"&&typeof e.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof e.decodeDotInKeys<"u"&&typeof e.decodeDotInKeys!="boolean")throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(e.decoder!==null&&typeof e.decoder<"u"&&typeof e.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof e.charset<"u"&&e.charset!=="utf-8"&&e.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");if(typeof e.throwOnLimitExceeded<"u"&&typeof e.throwOnLimitExceeded!="boolean")throw new TypeError("`throwOnLimitExceeded` option must be a boolean");var i=typeof e.charset>"u"?Ze.charset:e.charset,n=typeof e.duplicates>"u"?Ze.duplicates:e.duplicates;if(n!=="combine"&&n!=="first"&&n!=="last")throw new TypeError("The duplicates option must be either combine, first, or last");var a=typeof e.allowDots>"u"?e.decodeDotInKeys===!0?!0:Ze.allowDots:!!e.allowDots;return{allowDots:a,allowEmptyArrays:typeof e.allowEmptyArrays=="boolean"?!!e.allowEmptyArrays:Ze.allowEmptyArrays,allowPrototypes:typeof e.allowPrototypes=="boolean"?e.allowPrototypes:Ze.allowPrototypes,allowSparse:typeof e.allowSparse=="boolean"?e.allowSparse:Ze.allowSparse,arrayLimit:typeof e.arrayLimit=="number"?e.arrayLimit:Ze.arrayLimit,charset:i,charsetSentinel:typeof e.charsetSentinel=="boolean"?e.charsetSentinel:Ze.charsetSentinel,comma:typeof e.comma=="boolean"?e.comma:Ze.comma,decodeDotInKeys:typeof e.decodeDotInKeys=="boolean"?e.decodeDotInKeys:Ze.decodeDotInKeys,decoder:typeof e.decoder=="function"?e.decoder:Ze.decoder,delimiter:typeof e.delimiter=="string"||Wn.isRegExp(e.delimiter)?e.delimiter:Ze.delimiter,depth:typeof e.depth=="number"||e.depth===!1?+e.depth:Ze.depth,duplicates:n,ignoreQueryPrefix:e.ignoreQueryPrefix===!0,interpretNumericEntities:typeof e.interpretNumericEntities=="boolean"?e.interpretNumericEntities:Ze.interpretNumericEntities,parameterLimit:typeof e.parameterLimit=="number"?e.parameterLimit:Ze.parameterLimit,parseArrays:e.parseArrays!==!1,plainObjects:typeof e.plainObjects=="boolean"?e.plainObjects:Ze.plainObjects,strictDepth:typeof e.strictDepth=="boolean"?!!e.strictDepth:Ze.strictDepth,strictMerge:typeof e.strictMerge=="boolean"?!!e.strictMerge:Ze.strictMerge,strictNullHandling:typeof e.strictNullHandling=="boolean"?e.strictNullHandling:Ze.strictNullHandling,throwOnLimitExceeded:typeof e.throwOnLimitExceeded=="boolean"?e.throwOnLimitExceeded:!1}};p_.exports=function(t,e){var i=CK(e);if(t===""||t===null||typeof t>"u")return i.plainObjects?{__proto__:null}:{};for(var n=typeof t=="string"?mK(t,i):t,a=i.plainObjects?{__proto__:null}:{},r=Object.keys(n),s=0;s{"use strict";var AK=u_(),bK=d_(),yK=ap();h_.exports={formats:yK,parse:bK,stringify:AK}});var Zi=w((yoe,m_)=>{"use strict";var Wv=class t extends Error{constructor(e){super(`Format functions must be synchronous taking a two arguments: (info, opts) +`+e.prev}function Yc(t,e){var i=Mv(t),n=[];if(i){n.length=t.length;for(var a=0;a{"use strict";var C5=Yo(),A5=It(),ip=function(t,e,i){for(var n=t,a;(a=n.next)!=null;n=a)if(a.key===e)return n.next=a.next,i||(a.next=t.next,t.next=a),a},b5=function(t,e){if(t){var i=ip(t,e);return i&&i.value}},y5=function(t,e,i){var n=ip(t,e);n?n.value=i:t.next={key:e,next:t.next,value:i}},P5=function(t,e){return t?!!ip(t,e):!1},j5=function(t,e){if(t)return ip(t,e,!0)};Vq.exports=function(){var e,i={assert:function(n){if(!i.has(n))throw new A5("Side channel does not contain "+C5(n))},delete:function(n){var a=j5(e,n);return a&&e&&!e.next&&(e=void 0),!!a},get:function(n){return b5(e,n)},has:function(n){return P5(e,n)},set:function(n,a){e||(e={next:void 0}),y5(e,n,a)}};return i}});var Hv=w((goe,Qq)=>{"use strict";var Zq=ko(),Kq=Pw(),S5=Kq([Zq("%String.prototype.indexOf%")]);Qq.exports=function(e,i){var n=Zq(e,!!i);return typeof n=="function"&&S5(e,".prototype.")>-1?Kq([n]):n}});var Rv=w((moe,Xq)=>{"use strict";var O5=ko(),Xo=Hv(),x5=Yo(),T5=It(),Yq=O5("%Map%",!0),M5=Xo("Map.prototype.get",!0),E5=Xo("Map.prototype.set",!0),k5=Xo("Map.prototype.has",!0),q5=Xo("Map.prototype.delete",!0),_5=Xo("Map.prototype.size",!0);Xq.exports=!!Yq&&function(){var e,i={assert:function(n){if(!i.has(n))throw new T5("Side channel does not contain "+x5(n))},delete:function(n){if(e){var a=q5(e,n);return _5(e)===0&&(e=void 0),a}return!1},get:function(n){if(e)return M5(e,n)},has:function(n){return e?k5(e,n):!1},set:function(n,a){e||(e=new Yq),E5(e,n,a)}};return i}});var i_=w((foe,e_)=>{"use strict";var H5=ko(),tp=Hv(),R5=Yo(),np=Rv(),I5=It(),Yr=H5("%WeakMap%",!0),z5=tp("WeakMap.prototype.get",!0),D5=tp("WeakMap.prototype.set",!0),G5=tp("WeakMap.prototype.has",!0),$5=tp("WeakMap.prototype.delete",!0);e_.exports=Yr?function(){var e,i,n={assert:function(a){if(!n.has(a))throw new I5("Side channel does not contain "+R5(a))},delete:function(a){if(Yr&&a&&(typeof a=="object"||typeof a=="function")){if(e)return $5(e,a)}else if(np&&i)return i.delete(a);return!1},get:function(a){return Yr&&a&&(typeof a=="object"||typeof a=="function")&&e?z5(e,a):i&&i.get(a)},has:function(a){return Yr&&a&&(typeof a=="object"||typeof a=="function")&&e?G5(e,a):!!i&&i.has(a)},set:function(a,r){Yr&&a&&(typeof a=="object"||typeof a=="function")?(e||(e=new Yr),D5(e,a,r)):np&&(i||(i=np()),i.set(a,r))}};return n}:np});var Iv=w((woe,n_)=>{"use strict";var N5=It(),U5=Yo(),L5=Jq(),W5=Rv(),B5=i_(),F5=B5||W5||L5;n_.exports=function(){var e,i={assert:function(n){if(!i.has(n))throw new N5("Side channel does not contain "+U5(n))},delete:function(n){return!!e&&e.delete(n)},get:function(n){return e&&e.get(n)},has:function(n){return!!e&&e.has(n)},set:function(n,a){e||(e=F5()),e.set(n,a)}};return i}});var ap=w((voe,t_)=>{"use strict";var V5=String.prototype.replace,J5=/%20/g,zv={RFC1738:"RFC1738",RFC3986:"RFC3986"};t_.exports={default:zv.RFC3986,formatters:{RFC1738:function(t){return V5.call(t,J5,"+")},RFC3986:function(t){return String(t)}},RFC1738:zv.RFC1738,RFC3986:zv.RFC3986}});var Nv=w((Coe,a_)=>{"use strict";var Z5=ap(),K5=Iv(),Dv=Object.prototype.hasOwnProperty,Da=Array.isArray,rp=K5(),Xr=function(e,i){return rp.set(e,i),e},Ga=function(e){return rp.has(e)},el=function(e){return rp.get(e)},$v=function(e,i){rp.set(e,i)},Un=(function(){for(var t=[],e=0;e<256;++e)t[t.length]="%"+((e<16?"0":"")+e.toString(16)).toUpperCase();return t})(),Q5=function(e){for(;e.length>1;){var i=e.pop(),n=i.obj[i.prop];if(Da(n)){for(var a=[],r=0;rn.arrayLimit)return Xr(il(e.concat(i),n),a);e[a]=i}else if(e&&typeof e=="object")if(Ga(e)){var r=el(e)+1;e[r]=i,$v(e,r)}else{if(n&&n.strictMerge)return[e,i];(n&&(n.plainObjects||n.allowPrototypes)||!Dv.call(Object.prototype,i))&&(e[i]=!0)}else return[e,i];return e}if(!e||typeof e!="object"){if(Ga(i)){for(var s=Object.keys(i),o=n&&n.plainObjects?{__proto__:null,0:e}:{0:e},l=0;ln.arrayLimit?Xr(il(c,n),c.length-1):c}var p=e;return Da(e)&&!Da(i)&&(p=il(e,n)),Da(e)&&Da(i)?(i.forEach(function(d,h){if(Dv.call(e,h)){var g=e[h];g&&typeof g=="object"&&d&&typeof d=="object"?e[h]=t(g,d,n):e[e.length]=d}else e[h]=d}),e):Object.keys(i).reduce(function(d,h){var g=i[h];if(Dv.call(d,h)?d[h]=t(d[h],g,n):d[h]=g,Ga(i)&&!Ga(d)&&Xr(d,el(i)),Ga(d)){var m=parseInt(h,10);String(m)===h&&m>=0&&m>el(d)&&$v(d,m)}return d},p)},X5=function(e,i){return Object.keys(i).reduce(function(n,a){return n[a]=i[a],n},e)},eK=function(t,e,i){var n=t.replace(/\+/g," ");if(i==="iso-8859-1")return n.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(n)}catch{return n}},Gv=1024,iK=function(e,i,n,a,r){if(e.length===0)return e;var s=e;if(typeof e=="symbol"?s=Symbol.prototype.toString.call(e):typeof e!="string"&&(s=String(e)),n==="iso-8859-1")return escape(s).replace(/%u[0-9a-f]{4}/gi,function(h){return"%26%23"+parseInt(h.slice(2),16)+"%3B"});for(var o="",l=0;l=Gv?s.slice(l,l+Gv):s,c=[],p=0;p=48&&d<=57||d>=65&&d<=90||d>=97&&d<=122||r===Z5.RFC1738&&(d===40||d===41)){c[c.length]=u.charAt(p);continue}if(d<128){c[c.length]=Un[d];continue}if(d<2048){c[c.length]=Un[192|d>>6]+Un[128|d&63];continue}if(d<55296||d>=57344){c[c.length]=Un[224|d>>12]+Un[128|d>>6&63]+Un[128|d&63];continue}p+=1,d=65536+((d&1023)<<10|u.charCodeAt(p)&1023),c[c.length]=Un[240|d>>18]+Un[128|d>>12&63]+Un[128|d>>6&63]+Un[128|d&63]}o+=c.join("")}return o},nK=function(e){for(var i=[{obj:{o:e},prop:"o"}],n=[],a=0;an?Xr(il(s,{plainObjects:a}),s.length-1):s},sK=function(e,i){if(Da(e)){for(var n=[],a=0;a{"use strict";var s_=Iv(),sp=Nv(),nl=ap(),oK=Object.prototype.hasOwnProperty,o_={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,i){return e+"["+i+"]"},repeat:function(e){return e}},Ln=Array.isArray,lK=Array.prototype.push,l_=function(t,e){lK.apply(t,Ln(e)?e:[e])},uK=Date.prototype.toISOString,r_=nl.default,oi={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,commaRoundTrip:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:sp.encode,encodeValuesOnly:!1,filter:void 0,format:r_,formatter:nl.formatters[r_],indices:!1,serializeDate:function(e){return uK.call(e)},skipNulls:!1,strictNullHandling:!1},cK=function(e){return typeof e=="string"||typeof e=="number"||typeof e=="boolean"||typeof e=="symbol"||typeof e=="bigint"},Uv={},pK=function t(e,i,n,a,r,s,o,l,u,c,p,d,h,g,m,f,v,y){for(var A=e,b=y,O=0,$=!1;(b=b.get(Uv))!==void 0&&!$;){var N=b.get(e);if(O+=1,typeof N<"u"){if(N===O)throw new RangeError("Cyclic object value");$=!0}typeof b.get(Uv)>"u"&&(O=0)}if(typeof c=="function"?A=c(i,A):A instanceof Date?A=h(A):n==="comma"&&Ln(A)&&(A=sp.maybeMap(A,function(I){return I instanceof Date?h(I):I})),A===null){if(s)return m(u&&!f?u(i,oi.encoder,v,"key",g):i);A=""}if(cK(A)||sp.isBuffer(A)){if(u){var X=f?i:u(i,oi.encoder,v,"key",g);return[m(X)+"="+m(u(A,oi.encoder,v,"value",g))]}return[m(i)+"="+m(String(A))]}var F=[];if(typeof A>"u")return F;var k;if(n==="comma"&&Ln(A))f&&u&&(A=sp.maybeMap(A,function(I){return I==null?I:u(I)})),k=[{value:A.length>0?A.join(",")||null:void 0}];else if(Ln(c))k=c;else{var Q=Object.keys(A);k=p?Q.sort(p):Q}var Z=l?String(i).replace(/\./g,"%2E"):String(i),ie=a&&Ln(A)&&A.length===1?Z+"[]":Z;if(r&&Ln(A)&&A.length===0)return ie+"[]";for(var se=0;se"u"?e.encodeDotInKeys===!0?!0:oi.allowDots:!!e.allowDots;return{addQueryPrefix:typeof e.addQueryPrefix=="boolean"?e.addQueryPrefix:oi.addQueryPrefix,allowDots:o,allowEmptyArrays:typeof e.allowEmptyArrays=="boolean"?!!e.allowEmptyArrays:oi.allowEmptyArrays,arrayFormat:s,charset:i,charsetSentinel:typeof e.charsetSentinel=="boolean"?e.charsetSentinel:oi.charsetSentinel,commaRoundTrip:!!e.commaRoundTrip,delimiter:typeof e.delimiter>"u"?oi.delimiter:e.delimiter,encode:typeof e.encode=="boolean"?e.encode:oi.encode,encodeDotInKeys:typeof e.encodeDotInKeys=="boolean"?e.encodeDotInKeys:oi.encodeDotInKeys,encoder:typeof e.encoder=="function"?e.encoder:oi.encoder,encodeValuesOnly:typeof e.encodeValuesOnly=="boolean"?e.encodeValuesOnly:oi.encodeValuesOnly,filter:r,format:n,formatter:a,serializeDate:typeof e.serializeDate=="function"?e.serializeDate:oi.serializeDate,skipNulls:typeof e.skipNulls=="boolean"?e.skipNulls:oi.skipNulls,sort:typeof e.sort=="function"?e.sort:null,strictNullHandling:typeof e.strictNullHandling=="boolean"?e.strictNullHandling:oi.strictNullHandling}};u_.exports=function(t,e){var i=t,n=dK(e),a,r;typeof n.filter=="function"?(r=n.filter,i=r("",i)):Ln(n.filter)&&(r=n.filter,a=r);var s=[];if(typeof i!="object"||i===null)return"";var o=o_[n.arrayFormat],l=o==="comma"&&n.commaRoundTrip;a||(a=Object.keys(i)),n.sort&&a.sort(n.sort);for(var u=s_(),c=0;c"u"||p===null)){var d=i[p];n.skipNulls&&d===null||l_(s,pK(d,p,o,l,n.allowEmptyArrays,n.strictNullHandling,n.skipNulls,n.encodeDotInKeys,n.encode?n.encoder:null,n.filter,n.sort,n.allowDots,n.serializeDate,n.format,n.formatter,n.encodeValuesOnly,n.charset,u))}}var h=s.join(n.delimiter),g=n.addQueryPrefix===!0?"?":"";return n.charsetSentinel&&(n.charset==="iso-8859-1"?g+="utf8=%26%2310003%3B"+n.delimiter:g+="utf8=%E2%9C%93"+n.delimiter),h.length>0?g+h:""}});var h_=w((boe,d_)=>{"use strict";var Wn=Nv(),op=Object.prototype.hasOwnProperty,Lv=Array.isArray,Ze={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:Wn.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictMerge:!0,strictNullHandling:!1,throwOnLimitExceeded:!1},hK=function(t){return t.replace(/&#(\d+);/g,function(e,i){return String.fromCharCode(parseInt(i,10))})},p_=function(t,e,i){if(t&&typeof t=="string"&&e.comma&&t.indexOf(",")>-1)return t.split(",");if(e.throwOnLimitExceeded&&i>=e.arrayLimit)throw new RangeError("Array limit exceeded. Only "+e.arrayLimit+" element"+(e.arrayLimit===1?"":"s")+" allowed in an array.");return t},gK="utf8=%26%2310003%3B",mK="utf8=%E2%9C%93",fK=function(e,i){var n={__proto__:null},a=i.ignoreQueryPrefix?e.replace(/^\?/,""):e;a=a.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var r=i.parameterLimit===1/0?void 0:i.parameterLimit,s=a.split(i.delimiter,i.throwOnLimitExceeded&&typeof r<"u"?r+1:r);if(i.throwOnLimitExceeded&&typeof r<"u"&&s.length>r)throw new RangeError("Parameter limit exceeded. Only "+r+" parameter"+(r===1?"":"s")+" allowed.");var o=-1,l,u=i.charset;if(i.charsetSentinel)for(l=0;l-1&&(g=Lv(g)?[g]:g),i.comma&&Lv(g)&&g.length>i.arrayLimit){if(i.throwOnLimitExceeded)throw new RangeError("Array limit exceeded. Only "+i.arrayLimit+" element"+(i.arrayLimit===1?"":"s")+" allowed in an array.");g=Wn.combine([],g,i.arrayLimit,i.plainObjects)}if(h!==null){var m=op.call(n,h);m&&(i.duplicates==="combine"||c.indexOf("[]=")>-1)?n[h]=Wn.combine(n[h],g,i.arrayLimit,i.plainObjects):(!m||i.duplicates==="last")&&(n[h]=g)}}return n},wK=function(t,e,i,n){var a=0;if(t.length>0&&t[t.length-1]==="[]"){var r=t.slice(0,-1).join("");a=Array.isArray(e)&&e[r]?e[r].length:0}for(var s=n?e:p_(e,i,a),o=t.length-1;o>=0;--o){var l,u=t[o];if(u==="[]"&&i.parseArrays)Wn.isOverflow(s)?l=s:l=i.allowEmptyArrays&&(s===""||i.strictNullHandling&&s===null)?[]:Wn.combine([],s,i.arrayLimit,i.plainObjects);else{l=i.plainObjects?{__proto__:null}:{};var c=u.charAt(0)==="["&&u.charAt(u.length-1)==="]"?u.slice(1,-1):u,p=i.decodeDotInKeys?c.replace(/%2E/g,"."):c,d=parseInt(p,10),h=!isNaN(d)&&u!==p&&String(d)===p&&d>=0&&i.parseArrays;if(!i.parseArrays&&p==="")l={0:s};else if(h&&d=0?n.slice(0,r):n;if(s){if(!i.plainObjects&&op.call(Object.prototype,s)&&!i.allowPrototypes)return;a[a.length]=s}for(var o=n.length,l=r,u=0;l>=0&&u=0){if(i.strictDepth===!0)throw new RangeError("Input depth exceeded depth option of "+i.depth+" and strictDepth is true");a[a.length]="["+n.slice(l)+"]"}return a},CK=function(e,i,n,a){if(e){var r=vK(e,n);if(r)return wK(r,i,n,a)}},AK=function(e){if(!e)return Ze;if(typeof e.allowEmptyArrays<"u"&&typeof e.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof e.decodeDotInKeys<"u"&&typeof e.decodeDotInKeys!="boolean")throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(e.decoder!==null&&typeof e.decoder<"u"&&typeof e.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof e.charset<"u"&&e.charset!=="utf-8"&&e.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");if(typeof e.throwOnLimitExceeded<"u"&&typeof e.throwOnLimitExceeded!="boolean")throw new TypeError("`throwOnLimitExceeded` option must be a boolean");var i=typeof e.charset>"u"?Ze.charset:e.charset,n=typeof e.duplicates>"u"?Ze.duplicates:e.duplicates;if(n!=="combine"&&n!=="first"&&n!=="last")throw new TypeError("The duplicates option must be either combine, first, or last");var a=typeof e.allowDots>"u"?e.decodeDotInKeys===!0?!0:Ze.allowDots:!!e.allowDots;return{allowDots:a,allowEmptyArrays:typeof e.allowEmptyArrays=="boolean"?!!e.allowEmptyArrays:Ze.allowEmptyArrays,allowPrototypes:typeof e.allowPrototypes=="boolean"?e.allowPrototypes:Ze.allowPrototypes,allowSparse:typeof e.allowSparse=="boolean"?e.allowSparse:Ze.allowSparse,arrayLimit:typeof e.arrayLimit=="number"?e.arrayLimit:Ze.arrayLimit,charset:i,charsetSentinel:typeof e.charsetSentinel=="boolean"?e.charsetSentinel:Ze.charsetSentinel,comma:typeof e.comma=="boolean"?e.comma:Ze.comma,decodeDotInKeys:typeof e.decodeDotInKeys=="boolean"?e.decodeDotInKeys:Ze.decodeDotInKeys,decoder:typeof e.decoder=="function"?e.decoder:Ze.decoder,delimiter:typeof e.delimiter=="string"||Wn.isRegExp(e.delimiter)?e.delimiter:Ze.delimiter,depth:typeof e.depth=="number"||e.depth===!1?+e.depth:Ze.depth,duplicates:n,ignoreQueryPrefix:e.ignoreQueryPrefix===!0,interpretNumericEntities:typeof e.interpretNumericEntities=="boolean"?e.interpretNumericEntities:Ze.interpretNumericEntities,parameterLimit:typeof e.parameterLimit=="number"?e.parameterLimit:Ze.parameterLimit,parseArrays:e.parseArrays!==!1,plainObjects:typeof e.plainObjects=="boolean"?e.plainObjects:Ze.plainObjects,strictDepth:typeof e.strictDepth=="boolean"?!!e.strictDepth:Ze.strictDepth,strictMerge:typeof e.strictMerge=="boolean"?!!e.strictMerge:Ze.strictMerge,strictNullHandling:typeof e.strictNullHandling=="boolean"?e.strictNullHandling:Ze.strictNullHandling,throwOnLimitExceeded:typeof e.throwOnLimitExceeded=="boolean"?e.throwOnLimitExceeded:!1}};d_.exports=function(t,e){var i=AK(e);if(t===""||t===null||typeof t>"u")return i.plainObjects?{__proto__:null}:{};for(var n=typeof t=="string"?fK(t,i):t,a=i.plainObjects?{__proto__:null}:{},r=Object.keys(n),s=0;s{"use strict";var bK=c_(),yK=h_(),PK=ap();g_.exports={formats:PK,parse:yK,stringify:bK}});var Zi=w((Poe,f_)=>{"use strict";var Wv=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)}};m_.exports=t=>{if(t.length>2)throw new Wv(t);function e(n={}){this.options=n}e.prototype.transform=t;function i(n){return new e(n)}return i.Format=e,i}});var C_=w((Poe,v_)=>{var w_={};v_.exports=w_;var f_={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(f_).forEach(function(t){var e=f_[t],i=w_[t]=[];i.open="\x1B["+e[0]+"m",i.close="\x1B["+e[1]+"m"})});var b_=w((joe,A_)=>{"use strict";A_.exports=function(t,e){e=e||process.argv||[];var i=e.indexOf("--"),n=/^-{1,2}/.test(t)?"":"--",a=e.indexOf(n+t);return a!==-1&&(i===-1?!0:a{"use strict";var PK=require("os"),Mn=b_(),Ii=process.env,es=void 0;Mn("no-color")||Mn("no-colors")||Mn("color=false")?es=!1:(Mn("color")||Mn("colors")||Mn("color=true")||Mn("color=always"))&&(es=!0);"FORCE_COLOR"in Ii&&(es=Ii.FORCE_COLOR.length===0||parseInt(Ii.FORCE_COLOR,10)!==0);function jK(t){return t===0?!1:{level:t,hasBasic:!0,has256:t>=2,has16m:t>=3}}function SK(t){if(es===!1)return 0;if(Mn("color=16m")||Mn("color=full")||Mn("color=truecolor"))return 3;if(Mn("color=256"))return 2;if(t&&!t.isTTY&&es!==!0)return 0;var e=es?1:0;if(process.platform==="win32"){var i=PK.release().split(".");return Number(process.versions.node.split(".")[0])>=8&&Number(i[0])>=10&&Number(i[2])>=10586?Number(i[2])>=14931?3:2:1}if("CI"in Ii)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some(function(a){return a in Ii})||Ii.CI_NAME==="codeship"?1:e;if("TEAMCITY_VERSION"in Ii)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(Ii.TEAMCITY_VERSION)?1:0;if("TERM_PROGRAM"in Ii){var n=parseInt((Ii.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(Ii.TERM_PROGRAM){case"iTerm.app":return n>=3?3:2;case"Hyper":return 3;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(Ii.TERM)?2:/^screen|^xterm|^vt100|^rxvt|color|ansi|cygwin|linux/i.test(Ii.TERM)||"COLORTERM"in Ii?1:(Ii.TERM==="dumb",e)}function Bv(t){var e=SK(t);return jK(e)}y_.exports={supportsColor:Bv,stdout:Bv(process.stdout),stderr:Bv(process.stderr)}});var S_=w((Ooe,j_)=>{j_.exports=function(e,i){var n="";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"?n+=a[r][o]:n+=r}),n}});var x_=w((xoe,O_)=>{O_.exports=function(e,i){e=e||" he is here ";var n={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(n.up,n.down,n.mid);function r(l){var u=Math.floor(Math.random()*l);return u}function s(l){var u=!1;return a.filter(function(c){u=c===l}),u}function o(l,u){var c="",p,d;u=u||{},u.up=typeof u.up<"u"?u.up:!0,u.mid=typeof u.mid<"u"?u.mid:!0,u.down=typeof u.down<"u"?u.down:!0,u.size=typeof u.size<"u"?u.size:"maxi",l=l.split("");for(d in l)if(!s(d)){switch(c=c+l[d],p={up:0,down:0,mid:0},u.size){case"mini":p.up=r(8),p.mid=r(2),p.down=r(8);break;case"maxi":p.up=r(16)+3,p.mid=r(4)+1,p.down=r(64)+3;break;default:p.up=r(8)+1,p.mid=r(6)/2,p.down=r(8)+1;break}var h=["up","mid","down"];for(var g in h)for(var m=h[g],f=0;f<=p[m];f++)u[m]&&(c=c+n[m][r(n[m].length)])}return c}return o(e,i)}});var M_=w((Toe,T_)=>{T_.exports=function(t){return function(e,i,n){if(e===" ")return e;switch(i%3){case 0:return t.red(e);case 1:return t.white(e);case 2:return t.blue(e)}}}});var k_=w((Moe,E_)=>{E_.exports=function(t){return function(e,i,n){return i%2===0?e:t.inverse(e)}}});var __=w((Eoe,q_)=>{q_.exports=function(t){var e=["red","yellow","green","blue","magenta"];return function(i,n,a){return i===" "?i:t[e[n++%e.length]](i)}}});var R_=w((koe,H_)=>{H_.exports=function(t){var e=["underline","inverse","grey","yellow","red","green","blue","white","cyan","magenta","brightYellow","brightRed","brightGreen","brightBlue","brightWhite","brightCyan","brightMagenta"];return function(i,n,a){return i===" "?i:t[e[Math.round(Math.random()*(e.length-2))]](i)}}});var N_=w((_oe,$_)=>{var de={};$_.exports=de;de.themes={};var OK=require("util"),$a=de.styles=C_(),z_=Object.defineProperties,xK=new RegExp(/[\r\n]+/g);de.supportsColor=P_().supportsColor;typeof de.enabled>"u"&&(de.enabled=de.supportsColor()!==!1);de.enable=function(){de.enabled=!0};de.disable=function(){de.enabled=!1};de.stripColors=de.strip=function(t){return(""+t).replace(/\x1B\[\d+m/g,"")};var qoe=de.stylize=function(e,i){if(!de.enabled)return e+"";var n=$a[i];return!n&&i in de?de[i](e):n.open+e+n.close},TK=/[|\\{}()[\]^$+*?.]/g,MK=function(t){if(typeof t!="string")throw new TypeError("Expected a string");return t.replace(TK,"\\$&")};function D_(t){var e=function i(){return kK.apply(i,arguments)};return e._styles=t,e.__proto__=EK,e}var G_=(function(){var t={};return $a.grey=$a.gray,Object.keys($a).forEach(function(e){$a[e].closeRe=new RegExp(MK($a[e].close),"g"),t[e]={get:function(){return D_(this._styles.concat(e))}}}),t})(),EK=z_(function(){},G_);function kK(){var t=Array.prototype.slice.call(arguments),e=t.map(function(s){return s!=null&&s.constructor===String?s:OK.inspect(s)}).join(" ");if(!de.enabled||!e)return e;for(var i=e.indexOf(` -`)!=-1,n=this._styles,a=n.length;a--;){var r=$a[n[a]];e=r.open+e.replace(r.closeRe,r.open)+r.close,i&&(e=e.replace(xK,function(s){return r.close+s+r.open}))}return e}de.setTheme=function(t){if(typeof t=="string"){console.log("colors.setTheme now only accepts an object, not a string. If you are trying to set a theme from a file, it is now your (the caller's) responsibility to require the file. The old syntax looked like colors.setTheme(__dirname + '/../themes/generic-logging.js'); The new syntax looks like colors.setTheme(require(__dirname + '/../themes/generic-logging.js'));");return}for(var e in t)(function(i){de[i]=function(n){if(typeof t[i]=="object"){var a=n;for(var r in t[i])a=de[t[i][r]](a);return a}return de[t[i]](n)}})(e)};function qK(){var t={};return Object.keys(G_).forEach(function(e){t[e]={get:function(){return D_([e])}}}),t}var _K=function(e,i){var n=i.split("");return n=n.map(e),n.join("")};de.trap=S_();de.zalgo=x_();de.maps={};de.maps.america=M_()(de);de.maps.zebra=k_()(de);de.maps.rainbow=__()(de);de.maps.random=R_()(de);for(I_ in de.maps)(function(t){de[t]=function(e){return _K(de.maps[t],e)}})(I_);var I_;z_(de,qK())});var Fv=w((Hoe,U_)=>{var HK=N_();U_.exports=HK});var L_=w(Vv=>{"use strict";Vv.levels={error:0,warn:1,help:2,data:3,info:4,debug:5,prompt:6,verbose:7,input:8,silly:9};Vv.colors={error:"red",warn:"yellow",help:"cyan",data:"grey",info:"green",debug:"blue",prompt:"grey",verbose:"cyan",input:"grey",silly:"magenta"}});var W_=w(Jv=>{"use strict";Jv.levels={error:0,warn:1,info:2,http:3,verbose:4,debug:5,silly:6};Jv.colors={error:"red",warn:"yellow",info:"green",http:"green",verbose:"cyan",debug:"blue",silly:"magenta"}});var B_=w(Zv=>{"use strict";Zv.levels={emerg:0,alert:1,crit:2,error:3,warning:4,notice:5,info:6,debug:7};Zv.colors={emerg:"red",alert:"yellow",crit:"red",error:"red",warning:"red",notice:"yellow",info:"green",debug:"blue"}});var F_=w(lp=>{"use strict";Object.defineProperty(lp,"cli",{value:L_()});Object.defineProperty(lp,"npm",{value:W_()});Object.defineProperty(lp,"syslog",{value:B_()})});var ri=w(tl=>{"use strict";Object.defineProperty(tl,"LEVEL",{value:Symbol.for("level")});Object.defineProperty(tl,"MESSAGE",{value:Symbol.for("message")});Object.defineProperty(tl,"SPLAT",{value:Symbol.for("splat")});Object.defineProperty(tl,"configs",{value:F_()})});var pp=w(($oe,cp)=>{"use strict";var Yv=Fv(),{LEVEL:Kv,MESSAGE:Qv}=ri();Yv.enabled=!0;var V_=/\s+/,up=class t{constructor(e={}){e.colors&&this.addColors(e.colors),this.options=e}static addColors(e){let i=Object.keys(e).reduce((n,a)=>(n[a]=V_.test(e[a])?e[a].split(V_):e[a],n),{});return t.allColors=Object.assign({},t.allColors||{},i),t.allColors}addColors(e){return t.addColors(e)}colorize(e,i,n){if(typeof n>"u"&&(n=i),!Array.isArray(t.allColors[e]))return Yv[t.allColors[e]](n);for(let a=0,r=t.allColors[e].length;anew up(t);cp.exports.Colorizer=cp.exports.Format=up});var Z_=w((Noe,J_)=>{"use strict";var{Colorizer:RK}=pp();J_.exports=t=>(RK.addColors(t.colors||t),t)});var Q_=w((Uoe,K_)=>{"use strict";var IK=Zi();K_.exports=IK(t=>(t.message=` ${t.message}`,t))});var e2=w((Loe,X_)=>{"use strict";var zK=Zi(),{LEVEL:Y_,MESSAGE:Xv}=ri();X_.exports=zK((t,{stack:e,cause:i})=>{if(t instanceof Error){let a=Object.assign({},t,{level:t.level,[Y_]:t[Y_]||t.level,message:t.message,[Xv]:t[Xv]||t.message});return e&&(a.stack=t.stack),i&&(a.cause=t.cause),a}if(!(t.message instanceof Error))return t;let n=t.message;return Object.assign(t,n),t.message=n.message,t[Xv]=n.message,e&&(t.stack=n.stack),i&&(t.cause=n.cause),t})});var iC=w((Woe,hp)=>{"use strict";var{configs:DK,LEVEL:i2,MESSAGE:eC}=ri(),dp=class t{constructor(e={levels:DK.npm.levels}){this.paddings=t.paddingForLevels(e.levels,e.filler),this.options=e}static getLongestLevel(e){let i=Object.keys(e).map(n=>n.length);return Math.max(...i)}static paddingForLevel(e,i,n){let a=n+1-e.length,r=Math.floor(a/i.length);return`${i}${i.repeat(r)}`.slice(0,a)}static paddingForLevels(e,i=" "){let n=t.getLongestLevel(e);return Object.keys(e).reduce((a,r)=>(a[r]=t.paddingForLevel(r,i,n),a),{})}transform(e,i){return e.message=`${this.paddings[e[i2]]}${e.message}`,e[eC]&&(e[eC]=`${this.paddings[e[i2]]}${e[eC]}`),e}};hp.exports=t=>new dp(t);hp.exports.Padder=hp.exports.Format=dp});var n2=w((Boe,nC)=>{"use strict";var{Colorizer:GK}=pp(),{Padder:$K}=iC(),{configs:NK,MESSAGE:UK}=ri(),gp=class{constructor(e={}){e.levels||(e.levels=NK.cli.levels),this.colorizer=new GK(e),this.padder=new $K(e),this.options=e}transform(e,i){return this.colorizer.transform(this.padder.transform(e,i),i),e[UK]=`${e.level}:${e.message}`,e}};nC.exports=t=>new gp(t);nC.exports.Format=gp});var a2=w((Foe,tC)=>{"use strict";var LK=Zi();function t2(t){if(t.every(WK))return e=>{let i=e;for(let n=0;n{let e=LK(t2(t)),i=e();return i.Format=e.Format,i};tC.exports.cascade=t2});var rl=w((oC,o2)=>{"use strict";var{hasOwnProperty:al}=Object.prototype,Ua=sC();Ua.configure=sC;Ua.stringify=Ua;Ua.default=Ua;oC.stringify=Ua;oC.configure=sC;o2.exports=Ua;var BK=/[\u0000-\u001f\u0022\u005c\ud800-\udfff]/;function Nt(t){return t.length<5e3&&!BK.test(t)?`"${t}"`:JSON.stringify(t)}function aC(t,e){if(t.length>200||e)return t.sort(e);for(let i=1;in;)t[a]=t[a-1],a--;t[a]=n}return t}var FK=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(Object.getPrototypeOf(new Int8Array)),Symbol.toStringTag).get;function rC(t){return FK.call(t)!==void 0&&t.length!==0}function r2(t,e,i){t.length= 1`)}return i===void 0?1/0:i}function Na(t){return t===1?"1 item":`${t} items`}function KK(t){let e=new Set;for(let i of t)(typeof i=="string"||typeof i=="number")&&e.add(String(i));return e}function QK(t){if(al.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 i=>{let n=`Object can not safely be stringified. Received type ${typeof i}`;throw typeof i!="function"&&(n+=` (${i.toString()})`),new Error(n)}}}function sC(t){t={...t};let e=QK(t);e&&(t.bigint===void 0&&(t.bigint=!1),"circularValue"in t||(t.circularValue=Error));let i=VK(t),n=ZK(t,"bigint"),a=JK(t),r=typeof a=="function"?a:void 0,s=s2(t,"maximumDepth"),o=s2(t,"maximumBreadth");function l(h,g,m,f,v,y){let A=g[h];switch(typeof A=="object"&&A!==null&&typeof A.toJSON=="function"&&(A=A.toJSON(h)),A=f.call(g,h,A),typeof A){case"string":return Nt(A);case"object":{if(A===null)return"null";if(m.indexOf(A)!==-1)return i;let b="",O=",",$=y;if(Array.isArray(A)){if(A.length===0)return"[]";if(s{if(t.length>2)throw new Wv(t);function e(n={}){this.options=n}e.prototype.transform=t;function i(n){return new e(n)}return i.Format=e,i}});var A_=w((joe,C_)=>{var v_={};C_.exports=v_;var w_={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(w_).forEach(function(t){var e=w_[t],i=v_[t]=[];i.open="\x1B["+e[0]+"m",i.close="\x1B["+e[1]+"m"})});var y_=w((Soe,b_)=>{"use strict";b_.exports=function(t,e){e=e||process.argv||[];var i=e.indexOf("--"),n=/^-{1,2}/.test(t)?"":"--",a=e.indexOf(n+t);return a!==-1&&(i===-1?!0:a{"use strict";var jK=require("os"),Mn=y_(),Ii=process.env,es=void 0;Mn("no-color")||Mn("no-colors")||Mn("color=false")?es=!1:(Mn("color")||Mn("colors")||Mn("color=true")||Mn("color=always"))&&(es=!0);"FORCE_COLOR"in Ii&&(es=Ii.FORCE_COLOR.length===0||parseInt(Ii.FORCE_COLOR,10)!==0);function SK(t){return t===0?!1:{level:t,hasBasic:!0,has256:t>=2,has16m:t>=3}}function OK(t){if(es===!1)return 0;if(Mn("color=16m")||Mn("color=full")||Mn("color=truecolor"))return 3;if(Mn("color=256"))return 2;if(t&&!t.isTTY&&es!==!0)return 0;var e=es?1:0;if(process.platform==="win32"){var i=jK.release().split(".");return Number(process.versions.node.split(".")[0])>=8&&Number(i[0])>=10&&Number(i[2])>=10586?Number(i[2])>=14931?3:2:1}if("CI"in Ii)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some(function(a){return a in Ii})||Ii.CI_NAME==="codeship"?1:e;if("TEAMCITY_VERSION"in Ii)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(Ii.TEAMCITY_VERSION)?1:0;if("TERM_PROGRAM"in Ii){var n=parseInt((Ii.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(Ii.TERM_PROGRAM){case"iTerm.app":return n>=3?3:2;case"Hyper":return 3;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(Ii.TERM)?2:/^screen|^xterm|^vt100|^rxvt|color|ansi|cygwin|linux/i.test(Ii.TERM)||"COLORTERM"in Ii?1:(Ii.TERM==="dumb",e)}function Bv(t){var e=OK(t);return SK(e)}P_.exports={supportsColor:Bv,stdout:Bv(process.stdout),stderr:Bv(process.stderr)}});var O_=w((xoe,S_)=>{S_.exports=function(e,i){var n="";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"?n+=a[r][o]:n+=r}),n}});var T_=w((Toe,x_)=>{x_.exports=function(e,i){e=e||" he is here ";var n={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(n.up,n.down,n.mid);function r(l){var u=Math.floor(Math.random()*l);return u}function s(l){var u=!1;return a.filter(function(c){u=c===l}),u}function o(l,u){var c="",p,d;u=u||{},u.up=typeof u.up<"u"?u.up:!0,u.mid=typeof u.mid<"u"?u.mid:!0,u.down=typeof u.down<"u"?u.down:!0,u.size=typeof u.size<"u"?u.size:"maxi",l=l.split("");for(d in l)if(!s(d)){switch(c=c+l[d],p={up:0,down:0,mid:0},u.size){case"mini":p.up=r(8),p.mid=r(2),p.down=r(8);break;case"maxi":p.up=r(16)+3,p.mid=r(4)+1,p.down=r(64)+3;break;default:p.up=r(8)+1,p.mid=r(6)/2,p.down=r(8)+1;break}var h=["up","mid","down"];for(var g in h)for(var m=h[g],f=0;f<=p[m];f++)u[m]&&(c=c+n[m][r(n[m].length)])}return c}return o(e,i)}});var E_=w((Moe,M_)=>{M_.exports=function(t){return function(e,i,n){if(e===" ")return e;switch(i%3){case 0:return t.red(e);case 1:return t.white(e);case 2:return t.blue(e)}}}});var q_=w((Eoe,k_)=>{k_.exports=function(t){return function(e,i,n){return i%2===0?e:t.inverse(e)}}});var H_=w((koe,__)=>{__.exports=function(t){var e=["red","yellow","green","blue","magenta"];return function(i,n,a){return i===" "?i:t[e[n++%e.length]](i)}}});var I_=w((qoe,R_)=>{R_.exports=function(t){var e=["underline","inverse","grey","yellow","red","green","blue","white","cyan","magenta","brightYellow","brightRed","brightGreen","brightBlue","brightWhite","brightCyan","brightMagenta"];return function(i,n,a){return i===" "?i:t[e[Math.round(Math.random()*(e.length-2))]](i)}}});var U_=w((Hoe,N_)=>{var de={};N_.exports=de;de.themes={};var xK=require("util"),$a=de.styles=A_(),D_=Object.defineProperties,TK=new RegExp(/[\r\n]+/g);de.supportsColor=j_().supportsColor;typeof de.enabled>"u"&&(de.enabled=de.supportsColor()!==!1);de.enable=function(){de.enabled=!0};de.disable=function(){de.enabled=!1};de.stripColors=de.strip=function(t){return(""+t).replace(/\x1B\[\d+m/g,"")};var _oe=de.stylize=function(e,i){if(!de.enabled)return e+"";var n=$a[i];return!n&&i in de?de[i](e):n.open+e+n.close},MK=/[|\\{}()[\]^$+*?.]/g,EK=function(t){if(typeof t!="string")throw new TypeError("Expected a string");return t.replace(MK,"\\$&")};function G_(t){var e=function i(){return qK.apply(i,arguments)};return e._styles=t,e.__proto__=kK,e}var $_=(function(){var t={};return $a.grey=$a.gray,Object.keys($a).forEach(function(e){$a[e].closeRe=new RegExp(EK($a[e].close),"g"),t[e]={get:function(){return G_(this._styles.concat(e))}}}),t})(),kK=D_(function(){},$_);function qK(){var t=Array.prototype.slice.call(arguments),e=t.map(function(s){return s!=null&&s.constructor===String?s:xK.inspect(s)}).join(" ");if(!de.enabled||!e)return e;for(var i=e.indexOf(` +`)!=-1,n=this._styles,a=n.length;a--;){var r=$a[n[a]];e=r.open+e.replace(r.closeRe,r.open)+r.close,i&&(e=e.replace(TK,function(s){return r.close+s+r.open}))}return e}de.setTheme=function(t){if(typeof t=="string"){console.log("colors.setTheme now only accepts an object, not a string. If you are trying to set a theme from a file, it is now your (the caller's) responsibility to require the file. The old syntax looked like colors.setTheme(__dirname + '/../themes/generic-logging.js'); The new syntax looks like colors.setTheme(require(__dirname + '/../themes/generic-logging.js'));");return}for(var e in t)(function(i){de[i]=function(n){if(typeof t[i]=="object"){var a=n;for(var r in t[i])a=de[t[i][r]](a);return a}return de[t[i]](n)}})(e)};function _K(){var t={};return Object.keys($_).forEach(function(e){t[e]={get:function(){return G_([e])}}}),t}var HK=function(e,i){var n=i.split("");return n=n.map(e),n.join("")};de.trap=O_();de.zalgo=T_();de.maps={};de.maps.america=E_()(de);de.maps.zebra=q_()(de);de.maps.rainbow=H_()(de);de.maps.random=I_()(de);for(z_ in de.maps)(function(t){de[t]=function(e){return HK(de.maps[t],e)}})(z_);var z_;D_(de,_K())});var Fv=w((Roe,L_)=>{var RK=U_();L_.exports=RK});var W_=w(Vv=>{"use strict";Vv.levels={error:0,warn:1,help:2,data:3,info:4,debug:5,prompt:6,verbose:7,input:8,silly:9};Vv.colors={error:"red",warn:"yellow",help:"cyan",data:"grey",info:"green",debug:"blue",prompt:"grey",verbose:"cyan",input:"grey",silly:"magenta"}});var B_=w(Jv=>{"use strict";Jv.levels={error:0,warn:1,info:2,http:3,verbose:4,debug:5,silly:6};Jv.colors={error:"red",warn:"yellow",info:"green",http:"green",verbose:"cyan",debug:"blue",silly:"magenta"}});var F_=w(Zv=>{"use strict";Zv.levels={emerg:0,alert:1,crit:2,error:3,warning:4,notice:5,info:6,debug:7};Zv.colors={emerg:"red",alert:"yellow",crit:"red",error:"red",warning:"red",notice:"yellow",info:"green",debug:"blue"}});var V_=w(lp=>{"use strict";Object.defineProperty(lp,"cli",{value:W_()});Object.defineProperty(lp,"npm",{value:B_()});Object.defineProperty(lp,"syslog",{value:F_()})});var ri=w(tl=>{"use strict";Object.defineProperty(tl,"LEVEL",{value:Symbol.for("level")});Object.defineProperty(tl,"MESSAGE",{value:Symbol.for("message")});Object.defineProperty(tl,"SPLAT",{value:Symbol.for("splat")});Object.defineProperty(tl,"configs",{value:V_()})});var pp=w((Noe,cp)=>{"use strict";var Yv=Fv(),{LEVEL:Kv,MESSAGE:Qv}=ri();Yv.enabled=!0;var J_=/\s+/,up=class t{constructor(e={}){e.colors&&this.addColors(e.colors),this.options=e}static addColors(e){let i=Object.keys(e).reduce((n,a)=>(n[a]=J_.test(e[a])?e[a].split(J_):e[a],n),{});return t.allColors=Object.assign({},t.allColors||{},i),t.allColors}addColors(e){return t.addColors(e)}colorize(e,i,n){if(typeof n>"u"&&(n=i),!Array.isArray(t.allColors[e]))return Yv[t.allColors[e]](n);for(let a=0,r=t.allColors[e].length;anew up(t);cp.exports.Colorizer=cp.exports.Format=up});var K_=w((Uoe,Z_)=>{"use strict";var{Colorizer:IK}=pp();Z_.exports=t=>(IK.addColors(t.colors||t),t)});var Y_=w((Loe,Q_)=>{"use strict";var zK=Zi();Q_.exports=zK(t=>(t.message=` ${t.message}`,t))});var i2=w((Woe,e2)=>{"use strict";var DK=Zi(),{LEVEL:X_,MESSAGE:Xv}=ri();e2.exports=DK((t,{stack:e,cause:i})=>{if(t instanceof Error){let a=Object.assign({},t,{level:t.level,[X_]:t[X_]||t.level,message:t.message,[Xv]:t[Xv]||t.message});return e&&(a.stack=t.stack),i&&(a.cause=t.cause),a}if(!(t.message instanceof Error))return t;let n=t.message;return Object.assign(t,n),t.message=n.message,t[Xv]=n.message,e&&(t.stack=n.stack),i&&(t.cause=n.cause),t})});var iC=w((Boe,hp)=>{"use strict";var{configs:GK,LEVEL:n2,MESSAGE:eC}=ri(),dp=class t{constructor(e={levels:GK.npm.levels}){this.paddings=t.paddingForLevels(e.levels,e.filler),this.options=e}static getLongestLevel(e){let i=Object.keys(e).map(n=>n.length);return Math.max(...i)}static paddingForLevel(e,i,n){let a=n+1-e.length,r=Math.floor(a/i.length);return`${i}${i.repeat(r)}`.slice(0,a)}static paddingForLevels(e,i=" "){let n=t.getLongestLevel(e);return Object.keys(e).reduce((a,r)=>(a[r]=t.paddingForLevel(r,i,n),a),{})}transform(e,i){return e.message=`${this.paddings[e[n2]]}${e.message}`,e[eC]&&(e[eC]=`${this.paddings[e[n2]]}${e[eC]}`),e}};hp.exports=t=>new dp(t);hp.exports.Padder=hp.exports.Format=dp});var t2=w((Foe,nC)=>{"use strict";var{Colorizer:$K}=pp(),{Padder:NK}=iC(),{configs:UK,MESSAGE:LK}=ri(),gp=class{constructor(e={}){e.levels||(e.levels=UK.cli.levels),this.colorizer=new $K(e),this.padder=new NK(e),this.options=e}transform(e,i){return this.colorizer.transform(this.padder.transform(e,i),i),e[LK]=`${e.level}:${e.message}`,e}};nC.exports=t=>new gp(t);nC.exports.Format=gp});var r2=w((Voe,tC)=>{"use strict";var WK=Zi();function a2(t){if(t.every(BK))return e=>{let i=e;for(let n=0;n{let e=WK(a2(t)),i=e();return i.Format=e.Format,i};tC.exports.cascade=a2});var rl=w((oC,l2)=>{"use strict";var{hasOwnProperty:al}=Object.prototype,Ua=sC();Ua.configure=sC;Ua.stringify=Ua;Ua.default=Ua;oC.stringify=Ua;oC.configure=sC;l2.exports=Ua;var FK=/[\u0000-\u001f\u0022\u005c\ud800-\udfff]/;function Nt(t){return t.length<5e3&&!FK.test(t)?`"${t}"`:JSON.stringify(t)}function aC(t,e){if(t.length>200||e)return t.sort(e);for(let i=1;in;)t[a]=t[a-1],a--;t[a]=n}return t}var VK=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(Object.getPrototypeOf(new Int8Array)),Symbol.toStringTag).get;function rC(t){return VK.call(t)!==void 0&&t.length!==0}function s2(t,e,i){t.length= 1`)}return i===void 0?1/0:i}function Na(t){return t===1?"1 item":`${t} items`}function QK(t){let e=new Set;for(let i of t)(typeof i=="string"||typeof i=="number")&&e.add(String(i));return e}function YK(t){if(al.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 i=>{let n=`Object can not safely be stringified. Received type ${typeof i}`;throw typeof i!="function"&&(n+=` (${i.toString()})`),new Error(n)}}}function sC(t){t={...t};let e=YK(t);e&&(t.bigint===void 0&&(t.bigint=!1),"circularValue"in t||(t.circularValue=Error));let i=JK(t),n=KK(t,"bigint"),a=ZK(t),r=typeof a=="function"?a:void 0,s=o2(t,"maximumDepth"),o=o2(t,"maximumBreadth");function l(h,g,m,f,v,y){let A=g[h];switch(typeof A=="object"&&A!==null&&typeof A.toJSON=="function"&&(A=A.toJSON(h)),A=f.call(g,h,A),typeof A){case"string":return Nt(A);case"object":{if(A===null)return"null";if(m.indexOf(A)!==-1)return i;let b="",O=",",$=y;if(Array.isArray(A)){if(A.length===0)return"[]";if(so){let De=A.length-o-1;b+=`${O}"... ${Na(De)} not stringified"`}return v!==""&&(b+=` ${$}`),m.pop(),`[${b}]`}let N=Object.keys(A),X=N.length;if(X===0)return"{}";if(so){let se=g.length-o-1;F+=`${k}"... ${Na(se)} not stringified"`}return F+=` ${y}`,m.pop(),`[${F}]`}let A=Object.keys(g),b=A.length;if(b===0)return"{}";if(so){let F=b-o;$+=`${N}"...": "${Na(F)} not stringified"`,N=O}return N!==""&&($=` +${v}`,$="",N="",X=Math.min(b,o);rC(g)&&($+=s2(g,O,o),A=A.slice(g.length),X-=g.length,N=O),a&&(A=aC(A,r)),m.push(g);for(let F=0;Fo){let F=b-o;$+=`${N}"...": "${Na(F)} not stringified"`,N=O}return N!==""&&($=` ${v}${$} -${y}`),m.pop(),`{${$}}`}case"number":return isFinite(g)?String(g):e?e(g):"null";case"boolean":return g===!0?"true":"false";case"undefined":return;case"bigint":if(n)return String(g);default:return e?e(g):void 0}}function p(h,g,m){switch(typeof g){case"string":return Nt(g);case"object":{if(g===null)return"null";if(typeof g.toJSON=="function"){if(g=g.toJSON(h),typeof g!="object")return p(h,g,m);if(g===null)return"null"}if(m.indexOf(g)!==-1)return i;let f="",v=g.length!==void 0;if(v&&Array.isArray(g)){if(g.length===0)return"[]";if(so){let F=g.length-o-1;f+=`,"... ${Na(F)} not stringified"`}return m.pop(),`[${f}]`}let y=Object.keys(g),A=y.length;if(A===0)return"{}";if(so){let $=A-o;f+=`${b}"...":"${Na($)} not stringified"`}return m.pop(),`{${f}}`}case"number":return isFinite(g)?String(g):e?e(g):"null";case"boolean":return g===!0?"true":"false";case"undefined":return;case"bigint":if(n)return String(g);default:return e?e(g):void 0}}function d(h,g,m){if(arguments.length>1){let f="";if(typeof m=="number"?f=" ".repeat(Math.min(m,10)):typeof m=="string"&&(f=m.slice(0,10)),g!=null){if(typeof g=="function")return l("",{"":h},[],g,f,"");if(Array.isArray(g))return u("",h,[],KK(g),f,"")}if(f.length!==0)return c("",h,[],f,"")}return p("",h,[])}return d}});var lC=w((Voe,l2)=>{"use strict";var YK=Zi(),{MESSAGE:XK}=ri(),e9=rl();function i9(t,e){return typeof e=="bigint"?e.toString():e}l2.exports=YK((t,e)=>{let i=e9.configure(e);return t[XK]=i(t,e.replacer||i9,e.space),t})});var c2=w((Joe,u2)=>{"use strict";var n9=Zi();u2.exports=n9((t,e)=>e.message?(t.message=`[${e.label}] ${t.message}`,t):(t.label=e.label,t))});var d2=w((Zoe,p2)=>{"use strict";var t9=Zi(),{MESSAGE:a9}=ri(),r9=rl();p2.exports=t9(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[a9]=r9(e),t})});var g2=w((Koe,h2)=>{"use strict";var s9=Zi();function o9(t,e,i){let n=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,n,{[i]:a}),t}function l9(t,e,i){return t[i]=e.reduce((n,a)=>(n[a]=t[a],delete t[a],n),{}),t}h2.exports=s9((t,e={})=>{let i="metadata";e.key&&(i=e.key);let n=[];return!e.fillExcept&&!e.fillWith&&(n.push("level"),n.push("message")),e.fillExcept&&(n=e.fillExcept),n.length>0?o9(t,n,i):e.fillWith?l9(t,e.fillWith,i):t})});var f2=w((sl,m2)=>{"use strict";var u9=Zi(),c9=kw();m2.exports=u9(t=>{let e=+new Date;return sl.diff=e-(sl.prevTime||e),sl.prevTime=e,t.ms=`+${c9(sl.diff)}`,t})});var C2=w((Qoe,v2)=>{"use strict";var p9=require("util").inspect,d9=Zi(),{LEVEL:h9,MESSAGE:w2,SPLAT:g9}=ri();v2.exports=d9((t,e={})=>{let i=Object.assign({},t);return delete i[h9],delete i[w2],delete i[g9],t[w2]=p9(i,!1,e.depth||null,e.colorize),t})});var A2=w((Yoe,fp)=>{"use strict";var{MESSAGE:m9}=ri(),mp=class{constructor(e){this.template=e}transform(e){return e[m9]=this.template(e),e}};fp.exports=t=>new mp(t);fp.exports.Printf=fp.exports.Format=mp});var P2=w((Xoe,y2)=>{"use strict";var f9=Zi(),{MESSAGE:b2}=ri(),w9=rl();y2.exports=f9(t=>{let e=w9(Object.assign({},t,{level:void 0,message:void 0,splat:void 0})),i=t.padding&&t.padding[t.level]||"";return e!=="{}"?t[b2]=`${t.level}:${i} ${t.message} ${e}`:t[b2]=`${t.level}:${i} ${t.message}`,t})});var O2=w((ele,S2)=>{"use strict";var v9=require("util"),{SPLAT:j2}=ri(),C9=/%[scdjifoO%]/g,A9=/%%/g,uC=class{constructor(e){this.options=e}_splat(e,i){let n=e.message,a=e[j2]||e.splat||[],r=n.match(A9),s=r&&r.length||0,l=i.length-s-a.length,u=l<0?a.splice(l,-1*l):[],c=u.length;if(c)for(let p=0;p1?n.splice(0):n,s=r.length;if(s)for(let o=0;onew uC(t)});var T2=w((wp,x2)=>{(function(t,e){typeof wp=="object"&&typeof x2<"u"?e(wp):typeof define=="function"&&define.amd?define(["exports"],e):e(t.fecha={})})(wp,(function(t){"use strict";var e=/d{1,4}|M{1,4}|YY(?:YY)?|S{1,3}|Do|ZZ|Z|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g,i="\\d\\d?",n="\\d\\d",a="\\d{3}",r="\\d{4}",s="[^\\s]+",o=/\[([^]*?)\]/gm;function l(S,R){for(var Ae=[],Se=0,I=S.length;Se-1?I:null}};function c(S){for(var R=[],Ae=1;Ae3?0:(S-S%10!==10?1:0)*S%10]}},f=c({},m),v=function(S){return f=c(f,S)},y=function(S){return S.replace(/[|\\{()[^$+*?.-]/g,"\\$&")},A=function(S,R){for(R===void 0&&(R=2),S=String(S);S.length0?"-":"+")+A(Math.floor(Math.abs(R)/60)*100+Math.abs(R)%60,4)},Z:function(S){var R=S.getTimezoneOffset();return(R>0?"-":"+")+A(Math.floor(Math.abs(R)/60),2)+":"+A(Math.abs(R)%60,2)}},O=function(S){return+S-1},$=[null,i],N=[null,s],X=["isPm",s,function(S,R){var Ae=S.toLowerCase();return Ae===R.amPm[0]?0:Ae===R.amPm[1]?1:null}],F=["timezoneOffset","[^\\s]*?[\\+\\-]\\d\\d:?\\d\\d|[^\\s]*?Z?",function(S){var R=(S+"").match(/([+-]|\d\d)/gi);if(R){var Ae=+R[1]*60+parseInt(R[2],10);return R[0]==="+"?Ae:-Ae}return 0}],k={D:["day",i],DD:["day",n],Do:["day",i+s,function(S){return parseInt(S,10)}],M:["month",i,O],MM:["month",n,O],YY:["year",n,function(S){var R=new Date,Ae=+(""+R.getFullYear()).substr(0,2);return+(""+(+S>68?Ae-1:Ae)+S)}],h:["hour",i,void 0,"isPm"],hh:["hour",n,void 0,"isPm"],H:["hour",i],HH:["hour",n],m:["minute",i],mm:["minute",n],s:["second",i],ss:["second",n],YYYY:["year",r],S:["millisecond","\\d",function(S){return+S*100}],SS:["millisecond",n,function(S){return+S*10}],SSS:["millisecond",a],d:$,dd:$,ddd:N,dddd:N,MMM:["month",s,u("monthNamesShort")],MMMM:["month",s,u("monthNames")],a:X,A:X,ZZ:F,Z:F},Q={default:"ddd MMM DD YYYY HH:mm:ss",shortDate:"M/D/YY",mediumDate:"MMM D, YYYY",longDate:"MMMM D, YYYY",fullDate:"dddd, MMMM D, YYYY",isoDate:"YYYY-MM-DD",isoDateTime:"YYYY-MM-DDTHH:mm:ssZ",shortTime:"HH:mm",mediumTime:"HH:mm:ss",longTime:"HH:mm:ss.SSS"},Z=function(S){return c(Q,S)},ie=function(S,R,Ae){if(R===void 0&&(R=Q.default),Ae===void 0&&(Ae={}),typeof S=="number"&&(S=new Date(S)),Object.prototype.toString.call(S)!=="[object Date]"||isNaN(S.getTime()))throw new Error("Invalid Date pass to format");R=Q[R]||R;var Se=[];R=R.replace(o,function(ei,Re){return Se.push(Re),"@@@"});var I=c(c({},f),Ae);return R=R.replace(e,function(ei){return b[ei](S,I)}),R.replace(/@@@/g,function(){return Se.shift()})};function se(S,R,Ae){if(Ae===void 0&&(Ae={}),typeof R!="string")throw new Error("Invalid format in fecha parse");if(R=Q[R]||R,S.length>1e3)return null;var Se=new Date,I={year:Se.getFullYear(),month:0,day:1,hour:0,minute:0,second:0,millisecond:0,isPm:null,timezoneOffset:null},ei=[],Re=[],Me=R.replace(o,function(wn,Ge){return Re.push(y(Ge)),"@@@"}),Oi={},vi={};Me=y(Me).replace(e,function(wn){var Ge=k[wn],Ya=Ge[0],gI=Ge[1],oy=Ge[3];if(Oi[Ya])throw new Error("Invalid format. "+Ya+" specified twice in format");return Oi[Ya]=!0,oy&&(vi[oy]=!0),ei.push(Ge),"("+gI+")"}),Object.keys(vi).forEach(function(wn){if(!Oi[wn])throw new Error("Invalid format. "+wn+" is required in specified format")}),Me=Me.replace(/@@@/g,function(){return Re.shift()});var nn=S.match(new RegExp(Me,"i"));if(!nn)return null;for(var G=c(c({},f),Ae),x=1;x11||I.month<0||I.day>31||I.day<1||I.hour>23||I.hour<0||I.minute>59||I.minute<0||I.second>59||I.second<0)return null;return pi}var De={format:ie,parse:se,defaultI18n:m,setGlobalDateI18n:v,setGlobalDateMasks:Z};t.assign=c,t.default=De,t.format=ie,t.parse=se,t.defaultI18n=m,t.setGlobalDateI18n=v,t.setGlobalDateMasks=Z,Object.defineProperty(t,"__esModule",{value:!0})}))});var E2=w((ile,M2)=>{"use strict";var b9=T2(),y9=Zi();M2.exports=y9((t,e={})=>(e.format&&(t.timestamp=typeof e.format=="function"?e.format():b9.format(new Date,e.format)),t.timestamp||(t.timestamp=new Date().toISOString()),e.alias&&(t[e.alias]=t.timestamp),t))});var q2=w((nle,k2)=>{"use strict";var cC=Fv(),P9=Zi(),{MESSAGE:pC}=ri();k2.exports=P9((t,e)=>(e.level!==!1&&(t.level=cC.strip(t.level)),e.message!==!1&&(t.message=cC.strip(String(t.message))),e.raw!==!1&&t[pC]&&(t[pC]=cC.strip(String(t[pC]))),t))});var hC=w(dC=>{"use strict";var j9=dC.format=Zi();dC.levels=Z_();function ji(t,e){Object.defineProperty(j9,t,{get(){return e()},configurable:!0})}ji("align",function(){return Q_()});ji("errors",function(){return e2()});ji("cli",function(){return n2()});ji("combine",function(){return a2()});ji("colorize",function(){return pp()});ji("json",function(){return lC()});ji("label",function(){return c2()});ji("logstash",function(){return d2()});ji("metadata",function(){return g2()});ji("ms",function(){return f2()});ji("padLevels",function(){return iC()});ji("prettyPrint",function(){return C2()});ji("printf",function(){return A2()});ji("simple",function(){return P2()});ji("splat",function(){return O2()});ji("timestamp",function(){return E2()});ji("uncolorize",function(){return q2()})});var gC=w(vp=>{"use strict";var{format:_2}=require("util");vp.warn={deprecated(t){return()=>{throw new Error(_2("{ %s } was removed in winston@3.0.0.",t))}},useFormat(t){return()=>{throw new Error([_2("{ %s } was removed in winston@3.0.0.",t),"Use a custom winston.format = winston.format(function) instead."].join(` -`))}},forFunctions(t,e,i){i.forEach(n=>{t[n]=vp.warn[e](n)})},forProperties(t,e,i){i.forEach(n=>{let a=vp.warn[e](n);Object.defineProperty(t,n,{get:a,set:a})})}}});var H2=w((rle,S9)=>{S9.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 I2=w((sle,R2)=>{R2.exports=require("util").deprecate});var mC=w((ole,z2)=>{z2.exports=require("stream")});var wC=w((lle,G2)=>{"use strict";function O9(t,e){var i=this,n=this._readableState&&this._readableState.destroyed,a=this._writableState&&this._writableState.destroyed;return n||a?(e?e(t):t&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(fC,this,t)):process.nextTick(fC,this,t)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(t||null,function(r){!e&&r?i._writableState?i._writableState.errorEmitted?process.nextTick(Cp,i):(i._writableState.errorEmitted=!0,process.nextTick(D2,i,r)):process.nextTick(D2,i,r):e?(process.nextTick(Cp,i),e(r)):process.nextTick(Cp,i)}),this)}function D2(t,e){fC(t,e),Cp(t)}function Cp(t){t._writableState&&!t._writableState.emitClose||t._readableState&&!t._readableState.emitClose||t.emit("close")}function x9(){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 fC(t,e){t.emit("error",e)}function T9(t,e){var i=t._readableState,n=t._writableState;i&&i.autoDestroy||n&&n.autoDestroy?t.destroy(e):t.emit("error",e)}G2.exports={destroy:O9,undestroy:x9,errorOrDestroy:T9}});var Ut=w((ule,U2)=>{"use strict";var N2={};function mn(t,e,i){i||(i=Error);function n(r,s,o){return typeof e=="string"?e:e(r,s,o)}class a extends i{constructor(s,o,l){super(n(s,o,l))}}a.prototype.name=i.name,a.prototype.code=t,N2[t]=a}function $2(t,e){if(Array.isArray(t)){let i=t.length;return t=t.map(n=>String(n)),i>2?`one of ${e} ${t.slice(0,i-1).join(", ")}, or `+t[i-1]:i===2?`one of ${e} ${t[0]} or ${t[1]}`:`of ${e} ${t[0]}`}else return`of ${e} ${String(t)}`}function M9(t,e,i){return t.substr(!i||i<0?0:+i,e.length)===e}function E9(t,e,i){return(i===void 0||i>t.length)&&(i=t.length),t.substring(i-e.length,i)===e}function k9(t,e,i){return typeof i!="number"&&(i=0),i+e.length>t.length?!1:t.indexOf(e,i)!==-1}mn("ERR_INVALID_OPT_VALUE",function(t,e){return'The value "'+e+'" is invalid for option "'+t+'"'},TypeError);mn("ERR_INVALID_ARG_TYPE",function(t,e,i){let n;typeof e=="string"&&M9(e,"not ")?(n="must not be",e=e.replace(/^not /,"")):n="must be";let a;if(E9(t," argument"))a=`The ${t} ${n} ${$2(e,"type")}`;else{let r=k9(t,".")?"property":"argument";a=`The "${t}" ${r} ${n} ${$2(e,"type")}`}return a+=`. Received type ${typeof i}`,a},TypeError);mn("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF");mn("ERR_METHOD_NOT_IMPLEMENTED",function(t){return"The "+t+" method is not implemented"});mn("ERR_STREAM_PREMATURE_CLOSE","Premature close");mn("ERR_STREAM_DESTROYED",function(t){return"Cannot call "+t+" after a stream was destroyed"});mn("ERR_MULTIPLE_CALLBACK","Callback called multiple times");mn("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable");mn("ERR_STREAM_WRITE_AFTER_END","write after end");mn("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);mn("ERR_UNKNOWN_ENCODING",function(t){return"Unknown encoding: "+t},TypeError);mn("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event");U2.exports.codes=N2});var vC=w((cle,L2)=>{"use strict";var q9=Ut().codes.ERR_INVALID_OPT_VALUE;function _9(t,e,i){return t.highWaterMark!=null?t.highWaterMark:e?t[i]:null}function H9(t,e,i,n){var a=_9(e,n,i);if(a!=null){if(!(isFinite(a)&&Math.floor(a)===a)||a<0){var r=n?i:"highWaterMark";throw new q9(r,a)}return Math.floor(a)}return t.objectMode?16:16*1024}L2.exports={getHighWaterMark:H9}});var W2=w((ple,CC)=>{typeof Object.create=="function"?CC.exports=function(e,i){i&&(e.super_=i,e.prototype=Object.create(i.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:CC.exports=function(e,i){if(i){e.super_=i;var n=function(){};n.prototype=i.prototype,e.prototype=new n,e.prototype.constructor=e}}});var is=w((dle,bC)=>{try{if(AC=require("util"),typeof AC.inherits!="function")throw"";bC.exports=AC.inherits}catch{bC.exports=W2()}var AC});var K2=w((hle,Z2)=>{"use strict";function B2(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),i.push.apply(i,n)}return i}function F2(t){for(var e=1;e0?this.tail.next=n:this.head=n,this.tail=n,++this.length}},{key:"unshift",value:function(i){var n={data:i,next:this.head};this.length===0&&(this.tail=n),this.head=n,++this.length}},{key:"shift",value:function(){if(this.length!==0){var i=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,i}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(i){if(this.length===0)return"";for(var n=this.head,a=""+n.data;n=n.next;)a+=i+n.data;return a}},{key:"concat",value:function(i){if(this.length===0)return Ap.alloc(0);for(var n=Ap.allocUnsafe(i>>>0),a=this.head,r=0;a;)U9(a.data,n,r),r+=a.data.length,a=a.next;return n}},{key:"consume",value:function(i,n){var a;return is.length?s.length:i;if(o===s.length?r+=s:r+=s.slice(0,i),i-=o,i===0){o===s.length?(++a,n.next?this.head=n.next:this.head=this.tail=null):(this.head=n,n.data=s.slice(o));break}++a}return this.length-=a,r}},{key:"_getBuffer",value:function(i){var n=Ap.allocUnsafe(i),a=this.head,r=1;for(a.data.copy(n),i-=a.data.length;a=a.next;){var s=a.data,o=i>s.length?s.length:i;if(s.copy(n,n.length-i,0,o),i-=o,i===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,n}},{key:N9,value:function(i,n){return yC(this,F2(F2({},n),{},{depth:0,customInspect:!1}))}}]),t})()});var X2=w((PC,Y2)=>{var bp=require("buffer"),Bn=bp.Buffer;function Q2(t,e){for(var i in t)e[i]=t[i]}Bn.from&&Bn.alloc&&Bn.allocUnsafe&&Bn.allocUnsafeSlow?Y2.exports=bp:(Q2(bp,PC),PC.Buffer=La);function La(t,e,i){return Bn(t,e,i)}La.prototype=Object.create(Bn.prototype);Q2(Bn,La);La.from=function(t,e,i){if(typeof t=="number")throw new TypeError("Argument must not be a number");return Bn(t,e,i)};La.alloc=function(t,e,i){if(typeof t!="number")throw new TypeError("Argument must be a number");var n=Bn(t);return e!==void 0?typeof i=="string"?n.fill(e,i):n.fill(e):n.fill(0),n};La.allocUnsafe=function(t){if(typeof t!="number")throw new TypeError("Argument must be a number");return Bn(t)};La.allocUnsafeSlow=function(t){if(typeof t!="number")throw new TypeError("Argument must be a number");return bp.SlowBuffer(t)}});var OC=w(i0=>{"use strict";var SC=X2().Buffer,e0=SC.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 L9(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 W9(t){var e=L9(t);if(typeof e!="string"&&(SC.isEncoding===e0||!e0(t)))throw new Error("Unknown encoding: "+t);return e||t}i0.StringDecoder=ol;function ol(t){this.encoding=W9(t);var e;switch(this.encoding){case"utf16le":this.text=K9,this.end=Q9,e=4;break;case"utf8":this.fillLast=V9,e=4;break;case"base64":this.text=Y9,this.end=X9,e=3;break;default:this.write=e6,this.end=i6;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=SC.allocUnsafe(e)}ol.prototype.write=function(t){if(t.length===0)return"";var e,i;if(this.lastNeed){if(e=this.fillLast(t),e===void 0)return"";i=this.lastNeed,this.lastNeed=0}else i=0;return i>5===6?2:t>>4===14?3:t>>3===30?4:t>>6===2?-1:-2}function B9(t,e,i){var n=e.length-1;if(n=0?(a>0&&(t.lastNeed=a-1),a):--n=0?(a>0&&(t.lastNeed=a-2),a):--n=0?(a>0&&(a===2?a=0:t.lastNeed=a-3),a):0))}function F9(t,e,i){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 V9(t){var e=this.lastTotal-this.lastNeed,i=F9(this,t,e);if(i!==void 0)return i;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 J9(t,e){var i=B9(this,t,e);if(!this.lastNeed)return t.toString("utf8",e);this.lastTotal=i;var n=t.length-(i-this.lastNeed);return t.copy(this.lastChar,0,n),t.toString("utf8",e,n)}function Z9(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+"\uFFFD":e}function K9(t,e){if((t.length-e)%2===0){var i=t.toString("utf16le",e);if(i){var n=i.charCodeAt(i.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1],i.slice(0,-1)}return i}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=t[t.length-1],t.toString("utf16le",e,t.length-1)}function Q9(t){var e=t&&t.length?this.write(t):"";if(this.lastNeed){var i=this.lastTotal-this.lastNeed;return e+this.lastChar.toString("utf16le",0,i)}return e}function Y9(t,e){var i=(t.length-e)%3;return i===0?t.toString("base64",e):(this.lastNeed=3-i,this.lastTotal=3,i===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-i))}function X9(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}function e6(t){return t.toString(this.encoding)}function i6(t){return t&&t.length?this.write(t):""}});var yp=w((mle,a0)=>{"use strict";var n0=Ut().codes.ERR_STREAM_PREMATURE_CLOSE;function n6(t){var e=!1;return function(){if(!e){e=!0;for(var i=arguments.length,n=new Array(i),a=0;a{"use strict";var Pp;function Lt(t,e,i){return e=r6(e),e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function r6(t){var e=s6(t,"string");return typeof e=="symbol"?e:String(e)}function s6(t,e){if(typeof t!="object"||t===null)return t;var i=t[Symbol.toPrimitive];if(i!==void 0){var n=i.call(t,e||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var o6=yp(),Wt=Symbol("lastResolve"),Wa=Symbol("lastReject"),ll=Symbol("error"),jp=Symbol("ended"),Ba=Symbol("lastPromise"),xC=Symbol("handlePromise"),Fa=Symbol("stream");function Bt(t,e){return{value:t,done:e}}function l6(t){var e=t[Wt];if(e!==null){var i=t[Fa].read();i!==null&&(t[Ba]=null,t[Wt]=null,t[Wa]=null,e(Bt(i,!1)))}}function u6(t){process.nextTick(l6,t)}function c6(t,e){return function(i,n){t.then(function(){if(e[jp]){i(Bt(void 0,!0));return}e[xC](i,n)},n)}}var p6=Object.getPrototypeOf(function(){}),d6=Object.setPrototypeOf((Pp={get stream(){return this[Fa]},next:function(){var e=this,i=this[ll];if(i!==null)return Promise.reject(i);if(this[jp])return Promise.resolve(Bt(void 0,!0));if(this[Fa].destroyed)return new Promise(function(s,o){process.nextTick(function(){e[ll]?o(e[ll]):s(Bt(void 0,!0))})});var n=this[Ba],a;if(n)a=new Promise(c6(n,this));else{var r=this[Fa].read();if(r!==null)return Promise.resolve(Bt(r,!1));a=new Promise(this[xC])}return this[Ba]=a,a}},Lt(Pp,Symbol.asyncIterator,function(){return this}),Lt(Pp,"return",function(){var e=this;return new Promise(function(i,n){e[Fa].destroy(null,function(a){if(a){n(a);return}i(Bt(void 0,!0))})})}),Pp),p6),h6=function(e){var i,n=Object.create(d6,(i={},Lt(i,Fa,{value:e,writable:!0}),Lt(i,Wt,{value:null,writable:!0}),Lt(i,Wa,{value:null,writable:!0}),Lt(i,ll,{value:null,writable:!0}),Lt(i,jp,{value:e._readableState.endEmitted,writable:!0}),Lt(i,xC,{value:function(r,s){var o=n[Fa].read();o?(n[Ba]=null,n[Wt]=null,n[Wa]=null,r(Bt(o,!1))):(n[Wt]=r,n[Wa]=s)},writable:!0}),i));return n[Ba]=null,o6(e,function(a){if(a&&a.code!=="ERR_STREAM_PREMATURE_CLOSE"){var r=n[Wa];r!==null&&(n[Ba]=null,n[Wt]=null,n[Wa]=null,r(a)),n[ll]=a;return}var s=n[Wt];s!==null&&(n[Ba]=null,n[Wt]=null,n[Wa]=null,s(Bt(void 0,!0))),n[jp]=!0}),e.on("readable",u6.bind(null,n)),n};r0.exports=h6});var c0=w((wle,u0)=>{"use strict";function o0(t,e,i,n,a,r,s){try{var o=t[r](s),l=o.value}catch(u){i(u);return}o.done?e(l):Promise.resolve(l).then(n,a)}function g6(t){return function(){var e=this,i=arguments;return new Promise(function(n,a){var r=t.apply(e,i);function s(l){o0(r,n,a,s,o,"next",l)}function o(l){o0(r,n,a,s,o,"throw",l)}s(void 0)})}}function l0(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),i.push.apply(i,n)}return i}function m6(t){for(var e=1;e{"use strict";A0.exports=je;var ns;je.ReadableState=g0;var vle=require("events").EventEmitter,h0=function(e,i){return e.listeners(i).length},cl=mC(),Sp=require("buffer").Buffer,b6=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function y6(t){return Sp.from(t)}function P6(t){return Sp.isBuffer(t)||t instanceof b6}var TC=require("util"),ue;TC&&TC.debuglog?ue=TC.debuglog("stream"):ue=function(){};var j6=K2(),RC=wC(),S6=vC(),O6=S6.getHighWaterMark,Op=Ut().codes,x6=Op.ERR_INVALID_ARG_TYPE,T6=Op.ERR_STREAM_PUSH_AFTER_EOF,M6=Op.ERR_METHOD_NOT_IMPLEMENTED,E6=Op.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,ts,MC,EC;is()(je,cl);var ul=RC.errorOrDestroy,kC=["error","close","destroy","pause","resume"];function k6(t,e,i){if(typeof t.prependListener=="function")return t.prependListener(e,i);!t._events||!t._events[e]?t.on(e,i):Array.isArray(t._events[e])?t._events[e].unshift(i):t._events[e]=[i,t._events[e]]}function g0(t,e,i){ns=ns||Va(),t=t||{},typeof i!="boolean"&&(i=e instanceof ns),this.objectMode=!!t.objectMode,i&&(this.objectMode=this.objectMode||!!t.readableObjectMode),this.highWaterMark=O6(this,t,"readableHighWaterMark",i),this.buffer=new j6,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&&(ts||(ts=OC().StringDecoder),this.decoder=new ts(t.encoding),this.encoding=t.encoding)}function je(t){if(ns=ns||Va(),!(this instanceof je))return new je(t);var e=this instanceof ns;this._readableState=new g0(t,this,e),this.readable=!0,t&&(typeof t.read=="function"&&(this._read=t.read),typeof t.destroy=="function"&&(this._destroy=t.destroy)),cl.call(this)}Object.defineProperty(je.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}});je.prototype.destroy=RC.destroy;je.prototype._undestroy=RC.undestroy;je.prototype._destroy=function(t,e){e(t)};je.prototype.push=function(t,e){var i=this._readableState,n;return i.objectMode?n=!0:typeof t=="string"&&(e=e||i.defaultEncoding,e!==i.encoding&&(t=Sp.from(t,e),e=""),n=!0),m0(this,t,e,!1,n)};je.prototype.unshift=function(t){return m0(this,t,null,!0,!1)};function m0(t,e,i,n,a){ue("readableAddChunk",e);var r=t._readableState;if(e===null)r.reading=!1,H6(t,r);else{var s;if(a||(s=q6(r,e)),s)ul(t,s);else if(r.objectMode||e&&e.length>0)if(typeof e!="string"&&!r.objectMode&&Object.getPrototypeOf(e)!==Sp.prototype&&(e=y6(e)),n)r.endEmitted?ul(t,new E6):qC(t,r,e,!0);else if(r.ended)ul(t,new T6);else{if(r.destroyed)return!1;r.reading=!1,r.decoder&&!i?(e=r.decoder.write(e),r.objectMode||e.length!==0?qC(t,r,e,!1):HC(t,r)):qC(t,r,e,!1)}else n||(r.reading=!1,HC(t,r))}return!r.ended&&(r.length=p0?t=p0:(t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++),t}function d0(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=_6(t)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0))}je.prototype.read=function(t){ue("read",t),t=parseInt(t,10);var e=this._readableState,i=t;if(t!==0&&(e.emittedReadable=!1),t===0&&e.needReadable&&((e.highWaterMark!==0?e.length>=e.highWaterMark:e.length>0)||e.ended))return ue("read: emitReadable",e.length,e.ended),e.length===0&&e.ended?_C(this):xp(this),null;if(t=d0(t,e),t===0&&e.ended)return e.length===0&&_C(this),null;var n=e.needReadable;ue("need readable",n),(e.length===0||e.length-t0?a=v0(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),i!==t&&e.ended&&_C(this)),a!==null&&this.emit("data",a),a};function H6(t,e){if(ue("onEofChunk"),!e.ended){if(e.decoder){var i=e.decoder.end();i&&i.length&&(e.buffer.push(i),e.length+=e.objectMode?1:i.length)}e.ended=!0,e.sync?xp(t):(e.needReadable=!1,e.emittedReadable||(e.emittedReadable=!0,f0(t)))}}function xp(t){var e=t._readableState;ue("emitReadable",e.needReadable,e.emittedReadable),e.needReadable=!1,e.emittedReadable||(ue("emitReadable",e.flowing),e.emittedReadable=!0,process.nextTick(f0,t))}function f0(t){var e=t._readableState;ue("emitReadable_",e.destroyed,e.length,e.ended),!e.destroyed&&(e.length||e.ended)&&(t.emit("readable"),e.emittedReadable=!1),e.needReadable=!e.flowing&&!e.ended&&e.length<=e.highWaterMark,IC(t)}function HC(t,e){e.readingMore||(e.readingMore=!0,process.nextTick(R6,t,e))}function R6(t,e){for(;!e.reading&&!e.ended&&(e.length1&&C0(n.pipes,t)!==-1)&&!u&&(ue("false write response, pause",n.awaitDrain),n.awaitDrain++),i.pause())}function d(f){ue("onerror",f),m(),t.removeListener("error",d),h0(t,"error")===0&&ul(t,f)}k6(t,"error",d);function h(){t.removeListener("finish",g),m()}t.once("close",h);function g(){ue("onfinish"),t.removeListener("close",h),m()}t.once("finish",g);function m(){ue("unpipe"),i.unpipe(t)}return t.emit("pipe",i),n.flowing||(ue("pipe resume"),i.resume()),t};function I6(t){return function(){var i=t._readableState;ue("pipeOnDrain",i.awaitDrain),i.awaitDrain&&i.awaitDrain--,i.awaitDrain===0&&h0(t,"data")&&(i.flowing=!0,IC(t))}}je.prototype.unpipe=function(t){var e=this._readableState,i={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,i),this);if(!t){var n=e.pipes,a=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var r=0;r0,n.flowing!==!1&&this.resume()):t==="readable"&&!n.endEmitted&&!n.readableListening&&(n.readableListening=n.needReadable=!0,n.flowing=!1,n.emittedReadable=!1,ue("on readable",n.length,n.reading),n.length?xp(this):n.reading||process.nextTick(z6,this)),i};je.prototype.addListener=je.prototype.on;je.prototype.removeListener=function(t,e){var i=cl.prototype.removeListener.call(this,t,e);return t==="readable"&&process.nextTick(w0,this),i};je.prototype.removeAllListeners=function(t){var e=cl.prototype.removeAllListeners.apply(this,arguments);return(t==="readable"||t===void 0)&&process.nextTick(w0,this),e};function w0(t){var e=t._readableState;e.readableListening=t.listenerCount("readable")>0,e.resumeScheduled&&!e.paused?e.flowing=!0:t.listenerCount("data")>0&&t.resume()}function z6(t){ue("readable nexttick read 0"),t.read(0)}je.prototype.resume=function(){var t=this._readableState;return t.flowing||(ue("resume"),t.flowing=!t.readableListening,D6(this,t)),t.paused=!1,this};function D6(t,e){e.resumeScheduled||(e.resumeScheduled=!0,process.nextTick(G6,t,e))}function G6(t,e){ue("resume",e.reading),e.reading||t.read(0),e.resumeScheduled=!1,t.emit("resume"),IC(t),e.flowing&&!e.reading&&t.read(0)}je.prototype.pause=function(){return ue("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(ue("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function IC(t){var e=t._readableState;for(ue("flow",e.flowing);e.flowing&&t.read()!==null;);}je.prototype.wrap=function(t){var e=this,i=this._readableState,n=!1;t.on("end",function(){if(ue("wrapped end"),i.decoder&&!i.ended){var s=i.decoder.end();s&&s.length&&e.push(s)}e.push(null)}),t.on("data",function(s){if(ue("wrapped data"),i.decoder&&(s=i.decoder.write(s)),!(i.objectMode&&s==null)&&!(!i.objectMode&&(!s||!s.length))){var o=e.push(s);o||(n=!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?i=e.buffer.join(""):e.buffer.length===1?i=e.buffer.first():i=e.buffer.concat(e.length),e.buffer.clear()):i=e.buffer.consume(t,e.decoder),i}function _C(t){var e=t._readableState;ue("endReadable",e.endEmitted),e.endEmitted||(e.ended=!0,process.nextTick($6,e,t))}function $6(t,e){if(ue("endReadableNT",t.endEmitted,t.length),!t.endEmitted&&t.length===0&&(t.endEmitted=!0,e.readable=!1,e.emit("end"),t.autoDestroy)){var i=e._writableState;(!i||i.autoDestroy&&i.finished)&&e.destroy()}}typeof Symbol=="function"&&(je.from=function(t,e){return EC===void 0&&(EC=c0()),EC(je,t,e)});function C0(t,e){for(var i=0,n=t.length;i{"use strict";var N6=Object.keys||function(t){var e=[];for(var i in t)e.push(i);return e};y0.exports=Fn;var b0=zC(),GC=Ep();is()(Fn,b0);for(DC=N6(GC.prototype),Tp=0;Tp{"use strict";T0.exports=Ye;function j0(t){var e=this;this.next=null,this.entry=null,this.finish=function(){fQ(e,t)}}var as;Ye.WritableState=dl;var W6={deprecate:I2()},S0=mC(),qp=require("buffer").Buffer,B6=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function F6(t){return qp.from(t)}function V6(t){return qp.isBuffer(t)||t instanceof B6}var NC=wC(),J6=vC(),Z6=J6.getHighWaterMark,Ft=Ut().codes,K6=Ft.ERR_INVALID_ARG_TYPE,Q6=Ft.ERR_METHOD_NOT_IMPLEMENTED,Y6=Ft.ERR_MULTIPLE_CALLBACK,X6=Ft.ERR_STREAM_CANNOT_PIPE,eQ=Ft.ERR_STREAM_DESTROYED,iQ=Ft.ERR_STREAM_NULL_VALUES,nQ=Ft.ERR_STREAM_WRITE_AFTER_END,tQ=Ft.ERR_UNKNOWN_ENCODING,rs=NC.errorOrDestroy;is()(Ye,S0);function aQ(){}function dl(t,e,i){as=as||Va(),t=t||{},typeof i!="boolean"&&(i=e instanceof as),this.objectMode=!!t.objectMode,i&&(this.objectMode=this.objectMode||!!t.writableObjectMode),this.highWaterMark=Z6(this,t,"writableHighWaterMark",i),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var n=t.decodeStrings===!1;this.decodeStrings=!n,this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(a){pQ(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 j0(this)}dl.prototype.getBuffer=function(){for(var e=this.bufferedRequest,i=[];e;)i.push(e),e=e.next;return i};(function(){try{Object.defineProperty(dl.prototype,"buffer",{get:W6.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}})();var kp;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(kp=Function.prototype[Symbol.hasInstance],Object.defineProperty(Ye,Symbol.hasInstance,{value:function(e){return kp.call(this,e)?!0:this!==Ye?!1:e&&e._writableState instanceof dl}})):kp=function(e){return e instanceof this};function Ye(t){as=as||Va();var e=this instanceof as;if(!e&&!kp.call(Ye,this))return new Ye(t);this._writableState=new dl(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)),S0.call(this)}Ye.prototype.pipe=function(){rs(this,new X6)};function rQ(t,e){var i=new nQ;rs(t,i),process.nextTick(e,i)}function sQ(t,e,i,n){var a;return i===null?a=new iQ:typeof i!="string"&&!e.objectMode&&(a=new K6("chunk",["string","Buffer"],i)),a?(rs(t,a),process.nextTick(n,a),!1):!0}Ye.prototype.write=function(t,e,i){var n=this._writableState,a=!1,r=!n.objectMode&&V6(t);return r&&!qp.isBuffer(t)&&(t=F6(t)),typeof e=="function"&&(i=e,e=null),r?e="buffer":e||(e=n.defaultEncoding),typeof i!="function"&&(i=aQ),n.ending?rQ(this,i):(r||sQ(this,n,t,i))&&(n.pendingcb++,a=lQ(this,n,r,t,e,i)),a};Ye.prototype.cork=function(){this._writableState.corked++};Ye.prototype.uncork=function(){var t=this._writableState;t.corked&&(t.corked--,!t.writing&&!t.corked&&!t.bufferProcessing&&t.bufferedRequest&&O0(this,t))};Ye.prototype.setDefaultEncoding=function(e){if(typeof e=="string"&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new tQ(e);return this._writableState.defaultEncoding=e,this};Object.defineProperty(Ye.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function oQ(t,e,i){return!t.objectMode&&t.decodeStrings!==!1&&typeof e=="string"&&(e=qp.from(e,i)),e}Object.defineProperty(Ye.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function lQ(t,e,i,n,a,r){if(!i){var s=oQ(e,n,a);n!==s&&(i=!0,a="buffer",n=s)}var o=e.objectMode?1:n.length;e.length+=o;var l=e.length{"use strict";var wQ=require("util"),M0=Ep(),{LEVEL:E0}=ri(),hl=k0.exports=function(e={}){M0.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",i=>{this.levels=i.levels,this.parent=i}),this.once("unpipe",i=>{i===this.parent&&(this.parent=null,this.close&&this.close())})};wQ.inherits(hl,M0);hl.prototype._write=function(e,i,n){if(this.silent||e.exception===!0&&!this.handleExceptions)return n(null);let a=this.level||this.parent&&this.parent.level;if(!a||this.levels[a]>=this.levels[e[E0]]){if(e&&!this.format)return this.log(e,n);let r,s;try{s=this.format.transform(Object.assign({},e),this.format.options)}catch(o){r=o}if(r||!s){if(n(),r)throw r;return}return this.log(s,n)}return this._writableState.sync=!1,n(null)};hl.prototype._writev=function(e,i){if(this.logv){let n=e.filter(this._accept,this);return n.length?this.logv(n,i):i(null)}for(let n=0;n=this.levels[i[E0]])&&(this.handleExceptions||i.exception!==!0))};hl.prototype._nop=function(){}});var WC=w((Ple,_0)=>{"use strict";var vQ=require("util"),{LEVEL:LC}=ri(),q0=UC(),gl=_0.exports=function(e={}){if(q0.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 i(n){this.emit("error",n,this.transport)}this.transport.__winstonError||(this.transport.__winstonError=i.bind(this),this.transport.on("error",this.transport.__winstonError))};vQ.inherits(gl,q0);gl.prototype._write=function(e,i,n){if(this.silent||e.exception===!0&&!this.handleExceptions)return n(null);(!this.level||this.levels[this.level]>=this.levels[e[LC]])&&this.transport.log(e[LC],e.message,e,this._nop),n(null)};gl.prototype._writev=function(e,i){for(let n=0;n{"use strict";BC.exports=UC();BC.exports.LegacyTransportStream=WC()});var I0=w((Ole,R0)=>{"use strict";var CQ=require("os"),{LEVEL:H0,MESSAGE:os}=ri(),AQ=ss();R0.exports=class extends AQ{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:CQ.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,i){if(setImmediate(()=>this.emit("logged",e)),this.stderrLevels[e[H0]]){console._stderr&&!this.forceConsole?console._stderr.write(`${e[os]}${this.eol}`):this._consoleError(e[os]),i&&i();return}else if(this.consoleWarnLevels[e[H0]]){console._stderr&&!this.forceConsole?console._stderr.write(`${e[os]}${this.eol}`):this._consoleWarn(e[os]),i&&i();return}console._stdout&&!this.forceConsole?console._stdout.write(`${e[os]}${this.eol}`):this._consoleLog(e[os]),i&&i()}_stringArrayToSet(e,i){if(!e)return{};if(i=i||"Cannot make set from type other than Array of string elements",!Array.isArray(e))throw new Error(i);return e.reduce((n,a)=>{if(typeof a!="string")throw new Error(i);return n[a]=!0,n},{})}}});var Hp=w((_p,z0)=>{"use strict";Object.defineProperty(_p,"__esModule",{value:!0});_p.default=bQ;function bQ(t){return t&&typeof t.length=="number"&&t.length>=0&&t.length%1===0}z0.exports=_p.default});var G0=w((Rp,D0)=>{"use strict";Object.defineProperty(Rp,"__esModule",{value:!0});Rp.default=function(t){return function(...e){var i=e.pop();return t.call(this,e,i)}};D0.exports=Rp.default});var U0=w(Vt=>{"use strict";Object.defineProperty(Vt,"__esModule",{value:!0});Vt.fallback=$0;Vt.wrap=N0;var yQ=Vt.hasQueueMicrotask=typeof queueMicrotask=="function"&&queueMicrotask,PQ=Vt.hasSetImmediate=typeof setImmediate=="function"&&setImmediate,jQ=Vt.hasNextTick=typeof process=="object"&&typeof process.nextTick=="function";function $0(t){setTimeout(t,0)}function N0(t){return(e,...i)=>t(()=>e(...i))}var ml;yQ?ml=queueMicrotask:PQ?ml=setImmediate:jQ?ml=process.nextTick:ml=$0;Vt.default=N0(ml)});var V0=w((Ip,F0)=>{"use strict";Object.defineProperty(Ip,"__esModule",{value:!0});Ip.default=EQ;var SQ=G0(),OQ=B0(SQ),xQ=U0(),TQ=B0(xQ),MQ=Ja();function B0(t){return t&&t.__esModule?t:{default:t}}function EQ(t){return(0,MQ.isAsync)(t)?function(...e){let i=e.pop(),n=t.apply(this,e);return L0(n,i)}:(0,OQ.default)(function(e,i){var n;try{n=t.apply(this,e)}catch(a){return i(a)}if(n&&typeof n.then=="function")return L0(n,i);i(null,n)})}function L0(t,e){return t.then(i=>{W0(e,null,i)},i=>{W0(e,i&&(i instanceof Error||i.message)?i:new Error(i))})}function W0(t,e,i){try{t(e,i)}catch(n){(0,TQ.default)(a=>{throw a},n)}}F0.exports=Ip.default});var Ja=w(pt=>{"use strict";Object.defineProperty(pt,"__esModule",{value:!0});pt.isAsyncIterable=pt.isAsyncGenerator=pt.isAsync=void 0;var kQ=V0(),qQ=_Q(kQ);function _Q(t){return t&&t.__esModule?t:{default:t}}function J0(t){return t[Symbol.toStringTag]==="AsyncFunction"}function HQ(t){return t[Symbol.toStringTag]==="AsyncGenerator"}function RQ(t){return typeof t[Symbol.asyncIterator]=="function"}function IQ(t){if(typeof t!="function")throw new Error("expected a function");return J0(t)?(0,qQ.default)(t):t}pt.default=IQ;pt.isAsync=J0;pt.isAsyncGenerator=HQ;pt.isAsyncIterable=RQ});var ls=w((zp,Z0)=>{"use strict";Object.defineProperty(zp,"__esModule",{value:!0});zp.default=zQ;function zQ(t,e){if(e||(e=t.length),!e)throw new Error("arity is undefined");function i(...n){return typeof n[e-1]=="function"?t.apply(this,n):new Promise((a,r)=>{n[e-1]=(s,...o)=>{if(s)return r(s);a(o.length>1?o:o[0])},t.apply(this,n)})}return i}Z0.exports=zp.default});var Q0=w((Dp,K0)=>{"use strict";Object.defineProperty(Dp,"__esModule",{value:!0});var DQ=Hp(),GQ=FC(DQ),$Q=Ja(),NQ=FC($Q),UQ=ls(),LQ=FC(UQ);function FC(t){return t&&t.__esModule?t:{default:t}}Dp.default=(0,LQ.default)((t,e,i)=>{var n=(0,GQ.default)(e)?[]:{};t(e,(a,r,s)=>{(0,NQ.default)(a)((o,...l)=>{l.length<2&&([l]=l),n[r]=l,s(o)})},a=>i(a,n))},3);K0.exports=Dp.default});var VC=w((Gp,Y0)=>{"use strict";Object.defineProperty(Gp,"__esModule",{value:!0});Gp.default=WQ;function WQ(t){function e(...i){if(t!==null){var n=t;t=null,n.apply(this,i)}}return Object.assign(e,t),e}Y0.exports=Gp.default});var eH=w(($p,X0)=>{"use strict";Object.defineProperty($p,"__esModule",{value:!0});$p.default=function(t){return t[Symbol.iterator]&&t[Symbol.iterator]()};X0.exports=$p.default});var tH=w((Np,nH)=>{"use strict";Object.defineProperty(Np,"__esModule",{value:!0});Np.default=YQ;var BQ=Hp(),FQ=iH(BQ),VQ=eH(),JQ=iH(VQ);function iH(t){return t&&t.__esModule?t:{default:t}}function ZQ(t){var e=-1,i=t.length;return function(){return++e{"use strict";Object.defineProperty(Up,"__esModule",{value:!0});Up.default=XQ;function XQ(t){return function(...e){if(t===null)throw new Error("Callback was already called.");var i=t;t=null,i.apply(this,e)}}aH.exports=Up.default});var Wp=w((Lp,rH)=>{"use strict";Object.defineProperty(Lp,"__esModule",{value:!0});var e8={};Lp.default=e8;rH.exports=Lp.default});var oH=w((Bp,sH)=>{"use strict";Object.defineProperty(Bp,"__esModule",{value:!0});Bp.default=a8;var i8=Wp(),n8=t8(i8);function t8(t){return t&&t.__esModule?t:{default:t}}function a8(t,e,i,n){let a=!1,r=!1,s=!1,o=0,l=0;function u(){o>=e||s||a||(s=!0,t.next().then(({value:d,done:h})=>{if(!(r||a)){if(s=!1,h){a=!0,o<=0&&n(null);return}o++,i(d,l,c),l++,u()}}).catch(p))}function c(d,h){if(o-=1,!r){if(d)return p(d);if(d===!1){a=!0,r=!0;return}if(h===n8.default||a&&o<=0)return a=!0,n(null);u()}}function p(d){r||(s=!1,a=!0,n(d))}u()}sH.exports=Bp.default});var pH=w((Fp,cH)=>{"use strict";Object.defineProperty(Fp,"__esModule",{value:!0});var r8=VC(),s8=fl(r8),o8=tH(),l8=fl(o8),u8=JC(),c8=fl(u8),lH=Ja(),p8=oH(),uH=fl(p8),d8=Wp(),h8=fl(d8);function fl(t){return t&&t.__esModule?t:{default:t}}Fp.default=t=>(e,i,n)=>{if(n=(0,s8.default)(n),t<=0)throw new RangeError("concurrency limit cannot be less than 1");if(!e)return n(null);if((0,lH.isAsyncGenerator)(e))return(0,uH.default)(e,t,i,n);if((0,lH.isAsyncIterable)(e))return(0,uH.default)(e[Symbol.asyncIterator](),t,i,n);var a=(0,l8.default)(e),r=!1,s=!1,o=0,l=!1;function u(p,d){if(!s)if(o-=1,p)r=!0,n(p);else if(p===!1)r=!0,s=!0;else{if(d===h8.default||r&&o<=0)return r=!0,n(null);l||c()}}function c(){for(l=!0;o{"use strict";Object.defineProperty(Vp,"__esModule",{value:!0});var g8=pH(),m8=ZC(g8),f8=Ja(),w8=ZC(f8),v8=ls(),C8=ZC(v8);function ZC(t){return t&&t.__esModule?t:{default:t}}function A8(t,e,i,n){return(0,m8.default)(e)(t,(0,w8.default)(i),n)}Vp.default=(0,C8.default)(A8,4);dH.exports=Vp.default});var mH=w((Jp,gH)=>{"use strict";Object.defineProperty(Jp,"__esModule",{value:!0});var b8=KC(),y8=hH(b8),P8=ls(),j8=hH(P8);function hH(t){return t&&t.__esModule?t:{default:t}}function S8(t,e,i){return(0,y8.default)(t,1,e,i)}Jp.default=(0,j8.default)(S8,3);gH.exports=Jp.default});var vH=w((Zp,wH)=>{"use strict";Object.defineProperty(Zp,"__esModule",{value:!0});Zp.default=E8;var O8=Q0(),x8=fH(O8),T8=mH(),M8=fH(T8);function fH(t){return t&&t.__esModule?t:{default:t}}function E8(t,e){return(0,x8.default)(M8.default,t,e)}wH.exports=Zp.default});var QC=w((Mle,AH)=>{"use strict";AH.exports=dt;var Kp=Ut().codes,k8=Kp.ERR_METHOD_NOT_IMPLEMENTED,q8=Kp.ERR_MULTIPLE_CALLBACK,_8=Kp.ERR_TRANSFORM_ALREADY_TRANSFORMING,H8=Kp.ERR_TRANSFORM_WITH_LENGTH_0,Qp=Va();is()(dt,Qp);function R8(t,e){var i=this._transformState;i.transforming=!1;var n=i.writecb;if(n===null)return this.emit("error",new q8);i.writechunk=null,i.writecb=null,e!=null&&this.push(e),n(t);var a=this._readableState;a.reading=!1,(a.needReadable||a.length{"use strict";yH.exports=wl;var bH=QC();is()(wl,bH);function wl(t){if(!(this instanceof wl))return new wl(t);bH.call(this,t)}wl.prototype._transform=function(t,e,i){i(null,t)}});var TH=w((kle,xH)=>{"use strict";var YC;function z8(t){var e=!1;return function(){e||(e=!0,t.apply(void 0,arguments))}}var OH=Ut().codes,D8=OH.ERR_MISSING_ARGS,G8=OH.ERR_STREAM_DESTROYED;function jH(t){if(t)throw t}function $8(t){return t.setHeader&&typeof t.abort=="function"}function N8(t,e,i,n){n=z8(n);var a=!1;t.on("close",function(){a=!0}),YC===void 0&&(YC=yp()),YC(t,{readable:e,writable:i},function(s){if(s)return n(s);a=!0,n()});var r=!1;return function(s){if(!a&&!r){if(r=!0,$8(t))return t.abort();if(typeof t.destroy=="function")return t.destroy();n(s||new G8("pipe"))}}}function SH(t){t()}function U8(t,e){return t.pipe(e)}function L8(t){return!t.length||typeof t[t.length-1]!="function"?jH:t.pop()}function W8(){for(var t=arguments.length,e=new Array(t),i=0;i0;return N8(s,l,u,function(c){a||(a=c),c&&r.forEach(SH),!l&&(r.forEach(SH),n(a))})});return e.reduce(U8)}xH.exports=W8});var Za=w((fn,Cl)=>{var vl=require("stream");process.env.READABLE_STREAM==="disable"&&vl?(Cl.exports=vl.Readable,Object.assign(Cl.exports,vl),Cl.exports.Stream=vl):(fn=Cl.exports=zC(),fn.Stream=vl||fn,fn.Readable=fn,fn.Writable=Ep(),fn.Duplex=Va(),fn.Transform=QC(),fn.PassThrough=PH(),fn.finished=yp(),fn.pipeline=TH())});var rA=w((qle,EH)=>{var us=[],Al=[],XC=function(){};function iA(t){return~us.indexOf(t)?!1:(us.push(t),!0)}function nA(t){XC=t}function B8(t){for(var e=[],i=0;i{var J8=rA(),Z8=J8(function t(e,i){return i=i||{},i.namespace=e,i.prod=!0,i.dev=!1,i.force||t.force?t.yep(i):t.nope(i)});kH.exports=Z8});var DH=w((Hle,zH)=>{"use strict";var Vn={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]},HH=Object.create(null);for(let t in Vn)Object.hasOwn(Vn,t)&&(HH[Vn[t]]=t);var ci={to:{},get:{}};ci.get=function(t){let e=t.slice(0,3).toLowerCase(),i,n;switch(e){case"hsl":{i=ci.get.hsl(t),n="hsl";break}case"hwb":{i=ci.get.hwb(t),n="hwb";break}default:{i=ci.get.rgb(t),n="rgb";break}}return i?{model:n,value:i}:null};ci.get.rgb=function(t){if(!t)return null;let e=/^#([a-f\d]{3,4})$/i,i=/^#([a-f\d]{6})([a-f\d]{2})?$/i,n=/^rgba?\(\s*([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)\s*(?:[\s,|/]\s*([+-]?[\d.]+)(%?)\s*)?\)$/,a=/^rgba?\(\s*([+-]?[\d.]+)%\s*,?\s*([+-]?[\d.]+)%\s*,?\s*([+-]?[\d.]+)%\s*(?:[\s,|/]\s*([+-]?[\d.]+)(%?)\s*)?\)$/,r=/^(\w+)$/,s=[0,0,0,1],o,l,u;if(o=t.match(i)){for(u=o[2],o=o[1],l=0;l<3;l++){let c=l*2;s[l]=Number.parseInt(o.slice(c,c+2),16)}u&&(s[3]=Number.parseInt(u,16)/255)}else if(o=t.match(e)){for(o=o[1],u=o[3],l=0;l<3;l++)s[l]=Number.parseInt(o[l]+o[l],16);u&&(s[3]=Number.parseInt(u+u,16)/255)}else if(o=t.match(n)){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(Vn,o[1])?(s=Vn[o[1]],s[3]=1,s):null:null;for(l=0;l<3;l++)s[l]=Jt(s[l],0,255);return s[3]=Jt(s[3],0,1),s};ci.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*)?\)$/,i=t.match(e);if(i){let n=Number.parseFloat(i[4]),a=(Number.parseFloat(i[1])%360+360)%360,r=Jt(Number.parseFloat(i[2]),0,100),s=Jt(Number.parseFloat(i[3]),0,100),o=Jt(Number.isNaN(n)?1:n,0,1);return[a,r,s,o]}return null};ci.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*)?\)$/,i=t.match(e);if(i){let n=Number.parseFloat(i[4]),a=(Number.parseFloat(i[1])%360+360)%360,r=Jt(Number.parseFloat(i[2]),0,100),s=Jt(Number.parseFloat(i[3]),0,100),o=Jt(Number.isNaN(n)?1:n,0,1);return[a,r,s,o]}return null};ci.to.hex=function(...t){return"#"+Yp(t[0])+Yp(t[1])+Yp(t[2])+(t[3]<1?Yp(Math.round(t[3]*255)):"")};ci.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]+")"};ci.to.rgb.percent=function(...t){let e=Math.round(t[0]/255*100),i=Math.round(t[1]/255*100),n=Math.round(t[2]/255*100);return t.length<4||t[3]===1?"rgb("+e+"%, "+i+"%, "+n+"%)":"rgba("+e+"%, "+i+"%, "+n+"%, "+t[3]+")"};ci.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]+")"};ci.to.hwb=function(...t){let e="";return t.length>=4&&t[3]!==1&&(e=", "+t[3]),"hwb("+t[0]+", "+t[1]+"%, "+t[2]+"%"+e+")"};ci.to.keyword=function(...t){return HH[t.slice(0,3)]};function Jt(t,e,i){return Math.min(Math.max(e,t),i)}function Yp(t){let e=Math.round(t).toString(16).toUpperCase();return e.length<2?"0"+e:e}var RH={};for(let t of Object.keys(Vn))RH[Vn[t]]=t;var H={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},oklab:{channels:3,labels:["okl","oka","okb"]},lch:{channels:3,labels:"lch"},oklch:{channels:3,labels:["okl","okc","okh"]},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}},ht=(6/29)**3;function cs(t){let e=t>.0031308?1.055*t**.4166666666666667-.055:t*12.92;return Math.min(Math.max(0,e),1)}function ps(t){return t>.04045?((t+.055)/1.055)**2.4:t/12.92}for(let t of Object.keys(H)){if(!("channels"in H[t]))throw new Error("missing channels property: "+t);if(!("labels"in H[t]))throw new Error("missing channel labels property: "+t);if(H[t].labels.length!==H[t].channels)throw new Error("channel and label counts mismatch: "+t);let{channels:e,labels:i}=H[t];delete H[t].channels,delete H[t].labels,Object.defineProperty(H[t],"channels",{value:e}),Object.defineProperty(H[t],"labels",{value:i})}H.rgb.hsl=function(t){let e=t[0]/255,i=t[1]/255,n=t[2]/255,a=Math.min(e,i,n),r=Math.max(e,i,n),s=r-a,o,l;switch(r){case a:{o=0;break}case e:{o=(i-n)/s;break}case i:{o=2+(n-e)/s;break}case n:{o=4+(e-i)/s;break}}o=Math.min(o*60,360),o<0&&(o+=360);let u=(a+r)/2;return r===a?l=0:u<=.5?l=s/(r+a):l=s/(2-r-a),[o,l*100,u*100]};H.rgb.hsv=function(t){let e,i,n,a,r,s=t[0]/255,o=t[1]/255,l=t[2]/255,u=Math.max(s,o,l),c=u-Math.min(s,o,l),p=function(d){return(u-d)/6/c+1/2};if(c===0)a=0,r=0;else{switch(r=c/u,e=p(s),i=p(o),n=p(l),u){case s:{a=n-i;break}case o:{a=1/3+e-n;break}case l:{a=2/3+i-e;break}}a<0?a+=1:a>1&&(a-=1)}return[a*360,r*100,u*100]};H.rgb.hwb=function(t){let e=t[0],i=t[1],n=t[2],a=H.rgb.hsl(t)[0],r=1/255*Math.min(e,Math.min(i,n));return n=1-1/255*Math.max(e,Math.max(i,n)),[a,r*100,n*100]};H.rgb.oklab=function(t){let e=ps(t[0]/255),i=ps(t[1]/255),n=ps(t[2]/255),a=Math.cbrt(.4122214708*e+.5363325363*i+.0514459929*n),r=Math.cbrt(.2119034982*e+.6806995451*i+.1073969566*n),s=Math.cbrt(.0883024619*e+.2817188376*i+.6299787005*n),o=.2104542553*a+.793617785*r-.0040720468*s,l=1.9779984951*a-2.428592205*r+.4505937099*s,u=.0259040371*a+.7827717662*r-.808675766*s;return[o*100,l*100,u*100]};H.rgb.cmyk=function(t){let e=t[0]/255,i=t[1]/255,n=t[2]/255,a=Math.min(1-e,1-i,1-n),r=(1-e-a)/(1-a)||0,s=(1-i-a)/(1-a)||0,o=(1-n-a)/(1-a)||0;return[r*100,s*100,o*100,a*100]};function K8(t,e){return(t[0]-e[0])**2+(t[1]-e[1])**2+(t[2]-e[2])**2}H.rgb.keyword=function(t){let e=RH[t];if(e)return e;let i=Number.POSITIVE_INFINITY,n;for(let a of Object.keys(Vn)){let r=Vn[a],s=K8(t,r);sht?i**(1/3):7.787*i+16/116,n=n>ht?n**(1/3):7.787*n+16/116,a=a>ht?a**(1/3):7.787*a+16/116;let r=116*n-16,s=500*(i-n),o=200*(n-a);return[r,s,o]};H.hsl.rgb=function(t){let e=t[0]/360,i=t[1]/100,n=t[2]/100,a,r;if(i===0)return r=n*255,[r,r,r];let s=n<.5?n*(1+i):n+i-n*i,o=2*n-s,l=[0,0,0];for(let u=0;u<3;u++)a=e+1/3*-(u-1),a<0&&a++,a>1&&a--,6*a<1?r=o+(s-o)*6*a:2*a<1?r=s:3*a<2?r=o+(s-o)*(2/3-a)*6:r=o,l[u]=r*255;return l};H.hsl.hsv=function(t){let e=t[0],i=t[1]/100,n=t[2]/100,a=i,r=Math.max(n,.01);n*=2,i*=n<=1?n:2-n,a*=r<=1?r:2-r;let s=(n+i)/2,o=n===0?2*a/(r+a):2*i/(n+i);return[e,o*100,s*100]};H.hsv.rgb=function(t){let e=t[0]/60,i=t[1]/100,n=t[2]/100,a=Math.floor(e)%6,r=e-Math.floor(e),s=255*n*(1-i),o=255*n*(1-i*r),l=255*n*(1-i*(1-r));switch(n*=255,a){case 0:return[n,l,s];case 1:return[o,n,s];case 2:return[s,n,l];case 3:return[s,o,n];case 4:return[l,s,n];case 5:return[n,s,o]}};H.hsv.hsl=function(t){let e=t[0],i=t[1]/100,n=t[2]/100,a=Math.max(n,.01),r,s;s=(2-i)*n;let o=(2-i)*a;return r=i*a,r/=o<=1?o:2-o,r=r||0,s/=2,[e,r*100,s*100]};H.hwb.rgb=function(t){let e=t[0]/360,i=t[1]/100,n=t[2]/100,a=i+n,r;a>1&&(i/=a,n/=a);let s=Math.floor(6*e),o=1-n;r=6*e-s,(s&1)!==0&&(r=1-r);let l=i+r*(o-i),u,c,p;switch(s){default:case 6:case 0:{u=o,c=l,p=i;break}case 1:{u=l,c=o,p=i;break}case 2:{u=i,c=o,p=l;break}case 3:{u=i,c=l,p=o;break}case 4:{u=l,c=i,p=o;break}case 5:{u=o,c=i,p=l;break}}return[u*255,c*255,p*255]};H.cmyk.rgb=function(t){let e=t[0]/100,i=t[1]/100,n=t[2]/100,a=t[3]/100,r=1-Math.min(1,e*(1-a)+a),s=1-Math.min(1,i*(1-a)+a),o=1-Math.min(1,n*(1-a)+a);return[r*255,s*255,o*255]};H.xyz.rgb=function(t){let e=t[0]/100,i=t[1]/100,n=t[2]/100,a,r,s;return a=e*3.2404542+i*-1.5371385+n*-.4985314,r=e*-.969266+i*1.8760108+n*.041556,s=e*.0556434+i*-.2040259+n*1.0572252,a=cs(a),r=cs(r),s=cs(s),[a*255,r*255,s*255]};H.xyz.lab=function(t){let e=t[0],i=t[1],n=t[2];e/=95.047,i/=100,n/=108.883,e=e>ht?e**(1/3):7.787*e+16/116,i=i>ht?i**(1/3):7.787*i+16/116,n=n>ht?n**(1/3):7.787*n+16/116;let a=116*i-16,r=500*(e-i),s=200*(i-n);return[a,r,s]};H.xyz.oklab=function(t){let e=t[0]/100,i=t[1]/100,n=t[2]/100,a=Math.cbrt(.8189330101*e+.3618667424*i-.1288597137*n),r=Math.cbrt(.0329845436*e+.9293118715*i+.0361456387*n),s=Math.cbrt(.0482003018*e+.2643662691*i+.633851707*n),o=.2104542553*a+.793617785*r-.0040720468*s,l=1.9779984951*a-2.428592205*r+.4505937099*s,u=.0259040371*a+.7827717662*r-.808675766*s;return[o*100,l*100,u*100]};H.oklab.oklch=function(t){return H.lab.lch(t)};H.oklab.xyz=function(t){let e=t[0]/100,i=t[1]/100,n=t[2]/100,a=(.999999998*e+.396337792*i+.215803758*n)**3,r=(1.000000008*e-.105561342*i-.063854175*n)**3,s=(1.000000055*e-.089484182*i-1.291485538*n)**3,o=1.227013851*a-.55779998*r+.281256149*s,l=-.040580178*a+1.11225687*r-.071676679*s,u=-.076381285*a-.421481978*r+1.58616322*s;return[o*100,l*100,u*100]};H.oklab.rgb=function(t){let e=t[0]/100,i=t[1]/100,n=t[2]/100,a=(e+.3963377774*i+.2158037573*n)**3,r=(e-.1055613458*i-.0638541728*n)**3,s=(e-.0894841775*i-1.291485548*n)**3,o=cs(4.0767416621*a-3.3077115913*r+.2309699292*s),l=cs(-1.2684380046*a+2.6097574011*r-.3413193965*s),u=cs(-.0041960863*a-.7034186147*r+1.707614701*s);return[o*255,l*255,u*255]};H.oklch.oklab=function(t){return H.lch.lab(t)};H.lab.xyz=function(t){let e=t[0],i=t[1],n=t[2],a,r,s;r=(e+16)/116,a=i/500+r,s=r-n/200;let o=r**3,l=a**3,u=s**3;return r=o>ht?o:(r-16/116)/7.787,a=l>ht?l:(a-16/116)/7.787,s=u>ht?u:(s-16/116)/7.787,a*=95.047,r*=100,s*=108.883,[a,r,s]};H.lab.lch=function(t){let e=t[0],i=t[1],n=t[2],a;a=Math.atan2(n,i)*360/2/Math.PI,a<0&&(a+=360);let s=Math.sqrt(i*i+n*n);return[e,s,a]};H.lch.lab=function(t){let e=t[0],i=t[1],a=t[2]/360*2*Math.PI,r=i*Math.cos(a),s=i*Math.sin(a);return[e,r,s]};H.rgb.ansi16=function(t,e=null){let[i,n,a]=t,r=e===null?H.rgb.hsv(t)[2]:e;if(r=Math.round(r/50),r===0)return 30;let s=30+(Math.round(a/255)<<2|Math.round(n/255)<<1|Math.round(i/255));return r===2&&(s+=60),s};H.hsv.ansi16=function(t){return H.rgb.ansi16(H.hsv.rgb(t),t[2])};H.rgb.ansi256=function(t){let e=t[0],i=t[1],n=t[2];return e>>4===i>>4&&i>>4===n>>4?e<8?16:e>248?231:Math.round((e-8)/247*24)+232:16+36*Math.round(e/255*5)+6*Math.round(i/255*5)+Math.round(n/255*5)};H.ansi16.rgb=function(t){t=t[0];let e=t%10;if(e===0||e===7)return t>50&&(e+=3.5),e=e/10.5*255,[e,e,e];let i=(Math.trunc(t>50)+1)*.5,n=(e&1)*i*255,a=(e>>1&1)*i*255,r=(e>>2&1)*i*255;return[n,a,r]};H.ansi256.rgb=function(t){if(t=t[0],t>=232){let r=(t-232)*10+8;return[r,r,r]}t-=16;let e,i=Math.floor(t/36)/5*255,n=Math.floor((e=t%36)/6)/5*255,a=e%6/5*255;return[i,n,a]};H.rgb.hex=function(t){let i=(((Math.round(t[0])&255)<<16)+((Math.round(t[1])&255)<<8)+(Math.round(t[2])&255)).toString(16).toUpperCase();return"000000".slice(i.length)+i};H.hex.rgb=function(t){let e=t.toString(16).match(/[a-f\d]{6}|[a-f\d]{3}/i);if(!e)return[0,0,0];let i=e[0];e[0].length===3&&(i=[...i].map(o=>o+o).join(""));let n=Number.parseInt(i,16),a=n>>16&255,r=n>>8&255,s=n&255;return[a,r,s]};H.rgb.hcg=function(t){let e=t[0]/255,i=t[1]/255,n=t[2]/255,a=Math.max(Math.max(e,i),n),r=Math.min(Math.min(e,i),n),s=a-r,o,l=s<1?r/(1-s):0;return s<=0?o=0:a===e?o=(i-n)/s%6:a===i?o=2+(n-e)/s:o=4+(e-i)/s,o/=6,o%=1,[o*360,s*100,l*100]};H.hsl.hcg=function(t){let e=t[1]/100,i=t[2]/100,n=i<.5?2*e*i:2*e*(1-i),a=0;return n<1&&(a=(i-.5*n)/(1-n)),[t[0],n*100,a*100]};H.hsv.hcg=function(t){let e=t[1]/100,i=t[2]/100,n=e*i,a=0;return n<1&&(a=(i-n)/(1-n)),[t[0],n*100,a*100]};H.hcg.rgb=function(t){let e=t[0]/360,i=t[1]/100,n=t[2]/100;if(i===0)return[n*255,n*255,n*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-i)*n,[(i*a[0]+l)*255,(i*a[1]+l)*255,(i*a[2]+l)*255]};H.hcg.hsv=function(t){let e=t[1]/100,i=t[2]/100,n=e+i*(1-e),a=0;return n>0&&(a=e/n),[t[0],a*100,n*100]};H.hcg.hsl=function(t){let e=t[1]/100,n=t[2]/100*(1-e)+.5*e,a=0;return n>0&&n<.5?a=e/(2*n):n>=.5&&n<1&&(a=e/(2*(1-n))),[t[0],a*100,n*100]};H.hcg.hwb=function(t){let e=t[1]/100,i=t[2]/100,n=e+i*(1-e);return[t[0],(n-e)*100,(1-n)*100]};H.hwb.hcg=function(t){let e=t[1]/100,n=1-t[2]/100,a=n-e,r=0;return a<1&&(r=(n-a)/(1-a)),[t[0],a*100,r*100]};H.apple.rgb=function(t){return[t[0]/65535*255,t[1]/65535*255,t[2]/65535*255]};H.rgb.apple=function(t){return[t[0]/255*65535,t[1]/255*65535,t[2]/255*65535]};H.gray.rgb=function(t){return[t[0]/100*255,t[0]/100*255,t[0]/100*255]};H.gray.hsl=function(t){return[0,0,t[0]]};H.gray.hsv=H.gray.hsl;H.gray.hwb=function(t){return[0,100,t[0]]};H.gray.cmyk=function(t){return[0,0,0,t[0]]};H.gray.lab=function(t){return[t[0],0,0]};H.gray.hex=function(t){let e=Math.round(t[0]/100*255)&255,n=((e<<16)+(e<<8)+e).toString(16).toUpperCase();return"000000".slice(n.length)+n};H.rgb.gray=function(t){return[(t[0]+t[1]+t[2])/3/255*100]};function Q8(){let t={},e=Object.keys(H);for(let{length:i}=e,n=0;n0;){let n=i.pop(),a=Object.keys(H[n]);for(let{length:r}=a,s=0;s1&&(i=n),t(i))};return"conversion"in t&&(e.conversion=t.conversion),e}function a7(t){let e=function(...i){let n=i[0];if(n==null)return n;n.length>1&&(i=n);let a=t(i);if(typeof a=="object")for(let{length:r}=a,s=0;s0){this.model=e||"rgb",n=fi[this.model].channels;let a=Array.prototype.slice.call(t,0,n);this.color=lA(a,n),this.valpha=typeof t[n]=="number"?t[n]: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 sA))throw new Error("Unable to parse color from object: "+JSON.stringify(t));this.model=sA[r];let{labels:s}=fi[this.model],o=[];for(i=0;i(t%360+360)%360),saturationl:Xe("hsl",1,li(100)),lightness:Xe("hsl",2,li(100)),saturationv:Xe("hsv",1,li(100)),value:Xe("hsv",2,li(100)),chroma:Xe("hcg",1,li(100)),gray:Xe("hcg",2,li(100)),white:Xe("hwb",1,li(100)),wblack:Xe("hwb",2,li(100)),cyan:Xe("cmyk",0,li(100)),magenta:Xe("cmyk",1,li(100)),yellow:Xe("cmyk",2,li(100)),black:Xe("cmyk",3,li(100)),x:Xe("xyz",0,li(95.047)),y:Xe("xyz",1,li(100)),z:Xe("xyz",2,li(108.833)),l:Xe("lab",0,li(100)),a:Xe("lab",1),b:Xe("lab",2),keyword(t){return t!==void 0?new ui(t):fi[this.model].keyword(this.color)},hex(t){return t!==void 0?new ui(t):ci.to.hex(...this.rgb().round().color)},hexa(t){if(t!==void 0)return new ui(t);let e=this.rgb().round().color,i=Math.round(this.valpha*255).toString(16).toUpperCase();return i.length===1&&(i="0"+i),ci.to.hex(...e)+i},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[i,n]of t.entries()){let a=n/255;e[i]=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(),i=t.luminosity();return e>i?(e+.05)/(i+.05):(i+.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 ui.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(),i=e.color[0];return i=(i+t)%360,i=i<0?360+i:i,e.color[0]=i,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 i=t.rgb(),n=this.rgb(),a=e===void 0?.5:e,r=2*a-1,s=i.alpha()-n.alpha(),o=((r*s===-1?r:(r+s)/(1+r*s))+1)/2,l=1-o;return ui.rgb(o*i.red()+l*n.red(),o*i.green()+l*n.green(),o*i.blue()+l*n.blue(),i.alpha()*a+n.alpha()*(1-a))}};for(let t of Object.keys(fi)){if(IH.includes(t))continue;let{channels:e}=fi[t];ui.prototype[t]=function(...i){return this.model===t?new ui(this):i.length>0?new ui(i,t):new ui([...o7(fi[this.model][t].raw(this.color)),this.valpha],t)},ui[t]=function(...i){let n=i[0];return typeof n=="number"&&(n=lA(i,e)),new ui(n,t)}}function r7(t,e){return Number(t.toFixed(e))}function s7(t){return function(e){return r7(e,t)}}function Xe(t,e,i){t=Array.isArray(t)?t:[t];for(let n of t)(oA[n]||=[])[e]=i;return t=t[0],function(n){let a;return n!==void 0?(i&&(n=i(n)),a=this[t](),a.color[e]=n,a):(a=this[t]().color[e],i&&(a=i(a)),a)}}function li(t){return function(e){return Math.max(0,Math.min(t,e))}}function o7(t){return Array.isArray(t)?t:[t]}function lA(t,e){for(let i=0;i{"use strict";function En(t,e){if(e)return new En(t).style(e);if(!(this instanceof En))return new En(t);this.text=t}En.prototype.prefix="\x1B[";En.prototype.suffix="m";En.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 i=e.substring(0,2),n=e.substring(2,4),a=e.substring(4,6);return[parseInt(i,16),parseInt(n,16),parseInt(a,16)]};En.prototype.rgb=function(e,i,n){var a=e/255*5,r=i/255*5,s=n/255*5;return this.ansi(a,r,s)};En.prototype.ansi=function(e,i,n){var a=Math.round(e),r=Math.round(i),s=Math.round(n);return 16+a*36+r*6+s};En.prototype.reset=function(){return this.prefix+"39;49"+this.suffix};En.prototype.style=function(e){return this.prefix+"38;5;"+this.rgb.apply(this,this.hex(e))+this.suffix+this.text+this.reset()};GH.exports=En});var UH=w((Ile,NH)=>{var p7=DH(),d7=$H();NH.exports=function(e,i){var n=i.namespace,a=i.colors!==!1?d7(n+":",p7(n)):n+":";return e[0]=a+" "+e[0],e}});var WH=w((zle,LH)=>{"use strict";LH.exports=function(e,i){if(!i)return!1;for(var n=i.split(/[\s,]+/),a=0;a{var h7=WH();BH.exports=function(e){return function(n){try{return h7(n,e())}catch{}return!1}}});var JH=w((Gle,VH)=>{var g7=FH();VH.exports=g7(function(){return process.env.DEBUG||process.env.DIAGNOSTICS})});var KH=w(($le,ZH)=>{ZH.exports=function(t,e){try{Function.prototype.apply.call(console.log,console,e)}catch{}}});var YH=w((Nle,QH)=>{var m7=rA(),f7=require("tty").isatty(1),Xp=m7(function t(e,i){return i=i||{},i.colors="colors"in i?i.colors:f7,i.namespace=e,i.prod=!1,i.dev=!0,!t.enabled(e)&&!(i.force||t.force)?t.nope(i):t.yep(i)});Xp.modify(UH());Xp.use(JH());Xp.set(KH());QH.exports=Xp});var bl=w((Ule,uA)=>{process.env.NODE_ENV==="production"?uA.exports=qH():uA.exports=YH()});var eR=w((Lle,XH)=>{"use strict";var cA=require("fs"),{StringDecoder:w7}=require("string_decoder"),{Stream:v7}=Za();function C7(){}XH.exports=(t,e)=>{let i=Buffer.alloc(65536),n=new w7("utf8"),a=new v7,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")},cA.open(t.file,"a+","0644",(l,u)=>{if(l){e?e(l):a.emit("error",l),a.destroy();return}(function c(){if(a.destroyed){cA.close(u,C7);return}return cA.read(u,i,0,i.length,s,(p,d)=>{if(p){e?e(p):a.emit("error",p),a.destroy();return}if(!d)return r&&((t.start==null||o>t.start)&&(e?e(null,r):a.emit("line",r)),o++,r=""),setTimeout(c,1e3);let h=n.write(i.slice(0,d));e||a.emit("data",h),h=(r+h).split(/\n+/);let g=h.length-1,m=0;for(;mt.start)&&(e?e(null,h[m]):a.emit("line",h[m])),o++;return r=h[g],s+=d,c()})})()}),e?a.destroy:a}});var aR=w((Ble,tR)=>{"use strict";var Ki=require("fs"),wi=require("path"),iR=vH(),A7=require("zlib"),{MESSAGE:b7}=ri(),{Stream:y7,PassThrough:nR}=Za(),P7=ss(),kn=bl()("winston:file"),j7=require("os"),S7=eR();tR.exports=class extends P7{constructor(e={}){super(e),this.name=e.name||"file";function i(n,...a){a.slice(1).forEach(r=>{if(e[r])throw new Error(`Cannot set ${r} and ${n} together`)})}if(this._stream=new nR,this._stream.setMaxListeners(30),this._onError=this._onError.bind(this),e.filename||e.dirname)i("filename or dirname","stream"),this._basename=this.filename=e.filename?wi.basename(e.filename):"winston.log",this.dirname=e.dirname||wi.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"),i("stream","filename","maxsize"),this._dest=this._stream.pipe(this._setupStream(e.stream)),this.dirname=wi.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:j7.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,i=()=>{}){if(this.silent)return i(),!0;if(this._drain){this._stream.once("drain",()=>{this._drain=!1,this.log(e,i)});return}if(this._rotate){this._stream.once("rotate",()=>{this._rotate=!1,this.log(e,i)});return}if(this.lazy){if(!this._fileExist){this._opening||this.open(),this.once("open",()=>{this._fileExist=!0,this.log(e,i)});return}if(this._needsNewFile(this._pendingSize)){this._dest.once("close",()=>{this._opening||this.open(),this.once("open",()=>{this.log(e,i)})});return}}let n=`${e[b7]}${this.eol}`,a=Buffer.byteLength(n);function r(){if(this._size+=a,this._pendingSize-=a,kn("logged %s %s",this._size,n),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(n,r.bind(this));return s?i():(this._drain=!0,this._stream.once("drain",()=>{this._drain=!1,i()})),kn("written",s,this._drain),this.finishIfEnding(),s}query(e,i){typeof e=="function"&&(i=e,e={}),e=p(e);let n=wi.join(this.dirname,this.filename),a="",r=[],s=0,o=Ki.createReadStream(n,{encoding:"utf8"});o.on("error",d=>{if(o.readable&&o.destroy(),!!i)return d.code!=="ENOENT"?i(d):i(null,r)}),o.on("data",d=>{d=(a+d).split(/\n+/);let h=d.length-1,g=0;for(;g=e.start)&&l(d[g]),s++;a=d[h]}),o.on("close",()=>{a&&l(a,!0),e.order==="desc"&&(r=r.reverse()),i&&i(null,r)});function l(d,h){try{let g=JSON.parse(d);c(g)&&u(g)}catch(g){h||o.emit("error",g)}}function u(d){if(e.rows&&r.length>=e.rows&&e.order!=="desc"){o.readable&&o.destroy();return}e.fields&&(d=e.fields.reduce((h,g)=>(h[g]=d[g],h),{})),e.order==="desc"&&r.length>=e.rows&&r.shift(),r.push(d)}function c(d){if(!d||typeof d!="object")return;let h=new Date(d.timestamp);if(!(e.from&&he.until||e.level&&e.level!==d.level))return!0}function p(d){return d=d||{},d.rows=d.rows||d.limit||10,d.start=d.start||0,d.until=d.until||new Date,typeof d.until!="object"&&(d.until=new Date(d.until)),d.from=d.from||d.until-1440*60*1e3,typeof d.from!="object"&&(d.from=new Date(d.from)),d.order=d.order||"desc",d}}stream(e={}){let i=wi.join(this.dirname,this.filename),n=new y7,a={file:i,start:e.start};return n.destroy=S7(a,(r,s)=>{if(r)return n.emit("error",r);try{n.emit("data",s),s=JSON.parse(s),n.emit("log",s)}catch(o){n.emit("error",o)}}),n}open(){this.filename&&(this._opening||(this._opening=!0,this.stat((e,i)=>{if(e)return this.emit("error",e);kn("stat done: %s { size: %s }",this.filename,i),this._size=i,this._dest=this._createStream(this._stream),this._opening=!1,this.once("open",()=>{this._stream.emit("rotate")||(this._rotate=!1)})})))}stat(e){let i=this._getFile(),n=wi.join(this.dirname,i);Ki.stat(n,(a,r)=>{if(a&&a.code==="ENOENT")return kn("ENOENT\xA0ok",n),this.filename=i,e(null,0);if(a)return kn(`err ${a.code} ${n}`),e(a);if(!r||this._needsNewFile(r.size))return this._incFile(()=>this.stat(e));this.filename=i,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 i=wi.join(this.dirname,this.filename);kn("create stream start",i,this.options);let n=Ki.createWriteStream(i,this.options).on("error",a=>kn(a)).on("close",()=>kn("close",n.path,n.bytesWritten)).on("open",()=>{kn("file open ok",i),this.emit("open",i),e.pipe(n),this.rotatedWhileOpening&&(this._stream=new nR,this._stream.setMaxListeners(30),this._rotateFile(),this.rotatedWhileOpening=!1,this._cleanupStream(n),e.end())});return kn("create stream ok",i),n}_incFile(e){kn("_incFile",this.filename);let i=wi.extname(this._basename),n=wi.basename(this._basename,i),a=[];this.zippedArchive&&a.push(function(r){let s=this._created>0&&!this.tailable?this._created:"";this._compressFile(wi.join(this.dirname,`${n}${s}${i}`),wi.join(this.dirname,`${n}${s}${i}.gz`),r)}.bind(this)),a.push(function(r){this.tailable?this._checkMaxFilesTailable(i,n,r):(this._created+=1,this._checkMaxFilesIncrementing(i,n,r))}.bind(this)),iR(a,e)}_getFile(){let e=wi.extname(this._basename),i=wi.basename(this._basename,e),n=this.rotationFormat?this.rotationFormat():this._created;return!this.tailable&&this._created?`${i}${n}${e}`:`${i}${e}`}_checkMaxFilesIncrementing(e,i,n){if(!this.maxFiles||this._created1;s--)a.push(function(o,l){let u=`${i}${o-1}${e}${r}`,c=wi.join(this.dirname,u);Ki.exists(c,p=>{if(!p)return l(null);u=`${i}${o}${e}${r}`,Ki.rename(c,wi.join(this.dirname,u),l)})}.bind(this,s));iR(a,()=>{Ki.rename(wi.join(this.dirname,`${i}${e}${r}`),wi.join(this.dirname,`${i}1${e}${r}`),n)})}_compressFile(e,i,n){Ki.access(e,Ki.F_OK,a=>{if(a)return n();var r=A7.createGzip(),s=Ki.createReadStream(e),o=Ki.createWriteStream(i);o.on("finish",()=>{Ki.unlink(e,n)}),s.pipe(r).pipe(o)})}_createLogDirIfNotExist(e){Ki.existsSync(e)||Ki.mkdirSync(e,{recursive:!0})}}});var sR=w((Vle,rR)=>{"use strict";var O7=require("http"),x7=require("https"),{Stream:T7}=Za(),M7=ss(),{configure:E7}=rl();rR.exports=class extends M7{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,i){this._request(e,null,null,(n,a)=>{a&&a.statusCode!==200&&(n=new Error(`Invalid HTTP Status Code: ${a.statusCode}`)),n?this.emit("warn",n):this.emit("logged",e)}),i&&setImmediate(i)}query(e,i){typeof e=="function"&&(i=e,e={}),e={method:"query",params:this.normalizeQuery(e)};let n=e.params.auth||null;delete e.params.auth;let a=e.params.path||null;delete e.params.path,this._request(e,n,a,(r,s,o)=>{if(s&&s.statusCode!==200&&(r=new Error(`Invalid HTTP Status Code: ${s.statusCode}`)),r)return i(r);if(typeof o=="string")try{o=JSON.parse(o)}catch(l){return i(l)}i(null,o)})}stream(e={}){let i=new T7;e={method:"stream",params:e};let n=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,n);return i.destroy=()=>s.destroy(),s.on("data",o=>{o=(r+o).split(/\n+/);let l=o.length-1,u=0;for(;ui.emit("error",o)),i}_request(e,i,n,a){e=e||{},i=i||this.auth,n=n||this.path||"",this.batch?this._doBatch(e,a,i,n):this._doRequest(e,a,i,n)}_doBatch(e,i,n,a){if(this.batchOptions.push(e),this.batchOptions.length===1){let r=this;this.batchCallback=i,this.batchTimeoutID=setTimeout(function(){r.batchTimeoutID=-1,r._doBatchRequest(r.batchCallback,n,a)},this.batchInterval)}this.batchOptions.length===this.batchCount&&this._doBatchRequest(this.batchCallback,n,a)}_doBatchRequest(e,i,n){this.batchTimeoutID>0&&(clearTimeout(this.batchTimeoutID),this.batchTimeoutID=-1);let a=this.batchOptions.slice();this.batchOptions=[],this._doRequest(a,e,i,n)}_doRequest(e,i,n,a){let r=Object.assign({},this.headers);n&&n.bearer&&(r.Authorization=`Bearer ${n.bearer}`);let s=(this.ssl?x7:O7).request({...this.options,method:"POST",host:this.host,port:this.port,path:`/${a.replace(/^\//,"")}`,headers:r,auth:n&&n.username&&n.password?`${n.username}:${n.password}`:"",agent:this.agent});s.on("error",i),s.on("response",l=>l.on("end",()=>i(null,l)).resume());let o=E7({...this.maximumDepth&&{maximumDepth:this.maximumDepth}});s.end(Buffer.from(o(e,this.options.replacer),"utf8"))}}});var pA=w((Jle,oR)=>{"use strict";var Jn=t=>t!==null&&typeof t=="object"&&typeof t.pipe=="function";Jn.writable=t=>Jn(t)&&t.writable!==!1&&typeof t._write=="function"&&typeof t._writableState=="object";Jn.readable=t=>Jn(t)&&t.readable!==!1&&typeof t._read=="function"&&typeof t._readableState=="object";Jn.duplex=t=>Jn.writable(t)&&Jn.readable(t);Jn.transform=t=>Jn.duplex(t)&&typeof t._transform=="function";oR.exports=Jn});var uR=w((Kle,lR)=>{"use strict";var k7=pA(),{MESSAGE:q7}=ri(),_7=require("os"),H7=ss();lR.exports=class extends H7{constructor(e={}){if(super(e),!e.stream||!k7(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:_7.EOL}log(e,i){if(setImmediate(()=>this.emit("logged",e)),this.isObjectMode){this._stream.write(e),i&&i();return}this._stream.write(`${e[q7]}${this.eol}`),i&&i()}}});var cR=w(yl=>{"use strict";Object.defineProperty(yl,"Console",{configurable:!0,enumerable:!0,get(){return I0()}});Object.defineProperty(yl,"File",{configurable:!0,enumerable:!0,get(){return aR()}});Object.defineProperty(yl,"Http",{configurable:!0,enumerable:!0,get(){return sR()}});Object.defineProperty(yl,"Stream",{configurable:!0,enumerable:!0,get(){return uR()}})});var id=w(Pl=>{"use strict";var ed=hC(),{configs:dA}=ri();Pl.cli=ed.levels(dA.cli);Pl.npm=ed.levels(dA.npm);Pl.syslog=ed.levels(dA.syslog);Pl.addColors=ed.levels});var dR=w((nd,pR)=>{"use strict";Object.defineProperty(nd,"__esModule",{value:!0});var R7=Hp(),I7=Ka(R7),z7=Wp(),D7=Ka(z7),G7=KC(),$7=Ka(G7),N7=VC(),U7=Ka(N7),L7=JC(),W7=Ka(L7),B7=Ja(),F7=Ka(B7),V7=ls(),J7=Ka(V7);function Ka(t){return t&&t.__esModule?t:{default:t}}function Z7(t,e,i){i=(0,U7.default)(i);var n=0,a=0,{length:r}=t,s=!1;r===0&&i(null);function o(l,u){l===!1&&(s=!0),s!==!0&&(l?i(l):(++a===r||u===D7.default)&&i(null))}for(;n{"use strict";Object.defineProperty(td,"__esModule",{value:!0});td.default=Y7;function Y7(t){return(e,i,n)=>t(e,n)}hR.exports=td.default});var sd=w((rd,mR)=>{"use strict";Object.defineProperty(rd,"__esModule",{value:!0});var X7=dR(),eY=ad(X7),iY=gR(),nY=ad(iY),tY=Ja(),aY=ad(tY),rY=ls(),sY=ad(rY);function ad(t){return t&&t.__esModule?t:{default:t}}function oY(t,e,i){return(0,eY.default)(t,(0,nY.default)((0,aY.default)(e)),i)}rd.default=(0,sY.default)(oY,3);mR.exports=rd.default});var wR=w((Xle,fR)=>{"use strict";var lY=Object.prototype.toString;fR.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 i=e.toString(),n=lY.call(e).slice(8,-1);return n==="Function"?i=i.substring(i.indexOf("(")+1,i.indexOf(")")):i=n,i||"anonymous"}});var hA=w((eue,vR)=>{"use strict";var uY=wR();vR.exports=function(e){var i=0,n;function a(){return i||(i=1,n=e.apply(this,arguments),e=null),n}return a.displayName=uY(e),a}});var gA=w(Sl=>{Sl.get=function(t){var e=Error.stackTraceLimit;Error.stackTraceLimit=1/0;var i={},n=Error.prepareStackTrace;Error.prepareStackTrace=function(r,s){return s},Error.captureStackTrace(i,t||Sl.get);var a=i.stack;return Error.prepareStackTrace=n,Error.stackTraceLimit=e,a};Sl.parse=function(t){if(!t.stack)return[];var e=this,i=t.stack.split(` -`).slice(1);return i.map(function(n){if(n.match(/^\s*[-]{4,}$/))return e._createParsedCallSite({fileName:n,lineNumber:null,functionName:null,typeName:null,methodName:null,columnNumber:null,native:null});var a=n.match(/at (?:(.+)\s+\()?(?:(.+?):(\d+)(?::(\d+))?|([^)]+))\)?/);if(a){var r=null,s=null,o=null,l=null,u=null,c=a[5]==="native";if(a[1]){o=a[1];var p=o.lastIndexOf(".");if(o[p-1]=="."&&p--,p>0){r=o.substr(0,p),s=o.substr(p+1);var d=r.indexOf(".Module");d>0&&(o=o.substr(d+1),r=r.substr(0,d))}l=null}s&&(l=r,u=s),s===""&&(u=null,o=null);var h={fileName:a[2]||null,lineNumber:parseInt(a[3],10)||null,functionName:o,typeName:l,methodName:u,columnNumber:parseInt(a[4],10)||null,native:c};return e._createParsedCallSite(h)}}).filter(function(n){return!!n})};function jl(t){for(var e in t)this[e]=t[e]}var cY=["this","typeName","functionName","methodName","fileName","lineNumber","columnNumber","function","evalOrigin"],pY=["topLevel","eval","native","constructor"];cY.forEach(function(t){jl.prototype[t]=null,jl.prototype["get"+t[0].toUpperCase()+t.substr(1)]=function(){return this[t]}});pY.forEach(function(t){jl.prototype[t]=!1,jl.prototype["is"+t[0].toUpperCase()+t.substr(1)]=function(){return this[t]}});Sl._createParsedCallSite=function(t){return new jl(t)}});var AR=w((tue,CR)=>{"use strict";var{Writable:dY}=Za();CR.exports=class extends dY{constructor(e){if(super({objectMode:!0}),!e)throw new Error("ExceptionStream requires a TransportStream instance.");this.handleExceptions=!0,this.transport=e}_write(e,i,n){return e.exception?this.transport.log(e,n):(n(),!0)}}});var fA=w((rue,PR)=>{"use strict";var bR=require("os"),hY=sd(),mA=bl()("winston:exception"),gY=hA(),yR=gA(),mY=AR();PR.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(i=>{if(Array.isArray(i))return i.forEach(n=>this._addHandler(n));this._addHandler(i)}),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 i=null;return e&&(i=typeof e=="string"?e:e.message),{error:e,level:"error",message:[`uncaughtException: ${i||"(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:bR.loadavg(),uptime:bR.uptime()}}getTrace(e){return(e?yR.parse(e):yR.get()).map(n=>({column:n.getColumnNumber(),file:n.getFileName(),function:n.getFunctionName(),line:n.getLineNumber(),method:n.getMethodName(),native:n.isNative()}))}_addHandler(e){if(!this.handlers.has(e)){e.handleExceptions=!0;let i=new mY(e);this.handlers.set(e,i),this.logger.pipe(i)}}_uncaughtException(e){let i=this.getAllInfo(e),n=this._getExceptionHandlers(),a=typeof this.logger.exitOnError=="function"?this.logger.exitOnError(e):this.logger.exitOnError,r;!n.length&&a&&(console.warn("winston: exitOnError cannot be true with no exception handlers."),console.warn("winston: not exiting process."),a=!1);function s(){mA("doExit",a),mA("process._exiting",process._exiting),a&&!process._exiting&&(r&&clearTimeout(r),process.exit(1))}if(!n||n.length===0)return process.nextTick(s);hY(n,(o,l)=>{let u=gY(l),c=o.transport||o;function p(d){return()=>{mA(d),u()}}c._ending=!0,c.once("finish",p("finished")),c.once("error",p("error"))},()=>a&&s()),this.logger.log(i),a&&(r=setTimeout(s,3e3))}_getExceptionHandlers(){return this.logger.transports.filter(e=>(e.transport||e).handleExceptions)}}});var SR=w((oue,jR)=>{"use strict";var{Writable:fY}=Za();jR.exports=class extends fY{constructor(e){if(super({objectMode:!0}),!e)throw new Error("RejectionStream requires a TransportStream instance.");this.handleRejections=!0,this.transport=e}_write(e,i,n){return e.rejection?this.transport.log(e,n):(n(),!0)}}});var vA=w((uue,TR)=>{"use strict";var OR=require("os"),wY=sd(),wA=bl()("winston:rejection"),vY=hA(),xR=gA(),CY=SR();TR.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(i=>{if(Array.isArray(i))return i.forEach(n=>this._addHandler(n));this._addHandler(i)}),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 i=null;return e&&(i=typeof e=="string"?e:e.message),{error:e,level:"error",message:[`unhandledRejection: ${i||"(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:OR.loadavg(),uptime:OR.uptime()}}getTrace(e){return(e?xR.parse(e):xR.get()).map(n=>({column:n.getColumnNumber(),file:n.getFileName(),function:n.getFunctionName(),line:n.getLineNumber(),method:n.getMethodName(),native:n.isNative()}))}_addHandler(e){if(!this.handlers.has(e)){e.handleRejections=!0;let i=new CY(e);this.handlers.set(e,i),this.logger.pipe(i)}}_unhandledRejection(e){let i=this.getAllInfo(e),n=this._getRejectionHandlers(),a=typeof this.logger.exitOnError=="function"?this.logger.exitOnError(e):this.logger.exitOnError,r;!n.length&&a&&(console.warn("winston: exitOnError cannot be true with no rejection handlers."),console.warn("winston: not exiting process."),a=!1);function s(){wA("doExit",a),wA("process._exiting",process._exiting),a&&!process._exiting&&(r&&clearTimeout(r),process.exit(1))}if(!n||n.length===0)return process.nextTick(s);wY(n,(o,l)=>{let u=vY(l),c=o.transport||o;function p(d){return()=>{wA(d),u()}}c._ending=!0,c.once("finish",p("finished")),c.once("error",p("error"))},()=>a&&s()),this.logger.log(i),a&&(r=setTimeout(s,3e3))}_getRejectionHandlers(){return this.logger.transports.filter(e=>(e.transport||e).handleRejections)}}});var ER=w((cue,MR)=>{"use strict";var CA=class{constructor(e){let i=od();if(typeof e!="object"||Array.isArray(e)||!(e instanceof i))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 i=typeof e[e.length-1]=="object"?e.pop():{};return i.level=i.level||"info",i.durationMs=Date.now()-this.start,this.logger.write(i)}};MR.exports=CA});var od=w((pue,HR)=>{"use strict";var{Stream:AY,Transform:bY}=Za(),kR=sd(),{LEVEL:Zn,SPLAT:qR}=ri(),_R=pA(),yY=fA(),PY=vA(),jY=WC(),SY=ER(),{warn:OY}=gC(),xY=id(),TY=/%[scdjifoO%]/g,ld=class extends bY{constructor(e){super({objectMode:!0}),this.configure(e)}child(e){let i=this;return Object.create(i,{write:{value:function(n){let a=Object.assign({},e,n);n instanceof Error&&(a.stack=n.stack,a.message=n.message,a.cause=n.cause),i.write(a)}}})}configure({silent:e,format:i,defaultMeta:n,levels:a,level:r="info",exitOnError:s=!0,transports:o,colors:l,emitErrs:u,formatters:c,padLevels:p,rewriters:d,stripColors:h,exceptionHandlers:g,rejectionHandlers:m}={}){if(this.transports.length&&this.clear(),this.silent=e,this.format=i||this.format||lC()(),this.defaultMeta=n||null,this.levels=a||this.levels||xY.npm.levels,this.level=r,this.exceptions&&this.exceptions.unhandle(),this.rejections&&this.rejections.unhandle(),this.exceptions=new yY(this),this.rejections=new PY(this),this.profilers={},this.exitOnError=s,o&&(o=Array.isArray(o)?o:[o],o.forEach(f=>this.add(f))),l||u||c||p||d||h)throw new Error(["{ colors, emitErrs, formatters, padLevels, rewriters, stripColors } were removed in winston@3.0.0.","Use a custom winston.format(function) instead.","See: https://github.com/winstonjs/winston/tree/master/UPGRADE-3.0.md"].join(` -`));g&&this.exceptions.handle(g),m&&this.rejections.handle(m)}getHighestLogLevel(){let e=Ol(this.levels,this.level);return!this.transports||this.transports.length===0?e:this.transports.reduce((i,n)=>{let a=Ol(this.levels,n.level);return a!==null&&a>i?a:i},e)}isLevelEnabled(e){let i=Ol(this.levels,e);if(i===null)return!1;let n=Ol(this.levels,this.level);return n===null?!1:!this.transports||this.transports.length===0?n>=i:this.transports.findIndex(r=>{let s=Ol(this.levels,r.level);return s===null&&(s=n),s>=i})!==-1}log(e,i,...n){if(arguments.length===1)return e[Zn]=e.level,this._addDefaultMeta(e),this.write(e),this;if(arguments.length===2)return i&&typeof i=="object"?(i[Zn]=i.level=e,this._addDefaultMeta(i),this.write(i),this):(i={[Zn]:e,level:e,message:i},this._addDefaultMeta(i),this.write(i),this);let[a]=n;if(typeof a=="object"&&a!==null&&!(i&&i.match&&i.match(TY))){let s=Object.assign({},this.defaultMeta,a,{[Zn]:e,[qR]:n,level:e,message:i});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,{[Zn]:e,[qR]:n,level:e,message:i})),this}_transform(e,i,n){if(this.silent)return n();e[Zn]||(e[Zn]=e.level),!this.levels[e[Zn]]&&this.levels[e[Zn]]!==0&&console.error("[winston] Unknown logger level: %s",e[Zn]),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,n()}}_final(e){let i=this.transports.slice();kR(i,(n,a)=>{if(!n||n.finished)return setImmediate(a);n.once("finish",a),n.end()},e)}add(e){let i=!_R(e)||e.log.length>2?new jY({transport:e}):e;if(!i._writableState||!i._writableState.objectMode)throw new Error("Transports must WritableStreams in objectMode. Set { objectMode: true }.");return this._onEvent("error",i),this._onEvent("warn",i),this.pipe(i),e.handleExceptions&&this.exceptions.handle(),e.handleRejections&&this.rejections.handle(),this}remove(e){if(!e)return this;let i=e;return(!_R(e)||e.log.length>2)&&(i=this.transports.filter(n=>n.transport===e)[0]),i&&this.unpipe(i),this}clear(){return this.unpipe(),this}close(){return this.exceptions.unhandle(),this.rejections.unhandle(),this.clear(),this.emit("close"),this}setLevels(){OY.deprecated("setLevels")}query(e,i){typeof e=="function"&&(i=e,e={}),e=e||{};let n={},a=Object.assign({},e.query||{});function r(o,l){e.query&&typeof o.formatQuery=="function"&&(e.query=o.formatQuery(a)),o.query(e,(u,c)=>{if(u)return l(u);typeof o.formatResults=="function"&&(c=o.formatResults(c,e.format)),l(null,c)})}function s(o,l){r(o,(u,c)=>{l&&(c=u||c,c&&(n[o.name]=c),l()),l=null})}kR(this.transports.filter(o=>!!o.query),s,()=>i(null,n))}stream(e={}){let i=new AY,n=[];return i._streams=n,i.destroy=()=>{let a=n.length;for(;a--;)n[a].destroy()},this.transports.filter(a=>!!a.stream).forEach(a=>{let r=a.stream(e);r&&(n.push(r),r.on("log",s=>{s.transport=s.transport||[],s.transport.push(a.name),i.emit("log",s)}),r.on("error",s=>{s.transport=s.transport||[],s.transport.push(a.name),i.emit("error",s)}))}),i}startTimer(){return new SY(this)}profile(e,...i){let n=Date.now();if(this.profilers[e]){let a=this.profilers[e];delete this.profilers[e],typeof i[i.length-2]=="function"&&(console.warn("Callback function no longer supported as of winston@3.0.0"),i.pop());let r=typeof i[i.length-1]=="object"?i.pop():{};return r.level=r.level||"info",r.durationMs=n-a,r.message=r.message||e,this.write(r)}return this.profilers[e]=n,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,i){function n(a){e==="error"&&!this.transports.includes(i)&&this.add(i),this.emit(e,a,i)}i["__winston"+e]||(i["__winston"+e]=n.bind(this),i.on(e,i["__winston"+e]))}_addDefaultMeta(e){this.defaultMeta&&Object.assign(e,this.defaultMeta)}};function Ol(t,e){let i=t[e];return!i&&i!==0?null:i}Object.defineProperty(ld.prototype,"transports",{configurable:!1,enumerable:!0,get(){let{pipes:t}=this._readableState;return Array.isArray(t)?t:[t].filter(Boolean)}});HR.exports=ld});var AA=w((due,RR)=>{"use strict";var{LEVEL:MY}=ri(),EY=id(),kY=od(),qY=bl()("winston:create-logger");function _Y(t){return"is"+t.charAt(0).toUpperCase()+t.slice(1)+"Enabled"}RR.exports=function(t={}){t.levels=t.levels||EY.npm.levels;class e extends kY{constructor(a){super(a)}}let i=new e(t);return Object.keys(t.levels).forEach(function(n){if(qY('Define prototype method for "%s"',n),n==="log"){console.warn('Level "log" not defined: conflicts with the method "log". Use a different level name.');return}e.prototype[n]=function(...a){let r=this||i;if(a.length===1){let[s]=a,o=s&&s.message&&s||{message:s};return o.level=o[MY]=n,r._addDefaultMeta(o),r.write(o),this||i}return a.length===0?(r.log(n,""),r):r.log(n,...a)},e.prototype[_Y(n)]=function(){return(this||i).isLevelEnabled(n)}}),i}});var zR=w((gue,IR)=>{"use strict";var HY=AA();IR.exports=class{constructor(e={}){this.loggers=new Map,this.options=e}add(e,i){if(!this.loggers.has(e)){i=Object.assign({},i||this.options);let n=i.transports||this.options.transports;n?i.transports=Array.isArray(n)?n.slice():[n]:i.transports=[];let a=HY(i);a.on("close",()=>this._delete(e)),this.loggers.set(e,a)}return this.loggers.get(e)}get(e,i){return this.add(e,i)}has(e){return!!this.loggers.has(e)}close(e){if(e)return this._removeLogger(e);this.loggers.forEach((i,n)=>this._removeLogger(n))}_removeLogger(e){if(!this.loggers.has(e))return;this.loggers.get(e).close(),this._delete(e)}_delete(e){this.loggers.delete(e)}}});var GR=w(He=>{"use strict";var DR=hC(),{warn:xl}=gC();He.version=H2().version;He.transports=cR();He.config=id();He.addColors=DR.levels;He.format=DR.format;He.createLogger=AA();He.Logger=od();He.ExceptionHandler=fA();He.RejectionHandler=vA();He.Container=zR();He.Transport=ss();He.loggers=new He.Container;var Kn=He.createLogger();Object.keys(He.config.npm.levels).concat(["log","query","stream","add","remove","clear","profile","startTimer","handleExceptions","unhandleExceptions","handleRejections","unhandleRejections","configure","child"]).forEach(t=>He[t]=(...e)=>Kn[t](...e));Object.defineProperty(He,"level",{get(){return Kn.level},set(t){Kn.level=t}});Object.defineProperty(He,"exceptions",{get(){return Kn.exceptions}});Object.defineProperty(He,"rejections",{get(){return Kn.rejections}});["exitOnError"].forEach(t=>{Object.defineProperty(He,t,{get(){return Kn[t]},set(e){Kn[t]=e}})});Object.defineProperty(He,"default",{get(){return{exceptionHandlers:Kn.exceptionHandlers,rejectionHandlers:Kn.rejectionHandlers,transports:Kn.transports}}});xl.deprecated(He,"setLevels");xl.forFunctions(He,"useFormat",["cli"]);xl.forProperties(He,"useFormat",["padLevels","stripColors"]);xl.forFunctions(He,"deprecated",["addRewriter","addFilter","clone","extend"]);xl.forProperties(He,"deprecated",["emitErrs","levelLength"])});var LR=w((fue,UR)=>{var Tl=require("path"),$R=require("fs"),NR=parseInt("0777",8);UR.exports=ds.mkdirp=ds.mkdirP=ds;function ds(t,e,i,n){typeof e=="function"?(i=e,e={}):(!e||typeof e!="object")&&(e={mode:e});var a=e.mode,r=e.fs||$R;a===void 0&&(a=NR),n||(n=null);var s=i||function(){};t=Tl.resolve(t),r.mkdir(t,a,function(o){if(!o)return n=n||t,s(null,n);switch(o.code){case"ENOENT":if(Tl.dirname(t)===t)return s(o);ds(Tl.dirname(t),e,function(l,u){l?s(l,u):ds(t,e,s,u)});break;default:r.stat(t,function(l,u){l||!u.isDirectory()?s(o,n):s(null,n)});break}})}ds.sync=function t(e,i,n){(!i||typeof i!="object")&&(i={mode:i});var a=i.mode,r=i.fs||$R;a===void 0&&(a=NR),n||(n=null),e=Tl.resolve(e);try{r.mkdirSync(e,a),n=n||e}catch(o){switch(o.code){case"ENOENT":n=t(Tl.dirname(e),i,n),t(e,i,n);break;default:var s;try{s=r.statSync(e)}catch{throw o}if(!s.isDirectory())throw o;break}}return n}});var bA=w((wue,WR)=>{function RY(t){this.name="DuplicateSectionError",this.message=t+" already exists",Error.captureStackTrace(this,this.constructor)}function IY(t){this.name=this.constructor.name,this.message="Section "+t+" does not exist.",Error.captureStackTrace(this,this.constructor)}function zY(t,e,i){this.name=this.constructor.name,this.message=`Source contains parsing errors. +${y}`),m.pop(),`{${$}}`}case"number":return isFinite(g)?String(g):e?e(g):"null";case"boolean":return g===!0?"true":"false";case"undefined":return;case"bigint":if(n)return String(g);default:return e?e(g):void 0}}function p(h,g,m){switch(typeof g){case"string":return Nt(g);case"object":{if(g===null)return"null";if(typeof g.toJSON=="function"){if(g=g.toJSON(h),typeof g!="object")return p(h,g,m);if(g===null)return"null"}if(m.indexOf(g)!==-1)return i;let f="",v=g.length!==void 0;if(v&&Array.isArray(g)){if(g.length===0)return"[]";if(so){let F=g.length-o-1;f+=`,"... ${Na(F)} not stringified"`}return m.pop(),`[${f}]`}let y=Object.keys(g),A=y.length;if(A===0)return"{}";if(so){let $=A-o;f+=`${b}"...":"${Na($)} not stringified"`}return m.pop(),`{${f}}`}case"number":return isFinite(g)?String(g):e?e(g):"null";case"boolean":return g===!0?"true":"false";case"undefined":return;case"bigint":if(n)return String(g);default:return e?e(g):void 0}}function d(h,g,m){if(arguments.length>1){let f="";if(typeof m=="number"?f=" ".repeat(Math.min(m,10)):typeof m=="string"&&(f=m.slice(0,10)),g!=null){if(typeof g=="function")return l("",{"":h},[],g,f,"");if(Array.isArray(g))return u("",h,[],QK(g),f,"")}if(f.length!==0)return c("",h,[],f,"")}return p("",h,[])}return d}});var lC=w((Joe,u2)=>{"use strict";var XK=Zi(),{MESSAGE:e9}=ri(),i9=rl();function n9(t,e){return typeof e=="bigint"?e.toString():e}u2.exports=XK((t,e)=>{let i=i9.configure(e);return t[e9]=i(t,e.replacer||n9,e.space),t})});var p2=w((Zoe,c2)=>{"use strict";var t9=Zi();c2.exports=t9((t,e)=>e.message?(t.message=`[${e.label}] ${t.message}`,t):(t.label=e.label,t))});var h2=w((Koe,d2)=>{"use strict";var a9=Zi(),{MESSAGE:r9}=ri(),s9=rl();d2.exports=a9(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[r9]=s9(e),t})});var m2=w((Qoe,g2)=>{"use strict";var o9=Zi();function l9(t,e,i){let n=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,n,{[i]:a}),t}function u9(t,e,i){return t[i]=e.reduce((n,a)=>(n[a]=t[a],delete t[a],n),{}),t}g2.exports=o9((t,e={})=>{let i="metadata";e.key&&(i=e.key);let n=[];return!e.fillExcept&&!e.fillWith&&(n.push("level"),n.push("message")),e.fillExcept&&(n=e.fillExcept),n.length>0?l9(t,n,i):e.fillWith?u9(t,e.fillWith,i):t})});var w2=w((sl,f2)=>{"use strict";var c9=Zi(),p9=kw();f2.exports=c9(t=>{let e=+new Date;return sl.diff=e-(sl.prevTime||e),sl.prevTime=e,t.ms=`+${p9(sl.diff)}`,t})});var A2=w((Yoe,C2)=>{"use strict";var d9=require("util").inspect,h9=Zi(),{LEVEL:g9,MESSAGE:v2,SPLAT:m9}=ri();C2.exports=h9((t,e={})=>{let i=Object.assign({},t);return delete i[g9],delete i[v2],delete i[m9],t[v2]=d9(i,!1,e.depth||null,e.colorize),t})});var b2=w((Xoe,fp)=>{"use strict";var{MESSAGE:f9}=ri(),mp=class{constructor(e){this.template=e}transform(e){return e[f9]=this.template(e),e}};fp.exports=t=>new mp(t);fp.exports.Printf=fp.exports.Format=mp});var j2=w((ele,P2)=>{"use strict";var w9=Zi(),{MESSAGE:y2}=ri(),v9=rl();P2.exports=w9(t=>{let e=v9(Object.assign({},t,{level:void 0,message:void 0,splat:void 0})),i=t.padding&&t.padding[t.level]||"";return e!=="{}"?t[y2]=`${t.level}:${i} ${t.message} ${e}`:t[y2]=`${t.level}:${i} ${t.message}`,t})});var x2=w((ile,O2)=>{"use strict";var C9=require("util"),{SPLAT:S2}=ri(),A9=/%[scdjifoO%]/g,b9=/%%/g,uC=class{constructor(e){this.options=e}_splat(e,i){let n=e.message,a=e[S2]||e.splat||[],r=n.match(b9),s=r&&r.length||0,l=i.length-s-a.length,u=l<0?a.splice(l,-1*l):[],c=u.length;if(c)for(let p=0;p1?n.splice(0):n,s=r.length;if(s)for(let o=0;onew uC(t)});var M2=w((wp,T2)=>{(function(t,e){typeof wp=="object"&&typeof T2<"u"?e(wp):typeof define=="function"&&define.amd?define(["exports"],e):e(t.fecha={})})(wp,(function(t){"use strict";var e=/d{1,4}|M{1,4}|YY(?:YY)?|S{1,3}|Do|ZZ|Z|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g,i="\\d\\d?",n="\\d\\d",a="\\d{3}",r="\\d{4}",s="[^\\s]+",o=/\[([^]*?)\]/gm;function l(S,R){for(var Ae=[],Se=0,I=S.length;Se-1?I:null}};function c(S){for(var R=[],Ae=1;Ae3?0:(S-S%10!==10?1:0)*S%10]}},f=c({},m),v=function(S){return f=c(f,S)},y=function(S){return S.replace(/[|\\{()[^$+*?.-]/g,"\\$&")},A=function(S,R){for(R===void 0&&(R=2),S=String(S);S.length0?"-":"+")+A(Math.floor(Math.abs(R)/60)*100+Math.abs(R)%60,4)},Z:function(S){var R=S.getTimezoneOffset();return(R>0?"-":"+")+A(Math.floor(Math.abs(R)/60),2)+":"+A(Math.abs(R)%60,2)}},O=function(S){return+S-1},$=[null,i],N=[null,s],X=["isPm",s,function(S,R){var Ae=S.toLowerCase();return Ae===R.amPm[0]?0:Ae===R.amPm[1]?1:null}],F=["timezoneOffset","[^\\s]*?[\\+\\-]\\d\\d:?\\d\\d|[^\\s]*?Z?",function(S){var R=(S+"").match(/([+-]|\d\d)/gi);if(R){var Ae=+R[1]*60+parseInt(R[2],10);return R[0]==="+"?Ae:-Ae}return 0}],k={D:["day",i],DD:["day",n],Do:["day",i+s,function(S){return parseInt(S,10)}],M:["month",i,O],MM:["month",n,O],YY:["year",n,function(S){var R=new Date,Ae=+(""+R.getFullYear()).substr(0,2);return+(""+(+S>68?Ae-1:Ae)+S)}],h:["hour",i,void 0,"isPm"],hh:["hour",n,void 0,"isPm"],H:["hour",i],HH:["hour",n],m:["minute",i],mm:["minute",n],s:["second",i],ss:["second",n],YYYY:["year",r],S:["millisecond","\\d",function(S){return+S*100}],SS:["millisecond",n,function(S){return+S*10}],SSS:["millisecond",a],d:$,dd:$,ddd:N,dddd:N,MMM:["month",s,u("monthNamesShort")],MMMM:["month",s,u("monthNames")],a:X,A:X,ZZ:F,Z:F},Q={default:"ddd MMM DD YYYY HH:mm:ss",shortDate:"M/D/YY",mediumDate:"MMM D, YYYY",longDate:"MMMM D, YYYY",fullDate:"dddd, MMMM D, YYYY",isoDate:"YYYY-MM-DD",isoDateTime:"YYYY-MM-DDTHH:mm:ssZ",shortTime:"HH:mm",mediumTime:"HH:mm:ss",longTime:"HH:mm:ss.SSS"},Z=function(S){return c(Q,S)},ie=function(S,R,Ae){if(R===void 0&&(R=Q.default),Ae===void 0&&(Ae={}),typeof S=="number"&&(S=new Date(S)),Object.prototype.toString.call(S)!=="[object Date]"||isNaN(S.getTime()))throw new Error("Invalid Date pass to format");R=Q[R]||R;var Se=[];R=R.replace(o,function(ei,Re){return Se.push(Re),"@@@"});var I=c(c({},f),Ae);return R=R.replace(e,function(ei){return b[ei](S,I)}),R.replace(/@@@/g,function(){return Se.shift()})};function se(S,R,Ae){if(Ae===void 0&&(Ae={}),typeof R!="string")throw new Error("Invalid format in fecha parse");if(R=Q[R]||R,S.length>1e3)return null;var Se=new Date,I={year:Se.getFullYear(),month:0,day:1,hour:0,minute:0,second:0,millisecond:0,isPm:null,timezoneOffset:null},ei=[],Re=[],Me=R.replace(o,function(wn,Ge){return Re.push(y(Ge)),"@@@"}),Oi={},vi={};Me=y(Me).replace(e,function(wn){var Ge=k[wn],Ya=Ge[0],mI=Ge[1],ly=Ge[3];if(Oi[Ya])throw new Error("Invalid format. "+Ya+" specified twice in format");return Oi[Ya]=!0,ly&&(vi[ly]=!0),ei.push(Ge),"("+mI+")"}),Object.keys(vi).forEach(function(wn){if(!Oi[wn])throw new Error("Invalid format. "+wn+" is required in specified format")}),Me=Me.replace(/@@@/g,function(){return Re.shift()});var nn=S.match(new RegExp(Me,"i"));if(!nn)return null;for(var G=c(c({},f),Ae),x=1;x11||I.month<0||I.day>31||I.day<1||I.hour>23||I.hour<0||I.minute>59||I.minute<0||I.second>59||I.second<0)return null;return pi}var De={format:ie,parse:se,defaultI18n:m,setGlobalDateI18n:v,setGlobalDateMasks:Z};t.assign=c,t.default=De,t.format=ie,t.parse=se,t.defaultI18n=m,t.setGlobalDateI18n=v,t.setGlobalDateMasks=Z,Object.defineProperty(t,"__esModule",{value:!0})}))});var k2=w((nle,E2)=>{"use strict";var y9=M2(),P9=Zi();E2.exports=P9((t,e={})=>(e.format&&(t.timestamp=typeof e.format=="function"?e.format():y9.format(new Date,e.format)),t.timestamp||(t.timestamp=new Date().toISOString()),e.alias&&(t[e.alias]=t.timestamp),t))});var _2=w((tle,q2)=>{"use strict";var cC=Fv(),j9=Zi(),{MESSAGE:pC}=ri();q2.exports=j9((t,e)=>(e.level!==!1&&(t.level=cC.strip(t.level)),e.message!==!1&&(t.message=cC.strip(String(t.message))),e.raw!==!1&&t[pC]&&(t[pC]=cC.strip(String(t[pC]))),t))});var hC=w(dC=>{"use strict";var S9=dC.format=Zi();dC.levels=K_();function ji(t,e){Object.defineProperty(S9,t,{get(){return e()},configurable:!0})}ji("align",function(){return Y_()});ji("errors",function(){return i2()});ji("cli",function(){return t2()});ji("combine",function(){return r2()});ji("colorize",function(){return pp()});ji("json",function(){return lC()});ji("label",function(){return p2()});ji("logstash",function(){return h2()});ji("metadata",function(){return m2()});ji("ms",function(){return w2()});ji("padLevels",function(){return iC()});ji("prettyPrint",function(){return A2()});ji("printf",function(){return b2()});ji("simple",function(){return j2()});ji("splat",function(){return x2()});ji("timestamp",function(){return k2()});ji("uncolorize",function(){return _2()})});var gC=w(vp=>{"use strict";var{format:H2}=require("util");vp.warn={deprecated(t){return()=>{throw new Error(H2("{ %s } was removed in winston@3.0.0.",t))}},useFormat(t){return()=>{throw new Error([H2("{ %s } was removed in winston@3.0.0.",t),"Use a custom winston.format = winston.format(function) instead."].join(` +`))}},forFunctions(t,e,i){i.forEach(n=>{t[n]=vp.warn[e](n)})},forProperties(t,e,i){i.forEach(n=>{let a=vp.warn[e](n);Object.defineProperty(t,n,{get:a,set:a})})}}});var R2=w((sle,O9)=>{O9.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 z2=w((ole,I2)=>{I2.exports=require("util").deprecate});var mC=w((lle,D2)=>{D2.exports=require("stream")});var wC=w((ule,$2)=>{"use strict";function x9(t,e){var i=this,n=this._readableState&&this._readableState.destroyed,a=this._writableState&&this._writableState.destroyed;return n||a?(e?e(t):t&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(fC,this,t)):process.nextTick(fC,this,t)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(t||null,function(r){!e&&r?i._writableState?i._writableState.errorEmitted?process.nextTick(Cp,i):(i._writableState.errorEmitted=!0,process.nextTick(G2,i,r)):process.nextTick(G2,i,r):e?(process.nextTick(Cp,i),e(r)):process.nextTick(Cp,i)}),this)}function G2(t,e){fC(t,e),Cp(t)}function Cp(t){t._writableState&&!t._writableState.emitClose||t._readableState&&!t._readableState.emitClose||t.emit("close")}function T9(){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 fC(t,e){t.emit("error",e)}function M9(t,e){var i=t._readableState,n=t._writableState;i&&i.autoDestroy||n&&n.autoDestroy?t.destroy(e):t.emit("error",e)}$2.exports={destroy:x9,undestroy:T9,errorOrDestroy:M9}});var Ut=w((cle,L2)=>{"use strict";var U2={};function mn(t,e,i){i||(i=Error);function n(r,s,o){return typeof e=="string"?e:e(r,s,o)}class a extends i{constructor(s,o,l){super(n(s,o,l))}}a.prototype.name=i.name,a.prototype.code=t,U2[t]=a}function N2(t,e){if(Array.isArray(t)){let i=t.length;return t=t.map(n=>String(n)),i>2?`one of ${e} ${t.slice(0,i-1).join(", ")}, or `+t[i-1]:i===2?`one of ${e} ${t[0]} or ${t[1]}`:`of ${e} ${t[0]}`}else return`of ${e} ${String(t)}`}function E9(t,e,i){return t.substr(!i||i<0?0:+i,e.length)===e}function k9(t,e,i){return(i===void 0||i>t.length)&&(i=t.length),t.substring(i-e.length,i)===e}function q9(t,e,i){return typeof i!="number"&&(i=0),i+e.length>t.length?!1:t.indexOf(e,i)!==-1}mn("ERR_INVALID_OPT_VALUE",function(t,e){return'The value "'+e+'" is invalid for option "'+t+'"'},TypeError);mn("ERR_INVALID_ARG_TYPE",function(t,e,i){let n;typeof e=="string"&&E9(e,"not ")?(n="must not be",e=e.replace(/^not /,"")):n="must be";let a;if(k9(t," argument"))a=`The ${t} ${n} ${N2(e,"type")}`;else{let r=q9(t,".")?"property":"argument";a=`The "${t}" ${r} ${n} ${N2(e,"type")}`}return a+=`. Received type ${typeof i}`,a},TypeError);mn("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF");mn("ERR_METHOD_NOT_IMPLEMENTED",function(t){return"The "+t+" method is not implemented"});mn("ERR_STREAM_PREMATURE_CLOSE","Premature close");mn("ERR_STREAM_DESTROYED",function(t){return"Cannot call "+t+" after a stream was destroyed"});mn("ERR_MULTIPLE_CALLBACK","Callback called multiple times");mn("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable");mn("ERR_STREAM_WRITE_AFTER_END","write after end");mn("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);mn("ERR_UNKNOWN_ENCODING",function(t){return"Unknown encoding: "+t},TypeError);mn("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event");L2.exports.codes=U2});var vC=w((ple,W2)=>{"use strict";var _9=Ut().codes.ERR_INVALID_OPT_VALUE;function H9(t,e,i){return t.highWaterMark!=null?t.highWaterMark:e?t[i]:null}function R9(t,e,i,n){var a=H9(e,n,i);if(a!=null){if(!(isFinite(a)&&Math.floor(a)===a)||a<0){var r=n?i:"highWaterMark";throw new _9(r,a)}return Math.floor(a)}return t.objectMode?16:16*1024}W2.exports={getHighWaterMark:R9}});var B2=w((dle,CC)=>{typeof Object.create=="function"?CC.exports=function(e,i){i&&(e.super_=i,e.prototype=Object.create(i.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:CC.exports=function(e,i){if(i){e.super_=i;var n=function(){};n.prototype=i.prototype,e.prototype=new n,e.prototype.constructor=e}}});var is=w((hle,bC)=>{try{if(AC=require("util"),typeof AC.inherits!="function")throw"";bC.exports=AC.inherits}catch{bC.exports=B2()}var AC});var Q2=w((gle,K2)=>{"use strict";function F2(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),i.push.apply(i,n)}return i}function V2(t){for(var e=1;e0?this.tail.next=n:this.head=n,this.tail=n,++this.length}},{key:"unshift",value:function(i){var n={data:i,next:this.head};this.length===0&&(this.tail=n),this.head=n,++this.length}},{key:"shift",value:function(){if(this.length!==0){var i=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,i}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(i){if(this.length===0)return"";for(var n=this.head,a=""+n.data;n=n.next;)a+=i+n.data;return a}},{key:"concat",value:function(i){if(this.length===0)return Ap.alloc(0);for(var n=Ap.allocUnsafe(i>>>0),a=this.head,r=0;a;)L9(a.data,n,r),r+=a.data.length,a=a.next;return n}},{key:"consume",value:function(i,n){var a;return is.length?s.length:i;if(o===s.length?r+=s:r+=s.slice(0,i),i-=o,i===0){o===s.length?(++a,n.next?this.head=n.next:this.head=this.tail=null):(this.head=n,n.data=s.slice(o));break}++a}return this.length-=a,r}},{key:"_getBuffer",value:function(i){var n=Ap.allocUnsafe(i),a=this.head,r=1;for(a.data.copy(n),i-=a.data.length;a=a.next;){var s=a.data,o=i>s.length?s.length:i;if(s.copy(n,n.length-i,0,o),i-=o,i===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,n}},{key:U9,value:function(i,n){return yC(this,V2(V2({},n),{},{depth:0,customInspect:!1}))}}]),t})()});var e0=w((PC,X2)=>{var bp=require("buffer"),Bn=bp.Buffer;function Y2(t,e){for(var i in t)e[i]=t[i]}Bn.from&&Bn.alloc&&Bn.allocUnsafe&&Bn.allocUnsafeSlow?X2.exports=bp:(Y2(bp,PC),PC.Buffer=La);function La(t,e,i){return Bn(t,e,i)}La.prototype=Object.create(Bn.prototype);Y2(Bn,La);La.from=function(t,e,i){if(typeof t=="number")throw new TypeError("Argument must not be a number");return Bn(t,e,i)};La.alloc=function(t,e,i){if(typeof t!="number")throw new TypeError("Argument must be a number");var n=Bn(t);return e!==void 0?typeof i=="string"?n.fill(e,i):n.fill(e):n.fill(0),n};La.allocUnsafe=function(t){if(typeof t!="number")throw new TypeError("Argument must be a number");return Bn(t)};La.allocUnsafeSlow=function(t){if(typeof t!="number")throw new TypeError("Argument must be a number");return bp.SlowBuffer(t)}});var OC=w(n0=>{"use strict";var SC=e0().Buffer,i0=SC.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 W9(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 B9(t){var e=W9(t);if(typeof e!="string"&&(SC.isEncoding===i0||!i0(t)))throw new Error("Unknown encoding: "+t);return e||t}n0.StringDecoder=ol;function ol(t){this.encoding=B9(t);var e;switch(this.encoding){case"utf16le":this.text=Q9,this.end=Y9,e=4;break;case"utf8":this.fillLast=J9,e=4;break;case"base64":this.text=X9,this.end=e6,e=3;break;default:this.write=i6,this.end=n6;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=SC.allocUnsafe(e)}ol.prototype.write=function(t){if(t.length===0)return"";var e,i;if(this.lastNeed){if(e=this.fillLast(t),e===void 0)return"";i=this.lastNeed,this.lastNeed=0}else i=0;return i>5===6?2:t>>4===14?3:t>>3===30?4:t>>6===2?-1:-2}function F9(t,e,i){var n=e.length-1;if(n=0?(a>0&&(t.lastNeed=a-1),a):--n=0?(a>0&&(t.lastNeed=a-2),a):--n=0?(a>0&&(a===2?a=0:t.lastNeed=a-3),a):0))}function V9(t,e,i){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 J9(t){var e=this.lastTotal-this.lastNeed,i=V9(this,t,e);if(i!==void 0)return i;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 Z9(t,e){var i=F9(this,t,e);if(!this.lastNeed)return t.toString("utf8",e);this.lastTotal=i;var n=t.length-(i-this.lastNeed);return t.copy(this.lastChar,0,n),t.toString("utf8",e,n)}function K9(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+"\uFFFD":e}function Q9(t,e){if((t.length-e)%2===0){var i=t.toString("utf16le",e);if(i){var n=i.charCodeAt(i.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1],i.slice(0,-1)}return i}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=t[t.length-1],t.toString("utf16le",e,t.length-1)}function Y9(t){var e=t&&t.length?this.write(t):"";if(this.lastNeed){var i=this.lastTotal-this.lastNeed;return e+this.lastChar.toString("utf16le",0,i)}return e}function X9(t,e){var i=(t.length-e)%3;return i===0?t.toString("base64",e):(this.lastNeed=3-i,this.lastTotal=3,i===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-i))}function e6(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}function i6(t){return t.toString(this.encoding)}function n6(t){return t&&t.length?this.write(t):""}});var yp=w((fle,r0)=>{"use strict";var t0=Ut().codes.ERR_STREAM_PREMATURE_CLOSE;function t6(t){var e=!1;return function(){if(!e){e=!0;for(var i=arguments.length,n=new Array(i),a=0;a{"use strict";var Pp;function Lt(t,e,i){return e=s6(e),e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function s6(t){var e=o6(t,"string");return typeof e=="symbol"?e:String(e)}function o6(t,e){if(typeof t!="object"||t===null)return t;var i=t[Symbol.toPrimitive];if(i!==void 0){var n=i.call(t,e||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var l6=yp(),Wt=Symbol("lastResolve"),Wa=Symbol("lastReject"),ll=Symbol("error"),jp=Symbol("ended"),Ba=Symbol("lastPromise"),xC=Symbol("handlePromise"),Fa=Symbol("stream");function Bt(t,e){return{value:t,done:e}}function u6(t){var e=t[Wt];if(e!==null){var i=t[Fa].read();i!==null&&(t[Ba]=null,t[Wt]=null,t[Wa]=null,e(Bt(i,!1)))}}function c6(t){process.nextTick(u6,t)}function p6(t,e){return function(i,n){t.then(function(){if(e[jp]){i(Bt(void 0,!0));return}e[xC](i,n)},n)}}var d6=Object.getPrototypeOf(function(){}),h6=Object.setPrototypeOf((Pp={get stream(){return this[Fa]},next:function(){var e=this,i=this[ll];if(i!==null)return Promise.reject(i);if(this[jp])return Promise.resolve(Bt(void 0,!0));if(this[Fa].destroyed)return new Promise(function(s,o){process.nextTick(function(){e[ll]?o(e[ll]):s(Bt(void 0,!0))})});var n=this[Ba],a;if(n)a=new Promise(p6(n,this));else{var r=this[Fa].read();if(r!==null)return Promise.resolve(Bt(r,!1));a=new Promise(this[xC])}return this[Ba]=a,a}},Lt(Pp,Symbol.asyncIterator,function(){return this}),Lt(Pp,"return",function(){var e=this;return new Promise(function(i,n){e[Fa].destroy(null,function(a){if(a){n(a);return}i(Bt(void 0,!0))})})}),Pp),d6),g6=function(e){var i,n=Object.create(h6,(i={},Lt(i,Fa,{value:e,writable:!0}),Lt(i,Wt,{value:null,writable:!0}),Lt(i,Wa,{value:null,writable:!0}),Lt(i,ll,{value:null,writable:!0}),Lt(i,jp,{value:e._readableState.endEmitted,writable:!0}),Lt(i,xC,{value:function(r,s){var o=n[Fa].read();o?(n[Ba]=null,n[Wt]=null,n[Wa]=null,r(Bt(o,!1))):(n[Wt]=r,n[Wa]=s)},writable:!0}),i));return n[Ba]=null,l6(e,function(a){if(a&&a.code!=="ERR_STREAM_PREMATURE_CLOSE"){var r=n[Wa];r!==null&&(n[Ba]=null,n[Wt]=null,n[Wa]=null,r(a)),n[ll]=a;return}var s=n[Wt];s!==null&&(n[Ba]=null,n[Wt]=null,n[Wa]=null,s(Bt(void 0,!0))),n[jp]=!0}),e.on("readable",c6.bind(null,n)),n};s0.exports=g6});var p0=w((vle,c0)=>{"use strict";function l0(t,e,i,n,a,r,s){try{var o=t[r](s),l=o.value}catch(u){i(u);return}o.done?e(l):Promise.resolve(l).then(n,a)}function m6(t){return function(){var e=this,i=arguments;return new Promise(function(n,a){var r=t.apply(e,i);function s(l){l0(r,n,a,s,o,"next",l)}function o(l){l0(r,n,a,s,o,"throw",l)}s(void 0)})}}function u0(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),i.push.apply(i,n)}return i}function f6(t){for(var e=1;e{"use strict";b0.exports=je;var ns;je.ReadableState=m0;var Cle=require("events").EventEmitter,g0=function(e,i){return e.listeners(i).length},cl=mC(),Sp=require("buffer").Buffer,y6=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function P6(t){return Sp.from(t)}function j6(t){return Sp.isBuffer(t)||t instanceof y6}var TC=require("util"),ue;TC&&TC.debuglog?ue=TC.debuglog("stream"):ue=function(){};var S6=Q2(),RC=wC(),O6=vC(),x6=O6.getHighWaterMark,Op=Ut().codes,T6=Op.ERR_INVALID_ARG_TYPE,M6=Op.ERR_STREAM_PUSH_AFTER_EOF,E6=Op.ERR_METHOD_NOT_IMPLEMENTED,k6=Op.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,ts,MC,EC;is()(je,cl);var ul=RC.errorOrDestroy,kC=["error","close","destroy","pause","resume"];function q6(t,e,i){if(typeof t.prependListener=="function")return t.prependListener(e,i);!t._events||!t._events[e]?t.on(e,i):Array.isArray(t._events[e])?t._events[e].unshift(i):t._events[e]=[i,t._events[e]]}function m0(t,e,i){ns=ns||Va(),t=t||{},typeof i!="boolean"&&(i=e instanceof ns),this.objectMode=!!t.objectMode,i&&(this.objectMode=this.objectMode||!!t.readableObjectMode),this.highWaterMark=x6(this,t,"readableHighWaterMark",i),this.buffer=new S6,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&&(ts||(ts=OC().StringDecoder),this.decoder=new ts(t.encoding),this.encoding=t.encoding)}function je(t){if(ns=ns||Va(),!(this instanceof je))return new je(t);var e=this instanceof ns;this._readableState=new m0(t,this,e),this.readable=!0,t&&(typeof t.read=="function"&&(this._read=t.read),typeof t.destroy=="function"&&(this._destroy=t.destroy)),cl.call(this)}Object.defineProperty(je.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}});je.prototype.destroy=RC.destroy;je.prototype._undestroy=RC.undestroy;je.prototype._destroy=function(t,e){e(t)};je.prototype.push=function(t,e){var i=this._readableState,n;return i.objectMode?n=!0:typeof t=="string"&&(e=e||i.defaultEncoding,e!==i.encoding&&(t=Sp.from(t,e),e=""),n=!0),f0(this,t,e,!1,n)};je.prototype.unshift=function(t){return f0(this,t,null,!0,!1)};function f0(t,e,i,n,a){ue("readableAddChunk",e);var r=t._readableState;if(e===null)r.reading=!1,R6(t,r);else{var s;if(a||(s=_6(r,e)),s)ul(t,s);else if(r.objectMode||e&&e.length>0)if(typeof e!="string"&&!r.objectMode&&Object.getPrototypeOf(e)!==Sp.prototype&&(e=P6(e)),n)r.endEmitted?ul(t,new k6):qC(t,r,e,!0);else if(r.ended)ul(t,new M6);else{if(r.destroyed)return!1;r.reading=!1,r.decoder&&!i?(e=r.decoder.write(e),r.objectMode||e.length!==0?qC(t,r,e,!1):HC(t,r)):qC(t,r,e,!1)}else n||(r.reading=!1,HC(t,r))}return!r.ended&&(r.length=d0?t=d0:(t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++),t}function h0(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=H6(t)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0))}je.prototype.read=function(t){ue("read",t),t=parseInt(t,10);var e=this._readableState,i=t;if(t!==0&&(e.emittedReadable=!1),t===0&&e.needReadable&&((e.highWaterMark!==0?e.length>=e.highWaterMark:e.length>0)||e.ended))return ue("read: emitReadable",e.length,e.ended),e.length===0&&e.ended?_C(this):xp(this),null;if(t=h0(t,e),t===0&&e.ended)return e.length===0&&_C(this),null;var n=e.needReadable;ue("need readable",n),(e.length===0||e.length-t0?a=C0(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),i!==t&&e.ended&&_C(this)),a!==null&&this.emit("data",a),a};function R6(t,e){if(ue("onEofChunk"),!e.ended){if(e.decoder){var i=e.decoder.end();i&&i.length&&(e.buffer.push(i),e.length+=e.objectMode?1:i.length)}e.ended=!0,e.sync?xp(t):(e.needReadable=!1,e.emittedReadable||(e.emittedReadable=!0,w0(t)))}}function xp(t){var e=t._readableState;ue("emitReadable",e.needReadable,e.emittedReadable),e.needReadable=!1,e.emittedReadable||(ue("emitReadable",e.flowing),e.emittedReadable=!0,process.nextTick(w0,t))}function w0(t){var e=t._readableState;ue("emitReadable_",e.destroyed,e.length,e.ended),!e.destroyed&&(e.length||e.ended)&&(t.emit("readable"),e.emittedReadable=!1),e.needReadable=!e.flowing&&!e.ended&&e.length<=e.highWaterMark,IC(t)}function HC(t,e){e.readingMore||(e.readingMore=!0,process.nextTick(I6,t,e))}function I6(t,e){for(;!e.reading&&!e.ended&&(e.length1&&A0(n.pipes,t)!==-1)&&!u&&(ue("false write response, pause",n.awaitDrain),n.awaitDrain++),i.pause())}function d(f){ue("onerror",f),m(),t.removeListener("error",d),g0(t,"error")===0&&ul(t,f)}q6(t,"error",d);function h(){t.removeListener("finish",g),m()}t.once("close",h);function g(){ue("onfinish"),t.removeListener("close",h),m()}t.once("finish",g);function m(){ue("unpipe"),i.unpipe(t)}return t.emit("pipe",i),n.flowing||(ue("pipe resume"),i.resume()),t};function z6(t){return function(){var i=t._readableState;ue("pipeOnDrain",i.awaitDrain),i.awaitDrain&&i.awaitDrain--,i.awaitDrain===0&&g0(t,"data")&&(i.flowing=!0,IC(t))}}je.prototype.unpipe=function(t){var e=this._readableState,i={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,i),this);if(!t){var n=e.pipes,a=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var r=0;r0,n.flowing!==!1&&this.resume()):t==="readable"&&!n.endEmitted&&!n.readableListening&&(n.readableListening=n.needReadable=!0,n.flowing=!1,n.emittedReadable=!1,ue("on readable",n.length,n.reading),n.length?xp(this):n.reading||process.nextTick(D6,this)),i};je.prototype.addListener=je.prototype.on;je.prototype.removeListener=function(t,e){var i=cl.prototype.removeListener.call(this,t,e);return t==="readable"&&process.nextTick(v0,this),i};je.prototype.removeAllListeners=function(t){var e=cl.prototype.removeAllListeners.apply(this,arguments);return(t==="readable"||t===void 0)&&process.nextTick(v0,this),e};function v0(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 D6(t){ue("readable nexttick read 0"),t.read(0)}je.prototype.resume=function(){var t=this._readableState;return t.flowing||(ue("resume"),t.flowing=!t.readableListening,G6(this,t)),t.paused=!1,this};function G6(t,e){e.resumeScheduled||(e.resumeScheduled=!0,process.nextTick($6,t,e))}function $6(t,e){ue("resume",e.reading),e.reading||t.read(0),e.resumeScheduled=!1,t.emit("resume"),IC(t),e.flowing&&!e.reading&&t.read(0)}je.prototype.pause=function(){return ue("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(ue("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function IC(t){var e=t._readableState;for(ue("flow",e.flowing);e.flowing&&t.read()!==null;);}je.prototype.wrap=function(t){var e=this,i=this._readableState,n=!1;t.on("end",function(){if(ue("wrapped end"),i.decoder&&!i.ended){var s=i.decoder.end();s&&s.length&&e.push(s)}e.push(null)}),t.on("data",function(s){if(ue("wrapped data"),i.decoder&&(s=i.decoder.write(s)),!(i.objectMode&&s==null)&&!(!i.objectMode&&(!s||!s.length))){var o=e.push(s);o||(n=!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?i=e.buffer.join(""):e.buffer.length===1?i=e.buffer.first():i=e.buffer.concat(e.length),e.buffer.clear()):i=e.buffer.consume(t,e.decoder),i}function _C(t){var e=t._readableState;ue("endReadable",e.endEmitted),e.endEmitted||(e.ended=!0,process.nextTick(N6,e,t))}function N6(t,e){if(ue("endReadableNT",t.endEmitted,t.length),!t.endEmitted&&t.length===0&&(t.endEmitted=!0,e.readable=!1,e.emit("end"),t.autoDestroy)){var i=e._writableState;(!i||i.autoDestroy&&i.finished)&&e.destroy()}}typeof Symbol=="function"&&(je.from=function(t,e){return EC===void 0&&(EC=p0()),EC(je,t,e)});function A0(t,e){for(var i=0,n=t.length;i{"use strict";var U6=Object.keys||function(t){var e=[];for(var i in t)e.push(i);return e};P0.exports=Fn;var y0=zC(),GC=Ep();is()(Fn,y0);for(DC=U6(GC.prototype),Tp=0;Tp{"use strict";M0.exports=Ye;function S0(t){var e=this;this.next=null,this.entry=null,this.finish=function(){wQ(e,t)}}var as;Ye.WritableState=dl;var B6={deprecate:z2()},O0=mC(),qp=require("buffer").Buffer,F6=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function V6(t){return qp.from(t)}function J6(t){return qp.isBuffer(t)||t instanceof F6}var NC=wC(),Z6=vC(),K6=Z6.getHighWaterMark,Ft=Ut().codes,Q6=Ft.ERR_INVALID_ARG_TYPE,Y6=Ft.ERR_METHOD_NOT_IMPLEMENTED,X6=Ft.ERR_MULTIPLE_CALLBACK,eQ=Ft.ERR_STREAM_CANNOT_PIPE,iQ=Ft.ERR_STREAM_DESTROYED,nQ=Ft.ERR_STREAM_NULL_VALUES,tQ=Ft.ERR_STREAM_WRITE_AFTER_END,aQ=Ft.ERR_UNKNOWN_ENCODING,rs=NC.errorOrDestroy;is()(Ye,O0);function rQ(){}function dl(t,e,i){as=as||Va(),t=t||{},typeof i!="boolean"&&(i=e instanceof as),this.objectMode=!!t.objectMode,i&&(this.objectMode=this.objectMode||!!t.writableObjectMode),this.highWaterMark=K6(this,t,"writableHighWaterMark",i),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var n=t.decodeStrings===!1;this.decodeStrings=!n,this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(a){dQ(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 S0(this)}dl.prototype.getBuffer=function(){for(var e=this.bufferedRequest,i=[];e;)i.push(e),e=e.next;return i};(function(){try{Object.defineProperty(dl.prototype,"buffer",{get:B6.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}})();var kp;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(kp=Function.prototype[Symbol.hasInstance],Object.defineProperty(Ye,Symbol.hasInstance,{value:function(e){return kp.call(this,e)?!0:this!==Ye?!1:e&&e._writableState instanceof dl}})):kp=function(e){return e instanceof this};function Ye(t){as=as||Va();var e=this instanceof as;if(!e&&!kp.call(Ye,this))return new Ye(t);this._writableState=new dl(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)),O0.call(this)}Ye.prototype.pipe=function(){rs(this,new eQ)};function sQ(t,e){var i=new tQ;rs(t,i),process.nextTick(e,i)}function oQ(t,e,i,n){var a;return i===null?a=new nQ:typeof i!="string"&&!e.objectMode&&(a=new Q6("chunk",["string","Buffer"],i)),a?(rs(t,a),process.nextTick(n,a),!1):!0}Ye.prototype.write=function(t,e,i){var n=this._writableState,a=!1,r=!n.objectMode&&J6(t);return r&&!qp.isBuffer(t)&&(t=V6(t)),typeof e=="function"&&(i=e,e=null),r?e="buffer":e||(e=n.defaultEncoding),typeof i!="function"&&(i=rQ),n.ending?sQ(this,i):(r||oQ(this,n,t,i))&&(n.pendingcb++,a=uQ(this,n,r,t,e,i)),a};Ye.prototype.cork=function(){this._writableState.corked++};Ye.prototype.uncork=function(){var t=this._writableState;t.corked&&(t.corked--,!t.writing&&!t.corked&&!t.bufferProcessing&&t.bufferedRequest&&x0(this,t))};Ye.prototype.setDefaultEncoding=function(e){if(typeof e=="string"&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new aQ(e);return this._writableState.defaultEncoding=e,this};Object.defineProperty(Ye.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function lQ(t,e,i){return!t.objectMode&&t.decodeStrings!==!1&&typeof e=="string"&&(e=qp.from(e,i)),e}Object.defineProperty(Ye.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function uQ(t,e,i,n,a,r){if(!i){var s=lQ(e,n,a);n!==s&&(i=!0,a="buffer",n=s)}var o=e.objectMode?1:n.length;e.length+=o;var l=e.length{"use strict";var vQ=require("util"),E0=Ep(),{LEVEL:k0}=ri(),hl=q0.exports=function(e={}){E0.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",i=>{this.levels=i.levels,this.parent=i}),this.once("unpipe",i=>{i===this.parent&&(this.parent=null,this.close&&this.close())})};vQ.inherits(hl,E0);hl.prototype._write=function(e,i,n){if(this.silent||e.exception===!0&&!this.handleExceptions)return n(null);let a=this.level||this.parent&&this.parent.level;if(!a||this.levels[a]>=this.levels[e[k0]]){if(e&&!this.format)return this.log(e,n);let r,s;try{s=this.format.transform(Object.assign({},e),this.format.options)}catch(o){r=o}if(r||!s){if(n(),r)throw r;return}return this.log(s,n)}return this._writableState.sync=!1,n(null)};hl.prototype._writev=function(e,i){if(this.logv){let n=e.filter(this._accept,this);return n.length?this.logv(n,i):i(null)}for(let n=0;n=this.levels[i[k0]])&&(this.handleExceptions||i.exception!==!0))};hl.prototype._nop=function(){}});var WC=w((jle,H0)=>{"use strict";var CQ=require("util"),{LEVEL:LC}=ri(),_0=UC(),gl=H0.exports=function(e={}){if(_0.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 i(n){this.emit("error",n,this.transport)}this.transport.__winstonError||(this.transport.__winstonError=i.bind(this),this.transport.on("error",this.transport.__winstonError))};CQ.inherits(gl,_0);gl.prototype._write=function(e,i,n){if(this.silent||e.exception===!0&&!this.handleExceptions)return n(null);(!this.level||this.levels[this.level]>=this.levels[e[LC]])&&this.transport.log(e[LC],e.message,e,this._nop),n(null)};gl.prototype._writev=function(e,i){for(let n=0;n{"use strict";BC.exports=UC();BC.exports.LegacyTransportStream=WC()});var z0=w((xle,I0)=>{"use strict";var AQ=require("os"),{LEVEL:R0,MESSAGE:os}=ri(),bQ=ss();I0.exports=class extends bQ{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:AQ.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,i){if(setImmediate(()=>this.emit("logged",e)),this.stderrLevels[e[R0]]){console._stderr&&!this.forceConsole?console._stderr.write(`${e[os]}${this.eol}`):this._consoleError(e[os]),i&&i();return}else if(this.consoleWarnLevels[e[R0]]){console._stderr&&!this.forceConsole?console._stderr.write(`${e[os]}${this.eol}`):this._consoleWarn(e[os]),i&&i();return}console._stdout&&!this.forceConsole?console._stdout.write(`${e[os]}${this.eol}`):this._consoleLog(e[os]),i&&i()}_stringArrayToSet(e,i){if(!e)return{};if(i=i||"Cannot make set from type other than Array of string elements",!Array.isArray(e))throw new Error(i);return e.reduce((n,a)=>{if(typeof a!="string")throw new Error(i);return n[a]=!0,n},{})}}});var Hp=w((_p,D0)=>{"use strict";Object.defineProperty(_p,"__esModule",{value:!0});_p.default=yQ;function yQ(t){return t&&typeof t.length=="number"&&t.length>=0&&t.length%1===0}D0.exports=_p.default});var $0=w((Rp,G0)=>{"use strict";Object.defineProperty(Rp,"__esModule",{value:!0});Rp.default=function(t){return function(...e){var i=e.pop();return t.call(this,e,i)}};G0.exports=Rp.default});var L0=w(Vt=>{"use strict";Object.defineProperty(Vt,"__esModule",{value:!0});Vt.fallback=N0;Vt.wrap=U0;var PQ=Vt.hasQueueMicrotask=typeof queueMicrotask=="function"&&queueMicrotask,jQ=Vt.hasSetImmediate=typeof setImmediate=="function"&&setImmediate,SQ=Vt.hasNextTick=typeof process=="object"&&typeof process.nextTick=="function";function N0(t){setTimeout(t,0)}function U0(t){return(e,...i)=>t(()=>e(...i))}var ml;PQ?ml=queueMicrotask:jQ?ml=setImmediate:SQ?ml=process.nextTick:ml=N0;Vt.default=U0(ml)});var J0=w((Ip,V0)=>{"use strict";Object.defineProperty(Ip,"__esModule",{value:!0});Ip.default=kQ;var OQ=$0(),xQ=F0(OQ),TQ=L0(),MQ=F0(TQ),EQ=Ja();function F0(t){return t&&t.__esModule?t:{default:t}}function kQ(t){return(0,EQ.isAsync)(t)?function(...e){let i=e.pop(),n=t.apply(this,e);return W0(n,i)}:(0,xQ.default)(function(e,i){var n;try{n=t.apply(this,e)}catch(a){return i(a)}if(n&&typeof n.then=="function")return W0(n,i);i(null,n)})}function W0(t,e){return t.then(i=>{B0(e,null,i)},i=>{B0(e,i&&(i instanceof Error||i.message)?i:new Error(i))})}function B0(t,e,i){try{t(e,i)}catch(n){(0,MQ.default)(a=>{throw a},n)}}V0.exports=Ip.default});var Ja=w(pt=>{"use strict";Object.defineProperty(pt,"__esModule",{value:!0});pt.isAsyncIterable=pt.isAsyncGenerator=pt.isAsync=void 0;var qQ=J0(),_Q=HQ(qQ);function HQ(t){return t&&t.__esModule?t:{default:t}}function Z0(t){return t[Symbol.toStringTag]==="AsyncFunction"}function RQ(t){return t[Symbol.toStringTag]==="AsyncGenerator"}function IQ(t){return typeof t[Symbol.asyncIterator]=="function"}function zQ(t){if(typeof t!="function")throw new Error("expected a function");return Z0(t)?(0,_Q.default)(t):t}pt.default=zQ;pt.isAsync=Z0;pt.isAsyncGenerator=RQ;pt.isAsyncIterable=IQ});var ls=w((zp,K0)=>{"use strict";Object.defineProperty(zp,"__esModule",{value:!0});zp.default=DQ;function DQ(t,e){if(e||(e=t.length),!e)throw new Error("arity is undefined");function i(...n){return typeof n[e-1]=="function"?t.apply(this,n):new Promise((a,r)=>{n[e-1]=(s,...o)=>{if(s)return r(s);a(o.length>1?o:o[0])},t.apply(this,n)})}return i}K0.exports=zp.default});var Y0=w((Dp,Q0)=>{"use strict";Object.defineProperty(Dp,"__esModule",{value:!0});var GQ=Hp(),$Q=FC(GQ),NQ=Ja(),UQ=FC(NQ),LQ=ls(),WQ=FC(LQ);function FC(t){return t&&t.__esModule?t:{default:t}}Dp.default=(0,WQ.default)((t,e,i)=>{var n=(0,$Q.default)(e)?[]:{};t(e,(a,r,s)=>{(0,UQ.default)(a)((o,...l)=>{l.length<2&&([l]=l),n[r]=l,s(o)})},a=>i(a,n))},3);Q0.exports=Dp.default});var VC=w((Gp,X0)=>{"use strict";Object.defineProperty(Gp,"__esModule",{value:!0});Gp.default=BQ;function BQ(t){function e(...i){if(t!==null){var n=t;t=null,n.apply(this,i)}}return Object.assign(e,t),e}X0.exports=Gp.default});var iH=w(($p,eH)=>{"use strict";Object.defineProperty($p,"__esModule",{value:!0});$p.default=function(t){return t[Symbol.iterator]&&t[Symbol.iterator]()};eH.exports=$p.default});var aH=w((Np,tH)=>{"use strict";Object.defineProperty(Np,"__esModule",{value:!0});Np.default=XQ;var FQ=Hp(),VQ=nH(FQ),JQ=iH(),ZQ=nH(JQ);function nH(t){return t&&t.__esModule?t:{default:t}}function KQ(t){var e=-1,i=t.length;return function(){return++e{"use strict";Object.defineProperty(Up,"__esModule",{value:!0});Up.default=e8;function e8(t){return function(...e){if(t===null)throw new Error("Callback was already called.");var i=t;t=null,i.apply(this,e)}}rH.exports=Up.default});var Wp=w((Lp,sH)=>{"use strict";Object.defineProperty(Lp,"__esModule",{value:!0});var i8={};Lp.default=i8;sH.exports=Lp.default});var lH=w((Bp,oH)=>{"use strict";Object.defineProperty(Bp,"__esModule",{value:!0});Bp.default=r8;var n8=Wp(),t8=a8(n8);function a8(t){return t&&t.__esModule?t:{default:t}}function r8(t,e,i,n){let a=!1,r=!1,s=!1,o=0,l=0;function u(){o>=e||s||a||(s=!0,t.next().then(({value:d,done:h})=>{if(!(r||a)){if(s=!1,h){a=!0,o<=0&&n(null);return}o++,i(d,l,c),l++,u()}}).catch(p))}function c(d,h){if(o-=1,!r){if(d)return p(d);if(d===!1){a=!0,r=!0;return}if(h===t8.default||a&&o<=0)return a=!0,n(null);u()}}function p(d){r||(s=!1,a=!0,n(d))}u()}oH.exports=Bp.default});var dH=w((Fp,pH)=>{"use strict";Object.defineProperty(Fp,"__esModule",{value:!0});var s8=VC(),o8=fl(s8),l8=aH(),u8=fl(l8),c8=JC(),p8=fl(c8),uH=Ja(),d8=lH(),cH=fl(d8),h8=Wp(),g8=fl(h8);function fl(t){return t&&t.__esModule?t:{default:t}}Fp.default=t=>(e,i,n)=>{if(n=(0,o8.default)(n),t<=0)throw new RangeError("concurrency limit cannot be less than 1");if(!e)return n(null);if((0,uH.isAsyncGenerator)(e))return(0,cH.default)(e,t,i,n);if((0,uH.isAsyncIterable)(e))return(0,cH.default)(e[Symbol.asyncIterator](),t,i,n);var a=(0,u8.default)(e),r=!1,s=!1,o=0,l=!1;function u(p,d){if(!s)if(o-=1,p)r=!0,n(p);else if(p===!1)r=!0,s=!0;else{if(d===g8.default||r&&o<=0)return r=!0,n(null);l||c()}}function c(){for(l=!0;o{"use strict";Object.defineProperty(Vp,"__esModule",{value:!0});var m8=dH(),f8=ZC(m8),w8=Ja(),v8=ZC(w8),C8=ls(),A8=ZC(C8);function ZC(t){return t&&t.__esModule?t:{default:t}}function b8(t,e,i,n){return(0,f8.default)(e)(t,(0,v8.default)(i),n)}Vp.default=(0,A8.default)(b8,4);hH.exports=Vp.default});var fH=w((Jp,mH)=>{"use strict";Object.defineProperty(Jp,"__esModule",{value:!0});var y8=KC(),P8=gH(y8),j8=ls(),S8=gH(j8);function gH(t){return t&&t.__esModule?t:{default:t}}function O8(t,e,i){return(0,P8.default)(t,1,e,i)}Jp.default=(0,S8.default)(O8,3);mH.exports=Jp.default});var CH=w((Zp,vH)=>{"use strict";Object.defineProperty(Zp,"__esModule",{value:!0});Zp.default=k8;var x8=Y0(),T8=wH(x8),M8=fH(),E8=wH(M8);function wH(t){return t&&t.__esModule?t:{default:t}}function k8(t,e){return(0,T8.default)(E8.default,t,e)}vH.exports=Zp.default});var QC=w((Ele,bH)=>{"use strict";bH.exports=dt;var Kp=Ut().codes,q8=Kp.ERR_METHOD_NOT_IMPLEMENTED,_8=Kp.ERR_MULTIPLE_CALLBACK,H8=Kp.ERR_TRANSFORM_ALREADY_TRANSFORMING,R8=Kp.ERR_TRANSFORM_WITH_LENGTH_0,Qp=Va();is()(dt,Qp);function I8(t,e){var i=this._transformState;i.transforming=!1;var n=i.writecb;if(n===null)return this.emit("error",new _8);i.writechunk=null,i.writecb=null,e!=null&&this.push(e),n(t);var a=this._readableState;a.reading=!1,(a.needReadable||a.length{"use strict";PH.exports=wl;var yH=QC();is()(wl,yH);function wl(t){if(!(this instanceof wl))return new wl(t);yH.call(this,t)}wl.prototype._transform=function(t,e,i){i(null,t)}});var MH=w((qle,TH)=>{"use strict";var YC;function D8(t){var e=!1;return function(){e||(e=!0,t.apply(void 0,arguments))}}var xH=Ut().codes,G8=xH.ERR_MISSING_ARGS,$8=xH.ERR_STREAM_DESTROYED;function SH(t){if(t)throw t}function N8(t){return t.setHeader&&typeof t.abort=="function"}function U8(t,e,i,n){n=D8(n);var a=!1;t.on("close",function(){a=!0}),YC===void 0&&(YC=yp()),YC(t,{readable:e,writable:i},function(s){if(s)return n(s);a=!0,n()});var r=!1;return function(s){if(!a&&!r){if(r=!0,N8(t))return t.abort();if(typeof t.destroy=="function")return t.destroy();n(s||new $8("pipe"))}}}function OH(t){t()}function L8(t,e){return t.pipe(e)}function W8(t){return!t.length||typeof t[t.length-1]!="function"?SH:t.pop()}function B8(){for(var t=arguments.length,e=new Array(t),i=0;i0;return U8(s,l,u,function(c){a||(a=c),c&&r.forEach(OH),!l&&(r.forEach(OH),n(a))})});return e.reduce(L8)}TH.exports=B8});var Za=w((fn,Cl)=>{var vl=require("stream");process.env.READABLE_STREAM==="disable"&&vl?(Cl.exports=vl.Readable,Object.assign(Cl.exports,vl),Cl.exports.Stream=vl):(fn=Cl.exports=zC(),fn.Stream=vl||fn,fn.Readable=fn,fn.Writable=Ep(),fn.Duplex=Va(),fn.Transform=QC(),fn.PassThrough=jH(),fn.finished=yp(),fn.pipeline=MH())});var rA=w((_le,kH)=>{var us=[],Al=[],XC=function(){};function iA(t){return~us.indexOf(t)?!1:(us.push(t),!0)}function nA(t){XC=t}function F8(t){for(var e=[],i=0;i{var Z8=rA(),K8=Z8(function t(e,i){return i=i||{},i.namespace=e,i.prod=!0,i.dev=!1,i.force||t.force?t.yep(i):t.nope(i)});qH.exports=K8});var GH=w((Rle,DH)=>{"use strict";var Vn={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]},RH=Object.create(null);for(let t in Vn)Object.hasOwn(Vn,t)&&(RH[Vn[t]]=t);var ci={to:{},get:{}};ci.get=function(t){let e=t.slice(0,3).toLowerCase(),i,n;switch(e){case"hsl":{i=ci.get.hsl(t),n="hsl";break}case"hwb":{i=ci.get.hwb(t),n="hwb";break}default:{i=ci.get.rgb(t),n="rgb";break}}return i?{model:n,value:i}:null};ci.get.rgb=function(t){if(!t)return null;let e=/^#([a-f\d]{3,4})$/i,i=/^#([a-f\d]{6})([a-f\d]{2})?$/i,n=/^rgba?\(\s*([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)\s*(?:[\s,|/]\s*([+-]?[\d.]+)(%?)\s*)?\)$/,a=/^rgba?\(\s*([+-]?[\d.]+)%\s*,?\s*([+-]?[\d.]+)%\s*,?\s*([+-]?[\d.]+)%\s*(?:[\s,|/]\s*([+-]?[\d.]+)(%?)\s*)?\)$/,r=/^(\w+)$/,s=[0,0,0,1],o,l,u;if(o=t.match(i)){for(u=o[2],o=o[1],l=0;l<3;l++){let c=l*2;s[l]=Number.parseInt(o.slice(c,c+2),16)}u&&(s[3]=Number.parseInt(u,16)/255)}else if(o=t.match(e)){for(o=o[1],u=o[3],l=0;l<3;l++)s[l]=Number.parseInt(o[l]+o[l],16);u&&(s[3]=Number.parseInt(u+u,16)/255)}else if(o=t.match(n)){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(Vn,o[1])?(s=Vn[o[1]],s[3]=1,s):null:null;for(l=0;l<3;l++)s[l]=Jt(s[l],0,255);return s[3]=Jt(s[3],0,1),s};ci.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*)?\)$/,i=t.match(e);if(i){let n=Number.parseFloat(i[4]),a=(Number.parseFloat(i[1])%360+360)%360,r=Jt(Number.parseFloat(i[2]),0,100),s=Jt(Number.parseFloat(i[3]),0,100),o=Jt(Number.isNaN(n)?1:n,0,1);return[a,r,s,o]}return null};ci.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*)?\)$/,i=t.match(e);if(i){let n=Number.parseFloat(i[4]),a=(Number.parseFloat(i[1])%360+360)%360,r=Jt(Number.parseFloat(i[2]),0,100),s=Jt(Number.parseFloat(i[3]),0,100),o=Jt(Number.isNaN(n)?1:n,0,1);return[a,r,s,o]}return null};ci.to.hex=function(...t){return"#"+Yp(t[0])+Yp(t[1])+Yp(t[2])+(t[3]<1?Yp(Math.round(t[3]*255)):"")};ci.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]+")"};ci.to.rgb.percent=function(...t){let e=Math.round(t[0]/255*100),i=Math.round(t[1]/255*100),n=Math.round(t[2]/255*100);return t.length<4||t[3]===1?"rgb("+e+"%, "+i+"%, "+n+"%)":"rgba("+e+"%, "+i+"%, "+n+"%, "+t[3]+")"};ci.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]+")"};ci.to.hwb=function(...t){let e="";return t.length>=4&&t[3]!==1&&(e=", "+t[3]),"hwb("+t[0]+", "+t[1]+"%, "+t[2]+"%"+e+")"};ci.to.keyword=function(...t){return RH[t.slice(0,3)]};function Jt(t,e,i){return Math.min(Math.max(e,t),i)}function Yp(t){let e=Math.round(t).toString(16).toUpperCase();return e.length<2?"0"+e:e}var IH={};for(let t of Object.keys(Vn))IH[Vn[t]]=t;var H={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},oklab:{channels:3,labels:["okl","oka","okb"]},lch:{channels:3,labels:"lch"},oklch:{channels:3,labels:["okl","okc","okh"]},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}},ht=(6/29)**3;function cs(t){let e=t>.0031308?1.055*t**.4166666666666667-.055:t*12.92;return Math.min(Math.max(0,e),1)}function ps(t){return t>.04045?((t+.055)/1.055)**2.4:t/12.92}for(let t of Object.keys(H)){if(!("channels"in H[t]))throw new Error("missing channels property: "+t);if(!("labels"in H[t]))throw new Error("missing channel labels property: "+t);if(H[t].labels.length!==H[t].channels)throw new Error("channel and label counts mismatch: "+t);let{channels:e,labels:i}=H[t];delete H[t].channels,delete H[t].labels,Object.defineProperty(H[t],"channels",{value:e}),Object.defineProperty(H[t],"labels",{value:i})}H.rgb.hsl=function(t){let e=t[0]/255,i=t[1]/255,n=t[2]/255,a=Math.min(e,i,n),r=Math.max(e,i,n),s=r-a,o,l;switch(r){case a:{o=0;break}case e:{o=(i-n)/s;break}case i:{o=2+(n-e)/s;break}case n:{o=4+(e-i)/s;break}}o=Math.min(o*60,360),o<0&&(o+=360);let u=(a+r)/2;return r===a?l=0:u<=.5?l=s/(r+a):l=s/(2-r-a),[o,l*100,u*100]};H.rgb.hsv=function(t){let e,i,n,a,r,s=t[0]/255,o=t[1]/255,l=t[2]/255,u=Math.max(s,o,l),c=u-Math.min(s,o,l),p=function(d){return(u-d)/6/c+1/2};if(c===0)a=0,r=0;else{switch(r=c/u,e=p(s),i=p(o),n=p(l),u){case s:{a=n-i;break}case o:{a=1/3+e-n;break}case l:{a=2/3+i-e;break}}a<0?a+=1:a>1&&(a-=1)}return[a*360,r*100,u*100]};H.rgb.hwb=function(t){let e=t[0],i=t[1],n=t[2],a=H.rgb.hsl(t)[0],r=1/255*Math.min(e,Math.min(i,n));return n=1-1/255*Math.max(e,Math.max(i,n)),[a,r*100,n*100]};H.rgb.oklab=function(t){let e=ps(t[0]/255),i=ps(t[1]/255),n=ps(t[2]/255),a=Math.cbrt(.4122214708*e+.5363325363*i+.0514459929*n),r=Math.cbrt(.2119034982*e+.6806995451*i+.1073969566*n),s=Math.cbrt(.0883024619*e+.2817188376*i+.6299787005*n),o=.2104542553*a+.793617785*r-.0040720468*s,l=1.9779984951*a-2.428592205*r+.4505937099*s,u=.0259040371*a+.7827717662*r-.808675766*s;return[o*100,l*100,u*100]};H.rgb.cmyk=function(t){let e=t[0]/255,i=t[1]/255,n=t[2]/255,a=Math.min(1-e,1-i,1-n),r=(1-e-a)/(1-a)||0,s=(1-i-a)/(1-a)||0,o=(1-n-a)/(1-a)||0;return[r*100,s*100,o*100,a*100]};function Q8(t,e){return(t[0]-e[0])**2+(t[1]-e[1])**2+(t[2]-e[2])**2}H.rgb.keyword=function(t){let e=IH[t];if(e)return e;let i=Number.POSITIVE_INFINITY,n;for(let a of Object.keys(Vn)){let r=Vn[a],s=Q8(t,r);sht?i**(1/3):7.787*i+16/116,n=n>ht?n**(1/3):7.787*n+16/116,a=a>ht?a**(1/3):7.787*a+16/116;let r=116*n-16,s=500*(i-n),o=200*(n-a);return[r,s,o]};H.hsl.rgb=function(t){let e=t[0]/360,i=t[1]/100,n=t[2]/100,a,r;if(i===0)return r=n*255,[r,r,r];let s=n<.5?n*(1+i):n+i-n*i,o=2*n-s,l=[0,0,0];for(let u=0;u<3;u++)a=e+1/3*-(u-1),a<0&&a++,a>1&&a--,6*a<1?r=o+(s-o)*6*a:2*a<1?r=s:3*a<2?r=o+(s-o)*(2/3-a)*6:r=o,l[u]=r*255;return l};H.hsl.hsv=function(t){let e=t[0],i=t[1]/100,n=t[2]/100,a=i,r=Math.max(n,.01);n*=2,i*=n<=1?n:2-n,a*=r<=1?r:2-r;let s=(n+i)/2,o=n===0?2*a/(r+a):2*i/(n+i);return[e,o*100,s*100]};H.hsv.rgb=function(t){let e=t[0]/60,i=t[1]/100,n=t[2]/100,a=Math.floor(e)%6,r=e-Math.floor(e),s=255*n*(1-i),o=255*n*(1-i*r),l=255*n*(1-i*(1-r));switch(n*=255,a){case 0:return[n,l,s];case 1:return[o,n,s];case 2:return[s,n,l];case 3:return[s,o,n];case 4:return[l,s,n];case 5:return[n,s,o]}};H.hsv.hsl=function(t){let e=t[0],i=t[1]/100,n=t[2]/100,a=Math.max(n,.01),r,s;s=(2-i)*n;let o=(2-i)*a;return r=i*a,r/=o<=1?o:2-o,r=r||0,s/=2,[e,r*100,s*100]};H.hwb.rgb=function(t){let e=t[0]/360,i=t[1]/100,n=t[2]/100,a=i+n,r;a>1&&(i/=a,n/=a);let s=Math.floor(6*e),o=1-n;r=6*e-s,(s&1)!==0&&(r=1-r);let l=i+r*(o-i),u,c,p;switch(s){default:case 6:case 0:{u=o,c=l,p=i;break}case 1:{u=l,c=o,p=i;break}case 2:{u=i,c=o,p=l;break}case 3:{u=i,c=l,p=o;break}case 4:{u=l,c=i,p=o;break}case 5:{u=o,c=i,p=l;break}}return[u*255,c*255,p*255]};H.cmyk.rgb=function(t){let e=t[0]/100,i=t[1]/100,n=t[2]/100,a=t[3]/100,r=1-Math.min(1,e*(1-a)+a),s=1-Math.min(1,i*(1-a)+a),o=1-Math.min(1,n*(1-a)+a);return[r*255,s*255,o*255]};H.xyz.rgb=function(t){let e=t[0]/100,i=t[1]/100,n=t[2]/100,a,r,s;return a=e*3.2404542+i*-1.5371385+n*-.4985314,r=e*-.969266+i*1.8760108+n*.041556,s=e*.0556434+i*-.2040259+n*1.0572252,a=cs(a),r=cs(r),s=cs(s),[a*255,r*255,s*255]};H.xyz.lab=function(t){let e=t[0],i=t[1],n=t[2];e/=95.047,i/=100,n/=108.883,e=e>ht?e**(1/3):7.787*e+16/116,i=i>ht?i**(1/3):7.787*i+16/116,n=n>ht?n**(1/3):7.787*n+16/116;let a=116*i-16,r=500*(e-i),s=200*(i-n);return[a,r,s]};H.xyz.oklab=function(t){let e=t[0]/100,i=t[1]/100,n=t[2]/100,a=Math.cbrt(.8189330101*e+.3618667424*i-.1288597137*n),r=Math.cbrt(.0329845436*e+.9293118715*i+.0361456387*n),s=Math.cbrt(.0482003018*e+.2643662691*i+.633851707*n),o=.2104542553*a+.793617785*r-.0040720468*s,l=1.9779984951*a-2.428592205*r+.4505937099*s,u=.0259040371*a+.7827717662*r-.808675766*s;return[o*100,l*100,u*100]};H.oklab.oklch=function(t){return H.lab.lch(t)};H.oklab.xyz=function(t){let e=t[0]/100,i=t[1]/100,n=t[2]/100,a=(.999999998*e+.396337792*i+.215803758*n)**3,r=(1.000000008*e-.105561342*i-.063854175*n)**3,s=(1.000000055*e-.089484182*i-1.291485538*n)**3,o=1.227013851*a-.55779998*r+.281256149*s,l=-.040580178*a+1.11225687*r-.071676679*s,u=-.076381285*a-.421481978*r+1.58616322*s;return[o*100,l*100,u*100]};H.oklab.rgb=function(t){let e=t[0]/100,i=t[1]/100,n=t[2]/100,a=(e+.3963377774*i+.2158037573*n)**3,r=(e-.1055613458*i-.0638541728*n)**3,s=(e-.0894841775*i-1.291485548*n)**3,o=cs(4.0767416621*a-3.3077115913*r+.2309699292*s),l=cs(-1.2684380046*a+2.6097574011*r-.3413193965*s),u=cs(-.0041960863*a-.7034186147*r+1.707614701*s);return[o*255,l*255,u*255]};H.oklch.oklab=function(t){return H.lch.lab(t)};H.lab.xyz=function(t){let e=t[0],i=t[1],n=t[2],a,r,s;r=(e+16)/116,a=i/500+r,s=r-n/200;let o=r**3,l=a**3,u=s**3;return r=o>ht?o:(r-16/116)/7.787,a=l>ht?l:(a-16/116)/7.787,s=u>ht?u:(s-16/116)/7.787,a*=95.047,r*=100,s*=108.883,[a,r,s]};H.lab.lch=function(t){let e=t[0],i=t[1],n=t[2],a;a=Math.atan2(n,i)*360/2/Math.PI,a<0&&(a+=360);let s=Math.sqrt(i*i+n*n);return[e,s,a]};H.lch.lab=function(t){let e=t[0],i=t[1],a=t[2]/360*2*Math.PI,r=i*Math.cos(a),s=i*Math.sin(a);return[e,r,s]};H.rgb.ansi16=function(t,e=null){let[i,n,a]=t,r=e===null?H.rgb.hsv(t)[2]:e;if(r=Math.round(r/50),r===0)return 30;let s=30+(Math.round(a/255)<<2|Math.round(n/255)<<1|Math.round(i/255));return r===2&&(s+=60),s};H.hsv.ansi16=function(t){return H.rgb.ansi16(H.hsv.rgb(t),t[2])};H.rgb.ansi256=function(t){let e=t[0],i=t[1],n=t[2];return e>>4===i>>4&&i>>4===n>>4?e<8?16:e>248?231:Math.round((e-8)/247*24)+232:16+36*Math.round(e/255*5)+6*Math.round(i/255*5)+Math.round(n/255*5)};H.ansi16.rgb=function(t){t=t[0];let e=t%10;if(e===0||e===7)return t>50&&(e+=3.5),e=e/10.5*255,[e,e,e];let i=(Math.trunc(t>50)+1)*.5,n=(e&1)*i*255,a=(e>>1&1)*i*255,r=(e>>2&1)*i*255;return[n,a,r]};H.ansi256.rgb=function(t){if(t=t[0],t>=232){let r=(t-232)*10+8;return[r,r,r]}t-=16;let e,i=Math.floor(t/36)/5*255,n=Math.floor((e=t%36)/6)/5*255,a=e%6/5*255;return[i,n,a]};H.rgb.hex=function(t){let i=(((Math.round(t[0])&255)<<16)+((Math.round(t[1])&255)<<8)+(Math.round(t[2])&255)).toString(16).toUpperCase();return"000000".slice(i.length)+i};H.hex.rgb=function(t){let e=t.toString(16).match(/[a-f\d]{6}|[a-f\d]{3}/i);if(!e)return[0,0,0];let i=e[0];e[0].length===3&&(i=[...i].map(o=>o+o).join(""));let n=Number.parseInt(i,16),a=n>>16&255,r=n>>8&255,s=n&255;return[a,r,s]};H.rgb.hcg=function(t){let e=t[0]/255,i=t[1]/255,n=t[2]/255,a=Math.max(Math.max(e,i),n),r=Math.min(Math.min(e,i),n),s=a-r,o,l=s<1?r/(1-s):0;return s<=0?o=0:a===e?o=(i-n)/s%6:a===i?o=2+(n-e)/s:o=4+(e-i)/s,o/=6,o%=1,[o*360,s*100,l*100]};H.hsl.hcg=function(t){let e=t[1]/100,i=t[2]/100,n=i<.5?2*e*i:2*e*(1-i),a=0;return n<1&&(a=(i-.5*n)/(1-n)),[t[0],n*100,a*100]};H.hsv.hcg=function(t){let e=t[1]/100,i=t[2]/100,n=e*i,a=0;return n<1&&(a=(i-n)/(1-n)),[t[0],n*100,a*100]};H.hcg.rgb=function(t){let e=t[0]/360,i=t[1]/100,n=t[2]/100;if(i===0)return[n*255,n*255,n*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-i)*n,[(i*a[0]+l)*255,(i*a[1]+l)*255,(i*a[2]+l)*255]};H.hcg.hsv=function(t){let e=t[1]/100,i=t[2]/100,n=e+i*(1-e),a=0;return n>0&&(a=e/n),[t[0],a*100,n*100]};H.hcg.hsl=function(t){let e=t[1]/100,n=t[2]/100*(1-e)+.5*e,a=0;return n>0&&n<.5?a=e/(2*n):n>=.5&&n<1&&(a=e/(2*(1-n))),[t[0],a*100,n*100]};H.hcg.hwb=function(t){let e=t[1]/100,i=t[2]/100,n=e+i*(1-e);return[t[0],(n-e)*100,(1-n)*100]};H.hwb.hcg=function(t){let e=t[1]/100,n=1-t[2]/100,a=n-e,r=0;return a<1&&(r=(n-a)/(1-a)),[t[0],a*100,r*100]};H.apple.rgb=function(t){return[t[0]/65535*255,t[1]/65535*255,t[2]/65535*255]};H.rgb.apple=function(t){return[t[0]/255*65535,t[1]/255*65535,t[2]/255*65535]};H.gray.rgb=function(t){return[t[0]/100*255,t[0]/100*255,t[0]/100*255]};H.gray.hsl=function(t){return[0,0,t[0]]};H.gray.hsv=H.gray.hsl;H.gray.hwb=function(t){return[0,100,t[0]]};H.gray.cmyk=function(t){return[0,0,0,t[0]]};H.gray.lab=function(t){return[t[0],0,0]};H.gray.hex=function(t){let e=Math.round(t[0]/100*255)&255,n=((e<<16)+(e<<8)+e).toString(16).toUpperCase();return"000000".slice(n.length)+n};H.rgb.gray=function(t){return[(t[0]+t[1]+t[2])/3/255*100]};function Y8(){let t={},e=Object.keys(H);for(let{length:i}=e,n=0;n0;){let n=i.pop(),a=Object.keys(H[n]);for(let{length:r}=a,s=0;s1&&(i=n),t(i))};return"conversion"in t&&(e.conversion=t.conversion),e}function r7(t){let e=function(...i){let n=i[0];if(n==null)return n;n.length>1&&(i=n);let a=t(i);if(typeof a=="object")for(let{length:r}=a,s=0;s0){this.model=e||"rgb",n=fi[this.model].channels;let a=Array.prototype.slice.call(t,0,n);this.color=lA(a,n),this.valpha=typeof t[n]=="number"?t[n]: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 sA))throw new Error("Unable to parse color from object: "+JSON.stringify(t));this.model=sA[r];let{labels:s}=fi[this.model],o=[];for(i=0;i(t%360+360)%360),saturationl:Xe("hsl",1,li(100)),lightness:Xe("hsl",2,li(100)),saturationv:Xe("hsv",1,li(100)),value:Xe("hsv",2,li(100)),chroma:Xe("hcg",1,li(100)),gray:Xe("hcg",2,li(100)),white:Xe("hwb",1,li(100)),wblack:Xe("hwb",2,li(100)),cyan:Xe("cmyk",0,li(100)),magenta:Xe("cmyk",1,li(100)),yellow:Xe("cmyk",2,li(100)),black:Xe("cmyk",3,li(100)),x:Xe("xyz",0,li(95.047)),y:Xe("xyz",1,li(100)),z:Xe("xyz",2,li(108.833)),l:Xe("lab",0,li(100)),a:Xe("lab",1),b:Xe("lab",2),keyword(t){return t!==void 0?new ui(t):fi[this.model].keyword(this.color)},hex(t){return t!==void 0?new ui(t):ci.to.hex(...this.rgb().round().color)},hexa(t){if(t!==void 0)return new ui(t);let e=this.rgb().round().color,i=Math.round(this.valpha*255).toString(16).toUpperCase();return i.length===1&&(i="0"+i),ci.to.hex(...e)+i},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[i,n]of t.entries()){let a=n/255;e[i]=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(),i=t.luminosity();return e>i?(e+.05)/(i+.05):(i+.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 ui.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(),i=e.color[0];return i=(i+t)%360,i=i<0?360+i:i,e.color[0]=i,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 i=t.rgb(),n=this.rgb(),a=e===void 0?.5:e,r=2*a-1,s=i.alpha()-n.alpha(),o=((r*s===-1?r:(r+s)/(1+r*s))+1)/2,l=1-o;return ui.rgb(o*i.red()+l*n.red(),o*i.green()+l*n.green(),o*i.blue()+l*n.blue(),i.alpha()*a+n.alpha()*(1-a))}};for(let t of Object.keys(fi)){if(zH.includes(t))continue;let{channels:e}=fi[t];ui.prototype[t]=function(...i){return this.model===t?new ui(this):i.length>0?new ui(i,t):new ui([...l7(fi[this.model][t].raw(this.color)),this.valpha],t)},ui[t]=function(...i){let n=i[0];return typeof n=="number"&&(n=lA(i,e)),new ui(n,t)}}function s7(t,e){return Number(t.toFixed(e))}function o7(t){return function(e){return s7(e,t)}}function Xe(t,e,i){t=Array.isArray(t)?t:[t];for(let n of t)(oA[n]||=[])[e]=i;return t=t[0],function(n){let a;return n!==void 0?(i&&(n=i(n)),a=this[t](),a.color[e]=n,a):(a=this[t]().color[e],i&&(a=i(a)),a)}}function li(t){return function(e){return Math.max(0,Math.min(t,e))}}function l7(t){return Array.isArray(t)?t:[t]}function lA(t,e){for(let i=0;i{"use strict";function En(t,e){if(e)return new En(t).style(e);if(!(this instanceof En))return new En(t);this.text=t}En.prototype.prefix="\x1B[";En.prototype.suffix="m";En.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 i=e.substring(0,2),n=e.substring(2,4),a=e.substring(4,6);return[parseInt(i,16),parseInt(n,16),parseInt(a,16)]};En.prototype.rgb=function(e,i,n){var a=e/255*5,r=i/255*5,s=n/255*5;return this.ansi(a,r,s)};En.prototype.ansi=function(e,i,n){var a=Math.round(e),r=Math.round(i),s=Math.round(n);return 16+a*36+r*6+s};En.prototype.reset=function(){return this.prefix+"39;49"+this.suffix};En.prototype.style=function(e){return this.prefix+"38;5;"+this.rgb.apply(this,this.hex(e))+this.suffix+this.text+this.reset()};$H.exports=En});var LH=w((zle,UH)=>{var d7=GH(),h7=NH();UH.exports=function(e,i){var n=i.namespace,a=i.colors!==!1?h7(n+":",d7(n)):n+":";return e[0]=a+" "+e[0],e}});var BH=w((Dle,WH)=>{"use strict";WH.exports=function(e,i){if(!i)return!1;for(var n=i.split(/[\s,]+/),a=0;a{var g7=BH();FH.exports=function(e){return function(n){try{return g7(n,e())}catch{}return!1}}});var ZH=w(($le,JH)=>{var m7=VH();JH.exports=m7(function(){return process.env.DEBUG||process.env.DIAGNOSTICS})});var QH=w((Nle,KH)=>{KH.exports=function(t,e){try{Function.prototype.apply.call(console.log,console,e)}catch{}}});var XH=w((Ule,YH)=>{var f7=rA(),w7=require("tty").isatty(1),Xp=f7(function t(e,i){return i=i||{},i.colors="colors"in i?i.colors:w7,i.namespace=e,i.prod=!1,i.dev=!0,!t.enabled(e)&&!(i.force||t.force)?t.nope(i):t.yep(i)});Xp.modify(LH());Xp.use(ZH());Xp.set(QH());YH.exports=Xp});var bl=w((Lle,uA)=>{process.env.NODE_ENV==="production"?uA.exports=_H():uA.exports=XH()});var iR=w((Wle,eR)=>{"use strict";var cA=require("fs"),{StringDecoder:v7}=require("string_decoder"),{Stream:C7}=Za();function A7(){}eR.exports=(t,e)=>{let i=Buffer.alloc(65536),n=new v7("utf8"),a=new C7,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")},cA.open(t.file,"a+","0644",(l,u)=>{if(l){e?e(l):a.emit("error",l),a.destroy();return}(function c(){if(a.destroyed){cA.close(u,A7);return}return cA.read(u,i,0,i.length,s,(p,d)=>{if(p){e?e(p):a.emit("error",p),a.destroy();return}if(!d)return r&&((t.start==null||o>t.start)&&(e?e(null,r):a.emit("line",r)),o++,r=""),setTimeout(c,1e3);let h=n.write(i.slice(0,d));e||a.emit("data",h),h=(r+h).split(/\n+/);let g=h.length-1,m=0;for(;mt.start)&&(e?e(null,h[m]):a.emit("line",h[m])),o++;return r=h[g],s+=d,c()})})()}),e?a.destroy:a}});var rR=w((Fle,aR)=>{"use strict";var Ki=require("fs"),wi=require("path"),nR=CH(),b7=require("zlib"),{MESSAGE:y7}=ri(),{Stream:P7,PassThrough:tR}=Za(),j7=ss(),kn=bl()("winston:file"),S7=require("os"),O7=iR();aR.exports=class extends j7{constructor(e={}){super(e),this.name=e.name||"file";function i(n,...a){a.slice(1).forEach(r=>{if(e[r])throw new Error(`Cannot set ${r} and ${n} together`)})}if(this._stream=new tR,this._stream.setMaxListeners(30),this._onError=this._onError.bind(this),e.filename||e.dirname)i("filename or dirname","stream"),this._basename=this.filename=e.filename?wi.basename(e.filename):"winston.log",this.dirname=e.dirname||wi.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"),i("stream","filename","maxsize"),this._dest=this._stream.pipe(this._setupStream(e.stream)),this.dirname=wi.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:S7.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,i=()=>{}){if(this.silent)return i(),!0;if(this._drain){this._stream.once("drain",()=>{this._drain=!1,this.log(e,i)});return}if(this._rotate){this._stream.once("rotate",()=>{this._rotate=!1,this.log(e,i)});return}if(this.lazy){if(!this._fileExist){this._opening||this.open(),this.once("open",()=>{this._fileExist=!0,this.log(e,i)});return}if(this._needsNewFile(this._pendingSize)){this._dest.once("close",()=>{this._opening||this.open(),this.once("open",()=>{this.log(e,i)})});return}}let n=`${e[y7]}${this.eol}`,a=Buffer.byteLength(n);function r(){if(this._size+=a,this._pendingSize-=a,kn("logged %s %s",this._size,n),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(n,r.bind(this));return s?i():(this._drain=!0,this._stream.once("drain",()=>{this._drain=!1,i()})),kn("written",s,this._drain),this.finishIfEnding(),s}query(e,i){typeof e=="function"&&(i=e,e={}),e=p(e);let n=wi.join(this.dirname,this.filename),a="",r=[],s=0,o=Ki.createReadStream(n,{encoding:"utf8"});o.on("error",d=>{if(o.readable&&o.destroy(),!!i)return d.code!=="ENOENT"?i(d):i(null,r)}),o.on("data",d=>{d=(a+d).split(/\n+/);let h=d.length-1,g=0;for(;g=e.start)&&l(d[g]),s++;a=d[h]}),o.on("close",()=>{a&&l(a,!0),e.order==="desc"&&(r=r.reverse()),i&&i(null,r)});function l(d,h){try{let g=JSON.parse(d);c(g)&&u(g)}catch(g){h||o.emit("error",g)}}function u(d){if(e.rows&&r.length>=e.rows&&e.order!=="desc"){o.readable&&o.destroy();return}e.fields&&(d=e.fields.reduce((h,g)=>(h[g]=d[g],h),{})),e.order==="desc"&&r.length>=e.rows&&r.shift(),r.push(d)}function c(d){if(!d||typeof d!="object")return;let h=new Date(d.timestamp);if(!(e.from&&he.until||e.level&&e.level!==d.level))return!0}function p(d){return d=d||{},d.rows=d.rows||d.limit||10,d.start=d.start||0,d.until=d.until||new Date,typeof d.until!="object"&&(d.until=new Date(d.until)),d.from=d.from||d.until-1440*60*1e3,typeof d.from!="object"&&(d.from=new Date(d.from)),d.order=d.order||"desc",d}}stream(e={}){let i=wi.join(this.dirname,this.filename),n=new P7,a={file:i,start:e.start};return n.destroy=O7(a,(r,s)=>{if(r)return n.emit("error",r);try{n.emit("data",s),s=JSON.parse(s),n.emit("log",s)}catch(o){n.emit("error",o)}}),n}open(){this.filename&&(this._opening||(this._opening=!0,this.stat((e,i)=>{if(e)return this.emit("error",e);kn("stat done: %s { size: %s }",this.filename,i),this._size=i,this._dest=this._createStream(this._stream),this._opening=!1,this.once("open",()=>{this._stream.emit("rotate")||(this._rotate=!1)})})))}stat(e){let i=this._getFile(),n=wi.join(this.dirname,i);Ki.stat(n,(a,r)=>{if(a&&a.code==="ENOENT")return kn("ENOENT\xA0ok",n),this.filename=i,e(null,0);if(a)return kn(`err ${a.code} ${n}`),e(a);if(!r||this._needsNewFile(r.size))return this._incFile(()=>this.stat(e));this.filename=i,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 i=wi.join(this.dirname,this.filename);kn("create stream start",i,this.options);let n=Ki.createWriteStream(i,this.options).on("error",a=>kn(a)).on("close",()=>kn("close",n.path,n.bytesWritten)).on("open",()=>{kn("file open ok",i),this.emit("open",i),e.pipe(n),this.rotatedWhileOpening&&(this._stream=new tR,this._stream.setMaxListeners(30),this._rotateFile(),this.rotatedWhileOpening=!1,this._cleanupStream(n),e.end())});return kn("create stream ok",i),n}_incFile(e){kn("_incFile",this.filename);let i=wi.extname(this._basename),n=wi.basename(this._basename,i),a=[];this.zippedArchive&&a.push(function(r){let s=this._created>0&&!this.tailable?this._created:"";this._compressFile(wi.join(this.dirname,`${n}${s}${i}`),wi.join(this.dirname,`${n}${s}${i}.gz`),r)}.bind(this)),a.push(function(r){this.tailable?this._checkMaxFilesTailable(i,n,r):(this._created+=1,this._checkMaxFilesIncrementing(i,n,r))}.bind(this)),nR(a,e)}_getFile(){let e=wi.extname(this._basename),i=wi.basename(this._basename,e),n=this.rotationFormat?this.rotationFormat():this._created;return!this.tailable&&this._created?`${i}${n}${e}`:`${i}${e}`}_checkMaxFilesIncrementing(e,i,n){if(!this.maxFiles||this._created1;s--)a.push(function(o,l){let u=`${i}${o-1}${e}${r}`,c=wi.join(this.dirname,u);Ki.exists(c,p=>{if(!p)return l(null);u=`${i}${o}${e}${r}`,Ki.rename(c,wi.join(this.dirname,u),l)})}.bind(this,s));nR(a,()=>{Ki.rename(wi.join(this.dirname,`${i}${e}${r}`),wi.join(this.dirname,`${i}1${e}${r}`),n)})}_compressFile(e,i,n){Ki.access(e,Ki.F_OK,a=>{if(a)return n();var r=b7.createGzip(),s=Ki.createReadStream(e),o=Ki.createWriteStream(i);o.on("finish",()=>{Ki.unlink(e,n)}),s.pipe(r).pipe(o)})}_createLogDirIfNotExist(e){Ki.existsSync(e)||Ki.mkdirSync(e,{recursive:!0})}}});var oR=w((Jle,sR)=>{"use strict";var x7=require("http"),T7=require("https"),{Stream:M7}=Za(),E7=ss(),{configure:k7}=rl();sR.exports=class extends E7{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,i){this._request(e,null,null,(n,a)=>{a&&a.statusCode!==200&&(n=new Error(`Invalid HTTP Status Code: ${a.statusCode}`)),n?this.emit("warn",n):this.emit("logged",e)}),i&&setImmediate(i)}query(e,i){typeof e=="function"&&(i=e,e={}),e={method:"query",params:this.normalizeQuery(e)};let n=e.params.auth||null;delete e.params.auth;let a=e.params.path||null;delete e.params.path,this._request(e,n,a,(r,s,o)=>{if(s&&s.statusCode!==200&&(r=new Error(`Invalid HTTP Status Code: ${s.statusCode}`)),r)return i(r);if(typeof o=="string")try{o=JSON.parse(o)}catch(l){return i(l)}i(null,o)})}stream(e={}){let i=new M7;e={method:"stream",params:e};let n=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,n);return i.destroy=()=>s.destroy(),s.on("data",o=>{o=(r+o).split(/\n+/);let l=o.length-1,u=0;for(;ui.emit("error",o)),i}_request(e,i,n,a){e=e||{},i=i||this.auth,n=n||this.path||"",this.batch?this._doBatch(e,a,i,n):this._doRequest(e,a,i,n)}_doBatch(e,i,n,a){if(this.batchOptions.push(e),this.batchOptions.length===1){let r=this;this.batchCallback=i,this.batchTimeoutID=setTimeout(function(){r.batchTimeoutID=-1,r._doBatchRequest(r.batchCallback,n,a)},this.batchInterval)}this.batchOptions.length===this.batchCount&&this._doBatchRequest(this.batchCallback,n,a)}_doBatchRequest(e,i,n){this.batchTimeoutID>0&&(clearTimeout(this.batchTimeoutID),this.batchTimeoutID=-1);let a=this.batchOptions.slice();this.batchOptions=[],this._doRequest(a,e,i,n)}_doRequest(e,i,n,a){let r=Object.assign({},this.headers);n&&n.bearer&&(r.Authorization=`Bearer ${n.bearer}`);let s=(this.ssl?T7:x7).request({...this.options,method:"POST",host:this.host,port:this.port,path:`/${a.replace(/^\//,"")}`,headers:r,auth:n&&n.username&&n.password?`${n.username}:${n.password}`:"",agent:this.agent});s.on("error",i),s.on("response",l=>l.on("end",()=>i(null,l)).resume());let o=k7({...this.maximumDepth&&{maximumDepth:this.maximumDepth}});s.end(Buffer.from(o(e,this.options.replacer),"utf8"))}}});var pA=w((Zle,lR)=>{"use strict";var Jn=t=>t!==null&&typeof t=="object"&&typeof t.pipe=="function";Jn.writable=t=>Jn(t)&&t.writable!==!1&&typeof t._write=="function"&&typeof t._writableState=="object";Jn.readable=t=>Jn(t)&&t.readable!==!1&&typeof t._read=="function"&&typeof t._readableState=="object";Jn.duplex=t=>Jn.writable(t)&&Jn.readable(t);Jn.transform=t=>Jn.duplex(t)&&typeof t._transform=="function";lR.exports=Jn});var cR=w((Qle,uR)=>{"use strict";var q7=pA(),{MESSAGE:_7}=ri(),H7=require("os"),R7=ss();uR.exports=class extends R7{constructor(e={}){if(super(e),!e.stream||!q7(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:H7.EOL}log(e,i){if(setImmediate(()=>this.emit("logged",e)),this.isObjectMode){this._stream.write(e),i&&i();return}this._stream.write(`${e[_7]}${this.eol}`),i&&i()}}});var pR=w(yl=>{"use strict";Object.defineProperty(yl,"Console",{configurable:!0,enumerable:!0,get(){return z0()}});Object.defineProperty(yl,"File",{configurable:!0,enumerable:!0,get(){return rR()}});Object.defineProperty(yl,"Http",{configurable:!0,enumerable:!0,get(){return oR()}});Object.defineProperty(yl,"Stream",{configurable:!0,enumerable:!0,get(){return cR()}})});var id=w(Pl=>{"use strict";var ed=hC(),{configs:dA}=ri();Pl.cli=ed.levels(dA.cli);Pl.npm=ed.levels(dA.npm);Pl.syslog=ed.levels(dA.syslog);Pl.addColors=ed.levels});var hR=w((nd,dR)=>{"use strict";Object.defineProperty(nd,"__esModule",{value:!0});var I7=Hp(),z7=Ka(I7),D7=Wp(),G7=Ka(D7),$7=KC(),N7=Ka($7),U7=VC(),L7=Ka(U7),W7=JC(),B7=Ka(W7),F7=Ja(),V7=Ka(F7),J7=ls(),Z7=Ka(J7);function Ka(t){return t&&t.__esModule?t:{default:t}}function K7(t,e,i){i=(0,L7.default)(i);var n=0,a=0,{length:r}=t,s=!1;r===0&&i(null);function o(l,u){l===!1&&(s=!0),s!==!0&&(l?i(l):(++a===r||u===G7.default)&&i(null))}for(;n{"use strict";Object.defineProperty(td,"__esModule",{value:!0});td.default=X7;function X7(t){return(e,i,n)=>t(e,n)}gR.exports=td.default});var sd=w((rd,fR)=>{"use strict";Object.defineProperty(rd,"__esModule",{value:!0});var eY=hR(),iY=ad(eY),nY=mR(),tY=ad(nY),aY=Ja(),rY=ad(aY),sY=ls(),oY=ad(sY);function ad(t){return t&&t.__esModule?t:{default:t}}function lY(t,e,i){return(0,iY.default)(t,(0,tY.default)((0,rY.default)(e)),i)}rd.default=(0,oY.default)(lY,3);fR.exports=rd.default});var vR=w((eue,wR)=>{"use strict";var uY=Object.prototype.toString;wR.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 i=e.toString(),n=uY.call(e).slice(8,-1);return n==="Function"?i=i.substring(i.indexOf("(")+1,i.indexOf(")")):i=n,i||"anonymous"}});var hA=w((iue,CR)=>{"use strict";var cY=vR();CR.exports=function(e){var i=0,n;function a(){return i||(i=1,n=e.apply(this,arguments),e=null),n}return a.displayName=cY(e),a}});var gA=w(Sl=>{Sl.get=function(t){var e=Error.stackTraceLimit;Error.stackTraceLimit=1/0;var i={},n=Error.prepareStackTrace;Error.prepareStackTrace=function(r,s){return s},Error.captureStackTrace(i,t||Sl.get);var a=i.stack;return Error.prepareStackTrace=n,Error.stackTraceLimit=e,a};Sl.parse=function(t){if(!t.stack)return[];var e=this,i=t.stack.split(` +`).slice(1);return i.map(function(n){if(n.match(/^\s*[-]{4,}$/))return e._createParsedCallSite({fileName:n,lineNumber:null,functionName:null,typeName:null,methodName:null,columnNumber:null,native:null});var a=n.match(/at (?:(.+)\s+\()?(?:(.+?):(\d+)(?::(\d+))?|([^)]+))\)?/);if(a){var r=null,s=null,o=null,l=null,u=null,c=a[5]==="native";if(a[1]){o=a[1];var p=o.lastIndexOf(".");if(o[p-1]=="."&&p--,p>0){r=o.substr(0,p),s=o.substr(p+1);var d=r.indexOf(".Module");d>0&&(o=o.substr(d+1),r=r.substr(0,d))}l=null}s&&(l=r,u=s),s===""&&(u=null,o=null);var h={fileName:a[2]||null,lineNumber:parseInt(a[3],10)||null,functionName:o,typeName:l,methodName:u,columnNumber:parseInt(a[4],10)||null,native:c};return e._createParsedCallSite(h)}}).filter(function(n){return!!n})};function jl(t){for(var e in t)this[e]=t[e]}var pY=["this","typeName","functionName","methodName","fileName","lineNumber","columnNumber","function","evalOrigin"],dY=["topLevel","eval","native","constructor"];pY.forEach(function(t){jl.prototype[t]=null,jl.prototype["get"+t[0].toUpperCase()+t.substr(1)]=function(){return this[t]}});dY.forEach(function(t){jl.prototype[t]=!1,jl.prototype["is"+t[0].toUpperCase()+t.substr(1)]=function(){return this[t]}});Sl._createParsedCallSite=function(t){return new jl(t)}});var bR=w((aue,AR)=>{"use strict";var{Writable:hY}=Za();AR.exports=class extends hY{constructor(e){if(super({objectMode:!0}),!e)throw new Error("ExceptionStream requires a TransportStream instance.");this.handleExceptions=!0,this.transport=e}_write(e,i,n){return e.exception?this.transport.log(e,n):(n(),!0)}}});var fA=w((sue,jR)=>{"use strict";var yR=require("os"),gY=sd(),mA=bl()("winston:exception"),mY=hA(),PR=gA(),fY=bR();jR.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(i=>{if(Array.isArray(i))return i.forEach(n=>this._addHandler(n));this._addHandler(i)}),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 i=null;return e&&(i=typeof e=="string"?e:e.message),{error:e,level:"error",message:[`uncaughtException: ${i||"(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:yR.loadavg(),uptime:yR.uptime()}}getTrace(e){return(e?PR.parse(e):PR.get()).map(n=>({column:n.getColumnNumber(),file:n.getFileName(),function:n.getFunctionName(),line:n.getLineNumber(),method:n.getMethodName(),native:n.isNative()}))}_addHandler(e){if(!this.handlers.has(e)){e.handleExceptions=!0;let i=new fY(e);this.handlers.set(e,i),this.logger.pipe(i)}}_uncaughtException(e){let i=this.getAllInfo(e),n=this._getExceptionHandlers(),a=typeof this.logger.exitOnError=="function"?this.logger.exitOnError(e):this.logger.exitOnError,r;!n.length&&a&&(console.warn("winston: exitOnError cannot be true with no exception handlers."),console.warn("winston: not exiting process."),a=!1);function s(){mA("doExit",a),mA("process._exiting",process._exiting),a&&!process._exiting&&(r&&clearTimeout(r),process.exit(1))}if(!n||n.length===0)return process.nextTick(s);gY(n,(o,l)=>{let u=mY(l),c=o.transport||o;function p(d){return()=>{mA(d),u()}}c._ending=!0,c.once("finish",p("finished")),c.once("error",p("error"))},()=>a&&s()),this.logger.log(i),a&&(r=setTimeout(s,3e3))}_getExceptionHandlers(){return this.logger.transports.filter(e=>(e.transport||e).handleExceptions)}}});var OR=w((lue,SR)=>{"use strict";var{Writable:wY}=Za();SR.exports=class extends wY{constructor(e){if(super({objectMode:!0}),!e)throw new Error("RejectionStream requires a TransportStream instance.");this.handleRejections=!0,this.transport=e}_write(e,i,n){return e.rejection?this.transport.log(e,n):(n(),!0)}}});var vA=w((cue,MR)=>{"use strict";var xR=require("os"),vY=sd(),wA=bl()("winston:rejection"),CY=hA(),TR=gA(),AY=OR();MR.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(i=>{if(Array.isArray(i))return i.forEach(n=>this._addHandler(n));this._addHandler(i)}),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 i=null;return e&&(i=typeof e=="string"?e:e.message),{error:e,level:"error",message:[`unhandledRejection: ${i||"(no error message)"}`,e&&e.stack||" No stack trace"].join(` +`),stack:e&&e.stack,rejection:!0,date:new Date().toString(),process:this.getProcessInfo(),os:this.getOsInfo(),trace:this.getTrace(e)}}getProcessInfo(){return{pid:process.pid,uid:process.getuid?process.getuid():null,gid:process.getgid?process.getgid():null,cwd:process.cwd(),execPath:process.execPath,version:process.version,argv:process.argv,memoryUsage:process.memoryUsage()}}getOsInfo(){return{loadavg:xR.loadavg(),uptime:xR.uptime()}}getTrace(e){return(e?TR.parse(e):TR.get()).map(n=>({column:n.getColumnNumber(),file:n.getFileName(),function:n.getFunctionName(),line:n.getLineNumber(),method:n.getMethodName(),native:n.isNative()}))}_addHandler(e){if(!this.handlers.has(e)){e.handleRejections=!0;let i=new AY(e);this.handlers.set(e,i),this.logger.pipe(i)}}_unhandledRejection(e){let i=this.getAllInfo(e),n=this._getRejectionHandlers(),a=typeof this.logger.exitOnError=="function"?this.logger.exitOnError(e):this.logger.exitOnError,r;!n.length&&a&&(console.warn("winston: exitOnError cannot be true with no rejection handlers."),console.warn("winston: not exiting process."),a=!1);function s(){wA("doExit",a),wA("process._exiting",process._exiting),a&&!process._exiting&&(r&&clearTimeout(r),process.exit(1))}if(!n||n.length===0)return process.nextTick(s);vY(n,(o,l)=>{let u=CY(l),c=o.transport||o;function p(d){return()=>{wA(d),u()}}c._ending=!0,c.once("finish",p("finished")),c.once("error",p("error"))},()=>a&&s()),this.logger.log(i),a&&(r=setTimeout(s,3e3))}_getRejectionHandlers(){return this.logger.transports.filter(e=>(e.transport||e).handleRejections)}}});var kR=w((pue,ER)=>{"use strict";var CA=class{constructor(e){let i=od();if(typeof e!="object"||Array.isArray(e)||!(e instanceof i))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 i=typeof e[e.length-1]=="object"?e.pop():{};return i.level=i.level||"info",i.durationMs=Date.now()-this.start,this.logger.write(i)}};ER.exports=CA});var od=w((due,RR)=>{"use strict";var{Stream:bY,Transform:yY}=Za(),qR=sd(),{LEVEL:Zn,SPLAT:_R}=ri(),HR=pA(),PY=fA(),jY=vA(),SY=WC(),OY=kR(),{warn:xY}=gC(),TY=id(),MY=/%[scdjifoO%]/g,ld=class extends yY{constructor(e){super({objectMode:!0}),this.configure(e)}child(e){let i=this;return Object.create(i,{write:{value:function(n){let a=Object.assign({},e,n);n instanceof Error&&(a.stack=n.stack,a.message=n.message,a.cause=n.cause),i.write(a)}}})}configure({silent:e,format:i,defaultMeta:n,levels:a,level:r="info",exitOnError:s=!0,transports:o,colors:l,emitErrs:u,formatters:c,padLevels:p,rewriters:d,stripColors:h,exceptionHandlers:g,rejectionHandlers:m}={}){if(this.transports.length&&this.clear(),this.silent=e,this.format=i||this.format||lC()(),this.defaultMeta=n||null,this.levels=a||this.levels||TY.npm.levels,this.level=r,this.exceptions&&this.exceptions.unhandle(),this.rejections&&this.rejections.unhandle(),this.exceptions=new PY(this),this.rejections=new jY(this),this.profilers={},this.exitOnError=s,o&&(o=Array.isArray(o)?o:[o],o.forEach(f=>this.add(f))),l||u||c||p||d||h)throw new Error(["{ colors, emitErrs, formatters, padLevels, rewriters, stripColors } were removed in winston@3.0.0.","Use a custom winston.format(function) instead.","See: https://github.com/winstonjs/winston/tree/master/UPGRADE-3.0.md"].join(` +`));g&&this.exceptions.handle(g),m&&this.rejections.handle(m)}getHighestLogLevel(){let e=Ol(this.levels,this.level);return!this.transports||this.transports.length===0?e:this.transports.reduce((i,n)=>{let a=Ol(this.levels,n.level);return a!==null&&a>i?a:i},e)}isLevelEnabled(e){let i=Ol(this.levels,e);if(i===null)return!1;let n=Ol(this.levels,this.level);return n===null?!1:!this.transports||this.transports.length===0?n>=i:this.transports.findIndex(r=>{let s=Ol(this.levels,r.level);return s===null&&(s=n),s>=i})!==-1}log(e,i,...n){if(arguments.length===1)return e[Zn]=e.level,this._addDefaultMeta(e),this.write(e),this;if(arguments.length===2)return i&&typeof i=="object"?(i[Zn]=i.level=e,this._addDefaultMeta(i),this.write(i),this):(i={[Zn]:e,level:e,message:i},this._addDefaultMeta(i),this.write(i),this);let[a]=n;if(typeof a=="object"&&a!==null&&!(i&&i.match&&i.match(MY))){let s=Object.assign({},this.defaultMeta,a,{[Zn]:e,[_R]:n,level:e,message:i});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,{[Zn]:e,[_R]:n,level:e,message:i})),this}_transform(e,i,n){if(this.silent)return n();e[Zn]||(e[Zn]=e.level),!this.levels[e[Zn]]&&this.levels[e[Zn]]!==0&&console.error("[winston] Unknown logger level: %s",e[Zn]),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,n()}}_final(e){let i=this.transports.slice();qR(i,(n,a)=>{if(!n||n.finished)return setImmediate(a);n.once("finish",a),n.end()},e)}add(e){let i=!HR(e)||e.log.length>2?new SY({transport:e}):e;if(!i._writableState||!i._writableState.objectMode)throw new Error("Transports must WritableStreams in objectMode. Set { objectMode: true }.");return this._onEvent("error",i),this._onEvent("warn",i),this.pipe(i),e.handleExceptions&&this.exceptions.handle(),e.handleRejections&&this.rejections.handle(),this}remove(e){if(!e)return this;let i=e;return(!HR(e)||e.log.length>2)&&(i=this.transports.filter(n=>n.transport===e)[0]),i&&this.unpipe(i),this}clear(){return this.unpipe(),this}close(){return this.exceptions.unhandle(),this.rejections.unhandle(),this.clear(),this.emit("close"),this}setLevels(){xY.deprecated("setLevels")}query(e,i){typeof e=="function"&&(i=e,e={}),e=e||{};let n={},a=Object.assign({},e.query||{});function r(o,l){e.query&&typeof o.formatQuery=="function"&&(e.query=o.formatQuery(a)),o.query(e,(u,c)=>{if(u)return l(u);typeof o.formatResults=="function"&&(c=o.formatResults(c,e.format)),l(null,c)})}function s(o,l){r(o,(u,c)=>{l&&(c=u||c,c&&(n[o.name]=c),l()),l=null})}qR(this.transports.filter(o=>!!o.query),s,()=>i(null,n))}stream(e={}){let i=new bY,n=[];return i._streams=n,i.destroy=()=>{let a=n.length;for(;a--;)n[a].destroy()},this.transports.filter(a=>!!a.stream).forEach(a=>{let r=a.stream(e);r&&(n.push(r),r.on("log",s=>{s.transport=s.transport||[],s.transport.push(a.name),i.emit("log",s)}),r.on("error",s=>{s.transport=s.transport||[],s.transport.push(a.name),i.emit("error",s)}))}),i}startTimer(){return new OY(this)}profile(e,...i){let n=Date.now();if(this.profilers[e]){let a=this.profilers[e];delete this.profilers[e],typeof i[i.length-2]=="function"&&(console.warn("Callback function no longer supported as of winston@3.0.0"),i.pop());let r=typeof i[i.length-1]=="object"?i.pop():{};return r.level=r.level||"info",r.durationMs=n-a,r.message=r.message||e,this.write(r)}return this.profilers[e]=n,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,i){function n(a){e==="error"&&!this.transports.includes(i)&&this.add(i),this.emit(e,a,i)}i["__winston"+e]||(i["__winston"+e]=n.bind(this),i.on(e,i["__winston"+e]))}_addDefaultMeta(e){this.defaultMeta&&Object.assign(e,this.defaultMeta)}};function Ol(t,e){let i=t[e];return!i&&i!==0?null:i}Object.defineProperty(ld.prototype,"transports",{configurable:!1,enumerable:!0,get(){let{pipes:t}=this._readableState;return Array.isArray(t)?t:[t].filter(Boolean)}});RR.exports=ld});var AA=w((hue,IR)=>{"use strict";var{LEVEL:EY}=ri(),kY=id(),qY=od(),_Y=bl()("winston:create-logger");function HY(t){return"is"+t.charAt(0).toUpperCase()+t.slice(1)+"Enabled"}IR.exports=function(t={}){t.levels=t.levels||kY.npm.levels;class e extends qY{constructor(a){super(a)}}let i=new e(t);return Object.keys(t.levels).forEach(function(n){if(_Y('Define prototype method for "%s"',n),n==="log"){console.warn('Level "log" not defined: conflicts with the method "log". Use a different level name.');return}e.prototype[n]=function(...a){let r=this||i;if(a.length===1){let[s]=a,o=s&&s.message&&s||{message:s};return o.level=o[EY]=n,r._addDefaultMeta(o),r.write(o),this||i}return a.length===0?(r.log(n,""),r):r.log(n,...a)},e.prototype[HY(n)]=function(){return(this||i).isLevelEnabled(n)}}),i}});var DR=w((mue,zR)=>{"use strict";var RY=AA();zR.exports=class{constructor(e={}){this.loggers=new Map,this.options=e}add(e,i){if(!this.loggers.has(e)){i=Object.assign({},i||this.options);let n=i.transports||this.options.transports;n?i.transports=Array.isArray(n)?n.slice():[n]:i.transports=[];let a=RY(i);a.on("close",()=>this._delete(e)),this.loggers.set(e,a)}return this.loggers.get(e)}get(e,i){return this.add(e,i)}has(e){return!!this.loggers.has(e)}close(e){if(e)return this._removeLogger(e);this.loggers.forEach((i,n)=>this._removeLogger(n))}_removeLogger(e){if(!this.loggers.has(e))return;this.loggers.get(e).close(),this._delete(e)}_delete(e){this.loggers.delete(e)}}});var $R=w(He=>{"use strict";var GR=hC(),{warn:xl}=gC();He.version=R2().version;He.transports=pR();He.config=id();He.addColors=GR.levels;He.format=GR.format;He.createLogger=AA();He.Logger=od();He.ExceptionHandler=fA();He.RejectionHandler=vA();He.Container=DR();He.Transport=ss();He.loggers=new He.Container;var Kn=He.createLogger();Object.keys(He.config.npm.levels).concat(["log","query","stream","add","remove","clear","profile","startTimer","handleExceptions","unhandleExceptions","handleRejections","unhandleRejections","configure","child"]).forEach(t=>He[t]=(...e)=>Kn[t](...e));Object.defineProperty(He,"level",{get(){return Kn.level},set(t){Kn.level=t}});Object.defineProperty(He,"exceptions",{get(){return Kn.exceptions}});Object.defineProperty(He,"rejections",{get(){return Kn.rejections}});["exitOnError"].forEach(t=>{Object.defineProperty(He,t,{get(){return Kn[t]},set(e){Kn[t]=e}})});Object.defineProperty(He,"default",{get(){return{exceptionHandlers:Kn.exceptionHandlers,rejectionHandlers:Kn.rejectionHandlers,transports:Kn.transports}}});xl.deprecated(He,"setLevels");xl.forFunctions(He,"useFormat",["cli"]);xl.forProperties(He,"useFormat",["padLevels","stripColors"]);xl.forFunctions(He,"deprecated",["addRewriter","addFilter","clone","extend"]);xl.forProperties(He,"deprecated",["emitErrs","levelLength"])});var WR=w((wue,LR)=>{var Tl=require("path"),NR=require("fs"),UR=parseInt("0777",8);LR.exports=ds.mkdirp=ds.mkdirP=ds;function ds(t,e,i,n){typeof e=="function"?(i=e,e={}):(!e||typeof e!="object")&&(e={mode:e});var a=e.mode,r=e.fs||NR;a===void 0&&(a=UR),n||(n=null);var s=i||function(){};t=Tl.resolve(t),r.mkdir(t,a,function(o){if(!o)return n=n||t,s(null,n);switch(o.code){case"ENOENT":if(Tl.dirname(t)===t)return s(o);ds(Tl.dirname(t),e,function(l,u){l?s(l,u):ds(t,e,s,u)});break;default:r.stat(t,function(l,u){l||!u.isDirectory()?s(o,n):s(null,n)});break}})}ds.sync=function t(e,i,n){(!i||typeof i!="object")&&(i={mode:i});var a=i.mode,r=i.fs||NR;a===void 0&&(a=UR),n||(n=null),e=Tl.resolve(e);try{r.mkdirSync(e,a),n=n||e}catch(o){switch(o.code){case"ENOENT":n=t(Tl.dirname(e),i,n),t(e,i,n);break;default:var s;try{s=r.statSync(e)}catch{throw o}if(!s.isDirectory())throw o;break}}return n}});var bA=w((vue,BR)=>{function IY(t){this.name="DuplicateSectionError",this.message=t+" already exists",Error.captureStackTrace(this,this.constructor)}function zY(t){this.name=this.constructor.name,this.message="Section "+t+" does not exist.",Error.captureStackTrace(this,this.constructor)}function DY(t,e,i){this.name=this.constructor.name,this.message=`Source contains parsing errors. file: `+t+" line: "+e+` -`+i,Error.captureStackTrace(this,this.constructor)}function DY(t,e,i){this.name=this.constructor.name,this.message=`File contains no section headers. +`+i,Error.captureStackTrace(this,this.constructor)}function GY(t,e,i){this.name=this.constructor.name,this.message=`File contains no section headers. file: `+t+" line: "+e+` -`+i,Error.captureStackTrace(this,this.constructor)}function GY(t,e,i,n){this.name=this.constructor.name,this.message="Exceeded Maximum Recursion Depth ("+n+") for key "+e+" in section "+t+` -value: `+i,Error.captureStackTrace(this,this.constructor)}WR.exports={DuplicateSectionError:RY,NoSectionError:IY,ParseError:zY,MissingSectionHeaderError:DY,MaximumInterpolationDepthError:GY}});var JR=w((vue,VR)=>{var $Y=bA(),BR=new RegExp(/%\(([\w-]+)\)s/),yA=50;function NY(t,e,i){return FR(t,e,i,1)}function FR(t,e,i,n){let a=t.get(e,i,!0);if(n>yA)throw new $Y.MaximumInterpolationDepthError(e,i,a,yA);let r=BR.exec(a);for(;r!==null;){let s=r[1],o=FR(t,e,s,n+1);a=a.substr(0,r.index)+o+a.substr(r.index+r[0].length),r=BR.exec(a)}return a}VR.exports={interpolate:NY,MAXIMUM_INTERPOLATION_DEPTH:yA}});var iI=w((Aue,eI)=>{var cd=require("util"),Ml=require("fs"),ZR=require("path"),KR=LR(),ud=bA(),UY=JR(),LY=new RegExp(/^\s*\[([^\]]+)]$/),WY=new RegExp(/^\s*(.*?)\s*[=:]\s*(.*)$/),BY=new RegExp(/^\s*[;#]/),QR=new RegExp(/\r\n|[\n\r\u0085\u2028\u2029]/g),FY=cd.promisify(Ml.readFile),VY=cd.promisify(Ml.writeFile),Cue=cd.promisify(Ml.stat),JY=cd.promisify(KR);function Si(){this._sections={}}Si.prototype.sections=function(){return Object.keys(this._sections)};Si.prototype.addSection=function(t){if(this._sections.hasOwnProperty(t))throw new ud.DuplicateSectionError(t);this._sections[t]={}};Si.prototype.hasSection=function(t){return this._sections.hasOwnProperty(t)};Si.prototype.keys=function(t){try{return Object.keys(this._sections[t])}catch{throw new ud.NoSectionError(t)}};Si.prototype.hasKey=function(t,e){return this._sections.hasOwnProperty(t)&&this._sections[t].hasOwnProperty(e)};Si.prototype.read=function(t){let e=Ml.readFileSync(t).toString("utf8").split(QR);YR.call(this,t,e)};Si.prototype.readAsync=async function(t){let e=(await FY(t)).toString("utf8").split(QR);YR.call(this,t,e)};Si.prototype.get=function(t,e,i){if(this._sections.hasOwnProperty(t))return i?this._sections[t][e]:UY.interpolate(this,t,e)};Si.prototype.getInt=function(t,e,i){if(this._sections.hasOwnProperty(t))return i||(i=10),parseInt(this._sections[t][e],i)};Si.prototype.getFloat=function(t,e){if(this._sections.hasOwnProperty(t))return parseFloat(this._sections[t][e])};Si.prototype.items=function(t){return this._sections[t]};Si.prototype.set=function(t,e,i){this._sections.hasOwnProperty(t)&&(this._sections[t][e]=i)};Si.prototype.removeKey=function(t,e){return this._sections.hasOwnProperty(t)&&this._sections[t].hasOwnProperty(e)?delete this._sections[t][e]:!1};Si.prototype.removeSection=function(t){return this._sections.hasOwnProperty(t)?delete this._sections[t]:!1};Si.prototype.write=function(t,e=!1){if(e){let i=ZR.dirname(t);KR.sync(i)}Ml.writeFileSync(t,XR.call(this))};Si.prototype.writeAsync=async function(t,e=!1){if(e){let i=ZR.dirname(t);await JY(i)}await VY(t,XR.call(this))};function YR(t,e){let i=null;e.forEach((n,a)=>{if(!n||n.match(BY))return;let r=LY.exec(n);if(r){let s=r[1];i={},this._sections[s]=i}else if(i)if(r=WY.exec(n),r){let s=r[1];i[s]=r[2]}else throw new ud.ParseError(t,a,n);else throw new ud.MissingSectionHeaderError(t,a,n)})}function XR(){let t="",e;for(e in this._sections){if(!this._sections.hasOwnProperty(e))continue;t+="["+e+`] +`+i,Error.captureStackTrace(this,this.constructor)}function $Y(t,e,i,n){this.name=this.constructor.name,this.message="Exceeded Maximum Recursion Depth ("+n+") for key "+e+" in section "+t+` +value: `+i,Error.captureStackTrace(this,this.constructor)}BR.exports={DuplicateSectionError:IY,NoSectionError:zY,ParseError:DY,MissingSectionHeaderError:GY,MaximumInterpolationDepthError:$Y}});var ZR=w((Cue,JR)=>{var NY=bA(),FR=new RegExp(/%\(([\w-]+)\)s/),yA=50;function UY(t,e,i){return VR(t,e,i,1)}function VR(t,e,i,n){let a=t.get(e,i,!0);if(n>yA)throw new NY.MaximumInterpolationDepthError(e,i,a,yA);let r=FR.exec(a);for(;r!==null;){let s=r[1],o=VR(t,e,s,n+1);a=a.substr(0,r.index)+o+a.substr(r.index+r[0].length),r=FR.exec(a)}return a}JR.exports={interpolate:UY,MAXIMUM_INTERPOLATION_DEPTH:yA}});var nI=w((bue,iI)=>{var cd=require("util"),Ml=require("fs"),KR=require("path"),QR=WR(),ud=bA(),LY=ZR(),WY=new RegExp(/^\s*\[([^\]]+)]$/),BY=new RegExp(/^\s*(.*?)\s*[=:]\s*(.*)$/),FY=new RegExp(/^\s*[;#]/),YR=new RegExp(/\r\n|[\n\r\u0085\u2028\u2029]/g),VY=cd.promisify(Ml.readFile),JY=cd.promisify(Ml.writeFile),Aue=cd.promisify(Ml.stat),ZY=cd.promisify(QR);function Si(){this._sections={}}Si.prototype.sections=function(){return Object.keys(this._sections)};Si.prototype.addSection=function(t){if(this._sections.hasOwnProperty(t))throw new ud.DuplicateSectionError(t);this._sections[t]={}};Si.prototype.hasSection=function(t){return this._sections.hasOwnProperty(t)};Si.prototype.keys=function(t){try{return Object.keys(this._sections[t])}catch{throw new ud.NoSectionError(t)}};Si.prototype.hasKey=function(t,e){return this._sections.hasOwnProperty(t)&&this._sections[t].hasOwnProperty(e)};Si.prototype.read=function(t){let e=Ml.readFileSync(t).toString("utf8").split(YR);XR.call(this,t,e)};Si.prototype.readAsync=async function(t){let e=(await VY(t)).toString("utf8").split(YR);XR.call(this,t,e)};Si.prototype.get=function(t,e,i){if(this._sections.hasOwnProperty(t))return i?this._sections[t][e]:LY.interpolate(this,t,e)};Si.prototype.getInt=function(t,e,i){if(this._sections.hasOwnProperty(t))return i||(i=10),parseInt(this._sections[t][e],i)};Si.prototype.getFloat=function(t,e){if(this._sections.hasOwnProperty(t))return parseFloat(this._sections[t][e])};Si.prototype.items=function(t){return this._sections[t]};Si.prototype.set=function(t,e,i){this._sections.hasOwnProperty(t)&&(this._sections[t][e]=i)};Si.prototype.removeKey=function(t,e){return this._sections.hasOwnProperty(t)&&this._sections[t].hasOwnProperty(e)?delete this._sections[t][e]:!1};Si.prototype.removeSection=function(t){return this._sections.hasOwnProperty(t)?delete this._sections[t]:!1};Si.prototype.write=function(t,e=!1){if(e){let i=KR.dirname(t);QR.sync(i)}Ml.writeFileSync(t,eI.call(this))};Si.prototype.writeAsync=async function(t,e=!1){if(e){let i=KR.dirname(t);await ZY(i)}await JY(t,eI.call(this))};function XR(t,e){let i=null;e.forEach((n,a)=>{if(!n||n.match(FY))return;let r=WY.exec(n);if(r){let s=r[1];i={},this._sections[s]=i}else if(i)if(r=BY.exec(n),r){let s=r[1];i[s]=r[2]}else throw new ud.ParseError(t,a,n);else throw new ud.MissingSectionHeaderError(t,a,n)})}function eI(){let t="",e;for(e in this._sections){if(!this._sections.hasOwnProperty(e))continue;t+="["+e+`] `;let i=this._sections[e],n;for(n in i){if(!i.hasOwnProperty(n))continue;let a=i[n];t+=n+"="+a+` `}t+=` -`}return t}eI.exports=Si});var rI=w((bue,aI)=>{"use strict";var ZY=Pq(),KY=g_();function tI(t){return t&&typeof t=="object"&&"default"in t?t:{default:t}}var PA=tI(ZY),nI=tI(KY),QY={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"},El=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()}},Zt=class{constructor(e,i,n,a,r,s){this.setUrl(e),this.setMethod(i),n&&this.setHeaders(n),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}},pd=class extends El{constructor(e,i){super(),e!=null?this.setTimeout(e):this.timeout=16e3,i!=null?this.setHttpsAgent(i):this.httpsAgent,this._axiosInstance=PA.default.create({})}enableHooks(){this.preHook&&typeof this.preHook=="function"&&(this.requestInterceptorId!==void 0&&PA.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&&PA.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 Zt))throw new Error("httpRequestOptions must be instance of HttpRequestOptions ");let i=this.toAxiosConfig(e);return this._axiosInstance.request(i)}toAxiosConfig(e){if(!e.url||!e.method)throw new Error("Mandatory fields 'url' and 'method' must be set before making a request");var i={url:e.url,method:e.method};return e.params&&(i.params=e.params),e.headers&&(i.headers=e.headers),e.data&&(i.data=e.data),this.timeout!=null&&this.timeout!=null&&(i.timeout=this.timeout),this.httpsAgent&&(i.httpsAgent=this.httpsAgent),i}},YY={levels:{none:0,error:1,debug:2,trace:3}},hs={level:{LNone:"none",LError:"error",LDebug:"debug",LTrace:"trace"}},Qa={formats:{JSON:"json",TEXT:"text"}},jA=class{get logLevelEnum(){return hs}get logFormatEnum(){return Qa}constructor(){this.log_level=hs.level.LNone,this.log_format=Qa.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=GR();this.logger=e.createLogger({levels:YY.levels,level:this.log_level}),this.log_file_path&&this.log_file_path!==""&&(this.log_format===Qa.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(i=>(i.level=i.level.toUpperCase(),i))(),e.format.simple()),filename:this.log_file_path}))),this.log_to_console&&(this.log_format===Qa.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(i=>(i.level=i.level.toUpperCase(),i))(),e.format.simple())})))}}log(e,i,n,a,r,s,o,l){var u=this.formatLog(e,i,n,a,r,s,o,l);if(typeof window<"u"){var c=this.calculateLogLevel(e);c>0&&this.log_to_console===!0&&(this.log_format===this.logFormatEnum.formats.JSON?console.log(u):console.log(`${e.toUpperCase()}: ${u}`))}else this.logger.transports.length>0&&this.logger.log(e,u)}calculateLogLevel(e){switch(this.log_level){case this.logLevelEnum.level.LError:return e!==this.logLevelEnum.level.LError?-1:1;case this.logLevelEnum.level.LDebug:return e===this.logLevelEnum.level.LTrace?-1:1;case this.logLevelEnum.level.LTrace:return 1;default:return-1}}formatLog(e,i,n,a,r,s,o,l){var u,c=r?JSON.parse(JSON.stringify(r)):null,p=s?JSON.parse(JSON.stringify(s)):null,d=o?JSON.parse(JSON.stringify(o)):null,h=l?JSON.parse(JSON.stringify(l)):null;return r&&(c.Authorization="[REDACTED]"),this.log_request_body||(d=void 0),this.log_response_body||(h=void 0),this.log_format&&this.log_format===Qa.formats.JSON?(u={level:e,date:new Date().toISOString(),method:n,url:decodeURIComponent(a),correlationId:p&&p["inin-correlation-id"]?p["inin-correlation-id"]:"",statusCode:i},c&&(u.requestHeaders=c),p&&(u.responseHeaders=p),d&&(u.requestBody=d),h&&(u.responseBody=h)):u=`${new Date().toISOString()} +`}return t}iI.exports=Si});var sI=w((yue,rI)=>{"use strict";var KY=jq(),QY=m_();function aI(t){return t&&typeof t=="object"&&"default"in t?t:{default:t}}var PA=aI(KY),tI=aI(QY),YY={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"},El=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()}},Zt=class{constructor(e,i,n,a,r,s){this.setUrl(e),this.setMethod(i),n&&this.setHeaders(n),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}},pd=class extends El{constructor(e,i){super(),e!=null?this.setTimeout(e):this.timeout=16e3,i!=null?this.setHttpsAgent(i):this.httpsAgent,this._axiosInstance=PA.default.create({})}enableHooks(){this.preHook&&typeof this.preHook=="function"&&(this.requestInterceptorId!==void 0&&PA.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&&PA.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 Zt))throw new Error("httpRequestOptions must be instance of HttpRequestOptions ");let i=this.toAxiosConfig(e);return this._axiosInstance.request(i)}toAxiosConfig(e){if(!e.url||!e.method)throw new Error("Mandatory fields 'url' and 'method' must be set before making a request");var i={url:e.url,method:e.method};return e.params&&(i.params=e.params),e.headers&&(i.headers=e.headers),e.data&&(i.data=e.data),this.timeout!=null&&this.timeout!=null&&(i.timeout=this.timeout),this.httpsAgent&&(i.httpsAgent=this.httpsAgent),i}},XY={levels:{none:0,error:1,debug:2,trace:3}},hs={level:{LNone:"none",LError:"error",LDebug:"debug",LTrace:"trace"}},Qa={formats:{JSON:"json",TEXT:"text"}},jA=class{get logLevelEnum(){return hs}get logFormatEnum(){return Qa}constructor(){this.log_level=hs.level.LNone,this.log_format=Qa.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=$R();this.logger=e.createLogger({levels:XY.levels,level:this.log_level}),this.log_file_path&&this.log_file_path!==""&&(this.log_format===Qa.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(i=>(i.level=i.level.toUpperCase(),i))(),e.format.simple()),filename:this.log_file_path}))),this.log_to_console&&(this.log_format===Qa.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(i=>(i.level=i.level.toUpperCase(),i))(),e.format.simple())})))}}log(e,i,n,a,r,s,o,l){var u=this.formatLog(e,i,n,a,r,s,o,l);if(typeof window<"u"){var c=this.calculateLogLevel(e);c>0&&this.log_to_console===!0&&(this.log_format===this.logFormatEnum.formats.JSON?console.log(u):console.log(`${e.toUpperCase()}: ${u}`))}else this.logger.transports.length>0&&this.logger.log(e,u)}calculateLogLevel(e){switch(this.log_level){case this.logLevelEnum.level.LError:return e!==this.logLevelEnum.level.LError?-1:1;case this.logLevelEnum.level.LDebug:return e===this.logLevelEnum.level.LTrace?-1:1;case this.logLevelEnum.level.LTrace:return 1;default:return-1}}formatLog(e,i,n,a,r,s,o,l){var u,c=r?JSON.parse(JSON.stringify(r)):null,p=s?JSON.parse(JSON.stringify(s)):null,d=o?JSON.parse(JSON.stringify(o)):null,h=l?JSON.parse(JSON.stringify(l)):null;return r&&(c.Authorization="[REDACTED]"),this.log_request_body||(d=void 0),this.log_response_body||(h=void 0),this.log_format&&this.log_format===Qa.formats.JSON?(u={level:e,date:new Date().toISOString(),method:n,url:decodeURIComponent(a),correlationId:p&&p["inin-correlation-id"]?p["inin-correlation-id"]:"",statusCode:i},c&&(u.requestHeaders=c),p&&(u.responseHeaders=p),d&&(u.requestBody=d),h&&(u.responseBody=h)):u=`${new Date().toISOString()} === REQUEST === ${this.formatValue("URL",decodeURIComponent(a))}${this.formatValue("Method",n)}${this.formatValue("Headers",this.formatHeaderString(c))}${this.formatValue("Body",d?JSON.stringify(d,null,2):"")} === RESPONSE === ${this.formatValue("Status",i)}${this.formatValue("Headers",this.formatHeaderString(p))}${this.formatValue("CorrelationId",p&&p["inin-correlation-id"]?p["inin-correlation-id"]:"")}${this.formatValue("Body",h?JSON.stringify(h,null,2):"")}`,u}formatHeaderString(e){var i="";if(!e)return i;for(let[n,a]of Object.entries(e))i+=` ${n}: ${a}`;return i}formatValue(e,i){return!i||i===""||i==="{}"?"":`${e}: ${i} -`}getLogLevel(e){switch(e){case"error":return hs.level.LError;case"debug":return hs.level.LDebug;case"trace":return hs.level.LTrace;default:return hs.level.LNone}}getLogFormat(e){switch(e){case"json":return Qa.formats.JSON;default:return Qa.formats.TEXT}}},SA=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"),i=require("path");this.configPath=i.join(e.homedir(),".genesyscloudjavascript","config")}this.watchedConfigPath,this.refresh_access_token=!0,this.refresh_token_wait_max=10,this._live_reload_config=!0,this.host,this.environment,this.basePath,this.authUrl,this.config,this.gateway=void 0,this.logger=new jA,this.setEnvironment(),this.liveLoadConfig()}get live_reload_config(){return this._live_reload_config}set live_reload_config(e){if(typeof window>"u"){let i=require("fs");e!=null&&this.live_reload_config!==e&&(this._live_reload_config=e,this.watchedConfigPath&&(i.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},(i,n)=>{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 i=require("fs");e&&e!==this.configPath?(this.configPath=e,this.watchedConfigPath&&(i.unwatchFile(this.watchedConfigPath),this.watchedConfigPath=null),this.liveLoadConfig()):!e&&this.configPath&&(this.configPath="",this.watchedConfigPath&&(i.unwatchFile(this.watchedConfigPath),this.watchedConfigPath=null));return}this.configPath=""}updateConfigFromFile(){if(typeof window>"u"&&this.configPath){let n=iI();try{var e=new n;e.read(this.configPath),this.config=e}catch(a){if(a.name&&a.name==="MissingSectionHeaderError"){var i=require("fs").readFileSync(this.configPath,"utf8");this.config={_sections:JSON.parse(i)}}}this.config&&this.updateConfigValues()}}updateConfigValues(){if(this.logger.log_level=this.logger.getLogLevel(this.getConfigString("logging","log_level")),this.logger.log_format=this.logger.getLogFormat(this.getConfigString("logging","log_format")),this.logger.log_to_console=this.getConfigBoolean("logging","log_to_console")!==void 0?this.getConfigBoolean("logging","log_to_console"):this.logger.log_to_console,this.logger.log_file_path=this.getConfigString("logging","log_file_path")!==void 0?this.getConfigString("logging","log_file_path"):this.logger.log_file_path,this.logger.log_response_body=this.getConfigBoolean("logging","log_response_body")!==void 0?this.getConfigBoolean("logging","log_response_body"):this.logger.log_response_body,this.logger.log_request_body=this.getConfigBoolean("logging","log_request_body")!==void 0?this.getConfigBoolean("logging","log_request_body"):this.logger.log_request_body,this.refresh_access_token=this.getConfigBoolean("reauthentication","refresh_access_token")!==void 0?this.getConfigBoolean("reauthentication","refresh_access_token"):this.refresh_access_token,this.refresh_token_wait_max=this.getConfigInt("reauthentication","refresh_token_wait_max")!==void 0?this.getConfigInt("reauthentication","refresh_token_wait_max"):this.refresh_token_wait_max,this.live_reload_config=this.getConfigBoolean("general","live_reload_config")!==void 0?this.getConfigBoolean("general","live_reload_config"):this.live_reload_config,this.host=this.getConfigString("general","host")!==void 0?this.getConfigString("general","host"):this.host,this.getConfigString("gateway","host")!==void 0){let e={host:this.getConfigString("gateway","host")};this.getConfigString("gateway","protocol")!==void 0&&(e.protocol=this.getConfigString("gateway","protocol")),this.getConfigInt("gateway","port")!==void 0&&(e.port=this.getConfigInt("gateway","port")),this.getConfigString("gateway","path_params_login")!==void 0&&(e.path_params_login=this.getConfigString("gateway","path_params_login")),this.getConfigString("gateway","path_params_api")!==void 0&&(e.path_params_api=this.getConfigString("gateway","path_params_api")),this.getConfigString("gateway","username")!==void 0&&(e.username=this.getConfigString("gateway","username")),this.getConfigString("gateway","password")!==void 0&&(e.password=this.getConfigString("gateway","password")),this.setGateway(e)}else this.setGateway();this.setEnvironment(),this.logger.setLogger()}setGateway(e){e?(this.gateway={host:""},e.protocol?this.gateway.protocol=e.protocol:this.gateway.protocol="https",e.host?this.gateway.host=e.host:this.gateway.host="",e.port&&e.port>-1?this.gateway.port=e.port:this.gateway.port=-1,e.path_params_login?(this.gateway.path_params_login=e.path_params_login,this.gateway.path_params_login=this.gateway.path_params_login.replace(/\/+$/,"")):this.gateway.path_params_login="",e.path_params_api?(this.gateway.path_params_api=e.path_params_api,this.gateway.path_params_api=this.gateway.path_params_api.replace(/\/+$/,"")):this.gateway.path_params_api="",e.username&&(this.gateway.username=e.username),e.password&&(this.gateway.password=e.password)):this.gateway=void 0}setEnvironment(e){e?this.environment=e:this.environment=this.host?this.host:"mypurecloud.com",this.environment=this.environment.replace(/\/+$/,""),this.environment.startsWith("https://")&&(this.environment=this.environment.substring(8)),this.environment.startsWith("http://")&&(this.environment=this.environment.substring(7)),this.environment.startsWith("api.")&&(this.environment=this.environment.substring(4)),this.basePath=`https://api.${this.environment}`,this.authUrl=`https://login.${this.environment}`}getConfUrl(e,i){if(!this.gateway||!this.gateway.host)return i;var n=this.gateway.protocol+"://"+this.gateway.host;return this.gateway.port>-1&&(n=n+":"+this.gateway.port.toString()),e==="login"?this.gateway.path_params_login&&(this.gateway.path_params_login.startsWith("/")?n=n+this.gateway.path_params_login:n=n+"/"+this.gateway.path_params_login):this.gateway.path_params_api&&(this.gateway.path_params_api.startsWith("/")?n=n+this.gateway.path_params_api:n=n+"/"+this.gateway.path_params_api),n}getConfigString(e,i){if(this.config._sections[e])return this.config._sections[e][i]}getConfigBoolean(e,i){if(this.config._sections[e]&&this.config._sections[e][i]!==void 0)return typeof this.config._sections[e][i]=="string"?this.config._sections[e][i]==="true":this.config._sections[e][i]}getConfigInt(e,i){if(this.config._sections[e]&&this.config._sections[e][i])return typeof this.config._sections[e][i]=="string"?parseInt(this.config._sections[e][i]):this.config._sections[e][i]}},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;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 SA,typeof window<"u"&&(window.ApiClient=this)}setReturnExtendedResponses(e){this.returnExtended=e}setPersistSettings(e,i){this.persistSettings=e,this.settingsPrefix=i?i.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 i=JSON.parse(JSON.stringify(this.authData));delete i.state,localStorage.setItem(`${this.settingsPrefix}_auth_data`,JSON.stringify(i))}catch(i){console.error(i)}}_loadSettings(){if(this.persistSettings!==!0||!this.hasLocalStorage)return;let e=this.authData.state;this.authData=localStorage.getItem(`${this.settingsPrefix}_auth_data`),this.authData?this.authData=JSON.parse(this.authData):this.authData={},this.authData.accessToken&&this.setAccessToken(this.authData.accessToken),this.authData.state=e}_clearSettings(){try{if(this.authData&&this.authData.accessToken&&(this.authData.accessToken=null),this.authentications["PureCloud OAuth"]&&this.authentications["PureCloud OAuth"].accessToken&&(this.authentications["PureCloud OAuth"].accessToken=null),this.authData&&this.authData.state&&(this.authData.state=null),this.authData&&this.authData.error&&(this.authData.error=null),this.authData&&this.authData.error_description&&(this.authData.error_description=null),this.authData&&this.authData.tokenExpiryTime&&(this.authData.tokenExpiryTime=0),this.authData&&this.authData.tokenExpiryTimeString&&(this.authData.tokenExpiryTimeString=null),this.persistSettings!==!0||!this.hasLocalStorage)return;let e=JSON.parse(JSON.stringify(this.authData));delete e.state,localStorage.setItem(`${this.settingsPrefix}_auth_data`,JSON.stringify(e))}catch(e){console.error(e)}}setEnvironment(e){this.config.setEnvironment(e)}setDefaultHeaders(e){if(!e||typeof e!="object")throw new Error("default headers must be a map");this.defaultHeaders=e}getDefaultHeaders(){return this.defaultHeaders}setGenesysAppHeader(e){if(!e||typeof e!="string")throw new Error("headerValue must be a non empty string");this.defaultHeaders?this.defaultHeaders["Genesys-App"]=e:this.defaultHeaders={"Genesys-App":e}}getGenesysAppHeader(){return this.defaultHeaders&&this.defaultHeaders["Genesys-App"]?this.defaultHeaders["Genesys-App"]:null}setHttpClient(e){if(!(e instanceof El))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 pd(this.timeout,this.proxyAgent),this.httpClient)}setMTLSCertificates(e,i,n){if(typeof window>"u"){let a={};e&&(a.cert=require("fs").readFileSync(e)),i&&(a.key=require("fs").readFileSync(i)),n&&(a.ca=require("fs").readFileSync(n)),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,i,n){if(typeof window>"u"){let a={};e&&(a.cert=e),i&&(a.key=i),n&&(a.ca=n),a.rejectUnauthorized=!0,this.proxyAgent=new require("https").Agent(a),this.getHttpClient().setHttpsAgent(this.proxyAgent)}else throw new Error("MTLS authentication is managed by the Browser itself. MTLS certificates cannot be set via code on Browser.")}setGateway(e){this.config.setGateway(e)}loginImplicitGrant(e,i,n){let a=this._setValuesFromUrlHash();return this.clientId=e,this.redirectUri=i,n||(n={}),new Promise((r,s)=>{if(n.org&&!n.provider?s(new Error("opts.provider must be set if opts.org is set")):n.provider&&!n.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&&n.state&&(this.authData.state=n.state),r(this.authData)}).catch(o=>{var l={client_id:encodeURIComponent(this.clientId),redirect_uri:encodeURIComponent(this.redirectUri),response_type:"token"};n.state&&(l.state=encodeURIComponent(n.state)),n.org&&(l.org=encodeURIComponent(n.org)),n.provider&&(l.provider=encodeURIComponent(n.provider)),n.prompt&&n.prompt=="login"&&(l.prompt=encodeURIComponent(n.prompt));var u=this._buildAuthUrl("oauth/authorize",l);window.location.replace(u)})})}loginClientCredentialsGrant(e,i){this.clientId=e;var n=Buffer.from(`${e}:${i}`).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 ${n}`};var l=new Zt(`${a}/oauth/token`,"POST",o,null,"grant_type=client_credentials",this.timeout);this.getHttpClient().request(l).then(c=>{this.config.logger.log("trace",c.status,"POST",`${a}/oauth/token`,o,c.headers,{grant_type:"client_credentials"},void 0),this.config.logger.log("debug",c.status,"POST",`${a}/oauth/token`,o,void 0,{grant_type:"client_credentials"},void 0),this.setAccessToken(c.data.access_token),this.authData.tokenExpiryTime=new Date().getTime()+c.data.expires_in*1e3,this.authData.tokenExpiryTimeString=new Date(this.authData.tokenExpiryTime).toUTCString(),r(this.authData)}).catch(c=>{c.response&&this.config.logger.log("error",c.response.status,"POST",`${a}/oauth/token`,o,c.response.headers,{grant_type:"client_credentials"},c.response.data),s(c)})})}loginSaml2BearerGrant(e,i,n,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+":"+i).toString("base64"),u=this._formAuthRequest(l,{grant_type:"urn:ietf:params:oauth:grant-type:saml2-bearer",orgName:n,assertion:a});u.proxy=this.proxy;var c={grant_type:"urn:ietf:params:oauth:grant-type:saml2-bearer",orgName:n,assertion:a};u.then(p=>{this.config.logger.log("trace",p.status,"POST",`${r}/oauth/token`,u.headers,p.headers,c,void 0),this.config.logger.log("debug",p.status,"POST",`${r}/oauth/token`,u.headers,void 0,c,void 0);var d=p.data.access_token;this.setAccessToken(d),this.authData.tokenExpiryTime=new Date().getTime()+p.data.expires_in*1e3,this.authData.tokenExpiryTimeString=new Date(this.authData.tokenExpiryTime).toUTCString(),s(this.authData)}).catch(p=>{p.response&&this.config.logger.log("error",p.response.status,"POST",`${r}/oauth/token`,u.headers,p.response.headers,c,p.response.data),o(p)})})}authorizePKCEGrant(e,i,n,a){this.clientId=e;var r=this.config.getConfUrl("login",`https://login.${this.config.environment}`);return new Promise((s,o)=>{var l={"Content-Type":"application/x-www-form-urlencoded"},u=nI.default.stringify({grant_type:"authorization_code",code:n,code_verifier:i,client_id:e,redirect_uri:a}),c=new Zt(`${r}/oauth/token`,"POST",l,null,u,this.timeout);let p=this.getHttpClient();var d={grant_type:"authorization_code",code:n,code_verifier:i,client_id:e,redirect_uri:a};p.request(c).then(h=>{this.config.logger.log("trace",h.status,"POST",`${r}/oauth/token`,c.headers,h.headers,d,void 0),this.config.logger.log("debug",h.status,"POST",`${r}/oauth/token`,c.headers,void 0,d,void 0);var g=h.data.access_token;let m={accessToken:g};h.data.expires_in!==null&&h.data.expires_in!==void 0&&(m.tokenExpiryTime=new Date().getTime()+h.data.expires_in*1e3,m.tokenExpiryTimeString=new Date(m.tokenExpiryTime).toUTCString()),this._saveSettings(m),s(this.authData)}).catch(h=>{h.response&&this.config.logger.log("error",h.response.status,"POST",`${r}/oauth/token`,c.headers,h.response.headers,d,h.response.data),o(h)})})}generatePKCECodeVerifier(e){if(e<43||e>128)throw new Error("PKCE Code Verifier (length) must be between 43 and 128 characters");if(typeof window>"u")try{let i=require("crypto").getRandomValues,n="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-._~";return Array.from(i(new Uint32Array(e))).map(r=>n[r%n.length]).join("")}catch{throw new Error("Crypto module is missing/not supported.")}else{let i="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-._~";return Array.from(crypto.getRandomValues(new Uint32Array(e))).map(a=>i[a%i.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 i=require("crypto").createHash,n=new TextEncoder().encode(e);return new Promise((a,r)=>{let s=i("sha256").update(n).digest(),o=Buffer.from(s).toString("base64url");a(o)})}catch{throw new Error("Crypto module is missing/not supported.")}else{let i=new TextEncoder().encode(e);return new Promise((n,a)=>{window.crypto.subtle.digest("SHA-256",i).then(r=>{let o=btoa(String.fromCharCode(...new Uint8Array(r))).replaceAll("+","-").replaceAll("/","_");o=o.split("=")[0],n(o)}).catch(r=>a(new Error(`Code Challenge Error ${r}`)))})}}loginPKCEGrant(e,i,n,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=i,this.codeVerifier=a,n||(n={}),new Promise((s,o)=>{if(n.org&&!n.provider)return o(new Error("opts.provider must be set if opts.org is set"));if(n.provider&&!n.org)return o(new Error("opts.org must be set if opts.provider is set"));if(r&&r.error)return this.hasLocalStorage&&sessionStorage.removeItem("genesys_cloud_sdk_pkce_code_verifier"),this._saveSettings({accessToken:void 0}),o(new Error(`[${r.error}] ${r.error_description}`));r&&r.code?(this.codeVerifier||this.hasLocalStorage&&(this.codeVerifier=sessionStorage.getItem("genesys_cloud_sdk_pkce_code_verifier")),this.authorizePKCEGrant(this.clientId,this.codeVerifier,r.code,this.redirectUri).then(()=>{this._testTokenAccess().then(()=>{!this.authData.state&&r.state&&(this.authData.state=r.state),this.hasLocalStorage&&sessionStorage.removeItem("genesys_cloud_sdk_pkce_code_verifier"),s(this.authData)}).catch(l=>(this._saveSettings({accessToken:void 0}),this.hasLocalStorage&&sessionStorage.removeItem("genesys_cloud_sdk_pkce_code_verifier"),o(new Error(`[${l.name}] ${l.msg}`))))}).catch(l=>(this._saveSettings({accessToken:void 0}),this.hasLocalStorage&&sessionStorage.removeItem("genesys_cloud_sdk_pkce_code_verifier"),o(new Error(`[${l.name}] ${l.msg}`))))):this._testTokenAccess().then(()=>{!this.authData.state&&n.state&&(this.authData.state=n.state),s(this.authData)}).catch(l=>{this.codeVerifier||(this.codeVerifier=this.generatePKCECodeVerifier(128),this.hasLocalStorage&&sessionStorage.setItem("genesys_cloud_sdk_pkce_code_verifier",this.codeVerifier)),this.computePKCECodeChallenge(this.codeVerifier).then(u=>{var c={client_id:encodeURIComponent(this.clientId),redirect_uri:encodeURIComponent(this.redirectUri),code_challenge:encodeURIComponent(u),response_type:"code",code_challenge_method:"S256"};n.state&&(c.state=encodeURIComponent(n.state)),n.org&&(c.org=encodeURIComponent(n.org)),n.provider&&(c.provider=encodeURIComponent(n.provider)),n.prompt&&n.prompt=="login"&&(c.prompt=encodeURIComponent(n.prompt));var p=this._buildAuthUrl("oauth/authorize",c);window.location.replace(p)}).catch(u=>o(new Error(`[${u.name}]`)))})})}_setValuesFromUrlQuery(){if(!(typeof window<"u"&&window.location.search))return;let e={},i=new URLSearchParams(window.location.search),n=i.get("code"),a=i.get("error"),r=i.get("error_description"),s=i.get("state");if(a)return e.error=a,r&&(e.error_description=r),e;n&&(e.code=n,s&&(e.state=s));var o,l,u=window.location;return"replaceState"in history?history.replaceState("",document.title,u.pathname):(o=document.body.scrollTop,l=document.body.scrollLeft,history.pushState("",document.title,u.pathname),document.body.scrollTop=o,document.body.scrollLeft=l),e}loginCodeAuthorizationGrant(e,i,n,a){return this.clientId=e,this.clientSecret=i,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+":"+i).toString("base64"),l=this._formAuthRequest(o,{grant_type:"authorization_code",code:n,redirect_uri:a});l.proxy=this.proxy;var u={grant_type:"authorization_code",code:n,redirect_uri:a};this._handleCodeAuthorizationResponse(l,u,r,s)})}refreshCodeAuthorizationGrant(e,i,n){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+":"+i).toString("base64"),o=this._formAuthRequest(s,{grant_type:"refresh_token",refresh_token:n});o.proxy=this.proxy;var l={grant_type:"refresh_token",refresh_token:n};this._handleCodeAuthorizationResponse(o,l,a,r)})}_handleCodeAuthorizationResponse(e,i,n,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,i,void 0),this.config.logger.log("debug",s.status,"POST",`${r}/oauth/token`,e.headers,void 0,i,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(),n(this.authData)}).catch(s=>{s.response&&this.config.logger.log("error",s.response.status,"POST",`${r}/oauth/token`,e.headers,s.response.headers,i,s.response.data),a(s)})}_formAuthRequest(e,i){var n=this.config.getConfUrl("login",`https://login.${this.config.environment}`),a={Authorization:"Basic "+e,"Content-Type":"application/x-www-form-urlencoded"},r=new Zt(`${n}/oauth/token`,"POST",a,null,nI.default.stringify(i),this.timeout);return this.getHttpClient().request(r)}_handleExpiredAccessToken(){return new Promise((e,i)=>{if(typeof window<"u"){i(new Error("This method is not supported in a browser."));return}this.refreshInProgress?this._sleep(this.config.refresh_token_wait_max).then(()=>{this.refreshInProgress?i(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(n=>{this.refreshInProgress=!1,i(n)}))})}_sleep(e){return new Promise(i=>setTimeout(i,e))}_testTokenAccess(){return new Promise((e,i)=>{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(()=>{e()}).catch(n=>{this._saveSettings({accessToken:void 0}),i(n)})})}_setValuesFromUrlHash(){if(!(typeof window<"u"&&window.location.hash))return;let e=new RegExp("^#*(.+?)=(.+?)$","i"),i={};if(window.location.hash.split("&").forEach(s=>{let o=e.exec(s);o&&(i[o[1]]=decodeURIComponent(decodeURIComponent(o[2].replace(/\+/g,"%20"))))}),i.error)return i;if(i.access_token){let s={};i.state&&(s.state=i.state),i.expires_in&&(s.tokenExpiryTime=new Date().getTime()+parseInt(i.expires_in.replace(/\+/g,"%20"))*1e3,s.tokenExpiryTimeString=new Date(s.tokenExpiryTime).toUTCString()),s.accessToken=i.access_token.replace(/\+/g,"%20");var n,a,r=window.location;"replaceState"in history?history.replaceState("",document.title,r.pathname+r.search):(n=document.body.scrollTop,a=document.body.scrollLeft,r.hash="",document.body.scrollTop=n,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 i={client_id:encodeURIComponent(this.clientId)};e&&(i.redirect_uri=encodeURI(e));var n=this._buildAuthUrl("logout",i);window.location.replace(n)}_buildAuthUrl(e,i){i||(i={});var n=this.config.getConfUrl("login",this.config.authUrl);return Object.keys(i).reduce((a,r)=>i[r]?`${a}&${r}=${i[r]}`:a,`${n}/${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 i={};for(var n in e)e.hasOwnProperty(n)&&e[n]!==void 0&&(i[encodeURIComponent(n)]=Array.isArray(e[n])?e[n].join(","):this.paramToString(e[n]));return i}addHeaders(e,...i){return e?e=Object.assign(e,...i):e=Object.assign(...i),e}buildUrl(e,i){e.match(/^\//)||(e=`/${e}`);var n=this.config.getConfUrl("api",this.config.basePath)+e;return n=n.replace(/\{([\w-]+)\}/g,(a,r)=>{var s;return i.hasOwnProperty(r)?s=this.paramToString(i[r]):s=a,encodeURIComponent(s)}),n}isJsonMime(e){return!!(e&&e.match(/^application\/json(;.*)?$/i))}jsonPreferredMime(e){for(var i=0;i"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 i={};for(var n in e)if(e.hasOwnProperty(n)&&e[n]!==void 0){var a=e[n];this.isFileParam(a)||Array.isArray(a)?i[n]=a:i[n]=this.paramToString(a)}return i}buildCollectionParam(e,i){if(e)switch(Array.isArray(e)||(e=[e]),i){case"csv":return e.map(n=>this.paramToString(n)).join(",");case"ssv":return e.map(n=>this.paramToString(n)).join(" ");case"tsv":return e.map(n=>this.paramToString(n)).join(" ");case"pipes":return e.map(n=>this.paramToString(n)).join("|");case"multi":return e.map(n=>this.paramToString(n));default:throw new Error(`Unknown collection format: ${i}`)}}applyAuthToRequest(e,i){i.forEach(n=>{var a=this.authentications[n];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,i,n,a,r,s,o,l,u,c,p){return new Promise((d,h)=>{g(this);function g(m){var f=m.buildUrl(e,n),v=new Zt(f,i,null,m.serialize(a),null,m.timeout);m.applyAuthToRequest(v,l);let y=m.defaultHeaders,A=m.normalizeParams(r);if(v.headers=m.addHeaders(v.headers,y,A),p){if(typeof p!="object")throw new Error("Per-request headers must be a valid object");for(let[k,Q]of Object.entries(p)){if(typeof k!="string"||typeof Q!="string")throw new Error(`Invalid header: "${k}" must have string name and value`);if(!/^[!#$%&'*+\-.0-9A-Z^_`a-z|~]+$/.test(k))throw new Error(`Invalid header name: "${k}" - must be a valid HTTP token`);for(let Z=0;Z=33&&ie<=126||ie===32||ie===9||ie>=128&&ie<=255))throw new Error(`Invalid header value for "${k}": contains invalid characters`)}v.headers[k]=Q}}var b=m.jsonPreferredMime(u);if(b?v.headers["Content-Type"]=b:v.headers["Content-Type"]||(v.headers["Content-Type"]="application/json"),b==="application/x-www-form-urlencoded")v.setData(m.normalizeParams(s));else if(b=="multipart/form-data"){var O=m.normalizeParams(s);for(var $ in O)if(O.hasOwnProperty($)){var N=new FormData;N.set($,O[$]),v.setData(N)}}else o&&v.setData(o);var X=m.jsonPreferredMime(c);X&&(v.headers.Accept=X),m.getHttpClient().request(v).then(k=>{var Q=m.returnExtended===!0?{status:k.status,statusText:k.statusText,headers:k.headers,body:k.data,text:k.text,error:null}:k.data?k.data:k.text;m.config.logger.log("trace",k.status,i,f,v.headers,k.headers,o,void 0),m.config.logger.log("debug",k.status,i,f,v.headers,void 0,o,void 0),d(Q)}).catch(k=>{var Q=k;k.response&&k.response.status==401&&m.config.refresh_access_token&&m.authData.refreshToken&&m.authData.refreshToken!==""?m._handleExpiredAccessToken().then(()=>{g(m)}).catch(Z=>{h(Z)}):k.response&&(m.config.logger.log("error",k.response.status,i,f,v.headers,k.response.headers,o,k.response.data),Q=m.returnExtended===!0?{status:k.response.status,statusText:k.response.statusText,headers:k.response.headers,body:k.response.data,text:k.response.text,error:k}:k.response.data?k.response.data:k.response.text),h(Q)})}})}},OA=class{constructor(e){this.apiClient=e||q.instance}deleteConversationsSummariesSetting(e,i){if(i=i||{},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"],i.customHeaders)}deleteGuideJobs(e,i){if(i=i||{},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"],i.customHeaders)}getConversationsSummariesSetting(e,i){if(i=i||{},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"],i.customHeaders)}getConversationsSummariesSettings(e){return e=e||{},this.apiClient.callApi("/api/v2/conversations/summaries/settings","GET",{},{language:e.language,name:e.name,sortBy:e.sortBy,sortOrder:e.sortOrder,pageNumber:e.pageNumber,pageSize:e.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getGuide(e,i){if(i=i||{},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"],i.customHeaders)}getGuideJob(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "guideId" when calling getGuideJob';if(i==null||i==="")throw'Missing the required parameter "jobId" when calling getGuideJob';return this.apiClient.callApi("/api/v2/guides/{guideId}/jobs/{jobId}","GET",{guideId:e,jobId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getGuideVersion(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "guideId" when calling getGuideVersion';if(i==null||i==="")throw'Missing the required parameter "versionId" when calling getGuideVersion';return this.apiClient.callApi("/api/v2/guides/{guideId}/versions/{versionId}","GET",{guideId:e,versionId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getGuideVersionJob(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "guideId" when calling getGuideVersionJob';if(i==null||i==="")throw'Missing the required parameter "versionId" when calling getGuideVersionJob';if(n==null||n==="")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:i,jobId:n},{},{},{},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,i){if(i=i||{},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"],i.customHeaders)}patchGuide(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "guideId" when calling patchGuide';if(i==null)throw'Missing the required parameter "body" when calling patchGuide';return this.apiClient.callApi("/api/v2/guides/{guideId}","PATCH",{guideId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchGuideVersion(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "guideId" when calling patchGuideVersion';if(i==null||i==="")throw'Missing the required parameter "versionId" when calling patchGuideVersion';if(n==null)throw'Missing the required parameter "body" when calling patchGuideVersion';return this.apiClient.callApi("/api/v2/guides/{guideId}/versions/{versionId}","PATCH",{guideId:e,versionId:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postConversationsSummariesPreview(e,i){if(i=i||{},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"],i.customHeaders)}postConversationsSummariesSettings(e,i){if(i=i||{},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"],i.customHeaders)}postGuideSessionTurns(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "guideId" when calling postGuideSessionTurns';if(i==null||i==="")throw'Missing the required parameter "guideSessionId" when calling postGuideSessionTurns';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postGuideVersionJobs(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "guideId" when calling postGuideVersionJobs';if(i==null||i==="")throw'Missing the required parameter "versionId" when calling postGuideVersionJobs';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postGuideVersions(e,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "guideId" when calling postGuideVersions';return this.apiClient.callApi("/api/v2/guides/{guideId}/versions","POST",{guideId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postGuides(e,i){if(i=i||{},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"],i.customHeaders)}postGuidesJobs(e,i){if(i=i||{},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"],i.customHeaders)}postGuidesUploads(e,i){if(i=i||{},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"],i.customHeaders)}putConversationsSummariesSetting(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "summarySettingId" when calling putConversationsSummariesSetting';if(i==null)throw'Missing the required parameter "body" when calling putConversationsSummariesSetting';return this.apiClient.callApi("/api/v2/conversations/summaries/settings/{summarySettingId}","PUT",{summarySettingId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}},xA=class{constructor(e){this.apiClient=e||q.instance}deleteAssistant(e,i){if(i=i||{},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"],i.customHeaders)}deleteAssistantQueue(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "assistantId" when calling deleteAssistantQueue';if(i==null||i==="")throw'Missing the required parameter "queueId" when calling deleteAssistantQueue';return this.apiClient.callApi("/api/v2/assistants/{assistantId}/queues/{queueId}","DELETE",{assistantId:e,queueId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteAssistantQueues(e,i){if(i=i||{},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:i.queueIds},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}deleteAssistantsAgentchecklist(e,i){if(i=i||{},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"],i.customHeaders)}getAssistant(e,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "assistantId" when calling getAssistant';return this.apiClient.callApi("/api/v2/assistants/{assistantId}","GET",{assistantId:e},{expand:i.expand,languageVariation:i.languageVariation,fallbackToPrimaryAssistant:i.fallbackToPrimaryAssistant},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getAssistantQueue(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "assistantId" when calling getAssistantQueue';if(i==null||i==="")throw'Missing the required parameter "queueId" when calling getAssistantQueue';return this.apiClient.callApi("/api/v2/assistants/{assistantId}/queues/{queueId}","GET",{assistantId:e,queueId:i},{expand:n.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getAssistantQueueUsersJob(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "assistantId" when calling getAssistantQueueUsersJob';if(i==null||i==="")throw'Missing the required parameter "queueId" when calling getAssistantQueueUsersJob';if(n==null||n==="")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:i,jobId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getAssistantQueues(e,i){if(i=i||{},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:i.before,after:i.after,pageSize:i.pageSize,expand:i.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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"],i.customHeaders)}getAssistantsAgentchecklists(e){return e=e||{},this.apiClient.callApi("/api/v2/assistants/agentchecklists","GET",{},{before:e.before,after:e.after,pageSize:e.pageSize,namePrefix:e.namePrefix,language:e.language,sortOrder:e.sortOrder,sortBy:e.sortBy},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getAssistantsAgentchecklistsLanguages(e){return e=e||{},this.apiClient.callApi("/api/v2/assistants/agentchecklists/languages","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getAssistantsQueues(e){return e=e||{},this.apiClient.callApi("/api/v2/assistants/queues","GET",{},{before:e.before,after:e.after,pageSize:e.pageSize,queueIds:e.queueIds,expand:e.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}patchAssistant(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "assistantId" when calling patchAssistant';if(i==null)throw'Missing the required parameter "body" when calling patchAssistant';return this.apiClient.callApi("/api/v2/assistants/{assistantId}","PATCH",{assistantId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchAssistantQueues(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "assistantId" when calling patchAssistantQueues';if(i==null)throw'Missing the required parameter "body" when calling patchAssistantQueues';return this.apiClient.callApi("/api/v2/assistants/{assistantId}/queues","PATCH",{assistantId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postAssistantQueueUsersBulkAdd(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "assistantId" when calling postAssistantQueueUsersBulkAdd';if(i==null||i==="")throw'Missing the required parameter "queueId" when calling postAssistantQueueUsersBulkAdd';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postAssistantQueueUsersBulkRemove(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "assistantId" when calling postAssistantQueueUsersBulkRemove';if(i==null||i==="")throw'Missing the required parameter "queueId" when calling postAssistantQueueUsersBulkRemove';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postAssistantQueueUsersJobs(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "assistantId" when calling postAssistantQueueUsersJobs';if(i==null||i==="")throw'Missing the required parameter "queueId" when calling postAssistantQueueUsersJobs';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postAssistantQueueUsersQuery(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "assistantId" when calling postAssistantQueueUsersQuery';if(i==null||i==="")throw'Missing the required parameter "queueId" when calling postAssistantQueueUsersQuery';if(n==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:i},{expand:this.apiClient.buildCollectionParam(a.expand,"multi")},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postAssistants(e,i){if(i=i||{},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"],i.customHeaders)}postAssistantsAgentchecklists(e,i){if(i=i||{},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"],i.customHeaders)}putAssistantQueue(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "assistantId" when calling putAssistantQueue';if(i==null||i==="")throw'Missing the required parameter "queueId" when calling putAssistantQueue';if(n==null)throw'Missing the required parameter "body" when calling putAssistantQueue';return this.apiClient.callApi("/api/v2/assistants/{assistantId}/queues/{queueId}","PUT",{assistantId:e,queueId:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}putAssistantsAgentchecklist(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "agentChecklistId" when calling putAssistantsAgentchecklist';if(i==null)throw'Missing the required parameter "body" when calling putAssistantsAgentchecklist';return this.apiClient.callApi("/api/v2/assistants/agentchecklists/{agentChecklistId}","PUT",{agentChecklistId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}},TA=class{constructor(e){this.apiClient=e||q.instance}getAssistantCopilot(e,i){if(i=i||{},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"],i.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,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "assistantId" when calling putAssistantCopilot';if(i==null)throw'Missing the required parameter "body" when calling putAssistantCopilot';return this.apiClient.callApi("/api/v2/assistants/{assistantId}/copilot","PUT",{assistantId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}},MA=class{constructor(e){this.apiClient=e||q.instance}deleteUsersAgentuiAgentsAutoanswerAgentIdSettings(e,i){if(i=i||{},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"],i.customHeaders)}getUsersAgentuiAgentsAutoanswerAgentIdSettings(e,i){if(i=i||{},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"],i.customHeaders)}patchUsersAgentuiAgentsAutoanswerAgentIdSettings(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "agentId" when calling patchUsersAgentuiAgentsAutoanswerAgentIdSettings';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putUsersAgentuiAgentsAutoanswerAgentIdSettings(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "agentId" when calling putUsersAgentuiAgentsAutoanswerAgentIdSettings';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}},EA=class{constructor(e){this.apiClient=e||q.instance}deleteAlertingAlert(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getAlertingAlert(e,i){if(i=i||{},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"],i.customHeaders)}getAlertingRule(e,i){if(i=i||{},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"],i.customHeaders)}patchAlertingAlert(e,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "alertId" when calling patchAlertingAlert';return this.apiClient.callApi("/api/v2/alerting/alerts/{alertId}","PATCH",{alertId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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"],i.customHeaders)}patchAlertingRulesBulk(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}postAlertingRulesBulkRemove(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "alertId" when calling putAlertingAlert';return this.apiClient.callApi("/api/v2/alerting/alerts/{alertId}","PUT",{alertId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}putAlertingRule(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "ruleId" when calling putAlertingRule';if(i==null)throw'Missing the required parameter "body" when calling putAlertingRule';return this.apiClient.callApi("/api/v2/alerting/rules/{ruleId}","PUT",{ruleId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}},kA=class{constructor(e){this.apiClient=e||q.instance}deleteAnalyticsActionsAggregatesJob(e,i){if(i=i||{},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"],i.customHeaders)}deleteAnalyticsAgentcopilotsAggregatesJob(e,i){if(i=i||{},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"],i.customHeaders)}deleteAnalyticsAgentutilizationsAggregatesJob(e,i){if(i=i||{},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"],i.customHeaders)}deleteAnalyticsBotsAggregatesJob(e,i){if(i=i||{},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"],i.customHeaders)}deleteAnalyticsCasemanagementAggregatesJob(e,i){if(i=i||{},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"],i.customHeaders)}deleteAnalyticsConversationsAggregatesJob(e,i){if(i=i||{},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"],i.customHeaders)}deleteAnalyticsConversationsDetailsJob(e,i){if(i=i||{},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"],i.customHeaders)}deleteAnalyticsCopilotsAggregatesJob(e,i){if(i=i||{},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"],i.customHeaders)}deleteAnalyticsEvaluationsAggregatesJob(e,i){if(i=i||{},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"],i.customHeaders)}deleteAnalyticsFlowexecutionsAggregatesJob(e,i){if(i=i||{},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"],i.customHeaders)}deleteAnalyticsFlowsAggregatesJob(e,i){if(i=i||{},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"],i.customHeaders)}deleteAnalyticsJourneysAggregatesJob(e,i){if(i=i||{},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"],i.customHeaders)}deleteAnalyticsKnowledgeAggregatesJob(e,i){if(i=i||{},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"],i.customHeaders)}deleteAnalyticsResolutionsAggregatesJob(e,i){if(i=i||{},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"],i.customHeaders)}deleteAnalyticsSummariesAggregatesJob(e,i){if(i=i||{},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"],i.customHeaders)}deleteAnalyticsSurveysAggregatesJob(e,i){if(i=i||{},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"],i.customHeaders)}deleteAnalyticsTaskmanagementAggregatesJob(e,i){if(i=i||{},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"],i.customHeaders)}deleteAnalyticsTranscriptsAggregatesJob(e,i){if(i=i||{},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"],i.customHeaders)}deleteAnalyticsUsersAggregatesJob(e,i){if(i=i||{},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"],i.customHeaders)}deleteAnalyticsUsersDetailsJob(e,i){if(i=i||{},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"],i.customHeaders)}getAnalyticsActionsAggregatesJob(e,i){if(i=i||{},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"],i.customHeaders)}getAnalyticsActionsAggregatesJobResults(e,i){if(i=i||{},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:i.cursor},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getAnalyticsAgentStatus(e,i){if(i=i||{},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"],i.customHeaders)}getAnalyticsAgentcopilotsAggregatesJob(e,i){if(i=i||{},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"],i.customHeaders)}getAnalyticsAgentcopilotsAggregatesJobResults(e,i){if(i=i||{},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:i.cursor},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getAnalyticsAgentutilizationsAggregatesJob(e,i){if(i=i||{},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"],i.customHeaders)}getAnalyticsAgentutilizationsAggregatesJobResults(e,i){if(i=i||{},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:i.cursor},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getAnalyticsBotflowDivisionsReportingturns(e,i){if(i=i||{},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:i.after,pageSize:i.pageSize,interval:i.interval,actionId:i.actionId,sessionId:i.sessionId,language:i.language,askActionResults:i.askActionResults},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getAnalyticsBotflowReportingturns(e,i){if(i=i||{},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:i.after,pageSize:i.pageSize,interval:i.interval,actionId:i.actionId,sessionId:i.sessionId,language:i.language,askActionResults:i.askActionResults},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getAnalyticsBotflowSessions(e,i){if(i=i||{},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:i.after,pageSize:i.pageSize,interval:i.interval,botResultCategories:i.botResultCategories,endLanguage:i.endLanguage},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getAnalyticsBotsAggregatesJob(e,i){if(i=i||{},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"],i.customHeaders)}getAnalyticsBotsAggregatesJobResults(e,i){if(i=i||{},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:i.cursor},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getAnalyticsCasemanagementAggregatesJob(e,i){if(i=i||{},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"],i.customHeaders)}getAnalyticsCasemanagementAggregatesJobResults(e,i){if(i=i||{},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:i.cursor},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getAnalyticsConversationDetails(e,i){if(i=i||{},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"],i.customHeaders)}getAnalyticsConversationsAggregatesJob(e,i){if(i=i||{},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"],i.customHeaders)}getAnalyticsConversationsAggregatesJobResults(e,i){if(i=i||{},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:i.cursor},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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"],i.customHeaders)}getAnalyticsConversationsDetailsJobResults(e,i){if(i=i||{},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:i.cursor,pageSize:i.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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"],i.customHeaders)}getAnalyticsCopilotsAggregatesJobResults(e,i){if(i=i||{},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:i.cursor},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getAnalyticsDataextractionDownload(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getAnalyticsEvaluationsAggregatesJobResults(e,i){if(i=i||{},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:i.cursor},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getAnalyticsFlowexecutionsAggregatesJob(e,i){if(i=i||{},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"],i.customHeaders)}getAnalyticsFlowexecutionsAggregatesJobResults(e,i){if(i=i||{},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:i.cursor},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getAnalyticsFlowsAggregatesJob(e,i){if(i=i||{},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"],i.customHeaders)}getAnalyticsFlowsAggregatesJobResults(e,i){if(i=i||{},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:i.cursor},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getAnalyticsJourneysAggregatesJob(e,i){if(i=i||{},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"],i.customHeaders)}getAnalyticsJourneysAggregatesJobResults(e,i){if(i=i||{},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:i.cursor},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getAnalyticsKnowledgeAggregatesJob(e,i){if(i=i||{},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"],i.customHeaders)}getAnalyticsKnowledgeAggregatesJobResults(e,i){if(i=i||{},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:i.cursor},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getAnalyticsReportingDashboardsUser(e,i){if(i=i||{},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"],i.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,i,n){if(n=n||{},e==null)throw'Missing the required parameter "dashboardType" when calling getAnalyticsReportingSettingsDashboardsQuery';if(i==null)throw'Missing the required parameter "dashboardAccessFilter" when calling getAnalyticsReportingSettingsDashboardsQuery';return this.apiClient.callApi("/api/v2/analytics/reporting/settings/dashboards/query","GET",{},{name:n.name,dashboardType:e,dashboardState:n.dashboardState,dashboardAccessFilter:i,sortBy:n.sortBy,pageNumber:n.pageNumber,pageSize:n.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getAnalyticsReportingSettingsUserDashboards(e,i){if(i=i||{},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:i.sortBy,pageNumber:i.pageNumber,pageSize:i.pageSize,publicOnly:i.publicOnly,favoriteOnly:i.favoriteOnly,deletedOnly:i.deletedOnly,name:i.name},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getAnalyticsResolutionsAggregatesJob(e,i){if(i=i||{},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"],i.customHeaders)}getAnalyticsResolutionsAggregatesJobResults(e,i){if(i=i||{},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:i.cursor},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getAnalyticsSummariesAggregatesJob(e,i){if(i=i||{},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"],i.customHeaders)}getAnalyticsSummariesAggregatesJobResults(e,i){if(i=i||{},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:i.cursor},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getAnalyticsSurveysAggregatesJob(e,i){if(i=i||{},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"],i.customHeaders)}getAnalyticsSurveysAggregatesJobResults(e,i){if(i=i||{},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:i.cursor},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getAnalyticsTaskmanagementAggregatesJob(e,i){if(i=i||{},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"],i.customHeaders)}getAnalyticsTaskmanagementAggregatesJobResults(e,i){if(i=i||{},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:i.cursor},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getAnalyticsTranscriptsAggregatesJob(e,i){if(i=i||{},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"],i.customHeaders)}getAnalyticsTranscriptsAggregatesJobResults(e,i){if(i=i||{},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:i.cursor},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getAnalyticsUsersAggregatesJob(e,i){if(i=i||{},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"],i.customHeaders)}getAnalyticsUsersAggregatesJobResults(e,i){if(i=i||{},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:i.cursor},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getAnalyticsUsersDetailsJob(e,i){if(i=i||{},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"],i.customHeaders)}getAnalyticsUsersDetailsJobResults(e,i){if(i=i||{},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:i.cursor,pageSize:i.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsActionsAggregatesJobs(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsActionsAggregatesQuery(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsAgentcopilotsAggregatesJobs(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsAgentcopilotsAggregatesQuery(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsAgentsStatusCounts(e,i){if(i=i||{},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(i.groupBy,"multi")},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postAnalyticsAgentsStatusQuery(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsAgentutilizationsAggregatesJobs(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsAgentutilizationsAggregatesQuery(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsBotsAggregatesJobs(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsBotsAggregatesQuery(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsCasemanagementAggregatesJobs(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsCasemanagementAggregatesQuery(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsConversationDetailsProperties(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postAnalyticsConversationDetailsProperties';if(i==null)throw'Missing the required parameter "body" when calling postAnalyticsConversationDetailsProperties';return this.apiClient.callApi("/api/v2/analytics/conversations/{conversationId}/details/properties","POST",{conversationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postAnalyticsConversationsActivityQuery(e,i){if(i=i||{},e==null)throw'Missing the required parameter "body" when calling postAnalyticsConversationsActivityQuery';return this.apiClient.callApi("/api/v2/analytics/conversations/activity/query","POST",{},{pageSize:i.pageSize,pageNumber:i.pageNumber},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postAnalyticsConversationsAggregatesJobs(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsConversationsAggregatesQuery(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsConversationsDetailsJobs(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsConversationsDetailsQuery(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsCopilotsAggregatesJobs(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsCopilotsAggregatesQuery(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsDataextractionDownloadsBulk(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsEvaluationsAggregatesJobs(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsEvaluationsAggregatesQuery(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsFlowexecutionsAggregatesJobs(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsFlowexecutionsAggregatesQuery(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsFlowsActivityQuery(e,i){if(i=i||{},e==null)throw'Missing the required parameter "body" when calling postAnalyticsFlowsActivityQuery';return this.apiClient.callApi("/api/v2/analytics/flows/activity/query","POST",{},{pageSize:i.pageSize,pageNumber:i.pageNumber},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postAnalyticsFlowsAggregatesJobs(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsFlowsAggregatesQuery(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsFlowsObservationsQuery(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsJourneysAggregatesJobs(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsJourneysAggregatesQuery(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsKnowledgeAggregatesJobs(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsKnowledgeAggregatesQuery(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsQueuesObservationsQuery(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsRatelimitsAggregatesQuery(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsReportingDashboardsUsersBulkRemove(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsReportingExports(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsReportingSettingsDashboardsBulkRemove(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsReportingSettingsDashboardsQuery(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsResolutionsAggregatesJobs(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsResolutionsAggregatesQuery(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsRoutingActivityQuery(e,i){if(i=i||{},e==null)throw'Missing the required parameter "body" when calling postAnalyticsRoutingActivityQuery';return this.apiClient.callApi("/api/v2/analytics/routing/activity/query","POST",{},{pageSize:i.pageSize,pageNumber:i.pageNumber},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postAnalyticsSummariesAggregatesJobs(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsSummariesAggregatesQuery(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsSurveysAggregatesJobs(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsSurveysAggregatesQuery(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsTaskmanagementAggregatesJobs(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsTaskmanagementAggregatesQuery(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsTaskmanagementMetricsQuery(e,i){if(i=i||{},e==null)throw'Missing the required parameter "body" when calling postAnalyticsTaskmanagementMetricsQuery';return this.apiClient.callApi("/api/v2/analytics/taskmanagement/metrics/query","POST",{},{after:i.after,pageSize:i.pageSize},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postAnalyticsTeamsActivityQuery(e,i){if(i=i||{},e==null)throw'Missing the required parameter "body" when calling postAnalyticsTeamsActivityQuery';return this.apiClient.callApi("/api/v2/analytics/teams/activity/query","POST",{},{pageSize:i.pageSize,pageNumber:i.pageNumber},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postAnalyticsTranscriptsAggregatesJobs(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsTranscriptsAggregatesQuery(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsUsersActivityQuery(e,i){if(i=i||{},e==null)throw'Missing the required parameter "body" when calling postAnalyticsUsersActivityQuery';return this.apiClient.callApi("/api/v2/analytics/users/activity/query","POST",{},{pageSize:i.pageSize,pageNumber:i.pageNumber},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postAnalyticsUsersAggregatesJobs(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsUsersAggregatesQuery(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsUsersDetailsJobs(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsUsersDetailsQuery(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsUsersObservationsQuery(e,i){if(i=i||{},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"],i.customHeaders)}putAnalyticsDataretentionSettings(e,i){if(i=i||{},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"],i.customHeaders)}},qA=class{constructor(e){this.apiClient=e||q.instance}deleteArchitectEmergencygroup(e,i){if(i=i||{},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"],i.customHeaders)}deleteArchitectGrammar(e,i){if(i=i||{},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"],i.customHeaders)}deleteArchitectGrammarLanguage(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "grammarId" when calling deleteArchitectGrammarLanguage';if(i==null||i==="")throw'Missing the required parameter "languageCode" when calling deleteArchitectGrammarLanguage';return this.apiClient.callApi("/api/v2/architect/grammars/{grammarId}/languages/{languageCode}","DELETE",{grammarId:e,languageCode:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteArchitectGrammarLanguageFilesDtmf(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "grammarId" when calling deleteArchitectGrammarLanguageFilesDtmf';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteArchitectGrammarLanguageFilesVoice(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "grammarId" when calling deleteArchitectGrammarLanguageFilesVoice';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteArchitectIvr(e,i){if(i=i||{},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"],i.customHeaders)}deleteArchitectPrompt(e,i){if(i=i||{},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:i.allResources},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}deleteArchitectPromptResource(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "promptId" when calling deleteArchitectPromptResource';if(i==null||i==="")throw'Missing the required parameter "languageCode" when calling deleteArchitectPromptResource';return this.apiClient.callApi("/api/v2/architect/prompts/{promptId}/resources/{languageCode}","DELETE",{promptId:e,languageCode:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteArchitectPromptResourceAudio(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "promptId" when calling deleteArchitectPromptResourceAudio';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteArchitectPrompts(e,i){if(i=i||{},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"],i.customHeaders)}deleteArchitectSchedule(e,i){if(i=i||{},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"],i.customHeaders)}deleteArchitectSchedulegroup(e,i){if(i=i||{},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"],i.customHeaders)}deleteArchitectSystempromptResource(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "promptId" when calling deleteArchitectSystempromptResource';if(i==null||i==="")throw'Missing the required parameter "languageCode" when calling deleteArchitectSystempromptResource';return this.apiClient.callApi("/api/v2/architect/systemprompts/{promptId}/resources/{languageCode}","DELETE",{promptId:e,languageCode:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteFlow(e,i){if(i=i||{},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"],i.customHeaders)}deleteFlowInstancesSettingsLoglevels(e,i){if(i=i||{},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"],i.customHeaders)}deleteFlows(e,i){if(i=i||{},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"],i.customHeaders)}deleteFlowsDatatable(e,i){if(i=i||{},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:i.force},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}deleteFlowsDatatableRow(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "datatableId" when calling deleteFlowsDatatableRow';if(i==null||i==="")throw'Missing the required parameter "rowId" when calling deleteFlowsDatatableRow';return this.apiClient.callApi("/api/v2/flows/datatables/{datatableId}/rows/{rowId}","DELETE",{datatableId:e,rowId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.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,i){if(i=i||{},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"],i.customHeaders)}getArchitectDependencytracking(e,i){if(i=i||{},e==null)throw'Missing the required parameter "name" when calling getArchitectDependencytracking';return this.apiClient.callApi("/api/v2/architect/dependencytracking","GET",{},{pageNumber:i.pageNumber,pageSize:i.pageSize,name:e,objectType:this.apiClient.buildCollectionParam(i.objectType,"multi"),consumedResources:i.consumedResources,consumingResources:i.consumingResources,consumedResourceType:this.apiClient.buildCollectionParam(i.consumedResourceType,"multi"),consumingResourceType:this.apiClient.buildCollectionParam(i.consumingResourceType,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i,n,a){if(a=a||{},e==null)throw'Missing the required parameter "id" when calling getArchitectDependencytrackingConsumedresources';if(i==null)throw'Missing the required parameter "version" when calling getArchitectDependencytrackingConsumedresources';if(n==null)throw'Missing the required parameter "objectType" when calling getArchitectDependencytrackingConsumedresources';return this.apiClient.callApi("/api/v2/architect/dependencytracking/consumedresources","GET",{},{id:e,version:i,objectType:n,resourceType:this.apiClient.buildCollectionParam(a.resourceType,"multi"),pageNumber:a.pageNumber,pageSize:a.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getArchitectDependencytrackingConsumingresources(e,i,n){if(n=n||{},e==null)throw'Missing the required parameter "id" when calling getArchitectDependencytrackingConsumingresources';if(i==null)throw'Missing the required parameter "objectType" when calling getArchitectDependencytrackingConsumingresources';return this.apiClient.callApi("/api/v2/architect/dependencytracking/consumingresources","GET",{},{id:e,objectType:i,resourceType:this.apiClient.buildCollectionParam(n.resourceType,"multi"),version:n.version,pageNumber:n.pageNumber,pageSize:n.pageSize,flowFilter:n.flowFilter},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.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,i){if(i=i||{},e==null)throw'Missing the required parameter "id" when calling getArchitectDependencytrackingObject';return this.apiClient.callApi("/api/v2/architect/dependencytracking/object","GET",{},{id:e,version:i.version,objectType:i.objectType,consumedResources:i.consumedResources,consumingResources:i.consumingResources,consumedResourceType:this.apiClient.buildCollectionParam(i.consumedResourceType,"multi"),consumingResourceType:this.apiClient.buildCollectionParam(i.consumingResourceType,"multi"),consumedResourceRequest:i.consumedResourceRequest},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getArchitectDependencytrackingType(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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:i.includeFileUrls},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getArchitectGrammarLanguage(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "grammarId" when calling getArchitectGrammarLanguage';if(i==null||i==="")throw'Missing the required parameter "languageCode" when calling getArchitectGrammarLanguage';return this.apiClient.callApi("/api/v2/architect/grammars/{grammarId}/languages/{languageCode}","GET",{grammarId:e,languageCode:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.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,i){if(i=i||{},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"],i.customHeaders)}getArchitectIvrIdentityresolution(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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:i.includeMediaUris,includeResources:i.includeResources,language:this.apiClient.buildCollectionParam(i.language,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getArchitectPromptHistoryHistoryId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "promptId" when calling getArchitectPromptHistoryHistoryId';if(i==null||i==="")throw'Missing the required parameter "historyId" when calling getArchitectPromptHistoryHistoryId';return this.apiClient.callApi("/api/v2/architect/prompts/{promptId}/history/{historyId}","GET",{promptId:e,historyId:i},{pageNumber:n.pageNumber,pageSize:n.pageSize,sortOrder:n.sortOrder,sortBy:n.sortBy,action:this.apiClient.buildCollectionParam(n.action,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getArchitectPromptResource(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "promptId" when calling getArchitectPromptResource';if(i==null||i==="")throw'Missing the required parameter "languageCode" when calling getArchitectPromptResource';return this.apiClient.callApi("/api/v2/architect/prompts/{promptId}/resources/{languageCode}","GET",{promptId:e,languageCode:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getArchitectPromptResources(e,i){if(i=i||{},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:i.pageNumber,pageSize:i.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getArchitectPrompts(e){return e=e||{},this.apiClient.callApi("/api/v2/architect/prompts","GET",{},{pageNumber:e.pageNumber,pageSize:e.pageSize,name:this.apiClient.buildCollectionParam(e.name,"multi"),description:e.description,nameOrDescription:e.nameOrDescription,sortBy:e.sortBy,sortOrder:e.sortOrder,includeMediaUris:e.includeMediaUris,includeResources:e.includeResources,language:this.apiClient.buildCollectionParam(e.language,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getArchitectSchedule(e,i){if(i=i||{},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"],i.customHeaders)}getArchitectSchedulegroup(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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:i.includeMediaUris,includeResources:i.includeResources,language:this.apiClient.buildCollectionParam(i.language,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getArchitectSystempromptHistoryHistoryId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "promptId" when calling getArchitectSystempromptHistoryHistoryId';if(i==null||i==="")throw'Missing the required parameter "historyId" when calling getArchitectSystempromptHistoryHistoryId';return this.apiClient.callApi("/api/v2/architect/systemprompts/{promptId}/history/{historyId}","GET",{promptId:e,historyId:i},{pageNumber:n.pageNumber,pageSize:n.pageSize,sortOrder:n.sortOrder,sortBy:n.sortBy,action:this.apiClient.buildCollectionParam(n.action,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getArchitectSystempromptResource(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "promptId" when calling getArchitectSystempromptResource';if(i==null||i==="")throw'Missing the required parameter "languageCode" when calling getArchitectSystempromptResource';return this.apiClient.callApi("/api/v2/architect/systemprompts/{promptId}/resources/{languageCode}","GET",{promptId:e,languageCode:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getArchitectSystempromptResources(e,i){if(i=i||{},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:i.pageNumber,pageSize:i.pageSize,sortBy:i.sortBy,sortOrder:i.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "flowId" when calling getFlow';return this.apiClient.callApi("/api/v2/flows/{flowId}","GET",{flowId:e},{deleted:i.deleted},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getFlowHistoryHistoryId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "flowId" when calling getFlowHistoryHistoryId';if(i==null||i==="")throw'Missing the required parameter "historyId" when calling getFlowHistoryHistoryId';return this.apiClient.callApi("/api/v2/flows/{flowId}/history/{historyId}","GET",{flowId:e,historyId:i},{pageNumber:n.pageNumber,pageSize:n.pageSize,sortOrder:n.sortOrder,sortBy:n.sortBy,action:this.apiClient.buildCollectionParam(n.action,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getFlowInstancesSettingsLoglevels(e,i){if(i=i||{},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(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getFlowLatestconfiguration(e,i){if(i=i||{},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:i.deleted},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getFlowVersion(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "flowId" when calling getFlowVersion';if(i==null||i==="")throw'Missing the required parameter "versionId" when calling getFlowVersion';return this.apiClient.callApi("/api/v2/flows/{flowId}/versions/{versionId}","GET",{flowId:e,versionId:i},{deleted:n.deleted},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getFlowVersionConfiguration(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "flowId" when calling getFlowVersionConfiguration';if(i==null||i==="")throw'Missing the required parameter "versionId" when calling getFlowVersionConfiguration';return this.apiClient.callApi("/api/v2/flows/{flowId}/versions/{versionId}/configuration","GET",{flowId:e,versionId:i},{deleted:n.deleted},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getFlowVersionHealth(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "flowId" when calling getFlowVersionHealth';if(i==null||i==="")throw'Missing the required parameter "versionId" when calling getFlowVersionHealth';return this.apiClient.callApi("/api/v2/flows/{flowId}/versions/{versionId}/health","GET",{flowId:e,versionId:i},{language:n.language},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getFlowVersionIntentHealth(e,i,n,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "flowId" when calling getFlowVersionIntentHealth';if(i==null||i==="")throw'Missing the required parameter "versionId" when calling getFlowVersionIntentHealth';if(n==null||n==="")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:i,intentId:n},{language:a},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}getFlowVersionIntentUtteranceHealth(e,i,n,a,r,s){if(s=s||{},e==null||e==="")throw'Missing the required parameter "flowId" when calling getFlowVersionIntentUtteranceHealth';if(i==null||i==="")throw'Missing the required parameter "versionId" when calling getFlowVersionIntentUtteranceHealth';if(n==null||n==="")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:i,intentId:n,utteranceId:a},{language:r},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],s.customHeaders)}getFlowVersions(e,i){if(i=i||{},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:i.pageNumber,pageSize:i.pageSize,deleted:i.deleted},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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:i.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getFlowsDatatableExportJob(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "datatableId" when calling getFlowsDatatableExportJob';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getFlowsDatatableImportJob(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "datatableId" when calling getFlowsDatatableImportJob';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getFlowsDatatableImportJobs(e,i){if(i=i||{},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:i.pageNumber,pageSize:i.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getFlowsDatatableRow(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "datatableId" when calling getFlowsDatatableRow';if(i==null||i==="")throw'Missing the required parameter "rowId" when calling getFlowsDatatableRow';return this.apiClient.callApi("/api/v2/flows/datatables/{datatableId}/rows/{rowId}","GET",{datatableId:e,rowId:i},{showbrief:n.showbrief},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getFlowsDatatableRows(e,i){if(i=i||{},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:i.pageNumber,pageSize:i.pageSize,showbrief:i.showbrief,sortOrder:i.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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:i.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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"],i.customHeaders)}getFlowsExportJob(e,i){if(i=i||{},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(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getFlowsInstance(e,i){if(i=i||{},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:i.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getFlowsInstancesJob(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getFlowsMilestone(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getFlowsOutcomes(e){return e=e||{},this.apiClient.callApi("/api/v2/flows/outcomes","GET",{},{pageNumber:e.pageNumber,pageSize:e.pageSize,sortBy:e.sortBy,sortOrder:e.sortOrder,id:this.apiClient.buildCollectionParam(e.id,"multi"),name:e.name,description:e.description,nameOrDescription:e.nameOrDescription,divisionId:this.apiClient.buildCollectionParam(e.divisionId,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getFlowsOutcomesDivisionviews(e){return e=e||{},this.apiClient.callApi("/api/v2/flows/outcomes/divisionviews","GET",{},{pageNumber:e.pageNumber,pageSize:e.pageSize,sortBy:e.sortBy,sortOrder:e.sortOrder,id:this.apiClient.buildCollectionParam(e.id,"multi"),name:e.name,divisionId:this.apiClient.buildCollectionParam(e.divisionId,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}patchArchitectGrammar(e,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "grammarId" when calling patchArchitectGrammar';return this.apiClient.callApi("/api/v2/architect/grammars/{grammarId}","PATCH",{grammarId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}patchArchitectGrammarLanguage(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "grammarId" when calling patchArchitectGrammarLanguage';if(i==null||i==="")throw'Missing the required parameter "languageCode" when calling patchArchitectGrammarLanguage';return this.apiClient.callApi("/api/v2/architect/grammars/{grammarId}/languages/{languageCode}","PATCH",{grammarId:e,languageCode:i},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchFlowsInstancesSettingsExecutiondata(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}postArchitectGrammarLanguageFilesDtmf(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "grammarId" when calling postArchitectGrammarLanguageFilesDtmf';if(i==null||i==="")throw'Missing the required parameter "languageCode" when calling postArchitectGrammarLanguageFilesDtmf';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postArchitectGrammarLanguageFilesVoice(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "grammarId" when calling postArchitectGrammarLanguageFilesVoice';if(i==null||i==="")throw'Missing the required parameter "languageCode" when calling postArchitectGrammarLanguageFilesVoice';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postArchitectGrammarLanguages(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "grammarId" when calling postArchitectGrammarLanguages';if(i==null)throw'Missing the required parameter "body" when calling postArchitectGrammarLanguages';return this.apiClient.callApi("/api/v2/architect/grammars/{grammarId}/languages","POST",{grammarId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postArchitectGrammars(e,i){if(i=i||{},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"],i.customHeaders)}postArchitectIvrs(e,i){if(i=i||{},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"],i.customHeaders)}postArchitectPromptHistory(e,i){if(i=i||{},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"],i.customHeaders)}postArchitectPromptResourceUploads(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "promptId" when calling postArchitectPromptResourceUploads';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postArchitectPromptResources(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "promptId" when calling postArchitectPromptResources';if(i==null)throw'Missing the required parameter "body" when calling postArchitectPromptResources';return this.apiClient.callApi("/api/v2/architect/prompts/{promptId}/resources","POST",{promptId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postArchitectPrompts(e,i){if(i=i||{},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"],i.customHeaders)}postArchitectSchedulegroups(e,i){if(i=i||{},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"],i.customHeaders)}postArchitectSchedules(e,i){if(i=i||{},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"],i.customHeaders)}postArchitectSystempromptHistory(e,i){if(i=i||{},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"],i.customHeaders)}postArchitectSystempromptResourceUploads(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "promptId" when calling postArchitectSystempromptResourceUploads';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postArchitectSystempromptResources(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "promptId" when calling postArchitectSystempromptResources';if(i==null)throw'Missing the required parameter "body" when calling postArchitectSystempromptResources';return this.apiClient.callApi("/api/v2/architect/systemprompts/{promptId}/resources","POST",{promptId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postFlowHistory(e,i){if(i=i||{},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"],i.customHeaders)}postFlowInstancesSettingsLoglevels(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "flowId" when calling postFlowInstancesSettingsLoglevels';if(i==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(n.expand,"multi")},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postFlowVersions(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "flowId" when calling postFlowVersions';if(i==null)throw'Missing the required parameter "body" when calling postFlowVersions';return this.apiClient.callApi("/api/v2/flows/{flowId}/versions","POST",{flowId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postFlows(e,i){if(i=i||{},e==null)throw'Missing the required parameter "body" when calling postFlows';return this.apiClient.callApi("/api/v2/flows","POST",{},{language:i.language},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postFlowsActionsCheckin(e,i){if(i=i||{},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"],i.customHeaders)}postFlowsActionsCheckout(e,i){if(i=i||{},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"],i.customHeaders)}postFlowsActionsDeactivate(e,i){if(i=i||{},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"],i.customHeaders)}postFlowsActionsPublish(e,i){if(i=i||{},e==null)throw'Missing the required parameter "flow" when calling postFlowsActionsPublish';return this.apiClient.callApi("/api/v2/flows/actions/publish","POST",{},{flow:e,version:i.version},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postFlowsActionsRevert(e,i){if(i=i||{},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"],i.customHeaders)}postFlowsActionsUnlock(e,i){if(i=i||{},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"],i.customHeaders)}postFlowsDatatableExportJobs(e,i){if(i=i||{},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"],i.customHeaders)}postFlowsDatatableImportCsvJobs(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "datatableId" when calling postFlowsDatatableImportCsvJobs';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postFlowsDatatableImportJobs(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "datatableId" when calling postFlowsDatatableImportJobs';if(i==null)throw'Missing the required parameter "body" when calling postFlowsDatatableImportJobs';return this.apiClient.callApi("/api/v2/flows/datatables/{datatableId}/import/jobs","POST",{datatableId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postFlowsDatatableRows(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "datatableId" when calling postFlowsDatatableRows';if(i==null)throw'Missing the required parameter "dataTableRow" when calling postFlowsDatatableRows';return this.apiClient.callApi("/api/v2/flows/datatables/{datatableId}/rows","POST",{datatableId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postFlowsDatatables(e,i){if(i=i||{},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"],i.customHeaders)}postFlowsExecutions(e,i){if(i=i||{},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"],i.customHeaders)}postFlowsExportJobs(e,i){if(i=i||{},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"],i.customHeaders)}postFlowsInstancesJobs(e,i){if(i=i||{},e==null)throw'Missing the required parameter "body" when calling postFlowsInstancesJobs';return this.apiClient.callApi("/api/v2/flows/instances/jobs","POST",{},{expand:i.expand},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postFlowsInstancesQuery(e,i){if(i=i||{},e==null)throw'Missing the required parameter "body" when calling postFlowsInstancesQuery';return this.apiClient.callApi("/api/v2/flows/instances/query","POST",{},{indexOnly:i.indexOnly,pageSize:i.pageSize},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postFlowsJobs(e){return e=e||{},this.apiClient.callApi("/api/v2/flows/jobs","POST",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}postFlowsMilestones(e){return e=e||{},this.apiClient.callApi("/api/v2/flows/milestones","POST",{},{},{},{},e.body,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}postFlowsOutcomes(e){return e=e||{},this.apiClient.callApi("/api/v2/flows/outcomes","POST",{},{},{},{},e.body,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}putArchitectEmergencygroup(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "emergencyGroupId" when calling putArchitectEmergencygroup';if(i==null)throw'Missing the required parameter "body" when calling putArchitectEmergencygroup';return this.apiClient.callApi("/api/v2/architect/emergencygroups/{emergencyGroupId}","PUT",{emergencyGroupId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putArchitectIvr(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "ivrId" when calling putArchitectIvr';if(i==null)throw'Missing the required parameter "body" when calling putArchitectIvr';return this.apiClient.callApi("/api/v2/architect/ivrs/{ivrId}","PUT",{ivrId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putArchitectIvrIdentityresolution(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "ivrId" when calling putArchitectIvrIdentityresolution';if(i==null)throw'Missing the required parameter "body" when calling putArchitectIvrIdentityresolution';return this.apiClient.callApi("/api/v2/architect/ivrs/{ivrId}/identityresolution","PUT",{ivrId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putArchitectPrompt(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "promptId" when calling putArchitectPrompt';if(i==null)throw'Missing the required parameter "body" when calling putArchitectPrompt';return this.apiClient.callApi("/api/v2/architect/prompts/{promptId}","PUT",{promptId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putArchitectPromptResource(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "promptId" when calling putArchitectPromptResource';if(i==null||i==="")throw'Missing the required parameter "languageCode" when calling putArchitectPromptResource';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}putArchitectSchedule(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "scheduleId" when calling putArchitectSchedule';if(i==null)throw'Missing the required parameter "body" when calling putArchitectSchedule';return this.apiClient.callApi("/api/v2/architect/schedules/{scheduleId}","PUT",{scheduleId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putArchitectSchedulegroup(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "scheduleGroupId" when calling putArchitectSchedulegroup';if(i==null)throw'Missing the required parameter "body" when calling putArchitectSchedulegroup';return this.apiClient.callApi("/api/v2/architect/schedulegroups/{scheduleGroupId}","PUT",{scheduleGroupId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putArchitectSystempromptResource(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "promptId" when calling putArchitectSystempromptResource';if(i==null||i==="")throw'Missing the required parameter "languageCode" when calling putArchitectSystempromptResource';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}putFlow(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "flowId" when calling putFlow';if(i==null)throw'Missing the required parameter "body" when calling putFlow';return this.apiClient.callApi("/api/v2/flows/{flowId}","PUT",{flowId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putFlowInstancesSettingsLoglevels(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "flowId" when calling putFlowInstancesSettingsLoglevels';if(i==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(n.expand,"multi")},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putFlowsDatatable(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "datatableId" when calling putFlowsDatatable';if(i==null)throw'Missing the required parameter "body" when calling putFlowsDatatable';return this.apiClient.callApi("/api/v2/flows/datatables/{datatableId}","PUT",{datatableId:e},{expand:n.expand},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putFlowsDatatableRow(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "datatableId" when calling putFlowsDatatableRow';if(i==null||i==="")throw'Missing the required parameter "rowId" when calling putFlowsDatatableRow';return this.apiClient.callApi("/api/v2/flows/datatables/{datatableId}/rows/{rowId}","PUT",{datatableId:e,rowId:i},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putFlowsInstancesSettingsLoglevelsDefault(e,i){if(i=i||{},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(i.expand,"multi")},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}putFlowsMilestone(e,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "milestoneId" when calling putFlowsMilestone';return this.apiClient.callApi("/api/v2/flows/milestones/{milestoneId}","PUT",{milestoneId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}putFlowsOutcome(e,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "flowOutcomeId" when calling putFlowsOutcome';return this.apiClient.callApi("/api/v2/flows/outcomes/{flowOutcomeId}","PUT",{flowOutcomeId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}},_A=class{constructor(e){this.apiClient=e||q.instance}deleteAssistantVariation(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "assistantId" when calling deleteAssistantVariation';if(i==null||i==="")throw'Missing the required parameter "variationId" when calling deleteAssistantVariation';return this.apiClient.callApi("/api/v2/assistants/{assistantId}/variations/{variationId}","DELETE",{assistantId:e,variationId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getAssistantVariation(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "assistantId" when calling getAssistantVariation';if(i==null||i==="")throw'Missing the required parameter "variationId" when calling getAssistantVariation';return this.apiClient.callApi("/api/v2/assistants/{assistantId}/variations/{variationId}","GET",{assistantId:e,variationId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getAssistantVariations(e,i){if(i=i||{},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"],i.customHeaders)}postAssistantVariations(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "assistantId" when calling postAssistantVariations';if(i==null)throw'Missing the required parameter "body" when calling postAssistantVariations';return this.apiClient.callApi("/api/v2/assistants/{assistantId}/variations","POST",{assistantId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putAssistantVariation(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "assistantId" when calling putAssistantVariation';if(i==null||i==="")throw'Missing the required parameter "variationId" when calling putAssistantVariation';if(n==null)throw'Missing the required parameter "body" when calling putAssistantVariation';return this.apiClient.callApi("/api/v2/assistants/{assistantId}/variations/{variationId}","PUT",{assistantId:e,variationId:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}},HA=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,i){if(i=i||{},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"],i.customHeaders)}getAuditsQueryTransactionIdResults(e,i){if(i=i||{},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:i.cursor,pageSize:i.pageSize,expand:this.apiClient.buildCollectionParam(i.expand,"multi"),allowRedirect:i.allowRedirect},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postAuditsQuery(e,i){if(i=i||{},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"],i.customHeaders)}postAuditsQueryRealtime(e,i){if(i=i||{},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(i.expand,"multi")},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postAuditsQueryRealtimeRelated(e,i){if(i=i||{},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(i.expand,"multi")},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}},RA=class{constructor(e){this.apiClient=e||q.instance}deleteAuthorizationDivision(e,i){if(i=i||{},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:i.force},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}deleteAuthorizationPoliciesTargetSubjectSubjectId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "targetName" when calling deleteAuthorizationPoliciesTargetSubjectSubjectId';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteAuthorizationRole(e,i){if(i=i||{},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"],i.customHeaders)}deleteAuthorizationSubjectDivisionRole(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "subjectId" when calling deleteAuthorizationSubjectDivisionRole';if(i==null||i==="")throw'Missing the required parameter "divisionId" when calling deleteAuthorizationSubjectDivisionRole';if(n==null||n==="")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:i,roleId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getAuthorizationDivision(e,i){if(i=i||{},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:i.objectCount},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getAuthorizationDivisionGrants(e,i){if(i=i||{},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:i.pageNumber,pageSize:i.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},e==null)throw'Missing the required parameter "permission" when calling getAuthorizationDivisionspermittedMe';return this.apiClient.callApi("/api/v2/authorization/divisionspermitted/me","GET",{},{name:i.name,permission:e},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getAuthorizationDivisionspermittedPagedMe(e,i){if(i=i||{},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:i.pageNumber,pageSize:i.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getAuthorizationDivisionspermittedPagedSubjectId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "subjectId" when calling getAuthorizationDivisionspermittedPagedSubjectId';if(i==null)throw'Missing the required parameter "permission" when calling getAuthorizationDivisionspermittedPagedSubjectId';return this.apiClient.callApi("/api/v2/authorization/divisionspermitted/paged/{subjectId}","GET",{subjectId:e},{permission:i,pageNumber:n.pageNumber,pageSize:n.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.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,i){if(i=i||{},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:i.after,pageSize:i.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getAuthorizationPoliciesTarget(e,i){if(i=i||{},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:i.after,pageSize:i.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getAuthorizationPoliciesTargetSubjectSubjectId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "targetName" when calling getAuthorizationPoliciesTargetSubjectSubjectId';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.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,i){if(i=i||{},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"],i.customHeaders)}getAuthorizationPolicyAttributes(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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:i.userCount,expand:this.apiClient.buildCollectionParam(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getAuthorizationRoleComparedefaultRightRoleId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "leftRoleId" when calling getAuthorizationRoleComparedefaultRightRoleId';if(i==null||i==="")throw'Missing the required parameter "rightRoleId" when calling getAuthorizationRoleComparedefaultRightRoleId';return this.apiClient.callApi("/api/v2/authorization/roles/{leftRoleId}/comparedefault/{rightRoleId}","GET",{leftRoleId:e,rightRoleId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getAuthorizationRoleSubjectgrants(e,i){if(i=i||{},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:i.pageSize,pageNumber:i.pageNumber,sortBy:i.sortBy,expand:this.apiClient.buildCollectionParam(i.expand,"multi"),nextPage:i.nextPage,previousPage:i.previousPage},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getAuthorizationRoleUsers(e,i){if(i=i||{},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:i.pageSize,pageNumber:i.pageNumber},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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:i.includeDuplicates},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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"],i.customHeaders)}patchAuthorizationRole(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "roleId" when calling patchAuthorizationRole';if(i==null)throw'Missing the required parameter "body" when calling patchAuthorizationRole';return this.apiClient.callApi("/api/v2/authorization/roles/{roleId}","PATCH",{roleId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchAuthorizationSettings(e,i){if(i=i||{},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"],i.customHeaders)}postAuthorizationDivisionObject(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "divisionId" when calling postAuthorizationDivisionObject';if(i==null||i==="")throw'Missing the required parameter "objectType" when calling postAuthorizationDivisionObject';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postAuthorizationDivisionRestore(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "divisionId" when calling postAuthorizationDivisionRestore';if(i==null)throw'Missing the required parameter "body" when calling postAuthorizationDivisionRestore';return this.apiClient.callApi("/api/v2/authorization/divisions/{divisionId}/restore","POST",{divisionId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postAuthorizationDivisions(e,i){if(i=i||{},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"],i.customHeaders)}postAuthorizationPoliciesTarget(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "targetName" when calling postAuthorizationPoliciesTarget';if(i==null)throw'Missing the required parameter "body" when calling postAuthorizationPoliciesTarget';return this.apiClient.callApi("/api/v2/authorization/policies/targets/{targetName}","POST",{targetName:e},{skipLockoutCheck:n.skipLockoutCheck},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postAuthorizationPoliciesTargetValidate(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "targetName" when calling postAuthorizationPoliciesTargetValidate';if(i==null)throw'Missing the required parameter "body" when calling postAuthorizationPoliciesTargetValidate';return this.apiClient.callApi("/api/v2/authorization/policies/targets/{targetName}/validate","POST",{targetName:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postAuthorizationPolicySimulate(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "policyId" when calling postAuthorizationPolicySimulate';if(i==null)throw'Missing the required parameter "body" when calling postAuthorizationPolicySimulate';return this.apiClient.callApi("/api/v2/authorization/policies/{policyId}/simulate","POST",{policyId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postAuthorizationRole(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "roleId" when calling postAuthorizationRole';if(i==null)throw'Missing the required parameter "body" when calling postAuthorizationRole';return this.apiClient.callApi("/api/v2/authorization/roles/{roleId}","POST",{roleId:e},{subjectType:n.subjectType},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postAuthorizationRoleComparedefaultRightRoleId(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "leftRoleId" when calling postAuthorizationRoleComparedefaultRightRoleId';if(i==null||i==="")throw'Missing the required parameter "rightRoleId" when calling postAuthorizationRoleComparedefaultRightRoleId';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postAuthorizationRoles(e,i){if(i=i||{},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"],i.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,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "subjectId" when calling postAuthorizationSubjectBulkadd';if(i==null)throw'Missing the required parameter "body" when calling postAuthorizationSubjectBulkadd';return this.apiClient.callApi("/api/v2/authorization/subjects/{subjectId}/bulkadd","POST",{subjectId:e},{subjectType:n.subjectType},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postAuthorizationSubjectBulkremove(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "subjectId" when calling postAuthorizationSubjectBulkremove';if(i==null)throw'Missing the required parameter "body" when calling postAuthorizationSubjectBulkremove';return this.apiClient.callApi("/api/v2/authorization/subjects/{subjectId}/bulkremove","POST",{subjectId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postAuthorizationSubjectBulkreplace(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "subjectId" when calling postAuthorizationSubjectBulkreplace';if(i==null)throw'Missing the required parameter "body" when calling postAuthorizationSubjectBulkreplace';return this.apiClient.callApi("/api/v2/authorization/subjects/{subjectId}/bulkreplace","POST",{subjectId:e},{subjectType:n.subjectType},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postAuthorizationSubjectDivisionRole(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "subjectId" when calling postAuthorizationSubjectDivisionRole';if(i==null||i==="")throw'Missing the required parameter "divisionId" when calling postAuthorizationSubjectDivisionRole';if(n==null||n==="")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:i,roleId:n},{subjectType:a.subjectType},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}putAuthorizationDivision(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "divisionId" when calling putAuthorizationDivision';if(i==null)throw'Missing the required parameter "body" when calling putAuthorizationDivision';return this.apiClient.callApi("/api/v2/authorization/divisions/{divisionId}","PUT",{divisionId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putAuthorizationPoliciesTarget(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "targetName" when calling putAuthorizationPoliciesTarget';if(i==null)throw'Missing the required parameter "body" when calling putAuthorizationPoliciesTarget';return this.apiClient.callApi("/api/v2/authorization/policies/targets/{targetName}","PUT",{targetName:e},{skipLockoutCheck:n.skipLockoutCheck},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putAuthorizationPolicy(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "policyId" when calling putAuthorizationPolicy';if(i==null)throw'Missing the required parameter "body" when calling putAuthorizationPolicy';return this.apiClient.callApi("/api/v2/authorization/policies/{policyId}","PUT",{policyId:e},{skipLockoutCheck:n.skipLockoutCheck},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putAuthorizationRole(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "roleId" when calling putAuthorizationRole';if(i==null)throw'Missing the required parameter "body" when calling putAuthorizationRole';return this.apiClient.callApi("/api/v2/authorization/roles/{roleId}","PUT",{roleId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putAuthorizationRoleUsersAdd(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "roleId" when calling putAuthorizationRoleUsersAdd';if(i==null)throw'Missing the required parameter "body" when calling putAuthorizationRoleUsersAdd';return this.apiClient.callApi("/api/v2/authorization/roles/{roleId}/users/add","PUT",{roleId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putAuthorizationRoleUsersRemove(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "roleId" when calling putAuthorizationRoleUsersRemove';if(i==null)throw'Missing the required parameter "body" when calling putAuthorizationRoleUsersRemove';return this.apiClient.callApi("/api/v2/authorization/roles/{roleId}/users/remove","PUT",{roleId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putAuthorizationRolesDefault(e,i){if(i=i||{},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"],i.customHeaders)}putAuthorizationRolesSettings(e,i){if(i=i||{},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"],i.customHeaders)}putUserRoles(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "subjectId" when calling putUserRoles';if(i==null)throw'Missing the required parameter "body" when calling putUserRoles';return this.apiClient.callApi("/api/v2/users/{subjectId}/roles","PUT",{subjectId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}},IA=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)}},zA=class{constructor(e){this.apiClient=e||q.instance}getBillingContract(e,i){if(i=i||{},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"],i.customHeaders)}getBillingContractBillingperiod(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "contractId" when calling getBillingContractBillingperiod';if(i==null||i==="")throw'Missing the required parameter "billingPeriodId" when calling getBillingContractBillingperiod';return this.apiClient.callApi("/api/v2/billing/contracts/{contractId}/billingperiods/{billingPeriodId}","GET",{contractId:e,billingPeriodId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.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,i){if(i=i||{},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"],i.customHeaders)}getBillingContractsInvoiceLines(e,i){if(i=i||{},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:i.before,after:i.after,pageSize:i.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i,n){if(n=n||{},e==null)throw'Missing the required parameter "startDate" when calling getBillingReportsBillableusage';if(i==null)throw'Missing the required parameter "endDate" when calling getBillingReportsBillableusage';return this.apiClient.callApi("/api/v2/billing/reports/billableusage","GET",{},{startDate:e,endDate:i},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getBillingTrusteebillingoverviewTrustorOrgId(e,i){if(i=i||{},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:i.billingPeriodIndex},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}},DA=class{constructor(e){this.apiClient=e||q.instance}deleteBusinessrulesDecisiontable(e,i){if(i=i||{},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:i.forceDelete},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}deleteBusinessrulesDecisiontableVersion(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "tableId" when calling deleteBusinessrulesDecisiontableVersion';if(i==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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteBusinessrulesDecisiontableVersionRow(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "tableId" when calling deleteBusinessrulesDecisiontableVersionRow';if(i==null)throw'Missing the required parameter "tableVersion" when calling deleteBusinessrulesDecisiontableVersionRow';if(n==null||n==="")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:i,rowId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}deleteBusinessrulesSchema(e,i){if(i=i||{},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"],i.customHeaders)}getBusinessrulesDecisiontable(e,i){if(i=i||{},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"],i.customHeaders)}getBusinessrulesDecisiontableVersion(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "tableId" when calling getBusinessrulesDecisiontableVersion';if(i==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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getBusinessrulesDecisiontableVersionRow(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "tableId" when calling getBusinessrulesDecisiontableVersionRow';if(i==null)throw'Missing the required parameter "tableVersion" when calling getBusinessrulesDecisiontableVersionRow';if(n==null||n==="")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:i,rowId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getBusinessrulesDecisiontableVersionRows(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "tableId" when calling getBusinessrulesDecisiontableVersionRows';if(i==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:i},{pageNumber:n.pageNumber,pageSize:n.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getBusinessrulesDecisiontableVersions(e,i){if(i=i||{},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:i.after,pageSize:i.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "tableId" when calling patchBusinessrulesDecisiontable';if(i==null)throw'Missing the required parameter "body" when calling patchBusinessrulesDecisiontable';return this.apiClient.callApi("/api/v2/businessrules/decisiontables/{tableId}","PATCH",{tableId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchBusinessrulesDecisiontableVersion(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "tableId" when calling patchBusinessrulesDecisiontableVersion';if(i==null)throw'Missing the required parameter "tableVersion" when calling patchBusinessrulesDecisiontableVersion';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postBusinessrulesDecisiontableExecute(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "tableId" when calling postBusinessrulesDecisiontableExecute';if(i==null)throw'Missing the required parameter "body" when calling postBusinessrulesDecisiontableExecute';return this.apiClient.callApi("/api/v2/businessrules/decisiontables/{tableId}/execute","POST",{tableId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postBusinessrulesDecisiontableVersionCopy(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "tableId" when calling postBusinessrulesDecisiontableVersionCopy';if(i==null)throw'Missing the required parameter "tableVersion" when calling postBusinessrulesDecisiontableVersionCopy';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postBusinessrulesDecisiontableVersionExecute(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "tableId" when calling postBusinessrulesDecisiontableVersionExecute';if(i==null)throw'Missing the required parameter "tableVersion" when calling postBusinessrulesDecisiontableVersionExecute';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postBusinessrulesDecisiontableVersionRows(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "tableId" when calling postBusinessrulesDecisiontableVersionRows';if(i==null)throw'Missing the required parameter "tableVersion" when calling postBusinessrulesDecisiontableVersionRows';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postBusinessrulesDecisiontableVersionRowsSearch(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "tableId" when calling postBusinessrulesDecisiontableVersionRowsSearch';if(i==null)throw'Missing the required parameter "tableVersion" when calling postBusinessrulesDecisiontableVersionRowsSearch';if(n==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:i},{pageNumber:a.pageNumber,pageSize:a.pageSize},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postBusinessrulesDecisiontableVersionSync(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "tableId" when calling postBusinessrulesDecisiontableVersionSync';if(i==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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postBusinessrulesDecisiontableVersions(e,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "tableId" when calling postBusinessrulesDecisiontableVersions';return this.apiClient.callApi("/api/v2/businessrules/decisiontables/{tableId}/versions","POST",{tableId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postBusinessrulesDecisiontables(e,i){if(i=i||{},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"],i.customHeaders)}postBusinessrulesSchemas(e,i){if(i=i||{},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"],i.customHeaders)}putBusinessrulesDecisiontableVersionPublish(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "tableId" when calling putBusinessrulesDecisiontableVersionPublish';if(i==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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putBusinessrulesDecisiontableVersionRow(e,i,n,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "tableId" when calling putBusinessrulesDecisiontableVersionRow';if(i==null)throw'Missing the required parameter "tableVersion" when calling putBusinessrulesDecisiontableVersionRow';if(n==null||n==="")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:i,rowId:n},{},{},{},a,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}putBusinessrulesSchema(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "schemaId" when calling putBusinessrulesSchema';if(i==null)throw'Missing the required parameter "body" when calling putBusinessrulesSchema';return this.apiClient.callApi("/api/v2/businessrules/schemas/{schemaId}","PUT",{schemaId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}},GA=class{constructor(e){this.apiClient=e||q.instance}getCarrierservicesIntegrationsEmergencylocationsMe(e,i){if(i=i||{},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"],i.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)}},$A=class{constructor(e){this.apiClient=e||q.instance}deleteCasemanagementCase(e,i){if(i=i||{},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"],i.customHeaders)}deleteCasemanagementCaseplan(e,i){if(i=i||{},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"],i.customHeaders)}getCasemanagementCase(e,i){if(i=i||{},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:i.expands},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getCasemanagementCaseAssociation(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "caseId" when calling getCasemanagementCaseAssociation';if(i==null||i==="")throw'Missing the required parameter "associationId" when calling getCasemanagementCaseAssociation';return this.apiClient.callApi("/api/v2/casemanagement/cases/{caseId}/associations/{associationId}","GET",{caseId:e,associationId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getCasemanagementCaseAssociations(e,i){if(i=i||{},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:i.before,after:i.after,pageSize:i.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getCasemanagementCaseStage(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "caseId" when calling getCasemanagementCaseStage';if(i==null||i==="")throw'Missing the required parameter "stageId" when calling getCasemanagementCaseStage';return this.apiClient.callApi("/api/v2/casemanagement/cases/{caseId}/stages/{stageId}","GET",{caseId:e,stageId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getCasemanagementCaseStageStep(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "caseId" when calling getCasemanagementCaseStageStep';if(i==null||i==="")throw'Missing the required parameter "stageId" when calling getCasemanagementCaseStageStep';if(n==null||n==="")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:i,stepId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getCasemanagementCaseStageSteps(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "caseId" when calling getCasemanagementCaseStageSteps';if(i==null||i==="")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:i},{before:n.before,after:n.after,pageSize:n.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getCasemanagementCaseStages(e,i){if(i=i||{},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:i.before,after:i.after,pageSize:i.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getCasemanagementCaseTerminateJob(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "caseId" when calling getCasemanagementCaseTerminateJob';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getCasemanagementCaseplan(e,i){if(i=i||{},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"],i.customHeaders)}getCasemanagementCaseplanVersion(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "caseplanId" when calling getCasemanagementCaseplanVersion';if(i==null||i==="")throw'Missing the required parameter "versionId" when calling getCasemanagementCaseplanVersion';return this.apiClient.callApi("/api/v2/casemanagement/caseplans/{caseplanId}/versions/{versionId}","GET",{caseplanId:e,versionId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getCasemanagementCaseplanVersionDataschemas(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "caseplanId" when calling getCasemanagementCaseplanVersionDataschemas';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getCasemanagementCaseplanVersionIntakesettings(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "caseplanId" when calling getCasemanagementCaseplanVersionIntakesettings';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getCasemanagementCaseplanVersionStageplan(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "caseplanId" when calling getCasemanagementCaseplanVersionStageplan';if(i==null||i==="")throw'Missing the required parameter "versionId" when calling getCasemanagementCaseplanVersionStageplan';if(n==null||n==="")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:i,stageplanId:n},{expands:this.apiClient.buildCollectionParam(a.expands,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getCasemanagementCaseplanVersionStageplanStepplan(e,i,n,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "caseplanId" when calling getCasemanagementCaseplanVersionStageplanStepplan';if(i==null||i==="")throw'Missing the required parameter "versionId" when calling getCasemanagementCaseplanVersionStageplanStepplan';if(n==null||n==="")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:i,stageplanId:n,stepplanId:a},{expands:this.apiClient.buildCollectionParam(r.expands,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}getCasemanagementCaseplanVersionStageplanStepplans(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "caseplanId" when calling getCasemanagementCaseplanVersionStageplanStepplans';if(i==null||i==="")throw'Missing the required parameter "versionId" when calling getCasemanagementCaseplanVersionStageplanStepplans';if(n==null||n==="")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:i,stageplanId:n},{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,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "caseplanId" when calling getCasemanagementCaseplanVersionStageplans';if(i==null||i==="")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:i},{before:n.before,after:n.after,pageSize:n.pageSize,expands:this.apiClient.buildCollectionParam(n.expands,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.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,i){if(i=i||{},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:i.after,pageSize:i.pageSize,divisionIds:i.divisionIds,expands:this.apiClient.buildCollectionParam(i.expands,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getCasemanagementCasesReference(e,i){if(i=i||{},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:i.expands},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}patchCasemanagementCaseDatedue(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "caseId" when calling patchCasemanagementCaseDatedue';if(i==null)throw'Missing the required parameter "body" when calling patchCasemanagementCaseDatedue';return this.apiClient.callApi("/api/v2/casemanagement/cases/{caseId}/datedue","PATCH",{caseId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchCasemanagementCasePriority(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "caseId" when calling patchCasemanagementCasePriority';if(i==null)throw'Missing the required parameter "body" when calling patchCasemanagementCasePriority';return this.apiClient.callApi("/api/v2/casemanagement/cases/{caseId}/priority","PATCH",{caseId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchCasemanagementCaseSummary(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "caseId" when calling patchCasemanagementCaseSummary';if(i==null)throw'Missing the required parameter "body" when calling patchCasemanagementCaseSummary';return this.apiClient.callApi("/api/v2/casemanagement/cases/{caseId}/summary","PATCH",{caseId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchCasemanagementCaseplan(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "caseplanId" when calling patchCasemanagementCaseplan';if(i==null)throw'Missing the required parameter "body" when calling patchCasemanagementCaseplan';return this.apiClient.callApi("/api/v2/casemanagement/caseplans/{caseplanId}","PATCH",{caseplanId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchCasemanagementCaseplanStageplan(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "caseplanId" when calling patchCasemanagementCaseplanStageplan';if(i==null||i==="")throw'Missing the required parameter "stageplanId" when calling patchCasemanagementCaseplanStageplan';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchCasemanagementCaseplanStageplanStepplan(e,i,n,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "caseplanId" when calling patchCasemanagementCaseplanStageplanStepplan';if(i==null||i==="")throw'Missing the required parameter "stageplanId" when calling patchCasemanagementCaseplanStageplanStepplan';if(n==null||n==="")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:i,stepplanId:n},{},{},{},a,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}postCasemanagementCaseAssociations(e,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "caseId" when calling postCasemanagementCaseAssociations';return this.apiClient.callApi("/api/v2/casemanagement/cases/{caseId}/associations","POST",{caseId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postCasemanagementCaseTerminateJobs(e,i){if(i=i||{},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"],i.customHeaders)}postCasemanagementCaseplanPublish(e,i){if(i=i||{},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"],i.customHeaders)}postCasemanagementCaseplanVersions(e,i){if(i=i||{},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"],i.customHeaders)}postCasemanagementCaseplans(e,i){if(i=i||{},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"],i.customHeaders)}postCasemanagementCaseplansQuery(e,i){if(i=i||{},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"],i.customHeaders)}postCasemanagementCases(e,i){if(i=i||{},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"],i.customHeaders)}postCasemanagementCasesAssociationsQuery(e){return e=e||{},this.apiClient.callApi("/api/v2/casemanagement/cases/associations/query","POST",{},{},{},{},e.body,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}putCasemanagementCaseplanIntakesettings(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "caseplanId" when calling putCasemanagementCaseplanIntakesettings';if(i==null)throw'Missing the required parameter "body" when calling putCasemanagementCaseplanIntakesettings';return this.apiClient.callApi("/api/v2/casemanagement/caseplans/{caseplanId}/intakesettings","PUT",{caseplanId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}},NA=class{constructor(e){this.apiClient=e||q.instance}deleteChatsRoomMessage(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "roomJid" when calling deleteChatsRoomMessage';if(i==null||i==="")throw'Missing the required parameter "messageId" when calling deleteChatsRoomMessage';return this.apiClient.callApi("/api/v2/chats/rooms/{roomJid}/messages/{messageId}","DELETE",{roomJid:e,messageId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteChatsRoomMessagesPin(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "roomJid" when calling deleteChatsRoomMessagesPin';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteChatsRoomParticipant(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "roomJid" when calling deleteChatsRoomParticipant';if(i==null||i==="")throw'Missing the required parameter "userId" when calling deleteChatsRoomParticipant';return this.apiClient.callApi("/api/v2/chats/rooms/{roomJid}/participants/{userId}","DELETE",{roomJid:e,userId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteChatsUserMessage(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling deleteChatsUserMessage';if(i==null||i==="")throw'Missing the required parameter "messageId" when calling deleteChatsUserMessage';return this.apiClient.callApi("/api/v2/chats/users/{userId}/messages/{messageId}","DELETE",{userId:e,messageId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteChatsUserMessagesPin(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling deleteChatsUserMessagesPin';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.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,i){if(i=i||{},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"],i.customHeaders)}getChatsRoom(e,i){if(i=i||{},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"],i.customHeaders)}getChatsRoomMessage(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "roomJid" when calling getChatsRoomMessage';if(i==null||i==="")throw'Missing the required parameter "messageIds" when calling getChatsRoomMessage';return this.apiClient.callApi("/api/v2/chats/rooms/{roomJid}/messages/{messageIds}","GET",{roomJid:e,messageIds:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getChatsRoomMessages(e,i){if(i=i||{},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:i.limit,before:i.before,after:i.after,excludeMetadata:i.excludeMetadata},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getChatsRoomParticipant(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "roomJid" when calling getChatsRoomParticipant';if(i==null||i==="")throw'Missing the required parameter "participantJid" when calling getChatsRoomParticipant';return this.apiClient.callApi("/api/v2/chats/rooms/{roomJid}/participants/{participantJid}","GET",{roomJid:e,participantJid:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getChatsRoomParticipants(e,i){if(i=i||{},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:i.notify},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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:i.limit,before:i.before,after:i.after,excludeMetadata:i.excludeMetadata},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getChatsUser(e,i){if(i=i||{},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"],i.customHeaders)}getChatsUserMessage(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling getChatsUserMessage';if(i==null||i==="")throw'Missing the required parameter "messageIds" when calling getChatsUserMessage';return this.apiClient.callApi("/api/v2/chats/users/{userId}/messages/{messageIds}","GET",{userId:e,messageIds:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getChatsUserMessages(e,i){if(i=i||{},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:i.limit,before:i.before,after:i.after,excludeMetadata:i.excludeMetadata},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getChatsUserSettings(e,i){if(i=i||{},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"],i.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,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "roomJid" when calling patchChatsRoom';if(i==null)throw'Missing the required parameter "body" when calling patchChatsRoom';return this.apiClient.callApi("/api/v2/chats/rooms/{roomJid}","PATCH",{roomJid:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchChatsRoomMessage(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "roomJid" when calling patchChatsRoomMessage';if(i==null||i==="")throw'Missing the required parameter "messageId" when calling patchChatsRoomMessage';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchChatsSettings(e,i){if(i=i||{},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"],i.customHeaders)}patchChatsUserMessage(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "userId" when calling patchChatsUserMessage';if(i==null||i==="")throw'Missing the required parameter "messageId" when calling patchChatsUserMessage';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchChatsUserSettings(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling patchChatsUserSettings';if(i==null)throw'Missing the required parameter "body" when calling patchChatsUserSettings';return this.apiClient.callApi("/api/v2/chats/users/{userId}/settings","PATCH",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchChatsUsersMeSettings(e,i){if(i=i||{},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"],i.customHeaders)}postChatsRoomMessages(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "roomJid" when calling postChatsRoomMessages';if(i==null)throw'Missing the required parameter "body" when calling postChatsRoomMessages';return this.apiClient.callApi("/api/v2/chats/rooms/{roomJid}/messages","POST",{roomJid:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postChatsRoomMessagesPins(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "roomJid" when calling postChatsRoomMessagesPins';if(i==null)throw'Missing the required parameter "body" when calling postChatsRoomMessagesPins';return this.apiClient.callApi("/api/v2/chats/rooms/{roomJid}/messages/pins","POST",{roomJid:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postChatsRoomParticipant(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "roomJid" when calling postChatsRoomParticipant';if(i==null||i==="")throw'Missing the required parameter "userId" when calling postChatsRoomParticipant';return this.apiClient.callApi("/api/v2/chats/rooms/{roomJid}/participants/{userId}","POST",{roomJid:e,userId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postChatsRooms(e,i){if(i=i||{},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"],i.customHeaders)}postChatsUserMessages(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling postChatsUserMessages';if(i==null)throw'Missing the required parameter "body" when calling postChatsUserMessages';return this.apiClient.callApi("/api/v2/chats/users/{userId}/messages","POST",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postChatsUserMessagesPins(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling postChatsUserMessagesPins';if(i==null)throw'Missing the required parameter "body" when calling postChatsUserMessagesPins';return this.apiClient.callApi("/api/v2/chats/users/{userId}/messages/pins","POST",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postChatsUsersMeSettings(e,i){if(i=i||{},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"],i.customHeaders)}putChatsMessageReactions(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "messageId" when calling putChatsMessageReactions';if(i==null)throw'Missing the required parameter "body" when calling putChatsMessageReactions';return this.apiClient.callApi("/api/v2/chats/messages/{messageId}/reactions","PUT",{messageId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putChatsSettings(e,i){if(i=i||{},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"],i.customHeaders)}},UA=class{constructor(e){this.apiClient=e||q.instance}deleteCoachingAppointment(e,i){if(i=i||{},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"],i.customHeaders)}deleteCoachingAppointmentAnnotation(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "appointmentId" when calling deleteCoachingAppointmentAnnotation';if(i==null||i==="")throw'Missing the required parameter "annotationId" when calling deleteCoachingAppointmentAnnotation';return this.apiClient.callApi("/api/v2/coaching/appointments/{appointmentId}/annotations/{annotationId}","DELETE",{appointmentId:e,annotationId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getCoachingAppointment(e,i){if(i=i||{},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"],i.customHeaders)}getCoachingAppointmentAnnotation(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "appointmentId" when calling getCoachingAppointmentAnnotation';if(i==null||i==="")throw'Missing the required parameter "annotationId" when calling getCoachingAppointmentAnnotation';return this.apiClient.callApi("/api/v2/coaching/appointments/{appointmentId}/annotations/{annotationId}","GET",{appointmentId:e,annotationId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getCoachingAppointmentAnnotations(e,i){if(i=i||{},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:i.pageNumber,pageSize:i.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getCoachingAppointmentStatuses(e,i){if(i=i||{},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:i.pageNumber,pageSize:i.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getCoachingAppointments(e,i){if(i=i||{},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:i.interval,pageNumber:i.pageNumber,pageSize:i.pageSize,statuses:this.apiClient.buildCollectionParam(i.statuses,"multi"),facilitatorIds:this.apiClient.buildCollectionParam(i.facilitatorIds,"multi"),sortOrder:i.sortOrder,relationships:this.apiClient.buildCollectionParam(i.relationships,"multi"),completionInterval:i.completionInterval,overdue:i.overdue,intervalCondition:i.intervalCondition},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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"],i.customHeaders)}patchCoachingAppointment(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "appointmentId" when calling patchCoachingAppointment';if(i==null)throw'Missing the required parameter "body" when calling patchCoachingAppointment';return this.apiClient.callApi("/api/v2/coaching/appointments/{appointmentId}","PATCH",{appointmentId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchCoachingAppointmentAnnotation(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "appointmentId" when calling patchCoachingAppointmentAnnotation';if(i==null||i==="")throw'Missing the required parameter "annotationId" when calling patchCoachingAppointmentAnnotation';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchCoachingAppointmentStatus(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "appointmentId" when calling patchCoachingAppointmentStatus';if(i==null)throw'Missing the required parameter "body" when calling patchCoachingAppointmentStatus';return this.apiClient.callApi("/api/v2/coaching/appointments/{appointmentId}/status","PATCH",{appointmentId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchCoachingNotification(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "notificationId" when calling patchCoachingNotification';if(i==null)throw'Missing the required parameter "body" when calling patchCoachingNotification';return this.apiClient.callApi("/api/v2/coaching/notifications/{notificationId}","PATCH",{notificationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postCoachingAppointmentAnnotations(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "appointmentId" when calling postCoachingAppointmentAnnotations';if(i==null)throw'Missing the required parameter "body" when calling postCoachingAppointmentAnnotations';return this.apiClient.callApi("/api/v2/coaching/appointments/{appointmentId}/annotations","POST",{appointmentId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postCoachingAppointmentConversations(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "appointmentId" when calling postCoachingAppointmentConversations';if(i==null)throw'Missing the required parameter "body" when calling postCoachingAppointmentConversations';return this.apiClient.callApi("/api/v2/coaching/appointments/{appointmentId}/conversations","POST",{appointmentId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postCoachingAppointments(e,i){if(i=i||{},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"],i.customHeaders)}postCoachingAppointmentsAggregatesQuery(e,i){if(i=i||{},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"],i.customHeaders)}postCoachingScheduleslotsJobs(e,i){if(i=i||{},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"],i.customHeaders)}postCoachingScheduleslotsQuery(e,i){if(i=i||{},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"],i.customHeaders)}},LA=class{constructor(e){this.apiClient=e||q.instance}deleteContentmanagementDocument(e,i){if(i=i||{},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:i.override},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}deleteContentmanagementShare(e,i){if(i=i||{},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"],i.customHeaders)}deleteContentmanagementStatusStatusId(e,i){if(i=i||{},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"],i.customHeaders)}deleteContentmanagementWorkspace(e,i){if(i=i||{},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:i.moveChildrenToWorkspaceId},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}deleteContentmanagementWorkspaceMember(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "workspaceId" when calling deleteContentmanagementWorkspaceMember';if(i==null||i==="")throw'Missing the required parameter "memberId" when calling deleteContentmanagementWorkspaceMember';return this.apiClient.callApi("/api/v2/contentmanagement/workspaces/{workspaceId}/members/{memberId}","DELETE",{workspaceId:e,memberId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteContentmanagementWorkspaceTagvalue(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "workspaceId" when calling deleteContentmanagementWorkspaceTagvalue';if(i==null||i==="")throw'Missing the required parameter "tagId" when calling deleteContentmanagementWorkspaceTagvalue';return this.apiClient.callApi("/api/v2/contentmanagement/workspaces/{workspaceId}/tagvalues/{tagId}","DELETE",{workspaceId:e,tagId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getContentmanagementDocument(e,i){if(i=i||{},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(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getContentmanagementDocumentContent(e,i){if(i=i||{},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:i.disposition,contentType:i.contentType},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getContentmanagementDocuments(e,i){if(i=i||{},e==null)throw'Missing the required parameter "workspaceId" when calling getContentmanagementDocuments';return this.apiClient.callApi("/api/v2/contentmanagement/documents","GET",{},{workspaceId:e,name:i.name,expand:this.apiClient.buildCollectionParam(i.expand,"multi"),pageSize:i.pageSize,pageNumber:i.pageNumber,sortBy:i.sortBy,sortOrder:i.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getContentmanagementQuery(e,i){if(i=i||{},e==null)throw'Missing the required parameter "queryPhrase" when calling getContentmanagementQuery';return this.apiClient.callApi("/api/v2/contentmanagement/query","GET",{},{pageSize:i.pageSize,pageNumber:i.pageNumber,sortBy:i.sortBy,sortOrder:i.sortOrder,queryPhrase:e,expand:this.apiClient.buildCollectionParam(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getContentmanagementSecurityprofile(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getContentmanagementSharedSharedId(e,i){if(i=i||{},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:i.disposition,contentType:i.contentType,expand:i.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getContentmanagementWorkspaceDocuments(e,i){if(i=i||{},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(i.expand,"multi"),pageSize:i.pageSize,pageNumber:i.pageNumber,sortBy:i.sortBy,sortOrder:i.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getContentmanagementWorkspaceMember(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "workspaceId" when calling getContentmanagementWorkspaceMember';if(i==null||i==="")throw'Missing the required parameter "memberId" when calling getContentmanagementWorkspaceMember';return this.apiClient.callApi("/api/v2/contentmanagement/workspaces/{workspaceId}/members/{memberId}","GET",{workspaceId:e,memberId:i},{expand:this.apiClient.buildCollectionParam(n.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getContentmanagementWorkspaceMembers(e,i){if(i=i||{},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:i.pageSize,pageNumber:i.pageNumber,expand:this.apiClient.buildCollectionParam(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getContentmanagementWorkspaceTagvalue(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "workspaceId" when calling getContentmanagementWorkspaceTagvalue';if(i==null||i==="")throw'Missing the required parameter "tagId" when calling getContentmanagementWorkspaceTagvalue';return this.apiClient.callApi("/api/v2/contentmanagement/workspaces/{workspaceId}/tagvalues/{tagId}","GET",{workspaceId:e,tagId:i},{expand:this.apiClient.buildCollectionParam(n.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getContentmanagementWorkspaceTagvalues(e,i){if(i=i||{},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:i.value,pageSize:i.pageSize,pageNumber:i.pageNumber,expand:this.apiClient.buildCollectionParam(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "documentId" when calling postContentmanagementDocument';if(i==null)throw'Missing the required parameter "body" when calling postContentmanagementDocument';return this.apiClient.callApi("/api/v2/contentmanagement/documents/{documentId}","POST",{documentId:e},{expand:n.expand,override:n.override},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postContentmanagementDocumentContent(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "documentId" when calling postContentmanagementDocumentContent';if(i==null)throw'Missing the required parameter "body" when calling postContentmanagementDocumentContent';return this.apiClient.callApi("/api/v2/contentmanagement/documents/{documentId}/content","POST",{documentId:e},{override:n.override},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postContentmanagementDocuments(e,i){if(i=i||{},e==null)throw'Missing the required parameter "body" when calling postContentmanagementDocuments';return this.apiClient.callApi("/api/v2/contentmanagement/documents","POST",{},{copySource:i.copySource,moveSource:i.moveSource,override:i.override},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postContentmanagementQuery(e,i){if(i=i||{},e==null)throw'Missing the required parameter "body" when calling postContentmanagementQuery';return this.apiClient.callApi("/api/v2/contentmanagement/query","POST",{},{expand:i.expand},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postContentmanagementShares(e,i){if(i=i||{},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"],i.customHeaders)}postContentmanagementWorkspaceTagvalues(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "workspaceId" when calling postContentmanagementWorkspaceTagvalues';if(i==null)throw'Missing the required parameter "body" when calling postContentmanagementWorkspaceTagvalues';return this.apiClient.callApi("/api/v2/contentmanagement/workspaces/{workspaceId}/tagvalues","POST",{workspaceId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postContentmanagementWorkspaceTagvaluesQuery(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "workspaceId" when calling postContentmanagementWorkspaceTagvaluesQuery';if(i==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(n.expand,"multi")},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postContentmanagementWorkspaces(e,i){if(i=i||{},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"],i.customHeaders)}putContentmanagementWorkspace(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "workspaceId" when calling putContentmanagementWorkspace';if(i==null)throw'Missing the required parameter "body" when calling putContentmanagementWorkspace';return this.apiClient.callApi("/api/v2/contentmanagement/workspaces/{workspaceId}","PUT",{workspaceId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putContentmanagementWorkspaceMember(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "workspaceId" when calling putContentmanagementWorkspaceMember';if(i==null||i==="")throw'Missing the required parameter "memberId" when calling putContentmanagementWorkspaceMember';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}putContentmanagementWorkspaceTagvalue(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "workspaceId" when calling putContentmanagementWorkspaceTagvalue';if(i==null||i==="")throw'Missing the required parameter "tagId" when calling putContentmanagementWorkspaceTagvalue';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}},WA=class{constructor(e){this.apiClient=e||q.instance}deleteAnalyticsConversationsAggregatesJob(e,i){if(i=i||{},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"],i.customHeaders)}deleteAnalyticsConversationsDetailsJob(e,i){if(i=i||{},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"],i.customHeaders)}deleteConversation(e,i){if(i=i||{},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"],i.customHeaders)}deleteConversationCustomattribute(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling deleteConversationCustomattribute';if(i==null||i==="")throw'Missing the required parameter "attributesId" when calling deleteConversationCustomattribute';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/customattributes/{attributesId}","DELETE",{conversationId:e,attributesId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteConversationParticipantCode(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling deleteConversationParticipantCode';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling deleteConversationParticipantCode';if(n==null||n==="")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:i,addCommunicationCode:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}deleteConversationParticipantFlaggedreason(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling deleteConversationParticipantFlaggedreason';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling deleteConversationParticipantFlaggedreason';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/participants/{participantId}/flaggedreason","DELETE",{conversationId:e,participantId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteConversationsCallParticipantCommunicationPostflowaction(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling deleteConversationsCallParticipantCommunicationPostflowaction';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling deleteConversationsCallParticipantCommunicationPostflowaction';if(n==null||n==="")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:i,communicationId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}deleteConversationsCallParticipantConsult(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling deleteConversationsCallParticipantConsult';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteConversationsEmailMessagesDraftAttachment(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling deleteConversationsEmailMessagesDraftAttachment';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteConversationsMessagesCachedmediaCachedMediaItemId(e,i){if(i=i||{},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"],i.customHeaders)}deleteConversationsMessagingIntegrationsAppleIntegrationId(e,i){if(i=i||{},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"],i.customHeaders)}deleteConversationsMessagingIntegrationsFacebookIntegrationId(e,i){if(i=i||{},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"],i.customHeaders)}deleteConversationsMessagingIntegrationsInstagramIntegrationId(e,i){if(i=i||{},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"],i.customHeaders)}deleteConversationsMessagingIntegrationsOpenExtensionsGooglebusinessprofileIntegrationId(e,i){if(i=i||{},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"],i.customHeaders)}deleteConversationsMessagingIntegrationsOpenIntegrationId(e,i){if(i=i||{},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"],i.customHeaders)}deleteConversationsMessagingIntegrationsTwitterIntegrationId(e,i){if(i=i||{},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"],i.customHeaders)}deleteConversationsMessagingIntegrationsWhatsappIntegrationId(e,i){if(i=i||{},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"],i.customHeaders)}deleteConversationsMessagingSetting(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getAnalyticsConversationDetails(e,i){if(i=i||{},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"],i.customHeaders)}getAnalyticsConversationsAggregatesJob(e,i){if(i=i||{},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"],i.customHeaders)}getAnalyticsConversationsAggregatesJobResults(e,i){if(i=i||{},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:i.cursor},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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"],i.customHeaders)}getAnalyticsConversationsDetailsJobResults(e,i){if(i=i||{},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:i.cursor,pageSize:i.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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"],i.customHeaders)}getConversationAssistantCopilotcontext(e,i){if(i=i||{},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"],i.customHeaders)}getConversationCommunicationAgentchecklist(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationCommunicationAgentchecklist';if(i==null||i==="")throw'Missing the required parameter "communicationId" when calling getConversationCommunicationAgentchecklist';if(n==null||n==="")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:i,agentChecklistId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getConversationCommunicationAgentchecklistJob(e,i,n,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationCommunicationAgentchecklistJob';if(i==null||i==="")throw'Missing the required parameter "communicationId" when calling getConversationCommunicationAgentchecklistJob';if(n==null||n==="")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:i,agentChecklistId:n,jobId:a},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}getConversationCommunicationAgentchecklists(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationCommunicationAgentchecklists';if(i==null||i==="")throw'Missing the required parameter "communicationId" when calling getConversationCommunicationAgentchecklists';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/communications/{communicationId}/agentchecklists","GET",{conversationId:e,communicationId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getConversationCommunicationInternalmessage(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationCommunicationInternalmessage';if(i==null||i==="")throw'Missing the required parameter "communicationId" when calling getConversationCommunicationInternalmessage';if(n==null||n==="")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:i,messageId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getConversationCommunicationInternalmessages(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationCommunicationInternalmessages';if(i==null||i==="")throw'Missing the required parameter "communicationId" when calling getConversationCommunicationInternalmessages';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/communications/{communicationId}/internalmessages","GET",{conversationId:e,communicationId:i},{pageSize:n.pageSize,pageNumber:n.pageNumber},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getConversationCustomattribute(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationCustomattribute';if(i==null||i==="")throw'Missing the required parameter "attributesId" when calling getConversationCustomattribute';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/customattributes/{attributesId}","GET",{conversationId:e,attributesId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getConversationCustomattributes(e,i){if(i=i||{},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"],i.customHeaders)}getConversationParticipantSecureivrsession(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationParticipantSecureivrsession';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling getConversationParticipantSecureivrsession';if(n==null||n==="")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:i,secureSessionId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getConversationParticipantSecureivrsessions(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationParticipantSecureivrsessions';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling getConversationParticipantSecureivrsessions';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/participants/{participantId}/secureivrsessions","GET",{conversationId:e,participantId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getConversationParticipantWrapup(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationParticipantWrapup';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling getConversationParticipantWrapup';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/participants/{participantId}/wrapup","GET",{conversationId:e,participantId:i},{provisional:n.provisional},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getConversationParticipantWrapupcodes(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationParticipantWrapupcodes';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling getConversationParticipantWrapupcodes';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/participants/{participantId}/wrapupcodes","GET",{conversationId:e,participantId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getConversationSecureattributes(e,i){if(i=i||{},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"],i.customHeaders)}getConversationSuggestion(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationSuggestion';if(i==null||i==="")throw'Missing the required parameter "suggestionId" when calling getConversationSuggestion';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/suggestions/{suggestionId}","GET",{conversationId:e,suggestionId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getConversationSuggestions(e,i){if(i=i||{},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:i.before,after:i.after,pageSize:i.pageSize,type:i.type,state:i.state},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getConversationSummaries(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getConversationsCallParticipantCommunicationWrapup(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationsCallParticipantCommunicationWrapup';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling getConversationsCallParticipantCommunicationWrapup';if(n==null||n==="")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:i,communicationId:n},{provisional:a.provisional},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getConversationsCallParticipantWrapup(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationsCallParticipantWrapup';if(i==null||i==="")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:i},{provisional:n.provisional},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getConversationsCallParticipantWrapupcodes(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationsCallParticipantWrapupcodes';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getConversationsCallback(e,i){if(i=i||{},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"],i.customHeaders)}getConversationsCallbackParticipantCommunicationWrapup(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationsCallbackParticipantCommunicationWrapup';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling getConversationsCallbackParticipantCommunicationWrapup';if(n==null||n==="")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:i,communicationId:n},{provisional:a.provisional},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getConversationsCallbackParticipantWrapup(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationsCallbackParticipantWrapup';if(i==null||i==="")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:i},{provisional:n.provisional},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getConversationsCallbackParticipantWrapupcodes(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationsCallbackParticipantWrapupcodes';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getConversationsCallbacks(e){return e=e||{},this.apiClient.callApi("/api/v2/conversations/callbacks","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getConversationsCalls(e){return e=e||{},this.apiClient.callApi("/api/v2/conversations/calls","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getConversationsCallsHistory(e){return e=e||{},this.apiClient.callApi("/api/v2/conversations/calls/history","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,interval:e.interval,expand:this.apiClient.buildCollectionParam(e.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getConversationsCallsMaximumconferenceparties(e){return e=e||{},this.apiClient.callApi("/api/v2/conversations/calls/maximumconferenceparties","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getConversationsChat(e,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationsChat';return this.apiClient.callApi("/api/v2/conversations/chats/{conversationId}","GET",{conversationId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getConversationsChatMessage(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationsChatMessage';if(i==null||i==="")throw'Missing the required parameter "messageId" when calling getConversationsChatMessage';return this.apiClient.callApi("/api/v2/conversations/chats/{conversationId}/messages/{messageId}","GET",{conversationId:e,messageId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getConversationsChatMessages(e,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationsChatMessages';return this.apiClient.callApi("/api/v2/conversations/chats/{conversationId}/messages","GET",{conversationId:e},{after:i.after,before:i.before,sortOrder:i.sortOrder,maxResults:i.maxResults},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getConversationsChatParticipantCommunicationWrapup(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationsChatParticipantCommunicationWrapup';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling getConversationsChatParticipantCommunicationWrapup';if(n==null||n==="")throw'Missing the required parameter "communicationId" when calling getConversationsChatParticipantCommunicationWrapup';return this.apiClient.callApi("/api/v2/conversations/chats/{conversationId}/participants/{participantId}/communications/{communicationId}/wrapup","GET",{conversationId:e,participantId:i,communicationId:n},{provisional:a.provisional},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getConversationsChatParticipantWrapup(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationsChatParticipantWrapup';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling getConversationsChatParticipantWrapup';return this.apiClient.callApi("/api/v2/conversations/chats/{conversationId}/participants/{participantId}/wrapup","GET",{conversationId:e,participantId:i},{provisional:n.provisional},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getConversationsChatParticipantWrapupcodes(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationsChatParticipantWrapupcodes';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling getConversationsChatParticipantWrapupcodes';return this.apiClient.callApi("/api/v2/conversations/chats/{conversationId}/participants/{participantId}/wrapupcodes","GET",{conversationId:e,participantId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getConversationsChats(e){return e=e||{},this.apiClient.callApi("/api/v2/conversations/chats","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getConversationsCobrowsesession(e,i){if(i=i||{},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"],i.customHeaders)}getConversationsCobrowsesessionParticipantCommunicationWrapup(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationsCobrowsesessionParticipantCommunicationWrapup';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling getConversationsCobrowsesessionParticipantCommunicationWrapup';if(n==null||n==="")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:i,communicationId:n},{provisional:a.provisional},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getConversationsCobrowsesessionParticipantWrapup(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationsCobrowsesessionParticipantWrapup';if(i==null||i==="")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:i},{provisional:n.provisional},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getConversationsCobrowsesessionParticipantWrapupcodes(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationsCobrowsesessionParticipantWrapupcodes';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.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,i){if(i=i||{},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"],i.customHeaders)}getConversationsCustomattributesSchemaVersion(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "schemaId" when calling getConversationsCustomattributesSchemaVersion';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getConversationsCustomattributesSchemaVersions(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getConversationsEmailMessage(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationsEmailMessage';if(i==null||i==="")throw'Missing the required parameter "messageId" when calling getConversationsEmailMessage';return this.apiClient.callApi("/api/v2/conversations/emails/{conversationId}/messages/{messageId}","GET",{conversationId:e,messageId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getConversationsEmailMessages(e,i){if(i=i||{},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:i.includeAgentlessStitchedMessages},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getConversationsEmailMessagesDraft(e,i){if(i=i||{},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"],i.customHeaders)}getConversationsEmailParticipantCommunicationWrapup(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationsEmailParticipantCommunicationWrapup';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling getConversationsEmailParticipantCommunicationWrapup';if(n==null||n==="")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:i,communicationId:n},{provisional:a.provisional},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getConversationsEmailParticipantWrapup(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationsEmailParticipantWrapup';if(i==null||i==="")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:i},{provisional:n.provisional},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getConversationsEmailParticipantWrapupcodes(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationsEmailParticipantWrapupcodes';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getConversationsEmailSettings(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getConversationsMessageCommunicationMessagesMedia(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationsMessageCommunicationMessagesMedia';if(i==null||i==="")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:i},{status:n.status,pageNumber:n.pageNumber,pageSize:n.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getConversationsMessageCommunicationMessagesMediaMediaId(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationsMessageCommunicationMessagesMediaMediaId';if(i==null||i==="")throw'Missing the required parameter "communicationId" when calling getConversationsMessageCommunicationMessagesMediaMediaId';if(n==null||n==="")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:i,mediaId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getConversationsMessageDetails(e,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "messageId" when calling getConversationsMessageDetails';return this.apiClient.callApi("/api/v2/conversations/messages/{messageId}/details","GET",{messageId:e},{useNormalizedMessage:i.useNormalizedMessage},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getConversationsMessageMessage(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationsMessageMessage';if(i==null||i==="")throw'Missing the required parameter "messageId" when calling getConversationsMessageMessage';return this.apiClient.callApi("/api/v2/conversations/messages/{conversationId}/messages/{messageId}","GET",{conversationId:e,messageId:i},{useNormalizedMessage:n.useNormalizedMessage},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getConversationsMessageParticipantCommunicationWrapup(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationsMessageParticipantCommunicationWrapup';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling getConversationsMessageParticipantCommunicationWrapup';if(n==null||n==="")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:i,communicationId:n},{provisional:a.provisional},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getConversationsMessageParticipantWrapup(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationsMessageParticipantWrapup';if(i==null||i==="")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:i},{provisional:n.provisional},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getConversationsMessageParticipantWrapupcodes(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationsMessageParticipantWrapupcodes';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getConversationsMessagingIdentityresolutionIntegrationsFacebookIntegrationId(e,i){if(i=i||{},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"],i.customHeaders)}getConversationsMessagingIdentityresolutionIntegrationsInstagramIntegrationId(e,i){if(i=i||{},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"],i.customHeaders)}getConversationsMessagingIdentityresolutionIntegrationsOpenIntegrationId(e,i){if(i=i||{},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"],i.customHeaders)}getConversationsMessagingIdentityresolutionIntegrationsTwitterIntegrationId(e,i){if(i=i||{},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"],i.customHeaders)}getConversationsMessagingIdentityresolutionIntegrationsWhatsappIntegrationId(e,i){if(i=i||{},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"],i.customHeaders)}getConversationsMessagingIntegrationTwitterOauthSettings(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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:i.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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:i.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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:i.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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:i.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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"],i.customHeaders)}getConversationsMessagingIntegrationsOpenExtensionsGooglebusinessprofileTokenAccounts(e,i){if(i=i||{},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"],i.customHeaders)}getConversationsMessagingIntegrationsOpenIntegrationId(e,i){if(i=i||{},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:i.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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:i.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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:i.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getConversationsMessagingOauthAppleCallback(e,i,n){if(n=n||{},e==null)throw'Missing the required parameter "code" when calling getConversationsMessagingOauthAppleCallback';if(i==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:i,error:n.error},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getConversationsMessagingSetting(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationsScreenshareParticipantCommunicationWrapup';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling getConversationsScreenshareParticipantCommunicationWrapup';if(n==null||n==="")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:i,communicationId:n},{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,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationsSocialParticipantCommunicationWrapup';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling getConversationsSocialParticipantCommunicationWrapup';if(n==null||n==="")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:i,communicationId:n},{provisional:a.provisional},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getConversationsVideoDetails(e,i){if(i=i||{},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"],i.customHeaders)}getConversationsVideoParticipantCommunicationWrapup(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationsVideoParticipantCommunicationWrapup';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling getConversationsVideoParticipantCommunicationWrapup';if(n==null||n==="")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:i,communicationId:n},{provisional:a.provisional},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getConversationsVideosMeeting(e,i){if(i=i||{},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"],i.customHeaders)}patchConversationCustomattributes(e,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchConversationCustomattributes';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/customattributes","PATCH",{conversationId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}patchConversationCustomattributesBulk(e,i){if(i=i||{},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},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}patchConversationParticipant(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchConversationParticipant';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling patchConversationParticipant';if(n==null)throw'Missing the required parameter "body" when calling patchConversationParticipant';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/participants/{participantId}","PATCH",{conversationId:e,participantId:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchConversationParticipantAttributes(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchConversationParticipantAttributes';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling patchConversationParticipantAttributes';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchConversationRecordingstate(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchConversationRecordingstate';if(i==null)throw'Missing the required parameter "body" when calling patchConversationRecordingstate';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/recordingstate","PATCH",{conversationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchConversationSecureattributes(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchConversationSecureattributes';if(i==null)throw'Missing the required parameter "body" when calling patchConversationSecureattributes';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/secureattributes","PATCH",{conversationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchConversationSummaryEngagements(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchConversationSummaryEngagements';if(i==null||i==="")throw'Missing the required parameter "summaryId" when calling patchConversationSummaryEngagements';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/summaries/{summaryId}/engagements","PATCH",{conversationId:e,summaryId:i},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchConversationSummaryFeedback(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchConversationSummaryFeedback';if(i==null||i==="")throw'Missing the required parameter "summaryId" when calling patchConversationSummaryFeedback';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/summaries/{summaryId}/feedback","PATCH",{conversationId:e,summaryId:i},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchConversationUtilizationlabel(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchConversationUtilizationlabel';if(i==null)throw'Missing the required parameter "body" when calling patchConversationUtilizationlabel';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/utilizationlabel","PATCH",{conversationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchConversationsAftercallworkConversationIdParticipantCommunication(e,i,n,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchConversationsAftercallworkConversationIdParticipantCommunication';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling patchConversationsAftercallworkConversationIdParticipantCommunication';if(n==null||n==="")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:i,communicationId:n},{},{},{},a,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}patchConversationsCall(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchConversationsCall';if(i==null)throw'Missing the required parameter "body" when calling patchConversationsCall';return this.apiClient.callApi("/api/v2/conversations/calls/{conversationId}","PATCH",{conversationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchConversationsCallConference(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchConversationsCallConference';if(i==null)throw'Missing the required parameter "body" when calling patchConversationsCallConference';return this.apiClient.callApi("/api/v2/conversations/calls/{conversationId}/conference","PATCH",{conversationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchConversationsCallParticipant(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchConversationsCallParticipant';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling patchConversationsCallParticipant';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchConversationsCallParticipantAttributes(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchConversationsCallParticipantAttributes';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling patchConversationsCallParticipantAttributes';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchConversationsCallParticipantCommunication(e,i,n,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchConversationsCallParticipantCommunication';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling patchConversationsCallParticipantCommunication';if(n==null||n==="")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:i,communicationId:n},{},{},{},a,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}patchConversationsCallParticipantCommunicationPostflowaction(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchConversationsCallParticipantCommunicationPostflowaction';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling patchConversationsCallParticipantCommunicationPostflowaction';if(n==null||n==="")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:i,communicationId:n},{},{},{},a.body,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchConversationsCallParticipantConsult(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchConversationsCallParticipantConsult';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling patchConversationsCallParticipantConsult';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchConversationsCallParticipantUserUserId(e,i,n,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchConversationsCallParticipantUserUserId';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling patchConversationsCallParticipantUserUserId';if(n==null||n==="")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:i,userId:n},{},{},{},a,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}patchConversationsCallback(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchConversationsCallback';if(i==null)throw'Missing the required parameter "body" when calling patchConversationsCallback';return this.apiClient.callApi("/api/v2/conversations/callbacks/{conversationId}","PATCH",{conversationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchConversationsCallbackParticipant(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchConversationsCallbackParticipant';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling patchConversationsCallbackParticipant';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchConversationsCallbackParticipantAttributes(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchConversationsCallbackParticipantAttributes';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling patchConversationsCallbackParticipantAttributes';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchConversationsCallbackParticipantCommunication(e,i,n,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchConversationsCallbackParticipantCommunication';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling patchConversationsCallbackParticipantCommunication';if(n==null||n==="")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:i,communicationId:n},{},{},{},a,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}patchConversationsCallbacks(e,i){if(i=i||{},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"],i.customHeaders)}patchConversationsChat(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchConversationsChat';if(i==null)throw'Missing the required parameter "body" when calling patchConversationsChat';return this.apiClient.callApi("/api/v2/conversations/chats/{conversationId}","PATCH",{conversationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchConversationsChatParticipant(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchConversationsChatParticipant';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling patchConversationsChatParticipant';if(n==null)throw'Missing the required parameter "body" when calling patchConversationsChatParticipant';return this.apiClient.callApi("/api/v2/conversations/chats/{conversationId}/participants/{participantId}","PATCH",{conversationId:e,participantId:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchConversationsChatParticipantAttributes(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchConversationsChatParticipantAttributes';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling patchConversationsChatParticipantAttributes';if(n==null)throw'Missing the required parameter "body" when calling patchConversationsChatParticipantAttributes';return this.apiClient.callApi("/api/v2/conversations/chats/{conversationId}/participants/{participantId}/attributes","PATCH",{conversationId:e,participantId:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchConversationsChatParticipantCommunication(e,i,n,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchConversationsChatParticipantCommunication';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling patchConversationsChatParticipantCommunication';if(n==null||n==="")throw'Missing the required parameter "communicationId" when calling patchConversationsChatParticipantCommunication';if(a==null)throw'Missing the required parameter "body" when calling patchConversationsChatParticipantCommunication';return this.apiClient.callApi("/api/v2/conversations/chats/{conversationId}/participants/{participantId}/communications/{communicationId}","PATCH",{conversationId:e,participantId:i,communicationId:n},{},{},{},a,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}patchConversationsCobrowsesession(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchConversationsCobrowsesession';if(i==null)throw'Missing the required parameter "body" when calling patchConversationsCobrowsesession';return this.apiClient.callApi("/api/v2/conversations/cobrowsesessions/{conversationId}","PATCH",{conversationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchConversationsCobrowsesessionParticipant(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchConversationsCobrowsesessionParticipant';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling patchConversationsCobrowsesessionParticipant';return this.apiClient.callApi("/api/v2/conversations/cobrowsesessions/{conversationId}/participants/{participantId}","PATCH",{conversationId:e,participantId:i},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchConversationsCobrowsesessionParticipantAttributes(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchConversationsCobrowsesessionParticipantAttributes';if(i==null||i==="")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:i},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchConversationsCobrowsesessionParticipantCommunication(e,i,n,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchConversationsCobrowsesessionParticipantCommunication';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling patchConversationsCobrowsesessionParticipantCommunication';if(n==null||n==="")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:i,communicationId:n},{},{},{},a,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}patchConversationsEmail(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchConversationsEmail';if(i==null)throw'Missing the required parameter "body" when calling patchConversationsEmail';return this.apiClient.callApi("/api/v2/conversations/emails/{conversationId}","PATCH",{conversationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchConversationsEmailMessagesDraft(e,i){if(i=i||{},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:i.autoFill,discard:i.discard},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}patchConversationsEmailParticipant(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchConversationsEmailParticipant';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling patchConversationsEmailParticipant';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchConversationsEmailParticipantAttributes(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchConversationsEmailParticipantAttributes';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling patchConversationsEmailParticipantAttributes';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchConversationsEmailParticipantCommunication(e,i,n,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchConversationsEmailParticipantCommunication';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling patchConversationsEmailParticipantCommunication';if(n==null||n==="")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:i,communicationId:n},{},{},{},a,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}patchConversationsEmailParticipantParkingstate(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchConversationsEmailParticipantParkingstate';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling patchConversationsEmailParticipantParkingstate';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchConversationsMessage(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchConversationsMessage';if(i==null)throw'Missing the required parameter "body" when calling patchConversationsMessage';return this.apiClient.callApi("/api/v2/conversations/messages/{conversationId}","PATCH",{conversationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchConversationsMessageParticipant(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchConversationsMessageParticipant';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling patchConversationsMessageParticipant';return this.apiClient.callApi("/api/v2/conversations/messages/{conversationId}/participants/{participantId}","PATCH",{conversationId:e,participantId:i},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchConversationsMessageParticipantAttributes(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchConversationsMessageParticipantAttributes';if(i==null||i==="")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:i},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchConversationsMessageParticipantCommunication(e,i,n,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchConversationsMessageParticipantCommunication';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling patchConversationsMessageParticipantCommunication';if(n==null||n==="")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:i,communicationId:n},{},{},{},a,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}patchConversationsMessageParticipantParkingstate(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchConversationsMessageParticipantParkingstate';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling patchConversationsMessageParticipantParkingstate';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchConversationsMessagingIntegrationsAppleIntegrationId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "integrationId" when calling patchConversationsMessagingIntegrationsAppleIntegrationId';if(i==null)throw'Missing the required parameter "body" when calling patchConversationsMessagingIntegrationsAppleIntegrationId';return this.apiClient.callApi("/api/v2/conversations/messaging/integrations/apple/{integrationId}","PATCH",{integrationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchConversationsMessagingIntegrationsFacebookIntegrationId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "integrationId" when calling patchConversationsMessagingIntegrationsFacebookIntegrationId';if(i==null)throw'Missing the required parameter "body" when calling patchConversationsMessagingIntegrationsFacebookIntegrationId';return this.apiClient.callApi("/api/v2/conversations/messaging/integrations/facebook/{integrationId}","PATCH",{integrationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchConversationsMessagingIntegrationsInstagramIntegrationId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "integrationId" when calling patchConversationsMessagingIntegrationsInstagramIntegrationId';if(i==null)throw'Missing the required parameter "body" when calling patchConversationsMessagingIntegrationsInstagramIntegrationId';return this.apiClient.callApi("/api/v2/conversations/messaging/integrations/instagram/{integrationId}","PATCH",{integrationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchConversationsMessagingIntegrationsOpenExtensionsGooglebusinessprofileIntegrationId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "integrationId" when calling patchConversationsMessagingIntegrationsOpenExtensionsGooglebusinessprofileIntegrationId';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchConversationsMessagingIntegrationsOpenIntegrationId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "integrationId" when calling patchConversationsMessagingIntegrationsOpenIntegrationId';if(i==null)throw'Missing the required parameter "body" when calling patchConversationsMessagingIntegrationsOpenIntegrationId';return this.apiClient.callApi("/api/v2/conversations/messaging/integrations/open/{integrationId}","PATCH",{integrationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchConversationsMessagingIntegrationsTwitterIntegrationId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "integrationId" when calling patchConversationsMessagingIntegrationsTwitterIntegrationId';if(i==null)throw'Missing the required parameter "body" when calling patchConversationsMessagingIntegrationsTwitterIntegrationId';return this.apiClient.callApi("/api/v2/conversations/messaging/integrations/twitter/{integrationId}","PATCH",{integrationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchConversationsMessagingIntegrationsWhatsappEmbeddedsignupIntegrationId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "integrationId" when calling patchConversationsMessagingIntegrationsWhatsappEmbeddedsignupIntegrationId';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchConversationsMessagingIntegrationsWhatsappIntegrationId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "integrationId" when calling patchConversationsMessagingIntegrationsWhatsappIntegrationId';if(i==null)throw'Missing the required parameter "body" when calling patchConversationsMessagingIntegrationsWhatsappIntegrationId';return this.apiClient.callApi("/api/v2/conversations/messaging/integrations/whatsapp/{integrationId}","PATCH",{integrationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchConversationsMessagingSetting(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "messageSettingId" when calling patchConversationsMessagingSetting';if(i==null)throw'Missing the required parameter "body" when calling patchConversationsMessagingSetting';return this.apiClient.callApi("/api/v2/conversations/messaging/settings/{messageSettingId}","PATCH",{messageSettingId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchConversationsMessagingSupportedcontentSupportedContentId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "supportedContentId" when calling patchConversationsMessagingSupportedcontentSupportedContentId';if(i==null)throw'Missing the required parameter "body" when calling patchConversationsMessagingSupportedcontentSupportedContentId';return this.apiClient.callApi("/api/v2/conversations/messaging/supportedcontent/{supportedContentId}","PATCH",{supportedContentId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchConversationsSettings(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsConversationDetailsProperties(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postAnalyticsConversationDetailsProperties';if(i==null)throw'Missing the required parameter "body" when calling postAnalyticsConversationDetailsProperties';return this.apiClient.callApi("/api/v2/analytics/conversations/{conversationId}/details/properties","POST",{conversationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postAnalyticsConversationsActivityQuery(e,i){if(i=i||{},e==null)throw'Missing the required parameter "body" when calling postAnalyticsConversationsActivityQuery';return this.apiClient.callApi("/api/v2/analytics/conversations/activity/query","POST",{},{pageSize:i.pageSize,pageNumber:i.pageNumber},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postAnalyticsConversationsAggregatesJobs(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsConversationsAggregatesQuery(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsConversationsDetailsJobs(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsConversationsDetailsQuery(e,i){if(i=i||{},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"],i.customHeaders)}postConversationAssign(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationAssign';if(i==null)throw'Missing the required parameter "body" when calling postConversationAssign';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/assign","POST",{conversationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postConversationBarge(e,i){if(i=i||{},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"],i.customHeaders)}postConversationCobrowse(e,i){if(i=i||{},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"],i.customHeaders)}postConversationCommunicationAgentchecklist(e,i,n,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationCommunicationAgentchecklist';if(i==null||i==="")throw'Missing the required parameter "communicationId" when calling postConversationCommunicationAgentchecklist';if(n==null||n==="")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:i,agentChecklistId:n},{},{},{},a,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}postConversationCommunicationAgentchecklistAgentaction(e,i,n,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationCommunicationAgentchecklistAgentaction';if(i==null||i==="")throw'Missing the required parameter "communicationId" when calling postConversationCommunicationAgentchecklistAgentaction';if(n==null||n==="")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:i,agentChecklistId:n},{},{},{},a,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}postConversationCommunicationAgentchecklistJobs(e,i,n,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationCommunicationAgentchecklistJobs';if(i==null||i==="")throw'Missing the required parameter "communicationId" when calling postConversationCommunicationAgentchecklistJobs';if(n==null||n==="")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:i,agentChecklistId:n},{},{},{},a,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}postConversationCommunicationAgentchecklistsFinalize(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationCommunicationAgentchecklistsFinalize';if(i==null||i==="")throw'Missing the required parameter "communicationId" when calling postConversationCommunicationAgentchecklistsFinalize';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postConversationCommunicationInternalmessages(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationCommunicationInternalmessages';if(i==null||i==="")throw'Missing the required parameter "communicationId" when calling postConversationCommunicationInternalmessages';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postConversationDisconnect(e,i){if(i=i||{},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"],i.customHeaders)}postConversationParticipantCallbacks(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationParticipantCallbacks';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling postConversationParticipantCallbacks';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/participants/{participantId}/callbacks","POST",{conversationId:e,participantId:i},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postConversationParticipantDigits(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationParticipantDigits';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling postConversationParticipantDigits';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/participants/{participantId}/digits","POST",{conversationId:e,participantId:i},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postConversationParticipantInternalmessagesUsersCommunications(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationParticipantInternalmessagesUsersCommunications';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling postConversationParticipantInternalmessagesUsersCommunications';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postConversationParticipantReplace(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationParticipantReplace';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling postConversationParticipantReplace';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postConversationParticipantReplaceAgent(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationParticipantReplaceAgent';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling postConversationParticipantReplaceAgent';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postConversationParticipantReplaceContactExternal(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationParticipantReplaceContactExternal';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling postConversationParticipantReplaceContactExternal';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postConversationParticipantReplaceExternal(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationParticipantReplaceExternal';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling postConversationParticipantReplaceExternal';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postConversationParticipantReplaceQueue(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationParticipantReplaceQueue';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling postConversationParticipantReplaceQueue';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postConversationParticipantSecureivrsessions(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationParticipantSecureivrsessions';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling postConversationParticipantSecureivrsessions';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/participants/{participantId}/secureivrsessions","POST",{conversationId:e,participantId:i},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postConversationParticipantTransfer(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationParticipantTransfer';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling postConversationParticipantTransfer';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postConversationSuggestionEngagement(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationSuggestionEngagement';if(i==null||i==="")throw'Missing the required parameter "suggestionId" when calling postConversationSuggestionEngagement';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postConversationSuggestionsFeedback(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationSuggestionsFeedback';if(i==null)throw'Missing the required parameter "body" when calling postConversationSuggestionsFeedback';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/suggestions/feedback","POST",{conversationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postConversationSummaryFeedback(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationSummaryFeedback';if(i==null||i==="")throw'Missing the required parameter "summaryId" when calling postConversationSummaryFeedback';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/summaries/{summaryId}/feedback","POST",{conversationId:e,summaryId:i},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postConversationsCall(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsCall';if(i==null)throw'Missing the required parameter "body" when calling postConversationsCall';return this.apiClient.callApi("/api/v2/conversations/calls/{conversationId}","POST",{conversationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postConversationsCallParticipantBarge(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsCallParticipantBarge';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postConversationsCallParticipantCoach(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsCallParticipantCoach';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postConversationsCallParticipantCommunicationWrapup(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsCallParticipantCommunicationWrapup';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling postConversationsCallParticipantCommunicationWrapup';if(n==null||n==="")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:i,communicationId:n},{},{},{},a.body,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postConversationsCallParticipantConsult(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsCallParticipantConsult';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling postConversationsCallParticipantConsult';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postConversationsCallParticipantConsultAgent(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsCallParticipantConsultAgent';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling postConversationsCallParticipantConsultAgent';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postConversationsCallParticipantConsultContactExternal(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsCallParticipantConsultContactExternal';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling postConversationsCallParticipantConsultContactExternal';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postConversationsCallParticipantConsultExternal(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsCallParticipantConsultExternal';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling postConversationsCallParticipantConsultExternal';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postConversationsCallParticipantConsultQueue(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsCallParticipantConsultQueue';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling postConversationsCallParticipantConsultQueue';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postConversationsCallParticipantMonitor(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsCallParticipantMonitor';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postConversationsCallParticipantReplace(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsCallParticipantReplace';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling postConversationsCallParticipantReplace';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postConversationsCallParticipantSnippetRecord(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsCallParticipantSnippetRecord';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling postConversationsCallParticipantSnippetRecord';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postConversationsCallParticipantVoiceConsult(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsCallParticipantVoiceConsult';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling postConversationsCallParticipantVoiceConsult';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postConversationsCallParticipants(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsCallParticipants';if(i==null)throw'Missing the required parameter "body" when calling postConversationsCallParticipants';return this.apiClient.callApi("/api/v2/conversations/calls/{conversationId}/participants","POST",{conversationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postConversationsCallParticipantsUserUserId(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsCallParticipantsUserUserId';if(i==null||i==="")throw'Missing the required parameter "userId" when calling postConversationsCallParticipantsUserUserId';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postConversationsCallbackParticipantCommunicationWrapup(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsCallbackParticipantCommunicationWrapup';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling postConversationsCallbackParticipantCommunicationWrapup';if(n==null||n==="")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:i,communicationId:n},{},{},{},a.body,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postConversationsCallbackParticipantReplace(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsCallbackParticipantReplace';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling postConversationsCallbackParticipantReplace';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postConversationsCallbacks(e,i){if(i=i||{},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"],i.customHeaders)}postConversationsCallbacksBulkDisconnect(e,i){if(i=i||{},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"],i.customHeaders)}postConversationsCallbacksBulkUpdate(e,i){if(i=i||{},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"],i.customHeaders)}postConversationsCalls(e,i){if(i=i||{},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"],i.customHeaders)}postConversationsCallsUserUserId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling postConversationsCallsUserUserId';if(i==null)throw'Missing the required parameter "body" when calling postConversationsCallsUserUserId';return this.apiClient.callApi("/api/v2/conversations/calls/user/{userId}","POST",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postConversationsChatCommunicationMessages(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsChatCommunicationMessages';if(i==null||i==="")throw'Missing the required parameter "communicationId" when calling postConversationsChatCommunicationMessages';if(n==null)throw'Missing the required parameter "body" when calling postConversationsChatCommunicationMessages';return this.apiClient.callApi("/api/v2/conversations/chats/{conversationId}/communications/{communicationId}/messages","POST",{conversationId:e,communicationId:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postConversationsChatCommunicationTyping(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsChatCommunicationTyping';if(i==null||i==="")throw'Missing the required parameter "communicationId" when calling postConversationsChatCommunicationTyping';return this.apiClient.callApi("/api/v2/conversations/chats/{conversationId}/communications/{communicationId}/typing","POST",{conversationId:e,communicationId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postConversationsChatParticipantCommunicationWrapup(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsChatParticipantCommunicationWrapup';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling postConversationsChatParticipantCommunicationWrapup';if(n==null||n==="")throw'Missing the required parameter "communicationId" when calling postConversationsChatParticipantCommunicationWrapup';return this.apiClient.callApi("/api/v2/conversations/chats/{conversationId}/participants/{participantId}/communications/{communicationId}/wrapup","POST",{conversationId:e,participantId:i,communicationId:n},{},{},{},a.body,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postConversationsChatParticipantReplace(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsChatParticipantReplace';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling postConversationsChatParticipantReplace';if(n==null)throw'Missing the required parameter "body" when calling postConversationsChatParticipantReplace';return this.apiClient.callApi("/api/v2/conversations/chats/{conversationId}/participants/{participantId}/replace","POST",{conversationId:e,participantId:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postConversationsChats(e,i){if(i=i||{},e==null)throw'Missing the required parameter "body" when calling postConversationsChats';return this.apiClient.callApi("/api/v2/conversations/chats","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postConversationsCobrowsesessionParticipantCommunicationWrapup(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsCobrowsesessionParticipantCommunicationWrapup';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling postConversationsCobrowsesessionParticipantCommunicationWrapup';if(n==null||n==="")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:i,communicationId:n},{},{},{},a.body,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postConversationsCobrowsesessionParticipantReplace(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsCobrowsesessionParticipantReplace';if(i==null||i==="")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:i},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postConversationsCustomattributesSchemas(e,i){if(i=i||{},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"],i.customHeaders)}postConversationsCustomattributesSearch(e,i){if(i=i||{},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"],i.customHeaders)}postConversationsEmailInboundmessages(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsEmailInboundmessages';if(i==null)throw'Missing the required parameter "body" when calling postConversationsEmailInboundmessages';return this.apiClient.callApi("/api/v2/conversations/emails/{conversationId}/inboundmessages","POST",{conversationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postConversationsEmailMessages(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsEmailMessages';if(i==null)throw'Missing the required parameter "body" when calling postConversationsEmailMessages';return this.apiClient.callApi("/api/v2/conversations/emails/{conversationId}/messages","POST",{conversationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postConversationsEmailMessagesDraftAttachmentsCopy(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsEmailMessagesDraftAttachmentsCopy';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postConversationsEmailParticipantCommunicationWrapup(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsEmailParticipantCommunicationWrapup';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling postConversationsEmailParticipantCommunicationWrapup';if(n==null||n==="")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:i,communicationId:n},{},{},{},a.body,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postConversationsEmailParticipantReplace(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsEmailParticipantReplace';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling postConversationsEmailParticipantReplace';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postConversationsEmailReconnect(e,i){if(i=i||{},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"],i.customHeaders)}postConversationsEmails(e,i){if(i=i||{},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"],i.customHeaders)}postConversationsEmailsAgentless(e,i){if(i=i||{},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"],i.customHeaders)}postConversationsFaxes(e,i){if(i=i||{},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"],i.customHeaders)}postConversationsKeyconfigurations(e,i){if(i=i||{},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"],i.customHeaders)}postConversationsKeyconfigurationsValidate(e,i){if(i=i||{},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"],i.customHeaders)}postConversationsMessageCommunicationMessages(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsMessageCommunicationMessages';if(i==null||i==="")throw'Missing the required parameter "communicationId" when calling postConversationsMessageCommunicationMessages';if(n==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:i},{useNormalizedMessage:a.useNormalizedMessage},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postConversationsMessageCommunicationMessagesMedia(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsMessageCommunicationMessagesMedia';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postConversationsMessageCommunicationMessagesMediaUploads(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsMessageCommunicationMessagesMediaUploads';if(i==null||i==="")throw'Missing the required parameter "communicationId" when calling postConversationsMessageCommunicationMessagesMediaUploads';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postConversationsMessageCommunicationSocialmediaMessages(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsMessageCommunicationSocialmediaMessages';if(i==null||i==="")throw'Missing the required parameter "communicationId" when calling postConversationsMessageCommunicationSocialmediaMessages';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postConversationsMessageCommunicationTyping(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsMessageCommunicationTyping';if(i==null||i==="")throw'Missing the required parameter "communicationId" when calling postConversationsMessageCommunicationTyping';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postConversationsMessageInboundOpenEvent(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "integrationId" when calling postConversationsMessageInboundOpenEvent';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postConversationsMessageInboundOpenMessage(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "integrationId" when calling postConversationsMessageInboundOpenMessage';if(i==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:n.prefetchConversationId},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postConversationsMessageInboundOpenReceipt(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "integrationId" when calling postConversationsMessageInboundOpenReceipt';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postConversationsMessageInboundOpenStructuredResponse(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "integrationId" when calling postConversationsMessageInboundOpenStructuredResponse';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postConversationsMessageMessagesBulk(e,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsMessageMessagesBulk';return this.apiClient.callApi("/api/v2/conversations/messages/{conversationId}/messages/bulk","POST",{conversationId:e},{useNormalizedMessage:i.useNormalizedMessage},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postConversationsMessageParticipantCommunicationWrapup(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsMessageParticipantCommunicationWrapup';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling postConversationsMessageParticipantCommunicationWrapup';if(n==null||n==="")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:i,communicationId:n},{},{},{},a.body,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postConversationsMessageParticipantMonitor(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsMessageParticipantMonitor';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postConversationsMessageParticipantReplace(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsMessageParticipantReplace';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling postConversationsMessageParticipantReplace';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postConversationsMessages(e,i){if(i=i||{},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"],i.customHeaders)}postConversationsMessagesAgentless(e,i){if(i=i||{},e==null)throw'Missing the required parameter "body" when calling postConversationsMessagesAgentless';return this.apiClient.callApi("/api/v2/conversations/messages/agentless","POST",{},{useNormalizedMessage:i.useNormalizedMessage},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postConversationsMessagesInboundOpen(e,i){if(i=i||{},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"],i.customHeaders)}postConversationsMessagingIntegrationsApple(e,i){if(i=i||{},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"],i.customHeaders)}postConversationsMessagingIntegrationsFacebook(e,i){if(i=i||{},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"],i.customHeaders)}postConversationsMessagingIntegrationsInstagram(e,i){if(i=i||{},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"],i.customHeaders)}postConversationsMessagingIntegrationsOpen(e,i){if(i=i||{},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"],i.customHeaders)}postConversationsMessagingIntegrationsOpenExtensionsGooglebusinessprofile(e,i){if(i=i||{},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"],i.customHeaders)}postConversationsMessagingIntegrationsOpenExtensionsGooglebusinessprofileTokens(e,i){if(i=i||{},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"],i.customHeaders)}postConversationsMessagingIntegrationsTwitter(e,i){if(i=i||{},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"],i.customHeaders)}postConversationsMessagingIntegrationsWhatsapp(e,i){if(i=i||{},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"],i.customHeaders)}postConversationsMessagingIntegrationsWhatsappEmbeddedsignup(e,i){if(i=i||{},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"],i.customHeaders)}postConversationsMessagingSettings(e,i){if(i=i||{},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"],i.customHeaders)}postConversationsMessagingSupportedcontent(e,i){if(i=i||{},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"],i.customHeaders)}postConversationsParticipantsAttributesSearch(e,i){if(i=i||{},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"],i.customHeaders)}postConversationsScreenshareParticipantCommunicationWrapup(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsScreenshareParticipantCommunicationWrapup';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling postConversationsScreenshareParticipantCommunicationWrapup';if(n==null||n==="")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:i,communicationId:n},{},{},{},a.body,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postConversationsSocialParticipantCommunicationWrapup(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsSocialParticipantCommunicationWrapup';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling postConversationsSocialParticipantCommunicationWrapup';if(n==null||n==="")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:i,communicationId:n},{},{},{},a.body,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postConversationsVideoAgentconferenceCommunication(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsVideoAgentconferenceCommunication';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postConversationsVideoParticipantCommunicationWrapup(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsVideoParticipantCommunicationWrapup';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling postConversationsVideoParticipantCommunicationWrapup';if(n==null||n==="")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:i,communicationId:n},{},{},{},a.body,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postConversationsVideosMeetings(e,i){if(i=i||{},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"],i.customHeaders)}putConversationCustomattributes(e,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling putConversationCustomattributes';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/customattributes","PUT",{conversationId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}putConversationCustomattributesBulk(e,i){if(i=i||{},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},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}putConversationParticipantFlaggedreason(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling putConversationParticipantFlaggedreason';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling putConversationParticipantFlaggedreason';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/participants/{participantId}/flaggedreason","PUT",{conversationId:e,participantId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putConversationSecureattributes(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling putConversationSecureattributes';if(i==null)throw'Missing the required parameter "body" when calling putConversationSecureattributes';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/secureattributes","PUT",{conversationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putConversationTags(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling putConversationTags';if(i==null)throw'Missing the required parameter "body" when calling putConversationTags';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/tags","PUT",{conversationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putConversationsCallParticipantCommunicationUuidata(e,i,n,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling putConversationsCallParticipantCommunicationUuidata';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling putConversationsCallParticipantCommunicationUuidata';if(n==null||n==="")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:i,communicationId:n},{},{},{},a,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}putConversationsCallRecordingstate(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling putConversationsCallRecordingstate';if(i==null)throw'Missing the required parameter "body" when calling putConversationsCallRecordingstate';return this.apiClient.callApi("/api/v2/conversations/calls/{conversationId}/recordingstate","PUT",{conversationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putConversationsCallbackRecordingstate(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling putConversationsCallbackRecordingstate';if(i==null)throw'Missing the required parameter "body" when calling putConversationsCallbackRecordingstate';return this.apiClient.callApi("/api/v2/conversations/callbacks/{conversationId}/recordingstate","PUT",{conversationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putConversationsChatRecordingstate(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling putConversationsChatRecordingstate';if(i==null)throw'Missing the required parameter "body" when calling putConversationsChatRecordingstate';return this.apiClient.callApi("/api/v2/conversations/chats/{conversationId}/recordingstate","PUT",{conversationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putConversationsCobrowsesessionRecordingstate(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling putConversationsCobrowsesessionRecordingstate';if(i==null)throw'Missing the required parameter "body" when calling putConversationsCobrowsesessionRecordingstate';return this.apiClient.callApi("/api/v2/conversations/cobrowsesessions/{conversationId}/recordingstate","PUT",{conversationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putConversationsCustomattributesSchema(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "schemaId" when calling putConversationsCustomattributesSchema';if(i==null)throw'Missing the required parameter "body" when calling putConversationsCustomattributesSchema';return this.apiClient.callApi("/api/v2/conversations/customattributes/schemas/{schemaId}","PUT",{schemaId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putConversationsEmailMessagesDraft(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling putConversationsEmailMessagesDraft';if(i==null)throw'Missing the required parameter "body" when calling putConversationsEmailMessagesDraft';return this.apiClient.callApi("/api/v2/conversations/emails/{conversationId}/messages/draft","PUT",{conversationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putConversationsEmailRecordingstate(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling putConversationsEmailRecordingstate';if(i==null)throw'Missing the required parameter "body" when calling putConversationsEmailRecordingstate';return this.apiClient.callApi("/api/v2/conversations/emails/{conversationId}/recordingstate","PUT",{conversationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putConversationsKeyconfiguration(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "keyconfigurationsId" when calling putConversationsKeyconfiguration';if(i==null)throw'Missing the required parameter "body" when calling putConversationsKeyconfiguration';return this.apiClient.callApi("/api/v2/conversations/keyconfigurations/{keyconfigurationsId}","PUT",{keyconfigurationsId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putConversationsMessageRecordingstate(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling putConversationsMessageRecordingstate';if(i==null)throw'Missing the required parameter "body" when calling putConversationsMessageRecordingstate';return this.apiClient.callApi("/api/v2/conversations/messages/{conversationId}/recordingstate","PUT",{conversationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putConversationsMessagingIdentityresolutionIntegrationsAppleIntegrationId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "integrationId" when calling putConversationsMessagingIdentityresolutionIntegrationsAppleIntegrationId';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putConversationsMessagingIdentityresolutionIntegrationsFacebookIntegrationId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "integrationId" when calling putConversationsMessagingIdentityresolutionIntegrationsFacebookIntegrationId';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putConversationsMessagingIdentityresolutionIntegrationsInstagramIntegrationId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "integrationId" when calling putConversationsMessagingIdentityresolutionIntegrationsInstagramIntegrationId';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putConversationsMessagingIdentityresolutionIntegrationsOpenIntegrationId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "integrationId" when calling putConversationsMessagingIdentityresolutionIntegrationsOpenIntegrationId';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putConversationsMessagingIdentityresolutionIntegrationsTwitterIntegrationId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "integrationId" when calling putConversationsMessagingIdentityresolutionIntegrationsTwitterIntegrationId';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putConversationsMessagingIdentityresolutionIntegrationsWhatsappIntegrationId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "integrationId" when calling putConversationsMessagingIdentityresolutionIntegrationsWhatsappIntegrationId';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putConversationsMessagingSettingsDefault(e,i){if(i=i||{},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"],i.customHeaders)}putConversationsMessagingSupportedcontentDefault(e,i){if(i=i||{},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"],i.customHeaders)}putConversationsMessagingThreadingtimeline(e,i){if(i=i||{},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"],i.customHeaders)}putConversationsScreenshareRecordingstate(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling putConversationsScreenshareRecordingstate';if(i==null)throw'Missing the required parameter "body" when calling putConversationsScreenshareRecordingstate';return this.apiClient.callApi("/api/v2/conversations/screenshares/{conversationId}/recordingstate","PUT",{conversationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putConversationsSocialRecordingstate(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling putConversationsSocialRecordingstate';if(i==null)throw'Missing the required parameter "body" when calling putConversationsSocialRecordingstate';return this.apiClient.callApi("/api/v2/conversations/socials/{conversationId}/recordingstate","PUT",{conversationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putConversationsVideoRecordingstate(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling putConversationsVideoRecordingstate';if(i==null)throw'Missing the required parameter "body" when calling putConversationsVideoRecordingstate';return this.apiClient.callApi("/api/v2/conversations/videos/{conversationId}/recordingstate","PUT",{conversationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}},BA=class{constructor(e){this.apiClient=e||q.instance}getDataextensionsCoretype(e,i){if(i=i||{},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"],i.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)}},FA=class{constructor(e){this.apiClient=e||q.instance}deleteDataprivacyMaskingrule(e,i){if(i=i||{},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"],i.customHeaders)}getDataprivacyMaskingrule(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "ruleId" when calling patchDataprivacyMaskingrule';return this.apiClient.callApi("/api/v2/dataprivacy/maskingrules/{ruleId}","PATCH",{ruleId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postDataprivacyMaskingrules(e,i){if(i=i||{},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"],i.customHeaders)}postDataprivacyMaskingrulesValidate(e,i){if(i=i||{},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"],i.customHeaders)}},VA=class{constructor(e){this.apiClient=e||q.instance}getDownload(e,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "downloadId" when calling getDownload';return this.apiClient.callApi("/api/v2/downloads/{downloadId}","GET",{downloadId:e},{contentDisposition:i.contentDisposition,issueRedirect:i.issueRedirect,redirectToAuth:i.redirectToAuth},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}},JA=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)}},ZA=class{constructor(e){this.apiClient=e||q.instance}deleteEmployeeengagementCelebration(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "celebrationId" when calling patchEmployeeengagementCelebration';if(i==null)throw'Missing the required parameter "body" when calling patchEmployeeengagementCelebration';return this.apiClient.callApi("/api/v2/employeeengagement/celebrations/{celebrationId}","PATCH",{celebrationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postEmployeeengagementRecognitions(e,i){if(i=i||{},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"],i.customHeaders)}},KA=class{constructor(e){this.apiClient=e||q.instance}postEventsConversations(e,i){if(i=i||{},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"],i.customHeaders)}postEventsRoutingCustomkpiattributions(e,i){if(i=i||{},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"],i.customHeaders)}postEventsUsersPresence(e,i){if(i=i||{},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"],i.customHeaders)}postEventsUsersRoutingstatus(e,i){if(i=i||{},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"],i.customHeaders)}},QA=class{constructor(e){this.apiClient=e||q.instance}deleteExternalcontactsContact(e,i){if(i=i||{},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"],i.customHeaders)}deleteExternalcontactsContactNote(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "contactId" when calling deleteExternalcontactsContactNote';if(i==null||i==="")throw'Missing the required parameter "noteId" when calling deleteExternalcontactsContactNote';return this.apiClient.callApi("/api/v2/externalcontacts/contacts/{contactId}/notes/{noteId}","DELETE",{contactId:e,noteId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteExternalcontactsContactsSchema(e,i){if(i=i||{},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"],i.customHeaders)}deleteExternalcontactsExternalsource(e,i){if(i=i||{},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"],i.customHeaders)}deleteExternalcontactsImportCsvSetting(e,i){if(i=i||{},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"],i.customHeaders)}deleteExternalcontactsImportSetting(e,i){if(i=i||{},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"],i.customHeaders)}deleteExternalcontactsOrganization(e,i){if(i=i||{},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"],i.customHeaders)}deleteExternalcontactsOrganizationNote(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "externalOrganizationId" when calling deleteExternalcontactsOrganizationNote';if(i==null||i==="")throw'Missing the required parameter "noteId" when calling deleteExternalcontactsOrganizationNote';return this.apiClient.callApi("/api/v2/externalcontacts/organizations/{externalOrganizationId}/notes/{noteId}","DELETE",{externalOrganizationId:e,noteId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteExternalcontactsOrganizationTrustor(e,i){if(i=i||{},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"],i.customHeaders)}deleteExternalcontactsRelationship(e,i){if(i=i||{},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"],i.customHeaders)}getExternalcontactsContact(e,i){if(i=i||{},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(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getExternalcontactsContactIdentifiers(e,i){if(i=i||{},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"],i.customHeaders)}getExternalcontactsContactJourneySegments(e,i){if(i=i||{},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:i.includeMerged,limit:i.limit},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getExternalcontactsContactJourneySessions(e,i){if(i=i||{},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:i.pageSize,after:i.after,includeMerged:i.includeMerged},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getExternalcontactsContactNote(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "contactId" when calling getExternalcontactsContactNote';if(i==null||i==="")throw'Missing the required parameter "noteId" when calling getExternalcontactsContactNote';return this.apiClient.callApi("/api/v2/externalcontacts/contacts/{contactId}/notes/{noteId}","GET",{contactId:e,noteId:i},{expand:this.apiClient.buildCollectionParam(n.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getExternalcontactsContactNotes(e,i){if(i=i||{},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:i.pageSize,pageNumber:i.pageNumber,sortOrder:i.sortOrder,expand:this.apiClient.buildCollectionParam(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getExternalcontactsContactUnresolved(e,i){if(i=i||{},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(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getExternalcontactsContactsSchemaVersion(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "schemaId" when calling getExternalcontactsContactsSchemaVersion';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getExternalcontactsContactsSchemaVersions(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getExternalcontactsExternalsources(e){return e=e||{},this.apiClient.callApi("/api/v2/externalcontacts/externalsources","GET",{},{cursor:e.cursor,limit:e.limit,name:e.name,active:e.active},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getExternalcontactsImportCsvSetting(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getExternalcontactsImportCsvUploadPreview(e,i){if(i=i||{},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"],i.customHeaders)}getExternalcontactsImportJob(e,i){if(i=i||{},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(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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"],i.customHeaders)}getExternalcontactsImportSettings(e){return e=e||{},this.apiClient.callApi("/api/v2/externalcontacts/import/settings","GET",{},{after:e.after,pageSize:e.pageSize,sortOrder:e.sortOrder,name:e.name},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getExternalcontactsOrganization(e,i){if(i=i||{},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(i.expand,"multi"),includeTrustors:i.includeTrustors},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getExternalcontactsOrganizationContacts(e,i){if(i=i||{},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:i.pageSize,pageNumber:i.pageNumber,q:i.q,sortOrder:i.sortOrder,expand:this.apiClient.buildCollectionParam(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getExternalcontactsOrganizationIdentifiers(e,i){if(i=i||{},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"],i.customHeaders)}getExternalcontactsOrganizationNote(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "externalOrganizationId" when calling getExternalcontactsOrganizationNote';if(i==null||i==="")throw'Missing the required parameter "noteId" when calling getExternalcontactsOrganizationNote';return this.apiClient.callApi("/api/v2/externalcontacts/organizations/{externalOrganizationId}/notes/{noteId}","GET",{externalOrganizationId:e,noteId:i},{expand:this.apiClient.buildCollectionParam(n.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getExternalcontactsOrganizationNotes(e,i){if(i=i||{},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:i.pageSize,pageNumber:i.pageNumber,sortOrder:i.sortOrder,expand:this.apiClient.buildCollectionParam(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getExternalcontactsOrganizationRelationships(e,i){if(i=i||{},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:i.pageSize,pageNumber:i.pageNumber,expand:this.apiClient.buildCollectionParam(i.expand,"multi"),sortOrder:i.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getExternalcontactsOrganizations(e){return e=e||{},this.apiClient.callApi("/api/v2/externalcontacts/organizations","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,q:e.q,trustorId:this.apiClient.buildCollectionParam(e.trustorId,"multi"),sortOrder:e.sortOrder,expand:this.apiClient.buildCollectionParam(e.expand,"multi"),includeTrustors:e.includeTrustors,divisionIds:this.apiClient.buildCollectionParam(e.divisionIds,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getExternalcontactsOrganizationsSchema(e,i){if(i=i||{},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"],i.customHeaders)}getExternalcontactsOrganizationsSchemaVersion(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "schemaId" when calling getExternalcontactsOrganizationsSchemaVersion';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getExternalcontactsOrganizationsSchemaVersions(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getExternalcontactsReversewhitepageslookup(e,i){if(i=i||{},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(i.expand,"multi"),divisionId:i.divisionId},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "contactId" when calling patchExternalcontactsContact';if(i==null)throw'Missing the required parameter "body" when calling patchExternalcontactsContact';return this.apiClient.callApi("/api/v2/externalcontacts/contacts/{contactId}","PATCH",{contactId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchExternalcontactsContactIdentifiers(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "contactId" when calling patchExternalcontactsContactIdentifiers';if(i==null)throw'Missing the required parameter "body" when calling patchExternalcontactsContactIdentifiers';return this.apiClient.callApi("/api/v2/externalcontacts/contacts/{contactId}/identifiers","PATCH",{contactId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchExternalcontactsOrganizationIdentifiers(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "externalOrganizationId" when calling patchExternalcontactsOrganizationIdentifiers';if(i==null)throw'Missing the required parameter "body" when calling patchExternalcontactsOrganizationIdentifiers';return this.apiClient.callApi("/api/v2/externalcontacts/organizations/{externalOrganizationId}/identifiers","PATCH",{externalOrganizationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postExternalcontactsBulkContacts(e,i){if(i=i||{},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"],i.customHeaders)}postExternalcontactsBulkContactsAdd(e,i){if(i=i||{},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"],i.customHeaders)}postExternalcontactsBulkContactsDivisionviews(e,i){if(i=i||{},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"],i.customHeaders)}postExternalcontactsBulkContactsEnrich(e,i){if(i=i||{},e==null)throw'Missing the required parameter "body" when calling postExternalcontactsBulkContactsEnrich';return this.apiClient.callApi("/api/v2/externalcontacts/bulk/contacts/enrich","POST",{},{dryRun:i.dryRun},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postExternalcontactsBulkContactsRemove(e,i){if(i=i||{},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"],i.customHeaders)}postExternalcontactsBulkContactsUnresolved(e,i){if(i=i||{},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"],i.customHeaders)}postExternalcontactsBulkContactsUpdate(e,i){if(i=i||{},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"],i.customHeaders)}postExternalcontactsBulkNotes(e,i){if(i=i||{},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"],i.customHeaders)}postExternalcontactsBulkNotesAdd(e,i){if(i=i||{},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"],i.customHeaders)}postExternalcontactsBulkNotesRemove(e,i){if(i=i||{},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"],i.customHeaders)}postExternalcontactsBulkNotesUpdate(e,i){if(i=i||{},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"],i.customHeaders)}postExternalcontactsBulkOrganizations(e,i){if(i=i||{},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"],i.customHeaders)}postExternalcontactsBulkOrganizationsAdd(e,i){if(i=i||{},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"],i.customHeaders)}postExternalcontactsBulkOrganizationsDivisionviews(e,i){if(i=i||{},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"],i.customHeaders)}postExternalcontactsBulkOrganizationsEnrich(e,i){if(i=i||{},e==null)throw'Missing the required parameter "body" when calling postExternalcontactsBulkOrganizationsEnrich';return this.apiClient.callApi("/api/v2/externalcontacts/bulk/organizations/enrich","POST",{},{dryRun:i.dryRun},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postExternalcontactsBulkOrganizationsRemove(e,i){if(i=i||{},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"],i.customHeaders)}postExternalcontactsBulkOrganizationsUpdate(e,i){if(i=i||{},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"],i.customHeaders)}postExternalcontactsBulkRelationships(e,i){if(i=i||{},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"],i.customHeaders)}postExternalcontactsBulkRelationshipsAdd(e,i){if(i=i||{},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"],i.customHeaders)}postExternalcontactsBulkRelationshipsRemove(e,i){if(i=i||{},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"],i.customHeaders)}postExternalcontactsBulkRelationshipsUpdate(e,i){if(i=i||{},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"],i.customHeaders)}postExternalcontactsContactJourneySegments(e,i){if(i=i||{},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},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postExternalcontactsContactNotes(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "contactId" when calling postExternalcontactsContactNotes';if(i==null)throw'Missing the required parameter "body" when calling postExternalcontactsContactNotes';return this.apiClient.callApi("/api/v2/externalcontacts/contacts/{contactId}/notes","POST",{contactId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postExternalcontactsContactPromotion(e,i){if(i=i||{},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"],i.customHeaders)}postExternalcontactsContacts(e,i){if(i=i||{},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"],i.customHeaders)}postExternalcontactsContactsEnrich(e,i){if(i=i||{},e==null)throw'Missing the required parameter "body" when calling postExternalcontactsContactsEnrich';return this.apiClient.callApi("/api/v2/externalcontacts/contacts/enrich","POST",{},{dryRun:i.dryRun},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postExternalcontactsContactsExports(e,i){if(i=i||{},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"],i.customHeaders)}postExternalcontactsContactsMerge(e,i){if(i=i||{},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"],i.customHeaders)}postExternalcontactsContactsSchemas(e,i){if(i=i||{},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"],i.customHeaders)}postExternalcontactsExternalsources(e,i){if(i=i||{},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"],i.customHeaders)}postExternalcontactsIdentifierlookup(e,i){if(i=i||{},e==null)throw'Missing the required parameter "identifier" when calling postExternalcontactsIdentifierlookup';return this.apiClient.callApi("/api/v2/externalcontacts/identifierlookup","POST",{},{expand:this.apiClient.buildCollectionParam(i.expand,"multi")},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postExternalcontactsIdentifierlookupContacts(e,i){if(i=i||{},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(i.expand,"multi")},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postExternalcontactsIdentifierlookupOrganizations(e,i){if(i=i||{},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(i.expand,"multi")},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postExternalcontactsImportCsvJobs(e,i){if(i=i||{},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"],i.customHeaders)}postExternalcontactsImportCsvSettings(e,i){if(i=i||{},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"],i.customHeaders)}postExternalcontactsImportCsvUploads(e,i){if(i=i||{},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"],i.customHeaders)}postExternalcontactsImportJobs(e,i){if(i=i||{},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"],i.customHeaders)}postExternalcontactsImportSettings(e,i){if(i=i||{},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"],i.customHeaders)}postExternalcontactsMergeContacts(e,i){if(i=i||{},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"],i.customHeaders)}postExternalcontactsOrganizationNotes(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "externalOrganizationId" when calling postExternalcontactsOrganizationNotes';if(i==null)throw'Missing the required parameter "body" when calling postExternalcontactsOrganizationNotes';return this.apiClient.callApi("/api/v2/externalcontacts/organizations/{externalOrganizationId}/notes","POST",{externalOrganizationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postExternalcontactsOrganizations(e,i){if(i=i||{},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"],i.customHeaders)}postExternalcontactsOrganizationsEnrich(e,i){if(i=i||{},e==null)throw'Missing the required parameter "body" when calling postExternalcontactsOrganizationsEnrich';return this.apiClient.callApi("/api/v2/externalcontacts/organizations/enrich","POST",{},{dryRun:i.dryRun},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postExternalcontactsOrganizationsSchemas(e,i){if(i=i||{},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"],i.customHeaders)}postExternalcontactsRelationships(e,i){if(i=i||{},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"],i.customHeaders)}putExternalcontactsContact(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "contactId" when calling putExternalcontactsContact';if(i==null)throw'Missing the required parameter "body" when calling putExternalcontactsContact';return this.apiClient.callApi("/api/v2/externalcontacts/contacts/{contactId}","PUT",{contactId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putExternalcontactsContactNote(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "contactId" when calling putExternalcontactsContactNote';if(i==null||i==="")throw'Missing the required parameter "noteId" when calling putExternalcontactsContactNote';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}putExternalcontactsContactsSchema(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "schemaId" when calling putExternalcontactsContactsSchema';if(i==null)throw'Missing the required parameter "body" when calling putExternalcontactsContactsSchema';return this.apiClient.callApi("/api/v2/externalcontacts/contacts/schemas/{schemaId}","PUT",{schemaId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putExternalcontactsConversation(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling putExternalcontactsConversation';if(i==null)throw'Missing the required parameter "body" when calling putExternalcontactsConversation';return this.apiClient.callApi("/api/v2/externalcontacts/conversations/{conversationId}","PUT",{conversationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putExternalcontactsExternalsource(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "externalSourceId" when calling putExternalcontactsExternalsource';if(i==null)throw'Missing the required parameter "body" when calling putExternalcontactsExternalsource';return this.apiClient.callApi("/api/v2/externalcontacts/externalsources/{externalSourceId}","PUT",{externalSourceId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putExternalcontactsImportCsvSetting(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "settingsId" when calling putExternalcontactsImportCsvSetting';if(i==null)throw'Missing the required parameter "body" when calling putExternalcontactsImportCsvSetting';return this.apiClient.callApi("/api/v2/externalcontacts/import/csv/settings/{settingsId}","PUT",{settingsId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putExternalcontactsImportJob(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "jobId" when calling putExternalcontactsImportJob';if(i==null)throw'Missing the required parameter "body" when calling putExternalcontactsImportJob';return this.apiClient.callApi("/api/v2/externalcontacts/import/jobs/{jobId}","PUT",{jobId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putExternalcontactsImportSetting(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "settingsId" when calling putExternalcontactsImportSetting';if(i==null)throw'Missing the required parameter "body" when calling putExternalcontactsImportSetting';return this.apiClient.callApi("/api/v2/externalcontacts/import/settings/{settingsId}","PUT",{settingsId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putExternalcontactsOrganization(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "externalOrganizationId" when calling putExternalcontactsOrganization';if(i==null)throw'Missing the required parameter "body" when calling putExternalcontactsOrganization';return this.apiClient.callApi("/api/v2/externalcontacts/organizations/{externalOrganizationId}","PUT",{externalOrganizationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putExternalcontactsOrganizationNote(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "externalOrganizationId" when calling putExternalcontactsOrganizationNote';if(i==null||i==="")throw'Missing the required parameter "noteId" when calling putExternalcontactsOrganizationNote';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}putExternalcontactsOrganizationTrustorTrustorId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "externalOrganizationId" when calling putExternalcontactsOrganizationTrustorTrustorId';if(i==null||i==="")throw'Missing the required parameter "trustorId" when calling putExternalcontactsOrganizationTrustorTrustorId';return this.apiClient.callApi("/api/v2/externalcontacts/organizations/{externalOrganizationId}/trustor/{trustorId}","PUT",{externalOrganizationId:e,trustorId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putExternalcontactsOrganizationsSchema(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "schemaId" when calling putExternalcontactsOrganizationsSchema';if(i==null)throw'Missing the required parameter "body" when calling putExternalcontactsOrganizationsSchema';return this.apiClient.callApi("/api/v2/externalcontacts/organizations/schemas/{schemaId}","PUT",{schemaId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putExternalcontactsRelationship(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "relationshipId" when calling putExternalcontactsRelationship';if(i==null)throw'Missing the required parameter "body" when calling putExternalcontactsRelationship';return this.apiClient.callApi("/api/v2/externalcontacts/relationships/{relationshipId}","PUT",{relationshipId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}},YA=class{constructor(e){this.apiClient=e||q.instance}deleteFaxDocument(e,i){if(i=i||{},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"],i.customHeaders)}getFaxDocument(e,i){if(i=i||{},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"],i.customHeaders)}getFaxDocumentContent(e,i){if(i=i||{},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"],i.customHeaders)}getFaxDocuments(e){return e=e||{},this.apiClient.callApi("/api/v2/fax/documents","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getFaxSettings(e){return e=e||{},this.apiClient.callApi("/api/v2/fax/settings","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getFaxSummary(e){return e=e||{},this.apiClient.callApi("/api/v2/fax/summary","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}putFaxDocument(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "documentId" when calling putFaxDocument';if(i==null)throw'Missing the required parameter "body" when calling putFaxDocument';return this.apiClient.callApi("/api/v2/fax/documents/{documentId}","PUT",{documentId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putFaxSettings(e){return e=e||{},this.apiClient.callApi("/api/v2/fax/settings","PUT",{},{},{},{},e.body,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}},XA=class{constructor(e){this.apiClient=e||q.instance}deleteAnalyticsFlowsAggregatesJob(e,i){if(i=i||{},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"],i.customHeaders)}getAnalyticsFlowsAggregatesJob(e,i){if(i=i||{},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"],i.customHeaders)}getAnalyticsFlowsAggregatesJobResults(e,i){if(i=i||{},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:i.cursor},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postAnalyticsFlowsActivityQuery(e,i){if(i=i||{},e==null)throw'Missing the required parameter "body" when calling postAnalyticsFlowsActivityQuery';return this.apiClient.callApi("/api/v2/analytics/flows/activity/query","POST",{},{pageSize:i.pageSize,pageNumber:i.pageNumber},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postAnalyticsFlowsAggregatesJobs(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsFlowsAggregatesQuery(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsFlowsObservationsQuery(e,i){if(i=i||{},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"],i.customHeaders)}},eb=class{constructor(e){this.apiClient=e||q.instance}deleteEmployeeperformanceExternalmetricsDefinition(e,i){if(i=i||{},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"],i.customHeaders)}deleteGamificationContest(e,i){if(i=i||{},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"],i.customHeaders)}getEmployeeperformanceExternalmetricsDefinition(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getGamificationContestAgentsScores(e,i){if(i=i||{},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:i.pageNumber,pageSize:i.pageSize,workday:i.workday,returnsView:i.returnsView},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getGamificationContestAgentsScoresMe(e,i){if(i=i||{},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:i.pageNumber,pageSize:i.pageSize,workday:i.workday,returnsView:i.returnsView},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getGamificationContestAgentsScoresTrends(e,i){if(i=i||{},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"],i.customHeaders)}getGamificationContestAgentsScoresTrendsMe(e,i){if(i=i||{},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"],i.customHeaders)}getGamificationContestPrizeimage(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "contestId" when calling getGamificationContestPrizeimage';if(i==null||i==="")throw'Missing the required parameter "prizeImageId" when calling getGamificationContestPrizeimage';return this.apiClient.callApi("/api/v2/gamification/contests/{contestId}/prizeimages/{prizeImageId}","GET",{contestId:e,prizeImageId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.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,i,n,a,r,s){if(s=s||{},e==null)throw'Missing the required parameter "filterType" when calling getGamificationInsights';if(i==null)throw'Missing the required parameter "filterId" when calling getGamificationInsights';if(n==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:i,granularity:n,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,i,n,a,r,s){if(s=s||{},e==null)throw'Missing the required parameter "filterType" when calling getGamificationInsightsDetails';if(i==null)throw'Missing the required parameter "filterId" when calling getGamificationInsightsDetails';if(n==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:i,granularity:n,comparativePeriodStartWorkday:a,primaryPeriodStartWorkday:r},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],s.customHeaders)}getGamificationInsightsGroupsTrends(e,i,n,a,r,s,o,l){if(l=l||{},e==null)throw'Missing the required parameter "filterType" when calling getGamificationInsightsGroupsTrends';if(i==null)throw'Missing the required parameter "filterId" when calling getGamificationInsightsGroupsTrends';if(n==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:i,granularity:n,comparativePeriodStartWorkday:a,comparativePeriodEndWorkday:r,primaryPeriodStartWorkday:s,primaryPeriodEndWorkday:o},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],l.customHeaders)}getGamificationInsightsGroupsTrendsAll(e,i,n,a,r,s,o,l){if(l=l||{},e==null)throw'Missing the required parameter "filterType" when calling getGamificationInsightsGroupsTrendsAll';if(i==null)throw'Missing the required parameter "filterId" when calling getGamificationInsightsGroupsTrendsAll';if(n==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:i,granularity:n,comparativePeriodStartWorkday:a,comparativePeriodEndWorkday:r,primaryPeriodStartWorkday:s,primaryPeriodEndWorkday:o},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],l.customHeaders)}getGamificationInsightsManagers(e,i,n,a,r){if(r=r||{},e==null)throw'Missing the required parameter "filterType" when calling getGamificationInsightsManagers';if(i==null)throw'Missing the required parameter "filterId" when calling getGamificationInsightsManagers';if(n==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:i,granularity:n,startWorkday:a,pageSize:r.pageSize,pageNumber:r.pageNumber},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}getGamificationInsightsMembers(e,i,n,a,r){if(r=r||{},e==null)throw'Missing the required parameter "filterType" when calling getGamificationInsightsMembers';if(i==null)throw'Missing the required parameter "filterId" when calling getGamificationInsightsMembers';if(n==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:i,granularity:n,startWorkday:a,reportsTo:r.reportsTo},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}getGamificationInsightsRankings(e,i,n,a,r,s,o){if(o=o||{},e==null)throw'Missing the required parameter "filterType" when calling getGamificationInsightsRankings';if(i==null)throw'Missing the required parameter "filterId" when calling getGamificationInsightsRankings';if(n==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:i,granularity:n,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,i,n,a,r,s,o,l){if(l=l||{},e==null)throw'Missing the required parameter "filterType" when calling getGamificationInsightsTrends';if(i==null)throw'Missing the required parameter "filterId" when calling getGamificationInsightsTrends';if(n==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:i,granularity:n,comparativePeriodStartWorkday:a,comparativePeriodEndWorkday:r,primaryPeriodStartWorkday:s,primaryPeriodEndWorkday:o},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],l.customHeaders)}getGamificationInsightsUserDetails(e,i,n,a,r,s,o){if(o=o||{},e==null||e==="")throw'Missing the required parameter "userId" when calling getGamificationInsightsUserDetails';if(i==null)throw'Missing the required parameter "filterType" when calling getGamificationInsightsUserDetails';if(n==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:i,filterId:n,granularity:a,comparativePeriodStartWorkday:r,primaryPeriodStartWorkday:s},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],o.customHeaders)}getGamificationInsightsUserTrends(e,i,n,a,r,s,o,l,u){if(u=u||{},e==null||e==="")throw'Missing the required parameter "userId" when calling getGamificationInsightsUserTrends';if(i==null)throw'Missing the required parameter "filterType" when calling getGamificationInsightsUserTrends';if(n==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:i,filterId:n,granularity:a,comparativePeriodStartWorkday:r,comparativePeriodEndWorkday:s,primaryPeriodStartWorkday:o,primaryPeriodEndWorkday:l},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],u.customHeaders)}getGamificationLeaderboard(e,i,n){if(n=n||{},e==null)throw'Missing the required parameter "startWorkday" when calling getGamificationLeaderboard';if(i==null)throw'Missing the required parameter "endWorkday" when calling getGamificationLeaderboard';return this.apiClient.callApi("/api/v2/gamification/leaderboard","GET",{},{startWorkday:e,endWorkday:i,metricId:n.metricId},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getGamificationLeaderboardAll(e,i,n,a,r){if(r=r||{},e==null)throw'Missing the required parameter "filterType" when calling getGamificationLeaderboardAll';if(i==null)throw'Missing the required parameter "filterId" when calling getGamificationLeaderboardAll';if(n==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:i,startWorkday:n,endWorkday:a,metricId:r.metricId},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}getGamificationLeaderboardAllBestpoints(e,i,n){if(n=n||{},e==null)throw'Missing the required parameter "filterType" when calling getGamificationLeaderboardAllBestpoints';if(i==null)throw'Missing the required parameter "filterId" when calling getGamificationLeaderboardAllBestpoints';return this.apiClient.callApi("/api/v2/gamification/leaderboard/all/bestpoints","GET",{},{filterType:e,filterId:i},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getGamificationProfileMembers(e,i){if(i=i||{},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"],i.customHeaders)}getGamificationProfileMetric(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "profileId" when calling getGamificationProfileMetric';if(i==null||i==="")throw'Missing the required parameter "metricId" when calling getGamificationProfileMetric';return this.apiClient.callApi("/api/v2/gamification/profiles/{profileId}/metrics/{metricId}","GET",{profileId:e,metricId:i},{workday:n.workday},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getGamificationProfileMetrics(e,i){if(i=i||{},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(i.expand,"multi"),workday:i.workday,metricIds:i.metricIds},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getGamificationProfileMetricsObjectivedetails(e,i){if(i=i||{},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:i.workday},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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:i.workday},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getGamificationScorecardsAttendance(e,i,n){if(n=n||{},e==null)throw'Missing the required parameter "startWorkday" when calling getGamificationScorecardsAttendance';if(i==null)throw'Missing the required parameter "endWorkday" when calling getGamificationScorecardsAttendance';return this.apiClient.callApi("/api/v2/gamification/scorecards/attendance","GET",{},{startWorkday:e,endWorkday:i},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.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,i){if(i=i||{},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"],i.customHeaders)}getGamificationScorecardsPointsAverage(e,i){if(i=i||{},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"],i.customHeaders)}getGamificationScorecardsPointsTrends(e,i,n){if(n=n||{},e==null)throw'Missing the required parameter "startWorkday" when calling getGamificationScorecardsPointsTrends';if(i==null)throw'Missing the required parameter "endWorkday" when calling getGamificationScorecardsPointsTrends';return this.apiClient.callApi("/api/v2/gamification/scorecards/points/trends","GET",{},{startWorkday:e,endWorkday:i,dayOfWeek:n.dayOfWeek},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getGamificationScorecardsProfileMetricUserValuesTrends(e,i,n,a,r,s){if(s=s||{},e==null||e==="")throw'Missing the required parameter "profileId" when calling getGamificationScorecardsProfileMetricUserValuesTrends';if(i==null||i==="")throw'Missing the required parameter "metricId" when calling getGamificationScorecardsProfileMetricUserValuesTrends';if(n==null||n==="")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:i,userId:n},{startWorkday:a,endWorkday:r,referenceWorkday:s.referenceWorkday,timeZone:s.timeZone},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],s.customHeaders)}getGamificationScorecardsProfileMetricUsersValuesTrends(e,i,n,a,r,s){if(s=s||{},e==null||e==="")throw'Missing the required parameter "profileId" when calling getGamificationScorecardsProfileMetricUsersValuesTrends';if(i==null||i==="")throw'Missing the required parameter "metricId" when calling getGamificationScorecardsProfileMetricUsersValuesTrends';if(n==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:i},{filterType:n,filterId:s.filterId,startWorkday:a,endWorkday:r,referenceWorkday:s.referenceWorkday,timeZone:s.timeZone},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],s.customHeaders)}getGamificationScorecardsProfileMetricValuesTrends(e,i,n,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "profileId" when calling getGamificationScorecardsProfileMetricValuesTrends';if(i==null||i==="")throw'Missing the required parameter "metricId" when calling getGamificationScorecardsProfileMetricValuesTrends';if(n==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:i},{filterType:r.filterType,startWorkday:n,endWorkday:a,referenceWorkday:r.referenceWorkday,timeZone:r.timeZone},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}getGamificationScorecardsUser(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling getGamificationScorecardsUser';if(i==null)throw'Missing the required parameter "workday" when calling getGamificationScorecardsUser';return this.apiClient.callApi("/api/v2/gamification/scorecards/users/{userId}","GET",{userId:e},{workday:i,expand:this.apiClient.buildCollectionParam(n.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getGamificationScorecardsUserAttendance(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "userId" when calling getGamificationScorecardsUserAttendance';if(i==null)throw'Missing the required parameter "startWorkday" when calling getGamificationScorecardsUserAttendance';if(n==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:i,endWorkday:n},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getGamificationScorecardsUserBestpoints(e,i){if(i=i||{},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"],i.customHeaders)}getGamificationScorecardsUserPointsAlltime(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling getGamificationScorecardsUserPointsAlltime';if(i==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:i},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getGamificationScorecardsUserPointsTrends(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "userId" when calling getGamificationScorecardsUserPointsTrends';if(i==null)throw'Missing the required parameter "startWorkday" when calling getGamificationScorecardsUserPointsTrends';if(n==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:i,endWorkday:n,dayOfWeek:a.dayOfWeek},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getGamificationScorecardsUserValuesTrends(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "userId" when calling getGamificationScorecardsUserValuesTrends';if(i==null)throw'Missing the required parameter "startWorkday" when calling getGamificationScorecardsUserValuesTrends';if(n==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:i,endWorkday:n,timeZone:a.timeZone},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getGamificationScorecardsUsersPointsAverage(e,i,n,a){if(a=a||{},e==null)throw'Missing the required parameter "filterType" when calling getGamificationScorecardsUsersPointsAverage';if(i==null)throw'Missing the required parameter "filterId" when calling getGamificationScorecardsUsersPointsAverage';if(n==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:i,workday:n},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getGamificationScorecardsUsersValuesAverage(e,i,n,a){if(a=a||{},e==null)throw'Missing the required parameter "filterType" when calling getGamificationScorecardsUsersValuesAverage';if(i==null)throw'Missing the required parameter "filterId" when calling getGamificationScorecardsUsersValuesAverage';if(n==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:i,workday:n,timeZone:a.timeZone},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getGamificationScorecardsUsersValuesTrends(e,i,n,a,r){if(r=r||{},e==null)throw'Missing the required parameter "filterType" when calling getGamificationScorecardsUsersValuesTrends';if(i==null)throw'Missing the required parameter "filterId" when calling getGamificationScorecardsUsersValuesTrends';if(n==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:i,startWorkday:n,endWorkday:a,timeZone:r.timeZone},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}getGamificationScorecardsValuesAverage(e,i){if(i=i||{},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:i.timeZone},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getGamificationScorecardsValuesTrends(e,i,n){if(n=n||{},e==null)throw'Missing the required parameter "startWorkday" when calling getGamificationScorecardsValuesTrends';if(i==null)throw'Missing the required parameter "endWorkday" when calling getGamificationScorecardsValuesTrends';return this.apiClient.callApi("/api/v2/gamification/scorecards/values/trends","GET",{},{filterType:n.filterType,referenceWorkday:n.referenceWorkday,startWorkday:e,endWorkday:i,timeZone:n.timeZone},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.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,i){if(i=i||{},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"],i.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,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "metricId" when calling patchEmployeeperformanceExternalmetricsDefinition';if(i==null)throw'Missing the required parameter "body" when calling patchEmployeeperformanceExternalmetricsDefinition';return this.apiClient.callApi("/api/v2/employeeperformance/externalmetrics/definitions/{metricId}","PATCH",{metricId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchGamificationContest(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "contestId" when calling patchGamificationContest';if(i==null)throw'Missing the required parameter "body" when calling patchGamificationContest';return this.apiClient.callApi("/api/v2/gamification/contests/{contestId}","PATCH",{contestId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.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,i){if(i=i||{},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"],i.customHeaders)}postGamificationContestsUploadsPrizeimages(e,i){if(i=i||{},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"],i.customHeaders)}postGamificationProfileActivate(e,i){if(i=i||{},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"],i.customHeaders)}postGamificationProfileDeactivate(e,i){if(i=i||{},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"],i.customHeaders)}postGamificationProfileMembers(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "profileId" when calling postGamificationProfileMembers';if(i==null)throw'Missing the required parameter "body" when calling postGamificationProfileMembers';return this.apiClient.callApi("/api/v2/gamification/profiles/{profileId}/members","POST",{profileId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postGamificationProfileMembersValidate(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "profileId" when calling postGamificationProfileMembersValidate';if(i==null)throw'Missing the required parameter "body" when calling postGamificationProfileMembersValidate';return this.apiClient.callApi("/api/v2/gamification/profiles/{profileId}/members/validate","POST",{profileId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postGamificationProfileMetricLink(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "sourceProfileId" when calling postGamificationProfileMetricLink';if(i==null||i==="")throw'Missing the required parameter "sourceMetricId" when calling postGamificationProfileMetricLink';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postGamificationProfileMetrics(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "profileId" when calling postGamificationProfileMetrics';if(i==null)throw'Missing the required parameter "body" when calling postGamificationProfileMetrics';return this.apiClient.callApi("/api/v2/gamification/profiles/{profileId}/metrics","POST",{profileId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postGamificationProfiles(e,i){if(i=i||{},e==null)throw'Missing the required parameter "body" when calling postGamificationProfiles';return this.apiClient.callApi("/api/v2/gamification/profiles","POST",{},{copyMetrics:i.copyMetrics},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postGamificationProfilesUserQuery(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling postGamificationProfilesUserQuery';if(i==null)throw'Missing the required parameter "body" when calling postGamificationProfilesUserQuery';return this.apiClient.callApi("/api/v2/gamification/profiles/users/{userId}/query","POST",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postGamificationProfilesUsersMeQuery(e,i){if(i=i||{},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"],i.customHeaders)}putGamificationContest(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "contestId" when calling putGamificationContest';if(i==null)throw'Missing the required parameter "body" when calling putGamificationContest';return this.apiClient.callApi("/api/v2/gamification/contests/{contestId}","PUT",{contestId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putGamificationProfile(e,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "profileId" when calling putGamificationProfile';return this.apiClient.callApi("/api/v2/gamification/profiles/{profileId}","PUT",{profileId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}putGamificationProfileMetric(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "profileId" when calling putGamificationProfileMetric';if(i==null||i==="")throw'Missing the required parameter "metricId" when calling putGamificationProfileMetric';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}putGamificationStatus(e,i){if(i=i||{},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"],i.customHeaders)}},ib=class{constructor(e){this.apiClient=e||q.instance}getGdprRequest(e,i){if(i=i||{},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"],i.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,i,n){if(n=n||{},e==null)throw'Missing the required parameter "searchType" when calling getGdprSubjects';if(i==null)throw'Missing the required parameter "searchValue" when calling getGdprSubjects';return this.apiClient.callApi("/api/v2/gdpr/subjects","GET",{},{searchType:e,searchValue:i},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postGdprRequests(e,i){if(i=i||{},e==null)throw'Missing the required parameter "body" when calling postGdprRequests';return this.apiClient.callApi("/api/v2/gdpr/requests","POST",{},{deleteConfirmed:i.deleteConfirmed},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}},nb=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,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling getUserGeolocation';if(i==null||i==="")throw'Missing the required parameter "clientId" when calling getUserGeolocation';return this.apiClient.callApi("/api/v2/users/{userId}/geolocations/{clientId}","GET",{userId:e,clientId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchGeolocationsSettings(e,i){if(i=i||{},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"],i.customHeaders)}patchUserGeolocation(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "userId" when calling patchUserGeolocation';if(i==null||i==="")throw'Missing the required parameter "clientId" when calling patchUserGeolocation';if(n==null)throw'Missing the required parameter "body" when calling patchUserGeolocation';return this.apiClient.callApi("/api/v2/users/{userId}/geolocations/{clientId}","PATCH",{userId:e,clientId:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}},tb=class{constructor(e){this.apiClient=e||q.instance}deleteGreeting(e,i){if(i=i||{},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"],i.customHeaders)}getGreeting(e,i){if(i=i||{},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"],i.customHeaders)}getGreetingDownloads(e,i){if(i=i||{},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:i.formatId},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getGreetingGroupsDownloads(e,i){if(i=i||{},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:i.formatId},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getGreetingMedia(e,i){if(i=i||{},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:i.formatId},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getGreetingUsersDownloads(e,i){if(i=i||{},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:i.formatId},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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:i.pageSize,pageNumber:i.pageNumber},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getGroupGreetingsDefaults(e,i){if(i=i||{},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"],i.customHeaders)}getUserGreetings(e,i){if(i=i||{},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:i.pageSize,pageNumber:i.pageNumber},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getUserGreetingsDefaults(e,i){if(i=i||{},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"],i.customHeaders)}postGreetings(e,i){if(i=i||{},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"],i.customHeaders)}postGroupGreetings(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "groupId" when calling postGroupGreetings';if(i==null)throw'Missing the required parameter "body" when calling postGroupGreetings';return this.apiClient.callApi("/api/v2/groups/{groupId}/greetings","POST",{groupId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postUserGreetings(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling postUserGreetings';if(i==null)throw'Missing the required parameter "body" when calling postUserGreetings';return this.apiClient.callApi("/api/v2/users/{userId}/greetings","POST",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putGreeting(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "greetingId" when calling putGreeting';if(i==null)throw'Missing the required parameter "body" when calling putGreeting';return this.apiClient.callApi("/api/v2/greetings/{greetingId}","PUT",{greetingId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putGreetingsDefaults(e,i){if(i=i||{},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"],i.customHeaders)}putGroupGreetingsDefaults(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "groupId" when calling putGroupGreetingsDefaults';if(i==null)throw'Missing the required parameter "body" when calling putGroupGreetingsDefaults';return this.apiClient.callApi("/api/v2/groups/{groupId}/greetings/defaults","PUT",{groupId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putUserGreetingsDefaults(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling putUserGreetingsDefaults';if(i==null)throw'Missing the required parameter "body" when calling putUserGreetingsDefaults';return this.apiClient.callApi("/api/v2/users/{userId}/greetings/defaults","PUT",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}},ab=class{constructor(e){this.apiClient=e||q.instance}deleteGroup(e,i){if(i=i||{},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"],i.customHeaders)}deleteGroupDynamicsettings(e,i){if(i=i||{},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"],i.customHeaders)}deleteGroupMembers(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "groupId" when calling deleteGroupMembers';if(i==null)throw'Missing the required parameter "ids" when calling deleteGroupMembers';return this.apiClient.callApi("/api/v2/groups/{groupId}/members","DELETE",{groupId:e},{ids:i},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getFieldconfig(e,i){if(i=i||{},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"],i.customHeaders)}getGroup(e,i){if(i=i||{},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"],i.customHeaders)}getGroupDynamicsettings(e,i){if(i=i||{},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"],i.customHeaders)}getGroupIndividuals(e,i){if(i=i||{},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"],i.customHeaders)}getGroupMembers(e,i){if(i=i||{},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:i.pageSize,pageNumber:i.pageNumber,sortOrder:i.sortOrder,expand:this.apiClient.buildCollectionParam(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getGroupProfile(e,i){if(i=i||{},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:i.fields},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "groupId" when calling postGroupMembers';if(i==null)throw'Missing the required parameter "body" when calling postGroupMembers';return this.apiClient.callApi("/api/v2/groups/{groupId}/members","POST",{groupId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postGroups(e,i){if(i=i||{},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"],i.customHeaders)}postGroupsDynamicsettingsPreview(e,i){if(i=i||{},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"],i.customHeaders)}postGroupsSearch(e,i){if(i=i||{},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"],i.customHeaders)}putGroup(e,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "groupId" when calling putGroup';return this.apiClient.callApi("/api/v2/groups/{groupId}","PUT",{groupId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}putGroupDynamicsettings(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "groupId" when calling putGroupDynamicsettings';if(i==null)throw'Missing the required parameter "body" when calling putGroupDynamicsettings';return this.apiClient.callApi("/api/v2/groups/{groupId}/dynamicsettings","PUT",{groupId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}},rb=class{constructor(e){this.apiClient=e||q.instance}deleteIdentityprovider(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}putIdentityprovider(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "providerId" when calling putIdentityprovider';if(i==null)throw'Missing the required parameter "body" when calling putIdentityprovider';return this.apiClient.callApi("/api/v2/identityproviders/{providerId}","PUT",{providerId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putIdentityprovidersAdfs(e,i){if(i=i||{},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"],i.customHeaders)}putIdentityprovidersCic(e,i){if(i=i||{},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"],i.customHeaders)}putIdentityprovidersGeneric(e,i){if(i=i||{},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"],i.customHeaders)}putIdentityprovidersGsuite(e,i){if(i=i||{},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"],i.customHeaders)}putIdentityprovidersIdentitynow(e,i){if(i=i||{},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"],i.customHeaders)}putIdentityprovidersOkta(e,i){if(i=i||{},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"],i.customHeaders)}putIdentityprovidersOnelogin(e,i){if(i=i||{},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"],i.customHeaders)}putIdentityprovidersPing(e,i){if(i=i||{},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"],i.customHeaders)}putIdentityprovidersPurecloud(e,i){if(i=i||{},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"],i.customHeaders)}putIdentityprovidersPureengage(e,i){if(i=i||{},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"],i.customHeaders)}putIdentityprovidersSalesforce(e,i){if(i=i||{},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"],i.customHeaders)}},sb=class{constructor(e){this.apiClient=e||q.instance}getInfrastructureascodeAccelerator(e,i){if(i=i||{},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:i.preferredLanguage},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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:i.details},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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"],i.customHeaders)}},ob=class{constructor(e){this.apiClient=e||q.instance}deleteIntegration(e,i){if(i=i||{},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"],i.customHeaders)}deleteIntegrationsAction(e,i){if(i=i||{},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"],i.customHeaders)}deleteIntegrationsActionDraft(e,i){if(i=i||{},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"],i.customHeaders)}deleteIntegrationsCredential(e,i){if(i=i||{},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"],i.customHeaders)}getIntegration(e,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "integrationId" when calling getIntegration';return this.apiClient.callApi("/api/v2/integrations/{integrationId}","GET",{integrationId:e},{pageSize:i.pageSize,pageNumber:i.pageNumber,sortBy:i.sortBy,expand:this.apiClient.buildCollectionParam(i.expand,"multi"),nextPage:i.nextPage,previousPage:i.previousPage},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getIntegrationConfigCurrent(e,i){if(i=i||{},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"],i.customHeaders)}getIntegrations(e){return e=e||{},this.apiClient.callApi("/api/v2/integrations","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,sortBy:e.sortBy,expand:this.apiClient.buildCollectionParam(e.expand,"multi"),nextPage:e.nextPage,previousPage:e.previousPage,ids:this.apiClient.buildCollectionParam(e.ids,"multi"),integrationType:e.integrationType,reportedState:e.reportedState},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getIntegrationsAction(e,i){if(i=i||{},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:i.expand,flatten:i.flatten,includeConfig:i.includeConfig},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getIntegrationsActionDraft(e,i){if(i=i||{},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:i.expand,flatten:i.flatten,includeConfig:i.includeConfig},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getIntegrationsActionDraftFunction(e,i){if(i=i||{},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"],i.customHeaders)}getIntegrationsActionDraftSchema(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "actionId" when calling getIntegrationsActionDraftSchema';if(i==null||i==="")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:i},{flatten:n.flatten},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getIntegrationsActionDraftTemplate(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "actionId" when calling getIntegrationsActionDraftTemplate';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["text/plain"],n.customHeaders)}getIntegrationsActionDraftValidation(e,i){if(i=i||{},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"],i.customHeaders)}getIntegrationsActionFunction(e,i){if(i=i||{},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"],i.customHeaders)}getIntegrationsActionSchema(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "actionId" when calling getIntegrationsActionSchema';if(i==null||i==="")throw'Missing the required parameter "fileName" when calling getIntegrationsActionSchema';return this.apiClient.callApi("/api/v2/integrations/actions/{actionId}/schemas/{fileName}","GET",{actionId:e,fileName:i},{flatten:n.flatten},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getIntegrationsActionTemplate(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "actionId" when calling getIntegrationsActionTemplate';if(i==null||i==="")throw'Missing the required parameter "fileName" when calling getIntegrationsActionTemplate';return this.apiClient.callApi("/api/v2/integrations/actions/{actionId}/templates/{fileName}","GET",{actionId:e,fileName:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["text/plain"],n.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,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "integrationId" when calling getIntegrationsBotconnectorBot';if(i==null||i==="")throw'Missing the required parameter "botId" when calling getIntegrationsBotconnectorBot';return this.apiClient.callApi("/api/v2/integrations/botconnectors/{integrationId}/bots/{botId}","GET",{integrationId:e,botId:i},{version:n.version},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getIntegrationsBotconnectorBots(e,i){if(i=i||{},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:i.pageNumber,pageSize:i.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getIntegrationsBotconnectorBotsSummaries(e,i){if(i=i||{},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:i.pageNumber,pageSize:i.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getIntegrationsBotconnectorIntegrationIdBot(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "integrationId" when calling getIntegrationsBotconnectorIntegrationIdBot';if(i==null||i==="")throw'Missing the required parameter "botId" when calling getIntegrationsBotconnectorIntegrationIdBot';return this.apiClient.callApi("/api/v2/integrations/botconnector/{integrationId}/bots/{botId}","GET",{integrationId:e,botId:i},{version:n.version},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getIntegrationsBotconnectorIntegrationIdBotVersions(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "integrationId" when calling getIntegrationsBotconnectorIntegrationIdBotVersions';if(i==null||i==="")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:i},{pageNumber:n.pageNumber,pageSize:n.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getIntegrationsBotconnectorIntegrationIdBots(e,i){if(i=i||{},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"],i.customHeaders)}getIntegrationsBotconnectorIntegrationIdBotsSummaries(e,i){if(i=i||{},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:i.pageNumber,pageSize:i.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getIntegrationsClientapps(e){return e=e||{},this.apiClient.callApi("/api/v2/integrations/clientapps","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,sortBy:e.sortBy,expand:this.apiClient.buildCollectionParam(e.expand,"multi"),nextPage:e.nextPage,previousPage:e.previousPage},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getIntegrationsClientappsUnifiedcommunications(e){return e=e||{},this.apiClient.callApi("/api/v2/integrations/clientapps/unifiedcommunications","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,sortBy:e.sortBy,expand:this.apiClient.buildCollectionParam(e.expand,"multi"),nextPage:e.nextPage,previousPage:e.previousPage},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getIntegrationsCredential(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getIntegrationsSpeechDialogflowAgent(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getIntegrationsSpeechLexBotBotIdAliases(e,i){if(i=i||{},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:i.pageNumber,pageSize:i.pageSize,status:i.status,name:i.name},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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"],i.customHeaders)}getIntegrationsSpeechLexv2BotBotIdAliases(e,i){if(i=i||{},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:i.pageNumber,pageSize:i.pageSize,status:i.status,name:i.name},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "nuanceIntegrationId" when calling getIntegrationsSpeechNuanceNuanceIntegrationIdBot';if(i==null||i==="")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:i},{expand:this.apiClient.buildCollectionParam(n.expand,"multi"),targetChannel:n.targetChannel},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getIntegrationsSpeechNuanceNuanceIntegrationIdBotJob(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "nuanceIntegrationId" when calling getIntegrationsSpeechNuanceNuanceIntegrationIdBotJob';if(i==null||i==="")throw'Missing the required parameter "botId" when calling getIntegrationsSpeechNuanceNuanceIntegrationIdBotJob';if(n==null||n==="")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:i,jobId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getIntegrationsSpeechNuanceNuanceIntegrationIdBotJobResults(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "nuanceIntegrationId" when calling getIntegrationsSpeechNuanceNuanceIntegrationIdBotJobResults';if(i==null||i==="")throw'Missing the required parameter "botId" when calling getIntegrationsSpeechNuanceNuanceIntegrationIdBotJobResults';if(n==null||n==="")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:i,jobId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getIntegrationsSpeechNuanceNuanceIntegrationIdBots(e,i){if(i=i||{},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:i.pageNumber,pageSize:i.pageSize,onlyRegisteredBots:i.onlyRegisteredBots},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getIntegrationsSpeechNuanceNuanceIntegrationIdBotsJob(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "nuanceIntegrationId" when calling getIntegrationsSpeechNuanceNuanceIntegrationIdBotsJob';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getIntegrationsSpeechNuanceNuanceIntegrationIdBotsJobResults(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "nuanceIntegrationId" when calling getIntegrationsSpeechNuanceNuanceIntegrationIdBotsJobResults';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getIntegrationsSpeechSttEngine(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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:i.includeVoices},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getIntegrationsSpeechTtsEngineVoice(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "engineId" when calling getIntegrationsSpeechTtsEngineVoice';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getIntegrationsSpeechTtsEngineVoices(e,i){if(i=i||{},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:i.pageNumber,pageSize:i.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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"],i.customHeaders)}getIntegrationsTypeConfigschema(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "typeId" when calling getIntegrationsTypeConfigschema';if(i==null||i==="")throw'Missing the required parameter "configType" when calling getIntegrationsTypeConfigschema';return this.apiClient.callApi("/api/v2/integrations/types/{typeId}/configschemas/{configType}","GET",{typeId:e,configType:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "integrationId" when calling patchIntegration';return this.apiClient.callApi("/api/v2/integrations/{integrationId}","PATCH",{integrationId:e},{pageSize:i.pageSize,pageNumber:i.pageNumber,sortBy:i.sortBy,expand:this.apiClient.buildCollectionParam(i.expand,"multi"),nextPage:i.nextPage,previousPage:i.previousPage},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}patchIntegrationsAction(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "actionId" when calling patchIntegrationsAction';if(i==null)throw'Missing the required parameter "body" when calling patchIntegrationsAction';return this.apiClient.callApi("/api/v2/integrations/actions/{actionId}","PATCH",{actionId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchIntegrationsActionDraft(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "actionId" when calling patchIntegrationsActionDraft';if(i==null)throw'Missing the required parameter "body" when calling patchIntegrationsActionDraft';return this.apiClient.callApi("/api/v2/integrations/actions/{actionId}/draft","PATCH",{actionId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.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,i){if(i=i||{},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"],i.customHeaders)}postIntegrationsActionDraftFunctionUpload(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "actionId" when calling postIntegrationsActionDraftFunctionUpload';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postIntegrationsActionDraftPublish(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "actionId" when calling postIntegrationsActionDraftPublish';if(i==null)throw'Missing the required parameter "body" when calling postIntegrationsActionDraftPublish';return this.apiClient.callApi("/api/v2/integrations/actions/{actionId}/draft/publish","POST",{actionId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postIntegrationsActionDraftTest(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "actionId" when calling postIntegrationsActionDraftTest';if(i==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:n.flatten},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postIntegrationsActionExecute(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "actionId" when calling postIntegrationsActionExecute';if(i==null)throw'Missing the required parameter "body" when calling postIntegrationsActionExecute';return this.apiClient.callApi("/api/v2/integrations/actions/{actionId}/execute","POST",{actionId:e},{flatten:n.flatten},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postIntegrationsActionTest(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "actionId" when calling postIntegrationsActionTest';if(i==null)throw'Missing the required parameter "body" when calling postIntegrationsActionTest';return this.apiClient.callApi("/api/v2/integrations/actions/{actionId}/test","POST",{actionId:e},{flatten:n.flatten},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postIntegrationsActions(e,i){if(i=i||{},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"],i.customHeaders)}postIntegrationsActionsDrafts(e,i){if(i=i||{},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"],i.customHeaders)}postIntegrationsBotconnectorsIncomingMessages(e,i){if(i=i||{},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"],i.customHeaders)}postIntegrationsBotconnectorsOutgoingMessages(e,i){if(i=i||{},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"],i.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,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "nuanceIntegrationId" when calling postIntegrationsSpeechNuanceNuanceIntegrationIdBotJobs';if(i==null||i==="")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:i},{expand:this.apiClient.buildCollectionParam(n.expand,"multi")},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postIntegrationsSpeechNuanceNuanceIntegrationIdBotsJobs(e,i){if(i=i||{},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:i.pageNumber,pageSize:i.pageSize,onlyRegisteredBots:i.onlyRegisteredBots},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postIntegrationsSpeechNuanceNuanceIntegrationIdBotsLaunchValidate(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "nuanceIntegrationId" when calling postIntegrationsSpeechNuanceNuanceIntegrationIdBotsLaunchValidate';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postIntegrationsWebhookEvents(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "tokenId" when calling postIntegrationsWebhookEvents';if(i==null)throw'Missing the required parameter "body" when calling postIntegrationsWebhookEvents';return this.apiClient.callApi("/api/v2/integrations/webhooks/{tokenId}/events","POST",{tokenId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putIntegrationConfigCurrent(e,i){if(i=i||{},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},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}putIntegrationsActionDraftFunction(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "actionId" when calling putIntegrationsActionDraftFunction';if(i==null)throw'Missing the required parameter "body" when calling putIntegrationsActionDraftFunction';return this.apiClient.callApi("/api/v2/integrations/actions/{actionId}/draft/function","PUT",{actionId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putIntegrationsBotconnectorIntegrationIdBots(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "integrationId" when calling putIntegrationsBotconnectorIntegrationIdBots';if(i==null)throw'Missing the required parameter "botList" when calling putIntegrationsBotconnectorIntegrationIdBots';return this.apiClient.callApi("/api/v2/integrations/botconnector/{integrationId}/bots","PUT",{integrationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putIntegrationsCredential(e,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "credentialId" when calling putIntegrationsCredential';return this.apiClient.callApi("/api/v2/integrations/credentials/{credentialId}","PUT",{credentialId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}putIntegrationsSpeechNuanceNuanceIntegrationIdBotsLaunchSettings(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "nuanceIntegrationId" when calling putIntegrationsSpeechNuanceNuanceIntegrationIdBotsLaunchSettings';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putIntegrationsSpeechTtsSettings(e,i){if(i=i||{},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"],i.customHeaders)}putIntegrationsUnifiedcommunicationThirdpartypresences(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "ucIntegrationId" when calling putIntegrationsUnifiedcommunicationThirdpartypresences';if(i==null)throw'Missing the required parameter "body" when calling putIntegrationsUnifiedcommunicationThirdpartypresences';return this.apiClient.callApi("/api/v2/integrations/unifiedcommunications/{ucIntegrationId}/thirdpartypresences","PUT",{ucIntegrationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}},lb=class{constructor(e){this.apiClient=e||q.instance}deleteIntentsCategory(e,i){if(i=i||{},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"],i.customHeaders)}deleteIntentsCustomerintent(e,i){if(i=i||{},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"],i.customHeaders)}getIntentsAssignmentsExternalcontact(e,i){if(i=i||{},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:i.pageSize,pageNumber:i.pageNumber},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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"],i.customHeaders)}getIntentsCustomerintent(e,i){if(i=i||{},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"],i.customHeaders)}getIntentsCustomerintentSourceintents(e,i){if(i=i||{},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:i.pageSize,pageNumber:i.pageNumber,queryValue:i.queryValue},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "categoryId" when calling patchIntentsCategory';if(i==null)throw'Missing the required parameter "body" when calling patchIntentsCategory';return this.apiClient.callApi("/api/v2/intents/categories/{categoryId}","PATCH",{categoryId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchIntentsCustomerintent(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "customerIntentId" when calling patchIntentsCustomerintent';if(i==null)throw'Missing the required parameter "body" when calling patchIntentsCustomerintent';return this.apiClient.callApi("/api/v2/intents/customerintents/{customerIntentId}","PATCH",{customerIntentId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postIntentsAssignmentsExternalcontactCustomerintentAssignment(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "externalContactId" when calling postIntentsAssignmentsExternalcontactCustomerintentAssignment';if(i==null||i==="")throw'Missing the required parameter "customerIntentId" when calling postIntentsAssignmentsExternalcontactCustomerintentAssignment';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postIntentsCategories(e,i){if(i=i||{},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"],i.customHeaders)}postIntentsCustomerintentSourceintentsBulkAdd(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "customerIntentId" when calling postIntentsCustomerintentSourceintentsBulkAdd';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postIntentsCustomerintentSourceintentsBulkRemove(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "customerIntentId" when calling postIntentsCustomerintentSourceintentsBulkRemove';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postIntentsCustomerintents(e,i){if(i=i||{},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"],i.customHeaders)}},ub=class{constructor(e){this.apiClient=e||q.instance}deleteAnalyticsJourneysAggregatesJob(e,i){if(i=i||{},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"],i.customHeaders)}deleteJourneyActionmap(e,i){if(i=i||{},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"],i.customHeaders)}deleteJourneyActiontemplate(e,i){if(i=i||{},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:i.hardDelete},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}deleteJourneyExternaleventsConfiguration(e,i){if(i=i||{},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"],i.customHeaders)}deleteJourneyExternaleventsSchema(e,i){if(i=i||{},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"],i.customHeaders)}deleteJourneyOutcome(e,i){if(i=i||{},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"],i.customHeaders)}deleteJourneyOutcomesPredictor(e,i){if(i=i||{},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"],i.customHeaders)}deleteJourneySegment(e,i){if(i=i||{},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"],i.customHeaders)}deleteJourneyView(e,i){if(i=i||{},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"],i.customHeaders)}deleteJourneyViewSchedules(e,i){if(i=i||{},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"],i.customHeaders)}getAnalyticsJourneysAggregatesJob(e,i){if(i=i||{},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"],i.customHeaders)}getAnalyticsJourneysAggregatesJobResults(e,i){if(i=i||{},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:i.cursor},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getExternalcontactsContactJourneySegments(e,i){if(i=i||{},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:i.includeMerged,limit:i.limit},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getExternalcontactsContactJourneySessions(e,i){if(i=i||{},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:i.pageSize,after:i.after,includeMerged:i.includeMerged},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getJourneyActionmap(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getJourneyActionmapsEstimatesJobResults(e,i){if(i=i||{},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"],i.customHeaders)}getJourneyActiontarget(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "deploymentId" when calling getJourneyDeploymentCustomerPing';if(i==null||i==="")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:i},{dl:n.dl,dt:n.dt,appNamespace:n.appNamespace,sessionId:n.sessionId,sinceLastBeaconMilliseconds:n.sinceLastBeaconMilliseconds},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getJourneyExternaleventsConfiguration(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getJourneyExternaleventsSchemaVersion(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "schemaId" when calling getJourneyExternaleventsSchemaVersion';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getJourneyExternaleventsSchemaVersions(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getJourneyOutcomesAttributionsJobResults(e,i){if(i=i||{},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"],i.customHeaders)}getJourneyOutcomesPredictor(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getJourneySessionEvents(e,i){if(i=i||{},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:i.pageSize,after:i.after,eventType:i.eventType},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getJourneySessionOutcomescores(e,i){if(i=i||{},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"],i.customHeaders)}getJourneyView(e,i){if(i=i||{},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"],i.customHeaders)}getJourneyViewSchedules(e,i){if(i=i||{},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"],i.customHeaders)}getJourneyViewVersion(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "viewId" when calling getJourneyViewVersion';if(i==null||i==="")throw'Missing the required parameter "versionId" when calling getJourneyViewVersion';return this.apiClient.callApi("/api/v2/journey/views/{viewId}/versions/{versionId}","GET",{viewId:e,versionId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getJourneyViewVersionChart(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "viewId" when calling getJourneyViewVersionChart';if(i==null||i==="")throw'Missing the required parameter "journeyViewVersion" when calling getJourneyViewVersionChart';if(n==null||n==="")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:i,chartId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getJourneyViewVersionChartVersion(e,i,n,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "viewId" when calling getJourneyViewVersionChartVersion';if(i==null||i==="")throw'Missing the required parameter "journeyViewVersion" when calling getJourneyViewVersionChartVersion';if(n==null||n==="")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:i,chartId:n,chartVersion:a},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}getJourneyViewVersionJob(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "viewId" when calling getJourneyViewVersionJob';if(i==null||i==="")throw'Missing the required parameter "journeyVersionId" when calling getJourneyViewVersionJob';if(n==null||n==="")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:i,jobId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getJourneyViewVersionJobResults(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "viewId" when calling getJourneyViewVersionJobResults';if(i==null||i==="")throw'Missing the required parameter "journeyViewVersion" when calling getJourneyViewVersionJobResults';if(n==null||n==="")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:i,jobId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getJourneyViewVersionJobResultsChart(e,i,n,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "viewId" when calling getJourneyViewVersionJobResultsChart';if(i==null||i==="")throw'Missing the required parameter "journeyVersionId" when calling getJourneyViewVersionJobResultsChart';if(n==null||n==="")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:i,jobId:n,chartId:a},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}getJourneyViewVersionJobsLatest(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "viewId" when calling getJourneyViewVersionJobsLatest';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.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,i){if(i=i||{},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"],i.customHeaders)}getJourneyViewsEventdefinitions(e){return e=e||{},this.apiClient.callApi("/api/v2/journey/views/eventdefinitions","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getJourneyViewsJobs(e){return e=e||{},this.apiClient.callApi("/api/v2/journey/views/jobs","GET",{},{pageNumber:e.pageNumber,pageSize:e.pageSize,interval:e.interval,statuses:e.statuses},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getJourneyViewsJobsMe(e){return e=e||{},this.apiClient.callApi("/api/v2/journey/views/jobs/me","GET",{},{pageNumber:e.pageNumber,pageSize:e.pageSize,interval:e.interval,statuses:e.statuses},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getJourneyViewsSchedules(e){return e=e||{},this.apiClient.callApi("/api/v2/journey/views/schedules","GET",{},{pageNumber:e.pageNumber,pageSize:e.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}patchJourneyActionmap(e,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "actionMapId" when calling patchJourneyActionmap';return this.apiClient.callApi("/api/v2/journey/actionmaps/{actionMapId}","PATCH",{actionMapId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}patchJourneyActiontarget(e,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "actionTargetId" when calling patchJourneyActiontarget';return this.apiClient.callApi("/api/v2/journey/actiontargets/{actionTargetId}","PATCH",{actionTargetId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}patchJourneyActiontemplate(e,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "actionTemplateId" when calling patchJourneyActiontemplate';return this.apiClient.callApi("/api/v2/journey/actiontemplates/{actionTemplateId}","PATCH",{actionTemplateId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}patchJourneyExternaleventsConfiguration(e,i){if(i=i||{},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},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}patchJourneyOutcome(e,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "outcomeId" when calling patchJourneyOutcome';return this.apiClient.callApi("/api/v2/journey/outcomes/{outcomeId}","PATCH",{outcomeId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}patchJourneySegment(e,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "segmentId" when calling patchJourneySegment';return this.apiClient.callApi("/api/v2/journey/segments/{segmentId}","PATCH",{segmentId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}patchJourneyViewVersionJob(e,i,n,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "viewId" when calling patchJourneyViewVersionJob';if(i==null||i==="")throw'Missing the required parameter "journeyVersionId" when calling patchJourneyViewVersionJob';if(n==null||n==="")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:i,jobId:n},{},{},{},a,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}postAnalyticsJourneysAggregatesJobs(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsJourneysAggregatesQuery(e,i){if(i=i||{},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"],i.customHeaders)}postExternalcontactsContactJourneySegments(e,i){if(i=i||{},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},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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"],i.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,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "deploymentId" when calling postJourneyDeploymentActionevent';if(i==null)throw'Missing the required parameter "body" when calling postJourneyDeploymentActionevent';return this.apiClient.callApi("/api/v2/journey/deployments/{deploymentId}/actionevent","POST",{deploymentId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postJourneyDeploymentAppevents(e,i){if(i=i||{},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},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postJourneyDeploymentWebevents(e,i){if(i=i||{},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},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postJourneyExternaleventsConfigurationEvents(e,i){if(i=i||{},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},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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"],i.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,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "viewId" when calling postJourneyViewSchedules';if(i==null)throw'Missing the required parameter "body" when calling postJourneyViewSchedules';return this.apiClient.callApi("/api/v2/journey/views/{viewId}/schedules","POST",{viewId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postJourneyViewVersionJobs(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "viewId" when calling postJourneyViewVersionJobs';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postJourneyViewVersions(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "viewId" when calling postJourneyViewVersions';if(i==null)throw'Missing the required parameter "body" when calling postJourneyViewVersions';return this.apiClient.callApi("/api/v2/journey/views/{viewId}/versions","POST",{viewId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postJourneyViews(e,i){if(i=i||{},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"],i.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,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "schemaId" when calling putJourneyExternaleventsSchema';if(i==null)throw'Missing the required parameter "body" when calling putJourneyExternaleventsSchema';return this.apiClient.callApi("/api/v2/journey/externalevents/schemas/{schemaId}","PUT",{schemaId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putJourneyViewSchedules(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "viewId" when calling putJourneyViewSchedules';if(i==null)throw'Missing the required parameter "body" when calling putJourneyViewSchedules';return this.apiClient.callApi("/api/v2/journey/views/{viewId}/schedules","PUT",{viewId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putJourneyViewVersion(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "viewId" when calling putJourneyViewVersion';if(i==null||i==="")throw'Missing the required parameter "versionId" when calling putJourneyViewVersion';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}},cb=class{constructor(e){this.apiClient=e||q.instance}deleteKnowledgeConnection(e,i){if(i=i||{},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"],i.customHeaders)}deleteKnowledgeKnowledgebase(e,i){if(i=i||{},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"],i.customHeaders)}deleteKnowledgeKnowledgebaseCategory(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling deleteKnowledgeKnowledgebaseCategory';if(i==null||i==="")throw'Missing the required parameter "categoryId" when calling deleteKnowledgeKnowledgebaseCategory';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/categories/{categoryId}","DELETE",{knowledgeBaseId:e,categoryId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteKnowledgeKnowledgebaseDocument(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling deleteKnowledgeKnowledgebaseDocument';if(i==null||i==="")throw'Missing the required parameter "documentId" when calling deleteKnowledgeKnowledgebaseDocument';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/documents/{documentId}","DELETE",{knowledgeBaseId:e,documentId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteKnowledgeKnowledgebaseDocumentVariation(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "documentVariationId" when calling deleteKnowledgeKnowledgebaseDocumentVariation';if(i==null||i==="")throw'Missing the required parameter "documentId" when calling deleteKnowledgeKnowledgebaseDocumentVariation';if(n==null||n==="")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:i,knowledgeBaseId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}deleteKnowledgeKnowledgebaseExportJob(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling deleteKnowledgeKnowledgebaseExportJob';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteKnowledgeKnowledgebaseImportJob(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling deleteKnowledgeKnowledgebaseImportJob';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteKnowledgeKnowledgebaseLabel(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling deleteKnowledgeKnowledgebaseLabel';if(i==null||i==="")throw'Missing the required parameter "labelId" when calling deleteKnowledgeKnowledgebaseLabel';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/labels/{labelId}","DELETE",{knowledgeBaseId:e,labelId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteKnowledgeKnowledgebaseSourcesSalesforceSourceId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling deleteKnowledgeKnowledgebaseSourcesSalesforceSourceId';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteKnowledgeKnowledgebaseSourcesServicenowSourceId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling deleteKnowledgeKnowledgebaseSourcesServicenowSourceId';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteKnowledgeKnowledgebaseSynchronizeJob(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling deleteKnowledgeKnowledgebaseSynchronizeJob';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteKnowledgeSetting(e,i){if(i=i||{},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"],i.customHeaders)}deleteKnowledgeSource(e,i){if(i=i||{},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"],i.customHeaders)}getKnowledgeConnection(e,i){if(i=i||{},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(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getKnowledgeConnectionOptions(e,i){if(i=i||{},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:i.after,pageSize:i.pageSize,parentId:i.parentId},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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:i.before,after:i.after,pageSize:i.pageSize,parentId:i.parentId,isRoot:i.isRoot,name:i.name,sortBy:i.sortBy,expand:i.expand,includeDocumentCount:i.includeDocumentCount},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getKnowledgeGuestSessionDocument(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "sessionId" when calling getKnowledgeGuestSessionDocument';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getKnowledgeGuestSessionDocuments(e,i){if(i=i||{},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(i.categoryId,"multi"),pageSize:i.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getKnowledgeIntegrationOptions(e,i){if(i=i||{},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(i.knowledgeBaseIds,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getKnowledgeKnowledgebase(e,i){if(i=i||{},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"],i.customHeaders)}getKnowledgeKnowledgebaseCategories(e,i){if(i=i||{},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:i.before,after:i.after,pageSize:i.pageSize,parentId:i.parentId,isRoot:i.isRoot,name:i.name,sortBy:i.sortBy,expand:i.expand,includeDocumentCount:i.includeDocumentCount},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getKnowledgeKnowledgebaseCategory(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling getKnowledgeKnowledgebaseCategory';if(i==null||i==="")throw'Missing the required parameter "categoryId" when calling getKnowledgeKnowledgebaseCategory';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/categories/{categoryId}","GET",{knowledgeBaseId:e,categoryId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getKnowledgeKnowledgebaseDocument(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling getKnowledgeKnowledgebaseDocument';if(i==null||i==="")throw'Missing the required parameter "documentId" when calling getKnowledgeKnowledgebaseDocument';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/documents/{documentId}","GET",{knowledgeBaseId:e,documentId:i},{expand:this.apiClient.buildCollectionParam(n.expand,"multi"),state:n.state},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getKnowledgeKnowledgebaseDocumentFeedback(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling getKnowledgeKnowledgebaseDocumentFeedback';if(i==null||i==="")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:i},{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)}getKnowledgeKnowledgebaseDocumentFeedbackFeedbackId(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling getKnowledgeKnowledgebaseDocumentFeedbackFeedbackId';if(i==null||i==="")throw'Missing the required parameter "documentId" when calling getKnowledgeKnowledgebaseDocumentFeedbackFeedbackId';if(n==null||n==="")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:i,feedbackId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getKnowledgeKnowledgebaseDocumentVariation(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "documentVariationId" when calling getKnowledgeKnowledgebaseDocumentVariation';if(i==null||i==="")throw'Missing the required parameter "documentId" when calling getKnowledgeKnowledgebaseDocumentVariation';if(n==null||n==="")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:i,knowledgeBaseId:n},{documentState:a.documentState,expand:this.apiClient.buildCollectionParam(a.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getKnowledgeKnowledgebaseDocumentVariations(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling getKnowledgeKnowledgebaseDocumentVariations';if(i==null||i==="")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:i},{before:n.before,after:n.after,pageSize:n.pageSize,documentState:n.documentState,expand:this.apiClient.buildCollectionParam(n.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getKnowledgeKnowledgebaseDocumentVersion(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling getKnowledgeKnowledgebaseDocumentVersion';if(i==null||i==="")throw'Missing the required parameter "documentId" when calling getKnowledgeKnowledgebaseDocumentVersion';if(n==null||n==="")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:i,versionId:n},{expand:this.apiClient.buildCollectionParam(a.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getKnowledgeKnowledgebaseDocumentVersionVariation(e,i,n,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling getKnowledgeKnowledgebaseDocumentVersionVariation';if(i==null||i==="")throw'Missing the required parameter "documentId" when calling getKnowledgeKnowledgebaseDocumentVersionVariation';if(n==null||n==="")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:i,versionId:n,variationId:a},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}getKnowledgeKnowledgebaseDocumentVersionVariations(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling getKnowledgeKnowledgebaseDocumentVersionVariations';if(i==null||i==="")throw'Missing the required parameter "documentId" when calling getKnowledgeKnowledgebaseDocumentVersionVariations';if(n==null||n==="")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:i,versionId:n},{before:a.before,after:a.after,pageSize:a.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getKnowledgeKnowledgebaseDocumentVersions(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling getKnowledgeKnowledgebaseDocumentVersions';if(i==null||i==="")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:i},{before:n.before,after:n.after,pageSize:n.pageSize,expand:this.apiClient.buildCollectionParam(n.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getKnowledgeKnowledgebaseDocuments(e,i){if(i=i||{},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:i.before,after:i.after,pageSize:i.pageSize,interval:i.interval,documentId:this.apiClient.buildCollectionParam(i.documentId,"multi"),categoryId:this.apiClient.buildCollectionParam(i.categoryId,"multi"),includeSubcategories:i.includeSubcategories,includeDrafts:i.includeDrafts,labelIds:this.apiClient.buildCollectionParam(i.labelIds,"multi"),expand:this.apiClient.buildCollectionParam(i.expand,"multi"),externalIds:this.apiClient.buildCollectionParam(i.externalIds,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getKnowledgeKnowledgebaseExportJob(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling getKnowledgeKnowledgebaseExportJob';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getKnowledgeKnowledgebaseImportJob(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling getKnowledgeKnowledgebaseImportJob';if(i==null||i==="")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:i},{expand:this.apiClient.buildCollectionParam(n.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getKnowledgeKnowledgebaseLabel(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling getKnowledgeKnowledgebaseLabel';if(i==null||i==="")throw'Missing the required parameter "labelId" when calling getKnowledgeKnowledgebaseLabel';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/labels/{labelId}","GET",{knowledgeBaseId:e,labelId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getKnowledgeKnowledgebaseLabels(e,i){if(i=i||{},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:i.before,after:i.after,pageSize:i.pageSize,name:i.name,includeDocumentCount:i.includeDocumentCount},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getKnowledgeKnowledgebaseOperations(e,i){if(i=i||{},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:i.before,after:i.after,pageSize:i.pageSize,userId:this.apiClient.buildCollectionParam(i.userId,"multi"),type:this.apiClient.buildCollectionParam(i.type,"multi"),status:this.apiClient.buildCollectionParam(i.status,"multi"),interval:i.interval,sourceId:this.apiClient.buildCollectionParam(i.sourceId,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getKnowledgeKnowledgebaseOperationsUsersQuery(e,i){if(i=i||{},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"],i.customHeaders)}getKnowledgeKnowledgebaseParseJob(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling getKnowledgeKnowledgebaseParseJob';if(i==null||i==="")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:i},{expand:this.apiClient.buildCollectionParam(n.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getKnowledgeKnowledgebaseSources(e,i){if(i=i||{},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:i.type,expand:this.apiClient.buildCollectionParam(i.expand,"multi"),ids:this.apiClient.buildCollectionParam(i.ids,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getKnowledgeKnowledgebaseSourcesSalesforceSourceId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling getKnowledgeKnowledgebaseSourcesSalesforceSourceId';if(i==null||i==="")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:i},{expand:this.apiClient.buildCollectionParam(n.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getKnowledgeKnowledgebaseSourcesServicenowSourceId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling getKnowledgeKnowledgebaseSourcesServicenowSourceId';if(i==null||i==="")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:i},{expand:this.apiClient.buildCollectionParam(n.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getKnowledgeKnowledgebaseSynchronizeJob(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling getKnowledgeKnowledgebaseSynchronizeJob';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getKnowledgeKnowledgebaseUnansweredGroup(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling getKnowledgeKnowledgebaseUnansweredGroup';if(i==null||i==="")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:i},{app:n.app,dateStart:n.dateStart,dateEnd:n.dateEnd},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getKnowledgeKnowledgebaseUnansweredGroupPhrasegroup(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling getKnowledgeKnowledgebaseUnansweredGroupPhrasegroup';if(i==null||i==="")throw'Missing the required parameter "groupId" when calling getKnowledgeKnowledgebaseUnansweredGroupPhrasegroup';if(n==null||n==="")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:i,phraseGroupId:n},{app:a.app,dateStart:a.dateStart,dateEnd:a.dateEnd},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getKnowledgeKnowledgebaseUnansweredGroups(e,i){if(i=i||{},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:i.app,dateStart:i.dateStart,dateEnd:i.dateEnd},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getKnowledgeKnowledgebaseUploadsUrlsJob(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling getKnowledgeKnowledgebaseUploadsUrlsJob';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getKnowledgeSourceSynchronization(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "sourceId" when calling getKnowledgeSourceSynchronization';if(i==null||i==="")throw'Missing the required parameter "synchronizationId" when calling getKnowledgeSourceSynchronization';return this.apiClient.callApi("/api/v2/knowledge/sources/{sourceId}/synchronizations/{synchronizationId}","GET",{sourceId:e,synchronizationId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getKnowledgeSourceSynchronizations(e,i){if(i=i||{},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:i.before,after:i.after,pageSize:i.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "connectionId" when calling patchKnowledgeConnection';return this.apiClient.callApi("/api/v2/knowledge/connections/{connectionId}","PATCH",{connectionId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}patchKnowledgeGuestSessionDocumentsSearchSearchId(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "sessionId" when calling patchKnowledgeGuestSessionDocumentsSearchSearchId';if(i==null||i==="")throw'Missing the required parameter "searchId" when calling patchKnowledgeGuestSessionDocumentsSearchSearchId';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchKnowledgeKnowledgebase(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling patchKnowledgeKnowledgebase';if(i==null)throw'Missing the required parameter "body" when calling patchKnowledgeKnowledgebase';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}","PATCH",{knowledgeBaseId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchKnowledgeKnowledgebaseCategory(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling patchKnowledgeKnowledgebaseCategory';if(i==null||i==="")throw'Missing the required parameter "categoryId" when calling patchKnowledgeKnowledgebaseCategory';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchKnowledgeKnowledgebaseChunksSearchSearchId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling patchKnowledgeKnowledgebaseChunksSearchSearchId';if(i==null||i==="")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:i},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchKnowledgeKnowledgebaseDocument(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling patchKnowledgeKnowledgebaseDocument';if(i==null||i==="")throw'Missing the required parameter "documentId" when calling patchKnowledgeKnowledgebaseDocument';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchKnowledgeKnowledgebaseDocumentFeedbackFeedbackId(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling patchKnowledgeKnowledgebaseDocumentFeedbackFeedbackId';if(i==null||i==="")throw'Missing the required parameter "documentId" when calling patchKnowledgeKnowledgebaseDocumentFeedbackFeedbackId';if(n==null||n==="")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:i,feedbackId:n},{},{},{},a.body,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchKnowledgeKnowledgebaseDocumentVariation(e,i,n,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "documentVariationId" when calling patchKnowledgeKnowledgebaseDocumentVariation';if(i==null||i==="")throw'Missing the required parameter "documentId" when calling patchKnowledgeKnowledgebaseDocumentVariation';if(n==null||n==="")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:i,knowledgeBaseId:n},{},{},{},a,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}patchKnowledgeKnowledgebaseDocumentsSearchSearchId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling patchKnowledgeKnowledgebaseDocumentsSearchSearchId';if(i==null||i==="")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:i},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchKnowledgeKnowledgebaseImportJob(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling patchKnowledgeKnowledgebaseImportJob';if(i==null||i==="")throw'Missing the required parameter "importJobId" when calling patchKnowledgeKnowledgebaseImportJob';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchKnowledgeKnowledgebaseLabel(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling patchKnowledgeKnowledgebaseLabel';if(i==null||i==="")throw'Missing the required parameter "labelId" when calling patchKnowledgeKnowledgebaseLabel';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchKnowledgeKnowledgebaseParseJob(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling patchKnowledgeKnowledgebaseParseJob';if(i==null||i==="")throw'Missing the required parameter "parseJobId" when calling patchKnowledgeKnowledgebaseParseJob';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchKnowledgeKnowledgebaseSynchronizeJob(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling patchKnowledgeKnowledgebaseSynchronizeJob';if(i==null||i==="")throw'Missing the required parameter "syncJobId" when calling patchKnowledgeKnowledgebaseSynchronizeJob';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchKnowledgeKnowledgebaseUnansweredGroupPhrasegroup(e,i,n,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling patchKnowledgeKnowledgebaseUnansweredGroupPhrasegroup';if(i==null||i==="")throw'Missing the required parameter "groupId" when calling patchKnowledgeKnowledgebaseUnansweredGroupPhrasegroup';if(n==null||n==="")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:i,phraseGroupId:n},{},{},{},a,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}patchKnowledgeSetting(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeSettingId" when calling patchKnowledgeSetting';if(i==null)throw'Missing the required parameter "body" when calling patchKnowledgeSetting';return this.apiClient.callApi("/api/v2/knowledge/settings/{knowledgeSettingId}","PATCH",{knowledgeSettingId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchKnowledgeSourceSynchronization(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "sourceId" when calling patchKnowledgeSourceSynchronization';if(i==null||i==="")throw'Missing the required parameter "synchronizationId" when calling patchKnowledgeSourceSynchronization';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postKnowledgeConnections(e,i){if(i=i||{},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"],i.customHeaders)}postKnowledgeDocumentuploads(e,i){if(i=i||{},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"],i.customHeaders)}postKnowledgeGuestSessionDocumentCopies(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "sessionId" when calling postKnowledgeGuestSessionDocumentCopies';if(i==null||i==="")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:i},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postKnowledgeGuestSessionDocumentFeedback(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "sessionId" when calling postKnowledgeGuestSessionDocumentFeedback';if(i==null||i==="")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:i},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postKnowledgeGuestSessionDocumentViews(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "sessionId" when calling postKnowledgeGuestSessionDocumentViews';if(i==null||i==="")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:i},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postKnowledgeGuestSessionDocumentsAnswers(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "sessionId" when calling postKnowledgeGuestSessionDocumentsAnswers';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postKnowledgeGuestSessionDocumentsPresentations(e,i){if(i=i||{},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},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postKnowledgeGuestSessionDocumentsSearch(e,i){if(i=i||{},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(i.expand,"multi")},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postKnowledgeGuestSessionDocumentsSearchSuggestions(e,i){if(i=i||{},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},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postKnowledgeGuestSessions(e,i){if(i=i||{},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"],i.customHeaders)}postKnowledgeKnowledgebaseCategories(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseCategories';if(i==null)throw'Missing the required parameter "body" when calling postKnowledgeKnowledgebaseCategories';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/categories","POST",{knowledgeBaseId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postKnowledgeKnowledgebaseChunksSearch(e,i){if(i=i||{},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},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postKnowledgeKnowledgebaseDocumentCopies(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseDocumentCopies';if(i==null||i==="")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:i},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postKnowledgeKnowledgebaseDocumentFeedback(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseDocumentFeedback';if(i==null||i==="")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:i},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postKnowledgeKnowledgebaseDocumentVariations(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseDocumentVariations';if(i==null||i==="")throw'Missing the required parameter "documentId" when calling postKnowledgeKnowledgebaseDocumentVariations';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postKnowledgeKnowledgebaseDocumentVersions(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseDocumentVersions';if(i==null||i==="")throw'Missing the required parameter "documentId" when calling postKnowledgeKnowledgebaseDocumentVersions';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postKnowledgeKnowledgebaseDocumentViews(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseDocumentViews';if(i==null||i==="")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:i},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postKnowledgeKnowledgebaseDocuments(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseDocuments';if(i==null)throw'Missing the required parameter "body" when calling postKnowledgeKnowledgebaseDocuments';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/documents","POST",{knowledgeBaseId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postKnowledgeKnowledgebaseDocumentsAnswers(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseDocumentsAnswers';if(i==null)throw'Missing the required parameter "body" when calling postKnowledgeKnowledgebaseDocumentsAnswers';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/documents/answers","POST",{knowledgeBaseId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postKnowledgeKnowledgebaseDocumentsBulkRemove(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseDocumentsBulkRemove';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postKnowledgeKnowledgebaseDocumentsBulkUpdate(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseDocumentsBulkUpdate';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postKnowledgeKnowledgebaseDocumentsPresentations(e,i){if(i=i||{},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},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postKnowledgeKnowledgebaseDocumentsQuery(e,i){if(i=i||{},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(i.expand,"multi")},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postKnowledgeKnowledgebaseDocumentsSearch(e,i){if(i=i||{},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(i.expand,"multi")},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postKnowledgeKnowledgebaseDocumentsSearchSuggestions(e,i){if(i=i||{},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},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postKnowledgeKnowledgebaseDocumentsVersionsBulkAdd(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseDocumentsVersionsBulkAdd';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postKnowledgeKnowledgebaseExportJobs(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseExportJobs';if(i==null)throw'Missing the required parameter "body" when calling postKnowledgeKnowledgebaseExportJobs';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/export/jobs","POST",{knowledgeBaseId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postKnowledgeKnowledgebaseImportJobs(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseImportJobs';if(i==null)throw'Missing the required parameter "body" when calling postKnowledgeKnowledgebaseImportJobs';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/import/jobs","POST",{knowledgeBaseId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postKnowledgeKnowledgebaseLabels(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseLabels';if(i==null)throw'Missing the required parameter "body" when calling postKnowledgeKnowledgebaseLabels';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/labels","POST",{knowledgeBaseId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postKnowledgeKnowledgebaseParseJobImport(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseParseJobImport';if(i==null||i==="")throw'Missing the required parameter "parseJobId" when calling postKnowledgeKnowledgebaseParseJobImport';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postKnowledgeKnowledgebaseParseJobs(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseParseJobs';if(i==null)throw'Missing the required parameter "body" when calling postKnowledgeKnowledgebaseParseJobs';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/parse/jobs","POST",{knowledgeBaseId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postKnowledgeKnowledgebaseSourcesSalesforce(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseSourcesSalesforce';if(i==null)throw'Missing the required parameter "body" when calling postKnowledgeKnowledgebaseSourcesSalesforce';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/sources/salesforce","POST",{knowledgeBaseId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postKnowledgeKnowledgebaseSourcesSalesforceSourceIdSync(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseSourcesSalesforceSourceIdSync';if(i==null||i==="")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:i},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postKnowledgeKnowledgebaseSourcesServicenow(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseSourcesServicenow';if(i==null)throw'Missing the required parameter "body" when calling postKnowledgeKnowledgebaseSourcesServicenow';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/sources/servicenow","POST",{knowledgeBaseId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postKnowledgeKnowledgebaseSourcesServicenowSourceIdSync(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseSourcesServicenowSourceIdSync';if(i==null||i==="")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:i},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postKnowledgeKnowledgebaseSynchronizeJobs(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseSynchronizeJobs';if(i==null)throw'Missing the required parameter "body" when calling postKnowledgeKnowledgebaseSynchronizeJobs';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/synchronize/jobs","POST",{knowledgeBaseId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postKnowledgeKnowledgebaseUploadsUrlsJobs(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseUploadsUrlsJobs';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postKnowledgeKnowledgebases(e,i){if(i=i||{},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"],i.customHeaders)}postKnowledgeSearch(e){return e=e||{},this.apiClient.callApi("/api/v2/knowledge/search","POST",{},{},{},{},e.body,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}postKnowledgeSearchPreview(e){return e=e||{},this.apiClient.callApi("/api/v2/knowledge/search/preview","POST",{},{},{},{},e.body,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}postKnowledgeSettings(e){return e=e||{},this.apiClient.callApi("/api/v2/knowledge/settings","POST",{},{},{},{},e.body,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}postKnowledgeSourceSynchronizationUploads(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "sourceId" when calling postKnowledgeSourceSynchronizationUploads';if(i==null||i==="")throw'Missing the required parameter "synchronizationId" when calling postKnowledgeSourceSynchronizationUploads';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postKnowledgeSourceSynchronizations(e,i){if(i=i||{},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},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postKnowledgeSources(e,i){if(i=i||{},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"],i.customHeaders)}putKnowledgeKnowledgebaseSourcesSalesforceSourceId(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling putKnowledgeKnowledgebaseSourcesSalesforceSourceId';if(i==null||i==="")throw'Missing the required parameter "sourceId" when calling putKnowledgeKnowledgebaseSourcesSalesforceSourceId';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}putKnowledgeKnowledgebaseSourcesServicenowSourceId(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling putKnowledgeKnowledgebaseSourcesServicenowSourceId';if(i==null||i==="")throw'Missing the required parameter "sourceId" when calling putKnowledgeKnowledgebaseSourcesServicenowSourceId';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}putKnowledgeSource(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "sourceId" when calling putKnowledgeSource';if(i==null)throw'Missing the required parameter "body" when calling putKnowledgeSource';return this.apiClient.callApi("/api/v2/knowledge/sources/{sourceId}","PUT",{sourceId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}},pb=class{constructor(e){this.apiClient=e||q.instance}deleteLanguageunderstandingDomain(e,i){if(i=i||{},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"],i.customHeaders)}deleteLanguageunderstandingDomainFeedbackFeedbackId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "domainId" when calling deleteLanguageunderstandingDomainFeedbackFeedbackId';if(i==null||i==="")throw'Missing the required parameter "feedbackId" when calling deleteLanguageunderstandingDomainFeedbackFeedbackId';return this.apiClient.callApi("/api/v2/languageunderstanding/domains/{domainId}/feedback/{feedbackId}","DELETE",{domainId:e,feedbackId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteLanguageunderstandingDomainVersion(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "domainId" when calling deleteLanguageunderstandingDomainVersion';if(i==null||i==="")throw'Missing the required parameter "domainVersionId" when calling deleteLanguageunderstandingDomainVersion';return this.apiClient.callApi("/api/v2/languageunderstanding/domains/{domainId}/versions/{domainVersionId}","DELETE",{domainId:e,domainVersionId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteLanguageunderstandingMiner(e,i){if(i=i||{},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"],i.customHeaders)}deleteLanguageunderstandingMinerDraft(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "minerId" when calling deleteLanguageunderstandingMinerDraft';if(i==null||i==="")throw'Missing the required parameter "draftId" when calling deleteLanguageunderstandingMinerDraft';return this.apiClient.callApi("/api/v2/languageunderstanding/miners/{minerId}/drafts/{draftId}","DELETE",{minerId:e,draftId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getLanguageunderstandingDomain(e,i){if(i=i||{},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"],i.customHeaders)}getLanguageunderstandingDomainFeedback(e,i){if(i=i||{},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:i.intentName,assessment:i.assessment,dateStart:i.dateStart,dateEnd:i.dateEnd,includeDeleted:i.includeDeleted,language:i.language,pageNumber:i.pageNumber,pageSize:i.pageSize,enableCursorPagination:i.enableCursorPagination,includeTrainingUtterances:i.includeTrainingUtterances,after:i.after,fields:this.apiClient.buildCollectionParam(i.fields,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getLanguageunderstandingDomainFeedbackFeedbackId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "domainId" when calling getLanguageunderstandingDomainFeedbackFeedbackId';if(i==null||i==="")throw'Missing the required parameter "feedbackId" when calling getLanguageunderstandingDomainFeedbackFeedbackId';return this.apiClient.callApi("/api/v2/languageunderstanding/domains/{domainId}/feedback/{feedbackId}","GET",{domainId:e,feedbackId:i},{fields:this.apiClient.buildCollectionParam(n.fields,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getLanguageunderstandingDomainVersion(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "domainId" when calling getLanguageunderstandingDomainVersion';if(i==null||i==="")throw'Missing the required parameter "domainVersionId" when calling getLanguageunderstandingDomainVersion';return this.apiClient.callApi("/api/v2/languageunderstanding/domains/{domainId}/versions/{domainVersionId}","GET",{domainId:e,domainVersionId:i},{includeUtterances:n.includeUtterances},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getLanguageunderstandingDomainVersionReport(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "domainId" when calling getLanguageunderstandingDomainVersionReport';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getLanguageunderstandingDomainVersions(e,i){if(i=i||{},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:i.includeUtterances,pageNumber:i.pageNumber,pageSize:i.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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:i.pageSize,pageNumber:i.pageNumber,text:i.text,sortOrder:i.sortOrder,sortBy:i.sortBy},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getLanguageunderstandingIgnoretopic(e,i){if(i=i||{},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:i.pageSize,pageNumber:i.pageNumber,text:i.text,sortOrder:i.sortOrder,sortBy:i.sortBy},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getLanguageunderstandingMiner(e,i){if(i=i||{},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"],i.customHeaders)}getLanguageunderstandingMinerDraft(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "minerId" when calling getLanguageunderstandingMinerDraft';if(i==null||i==="")throw'Missing the required parameter "draftId" when calling getLanguageunderstandingMinerDraft';return this.apiClient.callApi("/api/v2/languageunderstanding/miners/{minerId}/drafts/{draftId}","GET",{minerId:e,draftId:i},{draftIntentId:n.draftIntentId,draftTopicId:n.draftTopicId},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getLanguageunderstandingMinerDrafts(e,i){if(i=i||{},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"],i.customHeaders)}getLanguageunderstandingMinerIntent(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "minerId" when calling getLanguageunderstandingMinerIntent';if(i==null||i==="")throw'Missing the required parameter "intentId" when calling getLanguageunderstandingMinerIntent';return this.apiClient.callApi("/api/v2/languageunderstanding/miners/{minerId}/intents/{intentId}","GET",{minerId:e,intentId:i},{expand:n.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getLanguageunderstandingMinerIntents(e,i){if(i=i||{},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:i.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getLanguageunderstandingMinerTopic(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "minerId" when calling getLanguageunderstandingMinerTopic';if(i==null||i==="")throw'Missing the required parameter "topicId" when calling getLanguageunderstandingMinerTopic';return this.apiClient.callApi("/api/v2/languageunderstanding/miners/{minerId}/topics/{topicId}","GET",{minerId:e,topicId:i},{expand:n.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getLanguageunderstandingMinerTopicPhrase(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "minerId" when calling getLanguageunderstandingMinerTopicPhrase';if(i==null||i==="")throw'Missing the required parameter "topicId" when calling getLanguageunderstandingMinerTopicPhrase';if(n==null||n==="")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:i,phraseId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getLanguageunderstandingMinerTopics(e,i){if(i=i||{},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"],i.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,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "domainId" when calling patchLanguageunderstandingDomain';if(i==null)throw'Missing the required parameter "body" when calling patchLanguageunderstandingDomain';return this.apiClient.callApi("/api/v2/languageunderstanding/domains/{domainId}","PATCH",{domainId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchLanguageunderstandingMinerDraft(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "minerId" when calling patchLanguageunderstandingMinerDraft';if(i==null||i==="")throw'Missing the required parameter "draftId" when calling patchLanguageunderstandingMinerDraft';return this.apiClient.callApi("/api/v2/languageunderstanding/miners/{minerId}/drafts/{draftId}","PATCH",{minerId:e,draftId:i},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postLanguageunderstandingDomainFeedback(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "domainId" when calling postLanguageunderstandingDomainFeedback';if(i==null)throw'Missing the required parameter "body" when calling postLanguageunderstandingDomainFeedback';return this.apiClient.callApi("/api/v2/languageunderstanding/domains/{domainId}/feedback","POST",{domainId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postLanguageunderstandingDomainVersionDetect(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "domainId" when calling postLanguageunderstandingDomainVersionDetect';if(i==null||i==="")throw'Missing the required parameter "domainVersionId" when calling postLanguageunderstandingDomainVersionDetect';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postLanguageunderstandingDomainVersionPublish(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "domainId" when calling postLanguageunderstandingDomainVersionPublish';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postLanguageunderstandingDomainVersionTrain(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "domainId" when calling postLanguageunderstandingDomainVersionTrain';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postLanguageunderstandingDomainVersions(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "domainId" when calling postLanguageunderstandingDomainVersions';if(i==null)throw'Missing the required parameter "body" when calling postLanguageunderstandingDomainVersions';return this.apiClient.callApi("/api/v2/languageunderstanding/domains/{domainId}/versions","POST",{domainId:e},{includeUtterances:n.includeUtterances},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postLanguageunderstandingDomains(e,i){if(i=i||{},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"],i.customHeaders)}postLanguageunderstandingIgnorephrase(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "languageCode" when calling postLanguageunderstandingIgnorephrase';if(i==null)throw'Missing the required parameter "body" when calling postLanguageunderstandingIgnorephrase';return this.apiClient.callApi("/api/v2/languageunderstanding/ignorephrases/{languageCode}","POST",{languageCode:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postLanguageunderstandingIgnorephraseRemove(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "languageCode" when calling postLanguageunderstandingIgnorephraseRemove';if(i==null)throw'Missing the required parameter "body" when calling postLanguageunderstandingIgnorephraseRemove';return this.apiClient.callApi("/api/v2/languageunderstanding/ignorephrases/{languageCode}/remove","POST",{languageCode:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postLanguageunderstandingIgnoretopic(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "languageCode" when calling postLanguageunderstandingIgnoretopic';if(i==null)throw'Missing the required parameter "body" when calling postLanguageunderstandingIgnoretopic';return this.apiClient.callApi("/api/v2/languageunderstanding/ignoretopics/{languageCode}","POST",{languageCode:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postLanguageunderstandingIgnoretopicRemove(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "languageCode" when calling postLanguageunderstandingIgnoretopicRemove';if(i==null)throw'Missing the required parameter "body" when calling postLanguageunderstandingIgnoretopicRemove';return this.apiClient.callApi("/api/v2/languageunderstanding/ignoretopics/{languageCode}/remove","POST",{languageCode:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postLanguageunderstandingMinerDrafts(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "minerId" when calling postLanguageunderstandingMinerDrafts';if(i==null)throw'Missing the required parameter "body" when calling postLanguageunderstandingMinerDrafts';return this.apiClient.callApi("/api/v2/languageunderstanding/miners/{minerId}/drafts","POST",{minerId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postLanguageunderstandingMinerExecute(e,i){if(i=i||{},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},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postLanguageunderstandingMiners(e,i){if(i=i||{},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"],i.customHeaders)}putLanguageunderstandingDomainVersion(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "domainId" when calling putLanguageunderstandingDomainVersion';if(i==null||i==="")throw'Missing the required parameter "domainVersionId" when calling putLanguageunderstandingDomainVersion';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}},db=class{constructor(e){this.apiClient=e||q.instance}deleteLanguage(e,i){if(i=i||{},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"],i.customHeaders)}getLanguage(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getLanguagesTranslationsOrganization(e,i){if(i=i||{},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"],i.customHeaders)}getLanguagesTranslationsUser(e,i){if(i=i||{},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"],i.customHeaders)}postLanguages(e,i){if(i=i||{},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"],i.customHeaders)}},hb=class{constructor(e){this.apiClient=e||q.instance}deleteLearningAssignment(e,i){if(i=i||{},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"],i.customHeaders)}deleteLearningModule(e,i){if(i=i||{},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"],i.customHeaders)}getLearningAssignment(e,i){if(i=i||{},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(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getLearningAssignmentStep(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "assignmentId" when calling getLearningAssignmentStep';if(i==null||i==="")throw'Missing the required parameter "stepId" when calling getLearningAssignmentStep';return this.apiClient.callApi("/api/v2/learning/assignments/{assignmentId}/steps/{stepId}","GET",{assignmentId:e,stepId:i},{shareableContentObjectId:n.shareableContentObjectId,defaultShareableContentObject:n.defaultShareableContentObject,expand:this.apiClient.buildCollectionParam(n.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.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,i){if(i=i||{},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(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getLearningModuleJob(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "moduleId" when calling getLearningModuleJob';if(i==null||i==="")throw'Missing the required parameter "jobId" when calling getLearningModuleJob';return this.apiClient.callApi("/api/v2/learning/modules/{moduleId}/jobs/{jobId}","GET",{moduleId:e,jobId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getLearningModulePreview(e,i){if(i=i||{},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"],i.customHeaders)}getLearningModuleRule(e,i){if(i=i||{},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"],i.customHeaders)}getLearningModuleVersion(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "moduleId" when calling getLearningModuleVersion';if(i==null||i==="")throw'Missing the required parameter "versionId" when calling getLearningModuleVersion';return this.apiClient.callApi("/api/v2/learning/modules/{moduleId}/versions/{versionId}","GET",{moduleId:e,versionId:i},{expand:this.apiClient.buildCollectionParam(n.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getLearningModules(e){return e=e||{},this.apiClient.callApi("/api/v2/learning/modules","GET",{},{isArchived:e.isArchived,types:this.apiClient.buildCollectionParam(e.types,"multi"),pageSize:e.pageSize,pageNumber:e.pageNumber,sortOrder:e.sortOrder,sortBy:e.sortBy,searchTerm:e.searchTerm,expand:this.apiClient.buildCollectionParam(e.expand,"multi"),isPublished:e.isPublished,statuses:this.apiClient.buildCollectionParam(e.statuses,"multi"),externalIds:this.apiClient.buildCollectionParam(e.externalIds,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getLearningModulesAssignments(e,i){if(i=i||{},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:i.pageSize,pageNumber:i.pageNumber,searchTerm:i.searchTerm,overdue:i.overdue,assignmentStates:this.apiClient.buildCollectionParam(i.assignmentStates,"multi"),expand:this.apiClient.buildCollectionParam(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getLearningModulesCoverartCoverArtId(e,i){if(i=i||{},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"],i.customHeaders)}getLearningScheduleslotsJob(e,i){if(i=i||{},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"],i.customHeaders)}getLearningScormScormId(e,i){if(i=i||{},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"],i.customHeaders)}patchLearningAssignment(e,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "assignmentId" when calling patchLearningAssignment';return this.apiClient.callApi("/api/v2/learning/assignments/{assignmentId}","PATCH",{assignmentId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}patchLearningAssignmentReschedule(e,i){if(i=i||{},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},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}patchLearningAssignmentStep(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "assignmentId" when calling patchLearningAssignmentStep';if(i==null||i==="")throw'Missing the required parameter "stepId" when calling patchLearningAssignmentStep';return this.apiClient.callApi("/api/v2/learning/assignments/{assignmentId}/steps/{stepId}","PATCH",{assignmentId:e,stepId:i},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchLearningModuleUserAssignments(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "moduleId" when calling patchLearningModuleUserAssignments';if(i==null||i==="")throw'Missing the required parameter "userId" when calling patchLearningModuleUserAssignments';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postLearningAssessmentsScoring(e,i){if(i=i||{},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"],i.customHeaders)}postLearningAssignmentReassign(e,i){if(i=i||{},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"],i.customHeaders)}postLearningAssignmentReset(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "moduleId" when calling postLearningModuleJobs';if(i==null)throw'Missing the required parameter "body" when calling postLearningModuleJobs';return this.apiClient.callApi("/api/v2/learning/modules/{moduleId}/jobs","POST",{moduleId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postLearningModulePublish(e,i){if(i=i||{},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},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postLearningModuleRuleMigrate(e,i){if(i=i||{},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"],i.customHeaders)}postLearningModules(e,i){if(i=i||{},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"],i.customHeaders)}postLearningRulesQuery(e,i,n,a){if(a=a||{},e==null)throw'Missing the required parameter "pageSize" when calling postLearningRulesQuery';if(i==null)throw'Missing the required parameter "pageNumber" when calling postLearningRulesQuery';if(n==null)throw'Missing the required parameter "body" when calling postLearningRulesQuery';return this.apiClient.callApi("/api/v2/learning/rules/query","POST",{},{pageSize:e,pageNumber:i},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postLearningScheduleslotsJobs(e,i){if(i=i||{},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"],i.customHeaders)}postLearningScheduleslotsQuery(e,i){if(i=i||{},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"],i.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,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "moduleId" when calling putLearningModule';if(i==null)throw'Missing the required parameter "body" when calling putLearningModule';return this.apiClient.callApi("/api/v2/learning/modules/{moduleId}","PUT",{moduleId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putLearningModulePreview(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "moduleId" when calling putLearningModulePreview';if(i==null)throw'Missing the required parameter "body" when calling putLearningModulePreview';return this.apiClient.callApi("/api/v2/learning/modules/{moduleId}/preview","PUT",{moduleId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putLearningModuleRule(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "moduleId" when calling putLearningModuleRule';if(i==null)throw'Missing the required parameter "body" when calling putLearningModuleRule';return this.apiClient.callApi("/api/v2/learning/modules/{moduleId}/rule","PUT",{moduleId:e},{assign:n.assign},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}},gb=class{constructor(e){this.apiClient=e||q.instance}getLicenseDefinition(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getLicenseUser(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}postLicenseUsers(e){return e=e||{},this.apiClient.callApi("/api/v2/license/users","POST",{},{},{},{},e.body,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}},mb=class{constructor(e){this.apiClient=e||q.instance}deleteLocation(e,i){if(i=i||{},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"],i.customHeaders)}getLocation(e,i){if(i=i||{},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(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getLocationSublocations(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}patchLocation(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "locationId" when calling patchLocation';if(i==null)throw'Missing the required parameter "body" when calling patchLocation';return this.apiClient.callApi("/api/v2/locations/{locationId}","PATCH",{locationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postLocations(e,i){if(i=i||{},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"],i.customHeaders)}postLocationsSearch(e,i){if(i=i||{},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"],i.customHeaders)}},fb=class{constructor(e){this.apiClient=e||q.instance}deleteDiagnosticsLogcaptureBrowserUser(e,i){if(i=i||{},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"],i.customHeaders)}getDiagnosticsLogcaptureBrowserEntriesDownloadJob(e,i){if(i=i||{},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"],i.customHeaders)}getDiagnosticsLogcaptureBrowserUser(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}},wb=class{constructor(e){this.apiClient=e||q.instance}deleteMessagingSetting(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getMessagingSetting(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}patchMessagingSetting(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "messageSettingId" when calling patchMessagingSetting';if(i==null)throw'Missing the required parameter "body" when calling patchMessagingSetting';return this.apiClient.callApi("/api/v2/messaging/settings/{messageSettingId}","PATCH",{messageSettingId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchMessagingSupportedcontentSupportedContentId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "supportedContentId" when calling patchMessagingSupportedcontentSupportedContentId';if(i==null)throw'Missing the required parameter "body" when calling patchMessagingSupportedcontentSupportedContentId';return this.apiClient.callApi("/api/v2/messaging/supportedcontent/{supportedContentId}","PATCH",{supportedContentId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postMessagingSettings(e,i){if(i=i||{},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"],i.customHeaders)}postMessagingSupportedcontent(e,i){if(i=i||{},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"],i.customHeaders)}putMessagingSettingsDefault(e,i){if(i=i||{},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"],i.customHeaders)}},vb=class{constructor(e){this.apiClient=e||q.instance}deleteMobiledevice(e,i){if(i=i||{},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"],i.customHeaders)}getMobiledevice(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}putMobiledevice(e,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "deviceId" when calling putMobiledevice';return this.apiClient.callApi("/api/v2/mobiledevices/{deviceId}","PUT",{deviceId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}},Cb=class{constructor(e){this.apiClient=e||q.instance}deleteNotificationsChannelSubscriptions(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}postNotificationsChannelSubscriptions(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "channelId" when calling postNotificationsChannelSubscriptions';if(i==null)throw'Missing the required parameter "body" when calling postNotificationsChannelSubscriptions';return this.apiClient.callApi("/api/v2/notifications/channels/{channelId}/subscriptions","POST",{channelId:e},{ignoreErrors:n.ignoreErrors},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.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,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "channelId" when calling putNotificationsChannelSubscriptions';if(i==null)throw'Missing the required parameter "body" when calling putNotificationsChannelSubscriptions';return this.apiClient.callApi("/api/v2/notifications/channels/{channelId}/subscriptions","PUT",{channelId:e},{ignoreErrors:n.ignoreErrors},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}},Ab=class{constructor(e){this.apiClient=e||q.instance}deleteOauthClient(e,i){if(i=i||{},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"],i.customHeaders)}getOauthAuthorization(e,i){if(i=i||{},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":i.acceptLanguage},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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"],i.customHeaders)}getOauthClientUsageQueryResult(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "executionId" when calling getOauthClientUsageQueryResult';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getOauthClientUsageSummary(e,i){if(i=i||{},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:i.days},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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":i.acceptLanguage},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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"],i.customHeaders)}postOauthClientUsageQuery(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "clientId" when calling postOauthClientUsageQuery';if(i==null)throw'Missing the required parameter "body" when calling postOauthClientUsageQuery';return this.apiClient.callApi("/api/v2/oauth/clients/{clientId}/usage/query","POST",{clientId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postOauthClients(e,i){if(i=i||{},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"],i.customHeaders)}putOauthClient(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "clientId" when calling putOauthClient';if(i==null)throw'Missing the required parameter "body" when calling putOauthClient';return this.apiClient.callApi("/api/v2/oauth/clients/{clientId}","PUT",{clientId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}},bb=class{constructor(e){this.apiClient=e||q.instance}deleteAuthorizationDivision(e,i){if(i=i||{},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:i.force},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getAuthorizationDivision(e,i){if(i=i||{},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:i.objectCount},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "divisionId" when calling postAuthorizationDivisionObject';if(i==null||i==="")throw'Missing the required parameter "objectType" when calling postAuthorizationDivisionObject';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postAuthorizationDivisionRestore(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "divisionId" when calling postAuthorizationDivisionRestore';if(i==null)throw'Missing the required parameter "body" when calling postAuthorizationDivisionRestore';return this.apiClient.callApi("/api/v2/authorization/divisions/{divisionId}/restore","POST",{divisionId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postAuthorizationDivisions(e,i){if(i=i||{},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"],i.customHeaders)}putAuthorizationDivision(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "divisionId" when calling putAuthorizationDivision';if(i==null)throw'Missing the required parameter "body" when calling putAuthorizationDivision';return this.apiClient.callApi("/api/v2/authorization/divisions/{divisionId}","PUT",{divisionId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}},yb=class{constructor(e){this.apiClient=e||q.instance}getUsageEventsDefinition(e,i){if(i=i||{},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"],i.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)}},Pb=class{constructor(e){this.apiClient=e||q.instance}getFieldconfig(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getOrganizationsLimitsNamespaceDefaults(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}patchOrganizationsFeature(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "featureName" when calling patchOrganizationsFeature';if(i==null)throw'Missing the required parameter "enabled" when calling patchOrganizationsFeature';return this.apiClient.callApi("/api/v2/organizations/features/{featureName}","PATCH",{featureName:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putOrganizationsEmbeddedintegration(e,i){if(i=i||{},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"],i.customHeaders)}putOrganizationsIpaddressauthentication(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}},jb=class{constructor(e){this.apiClient=e||q.instance}deleteOrgauthorizationTrustee(e,i){if(i=i||{},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"],i.customHeaders)}deleteOrgauthorizationTrusteeCloneduser(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "trusteeOrgId" when calling deleteOrgauthorizationTrusteeCloneduser';if(i==null||i==="")throw'Missing the required parameter "trusteeUserId" when calling deleteOrgauthorizationTrusteeCloneduser';return this.apiClient.callApi("/api/v2/orgauthorization/trustees/{trusteeOrgId}/clonedusers/{trusteeUserId}","DELETE",{trusteeOrgId:e,trusteeUserId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteOrgauthorizationTrusteeGroup(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "trusteeOrgId" when calling deleteOrgauthorizationTrusteeGroup';if(i==null||i==="")throw'Missing the required parameter "trusteeGroupId" when calling deleteOrgauthorizationTrusteeGroup';return this.apiClient.callApi("/api/v2/orgauthorization/trustees/{trusteeOrgId}/groups/{trusteeGroupId}","DELETE",{trusteeOrgId:e,trusteeGroupId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteOrgauthorizationTrusteeGroupRoles(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "trusteeOrgId" when calling deleteOrgauthorizationTrusteeGroupRoles';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteOrgauthorizationTrusteeUser(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "trusteeOrgId" when calling deleteOrgauthorizationTrusteeUser';if(i==null||i==="")throw'Missing the required parameter "trusteeUserId" when calling deleteOrgauthorizationTrusteeUser';return this.apiClient.callApi("/api/v2/orgauthorization/trustees/{trusteeOrgId}/users/{trusteeUserId}","DELETE",{trusteeOrgId:e,trusteeUserId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteOrgauthorizationTrusteeUserRoles(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "trusteeOrgId" when calling deleteOrgauthorizationTrusteeUserRoles';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteOrgauthorizationTrustees(e,i){if(i=i||{},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"],i.customHeaders)}deleteOrgauthorizationTrustor(e,i){if(i=i||{},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"],i.customHeaders)}deleteOrgauthorizationTrustorCloneduser(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "trustorOrgId" when calling deleteOrgauthorizationTrustorCloneduser';if(i==null||i==="")throw'Missing the required parameter "trusteeUserId" when calling deleteOrgauthorizationTrustorCloneduser';return this.apiClient.callApi("/api/v2/orgauthorization/trustors/{trustorOrgId}/clonedusers/{trusteeUserId}","DELETE",{trustorOrgId:e,trusteeUserId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteOrgauthorizationTrustorGroup(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "trustorOrgId" when calling deleteOrgauthorizationTrustorGroup';if(i==null||i==="")throw'Missing the required parameter "trustorGroupId" when calling deleteOrgauthorizationTrustorGroup';return this.apiClient.callApi("/api/v2/orgauthorization/trustors/{trustorOrgId}/groups/{trustorGroupId}","DELETE",{trustorOrgId:e,trustorGroupId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteOrgauthorizationTrustorUser(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "trustorOrgId" when calling deleteOrgauthorizationTrustorUser';if(i==null||i==="")throw'Missing the required parameter "trusteeUserId" when calling deleteOrgauthorizationTrustorUser';return this.apiClient.callApi("/api/v2/orgauthorization/trustors/{trustorOrgId}/users/{trusteeUserId}","DELETE",{trustorOrgId:e,trusteeUserId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteOrgauthorizationTrustors(e,i){if(i=i||{},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"],i.customHeaders)}getOrgauthorizationPairing(e,i){if(i=i||{},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"],i.customHeaders)}getOrgauthorizationTrustee(e,i){if(i=i||{},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"],i.customHeaders)}getOrgauthorizationTrusteeClonedusers(e,i){if(i=i||{},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"],i.customHeaders)}getOrgauthorizationTrusteeGroup(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "trusteeOrgId" when calling getOrgauthorizationTrusteeGroup';if(i==null||i==="")throw'Missing the required parameter "trusteeGroupId" when calling getOrgauthorizationTrusteeGroup';return this.apiClient.callApi("/api/v2/orgauthorization/trustees/{trusteeOrgId}/groups/{trusteeGroupId}","GET",{trusteeOrgId:e,trusteeGroupId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getOrgauthorizationTrusteeGroupRoles(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "trusteeOrgId" when calling getOrgauthorizationTrusteeGroupRoles';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getOrgauthorizationTrusteeGroups(e,i){if(i=i||{},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:i.pageSize,pageNumber:i.pageNumber},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getOrgauthorizationTrusteeUser(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "trusteeOrgId" when calling getOrgauthorizationTrusteeUser';if(i==null||i==="")throw'Missing the required parameter "trusteeUserId" when calling getOrgauthorizationTrusteeUser';return this.apiClient.callApi("/api/v2/orgauthorization/trustees/{trusteeOrgId}/users/{trusteeUserId}","GET",{trusteeOrgId:e,trusteeUserId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getOrgauthorizationTrusteeUserRoles(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "trusteeOrgId" when calling getOrgauthorizationTrusteeUserRoles';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getOrgauthorizationTrusteeUsers(e,i){if(i=i||{},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:i.pageSize,pageNumber:i.pageNumber},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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"],i.customHeaders)}getOrgauthorizationTrustorCloneduser(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "trustorOrgId" when calling getOrgauthorizationTrustorCloneduser';if(i==null||i==="")throw'Missing the required parameter "trusteeUserId" when calling getOrgauthorizationTrustorCloneduser';return this.apiClient.callApi("/api/v2/orgauthorization/trustors/{trustorOrgId}/clonedusers/{trusteeUserId}","GET",{trustorOrgId:e,trusteeUserId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getOrgauthorizationTrustorClonedusers(e,i){if(i=i||{},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"],i.customHeaders)}getOrgauthorizationTrustorGroup(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "trustorOrgId" when calling getOrgauthorizationTrustorGroup';if(i==null||i==="")throw'Missing the required parameter "trustorGroupId" when calling getOrgauthorizationTrustorGroup';return this.apiClient.callApi("/api/v2/orgauthorization/trustors/{trustorOrgId}/groups/{trustorGroupId}","GET",{trustorOrgId:e,trustorGroupId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getOrgauthorizationTrustorGroups(e,i){if(i=i||{},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:i.pageSize,pageNumber:i.pageNumber},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getOrgauthorizationTrustorUser(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "trustorOrgId" when calling getOrgauthorizationTrustorUser';if(i==null||i==="")throw'Missing the required parameter "trusteeUserId" when calling getOrgauthorizationTrustorUser';return this.apiClient.callApi("/api/v2/orgauthorization/trustors/{trustorOrgId}/users/{trusteeUserId}","GET",{trustorOrgId:e,trusteeUserId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getOrgauthorizationTrustorUsers(e,i){if(i=i||{},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:i.pageSize,pageNumber:i.pageNumber},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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"],i.customHeaders)}postOrgauthorizationTrusteeGroups(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "trusteeOrgId" when calling postOrgauthorizationTrusteeGroups';if(i==null)throw'Missing the required parameter "body" when calling postOrgauthorizationTrusteeGroups';return this.apiClient.callApi("/api/v2/orgauthorization/trustees/{trusteeOrgId}/groups","POST",{trusteeOrgId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postOrgauthorizationTrusteeUsers(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "trusteeOrgId" when calling postOrgauthorizationTrusteeUsers';if(i==null)throw'Missing the required parameter "body" when calling postOrgauthorizationTrusteeUsers';return this.apiClient.callApi("/api/v2/orgauthorization/trustees/{trusteeOrgId}/users","POST",{trusteeOrgId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postOrgauthorizationTrustees(e,i){if(i=i||{},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"],i.customHeaders)}postOrgauthorizationTrusteesAudits(e,i){if(i=i||{},e==null)throw'Missing the required parameter "body" when calling postOrgauthorizationTrusteesAudits';return this.apiClient.callApi("/api/v2/orgauthorization/trustees/audits","POST",{},{pageSize:i.pageSize,pageNumber:i.pageNumber,sortBy:i.sortBy,sortOrder:i.sortOrder},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},e==null)throw'Missing the required parameter "body" when calling postOrgauthorizationTrustorAudits';return this.apiClient.callApi("/api/v2/orgauthorization/trustor/audits","POST",{},{pageSize:i.pageSize,pageNumber:i.pageNumber,sortBy:i.sortBy,sortOrder:i.sortOrder},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}putOrgauthorizationTrustee(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "trusteeOrgId" when calling putOrgauthorizationTrustee';if(i==null)throw'Missing the required parameter "body" when calling putOrgauthorizationTrustee';return this.apiClient.callApi("/api/v2/orgauthorization/trustees/{trusteeOrgId}","PUT",{trusteeOrgId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putOrgauthorizationTrusteeGroupRoledivisions(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "trusteeOrgId" when calling putOrgauthorizationTrusteeGroupRoledivisions';if(i==null||i==="")throw'Missing the required parameter "trusteeGroupId" when calling putOrgauthorizationTrusteeGroupRoledivisions';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}putOrgauthorizationTrusteeGroupRoles(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "trusteeOrgId" when calling putOrgauthorizationTrusteeGroupRoles';if(i==null||i==="")throw'Missing the required parameter "trusteeGroupId" when calling putOrgauthorizationTrusteeGroupRoles';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}putOrgauthorizationTrusteeUserRoledivisions(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "trusteeOrgId" when calling putOrgauthorizationTrusteeUserRoledivisions';if(i==null||i==="")throw'Missing the required parameter "trusteeUserId" when calling putOrgauthorizationTrusteeUserRoledivisions';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}putOrgauthorizationTrusteeUserRoles(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "trusteeOrgId" when calling putOrgauthorizationTrusteeUserRoles';if(i==null||i==="")throw'Missing the required parameter "trusteeUserId" when calling putOrgauthorizationTrusteeUserRoles';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}putOrgauthorizationTrustorCloneduser(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "trustorOrgId" when calling putOrgauthorizationTrustorCloneduser';if(i==null||i==="")throw'Missing the required parameter "trusteeUserId" when calling putOrgauthorizationTrustorCloneduser';return this.apiClient.callApi("/api/v2/orgauthorization/trustors/{trustorOrgId}/clonedusers/{trusteeUserId}","PUT",{trustorOrgId:e,trusteeUserId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putOrgauthorizationTrustorGroup(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "trustorOrgId" when calling putOrgauthorizationTrustorGroup';if(i==null||i==="")throw'Missing the required parameter "trustorGroupId" when calling putOrgauthorizationTrustorGroup';return this.apiClient.callApi("/api/v2/orgauthorization/trustors/{trustorOrgId}/groups/{trustorGroupId}","PUT",{trustorOrgId:e,trustorGroupId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putOrgauthorizationTrustorUser(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "trustorOrgId" when calling putOrgauthorizationTrustorUser';if(i==null||i==="")throw'Missing the required parameter "trusteeUserId" when calling putOrgauthorizationTrustorUser';return this.apiClient.callApi("/api/v2/orgauthorization/trustors/{trustorOrgId}/users/{trusteeUserId}","PUT",{trustorOrgId:e,trusteeUserId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}},Sb=class{constructor(e){this.apiClient=e||q.instance}deleteOutboundAttemptlimit(e,i){if(i=i||{},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"],i.customHeaders)}deleteOutboundCallabletimeset(e,i){if(i=i||{},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"],i.customHeaders)}deleteOutboundCallanalysisresponseset(e,i){if(i=i||{},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"],i.customHeaders)}deleteOutboundCampaign(e,i){if(i=i||{},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"],i.customHeaders)}deleteOutboundCampaignProgress(e,i){if(i=i||{},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"],i.customHeaders)}deleteOutboundCampaignrule(e,i){if(i=i||{},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"],i.customHeaders)}deleteOutboundContactlist(e,i){if(i=i||{},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"],i.customHeaders)}deleteOutboundContactlistContact(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "contactListId" when calling deleteOutboundContactlistContact';if(i==null||i==="")throw'Missing the required parameter "contactId" when calling deleteOutboundContactlistContact';return this.apiClient.callApi("/api/v2/outbound/contactlists/{contactListId}/contacts/{contactId}","DELETE",{contactListId:e,contactId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteOutboundContactlistContacts(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "contactListId" when calling deleteOutboundContactlistContacts';if(i==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(i,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteOutboundContactlistfilter(e,i){if(i=i||{},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"],i.customHeaders)}deleteOutboundContactlists(e,i){if(i=i||{},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"],i.customHeaders)}deleteOutboundContactlisttemplate(e,i){if(i=i||{},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"],i.customHeaders)}deleteOutboundContactlisttemplates(e,i){if(i=i||{},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"],i.customHeaders)}deleteOutboundDigitalruleset(e,i){if(i=i||{},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"],i.customHeaders)}deleteOutboundDnclist(e,i){if(i=i||{},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"],i.customHeaders)}deleteOutboundDnclistCustomexclusioncolumns(e,i){if(i=i||{},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:i.expiredOnly},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}deleteOutboundDnclistEmailaddresses(e,i){if(i=i||{},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:i.expiredOnly},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}deleteOutboundDnclistPhonenumbers(e,i){if(i=i||{},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:i.expiredOnly},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}deleteOutboundDnclistWhatsappnumbers(e,i){if(i=i||{},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:i.expiredOnly},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}deleteOutboundFilespecificationtemplate(e,i){if(i=i||{},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"],i.customHeaders)}deleteOutboundFilespecificationtemplatesBulk(e,i){if(i=i||{},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"],i.customHeaders)}deleteOutboundImporttemplate(e,i){if(i=i||{},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"],i.customHeaders)}deleteOutboundImporttemplates(e,i){if(i=i||{},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"],i.customHeaders)}deleteOutboundMessagingcampaign(e,i){if(i=i||{},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"],i.customHeaders)}deleteOutboundMessagingcampaignProgress(e,i){if(i=i||{},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"],i.customHeaders)}deleteOutboundRuleset(e,i){if(i=i||{},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"],i.customHeaders)}deleteOutboundSchedulesCampaign(e,i){if(i=i||{},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"],i.customHeaders)}deleteOutboundSchedulesEmailcampaign(e,i){if(i=i||{},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"],i.customHeaders)}deleteOutboundSchedulesMessagingcampaign(e,i){if(i=i||{},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"],i.customHeaders)}deleteOutboundSchedulesSequence(e,i){if(i=i||{},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"],i.customHeaders)}deleteOutboundSchedulesWhatsappcampaign(e,i){if(i=i||{},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"],i.customHeaders)}deleteOutboundSequence(e,i){if(i=i||{},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"],i.customHeaders)}getOutboundAttemptlimit(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getOutboundCampaignAgentownedmappingpreviewResults(e,i){if(i=i||{},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"],i.customHeaders)}getOutboundCampaignDiagnostics(e,i){if(i=i||{},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"],i.customHeaders)}getOutboundCampaignInteractions(e,i){if(i=i||{},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"],i.customHeaders)}getOutboundCampaignLinedistribution(e,i){if(i=i||{},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:i.includeOnlyActiveCampaigns,edgeGroupId:i.edgeGroupId,siteId:i.siteId,useWeight:i.useWeight,relativeWeight:i.relativeWeight,outboundLineCount:i.outboundLineCount},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getOutboundCampaignProgress(e,i){if(i=i||{},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"],i.customHeaders)}getOutboundCampaignSkillcombinations(e,i){if(i=i||{},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:i.pageNumber,pageSize:i.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getOutboundCampaignStats(e,i){if(i=i||{},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"],i.customHeaders)}getOutboundCampaignrule(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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:i.includeImportStatus,includeSize:i.includeSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getOutboundContactlistContact(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "contactListId" when calling getOutboundContactlistContact';if(i==null||i==="")throw'Missing the required parameter "contactId" when calling getOutboundContactlistContact';return this.apiClient.callApi("/api/v2/outbound/contactlists/{contactListId}/contacts/{contactId}","GET",{contactListId:e,contactId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getOutboundContactlistContactsBulkJob(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "contactListId" when calling getOutboundContactlistContactsBulkJob';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getOutboundContactlistContactsBulkJobs(e,i){if(i=i||{},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"],i.customHeaders)}getOutboundContactlistExport(e,i){if(i=i||{},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:i.download},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getOutboundContactlistImportstatus(e,i){if(i=i||{},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"],i.customHeaders)}getOutboundContactlistTimezonemappingpreview(e,i){if(i=i||{},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"],i.customHeaders)}getOutboundContactlistfilter(e,i){if(i=i||{},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"],i.customHeaders)}getOutboundContactlistfilters(e){return e=e||{},this.apiClient.callApi("/api/v2/outbound/contactlistfilters","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,allowEmptyResult:e.allowEmptyResult,filterType:e.filterType,name:e.name,sortBy:e.sortBy,sortOrder:e.sortOrder,contactListId:e.contactListId},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getOutboundContactlists(e){return e=e||{},this.apiClient.callApi("/api/v2/outbound/contactlists","GET",{},{includeImportStatus:e.includeImportStatus,includeSize:e.includeSize,pageSize:e.pageSize,pageNumber:e.pageNumber,allowEmptyResult:e.allowEmptyResult,filterType:e.filterType,name:e.name,id:this.apiClient.buildCollectionParam(e.id,"multi"),divisionId:this.apiClient.buildCollectionParam(e.divisionId,"multi"),sortBy:e.sortBy,sortOrder:e.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getOutboundContactlistsDivisionview(e,i){if(i=i||{},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:i.includeImportStatus,includeSize:i.includeSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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"],i.customHeaders)}getOutboundContactlisttemplates(e){return e=e||{},this.apiClient.callApi("/api/v2/outbound/contactlisttemplates","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,allowEmptyResult:e.allowEmptyResult,filterType:e.filterType,name:e.name,sortBy:e.sortBy,sortOrder:e.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getOutboundDiagnosticsCampaignSummary(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "campaignId" when calling getOutboundDiagnosticsCampaignSummary';if(i==null)throw'Missing the required parameter "start" when calling getOutboundDiagnosticsCampaignSummary';if(n==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:i,end:n},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getOutboundDigitalruleset(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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:i.includeImportStatus,includeSize:i.includeSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getOutboundDnclistExport(e,i){if(i=i||{},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:i.download},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getOutboundDnclistImportstatus(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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:i.includeImportStatus,includeSize:i.includeSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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:i.includeImportStatus},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getOutboundImporttemplateImportstatus(e,i){if(i=i||{},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:i.listNamePrefix},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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"],i.customHeaders)}getOutboundMessagingcampaignDiagnostics(e,i){if(i=i||{},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"],i.customHeaders)}getOutboundMessagingcampaignProgress(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "campaignId" when calling patchOutboundCampaign';if(i==null)throw'Missing the required parameter "body" when calling patchOutboundCampaign';return this.apiClient.callApi("/api/v2/outbound/campaigns/{campaignId}","PATCH",{campaignId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchOutboundDnclistCustomexclusioncolumns(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "dncListId" when calling patchOutboundDnclistCustomexclusioncolumns';if(i==null)throw'Missing the required parameter "body" when calling patchOutboundDnclistCustomexclusioncolumns';return this.apiClient.callApi("/api/v2/outbound/dnclists/{dncListId}/customexclusioncolumns","PATCH",{dncListId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchOutboundDnclistEmailaddresses(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "dncListId" when calling patchOutboundDnclistEmailaddresses';if(i==null)throw'Missing the required parameter "body" when calling patchOutboundDnclistEmailaddresses';return this.apiClient.callApi("/api/v2/outbound/dnclists/{dncListId}/emailaddresses","PATCH",{dncListId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchOutboundDnclistPhonenumbers(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "dncListId" when calling patchOutboundDnclistPhonenumbers';if(i==null)throw'Missing the required parameter "body" when calling patchOutboundDnclistPhonenumbers';return this.apiClient.callApi("/api/v2/outbound/dnclists/{dncListId}/phonenumbers","PATCH",{dncListId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchOutboundDnclistWhatsappnumbers(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "dncListId" when calling patchOutboundDnclistWhatsappnumbers';if(i==null)throw'Missing the required parameter "body" when calling patchOutboundDnclistWhatsappnumbers';return this.apiClient.callApi("/api/v2/outbound/dnclists/{dncListId}/whatsappnumbers","PATCH",{dncListId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchOutboundSettings(e,i){if(i=i||{},e==null)throw'Missing the required parameter "body" when calling patchOutboundSettings';return this.apiClient.callApi("/api/v2/outbound/settings","PATCH",{},{useMaxCallsPerAgentDecimal:i.useMaxCallsPerAgentDecimal},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postOutboundAttemptlimits(e,i){if(i=i||{},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"],i.customHeaders)}postOutboundCallabletimesets(e,i){if(i=i||{},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"],i.customHeaders)}postOutboundCallanalysisresponsesets(e,i){if(i=i||{},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"],i.customHeaders)}postOutboundCampaignAgentownedmappingpreview(e,i){if(i=i||{},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"],i.customHeaders)}postOutboundCampaignCallbackSchedule(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "campaignId" when calling postOutboundCampaignCallbackSchedule';if(i==null)throw'Missing the required parameter "body" when calling postOutboundCampaignCallbackSchedule';return this.apiClient.callApi("/api/v2/outbound/campaigns/{campaignId}/callback/schedule","POST",{campaignId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postOutboundCampaignStart(e,i){if(i=i||{},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"],i.customHeaders)}postOutboundCampaignStop(e,i){if(i=i||{},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"],i.customHeaders)}postOutboundCampaignrules(e,i){if(i=i||{},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"],i.customHeaders)}postOutboundCampaigns(e,i){if(i=i||{},e==null)throw'Missing the required parameter "body" when calling postOutboundCampaigns';return this.apiClient.callApi("/api/v2/outbound/campaigns","POST",{},{useMaxCallsPerAgentDecimal:i.useMaxCallsPerAgentDecimal},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postOutboundCampaignsPerformanceQuery(e,i){if(i=i||{},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"],i.customHeaders)}postOutboundCampaignsProgress(e,i){if(i=i||{},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"],i.customHeaders)}postOutboundContactlistClear(e,i){if(i=i||{},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"],i.customHeaders)}postOutboundContactlistContacts(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "contactListId" when calling postOutboundContactlistContacts';if(i==null)throw'Missing the required parameter "body" when calling postOutboundContactlistContacts';return this.apiClient.callApi("/api/v2/outbound/contactlists/{contactListId}/contacts","POST",{contactListId:e},{priority:n.priority,clearSystemData:n.clearSystemData,doNotQueue:n.doNotQueue},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postOutboundContactlistContactsBulk(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "contactListId" when calling postOutboundContactlistContactsBulk';if(i==null)throw'Missing the required parameter "body" when calling postOutboundContactlistContactsBulk';return this.apiClient.callApi("/api/v2/outbound/contactlists/{contactListId}/contacts/bulk","POST",{contactListId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postOutboundContactlistContactsBulkRemove(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "contactListId" when calling postOutboundContactlistContactsBulkRemove';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postOutboundContactlistContactsBulkUpdate(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "contactListId" when calling postOutboundContactlistContactsBulkUpdate';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postOutboundContactlistContactsSearch(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "contactListId" when calling postOutboundContactlistContactsSearch';if(i==null)throw'Missing the required parameter "body" when calling postOutboundContactlistContactsSearch';return this.apiClient.callApi("/api/v2/outbound/contactlists/{contactListId}/contacts/search","POST",{contactListId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postOutboundContactlistExport(e,i){if(i=i||{},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},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postOutboundContactlistfilters(e,i){if(i=i||{},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"],i.customHeaders)}postOutboundContactlistfiltersBulkRetrieve(e,i){if(i=i||{},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"],i.customHeaders)}postOutboundContactlistfiltersPreview(e,i){if(i=i||{},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"],i.customHeaders)}postOutboundContactlists(e,i){if(i=i||{},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"],i.customHeaders)}postOutboundContactlistsUploads(e,i){if(i=i||{},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"],i.customHeaders)}postOutboundContactlisttemplates(e,i){if(i=i||{},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"],i.customHeaders)}postOutboundContactlisttemplatesBulkAdd(e,i){if(i=i||{},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"],i.customHeaders)}postOutboundContactlisttemplatesBulkRetrieve(e,i){if(i=i||{},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"],i.customHeaders)}postOutboundConversationDnc(e,i){if(i=i||{},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"],i.customHeaders)}postOutboundDigitalrulesets(e,i){if(i=i||{},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"],i.customHeaders)}postOutboundDnclistEmailaddresses(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "dncListId" when calling postOutboundDnclistEmailaddresses';if(i==null)throw'Missing the required parameter "body" when calling postOutboundDnclistEmailaddresses';return this.apiClient.callApi("/api/v2/outbound/dnclists/{dncListId}/emailaddresses","POST",{dncListId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postOutboundDnclistExport(e,i){if(i=i||{},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"],i.customHeaders)}postOutboundDnclistPhonenumbers(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "dncListId" when calling postOutboundDnclistPhonenumbers';if(i==null)throw'Missing the required parameter "body" when calling postOutboundDnclistPhonenumbers';return this.apiClient.callApi("/api/v2/outbound/dnclists/{dncListId}/phonenumbers","POST",{dncListId:e},{expirationDateTime:n.expirationDateTime},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postOutboundDnclists(e,i){if(i=i||{},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"],i.customHeaders)}postOutboundDnclistsUploads(e,i){if(i=i||{},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"],i.customHeaders)}postOutboundFilespecificationtemplates(e,i){if(i=i||{},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"],i.customHeaders)}postOutboundImporttemplates(e,i){if(i=i||{},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"],i.customHeaders)}postOutboundImporttemplatesBulkAdd(e,i){if(i=i||{},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"],i.customHeaders)}postOutboundMessagingcampaignStart(e,i){if(i=i||{},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"],i.customHeaders)}postOutboundMessagingcampaignStop(e,i){if(i=i||{},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"],i.customHeaders)}postOutboundMessagingcampaigns(e,i){if(i=i||{},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"],i.customHeaders)}postOutboundMessagingcampaignsProgress(e,i){if(i=i||{},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"],i.customHeaders)}postOutboundRulesets(e,i){if(i=i||{},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"],i.customHeaders)}postOutboundSequences(e,i){if(i=i||{},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"],i.customHeaders)}putOutboundAttemptlimit(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "attemptLimitsId" when calling putOutboundAttemptlimit';if(i==null)throw'Missing the required parameter "body" when calling putOutboundAttemptlimit';return this.apiClient.callApi("/api/v2/outbound/attemptlimits/{attemptLimitsId}","PUT",{attemptLimitsId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putOutboundCallabletimeset(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "callableTimeSetId" when calling putOutboundCallabletimeset';if(i==null)throw'Missing the required parameter "body" when calling putOutboundCallabletimeset';return this.apiClient.callApi("/api/v2/outbound/callabletimesets/{callableTimeSetId}","PUT",{callableTimeSetId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putOutboundCallanalysisresponseset(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "callAnalysisSetId" when calling putOutboundCallanalysisresponseset';if(i==null)throw'Missing the required parameter "body" when calling putOutboundCallanalysisresponseset';return this.apiClient.callApi("/api/v2/outbound/callanalysisresponsesets/{callAnalysisSetId}","PUT",{callAnalysisSetId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putOutboundCampaign(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "campaignId" when calling putOutboundCampaign';if(i==null)throw'Missing the required parameter "body" when calling putOutboundCampaign';return this.apiClient.callApi("/api/v2/outbound/campaigns/{campaignId}","PUT",{campaignId:e},{useMaxCallsPerAgentDecimal:n.useMaxCallsPerAgentDecimal},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putOutboundCampaignAgent(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "campaignId" when calling putOutboundCampaignAgent';if(i==null||i==="")throw'Missing the required parameter "userId" when calling putOutboundCampaignAgent';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}putOutboundCampaignrule(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "campaignRuleId" when calling putOutboundCampaignrule';if(i==null)throw'Missing the required parameter "body" when calling putOutboundCampaignrule';return this.apiClient.callApi("/api/v2/outbound/campaignrules/{campaignRuleId}","PUT",{campaignRuleId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putOutboundContactlist(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "contactListId" when calling putOutboundContactlist';if(i==null)throw'Missing the required parameter "body" when calling putOutboundContactlist';return this.apiClient.callApi("/api/v2/outbound/contactlists/{contactListId}","PUT",{contactListId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putOutboundContactlistContact(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "contactListId" when calling putOutboundContactlistContact';if(i==null||i==="")throw'Missing the required parameter "contactId" when calling putOutboundContactlistContact';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}putOutboundContactlistfilter(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "contactListFilterId" when calling putOutboundContactlistfilter';if(i==null)throw'Missing the required parameter "body" when calling putOutboundContactlistfilter';return this.apiClient.callApi("/api/v2/outbound/contactlistfilters/{contactListFilterId}","PUT",{contactListFilterId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putOutboundContactlisttemplate(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "contactListTemplateId" when calling putOutboundContactlisttemplate';if(i==null)throw'Missing the required parameter "body" when calling putOutboundContactlisttemplate';return this.apiClient.callApi("/api/v2/outbound/contactlisttemplates/{contactListTemplateId}","PUT",{contactListTemplateId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putOutboundDigitalruleset(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "digitalRuleSetId" when calling putOutboundDigitalruleset';if(i==null)throw'Missing the required parameter "body" when calling putOutboundDigitalruleset';return this.apiClient.callApi("/api/v2/outbound/digitalrulesets/{digitalRuleSetId}","PUT",{digitalRuleSetId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putOutboundDnclist(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "dncListId" when calling putOutboundDnclist';if(i==null)throw'Missing the required parameter "body" when calling putOutboundDnclist';return this.apiClient.callApi("/api/v2/outbound/dnclists/{dncListId}","PUT",{dncListId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putOutboundFilespecificationtemplate(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "fileSpecificationTemplateId" when calling putOutboundFilespecificationtemplate';if(i==null)throw'Missing the required parameter "body" when calling putOutboundFilespecificationtemplate';return this.apiClient.callApi("/api/v2/outbound/filespecificationtemplates/{fileSpecificationTemplateId}","PUT",{fileSpecificationTemplateId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putOutboundImporttemplate(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "importTemplateId" when calling putOutboundImporttemplate';if(i==null)throw'Missing the required parameter "body" when calling putOutboundImporttemplate';return this.apiClient.callApi("/api/v2/outbound/importtemplates/{importTemplateId}","PUT",{importTemplateId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putOutboundMessagingcampaign(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "messagingCampaignId" when calling putOutboundMessagingcampaign';if(i==null)throw'Missing the required parameter "body" when calling putOutboundMessagingcampaign';return this.apiClient.callApi("/api/v2/outbound/messagingcampaigns/{messagingCampaignId}","PUT",{messagingCampaignId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putOutboundRuleset(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "ruleSetId" when calling putOutboundRuleset';if(i==null)throw'Missing the required parameter "body" when calling putOutboundRuleset';return this.apiClient.callApi("/api/v2/outbound/rulesets/{ruleSetId}","PUT",{ruleSetId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putOutboundSchedulesCampaign(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "campaignId" when calling putOutboundSchedulesCampaign';if(i==null)throw'Missing the required parameter "body" when calling putOutboundSchedulesCampaign';return this.apiClient.callApi("/api/v2/outbound/schedules/campaigns/{campaignId}","PUT",{campaignId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putOutboundSchedulesEmailcampaign(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "emailCampaignId" when calling putOutboundSchedulesEmailcampaign';if(i==null)throw'Missing the required parameter "body" when calling putOutboundSchedulesEmailcampaign';return this.apiClient.callApi("/api/v2/outbound/schedules/emailcampaigns/{emailCampaignId}","PUT",{emailCampaignId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putOutboundSchedulesMessagingcampaign(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "messagingCampaignId" when calling putOutboundSchedulesMessagingcampaign';if(i==null)throw'Missing the required parameter "body" when calling putOutboundSchedulesMessagingcampaign';return this.apiClient.callApi("/api/v2/outbound/schedules/messagingcampaigns/{messagingCampaignId}","PUT",{messagingCampaignId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putOutboundSchedulesSequence(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "sequenceId" when calling putOutboundSchedulesSequence';if(i==null)throw'Missing the required parameter "body" when calling putOutboundSchedulesSequence';return this.apiClient.callApi("/api/v2/outbound/schedules/sequences/{sequenceId}","PUT",{sequenceId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putOutboundSchedulesWhatsappcampaign(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "whatsAppCampaignId" when calling putOutboundSchedulesWhatsappcampaign';if(i==null)throw'Missing the required parameter "body" when calling putOutboundSchedulesWhatsappcampaign';return this.apiClient.callApi("/api/v2/outbound/schedules/whatsappcampaigns/{whatsAppCampaignId}","PUT",{whatsAppCampaignId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putOutboundSequence(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "sequenceId" when calling putOutboundSequence';if(i==null)throw'Missing the required parameter "body" when calling putOutboundSequence';return this.apiClient.callApi("/api/v2/outbound/sequences/{sequenceId}","PUT",{sequenceId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putOutboundWrapupcodemappings(e,i){if(i=i||{},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"],i.customHeaders)}},Ob=class{constructor(e){this.apiClient=e||q.instance}deletePresenceDefinition0(e,i){if(i=i||{},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"],i.customHeaders)}deletePresenceSource(e,i){if(i=i||{},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"],i.customHeaders)}deletePresencedefinition(e,i){if(i=i||{},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"],i.customHeaders)}getPresenceDefinition0(e,i){if(i=i||{},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:i.localeCode},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getPresencedefinition(e,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "presenceId" when calling getPresencedefinition';return this.apiClient.callApi("/api/v2/presencedefinitions/{presenceId}","GET",{presenceId:e},{localeCode:i.localeCode},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling getUserPresence';if(i==null||i==="")throw'Missing the required parameter "sourceId" when calling getUserPresence';return this.apiClient.callApi("/api/v2/users/{userId}/presences/{sourceId}","GET",{userId:e,sourceId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getUserPresencesPurecloud(e,i){if(i=i||{},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"],i.customHeaders)}getUsersPresenceBulk(e,i){if(i=i||{},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(i.id,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "userId" when calling patchUserPresence';if(i==null||i==="")throw'Missing the required parameter "sourceId" when calling patchUserPresence';if(n==null)throw'Missing the required parameter "body" when calling patchUserPresence';return this.apiClient.callApi("/api/v2/users/{userId}/presences/{sourceId}","PATCH",{userId:e,sourceId:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchUserPresencesPurecloud(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling patchUserPresencesPurecloud';if(i==null)throw'Missing the required parameter "body" when calling patchUserPresencesPurecloud';return this.apiClient.callApi("/api/v2/users/{userId}/presences/purecloud","PATCH",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postPresenceDefinitions0(e,i){if(i=i||{},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"],i.customHeaders)}postPresenceSources(e,i){if(i=i||{},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"],i.customHeaders)}postPresencedefinitions(e,i){if(i=i||{},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"],i.customHeaders)}putPresenceDefinition0(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "definitionId" when calling putPresenceDefinition0';if(i==null)throw'Missing the required parameter "body" when calling putPresenceDefinition0';return this.apiClient.callApi("/api/v2/presence/definitions/{definitionId}","PUT",{definitionId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putPresenceSettings(e,i){if(i=i||{},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"],i.customHeaders)}putPresenceSource(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "sourceId" when calling putPresenceSource';if(i==null)throw'Missing the required parameter "body" when calling putPresenceSource';return this.apiClient.callApi("/api/v2/presence/sources/{sourceId}","PUT",{sourceId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putPresenceUserPrimarysource(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling putPresenceUserPrimarysource';if(i==null)throw'Missing the required parameter "body" when calling putPresenceUserPrimarysource';return this.apiClient.callApi("/api/v2/presence/users/{userId}/primarysource","PUT",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putPresencedefinition(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "presenceId" when calling putPresencedefinition';if(i==null)throw'Missing the required parameter "body" when calling putPresencedefinition';return this.apiClient.callApi("/api/v2/presencedefinitions/{presenceId}","PUT",{presenceId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putUsersPresencesBulk(e,i){if(i=i||{},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"],i.customHeaders)}},xb=class{constructor(e){this.apiClient=e||q.instance}deleteProcessautomationScheduledtrigger(e,i){if(i=i||{},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"],i.customHeaders)}deleteProcessautomationTrigger(e,i){if(i=i||{},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"],i.customHeaders)}getProcessautomationScheduledtrigger(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}postProcessautomationTriggerTest(e,i){if(i=i||{},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},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postProcessautomationTriggers(e,i){if(i=i||{},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"],i.customHeaders)}postProcessautomationTriggersTopicTest(e,i){if(i=i||{},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},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}putProcessautomationScheduledtrigger(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "scheduledTriggerId" when calling putProcessautomationScheduledtrigger';if(i==null)throw'Missing the required parameter "body" when calling putProcessautomationScheduledtrigger';return this.apiClient.callApi("/api/v2/processautomation/scheduledtriggers/{scheduledTriggerId}","PUT",{scheduledTriggerId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putProcessautomationTrigger(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "triggerId" when calling putProcessautomationTrigger';if(i==null)throw'Missing the required parameter "body" when calling putProcessautomationTrigger';return this.apiClient.callApi("/api/v2/processautomation/triggers/{triggerId}","PUT",{triggerId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}},Tb=class{constructor(e){this.apiClient=e||q.instance}deleteAnalyticsEvaluationsAggregatesJob(e,i){if(i=i||{},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"],i.customHeaders)}deleteAnalyticsSurveysAggregatesJob(e,i){if(i=i||{},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"],i.customHeaders)}deleteQualityCalibration(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "calibrationId" when calling deleteQualityCalibration';if(i==null)throw'Missing the required parameter "calibratorId" when calling deleteQualityCalibration';return this.apiClient.callApi("/api/v2/quality/calibrations/{calibrationId}","DELETE",{calibrationId:e},{calibratorId:i},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteQualityConversationEvaluation(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling deleteQualityConversationEvaluation';if(i==null||i==="")throw'Missing the required parameter "evaluationId" when calling deleteQualityConversationEvaluation';return this.apiClient.callApi("/api/v2/quality/conversations/{conversationId}/evaluations/{evaluationId}","DELETE",{conversationId:e,evaluationId:i},{expand:n.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteQualityForm(e,i){if(i=i||{},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"],i.customHeaders)}deleteQualityFormsEvaluation(e,i){if(i=i||{},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"],i.customHeaders)}deleteQualityFormsSurvey(e,i){if(i=i||{},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"],i.customHeaders)}deleteQualityProgramAgentscoringrule(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "programId" when calling deleteQualityProgramAgentscoringrule';if(i==null||i==="")throw'Missing the required parameter "ruleId" when calling deleteQualityProgramAgentscoringrule';return this.apiClient.callApi("/api/v2/quality/programs/{programId}/agentscoringrules/{ruleId}","DELETE",{programId:e,ruleId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getAnalyticsEvaluationsAggregatesJob(e,i){if(i=i||{},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"],i.customHeaders)}getAnalyticsEvaluationsAggregatesJobResults(e,i){if(i=i||{},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:i.cursor},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getAnalyticsSurveysAggregatesJob(e,i){if(i=i||{},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"],i.customHeaders)}getAnalyticsSurveysAggregatesJobResults(e,i){if(i=i||{},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:i.cursor},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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:i.calibratorId,conversationId:i.conversationId},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getQualityCalibrations(e,i){if(i=i||{},e==null)throw'Missing the required parameter "calibratorId" when calling getQualityCalibrations';return this.apiClient.callApi("/api/v2/quality/calibrations","GET",{},{pageSize:i.pageSize,pageNumber:i.pageNumber,sortBy:i.sortBy,expand:this.apiClient.buildCollectionParam(i.expand,"multi"),nextPage:i.nextPage,previousPage:i.previousPage,conversationId:i.conversationId,startTime:i.startTime,endTime:i.endTime,calibratorId:e},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getQualityConversationEvaluation(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getQualityConversationEvaluation';if(i==null||i==="")throw'Missing the required parameter "evaluationId" when calling getQualityConversationEvaluation';return this.apiClient.callApi("/api/v2/quality/conversations/{conversationId}/evaluations/{evaluationId}","GET",{conversationId:e,evaluationId:i},{expand:n.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getQualityConversationSurveys(e,i){if(i=i||{},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"],i.customHeaders)}getQualityConversationsAuditsQueryTransactionId(e,i){if(i=i||{},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"],i.customHeaders)}getQualityConversationsAuditsQueryTransactionIdResults(e,i){if(i=i||{},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:i.cursor,pageSize:i.pageSize,expand:this.apiClient.buildCollectionParam(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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"],i.customHeaders)}getQualityFormVersions(e,i){if(i=i||{},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:i.pageSize,pageNumber:i.pageNumber,sortOrder:i.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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"],i.customHeaders)}getQualityFormsEvaluationVersions(e,i){if(i=i||{},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:i.pageSize,pageNumber:i.pageNumber,sortOrder:i.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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:i.includeLatestVersionFormName},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getQualityFormsEvaluationsBulkContexts(e,i){if(i=i||{},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"],i.customHeaders)}getQualityFormsSurvey(e,i){if(i=i||{},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"],i.customHeaders)}getQualityFormsSurveyVersions(e,i){if(i=i||{},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:i.pageSize,pageNumber:i.pageNumber},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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"],i.customHeaders)}getQualityFormsSurveysBulkContexts(e,i){if(i=i||{},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:i.published},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getQualityProgramAgentscoringrule(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "programId" when calling getQualityProgramAgentscoringrule';if(i==null||i==="")throw'Missing the required parameter "ruleId" when calling getQualityProgramAgentscoringrule';return this.apiClient.callApi("/api/v2/quality/programs/{programId}/agentscoringrules/{ruleId}","GET",{programId:e,ruleId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getQualityProgramAgentscoringrules(e,i){if(i=i||{},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"],i.customHeaders)}getQualityPublishedform(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getQualityPublishedformsEvaluations(e){return e=e||{},this.apiClient.callApi("/api/v2/quality/publishedforms/evaluations","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,name:e.name,onlyLatestPerContext:e.onlyLatestPerContext},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getQualityPublishedformsSurvey(e,i){if(i=i||{},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"],i.customHeaders)}getQualityPublishedformsSurveys(e){return e=e||{},this.apiClient.callApi("/api/v2/quality/publishedforms/surveys","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,name:e.name,onlyLatestEnabledPerContext:e.onlyLatestEnabledPerContext},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getQualitySurvey(e,i){if(i=i||{},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"],i.customHeaders)}getQualitySurveysScorable(e,i){if(i=i||{},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"],i.customHeaders)}patchQualityFormsSurvey(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "formId" when calling patchQualityFormsSurvey';if(i==null)throw'Missing the required parameter "body" when calling patchQualityFormsSurvey';return this.apiClient.callApi("/api/v2/quality/forms/surveys/{formId}","PATCH",{formId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postAnalyticsEvaluationsAggregatesJobs(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsEvaluationsAggregatesQuery(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsSurveysAggregatesJobs(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsSurveysAggregatesQuery(e,i){if(i=i||{},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"],i.customHeaders)}postQualityCalibrations(e,i){if(i=i||{},e==null)throw'Missing the required parameter "body" when calling postQualityCalibrations';return this.apiClient.callApi("/api/v2/quality/calibrations","POST",{},{expand:i.expand},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postQualityConversationEvaluations(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postQualityConversationEvaluations';if(i==null)throw'Missing the required parameter "body" when calling postQualityConversationEvaluations';return this.apiClient.callApi("/api/v2/quality/conversations/{conversationId}/evaluations","POST",{conversationId:e},{expand:n.expand},{"Idempotency-Key":n.idempotencyKey},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postQualityConversationsAuditsQuery(e,i){if(i=i||{},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"],i.customHeaders)}postQualityEvaluationsAggregatesQueryMe(e,i){if(i=i||{},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"],i.customHeaders)}postQualityEvaluationsScoring(e,i){if(i=i||{},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"],i.customHeaders)}postQualityEvaluationsSearch(e,i){if(i=i||{},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"],i.customHeaders)}postQualityForms(e,i){if(i=i||{},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"],i.customHeaders)}postQualityFormsEvaluations(e,i){if(i=i||{},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"],i.customHeaders)}postQualityFormsSurveys(e,i){if(i=i||{},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"],i.customHeaders)}postQualityProgramAgentscoringrules(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "programId" when calling postQualityProgramAgentscoringrules';if(i==null)throw'Missing the required parameter "body" when calling postQualityProgramAgentscoringrules';return this.apiClient.callApi("/api/v2/quality/programs/{programId}/agentscoringrules","POST",{programId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postQualityPublishedforms(e,i){if(i=i||{},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"],i.customHeaders)}postQualityPublishedformsEvaluations(e,i){if(i=i||{},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"],i.customHeaders)}postQualityPublishedformsSurveys(e,i){if(i=i||{},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"],i.customHeaders)}postQualitySurveys(e,i){if(i=i||{},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"],i.customHeaders)}postQualitySurveysScoring(e,i){if(i=i||{},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"],i.customHeaders)}putQualityCalibration(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "calibrationId" when calling putQualityCalibration';if(i==null)throw'Missing the required parameter "body" when calling putQualityCalibration';return this.apiClient.callApi("/api/v2/quality/calibrations/{calibrationId}","PUT",{calibrationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putQualityConversationEvaluation(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling putQualityConversationEvaluation';if(i==null||i==="")throw'Missing the required parameter "evaluationId" when calling putQualityConversationEvaluation';if(n==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:i},{expand:a.expand},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}putQualityForm(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "formId" when calling putQualityForm';if(i==null)throw'Missing the required parameter "body" when calling putQualityForm';return this.apiClient.callApi("/api/v2/quality/forms/{formId}","PUT",{formId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putQualityFormsEvaluation(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "formId" when calling putQualityFormsEvaluation';if(i==null)throw'Missing the required parameter "body" when calling putQualityFormsEvaluation';return this.apiClient.callApi("/api/v2/quality/forms/evaluations/{formId}","PUT",{formId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putQualityFormsEvaluationAiscoringSettings(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "formId" when calling putQualityFormsEvaluationAiscoringSettings';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putQualityFormsSurvey(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "formId" when calling putQualityFormsSurvey';if(i==null)throw'Missing the required parameter "body" when calling putQualityFormsSurvey';return this.apiClient.callApi("/api/v2/quality/forms/surveys/{formId}","PUT",{formId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putQualityProgramAgentscoringrule(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "programId" when calling putQualityProgramAgentscoringrule';if(i==null||i==="")throw'Missing the required parameter "ruleId" when calling putQualityProgramAgentscoringrule';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}putQualitySurveysScorable(e,i,n){if(n=n||{},e==null)throw'Missing the required parameter "customerSurveyUrl" when calling putQualitySurveysScorable';if(i==null)throw'Missing the required parameter "body" when calling putQualitySurveysScorable';return this.apiClient.callApi("/api/v2/quality/surveys/scorable","PUT",{},{customerSurveyUrl:e},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}},Mb=class{constructor(e){this.apiClient=e||q.instance}deleteConversationRecordingAnnotation(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling deleteConversationRecordingAnnotation';if(i==null||i==="")throw'Missing the required parameter "recordingId" when calling deleteConversationRecordingAnnotation';if(n==null||n==="")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:i,annotationId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}deleteOrphanrecording(e,i){if(i=i||{},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"],i.customHeaders)}deleteRecordingCrossplatformMediaretentionpolicies(e,i){if(i=i||{},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"],i.customHeaders)}deleteRecordingCrossplatformMediaretentionpolicy(e,i){if(i=i||{},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"],i.customHeaders)}deleteRecordingJob(e,i){if(i=i||{},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"],i.customHeaders)}deleteRecordingMediaretentionpolicies(e,i){if(i=i||{},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"],i.customHeaders)}deleteRecordingMediaretentionpolicy(e,i){if(i=i||{},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"],i.customHeaders)}getConversationRecording(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationRecording';if(i==null||i==="")throw'Missing the required parameter "recordingId" when calling getConversationRecording';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/recordings/{recordingId}","GET",{conversationId:e,recordingId:i},{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)}getConversationRecordingAnnotation(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationRecordingAnnotation';if(i==null||i==="")throw'Missing the required parameter "recordingId" when calling getConversationRecordingAnnotation';if(n==null||n==="")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:i,annotationId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getConversationRecordingAnnotations(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationRecordingAnnotations';if(i==null||i==="")throw'Missing the required parameter "recordingId" when calling getConversationRecordingAnnotations';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/recordings/{recordingId}/annotations","GET",{conversationId:e,recordingId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getConversationRecordingmetadata(e,i){if(i=i||{},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"],i.customHeaders)}getConversationRecordingmetadataRecordingId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationRecordingmetadataRecordingId';if(i==null||i==="")throw'Missing the required parameter "recordingId" when calling getConversationRecordingmetadataRecordingId';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/recordingmetadata/{recordingId}","GET",{conversationId:e,recordingId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getConversationRecordings(e,i){if(i=i||{},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:i.maxWaitMs,formatId:i.formatId,mediaFormats:this.apiClient.buildCollectionParam(i.mediaFormats,"multi"),locale:i.locale,includePauseAnnotationsForScreenRecordings:i.includePauseAnnotationsForScreenRecordings},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getOrphanrecording(e,i){if(i=i||{},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"],i.customHeaders)}getOrphanrecordingMedia(e,i){if(i=i||{},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: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)}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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getRecordingJob(e,i){if(i=i||{},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"],i.customHeaders)}getRecordingJobFailedrecordings(e,i){if(i=i||{},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:i.pageSize,pageNumber:i.pageNumber,includeTotal:i.includeTotal,cursor:i.cursor},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getRecordingsRetentionQuery(e,i){if(i=i||{},e==null)throw'Missing the required parameter "retentionThresholdDays" when calling getRecordingsRetentionQuery';return this.apiClient.callApi("/api/v2/recordings/retention/query","GET",{},{retentionThresholdDays:e,cursor:i.cursor,pageSize:i.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "policyId" when calling patchRecordingCrossplatformMediaretentionpolicy';if(i==null)throw'Missing the required parameter "body" when calling patchRecordingCrossplatformMediaretentionpolicy';return this.apiClient.callApi("/api/v2/recording/crossplatform/mediaretentionpolicies/{policyId}","PATCH",{policyId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchRecordingMediaretentionpolicy(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "policyId" when calling patchRecordingMediaretentionpolicy';if(i==null)throw'Missing the required parameter "body" when calling patchRecordingMediaretentionpolicy';return this.apiClient.callApi("/api/v2/recording/mediaretentionpolicies/{policyId}","PATCH",{policyId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postConversationRecordingAnnotations(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationRecordingAnnotations';if(i==null||i==="")throw'Missing the required parameter "recordingId" when calling postConversationRecordingAnnotations';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postRecordingBatchrequests(e,i){if(i=i||{},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"],i.customHeaders)}postRecordingCrossplatformMediaretentionpolicies(e,i){if(i=i||{},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"],i.customHeaders)}postRecordingJobs(e,i){if(i=i||{},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"],i.customHeaders)}postRecordingKeyconfigurations(e,i){if(i=i||{},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"],i.customHeaders)}postRecordingKeyconfigurationsValidate(e,i){if(i=i||{},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"],i.customHeaders)}postRecordingLocalkeys(e,i){if(i=i||{},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"],i.customHeaders)}postRecordingMediaretentionpolicies(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}postRecordingsDeletionprotection(e,i){if(i=i||{},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"],i.customHeaders)}postRecordingsScreensessionsAcknowledge(e,i){if(i=i||{},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"],i.customHeaders)}postRecordingsScreensessionsMetadata(e,i){if(i=i||{},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"],i.customHeaders)}putConversationRecording(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling putConversationRecording';if(i==null||i==="")throw'Missing the required parameter "recordingId" when calling putConversationRecording';if(n==null)throw'Missing the required parameter "body" when calling putConversationRecording';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/recordings/{recordingId}","PUT",{conversationId:e,recordingId:i},{clearExport:a.clearExport},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}putConversationRecordingAnnotation(e,i,n,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling putConversationRecordingAnnotation';if(i==null||i==="")throw'Missing the required parameter "recordingId" when calling putConversationRecordingAnnotation';if(n==null||n==="")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:i,annotationId:n},{},{},{},a,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}putOrphanrecording(e,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "orphanId" when calling putOrphanrecording';return this.apiClient.callApi("/api/v2/orphanrecordings/{orphanId}","PUT",{orphanId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}putRecordingCrossplatformMediaretentionpolicy(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "policyId" when calling putRecordingCrossplatformMediaretentionpolicy';if(i==null)throw'Missing the required parameter "body" when calling putRecordingCrossplatformMediaretentionpolicy';return this.apiClient.callApi("/api/v2/recording/crossplatform/mediaretentionpolicies/{policyId}","PUT",{policyId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putRecordingJob(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "jobId" when calling putRecordingJob';if(i==null)throw'Missing the required parameter "body" when calling putRecordingJob';return this.apiClient.callApi("/api/v2/recording/jobs/{jobId}","PUT",{jobId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putRecordingKeyconfiguration(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "keyConfigurationId" when calling putRecordingKeyconfiguration';if(i==null)throw'Missing the required parameter "body" when calling putRecordingKeyconfiguration';return this.apiClient.callApi("/api/v2/recording/keyconfigurations/{keyConfigurationId}","PUT",{keyConfigurationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putRecordingMediaretentionpolicy(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "policyId" when calling putRecordingMediaretentionpolicy';if(i==null)throw'Missing the required parameter "body" when calling putRecordingMediaretentionpolicy';return this.apiClient.callApi("/api/v2/recording/mediaretentionpolicies/{policyId}","PUT",{policyId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putRecordingRecordingkeysRotationschedule(e,i){if(i=i||{},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"],i.customHeaders)}putRecordingSettings(e,i){if(i=i||{},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"],i.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)}},Eb=class{constructor(e){this.apiClient=e||q.instance}deleteResponsemanagementLibrary(e,i){if(i=i||{},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"],i.customHeaders)}deleteResponsemanagementResponse(e,i){if(i=i||{},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"],i.customHeaders)}deleteResponsemanagementResponseasset(e,i){if(i=i||{},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"],i.customHeaders)}getResponsemanagementLibraries(e){return e=e||{},this.apiClient.callApi("/api/v2/responsemanagement/libraries","GET",{},{pageNumber:e.pageNumber,pageSize:e.pageSize,messagingTemplateFilter:e.messagingTemplateFilter,libraryPrefix:e.libraryPrefix},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getResponsemanagementLibrary(e,i){if(i=i||{},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"],i.customHeaders)}getResponsemanagementResponse(e,i){if(i=i||{},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:i.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getResponsemanagementResponseasset(e,i){if(i=i||{},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"],i.customHeaders)}getResponsemanagementResponseassetsStatusStatusId(e,i){if(i=i||{},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"],i.customHeaders)}getResponsemanagementResponses(e,i){if(i=i||{},e==null)throw'Missing the required parameter "libraryId" when calling getResponsemanagementResponses';return this.apiClient.callApi("/api/v2/responsemanagement/responses","GET",{},{libraryId:e,pageNumber:i.pageNumber,pageSize:i.pageSize,expand:i.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postResponsemanagementLibraries(e,i){if(i=i||{},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"],i.customHeaders)}postResponsemanagementLibrariesBulk(e,i){if(i=i||{},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"],i.customHeaders)}postResponsemanagementLibrariesQuery(e,i){if(i=i||{},e==null)throw'Missing the required parameter "body" when calling postResponsemanagementLibrariesQuery';return this.apiClient.callApi("/api/v2/responsemanagement/libraries/query","POST",{},{pageNumber:i.pageNumber,pageSize:i.pageSize},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postResponsemanagementResponseassetsBulk(e,i){if(i=i||{},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"],i.customHeaders)}postResponsemanagementResponseassetsSearch(e,i){if(i=i||{},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(i.expand,"multi")},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postResponsemanagementResponseassetsUploads(e,i){if(i=i||{},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"],i.customHeaders)}postResponsemanagementResponses(e,i){if(i=i||{},e==null)throw'Missing the required parameter "body" when calling postResponsemanagementResponses';return this.apiClient.callApi("/api/v2/responsemanagement/responses","POST",{},{expand:i.expand},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postResponsemanagementResponsesQuery(e,i){if(i=i||{},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"],i.customHeaders)}putResponsemanagementLibrary(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "libraryId" when calling putResponsemanagementLibrary';if(i==null)throw'Missing the required parameter "body" when calling putResponsemanagementLibrary';return this.apiClient.callApi("/api/v2/responsemanagement/libraries/{libraryId}","PUT",{libraryId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putResponsemanagementResponse(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "responseId" when calling putResponsemanagementResponse';if(i==null)throw'Missing the required parameter "body" when calling putResponsemanagementResponse';return this.apiClient.callApi("/api/v2/responsemanagement/responses/{responseId}","PUT",{responseId:e},{expand:n.expand},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putResponsemanagementResponseasset(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "responseAssetId" when calling putResponsemanagementResponseasset';if(i==null)throw'Missing the required parameter "body" when calling putResponsemanagementResponseasset';return this.apiClient.callApi("/api/v2/responsemanagement/responseassets/{responseAssetId}","PUT",{responseAssetId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}},kb=class{constructor(e){this.apiClient=e||q.instance}deleteRoutingAssessment(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}deleteRoutingEmailDomainRoute(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "domainName" when calling deleteRoutingEmailDomainRoute';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteRoutingEmailOutboundDomain(e,i){if(i=i||{},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"],i.customHeaders)}deleteRoutingLanguage(e,i){if(i=i||{},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"],i.customHeaders)}deleteRoutingPredictor(e,i){if(i=i||{},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"],i.customHeaders)}deleteRoutingPredictorsKeyperformanceindicator(e,i){if(i=i||{},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"],i.customHeaders)}deleteRoutingQueue(e,i){if(i=i||{},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:i.forceDelete},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}deleteRoutingQueueMember(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "queueId" when calling deleteRoutingQueueMember';if(i==null||i==="")throw'Missing the required parameter "memberId" when calling deleteRoutingQueueMember';return this.apiClient.callApi("/api/v2/routing/queues/{queueId}/members/{memberId}","DELETE",{queueId:e,memberId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteRoutingQueueUser(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "queueId" when calling deleteRoutingQueueUser';if(i==null||i==="")throw'Missing the required parameter "memberId" when calling deleteRoutingQueueUser';return this.apiClient.callApi("/api/v2/routing/queues/{queueId}/users/{memberId}","DELETE",{queueId:e,memberId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteRoutingQueueWrapupcode(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "queueId" when calling deleteRoutingQueueWrapupcode';if(i==null||i==="")throw'Missing the required parameter "codeId" when calling deleteRoutingQueueWrapupcode';return this.apiClient.callApi("/api/v2/routing/queues/{queueId}/wrapupcodes/{codeId}","DELETE",{queueId:e,codeId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.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,i){if(i=i||{},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"],i.customHeaders)}deleteRoutingSkillgroup(e,i){if(i=i||{},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"],i.customHeaders)}deleteRoutingSmsAddress(e,i){if(i=i||{},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"],i.customHeaders)}deleteRoutingSmsPhonenumber(e,i){if(i=i||{},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"],i.customHeaders)}deleteRoutingUserDirectroutingbackupSettings(e,i){if(i=i||{},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"],i.customHeaders)}deleteRoutingUserUtilization(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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:i.forceDelete},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}deleteRoutingUtilizationTag(e,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "tagId" when calling deleteRoutingUtilizationTag';return this.apiClient.callApi("/api/v2/routing/utilization/tags/{tagId}","DELETE",{tagId:e},{forceDelete:i.forceDelete},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}deleteRoutingWrapupcode(e,i){if(i=i||{},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"],i.customHeaders)}deleteUserRoutinglanguage(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling deleteUserRoutinglanguage';if(i==null||i==="")throw'Missing the required parameter "languageId" when calling deleteUserRoutinglanguage';return this.apiClient.callApi("/api/v2/users/{userId}/routinglanguages/{languageId}","DELETE",{userId:e,languageId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteUserRoutingskill(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling deleteUserRoutingskill';if(i==null||i==="")throw'Missing the required parameter "skillId" when calling deleteUserRoutingskill';return this.apiClient.callApi("/api/v2/users/{userId}/routingskills/{skillId}","DELETE",{userId:e,skillId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getRoutingAssessment(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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:i.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getRoutingEmailDomainDkim(e,i){if(i=i||{},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"],i.customHeaders)}getRoutingEmailDomainMailfrom(e,i){if(i=i||{},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"],i.customHeaders)}getRoutingEmailDomainRoute(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "domainName" when calling getRoutingEmailDomainRoute';if(i==null||i==="")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:i},{expand:this.apiClient.buildCollectionParam(n.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getRoutingEmailDomainRouteIdentityresolution(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "domainName" when calling getRoutingEmailDomainRouteIdentityresolution';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getRoutingEmailDomainRoutes(e,i){if(i=i||{},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:i.pageSize,pageNumber:i.pageNumber,pattern:i.pattern,expand:this.apiClient.buildCollectionParam(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getRoutingEmailDomainVerification(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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:i.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getRoutingEmailOutboundDomainActivation(e,i){if(i=i||{},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"],i.customHeaders)}getRoutingEmailOutboundDomains(e){return e=e||{},this.apiClient.callApi("/api/v2/routing/email/outbound/domains","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,filter:e.filter,expand:e.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getRoutingEmailSetup(e){return e=e||{},this.apiClient.callApi("/api/v2/routing/email/setup","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getRoutingLanguage(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getRoutingPredictorModelFeatures(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "predictorId" when calling getRoutingPredictorModelFeatures';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getRoutingPredictorModels(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getRoutingQueueAssistant(e,i){if(i=i||{},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(i.expand,"multi"),languageVariation:i.languageVariation,fallbackToPrimaryAssistant:i.fallbackToPrimaryAssistant},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getRoutingQueueComparisonperiod(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "queueId" when calling getRoutingQueueComparisonperiod';if(i==null||i==="")throw'Missing the required parameter "comparisonPeriodId" when calling getRoutingQueueComparisonperiod';return this.apiClient.callApi("/api/v2/routing/queues/{queueId}/comparisonperiods/{comparisonPeriodId}","GET",{queueId:e,comparisonPeriodId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getRoutingQueueComparisonperiods(e,i){if(i=i||{},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"],i.customHeaders)}getRoutingQueueEstimatedwaittime(e,i){if(i=i||{},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:i.conversationId},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getRoutingQueueIdentityresolution(e,i){if(i=i||{},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"],i.customHeaders)}getRoutingQueueMediatypeEstimatedwaittime(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "queueId" when calling getRoutingQueueMediatypeEstimatedwaittime';if(i==null||i==="")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:i},{labelId:n.labelId},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getRoutingQueueMembers(e,i){if(i=i||{},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:i.pageNumber,pageSize:i.pageSize,sortOrder:i.sortOrder,expand:this.apiClient.buildCollectionParam(i.expand,"multi"),name:i.name,profileSkills:this.apiClient.buildCollectionParam(i.profileSkills,"multi"),skills:this.apiClient.buildCollectionParam(i.skills,"multi"),languages:this.apiClient.buildCollectionParam(i.languages,"multi"),routingStatus:this.apiClient.buildCollectionParam(i.routingStatus,"multi"),presence:this.apiClient.buildCollectionParam(i.presence,"multi"),memberBy:i.memberBy,joined:i.joined},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getRoutingQueueUsers(e,i){if(i=i||{},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:i.pageNumber,pageSize:i.pageSize,sortOrder:i.sortOrder,expand:this.apiClient.buildCollectionParam(i.expand,"multi"),joined:i.joined,name:i.name,profileSkills:this.apiClient.buildCollectionParam(i.profileSkills,"multi"),skills:this.apiClient.buildCollectionParam(i.skills,"multi"),languages:this.apiClient.buildCollectionParam(i.languages,"multi"),routingStatus:this.apiClient.buildCollectionParam(i.routingStatus,"multi"),presence:this.apiClient.buildCollectionParam(i.presence,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getRoutingQueueWrapupcodes(e,i){if(i=i||{},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:i.pageSize,pageNumber:i.pageNumber,name:i.name},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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"],i.customHeaders)}getRoutingSkillgroup(e,i){if(i=i||{},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"],i.customHeaders)}getRoutingSkillgroupMembers(e,i){if(i=i||{},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:i.pageSize,after:i.after,before:i.before,expand:i.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getRoutingSkillgroupMembersDivisions(e,i){if(i=i||{},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:i.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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"],i.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,i,n){if(n=n||{},e==null)throw'Missing the required parameter "countryCode" when calling getRoutingSmsAvailablephonenumbers';if(i==null)throw'Missing the required parameter "phoneNumberType" when calling getRoutingSmsAvailablephonenumbers';return this.apiClient.callApi("/api/v2/routing/sms/availablephonenumbers","GET",{},{countryCode:e,region:n.region,city:n.city,areaCode:n.areaCode,phoneNumberType:i,pattern:n.pattern,addressRequirement:n.addressRequirement},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getRoutingSmsIdentityresolutionPhonenumber(e,i){if(i=i||{},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"],i.customHeaders)}getRoutingSmsPhonenumber(e,i){if(i=i||{},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:i.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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"],i.customHeaders)}getRoutingUserUtilization(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getRoutingUtilizationLabelAgents(e,i){if(i=i||{},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"],i.customHeaders)}getRoutingUtilizationLabels(e){return e=e||{},this.apiClient.callApi("/api/v2/routing/utilization/labels","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,sortOrder:e.sortOrder,name:e.name},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getRoutingUtilizationTag(e,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "tagId" when calling getRoutingUtilizationTag';return this.apiClient.callApi("/api/v2/routing/utilization/tags/{tagId}","GET",{tagId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getRoutingUtilizationTagAgents(e,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "tagId" when calling getRoutingUtilizationTagAgents';return this.apiClient.callApi("/api/v2/routing/utilization/tags/{tagId}/agents","GET",{tagId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getRoutingUtilizationTags(e){return e=e||{},this.apiClient.callApi("/api/v2/routing/utilization/tags","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,sortOrder:e.sortOrder,name:e.name},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getRoutingWrapupcode(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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:i.pageSize,pageNumber:i.pageNumber,joined:i.joined,divisionId:this.apiClient.buildCollectionParam(i.divisionId,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getUserRoutinglanguages(e,i){if(i=i||{},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:i.pageSize,pageNumber:i.pageNumber,sortOrder:i.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getUserRoutingskills(e,i){if(i=i||{},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:i.pageSize,pageNumber:i.pageNumber,sortOrder:i.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getUserSkillgroups(e,i){if(i=i||{},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:i.pageSize,after:i.after,before:i.before},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}patchRoutingConversation(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchRoutingConversation';if(i==null)throw'Missing the required parameter "body" when calling patchRoutingConversation';return this.apiClient.callApi("/api/v2/routing/conversations/{conversationId}","PATCH",{conversationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchRoutingEmailDomain(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "domainId" when calling patchRoutingEmailDomain';if(i==null)throw'Missing the required parameter "body" when calling patchRoutingEmailDomain';return this.apiClient.callApi("/api/v2/routing/email/domains/{domainId}","PATCH",{domainId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchRoutingEmailDomainValidate(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "domainId" when calling patchRoutingEmailDomainValidate';if(i==null)throw'Missing the required parameter "body" when calling patchRoutingEmailDomainValidate';return this.apiClient.callApi("/api/v2/routing/email/domains/{domainId}/validate","PATCH",{domainId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchRoutingEmailOutboundDomain(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "domainId" when calling patchRoutingEmailOutboundDomain';if(i==null)throw'Missing the required parameter "body" when calling patchRoutingEmailOutboundDomain';return this.apiClient.callApi("/api/v2/routing/email/outbound/domains/{domainId}","PATCH",{domainId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchRoutingPredictor(e,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "predictorId" when calling patchRoutingPredictor';return this.apiClient.callApi("/api/v2/routing/predictors/{predictorId}","PATCH",{predictorId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}patchRoutingPredictorsKeyperformanceindicator(e,i){if(i=i||{},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},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}patchRoutingQueueMember(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "queueId" when calling patchRoutingQueueMember';if(i==null||i==="")throw'Missing the required parameter "memberId" when calling patchRoutingQueueMember';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchRoutingQueueMembers(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "queueId" when calling patchRoutingQueueMembers';if(i==null)throw'Missing the required parameter "body" when calling patchRoutingQueueMembers';return this.apiClient.callApi("/api/v2/routing/queues/{queueId}/members","PATCH",{queueId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchRoutingQueueUser(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "queueId" when calling patchRoutingQueueUser';if(i==null||i==="")throw'Missing the required parameter "memberId" when calling patchRoutingQueueUser';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchRoutingQueueUsers(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "queueId" when calling patchRoutingQueueUsers';if(i==null)throw'Missing the required parameter "body" when calling patchRoutingQueueUsers';return this.apiClient.callApi("/api/v2/routing/queues/{queueId}/users","PATCH",{queueId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchRoutingSettingsContactcenter(e,i){if(i=i||{},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"],i.customHeaders)}patchRoutingSettingsTranscription(e,i){if(i=i||{},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"],i.customHeaders)}patchRoutingSkill(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "skillId" when calling patchRoutingSkill';if(i==null)throw'Missing the required parameter "body" when calling patchRoutingSkill';return this.apiClient.callApi("/api/v2/routing/skills/{skillId}","PATCH",{skillId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchRoutingSkillgroup(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "skillGroupId" when calling patchRoutingSkillgroup';if(i==null)throw'Missing the required parameter "body" when calling patchRoutingSkillgroup';return this.apiClient.callApi("/api/v2/routing/skillgroups/{skillGroupId}","PATCH",{skillGroupId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchRoutingSmsPhonenumber(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "phoneNumberId" when calling patchRoutingSmsPhonenumber';if(i==null)throw'Missing the required parameter "body" when calling patchRoutingSmsPhonenumber';return this.apiClient.callApi("/api/v2/routing/sms/phonenumbers/{phoneNumberId}","PATCH",{phoneNumberId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchUserQueue(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "queueId" when calling patchUserQueue';if(i==null||i==="")throw'Missing the required parameter "userId" when calling patchUserQueue';if(n==null)throw'Missing the required parameter "body" when calling patchUserQueue';return this.apiClient.callApi("/api/v2/users/{userId}/queues/{queueId}","PATCH",{queueId:e,userId:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchUserQueues(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling patchUserQueues';if(i==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(n.divisionId,"multi")},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchUserRoutinglanguage(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "userId" when calling patchUserRoutinglanguage';if(i==null||i==="")throw'Missing the required parameter "languageId" when calling patchUserRoutinglanguage';if(n==null)throw'Missing the required parameter "body" when calling patchUserRoutinglanguage';return this.apiClient.callApi("/api/v2/users/{userId}/routinglanguages/{languageId}","PATCH",{userId:e,languageId:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchUserRoutinglanguagesBulk(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling patchUserRoutinglanguagesBulk';if(i==null)throw'Missing the required parameter "body" when calling patchUserRoutinglanguagesBulk';return this.apiClient.callApi("/api/v2/users/{userId}/routinglanguages/bulk","PATCH",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchUserRoutingskillsBulk(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling patchUserRoutingskillsBulk';if(i==null)throw'Missing the required parameter "body" when calling patchUserRoutingskillsBulk';return this.apiClient.callApi("/api/v2/users/{userId}/routingskills/bulk","PATCH",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postAnalyticsQueuesObservationsQuery(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsRoutingActivityQuery(e,i){if(i=i||{},e==null)throw'Missing the required parameter "body" when calling postAnalyticsRoutingActivityQuery';return this.apiClient.callApi("/api/v2/analytics/routing/activity/query","POST",{},{pageSize:i.pageSize,pageNumber:i.pageNumber},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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"],i.customHeaders)}postRoutingEmailDomainMailfrom(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "domainId" when calling postRoutingEmailDomainMailfrom';if(i==null)throw'Missing the required parameter "body" when calling postRoutingEmailDomainMailfrom';return this.apiClient.callApi("/api/v2/routing/email/domains/{domainId}/mailfrom","POST",{domainId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postRoutingEmailDomainRoutes(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "domainName" when calling postRoutingEmailDomainRoutes';if(i==null)throw'Missing the required parameter "body" when calling postRoutingEmailDomainRoutes';return this.apiClient.callApi("/api/v2/routing/email/domains/{domainName}/routes","POST",{domainName:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postRoutingEmailDomainTestconnection(e,i){if(i=i||{},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},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postRoutingEmailDomainVerification(e,i){if(i=i||{},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"],i.customHeaders)}postRoutingEmailDomains(e,i){if(i=i||{},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"],i.customHeaders)}postRoutingEmailOutboundDomainTestconnection(e,i){if(i=i||{},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},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postRoutingEmailOutboundDomains(e,i){if(i=i||{},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"],i.customHeaders)}postRoutingEmailOutboundDomainsSimulated(e,i){if(i=i||{},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"],i.customHeaders)}postRoutingLanguages(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}postRoutingQueueMembers(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "queueId" when calling postRoutingQueueMembers';if(i==null)throw'Missing the required parameter "body" when calling postRoutingQueueMembers';return this.apiClient.callApi("/api/v2/routing/queues/{queueId}/members","POST",{queueId:e},{delete:n._delete},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postRoutingQueueUsers(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "queueId" when calling postRoutingQueueUsers';if(i==null)throw'Missing the required parameter "body" when calling postRoutingQueueUsers';return this.apiClient.callApi("/api/v2/routing/queues/{queueId}/users","POST",{queueId:e},{delete:n._delete},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postRoutingQueueWrapupcodes(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "queueId" when calling postRoutingQueueWrapupcodes';if(i==null)throw'Missing the required parameter "body" when calling postRoutingQueueWrapupcodes';return this.apiClient.callApi("/api/v2/routing/queues/{queueId}/wrapupcodes","POST",{queueId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postRoutingQueues(e,i){if(i=i||{},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"],i.customHeaders)}postRoutingSkillgroupMembersDivisions(e,i){if(i=i||{},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},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postRoutingSkillgroups(e,i){if(i=i||{},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"],i.customHeaders)}postRoutingSkills(e,i){if(i=i||{},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"],i.customHeaders)}postRoutingSmsAddresses(e,i){if(i=i||{},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"],i.customHeaders)}postRoutingSmsPhonenumbers(e,i){if(i=i||{},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"],i.customHeaders)}postRoutingSmsPhonenumbersAlphanumeric(e,i){if(i=i||{},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"],i.customHeaders)}postRoutingSmsPhonenumbersImport(e,i){if(i=i||{},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"],i.customHeaders)}postRoutingUtilizationLabels(e,i){if(i=i||{},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"],i.customHeaders)}postRoutingUtilizationTags(e,i){if(i=i||{},e==null)throw'Missing the required parameter "body" when calling postRoutingUtilizationTags';return this.apiClient.callApi("/api/v2/routing/utilization/tags","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postRoutingWrapupcodes(e,i){if(i=i||{},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"],i.customHeaders)}postUserRoutinglanguages(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling postUserRoutinglanguages';if(i==null)throw'Missing the required parameter "body" when calling postUserRoutinglanguages';return this.apiClient.callApi("/api/v2/users/{userId}/routinglanguages","POST",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postUserRoutingskills(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling postUserRoutingskills';if(i==null)throw'Missing the required parameter "body" when calling postUserRoutingskills';return this.apiClient.callApi("/api/v2/users/{userId}/routingskills","POST",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putRoutingDirectroutingbackupSettingsMe(e,i){if(i=i||{},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"],i.customHeaders)}putRoutingEmailDomainRoute(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "domainName" when calling putRoutingEmailDomainRoute';if(i==null||i==="")throw'Missing the required parameter "routeId" when calling putRoutingEmailDomainRoute';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}putRoutingEmailDomainRouteIdentityresolution(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "domainName" when calling putRoutingEmailDomainRouteIdentityresolution';if(i==null||i==="")throw'Missing the required parameter "routeId" when calling putRoutingEmailDomainRouteIdentityresolution';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}putRoutingEmailOutboundDomainActivation(e,i){if(i=i||{},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"],i.customHeaders)}putRoutingMessageRecipient(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "recipientId" when calling putRoutingMessageRecipient';if(i==null)throw'Missing the required parameter "body" when calling putRoutingMessageRecipient';return this.apiClient.callApi("/api/v2/routing/message/recipients/{recipientId}","PUT",{recipientId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putRoutingQueue(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "queueId" when calling putRoutingQueue';if(i==null)throw'Missing the required parameter "body" when calling putRoutingQueue';return this.apiClient.callApi("/api/v2/routing/queues/{queueId}","PUT",{queueId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putRoutingQueueIdentityresolution(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "queueId" when calling putRoutingQueueIdentityresolution';if(i==null)throw'Missing the required parameter "body" when calling putRoutingQueueIdentityresolution';return this.apiClient.callApi("/api/v2/routing/queues/{queueId}/identityresolution","PUT",{queueId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putRoutingSettings(e,i){if(i=i||{},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"],i.customHeaders)}putRoutingSettingsTranscription(e,i){if(i=i||{},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"],i.customHeaders)}putRoutingSmsIdentityresolutionPhonenumber(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "addressId" when calling putRoutingSmsIdentityresolutionPhonenumber';if(i==null)throw'Missing the required parameter "body" when calling putRoutingSmsIdentityresolutionPhonenumber';return this.apiClient.callApi("/api/v2/routing/sms/identityresolution/phonenumbers/{addressId}","PUT",{addressId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putRoutingUserDirectroutingbackupSettings(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling putRoutingUserDirectroutingbackupSettings';if(i==null)throw'Missing the required parameter "body" when calling putRoutingUserDirectroutingbackupSettings';return this.apiClient.callApi("/api/v2/routing/users/{userId}/directroutingbackup/settings","PUT",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putRoutingUserUtilization(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling putRoutingUserUtilization';if(i==null)throw'Missing the required parameter "body" when calling putRoutingUserUtilization';return this.apiClient.callApi("/api/v2/routing/users/{userId}/utilization","PUT",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putRoutingUtilization(e,i){if(i=i||{},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"],i.customHeaders)}putRoutingUtilizationLabel(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "labelId" when calling putRoutingUtilizationLabel';if(i==null)throw'Missing the required parameter "body" when calling putRoutingUtilizationLabel';return this.apiClient.callApi("/api/v2/routing/utilization/labels/{labelId}","PUT",{labelId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putRoutingWrapupcode(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "codeId" when calling putRoutingWrapupcode';if(i==null)throw'Missing the required parameter "body" when calling putRoutingWrapupcode';return this.apiClient.callApi("/api/v2/routing/wrapupcodes/{codeId}","PUT",{codeId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putUserRoutingskill(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "userId" when calling putUserRoutingskill';if(i==null||i==="")throw'Missing the required parameter "skillId" when calling putUserRoutingskill';if(n==null)throw'Missing the required parameter "body" when calling putUserRoutingskill';return this.apiClient.callApi("/api/v2/users/{userId}/routingskills/{skillId}","PUT",{userId:e,skillId:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}putUserRoutingskillsBulk(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling putUserRoutingskillsBulk';if(i==null)throw'Missing the required parameter "body" when calling putUserRoutingskillsBulk';return this.apiClient.callApi("/api/v2/users/{userId}/routingskills/bulk","PUT",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}},qb=class{constructor(e){this.apiClient=e||q.instance}deleteScimUser(e,i){if(i=i||{},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":i.ifMatch},{},null,["PureCloud OAuth"],["application/json"],["application/scim+json","application/json"],i.customHeaders)}deleteScimV2User(e,i){if(i=i||{},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":i.ifMatch},{},null,["PureCloud OAuth"],["application/json"],["application/scim+json","application/json"],i.customHeaders)}getScimGroup(e,i){if(i=i||{},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(i.attributes,"multi"),excludedAttributes:this.apiClient.buildCollectionParam(i.excludedAttributes,"multi")},{"If-None-Match":i.ifNoneMatch},{},null,["PureCloud OAuth"],["application/json"],["application/scim+json","application/json"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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(i.attributes,"multi"),excludedAttributes:this.apiClient.buildCollectionParam(i.excludedAttributes,"multi")},{"If-None-Match":i.ifNoneMatch},{},null,["PureCloud OAuth"],["application/json"],["application/scim+json","application/json"],i.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,i){if(i=i||{},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(i.attributes,"multi"),excludedAttributes:this.apiClient.buildCollectionParam(i.excludedAttributes,"multi")},{"If-None-Match":i.ifNoneMatch},{},null,["PureCloud OAuth"],["application/json"],["application/scim+json","application/json"],i.customHeaders)}getScimV2Groups(e,i){if(i=i||{},e==null)throw'Missing the required parameter "filter" when calling getScimV2Groups';return this.apiClient.callApi("/api/v2/scim/v2/groups","GET",{},{startIndex:i.startIndex,count:i.count,attributes:this.apiClient.buildCollectionParam(i.attributes,"multi"),excludedAttributes:this.apiClient.buildCollectionParam(i.excludedAttributes,"multi"),filter:e},{},{},null,["PureCloud OAuth"],["application/json"],["application/scim+json","application/json"],i.customHeaders)}getScimV2Resourcetype(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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(i.attributes,"multi"),excludedAttributes:this.apiClient.buildCollectionParam(i.excludedAttributes,"multi")},{"If-None-Match":i.ifNoneMatch},{},null,["PureCloud OAuth"],["application/json"],["application/scim+json","application/json"],i.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,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "groupId" when calling patchScimGroup';if(i==null)throw'Missing the required parameter "body" when calling patchScimGroup';return this.apiClient.callApi("/api/v2/scim/groups/{groupId}","PATCH",{groupId:e},{},{"If-Match":n.ifMatch},{},i,["PureCloud OAuth"],["application/scim+json","application/json"],["application/scim+json","application/json"],n.customHeaders)}patchScimUser(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling patchScimUser';if(i==null)throw'Missing the required parameter "body" when calling patchScimUser';return this.apiClient.callApi("/api/v2/scim/users/{userId}","PATCH",{userId:e},{},{"If-Match":n.ifMatch},{},i,["PureCloud OAuth"],["application/scim+json","application/json"],["application/scim+json","application/json"],n.customHeaders)}patchScimV2Group(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "groupId" when calling patchScimV2Group';if(i==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":n.ifMatch},{},i,["PureCloud OAuth"],["application/scim+json","application/json"],["application/scim+json","application/json"],n.customHeaders)}patchScimV2User(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling patchScimV2User';if(i==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":n.ifMatch},{},i,["PureCloud OAuth"],["application/scim+json","application/json"],["application/scim+json","application/json"],n.customHeaders)}postScimUsers(e,i){if(i=i||{},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"],i.customHeaders)}postScimV2Users(e,i){if(i=i||{},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"],i.customHeaders)}putScimGroup(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "groupId" when calling putScimGroup';if(i==null)throw'Missing the required parameter "body" when calling putScimGroup';return this.apiClient.callApi("/api/v2/scim/groups/{groupId}","PUT",{groupId:e},{},{"If-Match":n.ifMatch},{},i,["PureCloud OAuth"],["application/scim+json","application/json"],["application/scim+json","application/json"],n.customHeaders)}putScimUser(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling putScimUser';if(i==null)throw'Missing the required parameter "body" when calling putScimUser';return this.apiClient.callApi("/api/v2/scim/users/{userId}","PUT",{userId:e},{},{"If-Match":n.ifMatch},{},i,["PureCloud OAuth"],["application/scim+json","application/json"],["application/scim+json","application/json"],n.customHeaders)}putScimV2Group(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "groupId" when calling putScimV2Group';if(i==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":n.ifMatch},{},i,["PureCloud OAuth"],["application/scim+json","application/json"],["application/scim+json","application/json"],n.customHeaders)}putScimV2User(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling putScimV2User';if(i==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":n.ifMatch},{},i,["PureCloud OAuth"],["application/scim+json","application/json"],["application/scim+json","application/json"],n.customHeaders)}},_b=class{constructor(e){this.apiClient=e||q.instance}getScript(e,i){if(i=i||{},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"],i.customHeaders)}getScriptPage(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "scriptId" when calling getScriptPage';if(i==null||i==="")throw'Missing the required parameter "pageId" when calling getScriptPage';return this.apiClient.callApi("/api/v2/scripts/{scriptId}/pages/{pageId}","GET",{scriptId:e,pageId:i},{scriptDataVersion:n.scriptDataVersion},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getScriptPages(e,i){if(i=i||{},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:i.scriptDataVersion},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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:i.input,output:i.output,type:i.type,scriptDataVersion:i.scriptDataVersion},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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:i.scriptDataVersion},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getScriptsPublishedScriptIdPage(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "scriptId" when calling getScriptsPublishedScriptIdPage';if(i==null||i==="")throw'Missing the required parameter "pageId" when calling getScriptsPublishedScriptIdPage';return this.apiClient.callApi("/api/v2/scripts/published/{scriptId}/pages/{pageId}","GET",{scriptId:e,pageId:i},{scriptDataVersion:n.scriptDataVersion},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getScriptsPublishedScriptIdPages(e,i){if(i=i||{},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:i.scriptDataVersion},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getScriptsPublishedScriptIdVariables(e,i){if(i=i||{},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:i.input,output:i.output,type:i.type,scriptDataVersion:i.scriptDataVersion},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getScriptsUploadStatus(e,i){if(i=i||{},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:i.longPoll},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postScriptExport(e,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "scriptId" when calling postScriptExport';return this.apiClient.callApi("/api/v2/scripts/{scriptId}/export","POST",{scriptId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.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)}},Hb=class{constructor(e){this.apiClient=e||q.instance}getDocumentationGknSearch(e,i){if(i=i||{},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"],i.customHeaders)}getDocumentationSearch(e,i){if(i=i||{},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"],i.customHeaders)}getGroupsSearch(e,i){if(i=i||{},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(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getLocationsSearch(e,i){if(i=i||{},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(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getSearch(e,i){if(i=i||{},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(i.expand,"multi"),profile:i.profile},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getSearchSuggest(e,i){if(i=i||{},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(i.expand,"multi"),profile:i.profile},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getTelephonyProvidersEdgesSitesSearch(e,i){if(i=i||{},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(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getUsersSearch(e,i){if(i=i||{},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(i.expand,"multi"),integrationPresenceSource:i.integrationPresenceSource},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getVoicemailSearch(e,i){if(i=i||{},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(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postConversationsCustomattributesSearch(e,i){if(i=i||{},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"],i.customHeaders)}postConversationsParticipantsAttributesSearch(e,i){if(i=i||{},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"],i.customHeaders)}postDocumentationAllSearch(e,i){if(i=i||{},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"],i.customHeaders)}postDocumentationGknSearch(e,i){if(i=i||{},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"],i.customHeaders)}postDocumentationSearch(e,i){if(i=i||{},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"],i.customHeaders)}postGroupsSearch(e,i){if(i=i||{},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"],i.customHeaders)}postLocationsSearch(e,i){if(i=i||{},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"],i.customHeaders)}postSearch(e,i){if(i=i||{},e==null)throw'Missing the required parameter "body" when calling postSearch';return this.apiClient.callApi("/api/v2/search","POST",{},{profile:i.profile},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postSearchSuggest(e,i){if(i=i||{},e==null)throw'Missing the required parameter "body" when calling postSearchSuggest';return this.apiClient.callApi("/api/v2/search/suggest","POST",{},{profile:i.profile},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postSpeechandtextanalyticsTranscriptsSearch(e,i){if(i=i||{},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"],i.customHeaders)}postTeamsSearch(e,i){if(i=i||{},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"],i.customHeaders)}postTelephonyProvidersEdgesSitesSearch(e,i){if(i=i||{},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"],i.customHeaders)}postUsersSearch(e,i){if(i=i||{},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"],i.customHeaders)}postUsersSearchConversationTarget(e,i){if(i=i||{},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"],i.customHeaders)}postUsersSearchQueuemembersManage(e,i){if(i=i||{},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"],i.customHeaders)}postUsersSearchTeamsAssign(e,i){if(i=i||{},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"],i.customHeaders)}postVoicemailSearch(e,i){if(i=i||{},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"],i.customHeaders)}},Rb=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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}patchUsersAgentuiAgentsAutoanswerAgentIdSettings(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "agentId" when calling patchUsersAgentuiAgentsAutoanswerAgentIdSettings';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.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,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "agentId" when calling putUsersAgentuiAgentsAutoanswerAgentIdSettings';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}},Ib=class{constructor(e){this.apiClient=e||q.instance}deleteSocialmediaEscalationrule(e,i){if(i=i||{},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"],i.customHeaders)}deleteSocialmediaMessage(e,i){if(i=i||{},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"],i.customHeaders)}deleteSocialmediaTopic(e,i){if(i=i||{},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:i.hardDelete},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}deleteSocialmediaTopicDataingestionrulesFacebookFacebookIngestionRuleId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "topicId" when calling deleteSocialmediaTopicDataingestionrulesFacebookFacebookIngestionRuleId';if(i==null||i==="")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:i},{hardDelete:n.hardDelete},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteSocialmediaTopicDataingestionrulesGooglebusinessprofileGoogleBusinessProfileIngestionRuleId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "topicId" when calling deleteSocialmediaTopicDataingestionrulesGooglebusinessprofileGoogleBusinessProfileIngestionRuleId';if(i==null||i==="")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:i},{hardDelete:n.hardDelete},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteSocialmediaTopicDataingestionrulesInstagramInstagramIngestionRuleId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "topicId" when calling deleteSocialmediaTopicDataingestionrulesInstagramInstagramIngestionRuleId';if(i==null||i==="")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:i},{hardDelete:n.hardDelete},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteSocialmediaTopicDataingestionrulesOpenOpenId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "topicId" when calling deleteSocialmediaTopicDataingestionrulesOpenOpenId';if(i==null||i==="")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:i},{hardDelete:n.hardDelete},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteSocialmediaTopicDataingestionrulesTwitterTwitterIngestionRuleId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "topicId" when calling deleteSocialmediaTopicDataingestionrulesTwitterTwitterIngestionRuleId';if(i==null||i==="")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:i},{hardDelete:n.hardDelete},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getSocialmediaAnalyticsAggregatesJob(e,i){if(i=i||{},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"],i.customHeaders)}getSocialmediaAnalyticsAggregatesJobResults(e,i){if(i=i||{},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:i.cursor},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getSocialmediaAnalyticsMessagesJob(e,i){if(i=i||{},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"],i.customHeaders)}getSocialmediaAnalyticsMessagesJobResults(e,i){if(i=i||{},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:i.cursor},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getSocialmediaEscalationrule(e,i){if(i=i||{},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:i.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getSocialmediaEscalationrules(e,i){if(i=i||{},e==null)throw'Missing the required parameter "divisionId" when calling getSocialmediaEscalationrules';return this.apiClient.callApi("/api/v2/socialmedia/escalationrules","GET",{},{pageNumber:i.pageNumber,pageSize:i.pageSize,divisionId:e},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getSocialmediaTopic(e,i){if(i=i||{},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:i.includeDeleted},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getSocialmediaTopicDataingestionrules(e,i){if(i=i||{},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:i.pageNumber,pageSize:i.pageSize,includeDeleted:i.includeDeleted},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getSocialmediaTopicDataingestionrulesFacebookFacebookIngestionRuleId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "topicId" when calling getSocialmediaTopicDataingestionrulesFacebookFacebookIngestionRuleId';if(i==null||i==="")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:i},{includeDeleted:n.includeDeleted},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getSocialmediaTopicDataingestionrulesFacebookFacebookIngestionRuleIdVersion(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "topicId" when calling getSocialmediaTopicDataingestionrulesFacebookFacebookIngestionRuleIdVersion';if(i==null||i==="")throw'Missing the required parameter "facebookIngestionRuleId" when calling getSocialmediaTopicDataingestionrulesFacebookFacebookIngestionRuleIdVersion';if(n==null||n==="")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:i,dataIngestionRuleVersion:n},{includeDeleted:a.includeDeleted},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getSocialmediaTopicDataingestionrulesFacebookFacebookIngestionRuleIdVersions(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "topicId" when calling getSocialmediaTopicDataingestionrulesFacebookFacebookIngestionRuleIdVersions';if(i==null||i==="")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:i},{pageNumber:n.pageNumber,pageSize:n.pageSize,includeDeleted:n.includeDeleted},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getSocialmediaTopicDataingestionrulesGooglebusinessprofileGoogleBusinessProfileIngestionRuleId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "topicId" when calling getSocialmediaTopicDataingestionrulesGooglebusinessprofileGoogleBusinessProfileIngestionRuleId';if(i==null||i==="")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:i},{includeDeleted:n.includeDeleted},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getSocialmediaTopicDataingestionrulesGooglebusinessprofileGoogleBusinessProfileIngestionRuleIdVersion(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "topicId" when calling getSocialmediaTopicDataingestionrulesGooglebusinessprofileGoogleBusinessProfileIngestionRuleIdVersion';if(i==null||i==="")throw'Missing the required parameter "googleBusinessProfileIngestionRuleId" when calling getSocialmediaTopicDataingestionrulesGooglebusinessprofileGoogleBusinessProfileIngestionRuleIdVersion';if(n==null||n==="")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:i,dataIngestionRuleVersion:n},{includeDeleted:a.includeDeleted},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getSocialmediaTopicDataingestionrulesGooglebusinessprofileGoogleBusinessProfileIngestionRuleIdVersions(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "topicId" when calling getSocialmediaTopicDataingestionrulesGooglebusinessprofileGoogleBusinessProfileIngestionRuleIdVersions';if(i==null||i==="")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:i},{pageNumber:n.pageNumber,pageSize:n.pageSize,includeDeleted:n.includeDeleted},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getSocialmediaTopicDataingestionrulesInstagramInstagramIngestionRuleId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "topicId" when calling getSocialmediaTopicDataingestionrulesInstagramInstagramIngestionRuleId';if(i==null||i==="")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:i},{includeDeleted:n.includeDeleted},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getSocialmediaTopicDataingestionrulesInstagramInstagramIngestionRuleIdVersion(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "topicId" when calling getSocialmediaTopicDataingestionrulesInstagramInstagramIngestionRuleIdVersion';if(i==null||i==="")throw'Missing the required parameter "instagramIngestionRuleId" when calling getSocialmediaTopicDataingestionrulesInstagramInstagramIngestionRuleIdVersion';if(n==null||n==="")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:i,dataIngestionRuleVersion:n},{includeDeleted:a.includeDeleted},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getSocialmediaTopicDataingestionrulesInstagramInstagramIngestionRuleIdVersions(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "topicId" when calling getSocialmediaTopicDataingestionrulesInstagramInstagramIngestionRuleIdVersions';if(i==null||i==="")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:i},{pageNumber:n.pageNumber,pageSize:n.pageSize,includeDeleted:n.includeDeleted},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getSocialmediaTopicDataingestionrulesOpenOpenId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "topicId" when calling getSocialmediaTopicDataingestionrulesOpenOpenId';if(i==null||i==="")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:i},{includeDeleted:n.includeDeleted},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getSocialmediaTopicDataingestionrulesOpenOpenIdVersion(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "topicId" when calling getSocialmediaTopicDataingestionrulesOpenOpenIdVersion';if(i==null||i==="")throw'Missing the required parameter "openId" when calling getSocialmediaTopicDataingestionrulesOpenOpenIdVersion';if(n==null||n==="")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:i,dataIngestionRuleVersion:n},{includeDeleted:a.includeDeleted},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getSocialmediaTopicDataingestionrulesOpenOpenIdVersions(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "topicId" when calling getSocialmediaTopicDataingestionrulesOpenOpenIdVersions';if(i==null||i==="")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:i},{pageNumber:n.pageNumber,pageSize:n.pageSize,includeDeleted:n.includeDeleted},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getSocialmediaTopicDataingestionrulesTwitterTwitterIngestionRuleId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "topicId" when calling getSocialmediaTopicDataingestionrulesTwitterTwitterIngestionRuleId';if(i==null||i==="")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:i},{includeDeleted:n.includeDeleted},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getSocialmediaTopicDataingestionrulesTwitterTwitterIngestionRuleIdVersion(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "topicId" when calling getSocialmediaTopicDataingestionrulesTwitterTwitterIngestionRuleIdVersion';if(i==null||i==="")throw'Missing the required parameter "twitterIngestionRuleId" when calling getSocialmediaTopicDataingestionrulesTwitterTwitterIngestionRuleIdVersion';if(n==null||n==="")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:i,dataIngestionRuleVersion:n},{includeDeleted:a.includeDeleted},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getSocialmediaTopicDataingestionrulesTwitterTwitterIngestionRuleIdVersions(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "topicId" when calling getSocialmediaTopicDataingestionrulesTwitterTwitterIngestionRuleIdVersions';if(i==null||i==="")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:i},{pageNumber:n.pageNumber,pageSize:n.pageSize,includeDeleted:n.includeDeleted},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.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,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "topicId" when calling patchSocialmediaTopic';return this.apiClient.callApi("/api/v2/socialmedia/topics/{topicId}","PATCH",{topicId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}patchSocialmediaTopicDataingestionrulesFacebookFacebookIngestionRuleId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "topicId" when calling patchSocialmediaTopicDataingestionrulesFacebookFacebookIngestionRuleId';if(i==null||i==="")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:i},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchSocialmediaTopicDataingestionrulesGooglebusinessprofileGoogleBusinessProfileIngestionRuleId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "topicId" when calling patchSocialmediaTopicDataingestionrulesGooglebusinessprofileGoogleBusinessProfileIngestionRuleId';if(i==null||i==="")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:i},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchSocialmediaTopicDataingestionrulesInstagramInstagramIngestionRuleId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "topicId" when calling patchSocialmediaTopicDataingestionrulesInstagramInstagramIngestionRuleId';if(i==null||i==="")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:i},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchSocialmediaTopicDataingestionrulesOpenOpenId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "topicId" when calling patchSocialmediaTopicDataingestionrulesOpenOpenId';if(i==null||i==="")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:i},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchSocialmediaTopicDataingestionrulesTwitterTwitterIngestionRuleId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "topicId" when calling patchSocialmediaTopicDataingestionrulesTwitterTwitterIngestionRuleId';if(i==null||i==="")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:i},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postSocialmediaAnalyticsAggregatesJobs(e,i){if(i=i||{},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"],i.customHeaders)}postSocialmediaAnalyticsMessagesJobs(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},e==null)throw'Missing the required parameter "divisionId" when calling postSocialmediaEscalationsMessages';return this.apiClient.callApi("/api/v2/socialmedia/escalations/messages","POST",{},{divisionId:e},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postSocialmediaTopicDataingestionrulesFacebook(e,i){if(i=i||{},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},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postSocialmediaTopicDataingestionrulesGooglebusinessprofile(e,i){if(i=i||{},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},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postSocialmediaTopicDataingestionrulesInstagram(e,i){if(i=i||{},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},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postSocialmediaTopicDataingestionrulesOpen(e,i){if(i=i||{},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},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postSocialmediaTopicDataingestionrulesOpenRuleIdMessagesBulk(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "topicId" when calling postSocialmediaTopicDataingestionrulesOpenRuleIdMessagesBulk';if(i==null||i==="")throw'Missing the required parameter "ruleId" when calling postSocialmediaTopicDataingestionrulesOpenRuleIdMessagesBulk';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postSocialmediaTopicDataingestionrulesOpenRuleIdReactionsBulk(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "topicId" when calling postSocialmediaTopicDataingestionrulesOpenRuleIdReactionsBulk';if(i==null||i==="")throw'Missing the required parameter "ruleId" when calling postSocialmediaTopicDataingestionrulesOpenRuleIdReactionsBulk';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postSocialmediaTopicDataingestionrulesTwitter(e,i){if(i=i||{},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},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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"],i.customHeaders)}putSocialmediaEscalationrule(e,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "escalationRuleId" when calling putSocialmediaEscalationrule';return this.apiClient.callApi("/api/v2/socialmedia/escalationrules/{escalationRuleId}","PUT",{escalationRuleId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}putSocialmediaTopicDataingestionrulesFacebookFacebookIngestionRuleId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "topicId" when calling putSocialmediaTopicDataingestionrulesFacebookFacebookIngestionRuleId';if(i==null||i==="")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:i},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putSocialmediaTopicDataingestionrulesGooglebusinessprofileGoogleBusinessProfileIngestionRuleId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "topicId" when calling putSocialmediaTopicDataingestionrulesGooglebusinessprofileGoogleBusinessProfileIngestionRuleId';if(i==null||i==="")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:i},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putSocialmediaTopicDataingestionrulesInstagramInstagramIngestionRuleId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "topicId" when calling putSocialmediaTopicDataingestionrulesInstagramInstagramIngestionRuleId';if(i==null||i==="")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:i},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putSocialmediaTopicDataingestionrulesOpenOpenId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "topicId" when calling putSocialmediaTopicDataingestionrulesOpenOpenId';if(i==null||i==="")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:i},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putSocialmediaTopicDataingestionrulesTwitterTwitterIngestionRuleId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "topicId" when calling putSocialmediaTopicDataingestionrulesTwitterTwitterIngestionRuleId';if(i==null||i==="")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:i},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}},zb=class{constructor(e){this.apiClient=e||q.instance}deleteSpeechandtextanalyticsCategory(e,i){if(i=i||{},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"],i.customHeaders)}deleteSpeechandtextanalyticsDictionaryfeedbackDictionaryFeedbackId(e,i){if(i=i||{},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"],i.customHeaders)}deleteSpeechandtextanalyticsProgram(e,i){if(i=i||{},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:i.forceDelete},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}deleteSpeechandtextanalyticsReprocessingJob(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}deleteSpeechandtextanalyticsTopic(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getSpeechandtextanalyticsConversation(e,i){if(i=i||{},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"],i.customHeaders)}getSpeechandtextanalyticsConversationCategories(e,i){if(i=i||{},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:i.pageSize,pageNumber:i.pageNumber},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getSpeechandtextanalyticsConversationCommunicationTranscripturl(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getSpeechandtextanalyticsConversationCommunicationTranscripturl';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getSpeechandtextanalyticsConversationCommunicationTranscripturls(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getSpeechandtextanalyticsConversationCommunicationTranscripturls';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getSpeechandtextanalyticsConversationSentiments(e,i){if(i=i||{},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"],i.customHeaders)}getSpeechandtextanalyticsConversationSummaries(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getSpeechandtextanalyticsProgram(e,i){if(i=i||{},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"],i.customHeaders)}getSpeechandtextanalyticsProgramMappings(e,i){if(i=i||{},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"],i.customHeaders)}getSpeechandtextanalyticsProgramSettingsInsights(e,i){if(i=i||{},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"],i.customHeaders)}getSpeechandtextanalyticsProgramTranscriptionengines(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getSpeechandtextanalyticsProgramsSettingsInsights(e){return e=e||{},this.apiClient.callApi("/api/v2/speechandtextanalytics/programs/settings/insights","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,programIds:this.apiClient.buildCollectionParam(e.programIds,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getSpeechandtextanalyticsProgramsTopiclinksJob(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getSpeechandtextanalyticsReprocessingJobInteractions(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getSpeechandtextanalyticsTopics(e){return e=e||{},this.apiClient.callApi("/api/v2/speechandtextanalytics/topics","GET",{},{nextPage:e.nextPage,pageSize:e.pageSize,pageNumber:e.pageNumber,state:e.state,name:e.name,ids:this.apiClient.buildCollectionParam(e.ids,"multi"),dialects:this.apiClient.buildCollectionParam(e.dialects,"multi"),sortBy:e.sortBy,sortOrder:e.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getSpeechandtextanalyticsTopicsDialects(e){return e=e||{},this.apiClient.callApi("/api/v2/speechandtextanalytics/topics/dialects","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getSpeechandtextanalyticsTopicsGeneral(e){return e=e||{},this.apiClient.callApi("/api/v2/speechandtextanalytics/topics/general","GET",{},{dialect:e.dialect},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getSpeechandtextanalyticsTopicsGeneralStatus(e){return e=e||{},this.apiClient.callApi("/api/v2/speechandtextanalytics/topics/general/status","GET",{},{dialect:e.dialect},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getSpeechandtextanalyticsTopicsPublishjob(e,i){if(i=i||{},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"],i.customHeaders)}getSpeechandtextanalyticsTopicsTestphraseJob(e,i){if(i=i||{},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"],i.customHeaders)}getSpeechandtextanalyticsTranslationsLanguageConversation(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "languageId" when calling getSpeechandtextanalyticsTranslationsLanguageConversation';if(i==null||i==="")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:i},{communicationId:n.communicationId,recordingId:n.recordingId},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getSpeechandtextanalyticsTranslationsLanguages(e){return e=e||{},this.apiClient.callApi("/api/v2/speechandtextanalytics/translations/languages","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}patchSpeechandtextanalyticsSettings(e,i){if(i=i||{},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"],i.customHeaders)}postSpeechandtextanalyticsCategories(e,i){if(i=i||{},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"],i.customHeaders)}postSpeechandtextanalyticsDictionaryfeedback(e,i){if(i=i||{},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"],i.customHeaders)}postSpeechandtextanalyticsPrograms(e,i){if(i=i||{},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"],i.customHeaders)}postSpeechandtextanalyticsProgramsGeneralJobs(e,i){if(i=i||{},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"],i.customHeaders)}postSpeechandtextanalyticsProgramsPublishjobs(e,i){if(i=i||{},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"],i.customHeaders)}postSpeechandtextanalyticsReprocessingJobs(e,i){if(i=i||{},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"],i.customHeaders)}postSpeechandtextanalyticsSentimentfeedback(e,i){if(i=i||{},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"],i.customHeaders)}postSpeechandtextanalyticsTopics(e,i){if(i=i||{},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"],i.customHeaders)}postSpeechandtextanalyticsTopicsPublishjobs(e,i){if(i=i||{},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"],i.customHeaders)}postSpeechandtextanalyticsTopicsTestphraseJobs(e,i){if(i=i||{},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"],i.customHeaders)}postSpeechandtextanalyticsTranscriptsSearch(e,i){if(i=i||{},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"],i.customHeaders)}putSpeechandtextanalyticsCategory(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "categoryId" when calling putSpeechandtextanalyticsCategory';if(i==null)throw'Missing the required parameter "body" when calling putSpeechandtextanalyticsCategory';return this.apiClient.callApi("/api/v2/speechandtextanalytics/categories/{categoryId}","PUT",{categoryId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putSpeechandtextanalyticsDictionaryfeedbackDictionaryFeedbackId(e,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "dictionaryFeedbackId" when calling putSpeechandtextanalyticsDictionaryfeedbackDictionaryFeedbackId';return this.apiClient.callApi("/api/v2/speechandtextanalytics/dictionaryfeedback/{dictionaryFeedbackId}","PUT",{dictionaryFeedbackId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}putSpeechandtextanalyticsProgram(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "programId" when calling putSpeechandtextanalyticsProgram';if(i==null)throw'Missing the required parameter "body" when calling putSpeechandtextanalyticsProgram';return this.apiClient.callApi("/api/v2/speechandtextanalytics/programs/{programId}","PUT",{programId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putSpeechandtextanalyticsProgramMappings(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "programId" when calling putSpeechandtextanalyticsProgramMappings';if(i==null)throw'Missing the required parameter "body" when calling putSpeechandtextanalyticsProgramMappings';return this.apiClient.callApi("/api/v2/speechandtextanalytics/programs/{programId}/mappings","PUT",{programId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putSpeechandtextanalyticsProgramSettingsInsights(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "programId" when calling putSpeechandtextanalyticsProgramSettingsInsights';if(i==null)throw'Missing the required parameter "body" when calling putSpeechandtextanalyticsProgramSettingsInsights';return this.apiClient.callApi("/api/v2/speechandtextanalytics/programs/{programId}/settings/insights","PUT",{programId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putSpeechandtextanalyticsProgramTranscriptionengines(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "programId" when calling putSpeechandtextanalyticsProgramTranscriptionengines';if(i==null)throw'Missing the required parameter "body" when calling putSpeechandtextanalyticsProgramTranscriptionengines';return this.apiClient.callApi("/api/v2/speechandtextanalytics/programs/{programId}/transcriptionengines","PUT",{programId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putSpeechandtextanalyticsSettings(e,i){if(i=i||{},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"],i.customHeaders)}putSpeechandtextanalyticsTopic(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "topicId" when calling putSpeechandtextanalyticsTopic';if(i==null)throw'Missing the required parameter "body" when calling putSpeechandtextanalyticsTopic';return this.apiClient.callApi("/api/v2/speechandtextanalytics/topics/{topicId}","PUT",{topicId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}},Db=class{constructor(e){this.apiClient=e||q.instance}deleteStationAssociateduser(e,i){if(i=i||{},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"],i.customHeaders)}getStation(e,i){if(i=i||{},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"],i.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)}},Gb=class{constructor(e){this.apiClient=e||q.instance}getSearch(e,i){if(i=i||{},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(i.expand,"multi"),profile:i.profile},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getSearchSuggest(e,i){if(i=i||{},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(i.expand,"multi"),profile:i.profile},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postSearch(e,i){if(i=i||{},e==null)throw'Missing the required parameter "body" when calling postSearch';return this.apiClient.callApi("/api/v2/search","POST",{},{profile:i.profile},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postSearchSuggest(e,i){if(i=i||{},e==null)throw'Missing the required parameter "body" when calling postSearchSuggest';return this.apiClient.callApi("/api/v2/search/suggest","POST",{},{profile:i.profile},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}},$b=class{constructor(e){this.apiClient=e||q.instance}deleteTaskmanagementWorkbin(e,i){if(i=i||{},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"],i.customHeaders)}deleteTaskmanagementWorkitem(e,i){if(i=i||{},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"],i.customHeaders)}deleteTaskmanagementWorkitemsBulkAddJob(e,i){if(i=i||{},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"],i.customHeaders)}deleteTaskmanagementWorkitemsBulkTerminateJob(e,i){if(i=i||{},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"],i.customHeaders)}deleteTaskmanagementWorkitemsSchema(e,i){if(i=i||{},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"],i.customHeaders)}deleteTaskmanagementWorktype(e,i){if(i=i||{},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"],i.customHeaders)}deleteTaskmanagementWorktypeFlowsDatebasedRule(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "worktypeId" when calling deleteTaskmanagementWorktypeFlowsDatebasedRule';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteTaskmanagementWorktypeFlowsOnattributechangeRule(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "worktypeId" when calling deleteTaskmanagementWorktypeFlowsOnattributechangeRule';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteTaskmanagementWorktypeFlowsOncreateRule(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "worktypeId" when calling deleteTaskmanagementWorktypeFlowsOncreateRule';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteTaskmanagementWorktypeStatus(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "worktypeId" when calling deleteTaskmanagementWorktypeStatus';if(i==null||i==="")throw'Missing the required parameter "statusId" when calling deleteTaskmanagementWorktypeStatus';return this.apiClient.callApi("/api/v2/taskmanagement/worktypes/{worktypeId}/statuses/{statusId}","DELETE",{worktypeId:e,statusId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getTaskmanagementWorkbin(e,i){if(i=i||{},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"],i.customHeaders)}getTaskmanagementWorkbinHistory(e,i){if(i=i||{},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:i.after,pageSize:i.pageSize,sortOrder:i.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getTaskmanagementWorkbinVersion(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "workbinId" when calling getTaskmanagementWorkbinVersion';if(i==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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getTaskmanagementWorkbinVersions(e,i){if(i=i||{},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:i.after,pageSize:i.pageSize,sortOrder:i.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getTaskmanagementWorkitem(e,i){if(i=i||{},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(i.expands,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getTaskmanagementWorkitemHistory(e,i){if(i=i||{},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:i.after,pageSize:i.pageSize,sortOrder:i.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getTaskmanagementWorkitemUserWrapups(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "workitemId" when calling getTaskmanagementWorkitemUserWrapups';if(i==null||i==="")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:i},{expands:n.expands,after:n.after,pageSize:n.pageSize,sortOrder:n.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getTaskmanagementWorkitemVersion(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "workitemId" when calling getTaskmanagementWorkitemVersion';if(i==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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getTaskmanagementWorkitemVersions(e,i){if(i=i||{},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:i.after,pageSize:i.pageSize,sortOrder:i.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getTaskmanagementWorkitemWrapups(e,i){if(i=i||{},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:i.expands,after:i.after,pageSize:i.pageSize,sortOrder:i.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getTaskmanagementWorkitemsBulkAddJob(e,i){if(i=i||{},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"],i.customHeaders)}getTaskmanagementWorkitemsBulkAddJobResults(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getTaskmanagementWorkitemsBulkTerminateJobResults(e,i){if(i=i||{},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"],i.customHeaders)}getTaskmanagementWorkitemsQueryJob(e,i){if(i=i||{},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"],i.customHeaders)}getTaskmanagementWorkitemsQueryJobResults(e,i){if(i=i||{},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"],i.customHeaders)}getTaskmanagementWorkitemsSchema(e,i){if(i=i||{},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"],i.customHeaders)}getTaskmanagementWorkitemsSchemaVersion(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "schemaId" when calling getTaskmanagementWorkitemsSchemaVersion';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getTaskmanagementWorkitemsSchemaVersions(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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(i.expands,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getTaskmanagementWorktypeFlowsDatebasedRule(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "worktypeId" when calling getTaskmanagementWorktypeFlowsDatebasedRule';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getTaskmanagementWorktypeFlowsDatebasedRules(e,i){if(i=i||{},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:i.after,pageSize:i.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getTaskmanagementWorktypeFlowsOnattributechangeRule(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "worktypeId" when calling getTaskmanagementWorktypeFlowsOnattributechangeRule';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getTaskmanagementWorktypeFlowsOnattributechangeRules(e,i){if(i=i||{},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:i.after,pageSize:i.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getTaskmanagementWorktypeFlowsOncreateRule(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "worktypeId" when calling getTaskmanagementWorktypeFlowsOncreateRule';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getTaskmanagementWorktypeFlowsOncreateRules(e,i){if(i=i||{},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:i.after,pageSize:i.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getTaskmanagementWorktypeHistory(e,i){if(i=i||{},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:i.after,pageSize:i.pageSize,sortOrder:i.sortOrder,fields:this.apiClient.buildCollectionParam(i.fields,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getTaskmanagementWorktypeStatus(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "worktypeId" when calling getTaskmanagementWorktypeStatus';if(i==null||i==="")throw'Missing the required parameter "statusId" when calling getTaskmanagementWorktypeStatus';return this.apiClient.callApi("/api/v2/taskmanagement/worktypes/{worktypeId}/statuses/{statusId}","GET",{worktypeId:e,statusId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getTaskmanagementWorktypeStatuses(e,i){if(i=i||{},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"],i.customHeaders)}getTaskmanagementWorktypeVersion(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "worktypeId" when calling getTaskmanagementWorktypeVersion';if(i==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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getTaskmanagementWorktypeVersions(e,i){if(i=i||{},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:i.after,pageSize:i.pageSize,sortOrder:i.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}patchTaskmanagementWorkbin(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "workbinId" when calling patchTaskmanagementWorkbin';if(i==null)throw'Missing the required parameter "body" when calling patchTaskmanagementWorkbin';return this.apiClient.callApi("/api/v2/taskmanagement/workbins/{workbinId}","PATCH",{workbinId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchTaskmanagementWorkitem(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "workitemId" when calling patchTaskmanagementWorkitem';if(i==null)throw'Missing the required parameter "body" when calling patchTaskmanagementWorkitem';return this.apiClient.callApi("/api/v2/taskmanagement/workitems/{workitemId}","PATCH",{workitemId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchTaskmanagementWorkitemAssignment(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "workitemId" when calling patchTaskmanagementWorkitemAssignment';if(i==null)throw'Missing the required parameter "body" when calling patchTaskmanagementWorkitemAssignment';return this.apiClient.callApi("/api/v2/taskmanagement/workitems/{workitemId}/assignment","PATCH",{workitemId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchTaskmanagementWorkitemUserWrapups(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "workitemId" when calling patchTaskmanagementWorkitemUserWrapups';if(i==null||i==="")throw'Missing the required parameter "userId" when calling patchTaskmanagementWorkitemUserWrapups';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchTaskmanagementWorkitemUsersMeWrapups(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "workitemId" when calling patchTaskmanagementWorkitemUsersMeWrapups';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchTaskmanagementWorkitemsBulkAddJob(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "bulkJobId" when calling patchTaskmanagementWorkitemsBulkAddJob';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchTaskmanagementWorkitemsBulkTerminateJob(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "bulkJobId" when calling patchTaskmanagementWorkitemsBulkTerminateJob';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchTaskmanagementWorktype(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "worktypeId" when calling patchTaskmanagementWorktype';if(i==null)throw'Missing the required parameter "body" when calling patchTaskmanagementWorktype';return this.apiClient.callApi("/api/v2/taskmanagement/worktypes/{worktypeId}","PATCH",{worktypeId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchTaskmanagementWorktypeFlowsDatebasedRule(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "worktypeId" when calling patchTaskmanagementWorktypeFlowsDatebasedRule';if(i==null||i==="")throw'Missing the required parameter "ruleId" when calling patchTaskmanagementWorktypeFlowsDatebasedRule';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchTaskmanagementWorktypeFlowsOnattributechangeRule(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "worktypeId" when calling patchTaskmanagementWorktypeFlowsOnattributechangeRule';if(i==null||i==="")throw'Missing the required parameter "ruleId" when calling patchTaskmanagementWorktypeFlowsOnattributechangeRule';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchTaskmanagementWorktypeFlowsOncreateRule(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "worktypeId" when calling patchTaskmanagementWorktypeFlowsOncreateRule';if(i==null||i==="")throw'Missing the required parameter "ruleId" when calling patchTaskmanagementWorktypeFlowsOncreateRule';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchTaskmanagementWorktypeStatus(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "worktypeId" when calling patchTaskmanagementWorktypeStatus';if(i==null||i==="")throw'Missing the required parameter "statusId" when calling patchTaskmanagementWorktypeStatus';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postTaskmanagementWorkbins(e,i){if(i=i||{},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"],i.customHeaders)}postTaskmanagementWorkbinsQuery(e,i){if(i=i||{},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"],i.customHeaders)}postTaskmanagementWorkitemAcdCancel(e,i){if(i=i||{},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"],i.customHeaders)}postTaskmanagementWorkitemDisconnect(e,i){if(i=i||{},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"],i.customHeaders)}postTaskmanagementWorkitemTerminate(e,i){if(i=i||{},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},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postTaskmanagementWorkitems(e,i){if(i=i||{},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"],i.customHeaders)}postTaskmanagementWorkitemsBulkAddJobs(e,i){if(i=i||{},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"],i.customHeaders)}postTaskmanagementWorkitemsBulkTerminateJobs(e,i){if(i=i||{},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"],i.customHeaders)}postTaskmanagementWorkitemsQuery(e,i){if(i=i||{},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"],i.customHeaders)}postTaskmanagementWorkitemsQueryJobs(e,i){if(i=i||{},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"],i.customHeaders)}postTaskmanagementWorkitemsSchemas(e,i){if(i=i||{},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"],i.customHeaders)}postTaskmanagementWorktypeFlowsDatebasedRules(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "worktypeId" when calling postTaskmanagementWorktypeFlowsDatebasedRules';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postTaskmanagementWorktypeFlowsOnattributechangeRules(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "worktypeId" when calling postTaskmanagementWorktypeFlowsOnattributechangeRules';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postTaskmanagementWorktypeFlowsOncreateRules(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "worktypeId" when calling postTaskmanagementWorktypeFlowsOncreateRules';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postTaskmanagementWorktypeStatuses(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "worktypeId" when calling postTaskmanagementWorktypeStatuses';if(i==null)throw'Missing the required parameter "body" when calling postTaskmanagementWorktypeStatuses';return this.apiClient.callApi("/api/v2/taskmanagement/worktypes/{worktypeId}/statuses","POST",{worktypeId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postTaskmanagementWorktypes(e,i){if(i=i||{},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"],i.customHeaders)}postTaskmanagementWorktypesQuery(e,i){if(i=i||{},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"],i.customHeaders)}putTaskmanagementWorkitemsSchema(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "schemaId" when calling putTaskmanagementWorkitemsSchema';if(i==null)throw'Missing the required parameter "body" when calling putTaskmanagementWorkitemsSchema';return this.apiClient.callApi("/api/v2/taskmanagement/workitems/schemas/{schemaId}","PUT",{schemaId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}},Nb=class{constructor(e){this.apiClient=e||q.instance}deleteTeam(e,i){if(i=i||{},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"],i.customHeaders)}deleteTeamMembers(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "teamId" when calling deleteTeamMembers';if(i==null)throw'Missing the required parameter "id" when calling deleteTeamMembers';return this.apiClient.callApi("/api/v2/teams/{teamId}/members","DELETE",{teamId:e},{id:i},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getTeam(e,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "teamId" when calling getTeam';return this.apiClient.callApi("/api/v2/teams/{teamId}","GET",{teamId:e},{expand:i.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getTeamMembers(e,i){if(i=i||{},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:i.pageSize,before:i.before,after:i.after,expand:i.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "teamId" when calling patchTeam';if(i==null)throw'Missing the required parameter "body" when calling patchTeam';return this.apiClient.callApi("/api/v2/teams/{teamId}","PATCH",{teamId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postAnalyticsTeamsActivityQuery(e,i){if(i=i||{},e==null)throw'Missing the required parameter "body" when calling postAnalyticsTeamsActivityQuery';return this.apiClient.callApi("/api/v2/analytics/teams/activity/query","POST",{},{pageSize:i.pageSize,pageNumber:i.pageNumber},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postTeamMembers(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "teamId" when calling postTeamMembers';if(i==null)throw'Missing the required parameter "body" when calling postTeamMembers';return this.apiClient.callApi("/api/v2/teams/{teamId}/members","POST",{teamId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postTeams(e,i){if(i=i||{},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"],i.customHeaders)}postTeamsSearch(e,i){if(i=i||{},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"],i.customHeaders)}},Ub=class{constructor(e){this.apiClient=e||q.instance}getTelephonyAgentGreetings(e,i){if(i=i||{},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"],i.customHeaders)}getTelephonyAgentsGreetingsMe(e){return e=e||{},this.apiClient.callApi("/api/v2/telephony/agents/greetings/me","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getTelephonyCallsMetrics(e){return e=e||{},this.apiClient.callApi("/api/v2/telephony/calls/metrics","GET",{},{metricType:e.metricType},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getTelephonyMediaregions(e){return e=e||{},this.apiClient.callApi("/api/v2/telephony/mediaregions","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getTelephonySettings(e){return e=e||{},this.apiClient.callApi("/api/v2/telephony/settings","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getTelephonySipmessagesConversation(e,i){if(i=i||{},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"],i.customHeaders)}getTelephonySipmessagesConversationHeaders(e,i){if(i=i||{},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(i.keys,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getTelephonySiptraces(e,i,n){if(n=n||{},e==null)throw'Missing the required parameter "dateStart" when calling getTelephonySiptraces';if(i==null)throw'Missing the required parameter "dateEnd" when calling getTelephonySiptraces';return this.apiClient.callApi("/api/v2/telephony/siptraces","GET",{},{callId:n.callId,toUser:n.toUser,fromUser:n.fromUser,conversationId:n.conversationId,dateStart:e,dateEnd:i},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getTelephonySiptracesDownloadDownloadId(e,i){if(i=i||{},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"],i.customHeaders)}postTelephonySiptracesDownload(e,i){if(i=i||{},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"],i.customHeaders)}putTelephonyAgentGreetings(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "agentId" when calling putTelephonyAgentGreetings';if(i==null)throw'Missing the required parameter "body" when calling putTelephonyAgentGreetings';return this.apiClient.callApi("/api/v2/telephony/agents/{agentId}/greetings","PUT",{agentId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putTelephonyAgentsGreetingsMe(e,i){if(i=i||{},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"],i.customHeaders)}putTelephonySettings(e,i){if(i=i||{},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"],i.customHeaders)}},Lb=class{constructor(e){this.apiClient=e||q.instance}deleteTelephonyProvidersEdge(e,i){if(i=i||{},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"],i.customHeaders)}deleteTelephonyProvidersEdgeLogicalinterface(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "edgeId" when calling deleteTelephonyProvidersEdgeLogicalinterface';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteTelephonyProvidersEdgeSoftwareupdate(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}deleteTelephonyProvidersEdgesDidpool(e,i){if(i=i||{},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"],i.customHeaders)}deleteTelephonyProvidersEdgesEdgegroup(e,i){if(i=i||{},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"],i.customHeaders)}deleteTelephonyProvidersEdgesExtensionpool(e,i){if(i=i||{},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"],i.customHeaders)}deleteTelephonyProvidersEdgesPhone(e,i){if(i=i||{},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"],i.customHeaders)}deleteTelephonyProvidersEdgesPhonebasesetting(e,i){if(i=i||{},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"],i.customHeaders)}deleteTelephonyProvidersEdgesSite(e,i){if(i=i||{},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"],i.customHeaders)}deleteTelephonyProvidersEdgesSiteOutboundroute(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "siteId" when calling deleteTelephonyProvidersEdgesSiteOutboundroute';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteTelephonyProvidersEdgesTrunkbasesetting(e,i){if(i=i||{},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"],i.customHeaders)}getTelephonyProvidersEdge(e,i){if(i=i||{},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(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getTelephonyProvidersEdgeDiagnosticNslookup(e,i){if(i=i||{},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"],i.customHeaders)}getTelephonyProvidersEdgeDiagnosticPing(e,i){if(i=i||{},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"],i.customHeaders)}getTelephonyProvidersEdgeDiagnosticRoute(e,i){if(i=i||{},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"],i.customHeaders)}getTelephonyProvidersEdgeDiagnosticTracepath(e,i){if(i=i||{},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"],i.customHeaders)}getTelephonyProvidersEdgeLogicalinterface(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "edgeId" when calling getTelephonyProvidersEdgeLogicalinterface';if(i==null||i==="")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:i},{expand:this.apiClient.buildCollectionParam(n.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getTelephonyProvidersEdgeLogicalinterfaces(e,i){if(i=i||{},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(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getTelephonyProvidersEdgeLogsJob(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "edgeId" when calling getTelephonyProvidersEdgeLogsJob';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getTelephonyProvidersEdgeMetrics(e,i){if(i=i||{},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"],i.customHeaders)}getTelephonyProvidersEdgePhysicalinterface(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "edgeId" when calling getTelephonyProvidersEdgePhysicalinterface';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getTelephonyProvidersEdgePhysicalinterfaces(e,i){if(i=i||{},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"],i.customHeaders)}getTelephonyProvidersEdgeSetuppackage(e,i){if(i=i||{},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"],i.customHeaders)}getTelephonyProvidersEdgeSoftwareupdate(e,i){if(i=i||{},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"],i.customHeaders)}getTelephonyProvidersEdgeSoftwareversions(e,i){if(i=i||{},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"],i.customHeaders)}getTelephonyProvidersEdgeTrunks(e,i){if(i=i||{},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:i.pageNumber,pageSize:i.pageSize,sortBy:i.sortBy,sortOrder:i.sortOrder,"trunkBase.id":i.trunkBaseId,trunkType:i.trunkType},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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"],i.customHeaders)}getTelephonyProvidersEdgesDid(e,i){if(i=i||{},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"],i.customHeaders)}getTelephonyProvidersEdgesDidpool(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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(i.id,"multi"),numberMatch:i.numberMatch,pageSize:i.pageSize,pageNumber:i.pageNumber,sortOrder:i.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getTelephonyProvidersEdgesEdgegroupEdgetrunkbase(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "edgegroupId" when calling getTelephonyProvidersEdgesEdgegroupEdgetrunkbase';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.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,i){if(i=i||{},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"],i.customHeaders)}getTelephonyProvidersEdgesExtensionpool(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getTelephonyProvidersEdgesLinebasesetting(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getTelephonyProvidersEdgesLogicalinterfaces(e,i){if(i=i||{},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(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getTelephonyProvidersEdgesMediastatisticsConversation(e,i){if(i=i||{},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"],i.customHeaders)}getTelephonyProvidersEdgesMediastatisticsConversationCommunication(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getTelephonyProvidersEdgesMediastatisticsConversationCommunication';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getTelephonyProvidersEdgesMetrics(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getTelephonyProvidersEdgesPhonebasesetting(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getTelephonyProvidersEdgesPhysicalinterfaces(e,i){if(i=i||{},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"],i.customHeaders)}getTelephonyProvidersEdgesSite(e,i){if(i=i||{},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"],i.customHeaders)}getTelephonyProvidersEdgesSiteNumberplan(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "siteId" when calling getTelephonyProvidersEdgesSiteNumberplan';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getTelephonyProvidersEdgesSiteNumberplans(e,i){if(i=i||{},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"],i.customHeaders)}getTelephonyProvidersEdgesSiteNumberplansClassifications(e,i){if(i=i||{},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:i.classification},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getTelephonyProvidersEdgesSiteOutboundroute(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "siteId" when calling getTelephonyProvidersEdgesSiteOutboundroute';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getTelephonyProvidersEdgesSiteOutboundroutes(e,i){if(i=i||{},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:i.pageSize,pageNumber:i.pageNumber,name:i.name,"externalTrunkBases.ids":i.externalTrunkBasesIds,sortBy:i.sortBy},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getTelephonyProvidersEdgesSiteSiteconnections(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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"],i.customHeaders)}getTelephonyProvidersEdgesTrunkMetrics(e,i){if(i=i||{},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"],i.customHeaders)}getTelephonyProvidersEdgesTrunkbasesetting(e,i){if(i=i||{},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:i.ignoreHidden},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getTelephonyProvidersEdgesTrunkbasesettings(e){return e=e||{},this.apiClient.callApi("/api/v2/telephony/providers/edges/trunkbasesettings","GET",{},{pageNumber:e.pageNumber,pageSize:e.pageSize,sortBy:e.sortBy,sortOrder:e.sortOrder,recordingEnabled:e.recordingEnabled,ignoreHidden:e.ignoreHidden,managed:e.managed,expand:this.apiClient.buildCollectionParam(e.expand,"multi"),name:e.name},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getTelephonyProvidersEdgesTrunkbasesettingsAvailablemetabases(e){return e=e||{},this.apiClient.callApi("/api/v2/telephony/providers/edges/trunkbasesettings/availablemetabases","GET",{},{type:e.type,pageSize:e.pageSize,pageNumber:e.pageNumber},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getTelephonyProvidersEdgesTrunkbasesettingsTemplate(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "siteId" when calling patchTelephonyProvidersEdgesSiteSiteconnections';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postTelephonyProvidersEdgeDiagnosticNslookup(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "edgeId" when calling postTelephonyProvidersEdgeDiagnosticNslookup';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postTelephonyProvidersEdgeDiagnosticPing(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "edgeId" when calling postTelephonyProvidersEdgeDiagnosticPing';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postTelephonyProvidersEdgeDiagnosticRoute(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "edgeId" when calling postTelephonyProvidersEdgeDiagnosticRoute';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postTelephonyProvidersEdgeDiagnosticTracepath(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "edgeId" when calling postTelephonyProvidersEdgeDiagnosticTracepath';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postTelephonyProvidersEdgeLogicalinterfaces(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "edgeId" when calling postTelephonyProvidersEdgeLogicalinterfaces';if(i==null)throw'Missing the required parameter "body" when calling postTelephonyProvidersEdgeLogicalinterfaces';return this.apiClient.callApi("/api/v2/telephony/providers/edges/{edgeId}/logicalinterfaces","POST",{edgeId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postTelephonyProvidersEdgeLogsJobUpload(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "edgeId" when calling postTelephonyProvidersEdgeLogsJobUpload';if(i==null||i==="")throw'Missing the required parameter "jobId" when calling postTelephonyProvidersEdgeLogsJobUpload';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postTelephonyProvidersEdgeLogsJobs(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "edgeId" when calling postTelephonyProvidersEdgeLogsJobs';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postTelephonyProvidersEdgeReboot(e,i){if(i=i||{},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},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postTelephonyProvidersEdgeSoftwareupdate(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "edgeId" when calling postTelephonyProvidersEdgeSoftwareupdate';if(i==null)throw'Missing the required parameter "body" when calling postTelephonyProvidersEdgeSoftwareupdate';return this.apiClient.callApi("/api/v2/telephony/providers/edges/{edgeId}/softwareupdate","POST",{edgeId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postTelephonyProvidersEdgeStatuscode(e,i){if(i=i||{},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},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postTelephonyProvidersEdgeUnpair(e,i){if(i=i||{},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"],i.customHeaders)}postTelephonyProvidersEdges(e,i){if(i=i||{},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"],i.customHeaders)}postTelephonyProvidersEdgesAddressvalidation(e,i){if(i=i||{},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"],i.customHeaders)}postTelephonyProvidersEdgesCertificateauthorities(e,i){if(i=i||{},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"],i.customHeaders)}postTelephonyProvidersEdgesDidpools(e,i){if(i=i||{},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"],i.customHeaders)}postTelephonyProvidersEdgesEdgegroups(e,i){if(i=i||{},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"],i.customHeaders)}postTelephonyProvidersEdgesExtensionpools(e,i){if(i=i||{},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"],i.customHeaders)}postTelephonyProvidersEdgesMediastatisticsConversationCommunicationMediaresource(e,i,n,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postTelephonyProvidersEdgesMediastatisticsConversationCommunicationMediaresource';if(i==null||i==="")throw'Missing the required parameter "communicationId" when calling postTelephonyProvidersEdgesMediastatisticsConversationCommunicationMediaresource';if(n==null||n==="")throw'Missing the required parameter "mediaResourceId" when calling postTelephonyProvidersEdgesMediastatisticsConversationCommunicationMediaresource';if(a==null)throw'Missing the required parameter "body" when calling postTelephonyProvidersEdgesMediastatisticsConversationCommunicationMediaresource';return this.apiClient.callApi("/api/v2/telephony/providers/edges/mediastatistics/conversations/{conversationId}/communications/{communicationId}/mediaresources/{mediaResourceId}","POST",{conversationId:e,communicationId:i,mediaResourceId:n},{},{},{},a,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}postTelephonyProvidersEdgesPhoneReboot(e,i){if(i=i||{},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"],i.customHeaders)}postTelephonyProvidersEdgesPhonebasesettings(e,i){if(i=i||{},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"],i.customHeaders)}postTelephonyProvidersEdgesPhones(e,i){if(i=i||{},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"],i.customHeaders)}postTelephonyProvidersEdgesPhonesReboot(e,i){if(i=i||{},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"],i.customHeaders)}postTelephonyProvidersEdgesSiteOutboundroutes(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "siteId" when calling postTelephonyProvidersEdgesSiteOutboundroutes';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postTelephonyProvidersEdgesSites(e,i){if(i=i||{},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"],i.customHeaders)}postTelephonyProvidersEdgesSitesSearch(e,i){if(i=i||{},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"],i.customHeaders)}postTelephonyProvidersEdgesTrunkbasesettings(e,i){if(i=i||{},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"],i.customHeaders)}putTelephonyProvidersEdge(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "edgeId" when calling putTelephonyProvidersEdge';if(i==null)throw'Missing the required parameter "body" when calling putTelephonyProvidersEdge';return this.apiClient.callApi("/api/v2/telephony/providers/edges/{edgeId}","PUT",{edgeId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putTelephonyProvidersEdgeLogicalinterface(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "edgeId" when calling putTelephonyProvidersEdgeLogicalinterface';if(i==null||i==="")throw'Missing the required parameter "interfaceId" when calling putTelephonyProvidersEdgeLogicalinterface';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}putTelephonyProvidersEdgesAlertablepresences(e,i){if(i=i||{},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"],i.customHeaders)}putTelephonyProvidersEdgesCertificateauthority(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "certificateId" when calling putTelephonyProvidersEdgesCertificateauthority';if(i==null)throw'Missing the required parameter "body" when calling putTelephonyProvidersEdgesCertificateauthority';return this.apiClient.callApi("/api/v2/telephony/providers/edges/certificateauthorities/{certificateId}","PUT",{certificateId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putTelephonyProvidersEdgesDidpool(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "didPoolId" when calling putTelephonyProvidersEdgesDidpool';if(i==null)throw'Missing the required parameter "body" when calling putTelephonyProvidersEdgesDidpool';return this.apiClient.callApi("/api/v2/telephony/providers/edges/didpools/{didPoolId}","PUT",{didPoolId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putTelephonyProvidersEdgesEdgegroup(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "edgeGroupId" when calling putTelephonyProvidersEdgesEdgegroup';if(i==null)throw'Missing the required parameter "body" when calling putTelephonyProvidersEdgesEdgegroup';return this.apiClient.callApi("/api/v2/telephony/providers/edges/edgegroups/{edgeGroupId}","PUT",{edgeGroupId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putTelephonyProvidersEdgesEdgegroupEdgetrunkbase(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "edgegroupId" when calling putTelephonyProvidersEdgesEdgegroupEdgetrunkbase';if(i==null||i==="")throw'Missing the required parameter "edgetrunkbaseId" when calling putTelephonyProvidersEdgesEdgegroupEdgetrunkbase';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}putTelephonyProvidersEdgesExtensionpool(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "extensionPoolId" when calling putTelephonyProvidersEdgesExtensionpool';if(i==null)throw'Missing the required parameter "body" when calling putTelephonyProvidersEdgesExtensionpool';return this.apiClient.callApi("/api/v2/telephony/providers/edges/extensionpools/{extensionPoolId}","PUT",{extensionPoolId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putTelephonyProvidersEdgesPhone(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "phoneId" when calling putTelephonyProvidersEdgesPhone';if(i==null)throw'Missing the required parameter "body" when calling putTelephonyProvidersEdgesPhone';return this.apiClient.callApi("/api/v2/telephony/providers/edges/phones/{phoneId}","PUT",{phoneId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putTelephonyProvidersEdgesPhonebasesetting(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "phoneBaseId" when calling putTelephonyProvidersEdgesPhonebasesetting';if(i==null)throw'Missing the required parameter "body" when calling putTelephonyProvidersEdgesPhonebasesetting';return this.apiClient.callApi("/api/v2/telephony/providers/edges/phonebasesettings/{phoneBaseId}","PUT",{phoneBaseId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putTelephonyProvidersEdgesSite(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "siteId" when calling putTelephonyProvidersEdgesSite';if(i==null)throw'Missing the required parameter "body" when calling putTelephonyProvidersEdgesSite';return this.apiClient.callApi("/api/v2/telephony/providers/edges/sites/{siteId}","PUT",{siteId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putTelephonyProvidersEdgesSiteNumberplans(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "siteId" when calling putTelephonyProvidersEdgesSiteNumberplans';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putTelephonyProvidersEdgesSiteOutboundroute(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "siteId" when calling putTelephonyProvidersEdgesSiteOutboundroute';if(i==null||i==="")throw'Missing the required parameter "outboundRouteId" when calling putTelephonyProvidersEdgesSiteOutboundroute';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}putTelephonyProvidersEdgesSiteSiteconnections(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "siteId" when calling putTelephonyProvidersEdgesSiteSiteconnections';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putTelephonyProvidersEdgesTrunkbasesetting(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "trunkBaseSettingsId" when calling putTelephonyProvidersEdgesTrunkbasesetting';if(i==null)throw'Missing the required parameter "body" when calling putTelephonyProvidersEdgesTrunkbasesetting';return this.apiClient.callApi("/api/v2/telephony/providers/edges/trunkbasesettings/{trunkBaseSettingsId}","PUT",{trunkBaseSettingsId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}},Wb=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,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "sessionId" when calling postTextbotsBotflowsSessionTurns';if(i==null)throw'Missing the required parameter "turnRequest" when calling postTextbotsBotflowsSessionTurns';return this.apiClient.callApi("/api/v2/textbots/botflows/sessions/{sessionId}/turns","POST",{sessionId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postTextbotsBotflowsSessions(e,i){if(i=i||{},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"],i.customHeaders)}postTextbotsBotsExecute(e,i){if(i=i||{},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"],i.customHeaders)}},Bb=class{constructor(e){this.apiClient=e||q.instance}deleteToken(e,i){if(i=i||{},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"],i.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)}},Fb=class{constructor(e){this.apiClient=e||q.instance}getKnowledgeKnowledgebaseUploadsUrlsJob(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling getKnowledgeKnowledgebaseUploadsUrlsJob';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postGamificationContestsUploadsPrizeimages(e,i){if(i=i||{},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"],i.customHeaders)}postGuidesUploads(e,i){if(i=i||{},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"],i.customHeaders)}postIntegrationsActionDraftFunctionUpload(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "actionId" when calling postIntegrationsActionDraftFunctionUpload';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postKnowledgeDocumentuploads(e,i){if(i=i||{},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"],i.customHeaders)}postKnowledgeKnowledgebaseUploadsUrlsJobs(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseUploadsUrlsJobs';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postLanguageunderstandingMinerUploads(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "minerId" when calling postLanguageunderstandingMinerUploads';if(i==null)throw'Missing the required parameter "body" when calling postLanguageunderstandingMinerUploads';return this.apiClient.callApi("/api/v2/languageunderstanding/miners/{minerId}/uploads","POST",{minerId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postUploadsLearningCoverart(e,i){if(i=i||{},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"],i.customHeaders)}postUploadsPublicassetsImages(e,i){if(i=i||{},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"],i.customHeaders)}postUploadsRecordings(e,i){if(i=i||{},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"],i.customHeaders)}postUploadsWorkforcemanagementHistoricaldataCsv(e,i){if(i=i||{},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"],i.customHeaders)}},Vb=class{constructor(e){this.apiClient=e||q.instance}getOauthClientUsageQueryResult(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "executionId" when calling getOauthClientUsageQueryResult';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getOauthClientUsageSummary(e,i){if(i=i||{},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:i.days},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getUsageAggregatesQueryJob(e,i){if(i=i||{},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:i.pageSize,after:i.after},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getUsageClientClientIdAggregatesQueryJob(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "clientId" when calling getUsageClientClientIdAggregatesQueryJob';if(i==null||i==="")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:i},{pageSize:n.pageSize,after:n.after},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getUsageQueryExecutionIdResults(e,i){if(i=i||{},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"],i.customHeaders)}getUsageSimplesearchExecutionIdResults(e,i){if(i=i||{},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:i.after,pageSize:i.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postOauthClientUsageQuery(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "clientId" when calling postOauthClientUsageQuery';if(i==null)throw'Missing the required parameter "body" when calling postOauthClientUsageQuery';return this.apiClient.callApi("/api/v2/oauth/clients/{clientId}/usage/query","POST",{clientId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postUsageAggregatesQueryJobs(e,i){if(i=i||{},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"],i.customHeaders)}postUsageClientClientIdAggregatesQueryJobs(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "clientId" when calling postUsageClientClientIdAggregatesQueryJobs';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postUsageQuery(e,i){if(i=i||{},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"],i.customHeaders)}postUsageSimplesearch(e,i){if(i=i||{},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"],i.customHeaders)}},Jb=class{constructor(e){this.apiClient=e||q.instance}deleteUserrecording(e,i){if(i=i||{},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"],i.customHeaders)}getUserrecording(e,i){if(i=i||{},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(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getUserrecordingTranscoding(e,i){if(i=i||{},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:i.formatId},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "recordingId" when calling putUserrecording';if(i==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(n.expand,"multi")},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}},Zb=class{constructor(e){this.apiClient=e||q.instance}deleteAnalyticsUsersAggregatesJob(e,i){if(i=i||{},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"],i.customHeaders)}deleteAnalyticsUsersDetailsJob(e,i){if(i=i||{},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"],i.customHeaders)}deleteAuthorizationSubjectDivisionRole(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "subjectId" when calling deleteAuthorizationSubjectDivisionRole';if(i==null||i==="")throw'Missing the required parameter "divisionId" when calling deleteAuthorizationSubjectDivisionRole';if(n==null||n==="")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:i,roleId:n},{},{},{},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,i){if(i=i||{},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"],i.customHeaders)}deleteRoutingUserUtilization(e,i){if(i=i||{},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"],i.customHeaders)}deleteUser(e,i){if(i=i||{},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"],i.customHeaders)}deleteUserCustomattribute(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling deleteUserCustomattribute';if(i==null||i==="")throw'Missing the required parameter "schemaId" when calling deleteUserCustomattribute';return this.apiClient.callApi("/api/v2/users/{userId}/customattributes/{schemaId}","DELETE",{userId:e,schemaId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteUserExternalidAuthorityNameExternalKey(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "userId" when calling deleteUserExternalidAuthorityNameExternalKey';if(i==null||i==="")throw'Missing the required parameter "authorityName" when calling deleteUserExternalidAuthorityNameExternalKey';if(n==null||n==="")throw'Missing the required parameter "externalKey" when calling deleteUserExternalidAuthorityNameExternalKey';return this.apiClient.callApi("/api/v2/users/{userId}/externalid/{authorityName}/{externalKey}","DELETE",{userId:e,authorityName:i,externalKey:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}deleteUserRoutinglanguage(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling deleteUserRoutinglanguage';if(i==null||i==="")throw'Missing the required parameter "languageId" when calling deleteUserRoutinglanguage';return this.apiClient.callApi("/api/v2/users/{userId}/routinglanguages/{languageId}","DELETE",{userId:e,languageId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteUserRoutingskill(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling deleteUserRoutingskill';if(i==null||i==="")throw'Missing the required parameter "skillId" when calling deleteUserRoutingskill';return this.apiClient.callApi("/api/v2/users/{userId}/routingskills/{skillId}","DELETE",{userId:e,skillId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteUserStationAssociatedstation(e,i){if(i=i||{},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"],i.customHeaders)}deleteUserStationDefaultstation(e,i){if(i=i||{},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"],i.customHeaders)}deleteUserVerifier(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling deleteUserVerifier';if(i==null||i==="")throw'Missing the required parameter "verifierId" when calling deleteUserVerifier';return this.apiClient.callApi("/api/v2/users/{userId}/verifiers/{verifierId}","DELETE",{userId:e,verifierId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteUsersCustomattributesSchema(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getAnalyticsUsersAggregatesJobResults(e,i){if(i=i||{},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:i.cursor},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getAnalyticsUsersDetailsJob(e,i){if(i=i||{},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"],i.customHeaders)}getAnalyticsUsersDetailsJobResults(e,i){if(i=i||{},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:i.cursor,pageSize:i.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},e==null)throw'Missing the required parameter "permission" when calling getAuthorizationDivisionspermittedMe';return this.apiClient.callApi("/api/v2/authorization/divisionspermitted/me","GET",{},{name:i.name,permission:e},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getAuthorizationDivisionspermittedPagedMe(e,i){if(i=i||{},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:i.pageNumber,pageSize:i.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getAuthorizationDivisionspermittedPagedSubjectId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "subjectId" when calling getAuthorizationDivisionspermittedPagedSubjectId';if(i==null)throw'Missing the required parameter "permission" when calling getAuthorizationDivisionspermittedPagedSubjectId';return this.apiClient.callApi("/api/v2/authorization/divisionspermitted/paged/{subjectId}","GET",{subjectId:e},{permission:i,pageNumber:n.pageNumber,pageSize:n.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getAuthorizationSubject(e,i){if(i=i||{},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:i.includeDuplicates},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getRoutingUserUtilization(e,i){if(i=i||{},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"],i.customHeaders)}getUser(e,i){if(i=i||{},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(i.expand,"multi"),integrationPresenceSource:i.integrationPresenceSource,userCustomAttributeSchemaIds:this.apiClient.buildCollectionParam(i.userCustomAttributeSchemaIds,"multi"),state:i.state},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getUserAdjacents(e,i){if(i=i||{},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(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getUserCallforwarding(e,i){if(i=i||{},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"],i.customHeaders)}getUserCustomattribute(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling getUserCustomattribute';if(i==null||i==="")throw'Missing the required parameter "schemaId" when calling getUserCustomattribute';return this.apiClient.callApi("/api/v2/users/{userId}/customattributes/{schemaId}","GET",{userId:e,schemaId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getUserCustomattributesBulk(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling getUserCustomattributesBulk';if(i==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(i,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getUserDirectreports(e,i){if(i=i||{},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(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getUserExternalid(e,i){if(i=i||{},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"],i.customHeaders)}getUserExternalidAuthorityName(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling getUserExternalidAuthorityName';if(i==null||i==="")throw'Missing the required parameter "authorityName" when calling getUserExternalidAuthorityName';return this.apiClient.callApi("/api/v2/users/{userId}/externalid/{authorityName}","GET",{userId:e,authorityName:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getUserFavorites(e,i){if(i=i||{},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:i.pageSize,pageNumber:i.pageNumber,sortOrder:i.sortOrder,expand:this.apiClient.buildCollectionParam(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getUserGeolocation(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling getUserGeolocation';if(i==null||i==="")throw'Missing the required parameter "clientId" when calling getUserGeolocation';return this.apiClient.callApi("/api/v2/users/{userId}/geolocations/{clientId}","GET",{userId:e,clientId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getUserOutofoffice(e,i){if(i=i||{},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"],i.customHeaders)}getUserProfile(e,i){if(i=i||{},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(i.expand,"multi"),integrationPresenceSource:i.integrationPresenceSource},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getUserProfileskills(e,i){if(i=i||{},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"],i.customHeaders)}getUserQueues(e,i){if(i=i||{},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:i.pageSize,pageNumber:i.pageNumber,joined:i.joined,divisionId:this.apiClient.buildCollectionParam(i.divisionId,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getUserRoles(e,i){if(i=i||{},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"],i.customHeaders)}getUserRoutinglanguages(e,i){if(i=i||{},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:i.pageSize,pageNumber:i.pageNumber,sortOrder:i.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getUserRoutingskills(e,i){if(i=i||{},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:i.pageSize,pageNumber:i.pageNumber,sortOrder:i.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getUserRoutingstatus(e,i){if(i=i||{},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"],i.customHeaders)}getUserSkillgroups(e,i){if(i=i||{},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:i.pageSize,after:i.after,before:i.before},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getUserState(e,i){if(i=i||{},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"],i.customHeaders)}getUserStation(e,i){if(i=i||{},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"],i.customHeaders)}getUserSuperiors(e,i){if(i=i||{},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(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getUserTrustors(e,i){if(i=i||{},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:i.pageSize,pageNumber:i.pageNumber},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getUserVerifiers(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getUsersCustomattributesSchemaVersion(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "schemaId" when calling getUsersCustomattributesSchemaVersion';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getUsersCustomattributesSchemaVersions(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "activityId" when calling getUsersDevelopmentActivity';if(i==null)throw'Missing the required parameter "type" when calling getUsersDevelopmentActivity';return this.apiClient.callApi("/api/v2/users/development/activities/{activityId}","GET",{activityId:e},{type:i},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getUsersExternalidAuthorityNameExternalKey(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "authorityName" when calling getUsersExternalidAuthorityNameExternalKey';if(i==null||i==="")throw'Missing the required parameter "externalKey" when calling getUsersExternalidAuthorityNameExternalKey';return this.apiClient.callApi("/api/v2/users/externalid/{authorityName}/{externalKey}","GET",{authorityName:e,externalKey:i},{expand:this.apiClient.buildCollectionParam(n.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getUsersMe(e){return e=e||{},this.apiClient.callApi("/api/v2/users/me","GET",{},{expand:this.apiClient.buildCollectionParam(e.expand,"multi"),integrationPresenceSource:e.integrationPresenceSource,userCustomAttributeSchemaIds:this.apiClient.buildCollectionParam(e.userCustomAttributeSchemaIds,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getUsersQuery(e){return e=e||{},this.apiClient.callApi("/api/v2/users/query","GET",{},{cursor:e.cursor,pageSize:e.pageSize,sortOrder:e.sortOrder,expand:this.apiClient.buildCollectionParam(e.expand,"multi"),integrationPresenceSource:e.integrationPresenceSource,userCustomAttributeSchemaIds:this.apiClient.buildCollectionParam(e.userCustomAttributeSchemaIds,"multi"),state:e.state},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getUsersSearch(e,i){if(i=i||{},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(i.expand,"multi"),integrationPresenceSource:i.integrationPresenceSource},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling patchUser';if(i==null)throw'Missing the required parameter "body" when calling patchUser';return this.apiClient.callApi("/api/v2/users/{userId}","PATCH",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchUserCallforwarding(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling patchUserCallforwarding';if(i==null)throw'Missing the required parameter "body" when calling patchUserCallforwarding';return this.apiClient.callApi("/api/v2/users/{userId}/callforwarding","PATCH",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchUserCustomattributes(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling patchUserCustomattributes';if(i==null)throw'Missing the required parameter "userCustomAttributes" when calling patchUserCustomattributes';return this.apiClient.callApi("/api/v2/users/{userId}/customattributes","PATCH",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchUserCustomattributesBulk(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling patchUserCustomattributesBulk';if(i==null)throw'Missing the required parameter "userCustomAttributesList" when calling patchUserCustomattributesBulk';return this.apiClient.callApi("/api/v2/users/{userId}/customattributes/bulk","PATCH",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchUserGeolocation(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "userId" when calling patchUserGeolocation';if(i==null||i==="")throw'Missing the required parameter "clientId" when calling patchUserGeolocation';if(n==null)throw'Missing the required parameter "body" when calling patchUserGeolocation';return this.apiClient.callApi("/api/v2/users/{userId}/geolocations/{clientId}","PATCH",{userId:e,clientId:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchUserQueue(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "queueId" when calling patchUserQueue';if(i==null||i==="")throw'Missing the required parameter "userId" when calling patchUserQueue';if(n==null)throw'Missing the required parameter "body" when calling patchUserQueue';return this.apiClient.callApi("/api/v2/users/{userId}/queues/{queueId}","PATCH",{queueId:e,userId:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchUserQueues(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling patchUserQueues';if(i==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(n.divisionId,"multi")},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchUserRoutinglanguage(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "userId" when calling patchUserRoutinglanguage';if(i==null||i==="")throw'Missing the required parameter "languageId" when calling patchUserRoutinglanguage';if(n==null)throw'Missing the required parameter "body" when calling patchUserRoutinglanguage';return this.apiClient.callApi("/api/v2/users/{userId}/routinglanguages/{languageId}","PATCH",{userId:e,languageId:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchUserRoutinglanguagesBulk(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling patchUserRoutinglanguagesBulk';if(i==null)throw'Missing the required parameter "body" when calling patchUserRoutinglanguagesBulk';return this.apiClient.callApi("/api/v2/users/{userId}/routinglanguages/bulk","PATCH",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchUserRoutingskillsBulk(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling patchUserRoutingskillsBulk';if(i==null)throw'Missing the required parameter "body" when calling patchUserRoutingskillsBulk';return this.apiClient.callApi("/api/v2/users/{userId}/routingskills/bulk","PATCH",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchUsersBulk(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsUsersActivityQuery(e,i){if(i=i||{},e==null)throw'Missing the required parameter "body" when calling postAnalyticsUsersActivityQuery';return this.apiClient.callApi("/api/v2/analytics/users/activity/query","POST",{},{pageSize:i.pageSize,pageNumber:i.pageNumber},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postAnalyticsUsersAggregatesJobs(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsUsersAggregatesQuery(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsUsersDetailsJobs(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsUsersDetailsQuery(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsUsersObservationsQuery(e,i){if(i=i||{},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"],i.customHeaders)}postAuthorizationSubjectBulkadd(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "subjectId" when calling postAuthorizationSubjectBulkadd';if(i==null)throw'Missing the required parameter "body" when calling postAuthorizationSubjectBulkadd';return this.apiClient.callApi("/api/v2/authorization/subjects/{subjectId}/bulkadd","POST",{subjectId:e},{subjectType:n.subjectType},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postAuthorizationSubjectBulkremove(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "subjectId" when calling postAuthorizationSubjectBulkremove';if(i==null)throw'Missing the required parameter "body" when calling postAuthorizationSubjectBulkremove';return this.apiClient.callApi("/api/v2/authorization/subjects/{subjectId}/bulkremove","POST",{subjectId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postAuthorizationSubjectBulkreplace(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "subjectId" when calling postAuthorizationSubjectBulkreplace';if(i==null)throw'Missing the required parameter "body" when calling postAuthorizationSubjectBulkreplace';return this.apiClient.callApi("/api/v2/authorization/subjects/{subjectId}/bulkreplace","POST",{subjectId:e},{subjectType:n.subjectType},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postAuthorizationSubjectDivisionRole(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "subjectId" when calling postAuthorizationSubjectDivisionRole';if(i==null||i==="")throw'Missing the required parameter "divisionId" when calling postAuthorizationSubjectDivisionRole';if(n==null||n==="")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:i,roleId:n},{subjectType:a.subjectType},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postUserExternalid(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling postUserExternalid';if(i==null)throw'Missing the required parameter "body" when calling postUserExternalid';return this.apiClient.callApi("/api/v2/users/{userId}/externalid","POST",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postUserInvite(e,i){if(i=i||{},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:i.force},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postUserPassword(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling postUserPassword';if(i==null)throw'Missing the required parameter "body" when calling postUserPassword';return this.apiClient.callApi("/api/v2/users/{userId}/password","POST",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postUserRoutinglanguages(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling postUserRoutinglanguages';if(i==null)throw'Missing the required parameter "body" when calling postUserRoutinglanguages';return this.apiClient.callApi("/api/v2/users/{userId}/routinglanguages","POST",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postUserRoutingskills(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling postUserRoutingskills';if(i==null)throw'Missing the required parameter "body" when calling postUserRoutingskills';return this.apiClient.callApi("/api/v2/users/{userId}/routingskills","POST",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postUsers(e,i){if(i=i||{},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"],i.customHeaders)}postUsersCustomattributesSchemas(e,i){if(i=i||{},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"],i.customHeaders)}postUsersDevelopmentActivitiesAggregatesQuery(e,i){if(i=i||{},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"],i.customHeaders)}postUsersMePassword(e,i){if(i=i||{},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"],i.customHeaders)}postUsersSearch(e,i){if(i=i||{},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"],i.customHeaders)}postUsersSearchConversationTarget(e,i){if(i=i||{},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"],i.customHeaders)}postUsersSearchQueuemembersManage(e,i){if(i=i||{},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"],i.customHeaders)}postUsersSearchTeamsAssign(e,i){if(i=i||{},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"],i.customHeaders)}putRoutingDirectroutingbackupSettingsMe(e,i){if(i=i||{},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"],i.customHeaders)}putRoutingUserDirectroutingbackupSettings(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling putRoutingUserDirectroutingbackupSettings';if(i==null)throw'Missing the required parameter "body" when calling putRoutingUserDirectroutingbackupSettings';return this.apiClient.callApi("/api/v2/routing/users/{userId}/directroutingbackup/settings","PUT",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putRoutingUserUtilization(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling putRoutingUserUtilization';if(i==null)throw'Missing the required parameter "body" when calling putRoutingUserUtilization';return this.apiClient.callApi("/api/v2/routing/users/{userId}/utilization","PUT",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putUserCallforwarding(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling putUserCallforwarding';if(i==null)throw'Missing the required parameter "body" when calling putUserCallforwarding';return this.apiClient.callApi("/api/v2/users/{userId}/callforwarding","PUT",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putUserCustomattributes(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling putUserCustomattributes';if(i==null)throw'Missing the required parameter "userCustomAttributes" when calling putUserCustomattributes';return this.apiClient.callApi("/api/v2/users/{userId}/customattributes","PUT",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putUserOutofoffice(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling putUserOutofoffice';if(i==null)throw'Missing the required parameter "body" when calling putUserOutofoffice';return this.apiClient.callApi("/api/v2/users/{userId}/outofoffice","PUT",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putUserProfileskills(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling putUserProfileskills';if(i==null)throw'Missing the required parameter "body" when calling putUserProfileskills';return this.apiClient.callApi("/api/v2/users/{userId}/profileskills","PUT",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putUserRoles(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "subjectId" when calling putUserRoles';if(i==null)throw'Missing the required parameter "body" when calling putUserRoles';return this.apiClient.callApi("/api/v2/users/{subjectId}/roles","PUT",{subjectId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putUserRoutingskill(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "userId" when calling putUserRoutingskill';if(i==null||i==="")throw'Missing the required parameter "skillId" when calling putUserRoutingskill';if(n==null)throw'Missing the required parameter "body" when calling putUserRoutingskill';return this.apiClient.callApi("/api/v2/users/{userId}/routingskills/{skillId}","PUT",{userId:e,skillId:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}putUserRoutingskillsBulk(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling putUserRoutingskillsBulk';if(i==null)throw'Missing the required parameter "body" when calling putUserRoutingskillsBulk';return this.apiClient.callApi("/api/v2/users/{userId}/routingskills/bulk","PUT",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putUserRoutingstatus(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling putUserRoutingstatus';if(i==null)throw'Missing the required parameter "body" when calling putUserRoutingstatus';return this.apiClient.callApi("/api/v2/users/{userId}/routingstatus","PUT",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putUserState(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling putUserState';if(i==null)throw'Missing the required parameter "body" when calling putUserState';return this.apiClient.callApi("/api/v2/users/{userId}/state","PUT",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putUserStationAssociatedstationStationId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling putUserStationAssociatedstationStationId';if(i==null||i==="")throw'Missing the required parameter "stationId" when calling putUserStationAssociatedstationStationId';return this.apiClient.callApi("/api/v2/users/{userId}/station/associatedstation/{stationId}","PUT",{userId:e,stationId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putUserStationDefaultstationStationId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling putUserStationDefaultstationStationId';if(i==null||i==="")throw'Missing the required parameter "stationId" when calling putUserStationDefaultstationStationId';return this.apiClient.callApi("/api/v2/users/{userId}/station/defaultstation/{stationId}","PUT",{userId:e,stationId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putUserVerifier(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "userId" when calling putUserVerifier';if(i==null||i==="")throw'Missing the required parameter "verifierId" when calling putUserVerifier';if(n==null)throw'Missing the required parameter "body" when calling putUserVerifier';return this.apiClient.callApi("/api/v2/users/{userId}/verifiers/{verifierId}","PUT",{userId:e,verifierId:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}putUsersCustomattributesSchema(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "schemaId" when calling putUsersCustomattributesSchema';if(i==null)throw'Missing the required parameter "body" when calling putUsersCustomattributesSchema';return this.apiClient.callApi("/api/v2/users/customattributes/schemas/{schemaId}","PUT",{schemaId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putUsersStationsMeAssociatedstationStationId(e,i){if(i=i||{},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"],i.customHeaders)}},Kb=class{constructor(e){this.apiClient=e||q.instance}deleteUsersRule(e,i){if(i=i||{},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"],i.customHeaders)}getUsersRule(e,i){if(i=i||{},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"],i.customHeaders)}getUsersRuleDependentTypeId(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "ruleId" when calling getUsersRuleDependentTypeId';if(i==null||i==="")throw'Missing the required parameter "ruleType" when calling getUsersRuleDependentTypeId';if(n==null||n==="")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:i,typeId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getUsersRuleDependents(e,i){if(i=i||{},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:i.pageSize,pageNumber:i.pageNumber,sortOrder:i.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getUsersRules(e,i){if(i=i||{},e==null)throw'Missing the required parameter "types" when calling getUsersRules';return this.apiClient.callApi("/api/v2/users/rules","GET",{},{pageNumber:i.pageNumber,pageSize:i.pageSize,types:this.apiClient.buildCollectionParam(e,"multi"),expand:this.apiClient.buildCollectionParam(i.expand,"multi"),enabled:i.enabled,searchTerm:i.searchTerm,sortOrder:i.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getUsersRulesSetting(e,i){if(i=i||{},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"],i.customHeaders)}patchUsersRule(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "ruleId" when calling patchUsersRule';if(i==null)throw'Missing the required parameter "body" when calling patchUsersRule';return this.apiClient.callApi("/api/v2/users/rules/{ruleId}","PATCH",{ruleId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postUsersRules(e,i){if(i=i||{},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"],i.customHeaders)}postUsersRulesQuery(e,i){if(i=i||{},e==null)throw'Missing the required parameter "body" when calling postUsersRulesQuery';return this.apiClient.callApi("/api/v2/users/rules/query","POST",{},{pageNumber:i.pageNumber,pageSize:i.pageSize},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}},Qb=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,i){if(i=i||{},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"],i.customHeaders)}},Yb=class{constructor(e){this.apiClient=e||q.instance}deleteVoicemailMessage(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getVoicemailGroupMessages(e,i){if(i=i||{},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:i.pageSize,pageNumber:i.pageNumber},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getVoicemailGroupPolicy(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getVoicemailMessageMedia(e,i){if(i=i||{},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:i.formatId},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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:i.pageSize,pageNumber:i.pageNumber},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getVoicemailSearch(e,i){if(i=i||{},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(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getVoicemailUserMailbox(e,i){if(i=i||{},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"],i.customHeaders)}getVoicemailUserMessages(e,i){if(i=i||{},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:i.pageSize,pageNumber:i.pageNumber},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getVoicemailUserpolicy(e,i){if(i=i||{},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"],i.customHeaders)}patchVoicemailGroupPolicy(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "groupId" when calling patchVoicemailGroupPolicy';if(i==null)throw'Missing the required parameter "body" when calling patchVoicemailGroupPolicy';return this.apiClient.callApi("/api/v2/voicemail/groups/{groupId}/policy","PATCH",{groupId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchVoicemailMePolicy(e,i){if(i=i||{},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"],i.customHeaders)}patchVoicemailMessage(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "messageId" when calling patchVoicemailMessage';if(i==null)throw'Missing the required parameter "body" when calling patchVoicemailMessage';return this.apiClient.callApi("/api/v2/voicemail/messages/{messageId}","PATCH",{messageId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchVoicemailUserpolicy(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling patchVoicemailUserpolicy';if(i==null)throw'Missing the required parameter "body" when calling patchVoicemailUserpolicy';return this.apiClient.callApi("/api/v2/voicemail/userpolicies/{userId}","PATCH",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.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,i){if(i=i||{},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"],i.customHeaders)}putVoicemailMessage(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "messageId" when calling putVoicemailMessage';if(i==null)throw'Missing the required parameter "body" when calling putVoicemailMessage';return this.apiClient.callApi("/api/v2/voicemail/messages/{messageId}","PUT",{messageId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putVoicemailPolicy(e,i){if(i=i||{},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"],i.customHeaders)}putVoicemailUserpolicy(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling putVoicemailUserpolicy';if(i==null)throw'Missing the required parameter "body" when calling putVoicemailUserpolicy';return this.apiClient.callApi("/api/v2/voicemail/userpolicies/{userId}","PUT",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}},Xb=class{constructor(e){this.apiClient=e||q.instance}deleteWebchatDeployment(e,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "deploymentId" when calling deleteWebchatDeployment';return this.apiClient.callApi("/api/v2/webchat/deployments/{deploymentId}","DELETE",{deploymentId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}deleteWebchatGuestConversationMember(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling deleteWebchatGuestConversationMember';if(i==null||i==="")throw'Missing the required parameter "memberId" when calling deleteWebchatGuestConversationMember';return this.apiClient.callApi("/api/v2/webchat/guest/conversations/{conversationId}/members/{memberId}","DELETE",{conversationId:e,memberId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteWebchatSettings(e){return e=e||{},this.apiClient.callApi("/api/v2/webchat/settings","DELETE",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getWebchatDeployment(e,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "deploymentId" when calling getWebchatDeployment';return this.apiClient.callApi("/api/v2/webchat/deployments/{deploymentId}","GET",{deploymentId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getWebchatDeployments(e){return e=e||{},this.apiClient.callApi("/api/v2/webchat/deployments","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getWebchatGuestConversationMediarequest(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getWebchatGuestConversationMediarequest';if(i==null||i==="")throw'Missing the required parameter "mediaRequestId" when calling getWebchatGuestConversationMediarequest';return this.apiClient.callApi("/api/v2/webchat/guest/conversations/{conversationId}/mediarequests/{mediaRequestId}","GET",{conversationId:e,mediaRequestId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWebchatGuestConversationMediarequests(e,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getWebchatGuestConversationMediarequests';return this.apiClient.callApi("/api/v2/webchat/guest/conversations/{conversationId}/mediarequests","GET",{conversationId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getWebchatGuestConversationMember(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getWebchatGuestConversationMember';if(i==null||i==="")throw'Missing the required parameter "memberId" when calling getWebchatGuestConversationMember';return this.apiClient.callApi("/api/v2/webchat/guest/conversations/{conversationId}/members/{memberId}","GET",{conversationId:e,memberId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWebchatGuestConversationMembers(e,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getWebchatGuestConversationMembers';return this.apiClient.callApi("/api/v2/webchat/guest/conversations/{conversationId}/members","GET",{conversationId:e},{pageSize:i.pageSize,pageNumber:i.pageNumber,excludeDisconnectedMembers:i.excludeDisconnectedMembers},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getWebchatGuestConversationMessage(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getWebchatGuestConversationMessage';if(i==null||i==="")throw'Missing the required parameter "messageId" when calling getWebchatGuestConversationMessage';return this.apiClient.callApi("/api/v2/webchat/guest/conversations/{conversationId}/messages/{messageId}","GET",{conversationId:e,messageId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWebchatGuestConversationMessages(e,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getWebchatGuestConversationMessages';return this.apiClient.callApi("/api/v2/webchat/guest/conversations/{conversationId}/messages","GET",{conversationId:e},{after:i.after,before:i.before,sortOrder:i.sortOrder,maxResults:i.maxResults},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getWebchatSettings(e){return e=e||{},this.apiClient.callApi("/api/v2/webchat/settings","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}patchWebchatGuestConversationMediarequest(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchWebchatGuestConversationMediarequest';if(i==null||i==="")throw'Missing the required parameter "mediaRequestId" when calling patchWebchatGuestConversationMediarequest';if(n==null)throw'Missing the required parameter "body" when calling patchWebchatGuestConversationMediarequest';return this.apiClient.callApi("/api/v2/webchat/guest/conversations/{conversationId}/mediarequests/{mediaRequestId}","PATCH",{conversationId:e,mediaRequestId:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postWebchatDeployments(e,i){if(i=i||{},e==null)throw'Missing the required parameter "body" when calling postWebchatDeployments';return this.apiClient.callApi("/api/v2/webchat/deployments","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postWebchatGuestConversationMemberMessages(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postWebchatGuestConversationMemberMessages';if(i==null||i==="")throw'Missing the required parameter "memberId" when calling postWebchatGuestConversationMemberMessages';if(n==null)throw'Missing the required parameter "body" when calling postWebchatGuestConversationMemberMessages';return this.apiClient.callApi("/api/v2/webchat/guest/conversations/{conversationId}/members/{memberId}/messages","POST",{conversationId:e,memberId:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postWebchatGuestConversationMemberTyping(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postWebchatGuestConversationMemberTyping';if(i==null||i==="")throw'Missing the required parameter "memberId" when calling postWebchatGuestConversationMemberTyping';return this.apiClient.callApi("/api/v2/webchat/guest/conversations/{conversationId}/members/{memberId}/typing","POST",{conversationId:e,memberId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWebchatGuestConversations(e,i){if(i=i||{},e==null)throw'Missing the required parameter "body" when calling postWebchatGuestConversations';return this.apiClient.callApi("/api/v2/webchat/guest/conversations","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}putWebchatDeployment(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "deploymentId" when calling putWebchatDeployment';if(i==null)throw'Missing the required parameter "body" when calling putWebchatDeployment';return this.apiClient.callApi("/api/v2/webchat/deployments/{deploymentId}","PUT",{deploymentId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putWebchatSettings(e,i){if(i=i||{},e==null)throw'Missing the required parameter "body" when calling putWebchatSettings';return this.apiClient.callApi("/api/v2/webchat/settings","PUT",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}},ey=class{constructor(e){this.apiClient=e||q.instance}deleteWebdeploymentsConfiguration(e,i){if(i=i||{},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"],i.customHeaders)}deleteWebdeploymentsDeployment(e,i){if(i=i||{},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"],i.customHeaders)}deleteWebdeploymentsDeploymentCobrowseSessionId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "deploymentId" when calling deleteWebdeploymentsDeploymentCobrowseSessionId';if(i==null||i==="")throw'Missing the required parameter "sessionId" when calling deleteWebdeploymentsDeploymentCobrowseSessionId';return this.apiClient.callApi("/api/v2/webdeployments/deployments/{deploymentId}/cobrowse/{sessionId}","DELETE",{deploymentId:e,sessionId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.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,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "configurationId" when calling getWebdeploymentsConfigurationVersion';if(i==null||i==="")throw'Missing the required parameter "versionId" when calling getWebdeploymentsConfigurationVersion';return this.apiClient.callApi("/api/v2/webdeployments/configurations/{configurationId}/versions/{versionId}","GET",{configurationId:e,versionId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWebdeploymentsConfigurationVersions(e,i){if(i=i||{},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:i.pageSize,before:i.before,after:i.after},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getWebdeploymentsConfigurationVersionsDraft(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getWebdeploymentsDeploymentCobrowseSessionId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "deploymentId" when calling getWebdeploymentsDeploymentCobrowseSessionId';if(i==null||i==="")throw'Missing the required parameter "sessionId" when calling getWebdeploymentsDeploymentCobrowseSessionId';return this.apiClient.callApi("/api/v2/webdeployments/deployments/{deploymentId}/cobrowse/{sessionId}","GET",{deploymentId:e,sessionId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWebdeploymentsDeploymentConfigurations(e,i){if(i=i||{},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:i.type,expand:this.apiClient.buildCollectionParam(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getWebdeploymentsDeploymentIdentityresolution(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}postWebdeploymentsConfigurations(e,i){if(i=i||{},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"],i.customHeaders)}postWebdeploymentsDeployments(e,i){if(i=i||{},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"],i.customHeaders)}postWebdeploymentsTokenOauthcodegrantjwtexchange(e,i){if(i=i||{},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"],i.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,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "configurationId" when calling putWebdeploymentsConfigurationVersionsDraft';if(i==null)throw'Missing the required parameter "configurationVersion" when calling putWebdeploymentsConfigurationVersionsDraft';return this.apiClient.callApi("/api/v2/webdeployments/configurations/{configurationId}/versions/draft","PUT",{configurationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putWebdeploymentsDeployment(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "deploymentId" when calling putWebdeploymentsDeployment';if(i==null)throw'Missing the required parameter "deployment" when calling putWebdeploymentsDeployment';return this.apiClient.callApi("/api/v2/webdeployments/deployments/{deploymentId}","PUT",{deploymentId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putWebdeploymentsDeploymentIdentityresolution(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "deploymentId" when calling putWebdeploymentsDeploymentIdentityresolution';if(i==null)throw'Missing the required parameter "body" when calling putWebdeploymentsDeploymentIdentityresolution';return this.apiClient.callApi("/api/v2/webdeployments/deployments/{deploymentId}/identityresolution","PUT",{deploymentId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}},iy=class{constructor(e){this.apiClient=e||q.instance}deleteWebmessagingDeploymentPushdevice(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "deploymentId" when calling deleteWebmessagingDeploymentPushdevice';if(i==null||i==="")throw'Missing the required parameter "tokenId" when calling deleteWebmessagingDeploymentPushdevice';return this.apiClient.callApi("/api/v2/webmessaging/deployments/{deploymentId}/pushdevices/{tokenId}","DELETE",{deploymentId:e,tokenId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.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,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "deploymentId" when calling patchWebmessagingDeploymentPushdevice';if(i==null||i==="")throw'Missing the required parameter "tokenId" when calling patchWebmessagingDeploymentPushdevice';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postWebmessagingDeploymentPushdevice(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "deploymentId" when calling postWebmessagingDeploymentPushdevice';if(i==null||i==="")throw'Missing the required parameter "tokenId" when calling postWebmessagingDeploymentPushdevice';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}},ny=class{constructor(e){this.apiClient=e||q.instance}deleteWidgetsDeployment(e,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "deploymentId" when calling deleteWidgetsDeployment';return this.apiClient.callApi("/api/v2/widgets/deployments/{deploymentId}","DELETE",{deploymentId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getWidgetsDeployment(e,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "deploymentId" when calling getWidgetsDeployment';return this.apiClient.callApi("/api/v2/widgets/deployments/{deploymentId}","GET",{deploymentId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getWidgetsDeployments(e){return e=e||{},this.apiClient.callApi("/api/v2/widgets/deployments","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}postWidgetsDeployments(e,i){if(i=i||{},e==null)throw'Missing the required parameter "body" when calling postWidgetsDeployments';return this.apiClient.callApi("/api/v2/widgets/deployments","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}putWidgetsDeployment(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "deploymentId" when calling putWidgetsDeployment';if(i==null)throw'Missing the required parameter "body" when calling putWidgetsDeployment';return this.apiClient.callApi("/api/v2/widgets/deployments/{deploymentId}","PUT",{deploymentId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}},ty=class{constructor(e){this.apiClient=e||q.instance}deleteWorkforcemanagementBusinessunit(e,i){if(i=i||{},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"],i.customHeaders)}deleteWorkforcemanagementBusinessunitActivitycode(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling deleteWorkforcemanagementBusinessunitActivitycode';if(i==null||i==="")throw'Missing the required parameter "activityCodeId" when calling deleteWorkforcemanagementBusinessunitActivitycode';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/activitycodes/{activityCodeId}","DELETE",{businessUnitId:e,activityCodeId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteWorkforcemanagementBusinessunitCapacityplanStaffinggroupallocationshistory(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling deleteWorkforcemanagementBusinessunitCapacityplanStaffinggroupallocationshistory';if(i==null||i==="")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:i},{beforeDateId:n.beforeDateId},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteWorkforcemanagementBusinessunitPlanninggroup(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling deleteWorkforcemanagementBusinessunitPlanninggroup';if(i==null||i==="")throw'Missing the required parameter "planningGroupId" when calling deleteWorkforcemanagementBusinessunitPlanninggroup';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/planninggroups/{planningGroupId}","DELETE",{businessUnitId:e,planningGroupId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteWorkforcemanagementBusinessunitSchedulingRun(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling deleteWorkforcemanagementBusinessunitSchedulingRun';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteWorkforcemanagementBusinessunitServicegoaltemplate(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling deleteWorkforcemanagementBusinessunitServicegoaltemplate';if(i==null||i==="")throw'Missing the required parameter "serviceGoalTemplateId" when calling deleteWorkforcemanagementBusinessunitServicegoaltemplate';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/servicegoaltemplates/{serviceGoalTemplateId}","DELETE",{businessUnitId:e,serviceGoalTemplateId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteWorkforcemanagementBusinessunitStaffinggroup(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling deleteWorkforcemanagementBusinessunitStaffinggroup';if(i==null||i==="")throw'Missing the required parameter "staffingGroupId" when calling deleteWorkforcemanagementBusinessunitStaffinggroup';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/staffinggroups/{staffingGroupId}","DELETE",{businessUnitId:e,staffingGroupId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteWorkforcemanagementBusinessunitTimeofflimit(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling deleteWorkforcemanagementBusinessunitTimeofflimit';if(i==null||i==="")throw'Missing the required parameter "timeOffLimitId" when calling deleteWorkforcemanagementBusinessunitTimeofflimit';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/timeofflimits/{timeOffLimitId}","DELETE",{businessUnitId:e,timeOffLimitId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteWorkforcemanagementBusinessunitTimeoffplan(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling deleteWorkforcemanagementBusinessunitTimeoffplan';if(i==null||i==="")throw'Missing the required parameter "timeOffPlanId" when calling deleteWorkforcemanagementBusinessunitTimeoffplan';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/timeoffplans/{timeOffPlanId}","DELETE",{businessUnitId:e,timeOffPlanId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteWorkforcemanagementBusinessunitWeekSchedule(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling deleteWorkforcemanagementBusinessunitWeekSchedule';if(i==null)throw'Missing the required parameter "weekId" when calling deleteWorkforcemanagementBusinessunitWeekSchedule';if(n==null||n==="")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:i,scheduleId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}deleteWorkforcemanagementBusinessunitWeekShorttermforecast(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling deleteWorkforcemanagementBusinessunitWeekShorttermforecast';if(i==null)throw'Missing the required parameter "weekDateId" when calling deleteWorkforcemanagementBusinessunitWeekShorttermforecast';if(n==null||n==="")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:i,forecastId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}deleteWorkforcemanagementBusinessunitWorkplanbid(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling deleteWorkforcemanagementBusinessunitWorkplanbid';if(i==null||i==="")throw'Missing the required parameter "bidId" when calling deleteWorkforcemanagementBusinessunitWorkplanbid';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/workplanbids/{bidId}","DELETE",{businessUnitId:e,bidId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteWorkforcemanagementBusinessunitWorkplanbidGroup(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling deleteWorkforcemanagementBusinessunitWorkplanbidGroup';if(i==null||i==="")throw'Missing the required parameter "bidId" when calling deleteWorkforcemanagementBusinessunitWorkplanbidGroup';if(n==null||n==="")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:i,bidGroupId:n},{},{},{},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,i){if(i=i||{},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"],i.customHeaders)}deleteWorkforcemanagementManagementunitTimeofflimit(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling deleteWorkforcemanagementManagementunitTimeofflimit';if(i==null||i==="")throw'Missing the required parameter "timeOffLimitId" when calling deleteWorkforcemanagementManagementunitTimeofflimit';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/timeofflimits/{timeOffLimitId}","DELETE",{managementUnitId:e,timeOffLimitId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteWorkforcemanagementManagementunitTimeoffplan(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling deleteWorkforcemanagementManagementunitTimeoffplan';if(i==null||i==="")throw'Missing the required parameter "timeOffPlanId" when calling deleteWorkforcemanagementManagementunitTimeoffplan';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/timeoffplans/{timeOffPlanId}","DELETE",{managementUnitId:e,timeOffPlanId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteWorkforcemanagementManagementunitWorkplan(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling deleteWorkforcemanagementManagementunitWorkplan';if(i==null||i==="")throw'Missing the required parameter "workPlanId" when calling deleteWorkforcemanagementManagementunitWorkplan';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/workplans/{workPlanId}","DELETE",{managementUnitId:e,workPlanId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteWorkforcemanagementManagementunitWorkplanrotation(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling deleteWorkforcemanagementManagementunitWorkplanrotation';if(i==null||i==="")throw'Missing the required parameter "workPlanRotationId" when calling deleteWorkforcemanagementManagementunitWorkplanrotation';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/workplanrotations/{workPlanRotationId}","DELETE",{managementUnitId:e,workPlanRotationId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementAdherence(e,i){if(i=i||{},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"],i.customHeaders)}getWorkforcemanagementAdherenceExplanation(e,i){if(i=i||{},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"],i.customHeaders)}getWorkforcemanagementAdherenceExplanationsJob(e,i){if(i=i||{},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"],i.customHeaders)}getWorkforcemanagementAdherenceHistoricalBulkJob(e,i){if(i=i||{},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"],i.customHeaders)}getWorkforcemanagementAdherenceHistoricalJob(e,i){if(i=i||{},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"],i.customHeaders)}getWorkforcemanagementAgentAdherenceExplanation(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "agentId" when calling getWorkforcemanagementAgentAdherenceExplanation';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementAgentManagementunit(e,i){if(i=i||{},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"],i.customHeaders)}getWorkforcemanagementAgentsMeAdherenceHistoricalJob(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getWorkforcemanagementAlternativeshiftsOffersSearchJob(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getWorkforcemanagementAlternativeshiftsTradesStateJob(e,i){if(i=i||{},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"],i.customHeaders)}getWorkforcemanagementBusinessunit(e,i){if(i=i||{},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(i.expand,"multi"),includeSchedulingDefaultMessageSeverities:i.includeSchedulingDefaultMessageSeverities},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getWorkforcemanagementBusinessunitActivitycode(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitActivitycode';if(i==null||i==="")throw'Missing the required parameter "activityCodeId" when calling getWorkforcemanagementBusinessunitActivitycode';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/activitycodes/{activityCodeId}","GET",{businessUnitId:e,activityCodeId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementBusinessunitActivitycodes(e,i){if(i=i||{},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:i.forceDownloadService},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getWorkforcemanagementBusinessunitActivityplan(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitActivityplan';if(i==null||i==="")throw'Missing the required parameter "activityPlanId" when calling getWorkforcemanagementBusinessunitActivityplan';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/activityplans/{activityPlanId}","GET",{businessUnitId:e,activityPlanId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementBusinessunitActivityplanRunsJob(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitActivityplanRunsJob';if(i==null||i==="")throw'Missing the required parameter "activityPlanId" when calling getWorkforcemanagementBusinessunitActivityplanRunsJob';if(n==null||n==="")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:i,jobId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getWorkforcemanagementBusinessunitActivityplans(e,i){if(i=i||{},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:i.state},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getWorkforcemanagementBusinessunitActivityplansJobs(e,i){if(i=i||{},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"],i.customHeaders)}getWorkforcemanagementBusinessunitAlternativeshiftsSettings(e,i){if(i=i||{},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"],i.customHeaders)}getWorkforcemanagementBusinessunitAlternativeshiftsTrade(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitAlternativeshiftsTrade';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementBusinessunitAlternativeshiftsTradesSearchJob(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitAlternativeshiftsTradesSearchJob';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementBusinessunitCapacityplan(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitCapacityplan';if(i==null||i==="")throw'Missing the required parameter "capacityPlanId" when calling getWorkforcemanagementBusinessunitCapacityplan';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/capacityplans/{capacityPlanId}","GET",{businessUnitId:e,capacityPlanId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementBusinessunitCapacityplanStaffinggroupallocations(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitCapacityplanStaffinggroupallocations';if(i==null||i==="")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:i},{granularity:n.granularity},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementBusinessunitCapacityplanStaffingrequirements(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitCapacityplanStaffingrequirements';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementBusinessunitCapacityplanningLongtermrequirementsAutomaticbestmethodWeekForecast(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitCapacityplanningLongtermrequirementsAutomaticbestmethodWeekForecast';if(i==null)throw'Missing the required parameter "weekDateId" when calling getWorkforcemanagementBusinessunitCapacityplanningLongtermrequirementsAutomaticbestmethodWeekForecast';if(n==null||n==="")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:i,forecastId:n},{granularity:a.granularity},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getWorkforcemanagementBusinessunitCapacityplans(e,i){if(i=i||{},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"],i.customHeaders)}getWorkforcemanagementBusinessunitIntradayPlanninggroups(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitIntradayPlanninggroups';if(i==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:i},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementBusinessunitMainforecastContinuousforecastSession(e,i){if(i=i||{},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"],i.customHeaders)}getWorkforcemanagementBusinessunitMainforecastContinuousforecastSessionSessionId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitMainforecastContinuousforecastSessionSessionId';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementBusinessunitMainforecastContinuousforecastSessionSessionIdSnapshotSnapshotId(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitMainforecastContinuousforecastSessionSessionIdSnapshotSnapshotId';if(i==null||i==="")throw'Missing the required parameter "sessionId" when calling getWorkforcemanagementBusinessunitMainforecastContinuousforecastSessionSessionIdSnapshotSnapshotId';if(n==null||n==="")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:i,snapshotId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getWorkforcemanagementBusinessunitManagementunits(e,i){if(i=i||{},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:i.feature,divisionId:i.divisionId},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getWorkforcemanagementBusinessunitMinimumstaffingSettings(e,i){if(i=i||{},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"],i.customHeaders)}getWorkforcemanagementBusinessunitPlanninggroup(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitPlanninggroup';if(i==null||i==="")throw'Missing the required parameter "planningGroupId" when calling getWorkforcemanagementBusinessunitPlanninggroup';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/planninggroups/{planningGroupId}","GET",{businessUnitId:e,planningGroupId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementBusinessunitPlanninggroups(e,i){if(i=i||{},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"],i.customHeaders)}getWorkforcemanagementBusinessunitSchedulerSettings(e,i){if(i=i||{},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"],i.customHeaders)}getWorkforcemanagementBusinessunitSchedulingRun(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitSchedulingRun';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementBusinessunitSchedulingRunResult(e,i,n,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitSchedulingRunResult';if(i==null||i==="")throw'Missing the required parameter "runId" when calling getWorkforcemanagementBusinessunitSchedulingRunResult';if(n==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:i},{managementUnitIds:this.apiClient.buildCollectionParam(n,"multi"),expand:this.apiClient.buildCollectionParam(a,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}getWorkforcemanagementBusinessunitSchedulingRuns(e,i){if(i=i||{},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"],i.customHeaders)}getWorkforcemanagementBusinessunitServicegoaltemplate(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitServicegoaltemplate';if(i==null||i==="")throw'Missing the required parameter "serviceGoalTemplateId" when calling getWorkforcemanagementBusinessunitServicegoaltemplate';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/servicegoaltemplates/{serviceGoalTemplateId}","GET",{businessUnitId:e,serviceGoalTemplateId:i},{expand:this.apiClient.buildCollectionParam(n.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementBusinessunitServicegoaltemplates(e,i){if(i=i||{},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(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getWorkforcemanagementBusinessunitShifttradingTradesEvaluateJob(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitShifttradingTradesEvaluateJob';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementBusinessunitShifttradingTradesQueryJob(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitShifttradingTradesQueryJob';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementBusinessunitShifttradingTradesStateBulkJob(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitShifttradingTradesStateBulkJob';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementBusinessunitShifttradingUnmatchedSearchJob(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitShifttradingUnmatchedSearchJob';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementBusinessunitShifttradingWeeksSummaryJob(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitShifttradingWeeksSummaryJob';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementBusinessunitStaffinggroup(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitStaffinggroup';if(i==null||i==="")throw'Missing the required parameter "staffingGroupId" when calling getWorkforcemanagementBusinessunitStaffinggroup';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/staffinggroups/{staffingGroupId}","GET",{businessUnitId:e,staffingGroupId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementBusinessunitStaffinggroups(e,i){if(i=i||{},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:i.managementUnitId,forceDownloadService:i.forceDownloadService},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getWorkforcemanagementBusinessunitTimeofflimit(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitTimeofflimit';if(i==null||i==="")throw'Missing the required parameter "timeOffLimitId" when calling getWorkforcemanagementBusinessunitTimeofflimit';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/timeofflimits/{timeOffLimitId}","GET",{businessUnitId:e,timeOffLimitId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementBusinessunitTimeofflimits(e,i){if(i=i||{},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:i.managementUnitId},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getWorkforcemanagementBusinessunitTimeoffplan(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitTimeoffplan';if(i==null||i==="")throw'Missing the required parameter "timeOffPlanId" when calling getWorkforcemanagementBusinessunitTimeoffplan';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/timeoffplans/{timeOffPlanId}","GET",{businessUnitId:e,timeOffPlanId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementBusinessunitTimeoffplans(e,i){if(i=i||{},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:i.managementUnitId,forceDownloadService:i.forceDownloadService},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getWorkforcemanagementBusinessunitUsers(e,i){if(i=i||{},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(i.managementUnitIds,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getWorkforcemanagementBusinessunitWeekSchedule(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitWeekSchedule';if(i==null)throw'Missing the required parameter "weekId" when calling getWorkforcemanagementBusinessunitWeekSchedule';if(n==null||n==="")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:i,scheduleId:n},{expand:a.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getWorkforcemanagementBusinessunitWeekScheduleGenerationresults(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitWeekScheduleGenerationresults';if(i==null)throw'Missing the required parameter "weekId" when calling getWorkforcemanagementBusinessunitWeekScheduleGenerationresults';if(n==null||n==="")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:i,scheduleId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getWorkforcemanagementBusinessunitWeekScheduleHeadcountforecast(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitWeekScheduleHeadcountforecast';if(i==null)throw'Missing the required parameter "weekId" when calling getWorkforcemanagementBusinessunitWeekScheduleHeadcountforecast';if(n==null||n==="")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:i,scheduleId:n},{forceDownload:a.forceDownload},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getWorkforcemanagementBusinessunitWeekScheduleHistoryAgent(e,i,n,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitWeekScheduleHistoryAgent';if(i==null)throw'Missing the required parameter "weekId" when calling getWorkforcemanagementBusinessunitWeekScheduleHistoryAgent';if(n==null||n==="")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:i,scheduleId:n,agentId:a},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}getWorkforcemanagementBusinessunitWeekSchedulePerformancepredictions(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitWeekSchedulePerformancepredictions';if(i==null||i==="")throw'Missing the required parameter "weekId" when calling getWorkforcemanagementBusinessunitWeekSchedulePerformancepredictions';if(n==null||n==="")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:i,scheduleId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getWorkforcemanagementBusinessunitWeekSchedulePerformancepredictionsRecalculation(e,i,n,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitWeekSchedulePerformancepredictionsRecalculation';if(i==null||i==="")throw'Missing the required parameter "weekId" when calling getWorkforcemanagementBusinessunitWeekSchedulePerformancepredictionsRecalculation';if(n==null||n==="")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:i,scheduleId:n,recalculationId:a},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}getWorkforcemanagementBusinessunitWeekSchedules(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitWeekSchedules';if(i==null||i==="")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:i},{includeOnlyPublished:n.includeOnlyPublished,expand:n.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementBusinessunitWeekShorttermforecast(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitWeekShorttermforecast';if(i==null)throw'Missing the required parameter "weekDateId" when calling getWorkforcemanagementBusinessunitWeekShorttermforecast';if(n==null||n==="")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:i,forecastId:n},{expand:this.apiClient.buildCollectionParam(a.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getWorkforcemanagementBusinessunitWeekShorttermforecastData(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitWeekShorttermforecastData';if(i==null)throw'Missing the required parameter "weekDateId" when calling getWorkforcemanagementBusinessunitWeekShorttermforecastData';if(n==null||n==="")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:i,forecastId:n},{weekNumber:a.weekNumber,forceDownloadService:a.forceDownloadService},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getWorkforcemanagementBusinessunitWeekShorttermforecastGenerationresults(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitWeekShorttermforecastGenerationresults';if(i==null)throw'Missing the required parameter "weekDateId" when calling getWorkforcemanagementBusinessunitWeekShorttermforecastGenerationresults';if(n==null||n==="")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:i,forecastId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getWorkforcemanagementBusinessunitWeekShorttermforecastLongtermforecastdata(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitWeekShorttermforecastLongtermforecastdata';if(i==null)throw'Missing the required parameter "weekDateId" when calling getWorkforcemanagementBusinessunitWeekShorttermforecastLongtermforecastdata';if(n==null||n==="")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:i,forecastId:n},{forceDownloadService:a.forceDownloadService},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getWorkforcemanagementBusinessunitWeekShorttermforecastPlanninggroups(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitWeekShorttermforecastPlanninggroups';if(i==null)throw'Missing the required parameter "weekDateId" when calling getWorkforcemanagementBusinessunitWeekShorttermforecastPlanninggroups';if(n==null||n==="")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:i,forecastId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getWorkforcemanagementBusinessunitWeekShorttermforecastStaffingrequirement(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitWeekShorttermforecastStaffingrequirement';if(i==null)throw'Missing the required parameter "weekDateId" when calling getWorkforcemanagementBusinessunitWeekShorttermforecastStaffingrequirement';if(n==null||n==="")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:i,forecastId:n},{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,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitWeekShorttermforecasts';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementBusinessunitWorkplanbid(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitWorkplanbid';if(i==null||i==="")throw'Missing the required parameter "bidId" when calling getWorkforcemanagementBusinessunitWorkplanbid';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/workplanbids/{bidId}","GET",{businessUnitId:e,bidId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementBusinessunitWorkplanbidGroup(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitWorkplanbidGroup';if(i==null||i==="")throw'Missing the required parameter "bidId" when calling getWorkforcemanagementBusinessunitWorkplanbidGroup';if(n==null||n==="")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:i,bidGroupId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getWorkforcemanagementBusinessunitWorkplanbidGroupPreferences(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitWorkplanbidGroupPreferences';if(i==null||i==="")throw'Missing the required parameter "bidId" when calling getWorkforcemanagementBusinessunitWorkplanbidGroupPreferences';if(n==null||n==="")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:i,bidGroupId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getWorkforcemanagementBusinessunitWorkplanbidGroupsSummary(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitWorkplanbidGroupsSummary';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementBusinessunitWorkplanbids(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getWorkforcemanagementManagementunit(e,i){if(i=i||{},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(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getWorkforcemanagementManagementunitActivitycodes(e,i){if(i=i||{},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"],i.customHeaders)}getWorkforcemanagementManagementunitAdherence(e,i){if(i=i||{},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:i.forceDownloadService},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getWorkforcemanagementManagementunitAgent(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling getWorkforcemanagementManagementunitAgent';if(i==null||i==="")throw'Missing the required parameter "agentId" when calling getWorkforcemanagementManagementunitAgent';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/agents/{agentId}","GET",{managementUnitId:e,agentId:i},{excludeCapabilities:n.excludeCapabilities,expand:this.apiClient.buildCollectionParam(n.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementManagementunitAgentShifttrades(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling getWorkforcemanagementManagementunitAgentShifttrades';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementManagementunitShifttradesMatched(e,i){if(i=i||{},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"],i.customHeaders)}getWorkforcemanagementManagementunitShifttradesUsers(e,i){if(i=i||{},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"],i.customHeaders)}getWorkforcemanagementManagementunitTimeofflimit(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling getWorkforcemanagementManagementunitTimeofflimit';if(i==null||i==="")throw'Missing the required parameter "timeOffLimitId" when calling getWorkforcemanagementManagementunitTimeofflimit';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/timeofflimits/{timeOffLimitId}","GET",{managementUnitId:e,timeOffLimitId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementManagementunitTimeofflimits(e,i){if(i=i||{},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"],i.customHeaders)}getWorkforcemanagementManagementunitTimeoffplan(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling getWorkforcemanagementManagementunitTimeoffplan';if(i==null||i==="")throw'Missing the required parameter "timeOffPlanId" when calling getWorkforcemanagementManagementunitTimeoffplan';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/timeoffplans/{timeOffPlanId}","GET",{managementUnitId:e,timeOffPlanId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementManagementunitTimeoffplans(e,i){if(i=i||{},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"],i.customHeaders)}getWorkforcemanagementManagementunitUserTimeoffrequest(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling getWorkforcemanagementManagementunitUserTimeoffrequest';if(i==null||i==="")throw'Missing the required parameter "userId" when calling getWorkforcemanagementManagementunitUserTimeoffrequest';if(n==null||n==="")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:i,timeOffRequestId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getWorkforcemanagementManagementunitUserTimeoffrequestTimeofflimits(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling getWorkforcemanagementManagementunitUserTimeoffrequestTimeofflimits';if(i==null||i==="")throw'Missing the required parameter "userId" when calling getWorkforcemanagementManagementunitUserTimeoffrequestTimeofflimits';if(n==null||n==="")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:i,timeOffRequestId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getWorkforcemanagementManagementunitUserTimeoffrequests(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling getWorkforcemanagementManagementunitUserTimeoffrequests';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementManagementunitUsers(e,i){if(i=i||{},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"],i.customHeaders)}getWorkforcemanagementManagementunitWeekSchedule(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling getWorkforcemanagementManagementunitWeekSchedule';if(i==null||i==="")throw'Missing the required parameter "weekId" when calling getWorkforcemanagementManagementunitWeekSchedule';if(n==null||n==="")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:i,scheduleId:n},{expand:a.expand,forceDownloadService:a.forceDownloadService},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getWorkforcemanagementManagementunitWeekSchedules(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling getWorkforcemanagementManagementunitWeekSchedules';if(i==null||i==="")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:i},{includeOnlyPublished:n.includeOnlyPublished,earliestWeekDate:n.earliestWeekDate,latestWeekDate:n.latestWeekDate},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementManagementunitWeekShifttrades(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling getWorkforcemanagementManagementunitWeekShifttrades';if(i==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:i},{evaluateMatches:n.evaluateMatches,includeCrossWeekShifts:n.includeCrossWeekShifts,forceDownloadService:n.forceDownloadService},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementManagementunitWorkplan(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling getWorkforcemanagementManagementunitWorkplan';if(i==null||i==="")throw'Missing the required parameter "workPlanId" when calling getWorkforcemanagementManagementunitWorkplan';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/workplans/{workPlanId}","GET",{managementUnitId:e,workPlanId:i},{includeOnly:this.apiClient.buildCollectionParam(n.includeOnly,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementManagementunitWorkplanrotation(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling getWorkforcemanagementManagementunitWorkplanrotation';if(i==null||i==="")throw'Missing the required parameter "workPlanRotationId" when calling getWorkforcemanagementManagementunitWorkplanrotation';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/workplanrotations/{workPlanRotationId}","GET",{managementUnitId:e,workPlanRotationId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementManagementunitWorkplanrotations(e,i){if(i=i||{},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(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getWorkforcemanagementManagementunitWorkplans(e,i){if(i=i||{},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(i.expand,"multi"),exclude:this.apiClient.buildCollectionParam(i.exclude,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getWorkforcemanagementManagementunits(e){return e=e||{},this.apiClient.callApi("/api/v2/workforcemanagement/managementunits","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,expand:e.expand,feature:e.feature,divisionId:e.divisionId},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getWorkforcemanagementManagementunitsDivisionviews(e){return e=e||{},this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/divisionviews","GET",{},{divisionId:this.apiClient.buildCollectionParam(e.divisionId,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getWorkforcemanagementNotifications(e){return e=e||{},this.apiClient.callApi("/api/v2/workforcemanagement/notifications","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getWorkforcemanagementSchedulingjob(e,i){if(i=i||{},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"],i.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,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "tradeId" when calling getWorkforcemanagementShifttradingTradeJob';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementShifttradingTradeMatchJob(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "tradeId" when calling getWorkforcemanagementShifttradingTradeMatchJob';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementShifttradingTradeStateJob(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "tradeId" when calling getWorkforcemanagementShifttradingTradeStateJob';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementShifttradingTradesJob(e,i){if(i=i||{},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"],i.customHeaders)}getWorkforcemanagementShifttradingTradesMineQueryJob(e,i){if(i=i||{},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"],i.customHeaders)}getWorkforcemanagementShrinkageJob(e,i){if(i=i||{},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"],i.customHeaders)}getWorkforcemanagementTeamAdherence(e,i){if(i=i||{},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"],i.customHeaders)}getWorkforcemanagementTimeoffbalanceJob(e,i){if(i=i||{},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"],i.customHeaders)}getWorkforcemanagementTimeoffrequest(e,i){if(i=i||{},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"],i.customHeaders)}getWorkforcemanagementTimeoffrequestWaitlistpositions(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getWorkforcemanagementUserWorkplanbidranks(e,i){if(i=i||{},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"],i.customHeaders)}getWorkforcemanagementWorkplanbidPreferences(e,i){if(i=i||{},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"],i.customHeaders)}getWorkforcemanagementWorkplanbidWorkplans(e,i){if(i=i||{},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"],i.customHeaders)}getWorkforcemanagementWorkplanbids(e){return e=e||{},this.apiClient.callApi("/api/v2/workforcemanagement/workplanbids","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}patchWorkforcemanagementAgentAdherenceExplanation(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "agentId" when calling patchWorkforcemanagementAgentAdherenceExplanation';if(i==null||i==="")throw'Missing the required parameter "explanationId" when calling patchWorkforcemanagementAgentAdherenceExplanation';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchWorkforcemanagementAlternativeshiftsTrade(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "tradeId" when calling patchWorkforcemanagementAlternativeshiftsTrade';if(i==null)throw'Missing the required parameter "body" when calling patchWorkforcemanagementAlternativeshiftsTrade';return this.apiClient.callApi("/api/v2/workforcemanagement/alternativeshifts/trades/{tradeId}","PATCH",{tradeId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchWorkforcemanagementAlternativeshiftsTradesStateJobs(e,i){if(i=i||{},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"],i.customHeaders)}patchWorkforcemanagementBusinessunit(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling patchWorkforcemanagementBusinessunit';if(i==null)throw'Missing the required parameter "body" when calling patchWorkforcemanagementBusinessunit';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}","PATCH",{businessUnitId:e},{includeSchedulingDefaultMessageSeverities:n.includeSchedulingDefaultMessageSeverities},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchWorkforcemanagementBusinessunitActivitycode(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling patchWorkforcemanagementBusinessunitActivitycode';if(i==null||i==="")throw'Missing the required parameter "activityCodeId" when calling patchWorkforcemanagementBusinessunitActivitycode';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchWorkforcemanagementBusinessunitActivityplan(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling patchWorkforcemanagementBusinessunitActivityplan';if(i==null||i==="")throw'Missing the required parameter "activityPlanId" when calling patchWorkforcemanagementBusinessunitActivityplan';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchWorkforcemanagementBusinessunitAlternativeshiftsSettings(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling patchWorkforcemanagementBusinessunitAlternativeshiftsSettings';if(i==null)throw'Missing the required parameter "body" when calling patchWorkforcemanagementBusinessunitAlternativeshiftsSettings';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/alternativeshifts/settings","PATCH",{businessUnitId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchWorkforcemanagementBusinessunitCapacityplan(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling patchWorkforcemanagementBusinessunitCapacityplan';if(i==null||i==="")throw'Missing the required parameter "capacityPlanId" when calling patchWorkforcemanagementBusinessunitCapacityplan';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchWorkforcemanagementBusinessunitMinimumstaffingSettings(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling patchWorkforcemanagementBusinessunitMinimumstaffingSettings';if(i==null)throw'Missing the required parameter "body" when calling patchWorkforcemanagementBusinessunitMinimumstaffingSettings';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/minimumstaffing/settings","PATCH",{businessUnitId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchWorkforcemanagementBusinessunitPlanninggroup(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling patchWorkforcemanagementBusinessunitPlanninggroup';if(i==null||i==="")throw'Missing the required parameter "planningGroupId" when calling patchWorkforcemanagementBusinessunitPlanninggroup';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchWorkforcemanagementBusinessunitSchedulerSettings(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling patchWorkforcemanagementBusinessunitSchedulerSettings';if(i==null)throw'Missing the required parameter "body" when calling patchWorkforcemanagementBusinessunitSchedulerSettings';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/scheduler/settings","PATCH",{businessUnitId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchWorkforcemanagementBusinessunitSchedulingRun(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling patchWorkforcemanagementBusinessunitSchedulingRun';if(i==null||i==="")throw'Missing the required parameter "runId" when calling patchWorkforcemanagementBusinessunitSchedulingRun';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchWorkforcemanagementBusinessunitServicegoaltemplate(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling patchWorkforcemanagementBusinessunitServicegoaltemplate';if(i==null||i==="")throw'Missing the required parameter "serviceGoalTemplateId" when calling patchWorkforcemanagementBusinessunitServicegoaltemplate';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchWorkforcemanagementBusinessunitStaffinggroup(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling patchWorkforcemanagementBusinessunitStaffinggroup';if(i==null||i==="")throw'Missing the required parameter "staffingGroupId" when calling patchWorkforcemanagementBusinessunitStaffinggroup';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchWorkforcemanagementBusinessunitTimeoffplan(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling patchWorkforcemanagementBusinessunitTimeoffplan';if(i==null||i==="")throw'Missing the required parameter "timeOffPlanId" when calling patchWorkforcemanagementBusinessunitTimeoffplan';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchWorkforcemanagementBusinessunitWorkplanbid(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling patchWorkforcemanagementBusinessunitWorkplanbid';if(i==null||i==="")throw'Missing the required parameter "bidId" when calling patchWorkforcemanagementBusinessunitWorkplanbid';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchWorkforcemanagementBusinessunitWorkplanbidGroup(e,i,n,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling patchWorkforcemanagementBusinessunitWorkplanbidGroup';if(i==null||i==="")throw'Missing the required parameter "bidId" when calling patchWorkforcemanagementBusinessunitWorkplanbidGroup';if(n==null||n==="")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:i,bidGroupId:n},{},{},{},a,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}patchWorkforcemanagementBusinessunitWorkplanbidGroupPreferences(e,i,n,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling patchWorkforcemanagementBusinessunitWorkplanbidGroupPreferences';if(i==null||i==="")throw'Missing the required parameter "bidId" when calling patchWorkforcemanagementBusinessunitWorkplanbidGroupPreferences';if(n==null||n==="")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:i,bidGroupId:n},{},{},{},a,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}patchWorkforcemanagementManagementunit(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling patchWorkforcemanagementManagementunit';if(i==null)throw'Missing the required parameter "body" when calling patchWorkforcemanagementManagementunit';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}","PATCH",{managementUnitId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchWorkforcemanagementManagementunitAgents(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling patchWorkforcemanagementManagementunitAgents';if(i==null)throw'Missing the required parameter "body" when calling patchWorkforcemanagementManagementunitAgents';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/agents","PATCH",{managementUnitId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchWorkforcemanagementManagementunitAgentsWorkplansBulk(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling patchWorkforcemanagementManagementunitAgentsWorkplansBulk';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchWorkforcemanagementManagementunitTimeofflimit(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling patchWorkforcemanagementManagementunitTimeofflimit';if(i==null||i==="")throw'Missing the required parameter "timeOffLimitId" when calling patchWorkforcemanagementManagementunitTimeofflimit';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchWorkforcemanagementManagementunitTimeoffplan(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling patchWorkforcemanagementManagementunitTimeoffplan';if(i==null||i==="")throw'Missing the required parameter "timeOffPlanId" when calling patchWorkforcemanagementManagementunitTimeoffplan';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchWorkforcemanagementManagementunitTimeoffrequestUserIntegrationstatus(e,i,n,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling patchWorkforcemanagementManagementunitTimeoffrequestUserIntegrationstatus';if(i==null||i==="")throw'Missing the required parameter "timeOffRequestId" when calling patchWorkforcemanagementManagementunitTimeoffrequestUserIntegrationstatus';if(n==null||n==="")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:i,userId:n},{},{},{},a,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}patchWorkforcemanagementManagementunitUnavailabletimesSettings(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling patchWorkforcemanagementManagementunitUnavailabletimesSettings';if(i==null)throw'Missing the required parameter "body" when calling patchWorkforcemanagementManagementunitUnavailabletimesSettings';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/unavailabletimes/settings","PATCH",{managementUnitId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchWorkforcemanagementManagementunitUserTimeoffrequest(e,i,n,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling patchWorkforcemanagementManagementunitUserTimeoffrequest';if(i==null||i==="")throw'Missing the required parameter "userId" when calling patchWorkforcemanagementManagementunitUserTimeoffrequest';if(n==null||n==="")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:i,timeOffRequestId:n},{},{},{},a,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}patchWorkforcemanagementManagementunitWeekShifttrade(e,i,n,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling patchWorkforcemanagementManagementunitWeekShifttrade';if(i==null)throw'Missing the required parameter "weekDateId" when calling patchWorkforcemanagementManagementunitWeekShifttrade';if(n==null||n==="")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:i,tradeId:n},{},{},{},a,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}patchWorkforcemanagementManagementunitWorkplan(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling patchWorkforcemanagementManagementunitWorkplan';if(i==null||i==="")throw'Missing the required parameter "workPlanId" when calling patchWorkforcemanagementManagementunitWorkplan';if(n==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:i},{validationMode:a.validationMode},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchWorkforcemanagementManagementunitWorkplanrotation(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling patchWorkforcemanagementManagementunitWorkplanrotation';if(i==null||i==="")throw'Missing the required parameter "workPlanRotationId" when calling patchWorkforcemanagementManagementunitWorkplanrotation';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchWorkforcemanagementTimeoffrequest(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "timeOffRequestId" when calling patchWorkforcemanagementTimeoffrequest';if(i==null)throw'Missing the required parameter "body" when calling patchWorkforcemanagementTimeoffrequest';return this.apiClient.callApi("/api/v2/workforcemanagement/timeoffrequests/{timeOffRequestId}","PATCH",{timeOffRequestId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchWorkforcemanagementUnavailabletimes(e,i){if(i=i||{},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"],i.customHeaders)}patchWorkforcemanagementUserWorkplanbidranks(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling patchWorkforcemanagementUserWorkplanbidranks';if(i==null)throw'Missing the required parameter "body" when calling patchWorkforcemanagementUserWorkplanbidranks';return this.apiClient.callApi("/api/v2/workforcemanagement/users/{userId}/workplanbidranks","PATCH",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchWorkforcemanagementUsersWorkplanbidranksBulk(e,i){if(i=i||{},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"],i.customHeaders)}patchWorkforcemanagementWorkplanbidPreferences(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "bidId" when calling patchWorkforcemanagementWorkplanbidPreferences';if(i==null)throw'Missing the required parameter "body" when calling patchWorkforcemanagementWorkplanbidPreferences';return this.apiClient.callApi("/api/v2/workforcemanagement/workplanbids/{bidId}/preferences","PATCH",{bidId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementAdherenceExplanations(e,i){if(i=i||{},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"],i.customHeaders)}postWorkforcemanagementAdherenceExplanationsQuery(e,i){if(i=i||{},e==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementAdherenceExplanationsQuery';return this.apiClient.callApi("/api/v2/workforcemanagement/adherence/explanations/query","POST",{},{forceAsync:i.forceAsync,forceDownloadService:i.forceDownloadService},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postWorkforcemanagementAdherenceHistorical(e){return e=e||{},this.apiClient.callApi("/api/v2/workforcemanagement/adherence/historical","POST",{},{},{},{},e.body,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}postWorkforcemanagementAdherenceHistoricalBulk(e,i){if(i=i||{},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"],i.customHeaders)}postWorkforcemanagementAgentAdherenceExplanations(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "agentId" when calling postWorkforcemanagementAgentAdherenceExplanations';if(i==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementAgentAdherenceExplanations';return this.apiClient.callApi("/api/v2/workforcemanagement/agents/{agentId}/adherence/explanations","POST",{agentId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementAgentAdherenceExplanationsQuery(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "agentId" when calling postWorkforcemanagementAgentAdherenceExplanationsQuery';if(i==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:n.forceAsync,forceDownloadService:n.forceDownloadService},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementAgentUnavailabletimesQuery(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "agentId" when calling postWorkforcemanagementAgentUnavailabletimesQuery';if(i==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementAgentUnavailabletimesQuery';return this.apiClient.callApi("/api/v2/workforcemanagement/agents/{agentId}/unavailabletimes/query","POST",{agentId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementAgents(e,i){if(i=i||{},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"],i.customHeaders)}postWorkforcemanagementAgentsIntegrationsHrisQuery(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}postWorkforcemanagementAgentschedulesManagementunitsMine(e,i){if(i=i||{},e==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementAgentschedulesManagementunitsMine';return this.apiClient.callApi("/api/v2/workforcemanagement/agentschedules/managementunits/mine","POST",{},{forceAsync:i.forceAsync,forceDownloadService:i.forceDownloadService},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postWorkforcemanagementAgentschedulesMine(e,i){if(i=i||{},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"],i.customHeaders)}postWorkforcemanagementAlternativeshiftsOffersJobs(e,i){if(i=i||{},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"],i.customHeaders)}postWorkforcemanagementAlternativeshiftsOffersSearchJobs(e,i){if(i=i||{},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"],i.customHeaders)}postWorkforcemanagementAlternativeshiftsTrades(e,i){if(i=i||{},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"],i.customHeaders)}postWorkforcemanagementBusinessunitActivitycodes(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitActivitycodes';if(i==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunitActivitycodes';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/activitycodes","POST",{businessUnitId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementBusinessunitActivityplanRunsJobs(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitActivityplanRunsJobs';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementBusinessunitActivityplans(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitActivityplans';if(i==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunitActivityplans';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/activityplans","POST",{businessUnitId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementBusinessunitAdherenceExplanationsQuery(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitAdherenceExplanationsQuery';if(i==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:n.forceAsync,forceDownloadService:n.forceDownloadService},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementBusinessunitAgentschedulesSearch(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitAgentschedulesSearch';if(i==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:n.forceAsync,forceDownloadService:n.forceDownloadService},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementBusinessunitAlternativeshiftsTradesSearch(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitAlternativeshiftsTradesSearch';if(i==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:n.forceAsync},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementBusinessunitCapacityplanCopy(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitCapacityplanCopy';if(i==null||i==="")throw'Missing the required parameter "capacityPlanId" when calling postWorkforcemanagementBusinessunitCapacityplanCopy';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postWorkforcemanagementBusinessunitCapacityplanRequirementGenerate(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitCapacityplanRequirementGenerate';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementBusinessunitCapacityplanStaffinggroupallocations(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitCapacityplanStaffinggroupallocations';if(i==null||i==="")throw'Missing the required parameter "capacityPlanId" when calling postWorkforcemanagementBusinessunitCapacityplanStaffinggroupallocations';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postWorkforcemanagementBusinessunitCapacityplanStaffinggroupallocationshistoryQuery(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitCapacityplanStaffinggroupallocationshistoryQuery';if(i==null||i==="")throw'Missing the required parameter "capacityPlanId" when calling postWorkforcemanagementBusinessunitCapacityplanStaffinggroupallocationshistoryQuery';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postWorkforcemanagementBusinessunitCapacityplanningLongtermrequirementsAutomaticbestmethodWeekForecastForceregenerate(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitCapacityplanningLongtermrequirementsAutomaticbestmethodWeekForecastForceregenerate';if(i==null)throw'Missing the required parameter "weekDateId" when calling postWorkforcemanagementBusinessunitCapacityplanningLongtermrequirementsAutomaticbestmethodWeekForecastForceregenerate';if(n==null||n==="")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:i,forecastId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postWorkforcemanagementBusinessunitCapacityplans(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitCapacityplans';if(i==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunitCapacityplans';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/capacityplans","POST",{businessUnitId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementBusinessunitCapacityplansBulkRemove(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitCapacityplansBulkRemove';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementBusinessunitIntraday(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitIntraday';if(i==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunitIntraday';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/intraday","POST",{businessUnitId:e},{forceAsync:n.forceAsync},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementBusinessunitPlanninggroups(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitPlanninggroups';if(i==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunitPlanninggroups';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/planninggroups","POST",{businessUnitId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementBusinessunitServicegoaltemplates(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitServicegoaltemplates';if(i==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunitServicegoaltemplates';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/servicegoaltemplates","POST",{businessUnitId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementBusinessunitShifttradingTradesEvaluateJobs(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitShifttradingTradesEvaluateJobs';if(i==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:n.forceAsync,forceDownloadService:n.forceDownloadService},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementBusinessunitShifttradingTradesQueryJobs(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitShifttradingTradesQueryJobs';if(i==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:n.forceAsync,forceDownloadService:n.forceDownloadService},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementBusinessunitShifttradingTradesStateBulkJobs(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitShifttradingTradesStateBulkJobs';if(i==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:n.forceAsync,forceDownloadService:n.forceDownloadService},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementBusinessunitShifttradingUnmatchedSearchJobs(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitShifttradingUnmatchedSearchJobs';if(i==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:n.forceAsync,forceDownloadService:n.forceDownloadService},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementBusinessunitShifttradingWeeksSummaryJobs(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitShifttradingWeeksSummaryJobs';if(i==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:n.forceAsync},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementBusinessunitStaffinggroups(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitStaffinggroups';if(i==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunitStaffinggroups';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/staffinggroups","POST",{businessUnitId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementBusinessunitStaffinggroupsPlanninggroupsQuery(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitStaffinggroupsPlanninggroupsQuery';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementBusinessunitStaffinggroupsQuery(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitStaffinggroupsQuery';if(i==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:n.forceDownloadService},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementBusinessunitTimeofflimits(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitTimeofflimits';if(i==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunitTimeofflimits';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/timeofflimits","POST",{businessUnitId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementBusinessunitTimeofflimitsValuesQuery(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitTimeofflimitsValuesQuery';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementBusinessunitTimeoffplans(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitTimeoffplans';if(i==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunitTimeoffplans';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/timeoffplans","POST",{businessUnitId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementBusinessunitUnavailabletimesSchedulesQuery(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitUnavailabletimesSchedulesQuery';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementBusinessunitUnavailabletimesSettingsQuery(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitUnavailabletimesSettingsQuery';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementBusinessunitWeekScheduleAgentschedulesQuery(e,i,n,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitWeekScheduleAgentschedulesQuery';if(i==null)throw'Missing the required parameter "weekId" when calling postWorkforcemanagementBusinessunitWeekScheduleAgentschedulesQuery';if(n==null||n==="")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:i,scheduleId:n},{forceAsync:r.forceAsync,forceDownloadService:r.forceDownloadService},{},{},a,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}postWorkforcemanagementBusinessunitWeekScheduleCopy(e,i,n,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitWeekScheduleCopy';if(i==null)throw'Missing the required parameter "weekId" when calling postWorkforcemanagementBusinessunitWeekScheduleCopy';if(n==null||n==="")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:i,scheduleId:n},{},{},{},a,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}postWorkforcemanagementBusinessunitWeekSchedulePerformancepredictionsRecalculations(e,i,n,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitWeekSchedulePerformancepredictionsRecalculations';if(i==null||i==="")throw'Missing the required parameter "weekId" when calling postWorkforcemanagementBusinessunitWeekSchedulePerformancepredictionsRecalculations';if(n==null||n==="")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:i,scheduleId:n},{},{},{},a,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}postWorkforcemanagementBusinessunitWeekSchedulePerformancepredictionsRecalculationsUploadurl(e,i,n,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitWeekSchedulePerformancepredictionsRecalculationsUploadurl';if(i==null||i==="")throw'Missing the required parameter "weekId" when calling postWorkforcemanagementBusinessunitWeekSchedulePerformancepredictionsRecalculationsUploadurl';if(n==null||n==="")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:i,scheduleId:n},{},{},{},a,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}postWorkforcemanagementBusinessunitWeekScheduleReschedule(e,i,n,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitWeekScheduleReschedule';if(i==null)throw'Missing the required parameter "weekId" when calling postWorkforcemanagementBusinessunitWeekScheduleReschedule';if(n==null||n==="")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:i,scheduleId:n},{},{},{},a,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}postWorkforcemanagementBusinessunitWeekScheduleUpdate(e,i,n,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitWeekScheduleUpdate';if(i==null)throw'Missing the required parameter "weekId" when calling postWorkforcemanagementBusinessunitWeekScheduleUpdate';if(n==null||n==="")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:i,scheduleId:n},{},{},{},a,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}postWorkforcemanagementBusinessunitWeekScheduleUpdateUploadurl(e,i,n,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitWeekScheduleUpdateUploadurl';if(i==null)throw'Missing the required parameter "weekId" when calling postWorkforcemanagementBusinessunitWeekScheduleUpdateUploadurl';if(n==null||n==="")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:i,scheduleId:n},{},{},{},a,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}postWorkforcemanagementBusinessunitWeekSchedules(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitWeekSchedules';if(i==null)throw'Missing the required parameter "weekId" when calling postWorkforcemanagementBusinessunitWeekSchedules';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postWorkforcemanagementBusinessunitWeekSchedulesGenerate(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitWeekSchedulesGenerate';if(i==null)throw'Missing the required parameter "weekId" when calling postWorkforcemanagementBusinessunitWeekSchedulesGenerate';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postWorkforcemanagementBusinessunitWeekSchedulesImport(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitWeekSchedulesImport';if(i==null)throw'Missing the required parameter "weekId" when calling postWorkforcemanagementBusinessunitWeekSchedulesImport';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postWorkforcemanagementBusinessunitWeekSchedulesImportUploadurl(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitWeekSchedulesImportUploadurl';if(i==null)throw'Missing the required parameter "weekId" when calling postWorkforcemanagementBusinessunitWeekSchedulesImportUploadurl';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postWorkforcemanagementBusinessunitWeekShorttermforecastCopy(e,i,n,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitWeekShorttermforecastCopy';if(i==null)throw'Missing the required parameter "weekDateId" when calling postWorkforcemanagementBusinessunitWeekShorttermforecastCopy';if(n==null||n==="")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:i,forecastId:n},{forceAsync:r.forceAsync},{},{},a,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}postWorkforcemanagementBusinessunitWeekShorttermforecastsGenerate(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitWeekShorttermforecastsGenerate';if(i==null)throw'Missing the required parameter "weekDateId" when calling postWorkforcemanagementBusinessunitWeekShorttermforecastsGenerate';if(n==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:i},{forceAsync:a.forceAsync},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postWorkforcemanagementBusinessunitWeekShorttermforecastsImport(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitWeekShorttermforecastsImport';if(i==null)throw'Missing the required parameter "weekDateId" when calling postWorkforcemanagementBusinessunitWeekShorttermforecastsImport';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postWorkforcemanagementBusinessunitWeekShorttermforecastsImportUploadurl(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitWeekShorttermforecastsImportUploadurl';if(i==null)throw'Missing the required parameter "weekDateId" when calling postWorkforcemanagementBusinessunitWeekShorttermforecastsImportUploadurl';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postWorkforcemanagementBusinessunitWorkplanbidCopy(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitWorkplanbidCopy';if(i==null||i==="")throw'Missing the required parameter "bidId" when calling postWorkforcemanagementBusinessunitWorkplanbidCopy';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postWorkforcemanagementBusinessunitWorkplanbidGroups(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitWorkplanbidGroups';if(i==null||i==="")throw'Missing the required parameter "bidId" when calling postWorkforcemanagementBusinessunitWorkplanbidGroups';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postWorkforcemanagementBusinessunitWorkplanbids(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitWorkplanbids';if(i==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunitWorkplanbids';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/workplanbids","POST",{businessUnitId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementBusinessunits(e,i){if(i=i||{},e==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunits';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits","POST",{},{includeSchedulingDefaultMessageSeverities:i.includeSchedulingDefaultMessageSeverities},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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"],i.customHeaders)}postWorkforcemanagementHistoricaldataValidate(e,i){if(i=i||{},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"],i.customHeaders)}postWorkforcemanagementIntegrationsHriTimeofftypesJobs(e,i){if(i=i||{},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"],i.customHeaders)}postWorkforcemanagementManagementunitAgentsWorkplansQuery(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitAgentsWorkplansQuery';if(i==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:n.forceDownloadService},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementManagementunitAgentschedulesSearch(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitAgentschedulesSearch';if(i==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:n.forceAsync,forceDownloadService:n.forceDownloadService},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementManagementunitHistoricaladherencequery(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitHistoricaladherencequery';if(i==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementManagementunitHistoricaladherencequery';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/historicaladherencequery","POST",{managementUnitId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementManagementunitMove(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitMove';if(i==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementManagementunitMove';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/move","POST",{managementUnitId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementManagementunitSchedulesSearch(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitSchedulesSearch';if(i==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementManagementunitSchedulesSearch';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/schedules/search","POST",{managementUnitId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementManagementunitShrinkageJobs(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitShrinkageJobs';if(i==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementManagementunitShrinkageJobs';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/shrinkage/jobs","POST",{managementUnitId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementManagementunitTimeofflimits(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitTimeofflimits';if(i==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementManagementunitTimeofflimits';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/timeofflimits","POST",{managementUnitId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementManagementunitTimeofflimitsValuesQuery(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitTimeofflimitsValuesQuery';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementManagementunitTimeoffplans(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitTimeoffplans';if(i==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementManagementunitTimeoffplans';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/timeoffplans","POST",{managementUnitId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementManagementunitTimeoffrequests(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitTimeoffrequests';if(i==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementManagementunitTimeoffrequests';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/timeoffrequests","POST",{managementUnitId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementManagementunitTimeoffrequestsIntegrationstatusQuery(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitTimeoffrequestsIntegrationstatusQuery';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementManagementunitTimeoffrequestsQuery(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitTimeoffrequestsQuery';if(i==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:n.forceDownloadService},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementManagementunitTimeoffrequestsWaitlistpositionsQuery(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitTimeoffrequestsWaitlistpositionsQuery';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementManagementunitUserTimeoffbalanceJobs(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitUserTimeoffbalanceJobs';if(i==null||i==="")throw'Missing the required parameter "userId" when calling postWorkforcemanagementManagementunitUserTimeoffbalanceJobs';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postWorkforcemanagementManagementunitUserTimeoffrequestTimeoffbalanceJobs(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitUserTimeoffrequestTimeoffbalanceJobs';if(i==null||i==="")throw'Missing the required parameter "userId" when calling postWorkforcemanagementManagementunitUserTimeoffrequestTimeoffbalanceJobs';if(n==null||n==="")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:i,timeOffRequestId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postWorkforcemanagementManagementunitUserTimeoffrequestsEstimate(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitUserTimeoffrequestsEstimate';if(i==null||i==="")throw'Missing the required parameter "userId" when calling postWorkforcemanagementManagementunitUserTimeoffrequestsEstimate';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postWorkforcemanagementManagementunitWeekShifttradeMatch(e,i,n,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitWeekShifttradeMatch';if(i==null)throw'Missing the required parameter "weekDateId" when calling postWorkforcemanagementManagementunitWeekShifttradeMatch';if(n==null||n==="")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:i,tradeId:n},{},{},{},a,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}postWorkforcemanagementManagementunitWeekShifttrades(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitWeekShifttrades';if(i==null)throw'Missing the required parameter "weekDateId" when calling postWorkforcemanagementManagementunitWeekShifttrades';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postWorkforcemanagementManagementunitWeekShifttradesSearch(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitWeekShifttradesSearch';if(i==null)throw'Missing the required parameter "weekDateId" when calling postWorkforcemanagementManagementunitWeekShifttradesSearch';if(n==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:i},{forceDownloadService:a.forceDownloadService},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postWorkforcemanagementManagementunitWeekShifttradesStateBulk(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitWeekShifttradesStateBulk';if(i==null)throw'Missing the required parameter "weekDateId" when calling postWorkforcemanagementManagementunitWeekShifttradesStateBulk';if(n==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:i},{forceAsync:a.forceAsync},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postWorkforcemanagementManagementunitWorkplanCopy(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitWorkplanCopy';if(i==null||i==="")throw'Missing the required parameter "workPlanId" when calling postWorkforcemanagementManagementunitWorkplanCopy';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postWorkforcemanagementManagementunitWorkplanValidate(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitWorkplanValidate';if(i==null||i==="")throw'Missing the required parameter "workPlanId" when calling postWorkforcemanagementManagementunitWorkplanValidate';if(n==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:i},{expand:this.apiClient.buildCollectionParam(a.expand,"multi")},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postWorkforcemanagementManagementunitWorkplanrotationCopy(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitWorkplanrotationCopy';if(i==null||i==="")throw'Missing the required parameter "workPlanRotationId" when calling postWorkforcemanagementManagementunitWorkplanrotationCopy';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postWorkforcemanagementManagementunitWorkplanrotations(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitWorkplanrotations';if(i==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementManagementunitWorkplanrotations';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/workplanrotations","POST",{managementUnitId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementManagementunitWorkplans(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitWorkplans';if(i==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementManagementunitWorkplans';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/workplans","POST",{managementUnitId:e},{validationMode:n.validationMode},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementManagementunits(e,i){if(i=i||{},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"],i.customHeaders)}postWorkforcemanagementNotificationsUpdate(e,i){if(i=i||{},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"],i.customHeaders)}postWorkforcemanagementSchedules(e){return e=e||{},this.apiClient.callApi("/api/v2/workforcemanagement/schedules","POST",{},{},{},{},e.body,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}postWorkforcemanagementShifttradingTradeJobs(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "tradeId" when calling postWorkforcemanagementShifttradingTradeJobs';if(i==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:n.forceAsync},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementShifttradingTradeMatchJobs(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "tradeId" when calling postWorkforcemanagementShifttradingTradeMatchJobs';if(i==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:n.forceAsync},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementShifttradingTradeStateJobs(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "tradeId" when calling postWorkforcemanagementShifttradingTradeStateJobs';if(i==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:n.forceAsync},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementShifttradingTradesJobs(e,i){if(i=i||{},e==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementShifttradingTradesJobs';return this.apiClient.callApi("/api/v2/workforcemanagement/shifttrading/trades/jobs","POST",{},{forceAsync:i.forceAsync},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postWorkforcemanagementShifttradingTradesMineQueryJobs(e,i){if(i=i||{},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:i.forceAsync,forceDownloadService:i.forceDownloadService},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postWorkforcemanagementTeamAdherenceHistorical(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "teamId" when calling postWorkforcemanagementTeamAdherenceHistorical';if(i==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementTeamAdherenceHistorical';return this.apiClient.callApi("/api/v2/workforcemanagement/teams/{teamId}/adherence/historical","POST",{teamId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementTeamShrinkageJobs(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "teamId" when calling postWorkforcemanagementTeamShrinkageJobs';if(i==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementTeamShrinkageJobs';return this.apiClient.callApi("/api/v2/workforcemanagement/teams/{teamId}/shrinkage/jobs","POST",{teamId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementTimeoffbalanceJobs(e,i){if(i=i||{},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"],i.customHeaders)}postWorkforcemanagementTimeofflimitsAvailableQuery(e,i){if(i=i||{},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"],i.customHeaders)}postWorkforcemanagementTimeoffrequests(e,i){if(i=i||{},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"],i.customHeaders)}postWorkforcemanagementTimeoffrequestsEstimate(e,i){if(i=i||{},e==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementTimeoffrequestsEstimate';return this.apiClient.callApi("/api/v2/workforcemanagement/timeoffrequests/estimate","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postWorkforcemanagementTimeoffrequestsIntegrationstatusQuery(e,i){if(i=i||{},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"],i.customHeaders)}postWorkforcemanagementUnavailabletimesQuery(e,i){if(i=i||{},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"],i.customHeaders)}postWorkforcemanagementUnavailabletimesValidationJobs(e,i){if(i=i||{},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"],i.customHeaders)}putWorkforcemanagementAgentIntegrationsHris(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "agentId" when calling putWorkforcemanagementAgentIntegrationsHris';if(i==null)throw'Missing the required parameter "body" when calling putWorkforcemanagementAgentIntegrationsHris';return this.apiClient.callApi("/api/v2/workforcemanagement/agents/{agentId}/integrations/hris","PUT",{agentId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putWorkforcemanagementBusinessunitTimeofflimitValues(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling putWorkforcemanagementBusinessunitTimeofflimitValues';if(i==null||i==="")throw'Missing the required parameter "timeOffLimitId" when calling putWorkforcemanagementBusinessunitTimeofflimitValues';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}putWorkforcemanagementManagementunitTimeofflimitValues(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling putWorkforcemanagementManagementunitTimeofflimitValues';if(i==null||i==="")throw'Missing the required parameter "timeOffLimitId" when calling putWorkforcemanagementManagementunitTimeofflimitValues';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}},ay=class{constructor(){this.ApiClient=new q,this.ApiClientClass=q,this.AIStudioApi=OA,this.AgentAssistantsApi=xA,this.AgentCopilotApi=TA,this.AgentUIApi=MA,this.AlertingApi=EA,this.AnalyticsApi=kA,this.ArchitectApi=qA,this.AssistantCopilotVariationsApi=_A,this.AuditApi=HA,this.AuthorizationApi=RA,this.BackgroundAssistantApi=IA,this.BillingApi=zA,this.BusinessRulesApi=DA,this.CarrierServicesApi=GA,this.CaseManagementApi=$A,this.ChatApi=NA,this.CoachingApi=UA,this.ContentManagementApi=LA,this.ConversationsApi=WA,this.DataExtensionsApi=BA,this.DataPrivacyApi=FA,this.DownloadsApi=VA,this.EmailsApi=JA,this.EmployeeEngagementApi=ZA,this.EventsApi=KA,this.ExternalContactsApi=QA,this.FaxApi=YA,this.FlowsApi=XA,this.GamificationApi=eb,this.GeneralDataProtectionRegulationApi=ib,this.GeolocationApi=nb,this.GreetingsApi=tb,this.GroupsApi=ab,this.IdentityProviderApi=rb,this.InfrastructureAsCodeApi=sb,this.IntegrationsApi=ob,this.IntentsApi=lb,this.JourneyApi=ub,this.KnowledgeApi=cb,this.LanguageUnderstandingApi=pb,this.LanguagesApi=db,this.LearningApi=hb,this.LicenseApi=gb,this.LocationsApi=mb,this.LogCaptureApi=fb,this.MessagingApi=wb,this.MobileDevicesApi=vb,this.NotificationsApi=Cb,this.OAuthApi=Ab,this.ObjectsApi=bb,this.OperationalEventsApi=yb,this.OrganizationApi=Pb,this.OrganizationAuthorizationApi=jb,this.OutboundApi=Sb,this.PresenceApi=Ob,this.ProcessAutomationApi=xb,this.QualityApi=Tb,this.RecordingApi=Mb,this.ResponseManagementApi=Eb,this.RoutingApi=kb,this.SCIMApi=qb,this.ScriptsApi=_b,this.SearchApi=Hb,this.SettingsApi=Rb,this.SocialMediaApi=Ib,this.SpeechTextAnalyticsApi=zb,this.StationsApi=Db,this.SuggestApi=Gb,this.TaskManagementApi=$b,this.TeamsApi=Nb,this.TelephonyApi=Ub,this.TelephonyProvidersEdgeApi=Lb,this.TextbotsApi=Wb,this.TokensApi=Bb,this.UploadsApi=Fb,this.UsageApi=Vb,this.UserRecordingsApi=Jb,this.UsersApi=Zb,this.UsersRulesApi=Kb,this.UtilitiesApi=Qb,this.VoicemailApi=Yb,this.WebChatApi=Xb,this.WebDeploymentsApi=ey,this.WebMessagingApi=iy,this.WidgetsApi=ny,this.WorkforceManagementApi=ty,this.PureCloudRegionHosts=QY,this.AbstractHttpClient=El,this.DefaultHttpClient=pd,this.HttpRequestOptions=Zt}},XY=new ay;aI.exports=XY});var Cn={};gd(Cn,{BRAND:()=>FI,DIRTY:()=>Kt,EMPTY_PATH:()=>jI,INVALID:()=>K,NEVER:()=>Mz,OK:()=>xi,ParseStatus:()=>Ci,Schema:()=>ae,ZodAny:()=>wt,ZodArray:()=>et,ZodBigInt:()=>Yt,ZodBoolean:()=>Xt,ZodBranded:()=>fs,ZodCatch:()=>ca,ZodDate:()=>ea,ZodDefault:()=>ua,ZodDiscriminatedUnion:()=>_l,ZodEffects:()=>rn,ZodEnum:()=>oa,ZodError:()=>zi,ZodFirstPartyTypeKind:()=>E,ZodFunction:()=>Rl,ZodIntersection:()=>aa,ZodIssueCode:()=>M,ZodLazy:()=>ra,ZodLiteral:()=>sa,ZodMap:()=>rr,ZodNaN:()=>or,ZodNativeEnum:()=>la,ZodNever:()=>vn,ZodNull:()=>na,ZodNullable:()=>Hn,ZodNumber:()=>Qt,ZodObject:()=>Di,ZodOptional:()=>tn,ZodParsedType:()=>z,ZodPipeline:()=>ws,ZodPromise:()=>vt,ZodReadonly:()=>pa,ZodRecord:()=>Hl,ZodSchema:()=>ae,ZodSet:()=>sr,ZodString:()=>ft,ZodSymbol:()=>tr,ZodTransformer:()=>rn,ZodTuple:()=>_n,ZodType:()=>ae,ZodUndefined:()=>ia,ZodUnion:()=>ta,ZodUnknown:()=>Xn,ZodVoid:()=>ar,addIssueToContext:()=>_,any:()=>iz,array:()=>rz,bigint:()=>KI,boolean:()=>vy,coerce:()=>Tz,custom:()=>my,date:()=>QI,datetimeRegex:()=>hy,defaultErrorMap:()=>Qn,discriminatedUnion:()=>lz,effect:()=>Az,enum:()=>wz,function:()=>gz,getErrorMap:()=>er,getParsedType:()=>qn,instanceof:()=>JI,intersection:()=>uz,isAborted:()=>kl,isAsync:()=>ir,isDirty:()=>ql,isValid:()=>mt,late:()=>VI,lazy:()=>mz,literal:()=>fz,makeIssue:()=>ms,map:()=>dz,nan:()=>ZI,nativeEnum:()=>vz,never:()=>tz,null:()=>ez,nullable:()=>yz,number:()=>wy,object:()=>vd,objectUtil:()=>md,oboolean:()=>xz,onumber:()=>Oz,optional:()=>bz,ostring:()=>Sz,pipeline:()=>jz,preprocess:()=>Pz,promise:()=>Cz,quotelessJson:()=>bI,record:()=>pz,set:()=>hz,setErrorMap:()=>PI,strictObject:()=>sz,string:()=>fy,symbol:()=>YI,transformer:()=>Az,tuple:()=>cz,undefined:()=>XI,union:()=>oz,unknown:()=>nz,util:()=>ce,void:()=>az});var ce;(function(t){t.assertEqual=a=>{};function e(a){}t.assertIs=e;function i(a){throw new Error}t.assertNever=i,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 n(a,r=" | "){return a.map(s=>typeof s=="string"?`'${s}'`:s).join(r)}t.joinValues=n,t.jsonStringifyReplacer=(a,r)=>typeof r=="bigint"?r.toString():r})(ce||(ce={}));var md;(function(t){t.mergeShapes=(e,i)=>({...e,...i})})(md||(md={}));var z=ce.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),qn=t=>{switch(typeof t){case"undefined":return z.undefined;case"string":return z.string;case"number":return Number.isNaN(t)?z.nan:z.number;case"boolean":return z.boolean;case"function":return z.function;case"bigint":return z.bigint;case"symbol":return z.symbol;case"object":return Array.isArray(t)?z.array:t===null?z.null:t.then&&typeof t.then=="function"&&t.catch&&typeof t.catch=="function"?z.promise:typeof Map<"u"&&t instanceof Map?z.map:typeof Set<"u"&&t instanceof Set?z.set:typeof Date<"u"&&t instanceof Date?z.date:z.object;default:return z.unknown}};var M=ce.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]),bI=t=>JSON.stringify(t,null,2).replace(/"([^"]+)":/g,"$1:"),zi=class t extends Error{get errors(){return this.issues}constructor(e){super(),this.issues=[],this.addIssue=n=>{this.issues=[...this.issues,n]},this.addIssues=(n=[])=>{this.issues=[...this.issues,...n]};let i=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,i):this.__proto__=i,this.name="ZodError",this.issues=e}format(e){let i=e||function(r){return r.message},n={_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)n._errors.push(i(s));else{let o=n,l=0;for(;li.message){let i=Object.create(null),n=[];for(let a of this.issues)if(a.path.length>0){let r=a.path[0];i[r]=i[r]||[],i[r].push(e(a))}else n.push(e(a));return{formErrors:n,fieldErrors:i}}get formErrors(){return this.flatten()}};zi.create=t=>new zi(t);var yI=(t,e)=>{let i;switch(t.code){case M.invalid_type:t.received===z.undefined?i="Required":i=`Expected ${t.expected}, received ${t.received}`;break;case M.invalid_literal:i=`Invalid literal value, expected ${JSON.stringify(t.expected,ce.jsonStringifyReplacer)}`;break;case M.unrecognized_keys:i=`Unrecognized key(s) in object: ${ce.joinValues(t.keys,", ")}`;break;case M.invalid_union:i="Invalid input";break;case M.invalid_union_discriminator:i=`Invalid discriminator value. Expected ${ce.joinValues(t.options)}`;break;case M.invalid_enum_value:i=`Invalid enum value. Expected ${ce.joinValues(t.options)}, received '${t.received}'`;break;case M.invalid_arguments:i="Invalid function arguments";break;case M.invalid_return_type:i="Invalid function return type";break;case M.invalid_date:i="Invalid date";break;case M.invalid_string:typeof t.validation=="object"?"includes"in t.validation?(i=`Invalid input: must include "${t.validation.includes}"`,typeof t.validation.position=="number"&&(i=`${i} at one or more positions greater than or equal to ${t.validation.position}`)):"startsWith"in t.validation?i=`Invalid input: must start with "${t.validation.startsWith}"`:"endsWith"in t.validation?i=`Invalid input: must end with "${t.validation.endsWith}"`:ce.assertNever(t.validation):t.validation!=="regex"?i=`Invalid ${t.validation}`:i="Invalid";break;case M.too_small:t.type==="array"?i=`Array must contain ${t.exact?"exactly":t.inclusive?"at least":"more than"} ${t.minimum} element(s)`:t.type==="string"?i=`String must contain ${t.exact?"exactly":t.inclusive?"at least":"over"} ${t.minimum} character(s)`:t.type==="number"?i=`Number must be ${t.exact?"exactly equal to ":t.inclusive?"greater than or equal to ":"greater than "}${t.minimum}`:t.type==="bigint"?i=`Number must be ${t.exact?"exactly equal to ":t.inclusive?"greater than or equal to ":"greater than "}${t.minimum}`:t.type==="date"?i=`Date must be ${t.exact?"exactly equal to ":t.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(t.minimum))}`:i="Invalid input";break;case M.too_big:t.type==="array"?i=`Array must contain ${t.exact?"exactly":t.inclusive?"at most":"less than"} ${t.maximum} element(s)`:t.type==="string"?i=`String must contain ${t.exact?"exactly":t.inclusive?"at most":"under"} ${t.maximum} character(s)`:t.type==="number"?i=`Number must be ${t.exact?"exactly":t.inclusive?"less than or equal to":"less than"} ${t.maximum}`:t.type==="bigint"?i=`BigInt must be ${t.exact?"exactly":t.inclusive?"less than or equal to":"less than"} ${t.maximum}`:t.type==="date"?i=`Date must be ${t.exact?"exactly":t.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(t.maximum))}`:i="Invalid input";break;case M.custom:i="Invalid input";break;case M.invalid_intersection_types:i="Intersection results could not be merged";break;case M.not_multiple_of:i=`Number must be a multiple of ${t.multipleOf}`;break;case M.not_finite:i="Number must be finite";break;default:i=e.defaultError,ce.assertNever(t)}return{message:i}},Qn=yI;var ly=Qn;function PI(t){ly=t}function er(){return ly}var ms=t=>{let{data:e,path:i,errorMaps:n,issueData:a}=t,r=[...i,...a.path||[]],s={...a,path:r};if(a.message!==void 0)return{...a,path:r,message:a.message};let o="",l=n.filter(u=>!!u).slice().reverse();for(let u of l)o=u(s,{data:e,defaultError:o}).message;return{...a,path:r,message:o}},jI=[];function _(t,e){let i=er(),n=ms({issueData:e,data:t.data,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,i,i===Qn?void 0:Qn].filter(a=>!!a)});t.common.issues.push(n)}var Ci=class t{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(e,i){let n=[];for(let a of i){if(a.status==="aborted")return K;a.status==="dirty"&&e.dirty(),n.push(a.value)}return{status:e.value,value:n}}static async mergeObjectAsync(e,i){let n=[];for(let a of i){let r=await a.key,s=await a.value;n.push({key:r,value:s})}return t.mergeObjectSync(e,n)}static mergeObjectSync(e,i){let n={};for(let a of i){let{key:r,value:s}=a;if(r.status==="aborted"||s.status==="aborted")return K;r.status==="dirty"&&e.dirty(),s.status==="dirty"&&e.dirty(),r.value!=="__proto__"&&(typeof s.value<"u"||a.alwaysSet)&&(n[r.value]=s.value)}return{status:e.value,value:n}}},K=Object.freeze({status:"aborted"}),Kt=t=>({status:"dirty",value:t}),xi=t=>({status:"valid",value:t}),kl=t=>t.status==="aborted",ql=t=>t.status==="dirty",mt=t=>t.status==="valid",ir=t=>typeof Promise<"u"&&t instanceof Promise;var U;(function(t){t.errToObj=e=>typeof e=="string"?{message:e}:e||{},t.toString=e=>typeof e=="string"?e:e?.message})(U||(U={}));var an=class{constructor(e,i,n,a){this._cachedPath=[],this.parent=e,this.data=i,this._path=n,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}},uy=(t,e)=>{if(mt(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 i=new zi(t.common.issues);return this._error=i,this._error}}};function ne(t){if(!t)return{};let{errorMap:e,invalid_type_error:i,required_error:n,description:a}=t;if(e&&(i||n))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??n??o.defaultError}:s.code!=="invalid_type"?{message:o.defaultError}:{message:l??i??o.defaultError}},description:a}}var ae=class{get description(){return this._def.description}_getType(e){return qn(e.data)}_getOrReturnCtx(e,i){return i||{common:e.parent.common,data:e.data,parsedType:qn(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new Ci,ctx:{common:e.parent.common,data:e.data,parsedType:qn(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){let i=this._parse(e);if(ir(i))throw new Error("Synchronous parse encountered promise.");return i}_parseAsync(e){let i=this._parse(e);return Promise.resolve(i)}parse(e,i){let n=this.safeParse(e,i);if(n.success)return n.data;throw n.error}safeParse(e,i){let n={common:{issues:[],async:i?.async??!1,contextualErrorMap:i?.errorMap},path:i?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:qn(e)},a=this._parseSync({data:e,path:n.path,parent:n});return uy(n,a)}"~validate"(e){let i={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:qn(e)};if(!this["~standard"].async)try{let n=this._parseSync({data:e,path:[],parent:i});return mt(n)?{value:n.value}:{issues:i.common.issues}}catch(n){n?.message?.toLowerCase()?.includes("encountered")&&(this["~standard"].async=!0),i.common={issues:[],async:!0}}return this._parseAsync({data:e,path:[],parent:i}).then(n=>mt(n)?{value:n.value}:{issues:i.common.issues})}async parseAsync(e,i){let n=await this.safeParseAsync(e,i);if(n.success)return n.data;throw n.error}async safeParseAsync(e,i){let n={common:{issues:[],contextualErrorMap:i?.errorMap,async:!0},path:i?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:qn(e)},a=this._parse({data:e,path:n.path,parent:n}),r=await(ir(a)?a:Promise.resolve(a));return uy(n,r)}refine(e,i){let n=a=>typeof i=="string"||typeof i>"u"?{message:i}:typeof i=="function"?i(a):i;return this._refinement((a,r)=>{let s=e(a),o=()=>r.addIssue({code:M.custom,...n(a)});return typeof Promise<"u"&&s instanceof Promise?s.then(l=>l?!0:(o(),!1)):s?!0:(o(),!1)})}refinement(e,i){return this._refinement((n,a)=>e(n)?!0:(a.addIssue(typeof i=="function"?i(n,a):i),!1))}_refinement(e){return new rn({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:i=>this["~validate"](i)}}optional(){return tn.create(this,this._def)}nullable(){return Hn.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return et.create(this)}promise(){return vt.create(this,this._def)}or(e){return ta.create([this,e],this._def)}and(e){return aa.create(this,e,this._def)}transform(e){return new rn({...ne(this._def),schema:this,typeName:E.ZodEffects,effect:{type:"transform",transform:e}})}default(e){let i=typeof e=="function"?e:()=>e;return new ua({...ne(this._def),innerType:this,defaultValue:i,typeName:E.ZodDefault})}brand(){return new fs({typeName:E.ZodBranded,type:this,...ne(this._def)})}catch(e){let i=typeof e=="function"?e:()=>e;return new ca({...ne(this._def),innerType:this,catchValue:i,typeName:E.ZodCatch})}describe(e){let i=this.constructor;return new i({...this._def,description:e})}pipe(e){return ws.create(this,e)}readonly(){return pa.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}},SI=/^c[^\s-]{8,}$/i,OI=/^[0-9a-z]+$/,xI=/^[0-9A-HJKMNP-TV-Z]{26}$/i,TI=/^[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,MI=/^[a-z0-9_-]{21}$/i,EI=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,kI=/^[-+]?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)?)??$/,qI=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,_I="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$",fd,HI=/^(?:(?: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])$/,RI=/^(?:(?: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])$/,II=/^(([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]))$/,zI=/^(([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])$/,DI=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,GI=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,py="((\\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])))",$I=new RegExp(`^${py}$`);function dy(t){let e="[0-5]\\d";t.precision?e=`${e}\\.\\d{${t.precision}}`:t.precision==null&&(e=`${e}(\\.\\d+)?`);let i=t.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${e})${i}`}function NI(t){return new RegExp(`^${dy(t)}$`)}function hy(t){let e=`${py}T${dy(t)}`,i=[];return i.push(t.local?"Z?":"Z"),t.offset&&i.push("([+-]\\d{2}:?\\d{2})"),e=`${e}(${i.join("|")})`,new RegExp(`^${e}$`)}function UI(t,e){return!!((e==="v4"||!e)&&HI.test(t)||(e==="v6"||!e)&&II.test(t))}function LI(t,e){if(!EI.test(t))return!1;try{let[i]=t.split(".");if(!i)return!1;let n=i.replace(/-/g,"+").replace(/_/g,"/").padEnd(i.length+(4-i.length%4)%4,"="),a=JSON.parse(atob(n));return!(typeof a!="object"||a===null||"typ"in a&&a?.typ!=="JWT"||!a.alg||e&&a.alg!==e)}catch{return!1}}function WI(t,e){return!!((e==="v4"||!e)&&RI.test(t)||(e==="v6"||!e)&&zI.test(t))}var ft=class t extends ae{_parse(e){if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!==z.string){let r=this._getOrReturnCtx(e);return _(r,{code:M.invalid_type,expected:z.string,received:r.parsedType}),K}let n=new Ci,a;for(let r of this._def.checks)if(r.kind==="min")e.data.lengthr.value&&(a=this._getOrReturnCtx(e,a),_(a,{code:M.too_big,maximum:r.value,type:"string",inclusive:!0,exact:!1,message:r.message}),n.dirty());else if(r.kind==="length"){let s=e.data.length>r.value,o=e.data.lengthe.test(a),{validation:i,code:M.invalid_string,...U.errToObj(n)})}_addCheck(e){return new t({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...U.errToObj(e)})}url(e){return this._addCheck({kind:"url",...U.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",...U.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...U.errToObj(e)})}nanoid(e){return this._addCheck({kind:"nanoid",...U.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...U.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",...U.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid",...U.errToObj(e)})}base64(e){return this._addCheck({kind:"base64",...U.errToObj(e)})}base64url(e){return this._addCheck({kind:"base64url",...U.errToObj(e)})}jwt(e){return this._addCheck({kind:"jwt",...U.errToObj(e)})}ip(e){return this._addCheck({kind:"ip",...U.errToObj(e)})}cidr(e){return this._addCheck({kind:"cidr",...U.errToObj(e)})}datetime(e){return typeof e=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:e}):this._addCheck({kind:"datetime",precision:typeof e?.precision>"u"?null:e?.precision,offset:e?.offset??!1,local:e?.local??!1,...U.errToObj(e?.message)})}date(e){return this._addCheck({kind:"date",message:e})}time(e){return typeof e=="string"?this._addCheck({kind:"time",precision:null,message:e}):this._addCheck({kind:"time",precision:typeof e?.precision>"u"?null:e?.precision,...U.errToObj(e?.message)})}duration(e){return this._addCheck({kind:"duration",...U.errToObj(e)})}regex(e,i){return this._addCheck({kind:"regex",regex:e,...U.errToObj(i)})}includes(e,i){return this._addCheck({kind:"includes",value:e,position:i?.position,...U.errToObj(i?.message)})}startsWith(e,i){return this._addCheck({kind:"startsWith",value:e,...U.errToObj(i)})}endsWith(e,i){return this._addCheck({kind:"endsWith",value:e,...U.errToObj(i)})}min(e,i){return this._addCheck({kind:"min",value:e,...U.errToObj(i)})}max(e,i){return this._addCheck({kind:"max",value:e,...U.errToObj(i)})}length(e,i){return this._addCheck({kind:"length",value:e,...U.errToObj(i)})}nonempty(e){return this.min(1,U.errToObj(e))}trim(){return new t({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new t({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new t({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(e=>e.kind==="datetime")}get isDate(){return!!this._def.checks.find(e=>e.kind==="date")}get isTime(){return!!this._def.checks.find(e=>e.kind==="time")}get isDuration(){return!!this._def.checks.find(e=>e.kind==="duration")}get isEmail(){return!!this._def.checks.find(e=>e.kind==="email")}get isURL(){return!!this._def.checks.find(e=>e.kind==="url")}get isEmoji(){return!!this._def.checks.find(e=>e.kind==="emoji")}get isUUID(){return!!this._def.checks.find(e=>e.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(e=>e.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(e=>e.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(e=>e.kind==="cuid2")}get isULID(){return!!this._def.checks.find(e=>e.kind==="ulid")}get isIP(){return!!this._def.checks.find(e=>e.kind==="ip")}get isCIDR(){return!!this._def.checks.find(e=>e.kind==="cidr")}get isBase64(){return!!this._def.checks.find(e=>e.kind==="base64")}get isBase64url(){return!!this._def.checks.find(e=>e.kind==="base64url")}get minLength(){let e=null;for(let i of this._def.checks)i.kind==="min"&&(e===null||i.value>e)&&(e=i.value);return e}get maxLength(){let e=null;for(let i of this._def.checks)i.kind==="max"&&(e===null||i.valuenew ft({checks:[],typeName:E.ZodString,coerce:t?.coerce??!1,...ne(t)});function BI(t,e){let i=(t.toString().split(".")[1]||"").length,n=(e.toString().split(".")[1]||"").length,a=i>n?i:n,r=Number.parseInt(t.toFixed(a).replace(".","")),s=Number.parseInt(e.toFixed(a).replace(".",""));return r%s/10**a}var Qt=class t extends ae{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){if(this._def.coerce&&(e.data=Number(e.data)),this._getType(e)!==z.number){let r=this._getOrReturnCtx(e);return _(r,{code:M.invalid_type,expected:z.number,received:r.parsedType}),K}let n,a=new Ci;for(let r of this._def.checks)r.kind==="int"?ce.isInteger(e.data)||(n=this._getOrReturnCtx(e,n),_(n,{code:M.invalid_type,expected:"integer",received:"float",message:r.message}),a.dirty()):r.kind==="min"?(r.inclusive?e.datar.value:e.data>=r.value)&&(n=this._getOrReturnCtx(e,n),_(n,{code:M.too_big,maximum:r.value,type:"number",inclusive:r.inclusive,exact:!1,message:r.message}),a.dirty()):r.kind==="multipleOf"?BI(e.data,r.value)!==0&&(n=this._getOrReturnCtx(e,n),_(n,{code:M.not_multiple_of,multipleOf:r.value,message:r.message}),a.dirty()):r.kind==="finite"?Number.isFinite(e.data)||(n=this._getOrReturnCtx(e,n),_(n,{code:M.not_finite,message:r.message}),a.dirty()):ce.assertNever(r);return{status:a.value,value:e.data}}gte(e,i){return this.setLimit("min",e,!0,U.toString(i))}gt(e,i){return this.setLimit("min",e,!1,U.toString(i))}lte(e,i){return this.setLimit("max",e,!0,U.toString(i))}lt(e,i){return this.setLimit("max",e,!1,U.toString(i))}setLimit(e,i,n,a){return new t({...this._def,checks:[...this._def.checks,{kind:e,value:i,inclusive:n,message:U.toString(a)}]})}_addCheck(e){return new t({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:U.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:U.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:U.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:U.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:U.toString(e)})}multipleOf(e,i){return this._addCheck({kind:"multipleOf",value:e,message:U.toString(i)})}finite(e){return this._addCheck({kind:"finite",message:U.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:U.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:U.toString(e)})}get minValue(){let e=null;for(let i of this._def.checks)i.kind==="min"&&(e===null||i.value>e)&&(e=i.value);return e}get maxValue(){let e=null;for(let i of this._def.checks)i.kind==="max"&&(e===null||i.valuee.kind==="int"||e.kind==="multipleOf"&&ce.isInteger(e.value))}get isFinite(){let e=null,i=null;for(let n of this._def.checks){if(n.kind==="finite"||n.kind==="int"||n.kind==="multipleOf")return!0;n.kind==="min"?(i===null||n.value>i)&&(i=n.value):n.kind==="max"&&(e===null||n.valuenew Qt({checks:[],typeName:E.ZodNumber,coerce:t?.coerce||!1,...ne(t)});var Yt=class t extends ae{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){if(this._def.coerce)try{e.data=BigInt(e.data)}catch{return this._getInvalidInput(e)}if(this._getType(e)!==z.bigint)return this._getInvalidInput(e);let n,a=new Ci;for(let r of this._def.checks)r.kind==="min"?(r.inclusive?e.datar.value:e.data>=r.value)&&(n=this._getOrReturnCtx(e,n),_(n,{code:M.too_big,type:"bigint",maximum:r.value,inclusive:r.inclusive,message:r.message}),a.dirty()):r.kind==="multipleOf"?e.data%r.value!==BigInt(0)&&(n=this._getOrReturnCtx(e,n),_(n,{code:M.not_multiple_of,multipleOf:r.value,message:r.message}),a.dirty()):ce.assertNever(r);return{status:a.value,value:e.data}}_getInvalidInput(e){let i=this._getOrReturnCtx(e);return _(i,{code:M.invalid_type,expected:z.bigint,received:i.parsedType}),K}gte(e,i){return this.setLimit("min",e,!0,U.toString(i))}gt(e,i){return this.setLimit("min",e,!1,U.toString(i))}lte(e,i){return this.setLimit("max",e,!0,U.toString(i))}lt(e,i){return this.setLimit("max",e,!1,U.toString(i))}setLimit(e,i,n,a){return new t({...this._def,checks:[...this._def.checks,{kind:e,value:i,inclusive:n,message:U.toString(a)}]})}_addCheck(e){return new t({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:U.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:U.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:U.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:U.toString(e)})}multipleOf(e,i){return this._addCheck({kind:"multipleOf",value:e,message:U.toString(i)})}get minValue(){let e=null;for(let i of this._def.checks)i.kind==="min"&&(e===null||i.value>e)&&(e=i.value);return e}get maxValue(){let e=null;for(let i of this._def.checks)i.kind==="max"&&(e===null||i.valuenew Yt({checks:[],typeName:E.ZodBigInt,coerce:t?.coerce??!1,...ne(t)});var Xt=class extends ae{_parse(e){if(this._def.coerce&&(e.data=!!e.data),this._getType(e)!==z.boolean){let n=this._getOrReturnCtx(e);return _(n,{code:M.invalid_type,expected:z.boolean,received:n.parsedType}),K}return xi(e.data)}};Xt.create=t=>new Xt({typeName:E.ZodBoolean,coerce:t?.coerce||!1,...ne(t)});var ea=class t extends ae{_parse(e){if(this._def.coerce&&(e.data=new Date(e.data)),this._getType(e)!==z.date){let r=this._getOrReturnCtx(e);return _(r,{code:M.invalid_type,expected:z.date,received:r.parsedType}),K}if(Number.isNaN(e.data.getTime())){let r=this._getOrReturnCtx(e);return _(r,{code:M.invalid_date}),K}let n=new Ci,a;for(let r of this._def.checks)r.kind==="min"?e.data.getTime()r.value&&(a=this._getOrReturnCtx(e,a),_(a,{code:M.too_big,message:r.message,inclusive:!0,exact:!1,maximum:r.value,type:"date"}),n.dirty()):ce.assertNever(r);return{status:n.value,value:new Date(e.data.getTime())}}_addCheck(e){return new t({...this._def,checks:[...this._def.checks,e]})}min(e,i){return this._addCheck({kind:"min",value:e.getTime(),message:U.toString(i)})}max(e,i){return this._addCheck({kind:"max",value:e.getTime(),message:U.toString(i)})}get minDate(){let e=null;for(let i of this._def.checks)i.kind==="min"&&(e===null||i.value>e)&&(e=i.value);return e!=null?new Date(e):null}get maxDate(){let e=null;for(let i of this._def.checks)i.kind==="max"&&(e===null||i.valuenew ea({checks:[],coerce:t?.coerce||!1,typeName:E.ZodDate,...ne(t)});var tr=class extends ae{_parse(e){if(this._getType(e)!==z.symbol){let n=this._getOrReturnCtx(e);return _(n,{code:M.invalid_type,expected:z.symbol,received:n.parsedType}),K}return xi(e.data)}};tr.create=t=>new tr({typeName:E.ZodSymbol,...ne(t)});var ia=class extends ae{_parse(e){if(this._getType(e)!==z.undefined){let n=this._getOrReturnCtx(e);return _(n,{code:M.invalid_type,expected:z.undefined,received:n.parsedType}),K}return xi(e.data)}};ia.create=t=>new ia({typeName:E.ZodUndefined,...ne(t)});var na=class extends ae{_parse(e){if(this._getType(e)!==z.null){let n=this._getOrReturnCtx(e);return _(n,{code:M.invalid_type,expected:z.null,received:n.parsedType}),K}return xi(e.data)}};na.create=t=>new na({typeName:E.ZodNull,...ne(t)});var wt=class extends ae{constructor(){super(...arguments),this._any=!0}_parse(e){return xi(e.data)}};wt.create=t=>new wt({typeName:E.ZodAny,...ne(t)});var Xn=class extends ae{constructor(){super(...arguments),this._unknown=!0}_parse(e){return xi(e.data)}};Xn.create=t=>new Xn({typeName:E.ZodUnknown,...ne(t)});var vn=class extends ae{_parse(e){let i=this._getOrReturnCtx(e);return _(i,{code:M.invalid_type,expected:z.never,received:i.parsedType}),K}};vn.create=t=>new vn({typeName:E.ZodNever,...ne(t)});var ar=class extends ae{_parse(e){if(this._getType(e)!==z.undefined){let n=this._getOrReturnCtx(e);return _(n,{code:M.invalid_type,expected:z.void,received:n.parsedType}),K}return xi(e.data)}};ar.create=t=>new ar({typeName:E.ZodVoid,...ne(t)});var et=class t extends ae{_parse(e){let{ctx:i,status:n}=this._processInputParams(e),a=this._def;if(i.parsedType!==z.array)return _(i,{code:M.invalid_type,expected:z.array,received:i.parsedType}),K;if(a.exactLength!==null){let s=i.data.length>a.exactLength.value,o=i.data.lengtha.maxLength.value&&(_(i,{code:M.too_big,maximum:a.maxLength.value,type:"array",inclusive:!0,exact:!1,message:a.maxLength.message}),n.dirty()),i.common.async)return Promise.all([...i.data].map((s,o)=>a.type._parseAsync(new an(i,s,i.path,o)))).then(s=>Ci.mergeArray(n,s));let r=[...i.data].map((s,o)=>a.type._parseSync(new an(i,s,i.path,o)));return Ci.mergeArray(n,r)}get element(){return this._def.type}min(e,i){return new t({...this._def,minLength:{value:e,message:U.toString(i)}})}max(e,i){return new t({...this._def,maxLength:{value:e,message:U.toString(i)}})}length(e,i){return new t({...this._def,exactLength:{value:e,message:U.toString(i)}})}nonempty(e){return this.min(1,e)}};et.create=(t,e)=>new et({type:t,minLength:null,maxLength:null,exactLength:null,typeName:E.ZodArray,...ne(e)});function nr(t){if(t instanceof Di){let e={};for(let i in t.shape){let n=t.shape[i];e[i]=tn.create(nr(n))}return new Di({...t._def,shape:()=>e})}else return t instanceof et?new et({...t._def,type:nr(t.element)}):t instanceof tn?tn.create(nr(t.unwrap())):t instanceof Hn?Hn.create(nr(t.unwrap())):t instanceof _n?_n.create(t.items.map(e=>nr(e))):t}var Di=class t extends ae{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;let e=this._def.shape(),i=ce.objectKeys(e);return this._cached={shape:e,keys:i},this._cached}_parse(e){if(this._getType(e)!==z.object){let u=this._getOrReturnCtx(e);return _(u,{code:M.invalid_type,expected:z.object,received:u.parsedType}),K}let{status:n,ctx:a}=this._processInputParams(e),{shape:r,keys:s}=this._getCached(),o=[];if(!(this._def.catchall instanceof vn&&this._def.unknownKeys==="strip"))for(let u in a.data)s.includes(u)||o.push(u);let l=[];for(let u of s){let c=r[u],p=a.data[u];l.push({key:{status:"valid",value:u},value:c._parse(new an(a,p,a.path,u)),alwaysSet:u in a.data})}if(this._def.catchall instanceof vn){let u=this._def.unknownKeys;if(u==="passthrough")for(let c of o)l.push({key:{status:"valid",value:c},value:{status:"valid",value:a.data[c]}});else if(u==="strict")o.length>0&&(_(a,{code:M.unrecognized_keys,keys:o}),n.dirty());else if(u!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{let u=this._def.catchall;for(let c of o){let p=a.data[c];l.push({key:{status:"valid",value:c},value:u._parse(new an(a,p,a.path,c)),alwaysSet:c in a.data})}}return a.common.async?Promise.resolve().then(async()=>{let u=[];for(let c of l){let p=await c.key,d=await c.value;u.push({key:p,value:d,alwaysSet:c.alwaysSet})}return u}).then(u=>Ci.mergeObjectSync(n,u)):Ci.mergeObjectSync(n,l)}get shape(){return this._def.shape()}strict(e){return U.errToObj,new t({...this._def,unknownKeys:"strict",...e!==void 0?{errorMap:(i,n)=>{let a=this._def.errorMap?.(i,n).message??n.defaultError;return i.code==="unrecognized_keys"?{message:U.errToObj(e).message??a}:{message:a}}}:{}})}strip(){return new t({...this._def,unknownKeys:"strip"})}passthrough(){return new t({...this._def,unknownKeys:"passthrough"})}extend(e){return new t({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){return new t({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:E.ZodObject})}setKey(e,i){return this.augment({[e]:i})}catchall(e){return new t({...this._def,catchall:e})}pick(e){let i={};for(let n of ce.objectKeys(e))e[n]&&this.shape[n]&&(i[n]=this.shape[n]);return new t({...this._def,shape:()=>i})}omit(e){let i={};for(let n of ce.objectKeys(this.shape))e[n]||(i[n]=this.shape[n]);return new t({...this._def,shape:()=>i})}deepPartial(){return nr(this)}partial(e){let i={};for(let n of ce.objectKeys(this.shape)){let a=this.shape[n];e&&!e[n]?i[n]=a:i[n]=a.optional()}return new t({...this._def,shape:()=>i})}required(e){let i={};for(let n of ce.objectKeys(this.shape))if(e&&!e[n])i[n]=this.shape[n];else{let r=this.shape[n];for(;r instanceof tn;)r=r._def.innerType;i[n]=r}return new t({...this._def,shape:()=>i})}keyof(){return gy(ce.objectKeys(this.shape))}};Di.create=(t,e)=>new Di({shape:()=>t,unknownKeys:"strip",catchall:vn.create(),typeName:E.ZodObject,...ne(e)});Di.strictCreate=(t,e)=>new Di({shape:()=>t,unknownKeys:"strict",catchall:vn.create(),typeName:E.ZodObject,...ne(e)});Di.lazycreate=(t,e)=>new Di({shape:t,unknownKeys:"strip",catchall:vn.create(),typeName:E.ZodObject,...ne(e)});var ta=class extends ae{_parse(e){let{ctx:i}=this._processInputParams(e),n=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 i.common.issues.push(...o.ctx.common.issues),o.result;let s=r.map(o=>new zi(o.ctx.common.issues));return _(i,{code:M.invalid_union,unionErrors:s}),K}if(i.common.async)return Promise.all(n.map(async r=>{let s={...i,common:{...i.common,issues:[]},parent:null};return{result:await r._parseAsync({data:i.data,path:i.path,parent:s}),ctx:s}})).then(a);{let r,s=[];for(let l of n){let u={...i,common:{...i.common,issues:[]},parent:null},c=l._parseSync({data:i.data,path:i.path,parent:u});if(c.status==="valid")return c;c.status==="dirty"&&!r&&(r={result:c,ctx:u}),u.common.issues.length&&s.push(u.common.issues)}if(r)return i.common.issues.push(...r.ctx.common.issues),r.result;let o=s.map(l=>new zi(l));return _(i,{code:M.invalid_union,unionErrors:o}),K}}get options(){return this._def.options}};ta.create=(t,e)=>new ta({options:t,typeName:E.ZodUnion,...ne(e)});var Yn=t=>t instanceof ra?Yn(t.schema):t instanceof rn?Yn(t.innerType()):t instanceof sa?[t.value]:t instanceof oa?t.options:t instanceof la?ce.objectValues(t.enum):t instanceof ua?Yn(t._def.innerType):t instanceof ia?[void 0]:t instanceof na?[null]:t instanceof tn?[void 0,...Yn(t.unwrap())]:t instanceof Hn?[null,...Yn(t.unwrap())]:t instanceof fs||t instanceof pa?Yn(t.unwrap()):t instanceof ca?Yn(t._def.innerType):[],_l=class t extends ae{_parse(e){let{ctx:i}=this._processInputParams(e);if(i.parsedType!==z.object)return _(i,{code:M.invalid_type,expected:z.object,received:i.parsedType}),K;let n=this.discriminator,a=i.data[n],r=this.optionsMap.get(a);return r?i.common.async?r._parseAsync({data:i.data,path:i.path,parent:i}):r._parseSync({data:i.data,path:i.path,parent:i}):(_(i,{code:M.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[n]}),K)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(e,i,n){let a=new Map;for(let r of i){let s=Yn(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:i,optionsMap:a,...ne(n)})}};function wd(t,e){let i=qn(t),n=qn(e);if(t===e)return{valid:!0,data:t};if(i===z.object&&n===z.object){let a=ce.objectKeys(e),r=ce.objectKeys(t).filter(o=>a.indexOf(o)!==-1),s={...t,...e};for(let o of r){let l=wd(t[o],e[o]);if(!l.valid)return{valid:!1};s[o]=l.data}return{valid:!0,data:s}}else if(i===z.array&&n===z.array){if(t.length!==e.length)return{valid:!1};let a=[];for(let r=0;r{if(kl(r)||kl(s))return K;let o=wd(r.value,s.value);return o.valid?((ql(r)||ql(s))&&i.dirty(),{status:i.value,value:o.data}):(_(n,{code:M.invalid_intersection_types}),K)};return n.common.async?Promise.all([this._def.left._parseAsync({data:n.data,path:n.path,parent:n}),this._def.right._parseAsync({data:n.data,path:n.path,parent:n})]).then(([r,s])=>a(r,s)):a(this._def.left._parseSync({data:n.data,path:n.path,parent:n}),this._def.right._parseSync({data:n.data,path:n.path,parent:n}))}};aa.create=(t,e,i)=>new aa({left:t,right:e,typeName:E.ZodIntersection,...ne(i)});var _n=class t extends ae{_parse(e){let{status:i,ctx:n}=this._processInputParams(e);if(n.parsedType!==z.array)return _(n,{code:M.invalid_type,expected:z.array,received:n.parsedType}),K;if(n.data.lengththis._def.items.length&&(_(n,{code:M.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),i.dirty());let r=[...n.data].map((s,o)=>{let l=this._def.items[o]||this._def.rest;return l?l._parse(new an(n,s,n.path,o)):null}).filter(s=>!!s);return n.common.async?Promise.all(r).then(s=>Ci.mergeArray(i,s)):Ci.mergeArray(i,r)}get items(){return this._def.items}rest(e){return new t({...this._def,rest:e})}};_n.create=(t,e)=>{if(!Array.isArray(t))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new _n({items:t,typeName:E.ZodTuple,rest:null,...ne(e)})};var Hl=class t extends ae{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:i,ctx:n}=this._processInputParams(e);if(n.parsedType!==z.object)return _(n,{code:M.invalid_type,expected:z.object,received:n.parsedType}),K;let a=[],r=this._def.keyType,s=this._def.valueType;for(let o in n.data)a.push({key:r._parse(new an(n,o,n.path,o)),value:s._parse(new an(n,n.data[o],n.path,o)),alwaysSet:o in n.data});return n.common.async?Ci.mergeObjectAsync(i,a):Ci.mergeObjectSync(i,a)}get element(){return this._def.valueType}static create(e,i,n){return i instanceof ae?new t({keyType:e,valueType:i,typeName:E.ZodRecord,...ne(n)}):new t({keyType:ft.create(),valueType:e,typeName:E.ZodRecord,...ne(i)})}},rr=class extends ae{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:i,ctx:n}=this._processInputParams(e);if(n.parsedType!==z.map)return _(n,{code:M.invalid_type,expected:z.map,received:n.parsedType}),K;let a=this._def.keyType,r=this._def.valueType,s=[...n.data.entries()].map(([o,l],u)=>({key:a._parse(new an(n,o,n.path,[u,"key"])),value:r._parse(new an(n,l,n.path,[u,"value"]))}));if(n.common.async){let o=new Map;return Promise.resolve().then(async()=>{for(let l of s){let u=await l.key,c=await l.value;if(u.status==="aborted"||c.status==="aborted")return K;(u.status==="dirty"||c.status==="dirty")&&i.dirty(),o.set(u.value,c.value)}return{status:i.value,value:o}})}else{let o=new Map;for(let l of s){let u=l.key,c=l.value;if(u.status==="aborted"||c.status==="aborted")return K;(u.status==="dirty"||c.status==="dirty")&&i.dirty(),o.set(u.value,c.value)}return{status:i.value,value:o}}}};rr.create=(t,e,i)=>new rr({valueType:e,keyType:t,typeName:E.ZodMap,...ne(i)});var sr=class t extends ae{_parse(e){let{status:i,ctx:n}=this._processInputParams(e);if(n.parsedType!==z.set)return _(n,{code:M.invalid_type,expected:z.set,received:n.parsedType}),K;let a=this._def;a.minSize!==null&&n.data.sizea.maxSize.value&&(_(n,{code:M.too_big,maximum:a.maxSize.value,type:"set",inclusive:!0,exact:!1,message:a.maxSize.message}),i.dirty());let r=this._def.valueType;function s(l){let u=new Set;for(let c of l){if(c.status==="aborted")return K;c.status==="dirty"&&i.dirty(),u.add(c.value)}return{status:i.value,value:u}}let o=[...n.data.values()].map((l,u)=>r._parse(new an(n,l,n.path,u)));return n.common.async?Promise.all(o).then(l=>s(l)):s(o)}min(e,i){return new t({...this._def,minSize:{value:e,message:U.toString(i)}})}max(e,i){return new t({...this._def,maxSize:{value:e,message:U.toString(i)}})}size(e,i){return this.min(e,i).max(e,i)}nonempty(e){return this.min(1,e)}};sr.create=(t,e)=>new sr({valueType:t,minSize:null,maxSize:null,typeName:E.ZodSet,...ne(e)});var Rl=class t extends ae{constructor(){super(...arguments),this.validate=this.implement}_parse(e){let{ctx:i}=this._processInputParams(e);if(i.parsedType!==z.function)return _(i,{code:M.invalid_type,expected:z.function,received:i.parsedType}),K;function n(o,l){return ms({data:o,path:i.path,errorMaps:[i.common.contextualErrorMap,i.schemaErrorMap,er(),Qn].filter(u=>!!u),issueData:{code:M.invalid_arguments,argumentsError:l}})}function a(o,l){return ms({data:o,path:i.path,errorMaps:[i.common.contextualErrorMap,i.schemaErrorMap,er(),Qn].filter(u=>!!u),issueData:{code:M.invalid_return_type,returnTypeError:l}})}let r={errorMap:i.common.contextualErrorMap},s=i.data;if(this._def.returns instanceof vt){let o=this;return xi(async function(...l){let u=new zi([]),c=await o._def.args.parseAsync(l,r).catch(h=>{throw u.addIssue(n(l,h)),u}),p=await Reflect.apply(s,this,c);return await o._def.returns._def.type.parseAsync(p,r).catch(h=>{throw u.addIssue(a(p,h)),u})})}else{let o=this;return xi(function(...l){let u=o._def.args.safeParse(l,r);if(!u.success)throw new zi([n(l,u.error)]);let c=Reflect.apply(s,this,u.data),p=o._def.returns.safeParse(c,r);if(!p.success)throw new zi([a(c,p.error)]);return p.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...e){return new t({...this._def,args:_n.create(e).rest(Xn.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,i,n){return new t({args:e||_n.create([]).rest(Xn.create()),returns:i||Xn.create(),typeName:E.ZodFunction,...ne(n)})}},ra=class extends ae{get schema(){return this._def.getter()}_parse(e){let{ctx:i}=this._processInputParams(e);return this._def.getter()._parse({data:i.data,path:i.path,parent:i})}};ra.create=(t,e)=>new ra({getter:t,typeName:E.ZodLazy,...ne(e)});var sa=class extends ae{_parse(e){if(e.data!==this._def.value){let i=this._getOrReturnCtx(e);return _(i,{received:i.data,code:M.invalid_literal,expected:this._def.value}),K}return{status:"valid",value:e.data}}get value(){return this._def.value}};sa.create=(t,e)=>new sa({value:t,typeName:E.ZodLiteral,...ne(e)});function gy(t,e){return new oa({values:t,typeName:E.ZodEnum,...ne(e)})}var oa=class t extends ae{_parse(e){if(typeof e.data!="string"){let i=this._getOrReturnCtx(e),n=this._def.values;return _(i,{expected:ce.joinValues(n),received:i.parsedType,code:M.invalid_type}),K}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(e.data)){let i=this._getOrReturnCtx(e),n=this._def.values;return _(i,{received:i.data,code:M.invalid_enum_value,options:n}),K}return xi(e.data)}get options(){return this._def.values}get enum(){let e={};for(let i of this._def.values)e[i]=i;return e}get Values(){let e={};for(let i of this._def.values)e[i]=i;return e}get Enum(){let e={};for(let i of this._def.values)e[i]=i;return e}extract(e,i=this._def){return t.create(e,{...this._def,...i})}exclude(e,i=this._def){return t.create(this.options.filter(n=>!e.includes(n)),{...this._def,...i})}};oa.create=gy;var la=class extends ae{_parse(e){let i=ce.getValidEnumValues(this._def.values),n=this._getOrReturnCtx(e);if(n.parsedType!==z.string&&n.parsedType!==z.number){let a=ce.objectValues(i);return _(n,{expected:ce.joinValues(a),received:n.parsedType,code:M.invalid_type}),K}if(this._cache||(this._cache=new Set(ce.getValidEnumValues(this._def.values))),!this._cache.has(e.data)){let a=ce.objectValues(i);return _(n,{received:n.data,code:M.invalid_enum_value,options:a}),K}return xi(e.data)}get enum(){return this._def.values}};la.create=(t,e)=>new la({values:t,typeName:E.ZodNativeEnum,...ne(e)});var vt=class extends ae{unwrap(){return this._def.type}_parse(e){let{ctx:i}=this._processInputParams(e);if(i.parsedType!==z.promise&&i.common.async===!1)return _(i,{code:M.invalid_type,expected:z.promise,received:i.parsedType}),K;let n=i.parsedType===z.promise?i.data:Promise.resolve(i.data);return xi(n.then(a=>this._def.type.parseAsync(a,{path:i.path,errorMap:i.common.contextualErrorMap})))}};vt.create=(t,e)=>new vt({type:t,typeName:E.ZodPromise,...ne(e)});var rn=class extends ae{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===E.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){let{status:i,ctx:n}=this._processInputParams(e),a=this._def.effect||null,r={addIssue:s=>{_(n,s),s.fatal?i.abort():i.dirty()},get path(){return n.path}};if(r.addIssue=r.addIssue.bind(r),a.type==="preprocess"){let s=a.transform(n.data,r);if(n.common.async)return Promise.resolve(s).then(async o=>{if(i.value==="aborted")return K;let l=await this._def.schema._parseAsync({data:o,path:n.path,parent:n});return l.status==="aborted"?K:l.status==="dirty"?Kt(l.value):i.value==="dirty"?Kt(l.value):l});{if(i.value==="aborted")return K;let o=this._def.schema._parseSync({data:s,path:n.path,parent:n});return o.status==="aborted"?K:o.status==="dirty"?Kt(o.value):i.value==="dirty"?Kt(o.value):o}}if(a.type==="refinement"){let s=o=>{let l=a.refinement(o,r);if(n.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(n.common.async===!1){let o=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});return o.status==="aborted"?K:(o.status==="dirty"&&i.dirty(),s(o.value),{status:i.value,value:o.value})}else return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(o=>o.status==="aborted"?K:(o.status==="dirty"&&i.dirty(),s(o.value).then(()=>({status:i.value,value:o.value}))))}if(a.type==="transform")if(n.common.async===!1){let s=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});if(!mt(s))return K;let o=a.transform(s.value,r);if(o instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:i.value,value:o}}else return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(s=>mt(s)?Promise.resolve(a.transform(s.value,r)).then(o=>({status:i.value,value:o})):K);ce.assertNever(a)}};rn.create=(t,e,i)=>new rn({schema:t,typeName:E.ZodEffects,effect:e,...ne(i)});rn.createWithPreprocess=(t,e,i)=>new rn({schema:e,effect:{type:"preprocess",transform:t},typeName:E.ZodEffects,...ne(i)});var tn=class extends ae{_parse(e){return this._getType(e)===z.undefined?xi(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}};tn.create=(t,e)=>new tn({innerType:t,typeName:E.ZodOptional,...ne(e)});var Hn=class extends ae{_parse(e){return this._getType(e)===z.null?xi(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}};Hn.create=(t,e)=>new Hn({innerType:t,typeName:E.ZodNullable,...ne(e)});var ua=class extends ae{_parse(e){let{ctx:i}=this._processInputParams(e),n=i.data;return i.parsedType===z.undefined&&(n=this._def.defaultValue()),this._def.innerType._parse({data:n,path:i.path,parent:i})}removeDefault(){return this._def.innerType}};ua.create=(t,e)=>new ua({innerType:t,typeName:E.ZodDefault,defaultValue:typeof e.default=="function"?e.default:()=>e.default,...ne(e)});var ca=class extends ae{_parse(e){let{ctx:i}=this._processInputParams(e),n={...i,common:{...i.common,issues:[]}},a=this._def.innerType._parse({data:n.data,path:n.path,parent:{...n}});return ir(a)?a.then(r=>({status:"valid",value:r.status==="valid"?r.value:this._def.catchValue({get error(){return new zi(n.common.issues)},input:n.data})})):{status:"valid",value:a.status==="valid"?a.value:this._def.catchValue({get error(){return new zi(n.common.issues)},input:n.data})}}removeCatch(){return this._def.innerType}};ca.create=(t,e)=>new ca({innerType:t,typeName:E.ZodCatch,catchValue:typeof e.catch=="function"?e.catch:()=>e.catch,...ne(e)});var or=class extends ae{_parse(e){if(this._getType(e)!==z.nan){let n=this._getOrReturnCtx(e);return _(n,{code:M.invalid_type,expected:z.nan,received:n.parsedType}),K}return{status:"valid",value:e.data}}};or.create=t=>new or({typeName:E.ZodNaN,...ne(t)});var FI=Symbol("zod_brand"),fs=class extends ae{_parse(e){let{ctx:i}=this._processInputParams(e),n=i.data;return this._def.type._parse({data:n,path:i.path,parent:i})}unwrap(){return this._def.type}},ws=class t extends ae{_parse(e){let{status:i,ctx:n}=this._processInputParams(e);if(n.common.async)return(async()=>{let r=await this._def.in._parseAsync({data:n.data,path:n.path,parent:n});return r.status==="aborted"?K:r.status==="dirty"?(i.dirty(),Kt(r.value)):this._def.out._parseAsync({data:r.value,path:n.path,parent:n})})();{let a=this._def.in._parseSync({data:n.data,path:n.path,parent:n});return a.status==="aborted"?K:a.status==="dirty"?(i.dirty(),{status:"dirty",value:a.value}):this._def.out._parseSync({data:a.value,path:n.path,parent:n})}}static create(e,i){return new t({in:e,out:i,typeName:E.ZodPipeline})}},pa=class extends ae{_parse(e){let i=this._def.innerType._parse(e),n=a=>(mt(a)&&(a.value=Object.freeze(a.value)),a);return ir(i)?i.then(a=>n(a)):n(i)}unwrap(){return this._def.innerType}};pa.create=(t,e)=>new pa({innerType:t,typeName:E.ZodReadonly,...ne(e)});function cy(t,e){let i=typeof t=="function"?t(e):typeof t=="string"?{message:t}:t;return typeof i=="string"?{message:i}:i}function my(t,e={},i){return t?wt.create().superRefine((n,a)=>{let r=t(n);if(r instanceof Promise)return r.then(s=>{if(!s){let o=cy(e,n),l=o.fatal??i??!0;a.addIssue({code:"custom",...o,fatal:l})}});if(!r){let s=cy(e,n),o=s.fatal??i??!0;a.addIssue({code:"custom",...s,fatal:o})}}):wt.create()}var VI={object:Di.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 JI=(t,e={message:`Input not instance of ${t.name}`})=>my(i=>i instanceof t,e),fy=ft.create,wy=Qt.create,ZI=or.create,KI=Yt.create,vy=Xt.create,QI=ea.create,YI=tr.create,XI=ia.create,ez=na.create,iz=wt.create,nz=Xn.create,tz=vn.create,az=ar.create,rz=et.create,vd=Di.create,sz=Di.strictCreate,oz=ta.create,lz=_l.create,uz=aa.create,cz=_n.create,pz=Hl.create,dz=rr.create,hz=sr.create,gz=Rl.create,mz=ra.create,fz=sa.create,wz=oa.create,vz=la.create,Cz=vt.create,Az=rn.create,bz=tn.create,yz=Hn.create,Pz=rn.createWithPreprocess,jz=ws.create,Sz=()=>fy().optional(),Oz=()=>wy().optional(),xz=()=>vy().optional(),Tz={string:(t=>ft.create({...t,coerce:!0})),number:(t=>Qt.create({...t,coerce:!0})),boolean:(t=>Xt.create({...t,coerce:!0})),bigint:(t=>Yt.create({...t,coerce:!0})),date:(t=>ea.create({...t,coerce:!0}))};var Mz=K;var Cy;function j(t,e,i){function n(o,l){if(o._zod||Object.defineProperty(o,"_zod",{value:{def:l,constr:s,traits:new Set},enumerable:!1}),o._zod.traits.has(t))return;o._zod.traits.add(t),e(o,l);let u=s.prototype,c=Object.keys(u);for(let p=0;pi?.Parent&&o instanceof i.Parent?!0:o?._zod?.traits?.has(t)}),Object.defineProperty(s,"name",{value:t}),s}var TX=Symbol("zod_brand"),Rn=class extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}},lr=class extends Error{constructor(e){super(`Encountered unidirectional transform during encode: ${e}`),this.name="ZodEncodeError"}};(Cy=globalThis).__zod_globalConfig??(Cy.__zod_globalConfig={});var ur=globalThis.__zod_globalConfig;function Qi(t){return t&&Object.assign(ur,t),ur}var he={};gd(he,{BIGINT_FORMAT_RANGES:()=>yy,Class:()=>Ad,NUMBER_FORMAT_RANGES:()=>xd,aborted:()=>bt,allowsEval:()=>Pd,assert:()=>Rz,assertEqual:()=>kz,assertIs:()=>_z,assertNever:()=>Hz,assertNotEqual:()=>qz,assignProp:()=>Ct,base64ToUint8Array:()=>Ey,base64urlToUint8Array:()=>Fz,cached:()=>pr,captureStackTrace:()=>Dl,cleanEnum:()=>Bz,cleanRegex:()=>bs,clone:()=>Yi,cloneDef:()=>zz,createTransparentProxy:()=>Lz,defineLazy:()=>Oe,esc:()=>zl,escapeRegex:()=>nt,explicitlyAborted:()=>Td,extend:()=>Sy,finalizeIssue:()=>sn,floatSafeRemainder:()=>bd,getElementAtPath:()=>Dz,getEnumValues:()=>Cs,getLengthableOrigin:()=>ys,getParsedType:()=>Uz,getSizableOrigin:()=>My,hexToUint8Array:()=>Jz,isObject:()=>da,isPlainObject:()=>At,issue:()=>dr,joinValues:()=>Il,jsonStringifyReplacer:()=>cr,merge:()=>Wz,mergeDefs:()=>it,normalizeParams:()=>J,nullish:()=>As,numKeys:()=>Nz,objectClone:()=>Iz,omit:()=>jy,optionalKeys:()=>Od,parsedType:()=>Md,partial:()=>xy,pick:()=>Py,prefixIssues:()=>tt,primitiveTypes:()=>by,promiseAllObject:()=>Gz,propertyKeyTypes:()=>Sd,randomString:()=>$z,required:()=>Ty,safeExtend:()=>Oy,shallowClone:()=>jd,slugify:()=>yd,stringifyPrimitive:()=>Gl,uint8ArrayToBase64:()=>ky,uint8ArrayToBase64url:()=>Vz,uint8ArrayToHex:()=>Zz,unwrapMessage:()=>vs});function kz(t){return t}function qz(t){return t}function _z(t){}function Hz(t){throw new Error("Unexpected value in exhaustive check")}function Rz(t){}function Cs(t){let e=Object.values(t).filter(n=>typeof n=="number");return Object.entries(t).filter(([n,a])=>e.indexOf(+n)===-1).map(([n,a])=>a)}function Il(t,e="|"){return t.map(i=>Gl(i)).join(e)}function cr(t,e){return typeof e=="bigint"?e.toString():e}function pr(t){return{get value(){{let i=t();return Object.defineProperty(this,"value",{value:i}),i}throw new Error("cached value already set")}}}function As(t){return t==null}function bs(t){let e=t.startsWith("^")?1:0,i=t.endsWith("$")?t.length-1:t.length;return t.slice(e,i)}function bd(t,e){let i=t/e,n=Math.round(i),a=Number.EPSILON*Math.max(Math.abs(i),1);return Math.abs(i-n)i?.[n],t):t}function Gz(t){let e=Object.keys(t),i=e.map(n=>t[n]);return Promise.all(i).then(n=>{let a={};for(let r=0;r{};function da(t){return typeof t=="object"&&t!==null&&!Array.isArray(t)}var Pd=pr(()=>{if(ur.jitless||typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{let t=Function;return new t(""),!0}catch{return!1}});function At(t){if(da(t)===!1)return!1;let e=t.constructor;if(e===void 0||typeof e!="function")return!0;let i=e.prototype;return!(da(i)===!1||Object.prototype.hasOwnProperty.call(i,"isPrototypeOf")===!1)}function jd(t){return At(t)?{...t}:Array.isArray(t)?[...t]:t instanceof Map?new Map(t):t instanceof Set?new Set(t):t}function Nz(t){let e=0;for(let i in t)Object.prototype.hasOwnProperty.call(t,i)&&e++;return e}var Uz=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}`)}},Sd=new Set(["string","number","symbol"]),by=new Set(["string","number","bigint","boolean","symbol","undefined"]);function nt(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Yi(t,e,i){let n=new t._zod.constr(e??t._zod.def);return(!e||i?.parent)&&(n._zod.parent=t),n}function J(t){let e=t;if(!e)return{};if(typeof e=="string")return{error:()=>e};if(e?.message!==void 0){if(e?.error!==void 0)throw new Error("Cannot specify both `message` and `error` params");e.error=e.message}return delete e.message,typeof e.error=="string"?{...e,error:()=>e.error}:e}function Lz(t){let e;return new Proxy({},{get(i,n,a){return e??(e=t()),Reflect.get(e,n,a)},set(i,n,a,r){return e??(e=t()),Reflect.set(e,n,a,r)},has(i,n){return e??(e=t()),Reflect.has(e,n)},deleteProperty(i,n){return e??(e=t()),Reflect.deleteProperty(e,n)},ownKeys(i){return e??(e=t()),Reflect.ownKeys(e)},getOwnPropertyDescriptor(i,n){return e??(e=t()),Reflect.getOwnPropertyDescriptor(e,n)},defineProperty(i,n,a){return e??(e=t()),Reflect.defineProperty(e,n,a)}})}function Gl(t){return typeof t=="bigint"?t.toString()+"n":typeof t=="string"?`"${t}"`:`${t}`}function Od(t){return Object.keys(t).filter(e=>t[e]._zod.optin==="optional"&&t[e]._zod.optout==="optional")}var xd={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]},yy={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function Py(t,e){let i=t._zod.def,n=i.checks;if(n&&n.length>0)throw new Error(".pick() cannot be used on object schemas containing refinements");let r=it(t._zod.def,{get shape(){let s={};for(let o in e){if(!(o in i.shape))throw new Error(`Unrecognized key: "${o}"`);e[o]&&(s[o]=i.shape[o])}return Ct(this,"shape",s),s},checks:[]});return Yi(t,r)}function jy(t,e){let i=t._zod.def,n=i.checks;if(n&&n.length>0)throw new Error(".omit() cannot be used on object schemas containing refinements");let r=it(t._zod.def,{get shape(){let s={...t._zod.def.shape};for(let o in e){if(!(o in i.shape))throw new Error(`Unrecognized key: "${o}"`);e[o]&&delete s[o]}return Ct(this,"shape",s),s},checks:[]});return Yi(t,r)}function Sy(t,e){if(!At(e))throw new Error("Invalid input to extend: expected a plain object");let i=t._zod.def.checks;if(i&&i.length>0){let r=t._zod.def.shape;for(let s in e)if(Object.getOwnPropertyDescriptor(r,s)!==void 0)throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}let a=it(t._zod.def,{get shape(){let r={...t._zod.def.shape,...e};return Ct(this,"shape",r),r}});return Yi(t,a)}function Oy(t,e){if(!At(e))throw new Error("Invalid input to safeExtend: expected a plain object");let i=it(t._zod.def,{get shape(){let n={...t._zod.def.shape,...e};return Ct(this,"shape",n),n}});return Yi(t,i)}function Wz(t,e){if(t._zod.def.checks?.length)throw new Error(".merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.");let i=it(t._zod.def,{get shape(){let n={...t._zod.def.shape,...e._zod.def.shape};return Ct(this,"shape",n),n},get catchall(){return e._zod.def.catchall},checks:e._zod.def.checks??[]});return Yi(t,i)}function xy(t,e,i){let a=e._zod.def.checks;if(a&&a.length>0)throw new Error(".partial() cannot be used on object schemas containing refinements");let s=it(e._zod.def,{get shape(){let o=e._zod.def.shape,l={...o};if(i)for(let u in i){if(!(u in o))throw new Error(`Unrecognized key: "${u}"`);i[u]&&(l[u]=t?new t({type:"optional",innerType:o[u]}):o[u])}else for(let u in o)l[u]=t?new t({type:"optional",innerType:o[u]}):o[u];return Ct(this,"shape",l),l},checks:[]});return Yi(e,s)}function Ty(t,e,i){let n=it(e._zod.def,{get shape(){let a=e._zod.def.shape,r={...a};if(i)for(let s in i){if(!(s in r))throw new Error(`Unrecognized key: "${s}"`);i[s]&&(r[s]=new t({type:"nonoptional",innerType:a[s]}))}else for(let s in a)r[s]=new t({type:"nonoptional",innerType:a[s]});return Ct(this,"shape",r),r}});return Yi(e,n)}function bt(t,e=0){if(t.aborted===!0)return!0;for(let i=e;i{var n;return(n=i).path??(n.path=[]),i.path.unshift(t),i})}function vs(t){return typeof t=="string"?t:t?.message}function sn(t,e,i){let n=t.message?t.message:vs(t.inst?._zod.def?.error?.(t))??vs(e?.error?.(t))??vs(i.customError?.(t))??vs(i.localeError?.(t))??"Invalid input",{inst:a,continue:r,input:s,...o}=t;return o.path??(o.path=[]),o.message=n,e?.reportInput&&(o.input=s),o}function My(t){return t instanceof Set?"set":t instanceof Map?"map":t instanceof File?"file":"unknown"}function ys(t){return Array.isArray(t)?"array":typeof t=="string"?"string":"unknown"}function Md(t){let e=typeof t;switch(e){case"number":return Number.isNaN(t)?"nan":"number";case"object":{if(t===null)return"null";if(Array.isArray(t))return"array";let i=t;if(i&&Object.getPrototypeOf(i)!==Object.prototype&&"constructor"in i&&i.constructor)return i.constructor.name}}return e}function dr(...t){let[e,i,n]=t;return typeof e=="string"?{message:e,code:"custom",input:i,inst:n}:{...e}}function Bz(t){return Object.entries(t).filter(([e,i])=>Number.isNaN(Number.parseInt(e,10))).map(e=>e[1])}function Ey(t){let e=atob(t),i=new Uint8Array(e.length);for(let n=0;ne.toString(16).padStart(2,"0")).join("")}var Ad=class{constructor(...e){}};var qy=(t,e)=>{t.name="$ZodError",Object.defineProperty(t,"_zod",{value:t._zod,enumerable:!1}),Object.defineProperty(t,"issues",{value:e,enumerable:!1}),t.message=JSON.stringify(e,cr,2),Object.defineProperty(t,"toString",{value:()=>t.message,enumerable:!1})},$l=j("$ZodError",qy),Ps=j("$ZodError",qy,{Parent:Error});function _y(t,e=i=>i.message){let i={},n=[];for(let a of t.issues)a.path.length>0?(i[a.path[0]]=i[a.path[0]]||[],i[a.path[0]].push(e(a))):n.push(e(a));return{formErrors:n,fieldErrors:i}}function Hy(t,e=i=>i.message){let i={_errors:[]},n=(a,r=[])=>{for(let s of a.issues)if(s.code==="invalid_union"&&s.errors.length)s.errors.map(o=>n({issues:o},[...r,...s.path]));else if(s.code==="invalid_key")n({issues:s.issues},[...r,...s.path]);else if(s.code==="invalid_element")n({issues:s.issues},[...r,...s.path]);else{let o=[...r,...s.path];if(o.length===0)i._errors.push(e(s));else{let l=i,u=0;for(;u(e,i,n,a)=>{let r=n?{...n,async:!1}:{async:!1},s=e._zod.run({value:i,issues:[]},r);if(s instanceof Promise)throw new Rn;if(s.issues.length){let o=new(a?.Err??t)(s.issues.map(l=>sn(l,r,Qi())));throw Dl(o,a?.callee),o}return s.value},Nl=js(Ps),Ss=t=>async(e,i,n,a)=>{let r=n?{...n,async:!0}:{async:!0},s=e._zod.run({value:i,issues:[]},r);if(s instanceof Promise&&(s=await s),s.issues.length){let o=new(a?.Err??t)(s.issues.map(l=>sn(l,r,Qi())));throw Dl(o,a?.callee),o}return s.value},Ul=Ss(Ps),Os=t=>(e,i,n)=>{let a=n?{...n,async:!1}:{async:!1},r=e._zod.run({value:i,issues:[]},a);if(r instanceof Promise)throw new Rn;return r.issues.length?{success:!1,error:new(t??$l)(r.issues.map(s=>sn(s,a,Qi())))}:{success:!0,data:r.value}},ha=Os(Ps),xs=t=>async(e,i,n)=>{let a=n?{...n,async:!0}:{async:!0},r=e._zod.run({value:i,issues:[]},a);return r instanceof Promise&&(r=await r),r.issues.length?{success:!1,error:new t(r.issues.map(s=>sn(s,a,Qi())))}:{success:!0,data:r.value}},ga=xs(Ps),Ry=t=>(e,i,n)=>{let a=n?{...n,direction:"backward"}:{direction:"backward"};return js(t)(e,i,a)};var Iy=t=>(e,i,n)=>js(t)(e,i,n);var zy=t=>async(e,i,n)=>{let a=n?{...n,direction:"backward"}:{direction:"backward"};return Ss(t)(e,i,a)};var Dy=t=>async(e,i,n)=>Ss(t)(e,i,n);var Gy=t=>(e,i,n)=>{let a=n?{...n,direction:"backward"}:{direction:"backward"};return Os(t)(e,i,a)};var $y=t=>(e,i,n)=>Os(t)(e,i,n);var Ny=t=>async(e,i,n)=>{let a=n?{...n,direction:"backward"}:{direction:"backward"};return xs(t)(e,i,a)};var Uy=t=>async(e,i,n)=>xs(t)(e,i,n);var Ly=/^[cC][0-9a-z]{6,}$/,Wy=/^[0-9a-z]+$/,By=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,Fy=/^[0-9a-vA-V]{20}$/,Vy=/^[A-Za-z0-9]{27}$/,Jy=/^[a-zA-Z0-9_-]{21}$/,Zy=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/;var Ky=/^([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})$/,Ed=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 Qy=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/;var Qz="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function Yy(){return new RegExp(Qz,"u")}var Xy=/^(?:(?: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])$/,eP=/^(([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 iP=/^((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])$/,nP=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,tP=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,kd=/^[A-Za-z0-9_-]*$/;var aP=/^https?$/,rP=/^\+[1-9]\d{6,14}$/,sP="(?:(?:\\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])))",oP=new RegExp(`^${sP}$`);function lP(t){let e="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof t.precision=="number"?t.precision===-1?`${e}`:t.precision===0?`${e}:[0-5]\\d`:`${e}:[0-5]\\d\\.\\d{${t.precision}}`:`${e}(?::[0-5]\\d(?:\\.\\d+)?)?`}function uP(t){return new RegExp(`^${lP(t)}$`)}function cP(t){let e=lP({precision:t.precision}),i=["Z"];t.local&&i.push(""),t.offset&&i.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");let n=`${e}(?:${i.join("|")})`;return new RegExp(`^${sP}T(?:${n})$`)}var pP=t=>{let e=t?`[\\s\\S]{${t?.minimum??0},${t?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${e}$`)};var dP=/^-?\d+$/,qd=/^-?\d+(?:\.\d+)?$/,hP=/^(?:true|false)$/i,gP=/^null$/i;var mP=/^[^A-Z]*$/,fP=/^[^a-z]*$/;var di=j("$ZodCheck",(t,e)=>{var i;t._zod??(t._zod={}),t._zod.def=e,(i=t._zod).onattach??(i.onattach=[])}),wP={number:"number",bigint:"bigint",object:"date"},_d=j("$ZodCheckLessThan",(t,e)=>{di.init(t,e);let i=wP[typeof e.value];t._zod.onattach.push(n=>{let a=n._zod.bag,r=(e.inclusive?a.maximum:a.exclusiveMaximum)??Number.POSITIVE_INFINITY;e.value{(e.inclusive?n.value<=e.value:n.value{di.init(t,e);let i=wP[typeof e.value];t._zod.onattach.push(n=>{let a=n._zod.bag,r=(e.inclusive?a.minimum:a.exclusiveMinimum)??Number.NEGATIVE_INFINITY;e.value>r&&(e.inclusive?a.minimum=e.value:a.exclusiveMinimum=e.value)}),t._zod.check=n=>{(e.inclusive?n.value>=e.value:n.value>e.value)||n.issues.push({origin:i,code:"too_small",minimum:typeof e.value=="object"?e.value.getTime():e.value,input:n.value,inclusive:e.inclusive,inst:t,continue:!e.abort})}}),vP=j("$ZodCheckMultipleOf",(t,e)=>{di.init(t,e),t._zod.onattach.push(i=>{var n;(n=i._zod.bag).multipleOf??(n.multipleOf=e.value)}),t._zod.check=i=>{if(typeof i.value!=typeof e.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof i.value=="bigint"?i.value%e.value===BigInt(0):bd(i.value,e.value)===0)||i.issues.push({origin:typeof i.value,code:"not_multiple_of",divisor:e.value,input:i.value,inst:t,continue:!e.abort})}}),CP=j("$ZodCheckNumberFormat",(t,e)=>{di.init(t,e),e.format=e.format||"float64";let i=e.format?.includes("int"),n=i?"int":"number",[a,r]=xd[e.format];t._zod.onattach.push(s=>{let o=s._zod.bag;o.format=e.format,o.minimum=a,o.maximum=r,i&&(o.pattern=dP)}),t._zod.check=s=>{let o=s.value;if(i){if(!Number.isInteger(o)){s.issues.push({expected:n,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:n,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:n,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 AP=j("$ZodCheckMaxLength",(t,e)=>{var i;di.init(t,e),(i=t._zod.def).when??(i.when=n=>{let a=n.value;return!As(a)&&a.length!==void 0}),t._zod.onattach.push(n=>{let a=n._zod.bag.maximum??Number.POSITIVE_INFINITY;e.maximum{let a=n.value;if(a.length<=e.maximum)return;let s=ys(a);n.issues.push({origin:s,code:"too_big",maximum:e.maximum,inclusive:!0,input:a,inst:t,continue:!e.abort})}}),bP=j("$ZodCheckMinLength",(t,e)=>{var i;di.init(t,e),(i=t._zod.def).when??(i.when=n=>{let a=n.value;return!As(a)&&a.length!==void 0}),t._zod.onattach.push(n=>{let a=n._zod.bag.minimum??Number.NEGATIVE_INFINITY;e.minimum>a&&(n._zod.bag.minimum=e.minimum)}),t._zod.check=n=>{let a=n.value;if(a.length>=e.minimum)return;let s=ys(a);n.issues.push({origin:s,code:"too_small",minimum:e.minimum,inclusive:!0,input:a,inst:t,continue:!e.abort})}}),yP=j("$ZodCheckLengthEquals",(t,e)=>{var i;di.init(t,e),(i=t._zod.def).when??(i.when=n=>{let a=n.value;return!As(a)&&a.length!==void 0}),t._zod.onattach.push(n=>{let a=n._zod.bag;a.minimum=e.length,a.maximum=e.length,a.length=e.length}),t._zod.check=n=>{let a=n.value,r=a.length;if(r===e.length)return;let s=ys(a),o=r>e.length;n.issues.push({origin:s,...o?{code:"too_big",maximum:e.length}:{code:"too_small",minimum:e.length},inclusive:!0,exact:!0,input:n.value,inst:t,continue:!e.abort})}}),Ms=j("$ZodCheckStringFormat",(t,e)=>{var i,n;di.init(t,e),t._zod.onattach.push(a=>{let r=a._zod.bag;r.format=e.format,e.pattern&&(r.patterns??(r.patterns=new Set),r.patterns.add(e.pattern))}),e.pattern?(i=t._zod).check??(i.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})}):(n=t._zod).check??(n.check=()=>{})}),PP=j("$ZodCheckRegex",(t,e)=>{Ms.init(t,e),t._zod.check=i=>{e.pattern.lastIndex=0,!e.pattern.test(i.value)&&i.issues.push({origin:"string",code:"invalid_format",format:"regex",input:i.value,pattern:e.pattern.toString(),inst:t,continue:!e.abort})}}),jP=j("$ZodCheckLowerCase",(t,e)=>{e.pattern??(e.pattern=mP),Ms.init(t,e)}),SP=j("$ZodCheckUpperCase",(t,e)=>{e.pattern??(e.pattern=fP),Ms.init(t,e)}),OP=j("$ZodCheckIncludes",(t,e)=>{di.init(t,e);let i=nt(e.includes),n=new RegExp(typeof e.position=="number"?`^.{${e.position}}${i}`:i);e.pattern=n,t._zod.onattach.push(a=>{let r=a._zod.bag;r.patterns??(r.patterns=new Set),r.patterns.add(n)}),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})}}),xP=j("$ZodCheckStartsWith",(t,e)=>{di.init(t,e);let i=new RegExp(`^${nt(e.prefix)}.*`);e.pattern??(e.pattern=i),t._zod.onattach.push(n=>{let a=n._zod.bag;a.patterns??(a.patterns=new Set),a.patterns.add(i)}),t._zod.check=n=>{n.value.startsWith(e.prefix)||n.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:e.prefix,input:n.value,inst:t,continue:!e.abort})}}),TP=j("$ZodCheckEndsWith",(t,e)=>{di.init(t,e);let i=new RegExp(`.*${nt(e.suffix)}$`);e.pattern??(e.pattern=i),t._zod.onattach.push(n=>{let a=n._zod.bag;a.patterns??(a.patterns=new Set),a.patterns.add(i)}),t._zod.check=n=>{n.value.endsWith(e.suffix)||n.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:e.suffix,input:n.value,inst:t,continue:!e.abort})}});var MP=j("$ZodCheckOverwrite",(t,e)=>{di.init(t,e),t._zod.check=i=>{i.value=e.tx(i.value)}});var Ll=class{constructor(e=[]){this.content=[],this.indent=0,this&&(this.args=e)}indented(e){this.indent+=1,e(this),this.indent-=1}write(e){if(typeof e=="function"){e(this,{execution:"sync"}),e(this,{execution:"async"});return}let n=e.split(` +`}getLogLevel(e){switch(e){case"error":return hs.level.LError;case"debug":return hs.level.LDebug;case"trace":return hs.level.LTrace;default:return hs.level.LNone}}getLogFormat(e){switch(e){case"json":return Qa.formats.JSON;default:return Qa.formats.TEXT}}},SA=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"),i=require("path");this.configPath=i.join(e.homedir(),".genesyscloudjavascript","config")}this.watchedConfigPath,this.refresh_access_token=!0,this.refresh_token_wait_max=10,this._live_reload_config=!0,this.host,this.environment,this.basePath,this.authUrl,this.config,this.gateway=void 0,this.logger=new jA,this.setEnvironment(),this.liveLoadConfig()}get live_reload_config(){return this._live_reload_config}set live_reload_config(e){if(typeof window>"u"){let i=require("fs");e!=null&&this.live_reload_config!==e&&(this._live_reload_config=e,this.watchedConfigPath&&(i.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},(i,n)=>{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 i=require("fs");e&&e!==this.configPath?(this.configPath=e,this.watchedConfigPath&&(i.unwatchFile(this.watchedConfigPath),this.watchedConfigPath=null),this.liveLoadConfig()):!e&&this.configPath&&(this.configPath="",this.watchedConfigPath&&(i.unwatchFile(this.watchedConfigPath),this.watchedConfigPath=null));return}this.configPath=""}updateConfigFromFile(){if(typeof window>"u"&&this.configPath){let n=nI();try{var e=new n;e.read(this.configPath),this.config=e}catch(a){if(a.name&&a.name==="MissingSectionHeaderError"){var i=require("fs").readFileSync(this.configPath,"utf8");this.config={_sections:JSON.parse(i)}}}this.config&&this.updateConfigValues()}}updateConfigValues(){if(this.logger.log_level=this.logger.getLogLevel(this.getConfigString("logging","log_level")),this.logger.log_format=this.logger.getLogFormat(this.getConfigString("logging","log_format")),this.logger.log_to_console=this.getConfigBoolean("logging","log_to_console")!==void 0?this.getConfigBoolean("logging","log_to_console"):this.logger.log_to_console,this.logger.log_file_path=this.getConfigString("logging","log_file_path")!==void 0?this.getConfigString("logging","log_file_path"):this.logger.log_file_path,this.logger.log_response_body=this.getConfigBoolean("logging","log_response_body")!==void 0?this.getConfigBoolean("logging","log_response_body"):this.logger.log_response_body,this.logger.log_request_body=this.getConfigBoolean("logging","log_request_body")!==void 0?this.getConfigBoolean("logging","log_request_body"):this.logger.log_request_body,this.refresh_access_token=this.getConfigBoolean("reauthentication","refresh_access_token")!==void 0?this.getConfigBoolean("reauthentication","refresh_access_token"):this.refresh_access_token,this.refresh_token_wait_max=this.getConfigInt("reauthentication","refresh_token_wait_max")!==void 0?this.getConfigInt("reauthentication","refresh_token_wait_max"):this.refresh_token_wait_max,this.live_reload_config=this.getConfigBoolean("general","live_reload_config")!==void 0?this.getConfigBoolean("general","live_reload_config"):this.live_reload_config,this.host=this.getConfigString("general","host")!==void 0?this.getConfigString("general","host"):this.host,this.getConfigString("gateway","host")!==void 0){let e={host:this.getConfigString("gateway","host")};this.getConfigString("gateway","protocol")!==void 0&&(e.protocol=this.getConfigString("gateway","protocol")),this.getConfigInt("gateway","port")!==void 0&&(e.port=this.getConfigInt("gateway","port")),this.getConfigString("gateway","path_params_login")!==void 0&&(e.path_params_login=this.getConfigString("gateway","path_params_login")),this.getConfigString("gateway","path_params_api")!==void 0&&(e.path_params_api=this.getConfigString("gateway","path_params_api")),this.getConfigString("gateway","username")!==void 0&&(e.username=this.getConfigString("gateway","username")),this.getConfigString("gateway","password")!==void 0&&(e.password=this.getConfigString("gateway","password")),this.setGateway(e)}else this.setGateway();this.setEnvironment(),this.logger.setLogger()}setGateway(e){e?(this.gateway={host:""},e.protocol?this.gateway.protocol=e.protocol:this.gateway.protocol="https",e.host?this.gateway.host=e.host:this.gateway.host="",e.port&&e.port>-1?this.gateway.port=e.port:this.gateway.port=-1,e.path_params_login?(this.gateway.path_params_login=e.path_params_login,this.gateway.path_params_login=this.gateway.path_params_login.replace(/\/+$/,"")):this.gateway.path_params_login="",e.path_params_api?(this.gateway.path_params_api=e.path_params_api,this.gateway.path_params_api=this.gateway.path_params_api.replace(/\/+$/,"")):this.gateway.path_params_api="",e.username&&(this.gateway.username=e.username),e.password&&(this.gateway.password=e.password)):this.gateway=void 0}setEnvironment(e){e?this.environment=e:this.environment=this.host?this.host:"mypurecloud.com",this.environment=this.environment.replace(/\/+$/,""),this.environment.startsWith("https://")&&(this.environment=this.environment.substring(8)),this.environment.startsWith("http://")&&(this.environment=this.environment.substring(7)),this.environment.startsWith("api.")&&(this.environment=this.environment.substring(4)),this.basePath=`https://api.${this.environment}`,this.authUrl=`https://login.${this.environment}`}getConfUrl(e,i){if(!this.gateway||!this.gateway.host)return i;var n=this.gateway.protocol+"://"+this.gateway.host;return this.gateway.port>-1&&(n=n+":"+this.gateway.port.toString()),e==="login"?this.gateway.path_params_login&&(this.gateway.path_params_login.startsWith("/")?n=n+this.gateway.path_params_login:n=n+"/"+this.gateway.path_params_login):this.gateway.path_params_api&&(this.gateway.path_params_api.startsWith("/")?n=n+this.gateway.path_params_api:n=n+"/"+this.gateway.path_params_api),n}getConfigString(e,i){if(this.config._sections[e])return this.config._sections[e][i]}getConfigBoolean(e,i){if(this.config._sections[e]&&this.config._sections[e][i]!==void 0)return typeof this.config._sections[e][i]=="string"?this.config._sections[e][i]==="true":this.config._sections[e][i]}getConfigInt(e,i){if(this.config._sections[e]&&this.config._sections[e][i])return typeof this.config._sections[e][i]=="string"?parseInt(this.config._sections[e][i]):this.config._sections[e][i]}},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;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 SA,typeof window<"u"&&(window.ApiClient=this)}setReturnExtendedResponses(e){this.returnExtended=e}setPersistSettings(e,i){this.persistSettings=e,this.settingsPrefix=i?i.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 i=JSON.parse(JSON.stringify(this.authData));delete i.state,localStorage.setItem(`${this.settingsPrefix}_auth_data`,JSON.stringify(i))}catch(i){console.error(i)}}_loadSettings(){if(this.persistSettings!==!0||!this.hasLocalStorage)return;let e=this.authData.state;this.authData=localStorage.getItem(`${this.settingsPrefix}_auth_data`),this.authData?this.authData=JSON.parse(this.authData):this.authData={},this.authData.accessToken&&this.setAccessToken(this.authData.accessToken),this.authData.state=e}_clearSettings(){try{if(this.authData&&this.authData.accessToken&&(this.authData.accessToken=null),this.authentications["PureCloud OAuth"]&&this.authentications["PureCloud OAuth"].accessToken&&(this.authentications["PureCloud OAuth"].accessToken=null),this.authData&&this.authData.state&&(this.authData.state=null),this.authData&&this.authData.error&&(this.authData.error=null),this.authData&&this.authData.error_description&&(this.authData.error_description=null),this.authData&&this.authData.tokenExpiryTime&&(this.authData.tokenExpiryTime=0),this.authData&&this.authData.tokenExpiryTimeString&&(this.authData.tokenExpiryTimeString=null),this.persistSettings!==!0||!this.hasLocalStorage)return;let e=JSON.parse(JSON.stringify(this.authData));delete e.state,localStorage.setItem(`${this.settingsPrefix}_auth_data`,JSON.stringify(e))}catch(e){console.error(e)}}setEnvironment(e){this.config.setEnvironment(e)}setDefaultHeaders(e){if(!e||typeof e!="object")throw new Error("default headers must be a map");this.defaultHeaders=e}getDefaultHeaders(){return this.defaultHeaders}setGenesysAppHeader(e){if(!e||typeof e!="string")throw new Error("headerValue must be a non empty string");this.defaultHeaders?this.defaultHeaders["Genesys-App"]=e:this.defaultHeaders={"Genesys-App":e}}getGenesysAppHeader(){return this.defaultHeaders&&this.defaultHeaders["Genesys-App"]?this.defaultHeaders["Genesys-App"]:null}setHttpClient(e){if(!(e instanceof El))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 pd(this.timeout,this.proxyAgent),this.httpClient)}setMTLSCertificates(e,i,n){if(typeof window>"u"){let a={};e&&(a.cert=require("fs").readFileSync(e)),i&&(a.key=require("fs").readFileSync(i)),n&&(a.ca=require("fs").readFileSync(n)),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,i,n){if(typeof window>"u"){let a={};e&&(a.cert=e),i&&(a.key=i),n&&(a.ca=n),a.rejectUnauthorized=!0,this.proxyAgent=new require("https").Agent(a),this.getHttpClient().setHttpsAgent(this.proxyAgent)}else throw new Error("MTLS authentication is managed by the Browser itself. MTLS certificates cannot be set via code on Browser.")}setGateway(e){this.config.setGateway(e)}loginImplicitGrant(e,i,n){let a=this._setValuesFromUrlHash();return this.clientId=e,this.redirectUri=i,n||(n={}),new Promise((r,s)=>{if(n.org&&!n.provider?s(new Error("opts.provider must be set if opts.org is set")):n.provider&&!n.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&&n.state&&(this.authData.state=n.state),r(this.authData)}).catch(o=>{var l={client_id:encodeURIComponent(this.clientId),redirect_uri:encodeURIComponent(this.redirectUri),response_type:"token"};n.state&&(l.state=encodeURIComponent(n.state)),n.org&&(l.org=encodeURIComponent(n.org)),n.provider&&(l.provider=encodeURIComponent(n.provider)),n.prompt&&n.prompt=="login"&&(l.prompt=encodeURIComponent(n.prompt));var u=this._buildAuthUrl("oauth/authorize",l);window.location.replace(u)})})}loginClientCredentialsGrant(e,i){this.clientId=e;var n=Buffer.from(`${e}:${i}`).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 ${n}`};var l=new Zt(`${a}/oauth/token`,"POST",o,null,"grant_type=client_credentials",this.timeout);this.getHttpClient().request(l).then(c=>{this.config.logger.log("trace",c.status,"POST",`${a}/oauth/token`,o,c.headers,{grant_type:"client_credentials"},void 0),this.config.logger.log("debug",c.status,"POST",`${a}/oauth/token`,o,void 0,{grant_type:"client_credentials"},void 0),this.setAccessToken(c.data.access_token),this.authData.tokenExpiryTime=new Date().getTime()+c.data.expires_in*1e3,this.authData.tokenExpiryTimeString=new Date(this.authData.tokenExpiryTime).toUTCString(),r(this.authData)}).catch(c=>{c.response&&this.config.logger.log("error",c.response.status,"POST",`${a}/oauth/token`,o,c.response.headers,{grant_type:"client_credentials"},c.response.data),s(c)})})}loginSaml2BearerGrant(e,i,n,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+":"+i).toString("base64"),u=this._formAuthRequest(l,{grant_type:"urn:ietf:params:oauth:grant-type:saml2-bearer",orgName:n,assertion:a});u.proxy=this.proxy;var c={grant_type:"urn:ietf:params:oauth:grant-type:saml2-bearer",orgName:n,assertion:a};u.then(p=>{this.config.logger.log("trace",p.status,"POST",`${r}/oauth/token`,u.headers,p.headers,c,void 0),this.config.logger.log("debug",p.status,"POST",`${r}/oauth/token`,u.headers,void 0,c,void 0);var d=p.data.access_token;this.setAccessToken(d),this.authData.tokenExpiryTime=new Date().getTime()+p.data.expires_in*1e3,this.authData.tokenExpiryTimeString=new Date(this.authData.tokenExpiryTime).toUTCString(),s(this.authData)}).catch(p=>{p.response&&this.config.logger.log("error",p.response.status,"POST",`${r}/oauth/token`,u.headers,p.response.headers,c,p.response.data),o(p)})})}authorizePKCEGrant(e,i,n,a){this.clientId=e;var r=this.config.getConfUrl("login",`https://login.${this.config.environment}`);return new Promise((s,o)=>{var l={"Content-Type":"application/x-www-form-urlencoded"},u=tI.default.stringify({grant_type:"authorization_code",code:n,code_verifier:i,client_id:e,redirect_uri:a}),c=new Zt(`${r}/oauth/token`,"POST",l,null,u,this.timeout);let p=this.getHttpClient();var d={grant_type:"authorization_code",code:n,code_verifier:i,client_id:e,redirect_uri:a};p.request(c).then(h=>{this.config.logger.log("trace",h.status,"POST",`${r}/oauth/token`,c.headers,h.headers,d,void 0),this.config.logger.log("debug",h.status,"POST",`${r}/oauth/token`,c.headers,void 0,d,void 0);var g=h.data.access_token;let m={accessToken:g};h.data.expires_in!==null&&h.data.expires_in!==void 0&&(m.tokenExpiryTime=new Date().getTime()+h.data.expires_in*1e3,m.tokenExpiryTimeString=new Date(m.tokenExpiryTime).toUTCString()),this._saveSettings(m),s(this.authData)}).catch(h=>{h.response&&this.config.logger.log("error",h.response.status,"POST",`${r}/oauth/token`,c.headers,h.response.headers,d,h.response.data),o(h)})})}generatePKCECodeVerifier(e){if(e<43||e>128)throw new Error("PKCE Code Verifier (length) must be between 43 and 128 characters");if(typeof window>"u")try{let i=require("crypto").getRandomValues,n="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-._~";return Array.from(i(new Uint32Array(e))).map(r=>n[r%n.length]).join("")}catch{throw new Error("Crypto module is missing/not supported.")}else{let i="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-._~";return Array.from(crypto.getRandomValues(new Uint32Array(e))).map(a=>i[a%i.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 i=require("crypto").createHash,n=new TextEncoder().encode(e);return new Promise((a,r)=>{let s=i("sha256").update(n).digest(),o=Buffer.from(s).toString("base64url");a(o)})}catch{throw new Error("Crypto module is missing/not supported.")}else{let i=new TextEncoder().encode(e);return new Promise((n,a)=>{window.crypto.subtle.digest("SHA-256",i).then(r=>{let o=btoa(String.fromCharCode(...new Uint8Array(r))).replaceAll("+","-").replaceAll("/","_");o=o.split("=")[0],n(o)}).catch(r=>a(new Error(`Code Challenge Error ${r}`)))})}}loginPKCEGrant(e,i,n,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=i,this.codeVerifier=a,n||(n={}),new Promise((s,o)=>{if(n.org&&!n.provider)return o(new Error("opts.provider must be set if opts.org is set"));if(n.provider&&!n.org)return o(new Error("opts.org must be set if opts.provider is set"));if(r&&r.error)return this.hasLocalStorage&&sessionStorage.removeItem("genesys_cloud_sdk_pkce_code_verifier"),this._saveSettings({accessToken:void 0}),o(new Error(`[${r.error}] ${r.error_description}`));r&&r.code?(this.codeVerifier||this.hasLocalStorage&&(this.codeVerifier=sessionStorage.getItem("genesys_cloud_sdk_pkce_code_verifier")),this.authorizePKCEGrant(this.clientId,this.codeVerifier,r.code,this.redirectUri).then(()=>{this._testTokenAccess().then(()=>{!this.authData.state&&r.state&&(this.authData.state=r.state),this.hasLocalStorage&&sessionStorage.removeItem("genesys_cloud_sdk_pkce_code_verifier"),s(this.authData)}).catch(l=>(this._saveSettings({accessToken:void 0}),this.hasLocalStorage&&sessionStorage.removeItem("genesys_cloud_sdk_pkce_code_verifier"),o(new Error(`[${l.name}] ${l.msg}`))))}).catch(l=>(this._saveSettings({accessToken:void 0}),this.hasLocalStorage&&sessionStorage.removeItem("genesys_cloud_sdk_pkce_code_verifier"),o(new Error(`[${l.name}] ${l.msg}`))))):this._testTokenAccess().then(()=>{!this.authData.state&&n.state&&(this.authData.state=n.state),s(this.authData)}).catch(l=>{this.codeVerifier||(this.codeVerifier=this.generatePKCECodeVerifier(128),this.hasLocalStorage&&sessionStorage.setItem("genesys_cloud_sdk_pkce_code_verifier",this.codeVerifier)),this.computePKCECodeChallenge(this.codeVerifier).then(u=>{var c={client_id:encodeURIComponent(this.clientId),redirect_uri:encodeURIComponent(this.redirectUri),code_challenge:encodeURIComponent(u),response_type:"code",code_challenge_method:"S256"};n.state&&(c.state=encodeURIComponent(n.state)),n.org&&(c.org=encodeURIComponent(n.org)),n.provider&&(c.provider=encodeURIComponent(n.provider)),n.prompt&&n.prompt=="login"&&(c.prompt=encodeURIComponent(n.prompt));var p=this._buildAuthUrl("oauth/authorize",c);window.location.replace(p)}).catch(u=>o(new Error(`[${u.name}]`)))})})}_setValuesFromUrlQuery(){if(!(typeof window<"u"&&window.location.search))return;let e={},i=new URLSearchParams(window.location.search),n=i.get("code"),a=i.get("error"),r=i.get("error_description"),s=i.get("state");if(a)return e.error=a,r&&(e.error_description=r),e;n&&(e.code=n,s&&(e.state=s));var o,l,u=window.location;return"replaceState"in history?history.replaceState("",document.title,u.pathname):(o=document.body.scrollTop,l=document.body.scrollLeft,history.pushState("",document.title,u.pathname),document.body.scrollTop=o,document.body.scrollLeft=l),e}loginCodeAuthorizationGrant(e,i,n,a){return this.clientId=e,this.clientSecret=i,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+":"+i).toString("base64"),l=this._formAuthRequest(o,{grant_type:"authorization_code",code:n,redirect_uri:a});l.proxy=this.proxy;var u={grant_type:"authorization_code",code:n,redirect_uri:a};this._handleCodeAuthorizationResponse(l,u,r,s)})}refreshCodeAuthorizationGrant(e,i,n){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+":"+i).toString("base64"),o=this._formAuthRequest(s,{grant_type:"refresh_token",refresh_token:n});o.proxy=this.proxy;var l={grant_type:"refresh_token",refresh_token:n};this._handleCodeAuthorizationResponse(o,l,a,r)})}_handleCodeAuthorizationResponse(e,i,n,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,i,void 0),this.config.logger.log("debug",s.status,"POST",`${r}/oauth/token`,e.headers,void 0,i,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(),n(this.authData)}).catch(s=>{s.response&&this.config.logger.log("error",s.response.status,"POST",`${r}/oauth/token`,e.headers,s.response.headers,i,s.response.data),a(s)})}_formAuthRequest(e,i){var n=this.config.getConfUrl("login",`https://login.${this.config.environment}`),a={Authorization:"Basic "+e,"Content-Type":"application/x-www-form-urlencoded"},r=new Zt(`${n}/oauth/token`,"POST",a,null,tI.default.stringify(i),this.timeout);return this.getHttpClient().request(r)}_handleExpiredAccessToken(){return new Promise((e,i)=>{if(typeof window<"u"){i(new Error("This method is not supported in a browser."));return}this.refreshInProgress?this._sleep(this.config.refresh_token_wait_max).then(()=>{this.refreshInProgress?i(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(n=>{this.refreshInProgress=!1,i(n)}))})}_sleep(e){return new Promise(i=>setTimeout(i,e))}_testTokenAccess(){return new Promise((e,i)=>{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(()=>{e()}).catch(n=>{this._saveSettings({accessToken:void 0}),i(n)})})}_setValuesFromUrlHash(){if(!(typeof window<"u"&&window.location.hash))return;let e=new RegExp("^#*(.+?)=(.+?)$","i"),i={};if(window.location.hash.split("&").forEach(s=>{let o=e.exec(s);o&&(i[o[1]]=decodeURIComponent(decodeURIComponent(o[2].replace(/\+/g,"%20"))))}),i.error)return i;if(i.access_token){let s={};i.state&&(s.state=i.state),i.expires_in&&(s.tokenExpiryTime=new Date().getTime()+parseInt(i.expires_in.replace(/\+/g,"%20"))*1e3,s.tokenExpiryTimeString=new Date(s.tokenExpiryTime).toUTCString()),s.accessToken=i.access_token.replace(/\+/g,"%20");var n,a,r=window.location;"replaceState"in history?history.replaceState("",document.title,r.pathname+r.search):(n=document.body.scrollTop,a=document.body.scrollLeft,r.hash="",document.body.scrollTop=n,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 i={client_id:encodeURIComponent(this.clientId)};e&&(i.redirect_uri=encodeURI(e));var n=this._buildAuthUrl("logout",i);window.location.replace(n)}_buildAuthUrl(e,i){i||(i={});var n=this.config.getConfUrl("login",this.config.authUrl);return Object.keys(i).reduce((a,r)=>i[r]?`${a}&${r}=${i[r]}`:a,`${n}/${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 i={};for(var n in e)e.hasOwnProperty(n)&&e[n]!==void 0&&(i[encodeURIComponent(n)]=Array.isArray(e[n])?e[n].join(","):this.paramToString(e[n]));return i}addHeaders(e,...i){return e?e=Object.assign(e,...i):e=Object.assign(...i),e}buildUrl(e,i){e.match(/^\//)||(e=`/${e}`);var n=this.config.getConfUrl("api",this.config.basePath)+e;return n=n.replace(/\{([\w-]+)\}/g,(a,r)=>{var s;return i.hasOwnProperty(r)?s=this.paramToString(i[r]):s=a,encodeURIComponent(s)}),n}isJsonMime(e){return!!(e&&e.match(/^application\/json(;.*)?$/i))}jsonPreferredMime(e){for(var i=0;i"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 i={};for(var n in e)if(e.hasOwnProperty(n)&&e[n]!==void 0){var a=e[n];this.isFileParam(a)||Array.isArray(a)?i[n]=a:i[n]=this.paramToString(a)}return i}buildCollectionParam(e,i){if(e)switch(Array.isArray(e)||(e=[e]),i){case"csv":return e.map(n=>this.paramToString(n)).join(",");case"ssv":return e.map(n=>this.paramToString(n)).join(" ");case"tsv":return e.map(n=>this.paramToString(n)).join(" ");case"pipes":return e.map(n=>this.paramToString(n)).join("|");case"multi":return e.map(n=>this.paramToString(n));default:throw new Error(`Unknown collection format: ${i}`)}}applyAuthToRequest(e,i){i.forEach(n=>{var a=this.authentications[n];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,i,n,a,r,s,o,l,u,c,p){return new Promise((d,h)=>{g(this);function g(m){var f=m.buildUrl(e,n),v=new Zt(f,i,null,m.serialize(a),null,m.timeout);m.applyAuthToRequest(v,l);let y=m.defaultHeaders,A=m.normalizeParams(r);if(v.headers=m.addHeaders(v.headers,y,A),p){if(typeof p!="object")throw new Error("Per-request headers must be a valid object");for(let[k,Q]of Object.entries(p)){if(typeof k!="string"||typeof Q!="string")throw new Error(`Invalid header: "${k}" must have string name and value`);if(!/^[!#$%&'*+\-.0-9A-Z^_`a-z|~]+$/.test(k))throw new Error(`Invalid header name: "${k}" - must be a valid HTTP token`);for(let Z=0;Z=33&&ie<=126||ie===32||ie===9||ie>=128&&ie<=255))throw new Error(`Invalid header value for "${k}": contains invalid characters`)}v.headers[k]=Q}}var b=m.jsonPreferredMime(u);if(b?v.headers["Content-Type"]=b:v.headers["Content-Type"]||(v.headers["Content-Type"]="application/json"),b==="application/x-www-form-urlencoded")v.setData(m.normalizeParams(s));else if(b=="multipart/form-data"){var O=m.normalizeParams(s);for(var $ in O)if(O.hasOwnProperty($)){var N=new FormData;N.set($,O[$]),v.setData(N)}}else o&&v.setData(o);var X=m.jsonPreferredMime(c);X&&(v.headers.Accept=X),m.getHttpClient().request(v).then(k=>{var Q=m.returnExtended===!0?{status:k.status,statusText:k.statusText,headers:k.headers,body:k.data,text:k.text,error:null}:k.data?k.data:k.text;m.config.logger.log("trace",k.status,i,f,v.headers,k.headers,o,void 0),m.config.logger.log("debug",k.status,i,f,v.headers,void 0,o,void 0),d(Q)}).catch(k=>{var Q=k;k.response&&k.response.status==401&&m.config.refresh_access_token&&m.authData.refreshToken&&m.authData.refreshToken!==""?m._handleExpiredAccessToken().then(()=>{g(m)}).catch(Z=>{h(Z)}):k.response&&(m.config.logger.log("error",k.response.status,i,f,v.headers,k.response.headers,o,k.response.data),Q=m.returnExtended===!0?{status:k.response.status,statusText:k.response.statusText,headers:k.response.headers,body:k.response.data,text:k.response.text,error:k}:k.response.data?k.response.data:k.response.text),h(Q)})}})}},OA=class{constructor(e){this.apiClient=e||q.instance}deleteConversationsSummariesSetting(e,i){if(i=i||{},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"],i.customHeaders)}deleteGuideJobs(e,i){if(i=i||{},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"],i.customHeaders)}getConversationsSummariesSetting(e,i){if(i=i||{},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"],i.customHeaders)}getConversationsSummariesSettings(e){return e=e||{},this.apiClient.callApi("/api/v2/conversations/summaries/settings","GET",{},{language:e.language,name:e.name,sortBy:e.sortBy,sortOrder:e.sortOrder,pageNumber:e.pageNumber,pageSize:e.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getGuide(e,i){if(i=i||{},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"],i.customHeaders)}getGuideJob(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "guideId" when calling getGuideJob';if(i==null||i==="")throw'Missing the required parameter "jobId" when calling getGuideJob';return this.apiClient.callApi("/api/v2/guides/{guideId}/jobs/{jobId}","GET",{guideId:e,jobId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getGuideVersion(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "guideId" when calling getGuideVersion';if(i==null||i==="")throw'Missing the required parameter "versionId" when calling getGuideVersion';return this.apiClient.callApi("/api/v2/guides/{guideId}/versions/{versionId}","GET",{guideId:e,versionId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getGuideVersionJob(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "guideId" when calling getGuideVersionJob';if(i==null||i==="")throw'Missing the required parameter "versionId" when calling getGuideVersionJob';if(n==null||n==="")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:i,jobId:n},{},{},{},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,i){if(i=i||{},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"],i.customHeaders)}patchGuide(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "guideId" when calling patchGuide';if(i==null)throw'Missing the required parameter "body" when calling patchGuide';return this.apiClient.callApi("/api/v2/guides/{guideId}","PATCH",{guideId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchGuideVersion(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "guideId" when calling patchGuideVersion';if(i==null||i==="")throw'Missing the required parameter "versionId" when calling patchGuideVersion';if(n==null)throw'Missing the required parameter "body" when calling patchGuideVersion';return this.apiClient.callApi("/api/v2/guides/{guideId}/versions/{versionId}","PATCH",{guideId:e,versionId:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postConversationsSummariesPreview(e,i){if(i=i||{},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"],i.customHeaders)}postConversationsSummariesSettings(e,i){if(i=i||{},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"],i.customHeaders)}postGuideSessionTurns(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "guideId" when calling postGuideSessionTurns';if(i==null||i==="")throw'Missing the required parameter "guideSessionId" when calling postGuideSessionTurns';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postGuideVersionJobs(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "guideId" when calling postGuideVersionJobs';if(i==null||i==="")throw'Missing the required parameter "versionId" when calling postGuideVersionJobs';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postGuideVersions(e,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "guideId" when calling postGuideVersions';return this.apiClient.callApi("/api/v2/guides/{guideId}/versions","POST",{guideId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postGuides(e,i){if(i=i||{},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"],i.customHeaders)}postGuidesJobs(e,i){if(i=i||{},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"],i.customHeaders)}postGuidesUploads(e,i){if(i=i||{},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"],i.customHeaders)}putConversationsSummariesSetting(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "summarySettingId" when calling putConversationsSummariesSetting';if(i==null)throw'Missing the required parameter "body" when calling putConversationsSummariesSetting';return this.apiClient.callApi("/api/v2/conversations/summaries/settings/{summarySettingId}","PUT",{summarySettingId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}},xA=class{constructor(e){this.apiClient=e||q.instance}deleteAssistant(e,i){if(i=i||{},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"],i.customHeaders)}deleteAssistantQueue(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "assistantId" when calling deleteAssistantQueue';if(i==null||i==="")throw'Missing the required parameter "queueId" when calling deleteAssistantQueue';return this.apiClient.callApi("/api/v2/assistants/{assistantId}/queues/{queueId}","DELETE",{assistantId:e,queueId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteAssistantQueues(e,i){if(i=i||{},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:i.queueIds},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}deleteAssistantsAgentchecklist(e,i){if(i=i||{},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"],i.customHeaders)}getAssistant(e,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "assistantId" when calling getAssistant';return this.apiClient.callApi("/api/v2/assistants/{assistantId}","GET",{assistantId:e},{expand:i.expand,languageVariation:i.languageVariation,fallbackToPrimaryAssistant:i.fallbackToPrimaryAssistant},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getAssistantQueue(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "assistantId" when calling getAssistantQueue';if(i==null||i==="")throw'Missing the required parameter "queueId" when calling getAssistantQueue';return this.apiClient.callApi("/api/v2/assistants/{assistantId}/queues/{queueId}","GET",{assistantId:e,queueId:i},{expand:n.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getAssistantQueueUsersJob(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "assistantId" when calling getAssistantQueueUsersJob';if(i==null||i==="")throw'Missing the required parameter "queueId" when calling getAssistantQueueUsersJob';if(n==null||n==="")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:i,jobId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getAssistantQueues(e,i){if(i=i||{},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:i.before,after:i.after,pageSize:i.pageSize,expand:i.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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"],i.customHeaders)}getAssistantsAgentchecklists(e){return e=e||{},this.apiClient.callApi("/api/v2/assistants/agentchecklists","GET",{},{before:e.before,after:e.after,pageSize:e.pageSize,namePrefix:e.namePrefix,language:e.language,sortOrder:e.sortOrder,sortBy:e.sortBy},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getAssistantsAgentchecklistsLanguages(e){return e=e||{},this.apiClient.callApi("/api/v2/assistants/agentchecklists/languages","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getAssistantsQueues(e){return e=e||{},this.apiClient.callApi("/api/v2/assistants/queues","GET",{},{before:e.before,after:e.after,pageSize:e.pageSize,queueIds:e.queueIds,expand:e.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}patchAssistant(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "assistantId" when calling patchAssistant';if(i==null)throw'Missing the required parameter "body" when calling patchAssistant';return this.apiClient.callApi("/api/v2/assistants/{assistantId}","PATCH",{assistantId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchAssistantQueues(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "assistantId" when calling patchAssistantQueues';if(i==null)throw'Missing the required parameter "body" when calling patchAssistantQueues';return this.apiClient.callApi("/api/v2/assistants/{assistantId}/queues","PATCH",{assistantId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postAssistantQueueUsersBulkAdd(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "assistantId" when calling postAssistantQueueUsersBulkAdd';if(i==null||i==="")throw'Missing the required parameter "queueId" when calling postAssistantQueueUsersBulkAdd';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postAssistantQueueUsersBulkRemove(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "assistantId" when calling postAssistantQueueUsersBulkRemove';if(i==null||i==="")throw'Missing the required parameter "queueId" when calling postAssistantQueueUsersBulkRemove';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postAssistantQueueUsersJobs(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "assistantId" when calling postAssistantQueueUsersJobs';if(i==null||i==="")throw'Missing the required parameter "queueId" when calling postAssistantQueueUsersJobs';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postAssistantQueueUsersQuery(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "assistantId" when calling postAssistantQueueUsersQuery';if(i==null||i==="")throw'Missing the required parameter "queueId" when calling postAssistantQueueUsersQuery';if(n==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:i},{expand:this.apiClient.buildCollectionParam(a.expand,"multi")},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postAssistants(e,i){if(i=i||{},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"],i.customHeaders)}postAssistantsAgentchecklists(e,i){if(i=i||{},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"],i.customHeaders)}putAssistantQueue(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "assistantId" when calling putAssistantQueue';if(i==null||i==="")throw'Missing the required parameter "queueId" when calling putAssistantQueue';if(n==null)throw'Missing the required parameter "body" when calling putAssistantQueue';return this.apiClient.callApi("/api/v2/assistants/{assistantId}/queues/{queueId}","PUT",{assistantId:e,queueId:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}putAssistantsAgentchecklist(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "agentChecklistId" when calling putAssistantsAgentchecklist';if(i==null)throw'Missing the required parameter "body" when calling putAssistantsAgentchecklist';return this.apiClient.callApi("/api/v2/assistants/agentchecklists/{agentChecklistId}","PUT",{agentChecklistId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}},TA=class{constructor(e){this.apiClient=e||q.instance}getAssistantCopilot(e,i){if(i=i||{},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"],i.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,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "assistantId" when calling putAssistantCopilot';if(i==null)throw'Missing the required parameter "body" when calling putAssistantCopilot';return this.apiClient.callApi("/api/v2/assistants/{assistantId}/copilot","PUT",{assistantId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}},MA=class{constructor(e){this.apiClient=e||q.instance}deleteUsersAgentuiAgentsAutoanswerAgentIdSettings(e,i){if(i=i||{},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"],i.customHeaders)}getUsersAgentuiAgentsAutoanswerAgentIdSettings(e,i){if(i=i||{},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"],i.customHeaders)}patchUsersAgentuiAgentsAutoanswerAgentIdSettings(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "agentId" when calling patchUsersAgentuiAgentsAutoanswerAgentIdSettings';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putUsersAgentuiAgentsAutoanswerAgentIdSettings(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "agentId" when calling putUsersAgentuiAgentsAutoanswerAgentIdSettings';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}},EA=class{constructor(e){this.apiClient=e||q.instance}deleteAlertingAlert(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getAlertingAlert(e,i){if(i=i||{},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"],i.customHeaders)}getAlertingRule(e,i){if(i=i||{},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"],i.customHeaders)}patchAlertingAlert(e,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "alertId" when calling patchAlertingAlert';return this.apiClient.callApi("/api/v2/alerting/alerts/{alertId}","PATCH",{alertId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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"],i.customHeaders)}patchAlertingRulesBulk(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}postAlertingRulesBulkRemove(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "alertId" when calling putAlertingAlert';return this.apiClient.callApi("/api/v2/alerting/alerts/{alertId}","PUT",{alertId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}putAlertingRule(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "ruleId" when calling putAlertingRule';if(i==null)throw'Missing the required parameter "body" when calling putAlertingRule';return this.apiClient.callApi("/api/v2/alerting/rules/{ruleId}","PUT",{ruleId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}},kA=class{constructor(e){this.apiClient=e||q.instance}deleteAnalyticsActionsAggregatesJob(e,i){if(i=i||{},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"],i.customHeaders)}deleteAnalyticsAgentcopilotsAggregatesJob(e,i){if(i=i||{},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"],i.customHeaders)}deleteAnalyticsAgentutilizationsAggregatesJob(e,i){if(i=i||{},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"],i.customHeaders)}deleteAnalyticsBotsAggregatesJob(e,i){if(i=i||{},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"],i.customHeaders)}deleteAnalyticsCasemanagementAggregatesJob(e,i){if(i=i||{},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"],i.customHeaders)}deleteAnalyticsConversationsAggregatesJob(e,i){if(i=i||{},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"],i.customHeaders)}deleteAnalyticsConversationsDetailsJob(e,i){if(i=i||{},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"],i.customHeaders)}deleteAnalyticsCopilotsAggregatesJob(e,i){if(i=i||{},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"],i.customHeaders)}deleteAnalyticsEvaluationsAggregatesJob(e,i){if(i=i||{},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"],i.customHeaders)}deleteAnalyticsFlowexecutionsAggregatesJob(e,i){if(i=i||{},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"],i.customHeaders)}deleteAnalyticsFlowsAggregatesJob(e,i){if(i=i||{},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"],i.customHeaders)}deleteAnalyticsJourneysAggregatesJob(e,i){if(i=i||{},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"],i.customHeaders)}deleteAnalyticsKnowledgeAggregatesJob(e,i){if(i=i||{},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"],i.customHeaders)}deleteAnalyticsResolutionsAggregatesJob(e,i){if(i=i||{},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"],i.customHeaders)}deleteAnalyticsSummariesAggregatesJob(e,i){if(i=i||{},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"],i.customHeaders)}deleteAnalyticsSurveysAggregatesJob(e,i){if(i=i||{},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"],i.customHeaders)}deleteAnalyticsTaskmanagementAggregatesJob(e,i){if(i=i||{},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"],i.customHeaders)}deleteAnalyticsTranscriptsAggregatesJob(e,i){if(i=i||{},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"],i.customHeaders)}deleteAnalyticsUsersAggregatesJob(e,i){if(i=i||{},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"],i.customHeaders)}deleteAnalyticsUsersDetailsJob(e,i){if(i=i||{},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"],i.customHeaders)}getAnalyticsActionsAggregatesJob(e,i){if(i=i||{},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"],i.customHeaders)}getAnalyticsActionsAggregatesJobResults(e,i){if(i=i||{},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:i.cursor},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getAnalyticsAgentStatus(e,i){if(i=i||{},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"],i.customHeaders)}getAnalyticsAgentcopilotsAggregatesJob(e,i){if(i=i||{},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"],i.customHeaders)}getAnalyticsAgentcopilotsAggregatesJobResults(e,i){if(i=i||{},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:i.cursor},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getAnalyticsAgentutilizationsAggregatesJob(e,i){if(i=i||{},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"],i.customHeaders)}getAnalyticsAgentutilizationsAggregatesJobResults(e,i){if(i=i||{},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:i.cursor},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getAnalyticsBotflowDivisionsReportingturns(e,i){if(i=i||{},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:i.after,pageSize:i.pageSize,interval:i.interval,actionId:i.actionId,sessionId:i.sessionId,language:i.language,askActionResults:i.askActionResults},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getAnalyticsBotflowReportingturns(e,i){if(i=i||{},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:i.after,pageSize:i.pageSize,interval:i.interval,actionId:i.actionId,sessionId:i.sessionId,language:i.language,askActionResults:i.askActionResults},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getAnalyticsBotflowSessions(e,i){if(i=i||{},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:i.after,pageSize:i.pageSize,interval:i.interval,botResultCategories:i.botResultCategories,endLanguage:i.endLanguage},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getAnalyticsBotsAggregatesJob(e,i){if(i=i||{},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"],i.customHeaders)}getAnalyticsBotsAggregatesJobResults(e,i){if(i=i||{},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:i.cursor},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getAnalyticsCasemanagementAggregatesJob(e,i){if(i=i||{},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"],i.customHeaders)}getAnalyticsCasemanagementAggregatesJobResults(e,i){if(i=i||{},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:i.cursor},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getAnalyticsConversationDetails(e,i){if(i=i||{},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"],i.customHeaders)}getAnalyticsConversationsAggregatesJob(e,i){if(i=i||{},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"],i.customHeaders)}getAnalyticsConversationsAggregatesJobResults(e,i){if(i=i||{},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:i.cursor},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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"],i.customHeaders)}getAnalyticsConversationsDetailsJobResults(e,i){if(i=i||{},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:i.cursor,pageSize:i.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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"],i.customHeaders)}getAnalyticsCopilotsAggregatesJobResults(e,i){if(i=i||{},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:i.cursor},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getAnalyticsDataextractionDownload(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getAnalyticsEvaluationsAggregatesJobResults(e,i){if(i=i||{},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:i.cursor},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getAnalyticsFlowexecutionsAggregatesJob(e,i){if(i=i||{},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"],i.customHeaders)}getAnalyticsFlowexecutionsAggregatesJobResults(e,i){if(i=i||{},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:i.cursor},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getAnalyticsFlowsAggregatesJob(e,i){if(i=i||{},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"],i.customHeaders)}getAnalyticsFlowsAggregatesJobResults(e,i){if(i=i||{},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:i.cursor},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getAnalyticsJourneysAggregatesJob(e,i){if(i=i||{},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"],i.customHeaders)}getAnalyticsJourneysAggregatesJobResults(e,i){if(i=i||{},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:i.cursor},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getAnalyticsKnowledgeAggregatesJob(e,i){if(i=i||{},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"],i.customHeaders)}getAnalyticsKnowledgeAggregatesJobResults(e,i){if(i=i||{},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:i.cursor},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getAnalyticsReportingDashboardsUser(e,i){if(i=i||{},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"],i.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,i,n){if(n=n||{},e==null)throw'Missing the required parameter "dashboardType" when calling getAnalyticsReportingSettingsDashboardsQuery';if(i==null)throw'Missing the required parameter "dashboardAccessFilter" when calling getAnalyticsReportingSettingsDashboardsQuery';return this.apiClient.callApi("/api/v2/analytics/reporting/settings/dashboards/query","GET",{},{name:n.name,dashboardType:e,dashboardState:n.dashboardState,dashboardAccessFilter:i,sortBy:n.sortBy,pageNumber:n.pageNumber,pageSize:n.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getAnalyticsReportingSettingsUserDashboards(e,i){if(i=i||{},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:i.sortBy,pageNumber:i.pageNumber,pageSize:i.pageSize,publicOnly:i.publicOnly,favoriteOnly:i.favoriteOnly,deletedOnly:i.deletedOnly,name:i.name},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getAnalyticsResolutionsAggregatesJob(e,i){if(i=i||{},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"],i.customHeaders)}getAnalyticsResolutionsAggregatesJobResults(e,i){if(i=i||{},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:i.cursor},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getAnalyticsSummariesAggregatesJob(e,i){if(i=i||{},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"],i.customHeaders)}getAnalyticsSummariesAggregatesJobResults(e,i){if(i=i||{},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:i.cursor},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getAnalyticsSurveysAggregatesJob(e,i){if(i=i||{},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"],i.customHeaders)}getAnalyticsSurveysAggregatesJobResults(e,i){if(i=i||{},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:i.cursor},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getAnalyticsTaskmanagementAggregatesJob(e,i){if(i=i||{},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"],i.customHeaders)}getAnalyticsTaskmanagementAggregatesJobResults(e,i){if(i=i||{},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:i.cursor},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getAnalyticsTranscriptsAggregatesJob(e,i){if(i=i||{},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"],i.customHeaders)}getAnalyticsTranscriptsAggregatesJobResults(e,i){if(i=i||{},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:i.cursor},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getAnalyticsUsersAggregatesJob(e,i){if(i=i||{},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"],i.customHeaders)}getAnalyticsUsersAggregatesJobResults(e,i){if(i=i||{},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:i.cursor},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getAnalyticsUsersDetailsJob(e,i){if(i=i||{},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"],i.customHeaders)}getAnalyticsUsersDetailsJobResults(e,i){if(i=i||{},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:i.cursor,pageSize:i.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsActionsAggregatesJobs(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsActionsAggregatesQuery(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsAgentcopilotsAggregatesJobs(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsAgentcopilotsAggregatesQuery(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsAgentsStatusCounts(e,i){if(i=i||{},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(i.groupBy,"multi")},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postAnalyticsAgentsStatusQuery(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsAgentutilizationsAggregatesJobs(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsAgentutilizationsAggregatesQuery(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsBotsAggregatesJobs(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsBotsAggregatesQuery(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsCasemanagementAggregatesJobs(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsCasemanagementAggregatesQuery(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsConversationDetailsProperties(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postAnalyticsConversationDetailsProperties';if(i==null)throw'Missing the required parameter "body" when calling postAnalyticsConversationDetailsProperties';return this.apiClient.callApi("/api/v2/analytics/conversations/{conversationId}/details/properties","POST",{conversationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postAnalyticsConversationsActivityQuery(e,i){if(i=i||{},e==null)throw'Missing the required parameter "body" when calling postAnalyticsConversationsActivityQuery';return this.apiClient.callApi("/api/v2/analytics/conversations/activity/query","POST",{},{pageSize:i.pageSize,pageNumber:i.pageNumber},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postAnalyticsConversationsAggregatesJobs(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsConversationsAggregatesQuery(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsConversationsDetailsJobs(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsConversationsDetailsQuery(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsCopilotsAggregatesJobs(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsCopilotsAggregatesQuery(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsDataextractionDownloadsBulk(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsEvaluationsAggregatesJobs(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsEvaluationsAggregatesQuery(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsFlowexecutionsAggregatesJobs(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsFlowexecutionsAggregatesQuery(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsFlowsActivityQuery(e,i){if(i=i||{},e==null)throw'Missing the required parameter "body" when calling postAnalyticsFlowsActivityQuery';return this.apiClient.callApi("/api/v2/analytics/flows/activity/query","POST",{},{pageSize:i.pageSize,pageNumber:i.pageNumber},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postAnalyticsFlowsAggregatesJobs(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsFlowsAggregatesQuery(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsFlowsObservationsQuery(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsJourneysAggregatesJobs(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsJourneysAggregatesQuery(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsKnowledgeAggregatesJobs(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsKnowledgeAggregatesQuery(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsQueuesObservationsQuery(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsRatelimitsAggregatesQuery(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsReportingDashboardsUsersBulkRemove(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsReportingExports(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsReportingSettingsDashboardsBulkRemove(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsReportingSettingsDashboardsQuery(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsResolutionsAggregatesJobs(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsResolutionsAggregatesQuery(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsRoutingActivityQuery(e,i){if(i=i||{},e==null)throw'Missing the required parameter "body" when calling postAnalyticsRoutingActivityQuery';return this.apiClient.callApi("/api/v2/analytics/routing/activity/query","POST",{},{pageSize:i.pageSize,pageNumber:i.pageNumber},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postAnalyticsSummariesAggregatesJobs(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsSummariesAggregatesQuery(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsSurveysAggregatesJobs(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsSurveysAggregatesQuery(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsTaskmanagementAggregatesJobs(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsTaskmanagementAggregatesQuery(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsTaskmanagementMetricsQuery(e,i){if(i=i||{},e==null)throw'Missing the required parameter "body" when calling postAnalyticsTaskmanagementMetricsQuery';return this.apiClient.callApi("/api/v2/analytics/taskmanagement/metrics/query","POST",{},{after:i.after,pageSize:i.pageSize},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postAnalyticsTeamsActivityQuery(e,i){if(i=i||{},e==null)throw'Missing the required parameter "body" when calling postAnalyticsTeamsActivityQuery';return this.apiClient.callApi("/api/v2/analytics/teams/activity/query","POST",{},{pageSize:i.pageSize,pageNumber:i.pageNumber},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postAnalyticsTranscriptsAggregatesJobs(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsTranscriptsAggregatesQuery(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsUsersActivityQuery(e,i){if(i=i||{},e==null)throw'Missing the required parameter "body" when calling postAnalyticsUsersActivityQuery';return this.apiClient.callApi("/api/v2/analytics/users/activity/query","POST",{},{pageSize:i.pageSize,pageNumber:i.pageNumber},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postAnalyticsUsersAggregatesJobs(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsUsersAggregatesQuery(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsUsersDetailsJobs(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsUsersDetailsQuery(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsUsersObservationsQuery(e,i){if(i=i||{},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"],i.customHeaders)}putAnalyticsDataretentionSettings(e,i){if(i=i||{},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"],i.customHeaders)}},qA=class{constructor(e){this.apiClient=e||q.instance}deleteArchitectEmergencygroup(e,i){if(i=i||{},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"],i.customHeaders)}deleteArchitectGrammar(e,i){if(i=i||{},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"],i.customHeaders)}deleteArchitectGrammarLanguage(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "grammarId" when calling deleteArchitectGrammarLanguage';if(i==null||i==="")throw'Missing the required parameter "languageCode" when calling deleteArchitectGrammarLanguage';return this.apiClient.callApi("/api/v2/architect/grammars/{grammarId}/languages/{languageCode}","DELETE",{grammarId:e,languageCode:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteArchitectGrammarLanguageFilesDtmf(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "grammarId" when calling deleteArchitectGrammarLanguageFilesDtmf';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteArchitectGrammarLanguageFilesVoice(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "grammarId" when calling deleteArchitectGrammarLanguageFilesVoice';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteArchitectIvr(e,i){if(i=i||{},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"],i.customHeaders)}deleteArchitectPrompt(e,i){if(i=i||{},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:i.allResources},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}deleteArchitectPromptResource(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "promptId" when calling deleteArchitectPromptResource';if(i==null||i==="")throw'Missing the required parameter "languageCode" when calling deleteArchitectPromptResource';return this.apiClient.callApi("/api/v2/architect/prompts/{promptId}/resources/{languageCode}","DELETE",{promptId:e,languageCode:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteArchitectPromptResourceAudio(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "promptId" when calling deleteArchitectPromptResourceAudio';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteArchitectPrompts(e,i){if(i=i||{},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"],i.customHeaders)}deleteArchitectSchedule(e,i){if(i=i||{},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"],i.customHeaders)}deleteArchitectSchedulegroup(e,i){if(i=i||{},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"],i.customHeaders)}deleteArchitectSystempromptResource(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "promptId" when calling deleteArchitectSystempromptResource';if(i==null||i==="")throw'Missing the required parameter "languageCode" when calling deleteArchitectSystempromptResource';return this.apiClient.callApi("/api/v2/architect/systemprompts/{promptId}/resources/{languageCode}","DELETE",{promptId:e,languageCode:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteFlow(e,i){if(i=i||{},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"],i.customHeaders)}deleteFlowInstancesSettingsLoglevels(e,i){if(i=i||{},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"],i.customHeaders)}deleteFlows(e,i){if(i=i||{},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"],i.customHeaders)}deleteFlowsDatatable(e,i){if(i=i||{},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:i.force},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}deleteFlowsDatatableRow(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "datatableId" when calling deleteFlowsDatatableRow';if(i==null||i==="")throw'Missing the required parameter "rowId" when calling deleteFlowsDatatableRow';return this.apiClient.callApi("/api/v2/flows/datatables/{datatableId}/rows/{rowId}","DELETE",{datatableId:e,rowId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.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,i){if(i=i||{},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"],i.customHeaders)}getArchitectDependencytracking(e,i){if(i=i||{},e==null)throw'Missing the required parameter "name" when calling getArchitectDependencytracking';return this.apiClient.callApi("/api/v2/architect/dependencytracking","GET",{},{pageNumber:i.pageNumber,pageSize:i.pageSize,name:e,objectType:this.apiClient.buildCollectionParam(i.objectType,"multi"),consumedResources:i.consumedResources,consumingResources:i.consumingResources,consumedResourceType:this.apiClient.buildCollectionParam(i.consumedResourceType,"multi"),consumingResourceType:this.apiClient.buildCollectionParam(i.consumingResourceType,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i,n,a){if(a=a||{},e==null)throw'Missing the required parameter "id" when calling getArchitectDependencytrackingConsumedresources';if(i==null)throw'Missing the required parameter "version" when calling getArchitectDependencytrackingConsumedresources';if(n==null)throw'Missing the required parameter "objectType" when calling getArchitectDependencytrackingConsumedresources';return this.apiClient.callApi("/api/v2/architect/dependencytracking/consumedresources","GET",{},{id:e,version:i,objectType:n,resourceType:this.apiClient.buildCollectionParam(a.resourceType,"multi"),pageNumber:a.pageNumber,pageSize:a.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getArchitectDependencytrackingConsumingresources(e,i,n){if(n=n||{},e==null)throw'Missing the required parameter "id" when calling getArchitectDependencytrackingConsumingresources';if(i==null)throw'Missing the required parameter "objectType" when calling getArchitectDependencytrackingConsumingresources';return this.apiClient.callApi("/api/v2/architect/dependencytracking/consumingresources","GET",{},{id:e,objectType:i,resourceType:this.apiClient.buildCollectionParam(n.resourceType,"multi"),version:n.version,pageNumber:n.pageNumber,pageSize:n.pageSize,flowFilter:n.flowFilter},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.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,i){if(i=i||{},e==null)throw'Missing the required parameter "id" when calling getArchitectDependencytrackingObject';return this.apiClient.callApi("/api/v2/architect/dependencytracking/object","GET",{},{id:e,version:i.version,objectType:i.objectType,consumedResources:i.consumedResources,consumingResources:i.consumingResources,consumedResourceType:this.apiClient.buildCollectionParam(i.consumedResourceType,"multi"),consumingResourceType:this.apiClient.buildCollectionParam(i.consumingResourceType,"multi"),consumedResourceRequest:i.consumedResourceRequest},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getArchitectDependencytrackingType(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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:i.includeFileUrls},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getArchitectGrammarLanguage(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "grammarId" when calling getArchitectGrammarLanguage';if(i==null||i==="")throw'Missing the required parameter "languageCode" when calling getArchitectGrammarLanguage';return this.apiClient.callApi("/api/v2/architect/grammars/{grammarId}/languages/{languageCode}","GET",{grammarId:e,languageCode:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.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,i){if(i=i||{},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"],i.customHeaders)}getArchitectIvrIdentityresolution(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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:i.includeMediaUris,includeResources:i.includeResources,language:this.apiClient.buildCollectionParam(i.language,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getArchitectPromptHistoryHistoryId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "promptId" when calling getArchitectPromptHistoryHistoryId';if(i==null||i==="")throw'Missing the required parameter "historyId" when calling getArchitectPromptHistoryHistoryId';return this.apiClient.callApi("/api/v2/architect/prompts/{promptId}/history/{historyId}","GET",{promptId:e,historyId:i},{pageNumber:n.pageNumber,pageSize:n.pageSize,sortOrder:n.sortOrder,sortBy:n.sortBy,action:this.apiClient.buildCollectionParam(n.action,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getArchitectPromptResource(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "promptId" when calling getArchitectPromptResource';if(i==null||i==="")throw'Missing the required parameter "languageCode" when calling getArchitectPromptResource';return this.apiClient.callApi("/api/v2/architect/prompts/{promptId}/resources/{languageCode}","GET",{promptId:e,languageCode:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getArchitectPromptResources(e,i){if(i=i||{},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:i.pageNumber,pageSize:i.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getArchitectPrompts(e){return e=e||{},this.apiClient.callApi("/api/v2/architect/prompts","GET",{},{pageNumber:e.pageNumber,pageSize:e.pageSize,name:this.apiClient.buildCollectionParam(e.name,"multi"),description:e.description,nameOrDescription:e.nameOrDescription,sortBy:e.sortBy,sortOrder:e.sortOrder,includeMediaUris:e.includeMediaUris,includeResources:e.includeResources,language:this.apiClient.buildCollectionParam(e.language,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getArchitectSchedule(e,i){if(i=i||{},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"],i.customHeaders)}getArchitectSchedulegroup(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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:i.includeMediaUris,includeResources:i.includeResources,language:this.apiClient.buildCollectionParam(i.language,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getArchitectSystempromptHistoryHistoryId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "promptId" when calling getArchitectSystempromptHistoryHistoryId';if(i==null||i==="")throw'Missing the required parameter "historyId" when calling getArchitectSystempromptHistoryHistoryId';return this.apiClient.callApi("/api/v2/architect/systemprompts/{promptId}/history/{historyId}","GET",{promptId:e,historyId:i},{pageNumber:n.pageNumber,pageSize:n.pageSize,sortOrder:n.sortOrder,sortBy:n.sortBy,action:this.apiClient.buildCollectionParam(n.action,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getArchitectSystempromptResource(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "promptId" when calling getArchitectSystempromptResource';if(i==null||i==="")throw'Missing the required parameter "languageCode" when calling getArchitectSystempromptResource';return this.apiClient.callApi("/api/v2/architect/systemprompts/{promptId}/resources/{languageCode}","GET",{promptId:e,languageCode:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getArchitectSystempromptResources(e,i){if(i=i||{},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:i.pageNumber,pageSize:i.pageSize,sortBy:i.sortBy,sortOrder:i.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "flowId" when calling getFlow';return this.apiClient.callApi("/api/v2/flows/{flowId}","GET",{flowId:e},{deleted:i.deleted},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getFlowHistoryHistoryId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "flowId" when calling getFlowHistoryHistoryId';if(i==null||i==="")throw'Missing the required parameter "historyId" when calling getFlowHistoryHistoryId';return this.apiClient.callApi("/api/v2/flows/{flowId}/history/{historyId}","GET",{flowId:e,historyId:i},{pageNumber:n.pageNumber,pageSize:n.pageSize,sortOrder:n.sortOrder,sortBy:n.sortBy,action:this.apiClient.buildCollectionParam(n.action,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getFlowInstancesSettingsLoglevels(e,i){if(i=i||{},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(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getFlowLatestconfiguration(e,i){if(i=i||{},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:i.deleted},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getFlowVersion(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "flowId" when calling getFlowVersion';if(i==null||i==="")throw'Missing the required parameter "versionId" when calling getFlowVersion';return this.apiClient.callApi("/api/v2/flows/{flowId}/versions/{versionId}","GET",{flowId:e,versionId:i},{deleted:n.deleted},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getFlowVersionConfiguration(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "flowId" when calling getFlowVersionConfiguration';if(i==null||i==="")throw'Missing the required parameter "versionId" when calling getFlowVersionConfiguration';return this.apiClient.callApi("/api/v2/flows/{flowId}/versions/{versionId}/configuration","GET",{flowId:e,versionId:i},{deleted:n.deleted},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getFlowVersionHealth(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "flowId" when calling getFlowVersionHealth';if(i==null||i==="")throw'Missing the required parameter "versionId" when calling getFlowVersionHealth';return this.apiClient.callApi("/api/v2/flows/{flowId}/versions/{versionId}/health","GET",{flowId:e,versionId:i},{language:n.language},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getFlowVersionIntentHealth(e,i,n,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "flowId" when calling getFlowVersionIntentHealth';if(i==null||i==="")throw'Missing the required parameter "versionId" when calling getFlowVersionIntentHealth';if(n==null||n==="")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:i,intentId:n},{language:a},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}getFlowVersionIntentUtteranceHealth(e,i,n,a,r,s){if(s=s||{},e==null||e==="")throw'Missing the required parameter "flowId" when calling getFlowVersionIntentUtteranceHealth';if(i==null||i==="")throw'Missing the required parameter "versionId" when calling getFlowVersionIntentUtteranceHealth';if(n==null||n==="")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:i,intentId:n,utteranceId:a},{language:r},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],s.customHeaders)}getFlowVersions(e,i){if(i=i||{},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:i.pageNumber,pageSize:i.pageSize,deleted:i.deleted},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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:i.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getFlowsDatatableExportJob(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "datatableId" when calling getFlowsDatatableExportJob';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getFlowsDatatableImportJob(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "datatableId" when calling getFlowsDatatableImportJob';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getFlowsDatatableImportJobs(e,i){if(i=i||{},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:i.pageNumber,pageSize:i.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getFlowsDatatableRow(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "datatableId" when calling getFlowsDatatableRow';if(i==null||i==="")throw'Missing the required parameter "rowId" when calling getFlowsDatatableRow';return this.apiClient.callApi("/api/v2/flows/datatables/{datatableId}/rows/{rowId}","GET",{datatableId:e,rowId:i},{showbrief:n.showbrief},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getFlowsDatatableRows(e,i){if(i=i||{},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:i.pageNumber,pageSize:i.pageSize,showbrief:i.showbrief,sortOrder:i.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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:i.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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"],i.customHeaders)}getFlowsExportJob(e,i){if(i=i||{},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(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getFlowsInstance(e,i){if(i=i||{},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:i.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getFlowsInstancesJob(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getFlowsMilestone(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getFlowsOutcomes(e){return e=e||{},this.apiClient.callApi("/api/v2/flows/outcomes","GET",{},{pageNumber:e.pageNumber,pageSize:e.pageSize,sortBy:e.sortBy,sortOrder:e.sortOrder,id:this.apiClient.buildCollectionParam(e.id,"multi"),name:e.name,description:e.description,nameOrDescription:e.nameOrDescription,divisionId:this.apiClient.buildCollectionParam(e.divisionId,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getFlowsOutcomesDivisionviews(e){return e=e||{},this.apiClient.callApi("/api/v2/flows/outcomes/divisionviews","GET",{},{pageNumber:e.pageNumber,pageSize:e.pageSize,sortBy:e.sortBy,sortOrder:e.sortOrder,id:this.apiClient.buildCollectionParam(e.id,"multi"),name:e.name,divisionId:this.apiClient.buildCollectionParam(e.divisionId,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}patchArchitectGrammar(e,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "grammarId" when calling patchArchitectGrammar';return this.apiClient.callApi("/api/v2/architect/grammars/{grammarId}","PATCH",{grammarId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}patchArchitectGrammarLanguage(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "grammarId" when calling patchArchitectGrammarLanguage';if(i==null||i==="")throw'Missing the required parameter "languageCode" when calling patchArchitectGrammarLanguage';return this.apiClient.callApi("/api/v2/architect/grammars/{grammarId}/languages/{languageCode}","PATCH",{grammarId:e,languageCode:i},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchFlowsInstancesSettingsExecutiondata(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}postArchitectGrammarLanguageFilesDtmf(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "grammarId" when calling postArchitectGrammarLanguageFilesDtmf';if(i==null||i==="")throw'Missing the required parameter "languageCode" when calling postArchitectGrammarLanguageFilesDtmf';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postArchitectGrammarLanguageFilesVoice(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "grammarId" when calling postArchitectGrammarLanguageFilesVoice';if(i==null||i==="")throw'Missing the required parameter "languageCode" when calling postArchitectGrammarLanguageFilesVoice';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postArchitectGrammarLanguages(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "grammarId" when calling postArchitectGrammarLanguages';if(i==null)throw'Missing the required parameter "body" when calling postArchitectGrammarLanguages';return this.apiClient.callApi("/api/v2/architect/grammars/{grammarId}/languages","POST",{grammarId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postArchitectGrammars(e,i){if(i=i||{},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"],i.customHeaders)}postArchitectIvrs(e,i){if(i=i||{},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"],i.customHeaders)}postArchitectPromptHistory(e,i){if(i=i||{},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"],i.customHeaders)}postArchitectPromptResourceUploads(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "promptId" when calling postArchitectPromptResourceUploads';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postArchitectPromptResources(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "promptId" when calling postArchitectPromptResources';if(i==null)throw'Missing the required parameter "body" when calling postArchitectPromptResources';return this.apiClient.callApi("/api/v2/architect/prompts/{promptId}/resources","POST",{promptId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postArchitectPrompts(e,i){if(i=i||{},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"],i.customHeaders)}postArchitectSchedulegroups(e,i){if(i=i||{},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"],i.customHeaders)}postArchitectSchedules(e,i){if(i=i||{},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"],i.customHeaders)}postArchitectSystempromptHistory(e,i){if(i=i||{},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"],i.customHeaders)}postArchitectSystempromptResourceUploads(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "promptId" when calling postArchitectSystempromptResourceUploads';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postArchitectSystempromptResources(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "promptId" when calling postArchitectSystempromptResources';if(i==null)throw'Missing the required parameter "body" when calling postArchitectSystempromptResources';return this.apiClient.callApi("/api/v2/architect/systemprompts/{promptId}/resources","POST",{promptId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postFlowHistory(e,i){if(i=i||{},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"],i.customHeaders)}postFlowInstancesSettingsLoglevels(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "flowId" when calling postFlowInstancesSettingsLoglevels';if(i==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(n.expand,"multi")},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postFlowVersions(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "flowId" when calling postFlowVersions';if(i==null)throw'Missing the required parameter "body" when calling postFlowVersions';return this.apiClient.callApi("/api/v2/flows/{flowId}/versions","POST",{flowId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postFlows(e,i){if(i=i||{},e==null)throw'Missing the required parameter "body" when calling postFlows';return this.apiClient.callApi("/api/v2/flows","POST",{},{language:i.language},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postFlowsActionsCheckin(e,i){if(i=i||{},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"],i.customHeaders)}postFlowsActionsCheckout(e,i){if(i=i||{},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"],i.customHeaders)}postFlowsActionsDeactivate(e,i){if(i=i||{},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"],i.customHeaders)}postFlowsActionsPublish(e,i){if(i=i||{},e==null)throw'Missing the required parameter "flow" when calling postFlowsActionsPublish';return this.apiClient.callApi("/api/v2/flows/actions/publish","POST",{},{flow:e,version:i.version},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postFlowsActionsRevert(e,i){if(i=i||{},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"],i.customHeaders)}postFlowsActionsUnlock(e,i){if(i=i||{},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"],i.customHeaders)}postFlowsDatatableExportJobs(e,i){if(i=i||{},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"],i.customHeaders)}postFlowsDatatableImportCsvJobs(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "datatableId" when calling postFlowsDatatableImportCsvJobs';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postFlowsDatatableImportJobs(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "datatableId" when calling postFlowsDatatableImportJobs';if(i==null)throw'Missing the required parameter "body" when calling postFlowsDatatableImportJobs';return this.apiClient.callApi("/api/v2/flows/datatables/{datatableId}/import/jobs","POST",{datatableId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postFlowsDatatableRows(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "datatableId" when calling postFlowsDatatableRows';if(i==null)throw'Missing the required parameter "dataTableRow" when calling postFlowsDatatableRows';return this.apiClient.callApi("/api/v2/flows/datatables/{datatableId}/rows","POST",{datatableId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postFlowsDatatables(e,i){if(i=i||{},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"],i.customHeaders)}postFlowsExecutions(e,i){if(i=i||{},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"],i.customHeaders)}postFlowsExportJobs(e,i){if(i=i||{},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"],i.customHeaders)}postFlowsInstancesJobs(e,i){if(i=i||{},e==null)throw'Missing the required parameter "body" when calling postFlowsInstancesJobs';return this.apiClient.callApi("/api/v2/flows/instances/jobs","POST",{},{expand:i.expand},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postFlowsInstancesQuery(e,i){if(i=i||{},e==null)throw'Missing the required parameter "body" when calling postFlowsInstancesQuery';return this.apiClient.callApi("/api/v2/flows/instances/query","POST",{},{indexOnly:i.indexOnly,pageSize:i.pageSize},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postFlowsJobs(e){return e=e||{},this.apiClient.callApi("/api/v2/flows/jobs","POST",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}postFlowsMilestones(e){return e=e||{},this.apiClient.callApi("/api/v2/flows/milestones","POST",{},{},{},{},e.body,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}postFlowsOutcomes(e){return e=e||{},this.apiClient.callApi("/api/v2/flows/outcomes","POST",{},{},{},{},e.body,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}putArchitectEmergencygroup(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "emergencyGroupId" when calling putArchitectEmergencygroup';if(i==null)throw'Missing the required parameter "body" when calling putArchitectEmergencygroup';return this.apiClient.callApi("/api/v2/architect/emergencygroups/{emergencyGroupId}","PUT",{emergencyGroupId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putArchitectIvr(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "ivrId" when calling putArchitectIvr';if(i==null)throw'Missing the required parameter "body" when calling putArchitectIvr';return this.apiClient.callApi("/api/v2/architect/ivrs/{ivrId}","PUT",{ivrId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putArchitectIvrIdentityresolution(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "ivrId" when calling putArchitectIvrIdentityresolution';if(i==null)throw'Missing the required parameter "body" when calling putArchitectIvrIdentityresolution';return this.apiClient.callApi("/api/v2/architect/ivrs/{ivrId}/identityresolution","PUT",{ivrId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putArchitectPrompt(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "promptId" when calling putArchitectPrompt';if(i==null)throw'Missing the required parameter "body" when calling putArchitectPrompt';return this.apiClient.callApi("/api/v2/architect/prompts/{promptId}","PUT",{promptId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putArchitectPromptResource(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "promptId" when calling putArchitectPromptResource';if(i==null||i==="")throw'Missing the required parameter "languageCode" when calling putArchitectPromptResource';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}putArchitectSchedule(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "scheduleId" when calling putArchitectSchedule';if(i==null)throw'Missing the required parameter "body" when calling putArchitectSchedule';return this.apiClient.callApi("/api/v2/architect/schedules/{scheduleId}","PUT",{scheduleId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putArchitectSchedulegroup(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "scheduleGroupId" when calling putArchitectSchedulegroup';if(i==null)throw'Missing the required parameter "body" when calling putArchitectSchedulegroup';return this.apiClient.callApi("/api/v2/architect/schedulegroups/{scheduleGroupId}","PUT",{scheduleGroupId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putArchitectSystempromptResource(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "promptId" when calling putArchitectSystempromptResource';if(i==null||i==="")throw'Missing the required parameter "languageCode" when calling putArchitectSystempromptResource';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}putFlow(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "flowId" when calling putFlow';if(i==null)throw'Missing the required parameter "body" when calling putFlow';return this.apiClient.callApi("/api/v2/flows/{flowId}","PUT",{flowId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putFlowInstancesSettingsLoglevels(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "flowId" when calling putFlowInstancesSettingsLoglevels';if(i==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(n.expand,"multi")},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putFlowsDatatable(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "datatableId" when calling putFlowsDatatable';if(i==null)throw'Missing the required parameter "body" when calling putFlowsDatatable';return this.apiClient.callApi("/api/v2/flows/datatables/{datatableId}","PUT",{datatableId:e},{expand:n.expand},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putFlowsDatatableRow(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "datatableId" when calling putFlowsDatatableRow';if(i==null||i==="")throw'Missing the required parameter "rowId" when calling putFlowsDatatableRow';return this.apiClient.callApi("/api/v2/flows/datatables/{datatableId}/rows/{rowId}","PUT",{datatableId:e,rowId:i},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putFlowsInstancesSettingsLoglevelsDefault(e,i){if(i=i||{},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(i.expand,"multi")},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}putFlowsMilestone(e,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "milestoneId" when calling putFlowsMilestone';return this.apiClient.callApi("/api/v2/flows/milestones/{milestoneId}","PUT",{milestoneId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}putFlowsOutcome(e,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "flowOutcomeId" when calling putFlowsOutcome';return this.apiClient.callApi("/api/v2/flows/outcomes/{flowOutcomeId}","PUT",{flowOutcomeId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}},_A=class{constructor(e){this.apiClient=e||q.instance}deleteAssistantVariation(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "assistantId" when calling deleteAssistantVariation';if(i==null||i==="")throw'Missing the required parameter "variationId" when calling deleteAssistantVariation';return this.apiClient.callApi("/api/v2/assistants/{assistantId}/variations/{variationId}","DELETE",{assistantId:e,variationId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getAssistantVariation(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "assistantId" when calling getAssistantVariation';if(i==null||i==="")throw'Missing the required parameter "variationId" when calling getAssistantVariation';return this.apiClient.callApi("/api/v2/assistants/{assistantId}/variations/{variationId}","GET",{assistantId:e,variationId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getAssistantVariations(e,i){if(i=i||{},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"],i.customHeaders)}postAssistantVariations(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "assistantId" when calling postAssistantVariations';if(i==null)throw'Missing the required parameter "body" when calling postAssistantVariations';return this.apiClient.callApi("/api/v2/assistants/{assistantId}/variations","POST",{assistantId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putAssistantVariation(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "assistantId" when calling putAssistantVariation';if(i==null||i==="")throw'Missing the required parameter "variationId" when calling putAssistantVariation';if(n==null)throw'Missing the required parameter "body" when calling putAssistantVariation';return this.apiClient.callApi("/api/v2/assistants/{assistantId}/variations/{variationId}","PUT",{assistantId:e,variationId:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}},HA=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,i){if(i=i||{},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"],i.customHeaders)}getAuditsQueryTransactionIdResults(e,i){if(i=i||{},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:i.cursor,pageSize:i.pageSize,expand:this.apiClient.buildCollectionParam(i.expand,"multi"),allowRedirect:i.allowRedirect},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postAuditsQuery(e,i){if(i=i||{},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"],i.customHeaders)}postAuditsQueryRealtime(e,i){if(i=i||{},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(i.expand,"multi")},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postAuditsQueryRealtimeRelated(e,i){if(i=i||{},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(i.expand,"multi")},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}},RA=class{constructor(e){this.apiClient=e||q.instance}deleteAuthorizationDivision(e,i){if(i=i||{},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:i.force},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}deleteAuthorizationPoliciesTargetSubjectSubjectId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "targetName" when calling deleteAuthorizationPoliciesTargetSubjectSubjectId';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteAuthorizationRole(e,i){if(i=i||{},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"],i.customHeaders)}deleteAuthorizationSubjectDivisionRole(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "subjectId" when calling deleteAuthorizationSubjectDivisionRole';if(i==null||i==="")throw'Missing the required parameter "divisionId" when calling deleteAuthorizationSubjectDivisionRole';if(n==null||n==="")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:i,roleId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getAuthorizationDivision(e,i){if(i=i||{},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:i.objectCount},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getAuthorizationDivisionGrants(e,i){if(i=i||{},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:i.pageNumber,pageSize:i.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},e==null)throw'Missing the required parameter "permission" when calling getAuthorizationDivisionspermittedMe';return this.apiClient.callApi("/api/v2/authorization/divisionspermitted/me","GET",{},{name:i.name,permission:e},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getAuthorizationDivisionspermittedPagedMe(e,i){if(i=i||{},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:i.pageNumber,pageSize:i.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getAuthorizationDivisionspermittedPagedSubjectId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "subjectId" when calling getAuthorizationDivisionspermittedPagedSubjectId';if(i==null)throw'Missing the required parameter "permission" when calling getAuthorizationDivisionspermittedPagedSubjectId';return this.apiClient.callApi("/api/v2/authorization/divisionspermitted/paged/{subjectId}","GET",{subjectId:e},{permission:i,pageNumber:n.pageNumber,pageSize:n.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.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,i){if(i=i||{},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:i.after,pageSize:i.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getAuthorizationPoliciesTarget(e,i){if(i=i||{},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:i.after,pageSize:i.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getAuthorizationPoliciesTargetSubjectSubjectId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "targetName" when calling getAuthorizationPoliciesTargetSubjectSubjectId';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.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,i){if(i=i||{},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"],i.customHeaders)}getAuthorizationPolicyAttributes(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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:i.userCount,expand:this.apiClient.buildCollectionParam(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getAuthorizationRoleComparedefaultRightRoleId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "leftRoleId" when calling getAuthorizationRoleComparedefaultRightRoleId';if(i==null||i==="")throw'Missing the required parameter "rightRoleId" when calling getAuthorizationRoleComparedefaultRightRoleId';return this.apiClient.callApi("/api/v2/authorization/roles/{leftRoleId}/comparedefault/{rightRoleId}","GET",{leftRoleId:e,rightRoleId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getAuthorizationRoleSubjectgrants(e,i){if(i=i||{},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:i.pageSize,pageNumber:i.pageNumber,sortBy:i.sortBy,expand:this.apiClient.buildCollectionParam(i.expand,"multi"),nextPage:i.nextPage,previousPage:i.previousPage},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getAuthorizationRoleUsers(e,i){if(i=i||{},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:i.pageSize,pageNumber:i.pageNumber},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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:i.includeDuplicates},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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"],i.customHeaders)}patchAuthorizationRole(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "roleId" when calling patchAuthorizationRole';if(i==null)throw'Missing the required parameter "body" when calling patchAuthorizationRole';return this.apiClient.callApi("/api/v2/authorization/roles/{roleId}","PATCH",{roleId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchAuthorizationSettings(e,i){if(i=i||{},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"],i.customHeaders)}postAuthorizationDivisionObject(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "divisionId" when calling postAuthorizationDivisionObject';if(i==null||i==="")throw'Missing the required parameter "objectType" when calling postAuthorizationDivisionObject';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postAuthorizationDivisionRestore(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "divisionId" when calling postAuthorizationDivisionRestore';if(i==null)throw'Missing the required parameter "body" when calling postAuthorizationDivisionRestore';return this.apiClient.callApi("/api/v2/authorization/divisions/{divisionId}/restore","POST",{divisionId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postAuthorizationDivisions(e,i){if(i=i||{},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"],i.customHeaders)}postAuthorizationPoliciesTarget(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "targetName" when calling postAuthorizationPoliciesTarget';if(i==null)throw'Missing the required parameter "body" when calling postAuthorizationPoliciesTarget';return this.apiClient.callApi("/api/v2/authorization/policies/targets/{targetName}","POST",{targetName:e},{skipLockoutCheck:n.skipLockoutCheck},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postAuthorizationPoliciesTargetValidate(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "targetName" when calling postAuthorizationPoliciesTargetValidate';if(i==null)throw'Missing the required parameter "body" when calling postAuthorizationPoliciesTargetValidate';return this.apiClient.callApi("/api/v2/authorization/policies/targets/{targetName}/validate","POST",{targetName:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postAuthorizationPolicySimulate(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "policyId" when calling postAuthorizationPolicySimulate';if(i==null)throw'Missing the required parameter "body" when calling postAuthorizationPolicySimulate';return this.apiClient.callApi("/api/v2/authorization/policies/{policyId}/simulate","POST",{policyId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postAuthorizationRole(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "roleId" when calling postAuthorizationRole';if(i==null)throw'Missing the required parameter "body" when calling postAuthorizationRole';return this.apiClient.callApi("/api/v2/authorization/roles/{roleId}","POST",{roleId:e},{subjectType:n.subjectType},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postAuthorizationRoleComparedefaultRightRoleId(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "leftRoleId" when calling postAuthorizationRoleComparedefaultRightRoleId';if(i==null||i==="")throw'Missing the required parameter "rightRoleId" when calling postAuthorizationRoleComparedefaultRightRoleId';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postAuthorizationRoles(e,i){if(i=i||{},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"],i.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,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "subjectId" when calling postAuthorizationSubjectBulkadd';if(i==null)throw'Missing the required parameter "body" when calling postAuthorizationSubjectBulkadd';return this.apiClient.callApi("/api/v2/authorization/subjects/{subjectId}/bulkadd","POST",{subjectId:e},{subjectType:n.subjectType},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postAuthorizationSubjectBulkremove(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "subjectId" when calling postAuthorizationSubjectBulkremove';if(i==null)throw'Missing the required parameter "body" when calling postAuthorizationSubjectBulkremove';return this.apiClient.callApi("/api/v2/authorization/subjects/{subjectId}/bulkremove","POST",{subjectId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postAuthorizationSubjectBulkreplace(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "subjectId" when calling postAuthorizationSubjectBulkreplace';if(i==null)throw'Missing the required parameter "body" when calling postAuthorizationSubjectBulkreplace';return this.apiClient.callApi("/api/v2/authorization/subjects/{subjectId}/bulkreplace","POST",{subjectId:e},{subjectType:n.subjectType},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postAuthorizationSubjectDivisionRole(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "subjectId" when calling postAuthorizationSubjectDivisionRole';if(i==null||i==="")throw'Missing the required parameter "divisionId" when calling postAuthorizationSubjectDivisionRole';if(n==null||n==="")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:i,roleId:n},{subjectType:a.subjectType},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}putAuthorizationDivision(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "divisionId" when calling putAuthorizationDivision';if(i==null)throw'Missing the required parameter "body" when calling putAuthorizationDivision';return this.apiClient.callApi("/api/v2/authorization/divisions/{divisionId}","PUT",{divisionId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putAuthorizationPoliciesTarget(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "targetName" when calling putAuthorizationPoliciesTarget';if(i==null)throw'Missing the required parameter "body" when calling putAuthorizationPoliciesTarget';return this.apiClient.callApi("/api/v2/authorization/policies/targets/{targetName}","PUT",{targetName:e},{skipLockoutCheck:n.skipLockoutCheck},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putAuthorizationPolicy(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "policyId" when calling putAuthorizationPolicy';if(i==null)throw'Missing the required parameter "body" when calling putAuthorizationPolicy';return this.apiClient.callApi("/api/v2/authorization/policies/{policyId}","PUT",{policyId:e},{skipLockoutCheck:n.skipLockoutCheck},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putAuthorizationRole(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "roleId" when calling putAuthorizationRole';if(i==null)throw'Missing the required parameter "body" when calling putAuthorizationRole';return this.apiClient.callApi("/api/v2/authorization/roles/{roleId}","PUT",{roleId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putAuthorizationRoleUsersAdd(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "roleId" when calling putAuthorizationRoleUsersAdd';if(i==null)throw'Missing the required parameter "body" when calling putAuthorizationRoleUsersAdd';return this.apiClient.callApi("/api/v2/authorization/roles/{roleId}/users/add","PUT",{roleId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putAuthorizationRoleUsersRemove(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "roleId" when calling putAuthorizationRoleUsersRemove';if(i==null)throw'Missing the required parameter "body" when calling putAuthorizationRoleUsersRemove';return this.apiClient.callApi("/api/v2/authorization/roles/{roleId}/users/remove","PUT",{roleId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putAuthorizationRolesDefault(e,i){if(i=i||{},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"],i.customHeaders)}putAuthorizationRolesSettings(e,i){if(i=i||{},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"],i.customHeaders)}putUserRoles(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "subjectId" when calling putUserRoles';if(i==null)throw'Missing the required parameter "body" when calling putUserRoles';return this.apiClient.callApi("/api/v2/users/{subjectId}/roles","PUT",{subjectId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}},IA=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)}},zA=class{constructor(e){this.apiClient=e||q.instance}getBillingContract(e,i){if(i=i||{},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"],i.customHeaders)}getBillingContractBillingperiod(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "contractId" when calling getBillingContractBillingperiod';if(i==null||i==="")throw'Missing the required parameter "billingPeriodId" when calling getBillingContractBillingperiod';return this.apiClient.callApi("/api/v2/billing/contracts/{contractId}/billingperiods/{billingPeriodId}","GET",{contractId:e,billingPeriodId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.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,i){if(i=i||{},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"],i.customHeaders)}getBillingContractsInvoiceLines(e,i){if(i=i||{},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:i.before,after:i.after,pageSize:i.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i,n){if(n=n||{},e==null)throw'Missing the required parameter "startDate" when calling getBillingReportsBillableusage';if(i==null)throw'Missing the required parameter "endDate" when calling getBillingReportsBillableusage';return this.apiClient.callApi("/api/v2/billing/reports/billableusage","GET",{},{startDate:e,endDate:i},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getBillingTrusteebillingoverviewTrustorOrgId(e,i){if(i=i||{},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:i.billingPeriodIndex},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}},DA=class{constructor(e){this.apiClient=e||q.instance}deleteBusinessrulesDecisiontable(e,i){if(i=i||{},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:i.forceDelete},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}deleteBusinessrulesDecisiontableVersion(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "tableId" when calling deleteBusinessrulesDecisiontableVersion';if(i==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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteBusinessrulesDecisiontableVersionRow(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "tableId" when calling deleteBusinessrulesDecisiontableVersionRow';if(i==null)throw'Missing the required parameter "tableVersion" when calling deleteBusinessrulesDecisiontableVersionRow';if(n==null||n==="")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:i,rowId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}deleteBusinessrulesSchema(e,i){if(i=i||{},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"],i.customHeaders)}getBusinessrulesDecisiontable(e,i){if(i=i||{},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"],i.customHeaders)}getBusinessrulesDecisiontableVersion(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "tableId" when calling getBusinessrulesDecisiontableVersion';if(i==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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getBusinessrulesDecisiontableVersionRow(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "tableId" when calling getBusinessrulesDecisiontableVersionRow';if(i==null)throw'Missing the required parameter "tableVersion" when calling getBusinessrulesDecisiontableVersionRow';if(n==null||n==="")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:i,rowId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getBusinessrulesDecisiontableVersionRows(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "tableId" when calling getBusinessrulesDecisiontableVersionRows';if(i==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:i},{pageNumber:n.pageNumber,pageSize:n.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getBusinessrulesDecisiontableVersions(e,i){if(i=i||{},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:i.after,pageSize:i.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "tableId" when calling patchBusinessrulesDecisiontable';if(i==null)throw'Missing the required parameter "body" when calling patchBusinessrulesDecisiontable';return this.apiClient.callApi("/api/v2/businessrules/decisiontables/{tableId}","PATCH",{tableId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchBusinessrulesDecisiontableVersion(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "tableId" when calling patchBusinessrulesDecisiontableVersion';if(i==null)throw'Missing the required parameter "tableVersion" when calling patchBusinessrulesDecisiontableVersion';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postBusinessrulesDecisiontableExecute(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "tableId" when calling postBusinessrulesDecisiontableExecute';if(i==null)throw'Missing the required parameter "body" when calling postBusinessrulesDecisiontableExecute';return this.apiClient.callApi("/api/v2/businessrules/decisiontables/{tableId}/execute","POST",{tableId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postBusinessrulesDecisiontableVersionCopy(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "tableId" when calling postBusinessrulesDecisiontableVersionCopy';if(i==null)throw'Missing the required parameter "tableVersion" when calling postBusinessrulesDecisiontableVersionCopy';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postBusinessrulesDecisiontableVersionExecute(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "tableId" when calling postBusinessrulesDecisiontableVersionExecute';if(i==null)throw'Missing the required parameter "tableVersion" when calling postBusinessrulesDecisiontableVersionExecute';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postBusinessrulesDecisiontableVersionRows(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "tableId" when calling postBusinessrulesDecisiontableVersionRows';if(i==null)throw'Missing the required parameter "tableVersion" when calling postBusinessrulesDecisiontableVersionRows';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postBusinessrulesDecisiontableVersionRowsSearch(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "tableId" when calling postBusinessrulesDecisiontableVersionRowsSearch';if(i==null)throw'Missing the required parameter "tableVersion" when calling postBusinessrulesDecisiontableVersionRowsSearch';if(n==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:i},{pageNumber:a.pageNumber,pageSize:a.pageSize},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postBusinessrulesDecisiontableVersionSync(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "tableId" when calling postBusinessrulesDecisiontableVersionSync';if(i==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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postBusinessrulesDecisiontableVersions(e,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "tableId" when calling postBusinessrulesDecisiontableVersions';return this.apiClient.callApi("/api/v2/businessrules/decisiontables/{tableId}/versions","POST",{tableId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postBusinessrulesDecisiontables(e,i){if(i=i||{},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"],i.customHeaders)}postBusinessrulesSchemas(e,i){if(i=i||{},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"],i.customHeaders)}putBusinessrulesDecisiontableVersionPublish(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "tableId" when calling putBusinessrulesDecisiontableVersionPublish';if(i==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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putBusinessrulesDecisiontableVersionRow(e,i,n,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "tableId" when calling putBusinessrulesDecisiontableVersionRow';if(i==null)throw'Missing the required parameter "tableVersion" when calling putBusinessrulesDecisiontableVersionRow';if(n==null||n==="")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:i,rowId:n},{},{},{},a,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}putBusinessrulesSchema(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "schemaId" when calling putBusinessrulesSchema';if(i==null)throw'Missing the required parameter "body" when calling putBusinessrulesSchema';return this.apiClient.callApi("/api/v2/businessrules/schemas/{schemaId}","PUT",{schemaId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}},GA=class{constructor(e){this.apiClient=e||q.instance}getCarrierservicesIntegrationsEmergencylocationsMe(e,i){if(i=i||{},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"],i.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)}},$A=class{constructor(e){this.apiClient=e||q.instance}deleteCasemanagementCase(e,i){if(i=i||{},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"],i.customHeaders)}deleteCasemanagementCaseplan(e,i){if(i=i||{},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"],i.customHeaders)}getCasemanagementCase(e,i){if(i=i||{},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:i.expands},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getCasemanagementCaseAssociation(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "caseId" when calling getCasemanagementCaseAssociation';if(i==null||i==="")throw'Missing the required parameter "associationId" when calling getCasemanagementCaseAssociation';return this.apiClient.callApi("/api/v2/casemanagement/cases/{caseId}/associations/{associationId}","GET",{caseId:e,associationId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getCasemanagementCaseAssociations(e,i){if(i=i||{},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:i.before,after:i.after,pageSize:i.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getCasemanagementCaseStage(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "caseId" when calling getCasemanagementCaseStage';if(i==null||i==="")throw'Missing the required parameter "stageId" when calling getCasemanagementCaseStage';return this.apiClient.callApi("/api/v2/casemanagement/cases/{caseId}/stages/{stageId}","GET",{caseId:e,stageId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getCasemanagementCaseStageStep(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "caseId" when calling getCasemanagementCaseStageStep';if(i==null||i==="")throw'Missing the required parameter "stageId" when calling getCasemanagementCaseStageStep';if(n==null||n==="")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:i,stepId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getCasemanagementCaseStageSteps(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "caseId" when calling getCasemanagementCaseStageSteps';if(i==null||i==="")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:i},{before:n.before,after:n.after,pageSize:n.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getCasemanagementCaseStages(e,i){if(i=i||{},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:i.before,after:i.after,pageSize:i.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getCasemanagementCaseTerminateJob(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "caseId" when calling getCasemanagementCaseTerminateJob';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getCasemanagementCaseplan(e,i){if(i=i||{},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"],i.customHeaders)}getCasemanagementCaseplanVersion(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "caseplanId" when calling getCasemanagementCaseplanVersion';if(i==null||i==="")throw'Missing the required parameter "versionId" when calling getCasemanagementCaseplanVersion';return this.apiClient.callApi("/api/v2/casemanagement/caseplans/{caseplanId}/versions/{versionId}","GET",{caseplanId:e,versionId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getCasemanagementCaseplanVersionDataschemas(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "caseplanId" when calling getCasemanagementCaseplanVersionDataschemas';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getCasemanagementCaseplanVersionIntakesettings(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "caseplanId" when calling getCasemanagementCaseplanVersionIntakesettings';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getCasemanagementCaseplanVersionStageplan(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "caseplanId" when calling getCasemanagementCaseplanVersionStageplan';if(i==null||i==="")throw'Missing the required parameter "versionId" when calling getCasemanagementCaseplanVersionStageplan';if(n==null||n==="")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:i,stageplanId:n},{expands:this.apiClient.buildCollectionParam(a.expands,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getCasemanagementCaseplanVersionStageplanStepplan(e,i,n,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "caseplanId" when calling getCasemanagementCaseplanVersionStageplanStepplan';if(i==null||i==="")throw'Missing the required parameter "versionId" when calling getCasemanagementCaseplanVersionStageplanStepplan';if(n==null||n==="")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:i,stageplanId:n,stepplanId:a},{expands:this.apiClient.buildCollectionParam(r.expands,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}getCasemanagementCaseplanVersionStageplanStepplans(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "caseplanId" when calling getCasemanagementCaseplanVersionStageplanStepplans';if(i==null||i==="")throw'Missing the required parameter "versionId" when calling getCasemanagementCaseplanVersionStageplanStepplans';if(n==null||n==="")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:i,stageplanId:n},{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,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "caseplanId" when calling getCasemanagementCaseplanVersionStageplans';if(i==null||i==="")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:i},{before:n.before,after:n.after,pageSize:n.pageSize,expands:this.apiClient.buildCollectionParam(n.expands,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.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,i){if(i=i||{},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:i.after,pageSize:i.pageSize,divisionIds:i.divisionIds,expands:this.apiClient.buildCollectionParam(i.expands,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getCasemanagementCasesReference(e,i){if(i=i||{},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:i.expands},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}patchCasemanagementCaseDatedue(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "caseId" when calling patchCasemanagementCaseDatedue';if(i==null)throw'Missing the required parameter "body" when calling patchCasemanagementCaseDatedue';return this.apiClient.callApi("/api/v2/casemanagement/cases/{caseId}/datedue","PATCH",{caseId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchCasemanagementCasePriority(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "caseId" when calling patchCasemanagementCasePriority';if(i==null)throw'Missing the required parameter "body" when calling patchCasemanagementCasePriority';return this.apiClient.callApi("/api/v2/casemanagement/cases/{caseId}/priority","PATCH",{caseId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchCasemanagementCaseSummary(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "caseId" when calling patchCasemanagementCaseSummary';if(i==null)throw'Missing the required parameter "body" when calling patchCasemanagementCaseSummary';return this.apiClient.callApi("/api/v2/casemanagement/cases/{caseId}/summary","PATCH",{caseId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchCasemanagementCaseplan(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "caseplanId" when calling patchCasemanagementCaseplan';if(i==null)throw'Missing the required parameter "body" when calling patchCasemanagementCaseplan';return this.apiClient.callApi("/api/v2/casemanagement/caseplans/{caseplanId}","PATCH",{caseplanId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchCasemanagementCaseplanStageplan(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "caseplanId" when calling patchCasemanagementCaseplanStageplan';if(i==null||i==="")throw'Missing the required parameter "stageplanId" when calling patchCasemanagementCaseplanStageplan';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchCasemanagementCaseplanStageplanStepplan(e,i,n,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "caseplanId" when calling patchCasemanagementCaseplanStageplanStepplan';if(i==null||i==="")throw'Missing the required parameter "stageplanId" when calling patchCasemanagementCaseplanStageplanStepplan';if(n==null||n==="")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:i,stepplanId:n},{},{},{},a,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}postCasemanagementCaseAssociations(e,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "caseId" when calling postCasemanagementCaseAssociations';return this.apiClient.callApi("/api/v2/casemanagement/cases/{caseId}/associations","POST",{caseId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postCasemanagementCaseTerminateJobs(e,i){if(i=i||{},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"],i.customHeaders)}postCasemanagementCaseplanPublish(e,i){if(i=i||{},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"],i.customHeaders)}postCasemanagementCaseplanVersions(e,i){if(i=i||{},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"],i.customHeaders)}postCasemanagementCaseplans(e,i){if(i=i||{},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"],i.customHeaders)}postCasemanagementCaseplansQuery(e,i){if(i=i||{},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"],i.customHeaders)}postCasemanagementCases(e,i){if(i=i||{},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"],i.customHeaders)}postCasemanagementCasesAssociationsQuery(e){return e=e||{},this.apiClient.callApi("/api/v2/casemanagement/cases/associations/query","POST",{},{},{},{},e.body,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}putCasemanagementCaseplanIntakesettings(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "caseplanId" when calling putCasemanagementCaseplanIntakesettings';if(i==null)throw'Missing the required parameter "body" when calling putCasemanagementCaseplanIntakesettings';return this.apiClient.callApi("/api/v2/casemanagement/caseplans/{caseplanId}/intakesettings","PUT",{caseplanId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}},NA=class{constructor(e){this.apiClient=e||q.instance}deleteChatsRoomMessage(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "roomJid" when calling deleteChatsRoomMessage';if(i==null||i==="")throw'Missing the required parameter "messageId" when calling deleteChatsRoomMessage';return this.apiClient.callApi("/api/v2/chats/rooms/{roomJid}/messages/{messageId}","DELETE",{roomJid:e,messageId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteChatsRoomMessagesPin(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "roomJid" when calling deleteChatsRoomMessagesPin';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteChatsRoomParticipant(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "roomJid" when calling deleteChatsRoomParticipant';if(i==null||i==="")throw'Missing the required parameter "userId" when calling deleteChatsRoomParticipant';return this.apiClient.callApi("/api/v2/chats/rooms/{roomJid}/participants/{userId}","DELETE",{roomJid:e,userId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteChatsUserMessage(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling deleteChatsUserMessage';if(i==null||i==="")throw'Missing the required parameter "messageId" when calling deleteChatsUserMessage';return this.apiClient.callApi("/api/v2/chats/users/{userId}/messages/{messageId}","DELETE",{userId:e,messageId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteChatsUserMessagesPin(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling deleteChatsUserMessagesPin';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.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,i){if(i=i||{},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"],i.customHeaders)}getChatsRoom(e,i){if(i=i||{},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"],i.customHeaders)}getChatsRoomMessage(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "roomJid" when calling getChatsRoomMessage';if(i==null||i==="")throw'Missing the required parameter "messageIds" when calling getChatsRoomMessage';return this.apiClient.callApi("/api/v2/chats/rooms/{roomJid}/messages/{messageIds}","GET",{roomJid:e,messageIds:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getChatsRoomMessages(e,i){if(i=i||{},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:i.limit,before:i.before,after:i.after,excludeMetadata:i.excludeMetadata},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getChatsRoomParticipant(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "roomJid" when calling getChatsRoomParticipant';if(i==null||i==="")throw'Missing the required parameter "participantJid" when calling getChatsRoomParticipant';return this.apiClient.callApi("/api/v2/chats/rooms/{roomJid}/participants/{participantJid}","GET",{roomJid:e,participantJid:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getChatsRoomParticipants(e,i){if(i=i||{},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:i.notify},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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:i.limit,before:i.before,after:i.after,excludeMetadata:i.excludeMetadata},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getChatsUser(e,i){if(i=i||{},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"],i.customHeaders)}getChatsUserMessage(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling getChatsUserMessage';if(i==null||i==="")throw'Missing the required parameter "messageIds" when calling getChatsUserMessage';return this.apiClient.callApi("/api/v2/chats/users/{userId}/messages/{messageIds}","GET",{userId:e,messageIds:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getChatsUserMessages(e,i){if(i=i||{},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:i.limit,before:i.before,after:i.after,excludeMetadata:i.excludeMetadata},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getChatsUserSettings(e,i){if(i=i||{},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"],i.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,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "roomJid" when calling patchChatsRoom';if(i==null)throw'Missing the required parameter "body" when calling patchChatsRoom';return this.apiClient.callApi("/api/v2/chats/rooms/{roomJid}","PATCH",{roomJid:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchChatsRoomMessage(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "roomJid" when calling patchChatsRoomMessage';if(i==null||i==="")throw'Missing the required parameter "messageId" when calling patchChatsRoomMessage';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchChatsSettings(e,i){if(i=i||{},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"],i.customHeaders)}patchChatsUserMessage(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "userId" when calling patchChatsUserMessage';if(i==null||i==="")throw'Missing the required parameter "messageId" when calling patchChatsUserMessage';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchChatsUserSettings(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling patchChatsUserSettings';if(i==null)throw'Missing the required parameter "body" when calling patchChatsUserSettings';return this.apiClient.callApi("/api/v2/chats/users/{userId}/settings","PATCH",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchChatsUsersMeSettings(e,i){if(i=i||{},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"],i.customHeaders)}postChatsRoomMessages(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "roomJid" when calling postChatsRoomMessages';if(i==null)throw'Missing the required parameter "body" when calling postChatsRoomMessages';return this.apiClient.callApi("/api/v2/chats/rooms/{roomJid}/messages","POST",{roomJid:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postChatsRoomMessagesPins(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "roomJid" when calling postChatsRoomMessagesPins';if(i==null)throw'Missing the required parameter "body" when calling postChatsRoomMessagesPins';return this.apiClient.callApi("/api/v2/chats/rooms/{roomJid}/messages/pins","POST",{roomJid:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postChatsRoomParticipant(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "roomJid" when calling postChatsRoomParticipant';if(i==null||i==="")throw'Missing the required parameter "userId" when calling postChatsRoomParticipant';return this.apiClient.callApi("/api/v2/chats/rooms/{roomJid}/participants/{userId}","POST",{roomJid:e,userId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postChatsRooms(e,i){if(i=i||{},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"],i.customHeaders)}postChatsUserMessages(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling postChatsUserMessages';if(i==null)throw'Missing the required parameter "body" when calling postChatsUserMessages';return this.apiClient.callApi("/api/v2/chats/users/{userId}/messages","POST",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postChatsUserMessagesPins(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling postChatsUserMessagesPins';if(i==null)throw'Missing the required parameter "body" when calling postChatsUserMessagesPins';return this.apiClient.callApi("/api/v2/chats/users/{userId}/messages/pins","POST",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postChatsUsersMeSettings(e,i){if(i=i||{},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"],i.customHeaders)}putChatsMessageReactions(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "messageId" when calling putChatsMessageReactions';if(i==null)throw'Missing the required parameter "body" when calling putChatsMessageReactions';return this.apiClient.callApi("/api/v2/chats/messages/{messageId}/reactions","PUT",{messageId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putChatsSettings(e,i){if(i=i||{},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"],i.customHeaders)}},UA=class{constructor(e){this.apiClient=e||q.instance}deleteCoachingAppointment(e,i){if(i=i||{},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"],i.customHeaders)}deleteCoachingAppointmentAnnotation(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "appointmentId" when calling deleteCoachingAppointmentAnnotation';if(i==null||i==="")throw'Missing the required parameter "annotationId" when calling deleteCoachingAppointmentAnnotation';return this.apiClient.callApi("/api/v2/coaching/appointments/{appointmentId}/annotations/{annotationId}","DELETE",{appointmentId:e,annotationId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getCoachingAppointment(e,i){if(i=i||{},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"],i.customHeaders)}getCoachingAppointmentAnnotation(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "appointmentId" when calling getCoachingAppointmentAnnotation';if(i==null||i==="")throw'Missing the required parameter "annotationId" when calling getCoachingAppointmentAnnotation';return this.apiClient.callApi("/api/v2/coaching/appointments/{appointmentId}/annotations/{annotationId}","GET",{appointmentId:e,annotationId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getCoachingAppointmentAnnotations(e,i){if(i=i||{},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:i.pageNumber,pageSize:i.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getCoachingAppointmentStatuses(e,i){if(i=i||{},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:i.pageNumber,pageSize:i.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getCoachingAppointments(e,i){if(i=i||{},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:i.interval,pageNumber:i.pageNumber,pageSize:i.pageSize,statuses:this.apiClient.buildCollectionParam(i.statuses,"multi"),facilitatorIds:this.apiClient.buildCollectionParam(i.facilitatorIds,"multi"),sortOrder:i.sortOrder,relationships:this.apiClient.buildCollectionParam(i.relationships,"multi"),completionInterval:i.completionInterval,overdue:i.overdue,intervalCondition:i.intervalCondition},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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"],i.customHeaders)}patchCoachingAppointment(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "appointmentId" when calling patchCoachingAppointment';if(i==null)throw'Missing the required parameter "body" when calling patchCoachingAppointment';return this.apiClient.callApi("/api/v2/coaching/appointments/{appointmentId}","PATCH",{appointmentId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchCoachingAppointmentAnnotation(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "appointmentId" when calling patchCoachingAppointmentAnnotation';if(i==null||i==="")throw'Missing the required parameter "annotationId" when calling patchCoachingAppointmentAnnotation';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchCoachingAppointmentStatus(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "appointmentId" when calling patchCoachingAppointmentStatus';if(i==null)throw'Missing the required parameter "body" when calling patchCoachingAppointmentStatus';return this.apiClient.callApi("/api/v2/coaching/appointments/{appointmentId}/status","PATCH",{appointmentId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchCoachingNotification(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "notificationId" when calling patchCoachingNotification';if(i==null)throw'Missing the required parameter "body" when calling patchCoachingNotification';return this.apiClient.callApi("/api/v2/coaching/notifications/{notificationId}","PATCH",{notificationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postCoachingAppointmentAnnotations(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "appointmentId" when calling postCoachingAppointmentAnnotations';if(i==null)throw'Missing the required parameter "body" when calling postCoachingAppointmentAnnotations';return this.apiClient.callApi("/api/v2/coaching/appointments/{appointmentId}/annotations","POST",{appointmentId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postCoachingAppointmentConversations(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "appointmentId" when calling postCoachingAppointmentConversations';if(i==null)throw'Missing the required parameter "body" when calling postCoachingAppointmentConversations';return this.apiClient.callApi("/api/v2/coaching/appointments/{appointmentId}/conversations","POST",{appointmentId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postCoachingAppointments(e,i){if(i=i||{},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"],i.customHeaders)}postCoachingAppointmentsAggregatesQuery(e,i){if(i=i||{},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"],i.customHeaders)}postCoachingScheduleslotsJobs(e,i){if(i=i||{},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"],i.customHeaders)}postCoachingScheduleslotsQuery(e,i){if(i=i||{},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"],i.customHeaders)}},LA=class{constructor(e){this.apiClient=e||q.instance}deleteContentmanagementDocument(e,i){if(i=i||{},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:i.override},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}deleteContentmanagementShare(e,i){if(i=i||{},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"],i.customHeaders)}deleteContentmanagementStatusStatusId(e,i){if(i=i||{},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"],i.customHeaders)}deleteContentmanagementWorkspace(e,i){if(i=i||{},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:i.moveChildrenToWorkspaceId},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}deleteContentmanagementWorkspaceMember(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "workspaceId" when calling deleteContentmanagementWorkspaceMember';if(i==null||i==="")throw'Missing the required parameter "memberId" when calling deleteContentmanagementWorkspaceMember';return this.apiClient.callApi("/api/v2/contentmanagement/workspaces/{workspaceId}/members/{memberId}","DELETE",{workspaceId:e,memberId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteContentmanagementWorkspaceTagvalue(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "workspaceId" when calling deleteContentmanagementWorkspaceTagvalue';if(i==null||i==="")throw'Missing the required parameter "tagId" when calling deleteContentmanagementWorkspaceTagvalue';return this.apiClient.callApi("/api/v2/contentmanagement/workspaces/{workspaceId}/tagvalues/{tagId}","DELETE",{workspaceId:e,tagId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getContentmanagementDocument(e,i){if(i=i||{},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(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getContentmanagementDocumentContent(e,i){if(i=i||{},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:i.disposition,contentType:i.contentType},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getContentmanagementDocuments(e,i){if(i=i||{},e==null)throw'Missing the required parameter "workspaceId" when calling getContentmanagementDocuments';return this.apiClient.callApi("/api/v2/contentmanagement/documents","GET",{},{workspaceId:e,name:i.name,expand:this.apiClient.buildCollectionParam(i.expand,"multi"),pageSize:i.pageSize,pageNumber:i.pageNumber,sortBy:i.sortBy,sortOrder:i.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getContentmanagementQuery(e,i){if(i=i||{},e==null)throw'Missing the required parameter "queryPhrase" when calling getContentmanagementQuery';return this.apiClient.callApi("/api/v2/contentmanagement/query","GET",{},{pageSize:i.pageSize,pageNumber:i.pageNumber,sortBy:i.sortBy,sortOrder:i.sortOrder,queryPhrase:e,expand:this.apiClient.buildCollectionParam(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getContentmanagementSecurityprofile(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getContentmanagementSharedSharedId(e,i){if(i=i||{},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:i.disposition,contentType:i.contentType,expand:i.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getContentmanagementWorkspaceDocuments(e,i){if(i=i||{},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(i.expand,"multi"),pageSize:i.pageSize,pageNumber:i.pageNumber,sortBy:i.sortBy,sortOrder:i.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getContentmanagementWorkspaceMember(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "workspaceId" when calling getContentmanagementWorkspaceMember';if(i==null||i==="")throw'Missing the required parameter "memberId" when calling getContentmanagementWorkspaceMember';return this.apiClient.callApi("/api/v2/contentmanagement/workspaces/{workspaceId}/members/{memberId}","GET",{workspaceId:e,memberId:i},{expand:this.apiClient.buildCollectionParam(n.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getContentmanagementWorkspaceMembers(e,i){if(i=i||{},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:i.pageSize,pageNumber:i.pageNumber,expand:this.apiClient.buildCollectionParam(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getContentmanagementWorkspaceTagvalue(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "workspaceId" when calling getContentmanagementWorkspaceTagvalue';if(i==null||i==="")throw'Missing the required parameter "tagId" when calling getContentmanagementWorkspaceTagvalue';return this.apiClient.callApi("/api/v2/contentmanagement/workspaces/{workspaceId}/tagvalues/{tagId}","GET",{workspaceId:e,tagId:i},{expand:this.apiClient.buildCollectionParam(n.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getContentmanagementWorkspaceTagvalues(e,i){if(i=i||{},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:i.value,pageSize:i.pageSize,pageNumber:i.pageNumber,expand:this.apiClient.buildCollectionParam(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "documentId" when calling postContentmanagementDocument';if(i==null)throw'Missing the required parameter "body" when calling postContentmanagementDocument';return this.apiClient.callApi("/api/v2/contentmanagement/documents/{documentId}","POST",{documentId:e},{expand:n.expand,override:n.override},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postContentmanagementDocumentContent(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "documentId" when calling postContentmanagementDocumentContent';if(i==null)throw'Missing the required parameter "body" when calling postContentmanagementDocumentContent';return this.apiClient.callApi("/api/v2/contentmanagement/documents/{documentId}/content","POST",{documentId:e},{override:n.override},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postContentmanagementDocuments(e,i){if(i=i||{},e==null)throw'Missing the required parameter "body" when calling postContentmanagementDocuments';return this.apiClient.callApi("/api/v2/contentmanagement/documents","POST",{},{copySource:i.copySource,moveSource:i.moveSource,override:i.override},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postContentmanagementQuery(e,i){if(i=i||{},e==null)throw'Missing the required parameter "body" when calling postContentmanagementQuery';return this.apiClient.callApi("/api/v2/contentmanagement/query","POST",{},{expand:i.expand},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postContentmanagementShares(e,i){if(i=i||{},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"],i.customHeaders)}postContentmanagementWorkspaceTagvalues(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "workspaceId" when calling postContentmanagementWorkspaceTagvalues';if(i==null)throw'Missing the required parameter "body" when calling postContentmanagementWorkspaceTagvalues';return this.apiClient.callApi("/api/v2/contentmanagement/workspaces/{workspaceId}/tagvalues","POST",{workspaceId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postContentmanagementWorkspaceTagvaluesQuery(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "workspaceId" when calling postContentmanagementWorkspaceTagvaluesQuery';if(i==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(n.expand,"multi")},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postContentmanagementWorkspaces(e,i){if(i=i||{},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"],i.customHeaders)}putContentmanagementWorkspace(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "workspaceId" when calling putContentmanagementWorkspace';if(i==null)throw'Missing the required parameter "body" when calling putContentmanagementWorkspace';return this.apiClient.callApi("/api/v2/contentmanagement/workspaces/{workspaceId}","PUT",{workspaceId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putContentmanagementWorkspaceMember(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "workspaceId" when calling putContentmanagementWorkspaceMember';if(i==null||i==="")throw'Missing the required parameter "memberId" when calling putContentmanagementWorkspaceMember';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}putContentmanagementWorkspaceTagvalue(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "workspaceId" when calling putContentmanagementWorkspaceTagvalue';if(i==null||i==="")throw'Missing the required parameter "tagId" when calling putContentmanagementWorkspaceTagvalue';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}},WA=class{constructor(e){this.apiClient=e||q.instance}deleteAnalyticsConversationsAggregatesJob(e,i){if(i=i||{},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"],i.customHeaders)}deleteAnalyticsConversationsDetailsJob(e,i){if(i=i||{},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"],i.customHeaders)}deleteConversation(e,i){if(i=i||{},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"],i.customHeaders)}deleteConversationCustomattribute(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling deleteConversationCustomattribute';if(i==null||i==="")throw'Missing the required parameter "attributesId" when calling deleteConversationCustomattribute';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/customattributes/{attributesId}","DELETE",{conversationId:e,attributesId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteConversationParticipantCode(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling deleteConversationParticipantCode';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling deleteConversationParticipantCode';if(n==null||n==="")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:i,addCommunicationCode:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}deleteConversationParticipantFlaggedreason(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling deleteConversationParticipantFlaggedreason';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling deleteConversationParticipantFlaggedreason';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/participants/{participantId}/flaggedreason","DELETE",{conversationId:e,participantId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteConversationsCallParticipantCommunicationPostflowaction(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling deleteConversationsCallParticipantCommunicationPostflowaction';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling deleteConversationsCallParticipantCommunicationPostflowaction';if(n==null||n==="")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:i,communicationId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}deleteConversationsCallParticipantConsult(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling deleteConversationsCallParticipantConsult';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteConversationsEmailMessagesDraftAttachment(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling deleteConversationsEmailMessagesDraftAttachment';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteConversationsMessagesCachedmediaCachedMediaItemId(e,i){if(i=i||{},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"],i.customHeaders)}deleteConversationsMessagingIntegrationsAppleIntegrationId(e,i){if(i=i||{},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"],i.customHeaders)}deleteConversationsMessagingIntegrationsFacebookIntegrationId(e,i){if(i=i||{},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"],i.customHeaders)}deleteConversationsMessagingIntegrationsInstagramIntegrationId(e,i){if(i=i||{},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"],i.customHeaders)}deleteConversationsMessagingIntegrationsOpenExtensionsGooglebusinessprofileIntegrationId(e,i){if(i=i||{},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"],i.customHeaders)}deleteConversationsMessagingIntegrationsOpenIntegrationId(e,i){if(i=i||{},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"],i.customHeaders)}deleteConversationsMessagingIntegrationsTwitterIntegrationId(e,i){if(i=i||{},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"],i.customHeaders)}deleteConversationsMessagingIntegrationsWhatsappIntegrationId(e,i){if(i=i||{},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"],i.customHeaders)}deleteConversationsMessagingSetting(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getAnalyticsConversationDetails(e,i){if(i=i||{},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"],i.customHeaders)}getAnalyticsConversationsAggregatesJob(e,i){if(i=i||{},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"],i.customHeaders)}getAnalyticsConversationsAggregatesJobResults(e,i){if(i=i||{},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:i.cursor},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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"],i.customHeaders)}getAnalyticsConversationsDetailsJobResults(e,i){if(i=i||{},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:i.cursor,pageSize:i.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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"],i.customHeaders)}getConversationAssistantCopilotcontext(e,i){if(i=i||{},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"],i.customHeaders)}getConversationCommunicationAgentchecklist(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationCommunicationAgentchecklist';if(i==null||i==="")throw'Missing the required parameter "communicationId" when calling getConversationCommunicationAgentchecklist';if(n==null||n==="")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:i,agentChecklistId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getConversationCommunicationAgentchecklistJob(e,i,n,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationCommunicationAgentchecklistJob';if(i==null||i==="")throw'Missing the required parameter "communicationId" when calling getConversationCommunicationAgentchecklistJob';if(n==null||n==="")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:i,agentChecklistId:n,jobId:a},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}getConversationCommunicationAgentchecklists(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationCommunicationAgentchecklists';if(i==null||i==="")throw'Missing the required parameter "communicationId" when calling getConversationCommunicationAgentchecklists';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/communications/{communicationId}/agentchecklists","GET",{conversationId:e,communicationId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getConversationCommunicationInternalmessage(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationCommunicationInternalmessage';if(i==null||i==="")throw'Missing the required parameter "communicationId" when calling getConversationCommunicationInternalmessage';if(n==null||n==="")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:i,messageId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getConversationCommunicationInternalmessages(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationCommunicationInternalmessages';if(i==null||i==="")throw'Missing the required parameter "communicationId" when calling getConversationCommunicationInternalmessages';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/communications/{communicationId}/internalmessages","GET",{conversationId:e,communicationId:i},{pageSize:n.pageSize,pageNumber:n.pageNumber},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getConversationCustomattribute(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationCustomattribute';if(i==null||i==="")throw'Missing the required parameter "attributesId" when calling getConversationCustomattribute';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/customattributes/{attributesId}","GET",{conversationId:e,attributesId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getConversationCustomattributes(e,i){if(i=i||{},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"],i.customHeaders)}getConversationParticipantSecureivrsession(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationParticipantSecureivrsession';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling getConversationParticipantSecureivrsession';if(n==null||n==="")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:i,secureSessionId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getConversationParticipantSecureivrsessions(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationParticipantSecureivrsessions';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling getConversationParticipantSecureivrsessions';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/participants/{participantId}/secureivrsessions","GET",{conversationId:e,participantId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getConversationParticipantWrapup(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationParticipantWrapup';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling getConversationParticipantWrapup';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/participants/{participantId}/wrapup","GET",{conversationId:e,participantId:i},{provisional:n.provisional},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getConversationParticipantWrapupcodes(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationParticipantWrapupcodes';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling getConversationParticipantWrapupcodes';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/participants/{participantId}/wrapupcodes","GET",{conversationId:e,participantId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getConversationSecureattributes(e,i){if(i=i||{},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"],i.customHeaders)}getConversationSuggestion(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationSuggestion';if(i==null||i==="")throw'Missing the required parameter "suggestionId" when calling getConversationSuggestion';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/suggestions/{suggestionId}","GET",{conversationId:e,suggestionId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getConversationSuggestions(e,i){if(i=i||{},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:i.before,after:i.after,pageSize:i.pageSize,type:i.type,state:i.state},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getConversationSummaries(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getConversationsCallParticipantCommunicationWrapup(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationsCallParticipantCommunicationWrapup';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling getConversationsCallParticipantCommunicationWrapup';if(n==null||n==="")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:i,communicationId:n},{provisional:a.provisional},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getConversationsCallParticipantWrapup(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationsCallParticipantWrapup';if(i==null||i==="")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:i},{provisional:n.provisional},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getConversationsCallParticipantWrapupcodes(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationsCallParticipantWrapupcodes';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getConversationsCallback(e,i){if(i=i||{},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"],i.customHeaders)}getConversationsCallbackParticipantCommunicationWrapup(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationsCallbackParticipantCommunicationWrapup';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling getConversationsCallbackParticipantCommunicationWrapup';if(n==null||n==="")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:i,communicationId:n},{provisional:a.provisional},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getConversationsCallbackParticipantWrapup(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationsCallbackParticipantWrapup';if(i==null||i==="")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:i},{provisional:n.provisional},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getConversationsCallbackParticipantWrapupcodes(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationsCallbackParticipantWrapupcodes';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getConversationsCallbacks(e){return e=e||{},this.apiClient.callApi("/api/v2/conversations/callbacks","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getConversationsCalls(e){return e=e||{},this.apiClient.callApi("/api/v2/conversations/calls","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getConversationsCallsHistory(e){return e=e||{},this.apiClient.callApi("/api/v2/conversations/calls/history","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,interval:e.interval,expand:this.apiClient.buildCollectionParam(e.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getConversationsCallsMaximumconferenceparties(e){return e=e||{},this.apiClient.callApi("/api/v2/conversations/calls/maximumconferenceparties","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getConversationsChat(e,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationsChat';return this.apiClient.callApi("/api/v2/conversations/chats/{conversationId}","GET",{conversationId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getConversationsChatMessage(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationsChatMessage';if(i==null||i==="")throw'Missing the required parameter "messageId" when calling getConversationsChatMessage';return this.apiClient.callApi("/api/v2/conversations/chats/{conversationId}/messages/{messageId}","GET",{conversationId:e,messageId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getConversationsChatMessages(e,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationsChatMessages';return this.apiClient.callApi("/api/v2/conversations/chats/{conversationId}/messages","GET",{conversationId:e},{after:i.after,before:i.before,sortOrder:i.sortOrder,maxResults:i.maxResults},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getConversationsChatParticipantCommunicationWrapup(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationsChatParticipantCommunicationWrapup';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling getConversationsChatParticipantCommunicationWrapup';if(n==null||n==="")throw'Missing the required parameter "communicationId" when calling getConversationsChatParticipantCommunicationWrapup';return this.apiClient.callApi("/api/v2/conversations/chats/{conversationId}/participants/{participantId}/communications/{communicationId}/wrapup","GET",{conversationId:e,participantId:i,communicationId:n},{provisional:a.provisional},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getConversationsChatParticipantWrapup(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationsChatParticipantWrapup';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling getConversationsChatParticipantWrapup';return this.apiClient.callApi("/api/v2/conversations/chats/{conversationId}/participants/{participantId}/wrapup","GET",{conversationId:e,participantId:i},{provisional:n.provisional},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getConversationsChatParticipantWrapupcodes(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationsChatParticipantWrapupcodes';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling getConversationsChatParticipantWrapupcodes';return this.apiClient.callApi("/api/v2/conversations/chats/{conversationId}/participants/{participantId}/wrapupcodes","GET",{conversationId:e,participantId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getConversationsChats(e){return e=e||{},this.apiClient.callApi("/api/v2/conversations/chats","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getConversationsCobrowsesession(e,i){if(i=i||{},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"],i.customHeaders)}getConversationsCobrowsesessionParticipantCommunicationWrapup(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationsCobrowsesessionParticipantCommunicationWrapup';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling getConversationsCobrowsesessionParticipantCommunicationWrapup';if(n==null||n==="")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:i,communicationId:n},{provisional:a.provisional},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getConversationsCobrowsesessionParticipantWrapup(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationsCobrowsesessionParticipantWrapup';if(i==null||i==="")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:i},{provisional:n.provisional},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getConversationsCobrowsesessionParticipantWrapupcodes(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationsCobrowsesessionParticipantWrapupcodes';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.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,i){if(i=i||{},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"],i.customHeaders)}getConversationsCustomattributesSchemaVersion(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "schemaId" when calling getConversationsCustomattributesSchemaVersion';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getConversationsCustomattributesSchemaVersions(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getConversationsEmailMessage(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationsEmailMessage';if(i==null||i==="")throw'Missing the required parameter "messageId" when calling getConversationsEmailMessage';return this.apiClient.callApi("/api/v2/conversations/emails/{conversationId}/messages/{messageId}","GET",{conversationId:e,messageId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getConversationsEmailMessages(e,i){if(i=i||{},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:i.includeAgentlessStitchedMessages},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getConversationsEmailMessagesDraft(e,i){if(i=i||{},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"],i.customHeaders)}getConversationsEmailParticipantCommunicationWrapup(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationsEmailParticipantCommunicationWrapup';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling getConversationsEmailParticipantCommunicationWrapup';if(n==null||n==="")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:i,communicationId:n},{provisional:a.provisional},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getConversationsEmailParticipantWrapup(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationsEmailParticipantWrapup';if(i==null||i==="")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:i},{provisional:n.provisional},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getConversationsEmailParticipantWrapupcodes(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationsEmailParticipantWrapupcodes';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getConversationsEmailSettings(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getConversationsMessageCommunicationMessagesMedia(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationsMessageCommunicationMessagesMedia';if(i==null||i==="")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:i},{status:n.status,pageNumber:n.pageNumber,pageSize:n.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getConversationsMessageCommunicationMessagesMediaMediaId(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationsMessageCommunicationMessagesMediaMediaId';if(i==null||i==="")throw'Missing the required parameter "communicationId" when calling getConversationsMessageCommunicationMessagesMediaMediaId';if(n==null||n==="")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:i,mediaId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getConversationsMessageDetails(e,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "messageId" when calling getConversationsMessageDetails';return this.apiClient.callApi("/api/v2/conversations/messages/{messageId}/details","GET",{messageId:e},{useNormalizedMessage:i.useNormalizedMessage},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getConversationsMessageMessage(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationsMessageMessage';if(i==null||i==="")throw'Missing the required parameter "messageId" when calling getConversationsMessageMessage';return this.apiClient.callApi("/api/v2/conversations/messages/{conversationId}/messages/{messageId}","GET",{conversationId:e,messageId:i},{useNormalizedMessage:n.useNormalizedMessage},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getConversationsMessageParticipantCommunicationWrapup(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationsMessageParticipantCommunicationWrapup';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling getConversationsMessageParticipantCommunicationWrapup';if(n==null||n==="")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:i,communicationId:n},{provisional:a.provisional},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getConversationsMessageParticipantWrapup(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationsMessageParticipantWrapup';if(i==null||i==="")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:i},{provisional:n.provisional},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getConversationsMessageParticipantWrapupcodes(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationsMessageParticipantWrapupcodes';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getConversationsMessagingIdentityresolutionIntegrationsFacebookIntegrationId(e,i){if(i=i||{},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"],i.customHeaders)}getConversationsMessagingIdentityresolutionIntegrationsInstagramIntegrationId(e,i){if(i=i||{},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"],i.customHeaders)}getConversationsMessagingIdentityresolutionIntegrationsOpenIntegrationId(e,i){if(i=i||{},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"],i.customHeaders)}getConversationsMessagingIdentityresolutionIntegrationsTwitterIntegrationId(e,i){if(i=i||{},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"],i.customHeaders)}getConversationsMessagingIdentityresolutionIntegrationsWhatsappIntegrationId(e,i){if(i=i||{},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"],i.customHeaders)}getConversationsMessagingIntegrationTwitterOauthSettings(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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:i.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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:i.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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:i.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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:i.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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"],i.customHeaders)}getConversationsMessagingIntegrationsOpenExtensionsGooglebusinessprofileTokenAccounts(e,i){if(i=i||{},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"],i.customHeaders)}getConversationsMessagingIntegrationsOpenIntegrationId(e,i){if(i=i||{},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:i.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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:i.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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:i.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getConversationsMessagingOauthAppleCallback(e,i,n){if(n=n||{},e==null)throw'Missing the required parameter "code" when calling getConversationsMessagingOauthAppleCallback';if(i==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:i,error:n.error},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getConversationsMessagingSetting(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationsScreenshareParticipantCommunicationWrapup';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling getConversationsScreenshareParticipantCommunicationWrapup';if(n==null||n==="")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:i,communicationId:n},{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,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationsSocialParticipantCommunicationWrapup';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling getConversationsSocialParticipantCommunicationWrapup';if(n==null||n==="")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:i,communicationId:n},{provisional:a.provisional},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getConversationsVideoDetails(e,i){if(i=i||{},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"],i.customHeaders)}getConversationsVideoParticipantCommunicationWrapup(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationsVideoParticipantCommunicationWrapup';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling getConversationsVideoParticipantCommunicationWrapup';if(n==null||n==="")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:i,communicationId:n},{provisional:a.provisional},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getConversationsVideosMeeting(e,i){if(i=i||{},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"],i.customHeaders)}patchConversationCustomattributes(e,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchConversationCustomattributes';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/customattributes","PATCH",{conversationId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}patchConversationCustomattributesBulk(e,i){if(i=i||{},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},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}patchConversationParticipant(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchConversationParticipant';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling patchConversationParticipant';if(n==null)throw'Missing the required parameter "body" when calling patchConversationParticipant';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/participants/{participantId}","PATCH",{conversationId:e,participantId:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchConversationParticipantAttributes(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchConversationParticipantAttributes';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling patchConversationParticipantAttributes';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchConversationRecordingstate(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchConversationRecordingstate';if(i==null)throw'Missing the required parameter "body" when calling patchConversationRecordingstate';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/recordingstate","PATCH",{conversationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchConversationSecureattributes(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchConversationSecureattributes';if(i==null)throw'Missing the required parameter "body" when calling patchConversationSecureattributes';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/secureattributes","PATCH",{conversationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchConversationSummaryEngagements(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchConversationSummaryEngagements';if(i==null||i==="")throw'Missing the required parameter "summaryId" when calling patchConversationSummaryEngagements';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/summaries/{summaryId}/engagements","PATCH",{conversationId:e,summaryId:i},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchConversationSummaryFeedback(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchConversationSummaryFeedback';if(i==null||i==="")throw'Missing the required parameter "summaryId" when calling patchConversationSummaryFeedback';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/summaries/{summaryId}/feedback","PATCH",{conversationId:e,summaryId:i},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchConversationUtilizationlabel(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchConversationUtilizationlabel';if(i==null)throw'Missing the required parameter "body" when calling patchConversationUtilizationlabel';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/utilizationlabel","PATCH",{conversationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchConversationsAftercallworkConversationIdParticipantCommunication(e,i,n,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchConversationsAftercallworkConversationIdParticipantCommunication';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling patchConversationsAftercallworkConversationIdParticipantCommunication';if(n==null||n==="")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:i,communicationId:n},{},{},{},a,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}patchConversationsCall(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchConversationsCall';if(i==null)throw'Missing the required parameter "body" when calling patchConversationsCall';return this.apiClient.callApi("/api/v2/conversations/calls/{conversationId}","PATCH",{conversationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchConversationsCallConference(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchConversationsCallConference';if(i==null)throw'Missing the required parameter "body" when calling patchConversationsCallConference';return this.apiClient.callApi("/api/v2/conversations/calls/{conversationId}/conference","PATCH",{conversationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchConversationsCallParticipant(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchConversationsCallParticipant';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling patchConversationsCallParticipant';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchConversationsCallParticipantAttributes(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchConversationsCallParticipantAttributes';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling patchConversationsCallParticipantAttributes';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchConversationsCallParticipantCommunication(e,i,n,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchConversationsCallParticipantCommunication';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling patchConversationsCallParticipantCommunication';if(n==null||n==="")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:i,communicationId:n},{},{},{},a,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}patchConversationsCallParticipantCommunicationPostflowaction(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchConversationsCallParticipantCommunicationPostflowaction';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling patchConversationsCallParticipantCommunicationPostflowaction';if(n==null||n==="")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:i,communicationId:n},{},{},{},a.body,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchConversationsCallParticipantConsult(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchConversationsCallParticipantConsult';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling patchConversationsCallParticipantConsult';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchConversationsCallParticipantUserUserId(e,i,n,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchConversationsCallParticipantUserUserId';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling patchConversationsCallParticipantUserUserId';if(n==null||n==="")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:i,userId:n},{},{},{},a,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}patchConversationsCallback(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchConversationsCallback';if(i==null)throw'Missing the required parameter "body" when calling patchConversationsCallback';return this.apiClient.callApi("/api/v2/conversations/callbacks/{conversationId}","PATCH",{conversationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchConversationsCallbackParticipant(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchConversationsCallbackParticipant';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling patchConversationsCallbackParticipant';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchConversationsCallbackParticipantAttributes(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchConversationsCallbackParticipantAttributes';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling patchConversationsCallbackParticipantAttributes';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchConversationsCallbackParticipantCommunication(e,i,n,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchConversationsCallbackParticipantCommunication';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling patchConversationsCallbackParticipantCommunication';if(n==null||n==="")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:i,communicationId:n},{},{},{},a,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}patchConversationsCallbacks(e,i){if(i=i||{},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"],i.customHeaders)}patchConversationsChat(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchConversationsChat';if(i==null)throw'Missing the required parameter "body" when calling patchConversationsChat';return this.apiClient.callApi("/api/v2/conversations/chats/{conversationId}","PATCH",{conversationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchConversationsChatParticipant(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchConversationsChatParticipant';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling patchConversationsChatParticipant';if(n==null)throw'Missing the required parameter "body" when calling patchConversationsChatParticipant';return this.apiClient.callApi("/api/v2/conversations/chats/{conversationId}/participants/{participantId}","PATCH",{conversationId:e,participantId:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchConversationsChatParticipantAttributes(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchConversationsChatParticipantAttributes';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling patchConversationsChatParticipantAttributes';if(n==null)throw'Missing the required parameter "body" when calling patchConversationsChatParticipantAttributes';return this.apiClient.callApi("/api/v2/conversations/chats/{conversationId}/participants/{participantId}/attributes","PATCH",{conversationId:e,participantId:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchConversationsChatParticipantCommunication(e,i,n,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchConversationsChatParticipantCommunication';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling patchConversationsChatParticipantCommunication';if(n==null||n==="")throw'Missing the required parameter "communicationId" when calling patchConversationsChatParticipantCommunication';if(a==null)throw'Missing the required parameter "body" when calling patchConversationsChatParticipantCommunication';return this.apiClient.callApi("/api/v2/conversations/chats/{conversationId}/participants/{participantId}/communications/{communicationId}","PATCH",{conversationId:e,participantId:i,communicationId:n},{},{},{},a,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}patchConversationsCobrowsesession(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchConversationsCobrowsesession';if(i==null)throw'Missing the required parameter "body" when calling patchConversationsCobrowsesession';return this.apiClient.callApi("/api/v2/conversations/cobrowsesessions/{conversationId}","PATCH",{conversationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchConversationsCobrowsesessionParticipant(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchConversationsCobrowsesessionParticipant';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling patchConversationsCobrowsesessionParticipant';return this.apiClient.callApi("/api/v2/conversations/cobrowsesessions/{conversationId}/participants/{participantId}","PATCH",{conversationId:e,participantId:i},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchConversationsCobrowsesessionParticipantAttributes(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchConversationsCobrowsesessionParticipantAttributes';if(i==null||i==="")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:i},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchConversationsCobrowsesessionParticipantCommunication(e,i,n,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchConversationsCobrowsesessionParticipantCommunication';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling patchConversationsCobrowsesessionParticipantCommunication';if(n==null||n==="")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:i,communicationId:n},{},{},{},a,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}patchConversationsEmail(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchConversationsEmail';if(i==null)throw'Missing the required parameter "body" when calling patchConversationsEmail';return this.apiClient.callApi("/api/v2/conversations/emails/{conversationId}","PATCH",{conversationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchConversationsEmailMessagesDraft(e,i){if(i=i||{},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:i.autoFill,discard:i.discard},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}patchConversationsEmailParticipant(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchConversationsEmailParticipant';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling patchConversationsEmailParticipant';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchConversationsEmailParticipantAttributes(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchConversationsEmailParticipantAttributes';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling patchConversationsEmailParticipantAttributes';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchConversationsEmailParticipantCommunication(e,i,n,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchConversationsEmailParticipantCommunication';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling patchConversationsEmailParticipantCommunication';if(n==null||n==="")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:i,communicationId:n},{},{},{},a,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}patchConversationsEmailParticipantParkingstate(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchConversationsEmailParticipantParkingstate';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling patchConversationsEmailParticipantParkingstate';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchConversationsMessage(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchConversationsMessage';if(i==null)throw'Missing the required parameter "body" when calling patchConversationsMessage';return this.apiClient.callApi("/api/v2/conversations/messages/{conversationId}","PATCH",{conversationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchConversationsMessageParticipant(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchConversationsMessageParticipant';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling patchConversationsMessageParticipant';return this.apiClient.callApi("/api/v2/conversations/messages/{conversationId}/participants/{participantId}","PATCH",{conversationId:e,participantId:i},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchConversationsMessageParticipantAttributes(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchConversationsMessageParticipantAttributes';if(i==null||i==="")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:i},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchConversationsMessageParticipantCommunication(e,i,n,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchConversationsMessageParticipantCommunication';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling patchConversationsMessageParticipantCommunication';if(n==null||n==="")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:i,communicationId:n},{},{},{},a,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}patchConversationsMessageParticipantParkingstate(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchConversationsMessageParticipantParkingstate';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling patchConversationsMessageParticipantParkingstate';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchConversationsMessagingIntegrationsAppleIntegrationId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "integrationId" when calling patchConversationsMessagingIntegrationsAppleIntegrationId';if(i==null)throw'Missing the required parameter "body" when calling patchConversationsMessagingIntegrationsAppleIntegrationId';return this.apiClient.callApi("/api/v2/conversations/messaging/integrations/apple/{integrationId}","PATCH",{integrationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchConversationsMessagingIntegrationsFacebookIntegrationId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "integrationId" when calling patchConversationsMessagingIntegrationsFacebookIntegrationId';if(i==null)throw'Missing the required parameter "body" when calling patchConversationsMessagingIntegrationsFacebookIntegrationId';return this.apiClient.callApi("/api/v2/conversations/messaging/integrations/facebook/{integrationId}","PATCH",{integrationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchConversationsMessagingIntegrationsInstagramIntegrationId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "integrationId" when calling patchConversationsMessagingIntegrationsInstagramIntegrationId';if(i==null)throw'Missing the required parameter "body" when calling patchConversationsMessagingIntegrationsInstagramIntegrationId';return this.apiClient.callApi("/api/v2/conversations/messaging/integrations/instagram/{integrationId}","PATCH",{integrationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchConversationsMessagingIntegrationsOpenExtensionsGooglebusinessprofileIntegrationId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "integrationId" when calling patchConversationsMessagingIntegrationsOpenExtensionsGooglebusinessprofileIntegrationId';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchConversationsMessagingIntegrationsOpenIntegrationId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "integrationId" when calling patchConversationsMessagingIntegrationsOpenIntegrationId';if(i==null)throw'Missing the required parameter "body" when calling patchConversationsMessagingIntegrationsOpenIntegrationId';return this.apiClient.callApi("/api/v2/conversations/messaging/integrations/open/{integrationId}","PATCH",{integrationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchConversationsMessagingIntegrationsTwitterIntegrationId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "integrationId" when calling patchConversationsMessagingIntegrationsTwitterIntegrationId';if(i==null)throw'Missing the required parameter "body" when calling patchConversationsMessagingIntegrationsTwitterIntegrationId';return this.apiClient.callApi("/api/v2/conversations/messaging/integrations/twitter/{integrationId}","PATCH",{integrationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchConversationsMessagingIntegrationsWhatsappEmbeddedsignupIntegrationId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "integrationId" when calling patchConversationsMessagingIntegrationsWhatsappEmbeddedsignupIntegrationId';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchConversationsMessagingIntegrationsWhatsappIntegrationId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "integrationId" when calling patchConversationsMessagingIntegrationsWhatsappIntegrationId';if(i==null)throw'Missing the required parameter "body" when calling patchConversationsMessagingIntegrationsWhatsappIntegrationId';return this.apiClient.callApi("/api/v2/conversations/messaging/integrations/whatsapp/{integrationId}","PATCH",{integrationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchConversationsMessagingSetting(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "messageSettingId" when calling patchConversationsMessagingSetting';if(i==null)throw'Missing the required parameter "body" when calling patchConversationsMessagingSetting';return this.apiClient.callApi("/api/v2/conversations/messaging/settings/{messageSettingId}","PATCH",{messageSettingId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchConversationsMessagingSupportedcontentSupportedContentId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "supportedContentId" when calling patchConversationsMessagingSupportedcontentSupportedContentId';if(i==null)throw'Missing the required parameter "body" when calling patchConversationsMessagingSupportedcontentSupportedContentId';return this.apiClient.callApi("/api/v2/conversations/messaging/supportedcontent/{supportedContentId}","PATCH",{supportedContentId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchConversationsSettings(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsConversationDetailsProperties(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postAnalyticsConversationDetailsProperties';if(i==null)throw'Missing the required parameter "body" when calling postAnalyticsConversationDetailsProperties';return this.apiClient.callApi("/api/v2/analytics/conversations/{conversationId}/details/properties","POST",{conversationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postAnalyticsConversationsActivityQuery(e,i){if(i=i||{},e==null)throw'Missing the required parameter "body" when calling postAnalyticsConversationsActivityQuery';return this.apiClient.callApi("/api/v2/analytics/conversations/activity/query","POST",{},{pageSize:i.pageSize,pageNumber:i.pageNumber},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postAnalyticsConversationsAggregatesJobs(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsConversationsAggregatesQuery(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsConversationsDetailsJobs(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsConversationsDetailsQuery(e,i){if(i=i||{},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"],i.customHeaders)}postConversationAssign(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationAssign';if(i==null)throw'Missing the required parameter "body" when calling postConversationAssign';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/assign","POST",{conversationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postConversationBarge(e,i){if(i=i||{},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"],i.customHeaders)}postConversationCobrowse(e,i){if(i=i||{},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"],i.customHeaders)}postConversationCommunicationAgentchecklist(e,i,n,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationCommunicationAgentchecklist';if(i==null||i==="")throw'Missing the required parameter "communicationId" when calling postConversationCommunicationAgentchecklist';if(n==null||n==="")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:i,agentChecklistId:n},{},{},{},a,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}postConversationCommunicationAgentchecklistAgentaction(e,i,n,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationCommunicationAgentchecklistAgentaction';if(i==null||i==="")throw'Missing the required parameter "communicationId" when calling postConversationCommunicationAgentchecklistAgentaction';if(n==null||n==="")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:i,agentChecklistId:n},{},{},{},a,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}postConversationCommunicationAgentchecklistJobs(e,i,n,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationCommunicationAgentchecklistJobs';if(i==null||i==="")throw'Missing the required parameter "communicationId" when calling postConversationCommunicationAgentchecklistJobs';if(n==null||n==="")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:i,agentChecklistId:n},{},{},{},a,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}postConversationCommunicationAgentchecklistsFinalize(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationCommunicationAgentchecklistsFinalize';if(i==null||i==="")throw'Missing the required parameter "communicationId" when calling postConversationCommunicationAgentchecklistsFinalize';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postConversationCommunicationInternalmessages(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationCommunicationInternalmessages';if(i==null||i==="")throw'Missing the required parameter "communicationId" when calling postConversationCommunicationInternalmessages';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postConversationDisconnect(e,i){if(i=i||{},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"],i.customHeaders)}postConversationParticipantCallbacks(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationParticipantCallbacks';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling postConversationParticipantCallbacks';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/participants/{participantId}/callbacks","POST",{conversationId:e,participantId:i},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postConversationParticipantDigits(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationParticipantDigits';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling postConversationParticipantDigits';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/participants/{participantId}/digits","POST",{conversationId:e,participantId:i},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postConversationParticipantInternalmessagesUsersCommunications(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationParticipantInternalmessagesUsersCommunications';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling postConversationParticipantInternalmessagesUsersCommunications';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postConversationParticipantReplace(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationParticipantReplace';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling postConversationParticipantReplace';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postConversationParticipantReplaceAgent(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationParticipantReplaceAgent';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling postConversationParticipantReplaceAgent';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postConversationParticipantReplaceContactExternal(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationParticipantReplaceContactExternal';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling postConversationParticipantReplaceContactExternal';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postConversationParticipantReplaceExternal(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationParticipantReplaceExternal';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling postConversationParticipantReplaceExternal';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postConversationParticipantReplaceQueue(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationParticipantReplaceQueue';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling postConversationParticipantReplaceQueue';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postConversationParticipantSecureivrsessions(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationParticipantSecureivrsessions';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling postConversationParticipantSecureivrsessions';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/participants/{participantId}/secureivrsessions","POST",{conversationId:e,participantId:i},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postConversationParticipantTransfer(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationParticipantTransfer';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling postConversationParticipantTransfer';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postConversationSuggestionEngagement(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationSuggestionEngagement';if(i==null||i==="")throw'Missing the required parameter "suggestionId" when calling postConversationSuggestionEngagement';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postConversationSuggestionsFeedback(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationSuggestionsFeedback';if(i==null)throw'Missing the required parameter "body" when calling postConversationSuggestionsFeedback';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/suggestions/feedback","POST",{conversationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postConversationSummaryFeedback(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationSummaryFeedback';if(i==null||i==="")throw'Missing the required parameter "summaryId" when calling postConversationSummaryFeedback';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/summaries/{summaryId}/feedback","POST",{conversationId:e,summaryId:i},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postConversationsCall(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsCall';if(i==null)throw'Missing the required parameter "body" when calling postConversationsCall';return this.apiClient.callApi("/api/v2/conversations/calls/{conversationId}","POST",{conversationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postConversationsCallParticipantBarge(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsCallParticipantBarge';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postConversationsCallParticipantCoach(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsCallParticipantCoach';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postConversationsCallParticipantCommunicationWrapup(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsCallParticipantCommunicationWrapup';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling postConversationsCallParticipantCommunicationWrapup';if(n==null||n==="")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:i,communicationId:n},{},{},{},a.body,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postConversationsCallParticipantConsult(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsCallParticipantConsult';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling postConversationsCallParticipantConsult';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postConversationsCallParticipantConsultAgent(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsCallParticipantConsultAgent';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling postConversationsCallParticipantConsultAgent';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postConversationsCallParticipantConsultContactExternal(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsCallParticipantConsultContactExternal';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling postConversationsCallParticipantConsultContactExternal';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postConversationsCallParticipantConsultExternal(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsCallParticipantConsultExternal';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling postConversationsCallParticipantConsultExternal';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postConversationsCallParticipantConsultQueue(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsCallParticipantConsultQueue';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling postConversationsCallParticipantConsultQueue';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postConversationsCallParticipantMonitor(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsCallParticipantMonitor';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postConversationsCallParticipantReplace(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsCallParticipantReplace';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling postConversationsCallParticipantReplace';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postConversationsCallParticipantSnippetRecord(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsCallParticipantSnippetRecord';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling postConversationsCallParticipantSnippetRecord';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postConversationsCallParticipantVoiceConsult(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsCallParticipantVoiceConsult';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling postConversationsCallParticipantVoiceConsult';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postConversationsCallParticipants(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsCallParticipants';if(i==null)throw'Missing the required parameter "body" when calling postConversationsCallParticipants';return this.apiClient.callApi("/api/v2/conversations/calls/{conversationId}/participants","POST",{conversationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postConversationsCallParticipantsUserUserId(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsCallParticipantsUserUserId';if(i==null||i==="")throw'Missing the required parameter "userId" when calling postConversationsCallParticipantsUserUserId';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postConversationsCallbackParticipantCommunicationWrapup(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsCallbackParticipantCommunicationWrapup';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling postConversationsCallbackParticipantCommunicationWrapup';if(n==null||n==="")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:i,communicationId:n},{},{},{},a.body,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postConversationsCallbackParticipantReplace(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsCallbackParticipantReplace';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling postConversationsCallbackParticipantReplace';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postConversationsCallbacks(e,i){if(i=i||{},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"],i.customHeaders)}postConversationsCallbacksBulkDisconnect(e,i){if(i=i||{},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"],i.customHeaders)}postConversationsCallbacksBulkUpdate(e,i){if(i=i||{},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"],i.customHeaders)}postConversationsCalls(e,i){if(i=i||{},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"],i.customHeaders)}postConversationsCallsUserUserId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling postConversationsCallsUserUserId';if(i==null)throw'Missing the required parameter "body" when calling postConversationsCallsUserUserId';return this.apiClient.callApi("/api/v2/conversations/calls/user/{userId}","POST",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postConversationsChatCommunicationMessages(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsChatCommunicationMessages';if(i==null||i==="")throw'Missing the required parameter "communicationId" when calling postConversationsChatCommunicationMessages';if(n==null)throw'Missing the required parameter "body" when calling postConversationsChatCommunicationMessages';return this.apiClient.callApi("/api/v2/conversations/chats/{conversationId}/communications/{communicationId}/messages","POST",{conversationId:e,communicationId:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postConversationsChatCommunicationTyping(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsChatCommunicationTyping';if(i==null||i==="")throw'Missing the required parameter "communicationId" when calling postConversationsChatCommunicationTyping';return this.apiClient.callApi("/api/v2/conversations/chats/{conversationId}/communications/{communicationId}/typing","POST",{conversationId:e,communicationId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postConversationsChatParticipantCommunicationWrapup(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsChatParticipantCommunicationWrapup';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling postConversationsChatParticipantCommunicationWrapup';if(n==null||n==="")throw'Missing the required parameter "communicationId" when calling postConversationsChatParticipantCommunicationWrapup';return this.apiClient.callApi("/api/v2/conversations/chats/{conversationId}/participants/{participantId}/communications/{communicationId}/wrapup","POST",{conversationId:e,participantId:i,communicationId:n},{},{},{},a.body,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postConversationsChatParticipantReplace(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsChatParticipantReplace';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling postConversationsChatParticipantReplace';if(n==null)throw'Missing the required parameter "body" when calling postConversationsChatParticipantReplace';return this.apiClient.callApi("/api/v2/conversations/chats/{conversationId}/participants/{participantId}/replace","POST",{conversationId:e,participantId:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postConversationsChats(e,i){if(i=i||{},e==null)throw'Missing the required parameter "body" when calling postConversationsChats';return this.apiClient.callApi("/api/v2/conversations/chats","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postConversationsCobrowsesessionParticipantCommunicationWrapup(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsCobrowsesessionParticipantCommunicationWrapup';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling postConversationsCobrowsesessionParticipantCommunicationWrapup';if(n==null||n==="")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:i,communicationId:n},{},{},{},a.body,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postConversationsCobrowsesessionParticipantReplace(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsCobrowsesessionParticipantReplace';if(i==null||i==="")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:i},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postConversationsCustomattributesSchemas(e,i){if(i=i||{},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"],i.customHeaders)}postConversationsCustomattributesSearch(e,i){if(i=i||{},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"],i.customHeaders)}postConversationsEmailInboundmessages(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsEmailInboundmessages';if(i==null)throw'Missing the required parameter "body" when calling postConversationsEmailInboundmessages';return this.apiClient.callApi("/api/v2/conversations/emails/{conversationId}/inboundmessages","POST",{conversationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postConversationsEmailMessages(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsEmailMessages';if(i==null)throw'Missing the required parameter "body" when calling postConversationsEmailMessages';return this.apiClient.callApi("/api/v2/conversations/emails/{conversationId}/messages","POST",{conversationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postConversationsEmailMessagesDraftAttachmentsCopy(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsEmailMessagesDraftAttachmentsCopy';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postConversationsEmailParticipantCommunicationWrapup(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsEmailParticipantCommunicationWrapup';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling postConversationsEmailParticipantCommunicationWrapup';if(n==null||n==="")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:i,communicationId:n},{},{},{},a.body,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postConversationsEmailParticipantReplace(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsEmailParticipantReplace';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling postConversationsEmailParticipantReplace';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postConversationsEmailReconnect(e,i){if(i=i||{},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"],i.customHeaders)}postConversationsEmails(e,i){if(i=i||{},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"],i.customHeaders)}postConversationsEmailsAgentless(e,i){if(i=i||{},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"],i.customHeaders)}postConversationsFaxes(e,i){if(i=i||{},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"],i.customHeaders)}postConversationsKeyconfigurations(e,i){if(i=i||{},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"],i.customHeaders)}postConversationsKeyconfigurationsValidate(e,i){if(i=i||{},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"],i.customHeaders)}postConversationsMessageCommunicationMessages(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsMessageCommunicationMessages';if(i==null||i==="")throw'Missing the required parameter "communicationId" when calling postConversationsMessageCommunicationMessages';if(n==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:i},{useNormalizedMessage:a.useNormalizedMessage},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postConversationsMessageCommunicationMessagesMedia(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsMessageCommunicationMessagesMedia';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postConversationsMessageCommunicationMessagesMediaUploads(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsMessageCommunicationMessagesMediaUploads';if(i==null||i==="")throw'Missing the required parameter "communicationId" when calling postConversationsMessageCommunicationMessagesMediaUploads';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postConversationsMessageCommunicationSocialmediaMessages(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsMessageCommunicationSocialmediaMessages';if(i==null||i==="")throw'Missing the required parameter "communicationId" when calling postConversationsMessageCommunicationSocialmediaMessages';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postConversationsMessageCommunicationTyping(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsMessageCommunicationTyping';if(i==null||i==="")throw'Missing the required parameter "communicationId" when calling postConversationsMessageCommunicationTyping';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postConversationsMessageInboundOpenEvent(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "integrationId" when calling postConversationsMessageInboundOpenEvent';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postConversationsMessageInboundOpenMessage(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "integrationId" when calling postConversationsMessageInboundOpenMessage';if(i==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:n.prefetchConversationId},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postConversationsMessageInboundOpenReceipt(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "integrationId" when calling postConversationsMessageInboundOpenReceipt';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postConversationsMessageInboundOpenStructuredResponse(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "integrationId" when calling postConversationsMessageInboundOpenStructuredResponse';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postConversationsMessageMessagesBulk(e,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsMessageMessagesBulk';return this.apiClient.callApi("/api/v2/conversations/messages/{conversationId}/messages/bulk","POST",{conversationId:e},{useNormalizedMessage:i.useNormalizedMessage},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postConversationsMessageParticipantCommunicationWrapup(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsMessageParticipantCommunicationWrapup';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling postConversationsMessageParticipantCommunicationWrapup';if(n==null||n==="")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:i,communicationId:n},{},{},{},a.body,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postConversationsMessageParticipantMonitor(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsMessageParticipantMonitor';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postConversationsMessageParticipantReplace(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsMessageParticipantReplace';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling postConversationsMessageParticipantReplace';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postConversationsMessages(e,i){if(i=i||{},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"],i.customHeaders)}postConversationsMessagesAgentless(e,i){if(i=i||{},e==null)throw'Missing the required parameter "body" when calling postConversationsMessagesAgentless';return this.apiClient.callApi("/api/v2/conversations/messages/agentless","POST",{},{useNormalizedMessage:i.useNormalizedMessage},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postConversationsMessagesInboundOpen(e,i){if(i=i||{},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"],i.customHeaders)}postConversationsMessagingIntegrationsApple(e,i){if(i=i||{},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"],i.customHeaders)}postConversationsMessagingIntegrationsFacebook(e,i){if(i=i||{},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"],i.customHeaders)}postConversationsMessagingIntegrationsInstagram(e,i){if(i=i||{},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"],i.customHeaders)}postConversationsMessagingIntegrationsOpen(e,i){if(i=i||{},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"],i.customHeaders)}postConversationsMessagingIntegrationsOpenExtensionsGooglebusinessprofile(e,i){if(i=i||{},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"],i.customHeaders)}postConversationsMessagingIntegrationsOpenExtensionsGooglebusinessprofileTokens(e,i){if(i=i||{},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"],i.customHeaders)}postConversationsMessagingIntegrationsTwitter(e,i){if(i=i||{},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"],i.customHeaders)}postConversationsMessagingIntegrationsWhatsapp(e,i){if(i=i||{},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"],i.customHeaders)}postConversationsMessagingIntegrationsWhatsappEmbeddedsignup(e,i){if(i=i||{},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"],i.customHeaders)}postConversationsMessagingSettings(e,i){if(i=i||{},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"],i.customHeaders)}postConversationsMessagingSupportedcontent(e,i){if(i=i||{},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"],i.customHeaders)}postConversationsParticipantsAttributesSearch(e,i){if(i=i||{},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"],i.customHeaders)}postConversationsScreenshareParticipantCommunicationWrapup(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsScreenshareParticipantCommunicationWrapup';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling postConversationsScreenshareParticipantCommunicationWrapup';if(n==null||n==="")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:i,communicationId:n},{},{},{},a.body,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postConversationsSocialParticipantCommunicationWrapup(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsSocialParticipantCommunicationWrapup';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling postConversationsSocialParticipantCommunicationWrapup';if(n==null||n==="")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:i,communicationId:n},{},{},{},a.body,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postConversationsVideoAgentconferenceCommunication(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsVideoAgentconferenceCommunication';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postConversationsVideoParticipantCommunicationWrapup(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsVideoParticipantCommunicationWrapup';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling postConversationsVideoParticipantCommunicationWrapup';if(n==null||n==="")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:i,communicationId:n},{},{},{},a.body,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postConversationsVideosMeetings(e,i){if(i=i||{},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"],i.customHeaders)}putConversationCustomattributes(e,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling putConversationCustomattributes';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/customattributes","PUT",{conversationId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}putConversationCustomattributesBulk(e,i){if(i=i||{},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},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}putConversationParticipantFlaggedreason(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling putConversationParticipantFlaggedreason';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling putConversationParticipantFlaggedreason';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/participants/{participantId}/flaggedreason","PUT",{conversationId:e,participantId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putConversationSecureattributes(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling putConversationSecureattributes';if(i==null)throw'Missing the required parameter "body" when calling putConversationSecureattributes';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/secureattributes","PUT",{conversationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putConversationTags(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling putConversationTags';if(i==null)throw'Missing the required parameter "body" when calling putConversationTags';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/tags","PUT",{conversationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putConversationsCallParticipantCommunicationUuidata(e,i,n,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling putConversationsCallParticipantCommunicationUuidata';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling putConversationsCallParticipantCommunicationUuidata';if(n==null||n==="")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:i,communicationId:n},{},{},{},a,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}putConversationsCallRecordingstate(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling putConversationsCallRecordingstate';if(i==null)throw'Missing the required parameter "body" when calling putConversationsCallRecordingstate';return this.apiClient.callApi("/api/v2/conversations/calls/{conversationId}/recordingstate","PUT",{conversationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putConversationsCallbackRecordingstate(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling putConversationsCallbackRecordingstate';if(i==null)throw'Missing the required parameter "body" when calling putConversationsCallbackRecordingstate';return this.apiClient.callApi("/api/v2/conversations/callbacks/{conversationId}/recordingstate","PUT",{conversationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putConversationsChatRecordingstate(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling putConversationsChatRecordingstate';if(i==null)throw'Missing the required parameter "body" when calling putConversationsChatRecordingstate';return this.apiClient.callApi("/api/v2/conversations/chats/{conversationId}/recordingstate","PUT",{conversationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putConversationsCobrowsesessionRecordingstate(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling putConversationsCobrowsesessionRecordingstate';if(i==null)throw'Missing the required parameter "body" when calling putConversationsCobrowsesessionRecordingstate';return this.apiClient.callApi("/api/v2/conversations/cobrowsesessions/{conversationId}/recordingstate","PUT",{conversationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putConversationsCustomattributesSchema(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "schemaId" when calling putConversationsCustomattributesSchema';if(i==null)throw'Missing the required parameter "body" when calling putConversationsCustomattributesSchema';return this.apiClient.callApi("/api/v2/conversations/customattributes/schemas/{schemaId}","PUT",{schemaId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putConversationsEmailMessagesDraft(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling putConversationsEmailMessagesDraft';if(i==null)throw'Missing the required parameter "body" when calling putConversationsEmailMessagesDraft';return this.apiClient.callApi("/api/v2/conversations/emails/{conversationId}/messages/draft","PUT",{conversationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putConversationsEmailRecordingstate(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling putConversationsEmailRecordingstate';if(i==null)throw'Missing the required parameter "body" when calling putConversationsEmailRecordingstate';return this.apiClient.callApi("/api/v2/conversations/emails/{conversationId}/recordingstate","PUT",{conversationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putConversationsKeyconfiguration(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "keyconfigurationsId" when calling putConversationsKeyconfiguration';if(i==null)throw'Missing the required parameter "body" when calling putConversationsKeyconfiguration';return this.apiClient.callApi("/api/v2/conversations/keyconfigurations/{keyconfigurationsId}","PUT",{keyconfigurationsId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putConversationsMessageRecordingstate(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling putConversationsMessageRecordingstate';if(i==null)throw'Missing the required parameter "body" when calling putConversationsMessageRecordingstate';return this.apiClient.callApi("/api/v2/conversations/messages/{conversationId}/recordingstate","PUT",{conversationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putConversationsMessagingIdentityresolutionIntegrationsAppleIntegrationId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "integrationId" when calling putConversationsMessagingIdentityresolutionIntegrationsAppleIntegrationId';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putConversationsMessagingIdentityresolutionIntegrationsFacebookIntegrationId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "integrationId" when calling putConversationsMessagingIdentityresolutionIntegrationsFacebookIntegrationId';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putConversationsMessagingIdentityresolutionIntegrationsInstagramIntegrationId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "integrationId" when calling putConversationsMessagingIdentityresolutionIntegrationsInstagramIntegrationId';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putConversationsMessagingIdentityresolutionIntegrationsOpenIntegrationId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "integrationId" when calling putConversationsMessagingIdentityresolutionIntegrationsOpenIntegrationId';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putConversationsMessagingIdentityresolutionIntegrationsTwitterIntegrationId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "integrationId" when calling putConversationsMessagingIdentityresolutionIntegrationsTwitterIntegrationId';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putConversationsMessagingIdentityresolutionIntegrationsWhatsappIntegrationId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "integrationId" when calling putConversationsMessagingIdentityresolutionIntegrationsWhatsappIntegrationId';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putConversationsMessagingSettingsDefault(e,i){if(i=i||{},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"],i.customHeaders)}putConversationsMessagingSupportedcontentDefault(e,i){if(i=i||{},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"],i.customHeaders)}putConversationsMessagingThreadingtimeline(e,i){if(i=i||{},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"],i.customHeaders)}putConversationsScreenshareRecordingstate(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling putConversationsScreenshareRecordingstate';if(i==null)throw'Missing the required parameter "body" when calling putConversationsScreenshareRecordingstate';return this.apiClient.callApi("/api/v2/conversations/screenshares/{conversationId}/recordingstate","PUT",{conversationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putConversationsSocialRecordingstate(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling putConversationsSocialRecordingstate';if(i==null)throw'Missing the required parameter "body" when calling putConversationsSocialRecordingstate';return this.apiClient.callApi("/api/v2/conversations/socials/{conversationId}/recordingstate","PUT",{conversationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putConversationsVideoRecordingstate(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling putConversationsVideoRecordingstate';if(i==null)throw'Missing the required parameter "body" when calling putConversationsVideoRecordingstate';return this.apiClient.callApi("/api/v2/conversations/videos/{conversationId}/recordingstate","PUT",{conversationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}},BA=class{constructor(e){this.apiClient=e||q.instance}getDataextensionsCoretype(e,i){if(i=i||{},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"],i.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)}},FA=class{constructor(e){this.apiClient=e||q.instance}deleteDataprivacyMaskingrule(e,i){if(i=i||{},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"],i.customHeaders)}getDataprivacyMaskingrule(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "ruleId" when calling patchDataprivacyMaskingrule';return this.apiClient.callApi("/api/v2/dataprivacy/maskingrules/{ruleId}","PATCH",{ruleId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postDataprivacyMaskingrules(e,i){if(i=i||{},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"],i.customHeaders)}postDataprivacyMaskingrulesValidate(e,i){if(i=i||{},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"],i.customHeaders)}},VA=class{constructor(e){this.apiClient=e||q.instance}getDownload(e,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "downloadId" when calling getDownload';return this.apiClient.callApi("/api/v2/downloads/{downloadId}","GET",{downloadId:e},{contentDisposition:i.contentDisposition,issueRedirect:i.issueRedirect,redirectToAuth:i.redirectToAuth},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}},JA=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)}},ZA=class{constructor(e){this.apiClient=e||q.instance}deleteEmployeeengagementCelebration(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "celebrationId" when calling patchEmployeeengagementCelebration';if(i==null)throw'Missing the required parameter "body" when calling patchEmployeeengagementCelebration';return this.apiClient.callApi("/api/v2/employeeengagement/celebrations/{celebrationId}","PATCH",{celebrationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postEmployeeengagementRecognitions(e,i){if(i=i||{},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"],i.customHeaders)}},KA=class{constructor(e){this.apiClient=e||q.instance}postEventsConversations(e,i){if(i=i||{},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"],i.customHeaders)}postEventsRoutingCustomkpiattributions(e,i){if(i=i||{},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"],i.customHeaders)}postEventsUsersPresence(e,i){if(i=i||{},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"],i.customHeaders)}postEventsUsersRoutingstatus(e,i){if(i=i||{},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"],i.customHeaders)}},QA=class{constructor(e){this.apiClient=e||q.instance}deleteExternalcontactsContact(e,i){if(i=i||{},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"],i.customHeaders)}deleteExternalcontactsContactNote(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "contactId" when calling deleteExternalcontactsContactNote';if(i==null||i==="")throw'Missing the required parameter "noteId" when calling deleteExternalcontactsContactNote';return this.apiClient.callApi("/api/v2/externalcontacts/contacts/{contactId}/notes/{noteId}","DELETE",{contactId:e,noteId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteExternalcontactsContactsSchema(e,i){if(i=i||{},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"],i.customHeaders)}deleteExternalcontactsExternalsource(e,i){if(i=i||{},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"],i.customHeaders)}deleteExternalcontactsImportCsvSetting(e,i){if(i=i||{},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"],i.customHeaders)}deleteExternalcontactsImportSetting(e,i){if(i=i||{},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"],i.customHeaders)}deleteExternalcontactsOrganization(e,i){if(i=i||{},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"],i.customHeaders)}deleteExternalcontactsOrganizationNote(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "externalOrganizationId" when calling deleteExternalcontactsOrganizationNote';if(i==null||i==="")throw'Missing the required parameter "noteId" when calling deleteExternalcontactsOrganizationNote';return this.apiClient.callApi("/api/v2/externalcontacts/organizations/{externalOrganizationId}/notes/{noteId}","DELETE",{externalOrganizationId:e,noteId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteExternalcontactsOrganizationTrustor(e,i){if(i=i||{},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"],i.customHeaders)}deleteExternalcontactsRelationship(e,i){if(i=i||{},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"],i.customHeaders)}getExternalcontactsContact(e,i){if(i=i||{},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(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getExternalcontactsContactIdentifiers(e,i){if(i=i||{},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"],i.customHeaders)}getExternalcontactsContactJourneySegments(e,i){if(i=i||{},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:i.includeMerged,limit:i.limit},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getExternalcontactsContactJourneySessions(e,i){if(i=i||{},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:i.pageSize,after:i.after,includeMerged:i.includeMerged},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getExternalcontactsContactNote(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "contactId" when calling getExternalcontactsContactNote';if(i==null||i==="")throw'Missing the required parameter "noteId" when calling getExternalcontactsContactNote';return this.apiClient.callApi("/api/v2/externalcontacts/contacts/{contactId}/notes/{noteId}","GET",{contactId:e,noteId:i},{expand:this.apiClient.buildCollectionParam(n.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getExternalcontactsContactNotes(e,i){if(i=i||{},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:i.pageSize,pageNumber:i.pageNumber,sortOrder:i.sortOrder,expand:this.apiClient.buildCollectionParam(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getExternalcontactsContactUnresolved(e,i){if(i=i||{},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(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getExternalcontactsContactsSchemaVersion(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "schemaId" when calling getExternalcontactsContactsSchemaVersion';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getExternalcontactsContactsSchemaVersions(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getExternalcontactsExternalsources(e){return e=e||{},this.apiClient.callApi("/api/v2/externalcontacts/externalsources","GET",{},{cursor:e.cursor,limit:e.limit,name:e.name,active:e.active},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getExternalcontactsImportCsvSetting(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getExternalcontactsImportCsvUploadPreview(e,i){if(i=i||{},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"],i.customHeaders)}getExternalcontactsImportJob(e,i){if(i=i||{},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(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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"],i.customHeaders)}getExternalcontactsImportSettings(e){return e=e||{},this.apiClient.callApi("/api/v2/externalcontacts/import/settings","GET",{},{after:e.after,pageSize:e.pageSize,sortOrder:e.sortOrder,name:e.name},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getExternalcontactsOrganization(e,i){if(i=i||{},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(i.expand,"multi"),includeTrustors:i.includeTrustors},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getExternalcontactsOrganizationContacts(e,i){if(i=i||{},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:i.pageSize,pageNumber:i.pageNumber,q:i.q,sortOrder:i.sortOrder,expand:this.apiClient.buildCollectionParam(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getExternalcontactsOrganizationIdentifiers(e,i){if(i=i||{},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"],i.customHeaders)}getExternalcontactsOrganizationNote(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "externalOrganizationId" when calling getExternalcontactsOrganizationNote';if(i==null||i==="")throw'Missing the required parameter "noteId" when calling getExternalcontactsOrganizationNote';return this.apiClient.callApi("/api/v2/externalcontacts/organizations/{externalOrganizationId}/notes/{noteId}","GET",{externalOrganizationId:e,noteId:i},{expand:this.apiClient.buildCollectionParam(n.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getExternalcontactsOrganizationNotes(e,i){if(i=i||{},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:i.pageSize,pageNumber:i.pageNumber,sortOrder:i.sortOrder,expand:this.apiClient.buildCollectionParam(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getExternalcontactsOrganizationRelationships(e,i){if(i=i||{},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:i.pageSize,pageNumber:i.pageNumber,expand:this.apiClient.buildCollectionParam(i.expand,"multi"),sortOrder:i.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getExternalcontactsOrganizations(e){return e=e||{},this.apiClient.callApi("/api/v2/externalcontacts/organizations","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,q:e.q,trustorId:this.apiClient.buildCollectionParam(e.trustorId,"multi"),sortOrder:e.sortOrder,expand:this.apiClient.buildCollectionParam(e.expand,"multi"),includeTrustors:e.includeTrustors,divisionIds:this.apiClient.buildCollectionParam(e.divisionIds,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getExternalcontactsOrganizationsSchema(e,i){if(i=i||{},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"],i.customHeaders)}getExternalcontactsOrganizationsSchemaVersion(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "schemaId" when calling getExternalcontactsOrganizationsSchemaVersion';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getExternalcontactsOrganizationsSchemaVersions(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getExternalcontactsReversewhitepageslookup(e,i){if(i=i||{},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(i.expand,"multi"),divisionId:i.divisionId},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "contactId" when calling patchExternalcontactsContact';if(i==null)throw'Missing the required parameter "body" when calling patchExternalcontactsContact';return this.apiClient.callApi("/api/v2/externalcontacts/contacts/{contactId}","PATCH",{contactId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchExternalcontactsContactIdentifiers(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "contactId" when calling patchExternalcontactsContactIdentifiers';if(i==null)throw'Missing the required parameter "body" when calling patchExternalcontactsContactIdentifiers';return this.apiClient.callApi("/api/v2/externalcontacts/contacts/{contactId}/identifiers","PATCH",{contactId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchExternalcontactsOrganizationIdentifiers(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "externalOrganizationId" when calling patchExternalcontactsOrganizationIdentifiers';if(i==null)throw'Missing the required parameter "body" when calling patchExternalcontactsOrganizationIdentifiers';return this.apiClient.callApi("/api/v2/externalcontacts/organizations/{externalOrganizationId}/identifiers","PATCH",{externalOrganizationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postExternalcontactsBulkContacts(e,i){if(i=i||{},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"],i.customHeaders)}postExternalcontactsBulkContactsAdd(e,i){if(i=i||{},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"],i.customHeaders)}postExternalcontactsBulkContactsDivisionviews(e,i){if(i=i||{},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"],i.customHeaders)}postExternalcontactsBulkContactsEnrich(e,i){if(i=i||{},e==null)throw'Missing the required parameter "body" when calling postExternalcontactsBulkContactsEnrich';return this.apiClient.callApi("/api/v2/externalcontacts/bulk/contacts/enrich","POST",{},{dryRun:i.dryRun},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postExternalcontactsBulkContactsRemove(e,i){if(i=i||{},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"],i.customHeaders)}postExternalcontactsBulkContactsUnresolved(e,i){if(i=i||{},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"],i.customHeaders)}postExternalcontactsBulkContactsUpdate(e,i){if(i=i||{},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"],i.customHeaders)}postExternalcontactsBulkNotes(e,i){if(i=i||{},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"],i.customHeaders)}postExternalcontactsBulkNotesAdd(e,i){if(i=i||{},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"],i.customHeaders)}postExternalcontactsBulkNotesRemove(e,i){if(i=i||{},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"],i.customHeaders)}postExternalcontactsBulkNotesUpdate(e,i){if(i=i||{},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"],i.customHeaders)}postExternalcontactsBulkOrganizations(e,i){if(i=i||{},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"],i.customHeaders)}postExternalcontactsBulkOrganizationsAdd(e,i){if(i=i||{},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"],i.customHeaders)}postExternalcontactsBulkOrganizationsDivisionviews(e,i){if(i=i||{},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"],i.customHeaders)}postExternalcontactsBulkOrganizationsEnrich(e,i){if(i=i||{},e==null)throw'Missing the required parameter "body" when calling postExternalcontactsBulkOrganizationsEnrich';return this.apiClient.callApi("/api/v2/externalcontacts/bulk/organizations/enrich","POST",{},{dryRun:i.dryRun},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postExternalcontactsBulkOrganizationsRemove(e,i){if(i=i||{},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"],i.customHeaders)}postExternalcontactsBulkOrganizationsUpdate(e,i){if(i=i||{},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"],i.customHeaders)}postExternalcontactsBulkRelationships(e,i){if(i=i||{},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"],i.customHeaders)}postExternalcontactsBulkRelationshipsAdd(e,i){if(i=i||{},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"],i.customHeaders)}postExternalcontactsBulkRelationshipsRemove(e,i){if(i=i||{},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"],i.customHeaders)}postExternalcontactsBulkRelationshipsUpdate(e,i){if(i=i||{},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"],i.customHeaders)}postExternalcontactsContactJourneySegments(e,i){if(i=i||{},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},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postExternalcontactsContactNotes(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "contactId" when calling postExternalcontactsContactNotes';if(i==null)throw'Missing the required parameter "body" when calling postExternalcontactsContactNotes';return this.apiClient.callApi("/api/v2/externalcontacts/contacts/{contactId}/notes","POST",{contactId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postExternalcontactsContactPromotion(e,i){if(i=i||{},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"],i.customHeaders)}postExternalcontactsContacts(e,i){if(i=i||{},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"],i.customHeaders)}postExternalcontactsContactsEnrich(e,i){if(i=i||{},e==null)throw'Missing the required parameter "body" when calling postExternalcontactsContactsEnrich';return this.apiClient.callApi("/api/v2/externalcontacts/contacts/enrich","POST",{},{dryRun:i.dryRun},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postExternalcontactsContactsExports(e,i){if(i=i||{},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"],i.customHeaders)}postExternalcontactsContactsMerge(e,i){if(i=i||{},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"],i.customHeaders)}postExternalcontactsContactsSchemas(e,i){if(i=i||{},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"],i.customHeaders)}postExternalcontactsExternalsources(e,i){if(i=i||{},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"],i.customHeaders)}postExternalcontactsIdentifierlookup(e,i){if(i=i||{},e==null)throw'Missing the required parameter "identifier" when calling postExternalcontactsIdentifierlookup';return this.apiClient.callApi("/api/v2/externalcontacts/identifierlookup","POST",{},{expand:this.apiClient.buildCollectionParam(i.expand,"multi")},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postExternalcontactsIdentifierlookupContacts(e,i){if(i=i||{},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(i.expand,"multi")},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postExternalcontactsIdentifierlookupOrganizations(e,i){if(i=i||{},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(i.expand,"multi")},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postExternalcontactsImportCsvJobs(e,i){if(i=i||{},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"],i.customHeaders)}postExternalcontactsImportCsvSettings(e,i){if(i=i||{},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"],i.customHeaders)}postExternalcontactsImportCsvUploads(e,i){if(i=i||{},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"],i.customHeaders)}postExternalcontactsImportJobs(e,i){if(i=i||{},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"],i.customHeaders)}postExternalcontactsImportSettings(e,i){if(i=i||{},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"],i.customHeaders)}postExternalcontactsMergeContacts(e,i){if(i=i||{},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"],i.customHeaders)}postExternalcontactsOrganizationNotes(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "externalOrganizationId" when calling postExternalcontactsOrganizationNotes';if(i==null)throw'Missing the required parameter "body" when calling postExternalcontactsOrganizationNotes';return this.apiClient.callApi("/api/v2/externalcontacts/organizations/{externalOrganizationId}/notes","POST",{externalOrganizationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postExternalcontactsOrganizations(e,i){if(i=i||{},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"],i.customHeaders)}postExternalcontactsOrganizationsEnrich(e,i){if(i=i||{},e==null)throw'Missing the required parameter "body" when calling postExternalcontactsOrganizationsEnrich';return this.apiClient.callApi("/api/v2/externalcontacts/organizations/enrich","POST",{},{dryRun:i.dryRun},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postExternalcontactsOrganizationsSchemas(e,i){if(i=i||{},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"],i.customHeaders)}postExternalcontactsRelationships(e,i){if(i=i||{},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"],i.customHeaders)}putExternalcontactsContact(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "contactId" when calling putExternalcontactsContact';if(i==null)throw'Missing the required parameter "body" when calling putExternalcontactsContact';return this.apiClient.callApi("/api/v2/externalcontacts/contacts/{contactId}","PUT",{contactId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putExternalcontactsContactNote(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "contactId" when calling putExternalcontactsContactNote';if(i==null||i==="")throw'Missing the required parameter "noteId" when calling putExternalcontactsContactNote';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}putExternalcontactsContactsSchema(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "schemaId" when calling putExternalcontactsContactsSchema';if(i==null)throw'Missing the required parameter "body" when calling putExternalcontactsContactsSchema';return this.apiClient.callApi("/api/v2/externalcontacts/contacts/schemas/{schemaId}","PUT",{schemaId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putExternalcontactsConversation(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling putExternalcontactsConversation';if(i==null)throw'Missing the required parameter "body" when calling putExternalcontactsConversation';return this.apiClient.callApi("/api/v2/externalcontacts/conversations/{conversationId}","PUT",{conversationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putExternalcontactsExternalsource(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "externalSourceId" when calling putExternalcontactsExternalsource';if(i==null)throw'Missing the required parameter "body" when calling putExternalcontactsExternalsource';return this.apiClient.callApi("/api/v2/externalcontacts/externalsources/{externalSourceId}","PUT",{externalSourceId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putExternalcontactsImportCsvSetting(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "settingsId" when calling putExternalcontactsImportCsvSetting';if(i==null)throw'Missing the required parameter "body" when calling putExternalcontactsImportCsvSetting';return this.apiClient.callApi("/api/v2/externalcontacts/import/csv/settings/{settingsId}","PUT",{settingsId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putExternalcontactsImportJob(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "jobId" when calling putExternalcontactsImportJob';if(i==null)throw'Missing the required parameter "body" when calling putExternalcontactsImportJob';return this.apiClient.callApi("/api/v2/externalcontacts/import/jobs/{jobId}","PUT",{jobId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putExternalcontactsImportSetting(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "settingsId" when calling putExternalcontactsImportSetting';if(i==null)throw'Missing the required parameter "body" when calling putExternalcontactsImportSetting';return this.apiClient.callApi("/api/v2/externalcontacts/import/settings/{settingsId}","PUT",{settingsId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putExternalcontactsOrganization(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "externalOrganizationId" when calling putExternalcontactsOrganization';if(i==null)throw'Missing the required parameter "body" when calling putExternalcontactsOrganization';return this.apiClient.callApi("/api/v2/externalcontacts/organizations/{externalOrganizationId}","PUT",{externalOrganizationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putExternalcontactsOrganizationNote(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "externalOrganizationId" when calling putExternalcontactsOrganizationNote';if(i==null||i==="")throw'Missing the required parameter "noteId" when calling putExternalcontactsOrganizationNote';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}putExternalcontactsOrganizationTrustorTrustorId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "externalOrganizationId" when calling putExternalcontactsOrganizationTrustorTrustorId';if(i==null||i==="")throw'Missing the required parameter "trustorId" when calling putExternalcontactsOrganizationTrustorTrustorId';return this.apiClient.callApi("/api/v2/externalcontacts/organizations/{externalOrganizationId}/trustor/{trustorId}","PUT",{externalOrganizationId:e,trustorId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putExternalcontactsOrganizationsSchema(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "schemaId" when calling putExternalcontactsOrganizationsSchema';if(i==null)throw'Missing the required parameter "body" when calling putExternalcontactsOrganizationsSchema';return this.apiClient.callApi("/api/v2/externalcontacts/organizations/schemas/{schemaId}","PUT",{schemaId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putExternalcontactsRelationship(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "relationshipId" when calling putExternalcontactsRelationship';if(i==null)throw'Missing the required parameter "body" when calling putExternalcontactsRelationship';return this.apiClient.callApi("/api/v2/externalcontacts/relationships/{relationshipId}","PUT",{relationshipId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}},YA=class{constructor(e){this.apiClient=e||q.instance}deleteFaxDocument(e,i){if(i=i||{},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"],i.customHeaders)}getFaxDocument(e,i){if(i=i||{},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"],i.customHeaders)}getFaxDocumentContent(e,i){if(i=i||{},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"],i.customHeaders)}getFaxDocuments(e){return e=e||{},this.apiClient.callApi("/api/v2/fax/documents","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getFaxSettings(e){return e=e||{},this.apiClient.callApi("/api/v2/fax/settings","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getFaxSummary(e){return e=e||{},this.apiClient.callApi("/api/v2/fax/summary","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}putFaxDocument(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "documentId" when calling putFaxDocument';if(i==null)throw'Missing the required parameter "body" when calling putFaxDocument';return this.apiClient.callApi("/api/v2/fax/documents/{documentId}","PUT",{documentId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putFaxSettings(e){return e=e||{},this.apiClient.callApi("/api/v2/fax/settings","PUT",{},{},{},{},e.body,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}},XA=class{constructor(e){this.apiClient=e||q.instance}deleteAnalyticsFlowsAggregatesJob(e,i){if(i=i||{},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"],i.customHeaders)}getAnalyticsFlowsAggregatesJob(e,i){if(i=i||{},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"],i.customHeaders)}getAnalyticsFlowsAggregatesJobResults(e,i){if(i=i||{},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:i.cursor},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postAnalyticsFlowsActivityQuery(e,i){if(i=i||{},e==null)throw'Missing the required parameter "body" when calling postAnalyticsFlowsActivityQuery';return this.apiClient.callApi("/api/v2/analytics/flows/activity/query","POST",{},{pageSize:i.pageSize,pageNumber:i.pageNumber},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postAnalyticsFlowsAggregatesJobs(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsFlowsAggregatesQuery(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsFlowsObservationsQuery(e,i){if(i=i||{},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"],i.customHeaders)}},eb=class{constructor(e){this.apiClient=e||q.instance}deleteEmployeeperformanceExternalmetricsDefinition(e,i){if(i=i||{},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"],i.customHeaders)}deleteGamificationContest(e,i){if(i=i||{},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"],i.customHeaders)}getEmployeeperformanceExternalmetricsDefinition(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getGamificationContestAgentsScores(e,i){if(i=i||{},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:i.pageNumber,pageSize:i.pageSize,workday:i.workday,returnsView:i.returnsView},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getGamificationContestAgentsScoresMe(e,i){if(i=i||{},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:i.pageNumber,pageSize:i.pageSize,workday:i.workday,returnsView:i.returnsView},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getGamificationContestAgentsScoresTrends(e,i){if(i=i||{},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"],i.customHeaders)}getGamificationContestAgentsScoresTrendsMe(e,i){if(i=i||{},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"],i.customHeaders)}getGamificationContestPrizeimage(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "contestId" when calling getGamificationContestPrizeimage';if(i==null||i==="")throw'Missing the required parameter "prizeImageId" when calling getGamificationContestPrizeimage';return this.apiClient.callApi("/api/v2/gamification/contests/{contestId}/prizeimages/{prizeImageId}","GET",{contestId:e,prizeImageId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.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,i,n,a,r,s){if(s=s||{},e==null)throw'Missing the required parameter "filterType" when calling getGamificationInsights';if(i==null)throw'Missing the required parameter "filterId" when calling getGamificationInsights';if(n==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:i,granularity:n,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,i,n,a,r,s){if(s=s||{},e==null)throw'Missing the required parameter "filterType" when calling getGamificationInsightsDetails';if(i==null)throw'Missing the required parameter "filterId" when calling getGamificationInsightsDetails';if(n==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:i,granularity:n,comparativePeriodStartWorkday:a,primaryPeriodStartWorkday:r},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],s.customHeaders)}getGamificationInsightsGroupsTrends(e,i,n,a,r,s,o,l){if(l=l||{},e==null)throw'Missing the required parameter "filterType" when calling getGamificationInsightsGroupsTrends';if(i==null)throw'Missing the required parameter "filterId" when calling getGamificationInsightsGroupsTrends';if(n==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:i,granularity:n,comparativePeriodStartWorkday:a,comparativePeriodEndWorkday:r,primaryPeriodStartWorkday:s,primaryPeriodEndWorkday:o},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],l.customHeaders)}getGamificationInsightsGroupsTrendsAll(e,i,n,a,r,s,o,l){if(l=l||{},e==null)throw'Missing the required parameter "filterType" when calling getGamificationInsightsGroupsTrendsAll';if(i==null)throw'Missing the required parameter "filterId" when calling getGamificationInsightsGroupsTrendsAll';if(n==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:i,granularity:n,comparativePeriodStartWorkday:a,comparativePeriodEndWorkday:r,primaryPeriodStartWorkday:s,primaryPeriodEndWorkday:o},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],l.customHeaders)}getGamificationInsightsManagers(e,i,n,a,r){if(r=r||{},e==null)throw'Missing the required parameter "filterType" when calling getGamificationInsightsManagers';if(i==null)throw'Missing the required parameter "filterId" when calling getGamificationInsightsManagers';if(n==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:i,granularity:n,startWorkday:a,pageSize:r.pageSize,pageNumber:r.pageNumber},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}getGamificationInsightsMembers(e,i,n,a,r){if(r=r||{},e==null)throw'Missing the required parameter "filterType" when calling getGamificationInsightsMembers';if(i==null)throw'Missing the required parameter "filterId" when calling getGamificationInsightsMembers';if(n==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:i,granularity:n,startWorkday:a,reportsTo:r.reportsTo},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}getGamificationInsightsRankings(e,i,n,a,r,s,o){if(o=o||{},e==null)throw'Missing the required parameter "filterType" when calling getGamificationInsightsRankings';if(i==null)throw'Missing the required parameter "filterId" when calling getGamificationInsightsRankings';if(n==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:i,granularity:n,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,i,n,a,r,s,o,l){if(l=l||{},e==null)throw'Missing the required parameter "filterType" when calling getGamificationInsightsTrends';if(i==null)throw'Missing the required parameter "filterId" when calling getGamificationInsightsTrends';if(n==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:i,granularity:n,comparativePeriodStartWorkday:a,comparativePeriodEndWorkday:r,primaryPeriodStartWorkday:s,primaryPeriodEndWorkday:o},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],l.customHeaders)}getGamificationInsightsUserDetails(e,i,n,a,r,s,o){if(o=o||{},e==null||e==="")throw'Missing the required parameter "userId" when calling getGamificationInsightsUserDetails';if(i==null)throw'Missing the required parameter "filterType" when calling getGamificationInsightsUserDetails';if(n==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:i,filterId:n,granularity:a,comparativePeriodStartWorkday:r,primaryPeriodStartWorkday:s},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],o.customHeaders)}getGamificationInsightsUserTrends(e,i,n,a,r,s,o,l,u){if(u=u||{},e==null||e==="")throw'Missing the required parameter "userId" when calling getGamificationInsightsUserTrends';if(i==null)throw'Missing the required parameter "filterType" when calling getGamificationInsightsUserTrends';if(n==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:i,filterId:n,granularity:a,comparativePeriodStartWorkday:r,comparativePeriodEndWorkday:s,primaryPeriodStartWorkday:o,primaryPeriodEndWorkday:l},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],u.customHeaders)}getGamificationLeaderboard(e,i,n){if(n=n||{},e==null)throw'Missing the required parameter "startWorkday" when calling getGamificationLeaderboard';if(i==null)throw'Missing the required parameter "endWorkday" when calling getGamificationLeaderboard';return this.apiClient.callApi("/api/v2/gamification/leaderboard","GET",{},{startWorkday:e,endWorkday:i,metricId:n.metricId},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getGamificationLeaderboardAll(e,i,n,a,r){if(r=r||{},e==null)throw'Missing the required parameter "filterType" when calling getGamificationLeaderboardAll';if(i==null)throw'Missing the required parameter "filterId" when calling getGamificationLeaderboardAll';if(n==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:i,startWorkday:n,endWorkday:a,metricId:r.metricId},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}getGamificationLeaderboardAllBestpoints(e,i,n){if(n=n||{},e==null)throw'Missing the required parameter "filterType" when calling getGamificationLeaderboardAllBestpoints';if(i==null)throw'Missing the required parameter "filterId" when calling getGamificationLeaderboardAllBestpoints';return this.apiClient.callApi("/api/v2/gamification/leaderboard/all/bestpoints","GET",{},{filterType:e,filterId:i},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getGamificationProfileMembers(e,i){if(i=i||{},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"],i.customHeaders)}getGamificationProfileMetric(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "profileId" when calling getGamificationProfileMetric';if(i==null||i==="")throw'Missing the required parameter "metricId" when calling getGamificationProfileMetric';return this.apiClient.callApi("/api/v2/gamification/profiles/{profileId}/metrics/{metricId}","GET",{profileId:e,metricId:i},{workday:n.workday},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getGamificationProfileMetrics(e,i){if(i=i||{},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(i.expand,"multi"),workday:i.workday,metricIds:i.metricIds},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getGamificationProfileMetricsObjectivedetails(e,i){if(i=i||{},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:i.workday},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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:i.workday},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getGamificationScorecardsAttendance(e,i,n){if(n=n||{},e==null)throw'Missing the required parameter "startWorkday" when calling getGamificationScorecardsAttendance';if(i==null)throw'Missing the required parameter "endWorkday" when calling getGamificationScorecardsAttendance';return this.apiClient.callApi("/api/v2/gamification/scorecards/attendance","GET",{},{startWorkday:e,endWorkday:i},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.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,i){if(i=i||{},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"],i.customHeaders)}getGamificationScorecardsPointsAverage(e,i){if(i=i||{},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"],i.customHeaders)}getGamificationScorecardsPointsTrends(e,i,n){if(n=n||{},e==null)throw'Missing the required parameter "startWorkday" when calling getGamificationScorecardsPointsTrends';if(i==null)throw'Missing the required parameter "endWorkday" when calling getGamificationScorecardsPointsTrends';return this.apiClient.callApi("/api/v2/gamification/scorecards/points/trends","GET",{},{startWorkday:e,endWorkday:i,dayOfWeek:n.dayOfWeek},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getGamificationScorecardsProfileMetricUserValuesTrends(e,i,n,a,r,s){if(s=s||{},e==null||e==="")throw'Missing the required parameter "profileId" when calling getGamificationScorecardsProfileMetricUserValuesTrends';if(i==null||i==="")throw'Missing the required parameter "metricId" when calling getGamificationScorecardsProfileMetricUserValuesTrends';if(n==null||n==="")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:i,userId:n},{startWorkday:a,endWorkday:r,referenceWorkday:s.referenceWorkday,timeZone:s.timeZone},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],s.customHeaders)}getGamificationScorecardsProfileMetricUsersValuesTrends(e,i,n,a,r,s){if(s=s||{},e==null||e==="")throw'Missing the required parameter "profileId" when calling getGamificationScorecardsProfileMetricUsersValuesTrends';if(i==null||i==="")throw'Missing the required parameter "metricId" when calling getGamificationScorecardsProfileMetricUsersValuesTrends';if(n==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:i},{filterType:n,filterId:s.filterId,startWorkday:a,endWorkday:r,referenceWorkday:s.referenceWorkday,timeZone:s.timeZone},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],s.customHeaders)}getGamificationScorecardsProfileMetricValuesTrends(e,i,n,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "profileId" when calling getGamificationScorecardsProfileMetricValuesTrends';if(i==null||i==="")throw'Missing the required parameter "metricId" when calling getGamificationScorecardsProfileMetricValuesTrends';if(n==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:i},{filterType:r.filterType,startWorkday:n,endWorkday:a,referenceWorkday:r.referenceWorkday,timeZone:r.timeZone},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}getGamificationScorecardsUser(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling getGamificationScorecardsUser';if(i==null)throw'Missing the required parameter "workday" when calling getGamificationScorecardsUser';return this.apiClient.callApi("/api/v2/gamification/scorecards/users/{userId}","GET",{userId:e},{workday:i,expand:this.apiClient.buildCollectionParam(n.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getGamificationScorecardsUserAttendance(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "userId" when calling getGamificationScorecardsUserAttendance';if(i==null)throw'Missing the required parameter "startWorkday" when calling getGamificationScorecardsUserAttendance';if(n==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:i,endWorkday:n},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getGamificationScorecardsUserBestpoints(e,i){if(i=i||{},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"],i.customHeaders)}getGamificationScorecardsUserPointsAlltime(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling getGamificationScorecardsUserPointsAlltime';if(i==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:i},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getGamificationScorecardsUserPointsTrends(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "userId" when calling getGamificationScorecardsUserPointsTrends';if(i==null)throw'Missing the required parameter "startWorkday" when calling getGamificationScorecardsUserPointsTrends';if(n==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:i,endWorkday:n,dayOfWeek:a.dayOfWeek},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getGamificationScorecardsUserValuesTrends(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "userId" when calling getGamificationScorecardsUserValuesTrends';if(i==null)throw'Missing the required parameter "startWorkday" when calling getGamificationScorecardsUserValuesTrends';if(n==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:i,endWorkday:n,timeZone:a.timeZone},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getGamificationScorecardsUsersPointsAverage(e,i,n,a){if(a=a||{},e==null)throw'Missing the required parameter "filterType" when calling getGamificationScorecardsUsersPointsAverage';if(i==null)throw'Missing the required parameter "filterId" when calling getGamificationScorecardsUsersPointsAverage';if(n==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:i,workday:n},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getGamificationScorecardsUsersValuesAverage(e,i,n,a){if(a=a||{},e==null)throw'Missing the required parameter "filterType" when calling getGamificationScorecardsUsersValuesAverage';if(i==null)throw'Missing the required parameter "filterId" when calling getGamificationScorecardsUsersValuesAverage';if(n==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:i,workday:n,timeZone:a.timeZone},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getGamificationScorecardsUsersValuesTrends(e,i,n,a,r){if(r=r||{},e==null)throw'Missing the required parameter "filterType" when calling getGamificationScorecardsUsersValuesTrends';if(i==null)throw'Missing the required parameter "filterId" when calling getGamificationScorecardsUsersValuesTrends';if(n==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:i,startWorkday:n,endWorkday:a,timeZone:r.timeZone},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}getGamificationScorecardsValuesAverage(e,i){if(i=i||{},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:i.timeZone},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getGamificationScorecardsValuesTrends(e,i,n){if(n=n||{},e==null)throw'Missing the required parameter "startWorkday" when calling getGamificationScorecardsValuesTrends';if(i==null)throw'Missing the required parameter "endWorkday" when calling getGamificationScorecardsValuesTrends';return this.apiClient.callApi("/api/v2/gamification/scorecards/values/trends","GET",{},{filterType:n.filterType,referenceWorkday:n.referenceWorkday,startWorkday:e,endWorkday:i,timeZone:n.timeZone},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.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,i){if(i=i||{},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"],i.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,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "metricId" when calling patchEmployeeperformanceExternalmetricsDefinition';if(i==null)throw'Missing the required parameter "body" when calling patchEmployeeperformanceExternalmetricsDefinition';return this.apiClient.callApi("/api/v2/employeeperformance/externalmetrics/definitions/{metricId}","PATCH",{metricId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchGamificationContest(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "contestId" when calling patchGamificationContest';if(i==null)throw'Missing the required parameter "body" when calling patchGamificationContest';return this.apiClient.callApi("/api/v2/gamification/contests/{contestId}","PATCH",{contestId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.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,i){if(i=i||{},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"],i.customHeaders)}postGamificationContestsUploadsPrizeimages(e,i){if(i=i||{},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"],i.customHeaders)}postGamificationProfileActivate(e,i){if(i=i||{},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"],i.customHeaders)}postGamificationProfileDeactivate(e,i){if(i=i||{},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"],i.customHeaders)}postGamificationProfileMembers(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "profileId" when calling postGamificationProfileMembers';if(i==null)throw'Missing the required parameter "body" when calling postGamificationProfileMembers';return this.apiClient.callApi("/api/v2/gamification/profiles/{profileId}/members","POST",{profileId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postGamificationProfileMembersValidate(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "profileId" when calling postGamificationProfileMembersValidate';if(i==null)throw'Missing the required parameter "body" when calling postGamificationProfileMembersValidate';return this.apiClient.callApi("/api/v2/gamification/profiles/{profileId}/members/validate","POST",{profileId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postGamificationProfileMetricLink(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "sourceProfileId" when calling postGamificationProfileMetricLink';if(i==null||i==="")throw'Missing the required parameter "sourceMetricId" when calling postGamificationProfileMetricLink';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postGamificationProfileMetrics(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "profileId" when calling postGamificationProfileMetrics';if(i==null)throw'Missing the required parameter "body" when calling postGamificationProfileMetrics';return this.apiClient.callApi("/api/v2/gamification/profiles/{profileId}/metrics","POST",{profileId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postGamificationProfiles(e,i){if(i=i||{},e==null)throw'Missing the required parameter "body" when calling postGamificationProfiles';return this.apiClient.callApi("/api/v2/gamification/profiles","POST",{},{copyMetrics:i.copyMetrics},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postGamificationProfilesUserQuery(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling postGamificationProfilesUserQuery';if(i==null)throw'Missing the required parameter "body" when calling postGamificationProfilesUserQuery';return this.apiClient.callApi("/api/v2/gamification/profiles/users/{userId}/query","POST",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postGamificationProfilesUsersMeQuery(e,i){if(i=i||{},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"],i.customHeaders)}putGamificationContest(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "contestId" when calling putGamificationContest';if(i==null)throw'Missing the required parameter "body" when calling putGamificationContest';return this.apiClient.callApi("/api/v2/gamification/contests/{contestId}","PUT",{contestId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putGamificationProfile(e,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "profileId" when calling putGamificationProfile';return this.apiClient.callApi("/api/v2/gamification/profiles/{profileId}","PUT",{profileId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}putGamificationProfileMetric(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "profileId" when calling putGamificationProfileMetric';if(i==null||i==="")throw'Missing the required parameter "metricId" when calling putGamificationProfileMetric';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}putGamificationStatus(e,i){if(i=i||{},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"],i.customHeaders)}},ib=class{constructor(e){this.apiClient=e||q.instance}getGdprRequest(e,i){if(i=i||{},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"],i.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,i,n){if(n=n||{},e==null)throw'Missing the required parameter "searchType" when calling getGdprSubjects';if(i==null)throw'Missing the required parameter "searchValue" when calling getGdprSubjects';return this.apiClient.callApi("/api/v2/gdpr/subjects","GET",{},{searchType:e,searchValue:i},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postGdprRequests(e,i){if(i=i||{},e==null)throw'Missing the required parameter "body" when calling postGdprRequests';return this.apiClient.callApi("/api/v2/gdpr/requests","POST",{},{deleteConfirmed:i.deleteConfirmed},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}},nb=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,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling getUserGeolocation';if(i==null||i==="")throw'Missing the required parameter "clientId" when calling getUserGeolocation';return this.apiClient.callApi("/api/v2/users/{userId}/geolocations/{clientId}","GET",{userId:e,clientId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchGeolocationsSettings(e,i){if(i=i||{},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"],i.customHeaders)}patchUserGeolocation(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "userId" when calling patchUserGeolocation';if(i==null||i==="")throw'Missing the required parameter "clientId" when calling patchUserGeolocation';if(n==null)throw'Missing the required parameter "body" when calling patchUserGeolocation';return this.apiClient.callApi("/api/v2/users/{userId}/geolocations/{clientId}","PATCH",{userId:e,clientId:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}},tb=class{constructor(e){this.apiClient=e||q.instance}deleteGreeting(e,i){if(i=i||{},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"],i.customHeaders)}getGreeting(e,i){if(i=i||{},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"],i.customHeaders)}getGreetingDownloads(e,i){if(i=i||{},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:i.formatId},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getGreetingGroupsDownloads(e,i){if(i=i||{},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:i.formatId},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getGreetingMedia(e,i){if(i=i||{},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:i.formatId},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getGreetingUsersDownloads(e,i){if(i=i||{},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:i.formatId},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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:i.pageSize,pageNumber:i.pageNumber},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getGroupGreetingsDefaults(e,i){if(i=i||{},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"],i.customHeaders)}getUserGreetings(e,i){if(i=i||{},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:i.pageSize,pageNumber:i.pageNumber},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getUserGreetingsDefaults(e,i){if(i=i||{},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"],i.customHeaders)}postGreetings(e,i){if(i=i||{},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"],i.customHeaders)}postGroupGreetings(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "groupId" when calling postGroupGreetings';if(i==null)throw'Missing the required parameter "body" when calling postGroupGreetings';return this.apiClient.callApi("/api/v2/groups/{groupId}/greetings","POST",{groupId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postUserGreetings(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling postUserGreetings';if(i==null)throw'Missing the required parameter "body" when calling postUserGreetings';return this.apiClient.callApi("/api/v2/users/{userId}/greetings","POST",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putGreeting(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "greetingId" when calling putGreeting';if(i==null)throw'Missing the required parameter "body" when calling putGreeting';return this.apiClient.callApi("/api/v2/greetings/{greetingId}","PUT",{greetingId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putGreetingsDefaults(e,i){if(i=i||{},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"],i.customHeaders)}putGroupGreetingsDefaults(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "groupId" when calling putGroupGreetingsDefaults';if(i==null)throw'Missing the required parameter "body" when calling putGroupGreetingsDefaults';return this.apiClient.callApi("/api/v2/groups/{groupId}/greetings/defaults","PUT",{groupId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putUserGreetingsDefaults(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling putUserGreetingsDefaults';if(i==null)throw'Missing the required parameter "body" when calling putUserGreetingsDefaults';return this.apiClient.callApi("/api/v2/users/{userId}/greetings/defaults","PUT",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}},ab=class{constructor(e){this.apiClient=e||q.instance}deleteGroup(e,i){if(i=i||{},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"],i.customHeaders)}deleteGroupDynamicsettings(e,i){if(i=i||{},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"],i.customHeaders)}deleteGroupMembers(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "groupId" when calling deleteGroupMembers';if(i==null)throw'Missing the required parameter "ids" when calling deleteGroupMembers';return this.apiClient.callApi("/api/v2/groups/{groupId}/members","DELETE",{groupId:e},{ids:i},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getFieldconfig(e,i){if(i=i||{},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"],i.customHeaders)}getGroup(e,i){if(i=i||{},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"],i.customHeaders)}getGroupDynamicsettings(e,i){if(i=i||{},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"],i.customHeaders)}getGroupIndividuals(e,i){if(i=i||{},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"],i.customHeaders)}getGroupMembers(e,i){if(i=i||{},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:i.pageSize,pageNumber:i.pageNumber,sortOrder:i.sortOrder,expand:this.apiClient.buildCollectionParam(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getGroupProfile(e,i){if(i=i||{},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:i.fields},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "groupId" when calling postGroupMembers';if(i==null)throw'Missing the required parameter "body" when calling postGroupMembers';return this.apiClient.callApi("/api/v2/groups/{groupId}/members","POST",{groupId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postGroups(e,i){if(i=i||{},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"],i.customHeaders)}postGroupsDynamicsettingsPreview(e,i){if(i=i||{},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"],i.customHeaders)}postGroupsSearch(e,i){if(i=i||{},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"],i.customHeaders)}putGroup(e,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "groupId" when calling putGroup';return this.apiClient.callApi("/api/v2/groups/{groupId}","PUT",{groupId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}putGroupDynamicsettings(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "groupId" when calling putGroupDynamicsettings';if(i==null)throw'Missing the required parameter "body" when calling putGroupDynamicsettings';return this.apiClient.callApi("/api/v2/groups/{groupId}/dynamicsettings","PUT",{groupId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}},rb=class{constructor(e){this.apiClient=e||q.instance}deleteIdentityprovider(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}putIdentityprovider(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "providerId" when calling putIdentityprovider';if(i==null)throw'Missing the required parameter "body" when calling putIdentityprovider';return this.apiClient.callApi("/api/v2/identityproviders/{providerId}","PUT",{providerId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putIdentityprovidersAdfs(e,i){if(i=i||{},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"],i.customHeaders)}putIdentityprovidersCic(e,i){if(i=i||{},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"],i.customHeaders)}putIdentityprovidersGeneric(e,i){if(i=i||{},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"],i.customHeaders)}putIdentityprovidersGsuite(e,i){if(i=i||{},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"],i.customHeaders)}putIdentityprovidersIdentitynow(e,i){if(i=i||{},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"],i.customHeaders)}putIdentityprovidersOkta(e,i){if(i=i||{},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"],i.customHeaders)}putIdentityprovidersOnelogin(e,i){if(i=i||{},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"],i.customHeaders)}putIdentityprovidersPing(e,i){if(i=i||{},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"],i.customHeaders)}putIdentityprovidersPurecloud(e,i){if(i=i||{},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"],i.customHeaders)}putIdentityprovidersPureengage(e,i){if(i=i||{},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"],i.customHeaders)}putIdentityprovidersSalesforce(e,i){if(i=i||{},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"],i.customHeaders)}},sb=class{constructor(e){this.apiClient=e||q.instance}getInfrastructureascodeAccelerator(e,i){if(i=i||{},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:i.preferredLanguage},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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:i.details},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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"],i.customHeaders)}},ob=class{constructor(e){this.apiClient=e||q.instance}deleteIntegration(e,i){if(i=i||{},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"],i.customHeaders)}deleteIntegrationsAction(e,i){if(i=i||{},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"],i.customHeaders)}deleteIntegrationsActionDraft(e,i){if(i=i||{},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"],i.customHeaders)}deleteIntegrationsCredential(e,i){if(i=i||{},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"],i.customHeaders)}getIntegration(e,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "integrationId" when calling getIntegration';return this.apiClient.callApi("/api/v2/integrations/{integrationId}","GET",{integrationId:e},{pageSize:i.pageSize,pageNumber:i.pageNumber,sortBy:i.sortBy,expand:this.apiClient.buildCollectionParam(i.expand,"multi"),nextPage:i.nextPage,previousPage:i.previousPage},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getIntegrationConfigCurrent(e,i){if(i=i||{},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"],i.customHeaders)}getIntegrations(e){return e=e||{},this.apiClient.callApi("/api/v2/integrations","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,sortBy:e.sortBy,expand:this.apiClient.buildCollectionParam(e.expand,"multi"),nextPage:e.nextPage,previousPage:e.previousPage,ids:this.apiClient.buildCollectionParam(e.ids,"multi"),integrationType:e.integrationType,reportedState:e.reportedState},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getIntegrationsAction(e,i){if(i=i||{},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:i.expand,flatten:i.flatten,includeConfig:i.includeConfig},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getIntegrationsActionDraft(e,i){if(i=i||{},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:i.expand,flatten:i.flatten,includeConfig:i.includeConfig},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getIntegrationsActionDraftFunction(e,i){if(i=i||{},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"],i.customHeaders)}getIntegrationsActionDraftSchema(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "actionId" when calling getIntegrationsActionDraftSchema';if(i==null||i==="")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:i},{flatten:n.flatten},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getIntegrationsActionDraftTemplate(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "actionId" when calling getIntegrationsActionDraftTemplate';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["text/plain"],n.customHeaders)}getIntegrationsActionDraftValidation(e,i){if(i=i||{},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"],i.customHeaders)}getIntegrationsActionFunction(e,i){if(i=i||{},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"],i.customHeaders)}getIntegrationsActionSchema(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "actionId" when calling getIntegrationsActionSchema';if(i==null||i==="")throw'Missing the required parameter "fileName" when calling getIntegrationsActionSchema';return this.apiClient.callApi("/api/v2/integrations/actions/{actionId}/schemas/{fileName}","GET",{actionId:e,fileName:i},{flatten:n.flatten},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getIntegrationsActionTemplate(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "actionId" when calling getIntegrationsActionTemplate';if(i==null||i==="")throw'Missing the required parameter "fileName" when calling getIntegrationsActionTemplate';return this.apiClient.callApi("/api/v2/integrations/actions/{actionId}/templates/{fileName}","GET",{actionId:e,fileName:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["text/plain"],n.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,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "integrationId" when calling getIntegrationsBotconnectorBot';if(i==null||i==="")throw'Missing the required parameter "botId" when calling getIntegrationsBotconnectorBot';return this.apiClient.callApi("/api/v2/integrations/botconnectors/{integrationId}/bots/{botId}","GET",{integrationId:e,botId:i},{version:n.version},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getIntegrationsBotconnectorBots(e,i){if(i=i||{},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:i.pageNumber,pageSize:i.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getIntegrationsBotconnectorBotsSummaries(e,i){if(i=i||{},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:i.pageNumber,pageSize:i.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getIntegrationsBotconnectorIntegrationIdBot(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "integrationId" when calling getIntegrationsBotconnectorIntegrationIdBot';if(i==null||i==="")throw'Missing the required parameter "botId" when calling getIntegrationsBotconnectorIntegrationIdBot';return this.apiClient.callApi("/api/v2/integrations/botconnector/{integrationId}/bots/{botId}","GET",{integrationId:e,botId:i},{version:n.version},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getIntegrationsBotconnectorIntegrationIdBotVersions(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "integrationId" when calling getIntegrationsBotconnectorIntegrationIdBotVersions';if(i==null||i==="")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:i},{pageNumber:n.pageNumber,pageSize:n.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getIntegrationsBotconnectorIntegrationIdBots(e,i){if(i=i||{},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"],i.customHeaders)}getIntegrationsBotconnectorIntegrationIdBotsSummaries(e,i){if(i=i||{},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:i.pageNumber,pageSize:i.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getIntegrationsClientapps(e){return e=e||{},this.apiClient.callApi("/api/v2/integrations/clientapps","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,sortBy:e.sortBy,expand:this.apiClient.buildCollectionParam(e.expand,"multi"),nextPage:e.nextPage,previousPage:e.previousPage},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getIntegrationsClientappsUnifiedcommunications(e){return e=e||{},this.apiClient.callApi("/api/v2/integrations/clientapps/unifiedcommunications","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,sortBy:e.sortBy,expand:this.apiClient.buildCollectionParam(e.expand,"multi"),nextPage:e.nextPage,previousPage:e.previousPage},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getIntegrationsCredential(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getIntegrationsSpeechDialogflowAgent(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getIntegrationsSpeechLexBotBotIdAliases(e,i){if(i=i||{},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:i.pageNumber,pageSize:i.pageSize,status:i.status,name:i.name},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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"],i.customHeaders)}getIntegrationsSpeechLexv2BotBotIdAliases(e,i){if(i=i||{},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:i.pageNumber,pageSize:i.pageSize,status:i.status,name:i.name},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "nuanceIntegrationId" when calling getIntegrationsSpeechNuanceNuanceIntegrationIdBot';if(i==null||i==="")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:i},{expand:this.apiClient.buildCollectionParam(n.expand,"multi"),targetChannel:n.targetChannel},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getIntegrationsSpeechNuanceNuanceIntegrationIdBotJob(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "nuanceIntegrationId" when calling getIntegrationsSpeechNuanceNuanceIntegrationIdBotJob';if(i==null||i==="")throw'Missing the required parameter "botId" when calling getIntegrationsSpeechNuanceNuanceIntegrationIdBotJob';if(n==null||n==="")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:i,jobId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getIntegrationsSpeechNuanceNuanceIntegrationIdBotJobResults(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "nuanceIntegrationId" when calling getIntegrationsSpeechNuanceNuanceIntegrationIdBotJobResults';if(i==null||i==="")throw'Missing the required parameter "botId" when calling getIntegrationsSpeechNuanceNuanceIntegrationIdBotJobResults';if(n==null||n==="")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:i,jobId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getIntegrationsSpeechNuanceNuanceIntegrationIdBots(e,i){if(i=i||{},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:i.pageNumber,pageSize:i.pageSize,onlyRegisteredBots:i.onlyRegisteredBots},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getIntegrationsSpeechNuanceNuanceIntegrationIdBotsJob(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "nuanceIntegrationId" when calling getIntegrationsSpeechNuanceNuanceIntegrationIdBotsJob';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getIntegrationsSpeechNuanceNuanceIntegrationIdBotsJobResults(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "nuanceIntegrationId" when calling getIntegrationsSpeechNuanceNuanceIntegrationIdBotsJobResults';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getIntegrationsSpeechSttEngine(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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:i.includeVoices},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getIntegrationsSpeechTtsEngineVoice(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "engineId" when calling getIntegrationsSpeechTtsEngineVoice';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getIntegrationsSpeechTtsEngineVoices(e,i){if(i=i||{},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:i.pageNumber,pageSize:i.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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"],i.customHeaders)}getIntegrationsTypeConfigschema(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "typeId" when calling getIntegrationsTypeConfigschema';if(i==null||i==="")throw'Missing the required parameter "configType" when calling getIntegrationsTypeConfigschema';return this.apiClient.callApi("/api/v2/integrations/types/{typeId}/configschemas/{configType}","GET",{typeId:e,configType:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "integrationId" when calling patchIntegration';return this.apiClient.callApi("/api/v2/integrations/{integrationId}","PATCH",{integrationId:e},{pageSize:i.pageSize,pageNumber:i.pageNumber,sortBy:i.sortBy,expand:this.apiClient.buildCollectionParam(i.expand,"multi"),nextPage:i.nextPage,previousPage:i.previousPage},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}patchIntegrationsAction(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "actionId" when calling patchIntegrationsAction';if(i==null)throw'Missing the required parameter "body" when calling patchIntegrationsAction';return this.apiClient.callApi("/api/v2/integrations/actions/{actionId}","PATCH",{actionId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchIntegrationsActionDraft(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "actionId" when calling patchIntegrationsActionDraft';if(i==null)throw'Missing the required parameter "body" when calling patchIntegrationsActionDraft';return this.apiClient.callApi("/api/v2/integrations/actions/{actionId}/draft","PATCH",{actionId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.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,i){if(i=i||{},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"],i.customHeaders)}postIntegrationsActionDraftFunctionUpload(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "actionId" when calling postIntegrationsActionDraftFunctionUpload';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postIntegrationsActionDraftPublish(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "actionId" when calling postIntegrationsActionDraftPublish';if(i==null)throw'Missing the required parameter "body" when calling postIntegrationsActionDraftPublish';return this.apiClient.callApi("/api/v2/integrations/actions/{actionId}/draft/publish","POST",{actionId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postIntegrationsActionDraftTest(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "actionId" when calling postIntegrationsActionDraftTest';if(i==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:n.flatten},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postIntegrationsActionExecute(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "actionId" when calling postIntegrationsActionExecute';if(i==null)throw'Missing the required parameter "body" when calling postIntegrationsActionExecute';return this.apiClient.callApi("/api/v2/integrations/actions/{actionId}/execute","POST",{actionId:e},{flatten:n.flatten},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postIntegrationsActionTest(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "actionId" when calling postIntegrationsActionTest';if(i==null)throw'Missing the required parameter "body" when calling postIntegrationsActionTest';return this.apiClient.callApi("/api/v2/integrations/actions/{actionId}/test","POST",{actionId:e},{flatten:n.flatten},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postIntegrationsActions(e,i){if(i=i||{},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"],i.customHeaders)}postIntegrationsActionsDrafts(e,i){if(i=i||{},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"],i.customHeaders)}postIntegrationsBotconnectorsIncomingMessages(e,i){if(i=i||{},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"],i.customHeaders)}postIntegrationsBotconnectorsOutgoingMessages(e,i){if(i=i||{},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"],i.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,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "nuanceIntegrationId" when calling postIntegrationsSpeechNuanceNuanceIntegrationIdBotJobs';if(i==null||i==="")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:i},{expand:this.apiClient.buildCollectionParam(n.expand,"multi")},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postIntegrationsSpeechNuanceNuanceIntegrationIdBotsJobs(e,i){if(i=i||{},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:i.pageNumber,pageSize:i.pageSize,onlyRegisteredBots:i.onlyRegisteredBots},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postIntegrationsSpeechNuanceNuanceIntegrationIdBotsLaunchValidate(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "nuanceIntegrationId" when calling postIntegrationsSpeechNuanceNuanceIntegrationIdBotsLaunchValidate';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postIntegrationsWebhookEvents(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "tokenId" when calling postIntegrationsWebhookEvents';if(i==null)throw'Missing the required parameter "body" when calling postIntegrationsWebhookEvents';return this.apiClient.callApi("/api/v2/integrations/webhooks/{tokenId}/events","POST",{tokenId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putIntegrationConfigCurrent(e,i){if(i=i||{},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},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}putIntegrationsActionDraftFunction(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "actionId" when calling putIntegrationsActionDraftFunction';if(i==null)throw'Missing the required parameter "body" when calling putIntegrationsActionDraftFunction';return this.apiClient.callApi("/api/v2/integrations/actions/{actionId}/draft/function","PUT",{actionId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putIntegrationsBotconnectorIntegrationIdBots(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "integrationId" when calling putIntegrationsBotconnectorIntegrationIdBots';if(i==null)throw'Missing the required parameter "botList" when calling putIntegrationsBotconnectorIntegrationIdBots';return this.apiClient.callApi("/api/v2/integrations/botconnector/{integrationId}/bots","PUT",{integrationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putIntegrationsCredential(e,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "credentialId" when calling putIntegrationsCredential';return this.apiClient.callApi("/api/v2/integrations/credentials/{credentialId}","PUT",{credentialId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}putIntegrationsSpeechNuanceNuanceIntegrationIdBotsLaunchSettings(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "nuanceIntegrationId" when calling putIntegrationsSpeechNuanceNuanceIntegrationIdBotsLaunchSettings';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putIntegrationsSpeechTtsSettings(e,i){if(i=i||{},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"],i.customHeaders)}putIntegrationsUnifiedcommunicationThirdpartypresences(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "ucIntegrationId" when calling putIntegrationsUnifiedcommunicationThirdpartypresences';if(i==null)throw'Missing the required parameter "body" when calling putIntegrationsUnifiedcommunicationThirdpartypresences';return this.apiClient.callApi("/api/v2/integrations/unifiedcommunications/{ucIntegrationId}/thirdpartypresences","PUT",{ucIntegrationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}},lb=class{constructor(e){this.apiClient=e||q.instance}deleteIntentsCategory(e,i){if(i=i||{},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"],i.customHeaders)}deleteIntentsCustomerintent(e,i){if(i=i||{},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"],i.customHeaders)}getIntentsAssignmentsExternalcontact(e,i){if(i=i||{},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:i.pageSize,pageNumber:i.pageNumber},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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"],i.customHeaders)}getIntentsCustomerintent(e,i){if(i=i||{},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"],i.customHeaders)}getIntentsCustomerintentSourceintents(e,i){if(i=i||{},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:i.pageSize,pageNumber:i.pageNumber,queryValue:i.queryValue},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "categoryId" when calling patchIntentsCategory';if(i==null)throw'Missing the required parameter "body" when calling patchIntentsCategory';return this.apiClient.callApi("/api/v2/intents/categories/{categoryId}","PATCH",{categoryId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchIntentsCustomerintent(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "customerIntentId" when calling patchIntentsCustomerintent';if(i==null)throw'Missing the required parameter "body" when calling patchIntentsCustomerintent';return this.apiClient.callApi("/api/v2/intents/customerintents/{customerIntentId}","PATCH",{customerIntentId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postIntentsAssignmentsExternalcontactCustomerintentAssignment(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "externalContactId" when calling postIntentsAssignmentsExternalcontactCustomerintentAssignment';if(i==null||i==="")throw'Missing the required parameter "customerIntentId" when calling postIntentsAssignmentsExternalcontactCustomerintentAssignment';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postIntentsCategories(e,i){if(i=i||{},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"],i.customHeaders)}postIntentsCustomerintentSourceintentsBulkAdd(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "customerIntentId" when calling postIntentsCustomerintentSourceintentsBulkAdd';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postIntentsCustomerintentSourceintentsBulkRemove(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "customerIntentId" when calling postIntentsCustomerintentSourceintentsBulkRemove';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postIntentsCustomerintents(e,i){if(i=i||{},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"],i.customHeaders)}},ub=class{constructor(e){this.apiClient=e||q.instance}deleteAnalyticsJourneysAggregatesJob(e,i){if(i=i||{},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"],i.customHeaders)}deleteJourneyActionmap(e,i){if(i=i||{},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"],i.customHeaders)}deleteJourneyActiontemplate(e,i){if(i=i||{},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:i.hardDelete},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}deleteJourneyExternaleventsConfiguration(e,i){if(i=i||{},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"],i.customHeaders)}deleteJourneyExternaleventsSchema(e,i){if(i=i||{},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"],i.customHeaders)}deleteJourneyOutcome(e,i){if(i=i||{},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"],i.customHeaders)}deleteJourneyOutcomesPredictor(e,i){if(i=i||{},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"],i.customHeaders)}deleteJourneySegment(e,i){if(i=i||{},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"],i.customHeaders)}deleteJourneyView(e,i){if(i=i||{},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"],i.customHeaders)}deleteJourneyViewSchedules(e,i){if(i=i||{},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"],i.customHeaders)}getAnalyticsJourneysAggregatesJob(e,i){if(i=i||{},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"],i.customHeaders)}getAnalyticsJourneysAggregatesJobResults(e,i){if(i=i||{},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:i.cursor},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getExternalcontactsContactJourneySegments(e,i){if(i=i||{},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:i.includeMerged,limit:i.limit},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getExternalcontactsContactJourneySessions(e,i){if(i=i||{},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:i.pageSize,after:i.after,includeMerged:i.includeMerged},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getJourneyActionmap(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getJourneyActionmapsEstimatesJobResults(e,i){if(i=i||{},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"],i.customHeaders)}getJourneyActiontarget(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "deploymentId" when calling getJourneyDeploymentCustomerPing';if(i==null||i==="")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:i},{dl:n.dl,dt:n.dt,appNamespace:n.appNamespace,sessionId:n.sessionId,sinceLastBeaconMilliseconds:n.sinceLastBeaconMilliseconds},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getJourneyExternaleventsConfiguration(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getJourneyExternaleventsSchemaVersion(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "schemaId" when calling getJourneyExternaleventsSchemaVersion';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getJourneyExternaleventsSchemaVersions(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getJourneyOutcomesAttributionsJobResults(e,i){if(i=i||{},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"],i.customHeaders)}getJourneyOutcomesPredictor(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getJourneySessionEvents(e,i){if(i=i||{},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:i.pageSize,after:i.after,eventType:i.eventType},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getJourneySessionOutcomescores(e,i){if(i=i||{},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"],i.customHeaders)}getJourneyView(e,i){if(i=i||{},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"],i.customHeaders)}getJourneyViewSchedules(e,i){if(i=i||{},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"],i.customHeaders)}getJourneyViewVersion(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "viewId" when calling getJourneyViewVersion';if(i==null||i==="")throw'Missing the required parameter "versionId" when calling getJourneyViewVersion';return this.apiClient.callApi("/api/v2/journey/views/{viewId}/versions/{versionId}","GET",{viewId:e,versionId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getJourneyViewVersionChart(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "viewId" when calling getJourneyViewVersionChart';if(i==null||i==="")throw'Missing the required parameter "journeyViewVersion" when calling getJourneyViewVersionChart';if(n==null||n==="")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:i,chartId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getJourneyViewVersionChartVersion(e,i,n,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "viewId" when calling getJourneyViewVersionChartVersion';if(i==null||i==="")throw'Missing the required parameter "journeyViewVersion" when calling getJourneyViewVersionChartVersion';if(n==null||n==="")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:i,chartId:n,chartVersion:a},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}getJourneyViewVersionJob(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "viewId" when calling getJourneyViewVersionJob';if(i==null||i==="")throw'Missing the required parameter "journeyVersionId" when calling getJourneyViewVersionJob';if(n==null||n==="")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:i,jobId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getJourneyViewVersionJobResults(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "viewId" when calling getJourneyViewVersionJobResults';if(i==null||i==="")throw'Missing the required parameter "journeyViewVersion" when calling getJourneyViewVersionJobResults';if(n==null||n==="")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:i,jobId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getJourneyViewVersionJobResultsChart(e,i,n,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "viewId" when calling getJourneyViewVersionJobResultsChart';if(i==null||i==="")throw'Missing the required parameter "journeyVersionId" when calling getJourneyViewVersionJobResultsChart';if(n==null||n==="")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:i,jobId:n,chartId:a},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}getJourneyViewVersionJobsLatest(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "viewId" when calling getJourneyViewVersionJobsLatest';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.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,i){if(i=i||{},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"],i.customHeaders)}getJourneyViewsEventdefinitions(e){return e=e||{},this.apiClient.callApi("/api/v2/journey/views/eventdefinitions","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getJourneyViewsJobs(e){return e=e||{},this.apiClient.callApi("/api/v2/journey/views/jobs","GET",{},{pageNumber:e.pageNumber,pageSize:e.pageSize,interval:e.interval,statuses:e.statuses},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getJourneyViewsJobsMe(e){return e=e||{},this.apiClient.callApi("/api/v2/journey/views/jobs/me","GET",{},{pageNumber:e.pageNumber,pageSize:e.pageSize,interval:e.interval,statuses:e.statuses},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getJourneyViewsSchedules(e){return e=e||{},this.apiClient.callApi("/api/v2/journey/views/schedules","GET",{},{pageNumber:e.pageNumber,pageSize:e.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}patchJourneyActionmap(e,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "actionMapId" when calling patchJourneyActionmap';return this.apiClient.callApi("/api/v2/journey/actionmaps/{actionMapId}","PATCH",{actionMapId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}patchJourneyActiontarget(e,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "actionTargetId" when calling patchJourneyActiontarget';return this.apiClient.callApi("/api/v2/journey/actiontargets/{actionTargetId}","PATCH",{actionTargetId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}patchJourneyActiontemplate(e,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "actionTemplateId" when calling patchJourneyActiontemplate';return this.apiClient.callApi("/api/v2/journey/actiontemplates/{actionTemplateId}","PATCH",{actionTemplateId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}patchJourneyExternaleventsConfiguration(e,i){if(i=i||{},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},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}patchJourneyOutcome(e,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "outcomeId" when calling patchJourneyOutcome';return this.apiClient.callApi("/api/v2/journey/outcomes/{outcomeId}","PATCH",{outcomeId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}patchJourneySegment(e,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "segmentId" when calling patchJourneySegment';return this.apiClient.callApi("/api/v2/journey/segments/{segmentId}","PATCH",{segmentId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}patchJourneyViewVersionJob(e,i,n,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "viewId" when calling patchJourneyViewVersionJob';if(i==null||i==="")throw'Missing the required parameter "journeyVersionId" when calling patchJourneyViewVersionJob';if(n==null||n==="")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:i,jobId:n},{},{},{},a,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}postAnalyticsJourneysAggregatesJobs(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsJourneysAggregatesQuery(e,i){if(i=i||{},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"],i.customHeaders)}postExternalcontactsContactJourneySegments(e,i){if(i=i||{},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},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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"],i.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,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "deploymentId" when calling postJourneyDeploymentActionevent';if(i==null)throw'Missing the required parameter "body" when calling postJourneyDeploymentActionevent';return this.apiClient.callApi("/api/v2/journey/deployments/{deploymentId}/actionevent","POST",{deploymentId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postJourneyDeploymentAppevents(e,i){if(i=i||{},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},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postJourneyDeploymentWebevents(e,i){if(i=i||{},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},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postJourneyExternaleventsConfigurationEvents(e,i){if(i=i||{},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},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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"],i.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,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "viewId" when calling postJourneyViewSchedules';if(i==null)throw'Missing the required parameter "body" when calling postJourneyViewSchedules';return this.apiClient.callApi("/api/v2/journey/views/{viewId}/schedules","POST",{viewId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postJourneyViewVersionJobs(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "viewId" when calling postJourneyViewVersionJobs';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postJourneyViewVersions(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "viewId" when calling postJourneyViewVersions';if(i==null)throw'Missing the required parameter "body" when calling postJourneyViewVersions';return this.apiClient.callApi("/api/v2/journey/views/{viewId}/versions","POST",{viewId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postJourneyViews(e,i){if(i=i||{},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"],i.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,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "schemaId" when calling putJourneyExternaleventsSchema';if(i==null)throw'Missing the required parameter "body" when calling putJourneyExternaleventsSchema';return this.apiClient.callApi("/api/v2/journey/externalevents/schemas/{schemaId}","PUT",{schemaId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putJourneyViewSchedules(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "viewId" when calling putJourneyViewSchedules';if(i==null)throw'Missing the required parameter "body" when calling putJourneyViewSchedules';return this.apiClient.callApi("/api/v2/journey/views/{viewId}/schedules","PUT",{viewId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putJourneyViewVersion(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "viewId" when calling putJourneyViewVersion';if(i==null||i==="")throw'Missing the required parameter "versionId" when calling putJourneyViewVersion';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}},cb=class{constructor(e){this.apiClient=e||q.instance}deleteKnowledgeConnection(e,i){if(i=i||{},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"],i.customHeaders)}deleteKnowledgeKnowledgebase(e,i){if(i=i||{},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"],i.customHeaders)}deleteKnowledgeKnowledgebaseCategory(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling deleteKnowledgeKnowledgebaseCategory';if(i==null||i==="")throw'Missing the required parameter "categoryId" when calling deleteKnowledgeKnowledgebaseCategory';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/categories/{categoryId}","DELETE",{knowledgeBaseId:e,categoryId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteKnowledgeKnowledgebaseDocument(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling deleteKnowledgeKnowledgebaseDocument';if(i==null||i==="")throw'Missing the required parameter "documentId" when calling deleteKnowledgeKnowledgebaseDocument';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/documents/{documentId}","DELETE",{knowledgeBaseId:e,documentId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteKnowledgeKnowledgebaseDocumentVariation(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "documentVariationId" when calling deleteKnowledgeKnowledgebaseDocumentVariation';if(i==null||i==="")throw'Missing the required parameter "documentId" when calling deleteKnowledgeKnowledgebaseDocumentVariation';if(n==null||n==="")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:i,knowledgeBaseId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}deleteKnowledgeKnowledgebaseExportJob(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling deleteKnowledgeKnowledgebaseExportJob';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteKnowledgeKnowledgebaseImportJob(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling deleteKnowledgeKnowledgebaseImportJob';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteKnowledgeKnowledgebaseLabel(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling deleteKnowledgeKnowledgebaseLabel';if(i==null||i==="")throw'Missing the required parameter "labelId" when calling deleteKnowledgeKnowledgebaseLabel';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/labels/{labelId}","DELETE",{knowledgeBaseId:e,labelId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteKnowledgeKnowledgebaseSourcesSalesforceSourceId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling deleteKnowledgeKnowledgebaseSourcesSalesforceSourceId';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteKnowledgeKnowledgebaseSourcesServicenowSourceId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling deleteKnowledgeKnowledgebaseSourcesServicenowSourceId';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteKnowledgeKnowledgebaseSynchronizeJob(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling deleteKnowledgeKnowledgebaseSynchronizeJob';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteKnowledgeSetting(e,i){if(i=i||{},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"],i.customHeaders)}deleteKnowledgeSource(e,i){if(i=i||{},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"],i.customHeaders)}getKnowledgeConnection(e,i){if(i=i||{},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(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getKnowledgeConnectionOptions(e,i){if(i=i||{},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:i.after,pageSize:i.pageSize,parentId:i.parentId},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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:i.before,after:i.after,pageSize:i.pageSize,parentId:i.parentId,isRoot:i.isRoot,name:i.name,sortBy:i.sortBy,expand:i.expand,includeDocumentCount:i.includeDocumentCount},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getKnowledgeGuestSessionDocument(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "sessionId" when calling getKnowledgeGuestSessionDocument';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getKnowledgeGuestSessionDocuments(e,i){if(i=i||{},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(i.categoryId,"multi"),pageSize:i.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getKnowledgeIntegrationOptions(e,i){if(i=i||{},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(i.knowledgeBaseIds,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getKnowledgeKnowledgebase(e,i){if(i=i||{},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"],i.customHeaders)}getKnowledgeKnowledgebaseCategories(e,i){if(i=i||{},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:i.before,after:i.after,pageSize:i.pageSize,parentId:i.parentId,isRoot:i.isRoot,name:i.name,sortBy:i.sortBy,expand:i.expand,includeDocumentCount:i.includeDocumentCount},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getKnowledgeKnowledgebaseCategory(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling getKnowledgeKnowledgebaseCategory';if(i==null||i==="")throw'Missing the required parameter "categoryId" when calling getKnowledgeKnowledgebaseCategory';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/categories/{categoryId}","GET",{knowledgeBaseId:e,categoryId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getKnowledgeKnowledgebaseDocument(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling getKnowledgeKnowledgebaseDocument';if(i==null||i==="")throw'Missing the required parameter "documentId" when calling getKnowledgeKnowledgebaseDocument';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/documents/{documentId}","GET",{knowledgeBaseId:e,documentId:i},{expand:this.apiClient.buildCollectionParam(n.expand,"multi"),state:n.state},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getKnowledgeKnowledgebaseDocumentFeedback(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling getKnowledgeKnowledgebaseDocumentFeedback';if(i==null||i==="")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:i},{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)}getKnowledgeKnowledgebaseDocumentFeedbackFeedbackId(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling getKnowledgeKnowledgebaseDocumentFeedbackFeedbackId';if(i==null||i==="")throw'Missing the required parameter "documentId" when calling getKnowledgeKnowledgebaseDocumentFeedbackFeedbackId';if(n==null||n==="")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:i,feedbackId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getKnowledgeKnowledgebaseDocumentVariation(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "documentVariationId" when calling getKnowledgeKnowledgebaseDocumentVariation';if(i==null||i==="")throw'Missing the required parameter "documentId" when calling getKnowledgeKnowledgebaseDocumentVariation';if(n==null||n==="")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:i,knowledgeBaseId:n},{documentState:a.documentState,expand:this.apiClient.buildCollectionParam(a.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getKnowledgeKnowledgebaseDocumentVariations(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling getKnowledgeKnowledgebaseDocumentVariations';if(i==null||i==="")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:i},{before:n.before,after:n.after,pageSize:n.pageSize,documentState:n.documentState,expand:this.apiClient.buildCollectionParam(n.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getKnowledgeKnowledgebaseDocumentVersion(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling getKnowledgeKnowledgebaseDocumentVersion';if(i==null||i==="")throw'Missing the required parameter "documentId" when calling getKnowledgeKnowledgebaseDocumentVersion';if(n==null||n==="")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:i,versionId:n},{expand:this.apiClient.buildCollectionParam(a.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getKnowledgeKnowledgebaseDocumentVersionVariation(e,i,n,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling getKnowledgeKnowledgebaseDocumentVersionVariation';if(i==null||i==="")throw'Missing the required parameter "documentId" when calling getKnowledgeKnowledgebaseDocumentVersionVariation';if(n==null||n==="")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:i,versionId:n,variationId:a},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}getKnowledgeKnowledgebaseDocumentVersionVariations(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling getKnowledgeKnowledgebaseDocumentVersionVariations';if(i==null||i==="")throw'Missing the required parameter "documentId" when calling getKnowledgeKnowledgebaseDocumentVersionVariations';if(n==null||n==="")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:i,versionId:n},{before:a.before,after:a.after,pageSize:a.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getKnowledgeKnowledgebaseDocumentVersions(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling getKnowledgeKnowledgebaseDocumentVersions';if(i==null||i==="")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:i},{before:n.before,after:n.after,pageSize:n.pageSize,expand:this.apiClient.buildCollectionParam(n.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getKnowledgeKnowledgebaseDocuments(e,i){if(i=i||{},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:i.before,after:i.after,pageSize:i.pageSize,interval:i.interval,documentId:this.apiClient.buildCollectionParam(i.documentId,"multi"),categoryId:this.apiClient.buildCollectionParam(i.categoryId,"multi"),includeSubcategories:i.includeSubcategories,includeDrafts:i.includeDrafts,labelIds:this.apiClient.buildCollectionParam(i.labelIds,"multi"),expand:this.apiClient.buildCollectionParam(i.expand,"multi"),externalIds:this.apiClient.buildCollectionParam(i.externalIds,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getKnowledgeKnowledgebaseExportJob(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling getKnowledgeKnowledgebaseExportJob';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getKnowledgeKnowledgebaseImportJob(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling getKnowledgeKnowledgebaseImportJob';if(i==null||i==="")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:i},{expand:this.apiClient.buildCollectionParam(n.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getKnowledgeKnowledgebaseLabel(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling getKnowledgeKnowledgebaseLabel';if(i==null||i==="")throw'Missing the required parameter "labelId" when calling getKnowledgeKnowledgebaseLabel';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/labels/{labelId}","GET",{knowledgeBaseId:e,labelId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getKnowledgeKnowledgebaseLabels(e,i){if(i=i||{},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:i.before,after:i.after,pageSize:i.pageSize,name:i.name,includeDocumentCount:i.includeDocumentCount},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getKnowledgeKnowledgebaseOperations(e,i){if(i=i||{},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:i.before,after:i.after,pageSize:i.pageSize,userId:this.apiClient.buildCollectionParam(i.userId,"multi"),type:this.apiClient.buildCollectionParam(i.type,"multi"),status:this.apiClient.buildCollectionParam(i.status,"multi"),interval:i.interval,sourceId:this.apiClient.buildCollectionParam(i.sourceId,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getKnowledgeKnowledgebaseOperationsUsersQuery(e,i){if(i=i||{},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"],i.customHeaders)}getKnowledgeKnowledgebaseParseJob(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling getKnowledgeKnowledgebaseParseJob';if(i==null||i==="")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:i},{expand:this.apiClient.buildCollectionParam(n.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getKnowledgeKnowledgebaseSources(e,i){if(i=i||{},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:i.type,expand:this.apiClient.buildCollectionParam(i.expand,"multi"),ids:this.apiClient.buildCollectionParam(i.ids,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getKnowledgeKnowledgebaseSourcesSalesforceSourceId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling getKnowledgeKnowledgebaseSourcesSalesforceSourceId';if(i==null||i==="")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:i},{expand:this.apiClient.buildCollectionParam(n.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getKnowledgeKnowledgebaseSourcesServicenowSourceId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling getKnowledgeKnowledgebaseSourcesServicenowSourceId';if(i==null||i==="")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:i},{expand:this.apiClient.buildCollectionParam(n.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getKnowledgeKnowledgebaseSynchronizeJob(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling getKnowledgeKnowledgebaseSynchronizeJob';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getKnowledgeKnowledgebaseUnansweredGroup(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling getKnowledgeKnowledgebaseUnansweredGroup';if(i==null||i==="")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:i},{app:n.app,dateStart:n.dateStart,dateEnd:n.dateEnd},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getKnowledgeKnowledgebaseUnansweredGroupPhrasegroup(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling getKnowledgeKnowledgebaseUnansweredGroupPhrasegroup';if(i==null||i==="")throw'Missing the required parameter "groupId" when calling getKnowledgeKnowledgebaseUnansweredGroupPhrasegroup';if(n==null||n==="")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:i,phraseGroupId:n},{app:a.app,dateStart:a.dateStart,dateEnd:a.dateEnd},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getKnowledgeKnowledgebaseUnansweredGroups(e,i){if(i=i||{},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:i.app,dateStart:i.dateStart,dateEnd:i.dateEnd},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getKnowledgeKnowledgebaseUploadsUrlsJob(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling getKnowledgeKnowledgebaseUploadsUrlsJob';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getKnowledgeSourceSynchronization(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "sourceId" when calling getKnowledgeSourceSynchronization';if(i==null||i==="")throw'Missing the required parameter "synchronizationId" when calling getKnowledgeSourceSynchronization';return this.apiClient.callApi("/api/v2/knowledge/sources/{sourceId}/synchronizations/{synchronizationId}","GET",{sourceId:e,synchronizationId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getKnowledgeSourceSynchronizations(e,i){if(i=i||{},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:i.before,after:i.after,pageSize:i.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "connectionId" when calling patchKnowledgeConnection';return this.apiClient.callApi("/api/v2/knowledge/connections/{connectionId}","PATCH",{connectionId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}patchKnowledgeGuestSessionDocumentsSearchSearchId(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "sessionId" when calling patchKnowledgeGuestSessionDocumentsSearchSearchId';if(i==null||i==="")throw'Missing the required parameter "searchId" when calling patchKnowledgeGuestSessionDocumentsSearchSearchId';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchKnowledgeKnowledgebase(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling patchKnowledgeKnowledgebase';if(i==null)throw'Missing the required parameter "body" when calling patchKnowledgeKnowledgebase';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}","PATCH",{knowledgeBaseId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchKnowledgeKnowledgebaseCategory(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling patchKnowledgeKnowledgebaseCategory';if(i==null||i==="")throw'Missing the required parameter "categoryId" when calling patchKnowledgeKnowledgebaseCategory';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchKnowledgeKnowledgebaseChunksSearchSearchId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling patchKnowledgeKnowledgebaseChunksSearchSearchId';if(i==null||i==="")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:i},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchKnowledgeKnowledgebaseDocument(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling patchKnowledgeKnowledgebaseDocument';if(i==null||i==="")throw'Missing the required parameter "documentId" when calling patchKnowledgeKnowledgebaseDocument';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchKnowledgeKnowledgebaseDocumentFeedbackFeedbackId(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling patchKnowledgeKnowledgebaseDocumentFeedbackFeedbackId';if(i==null||i==="")throw'Missing the required parameter "documentId" when calling patchKnowledgeKnowledgebaseDocumentFeedbackFeedbackId';if(n==null||n==="")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:i,feedbackId:n},{},{},{},a.body,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchKnowledgeKnowledgebaseDocumentVariation(e,i,n,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "documentVariationId" when calling patchKnowledgeKnowledgebaseDocumentVariation';if(i==null||i==="")throw'Missing the required parameter "documentId" when calling patchKnowledgeKnowledgebaseDocumentVariation';if(n==null||n==="")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:i,knowledgeBaseId:n},{},{},{},a,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}patchKnowledgeKnowledgebaseDocumentsSearchSearchId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling patchKnowledgeKnowledgebaseDocumentsSearchSearchId';if(i==null||i==="")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:i},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchKnowledgeKnowledgebaseImportJob(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling patchKnowledgeKnowledgebaseImportJob';if(i==null||i==="")throw'Missing the required parameter "importJobId" when calling patchKnowledgeKnowledgebaseImportJob';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchKnowledgeKnowledgebaseLabel(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling patchKnowledgeKnowledgebaseLabel';if(i==null||i==="")throw'Missing the required parameter "labelId" when calling patchKnowledgeKnowledgebaseLabel';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchKnowledgeKnowledgebaseParseJob(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling patchKnowledgeKnowledgebaseParseJob';if(i==null||i==="")throw'Missing the required parameter "parseJobId" when calling patchKnowledgeKnowledgebaseParseJob';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchKnowledgeKnowledgebaseSynchronizeJob(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling patchKnowledgeKnowledgebaseSynchronizeJob';if(i==null||i==="")throw'Missing the required parameter "syncJobId" when calling patchKnowledgeKnowledgebaseSynchronizeJob';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchKnowledgeKnowledgebaseUnansweredGroupPhrasegroup(e,i,n,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling patchKnowledgeKnowledgebaseUnansweredGroupPhrasegroup';if(i==null||i==="")throw'Missing the required parameter "groupId" when calling patchKnowledgeKnowledgebaseUnansweredGroupPhrasegroup';if(n==null||n==="")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:i,phraseGroupId:n},{},{},{},a,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}patchKnowledgeSetting(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeSettingId" when calling patchKnowledgeSetting';if(i==null)throw'Missing the required parameter "body" when calling patchKnowledgeSetting';return this.apiClient.callApi("/api/v2/knowledge/settings/{knowledgeSettingId}","PATCH",{knowledgeSettingId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchKnowledgeSourceSynchronization(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "sourceId" when calling patchKnowledgeSourceSynchronization';if(i==null||i==="")throw'Missing the required parameter "synchronizationId" when calling patchKnowledgeSourceSynchronization';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postKnowledgeConnections(e,i){if(i=i||{},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"],i.customHeaders)}postKnowledgeDocumentuploads(e,i){if(i=i||{},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"],i.customHeaders)}postKnowledgeGuestSessionDocumentCopies(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "sessionId" when calling postKnowledgeGuestSessionDocumentCopies';if(i==null||i==="")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:i},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postKnowledgeGuestSessionDocumentFeedback(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "sessionId" when calling postKnowledgeGuestSessionDocumentFeedback';if(i==null||i==="")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:i},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postKnowledgeGuestSessionDocumentViews(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "sessionId" when calling postKnowledgeGuestSessionDocumentViews';if(i==null||i==="")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:i},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postKnowledgeGuestSessionDocumentsAnswers(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "sessionId" when calling postKnowledgeGuestSessionDocumentsAnswers';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postKnowledgeGuestSessionDocumentsPresentations(e,i){if(i=i||{},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},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postKnowledgeGuestSessionDocumentsSearch(e,i){if(i=i||{},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(i.expand,"multi")},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postKnowledgeGuestSessionDocumentsSearchSuggestions(e,i){if(i=i||{},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},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postKnowledgeGuestSessions(e,i){if(i=i||{},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"],i.customHeaders)}postKnowledgeKnowledgebaseCategories(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseCategories';if(i==null)throw'Missing the required parameter "body" when calling postKnowledgeKnowledgebaseCategories';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/categories","POST",{knowledgeBaseId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postKnowledgeKnowledgebaseChunksSearch(e,i){if(i=i||{},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},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postKnowledgeKnowledgebaseDocumentCopies(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseDocumentCopies';if(i==null||i==="")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:i},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postKnowledgeKnowledgebaseDocumentFeedback(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseDocumentFeedback';if(i==null||i==="")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:i},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postKnowledgeKnowledgebaseDocumentVariations(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseDocumentVariations';if(i==null||i==="")throw'Missing the required parameter "documentId" when calling postKnowledgeKnowledgebaseDocumentVariations';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postKnowledgeKnowledgebaseDocumentVersions(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseDocumentVersions';if(i==null||i==="")throw'Missing the required parameter "documentId" when calling postKnowledgeKnowledgebaseDocumentVersions';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postKnowledgeKnowledgebaseDocumentViews(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseDocumentViews';if(i==null||i==="")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:i},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postKnowledgeKnowledgebaseDocuments(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseDocuments';if(i==null)throw'Missing the required parameter "body" when calling postKnowledgeKnowledgebaseDocuments';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/documents","POST",{knowledgeBaseId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postKnowledgeKnowledgebaseDocumentsAnswers(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseDocumentsAnswers';if(i==null)throw'Missing the required parameter "body" when calling postKnowledgeKnowledgebaseDocumentsAnswers';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/documents/answers","POST",{knowledgeBaseId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postKnowledgeKnowledgebaseDocumentsBulkRemove(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseDocumentsBulkRemove';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postKnowledgeKnowledgebaseDocumentsBulkUpdate(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseDocumentsBulkUpdate';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postKnowledgeKnowledgebaseDocumentsPresentations(e,i){if(i=i||{},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},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postKnowledgeKnowledgebaseDocumentsQuery(e,i){if(i=i||{},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(i.expand,"multi")},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postKnowledgeKnowledgebaseDocumentsSearch(e,i){if(i=i||{},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(i.expand,"multi")},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postKnowledgeKnowledgebaseDocumentsSearchSuggestions(e,i){if(i=i||{},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},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postKnowledgeKnowledgebaseDocumentsVersionsBulkAdd(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseDocumentsVersionsBulkAdd';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postKnowledgeKnowledgebaseExportJobs(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseExportJobs';if(i==null)throw'Missing the required parameter "body" when calling postKnowledgeKnowledgebaseExportJobs';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/export/jobs","POST",{knowledgeBaseId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postKnowledgeKnowledgebaseImportJobs(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseImportJobs';if(i==null)throw'Missing the required parameter "body" when calling postKnowledgeKnowledgebaseImportJobs';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/import/jobs","POST",{knowledgeBaseId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postKnowledgeKnowledgebaseLabels(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseLabels';if(i==null)throw'Missing the required parameter "body" when calling postKnowledgeKnowledgebaseLabels';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/labels","POST",{knowledgeBaseId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postKnowledgeKnowledgebaseParseJobImport(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseParseJobImport';if(i==null||i==="")throw'Missing the required parameter "parseJobId" when calling postKnowledgeKnowledgebaseParseJobImport';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postKnowledgeKnowledgebaseParseJobs(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseParseJobs';if(i==null)throw'Missing the required parameter "body" when calling postKnowledgeKnowledgebaseParseJobs';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/parse/jobs","POST",{knowledgeBaseId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postKnowledgeKnowledgebaseSourcesSalesforce(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseSourcesSalesforce';if(i==null)throw'Missing the required parameter "body" when calling postKnowledgeKnowledgebaseSourcesSalesforce';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/sources/salesforce","POST",{knowledgeBaseId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postKnowledgeKnowledgebaseSourcesSalesforceSourceIdSync(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseSourcesSalesforceSourceIdSync';if(i==null||i==="")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:i},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postKnowledgeKnowledgebaseSourcesServicenow(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseSourcesServicenow';if(i==null)throw'Missing the required parameter "body" when calling postKnowledgeKnowledgebaseSourcesServicenow';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/sources/servicenow","POST",{knowledgeBaseId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postKnowledgeKnowledgebaseSourcesServicenowSourceIdSync(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseSourcesServicenowSourceIdSync';if(i==null||i==="")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:i},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postKnowledgeKnowledgebaseSynchronizeJobs(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseSynchronizeJobs';if(i==null)throw'Missing the required parameter "body" when calling postKnowledgeKnowledgebaseSynchronizeJobs';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/synchronize/jobs","POST",{knowledgeBaseId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postKnowledgeKnowledgebaseUploadsUrlsJobs(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseUploadsUrlsJobs';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postKnowledgeKnowledgebases(e,i){if(i=i||{},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"],i.customHeaders)}postKnowledgeSearch(e){return e=e||{},this.apiClient.callApi("/api/v2/knowledge/search","POST",{},{},{},{},e.body,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}postKnowledgeSearchPreview(e){return e=e||{},this.apiClient.callApi("/api/v2/knowledge/search/preview","POST",{},{},{},{},e.body,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}postKnowledgeSettings(e){return e=e||{},this.apiClient.callApi("/api/v2/knowledge/settings","POST",{},{},{},{},e.body,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}postKnowledgeSourceSynchronizationUploads(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "sourceId" when calling postKnowledgeSourceSynchronizationUploads';if(i==null||i==="")throw'Missing the required parameter "synchronizationId" when calling postKnowledgeSourceSynchronizationUploads';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postKnowledgeSourceSynchronizations(e,i){if(i=i||{},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},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postKnowledgeSources(e,i){if(i=i||{},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"],i.customHeaders)}putKnowledgeKnowledgebaseSourcesSalesforceSourceId(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling putKnowledgeKnowledgebaseSourcesSalesforceSourceId';if(i==null||i==="")throw'Missing the required parameter "sourceId" when calling putKnowledgeKnowledgebaseSourcesSalesforceSourceId';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}putKnowledgeKnowledgebaseSourcesServicenowSourceId(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling putKnowledgeKnowledgebaseSourcesServicenowSourceId';if(i==null||i==="")throw'Missing the required parameter "sourceId" when calling putKnowledgeKnowledgebaseSourcesServicenowSourceId';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}putKnowledgeSource(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "sourceId" when calling putKnowledgeSource';if(i==null)throw'Missing the required parameter "body" when calling putKnowledgeSource';return this.apiClient.callApi("/api/v2/knowledge/sources/{sourceId}","PUT",{sourceId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}},pb=class{constructor(e){this.apiClient=e||q.instance}deleteLanguageunderstandingDomain(e,i){if(i=i||{},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"],i.customHeaders)}deleteLanguageunderstandingDomainFeedbackFeedbackId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "domainId" when calling deleteLanguageunderstandingDomainFeedbackFeedbackId';if(i==null||i==="")throw'Missing the required parameter "feedbackId" when calling deleteLanguageunderstandingDomainFeedbackFeedbackId';return this.apiClient.callApi("/api/v2/languageunderstanding/domains/{domainId}/feedback/{feedbackId}","DELETE",{domainId:e,feedbackId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteLanguageunderstandingDomainVersion(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "domainId" when calling deleteLanguageunderstandingDomainVersion';if(i==null||i==="")throw'Missing the required parameter "domainVersionId" when calling deleteLanguageunderstandingDomainVersion';return this.apiClient.callApi("/api/v2/languageunderstanding/domains/{domainId}/versions/{domainVersionId}","DELETE",{domainId:e,domainVersionId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteLanguageunderstandingMiner(e,i){if(i=i||{},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"],i.customHeaders)}deleteLanguageunderstandingMinerDraft(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "minerId" when calling deleteLanguageunderstandingMinerDraft';if(i==null||i==="")throw'Missing the required parameter "draftId" when calling deleteLanguageunderstandingMinerDraft';return this.apiClient.callApi("/api/v2/languageunderstanding/miners/{minerId}/drafts/{draftId}","DELETE",{minerId:e,draftId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getLanguageunderstandingDomain(e,i){if(i=i||{},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"],i.customHeaders)}getLanguageunderstandingDomainFeedback(e,i){if(i=i||{},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:i.intentName,assessment:i.assessment,dateStart:i.dateStart,dateEnd:i.dateEnd,includeDeleted:i.includeDeleted,language:i.language,pageNumber:i.pageNumber,pageSize:i.pageSize,enableCursorPagination:i.enableCursorPagination,includeTrainingUtterances:i.includeTrainingUtterances,after:i.after,fields:this.apiClient.buildCollectionParam(i.fields,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getLanguageunderstandingDomainFeedbackFeedbackId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "domainId" when calling getLanguageunderstandingDomainFeedbackFeedbackId';if(i==null||i==="")throw'Missing the required parameter "feedbackId" when calling getLanguageunderstandingDomainFeedbackFeedbackId';return this.apiClient.callApi("/api/v2/languageunderstanding/domains/{domainId}/feedback/{feedbackId}","GET",{domainId:e,feedbackId:i},{fields:this.apiClient.buildCollectionParam(n.fields,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getLanguageunderstandingDomainVersion(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "domainId" when calling getLanguageunderstandingDomainVersion';if(i==null||i==="")throw'Missing the required parameter "domainVersionId" when calling getLanguageunderstandingDomainVersion';return this.apiClient.callApi("/api/v2/languageunderstanding/domains/{domainId}/versions/{domainVersionId}","GET",{domainId:e,domainVersionId:i},{includeUtterances:n.includeUtterances},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getLanguageunderstandingDomainVersionReport(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "domainId" when calling getLanguageunderstandingDomainVersionReport';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getLanguageunderstandingDomainVersions(e,i){if(i=i||{},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:i.includeUtterances,pageNumber:i.pageNumber,pageSize:i.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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:i.pageSize,pageNumber:i.pageNumber,text:i.text,sortOrder:i.sortOrder,sortBy:i.sortBy},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getLanguageunderstandingIgnoretopic(e,i){if(i=i||{},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:i.pageSize,pageNumber:i.pageNumber,text:i.text,sortOrder:i.sortOrder,sortBy:i.sortBy},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getLanguageunderstandingMiner(e,i){if(i=i||{},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"],i.customHeaders)}getLanguageunderstandingMinerDraft(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "minerId" when calling getLanguageunderstandingMinerDraft';if(i==null||i==="")throw'Missing the required parameter "draftId" when calling getLanguageunderstandingMinerDraft';return this.apiClient.callApi("/api/v2/languageunderstanding/miners/{minerId}/drafts/{draftId}","GET",{minerId:e,draftId:i},{draftIntentId:n.draftIntentId,draftTopicId:n.draftTopicId},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getLanguageunderstandingMinerDrafts(e,i){if(i=i||{},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"],i.customHeaders)}getLanguageunderstandingMinerIntent(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "minerId" when calling getLanguageunderstandingMinerIntent';if(i==null||i==="")throw'Missing the required parameter "intentId" when calling getLanguageunderstandingMinerIntent';return this.apiClient.callApi("/api/v2/languageunderstanding/miners/{minerId}/intents/{intentId}","GET",{minerId:e,intentId:i},{expand:n.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getLanguageunderstandingMinerIntents(e,i){if(i=i||{},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:i.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getLanguageunderstandingMinerTopic(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "minerId" when calling getLanguageunderstandingMinerTopic';if(i==null||i==="")throw'Missing the required parameter "topicId" when calling getLanguageunderstandingMinerTopic';return this.apiClient.callApi("/api/v2/languageunderstanding/miners/{minerId}/topics/{topicId}","GET",{minerId:e,topicId:i},{expand:n.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getLanguageunderstandingMinerTopicPhrase(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "minerId" when calling getLanguageunderstandingMinerTopicPhrase';if(i==null||i==="")throw'Missing the required parameter "topicId" when calling getLanguageunderstandingMinerTopicPhrase';if(n==null||n==="")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:i,phraseId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getLanguageunderstandingMinerTopics(e,i){if(i=i||{},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"],i.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,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "domainId" when calling patchLanguageunderstandingDomain';if(i==null)throw'Missing the required parameter "body" when calling patchLanguageunderstandingDomain';return this.apiClient.callApi("/api/v2/languageunderstanding/domains/{domainId}","PATCH",{domainId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchLanguageunderstandingMinerDraft(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "minerId" when calling patchLanguageunderstandingMinerDraft';if(i==null||i==="")throw'Missing the required parameter "draftId" when calling patchLanguageunderstandingMinerDraft';return this.apiClient.callApi("/api/v2/languageunderstanding/miners/{minerId}/drafts/{draftId}","PATCH",{minerId:e,draftId:i},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postLanguageunderstandingDomainFeedback(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "domainId" when calling postLanguageunderstandingDomainFeedback';if(i==null)throw'Missing the required parameter "body" when calling postLanguageunderstandingDomainFeedback';return this.apiClient.callApi("/api/v2/languageunderstanding/domains/{domainId}/feedback","POST",{domainId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postLanguageunderstandingDomainVersionDetect(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "domainId" when calling postLanguageunderstandingDomainVersionDetect';if(i==null||i==="")throw'Missing the required parameter "domainVersionId" when calling postLanguageunderstandingDomainVersionDetect';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postLanguageunderstandingDomainVersionPublish(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "domainId" when calling postLanguageunderstandingDomainVersionPublish';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postLanguageunderstandingDomainVersionTrain(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "domainId" when calling postLanguageunderstandingDomainVersionTrain';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postLanguageunderstandingDomainVersions(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "domainId" when calling postLanguageunderstandingDomainVersions';if(i==null)throw'Missing the required parameter "body" when calling postLanguageunderstandingDomainVersions';return this.apiClient.callApi("/api/v2/languageunderstanding/domains/{domainId}/versions","POST",{domainId:e},{includeUtterances:n.includeUtterances},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postLanguageunderstandingDomains(e,i){if(i=i||{},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"],i.customHeaders)}postLanguageunderstandingIgnorephrase(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "languageCode" when calling postLanguageunderstandingIgnorephrase';if(i==null)throw'Missing the required parameter "body" when calling postLanguageunderstandingIgnorephrase';return this.apiClient.callApi("/api/v2/languageunderstanding/ignorephrases/{languageCode}","POST",{languageCode:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postLanguageunderstandingIgnorephraseRemove(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "languageCode" when calling postLanguageunderstandingIgnorephraseRemove';if(i==null)throw'Missing the required parameter "body" when calling postLanguageunderstandingIgnorephraseRemove';return this.apiClient.callApi("/api/v2/languageunderstanding/ignorephrases/{languageCode}/remove","POST",{languageCode:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postLanguageunderstandingIgnoretopic(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "languageCode" when calling postLanguageunderstandingIgnoretopic';if(i==null)throw'Missing the required parameter "body" when calling postLanguageunderstandingIgnoretopic';return this.apiClient.callApi("/api/v2/languageunderstanding/ignoretopics/{languageCode}","POST",{languageCode:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postLanguageunderstandingIgnoretopicRemove(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "languageCode" when calling postLanguageunderstandingIgnoretopicRemove';if(i==null)throw'Missing the required parameter "body" when calling postLanguageunderstandingIgnoretopicRemove';return this.apiClient.callApi("/api/v2/languageunderstanding/ignoretopics/{languageCode}/remove","POST",{languageCode:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postLanguageunderstandingMinerDrafts(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "minerId" when calling postLanguageunderstandingMinerDrafts';if(i==null)throw'Missing the required parameter "body" when calling postLanguageunderstandingMinerDrafts';return this.apiClient.callApi("/api/v2/languageunderstanding/miners/{minerId}/drafts","POST",{minerId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postLanguageunderstandingMinerExecute(e,i){if(i=i||{},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},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postLanguageunderstandingMiners(e,i){if(i=i||{},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"],i.customHeaders)}putLanguageunderstandingDomainVersion(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "domainId" when calling putLanguageunderstandingDomainVersion';if(i==null||i==="")throw'Missing the required parameter "domainVersionId" when calling putLanguageunderstandingDomainVersion';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}},db=class{constructor(e){this.apiClient=e||q.instance}deleteLanguage(e,i){if(i=i||{},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"],i.customHeaders)}getLanguage(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getLanguagesTranslationsOrganization(e,i){if(i=i||{},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"],i.customHeaders)}getLanguagesTranslationsUser(e,i){if(i=i||{},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"],i.customHeaders)}postLanguages(e,i){if(i=i||{},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"],i.customHeaders)}},hb=class{constructor(e){this.apiClient=e||q.instance}deleteLearningAssignment(e,i){if(i=i||{},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"],i.customHeaders)}deleteLearningModule(e,i){if(i=i||{},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"],i.customHeaders)}getLearningAssignment(e,i){if(i=i||{},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(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getLearningAssignmentStep(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "assignmentId" when calling getLearningAssignmentStep';if(i==null||i==="")throw'Missing the required parameter "stepId" when calling getLearningAssignmentStep';return this.apiClient.callApi("/api/v2/learning/assignments/{assignmentId}/steps/{stepId}","GET",{assignmentId:e,stepId:i},{shareableContentObjectId:n.shareableContentObjectId,defaultShareableContentObject:n.defaultShareableContentObject,expand:this.apiClient.buildCollectionParam(n.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.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,i){if(i=i||{},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(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getLearningModuleJob(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "moduleId" when calling getLearningModuleJob';if(i==null||i==="")throw'Missing the required parameter "jobId" when calling getLearningModuleJob';return this.apiClient.callApi("/api/v2/learning/modules/{moduleId}/jobs/{jobId}","GET",{moduleId:e,jobId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getLearningModulePreview(e,i){if(i=i||{},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"],i.customHeaders)}getLearningModuleRule(e,i){if(i=i||{},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"],i.customHeaders)}getLearningModuleVersion(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "moduleId" when calling getLearningModuleVersion';if(i==null||i==="")throw'Missing the required parameter "versionId" when calling getLearningModuleVersion';return this.apiClient.callApi("/api/v2/learning/modules/{moduleId}/versions/{versionId}","GET",{moduleId:e,versionId:i},{expand:this.apiClient.buildCollectionParam(n.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getLearningModules(e){return e=e||{},this.apiClient.callApi("/api/v2/learning/modules","GET",{},{isArchived:e.isArchived,types:this.apiClient.buildCollectionParam(e.types,"multi"),pageSize:e.pageSize,pageNumber:e.pageNumber,sortOrder:e.sortOrder,sortBy:e.sortBy,searchTerm:e.searchTerm,expand:this.apiClient.buildCollectionParam(e.expand,"multi"),isPublished:e.isPublished,statuses:this.apiClient.buildCollectionParam(e.statuses,"multi"),externalIds:this.apiClient.buildCollectionParam(e.externalIds,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getLearningModulesAssignments(e,i){if(i=i||{},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:i.pageSize,pageNumber:i.pageNumber,searchTerm:i.searchTerm,overdue:i.overdue,assignmentStates:this.apiClient.buildCollectionParam(i.assignmentStates,"multi"),expand:this.apiClient.buildCollectionParam(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getLearningModulesCoverartCoverArtId(e,i){if(i=i||{},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"],i.customHeaders)}getLearningScheduleslotsJob(e,i){if(i=i||{},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"],i.customHeaders)}getLearningScormScormId(e,i){if(i=i||{},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"],i.customHeaders)}patchLearningAssignment(e,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "assignmentId" when calling patchLearningAssignment';return this.apiClient.callApi("/api/v2/learning/assignments/{assignmentId}","PATCH",{assignmentId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}patchLearningAssignmentReschedule(e,i){if(i=i||{},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},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}patchLearningAssignmentStep(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "assignmentId" when calling patchLearningAssignmentStep';if(i==null||i==="")throw'Missing the required parameter "stepId" when calling patchLearningAssignmentStep';return this.apiClient.callApi("/api/v2/learning/assignments/{assignmentId}/steps/{stepId}","PATCH",{assignmentId:e,stepId:i},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchLearningModuleUserAssignments(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "moduleId" when calling patchLearningModuleUserAssignments';if(i==null||i==="")throw'Missing the required parameter "userId" when calling patchLearningModuleUserAssignments';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postLearningAssessmentsScoring(e,i){if(i=i||{},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"],i.customHeaders)}postLearningAssignmentReassign(e,i){if(i=i||{},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"],i.customHeaders)}postLearningAssignmentReset(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "moduleId" when calling postLearningModuleJobs';if(i==null)throw'Missing the required parameter "body" when calling postLearningModuleJobs';return this.apiClient.callApi("/api/v2/learning/modules/{moduleId}/jobs","POST",{moduleId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postLearningModulePublish(e,i){if(i=i||{},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},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postLearningModuleRuleMigrate(e,i){if(i=i||{},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"],i.customHeaders)}postLearningModules(e,i){if(i=i||{},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"],i.customHeaders)}postLearningRulesQuery(e,i,n,a){if(a=a||{},e==null)throw'Missing the required parameter "pageSize" when calling postLearningRulesQuery';if(i==null)throw'Missing the required parameter "pageNumber" when calling postLearningRulesQuery';if(n==null)throw'Missing the required parameter "body" when calling postLearningRulesQuery';return this.apiClient.callApi("/api/v2/learning/rules/query","POST",{},{pageSize:e,pageNumber:i},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postLearningScheduleslotsJobs(e,i){if(i=i||{},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"],i.customHeaders)}postLearningScheduleslotsQuery(e,i){if(i=i||{},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"],i.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,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "moduleId" when calling putLearningModule';if(i==null)throw'Missing the required parameter "body" when calling putLearningModule';return this.apiClient.callApi("/api/v2/learning/modules/{moduleId}","PUT",{moduleId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putLearningModulePreview(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "moduleId" when calling putLearningModulePreview';if(i==null)throw'Missing the required parameter "body" when calling putLearningModulePreview';return this.apiClient.callApi("/api/v2/learning/modules/{moduleId}/preview","PUT",{moduleId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putLearningModuleRule(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "moduleId" when calling putLearningModuleRule';if(i==null)throw'Missing the required parameter "body" when calling putLearningModuleRule';return this.apiClient.callApi("/api/v2/learning/modules/{moduleId}/rule","PUT",{moduleId:e},{assign:n.assign},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}},gb=class{constructor(e){this.apiClient=e||q.instance}getLicenseDefinition(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getLicenseUser(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}postLicenseUsers(e){return e=e||{},this.apiClient.callApi("/api/v2/license/users","POST",{},{},{},{},e.body,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}},mb=class{constructor(e){this.apiClient=e||q.instance}deleteLocation(e,i){if(i=i||{},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"],i.customHeaders)}getLocation(e,i){if(i=i||{},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(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getLocationSublocations(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}patchLocation(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "locationId" when calling patchLocation';if(i==null)throw'Missing the required parameter "body" when calling patchLocation';return this.apiClient.callApi("/api/v2/locations/{locationId}","PATCH",{locationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postLocations(e,i){if(i=i||{},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"],i.customHeaders)}postLocationsSearch(e,i){if(i=i||{},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"],i.customHeaders)}},fb=class{constructor(e){this.apiClient=e||q.instance}deleteDiagnosticsLogcaptureBrowserUser(e,i){if(i=i||{},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"],i.customHeaders)}getDiagnosticsLogcaptureBrowserEntriesDownloadJob(e,i){if(i=i||{},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"],i.customHeaders)}getDiagnosticsLogcaptureBrowserUser(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}},wb=class{constructor(e){this.apiClient=e||q.instance}deleteMessagingSetting(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getMessagingSetting(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}patchMessagingSetting(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "messageSettingId" when calling patchMessagingSetting';if(i==null)throw'Missing the required parameter "body" when calling patchMessagingSetting';return this.apiClient.callApi("/api/v2/messaging/settings/{messageSettingId}","PATCH",{messageSettingId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchMessagingSupportedcontentSupportedContentId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "supportedContentId" when calling patchMessagingSupportedcontentSupportedContentId';if(i==null)throw'Missing the required parameter "body" when calling patchMessagingSupportedcontentSupportedContentId';return this.apiClient.callApi("/api/v2/messaging/supportedcontent/{supportedContentId}","PATCH",{supportedContentId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postMessagingSettings(e,i){if(i=i||{},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"],i.customHeaders)}postMessagingSupportedcontent(e,i){if(i=i||{},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"],i.customHeaders)}putMessagingSettingsDefault(e,i){if(i=i||{},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"],i.customHeaders)}},vb=class{constructor(e){this.apiClient=e||q.instance}deleteMobiledevice(e,i){if(i=i||{},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"],i.customHeaders)}getMobiledevice(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}putMobiledevice(e,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "deviceId" when calling putMobiledevice';return this.apiClient.callApi("/api/v2/mobiledevices/{deviceId}","PUT",{deviceId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}},Cb=class{constructor(e){this.apiClient=e||q.instance}deleteNotificationsChannelSubscriptions(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}postNotificationsChannelSubscriptions(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "channelId" when calling postNotificationsChannelSubscriptions';if(i==null)throw'Missing the required parameter "body" when calling postNotificationsChannelSubscriptions';return this.apiClient.callApi("/api/v2/notifications/channels/{channelId}/subscriptions","POST",{channelId:e},{ignoreErrors:n.ignoreErrors},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.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,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "channelId" when calling putNotificationsChannelSubscriptions';if(i==null)throw'Missing the required parameter "body" when calling putNotificationsChannelSubscriptions';return this.apiClient.callApi("/api/v2/notifications/channels/{channelId}/subscriptions","PUT",{channelId:e},{ignoreErrors:n.ignoreErrors},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}},Ab=class{constructor(e){this.apiClient=e||q.instance}deleteOauthClient(e,i){if(i=i||{},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"],i.customHeaders)}getOauthAuthorization(e,i){if(i=i||{},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":i.acceptLanguage},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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"],i.customHeaders)}getOauthClientUsageQueryResult(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "executionId" when calling getOauthClientUsageQueryResult';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getOauthClientUsageSummary(e,i){if(i=i||{},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:i.days},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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":i.acceptLanguage},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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"],i.customHeaders)}postOauthClientUsageQuery(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "clientId" when calling postOauthClientUsageQuery';if(i==null)throw'Missing the required parameter "body" when calling postOauthClientUsageQuery';return this.apiClient.callApi("/api/v2/oauth/clients/{clientId}/usage/query","POST",{clientId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postOauthClients(e,i){if(i=i||{},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"],i.customHeaders)}putOauthClient(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "clientId" when calling putOauthClient';if(i==null)throw'Missing the required parameter "body" when calling putOauthClient';return this.apiClient.callApi("/api/v2/oauth/clients/{clientId}","PUT",{clientId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}},bb=class{constructor(e){this.apiClient=e||q.instance}deleteAuthorizationDivision(e,i){if(i=i||{},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:i.force},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getAuthorizationDivision(e,i){if(i=i||{},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:i.objectCount},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "divisionId" when calling postAuthorizationDivisionObject';if(i==null||i==="")throw'Missing the required parameter "objectType" when calling postAuthorizationDivisionObject';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postAuthorizationDivisionRestore(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "divisionId" when calling postAuthorizationDivisionRestore';if(i==null)throw'Missing the required parameter "body" when calling postAuthorizationDivisionRestore';return this.apiClient.callApi("/api/v2/authorization/divisions/{divisionId}/restore","POST",{divisionId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postAuthorizationDivisions(e,i){if(i=i||{},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"],i.customHeaders)}putAuthorizationDivision(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "divisionId" when calling putAuthorizationDivision';if(i==null)throw'Missing the required parameter "body" when calling putAuthorizationDivision';return this.apiClient.callApi("/api/v2/authorization/divisions/{divisionId}","PUT",{divisionId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}},yb=class{constructor(e){this.apiClient=e||q.instance}getUsageEventsDefinition(e,i){if(i=i||{},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"],i.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)}},Pb=class{constructor(e){this.apiClient=e||q.instance}getFieldconfig(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getOrganizationsLimitsNamespaceDefaults(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}patchOrganizationsFeature(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "featureName" when calling patchOrganizationsFeature';if(i==null)throw'Missing the required parameter "enabled" when calling patchOrganizationsFeature';return this.apiClient.callApi("/api/v2/organizations/features/{featureName}","PATCH",{featureName:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putOrganizationsEmbeddedintegration(e,i){if(i=i||{},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"],i.customHeaders)}putOrganizationsIpaddressauthentication(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}},jb=class{constructor(e){this.apiClient=e||q.instance}deleteOrgauthorizationTrustee(e,i){if(i=i||{},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"],i.customHeaders)}deleteOrgauthorizationTrusteeCloneduser(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "trusteeOrgId" when calling deleteOrgauthorizationTrusteeCloneduser';if(i==null||i==="")throw'Missing the required parameter "trusteeUserId" when calling deleteOrgauthorizationTrusteeCloneduser';return this.apiClient.callApi("/api/v2/orgauthorization/trustees/{trusteeOrgId}/clonedusers/{trusteeUserId}","DELETE",{trusteeOrgId:e,trusteeUserId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteOrgauthorizationTrusteeGroup(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "trusteeOrgId" when calling deleteOrgauthorizationTrusteeGroup';if(i==null||i==="")throw'Missing the required parameter "trusteeGroupId" when calling deleteOrgauthorizationTrusteeGroup';return this.apiClient.callApi("/api/v2/orgauthorization/trustees/{trusteeOrgId}/groups/{trusteeGroupId}","DELETE",{trusteeOrgId:e,trusteeGroupId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteOrgauthorizationTrusteeGroupRoles(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "trusteeOrgId" when calling deleteOrgauthorizationTrusteeGroupRoles';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteOrgauthorizationTrusteeUser(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "trusteeOrgId" when calling deleteOrgauthorizationTrusteeUser';if(i==null||i==="")throw'Missing the required parameter "trusteeUserId" when calling deleteOrgauthorizationTrusteeUser';return this.apiClient.callApi("/api/v2/orgauthorization/trustees/{trusteeOrgId}/users/{trusteeUserId}","DELETE",{trusteeOrgId:e,trusteeUserId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteOrgauthorizationTrusteeUserRoles(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "trusteeOrgId" when calling deleteOrgauthorizationTrusteeUserRoles';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteOrgauthorizationTrustees(e,i){if(i=i||{},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"],i.customHeaders)}deleteOrgauthorizationTrustor(e,i){if(i=i||{},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"],i.customHeaders)}deleteOrgauthorizationTrustorCloneduser(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "trustorOrgId" when calling deleteOrgauthorizationTrustorCloneduser';if(i==null||i==="")throw'Missing the required parameter "trusteeUserId" when calling deleteOrgauthorizationTrustorCloneduser';return this.apiClient.callApi("/api/v2/orgauthorization/trustors/{trustorOrgId}/clonedusers/{trusteeUserId}","DELETE",{trustorOrgId:e,trusteeUserId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteOrgauthorizationTrustorGroup(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "trustorOrgId" when calling deleteOrgauthorizationTrustorGroup';if(i==null||i==="")throw'Missing the required parameter "trustorGroupId" when calling deleteOrgauthorizationTrustorGroup';return this.apiClient.callApi("/api/v2/orgauthorization/trustors/{trustorOrgId}/groups/{trustorGroupId}","DELETE",{trustorOrgId:e,trustorGroupId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteOrgauthorizationTrustorUser(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "trustorOrgId" when calling deleteOrgauthorizationTrustorUser';if(i==null||i==="")throw'Missing the required parameter "trusteeUserId" when calling deleteOrgauthorizationTrustorUser';return this.apiClient.callApi("/api/v2/orgauthorization/trustors/{trustorOrgId}/users/{trusteeUserId}","DELETE",{trustorOrgId:e,trusteeUserId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteOrgauthorizationTrustors(e,i){if(i=i||{},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"],i.customHeaders)}getOrgauthorizationPairing(e,i){if(i=i||{},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"],i.customHeaders)}getOrgauthorizationTrustee(e,i){if(i=i||{},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"],i.customHeaders)}getOrgauthorizationTrusteeClonedusers(e,i){if(i=i||{},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"],i.customHeaders)}getOrgauthorizationTrusteeGroup(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "trusteeOrgId" when calling getOrgauthorizationTrusteeGroup';if(i==null||i==="")throw'Missing the required parameter "trusteeGroupId" when calling getOrgauthorizationTrusteeGroup';return this.apiClient.callApi("/api/v2/orgauthorization/trustees/{trusteeOrgId}/groups/{trusteeGroupId}","GET",{trusteeOrgId:e,trusteeGroupId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getOrgauthorizationTrusteeGroupRoles(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "trusteeOrgId" when calling getOrgauthorizationTrusteeGroupRoles';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getOrgauthorizationTrusteeGroups(e,i){if(i=i||{},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:i.pageSize,pageNumber:i.pageNumber},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getOrgauthorizationTrusteeUser(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "trusteeOrgId" when calling getOrgauthorizationTrusteeUser';if(i==null||i==="")throw'Missing the required parameter "trusteeUserId" when calling getOrgauthorizationTrusteeUser';return this.apiClient.callApi("/api/v2/orgauthorization/trustees/{trusteeOrgId}/users/{trusteeUserId}","GET",{trusteeOrgId:e,trusteeUserId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getOrgauthorizationTrusteeUserRoles(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "trusteeOrgId" when calling getOrgauthorizationTrusteeUserRoles';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getOrgauthorizationTrusteeUsers(e,i){if(i=i||{},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:i.pageSize,pageNumber:i.pageNumber},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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"],i.customHeaders)}getOrgauthorizationTrustorCloneduser(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "trustorOrgId" when calling getOrgauthorizationTrustorCloneduser';if(i==null||i==="")throw'Missing the required parameter "trusteeUserId" when calling getOrgauthorizationTrustorCloneduser';return this.apiClient.callApi("/api/v2/orgauthorization/trustors/{trustorOrgId}/clonedusers/{trusteeUserId}","GET",{trustorOrgId:e,trusteeUserId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getOrgauthorizationTrustorClonedusers(e,i){if(i=i||{},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"],i.customHeaders)}getOrgauthorizationTrustorGroup(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "trustorOrgId" when calling getOrgauthorizationTrustorGroup';if(i==null||i==="")throw'Missing the required parameter "trustorGroupId" when calling getOrgauthorizationTrustorGroup';return this.apiClient.callApi("/api/v2/orgauthorization/trustors/{trustorOrgId}/groups/{trustorGroupId}","GET",{trustorOrgId:e,trustorGroupId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getOrgauthorizationTrustorGroups(e,i){if(i=i||{},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:i.pageSize,pageNumber:i.pageNumber},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getOrgauthorizationTrustorUser(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "trustorOrgId" when calling getOrgauthorizationTrustorUser';if(i==null||i==="")throw'Missing the required parameter "trusteeUserId" when calling getOrgauthorizationTrustorUser';return this.apiClient.callApi("/api/v2/orgauthorization/trustors/{trustorOrgId}/users/{trusteeUserId}","GET",{trustorOrgId:e,trusteeUserId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getOrgauthorizationTrustorUsers(e,i){if(i=i||{},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:i.pageSize,pageNumber:i.pageNumber},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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"],i.customHeaders)}postOrgauthorizationTrusteeGroups(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "trusteeOrgId" when calling postOrgauthorizationTrusteeGroups';if(i==null)throw'Missing the required parameter "body" when calling postOrgauthorizationTrusteeGroups';return this.apiClient.callApi("/api/v2/orgauthorization/trustees/{trusteeOrgId}/groups","POST",{trusteeOrgId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postOrgauthorizationTrusteeUsers(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "trusteeOrgId" when calling postOrgauthorizationTrusteeUsers';if(i==null)throw'Missing the required parameter "body" when calling postOrgauthorizationTrusteeUsers';return this.apiClient.callApi("/api/v2/orgauthorization/trustees/{trusteeOrgId}/users","POST",{trusteeOrgId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postOrgauthorizationTrustees(e,i){if(i=i||{},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"],i.customHeaders)}postOrgauthorizationTrusteesAudits(e,i){if(i=i||{},e==null)throw'Missing the required parameter "body" when calling postOrgauthorizationTrusteesAudits';return this.apiClient.callApi("/api/v2/orgauthorization/trustees/audits","POST",{},{pageSize:i.pageSize,pageNumber:i.pageNumber,sortBy:i.sortBy,sortOrder:i.sortOrder},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},e==null)throw'Missing the required parameter "body" when calling postOrgauthorizationTrustorAudits';return this.apiClient.callApi("/api/v2/orgauthorization/trustor/audits","POST",{},{pageSize:i.pageSize,pageNumber:i.pageNumber,sortBy:i.sortBy,sortOrder:i.sortOrder},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}putOrgauthorizationTrustee(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "trusteeOrgId" when calling putOrgauthorizationTrustee';if(i==null)throw'Missing the required parameter "body" when calling putOrgauthorizationTrustee';return this.apiClient.callApi("/api/v2/orgauthorization/trustees/{trusteeOrgId}","PUT",{trusteeOrgId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putOrgauthorizationTrusteeGroupRoledivisions(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "trusteeOrgId" when calling putOrgauthorizationTrusteeGroupRoledivisions';if(i==null||i==="")throw'Missing the required parameter "trusteeGroupId" when calling putOrgauthorizationTrusteeGroupRoledivisions';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}putOrgauthorizationTrusteeGroupRoles(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "trusteeOrgId" when calling putOrgauthorizationTrusteeGroupRoles';if(i==null||i==="")throw'Missing the required parameter "trusteeGroupId" when calling putOrgauthorizationTrusteeGroupRoles';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}putOrgauthorizationTrusteeUserRoledivisions(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "trusteeOrgId" when calling putOrgauthorizationTrusteeUserRoledivisions';if(i==null||i==="")throw'Missing the required parameter "trusteeUserId" when calling putOrgauthorizationTrusteeUserRoledivisions';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}putOrgauthorizationTrusteeUserRoles(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "trusteeOrgId" when calling putOrgauthorizationTrusteeUserRoles';if(i==null||i==="")throw'Missing the required parameter "trusteeUserId" when calling putOrgauthorizationTrusteeUserRoles';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}putOrgauthorizationTrustorCloneduser(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "trustorOrgId" when calling putOrgauthorizationTrustorCloneduser';if(i==null||i==="")throw'Missing the required parameter "trusteeUserId" when calling putOrgauthorizationTrustorCloneduser';return this.apiClient.callApi("/api/v2/orgauthorization/trustors/{trustorOrgId}/clonedusers/{trusteeUserId}","PUT",{trustorOrgId:e,trusteeUserId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putOrgauthorizationTrustorGroup(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "trustorOrgId" when calling putOrgauthorizationTrustorGroup';if(i==null||i==="")throw'Missing the required parameter "trustorGroupId" when calling putOrgauthorizationTrustorGroup';return this.apiClient.callApi("/api/v2/orgauthorization/trustors/{trustorOrgId}/groups/{trustorGroupId}","PUT",{trustorOrgId:e,trustorGroupId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putOrgauthorizationTrustorUser(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "trustorOrgId" when calling putOrgauthorizationTrustorUser';if(i==null||i==="")throw'Missing the required parameter "trusteeUserId" when calling putOrgauthorizationTrustorUser';return this.apiClient.callApi("/api/v2/orgauthorization/trustors/{trustorOrgId}/users/{trusteeUserId}","PUT",{trustorOrgId:e,trusteeUserId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}},Sb=class{constructor(e){this.apiClient=e||q.instance}deleteOutboundAttemptlimit(e,i){if(i=i||{},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"],i.customHeaders)}deleteOutboundCallabletimeset(e,i){if(i=i||{},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"],i.customHeaders)}deleteOutboundCallanalysisresponseset(e,i){if(i=i||{},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"],i.customHeaders)}deleteOutboundCampaign(e,i){if(i=i||{},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"],i.customHeaders)}deleteOutboundCampaignProgress(e,i){if(i=i||{},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"],i.customHeaders)}deleteOutboundCampaignrule(e,i){if(i=i||{},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"],i.customHeaders)}deleteOutboundContactlist(e,i){if(i=i||{},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"],i.customHeaders)}deleteOutboundContactlistContact(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "contactListId" when calling deleteOutboundContactlistContact';if(i==null||i==="")throw'Missing the required parameter "contactId" when calling deleteOutboundContactlistContact';return this.apiClient.callApi("/api/v2/outbound/contactlists/{contactListId}/contacts/{contactId}","DELETE",{contactListId:e,contactId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteOutboundContactlistContacts(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "contactListId" when calling deleteOutboundContactlistContacts';if(i==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(i,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteOutboundContactlistfilter(e,i){if(i=i||{},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"],i.customHeaders)}deleteOutboundContactlists(e,i){if(i=i||{},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"],i.customHeaders)}deleteOutboundContactlisttemplate(e,i){if(i=i||{},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"],i.customHeaders)}deleteOutboundContactlisttemplates(e,i){if(i=i||{},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"],i.customHeaders)}deleteOutboundDigitalruleset(e,i){if(i=i||{},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"],i.customHeaders)}deleteOutboundDnclist(e,i){if(i=i||{},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"],i.customHeaders)}deleteOutboundDnclistCustomexclusioncolumns(e,i){if(i=i||{},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:i.expiredOnly},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}deleteOutboundDnclistEmailaddresses(e,i){if(i=i||{},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:i.expiredOnly},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}deleteOutboundDnclistPhonenumbers(e,i){if(i=i||{},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:i.expiredOnly},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}deleteOutboundDnclistWhatsappnumbers(e,i){if(i=i||{},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:i.expiredOnly},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}deleteOutboundFilespecificationtemplate(e,i){if(i=i||{},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"],i.customHeaders)}deleteOutboundFilespecificationtemplatesBulk(e,i){if(i=i||{},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"],i.customHeaders)}deleteOutboundImporttemplate(e,i){if(i=i||{},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"],i.customHeaders)}deleteOutboundImporttemplates(e,i){if(i=i||{},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"],i.customHeaders)}deleteOutboundMessagingcampaign(e,i){if(i=i||{},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"],i.customHeaders)}deleteOutboundMessagingcampaignProgress(e,i){if(i=i||{},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"],i.customHeaders)}deleteOutboundRuleset(e,i){if(i=i||{},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"],i.customHeaders)}deleteOutboundSchedulesCampaign(e,i){if(i=i||{},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"],i.customHeaders)}deleteOutboundSchedulesEmailcampaign(e,i){if(i=i||{},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"],i.customHeaders)}deleteOutboundSchedulesMessagingcampaign(e,i){if(i=i||{},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"],i.customHeaders)}deleteOutboundSchedulesSequence(e,i){if(i=i||{},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"],i.customHeaders)}deleteOutboundSchedulesWhatsappcampaign(e,i){if(i=i||{},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"],i.customHeaders)}deleteOutboundSequence(e,i){if(i=i||{},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"],i.customHeaders)}getOutboundAttemptlimit(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getOutboundCampaignAgentownedmappingpreviewResults(e,i){if(i=i||{},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"],i.customHeaders)}getOutboundCampaignDiagnostics(e,i){if(i=i||{},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"],i.customHeaders)}getOutboundCampaignInteractions(e,i){if(i=i||{},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"],i.customHeaders)}getOutboundCampaignLinedistribution(e,i){if(i=i||{},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:i.includeOnlyActiveCampaigns,edgeGroupId:i.edgeGroupId,siteId:i.siteId,useWeight:i.useWeight,relativeWeight:i.relativeWeight,outboundLineCount:i.outboundLineCount},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getOutboundCampaignProgress(e,i){if(i=i||{},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"],i.customHeaders)}getOutboundCampaignSkillcombinations(e,i){if(i=i||{},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:i.pageNumber,pageSize:i.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getOutboundCampaignStats(e,i){if(i=i||{},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"],i.customHeaders)}getOutboundCampaignrule(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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:i.includeImportStatus,includeSize:i.includeSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getOutboundContactlistContact(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "contactListId" when calling getOutboundContactlistContact';if(i==null||i==="")throw'Missing the required parameter "contactId" when calling getOutboundContactlistContact';return this.apiClient.callApi("/api/v2/outbound/contactlists/{contactListId}/contacts/{contactId}","GET",{contactListId:e,contactId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getOutboundContactlistContactsBulkJob(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "contactListId" when calling getOutboundContactlistContactsBulkJob';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getOutboundContactlistContactsBulkJobs(e,i){if(i=i||{},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"],i.customHeaders)}getOutboundContactlistExport(e,i){if(i=i||{},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:i.download},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getOutboundContactlistImportstatus(e,i){if(i=i||{},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"],i.customHeaders)}getOutboundContactlistTimezonemappingpreview(e,i){if(i=i||{},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"],i.customHeaders)}getOutboundContactlistfilter(e,i){if(i=i||{},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"],i.customHeaders)}getOutboundContactlistfilters(e){return e=e||{},this.apiClient.callApi("/api/v2/outbound/contactlistfilters","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,allowEmptyResult:e.allowEmptyResult,filterType:e.filterType,name:e.name,sortBy:e.sortBy,sortOrder:e.sortOrder,contactListId:e.contactListId},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getOutboundContactlists(e){return e=e||{},this.apiClient.callApi("/api/v2/outbound/contactlists","GET",{},{includeImportStatus:e.includeImportStatus,includeSize:e.includeSize,pageSize:e.pageSize,pageNumber:e.pageNumber,allowEmptyResult:e.allowEmptyResult,filterType:e.filterType,name:e.name,id:this.apiClient.buildCollectionParam(e.id,"multi"),divisionId:this.apiClient.buildCollectionParam(e.divisionId,"multi"),sortBy:e.sortBy,sortOrder:e.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getOutboundContactlistsDivisionview(e,i){if(i=i||{},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:i.includeImportStatus,includeSize:i.includeSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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"],i.customHeaders)}getOutboundContactlisttemplates(e){return e=e||{},this.apiClient.callApi("/api/v2/outbound/contactlisttemplates","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,allowEmptyResult:e.allowEmptyResult,filterType:e.filterType,name:e.name,sortBy:e.sortBy,sortOrder:e.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getOutboundDiagnosticsCampaignSummary(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "campaignId" when calling getOutboundDiagnosticsCampaignSummary';if(i==null)throw'Missing the required parameter "start" when calling getOutboundDiagnosticsCampaignSummary';if(n==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:i,end:n},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getOutboundDigitalruleset(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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:i.includeImportStatus,includeSize:i.includeSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getOutboundDnclistExport(e,i){if(i=i||{},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:i.download},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getOutboundDnclistImportstatus(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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:i.includeImportStatus,includeSize:i.includeSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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:i.includeImportStatus},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getOutboundImporttemplateImportstatus(e,i){if(i=i||{},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:i.listNamePrefix},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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"],i.customHeaders)}getOutboundMessagingcampaignDiagnostics(e,i){if(i=i||{},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"],i.customHeaders)}getOutboundMessagingcampaignProgress(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "campaignId" when calling patchOutboundCampaign';if(i==null)throw'Missing the required parameter "body" when calling patchOutboundCampaign';return this.apiClient.callApi("/api/v2/outbound/campaigns/{campaignId}","PATCH",{campaignId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchOutboundDnclistCustomexclusioncolumns(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "dncListId" when calling patchOutboundDnclistCustomexclusioncolumns';if(i==null)throw'Missing the required parameter "body" when calling patchOutboundDnclistCustomexclusioncolumns';return this.apiClient.callApi("/api/v2/outbound/dnclists/{dncListId}/customexclusioncolumns","PATCH",{dncListId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchOutboundDnclistEmailaddresses(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "dncListId" when calling patchOutboundDnclistEmailaddresses';if(i==null)throw'Missing the required parameter "body" when calling patchOutboundDnclistEmailaddresses';return this.apiClient.callApi("/api/v2/outbound/dnclists/{dncListId}/emailaddresses","PATCH",{dncListId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchOutboundDnclistPhonenumbers(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "dncListId" when calling patchOutboundDnclistPhonenumbers';if(i==null)throw'Missing the required parameter "body" when calling patchOutboundDnclistPhonenumbers';return this.apiClient.callApi("/api/v2/outbound/dnclists/{dncListId}/phonenumbers","PATCH",{dncListId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchOutboundDnclistWhatsappnumbers(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "dncListId" when calling patchOutboundDnclistWhatsappnumbers';if(i==null)throw'Missing the required parameter "body" when calling patchOutboundDnclistWhatsappnumbers';return this.apiClient.callApi("/api/v2/outbound/dnclists/{dncListId}/whatsappnumbers","PATCH",{dncListId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchOutboundSettings(e,i){if(i=i||{},e==null)throw'Missing the required parameter "body" when calling patchOutboundSettings';return this.apiClient.callApi("/api/v2/outbound/settings","PATCH",{},{useMaxCallsPerAgentDecimal:i.useMaxCallsPerAgentDecimal},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postOutboundAttemptlimits(e,i){if(i=i||{},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"],i.customHeaders)}postOutboundCallabletimesets(e,i){if(i=i||{},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"],i.customHeaders)}postOutboundCallanalysisresponsesets(e,i){if(i=i||{},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"],i.customHeaders)}postOutboundCampaignAgentownedmappingpreview(e,i){if(i=i||{},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"],i.customHeaders)}postOutboundCampaignCallbackSchedule(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "campaignId" when calling postOutboundCampaignCallbackSchedule';if(i==null)throw'Missing the required parameter "body" when calling postOutboundCampaignCallbackSchedule';return this.apiClient.callApi("/api/v2/outbound/campaigns/{campaignId}/callback/schedule","POST",{campaignId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postOutboundCampaignStart(e,i){if(i=i||{},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"],i.customHeaders)}postOutboundCampaignStop(e,i){if(i=i||{},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"],i.customHeaders)}postOutboundCampaignrules(e,i){if(i=i||{},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"],i.customHeaders)}postOutboundCampaigns(e,i){if(i=i||{},e==null)throw'Missing the required parameter "body" when calling postOutboundCampaigns';return this.apiClient.callApi("/api/v2/outbound/campaigns","POST",{},{useMaxCallsPerAgentDecimal:i.useMaxCallsPerAgentDecimal},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postOutboundCampaignsPerformanceQuery(e,i){if(i=i||{},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"],i.customHeaders)}postOutboundCampaignsProgress(e,i){if(i=i||{},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"],i.customHeaders)}postOutboundContactlistClear(e,i){if(i=i||{},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"],i.customHeaders)}postOutboundContactlistContacts(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "contactListId" when calling postOutboundContactlistContacts';if(i==null)throw'Missing the required parameter "body" when calling postOutboundContactlistContacts';return this.apiClient.callApi("/api/v2/outbound/contactlists/{contactListId}/contacts","POST",{contactListId:e},{priority:n.priority,clearSystemData:n.clearSystemData,doNotQueue:n.doNotQueue},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postOutboundContactlistContactsBulk(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "contactListId" when calling postOutboundContactlistContactsBulk';if(i==null)throw'Missing the required parameter "body" when calling postOutboundContactlistContactsBulk';return this.apiClient.callApi("/api/v2/outbound/contactlists/{contactListId}/contacts/bulk","POST",{contactListId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postOutboundContactlistContactsBulkRemove(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "contactListId" when calling postOutboundContactlistContactsBulkRemove';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postOutboundContactlistContactsBulkUpdate(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "contactListId" when calling postOutboundContactlistContactsBulkUpdate';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postOutboundContactlistContactsSearch(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "contactListId" when calling postOutboundContactlistContactsSearch';if(i==null)throw'Missing the required parameter "body" when calling postOutboundContactlistContactsSearch';return this.apiClient.callApi("/api/v2/outbound/contactlists/{contactListId}/contacts/search","POST",{contactListId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postOutboundContactlistExport(e,i){if(i=i||{},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},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postOutboundContactlistfilters(e,i){if(i=i||{},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"],i.customHeaders)}postOutboundContactlistfiltersBulkRetrieve(e,i){if(i=i||{},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"],i.customHeaders)}postOutboundContactlistfiltersPreview(e,i){if(i=i||{},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"],i.customHeaders)}postOutboundContactlists(e,i){if(i=i||{},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"],i.customHeaders)}postOutboundContactlistsUploads(e,i){if(i=i||{},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"],i.customHeaders)}postOutboundContactlisttemplates(e,i){if(i=i||{},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"],i.customHeaders)}postOutboundContactlisttemplatesBulkAdd(e,i){if(i=i||{},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"],i.customHeaders)}postOutboundContactlisttemplatesBulkRetrieve(e,i){if(i=i||{},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"],i.customHeaders)}postOutboundConversationDnc(e,i){if(i=i||{},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"],i.customHeaders)}postOutboundDigitalrulesets(e,i){if(i=i||{},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"],i.customHeaders)}postOutboundDnclistEmailaddresses(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "dncListId" when calling postOutboundDnclistEmailaddresses';if(i==null)throw'Missing the required parameter "body" when calling postOutboundDnclistEmailaddresses';return this.apiClient.callApi("/api/v2/outbound/dnclists/{dncListId}/emailaddresses","POST",{dncListId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postOutboundDnclistExport(e,i){if(i=i||{},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"],i.customHeaders)}postOutboundDnclistPhonenumbers(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "dncListId" when calling postOutboundDnclistPhonenumbers';if(i==null)throw'Missing the required parameter "body" when calling postOutboundDnclistPhonenumbers';return this.apiClient.callApi("/api/v2/outbound/dnclists/{dncListId}/phonenumbers","POST",{dncListId:e},{expirationDateTime:n.expirationDateTime},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postOutboundDnclists(e,i){if(i=i||{},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"],i.customHeaders)}postOutboundDnclistsUploads(e,i){if(i=i||{},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"],i.customHeaders)}postOutboundFilespecificationtemplates(e,i){if(i=i||{},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"],i.customHeaders)}postOutboundImporttemplates(e,i){if(i=i||{},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"],i.customHeaders)}postOutboundImporttemplatesBulkAdd(e,i){if(i=i||{},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"],i.customHeaders)}postOutboundMessagingcampaignStart(e,i){if(i=i||{},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"],i.customHeaders)}postOutboundMessagingcampaignStop(e,i){if(i=i||{},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"],i.customHeaders)}postOutboundMessagingcampaigns(e,i){if(i=i||{},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"],i.customHeaders)}postOutboundMessagingcampaignsProgress(e,i){if(i=i||{},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"],i.customHeaders)}postOutboundRulesets(e,i){if(i=i||{},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"],i.customHeaders)}postOutboundSequences(e,i){if(i=i||{},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"],i.customHeaders)}putOutboundAttemptlimit(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "attemptLimitsId" when calling putOutboundAttemptlimit';if(i==null)throw'Missing the required parameter "body" when calling putOutboundAttemptlimit';return this.apiClient.callApi("/api/v2/outbound/attemptlimits/{attemptLimitsId}","PUT",{attemptLimitsId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putOutboundCallabletimeset(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "callableTimeSetId" when calling putOutboundCallabletimeset';if(i==null)throw'Missing the required parameter "body" when calling putOutboundCallabletimeset';return this.apiClient.callApi("/api/v2/outbound/callabletimesets/{callableTimeSetId}","PUT",{callableTimeSetId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putOutboundCallanalysisresponseset(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "callAnalysisSetId" when calling putOutboundCallanalysisresponseset';if(i==null)throw'Missing the required parameter "body" when calling putOutboundCallanalysisresponseset';return this.apiClient.callApi("/api/v2/outbound/callanalysisresponsesets/{callAnalysisSetId}","PUT",{callAnalysisSetId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putOutboundCampaign(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "campaignId" when calling putOutboundCampaign';if(i==null)throw'Missing the required parameter "body" when calling putOutboundCampaign';return this.apiClient.callApi("/api/v2/outbound/campaigns/{campaignId}","PUT",{campaignId:e},{useMaxCallsPerAgentDecimal:n.useMaxCallsPerAgentDecimal},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putOutboundCampaignAgent(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "campaignId" when calling putOutboundCampaignAgent';if(i==null||i==="")throw'Missing the required parameter "userId" when calling putOutboundCampaignAgent';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}putOutboundCampaignrule(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "campaignRuleId" when calling putOutboundCampaignrule';if(i==null)throw'Missing the required parameter "body" when calling putOutboundCampaignrule';return this.apiClient.callApi("/api/v2/outbound/campaignrules/{campaignRuleId}","PUT",{campaignRuleId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putOutboundContactlist(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "contactListId" when calling putOutboundContactlist';if(i==null)throw'Missing the required parameter "body" when calling putOutboundContactlist';return this.apiClient.callApi("/api/v2/outbound/contactlists/{contactListId}","PUT",{contactListId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putOutboundContactlistContact(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "contactListId" when calling putOutboundContactlistContact';if(i==null||i==="")throw'Missing the required parameter "contactId" when calling putOutboundContactlistContact';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}putOutboundContactlistfilter(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "contactListFilterId" when calling putOutboundContactlistfilter';if(i==null)throw'Missing the required parameter "body" when calling putOutboundContactlistfilter';return this.apiClient.callApi("/api/v2/outbound/contactlistfilters/{contactListFilterId}","PUT",{contactListFilterId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putOutboundContactlisttemplate(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "contactListTemplateId" when calling putOutboundContactlisttemplate';if(i==null)throw'Missing the required parameter "body" when calling putOutboundContactlisttemplate';return this.apiClient.callApi("/api/v2/outbound/contactlisttemplates/{contactListTemplateId}","PUT",{contactListTemplateId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putOutboundDigitalruleset(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "digitalRuleSetId" when calling putOutboundDigitalruleset';if(i==null)throw'Missing the required parameter "body" when calling putOutboundDigitalruleset';return this.apiClient.callApi("/api/v2/outbound/digitalrulesets/{digitalRuleSetId}","PUT",{digitalRuleSetId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putOutboundDnclist(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "dncListId" when calling putOutboundDnclist';if(i==null)throw'Missing the required parameter "body" when calling putOutboundDnclist';return this.apiClient.callApi("/api/v2/outbound/dnclists/{dncListId}","PUT",{dncListId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putOutboundFilespecificationtemplate(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "fileSpecificationTemplateId" when calling putOutboundFilespecificationtemplate';if(i==null)throw'Missing the required parameter "body" when calling putOutboundFilespecificationtemplate';return this.apiClient.callApi("/api/v2/outbound/filespecificationtemplates/{fileSpecificationTemplateId}","PUT",{fileSpecificationTemplateId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putOutboundImporttemplate(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "importTemplateId" when calling putOutboundImporttemplate';if(i==null)throw'Missing the required parameter "body" when calling putOutboundImporttemplate';return this.apiClient.callApi("/api/v2/outbound/importtemplates/{importTemplateId}","PUT",{importTemplateId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putOutboundMessagingcampaign(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "messagingCampaignId" when calling putOutboundMessagingcampaign';if(i==null)throw'Missing the required parameter "body" when calling putOutboundMessagingcampaign';return this.apiClient.callApi("/api/v2/outbound/messagingcampaigns/{messagingCampaignId}","PUT",{messagingCampaignId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putOutboundRuleset(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "ruleSetId" when calling putOutboundRuleset';if(i==null)throw'Missing the required parameter "body" when calling putOutboundRuleset';return this.apiClient.callApi("/api/v2/outbound/rulesets/{ruleSetId}","PUT",{ruleSetId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putOutboundSchedulesCampaign(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "campaignId" when calling putOutboundSchedulesCampaign';if(i==null)throw'Missing the required parameter "body" when calling putOutboundSchedulesCampaign';return this.apiClient.callApi("/api/v2/outbound/schedules/campaigns/{campaignId}","PUT",{campaignId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putOutboundSchedulesEmailcampaign(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "emailCampaignId" when calling putOutboundSchedulesEmailcampaign';if(i==null)throw'Missing the required parameter "body" when calling putOutboundSchedulesEmailcampaign';return this.apiClient.callApi("/api/v2/outbound/schedules/emailcampaigns/{emailCampaignId}","PUT",{emailCampaignId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putOutboundSchedulesMessagingcampaign(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "messagingCampaignId" when calling putOutboundSchedulesMessagingcampaign';if(i==null)throw'Missing the required parameter "body" when calling putOutboundSchedulesMessagingcampaign';return this.apiClient.callApi("/api/v2/outbound/schedules/messagingcampaigns/{messagingCampaignId}","PUT",{messagingCampaignId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putOutboundSchedulesSequence(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "sequenceId" when calling putOutboundSchedulesSequence';if(i==null)throw'Missing the required parameter "body" when calling putOutboundSchedulesSequence';return this.apiClient.callApi("/api/v2/outbound/schedules/sequences/{sequenceId}","PUT",{sequenceId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putOutboundSchedulesWhatsappcampaign(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "whatsAppCampaignId" when calling putOutboundSchedulesWhatsappcampaign';if(i==null)throw'Missing the required parameter "body" when calling putOutboundSchedulesWhatsappcampaign';return this.apiClient.callApi("/api/v2/outbound/schedules/whatsappcampaigns/{whatsAppCampaignId}","PUT",{whatsAppCampaignId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putOutboundSequence(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "sequenceId" when calling putOutboundSequence';if(i==null)throw'Missing the required parameter "body" when calling putOutboundSequence';return this.apiClient.callApi("/api/v2/outbound/sequences/{sequenceId}","PUT",{sequenceId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putOutboundWrapupcodemappings(e,i){if(i=i||{},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"],i.customHeaders)}},Ob=class{constructor(e){this.apiClient=e||q.instance}deletePresenceDefinition0(e,i){if(i=i||{},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"],i.customHeaders)}deletePresenceSource(e,i){if(i=i||{},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"],i.customHeaders)}deletePresencedefinition(e,i){if(i=i||{},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"],i.customHeaders)}getPresenceDefinition0(e,i){if(i=i||{},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:i.localeCode},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getPresencedefinition(e,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "presenceId" when calling getPresencedefinition';return this.apiClient.callApi("/api/v2/presencedefinitions/{presenceId}","GET",{presenceId:e},{localeCode:i.localeCode},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling getUserPresence';if(i==null||i==="")throw'Missing the required parameter "sourceId" when calling getUserPresence';return this.apiClient.callApi("/api/v2/users/{userId}/presences/{sourceId}","GET",{userId:e,sourceId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getUserPresencesPurecloud(e,i){if(i=i||{},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"],i.customHeaders)}getUsersPresenceBulk(e,i){if(i=i||{},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(i.id,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "userId" when calling patchUserPresence';if(i==null||i==="")throw'Missing the required parameter "sourceId" when calling patchUserPresence';if(n==null)throw'Missing the required parameter "body" when calling patchUserPresence';return this.apiClient.callApi("/api/v2/users/{userId}/presences/{sourceId}","PATCH",{userId:e,sourceId:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchUserPresencesPurecloud(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling patchUserPresencesPurecloud';if(i==null)throw'Missing the required parameter "body" when calling patchUserPresencesPurecloud';return this.apiClient.callApi("/api/v2/users/{userId}/presences/purecloud","PATCH",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postPresenceDefinitions0(e,i){if(i=i||{},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"],i.customHeaders)}postPresenceSources(e,i){if(i=i||{},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"],i.customHeaders)}postPresencedefinitions(e,i){if(i=i||{},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"],i.customHeaders)}putPresenceDefinition0(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "definitionId" when calling putPresenceDefinition0';if(i==null)throw'Missing the required parameter "body" when calling putPresenceDefinition0';return this.apiClient.callApi("/api/v2/presence/definitions/{definitionId}","PUT",{definitionId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putPresenceSettings(e,i){if(i=i||{},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"],i.customHeaders)}putPresenceSource(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "sourceId" when calling putPresenceSource';if(i==null)throw'Missing the required parameter "body" when calling putPresenceSource';return this.apiClient.callApi("/api/v2/presence/sources/{sourceId}","PUT",{sourceId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putPresenceUserPrimarysource(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling putPresenceUserPrimarysource';if(i==null)throw'Missing the required parameter "body" when calling putPresenceUserPrimarysource';return this.apiClient.callApi("/api/v2/presence/users/{userId}/primarysource","PUT",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putPresencedefinition(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "presenceId" when calling putPresencedefinition';if(i==null)throw'Missing the required parameter "body" when calling putPresencedefinition';return this.apiClient.callApi("/api/v2/presencedefinitions/{presenceId}","PUT",{presenceId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putUsersPresencesBulk(e,i){if(i=i||{},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"],i.customHeaders)}},xb=class{constructor(e){this.apiClient=e||q.instance}deleteProcessautomationScheduledtrigger(e,i){if(i=i||{},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"],i.customHeaders)}deleteProcessautomationTrigger(e,i){if(i=i||{},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"],i.customHeaders)}getProcessautomationScheduledtrigger(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}postProcessautomationTriggerTest(e,i){if(i=i||{},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},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postProcessautomationTriggers(e,i){if(i=i||{},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"],i.customHeaders)}postProcessautomationTriggersTopicTest(e,i){if(i=i||{},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},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}putProcessautomationScheduledtrigger(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "scheduledTriggerId" when calling putProcessautomationScheduledtrigger';if(i==null)throw'Missing the required parameter "body" when calling putProcessautomationScheduledtrigger';return this.apiClient.callApi("/api/v2/processautomation/scheduledtriggers/{scheduledTriggerId}","PUT",{scheduledTriggerId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putProcessautomationTrigger(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "triggerId" when calling putProcessautomationTrigger';if(i==null)throw'Missing the required parameter "body" when calling putProcessautomationTrigger';return this.apiClient.callApi("/api/v2/processautomation/triggers/{triggerId}","PUT",{triggerId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}},Tb=class{constructor(e){this.apiClient=e||q.instance}deleteAnalyticsEvaluationsAggregatesJob(e,i){if(i=i||{},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"],i.customHeaders)}deleteAnalyticsSurveysAggregatesJob(e,i){if(i=i||{},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"],i.customHeaders)}deleteQualityCalibration(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "calibrationId" when calling deleteQualityCalibration';if(i==null)throw'Missing the required parameter "calibratorId" when calling deleteQualityCalibration';return this.apiClient.callApi("/api/v2/quality/calibrations/{calibrationId}","DELETE",{calibrationId:e},{calibratorId:i},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteQualityConversationEvaluation(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling deleteQualityConversationEvaluation';if(i==null||i==="")throw'Missing the required parameter "evaluationId" when calling deleteQualityConversationEvaluation';return this.apiClient.callApi("/api/v2/quality/conversations/{conversationId}/evaluations/{evaluationId}","DELETE",{conversationId:e,evaluationId:i},{expand:n.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteQualityForm(e,i){if(i=i||{},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"],i.customHeaders)}deleteQualityFormsEvaluation(e,i){if(i=i||{},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"],i.customHeaders)}deleteQualityFormsSurvey(e,i){if(i=i||{},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"],i.customHeaders)}deleteQualityProgramAgentscoringrule(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "programId" when calling deleteQualityProgramAgentscoringrule';if(i==null||i==="")throw'Missing the required parameter "ruleId" when calling deleteQualityProgramAgentscoringrule';return this.apiClient.callApi("/api/v2/quality/programs/{programId}/agentscoringrules/{ruleId}","DELETE",{programId:e,ruleId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getAnalyticsEvaluationsAggregatesJob(e,i){if(i=i||{},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"],i.customHeaders)}getAnalyticsEvaluationsAggregatesJobResults(e,i){if(i=i||{},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:i.cursor},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getAnalyticsSurveysAggregatesJob(e,i){if(i=i||{},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"],i.customHeaders)}getAnalyticsSurveysAggregatesJobResults(e,i){if(i=i||{},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:i.cursor},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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:i.calibratorId,conversationId:i.conversationId},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getQualityCalibrations(e,i){if(i=i||{},e==null)throw'Missing the required parameter "calibratorId" when calling getQualityCalibrations';return this.apiClient.callApi("/api/v2/quality/calibrations","GET",{},{pageSize:i.pageSize,pageNumber:i.pageNumber,sortBy:i.sortBy,expand:this.apiClient.buildCollectionParam(i.expand,"multi"),nextPage:i.nextPage,previousPage:i.previousPage,conversationId:i.conversationId,startTime:i.startTime,endTime:i.endTime,calibratorId:e},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getQualityConversationEvaluation(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getQualityConversationEvaluation';if(i==null||i==="")throw'Missing the required parameter "evaluationId" when calling getQualityConversationEvaluation';return this.apiClient.callApi("/api/v2/quality/conversations/{conversationId}/evaluations/{evaluationId}","GET",{conversationId:e,evaluationId:i},{expand:n.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getQualityConversationSurveys(e,i){if(i=i||{},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"],i.customHeaders)}getQualityConversationsAuditsQueryTransactionId(e,i){if(i=i||{},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"],i.customHeaders)}getQualityConversationsAuditsQueryTransactionIdResults(e,i){if(i=i||{},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:i.cursor,pageSize:i.pageSize,expand:this.apiClient.buildCollectionParam(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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"],i.customHeaders)}getQualityFormVersions(e,i){if(i=i||{},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:i.pageSize,pageNumber:i.pageNumber,sortOrder:i.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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"],i.customHeaders)}getQualityFormsEvaluationVersions(e,i){if(i=i||{},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:i.pageSize,pageNumber:i.pageNumber,sortOrder:i.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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:i.includeLatestVersionFormName},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getQualityFormsEvaluationsBulkContexts(e,i){if(i=i||{},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"],i.customHeaders)}getQualityFormsSurvey(e,i){if(i=i||{},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"],i.customHeaders)}getQualityFormsSurveyVersions(e,i){if(i=i||{},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:i.pageSize,pageNumber:i.pageNumber},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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"],i.customHeaders)}getQualityFormsSurveysBulkContexts(e,i){if(i=i||{},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:i.published},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getQualityProgramAgentscoringrule(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "programId" when calling getQualityProgramAgentscoringrule';if(i==null||i==="")throw'Missing the required parameter "ruleId" when calling getQualityProgramAgentscoringrule';return this.apiClient.callApi("/api/v2/quality/programs/{programId}/agentscoringrules/{ruleId}","GET",{programId:e,ruleId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getQualityProgramAgentscoringrules(e,i){if(i=i||{},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"],i.customHeaders)}getQualityPublishedform(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getQualityPublishedformsEvaluations(e){return e=e||{},this.apiClient.callApi("/api/v2/quality/publishedforms/evaluations","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,name:e.name,onlyLatestPerContext:e.onlyLatestPerContext},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getQualityPublishedformsSurvey(e,i){if(i=i||{},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"],i.customHeaders)}getQualityPublishedformsSurveys(e){return e=e||{},this.apiClient.callApi("/api/v2/quality/publishedforms/surveys","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,name:e.name,onlyLatestEnabledPerContext:e.onlyLatestEnabledPerContext},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getQualitySurvey(e,i){if(i=i||{},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"],i.customHeaders)}getQualitySurveysScorable(e,i){if(i=i||{},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"],i.customHeaders)}patchQualityFormsSurvey(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "formId" when calling patchQualityFormsSurvey';if(i==null)throw'Missing the required parameter "body" when calling patchQualityFormsSurvey';return this.apiClient.callApi("/api/v2/quality/forms/surveys/{formId}","PATCH",{formId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postAnalyticsEvaluationsAggregatesJobs(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsEvaluationsAggregatesQuery(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsSurveysAggregatesJobs(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsSurveysAggregatesQuery(e,i){if(i=i||{},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"],i.customHeaders)}postQualityCalibrations(e,i){if(i=i||{},e==null)throw'Missing the required parameter "body" when calling postQualityCalibrations';return this.apiClient.callApi("/api/v2/quality/calibrations","POST",{},{expand:i.expand},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postQualityConversationEvaluations(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postQualityConversationEvaluations';if(i==null)throw'Missing the required parameter "body" when calling postQualityConversationEvaluations';return this.apiClient.callApi("/api/v2/quality/conversations/{conversationId}/evaluations","POST",{conversationId:e},{expand:n.expand},{"Idempotency-Key":n.idempotencyKey},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postQualityConversationsAuditsQuery(e,i){if(i=i||{},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"],i.customHeaders)}postQualityEvaluationsAggregatesQueryMe(e,i){if(i=i||{},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"],i.customHeaders)}postQualityEvaluationsScoring(e,i){if(i=i||{},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"],i.customHeaders)}postQualityEvaluationsSearch(e,i){if(i=i||{},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"],i.customHeaders)}postQualityForms(e,i){if(i=i||{},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"],i.customHeaders)}postQualityFormsEvaluations(e,i){if(i=i||{},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"],i.customHeaders)}postQualityFormsSurveys(e,i){if(i=i||{},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"],i.customHeaders)}postQualityProgramAgentscoringrules(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "programId" when calling postQualityProgramAgentscoringrules';if(i==null)throw'Missing the required parameter "body" when calling postQualityProgramAgentscoringrules';return this.apiClient.callApi("/api/v2/quality/programs/{programId}/agentscoringrules","POST",{programId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postQualityPublishedforms(e,i){if(i=i||{},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"],i.customHeaders)}postQualityPublishedformsEvaluations(e,i){if(i=i||{},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"],i.customHeaders)}postQualityPublishedformsSurveys(e,i){if(i=i||{},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"],i.customHeaders)}postQualitySurveys(e,i){if(i=i||{},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"],i.customHeaders)}postQualitySurveysScoring(e,i){if(i=i||{},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"],i.customHeaders)}putQualityCalibration(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "calibrationId" when calling putQualityCalibration';if(i==null)throw'Missing the required parameter "body" when calling putQualityCalibration';return this.apiClient.callApi("/api/v2/quality/calibrations/{calibrationId}","PUT",{calibrationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putQualityConversationEvaluation(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling putQualityConversationEvaluation';if(i==null||i==="")throw'Missing the required parameter "evaluationId" when calling putQualityConversationEvaluation';if(n==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:i},{expand:a.expand},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}putQualityForm(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "formId" when calling putQualityForm';if(i==null)throw'Missing the required parameter "body" when calling putQualityForm';return this.apiClient.callApi("/api/v2/quality/forms/{formId}","PUT",{formId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putQualityFormsEvaluation(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "formId" when calling putQualityFormsEvaluation';if(i==null)throw'Missing the required parameter "body" when calling putQualityFormsEvaluation';return this.apiClient.callApi("/api/v2/quality/forms/evaluations/{formId}","PUT",{formId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putQualityFormsEvaluationAiscoringSettings(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "formId" when calling putQualityFormsEvaluationAiscoringSettings';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putQualityFormsSurvey(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "formId" when calling putQualityFormsSurvey';if(i==null)throw'Missing the required parameter "body" when calling putQualityFormsSurvey';return this.apiClient.callApi("/api/v2/quality/forms/surveys/{formId}","PUT",{formId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putQualityProgramAgentscoringrule(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "programId" when calling putQualityProgramAgentscoringrule';if(i==null||i==="")throw'Missing the required parameter "ruleId" when calling putQualityProgramAgentscoringrule';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}putQualitySurveysScorable(e,i,n){if(n=n||{},e==null)throw'Missing the required parameter "customerSurveyUrl" when calling putQualitySurveysScorable';if(i==null)throw'Missing the required parameter "body" when calling putQualitySurveysScorable';return this.apiClient.callApi("/api/v2/quality/surveys/scorable","PUT",{},{customerSurveyUrl:e},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}},Mb=class{constructor(e){this.apiClient=e||q.instance}deleteConversationRecordingAnnotation(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling deleteConversationRecordingAnnotation';if(i==null||i==="")throw'Missing the required parameter "recordingId" when calling deleteConversationRecordingAnnotation';if(n==null||n==="")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:i,annotationId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}deleteOrphanrecording(e,i){if(i=i||{},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"],i.customHeaders)}deleteRecordingCrossplatformMediaretentionpolicies(e,i){if(i=i||{},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"],i.customHeaders)}deleteRecordingCrossplatformMediaretentionpolicy(e,i){if(i=i||{},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"],i.customHeaders)}deleteRecordingJob(e,i){if(i=i||{},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"],i.customHeaders)}deleteRecordingMediaretentionpolicies(e,i){if(i=i||{},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"],i.customHeaders)}deleteRecordingMediaretentionpolicy(e,i){if(i=i||{},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"],i.customHeaders)}getConversationRecording(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationRecording';if(i==null||i==="")throw'Missing the required parameter "recordingId" when calling getConversationRecording';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/recordings/{recordingId}","GET",{conversationId:e,recordingId:i},{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)}getConversationRecordingAnnotation(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationRecordingAnnotation';if(i==null||i==="")throw'Missing the required parameter "recordingId" when calling getConversationRecordingAnnotation';if(n==null||n==="")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:i,annotationId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getConversationRecordingAnnotations(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationRecordingAnnotations';if(i==null||i==="")throw'Missing the required parameter "recordingId" when calling getConversationRecordingAnnotations';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/recordings/{recordingId}/annotations","GET",{conversationId:e,recordingId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getConversationRecordingmetadata(e,i){if(i=i||{},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"],i.customHeaders)}getConversationRecordingmetadataRecordingId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationRecordingmetadataRecordingId';if(i==null||i==="")throw'Missing the required parameter "recordingId" when calling getConversationRecordingmetadataRecordingId';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/recordingmetadata/{recordingId}","GET",{conversationId:e,recordingId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getConversationRecordings(e,i){if(i=i||{},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:i.maxWaitMs,formatId:i.formatId,mediaFormats:this.apiClient.buildCollectionParam(i.mediaFormats,"multi"),locale:i.locale,includePauseAnnotationsForScreenRecordings:i.includePauseAnnotationsForScreenRecordings},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getOrphanrecording(e,i){if(i=i||{},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"],i.customHeaders)}getOrphanrecordingMedia(e,i){if(i=i||{},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: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)}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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getRecordingJob(e,i){if(i=i||{},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"],i.customHeaders)}getRecordingJobFailedrecordings(e,i){if(i=i||{},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:i.pageSize,pageNumber:i.pageNumber,includeTotal:i.includeTotal,cursor:i.cursor},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getRecordingsRetentionQuery(e,i){if(i=i||{},e==null)throw'Missing the required parameter "retentionThresholdDays" when calling getRecordingsRetentionQuery';return this.apiClient.callApi("/api/v2/recordings/retention/query","GET",{},{retentionThresholdDays:e,cursor:i.cursor,pageSize:i.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "policyId" when calling patchRecordingCrossplatformMediaretentionpolicy';if(i==null)throw'Missing the required parameter "body" when calling patchRecordingCrossplatformMediaretentionpolicy';return this.apiClient.callApi("/api/v2/recording/crossplatform/mediaretentionpolicies/{policyId}","PATCH",{policyId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchRecordingMediaretentionpolicy(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "policyId" when calling patchRecordingMediaretentionpolicy';if(i==null)throw'Missing the required parameter "body" when calling patchRecordingMediaretentionpolicy';return this.apiClient.callApi("/api/v2/recording/mediaretentionpolicies/{policyId}","PATCH",{policyId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postConversationRecordingAnnotations(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationRecordingAnnotations';if(i==null||i==="")throw'Missing the required parameter "recordingId" when calling postConversationRecordingAnnotations';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postRecordingBatchrequests(e,i){if(i=i||{},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"],i.customHeaders)}postRecordingCrossplatformMediaretentionpolicies(e,i){if(i=i||{},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"],i.customHeaders)}postRecordingJobs(e,i){if(i=i||{},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"],i.customHeaders)}postRecordingKeyconfigurations(e,i){if(i=i||{},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"],i.customHeaders)}postRecordingKeyconfigurationsValidate(e,i){if(i=i||{},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"],i.customHeaders)}postRecordingLocalkeys(e,i){if(i=i||{},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"],i.customHeaders)}postRecordingMediaretentionpolicies(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}postRecordingsDeletionprotection(e,i){if(i=i||{},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"],i.customHeaders)}postRecordingsScreensessionsAcknowledge(e,i){if(i=i||{},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"],i.customHeaders)}postRecordingsScreensessionsMetadata(e,i){if(i=i||{},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"],i.customHeaders)}putConversationRecording(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling putConversationRecording';if(i==null||i==="")throw'Missing the required parameter "recordingId" when calling putConversationRecording';if(n==null)throw'Missing the required parameter "body" when calling putConversationRecording';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/recordings/{recordingId}","PUT",{conversationId:e,recordingId:i},{clearExport:a.clearExport},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}putConversationRecordingAnnotation(e,i,n,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling putConversationRecordingAnnotation';if(i==null||i==="")throw'Missing the required parameter "recordingId" when calling putConversationRecordingAnnotation';if(n==null||n==="")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:i,annotationId:n},{},{},{},a,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}putOrphanrecording(e,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "orphanId" when calling putOrphanrecording';return this.apiClient.callApi("/api/v2/orphanrecordings/{orphanId}","PUT",{orphanId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}putRecordingCrossplatformMediaretentionpolicy(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "policyId" when calling putRecordingCrossplatformMediaretentionpolicy';if(i==null)throw'Missing the required parameter "body" when calling putRecordingCrossplatformMediaretentionpolicy';return this.apiClient.callApi("/api/v2/recording/crossplatform/mediaretentionpolicies/{policyId}","PUT",{policyId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putRecordingJob(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "jobId" when calling putRecordingJob';if(i==null)throw'Missing the required parameter "body" when calling putRecordingJob';return this.apiClient.callApi("/api/v2/recording/jobs/{jobId}","PUT",{jobId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putRecordingKeyconfiguration(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "keyConfigurationId" when calling putRecordingKeyconfiguration';if(i==null)throw'Missing the required parameter "body" when calling putRecordingKeyconfiguration';return this.apiClient.callApi("/api/v2/recording/keyconfigurations/{keyConfigurationId}","PUT",{keyConfigurationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putRecordingMediaretentionpolicy(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "policyId" when calling putRecordingMediaretentionpolicy';if(i==null)throw'Missing the required parameter "body" when calling putRecordingMediaretentionpolicy';return this.apiClient.callApi("/api/v2/recording/mediaretentionpolicies/{policyId}","PUT",{policyId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putRecordingRecordingkeysRotationschedule(e,i){if(i=i||{},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"],i.customHeaders)}putRecordingSettings(e,i){if(i=i||{},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"],i.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)}},Eb=class{constructor(e){this.apiClient=e||q.instance}deleteResponsemanagementLibrary(e,i){if(i=i||{},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"],i.customHeaders)}deleteResponsemanagementResponse(e,i){if(i=i||{},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"],i.customHeaders)}deleteResponsemanagementResponseasset(e,i){if(i=i||{},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"],i.customHeaders)}getResponsemanagementLibraries(e){return e=e||{},this.apiClient.callApi("/api/v2/responsemanagement/libraries","GET",{},{pageNumber:e.pageNumber,pageSize:e.pageSize,messagingTemplateFilter:e.messagingTemplateFilter,libraryPrefix:e.libraryPrefix},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getResponsemanagementLibrary(e,i){if(i=i||{},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"],i.customHeaders)}getResponsemanagementResponse(e,i){if(i=i||{},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:i.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getResponsemanagementResponseasset(e,i){if(i=i||{},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"],i.customHeaders)}getResponsemanagementResponseassetsStatusStatusId(e,i){if(i=i||{},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"],i.customHeaders)}getResponsemanagementResponses(e,i){if(i=i||{},e==null)throw'Missing the required parameter "libraryId" when calling getResponsemanagementResponses';return this.apiClient.callApi("/api/v2/responsemanagement/responses","GET",{},{libraryId:e,pageNumber:i.pageNumber,pageSize:i.pageSize,expand:i.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postResponsemanagementLibraries(e,i){if(i=i||{},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"],i.customHeaders)}postResponsemanagementLibrariesBulk(e,i){if(i=i||{},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"],i.customHeaders)}postResponsemanagementLibrariesQuery(e,i){if(i=i||{},e==null)throw'Missing the required parameter "body" when calling postResponsemanagementLibrariesQuery';return this.apiClient.callApi("/api/v2/responsemanagement/libraries/query","POST",{},{pageNumber:i.pageNumber,pageSize:i.pageSize},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postResponsemanagementResponseassetsBulk(e,i){if(i=i||{},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"],i.customHeaders)}postResponsemanagementResponseassetsSearch(e,i){if(i=i||{},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(i.expand,"multi")},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postResponsemanagementResponseassetsUploads(e,i){if(i=i||{},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"],i.customHeaders)}postResponsemanagementResponses(e,i){if(i=i||{},e==null)throw'Missing the required parameter "body" when calling postResponsemanagementResponses';return this.apiClient.callApi("/api/v2/responsemanagement/responses","POST",{},{expand:i.expand},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postResponsemanagementResponsesQuery(e,i){if(i=i||{},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"],i.customHeaders)}putResponsemanagementLibrary(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "libraryId" when calling putResponsemanagementLibrary';if(i==null)throw'Missing the required parameter "body" when calling putResponsemanagementLibrary';return this.apiClient.callApi("/api/v2/responsemanagement/libraries/{libraryId}","PUT",{libraryId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putResponsemanagementResponse(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "responseId" when calling putResponsemanagementResponse';if(i==null)throw'Missing the required parameter "body" when calling putResponsemanagementResponse';return this.apiClient.callApi("/api/v2/responsemanagement/responses/{responseId}","PUT",{responseId:e},{expand:n.expand},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putResponsemanagementResponseasset(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "responseAssetId" when calling putResponsemanagementResponseasset';if(i==null)throw'Missing the required parameter "body" when calling putResponsemanagementResponseasset';return this.apiClient.callApi("/api/v2/responsemanagement/responseassets/{responseAssetId}","PUT",{responseAssetId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}},kb=class{constructor(e){this.apiClient=e||q.instance}deleteRoutingAssessment(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}deleteRoutingEmailDomainRoute(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "domainName" when calling deleteRoutingEmailDomainRoute';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteRoutingEmailOutboundDomain(e,i){if(i=i||{},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"],i.customHeaders)}deleteRoutingLanguage(e,i){if(i=i||{},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"],i.customHeaders)}deleteRoutingPredictor(e,i){if(i=i||{},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"],i.customHeaders)}deleteRoutingPredictorsKeyperformanceindicator(e,i){if(i=i||{},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"],i.customHeaders)}deleteRoutingQueue(e,i){if(i=i||{},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:i.forceDelete},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}deleteRoutingQueueMember(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "queueId" when calling deleteRoutingQueueMember';if(i==null||i==="")throw'Missing the required parameter "memberId" when calling deleteRoutingQueueMember';return this.apiClient.callApi("/api/v2/routing/queues/{queueId}/members/{memberId}","DELETE",{queueId:e,memberId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteRoutingQueueUser(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "queueId" when calling deleteRoutingQueueUser';if(i==null||i==="")throw'Missing the required parameter "memberId" when calling deleteRoutingQueueUser';return this.apiClient.callApi("/api/v2/routing/queues/{queueId}/users/{memberId}","DELETE",{queueId:e,memberId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteRoutingQueueWrapupcode(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "queueId" when calling deleteRoutingQueueWrapupcode';if(i==null||i==="")throw'Missing the required parameter "codeId" when calling deleteRoutingQueueWrapupcode';return this.apiClient.callApi("/api/v2/routing/queues/{queueId}/wrapupcodes/{codeId}","DELETE",{queueId:e,codeId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.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,i){if(i=i||{},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"],i.customHeaders)}deleteRoutingSkillgroup(e,i){if(i=i||{},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"],i.customHeaders)}deleteRoutingSmsAddress(e,i){if(i=i||{},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"],i.customHeaders)}deleteRoutingSmsPhonenumber(e,i){if(i=i||{},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"],i.customHeaders)}deleteRoutingUserDirectroutingbackupSettings(e,i){if(i=i||{},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"],i.customHeaders)}deleteRoutingUserUtilization(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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:i.forceDelete},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}deleteRoutingUtilizationTag(e,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "tagId" when calling deleteRoutingUtilizationTag';return this.apiClient.callApi("/api/v2/routing/utilization/tags/{tagId}","DELETE",{tagId:e},{forceDelete:i.forceDelete},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}deleteRoutingWrapupcode(e,i){if(i=i||{},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"],i.customHeaders)}deleteUserRoutinglanguage(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling deleteUserRoutinglanguage';if(i==null||i==="")throw'Missing the required parameter "languageId" when calling deleteUserRoutinglanguage';return this.apiClient.callApi("/api/v2/users/{userId}/routinglanguages/{languageId}","DELETE",{userId:e,languageId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteUserRoutingskill(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling deleteUserRoutingskill';if(i==null||i==="")throw'Missing the required parameter "skillId" when calling deleteUserRoutingskill';return this.apiClient.callApi("/api/v2/users/{userId}/routingskills/{skillId}","DELETE",{userId:e,skillId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getRoutingAssessment(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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:i.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getRoutingEmailDomainDkim(e,i){if(i=i||{},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"],i.customHeaders)}getRoutingEmailDomainMailfrom(e,i){if(i=i||{},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"],i.customHeaders)}getRoutingEmailDomainRoute(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "domainName" when calling getRoutingEmailDomainRoute';if(i==null||i==="")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:i},{expand:this.apiClient.buildCollectionParam(n.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getRoutingEmailDomainRouteIdentityresolution(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "domainName" when calling getRoutingEmailDomainRouteIdentityresolution';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getRoutingEmailDomainRoutes(e,i){if(i=i||{},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:i.pageSize,pageNumber:i.pageNumber,pattern:i.pattern,expand:this.apiClient.buildCollectionParam(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getRoutingEmailDomainVerification(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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:i.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getRoutingEmailOutboundDomainActivation(e,i){if(i=i||{},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"],i.customHeaders)}getRoutingEmailOutboundDomains(e){return e=e||{},this.apiClient.callApi("/api/v2/routing/email/outbound/domains","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,filter:e.filter,expand:e.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getRoutingEmailSetup(e){return e=e||{},this.apiClient.callApi("/api/v2/routing/email/setup","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getRoutingLanguage(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getRoutingPredictorModelFeatures(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "predictorId" when calling getRoutingPredictorModelFeatures';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getRoutingPredictorModels(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getRoutingQueueAssistant(e,i){if(i=i||{},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(i.expand,"multi"),languageVariation:i.languageVariation,fallbackToPrimaryAssistant:i.fallbackToPrimaryAssistant},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getRoutingQueueComparisonperiod(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "queueId" when calling getRoutingQueueComparisonperiod';if(i==null||i==="")throw'Missing the required parameter "comparisonPeriodId" when calling getRoutingQueueComparisonperiod';return this.apiClient.callApi("/api/v2/routing/queues/{queueId}/comparisonperiods/{comparisonPeriodId}","GET",{queueId:e,comparisonPeriodId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getRoutingQueueComparisonperiods(e,i){if(i=i||{},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"],i.customHeaders)}getRoutingQueueEstimatedwaittime(e,i){if(i=i||{},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:i.conversationId},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getRoutingQueueIdentityresolution(e,i){if(i=i||{},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"],i.customHeaders)}getRoutingQueueMediatypeEstimatedwaittime(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "queueId" when calling getRoutingQueueMediatypeEstimatedwaittime';if(i==null||i==="")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:i},{labelId:n.labelId},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getRoutingQueueMembers(e,i){if(i=i||{},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:i.pageNumber,pageSize:i.pageSize,sortOrder:i.sortOrder,expand:this.apiClient.buildCollectionParam(i.expand,"multi"),name:i.name,profileSkills:this.apiClient.buildCollectionParam(i.profileSkills,"multi"),skills:this.apiClient.buildCollectionParam(i.skills,"multi"),languages:this.apiClient.buildCollectionParam(i.languages,"multi"),routingStatus:this.apiClient.buildCollectionParam(i.routingStatus,"multi"),presence:this.apiClient.buildCollectionParam(i.presence,"multi"),memberBy:i.memberBy,joined:i.joined},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getRoutingQueueUsers(e,i){if(i=i||{},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:i.pageNumber,pageSize:i.pageSize,sortOrder:i.sortOrder,expand:this.apiClient.buildCollectionParam(i.expand,"multi"),joined:i.joined,name:i.name,profileSkills:this.apiClient.buildCollectionParam(i.profileSkills,"multi"),skills:this.apiClient.buildCollectionParam(i.skills,"multi"),languages:this.apiClient.buildCollectionParam(i.languages,"multi"),routingStatus:this.apiClient.buildCollectionParam(i.routingStatus,"multi"),presence:this.apiClient.buildCollectionParam(i.presence,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getRoutingQueueWrapupcodes(e,i){if(i=i||{},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:i.pageSize,pageNumber:i.pageNumber,name:i.name},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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"],i.customHeaders)}getRoutingSkillgroup(e,i){if(i=i||{},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"],i.customHeaders)}getRoutingSkillgroupMembers(e,i){if(i=i||{},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:i.pageSize,after:i.after,before:i.before,expand:i.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getRoutingSkillgroupMembersDivisions(e,i){if(i=i||{},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:i.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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"],i.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,i,n){if(n=n||{},e==null)throw'Missing the required parameter "countryCode" when calling getRoutingSmsAvailablephonenumbers';if(i==null)throw'Missing the required parameter "phoneNumberType" when calling getRoutingSmsAvailablephonenumbers';return this.apiClient.callApi("/api/v2/routing/sms/availablephonenumbers","GET",{},{countryCode:e,region:n.region,city:n.city,areaCode:n.areaCode,phoneNumberType:i,pattern:n.pattern,addressRequirement:n.addressRequirement},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getRoutingSmsIdentityresolutionPhonenumber(e,i){if(i=i||{},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"],i.customHeaders)}getRoutingSmsPhonenumber(e,i){if(i=i||{},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:i.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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"],i.customHeaders)}getRoutingUserUtilization(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getRoutingUtilizationLabelAgents(e,i){if(i=i||{},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"],i.customHeaders)}getRoutingUtilizationLabels(e){return e=e||{},this.apiClient.callApi("/api/v2/routing/utilization/labels","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,sortOrder:e.sortOrder,name:e.name},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getRoutingUtilizationTag(e,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "tagId" when calling getRoutingUtilizationTag';return this.apiClient.callApi("/api/v2/routing/utilization/tags/{tagId}","GET",{tagId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getRoutingUtilizationTagAgents(e,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "tagId" when calling getRoutingUtilizationTagAgents';return this.apiClient.callApi("/api/v2/routing/utilization/tags/{tagId}/agents","GET",{tagId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getRoutingUtilizationTags(e){return e=e||{},this.apiClient.callApi("/api/v2/routing/utilization/tags","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,sortOrder:e.sortOrder,name:e.name},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getRoutingWrapupcode(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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:i.pageSize,pageNumber:i.pageNumber,joined:i.joined,divisionId:this.apiClient.buildCollectionParam(i.divisionId,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getUserRoutinglanguages(e,i){if(i=i||{},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:i.pageSize,pageNumber:i.pageNumber,sortOrder:i.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getUserRoutingskills(e,i){if(i=i||{},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:i.pageSize,pageNumber:i.pageNumber,sortOrder:i.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getUserSkillgroups(e,i){if(i=i||{},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:i.pageSize,after:i.after,before:i.before},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}patchRoutingConversation(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchRoutingConversation';if(i==null)throw'Missing the required parameter "body" when calling patchRoutingConversation';return this.apiClient.callApi("/api/v2/routing/conversations/{conversationId}","PATCH",{conversationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchRoutingEmailDomain(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "domainId" when calling patchRoutingEmailDomain';if(i==null)throw'Missing the required parameter "body" when calling patchRoutingEmailDomain';return this.apiClient.callApi("/api/v2/routing/email/domains/{domainId}","PATCH",{domainId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchRoutingEmailDomainValidate(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "domainId" when calling patchRoutingEmailDomainValidate';if(i==null)throw'Missing the required parameter "body" when calling patchRoutingEmailDomainValidate';return this.apiClient.callApi("/api/v2/routing/email/domains/{domainId}/validate","PATCH",{domainId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchRoutingEmailOutboundDomain(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "domainId" when calling patchRoutingEmailOutboundDomain';if(i==null)throw'Missing the required parameter "body" when calling patchRoutingEmailOutboundDomain';return this.apiClient.callApi("/api/v2/routing/email/outbound/domains/{domainId}","PATCH",{domainId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchRoutingPredictor(e,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "predictorId" when calling patchRoutingPredictor';return this.apiClient.callApi("/api/v2/routing/predictors/{predictorId}","PATCH",{predictorId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}patchRoutingPredictorsKeyperformanceindicator(e,i){if(i=i||{},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},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}patchRoutingQueueMember(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "queueId" when calling patchRoutingQueueMember';if(i==null||i==="")throw'Missing the required parameter "memberId" when calling patchRoutingQueueMember';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchRoutingQueueMembers(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "queueId" when calling patchRoutingQueueMembers';if(i==null)throw'Missing the required parameter "body" when calling patchRoutingQueueMembers';return this.apiClient.callApi("/api/v2/routing/queues/{queueId}/members","PATCH",{queueId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchRoutingQueueUser(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "queueId" when calling patchRoutingQueueUser';if(i==null||i==="")throw'Missing the required parameter "memberId" when calling patchRoutingQueueUser';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchRoutingQueueUsers(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "queueId" when calling patchRoutingQueueUsers';if(i==null)throw'Missing the required parameter "body" when calling patchRoutingQueueUsers';return this.apiClient.callApi("/api/v2/routing/queues/{queueId}/users","PATCH",{queueId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchRoutingSettingsContactcenter(e,i){if(i=i||{},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"],i.customHeaders)}patchRoutingSettingsTranscription(e,i){if(i=i||{},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"],i.customHeaders)}patchRoutingSkill(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "skillId" when calling patchRoutingSkill';if(i==null)throw'Missing the required parameter "body" when calling patchRoutingSkill';return this.apiClient.callApi("/api/v2/routing/skills/{skillId}","PATCH",{skillId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchRoutingSkillgroup(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "skillGroupId" when calling patchRoutingSkillgroup';if(i==null)throw'Missing the required parameter "body" when calling patchRoutingSkillgroup';return this.apiClient.callApi("/api/v2/routing/skillgroups/{skillGroupId}","PATCH",{skillGroupId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchRoutingSmsPhonenumber(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "phoneNumberId" when calling patchRoutingSmsPhonenumber';if(i==null)throw'Missing the required parameter "body" when calling patchRoutingSmsPhonenumber';return this.apiClient.callApi("/api/v2/routing/sms/phonenumbers/{phoneNumberId}","PATCH",{phoneNumberId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchUserQueue(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "queueId" when calling patchUserQueue';if(i==null||i==="")throw'Missing the required parameter "userId" when calling patchUserQueue';if(n==null)throw'Missing the required parameter "body" when calling patchUserQueue';return this.apiClient.callApi("/api/v2/users/{userId}/queues/{queueId}","PATCH",{queueId:e,userId:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchUserQueues(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling patchUserQueues';if(i==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(n.divisionId,"multi")},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchUserRoutinglanguage(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "userId" when calling patchUserRoutinglanguage';if(i==null||i==="")throw'Missing the required parameter "languageId" when calling patchUserRoutinglanguage';if(n==null)throw'Missing the required parameter "body" when calling patchUserRoutinglanguage';return this.apiClient.callApi("/api/v2/users/{userId}/routinglanguages/{languageId}","PATCH",{userId:e,languageId:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchUserRoutinglanguagesBulk(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling patchUserRoutinglanguagesBulk';if(i==null)throw'Missing the required parameter "body" when calling patchUserRoutinglanguagesBulk';return this.apiClient.callApi("/api/v2/users/{userId}/routinglanguages/bulk","PATCH",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchUserRoutingskillsBulk(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling patchUserRoutingskillsBulk';if(i==null)throw'Missing the required parameter "body" when calling patchUserRoutingskillsBulk';return this.apiClient.callApi("/api/v2/users/{userId}/routingskills/bulk","PATCH",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postAnalyticsQueuesObservationsQuery(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsRoutingActivityQuery(e,i){if(i=i||{},e==null)throw'Missing the required parameter "body" when calling postAnalyticsRoutingActivityQuery';return this.apiClient.callApi("/api/v2/analytics/routing/activity/query","POST",{},{pageSize:i.pageSize,pageNumber:i.pageNumber},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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"],i.customHeaders)}postRoutingEmailDomainMailfrom(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "domainId" when calling postRoutingEmailDomainMailfrom';if(i==null)throw'Missing the required parameter "body" when calling postRoutingEmailDomainMailfrom';return this.apiClient.callApi("/api/v2/routing/email/domains/{domainId}/mailfrom","POST",{domainId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postRoutingEmailDomainRoutes(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "domainName" when calling postRoutingEmailDomainRoutes';if(i==null)throw'Missing the required parameter "body" when calling postRoutingEmailDomainRoutes';return this.apiClient.callApi("/api/v2/routing/email/domains/{domainName}/routes","POST",{domainName:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postRoutingEmailDomainTestconnection(e,i){if(i=i||{},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},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postRoutingEmailDomainVerification(e,i){if(i=i||{},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"],i.customHeaders)}postRoutingEmailDomains(e,i){if(i=i||{},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"],i.customHeaders)}postRoutingEmailOutboundDomainTestconnection(e,i){if(i=i||{},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},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postRoutingEmailOutboundDomains(e,i){if(i=i||{},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"],i.customHeaders)}postRoutingEmailOutboundDomainsSimulated(e,i){if(i=i||{},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"],i.customHeaders)}postRoutingLanguages(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}postRoutingQueueMembers(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "queueId" when calling postRoutingQueueMembers';if(i==null)throw'Missing the required parameter "body" when calling postRoutingQueueMembers';return this.apiClient.callApi("/api/v2/routing/queues/{queueId}/members","POST",{queueId:e},{delete:n._delete},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postRoutingQueueUsers(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "queueId" when calling postRoutingQueueUsers';if(i==null)throw'Missing the required parameter "body" when calling postRoutingQueueUsers';return this.apiClient.callApi("/api/v2/routing/queues/{queueId}/users","POST",{queueId:e},{delete:n._delete},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postRoutingQueueWrapupcodes(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "queueId" when calling postRoutingQueueWrapupcodes';if(i==null)throw'Missing the required parameter "body" when calling postRoutingQueueWrapupcodes';return this.apiClient.callApi("/api/v2/routing/queues/{queueId}/wrapupcodes","POST",{queueId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postRoutingQueues(e,i){if(i=i||{},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"],i.customHeaders)}postRoutingSkillgroupMembersDivisions(e,i){if(i=i||{},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},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postRoutingSkillgroups(e,i){if(i=i||{},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"],i.customHeaders)}postRoutingSkills(e,i){if(i=i||{},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"],i.customHeaders)}postRoutingSmsAddresses(e,i){if(i=i||{},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"],i.customHeaders)}postRoutingSmsPhonenumbers(e,i){if(i=i||{},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"],i.customHeaders)}postRoutingSmsPhonenumbersAlphanumeric(e,i){if(i=i||{},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"],i.customHeaders)}postRoutingSmsPhonenumbersImport(e,i){if(i=i||{},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"],i.customHeaders)}postRoutingUtilizationLabels(e,i){if(i=i||{},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"],i.customHeaders)}postRoutingUtilizationTags(e,i){if(i=i||{},e==null)throw'Missing the required parameter "body" when calling postRoutingUtilizationTags';return this.apiClient.callApi("/api/v2/routing/utilization/tags","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postRoutingWrapupcodes(e,i){if(i=i||{},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"],i.customHeaders)}postUserRoutinglanguages(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling postUserRoutinglanguages';if(i==null)throw'Missing the required parameter "body" when calling postUserRoutinglanguages';return this.apiClient.callApi("/api/v2/users/{userId}/routinglanguages","POST",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postUserRoutingskills(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling postUserRoutingskills';if(i==null)throw'Missing the required parameter "body" when calling postUserRoutingskills';return this.apiClient.callApi("/api/v2/users/{userId}/routingskills","POST",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putRoutingDirectroutingbackupSettingsMe(e,i){if(i=i||{},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"],i.customHeaders)}putRoutingEmailDomainRoute(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "domainName" when calling putRoutingEmailDomainRoute';if(i==null||i==="")throw'Missing the required parameter "routeId" when calling putRoutingEmailDomainRoute';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}putRoutingEmailDomainRouteIdentityresolution(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "domainName" when calling putRoutingEmailDomainRouteIdentityresolution';if(i==null||i==="")throw'Missing the required parameter "routeId" when calling putRoutingEmailDomainRouteIdentityresolution';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}putRoutingEmailOutboundDomainActivation(e,i){if(i=i||{},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"],i.customHeaders)}putRoutingMessageRecipient(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "recipientId" when calling putRoutingMessageRecipient';if(i==null)throw'Missing the required parameter "body" when calling putRoutingMessageRecipient';return this.apiClient.callApi("/api/v2/routing/message/recipients/{recipientId}","PUT",{recipientId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putRoutingQueue(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "queueId" when calling putRoutingQueue';if(i==null)throw'Missing the required parameter "body" when calling putRoutingQueue';return this.apiClient.callApi("/api/v2/routing/queues/{queueId}","PUT",{queueId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putRoutingQueueIdentityresolution(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "queueId" when calling putRoutingQueueIdentityresolution';if(i==null)throw'Missing the required parameter "body" when calling putRoutingQueueIdentityresolution';return this.apiClient.callApi("/api/v2/routing/queues/{queueId}/identityresolution","PUT",{queueId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putRoutingSettings(e,i){if(i=i||{},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"],i.customHeaders)}putRoutingSettingsTranscription(e,i){if(i=i||{},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"],i.customHeaders)}putRoutingSmsIdentityresolutionPhonenumber(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "addressId" when calling putRoutingSmsIdentityresolutionPhonenumber';if(i==null)throw'Missing the required parameter "body" when calling putRoutingSmsIdentityresolutionPhonenumber';return this.apiClient.callApi("/api/v2/routing/sms/identityresolution/phonenumbers/{addressId}","PUT",{addressId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putRoutingUserDirectroutingbackupSettings(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling putRoutingUserDirectroutingbackupSettings';if(i==null)throw'Missing the required parameter "body" when calling putRoutingUserDirectroutingbackupSettings';return this.apiClient.callApi("/api/v2/routing/users/{userId}/directroutingbackup/settings","PUT",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putRoutingUserUtilization(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling putRoutingUserUtilization';if(i==null)throw'Missing the required parameter "body" when calling putRoutingUserUtilization';return this.apiClient.callApi("/api/v2/routing/users/{userId}/utilization","PUT",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putRoutingUtilization(e,i){if(i=i||{},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"],i.customHeaders)}putRoutingUtilizationLabel(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "labelId" when calling putRoutingUtilizationLabel';if(i==null)throw'Missing the required parameter "body" when calling putRoutingUtilizationLabel';return this.apiClient.callApi("/api/v2/routing/utilization/labels/{labelId}","PUT",{labelId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putRoutingWrapupcode(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "codeId" when calling putRoutingWrapupcode';if(i==null)throw'Missing the required parameter "body" when calling putRoutingWrapupcode';return this.apiClient.callApi("/api/v2/routing/wrapupcodes/{codeId}","PUT",{codeId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putUserRoutingskill(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "userId" when calling putUserRoutingskill';if(i==null||i==="")throw'Missing the required parameter "skillId" when calling putUserRoutingskill';if(n==null)throw'Missing the required parameter "body" when calling putUserRoutingskill';return this.apiClient.callApi("/api/v2/users/{userId}/routingskills/{skillId}","PUT",{userId:e,skillId:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}putUserRoutingskillsBulk(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling putUserRoutingskillsBulk';if(i==null)throw'Missing the required parameter "body" when calling putUserRoutingskillsBulk';return this.apiClient.callApi("/api/v2/users/{userId}/routingskills/bulk","PUT",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}},qb=class{constructor(e){this.apiClient=e||q.instance}deleteScimUser(e,i){if(i=i||{},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":i.ifMatch},{},null,["PureCloud OAuth"],["application/json"],["application/scim+json","application/json"],i.customHeaders)}deleteScimV2User(e,i){if(i=i||{},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":i.ifMatch},{},null,["PureCloud OAuth"],["application/json"],["application/scim+json","application/json"],i.customHeaders)}getScimGroup(e,i){if(i=i||{},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(i.attributes,"multi"),excludedAttributes:this.apiClient.buildCollectionParam(i.excludedAttributes,"multi")},{"If-None-Match":i.ifNoneMatch},{},null,["PureCloud OAuth"],["application/json"],["application/scim+json","application/json"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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(i.attributes,"multi"),excludedAttributes:this.apiClient.buildCollectionParam(i.excludedAttributes,"multi")},{"If-None-Match":i.ifNoneMatch},{},null,["PureCloud OAuth"],["application/json"],["application/scim+json","application/json"],i.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,i){if(i=i||{},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(i.attributes,"multi"),excludedAttributes:this.apiClient.buildCollectionParam(i.excludedAttributes,"multi")},{"If-None-Match":i.ifNoneMatch},{},null,["PureCloud OAuth"],["application/json"],["application/scim+json","application/json"],i.customHeaders)}getScimV2Groups(e,i){if(i=i||{},e==null)throw'Missing the required parameter "filter" when calling getScimV2Groups';return this.apiClient.callApi("/api/v2/scim/v2/groups","GET",{},{startIndex:i.startIndex,count:i.count,attributes:this.apiClient.buildCollectionParam(i.attributes,"multi"),excludedAttributes:this.apiClient.buildCollectionParam(i.excludedAttributes,"multi"),filter:e},{},{},null,["PureCloud OAuth"],["application/json"],["application/scim+json","application/json"],i.customHeaders)}getScimV2Resourcetype(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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(i.attributes,"multi"),excludedAttributes:this.apiClient.buildCollectionParam(i.excludedAttributes,"multi")},{"If-None-Match":i.ifNoneMatch},{},null,["PureCloud OAuth"],["application/json"],["application/scim+json","application/json"],i.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,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "groupId" when calling patchScimGroup';if(i==null)throw'Missing the required parameter "body" when calling patchScimGroup';return this.apiClient.callApi("/api/v2/scim/groups/{groupId}","PATCH",{groupId:e},{},{"If-Match":n.ifMatch},{},i,["PureCloud OAuth"],["application/scim+json","application/json"],["application/scim+json","application/json"],n.customHeaders)}patchScimUser(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling patchScimUser';if(i==null)throw'Missing the required parameter "body" when calling patchScimUser';return this.apiClient.callApi("/api/v2/scim/users/{userId}","PATCH",{userId:e},{},{"If-Match":n.ifMatch},{},i,["PureCloud OAuth"],["application/scim+json","application/json"],["application/scim+json","application/json"],n.customHeaders)}patchScimV2Group(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "groupId" when calling patchScimV2Group';if(i==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":n.ifMatch},{},i,["PureCloud OAuth"],["application/scim+json","application/json"],["application/scim+json","application/json"],n.customHeaders)}patchScimV2User(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling patchScimV2User';if(i==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":n.ifMatch},{},i,["PureCloud OAuth"],["application/scim+json","application/json"],["application/scim+json","application/json"],n.customHeaders)}postScimUsers(e,i){if(i=i||{},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"],i.customHeaders)}postScimV2Users(e,i){if(i=i||{},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"],i.customHeaders)}putScimGroup(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "groupId" when calling putScimGroup';if(i==null)throw'Missing the required parameter "body" when calling putScimGroup';return this.apiClient.callApi("/api/v2/scim/groups/{groupId}","PUT",{groupId:e},{},{"If-Match":n.ifMatch},{},i,["PureCloud OAuth"],["application/scim+json","application/json"],["application/scim+json","application/json"],n.customHeaders)}putScimUser(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling putScimUser';if(i==null)throw'Missing the required parameter "body" when calling putScimUser';return this.apiClient.callApi("/api/v2/scim/users/{userId}","PUT",{userId:e},{},{"If-Match":n.ifMatch},{},i,["PureCloud OAuth"],["application/scim+json","application/json"],["application/scim+json","application/json"],n.customHeaders)}putScimV2Group(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "groupId" when calling putScimV2Group';if(i==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":n.ifMatch},{},i,["PureCloud OAuth"],["application/scim+json","application/json"],["application/scim+json","application/json"],n.customHeaders)}putScimV2User(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling putScimV2User';if(i==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":n.ifMatch},{},i,["PureCloud OAuth"],["application/scim+json","application/json"],["application/scim+json","application/json"],n.customHeaders)}},_b=class{constructor(e){this.apiClient=e||q.instance}getScript(e,i){if(i=i||{},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"],i.customHeaders)}getScriptPage(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "scriptId" when calling getScriptPage';if(i==null||i==="")throw'Missing the required parameter "pageId" when calling getScriptPage';return this.apiClient.callApi("/api/v2/scripts/{scriptId}/pages/{pageId}","GET",{scriptId:e,pageId:i},{scriptDataVersion:n.scriptDataVersion},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getScriptPages(e,i){if(i=i||{},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:i.scriptDataVersion},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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:i.input,output:i.output,type:i.type,scriptDataVersion:i.scriptDataVersion},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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:i.scriptDataVersion},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getScriptsPublishedScriptIdPage(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "scriptId" when calling getScriptsPublishedScriptIdPage';if(i==null||i==="")throw'Missing the required parameter "pageId" when calling getScriptsPublishedScriptIdPage';return this.apiClient.callApi("/api/v2/scripts/published/{scriptId}/pages/{pageId}","GET",{scriptId:e,pageId:i},{scriptDataVersion:n.scriptDataVersion},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getScriptsPublishedScriptIdPages(e,i){if(i=i||{},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:i.scriptDataVersion},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getScriptsPublishedScriptIdVariables(e,i){if(i=i||{},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:i.input,output:i.output,type:i.type,scriptDataVersion:i.scriptDataVersion},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getScriptsUploadStatus(e,i){if(i=i||{},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:i.longPoll},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postScriptExport(e,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "scriptId" when calling postScriptExport';return this.apiClient.callApi("/api/v2/scripts/{scriptId}/export","POST",{scriptId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.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)}},Hb=class{constructor(e){this.apiClient=e||q.instance}getDocumentationGknSearch(e,i){if(i=i||{},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"],i.customHeaders)}getDocumentationSearch(e,i){if(i=i||{},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"],i.customHeaders)}getGroupsSearch(e,i){if(i=i||{},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(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getLocationsSearch(e,i){if(i=i||{},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(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getSearch(e,i){if(i=i||{},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(i.expand,"multi"),profile:i.profile},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getSearchSuggest(e,i){if(i=i||{},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(i.expand,"multi"),profile:i.profile},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getTelephonyProvidersEdgesSitesSearch(e,i){if(i=i||{},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(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getUsersSearch(e,i){if(i=i||{},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(i.expand,"multi"),integrationPresenceSource:i.integrationPresenceSource},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getVoicemailSearch(e,i){if(i=i||{},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(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postConversationsCustomattributesSearch(e,i){if(i=i||{},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"],i.customHeaders)}postConversationsParticipantsAttributesSearch(e,i){if(i=i||{},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"],i.customHeaders)}postDocumentationAllSearch(e,i){if(i=i||{},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"],i.customHeaders)}postDocumentationGknSearch(e,i){if(i=i||{},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"],i.customHeaders)}postDocumentationSearch(e,i){if(i=i||{},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"],i.customHeaders)}postGroupsSearch(e,i){if(i=i||{},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"],i.customHeaders)}postLocationsSearch(e,i){if(i=i||{},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"],i.customHeaders)}postSearch(e,i){if(i=i||{},e==null)throw'Missing the required parameter "body" when calling postSearch';return this.apiClient.callApi("/api/v2/search","POST",{},{profile:i.profile},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postSearchSuggest(e,i){if(i=i||{},e==null)throw'Missing the required parameter "body" when calling postSearchSuggest';return this.apiClient.callApi("/api/v2/search/suggest","POST",{},{profile:i.profile},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postSpeechandtextanalyticsTranscriptsSearch(e,i){if(i=i||{},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"],i.customHeaders)}postTeamsSearch(e,i){if(i=i||{},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"],i.customHeaders)}postTelephonyProvidersEdgesSitesSearch(e,i){if(i=i||{},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"],i.customHeaders)}postUsersSearch(e,i){if(i=i||{},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"],i.customHeaders)}postUsersSearchConversationTarget(e,i){if(i=i||{},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"],i.customHeaders)}postUsersSearchQueuemembersManage(e,i){if(i=i||{},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"],i.customHeaders)}postUsersSearchTeamsAssign(e,i){if(i=i||{},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"],i.customHeaders)}postVoicemailSearch(e,i){if(i=i||{},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"],i.customHeaders)}},Rb=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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}patchUsersAgentuiAgentsAutoanswerAgentIdSettings(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "agentId" when calling patchUsersAgentuiAgentsAutoanswerAgentIdSettings';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.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,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "agentId" when calling putUsersAgentuiAgentsAutoanswerAgentIdSettings';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}},Ib=class{constructor(e){this.apiClient=e||q.instance}deleteSocialmediaEscalationrule(e,i){if(i=i||{},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"],i.customHeaders)}deleteSocialmediaMessage(e,i){if(i=i||{},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"],i.customHeaders)}deleteSocialmediaTopic(e,i){if(i=i||{},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:i.hardDelete},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}deleteSocialmediaTopicDataingestionrulesFacebookFacebookIngestionRuleId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "topicId" when calling deleteSocialmediaTopicDataingestionrulesFacebookFacebookIngestionRuleId';if(i==null||i==="")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:i},{hardDelete:n.hardDelete},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteSocialmediaTopicDataingestionrulesGooglebusinessprofileGoogleBusinessProfileIngestionRuleId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "topicId" when calling deleteSocialmediaTopicDataingestionrulesGooglebusinessprofileGoogleBusinessProfileIngestionRuleId';if(i==null||i==="")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:i},{hardDelete:n.hardDelete},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteSocialmediaTopicDataingestionrulesInstagramInstagramIngestionRuleId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "topicId" when calling deleteSocialmediaTopicDataingestionrulesInstagramInstagramIngestionRuleId';if(i==null||i==="")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:i},{hardDelete:n.hardDelete},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteSocialmediaTopicDataingestionrulesOpenOpenId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "topicId" when calling deleteSocialmediaTopicDataingestionrulesOpenOpenId';if(i==null||i==="")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:i},{hardDelete:n.hardDelete},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteSocialmediaTopicDataingestionrulesTwitterTwitterIngestionRuleId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "topicId" when calling deleteSocialmediaTopicDataingestionrulesTwitterTwitterIngestionRuleId';if(i==null||i==="")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:i},{hardDelete:n.hardDelete},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getSocialmediaAnalyticsAggregatesJob(e,i){if(i=i||{},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"],i.customHeaders)}getSocialmediaAnalyticsAggregatesJobResults(e,i){if(i=i||{},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:i.cursor},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getSocialmediaAnalyticsMessagesJob(e,i){if(i=i||{},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"],i.customHeaders)}getSocialmediaAnalyticsMessagesJobResults(e,i){if(i=i||{},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:i.cursor},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getSocialmediaEscalationrule(e,i){if(i=i||{},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:i.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getSocialmediaEscalationrules(e,i){if(i=i||{},e==null)throw'Missing the required parameter "divisionId" when calling getSocialmediaEscalationrules';return this.apiClient.callApi("/api/v2/socialmedia/escalationrules","GET",{},{pageNumber:i.pageNumber,pageSize:i.pageSize,divisionId:e},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getSocialmediaTopic(e,i){if(i=i||{},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:i.includeDeleted},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getSocialmediaTopicDataingestionrules(e,i){if(i=i||{},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:i.pageNumber,pageSize:i.pageSize,includeDeleted:i.includeDeleted},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getSocialmediaTopicDataingestionrulesFacebookFacebookIngestionRuleId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "topicId" when calling getSocialmediaTopicDataingestionrulesFacebookFacebookIngestionRuleId';if(i==null||i==="")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:i},{includeDeleted:n.includeDeleted},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getSocialmediaTopicDataingestionrulesFacebookFacebookIngestionRuleIdVersion(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "topicId" when calling getSocialmediaTopicDataingestionrulesFacebookFacebookIngestionRuleIdVersion';if(i==null||i==="")throw'Missing the required parameter "facebookIngestionRuleId" when calling getSocialmediaTopicDataingestionrulesFacebookFacebookIngestionRuleIdVersion';if(n==null||n==="")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:i,dataIngestionRuleVersion:n},{includeDeleted:a.includeDeleted},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getSocialmediaTopicDataingestionrulesFacebookFacebookIngestionRuleIdVersions(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "topicId" when calling getSocialmediaTopicDataingestionrulesFacebookFacebookIngestionRuleIdVersions';if(i==null||i==="")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:i},{pageNumber:n.pageNumber,pageSize:n.pageSize,includeDeleted:n.includeDeleted},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getSocialmediaTopicDataingestionrulesGooglebusinessprofileGoogleBusinessProfileIngestionRuleId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "topicId" when calling getSocialmediaTopicDataingestionrulesGooglebusinessprofileGoogleBusinessProfileIngestionRuleId';if(i==null||i==="")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:i},{includeDeleted:n.includeDeleted},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getSocialmediaTopicDataingestionrulesGooglebusinessprofileGoogleBusinessProfileIngestionRuleIdVersion(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "topicId" when calling getSocialmediaTopicDataingestionrulesGooglebusinessprofileGoogleBusinessProfileIngestionRuleIdVersion';if(i==null||i==="")throw'Missing the required parameter "googleBusinessProfileIngestionRuleId" when calling getSocialmediaTopicDataingestionrulesGooglebusinessprofileGoogleBusinessProfileIngestionRuleIdVersion';if(n==null||n==="")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:i,dataIngestionRuleVersion:n},{includeDeleted:a.includeDeleted},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getSocialmediaTopicDataingestionrulesGooglebusinessprofileGoogleBusinessProfileIngestionRuleIdVersions(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "topicId" when calling getSocialmediaTopicDataingestionrulesGooglebusinessprofileGoogleBusinessProfileIngestionRuleIdVersions';if(i==null||i==="")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:i},{pageNumber:n.pageNumber,pageSize:n.pageSize,includeDeleted:n.includeDeleted},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getSocialmediaTopicDataingestionrulesInstagramInstagramIngestionRuleId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "topicId" when calling getSocialmediaTopicDataingestionrulesInstagramInstagramIngestionRuleId';if(i==null||i==="")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:i},{includeDeleted:n.includeDeleted},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getSocialmediaTopicDataingestionrulesInstagramInstagramIngestionRuleIdVersion(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "topicId" when calling getSocialmediaTopicDataingestionrulesInstagramInstagramIngestionRuleIdVersion';if(i==null||i==="")throw'Missing the required parameter "instagramIngestionRuleId" when calling getSocialmediaTopicDataingestionrulesInstagramInstagramIngestionRuleIdVersion';if(n==null||n==="")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:i,dataIngestionRuleVersion:n},{includeDeleted:a.includeDeleted},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getSocialmediaTopicDataingestionrulesInstagramInstagramIngestionRuleIdVersions(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "topicId" when calling getSocialmediaTopicDataingestionrulesInstagramInstagramIngestionRuleIdVersions';if(i==null||i==="")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:i},{pageNumber:n.pageNumber,pageSize:n.pageSize,includeDeleted:n.includeDeleted},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getSocialmediaTopicDataingestionrulesOpenOpenId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "topicId" when calling getSocialmediaTopicDataingestionrulesOpenOpenId';if(i==null||i==="")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:i},{includeDeleted:n.includeDeleted},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getSocialmediaTopicDataingestionrulesOpenOpenIdVersion(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "topicId" when calling getSocialmediaTopicDataingestionrulesOpenOpenIdVersion';if(i==null||i==="")throw'Missing the required parameter "openId" when calling getSocialmediaTopicDataingestionrulesOpenOpenIdVersion';if(n==null||n==="")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:i,dataIngestionRuleVersion:n},{includeDeleted:a.includeDeleted},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getSocialmediaTopicDataingestionrulesOpenOpenIdVersions(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "topicId" when calling getSocialmediaTopicDataingestionrulesOpenOpenIdVersions';if(i==null||i==="")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:i},{pageNumber:n.pageNumber,pageSize:n.pageSize,includeDeleted:n.includeDeleted},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getSocialmediaTopicDataingestionrulesTwitterTwitterIngestionRuleId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "topicId" when calling getSocialmediaTopicDataingestionrulesTwitterTwitterIngestionRuleId';if(i==null||i==="")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:i},{includeDeleted:n.includeDeleted},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getSocialmediaTopicDataingestionrulesTwitterTwitterIngestionRuleIdVersion(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "topicId" when calling getSocialmediaTopicDataingestionrulesTwitterTwitterIngestionRuleIdVersion';if(i==null||i==="")throw'Missing the required parameter "twitterIngestionRuleId" when calling getSocialmediaTopicDataingestionrulesTwitterTwitterIngestionRuleIdVersion';if(n==null||n==="")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:i,dataIngestionRuleVersion:n},{includeDeleted:a.includeDeleted},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getSocialmediaTopicDataingestionrulesTwitterTwitterIngestionRuleIdVersions(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "topicId" when calling getSocialmediaTopicDataingestionrulesTwitterTwitterIngestionRuleIdVersions';if(i==null||i==="")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:i},{pageNumber:n.pageNumber,pageSize:n.pageSize,includeDeleted:n.includeDeleted},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.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,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "topicId" when calling patchSocialmediaTopic';return this.apiClient.callApi("/api/v2/socialmedia/topics/{topicId}","PATCH",{topicId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}patchSocialmediaTopicDataingestionrulesFacebookFacebookIngestionRuleId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "topicId" when calling patchSocialmediaTopicDataingestionrulesFacebookFacebookIngestionRuleId';if(i==null||i==="")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:i},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchSocialmediaTopicDataingestionrulesGooglebusinessprofileGoogleBusinessProfileIngestionRuleId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "topicId" when calling patchSocialmediaTopicDataingestionrulesGooglebusinessprofileGoogleBusinessProfileIngestionRuleId';if(i==null||i==="")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:i},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchSocialmediaTopicDataingestionrulesInstagramInstagramIngestionRuleId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "topicId" when calling patchSocialmediaTopicDataingestionrulesInstagramInstagramIngestionRuleId';if(i==null||i==="")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:i},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchSocialmediaTopicDataingestionrulesOpenOpenId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "topicId" when calling patchSocialmediaTopicDataingestionrulesOpenOpenId';if(i==null||i==="")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:i},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchSocialmediaTopicDataingestionrulesTwitterTwitterIngestionRuleId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "topicId" when calling patchSocialmediaTopicDataingestionrulesTwitterTwitterIngestionRuleId';if(i==null||i==="")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:i},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postSocialmediaAnalyticsAggregatesJobs(e,i){if(i=i||{},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"],i.customHeaders)}postSocialmediaAnalyticsMessagesJobs(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},e==null)throw'Missing the required parameter "divisionId" when calling postSocialmediaEscalationsMessages';return this.apiClient.callApi("/api/v2/socialmedia/escalations/messages","POST",{},{divisionId:e},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postSocialmediaTopicDataingestionrulesFacebook(e,i){if(i=i||{},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},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postSocialmediaTopicDataingestionrulesGooglebusinessprofile(e,i){if(i=i||{},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},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postSocialmediaTopicDataingestionrulesInstagram(e,i){if(i=i||{},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},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postSocialmediaTopicDataingestionrulesOpen(e,i){if(i=i||{},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},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postSocialmediaTopicDataingestionrulesOpenRuleIdMessagesBulk(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "topicId" when calling postSocialmediaTopicDataingestionrulesOpenRuleIdMessagesBulk';if(i==null||i==="")throw'Missing the required parameter "ruleId" when calling postSocialmediaTopicDataingestionrulesOpenRuleIdMessagesBulk';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postSocialmediaTopicDataingestionrulesOpenRuleIdReactionsBulk(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "topicId" when calling postSocialmediaTopicDataingestionrulesOpenRuleIdReactionsBulk';if(i==null||i==="")throw'Missing the required parameter "ruleId" when calling postSocialmediaTopicDataingestionrulesOpenRuleIdReactionsBulk';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postSocialmediaTopicDataingestionrulesTwitter(e,i){if(i=i||{},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},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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"],i.customHeaders)}putSocialmediaEscalationrule(e,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "escalationRuleId" when calling putSocialmediaEscalationrule';return this.apiClient.callApi("/api/v2/socialmedia/escalationrules/{escalationRuleId}","PUT",{escalationRuleId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}putSocialmediaTopicDataingestionrulesFacebookFacebookIngestionRuleId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "topicId" when calling putSocialmediaTopicDataingestionrulesFacebookFacebookIngestionRuleId';if(i==null||i==="")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:i},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putSocialmediaTopicDataingestionrulesGooglebusinessprofileGoogleBusinessProfileIngestionRuleId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "topicId" when calling putSocialmediaTopicDataingestionrulesGooglebusinessprofileGoogleBusinessProfileIngestionRuleId';if(i==null||i==="")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:i},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putSocialmediaTopicDataingestionrulesInstagramInstagramIngestionRuleId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "topicId" when calling putSocialmediaTopicDataingestionrulesInstagramInstagramIngestionRuleId';if(i==null||i==="")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:i},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putSocialmediaTopicDataingestionrulesOpenOpenId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "topicId" when calling putSocialmediaTopicDataingestionrulesOpenOpenId';if(i==null||i==="")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:i},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putSocialmediaTopicDataingestionrulesTwitterTwitterIngestionRuleId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "topicId" when calling putSocialmediaTopicDataingestionrulesTwitterTwitterIngestionRuleId';if(i==null||i==="")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:i},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}},zb=class{constructor(e){this.apiClient=e||q.instance}deleteSpeechandtextanalyticsCategory(e,i){if(i=i||{},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"],i.customHeaders)}deleteSpeechandtextanalyticsDictionaryfeedbackDictionaryFeedbackId(e,i){if(i=i||{},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"],i.customHeaders)}deleteSpeechandtextanalyticsProgram(e,i){if(i=i||{},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:i.forceDelete},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}deleteSpeechandtextanalyticsReprocessingJob(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}deleteSpeechandtextanalyticsTopic(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getSpeechandtextanalyticsConversation(e,i){if(i=i||{},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"],i.customHeaders)}getSpeechandtextanalyticsConversationCategories(e,i){if(i=i||{},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:i.pageSize,pageNumber:i.pageNumber},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getSpeechandtextanalyticsConversationCommunicationTranscripturl(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getSpeechandtextanalyticsConversationCommunicationTranscripturl';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getSpeechandtextanalyticsConversationCommunicationTranscripturls(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getSpeechandtextanalyticsConversationCommunicationTranscripturls';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getSpeechandtextanalyticsConversationSentiments(e,i){if(i=i||{},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"],i.customHeaders)}getSpeechandtextanalyticsConversationSummaries(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getSpeechandtextanalyticsProgram(e,i){if(i=i||{},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"],i.customHeaders)}getSpeechandtextanalyticsProgramMappings(e,i){if(i=i||{},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"],i.customHeaders)}getSpeechandtextanalyticsProgramSettingsInsights(e,i){if(i=i||{},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"],i.customHeaders)}getSpeechandtextanalyticsProgramTranscriptionengines(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getSpeechandtextanalyticsProgramsSettingsInsights(e){return e=e||{},this.apiClient.callApi("/api/v2/speechandtextanalytics/programs/settings/insights","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,programIds:this.apiClient.buildCollectionParam(e.programIds,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getSpeechandtextanalyticsProgramsTopiclinksJob(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getSpeechandtextanalyticsReprocessingJobInteractions(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getSpeechandtextanalyticsTopics(e){return e=e||{},this.apiClient.callApi("/api/v2/speechandtextanalytics/topics","GET",{},{nextPage:e.nextPage,pageSize:e.pageSize,pageNumber:e.pageNumber,state:e.state,name:e.name,ids:this.apiClient.buildCollectionParam(e.ids,"multi"),dialects:this.apiClient.buildCollectionParam(e.dialects,"multi"),sortBy:e.sortBy,sortOrder:e.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getSpeechandtextanalyticsTopicsDialects(e){return e=e||{},this.apiClient.callApi("/api/v2/speechandtextanalytics/topics/dialects","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getSpeechandtextanalyticsTopicsGeneral(e){return e=e||{},this.apiClient.callApi("/api/v2/speechandtextanalytics/topics/general","GET",{},{dialect:e.dialect},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getSpeechandtextanalyticsTopicsGeneralStatus(e){return e=e||{},this.apiClient.callApi("/api/v2/speechandtextanalytics/topics/general/status","GET",{},{dialect:e.dialect},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getSpeechandtextanalyticsTopicsPublishjob(e,i){if(i=i||{},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"],i.customHeaders)}getSpeechandtextanalyticsTopicsTestphraseJob(e,i){if(i=i||{},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"],i.customHeaders)}getSpeechandtextanalyticsTranslationsLanguageConversation(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "languageId" when calling getSpeechandtextanalyticsTranslationsLanguageConversation';if(i==null||i==="")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:i},{communicationId:n.communicationId,recordingId:n.recordingId},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getSpeechandtextanalyticsTranslationsLanguages(e){return e=e||{},this.apiClient.callApi("/api/v2/speechandtextanalytics/translations/languages","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}patchSpeechandtextanalyticsSettings(e,i){if(i=i||{},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"],i.customHeaders)}postSpeechandtextanalyticsCategories(e,i){if(i=i||{},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"],i.customHeaders)}postSpeechandtextanalyticsDictionaryfeedback(e,i){if(i=i||{},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"],i.customHeaders)}postSpeechandtextanalyticsPrograms(e,i){if(i=i||{},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"],i.customHeaders)}postSpeechandtextanalyticsProgramsGeneralJobs(e,i){if(i=i||{},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"],i.customHeaders)}postSpeechandtextanalyticsProgramsPublishjobs(e,i){if(i=i||{},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"],i.customHeaders)}postSpeechandtextanalyticsReprocessingJobs(e,i){if(i=i||{},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"],i.customHeaders)}postSpeechandtextanalyticsSentimentfeedback(e,i){if(i=i||{},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"],i.customHeaders)}postSpeechandtextanalyticsTopics(e,i){if(i=i||{},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"],i.customHeaders)}postSpeechandtextanalyticsTopicsPublishjobs(e,i){if(i=i||{},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"],i.customHeaders)}postSpeechandtextanalyticsTopicsTestphraseJobs(e,i){if(i=i||{},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"],i.customHeaders)}postSpeechandtextanalyticsTranscriptsSearch(e,i){if(i=i||{},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"],i.customHeaders)}putSpeechandtextanalyticsCategory(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "categoryId" when calling putSpeechandtextanalyticsCategory';if(i==null)throw'Missing the required parameter "body" when calling putSpeechandtextanalyticsCategory';return this.apiClient.callApi("/api/v2/speechandtextanalytics/categories/{categoryId}","PUT",{categoryId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putSpeechandtextanalyticsDictionaryfeedbackDictionaryFeedbackId(e,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "dictionaryFeedbackId" when calling putSpeechandtextanalyticsDictionaryfeedbackDictionaryFeedbackId';return this.apiClient.callApi("/api/v2/speechandtextanalytics/dictionaryfeedback/{dictionaryFeedbackId}","PUT",{dictionaryFeedbackId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}putSpeechandtextanalyticsProgram(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "programId" when calling putSpeechandtextanalyticsProgram';if(i==null)throw'Missing the required parameter "body" when calling putSpeechandtextanalyticsProgram';return this.apiClient.callApi("/api/v2/speechandtextanalytics/programs/{programId}","PUT",{programId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putSpeechandtextanalyticsProgramMappings(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "programId" when calling putSpeechandtextanalyticsProgramMappings';if(i==null)throw'Missing the required parameter "body" when calling putSpeechandtextanalyticsProgramMappings';return this.apiClient.callApi("/api/v2/speechandtextanalytics/programs/{programId}/mappings","PUT",{programId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putSpeechandtextanalyticsProgramSettingsInsights(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "programId" when calling putSpeechandtextanalyticsProgramSettingsInsights';if(i==null)throw'Missing the required parameter "body" when calling putSpeechandtextanalyticsProgramSettingsInsights';return this.apiClient.callApi("/api/v2/speechandtextanalytics/programs/{programId}/settings/insights","PUT",{programId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putSpeechandtextanalyticsProgramTranscriptionengines(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "programId" when calling putSpeechandtextanalyticsProgramTranscriptionengines';if(i==null)throw'Missing the required parameter "body" when calling putSpeechandtextanalyticsProgramTranscriptionengines';return this.apiClient.callApi("/api/v2/speechandtextanalytics/programs/{programId}/transcriptionengines","PUT",{programId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putSpeechandtextanalyticsSettings(e,i){if(i=i||{},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"],i.customHeaders)}putSpeechandtextanalyticsTopic(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "topicId" when calling putSpeechandtextanalyticsTopic';if(i==null)throw'Missing the required parameter "body" when calling putSpeechandtextanalyticsTopic';return this.apiClient.callApi("/api/v2/speechandtextanalytics/topics/{topicId}","PUT",{topicId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}},Db=class{constructor(e){this.apiClient=e||q.instance}deleteStationAssociateduser(e,i){if(i=i||{},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"],i.customHeaders)}getStation(e,i){if(i=i||{},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"],i.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)}},Gb=class{constructor(e){this.apiClient=e||q.instance}getSearch(e,i){if(i=i||{},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(i.expand,"multi"),profile:i.profile},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getSearchSuggest(e,i){if(i=i||{},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(i.expand,"multi"),profile:i.profile},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postSearch(e,i){if(i=i||{},e==null)throw'Missing the required parameter "body" when calling postSearch';return this.apiClient.callApi("/api/v2/search","POST",{},{profile:i.profile},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postSearchSuggest(e,i){if(i=i||{},e==null)throw'Missing the required parameter "body" when calling postSearchSuggest';return this.apiClient.callApi("/api/v2/search/suggest","POST",{},{profile:i.profile},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}},$b=class{constructor(e){this.apiClient=e||q.instance}deleteTaskmanagementWorkbin(e,i){if(i=i||{},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"],i.customHeaders)}deleteTaskmanagementWorkitem(e,i){if(i=i||{},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"],i.customHeaders)}deleteTaskmanagementWorkitemsBulkAddJob(e,i){if(i=i||{},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"],i.customHeaders)}deleteTaskmanagementWorkitemsBulkTerminateJob(e,i){if(i=i||{},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"],i.customHeaders)}deleteTaskmanagementWorkitemsSchema(e,i){if(i=i||{},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"],i.customHeaders)}deleteTaskmanagementWorktype(e,i){if(i=i||{},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"],i.customHeaders)}deleteTaskmanagementWorktypeFlowsDatebasedRule(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "worktypeId" when calling deleteTaskmanagementWorktypeFlowsDatebasedRule';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteTaskmanagementWorktypeFlowsOnattributechangeRule(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "worktypeId" when calling deleteTaskmanagementWorktypeFlowsOnattributechangeRule';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteTaskmanagementWorktypeFlowsOncreateRule(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "worktypeId" when calling deleteTaskmanagementWorktypeFlowsOncreateRule';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteTaskmanagementWorktypeStatus(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "worktypeId" when calling deleteTaskmanagementWorktypeStatus';if(i==null||i==="")throw'Missing the required parameter "statusId" when calling deleteTaskmanagementWorktypeStatus';return this.apiClient.callApi("/api/v2/taskmanagement/worktypes/{worktypeId}/statuses/{statusId}","DELETE",{worktypeId:e,statusId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getTaskmanagementWorkbin(e,i){if(i=i||{},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"],i.customHeaders)}getTaskmanagementWorkbinHistory(e,i){if(i=i||{},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:i.after,pageSize:i.pageSize,sortOrder:i.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getTaskmanagementWorkbinVersion(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "workbinId" when calling getTaskmanagementWorkbinVersion';if(i==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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getTaskmanagementWorkbinVersions(e,i){if(i=i||{},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:i.after,pageSize:i.pageSize,sortOrder:i.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getTaskmanagementWorkitem(e,i){if(i=i||{},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(i.expands,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getTaskmanagementWorkitemHistory(e,i){if(i=i||{},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:i.after,pageSize:i.pageSize,sortOrder:i.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getTaskmanagementWorkitemUserWrapups(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "workitemId" when calling getTaskmanagementWorkitemUserWrapups';if(i==null||i==="")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:i},{expands:n.expands,after:n.after,pageSize:n.pageSize,sortOrder:n.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getTaskmanagementWorkitemVersion(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "workitemId" when calling getTaskmanagementWorkitemVersion';if(i==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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getTaskmanagementWorkitemVersions(e,i){if(i=i||{},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:i.after,pageSize:i.pageSize,sortOrder:i.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getTaskmanagementWorkitemWrapups(e,i){if(i=i||{},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:i.expands,after:i.after,pageSize:i.pageSize,sortOrder:i.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getTaskmanagementWorkitemsBulkAddJob(e,i){if(i=i||{},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"],i.customHeaders)}getTaskmanagementWorkitemsBulkAddJobResults(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getTaskmanagementWorkitemsBulkTerminateJobResults(e,i){if(i=i||{},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"],i.customHeaders)}getTaskmanagementWorkitemsQueryJob(e,i){if(i=i||{},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"],i.customHeaders)}getTaskmanagementWorkitemsQueryJobResults(e,i){if(i=i||{},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"],i.customHeaders)}getTaskmanagementWorkitemsSchema(e,i){if(i=i||{},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"],i.customHeaders)}getTaskmanagementWorkitemsSchemaVersion(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "schemaId" when calling getTaskmanagementWorkitemsSchemaVersion';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getTaskmanagementWorkitemsSchemaVersions(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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(i.expands,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getTaskmanagementWorktypeFlowsDatebasedRule(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "worktypeId" when calling getTaskmanagementWorktypeFlowsDatebasedRule';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getTaskmanagementWorktypeFlowsDatebasedRules(e,i){if(i=i||{},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:i.after,pageSize:i.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getTaskmanagementWorktypeFlowsOnattributechangeRule(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "worktypeId" when calling getTaskmanagementWorktypeFlowsOnattributechangeRule';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getTaskmanagementWorktypeFlowsOnattributechangeRules(e,i){if(i=i||{},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:i.after,pageSize:i.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getTaskmanagementWorktypeFlowsOncreateRule(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "worktypeId" when calling getTaskmanagementWorktypeFlowsOncreateRule';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getTaskmanagementWorktypeFlowsOncreateRules(e,i){if(i=i||{},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:i.after,pageSize:i.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getTaskmanagementWorktypeHistory(e,i){if(i=i||{},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:i.after,pageSize:i.pageSize,sortOrder:i.sortOrder,fields:this.apiClient.buildCollectionParam(i.fields,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getTaskmanagementWorktypeStatus(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "worktypeId" when calling getTaskmanagementWorktypeStatus';if(i==null||i==="")throw'Missing the required parameter "statusId" when calling getTaskmanagementWorktypeStatus';return this.apiClient.callApi("/api/v2/taskmanagement/worktypes/{worktypeId}/statuses/{statusId}","GET",{worktypeId:e,statusId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getTaskmanagementWorktypeStatuses(e,i){if(i=i||{},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"],i.customHeaders)}getTaskmanagementWorktypeVersion(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "worktypeId" when calling getTaskmanagementWorktypeVersion';if(i==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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getTaskmanagementWorktypeVersions(e,i){if(i=i||{},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:i.after,pageSize:i.pageSize,sortOrder:i.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}patchTaskmanagementWorkbin(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "workbinId" when calling patchTaskmanagementWorkbin';if(i==null)throw'Missing the required parameter "body" when calling patchTaskmanagementWorkbin';return this.apiClient.callApi("/api/v2/taskmanagement/workbins/{workbinId}","PATCH",{workbinId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchTaskmanagementWorkitem(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "workitemId" when calling patchTaskmanagementWorkitem';if(i==null)throw'Missing the required parameter "body" when calling patchTaskmanagementWorkitem';return this.apiClient.callApi("/api/v2/taskmanagement/workitems/{workitemId}","PATCH",{workitemId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchTaskmanagementWorkitemAssignment(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "workitemId" when calling patchTaskmanagementWorkitemAssignment';if(i==null)throw'Missing the required parameter "body" when calling patchTaskmanagementWorkitemAssignment';return this.apiClient.callApi("/api/v2/taskmanagement/workitems/{workitemId}/assignment","PATCH",{workitemId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchTaskmanagementWorkitemUserWrapups(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "workitemId" when calling patchTaskmanagementWorkitemUserWrapups';if(i==null||i==="")throw'Missing the required parameter "userId" when calling patchTaskmanagementWorkitemUserWrapups';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchTaskmanagementWorkitemUsersMeWrapups(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "workitemId" when calling patchTaskmanagementWorkitemUsersMeWrapups';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchTaskmanagementWorkitemsBulkAddJob(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "bulkJobId" when calling patchTaskmanagementWorkitemsBulkAddJob';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchTaskmanagementWorkitemsBulkTerminateJob(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "bulkJobId" when calling patchTaskmanagementWorkitemsBulkTerminateJob';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchTaskmanagementWorktype(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "worktypeId" when calling patchTaskmanagementWorktype';if(i==null)throw'Missing the required parameter "body" when calling patchTaskmanagementWorktype';return this.apiClient.callApi("/api/v2/taskmanagement/worktypes/{worktypeId}","PATCH",{worktypeId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchTaskmanagementWorktypeFlowsDatebasedRule(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "worktypeId" when calling patchTaskmanagementWorktypeFlowsDatebasedRule';if(i==null||i==="")throw'Missing the required parameter "ruleId" when calling patchTaskmanagementWorktypeFlowsDatebasedRule';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchTaskmanagementWorktypeFlowsOnattributechangeRule(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "worktypeId" when calling patchTaskmanagementWorktypeFlowsOnattributechangeRule';if(i==null||i==="")throw'Missing the required parameter "ruleId" when calling patchTaskmanagementWorktypeFlowsOnattributechangeRule';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchTaskmanagementWorktypeFlowsOncreateRule(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "worktypeId" when calling patchTaskmanagementWorktypeFlowsOncreateRule';if(i==null||i==="")throw'Missing the required parameter "ruleId" when calling patchTaskmanagementWorktypeFlowsOncreateRule';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchTaskmanagementWorktypeStatus(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "worktypeId" when calling patchTaskmanagementWorktypeStatus';if(i==null||i==="")throw'Missing the required parameter "statusId" when calling patchTaskmanagementWorktypeStatus';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postTaskmanagementWorkbins(e,i){if(i=i||{},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"],i.customHeaders)}postTaskmanagementWorkbinsQuery(e,i){if(i=i||{},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"],i.customHeaders)}postTaskmanagementWorkitemAcdCancel(e,i){if(i=i||{},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"],i.customHeaders)}postTaskmanagementWorkitemDisconnect(e,i){if(i=i||{},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"],i.customHeaders)}postTaskmanagementWorkitemTerminate(e,i){if(i=i||{},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},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postTaskmanagementWorkitems(e,i){if(i=i||{},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"],i.customHeaders)}postTaskmanagementWorkitemsBulkAddJobs(e,i){if(i=i||{},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"],i.customHeaders)}postTaskmanagementWorkitemsBulkTerminateJobs(e,i){if(i=i||{},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"],i.customHeaders)}postTaskmanagementWorkitemsQuery(e,i){if(i=i||{},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"],i.customHeaders)}postTaskmanagementWorkitemsQueryJobs(e,i){if(i=i||{},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"],i.customHeaders)}postTaskmanagementWorkitemsSchemas(e,i){if(i=i||{},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"],i.customHeaders)}postTaskmanagementWorktypeFlowsDatebasedRules(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "worktypeId" when calling postTaskmanagementWorktypeFlowsDatebasedRules';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postTaskmanagementWorktypeFlowsOnattributechangeRules(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "worktypeId" when calling postTaskmanagementWorktypeFlowsOnattributechangeRules';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postTaskmanagementWorktypeFlowsOncreateRules(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "worktypeId" when calling postTaskmanagementWorktypeFlowsOncreateRules';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postTaskmanagementWorktypeStatuses(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "worktypeId" when calling postTaskmanagementWorktypeStatuses';if(i==null)throw'Missing the required parameter "body" when calling postTaskmanagementWorktypeStatuses';return this.apiClient.callApi("/api/v2/taskmanagement/worktypes/{worktypeId}/statuses","POST",{worktypeId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postTaskmanagementWorktypes(e,i){if(i=i||{},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"],i.customHeaders)}postTaskmanagementWorktypesQuery(e,i){if(i=i||{},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"],i.customHeaders)}putTaskmanagementWorkitemsSchema(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "schemaId" when calling putTaskmanagementWorkitemsSchema';if(i==null)throw'Missing the required parameter "body" when calling putTaskmanagementWorkitemsSchema';return this.apiClient.callApi("/api/v2/taskmanagement/workitems/schemas/{schemaId}","PUT",{schemaId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}},Nb=class{constructor(e){this.apiClient=e||q.instance}deleteTeam(e,i){if(i=i||{},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"],i.customHeaders)}deleteTeamMembers(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "teamId" when calling deleteTeamMembers';if(i==null)throw'Missing the required parameter "id" when calling deleteTeamMembers';return this.apiClient.callApi("/api/v2/teams/{teamId}/members","DELETE",{teamId:e},{id:i},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getTeam(e,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "teamId" when calling getTeam';return this.apiClient.callApi("/api/v2/teams/{teamId}","GET",{teamId:e},{expand:i.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getTeamMembers(e,i){if(i=i||{},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:i.pageSize,before:i.before,after:i.after,expand:i.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "teamId" when calling patchTeam';if(i==null)throw'Missing the required parameter "body" when calling patchTeam';return this.apiClient.callApi("/api/v2/teams/{teamId}","PATCH",{teamId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postAnalyticsTeamsActivityQuery(e,i){if(i=i||{},e==null)throw'Missing the required parameter "body" when calling postAnalyticsTeamsActivityQuery';return this.apiClient.callApi("/api/v2/analytics/teams/activity/query","POST",{},{pageSize:i.pageSize,pageNumber:i.pageNumber},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postTeamMembers(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "teamId" when calling postTeamMembers';if(i==null)throw'Missing the required parameter "body" when calling postTeamMembers';return this.apiClient.callApi("/api/v2/teams/{teamId}/members","POST",{teamId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postTeams(e,i){if(i=i||{},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"],i.customHeaders)}postTeamsSearch(e,i){if(i=i||{},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"],i.customHeaders)}},Ub=class{constructor(e){this.apiClient=e||q.instance}getTelephonyAgentGreetings(e,i){if(i=i||{},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"],i.customHeaders)}getTelephonyAgentsGreetingsMe(e){return e=e||{},this.apiClient.callApi("/api/v2/telephony/agents/greetings/me","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getTelephonyCallsMetrics(e){return e=e||{},this.apiClient.callApi("/api/v2/telephony/calls/metrics","GET",{},{metricType:e.metricType},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getTelephonyMediaregions(e){return e=e||{},this.apiClient.callApi("/api/v2/telephony/mediaregions","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getTelephonySettings(e){return e=e||{},this.apiClient.callApi("/api/v2/telephony/settings","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getTelephonySipmessagesConversation(e,i){if(i=i||{},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"],i.customHeaders)}getTelephonySipmessagesConversationHeaders(e,i){if(i=i||{},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(i.keys,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getTelephonySiptraces(e,i,n){if(n=n||{},e==null)throw'Missing the required parameter "dateStart" when calling getTelephonySiptraces';if(i==null)throw'Missing the required parameter "dateEnd" when calling getTelephonySiptraces';return this.apiClient.callApi("/api/v2/telephony/siptraces","GET",{},{callId:n.callId,toUser:n.toUser,fromUser:n.fromUser,conversationId:n.conversationId,dateStart:e,dateEnd:i},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getTelephonySiptracesDownloadDownloadId(e,i){if(i=i||{},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"],i.customHeaders)}postTelephonySiptracesDownload(e,i){if(i=i||{},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"],i.customHeaders)}putTelephonyAgentGreetings(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "agentId" when calling putTelephonyAgentGreetings';if(i==null)throw'Missing the required parameter "body" when calling putTelephonyAgentGreetings';return this.apiClient.callApi("/api/v2/telephony/agents/{agentId}/greetings","PUT",{agentId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putTelephonyAgentsGreetingsMe(e,i){if(i=i||{},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"],i.customHeaders)}putTelephonySettings(e,i){if(i=i||{},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"],i.customHeaders)}},Lb=class{constructor(e){this.apiClient=e||q.instance}deleteTelephonyProvidersEdge(e,i){if(i=i||{},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"],i.customHeaders)}deleteTelephonyProvidersEdgeLogicalinterface(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "edgeId" when calling deleteTelephonyProvidersEdgeLogicalinterface';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteTelephonyProvidersEdgeSoftwareupdate(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}deleteTelephonyProvidersEdgesDidpool(e,i){if(i=i||{},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"],i.customHeaders)}deleteTelephonyProvidersEdgesEdgegroup(e,i){if(i=i||{},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"],i.customHeaders)}deleteTelephonyProvidersEdgesExtensionpool(e,i){if(i=i||{},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"],i.customHeaders)}deleteTelephonyProvidersEdgesPhone(e,i){if(i=i||{},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"],i.customHeaders)}deleteTelephonyProvidersEdgesPhonebasesetting(e,i){if(i=i||{},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"],i.customHeaders)}deleteTelephonyProvidersEdgesSite(e,i){if(i=i||{},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"],i.customHeaders)}deleteTelephonyProvidersEdgesSiteOutboundroute(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "siteId" when calling deleteTelephonyProvidersEdgesSiteOutboundroute';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteTelephonyProvidersEdgesTrunkbasesetting(e,i){if(i=i||{},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"],i.customHeaders)}getTelephonyProvidersEdge(e,i){if(i=i||{},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(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getTelephonyProvidersEdgeDiagnosticNslookup(e,i){if(i=i||{},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"],i.customHeaders)}getTelephonyProvidersEdgeDiagnosticPing(e,i){if(i=i||{},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"],i.customHeaders)}getTelephonyProvidersEdgeDiagnosticRoute(e,i){if(i=i||{},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"],i.customHeaders)}getTelephonyProvidersEdgeDiagnosticTracepath(e,i){if(i=i||{},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"],i.customHeaders)}getTelephonyProvidersEdgeLogicalinterface(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "edgeId" when calling getTelephonyProvidersEdgeLogicalinterface';if(i==null||i==="")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:i},{expand:this.apiClient.buildCollectionParam(n.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getTelephonyProvidersEdgeLogicalinterfaces(e,i){if(i=i||{},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(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getTelephonyProvidersEdgeLogsJob(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "edgeId" when calling getTelephonyProvidersEdgeLogsJob';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getTelephonyProvidersEdgeMetrics(e,i){if(i=i||{},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"],i.customHeaders)}getTelephonyProvidersEdgePhysicalinterface(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "edgeId" when calling getTelephonyProvidersEdgePhysicalinterface';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getTelephonyProvidersEdgePhysicalinterfaces(e,i){if(i=i||{},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"],i.customHeaders)}getTelephonyProvidersEdgeSetuppackage(e,i){if(i=i||{},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"],i.customHeaders)}getTelephonyProvidersEdgeSoftwareupdate(e,i){if(i=i||{},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"],i.customHeaders)}getTelephonyProvidersEdgeSoftwareversions(e,i){if(i=i||{},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"],i.customHeaders)}getTelephonyProvidersEdgeTrunks(e,i){if(i=i||{},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:i.pageNumber,pageSize:i.pageSize,sortBy:i.sortBy,sortOrder:i.sortOrder,"trunkBase.id":i.trunkBaseId,trunkType:i.trunkType},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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"],i.customHeaders)}getTelephonyProvidersEdgesDid(e,i){if(i=i||{},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"],i.customHeaders)}getTelephonyProvidersEdgesDidpool(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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(i.id,"multi"),numberMatch:i.numberMatch,pageSize:i.pageSize,pageNumber:i.pageNumber,sortOrder:i.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getTelephonyProvidersEdgesEdgegroupEdgetrunkbase(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "edgegroupId" when calling getTelephonyProvidersEdgesEdgegroupEdgetrunkbase';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.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,i){if(i=i||{},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"],i.customHeaders)}getTelephonyProvidersEdgesExtensionpool(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getTelephonyProvidersEdgesLinebasesetting(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getTelephonyProvidersEdgesLogicalinterfaces(e,i){if(i=i||{},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(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getTelephonyProvidersEdgesMediastatisticsConversation(e,i){if(i=i||{},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"],i.customHeaders)}getTelephonyProvidersEdgesMediastatisticsConversationCommunication(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getTelephonyProvidersEdgesMediastatisticsConversationCommunication';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getTelephonyProvidersEdgesMetrics(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getTelephonyProvidersEdgesPhonebasesetting(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getTelephonyProvidersEdgesPhysicalinterfaces(e,i){if(i=i||{},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"],i.customHeaders)}getTelephonyProvidersEdgesSite(e,i){if(i=i||{},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"],i.customHeaders)}getTelephonyProvidersEdgesSiteNumberplan(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "siteId" when calling getTelephonyProvidersEdgesSiteNumberplan';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getTelephonyProvidersEdgesSiteNumberplans(e,i){if(i=i||{},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"],i.customHeaders)}getTelephonyProvidersEdgesSiteNumberplansClassifications(e,i){if(i=i||{},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:i.classification},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getTelephonyProvidersEdgesSiteOutboundroute(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "siteId" when calling getTelephonyProvidersEdgesSiteOutboundroute';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getTelephonyProvidersEdgesSiteOutboundroutes(e,i){if(i=i||{},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:i.pageSize,pageNumber:i.pageNumber,name:i.name,"externalTrunkBases.ids":i.externalTrunkBasesIds,sortBy:i.sortBy},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getTelephonyProvidersEdgesSiteSiteconnections(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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"],i.customHeaders)}getTelephonyProvidersEdgesTrunkMetrics(e,i){if(i=i||{},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"],i.customHeaders)}getTelephonyProvidersEdgesTrunkbasesetting(e,i){if(i=i||{},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:i.ignoreHidden},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getTelephonyProvidersEdgesTrunkbasesettings(e){return e=e||{},this.apiClient.callApi("/api/v2/telephony/providers/edges/trunkbasesettings","GET",{},{pageNumber:e.pageNumber,pageSize:e.pageSize,sortBy:e.sortBy,sortOrder:e.sortOrder,recordingEnabled:e.recordingEnabled,ignoreHidden:e.ignoreHidden,managed:e.managed,expand:this.apiClient.buildCollectionParam(e.expand,"multi"),name:e.name},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getTelephonyProvidersEdgesTrunkbasesettingsAvailablemetabases(e){return e=e||{},this.apiClient.callApi("/api/v2/telephony/providers/edges/trunkbasesettings/availablemetabases","GET",{},{type:e.type,pageSize:e.pageSize,pageNumber:e.pageNumber},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getTelephonyProvidersEdgesTrunkbasesettingsTemplate(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "siteId" when calling patchTelephonyProvidersEdgesSiteSiteconnections';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postTelephonyProvidersEdgeDiagnosticNslookup(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "edgeId" when calling postTelephonyProvidersEdgeDiagnosticNslookup';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postTelephonyProvidersEdgeDiagnosticPing(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "edgeId" when calling postTelephonyProvidersEdgeDiagnosticPing';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postTelephonyProvidersEdgeDiagnosticRoute(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "edgeId" when calling postTelephonyProvidersEdgeDiagnosticRoute';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postTelephonyProvidersEdgeDiagnosticTracepath(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "edgeId" when calling postTelephonyProvidersEdgeDiagnosticTracepath';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postTelephonyProvidersEdgeLogicalinterfaces(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "edgeId" when calling postTelephonyProvidersEdgeLogicalinterfaces';if(i==null)throw'Missing the required parameter "body" when calling postTelephonyProvidersEdgeLogicalinterfaces';return this.apiClient.callApi("/api/v2/telephony/providers/edges/{edgeId}/logicalinterfaces","POST",{edgeId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postTelephonyProvidersEdgeLogsJobUpload(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "edgeId" when calling postTelephonyProvidersEdgeLogsJobUpload';if(i==null||i==="")throw'Missing the required parameter "jobId" when calling postTelephonyProvidersEdgeLogsJobUpload';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postTelephonyProvidersEdgeLogsJobs(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "edgeId" when calling postTelephonyProvidersEdgeLogsJobs';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postTelephonyProvidersEdgeReboot(e,i){if(i=i||{},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},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postTelephonyProvidersEdgeSoftwareupdate(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "edgeId" when calling postTelephonyProvidersEdgeSoftwareupdate';if(i==null)throw'Missing the required parameter "body" when calling postTelephonyProvidersEdgeSoftwareupdate';return this.apiClient.callApi("/api/v2/telephony/providers/edges/{edgeId}/softwareupdate","POST",{edgeId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postTelephonyProvidersEdgeStatuscode(e,i){if(i=i||{},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},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postTelephonyProvidersEdgeUnpair(e,i){if(i=i||{},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"],i.customHeaders)}postTelephonyProvidersEdges(e,i){if(i=i||{},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"],i.customHeaders)}postTelephonyProvidersEdgesAddressvalidation(e,i){if(i=i||{},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"],i.customHeaders)}postTelephonyProvidersEdgesCertificateauthorities(e,i){if(i=i||{},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"],i.customHeaders)}postTelephonyProvidersEdgesDidpools(e,i){if(i=i||{},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"],i.customHeaders)}postTelephonyProvidersEdgesEdgegroups(e,i){if(i=i||{},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"],i.customHeaders)}postTelephonyProvidersEdgesExtensionpools(e,i){if(i=i||{},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"],i.customHeaders)}postTelephonyProvidersEdgesMediastatisticsConversationCommunicationMediaresource(e,i,n,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postTelephonyProvidersEdgesMediastatisticsConversationCommunicationMediaresource';if(i==null||i==="")throw'Missing the required parameter "communicationId" when calling postTelephonyProvidersEdgesMediastatisticsConversationCommunicationMediaresource';if(n==null||n==="")throw'Missing the required parameter "mediaResourceId" when calling postTelephonyProvidersEdgesMediastatisticsConversationCommunicationMediaresource';if(a==null)throw'Missing the required parameter "body" when calling postTelephonyProvidersEdgesMediastatisticsConversationCommunicationMediaresource';return this.apiClient.callApi("/api/v2/telephony/providers/edges/mediastatistics/conversations/{conversationId}/communications/{communicationId}/mediaresources/{mediaResourceId}","POST",{conversationId:e,communicationId:i,mediaResourceId:n},{},{},{},a,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}postTelephonyProvidersEdgesPhoneReboot(e,i){if(i=i||{},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"],i.customHeaders)}postTelephonyProvidersEdgesPhonebasesettings(e,i){if(i=i||{},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"],i.customHeaders)}postTelephonyProvidersEdgesPhones(e,i){if(i=i||{},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"],i.customHeaders)}postTelephonyProvidersEdgesPhonesReboot(e,i){if(i=i||{},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"],i.customHeaders)}postTelephonyProvidersEdgesSiteOutboundroutes(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "siteId" when calling postTelephonyProvidersEdgesSiteOutboundroutes';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postTelephonyProvidersEdgesSites(e,i){if(i=i||{},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"],i.customHeaders)}postTelephonyProvidersEdgesSitesSearch(e,i){if(i=i||{},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"],i.customHeaders)}postTelephonyProvidersEdgesTrunkbasesettings(e,i){if(i=i||{},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"],i.customHeaders)}putTelephonyProvidersEdge(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "edgeId" when calling putTelephonyProvidersEdge';if(i==null)throw'Missing the required parameter "body" when calling putTelephonyProvidersEdge';return this.apiClient.callApi("/api/v2/telephony/providers/edges/{edgeId}","PUT",{edgeId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putTelephonyProvidersEdgeLogicalinterface(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "edgeId" when calling putTelephonyProvidersEdgeLogicalinterface';if(i==null||i==="")throw'Missing the required parameter "interfaceId" when calling putTelephonyProvidersEdgeLogicalinterface';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}putTelephonyProvidersEdgesAlertablepresences(e,i){if(i=i||{},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"],i.customHeaders)}putTelephonyProvidersEdgesCertificateauthority(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "certificateId" when calling putTelephonyProvidersEdgesCertificateauthority';if(i==null)throw'Missing the required parameter "body" when calling putTelephonyProvidersEdgesCertificateauthority';return this.apiClient.callApi("/api/v2/telephony/providers/edges/certificateauthorities/{certificateId}","PUT",{certificateId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putTelephonyProvidersEdgesDidpool(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "didPoolId" when calling putTelephonyProvidersEdgesDidpool';if(i==null)throw'Missing the required parameter "body" when calling putTelephonyProvidersEdgesDidpool';return this.apiClient.callApi("/api/v2/telephony/providers/edges/didpools/{didPoolId}","PUT",{didPoolId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putTelephonyProvidersEdgesEdgegroup(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "edgeGroupId" when calling putTelephonyProvidersEdgesEdgegroup';if(i==null)throw'Missing the required parameter "body" when calling putTelephonyProvidersEdgesEdgegroup';return this.apiClient.callApi("/api/v2/telephony/providers/edges/edgegroups/{edgeGroupId}","PUT",{edgeGroupId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putTelephonyProvidersEdgesEdgegroupEdgetrunkbase(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "edgegroupId" when calling putTelephonyProvidersEdgesEdgegroupEdgetrunkbase';if(i==null||i==="")throw'Missing the required parameter "edgetrunkbaseId" when calling putTelephonyProvidersEdgesEdgegroupEdgetrunkbase';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}putTelephonyProvidersEdgesExtensionpool(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "extensionPoolId" when calling putTelephonyProvidersEdgesExtensionpool';if(i==null)throw'Missing the required parameter "body" when calling putTelephonyProvidersEdgesExtensionpool';return this.apiClient.callApi("/api/v2/telephony/providers/edges/extensionpools/{extensionPoolId}","PUT",{extensionPoolId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putTelephonyProvidersEdgesPhone(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "phoneId" when calling putTelephonyProvidersEdgesPhone';if(i==null)throw'Missing the required parameter "body" when calling putTelephonyProvidersEdgesPhone';return this.apiClient.callApi("/api/v2/telephony/providers/edges/phones/{phoneId}","PUT",{phoneId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putTelephonyProvidersEdgesPhonebasesetting(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "phoneBaseId" when calling putTelephonyProvidersEdgesPhonebasesetting';if(i==null)throw'Missing the required parameter "body" when calling putTelephonyProvidersEdgesPhonebasesetting';return this.apiClient.callApi("/api/v2/telephony/providers/edges/phonebasesettings/{phoneBaseId}","PUT",{phoneBaseId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putTelephonyProvidersEdgesSite(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "siteId" when calling putTelephonyProvidersEdgesSite';if(i==null)throw'Missing the required parameter "body" when calling putTelephonyProvidersEdgesSite';return this.apiClient.callApi("/api/v2/telephony/providers/edges/sites/{siteId}","PUT",{siteId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putTelephonyProvidersEdgesSiteNumberplans(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "siteId" when calling putTelephonyProvidersEdgesSiteNumberplans';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putTelephonyProvidersEdgesSiteOutboundroute(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "siteId" when calling putTelephonyProvidersEdgesSiteOutboundroute';if(i==null||i==="")throw'Missing the required parameter "outboundRouteId" when calling putTelephonyProvidersEdgesSiteOutboundroute';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}putTelephonyProvidersEdgesSiteSiteconnections(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "siteId" when calling putTelephonyProvidersEdgesSiteSiteconnections';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putTelephonyProvidersEdgesTrunkbasesetting(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "trunkBaseSettingsId" when calling putTelephonyProvidersEdgesTrunkbasesetting';if(i==null)throw'Missing the required parameter "body" when calling putTelephonyProvidersEdgesTrunkbasesetting';return this.apiClient.callApi("/api/v2/telephony/providers/edges/trunkbasesettings/{trunkBaseSettingsId}","PUT",{trunkBaseSettingsId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}},Wb=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,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "sessionId" when calling postTextbotsBotflowsSessionTurns';if(i==null)throw'Missing the required parameter "turnRequest" when calling postTextbotsBotflowsSessionTurns';return this.apiClient.callApi("/api/v2/textbots/botflows/sessions/{sessionId}/turns","POST",{sessionId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postTextbotsBotflowsSessions(e,i){if(i=i||{},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"],i.customHeaders)}postTextbotsBotsExecute(e,i){if(i=i||{},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"],i.customHeaders)}},Bb=class{constructor(e){this.apiClient=e||q.instance}deleteToken(e,i){if(i=i||{},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"],i.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)}},Fb=class{constructor(e){this.apiClient=e||q.instance}getKnowledgeKnowledgebaseUploadsUrlsJob(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling getKnowledgeKnowledgebaseUploadsUrlsJob';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postGamificationContestsUploadsPrizeimages(e,i){if(i=i||{},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"],i.customHeaders)}postGuidesUploads(e,i){if(i=i||{},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"],i.customHeaders)}postIntegrationsActionDraftFunctionUpload(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "actionId" when calling postIntegrationsActionDraftFunctionUpload';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postKnowledgeDocumentuploads(e,i){if(i=i||{},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"],i.customHeaders)}postKnowledgeKnowledgebaseUploadsUrlsJobs(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseUploadsUrlsJobs';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postLanguageunderstandingMinerUploads(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "minerId" when calling postLanguageunderstandingMinerUploads';if(i==null)throw'Missing the required parameter "body" when calling postLanguageunderstandingMinerUploads';return this.apiClient.callApi("/api/v2/languageunderstanding/miners/{minerId}/uploads","POST",{minerId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postUploadsLearningCoverart(e,i){if(i=i||{},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"],i.customHeaders)}postUploadsPublicassetsImages(e,i){if(i=i||{},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"],i.customHeaders)}postUploadsRecordings(e,i){if(i=i||{},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"],i.customHeaders)}postUploadsWorkforcemanagementHistoricaldataCsv(e,i){if(i=i||{},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"],i.customHeaders)}},Vb=class{constructor(e){this.apiClient=e||q.instance}getOauthClientUsageQueryResult(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "executionId" when calling getOauthClientUsageQueryResult';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getOauthClientUsageSummary(e,i){if(i=i||{},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:i.days},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getUsageAggregatesQueryJob(e,i){if(i=i||{},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:i.pageSize,after:i.after},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getUsageClientClientIdAggregatesQueryJob(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "clientId" when calling getUsageClientClientIdAggregatesQueryJob';if(i==null||i==="")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:i},{pageSize:n.pageSize,after:n.after},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getUsageQueryExecutionIdResults(e,i){if(i=i||{},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"],i.customHeaders)}getUsageSimplesearchExecutionIdResults(e,i){if(i=i||{},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:i.after,pageSize:i.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postOauthClientUsageQuery(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "clientId" when calling postOauthClientUsageQuery';if(i==null)throw'Missing the required parameter "body" when calling postOauthClientUsageQuery';return this.apiClient.callApi("/api/v2/oauth/clients/{clientId}/usage/query","POST",{clientId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postUsageAggregatesQueryJobs(e,i){if(i=i||{},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"],i.customHeaders)}postUsageClientClientIdAggregatesQueryJobs(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "clientId" when calling postUsageClientClientIdAggregatesQueryJobs';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postUsageQuery(e,i){if(i=i||{},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"],i.customHeaders)}postUsageSimplesearch(e,i){if(i=i||{},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"],i.customHeaders)}},Jb=class{constructor(e){this.apiClient=e||q.instance}deleteUserrecording(e,i){if(i=i||{},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"],i.customHeaders)}getUserrecording(e,i){if(i=i||{},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(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getUserrecordingTranscoding(e,i){if(i=i||{},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:i.formatId},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "recordingId" when calling putUserrecording';if(i==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(n.expand,"multi")},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}},Zb=class{constructor(e){this.apiClient=e||q.instance}deleteAnalyticsUsersAggregatesJob(e,i){if(i=i||{},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"],i.customHeaders)}deleteAnalyticsUsersDetailsJob(e,i){if(i=i||{},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"],i.customHeaders)}deleteAuthorizationSubjectDivisionRole(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "subjectId" when calling deleteAuthorizationSubjectDivisionRole';if(i==null||i==="")throw'Missing the required parameter "divisionId" when calling deleteAuthorizationSubjectDivisionRole';if(n==null||n==="")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:i,roleId:n},{},{},{},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,i){if(i=i||{},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"],i.customHeaders)}deleteRoutingUserUtilization(e,i){if(i=i||{},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"],i.customHeaders)}deleteUser(e,i){if(i=i||{},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"],i.customHeaders)}deleteUserCustomattribute(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling deleteUserCustomattribute';if(i==null||i==="")throw'Missing the required parameter "schemaId" when calling deleteUserCustomattribute';return this.apiClient.callApi("/api/v2/users/{userId}/customattributes/{schemaId}","DELETE",{userId:e,schemaId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteUserExternalidAuthorityNameExternalKey(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "userId" when calling deleteUserExternalidAuthorityNameExternalKey';if(i==null||i==="")throw'Missing the required parameter "authorityName" when calling deleteUserExternalidAuthorityNameExternalKey';if(n==null||n==="")throw'Missing the required parameter "externalKey" when calling deleteUserExternalidAuthorityNameExternalKey';return this.apiClient.callApi("/api/v2/users/{userId}/externalid/{authorityName}/{externalKey}","DELETE",{userId:e,authorityName:i,externalKey:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}deleteUserRoutinglanguage(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling deleteUserRoutinglanguage';if(i==null||i==="")throw'Missing the required parameter "languageId" when calling deleteUserRoutinglanguage';return this.apiClient.callApi("/api/v2/users/{userId}/routinglanguages/{languageId}","DELETE",{userId:e,languageId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteUserRoutingskill(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling deleteUserRoutingskill';if(i==null||i==="")throw'Missing the required parameter "skillId" when calling deleteUserRoutingskill';return this.apiClient.callApi("/api/v2/users/{userId}/routingskills/{skillId}","DELETE",{userId:e,skillId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteUserStationAssociatedstation(e,i){if(i=i||{},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"],i.customHeaders)}deleteUserStationDefaultstation(e,i){if(i=i||{},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"],i.customHeaders)}deleteUserVerifier(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling deleteUserVerifier';if(i==null||i==="")throw'Missing the required parameter "verifierId" when calling deleteUserVerifier';return this.apiClient.callApi("/api/v2/users/{userId}/verifiers/{verifierId}","DELETE",{userId:e,verifierId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteUsersCustomattributesSchema(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getAnalyticsUsersAggregatesJobResults(e,i){if(i=i||{},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:i.cursor},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getAnalyticsUsersDetailsJob(e,i){if(i=i||{},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"],i.customHeaders)}getAnalyticsUsersDetailsJobResults(e,i){if(i=i||{},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:i.cursor,pageSize:i.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},e==null)throw'Missing the required parameter "permission" when calling getAuthorizationDivisionspermittedMe';return this.apiClient.callApi("/api/v2/authorization/divisionspermitted/me","GET",{},{name:i.name,permission:e},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getAuthorizationDivisionspermittedPagedMe(e,i){if(i=i||{},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:i.pageNumber,pageSize:i.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getAuthorizationDivisionspermittedPagedSubjectId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "subjectId" when calling getAuthorizationDivisionspermittedPagedSubjectId';if(i==null)throw'Missing the required parameter "permission" when calling getAuthorizationDivisionspermittedPagedSubjectId';return this.apiClient.callApi("/api/v2/authorization/divisionspermitted/paged/{subjectId}","GET",{subjectId:e},{permission:i,pageNumber:n.pageNumber,pageSize:n.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getAuthorizationSubject(e,i){if(i=i||{},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:i.includeDuplicates},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getRoutingUserUtilization(e,i){if(i=i||{},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"],i.customHeaders)}getUser(e,i){if(i=i||{},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(i.expand,"multi"),integrationPresenceSource:i.integrationPresenceSource,userCustomAttributeSchemaIds:this.apiClient.buildCollectionParam(i.userCustomAttributeSchemaIds,"multi"),state:i.state},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getUserAdjacents(e,i){if(i=i||{},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(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getUserCallforwarding(e,i){if(i=i||{},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"],i.customHeaders)}getUserCustomattribute(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling getUserCustomattribute';if(i==null||i==="")throw'Missing the required parameter "schemaId" when calling getUserCustomattribute';return this.apiClient.callApi("/api/v2/users/{userId}/customattributes/{schemaId}","GET",{userId:e,schemaId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getUserCustomattributesBulk(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling getUserCustomattributesBulk';if(i==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(i,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getUserDirectreports(e,i){if(i=i||{},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(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getUserExternalid(e,i){if(i=i||{},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"],i.customHeaders)}getUserExternalidAuthorityName(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling getUserExternalidAuthorityName';if(i==null||i==="")throw'Missing the required parameter "authorityName" when calling getUserExternalidAuthorityName';return this.apiClient.callApi("/api/v2/users/{userId}/externalid/{authorityName}","GET",{userId:e,authorityName:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getUserFavorites(e,i){if(i=i||{},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:i.pageSize,pageNumber:i.pageNumber,sortOrder:i.sortOrder,expand:this.apiClient.buildCollectionParam(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getUserGeolocation(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling getUserGeolocation';if(i==null||i==="")throw'Missing the required parameter "clientId" when calling getUserGeolocation';return this.apiClient.callApi("/api/v2/users/{userId}/geolocations/{clientId}","GET",{userId:e,clientId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getUserOutofoffice(e,i){if(i=i||{},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"],i.customHeaders)}getUserProfile(e,i){if(i=i||{},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(i.expand,"multi"),integrationPresenceSource:i.integrationPresenceSource},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getUserProfileskills(e,i){if(i=i||{},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"],i.customHeaders)}getUserQueues(e,i){if(i=i||{},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:i.pageSize,pageNumber:i.pageNumber,joined:i.joined,divisionId:this.apiClient.buildCollectionParam(i.divisionId,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getUserRoles(e,i){if(i=i||{},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"],i.customHeaders)}getUserRoutinglanguages(e,i){if(i=i||{},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:i.pageSize,pageNumber:i.pageNumber,sortOrder:i.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getUserRoutingskills(e,i){if(i=i||{},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:i.pageSize,pageNumber:i.pageNumber,sortOrder:i.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getUserRoutingstatus(e,i){if(i=i||{},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"],i.customHeaders)}getUserSkillgroups(e,i){if(i=i||{},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:i.pageSize,after:i.after,before:i.before},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getUserState(e,i){if(i=i||{},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"],i.customHeaders)}getUserStation(e,i){if(i=i||{},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"],i.customHeaders)}getUserSuperiors(e,i){if(i=i||{},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(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getUserTrustors(e,i){if(i=i||{},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:i.pageSize,pageNumber:i.pageNumber},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getUserVerifiers(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getUsersCustomattributesSchemaVersion(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "schemaId" when calling getUsersCustomattributesSchemaVersion';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getUsersCustomattributesSchemaVersions(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "activityId" when calling getUsersDevelopmentActivity';if(i==null)throw'Missing the required parameter "type" when calling getUsersDevelopmentActivity';return this.apiClient.callApi("/api/v2/users/development/activities/{activityId}","GET",{activityId:e},{type:i},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getUsersExternalidAuthorityNameExternalKey(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "authorityName" when calling getUsersExternalidAuthorityNameExternalKey';if(i==null||i==="")throw'Missing the required parameter "externalKey" when calling getUsersExternalidAuthorityNameExternalKey';return this.apiClient.callApi("/api/v2/users/externalid/{authorityName}/{externalKey}","GET",{authorityName:e,externalKey:i},{expand:this.apiClient.buildCollectionParam(n.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getUsersMe(e){return e=e||{},this.apiClient.callApi("/api/v2/users/me","GET",{},{expand:this.apiClient.buildCollectionParam(e.expand,"multi"),integrationPresenceSource:e.integrationPresenceSource,userCustomAttributeSchemaIds:this.apiClient.buildCollectionParam(e.userCustomAttributeSchemaIds,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getUsersQuery(e){return e=e||{},this.apiClient.callApi("/api/v2/users/query","GET",{},{cursor:e.cursor,pageSize:e.pageSize,sortOrder:e.sortOrder,expand:this.apiClient.buildCollectionParam(e.expand,"multi"),integrationPresenceSource:e.integrationPresenceSource,userCustomAttributeSchemaIds:this.apiClient.buildCollectionParam(e.userCustomAttributeSchemaIds,"multi"),state:e.state},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getUsersSearch(e,i){if(i=i||{},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(i.expand,"multi"),integrationPresenceSource:i.integrationPresenceSource},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling patchUser';if(i==null)throw'Missing the required parameter "body" when calling patchUser';return this.apiClient.callApi("/api/v2/users/{userId}","PATCH",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchUserCallforwarding(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling patchUserCallforwarding';if(i==null)throw'Missing the required parameter "body" when calling patchUserCallforwarding';return this.apiClient.callApi("/api/v2/users/{userId}/callforwarding","PATCH",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchUserCustomattributes(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling patchUserCustomattributes';if(i==null)throw'Missing the required parameter "userCustomAttributes" when calling patchUserCustomattributes';return this.apiClient.callApi("/api/v2/users/{userId}/customattributes","PATCH",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchUserCustomattributesBulk(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling patchUserCustomattributesBulk';if(i==null)throw'Missing the required parameter "userCustomAttributesList" when calling patchUserCustomattributesBulk';return this.apiClient.callApi("/api/v2/users/{userId}/customattributes/bulk","PATCH",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchUserGeolocation(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "userId" when calling patchUserGeolocation';if(i==null||i==="")throw'Missing the required parameter "clientId" when calling patchUserGeolocation';if(n==null)throw'Missing the required parameter "body" when calling patchUserGeolocation';return this.apiClient.callApi("/api/v2/users/{userId}/geolocations/{clientId}","PATCH",{userId:e,clientId:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchUserQueue(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "queueId" when calling patchUserQueue';if(i==null||i==="")throw'Missing the required parameter "userId" when calling patchUserQueue';if(n==null)throw'Missing the required parameter "body" when calling patchUserQueue';return this.apiClient.callApi("/api/v2/users/{userId}/queues/{queueId}","PATCH",{queueId:e,userId:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchUserQueues(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling patchUserQueues';if(i==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(n.divisionId,"multi")},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchUserRoutinglanguage(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "userId" when calling patchUserRoutinglanguage';if(i==null||i==="")throw'Missing the required parameter "languageId" when calling patchUserRoutinglanguage';if(n==null)throw'Missing the required parameter "body" when calling patchUserRoutinglanguage';return this.apiClient.callApi("/api/v2/users/{userId}/routinglanguages/{languageId}","PATCH",{userId:e,languageId:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchUserRoutinglanguagesBulk(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling patchUserRoutinglanguagesBulk';if(i==null)throw'Missing the required parameter "body" when calling patchUserRoutinglanguagesBulk';return this.apiClient.callApi("/api/v2/users/{userId}/routinglanguages/bulk","PATCH",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchUserRoutingskillsBulk(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling patchUserRoutingskillsBulk';if(i==null)throw'Missing the required parameter "body" when calling patchUserRoutingskillsBulk';return this.apiClient.callApi("/api/v2/users/{userId}/routingskills/bulk","PATCH",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchUsersBulk(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsUsersActivityQuery(e,i){if(i=i||{},e==null)throw'Missing the required parameter "body" when calling postAnalyticsUsersActivityQuery';return this.apiClient.callApi("/api/v2/analytics/users/activity/query","POST",{},{pageSize:i.pageSize,pageNumber:i.pageNumber},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postAnalyticsUsersAggregatesJobs(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsUsersAggregatesQuery(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsUsersDetailsJobs(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsUsersDetailsQuery(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsUsersObservationsQuery(e,i){if(i=i||{},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"],i.customHeaders)}postAuthorizationSubjectBulkadd(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "subjectId" when calling postAuthorizationSubjectBulkadd';if(i==null)throw'Missing the required parameter "body" when calling postAuthorizationSubjectBulkadd';return this.apiClient.callApi("/api/v2/authorization/subjects/{subjectId}/bulkadd","POST",{subjectId:e},{subjectType:n.subjectType},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postAuthorizationSubjectBulkremove(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "subjectId" when calling postAuthorizationSubjectBulkremove';if(i==null)throw'Missing the required parameter "body" when calling postAuthorizationSubjectBulkremove';return this.apiClient.callApi("/api/v2/authorization/subjects/{subjectId}/bulkremove","POST",{subjectId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postAuthorizationSubjectBulkreplace(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "subjectId" when calling postAuthorizationSubjectBulkreplace';if(i==null)throw'Missing the required parameter "body" when calling postAuthorizationSubjectBulkreplace';return this.apiClient.callApi("/api/v2/authorization/subjects/{subjectId}/bulkreplace","POST",{subjectId:e},{subjectType:n.subjectType},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postAuthorizationSubjectDivisionRole(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "subjectId" when calling postAuthorizationSubjectDivisionRole';if(i==null||i==="")throw'Missing the required parameter "divisionId" when calling postAuthorizationSubjectDivisionRole';if(n==null||n==="")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:i,roleId:n},{subjectType:a.subjectType},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postUserExternalid(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling postUserExternalid';if(i==null)throw'Missing the required parameter "body" when calling postUserExternalid';return this.apiClient.callApi("/api/v2/users/{userId}/externalid","POST",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postUserInvite(e,i){if(i=i||{},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:i.force},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postUserPassword(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling postUserPassword';if(i==null)throw'Missing the required parameter "body" when calling postUserPassword';return this.apiClient.callApi("/api/v2/users/{userId}/password","POST",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postUserRoutinglanguages(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling postUserRoutinglanguages';if(i==null)throw'Missing the required parameter "body" when calling postUserRoutinglanguages';return this.apiClient.callApi("/api/v2/users/{userId}/routinglanguages","POST",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postUserRoutingskills(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling postUserRoutingskills';if(i==null)throw'Missing the required parameter "body" when calling postUserRoutingskills';return this.apiClient.callApi("/api/v2/users/{userId}/routingskills","POST",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postUsers(e,i){if(i=i||{},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"],i.customHeaders)}postUsersCustomattributesSchemas(e,i){if(i=i||{},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"],i.customHeaders)}postUsersDevelopmentActivitiesAggregatesQuery(e,i){if(i=i||{},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"],i.customHeaders)}postUsersMePassword(e,i){if(i=i||{},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"],i.customHeaders)}postUsersSearch(e,i){if(i=i||{},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"],i.customHeaders)}postUsersSearchConversationTarget(e,i){if(i=i||{},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"],i.customHeaders)}postUsersSearchQueuemembersManage(e,i){if(i=i||{},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"],i.customHeaders)}postUsersSearchTeamsAssign(e,i){if(i=i||{},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"],i.customHeaders)}putRoutingDirectroutingbackupSettingsMe(e,i){if(i=i||{},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"],i.customHeaders)}putRoutingUserDirectroutingbackupSettings(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling putRoutingUserDirectroutingbackupSettings';if(i==null)throw'Missing the required parameter "body" when calling putRoutingUserDirectroutingbackupSettings';return this.apiClient.callApi("/api/v2/routing/users/{userId}/directroutingbackup/settings","PUT",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putRoutingUserUtilization(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling putRoutingUserUtilization';if(i==null)throw'Missing the required parameter "body" when calling putRoutingUserUtilization';return this.apiClient.callApi("/api/v2/routing/users/{userId}/utilization","PUT",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putUserCallforwarding(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling putUserCallforwarding';if(i==null)throw'Missing the required parameter "body" when calling putUserCallforwarding';return this.apiClient.callApi("/api/v2/users/{userId}/callforwarding","PUT",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putUserCustomattributes(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling putUserCustomattributes';if(i==null)throw'Missing the required parameter "userCustomAttributes" when calling putUserCustomattributes';return this.apiClient.callApi("/api/v2/users/{userId}/customattributes","PUT",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putUserOutofoffice(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling putUserOutofoffice';if(i==null)throw'Missing the required parameter "body" when calling putUserOutofoffice';return this.apiClient.callApi("/api/v2/users/{userId}/outofoffice","PUT",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putUserProfileskills(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling putUserProfileskills';if(i==null)throw'Missing the required parameter "body" when calling putUserProfileskills';return this.apiClient.callApi("/api/v2/users/{userId}/profileskills","PUT",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putUserRoles(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "subjectId" when calling putUserRoles';if(i==null)throw'Missing the required parameter "body" when calling putUserRoles';return this.apiClient.callApi("/api/v2/users/{subjectId}/roles","PUT",{subjectId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putUserRoutingskill(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "userId" when calling putUserRoutingskill';if(i==null||i==="")throw'Missing the required parameter "skillId" when calling putUserRoutingskill';if(n==null)throw'Missing the required parameter "body" when calling putUserRoutingskill';return this.apiClient.callApi("/api/v2/users/{userId}/routingskills/{skillId}","PUT",{userId:e,skillId:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}putUserRoutingskillsBulk(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling putUserRoutingskillsBulk';if(i==null)throw'Missing the required parameter "body" when calling putUserRoutingskillsBulk';return this.apiClient.callApi("/api/v2/users/{userId}/routingskills/bulk","PUT",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putUserRoutingstatus(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling putUserRoutingstatus';if(i==null)throw'Missing the required parameter "body" when calling putUserRoutingstatus';return this.apiClient.callApi("/api/v2/users/{userId}/routingstatus","PUT",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putUserState(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling putUserState';if(i==null)throw'Missing the required parameter "body" when calling putUserState';return this.apiClient.callApi("/api/v2/users/{userId}/state","PUT",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putUserStationAssociatedstationStationId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling putUserStationAssociatedstationStationId';if(i==null||i==="")throw'Missing the required parameter "stationId" when calling putUserStationAssociatedstationStationId';return this.apiClient.callApi("/api/v2/users/{userId}/station/associatedstation/{stationId}","PUT",{userId:e,stationId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putUserStationDefaultstationStationId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling putUserStationDefaultstationStationId';if(i==null||i==="")throw'Missing the required parameter "stationId" when calling putUserStationDefaultstationStationId';return this.apiClient.callApi("/api/v2/users/{userId}/station/defaultstation/{stationId}","PUT",{userId:e,stationId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putUserVerifier(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "userId" when calling putUserVerifier';if(i==null||i==="")throw'Missing the required parameter "verifierId" when calling putUserVerifier';if(n==null)throw'Missing the required parameter "body" when calling putUserVerifier';return this.apiClient.callApi("/api/v2/users/{userId}/verifiers/{verifierId}","PUT",{userId:e,verifierId:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}putUsersCustomattributesSchema(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "schemaId" when calling putUsersCustomattributesSchema';if(i==null)throw'Missing the required parameter "body" when calling putUsersCustomattributesSchema';return this.apiClient.callApi("/api/v2/users/customattributes/schemas/{schemaId}","PUT",{schemaId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putUsersStationsMeAssociatedstationStationId(e,i){if(i=i||{},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"],i.customHeaders)}},Kb=class{constructor(e){this.apiClient=e||q.instance}deleteUsersRule(e,i){if(i=i||{},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"],i.customHeaders)}getUsersRule(e,i){if(i=i||{},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"],i.customHeaders)}getUsersRuleDependentTypeId(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "ruleId" when calling getUsersRuleDependentTypeId';if(i==null||i==="")throw'Missing the required parameter "ruleType" when calling getUsersRuleDependentTypeId';if(n==null||n==="")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:i,typeId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getUsersRuleDependents(e,i){if(i=i||{},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:i.pageSize,pageNumber:i.pageNumber,sortOrder:i.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getUsersRules(e,i){if(i=i||{},e==null)throw'Missing the required parameter "types" when calling getUsersRules';return this.apiClient.callApi("/api/v2/users/rules","GET",{},{pageNumber:i.pageNumber,pageSize:i.pageSize,types:this.apiClient.buildCollectionParam(e,"multi"),expand:this.apiClient.buildCollectionParam(i.expand,"multi"),enabled:i.enabled,searchTerm:i.searchTerm,sortOrder:i.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getUsersRulesSetting(e,i){if(i=i||{},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"],i.customHeaders)}patchUsersRule(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "ruleId" when calling patchUsersRule';if(i==null)throw'Missing the required parameter "body" when calling patchUsersRule';return this.apiClient.callApi("/api/v2/users/rules/{ruleId}","PATCH",{ruleId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postUsersRules(e,i){if(i=i||{},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"],i.customHeaders)}postUsersRulesQuery(e,i){if(i=i||{},e==null)throw'Missing the required parameter "body" when calling postUsersRulesQuery';return this.apiClient.callApi("/api/v2/users/rules/query","POST",{},{pageNumber:i.pageNumber,pageSize:i.pageSize},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}},Qb=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,i){if(i=i||{},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"],i.customHeaders)}},Yb=class{constructor(e){this.apiClient=e||q.instance}deleteVoicemailMessage(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getVoicemailGroupMessages(e,i){if(i=i||{},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:i.pageSize,pageNumber:i.pageNumber},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getVoicemailGroupPolicy(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getVoicemailMessageMedia(e,i){if(i=i||{},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:i.formatId},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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:i.pageSize,pageNumber:i.pageNumber},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getVoicemailSearch(e,i){if(i=i||{},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(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getVoicemailUserMailbox(e,i){if(i=i||{},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"],i.customHeaders)}getVoicemailUserMessages(e,i){if(i=i||{},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:i.pageSize,pageNumber:i.pageNumber},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getVoicemailUserpolicy(e,i){if(i=i||{},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"],i.customHeaders)}patchVoicemailGroupPolicy(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "groupId" when calling patchVoicemailGroupPolicy';if(i==null)throw'Missing the required parameter "body" when calling patchVoicemailGroupPolicy';return this.apiClient.callApi("/api/v2/voicemail/groups/{groupId}/policy","PATCH",{groupId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchVoicemailMePolicy(e,i){if(i=i||{},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"],i.customHeaders)}patchVoicemailMessage(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "messageId" when calling patchVoicemailMessage';if(i==null)throw'Missing the required parameter "body" when calling patchVoicemailMessage';return this.apiClient.callApi("/api/v2/voicemail/messages/{messageId}","PATCH",{messageId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchVoicemailUserpolicy(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling patchVoicemailUserpolicy';if(i==null)throw'Missing the required parameter "body" when calling patchVoicemailUserpolicy';return this.apiClient.callApi("/api/v2/voicemail/userpolicies/{userId}","PATCH",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.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,i){if(i=i||{},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"],i.customHeaders)}putVoicemailMessage(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "messageId" when calling putVoicemailMessage';if(i==null)throw'Missing the required parameter "body" when calling putVoicemailMessage';return this.apiClient.callApi("/api/v2/voicemail/messages/{messageId}","PUT",{messageId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putVoicemailPolicy(e,i){if(i=i||{},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"],i.customHeaders)}putVoicemailUserpolicy(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling putVoicemailUserpolicy';if(i==null)throw'Missing the required parameter "body" when calling putVoicemailUserpolicy';return this.apiClient.callApi("/api/v2/voicemail/userpolicies/{userId}","PUT",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}},Xb=class{constructor(e){this.apiClient=e||q.instance}deleteWebchatDeployment(e,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "deploymentId" when calling deleteWebchatDeployment';return this.apiClient.callApi("/api/v2/webchat/deployments/{deploymentId}","DELETE",{deploymentId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}deleteWebchatGuestConversationMember(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling deleteWebchatGuestConversationMember';if(i==null||i==="")throw'Missing the required parameter "memberId" when calling deleteWebchatGuestConversationMember';return this.apiClient.callApi("/api/v2/webchat/guest/conversations/{conversationId}/members/{memberId}","DELETE",{conversationId:e,memberId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteWebchatSettings(e){return e=e||{},this.apiClient.callApi("/api/v2/webchat/settings","DELETE",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getWebchatDeployment(e,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "deploymentId" when calling getWebchatDeployment';return this.apiClient.callApi("/api/v2/webchat/deployments/{deploymentId}","GET",{deploymentId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getWebchatDeployments(e){return e=e||{},this.apiClient.callApi("/api/v2/webchat/deployments","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getWebchatGuestConversationMediarequest(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getWebchatGuestConversationMediarequest';if(i==null||i==="")throw'Missing the required parameter "mediaRequestId" when calling getWebchatGuestConversationMediarequest';return this.apiClient.callApi("/api/v2/webchat/guest/conversations/{conversationId}/mediarequests/{mediaRequestId}","GET",{conversationId:e,mediaRequestId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWebchatGuestConversationMediarequests(e,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getWebchatGuestConversationMediarequests';return this.apiClient.callApi("/api/v2/webchat/guest/conversations/{conversationId}/mediarequests","GET",{conversationId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getWebchatGuestConversationMember(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getWebchatGuestConversationMember';if(i==null||i==="")throw'Missing the required parameter "memberId" when calling getWebchatGuestConversationMember';return this.apiClient.callApi("/api/v2/webchat/guest/conversations/{conversationId}/members/{memberId}","GET",{conversationId:e,memberId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWebchatGuestConversationMembers(e,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getWebchatGuestConversationMembers';return this.apiClient.callApi("/api/v2/webchat/guest/conversations/{conversationId}/members","GET",{conversationId:e},{pageSize:i.pageSize,pageNumber:i.pageNumber,excludeDisconnectedMembers:i.excludeDisconnectedMembers},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getWebchatGuestConversationMessage(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getWebchatGuestConversationMessage';if(i==null||i==="")throw'Missing the required parameter "messageId" when calling getWebchatGuestConversationMessage';return this.apiClient.callApi("/api/v2/webchat/guest/conversations/{conversationId}/messages/{messageId}","GET",{conversationId:e,messageId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWebchatGuestConversationMessages(e,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getWebchatGuestConversationMessages';return this.apiClient.callApi("/api/v2/webchat/guest/conversations/{conversationId}/messages","GET",{conversationId:e},{after:i.after,before:i.before,sortOrder:i.sortOrder,maxResults:i.maxResults},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getWebchatSettings(e){return e=e||{},this.apiClient.callApi("/api/v2/webchat/settings","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}patchWebchatGuestConversationMediarequest(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchWebchatGuestConversationMediarequest';if(i==null||i==="")throw'Missing the required parameter "mediaRequestId" when calling patchWebchatGuestConversationMediarequest';if(n==null)throw'Missing the required parameter "body" when calling patchWebchatGuestConversationMediarequest';return this.apiClient.callApi("/api/v2/webchat/guest/conversations/{conversationId}/mediarequests/{mediaRequestId}","PATCH",{conversationId:e,mediaRequestId:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postWebchatDeployments(e,i){if(i=i||{},e==null)throw'Missing the required parameter "body" when calling postWebchatDeployments';return this.apiClient.callApi("/api/v2/webchat/deployments","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postWebchatGuestConversationMemberMessages(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postWebchatGuestConversationMemberMessages';if(i==null||i==="")throw'Missing the required parameter "memberId" when calling postWebchatGuestConversationMemberMessages';if(n==null)throw'Missing the required parameter "body" when calling postWebchatGuestConversationMemberMessages';return this.apiClient.callApi("/api/v2/webchat/guest/conversations/{conversationId}/members/{memberId}/messages","POST",{conversationId:e,memberId:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postWebchatGuestConversationMemberTyping(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postWebchatGuestConversationMemberTyping';if(i==null||i==="")throw'Missing the required parameter "memberId" when calling postWebchatGuestConversationMemberTyping';return this.apiClient.callApi("/api/v2/webchat/guest/conversations/{conversationId}/members/{memberId}/typing","POST",{conversationId:e,memberId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWebchatGuestConversations(e,i){if(i=i||{},e==null)throw'Missing the required parameter "body" when calling postWebchatGuestConversations';return this.apiClient.callApi("/api/v2/webchat/guest/conversations","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}putWebchatDeployment(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "deploymentId" when calling putWebchatDeployment';if(i==null)throw'Missing the required parameter "body" when calling putWebchatDeployment';return this.apiClient.callApi("/api/v2/webchat/deployments/{deploymentId}","PUT",{deploymentId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putWebchatSettings(e,i){if(i=i||{},e==null)throw'Missing the required parameter "body" when calling putWebchatSettings';return this.apiClient.callApi("/api/v2/webchat/settings","PUT",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}},ey=class{constructor(e){this.apiClient=e||q.instance}deleteWebdeploymentsConfiguration(e,i){if(i=i||{},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"],i.customHeaders)}deleteWebdeploymentsDeployment(e,i){if(i=i||{},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"],i.customHeaders)}deleteWebdeploymentsDeploymentCobrowseSessionId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "deploymentId" when calling deleteWebdeploymentsDeploymentCobrowseSessionId';if(i==null||i==="")throw'Missing the required parameter "sessionId" when calling deleteWebdeploymentsDeploymentCobrowseSessionId';return this.apiClient.callApi("/api/v2/webdeployments/deployments/{deploymentId}/cobrowse/{sessionId}","DELETE",{deploymentId:e,sessionId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.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,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "configurationId" when calling getWebdeploymentsConfigurationVersion';if(i==null||i==="")throw'Missing the required parameter "versionId" when calling getWebdeploymentsConfigurationVersion';return this.apiClient.callApi("/api/v2/webdeployments/configurations/{configurationId}/versions/{versionId}","GET",{configurationId:e,versionId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWebdeploymentsConfigurationVersions(e,i){if(i=i||{},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:i.pageSize,before:i.before,after:i.after},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getWebdeploymentsConfigurationVersionsDraft(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getWebdeploymentsDeploymentCobrowseSessionId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "deploymentId" when calling getWebdeploymentsDeploymentCobrowseSessionId';if(i==null||i==="")throw'Missing the required parameter "sessionId" when calling getWebdeploymentsDeploymentCobrowseSessionId';return this.apiClient.callApi("/api/v2/webdeployments/deployments/{deploymentId}/cobrowse/{sessionId}","GET",{deploymentId:e,sessionId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWebdeploymentsDeploymentConfigurations(e,i){if(i=i||{},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:i.type,expand:this.apiClient.buildCollectionParam(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getWebdeploymentsDeploymentIdentityresolution(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}postWebdeploymentsConfigurations(e,i){if(i=i||{},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"],i.customHeaders)}postWebdeploymentsDeployments(e,i){if(i=i||{},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"],i.customHeaders)}postWebdeploymentsTokenOauthcodegrantjwtexchange(e,i){if(i=i||{},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"],i.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,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "configurationId" when calling putWebdeploymentsConfigurationVersionsDraft';if(i==null)throw'Missing the required parameter "configurationVersion" when calling putWebdeploymentsConfigurationVersionsDraft';return this.apiClient.callApi("/api/v2/webdeployments/configurations/{configurationId}/versions/draft","PUT",{configurationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putWebdeploymentsDeployment(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "deploymentId" when calling putWebdeploymentsDeployment';if(i==null)throw'Missing the required parameter "deployment" when calling putWebdeploymentsDeployment';return this.apiClient.callApi("/api/v2/webdeployments/deployments/{deploymentId}","PUT",{deploymentId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putWebdeploymentsDeploymentIdentityresolution(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "deploymentId" when calling putWebdeploymentsDeploymentIdentityresolution';if(i==null)throw'Missing the required parameter "body" when calling putWebdeploymentsDeploymentIdentityresolution';return this.apiClient.callApi("/api/v2/webdeployments/deployments/{deploymentId}/identityresolution","PUT",{deploymentId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}},iy=class{constructor(e){this.apiClient=e||q.instance}deleteWebmessagingDeploymentPushdevice(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "deploymentId" when calling deleteWebmessagingDeploymentPushdevice';if(i==null||i==="")throw'Missing the required parameter "tokenId" when calling deleteWebmessagingDeploymentPushdevice';return this.apiClient.callApi("/api/v2/webmessaging/deployments/{deploymentId}/pushdevices/{tokenId}","DELETE",{deploymentId:e,tokenId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.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,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "deploymentId" when calling patchWebmessagingDeploymentPushdevice';if(i==null||i==="")throw'Missing the required parameter "tokenId" when calling patchWebmessagingDeploymentPushdevice';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postWebmessagingDeploymentPushdevice(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "deploymentId" when calling postWebmessagingDeploymentPushdevice';if(i==null||i==="")throw'Missing the required parameter "tokenId" when calling postWebmessagingDeploymentPushdevice';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}},ny=class{constructor(e){this.apiClient=e||q.instance}deleteWidgetsDeployment(e,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "deploymentId" when calling deleteWidgetsDeployment';return this.apiClient.callApi("/api/v2/widgets/deployments/{deploymentId}","DELETE",{deploymentId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getWidgetsDeployment(e,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "deploymentId" when calling getWidgetsDeployment';return this.apiClient.callApi("/api/v2/widgets/deployments/{deploymentId}","GET",{deploymentId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getWidgetsDeployments(e){return e=e||{},this.apiClient.callApi("/api/v2/widgets/deployments","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}postWidgetsDeployments(e,i){if(i=i||{},e==null)throw'Missing the required parameter "body" when calling postWidgetsDeployments';return this.apiClient.callApi("/api/v2/widgets/deployments","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}putWidgetsDeployment(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "deploymentId" when calling putWidgetsDeployment';if(i==null)throw'Missing the required parameter "body" when calling putWidgetsDeployment';return this.apiClient.callApi("/api/v2/widgets/deployments/{deploymentId}","PUT",{deploymentId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}},ty=class{constructor(e){this.apiClient=e||q.instance}deleteWorkforcemanagementBusinessunit(e,i){if(i=i||{},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"],i.customHeaders)}deleteWorkforcemanagementBusinessunitActivitycode(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling deleteWorkforcemanagementBusinessunitActivitycode';if(i==null||i==="")throw'Missing the required parameter "activityCodeId" when calling deleteWorkforcemanagementBusinessunitActivitycode';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/activitycodes/{activityCodeId}","DELETE",{businessUnitId:e,activityCodeId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteWorkforcemanagementBusinessunitCapacityplanStaffinggroupallocationshistory(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling deleteWorkforcemanagementBusinessunitCapacityplanStaffinggroupallocationshistory';if(i==null||i==="")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:i},{beforeDateId:n.beforeDateId},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteWorkforcemanagementBusinessunitPlanninggroup(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling deleteWorkforcemanagementBusinessunitPlanninggroup';if(i==null||i==="")throw'Missing the required parameter "planningGroupId" when calling deleteWorkforcemanagementBusinessunitPlanninggroup';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/planninggroups/{planningGroupId}","DELETE",{businessUnitId:e,planningGroupId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteWorkforcemanagementBusinessunitSchedulingRun(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling deleteWorkforcemanagementBusinessunitSchedulingRun';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteWorkforcemanagementBusinessunitServicegoaltemplate(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling deleteWorkforcemanagementBusinessunitServicegoaltemplate';if(i==null||i==="")throw'Missing the required parameter "serviceGoalTemplateId" when calling deleteWorkforcemanagementBusinessunitServicegoaltemplate';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/servicegoaltemplates/{serviceGoalTemplateId}","DELETE",{businessUnitId:e,serviceGoalTemplateId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteWorkforcemanagementBusinessunitStaffinggroup(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling deleteWorkforcemanagementBusinessunitStaffinggroup';if(i==null||i==="")throw'Missing the required parameter "staffingGroupId" when calling deleteWorkforcemanagementBusinessunitStaffinggroup';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/staffinggroups/{staffingGroupId}","DELETE",{businessUnitId:e,staffingGroupId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteWorkforcemanagementBusinessunitTimeofflimit(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling deleteWorkforcemanagementBusinessunitTimeofflimit';if(i==null||i==="")throw'Missing the required parameter "timeOffLimitId" when calling deleteWorkforcemanagementBusinessunitTimeofflimit';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/timeofflimits/{timeOffLimitId}","DELETE",{businessUnitId:e,timeOffLimitId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteWorkforcemanagementBusinessunitTimeoffplan(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling deleteWorkforcemanagementBusinessunitTimeoffplan';if(i==null||i==="")throw'Missing the required parameter "timeOffPlanId" when calling deleteWorkforcemanagementBusinessunitTimeoffplan';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/timeoffplans/{timeOffPlanId}","DELETE",{businessUnitId:e,timeOffPlanId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteWorkforcemanagementBusinessunitWeekSchedule(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling deleteWorkforcemanagementBusinessunitWeekSchedule';if(i==null)throw'Missing the required parameter "weekId" when calling deleteWorkforcemanagementBusinessunitWeekSchedule';if(n==null||n==="")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:i,scheduleId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}deleteWorkforcemanagementBusinessunitWeekShorttermforecast(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling deleteWorkforcemanagementBusinessunitWeekShorttermforecast';if(i==null)throw'Missing the required parameter "weekDateId" when calling deleteWorkforcemanagementBusinessunitWeekShorttermforecast';if(n==null||n==="")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:i,forecastId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}deleteWorkforcemanagementBusinessunitWorkplanbid(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling deleteWorkforcemanagementBusinessunitWorkplanbid';if(i==null||i==="")throw'Missing the required parameter "bidId" when calling deleteWorkforcemanagementBusinessunitWorkplanbid';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/workplanbids/{bidId}","DELETE",{businessUnitId:e,bidId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteWorkforcemanagementBusinessunitWorkplanbidGroup(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling deleteWorkforcemanagementBusinessunitWorkplanbidGroup';if(i==null||i==="")throw'Missing the required parameter "bidId" when calling deleteWorkforcemanagementBusinessunitWorkplanbidGroup';if(n==null||n==="")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:i,bidGroupId:n},{},{},{},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,i){if(i=i||{},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"],i.customHeaders)}deleteWorkforcemanagementManagementunitTimeofflimit(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling deleteWorkforcemanagementManagementunitTimeofflimit';if(i==null||i==="")throw'Missing the required parameter "timeOffLimitId" when calling deleteWorkforcemanagementManagementunitTimeofflimit';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/timeofflimits/{timeOffLimitId}","DELETE",{managementUnitId:e,timeOffLimitId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteWorkforcemanagementManagementunitTimeoffplan(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling deleteWorkforcemanagementManagementunitTimeoffplan';if(i==null||i==="")throw'Missing the required parameter "timeOffPlanId" when calling deleteWorkforcemanagementManagementunitTimeoffplan';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/timeoffplans/{timeOffPlanId}","DELETE",{managementUnitId:e,timeOffPlanId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteWorkforcemanagementManagementunitWorkplan(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling deleteWorkforcemanagementManagementunitWorkplan';if(i==null||i==="")throw'Missing the required parameter "workPlanId" when calling deleteWorkforcemanagementManagementunitWorkplan';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/workplans/{workPlanId}","DELETE",{managementUnitId:e,workPlanId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteWorkforcemanagementManagementunitWorkplanrotation(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling deleteWorkforcemanagementManagementunitWorkplanrotation';if(i==null||i==="")throw'Missing the required parameter "workPlanRotationId" when calling deleteWorkforcemanagementManagementunitWorkplanrotation';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/workplanrotations/{workPlanRotationId}","DELETE",{managementUnitId:e,workPlanRotationId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementAdherence(e,i){if(i=i||{},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"],i.customHeaders)}getWorkforcemanagementAdherenceExplanation(e,i){if(i=i||{},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"],i.customHeaders)}getWorkforcemanagementAdherenceExplanationsJob(e,i){if(i=i||{},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"],i.customHeaders)}getWorkforcemanagementAdherenceHistoricalBulkJob(e,i){if(i=i||{},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"],i.customHeaders)}getWorkforcemanagementAdherenceHistoricalJob(e,i){if(i=i||{},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"],i.customHeaders)}getWorkforcemanagementAgentAdherenceExplanation(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "agentId" when calling getWorkforcemanagementAgentAdherenceExplanation';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementAgentManagementunit(e,i){if(i=i||{},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"],i.customHeaders)}getWorkforcemanagementAgentsMeAdherenceHistoricalJob(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getWorkforcemanagementAlternativeshiftsOffersSearchJob(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getWorkforcemanagementAlternativeshiftsTradesStateJob(e,i){if(i=i||{},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"],i.customHeaders)}getWorkforcemanagementBusinessunit(e,i){if(i=i||{},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(i.expand,"multi"),includeSchedulingDefaultMessageSeverities:i.includeSchedulingDefaultMessageSeverities},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getWorkforcemanagementBusinessunitActivitycode(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitActivitycode';if(i==null||i==="")throw'Missing the required parameter "activityCodeId" when calling getWorkforcemanagementBusinessunitActivitycode';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/activitycodes/{activityCodeId}","GET",{businessUnitId:e,activityCodeId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementBusinessunitActivitycodes(e,i){if(i=i||{},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:i.forceDownloadService},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getWorkforcemanagementBusinessunitActivityplan(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitActivityplan';if(i==null||i==="")throw'Missing the required parameter "activityPlanId" when calling getWorkforcemanagementBusinessunitActivityplan';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/activityplans/{activityPlanId}","GET",{businessUnitId:e,activityPlanId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementBusinessunitActivityplanRunsJob(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitActivityplanRunsJob';if(i==null||i==="")throw'Missing the required parameter "activityPlanId" when calling getWorkforcemanagementBusinessunitActivityplanRunsJob';if(n==null||n==="")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:i,jobId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getWorkforcemanagementBusinessunitActivityplans(e,i){if(i=i||{},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:i.state},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getWorkforcemanagementBusinessunitActivityplansJobs(e,i){if(i=i||{},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"],i.customHeaders)}getWorkforcemanagementBusinessunitAlternativeshiftsSettings(e,i){if(i=i||{},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"],i.customHeaders)}getWorkforcemanagementBusinessunitAlternativeshiftsTrade(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitAlternativeshiftsTrade';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementBusinessunitAlternativeshiftsTradesSearchJob(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitAlternativeshiftsTradesSearchJob';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementBusinessunitCapacityplan(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitCapacityplan';if(i==null||i==="")throw'Missing the required parameter "capacityPlanId" when calling getWorkforcemanagementBusinessunitCapacityplan';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/capacityplans/{capacityPlanId}","GET",{businessUnitId:e,capacityPlanId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementBusinessunitCapacityplanStaffinggroupallocations(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitCapacityplanStaffinggroupallocations';if(i==null||i==="")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:i},{granularity:n.granularity},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementBusinessunitCapacityplanStaffingrequirements(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitCapacityplanStaffingrequirements';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementBusinessunitCapacityplanningLongtermrequirementsAutomaticbestmethodWeekForecast(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitCapacityplanningLongtermrequirementsAutomaticbestmethodWeekForecast';if(i==null)throw'Missing the required parameter "weekDateId" when calling getWorkforcemanagementBusinessunitCapacityplanningLongtermrequirementsAutomaticbestmethodWeekForecast';if(n==null||n==="")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:i,forecastId:n},{granularity:a.granularity},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getWorkforcemanagementBusinessunitCapacityplans(e,i){if(i=i||{},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"],i.customHeaders)}getWorkforcemanagementBusinessunitIntradayPlanninggroups(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitIntradayPlanninggroups';if(i==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:i},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementBusinessunitMainforecastContinuousforecastSession(e,i){if(i=i||{},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"],i.customHeaders)}getWorkforcemanagementBusinessunitMainforecastContinuousforecastSessionSessionId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitMainforecastContinuousforecastSessionSessionId';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementBusinessunitMainforecastContinuousforecastSessionSessionIdSnapshotSnapshotId(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitMainforecastContinuousforecastSessionSessionIdSnapshotSnapshotId';if(i==null||i==="")throw'Missing the required parameter "sessionId" when calling getWorkforcemanagementBusinessunitMainforecastContinuousforecastSessionSessionIdSnapshotSnapshotId';if(n==null||n==="")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:i,snapshotId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getWorkforcemanagementBusinessunitManagementunits(e,i){if(i=i||{},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:i.feature,divisionId:i.divisionId},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getWorkforcemanagementBusinessunitMinimumstaffingSettings(e,i){if(i=i||{},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"],i.customHeaders)}getWorkforcemanagementBusinessunitPlanninggroup(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitPlanninggroup';if(i==null||i==="")throw'Missing the required parameter "planningGroupId" when calling getWorkforcemanagementBusinessunitPlanninggroup';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/planninggroups/{planningGroupId}","GET",{businessUnitId:e,planningGroupId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementBusinessunitPlanninggroups(e,i){if(i=i||{},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"],i.customHeaders)}getWorkforcemanagementBusinessunitSchedulerSettings(e,i){if(i=i||{},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"],i.customHeaders)}getWorkforcemanagementBusinessunitSchedulingRun(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitSchedulingRun';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementBusinessunitSchedulingRunResult(e,i,n,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitSchedulingRunResult';if(i==null||i==="")throw'Missing the required parameter "runId" when calling getWorkforcemanagementBusinessunitSchedulingRunResult';if(n==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:i},{managementUnitIds:this.apiClient.buildCollectionParam(n,"multi"),expand:this.apiClient.buildCollectionParam(a,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}getWorkforcemanagementBusinessunitSchedulingRuns(e,i){if(i=i||{},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"],i.customHeaders)}getWorkforcemanagementBusinessunitServicegoaltemplate(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitServicegoaltemplate';if(i==null||i==="")throw'Missing the required parameter "serviceGoalTemplateId" when calling getWorkforcemanagementBusinessunitServicegoaltemplate';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/servicegoaltemplates/{serviceGoalTemplateId}","GET",{businessUnitId:e,serviceGoalTemplateId:i},{expand:this.apiClient.buildCollectionParam(n.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementBusinessunitServicegoaltemplates(e,i){if(i=i||{},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(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getWorkforcemanagementBusinessunitShifttradingTradesEvaluateJob(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitShifttradingTradesEvaluateJob';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementBusinessunitShifttradingTradesQueryJob(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitShifttradingTradesQueryJob';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementBusinessunitShifttradingTradesStateBulkJob(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitShifttradingTradesStateBulkJob';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementBusinessunitShifttradingUnmatchedSearchJob(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitShifttradingUnmatchedSearchJob';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementBusinessunitShifttradingWeeksSummaryJob(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitShifttradingWeeksSummaryJob';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementBusinessunitStaffinggroup(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitStaffinggroup';if(i==null||i==="")throw'Missing the required parameter "staffingGroupId" when calling getWorkforcemanagementBusinessunitStaffinggroup';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/staffinggroups/{staffingGroupId}","GET",{businessUnitId:e,staffingGroupId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementBusinessunitStaffinggroups(e,i){if(i=i||{},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:i.managementUnitId,forceDownloadService:i.forceDownloadService},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getWorkforcemanagementBusinessunitTimeofflimit(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitTimeofflimit';if(i==null||i==="")throw'Missing the required parameter "timeOffLimitId" when calling getWorkforcemanagementBusinessunitTimeofflimit';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/timeofflimits/{timeOffLimitId}","GET",{businessUnitId:e,timeOffLimitId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementBusinessunitTimeofflimits(e,i){if(i=i||{},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:i.managementUnitId},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getWorkforcemanagementBusinessunitTimeoffplan(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitTimeoffplan';if(i==null||i==="")throw'Missing the required parameter "timeOffPlanId" when calling getWorkforcemanagementBusinessunitTimeoffplan';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/timeoffplans/{timeOffPlanId}","GET",{businessUnitId:e,timeOffPlanId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementBusinessunitTimeoffplans(e,i){if(i=i||{},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:i.managementUnitId,forceDownloadService:i.forceDownloadService},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getWorkforcemanagementBusinessunitUsers(e,i){if(i=i||{},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(i.managementUnitIds,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getWorkforcemanagementBusinessunitWeekSchedule(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitWeekSchedule';if(i==null)throw'Missing the required parameter "weekId" when calling getWorkforcemanagementBusinessunitWeekSchedule';if(n==null||n==="")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:i,scheduleId:n},{expand:a.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getWorkforcemanagementBusinessunitWeekScheduleGenerationresults(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitWeekScheduleGenerationresults';if(i==null)throw'Missing the required parameter "weekId" when calling getWorkforcemanagementBusinessunitWeekScheduleGenerationresults';if(n==null||n==="")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:i,scheduleId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getWorkforcemanagementBusinessunitWeekScheduleHeadcountforecast(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitWeekScheduleHeadcountforecast';if(i==null)throw'Missing the required parameter "weekId" when calling getWorkforcemanagementBusinessunitWeekScheduleHeadcountforecast';if(n==null||n==="")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:i,scheduleId:n},{forceDownload:a.forceDownload},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getWorkforcemanagementBusinessunitWeekScheduleHistoryAgent(e,i,n,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitWeekScheduleHistoryAgent';if(i==null)throw'Missing the required parameter "weekId" when calling getWorkforcemanagementBusinessunitWeekScheduleHistoryAgent';if(n==null||n==="")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:i,scheduleId:n,agentId:a},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}getWorkforcemanagementBusinessunitWeekSchedulePerformancepredictions(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitWeekSchedulePerformancepredictions';if(i==null||i==="")throw'Missing the required parameter "weekId" when calling getWorkforcemanagementBusinessunitWeekSchedulePerformancepredictions';if(n==null||n==="")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:i,scheduleId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getWorkforcemanagementBusinessunitWeekSchedulePerformancepredictionsRecalculation(e,i,n,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitWeekSchedulePerformancepredictionsRecalculation';if(i==null||i==="")throw'Missing the required parameter "weekId" when calling getWorkforcemanagementBusinessunitWeekSchedulePerformancepredictionsRecalculation';if(n==null||n==="")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:i,scheduleId:n,recalculationId:a},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}getWorkforcemanagementBusinessunitWeekSchedules(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitWeekSchedules';if(i==null||i==="")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:i},{includeOnlyPublished:n.includeOnlyPublished,expand:n.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementBusinessunitWeekShorttermforecast(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitWeekShorttermforecast';if(i==null)throw'Missing the required parameter "weekDateId" when calling getWorkforcemanagementBusinessunitWeekShorttermforecast';if(n==null||n==="")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:i,forecastId:n},{expand:this.apiClient.buildCollectionParam(a.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getWorkforcemanagementBusinessunitWeekShorttermforecastData(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitWeekShorttermforecastData';if(i==null)throw'Missing the required parameter "weekDateId" when calling getWorkforcemanagementBusinessunitWeekShorttermforecastData';if(n==null||n==="")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:i,forecastId:n},{weekNumber:a.weekNumber,forceDownloadService:a.forceDownloadService},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getWorkforcemanagementBusinessunitWeekShorttermforecastGenerationresults(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitWeekShorttermforecastGenerationresults';if(i==null)throw'Missing the required parameter "weekDateId" when calling getWorkforcemanagementBusinessunitWeekShorttermforecastGenerationresults';if(n==null||n==="")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:i,forecastId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getWorkforcemanagementBusinessunitWeekShorttermforecastLongtermforecastdata(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitWeekShorttermforecastLongtermforecastdata';if(i==null)throw'Missing the required parameter "weekDateId" when calling getWorkforcemanagementBusinessunitWeekShorttermforecastLongtermforecastdata';if(n==null||n==="")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:i,forecastId:n},{forceDownloadService:a.forceDownloadService},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getWorkforcemanagementBusinessunitWeekShorttermforecastPlanninggroups(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitWeekShorttermforecastPlanninggroups';if(i==null)throw'Missing the required parameter "weekDateId" when calling getWorkforcemanagementBusinessunitWeekShorttermforecastPlanninggroups';if(n==null||n==="")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:i,forecastId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getWorkforcemanagementBusinessunitWeekShorttermforecastStaffingrequirement(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitWeekShorttermforecastStaffingrequirement';if(i==null)throw'Missing the required parameter "weekDateId" when calling getWorkforcemanagementBusinessunitWeekShorttermforecastStaffingrequirement';if(n==null||n==="")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:i,forecastId:n},{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,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitWeekShorttermforecasts';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementBusinessunitWorkplanbid(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitWorkplanbid';if(i==null||i==="")throw'Missing the required parameter "bidId" when calling getWorkforcemanagementBusinessunitWorkplanbid';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/workplanbids/{bidId}","GET",{businessUnitId:e,bidId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementBusinessunitWorkplanbidGroup(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitWorkplanbidGroup';if(i==null||i==="")throw'Missing the required parameter "bidId" when calling getWorkforcemanagementBusinessunitWorkplanbidGroup';if(n==null||n==="")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:i,bidGroupId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getWorkforcemanagementBusinessunitWorkplanbidGroupPreferences(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitWorkplanbidGroupPreferences';if(i==null||i==="")throw'Missing the required parameter "bidId" when calling getWorkforcemanagementBusinessunitWorkplanbidGroupPreferences';if(n==null||n==="")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:i,bidGroupId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getWorkforcemanagementBusinessunitWorkplanbidGroupsSummary(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitWorkplanbidGroupsSummary';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementBusinessunitWorkplanbids(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getWorkforcemanagementManagementunit(e,i){if(i=i||{},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(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getWorkforcemanagementManagementunitActivitycodes(e,i){if(i=i||{},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"],i.customHeaders)}getWorkforcemanagementManagementunitAdherence(e,i){if(i=i||{},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:i.forceDownloadService},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getWorkforcemanagementManagementunitAgent(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling getWorkforcemanagementManagementunitAgent';if(i==null||i==="")throw'Missing the required parameter "agentId" when calling getWorkforcemanagementManagementunitAgent';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/agents/{agentId}","GET",{managementUnitId:e,agentId:i},{excludeCapabilities:n.excludeCapabilities,expand:this.apiClient.buildCollectionParam(n.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementManagementunitAgentShifttrades(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling getWorkforcemanagementManagementunitAgentShifttrades';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementManagementunitShifttradesMatched(e,i){if(i=i||{},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"],i.customHeaders)}getWorkforcemanagementManagementunitShifttradesUsers(e,i){if(i=i||{},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"],i.customHeaders)}getWorkforcemanagementManagementunitTimeofflimit(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling getWorkforcemanagementManagementunitTimeofflimit';if(i==null||i==="")throw'Missing the required parameter "timeOffLimitId" when calling getWorkforcemanagementManagementunitTimeofflimit';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/timeofflimits/{timeOffLimitId}","GET",{managementUnitId:e,timeOffLimitId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementManagementunitTimeofflimits(e,i){if(i=i||{},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"],i.customHeaders)}getWorkforcemanagementManagementunitTimeoffplan(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling getWorkforcemanagementManagementunitTimeoffplan';if(i==null||i==="")throw'Missing the required parameter "timeOffPlanId" when calling getWorkforcemanagementManagementunitTimeoffplan';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/timeoffplans/{timeOffPlanId}","GET",{managementUnitId:e,timeOffPlanId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementManagementunitTimeoffplans(e,i){if(i=i||{},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"],i.customHeaders)}getWorkforcemanagementManagementunitUserTimeoffrequest(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling getWorkforcemanagementManagementunitUserTimeoffrequest';if(i==null||i==="")throw'Missing the required parameter "userId" when calling getWorkforcemanagementManagementunitUserTimeoffrequest';if(n==null||n==="")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:i,timeOffRequestId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getWorkforcemanagementManagementunitUserTimeoffrequestTimeofflimits(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling getWorkforcemanagementManagementunitUserTimeoffrequestTimeofflimits';if(i==null||i==="")throw'Missing the required parameter "userId" when calling getWorkforcemanagementManagementunitUserTimeoffrequestTimeofflimits';if(n==null||n==="")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:i,timeOffRequestId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getWorkforcemanagementManagementunitUserTimeoffrequests(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling getWorkforcemanagementManagementunitUserTimeoffrequests';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementManagementunitUsers(e,i){if(i=i||{},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"],i.customHeaders)}getWorkforcemanagementManagementunitWeekSchedule(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling getWorkforcemanagementManagementunitWeekSchedule';if(i==null||i==="")throw'Missing the required parameter "weekId" when calling getWorkforcemanagementManagementunitWeekSchedule';if(n==null||n==="")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:i,scheduleId:n},{expand:a.expand,forceDownloadService:a.forceDownloadService},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getWorkforcemanagementManagementunitWeekSchedules(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling getWorkforcemanagementManagementunitWeekSchedules';if(i==null||i==="")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:i},{includeOnlyPublished:n.includeOnlyPublished,earliestWeekDate:n.earliestWeekDate,latestWeekDate:n.latestWeekDate},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementManagementunitWeekShifttrades(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling getWorkforcemanagementManagementunitWeekShifttrades';if(i==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:i},{evaluateMatches:n.evaluateMatches,includeCrossWeekShifts:n.includeCrossWeekShifts,forceDownloadService:n.forceDownloadService},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementManagementunitWorkplan(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling getWorkforcemanagementManagementunitWorkplan';if(i==null||i==="")throw'Missing the required parameter "workPlanId" when calling getWorkforcemanagementManagementunitWorkplan';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/workplans/{workPlanId}","GET",{managementUnitId:e,workPlanId:i},{includeOnly:this.apiClient.buildCollectionParam(n.includeOnly,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementManagementunitWorkplanrotation(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling getWorkforcemanagementManagementunitWorkplanrotation';if(i==null||i==="")throw'Missing the required parameter "workPlanRotationId" when calling getWorkforcemanagementManagementunitWorkplanrotation';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/workplanrotations/{workPlanRotationId}","GET",{managementUnitId:e,workPlanRotationId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementManagementunitWorkplanrotations(e,i){if(i=i||{},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(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getWorkforcemanagementManagementunitWorkplans(e,i){if(i=i||{},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(i.expand,"multi"),exclude:this.apiClient.buildCollectionParam(i.exclude,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getWorkforcemanagementManagementunits(e){return e=e||{},this.apiClient.callApi("/api/v2/workforcemanagement/managementunits","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,expand:e.expand,feature:e.feature,divisionId:e.divisionId},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getWorkforcemanagementManagementunitsDivisionviews(e){return e=e||{},this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/divisionviews","GET",{},{divisionId:this.apiClient.buildCollectionParam(e.divisionId,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getWorkforcemanagementNotifications(e){return e=e||{},this.apiClient.callApi("/api/v2/workforcemanagement/notifications","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getWorkforcemanagementSchedulingjob(e,i){if(i=i||{},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"],i.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,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "tradeId" when calling getWorkforcemanagementShifttradingTradeJob';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementShifttradingTradeMatchJob(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "tradeId" when calling getWorkforcemanagementShifttradingTradeMatchJob';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementShifttradingTradeStateJob(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "tradeId" when calling getWorkforcemanagementShifttradingTradeStateJob';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementShifttradingTradesJob(e,i){if(i=i||{},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"],i.customHeaders)}getWorkforcemanagementShifttradingTradesMineQueryJob(e,i){if(i=i||{},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"],i.customHeaders)}getWorkforcemanagementShrinkageJob(e,i){if(i=i||{},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"],i.customHeaders)}getWorkforcemanagementTeamAdherence(e,i){if(i=i||{},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"],i.customHeaders)}getWorkforcemanagementTimeoffbalanceJob(e,i){if(i=i||{},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"],i.customHeaders)}getWorkforcemanagementTimeoffrequest(e,i){if(i=i||{},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"],i.customHeaders)}getWorkforcemanagementTimeoffrequestWaitlistpositions(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getWorkforcemanagementUserWorkplanbidranks(e,i){if(i=i||{},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"],i.customHeaders)}getWorkforcemanagementWorkplanbidPreferences(e,i){if(i=i||{},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"],i.customHeaders)}getWorkforcemanagementWorkplanbidWorkplans(e,i){if(i=i||{},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"],i.customHeaders)}getWorkforcemanagementWorkplanbids(e){return e=e||{},this.apiClient.callApi("/api/v2/workforcemanagement/workplanbids","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}patchWorkforcemanagementAgentAdherenceExplanation(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "agentId" when calling patchWorkforcemanagementAgentAdherenceExplanation';if(i==null||i==="")throw'Missing the required parameter "explanationId" when calling patchWorkforcemanagementAgentAdherenceExplanation';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchWorkforcemanagementAlternativeshiftsTrade(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "tradeId" when calling patchWorkforcemanagementAlternativeshiftsTrade';if(i==null)throw'Missing the required parameter "body" when calling patchWorkforcemanagementAlternativeshiftsTrade';return this.apiClient.callApi("/api/v2/workforcemanagement/alternativeshifts/trades/{tradeId}","PATCH",{tradeId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchWorkforcemanagementAlternativeshiftsTradesStateJobs(e,i){if(i=i||{},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"],i.customHeaders)}patchWorkforcemanagementBusinessunit(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling patchWorkforcemanagementBusinessunit';if(i==null)throw'Missing the required parameter "body" when calling patchWorkforcemanagementBusinessunit';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}","PATCH",{businessUnitId:e},{includeSchedulingDefaultMessageSeverities:n.includeSchedulingDefaultMessageSeverities},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchWorkforcemanagementBusinessunitActivitycode(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling patchWorkforcemanagementBusinessunitActivitycode';if(i==null||i==="")throw'Missing the required parameter "activityCodeId" when calling patchWorkforcemanagementBusinessunitActivitycode';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchWorkforcemanagementBusinessunitActivityplan(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling patchWorkforcemanagementBusinessunitActivityplan';if(i==null||i==="")throw'Missing the required parameter "activityPlanId" when calling patchWorkforcemanagementBusinessunitActivityplan';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchWorkforcemanagementBusinessunitAlternativeshiftsSettings(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling patchWorkforcemanagementBusinessunitAlternativeshiftsSettings';if(i==null)throw'Missing the required parameter "body" when calling patchWorkforcemanagementBusinessunitAlternativeshiftsSettings';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/alternativeshifts/settings","PATCH",{businessUnitId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchWorkforcemanagementBusinessunitCapacityplan(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling patchWorkforcemanagementBusinessunitCapacityplan';if(i==null||i==="")throw'Missing the required parameter "capacityPlanId" when calling patchWorkforcemanagementBusinessunitCapacityplan';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchWorkforcemanagementBusinessunitMinimumstaffingSettings(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling patchWorkforcemanagementBusinessunitMinimumstaffingSettings';if(i==null)throw'Missing the required parameter "body" when calling patchWorkforcemanagementBusinessunitMinimumstaffingSettings';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/minimumstaffing/settings","PATCH",{businessUnitId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchWorkforcemanagementBusinessunitPlanninggroup(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling patchWorkforcemanagementBusinessunitPlanninggroup';if(i==null||i==="")throw'Missing the required parameter "planningGroupId" when calling patchWorkforcemanagementBusinessunitPlanninggroup';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchWorkforcemanagementBusinessunitSchedulerSettings(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling patchWorkforcemanagementBusinessunitSchedulerSettings';if(i==null)throw'Missing the required parameter "body" when calling patchWorkforcemanagementBusinessunitSchedulerSettings';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/scheduler/settings","PATCH",{businessUnitId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchWorkforcemanagementBusinessunitSchedulingRun(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling patchWorkforcemanagementBusinessunitSchedulingRun';if(i==null||i==="")throw'Missing the required parameter "runId" when calling patchWorkforcemanagementBusinessunitSchedulingRun';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchWorkforcemanagementBusinessunitServicegoaltemplate(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling patchWorkforcemanagementBusinessunitServicegoaltemplate';if(i==null||i==="")throw'Missing the required parameter "serviceGoalTemplateId" when calling patchWorkforcemanagementBusinessunitServicegoaltemplate';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchWorkforcemanagementBusinessunitStaffinggroup(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling patchWorkforcemanagementBusinessunitStaffinggroup';if(i==null||i==="")throw'Missing the required parameter "staffingGroupId" when calling patchWorkforcemanagementBusinessunitStaffinggroup';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchWorkforcemanagementBusinessunitTimeoffplan(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling patchWorkforcemanagementBusinessunitTimeoffplan';if(i==null||i==="")throw'Missing the required parameter "timeOffPlanId" when calling patchWorkforcemanagementBusinessunitTimeoffplan';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchWorkforcemanagementBusinessunitWorkplanbid(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling patchWorkforcemanagementBusinessunitWorkplanbid';if(i==null||i==="")throw'Missing the required parameter "bidId" when calling patchWorkforcemanagementBusinessunitWorkplanbid';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchWorkforcemanagementBusinessunitWorkplanbidGroup(e,i,n,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling patchWorkforcemanagementBusinessunitWorkplanbidGroup';if(i==null||i==="")throw'Missing the required parameter "bidId" when calling patchWorkforcemanagementBusinessunitWorkplanbidGroup';if(n==null||n==="")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:i,bidGroupId:n},{},{},{},a,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}patchWorkforcemanagementBusinessunitWorkplanbidGroupPreferences(e,i,n,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling patchWorkforcemanagementBusinessunitWorkplanbidGroupPreferences';if(i==null||i==="")throw'Missing the required parameter "bidId" when calling patchWorkforcemanagementBusinessunitWorkplanbidGroupPreferences';if(n==null||n==="")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:i,bidGroupId:n},{},{},{},a,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}patchWorkforcemanagementManagementunit(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling patchWorkforcemanagementManagementunit';if(i==null)throw'Missing the required parameter "body" when calling patchWorkforcemanagementManagementunit';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}","PATCH",{managementUnitId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchWorkforcemanagementManagementunitAgents(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling patchWorkforcemanagementManagementunitAgents';if(i==null)throw'Missing the required parameter "body" when calling patchWorkforcemanagementManagementunitAgents';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/agents","PATCH",{managementUnitId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchWorkforcemanagementManagementunitAgentsWorkplansBulk(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling patchWorkforcemanagementManagementunitAgentsWorkplansBulk';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchWorkforcemanagementManagementunitTimeofflimit(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling patchWorkforcemanagementManagementunitTimeofflimit';if(i==null||i==="")throw'Missing the required parameter "timeOffLimitId" when calling patchWorkforcemanagementManagementunitTimeofflimit';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchWorkforcemanagementManagementunitTimeoffplan(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling patchWorkforcemanagementManagementunitTimeoffplan';if(i==null||i==="")throw'Missing the required parameter "timeOffPlanId" when calling patchWorkforcemanagementManagementunitTimeoffplan';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchWorkforcemanagementManagementunitTimeoffrequestUserIntegrationstatus(e,i,n,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling patchWorkforcemanagementManagementunitTimeoffrequestUserIntegrationstatus';if(i==null||i==="")throw'Missing the required parameter "timeOffRequestId" when calling patchWorkforcemanagementManagementunitTimeoffrequestUserIntegrationstatus';if(n==null||n==="")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:i,userId:n},{},{},{},a,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}patchWorkforcemanagementManagementunitUnavailabletimesSettings(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling patchWorkforcemanagementManagementunitUnavailabletimesSettings';if(i==null)throw'Missing the required parameter "body" when calling patchWorkforcemanagementManagementunitUnavailabletimesSettings';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/unavailabletimes/settings","PATCH",{managementUnitId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchWorkforcemanagementManagementunitUserTimeoffrequest(e,i,n,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling patchWorkforcemanagementManagementunitUserTimeoffrequest';if(i==null||i==="")throw'Missing the required parameter "userId" when calling patchWorkforcemanagementManagementunitUserTimeoffrequest';if(n==null||n==="")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:i,timeOffRequestId:n},{},{},{},a,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}patchWorkforcemanagementManagementunitWeekShifttrade(e,i,n,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling patchWorkforcemanagementManagementunitWeekShifttrade';if(i==null)throw'Missing the required parameter "weekDateId" when calling patchWorkforcemanagementManagementunitWeekShifttrade';if(n==null||n==="")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:i,tradeId:n},{},{},{},a,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}patchWorkforcemanagementManagementunitWorkplan(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling patchWorkforcemanagementManagementunitWorkplan';if(i==null||i==="")throw'Missing the required parameter "workPlanId" when calling patchWorkforcemanagementManagementunitWorkplan';if(n==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:i},{validationMode:a.validationMode},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchWorkforcemanagementManagementunitWorkplanrotation(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling patchWorkforcemanagementManagementunitWorkplanrotation';if(i==null||i==="")throw'Missing the required parameter "workPlanRotationId" when calling patchWorkforcemanagementManagementunitWorkplanrotation';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchWorkforcemanagementTimeoffrequest(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "timeOffRequestId" when calling patchWorkforcemanagementTimeoffrequest';if(i==null)throw'Missing the required parameter "body" when calling patchWorkforcemanagementTimeoffrequest';return this.apiClient.callApi("/api/v2/workforcemanagement/timeoffrequests/{timeOffRequestId}","PATCH",{timeOffRequestId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchWorkforcemanagementUnavailabletimes(e,i){if(i=i||{},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"],i.customHeaders)}patchWorkforcemanagementUserWorkplanbidranks(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling patchWorkforcemanagementUserWorkplanbidranks';if(i==null)throw'Missing the required parameter "body" when calling patchWorkforcemanagementUserWorkplanbidranks';return this.apiClient.callApi("/api/v2/workforcemanagement/users/{userId}/workplanbidranks","PATCH",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchWorkforcemanagementUsersWorkplanbidranksBulk(e,i){if(i=i||{},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"],i.customHeaders)}patchWorkforcemanagementWorkplanbidPreferences(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "bidId" when calling patchWorkforcemanagementWorkplanbidPreferences';if(i==null)throw'Missing the required parameter "body" when calling patchWorkforcemanagementWorkplanbidPreferences';return this.apiClient.callApi("/api/v2/workforcemanagement/workplanbids/{bidId}/preferences","PATCH",{bidId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementAdherenceExplanations(e,i){if(i=i||{},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"],i.customHeaders)}postWorkforcemanagementAdherenceExplanationsQuery(e,i){if(i=i||{},e==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementAdherenceExplanationsQuery';return this.apiClient.callApi("/api/v2/workforcemanagement/adherence/explanations/query","POST",{},{forceAsync:i.forceAsync,forceDownloadService:i.forceDownloadService},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postWorkforcemanagementAdherenceHistorical(e){return e=e||{},this.apiClient.callApi("/api/v2/workforcemanagement/adherence/historical","POST",{},{},{},{},e.body,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}postWorkforcemanagementAdherenceHistoricalBulk(e,i){if(i=i||{},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"],i.customHeaders)}postWorkforcemanagementAgentAdherenceExplanations(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "agentId" when calling postWorkforcemanagementAgentAdherenceExplanations';if(i==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementAgentAdherenceExplanations';return this.apiClient.callApi("/api/v2/workforcemanagement/agents/{agentId}/adherence/explanations","POST",{agentId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementAgentAdherenceExplanationsQuery(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "agentId" when calling postWorkforcemanagementAgentAdherenceExplanationsQuery';if(i==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:n.forceAsync,forceDownloadService:n.forceDownloadService},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementAgentUnavailabletimesQuery(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "agentId" when calling postWorkforcemanagementAgentUnavailabletimesQuery';if(i==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementAgentUnavailabletimesQuery';return this.apiClient.callApi("/api/v2/workforcemanagement/agents/{agentId}/unavailabletimes/query","POST",{agentId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementAgents(e,i){if(i=i||{},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"],i.customHeaders)}postWorkforcemanagementAgentsIntegrationsHrisQuery(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}postWorkforcemanagementAgentschedulesManagementunitsMine(e,i){if(i=i||{},e==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementAgentschedulesManagementunitsMine';return this.apiClient.callApi("/api/v2/workforcemanagement/agentschedules/managementunits/mine","POST",{},{forceAsync:i.forceAsync,forceDownloadService:i.forceDownloadService},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postWorkforcemanagementAgentschedulesMine(e,i){if(i=i||{},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"],i.customHeaders)}postWorkforcemanagementAlternativeshiftsOffersJobs(e,i){if(i=i||{},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"],i.customHeaders)}postWorkforcemanagementAlternativeshiftsOffersSearchJobs(e,i){if(i=i||{},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"],i.customHeaders)}postWorkforcemanagementAlternativeshiftsTrades(e,i){if(i=i||{},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"],i.customHeaders)}postWorkforcemanagementBusinessunitActivitycodes(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitActivitycodes';if(i==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunitActivitycodes';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/activitycodes","POST",{businessUnitId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementBusinessunitActivityplanRunsJobs(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitActivityplanRunsJobs';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementBusinessunitActivityplans(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitActivityplans';if(i==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunitActivityplans';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/activityplans","POST",{businessUnitId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementBusinessunitAdherenceExplanationsQuery(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitAdherenceExplanationsQuery';if(i==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:n.forceAsync,forceDownloadService:n.forceDownloadService},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementBusinessunitAgentschedulesSearch(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitAgentschedulesSearch';if(i==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:n.forceAsync,forceDownloadService:n.forceDownloadService},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementBusinessunitAlternativeshiftsTradesSearch(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitAlternativeshiftsTradesSearch';if(i==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:n.forceAsync},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementBusinessunitCapacityplanCopy(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitCapacityplanCopy';if(i==null||i==="")throw'Missing the required parameter "capacityPlanId" when calling postWorkforcemanagementBusinessunitCapacityplanCopy';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postWorkforcemanagementBusinessunitCapacityplanRequirementGenerate(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitCapacityplanRequirementGenerate';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementBusinessunitCapacityplanStaffinggroupallocations(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitCapacityplanStaffinggroupallocations';if(i==null||i==="")throw'Missing the required parameter "capacityPlanId" when calling postWorkforcemanagementBusinessunitCapacityplanStaffinggroupallocations';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postWorkforcemanagementBusinessunitCapacityplanStaffinggroupallocationshistoryQuery(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitCapacityplanStaffinggroupallocationshistoryQuery';if(i==null||i==="")throw'Missing the required parameter "capacityPlanId" when calling postWorkforcemanagementBusinessunitCapacityplanStaffinggroupallocationshistoryQuery';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postWorkforcemanagementBusinessunitCapacityplanningLongtermrequirementsAutomaticbestmethodWeekForecastForceregenerate(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitCapacityplanningLongtermrequirementsAutomaticbestmethodWeekForecastForceregenerate';if(i==null)throw'Missing the required parameter "weekDateId" when calling postWorkforcemanagementBusinessunitCapacityplanningLongtermrequirementsAutomaticbestmethodWeekForecastForceregenerate';if(n==null||n==="")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:i,forecastId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postWorkforcemanagementBusinessunitCapacityplans(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitCapacityplans';if(i==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunitCapacityplans';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/capacityplans","POST",{businessUnitId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementBusinessunitCapacityplansBulkRemove(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitCapacityplansBulkRemove';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementBusinessunitIntraday(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitIntraday';if(i==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunitIntraday';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/intraday","POST",{businessUnitId:e},{forceAsync:n.forceAsync},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementBusinessunitPlanninggroups(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitPlanninggroups';if(i==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunitPlanninggroups';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/planninggroups","POST",{businessUnitId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementBusinessunitServicegoaltemplates(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitServicegoaltemplates';if(i==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunitServicegoaltemplates';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/servicegoaltemplates","POST",{businessUnitId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementBusinessunitShifttradingTradesEvaluateJobs(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitShifttradingTradesEvaluateJobs';if(i==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:n.forceAsync,forceDownloadService:n.forceDownloadService},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementBusinessunitShifttradingTradesQueryJobs(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitShifttradingTradesQueryJobs';if(i==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:n.forceAsync,forceDownloadService:n.forceDownloadService},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementBusinessunitShifttradingTradesStateBulkJobs(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitShifttradingTradesStateBulkJobs';if(i==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:n.forceAsync,forceDownloadService:n.forceDownloadService},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementBusinessunitShifttradingUnmatchedSearchJobs(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitShifttradingUnmatchedSearchJobs';if(i==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:n.forceAsync,forceDownloadService:n.forceDownloadService},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementBusinessunitShifttradingWeeksSummaryJobs(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitShifttradingWeeksSummaryJobs';if(i==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:n.forceAsync},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementBusinessunitStaffinggroups(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitStaffinggroups';if(i==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunitStaffinggroups';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/staffinggroups","POST",{businessUnitId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementBusinessunitStaffinggroupsPlanninggroupsQuery(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitStaffinggroupsPlanninggroupsQuery';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementBusinessunitStaffinggroupsQuery(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitStaffinggroupsQuery';if(i==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:n.forceDownloadService},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementBusinessunitTimeofflimits(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitTimeofflimits';if(i==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunitTimeofflimits';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/timeofflimits","POST",{businessUnitId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementBusinessunitTimeofflimitsValuesQuery(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitTimeofflimitsValuesQuery';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementBusinessunitTimeoffplans(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitTimeoffplans';if(i==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunitTimeoffplans';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/timeoffplans","POST",{businessUnitId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementBusinessunitUnavailabletimesSchedulesQuery(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitUnavailabletimesSchedulesQuery';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementBusinessunitUnavailabletimesSettingsQuery(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitUnavailabletimesSettingsQuery';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementBusinessunitWeekScheduleAgentschedulesQuery(e,i,n,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitWeekScheduleAgentschedulesQuery';if(i==null)throw'Missing the required parameter "weekId" when calling postWorkforcemanagementBusinessunitWeekScheduleAgentschedulesQuery';if(n==null||n==="")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:i,scheduleId:n},{forceAsync:r.forceAsync,forceDownloadService:r.forceDownloadService},{},{},a,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}postWorkforcemanagementBusinessunitWeekScheduleCopy(e,i,n,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitWeekScheduleCopy';if(i==null)throw'Missing the required parameter "weekId" when calling postWorkforcemanagementBusinessunitWeekScheduleCopy';if(n==null||n==="")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:i,scheduleId:n},{},{},{},a,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}postWorkforcemanagementBusinessunitWeekSchedulePerformancepredictionsRecalculations(e,i,n,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitWeekSchedulePerformancepredictionsRecalculations';if(i==null||i==="")throw'Missing the required parameter "weekId" when calling postWorkforcemanagementBusinessunitWeekSchedulePerformancepredictionsRecalculations';if(n==null||n==="")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:i,scheduleId:n},{},{},{},a,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}postWorkforcemanagementBusinessunitWeekSchedulePerformancepredictionsRecalculationsUploadurl(e,i,n,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitWeekSchedulePerformancepredictionsRecalculationsUploadurl';if(i==null||i==="")throw'Missing the required parameter "weekId" when calling postWorkforcemanagementBusinessunitWeekSchedulePerformancepredictionsRecalculationsUploadurl';if(n==null||n==="")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:i,scheduleId:n},{},{},{},a,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}postWorkforcemanagementBusinessunitWeekScheduleReschedule(e,i,n,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitWeekScheduleReschedule';if(i==null)throw'Missing the required parameter "weekId" when calling postWorkforcemanagementBusinessunitWeekScheduleReschedule';if(n==null||n==="")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:i,scheduleId:n},{},{},{},a,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}postWorkforcemanagementBusinessunitWeekScheduleUpdate(e,i,n,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitWeekScheduleUpdate';if(i==null)throw'Missing the required parameter "weekId" when calling postWorkforcemanagementBusinessunitWeekScheduleUpdate';if(n==null||n==="")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:i,scheduleId:n},{},{},{},a,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}postWorkforcemanagementBusinessunitWeekScheduleUpdateUploadurl(e,i,n,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitWeekScheduleUpdateUploadurl';if(i==null)throw'Missing the required parameter "weekId" when calling postWorkforcemanagementBusinessunitWeekScheduleUpdateUploadurl';if(n==null||n==="")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:i,scheduleId:n},{},{},{},a,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}postWorkforcemanagementBusinessunitWeekSchedules(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitWeekSchedules';if(i==null)throw'Missing the required parameter "weekId" when calling postWorkforcemanagementBusinessunitWeekSchedules';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postWorkforcemanagementBusinessunitWeekSchedulesGenerate(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitWeekSchedulesGenerate';if(i==null)throw'Missing the required parameter "weekId" when calling postWorkforcemanagementBusinessunitWeekSchedulesGenerate';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postWorkforcemanagementBusinessunitWeekSchedulesImport(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitWeekSchedulesImport';if(i==null)throw'Missing the required parameter "weekId" when calling postWorkforcemanagementBusinessunitWeekSchedulesImport';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postWorkforcemanagementBusinessunitWeekSchedulesImportUploadurl(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitWeekSchedulesImportUploadurl';if(i==null)throw'Missing the required parameter "weekId" when calling postWorkforcemanagementBusinessunitWeekSchedulesImportUploadurl';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postWorkforcemanagementBusinessunitWeekShorttermforecastCopy(e,i,n,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitWeekShorttermforecastCopy';if(i==null)throw'Missing the required parameter "weekDateId" when calling postWorkforcemanagementBusinessunitWeekShorttermforecastCopy';if(n==null||n==="")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:i,forecastId:n},{forceAsync:r.forceAsync},{},{},a,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}postWorkforcemanagementBusinessunitWeekShorttermforecastsGenerate(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitWeekShorttermforecastsGenerate';if(i==null)throw'Missing the required parameter "weekDateId" when calling postWorkforcemanagementBusinessunitWeekShorttermforecastsGenerate';if(n==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:i},{forceAsync:a.forceAsync},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postWorkforcemanagementBusinessunitWeekShorttermforecastsImport(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitWeekShorttermforecastsImport';if(i==null)throw'Missing the required parameter "weekDateId" when calling postWorkforcemanagementBusinessunitWeekShorttermforecastsImport';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postWorkforcemanagementBusinessunitWeekShorttermforecastsImportUploadurl(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitWeekShorttermforecastsImportUploadurl';if(i==null)throw'Missing the required parameter "weekDateId" when calling postWorkforcemanagementBusinessunitWeekShorttermforecastsImportUploadurl';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postWorkforcemanagementBusinessunitWorkplanbidCopy(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitWorkplanbidCopy';if(i==null||i==="")throw'Missing the required parameter "bidId" when calling postWorkforcemanagementBusinessunitWorkplanbidCopy';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postWorkforcemanagementBusinessunitWorkplanbidGroups(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitWorkplanbidGroups';if(i==null||i==="")throw'Missing the required parameter "bidId" when calling postWorkforcemanagementBusinessunitWorkplanbidGroups';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postWorkforcemanagementBusinessunitWorkplanbids(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitWorkplanbids';if(i==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunitWorkplanbids';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/workplanbids","POST",{businessUnitId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementBusinessunits(e,i){if(i=i||{},e==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunits';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits","POST",{},{includeSchedulingDefaultMessageSeverities:i.includeSchedulingDefaultMessageSeverities},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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"],i.customHeaders)}postWorkforcemanagementHistoricaldataValidate(e,i){if(i=i||{},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"],i.customHeaders)}postWorkforcemanagementIntegrationsHriTimeofftypesJobs(e,i){if(i=i||{},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"],i.customHeaders)}postWorkforcemanagementManagementunitAgentsWorkplansQuery(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitAgentsWorkplansQuery';if(i==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:n.forceDownloadService},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementManagementunitAgentschedulesSearch(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitAgentschedulesSearch';if(i==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:n.forceAsync,forceDownloadService:n.forceDownloadService},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementManagementunitHistoricaladherencequery(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitHistoricaladherencequery';if(i==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementManagementunitHistoricaladherencequery';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/historicaladherencequery","POST",{managementUnitId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementManagementunitMove(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitMove';if(i==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementManagementunitMove';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/move","POST",{managementUnitId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementManagementunitSchedulesSearch(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitSchedulesSearch';if(i==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementManagementunitSchedulesSearch';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/schedules/search","POST",{managementUnitId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementManagementunitShrinkageJobs(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitShrinkageJobs';if(i==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementManagementunitShrinkageJobs';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/shrinkage/jobs","POST",{managementUnitId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementManagementunitTimeofflimits(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitTimeofflimits';if(i==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementManagementunitTimeofflimits';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/timeofflimits","POST",{managementUnitId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementManagementunitTimeofflimitsValuesQuery(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitTimeofflimitsValuesQuery';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementManagementunitTimeoffplans(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitTimeoffplans';if(i==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementManagementunitTimeoffplans';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/timeoffplans","POST",{managementUnitId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementManagementunitTimeoffrequests(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitTimeoffrequests';if(i==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementManagementunitTimeoffrequests';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/timeoffrequests","POST",{managementUnitId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementManagementunitTimeoffrequestsIntegrationstatusQuery(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitTimeoffrequestsIntegrationstatusQuery';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementManagementunitTimeoffrequestsQuery(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitTimeoffrequestsQuery';if(i==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:n.forceDownloadService},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementManagementunitTimeoffrequestsWaitlistpositionsQuery(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitTimeoffrequestsWaitlistpositionsQuery';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementManagementunitUserTimeoffbalanceJobs(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitUserTimeoffbalanceJobs';if(i==null||i==="")throw'Missing the required parameter "userId" when calling postWorkforcemanagementManagementunitUserTimeoffbalanceJobs';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postWorkforcemanagementManagementunitUserTimeoffrequestTimeoffbalanceJobs(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitUserTimeoffrequestTimeoffbalanceJobs';if(i==null||i==="")throw'Missing the required parameter "userId" when calling postWorkforcemanagementManagementunitUserTimeoffrequestTimeoffbalanceJobs';if(n==null||n==="")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:i,timeOffRequestId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postWorkforcemanagementManagementunitUserTimeoffrequestsEstimate(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitUserTimeoffrequestsEstimate';if(i==null||i==="")throw'Missing the required parameter "userId" when calling postWorkforcemanagementManagementunitUserTimeoffrequestsEstimate';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postWorkforcemanagementManagementunitWeekShifttradeMatch(e,i,n,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitWeekShifttradeMatch';if(i==null)throw'Missing the required parameter "weekDateId" when calling postWorkforcemanagementManagementunitWeekShifttradeMatch';if(n==null||n==="")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:i,tradeId:n},{},{},{},a,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}postWorkforcemanagementManagementunitWeekShifttrades(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitWeekShifttrades';if(i==null)throw'Missing the required parameter "weekDateId" when calling postWorkforcemanagementManagementunitWeekShifttrades';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postWorkforcemanagementManagementunitWeekShifttradesSearch(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitWeekShifttradesSearch';if(i==null)throw'Missing the required parameter "weekDateId" when calling postWorkforcemanagementManagementunitWeekShifttradesSearch';if(n==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:i},{forceDownloadService:a.forceDownloadService},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postWorkforcemanagementManagementunitWeekShifttradesStateBulk(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitWeekShifttradesStateBulk';if(i==null)throw'Missing the required parameter "weekDateId" when calling postWorkforcemanagementManagementunitWeekShifttradesStateBulk';if(n==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:i},{forceAsync:a.forceAsync},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postWorkforcemanagementManagementunitWorkplanCopy(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitWorkplanCopy';if(i==null||i==="")throw'Missing the required parameter "workPlanId" when calling postWorkforcemanagementManagementunitWorkplanCopy';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postWorkforcemanagementManagementunitWorkplanValidate(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitWorkplanValidate';if(i==null||i==="")throw'Missing the required parameter "workPlanId" when calling postWorkforcemanagementManagementunitWorkplanValidate';if(n==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:i},{expand:this.apiClient.buildCollectionParam(a.expand,"multi")},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postWorkforcemanagementManagementunitWorkplanrotationCopy(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitWorkplanrotationCopy';if(i==null||i==="")throw'Missing the required parameter "workPlanRotationId" when calling postWorkforcemanagementManagementunitWorkplanrotationCopy';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postWorkforcemanagementManagementunitWorkplanrotations(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitWorkplanrotations';if(i==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementManagementunitWorkplanrotations';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/workplanrotations","POST",{managementUnitId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementManagementunitWorkplans(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitWorkplans';if(i==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementManagementunitWorkplans';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/workplans","POST",{managementUnitId:e},{validationMode:n.validationMode},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementManagementunits(e,i){if(i=i||{},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"],i.customHeaders)}postWorkforcemanagementNotificationsUpdate(e,i){if(i=i||{},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"],i.customHeaders)}postWorkforcemanagementSchedules(e){return e=e||{},this.apiClient.callApi("/api/v2/workforcemanagement/schedules","POST",{},{},{},{},e.body,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}postWorkforcemanagementShifttradingTradeJobs(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "tradeId" when calling postWorkforcemanagementShifttradingTradeJobs';if(i==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:n.forceAsync},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementShifttradingTradeMatchJobs(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "tradeId" when calling postWorkforcemanagementShifttradingTradeMatchJobs';if(i==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:n.forceAsync},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementShifttradingTradeStateJobs(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "tradeId" when calling postWorkforcemanagementShifttradingTradeStateJobs';if(i==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:n.forceAsync},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementShifttradingTradesJobs(e,i){if(i=i||{},e==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementShifttradingTradesJobs';return this.apiClient.callApi("/api/v2/workforcemanagement/shifttrading/trades/jobs","POST",{},{forceAsync:i.forceAsync},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postWorkforcemanagementShifttradingTradesMineQueryJobs(e,i){if(i=i||{},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:i.forceAsync,forceDownloadService:i.forceDownloadService},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postWorkforcemanagementTeamAdherenceHistorical(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "teamId" when calling postWorkforcemanagementTeamAdherenceHistorical';if(i==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementTeamAdherenceHistorical';return this.apiClient.callApi("/api/v2/workforcemanagement/teams/{teamId}/adherence/historical","POST",{teamId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementTeamShrinkageJobs(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "teamId" when calling postWorkforcemanagementTeamShrinkageJobs';if(i==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementTeamShrinkageJobs';return this.apiClient.callApi("/api/v2/workforcemanagement/teams/{teamId}/shrinkage/jobs","POST",{teamId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementTimeoffbalanceJobs(e,i){if(i=i||{},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"],i.customHeaders)}postWorkforcemanagementTimeofflimitsAvailableQuery(e,i){if(i=i||{},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"],i.customHeaders)}postWorkforcemanagementTimeoffrequests(e,i){if(i=i||{},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"],i.customHeaders)}postWorkforcemanagementTimeoffrequestsEstimate(e,i){if(i=i||{},e==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementTimeoffrequestsEstimate';return this.apiClient.callApi("/api/v2/workforcemanagement/timeoffrequests/estimate","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postWorkforcemanagementTimeoffrequestsIntegrationstatusQuery(e,i){if(i=i||{},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"],i.customHeaders)}postWorkforcemanagementUnavailabletimesQuery(e,i){if(i=i||{},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"],i.customHeaders)}postWorkforcemanagementUnavailabletimesValidationJobs(e,i){if(i=i||{},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"],i.customHeaders)}putWorkforcemanagementAgentIntegrationsHris(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "agentId" when calling putWorkforcemanagementAgentIntegrationsHris';if(i==null)throw'Missing the required parameter "body" when calling putWorkforcemanagementAgentIntegrationsHris';return this.apiClient.callApi("/api/v2/workforcemanagement/agents/{agentId}/integrations/hris","PUT",{agentId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putWorkforcemanagementBusinessunitTimeofflimitValues(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling putWorkforcemanagementBusinessunitTimeofflimitValues';if(i==null||i==="")throw'Missing the required parameter "timeOffLimitId" when calling putWorkforcemanagementBusinessunitTimeofflimitValues';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}putWorkforcemanagementManagementunitTimeofflimitValues(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling putWorkforcemanagementManagementunitTimeofflimitValues';if(i==null||i==="")throw'Missing the required parameter "timeOffLimitId" when calling putWorkforcemanagementManagementunitTimeofflimitValues';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}},ay=class{constructor(){this.ApiClient=new q,this.ApiClientClass=q,this.AIStudioApi=OA,this.AgentAssistantsApi=xA,this.AgentCopilotApi=TA,this.AgentUIApi=MA,this.AlertingApi=EA,this.AnalyticsApi=kA,this.ArchitectApi=qA,this.AssistantCopilotVariationsApi=_A,this.AuditApi=HA,this.AuthorizationApi=RA,this.BackgroundAssistantApi=IA,this.BillingApi=zA,this.BusinessRulesApi=DA,this.CarrierServicesApi=GA,this.CaseManagementApi=$A,this.ChatApi=NA,this.CoachingApi=UA,this.ContentManagementApi=LA,this.ConversationsApi=WA,this.DataExtensionsApi=BA,this.DataPrivacyApi=FA,this.DownloadsApi=VA,this.EmailsApi=JA,this.EmployeeEngagementApi=ZA,this.EventsApi=KA,this.ExternalContactsApi=QA,this.FaxApi=YA,this.FlowsApi=XA,this.GamificationApi=eb,this.GeneralDataProtectionRegulationApi=ib,this.GeolocationApi=nb,this.GreetingsApi=tb,this.GroupsApi=ab,this.IdentityProviderApi=rb,this.InfrastructureAsCodeApi=sb,this.IntegrationsApi=ob,this.IntentsApi=lb,this.JourneyApi=ub,this.KnowledgeApi=cb,this.LanguageUnderstandingApi=pb,this.LanguagesApi=db,this.LearningApi=hb,this.LicenseApi=gb,this.LocationsApi=mb,this.LogCaptureApi=fb,this.MessagingApi=wb,this.MobileDevicesApi=vb,this.NotificationsApi=Cb,this.OAuthApi=Ab,this.ObjectsApi=bb,this.OperationalEventsApi=yb,this.OrganizationApi=Pb,this.OrganizationAuthorizationApi=jb,this.OutboundApi=Sb,this.PresenceApi=Ob,this.ProcessAutomationApi=xb,this.QualityApi=Tb,this.RecordingApi=Mb,this.ResponseManagementApi=Eb,this.RoutingApi=kb,this.SCIMApi=qb,this.ScriptsApi=_b,this.SearchApi=Hb,this.SettingsApi=Rb,this.SocialMediaApi=Ib,this.SpeechTextAnalyticsApi=zb,this.StationsApi=Db,this.SuggestApi=Gb,this.TaskManagementApi=$b,this.TeamsApi=Nb,this.TelephonyApi=Ub,this.TelephonyProvidersEdgeApi=Lb,this.TextbotsApi=Wb,this.TokensApi=Bb,this.UploadsApi=Fb,this.UsageApi=Vb,this.UserRecordingsApi=Jb,this.UsersApi=Zb,this.UsersRulesApi=Kb,this.UtilitiesApi=Qb,this.VoicemailApi=Yb,this.WebChatApi=Xb,this.WebDeploymentsApi=ey,this.WebMessagingApi=iy,this.WidgetsApi=ny,this.WorkforceManagementApi=ty,this.PureCloudRegionHosts=YY,this.AbstractHttpClient=El,this.DefaultHttpClient=pd,this.HttpRequestOptions=Zt}},eX=new ay;rI.exports=eX});var Cn={};gd(Cn,{BRAND:()=>VI,DIRTY:()=>Kt,EMPTY_PATH:()=>SI,INVALID:()=>K,NEVER:()=>Ez,OK:()=>xi,ParseStatus:()=>Ci,Schema:()=>ae,ZodAny:()=>wt,ZodArray:()=>et,ZodBigInt:()=>Yt,ZodBoolean:()=>Xt,ZodBranded:()=>fs,ZodCatch:()=>ca,ZodDate:()=>ea,ZodDefault:()=>ua,ZodDiscriminatedUnion:()=>_l,ZodEffects:()=>rn,ZodEnum:()=>oa,ZodError:()=>zi,ZodFirstPartyTypeKind:()=>E,ZodFunction:()=>Rl,ZodIntersection:()=>aa,ZodIssueCode:()=>M,ZodLazy:()=>ra,ZodLiteral:()=>sa,ZodMap:()=>rr,ZodNaN:()=>or,ZodNativeEnum:()=>la,ZodNever:()=>vn,ZodNull:()=>na,ZodNullable:()=>Hn,ZodNumber:()=>Qt,ZodObject:()=>Di,ZodOptional:()=>tn,ZodParsedType:()=>z,ZodPipeline:()=>ws,ZodPromise:()=>vt,ZodReadonly:()=>pa,ZodRecord:()=>Hl,ZodSchema:()=>ae,ZodSet:()=>sr,ZodString:()=>ft,ZodSymbol:()=>tr,ZodTransformer:()=>rn,ZodTuple:()=>_n,ZodType:()=>ae,ZodUndefined:()=>ia,ZodUnion:()=>ta,ZodUnknown:()=>Xn,ZodVoid:()=>ar,addIssueToContext:()=>_,any:()=>nz,array:()=>sz,bigint:()=>QI,boolean:()=>Cy,coerce:()=>Mz,custom:()=>fy,date:()=>YI,datetimeRegex:()=>gy,defaultErrorMap:()=>Qn,discriminatedUnion:()=>uz,effect:()=>bz,enum:()=>vz,function:()=>mz,getErrorMap:()=>er,getParsedType:()=>qn,instanceof:()=>ZI,intersection:()=>cz,isAborted:()=>kl,isAsync:()=>ir,isDirty:()=>ql,isValid:()=>mt,late:()=>JI,lazy:()=>fz,literal:()=>wz,makeIssue:()=>ms,map:()=>hz,nan:()=>KI,nativeEnum:()=>Cz,never:()=>az,null:()=>iz,nullable:()=>Pz,number:()=>vy,object:()=>vd,objectUtil:()=>md,oboolean:()=>Tz,onumber:()=>xz,optional:()=>yz,ostring:()=>Oz,pipeline:()=>Sz,preprocess:()=>jz,promise:()=>Az,quotelessJson:()=>yI,record:()=>dz,set:()=>gz,setErrorMap:()=>jI,strictObject:()=>oz,string:()=>wy,symbol:()=>XI,transformer:()=>bz,tuple:()=>pz,undefined:()=>ez,union:()=>lz,unknown:()=>tz,util:()=>ce,void:()=>rz});var ce;(function(t){t.assertEqual=a=>{};function e(a){}t.assertIs=e;function i(a){throw new Error}t.assertNever=i,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 n(a,r=" | "){return a.map(s=>typeof s=="string"?`'${s}'`:s).join(r)}t.joinValues=n,t.jsonStringifyReplacer=(a,r)=>typeof r=="bigint"?r.toString():r})(ce||(ce={}));var md;(function(t){t.mergeShapes=(e,i)=>({...e,...i})})(md||(md={}));var z=ce.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),qn=t=>{switch(typeof t){case"undefined":return z.undefined;case"string":return z.string;case"number":return Number.isNaN(t)?z.nan:z.number;case"boolean":return z.boolean;case"function":return z.function;case"bigint":return z.bigint;case"symbol":return z.symbol;case"object":return Array.isArray(t)?z.array:t===null?z.null:t.then&&typeof t.then=="function"&&t.catch&&typeof t.catch=="function"?z.promise:typeof Map<"u"&&t instanceof Map?z.map:typeof Set<"u"&&t instanceof Set?z.set:typeof Date<"u"&&t instanceof Date?z.date:z.object;default:return z.unknown}};var M=ce.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]),yI=t=>JSON.stringify(t,null,2).replace(/"([^"]+)":/g,"$1:"),zi=class t extends Error{get errors(){return this.issues}constructor(e){super(),this.issues=[],this.addIssue=n=>{this.issues=[...this.issues,n]},this.addIssues=(n=[])=>{this.issues=[...this.issues,...n]};let i=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,i):this.__proto__=i,this.name="ZodError",this.issues=e}format(e){let i=e||function(r){return r.message},n={_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)n._errors.push(i(s));else{let o=n,l=0;for(;li.message){let i=Object.create(null),n=[];for(let a of this.issues)if(a.path.length>0){let r=a.path[0];i[r]=i[r]||[],i[r].push(e(a))}else n.push(e(a));return{formErrors:n,fieldErrors:i}}get formErrors(){return this.flatten()}};zi.create=t=>new zi(t);var PI=(t,e)=>{let i;switch(t.code){case M.invalid_type:t.received===z.undefined?i="Required":i=`Expected ${t.expected}, received ${t.received}`;break;case M.invalid_literal:i=`Invalid literal value, expected ${JSON.stringify(t.expected,ce.jsonStringifyReplacer)}`;break;case M.unrecognized_keys:i=`Unrecognized key(s) in object: ${ce.joinValues(t.keys,", ")}`;break;case M.invalid_union:i="Invalid input";break;case M.invalid_union_discriminator:i=`Invalid discriminator value. Expected ${ce.joinValues(t.options)}`;break;case M.invalid_enum_value:i=`Invalid enum value. Expected ${ce.joinValues(t.options)}, received '${t.received}'`;break;case M.invalid_arguments:i="Invalid function arguments";break;case M.invalid_return_type:i="Invalid function return type";break;case M.invalid_date:i="Invalid date";break;case M.invalid_string:typeof t.validation=="object"?"includes"in t.validation?(i=`Invalid input: must include "${t.validation.includes}"`,typeof t.validation.position=="number"&&(i=`${i} at one or more positions greater than or equal to ${t.validation.position}`)):"startsWith"in t.validation?i=`Invalid input: must start with "${t.validation.startsWith}"`:"endsWith"in t.validation?i=`Invalid input: must end with "${t.validation.endsWith}"`:ce.assertNever(t.validation):t.validation!=="regex"?i=`Invalid ${t.validation}`:i="Invalid";break;case M.too_small:t.type==="array"?i=`Array must contain ${t.exact?"exactly":t.inclusive?"at least":"more than"} ${t.minimum} element(s)`:t.type==="string"?i=`String must contain ${t.exact?"exactly":t.inclusive?"at least":"over"} ${t.minimum} character(s)`:t.type==="number"?i=`Number must be ${t.exact?"exactly equal to ":t.inclusive?"greater than or equal to ":"greater than "}${t.minimum}`:t.type==="bigint"?i=`Number must be ${t.exact?"exactly equal to ":t.inclusive?"greater than or equal to ":"greater than "}${t.minimum}`:t.type==="date"?i=`Date must be ${t.exact?"exactly equal to ":t.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(t.minimum))}`:i="Invalid input";break;case M.too_big:t.type==="array"?i=`Array must contain ${t.exact?"exactly":t.inclusive?"at most":"less than"} ${t.maximum} element(s)`:t.type==="string"?i=`String must contain ${t.exact?"exactly":t.inclusive?"at most":"under"} ${t.maximum} character(s)`:t.type==="number"?i=`Number must be ${t.exact?"exactly":t.inclusive?"less than or equal to":"less than"} ${t.maximum}`:t.type==="bigint"?i=`BigInt must be ${t.exact?"exactly":t.inclusive?"less than or equal to":"less than"} ${t.maximum}`:t.type==="date"?i=`Date must be ${t.exact?"exactly":t.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(t.maximum))}`:i="Invalid input";break;case M.custom:i="Invalid input";break;case M.invalid_intersection_types:i="Intersection results could not be merged";break;case M.not_multiple_of:i=`Number must be a multiple of ${t.multipleOf}`;break;case M.not_finite:i="Number must be finite";break;default:i=e.defaultError,ce.assertNever(t)}return{message:i}},Qn=PI;var uy=Qn;function jI(t){uy=t}function er(){return uy}var ms=t=>{let{data:e,path:i,errorMaps:n,issueData:a}=t,r=[...i,...a.path||[]],s={...a,path:r};if(a.message!==void 0)return{...a,path:r,message:a.message};let o="",l=n.filter(u=>!!u).slice().reverse();for(let u of l)o=u(s,{data:e,defaultError:o}).message;return{...a,path:r,message:o}},SI=[];function _(t,e){let i=er(),n=ms({issueData:e,data:t.data,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,i,i===Qn?void 0:Qn].filter(a=>!!a)});t.common.issues.push(n)}var Ci=class t{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(e,i){let n=[];for(let a of i){if(a.status==="aborted")return K;a.status==="dirty"&&e.dirty(),n.push(a.value)}return{status:e.value,value:n}}static async mergeObjectAsync(e,i){let n=[];for(let a of i){let r=await a.key,s=await a.value;n.push({key:r,value:s})}return t.mergeObjectSync(e,n)}static mergeObjectSync(e,i){let n={};for(let a of i){let{key:r,value:s}=a;if(r.status==="aborted"||s.status==="aborted")return K;r.status==="dirty"&&e.dirty(),s.status==="dirty"&&e.dirty(),r.value!=="__proto__"&&(typeof s.value<"u"||a.alwaysSet)&&(n[r.value]=s.value)}return{status:e.value,value:n}}},K=Object.freeze({status:"aborted"}),Kt=t=>({status:"dirty",value:t}),xi=t=>({status:"valid",value:t}),kl=t=>t.status==="aborted",ql=t=>t.status==="dirty",mt=t=>t.status==="valid",ir=t=>typeof Promise<"u"&&t instanceof Promise;var U;(function(t){t.errToObj=e=>typeof e=="string"?{message:e}:e||{},t.toString=e=>typeof e=="string"?e:e?.message})(U||(U={}));var an=class{constructor(e,i,n,a){this._cachedPath=[],this.parent=e,this.data=i,this._path=n,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}},cy=(t,e)=>{if(mt(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 i=new zi(t.common.issues);return this._error=i,this._error}}};function ne(t){if(!t)return{};let{errorMap:e,invalid_type_error:i,required_error:n,description:a}=t;if(e&&(i||n))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??n??o.defaultError}:s.code!=="invalid_type"?{message:o.defaultError}:{message:l??i??o.defaultError}},description:a}}var ae=class{get description(){return this._def.description}_getType(e){return qn(e.data)}_getOrReturnCtx(e,i){return i||{common:e.parent.common,data:e.data,parsedType:qn(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new Ci,ctx:{common:e.parent.common,data:e.data,parsedType:qn(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){let i=this._parse(e);if(ir(i))throw new Error("Synchronous parse encountered promise.");return i}_parseAsync(e){let i=this._parse(e);return Promise.resolve(i)}parse(e,i){let n=this.safeParse(e,i);if(n.success)return n.data;throw n.error}safeParse(e,i){let n={common:{issues:[],async:i?.async??!1,contextualErrorMap:i?.errorMap},path:i?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:qn(e)},a=this._parseSync({data:e,path:n.path,parent:n});return cy(n,a)}"~validate"(e){let i={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:qn(e)};if(!this["~standard"].async)try{let n=this._parseSync({data:e,path:[],parent:i});return mt(n)?{value:n.value}:{issues:i.common.issues}}catch(n){n?.message?.toLowerCase()?.includes("encountered")&&(this["~standard"].async=!0),i.common={issues:[],async:!0}}return this._parseAsync({data:e,path:[],parent:i}).then(n=>mt(n)?{value:n.value}:{issues:i.common.issues})}async parseAsync(e,i){let n=await this.safeParseAsync(e,i);if(n.success)return n.data;throw n.error}async safeParseAsync(e,i){let n={common:{issues:[],contextualErrorMap:i?.errorMap,async:!0},path:i?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:qn(e)},a=this._parse({data:e,path:n.path,parent:n}),r=await(ir(a)?a:Promise.resolve(a));return cy(n,r)}refine(e,i){let n=a=>typeof i=="string"||typeof i>"u"?{message:i}:typeof i=="function"?i(a):i;return this._refinement((a,r)=>{let s=e(a),o=()=>r.addIssue({code:M.custom,...n(a)});return typeof Promise<"u"&&s instanceof Promise?s.then(l=>l?!0:(o(),!1)):s?!0:(o(),!1)})}refinement(e,i){return this._refinement((n,a)=>e(n)?!0:(a.addIssue(typeof i=="function"?i(n,a):i),!1))}_refinement(e){return new rn({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:i=>this["~validate"](i)}}optional(){return tn.create(this,this._def)}nullable(){return Hn.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return et.create(this)}promise(){return vt.create(this,this._def)}or(e){return ta.create([this,e],this._def)}and(e){return aa.create(this,e,this._def)}transform(e){return new rn({...ne(this._def),schema:this,typeName:E.ZodEffects,effect:{type:"transform",transform:e}})}default(e){let i=typeof e=="function"?e:()=>e;return new ua({...ne(this._def),innerType:this,defaultValue:i,typeName:E.ZodDefault})}brand(){return new fs({typeName:E.ZodBranded,type:this,...ne(this._def)})}catch(e){let i=typeof e=="function"?e:()=>e;return new ca({...ne(this._def),innerType:this,catchValue:i,typeName:E.ZodCatch})}describe(e){let i=this.constructor;return new i({...this._def,description:e})}pipe(e){return ws.create(this,e)}readonly(){return pa.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}},OI=/^c[^\s-]{8,}$/i,xI=/^[0-9a-z]+$/,TI=/^[0-9A-HJKMNP-TV-Z]{26}$/i,MI=/^[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,EI=/^[a-z0-9_-]{21}$/i,kI=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,qI=/^[-+]?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)?)??$/,_I=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,HI="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$",fd,RI=/^(?:(?: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])$/,II=/^(?:(?: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])$/,zI=/^(([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]))$/,DI=/^(([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])$/,GI=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,$I=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,dy="((\\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])))",NI=new RegExp(`^${dy}$`);function hy(t){let e="[0-5]\\d";t.precision?e=`${e}\\.\\d{${t.precision}}`:t.precision==null&&(e=`${e}(\\.\\d+)?`);let i=t.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${e})${i}`}function UI(t){return new RegExp(`^${hy(t)}$`)}function gy(t){let e=`${dy}T${hy(t)}`,i=[];return i.push(t.local?"Z?":"Z"),t.offset&&i.push("([+-]\\d{2}:?\\d{2})"),e=`${e}(${i.join("|")})`,new RegExp(`^${e}$`)}function LI(t,e){return!!((e==="v4"||!e)&&RI.test(t)||(e==="v6"||!e)&&zI.test(t))}function WI(t,e){if(!kI.test(t))return!1;try{let[i]=t.split(".");if(!i)return!1;let n=i.replace(/-/g,"+").replace(/_/g,"/").padEnd(i.length+(4-i.length%4)%4,"="),a=JSON.parse(atob(n));return!(typeof a!="object"||a===null||"typ"in a&&a?.typ!=="JWT"||!a.alg||e&&a.alg!==e)}catch{return!1}}function BI(t,e){return!!((e==="v4"||!e)&&II.test(t)||(e==="v6"||!e)&&DI.test(t))}var ft=class t extends ae{_parse(e){if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!==z.string){let r=this._getOrReturnCtx(e);return _(r,{code:M.invalid_type,expected:z.string,received:r.parsedType}),K}let n=new Ci,a;for(let r of this._def.checks)if(r.kind==="min")e.data.lengthr.value&&(a=this._getOrReturnCtx(e,a),_(a,{code:M.too_big,maximum:r.value,type:"string",inclusive:!0,exact:!1,message:r.message}),n.dirty());else if(r.kind==="length"){let s=e.data.length>r.value,o=e.data.lengthe.test(a),{validation:i,code:M.invalid_string,...U.errToObj(n)})}_addCheck(e){return new t({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...U.errToObj(e)})}url(e){return this._addCheck({kind:"url",...U.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",...U.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...U.errToObj(e)})}nanoid(e){return this._addCheck({kind:"nanoid",...U.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...U.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",...U.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid",...U.errToObj(e)})}base64(e){return this._addCheck({kind:"base64",...U.errToObj(e)})}base64url(e){return this._addCheck({kind:"base64url",...U.errToObj(e)})}jwt(e){return this._addCheck({kind:"jwt",...U.errToObj(e)})}ip(e){return this._addCheck({kind:"ip",...U.errToObj(e)})}cidr(e){return this._addCheck({kind:"cidr",...U.errToObj(e)})}datetime(e){return typeof e=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:e}):this._addCheck({kind:"datetime",precision:typeof e?.precision>"u"?null:e?.precision,offset:e?.offset??!1,local:e?.local??!1,...U.errToObj(e?.message)})}date(e){return this._addCheck({kind:"date",message:e})}time(e){return typeof e=="string"?this._addCheck({kind:"time",precision:null,message:e}):this._addCheck({kind:"time",precision:typeof e?.precision>"u"?null:e?.precision,...U.errToObj(e?.message)})}duration(e){return this._addCheck({kind:"duration",...U.errToObj(e)})}regex(e,i){return this._addCheck({kind:"regex",regex:e,...U.errToObj(i)})}includes(e,i){return this._addCheck({kind:"includes",value:e,position:i?.position,...U.errToObj(i?.message)})}startsWith(e,i){return this._addCheck({kind:"startsWith",value:e,...U.errToObj(i)})}endsWith(e,i){return this._addCheck({kind:"endsWith",value:e,...U.errToObj(i)})}min(e,i){return this._addCheck({kind:"min",value:e,...U.errToObj(i)})}max(e,i){return this._addCheck({kind:"max",value:e,...U.errToObj(i)})}length(e,i){return this._addCheck({kind:"length",value:e,...U.errToObj(i)})}nonempty(e){return this.min(1,U.errToObj(e))}trim(){return new t({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new t({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new t({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(e=>e.kind==="datetime")}get isDate(){return!!this._def.checks.find(e=>e.kind==="date")}get isTime(){return!!this._def.checks.find(e=>e.kind==="time")}get isDuration(){return!!this._def.checks.find(e=>e.kind==="duration")}get isEmail(){return!!this._def.checks.find(e=>e.kind==="email")}get isURL(){return!!this._def.checks.find(e=>e.kind==="url")}get isEmoji(){return!!this._def.checks.find(e=>e.kind==="emoji")}get isUUID(){return!!this._def.checks.find(e=>e.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(e=>e.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(e=>e.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(e=>e.kind==="cuid2")}get isULID(){return!!this._def.checks.find(e=>e.kind==="ulid")}get isIP(){return!!this._def.checks.find(e=>e.kind==="ip")}get isCIDR(){return!!this._def.checks.find(e=>e.kind==="cidr")}get isBase64(){return!!this._def.checks.find(e=>e.kind==="base64")}get isBase64url(){return!!this._def.checks.find(e=>e.kind==="base64url")}get minLength(){let e=null;for(let i of this._def.checks)i.kind==="min"&&(e===null||i.value>e)&&(e=i.value);return e}get maxLength(){let e=null;for(let i of this._def.checks)i.kind==="max"&&(e===null||i.valuenew ft({checks:[],typeName:E.ZodString,coerce:t?.coerce??!1,...ne(t)});function FI(t,e){let i=(t.toString().split(".")[1]||"").length,n=(e.toString().split(".")[1]||"").length,a=i>n?i:n,r=Number.parseInt(t.toFixed(a).replace(".","")),s=Number.parseInt(e.toFixed(a).replace(".",""));return r%s/10**a}var Qt=class t extends ae{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){if(this._def.coerce&&(e.data=Number(e.data)),this._getType(e)!==z.number){let r=this._getOrReturnCtx(e);return _(r,{code:M.invalid_type,expected:z.number,received:r.parsedType}),K}let n,a=new Ci;for(let r of this._def.checks)r.kind==="int"?ce.isInteger(e.data)||(n=this._getOrReturnCtx(e,n),_(n,{code:M.invalid_type,expected:"integer",received:"float",message:r.message}),a.dirty()):r.kind==="min"?(r.inclusive?e.datar.value:e.data>=r.value)&&(n=this._getOrReturnCtx(e,n),_(n,{code:M.too_big,maximum:r.value,type:"number",inclusive:r.inclusive,exact:!1,message:r.message}),a.dirty()):r.kind==="multipleOf"?FI(e.data,r.value)!==0&&(n=this._getOrReturnCtx(e,n),_(n,{code:M.not_multiple_of,multipleOf:r.value,message:r.message}),a.dirty()):r.kind==="finite"?Number.isFinite(e.data)||(n=this._getOrReturnCtx(e,n),_(n,{code:M.not_finite,message:r.message}),a.dirty()):ce.assertNever(r);return{status:a.value,value:e.data}}gte(e,i){return this.setLimit("min",e,!0,U.toString(i))}gt(e,i){return this.setLimit("min",e,!1,U.toString(i))}lte(e,i){return this.setLimit("max",e,!0,U.toString(i))}lt(e,i){return this.setLimit("max",e,!1,U.toString(i))}setLimit(e,i,n,a){return new t({...this._def,checks:[...this._def.checks,{kind:e,value:i,inclusive:n,message:U.toString(a)}]})}_addCheck(e){return new t({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:U.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:U.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:U.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:U.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:U.toString(e)})}multipleOf(e,i){return this._addCheck({kind:"multipleOf",value:e,message:U.toString(i)})}finite(e){return this._addCheck({kind:"finite",message:U.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:U.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:U.toString(e)})}get minValue(){let e=null;for(let i of this._def.checks)i.kind==="min"&&(e===null||i.value>e)&&(e=i.value);return e}get maxValue(){let e=null;for(let i of this._def.checks)i.kind==="max"&&(e===null||i.valuee.kind==="int"||e.kind==="multipleOf"&&ce.isInteger(e.value))}get isFinite(){let e=null,i=null;for(let n of this._def.checks){if(n.kind==="finite"||n.kind==="int"||n.kind==="multipleOf")return!0;n.kind==="min"?(i===null||n.value>i)&&(i=n.value):n.kind==="max"&&(e===null||n.valuenew Qt({checks:[],typeName:E.ZodNumber,coerce:t?.coerce||!1,...ne(t)});var Yt=class t extends ae{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){if(this._def.coerce)try{e.data=BigInt(e.data)}catch{return this._getInvalidInput(e)}if(this._getType(e)!==z.bigint)return this._getInvalidInput(e);let n,a=new Ci;for(let r of this._def.checks)r.kind==="min"?(r.inclusive?e.datar.value:e.data>=r.value)&&(n=this._getOrReturnCtx(e,n),_(n,{code:M.too_big,type:"bigint",maximum:r.value,inclusive:r.inclusive,message:r.message}),a.dirty()):r.kind==="multipleOf"?e.data%r.value!==BigInt(0)&&(n=this._getOrReturnCtx(e,n),_(n,{code:M.not_multiple_of,multipleOf:r.value,message:r.message}),a.dirty()):ce.assertNever(r);return{status:a.value,value:e.data}}_getInvalidInput(e){let i=this._getOrReturnCtx(e);return _(i,{code:M.invalid_type,expected:z.bigint,received:i.parsedType}),K}gte(e,i){return this.setLimit("min",e,!0,U.toString(i))}gt(e,i){return this.setLimit("min",e,!1,U.toString(i))}lte(e,i){return this.setLimit("max",e,!0,U.toString(i))}lt(e,i){return this.setLimit("max",e,!1,U.toString(i))}setLimit(e,i,n,a){return new t({...this._def,checks:[...this._def.checks,{kind:e,value:i,inclusive:n,message:U.toString(a)}]})}_addCheck(e){return new t({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:U.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:U.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:U.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:U.toString(e)})}multipleOf(e,i){return this._addCheck({kind:"multipleOf",value:e,message:U.toString(i)})}get minValue(){let e=null;for(let i of this._def.checks)i.kind==="min"&&(e===null||i.value>e)&&(e=i.value);return e}get maxValue(){let e=null;for(let i of this._def.checks)i.kind==="max"&&(e===null||i.valuenew Yt({checks:[],typeName:E.ZodBigInt,coerce:t?.coerce??!1,...ne(t)});var Xt=class extends ae{_parse(e){if(this._def.coerce&&(e.data=!!e.data),this._getType(e)!==z.boolean){let n=this._getOrReturnCtx(e);return _(n,{code:M.invalid_type,expected:z.boolean,received:n.parsedType}),K}return xi(e.data)}};Xt.create=t=>new Xt({typeName:E.ZodBoolean,coerce:t?.coerce||!1,...ne(t)});var ea=class t extends ae{_parse(e){if(this._def.coerce&&(e.data=new Date(e.data)),this._getType(e)!==z.date){let r=this._getOrReturnCtx(e);return _(r,{code:M.invalid_type,expected:z.date,received:r.parsedType}),K}if(Number.isNaN(e.data.getTime())){let r=this._getOrReturnCtx(e);return _(r,{code:M.invalid_date}),K}let n=new Ci,a;for(let r of this._def.checks)r.kind==="min"?e.data.getTime()r.value&&(a=this._getOrReturnCtx(e,a),_(a,{code:M.too_big,message:r.message,inclusive:!0,exact:!1,maximum:r.value,type:"date"}),n.dirty()):ce.assertNever(r);return{status:n.value,value:new Date(e.data.getTime())}}_addCheck(e){return new t({...this._def,checks:[...this._def.checks,e]})}min(e,i){return this._addCheck({kind:"min",value:e.getTime(),message:U.toString(i)})}max(e,i){return this._addCheck({kind:"max",value:e.getTime(),message:U.toString(i)})}get minDate(){let e=null;for(let i of this._def.checks)i.kind==="min"&&(e===null||i.value>e)&&(e=i.value);return e!=null?new Date(e):null}get maxDate(){let e=null;for(let i of this._def.checks)i.kind==="max"&&(e===null||i.valuenew ea({checks:[],coerce:t?.coerce||!1,typeName:E.ZodDate,...ne(t)});var tr=class extends ae{_parse(e){if(this._getType(e)!==z.symbol){let n=this._getOrReturnCtx(e);return _(n,{code:M.invalid_type,expected:z.symbol,received:n.parsedType}),K}return xi(e.data)}};tr.create=t=>new tr({typeName:E.ZodSymbol,...ne(t)});var ia=class extends ae{_parse(e){if(this._getType(e)!==z.undefined){let n=this._getOrReturnCtx(e);return _(n,{code:M.invalid_type,expected:z.undefined,received:n.parsedType}),K}return xi(e.data)}};ia.create=t=>new ia({typeName:E.ZodUndefined,...ne(t)});var na=class extends ae{_parse(e){if(this._getType(e)!==z.null){let n=this._getOrReturnCtx(e);return _(n,{code:M.invalid_type,expected:z.null,received:n.parsedType}),K}return xi(e.data)}};na.create=t=>new na({typeName:E.ZodNull,...ne(t)});var wt=class extends ae{constructor(){super(...arguments),this._any=!0}_parse(e){return xi(e.data)}};wt.create=t=>new wt({typeName:E.ZodAny,...ne(t)});var Xn=class extends ae{constructor(){super(...arguments),this._unknown=!0}_parse(e){return xi(e.data)}};Xn.create=t=>new Xn({typeName:E.ZodUnknown,...ne(t)});var vn=class extends ae{_parse(e){let i=this._getOrReturnCtx(e);return _(i,{code:M.invalid_type,expected:z.never,received:i.parsedType}),K}};vn.create=t=>new vn({typeName:E.ZodNever,...ne(t)});var ar=class extends ae{_parse(e){if(this._getType(e)!==z.undefined){let n=this._getOrReturnCtx(e);return _(n,{code:M.invalid_type,expected:z.void,received:n.parsedType}),K}return xi(e.data)}};ar.create=t=>new ar({typeName:E.ZodVoid,...ne(t)});var et=class t extends ae{_parse(e){let{ctx:i,status:n}=this._processInputParams(e),a=this._def;if(i.parsedType!==z.array)return _(i,{code:M.invalid_type,expected:z.array,received:i.parsedType}),K;if(a.exactLength!==null){let s=i.data.length>a.exactLength.value,o=i.data.lengtha.maxLength.value&&(_(i,{code:M.too_big,maximum:a.maxLength.value,type:"array",inclusive:!0,exact:!1,message:a.maxLength.message}),n.dirty()),i.common.async)return Promise.all([...i.data].map((s,o)=>a.type._parseAsync(new an(i,s,i.path,o)))).then(s=>Ci.mergeArray(n,s));let r=[...i.data].map((s,o)=>a.type._parseSync(new an(i,s,i.path,o)));return Ci.mergeArray(n,r)}get element(){return this._def.type}min(e,i){return new t({...this._def,minLength:{value:e,message:U.toString(i)}})}max(e,i){return new t({...this._def,maxLength:{value:e,message:U.toString(i)}})}length(e,i){return new t({...this._def,exactLength:{value:e,message:U.toString(i)}})}nonempty(e){return this.min(1,e)}};et.create=(t,e)=>new et({type:t,minLength:null,maxLength:null,exactLength:null,typeName:E.ZodArray,...ne(e)});function nr(t){if(t instanceof Di){let e={};for(let i in t.shape){let n=t.shape[i];e[i]=tn.create(nr(n))}return new Di({...t._def,shape:()=>e})}else return t instanceof et?new et({...t._def,type:nr(t.element)}):t instanceof tn?tn.create(nr(t.unwrap())):t instanceof Hn?Hn.create(nr(t.unwrap())):t instanceof _n?_n.create(t.items.map(e=>nr(e))):t}var Di=class t extends ae{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;let e=this._def.shape(),i=ce.objectKeys(e);return this._cached={shape:e,keys:i},this._cached}_parse(e){if(this._getType(e)!==z.object){let u=this._getOrReturnCtx(e);return _(u,{code:M.invalid_type,expected:z.object,received:u.parsedType}),K}let{status:n,ctx:a}=this._processInputParams(e),{shape:r,keys:s}=this._getCached(),o=[];if(!(this._def.catchall instanceof vn&&this._def.unknownKeys==="strip"))for(let u in a.data)s.includes(u)||o.push(u);let l=[];for(let u of s){let c=r[u],p=a.data[u];l.push({key:{status:"valid",value:u},value:c._parse(new an(a,p,a.path,u)),alwaysSet:u in a.data})}if(this._def.catchall instanceof vn){let u=this._def.unknownKeys;if(u==="passthrough")for(let c of o)l.push({key:{status:"valid",value:c},value:{status:"valid",value:a.data[c]}});else if(u==="strict")o.length>0&&(_(a,{code:M.unrecognized_keys,keys:o}),n.dirty());else if(u!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{let u=this._def.catchall;for(let c of o){let p=a.data[c];l.push({key:{status:"valid",value:c},value:u._parse(new an(a,p,a.path,c)),alwaysSet:c in a.data})}}return a.common.async?Promise.resolve().then(async()=>{let u=[];for(let c of l){let p=await c.key,d=await c.value;u.push({key:p,value:d,alwaysSet:c.alwaysSet})}return u}).then(u=>Ci.mergeObjectSync(n,u)):Ci.mergeObjectSync(n,l)}get shape(){return this._def.shape()}strict(e){return U.errToObj,new t({...this._def,unknownKeys:"strict",...e!==void 0?{errorMap:(i,n)=>{let a=this._def.errorMap?.(i,n).message??n.defaultError;return i.code==="unrecognized_keys"?{message:U.errToObj(e).message??a}:{message:a}}}:{}})}strip(){return new t({...this._def,unknownKeys:"strip"})}passthrough(){return new t({...this._def,unknownKeys:"passthrough"})}extend(e){return new t({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){return new t({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:E.ZodObject})}setKey(e,i){return this.augment({[e]:i})}catchall(e){return new t({...this._def,catchall:e})}pick(e){let i={};for(let n of ce.objectKeys(e))e[n]&&this.shape[n]&&(i[n]=this.shape[n]);return new t({...this._def,shape:()=>i})}omit(e){let i={};for(let n of ce.objectKeys(this.shape))e[n]||(i[n]=this.shape[n]);return new t({...this._def,shape:()=>i})}deepPartial(){return nr(this)}partial(e){let i={};for(let n of ce.objectKeys(this.shape)){let a=this.shape[n];e&&!e[n]?i[n]=a:i[n]=a.optional()}return new t({...this._def,shape:()=>i})}required(e){let i={};for(let n of ce.objectKeys(this.shape))if(e&&!e[n])i[n]=this.shape[n];else{let r=this.shape[n];for(;r instanceof tn;)r=r._def.innerType;i[n]=r}return new t({...this._def,shape:()=>i})}keyof(){return my(ce.objectKeys(this.shape))}};Di.create=(t,e)=>new Di({shape:()=>t,unknownKeys:"strip",catchall:vn.create(),typeName:E.ZodObject,...ne(e)});Di.strictCreate=(t,e)=>new Di({shape:()=>t,unknownKeys:"strict",catchall:vn.create(),typeName:E.ZodObject,...ne(e)});Di.lazycreate=(t,e)=>new Di({shape:t,unknownKeys:"strip",catchall:vn.create(),typeName:E.ZodObject,...ne(e)});var ta=class extends ae{_parse(e){let{ctx:i}=this._processInputParams(e),n=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 i.common.issues.push(...o.ctx.common.issues),o.result;let s=r.map(o=>new zi(o.ctx.common.issues));return _(i,{code:M.invalid_union,unionErrors:s}),K}if(i.common.async)return Promise.all(n.map(async r=>{let s={...i,common:{...i.common,issues:[]},parent:null};return{result:await r._parseAsync({data:i.data,path:i.path,parent:s}),ctx:s}})).then(a);{let r,s=[];for(let l of n){let u={...i,common:{...i.common,issues:[]},parent:null},c=l._parseSync({data:i.data,path:i.path,parent:u});if(c.status==="valid")return c;c.status==="dirty"&&!r&&(r={result:c,ctx:u}),u.common.issues.length&&s.push(u.common.issues)}if(r)return i.common.issues.push(...r.ctx.common.issues),r.result;let o=s.map(l=>new zi(l));return _(i,{code:M.invalid_union,unionErrors:o}),K}}get options(){return this._def.options}};ta.create=(t,e)=>new ta({options:t,typeName:E.ZodUnion,...ne(e)});var Yn=t=>t instanceof ra?Yn(t.schema):t instanceof rn?Yn(t.innerType()):t instanceof sa?[t.value]:t instanceof oa?t.options:t instanceof la?ce.objectValues(t.enum):t instanceof ua?Yn(t._def.innerType):t instanceof ia?[void 0]:t instanceof na?[null]:t instanceof tn?[void 0,...Yn(t.unwrap())]:t instanceof Hn?[null,...Yn(t.unwrap())]:t instanceof fs||t instanceof pa?Yn(t.unwrap()):t instanceof ca?Yn(t._def.innerType):[],_l=class t extends ae{_parse(e){let{ctx:i}=this._processInputParams(e);if(i.parsedType!==z.object)return _(i,{code:M.invalid_type,expected:z.object,received:i.parsedType}),K;let n=this.discriminator,a=i.data[n],r=this.optionsMap.get(a);return r?i.common.async?r._parseAsync({data:i.data,path:i.path,parent:i}):r._parseSync({data:i.data,path:i.path,parent:i}):(_(i,{code:M.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[n]}),K)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(e,i,n){let a=new Map;for(let r of i){let s=Yn(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:i,optionsMap:a,...ne(n)})}};function wd(t,e){let i=qn(t),n=qn(e);if(t===e)return{valid:!0,data:t};if(i===z.object&&n===z.object){let a=ce.objectKeys(e),r=ce.objectKeys(t).filter(o=>a.indexOf(o)!==-1),s={...t,...e};for(let o of r){let l=wd(t[o],e[o]);if(!l.valid)return{valid:!1};s[o]=l.data}return{valid:!0,data:s}}else if(i===z.array&&n===z.array){if(t.length!==e.length)return{valid:!1};let a=[];for(let r=0;r{if(kl(r)||kl(s))return K;let o=wd(r.value,s.value);return o.valid?((ql(r)||ql(s))&&i.dirty(),{status:i.value,value:o.data}):(_(n,{code:M.invalid_intersection_types}),K)};return n.common.async?Promise.all([this._def.left._parseAsync({data:n.data,path:n.path,parent:n}),this._def.right._parseAsync({data:n.data,path:n.path,parent:n})]).then(([r,s])=>a(r,s)):a(this._def.left._parseSync({data:n.data,path:n.path,parent:n}),this._def.right._parseSync({data:n.data,path:n.path,parent:n}))}};aa.create=(t,e,i)=>new aa({left:t,right:e,typeName:E.ZodIntersection,...ne(i)});var _n=class t extends ae{_parse(e){let{status:i,ctx:n}=this._processInputParams(e);if(n.parsedType!==z.array)return _(n,{code:M.invalid_type,expected:z.array,received:n.parsedType}),K;if(n.data.lengththis._def.items.length&&(_(n,{code:M.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),i.dirty());let r=[...n.data].map((s,o)=>{let l=this._def.items[o]||this._def.rest;return l?l._parse(new an(n,s,n.path,o)):null}).filter(s=>!!s);return n.common.async?Promise.all(r).then(s=>Ci.mergeArray(i,s)):Ci.mergeArray(i,r)}get items(){return this._def.items}rest(e){return new t({...this._def,rest:e})}};_n.create=(t,e)=>{if(!Array.isArray(t))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new _n({items:t,typeName:E.ZodTuple,rest:null,...ne(e)})};var Hl=class t extends ae{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:i,ctx:n}=this._processInputParams(e);if(n.parsedType!==z.object)return _(n,{code:M.invalid_type,expected:z.object,received:n.parsedType}),K;let a=[],r=this._def.keyType,s=this._def.valueType;for(let o in n.data)a.push({key:r._parse(new an(n,o,n.path,o)),value:s._parse(new an(n,n.data[o],n.path,o)),alwaysSet:o in n.data});return n.common.async?Ci.mergeObjectAsync(i,a):Ci.mergeObjectSync(i,a)}get element(){return this._def.valueType}static create(e,i,n){return i instanceof ae?new t({keyType:e,valueType:i,typeName:E.ZodRecord,...ne(n)}):new t({keyType:ft.create(),valueType:e,typeName:E.ZodRecord,...ne(i)})}},rr=class extends ae{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:i,ctx:n}=this._processInputParams(e);if(n.parsedType!==z.map)return _(n,{code:M.invalid_type,expected:z.map,received:n.parsedType}),K;let a=this._def.keyType,r=this._def.valueType,s=[...n.data.entries()].map(([o,l],u)=>({key:a._parse(new an(n,o,n.path,[u,"key"])),value:r._parse(new an(n,l,n.path,[u,"value"]))}));if(n.common.async){let o=new Map;return Promise.resolve().then(async()=>{for(let l of s){let u=await l.key,c=await l.value;if(u.status==="aborted"||c.status==="aborted")return K;(u.status==="dirty"||c.status==="dirty")&&i.dirty(),o.set(u.value,c.value)}return{status:i.value,value:o}})}else{let o=new Map;for(let l of s){let u=l.key,c=l.value;if(u.status==="aborted"||c.status==="aborted")return K;(u.status==="dirty"||c.status==="dirty")&&i.dirty(),o.set(u.value,c.value)}return{status:i.value,value:o}}}};rr.create=(t,e,i)=>new rr({valueType:e,keyType:t,typeName:E.ZodMap,...ne(i)});var sr=class t extends ae{_parse(e){let{status:i,ctx:n}=this._processInputParams(e);if(n.parsedType!==z.set)return _(n,{code:M.invalid_type,expected:z.set,received:n.parsedType}),K;let a=this._def;a.minSize!==null&&n.data.sizea.maxSize.value&&(_(n,{code:M.too_big,maximum:a.maxSize.value,type:"set",inclusive:!0,exact:!1,message:a.maxSize.message}),i.dirty());let r=this._def.valueType;function s(l){let u=new Set;for(let c of l){if(c.status==="aborted")return K;c.status==="dirty"&&i.dirty(),u.add(c.value)}return{status:i.value,value:u}}let o=[...n.data.values()].map((l,u)=>r._parse(new an(n,l,n.path,u)));return n.common.async?Promise.all(o).then(l=>s(l)):s(o)}min(e,i){return new t({...this._def,minSize:{value:e,message:U.toString(i)}})}max(e,i){return new t({...this._def,maxSize:{value:e,message:U.toString(i)}})}size(e,i){return this.min(e,i).max(e,i)}nonempty(e){return this.min(1,e)}};sr.create=(t,e)=>new sr({valueType:t,minSize:null,maxSize:null,typeName:E.ZodSet,...ne(e)});var Rl=class t extends ae{constructor(){super(...arguments),this.validate=this.implement}_parse(e){let{ctx:i}=this._processInputParams(e);if(i.parsedType!==z.function)return _(i,{code:M.invalid_type,expected:z.function,received:i.parsedType}),K;function n(o,l){return ms({data:o,path:i.path,errorMaps:[i.common.contextualErrorMap,i.schemaErrorMap,er(),Qn].filter(u=>!!u),issueData:{code:M.invalid_arguments,argumentsError:l}})}function a(o,l){return ms({data:o,path:i.path,errorMaps:[i.common.contextualErrorMap,i.schemaErrorMap,er(),Qn].filter(u=>!!u),issueData:{code:M.invalid_return_type,returnTypeError:l}})}let r={errorMap:i.common.contextualErrorMap},s=i.data;if(this._def.returns instanceof vt){let o=this;return xi(async function(...l){let u=new zi([]),c=await o._def.args.parseAsync(l,r).catch(h=>{throw u.addIssue(n(l,h)),u}),p=await Reflect.apply(s,this,c);return await o._def.returns._def.type.parseAsync(p,r).catch(h=>{throw u.addIssue(a(p,h)),u})})}else{let o=this;return xi(function(...l){let u=o._def.args.safeParse(l,r);if(!u.success)throw new zi([n(l,u.error)]);let c=Reflect.apply(s,this,u.data),p=o._def.returns.safeParse(c,r);if(!p.success)throw new zi([a(c,p.error)]);return p.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...e){return new t({...this._def,args:_n.create(e).rest(Xn.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,i,n){return new t({args:e||_n.create([]).rest(Xn.create()),returns:i||Xn.create(),typeName:E.ZodFunction,...ne(n)})}},ra=class extends ae{get schema(){return this._def.getter()}_parse(e){let{ctx:i}=this._processInputParams(e);return this._def.getter()._parse({data:i.data,path:i.path,parent:i})}};ra.create=(t,e)=>new ra({getter:t,typeName:E.ZodLazy,...ne(e)});var sa=class extends ae{_parse(e){if(e.data!==this._def.value){let i=this._getOrReturnCtx(e);return _(i,{received:i.data,code:M.invalid_literal,expected:this._def.value}),K}return{status:"valid",value:e.data}}get value(){return this._def.value}};sa.create=(t,e)=>new sa({value:t,typeName:E.ZodLiteral,...ne(e)});function my(t,e){return new oa({values:t,typeName:E.ZodEnum,...ne(e)})}var oa=class t extends ae{_parse(e){if(typeof e.data!="string"){let i=this._getOrReturnCtx(e),n=this._def.values;return _(i,{expected:ce.joinValues(n),received:i.parsedType,code:M.invalid_type}),K}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(e.data)){let i=this._getOrReturnCtx(e),n=this._def.values;return _(i,{received:i.data,code:M.invalid_enum_value,options:n}),K}return xi(e.data)}get options(){return this._def.values}get enum(){let e={};for(let i of this._def.values)e[i]=i;return e}get Values(){let e={};for(let i of this._def.values)e[i]=i;return e}get Enum(){let e={};for(let i of this._def.values)e[i]=i;return e}extract(e,i=this._def){return t.create(e,{...this._def,...i})}exclude(e,i=this._def){return t.create(this.options.filter(n=>!e.includes(n)),{...this._def,...i})}};oa.create=my;var la=class extends ae{_parse(e){let i=ce.getValidEnumValues(this._def.values),n=this._getOrReturnCtx(e);if(n.parsedType!==z.string&&n.parsedType!==z.number){let a=ce.objectValues(i);return _(n,{expected:ce.joinValues(a),received:n.parsedType,code:M.invalid_type}),K}if(this._cache||(this._cache=new Set(ce.getValidEnumValues(this._def.values))),!this._cache.has(e.data)){let a=ce.objectValues(i);return _(n,{received:n.data,code:M.invalid_enum_value,options:a}),K}return xi(e.data)}get enum(){return this._def.values}};la.create=(t,e)=>new la({values:t,typeName:E.ZodNativeEnum,...ne(e)});var vt=class extends ae{unwrap(){return this._def.type}_parse(e){let{ctx:i}=this._processInputParams(e);if(i.parsedType!==z.promise&&i.common.async===!1)return _(i,{code:M.invalid_type,expected:z.promise,received:i.parsedType}),K;let n=i.parsedType===z.promise?i.data:Promise.resolve(i.data);return xi(n.then(a=>this._def.type.parseAsync(a,{path:i.path,errorMap:i.common.contextualErrorMap})))}};vt.create=(t,e)=>new vt({type:t,typeName:E.ZodPromise,...ne(e)});var rn=class extends ae{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===E.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){let{status:i,ctx:n}=this._processInputParams(e),a=this._def.effect||null,r={addIssue:s=>{_(n,s),s.fatal?i.abort():i.dirty()},get path(){return n.path}};if(r.addIssue=r.addIssue.bind(r),a.type==="preprocess"){let s=a.transform(n.data,r);if(n.common.async)return Promise.resolve(s).then(async o=>{if(i.value==="aborted")return K;let l=await this._def.schema._parseAsync({data:o,path:n.path,parent:n});return l.status==="aborted"?K:l.status==="dirty"?Kt(l.value):i.value==="dirty"?Kt(l.value):l});{if(i.value==="aborted")return K;let o=this._def.schema._parseSync({data:s,path:n.path,parent:n});return o.status==="aborted"?K:o.status==="dirty"?Kt(o.value):i.value==="dirty"?Kt(o.value):o}}if(a.type==="refinement"){let s=o=>{let l=a.refinement(o,r);if(n.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(n.common.async===!1){let o=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});return o.status==="aborted"?K:(o.status==="dirty"&&i.dirty(),s(o.value),{status:i.value,value:o.value})}else return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(o=>o.status==="aborted"?K:(o.status==="dirty"&&i.dirty(),s(o.value).then(()=>({status:i.value,value:o.value}))))}if(a.type==="transform")if(n.common.async===!1){let s=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});if(!mt(s))return K;let o=a.transform(s.value,r);if(o instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:i.value,value:o}}else return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(s=>mt(s)?Promise.resolve(a.transform(s.value,r)).then(o=>({status:i.value,value:o})):K);ce.assertNever(a)}};rn.create=(t,e,i)=>new rn({schema:t,typeName:E.ZodEffects,effect:e,...ne(i)});rn.createWithPreprocess=(t,e,i)=>new rn({schema:e,effect:{type:"preprocess",transform:t},typeName:E.ZodEffects,...ne(i)});var tn=class extends ae{_parse(e){return this._getType(e)===z.undefined?xi(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}};tn.create=(t,e)=>new tn({innerType:t,typeName:E.ZodOptional,...ne(e)});var Hn=class extends ae{_parse(e){return this._getType(e)===z.null?xi(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}};Hn.create=(t,e)=>new Hn({innerType:t,typeName:E.ZodNullable,...ne(e)});var ua=class extends ae{_parse(e){let{ctx:i}=this._processInputParams(e),n=i.data;return i.parsedType===z.undefined&&(n=this._def.defaultValue()),this._def.innerType._parse({data:n,path:i.path,parent:i})}removeDefault(){return this._def.innerType}};ua.create=(t,e)=>new ua({innerType:t,typeName:E.ZodDefault,defaultValue:typeof e.default=="function"?e.default:()=>e.default,...ne(e)});var ca=class extends ae{_parse(e){let{ctx:i}=this._processInputParams(e),n={...i,common:{...i.common,issues:[]}},a=this._def.innerType._parse({data:n.data,path:n.path,parent:{...n}});return ir(a)?a.then(r=>({status:"valid",value:r.status==="valid"?r.value:this._def.catchValue({get error(){return new zi(n.common.issues)},input:n.data})})):{status:"valid",value:a.status==="valid"?a.value:this._def.catchValue({get error(){return new zi(n.common.issues)},input:n.data})}}removeCatch(){return this._def.innerType}};ca.create=(t,e)=>new ca({innerType:t,typeName:E.ZodCatch,catchValue:typeof e.catch=="function"?e.catch:()=>e.catch,...ne(e)});var or=class extends ae{_parse(e){if(this._getType(e)!==z.nan){let n=this._getOrReturnCtx(e);return _(n,{code:M.invalid_type,expected:z.nan,received:n.parsedType}),K}return{status:"valid",value:e.data}}};or.create=t=>new or({typeName:E.ZodNaN,...ne(t)});var VI=Symbol("zod_brand"),fs=class extends ae{_parse(e){let{ctx:i}=this._processInputParams(e),n=i.data;return this._def.type._parse({data:n,path:i.path,parent:i})}unwrap(){return this._def.type}},ws=class t extends ae{_parse(e){let{status:i,ctx:n}=this._processInputParams(e);if(n.common.async)return(async()=>{let r=await this._def.in._parseAsync({data:n.data,path:n.path,parent:n});return r.status==="aborted"?K:r.status==="dirty"?(i.dirty(),Kt(r.value)):this._def.out._parseAsync({data:r.value,path:n.path,parent:n})})();{let a=this._def.in._parseSync({data:n.data,path:n.path,parent:n});return a.status==="aborted"?K:a.status==="dirty"?(i.dirty(),{status:"dirty",value:a.value}):this._def.out._parseSync({data:a.value,path:n.path,parent:n})}}static create(e,i){return new t({in:e,out:i,typeName:E.ZodPipeline})}},pa=class extends ae{_parse(e){let i=this._def.innerType._parse(e),n=a=>(mt(a)&&(a.value=Object.freeze(a.value)),a);return ir(i)?i.then(a=>n(a)):n(i)}unwrap(){return this._def.innerType}};pa.create=(t,e)=>new pa({innerType:t,typeName:E.ZodReadonly,...ne(e)});function py(t,e){let i=typeof t=="function"?t(e):typeof t=="string"?{message:t}:t;return typeof i=="string"?{message:i}:i}function fy(t,e={},i){return t?wt.create().superRefine((n,a)=>{let r=t(n);if(r instanceof Promise)return r.then(s=>{if(!s){let o=py(e,n),l=o.fatal??i??!0;a.addIssue({code:"custom",...o,fatal:l})}});if(!r){let s=py(e,n),o=s.fatal??i??!0;a.addIssue({code:"custom",...s,fatal:o})}}):wt.create()}var JI={object:Di.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 ZI=(t,e={message:`Input not instance of ${t.name}`})=>fy(i=>i instanceof t,e),wy=ft.create,vy=Qt.create,KI=or.create,QI=Yt.create,Cy=Xt.create,YI=ea.create,XI=tr.create,ez=ia.create,iz=na.create,nz=wt.create,tz=Xn.create,az=vn.create,rz=ar.create,sz=et.create,vd=Di.create,oz=Di.strictCreate,lz=ta.create,uz=_l.create,cz=aa.create,pz=_n.create,dz=Hl.create,hz=rr.create,gz=sr.create,mz=Rl.create,fz=ra.create,wz=sa.create,vz=oa.create,Cz=la.create,Az=vt.create,bz=rn.create,yz=tn.create,Pz=Hn.create,jz=rn.createWithPreprocess,Sz=ws.create,Oz=()=>wy().optional(),xz=()=>vy().optional(),Tz=()=>Cy().optional(),Mz={string:(t=>ft.create({...t,coerce:!0})),number:(t=>Qt.create({...t,coerce:!0})),boolean:(t=>Xt.create({...t,coerce:!0})),bigint:(t=>Yt.create({...t,coerce:!0})),date:(t=>ea.create({...t,coerce:!0}))};var Ez=K;var Ay;function j(t,e,i){function n(o,l){if(o._zod||Object.defineProperty(o,"_zod",{value:{def:l,constr:s,traits:new Set},enumerable:!1}),o._zod.traits.has(t))return;o._zod.traits.add(t),e(o,l);let u=s.prototype,c=Object.keys(u);for(let p=0;pi?.Parent&&o instanceof i.Parent?!0:o?._zod?.traits?.has(t)}),Object.defineProperty(s,"name",{value:t}),s}var MX=Symbol("zod_brand"),Rn=class extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}},lr=class extends Error{constructor(e){super(`Encountered unidirectional transform during encode: ${e}`),this.name="ZodEncodeError"}};(Ay=globalThis).__zod_globalConfig??(Ay.__zod_globalConfig={});var ur=globalThis.__zod_globalConfig;function Qi(t){return t&&Object.assign(ur,t),ur}var he={};gd(he,{BIGINT_FORMAT_RANGES:()=>Py,Class:()=>Ad,NUMBER_FORMAT_RANGES:()=>xd,aborted:()=>bt,allowsEval:()=>Pd,assert:()=>Iz,assertEqual:()=>qz,assertIs:()=>Hz,assertNever:()=>Rz,assertNotEqual:()=>_z,assignProp:()=>Ct,base64ToUint8Array:()=>ky,base64urlToUint8Array:()=>Vz,cached:()=>pr,captureStackTrace:()=>Dl,cleanEnum:()=>Fz,cleanRegex:()=>bs,clone:()=>Yi,cloneDef:()=>Dz,createTransparentProxy:()=>Wz,defineLazy:()=>Oe,esc:()=>zl,escapeRegex:()=>nt,explicitlyAborted:()=>Td,extend:()=>Oy,finalizeIssue:()=>sn,floatSafeRemainder:()=>bd,getElementAtPath:()=>Gz,getEnumValues:()=>Cs,getLengthableOrigin:()=>ys,getParsedType:()=>Lz,getSizableOrigin:()=>Ey,hexToUint8Array:()=>Zz,isObject:()=>da,isPlainObject:()=>At,issue:()=>dr,joinValues:()=>Il,jsonStringifyReplacer:()=>cr,merge:()=>Bz,mergeDefs:()=>it,normalizeParams:()=>J,nullish:()=>As,numKeys:()=>Uz,objectClone:()=>zz,omit:()=>Sy,optionalKeys:()=>Od,parsedType:()=>Md,partial:()=>Ty,pick:()=>jy,prefixIssues:()=>tt,primitiveTypes:()=>yy,promiseAllObject:()=>$z,propertyKeyTypes:()=>Sd,randomString:()=>Nz,required:()=>My,safeExtend:()=>xy,shallowClone:()=>jd,slugify:()=>yd,stringifyPrimitive:()=>Gl,uint8ArrayToBase64:()=>qy,uint8ArrayToBase64url:()=>Jz,uint8ArrayToHex:()=>Kz,unwrapMessage:()=>vs});function qz(t){return t}function _z(t){return t}function Hz(t){}function Rz(t){throw new Error("Unexpected value in exhaustive check")}function Iz(t){}function Cs(t){let e=Object.values(t).filter(n=>typeof n=="number");return Object.entries(t).filter(([n,a])=>e.indexOf(+n)===-1).map(([n,a])=>a)}function Il(t,e="|"){return t.map(i=>Gl(i)).join(e)}function cr(t,e){return typeof e=="bigint"?e.toString():e}function pr(t){return{get value(){{let i=t();return Object.defineProperty(this,"value",{value:i}),i}throw new Error("cached value already set")}}}function As(t){return t==null}function bs(t){let e=t.startsWith("^")?1:0,i=t.endsWith("$")?t.length-1:t.length;return t.slice(e,i)}function bd(t,e){let i=t/e,n=Math.round(i),a=Number.EPSILON*Math.max(Math.abs(i),1);return Math.abs(i-n)i?.[n],t):t}function $z(t){let e=Object.keys(t),i=e.map(n=>t[n]);return Promise.all(i).then(n=>{let a={};for(let r=0;r{};function da(t){return typeof t=="object"&&t!==null&&!Array.isArray(t)}var Pd=pr(()=>{if(ur.jitless||typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{let t=Function;return new t(""),!0}catch{return!1}});function At(t){if(da(t)===!1)return!1;let e=t.constructor;if(e===void 0||typeof e!="function")return!0;let i=e.prototype;return!(da(i)===!1||Object.prototype.hasOwnProperty.call(i,"isPrototypeOf")===!1)}function jd(t){return At(t)?{...t}:Array.isArray(t)?[...t]:t instanceof Map?new Map(t):t instanceof Set?new Set(t):t}function Uz(t){let e=0;for(let i in t)Object.prototype.hasOwnProperty.call(t,i)&&e++;return e}var Lz=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}`)}},Sd=new Set(["string","number","symbol"]),yy=new Set(["string","number","bigint","boolean","symbol","undefined"]);function nt(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Yi(t,e,i){let n=new t._zod.constr(e??t._zod.def);return(!e||i?.parent)&&(n._zod.parent=t),n}function J(t){let e=t;if(!e)return{};if(typeof e=="string")return{error:()=>e};if(e?.message!==void 0){if(e?.error!==void 0)throw new Error("Cannot specify both `message` and `error` params");e.error=e.message}return delete e.message,typeof e.error=="string"?{...e,error:()=>e.error}:e}function Wz(t){let e;return new Proxy({},{get(i,n,a){return e??(e=t()),Reflect.get(e,n,a)},set(i,n,a,r){return e??(e=t()),Reflect.set(e,n,a,r)},has(i,n){return e??(e=t()),Reflect.has(e,n)},deleteProperty(i,n){return e??(e=t()),Reflect.deleteProperty(e,n)},ownKeys(i){return e??(e=t()),Reflect.ownKeys(e)},getOwnPropertyDescriptor(i,n){return e??(e=t()),Reflect.getOwnPropertyDescriptor(e,n)},defineProperty(i,n,a){return e??(e=t()),Reflect.defineProperty(e,n,a)}})}function Gl(t){return typeof t=="bigint"?t.toString()+"n":typeof t=="string"?`"${t}"`:`${t}`}function Od(t){return Object.keys(t).filter(e=>t[e]._zod.optin==="optional"&&t[e]._zod.optout==="optional")}var xd={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]},Py={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function jy(t,e){let i=t._zod.def,n=i.checks;if(n&&n.length>0)throw new Error(".pick() cannot be used on object schemas containing refinements");let r=it(t._zod.def,{get shape(){let s={};for(let o in e){if(!(o in i.shape))throw new Error(`Unrecognized key: "${o}"`);e[o]&&(s[o]=i.shape[o])}return Ct(this,"shape",s),s},checks:[]});return Yi(t,r)}function Sy(t,e){let i=t._zod.def,n=i.checks;if(n&&n.length>0)throw new Error(".omit() cannot be used on object schemas containing refinements");let r=it(t._zod.def,{get shape(){let s={...t._zod.def.shape};for(let o in e){if(!(o in i.shape))throw new Error(`Unrecognized key: "${o}"`);e[o]&&delete s[o]}return Ct(this,"shape",s),s},checks:[]});return Yi(t,r)}function Oy(t,e){if(!At(e))throw new Error("Invalid input to extend: expected a plain object");let i=t._zod.def.checks;if(i&&i.length>0){let r=t._zod.def.shape;for(let s in e)if(Object.getOwnPropertyDescriptor(r,s)!==void 0)throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}let a=it(t._zod.def,{get shape(){let r={...t._zod.def.shape,...e};return Ct(this,"shape",r),r}});return Yi(t,a)}function xy(t,e){if(!At(e))throw new Error("Invalid input to safeExtend: expected a plain object");let i=it(t._zod.def,{get shape(){let n={...t._zod.def.shape,...e};return Ct(this,"shape",n),n}});return Yi(t,i)}function Bz(t,e){if(t._zod.def.checks?.length)throw new Error(".merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.");let i=it(t._zod.def,{get shape(){let n={...t._zod.def.shape,...e._zod.def.shape};return Ct(this,"shape",n),n},get catchall(){return e._zod.def.catchall},checks:e._zod.def.checks??[]});return Yi(t,i)}function Ty(t,e,i){let a=e._zod.def.checks;if(a&&a.length>0)throw new Error(".partial() cannot be used on object schemas containing refinements");let s=it(e._zod.def,{get shape(){let o=e._zod.def.shape,l={...o};if(i)for(let u in i){if(!(u in o))throw new Error(`Unrecognized key: "${u}"`);i[u]&&(l[u]=t?new t({type:"optional",innerType:o[u]}):o[u])}else for(let u in o)l[u]=t?new t({type:"optional",innerType:o[u]}):o[u];return Ct(this,"shape",l),l},checks:[]});return Yi(e,s)}function My(t,e,i){let n=it(e._zod.def,{get shape(){let a=e._zod.def.shape,r={...a};if(i)for(let s in i){if(!(s in r))throw new Error(`Unrecognized key: "${s}"`);i[s]&&(r[s]=new t({type:"nonoptional",innerType:a[s]}))}else for(let s in a)r[s]=new t({type:"nonoptional",innerType:a[s]});return Ct(this,"shape",r),r}});return Yi(e,n)}function bt(t,e=0){if(t.aborted===!0)return!0;for(let i=e;i{var n;return(n=i).path??(n.path=[]),i.path.unshift(t),i})}function vs(t){return typeof t=="string"?t:t?.message}function sn(t,e,i){let n=t.message?t.message:vs(t.inst?._zod.def?.error?.(t))??vs(e?.error?.(t))??vs(i.customError?.(t))??vs(i.localeError?.(t))??"Invalid input",{inst:a,continue:r,input:s,...o}=t;return o.path??(o.path=[]),o.message=n,e?.reportInput&&(o.input=s),o}function Ey(t){return t instanceof Set?"set":t instanceof Map?"map":t instanceof File?"file":"unknown"}function ys(t){return Array.isArray(t)?"array":typeof t=="string"?"string":"unknown"}function Md(t){let e=typeof t;switch(e){case"number":return Number.isNaN(t)?"nan":"number";case"object":{if(t===null)return"null";if(Array.isArray(t))return"array";let i=t;if(i&&Object.getPrototypeOf(i)!==Object.prototype&&"constructor"in i&&i.constructor)return i.constructor.name}}return e}function dr(...t){let[e,i,n]=t;return typeof e=="string"?{message:e,code:"custom",input:i,inst:n}:{...e}}function Fz(t){return Object.entries(t).filter(([e,i])=>Number.isNaN(Number.parseInt(e,10))).map(e=>e[1])}function ky(t){let e=atob(t),i=new Uint8Array(e.length);for(let n=0;ne.toString(16).padStart(2,"0")).join("")}var Ad=class{constructor(...e){}};var _y=(t,e)=>{t.name="$ZodError",Object.defineProperty(t,"_zod",{value:t._zod,enumerable:!1}),Object.defineProperty(t,"issues",{value:e,enumerable:!1}),t.message=JSON.stringify(e,cr,2),Object.defineProperty(t,"toString",{value:()=>t.message,enumerable:!1})},$l=j("$ZodError",_y),Ps=j("$ZodError",_y,{Parent:Error});function Hy(t,e=i=>i.message){let i={},n=[];for(let a of t.issues)a.path.length>0?(i[a.path[0]]=i[a.path[0]]||[],i[a.path[0]].push(e(a))):n.push(e(a));return{formErrors:n,fieldErrors:i}}function Ry(t,e=i=>i.message){let i={_errors:[]},n=(a,r=[])=>{for(let s of a.issues)if(s.code==="invalid_union"&&s.errors.length)s.errors.map(o=>n({issues:o},[...r,...s.path]));else if(s.code==="invalid_key")n({issues:s.issues},[...r,...s.path]);else if(s.code==="invalid_element")n({issues:s.issues},[...r,...s.path]);else{let o=[...r,...s.path];if(o.length===0)i._errors.push(e(s));else{let l=i,u=0;for(;u(e,i,n,a)=>{let r=n?{...n,async:!1}:{async:!1},s=e._zod.run({value:i,issues:[]},r);if(s instanceof Promise)throw new Rn;if(s.issues.length){let o=new(a?.Err??t)(s.issues.map(l=>sn(l,r,Qi())));throw Dl(o,a?.callee),o}return s.value},Nl=js(Ps),Ss=t=>async(e,i,n,a)=>{let r=n?{...n,async:!0}:{async:!0},s=e._zod.run({value:i,issues:[]},r);if(s instanceof Promise&&(s=await s),s.issues.length){let o=new(a?.Err??t)(s.issues.map(l=>sn(l,r,Qi())));throw Dl(o,a?.callee),o}return s.value},Ul=Ss(Ps),Os=t=>(e,i,n)=>{let a=n?{...n,async:!1}:{async:!1},r=e._zod.run({value:i,issues:[]},a);if(r instanceof Promise)throw new Rn;return r.issues.length?{success:!1,error:new(t??$l)(r.issues.map(s=>sn(s,a,Qi())))}:{success:!0,data:r.value}},ha=Os(Ps),xs=t=>async(e,i,n)=>{let a=n?{...n,async:!0}:{async:!0},r=e._zod.run({value:i,issues:[]},a);return r instanceof Promise&&(r=await r),r.issues.length?{success:!1,error:new t(r.issues.map(s=>sn(s,a,Qi())))}:{success:!0,data:r.value}},ga=xs(Ps),Iy=t=>(e,i,n)=>{let a=n?{...n,direction:"backward"}:{direction:"backward"};return js(t)(e,i,a)};var zy=t=>(e,i,n)=>js(t)(e,i,n);var Dy=t=>async(e,i,n)=>{let a=n?{...n,direction:"backward"}:{direction:"backward"};return Ss(t)(e,i,a)};var Gy=t=>async(e,i,n)=>Ss(t)(e,i,n);var $y=t=>(e,i,n)=>{let a=n?{...n,direction:"backward"}:{direction:"backward"};return Os(t)(e,i,a)};var Ny=t=>(e,i,n)=>Os(t)(e,i,n);var Uy=t=>async(e,i,n)=>{let a=n?{...n,direction:"backward"}:{direction:"backward"};return xs(t)(e,i,a)};var Ly=t=>async(e,i,n)=>xs(t)(e,i,n);var Wy=/^[cC][0-9a-z]{6,}$/,By=/^[0-9a-z]+$/,Fy=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,Vy=/^[0-9a-vA-V]{20}$/,Jy=/^[A-Za-z0-9]{27}$/,Zy=/^[a-zA-Z0-9_-]{21}$/,Ky=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/;var Qy=/^([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})$/,Ed=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 Yy=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/;var Yz="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function Xy(){return new RegExp(Yz,"u")}var eP=/^(?:(?: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])$/,iP=/^(([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 nP=/^((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])$/,tP=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,aP=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,kd=/^[A-Za-z0-9_-]*$/;var rP=/^https?$/,sP=/^\+[1-9]\d{6,14}$/,oP="(?:(?:\\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])))",lP=new RegExp(`^${oP}$`);function uP(t){let e="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof t.precision=="number"?t.precision===-1?`${e}`:t.precision===0?`${e}:[0-5]\\d`:`${e}:[0-5]\\d\\.\\d{${t.precision}}`:`${e}(?::[0-5]\\d(?:\\.\\d+)?)?`}function cP(t){return new RegExp(`^${uP(t)}$`)}function pP(t){let e=uP({precision:t.precision}),i=["Z"];t.local&&i.push(""),t.offset&&i.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");let n=`${e}(?:${i.join("|")})`;return new RegExp(`^${oP}T(?:${n})$`)}var dP=t=>{let e=t?`[\\s\\S]{${t?.minimum??0},${t?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${e}$`)};var hP=/^-?\d+$/,qd=/^-?\d+(?:\.\d+)?$/,gP=/^(?:true|false)$/i,mP=/^null$/i;var fP=/^[^A-Z]*$/,wP=/^[^a-z]*$/;var di=j("$ZodCheck",(t,e)=>{var i;t._zod??(t._zod={}),t._zod.def=e,(i=t._zod).onattach??(i.onattach=[])}),vP={number:"number",bigint:"bigint",object:"date"},_d=j("$ZodCheckLessThan",(t,e)=>{di.init(t,e);let i=vP[typeof e.value];t._zod.onattach.push(n=>{let a=n._zod.bag,r=(e.inclusive?a.maximum:a.exclusiveMaximum)??Number.POSITIVE_INFINITY;e.value{(e.inclusive?n.value<=e.value:n.value{di.init(t,e);let i=vP[typeof e.value];t._zod.onattach.push(n=>{let a=n._zod.bag,r=(e.inclusive?a.minimum:a.exclusiveMinimum)??Number.NEGATIVE_INFINITY;e.value>r&&(e.inclusive?a.minimum=e.value:a.exclusiveMinimum=e.value)}),t._zod.check=n=>{(e.inclusive?n.value>=e.value:n.value>e.value)||n.issues.push({origin:i,code:"too_small",minimum:typeof e.value=="object"?e.value.getTime():e.value,input:n.value,inclusive:e.inclusive,inst:t,continue:!e.abort})}}),CP=j("$ZodCheckMultipleOf",(t,e)=>{di.init(t,e),t._zod.onattach.push(i=>{var n;(n=i._zod.bag).multipleOf??(n.multipleOf=e.value)}),t._zod.check=i=>{if(typeof i.value!=typeof e.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof i.value=="bigint"?i.value%e.value===BigInt(0):bd(i.value,e.value)===0)||i.issues.push({origin:typeof i.value,code:"not_multiple_of",divisor:e.value,input:i.value,inst:t,continue:!e.abort})}}),AP=j("$ZodCheckNumberFormat",(t,e)=>{di.init(t,e),e.format=e.format||"float64";let i=e.format?.includes("int"),n=i?"int":"number",[a,r]=xd[e.format];t._zod.onattach.push(s=>{let o=s._zod.bag;o.format=e.format,o.minimum=a,o.maximum=r,i&&(o.pattern=hP)}),t._zod.check=s=>{let o=s.value;if(i){if(!Number.isInteger(o)){s.issues.push({expected:n,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:n,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:n,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 bP=j("$ZodCheckMaxLength",(t,e)=>{var i;di.init(t,e),(i=t._zod.def).when??(i.when=n=>{let a=n.value;return!As(a)&&a.length!==void 0}),t._zod.onattach.push(n=>{let a=n._zod.bag.maximum??Number.POSITIVE_INFINITY;e.maximum{let a=n.value;if(a.length<=e.maximum)return;let s=ys(a);n.issues.push({origin:s,code:"too_big",maximum:e.maximum,inclusive:!0,input:a,inst:t,continue:!e.abort})}}),yP=j("$ZodCheckMinLength",(t,e)=>{var i;di.init(t,e),(i=t._zod.def).when??(i.when=n=>{let a=n.value;return!As(a)&&a.length!==void 0}),t._zod.onattach.push(n=>{let a=n._zod.bag.minimum??Number.NEGATIVE_INFINITY;e.minimum>a&&(n._zod.bag.minimum=e.minimum)}),t._zod.check=n=>{let a=n.value;if(a.length>=e.minimum)return;let s=ys(a);n.issues.push({origin:s,code:"too_small",minimum:e.minimum,inclusive:!0,input:a,inst:t,continue:!e.abort})}}),PP=j("$ZodCheckLengthEquals",(t,e)=>{var i;di.init(t,e),(i=t._zod.def).when??(i.when=n=>{let a=n.value;return!As(a)&&a.length!==void 0}),t._zod.onattach.push(n=>{let a=n._zod.bag;a.minimum=e.length,a.maximum=e.length,a.length=e.length}),t._zod.check=n=>{let a=n.value,r=a.length;if(r===e.length)return;let s=ys(a),o=r>e.length;n.issues.push({origin:s,...o?{code:"too_big",maximum:e.length}:{code:"too_small",minimum:e.length},inclusive:!0,exact:!0,input:n.value,inst:t,continue:!e.abort})}}),Ms=j("$ZodCheckStringFormat",(t,e)=>{var i,n;di.init(t,e),t._zod.onattach.push(a=>{let r=a._zod.bag;r.format=e.format,e.pattern&&(r.patterns??(r.patterns=new Set),r.patterns.add(e.pattern))}),e.pattern?(i=t._zod).check??(i.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})}):(n=t._zod).check??(n.check=()=>{})}),jP=j("$ZodCheckRegex",(t,e)=>{Ms.init(t,e),t._zod.check=i=>{e.pattern.lastIndex=0,!e.pattern.test(i.value)&&i.issues.push({origin:"string",code:"invalid_format",format:"regex",input:i.value,pattern:e.pattern.toString(),inst:t,continue:!e.abort})}}),SP=j("$ZodCheckLowerCase",(t,e)=>{e.pattern??(e.pattern=fP),Ms.init(t,e)}),OP=j("$ZodCheckUpperCase",(t,e)=>{e.pattern??(e.pattern=wP),Ms.init(t,e)}),xP=j("$ZodCheckIncludes",(t,e)=>{di.init(t,e);let i=nt(e.includes),n=new RegExp(typeof e.position=="number"?`^.{${e.position}}${i}`:i);e.pattern=n,t._zod.onattach.push(a=>{let r=a._zod.bag;r.patterns??(r.patterns=new Set),r.patterns.add(n)}),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})}}),TP=j("$ZodCheckStartsWith",(t,e)=>{di.init(t,e);let i=new RegExp(`^${nt(e.prefix)}.*`);e.pattern??(e.pattern=i),t._zod.onattach.push(n=>{let a=n._zod.bag;a.patterns??(a.patterns=new Set),a.patterns.add(i)}),t._zod.check=n=>{n.value.startsWith(e.prefix)||n.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:e.prefix,input:n.value,inst:t,continue:!e.abort})}}),MP=j("$ZodCheckEndsWith",(t,e)=>{di.init(t,e);let i=new RegExp(`.*${nt(e.suffix)}$`);e.pattern??(e.pattern=i),t._zod.onattach.push(n=>{let a=n._zod.bag;a.patterns??(a.patterns=new Set),a.patterns.add(i)}),t._zod.check=n=>{n.value.endsWith(e.suffix)||n.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:e.suffix,input:n.value,inst:t,continue:!e.abort})}});var EP=j("$ZodCheckOverwrite",(t,e)=>{di.init(t,e),t._zod.check=i=>{i.value=e.tx(i.value)}});var Ll=class{constructor(e=[]){this.content=[],this.indent=0,this&&(this.args=e)}indented(e){this.indent+=1,e(this),this.indent-=1}write(e){if(typeof e=="function"){e(this,{execution:"sync"}),e(this,{execution:"async"});return}let n=e.split(` `).filter(s=>s),a=Math.min(...n.map(s=>s.length-s.trimStart().length)),r=n.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,i=this?.args,a=[...(this?.content??[""]).map(r=>` ${r}`)];return new e(...i,a.join(` -`))}};var kP={major:4,minor:4,patch:3};var ke=j("$ZodType",(t,e)=>{var i;t??(t={}),t._zod.def=e,t._zod.bag=t._zod.bag||{},t._zod.version=kP;let n=[...t._zod.def.checks??[]];t._zod.traits.has("$ZodCheck")&&n.unshift(t);for(let a of n)for(let r of a._zod.onattach)r(t);if(n.length===0)(i=t._zod).deferred??(i.deferred=[]),t._zod.deferred?.push(()=>{t._zod.run=t._zod.parse});else{let a=(s,o,l)=>{let u=bt(s),c;for(let p of o){if(p._zod.def.when){if(Td(s)||!p._zod.def.when(s))continue}else if(u)continue;let d=s.issues.length,h=p._zod.check(s);if(h instanceof Promise&&l?.async===!1)throw new Rn;if(c||h instanceof Promise)c=(c??Promise.resolve()).then(async()=>{await h,s.issues.length!==d&&(u||(u=bt(s,d)))});else{if(s.issues.length===d)continue;u||(u=bt(s,d))}}return c?c.then(()=>s):s},r=(s,o,l)=>{if(bt(s))return s.aborted=!0,s;let u=a(o,n,l);if(u instanceof Promise){if(l.async===!1)throw new Rn;return u.then(c=>t._zod.parse(c,l))}return t._zod.parse(u,l)};t._zod.run=(s,o)=>{if(o.skipChecks)return t._zod.parse(s,o);if(o.direction==="backward"){let u=t._zod.parse({value:s.value,issues:[]},{...o,skipChecks:!0});return u instanceof Promise?u.then(c=>r(c,s,o)):r(u,s,o)}let l=t._zod.parse(s,o);if(l instanceof Promise){if(o.async===!1)throw new Rn;return l.then(u=>a(u,n,o))}return a(l,n,o)}}Oe(t,"~standard",()=>({validate:a=>{try{let r=ha(t,a);return r.success?{value:r.data}:{issues:r.error?.issues}}catch{return ga(t,a).then(s=>s.success?{value:s.data}:{issues:s.error?.issues})}},vendor:"zod",version:1}))}),Es=j("$ZodString",(t,e)=>{ke.init(t,e),t._zod.pattern=[...t?._zod.bag?.patterns??[]].pop()??pP(t._zod.bag),t._zod.parse=(i,n)=>{if(e.coerce)try{i.value=String(i.value)}catch{}return typeof i.value=="string"||i.issues.push({expected:"string",code:"invalid_type",input:i.value,inst:t}),i}}),Ie=j("$ZodStringFormat",(t,e)=>{Ms.init(t,e),Es.init(t,e)}),Id=j("$ZodGUID",(t,e)=>{e.pattern??(e.pattern=Ky),Ie.init(t,e)}),zd=j("$ZodUUID",(t,e)=>{if(e.version){let n={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[e.version];if(n===void 0)throw new Error(`Invalid UUID version: "${e.version}"`);e.pattern??(e.pattern=Ed(n))}else e.pattern??(e.pattern=Ed());Ie.init(t,e)}),Dd=j("$ZodEmail",(t,e)=>{e.pattern??(e.pattern=Qy),Ie.init(t,e)}),Gd=j("$ZodURL",(t,e)=>{Ie.init(t,e),t._zod.check=i=>{try{let n=i.value.trim();if(!e.normalize&&e.protocol?.source===aP.source&&!/^https?:\/\//i.test(n)){i.issues.push({code:"invalid_format",format:"url",note:"Invalid URL format",input:i.value,inst:t,continue:!e.abort});return}let a=new URL(n);e.hostname&&(e.hostname.lastIndex=0,e.hostname.test(a.hostname)||i.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:e.hostname.source,input:i.value,inst:t,continue:!e.abort})),e.protocol&&(e.protocol.lastIndex=0,e.protocol.test(a.protocol.endsWith(":")?a.protocol.slice(0,-1):a.protocol)||i.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:e.protocol.source,input:i.value,inst:t,continue:!e.abort})),e.normalize?i.value=a.href:i.value=n;return}catch{i.issues.push({code:"invalid_format",format:"url",input:i.value,inst:t,continue:!e.abort})}}}),$d=j("$ZodEmoji",(t,e)=>{e.pattern??(e.pattern=Yy()),Ie.init(t,e)}),Nd=j("$ZodNanoID",(t,e)=>{e.pattern??(e.pattern=Jy),Ie.init(t,e)}),Ud=j("$ZodCUID",(t,e)=>{e.pattern??(e.pattern=Ly),Ie.init(t,e)}),Ld=j("$ZodCUID2",(t,e)=>{e.pattern??(e.pattern=Wy),Ie.init(t,e)}),Wd=j("$ZodULID",(t,e)=>{e.pattern??(e.pattern=By),Ie.init(t,e)}),Bd=j("$ZodXID",(t,e)=>{e.pattern??(e.pattern=Fy),Ie.init(t,e)}),Fd=j("$ZodKSUID",(t,e)=>{e.pattern??(e.pattern=Vy),Ie.init(t,e)}),$P=j("$ZodISODateTime",(t,e)=>{e.pattern??(e.pattern=cP(e)),Ie.init(t,e)}),NP=j("$ZodISODate",(t,e)=>{e.pattern??(e.pattern=oP),Ie.init(t,e)}),UP=j("$ZodISOTime",(t,e)=>{e.pattern??(e.pattern=uP(e)),Ie.init(t,e)}),LP=j("$ZodISODuration",(t,e)=>{e.pattern??(e.pattern=Zy),Ie.init(t,e)}),Vd=j("$ZodIPv4",(t,e)=>{e.pattern??(e.pattern=Xy),Ie.init(t,e),t._zod.bag.format="ipv4"}),Jd=j("$ZodIPv6",(t,e)=>{e.pattern??(e.pattern=eP),Ie.init(t,e),t._zod.bag.format="ipv6",t._zod.check=i=>{try{new URL(`http://[${i.value}]`)}catch{i.issues.push({code:"invalid_format",format:"ipv6",input:i.value,inst:t,continue:!e.abort})}}});var Zd=j("$ZodCIDRv4",(t,e)=>{e.pattern??(e.pattern=iP),Ie.init(t,e)}),Kd=j("$ZodCIDRv6",(t,e)=>{e.pattern??(e.pattern=nP),Ie.init(t,e),t._zod.check=i=>{let n=i.value.split("/");try{if(n.length!==2)throw new Error;let[a,r]=n;if(!r)throw new Error;let s=Number(r);if(`${s}`!==r)throw new Error;if(s<0||s>128)throw new Error;new URL(`http://[${a}]`)}catch{i.issues.push({code:"invalid_format",format:"cidrv6",input:i.value,inst:t,continue:!e.abort})}}});function WP(t){if(t==="")return!0;if(/\s/.test(t)||t.length%4!==0)return!1;try{return atob(t),!0}catch{return!1}}var Qd=j("$ZodBase64",(t,e)=>{e.pattern??(e.pattern=tP),Ie.init(t,e),t._zod.bag.contentEncoding="base64",t._zod.check=i=>{WP(i.value)||i.issues.push({code:"invalid_format",format:"base64",input:i.value,inst:t,continue:!e.abort})}});function Yz(t){if(!kd.test(t))return!1;let e=t.replace(/[-_]/g,n=>n==="-"?"+":"/"),i=e.padEnd(Math.ceil(e.length/4)*4,"=");return WP(i)}var Yd=j("$ZodBase64URL",(t,e)=>{e.pattern??(e.pattern=kd),Ie.init(t,e),t._zod.bag.contentEncoding="base64url",t._zod.check=i=>{Yz(i.value)||i.issues.push({code:"invalid_format",format:"base64url",input:i.value,inst:t,continue:!e.abort})}}),Xd=j("$ZodE164",(t,e)=>{e.pattern??(e.pattern=rP),Ie.init(t,e)});function Xz(t,e=null){try{let i=t.split(".");if(i.length!==3)return!1;let[n]=i;if(!n)return!1;let a=JSON.parse(atob(n));return!("typ"in a&&a?.typ!=="JWT"||!a.alg||e&&(!("alg"in a)||a.alg!==e))}catch{return!1}}var eh=j("$ZodJWT",(t,e)=>{Ie.init(t,e),t._zod.check=i=>{Xz(i.value,e.alg)||i.issues.push({code:"invalid_format",format:"jwt",input:i.value,inst:t,continue:!e.abort})}});var Fl=j("$ZodNumber",(t,e)=>{ke.init(t,e),t._zod.pattern=t._zod.bag.pattern??qd,t._zod.parse=(i,n)=>{if(e.coerce)try{i.value=Number(i.value)}catch{}let a=i.value;if(typeof a=="number"&&!Number.isNaN(a)&&Number.isFinite(a))return i;let r=typeof a=="number"?Number.isNaN(a)?"NaN":Number.isFinite(a)?void 0:"Infinity":void 0;return i.issues.push({expected:"number",code:"invalid_type",input:a,inst:t,...r?{received:r}:{}}),i}}),ih=j("$ZodNumberFormat",(t,e)=>{CP.init(t,e),Fl.init(t,e)}),nh=j("$ZodBoolean",(t,e)=>{ke.init(t,e),t._zod.pattern=hP,t._zod.parse=(i,n)=>{if(e.coerce)try{i.value=!!i.value}catch{}let a=i.value;return typeof a=="boolean"||i.issues.push({expected:"boolean",code:"invalid_type",input:a,inst:t}),i}});var th=j("$ZodNull",(t,e)=>{ke.init(t,e),t._zod.pattern=gP,t._zod.values=new Set([null]),t._zod.parse=(i,n)=>{let a=i.value;return a===null||i.issues.push({expected:"null",code:"invalid_type",input:a,inst:t}),i}});var ah=j("$ZodUnknown",(t,e)=>{ke.init(t,e),t._zod.parse=i=>i}),rh=j("$ZodNever",(t,e)=>{ke.init(t,e),t._zod.parse=(i,n)=>(i.issues.push({expected:"never",code:"invalid_type",input:i.value,inst:t}),i)});function qP(t,e,i){t.issues.length&&e.issues.push(...tt(i,t.issues)),e.value[i]=t.value}var sh=j("$ZodArray",(t,e)=>{ke.init(t,e),t._zod.parse=(i,n)=>{let a=i.value;if(!Array.isArray(a))return i.issues.push({expected:"array",code:"invalid_type",input:a,inst:t}),i;i.value=Array(a.length);let r=[];for(let s=0;sqP(u,i,s))):qP(l,i,s)}return r.length?Promise.all(r).then(()=>i):i}});function Bl(t,e,i,n,a,r){let s=i in n;if(t.issues.length){if(a&&r&&!s)return;e.issues.push(...tt(i,t.issues))}if(!s&&!a){t.issues.length||e.issues.push({code:"invalid_type",expected:"nonoptional",input:void 0,path:[i]});return}t.value===void 0?s&&(e.value[i]=void 0):e.value[i]=t.value}function BP(t){let e=Object.keys(t.shape);for(let n of e)if(!t.shape?.[n]?._zod?.traits?.has("$ZodType"))throw new Error(`Invalid element at key "${n}": expected a Zod schema`);let i=Od(t.shape);return{...t,keys:e,keySet:new Set(e),numKeys:e.length,optionalKeys:new Set(i)}}function FP(t,e,i,n,a,r){let s=[],o=a.keySet,l=a.catchall._zod,u=l.def.type,c=l.optin==="optional",p=l.optout==="optional";for(let d in e){if(d==="__proto__"||o.has(d))continue;if(u==="never"){s.push(d);continue}let h=l.run({value:e[d],issues:[]},n);h instanceof Promise?t.push(h.then(g=>Bl(g,i,d,e,c,p))):Bl(h,i,d,e,c,p)}return s.length&&i.issues.push({code:"unrecognized_keys",keys:s,input:e,inst:r}),t.length?Promise.all(t).then(()=>i):i}var oh=j("$ZodObject",(t,e)=>{if(ke.init(t,e),!Object.getOwnPropertyDescriptor(e,"shape")?.get){let o=e.shape;Object.defineProperty(e,"shape",{get:()=>{let l={...o};return Object.defineProperty(e,"shape",{value:l}),l}})}let n=pr(()=>BP(e));Oe(t._zod,"propValues",()=>{let o=e.shape,l={};for(let u in o){let c=o[u]._zod;if(c.values){l[u]??(l[u]=new Set);for(let p of c.values)l[u].add(p)}}return l});let a=da,r=e.catchall,s;t._zod.parse=(o,l)=>{s??(s=n.value);let u=o.value;if(!a(u))return o.issues.push({expected:"object",code:"invalid_type",input:u,inst:t}),o;o.value={};let c=[],p=s.shape;for(let d of s.keys){let h=p[d],g=h._zod.optin==="optional",m=h._zod.optout==="optional",f=h._zod.run({value:u[d],issues:[]},l);f instanceof Promise?c.push(f.then(v=>Bl(v,o,d,u,g,m))):Bl(f,o,d,u,g,m)}return r?FP(c,u,o,l,n.value,t):c.length?Promise.all(c).then(()=>o):o}}),VP=j("$ZodObjectJIT",(t,e)=>{oh.init(t,e);let i=t._zod.parse,n=pr(()=>BP(e)),a=d=>{let h=new Ll(["shape","payload","ctx"]),g=n.value,m=A=>{let b=zl(A);return`shape[${b}]._zod.run({ value: input[${b}], issues: [] }, ctx)`};h.write("const input = payload.value;");let f=Object.create(null),v=0;for(let A of g.keys)f[A]=`key_${v++}`;h.write("const newResult = {};");for(let A of g.keys){let b=f[A],O=zl(A),$=d[A],N=$?._zod?.optin==="optional",X=$?._zod?.optout==="optional";h.write(`const ${b} = ${m(A)};`),N&&X?h.write(` +`))}};var qP={major:4,minor:4,patch:3};var ke=j("$ZodType",(t,e)=>{var i;t??(t={}),t._zod.def=e,t._zod.bag=t._zod.bag||{},t._zod.version=qP;let n=[...t._zod.def.checks??[]];t._zod.traits.has("$ZodCheck")&&n.unshift(t);for(let a of n)for(let r of a._zod.onattach)r(t);if(n.length===0)(i=t._zod).deferred??(i.deferred=[]),t._zod.deferred?.push(()=>{t._zod.run=t._zod.parse});else{let a=(s,o,l)=>{let u=bt(s),c;for(let p of o){if(p._zod.def.when){if(Td(s)||!p._zod.def.when(s))continue}else if(u)continue;let d=s.issues.length,h=p._zod.check(s);if(h instanceof Promise&&l?.async===!1)throw new Rn;if(c||h instanceof Promise)c=(c??Promise.resolve()).then(async()=>{await h,s.issues.length!==d&&(u||(u=bt(s,d)))});else{if(s.issues.length===d)continue;u||(u=bt(s,d))}}return c?c.then(()=>s):s},r=(s,o,l)=>{if(bt(s))return s.aborted=!0,s;let u=a(o,n,l);if(u instanceof Promise){if(l.async===!1)throw new Rn;return u.then(c=>t._zod.parse(c,l))}return t._zod.parse(u,l)};t._zod.run=(s,o)=>{if(o.skipChecks)return t._zod.parse(s,o);if(o.direction==="backward"){let u=t._zod.parse({value:s.value,issues:[]},{...o,skipChecks:!0});return u instanceof Promise?u.then(c=>r(c,s,o)):r(u,s,o)}let l=t._zod.parse(s,o);if(l instanceof Promise){if(o.async===!1)throw new Rn;return l.then(u=>a(u,n,o))}return a(l,n,o)}}Oe(t,"~standard",()=>({validate:a=>{try{let r=ha(t,a);return r.success?{value:r.data}:{issues:r.error?.issues}}catch{return ga(t,a).then(s=>s.success?{value:s.data}:{issues:s.error?.issues})}},vendor:"zod",version:1}))}),Es=j("$ZodString",(t,e)=>{ke.init(t,e),t._zod.pattern=[...t?._zod.bag?.patterns??[]].pop()??dP(t._zod.bag),t._zod.parse=(i,n)=>{if(e.coerce)try{i.value=String(i.value)}catch{}return typeof i.value=="string"||i.issues.push({expected:"string",code:"invalid_type",input:i.value,inst:t}),i}}),Ie=j("$ZodStringFormat",(t,e)=>{Ms.init(t,e),Es.init(t,e)}),Id=j("$ZodGUID",(t,e)=>{e.pattern??(e.pattern=Qy),Ie.init(t,e)}),zd=j("$ZodUUID",(t,e)=>{if(e.version){let n={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[e.version];if(n===void 0)throw new Error(`Invalid UUID version: "${e.version}"`);e.pattern??(e.pattern=Ed(n))}else e.pattern??(e.pattern=Ed());Ie.init(t,e)}),Dd=j("$ZodEmail",(t,e)=>{e.pattern??(e.pattern=Yy),Ie.init(t,e)}),Gd=j("$ZodURL",(t,e)=>{Ie.init(t,e),t._zod.check=i=>{try{let n=i.value.trim();if(!e.normalize&&e.protocol?.source===rP.source&&!/^https?:\/\//i.test(n)){i.issues.push({code:"invalid_format",format:"url",note:"Invalid URL format",input:i.value,inst:t,continue:!e.abort});return}let a=new URL(n);e.hostname&&(e.hostname.lastIndex=0,e.hostname.test(a.hostname)||i.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:e.hostname.source,input:i.value,inst:t,continue:!e.abort})),e.protocol&&(e.protocol.lastIndex=0,e.protocol.test(a.protocol.endsWith(":")?a.protocol.slice(0,-1):a.protocol)||i.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:e.protocol.source,input:i.value,inst:t,continue:!e.abort})),e.normalize?i.value=a.href:i.value=n;return}catch{i.issues.push({code:"invalid_format",format:"url",input:i.value,inst:t,continue:!e.abort})}}}),$d=j("$ZodEmoji",(t,e)=>{e.pattern??(e.pattern=Xy()),Ie.init(t,e)}),Nd=j("$ZodNanoID",(t,e)=>{e.pattern??(e.pattern=Zy),Ie.init(t,e)}),Ud=j("$ZodCUID",(t,e)=>{e.pattern??(e.pattern=Wy),Ie.init(t,e)}),Ld=j("$ZodCUID2",(t,e)=>{e.pattern??(e.pattern=By),Ie.init(t,e)}),Wd=j("$ZodULID",(t,e)=>{e.pattern??(e.pattern=Fy),Ie.init(t,e)}),Bd=j("$ZodXID",(t,e)=>{e.pattern??(e.pattern=Vy),Ie.init(t,e)}),Fd=j("$ZodKSUID",(t,e)=>{e.pattern??(e.pattern=Jy),Ie.init(t,e)}),NP=j("$ZodISODateTime",(t,e)=>{e.pattern??(e.pattern=pP(e)),Ie.init(t,e)}),UP=j("$ZodISODate",(t,e)=>{e.pattern??(e.pattern=lP),Ie.init(t,e)}),LP=j("$ZodISOTime",(t,e)=>{e.pattern??(e.pattern=cP(e)),Ie.init(t,e)}),WP=j("$ZodISODuration",(t,e)=>{e.pattern??(e.pattern=Ky),Ie.init(t,e)}),Vd=j("$ZodIPv4",(t,e)=>{e.pattern??(e.pattern=eP),Ie.init(t,e),t._zod.bag.format="ipv4"}),Jd=j("$ZodIPv6",(t,e)=>{e.pattern??(e.pattern=iP),Ie.init(t,e),t._zod.bag.format="ipv6",t._zod.check=i=>{try{new URL(`http://[${i.value}]`)}catch{i.issues.push({code:"invalid_format",format:"ipv6",input:i.value,inst:t,continue:!e.abort})}}});var Zd=j("$ZodCIDRv4",(t,e)=>{e.pattern??(e.pattern=nP),Ie.init(t,e)}),Kd=j("$ZodCIDRv6",(t,e)=>{e.pattern??(e.pattern=tP),Ie.init(t,e),t._zod.check=i=>{let n=i.value.split("/");try{if(n.length!==2)throw new Error;let[a,r]=n;if(!r)throw new Error;let s=Number(r);if(`${s}`!==r)throw new Error;if(s<0||s>128)throw new Error;new URL(`http://[${a}]`)}catch{i.issues.push({code:"invalid_format",format:"cidrv6",input:i.value,inst:t,continue:!e.abort})}}});function BP(t){if(t==="")return!0;if(/\s/.test(t)||t.length%4!==0)return!1;try{return atob(t),!0}catch{return!1}}var Qd=j("$ZodBase64",(t,e)=>{e.pattern??(e.pattern=aP),Ie.init(t,e),t._zod.bag.contentEncoding="base64",t._zod.check=i=>{BP(i.value)||i.issues.push({code:"invalid_format",format:"base64",input:i.value,inst:t,continue:!e.abort})}});function Xz(t){if(!kd.test(t))return!1;let e=t.replace(/[-_]/g,n=>n==="-"?"+":"/"),i=e.padEnd(Math.ceil(e.length/4)*4,"=");return BP(i)}var Yd=j("$ZodBase64URL",(t,e)=>{e.pattern??(e.pattern=kd),Ie.init(t,e),t._zod.bag.contentEncoding="base64url",t._zod.check=i=>{Xz(i.value)||i.issues.push({code:"invalid_format",format:"base64url",input:i.value,inst:t,continue:!e.abort})}}),Xd=j("$ZodE164",(t,e)=>{e.pattern??(e.pattern=sP),Ie.init(t,e)});function eD(t,e=null){try{let i=t.split(".");if(i.length!==3)return!1;let[n]=i;if(!n)return!1;let a=JSON.parse(atob(n));return!("typ"in a&&a?.typ!=="JWT"||!a.alg||e&&(!("alg"in a)||a.alg!==e))}catch{return!1}}var eh=j("$ZodJWT",(t,e)=>{Ie.init(t,e),t._zod.check=i=>{eD(i.value,e.alg)||i.issues.push({code:"invalid_format",format:"jwt",input:i.value,inst:t,continue:!e.abort})}});var Fl=j("$ZodNumber",(t,e)=>{ke.init(t,e),t._zod.pattern=t._zod.bag.pattern??qd,t._zod.parse=(i,n)=>{if(e.coerce)try{i.value=Number(i.value)}catch{}let a=i.value;if(typeof a=="number"&&!Number.isNaN(a)&&Number.isFinite(a))return i;let r=typeof a=="number"?Number.isNaN(a)?"NaN":Number.isFinite(a)?void 0:"Infinity":void 0;return i.issues.push({expected:"number",code:"invalid_type",input:a,inst:t,...r?{received:r}:{}}),i}}),ih=j("$ZodNumberFormat",(t,e)=>{AP.init(t,e),Fl.init(t,e)}),nh=j("$ZodBoolean",(t,e)=>{ke.init(t,e),t._zod.pattern=gP,t._zod.parse=(i,n)=>{if(e.coerce)try{i.value=!!i.value}catch{}let a=i.value;return typeof a=="boolean"||i.issues.push({expected:"boolean",code:"invalid_type",input:a,inst:t}),i}});var th=j("$ZodNull",(t,e)=>{ke.init(t,e),t._zod.pattern=mP,t._zod.values=new Set([null]),t._zod.parse=(i,n)=>{let a=i.value;return a===null||i.issues.push({expected:"null",code:"invalid_type",input:a,inst:t}),i}});var ah=j("$ZodUnknown",(t,e)=>{ke.init(t,e),t._zod.parse=i=>i}),rh=j("$ZodNever",(t,e)=>{ke.init(t,e),t._zod.parse=(i,n)=>(i.issues.push({expected:"never",code:"invalid_type",input:i.value,inst:t}),i)});function _P(t,e,i){t.issues.length&&e.issues.push(...tt(i,t.issues)),e.value[i]=t.value}var sh=j("$ZodArray",(t,e)=>{ke.init(t,e),t._zod.parse=(i,n)=>{let a=i.value;if(!Array.isArray(a))return i.issues.push({expected:"array",code:"invalid_type",input:a,inst:t}),i;i.value=Array(a.length);let r=[];for(let s=0;s_P(u,i,s))):_P(l,i,s)}return r.length?Promise.all(r).then(()=>i):i}});function Bl(t,e,i,n,a,r){let s=i in n;if(t.issues.length){if(a&&r&&!s)return;e.issues.push(...tt(i,t.issues))}if(!s&&!a){t.issues.length||e.issues.push({code:"invalid_type",expected:"nonoptional",input:void 0,path:[i]});return}t.value===void 0?s&&(e.value[i]=void 0):e.value[i]=t.value}function FP(t){let e=Object.keys(t.shape);for(let n of e)if(!t.shape?.[n]?._zod?.traits?.has("$ZodType"))throw new Error(`Invalid element at key "${n}": expected a Zod schema`);let i=Od(t.shape);return{...t,keys:e,keySet:new Set(e),numKeys:e.length,optionalKeys:new Set(i)}}function VP(t,e,i,n,a,r){let s=[],o=a.keySet,l=a.catchall._zod,u=l.def.type,c=l.optin==="optional",p=l.optout==="optional";for(let d in e){if(d==="__proto__"||o.has(d))continue;if(u==="never"){s.push(d);continue}let h=l.run({value:e[d],issues:[]},n);h instanceof Promise?t.push(h.then(g=>Bl(g,i,d,e,c,p))):Bl(h,i,d,e,c,p)}return s.length&&i.issues.push({code:"unrecognized_keys",keys:s,input:e,inst:r}),t.length?Promise.all(t).then(()=>i):i}var oh=j("$ZodObject",(t,e)=>{if(ke.init(t,e),!Object.getOwnPropertyDescriptor(e,"shape")?.get){let o=e.shape;Object.defineProperty(e,"shape",{get:()=>{let l={...o};return Object.defineProperty(e,"shape",{value:l}),l}})}let n=pr(()=>FP(e));Oe(t._zod,"propValues",()=>{let o=e.shape,l={};for(let u in o){let c=o[u]._zod;if(c.values){l[u]??(l[u]=new Set);for(let p of c.values)l[u].add(p)}}return l});let a=da,r=e.catchall,s;t._zod.parse=(o,l)=>{s??(s=n.value);let u=o.value;if(!a(u))return o.issues.push({expected:"object",code:"invalid_type",input:u,inst:t}),o;o.value={};let c=[],p=s.shape;for(let d of s.keys){let h=p[d],g=h._zod.optin==="optional",m=h._zod.optout==="optional",f=h._zod.run({value:u[d],issues:[]},l);f instanceof Promise?c.push(f.then(v=>Bl(v,o,d,u,g,m))):Bl(f,o,d,u,g,m)}return r?VP(c,u,o,l,n.value,t):c.length?Promise.all(c).then(()=>o):o}}),JP=j("$ZodObjectJIT",(t,e)=>{oh.init(t,e);let i=t._zod.parse,n=pr(()=>FP(e)),a=d=>{let h=new Ll(["shape","payload","ctx"]),g=n.value,m=A=>{let b=zl(A);return`shape[${b}]._zod.run({ value: input[${b}], issues: [] }, ctx)`};h.write("const input = payload.value;");let f=Object.create(null),v=0;for(let A of g.keys)f[A]=`key_${v++}`;h.write("const newResult = {};");for(let A of g.keys){let b=f[A],O=zl(A),$=d[A],N=$?._zod?.optin==="optional",X=$?._zod?.optout==="optional";h.write(`const ${b} = ${m(A)};`),N&&X?h.write(` if (${b}.issues.length) { if (${O} in input) { payload.issues = payload.issues.concat(${b}.issues.map(iss => ({ @@ -134,25 +134,27 @@ ${this.formatValue("Status",i)}${this.formatValue("Headers",this.formatHeaderStr } } - `)}h.write("payload.value = newResult;"),h.write("return payload;");let y=h.compile();return(A,b)=>y(d,A,b)},r,s=da,o=!ur.jitless,u=o&&Pd.value,c=e.catchall,p;t._zod.parse=(d,h)=>{p??(p=n.value);let g=d.value;return s(g)?o&&u&&h?.async===!1&&h.jitless!==!0?(r||(r=a(e.shape)),d=r(d,h),c?FP([],g,d,h,p,t):d):i(d,h):(d.issues.push({expected:"object",code:"invalid_type",input:g,inst:t}),d)}});function _P(t,e,i,n){for(let r of t)if(r.issues.length===0)return e.value=r.value,e;let a=t.filter(r=>!bt(r));return a.length===1?(e.value=a[0].value,a[0]):(e.issues.push({code:"invalid_union",input:e.value,inst:i,errors:t.map(r=>r.issues.map(s=>sn(s,n,Qi())))}),e)}var Vl=j("$ZodUnion",(t,e)=>{ke.init(t,e),Oe(t._zod,"optin",()=>e.options.some(n=>n._zod.optin==="optional")?"optional":void 0),Oe(t._zod,"optout",()=>e.options.some(n=>n._zod.optout==="optional")?"optional":void 0),Oe(t._zod,"values",()=>{if(e.options.every(n=>n._zod.values))return new Set(e.options.flatMap(n=>Array.from(n._zod.values)))}),Oe(t._zod,"pattern",()=>{if(e.options.every(n=>n._zod.pattern)){let n=e.options.map(a=>a._zod.pattern);return new RegExp(`^(${n.map(a=>bs(a.source)).join("|")})$`)}});let i=e.options.length===1?e.options[0]._zod.run:null;t._zod.parse=(n,a)=>{if(i)return i(n,a);let r=!1,s=[];for(let o of e.options){let l=o._zod.run({value:n.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=>_P(o,n,t,a)):_P(s,n,t,a)}});var lh=j("$ZodDiscriminatedUnion",(t,e)=>{e.inclusive=!1,Vl.init(t,e);let i=t._zod.parse;Oe(t._zod,"propValues",()=>{let a={};for(let r of e.options){let s=r._zod.propValues;if(!s||Object.keys(s).length===0)throw new Error(`Invalid discriminated union option at index "${e.options.indexOf(r)}"`);for(let[o,l]of Object.entries(s)){a[o]||(a[o]=new Set);for(let u of l)a[o].add(u)}}return a});let n=pr(()=>{let a=e.options,r=new Map;for(let s of a){let o=s._zod.propValues?.[e.discriminator];if(!o||o.size===0)throw new Error(`Invalid discriminated union option at index "${e.options.indexOf(s)}"`);for(let l of o){if(r.has(l))throw new Error(`Duplicate discriminator value "${String(l)}"`);r.set(l,s)}}return r});t._zod.parse=(a,r)=>{let s=a.value;if(!da(s))return a.issues.push({code:"invalid_type",expected:"object",input:s,inst:t}),a;let o=n.value.get(s?.[e.discriminator]);return o?o._zod.run(a,r):e.unionFallback||r.direction==="backward"?i(a,r):(a.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:e.discriminator,options:Array.from(n.value.keys()),input:s,path:[e.discriminator],inst:t}),a)}}),uh=j("$ZodIntersection",(t,e)=>{ke.init(t,e),t._zod.parse=(i,n)=>{let a=i.value,r=e.left._zod.run({value:a,issues:[]},n),s=e.right._zod.run({value:a,issues:[]},n);return r instanceof Promise||s instanceof Promise?Promise.all([r,s]).then(([l,u])=>HP(i,l,u)):HP(i,r,s)}});function Rd(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(At(t)&&At(e)){let i=Object.keys(e),n=Object.keys(t).filter(r=>i.indexOf(r)!==-1),a={...t,...e};for(let r of n){let s=Rd(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 i=[];for(let n=0;no.l&&o.r).map(([o])=>o);if(r.length&&a&&t.issues.push({...a,keys:r}),bt(t))return t;let s=Rd(e.value,i.value);if(!s.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(s.mergeErrorPath)}`);return t.value=s.data,t}var ch=j("$ZodRecord",(t,e)=>{ke.init(t,e),t._zod.parse=(i,n)=>{let a=i.value;if(!At(a))return i.issues.push({expected:"record",code:"invalid_type",input:a,inst:t}),i;let r=[],s=e.keyType._zod.values;if(s){i.value={};let o=new Set;for(let u of s)if(typeof u=="string"||typeof u=="number"||typeof u=="symbol"){o.add(typeof u=="number"?u.toString():u);let c=e.keyType._zod.run({value:u,issues:[]},n);if(c instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(c.issues.length){i.issues.push({code:"invalid_key",origin:"record",issues:c.issues.map(h=>sn(h,n,Qi())),input:u,path:[u],inst:t});continue}let p=c.value,d=e.valueType._zod.run({value:a[u],issues:[]},n);d instanceof Promise?r.push(d.then(h=>{h.issues.length&&i.issues.push(...tt(u,h.issues)),i.value[p]=h.value})):(d.issues.length&&i.issues.push(...tt(u,d.issues)),i.value[p]=d.value)}let l;for(let u in a)o.has(u)||(l=l??[],l.push(u));l&&l.length>0&&i.issues.push({code:"unrecognized_keys",input:a,inst:t,keys:l})}else{i.value={};for(let o of Reflect.ownKeys(a)){if(o==="__proto__"||!Object.prototype.propertyIsEnumerable.call(a,o))continue;let l=e.keyType._zod.run({value:o,issues:[]},n);if(l instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(typeof o=="string"&&qd.test(o)&&l.issues.length){let p=e.keyType._zod.run({value:Number(o),issues:[]},n);if(p instanceof Promise)throw new Error("Async schemas not supported in object keys currently");p.issues.length===0&&(l=p)}if(l.issues.length){e.mode==="loose"?i.value[o]=a[o]:i.issues.push({code:"invalid_key",origin:"record",issues:l.issues.map(p=>sn(p,n,Qi())),input:o,path:[o],inst:t});continue}let c=e.valueType._zod.run({value:a[o],issues:[]},n);c instanceof Promise?r.push(c.then(p=>{p.issues.length&&i.issues.push(...tt(o,p.issues)),i.value[l.value]=p.value})):(c.issues.length&&i.issues.push(...tt(o,c.issues)),i.value[l.value]=c.value)}}return r.length?Promise.all(r).then(()=>i):i}});var ph=j("$ZodEnum",(t,e)=>{ke.init(t,e);let i=Cs(e.entries),n=new Set(i);t._zod.values=n,t._zod.pattern=new RegExp(`^(${i.filter(a=>Sd.has(typeof a)).map(a=>typeof a=="string"?nt(a):a.toString()).join("|")})$`),t._zod.parse=(a,r)=>{let s=a.value;return n.has(s)||a.issues.push({code:"invalid_value",values:i,input:s,inst:t}),a}}),dh=j("$ZodLiteral",(t,e)=>{if(ke.init(t,e),e.values.length===0)throw new Error("Cannot create literal schema with no valid values");let i=new Set(e.values);t._zod.values=i,t._zod.pattern=new RegExp(`^(${e.values.map(n=>typeof n=="string"?nt(n):n?nt(n.toString()):String(n)).join("|")})$`),t._zod.parse=(n,a)=>{let r=n.value;return i.has(r)||n.issues.push({code:"invalid_value",values:e.values,input:r,inst:t}),n}});var hh=j("$ZodTransform",(t,e)=>{ke.init(t,e),t._zod.optin="optional",t._zod.parse=(i,n)=>{if(n.direction==="backward")throw new lr(t.constructor.name);let a=e.transform(i.value,i);if(n.async)return(a instanceof Promise?a:Promise.resolve(a)).then(s=>(i.value=s,i.fallback=!0,i));if(a instanceof Promise)throw new Rn;return i.value=a,i.fallback=!0,i}});function RP(t,e){return e===void 0&&(t.issues.length||t.fallback)?{issues:[],value:void 0}:t}var Jl=j("$ZodOptional",(t,e)=>{ke.init(t,e),t._zod.optin="optional",t._zod.optout="optional",Oe(t._zod,"values",()=>e.innerType._zod.values?new Set([...e.innerType._zod.values,void 0]):void 0),Oe(t._zod,"pattern",()=>{let i=e.innerType._zod.pattern;return i?new RegExp(`^(${bs(i.source)})?$`):void 0}),t._zod.parse=(i,n)=>{if(e.innerType._zod.optin==="optional"){let a=i.value,r=e.innerType._zod.run(i,n);return r instanceof Promise?r.then(s=>RP(s,a)):RP(r,a)}return i.value===void 0?i:e.innerType._zod.run(i,n)}}),gh=j("$ZodExactOptional",(t,e)=>{Jl.init(t,e),Oe(t._zod,"values",()=>e.innerType._zod.values),Oe(t._zod,"pattern",()=>e.innerType._zod.pattern),t._zod.parse=(i,n)=>e.innerType._zod.run(i,n)}),mh=j("$ZodNullable",(t,e)=>{ke.init(t,e),Oe(t._zod,"optin",()=>e.innerType._zod.optin),Oe(t._zod,"optout",()=>e.innerType._zod.optout),Oe(t._zod,"pattern",()=>{let i=e.innerType._zod.pattern;return i?new RegExp(`^(${bs(i.source)}|null)$`):void 0}),Oe(t._zod,"values",()=>e.innerType._zod.values?new Set([...e.innerType._zod.values,null]):void 0),t._zod.parse=(i,n)=>i.value===null?i:e.innerType._zod.run(i,n)}),fh=j("$ZodDefault",(t,e)=>{ke.init(t,e),t._zod.optin="optional",Oe(t._zod,"values",()=>e.innerType._zod.values),t._zod.parse=(i,n)=>{if(n.direction==="backward")return e.innerType._zod.run(i,n);if(i.value===void 0)return i.value=e.defaultValue,i;let a=e.innerType._zod.run(i,n);return a instanceof Promise?a.then(r=>IP(r,e)):IP(a,e)}});function IP(t,e){return t.value===void 0&&(t.value=e.defaultValue),t}var wh=j("$ZodPrefault",(t,e)=>{ke.init(t,e),t._zod.optin="optional",Oe(t._zod,"values",()=>e.innerType._zod.values),t._zod.parse=(i,n)=>(n.direction==="backward"||i.value===void 0&&(i.value=e.defaultValue),e.innerType._zod.run(i,n))}),vh=j("$ZodNonOptional",(t,e)=>{ke.init(t,e),Oe(t._zod,"values",()=>{let i=e.innerType._zod.values;return i?new Set([...i].filter(n=>n!==void 0)):void 0}),t._zod.parse=(i,n)=>{let a=e.innerType._zod.run(i,n);return a instanceof Promise?a.then(r=>zP(r,t)):zP(a,t)}});function zP(t,e){return!t.issues.length&&t.value===void 0&&t.issues.push({code:"invalid_type",expected:"nonoptional",input:t.value,inst:e}),t}var Ch=j("$ZodCatch",(t,e)=>{ke.init(t,e),t._zod.optin="optional",Oe(t._zod,"optout",()=>e.innerType._zod.optout),Oe(t._zod,"values",()=>e.innerType._zod.values),t._zod.parse=(i,n)=>{if(n.direction==="backward")return e.innerType._zod.run(i,n);let a=e.innerType._zod.run(i,n);return a instanceof Promise?a.then(r=>(i.value=r.value,r.issues.length&&(i.value=e.catchValue({...i,error:{issues:r.issues.map(s=>sn(s,n,Qi()))},input:i.value}),i.issues=[],i.fallback=!0),i)):(i.value=a.value,a.issues.length&&(i.value=e.catchValue({...i,error:{issues:a.issues.map(r=>sn(r,n,Qi()))},input:i.value}),i.issues=[],i.fallback=!0),i)}});var Zl=j("$ZodPipe",(t,e)=>{ke.init(t,e),Oe(t._zod,"values",()=>e.in._zod.values),Oe(t._zod,"optin",()=>e.in._zod.optin),Oe(t._zod,"optout",()=>e.out._zod.optout),Oe(t._zod,"propValues",()=>e.in._zod.propValues),t._zod.parse=(i,n)=>{if(n.direction==="backward"){let r=e.out._zod.run(i,n);return r instanceof Promise?r.then(s=>Wl(s,e.in,n)):Wl(r,e.in,n)}let a=e.in._zod.run(i,n);return a instanceof Promise?a.then(r=>Wl(r,e.out,n)):Wl(a,e.out,n)}});function Wl(t,e,i){return t.issues.length?(t.aborted=!0,t):e._zod.run({value:t.value,issues:t.issues,fallback:t.fallback},i)}var JP=j("$ZodPreprocess",(t,e)=>{Zl.init(t,e)}),Ah=j("$ZodReadonly",(t,e)=>{ke.init(t,e),Oe(t._zod,"propValues",()=>e.innerType._zod.propValues),Oe(t._zod,"values",()=>e.innerType._zod.values),Oe(t._zod,"optin",()=>e.innerType?._zod?.optin),Oe(t._zod,"optout",()=>e.innerType?._zod?.optout),t._zod.parse=(i,n)=>{if(n.direction==="backward")return e.innerType._zod.run(i,n);let a=e.innerType._zod.run(i,n);return a instanceof Promise?a.then(DP):DP(a)}});function DP(t){return t.value=Object.freeze(t.value),t}var bh=j("$ZodCustom",(t,e)=>{di.init(t,e),ke.init(t,e),t._zod.parse=(i,n)=>i,t._zod.check=i=>{let n=i.value,a=e.fn(n);if(a instanceof Promise)return a.then(r=>GP(r,i,n,t));GP(a,i,n,t)}});function GP(t,e,i,n){if(!t){let a={code:"custom",input:i,inst:n,path:[...n._zod.def.path??[]],continue:!n._zod.def.abort};n._zod.def.params&&(a.params=n._zod.def.params),e.issues.push(dr(a))}}var eD=()=>{let t={string:{unit:"characters",verb:"to have"},file:{unit:"bytes",verb:"to have"},array:{unit:"items",verb:"to have"},set:{unit:"items",verb:"to have"},map:{unit:"entries",verb:"to have"}};function e(a){return t[a]??null}let i={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",mac:"MAC address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",jwt:"JWT",template_literal:"input"},n={nan:"NaN"};return a=>{switch(a.code){case"invalid_type":{let r=n[a.expected]??a.expected,s=Md(a.input),o=n[s]??s;return`Invalid input: expected ${r}, received ${o}`}case"invalid_value":return a.values.length===1?`Invalid input: expected ${Gl(a.values[0])}`:`Invalid option: expected one of ${Il(a.values,"|")}`;case"too_big":{let r=a.inclusive?"<=":"<",s=e(a.origin);return s?`Too big: expected ${a.origin??"value"} to have ${r}${a.maximum.toString()} ${s.unit??"elements"}`:`Too big: expected ${a.origin??"value"} to be ${r}${a.maximum.toString()}`}case"too_small":{let r=a.inclusive?">=":">",s=e(a.origin);return s?`Too small: expected ${a.origin} to have ${r}${a.minimum.toString()} ${s.unit}`:`Too small: expected ${a.origin} to be ${r}${a.minimum.toString()}`}case"invalid_format":{let r=a;return r.format==="starts_with"?`Invalid string: must start with "${r.prefix}"`:r.format==="ends_with"?`Invalid string: must end with "${r.suffix}"`:r.format==="includes"?`Invalid string: must include "${r.includes}"`:r.format==="regex"?`Invalid string: must match pattern ${r.pattern}`:`Invalid ${i[r.format]??a.format}`}case"not_multiple_of":return`Invalid number: must be a multiple of ${a.divisor}`;case"unrecognized_keys":return`Unrecognized key${a.keys.length>1?"s":""}: ${Il(a.keys,", ")}`;case"invalid_key":return`Invalid key in ${a.origin}`;case"invalid_union":return a.options&&Array.isArray(a.options)&&a.options.length>0?`Invalid discriminator value. Expected ${a.options.map(s=>`'${s}'`).join(" | ")}`:"Invalid input";case"invalid_element":return`Invalid value in ${a.origin}`;default:return"Invalid input"}}};function ZP(){return{localeError:eD()}}var KP,WX=Symbol("ZodOutput"),BX=Symbol("ZodInput"),yh=class{constructor(){this._map=new WeakMap,this._idmap=new Map}add(e,...i){let n=i[0];return this._map.set(e,n),n&&typeof n=="object"&&"id"in n&&this._idmap.set(n.id,e),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(e){let i=this._map.get(e);return i&&typeof i=="object"&&"id"in i&&this._idmap.delete(i.id),this._map.delete(e),this}get(e){let i=e._zod.parent;if(i){let n={...this.get(i)??{}};delete n.id;let a={...n,...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 iD(){return new yh}(KP=globalThis).__zod_globalRegistry??(KP.__zod_globalRegistry=iD());var ma=globalThis.__zod_globalRegistry;function Ph(t,e){return new t({type:"string",...J(e)})}function jh(t,e){return new t({type:"string",format:"email",check:"string_format",abort:!1,...J(e)})}function Kl(t,e){return new t({type:"string",format:"guid",check:"string_format",abort:!1,...J(e)})}function Sh(t,e){return new t({type:"string",format:"uuid",check:"string_format",abort:!1,...J(e)})}function Oh(t,e){return new t({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...J(e)})}function xh(t,e){return new t({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...J(e)})}function Th(t,e){return new t({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...J(e)})}function Mh(t,e){return new t({type:"string",format:"url",check:"string_format",abort:!1,...J(e)})}function Eh(t,e){return new t({type:"string",format:"emoji",check:"string_format",abort:!1,...J(e)})}function kh(t,e){return new t({type:"string",format:"nanoid",check:"string_format",abort:!1,...J(e)})}function qh(t,e){return new t({type:"string",format:"cuid",check:"string_format",abort:!1,...J(e)})}function _h(t,e){return new t({type:"string",format:"cuid2",check:"string_format",abort:!1,...J(e)})}function Hh(t,e){return new t({type:"string",format:"ulid",check:"string_format",abort:!1,...J(e)})}function Rh(t,e){return new t({type:"string",format:"xid",check:"string_format",abort:!1,...J(e)})}function Ih(t,e){return new t({type:"string",format:"ksuid",check:"string_format",abort:!1,...J(e)})}function zh(t,e){return new t({type:"string",format:"ipv4",check:"string_format",abort:!1,...J(e)})}function Dh(t,e){return new t({type:"string",format:"ipv6",check:"string_format",abort:!1,...J(e)})}function Gh(t,e){return new t({type:"string",format:"cidrv4",check:"string_format",abort:!1,...J(e)})}function $h(t,e){return new t({type:"string",format:"cidrv6",check:"string_format",abort:!1,...J(e)})}function Nh(t,e){return new t({type:"string",format:"base64",check:"string_format",abort:!1,...J(e)})}function Uh(t,e){return new t({type:"string",format:"base64url",check:"string_format",abort:!1,...J(e)})}function Lh(t,e){return new t({type:"string",format:"e164",check:"string_format",abort:!1,...J(e)})}function Wh(t,e){return new t({type:"string",format:"jwt",check:"string_format",abort:!1,...J(e)})}function QP(t,e){return new t({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...J(e)})}function YP(t,e){return new t({type:"string",format:"date",check:"string_format",...J(e)})}function XP(t,e){return new t({type:"string",format:"time",check:"string_format",precision:null,...J(e)})}function ej(t,e){return new t({type:"string",format:"duration",check:"string_format",...J(e)})}function Bh(t,e){return new t({type:"number",checks:[],...J(e)})}function Fh(t,e){return new t({type:"number",check:"number_format",abort:!1,format:"safeint",...J(e)})}function Vh(t,e){return new t({type:"boolean",...J(e)})}function Jh(t,e){return new t({type:"null",...J(e)})}function Zh(t){return new t({type:"unknown"})}function Kh(t,e){return new t({type:"never",...J(e)})}function Ql(t,e){return new _d({check:"less_than",...J(e),value:t,inclusive:!1})}function ks(t,e){return new _d({check:"less_than",...J(e),value:t,inclusive:!0})}function Yl(t,e){return new Hd({check:"greater_than",...J(e),value:t,inclusive:!1})}function qs(t,e){return new Hd({check:"greater_than",...J(e),value:t,inclusive:!0})}function Xl(t,e){return new vP({check:"multiple_of",...J(e),value:t})}function eu(t,e){return new AP({check:"max_length",...J(e),maximum:t})}function hr(t,e){return new bP({check:"min_length",...J(e),minimum:t})}function iu(t,e){return new yP({check:"length_equals",...J(e),length:t})}function Qh(t,e){return new PP({check:"string_format",format:"regex",...J(e),pattern:t})}function Yh(t){return new jP({check:"string_format",format:"lowercase",...J(t)})}function Xh(t){return new SP({check:"string_format",format:"uppercase",...J(t)})}function eg(t,e){return new OP({check:"string_format",format:"includes",...J(e),includes:t})}function ig(t,e){return new xP({check:"string_format",format:"starts_with",...J(e),prefix:t})}function ng(t,e){return new TP({check:"string_format",format:"ends_with",...J(e),suffix:t})}function yt(t){return new MP({check:"overwrite",tx:t})}function tg(t){return yt(e=>e.normalize(t))}function ag(){return yt(t=>t.trim())}function rg(){return yt(t=>t.toLowerCase())}function sg(){return yt(t=>t.toUpperCase())}function og(){return yt(t=>yd(t))}function ij(t,e,i){return new t({type:"array",element:e,...J(i)})}function lg(t,e,i){let n=J(i);return n.abort??(n.abort=!0),new t({type:"custom",check:"custom",fn:e,...n})}function ug(t,e,i){return new t({type:"custom",check:"custom",fn:e,...J(i)})}function cg(t,e){let i=nD(n=>(n.addIssue=a=>{if(typeof a=="string")n.issues.push(dr(a,n.value,i._zod.def));else{let r=a;r.fatal&&(r.continue=!1),r.code??(r.code="custom"),r.input??(r.input=n.value),r.inst??(r.inst=i),r.continue??(r.continue=!i._zod.def.abort),n.issues.push(dr(r))}},t(n.value,n)),e);return i}function nD(t,e){let i=new di({check:"custom",...J(e)});return i._zod.check=t,i}function Hs(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??ma,target:e,unrepresentable:t?.unrepresentable??"throw",override:t?.override??(()=>{}),io:t?.io??"output",counter:0,seen:new Map,cycles:t?.cycles??"ref",reused:t?.reused??"inline",external:t?.external??void 0}}function qe(t,e,i={path:[],schemaPath:[]}){var n;let a=t._zod.def,r=e.seen.get(t);if(r)return r.count++,i.schemaPath.includes(t)&&(r.cycle=i.path),r.schema;let s={schema:{},count:1,cycle:void 0,path:i.path};e.seen.set(t,s);let o=t._zod.toJSONSchema?.();if(o)s.schema=o;else{let c={...i,schemaPath:[...i.schemaPath,t],path:i.path};if(t._zod.processJSONSchema)t._zod.processJSONSchema(e,s.schema,c);else{let d=s.schema,h=e.processors[a.type];if(!h)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${a.type}`);h(t,e,d,c)}let p=t._zod.parent;p&&(s.ref||(s.ref=p),qe(p,e,c),e.seen.get(p).isParent=!0)}let l=e.metadataRegistry.get(t);return l&&Object.assign(s.schema,l),e.io==="input"&&ki(t)&&(delete s.schema.examples,delete s.schema.default),e.io==="input"&&"_prefault"in s.schema&&((n=s.schema).default??(n.default=s.schema._prefault)),delete s.schema._prefault,e.seen.get(t).schema}function Rs(t,e){let i=t.seen.get(e);if(!i)throw new Error("Unprocessed schema. This is a bug in Zod.");let n=new Map;for(let s of t.seen.entries()){let o=t.metadataRegistry.get(s[0])?.id;if(o){let l=n.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.`);n.set(o,s[0])}}let a=s=>{let o=t.target==="draft-2020-12"?"$defs":"definitions";if(t.external){let p=t.external.registry.get(s[0])?.id,d=t.external.uri??(g=>g);if(p)return{ref:d(p)};let h=s[1].defId??s[1].schema.id??`schema${t.counter++}`;return s[1].defId=h,{defId:h,ref:`${d("__shared")}#/${o}/${h}`}}if(s[1]===i)return{ref:"#"};let u=`#/${o}/`,c=s[1].schema.id??`__schema${t.counter++}`;return{defId:c,ref:u+c}},r=s=>{if(s[1].schema.$ref)return;let o=s[1],{ref:l,defId:u}=a(s);o.def={...o.schema},u&&(o.defId=u);let c=o.schema;for(let p in c)delete c[p];c.$ref=l};if(t.cycles==="throw")for(let s of t.seen.entries()){let o=s[1];if(o.cycle)throw new Error(`Cycle detected: #/${o.cycle?.join("/")}/ + `)}h.write("payload.value = newResult;"),h.write("return payload;");let y=h.compile();return(A,b)=>y(d,A,b)},r,s=da,o=!ur.jitless,u=o&&Pd.value,c=e.catchall,p;t._zod.parse=(d,h)=>{p??(p=n.value);let g=d.value;return s(g)?o&&u&&h?.async===!1&&h.jitless!==!0?(r||(r=a(e.shape)),d=r(d,h),c?VP([],g,d,h,p,t):d):i(d,h):(d.issues.push({expected:"object",code:"invalid_type",input:g,inst:t}),d)}});function HP(t,e,i,n){for(let r of t)if(r.issues.length===0)return e.value=r.value,e;let a=t.filter(r=>!bt(r));return a.length===1?(e.value=a[0].value,a[0]):(e.issues.push({code:"invalid_union",input:e.value,inst:i,errors:t.map(r=>r.issues.map(s=>sn(s,n,Qi())))}),e)}var Vl=j("$ZodUnion",(t,e)=>{ke.init(t,e),Oe(t._zod,"optin",()=>e.options.some(n=>n._zod.optin==="optional")?"optional":void 0),Oe(t._zod,"optout",()=>e.options.some(n=>n._zod.optout==="optional")?"optional":void 0),Oe(t._zod,"values",()=>{if(e.options.every(n=>n._zod.values))return new Set(e.options.flatMap(n=>Array.from(n._zod.values)))}),Oe(t._zod,"pattern",()=>{if(e.options.every(n=>n._zod.pattern)){let n=e.options.map(a=>a._zod.pattern);return new RegExp(`^(${n.map(a=>bs(a.source)).join("|")})$`)}});let i=e.options.length===1?e.options[0]._zod.run:null;t._zod.parse=(n,a)=>{if(i)return i(n,a);let r=!1,s=[];for(let o of e.options){let l=o._zod.run({value:n.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=>HP(o,n,t,a)):HP(s,n,t,a)}});var lh=j("$ZodDiscriminatedUnion",(t,e)=>{e.inclusive=!1,Vl.init(t,e);let i=t._zod.parse;Oe(t._zod,"propValues",()=>{let a={};for(let r of e.options){let s=r._zod.propValues;if(!s||Object.keys(s).length===0)throw new Error(`Invalid discriminated union option at index "${e.options.indexOf(r)}"`);for(let[o,l]of Object.entries(s)){a[o]||(a[o]=new Set);for(let u of l)a[o].add(u)}}return a});let n=pr(()=>{let a=e.options,r=new Map;for(let s of a){let o=s._zod.propValues?.[e.discriminator];if(!o||o.size===0)throw new Error(`Invalid discriminated union option at index "${e.options.indexOf(s)}"`);for(let l of o){if(r.has(l))throw new Error(`Duplicate discriminator value "${String(l)}"`);r.set(l,s)}}return r});t._zod.parse=(a,r)=>{let s=a.value;if(!da(s))return a.issues.push({code:"invalid_type",expected:"object",input:s,inst:t}),a;let o=n.value.get(s?.[e.discriminator]);return o?o._zod.run(a,r):e.unionFallback||r.direction==="backward"?i(a,r):(a.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:e.discriminator,options:Array.from(n.value.keys()),input:s,path:[e.discriminator],inst:t}),a)}}),uh=j("$ZodIntersection",(t,e)=>{ke.init(t,e),t._zod.parse=(i,n)=>{let a=i.value,r=e.left._zod.run({value:a,issues:[]},n),s=e.right._zod.run({value:a,issues:[]},n);return r instanceof Promise||s instanceof Promise?Promise.all([r,s]).then(([l,u])=>RP(i,l,u)):RP(i,r,s)}});function Rd(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(At(t)&&At(e)){let i=Object.keys(e),n=Object.keys(t).filter(r=>i.indexOf(r)!==-1),a={...t,...e};for(let r of n){let s=Rd(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 i=[];for(let n=0;no.l&&o.r).map(([o])=>o);if(r.length&&a&&t.issues.push({...a,keys:r}),bt(t))return t;let s=Rd(e.value,i.value);if(!s.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(s.mergeErrorPath)}`);return t.value=s.data,t}var ch=j("$ZodRecord",(t,e)=>{ke.init(t,e),t._zod.parse=(i,n)=>{let a=i.value;if(!At(a))return i.issues.push({expected:"record",code:"invalid_type",input:a,inst:t}),i;let r=[],s=e.keyType._zod.values;if(s){i.value={};let o=new Set;for(let u of s)if(typeof u=="string"||typeof u=="number"||typeof u=="symbol"){o.add(typeof u=="number"?u.toString():u);let c=e.keyType._zod.run({value:u,issues:[]},n);if(c instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(c.issues.length){i.issues.push({code:"invalid_key",origin:"record",issues:c.issues.map(h=>sn(h,n,Qi())),input:u,path:[u],inst:t});continue}let p=c.value,d=e.valueType._zod.run({value:a[u],issues:[]},n);d instanceof Promise?r.push(d.then(h=>{h.issues.length&&i.issues.push(...tt(u,h.issues)),i.value[p]=h.value})):(d.issues.length&&i.issues.push(...tt(u,d.issues)),i.value[p]=d.value)}let l;for(let u in a)o.has(u)||(l=l??[],l.push(u));l&&l.length>0&&i.issues.push({code:"unrecognized_keys",input:a,inst:t,keys:l})}else{i.value={};for(let o of Reflect.ownKeys(a)){if(o==="__proto__"||!Object.prototype.propertyIsEnumerable.call(a,o))continue;let l=e.keyType._zod.run({value:o,issues:[]},n);if(l instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(typeof o=="string"&&qd.test(o)&&l.issues.length){let p=e.keyType._zod.run({value:Number(o),issues:[]},n);if(p instanceof Promise)throw new Error("Async schemas not supported in object keys currently");p.issues.length===0&&(l=p)}if(l.issues.length){e.mode==="loose"?i.value[o]=a[o]:i.issues.push({code:"invalid_key",origin:"record",issues:l.issues.map(p=>sn(p,n,Qi())),input:o,path:[o],inst:t});continue}let c=e.valueType._zod.run({value:a[o],issues:[]},n);c instanceof Promise?r.push(c.then(p=>{p.issues.length&&i.issues.push(...tt(o,p.issues)),i.value[l.value]=p.value})):(c.issues.length&&i.issues.push(...tt(o,c.issues)),i.value[l.value]=c.value)}}return r.length?Promise.all(r).then(()=>i):i}});var ph=j("$ZodEnum",(t,e)=>{ke.init(t,e);let i=Cs(e.entries),n=new Set(i);t._zod.values=n,t._zod.pattern=new RegExp(`^(${i.filter(a=>Sd.has(typeof a)).map(a=>typeof a=="string"?nt(a):a.toString()).join("|")})$`),t._zod.parse=(a,r)=>{let s=a.value;return n.has(s)||a.issues.push({code:"invalid_value",values:i,input:s,inst:t}),a}}),dh=j("$ZodLiteral",(t,e)=>{if(ke.init(t,e),e.values.length===0)throw new Error("Cannot create literal schema with no valid values");let i=new Set(e.values);t._zod.values=i,t._zod.pattern=new RegExp(`^(${e.values.map(n=>typeof n=="string"?nt(n):n?nt(n.toString()):String(n)).join("|")})$`),t._zod.parse=(n,a)=>{let r=n.value;return i.has(r)||n.issues.push({code:"invalid_value",values:e.values,input:r,inst:t}),n}});var hh=j("$ZodTransform",(t,e)=>{ke.init(t,e),t._zod.optin="optional",t._zod.parse=(i,n)=>{if(n.direction==="backward")throw new lr(t.constructor.name);let a=e.transform(i.value,i);if(n.async)return(a instanceof Promise?a:Promise.resolve(a)).then(s=>(i.value=s,i.fallback=!0,i));if(a instanceof Promise)throw new Rn;return i.value=a,i.fallback=!0,i}});function IP(t,e){return e===void 0&&(t.issues.length||t.fallback)?{issues:[],value:void 0}:t}var Jl=j("$ZodOptional",(t,e)=>{ke.init(t,e),t._zod.optin="optional",t._zod.optout="optional",Oe(t._zod,"values",()=>e.innerType._zod.values?new Set([...e.innerType._zod.values,void 0]):void 0),Oe(t._zod,"pattern",()=>{let i=e.innerType._zod.pattern;return i?new RegExp(`^(${bs(i.source)})?$`):void 0}),t._zod.parse=(i,n)=>{if(e.innerType._zod.optin==="optional"){let a=i.value,r=e.innerType._zod.run(i,n);return r instanceof Promise?r.then(s=>IP(s,a)):IP(r,a)}return i.value===void 0?i:e.innerType._zod.run(i,n)}}),gh=j("$ZodExactOptional",(t,e)=>{Jl.init(t,e),Oe(t._zod,"values",()=>e.innerType._zod.values),Oe(t._zod,"pattern",()=>e.innerType._zod.pattern),t._zod.parse=(i,n)=>e.innerType._zod.run(i,n)}),mh=j("$ZodNullable",(t,e)=>{ke.init(t,e),Oe(t._zod,"optin",()=>e.innerType._zod.optin),Oe(t._zod,"optout",()=>e.innerType._zod.optout),Oe(t._zod,"pattern",()=>{let i=e.innerType._zod.pattern;return i?new RegExp(`^(${bs(i.source)}|null)$`):void 0}),Oe(t._zod,"values",()=>e.innerType._zod.values?new Set([...e.innerType._zod.values,null]):void 0),t._zod.parse=(i,n)=>i.value===null?i:e.innerType._zod.run(i,n)}),fh=j("$ZodDefault",(t,e)=>{ke.init(t,e),t._zod.optin="optional",Oe(t._zod,"values",()=>e.innerType._zod.values),t._zod.parse=(i,n)=>{if(n.direction==="backward")return e.innerType._zod.run(i,n);if(i.value===void 0)return i.value=e.defaultValue,i;let a=e.innerType._zod.run(i,n);return a instanceof Promise?a.then(r=>zP(r,e)):zP(a,e)}});function zP(t,e){return t.value===void 0&&(t.value=e.defaultValue),t}var wh=j("$ZodPrefault",(t,e)=>{ke.init(t,e),t._zod.optin="optional",Oe(t._zod,"values",()=>e.innerType._zod.values),t._zod.parse=(i,n)=>(n.direction==="backward"||i.value===void 0&&(i.value=e.defaultValue),e.innerType._zod.run(i,n))}),vh=j("$ZodNonOptional",(t,e)=>{ke.init(t,e),Oe(t._zod,"values",()=>{let i=e.innerType._zod.values;return i?new Set([...i].filter(n=>n!==void 0)):void 0}),t._zod.parse=(i,n)=>{let a=e.innerType._zod.run(i,n);return a instanceof Promise?a.then(r=>DP(r,t)):DP(a,t)}});function DP(t,e){return!t.issues.length&&t.value===void 0&&t.issues.push({code:"invalid_type",expected:"nonoptional",input:t.value,inst:e}),t}var Ch=j("$ZodCatch",(t,e)=>{ke.init(t,e),t._zod.optin="optional",Oe(t._zod,"optout",()=>e.innerType._zod.optout),Oe(t._zod,"values",()=>e.innerType._zod.values),t._zod.parse=(i,n)=>{if(n.direction==="backward")return e.innerType._zod.run(i,n);let a=e.innerType._zod.run(i,n);return a instanceof Promise?a.then(r=>(i.value=r.value,r.issues.length&&(i.value=e.catchValue({...i,error:{issues:r.issues.map(s=>sn(s,n,Qi()))},input:i.value}),i.issues=[],i.fallback=!0),i)):(i.value=a.value,a.issues.length&&(i.value=e.catchValue({...i,error:{issues:a.issues.map(r=>sn(r,n,Qi()))},input:i.value}),i.issues=[],i.fallback=!0),i)}});var Zl=j("$ZodPipe",(t,e)=>{ke.init(t,e),Oe(t._zod,"values",()=>e.in._zod.values),Oe(t._zod,"optin",()=>e.in._zod.optin),Oe(t._zod,"optout",()=>e.out._zod.optout),Oe(t._zod,"propValues",()=>e.in._zod.propValues),t._zod.parse=(i,n)=>{if(n.direction==="backward"){let r=e.out._zod.run(i,n);return r instanceof Promise?r.then(s=>Wl(s,e.in,n)):Wl(r,e.in,n)}let a=e.in._zod.run(i,n);return a instanceof Promise?a.then(r=>Wl(r,e.out,n)):Wl(a,e.out,n)}});function Wl(t,e,i){return t.issues.length?(t.aborted=!0,t):e._zod.run({value:t.value,issues:t.issues,fallback:t.fallback},i)}var ZP=j("$ZodPreprocess",(t,e)=>{Zl.init(t,e)}),Ah=j("$ZodReadonly",(t,e)=>{ke.init(t,e),Oe(t._zod,"propValues",()=>e.innerType._zod.propValues),Oe(t._zod,"values",()=>e.innerType._zod.values),Oe(t._zod,"optin",()=>e.innerType?._zod?.optin),Oe(t._zod,"optout",()=>e.innerType?._zod?.optout),t._zod.parse=(i,n)=>{if(n.direction==="backward")return e.innerType._zod.run(i,n);let a=e.innerType._zod.run(i,n);return a instanceof Promise?a.then(GP):GP(a)}});function GP(t){return t.value=Object.freeze(t.value),t}var bh=j("$ZodCustom",(t,e)=>{di.init(t,e),ke.init(t,e),t._zod.parse=(i,n)=>i,t._zod.check=i=>{let n=i.value,a=e.fn(n);if(a instanceof Promise)return a.then(r=>$P(r,i,n,t));$P(a,i,n,t)}});function $P(t,e,i,n){if(!t){let a={code:"custom",input:i,inst:n,path:[...n._zod.def.path??[]],continue:!n._zod.def.abort};n._zod.def.params&&(a.params=n._zod.def.params),e.issues.push(dr(a))}}var iD=()=>{let t={string:{unit:"characters",verb:"to have"},file:{unit:"bytes",verb:"to have"},array:{unit:"items",verb:"to have"},set:{unit:"items",verb:"to have"},map:{unit:"entries",verb:"to have"}};function e(a){return t[a]??null}let i={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",mac:"MAC address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",jwt:"JWT",template_literal:"input"},n={nan:"NaN"};return a=>{switch(a.code){case"invalid_type":{let r=n[a.expected]??a.expected,s=Md(a.input),o=n[s]??s;return`Invalid input: expected ${r}, received ${o}`}case"invalid_value":return a.values.length===1?`Invalid input: expected ${Gl(a.values[0])}`:`Invalid option: expected one of ${Il(a.values,"|")}`;case"too_big":{let r=a.inclusive?"<=":"<",s=e(a.origin);return s?`Too big: expected ${a.origin??"value"} to have ${r}${a.maximum.toString()} ${s.unit??"elements"}`:`Too big: expected ${a.origin??"value"} to be ${r}${a.maximum.toString()}`}case"too_small":{let r=a.inclusive?">=":">",s=e(a.origin);return s?`Too small: expected ${a.origin} to have ${r}${a.minimum.toString()} ${s.unit}`:`Too small: expected ${a.origin} to be ${r}${a.minimum.toString()}`}case"invalid_format":{let r=a;return r.format==="starts_with"?`Invalid string: must start with "${r.prefix}"`:r.format==="ends_with"?`Invalid string: must end with "${r.suffix}"`:r.format==="includes"?`Invalid string: must include "${r.includes}"`:r.format==="regex"?`Invalid string: must match pattern ${r.pattern}`:`Invalid ${i[r.format]??a.format}`}case"not_multiple_of":return`Invalid number: must be a multiple of ${a.divisor}`;case"unrecognized_keys":return`Unrecognized key${a.keys.length>1?"s":""}: ${Il(a.keys,", ")}`;case"invalid_key":return`Invalid key in ${a.origin}`;case"invalid_union":return a.options&&Array.isArray(a.options)&&a.options.length>0?`Invalid discriminator value. Expected ${a.options.map(s=>`'${s}'`).join(" | ")}`:"Invalid input";case"invalid_element":return`Invalid value in ${a.origin}`;default:return"Invalid input"}}};function KP(){return{localeError:iD()}}var QP,BX=Symbol("ZodOutput"),FX=Symbol("ZodInput"),yh=class{constructor(){this._map=new WeakMap,this._idmap=new Map}add(e,...i){let n=i[0];return this._map.set(e,n),n&&typeof n=="object"&&"id"in n&&this._idmap.set(n.id,e),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(e){let i=this._map.get(e);return i&&typeof i=="object"&&"id"in i&&this._idmap.delete(i.id),this._map.delete(e),this}get(e){let i=e._zod.parent;if(i){let n={...this.get(i)??{}};delete n.id;let a={...n,...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 nD(){return new yh}(QP=globalThis).__zod_globalRegistry??(QP.__zod_globalRegistry=nD());var ma=globalThis.__zod_globalRegistry;function Ph(t,e){return new t({type:"string",...J(e)})}function jh(t,e){return new t({type:"string",format:"email",check:"string_format",abort:!1,...J(e)})}function Kl(t,e){return new t({type:"string",format:"guid",check:"string_format",abort:!1,...J(e)})}function Sh(t,e){return new t({type:"string",format:"uuid",check:"string_format",abort:!1,...J(e)})}function Oh(t,e){return new t({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...J(e)})}function xh(t,e){return new t({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...J(e)})}function Th(t,e){return new t({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...J(e)})}function Mh(t,e){return new t({type:"string",format:"url",check:"string_format",abort:!1,...J(e)})}function Eh(t,e){return new t({type:"string",format:"emoji",check:"string_format",abort:!1,...J(e)})}function kh(t,e){return new t({type:"string",format:"nanoid",check:"string_format",abort:!1,...J(e)})}function qh(t,e){return new t({type:"string",format:"cuid",check:"string_format",abort:!1,...J(e)})}function _h(t,e){return new t({type:"string",format:"cuid2",check:"string_format",abort:!1,...J(e)})}function Hh(t,e){return new t({type:"string",format:"ulid",check:"string_format",abort:!1,...J(e)})}function Rh(t,e){return new t({type:"string",format:"xid",check:"string_format",abort:!1,...J(e)})}function Ih(t,e){return new t({type:"string",format:"ksuid",check:"string_format",abort:!1,...J(e)})}function zh(t,e){return new t({type:"string",format:"ipv4",check:"string_format",abort:!1,...J(e)})}function Dh(t,e){return new t({type:"string",format:"ipv6",check:"string_format",abort:!1,...J(e)})}function Gh(t,e){return new t({type:"string",format:"cidrv4",check:"string_format",abort:!1,...J(e)})}function $h(t,e){return new t({type:"string",format:"cidrv6",check:"string_format",abort:!1,...J(e)})}function Nh(t,e){return new t({type:"string",format:"base64",check:"string_format",abort:!1,...J(e)})}function Uh(t,e){return new t({type:"string",format:"base64url",check:"string_format",abort:!1,...J(e)})}function Lh(t,e){return new t({type:"string",format:"e164",check:"string_format",abort:!1,...J(e)})}function Wh(t,e){return new t({type:"string",format:"jwt",check:"string_format",abort:!1,...J(e)})}function YP(t,e){return new t({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...J(e)})}function XP(t,e){return new t({type:"string",format:"date",check:"string_format",...J(e)})}function ej(t,e){return new t({type:"string",format:"time",check:"string_format",precision:null,...J(e)})}function ij(t,e){return new t({type:"string",format:"duration",check:"string_format",...J(e)})}function Bh(t,e){return new t({type:"number",checks:[],...J(e)})}function Fh(t,e){return new t({type:"number",check:"number_format",abort:!1,format:"safeint",...J(e)})}function Vh(t,e){return new t({type:"boolean",...J(e)})}function Jh(t,e){return new t({type:"null",...J(e)})}function Zh(t){return new t({type:"unknown"})}function Kh(t,e){return new t({type:"never",...J(e)})}function Ql(t,e){return new _d({check:"less_than",...J(e),value:t,inclusive:!1})}function ks(t,e){return new _d({check:"less_than",...J(e),value:t,inclusive:!0})}function Yl(t,e){return new Hd({check:"greater_than",...J(e),value:t,inclusive:!1})}function qs(t,e){return new Hd({check:"greater_than",...J(e),value:t,inclusive:!0})}function Xl(t,e){return new CP({check:"multiple_of",...J(e),value:t})}function eu(t,e){return new bP({check:"max_length",...J(e),maximum:t})}function hr(t,e){return new yP({check:"min_length",...J(e),minimum:t})}function iu(t,e){return new PP({check:"length_equals",...J(e),length:t})}function Qh(t,e){return new jP({check:"string_format",format:"regex",...J(e),pattern:t})}function Yh(t){return new SP({check:"string_format",format:"lowercase",...J(t)})}function Xh(t){return new OP({check:"string_format",format:"uppercase",...J(t)})}function eg(t,e){return new xP({check:"string_format",format:"includes",...J(e),includes:t})}function ig(t,e){return new TP({check:"string_format",format:"starts_with",...J(e),prefix:t})}function ng(t,e){return new MP({check:"string_format",format:"ends_with",...J(e),suffix:t})}function yt(t){return new EP({check:"overwrite",tx:t})}function tg(t){return yt(e=>e.normalize(t))}function ag(){return yt(t=>t.trim())}function rg(){return yt(t=>t.toLowerCase())}function sg(){return yt(t=>t.toUpperCase())}function og(){return yt(t=>yd(t))}function nj(t,e,i){return new t({type:"array",element:e,...J(i)})}function lg(t,e,i){let n=J(i);return n.abort??(n.abort=!0),new t({type:"custom",check:"custom",fn:e,...n})}function ug(t,e,i){return new t({type:"custom",check:"custom",fn:e,...J(i)})}function cg(t,e){let i=tD(n=>(n.addIssue=a=>{if(typeof a=="string")n.issues.push(dr(a,n.value,i._zod.def));else{let r=a;r.fatal&&(r.continue=!1),r.code??(r.code="custom"),r.input??(r.input=n.value),r.inst??(r.inst=i),r.continue??(r.continue=!i._zod.def.abort),n.issues.push(dr(r))}},t(n.value,n)),e);return i}function tD(t,e){let i=new di({check:"custom",...J(e)});return i._zod.check=t,i}function Hs(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??ma,target:e,unrepresentable:t?.unrepresentable??"throw",override:t?.override??(()=>{}),io:t?.io??"output",counter:0,seen:new Map,cycles:t?.cycles??"ref",reused:t?.reused??"inline",external:t?.external??void 0}}function qe(t,e,i={path:[],schemaPath:[]}){var n;let a=t._zod.def,r=e.seen.get(t);if(r)return r.count++,i.schemaPath.includes(t)&&(r.cycle=i.path),r.schema;let s={schema:{},count:1,cycle:void 0,path:i.path};e.seen.set(t,s);let o=t._zod.toJSONSchema?.();if(o)s.schema=o;else{let c={...i,schemaPath:[...i.schemaPath,t],path:i.path};if(t._zod.processJSONSchema)t._zod.processJSONSchema(e,s.schema,c);else{let d=s.schema,h=e.processors[a.type];if(!h)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${a.type}`);h(t,e,d,c)}let p=t._zod.parent;p&&(s.ref||(s.ref=p),qe(p,e,c),e.seen.get(p).isParent=!0)}let l=e.metadataRegistry.get(t);return l&&Object.assign(s.schema,l),e.io==="input"&&ki(t)&&(delete s.schema.examples,delete s.schema.default),e.io==="input"&&"_prefault"in s.schema&&((n=s.schema).default??(n.default=s.schema._prefault)),delete s.schema._prefault,e.seen.get(t).schema}function Rs(t,e){let i=t.seen.get(e);if(!i)throw new Error("Unprocessed schema. This is a bug in Zod.");let n=new Map;for(let s of t.seen.entries()){let o=t.metadataRegistry.get(s[0])?.id;if(o){let l=n.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.`);n.set(o,s[0])}}let a=s=>{let o=t.target==="draft-2020-12"?"$defs":"definitions";if(t.external){let p=t.external.registry.get(s[0])?.id,d=t.external.uri??(g=>g);if(p)return{ref:d(p)};let h=s[1].defId??s[1].schema.id??`schema${t.counter++}`;return s[1].defId=h,{defId:h,ref:`${d("__shared")}#/${o}/${h}`}}if(s[1]===i)return{ref:"#"};let u=`#/${o}/`,c=s[1].schema.id??`__schema${t.counter++}`;return{defId:c,ref:u+c}},r=s=>{if(s[1].schema.$ref)return;let o=s[1],{ref:l,defId:u}=a(s);o.def={...o.schema},u&&(o.defId=u);let c=o.schema;for(let p in c)delete c[p];c.$ref=l};if(t.cycles==="throw")for(let s of t.seen.entries()){let o=s[1];if(o.cycle)throw new Error(`Cycle detected: #/${o.cycle?.join("/")}/ -Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let s of t.seen.entries()){let o=s[1];if(e===s[0]){r(s);continue}if(t.external){let u=t.external.registry.get(s[0])?.id;if(e!==s[0]&&u){r(s);continue}}if(t.metadataRegistry.get(s[0])?.id){r(s);continue}if(o.cycle){r(s);continue}if(o.count>1&&t.reused==="ref"){r(s);continue}}}function Is(t,e){let i=t.seen.get(e);if(!i)throw new Error("Unprocessed schema. This is a bug in Zod.");let n=o=>{let l=t.seen.get(o);if(l.ref===null)return;let u=l.def??l.schema,c={...u},p=l.ref;if(l.ref=null,p){n(p);let h=t.seen.get(p),g=h.schema;if(g.$ref&&(t.target==="draft-07"||t.target==="draft-04"||t.target==="openapi-3.0")?(u.allOf=u.allOf??[],u.allOf.push(g)):Object.assign(u,g),Object.assign(u,c),o._zod.parent===p)for(let f in u)f==="$ref"||f==="allOf"||f in c||delete u[f];if(g.$ref&&h.def)for(let f in u)f==="$ref"||f==="allOf"||f in h.def&&JSON.stringify(u[f])===JSON.stringify(h.def[f])&&delete u[f]}let d=o._zod.parent;if(d&&d!==p){n(d);let h=t.seen.get(d);if(h?.schema.$ref&&(u.$ref=h.schema.$ref,h.def))for(let g in u)g==="$ref"||g==="allOf"||g in h.def&&JSON.stringify(u[g])===JSON.stringify(h.def[g])&&delete u[g]}t.override({zodSchema:o,jsonSchema:u,path:l.path??[]})};for(let o of[...t.seen.entries()].reverse())n(o[0]);let a={};if(t.target==="draft-2020-12"?a.$schema="https://json-schema.org/draft/2020-12/schema":t.target==="draft-07"?a.$schema="http://json-schema.org/draft-07/schema#":t.target==="draft-04"?a.$schema="http://json-schema.org/draft-04/schema#":t.target,t.external?.uri){let o=t.external.registry.get(e)?.id;if(!o)throw new Error("Schema is missing an `id` property");a.$id=t.external.uri(o)}Object.assign(a,i.def??i.schema);let r=t.metadataRegistry.get(e)?.id;r!==void 0&&a.id===r&&delete a.id;let s=t.external?.defs??{};for(let o of t.seen.entries()){let l=o[1];l.def&&l.defId&&(l.def.id===l.defId&&delete l.def.id,s[l.defId]=l.def)}t.external||Object.keys(s).length>0&&(t.target==="draft-2020-12"?a.$defs=s:a.definitions=s);try{let o=JSON.parse(JSON.stringify(a));return Object.defineProperty(o,"~standard",{value:{...e["~standard"],jsonSchema:{input:_s(e,"input",t.processors),output:_s(e,"output",t.processors)}},enumerable:!1,writable:!1}),o}catch{throw new Error("Error converting schema to JSON.")}}function ki(t,e){let i=e??{seen:new Set};if(i.seen.has(t))return!1;i.seen.add(t);let n=t._zod.def;if(n.type==="transform")return!0;if(n.type==="array")return ki(n.element,i);if(n.type==="set")return ki(n.valueType,i);if(n.type==="lazy")return ki(n.getter(),i);if(n.type==="promise"||n.type==="optional"||n.type==="nonoptional"||n.type==="nullable"||n.type==="readonly"||n.type==="default"||n.type==="prefault")return ki(n.innerType,i);if(n.type==="intersection")return ki(n.left,i)||ki(n.right,i);if(n.type==="record"||n.type==="map")return ki(n.keyType,i)||ki(n.valueType,i);if(n.type==="pipe")return t._zod.traits.has("$ZodCodec")?!0:ki(n.in,i)||ki(n.out,i);if(n.type==="object"){for(let a in n.shape)if(ki(n.shape[a],i))return!0;return!1}if(n.type==="union"){for(let a of n.options)if(ki(a,i))return!0;return!1}if(n.type==="tuple"){for(let a of n.items)if(ki(a,i))return!0;return!!(n.rest&&ki(n.rest,i))}return!1}var nj=(t,e={})=>i=>{let n=Hs({...i,processors:e});return qe(t,n),Rs(n,t),Is(n,t)},_s=(t,e,i={})=>n=>{let{libraryOptions:a,target:r}=n??{},s=Hs({...a??{},target:r,io:e,processors:i});return qe(t,s),Rs(s,t),Is(s,t)};var tD={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},pg=(t,e,i,n)=>{let a=i;a.type="string";let{minimum:r,maximum:s,format:o,patterns:l,contentEncoding:u}=t._zod.bag;if(typeof r=="number"&&(a.minLength=r),typeof s=="number"&&(a.maxLength=s),o&&(a.format=tD[o]??o,a.format===""&&delete a.format,o==="time"&&delete a.format),u&&(a.contentEncoding=u),l&&l.size>0){let c=[...l];c.length===1?a.pattern=c[0].source:c.length>1&&(a.allOf=[...c.map(p=>({...e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0"?{type:"string"}:{},pattern:p.source}))])}},dg=(t,e,i,n)=>{let a=i,{minimum:r,maximum:s,format:o,multipleOf:l,exclusiveMaximum:u,exclusiveMinimum:c}=t._zod.bag;typeof o=="string"&&o.includes("int")?a.type="integer":a.type="number";let p=typeof c=="number"&&c>=(r??Number.NEGATIVE_INFINITY),d=typeof u=="number"&&u<=(s??Number.POSITIVE_INFINITY),h=e.target==="draft-04"||e.target==="openapi-3.0";p?h?(a.minimum=c,a.exclusiveMinimum=!0):a.exclusiveMinimum=c:typeof r=="number"&&(a.minimum=r),d?h?(a.maximum=u,a.exclusiveMaximum=!0):a.exclusiveMaximum=u:typeof s=="number"&&(a.maximum=s),typeof l=="number"&&(a.multipleOf=l)},hg=(t,e,i,n)=>{i.type="boolean"},aj=(t,e,i,n)=>{if(e.unrepresentable==="throw")throw new Error("BigInt cannot be represented in JSON Schema")},rj=(t,e,i,n)=>{if(e.unrepresentable==="throw")throw new Error("Symbols cannot be represented in JSON Schema")},gg=(t,e,i,n)=>{e.target==="openapi-3.0"?(i.type="string",i.nullable=!0,i.enum=[null]):i.type="null"},sj=(t,e,i,n)=>{if(e.unrepresentable==="throw")throw new Error("Undefined cannot be represented in JSON Schema")},oj=(t,e,i,n)=>{if(e.unrepresentable==="throw")throw new Error("Void cannot be represented in JSON Schema")},mg=(t,e,i,n)=>{i.not={}},lj=(t,e,i,n)=>{},fg=(t,e,i,n)=>{},uj=(t,e,i,n)=>{if(e.unrepresentable==="throw")throw new Error("Date cannot be represented in JSON Schema")},wg=(t,e,i,n)=>{let a=t._zod.def,r=Cs(a.entries);r.every(s=>typeof s=="number")&&(i.type="number"),r.every(s=>typeof s=="string")&&(i.type="string"),i.enum=r},vg=(t,e,i,n)=>{let a=t._zod.def,r=[];for(let s of a.values)if(s===void 0){if(e.unrepresentable==="throw")throw new Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof s=="bigint"){if(e.unrepresentable==="throw")throw new Error("BigInt literals cannot be represented in JSON Schema");r.push(Number(s))}else r.push(s);if(r.length!==0)if(r.length===1){let s=r[0];i.type=s===null?"null":typeof s,e.target==="draft-04"||e.target==="openapi-3.0"?i.enum=[s]:i.const=s}else r.every(s=>typeof s=="number")&&(i.type="number"),r.every(s=>typeof s=="string")&&(i.type="string"),r.every(s=>typeof s=="boolean")&&(i.type="boolean"),r.every(s=>s===null)&&(i.type="null"),i.enum=r},cj=(t,e,i,n)=>{if(e.unrepresentable==="throw")throw new Error("NaN cannot be represented in JSON Schema")},pj=(t,e,i,n)=>{let a=i,r=t._zod.pattern;if(!r)throw new Error("Pattern not found in template literal");a.type="string",a.pattern=r.source},dj=(t,e,i,n)=>{let a=i,r={type:"string",format:"binary",contentEncoding:"binary"},{minimum:s,maximum:o,mime:l}=t._zod.bag;s!==void 0&&(r.minLength=s),o!==void 0&&(r.maxLength=o),l?l.length===1?(r.contentMediaType=l[0],Object.assign(a,r)):(Object.assign(a,r),a.anyOf=l.map(u=>({contentMediaType:u}))):Object.assign(a,r)},hj=(t,e,i,n)=>{i.type="boolean"},Cg=(t,e,i,n)=>{if(e.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")},gj=(t,e,i,n)=>{if(e.unrepresentable==="throw")throw new Error("Function types cannot be represented in JSON Schema")},Ag=(t,e,i,n)=>{if(e.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")},mj=(t,e,i,n)=>{if(e.unrepresentable==="throw")throw new Error("Map cannot be represented in JSON Schema")},fj=(t,e,i,n)=>{if(e.unrepresentable==="throw")throw new Error("Set cannot be represented in JSON Schema")},bg=(t,e,i,n)=>{let a=i,r=t._zod.def,{minimum:s,maximum:o}=t._zod.bag;typeof s=="number"&&(a.minItems=s),typeof o=="number"&&(a.maxItems=o),a.type="array",a.items=qe(r.element,e,{...n,path:[...n.path,"items"]})},yg=(t,e,i,n)=>{let a=i,r=t._zod.def;a.type="object",a.properties={};let s=r.shape;for(let u in s)a.properties[u]=qe(s[u],e,{...n,path:[...n.path,"properties",u]});let o=new Set(Object.keys(s)),l=new Set([...o].filter(u=>{let c=r.shape[u]._zod;return e.io==="input"?c.optin===void 0:c.optout===void 0}));l.size>0&&(a.required=Array.from(l)),r.catchall?._zod.def.type==="never"?a.additionalProperties=!1:r.catchall?r.catchall&&(a.additionalProperties=qe(r.catchall,e,{...n,path:[...n.path,"additionalProperties"]})):e.io==="output"&&(a.additionalProperties=!1)},Pg=(t,e,i,n)=>{let a=t._zod.def,r=a.inclusive===!1,s=a.options.map((o,l)=>qe(o,e,{...n,path:[...n.path,r?"oneOf":"anyOf",l]}));r?i.oneOf=s:i.anyOf=s},jg=(t,e,i,n)=>{let a=t._zod.def,r=qe(a.left,e,{...n,path:[...n.path,"allOf",0]}),s=qe(a.right,e,{...n,path:[...n.path,"allOf",1]}),o=u=>"allOf"in u&&Object.keys(u).length===1,l=[...o(r)?r.allOf:[r],...o(s)?s.allOf:[s]];i.allOf=l},wj=(t,e,i,n)=>{let a=i,r=t._zod.def;a.type="array";let s=e.target==="draft-2020-12"?"prefixItems":"items",o=e.target==="draft-2020-12"||e.target==="openapi-3.0"?"items":"additionalItems",l=r.items.map((d,h)=>qe(d,e,{...n,path:[...n.path,s,h]})),u=r.rest?qe(r.rest,e,{...n,path:[...n.path,o,...e.target==="openapi-3.0"?[r.items.length]:[]]}):null;e.target==="draft-2020-12"?(a.prefixItems=l,u&&(a.items=u)):e.target==="openapi-3.0"?(a.items={anyOf:l},u&&a.items.anyOf.push(u),a.minItems=l.length,u||(a.maxItems=l.length)):(a.items=l,u&&(a.additionalItems=u));let{minimum:c,maximum:p}=t._zod.bag;typeof c=="number"&&(a.minItems=c),typeof p=="number"&&(a.maxItems=p)},Sg=(t,e,i,n)=>{let a=i,r=t._zod.def;a.type="object";let s=r.keyType,l=s._zod.bag?.patterns;if(r.mode==="loose"&&l&&l.size>0){let c=qe(r.valueType,e,{...n,path:[...n.path,"patternProperties","*"]});a.patternProperties={};for(let p of l)a.patternProperties[p.source]=c}else(e.target==="draft-07"||e.target==="draft-2020-12")&&(a.propertyNames=qe(r.keyType,e,{...n,path:[...n.path,"propertyNames"]})),a.additionalProperties=qe(r.valueType,e,{...n,path:[...n.path,"additionalProperties"]});let u=s._zod.values;if(u){let c=[...u].filter(p=>typeof p=="string"||typeof p=="number");c.length>0&&(a.required=c)}},Og=(t,e,i,n)=>{let a=t._zod.def,r=qe(a.innerType,e,n),s=e.seen.get(t);e.target==="openapi-3.0"?(s.ref=a.innerType,i.nullable=!0):i.anyOf=[r,{type:"null"}]},xg=(t,e,i,n)=>{let a=t._zod.def;qe(a.innerType,e,n);let r=e.seen.get(t);r.ref=a.innerType},Tg=(t,e,i,n)=>{let a=t._zod.def;qe(a.innerType,e,n);let r=e.seen.get(t);r.ref=a.innerType,i.default=JSON.parse(JSON.stringify(a.defaultValue))},Mg=(t,e,i,n)=>{let a=t._zod.def;qe(a.innerType,e,n);let r=e.seen.get(t);r.ref=a.innerType,e.io==="input"&&(i._prefault=JSON.parse(JSON.stringify(a.defaultValue)))},Eg=(t,e,i,n)=>{let a=t._zod.def;qe(a.innerType,e,n);let r=e.seen.get(t);r.ref=a.innerType;let s;try{s=a.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}i.default=s},kg=(t,e,i,n)=>{let a=t._zod.def,r=a.in._zod.traits.has("$ZodTransform"),s=e.io==="input"?r?a.out:a.in:a.out;qe(s,e,n);let o=e.seen.get(t);o.ref=s},qg=(t,e,i,n)=>{let a=t._zod.def;qe(a.innerType,e,n);let r=e.seen.get(t);r.ref=a.innerType,i.readOnly=!0},vj=(t,e,i,n)=>{let a=t._zod.def;qe(a.innerType,e,n);let r=e.seen.get(t);r.ref=a.innerType},nu=(t,e,i,n)=>{let a=t._zod.def;qe(a.innerType,e,n);let r=e.seen.get(t);r.ref=a.innerType},Cj=(t,e,i,n)=>{let a=t._zod.innerType;qe(a,e,n);let r=e.seen.get(t);r.ref=a},tj={string:pg,number:dg,boolean:hg,bigint:aj,symbol:rj,null:gg,undefined:sj,void:oj,never:mg,any:lj,unknown:fg,date:uj,enum:wg,literal:vg,nan:cj,template_literal:pj,file:dj,success:hj,custom:Cg,function:gj,transform:Ag,map:mj,set:fj,array:bg,object:yg,union:Pg,intersection:jg,tuple:wj,record:Sg,nullable:Og,nonoptional:xg,default:Tg,prefault:Mg,catch:Eg,pipe:kg,readonly:qg,promise:vj,optional:nu,lazy:Cj};function _g(t,e){if("_idmap"in t){let n=t,a=Hs({...e,processors:tj}),r={};for(let l of n._idmap.entries()){let[u,c]=l;qe(c,a)}let s={},o={registry:n,uri:e?.uri,defs:r};a.external=o;for(let l of n._idmap.entries()){let[u,c]=l;Rs(a,c),s[u]=Is(a,c)}if(Object.keys(r).length>0){let l=a.target==="draft-2020-12"?"$defs":"definitions";s.__shared={[l]:r}}return{schemas:s}}let i=Hs({...e,processors:tj});return qe(t,i),Rs(i,t),Is(i,t)}var FD=j("ZodMiniType",(t,e)=>{if(!t._zod)throw new Error("Uninitialized schema in ZodMiniType.");ke.init(t,e),t.def=e,t.type=e.type,t.parse=(i,n)=>Nl(t,i,n,{callee:t.parse}),t.safeParse=(i,n)=>ha(t,i,n),t.parseAsync=async(i,n)=>Ul(t,i,n,{callee:t.parseAsync}),t.safeParseAsync=async(i,n)=>ga(t,i,n),t.check=(...i)=>t.clone({...e,checks:[...e.checks??[],...i.map(n=>typeof n=="function"?{_zod:{check:n,def:{check:"custom"},onattach:[]}}:n)]},{parent:!0}),t.with=t.check,t.clone=(i,n)=>Yi(t,i,n),t.brand=()=>t,t.register=((i,n)=>(i.add(t,n),t)),t.apply=i=>i(t)});var VD=j("ZodMiniObject",(t,e)=>{oh.init(t,e),FD.init(t,e),Oe(t,"shape",()=>e.shape)});function Hg(t,e){let i={type:"object",shape:t??{},...J(e)};return new VD(i)}function on(t){return!!t._zod}function wa(t){let e=Object.values(t);if(e.length===0)return Hg({});let i=e.every(on),n=e.every(a=>!on(a));if(i)return Hg(t);if(n)return vd(t);throw new Error("Mixed Zod versions detected in object shape.")}function Pt(t,e){return on(t)?ha(t,e):t.safeParse(e)}async function tu(t,e){return on(t)?await ga(t,e):await t.safeParseAsync(e)}function jt(t){if(!t)return;let e;if(on(t)?e=t._zod?.def?.shape:e=t.shape,!!e){if(typeof e=="function")try{return e()}catch{return}return e}}function gr(t){if(t){if(typeof t=="object"){let e=t,i=t;if(!e._def&&!i._zod){let n=Object.values(t);if(n.length>0&&n.every(a=>typeof a=="object"&&a!==null&&(a._def!==void 0||a._zod!==void 0||typeof a.parse=="function")))return wa(t)}}if(on(t)){let i=t._zod?.def;if(i&&(i.type==="object"||i.shape!==void 0))return t}else if(t.shape!==void 0)return t}}function au(t){if(t&&typeof t=="object"){if("message"in t&&typeof t.message=="string")return t.message;if("issues"in t&&Array.isArray(t.issues)&&t.issues.length>0){let e=t.issues[0];if(e&&typeof e=="object"&&"message"in e)return String(e.message)}try{return JSON.stringify(t)}catch{return String(t)}}return String(t)}function bj(t){return t.description}function yj(t){if(on(t))return t._zod?.def?.type==="optional";let e=t;return typeof t.isOptional=="function"?t.isOptional():e._def?.typeName==="ZodOptional"}function ru(t){if(on(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 i=t._def;if(i){if(i.value!==void 0)return i.value;if(Array.isArray(i.values)&&i.values.length>0)return i.values[0]}let n=t.value;if(n!==void 0)return n}var zs={};gd(zs,{ZodISODate:()=>jj,ZodISODateTime:()=>Pj,ZodISODuration:()=>Oj,ZodISOTime:()=>Sj,date:()=>Ig,datetime:()=>Rg,duration:()=>Dg,time:()=>zg});var Pj=j("ZodISODateTime",(t,e)=>{$P.init(t,e),Le.init(t,e)});function Rg(t){return QP(Pj,t)}var jj=j("ZodISODate",(t,e)=>{NP.init(t,e),Le.init(t,e)});function Ig(t){return YP(jj,t)}var Sj=j("ZodISOTime",(t,e)=>{UP.init(t,e),Le.init(t,e)});function zg(t){return XP(Sj,t)}var Oj=j("ZodISODuration",(t,e)=>{LP.init(t,e),Le.init(t,e)});function Dg(t){return ej(Oj,t)}var iG=(t,e)=>{$l.init(t,e),t.name="ZodError",Object.defineProperties(t,{format:{value:i=>Hy(t,i)},flatten:{value:i=>_y(t,i)},addIssue:{value:i=>{t.issues.push(i),t.message=JSON.stringify(t.issues,cr,2)}},addIssues:{value:i=>{t.issues.push(...i),t.message=JSON.stringify(t.issues,cr,2)}},isEmpty:{get(){return t.issues.length===0}}})};var Xi=j("ZodError",iG,{Parent:Error});var xj=js(Xi),Tj=Ss(Xi),Mj=Os(Xi),Ej=xs(Xi),kj=Ry(Xi),qj=Iy(Xi),_j=zy(Xi),Hj=Dy(Xi),Rj=Gy(Xi),Ij=$y(Xi),zj=Ny(Xi),Dj=Uy(Xi);var Gj=new WeakMap;function Ds(t,e,i){let n=Object.getPrototypeOf(t),a=Gj.get(n);if(a||(a=new Set,Gj.set(n,a)),!a.has(e)){a.add(e);for(let r in i){let s=i[r];Object.defineProperty(n,r,{configurable:!0,enumerable:!1,get(){let o=s.bind(this);return Object.defineProperty(this,r,{configurable:!0,writable:!0,enumerable:!0,value:o}),o},set(o){Object.defineProperty(this,r,{configurable:!0,writable:!0,enumerable:!0,value:o})}})}}}var Fe=j("ZodType",(t,e)=>(ke.init(t,e),Object.assign(t["~standard"],{jsonSchema:{input:_s(t,"input"),output:_s(t,"output")}}),t.toJSONSchema=nj(t,{}),t.def=e,t.type=e.type,Object.defineProperty(t,"_def",{value:e}),t.parse=(i,n)=>xj(t,i,n,{callee:t.parse}),t.safeParse=(i,n)=>Mj(t,i,n),t.parseAsync=async(i,n)=>Tj(t,i,n,{callee:t.parseAsync}),t.safeParseAsync=async(i,n)=>Ej(t,i,n),t.spa=t.safeParseAsync,t.encode=(i,n)=>kj(t,i,n),t.decode=(i,n)=>qj(t,i,n),t.encodeAsync=async(i,n)=>_j(t,i,n),t.decodeAsync=async(i,n)=>Hj(t,i,n),t.safeEncode=(i,n)=>Rj(t,i,n),t.safeDecode=(i,n)=>Ij(t,i,n),t.safeEncodeAsync=async(i,n)=>zj(t,i,n),t.safeDecodeAsync=async(i,n)=>Dj(t,i,n),Ds(t,"ZodType",{check(...i){let n=this.def;return this.clone(he.mergeDefs(n,{checks:[...n.checks??[],...i.map(a=>typeof a=="function"?{_zod:{check:a,def:{check:"custom"},onattach:[]}}:a)]}),{parent:!0})},with(...i){return this.check(...i)},clone(i,n){return Yi(this,i,n)},brand(){return this},register(i,n){return i.add(this,n),this},refine(i,n){return this.check(BG(i,n))},superRefine(i,n){return this.check(FG(i,n))},overwrite(i){return this.check(yt(i))},optional(){return Be(this)},exactOptional(){return _G(this)},nullable(){return Lj(this)},nullish(){return Be(Lj(this))},nonoptional(i){return GG(this,i)},array(){return ge(this)},or(i){return $e([this,i])},and(i){return ou(this,i)},transform(i){return Wj(this,Kj(i))},default(i){return IG(this,i)},prefault(i){return DG(this,i)},catch(i){return NG(this,i)},pipe(i){return Wj(this,i)},readonly(){return WG(this)},describe(i){let n=this.clone();return ma.add(n,{description:i}),n},meta(...i){if(i.length===0)return ma.get(this);let n=this.clone();return ma.add(n,i[0]),n},isOptional(){return this.safeParse(void 0).success},isNullable(){return this.safeParse(null).success},apply(i){return i(this)}}),Object.defineProperty(t,"description",{get(){return ma.get(t)?.description},configurable:!0}),t)),Bj=j("_ZodString",(t,e)=>{Es.init(t,e),Fe.init(t,e),t._zod.processJSONSchema=(n,a,r)=>pg(t,n,a,r);let i=t._zod.bag;t.format=i.format??null,t.minLength=i.minimum??null,t.maxLength=i.maximum??null,Ds(t,"_ZodString",{regex(...n){return this.check(Qh(...n))},includes(...n){return this.check(eg(...n))},startsWith(...n){return this.check(ig(...n))},endsWith(...n){return this.check(ng(...n))},min(...n){return this.check(hr(...n))},max(...n){return this.check(eu(...n))},length(...n){return this.check(iu(...n))},nonempty(...n){return this.check(hr(1,...n))},lowercase(n){return this.check(Yh(n))},uppercase(n){return this.check(Xh(n))},trim(){return this.check(ag())},normalize(...n){return this.check(tg(...n))},toLowerCase(){return this.check(rg())},toUpperCase(){return this.check(sg())},slugify(){return this.check(og())}})}),tG=j("ZodString",(t,e)=>{Es.init(t,e),Bj.init(t,e),t.email=i=>t.check(jh(aG,i)),t.url=i=>t.check(Mh(rG,i)),t.jwt=i=>t.check(Wh(AG,i)),t.emoji=i=>t.check(Eh(sG,i)),t.guid=i=>t.check(Kl($j,i)),t.uuid=i=>t.check(Sh(su,i)),t.uuidv4=i=>t.check(Oh(su,i)),t.uuidv6=i=>t.check(xh(su,i)),t.uuidv7=i=>t.check(Th(su,i)),t.nanoid=i=>t.check(kh(oG,i)),t.guid=i=>t.check(Kl($j,i)),t.cuid=i=>t.check(qh(lG,i)),t.cuid2=i=>t.check(_h(uG,i)),t.ulid=i=>t.check(Hh(cG,i)),t.base64=i=>t.check(Nh(wG,i)),t.base64url=i=>t.check(Uh(vG,i)),t.xid=i=>t.check(Rh(pG,i)),t.ksuid=i=>t.check(Ih(dG,i)),t.ipv4=i=>t.check(zh(hG,i)),t.ipv6=i=>t.check(Dh(gG,i)),t.cidrv4=i=>t.check(Gh(mG,i)),t.cidrv6=i=>t.check($h(fG,i)),t.e164=i=>t.check(Lh(CG,i)),t.datetime=i=>t.check(Rg(i)),t.date=i=>t.check(Ig(i)),t.time=i=>t.check(zg(i)),t.duration=i=>t.check(Dg(i))});function P(t){return Ph(tG,t)}var Le=j("ZodStringFormat",(t,e)=>{Ie.init(t,e),Bj.init(t,e)}),aG=j("ZodEmail",(t,e)=>{Dd.init(t,e),Le.init(t,e)});var $j=j("ZodGUID",(t,e)=>{Id.init(t,e),Le.init(t,e)});var su=j("ZodUUID",(t,e)=>{zd.init(t,e),Le.init(t,e)});var rG=j("ZodURL",(t,e)=>{Gd.init(t,e),Le.init(t,e)});var sG=j("ZodEmoji",(t,e)=>{$d.init(t,e),Le.init(t,e)});var oG=j("ZodNanoID",(t,e)=>{Nd.init(t,e),Le.init(t,e)});var lG=j("ZodCUID",(t,e)=>{Ud.init(t,e),Le.init(t,e)});var uG=j("ZodCUID2",(t,e)=>{Ld.init(t,e),Le.init(t,e)});var cG=j("ZodULID",(t,e)=>{Wd.init(t,e),Le.init(t,e)});var pG=j("ZodXID",(t,e)=>{Bd.init(t,e),Le.init(t,e)});var dG=j("ZodKSUID",(t,e)=>{Fd.init(t,e),Le.init(t,e)});var hG=j("ZodIPv4",(t,e)=>{Vd.init(t,e),Le.init(t,e)});var gG=j("ZodIPv6",(t,e)=>{Jd.init(t,e),Le.init(t,e)});var mG=j("ZodCIDRv4",(t,e)=>{Zd.init(t,e),Le.init(t,e)});var fG=j("ZodCIDRv6",(t,e)=>{Kd.init(t,e),Le.init(t,e)});var wG=j("ZodBase64",(t,e)=>{Qd.init(t,e),Le.init(t,e)});var vG=j("ZodBase64URL",(t,e)=>{Yd.init(t,e),Le.init(t,e)});var CG=j("ZodE164",(t,e)=>{Xd.init(t,e),Le.init(t,e)});var AG=j("ZodJWT",(t,e)=>{eh.init(t,e),Le.init(t,e)});var Fj=j("ZodNumber",(t,e)=>{Fl.init(t,e),Fe.init(t,e),t._zod.processJSONSchema=(n,a,r)=>dg(t,n,a,r),Ds(t,"ZodNumber",{gt(n,a){return this.check(Yl(n,a))},gte(n,a){return this.check(qs(n,a))},min(n,a){return this.check(qs(n,a))},lt(n,a){return this.check(Ql(n,a))},lte(n,a){return this.check(ks(n,a))},max(n,a){return this.check(ks(n,a))},int(n){return this.check(Nj(n))},safe(n){return this.check(Nj(n))},positive(n){return this.check(Yl(0,n))},nonnegative(n){return this.check(qs(0,n))},negative(n){return this.check(Ql(0,n))},nonpositive(n){return this.check(ks(0,n))},multipleOf(n,a){return this.check(Xl(n,a))},step(n,a){return this.check(Xl(n,a))},finite(){return this}});let i=t._zod.bag;t.minValue=Math.max(i.minimum??Number.NEGATIVE_INFINITY,i.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,t.maxValue=Math.min(i.maximum??Number.POSITIVE_INFINITY,i.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,t.isInt=(i.format??"").includes("int")||Number.isSafeInteger(i.multipleOf??.5),t.isFinite=!0,t.format=i.format??null});function Te(t){return Bh(Fj,t)}var bG=j("ZodNumberFormat",(t,e)=>{ih.init(t,e),Fj.init(t,e)});function Nj(t){return Fh(bG,t)}var yG=j("ZodBoolean",(t,e)=>{nh.init(t,e),Fe.init(t,e),t._zod.processJSONSchema=(i,n,a)=>hg(t,i,n,a)});function hi(t){return Vh(yG,t)}var PG=j("ZodNull",(t,e)=>{th.init(t,e),Fe.init(t,e),t._zod.processJSONSchema=(i,n,a)=>gg(t,i,n,a)});function Vj(t){return Jh(PG,t)}var jG=j("ZodUnknown",(t,e)=>{ah.init(t,e),Fe.init(t,e),t._zod.processJSONSchema=(i,n,a)=>fg(t,i,n,a)});function We(){return Zh(jG)}var SG=j("ZodNever",(t,e)=>{rh.init(t,e),Fe.init(t,e),t._zod.processJSONSchema=(i,n,a)=>mg(t,i,n,a)});function OG(t){return Kh(SG,t)}var xG=j("ZodArray",(t,e)=>{sh.init(t,e),Fe.init(t,e),t._zod.processJSONSchema=(i,n,a)=>bg(t,i,n,a),t.element=e.element,Ds(t,"ZodArray",{min(i,n){return this.check(hr(i,n))},nonempty(i){return this.check(hr(1,i))},max(i,n){return this.check(eu(i,n))},length(i,n){return this.check(iu(i,n))},unwrap(){return this.element}})});function ge(t,e){return ij(xG,t,e)}var Jj=j("ZodObject",(t,e)=>{VP.init(t,e),Fe.init(t,e),t._zod.processJSONSchema=(i,n,a)=>yg(t,i,n,a),he.defineLazy(t,"shape",()=>e.shape),Ds(t,"ZodObject",{keyof(){return Gi(Object.keys(this._zod.def.shape))},catchall(i){return this.clone({...this._zod.def,catchall:i})},passthrough(){return this.clone({...this._zod.def,catchall:We()})},loose(){return this.clone({...this._zod.def,catchall:We()})},strict(){return this.clone({...this._zod.def,catchall:OG()})},strip(){return this.clone({...this._zod.def,catchall:void 0})},extend(i){return he.extend(this,i)},safeExtend(i){return he.safeExtend(this,i)},merge(i){return he.merge(this,i)},pick(i){return he.pick(this,i)},omit(i){return he.omit(this,i)},partial(...i){return he.partial(lu,this,i[0])},required(...i){return he.required(Qj,this,i[0])}})});function D(t,e){let i={type:"object",shape:t??{},...he.normalizeParams(e)};return new Jj(i)}function qi(t,e){return new Jj({type:"object",shape:t,catchall:We(),...he.normalizeParams(e)})}var Zj=j("ZodUnion",(t,e)=>{Vl.init(t,e),Fe.init(t,e),t._zod.processJSONSchema=(i,n,a)=>Pg(t,i,n,a),t.options=e.options});function $e(t,e){return new Zj({type:"union",options:t,...he.normalizeParams(e)})}var TG=j("ZodDiscriminatedUnion",(t,e)=>{Zj.init(t,e),lh.init(t,e)});function $g(t,e,i){return new TG({type:"union",options:e,discriminator:t,...he.normalizeParams(i)})}var MG=j("ZodIntersection",(t,e)=>{uh.init(t,e),Fe.init(t,e),t._zod.processJSONSchema=(i,n,a)=>jg(t,i,n,a)});function ou(t,e){return new MG({type:"intersection",left:t,right:e})}var Uj=j("ZodRecord",(t,e)=>{ch.init(t,e),Fe.init(t,e),t._zod.processJSONSchema=(i,n,a)=>Sg(t,i,n,a),t.keyType=e.keyType,t.valueType=e.valueType});function ze(t,e,i){return!e||!e._zod?new Uj({type:"record",keyType:P(),valueType:t,...he.normalizeParams(e)}):new Uj({type:"record",keyType:t,valueType:e,...he.normalizeParams(i)})}var Gg=j("ZodEnum",(t,e)=>{ph.init(t,e),Fe.init(t,e),t._zod.processJSONSchema=(n,a,r)=>wg(t,n,a,r),t.enum=e.entries,t.options=Object.values(e.entries);let i=new Set(Object.keys(e.entries));t.extract=(n,a)=>{let r={};for(let s of n)if(i.has(s))r[s]=e.entries[s];else throw new Error(`Key ${s} not found in enum`);return new Gg({...e,checks:[],...he.normalizeParams(a),entries:r})},t.exclude=(n,a)=>{let r={...e.entries};for(let s of n)if(i.has(s))delete r[s];else throw new Error(`Key ${s} not found in enum`);return new Gg({...e,checks:[],...he.normalizeParams(a),entries:r})}});function Gi(t,e){let i=Array.isArray(t)?Object.fromEntries(t.map(n=>[n,n])):t;return new Gg({type:"enum",entries:i,...he.normalizeParams(e)})}var EG=j("ZodLiteral",(t,e)=>{dh.init(t,e),Fe.init(t,e),t._zod.processJSONSchema=(i,n,a)=>vg(t,i,n,a),t.values=new Set(e.values),Object.defineProperty(t,"value",{get(){if(e.values.length>1)throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");return e.values[0]}})});function W(t,e){return new EG({type:"literal",values:Array.isArray(t)?t:[t],...he.normalizeParams(e)})}var kG=j("ZodTransform",(t,e)=>{hh.init(t,e),Fe.init(t,e),t._zod.processJSONSchema=(i,n,a)=>Ag(t,i,n,a),t._zod.parse=(i,n)=>{if(n.direction==="backward")throw new lr(t.constructor.name);i.addIssue=r=>{if(typeof r=="string")i.issues.push(he.issue(r,i.value,e));else{let s=r;s.fatal&&(s.continue=!1),s.code??(s.code="custom"),s.input??(s.input=i.value),s.inst??(s.inst=t),i.issues.push(he.issue(s))}};let a=e.transform(i.value,i);return a instanceof Promise?a.then(r=>(i.value=r,i.fallback=!0,i)):(i.value=a,i.fallback=!0,i)}});function Kj(t){return new kG({type:"transform",transform:t})}var lu=j("ZodOptional",(t,e)=>{Jl.init(t,e),Fe.init(t,e),t._zod.processJSONSchema=(i,n,a)=>nu(t,i,n,a),t.unwrap=()=>t._zod.def.innerType});function Be(t){return new lu({type:"optional",innerType:t})}var qG=j("ZodExactOptional",(t,e)=>{gh.init(t,e),Fe.init(t,e),t._zod.processJSONSchema=(i,n,a)=>nu(t,i,n,a),t.unwrap=()=>t._zod.def.innerType});function _G(t){return new qG({type:"optional",innerType:t})}var HG=j("ZodNullable",(t,e)=>{mh.init(t,e),Fe.init(t,e),t._zod.processJSONSchema=(i,n,a)=>Og(t,i,n,a),t.unwrap=()=>t._zod.def.innerType});function Lj(t){return new HG({type:"nullable",innerType:t})}var RG=j("ZodDefault",(t,e)=>{fh.init(t,e),Fe.init(t,e),t._zod.processJSONSchema=(i,n,a)=>Tg(t,i,n,a),t.unwrap=()=>t._zod.def.innerType,t.removeDefault=t.unwrap});function IG(t,e){return new RG({type:"default",innerType:t,get defaultValue(){return typeof e=="function"?e():he.shallowClone(e)}})}var zG=j("ZodPrefault",(t,e)=>{wh.init(t,e),Fe.init(t,e),t._zod.processJSONSchema=(i,n,a)=>Mg(t,i,n,a),t.unwrap=()=>t._zod.def.innerType});function DG(t,e){return new zG({type:"prefault",innerType:t,get defaultValue(){return typeof e=="function"?e():he.shallowClone(e)}})}var Qj=j("ZodNonOptional",(t,e)=>{vh.init(t,e),Fe.init(t,e),t._zod.processJSONSchema=(i,n,a)=>xg(t,i,n,a),t.unwrap=()=>t._zod.def.innerType});function GG(t,e){return new Qj({type:"nonoptional",innerType:t,...he.normalizeParams(e)})}var $G=j("ZodCatch",(t,e)=>{Ch.init(t,e),Fe.init(t,e),t._zod.processJSONSchema=(i,n,a)=>Eg(t,i,n,a),t.unwrap=()=>t._zod.def.innerType,t.removeCatch=t.unwrap});function NG(t,e){return new $G({type:"catch",innerType:t,catchValue:typeof e=="function"?e:()=>e})}var Yj=j("ZodPipe",(t,e)=>{Zl.init(t,e),Fe.init(t,e),t._zod.processJSONSchema=(i,n,a)=>kg(t,i,n,a),t.in=e.in,t.out=e.out});function Wj(t,e){return new Yj({type:"pipe",in:t,out:e})}var UG=j("ZodPreprocess",(t,e)=>{Yj.init(t,e),JP.init(t,e)}),LG=j("ZodReadonly",(t,e)=>{Ah.init(t,e),Fe.init(t,e),t._zod.processJSONSchema=(i,n,a)=>qg(t,i,n,a),t.unwrap=()=>t._zod.def.innerType});function WG(t){return new LG({type:"readonly",innerType:t})}var Xj=j("ZodCustom",(t,e)=>{bh.init(t,e),Fe.init(t,e),t._zod.processJSONSchema=(i,n,a)=>Cg(t,i,n,a)});function eS(t,e){return lg(Xj,t??(()=>!0),e)}function BG(t,e={}){return ug(Xj,t,e)}function FG(t,e){return cg(t,e)}function Ng(t,e){return new UG({type:"pipe",in:Kj(t),out:e})}Qi(ZP());var Lg="2025-11-25";var iS=[Lg,"2025-06-18","2025-03-26","2024-11-05","2024-10-07"],St="io.modelcontextprotocol/related-task",cu="2.0",si=eS(t=>t!==null&&(typeof t=="object"||typeof t=="function")),nS=$e([P(),Te().int()]),tS=P(),Xee=qi({ttl:Te().optional(),pollInterval:Te().optional()}),VG=D({ttl:Te().optional()}),JG=D({taskId:P()}),Wg=qi({progressToken:nS.optional(),[St]:JG.optional()}),en=D({_meta:Wg.optional()}),Gs=en.extend({task:VG.optional()}),aS=t=>Gs.safeParse(t).success,Ai=D({method:P(),params:en.loose().optional()}),ln=D({_meta:Wg.optional()}),un=D({method:P(),params:ln.loose().optional()}),bi=qi({_meta:Wg.optional()}),pu=$e([P(),Te().int()]),rS=D({jsonrpc:W(cu),id:pu,...Ai.shape}).strict(),Bg=t=>rS.safeParse(t).success,sS=D({jsonrpc:W(cu),...un.shape}).strict(),oS=t=>sS.safeParse(t).success,Fg=D({jsonrpc:W(cu),id:pu,result:bi}).strict(),$s=t=>Fg.safeParse(t).success;var V;(function(t){t[t.ConnectionClosed=-32e3]="ConnectionClosed",t[t.RequestTimeout=-32001]="RequestTimeout",t[t.ParseError=-32700]="ParseError",t[t.InvalidRequest=-32600]="InvalidRequest",t[t.MethodNotFound=-32601]="MethodNotFound",t[t.InvalidParams=-32602]="InvalidParams",t[t.InternalError=-32603]="InternalError",t[t.UrlElicitationRequired=-32042]="UrlElicitationRequired"})(V||(V={}));var Vg=D({jsonrpc:W(cu),id:pu.optional(),error:D({code:Te().int(),message:P(),data:We().optional()})}).strict();var lS=t=>Vg.safeParse(t).success;var uS=$e([rS,sS,Fg,Vg]),eie=$e([Fg,Vg]),du=bi.strict(),ZG=ln.extend({requestId:pu.optional(),reason:P().optional()}),hu=un.extend({method:W("notifications/cancelled"),params:ZG}),KG=D({src:P(),mimeType:P().optional(),sizes:ge(P()).optional(),theme:Gi(["light","dark"]).optional()}),Ns=D({icons:ge(KG).optional()}),mr=D({name:P(),title:P().optional()}),cS=mr.extend({...mr.shape,...Ns.shape,version:P(),websiteUrl:P().optional(),description:P().optional()}),QG=ou(D({applyDefaults:hi().optional()}),ze(P(),We())),YG=Ng(t=>t&&typeof t=="object"&&!Array.isArray(t)&&Object.keys(t).length===0?{form:{}}:t,ou(D({form:QG.optional(),url:si.optional()}),ze(P(),We()).optional())),XG=qi({list:si.optional(),cancel:si.optional(),requests:qi({sampling:qi({createMessage:si.optional()}).optional(),elicitation:qi({create:si.optional()}).optional()}).optional()}),e1=qi({list:si.optional(),cancel:si.optional(),requests:qi({tools:qi({call:si.optional()}).optional()}).optional()}),i1=D({experimental:ze(P(),si).optional(),sampling:D({context:si.optional(),tools:si.optional()}).optional(),elicitation:YG.optional(),roots:D({listChanged:hi().optional()}).optional(),tasks:XG.optional(),extensions:ze(P(),si).optional()}),n1=en.extend({protocolVersion:P(),capabilities:i1,clientInfo:cS}),Jg=Ai.extend({method:W("initialize"),params:n1});var t1=D({experimental:ze(P(),si).optional(),logging:si.optional(),completions:si.optional(),prompts:D({listChanged:hi().optional()}).optional(),resources:D({subscribe:hi().optional(),listChanged:hi().optional()}).optional(),tools:D({listChanged:hi().optional()}).optional(),tasks:e1.optional(),extensions:ze(P(),si).optional()}),a1=bi.extend({protocolVersion:P(),capabilities:t1,serverInfo:cS,instructions:P().optional()}),Zg=un.extend({method:W("notifications/initialized"),params:ln.optional()});var gu=Ai.extend({method:W("ping"),params:en.optional()}),r1=D({progress:Te(),total:Be(Te()),message:Be(P())}),s1=D({...ln.shape,...r1.shape,progressToken:nS}),mu=un.extend({method:W("notifications/progress"),params:s1}),o1=en.extend({cursor:tS.optional()}),Us=Ai.extend({params:o1.optional()}),Ls=bi.extend({nextCursor:tS.optional()}),l1=Gi(["working","input_required","completed","failed","cancelled"]),Ws=D({taskId:P(),status:l1,ttl:$e([Te(),Vj()]),createdAt:P(),lastUpdatedAt:P(),pollInterval:Be(Te()),statusMessage:Be(P())}),fr=bi.extend({task:Ws}),u1=ln.merge(Ws),Bs=un.extend({method:W("notifications/tasks/status"),params:u1}),fu=Ai.extend({method:W("tasks/get"),params:en.extend({taskId:P()})}),wu=bi.merge(Ws),vu=Ai.extend({method:W("tasks/result"),params:en.extend({taskId:P()})}),iie=bi.loose(),Cu=Us.extend({method:W("tasks/list")}),Au=Ls.extend({tasks:ge(Ws)}),bu=Ai.extend({method:W("tasks/cancel"),params:en.extend({taskId:P()})}),pS=bi.merge(Ws),dS=D({uri:P(),mimeType:Be(P()),_meta:ze(P(),We()).optional()}),hS=dS.extend({text:P()}),Kg=P().refine(t=>{try{return atob(t),!0}catch{return!1}},{message:"Invalid Base64 string"}),gS=dS.extend({blob:Kg}),Fs=Gi(["user","assistant"]),wr=D({audience:ge(Fs).optional(),priority:Te().min(0).max(1).optional(),lastModified:zs.datetime({offset:!0}).optional()}),mS=D({...mr.shape,...Ns.shape,uri:P(),description:Be(P()),mimeType:Be(P()),size:Be(Te()),annotations:wr.optional(),_meta:Be(qi({}))}),c1=D({...mr.shape,...Ns.shape,uriTemplate:P(),description:Be(P()),mimeType:Be(P()),annotations:wr.optional(),_meta:Be(qi({}))}),yu=Us.extend({method:W("resources/list")}),p1=Ls.extend({resources:ge(mS)}),Pu=Us.extend({method:W("resources/templates/list")}),d1=Ls.extend({resourceTemplates:ge(c1)}),Qg=en.extend({uri:P()}),h1=Qg,ju=Ai.extend({method:W("resources/read"),params:h1}),g1=bi.extend({contents:ge($e([hS,gS]))}),m1=un.extend({method:W("notifications/resources/list_changed"),params:ln.optional()}),f1=Qg,w1=Ai.extend({method:W("resources/subscribe"),params:f1}),v1=Qg,C1=Ai.extend({method:W("resources/unsubscribe"),params:v1}),A1=ln.extend({uri:P()}),b1=un.extend({method:W("notifications/resources/updated"),params:A1}),y1=D({name:P(),description:Be(P()),required:Be(hi())}),P1=D({...mr.shape,...Ns.shape,description:Be(P()),arguments:Be(ge(y1)),_meta:Be(qi({}))}),Su=Us.extend({method:W("prompts/list")}),j1=Ls.extend({prompts:ge(P1)}),S1=en.extend({name:P(),arguments:ze(P(),P()).optional()}),Ou=Ai.extend({method:W("prompts/get"),params:S1}),Yg=D({type:W("text"),text:P(),annotations:wr.optional(),_meta:ze(P(),We()).optional()}),Xg=D({type:W("image"),data:Kg,mimeType:P(),annotations:wr.optional(),_meta:ze(P(),We()).optional()}),em=D({type:W("audio"),data:Kg,mimeType:P(),annotations:wr.optional(),_meta:ze(P(),We()).optional()}),O1=D({type:W("tool_use"),name:P(),id:P(),input:ze(P(),We()),_meta:ze(P(),We()).optional()}),x1=D({type:W("resource"),resource:$e([hS,gS]),annotations:wr.optional(),_meta:ze(P(),We()).optional()}),T1=mS.extend({type:W("resource_link")}),im=$e([Yg,Xg,em,T1,x1]),M1=D({role:Fs,content:im}),E1=bi.extend({description:P().optional(),messages:ge(M1)}),k1=un.extend({method:W("notifications/prompts/list_changed"),params:ln.optional()}),q1=D({title:P().optional(),readOnlyHint:hi().optional(),destructiveHint:hi().optional(),idempotentHint:hi().optional(),openWorldHint:hi().optional()}),_1=D({taskSupport:Gi(["required","optional","forbidden"]).optional()}),fS=D({...mr.shape,...Ns.shape,description:P().optional(),inputSchema:D({type:W("object"),properties:ze(P(),si).optional(),required:ge(P()).optional()}).catchall(We()),outputSchema:D({type:W("object"),properties:ze(P(),si).optional(),required:ge(P()).optional()}).catchall(We()).optional(),annotations:q1.optional(),execution:_1.optional(),_meta:ze(P(),We()).optional()}),xu=Us.extend({method:W("tools/list")}),H1=Ls.extend({tools:ge(fS)}),Tu=bi.extend({content:ge(im).default([]),structuredContent:ze(P(),We()).optional(),isError:hi().optional()}),nie=Tu.or(bi.extend({toolResult:We()})),R1=Gs.extend({name:P(),arguments:ze(P(),We()).optional()}),vr=Ai.extend({method:W("tools/call"),params:R1}),I1=un.extend({method:W("notifications/tools/list_changed"),params:ln.optional()}),tie=D({autoRefresh:hi().default(!0),debounceMs:Te().int().nonnegative().default(300)}),Vs=Gi(["debug","info","notice","warning","error","critical","alert","emergency"]),z1=en.extend({level:Vs}),nm=Ai.extend({method:W("logging/setLevel"),params:z1}),D1=ln.extend({level:Vs,logger:P().optional(),data:We()}),G1=un.extend({method:W("notifications/message"),params:D1}),$1=D({name:P().optional()}),N1=D({hints:ge($1).optional(),costPriority:Te().min(0).max(1).optional(),speedPriority:Te().min(0).max(1).optional(),intelligencePriority:Te().min(0).max(1).optional()}),U1=D({mode:Gi(["auto","required","none"]).optional()}),L1=D({type:W("tool_result"),toolUseId:P().describe("The unique identifier for the corresponding tool call."),content:ge(im).default([]),structuredContent:D({}).loose().optional(),isError:hi().optional(),_meta:ze(P(),We()).optional()}),W1=$g("type",[Yg,Xg,em]),uu=$g("type",[Yg,Xg,em,O1,L1]),B1=D({role:Fs,content:$e([uu,ge(uu)]),_meta:ze(P(),We()).optional()}),F1=Gs.extend({messages:ge(B1),modelPreferences:N1.optional(),systemPrompt:P().optional(),includeContext:Gi(["none","thisServer","allServers"]).optional(),temperature:Te().optional(),maxTokens:Te().int(),stopSequences:ge(P()).optional(),metadata:si.optional(),tools:ge(fS).optional(),toolChoice:U1.optional()}),V1=Ai.extend({method:W("sampling/createMessage"),params:F1}),Js=bi.extend({model:P(),stopReason:Be(Gi(["endTurn","stopSequence","maxTokens"]).or(P())),role:Fs,content:W1}),tm=bi.extend({model:P(),stopReason:Be(Gi(["endTurn","stopSequence","maxTokens","toolUse"]).or(P())),role:Fs,content:$e([uu,ge(uu)])}),J1=D({type:W("boolean"),title:P().optional(),description:P().optional(),default:hi().optional()}),Z1=D({type:W("string"),title:P().optional(),description:P().optional(),minLength:Te().optional(),maxLength:Te().optional(),format:Gi(["email","uri","date","date-time"]).optional(),default:P().optional()}),K1=D({type:Gi(["number","integer"]),title:P().optional(),description:P().optional(),minimum:Te().optional(),maximum:Te().optional(),default:Te().optional()}),Q1=D({type:W("string"),title:P().optional(),description:P().optional(),enum:ge(P()),default:P().optional()}),Y1=D({type:W("string"),title:P().optional(),description:P().optional(),oneOf:ge(D({const:P(),title:P()})),default:P().optional()}),X1=D({type:W("string"),title:P().optional(),description:P().optional(),enum:ge(P()),enumNames:ge(P()).optional(),default:P().optional()}),e$=$e([Q1,Y1]),i$=D({type:W("array"),title:P().optional(),description:P().optional(),minItems:Te().optional(),maxItems:Te().optional(),items:D({type:W("string"),enum:ge(P())}),default:ge(P()).optional()}),n$=D({type:W("array"),title:P().optional(),description:P().optional(),minItems:Te().optional(),maxItems:Te().optional(),items:D({anyOf:ge(D({const:P(),title:P()}))}),default:ge(P()).optional()}),t$=$e([i$,n$]),a$=$e([X1,e$,t$]),r$=$e([a$,J1,Z1,K1]),s$=Gs.extend({mode:W("form").optional(),message:P(),requestedSchema:D({type:W("object"),properties:ze(P(),r$),required:ge(P()).optional()})}),o$=Gs.extend({mode:W("url"),message:P(),elicitationId:P(),url:P().url()}),l$=$e([s$,o$]),u$=Ai.extend({method:W("elicitation/create"),params:l$}),c$=ln.extend({elicitationId:P()}),p$=un.extend({method:W("notifications/elicitation/complete"),params:c$}),Cr=bi.extend({action:Gi(["accept","decline","cancel"]),content:Ng(t=>t===null?void 0:t,ze(P(),$e([P(),Te(),hi(),ge(P())])).optional())}),d$=D({type:W("ref/resource"),uri:P()});var h$=D({type:W("ref/prompt"),name:P()}),g$=en.extend({ref:$e([h$,d$]),argument:D({name:P(),value:P()}),context:D({arguments:ze(P(),P()).optional()}).optional()}),Mu=Ai.extend({method:W("completion/complete"),params:g$});function wS(t){if(t.params.ref.type!=="ref/prompt")throw new TypeError(`Expected CompleteRequestPrompt, but got ${t.params.ref.type}`)}function vS(t){if(t.params.ref.type!=="ref/resource")throw new TypeError(`Expected CompleteRequestResourceTemplate, but got ${t.params.ref.type}`)}var m$=bi.extend({completion:qi({values:ge(P()).max(100),total:Be(Te().int()),hasMore:Be(hi())})}),f$=D({uri:P().startsWith("file://"),name:P().optional(),_meta:ze(P(),We()).optional()}),w$=Ai.extend({method:W("roots/list"),params:en.optional()}),am=bi.extend({roots:ge(f$)}),v$=un.extend({method:W("notifications/roots/list_changed"),params:ln.optional()}),aie=$e([gu,Jg,Mu,nm,Ou,Su,yu,Pu,ju,w1,C1,vr,xu,fu,vu,Cu,bu]),rie=$e([hu,mu,Zg,v$,Bs]),sie=$e([du,Js,tm,Cr,am,wu,Au,fr]),oie=$e([gu,V1,u$,w$,fu,vu,Cu,bu]),lie=$e([hu,mu,G1,b1,m1,I1,k1,Bs,p$]),uie=$e([du,a1,m$,E1,j1,p1,d1,g1,Tu,H1,wu,Au,fr]),L=class t extends Error{constructor(e,i,n){super(`MCP error ${e}: ${i}`),this.code=e,this.data=n,this.name="McpError"}static fromError(e,i,n){if(e===V.UrlElicitationRequired&&n){let a=n;if(a.elicitations)return new Ug(a.elicitations,i)}return new t(e,i,n)}},Ug=class extends L{constructor(e,i=`URL elicitation${e.length>1?"s":""} required`){super(V.UrlElicitationRequired,i,{elicitations:e})}get elicitations(){return this.data?.elicitations??[]}};function Ot(t){return t==="completed"||t==="failed"||t==="cancelled"}var AS=Symbol("Let zodToJsonSchema decide on which parser to use");var CS={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"},bS=t=>typeof t=="string"?{...CS,name:t}:{...CS,...t};var yS=t=>{let e=bS(t),i=e.name!==void 0?[...e.basePath,e.definitionPath,e.name]:e.basePath;return{...e,flags:{hasReferencedOpenAiAnyType:!1},currentPath:i,propertyPath:void 0,seen:new Map(Object.entries(e.definitions).map(([n,a])=>[a._def,{def:a._def,path:[...e.basePath,e.definitionPath,n],jsonSchema:void 0}]))}};function rm(t,e,i,n){n?.errorMessages&&i&&(t.errorMessage={...t.errorMessage,[e]:i})}function me(t,e,i,n,a){t[e]=i,rm(t,e,n,a)}var Eu=(t,e)=>{let i=0;for(;iY(t.innerType._def,e);function sm(t,e,i){let n=i??e.dateStrategy;if(Array.isArray(n))return{anyOf:n.map((a,r)=>sm(t,e,a))};switch(n){case"string":case"format:date-time":return{type:"string",format:"date-time"};case"format:date":return{type:"string",format:"date"};case"integer":return C$(t,e)}}var C$=(t,e)=>{let i={type:"integer",format:"unix-time"};if(e.target==="openApi3")return i;for(let n of t.checks)switch(n.kind){case"min":me(i,"minimum",n.value,n.message,e);break;case"max":me(i,"maximum",n.value,n.message,e);break}return i};function xS(t,e){return{...Y(t.innerType._def,e),default:t.defaultValue()}}function TS(t,e){return e.effectStrategy==="input"?Y(t.schema._def,e):Ve(e)}function MS(t){return{type:"string",enum:Array.from(t.values)}}var A$=t=>"type"in t&&t.type==="string"?!1:"allOf"in t;function ES(t,e){let i=[Y(t.left._def,{...e,currentPath:[...e.currentPath,"allOf","0"]}),Y(t.right._def,{...e,currentPath:[...e.currentPath,"allOf","1"]})].filter(r=>!!r),n=e.target==="jsonSchema2019-09"?{unevaluatedProperties:!1}:void 0,a=[];return i.forEach(r=>{if(A$(r))a.push(...r.allOf),r.unevaluatedProperties===void 0&&(n=void 0);else{let s=r;if("additionalProperties"in r&&r.additionalProperties===!1){let{additionalProperties:o,...l}=r;s=l}else n=void 0;a.push(s)}}),a.length?{allOf:a,...n}:void 0}function kS(t,e){let i=typeof t.value;return i!=="bigint"&&i!=="number"&&i!=="boolean"&&i!=="string"?{type:Array.isArray(t.value)?"array":"object"}:e.target==="openApi3"?{type:i==="bigint"?"integer":i,enum:[t.value]}:{type:i==="bigint"?"integer":i,const:t.value}}var om,An={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:()=>(om===void 0&&(om=RegExp("^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$","u")),om),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 qu(t,e){let i={type:"string"};if(t.checks)for(let n of t.checks)switch(n.kind){case"min":me(i,"minLength",typeof i.minLength=="number"?Math.max(i.minLength,n.value):n.value,n.message,e);break;case"max":me(i,"maxLength",typeof i.maxLength=="number"?Math.min(i.maxLength,n.value):n.value,n.message,e);break;case"email":switch(e.emailStrategy){case"format:email":bn(i,"email",n.message,e);break;case"format:idn-email":bn(i,"idn-email",n.message,e);break;case"pattern:zod":_i(i,An.email,n.message,e);break}break;case"url":bn(i,"uri",n.message,e);break;case"uuid":bn(i,"uuid",n.message,e);break;case"regex":_i(i,n.regex,n.message,e);break;case"cuid":_i(i,An.cuid,n.message,e);break;case"cuid2":_i(i,An.cuid2,n.message,e);break;case"startsWith":_i(i,RegExp(`^${lm(n.value,e)}`),n.message,e);break;case"endsWith":_i(i,RegExp(`${lm(n.value,e)}$`),n.message,e);break;case"datetime":bn(i,"date-time",n.message,e);break;case"date":bn(i,"date",n.message,e);break;case"time":bn(i,"time",n.message,e);break;case"duration":bn(i,"duration",n.message,e);break;case"length":me(i,"minLength",typeof i.minLength=="number"?Math.max(i.minLength,n.value):n.value,n.message,e),me(i,"maxLength",typeof i.maxLength=="number"?Math.min(i.maxLength,n.value):n.value,n.message,e);break;case"includes":{_i(i,RegExp(lm(n.value,e)),n.message,e);break}case"ip":{n.version!=="v6"&&bn(i,"ipv4",n.message,e),n.version!=="v4"&&bn(i,"ipv6",n.message,e);break}case"base64url":_i(i,An.base64url,n.message,e);break;case"jwt":_i(i,An.jwt,n.message,e);break;case"cidr":{n.version!=="v6"&&_i(i,An.ipv4Cidr,n.message,e),n.version!=="v4"&&_i(i,An.ipv6Cidr,n.message,e);break}case"emoji":_i(i,An.emoji(),n.message,e);break;case"ulid":{_i(i,An.ulid,n.message,e);break}case"base64":{switch(e.base64Strategy){case"format:binary":{bn(i,"binary",n.message,e);break}case"contentEncoding:base64":{me(i,"contentEncoding","base64",n.message,e);break}case"pattern:zod":{_i(i,An.base64,n.message,e);break}}break}case"nanoid":_i(i,An.nanoid,n.message,e);case"toLowerCase":case"toUpperCase":case"trim":break;default:}return i}function lm(t,e){return e.patternStrategy==="escape"?y$(t):t}var b$=new Set("ABCDEFGHIJKLMNOPQRSTUVXYZabcdefghijklmnopqrstuvxyz0123456789");function y$(t){let e="";for(let i=0;ia.format)?(t.anyOf||(t.anyOf=[]),t.format&&(t.anyOf.push({format:t.format,...t.errorMessage&&n.errorMessages&&{errorMessage:{format:t.errorMessage.format}}}),delete t.format,t.errorMessage&&(delete t.errorMessage.format,Object.keys(t.errorMessage).length===0&&delete t.errorMessage)),t.anyOf.push({format:e,...i&&n.errorMessages&&{errorMessage:{format:i}}})):me(t,"format",e,i,n)}function _i(t,e,i,n){t.pattern||t.allOf?.some(a=>a.pattern)?(t.allOf||(t.allOf=[]),t.pattern&&(t.allOf.push({pattern:t.pattern,...t.errorMessage&&n.errorMessages&&{errorMessage:{pattern:t.errorMessage.pattern}}}),delete t.pattern,t.errorMessage&&(delete t.errorMessage.pattern,Object.keys(t.errorMessage).length===0&&delete t.errorMessage)),t.allOf.push({pattern:qS(e,n),...i&&n.errorMessages&&{errorMessage:{pattern:i}}})):me(t,"pattern",qS(e,n),i,n)}function qS(t,e){if(!e.applyRegexFlags||!t.flags)return t.source;let i={i:t.flags.includes("i"),m:t.flags.includes("m"),s:t.flags.includes("s")},n=i.i?t.source.toLowerCase():t.source,a="",r=!1,s=!1,o=!1;for(let l=0;l1&&t.reused==="ref"){r(s);continue}}}function Is(t,e){let i=t.seen.get(e);if(!i)throw new Error("Unprocessed schema. This is a bug in Zod.");let n=o=>{let l=t.seen.get(o);if(l.ref===null)return;let u=l.def??l.schema,c={...u},p=l.ref;if(l.ref=null,p){n(p);let h=t.seen.get(p),g=h.schema;if(g.$ref&&(t.target==="draft-07"||t.target==="draft-04"||t.target==="openapi-3.0")?(u.allOf=u.allOf??[],u.allOf.push(g)):Object.assign(u,g),Object.assign(u,c),o._zod.parent===p)for(let f in u)f==="$ref"||f==="allOf"||f in c||delete u[f];if(g.$ref&&h.def)for(let f in u)f==="$ref"||f==="allOf"||f in h.def&&JSON.stringify(u[f])===JSON.stringify(h.def[f])&&delete u[f]}let d=o._zod.parent;if(d&&d!==p){n(d);let h=t.seen.get(d);if(h?.schema.$ref&&(u.$ref=h.schema.$ref,h.def))for(let g in u)g==="$ref"||g==="allOf"||g in h.def&&JSON.stringify(u[g])===JSON.stringify(h.def[g])&&delete u[g]}t.override({zodSchema:o,jsonSchema:u,path:l.path??[]})};for(let o of[...t.seen.entries()].reverse())n(o[0]);let a={};if(t.target==="draft-2020-12"?a.$schema="https://json-schema.org/draft/2020-12/schema":t.target==="draft-07"?a.$schema="http://json-schema.org/draft-07/schema#":t.target==="draft-04"?a.$schema="http://json-schema.org/draft-04/schema#":t.target,t.external?.uri){let o=t.external.registry.get(e)?.id;if(!o)throw new Error("Schema is missing an `id` property");a.$id=t.external.uri(o)}Object.assign(a,i.def??i.schema);let r=t.metadataRegistry.get(e)?.id;r!==void 0&&a.id===r&&delete a.id;let s=t.external?.defs??{};for(let o of t.seen.entries()){let l=o[1];l.def&&l.defId&&(l.def.id===l.defId&&delete l.def.id,s[l.defId]=l.def)}t.external||Object.keys(s).length>0&&(t.target==="draft-2020-12"?a.$defs=s:a.definitions=s);try{let o=JSON.parse(JSON.stringify(a));return Object.defineProperty(o,"~standard",{value:{...e["~standard"],jsonSchema:{input:_s(e,"input",t.processors),output:_s(e,"output",t.processors)}},enumerable:!1,writable:!1}),o}catch{throw new Error("Error converting schema to JSON.")}}function ki(t,e){let i=e??{seen:new Set};if(i.seen.has(t))return!1;i.seen.add(t);let n=t._zod.def;if(n.type==="transform")return!0;if(n.type==="array")return ki(n.element,i);if(n.type==="set")return ki(n.valueType,i);if(n.type==="lazy")return ki(n.getter(),i);if(n.type==="promise"||n.type==="optional"||n.type==="nonoptional"||n.type==="nullable"||n.type==="readonly"||n.type==="default"||n.type==="prefault")return ki(n.innerType,i);if(n.type==="intersection")return ki(n.left,i)||ki(n.right,i);if(n.type==="record"||n.type==="map")return ki(n.keyType,i)||ki(n.valueType,i);if(n.type==="pipe")return t._zod.traits.has("$ZodCodec")?!0:ki(n.in,i)||ki(n.out,i);if(n.type==="object"){for(let a in n.shape)if(ki(n.shape[a],i))return!0;return!1}if(n.type==="union"){for(let a of n.options)if(ki(a,i))return!0;return!1}if(n.type==="tuple"){for(let a of n.items)if(ki(a,i))return!0;return!!(n.rest&&ki(n.rest,i))}return!1}var tj=(t,e={})=>i=>{let n=Hs({...i,processors:e});return qe(t,n),Rs(n,t),Is(n,t)},_s=(t,e,i={})=>n=>{let{libraryOptions:a,target:r}=n??{},s=Hs({...a??{},target:r,io:e,processors:i});return qe(t,s),Rs(s,t),Is(s,t)};var aD={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},pg=(t,e,i,n)=>{let a=i;a.type="string";let{minimum:r,maximum:s,format:o,patterns:l,contentEncoding:u}=t._zod.bag;if(typeof r=="number"&&(a.minLength=r),typeof s=="number"&&(a.maxLength=s),o&&(a.format=aD[o]??o,a.format===""&&delete a.format,o==="time"&&delete a.format),u&&(a.contentEncoding=u),l&&l.size>0){let c=[...l];c.length===1?a.pattern=c[0].source:c.length>1&&(a.allOf=[...c.map(p=>({...e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0"?{type:"string"}:{},pattern:p.source}))])}},dg=(t,e,i,n)=>{let a=i,{minimum:r,maximum:s,format:o,multipleOf:l,exclusiveMaximum:u,exclusiveMinimum:c}=t._zod.bag;typeof o=="string"&&o.includes("int")?a.type="integer":a.type="number";let p=typeof c=="number"&&c>=(r??Number.NEGATIVE_INFINITY),d=typeof u=="number"&&u<=(s??Number.POSITIVE_INFINITY),h=e.target==="draft-04"||e.target==="openapi-3.0";p?h?(a.minimum=c,a.exclusiveMinimum=!0):a.exclusiveMinimum=c:typeof r=="number"&&(a.minimum=r),d?h?(a.maximum=u,a.exclusiveMaximum=!0):a.exclusiveMaximum=u:typeof s=="number"&&(a.maximum=s),typeof l=="number"&&(a.multipleOf=l)},hg=(t,e,i,n)=>{i.type="boolean"},rj=(t,e,i,n)=>{if(e.unrepresentable==="throw")throw new Error("BigInt cannot be represented in JSON Schema")},sj=(t,e,i,n)=>{if(e.unrepresentable==="throw")throw new Error("Symbols cannot be represented in JSON Schema")},gg=(t,e,i,n)=>{e.target==="openapi-3.0"?(i.type="string",i.nullable=!0,i.enum=[null]):i.type="null"},oj=(t,e,i,n)=>{if(e.unrepresentable==="throw")throw new Error("Undefined cannot be represented in JSON Schema")},lj=(t,e,i,n)=>{if(e.unrepresentable==="throw")throw new Error("Void cannot be represented in JSON Schema")},mg=(t,e,i,n)=>{i.not={}},uj=(t,e,i,n)=>{},fg=(t,e,i,n)=>{},cj=(t,e,i,n)=>{if(e.unrepresentable==="throw")throw new Error("Date cannot be represented in JSON Schema")},wg=(t,e,i,n)=>{let a=t._zod.def,r=Cs(a.entries);r.every(s=>typeof s=="number")&&(i.type="number"),r.every(s=>typeof s=="string")&&(i.type="string"),i.enum=r},vg=(t,e,i,n)=>{let a=t._zod.def,r=[];for(let s of a.values)if(s===void 0){if(e.unrepresentable==="throw")throw new Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof s=="bigint"){if(e.unrepresentable==="throw")throw new Error("BigInt literals cannot be represented in JSON Schema");r.push(Number(s))}else r.push(s);if(r.length!==0)if(r.length===1){let s=r[0];i.type=s===null?"null":typeof s,e.target==="draft-04"||e.target==="openapi-3.0"?i.enum=[s]:i.const=s}else r.every(s=>typeof s=="number")&&(i.type="number"),r.every(s=>typeof s=="string")&&(i.type="string"),r.every(s=>typeof s=="boolean")&&(i.type="boolean"),r.every(s=>s===null)&&(i.type="null"),i.enum=r},pj=(t,e,i,n)=>{if(e.unrepresentable==="throw")throw new Error("NaN cannot be represented in JSON Schema")},dj=(t,e,i,n)=>{let a=i,r=t._zod.pattern;if(!r)throw new Error("Pattern not found in template literal");a.type="string",a.pattern=r.source},hj=(t,e,i,n)=>{let a=i,r={type:"string",format:"binary",contentEncoding:"binary"},{minimum:s,maximum:o,mime:l}=t._zod.bag;s!==void 0&&(r.minLength=s),o!==void 0&&(r.maxLength=o),l?l.length===1?(r.contentMediaType=l[0],Object.assign(a,r)):(Object.assign(a,r),a.anyOf=l.map(u=>({contentMediaType:u}))):Object.assign(a,r)},gj=(t,e,i,n)=>{i.type="boolean"},Cg=(t,e,i,n)=>{if(e.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")},mj=(t,e,i,n)=>{if(e.unrepresentable==="throw")throw new Error("Function types cannot be represented in JSON Schema")},Ag=(t,e,i,n)=>{if(e.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")},fj=(t,e,i,n)=>{if(e.unrepresentable==="throw")throw new Error("Map cannot be represented in JSON Schema")},wj=(t,e,i,n)=>{if(e.unrepresentable==="throw")throw new Error("Set cannot be represented in JSON Schema")},bg=(t,e,i,n)=>{let a=i,r=t._zod.def,{minimum:s,maximum:o}=t._zod.bag;typeof s=="number"&&(a.minItems=s),typeof o=="number"&&(a.maxItems=o),a.type="array",a.items=qe(r.element,e,{...n,path:[...n.path,"items"]})},yg=(t,e,i,n)=>{let a=i,r=t._zod.def;a.type="object",a.properties={};let s=r.shape;for(let u in s)a.properties[u]=qe(s[u],e,{...n,path:[...n.path,"properties",u]});let o=new Set(Object.keys(s)),l=new Set([...o].filter(u=>{let c=r.shape[u]._zod;return e.io==="input"?c.optin===void 0:c.optout===void 0}));l.size>0&&(a.required=Array.from(l)),r.catchall?._zod.def.type==="never"?a.additionalProperties=!1:r.catchall?r.catchall&&(a.additionalProperties=qe(r.catchall,e,{...n,path:[...n.path,"additionalProperties"]})):e.io==="output"&&(a.additionalProperties=!1)},Pg=(t,e,i,n)=>{let a=t._zod.def,r=a.inclusive===!1,s=a.options.map((o,l)=>qe(o,e,{...n,path:[...n.path,r?"oneOf":"anyOf",l]}));r?i.oneOf=s:i.anyOf=s},jg=(t,e,i,n)=>{let a=t._zod.def,r=qe(a.left,e,{...n,path:[...n.path,"allOf",0]}),s=qe(a.right,e,{...n,path:[...n.path,"allOf",1]}),o=u=>"allOf"in u&&Object.keys(u).length===1,l=[...o(r)?r.allOf:[r],...o(s)?s.allOf:[s]];i.allOf=l},vj=(t,e,i,n)=>{let a=i,r=t._zod.def;a.type="array";let s=e.target==="draft-2020-12"?"prefixItems":"items",o=e.target==="draft-2020-12"||e.target==="openapi-3.0"?"items":"additionalItems",l=r.items.map((d,h)=>qe(d,e,{...n,path:[...n.path,s,h]})),u=r.rest?qe(r.rest,e,{...n,path:[...n.path,o,...e.target==="openapi-3.0"?[r.items.length]:[]]}):null;e.target==="draft-2020-12"?(a.prefixItems=l,u&&(a.items=u)):e.target==="openapi-3.0"?(a.items={anyOf:l},u&&a.items.anyOf.push(u),a.minItems=l.length,u||(a.maxItems=l.length)):(a.items=l,u&&(a.additionalItems=u));let{minimum:c,maximum:p}=t._zod.bag;typeof c=="number"&&(a.minItems=c),typeof p=="number"&&(a.maxItems=p)},Sg=(t,e,i,n)=>{let a=i,r=t._zod.def;a.type="object";let s=r.keyType,l=s._zod.bag?.patterns;if(r.mode==="loose"&&l&&l.size>0){let c=qe(r.valueType,e,{...n,path:[...n.path,"patternProperties","*"]});a.patternProperties={};for(let p of l)a.patternProperties[p.source]=c}else(e.target==="draft-07"||e.target==="draft-2020-12")&&(a.propertyNames=qe(r.keyType,e,{...n,path:[...n.path,"propertyNames"]})),a.additionalProperties=qe(r.valueType,e,{...n,path:[...n.path,"additionalProperties"]});let u=s._zod.values;if(u){let c=[...u].filter(p=>typeof p=="string"||typeof p=="number");c.length>0&&(a.required=c)}},Og=(t,e,i,n)=>{let a=t._zod.def,r=qe(a.innerType,e,n),s=e.seen.get(t);e.target==="openapi-3.0"?(s.ref=a.innerType,i.nullable=!0):i.anyOf=[r,{type:"null"}]},xg=(t,e,i,n)=>{let a=t._zod.def;qe(a.innerType,e,n);let r=e.seen.get(t);r.ref=a.innerType},Tg=(t,e,i,n)=>{let a=t._zod.def;qe(a.innerType,e,n);let r=e.seen.get(t);r.ref=a.innerType,i.default=JSON.parse(JSON.stringify(a.defaultValue))},Mg=(t,e,i,n)=>{let a=t._zod.def;qe(a.innerType,e,n);let r=e.seen.get(t);r.ref=a.innerType,e.io==="input"&&(i._prefault=JSON.parse(JSON.stringify(a.defaultValue)))},Eg=(t,e,i,n)=>{let a=t._zod.def;qe(a.innerType,e,n);let r=e.seen.get(t);r.ref=a.innerType;let s;try{s=a.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}i.default=s},kg=(t,e,i,n)=>{let a=t._zod.def,r=a.in._zod.traits.has("$ZodTransform"),s=e.io==="input"?r?a.out:a.in:a.out;qe(s,e,n);let o=e.seen.get(t);o.ref=s},qg=(t,e,i,n)=>{let a=t._zod.def;qe(a.innerType,e,n);let r=e.seen.get(t);r.ref=a.innerType,i.readOnly=!0},Cj=(t,e,i,n)=>{let a=t._zod.def;qe(a.innerType,e,n);let r=e.seen.get(t);r.ref=a.innerType},nu=(t,e,i,n)=>{let a=t._zod.def;qe(a.innerType,e,n);let r=e.seen.get(t);r.ref=a.innerType},Aj=(t,e,i,n)=>{let a=t._zod.innerType;qe(a,e,n);let r=e.seen.get(t);r.ref=a},aj={string:pg,number:dg,boolean:hg,bigint:rj,symbol:sj,null:gg,undefined:oj,void:lj,never:mg,any:uj,unknown:fg,date:cj,enum:wg,literal:vg,nan:pj,template_literal:dj,file:hj,success:gj,custom:Cg,function:mj,transform:Ag,map:fj,set:wj,array:bg,object:yg,union:Pg,intersection:jg,tuple:vj,record:Sg,nullable:Og,nonoptional:xg,default:Tg,prefault:Mg,catch:Eg,pipe:kg,readonly:qg,promise:Cj,optional:nu,lazy:Aj};function _g(t,e){if("_idmap"in t){let n=t,a=Hs({...e,processors:aj}),r={};for(let l of n._idmap.entries()){let[u,c]=l;qe(c,a)}let s={},o={registry:n,uri:e?.uri,defs:r};a.external=o;for(let l of n._idmap.entries()){let[u,c]=l;Rs(a,c),s[u]=Is(a,c)}if(Object.keys(r).length>0){let l=a.target==="draft-2020-12"?"$defs":"definitions";s.__shared={[l]:r}}return{schemas:s}}let i=Hs({...e,processors:aj});return qe(t,i),Rs(i,t),Is(i,t)}var VD=j("ZodMiniType",(t,e)=>{if(!t._zod)throw new Error("Uninitialized schema in ZodMiniType.");ke.init(t,e),t.def=e,t.type=e.type,t.parse=(i,n)=>Nl(t,i,n,{callee:t.parse}),t.safeParse=(i,n)=>ha(t,i,n),t.parseAsync=async(i,n)=>Ul(t,i,n,{callee:t.parseAsync}),t.safeParseAsync=async(i,n)=>ga(t,i,n),t.check=(...i)=>t.clone({...e,checks:[...e.checks??[],...i.map(n=>typeof n=="function"?{_zod:{check:n,def:{check:"custom"},onattach:[]}}:n)]},{parent:!0}),t.with=t.check,t.clone=(i,n)=>Yi(t,i,n),t.brand=()=>t,t.register=((i,n)=>(i.add(t,n),t)),t.apply=i=>i(t)});var JD=j("ZodMiniObject",(t,e)=>{oh.init(t,e),VD.init(t,e),Oe(t,"shape",()=>e.shape)});function Hg(t,e){let i={type:"object",shape:t??{},...J(e)};return new JD(i)}function on(t){return!!t._zod}function wa(t){let e=Object.values(t);if(e.length===0)return Hg({});let i=e.every(on),n=e.every(a=>!on(a));if(i)return Hg(t);if(n)return vd(t);throw new Error("Mixed Zod versions detected in object shape.")}function Pt(t,e){return on(t)?ha(t,e):t.safeParse(e)}async function tu(t,e){return on(t)?await ga(t,e):await t.safeParseAsync(e)}function jt(t){if(!t)return;let e;if(on(t)?e=t._zod?.def?.shape:e=t.shape,!!e){if(typeof e=="function")try{return e()}catch{return}return e}}function gr(t){if(t){if(typeof t=="object"){let e=t,i=t;if(!e._def&&!i._zod){let n=Object.values(t);if(n.length>0&&n.every(a=>typeof a=="object"&&a!==null&&(a._def!==void 0||a._zod!==void 0||typeof a.parse=="function")))return wa(t)}}if(on(t)){let i=t._zod?.def;if(i&&(i.type==="object"||i.shape!==void 0))return t}else if(t.shape!==void 0)return t}}function au(t){if(t&&typeof t=="object"){if("message"in t&&typeof t.message=="string")return t.message;if("issues"in t&&Array.isArray(t.issues)&&t.issues.length>0){let e=t.issues[0];if(e&&typeof e=="object"&&"message"in e)return String(e.message)}try{return JSON.stringify(t)}catch{return String(t)}}return String(t)}function yj(t){return t.description}function Pj(t){if(on(t))return t._zod?.def?.type==="optional";let e=t;return typeof t.isOptional=="function"?t.isOptional():e._def?.typeName==="ZodOptional"}function ru(t){if(on(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 i=t._def;if(i){if(i.value!==void 0)return i.value;if(Array.isArray(i.values)&&i.values.length>0)return i.values[0]}let n=t.value;if(n!==void 0)return n}var zs={};gd(zs,{ZodISODate:()=>Sj,ZodISODateTime:()=>jj,ZodISODuration:()=>xj,ZodISOTime:()=>Oj,date:()=>Ig,datetime:()=>Rg,duration:()=>Dg,time:()=>zg});var jj=j("ZodISODateTime",(t,e)=>{NP.init(t,e),Le.init(t,e)});function Rg(t){return YP(jj,t)}var Sj=j("ZodISODate",(t,e)=>{UP.init(t,e),Le.init(t,e)});function Ig(t){return XP(Sj,t)}var Oj=j("ZodISOTime",(t,e)=>{LP.init(t,e),Le.init(t,e)});function zg(t){return ej(Oj,t)}var xj=j("ZodISODuration",(t,e)=>{WP.init(t,e),Le.init(t,e)});function Dg(t){return ij(xj,t)}var nG=(t,e)=>{$l.init(t,e),t.name="ZodError",Object.defineProperties(t,{format:{value:i=>Ry(t,i)},flatten:{value:i=>Hy(t,i)},addIssue:{value:i=>{t.issues.push(i),t.message=JSON.stringify(t.issues,cr,2)}},addIssues:{value:i=>{t.issues.push(...i),t.message=JSON.stringify(t.issues,cr,2)}},isEmpty:{get(){return t.issues.length===0}}})};var Xi=j("ZodError",nG,{Parent:Error});var Tj=js(Xi),Mj=Ss(Xi),Ej=Os(Xi),kj=xs(Xi),qj=Iy(Xi),_j=zy(Xi),Hj=Dy(Xi),Rj=Gy(Xi),Ij=$y(Xi),zj=Ny(Xi),Dj=Uy(Xi),Gj=Ly(Xi);var $j=new WeakMap;function Ds(t,e,i){let n=Object.getPrototypeOf(t),a=$j.get(n);if(a||(a=new Set,$j.set(n,a)),!a.has(e)){a.add(e);for(let r in i){let s=i[r];Object.defineProperty(n,r,{configurable:!0,enumerable:!1,get(){let o=s.bind(this);return Object.defineProperty(this,r,{configurable:!0,writable:!0,enumerable:!0,value:o}),o},set(o){Object.defineProperty(this,r,{configurable:!0,writable:!0,enumerable:!0,value:o})}})}}}var Fe=j("ZodType",(t,e)=>(ke.init(t,e),Object.assign(t["~standard"],{jsonSchema:{input:_s(t,"input"),output:_s(t,"output")}}),t.toJSONSchema=tj(t,{}),t.def=e,t.type=e.type,Object.defineProperty(t,"_def",{value:e}),t.parse=(i,n)=>Tj(t,i,n,{callee:t.parse}),t.safeParse=(i,n)=>Ej(t,i,n),t.parseAsync=async(i,n)=>Mj(t,i,n,{callee:t.parseAsync}),t.safeParseAsync=async(i,n)=>kj(t,i,n),t.spa=t.safeParseAsync,t.encode=(i,n)=>qj(t,i,n),t.decode=(i,n)=>_j(t,i,n),t.encodeAsync=async(i,n)=>Hj(t,i,n),t.decodeAsync=async(i,n)=>Rj(t,i,n),t.safeEncode=(i,n)=>Ij(t,i,n),t.safeDecode=(i,n)=>zj(t,i,n),t.safeEncodeAsync=async(i,n)=>Dj(t,i,n),t.safeDecodeAsync=async(i,n)=>Gj(t,i,n),Ds(t,"ZodType",{check(...i){let n=this.def;return this.clone(he.mergeDefs(n,{checks:[...n.checks??[],...i.map(a=>typeof a=="function"?{_zod:{check:a,def:{check:"custom"},onattach:[]}}:a)]}),{parent:!0})},with(...i){return this.check(...i)},clone(i,n){return Yi(this,i,n)},brand(){return this},register(i,n){return i.add(this,n),this},refine(i,n){return this.check(FG(i,n))},superRefine(i,n){return this.check(VG(i,n))},overwrite(i){return this.check(yt(i))},optional(){return Be(this)},exactOptional(){return HG(this)},nullable(){return Wj(this)},nullish(){return Be(Wj(this))},nonoptional(i){return $G(this,i)},array(){return ge(this)},or(i){return $e([this,i])},and(i){return ou(this,i)},transform(i){return Bj(this,Qj(i))},default(i){return zG(this,i)},prefault(i){return GG(this,i)},catch(i){return UG(this,i)},pipe(i){return Bj(this,i)},readonly(){return BG(this)},describe(i){let n=this.clone();return ma.add(n,{description:i}),n},meta(...i){if(i.length===0)return ma.get(this);let n=this.clone();return ma.add(n,i[0]),n},isOptional(){return this.safeParse(void 0).success},isNullable(){return this.safeParse(null).success},apply(i){return i(this)}}),Object.defineProperty(t,"description",{get(){return ma.get(t)?.description},configurable:!0}),t)),Fj=j("_ZodString",(t,e)=>{Es.init(t,e),Fe.init(t,e),t._zod.processJSONSchema=(n,a,r)=>pg(t,n,a,r);let i=t._zod.bag;t.format=i.format??null,t.minLength=i.minimum??null,t.maxLength=i.maximum??null,Ds(t,"_ZodString",{regex(...n){return this.check(Qh(...n))},includes(...n){return this.check(eg(...n))},startsWith(...n){return this.check(ig(...n))},endsWith(...n){return this.check(ng(...n))},min(...n){return this.check(hr(...n))},max(...n){return this.check(eu(...n))},length(...n){return this.check(iu(...n))},nonempty(...n){return this.check(hr(1,...n))},lowercase(n){return this.check(Yh(n))},uppercase(n){return this.check(Xh(n))},trim(){return this.check(ag())},normalize(...n){return this.check(tg(...n))},toLowerCase(){return this.check(rg())},toUpperCase(){return this.check(sg())},slugify(){return this.check(og())}})}),aG=j("ZodString",(t,e)=>{Es.init(t,e),Fj.init(t,e),t.email=i=>t.check(jh(rG,i)),t.url=i=>t.check(Mh(sG,i)),t.jwt=i=>t.check(Wh(bG,i)),t.emoji=i=>t.check(Eh(oG,i)),t.guid=i=>t.check(Kl(Nj,i)),t.uuid=i=>t.check(Sh(su,i)),t.uuidv4=i=>t.check(Oh(su,i)),t.uuidv6=i=>t.check(xh(su,i)),t.uuidv7=i=>t.check(Th(su,i)),t.nanoid=i=>t.check(kh(lG,i)),t.guid=i=>t.check(Kl(Nj,i)),t.cuid=i=>t.check(qh(uG,i)),t.cuid2=i=>t.check(_h(cG,i)),t.ulid=i=>t.check(Hh(pG,i)),t.base64=i=>t.check(Nh(vG,i)),t.base64url=i=>t.check(Uh(CG,i)),t.xid=i=>t.check(Rh(dG,i)),t.ksuid=i=>t.check(Ih(hG,i)),t.ipv4=i=>t.check(zh(gG,i)),t.ipv6=i=>t.check(Dh(mG,i)),t.cidrv4=i=>t.check(Gh(fG,i)),t.cidrv6=i=>t.check($h(wG,i)),t.e164=i=>t.check(Lh(AG,i)),t.datetime=i=>t.check(Rg(i)),t.date=i=>t.check(Ig(i)),t.time=i=>t.check(zg(i)),t.duration=i=>t.check(Dg(i))});function P(t){return Ph(aG,t)}var Le=j("ZodStringFormat",(t,e)=>{Ie.init(t,e),Fj.init(t,e)}),rG=j("ZodEmail",(t,e)=>{Dd.init(t,e),Le.init(t,e)});var Nj=j("ZodGUID",(t,e)=>{Id.init(t,e),Le.init(t,e)});var su=j("ZodUUID",(t,e)=>{zd.init(t,e),Le.init(t,e)});var sG=j("ZodURL",(t,e)=>{Gd.init(t,e),Le.init(t,e)});var oG=j("ZodEmoji",(t,e)=>{$d.init(t,e),Le.init(t,e)});var lG=j("ZodNanoID",(t,e)=>{Nd.init(t,e),Le.init(t,e)});var uG=j("ZodCUID",(t,e)=>{Ud.init(t,e),Le.init(t,e)});var cG=j("ZodCUID2",(t,e)=>{Ld.init(t,e),Le.init(t,e)});var pG=j("ZodULID",(t,e)=>{Wd.init(t,e),Le.init(t,e)});var dG=j("ZodXID",(t,e)=>{Bd.init(t,e),Le.init(t,e)});var hG=j("ZodKSUID",(t,e)=>{Fd.init(t,e),Le.init(t,e)});var gG=j("ZodIPv4",(t,e)=>{Vd.init(t,e),Le.init(t,e)});var mG=j("ZodIPv6",(t,e)=>{Jd.init(t,e),Le.init(t,e)});var fG=j("ZodCIDRv4",(t,e)=>{Zd.init(t,e),Le.init(t,e)});var wG=j("ZodCIDRv6",(t,e)=>{Kd.init(t,e),Le.init(t,e)});var vG=j("ZodBase64",(t,e)=>{Qd.init(t,e),Le.init(t,e)});var CG=j("ZodBase64URL",(t,e)=>{Yd.init(t,e),Le.init(t,e)});var AG=j("ZodE164",(t,e)=>{Xd.init(t,e),Le.init(t,e)});var bG=j("ZodJWT",(t,e)=>{eh.init(t,e),Le.init(t,e)});var Vj=j("ZodNumber",(t,e)=>{Fl.init(t,e),Fe.init(t,e),t._zod.processJSONSchema=(n,a,r)=>dg(t,n,a,r),Ds(t,"ZodNumber",{gt(n,a){return this.check(Yl(n,a))},gte(n,a){return this.check(qs(n,a))},min(n,a){return this.check(qs(n,a))},lt(n,a){return this.check(Ql(n,a))},lte(n,a){return this.check(ks(n,a))},max(n,a){return this.check(ks(n,a))},int(n){return this.check(Uj(n))},safe(n){return this.check(Uj(n))},positive(n){return this.check(Yl(0,n))},nonnegative(n){return this.check(qs(0,n))},negative(n){return this.check(Ql(0,n))},nonpositive(n){return this.check(ks(0,n))},multipleOf(n,a){return this.check(Xl(n,a))},step(n,a){return this.check(Xl(n,a))},finite(){return this}});let i=t._zod.bag;t.minValue=Math.max(i.minimum??Number.NEGATIVE_INFINITY,i.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,t.maxValue=Math.min(i.maximum??Number.POSITIVE_INFINITY,i.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,t.isInt=(i.format??"").includes("int")||Number.isSafeInteger(i.multipleOf??.5),t.isFinite=!0,t.format=i.format??null});function Te(t){return Bh(Vj,t)}var yG=j("ZodNumberFormat",(t,e)=>{ih.init(t,e),Vj.init(t,e)});function Uj(t){return Fh(yG,t)}var PG=j("ZodBoolean",(t,e)=>{nh.init(t,e),Fe.init(t,e),t._zod.processJSONSchema=(i,n,a)=>hg(t,i,n,a)});function hi(t){return Vh(PG,t)}var jG=j("ZodNull",(t,e)=>{th.init(t,e),Fe.init(t,e),t._zod.processJSONSchema=(i,n,a)=>gg(t,i,n,a)});function Jj(t){return Jh(jG,t)}var SG=j("ZodUnknown",(t,e)=>{ah.init(t,e),Fe.init(t,e),t._zod.processJSONSchema=(i,n,a)=>fg(t,i,n,a)});function We(){return Zh(SG)}var OG=j("ZodNever",(t,e)=>{rh.init(t,e),Fe.init(t,e),t._zod.processJSONSchema=(i,n,a)=>mg(t,i,n,a)});function xG(t){return Kh(OG,t)}var TG=j("ZodArray",(t,e)=>{sh.init(t,e),Fe.init(t,e),t._zod.processJSONSchema=(i,n,a)=>bg(t,i,n,a),t.element=e.element,Ds(t,"ZodArray",{min(i,n){return this.check(hr(i,n))},nonempty(i){return this.check(hr(1,i))},max(i,n){return this.check(eu(i,n))},length(i,n){return this.check(iu(i,n))},unwrap(){return this.element}})});function ge(t,e){return nj(TG,t,e)}var Zj=j("ZodObject",(t,e)=>{JP.init(t,e),Fe.init(t,e),t._zod.processJSONSchema=(i,n,a)=>yg(t,i,n,a),he.defineLazy(t,"shape",()=>e.shape),Ds(t,"ZodObject",{keyof(){return Gi(Object.keys(this._zod.def.shape))},catchall(i){return this.clone({...this._zod.def,catchall:i})},passthrough(){return this.clone({...this._zod.def,catchall:We()})},loose(){return this.clone({...this._zod.def,catchall:We()})},strict(){return this.clone({...this._zod.def,catchall:xG()})},strip(){return this.clone({...this._zod.def,catchall:void 0})},extend(i){return he.extend(this,i)},safeExtend(i){return he.safeExtend(this,i)},merge(i){return he.merge(this,i)},pick(i){return he.pick(this,i)},omit(i){return he.omit(this,i)},partial(...i){return he.partial(lu,this,i[0])},required(...i){return he.required(Yj,this,i[0])}})});function D(t,e){let i={type:"object",shape:t??{},...he.normalizeParams(e)};return new Zj(i)}function qi(t,e){return new Zj({type:"object",shape:t,catchall:We(),...he.normalizeParams(e)})}var Kj=j("ZodUnion",(t,e)=>{Vl.init(t,e),Fe.init(t,e),t._zod.processJSONSchema=(i,n,a)=>Pg(t,i,n,a),t.options=e.options});function $e(t,e){return new Kj({type:"union",options:t,...he.normalizeParams(e)})}var MG=j("ZodDiscriminatedUnion",(t,e)=>{Kj.init(t,e),lh.init(t,e)});function $g(t,e,i){return new MG({type:"union",options:e,discriminator:t,...he.normalizeParams(i)})}var EG=j("ZodIntersection",(t,e)=>{uh.init(t,e),Fe.init(t,e),t._zod.processJSONSchema=(i,n,a)=>jg(t,i,n,a)});function ou(t,e){return new EG({type:"intersection",left:t,right:e})}var Lj=j("ZodRecord",(t,e)=>{ch.init(t,e),Fe.init(t,e),t._zod.processJSONSchema=(i,n,a)=>Sg(t,i,n,a),t.keyType=e.keyType,t.valueType=e.valueType});function ze(t,e,i){return!e||!e._zod?new Lj({type:"record",keyType:P(),valueType:t,...he.normalizeParams(e)}):new Lj({type:"record",keyType:t,valueType:e,...he.normalizeParams(i)})}var Gg=j("ZodEnum",(t,e)=>{ph.init(t,e),Fe.init(t,e),t._zod.processJSONSchema=(n,a,r)=>wg(t,n,a,r),t.enum=e.entries,t.options=Object.values(e.entries);let i=new Set(Object.keys(e.entries));t.extract=(n,a)=>{let r={};for(let s of n)if(i.has(s))r[s]=e.entries[s];else throw new Error(`Key ${s} not found in enum`);return new Gg({...e,checks:[],...he.normalizeParams(a),entries:r})},t.exclude=(n,a)=>{let r={...e.entries};for(let s of n)if(i.has(s))delete r[s];else throw new Error(`Key ${s} not found in enum`);return new Gg({...e,checks:[],...he.normalizeParams(a),entries:r})}});function Gi(t,e){let i=Array.isArray(t)?Object.fromEntries(t.map(n=>[n,n])):t;return new Gg({type:"enum",entries:i,...he.normalizeParams(e)})}var kG=j("ZodLiteral",(t,e)=>{dh.init(t,e),Fe.init(t,e),t._zod.processJSONSchema=(i,n,a)=>vg(t,i,n,a),t.values=new Set(e.values),Object.defineProperty(t,"value",{get(){if(e.values.length>1)throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");return e.values[0]}})});function W(t,e){return new kG({type:"literal",values:Array.isArray(t)?t:[t],...he.normalizeParams(e)})}var qG=j("ZodTransform",(t,e)=>{hh.init(t,e),Fe.init(t,e),t._zod.processJSONSchema=(i,n,a)=>Ag(t,i,n,a),t._zod.parse=(i,n)=>{if(n.direction==="backward")throw new lr(t.constructor.name);i.addIssue=r=>{if(typeof r=="string")i.issues.push(he.issue(r,i.value,e));else{let s=r;s.fatal&&(s.continue=!1),s.code??(s.code="custom"),s.input??(s.input=i.value),s.inst??(s.inst=t),i.issues.push(he.issue(s))}};let a=e.transform(i.value,i);return a instanceof Promise?a.then(r=>(i.value=r,i.fallback=!0,i)):(i.value=a,i.fallback=!0,i)}});function Qj(t){return new qG({type:"transform",transform:t})}var lu=j("ZodOptional",(t,e)=>{Jl.init(t,e),Fe.init(t,e),t._zod.processJSONSchema=(i,n,a)=>nu(t,i,n,a),t.unwrap=()=>t._zod.def.innerType});function Be(t){return new lu({type:"optional",innerType:t})}var _G=j("ZodExactOptional",(t,e)=>{gh.init(t,e),Fe.init(t,e),t._zod.processJSONSchema=(i,n,a)=>nu(t,i,n,a),t.unwrap=()=>t._zod.def.innerType});function HG(t){return new _G({type:"optional",innerType:t})}var RG=j("ZodNullable",(t,e)=>{mh.init(t,e),Fe.init(t,e),t._zod.processJSONSchema=(i,n,a)=>Og(t,i,n,a),t.unwrap=()=>t._zod.def.innerType});function Wj(t){return new RG({type:"nullable",innerType:t})}var IG=j("ZodDefault",(t,e)=>{fh.init(t,e),Fe.init(t,e),t._zod.processJSONSchema=(i,n,a)=>Tg(t,i,n,a),t.unwrap=()=>t._zod.def.innerType,t.removeDefault=t.unwrap});function zG(t,e){return new IG({type:"default",innerType:t,get defaultValue(){return typeof e=="function"?e():he.shallowClone(e)}})}var DG=j("ZodPrefault",(t,e)=>{wh.init(t,e),Fe.init(t,e),t._zod.processJSONSchema=(i,n,a)=>Mg(t,i,n,a),t.unwrap=()=>t._zod.def.innerType});function GG(t,e){return new DG({type:"prefault",innerType:t,get defaultValue(){return typeof e=="function"?e():he.shallowClone(e)}})}var Yj=j("ZodNonOptional",(t,e)=>{vh.init(t,e),Fe.init(t,e),t._zod.processJSONSchema=(i,n,a)=>xg(t,i,n,a),t.unwrap=()=>t._zod.def.innerType});function $G(t,e){return new Yj({type:"nonoptional",innerType:t,...he.normalizeParams(e)})}var NG=j("ZodCatch",(t,e)=>{Ch.init(t,e),Fe.init(t,e),t._zod.processJSONSchema=(i,n,a)=>Eg(t,i,n,a),t.unwrap=()=>t._zod.def.innerType,t.removeCatch=t.unwrap});function UG(t,e){return new NG({type:"catch",innerType:t,catchValue:typeof e=="function"?e:()=>e})}var Xj=j("ZodPipe",(t,e)=>{Zl.init(t,e),Fe.init(t,e),t._zod.processJSONSchema=(i,n,a)=>kg(t,i,n,a),t.in=e.in,t.out=e.out});function Bj(t,e){return new Xj({type:"pipe",in:t,out:e})}var LG=j("ZodPreprocess",(t,e)=>{Xj.init(t,e),ZP.init(t,e)}),WG=j("ZodReadonly",(t,e)=>{Ah.init(t,e),Fe.init(t,e),t._zod.processJSONSchema=(i,n,a)=>qg(t,i,n,a),t.unwrap=()=>t._zod.def.innerType});function BG(t){return new WG({type:"readonly",innerType:t})}var eS=j("ZodCustom",(t,e)=>{bh.init(t,e),Fe.init(t,e),t._zod.processJSONSchema=(i,n,a)=>Cg(t,i,n,a)});function iS(t,e){return lg(eS,t??(()=>!0),e)}function FG(t,e={}){return ug(eS,t,e)}function VG(t,e){return cg(t,e)}function Ng(t,e){return new LG({type:"pipe",in:Qj(t),out:e})}Qi(KP());var Lg="2025-11-25";var nS=[Lg,"2025-06-18","2025-03-26","2024-11-05","2024-10-07"],St="io.modelcontextprotocol/related-task",cu="2.0",si=iS(t=>t!==null&&(typeof t=="object"||typeof t=="function")),tS=$e([P(),Te().int()]),aS=P(),eie=qi({ttl:Te().optional(),pollInterval:Te().optional()}),JG=D({ttl:Te().optional()}),ZG=D({taskId:P()}),Wg=qi({progressToken:tS.optional(),[St]:ZG.optional()}),en=D({_meta:Wg.optional()}),Gs=en.extend({task:JG.optional()}),rS=t=>Gs.safeParse(t).success,Ai=D({method:P(),params:en.loose().optional()}),ln=D({_meta:Wg.optional()}),un=D({method:P(),params:ln.loose().optional()}),bi=qi({_meta:Wg.optional()}),pu=$e([P(),Te().int()]),sS=D({jsonrpc:W(cu),id:pu,...Ai.shape}).strict(),Bg=t=>sS.safeParse(t).success,oS=D({jsonrpc:W(cu),...un.shape}).strict(),lS=t=>oS.safeParse(t).success,Fg=D({jsonrpc:W(cu),id:pu,result:bi}).strict(),$s=t=>Fg.safeParse(t).success;var V;(function(t){t[t.ConnectionClosed=-32e3]="ConnectionClosed",t[t.RequestTimeout=-32001]="RequestTimeout",t[t.ParseError=-32700]="ParseError",t[t.InvalidRequest=-32600]="InvalidRequest",t[t.MethodNotFound=-32601]="MethodNotFound",t[t.InvalidParams=-32602]="InvalidParams",t[t.InternalError=-32603]="InternalError",t[t.UrlElicitationRequired=-32042]="UrlElicitationRequired"})(V||(V={}));var Vg=D({jsonrpc:W(cu),id:pu.optional(),error:D({code:Te().int(),message:P(),data:We().optional()})}).strict();var uS=t=>Vg.safeParse(t).success;var cS=$e([sS,oS,Fg,Vg]),iie=$e([Fg,Vg]),du=bi.strict(),KG=ln.extend({requestId:pu.optional(),reason:P().optional()}),hu=un.extend({method:W("notifications/cancelled"),params:KG}),QG=D({src:P(),mimeType:P().optional(),sizes:ge(P()).optional(),theme:Gi(["light","dark"]).optional()}),Ns=D({icons:ge(QG).optional()}),mr=D({name:P(),title:P().optional()}),pS=mr.extend({...mr.shape,...Ns.shape,version:P(),websiteUrl:P().optional(),description:P().optional()}),YG=ou(D({applyDefaults:hi().optional()}),ze(P(),We())),XG=Ng(t=>t&&typeof t=="object"&&!Array.isArray(t)&&Object.keys(t).length===0?{form:{}}:t,ou(D({form:YG.optional(),url:si.optional()}),ze(P(),We()).optional())),e1=qi({list:si.optional(),cancel:si.optional(),requests:qi({sampling:qi({createMessage:si.optional()}).optional(),elicitation:qi({create:si.optional()}).optional()}).optional()}),i1=qi({list:si.optional(),cancel:si.optional(),requests:qi({tools:qi({call:si.optional()}).optional()}).optional()}),n1=D({experimental:ze(P(),si).optional(),sampling:D({context:si.optional(),tools:si.optional()}).optional(),elicitation:XG.optional(),roots:D({listChanged:hi().optional()}).optional(),tasks:e1.optional(),extensions:ze(P(),si).optional()}),t1=en.extend({protocolVersion:P(),capabilities:n1,clientInfo:pS}),Jg=Ai.extend({method:W("initialize"),params:t1});var a1=D({experimental:ze(P(),si).optional(),logging:si.optional(),completions:si.optional(),prompts:D({listChanged:hi().optional()}).optional(),resources:D({subscribe:hi().optional(),listChanged:hi().optional()}).optional(),tools:D({listChanged:hi().optional()}).optional(),tasks:i1.optional(),extensions:ze(P(),si).optional()}),r1=bi.extend({protocolVersion:P(),capabilities:a1,serverInfo:pS,instructions:P().optional()}),Zg=un.extend({method:W("notifications/initialized"),params:ln.optional()});var gu=Ai.extend({method:W("ping"),params:en.optional()}),s1=D({progress:Te(),total:Be(Te()),message:Be(P())}),o1=D({...ln.shape,...s1.shape,progressToken:tS}),mu=un.extend({method:W("notifications/progress"),params:o1}),l1=en.extend({cursor:aS.optional()}),Us=Ai.extend({params:l1.optional()}),Ls=bi.extend({nextCursor:aS.optional()}),u1=Gi(["working","input_required","completed","failed","cancelled"]),Ws=D({taskId:P(),status:u1,ttl:$e([Te(),Jj()]),createdAt:P(),lastUpdatedAt:P(),pollInterval:Be(Te()),statusMessage:Be(P())}),fr=bi.extend({task:Ws}),c1=ln.merge(Ws),Bs=un.extend({method:W("notifications/tasks/status"),params:c1}),fu=Ai.extend({method:W("tasks/get"),params:en.extend({taskId:P()})}),wu=bi.merge(Ws),vu=Ai.extend({method:W("tasks/result"),params:en.extend({taskId:P()})}),nie=bi.loose(),Cu=Us.extend({method:W("tasks/list")}),Au=Ls.extend({tasks:ge(Ws)}),bu=Ai.extend({method:W("tasks/cancel"),params:en.extend({taskId:P()})}),dS=bi.merge(Ws),hS=D({uri:P(),mimeType:Be(P()),_meta:ze(P(),We()).optional()}),gS=hS.extend({text:P()}),Kg=P().refine(t=>{try{return atob(t),!0}catch{return!1}},{message:"Invalid Base64 string"}),mS=hS.extend({blob:Kg}),Fs=Gi(["user","assistant"]),wr=D({audience:ge(Fs).optional(),priority:Te().min(0).max(1).optional(),lastModified:zs.datetime({offset:!0}).optional()}),fS=D({...mr.shape,...Ns.shape,uri:P(),description:Be(P()),mimeType:Be(P()),size:Be(Te()),annotations:wr.optional(),_meta:Be(qi({}))}),p1=D({...mr.shape,...Ns.shape,uriTemplate:P(),description:Be(P()),mimeType:Be(P()),annotations:wr.optional(),_meta:Be(qi({}))}),yu=Us.extend({method:W("resources/list")}),d1=Ls.extend({resources:ge(fS)}),Pu=Us.extend({method:W("resources/templates/list")}),h1=Ls.extend({resourceTemplates:ge(p1)}),Qg=en.extend({uri:P()}),g1=Qg,ju=Ai.extend({method:W("resources/read"),params:g1}),m1=bi.extend({contents:ge($e([gS,mS]))}),f1=un.extend({method:W("notifications/resources/list_changed"),params:ln.optional()}),w1=Qg,v1=Ai.extend({method:W("resources/subscribe"),params:w1}),C1=Qg,A1=Ai.extend({method:W("resources/unsubscribe"),params:C1}),b1=ln.extend({uri:P()}),y1=un.extend({method:W("notifications/resources/updated"),params:b1}),P1=D({name:P(),description:Be(P()),required:Be(hi())}),j1=D({...mr.shape,...Ns.shape,description:Be(P()),arguments:Be(ge(P1)),_meta:Be(qi({}))}),Su=Us.extend({method:W("prompts/list")}),S1=Ls.extend({prompts:ge(j1)}),O1=en.extend({name:P(),arguments:ze(P(),P()).optional()}),Ou=Ai.extend({method:W("prompts/get"),params:O1}),Yg=D({type:W("text"),text:P(),annotations:wr.optional(),_meta:ze(P(),We()).optional()}),Xg=D({type:W("image"),data:Kg,mimeType:P(),annotations:wr.optional(),_meta:ze(P(),We()).optional()}),em=D({type:W("audio"),data:Kg,mimeType:P(),annotations:wr.optional(),_meta:ze(P(),We()).optional()}),x1=D({type:W("tool_use"),name:P(),id:P(),input:ze(P(),We()),_meta:ze(P(),We()).optional()}),T1=D({type:W("resource"),resource:$e([gS,mS]),annotations:wr.optional(),_meta:ze(P(),We()).optional()}),M1=fS.extend({type:W("resource_link")}),im=$e([Yg,Xg,em,M1,T1]),E1=D({role:Fs,content:im}),k1=bi.extend({description:P().optional(),messages:ge(E1)}),q1=un.extend({method:W("notifications/prompts/list_changed"),params:ln.optional()}),_1=D({title:P().optional(),readOnlyHint:hi().optional(),destructiveHint:hi().optional(),idempotentHint:hi().optional(),openWorldHint:hi().optional()}),H1=D({taskSupport:Gi(["required","optional","forbidden"]).optional()}),wS=D({...mr.shape,...Ns.shape,description:P().optional(),inputSchema:D({type:W("object"),properties:ze(P(),si).optional(),required:ge(P()).optional()}).catchall(We()),outputSchema:D({type:W("object"),properties:ze(P(),si).optional(),required:ge(P()).optional()}).catchall(We()).optional(),annotations:_1.optional(),execution:H1.optional(),_meta:ze(P(),We()).optional()}),xu=Us.extend({method:W("tools/list")}),R1=Ls.extend({tools:ge(wS)}),Tu=bi.extend({content:ge(im).default([]),structuredContent:ze(P(),We()).optional(),isError:hi().optional()}),tie=Tu.or(bi.extend({toolResult:We()})),I1=Gs.extend({name:P(),arguments:ze(P(),We()).optional()}),vr=Ai.extend({method:W("tools/call"),params:I1}),z1=un.extend({method:W("notifications/tools/list_changed"),params:ln.optional()}),aie=D({autoRefresh:hi().default(!0),debounceMs:Te().int().nonnegative().default(300)}),Vs=Gi(["debug","info","notice","warning","error","critical","alert","emergency"]),D1=en.extend({level:Vs}),nm=Ai.extend({method:W("logging/setLevel"),params:D1}),G1=ln.extend({level:Vs,logger:P().optional(),data:We()}),$1=un.extend({method:W("notifications/message"),params:G1}),N1=D({name:P().optional()}),U1=D({hints:ge(N1).optional(),costPriority:Te().min(0).max(1).optional(),speedPriority:Te().min(0).max(1).optional(),intelligencePriority:Te().min(0).max(1).optional()}),L1=D({mode:Gi(["auto","required","none"]).optional()}),W1=D({type:W("tool_result"),toolUseId:P().describe("The unique identifier for the corresponding tool call."),content:ge(im).default([]),structuredContent:D({}).loose().optional(),isError:hi().optional(),_meta:ze(P(),We()).optional()}),B1=$g("type",[Yg,Xg,em]),uu=$g("type",[Yg,Xg,em,x1,W1]),F1=D({role:Fs,content:$e([uu,ge(uu)]),_meta:ze(P(),We()).optional()}),V1=Gs.extend({messages:ge(F1),modelPreferences:U1.optional(),systemPrompt:P().optional(),includeContext:Gi(["none","thisServer","allServers"]).optional(),temperature:Te().optional(),maxTokens:Te().int(),stopSequences:ge(P()).optional(),metadata:si.optional(),tools:ge(wS).optional(),toolChoice:L1.optional()}),J1=Ai.extend({method:W("sampling/createMessage"),params:V1}),Js=bi.extend({model:P(),stopReason:Be(Gi(["endTurn","stopSequence","maxTokens"]).or(P())),role:Fs,content:B1}),tm=bi.extend({model:P(),stopReason:Be(Gi(["endTurn","stopSequence","maxTokens","toolUse"]).or(P())),role:Fs,content:$e([uu,ge(uu)])}),Z1=D({type:W("boolean"),title:P().optional(),description:P().optional(),default:hi().optional()}),K1=D({type:W("string"),title:P().optional(),description:P().optional(),minLength:Te().optional(),maxLength:Te().optional(),format:Gi(["email","uri","date","date-time"]).optional(),default:P().optional()}),Q1=D({type:Gi(["number","integer"]),title:P().optional(),description:P().optional(),minimum:Te().optional(),maximum:Te().optional(),default:Te().optional()}),Y1=D({type:W("string"),title:P().optional(),description:P().optional(),enum:ge(P()),default:P().optional()}),X1=D({type:W("string"),title:P().optional(),description:P().optional(),oneOf:ge(D({const:P(),title:P()})),default:P().optional()}),e$=D({type:W("string"),title:P().optional(),description:P().optional(),enum:ge(P()),enumNames:ge(P()).optional(),default:P().optional()}),i$=$e([Y1,X1]),n$=D({type:W("array"),title:P().optional(),description:P().optional(),minItems:Te().optional(),maxItems:Te().optional(),items:D({type:W("string"),enum:ge(P())}),default:ge(P()).optional()}),t$=D({type:W("array"),title:P().optional(),description:P().optional(),minItems:Te().optional(),maxItems:Te().optional(),items:D({anyOf:ge(D({const:P(),title:P()}))}),default:ge(P()).optional()}),a$=$e([n$,t$]),r$=$e([e$,i$,a$]),s$=$e([r$,Z1,K1,Q1]),o$=Gs.extend({mode:W("form").optional(),message:P(),requestedSchema:D({type:W("object"),properties:ze(P(),s$),required:ge(P()).optional()})}),l$=Gs.extend({mode:W("url"),message:P(),elicitationId:P(),url:P().url()}),u$=$e([o$,l$]),c$=Ai.extend({method:W("elicitation/create"),params:u$}),p$=ln.extend({elicitationId:P()}),d$=un.extend({method:W("notifications/elicitation/complete"),params:p$}),Cr=bi.extend({action:Gi(["accept","decline","cancel"]),content:Ng(t=>t===null?void 0:t,ze(P(),$e([P(),Te(),hi(),ge(P())])).optional())}),h$=D({type:W("ref/resource"),uri:P()});var g$=D({type:W("ref/prompt"),name:P()}),m$=en.extend({ref:$e([g$,h$]),argument:D({name:P(),value:P()}),context:D({arguments:ze(P(),P()).optional()}).optional()}),Mu=Ai.extend({method:W("completion/complete"),params:m$});function vS(t){if(t.params.ref.type!=="ref/prompt")throw new TypeError(`Expected CompleteRequestPrompt, but got ${t.params.ref.type}`)}function CS(t){if(t.params.ref.type!=="ref/resource")throw new TypeError(`Expected CompleteRequestResourceTemplate, but got ${t.params.ref.type}`)}var f$=bi.extend({completion:qi({values:ge(P()).max(100),total:Be(Te().int()),hasMore:Be(hi())})}),w$=D({uri:P().startsWith("file://"),name:P().optional(),_meta:ze(P(),We()).optional()}),v$=Ai.extend({method:W("roots/list"),params:en.optional()}),am=bi.extend({roots:ge(w$)}),C$=un.extend({method:W("notifications/roots/list_changed"),params:ln.optional()}),rie=$e([gu,Jg,Mu,nm,Ou,Su,yu,Pu,ju,v1,A1,vr,xu,fu,vu,Cu,bu]),sie=$e([hu,mu,Zg,C$,Bs]),oie=$e([du,Js,tm,Cr,am,wu,Au,fr]),lie=$e([gu,J1,c$,v$,fu,vu,Cu,bu]),uie=$e([hu,mu,$1,y1,f1,z1,q1,Bs,d$]),cie=$e([du,r1,f$,k1,S1,d1,h1,m1,Tu,R1,wu,Au,fr]),L=class t extends Error{constructor(e,i,n){super(`MCP error ${e}: ${i}`),this.code=e,this.data=n,this.name="McpError"}static fromError(e,i,n){if(e===V.UrlElicitationRequired&&n){let a=n;if(a.elicitations)return new Ug(a.elicitations,i)}return new t(e,i,n)}},Ug=class extends L{constructor(e,i=`URL elicitation${e.length>1?"s":""} required`){super(V.UrlElicitationRequired,i,{elicitations:e})}get elicitations(){return this.data?.elicitations??[]}};function Ot(t){return t==="completed"||t==="failed"||t==="cancelled"}var bS=Symbol("Let zodToJsonSchema decide on which parser to use");var AS={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"},yS=t=>typeof t=="string"?{...AS,name:t}:{...AS,...t};var PS=t=>{let e=yS(t),i=e.name!==void 0?[...e.basePath,e.definitionPath,e.name]:e.basePath;return{...e,flags:{hasReferencedOpenAiAnyType:!1},currentPath:i,propertyPath:void 0,seen:new Map(Object.entries(e.definitions).map(([n,a])=>[a._def,{def:a._def,path:[...e.basePath,e.definitionPath,n],jsonSchema:void 0}]))}};function rm(t,e,i,n){n?.errorMessages&&i&&(t.errorMessage={...t.errorMessage,[e]:i})}function me(t,e,i,n,a){t[e]=i,rm(t,e,n,a)}var Eu=(t,e)=>{let i=0;for(;iY(t.innerType._def,e);function sm(t,e,i){let n=i??e.dateStrategy;if(Array.isArray(n))return{anyOf:n.map((a,r)=>sm(t,e,a))};switch(n){case"string":case"format:date-time":return{type:"string",format:"date-time"};case"format:date":return{type:"string",format:"date"};case"integer":return A$(t,e)}}var A$=(t,e)=>{let i={type:"integer",format:"unix-time"};if(e.target==="openApi3")return i;for(let n of t.checks)switch(n.kind){case"min":me(i,"minimum",n.value,n.message,e);break;case"max":me(i,"maximum",n.value,n.message,e);break}return i};function TS(t,e){return{...Y(t.innerType._def,e),default:t.defaultValue()}}function MS(t,e){return e.effectStrategy==="input"?Y(t.schema._def,e):Ve(e)}function ES(t){return{type:"string",enum:Array.from(t.values)}}var b$=t=>"type"in t&&t.type==="string"?!1:"allOf"in t;function kS(t,e){let i=[Y(t.left._def,{...e,currentPath:[...e.currentPath,"allOf","0"]}),Y(t.right._def,{...e,currentPath:[...e.currentPath,"allOf","1"]})].filter(r=>!!r),n=e.target==="jsonSchema2019-09"?{unevaluatedProperties:!1}:void 0,a=[];return i.forEach(r=>{if(b$(r))a.push(...r.allOf),r.unevaluatedProperties===void 0&&(n=void 0);else{let s=r;if("additionalProperties"in r&&r.additionalProperties===!1){let{additionalProperties:o,...l}=r;s=l}else n=void 0;a.push(s)}}),a.length?{allOf:a,...n}:void 0}function qS(t,e){let i=typeof t.value;return i!=="bigint"&&i!=="number"&&i!=="boolean"&&i!=="string"?{type:Array.isArray(t.value)?"array":"object"}:e.target==="openApi3"?{type:i==="bigint"?"integer":i,enum:[t.value]}:{type:i==="bigint"?"integer":i,const:t.value}}var om,An={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:()=>(om===void 0&&(om=RegExp("^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$","u")),om),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 qu(t,e){let i={type:"string"};if(t.checks)for(let n of t.checks)switch(n.kind){case"min":me(i,"minLength",typeof i.minLength=="number"?Math.max(i.minLength,n.value):n.value,n.message,e);break;case"max":me(i,"maxLength",typeof i.maxLength=="number"?Math.min(i.maxLength,n.value):n.value,n.message,e);break;case"email":switch(e.emailStrategy){case"format:email":bn(i,"email",n.message,e);break;case"format:idn-email":bn(i,"idn-email",n.message,e);break;case"pattern:zod":_i(i,An.email,n.message,e);break}break;case"url":bn(i,"uri",n.message,e);break;case"uuid":bn(i,"uuid",n.message,e);break;case"regex":_i(i,n.regex,n.message,e);break;case"cuid":_i(i,An.cuid,n.message,e);break;case"cuid2":_i(i,An.cuid2,n.message,e);break;case"startsWith":_i(i,RegExp(`^${lm(n.value,e)}`),n.message,e);break;case"endsWith":_i(i,RegExp(`${lm(n.value,e)}$`),n.message,e);break;case"datetime":bn(i,"date-time",n.message,e);break;case"date":bn(i,"date",n.message,e);break;case"time":bn(i,"time",n.message,e);break;case"duration":bn(i,"duration",n.message,e);break;case"length":me(i,"minLength",typeof i.minLength=="number"?Math.max(i.minLength,n.value):n.value,n.message,e),me(i,"maxLength",typeof i.maxLength=="number"?Math.min(i.maxLength,n.value):n.value,n.message,e);break;case"includes":{_i(i,RegExp(lm(n.value,e)),n.message,e);break}case"ip":{n.version!=="v6"&&bn(i,"ipv4",n.message,e),n.version!=="v4"&&bn(i,"ipv6",n.message,e);break}case"base64url":_i(i,An.base64url,n.message,e);break;case"jwt":_i(i,An.jwt,n.message,e);break;case"cidr":{n.version!=="v6"&&_i(i,An.ipv4Cidr,n.message,e),n.version!=="v4"&&_i(i,An.ipv6Cidr,n.message,e);break}case"emoji":_i(i,An.emoji(),n.message,e);break;case"ulid":{_i(i,An.ulid,n.message,e);break}case"base64":{switch(e.base64Strategy){case"format:binary":{bn(i,"binary",n.message,e);break}case"contentEncoding:base64":{me(i,"contentEncoding","base64",n.message,e);break}case"pattern:zod":{_i(i,An.base64,n.message,e);break}}break}case"nanoid":_i(i,An.nanoid,n.message,e);case"toLowerCase":case"toUpperCase":case"trim":break;default:}return i}function lm(t,e){return e.patternStrategy==="escape"?P$(t):t}var y$=new Set("ABCDEFGHIJKLMNOPQRSTUVXYZabcdefghijklmnopqrstuvxyz0123456789");function P$(t){let e="";for(let i=0;ia.format)?(t.anyOf||(t.anyOf=[]),t.format&&(t.anyOf.push({format:t.format,...t.errorMessage&&n.errorMessages&&{errorMessage:{format:t.errorMessage.format}}}),delete t.format,t.errorMessage&&(delete t.errorMessage.format,Object.keys(t.errorMessage).length===0&&delete t.errorMessage)),t.anyOf.push({format:e,...i&&n.errorMessages&&{errorMessage:{format:i}}})):me(t,"format",e,i,n)}function _i(t,e,i,n){t.pattern||t.allOf?.some(a=>a.pattern)?(t.allOf||(t.allOf=[]),t.pattern&&(t.allOf.push({pattern:t.pattern,...t.errorMessage&&n.errorMessages&&{errorMessage:{pattern:t.errorMessage.pattern}}}),delete t.pattern,t.errorMessage&&(delete t.errorMessage.pattern,Object.keys(t.errorMessage).length===0&&delete t.errorMessage)),t.allOf.push({pattern:_S(e,n),...i&&n.errorMessages&&{errorMessage:{pattern:i}}})):me(t,"pattern",_S(e,n),i,n)}function _S(t,e){if(!e.applyRegexFlags||!t.flags)return t.source;let i={i:t.flags.includes("i"),m:t.flags.includes("m"),s:t.flags.includes("s")},n=i.i?t.source.toLowerCase():t.source,a="",r=!1,s=!1,o=!1;for(let l=0;l({...n,[a]:Y(t.valueType._def,{...e,currentPath:[...e.currentPath,"properties",a]})??Ve(e)}),{}),additionalProperties:e.rejectedAdditionalProperties};let i={type:"object",additionalProperties:Y(t.valueType._def,{...e,currentPath:[...e.currentPath,"additionalProperties"]})??e.allowedAdditionalProperties};if(e.target==="openApi3")return i;if(t.keyType?._def.typeName===E.ZodString&&t.keyType._def.checks?.length){let{type:n,...a}=qu(t.keyType._def,e);return{...i,propertyNames:a}}else{if(t.keyType?._def.typeName===E.ZodEnum)return{...i,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:n,...a}=ku(t.keyType._def,e);return{...i,propertyNames:a}}}return i}function _S(t,e){if(e.mapStrategy==="record")return _u(t,e);let i=Y(t.keyType._def,{...e,currentPath:[...e.currentPath,"items","items","0"]})||Ve(e),n=Y(t.valueType._def,{...e,currentPath:[...e.currentPath,"items","items","1"]})||Ve(e);return{type:"array",maxItems:125,items:{type:"array",items:[i,n],minItems:2,maxItems:2}}}function HS(t){let e=t.values,n=Object.keys(t.values).filter(r=>typeof e[e[r]]!="number").map(r=>e[r]),a=Array.from(new Set(n.map(r=>typeof r)));return{type:a.length===1?a[0]==="string"?"string":"number":["string","number"],enum:n}}function RS(t){return t.target==="openAi"?void 0:{not:Ve({...t,currentPath:[...t.currentPath,"not"]})}}function IS(t){return t.target==="openApi3"?{enum:["null"],nullable:!0}:{type:"null"}}var Zs={ZodString:"string",ZodNumber:"number",ZodBigInt:"integer",ZodBoolean:"boolean",ZodNull:"null"};function DS(t,e){if(e.target==="openApi3")return zS(t,e);let i=t.options instanceof Map?Array.from(t.options.values()):t.options;if(i.every(n=>n._def.typeName in Zs&&(!n._def.checks||!n._def.checks.length))){let n=i.reduce((a,r)=>{let s=Zs[r._def.typeName];return s&&!a.includes(s)?[...a,s]:a},[]);return{type:n.length>1?n:n[0]}}else if(i.every(n=>n._def.typeName==="ZodLiteral"&&!n.description)){let n=i.reduce((a,r)=>{let s=typeof r._def.value;switch(s){case"string":case"number":case"boolean":return[...a,s];case"bigint":return[...a,"integer"];case"object":if(r._def.value===null)return[...a,"null"];case"symbol":case"undefined":case"function":default:return a}},[]);if(n.length===i.length){let a=n.filter((r,s,o)=>o.indexOf(r)===s);return{type:a.length>1?a:a[0],enum:i.reduce((r,s)=>r.includes(s._def.value)?r:[...r,s._def.value],[])}}}else if(i.every(n=>n._def.typeName==="ZodEnum"))return{type:"string",enum:i.reduce((n,a)=>[...n,...a._def.values.filter(r=>!n.includes(r))],[])};return zS(t,e)}var zS=(t,e)=>{let i=(t.options instanceof Map?Array.from(t.options.values()):t.options).map((n,a)=>Y(n._def,{...e,currentPath:[...e.currentPath,"anyOf",`${a}`]})).filter(n=>!!n&&(!e.strictUnions||typeof n=="object"&&Object.keys(n).length>0));return i.length?{anyOf:i}:void 0};function GS(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:Zs[t.innerType._def.typeName],nullable:!0}:{type:[Zs[t.innerType._def.typeName],"null"]};if(e.target==="openApi3"){let n=Y(t.innerType._def,{...e,currentPath:[...e.currentPath]});return n&&"$ref"in n?{allOf:[n],nullable:!0}:n&&{...n,nullable:!0}}let i=Y(t.innerType._def,{...e,currentPath:[...e.currentPath,"anyOf","0"]});return i&&{anyOf:[i,{type:"null"}]}}function $S(t,e){let i={type:"number"};if(!t.checks)return i;for(let n of t.checks)switch(n.kind){case"int":i.type="integer",rm(i,"type",n.message,e);break;case"min":e.target==="jsonSchema7"?n.inclusive?me(i,"minimum",n.value,n.message,e):me(i,"exclusiveMinimum",n.value,n.message,e):(n.inclusive||(i.exclusiveMinimum=!0),me(i,"minimum",n.value,n.message,e));break;case"max":e.target==="jsonSchema7"?n.inclusive?me(i,"maximum",n.value,n.message,e):me(i,"exclusiveMaximum",n.value,n.message,e):(n.inclusive||(i.exclusiveMaximum=!0),me(i,"maximum",n.value,n.message,e));break;case"multipleOf":me(i,"multipleOf",n.value,n.message,e);break}return i}function NS(t,e){let i=e.target==="openAi",n={type:"object",properties:{}},a=[],r=t.shape();for(let o in r){let l=r[o];if(l===void 0||l._def===void 0)continue;let u=j$(l);u&&i&&(l._def.typeName==="ZodOptional"&&(l=l._def.innerType),l.isNullable()||(l=l.nullable()),u=!1);let c=Y(l._def,{...e,currentPath:[...e.currentPath,"properties",o],propertyPath:[...e.currentPath,"properties",o]});c!==void 0&&(n.properties[o]=c,u||a.push(o))}a.length&&(n.required=a);let s=P$(t,e);return s!==void 0&&(n.additionalProperties=s),n}function P$(t,e){if(t.catchall._def.typeName!=="ZodNever")return Y(t.catchall._def,{...e,currentPath:[...e.currentPath,"additionalProperties"]});switch(t.unknownKeys){case"passthrough":return e.allowedAdditionalProperties;case"strict":return e.rejectedAdditionalProperties;case"strip":return e.removeAdditionalStrategy==="strict"?e.allowedAdditionalProperties:e.rejectedAdditionalProperties}}function j$(t){try{return t.isOptional()}catch{return!0}}var US=(t,e)=>{if(e.currentPath.toString()===e.propertyPath?.toString())return Y(t.innerType._def,e);let i=Y(t.innerType._def,{...e,currentPath:[...e.currentPath,"anyOf","1"]});return i?{anyOf:[{not:Ve(e)},i]}:Ve(e)};var LS=(t,e)=>{if(e.pipeStrategy==="input")return Y(t.in._def,e);if(e.pipeStrategy==="output")return Y(t.out._def,e);let i=Y(t.in._def,{...e,currentPath:[...e.currentPath,"allOf","0"]}),n=Y(t.out._def,{...e,currentPath:[...e.currentPath,"allOf",i?"1":"0"]});return{allOf:[i,n].filter(a=>a!==void 0)}};function WS(t,e){return Y(t.type._def,e)}function BS(t,e){let n={type:"array",uniqueItems:!0,items:Y(t.valueType._def,{...e,currentPath:[...e.currentPath,"items"]})};return t.minSize&&me(n,"minItems",t.minSize.value,t.minSize.message,e),t.maxSize&&me(n,"maxItems",t.maxSize.value,t.maxSize.message,e),n}function FS(t,e){return t.rest?{type:"array",minItems:t.items.length,items:t.items.map((i,n)=>Y(i._def,{...e,currentPath:[...e.currentPath,"items",`${n}`]})).reduce((i,n)=>n===void 0?i:[...i,n],[]),additionalItems:Y(t.rest._def,{...e,currentPath:[...e.currentPath,"additionalItems"]})}:{type:"array",minItems:t.items.length,maxItems:t.items.length,items:t.items.map((i,n)=>Y(i._def,{...e,currentPath:[...e.currentPath,"items",`${n}`]})).reduce((i,n)=>n===void 0?i:[...i,n],[])}}function VS(t){return{not:Ve(t)}}function JS(t){return Ve(t)}var ZS=(t,e)=>Y(t.innerType._def,e);var KS=(t,e,i)=>{switch(e){case E.ZodString:return qu(t,i);case E.ZodNumber:return $S(t,i);case E.ZodObject:return NS(t,i);case E.ZodBigInt:return jS(t,i);case E.ZodBoolean:return SS();case E.ZodDate:return sm(t,i);case E.ZodUndefined:return VS(i);case E.ZodNull:return IS(i);case E.ZodArray:return PS(t,i);case E.ZodUnion:case E.ZodDiscriminatedUnion:return DS(t,i);case E.ZodIntersection:return ES(t,i);case E.ZodTuple:return FS(t,i);case E.ZodRecord:return _u(t,i);case E.ZodLiteral:return kS(t,i);case E.ZodEnum:return MS(t);case E.ZodNativeEnum:return HS(t);case E.ZodNullable:return GS(t,i);case E.ZodOptional:return US(t,i);case E.ZodMap:return _S(t,i);case E.ZodSet:return BS(t,i);case E.ZodLazy:return()=>t.getter()._def;case E.ZodPromise:return WS(t,i);case E.ZodNaN:case E.ZodNever:return RS(i);case E.ZodEffects:return TS(t,i);case E.ZodAny:return Ve(i);case E.ZodUnknown:return JS(i);case E.ZodDefault:return xS(t,i);case E.ZodBranded:return ku(t,i);case E.ZodReadonly:return ZS(t,i);case E.ZodCatch:return OS(t,i);case E.ZodPipeline:return LS(t,i);case E.ZodFunction:case E.ZodVoid:case E.ZodSymbol:return;default:return(n=>{})(e)}};function Y(t,e,i=!1){let n=e.seen.get(t);if(e.override){let o=e.override?.(t,e,n,i);if(o!==AS)return o}if(n&&!i){let o=S$(n,e);if(o!==void 0)return o}let a={def:t,path:e.currentPath,jsonSchema:void 0};e.seen.set(t,a);let r=KS(t,t.typeName,e),s=typeof r=="function"?Y(r(),e):r;if(s&&O$(t,e,s),e.postProcess){let o=e.postProcess(s,t,e);return a.jsonSchema=s,o}return a.jsonSchema=s,s}var S$=(t,e)=>{switch(e.$refStrategy){case"root":return{$ref:t.path.join("/")};case"relative":return{$ref:Eu(e.currentPath,t.path)};case"none":case"seen":return t.path.lengthe.currentPath[n]===i)?(console.warn(`Recursive reference detected at ${e.currentPath.join("/")}! Defaulting to any`),Ve(e)):e.$refStrategy==="seen"?Ve(e):void 0}},O$=(t,e,i)=>(t.description&&(i.description=t.description,e.markdownDescription&&(i.markdownDescription=t.description)),i);var um=(t,e)=>{let i=yS(e),n=typeof e=="object"&&e.definitions?Object.entries(e.definitions).reduce((l,[u,c])=>({...l,[u]:Y(c._def,{...i,currentPath:[...i.basePath,i.definitionPath,u]},!0)??Ve(i)}),{}):void 0,a=typeof e=="string"?e:e?.nameStrategy==="title"?void 0:e?.name,r=Y(t._def,a===void 0?i:{...i,currentPath:[...i.basePath,i.definitionPath,a]},!1)??Ve(i),s=typeof e=="object"&&e.name!==void 0&&e.nameStrategy==="title"?e.name:void 0;s!==void 0&&(r.title=s),i.flags.hasReferencedOpenAiAnyType&&(n||(n={}),n[i.openAiAnyTypeName]||(n[i.openAiAnyTypeName]={type:["string","number","integer","boolean","array","null"],items:{$ref:i.$refStrategy==="relative"?"1":[...i.basePath,i.definitionPath,i.openAiAnyTypeName].join("/")}}));let o=a===void 0?n?{...r,[i.definitionPath]:n}:r:{$ref:[...i.$refStrategy==="relative"?[]:i.basePath,i.definitionPath,a].join("/"),[i.definitionPath]:{...n,[a]:r}};return i.target==="jsonSchema7"?o.$schema="http://json-schema.org/draft-07/schema#":(i.target==="jsonSchema2019-09"||i.target==="openAi")&&(o.$schema="https://json-schema.org/draft/2019-09/schema#"),i.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 x$(t){return!t||t==="jsonSchema7"||t==="draft-7"?"draft-7":t==="jsonSchema2019-09"||t==="draft-2020-12"?"draft-2020-12":"draft-7"}function cm(t,e){return on(t)?_g(t,{target:x$(e?.target),io:e?.pipeStrategy??"input"}):um(t,{strictUnions:e?.strictUnions??!0,pipeStrategy:e?.pipeStrategy??"input"})}function pm(t){let i=jt(t)?.method;if(!i)throw new Error("Schema is missing a method literal");let n=ru(i);if(typeof n!="string")throw new Error("Schema method literal must be a string");return n}function dm(t,e){let i=Pt(t,e);if(!i.success)throw i.error;return i.data}var T$=6e4,Hu=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(hu,i=>{this._oncancel(i)}),this.setNotificationHandler(mu,i=>{this._onprogress(i)}),this.setRequestHandler(gu,i=>({})),this._taskStore=e?.taskStore,this._taskMessageQueue=e?.taskMessageQueue,this._taskStore&&(this.setRequestHandler(fu,async(i,n)=>{let a=await this._taskStore.getTask(i.params.taskId,n.sessionId);if(!a)throw new L(V.InvalidParams,"Failed to retrieve task: Task not found");return{...a}}),this.setRequestHandler(vu,async(i,n)=>{let a=async()=>{let r=i.params.taskId;if(this._taskMessageQueue){let o;for(;o=await this._taskMessageQueue.dequeue(r,n.sessionId);){if(o.type==="response"||o.type==="error"){let l=o.message,u=l.id,c=this._requestResolvers.get(u);if(c)if(this._requestResolvers.delete(u),o.type==="response")c(l);else{let p=l,d=new L(p.error.code,p.error.message,p.error.data);c(d)}else{let p=o.type==="response"?"Response":"Error";this._onerror(new Error(`${p} handler missing for request ${u}`))}continue}await this._transport?.send(o.message,{relatedRequestId:n.requestId})}}let s=await this._taskStore.getTask(r,n.sessionId);if(!s)throw new L(V.InvalidParams,`Task not found: ${r}`);if(!Ot(s.status))return await this._waitForTaskUpdate(r,n.signal),await a();if(Ot(s.status)){let o=await this._taskStore.getTaskResult(r,n.sessionId);return this._clearTaskQueue(r),{...o,_meta:{...o._meta,[St]:{taskId:r}}}}return await a()};return await a()}),this.setRequestHandler(Cu,async(i,n)=>{try{let{tasks:a,nextCursor:r}=await this._taskStore.listTasks(i.params?.cursor,n.sessionId);return{tasks:a,nextCursor:r,_meta:{}}}catch(a){throw new L(V.InvalidParams,`Failed to list tasks: ${a instanceof Error?a.message:String(a)}`)}}),this.setRequestHandler(bu,async(i,n)=>{try{let a=await this._taskStore.getTask(i.params.taskId,n.sessionId);if(!a)throw new L(V.InvalidParams,`Task not found: ${i.params.taskId}`);if(Ot(a.status))throw new L(V.InvalidParams,`Cannot cancel task in terminal status: ${a.status}`);await this._taskStore.updateTaskStatus(i.params.taskId,"cancelled","Client cancelled task execution.",n.sessionId),this._clearTaskQueue(i.params.taskId);let r=await this._taskStore.getTask(i.params.taskId,n.sessionId);if(!r)throw new L(V.InvalidParams,`Task not found after cancellation: ${i.params.taskId}`);return{_meta:{},...r}}catch(a){throw a instanceof L?a:new L(V.InvalidRequest,`Failed to cancel task: ${a instanceof Error?a.message:String(a)}`)}}))}async _oncancel(e){if(!e.params.requestId)return;this._requestHandlerAbortControllers.get(e.params.requestId)?.abort(e.params.reason)}_setupTimeout(e,i,n,a,r=!1){this._timeoutInfo.set(e,{timeoutId:setTimeout(a,i),startTime:Date.now(),timeout:i,maxTotalTimeout:n,resetTimeoutOnProgress:r,onTimeout:a})}_resetTimeout(e){let i=this._timeoutInfo.get(e);if(!i)return!1;let n=Date.now()-i.startTime;if(i.maxTotalTimeout&&n>=i.maxTotalTimeout)throw this._timeoutInfo.delete(e),L.fromError(V.RequestTimeout,"Maximum total timeout exceeded",{maxTotalTimeout:i.maxTotalTimeout,totalElapsed:n});return clearTimeout(i.timeoutId),i.timeoutId=setTimeout(i.onTimeout,i.timeout),!0}_cleanupTimeout(e){let i=this._timeoutInfo.get(e);i&&(clearTimeout(i.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 i=this.transport?.onclose;this._transport.onclose=()=>{i?.(),this._onclose()};let n=this.transport?.onerror;this._transport.onerror=r=>{n?.(r),this._onerror(r)};let a=this._transport?.onmessage;this._transport.onmessage=(r,s)=>{a?.(r,s),$s(r)||lS(r)?this._onresponse(r):Bg(r)?this._onrequest(r,s):oS(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 n of this._timeoutInfo.values())clearTimeout(n.timeoutId);this._timeoutInfo.clear();for(let n of this._requestHandlerAbortControllers.values())n.abort();this._requestHandlerAbortControllers.clear();let i=L.fromError(V.ConnectionClosed,"Connection closed");this._transport=void 0,this.onclose?.();for(let n of e.values())n(i)}_onerror(e){this.onerror?.(e)}_onnotification(e){let i=this._notificationHandlers.get(e.method)??this.fallbackNotificationHandler;i!==void 0&&Promise.resolve().then(()=>i(e)).catch(n=>this._onerror(new Error(`Uncaught error in notification handler: ${n}`)))}_onrequest(e,i){let n=this._requestHandlers.get(e.method)??this.fallbackRequestHandler,a=this._transport,r=e.params?._meta?.[St]?.taskId;if(n===void 0){let c={jsonrpc:"2.0",id:e.id,error:{code:V.MethodNotFound,message:"Method not found"}};r&&this._taskMessageQueue?this._enqueueTaskMessage(r,{type:"error",message:c,timestamp:Date.now()},a?.sessionId).catch(p=>this._onerror(new Error(`Failed to enqueue error response: ${p}`))):a?.send(c).catch(p=>this._onerror(new Error(`Failed to send an error response: ${p}`)));return}let s=new AbortController;this._requestHandlerAbortControllers.set(e.id,s);let o=aS(e.params)?e.params.task:void 0,l=this._taskStore?this.requestTaskStore(e,a?.sessionId):void 0,u={signal:s.signal,sessionId:a?.sessionId,_meta:e.params?._meta,sendNotification:async c=>{if(s.signal.aborted)return;let p={relatedRequestId:e.id};r&&(p.relatedTask={taskId:r}),await this.notification(c,p)},sendRequest:async(c,p,d)=>{if(s.signal.aborted)throw new L(V.ConnectionClosed,"Request was cancelled");let h={...d,relatedRequestId:e.id};r&&!h.relatedTask&&(h.relatedTask={taskId:r});let g=h.relatedTask?.taskId??r;return g&&l&&await l.updateTaskStatus(g,"input_required"),await this.request(c,p,h)},authInfo:i?.authInfo,requestId:e.id,requestInfo:i?.requestInfo,taskId:r,taskStore:l,taskRequestedTtl:o?.ttl,closeSSEStream:i?.closeSSEStream,closeStandaloneSSEStream:i?.closeStandaloneSSEStream};Promise.resolve().then(()=>{o&&this.assertTaskHandlerCapability(e.method)}).then(()=>n(e,u)).then(async c=>{if(s.signal.aborted)return;let p={result:c,jsonrpc:"2.0",id:e.id};r&&this._taskMessageQueue?await this._enqueueTaskMessage(r,{type:"response",message:p,timestamp:Date.now()},a?.sessionId):await a?.send(p)},async c=>{if(s.signal.aborted)return;let p={jsonrpc:"2.0",id:e.id,error:{code:Number.isSafeInteger(c.code)?c.code:V.InternalError,message:c.message??"Internal error",...c.data!==void 0&&{data:c.data}}};r&&this._taskMessageQueue?await this._enqueueTaskMessage(r,{type:"error",message:p,timestamp:Date.now()},a?.sessionId):await a?.send(p)}).catch(c=>this._onerror(new Error(`Failed to send response: ${c}`))).finally(()=>{this._requestHandlerAbortControllers.get(e.id)===s&&this._requestHandlerAbortControllers.delete(e.id)})}_onprogress(e){let{progressToken:i,...n}=e.params,a=Number(i),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(n)}_onresponse(e){let i=Number(e.id),n=this._requestResolvers.get(i);if(n){if(this._requestResolvers.delete(i),$s(e))n(e);else{let s=new L(e.error.code,e.error.message,e.error.data);n(s)}return}let a=this._responseHandlers.get(i);if(a===void 0){this._onerror(new Error(`Received a response for an unknown message ID: ${JSON.stringify(e)}`));return}this._responseHandlers.delete(i),this._cleanupTimeout(i);let r=!1;if($s(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,i))}}if(r||this._progressHandlers.delete(i),$s(e))a(e);else{let s=L.fromError(e.error.code,e.error.message,e.error.data);a(s)}}get transport(){return this._transport}async close(){await this._transport?.close()}async*requestStream(e,i,n){let{task:a}=n??{};if(!a){try{yield{type:"result",result:await this.request(e,i,n)}}catch(s){yield{type:"error",error:s instanceof L?s:new L(V.InternalError,String(s))}}return}let r;try{let s=await this.request(e,fr,n);if(s.task)r=s.task.taskId,yield{type:"taskCreated",task:s.task};else throw new L(V.InternalError,"Task creation did not return a task");for(;;){let o=await this.getTask({taskId:r},n);if(yield{type:"taskStatus",task:o},Ot(o.status)){o.status==="completed"?yield{type:"result",result:await this.getTaskResult({taskId:r},i,n)}:o.status==="failed"?yield{type:"error",error:new L(V.InternalError,`Task ${r} failed`)}:o.status==="cancelled"&&(yield{type:"error",error:new L(V.InternalError,`Task ${r} was cancelled`)});return}if(o.status==="input_required"){yield{type:"result",result:await this.getTaskResult({taskId:r},i,n)};return}let l=o.pollInterval??this._options?.defaultTaskPollInterval??1e3;await new Promise(u=>setTimeout(u,l)),n?.signal?.throwIfAborted()}}catch(s){yield{type:"error",error:s instanceof L?s:new L(V.InternalError,String(s))}}}request(e,i,n){let{relatedRequestId:a,resumptionToken:r,onresumptiontoken:s,task:o,relatedTask:l}=n??{};return new Promise((u,c)=>{let p=y=>{c(y)};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(y){p(y);return}n?.signal?.throwIfAborted();let d=this._requestMessageId++,h={...e,jsonrpc:"2.0",id:d};n?.onprogress&&(this._progressHandlers.set(d,n.onprogress),h.params={...e.params,_meta:{...e.params?._meta||{},progressToken:d}}),o&&(h.params={...h.params,task:o}),l&&(h.params={...h.params,_meta:{...h.params?._meta||{},[St]:l}});let g=y=>{this._responseHandlers.delete(d),this._progressHandlers.delete(d),this._cleanupTimeout(d),this._transport?.send({jsonrpc:"2.0",method:"notifications/cancelled",params:{requestId:d,reason:String(y)}},{relatedRequestId:a,resumptionToken:r,onresumptiontoken:s}).catch(b=>this._onerror(new Error(`Failed to send cancellation: ${b}`)));let A=y instanceof L?y:new L(V.RequestTimeout,String(y));c(A)};this._responseHandlers.set(d,y=>{if(!n?.signal?.aborted){if(y instanceof Error)return c(y);try{let A=Pt(i,y.result);A.success?u(A.data):c(A.error)}catch(A){c(A)}}}),n?.signal?.addEventListener("abort",()=>{g(n?.signal?.reason)});let m=n?.timeout??T$,f=()=>g(L.fromError(V.RequestTimeout,"Request timed out",{timeout:m}));this._setupTimeout(d,m,n?.maxTotalTimeout,f,n?.resetTimeoutOnProgress??!1);let v=l?.taskId;if(v){let y=A=>{let b=this._responseHandlers.get(d);b?b(A):this._onerror(new Error(`Response handler missing for side-channeled request ${d}`))};this._requestResolvers.set(d,y),this._enqueueTaskMessage(v,{type:"request",message:h,timestamp:Date.now()}).catch(A=>{this._cleanupTimeout(d),c(A)})}else this._transport.send(h,{relatedRequestId:a,resumptionToken:r,onresumptiontoken:s}).catch(y=>{this._cleanupTimeout(d),c(y)})})}async getTask(e,i){return this.request({method:"tasks/get",params:e},wu,i)}async getTaskResult(e,i,n){return this.request({method:"tasks/result",params:e},i,n)}async listTasks(e,i){return this.request({method:"tasks/list",params:e},Au,i)}async cancelTask(e,i){return this.request({method:"tasks/cancel",params:e},pS,i)}async notification(e,i){if(!this._transport)throw new Error("Not connected");this.assertNotificationCapability(e.method);let n=i?.relatedTask?.taskId;if(n){let o={...e,jsonrpc:"2.0",params:{...e.params,_meta:{...e.params?._meta||{},[St]:i.relatedTask}}};await this._enqueueTaskMessage(n,{type:"notification",message:o,timestamp:Date.now()});return}if((this._options?.debouncedNotificationMethods??[]).includes(e.method)&&!e.params&&!i?.relatedRequestId&&!i?.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"};i?.relatedTask&&(o={...o,params:{...o.params,_meta:{...o.params?._meta||{},[St]:i.relatedTask}}}),this._transport?.send(o,i).catch(l=>this._onerror(l))});return}let s={...e,jsonrpc:"2.0"};i?.relatedTask&&(s={...s,params:{...s.params,_meta:{...s.params?._meta||{},[St]:i.relatedTask}}}),await this._transport.send(s,i)}setRequestHandler(e,i){let n=pm(e);this.assertRequestHandlerCapability(n),this._requestHandlers.set(n,(a,r)=>{let s=dm(e,a);return Promise.resolve(i(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,i){let n=pm(e);this._notificationHandlers.set(n,a=>{let r=dm(e,a);return Promise.resolve(i(r))})}removeNotificationHandler(e){this._notificationHandlers.delete(e)}_cleanupTaskProgressHandler(e){let i=this._taskProgressTokens.get(e);i!==void 0&&(this._progressHandlers.delete(i),this._taskProgressTokens.delete(e))}async _enqueueTaskMessage(e,i,n){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,i,n,a)}async _clearTaskQueue(e,i){if(this._taskMessageQueue){let n=await this._taskMessageQueue.dequeueAll(e,i);for(let a of n)if(a.type==="request"&&Bg(a.message)){let r=a.message.id,s=this._requestResolvers.get(r);s?(s(new L(V.InternalError,"Task cancelled or completed")),this._requestResolvers.delete(r)):this._onerror(new Error(`Resolver missing for request ${r} during task ${e} cleanup`))}}}async _waitForTaskUpdate(e,i){let n=this._options?.defaultTaskPollInterval??1e3;try{let a=await this._taskStore?.getTask(e);a?.pollInterval&&(n=a.pollInterval)}catch{}return new Promise((a,r)=>{if(i.aborted){r(new L(V.InvalidRequest,"Request cancelled"));return}let s=setTimeout(a,n);i.addEventListener("abort",()=>{clearTimeout(s),r(new L(V.InvalidRequest,"Request cancelled"))},{once:!0})})}requestTaskStore(e,i){let n=this._taskStore;if(!n)throw new Error("No task store configured");return{createTask:async a=>{if(!e)throw new Error("No request provided");return await n.createTask(a,e.id,{method:e.method,params:e.params},i)},getTask:async a=>{let r=await n.getTask(a,i);if(!r)throw new L(V.InvalidParams,"Failed to retrieve task: Task not found");return r},storeTaskResult:async(a,r,s)=>{await n.storeTaskResult(a,r,s,i);let o=await n.getTask(a,i);if(o){let l=Bs.parse({method:"notifications/tasks/status",params:o});await this.notification(l),Ot(o.status)&&this._cleanupTaskProgressHandler(a)}},getTaskResult:a=>n.getTaskResult(a,i),updateTaskStatus:async(a,r,s)=>{let o=await n.getTask(a,i);if(!o)throw new L(V.InvalidParams,`Task "${a}" not found - it may have been cleaned up`);if(Ot(o.status))throw new L(V.InvalidParams,`Cannot update task "${a}" from terminal status "${o.status}" to "${r}". Terminal states (completed, failed, cancelled) cannot transition to other states.`);await n.updateTaskStatus(a,r,s,i);let l=await n.getTask(a,i);if(l){let u=Bs.parse({method:"notifications/tasks/status",params:l});await this.notification(u),Ot(l.status)&&this._cleanupTaskProgressHandler(a)}},listTasks:a=>n.listTasks(a,i)}}};function QS(t){return t!==null&&typeof t=="object"&&!Array.isArray(t)}function YS(t,e){let i={...t};for(let n in e){let a=n,r=e[a];if(r===void 0)continue;let s=i[a];QS(s)&&QS(r)?i[a]={...s,...r}:i[a]=r}return i}var LT=Xa(Xf(),1),WT=Xa(UT(),1);function kF(){let t=new LT.default({strict:!1,validateFormats:!0,validateSchema:!1,allErrors:!0});return(0,WT.default)(t),t}var mc=class{constructor(e){this._ajv=e??kF()}getValidator(e){let i="$id"in e&&typeof e.$id=="string"?this._ajv.getSchema(e.$id)??this._ajv.compile(e):this._ajv.compile(e);return n=>i(n)?{valid:!0,data:n,errorMessage:void 0}:{valid:!1,data:void 0,errorMessage:this._ajv.errorsText(i.errors)}}};var fc=class{constructor(e){this._server=e}requestStream(e,i,n){return this._server.requestStream(e,i,n)}createMessageStream(e,i){let n=this._server.getClientCapabilities();if((e.tools||e.toolChoice)&&!n?.sampling?.tools)throw new Error("Client does not support sampling tools capability.");if(e.messages.length>0){let a=e.messages[e.messages.length-1],r=Array.isArray(a.content)?a.content:[a.content],s=r.some(c=>c.type==="tool_result"),o=e.messages.length>1?e.messages[e.messages.length-2]:void 0,l=o?Array.isArray(o.content)?o.content:[o.content]:[],u=l.some(c=>c.type==="tool_use");if(s){if(r.some(c=>c.type!=="tool_result"))throw new Error("The last message must contain only tool_result content if any is present");if(!u)throw new Error("tool_result blocks are not matching any tool_use from the previous message")}if(u){let c=new Set(l.filter(d=>d.type==="tool_use").map(d=>d.id)),p=new Set(r.filter(d=>d.type==="tool_result").map(d=>d.toolUseId));if(c.size!==p.size||![...c].every(d=>p.has(d)))throw new Error("ids of tool_result blocks and tool_use blocks from previous message do not match")}}return this.requestStream({method:"sampling/createMessage",params:e},Js,i)}elicitInputStream(e,i){let n=this._server.getClientCapabilities(),a=e.mode??"form";switch(a){case"url":{if(!n?.elicitation?.url)throw new Error("Client does not support url elicitation.");break}case"form":{if(!n?.elicitation?.form)throw new Error("Client does not support form elicitation.");break}}let r=a==="form"&&e.mode===void 0?{...e,mode:"form"}:e;return this.requestStream({method:"elicitation/create",params:r},Cr,i)}async getTask(e,i){return this._server.getTask({taskId:e},i)}async getTaskResult(e,i,n){return this._server.getTaskResult({taskId:e},i,n)}async listTasks(e,i){return this._server.listTasks(e?{cursor:e}:void 0,i)}async cancelTask(e,i){return this._server.cancelTask({taskId:e},i)}};function BT(t,e,i){if(!t)throw new Error(`${i} does not support task creation (required for ${e})`);switch(e){case"tools/call":if(!t.tools?.call)throw new Error(`${i} does not support task creation for tools/call (required for ${e})`);break;default:break}}function FT(t,e,i){if(!t)throw new Error(`${i} does not support task creation (required for ${e})`);switch(e){case"sampling/createMessage":if(!t.sampling?.createMessage)throw new Error(`${i} does not support task creation for sampling/createMessage (required for ${e})`);break;case"elicitation/create":if(!t.elicitation?.create)throw new Error(`${i} does not support task creation for elicitation/create (required for ${e})`);break;default:break}}var wc=class extends Hu{constructor(e,i){super(i),this._serverInfo=e,this._loggingLevels=new Map,this.LOG_LEVEL_SEVERITY=new Map(Vs.options.map((n,a)=>[n,a])),this.isMessageIgnored=(n,a)=>{let r=this._loggingLevels.get(a);return r?this.LOG_LEVEL_SEVERITY.get(n)this._oninitialize(n)),this.setNotificationHandler(Zg,()=>this.oninitialized?.()),this._capabilities.logging&&this.setRequestHandler(nm,async(n,a)=>{let r=a.sessionId||a.requestInfo?.headers["mcp-session-id"]||void 0,{level:s}=n.params,o=Vs.safeParse(s);return o.success&&this._loggingLevels.set(r,o.data),{}})}get experimental(){return this._experimental||(this._experimental={tasks:new fc(this)}),this._experimental}registerCapabilities(e){if(this.transport)throw new Error("Cannot register capabilities after connecting to transport");this._capabilities=YS(this._capabilities,e)}setRequestHandler(e,i){let a=jt(e)?.method;if(!a)throw new Error("Schema is missing a method literal");let r;if(on(a)){let o=a;r=o._zod?.def?.value??o.value}else{let o=a;r=o._def?.value??o.value}if(typeof r!="string")throw new Error("Schema method literal must be a string");if(r==="tools/call"){let o=async(l,u)=>{let c=Pt(vr,l);if(!c.success){let g=c.error instanceof Error?c.error.message:String(c.error);throw new L(V.InvalidParams,`Invalid tools/call request: ${g}`)}let{params:p}=c.data,d=await Promise.resolve(i(l,u));if(p.task){let g=Pt(fr,d);if(!g.success){let m=g.error instanceof Error?g.error.message:String(g.error);throw new L(V.InvalidParams,`Invalid task creation result: ${m}`)}return g.data}let h=Pt(Tu,d);if(!h.success){let g=h.error instanceof Error?h.error.message:String(h.error);throw new L(V.InvalidParams,`Invalid tools/call result: ${g}`)}return h.data};return super.setRequestHandler(e,o)}return super.setRequestHandler(e,i)}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){FT(this._clientCapabilities?.tasks?.requests,e,"Client")}assertTaskHandlerCapability(e){this._capabilities&&BT(this._capabilities.tasks?.requests,e,"Server")}async _oninitialize(e){let i=e.params.protocolVersion;return this._clientCapabilities=e.params.capabilities,this._clientVersion=e.params.clientInfo,{protocolVersion:iS.includes(i)?i:Lg,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"},du)}async createMessage(e,i){if((e.tools||e.toolChoice)&&!this._clientCapabilities?.sampling?.tools)throw new Error("Client does not support sampling tools capability.");if(e.messages.length>0){let n=e.messages[e.messages.length-1],a=Array.isArray(n.content)?n.content:[n.content],r=a.some(u=>u.type==="tool_result"),s=e.messages.length>1?e.messages[e.messages.length-2]:void 0,o=s?Array.isArray(s.content)?s.content:[s.content]:[],l=o.some(u=>u.type==="tool_use");if(r){if(a.some(u=>u.type!=="tool_result"))throw new Error("The last message must contain only tool_result content if any is present");if(!l)throw new Error("tool_result blocks are not matching any tool_use from the previous message")}if(l){let u=new Set(o.filter(p=>p.type==="tool_use").map(p=>p.id)),c=new Set(a.filter(p=>p.type==="tool_result").map(p=>p.toolUseId));if(u.size!==c.size||![...u].every(p=>c.has(p)))throw new Error("ids of tool_result blocks and tool_use blocks from previous message do not match")}}return e.tools?this.request({method:"sampling/createMessage",params:e},tm,i):this.request({method:"sampling/createMessage",params:e},Js,i)}async elicitInput(e,i){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},Cr,i)}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},Cr,i);if(r.action==="accept"&&r.content&&a.requestedSchema)try{let o=this._jsonSchemaValidator.getValidator(a.requestedSchema)(r.content);if(!o.valid)throw new L(V.InvalidParams,`Elicitation response content does not match requested schema: ${o.errorMessage}`)}catch(s){throw s instanceof L?s:new L(V.InternalError,`Error validating elicitation response: ${s instanceof Error?s.message:String(s)}`)}return r}}}createElicitationCompletionNotifier(e,i){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}},i)}async listRoots(e,i){return this.request({method:"roots/list",params:e},am,i)}async sendLoggingMessage(e,i){if(this._capabilities.logging&&!this.isMessageIgnored(e.level,i))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 JT=Symbol.for("mcp.completable");function ow(t){return!!t&&typeof t=="object"&&JT in t}function ZT(t){return t[JT]?.complete}var VT;(function(t){t.Completable="McpCompletable"})(VT||(VT={}));var qF=/^[A-Za-z0-9._-]{1,128}$/;function _F(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"),!qF.test(t)){let i=t.split("").filter(n=>!/[A-Za-z0-9._-]/.test(n)).filter((n,a,r)=>r.indexOf(n)===a);return e.push(`Tool name contains invalid characters: ${i.map(n=>`"${n}"`).join(", ")}`,"Allowed characters are: A-Z, a-z, 0-9, underscore (_), dash (-), and dot (.)"),{isValid:!1,warnings:e}}return{isValid:!0,warnings:e}}function HF(t,e){if(e.length>0){console.warn(`Tool name validation warning for "${t}":`);for(let i of e)console.warn(` - ${i}`);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 lw(t){let e=_F(t);return HF(t,e.warnings),e.isValid}var vc=class{constructor(e){this._mcpServer=e}registerToolTask(e,i,n){let a={taskSupport:"required",...i.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,i.title,i.description,i.inputSchema,i.outputSchema,i.annotations,a,i._meta,n)}};var Cc=class{constructor(e,i){this._registeredResources={},this._registeredResourceTemplates={},this._registeredTools={},this._registeredPrompts={},this._toolHandlersInitialized=!1,this._completionHandlerInitialized=!1,this._resourceHandlersInitialized=!1,this._promptHandlersInitialized=!1,this.server=new wc(e,i)}get experimental(){return this._experimental||(this._experimental={tasks:new vc(this)}),this._experimental}async connect(e){return await this.server.connect(e)}async close(){await this.server.close()}setToolRequestHandlers(){this._toolHandlersInitialized||(this.server.assertCanSetRequestHandler(Rt(xu)),this.server.assertCanSetRequestHandler(Rt(vr)),this.server.registerCapabilities({tools:{listChanged:!0}}),this.server.setRequestHandler(xu,()=>({tools:Object.entries(this._registeredTools).filter(([,e])=>e.enabled).map(([e,i])=>{let n={name:e,title:i.title,description:i.description,inputSchema:(()=>{let a=gr(i.inputSchema);return a?cm(a,{strictUnions:!0,pipeStrategy:"input"}):RF})(),annotations:i.annotations,execution:i.execution,_meta:i._meta};if(i.outputSchema){let a=gr(i.outputSchema);a&&(n.outputSchema=cm(a,{strictUnions:!0,pipeStrategy:"output"}))}return n})})),this.server.setRequestHandler(vr,async(e,i)=>{try{let n=this._registeredTools[e.params.name];if(!n)throw new L(V.InvalidParams,`Tool ${e.params.name} not found`);if(!n.enabled)throw new L(V.InvalidParams,`Tool ${e.params.name} disabled`);let a=!!e.params.task,r=n.execution?.taskSupport,s="createTask"in n.handler;if((r==="required"||r==="optional")&&!s)throw new L(V.InternalError,`Tool ${e.params.name} has taskSupport '${r}' but was not registered with registerToolTask`);if(r==="required"&&!a)throw new L(V.MethodNotFound,`Tool ${e.params.name} requires task augmentation (taskSupport: 'required')`);if(r==="optional"&&!a&&s)return await this.handleAutomaticTaskPolling(n,e,i);let o=await this.validateToolInput(n,e.params.arguments,e.params.name),l=await this.executeToolHandler(n,o,i);return a||await this.validateToolOutput(n,l,e.params.name),l}catch(n){if(n instanceof L&&n.code===V.UrlElicitationRequired)throw n;return this.createToolError(n instanceof Error?n.message:String(n))}}),this._toolHandlersInitialized=!0)}createToolError(e){return{content:[{type:"text",text:e}],isError:!0}}async validateToolInput(e,i,n){if(!e.inputSchema)return;let r=gr(e.inputSchema)??e.inputSchema,s=await tu(r,i);if(!s.success){let o="error"in s?s.error:"Unknown error",l=au(o);throw new L(V.InvalidParams,`Input validation error: Invalid arguments for tool ${n}: ${l}`)}return s.data}async validateToolOutput(e,i,n){if(!e.outputSchema||!("content"in i)||i.isError)return;if(!i.structuredContent)throw new L(V.InvalidParams,`Output validation error: Tool ${n} has an output schema but no structured content was provided`);let a=gr(e.outputSchema),r=await tu(a,i.structuredContent);if(!r.success){let s="error"in r?r.error:"Unknown error",o=au(s);throw new L(V.InvalidParams,`Output validation error: Invalid structured content for tool ${n}: ${o}`)}}async executeToolHandler(e,i,n){let a=e.handler;if("createTask"in a){if(!n.taskStore)throw new Error("No task store provided.");let s={...n,taskStore:n.taskStore};if(e.inputSchema){let o=a;return await Promise.resolve(o.createTask(i,s))}else{let o=a;return await Promise.resolve(o.createTask(s))}}if(e.inputSchema){let s=a;return await Promise.resolve(s(i,n))}else{let s=a;return await Promise.resolve(s(n))}}async handleAutomaticTaskPolling(e,i,n){if(!n.taskStore)throw new Error("No task store provided for task-capable tool.");let a=await this.validateToolInput(e,i.params.arguments,i.params.name),r=e.handler,s={...n,taskStore:n.taskStore},o=a?await Promise.resolve(r.createTask(a,s)):await Promise.resolve(r.createTask(s)),l=o.task.taskId,u=o.task,c=u.pollInterval??5e3;for(;u.status!=="completed"&&u.status!=="failed"&&u.status!=="cancelled";){await new Promise(d=>setTimeout(d,c));let p=await n.taskStore.getTask(l);if(!p)throw new L(V.InternalError,`Task ${l} not found during polling`);u=p}return await n.taskStore.getTaskResult(l)}setCompletionRequestHandler(){this._completionHandlerInitialized||(this.server.assertCanSetRequestHandler(Rt(Mu)),this.server.registerCapabilities({completions:{}}),this.server.setRequestHandler(Mu,async e=>{switch(e.params.ref.type){case"ref/prompt":return wS(e),this.handlePromptCompletion(e,e.params.ref);case"ref/resource":return vS(e),this.handleResourceCompletion(e,e.params.ref);default:throw new L(V.InvalidParams,`Invalid completion reference: ${e.params.ref}`)}}),this._completionHandlerInitialized=!0)}async handlePromptCompletion(e,i){let n=this._registeredPrompts[i.name];if(!n)throw new L(V.InvalidParams,`Prompt ${i.name} not found`);if(!n.enabled)throw new L(V.InvalidParams,`Prompt ${i.name} disabled`);if(!n.argsSchema)return Oo;let r=jt(n.argsSchema)?.[e.params.argument.name];if(!ow(r))return Oo;let s=ZT(r);if(!s)return Oo;let o=await s(e.params.argument.value,e.params.context);return QT(o)}async handleResourceCompletion(e,i){let n=Object.values(this._registeredResourceTemplates).find(s=>s.resourceTemplate.uriTemplate.toString()===i.uri);if(!n){if(this._registeredResources[i.uri])return Oo;throw new L(V.InvalidParams,`Resource template ${e.params.ref.uri} not found`)}let a=n.resourceTemplate.completeCallback(e.params.argument.name);if(!a)return Oo;let r=await a(e.params.argument.value,e.params.context);return QT(r)}setResourceRequestHandlers(){this._resourceHandlersInitialized||(this.server.assertCanSetRequestHandler(Rt(yu)),this.server.assertCanSetRequestHandler(Rt(Pu)),this.server.assertCanSetRequestHandler(Rt(ju)),this.server.registerCapabilities({resources:{listChanged:!0}}),this.server.setRequestHandler(yu,async(e,i)=>{let n=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(i);for(let o of s.resources)a.push({...r.metadata,...o})}return{resources:[...n,...a]}}),this.server.setRequestHandler(Pu,async()=>({resourceTemplates:Object.entries(this._registeredResourceTemplates).map(([i,n])=>({name:i,uriTemplate:n.resourceTemplate.uriTemplate.toString(),...n.metadata}))})),this.server.setRequestHandler(ju,async(e,i)=>{let n=new URL(e.params.uri),a=this._registeredResources[n.toString()];if(a){if(!a.enabled)throw new L(V.InvalidParams,`Resource ${n} disabled`);return a.readCallback(n,i)}for(let r of Object.values(this._registeredResourceTemplates)){let s=r.resourceTemplate.uriTemplate.match(n.toString());if(s)return r.readCallback(n,s,i)}throw new L(V.InvalidParams,`Resource ${n} not found`)}),this._resourceHandlersInitialized=!0)}setPromptRequestHandlers(){this._promptHandlersInitialized||(this.server.assertCanSetRequestHandler(Rt(Su)),this.server.assertCanSetRequestHandler(Rt(Ou)),this.server.registerCapabilities({prompts:{listChanged:!0}}),this.server.setRequestHandler(Su,()=>({prompts:Object.entries(this._registeredPrompts).filter(([,e])=>e.enabled).map(([e,i])=>({name:e,title:i.title,description:i.description,arguments:i.argsSchema?IF(i.argsSchema):void 0}))})),this.server.setRequestHandler(Ou,async(e,i)=>{let n=this._registeredPrompts[e.params.name];if(!n)throw new L(V.InvalidParams,`Prompt ${e.params.name} not found`);if(!n.enabled)throw new L(V.InvalidParams,`Prompt ${e.params.name} disabled`);if(n.argsSchema){let a=gr(n.argsSchema),r=await tu(a,e.params.arguments);if(!r.success){let l="error"in r?r.error:"Unknown error",u=au(l);throw new L(V.InvalidParams,`Invalid arguments for prompt ${e.params.name}: ${u}`)}let s=r.data,o=n.callback;return await Promise.resolve(o(s,i))}else{let a=n.callback;return await Promise.resolve(a(i))}}),this._promptHandlersInitialized=!0)}resource(e,i,...n){let a;typeof n[0]=="object"&&(a=n.shift());let r=n[0];if(typeof i=="string"){if(this._registeredResources[i])throw new Error(`Resource ${i} is already registered`);let s=this._createRegisteredResource(e,void 0,i,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,i,a,r);return this.setResourceRequestHandlers(),this.sendResourceListChanged(),s}}registerResource(e,i,n,a){if(typeof i=="string"){if(this._registeredResources[i])throw new Error(`Resource ${i} is already registered`);let r=this._createRegisteredResource(e,n.title,i,n,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,n.title,i,n,a);return this.setResourceRequestHandlers(),this.sendResourceListChanged(),r}}_createRegisteredResource(e,i,n,a,r){let s={name:e,title:i,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!==n&&(delete this._registeredResources[n],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[n]=s,s}_createRegisteredResourceTemplate(e,i,n,a,r){let s={resourceTemplate:n,title:i,metadata:a,readCallback:r,enabled:!0,disable:()=>s.update({enabled:!1}),enable:()=>s.update({enabled:!0}),remove:()=>s.update({name:null}),update:u=>{typeof u.name<"u"&&u.name!==e&&(delete this._registeredResourceTemplates[e],u.name&&(this._registeredResourceTemplates[u.name]=s)),typeof u.title<"u"&&(s.title=u.title),typeof u.template<"u"&&(s.resourceTemplate=u.template),typeof u.metadata<"u"&&(s.metadata=u.metadata),typeof u.callback<"u"&&(s.readCallback=u.callback),typeof u.enabled<"u"&&(s.enabled=u.enabled),this.sendResourceListChanged()}};this._registeredResourceTemplates[e]=s;let o=n.uriTemplate.variableNames;return Array.isArray(o)&&o.some(u=>!!n.completeCallback(u))&&this.setCompletionRequestHandler(),s}_createRegisteredPrompt(e,i,n,a,r){let s={title:i,description:n,argsSchema:a===void 0?void 0:wa(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=wa(o.argsSchema)),typeof o.callback<"u"&&(s.callback=o.callback),typeof o.enabled<"u"&&(s.enabled=o.enabled),this.sendPromptListChanged()}};return this._registeredPrompts[e]=s,a&&Object.values(a).some(l=>{let u=l instanceof lu?l._def?.innerType:l;return ow(u)})&&this.setCompletionRequestHandler(),s}_createRegisteredTool(e,i,n,a,r,s,o,l,u){lw(e);let c={title:i,description:n,inputSchema:KT(a),outputSchema:KT(r),annotations:s,execution:o,_meta:l,handler:u,enabled:!0,disable:()=>c.update({enabled:!1}),enable:()=>c.update({enabled:!0}),remove:()=>c.update({name:null}),update:p=>{typeof p.name<"u"&&p.name!==e&&(typeof p.name=="string"&&lw(p.name),delete this._registeredTools[e],p.name&&(this._registeredTools[p.name]=c)),typeof p.title<"u"&&(c.title=p.title),typeof p.description<"u"&&(c.description=p.description),typeof p.paramsSchema<"u"&&(c.inputSchema=wa(p.paramsSchema)),typeof p.outputSchema<"u"&&(c.outputSchema=wa(p.outputSchema)),typeof p.callback<"u"&&(c.handler=p.callback),typeof p.annotations<"u"&&(c.annotations=p.annotations),typeof p._meta<"u"&&(c._meta=p._meta),typeof p.enabled<"u"&&(c.enabled=p.enabled),this.sendToolListChanged()}};return this._registeredTools[e]=c,this.setToolRequestHandlers(),this.sendToolListChanged(),c}tool(e,...i){if(this._registeredTools[e])throw new Error(`Tool ${e} is already registered`);let n,a,r,s;if(typeof i[0]=="string"&&(n=i.shift()),i.length>1){let l=i[0];if(uw(l))a=i.shift(),i.length>1&&typeof i[0]=="object"&&i[0]!==null&&!uw(i[0])&&(s=i.shift());else if(typeof l=="object"&&l!==null){if(Object.values(l).some(u=>typeof u=="object"&&u!==null))throw new Error(`Tool ${e} expected a Zod schema or ToolAnnotations, but received an unrecognized object`);s=i.shift()}}let o=i[0];return this._createRegisteredTool(e,void 0,n,a,r,s,{taskSupport:"forbidden"},void 0,o)}registerTool(e,i,n){if(this._registeredTools[e])throw new Error(`Tool ${e} is already registered`);let{title:a,description:r,inputSchema:s,outputSchema:o,annotations:l,_meta:u}=i;return this._createRegisteredTool(e,a,r,s,o,l,{taskSupport:"forbidden"},u,n)}prompt(e,...i){if(this._registeredPrompts[e])throw new Error(`Prompt ${e} is already registered`);let n;typeof i[0]=="string"&&(n=i.shift());let a;i.length>1&&(a=i.shift());let r=i[0],s=this._createRegisteredPrompt(e,void 0,n,a,r);return this.setPromptRequestHandlers(),this.sendPromptListChanged(),s}registerPrompt(e,i,n){if(this._registeredPrompts[e])throw new Error(`Prompt ${e} is already registered`);let{title:a,description:r,argsSchema:s}=i,o=this._createRegisteredPrompt(e,a,r,s,n);return this.setPromptRequestHandlers(),this.sendPromptListChanged(),o}isConnected(){return this.server.transport!==void 0}async sendLoggingMessage(e,i){return this.server.sendLoggingMessage(e,i)}sendResourceListChanged(){this.isConnected()&&this.server.sendResourceListChanged()}sendToolListChanged(){this.isConnected()&&this.server.sendToolListChanged()}sendPromptListChanged(){this.isConnected()&&this.server.sendPromptListChanged()}};var RF={type:"object",properties:{}};function YT(t){return t!==null&&typeof t=="object"&&"parse"in t&&typeof t.parse=="function"&&"safeParse"in t&&typeof t.safeParse=="function"}function XT(t){return"_def"in t||"_zod"in t||YT(t)}function uw(t){return typeof t!="object"||t===null||XT(t)?!1:Object.keys(t).length===0?!0:Object.values(t).some(YT)}function KT(t){if(t){if(uw(t))return wa(t);if(!XT(t))throw new Error("inputSchema must be a Zod schema or raw shape, received an unrecognized object");return t}}function IF(t){let e=jt(t);return e?Object.entries(e).map(([i,n])=>{let a=bj(n),r=yj(n);return{name:i,description:a,required:!r}}):[]}function Rt(t){let i=jt(t)?.method;if(!i)throw new Error("Schema is missing a method literal");let n=ru(i);if(typeof n=="string")return n;throw new Error("Schema method literal must be a string")}function QT(t){return{completion:{values:t.slice(0,100),total:t.length,hasMore:t.length>100}}}var Oo={completion:{values:[],hasMore:!1}};var cw=Xa(require("node:process"),1);var Ac=class{append(e){this._buffer=this._buffer?Buffer.concat([this._buffer,e]):e}readMessage(){if(!this._buffer)return null;let e=this._buffer.indexOf(` -`);if(e===-1)return null;let i=this._buffer.toString("utf8",0,e).replace(/\r$/,"");return this._buffer=this._buffer.subarray(e+1),zF(i)}clear(){this._buffer=void 0}};function zF(t){return uS.parse(JSON.parse(t))}function eM(t){return JSON.stringify(t)+` -`}var bc=class{constructor(e=cw.default.stdin,i=cw.default.stdout){this._stdin=e,this._stdout=i,this._readBuffer=new Ac,this._started=!1,this._ondata=n=>{this._readBuffer.append(n),this.processReadBuffer()},this._onerror=n=>{this.onerror?.(n)}}async start(){if(this._started)throw new Error("StdioServerTransport already started! If using Server class, note that connect() calls start() automatically.");this._started=!0,this._stdin.on("data",this._ondata),this._stdin.on("error",this._onerror)}processReadBuffer(){for(;;)try{let e=this._readBuffer.readMessage();if(e===null)break;this.onmessage?.(e)}catch(e){this.onerror?.(e)}}async close(){this._stdin.off("data",this._ondata),this._stdin.off("error",this._onerror),this._stdin.listenerCount("data")===0&&this._stdin.pause(),this._readBuffer.clear(),this.onclose?.()}send(e){return new Promise(i=>{let n=eM(e);this._stdout.write(n)?i():this._stdout.once("drain",i)})}};var ry=Xa(rI());var oI=require("node:child_process"),lI=Xa(require("node:fs")),dd=Xa(require("node:path"));var sI=12e4,eX=dd.default.resolve("bin","deploy-runner.js"),uI=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.",annotations:{title:"Deploy Flow",readOnlyHint:!1,destructiveHint:!0},inputSchema:{flowFile:Cn.string().min(1).describe("Path to the TypeScript flow file")}},handler:async({flowFile:e})=>{let i=dd.default.resolve(e);if(!lI.default.existsSync(i))return{isError:!0,content:[{type:"text",text:`Flow file not found: ${i}`}]};let n=[eX,"--flow-file",i];return new Promise(a=>{let r=[],s,o=!1,l=h=>{o||(o=!0,clearTimeout(c),a(h))},u=(0,oI.spawn)("node",n,{env:{...process.env,GENESYS_REGION:t.region,GENESYS_CLIENT_ID:t.clientId,GENESYS_CLIENT_SECRET:t.clientSecret},cwd:dd.default.dirname(i),stdio:["ignore","pipe","pipe"]}),c=setTimeout(()=>{u.kill("SIGTERM"),l({isError:!0,content:[{type:"text",text:`Deploy timed out after ${sI/1e3}s. +]`;continue}a+=n[l],n[l]==="\\"?r=!0:s&&n[l]==="]"?s=!1:!s&&n[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 _u(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((n,a)=>({...n,[a]:Y(t.valueType._def,{...e,currentPath:[...e.currentPath,"properties",a]})??Ve(e)}),{}),additionalProperties:e.rejectedAdditionalProperties};let i={type:"object",additionalProperties:Y(t.valueType._def,{...e,currentPath:[...e.currentPath,"additionalProperties"]})??e.allowedAdditionalProperties};if(e.target==="openApi3")return i;if(t.keyType?._def.typeName===E.ZodString&&t.keyType._def.checks?.length){let{type:n,...a}=qu(t.keyType._def,e);return{...i,propertyNames:a}}else{if(t.keyType?._def.typeName===E.ZodEnum)return{...i,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:n,...a}=ku(t.keyType._def,e);return{...i,propertyNames:a}}}return i}function HS(t,e){if(e.mapStrategy==="record")return _u(t,e);let i=Y(t.keyType._def,{...e,currentPath:[...e.currentPath,"items","items","0"]})||Ve(e),n=Y(t.valueType._def,{...e,currentPath:[...e.currentPath,"items","items","1"]})||Ve(e);return{type:"array",maxItems:125,items:{type:"array",items:[i,n],minItems:2,maxItems:2}}}function RS(t){let e=t.values,n=Object.keys(t.values).filter(r=>typeof e[e[r]]!="number").map(r=>e[r]),a=Array.from(new Set(n.map(r=>typeof r)));return{type:a.length===1?a[0]==="string"?"string":"number":["string","number"],enum:n}}function IS(t){return t.target==="openAi"?void 0:{not:Ve({...t,currentPath:[...t.currentPath,"not"]})}}function zS(t){return t.target==="openApi3"?{enum:["null"],nullable:!0}:{type:"null"}}var Zs={ZodString:"string",ZodNumber:"number",ZodBigInt:"integer",ZodBoolean:"boolean",ZodNull:"null"};function GS(t,e){if(e.target==="openApi3")return DS(t,e);let i=t.options instanceof Map?Array.from(t.options.values()):t.options;if(i.every(n=>n._def.typeName in Zs&&(!n._def.checks||!n._def.checks.length))){let n=i.reduce((a,r)=>{let s=Zs[r._def.typeName];return s&&!a.includes(s)?[...a,s]:a},[]);return{type:n.length>1?n:n[0]}}else if(i.every(n=>n._def.typeName==="ZodLiteral"&&!n.description)){let n=i.reduce((a,r)=>{let s=typeof r._def.value;switch(s){case"string":case"number":case"boolean":return[...a,s];case"bigint":return[...a,"integer"];case"object":if(r._def.value===null)return[...a,"null"];case"symbol":case"undefined":case"function":default:return a}},[]);if(n.length===i.length){let a=n.filter((r,s,o)=>o.indexOf(r)===s);return{type:a.length>1?a:a[0],enum:i.reduce((r,s)=>r.includes(s._def.value)?r:[...r,s._def.value],[])}}}else if(i.every(n=>n._def.typeName==="ZodEnum"))return{type:"string",enum:i.reduce((n,a)=>[...n,...a._def.values.filter(r=>!n.includes(r))],[])};return DS(t,e)}var DS=(t,e)=>{let i=(t.options instanceof Map?Array.from(t.options.values()):t.options).map((n,a)=>Y(n._def,{...e,currentPath:[...e.currentPath,"anyOf",`${a}`]})).filter(n=>!!n&&(!e.strictUnions||typeof n=="object"&&Object.keys(n).length>0));return i.length?{anyOf:i}:void 0};function $S(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:Zs[t.innerType._def.typeName],nullable:!0}:{type:[Zs[t.innerType._def.typeName],"null"]};if(e.target==="openApi3"){let n=Y(t.innerType._def,{...e,currentPath:[...e.currentPath]});return n&&"$ref"in n?{allOf:[n],nullable:!0}:n&&{...n,nullable:!0}}let i=Y(t.innerType._def,{...e,currentPath:[...e.currentPath,"anyOf","0"]});return i&&{anyOf:[i,{type:"null"}]}}function NS(t,e){let i={type:"number"};if(!t.checks)return i;for(let n of t.checks)switch(n.kind){case"int":i.type="integer",rm(i,"type",n.message,e);break;case"min":e.target==="jsonSchema7"?n.inclusive?me(i,"minimum",n.value,n.message,e):me(i,"exclusiveMinimum",n.value,n.message,e):(n.inclusive||(i.exclusiveMinimum=!0),me(i,"minimum",n.value,n.message,e));break;case"max":e.target==="jsonSchema7"?n.inclusive?me(i,"maximum",n.value,n.message,e):me(i,"exclusiveMaximum",n.value,n.message,e):(n.inclusive||(i.exclusiveMaximum=!0),me(i,"maximum",n.value,n.message,e));break;case"multipleOf":me(i,"multipleOf",n.value,n.message,e);break}return i}function US(t,e){let i=e.target==="openAi",n={type:"object",properties:{}},a=[],r=t.shape();for(let o in r){let l=r[o];if(l===void 0||l._def===void 0)continue;let u=S$(l);u&&i&&(l._def.typeName==="ZodOptional"&&(l=l._def.innerType),l.isNullable()||(l=l.nullable()),u=!1);let c=Y(l._def,{...e,currentPath:[...e.currentPath,"properties",o],propertyPath:[...e.currentPath,"properties",o]});c!==void 0&&(n.properties[o]=c,u||a.push(o))}a.length&&(n.required=a);let s=j$(t,e);return s!==void 0&&(n.additionalProperties=s),n}function j$(t,e){if(t.catchall._def.typeName!=="ZodNever")return Y(t.catchall._def,{...e,currentPath:[...e.currentPath,"additionalProperties"]});switch(t.unknownKeys){case"passthrough":return e.allowedAdditionalProperties;case"strict":return e.rejectedAdditionalProperties;case"strip":return e.removeAdditionalStrategy==="strict"?e.allowedAdditionalProperties:e.rejectedAdditionalProperties}}function S$(t){try{return t.isOptional()}catch{return!0}}var LS=(t,e)=>{if(e.currentPath.toString()===e.propertyPath?.toString())return Y(t.innerType._def,e);let i=Y(t.innerType._def,{...e,currentPath:[...e.currentPath,"anyOf","1"]});return i?{anyOf:[{not:Ve(e)},i]}:Ve(e)};var WS=(t,e)=>{if(e.pipeStrategy==="input")return Y(t.in._def,e);if(e.pipeStrategy==="output")return Y(t.out._def,e);let i=Y(t.in._def,{...e,currentPath:[...e.currentPath,"allOf","0"]}),n=Y(t.out._def,{...e,currentPath:[...e.currentPath,"allOf",i?"1":"0"]});return{allOf:[i,n].filter(a=>a!==void 0)}};function BS(t,e){return Y(t.type._def,e)}function FS(t,e){let n={type:"array",uniqueItems:!0,items:Y(t.valueType._def,{...e,currentPath:[...e.currentPath,"items"]})};return t.minSize&&me(n,"minItems",t.minSize.value,t.minSize.message,e),t.maxSize&&me(n,"maxItems",t.maxSize.value,t.maxSize.message,e),n}function VS(t,e){return t.rest?{type:"array",minItems:t.items.length,items:t.items.map((i,n)=>Y(i._def,{...e,currentPath:[...e.currentPath,"items",`${n}`]})).reduce((i,n)=>n===void 0?i:[...i,n],[]),additionalItems:Y(t.rest._def,{...e,currentPath:[...e.currentPath,"additionalItems"]})}:{type:"array",minItems:t.items.length,maxItems:t.items.length,items:t.items.map((i,n)=>Y(i._def,{...e,currentPath:[...e.currentPath,"items",`${n}`]})).reduce((i,n)=>n===void 0?i:[...i,n],[])}}function JS(t){return{not:Ve(t)}}function ZS(t){return Ve(t)}var KS=(t,e)=>Y(t.innerType._def,e);var QS=(t,e,i)=>{switch(e){case E.ZodString:return qu(t,i);case E.ZodNumber:return NS(t,i);case E.ZodObject:return US(t,i);case E.ZodBigInt:return SS(t,i);case E.ZodBoolean:return OS();case E.ZodDate:return sm(t,i);case E.ZodUndefined:return JS(i);case E.ZodNull:return zS(i);case E.ZodArray:return jS(t,i);case E.ZodUnion:case E.ZodDiscriminatedUnion:return GS(t,i);case E.ZodIntersection:return kS(t,i);case E.ZodTuple:return VS(t,i);case E.ZodRecord:return _u(t,i);case E.ZodLiteral:return qS(t,i);case E.ZodEnum:return ES(t);case E.ZodNativeEnum:return RS(t);case E.ZodNullable:return $S(t,i);case E.ZodOptional:return LS(t,i);case E.ZodMap:return HS(t,i);case E.ZodSet:return FS(t,i);case E.ZodLazy:return()=>t.getter()._def;case E.ZodPromise:return BS(t,i);case E.ZodNaN:case E.ZodNever:return IS(i);case E.ZodEffects:return MS(t,i);case E.ZodAny:return Ve(i);case E.ZodUnknown:return ZS(i);case E.ZodDefault:return TS(t,i);case E.ZodBranded:return ku(t,i);case E.ZodReadonly:return KS(t,i);case E.ZodCatch:return xS(t,i);case E.ZodPipeline:return WS(t,i);case E.ZodFunction:case E.ZodVoid:case E.ZodSymbol:return;default:return(n=>{})(e)}};function Y(t,e,i=!1){let n=e.seen.get(t);if(e.override){let o=e.override?.(t,e,n,i);if(o!==bS)return o}if(n&&!i){let o=O$(n,e);if(o!==void 0)return o}let a={def:t,path:e.currentPath,jsonSchema:void 0};e.seen.set(t,a);let r=QS(t,t.typeName,e),s=typeof r=="function"?Y(r(),e):r;if(s&&x$(t,e,s),e.postProcess){let o=e.postProcess(s,t,e);return a.jsonSchema=s,o}return a.jsonSchema=s,s}var O$=(t,e)=>{switch(e.$refStrategy){case"root":return{$ref:t.path.join("/")};case"relative":return{$ref:Eu(e.currentPath,t.path)};case"none":case"seen":return t.path.lengthe.currentPath[n]===i)?(console.warn(`Recursive reference detected at ${e.currentPath.join("/")}! Defaulting to any`),Ve(e)):e.$refStrategy==="seen"?Ve(e):void 0}},x$=(t,e,i)=>(t.description&&(i.description=t.description,e.markdownDescription&&(i.markdownDescription=t.description)),i);var um=(t,e)=>{let i=PS(e),n=typeof e=="object"&&e.definitions?Object.entries(e.definitions).reduce((l,[u,c])=>({...l,[u]:Y(c._def,{...i,currentPath:[...i.basePath,i.definitionPath,u]},!0)??Ve(i)}),{}):void 0,a=typeof e=="string"?e:e?.nameStrategy==="title"?void 0:e?.name,r=Y(t._def,a===void 0?i:{...i,currentPath:[...i.basePath,i.definitionPath,a]},!1)??Ve(i),s=typeof e=="object"&&e.name!==void 0&&e.nameStrategy==="title"?e.name:void 0;s!==void 0&&(r.title=s),i.flags.hasReferencedOpenAiAnyType&&(n||(n={}),n[i.openAiAnyTypeName]||(n[i.openAiAnyTypeName]={type:["string","number","integer","boolean","array","null"],items:{$ref:i.$refStrategy==="relative"?"1":[...i.basePath,i.definitionPath,i.openAiAnyTypeName].join("/")}}));let o=a===void 0?n?{...r,[i.definitionPath]:n}:r:{$ref:[...i.$refStrategy==="relative"?[]:i.basePath,i.definitionPath,a].join("/"),[i.definitionPath]:{...n,[a]:r}};return i.target==="jsonSchema7"?o.$schema="http://json-schema.org/draft-07/schema#":(i.target==="jsonSchema2019-09"||i.target==="openAi")&&(o.$schema="https://json-schema.org/draft/2019-09/schema#"),i.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 T$(t){return!t||t==="jsonSchema7"||t==="draft-7"?"draft-7":t==="jsonSchema2019-09"||t==="draft-2020-12"?"draft-2020-12":"draft-7"}function cm(t,e){return on(t)?_g(t,{target:T$(e?.target),io:e?.pipeStrategy??"input"}):um(t,{strictUnions:e?.strictUnions??!0,pipeStrategy:e?.pipeStrategy??"input"})}function pm(t){let i=jt(t)?.method;if(!i)throw new Error("Schema is missing a method literal");let n=ru(i);if(typeof n!="string")throw new Error("Schema method literal must be a string");return n}function dm(t,e){let i=Pt(t,e);if(!i.success)throw i.error;return i.data}var M$=6e4,Hu=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(hu,i=>{this._oncancel(i)}),this.setNotificationHandler(mu,i=>{this._onprogress(i)}),this.setRequestHandler(gu,i=>({})),this._taskStore=e?.taskStore,this._taskMessageQueue=e?.taskMessageQueue,this._taskStore&&(this.setRequestHandler(fu,async(i,n)=>{let a=await this._taskStore.getTask(i.params.taskId,n.sessionId);if(!a)throw new L(V.InvalidParams,"Failed to retrieve task: Task not found");return{...a}}),this.setRequestHandler(vu,async(i,n)=>{let a=async()=>{let r=i.params.taskId;if(this._taskMessageQueue){let o;for(;o=await this._taskMessageQueue.dequeue(r,n.sessionId);){if(o.type==="response"||o.type==="error"){let l=o.message,u=l.id,c=this._requestResolvers.get(u);if(c)if(this._requestResolvers.delete(u),o.type==="response")c(l);else{let p=l,d=new L(p.error.code,p.error.message,p.error.data);c(d)}else{let p=o.type==="response"?"Response":"Error";this._onerror(new Error(`${p} handler missing for request ${u}`))}continue}await this._transport?.send(o.message,{relatedRequestId:n.requestId})}}let s=await this._taskStore.getTask(r,n.sessionId);if(!s)throw new L(V.InvalidParams,`Task not found: ${r}`);if(!Ot(s.status))return await this._waitForTaskUpdate(r,n.signal),await a();if(Ot(s.status)){let o=await this._taskStore.getTaskResult(r,n.sessionId);return this._clearTaskQueue(r),{...o,_meta:{...o._meta,[St]:{taskId:r}}}}return await a()};return await a()}),this.setRequestHandler(Cu,async(i,n)=>{try{let{tasks:a,nextCursor:r}=await this._taskStore.listTasks(i.params?.cursor,n.sessionId);return{tasks:a,nextCursor:r,_meta:{}}}catch(a){throw new L(V.InvalidParams,`Failed to list tasks: ${a instanceof Error?a.message:String(a)}`)}}),this.setRequestHandler(bu,async(i,n)=>{try{let a=await this._taskStore.getTask(i.params.taskId,n.sessionId);if(!a)throw new L(V.InvalidParams,`Task not found: ${i.params.taskId}`);if(Ot(a.status))throw new L(V.InvalidParams,`Cannot cancel task in terminal status: ${a.status}`);await this._taskStore.updateTaskStatus(i.params.taskId,"cancelled","Client cancelled task execution.",n.sessionId),this._clearTaskQueue(i.params.taskId);let r=await this._taskStore.getTask(i.params.taskId,n.sessionId);if(!r)throw new L(V.InvalidParams,`Task not found after cancellation: ${i.params.taskId}`);return{_meta:{},...r}}catch(a){throw a instanceof L?a:new L(V.InvalidRequest,`Failed to cancel task: ${a instanceof Error?a.message:String(a)}`)}}))}async _oncancel(e){if(!e.params.requestId)return;this._requestHandlerAbortControllers.get(e.params.requestId)?.abort(e.params.reason)}_setupTimeout(e,i,n,a,r=!1){this._timeoutInfo.set(e,{timeoutId:setTimeout(a,i),startTime:Date.now(),timeout:i,maxTotalTimeout:n,resetTimeoutOnProgress:r,onTimeout:a})}_resetTimeout(e){let i=this._timeoutInfo.get(e);if(!i)return!1;let n=Date.now()-i.startTime;if(i.maxTotalTimeout&&n>=i.maxTotalTimeout)throw this._timeoutInfo.delete(e),L.fromError(V.RequestTimeout,"Maximum total timeout exceeded",{maxTotalTimeout:i.maxTotalTimeout,totalElapsed:n});return clearTimeout(i.timeoutId),i.timeoutId=setTimeout(i.onTimeout,i.timeout),!0}_cleanupTimeout(e){let i=this._timeoutInfo.get(e);i&&(clearTimeout(i.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 i=this.transport?.onclose;this._transport.onclose=()=>{i?.(),this._onclose()};let n=this.transport?.onerror;this._transport.onerror=r=>{n?.(r),this._onerror(r)};let a=this._transport?.onmessage;this._transport.onmessage=(r,s)=>{a?.(r,s),$s(r)||uS(r)?this._onresponse(r):Bg(r)?this._onrequest(r,s):lS(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 n of this._timeoutInfo.values())clearTimeout(n.timeoutId);this._timeoutInfo.clear();for(let n of this._requestHandlerAbortControllers.values())n.abort();this._requestHandlerAbortControllers.clear();let i=L.fromError(V.ConnectionClosed,"Connection closed");this._transport=void 0,this.onclose?.();for(let n of e.values())n(i)}_onerror(e){this.onerror?.(e)}_onnotification(e){let i=this._notificationHandlers.get(e.method)??this.fallbackNotificationHandler;i!==void 0&&Promise.resolve().then(()=>i(e)).catch(n=>this._onerror(new Error(`Uncaught error in notification handler: ${n}`)))}_onrequest(e,i){let n=this._requestHandlers.get(e.method)??this.fallbackRequestHandler,a=this._transport,r=e.params?._meta?.[St]?.taskId;if(n===void 0){let c={jsonrpc:"2.0",id:e.id,error:{code:V.MethodNotFound,message:"Method not found"}};r&&this._taskMessageQueue?this._enqueueTaskMessage(r,{type:"error",message:c,timestamp:Date.now()},a?.sessionId).catch(p=>this._onerror(new Error(`Failed to enqueue error response: ${p}`))):a?.send(c).catch(p=>this._onerror(new Error(`Failed to send an error response: ${p}`)));return}let s=new AbortController;this._requestHandlerAbortControllers.set(e.id,s);let o=rS(e.params)?e.params.task:void 0,l=this._taskStore?this.requestTaskStore(e,a?.sessionId):void 0,u={signal:s.signal,sessionId:a?.sessionId,_meta:e.params?._meta,sendNotification:async c=>{if(s.signal.aborted)return;let p={relatedRequestId:e.id};r&&(p.relatedTask={taskId:r}),await this.notification(c,p)},sendRequest:async(c,p,d)=>{if(s.signal.aborted)throw new L(V.ConnectionClosed,"Request was cancelled");let h={...d,relatedRequestId:e.id};r&&!h.relatedTask&&(h.relatedTask={taskId:r});let g=h.relatedTask?.taskId??r;return g&&l&&await l.updateTaskStatus(g,"input_required"),await this.request(c,p,h)},authInfo:i?.authInfo,requestId:e.id,requestInfo:i?.requestInfo,taskId:r,taskStore:l,taskRequestedTtl:o?.ttl,closeSSEStream:i?.closeSSEStream,closeStandaloneSSEStream:i?.closeStandaloneSSEStream};Promise.resolve().then(()=>{o&&this.assertTaskHandlerCapability(e.method)}).then(()=>n(e,u)).then(async c=>{if(s.signal.aborted)return;let p={result:c,jsonrpc:"2.0",id:e.id};r&&this._taskMessageQueue?await this._enqueueTaskMessage(r,{type:"response",message:p,timestamp:Date.now()},a?.sessionId):await a?.send(p)},async c=>{if(s.signal.aborted)return;let p={jsonrpc:"2.0",id:e.id,error:{code:Number.isSafeInteger(c.code)?c.code:V.InternalError,message:c.message??"Internal error",...c.data!==void 0&&{data:c.data}}};r&&this._taskMessageQueue?await this._enqueueTaskMessage(r,{type:"error",message:p,timestamp:Date.now()},a?.sessionId):await a?.send(p)}).catch(c=>this._onerror(new Error(`Failed to send response: ${c}`))).finally(()=>{this._requestHandlerAbortControllers.get(e.id)===s&&this._requestHandlerAbortControllers.delete(e.id)})}_onprogress(e){let{progressToken:i,...n}=e.params,a=Number(i),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(n)}_onresponse(e){let i=Number(e.id),n=this._requestResolvers.get(i);if(n){if(this._requestResolvers.delete(i),$s(e))n(e);else{let s=new L(e.error.code,e.error.message,e.error.data);n(s)}return}let a=this._responseHandlers.get(i);if(a===void 0){this._onerror(new Error(`Received a response for an unknown message ID: ${JSON.stringify(e)}`));return}this._responseHandlers.delete(i),this._cleanupTimeout(i);let r=!1;if($s(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,i))}}if(r||this._progressHandlers.delete(i),$s(e))a(e);else{let s=L.fromError(e.error.code,e.error.message,e.error.data);a(s)}}get transport(){return this._transport}async close(){await this._transport?.close()}async*requestStream(e,i,n){let{task:a}=n??{};if(!a){try{yield{type:"result",result:await this.request(e,i,n)}}catch(s){yield{type:"error",error:s instanceof L?s:new L(V.InternalError,String(s))}}return}let r;try{let s=await this.request(e,fr,n);if(s.task)r=s.task.taskId,yield{type:"taskCreated",task:s.task};else throw new L(V.InternalError,"Task creation did not return a task");for(;;){let o=await this.getTask({taskId:r},n);if(yield{type:"taskStatus",task:o},Ot(o.status)){o.status==="completed"?yield{type:"result",result:await this.getTaskResult({taskId:r},i,n)}:o.status==="failed"?yield{type:"error",error:new L(V.InternalError,`Task ${r} failed`)}:o.status==="cancelled"&&(yield{type:"error",error:new L(V.InternalError,`Task ${r} was cancelled`)});return}if(o.status==="input_required"){yield{type:"result",result:await this.getTaskResult({taskId:r},i,n)};return}let l=o.pollInterval??this._options?.defaultTaskPollInterval??1e3;await new Promise(u=>setTimeout(u,l)),n?.signal?.throwIfAborted()}}catch(s){yield{type:"error",error:s instanceof L?s:new L(V.InternalError,String(s))}}}request(e,i,n){let{relatedRequestId:a,resumptionToken:r,onresumptiontoken:s,task:o,relatedTask:l}=n??{};return new Promise((u,c)=>{let p=y=>{c(y)};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(y){p(y);return}n?.signal?.throwIfAborted();let d=this._requestMessageId++,h={...e,jsonrpc:"2.0",id:d};n?.onprogress&&(this._progressHandlers.set(d,n.onprogress),h.params={...e.params,_meta:{...e.params?._meta||{},progressToken:d}}),o&&(h.params={...h.params,task:o}),l&&(h.params={...h.params,_meta:{...h.params?._meta||{},[St]:l}});let g=y=>{this._responseHandlers.delete(d),this._progressHandlers.delete(d),this._cleanupTimeout(d),this._transport?.send({jsonrpc:"2.0",method:"notifications/cancelled",params:{requestId:d,reason:String(y)}},{relatedRequestId:a,resumptionToken:r,onresumptiontoken:s}).catch(b=>this._onerror(new Error(`Failed to send cancellation: ${b}`)));let A=y instanceof L?y:new L(V.RequestTimeout,String(y));c(A)};this._responseHandlers.set(d,y=>{if(!n?.signal?.aborted){if(y instanceof Error)return c(y);try{let A=Pt(i,y.result);A.success?u(A.data):c(A.error)}catch(A){c(A)}}}),n?.signal?.addEventListener("abort",()=>{g(n?.signal?.reason)});let m=n?.timeout??M$,f=()=>g(L.fromError(V.RequestTimeout,"Request timed out",{timeout:m}));this._setupTimeout(d,m,n?.maxTotalTimeout,f,n?.resetTimeoutOnProgress??!1);let v=l?.taskId;if(v){let y=A=>{let b=this._responseHandlers.get(d);b?b(A):this._onerror(new Error(`Response handler missing for side-channeled request ${d}`))};this._requestResolvers.set(d,y),this._enqueueTaskMessage(v,{type:"request",message:h,timestamp:Date.now()}).catch(A=>{this._cleanupTimeout(d),c(A)})}else this._transport.send(h,{relatedRequestId:a,resumptionToken:r,onresumptiontoken:s}).catch(y=>{this._cleanupTimeout(d),c(y)})})}async getTask(e,i){return this.request({method:"tasks/get",params:e},wu,i)}async getTaskResult(e,i,n){return this.request({method:"tasks/result",params:e},i,n)}async listTasks(e,i){return this.request({method:"tasks/list",params:e},Au,i)}async cancelTask(e,i){return this.request({method:"tasks/cancel",params:e},dS,i)}async notification(e,i){if(!this._transport)throw new Error("Not connected");this.assertNotificationCapability(e.method);let n=i?.relatedTask?.taskId;if(n){let o={...e,jsonrpc:"2.0",params:{...e.params,_meta:{...e.params?._meta||{},[St]:i.relatedTask}}};await this._enqueueTaskMessage(n,{type:"notification",message:o,timestamp:Date.now()});return}if((this._options?.debouncedNotificationMethods??[]).includes(e.method)&&!e.params&&!i?.relatedRequestId&&!i?.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"};i?.relatedTask&&(o={...o,params:{...o.params,_meta:{...o.params?._meta||{},[St]:i.relatedTask}}}),this._transport?.send(o,i).catch(l=>this._onerror(l))});return}let s={...e,jsonrpc:"2.0"};i?.relatedTask&&(s={...s,params:{...s.params,_meta:{...s.params?._meta||{},[St]:i.relatedTask}}}),await this._transport.send(s,i)}setRequestHandler(e,i){let n=pm(e);this.assertRequestHandlerCapability(n),this._requestHandlers.set(n,(a,r)=>{let s=dm(e,a);return Promise.resolve(i(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,i){let n=pm(e);this._notificationHandlers.set(n,a=>{let r=dm(e,a);return Promise.resolve(i(r))})}removeNotificationHandler(e){this._notificationHandlers.delete(e)}_cleanupTaskProgressHandler(e){let i=this._taskProgressTokens.get(e);i!==void 0&&(this._progressHandlers.delete(i),this._taskProgressTokens.delete(e))}async _enqueueTaskMessage(e,i,n){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,i,n,a)}async _clearTaskQueue(e,i){if(this._taskMessageQueue){let n=await this._taskMessageQueue.dequeueAll(e,i);for(let a of n)if(a.type==="request"&&Bg(a.message)){let r=a.message.id,s=this._requestResolvers.get(r);s?(s(new L(V.InternalError,"Task cancelled or completed")),this._requestResolvers.delete(r)):this._onerror(new Error(`Resolver missing for request ${r} during task ${e} cleanup`))}}}async _waitForTaskUpdate(e,i){let n=this._options?.defaultTaskPollInterval??1e3;try{let a=await this._taskStore?.getTask(e);a?.pollInterval&&(n=a.pollInterval)}catch{}return new Promise((a,r)=>{if(i.aborted){r(new L(V.InvalidRequest,"Request cancelled"));return}let s=setTimeout(a,n);i.addEventListener("abort",()=>{clearTimeout(s),r(new L(V.InvalidRequest,"Request cancelled"))},{once:!0})})}requestTaskStore(e,i){let n=this._taskStore;if(!n)throw new Error("No task store configured");return{createTask:async a=>{if(!e)throw new Error("No request provided");return await n.createTask(a,e.id,{method:e.method,params:e.params},i)},getTask:async a=>{let r=await n.getTask(a,i);if(!r)throw new L(V.InvalidParams,"Failed to retrieve task: Task not found");return r},storeTaskResult:async(a,r,s)=>{await n.storeTaskResult(a,r,s,i);let o=await n.getTask(a,i);if(o){let l=Bs.parse({method:"notifications/tasks/status",params:o});await this.notification(l),Ot(o.status)&&this._cleanupTaskProgressHandler(a)}},getTaskResult:a=>n.getTaskResult(a,i),updateTaskStatus:async(a,r,s)=>{let o=await n.getTask(a,i);if(!o)throw new L(V.InvalidParams,`Task "${a}" not found - it may have been cleaned up`);if(Ot(o.status))throw new L(V.InvalidParams,`Cannot update task "${a}" from terminal status "${o.status}" to "${r}". Terminal states (completed, failed, cancelled) cannot transition to other states.`);await n.updateTaskStatus(a,r,s,i);let l=await n.getTask(a,i);if(l){let u=Bs.parse({method:"notifications/tasks/status",params:l});await this.notification(u),Ot(l.status)&&this._cleanupTaskProgressHandler(a)}},listTasks:a=>n.listTasks(a,i)}}};function YS(t){return t!==null&&typeof t=="object"&&!Array.isArray(t)}function XS(t,e){let i={...t};for(let n in e){let a=n,r=e[a];if(r===void 0)continue;let s=i[a];YS(s)&&YS(r)?i[a]={...s,...r}:i[a]=r}return i}var WT=Xa(Xf(),1),BT=Xa(LT(),1);function qF(){let t=new WT.default({strict:!1,validateFormats:!0,validateSchema:!1,allErrors:!0});return(0,BT.default)(t),t}var mc=class{constructor(e){this._ajv=e??qF()}getValidator(e){let i="$id"in e&&typeof e.$id=="string"?this._ajv.getSchema(e.$id)??this._ajv.compile(e):this._ajv.compile(e);return n=>i(n)?{valid:!0,data:n,errorMessage:void 0}:{valid:!1,data:void 0,errorMessage:this._ajv.errorsText(i.errors)}}};var fc=class{constructor(e){this._server=e}requestStream(e,i,n){return this._server.requestStream(e,i,n)}createMessageStream(e,i){let n=this._server.getClientCapabilities();if((e.tools||e.toolChoice)&&!n?.sampling?.tools)throw new Error("Client does not support sampling tools capability.");if(e.messages.length>0){let a=e.messages[e.messages.length-1],r=Array.isArray(a.content)?a.content:[a.content],s=r.some(c=>c.type==="tool_result"),o=e.messages.length>1?e.messages[e.messages.length-2]:void 0,l=o?Array.isArray(o.content)?o.content:[o.content]:[],u=l.some(c=>c.type==="tool_use");if(s){if(r.some(c=>c.type!=="tool_result"))throw new Error("The last message must contain only tool_result content if any is present");if(!u)throw new Error("tool_result blocks are not matching any tool_use from the previous message")}if(u){let c=new Set(l.filter(d=>d.type==="tool_use").map(d=>d.id)),p=new Set(r.filter(d=>d.type==="tool_result").map(d=>d.toolUseId));if(c.size!==p.size||![...c].every(d=>p.has(d)))throw new Error("ids of tool_result blocks and tool_use blocks from previous message do not match")}}return this.requestStream({method:"sampling/createMessage",params:e},Js,i)}elicitInputStream(e,i){let n=this._server.getClientCapabilities(),a=e.mode??"form";switch(a){case"url":{if(!n?.elicitation?.url)throw new Error("Client does not support url elicitation.");break}case"form":{if(!n?.elicitation?.form)throw new Error("Client does not support form elicitation.");break}}let r=a==="form"&&e.mode===void 0?{...e,mode:"form"}:e;return this.requestStream({method:"elicitation/create",params:r},Cr,i)}async getTask(e,i){return this._server.getTask({taskId:e},i)}async getTaskResult(e,i,n){return this._server.getTaskResult({taskId:e},i,n)}async listTasks(e,i){return this._server.listTasks(e?{cursor:e}:void 0,i)}async cancelTask(e,i){return this._server.cancelTask({taskId:e},i)}};function FT(t,e,i){if(!t)throw new Error(`${i} does not support task creation (required for ${e})`);switch(e){case"tools/call":if(!t.tools?.call)throw new Error(`${i} does not support task creation for tools/call (required for ${e})`);break;default:break}}function VT(t,e,i){if(!t)throw new Error(`${i} does not support task creation (required for ${e})`);switch(e){case"sampling/createMessage":if(!t.sampling?.createMessage)throw new Error(`${i} does not support task creation for sampling/createMessage (required for ${e})`);break;case"elicitation/create":if(!t.elicitation?.create)throw new Error(`${i} does not support task creation for elicitation/create (required for ${e})`);break;default:break}}var wc=class extends Hu{constructor(e,i){super(i),this._serverInfo=e,this._loggingLevels=new Map,this.LOG_LEVEL_SEVERITY=new Map(Vs.options.map((n,a)=>[n,a])),this.isMessageIgnored=(n,a)=>{let r=this._loggingLevels.get(a);return r?this.LOG_LEVEL_SEVERITY.get(n)this._oninitialize(n)),this.setNotificationHandler(Zg,()=>this.oninitialized?.()),this._capabilities.logging&&this.setRequestHandler(nm,async(n,a)=>{let r=a.sessionId||a.requestInfo?.headers["mcp-session-id"]||void 0,{level:s}=n.params,o=Vs.safeParse(s);return o.success&&this._loggingLevels.set(r,o.data),{}})}get experimental(){return this._experimental||(this._experimental={tasks:new fc(this)}),this._experimental}registerCapabilities(e){if(this.transport)throw new Error("Cannot register capabilities after connecting to transport");this._capabilities=XS(this._capabilities,e)}setRequestHandler(e,i){let a=jt(e)?.method;if(!a)throw new Error("Schema is missing a method literal");let r;if(on(a)){let o=a;r=o._zod?.def?.value??o.value}else{let o=a;r=o._def?.value??o.value}if(typeof r!="string")throw new Error("Schema method literal must be a string");if(r==="tools/call"){let o=async(l,u)=>{let c=Pt(vr,l);if(!c.success){let g=c.error instanceof Error?c.error.message:String(c.error);throw new L(V.InvalidParams,`Invalid tools/call request: ${g}`)}let{params:p}=c.data,d=await Promise.resolve(i(l,u));if(p.task){let g=Pt(fr,d);if(!g.success){let m=g.error instanceof Error?g.error.message:String(g.error);throw new L(V.InvalidParams,`Invalid task creation result: ${m}`)}return g.data}let h=Pt(Tu,d);if(!h.success){let g=h.error instanceof Error?h.error.message:String(h.error);throw new L(V.InvalidParams,`Invalid tools/call result: ${g}`)}return h.data};return super.setRequestHandler(e,o)}return super.setRequestHandler(e,i)}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){VT(this._clientCapabilities?.tasks?.requests,e,"Client")}assertTaskHandlerCapability(e){this._capabilities&&FT(this._capabilities.tasks?.requests,e,"Server")}async _oninitialize(e){let i=e.params.protocolVersion;return this._clientCapabilities=e.params.capabilities,this._clientVersion=e.params.clientInfo,{protocolVersion:nS.includes(i)?i:Lg,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"},du)}async createMessage(e,i){if((e.tools||e.toolChoice)&&!this._clientCapabilities?.sampling?.tools)throw new Error("Client does not support sampling tools capability.");if(e.messages.length>0){let n=e.messages[e.messages.length-1],a=Array.isArray(n.content)?n.content:[n.content],r=a.some(u=>u.type==="tool_result"),s=e.messages.length>1?e.messages[e.messages.length-2]:void 0,o=s?Array.isArray(s.content)?s.content:[s.content]:[],l=o.some(u=>u.type==="tool_use");if(r){if(a.some(u=>u.type!=="tool_result"))throw new Error("The last message must contain only tool_result content if any is present");if(!l)throw new Error("tool_result blocks are not matching any tool_use from the previous message")}if(l){let u=new Set(o.filter(p=>p.type==="tool_use").map(p=>p.id)),c=new Set(a.filter(p=>p.type==="tool_result").map(p=>p.toolUseId));if(u.size!==c.size||![...u].every(p=>c.has(p)))throw new Error("ids of tool_result blocks and tool_use blocks from previous message do not match")}}return e.tools?this.request({method:"sampling/createMessage",params:e},tm,i):this.request({method:"sampling/createMessage",params:e},Js,i)}async elicitInput(e,i){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},Cr,i)}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},Cr,i);if(r.action==="accept"&&r.content&&a.requestedSchema)try{let o=this._jsonSchemaValidator.getValidator(a.requestedSchema)(r.content);if(!o.valid)throw new L(V.InvalidParams,`Elicitation response content does not match requested schema: ${o.errorMessage}`)}catch(s){throw s instanceof L?s:new L(V.InternalError,`Error validating elicitation response: ${s instanceof Error?s.message:String(s)}`)}return r}}}createElicitationCompletionNotifier(e,i){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}},i)}async listRoots(e,i){return this.request({method:"roots/list",params:e},am,i)}async sendLoggingMessage(e,i){if(this._capabilities.logging&&!this.isMessageIgnored(e.level,i))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 ZT=Symbol.for("mcp.completable");function ow(t){return!!t&&typeof t=="object"&&ZT in t}function KT(t){return t[ZT]?.complete}var JT;(function(t){t.Completable="McpCompletable"})(JT||(JT={}));var _F=/^[A-Za-z0-9._-]{1,128}$/;function HF(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"),!_F.test(t)){let i=t.split("").filter(n=>!/[A-Za-z0-9._-]/.test(n)).filter((n,a,r)=>r.indexOf(n)===a);return e.push(`Tool name contains invalid characters: ${i.map(n=>`"${n}"`).join(", ")}`,"Allowed characters are: A-Z, a-z, 0-9, underscore (_), dash (-), and dot (.)"),{isValid:!1,warnings:e}}return{isValid:!0,warnings:e}}function RF(t,e){if(e.length>0){console.warn(`Tool name validation warning for "${t}":`);for(let i of e)console.warn(` - ${i}`);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 lw(t){let e=HF(t);return RF(t,e.warnings),e.isValid}var vc=class{constructor(e){this._mcpServer=e}registerToolTask(e,i,n){let a={taskSupport:"required",...i.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,i.title,i.description,i.inputSchema,i.outputSchema,i.annotations,a,i._meta,n)}};var Cc=class{constructor(e,i){this._registeredResources={},this._registeredResourceTemplates={},this._registeredTools={},this._registeredPrompts={},this._toolHandlersInitialized=!1,this._completionHandlerInitialized=!1,this._resourceHandlersInitialized=!1,this._promptHandlersInitialized=!1,this.server=new wc(e,i)}get experimental(){return this._experimental||(this._experimental={tasks:new vc(this)}),this._experimental}async connect(e){return await this.server.connect(e)}async close(){await this.server.close()}setToolRequestHandlers(){this._toolHandlersInitialized||(this.server.assertCanSetRequestHandler(Rt(xu)),this.server.assertCanSetRequestHandler(Rt(vr)),this.server.registerCapabilities({tools:{listChanged:!0}}),this.server.setRequestHandler(xu,()=>({tools:Object.entries(this._registeredTools).filter(([,e])=>e.enabled).map(([e,i])=>{let n={name:e,title:i.title,description:i.description,inputSchema:(()=>{let a=gr(i.inputSchema);return a?cm(a,{strictUnions:!0,pipeStrategy:"input"}):IF})(),annotations:i.annotations,execution:i.execution,_meta:i._meta};if(i.outputSchema){let a=gr(i.outputSchema);a&&(n.outputSchema=cm(a,{strictUnions:!0,pipeStrategy:"output"}))}return n})})),this.server.setRequestHandler(vr,async(e,i)=>{try{let n=this._registeredTools[e.params.name];if(!n)throw new L(V.InvalidParams,`Tool ${e.params.name} not found`);if(!n.enabled)throw new L(V.InvalidParams,`Tool ${e.params.name} disabled`);let a=!!e.params.task,r=n.execution?.taskSupport,s="createTask"in n.handler;if((r==="required"||r==="optional")&&!s)throw new L(V.InternalError,`Tool ${e.params.name} has taskSupport '${r}' but was not registered with registerToolTask`);if(r==="required"&&!a)throw new L(V.MethodNotFound,`Tool ${e.params.name} requires task augmentation (taskSupport: 'required')`);if(r==="optional"&&!a&&s)return await this.handleAutomaticTaskPolling(n,e,i);let o=await this.validateToolInput(n,e.params.arguments,e.params.name),l=await this.executeToolHandler(n,o,i);return a||await this.validateToolOutput(n,l,e.params.name),l}catch(n){if(n instanceof L&&n.code===V.UrlElicitationRequired)throw n;return this.createToolError(n instanceof Error?n.message:String(n))}}),this._toolHandlersInitialized=!0)}createToolError(e){return{content:[{type:"text",text:e}],isError:!0}}async validateToolInput(e,i,n){if(!e.inputSchema)return;let r=gr(e.inputSchema)??e.inputSchema,s=await tu(r,i);if(!s.success){let o="error"in s?s.error:"Unknown error",l=au(o);throw new L(V.InvalidParams,`Input validation error: Invalid arguments for tool ${n}: ${l}`)}return s.data}async validateToolOutput(e,i,n){if(!e.outputSchema||!("content"in i)||i.isError)return;if(!i.structuredContent)throw new L(V.InvalidParams,`Output validation error: Tool ${n} has an output schema but no structured content was provided`);let a=gr(e.outputSchema),r=await tu(a,i.structuredContent);if(!r.success){let s="error"in r?r.error:"Unknown error",o=au(s);throw new L(V.InvalidParams,`Output validation error: Invalid structured content for tool ${n}: ${o}`)}}async executeToolHandler(e,i,n){let a=e.handler;if("createTask"in a){if(!n.taskStore)throw new Error("No task store provided.");let s={...n,taskStore:n.taskStore};if(e.inputSchema){let o=a;return await Promise.resolve(o.createTask(i,s))}else{let o=a;return await Promise.resolve(o.createTask(s))}}if(e.inputSchema){let s=a;return await Promise.resolve(s(i,n))}else{let s=a;return await Promise.resolve(s(n))}}async handleAutomaticTaskPolling(e,i,n){if(!n.taskStore)throw new Error("No task store provided for task-capable tool.");let a=await this.validateToolInput(e,i.params.arguments,i.params.name),r=e.handler,s={...n,taskStore:n.taskStore},o=a?await Promise.resolve(r.createTask(a,s)):await Promise.resolve(r.createTask(s)),l=o.task.taskId,u=o.task,c=u.pollInterval??5e3;for(;u.status!=="completed"&&u.status!=="failed"&&u.status!=="cancelled";){await new Promise(d=>setTimeout(d,c));let p=await n.taskStore.getTask(l);if(!p)throw new L(V.InternalError,`Task ${l} not found during polling`);u=p}return await n.taskStore.getTaskResult(l)}setCompletionRequestHandler(){this._completionHandlerInitialized||(this.server.assertCanSetRequestHandler(Rt(Mu)),this.server.registerCapabilities({completions:{}}),this.server.setRequestHandler(Mu,async e=>{switch(e.params.ref.type){case"ref/prompt":return vS(e),this.handlePromptCompletion(e,e.params.ref);case"ref/resource":return CS(e),this.handleResourceCompletion(e,e.params.ref);default:throw new L(V.InvalidParams,`Invalid completion reference: ${e.params.ref}`)}}),this._completionHandlerInitialized=!0)}async handlePromptCompletion(e,i){let n=this._registeredPrompts[i.name];if(!n)throw new L(V.InvalidParams,`Prompt ${i.name} not found`);if(!n.enabled)throw new L(V.InvalidParams,`Prompt ${i.name} disabled`);if(!n.argsSchema)return Oo;let r=jt(n.argsSchema)?.[e.params.argument.name];if(!ow(r))return Oo;let s=KT(r);if(!s)return Oo;let o=await s(e.params.argument.value,e.params.context);return YT(o)}async handleResourceCompletion(e,i){let n=Object.values(this._registeredResourceTemplates).find(s=>s.resourceTemplate.uriTemplate.toString()===i.uri);if(!n){if(this._registeredResources[i.uri])return Oo;throw new L(V.InvalidParams,`Resource template ${e.params.ref.uri} not found`)}let a=n.resourceTemplate.completeCallback(e.params.argument.name);if(!a)return Oo;let r=await a(e.params.argument.value,e.params.context);return YT(r)}setResourceRequestHandlers(){this._resourceHandlersInitialized||(this.server.assertCanSetRequestHandler(Rt(yu)),this.server.assertCanSetRequestHandler(Rt(Pu)),this.server.assertCanSetRequestHandler(Rt(ju)),this.server.registerCapabilities({resources:{listChanged:!0}}),this.server.setRequestHandler(yu,async(e,i)=>{let n=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(i);for(let o of s.resources)a.push({...r.metadata,...o})}return{resources:[...n,...a]}}),this.server.setRequestHandler(Pu,async()=>({resourceTemplates:Object.entries(this._registeredResourceTemplates).map(([i,n])=>({name:i,uriTemplate:n.resourceTemplate.uriTemplate.toString(),...n.metadata}))})),this.server.setRequestHandler(ju,async(e,i)=>{let n=new URL(e.params.uri),a=this._registeredResources[n.toString()];if(a){if(!a.enabled)throw new L(V.InvalidParams,`Resource ${n} disabled`);return a.readCallback(n,i)}for(let r of Object.values(this._registeredResourceTemplates)){let s=r.resourceTemplate.uriTemplate.match(n.toString());if(s)return r.readCallback(n,s,i)}throw new L(V.InvalidParams,`Resource ${n} not found`)}),this._resourceHandlersInitialized=!0)}setPromptRequestHandlers(){this._promptHandlersInitialized||(this.server.assertCanSetRequestHandler(Rt(Su)),this.server.assertCanSetRequestHandler(Rt(Ou)),this.server.registerCapabilities({prompts:{listChanged:!0}}),this.server.setRequestHandler(Su,()=>({prompts:Object.entries(this._registeredPrompts).filter(([,e])=>e.enabled).map(([e,i])=>({name:e,title:i.title,description:i.description,arguments:i.argsSchema?zF(i.argsSchema):void 0}))})),this.server.setRequestHandler(Ou,async(e,i)=>{let n=this._registeredPrompts[e.params.name];if(!n)throw new L(V.InvalidParams,`Prompt ${e.params.name} not found`);if(!n.enabled)throw new L(V.InvalidParams,`Prompt ${e.params.name} disabled`);if(n.argsSchema){let a=gr(n.argsSchema),r=await tu(a,e.params.arguments);if(!r.success){let l="error"in r?r.error:"Unknown error",u=au(l);throw new L(V.InvalidParams,`Invalid arguments for prompt ${e.params.name}: ${u}`)}let s=r.data,o=n.callback;return await Promise.resolve(o(s,i))}else{let a=n.callback;return await Promise.resolve(a(i))}}),this._promptHandlersInitialized=!0)}resource(e,i,...n){let a;typeof n[0]=="object"&&(a=n.shift());let r=n[0];if(typeof i=="string"){if(this._registeredResources[i])throw new Error(`Resource ${i} is already registered`);let s=this._createRegisteredResource(e,void 0,i,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,i,a,r);return this.setResourceRequestHandlers(),this.sendResourceListChanged(),s}}registerResource(e,i,n,a){if(typeof i=="string"){if(this._registeredResources[i])throw new Error(`Resource ${i} is already registered`);let r=this._createRegisteredResource(e,n.title,i,n,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,n.title,i,n,a);return this.setResourceRequestHandlers(),this.sendResourceListChanged(),r}}_createRegisteredResource(e,i,n,a,r){let s={name:e,title:i,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!==n&&(delete this._registeredResources[n],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[n]=s,s}_createRegisteredResourceTemplate(e,i,n,a,r){let s={resourceTemplate:n,title:i,metadata:a,readCallback:r,enabled:!0,disable:()=>s.update({enabled:!1}),enable:()=>s.update({enabled:!0}),remove:()=>s.update({name:null}),update:u=>{typeof u.name<"u"&&u.name!==e&&(delete this._registeredResourceTemplates[e],u.name&&(this._registeredResourceTemplates[u.name]=s)),typeof u.title<"u"&&(s.title=u.title),typeof u.template<"u"&&(s.resourceTemplate=u.template),typeof u.metadata<"u"&&(s.metadata=u.metadata),typeof u.callback<"u"&&(s.readCallback=u.callback),typeof u.enabled<"u"&&(s.enabled=u.enabled),this.sendResourceListChanged()}};this._registeredResourceTemplates[e]=s;let o=n.uriTemplate.variableNames;return Array.isArray(o)&&o.some(u=>!!n.completeCallback(u))&&this.setCompletionRequestHandler(),s}_createRegisteredPrompt(e,i,n,a,r){let s={title:i,description:n,argsSchema:a===void 0?void 0:wa(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=wa(o.argsSchema)),typeof o.callback<"u"&&(s.callback=o.callback),typeof o.enabled<"u"&&(s.enabled=o.enabled),this.sendPromptListChanged()}};return this._registeredPrompts[e]=s,a&&Object.values(a).some(l=>{let u=l instanceof lu?l._def?.innerType:l;return ow(u)})&&this.setCompletionRequestHandler(),s}_createRegisteredTool(e,i,n,a,r,s,o,l,u){lw(e);let c={title:i,description:n,inputSchema:QT(a),outputSchema:QT(r),annotations:s,execution:o,_meta:l,handler:u,enabled:!0,disable:()=>c.update({enabled:!1}),enable:()=>c.update({enabled:!0}),remove:()=>c.update({name:null}),update:p=>{typeof p.name<"u"&&p.name!==e&&(typeof p.name=="string"&&lw(p.name),delete this._registeredTools[e],p.name&&(this._registeredTools[p.name]=c)),typeof p.title<"u"&&(c.title=p.title),typeof p.description<"u"&&(c.description=p.description),typeof p.paramsSchema<"u"&&(c.inputSchema=wa(p.paramsSchema)),typeof p.outputSchema<"u"&&(c.outputSchema=wa(p.outputSchema)),typeof p.callback<"u"&&(c.handler=p.callback),typeof p.annotations<"u"&&(c.annotations=p.annotations),typeof p._meta<"u"&&(c._meta=p._meta),typeof p.enabled<"u"&&(c.enabled=p.enabled),this.sendToolListChanged()}};return this._registeredTools[e]=c,this.setToolRequestHandlers(),this.sendToolListChanged(),c}tool(e,...i){if(this._registeredTools[e])throw new Error(`Tool ${e} is already registered`);let n,a,r,s;if(typeof i[0]=="string"&&(n=i.shift()),i.length>1){let l=i[0];if(uw(l))a=i.shift(),i.length>1&&typeof i[0]=="object"&&i[0]!==null&&!uw(i[0])&&(s=i.shift());else if(typeof l=="object"&&l!==null){if(Object.values(l).some(u=>typeof u=="object"&&u!==null))throw new Error(`Tool ${e} expected a Zod schema or ToolAnnotations, but received an unrecognized object`);s=i.shift()}}let o=i[0];return this._createRegisteredTool(e,void 0,n,a,r,s,{taskSupport:"forbidden"},void 0,o)}registerTool(e,i,n){if(this._registeredTools[e])throw new Error(`Tool ${e} is already registered`);let{title:a,description:r,inputSchema:s,outputSchema:o,annotations:l,_meta:u}=i;return this._createRegisteredTool(e,a,r,s,o,l,{taskSupport:"forbidden"},u,n)}prompt(e,...i){if(this._registeredPrompts[e])throw new Error(`Prompt ${e} is already registered`);let n;typeof i[0]=="string"&&(n=i.shift());let a;i.length>1&&(a=i.shift());let r=i[0],s=this._createRegisteredPrompt(e,void 0,n,a,r);return this.setPromptRequestHandlers(),this.sendPromptListChanged(),s}registerPrompt(e,i,n){if(this._registeredPrompts[e])throw new Error(`Prompt ${e} is already registered`);let{title:a,description:r,argsSchema:s}=i,o=this._createRegisteredPrompt(e,a,r,s,n);return this.setPromptRequestHandlers(),this.sendPromptListChanged(),o}isConnected(){return this.server.transport!==void 0}async sendLoggingMessage(e,i){return this.server.sendLoggingMessage(e,i)}sendResourceListChanged(){this.isConnected()&&this.server.sendResourceListChanged()}sendToolListChanged(){this.isConnected()&&this.server.sendToolListChanged()}sendPromptListChanged(){this.isConnected()&&this.server.sendPromptListChanged()}};var IF={type:"object",properties:{}};function XT(t){return t!==null&&typeof t=="object"&&"parse"in t&&typeof t.parse=="function"&&"safeParse"in t&&typeof t.safeParse=="function"}function eM(t){return"_def"in t||"_zod"in t||XT(t)}function uw(t){return typeof t!="object"||t===null||eM(t)?!1:Object.keys(t).length===0?!0:Object.values(t).some(XT)}function QT(t){if(t){if(uw(t))return wa(t);if(!eM(t))throw new Error("inputSchema must be a Zod schema or raw shape, received an unrecognized object");return t}}function zF(t){let e=jt(t);return e?Object.entries(e).map(([i,n])=>{let a=yj(n),r=Pj(n);return{name:i,description:a,required:!r}}):[]}function Rt(t){let i=jt(t)?.method;if(!i)throw new Error("Schema is missing a method literal");let n=ru(i);if(typeof n=="string")return n;throw new Error("Schema method literal must be a string")}function YT(t){return{completion:{values:t.slice(0,100),total:t.length,hasMore:t.length>100}}}var Oo={completion:{values:[],hasMore:!1}};var cw=Xa(require("node:process"),1);var Ac=class{append(e){this._buffer=this._buffer?Buffer.concat([this._buffer,e]):e}readMessage(){if(!this._buffer)return null;let e=this._buffer.indexOf(` +`);if(e===-1)return null;let i=this._buffer.toString("utf8",0,e).replace(/\r$/,"");return this._buffer=this._buffer.subarray(e+1),DF(i)}clear(){this._buffer=void 0}};function DF(t){return cS.parse(JSON.parse(t))}function iM(t){return JSON.stringify(t)+` +`}var bc=class{constructor(e=cw.default.stdin,i=cw.default.stdout){this._stdin=e,this._stdout=i,this._readBuffer=new Ac,this._started=!1,this._ondata=n=>{this._readBuffer.append(n),this.processReadBuffer()},this._onerror=n=>{this.onerror?.(n)}}async start(){if(this._started)throw new Error("StdioServerTransport already started! If using Server class, note that connect() calls start() automatically.");this._started=!0,this._stdin.on("data",this._ondata),this._stdin.on("error",this._onerror)}processReadBuffer(){for(;;)try{let e=this._readBuffer.readMessage();if(e===null)break;this.onmessage?.(e)}catch(e){this.onerror?.(e)}}async close(){this._stdin.off("data",this._ondata),this._stdin.off("error",this._onerror),this._stdin.listenerCount("data")===0&&this._stdin.pause(),this._readBuffer.clear(),this.onclose?.()}send(e){return new Promise(i=>{let n=iM(e);this._stdout.write(n)?i():this._stdout.once("drain",i)})}};var sy=Xa(sI());var lI=require("node:child_process"),uI=Xa(require("node:fs")),dd=Xa(require("node:path"));var oI=12e4,iX=dd.default.resolve("bin","deploy-runner.js"),cI=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.",annotations:{title:"Deploy Flow",readOnlyHint:!1,destructiveHint:!0},inputSchema:{flowFile:Cn.string().min(1).describe("Path to the TypeScript flow file")}},handler:async({flowFile:e})=>{let i=dd.default.resolve(e);if(!uI.default.existsSync(i))return{isError:!0,content:[{type:"text",text:`Flow file not found: ${i}`}]};let n=[iX,"--flow-file",i];return new Promise(a=>{let r=[],s,o=!1,l=h=>{o||(o=!0,clearTimeout(c),a(h))},u=(0,lI.spawn)("node",n,{env:{...process.env,GENESYS_REGION:t.region,GENESYS_CLIENT_ID:t.clientId,GENESYS_CLIENT_SECRET:t.clientSecret},cwd:dd.default.dirname(i),stdio:["ignore","pipe","pipe"]}),c=setTimeout(()=>{u.kill("SIGTERM"),l({isError:!0,content:[{type:"text",text:`Deploy timed out after ${oI/1e3}s. Logs: ${r.join(` -`)}`}]})},sI),p="";u.stdout.on("data",h=>{p+=h.toString();let g=p.split(` +`)}`}]})},oI),p="";u.stdout.on("data",h=>{p+=h.toString();let g=p.split(` `);p=g.pop()??"";for(let m of g)if(m.trim())try{let f=JSON.parse(m);f.type==="log"?r.push(`[${f.level}] ${f.message}`):f.type==="result"&&(s=f)}catch{r.push(m)}});let d="";u.stderr.on("data",h=>{d+=h.toString()}),u.on("close",h=>{if(p.trim())try{let m=JSON.parse(p.trim());m.type==="result"?s=m:m.type==="log"&&r.push(`[${m.level}] ${m.message}`)}catch{p.trim()&&r.push(p.trim())}d.trim()&&r.push(`[stderr] ${d.trim()}`);let g=r.length?` Logs: ${r.join(` `)}`:"";if(s?.success){let m=["Flow deployed successfully."];s.flowId&&m.push(`Flow ID: ${s.flowId}`),s.flowName&&m.push(`Flow Name: ${s.flowName}`),l({content:[{type:"text",text:m.join(` -`)+g}]})}else{let m=s?.error??`Deploy runner exited with code ${h}`;l({isError:!0,content:[{type:"text",text:`Deploy failed: ${m}${g}`}]})}})})}});function cI(t){let e=t.toUpperCase();return e.endsWith("FLOW")?e:`${e}FLOW`}function iX(t,e){let i={};for(let n of e){let a=n.type??"UNKNOWN";i[a]||(i[a]=[]),i[a].push({id:n.id??"",name:n.name??"",...n.version?{version:n.version}:{},deleted:n.deleted??!1,updated:n.updated??!1})}return{flow:{id:t.id??"",name:t.name,type:cI(t.type??""),version:t.publishedVersion?.commitVersion??"1"},dependencies:i}}var pI=({architectApi:t})=>({config:{description:"Retrieves all dependencies consumed by a Genesys Cloud Architect flow. Returns the flow metadata and its dependencies grouped by type.",annotations:{title:"Flow Dependencies",readOnlyHint:!0,destructiveHint:!1},inputSchema:{flowId:Cn.string().min(1).describe("The Genesys Cloud Architect flow ID")}},handler:async({flowId:e})=>{try{let i;try{i=await t.getFlow(e)}catch{return{isError:!0,content:[{type:"text",text:`Flow "${e}" not found.`}]}}let n=cI(i.type??""),a=i.publishedVersion?.commitVersion??"1",r=[],s=1;for(;;){let l=await t.getArchitectDependencytrackingConsumedresources(i.id,a,n,{pageSize:100,pageNumber:s});if(l.entities&&r.push(...l.entities),!l.nextUri)break;s++}let o=iX(i,r);return{content:[{type:"text",text:JSON.stringify(o,null,2)}]}}catch(i){return{isError:!0,content:[{type:"text",text:`Failed to retrieve flow dependencies: ${i instanceof Error?i.message:String(i)}`}]}}}});var gs=Cn.object({CLAUDE_PLUGIN_OPTION_genesys_region:Cn.string().min(1),CLAUDE_PLUGIN_OPTION_genesys_client_id:Cn.string().min(1),CLAUDE_PLUGIN_OPTION_genesys_client_secret:Cn.string().min(1)}).parse(process.env),sy=new Cc({name:"genesys-cloud-architect",version:"1.0.0"}),dI=pI({architectApi:new ry.default.ArchitectApi});sy.registerTool("flow_dependencies",dI.config,dI.handler);var hI=uI({clientId:gs.CLAUDE_PLUGIN_OPTION_genesys_client_id,clientSecret:gs.CLAUDE_PLUGIN_OPTION_genesys_client_secret,region:gs.CLAUDE_PLUGIN_OPTION_genesys_region});sy.registerTool("deploy_flow",hI.config,hI.handler);(async()=>{let t=ry.default.ApiClient.instance;t.setEnvironment(gs.CLAUDE_PLUGIN_OPTION_genesys_region),await t.loginClientCredentialsGrant(gs.CLAUDE_PLUGIN_OPTION_genesys_client_id,gs.CLAUDE_PLUGIN_OPTION_genesys_client_secret);let e=new bc;await sy.connect(e)})().catch(t=>{console.error("Failed to start server:",t),process.exit(1)}); +`)+g}]})}else{let m=s?.error??`Deploy runner exited with code ${h}`;l({isError:!0,content:[{type:"text",text:`Deploy failed: ${m}${g}`}]})}})})}});function pI(t){let e=t.toUpperCase();return e.endsWith("FLOW")?e:`${e}FLOW`}function nX(t,e){let i={};for(let n of e){let a=n.type??"UNKNOWN";i[a]||(i[a]=[]),i[a].push({id:n.id??"",name:n.name??"",...n.version?{version:n.version}:{},deleted:n.deleted??!1,updated:n.updated??!1})}return{flow:{id:t.id??"",name:t.name,type:pI(t.type??""),version:t.publishedVersion?.commitVersion??"1"},dependencies:i}}var dI=({architectApi:t})=>({config:{description:"Retrieves all dependencies consumed by a Genesys Cloud Architect flow. Returns the flow metadata and its dependencies grouped by type.",annotations:{title:"Flow Dependencies",readOnlyHint:!0,destructiveHint:!1},inputSchema:{flowId:Cn.string().min(1).describe("The Genesys Cloud Architect flow ID")}},handler:async({flowId:e})=>{try{let i;try{i=await t.getFlow(e)}catch{return{isError:!0,content:[{type:"text",text:`Flow "${e}" not found.`}]}}let n=pI(i.type??""),a=i.publishedVersion?.commitVersion??"1",r=[],s=1;for(;;){let l=await t.getArchitectDependencytrackingConsumedresources(i.id,a,n,{pageSize:100,pageNumber:s});if(l.entities&&r.push(...l.entities),!l.nextUri)break;s++}let o=nX(i,r);return{content:[{type:"text",text:JSON.stringify(o,null,2)}]}}catch(i){return{isError:!0,content:[{type:"text",text:`Failed to retrieve flow dependencies: ${i instanceof Error?i.message:String(i)}`}]}}}});var ry=Cn.object({CLAUDE_PLUGIN_OPTION_genesys_region:Cn.string().min(1),CLAUDE_PLUGIN_OPTION_genesys_client_id:Cn.string().min(1),CLAUDE_PLUGIN_OPTION_genesys_client_secret:Cn.string().min(1)}).safeParse(process.env);if(!ry.success){let t=ry.error.issues.map(e=>e.path[0]).join(` + `);console.error(`Missing required environment variables: +${t}`),process.exit(1)}var gs=ry.data,oy=new Cc({name:"genesys-cloud-architect",version:"1.0.0"}),hI=dI({architectApi:new sy.default.ArchitectApi});oy.registerTool("flow_dependencies",hI.config,hI.handler);var gI=cI({clientId:gs.CLAUDE_PLUGIN_OPTION_genesys_client_id,clientSecret:gs.CLAUDE_PLUGIN_OPTION_genesys_client_secret,region:gs.CLAUDE_PLUGIN_OPTION_genesys_region});oy.registerTool("deploy_flow",gI.config,gI.handler);(async()=>{let t=sy.default.ApiClient.instance;t.setEnvironment(gs.CLAUDE_PLUGIN_OPTION_genesys_region),await t.loginClientCredentialsGrant(gs.CLAUDE_PLUGIN_OPTION_genesys_client_id,gs.CLAUDE_PLUGIN_OPTION_genesys_client_secret);let e=new bc;await oy.connect(e)})().catch(t=>{console.error("Failed to start server:",t),process.exit(1)}); /*! Bundled license information: mime-db/index.js: diff --git a/src/mcp-server/index.ts b/src/mcp-server/index.ts index ddb3bb8..cfeca3a 100644 --- a/src/mcp-server/index.ts +++ b/src/mcp-server/index.ts @@ -5,13 +5,21 @@ import { z } from "zod/v3"; import { deployFlow } from "./tools/deploy-flow.ts"; import { flowDependencies } from "./tools/flow-dependencies.ts"; -const envVars = z +const envResults = z .object({ CLAUDE_PLUGIN_OPTION_genesys_region: z.string().min(1), CLAUDE_PLUGIN_OPTION_genesys_client_id: z.string().min(1), CLAUDE_PLUGIN_OPTION_genesys_client_secret: z.string().min(1), }) - .parse(process.env); + .safeParse(process.env); + +if (!envResults.success) { + const missing = envResults.error.issues.map((i) => i.path[0]).join("\n "); + console.error(`Missing required environment variables:\n${missing}`); + process.exit(1); +} + +const envVars = envResults.data; const server = new McpServer({ name: "genesys-cloud-architect", From eafbe26a5fd4ca9c21b74defc5681f970c9db315 Mon Sep 17 00:00:00 2001 From: Lucas Woodward <31957045+SketchingDev@users.noreply.github.com> Date: Tue, 2 Jun 2026 22:35:08 +0100 Subject: [PATCH 08/11] Limit permissions of GitHub token --- .github/workflows/ci.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e35c610..bb8d5e1 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -4,6 +4,9 @@ on: pull_request: branches: [main] +permissions: + contents: read + jobs: lint-and-build: runs-on: ubuntu-latest From 076afd7f16d1d8325fc286d50bafe9f56bafedd7 Mon Sep 17 00:00:00 2001 From: Lucas Woodward <31957045+SketchingDev@users.noreply.github.com> Date: Tue, 2 Jun 2026 23:35:14 +0100 Subject: [PATCH 09/11] Allow smoke testing by skipping login --- .github/workflows/ci.yml | 5 +++ servers/genesys-cloud-architect-mcp.js | 52 +++++++++++++------------- src/mcp-server/index.ts | 23 +++++++++--- 3 files changed, 48 insertions(+), 32 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index bb8d5e1..be8e9a7 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -21,4 +21,9 @@ jobs: - run: pnpm run lint - run: pnpm run build - name: Smoke test MCP server + env: + PREVENT_LOGIN: "TRUE" + CLAUDE_PLUGIN_OPTION_genesys_region: "DUMMY_VALUE" + CLAUDE_PLUGIN_OPTION_genesys_client_id: "DUMMY_VALUE" + CLAUDE_PLUGIN_OPTION_genesys_client_secret: "DUMMY_VALUE" run: pnpm dlx @modelcontextprotocol/inspector --cli node servers/genesys-cloud-architect-mcp.js --method tools/list | grep -q '"tools"' diff --git a/servers/genesys-cloud-architect-mcp.js b/servers/genesys-cloud-architect-mcp.js index 6a77009..ed27c12 100644 --- a/servers/genesys-cloud-architect-mcp.js +++ b/servers/genesys-cloud-architect-mcp.js @@ -1,12 +1,12 @@ -"use strict";var fI=Object.create;var hd=Object.defineProperty;var wI=Object.getOwnPropertyDescriptor;var vI=Object.getOwnPropertyNames;var CI=Object.getPrototypeOf,AI=Object.prototype.hasOwnProperty;var w=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),gd=(t,e)=>{for(var i in e)hd(t,i,{get:e[i],enumerable:!0})},bI=(t,e,i,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of vI(e))!AI.call(t,a)&&a!==i&&hd(t,a,{get:()=>e[a],enumerable:!(n=wI(e,a))||n.enumerable});return t};var Xa=(t,e,i)=>(i=t!=null?fI(CI(t)):{},bI(e||!t||!t.__esModule?hd(i,"default",{value:t,enumerable:!0}):i,t));var Ys=w(Pe=>{"use strict";Object.defineProperty(Pe,"__esModule",{value:!0});Pe.regexpCode=Pe.getEsmExportName=Pe.getProperty=Pe.safeStringify=Pe.stringify=Pe.strConcat=Pe.addCodeArg=Pe.str=Pe._=Pe.nil=Pe._Code=Pe.Name=Pe.IDENTIFIER=Pe._CodeOrName=void 0;var Ks=class{};Pe._CodeOrName=Ks;Pe.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;var va=class extends Ks{constructor(e){if(super(),!Pe.IDENTIFIER.test(e))throw new Error("CodeGen: name must be a valid identifier");this.str=e}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}};Pe.Name=va;var cn=class extends Ks{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((i,n)=>`${i}${n}`,"")}get names(){var e;return(e=this._names)!==null&&e!==void 0?e:this._names=this._items.reduce((i,n)=>(n instanceof va&&(i[n.str]=(i[n.str]||0)+1),i),{})}};Pe._Code=cn;Pe.nil=new cn("");function eO(t,...e){let i=[t[0]],n=0;for(;n{"use strict";Object.defineProperty(Ni,"__esModule",{value:!0});Ni.ValueScope=Ni.ValueScopeName=Ni.Scope=Ni.varKinds=Ni.UsedValueState=void 0;var $i=Ys(),mm=class extends Error{constructor(e){super(`CodeGen: "code" for ${e} not defined`),this.value=e.value}},Ru;(function(t){t[t.Started=0]="Started",t[t.Completed=1]="Completed"})(Ru||(Ni.UsedValueState=Ru={}));Ni.varKinds={const:new $i.Name("const"),let:new $i.Name("let"),var:new $i.Name("var")};var Iu=class{constructor({prefixes:e,parent:i}={}){this._names={},this._prefixes=e,this._parent=i}toName(e){return e instanceof $i.Name?e:this.name(e)}name(e){return new $i.Name(this._newName(e))}_newName(e){let i=this._names[e]||this._nameGroup(e);return`${e}${i.index++}`}_nameGroup(e){var i,n;if(!((n=(i=this._parent)===null||i===void 0?void 0:i._prefixes)===null||n===void 0)&&n.has(e)||this._prefixes&&!this._prefixes.has(e))throw new Error(`CodeGen: prefix "${e}" is not allowed in this scope`);return this._names[e]={prefix:e,index:0}}};Ni.Scope=Iu;var zu=class extends $i.Name{constructor(e,i){super(i),this.prefix=e}setValue(e,{property:i,itemIndex:n}){this.value=e,this.scopePath=(0,$i._)`.${new $i.Name(i)}[${n}]`}};Ni.ValueScopeName=zu;var D$=(0,$i._)`\n`,fm=class extends Iu{constructor(e){super(e),this._values={},this._scope=e.scope,this.opts={...e,_n:e.lines?D$:$i.nil}}get(){return this._scope}name(e){return new zu(e,this._newName(e))}value(e,i){var n;if(i.ref===void 0)throw new Error("CodeGen: ref must be passed in value");let a=this.toName(e),{prefix:r}=a,s=(n=i.key)!==null&&n!==void 0?n:i.ref,o=this._values[r];if(o){let c=o.get(s);if(c)return c}else o=this._values[r]=new Map;o.set(s,a);let l=this._scope[r]||(this._scope[r]=[]),u=l.length;return l[u]=i.ref,a.setValue(i,{property:r,itemIndex:u}),a}getValue(e,i){let n=this._values[e];if(n)return n.get(i)}scopeRefs(e,i=this._values){return this._reduceValues(i,n=>{if(n.scopePath===void 0)throw new Error(`CodeGen: name "${n}" has no value`);return(0,$i._)`${e}${n.scopePath}`})}scopeCode(e=this._values,i,n){return this._reduceValues(e,a=>{if(a.value===void 0)throw new Error(`CodeGen: name "${a}" has no value`);return a.value.code},i,n)}_reduceValues(e,i,n={},a){let r=$i.nil;for(let s in e){let o=e[s];if(!o)continue;let l=n[s]=n[s]||new Map;o.forEach(u=>{if(l.has(u))return;l.set(u,Ru.Started);let c=i(u);if(c){let p=this.opts.es5?Ni.varKinds.var:Ni.varKinds.const;r=(0,$i._)`${r}${p} ${u} = ${c};${this.opts._n}`}else if(c=a?.(u))r=(0,$i._)`${r}${c}${this.opts._n}`;else throw new mm(u);l.set(u,Ru.Completed)})}return r}};Ni.ValueScope=fm});var re=w(oe=>{"use strict";Object.defineProperty(oe,"__esModule",{value:!0});oe.or=oe.and=oe.not=oe.CodeGen=oe.operators=oe.varKinds=oe.ValueScopeName=oe.ValueScope=oe.Scope=oe.Name=oe.regexpCode=oe.stringify=oe.getProperty=oe.nil=oe.strConcat=oe.str=oe._=void 0;var fe=Ys(),yn=wm(),xt=Ys();Object.defineProperty(oe,"_",{enumerable:!0,get:function(){return xt._}});Object.defineProperty(oe,"str",{enumerable:!0,get:function(){return xt.str}});Object.defineProperty(oe,"strConcat",{enumerable:!0,get:function(){return xt.strConcat}});Object.defineProperty(oe,"nil",{enumerable:!0,get:function(){return xt.nil}});Object.defineProperty(oe,"getProperty",{enumerable:!0,get:function(){return xt.getProperty}});Object.defineProperty(oe,"stringify",{enumerable:!0,get:function(){return xt.stringify}});Object.defineProperty(oe,"regexpCode",{enumerable:!0,get:function(){return xt.regexpCode}});Object.defineProperty(oe,"Name",{enumerable:!0,get:function(){return xt.Name}});var Nu=wm();Object.defineProperty(oe,"Scope",{enumerable:!0,get:function(){return Nu.Scope}});Object.defineProperty(oe,"ValueScope",{enumerable:!0,get:function(){return Nu.ValueScope}});Object.defineProperty(oe,"ValueScopeName",{enumerable:!0,get:function(){return Nu.ValueScopeName}});Object.defineProperty(oe,"varKinds",{enumerable:!0,get:function(){return Nu.varKinds}});oe.operators={GT:new fe._Code(">"),GTE:new fe._Code(">="),LT:new fe._Code("<"),LTE:new fe._Code("<="),EQ:new fe._Code("==="),NEQ:new fe._Code("!=="),NOT:new fe._Code("!"),OR:new fe._Code("||"),AND:new fe._Code("&&"),ADD:new fe._Code("+")};var at=class{optimizeNodes(){return this}optimizeNames(e,i){return this}},vm=class extends at{constructor(e,i,n){super(),this.varKind=e,this.name=i,this.rhs=n}render({es5:e,_n:i}){let n=e?yn.varKinds.var:this.varKind,a=this.rhs===void 0?"":` = ${this.rhs}`;return`${n} ${this.name}${a};`+i}optimizeNames(e,i){if(e[this.name.str])return this.rhs&&(this.rhs=br(this.rhs,e,i)),this}get names(){return this.rhs instanceof fe._CodeOrName?this.rhs.names:{}}},Du=class extends at{constructor(e,i,n){super(),this.lhs=e,this.rhs=i,this.sideEffects=n}render({_n:e}){return`${this.lhs} = ${this.rhs};`+e}optimizeNames(e,i){if(!(this.lhs instanceof fe.Name&&!e[this.lhs.str]&&!this.sideEffects))return this.rhs=br(this.rhs,e,i),this}get names(){let e=this.lhs instanceof fe.Name?{}:{...this.lhs.names};return $u(e,this.rhs)}},Cm=class extends Du{constructor(e,i,n,a){super(e,n,a),this.op=i}render({_n:e}){return`${this.lhs} ${this.op}= ${this.rhs};`+e}},Am=class extends at{constructor(e){super(),this.label=e,this.names={}}render({_n:e}){return`${this.label}:`+e}},bm=class extends at{constructor(e){super(),this.label=e,this.names={}}render({_n:e}){return`break${this.label?` ${this.label}`:""};`+e}},ym=class extends at{constructor(e){super(),this.error=e}render({_n:e}){return`throw ${this.error};`+e}get names(){return this.error.names}},Pm=class extends at{constructor(e){super(),this.code=e}render({_n:e}){return`${this.code};`+e}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(e,i){return this.code=br(this.code,e,i),this}get names(){return this.code instanceof fe._CodeOrName?this.code.names:{}}},Xs=class extends at{constructor(e=[]){super(),this.nodes=e}render(e){return this.nodes.reduce((i,n)=>i+n.render(e),"")}optimizeNodes(){let{nodes:e}=this,i=e.length;for(;i--;){let n=e[i].optimizeNodes();Array.isArray(n)?e.splice(i,1,...n):n?e[i]=n:e.splice(i,1)}return e.length>0?this:void 0}optimizeNames(e,i){let{nodes:n}=this,a=n.length;for(;a--;){let r=n[a];r.optimizeNames(e,i)||(G$(e,r.names),n.splice(a,1))}return n.length>0?this:void 0}get names(){return this.nodes.reduce((e,i)=>ba(e,i.names),{})}},rt=class extends Xs{render(e){return"{"+e._n+super.render(e)+"}"+e._n}},jm=class extends Xs{},Ar=class extends rt{};Ar.kind="else";var Ca=class t extends rt{constructor(e,i){super(i),this.condition=e}render(e){let i=`if(${this.condition})`+super.render(e);return this.else&&(i+="else "+this.else.render(e)),i}optimizeNodes(){super.optimizeNodes();let e=this.condition;if(e===!0)return this.nodes;let i=this.else;if(i){let n=i.optimizeNodes();i=this.else=Array.isArray(n)?new Ar(n):n}if(i)return e===!1?i instanceof t?i:i.nodes:this.nodes.length?this:new t(nO(e),i instanceof t?[i]:i.nodes);if(!(e===!1||!this.nodes.length))return this}optimizeNames(e,i){var n;if(this.else=(n=this.else)===null||n===void 0?void 0:n.optimizeNames(e,i),!!(super.optimizeNames(e,i)||this.else))return this.condition=br(this.condition,e,i),this}get names(){let e=super.names;return $u(e,this.condition),this.else&&ba(e,this.else.names),e}};Ca.kind="if";var Aa=class extends rt{};Aa.kind="for";var Sm=class extends Aa{constructor(e){super(),this.iteration=e}render(e){return`for(${this.iteration})`+super.render(e)}optimizeNames(e,i){if(super.optimizeNames(e,i))return this.iteration=br(this.iteration,e,i),this}get names(){return ba(super.names,this.iteration.names)}},Om=class extends Aa{constructor(e,i,n,a){super(),this.varKind=e,this.name=i,this.from=n,this.to=a}render(e){let i=e.es5?yn.varKinds.var:this.varKind,{name:n,from:a,to:r}=this;return`for(${i} ${n}=${a}; ${n}<${r}; ${n}++)`+super.render(e)}get names(){let e=$u(super.names,this.from);return $u(e,this.to)}},Gu=class extends Aa{constructor(e,i,n,a){super(),this.loop=e,this.varKind=i,this.name=n,this.iterable=a}render(e){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(e)}optimizeNames(e,i){if(super.optimizeNames(e,i))return this.iterable=br(this.iterable,e,i),this}get names(){return ba(super.names,this.iterable.names)}},eo=class extends rt{constructor(e,i,n){super(),this.name=e,this.args=i,this.async=n}render(e){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(e)}};eo.kind="func";var io=class extends Xs{render(e){return"return "+super.render(e)}};io.kind="return";var xm=class extends rt{render(e){let i="try"+super.render(e);return this.catch&&(i+=this.catch.render(e)),this.finally&&(i+=this.finally.render(e)),i}optimizeNodes(){var e,i;return super.optimizeNodes(),(e=this.catch)===null||e===void 0||e.optimizeNodes(),(i=this.finally)===null||i===void 0||i.optimizeNodes(),this}optimizeNames(e,i){var n,a;return super.optimizeNames(e,i),(n=this.catch)===null||n===void 0||n.optimizeNames(e,i),(a=this.finally)===null||a===void 0||a.optimizeNames(e,i),this}get names(){let e=super.names;return this.catch&&ba(e,this.catch.names),this.finally&&ba(e,this.finally.names),e}},no=class extends rt{constructor(e){super(),this.error=e}render(e){return`catch(${this.error})`+super.render(e)}};no.kind="catch";var to=class extends rt{render(e){return"finally"+super.render(e)}};to.kind="finally";var Tm=class{constructor(e,i={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...i,_n:i.lines?` -`:""},this._extScope=e,this._scope=new yn.Scope({parent:e}),this._nodes=[new jm]}toString(){return this._root.render(this.opts)}name(e){return this._scope.name(e)}scopeName(e){return this._extScope.name(e)}scopeValue(e,i){let n=this._extScope.value(e,i);return(this._values[n.prefix]||(this._values[n.prefix]=new Set)).add(n),n}getScopeValue(e,i){return this._extScope.getValue(e,i)}scopeRefs(e){return this._extScope.scopeRefs(e,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(e,i,n,a){let r=this._scope.toName(i);return n!==void 0&&a&&(this._constants[r.str]=n),this._leafNode(new vm(e,r,n)),r}const(e,i,n){return this._def(yn.varKinds.const,e,i,n)}let(e,i,n){return this._def(yn.varKinds.let,e,i,n)}var(e,i,n){return this._def(yn.varKinds.var,e,i,n)}assign(e,i,n){return this._leafNode(new Du(e,i,n))}add(e,i){return this._leafNode(new Cm(e,oe.operators.ADD,i))}code(e){return typeof e=="function"?e():e!==fe.nil&&this._leafNode(new Pm(e)),this}object(...e){let i=["{"];for(let[n,a]of e)i.length>1&&i.push(","),i.push(n),(n!==a||this.opts.es5)&&(i.push(":"),(0,fe.addCodeArg)(i,a));return i.push("}"),new fe._Code(i)}if(e,i,n){if(this._blockNode(new Ca(e)),i&&n)this.code(i).else().code(n).endIf();else if(i)this.code(i).endIf();else if(n)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(e){return this._elseNode(new Ca(e))}else(){return this._elseNode(new Ar)}endIf(){return this._endBlockNode(Ca,Ar)}_for(e,i){return this._blockNode(e),i&&this.code(i).endFor(),this}for(e,i){return this._for(new Sm(e),i)}forRange(e,i,n,a,r=this.opts.es5?yn.varKinds.var:yn.varKinds.let){let s=this._scope.toName(e);return this._for(new Om(r,s,i,n),()=>a(s))}forOf(e,i,n,a=yn.varKinds.const){let r=this._scope.toName(e);if(this.opts.es5){let s=i instanceof fe.Name?i:this.var("_arr",i);return this.forRange("_i",0,(0,fe._)`${s}.length`,o=>{this.var(r,(0,fe._)`${s}[${o}]`),n(r)})}return this._for(new Gu("of",a,r,i),()=>n(r))}forIn(e,i,n,a=this.opts.es5?yn.varKinds.var:yn.varKinds.const){if(this.opts.ownProperties)return this.forOf(e,(0,fe._)`Object.keys(${i})`,n);let r=this._scope.toName(e);return this._for(new Gu("in",a,r,i),()=>n(r))}endFor(){return this._endBlockNode(Aa)}label(e){return this._leafNode(new Am(e))}break(e){return this._leafNode(new bm(e))}return(e){let i=new io;if(this._blockNode(i),this.code(e),i.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(io)}try(e,i,n){if(!i&&!n)throw new Error('CodeGen: "try" without "catch" and "finally"');let a=new xm;if(this._blockNode(a),this.code(e),i){let r=this.name("e");this._currNode=a.catch=new no(r),i(r)}return n&&(this._currNode=a.finally=new to,this.code(n)),this._endBlockNode(no,to)}throw(e){return this._leafNode(new ym(e))}block(e,i){return this._blockStarts.push(this._nodes.length),e&&this.code(e).endBlock(i),this}endBlock(e){let i=this._blockStarts.pop();if(i===void 0)throw new Error("CodeGen: not in self-balancing block");let n=this._nodes.length-i;if(n<0||e!==void 0&&n!==e)throw new Error(`CodeGen: wrong number of nodes: ${n} vs ${e} expected`);return this._nodes.length=i,this}func(e,i=fe.nil,n,a){return this._blockNode(new eo(e,i,n)),a&&this.code(a).endFunc(),this}endFunc(){return this._endBlockNode(eo)}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,i){let n=this._currNode;if(n instanceof e||i&&n instanceof i)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${i?`${e.kind}/${i.kind}`:e.kind}"`)}_elseNode(e){let i=this._currNode;if(!(i instanceof Ca))throw new Error('CodeGen: "else" without "if"');return this._currNode=i.else=e,this}get _root(){return this._nodes[0]}get _currNode(){let e=this._nodes;return e[e.length-1]}set _currNode(e){let i=this._nodes;i[i.length-1]=e}};oe.CodeGen=Tm;function ba(t,e){for(let i in e)t[i]=(t[i]||0)+(e[i]||0);return t}function $u(t,e){return e instanceof fe._CodeOrName?ba(t,e.names):t}function br(t,e,i){if(t instanceof fe.Name)return n(t);if(!a(t))return t;return new fe._Code(t._items.reduce((r,s)=>(s instanceof fe.Name&&(s=n(s)),s instanceof fe._Code?r.push(...s._items):r.push(s),r),[]));function n(r){let s=i[r.str];return s===void 0||e[r.str]!==1?r:(delete e[r.str],s)}function a(r){return r instanceof fe._Code&&r._items.some(s=>s instanceof fe.Name&&e[s.str]===1&&i[s.str]!==void 0)}}function G$(t,e){for(let i in e)t[i]=(t[i]||0)-(e[i]||0)}function nO(t){return typeof t=="boolean"||typeof t=="number"||t===null?!t:(0,fe._)`!${Mm(t)}`}oe.not=nO;var $$=tO(oe.operators.AND);function N$(...t){return t.reduce($$)}oe.and=N$;var U$=tO(oe.operators.OR);function L$(...t){return t.reduce(U$)}oe.or=L$;function tO(t){return(e,i)=>e===fe.nil?i:i===fe.nil?e:(0,fe._)`${Mm(e)} ${t} ${Mm(i)}`}function Mm(t){return t instanceof fe.Name?t:(0,fe._)`(${t})`}});var we=w(le=>{"use strict";Object.defineProperty(le,"__esModule",{value:!0});le.checkStrictMode=le.getErrorPath=le.Type=le.useFunc=le.setEvaluated=le.evaluatedPropsToName=le.mergeEvaluated=le.eachItem=le.unescapeJsonPointer=le.escapeJsonPointer=le.escapeFragment=le.unescapeFragment=le.schemaRefOrVal=le.schemaHasRulesButRef=le.schemaHasRules=le.checkUnknownRules=le.alwaysValidSchema=le.toHash=void 0;var _e=re(),W$=Ys();function B$(t){let e={};for(let i of t)e[i]=!0;return e}le.toHash=B$;function F$(t,e){return typeof e=="boolean"?e:Object.keys(e).length===0?!0:(sO(t,e),!oO(e,t.self.RULES.all))}le.alwaysValidSchema=F$;function sO(t,e=t.schema){let{opts:i,self:n}=t;if(!i.strictSchema||typeof e=="boolean")return;let a=n.RULES.keywords;for(let r in e)a[r]||cO(t,`unknown keyword: "${r}"`)}le.checkUnknownRules=sO;function oO(t,e){if(typeof t=="boolean")return!t;for(let i in t)if(e[i])return!0;return!1}le.schemaHasRules=oO;function V$(t,e){if(typeof t=="boolean")return!t;for(let i in t)if(i!=="$ref"&&e.all[i])return!0;return!1}le.schemaHasRulesButRef=V$;function J$({topSchemaRef:t,schemaPath:e},i,n,a){if(!a){if(typeof i=="number"||typeof i=="boolean")return i;if(typeof i=="string")return(0,_e._)`${i}`}return(0,_e._)`${t}${e}${(0,_e.getProperty)(n)}`}le.schemaRefOrVal=J$;function Z$(t){return lO(decodeURIComponent(t))}le.unescapeFragment=Z$;function K$(t){return encodeURIComponent(km(t))}le.escapeFragment=K$;function km(t){return typeof t=="number"?`${t}`:t.replace(/~/g,"~0").replace(/\//g,"~1")}le.escapeJsonPointer=km;function lO(t){return t.replace(/~1/g,"/").replace(/~0/g,"~")}le.unescapeJsonPointer=lO;function Q$(t,e){if(Array.isArray(t))for(let i of t)e(i);else e(t)}le.eachItem=Q$;function aO({mergeNames:t,mergeToName:e,mergeValues:i,resultToName:n}){return(a,r,s,o)=>{let l=s===void 0?r:s instanceof _e.Name?(r instanceof _e.Name?t(a,r,s):e(a,r,s),s):r instanceof _e.Name?(e(a,s,r),r):i(r,s);return o===_e.Name&&!(l instanceof _e.Name)?n(a,l):l}}le.mergeEvaluated={props:aO({mergeNames:(t,e,i)=>t.if((0,_e._)`${i} !== true && ${e} !== undefined`,()=>{t.if((0,_e._)`${e} === true`,()=>t.assign(i,!0),()=>t.assign(i,(0,_e._)`${i} || {}`).code((0,_e._)`Object.assign(${i}, ${e})`))}),mergeToName:(t,e,i)=>t.if((0,_e._)`${i} !== true`,()=>{e===!0?t.assign(i,!0):(t.assign(i,(0,_e._)`${i} || {}`),qm(t,i,e))}),mergeValues:(t,e)=>t===!0?!0:{...t,...e},resultToName:uO}),items:aO({mergeNames:(t,e,i)=>t.if((0,_e._)`${i} !== true && ${e} !== undefined`,()=>t.assign(i,(0,_e._)`${e} === true ? true : ${i} > ${e} ? ${i} : ${e}`)),mergeToName:(t,e,i)=>t.if((0,_e._)`${i} !== true`,()=>t.assign(i,e===!0?!0:(0,_e._)`${i} > ${e} ? ${i} : ${e}`)),mergeValues:(t,e)=>t===!0?!0:Math.max(t,e),resultToName:(t,e)=>t.var("items",e)})};function uO(t,e){if(e===!0)return t.var("props",!0);let i=t.var("props",(0,_e._)`{}`);return e!==void 0&&qm(t,i,e),i}le.evaluatedPropsToName=uO;function qm(t,e,i){Object.keys(i).forEach(n=>t.assign((0,_e._)`${e}${(0,_e.getProperty)(n)}`,!0))}le.setEvaluated=qm;var rO={};function Y$(t,e){return t.scopeValue("func",{ref:e,code:rO[e.code]||(rO[e.code]=new W$._Code(e.code))})}le.useFunc=Y$;var Em;(function(t){t[t.Num=0]="Num",t[t.Str=1]="Str"})(Em||(le.Type=Em={}));function X$(t,e,i){if(t instanceof _e.Name){let n=e===Em.Num;return i?n?(0,_e._)`"[" + ${t} + "]"`:(0,_e._)`"['" + ${t} + "']"`:n?(0,_e._)`"/" + ${t}`:(0,_e._)`"/" + ${t}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return i?(0,_e.getProperty)(t).toString():"/"+km(t)}le.getErrorPath=X$;function cO(t,e,i=t.opts.strictSchema){if(i){if(e=`strict mode: ${e}`,i===!0)throw new Error(e);t.self.logger.warn(e)}}le.checkStrictMode=cO});var st=w(_m=>{"use strict";Object.defineProperty(_m,"__esModule",{value:!0});var Ti=re(),eN={data:new Ti.Name("data"),valCxt:new Ti.Name("valCxt"),instancePath:new Ti.Name("instancePath"),parentData:new Ti.Name("parentData"),parentDataProperty:new Ti.Name("parentDataProperty"),rootData:new Ti.Name("rootData"),dynamicAnchors:new Ti.Name("dynamicAnchors"),vErrors:new Ti.Name("vErrors"),errors:new Ti.Name("errors"),this:new Ti.Name("this"),self:new Ti.Name("self"),scope:new Ti.Name("scope"),json:new Ti.Name("json"),jsonPos:new Ti.Name("jsonPos"),jsonLen:new Ti.Name("jsonLen"),jsonPart:new Ti.Name("jsonPart")};_m.default=eN});var ao=w(Mi=>{"use strict";Object.defineProperty(Mi,"__esModule",{value:!0});Mi.extendErrors=Mi.resetErrorsCount=Mi.reportExtraError=Mi.reportError=Mi.keyword$DataError=Mi.keywordError=void 0;var ve=re(),Uu=we(),Hi=st();Mi.keywordError={message:({keyword:t})=>(0,ve.str)`must pass "${t}" keyword validation`};Mi.keyword$DataError={message:({keyword:t,schemaType:e})=>e?(0,ve.str)`"${t}" keyword must be ${e} ($data)`:(0,ve.str)`"${t}" keyword is invalid ($data)`};function iN(t,e=Mi.keywordError,i,n){let{it:a}=t,{gen:r,compositeRule:s,allErrors:o}=a,l=hO(t,e,i);n??(s||o)?pO(r,l):dO(a,(0,ve._)`[${l}]`)}Mi.reportError=iN;function nN(t,e=Mi.keywordError,i){let{it:n}=t,{gen:a,compositeRule:r,allErrors:s}=n,o=hO(t,e,i);pO(a,o),r||s||dO(n,Hi.default.vErrors)}Mi.reportExtraError=nN;function tN(t,e){t.assign(Hi.default.errors,e),t.if((0,ve._)`${Hi.default.vErrors} !== null`,()=>t.if(e,()=>t.assign((0,ve._)`${Hi.default.vErrors}.length`,e),()=>t.assign(Hi.default.vErrors,null)))}Mi.resetErrorsCount=tN;function aN({gen:t,keyword:e,schemaValue:i,data:n,errsCount:a,it:r}){if(a===void 0)throw new Error("ajv implementation error");let s=t.name("err");t.forRange("i",a,Hi.default.errors,o=>{t.const(s,(0,ve._)`${Hi.default.vErrors}[${o}]`),t.if((0,ve._)`${s}.instancePath === undefined`,()=>t.assign((0,ve._)`${s}.instancePath`,(0,ve.strConcat)(Hi.default.instancePath,r.errorPath))),t.assign((0,ve._)`${s}.schemaPath`,(0,ve.str)`${r.errSchemaPath}/${e}`),r.opts.verbose&&(t.assign((0,ve._)`${s}.schema`,i),t.assign((0,ve._)`${s}.data`,n))})}Mi.extendErrors=aN;function pO(t,e){let i=t.const("err",e);t.if((0,ve._)`${Hi.default.vErrors} === null`,()=>t.assign(Hi.default.vErrors,(0,ve._)`[${i}]`),(0,ve._)`${Hi.default.vErrors}.push(${i})`),t.code((0,ve._)`${Hi.default.errors}++`)}function dO(t,e){let{gen:i,validateName:n,schemaEnv:a}=t;a.$async?i.throw((0,ve._)`new ${t.ValidationError}(${e})`):(i.assign((0,ve._)`${n}.errors`,e),i.return(!1))}var ya={keyword:new ve.Name("keyword"),schemaPath:new ve.Name("schemaPath"),params:new ve.Name("params"),propertyName:new ve.Name("propertyName"),message:new ve.Name("message"),schema:new ve.Name("schema"),parentSchema:new ve.Name("parentSchema")};function hO(t,e,i){let{createErrors:n}=t.it;return n===!1?(0,ve._)`{}`:rN(t,e,i)}function rN(t,e,i={}){let{gen:n,it:a}=t,r=[sN(a,i),oN(t,i)];return lN(t,e,r),n.object(...r)}function sN({errorPath:t},{instancePath:e}){let i=e?(0,ve.str)`${t}${(0,Uu.getErrorPath)(e,Uu.Type.Str)}`:t;return[Hi.default.instancePath,(0,ve.strConcat)(Hi.default.instancePath,i)]}function oN({keyword:t,it:{errSchemaPath:e}},{schemaPath:i,parentSchema:n}){let a=n?e:(0,ve.str)`${e}/${t}`;return i&&(a=(0,ve.str)`${a}${(0,Uu.getErrorPath)(i,Uu.Type.Str)}`),[ya.schemaPath,a]}function lN(t,{params:e,message:i},n){let{keyword:a,data:r,schemaValue:s,it:o}=t,{opts:l,propertyName:u,topSchemaRef:c,schemaPath:p}=o;n.push([ya.keyword,a],[ya.params,typeof e=="function"?e(t):e||(0,ve._)`{}`]),l.messages&&n.push([ya.message,typeof i=="function"?i(t):i]),l.verbose&&n.push([ya.schema,s],[ya.parentSchema,(0,ve._)`${c}${p}`],[Hi.default.data,r]),u&&n.push([ya.propertyName,u])}});var mO=w(yr=>{"use strict";Object.defineProperty(yr,"__esModule",{value:!0});yr.boolOrEmptySchema=yr.topBoolOrEmptySchema=void 0;var uN=ao(),cN=re(),pN=st(),dN={message:"boolean schema is false"};function hN(t){let{gen:e,schema:i,validateName:n}=t;i===!1?gO(t,!1):typeof i=="object"&&i.$async===!0?e.return(pN.default.data):(e.assign((0,cN._)`${n}.errors`,null),e.return(!0))}yr.topBoolOrEmptySchema=hN;function gN(t,e){let{gen:i,schema:n}=t;n===!1?(i.var(e,!1),gO(t)):i.var(e,!0)}yr.boolOrEmptySchema=gN;function gO(t,e){let{gen:i,data:n}=t,a={gen:i,keyword:"false schema",data:n,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:t};(0,uN.reportError)(a,dN,void 0,e)}});var Hm=w(Pr=>{"use strict";Object.defineProperty(Pr,"__esModule",{value:!0});Pr.getRules=Pr.isJSONType=void 0;var mN=["string","number","integer","boolean","null","object","array"],fN=new Set(mN);function wN(t){return typeof t=="string"&&fN.has(t)}Pr.isJSONType=wN;function vN(){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:{}}}Pr.getRules=vN});var Rm=w(Tt=>{"use strict";Object.defineProperty(Tt,"__esModule",{value:!0});Tt.shouldUseRule=Tt.shouldUseGroup=Tt.schemaHasRulesForType=void 0;function CN({schema:t,self:e},i){let n=e.RULES.types[i];return n&&n!==!0&&fO(t,n)}Tt.schemaHasRulesForType=CN;function fO(t,e){return e.rules.some(i=>wO(t,i))}Tt.shouldUseGroup=fO;function wO(t,e){var i;return t[e.keyword]!==void 0||((i=e.definition.implements)===null||i===void 0?void 0:i.some(n=>t[n]!==void 0))}Tt.shouldUseRule=wO});var ro=w(Ei=>{"use strict";Object.defineProperty(Ei,"__esModule",{value:!0});Ei.reportTypeError=Ei.checkDataTypes=Ei.checkDataType=Ei.coerceAndCheckDataType=Ei.getJSONTypes=Ei.getSchemaTypes=Ei.DataType=void 0;var AN=Hm(),bN=Rm(),yN=ao(),te=re(),vO=we(),jr;(function(t){t[t.Correct=0]="Correct",t[t.Wrong=1]="Wrong"})(jr||(Ei.DataType=jr={}));function PN(t){let e=CO(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}Ei.getSchemaTypes=PN;function CO(t){let e=Array.isArray(t)?t:t?[t]:[];if(e.every(AN.isJSONType))return e;throw new Error("type must be JSONType or JSONType[]: "+e.join(","))}Ei.getJSONTypes=CO;function jN(t,e){let{gen:i,data:n,opts:a}=t,r=SN(e,a.coerceTypes),s=e.length>0&&!(r.length===0&&e.length===1&&(0,bN.schemaHasRulesForType)(t,e[0]));if(s){let o=zm(e,n,a.strictNumbers,jr.Wrong);i.if(o,()=>{r.length?ON(t,e,r):Dm(t)})}return s}Ei.coerceAndCheckDataType=jN;var AO=new Set(["string","number","integer","boolean","null"]);function SN(t,e){return e?t.filter(i=>AO.has(i)||e==="array"&&i==="array"):[]}function ON(t,e,i){let{gen:n,data:a,opts:r}=t,s=n.let("dataType",(0,te._)`typeof ${a}`),o=n.let("coerced",(0,te._)`undefined`);r.coerceTypes==="array"&&n.if((0,te._)`${s} == 'object' && Array.isArray(${a}) && ${a}.length == 1`,()=>n.assign(a,(0,te._)`${a}[0]`).assign(s,(0,te._)`typeof ${a}`).if(zm(e,a,r.strictNumbers),()=>n.assign(o,a))),n.if((0,te._)`${o} !== undefined`);for(let u of i)(AO.has(u)||u==="array"&&r.coerceTypes==="array")&&l(u);n.else(),Dm(t),n.endIf(),n.if((0,te._)`${o} !== undefined`,()=>{n.assign(a,o),xN(t,o)});function l(u){switch(u){case"string":n.elseIf((0,te._)`${s} == "number" || ${s} == "boolean"`).assign(o,(0,te._)`"" + ${a}`).elseIf((0,te._)`${a} === null`).assign(o,(0,te._)`""`);return;case"number":n.elseIf((0,te._)`${s} == "boolean" || ${a} === null +"use strict";var fI=Object.create;var hd=Object.defineProperty;var wI=Object.getOwnPropertyDescriptor;var vI=Object.getOwnPropertyNames;var CI=Object.getPrototypeOf,AI=Object.prototype.hasOwnProperty;var w=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),gd=(t,e)=>{for(var i in e)hd(t,i,{get:e[i],enumerable:!0})},bI=(t,e,i,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of vI(e))!AI.call(t,a)&&a!==i&&hd(t,a,{get:()=>e[a],enumerable:!(n=wI(e,a))||n.enumerable});return t};var er=(t,e,i)=>(i=t!=null?fI(CI(t)):{},bI(e||!t||!t.__esModule?hd(i,"default",{value:t,enumerable:!0}):i,t));var Ys=w(Pe=>{"use strict";Object.defineProperty(Pe,"__esModule",{value:!0});Pe.regexpCode=Pe.getEsmExportName=Pe.getProperty=Pe.safeStringify=Pe.stringify=Pe.strConcat=Pe.addCodeArg=Pe.str=Pe._=Pe.nil=Pe._Code=Pe.Name=Pe.IDENTIFIER=Pe._CodeOrName=void 0;var Ks=class{};Pe._CodeOrName=Ks;Pe.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;var va=class extends Ks{constructor(e){if(super(),!Pe.IDENTIFIER.test(e))throw new Error("CodeGen: name must be a valid identifier");this.str=e}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}};Pe.Name=va;var pn=class extends Ks{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((i,n)=>`${i}${n}`,"")}get names(){var e;return(e=this._names)!==null&&e!==void 0?e:this._names=this._items.reduce((i,n)=>(n instanceof va&&(i[n.str]=(i[n.str]||0)+1),i),{})}};Pe._Code=pn;Pe.nil=new pn("");function eO(t,...e){let i=[t[0]],n=0;for(;n{"use strict";Object.defineProperty(Ni,"__esModule",{value:!0});Ni.ValueScope=Ni.ValueScopeName=Ni.Scope=Ni.varKinds=Ni.UsedValueState=void 0;var $i=Ys(),mm=class extends Error{constructor(e){super(`CodeGen: "code" for ${e} not defined`),this.value=e.value}},Ru;(function(t){t[t.Started=0]="Started",t[t.Completed=1]="Completed"})(Ru||(Ni.UsedValueState=Ru={}));Ni.varKinds={const:new $i.Name("const"),let:new $i.Name("let"),var:new $i.Name("var")};var Iu=class{constructor({prefixes:e,parent:i}={}){this._names={},this._prefixes=e,this._parent=i}toName(e){return e instanceof $i.Name?e:this.name(e)}name(e){return new $i.Name(this._newName(e))}_newName(e){let i=this._names[e]||this._nameGroup(e);return`${e}${i.index++}`}_nameGroup(e){var i,n;if(!((n=(i=this._parent)===null||i===void 0?void 0:i._prefixes)===null||n===void 0)&&n.has(e)||this._prefixes&&!this._prefixes.has(e))throw new Error(`CodeGen: prefix "${e}" is not allowed in this scope`);return this._names[e]={prefix:e,index:0}}};Ni.Scope=Iu;var zu=class extends $i.Name{constructor(e,i){super(i),this.prefix=e}setValue(e,{property:i,itemIndex:n}){this.value=e,this.scopePath=(0,$i._)`.${new $i.Name(i)}[${n}]`}};Ni.ValueScopeName=zu;var D$=(0,$i._)`\n`,fm=class extends Iu{constructor(e){super(e),this._values={},this._scope=e.scope,this.opts={...e,_n:e.lines?D$:$i.nil}}get(){return this._scope}name(e){return new zu(e,this._newName(e))}value(e,i){var n;if(i.ref===void 0)throw new Error("CodeGen: ref must be passed in value");let a=this.toName(e),{prefix:r}=a,s=(n=i.key)!==null&&n!==void 0?n:i.ref,o=this._values[r];if(o){let c=o.get(s);if(c)return c}else o=this._values[r]=new Map;o.set(s,a);let l=this._scope[r]||(this._scope[r]=[]),u=l.length;return l[u]=i.ref,a.setValue(i,{property:r,itemIndex:u}),a}getValue(e,i){let n=this._values[e];if(n)return n.get(i)}scopeRefs(e,i=this._values){return this._reduceValues(i,n=>{if(n.scopePath===void 0)throw new Error(`CodeGen: name "${n}" has no value`);return(0,$i._)`${e}${n.scopePath}`})}scopeCode(e=this._values,i,n){return this._reduceValues(e,a=>{if(a.value===void 0)throw new Error(`CodeGen: name "${a}" has no value`);return a.value.code},i,n)}_reduceValues(e,i,n={},a){let r=$i.nil;for(let s in e){let o=e[s];if(!o)continue;let l=n[s]=n[s]||new Map;o.forEach(u=>{if(l.has(u))return;l.set(u,Ru.Started);let c=i(u);if(c){let p=this.opts.es5?Ni.varKinds.var:Ni.varKinds.const;r=(0,$i._)`${r}${p} ${u} = ${c};${this.opts._n}`}else if(c=a?.(u))r=(0,$i._)`${r}${c}${this.opts._n}`;else throw new mm(u);l.set(u,Ru.Completed)})}return r}};Ni.ValueScope=fm});var re=w(oe=>{"use strict";Object.defineProperty(oe,"__esModule",{value:!0});oe.or=oe.and=oe.not=oe.CodeGen=oe.operators=oe.varKinds=oe.ValueScopeName=oe.ValueScope=oe.Scope=oe.Name=oe.regexpCode=oe.stringify=oe.getProperty=oe.nil=oe.strConcat=oe.str=oe._=void 0;var fe=Ys(),yn=wm(),xt=Ys();Object.defineProperty(oe,"_",{enumerable:!0,get:function(){return xt._}});Object.defineProperty(oe,"str",{enumerable:!0,get:function(){return xt.str}});Object.defineProperty(oe,"strConcat",{enumerable:!0,get:function(){return xt.strConcat}});Object.defineProperty(oe,"nil",{enumerable:!0,get:function(){return xt.nil}});Object.defineProperty(oe,"getProperty",{enumerable:!0,get:function(){return xt.getProperty}});Object.defineProperty(oe,"stringify",{enumerable:!0,get:function(){return xt.stringify}});Object.defineProperty(oe,"regexpCode",{enumerable:!0,get:function(){return xt.regexpCode}});Object.defineProperty(oe,"Name",{enumerable:!0,get:function(){return xt.Name}});var Nu=wm();Object.defineProperty(oe,"Scope",{enumerable:!0,get:function(){return Nu.Scope}});Object.defineProperty(oe,"ValueScope",{enumerable:!0,get:function(){return Nu.ValueScope}});Object.defineProperty(oe,"ValueScopeName",{enumerable:!0,get:function(){return Nu.ValueScopeName}});Object.defineProperty(oe,"varKinds",{enumerable:!0,get:function(){return Nu.varKinds}});oe.operators={GT:new fe._Code(">"),GTE:new fe._Code(">="),LT:new fe._Code("<"),LTE:new fe._Code("<="),EQ:new fe._Code("==="),NEQ:new fe._Code("!=="),NOT:new fe._Code("!"),OR:new fe._Code("||"),AND:new fe._Code("&&"),ADD:new fe._Code("+")};var at=class{optimizeNodes(){return this}optimizeNames(e,i){return this}},vm=class extends at{constructor(e,i,n){super(),this.varKind=e,this.name=i,this.rhs=n}render({es5:e,_n:i}){let n=e?yn.varKinds.var:this.varKind,a=this.rhs===void 0?"":` = ${this.rhs}`;return`${n} ${this.name}${a};`+i}optimizeNames(e,i){if(e[this.name.str])return this.rhs&&(this.rhs=yr(this.rhs,e,i)),this}get names(){return this.rhs instanceof fe._CodeOrName?this.rhs.names:{}}},Du=class extends at{constructor(e,i,n){super(),this.lhs=e,this.rhs=i,this.sideEffects=n}render({_n:e}){return`${this.lhs} = ${this.rhs};`+e}optimizeNames(e,i){if(!(this.lhs instanceof fe.Name&&!e[this.lhs.str]&&!this.sideEffects))return this.rhs=yr(this.rhs,e,i),this}get names(){let e=this.lhs instanceof fe.Name?{}:{...this.lhs.names};return $u(e,this.rhs)}},Cm=class extends Du{constructor(e,i,n,a){super(e,n,a),this.op=i}render({_n:e}){return`${this.lhs} ${this.op}= ${this.rhs};`+e}},Am=class extends at{constructor(e){super(),this.label=e,this.names={}}render({_n:e}){return`${this.label}:`+e}},bm=class extends at{constructor(e){super(),this.label=e,this.names={}}render({_n:e}){return`break${this.label?` ${this.label}`:""};`+e}},ym=class extends at{constructor(e){super(),this.error=e}render({_n:e}){return`throw ${this.error};`+e}get names(){return this.error.names}},Pm=class extends at{constructor(e){super(),this.code=e}render({_n:e}){return`${this.code};`+e}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(e,i){return this.code=yr(this.code,e,i),this}get names(){return this.code instanceof fe._CodeOrName?this.code.names:{}}},Xs=class extends at{constructor(e=[]){super(),this.nodes=e}render(e){return this.nodes.reduce((i,n)=>i+n.render(e),"")}optimizeNodes(){let{nodes:e}=this,i=e.length;for(;i--;){let n=e[i].optimizeNodes();Array.isArray(n)?e.splice(i,1,...n):n?e[i]=n:e.splice(i,1)}return e.length>0?this:void 0}optimizeNames(e,i){let{nodes:n}=this,a=n.length;for(;a--;){let r=n[a];r.optimizeNames(e,i)||(G$(e,r.names),n.splice(a,1))}return n.length>0?this:void 0}get names(){return this.nodes.reduce((e,i)=>ba(e,i.names),{})}},rt=class extends Xs{render(e){return"{"+e._n+super.render(e)+"}"+e._n}},jm=class extends Xs{},br=class extends rt{};br.kind="else";var Ca=class t extends rt{constructor(e,i){super(i),this.condition=e}render(e){let i=`if(${this.condition})`+super.render(e);return this.else&&(i+="else "+this.else.render(e)),i}optimizeNodes(){super.optimizeNodes();let e=this.condition;if(e===!0)return this.nodes;let i=this.else;if(i){let n=i.optimizeNodes();i=this.else=Array.isArray(n)?new br(n):n}if(i)return e===!1?i instanceof t?i:i.nodes:this.nodes.length?this:new t(nO(e),i instanceof t?[i]:i.nodes);if(!(e===!1||!this.nodes.length))return this}optimizeNames(e,i){var n;if(this.else=(n=this.else)===null||n===void 0?void 0:n.optimizeNames(e,i),!!(super.optimizeNames(e,i)||this.else))return this.condition=yr(this.condition,e,i),this}get names(){let e=super.names;return $u(e,this.condition),this.else&&ba(e,this.else.names),e}};Ca.kind="if";var Aa=class extends rt{};Aa.kind="for";var Sm=class extends Aa{constructor(e){super(),this.iteration=e}render(e){return`for(${this.iteration})`+super.render(e)}optimizeNames(e,i){if(super.optimizeNames(e,i))return this.iteration=yr(this.iteration,e,i),this}get names(){return ba(super.names,this.iteration.names)}},Om=class extends Aa{constructor(e,i,n,a){super(),this.varKind=e,this.name=i,this.from=n,this.to=a}render(e){let i=e.es5?yn.varKinds.var:this.varKind,{name:n,from:a,to:r}=this;return`for(${i} ${n}=${a}; ${n}<${r}; ${n}++)`+super.render(e)}get names(){let e=$u(super.names,this.from);return $u(e,this.to)}},Gu=class extends Aa{constructor(e,i,n,a){super(),this.loop=e,this.varKind=i,this.name=n,this.iterable=a}render(e){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(e)}optimizeNames(e,i){if(super.optimizeNames(e,i))return this.iterable=yr(this.iterable,e,i),this}get names(){return ba(super.names,this.iterable.names)}},eo=class extends rt{constructor(e,i,n){super(),this.name=e,this.args=i,this.async=n}render(e){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(e)}};eo.kind="func";var io=class extends Xs{render(e){return"return "+super.render(e)}};io.kind="return";var xm=class extends rt{render(e){let i="try"+super.render(e);return this.catch&&(i+=this.catch.render(e)),this.finally&&(i+=this.finally.render(e)),i}optimizeNodes(){var e,i;return super.optimizeNodes(),(e=this.catch)===null||e===void 0||e.optimizeNodes(),(i=this.finally)===null||i===void 0||i.optimizeNodes(),this}optimizeNames(e,i){var n,a;return super.optimizeNames(e,i),(n=this.catch)===null||n===void 0||n.optimizeNames(e,i),(a=this.finally)===null||a===void 0||a.optimizeNames(e,i),this}get names(){let e=super.names;return this.catch&&ba(e,this.catch.names),this.finally&&ba(e,this.finally.names),e}},no=class extends rt{constructor(e){super(),this.error=e}render(e){return`catch(${this.error})`+super.render(e)}};no.kind="catch";var to=class extends rt{render(e){return"finally"+super.render(e)}};to.kind="finally";var Tm=class{constructor(e,i={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...i,_n:i.lines?` +`:""},this._extScope=e,this._scope=new yn.Scope({parent:e}),this._nodes=[new jm]}toString(){return this._root.render(this.opts)}name(e){return this._scope.name(e)}scopeName(e){return this._extScope.name(e)}scopeValue(e,i){let n=this._extScope.value(e,i);return(this._values[n.prefix]||(this._values[n.prefix]=new Set)).add(n),n}getScopeValue(e,i){return this._extScope.getValue(e,i)}scopeRefs(e){return this._extScope.scopeRefs(e,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(e,i,n,a){let r=this._scope.toName(i);return n!==void 0&&a&&(this._constants[r.str]=n),this._leafNode(new vm(e,r,n)),r}const(e,i,n){return this._def(yn.varKinds.const,e,i,n)}let(e,i,n){return this._def(yn.varKinds.let,e,i,n)}var(e,i,n){return this._def(yn.varKinds.var,e,i,n)}assign(e,i,n){return this._leafNode(new Du(e,i,n))}add(e,i){return this._leafNode(new Cm(e,oe.operators.ADD,i))}code(e){return typeof e=="function"?e():e!==fe.nil&&this._leafNode(new Pm(e)),this}object(...e){let i=["{"];for(let[n,a]of e)i.length>1&&i.push(","),i.push(n),(n!==a||this.opts.es5)&&(i.push(":"),(0,fe.addCodeArg)(i,a));return i.push("}"),new fe._Code(i)}if(e,i,n){if(this._blockNode(new Ca(e)),i&&n)this.code(i).else().code(n).endIf();else if(i)this.code(i).endIf();else if(n)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(e){return this._elseNode(new Ca(e))}else(){return this._elseNode(new br)}endIf(){return this._endBlockNode(Ca,br)}_for(e,i){return this._blockNode(e),i&&this.code(i).endFor(),this}for(e,i){return this._for(new Sm(e),i)}forRange(e,i,n,a,r=this.opts.es5?yn.varKinds.var:yn.varKinds.let){let s=this._scope.toName(e);return this._for(new Om(r,s,i,n),()=>a(s))}forOf(e,i,n,a=yn.varKinds.const){let r=this._scope.toName(e);if(this.opts.es5){let s=i instanceof fe.Name?i:this.var("_arr",i);return this.forRange("_i",0,(0,fe._)`${s}.length`,o=>{this.var(r,(0,fe._)`${s}[${o}]`),n(r)})}return this._for(new Gu("of",a,r,i),()=>n(r))}forIn(e,i,n,a=this.opts.es5?yn.varKinds.var:yn.varKinds.const){if(this.opts.ownProperties)return this.forOf(e,(0,fe._)`Object.keys(${i})`,n);let r=this._scope.toName(e);return this._for(new Gu("in",a,r,i),()=>n(r))}endFor(){return this._endBlockNode(Aa)}label(e){return this._leafNode(new Am(e))}break(e){return this._leafNode(new bm(e))}return(e){let i=new io;if(this._blockNode(i),this.code(e),i.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(io)}try(e,i,n){if(!i&&!n)throw new Error('CodeGen: "try" without "catch" and "finally"');let a=new xm;if(this._blockNode(a),this.code(e),i){let r=this.name("e");this._currNode=a.catch=new no(r),i(r)}return n&&(this._currNode=a.finally=new to,this.code(n)),this._endBlockNode(no,to)}throw(e){return this._leafNode(new ym(e))}block(e,i){return this._blockStarts.push(this._nodes.length),e&&this.code(e).endBlock(i),this}endBlock(e){let i=this._blockStarts.pop();if(i===void 0)throw new Error("CodeGen: not in self-balancing block");let n=this._nodes.length-i;if(n<0||e!==void 0&&n!==e)throw new Error(`CodeGen: wrong number of nodes: ${n} vs ${e} expected`);return this._nodes.length=i,this}func(e,i=fe.nil,n,a){return this._blockNode(new eo(e,i,n)),a&&this.code(a).endFunc(),this}endFunc(){return this._endBlockNode(eo)}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,i){let n=this._currNode;if(n instanceof e||i&&n instanceof i)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${i?`${e.kind}/${i.kind}`:e.kind}"`)}_elseNode(e){let i=this._currNode;if(!(i instanceof Ca))throw new Error('CodeGen: "else" without "if"');return this._currNode=i.else=e,this}get _root(){return this._nodes[0]}get _currNode(){let e=this._nodes;return e[e.length-1]}set _currNode(e){let i=this._nodes;i[i.length-1]=e}};oe.CodeGen=Tm;function ba(t,e){for(let i in e)t[i]=(t[i]||0)+(e[i]||0);return t}function $u(t,e){return e instanceof fe._CodeOrName?ba(t,e.names):t}function yr(t,e,i){if(t instanceof fe.Name)return n(t);if(!a(t))return t;return new fe._Code(t._items.reduce((r,s)=>(s instanceof fe.Name&&(s=n(s)),s instanceof fe._Code?r.push(...s._items):r.push(s),r),[]));function n(r){let s=i[r.str];return s===void 0||e[r.str]!==1?r:(delete e[r.str],s)}function a(r){return r instanceof fe._Code&&r._items.some(s=>s instanceof fe.Name&&e[s.str]===1&&i[s.str]!==void 0)}}function G$(t,e){for(let i in e)t[i]=(t[i]||0)-(e[i]||0)}function nO(t){return typeof t=="boolean"||typeof t=="number"||t===null?!t:(0,fe._)`!${Mm(t)}`}oe.not=nO;var $$=tO(oe.operators.AND);function N$(...t){return t.reduce($$)}oe.and=N$;var U$=tO(oe.operators.OR);function L$(...t){return t.reduce(U$)}oe.or=L$;function tO(t){return(e,i)=>e===fe.nil?i:i===fe.nil?e:(0,fe._)`${Mm(e)} ${t} ${Mm(i)}`}function Mm(t){return t instanceof fe.Name?t:(0,fe._)`(${t})`}});var we=w(le=>{"use strict";Object.defineProperty(le,"__esModule",{value:!0});le.checkStrictMode=le.getErrorPath=le.Type=le.useFunc=le.setEvaluated=le.evaluatedPropsToName=le.mergeEvaluated=le.eachItem=le.unescapeJsonPointer=le.escapeJsonPointer=le.escapeFragment=le.unescapeFragment=le.schemaRefOrVal=le.schemaHasRulesButRef=le.schemaHasRules=le.checkUnknownRules=le.alwaysValidSchema=le.toHash=void 0;var _e=re(),W$=Ys();function B$(t){let e={};for(let i of t)e[i]=!0;return e}le.toHash=B$;function F$(t,e){return typeof e=="boolean"?e:Object.keys(e).length===0?!0:(sO(t,e),!oO(e,t.self.RULES.all))}le.alwaysValidSchema=F$;function sO(t,e=t.schema){let{opts:i,self:n}=t;if(!i.strictSchema||typeof e=="boolean")return;let a=n.RULES.keywords;for(let r in e)a[r]||cO(t,`unknown keyword: "${r}"`)}le.checkUnknownRules=sO;function oO(t,e){if(typeof t=="boolean")return!t;for(let i in t)if(e[i])return!0;return!1}le.schemaHasRules=oO;function V$(t,e){if(typeof t=="boolean")return!t;for(let i in t)if(i!=="$ref"&&e.all[i])return!0;return!1}le.schemaHasRulesButRef=V$;function J$({topSchemaRef:t,schemaPath:e},i,n,a){if(!a){if(typeof i=="number"||typeof i=="boolean")return i;if(typeof i=="string")return(0,_e._)`${i}`}return(0,_e._)`${t}${e}${(0,_e.getProperty)(n)}`}le.schemaRefOrVal=J$;function Z$(t){return lO(decodeURIComponent(t))}le.unescapeFragment=Z$;function K$(t){return encodeURIComponent(km(t))}le.escapeFragment=K$;function km(t){return typeof t=="number"?`${t}`:t.replace(/~/g,"~0").replace(/\//g,"~1")}le.escapeJsonPointer=km;function lO(t){return t.replace(/~1/g,"/").replace(/~0/g,"~")}le.unescapeJsonPointer=lO;function Q$(t,e){if(Array.isArray(t))for(let i of t)e(i);else e(t)}le.eachItem=Q$;function aO({mergeNames:t,mergeToName:e,mergeValues:i,resultToName:n}){return(a,r,s,o)=>{let l=s===void 0?r:s instanceof _e.Name?(r instanceof _e.Name?t(a,r,s):e(a,r,s),s):r instanceof _e.Name?(e(a,s,r),r):i(r,s);return o===_e.Name&&!(l instanceof _e.Name)?n(a,l):l}}le.mergeEvaluated={props:aO({mergeNames:(t,e,i)=>t.if((0,_e._)`${i} !== true && ${e} !== undefined`,()=>{t.if((0,_e._)`${e} === true`,()=>t.assign(i,!0),()=>t.assign(i,(0,_e._)`${i} || {}`).code((0,_e._)`Object.assign(${i}, ${e})`))}),mergeToName:(t,e,i)=>t.if((0,_e._)`${i} !== true`,()=>{e===!0?t.assign(i,!0):(t.assign(i,(0,_e._)`${i} || {}`),qm(t,i,e))}),mergeValues:(t,e)=>t===!0?!0:{...t,...e},resultToName:uO}),items:aO({mergeNames:(t,e,i)=>t.if((0,_e._)`${i} !== true && ${e} !== undefined`,()=>t.assign(i,(0,_e._)`${e} === true ? true : ${i} > ${e} ? ${i} : ${e}`)),mergeToName:(t,e,i)=>t.if((0,_e._)`${i} !== true`,()=>t.assign(i,e===!0?!0:(0,_e._)`${i} > ${e} ? ${i} : ${e}`)),mergeValues:(t,e)=>t===!0?!0:Math.max(t,e),resultToName:(t,e)=>t.var("items",e)})};function uO(t,e){if(e===!0)return t.var("props",!0);let i=t.var("props",(0,_e._)`{}`);return e!==void 0&&qm(t,i,e),i}le.evaluatedPropsToName=uO;function qm(t,e,i){Object.keys(i).forEach(n=>t.assign((0,_e._)`${e}${(0,_e.getProperty)(n)}`,!0))}le.setEvaluated=qm;var rO={};function Y$(t,e){return t.scopeValue("func",{ref:e,code:rO[e.code]||(rO[e.code]=new W$._Code(e.code))})}le.useFunc=Y$;var Em;(function(t){t[t.Num=0]="Num",t[t.Str=1]="Str"})(Em||(le.Type=Em={}));function X$(t,e,i){if(t instanceof _e.Name){let n=e===Em.Num;return i?n?(0,_e._)`"[" + ${t} + "]"`:(0,_e._)`"['" + ${t} + "']"`:n?(0,_e._)`"/" + ${t}`:(0,_e._)`"/" + ${t}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return i?(0,_e.getProperty)(t).toString():"/"+km(t)}le.getErrorPath=X$;function cO(t,e,i=t.opts.strictSchema){if(i){if(e=`strict mode: ${e}`,i===!0)throw new Error(e);t.self.logger.warn(e)}}le.checkStrictMode=cO});var st=w(_m=>{"use strict";Object.defineProperty(_m,"__esModule",{value:!0});var Ti=re(),eN={data:new Ti.Name("data"),valCxt:new Ti.Name("valCxt"),instancePath:new Ti.Name("instancePath"),parentData:new Ti.Name("parentData"),parentDataProperty:new Ti.Name("parentDataProperty"),rootData:new Ti.Name("rootData"),dynamicAnchors:new Ti.Name("dynamicAnchors"),vErrors:new Ti.Name("vErrors"),errors:new Ti.Name("errors"),this:new Ti.Name("this"),self:new Ti.Name("self"),scope:new Ti.Name("scope"),json:new Ti.Name("json"),jsonPos:new Ti.Name("jsonPos"),jsonLen:new Ti.Name("jsonLen"),jsonPart:new Ti.Name("jsonPart")};_m.default=eN});var ao=w(Mi=>{"use strict";Object.defineProperty(Mi,"__esModule",{value:!0});Mi.extendErrors=Mi.resetErrorsCount=Mi.reportExtraError=Mi.reportError=Mi.keyword$DataError=Mi.keywordError=void 0;var ve=re(),Uu=we(),Hi=st();Mi.keywordError={message:({keyword:t})=>(0,ve.str)`must pass "${t}" keyword validation`};Mi.keyword$DataError={message:({keyword:t,schemaType:e})=>e?(0,ve.str)`"${t}" keyword must be ${e} ($data)`:(0,ve.str)`"${t}" keyword is invalid ($data)`};function iN(t,e=Mi.keywordError,i,n){let{it:a}=t,{gen:r,compositeRule:s,allErrors:o}=a,l=hO(t,e,i);n??(s||o)?pO(r,l):dO(a,(0,ve._)`[${l}]`)}Mi.reportError=iN;function nN(t,e=Mi.keywordError,i){let{it:n}=t,{gen:a,compositeRule:r,allErrors:s}=n,o=hO(t,e,i);pO(a,o),r||s||dO(n,Hi.default.vErrors)}Mi.reportExtraError=nN;function tN(t,e){t.assign(Hi.default.errors,e),t.if((0,ve._)`${Hi.default.vErrors} !== null`,()=>t.if(e,()=>t.assign((0,ve._)`${Hi.default.vErrors}.length`,e),()=>t.assign(Hi.default.vErrors,null)))}Mi.resetErrorsCount=tN;function aN({gen:t,keyword:e,schemaValue:i,data:n,errsCount:a,it:r}){if(a===void 0)throw new Error("ajv implementation error");let s=t.name("err");t.forRange("i",a,Hi.default.errors,o=>{t.const(s,(0,ve._)`${Hi.default.vErrors}[${o}]`),t.if((0,ve._)`${s}.instancePath === undefined`,()=>t.assign((0,ve._)`${s}.instancePath`,(0,ve.strConcat)(Hi.default.instancePath,r.errorPath))),t.assign((0,ve._)`${s}.schemaPath`,(0,ve.str)`${r.errSchemaPath}/${e}`),r.opts.verbose&&(t.assign((0,ve._)`${s}.schema`,i),t.assign((0,ve._)`${s}.data`,n))})}Mi.extendErrors=aN;function pO(t,e){let i=t.const("err",e);t.if((0,ve._)`${Hi.default.vErrors} === null`,()=>t.assign(Hi.default.vErrors,(0,ve._)`[${i}]`),(0,ve._)`${Hi.default.vErrors}.push(${i})`),t.code((0,ve._)`${Hi.default.errors}++`)}function dO(t,e){let{gen:i,validateName:n,schemaEnv:a}=t;a.$async?i.throw((0,ve._)`new ${t.ValidationError}(${e})`):(i.assign((0,ve._)`${n}.errors`,e),i.return(!1))}var ya={keyword:new ve.Name("keyword"),schemaPath:new ve.Name("schemaPath"),params:new ve.Name("params"),propertyName:new ve.Name("propertyName"),message:new ve.Name("message"),schema:new ve.Name("schema"),parentSchema:new ve.Name("parentSchema")};function hO(t,e,i){let{createErrors:n}=t.it;return n===!1?(0,ve._)`{}`:rN(t,e,i)}function rN(t,e,i={}){let{gen:n,it:a}=t,r=[sN(a,i),oN(t,i)];return lN(t,e,r),n.object(...r)}function sN({errorPath:t},{instancePath:e}){let i=e?(0,ve.str)`${t}${(0,Uu.getErrorPath)(e,Uu.Type.Str)}`:t;return[Hi.default.instancePath,(0,ve.strConcat)(Hi.default.instancePath,i)]}function oN({keyword:t,it:{errSchemaPath:e}},{schemaPath:i,parentSchema:n}){let a=n?e:(0,ve.str)`${e}/${t}`;return i&&(a=(0,ve.str)`${a}${(0,Uu.getErrorPath)(i,Uu.Type.Str)}`),[ya.schemaPath,a]}function lN(t,{params:e,message:i},n){let{keyword:a,data:r,schemaValue:s,it:o}=t,{opts:l,propertyName:u,topSchemaRef:c,schemaPath:p}=o;n.push([ya.keyword,a],[ya.params,typeof e=="function"?e(t):e||(0,ve._)`{}`]),l.messages&&n.push([ya.message,typeof i=="function"?i(t):i]),l.verbose&&n.push([ya.schema,s],[ya.parentSchema,(0,ve._)`${c}${p}`],[Hi.default.data,r]),u&&n.push([ya.propertyName,u])}});var mO=w(Pr=>{"use strict";Object.defineProperty(Pr,"__esModule",{value:!0});Pr.boolOrEmptySchema=Pr.topBoolOrEmptySchema=void 0;var uN=ao(),cN=re(),pN=st(),dN={message:"boolean schema is false"};function hN(t){let{gen:e,schema:i,validateName:n}=t;i===!1?gO(t,!1):typeof i=="object"&&i.$async===!0?e.return(pN.default.data):(e.assign((0,cN._)`${n}.errors`,null),e.return(!0))}Pr.topBoolOrEmptySchema=hN;function gN(t,e){let{gen:i,schema:n}=t;n===!1?(i.var(e,!1),gO(t)):i.var(e,!0)}Pr.boolOrEmptySchema=gN;function gO(t,e){let{gen:i,data:n}=t,a={gen:i,keyword:"false schema",data:n,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:t};(0,uN.reportError)(a,dN,void 0,e)}});var Hm=w(jr=>{"use strict";Object.defineProperty(jr,"__esModule",{value:!0});jr.getRules=jr.isJSONType=void 0;var mN=["string","number","integer","boolean","null","object","array"],fN=new Set(mN);function wN(t){return typeof t=="string"&&fN.has(t)}jr.isJSONType=wN;function vN(){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:{}}}jr.getRules=vN});var Rm=w(Tt=>{"use strict";Object.defineProperty(Tt,"__esModule",{value:!0});Tt.shouldUseRule=Tt.shouldUseGroup=Tt.schemaHasRulesForType=void 0;function CN({schema:t,self:e},i){let n=e.RULES.types[i];return n&&n!==!0&&fO(t,n)}Tt.schemaHasRulesForType=CN;function fO(t,e){return e.rules.some(i=>wO(t,i))}Tt.shouldUseGroup=fO;function wO(t,e){var i;return t[e.keyword]!==void 0||((i=e.definition.implements)===null||i===void 0?void 0:i.some(n=>t[n]!==void 0))}Tt.shouldUseRule=wO});var ro=w(Ei=>{"use strict";Object.defineProperty(Ei,"__esModule",{value:!0});Ei.reportTypeError=Ei.checkDataTypes=Ei.checkDataType=Ei.coerceAndCheckDataType=Ei.getJSONTypes=Ei.getSchemaTypes=Ei.DataType=void 0;var AN=Hm(),bN=Rm(),yN=ao(),te=re(),vO=we(),Sr;(function(t){t[t.Correct=0]="Correct",t[t.Wrong=1]="Wrong"})(Sr||(Ei.DataType=Sr={}));function PN(t){let e=CO(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}Ei.getSchemaTypes=PN;function CO(t){let e=Array.isArray(t)?t:t?[t]:[];if(e.every(AN.isJSONType))return e;throw new Error("type must be JSONType or JSONType[]: "+e.join(","))}Ei.getJSONTypes=CO;function jN(t,e){let{gen:i,data:n,opts:a}=t,r=SN(e,a.coerceTypes),s=e.length>0&&!(r.length===0&&e.length===1&&(0,bN.schemaHasRulesForType)(t,e[0]));if(s){let o=zm(e,n,a.strictNumbers,Sr.Wrong);i.if(o,()=>{r.length?ON(t,e,r):Dm(t)})}return s}Ei.coerceAndCheckDataType=jN;var AO=new Set(["string","number","integer","boolean","null"]);function SN(t,e){return e?t.filter(i=>AO.has(i)||e==="array"&&i==="array"):[]}function ON(t,e,i){let{gen:n,data:a,opts:r}=t,s=n.let("dataType",(0,te._)`typeof ${a}`),o=n.let("coerced",(0,te._)`undefined`);r.coerceTypes==="array"&&n.if((0,te._)`${s} == 'object' && Array.isArray(${a}) && ${a}.length == 1`,()=>n.assign(a,(0,te._)`${a}[0]`).assign(s,(0,te._)`typeof ${a}`).if(zm(e,a,r.strictNumbers),()=>n.assign(o,a))),n.if((0,te._)`${o} !== undefined`);for(let u of i)(AO.has(u)||u==="array"&&r.coerceTypes==="array")&&l(u);n.else(),Dm(t),n.endIf(),n.if((0,te._)`${o} !== undefined`,()=>{n.assign(a,o),xN(t,o)});function l(u){switch(u){case"string":n.elseIf((0,te._)`${s} == "number" || ${s} == "boolean"`).assign(o,(0,te._)`"" + ${a}`).elseIf((0,te._)`${a} === null`).assign(o,(0,te._)`""`);return;case"number":n.elseIf((0,te._)`${s} == "boolean" || ${a} === null || (${s} == "string" && ${a} && ${a} == +${a})`).assign(o,(0,te._)`+${a}`);return;case"integer":n.elseIf((0,te._)`${s} === "boolean" || ${a} === null || (${s} === "string" && ${a} && ${a} == +${a} && !(${a} % 1))`).assign(o,(0,te._)`+${a}`);return;case"boolean":n.elseIf((0,te._)`${a} === "false" || ${a} === 0 || ${a} === null`).assign(o,!1).elseIf((0,te._)`${a} === "true" || ${a} === 1`).assign(o,!0);return;case"null":n.elseIf((0,te._)`${a} === "" || ${a} === 0 || ${a} === false`),n.assign(o,null);return;case"array":n.elseIf((0,te._)`${s} === "string" || ${s} === "number" - || ${s} === "boolean" || ${a} === null`).assign(o,(0,te._)`[${a}]`)}}}function xN({gen:t,parentData:e,parentDataProperty:i},n){t.if((0,te._)`${e} !== undefined`,()=>t.assign((0,te._)`${e}[${i}]`,n))}function Im(t,e,i,n=jr.Correct){let a=n===jr.Correct?te.operators.EQ:te.operators.NEQ,r;switch(t){case"null":return(0,te._)`${e} ${a} null`;case"array":r=(0,te._)`Array.isArray(${e})`;break;case"object":r=(0,te._)`${e} && typeof ${e} == "object" && !Array.isArray(${e})`;break;case"integer":r=s((0,te._)`!(${e} % 1) && !isNaN(${e})`);break;case"number":r=s();break;default:return(0,te._)`typeof ${e} ${a} ${t}`}return n===jr.Correct?r:(0,te.not)(r);function s(o=te.nil){return(0,te.and)((0,te._)`typeof ${e} == "number"`,o,i?(0,te._)`isFinite(${e})`:te.nil)}}Ei.checkDataType=Im;function zm(t,e,i,n){if(t.length===1)return Im(t[0],e,i,n);let a,r=(0,vO.toHash)(t);if(r.array&&r.object){let s=(0,te._)`typeof ${e} != "object"`;a=r.null?s:(0,te._)`!${e} || ${s}`,delete r.null,delete r.array,delete r.object}else a=te.nil;r.number&&delete r.integer;for(let s in r)a=(0,te.and)(a,Im(s,e,i,n));return a}Ei.checkDataTypes=zm;var TN={message:({schema:t})=>`must be ${t}`,params:({schema:t,schemaValue:e})=>typeof t=="string"?(0,te._)`{type: ${t}}`:(0,te._)`{type: ${e}}`};function Dm(t){let e=MN(t);(0,yN.reportError)(e,TN)}Ei.reportTypeError=Dm;function MN(t){let{gen:e,data:i,schema:n}=t,a=(0,vO.schemaRefOrVal)(t,n,"type");return{gen:e,keyword:"type",data:i,schema:n.type,schemaCode:a,schemaValue:a,parentSchema:n,params:{},it:t}}});var yO=w(Lu=>{"use strict";Object.defineProperty(Lu,"__esModule",{value:!0});Lu.assignDefaults=void 0;var Sr=re(),EN=we();function kN(t,e){let{properties:i,items:n}=t.schema;if(e==="object"&&i)for(let a in i)bO(t,a,i[a].default);else e==="array"&&Array.isArray(n)&&n.forEach((a,r)=>bO(t,r,a.default))}Lu.assignDefaults=kN;function bO(t,e,i){let{gen:n,compositeRule:a,data:r,opts:s}=t;if(i===void 0)return;let o=(0,Sr._)`${r}${(0,Sr.getProperty)(e)}`;if(a){(0,EN.checkStrictMode)(t,`default is ignored for: ${o}`);return}let l=(0,Sr._)`${o} === undefined`;s.useDefaults==="empty"&&(l=(0,Sr._)`${l} || ${o} === null || ${o} === ""`),n.if(l,(0,Sr._)`${o} = ${(0,Sr.stringify)(i)}`)}});var pn=w(Ee=>{"use strict";Object.defineProperty(Ee,"__esModule",{value:!0});Ee.validateUnion=Ee.validateArray=Ee.usePattern=Ee.callValidateCode=Ee.schemaProperties=Ee.allSchemaProperties=Ee.noPropertyInData=Ee.propertyInData=Ee.isOwnProperty=Ee.hasPropFunc=Ee.reportMissingProp=Ee.checkMissingProp=Ee.checkReportMissingProp=void 0;var Ne=re(),Gm=we(),Mt=st(),qN=we();function _N(t,e){let{gen:i,data:n,it:a}=t;i.if(Nm(i,n,e,a.opts.ownProperties),()=>{t.setParams({missingProperty:(0,Ne._)`${e}`},!0),t.error()})}Ee.checkReportMissingProp=_N;function HN({gen:t,data:e,it:{opts:i}},n,a){return(0,Ne.or)(...n.map(r=>(0,Ne.and)(Nm(t,e,r,i.ownProperties),(0,Ne._)`${a} = ${r}`)))}Ee.checkMissingProp=HN;function RN(t,e){t.setParams({missingProperty:e},!0),t.error()}Ee.reportMissingProp=RN;function PO(t){return t.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,Ne._)`Object.prototype.hasOwnProperty`})}Ee.hasPropFunc=PO;function $m(t,e,i){return(0,Ne._)`${PO(t)}.call(${e}, ${i})`}Ee.isOwnProperty=$m;function IN(t,e,i,n){let a=(0,Ne._)`${e}${(0,Ne.getProperty)(i)} !== undefined`;return n?(0,Ne._)`${a} && ${$m(t,e,i)}`:a}Ee.propertyInData=IN;function Nm(t,e,i,n){let a=(0,Ne._)`${e}${(0,Ne.getProperty)(i)} === undefined`;return n?(0,Ne.or)(a,(0,Ne.not)($m(t,e,i))):a}Ee.noPropertyInData=Nm;function jO(t){return t?Object.keys(t).filter(e=>e!=="__proto__"):[]}Ee.allSchemaProperties=jO;function zN(t,e){return jO(e).filter(i=>!(0,Gm.alwaysValidSchema)(t,e[i]))}Ee.schemaProperties=zN;function DN({schemaCode:t,data:e,it:{gen:i,topSchemaRef:n,schemaPath:a,errorPath:r},it:s},o,l,u){let c=u?(0,Ne._)`${t}, ${e}, ${n}${a}`:e,p=[[Mt.default.instancePath,(0,Ne.strConcat)(Mt.default.instancePath,r)],[Mt.default.parentData,s.parentData],[Mt.default.parentDataProperty,s.parentDataProperty],[Mt.default.rootData,Mt.default.rootData]];s.opts.dynamicRef&&p.push([Mt.default.dynamicAnchors,Mt.default.dynamicAnchors]);let d=(0,Ne._)`${c}, ${i.object(...p)}`;return l!==Ne.nil?(0,Ne._)`${o}.call(${l}, ${d})`:(0,Ne._)`${o}(${d})`}Ee.callValidateCode=DN;var GN=(0,Ne._)`new RegExp`;function $N({gen:t,it:{opts:e}},i){let n=e.unicodeRegExp?"u":"",{regExp:a}=e.code,r=a(i,n);return t.scopeValue("pattern",{key:r.toString(),ref:r,code:(0,Ne._)`${a.code==="new RegExp"?GN:(0,qN.useFunc)(t,a)}(${i}, ${n})`})}Ee.usePattern=$N;function NN(t){let{gen:e,data:i,keyword:n,it:a}=t,r=e.name("valid");if(a.allErrors){let o=e.let("valid",!0);return s(()=>e.assign(o,!1)),o}return e.var(r,!0),s(()=>e.break()),r;function s(o){let l=e.const("len",(0,Ne._)`${i}.length`);e.forRange("i",0,l,u=>{t.subschema({keyword:n,dataProp:u,dataPropType:Gm.Type.Num},r),e.if((0,Ne.not)(r),o)})}}Ee.validateArray=NN;function UN(t){let{gen:e,schema:i,keyword:n,it:a}=t;if(!Array.isArray(i))throw new Error("ajv implementation error");if(i.some(l=>(0,Gm.alwaysValidSchema)(a,l))&&!a.opts.unevaluated)return;let s=e.let("valid",!1),o=e.name("_valid");e.block(()=>i.forEach((l,u)=>{let c=t.subschema({keyword:n,schemaProp:u,compositeRule:!0},o);e.assign(s,(0,Ne._)`${s} || ${o}`),t.mergeValidEvaluated(c,o)||e.if((0,Ne.not)(s))})),t.result(s,()=>t.reset(),()=>t.error(!0))}Ee.validateUnion=UN});var xO=w(In=>{"use strict";Object.defineProperty(In,"__esModule",{value:!0});In.validateKeywordUsage=In.validSchemaType=In.funcKeywordCode=In.macroKeywordCode=void 0;var Ri=re(),Pa=st(),LN=pn(),WN=ao();function BN(t,e){let{gen:i,keyword:n,schema:a,parentSchema:r,it:s}=t,o=e.macro.call(s.self,a,r,s),l=OO(i,n,o);s.opts.validateSchema!==!1&&s.self.validateSchema(o,!0);let u=i.name("valid");t.subschema({schema:o,schemaPath:Ri.nil,errSchemaPath:`${s.errSchemaPath}/${n}`,topSchemaRef:l,compositeRule:!0},u),t.pass(u,()=>t.error(!0))}In.macroKeywordCode=BN;function FN(t,e){var i;let{gen:n,keyword:a,schema:r,parentSchema:s,$data:o,it:l}=t;JN(l,e);let u=!o&&e.compile?e.compile.call(l.self,r,s,l):e.validate,c=OO(n,a,u),p=n.let("valid");t.block$data(p,d),t.ok((i=e.valid)!==null&&i!==void 0?i:p);function d(){if(e.errors===!1)m(),e.modifying&&SO(t),f(()=>t.error());else{let v=e.async?h():g();e.modifying&&SO(t),f(()=>VN(t,v))}}function h(){let v=n.let("ruleErrs",null);return n.try(()=>m((0,Ri._)`await `),y=>n.assign(p,!1).if((0,Ri._)`${y} instanceof ${l.ValidationError}`,()=>n.assign(v,(0,Ri._)`${y}.errors`),()=>n.throw(y))),v}function g(){let v=(0,Ri._)`${c}.errors`;return n.assign(v,null),m(Ri.nil),v}function m(v=e.async?(0,Ri._)`await `:Ri.nil){let y=l.opts.passContext?Pa.default.this:Pa.default.self,A=!("compile"in e&&!o||e.schema===!1);n.assign(p,(0,Ri._)`${v}${(0,LN.callValidateCode)(t,c,y,A)}`,e.modifying)}function f(v){var y;n.if((0,Ri.not)((y=e.valid)!==null&&y!==void 0?y:p),v)}}In.funcKeywordCode=FN;function SO(t){let{gen:e,data:i,it:n}=t;e.if(n.parentData,()=>e.assign(i,(0,Ri._)`${n.parentData}[${n.parentDataProperty}]`))}function VN(t,e){let{gen:i}=t;i.if((0,Ri._)`Array.isArray(${e})`,()=>{i.assign(Pa.default.vErrors,(0,Ri._)`${Pa.default.vErrors} === null ? ${e} : ${Pa.default.vErrors}.concat(${e})`).assign(Pa.default.errors,(0,Ri._)`${Pa.default.vErrors}.length`),(0,WN.extendErrors)(t)},()=>t.error())}function JN({schemaEnv:t},e){if(e.async&&!t.$async)throw new Error("async keyword in sync schema")}function OO(t,e,i){if(i===void 0)throw new Error(`keyword "${e}" failed to compile`);return t.scopeValue("keyword",typeof i=="function"?{ref:i}:{ref:i,code:(0,Ri.stringify)(i)})}function ZN(t,e,i=!1){return!e.length||e.some(n=>n==="array"?Array.isArray(t):n==="object"?t&&typeof t=="object"&&!Array.isArray(t):typeof t==n||i&&typeof t>"u")}In.validSchemaType=ZN;function KN({schema:t,opts:e,self:i,errSchemaPath:n},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 "${n}": `+i.errorsText(a.validateSchema.errors);if(e.validateSchema==="log")i.logger.error(l);else throw new Error(l)}}In.validateKeywordUsage=KN});var MO=w(Et=>{"use strict";Object.defineProperty(Et,"__esModule",{value:!0});Et.extendSubschemaMode=Et.extendSubschemaData=Et.getSubschema=void 0;var zn=re(),TO=we();function QN(t,{keyword:e,schemaProp:i,schema:n,schemaPath:a,errSchemaPath:r,topSchemaRef:s}){if(e!==void 0&&n!==void 0)throw new Error('both "keyword" and "schema" passed, only one allowed');if(e!==void 0){let o=t.schema[e];return i===void 0?{schema:o,schemaPath:(0,zn._)`${t.schemaPath}${(0,zn.getProperty)(e)}`,errSchemaPath:`${t.errSchemaPath}/${e}`}:{schema:o[i],schemaPath:(0,zn._)`${t.schemaPath}${(0,zn.getProperty)(e)}${(0,zn.getProperty)(i)}`,errSchemaPath:`${t.errSchemaPath}/${e}/${(0,TO.escapeFragment)(i)}`}}if(n!==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:n,schemaPath:a,topSchemaRef:s,errSchemaPath:r}}throw new Error('either "keyword" or "schema" must be passed')}Et.getSubschema=QN;function YN(t,e,{dataProp:i,dataPropType:n,data:a,dataTypes:r,propertyName:s}){if(a!==void 0&&i!==void 0)throw new Error('both "data" and "dataProp" passed, only one allowed');let{gen:o}=e;if(i!==void 0){let{errorPath:u,dataPathArr:c,opts:p}=e,d=o.let("data",(0,zn._)`${e.data}${(0,zn.getProperty)(i)}`,!0);l(d),t.errorPath=(0,zn.str)`${u}${(0,TO.getErrorPath)(i,n,p.jsPropertySyntax)}`,t.parentDataProperty=(0,zn._)`${i}`,t.dataPathArr=[...c,t.parentDataProperty]}if(a!==void 0){let u=a instanceof zn.Name?a:o.let("data",a,!0);l(u),s!==void 0&&(t.propertyName=s)}r&&(t.dataTypes=r);function l(u){t.data=u,t.dataLevel=e.dataLevel+1,t.dataTypes=[],e.definedProperties=new Set,t.parentData=e.data,t.dataNames=[...e.dataNames,u]}}Et.extendSubschemaData=YN;function XN(t,{jtdDiscriminator:e,jtdMetadata:i,compositeRule:n,createErrors:a,allErrors:r}){n!==void 0&&(t.compositeRule=n),a!==void 0&&(t.createErrors=a),r!==void 0&&(t.allErrors=r),t.jtdDiscriminator=e,t.jtdMetadata=i}Et.extendSubschemaMode=XN});var Um=w((Oae,EO)=>{"use strict";EO.exports=function t(e,i){if(e===i)return!0;if(e&&i&&typeof e=="object"&&typeof i=="object"){if(e.constructor!==i.constructor)return!1;var n,a,r;if(Array.isArray(e)){if(n=e.length,n!=i.length)return!1;for(a=n;a--!==0;)if(!t(e[a],i[a]))return!1;return!0}if(e.constructor===RegExp)return e.source===i.source&&e.flags===i.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===i.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===i.toString();if(r=Object.keys(e),n=r.length,n!==Object.keys(i).length)return!1;for(a=n;a--!==0;)if(!Object.prototype.hasOwnProperty.call(i,r[a]))return!1;for(a=n;a--!==0;){var s=r[a];if(!t(e[s],i[s]))return!1}return!0}return e!==e&&i!==i}});var qO=w((xae,kO)=>{"use strict";var kt=kO.exports=function(t,e,i){typeof e=="function"&&(i=e,e={}),i=e.cb||i;var n=typeof i=="function"?i:i.pre||function(){},a=i.post||function(){};Wu(e,n,a,t,"",t)};kt.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0};kt.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0};kt.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0};kt.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 Wu(t,e,i,n,a,r,s,o,l,u){if(n&&typeof n=="object"&&!Array.isArray(n)){e(n,a,r,s,o,l,u);for(var c in n){var p=n[c];if(Array.isArray(p)){if(c in kt.arrayKeywords)for(var d=0;d{"use strict";Object.defineProperty(Ui,"__esModule",{value:!0});Ui.getSchemaRefs=Ui.resolveUrl=Ui.normalizeId=Ui._getFullPath=Ui.getFullPath=Ui.inlineRef=void 0;var iU=we(),nU=Um(),tU=qO(),aU=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function rU(t,e=!0){return typeof t=="boolean"?!0:e===!0?!Lm(t):e?_O(t)<=e:!1}Ui.inlineRef=rU;var sU=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function Lm(t){for(let e in t){if(sU.has(e))return!0;let i=t[e];if(Array.isArray(i)&&i.some(Lm)||typeof i=="object"&&Lm(i))return!0}return!1}function _O(t){let e=0;for(let i in t){if(i==="$ref")return 1/0;if(e++,!aU.has(i)&&(typeof t[i]=="object"&&(0,iU.eachItem)(t[i],n=>e+=_O(n)),e===1/0))return 1/0}return e}function HO(t,e="",i){i!==!1&&(e=Or(e));let n=t.parse(e);return RO(t,n)}Ui.getFullPath=HO;function RO(t,e){return t.serialize(e).split("#")[0]+"#"}Ui._getFullPath=RO;var oU=/#\/?$/;function Or(t){return t?t.replace(oU,""):""}Ui.normalizeId=Or;function lU(t,e,i){return i=Or(i),t.resolve(e,i)}Ui.resolveUrl=lU;var uU=/^[a-z_][-a-z0-9._]*$/i;function cU(t,e){if(typeof t=="boolean")return{};let{schemaId:i,uriResolver:n}=this.opts,a=Or(t[i]||e),r={"":a},s=HO(n,a,!1),o={},l=new Set;return tU(t,{allKeys:!0},(p,d,h,g)=>{if(g===void 0)return;let m=s+d,f=r[g];typeof p[i]=="string"&&(f=v.call(this,p[i])),y.call(this,p.$anchor),y.call(this,p.$dynamicAnchor),r[d]=f;function v(A){let b=this.opts.uriResolver.resolve;if(A=Or(f?b(f,A):A),l.has(A))throw c(A);l.add(A);let O=this.refs[A];return typeof O=="string"&&(O=this.refs[O]),typeof O=="object"?u(p,O.schema,A):A!==Or(m)&&(A[0]==="#"?(u(p,o[A],A),o[A]=p):this.refs[A]=m),A}function y(A){if(typeof A=="string"){if(!uU.test(A))throw new Error(`invalid anchor "${A}"`);v.call(this,`#${A}`)}}}),o;function u(p,d,h){if(d!==void 0&&!nU(p,d))throw c(h)}function c(p){return new Error(`reference "${p}" resolves to more than one schema`)}}Ui.getSchemaRefs=cU});var uo=w(qt=>{"use strict";Object.defineProperty(qt,"__esModule",{value:!0});qt.getData=qt.KeywordCxt=qt.validateFunctionCode=void 0;var $O=mO(),IO=ro(),Bm=Rm(),Bu=ro(),pU=yO(),lo=xO(),Wm=MO(),B=re(),ee=st(),dU=so(),ot=we(),oo=ao();function hU(t){if(LO(t)&&(WO(t),UO(t))){fU(t);return}NO(t,()=>(0,$O.topBoolOrEmptySchema)(t))}qt.validateFunctionCode=hU;function NO({gen:t,validateName:e,schema:i,schemaEnv:n,opts:a},r){a.code.es5?t.func(e,(0,B._)`${ee.default.data}, ${ee.default.valCxt}`,n.$async,()=>{t.code((0,B._)`"use strict"; ${zO(i,a)}`),mU(t,a),t.code(r)}):t.func(e,(0,B._)`${ee.default.data}, ${gU(a)}`,n.$async,()=>t.code(zO(i,a)).code(r))}function gU(t){return(0,B._)`{${ee.default.instancePath}="", ${ee.default.parentData}, ${ee.default.parentDataProperty}, ${ee.default.rootData}=${ee.default.data}${t.dynamicRef?(0,B._)`, ${ee.default.dynamicAnchors}={}`:B.nil}}={}`}function mU(t,e){t.if(ee.default.valCxt,()=>{t.var(ee.default.instancePath,(0,B._)`${ee.default.valCxt}.${ee.default.instancePath}`),t.var(ee.default.parentData,(0,B._)`${ee.default.valCxt}.${ee.default.parentData}`),t.var(ee.default.parentDataProperty,(0,B._)`${ee.default.valCxt}.${ee.default.parentDataProperty}`),t.var(ee.default.rootData,(0,B._)`${ee.default.valCxt}.${ee.default.rootData}`),e.dynamicRef&&t.var(ee.default.dynamicAnchors,(0,B._)`${ee.default.valCxt}.${ee.default.dynamicAnchors}`)},()=>{t.var(ee.default.instancePath,(0,B._)`""`),t.var(ee.default.parentData,(0,B._)`undefined`),t.var(ee.default.parentDataProperty,(0,B._)`undefined`),t.var(ee.default.rootData,ee.default.data),e.dynamicRef&&t.var(ee.default.dynamicAnchors,(0,B._)`{}`)})}function fU(t){let{schema:e,opts:i,gen:n}=t;NO(t,()=>{i.$comment&&e.$comment&&FO(t),bU(t),n.let(ee.default.vErrors,null),n.let(ee.default.errors,0),i.unevaluated&&wU(t),BO(t),jU(t)})}function wU(t){let{gen:e,validateName:i}=t;t.evaluated=e.const("evaluated",(0,B._)`${i}.evaluated`),e.if((0,B._)`${t.evaluated}.dynamicProps`,()=>e.assign((0,B._)`${t.evaluated}.props`,(0,B._)`undefined`)),e.if((0,B._)`${t.evaluated}.dynamicItems`,()=>e.assign((0,B._)`${t.evaluated}.items`,(0,B._)`undefined`))}function zO(t,e){let i=typeof t=="object"&&t[e.schemaId];return i&&(e.code.source||e.code.process)?(0,B._)`/*# sourceURL=${i} */`:B.nil}function vU(t,e){if(LO(t)&&(WO(t),UO(t))){CU(t,e);return}(0,$O.boolOrEmptySchema)(t,e)}function UO({schema:t,self:e}){if(typeof t=="boolean")return!t;for(let i in t)if(e.RULES.all[i])return!0;return!1}function LO(t){return typeof t.schema!="boolean"}function CU(t,e){let{schema:i,gen:n,opts:a}=t;a.$comment&&i.$comment&&FO(t),yU(t),PU(t);let r=n.const("_errs",ee.default.errors);BO(t,r),n.var(e,(0,B._)`${r} === ${ee.default.errors}`)}function WO(t){(0,ot.checkUnknownRules)(t),AU(t)}function BO(t,e){if(t.opts.jtd)return DO(t,[],!1,e);let i=(0,IO.getSchemaTypes)(t.schema),n=(0,IO.coerceAndCheckDataType)(t,i);DO(t,i,!n,e)}function AU(t){let{schema:e,errSchemaPath:i,opts:n,self:a}=t;e.$ref&&n.ignoreKeywordsWithRef&&(0,ot.schemaHasRulesButRef)(e,a.RULES)&&a.logger.warn(`$ref: keywords ignored in schema at path "${i}"`)}function bU(t){let{schema:e,opts:i}=t;e.default!==void 0&&i.useDefaults&&i.strictSchema&&(0,ot.checkStrictMode)(t,"default is ignored in the schema root")}function yU(t){let e=t.schema[t.opts.schemaId];e&&(t.baseId=(0,dU.resolveUrl)(t.opts.uriResolver,t.baseId,e))}function PU(t){if(t.schema.$async&&!t.schemaEnv.$async)throw new Error("async schema in sync schema")}function FO({gen:t,schemaEnv:e,schema:i,errSchemaPath:n,opts:a}){let r=i.$comment;if(a.$comment===!0)t.code((0,B._)`${ee.default.self}.logger.log(${r})`);else if(typeof a.$comment=="function"){let s=(0,B.str)`${n}/$comment`,o=t.scopeValue("root",{ref:e.root});t.code((0,B._)`${ee.default.self}.opts.$comment(${r}, ${s}, ${o}.schema)`)}}function jU(t){let{gen:e,schemaEnv:i,validateName:n,ValidationError:a,opts:r}=t;i.$async?e.if((0,B._)`${ee.default.errors} === 0`,()=>e.return(ee.default.data),()=>e.throw((0,B._)`new ${a}(${ee.default.vErrors})`)):(e.assign((0,B._)`${n}.errors`,ee.default.vErrors),r.unevaluated&&SU(t),e.return((0,B._)`${ee.default.errors} === 0`))}function SU({gen:t,evaluated:e,props:i,items:n}){i instanceof B.Name&&t.assign((0,B._)`${e}.props`,i),n instanceof B.Name&&t.assign((0,B._)`${e}.items`,n)}function DO(t,e,i,n){let{gen:a,schema:r,data:s,allErrors:o,opts:l,self:u}=t,{RULES:c}=u;if(r.$ref&&(l.ignoreKeywordsWithRef||!(0,ot.schemaHasRulesButRef)(r,c))){a.block(()=>JO(t,"$ref",c.all.$ref.definition));return}l.jtd||OU(t,e),a.block(()=>{for(let d of c.rules)p(d);p(c.post)});function p(d){(0,Bm.shouldUseGroup)(r,d)&&(d.type?(a.if((0,Bu.checkDataType)(d.type,s,l.strictNumbers)),GO(t,d),e.length===1&&e[0]===d.type&&i&&(a.else(),(0,Bu.reportTypeError)(t)),a.endIf()):GO(t,d),o||a.if((0,B._)`${ee.default.errors} === ${n||0}`))}}function GO(t,e){let{gen:i,schema:n,opts:{useDefaults:a}}=t;a&&(0,pU.assignDefaults)(t,e.type),i.block(()=>{for(let r of e.rules)(0,Bm.shouldUseRule)(n,r)&&JO(t,r.keyword,r.definition,e.type)})}function OU(t,e){t.schemaEnv.meta||!t.opts.strictTypes||(xU(t,e),t.opts.allowUnionTypes||TU(t,e),MU(t,t.dataTypes))}function xU(t,e){if(e.length){if(!t.dataTypes.length){t.dataTypes=e;return}e.forEach(i=>{VO(t.dataTypes,i)||Fm(t,`type "${i}" not allowed by context "${t.dataTypes.join(",")}"`)}),kU(t,e)}}function TU(t,e){e.length>1&&!(e.length===2&&e.includes("null"))&&Fm(t,"use allowUnionTypes to allow union type keyword")}function MU(t,e){let i=t.self.RULES.all;for(let n in i){let a=i[n];if(typeof a=="object"&&(0,Bm.shouldUseRule)(t.schema,a)){let{type:r}=a.definition;r.length&&!r.some(s=>EU(e,s))&&Fm(t,`missing type "${r.join(",")}" for keyword "${n}"`)}}}function EU(t,e){return t.includes(e)||e==="number"&&t.includes("integer")}function VO(t,e){return t.includes(e)||e==="integer"&&t.includes("number")}function kU(t,e){let i=[];for(let n of t.dataTypes)VO(e,n)?i.push(n):e.includes("integer")&&n==="number"&&i.push("integer");t.dataTypes=i}function Fm(t,e){let i=t.schemaEnv.baseId+t.errSchemaPath;e+=` at "${i}" (strictTypes)`,(0,ot.checkStrictMode)(t,e,t.opts.strictTypes)}var Fu=class{constructor(e,i,n){if((0,lo.validateKeywordUsage)(e,i,n),this.gen=e.gen,this.allErrors=e.allErrors,this.keyword=n,this.data=e.data,this.schema=e.schema[n],this.$data=i.$data&&e.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,ot.schemaRefOrVal)(e,this.schema,n,this.$data),this.schemaType=i.schemaType,this.parentSchema=e.schema,this.params={},this.it=e,this.def=i,this.$data)this.schemaCode=e.gen.const("vSchema",ZO(this.$data,e));else if(this.schemaCode=this.schemaValue,!(0,lo.validSchemaType)(this.schema,i.schemaType,i.allowUndefined))throw new Error(`${n} value must be ${JSON.stringify(i.schemaType)}`);("code"in i?i.trackErrors:i.errors!==!1)&&(this.errsCount=e.gen.const("_errs",ee.default.errors))}result(e,i,n){this.failResult((0,B.not)(e),i,n)}failResult(e,i,n){this.gen.if(e),n?n():this.error(),i?(this.gen.else(),i(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(e,i){this.failResult((0,B.not)(e),void 0,i)}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:i}=this;this.fail((0,B._)`${i} !== undefined && (${(0,B.or)(this.invalid$data(),e)})`)}error(e,i,n){if(i){this.setParams(i),this._error(e,n),this.setParams({});return}this._error(e,n)}_error(e,i){(e?oo.reportExtraError:oo.reportError)(this,this.def.error,i)}$dataError(){(0,oo.reportError)(this,this.def.$dataError||oo.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');(0,oo.resetErrorsCount)(this.gen,this.errsCount)}ok(e){this.allErrors||this.gen.if(e)}setParams(e,i){i?Object.assign(this.params,e):this.params=e}block$data(e,i,n=B.nil){this.gen.block(()=>{this.check$data(e,n),i()})}check$data(e=B.nil,i=B.nil){if(!this.$data)return;let{gen:n,schemaCode:a,schemaType:r,def:s}=this;n.if((0,B.or)((0,B._)`${a} === undefined`,i)),e!==B.nil&&n.assign(e,!0),(r.length||s.validateSchema)&&(n.elseIf(this.invalid$data()),this.$dataError(),e!==B.nil&&n.assign(e,!1)),n.else()}invalid$data(){let{gen:e,schemaCode:i,schemaType:n,def:a,it:r}=this;return(0,B.or)(s(),o());function s(){if(n.length){if(!(i instanceof B.Name))throw new Error("ajv implementation error");let l=Array.isArray(n)?n:[n];return(0,B._)`${(0,Bu.checkDataTypes)(l,i,r.opts.strictNumbers,Bu.DataType.Wrong)}`}return B.nil}function o(){if(a.validateSchema){let l=e.scopeValue("validate$data",{ref:a.validateSchema});return(0,B._)`!${l}(${i})`}return B.nil}}subschema(e,i){let n=(0,Wm.getSubschema)(this.it,e);(0,Wm.extendSubschemaData)(n,this.it,e),(0,Wm.extendSubschemaMode)(n,e);let a={...this.it,...n,items:void 0,props:void 0};return vU(a,i),a}mergeEvaluated(e,i){let{it:n,gen:a}=this;n.opts.unevaluated&&(n.props!==!0&&e.props!==void 0&&(n.props=ot.mergeEvaluated.props(a,e.props,n.props,i)),n.items!==!0&&e.items!==void 0&&(n.items=ot.mergeEvaluated.items(a,e.items,n.items,i)))}mergeValidEvaluated(e,i){let{it:n,gen:a}=this;if(n.opts.unevaluated&&(n.props!==!0||n.items!==!0))return a.if(i,()=>this.mergeEvaluated(e,B.Name)),!0}};qt.KeywordCxt=Fu;function JO(t,e,i,n){let a=new Fu(t,i,e);"code"in i?i.code(a,n):a.$data&&i.validate?(0,lo.funcKeywordCode)(a,i):"macro"in i?(0,lo.macroKeywordCode)(a,i):(i.compile||i.validate)&&(0,lo.funcKeywordCode)(a,i)}var qU=/^\/(?:[^~]|~0|~1)*$/,_U=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function ZO(t,{dataLevel:e,dataNames:i,dataPathArr:n}){let a,r;if(t==="")return ee.default.rootData;if(t[0]==="/"){if(!qU.test(t))throw new Error(`Invalid JSON-pointer: ${t}`);a=t,r=ee.default.rootData}else{let u=_U.exec(t);if(!u)throw new Error(`Invalid JSON-pointer: ${t}`);let c=+u[1];if(a=u[2],a==="#"){if(c>=e)throw new Error(l("property/index",c));return n[e-c]}if(c>e)throw new Error(l("data",c));if(r=i[e-c],!a)return r}let s=r,o=a.split("/");for(let u of o)u&&(r=(0,B._)`${r}${(0,B.getProperty)((0,ot.unescapeJsonPointer)(u))}`,s=(0,B._)`${s} && ${r}`);return s;function l(u,c){return`Cannot access ${u} ${c} levels up, current level is ${e}`}}qt.getData=ZO});var Vu=w(Jm=>{"use strict";Object.defineProperty(Jm,"__esModule",{value:!0});var Vm=class extends Error{constructor(e){super("validation failed"),this.errors=e,this.ajv=this.validation=!0}};Jm.default=Vm});var co=w(Qm=>{"use strict";Object.defineProperty(Qm,"__esModule",{value:!0});var Zm=so(),Km=class extends Error{constructor(e,i,n,a){super(a||`can't resolve reference ${n} from id ${i}`),this.missingRef=(0,Zm.resolveUrl)(e,i,n),this.missingSchema=(0,Zm.normalizeId)((0,Zm.getFullPath)(e,this.missingRef))}};Qm.default=Km});var Zu=w(dn=>{"use strict";Object.defineProperty(dn,"__esModule",{value:!0});dn.resolveSchema=dn.getCompilingSchema=dn.resolveRef=dn.compileSchema=dn.SchemaEnv=void 0;var Pn=re(),HU=Vu(),ja=st(),jn=so(),KO=we(),RU=uo(),xr=class{constructor(e){var i;this.refs={},this.dynamicAnchors={};let n;typeof e.schema=="object"&&(n=e.schema),this.schema=e.schema,this.schemaId=e.schemaId,this.root=e.root||this,this.baseId=(i=e.baseId)!==null&&i!==void 0?i:(0,jn.normalizeId)(n?.[e.schemaId||"$id"]),this.schemaPath=e.schemaPath,this.localRefs=e.localRefs,this.meta=e.meta,this.$async=n?.$async,this.refs={}}};dn.SchemaEnv=xr;function Xm(t){let e=QO.call(this,t);if(e)return e;let i=(0,jn.getFullPath)(this.opts.uriResolver,t.root.baseId),{es5:n,lines:a}=this.opts.code,{ownProperties:r}=this.opts,s=new Pn.CodeGen(this.scope,{es5:n,lines:a,ownProperties:r}),o;t.$async&&(o=s.scopeValue("Error",{ref:HU.default,code:(0,Pn._)`require("ajv/dist/runtime/validation_error").default`}));let l=s.scopeName("validate");t.validateName=l;let u={gen:s,allErrors:this.opts.allErrors,data:ja.default.data,parentData:ja.default.parentData,parentDataProperty:ja.default.parentDataProperty,dataNames:[ja.default.data],dataPathArr:[Pn.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:s.scopeValue("schema",this.opts.code.source===!0?{ref:t.schema,code:(0,Pn.stringify)(t.schema)}:{ref:t.schema}),validateName:l,ValidationError:o,schema:t.schema,schemaEnv:t,rootId:i,baseId:t.baseId||i,schemaPath:Pn.nil,errSchemaPath:t.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,Pn._)`""`,opts:this.opts,self:this},c;try{this._compilations.add(t),(0,RU.validateFunctionCode)(u),s.optimize(this.opts.code.optimize);let p=s.toString();c=`${s.scopeRefs(ja.default.scope)}return ${p}`,this.opts.code.process&&(c=this.opts.code.process(c,t));let h=new Function(`${ja.default.self}`,`${ja.default.scope}`,c)(this,this.scope.get());if(this.scope.value(l,{ref:h}),h.errors=null,h.schema=t.schema,h.schemaEnv=t,t.$async&&(h.$async=!0),this.opts.code.source===!0&&(h.source={validateName:l,validateCode:p,scopeValues:s._values}),this.opts.unevaluated){let{props:g,items:m}=u;h.evaluated={props:g instanceof Pn.Name?void 0:g,items:m instanceof Pn.Name?void 0:m,dynamicProps:g instanceof Pn.Name,dynamicItems:m instanceof Pn.Name},h.source&&(h.source.evaluated=(0,Pn.stringify)(h.evaluated))}return t.validate=h,t}catch(p){throw delete t.validate,delete t.validateName,c&&this.logger.error("Error compiling schema, function code:",c),p}finally{this._compilations.delete(t)}}dn.compileSchema=Xm;function IU(t,e,i){var n;i=(0,jn.resolveUrl)(this.opts.uriResolver,e,i);let a=t.refs[i];if(a)return a;let r=GU.call(this,t,i);if(r===void 0){let s=(n=t.localRefs)===null||n===void 0?void 0:n[i],{schemaId:o}=this.opts;s&&(r=new xr({schema:s,schemaId:o,root:t,baseId:e}))}if(r!==void 0)return t.refs[i]=zU.call(this,r)}dn.resolveRef=IU;function zU(t){return(0,jn.inlineRef)(t.schema,this.opts.inlineRefs)?t.schema:t.validate?t:Xm.call(this,t)}function QO(t){for(let e of this._compilations)if(DU(e,t))return e}dn.getCompilingSchema=QO;function DU(t,e){return t.schema===e.schema&&t.root===e.root&&t.baseId===e.baseId}function GU(t,e){let i;for(;typeof(i=this.refs[e])=="string";)e=i;return i||this.schemas[e]||Ju.call(this,t,e)}function Ju(t,e){let i=this.opts.uriResolver.parse(e),n=(0,jn._getFullPath)(this.opts.uriResolver,i),a=(0,jn.getFullPath)(this.opts.uriResolver,t.baseId,void 0);if(Object.keys(t.schema).length>0&&n===a)return Ym.call(this,i,t);let r=(0,jn.normalizeId)(n),s=this.refs[r]||this.schemas[r];if(typeof s=="string"){let o=Ju.call(this,t,s);return typeof o?.schema!="object"?void 0:Ym.call(this,i,o)}if(typeof s?.schema=="object"){if(s.validate||Xm.call(this,s),r===(0,jn.normalizeId)(e)){let{schema:o}=s,{schemaId:l}=this.opts,u=o[l];return u&&(a=(0,jn.resolveUrl)(this.opts.uriResolver,a,u)),new xr({schema:o,schemaId:l,root:t,baseId:a})}return Ym.call(this,i,s)}}dn.resolveSchema=Ju;var $U=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function Ym(t,{baseId:e,schema:i,root:n}){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 i=="boolean")return;let l=i[(0,KO.unescapeFragment)(o)];if(l===void 0)return;i=l;let u=typeof i=="object"&&i[this.opts.schemaId];!$U.has(o)&&u&&(e=(0,jn.resolveUrl)(this.opts.uriResolver,e,u))}let r;if(typeof i!="boolean"&&i.$ref&&!(0,KO.schemaHasRulesButRef)(i,this.RULES)){let o=(0,jn.resolveUrl)(this.opts.uriResolver,e,i.$ref);r=Ju.call(this,n,o)}let{schemaId:s}=this.opts;if(r=r||new xr({schema:i,schemaId:s,root:n,baseId:e}),r.schema!==r.root.schema)return r}});var YO=w((_ae,NU)=>{NU.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 tf=w((Hae,ax)=>{"use strict";var UU=RegExp.prototype.test.bind(/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu),ex=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),ef=RegExp.prototype.test.bind(/^[\da-f]{2}$/iu),ix=RegExp.prototype.test.bind(/^[\da-z\-._~]$/iu),LU=RegExp.prototype.test.bind(/^[\da-z\-._~!$&'()*+,;=:@/]$/iu);function nf(t){let e="",i=0,n=0;for(n=0;n=48&&i<=57||i>=65&&i<=70||i>=97&&i<=102))return"";e+=t[n];break}for(n+=1;n=48&&i<=57||i>=65&&i<=70||i>=97&&i<=102))return"";e+=t[n]}return e}var WU=RegExp.prototype.test.bind(/[^!"$&'()*+,\-.;=_`a-z{}~]/u);function XO(t){return t.length=0,!0}function BU(t,e,i){if(t.length){let n=nf(t);if(n!=="")e.push(n);else return i.error=!0,!1;t.length=0}return!0}function FU(t){let e=0,i={error:!1,address:"",zone:""},n=[],a=[],r=!1,s=!1,o=BU;for(let l=0;l7){i.error=!0;break}l>0&&t[l-1]===":"&&(r=!0),n.push(":");continue}else if(u==="%"){if(!o(a,n,i))break;o=XO}else{a.push(u);continue}}return a.length&&(o===XO?i.zone=a.join(""):s?n.push(a.join("")):n.push(nf(a))),i.address=n.join(""),i}function nx(t){if(VU(t,":")<2)return{host:t,isIPV6:!1};let e=FU(t);if(e.error)return{host:t,isIPV6:!1};{let i=e.address,n=e.address;return e.zone&&(i+="%"+e.zone,n+="%25"+e.zone),{host:i,isIPV6:!0,escapedHost:n}}}function VU(t,e){let i=0;for(let n=0;nZU[n])}function YU(t,e=!1){if(t.indexOf("%")===-1)return t;let i="";for(let n=0;n{"use strict";var{isUUID:nL}=tf(),tL=/([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu,aL=["http","https","ws","wss","urn","urn:uuid"];function rL(t){return aL.indexOf(t)!==-1}function af(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 rx(t){return t.host||(t.error=t.error||"HTTP URIs must have a host."),t}function sx(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 sL(t){return t.secure=af(t),t.resourceName=(t.path||"/")+(t.query?"?"+t.query:""),t.path=void 0,t.query=void 0,t}function oL(t){if((t.port===(af(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,i]=t.resourceName.split("?");t.path=e&&e!=="/"?e:void 0,t.query=i,t.resourceName=void 0}return t.fragment=void 0,t}function lL(t,e){if(!t.path)return t.error="URN can not be parsed",t;let i=t.path.match(tL);if(i){let n=e.scheme||t.scheme||"urn";t.nid=i[1].toLowerCase(),t.nss=i[2];let a=`${n}:${e.nid||t.nid}`,r=rf(a);t.path=void 0,r&&(t=r.parse(t,e))}else t.error=t.error||"URN can not be parsed.";return t}function uL(t,e){if(t.nid===void 0)throw new Error("URN without nid cannot be serialized");let i=e.scheme||t.scheme||"urn",n=t.nid.toLowerCase(),a=`${i}:${e.nid||n}`,r=rf(a);r&&(t=r.serialize(t,e));let s=t,o=t.nss;return s.path=`${n||e.nid}:${o}`,e.skipEscape=!0,s}function cL(t,e){let i=t;return i.uuid=i.nss,i.nss=void 0,!e.tolerant&&(!i.uuid||!nL(i.uuid))&&(i.error=i.error||"UUID is not valid."),i}function pL(t){let e=t;return e.nss=(t.uuid||"").toLowerCase(),e}var ox={scheme:"http",domainHost:!0,parse:rx,serialize:sx},dL={scheme:"https",domainHost:ox.domainHost,parse:rx,serialize:sx},Ku={scheme:"ws",domainHost:!0,parse:sL,serialize:oL},hL={scheme:"wss",domainHost:Ku.domainHost,parse:Ku.parse,serialize:Ku.serialize},gL={scheme:"urn",parse:lL,serialize:uL,skipNormalize:!0},mL={scheme:"urn:uuid",parse:cL,serialize:pL,skipNormalize:!0},Qu={http:ox,https:dL,ws:Ku,wss:hL,urn:gL,"urn:uuid":mL};Object.setPrototypeOf(Qu,null);function rf(t){return t&&(Qu[t]||Qu[t.toLowerCase()])||void 0}lx.exports={wsIsSecure:af,SCHEMES:Qu,isValidSchemeName:rL,getSchemeHandler:rf}});var mx=w((Iae,Yu)=>{"use strict";var{normalizeIPv6:fL,removeDotSegments:po,recomposeAuthority:wL,normalizePercentEncoding:vL,normalizePathEncoding:CL,escapePreservingEscapes:AL,reescapeHostDelimiters:bL,isIPv4:yL,nonSimpleDomain:PL}=tf(),{SCHEMES:jL,getSchemeHandler:px}=ux();function SL(t,e){return typeof t=="string"?t=EL(t,e):typeof t=="object"&&(t=Tr(Sa(t,e),e)),t}function OL(t,e,i){let n=i?Object.assign({scheme:"null"},i):{scheme:"null"},a=dx(Tr(t,n),Tr(e,n),n,!0);return n.skipEscape=!0,Sa(a,n)}function dx(t,e,i,n){let a={};return n||(t=Tr(Sa(t,i),i),e=Tr(Sa(e,i),i)),i=i||{},!i.tolerant&&e.scheme?(a.scheme=e.scheme,a.userinfo=e.userinfo,a.host=e.host,a.port=e.port,a.path=po(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=po(e.path||""),a.query=e.query):(e.path?(e.path[0]==="/"?a.path=po(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=po(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 xL(t,e,i){let n=cx(t,i),a=cx(e,i);return n!==void 0&&a!==void 0&&n.toLowerCase()===a.toLowerCase()}function Sa(t,e){let i={host:t.host,scheme:t.scheme,userinfo:t.userinfo,port:t.port,path:t.path,query:t.query,nid:t.nid,nss:t.nss,uuid:t.uuid,fragment:t.fragment,reference:t.reference,resourceName:t.resourceName,secure:t.secure,error:""},n=Object.assign({},e),a=[],r=px(n.scheme||i.scheme);r&&r.serialize&&r.serialize(i,n),i.path!==void 0&&(n.skipEscape?i.path=vL(i.path):(i.path=AL(i.path),i.scheme!==void 0&&(i.path=i.path.split("%3A").join(":")))),n.reference!=="suffix"&&i.scheme&&a.push(i.scheme,":");let s=wL(i);if(s!==void 0&&(n.reference!=="suffix"&&a.push("//"),a.push(s),i.path&&i.path[0]!=="/"&&a.push("/")),i.path!==void 0){let o=i.path;!n.absolutePath&&(!r||!r.absolutePath)&&(o=po(o)),s===void 0&&o[0]==="/"&&o[1]==="/"&&(o="/%2F"+o.slice(2)),a.push(o)}return i.query!==void 0&&a.push("?",i.query),i.fragment!==void 0&&a.push("#",i.fragment),a.join("")}var TL=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u;function ML(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 hx(t,e){let i=Object.assign({},e),n={scheme:void 0,userinfo:void 0,host:"",port:void 0,path:"",query:void 0,fragment:void 0},a=!1,r=!1;i.reference==="suffix"&&(i.scheme?t=i.scheme+":"+t:t="//"+t);let s=t.match(TL);if(s){n.scheme=s[1],n.userinfo=s[3],n.host=s[4],n.port=parseInt(s[5],10),n.path=s[6]||"",n.query=s[7],n.fragment=s[8],isNaN(n.port)&&(n.port=s[5]);let o=ML(n,s);if(o!==void 0&&(n.error=n.error||o,a=!0),n.host)if(yL(n.host)===!1){let c=fL(n.host);n.host=c.host.toLowerCase(),r=c.isIPV6}else r=!0;n.scheme===void 0&&n.userinfo===void 0&&n.host===void 0&&n.port===void 0&&n.query===void 0&&!n.path?n.reference="same-document":n.scheme===void 0?n.reference="relative":n.fragment===void 0?n.reference="absolute":n.reference="uri",i.reference&&i.reference!=="suffix"&&i.reference!==n.reference&&(n.error=n.error||"URI is not a "+i.reference+" reference.");let l=px(i.scheme||n.scheme);if(!i.unicodeSupport&&(!l||!l.unicodeSupport)&&n.host&&(i.domainHost||l&&l.domainHost)&&r===!1&&PL(n.host))try{n.host=URL.domainToASCII(n.host.toLowerCase())}catch(u){n.error=n.error||"Host's domain name can not be converted to ASCII: "+u}if((!l||l&&!l.skipNormalize)&&(t.indexOf("%")!==-1&&(n.scheme!==void 0&&(n.scheme=unescape(n.scheme)),n.host!==void 0&&(n.host=bL(unescape(n.host),r))),n.path&&(n.path=CL(n.path)),n.fragment))try{n.fragment=encodeURI(decodeURIComponent(n.fragment))}catch{n.error=n.error||"URI malformed"}l&&l.parse&&l.parse(n,i)}else n.error=n.error||"URI can not be parsed.";return{parsed:n,malformedAuthorityOrPort:a}}function Tr(t,e){return hx(t,e).parsed}function EL(t,e){return gx(t,e).normalized}function gx(t,e){let{parsed:i,malformedAuthorityOrPort:n}=hx(t,e);return{normalized:n?t:Sa(i,e),malformedAuthorityOrPort:n}}function cx(t,e){if(typeof t=="string"){let{normalized:i,malformedAuthorityOrPort:n}=gx(t,e);return n?void 0:i}if(typeof t=="object")return Sa(t,e)}var sf={SCHEMES:jL,normalize:SL,resolve:OL,resolveComponent:dx,equal:xL,serialize:Sa,parse:Tr};Yu.exports=sf;Yu.exports.default=sf;Yu.exports.fastUri=sf});var wx=w(of=>{"use strict";Object.defineProperty(of,"__esModule",{value:!0});var fx=mx();fx.code='require("ajv/dist/runtime/uri").default';of.default=fx});var Sx=w(yi=>{"use strict";Object.defineProperty(yi,"__esModule",{value:!0});yi.CodeGen=yi.Name=yi.nil=yi.stringify=yi.str=yi._=yi.KeywordCxt=void 0;var kL=uo();Object.defineProperty(yi,"KeywordCxt",{enumerable:!0,get:function(){return kL.KeywordCxt}});var Mr=re();Object.defineProperty(yi,"_",{enumerable:!0,get:function(){return Mr._}});Object.defineProperty(yi,"str",{enumerable:!0,get:function(){return Mr.str}});Object.defineProperty(yi,"stringify",{enumerable:!0,get:function(){return Mr.stringify}});Object.defineProperty(yi,"nil",{enumerable:!0,get:function(){return Mr.nil}});Object.defineProperty(yi,"Name",{enumerable:!0,get:function(){return Mr.Name}});Object.defineProperty(yi,"CodeGen",{enumerable:!0,get:function(){return Mr.CodeGen}});var qL=Vu(),yx=co(),_L=Hm(),ho=Zu(),HL=re(),go=so(),Xu=ro(),uf=we(),vx=YO(),RL=wx(),Px=(t,e)=>new RegExp(t,e);Px.code="new RegExp";var IL=["removeAdditional","useDefaults","coerceTypes"],zL=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),DL={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."},GL={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},Cx=200;function $L(t){var e,i,n,a,r,s,o,l,u,c,p,d,h,g,m,f,v,y,A,b,O,$,N,X,F;let k=t.strict,Q=(e=t.code)===null||e===void 0?void 0:e.optimize,Z=Q===!0||Q===void 0?1:Q||0,ie=(n=(i=t.code)===null||i===void 0?void 0:i.regExp)!==null&&n!==void 0?n:Px,se=(a=t.uriResolver)!==null&&a!==void 0?a:RL.default;return{strictSchema:(s=(r=t.strictSchema)!==null&&r!==void 0?r:k)!==null&&s!==void 0?s:!0,strictNumbers:(l=(o=t.strictNumbers)!==null&&o!==void 0?o:k)!==null&&l!==void 0?l:!0,strictTypes:(c=(u=t.strictTypes)!==null&&u!==void 0?u:k)!==null&&c!==void 0?c:"log",strictTuples:(d=(p=t.strictTuples)!==null&&p!==void 0?p:k)!==null&&d!==void 0?d:"log",strictRequired:(g=(h=t.strictRequired)!==null&&h!==void 0?h:k)!==null&&g!==void 0?g:!1,code:t.code?{...t.code,optimize:Z,regExp:ie}:{optimize:Z,regExp:ie},loopRequired:(m=t.loopRequired)!==null&&m!==void 0?m:Cx,loopEnum:(f=t.loopEnum)!==null&&f!==void 0?f:Cx,meta:(v=t.meta)!==null&&v!==void 0?v:!0,messages:(y=t.messages)!==null&&y!==void 0?y:!0,inlineRefs:(A=t.inlineRefs)!==null&&A!==void 0?A:!0,schemaId:(b=t.schemaId)!==null&&b!==void 0?b:"$id",addUsedSchema:(O=t.addUsedSchema)!==null&&O!==void 0?O:!0,validateSchema:($=t.validateSchema)!==null&&$!==void 0?$:!0,validateFormats:(N=t.validateFormats)!==null&&N!==void 0?N:!0,unicodeRegExp:(X=t.unicodeRegExp)!==null&&X!==void 0?X:!0,int32range:(F=t.int32range)!==null&&F!==void 0?F:!0,uriResolver:se}}var mo=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,...$L(e)};let{es5:i,lines:n}=this.opts.code;this.scope=new HL.ValueScope({scope:{},prefixes:zL,es5:i,lines:n}),this.logger=FL(e.logger);let a=e.validateFormats;e.validateFormats=!1,this.RULES=(0,_L.getRules)(),Ax.call(this,DL,e,"NOT SUPPORTED"),Ax.call(this,GL,e,"DEPRECATED","warn"),this._metaOpts=WL.call(this),e.formats&&UL.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),e.keywords&&LL.call(this,e.keywords),typeof e.meta=="object"&&this.addMetaSchema(e.meta),NL.call(this),e.validateFormats=a}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){let{$data:e,meta:i,schemaId:n}=this.opts,a=vx;n==="id"&&(a={...vx},a.id=a.$id,delete a.$id),i&&e&&this.addMetaSchema(a,a[n],!1)}defaultMeta(){let{meta:e,schemaId:i}=this.opts;return this.opts.defaultMeta=typeof e=="object"?e[i]||e:void 0}validate(e,i){let n;if(typeof e=="string"){if(n=this.getSchema(e),!n)throw new Error(`no schema with key or ref "${e}"`)}else n=this.compile(e);let a=n(i);return"$async"in n||(this.errors=n.errors),a}compile(e,i){let n=this._addSchema(e,i);return n.validate||this._compileSchemaEnv(n)}compileAsync(e,i){if(typeof this.opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");let{loadSchema:n}=this.opts;return a.call(this,e,i);async function a(c,p){await r.call(this,c.$schema);let d=this._addSchema(c,p);return d.validate||s.call(this,d)}async function r(c){c&&!this.getSchema(c)&&await a.call(this,{$ref:c},!0)}async function s(c){try{return this._compileSchemaEnv(c)}catch(p){if(!(p instanceof yx.default))throw p;return o.call(this,p),await l.call(this,p.missingSchema),s.call(this,c)}}function o({missingSchema:c,missingRef:p}){if(this.refs[c])throw new Error(`AnySchema ${c} is loaded but ${p} cannot be resolved`)}async function l(c){let p=await u.call(this,c);this.refs[c]||await r.call(this,p.$schema),this.refs[c]||this.addSchema(p,c,i)}async function u(c){let p=this._loading[c];if(p)return p;try{return await(this._loading[c]=n(c))}finally{delete this._loading[c]}}}addSchema(e,i,n,a=this.opts.validateSchema){if(Array.isArray(e)){for(let s of e)this.addSchema(s,void 0,n,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 i=(0,go.normalizeId)(i||r),this._checkUnique(i),this.schemas[i]=this._addSchema(e,n,i,a,!0),this}addMetaSchema(e,i,n=this.opts.validateSchema){return this.addSchema(e,i,!0,n),this}validateSchema(e,i){if(typeof e=="boolean")return!0;let n;if(n=e.$schema,n!==void 0&&typeof n!="string")throw new Error("$schema must be a string");if(n=n||this.opts.defaultMeta||this.defaultMeta(),!n)return this.logger.warn("meta-schema not available"),this.errors=null,!0;let a=this.validate(n,e);if(!a&&i){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 i;for(;typeof(i=bx.call(this,e))=="string";)e=i;if(i===void 0){let{schemaId:n}=this.opts,a=new ho.SchemaEnv({schema:{},schemaId:n});if(i=ho.resolveSchema.call(this,a,e),!i)return;this.refs[e]=i}return i.validate||this._compileSchemaEnv(i)}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 i=bx.call(this,e);return typeof i=="object"&&this._cache.delete(i.schema),delete this.schemas[e],delete this.refs[e],this}case"object":{let i=e;this._cache.delete(i);let n=e[this.opts.schemaId];return n&&(n=(0,go.normalizeId)(n),delete this.schemas[n],delete this.refs[n]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(e){for(let i of e)this.addKeyword(i);return this}addKeyword(e,i){let n;if(typeof e=="string")n=e,typeof i=="object"&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),i.keyword=n);else if(typeof e=="object"&&i===void 0){if(i=e,n=i.keyword,Array.isArray(n)&&!n.length)throw new Error("addKeywords: keyword must be string or non-empty array")}else throw new Error("invalid addKeywords parameters");if(JL.call(this,n,i),!i)return(0,uf.eachItem)(n,r=>lf.call(this,r)),this;KL.call(this,i);let a={...i,type:(0,Xu.getJSONTypes)(i.type),schemaType:(0,Xu.getJSONTypes)(i.schemaType)};return(0,uf.eachItem)(n,a.type.length===0?r=>lf.call(this,r,a):r=>a.type.forEach(s=>lf.call(this,r,a,s))),this}getKeyword(e){let i=this.RULES.all[e];return typeof i=="object"?i.definition:!!i}removeKeyword(e){let{RULES:i}=this;delete i.keywords[e],delete i.all[e];for(let n of i.rules){let a=n.rules.findIndex(r=>r.keyword===e);a>=0&&n.rules.splice(a,1)}return this}addFormat(e,i){return typeof i=="string"&&(i=new RegExp(i)),this.formats[e]=i,this}errorsText(e=this.errors,{separator:i=", ",dataVar:n="data"}={}){return!e||e.length===0?"No errors":e.map(a=>`${n}${a.instancePath} ${a.message}`).reduce((a,r)=>a+i+r)}$dataMetaSchema(e,i){let n=this.RULES.all;e=JSON.parse(JSON.stringify(e));for(let a of i){let r=a.split("/").slice(1),s=e;for(let o of r)s=s[o];for(let o in n){let l=n[o];if(typeof l!="object")continue;let{$data:u}=l.definition,c=s[o];u&&c&&(s[o]=jx(c))}}return e}_removeAllSchemas(e,i){for(let n in e){let a=e[n];(!i||i.test(n))&&(typeof a=="string"?delete e[n]:a&&!a.meta&&(this._cache.delete(a.schema),delete e[n]))}}_addSchema(e,i,n,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;n=(0,go.normalizeId)(s||n);let u=go.getSchemaRefs.call(this,e,n);return l=new ho.SchemaEnv({schema:e,schemaId:o,meta:i,baseId:n,localRefs:u}),this._cache.set(l.schema,l),r&&!n.startsWith("#")&&(n&&this._checkUnique(n),this.refs[n]=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):ho.compileSchema.call(this,e),!e.validate)throw new Error("ajv implementation error");return e.validate}_compileMetaSchema(e){let i=this.opts;this.opts=this._metaOpts;try{ho.compileSchema.call(this,e)}finally{this.opts=i}}};mo.ValidationError=qL.default;mo.MissingRefError=yx.default;yi.default=mo;function Ax(t,e,i,n="error"){for(let a in t){let r=a;r in e&&this.logger[n](`${i}: option ${a}. ${t[r]}`)}}function bx(t){return t=(0,go.normalizeId)(t),this.schemas[t]||this.refs[t]}function NL(){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 UL(){for(let t in this.opts.formats){let e=this.opts.formats[t];e&&this.addFormat(t,e)}}function LL(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 i=t[e];i.keyword||(i.keyword=e),this.addKeyword(i)}}function WL(){let t={...this.opts};for(let e of IL)delete t[e];return t}var BL={log(){},warn(){},error(){}};function FL(t){if(t===!1)return BL;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 VL=/^[a-z_$][a-z0-9_$:-]*$/i;function JL(t,e){let{RULES:i}=this;if((0,uf.eachItem)(t,n=>{if(i.keywords[n])throw new Error(`Keyword ${n} is already defined`);if(!VL.test(n))throw new Error(`Keyword ${n} has invalid name`)}),!!e&&e.$data&&!("code"in e||"validate"in e))throw new Error('$data keyword must have "code" or "validate" function')}function lf(t,e,i){var n;let a=e?.post;if(i&&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===i);if(s||(s={type:i,rules:[]},r.rules.push(s)),r.keywords[t]=!0,!e)return;let o={keyword:t,definition:{...e,type:(0,Xu.getJSONTypes)(e.type),schemaType:(0,Xu.getJSONTypes)(e.schemaType)}};e.before?ZL.call(this,s,o,e.before):s.rules.push(o),r.all[t]=o,(n=e.implements)===null||n===void 0||n.forEach(l=>this.addKeyword(l))}function ZL(t,e,i){let n=t.rules.findIndex(a=>a.keyword===i);n>=0?t.rules.splice(n,0,e):(t.rules.push(e),this.logger.warn(`rule ${i} is not defined`))}function KL(t){let{metaSchema:e}=t;e!==void 0&&(t.$data&&this.opts.$data&&(e=jx(e)),t.validateSchema=this.compile(e,!0))}var QL={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function jx(t){return{anyOf:[t,QL]}}});var Ox=w(cf=>{"use strict";Object.defineProperty(cf,"__esModule",{value:!0});var YL={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};cf.default=YL});var Ex=w(Oa=>{"use strict";Object.defineProperty(Oa,"__esModule",{value:!0});Oa.callRef=Oa.getValidate=void 0;var XL=co(),xx=pn(),Li=re(),Er=st(),Tx=Zu(),ec=we(),eW={keyword:"$ref",schemaType:"string",code(t){let{gen:e,schema:i,it:n}=t,{baseId:a,schemaEnv:r,validateName:s,opts:o,self:l}=n,{root:u}=r;if((i==="#"||i==="#/")&&a===u.baseId)return p();let c=Tx.resolveRef.call(l,u,a,i);if(c===void 0)throw new XL.default(n.opts.uriResolver,a,i);if(c instanceof Tx.SchemaEnv)return d(c);return h(c);function p(){if(r===u)return ic(t,s,r,r.$async);let g=e.scopeValue("root",{ref:u});return ic(t,(0,Li._)`${g}.validate`,u,u.$async)}function d(g){let m=Mx(t,g);ic(t,m,g,g.$async)}function h(g){let m=e.scopeValue("schema",o.code.source===!0?{ref:g,code:(0,Li.stringify)(g)}:{ref:g}),f=e.name("valid"),v=t.subschema({schema:g,dataTypes:[],schemaPath:Li.nil,topSchemaRef:m,errSchemaPath:i},f);t.mergeEvaluated(v),t.ok(f)}}};function Mx(t,e){let{gen:i}=t;return e.validate?i.scopeValue("validate",{ref:e.validate}):(0,Li._)`${i.scopeValue("wrapper",{ref:e})}.validate`}Oa.getValidate=Mx;function ic(t,e,i,n){let{gen:a,it:r}=t,{allErrors:s,schemaEnv:o,opts:l}=r,u=l.passContext?Er.default.this:Li.nil;n?c():p();function c(){if(!o.$async)throw new Error("async schema referenced by sync schema");let g=a.let("valid");a.try(()=>{a.code((0,Li._)`await ${(0,xx.callValidateCode)(t,e,u)}`),h(e),s||a.assign(g,!0)},m=>{a.if((0,Li._)`!(${m} instanceof ${r.ValidationError})`,()=>a.throw(m)),d(m),s||a.assign(g,!1)}),t.ok(g)}function p(){t.result((0,xx.callValidateCode)(t,e,u),()=>h(e),()=>d(e))}function d(g){let m=(0,Li._)`${g}.errors`;a.assign(Er.default.vErrors,(0,Li._)`${Er.default.vErrors} === null ? ${m} : ${Er.default.vErrors}.concat(${m})`),a.assign(Er.default.errors,(0,Li._)`${Er.default.vErrors}.length`)}function h(g){var m;if(!r.opts.unevaluated)return;let f=(m=i?.validate)===null||m===void 0?void 0:m.evaluated;if(r.props!==!0)if(f&&!f.dynamicProps)f.props!==void 0&&(r.props=ec.mergeEvaluated.props(a,f.props,r.props));else{let v=a.var("props",(0,Li._)`${g}.evaluated.props`);r.props=ec.mergeEvaluated.props(a,v,r.props,Li.Name)}if(r.items!==!0)if(f&&!f.dynamicItems)f.items!==void 0&&(r.items=ec.mergeEvaluated.items(a,f.items,r.items));else{let v=a.var("items",(0,Li._)`${g}.evaluated.items`);r.items=ec.mergeEvaluated.items(a,v,r.items,Li.Name)}}}Oa.callRef=ic;Oa.default=eW});var kx=w(pf=>{"use strict";Object.defineProperty(pf,"__esModule",{value:!0});var iW=Ox(),nW=Ex(),tW=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",iW.default,nW.default];pf.default=tW});var qx=w(df=>{"use strict";Object.defineProperty(df,"__esModule",{value:!0});var nc=re(),_t=nc.operators,tc={maximum:{okStr:"<=",ok:_t.LTE,fail:_t.GT},minimum:{okStr:">=",ok:_t.GTE,fail:_t.LT},exclusiveMaximum:{okStr:"<",ok:_t.LT,fail:_t.GTE},exclusiveMinimum:{okStr:">",ok:_t.GT,fail:_t.LTE}},aW={message:({keyword:t,schemaCode:e})=>(0,nc.str)`must be ${tc[t].okStr} ${e}`,params:({keyword:t,schemaCode:e})=>(0,nc._)`{comparison: ${tc[t].okStr}, limit: ${e}}`},rW={keyword:Object.keys(tc),type:"number",schemaType:"number",$data:!0,error:aW,code(t){let{keyword:e,data:i,schemaCode:n}=t;t.fail$data((0,nc._)`${i} ${tc[e].fail} ${n} || isNaN(${i})`)}};df.default=rW});var _x=w(hf=>{"use strict";Object.defineProperty(hf,"__esModule",{value:!0});var fo=re(),sW={message:({schemaCode:t})=>(0,fo.str)`must be multiple of ${t}`,params:({schemaCode:t})=>(0,fo._)`{multipleOf: ${t}}`},oW={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:sW,code(t){let{gen:e,data:i,schemaCode:n,it:a}=t,r=a.opts.multipleOfPrecision,s=e.let("res"),o=r?(0,fo._)`Math.abs(Math.round(${s}) - ${s}) > 1e-${r}`:(0,fo._)`${s} !== parseInt(${s})`;t.fail$data((0,fo._)`(${n} === 0 || (${s} = ${i}/${n}, ${o}))`)}};hf.default=oW});var Rx=w(gf=>{"use strict";Object.defineProperty(gf,"__esModule",{value:!0});function Hx(t){let e=t.length,i=0,n=0,a;for(;n=55296&&a<=56319&&n{"use strict";Object.defineProperty(mf,"__esModule",{value:!0});var xa=re(),lW=we(),uW=Rx(),cW={message({keyword:t,schemaCode:e}){let i=t==="maxLength"?"more":"fewer";return(0,xa.str)`must NOT have ${i} than ${e} characters`},params:({schemaCode:t})=>(0,xa._)`{limit: ${t}}`},pW={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:cW,code(t){let{keyword:e,data:i,schemaCode:n,it:a}=t,r=e==="maxLength"?xa.operators.GT:xa.operators.LT,s=a.opts.unicode===!1?(0,xa._)`${i}.length`:(0,xa._)`${(0,lW.useFunc)(t.gen,uW.default)}(${i})`;t.fail$data((0,xa._)`${s} ${r} ${n}`)}};mf.default=pW});var zx=w(ff=>{"use strict";Object.defineProperty(ff,"__esModule",{value:!0});var dW=pn(),hW=we(),kr=re(),gW={message:({schemaCode:t})=>(0,kr.str)`must match pattern "${t}"`,params:({schemaCode:t})=>(0,kr._)`{pattern: ${t}}`},mW={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:gW,code(t){let{gen:e,data:i,$data:n,schema:a,schemaCode:r,it:s}=t,o=s.opts.unicodeRegExp?"u":"";if(n){let{regExp:l}=s.opts.code,u=l.code==="new RegExp"?(0,kr._)`new RegExp`:(0,hW.useFunc)(e,l),c=e.let("valid");e.try(()=>e.assign(c,(0,kr._)`${u}(${r}, ${o}).test(${i})`),()=>e.assign(c,!1)),t.fail$data((0,kr._)`!${c}`)}else{let l=(0,dW.usePattern)(t,a);t.fail$data((0,kr._)`!${l}.test(${i})`)}}};ff.default=mW});var Dx=w(wf=>{"use strict";Object.defineProperty(wf,"__esModule",{value:!0});var wo=re(),fW={message({keyword:t,schemaCode:e}){let i=t==="maxProperties"?"more":"fewer";return(0,wo.str)`must NOT have ${i} than ${e} properties`},params:({schemaCode:t})=>(0,wo._)`{limit: ${t}}`},wW={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:fW,code(t){let{keyword:e,data:i,schemaCode:n}=t,a=e==="maxProperties"?wo.operators.GT:wo.operators.LT;t.fail$data((0,wo._)`Object.keys(${i}).length ${a} ${n}`)}};wf.default=wW});var Gx=w(vf=>{"use strict";Object.defineProperty(vf,"__esModule",{value:!0});var vo=pn(),Co=re(),vW=we(),CW={message:({params:{missingProperty:t}})=>(0,Co.str)`must have required property '${t}'`,params:({params:{missingProperty:t}})=>(0,Co._)`{missingProperty: ${t}}`},AW={keyword:"required",type:"object",schemaType:"array",$data:!0,error:CW,code(t){let{gen:e,schema:i,schemaCode:n,data:a,$data:r,it:s}=t,{opts:o}=s;if(!r&&i.length===0)return;let l=i.length>=o.loopRequired;if(s.allErrors?u():c(),o.strictRequired){let h=t.parentSchema.properties,{definedProperties:g}=t.it;for(let m of i)if(h?.[m]===void 0&&!g.has(m)){let f=s.schemaEnv.baseId+s.errSchemaPath,v=`required property "${m}" is not defined at "${f}" (strictRequired)`;(0,vW.checkStrictMode)(s,v,s.opts.strictRequired)}}function u(){if(l||r)t.block$data(Co.nil,p);else for(let h of i)(0,vo.checkReportMissingProp)(t,h)}function c(){let h=e.let("missing");if(l||r){let g=e.let("valid",!0);t.block$data(g,()=>d(h,g)),t.ok(g)}else e.if((0,vo.checkMissingProp)(t,i,h)),(0,vo.reportMissingProp)(t,h),e.else()}function p(){e.forOf("prop",n,h=>{t.setParams({missingProperty:h}),e.if((0,vo.noPropertyInData)(e,a,h,o.ownProperties),()=>t.error())})}function d(h,g){t.setParams({missingProperty:h}),e.forOf(h,n,()=>{e.assign(g,(0,vo.propertyInData)(e,a,h,o.ownProperties)),e.if((0,Co.not)(g),()=>{t.error(),e.break()})},Co.nil)}}};vf.default=AW});var $x=w(Cf=>{"use strict";Object.defineProperty(Cf,"__esModule",{value:!0});var Ao=re(),bW={message({keyword:t,schemaCode:e}){let i=t==="maxItems"?"more":"fewer";return(0,Ao.str)`must NOT have ${i} than ${e} items`},params:({schemaCode:t})=>(0,Ao._)`{limit: ${t}}`},yW={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:bW,code(t){let{keyword:e,data:i,schemaCode:n}=t,a=e==="maxItems"?Ao.operators.GT:Ao.operators.LT;t.fail$data((0,Ao._)`${i}.length ${a} ${n}`)}};Cf.default=yW});var ac=w(Af=>{"use strict";Object.defineProperty(Af,"__esModule",{value:!0});var Nx=Um();Nx.code='require("ajv/dist/runtime/equal").default';Af.default=Nx});var Ux=w(yf=>{"use strict";Object.defineProperty(yf,"__esModule",{value:!0});var bf=ro(),Pi=re(),PW=we(),jW=ac(),SW={message:({params:{i:t,j:e}})=>(0,Pi.str)`must NOT have duplicate items (items ## ${e} and ${t} are identical)`,params:({params:{i:t,j:e}})=>(0,Pi._)`{i: ${t}, j: ${e}}`},OW={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:SW,code(t){let{gen:e,data:i,$data:n,schema:a,parentSchema:r,schemaCode:s,it:o}=t;if(!n&&!a)return;let l=e.let("valid"),u=r.items?(0,bf.getSchemaTypes)(r.items):[];t.block$data(l,c,(0,Pi._)`${s} === false`),t.ok(l);function c(){let g=e.let("i",(0,Pi._)`${i}.length`),m=e.let("j");t.setParams({i:g,j:m}),e.assign(l,!0),e.if((0,Pi._)`${g} > 1`,()=>(p()?d:h)(g,m))}function p(){return u.length>0&&!u.some(g=>g==="object"||g==="array")}function d(g,m){let f=e.name("item"),v=(0,bf.checkDataTypes)(u,f,o.opts.strictNumbers,bf.DataType.Wrong),y=e.const("indices",(0,Pi._)`{}`);e.for((0,Pi._)`;${g}--;`,()=>{e.let(f,(0,Pi._)`${i}[${g}]`),e.if(v,(0,Pi._)`continue`),u.length>1&&e.if((0,Pi._)`typeof ${f} == "string"`,(0,Pi._)`${f} += "_"`),e.if((0,Pi._)`typeof ${y}[${f}] == "number"`,()=>{e.assign(m,(0,Pi._)`${y}[${f}]`),t.error(),e.assign(l,!1).break()}).code((0,Pi._)`${y}[${f}] = ${g}`)})}function h(g,m){let f=(0,PW.useFunc)(e,jW.default),v=e.name("outer");e.label(v).for((0,Pi._)`;${g}--;`,()=>e.for((0,Pi._)`${m} = ${g}; ${m}--;`,()=>e.if((0,Pi._)`${f}(${i}[${g}], ${i}[${m}])`,()=>{t.error(),e.assign(l,!1).break(v)})))}}};yf.default=OW});var Lx=w(jf=>{"use strict";Object.defineProperty(jf,"__esModule",{value:!0});var Pf=re(),xW=we(),TW=ac(),MW={message:"must be equal to constant",params:({schemaCode:t})=>(0,Pf._)`{allowedValue: ${t}}`},EW={keyword:"const",$data:!0,error:MW,code(t){let{gen:e,data:i,$data:n,schemaCode:a,schema:r}=t;n||r&&typeof r=="object"?t.fail$data((0,Pf._)`!${(0,xW.useFunc)(e,TW.default)}(${i}, ${a})`):t.fail((0,Pf._)`${r} !== ${i}`)}};jf.default=EW});var Wx=w(Sf=>{"use strict";Object.defineProperty(Sf,"__esModule",{value:!0});var bo=re(),kW=we(),qW=ac(),_W={message:"must be equal to one of the allowed values",params:({schemaCode:t})=>(0,bo._)`{allowedValues: ${t}}`},HW={keyword:"enum",schemaType:"array",$data:!0,error:_W,code(t){let{gen:e,data:i,$data:n,schema:a,schemaCode:r,it:s}=t;if(!n&&a.length===0)throw new Error("enum must have non-empty array");let o=a.length>=s.opts.loopEnum,l,u=()=>l??(l=(0,kW.useFunc)(e,qW.default)),c;if(o||n)c=e.let("valid"),t.block$data(c,p);else{if(!Array.isArray(a))throw new Error("ajv implementation error");let h=e.const("vSchema",r);c=(0,bo.or)(...a.map((g,m)=>d(h,m)))}t.pass(c);function p(){e.assign(c,!1),e.forOf("v",r,h=>e.if((0,bo._)`${u()}(${i}, ${h})`,()=>e.assign(c,!0).break()))}function d(h,g){let m=a[g];return typeof m=="object"&&m!==null?(0,bo._)`${u()}(${i}, ${h}[${g}])`:(0,bo._)`${i} === ${m}`}}};Sf.default=HW});var Bx=w(Of=>{"use strict";Object.defineProperty(Of,"__esModule",{value:!0});var RW=qx(),IW=_x(),zW=Ix(),DW=zx(),GW=Dx(),$W=Gx(),NW=$x(),UW=Ux(),LW=Lx(),WW=Wx(),BW=[RW.default,IW.default,zW.default,DW.default,GW.default,$W.default,NW.default,UW.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},LW.default,WW.default];Of.default=BW});var Tf=w(yo=>{"use strict";Object.defineProperty(yo,"__esModule",{value:!0});yo.validateAdditionalItems=void 0;var Ta=re(),xf=we(),FW={message:({params:{len:t}})=>(0,Ta.str)`must NOT have more than ${t} items`,params:({params:{len:t}})=>(0,Ta._)`{limit: ${t}}`},VW={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:FW,code(t){let{parentSchema:e,it:i}=t,{items:n}=e;if(!Array.isArray(n)){(0,xf.checkStrictMode)(i,'"additionalItems" is ignored when "items" is not an array of schemas');return}Fx(t,n)}};function Fx(t,e){let{gen:i,schema:n,data:a,keyword:r,it:s}=t;s.items=!0;let o=i.const("len",(0,Ta._)`${a}.length`);if(n===!1)t.setParams({len:e.length}),t.pass((0,Ta._)`${o} <= ${e.length}`);else if(typeof n=="object"&&!(0,xf.alwaysValidSchema)(s,n)){let u=i.var("valid",(0,Ta._)`${o} <= ${e.length}`);i.if((0,Ta.not)(u),()=>l(u)),t.ok(u)}function l(u){i.forRange("i",e.length,o,c=>{t.subschema({keyword:r,dataProp:c,dataPropType:xf.Type.Num},u),s.allErrors||i.if((0,Ta.not)(u),()=>i.break())})}}yo.validateAdditionalItems=Fx;yo.default=VW});var Mf=w(Po=>{"use strict";Object.defineProperty(Po,"__esModule",{value:!0});Po.validateTuple=void 0;var Vx=re(),rc=we(),JW=pn(),ZW={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(t){let{schema:e,it:i}=t;if(Array.isArray(e))return Jx(t,"additionalItems",e);i.items=!0,!(0,rc.alwaysValidSchema)(i,e)&&t.ok((0,JW.validateArray)(t))}};function Jx(t,e,i=t.schema){let{gen:n,parentSchema:a,data:r,keyword:s,it:o}=t;c(a),o.opts.unevaluated&&i.length&&o.items!==!0&&(o.items=rc.mergeEvaluated.items(n,i.length,o.items));let l=n.name("valid"),u=n.const("len",(0,Vx._)`${r}.length`);i.forEach((p,d)=>{(0,rc.alwaysValidSchema)(o,p)||(n.if((0,Vx._)`${u} > ${d}`,()=>t.subschema({keyword:s,schemaProp:d,dataProp:d},l)),t.ok(l))});function c(p){let{opts:d,errSchemaPath:h}=o,g=i.length,m=g===p.minItems&&(g===p.maxItems||p[e]===!1);if(d.strictTuples&&!m){let f=`"${s}" is ${g}-tuple, but minItems or maxItems/${e} are not specified or different at path "${h}"`;(0,rc.checkStrictMode)(o,f,d.strictTuples)}}}Po.validateTuple=Jx;Po.default=ZW});var Zx=w(Ef=>{"use strict";Object.defineProperty(Ef,"__esModule",{value:!0});var KW=Mf(),QW={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:t=>(0,KW.validateTuple)(t,"items")};Ef.default=QW});var Qx=w(kf=>{"use strict";Object.defineProperty(kf,"__esModule",{value:!0});var Kx=re(),YW=we(),XW=pn(),eB=Tf(),iB={message:({params:{len:t}})=>(0,Kx.str)`must NOT have more than ${t} items`,params:({params:{len:t}})=>(0,Kx._)`{limit: ${t}}`},nB={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:iB,code(t){let{schema:e,parentSchema:i,it:n}=t,{prefixItems:a}=i;n.items=!0,!(0,YW.alwaysValidSchema)(n,e)&&(a?(0,eB.validateAdditionalItems)(t,a):t.ok((0,XW.validateArray)(t)))}};kf.default=nB});var Yx=w(qf=>{"use strict";Object.defineProperty(qf,"__esModule",{value:!0});var hn=re(),sc=we(),tB={message:({params:{min:t,max:e}})=>e===void 0?(0,hn.str)`must contain at least ${t} valid item(s)`:(0,hn.str)`must contain at least ${t} and no more than ${e} valid item(s)`,params:({params:{min:t,max:e}})=>e===void 0?(0,hn._)`{minContains: ${t}}`:(0,hn._)`{minContains: ${t}, maxContains: ${e}}`},aB={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:tB,code(t){let{gen:e,schema:i,parentSchema:n,data:a,it:r}=t,s,o,{minContains:l,maxContains:u}=n;r.opts.next?(s=l===void 0?1:l,o=u):s=1;let c=e.const("len",(0,hn._)`${a}.length`);if(t.setParams({min:s,max:o}),o===void 0&&s===0){(0,sc.checkStrictMode)(r,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(o!==void 0&&s>o){(0,sc.checkStrictMode)(r,'"minContains" > "maxContains" is always invalid'),t.fail();return}if((0,sc.alwaysValidSchema)(r,i)){let m=(0,hn._)`${c} >= ${s}`;o!==void 0&&(m=(0,hn._)`${m} && ${c} <= ${o}`),t.pass(m);return}r.items=!0;let p=e.name("valid");o===void 0&&s===1?h(p,()=>e.if(p,()=>e.break())):s===0?(e.let(p,!0),o!==void 0&&e.if((0,hn._)`${a}.length > 0`,d)):(e.let(p,!1),d()),t.result(p,()=>t.reset());function d(){let m=e.name("_valid"),f=e.let("count",0);h(m,()=>e.if(m,()=>g(f)))}function h(m,f){e.forRange("i",0,c,v=>{t.subschema({keyword:"contains",dataProp:v,dataPropType:sc.Type.Num,compositeRule:!0},m),f()})}function g(m){e.code((0,hn._)`${m}++`),o===void 0?e.if((0,hn._)`${m} >= ${s}`,()=>e.assign(p,!0).break()):(e.if((0,hn._)`${m} > ${o}`,()=>e.assign(p,!1).break()),s===1?e.assign(p,!0):e.if((0,hn._)`${m} >= ${s}`,()=>e.assign(p,!0)))}}};qf.default=aB});var iT=w(Dn=>{"use strict";Object.defineProperty(Dn,"__esModule",{value:!0});Dn.validateSchemaDeps=Dn.validatePropertyDeps=Dn.error=void 0;var _f=re(),rB=we(),jo=pn();Dn.error={message:({params:{property:t,depsCount:e,deps:i}})=>{let n=e===1?"property":"properties";return(0,_f.str)`must have ${n} ${i} when property ${t} is present`},params:({params:{property:t,depsCount:e,deps:i,missingProperty:n}})=>(0,_f._)`{property: ${t}, + || ${s} === "boolean" || ${a} === null`).assign(o,(0,te._)`[${a}]`)}}}function xN({gen:t,parentData:e,parentDataProperty:i},n){t.if((0,te._)`${e} !== undefined`,()=>t.assign((0,te._)`${e}[${i}]`,n))}function Im(t,e,i,n=Sr.Correct){let a=n===Sr.Correct?te.operators.EQ:te.operators.NEQ,r;switch(t){case"null":return(0,te._)`${e} ${a} null`;case"array":r=(0,te._)`Array.isArray(${e})`;break;case"object":r=(0,te._)`${e} && typeof ${e} == "object" && !Array.isArray(${e})`;break;case"integer":r=s((0,te._)`!(${e} % 1) && !isNaN(${e})`);break;case"number":r=s();break;default:return(0,te._)`typeof ${e} ${a} ${t}`}return n===Sr.Correct?r:(0,te.not)(r);function s(o=te.nil){return(0,te.and)((0,te._)`typeof ${e} == "number"`,o,i?(0,te._)`isFinite(${e})`:te.nil)}}Ei.checkDataType=Im;function zm(t,e,i,n){if(t.length===1)return Im(t[0],e,i,n);let a,r=(0,vO.toHash)(t);if(r.array&&r.object){let s=(0,te._)`typeof ${e} != "object"`;a=r.null?s:(0,te._)`!${e} || ${s}`,delete r.null,delete r.array,delete r.object}else a=te.nil;r.number&&delete r.integer;for(let s in r)a=(0,te.and)(a,Im(s,e,i,n));return a}Ei.checkDataTypes=zm;var TN={message:({schema:t})=>`must be ${t}`,params:({schema:t,schemaValue:e})=>typeof t=="string"?(0,te._)`{type: ${t}}`:(0,te._)`{type: ${e}}`};function Dm(t){let e=MN(t);(0,yN.reportError)(e,TN)}Ei.reportTypeError=Dm;function MN(t){let{gen:e,data:i,schema:n}=t,a=(0,vO.schemaRefOrVal)(t,n,"type");return{gen:e,keyword:"type",data:i,schema:n.type,schemaCode:a,schemaValue:a,parentSchema:n,params:{},it:t}}});var yO=w(Lu=>{"use strict";Object.defineProperty(Lu,"__esModule",{value:!0});Lu.assignDefaults=void 0;var Or=re(),EN=we();function kN(t,e){let{properties:i,items:n}=t.schema;if(e==="object"&&i)for(let a in i)bO(t,a,i[a].default);else e==="array"&&Array.isArray(n)&&n.forEach((a,r)=>bO(t,r,a.default))}Lu.assignDefaults=kN;function bO(t,e,i){let{gen:n,compositeRule:a,data:r,opts:s}=t;if(i===void 0)return;let o=(0,Or._)`${r}${(0,Or.getProperty)(e)}`;if(a){(0,EN.checkStrictMode)(t,`default is ignored for: ${o}`);return}let l=(0,Or._)`${o} === undefined`;s.useDefaults==="empty"&&(l=(0,Or._)`${l} || ${o} === null || ${o} === ""`),n.if(l,(0,Or._)`${o} = ${(0,Or.stringify)(i)}`)}});var dn=w(Ee=>{"use strict";Object.defineProperty(Ee,"__esModule",{value:!0});Ee.validateUnion=Ee.validateArray=Ee.usePattern=Ee.callValidateCode=Ee.schemaProperties=Ee.allSchemaProperties=Ee.noPropertyInData=Ee.propertyInData=Ee.isOwnProperty=Ee.hasPropFunc=Ee.reportMissingProp=Ee.checkMissingProp=Ee.checkReportMissingProp=void 0;var Ne=re(),Gm=we(),Mt=st(),qN=we();function _N(t,e){let{gen:i,data:n,it:a}=t;i.if(Nm(i,n,e,a.opts.ownProperties),()=>{t.setParams({missingProperty:(0,Ne._)`${e}`},!0),t.error()})}Ee.checkReportMissingProp=_N;function HN({gen:t,data:e,it:{opts:i}},n,a){return(0,Ne.or)(...n.map(r=>(0,Ne.and)(Nm(t,e,r,i.ownProperties),(0,Ne._)`${a} = ${r}`)))}Ee.checkMissingProp=HN;function RN(t,e){t.setParams({missingProperty:e},!0),t.error()}Ee.reportMissingProp=RN;function PO(t){return t.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,Ne._)`Object.prototype.hasOwnProperty`})}Ee.hasPropFunc=PO;function $m(t,e,i){return(0,Ne._)`${PO(t)}.call(${e}, ${i})`}Ee.isOwnProperty=$m;function IN(t,e,i,n){let a=(0,Ne._)`${e}${(0,Ne.getProperty)(i)} !== undefined`;return n?(0,Ne._)`${a} && ${$m(t,e,i)}`:a}Ee.propertyInData=IN;function Nm(t,e,i,n){let a=(0,Ne._)`${e}${(0,Ne.getProperty)(i)} === undefined`;return n?(0,Ne.or)(a,(0,Ne.not)($m(t,e,i))):a}Ee.noPropertyInData=Nm;function jO(t){return t?Object.keys(t).filter(e=>e!=="__proto__"):[]}Ee.allSchemaProperties=jO;function zN(t,e){return jO(e).filter(i=>!(0,Gm.alwaysValidSchema)(t,e[i]))}Ee.schemaProperties=zN;function DN({schemaCode:t,data:e,it:{gen:i,topSchemaRef:n,schemaPath:a,errorPath:r},it:s},o,l,u){let c=u?(0,Ne._)`${t}, ${e}, ${n}${a}`:e,p=[[Mt.default.instancePath,(0,Ne.strConcat)(Mt.default.instancePath,r)],[Mt.default.parentData,s.parentData],[Mt.default.parentDataProperty,s.parentDataProperty],[Mt.default.rootData,Mt.default.rootData]];s.opts.dynamicRef&&p.push([Mt.default.dynamicAnchors,Mt.default.dynamicAnchors]);let d=(0,Ne._)`${c}, ${i.object(...p)}`;return l!==Ne.nil?(0,Ne._)`${o}.call(${l}, ${d})`:(0,Ne._)`${o}(${d})`}Ee.callValidateCode=DN;var GN=(0,Ne._)`new RegExp`;function $N({gen:t,it:{opts:e}},i){let n=e.unicodeRegExp?"u":"",{regExp:a}=e.code,r=a(i,n);return t.scopeValue("pattern",{key:r.toString(),ref:r,code:(0,Ne._)`${a.code==="new RegExp"?GN:(0,qN.useFunc)(t,a)}(${i}, ${n})`})}Ee.usePattern=$N;function NN(t){let{gen:e,data:i,keyword:n,it:a}=t,r=e.name("valid");if(a.allErrors){let o=e.let("valid",!0);return s(()=>e.assign(o,!1)),o}return e.var(r,!0),s(()=>e.break()),r;function s(o){let l=e.const("len",(0,Ne._)`${i}.length`);e.forRange("i",0,l,u=>{t.subschema({keyword:n,dataProp:u,dataPropType:Gm.Type.Num},r),e.if((0,Ne.not)(r),o)})}}Ee.validateArray=NN;function UN(t){let{gen:e,schema:i,keyword:n,it:a}=t;if(!Array.isArray(i))throw new Error("ajv implementation error");if(i.some(l=>(0,Gm.alwaysValidSchema)(a,l))&&!a.opts.unevaluated)return;let s=e.let("valid",!1),o=e.name("_valid");e.block(()=>i.forEach((l,u)=>{let c=t.subschema({keyword:n,schemaProp:u,compositeRule:!0},o);e.assign(s,(0,Ne._)`${s} || ${o}`),t.mergeValidEvaluated(c,o)||e.if((0,Ne.not)(s))})),t.result(s,()=>t.reset(),()=>t.error(!0))}Ee.validateUnion=UN});var xO=w(In=>{"use strict";Object.defineProperty(In,"__esModule",{value:!0});In.validateKeywordUsage=In.validSchemaType=In.funcKeywordCode=In.macroKeywordCode=void 0;var Ri=re(),Pa=st(),LN=dn(),WN=ao();function BN(t,e){let{gen:i,keyword:n,schema:a,parentSchema:r,it:s}=t,o=e.macro.call(s.self,a,r,s),l=OO(i,n,o);s.opts.validateSchema!==!1&&s.self.validateSchema(o,!0);let u=i.name("valid");t.subschema({schema:o,schemaPath:Ri.nil,errSchemaPath:`${s.errSchemaPath}/${n}`,topSchemaRef:l,compositeRule:!0},u),t.pass(u,()=>t.error(!0))}In.macroKeywordCode=BN;function FN(t,e){var i;let{gen:n,keyword:a,schema:r,parentSchema:s,$data:o,it:l}=t;JN(l,e);let u=!o&&e.compile?e.compile.call(l.self,r,s,l):e.validate,c=OO(n,a,u),p=n.let("valid");t.block$data(p,d),t.ok((i=e.valid)!==null&&i!==void 0?i:p);function d(){if(e.errors===!1)m(),e.modifying&&SO(t),f(()=>t.error());else{let v=e.async?h():g();e.modifying&&SO(t),f(()=>VN(t,v))}}function h(){let v=n.let("ruleErrs",null);return n.try(()=>m((0,Ri._)`await `),y=>n.assign(p,!1).if((0,Ri._)`${y} instanceof ${l.ValidationError}`,()=>n.assign(v,(0,Ri._)`${y}.errors`),()=>n.throw(y))),v}function g(){let v=(0,Ri._)`${c}.errors`;return n.assign(v,null),m(Ri.nil),v}function m(v=e.async?(0,Ri._)`await `:Ri.nil){let y=l.opts.passContext?Pa.default.this:Pa.default.self,A=!("compile"in e&&!o||e.schema===!1);n.assign(p,(0,Ri._)`${v}${(0,LN.callValidateCode)(t,c,y,A)}`,e.modifying)}function f(v){var y;n.if((0,Ri.not)((y=e.valid)!==null&&y!==void 0?y:p),v)}}In.funcKeywordCode=FN;function SO(t){let{gen:e,data:i,it:n}=t;e.if(n.parentData,()=>e.assign(i,(0,Ri._)`${n.parentData}[${n.parentDataProperty}]`))}function VN(t,e){let{gen:i}=t;i.if((0,Ri._)`Array.isArray(${e})`,()=>{i.assign(Pa.default.vErrors,(0,Ri._)`${Pa.default.vErrors} === null ? ${e} : ${Pa.default.vErrors}.concat(${e})`).assign(Pa.default.errors,(0,Ri._)`${Pa.default.vErrors}.length`),(0,WN.extendErrors)(t)},()=>t.error())}function JN({schemaEnv:t},e){if(e.async&&!t.$async)throw new Error("async keyword in sync schema")}function OO(t,e,i){if(i===void 0)throw new Error(`keyword "${e}" failed to compile`);return t.scopeValue("keyword",typeof i=="function"?{ref:i}:{ref:i,code:(0,Ri.stringify)(i)})}function ZN(t,e,i=!1){return!e.length||e.some(n=>n==="array"?Array.isArray(t):n==="object"?t&&typeof t=="object"&&!Array.isArray(t):typeof t==n||i&&typeof t>"u")}In.validSchemaType=ZN;function KN({schema:t,opts:e,self:i,errSchemaPath:n},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 "${n}": `+i.errorsText(a.validateSchema.errors);if(e.validateSchema==="log")i.logger.error(l);else throw new Error(l)}}In.validateKeywordUsage=KN});var MO=w(Et=>{"use strict";Object.defineProperty(Et,"__esModule",{value:!0});Et.extendSubschemaMode=Et.extendSubschemaData=Et.getSubschema=void 0;var zn=re(),TO=we();function QN(t,{keyword:e,schemaProp:i,schema:n,schemaPath:a,errSchemaPath:r,topSchemaRef:s}){if(e!==void 0&&n!==void 0)throw new Error('both "keyword" and "schema" passed, only one allowed');if(e!==void 0){let o=t.schema[e];return i===void 0?{schema:o,schemaPath:(0,zn._)`${t.schemaPath}${(0,zn.getProperty)(e)}`,errSchemaPath:`${t.errSchemaPath}/${e}`}:{schema:o[i],schemaPath:(0,zn._)`${t.schemaPath}${(0,zn.getProperty)(e)}${(0,zn.getProperty)(i)}`,errSchemaPath:`${t.errSchemaPath}/${e}/${(0,TO.escapeFragment)(i)}`}}if(n!==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:n,schemaPath:a,topSchemaRef:s,errSchemaPath:r}}throw new Error('either "keyword" or "schema" must be passed')}Et.getSubschema=QN;function YN(t,e,{dataProp:i,dataPropType:n,data:a,dataTypes:r,propertyName:s}){if(a!==void 0&&i!==void 0)throw new Error('both "data" and "dataProp" passed, only one allowed');let{gen:o}=e;if(i!==void 0){let{errorPath:u,dataPathArr:c,opts:p}=e,d=o.let("data",(0,zn._)`${e.data}${(0,zn.getProperty)(i)}`,!0);l(d),t.errorPath=(0,zn.str)`${u}${(0,TO.getErrorPath)(i,n,p.jsPropertySyntax)}`,t.parentDataProperty=(0,zn._)`${i}`,t.dataPathArr=[...c,t.parentDataProperty]}if(a!==void 0){let u=a instanceof zn.Name?a:o.let("data",a,!0);l(u),s!==void 0&&(t.propertyName=s)}r&&(t.dataTypes=r);function l(u){t.data=u,t.dataLevel=e.dataLevel+1,t.dataTypes=[],e.definedProperties=new Set,t.parentData=e.data,t.dataNames=[...e.dataNames,u]}}Et.extendSubschemaData=YN;function XN(t,{jtdDiscriminator:e,jtdMetadata:i,compositeRule:n,createErrors:a,allErrors:r}){n!==void 0&&(t.compositeRule=n),a!==void 0&&(t.createErrors=a),r!==void 0&&(t.allErrors=r),t.jtdDiscriminator=e,t.jtdMetadata=i}Et.extendSubschemaMode=XN});var Um=w((Oae,EO)=>{"use strict";EO.exports=function t(e,i){if(e===i)return!0;if(e&&i&&typeof e=="object"&&typeof i=="object"){if(e.constructor!==i.constructor)return!1;var n,a,r;if(Array.isArray(e)){if(n=e.length,n!=i.length)return!1;for(a=n;a--!==0;)if(!t(e[a],i[a]))return!1;return!0}if(e.constructor===RegExp)return e.source===i.source&&e.flags===i.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===i.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===i.toString();if(r=Object.keys(e),n=r.length,n!==Object.keys(i).length)return!1;for(a=n;a--!==0;)if(!Object.prototype.hasOwnProperty.call(i,r[a]))return!1;for(a=n;a--!==0;){var s=r[a];if(!t(e[s],i[s]))return!1}return!0}return e!==e&&i!==i}});var qO=w((xae,kO)=>{"use strict";var kt=kO.exports=function(t,e,i){typeof e=="function"&&(i=e,e={}),i=e.cb||i;var n=typeof i=="function"?i:i.pre||function(){},a=i.post||function(){};Wu(e,n,a,t,"",t)};kt.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0};kt.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0};kt.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0};kt.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 Wu(t,e,i,n,a,r,s,o,l,u){if(n&&typeof n=="object"&&!Array.isArray(n)){e(n,a,r,s,o,l,u);for(var c in n){var p=n[c];if(Array.isArray(p)){if(c in kt.arrayKeywords)for(var d=0;d{"use strict";Object.defineProperty(Ui,"__esModule",{value:!0});Ui.getSchemaRefs=Ui.resolveUrl=Ui.normalizeId=Ui._getFullPath=Ui.getFullPath=Ui.inlineRef=void 0;var iU=we(),nU=Um(),tU=qO(),aU=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function rU(t,e=!0){return typeof t=="boolean"?!0:e===!0?!Lm(t):e?_O(t)<=e:!1}Ui.inlineRef=rU;var sU=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function Lm(t){for(let e in t){if(sU.has(e))return!0;let i=t[e];if(Array.isArray(i)&&i.some(Lm)||typeof i=="object"&&Lm(i))return!0}return!1}function _O(t){let e=0;for(let i in t){if(i==="$ref")return 1/0;if(e++,!aU.has(i)&&(typeof t[i]=="object"&&(0,iU.eachItem)(t[i],n=>e+=_O(n)),e===1/0))return 1/0}return e}function HO(t,e="",i){i!==!1&&(e=xr(e));let n=t.parse(e);return RO(t,n)}Ui.getFullPath=HO;function RO(t,e){return t.serialize(e).split("#")[0]+"#"}Ui._getFullPath=RO;var oU=/#\/?$/;function xr(t){return t?t.replace(oU,""):""}Ui.normalizeId=xr;function lU(t,e,i){return i=xr(i),t.resolve(e,i)}Ui.resolveUrl=lU;var uU=/^[a-z_][-a-z0-9._]*$/i;function cU(t,e){if(typeof t=="boolean")return{};let{schemaId:i,uriResolver:n}=this.opts,a=xr(t[i]||e),r={"":a},s=HO(n,a,!1),o={},l=new Set;return tU(t,{allKeys:!0},(p,d,h,g)=>{if(g===void 0)return;let m=s+d,f=r[g];typeof p[i]=="string"&&(f=v.call(this,p[i])),y.call(this,p.$anchor),y.call(this,p.$dynamicAnchor),r[d]=f;function v(A){let b=this.opts.uriResolver.resolve;if(A=xr(f?b(f,A):A),l.has(A))throw c(A);l.add(A);let O=this.refs[A];return typeof O=="string"&&(O=this.refs[O]),typeof O=="object"?u(p,O.schema,A):A!==xr(m)&&(A[0]==="#"?(u(p,o[A],A),o[A]=p):this.refs[A]=m),A}function y(A){if(typeof A=="string"){if(!uU.test(A))throw new Error(`invalid anchor "${A}"`);v.call(this,`#${A}`)}}}),o;function u(p,d,h){if(d!==void 0&&!nU(p,d))throw c(h)}function c(p){return new Error(`reference "${p}" resolves to more than one schema`)}}Ui.getSchemaRefs=cU});var uo=w(qt=>{"use strict";Object.defineProperty(qt,"__esModule",{value:!0});qt.getData=qt.KeywordCxt=qt.validateFunctionCode=void 0;var $O=mO(),IO=ro(),Bm=Rm(),Bu=ro(),pU=yO(),lo=xO(),Wm=MO(),B=re(),ee=st(),dU=so(),ot=we(),oo=ao();function hU(t){if(LO(t)&&(WO(t),UO(t))){fU(t);return}NO(t,()=>(0,$O.topBoolOrEmptySchema)(t))}qt.validateFunctionCode=hU;function NO({gen:t,validateName:e,schema:i,schemaEnv:n,opts:a},r){a.code.es5?t.func(e,(0,B._)`${ee.default.data}, ${ee.default.valCxt}`,n.$async,()=>{t.code((0,B._)`"use strict"; ${zO(i,a)}`),mU(t,a),t.code(r)}):t.func(e,(0,B._)`${ee.default.data}, ${gU(a)}`,n.$async,()=>t.code(zO(i,a)).code(r))}function gU(t){return(0,B._)`{${ee.default.instancePath}="", ${ee.default.parentData}, ${ee.default.parentDataProperty}, ${ee.default.rootData}=${ee.default.data}${t.dynamicRef?(0,B._)`, ${ee.default.dynamicAnchors}={}`:B.nil}}={}`}function mU(t,e){t.if(ee.default.valCxt,()=>{t.var(ee.default.instancePath,(0,B._)`${ee.default.valCxt}.${ee.default.instancePath}`),t.var(ee.default.parentData,(0,B._)`${ee.default.valCxt}.${ee.default.parentData}`),t.var(ee.default.parentDataProperty,(0,B._)`${ee.default.valCxt}.${ee.default.parentDataProperty}`),t.var(ee.default.rootData,(0,B._)`${ee.default.valCxt}.${ee.default.rootData}`),e.dynamicRef&&t.var(ee.default.dynamicAnchors,(0,B._)`${ee.default.valCxt}.${ee.default.dynamicAnchors}`)},()=>{t.var(ee.default.instancePath,(0,B._)`""`),t.var(ee.default.parentData,(0,B._)`undefined`),t.var(ee.default.parentDataProperty,(0,B._)`undefined`),t.var(ee.default.rootData,ee.default.data),e.dynamicRef&&t.var(ee.default.dynamicAnchors,(0,B._)`{}`)})}function fU(t){let{schema:e,opts:i,gen:n}=t;NO(t,()=>{i.$comment&&e.$comment&&FO(t),bU(t),n.let(ee.default.vErrors,null),n.let(ee.default.errors,0),i.unevaluated&&wU(t),BO(t),jU(t)})}function wU(t){let{gen:e,validateName:i}=t;t.evaluated=e.const("evaluated",(0,B._)`${i}.evaluated`),e.if((0,B._)`${t.evaluated}.dynamicProps`,()=>e.assign((0,B._)`${t.evaluated}.props`,(0,B._)`undefined`)),e.if((0,B._)`${t.evaluated}.dynamicItems`,()=>e.assign((0,B._)`${t.evaluated}.items`,(0,B._)`undefined`))}function zO(t,e){let i=typeof t=="object"&&t[e.schemaId];return i&&(e.code.source||e.code.process)?(0,B._)`/*# sourceURL=${i} */`:B.nil}function vU(t,e){if(LO(t)&&(WO(t),UO(t))){CU(t,e);return}(0,$O.boolOrEmptySchema)(t,e)}function UO({schema:t,self:e}){if(typeof t=="boolean")return!t;for(let i in t)if(e.RULES.all[i])return!0;return!1}function LO(t){return typeof t.schema!="boolean"}function CU(t,e){let{schema:i,gen:n,opts:a}=t;a.$comment&&i.$comment&&FO(t),yU(t),PU(t);let r=n.const("_errs",ee.default.errors);BO(t,r),n.var(e,(0,B._)`${r} === ${ee.default.errors}`)}function WO(t){(0,ot.checkUnknownRules)(t),AU(t)}function BO(t,e){if(t.opts.jtd)return DO(t,[],!1,e);let i=(0,IO.getSchemaTypes)(t.schema),n=(0,IO.coerceAndCheckDataType)(t,i);DO(t,i,!n,e)}function AU(t){let{schema:e,errSchemaPath:i,opts:n,self:a}=t;e.$ref&&n.ignoreKeywordsWithRef&&(0,ot.schemaHasRulesButRef)(e,a.RULES)&&a.logger.warn(`$ref: keywords ignored in schema at path "${i}"`)}function bU(t){let{schema:e,opts:i}=t;e.default!==void 0&&i.useDefaults&&i.strictSchema&&(0,ot.checkStrictMode)(t,"default is ignored in the schema root")}function yU(t){let e=t.schema[t.opts.schemaId];e&&(t.baseId=(0,dU.resolveUrl)(t.opts.uriResolver,t.baseId,e))}function PU(t){if(t.schema.$async&&!t.schemaEnv.$async)throw new Error("async schema in sync schema")}function FO({gen:t,schemaEnv:e,schema:i,errSchemaPath:n,opts:a}){let r=i.$comment;if(a.$comment===!0)t.code((0,B._)`${ee.default.self}.logger.log(${r})`);else if(typeof a.$comment=="function"){let s=(0,B.str)`${n}/$comment`,o=t.scopeValue("root",{ref:e.root});t.code((0,B._)`${ee.default.self}.opts.$comment(${r}, ${s}, ${o}.schema)`)}}function jU(t){let{gen:e,schemaEnv:i,validateName:n,ValidationError:a,opts:r}=t;i.$async?e.if((0,B._)`${ee.default.errors} === 0`,()=>e.return(ee.default.data),()=>e.throw((0,B._)`new ${a}(${ee.default.vErrors})`)):(e.assign((0,B._)`${n}.errors`,ee.default.vErrors),r.unevaluated&&SU(t),e.return((0,B._)`${ee.default.errors} === 0`))}function SU({gen:t,evaluated:e,props:i,items:n}){i instanceof B.Name&&t.assign((0,B._)`${e}.props`,i),n instanceof B.Name&&t.assign((0,B._)`${e}.items`,n)}function DO(t,e,i,n){let{gen:a,schema:r,data:s,allErrors:o,opts:l,self:u}=t,{RULES:c}=u;if(r.$ref&&(l.ignoreKeywordsWithRef||!(0,ot.schemaHasRulesButRef)(r,c))){a.block(()=>JO(t,"$ref",c.all.$ref.definition));return}l.jtd||OU(t,e),a.block(()=>{for(let d of c.rules)p(d);p(c.post)});function p(d){(0,Bm.shouldUseGroup)(r,d)&&(d.type?(a.if((0,Bu.checkDataType)(d.type,s,l.strictNumbers)),GO(t,d),e.length===1&&e[0]===d.type&&i&&(a.else(),(0,Bu.reportTypeError)(t)),a.endIf()):GO(t,d),o||a.if((0,B._)`${ee.default.errors} === ${n||0}`))}}function GO(t,e){let{gen:i,schema:n,opts:{useDefaults:a}}=t;a&&(0,pU.assignDefaults)(t,e.type),i.block(()=>{for(let r of e.rules)(0,Bm.shouldUseRule)(n,r)&&JO(t,r.keyword,r.definition,e.type)})}function OU(t,e){t.schemaEnv.meta||!t.opts.strictTypes||(xU(t,e),t.opts.allowUnionTypes||TU(t,e),MU(t,t.dataTypes))}function xU(t,e){if(e.length){if(!t.dataTypes.length){t.dataTypes=e;return}e.forEach(i=>{VO(t.dataTypes,i)||Fm(t,`type "${i}" not allowed by context "${t.dataTypes.join(",")}"`)}),kU(t,e)}}function TU(t,e){e.length>1&&!(e.length===2&&e.includes("null"))&&Fm(t,"use allowUnionTypes to allow union type keyword")}function MU(t,e){let i=t.self.RULES.all;for(let n in i){let a=i[n];if(typeof a=="object"&&(0,Bm.shouldUseRule)(t.schema,a)){let{type:r}=a.definition;r.length&&!r.some(s=>EU(e,s))&&Fm(t,`missing type "${r.join(",")}" for keyword "${n}"`)}}}function EU(t,e){return t.includes(e)||e==="number"&&t.includes("integer")}function VO(t,e){return t.includes(e)||e==="integer"&&t.includes("number")}function kU(t,e){let i=[];for(let n of t.dataTypes)VO(e,n)?i.push(n):e.includes("integer")&&n==="number"&&i.push("integer");t.dataTypes=i}function Fm(t,e){let i=t.schemaEnv.baseId+t.errSchemaPath;e+=` at "${i}" (strictTypes)`,(0,ot.checkStrictMode)(t,e,t.opts.strictTypes)}var Fu=class{constructor(e,i,n){if((0,lo.validateKeywordUsage)(e,i,n),this.gen=e.gen,this.allErrors=e.allErrors,this.keyword=n,this.data=e.data,this.schema=e.schema[n],this.$data=i.$data&&e.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,ot.schemaRefOrVal)(e,this.schema,n,this.$data),this.schemaType=i.schemaType,this.parentSchema=e.schema,this.params={},this.it=e,this.def=i,this.$data)this.schemaCode=e.gen.const("vSchema",ZO(this.$data,e));else if(this.schemaCode=this.schemaValue,!(0,lo.validSchemaType)(this.schema,i.schemaType,i.allowUndefined))throw new Error(`${n} value must be ${JSON.stringify(i.schemaType)}`);("code"in i?i.trackErrors:i.errors!==!1)&&(this.errsCount=e.gen.const("_errs",ee.default.errors))}result(e,i,n){this.failResult((0,B.not)(e),i,n)}failResult(e,i,n){this.gen.if(e),n?n():this.error(),i?(this.gen.else(),i(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(e,i){this.failResult((0,B.not)(e),void 0,i)}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:i}=this;this.fail((0,B._)`${i} !== undefined && (${(0,B.or)(this.invalid$data(),e)})`)}error(e,i,n){if(i){this.setParams(i),this._error(e,n),this.setParams({});return}this._error(e,n)}_error(e,i){(e?oo.reportExtraError:oo.reportError)(this,this.def.error,i)}$dataError(){(0,oo.reportError)(this,this.def.$dataError||oo.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');(0,oo.resetErrorsCount)(this.gen,this.errsCount)}ok(e){this.allErrors||this.gen.if(e)}setParams(e,i){i?Object.assign(this.params,e):this.params=e}block$data(e,i,n=B.nil){this.gen.block(()=>{this.check$data(e,n),i()})}check$data(e=B.nil,i=B.nil){if(!this.$data)return;let{gen:n,schemaCode:a,schemaType:r,def:s}=this;n.if((0,B.or)((0,B._)`${a} === undefined`,i)),e!==B.nil&&n.assign(e,!0),(r.length||s.validateSchema)&&(n.elseIf(this.invalid$data()),this.$dataError(),e!==B.nil&&n.assign(e,!1)),n.else()}invalid$data(){let{gen:e,schemaCode:i,schemaType:n,def:a,it:r}=this;return(0,B.or)(s(),o());function s(){if(n.length){if(!(i instanceof B.Name))throw new Error("ajv implementation error");let l=Array.isArray(n)?n:[n];return(0,B._)`${(0,Bu.checkDataTypes)(l,i,r.opts.strictNumbers,Bu.DataType.Wrong)}`}return B.nil}function o(){if(a.validateSchema){let l=e.scopeValue("validate$data",{ref:a.validateSchema});return(0,B._)`!${l}(${i})`}return B.nil}}subschema(e,i){let n=(0,Wm.getSubschema)(this.it,e);(0,Wm.extendSubschemaData)(n,this.it,e),(0,Wm.extendSubschemaMode)(n,e);let a={...this.it,...n,items:void 0,props:void 0};return vU(a,i),a}mergeEvaluated(e,i){let{it:n,gen:a}=this;n.opts.unevaluated&&(n.props!==!0&&e.props!==void 0&&(n.props=ot.mergeEvaluated.props(a,e.props,n.props,i)),n.items!==!0&&e.items!==void 0&&(n.items=ot.mergeEvaluated.items(a,e.items,n.items,i)))}mergeValidEvaluated(e,i){let{it:n,gen:a}=this;if(n.opts.unevaluated&&(n.props!==!0||n.items!==!0))return a.if(i,()=>this.mergeEvaluated(e,B.Name)),!0}};qt.KeywordCxt=Fu;function JO(t,e,i,n){let a=new Fu(t,i,e);"code"in i?i.code(a,n):a.$data&&i.validate?(0,lo.funcKeywordCode)(a,i):"macro"in i?(0,lo.macroKeywordCode)(a,i):(i.compile||i.validate)&&(0,lo.funcKeywordCode)(a,i)}var qU=/^\/(?:[^~]|~0|~1)*$/,_U=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function ZO(t,{dataLevel:e,dataNames:i,dataPathArr:n}){let a,r;if(t==="")return ee.default.rootData;if(t[0]==="/"){if(!qU.test(t))throw new Error(`Invalid JSON-pointer: ${t}`);a=t,r=ee.default.rootData}else{let u=_U.exec(t);if(!u)throw new Error(`Invalid JSON-pointer: ${t}`);let c=+u[1];if(a=u[2],a==="#"){if(c>=e)throw new Error(l("property/index",c));return n[e-c]}if(c>e)throw new Error(l("data",c));if(r=i[e-c],!a)return r}let s=r,o=a.split("/");for(let u of o)u&&(r=(0,B._)`${r}${(0,B.getProperty)((0,ot.unescapeJsonPointer)(u))}`,s=(0,B._)`${s} && ${r}`);return s;function l(u,c){return`Cannot access ${u} ${c} levels up, current level is ${e}`}}qt.getData=ZO});var Vu=w(Jm=>{"use strict";Object.defineProperty(Jm,"__esModule",{value:!0});var Vm=class extends Error{constructor(e){super("validation failed"),this.errors=e,this.ajv=this.validation=!0}};Jm.default=Vm});var co=w(Qm=>{"use strict";Object.defineProperty(Qm,"__esModule",{value:!0});var Zm=so(),Km=class extends Error{constructor(e,i,n,a){super(a||`can't resolve reference ${n} from id ${i}`),this.missingRef=(0,Zm.resolveUrl)(e,i,n),this.missingSchema=(0,Zm.normalizeId)((0,Zm.getFullPath)(e,this.missingRef))}};Qm.default=Km});var Zu=w(hn=>{"use strict";Object.defineProperty(hn,"__esModule",{value:!0});hn.resolveSchema=hn.getCompilingSchema=hn.resolveRef=hn.compileSchema=hn.SchemaEnv=void 0;var Pn=re(),HU=Vu(),ja=st(),jn=so(),KO=we(),RU=uo(),Tr=class{constructor(e){var i;this.refs={},this.dynamicAnchors={};let n;typeof e.schema=="object"&&(n=e.schema),this.schema=e.schema,this.schemaId=e.schemaId,this.root=e.root||this,this.baseId=(i=e.baseId)!==null&&i!==void 0?i:(0,jn.normalizeId)(n?.[e.schemaId||"$id"]),this.schemaPath=e.schemaPath,this.localRefs=e.localRefs,this.meta=e.meta,this.$async=n?.$async,this.refs={}}};hn.SchemaEnv=Tr;function Xm(t){let e=QO.call(this,t);if(e)return e;let i=(0,jn.getFullPath)(this.opts.uriResolver,t.root.baseId),{es5:n,lines:a}=this.opts.code,{ownProperties:r}=this.opts,s=new Pn.CodeGen(this.scope,{es5:n,lines:a,ownProperties:r}),o;t.$async&&(o=s.scopeValue("Error",{ref:HU.default,code:(0,Pn._)`require("ajv/dist/runtime/validation_error").default`}));let l=s.scopeName("validate");t.validateName=l;let u={gen:s,allErrors:this.opts.allErrors,data:ja.default.data,parentData:ja.default.parentData,parentDataProperty:ja.default.parentDataProperty,dataNames:[ja.default.data],dataPathArr:[Pn.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:s.scopeValue("schema",this.opts.code.source===!0?{ref:t.schema,code:(0,Pn.stringify)(t.schema)}:{ref:t.schema}),validateName:l,ValidationError:o,schema:t.schema,schemaEnv:t,rootId:i,baseId:t.baseId||i,schemaPath:Pn.nil,errSchemaPath:t.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,Pn._)`""`,opts:this.opts,self:this},c;try{this._compilations.add(t),(0,RU.validateFunctionCode)(u),s.optimize(this.opts.code.optimize);let p=s.toString();c=`${s.scopeRefs(ja.default.scope)}return ${p}`,this.opts.code.process&&(c=this.opts.code.process(c,t));let h=new Function(`${ja.default.self}`,`${ja.default.scope}`,c)(this,this.scope.get());if(this.scope.value(l,{ref:h}),h.errors=null,h.schema=t.schema,h.schemaEnv=t,t.$async&&(h.$async=!0),this.opts.code.source===!0&&(h.source={validateName:l,validateCode:p,scopeValues:s._values}),this.opts.unevaluated){let{props:g,items:m}=u;h.evaluated={props:g instanceof Pn.Name?void 0:g,items:m instanceof Pn.Name?void 0:m,dynamicProps:g instanceof Pn.Name,dynamicItems:m instanceof Pn.Name},h.source&&(h.source.evaluated=(0,Pn.stringify)(h.evaluated))}return t.validate=h,t}catch(p){throw delete t.validate,delete t.validateName,c&&this.logger.error("Error compiling schema, function code:",c),p}finally{this._compilations.delete(t)}}hn.compileSchema=Xm;function IU(t,e,i){var n;i=(0,jn.resolveUrl)(this.opts.uriResolver,e,i);let a=t.refs[i];if(a)return a;let r=GU.call(this,t,i);if(r===void 0){let s=(n=t.localRefs)===null||n===void 0?void 0:n[i],{schemaId:o}=this.opts;s&&(r=new Tr({schema:s,schemaId:o,root:t,baseId:e}))}if(r!==void 0)return t.refs[i]=zU.call(this,r)}hn.resolveRef=IU;function zU(t){return(0,jn.inlineRef)(t.schema,this.opts.inlineRefs)?t.schema:t.validate?t:Xm.call(this,t)}function QO(t){for(let e of this._compilations)if(DU(e,t))return e}hn.getCompilingSchema=QO;function DU(t,e){return t.schema===e.schema&&t.root===e.root&&t.baseId===e.baseId}function GU(t,e){let i;for(;typeof(i=this.refs[e])=="string";)e=i;return i||this.schemas[e]||Ju.call(this,t,e)}function Ju(t,e){let i=this.opts.uriResolver.parse(e),n=(0,jn._getFullPath)(this.opts.uriResolver,i),a=(0,jn.getFullPath)(this.opts.uriResolver,t.baseId,void 0);if(Object.keys(t.schema).length>0&&n===a)return Ym.call(this,i,t);let r=(0,jn.normalizeId)(n),s=this.refs[r]||this.schemas[r];if(typeof s=="string"){let o=Ju.call(this,t,s);return typeof o?.schema!="object"?void 0:Ym.call(this,i,o)}if(typeof s?.schema=="object"){if(s.validate||Xm.call(this,s),r===(0,jn.normalizeId)(e)){let{schema:o}=s,{schemaId:l}=this.opts,u=o[l];return u&&(a=(0,jn.resolveUrl)(this.opts.uriResolver,a,u)),new Tr({schema:o,schemaId:l,root:t,baseId:a})}return Ym.call(this,i,s)}}hn.resolveSchema=Ju;var $U=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function Ym(t,{baseId:e,schema:i,root:n}){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 i=="boolean")return;let l=i[(0,KO.unescapeFragment)(o)];if(l===void 0)return;i=l;let u=typeof i=="object"&&i[this.opts.schemaId];!$U.has(o)&&u&&(e=(0,jn.resolveUrl)(this.opts.uriResolver,e,u))}let r;if(typeof i!="boolean"&&i.$ref&&!(0,KO.schemaHasRulesButRef)(i,this.RULES)){let o=(0,jn.resolveUrl)(this.opts.uriResolver,e,i.$ref);r=Ju.call(this,n,o)}let{schemaId:s}=this.opts;if(r=r||new Tr({schema:i,schemaId:s,root:n,baseId:e}),r.schema!==r.root.schema)return r}});var YO=w((_ae,NU)=>{NU.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 tf=w((Hae,ax)=>{"use strict";var UU=RegExp.prototype.test.bind(/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu),ex=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),ef=RegExp.prototype.test.bind(/^[\da-f]{2}$/iu),ix=RegExp.prototype.test.bind(/^[\da-z\-._~]$/iu),LU=RegExp.prototype.test.bind(/^[\da-z\-._~!$&'()*+,;=:@/]$/iu);function nf(t){let e="",i=0,n=0;for(n=0;n=48&&i<=57||i>=65&&i<=70||i>=97&&i<=102))return"";e+=t[n];break}for(n+=1;n=48&&i<=57||i>=65&&i<=70||i>=97&&i<=102))return"";e+=t[n]}return e}var WU=RegExp.prototype.test.bind(/[^!"$&'()*+,\-.;=_`a-z{}~]/u);function XO(t){return t.length=0,!0}function BU(t,e,i){if(t.length){let n=nf(t);if(n!=="")e.push(n);else return i.error=!0,!1;t.length=0}return!0}function FU(t){let e=0,i={error:!1,address:"",zone:""},n=[],a=[],r=!1,s=!1,o=BU;for(let l=0;l7){i.error=!0;break}l>0&&t[l-1]===":"&&(r=!0),n.push(":");continue}else if(u==="%"){if(!o(a,n,i))break;o=XO}else{a.push(u);continue}}return a.length&&(o===XO?i.zone=a.join(""):s?n.push(a.join("")):n.push(nf(a))),i.address=n.join(""),i}function nx(t){if(VU(t,":")<2)return{host:t,isIPV6:!1};let e=FU(t);if(e.error)return{host:t,isIPV6:!1};{let i=e.address,n=e.address;return e.zone&&(i+="%"+e.zone,n+="%25"+e.zone),{host:i,isIPV6:!0,escapedHost:n}}}function VU(t,e){let i=0;for(let n=0;nZU[n])}function YU(t,e=!1){if(t.indexOf("%")===-1)return t;let i="";for(let n=0;n{"use strict";var{isUUID:nL}=tf(),tL=/([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu,aL=["http","https","ws","wss","urn","urn:uuid"];function rL(t){return aL.indexOf(t)!==-1}function af(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 rx(t){return t.host||(t.error=t.error||"HTTP URIs must have a host."),t}function sx(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 sL(t){return t.secure=af(t),t.resourceName=(t.path||"/")+(t.query?"?"+t.query:""),t.path=void 0,t.query=void 0,t}function oL(t){if((t.port===(af(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,i]=t.resourceName.split("?");t.path=e&&e!=="/"?e:void 0,t.query=i,t.resourceName=void 0}return t.fragment=void 0,t}function lL(t,e){if(!t.path)return t.error="URN can not be parsed",t;let i=t.path.match(tL);if(i){let n=e.scheme||t.scheme||"urn";t.nid=i[1].toLowerCase(),t.nss=i[2];let a=`${n}:${e.nid||t.nid}`,r=rf(a);t.path=void 0,r&&(t=r.parse(t,e))}else t.error=t.error||"URN can not be parsed.";return t}function uL(t,e){if(t.nid===void 0)throw new Error("URN without nid cannot be serialized");let i=e.scheme||t.scheme||"urn",n=t.nid.toLowerCase(),a=`${i}:${e.nid||n}`,r=rf(a);r&&(t=r.serialize(t,e));let s=t,o=t.nss;return s.path=`${n||e.nid}:${o}`,e.skipEscape=!0,s}function cL(t,e){let i=t;return i.uuid=i.nss,i.nss=void 0,!e.tolerant&&(!i.uuid||!nL(i.uuid))&&(i.error=i.error||"UUID is not valid."),i}function pL(t){let e=t;return e.nss=(t.uuid||"").toLowerCase(),e}var ox={scheme:"http",domainHost:!0,parse:rx,serialize:sx},dL={scheme:"https",domainHost:ox.domainHost,parse:rx,serialize:sx},Ku={scheme:"ws",domainHost:!0,parse:sL,serialize:oL},hL={scheme:"wss",domainHost:Ku.domainHost,parse:Ku.parse,serialize:Ku.serialize},gL={scheme:"urn",parse:lL,serialize:uL,skipNormalize:!0},mL={scheme:"urn:uuid",parse:cL,serialize:pL,skipNormalize:!0},Qu={http:ox,https:dL,ws:Ku,wss:hL,urn:gL,"urn:uuid":mL};Object.setPrototypeOf(Qu,null);function rf(t){return t&&(Qu[t]||Qu[t.toLowerCase()])||void 0}lx.exports={wsIsSecure:af,SCHEMES:Qu,isValidSchemeName:rL,getSchemeHandler:rf}});var mx=w((Iae,Yu)=>{"use strict";var{normalizeIPv6:fL,removeDotSegments:po,recomposeAuthority:wL,normalizePercentEncoding:vL,normalizePathEncoding:CL,escapePreservingEscapes:AL,reescapeHostDelimiters:bL,isIPv4:yL,nonSimpleDomain:PL}=tf(),{SCHEMES:jL,getSchemeHandler:px}=ux();function SL(t,e){return typeof t=="string"?t=EL(t,e):typeof t=="object"&&(t=Mr(Sa(t,e),e)),t}function OL(t,e,i){let n=i?Object.assign({scheme:"null"},i):{scheme:"null"},a=dx(Mr(t,n),Mr(e,n),n,!0);return n.skipEscape=!0,Sa(a,n)}function dx(t,e,i,n){let a={};return n||(t=Mr(Sa(t,i),i),e=Mr(Sa(e,i),i)),i=i||{},!i.tolerant&&e.scheme?(a.scheme=e.scheme,a.userinfo=e.userinfo,a.host=e.host,a.port=e.port,a.path=po(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=po(e.path||""),a.query=e.query):(e.path?(e.path[0]==="/"?a.path=po(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=po(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 xL(t,e,i){let n=cx(t,i),a=cx(e,i);return n!==void 0&&a!==void 0&&n.toLowerCase()===a.toLowerCase()}function Sa(t,e){let i={host:t.host,scheme:t.scheme,userinfo:t.userinfo,port:t.port,path:t.path,query:t.query,nid:t.nid,nss:t.nss,uuid:t.uuid,fragment:t.fragment,reference:t.reference,resourceName:t.resourceName,secure:t.secure,error:""},n=Object.assign({},e),a=[],r=px(n.scheme||i.scheme);r&&r.serialize&&r.serialize(i,n),i.path!==void 0&&(n.skipEscape?i.path=vL(i.path):(i.path=AL(i.path),i.scheme!==void 0&&(i.path=i.path.split("%3A").join(":")))),n.reference!=="suffix"&&i.scheme&&a.push(i.scheme,":");let s=wL(i);if(s!==void 0&&(n.reference!=="suffix"&&a.push("//"),a.push(s),i.path&&i.path[0]!=="/"&&a.push("/")),i.path!==void 0){let o=i.path;!n.absolutePath&&(!r||!r.absolutePath)&&(o=po(o)),s===void 0&&o[0]==="/"&&o[1]==="/"&&(o="/%2F"+o.slice(2)),a.push(o)}return i.query!==void 0&&a.push("?",i.query),i.fragment!==void 0&&a.push("#",i.fragment),a.join("")}var TL=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u;function ML(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 hx(t,e){let i=Object.assign({},e),n={scheme:void 0,userinfo:void 0,host:"",port:void 0,path:"",query:void 0,fragment:void 0},a=!1,r=!1;i.reference==="suffix"&&(i.scheme?t=i.scheme+":"+t:t="//"+t);let s=t.match(TL);if(s){n.scheme=s[1],n.userinfo=s[3],n.host=s[4],n.port=parseInt(s[5],10),n.path=s[6]||"",n.query=s[7],n.fragment=s[8],isNaN(n.port)&&(n.port=s[5]);let o=ML(n,s);if(o!==void 0&&(n.error=n.error||o,a=!0),n.host)if(yL(n.host)===!1){let c=fL(n.host);n.host=c.host.toLowerCase(),r=c.isIPV6}else r=!0;n.scheme===void 0&&n.userinfo===void 0&&n.host===void 0&&n.port===void 0&&n.query===void 0&&!n.path?n.reference="same-document":n.scheme===void 0?n.reference="relative":n.fragment===void 0?n.reference="absolute":n.reference="uri",i.reference&&i.reference!=="suffix"&&i.reference!==n.reference&&(n.error=n.error||"URI is not a "+i.reference+" reference.");let l=px(i.scheme||n.scheme);if(!i.unicodeSupport&&(!l||!l.unicodeSupport)&&n.host&&(i.domainHost||l&&l.domainHost)&&r===!1&&PL(n.host))try{n.host=URL.domainToASCII(n.host.toLowerCase())}catch(u){n.error=n.error||"Host's domain name can not be converted to ASCII: "+u}if((!l||l&&!l.skipNormalize)&&(t.indexOf("%")!==-1&&(n.scheme!==void 0&&(n.scheme=unescape(n.scheme)),n.host!==void 0&&(n.host=bL(unescape(n.host),r))),n.path&&(n.path=CL(n.path)),n.fragment))try{n.fragment=encodeURI(decodeURIComponent(n.fragment))}catch{n.error=n.error||"URI malformed"}l&&l.parse&&l.parse(n,i)}else n.error=n.error||"URI can not be parsed.";return{parsed:n,malformedAuthorityOrPort:a}}function Mr(t,e){return hx(t,e).parsed}function EL(t,e){return gx(t,e).normalized}function gx(t,e){let{parsed:i,malformedAuthorityOrPort:n}=hx(t,e);return{normalized:n?t:Sa(i,e),malformedAuthorityOrPort:n}}function cx(t,e){if(typeof t=="string"){let{normalized:i,malformedAuthorityOrPort:n}=gx(t,e);return n?void 0:i}if(typeof t=="object")return Sa(t,e)}var sf={SCHEMES:jL,normalize:SL,resolve:OL,resolveComponent:dx,equal:xL,serialize:Sa,parse:Mr};Yu.exports=sf;Yu.exports.default=sf;Yu.exports.fastUri=sf});var wx=w(of=>{"use strict";Object.defineProperty(of,"__esModule",{value:!0});var fx=mx();fx.code='require("ajv/dist/runtime/uri").default';of.default=fx});var Sx=w(yi=>{"use strict";Object.defineProperty(yi,"__esModule",{value:!0});yi.CodeGen=yi.Name=yi.nil=yi.stringify=yi.str=yi._=yi.KeywordCxt=void 0;var kL=uo();Object.defineProperty(yi,"KeywordCxt",{enumerable:!0,get:function(){return kL.KeywordCxt}});var Er=re();Object.defineProperty(yi,"_",{enumerable:!0,get:function(){return Er._}});Object.defineProperty(yi,"str",{enumerable:!0,get:function(){return Er.str}});Object.defineProperty(yi,"stringify",{enumerable:!0,get:function(){return Er.stringify}});Object.defineProperty(yi,"nil",{enumerable:!0,get:function(){return Er.nil}});Object.defineProperty(yi,"Name",{enumerable:!0,get:function(){return Er.Name}});Object.defineProperty(yi,"CodeGen",{enumerable:!0,get:function(){return Er.CodeGen}});var qL=Vu(),yx=co(),_L=Hm(),ho=Zu(),HL=re(),go=so(),Xu=ro(),uf=we(),vx=YO(),RL=wx(),Px=(t,e)=>new RegExp(t,e);Px.code="new RegExp";var IL=["removeAdditional","useDefaults","coerceTypes"],zL=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),DL={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."},GL={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},Cx=200;function $L(t){var e,i,n,a,r,s,o,l,u,c,p,d,h,g,m,f,v,y,A,b,O,$,N,X,F;let k=t.strict,Q=(e=t.code)===null||e===void 0?void 0:e.optimize,Z=Q===!0||Q===void 0?1:Q||0,ie=(n=(i=t.code)===null||i===void 0?void 0:i.regExp)!==null&&n!==void 0?n:Px,se=(a=t.uriResolver)!==null&&a!==void 0?a:RL.default;return{strictSchema:(s=(r=t.strictSchema)!==null&&r!==void 0?r:k)!==null&&s!==void 0?s:!0,strictNumbers:(l=(o=t.strictNumbers)!==null&&o!==void 0?o:k)!==null&&l!==void 0?l:!0,strictTypes:(c=(u=t.strictTypes)!==null&&u!==void 0?u:k)!==null&&c!==void 0?c:"log",strictTuples:(d=(p=t.strictTuples)!==null&&p!==void 0?p:k)!==null&&d!==void 0?d:"log",strictRequired:(g=(h=t.strictRequired)!==null&&h!==void 0?h:k)!==null&&g!==void 0?g:!1,code:t.code?{...t.code,optimize:Z,regExp:ie}:{optimize:Z,regExp:ie},loopRequired:(m=t.loopRequired)!==null&&m!==void 0?m:Cx,loopEnum:(f=t.loopEnum)!==null&&f!==void 0?f:Cx,meta:(v=t.meta)!==null&&v!==void 0?v:!0,messages:(y=t.messages)!==null&&y!==void 0?y:!0,inlineRefs:(A=t.inlineRefs)!==null&&A!==void 0?A:!0,schemaId:(b=t.schemaId)!==null&&b!==void 0?b:"$id",addUsedSchema:(O=t.addUsedSchema)!==null&&O!==void 0?O:!0,validateSchema:($=t.validateSchema)!==null&&$!==void 0?$:!0,validateFormats:(N=t.validateFormats)!==null&&N!==void 0?N:!0,unicodeRegExp:(X=t.unicodeRegExp)!==null&&X!==void 0?X:!0,int32range:(F=t.int32range)!==null&&F!==void 0?F:!0,uriResolver:se}}var mo=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,...$L(e)};let{es5:i,lines:n}=this.opts.code;this.scope=new HL.ValueScope({scope:{},prefixes:zL,es5:i,lines:n}),this.logger=FL(e.logger);let a=e.validateFormats;e.validateFormats=!1,this.RULES=(0,_L.getRules)(),Ax.call(this,DL,e,"NOT SUPPORTED"),Ax.call(this,GL,e,"DEPRECATED","warn"),this._metaOpts=WL.call(this),e.formats&&UL.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),e.keywords&&LL.call(this,e.keywords),typeof e.meta=="object"&&this.addMetaSchema(e.meta),NL.call(this),e.validateFormats=a}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){let{$data:e,meta:i,schemaId:n}=this.opts,a=vx;n==="id"&&(a={...vx},a.id=a.$id,delete a.$id),i&&e&&this.addMetaSchema(a,a[n],!1)}defaultMeta(){let{meta:e,schemaId:i}=this.opts;return this.opts.defaultMeta=typeof e=="object"?e[i]||e:void 0}validate(e,i){let n;if(typeof e=="string"){if(n=this.getSchema(e),!n)throw new Error(`no schema with key or ref "${e}"`)}else n=this.compile(e);let a=n(i);return"$async"in n||(this.errors=n.errors),a}compile(e,i){let n=this._addSchema(e,i);return n.validate||this._compileSchemaEnv(n)}compileAsync(e,i){if(typeof this.opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");let{loadSchema:n}=this.opts;return a.call(this,e,i);async function a(c,p){await r.call(this,c.$schema);let d=this._addSchema(c,p);return d.validate||s.call(this,d)}async function r(c){c&&!this.getSchema(c)&&await a.call(this,{$ref:c},!0)}async function s(c){try{return this._compileSchemaEnv(c)}catch(p){if(!(p instanceof yx.default))throw p;return o.call(this,p),await l.call(this,p.missingSchema),s.call(this,c)}}function o({missingSchema:c,missingRef:p}){if(this.refs[c])throw new Error(`AnySchema ${c} is loaded but ${p} cannot be resolved`)}async function l(c){let p=await u.call(this,c);this.refs[c]||await r.call(this,p.$schema),this.refs[c]||this.addSchema(p,c,i)}async function u(c){let p=this._loading[c];if(p)return p;try{return await(this._loading[c]=n(c))}finally{delete this._loading[c]}}}addSchema(e,i,n,a=this.opts.validateSchema){if(Array.isArray(e)){for(let s of e)this.addSchema(s,void 0,n,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 i=(0,go.normalizeId)(i||r),this._checkUnique(i),this.schemas[i]=this._addSchema(e,n,i,a,!0),this}addMetaSchema(e,i,n=this.opts.validateSchema){return this.addSchema(e,i,!0,n),this}validateSchema(e,i){if(typeof e=="boolean")return!0;let n;if(n=e.$schema,n!==void 0&&typeof n!="string")throw new Error("$schema must be a string");if(n=n||this.opts.defaultMeta||this.defaultMeta(),!n)return this.logger.warn("meta-schema not available"),this.errors=null,!0;let a=this.validate(n,e);if(!a&&i){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 i;for(;typeof(i=bx.call(this,e))=="string";)e=i;if(i===void 0){let{schemaId:n}=this.opts,a=new ho.SchemaEnv({schema:{},schemaId:n});if(i=ho.resolveSchema.call(this,a,e),!i)return;this.refs[e]=i}return i.validate||this._compileSchemaEnv(i)}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 i=bx.call(this,e);return typeof i=="object"&&this._cache.delete(i.schema),delete this.schemas[e],delete this.refs[e],this}case"object":{let i=e;this._cache.delete(i);let n=e[this.opts.schemaId];return n&&(n=(0,go.normalizeId)(n),delete this.schemas[n],delete this.refs[n]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(e){for(let i of e)this.addKeyword(i);return this}addKeyword(e,i){let n;if(typeof e=="string")n=e,typeof i=="object"&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),i.keyword=n);else if(typeof e=="object"&&i===void 0){if(i=e,n=i.keyword,Array.isArray(n)&&!n.length)throw new Error("addKeywords: keyword must be string or non-empty array")}else throw new Error("invalid addKeywords parameters");if(JL.call(this,n,i),!i)return(0,uf.eachItem)(n,r=>lf.call(this,r)),this;KL.call(this,i);let a={...i,type:(0,Xu.getJSONTypes)(i.type),schemaType:(0,Xu.getJSONTypes)(i.schemaType)};return(0,uf.eachItem)(n,a.type.length===0?r=>lf.call(this,r,a):r=>a.type.forEach(s=>lf.call(this,r,a,s))),this}getKeyword(e){let i=this.RULES.all[e];return typeof i=="object"?i.definition:!!i}removeKeyword(e){let{RULES:i}=this;delete i.keywords[e],delete i.all[e];for(let n of i.rules){let a=n.rules.findIndex(r=>r.keyword===e);a>=0&&n.rules.splice(a,1)}return this}addFormat(e,i){return typeof i=="string"&&(i=new RegExp(i)),this.formats[e]=i,this}errorsText(e=this.errors,{separator:i=", ",dataVar:n="data"}={}){return!e||e.length===0?"No errors":e.map(a=>`${n}${a.instancePath} ${a.message}`).reduce((a,r)=>a+i+r)}$dataMetaSchema(e,i){let n=this.RULES.all;e=JSON.parse(JSON.stringify(e));for(let a of i){let r=a.split("/").slice(1),s=e;for(let o of r)s=s[o];for(let o in n){let l=n[o];if(typeof l!="object")continue;let{$data:u}=l.definition,c=s[o];u&&c&&(s[o]=jx(c))}}return e}_removeAllSchemas(e,i){for(let n in e){let a=e[n];(!i||i.test(n))&&(typeof a=="string"?delete e[n]:a&&!a.meta&&(this._cache.delete(a.schema),delete e[n]))}}_addSchema(e,i,n,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;n=(0,go.normalizeId)(s||n);let u=go.getSchemaRefs.call(this,e,n);return l=new ho.SchemaEnv({schema:e,schemaId:o,meta:i,baseId:n,localRefs:u}),this._cache.set(l.schema,l),r&&!n.startsWith("#")&&(n&&this._checkUnique(n),this.refs[n]=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):ho.compileSchema.call(this,e),!e.validate)throw new Error("ajv implementation error");return e.validate}_compileMetaSchema(e){let i=this.opts;this.opts=this._metaOpts;try{ho.compileSchema.call(this,e)}finally{this.opts=i}}};mo.ValidationError=qL.default;mo.MissingRefError=yx.default;yi.default=mo;function Ax(t,e,i,n="error"){for(let a in t){let r=a;r in e&&this.logger[n](`${i}: option ${a}. ${t[r]}`)}}function bx(t){return t=(0,go.normalizeId)(t),this.schemas[t]||this.refs[t]}function NL(){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 UL(){for(let t in this.opts.formats){let e=this.opts.formats[t];e&&this.addFormat(t,e)}}function LL(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 i=t[e];i.keyword||(i.keyword=e),this.addKeyword(i)}}function WL(){let t={...this.opts};for(let e of IL)delete t[e];return t}var BL={log(){},warn(){},error(){}};function FL(t){if(t===!1)return BL;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 VL=/^[a-z_$][a-z0-9_$:-]*$/i;function JL(t,e){let{RULES:i}=this;if((0,uf.eachItem)(t,n=>{if(i.keywords[n])throw new Error(`Keyword ${n} is already defined`);if(!VL.test(n))throw new Error(`Keyword ${n} has invalid name`)}),!!e&&e.$data&&!("code"in e||"validate"in e))throw new Error('$data keyword must have "code" or "validate" function')}function lf(t,e,i){var n;let a=e?.post;if(i&&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===i);if(s||(s={type:i,rules:[]},r.rules.push(s)),r.keywords[t]=!0,!e)return;let o={keyword:t,definition:{...e,type:(0,Xu.getJSONTypes)(e.type),schemaType:(0,Xu.getJSONTypes)(e.schemaType)}};e.before?ZL.call(this,s,o,e.before):s.rules.push(o),r.all[t]=o,(n=e.implements)===null||n===void 0||n.forEach(l=>this.addKeyword(l))}function ZL(t,e,i){let n=t.rules.findIndex(a=>a.keyword===i);n>=0?t.rules.splice(n,0,e):(t.rules.push(e),this.logger.warn(`rule ${i} is not defined`))}function KL(t){let{metaSchema:e}=t;e!==void 0&&(t.$data&&this.opts.$data&&(e=jx(e)),t.validateSchema=this.compile(e,!0))}var QL={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function jx(t){return{anyOf:[t,QL]}}});var Ox=w(cf=>{"use strict";Object.defineProperty(cf,"__esModule",{value:!0});var YL={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};cf.default=YL});var Ex=w(Oa=>{"use strict";Object.defineProperty(Oa,"__esModule",{value:!0});Oa.callRef=Oa.getValidate=void 0;var XL=co(),xx=dn(),Li=re(),kr=st(),Tx=Zu(),ec=we(),eW={keyword:"$ref",schemaType:"string",code(t){let{gen:e,schema:i,it:n}=t,{baseId:a,schemaEnv:r,validateName:s,opts:o,self:l}=n,{root:u}=r;if((i==="#"||i==="#/")&&a===u.baseId)return p();let c=Tx.resolveRef.call(l,u,a,i);if(c===void 0)throw new XL.default(n.opts.uriResolver,a,i);if(c instanceof Tx.SchemaEnv)return d(c);return h(c);function p(){if(r===u)return ic(t,s,r,r.$async);let g=e.scopeValue("root",{ref:u});return ic(t,(0,Li._)`${g}.validate`,u,u.$async)}function d(g){let m=Mx(t,g);ic(t,m,g,g.$async)}function h(g){let m=e.scopeValue("schema",o.code.source===!0?{ref:g,code:(0,Li.stringify)(g)}:{ref:g}),f=e.name("valid"),v=t.subschema({schema:g,dataTypes:[],schemaPath:Li.nil,topSchemaRef:m,errSchemaPath:i},f);t.mergeEvaluated(v),t.ok(f)}}};function Mx(t,e){let{gen:i}=t;return e.validate?i.scopeValue("validate",{ref:e.validate}):(0,Li._)`${i.scopeValue("wrapper",{ref:e})}.validate`}Oa.getValidate=Mx;function ic(t,e,i,n){let{gen:a,it:r}=t,{allErrors:s,schemaEnv:o,opts:l}=r,u=l.passContext?kr.default.this:Li.nil;n?c():p();function c(){if(!o.$async)throw new Error("async schema referenced by sync schema");let g=a.let("valid");a.try(()=>{a.code((0,Li._)`await ${(0,xx.callValidateCode)(t,e,u)}`),h(e),s||a.assign(g,!0)},m=>{a.if((0,Li._)`!(${m} instanceof ${r.ValidationError})`,()=>a.throw(m)),d(m),s||a.assign(g,!1)}),t.ok(g)}function p(){t.result((0,xx.callValidateCode)(t,e,u),()=>h(e),()=>d(e))}function d(g){let m=(0,Li._)`${g}.errors`;a.assign(kr.default.vErrors,(0,Li._)`${kr.default.vErrors} === null ? ${m} : ${kr.default.vErrors}.concat(${m})`),a.assign(kr.default.errors,(0,Li._)`${kr.default.vErrors}.length`)}function h(g){var m;if(!r.opts.unevaluated)return;let f=(m=i?.validate)===null||m===void 0?void 0:m.evaluated;if(r.props!==!0)if(f&&!f.dynamicProps)f.props!==void 0&&(r.props=ec.mergeEvaluated.props(a,f.props,r.props));else{let v=a.var("props",(0,Li._)`${g}.evaluated.props`);r.props=ec.mergeEvaluated.props(a,v,r.props,Li.Name)}if(r.items!==!0)if(f&&!f.dynamicItems)f.items!==void 0&&(r.items=ec.mergeEvaluated.items(a,f.items,r.items));else{let v=a.var("items",(0,Li._)`${g}.evaluated.items`);r.items=ec.mergeEvaluated.items(a,v,r.items,Li.Name)}}}Oa.callRef=ic;Oa.default=eW});var kx=w(pf=>{"use strict";Object.defineProperty(pf,"__esModule",{value:!0});var iW=Ox(),nW=Ex(),tW=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",iW.default,nW.default];pf.default=tW});var qx=w(df=>{"use strict";Object.defineProperty(df,"__esModule",{value:!0});var nc=re(),_t=nc.operators,tc={maximum:{okStr:"<=",ok:_t.LTE,fail:_t.GT},minimum:{okStr:">=",ok:_t.GTE,fail:_t.LT},exclusiveMaximum:{okStr:"<",ok:_t.LT,fail:_t.GTE},exclusiveMinimum:{okStr:">",ok:_t.GT,fail:_t.LTE}},aW={message:({keyword:t,schemaCode:e})=>(0,nc.str)`must be ${tc[t].okStr} ${e}`,params:({keyword:t,schemaCode:e})=>(0,nc._)`{comparison: ${tc[t].okStr}, limit: ${e}}`},rW={keyword:Object.keys(tc),type:"number",schemaType:"number",$data:!0,error:aW,code(t){let{keyword:e,data:i,schemaCode:n}=t;t.fail$data((0,nc._)`${i} ${tc[e].fail} ${n} || isNaN(${i})`)}};df.default=rW});var _x=w(hf=>{"use strict";Object.defineProperty(hf,"__esModule",{value:!0});var fo=re(),sW={message:({schemaCode:t})=>(0,fo.str)`must be multiple of ${t}`,params:({schemaCode:t})=>(0,fo._)`{multipleOf: ${t}}`},oW={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:sW,code(t){let{gen:e,data:i,schemaCode:n,it:a}=t,r=a.opts.multipleOfPrecision,s=e.let("res"),o=r?(0,fo._)`Math.abs(Math.round(${s}) - ${s}) > 1e-${r}`:(0,fo._)`${s} !== parseInt(${s})`;t.fail$data((0,fo._)`(${n} === 0 || (${s} = ${i}/${n}, ${o}))`)}};hf.default=oW});var Rx=w(gf=>{"use strict";Object.defineProperty(gf,"__esModule",{value:!0});function Hx(t){let e=t.length,i=0,n=0,a;for(;n=55296&&a<=56319&&n{"use strict";Object.defineProperty(mf,"__esModule",{value:!0});var xa=re(),lW=we(),uW=Rx(),cW={message({keyword:t,schemaCode:e}){let i=t==="maxLength"?"more":"fewer";return(0,xa.str)`must NOT have ${i} than ${e} characters`},params:({schemaCode:t})=>(0,xa._)`{limit: ${t}}`},pW={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:cW,code(t){let{keyword:e,data:i,schemaCode:n,it:a}=t,r=e==="maxLength"?xa.operators.GT:xa.operators.LT,s=a.opts.unicode===!1?(0,xa._)`${i}.length`:(0,xa._)`${(0,lW.useFunc)(t.gen,uW.default)}(${i})`;t.fail$data((0,xa._)`${s} ${r} ${n}`)}};mf.default=pW});var zx=w(ff=>{"use strict";Object.defineProperty(ff,"__esModule",{value:!0});var dW=dn(),hW=we(),qr=re(),gW={message:({schemaCode:t})=>(0,qr.str)`must match pattern "${t}"`,params:({schemaCode:t})=>(0,qr._)`{pattern: ${t}}`},mW={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:gW,code(t){let{gen:e,data:i,$data:n,schema:a,schemaCode:r,it:s}=t,o=s.opts.unicodeRegExp?"u":"";if(n){let{regExp:l}=s.opts.code,u=l.code==="new RegExp"?(0,qr._)`new RegExp`:(0,hW.useFunc)(e,l),c=e.let("valid");e.try(()=>e.assign(c,(0,qr._)`${u}(${r}, ${o}).test(${i})`),()=>e.assign(c,!1)),t.fail$data((0,qr._)`!${c}`)}else{let l=(0,dW.usePattern)(t,a);t.fail$data((0,qr._)`!${l}.test(${i})`)}}};ff.default=mW});var Dx=w(wf=>{"use strict";Object.defineProperty(wf,"__esModule",{value:!0});var wo=re(),fW={message({keyword:t,schemaCode:e}){let i=t==="maxProperties"?"more":"fewer";return(0,wo.str)`must NOT have ${i} than ${e} properties`},params:({schemaCode:t})=>(0,wo._)`{limit: ${t}}`},wW={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:fW,code(t){let{keyword:e,data:i,schemaCode:n}=t,a=e==="maxProperties"?wo.operators.GT:wo.operators.LT;t.fail$data((0,wo._)`Object.keys(${i}).length ${a} ${n}`)}};wf.default=wW});var Gx=w(vf=>{"use strict";Object.defineProperty(vf,"__esModule",{value:!0});var vo=dn(),Co=re(),vW=we(),CW={message:({params:{missingProperty:t}})=>(0,Co.str)`must have required property '${t}'`,params:({params:{missingProperty:t}})=>(0,Co._)`{missingProperty: ${t}}`},AW={keyword:"required",type:"object",schemaType:"array",$data:!0,error:CW,code(t){let{gen:e,schema:i,schemaCode:n,data:a,$data:r,it:s}=t,{opts:o}=s;if(!r&&i.length===0)return;let l=i.length>=o.loopRequired;if(s.allErrors?u():c(),o.strictRequired){let h=t.parentSchema.properties,{definedProperties:g}=t.it;for(let m of i)if(h?.[m]===void 0&&!g.has(m)){let f=s.schemaEnv.baseId+s.errSchemaPath,v=`required property "${m}" is not defined at "${f}" (strictRequired)`;(0,vW.checkStrictMode)(s,v,s.opts.strictRequired)}}function u(){if(l||r)t.block$data(Co.nil,p);else for(let h of i)(0,vo.checkReportMissingProp)(t,h)}function c(){let h=e.let("missing");if(l||r){let g=e.let("valid",!0);t.block$data(g,()=>d(h,g)),t.ok(g)}else e.if((0,vo.checkMissingProp)(t,i,h)),(0,vo.reportMissingProp)(t,h),e.else()}function p(){e.forOf("prop",n,h=>{t.setParams({missingProperty:h}),e.if((0,vo.noPropertyInData)(e,a,h,o.ownProperties),()=>t.error())})}function d(h,g){t.setParams({missingProperty:h}),e.forOf(h,n,()=>{e.assign(g,(0,vo.propertyInData)(e,a,h,o.ownProperties)),e.if((0,Co.not)(g),()=>{t.error(),e.break()})},Co.nil)}}};vf.default=AW});var $x=w(Cf=>{"use strict";Object.defineProperty(Cf,"__esModule",{value:!0});var Ao=re(),bW={message({keyword:t,schemaCode:e}){let i=t==="maxItems"?"more":"fewer";return(0,Ao.str)`must NOT have ${i} than ${e} items`},params:({schemaCode:t})=>(0,Ao._)`{limit: ${t}}`},yW={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:bW,code(t){let{keyword:e,data:i,schemaCode:n}=t,a=e==="maxItems"?Ao.operators.GT:Ao.operators.LT;t.fail$data((0,Ao._)`${i}.length ${a} ${n}`)}};Cf.default=yW});var ac=w(Af=>{"use strict";Object.defineProperty(Af,"__esModule",{value:!0});var Nx=Um();Nx.code='require("ajv/dist/runtime/equal").default';Af.default=Nx});var Ux=w(yf=>{"use strict";Object.defineProperty(yf,"__esModule",{value:!0});var bf=ro(),Pi=re(),PW=we(),jW=ac(),SW={message:({params:{i:t,j:e}})=>(0,Pi.str)`must NOT have duplicate items (items ## ${e} and ${t} are identical)`,params:({params:{i:t,j:e}})=>(0,Pi._)`{i: ${t}, j: ${e}}`},OW={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:SW,code(t){let{gen:e,data:i,$data:n,schema:a,parentSchema:r,schemaCode:s,it:o}=t;if(!n&&!a)return;let l=e.let("valid"),u=r.items?(0,bf.getSchemaTypes)(r.items):[];t.block$data(l,c,(0,Pi._)`${s} === false`),t.ok(l);function c(){let g=e.let("i",(0,Pi._)`${i}.length`),m=e.let("j");t.setParams({i:g,j:m}),e.assign(l,!0),e.if((0,Pi._)`${g} > 1`,()=>(p()?d:h)(g,m))}function p(){return u.length>0&&!u.some(g=>g==="object"||g==="array")}function d(g,m){let f=e.name("item"),v=(0,bf.checkDataTypes)(u,f,o.opts.strictNumbers,bf.DataType.Wrong),y=e.const("indices",(0,Pi._)`{}`);e.for((0,Pi._)`;${g}--;`,()=>{e.let(f,(0,Pi._)`${i}[${g}]`),e.if(v,(0,Pi._)`continue`),u.length>1&&e.if((0,Pi._)`typeof ${f} == "string"`,(0,Pi._)`${f} += "_"`),e.if((0,Pi._)`typeof ${y}[${f}] == "number"`,()=>{e.assign(m,(0,Pi._)`${y}[${f}]`),t.error(),e.assign(l,!1).break()}).code((0,Pi._)`${y}[${f}] = ${g}`)})}function h(g,m){let f=(0,PW.useFunc)(e,jW.default),v=e.name("outer");e.label(v).for((0,Pi._)`;${g}--;`,()=>e.for((0,Pi._)`${m} = ${g}; ${m}--;`,()=>e.if((0,Pi._)`${f}(${i}[${g}], ${i}[${m}])`,()=>{t.error(),e.assign(l,!1).break(v)})))}}};yf.default=OW});var Lx=w(jf=>{"use strict";Object.defineProperty(jf,"__esModule",{value:!0});var Pf=re(),xW=we(),TW=ac(),MW={message:"must be equal to constant",params:({schemaCode:t})=>(0,Pf._)`{allowedValue: ${t}}`},EW={keyword:"const",$data:!0,error:MW,code(t){let{gen:e,data:i,$data:n,schemaCode:a,schema:r}=t;n||r&&typeof r=="object"?t.fail$data((0,Pf._)`!${(0,xW.useFunc)(e,TW.default)}(${i}, ${a})`):t.fail((0,Pf._)`${r} !== ${i}`)}};jf.default=EW});var Wx=w(Sf=>{"use strict";Object.defineProperty(Sf,"__esModule",{value:!0});var bo=re(),kW=we(),qW=ac(),_W={message:"must be equal to one of the allowed values",params:({schemaCode:t})=>(0,bo._)`{allowedValues: ${t}}`},HW={keyword:"enum",schemaType:"array",$data:!0,error:_W,code(t){let{gen:e,data:i,$data:n,schema:a,schemaCode:r,it:s}=t;if(!n&&a.length===0)throw new Error("enum must have non-empty array");let o=a.length>=s.opts.loopEnum,l,u=()=>l??(l=(0,kW.useFunc)(e,qW.default)),c;if(o||n)c=e.let("valid"),t.block$data(c,p);else{if(!Array.isArray(a))throw new Error("ajv implementation error");let h=e.const("vSchema",r);c=(0,bo.or)(...a.map((g,m)=>d(h,m)))}t.pass(c);function p(){e.assign(c,!1),e.forOf("v",r,h=>e.if((0,bo._)`${u()}(${i}, ${h})`,()=>e.assign(c,!0).break()))}function d(h,g){let m=a[g];return typeof m=="object"&&m!==null?(0,bo._)`${u()}(${i}, ${h}[${g}])`:(0,bo._)`${i} === ${m}`}}};Sf.default=HW});var Bx=w(Of=>{"use strict";Object.defineProperty(Of,"__esModule",{value:!0});var RW=qx(),IW=_x(),zW=Ix(),DW=zx(),GW=Dx(),$W=Gx(),NW=$x(),UW=Ux(),LW=Lx(),WW=Wx(),BW=[RW.default,IW.default,zW.default,DW.default,GW.default,$W.default,NW.default,UW.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},LW.default,WW.default];Of.default=BW});var Tf=w(yo=>{"use strict";Object.defineProperty(yo,"__esModule",{value:!0});yo.validateAdditionalItems=void 0;var Ta=re(),xf=we(),FW={message:({params:{len:t}})=>(0,Ta.str)`must NOT have more than ${t} items`,params:({params:{len:t}})=>(0,Ta._)`{limit: ${t}}`},VW={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:FW,code(t){let{parentSchema:e,it:i}=t,{items:n}=e;if(!Array.isArray(n)){(0,xf.checkStrictMode)(i,'"additionalItems" is ignored when "items" is not an array of schemas');return}Fx(t,n)}};function Fx(t,e){let{gen:i,schema:n,data:a,keyword:r,it:s}=t;s.items=!0;let o=i.const("len",(0,Ta._)`${a}.length`);if(n===!1)t.setParams({len:e.length}),t.pass((0,Ta._)`${o} <= ${e.length}`);else if(typeof n=="object"&&!(0,xf.alwaysValidSchema)(s,n)){let u=i.var("valid",(0,Ta._)`${o} <= ${e.length}`);i.if((0,Ta.not)(u),()=>l(u)),t.ok(u)}function l(u){i.forRange("i",e.length,o,c=>{t.subschema({keyword:r,dataProp:c,dataPropType:xf.Type.Num},u),s.allErrors||i.if((0,Ta.not)(u),()=>i.break())})}}yo.validateAdditionalItems=Fx;yo.default=VW});var Mf=w(Po=>{"use strict";Object.defineProperty(Po,"__esModule",{value:!0});Po.validateTuple=void 0;var Vx=re(),rc=we(),JW=dn(),ZW={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(t){let{schema:e,it:i}=t;if(Array.isArray(e))return Jx(t,"additionalItems",e);i.items=!0,!(0,rc.alwaysValidSchema)(i,e)&&t.ok((0,JW.validateArray)(t))}};function Jx(t,e,i=t.schema){let{gen:n,parentSchema:a,data:r,keyword:s,it:o}=t;c(a),o.opts.unevaluated&&i.length&&o.items!==!0&&(o.items=rc.mergeEvaluated.items(n,i.length,o.items));let l=n.name("valid"),u=n.const("len",(0,Vx._)`${r}.length`);i.forEach((p,d)=>{(0,rc.alwaysValidSchema)(o,p)||(n.if((0,Vx._)`${u} > ${d}`,()=>t.subschema({keyword:s,schemaProp:d,dataProp:d},l)),t.ok(l))});function c(p){let{opts:d,errSchemaPath:h}=o,g=i.length,m=g===p.minItems&&(g===p.maxItems||p[e]===!1);if(d.strictTuples&&!m){let f=`"${s}" is ${g}-tuple, but minItems or maxItems/${e} are not specified or different at path "${h}"`;(0,rc.checkStrictMode)(o,f,d.strictTuples)}}}Po.validateTuple=Jx;Po.default=ZW});var Zx=w(Ef=>{"use strict";Object.defineProperty(Ef,"__esModule",{value:!0});var KW=Mf(),QW={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:t=>(0,KW.validateTuple)(t,"items")};Ef.default=QW});var Qx=w(kf=>{"use strict";Object.defineProperty(kf,"__esModule",{value:!0});var Kx=re(),YW=we(),XW=dn(),eB=Tf(),iB={message:({params:{len:t}})=>(0,Kx.str)`must NOT have more than ${t} items`,params:({params:{len:t}})=>(0,Kx._)`{limit: ${t}}`},nB={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:iB,code(t){let{schema:e,parentSchema:i,it:n}=t,{prefixItems:a}=i;n.items=!0,!(0,YW.alwaysValidSchema)(n,e)&&(a?(0,eB.validateAdditionalItems)(t,a):t.ok((0,XW.validateArray)(t)))}};kf.default=nB});var Yx=w(qf=>{"use strict";Object.defineProperty(qf,"__esModule",{value:!0});var gn=re(),sc=we(),tB={message:({params:{min:t,max:e}})=>e===void 0?(0,gn.str)`must contain at least ${t} valid item(s)`:(0,gn.str)`must contain at least ${t} and no more than ${e} valid item(s)`,params:({params:{min:t,max:e}})=>e===void 0?(0,gn._)`{minContains: ${t}}`:(0,gn._)`{minContains: ${t}, maxContains: ${e}}`},aB={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:tB,code(t){let{gen:e,schema:i,parentSchema:n,data:a,it:r}=t,s,o,{minContains:l,maxContains:u}=n;r.opts.next?(s=l===void 0?1:l,o=u):s=1;let c=e.const("len",(0,gn._)`${a}.length`);if(t.setParams({min:s,max:o}),o===void 0&&s===0){(0,sc.checkStrictMode)(r,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(o!==void 0&&s>o){(0,sc.checkStrictMode)(r,'"minContains" > "maxContains" is always invalid'),t.fail();return}if((0,sc.alwaysValidSchema)(r,i)){let m=(0,gn._)`${c} >= ${s}`;o!==void 0&&(m=(0,gn._)`${m} && ${c} <= ${o}`),t.pass(m);return}r.items=!0;let p=e.name("valid");o===void 0&&s===1?h(p,()=>e.if(p,()=>e.break())):s===0?(e.let(p,!0),o!==void 0&&e.if((0,gn._)`${a}.length > 0`,d)):(e.let(p,!1),d()),t.result(p,()=>t.reset());function d(){let m=e.name("_valid"),f=e.let("count",0);h(m,()=>e.if(m,()=>g(f)))}function h(m,f){e.forRange("i",0,c,v=>{t.subschema({keyword:"contains",dataProp:v,dataPropType:sc.Type.Num,compositeRule:!0},m),f()})}function g(m){e.code((0,gn._)`${m}++`),o===void 0?e.if((0,gn._)`${m} >= ${s}`,()=>e.assign(p,!0).break()):(e.if((0,gn._)`${m} > ${o}`,()=>e.assign(p,!1).break()),s===1?e.assign(p,!0):e.if((0,gn._)`${m} >= ${s}`,()=>e.assign(p,!0)))}}};qf.default=aB});var iT=w(Dn=>{"use strict";Object.defineProperty(Dn,"__esModule",{value:!0});Dn.validateSchemaDeps=Dn.validatePropertyDeps=Dn.error=void 0;var _f=re(),rB=we(),jo=dn();Dn.error={message:({params:{property:t,depsCount:e,deps:i}})=>{let n=e===1?"property":"properties";return(0,_f.str)`must have ${n} ${i} when property ${t} is present`},params:({params:{property:t,depsCount:e,deps:i,missingProperty:n}})=>(0,_f._)`{property: ${t}, missingProperty: ${n}, depsCount: ${e}, - deps: ${i}}`};var sB={keyword:"dependencies",type:"object",schemaType:"object",error:Dn.error,code(t){let[e,i]=oB(t);Xx(t,e),eT(t,i)}};function oB({schema:t}){let e={},i={};for(let n in t){if(n==="__proto__")continue;let a=Array.isArray(t[n])?e:i;a[n]=t[n]}return[e,i]}function Xx(t,e=t.schema){let{gen:i,data:n,it:a}=t;if(Object.keys(e).length===0)return;let r=i.let("missing");for(let s in e){let o=e[s];if(o.length===0)continue;let l=(0,jo.propertyInData)(i,n,s,a.opts.ownProperties);t.setParams({property:s,depsCount:o.length,deps:o.join(", ")}),a.allErrors?i.if(l,()=>{for(let u of o)(0,jo.checkReportMissingProp)(t,u)}):(i.if((0,_f._)`${l} && (${(0,jo.checkMissingProp)(t,o,r)})`),(0,jo.reportMissingProp)(t,r),i.else())}}Dn.validatePropertyDeps=Xx;function eT(t,e=t.schema){let{gen:i,data:n,keyword:a,it:r}=t,s=i.name("valid");for(let o in e)(0,rB.alwaysValidSchema)(r,e[o])||(i.if((0,jo.propertyInData)(i,n,o,r.opts.ownProperties),()=>{let l=t.subschema({keyword:a,schemaProp:o},s);t.mergeValidEvaluated(l,s)},()=>i.var(s,!0)),t.ok(s))}Dn.validateSchemaDeps=eT;Dn.default=sB});var tT=w(Hf=>{"use strict";Object.defineProperty(Hf,"__esModule",{value:!0});var nT=re(),lB=we(),uB={message:"property name must be valid",params:({params:t})=>(0,nT._)`{propertyName: ${t.propertyName}}`},cB={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:uB,code(t){let{gen:e,schema:i,data:n,it:a}=t;if((0,lB.alwaysValidSchema)(a,i))return;let r=e.name("valid");e.forIn("key",n,s=>{t.setParams({propertyName:s}),t.subschema({keyword:"propertyNames",data:s,dataTypes:["string"],propertyName:s,compositeRule:!0},r),e.if((0,nT.not)(r),()=>{t.error(!0),a.allErrors||e.break()})}),t.ok(r)}};Hf.default=cB});var If=w(Rf=>{"use strict";Object.defineProperty(Rf,"__esModule",{value:!0});var oc=pn(),Sn=re(),pB=st(),lc=we(),dB={message:"must NOT have additional properties",params:({params:t})=>(0,Sn._)`{additionalProperty: ${t.additionalProperty}}`},hB={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:dB,code(t){let{gen:e,schema:i,parentSchema:n,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,lc.alwaysValidSchema)(s,i))return;let u=(0,oc.allSchemaProperties)(n.properties),c=(0,oc.allSchemaProperties)(n.patternProperties);p(),t.ok((0,Sn._)`${r} === ${pB.default.errors}`);function p(){e.forIn("key",a,f=>{!u.length&&!c.length?g(f):e.if(d(f),()=>g(f))})}function d(f){let v;if(u.length>8){let y=(0,lc.schemaRefOrVal)(s,n.properties,"properties");v=(0,oc.isOwnProperty)(e,y,f)}else u.length?v=(0,Sn.or)(...u.map(y=>(0,Sn._)`${f} === ${y}`)):v=Sn.nil;return c.length&&(v=(0,Sn.or)(v,...c.map(y=>(0,Sn._)`${(0,oc.usePattern)(t,y)}.test(${f})`))),(0,Sn.not)(v)}function h(f){e.code((0,Sn._)`delete ${a}[${f}]`)}function g(f){if(l.removeAdditional==="all"||l.removeAdditional&&i===!1){h(f);return}if(i===!1){t.setParams({additionalProperty:f}),t.error(),o||e.break();return}if(typeof i=="object"&&!(0,lc.alwaysValidSchema)(s,i)){let v=e.name("valid");l.removeAdditional==="failing"?(m(f,v,!1),e.if((0,Sn.not)(v),()=>{t.reset(),h(f)})):(m(f,v),o||e.if((0,Sn.not)(v),()=>e.break()))}}function m(f,v,y){let A={keyword:"additionalProperties",dataProp:f,dataPropType:lc.Type.Str};y===!1&&Object.assign(A,{compositeRule:!0,createErrors:!1,allErrors:!1}),t.subschema(A,v)}}};Rf.default=hB});var sT=w(Df=>{"use strict";Object.defineProperty(Df,"__esModule",{value:!0});var gB=uo(),aT=pn(),zf=we(),rT=If(),mB={keyword:"properties",type:"object",schemaType:"object",code(t){let{gen:e,schema:i,parentSchema:n,data:a,it:r}=t;r.opts.removeAdditional==="all"&&n.additionalProperties===void 0&&rT.default.code(new gB.KeywordCxt(r,rT.default,"additionalProperties"));let s=(0,aT.allSchemaProperties)(i);for(let p of s)r.definedProperties.add(p);r.opts.unevaluated&&s.length&&r.props!==!0&&(r.props=zf.mergeEvaluated.props(e,(0,zf.toHash)(s),r.props));let o=s.filter(p=>!(0,zf.alwaysValidSchema)(r,i[p]));if(o.length===0)return;let l=e.name("valid");for(let p of o)u(p)?c(p):(e.if((0,aT.propertyInData)(e,a,p,r.opts.ownProperties)),c(p),r.allErrors||e.else().var(l,!0),e.endIf()),t.it.definedProperties.add(p),t.ok(l);function u(p){return r.opts.useDefaults&&!r.compositeRule&&i[p].default!==void 0}function c(p){t.subschema({keyword:"properties",schemaProp:p,dataProp:p},l)}}};Df.default=mB});var cT=w(Gf=>{"use strict";Object.defineProperty(Gf,"__esModule",{value:!0});var oT=pn(),uc=re(),lT=we(),uT=we(),fB={keyword:"patternProperties",type:"object",schemaType:"object",code(t){let{gen:e,schema:i,data:n,parentSchema:a,it:r}=t,{opts:s}=r,o=(0,oT.allSchemaProperties)(i),l=o.filter(m=>(0,lT.alwaysValidSchema)(r,i[m]));if(o.length===0||l.length===o.length&&(!r.opts.unevaluated||r.props===!0))return;let u=s.strictSchema&&!s.allowMatchingProperties&&a.properties,c=e.name("valid");r.props!==!0&&!(r.props instanceof uc.Name)&&(r.props=(0,uT.evaluatedPropsToName)(e,r.props));let{props:p}=r;d();function d(){for(let m of o)u&&h(m),r.allErrors?g(m):(e.var(c,!0),g(m),e.if(c))}function h(m){for(let f in u)new RegExp(m).test(f)&&(0,lT.checkStrictMode)(r,`property ${f} matches pattern ${m} (use allowMatchingProperties)`)}function g(m){e.forIn("key",n,f=>{e.if((0,uc._)`${(0,oT.usePattern)(t,m)}.test(${f})`,()=>{let v=l.includes(m);v||t.subschema({keyword:"patternProperties",schemaProp:m,dataProp:f,dataPropType:uT.Type.Str},c),r.opts.unevaluated&&p!==!0?e.assign((0,uc._)`${p}[${f}]`,!0):!v&&!r.allErrors&&e.if((0,uc.not)(c),()=>e.break())})})}}};Gf.default=fB});var pT=w($f=>{"use strict";Object.defineProperty($f,"__esModule",{value:!0});var wB=we(),vB={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(t){let{gen:e,schema:i,it:n}=t;if((0,wB.alwaysValidSchema)(n,i)){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"}};$f.default=vB});var dT=w(Nf=>{"use strict";Object.defineProperty(Nf,"__esModule",{value:!0});var CB=pn(),AB={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:CB.validateUnion,error:{message:"must match a schema in anyOf"}};Nf.default=AB});var hT=w(Uf=>{"use strict";Object.defineProperty(Uf,"__esModule",{value:!0});var cc=re(),bB=we(),yB={message:"must match exactly one schema in oneOf",params:({params:t})=>(0,cc._)`{passingSchemas: ${t.passing}}`},PB={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:yB,code(t){let{gen:e,schema:i,parentSchema:n,it:a}=t;if(!Array.isArray(i))throw new Error("ajv implementation error");if(a.opts.discriminator&&n.discriminator)return;let r=i,s=e.let("valid",!1),o=e.let("passing",null),l=e.name("_valid");t.setParams({passing:o}),e.block(u),t.result(s,()=>t.reset(),()=>t.error(!0));function u(){r.forEach((c,p)=>{let d;(0,bB.alwaysValidSchema)(a,c)?e.var(l,!0):d=t.subschema({keyword:"oneOf",schemaProp:p,compositeRule:!0},l),p>0&&e.if((0,cc._)`${l} && ${s}`).assign(s,!1).assign(o,(0,cc._)`[${o}, ${p}]`).else(),e.if(l,()=>{e.assign(s,!0),e.assign(o,p),d&&t.mergeEvaluated(d,cc.Name)})})}}};Uf.default=PB});var gT=w(Lf=>{"use strict";Object.defineProperty(Lf,"__esModule",{value:!0});var jB=we(),SB={keyword:"allOf",schemaType:"array",code(t){let{gen:e,schema:i,it:n}=t;if(!Array.isArray(i))throw new Error("ajv implementation error");let a=e.name("valid");i.forEach((r,s)=>{if((0,jB.alwaysValidSchema)(n,r))return;let o=t.subschema({keyword:"allOf",schemaProp:s},a);t.ok(a),t.mergeEvaluated(o)})}};Lf.default=SB});var wT=w(Wf=>{"use strict";Object.defineProperty(Wf,"__esModule",{value:!0});var pc=re(),fT=we(),OB={message:({params:t})=>(0,pc.str)`must match "${t.ifClause}" schema`,params:({params:t})=>(0,pc._)`{failingKeyword: ${t.ifClause}}`},xB={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:OB,code(t){let{gen:e,parentSchema:i,it:n}=t;i.then===void 0&&i.else===void 0&&(0,fT.checkStrictMode)(n,'"if" without "then" and "else" is ignored');let a=mT(n,"then"),r=mT(n,"else");if(!a&&!r)return;let s=e.let("valid",!0),o=e.name("_valid");if(l(),t.reset(),a&&r){let c=e.let("ifClause");t.setParams({ifClause:c}),e.if(o,u("then",c),u("else",c))}else a?e.if(o,u("then")):e.if((0,pc.not)(o),u("else"));t.pass(s,()=>t.error(!0));function l(){let c=t.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},o);t.mergeEvaluated(c)}function u(c,p){return()=>{let d=t.subschema({keyword:c},o);e.assign(s,o),t.mergeValidEvaluated(d,s),p?e.assign(p,(0,pc._)`${c}`):t.setParams({ifClause:c})}}}};function mT(t,e){let i=t.schema[e];return i!==void 0&&!(0,fT.alwaysValidSchema)(t,i)}Wf.default=xB});var vT=w(Bf=>{"use strict";Object.defineProperty(Bf,"__esModule",{value:!0});var TB=we(),MB={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:t,parentSchema:e,it:i}){e.if===void 0&&(0,TB.checkStrictMode)(i,`"${t}" without "if" is ignored`)}};Bf.default=MB});var CT=w(Ff=>{"use strict";Object.defineProperty(Ff,"__esModule",{value:!0});var EB=Tf(),kB=Zx(),qB=Mf(),_B=Qx(),HB=Yx(),RB=iT(),IB=tT(),zB=If(),DB=sT(),GB=cT(),$B=pT(),NB=dT(),UB=hT(),LB=gT(),WB=wT(),BB=vT();function FB(t=!1){let e=[$B.default,NB.default,UB.default,LB.default,WB.default,BB.default,IB.default,zB.default,RB.default,DB.default,GB.default];return t?e.push(kB.default,_B.default):e.push(EB.default,qB.default),e.push(HB.default),e}Ff.default=FB});var AT=w(Vf=>{"use strict";Object.defineProperty(Vf,"__esModule",{value:!0});var ii=re(),VB={message:({schemaCode:t})=>(0,ii.str)`must match format "${t}"`,params:({schemaCode:t})=>(0,ii._)`{format: ${t}}`},JB={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:VB,code(t,e){let{gen:i,data:n,$data:a,schema:r,schemaCode:s,it:o}=t,{opts:l,errSchemaPath:u,schemaEnv:c,self:p}=o;if(!l.validateFormats)return;a?d():h();function d(){let g=i.scopeValue("formats",{ref:p.formats,code:l.code.formats}),m=i.const("fDef",(0,ii._)`${g}[${s}]`),f=i.let("fType"),v=i.let("format");i.if((0,ii._)`typeof ${m} == "object" && !(${m} instanceof RegExp)`,()=>i.assign(f,(0,ii._)`${m}.type || "string"`).assign(v,(0,ii._)`${m}.validate`),()=>i.assign(f,(0,ii._)`"string"`).assign(v,m)),t.fail$data((0,ii.or)(y(),A()));function y(){return l.strictSchema===!1?ii.nil:(0,ii._)`${s} && !${v}`}function A(){let b=c.$async?(0,ii._)`(${m}.async ? await ${v}(${n}) : ${v}(${n}))`:(0,ii._)`${v}(${n})`,O=(0,ii._)`(typeof ${v} == "function" ? ${b} : ${v}.test(${n}))`;return(0,ii._)`${v} && ${v} !== true && ${f} === ${e} && !${O}`}}function h(){let g=p.formats[r];if(!g){y();return}if(g===!0)return;let[m,f,v]=A(g);m===e&&t.pass(b());function y(){if(l.strictSchema===!1){p.logger.warn(O());return}throw new Error(O());function O(){return`unknown format "${r}" ignored in schema at path "${u}"`}}function A(O){let $=O instanceof RegExp?(0,ii.regexpCode)(O):l.code.formats?(0,ii._)`${l.code.formats}${(0,ii.getProperty)(r)}`:void 0,N=i.scopeValue("formats",{key:r,ref:O,code:$});return typeof O=="object"&&!(O instanceof RegExp)?[O.type||"string",O.validate,(0,ii._)`${N}.validate`]:["string",O,N]}function b(){if(typeof g=="object"&&!(g instanceof RegExp)&&g.async){if(!c.$async)throw new Error("async format in sync schema");return(0,ii._)`await ${v}(${n})`}return typeof f=="function"?(0,ii._)`${v}(${n})`:(0,ii._)`${v}.test(${n})`}}}};Vf.default=JB});var bT=w(Jf=>{"use strict";Object.defineProperty(Jf,"__esModule",{value:!0});var ZB=AT(),KB=[ZB.default];Jf.default=KB});var yT=w(qr=>{"use strict";Object.defineProperty(qr,"__esModule",{value:!0});qr.contentVocabulary=qr.metadataVocabulary=void 0;qr.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"];qr.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]});var jT=w(Zf=>{"use strict";Object.defineProperty(Zf,"__esModule",{value:!0});var QB=kx(),YB=Bx(),XB=CT(),eF=bT(),PT=yT(),iF=[QB.default,YB.default,(0,XB.default)(),eF.default,PT.metadataVocabulary,PT.contentVocabulary];Zf.default=iF});var OT=w(dc=>{"use strict";Object.defineProperty(dc,"__esModule",{value:!0});dc.DiscrError=void 0;var ST;(function(t){t.Tag="tag",t.Mapping="mapping"})(ST||(dc.DiscrError=ST={}))});var TT=w(Qf=>{"use strict";Object.defineProperty(Qf,"__esModule",{value:!0});var _r=re(),Kf=OT(),xT=Zu(),nF=co(),tF=we(),aF={message:({params:{discrError:t,tagName:e}})=>t===Kf.DiscrError.Tag?`tag "${e}" must be string`:`value of tag "${e}" must be in oneOf`,params:({params:{discrError:t,tag:e,tagName:i}})=>(0,_r._)`{error: ${t}, tag: ${i}, tagValue: ${e}}`},rF={keyword:"discriminator",type:"object",schemaType:"object",error:aF,code(t){let{gen:e,data:i,schema:n,parentSchema:a,it:r}=t,{oneOf:s}=a;if(!r.opts.discriminator)throw new Error("discriminator: requires discriminator option");let o=n.propertyName;if(typeof o!="string")throw new Error("discriminator: requires propertyName");if(n.mapping)throw new Error("discriminator: mapping is not supported");if(!s)throw new Error("discriminator: requires oneOf keyword");let l=e.let("valid",!1),u=e.const("tag",(0,_r._)`${i}${(0,_r.getProperty)(o)}`);e.if((0,_r._)`typeof ${u} == "string"`,()=>c(),()=>t.error(!1,{discrError:Kf.DiscrError.Tag,tag:u,tagName:o})),t.ok(l);function c(){let h=d();e.if(!1);for(let g in h)e.elseIf((0,_r._)`${u} === ${g}`),e.assign(l,p(h[g]));e.else(),t.error(!1,{discrError:Kf.DiscrError.Mapping,tag:u,tagName:o}),e.endIf()}function p(h){let g=e.name("valid"),m=t.subschema({keyword:"oneOf",schemaProp:h},g);return t.mergeEvaluated(m,_r.Name),g}function d(){var h;let g={},m=v(a),f=!0;for(let b=0;b{sF.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 Xf=w((Ue,Yf)=>{"use strict";Object.defineProperty(Ue,"__esModule",{value:!0});Ue.MissingRefError=Ue.ValidationError=Ue.CodeGen=Ue.Name=Ue.nil=Ue.stringify=Ue.str=Ue._=Ue.KeywordCxt=Ue.Ajv=void 0;var oF=Sx(),lF=jT(),uF=TT(),ET=MT(),cF=["/properties"],hc="http://json-schema.org/draft-07/schema",Hr=class extends oF.default{_addVocabularies(){super._addVocabularies(),lF.default.forEach(e=>this.addVocabulary(e)),this.opts.discriminator&&this.addKeyword(uF.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;let e=this.opts.$data?this.$dataMetaSchema(ET,cF):ET;this.addMetaSchema(e,hc,!1),this.refs["http://json-schema.org/schema"]=hc}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(hc)?hc:void 0)}};Ue.Ajv=Hr;Yf.exports=Ue=Hr;Yf.exports.Ajv=Hr;Object.defineProperty(Ue,"__esModule",{value:!0});Ue.default=Hr;var pF=uo();Object.defineProperty(Ue,"KeywordCxt",{enumerable:!0,get:function(){return pF.KeywordCxt}});var Rr=re();Object.defineProperty(Ue,"_",{enumerable:!0,get:function(){return Rr._}});Object.defineProperty(Ue,"str",{enumerable:!0,get:function(){return Rr.str}});Object.defineProperty(Ue,"stringify",{enumerable:!0,get:function(){return Rr.stringify}});Object.defineProperty(Ue,"nil",{enumerable:!0,get:function(){return Rr.nil}});Object.defineProperty(Ue,"Name",{enumerable:!0,get:function(){return Rr.Name}});Object.defineProperty(Ue,"CodeGen",{enumerable:!0,get:function(){return Rr.CodeGen}});var dF=Vu();Object.defineProperty(Ue,"ValidationError",{enumerable:!0,get:function(){return dF.default}});var hF=co();Object.defineProperty(Ue,"MissingRefError",{enumerable:!0,get:function(){return hF.default}})});var DT=w($n=>{"use strict";Object.defineProperty($n,"__esModule",{value:!0});$n.formatNames=$n.fastFormats=$n.fullFormats=void 0;function Gn(t,e){return{validate:t,compare:e}}$n.fullFormats={date:Gn(HT,tw),time:Gn(iw(!0),aw),"date-time":Gn(kT(!0),IT),"iso-time":Gn(iw(),RT),"iso-date-time":Gn(kT(),zT),duration:/^P(?!$)((\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?|(\d+W)?)$/,uri:CF,"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:OF,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:AF,int32:{type:"number",validate:PF},int64:{type:"number",validate:jF},float:{type:"number",validate:_T},double:{type:"number",validate:_T},password:!0,binary:!0};$n.fastFormats={...$n.fullFormats,date:Gn(/^\d\d\d\d-[0-1]\d-[0-3]\d$/,tw),time:Gn(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,aw),"date-time":Gn(/^\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,IT),"iso-time":Gn(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,RT),"iso-date-time":Gn(/^\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,zT),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};$n.formatNames=Object.keys($n.fullFormats);function gF(t){return t%4===0&&(t%100!==0||t%400===0)}var mF=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,fF=[0,31,28,31,30,31,30,31,31,30,31,30,31];function HT(t){let e=mF.exec(t);if(!e)return!1;let i=+e[1],n=+e[2],a=+e[3];return n>=1&&n<=12&&a>=1&&a<=(n===2&&gF(i)?29:fF[n])}function tw(t,e){if(t&&e)return t>e?1:t23||c>59||t&&!o)return!1;if(a<=23&&r<=59&&s<60)return!0;let p=r-c*l,d=a-u*l-(p<0?1:0);return(d===23||d===-1)&&(p===59||p===-1)&&s<61}}function aw(t,e){if(!(t&&e))return;let i=new Date("2020-01-01T"+t).valueOf(),n=new Date("2020-01-01T"+e).valueOf();if(i&&n)return i-n}function RT(t,e){if(!(t&&e))return;let i=ew.exec(t),n=ew.exec(e);if(i&&n)return t=i[1]+i[2]+i[3],e=n[1]+n[2]+n[3],t>e?1:t=bF}function jF(t){return Number.isInteger(t)}function _T(){return!0}var SF=/[^\\]\\Z/;function OF(t){if(SF.test(t))return!1;try{return new RegExp(t),!0}catch{return!1}}});var GT=w(Ir=>{"use strict";Object.defineProperty(Ir,"__esModule",{value:!0});Ir.formatLimitDefinition=void 0;var xF=Xf(),On=re(),Ht=On.operators,gc={formatMaximum:{okStr:"<=",ok:Ht.LTE,fail:Ht.GT},formatMinimum:{okStr:">=",ok:Ht.GTE,fail:Ht.LT},formatExclusiveMaximum:{okStr:"<",ok:Ht.LT,fail:Ht.GTE},formatExclusiveMinimum:{okStr:">",ok:Ht.GT,fail:Ht.LTE}},TF={message:({keyword:t,schemaCode:e})=>(0,On.str)`should be ${gc[t].okStr} ${e}`,params:({keyword:t,schemaCode:e})=>(0,On._)`{comparison: ${gc[t].okStr}, limit: ${e}}`};Ir.formatLimitDefinition={keyword:Object.keys(gc),type:"string",schemaType:"string",$data:!0,error:TF,code(t){let{gen:e,data:i,schemaCode:n,keyword:a,it:r}=t,{opts:s,self:o}=r;if(!s.validateFormats)return;let l=new xF.KeywordCxt(r,o.RULES.all.format.definition,"format");l.$data?u():c();function u(){let d=e.scopeValue("formats",{ref:o.formats,code:s.code.formats}),h=e.const("fmt",(0,On._)`${d}[${l.schemaCode}]`);t.fail$data((0,On.or)((0,On._)`typeof ${h} != "object"`,(0,On._)`${h} instanceof RegExp`,(0,On._)`typeof ${h}.compare != "function"`,p(h)))}function c(){let d=l.schema,h=o.formats[d];if(!h||h===!0)return;if(typeof h!="object"||h instanceof RegExp||typeof h.compare!="function")throw new Error(`"${a}": format "${d}" does not define "compare" function`);let g=e.scopeValue("formats",{key:d,ref:h,code:s.code.formats?(0,On._)`${s.code.formats}${(0,On.getProperty)(d)}`:void 0});t.fail$data(p(g))}function p(d){return(0,On._)`${d}.compare(${i}, ${n}) ${gc[a].fail} 0`}},dependencies:["format"]};var MF=t=>(t.addKeyword(Ir.formatLimitDefinition),t);Ir.default=MF});var LT=w((So,UT)=>{"use strict";Object.defineProperty(So,"__esModule",{value:!0});var zr=DT(),EF=GT(),rw=re(),$T=new rw.Name("fullFormats"),kF=new rw.Name("fastFormats"),sw=(t,e={keywords:!0})=>{if(Array.isArray(e))return NT(t,e,zr.fullFormats,$T),t;let[i,n]=e.mode==="fast"?[zr.fastFormats,kF]:[zr.fullFormats,$T],a=e.formats||zr.formatNames;return NT(t,a,i,n),e.keywords&&(0,EF.default)(t),t};sw.get=(t,e="full")=>{let n=(e==="fast"?zr.fastFormats:zr.fullFormats)[t];if(!n)throw new Error(`Unknown format "${t}"`);return n};function NT(t,e,i,n){var a,r;(a=(r=t.opts.code).formats)!==null&&a!==void 0||(r.formats=(0,rw._)`require("ajv-formats/dist/formats").${n}`);for(let s of e)t.addFormat(s,i[s])}UT.exports=So=sw;Object.defineProperty(So,"__esModule",{value:!0});So.default=sw});var aM=w((tse,tM)=>{var nM=require("stream").Stream,GF=require("util");tM.exports=xn;function xn(){this.source=null,this.dataSize=0,this.maxDataSize=1024*1024,this.pauseStream=!0,this._maxDataSizeExceeded=!1,this._released=!1,this._bufferedEvents=[]}GF.inherits(xn,nM);xn.create=function(t,e){var i=new this;e=e||{};for(var n in e)i[n]=e[n];i.source=t;var a=t.emit;return t.emit=function(){return i._handleEmit(arguments),a.apply(t,arguments)},t.on("error",function(){}),i.pauseStream&&t.pause(),i};Object.defineProperty(xn.prototype,"readable",{configurable:!0,enumerable:!0,get:function(){return this.source.readable}});xn.prototype.setEncoding=function(){return this.source.setEncoding.apply(this.source,arguments)};xn.prototype.resume=function(){this._released||this.release(),this.source.resume()};xn.prototype.pause=function(){this.source.pause()};xn.prototype.release=function(){this._released=!0,this._bufferedEvents.forEach(function(t){this.emit.apply(this,t)}.bind(this)),this._bufferedEvents=[]};xn.prototype.pipe=function(){var t=nM.prototype.pipe.apply(this,arguments);return this.resume(),t};xn.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)};xn.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 lM=w((ase,oM)=>{var $F=require("util"),sM=require("stream").Stream,rM=aM();oM.exports=Ke;function Ke(){this.writable=!1,this.readable=!0,this.dataSize=0,this.maxDataSize=2*1024*1024,this.pauseStreams=!0,this._released=!1,this._streams=[],this._currentStream=null,this._insideLoop=!1,this._pendingNext=!1}$F.inherits(Ke,sM);Ke.create=function(t){var e=new this;t=t||{};for(var i in t)e[i]=t[i];return e};Ke.isStreamLike=function(t){return typeof t!="function"&&typeof t!="string"&&typeof t!="boolean"&&typeof t!="number"&&!Buffer.isBuffer(t)};Ke.prototype.append=function(t){var e=Ke.isStreamLike(t);if(e){if(!(t instanceof rM)){var i=rM.create(t,{maxDataSize:1/0,pauseStream:this.pauseStreams});t.on("data",this._checkDataSize.bind(this)),t=i}this._handleErrors(t),this.pauseStreams&&t.pause()}return this._streams.push(t),this};Ke.prototype.pipe=function(t,e){return sM.prototype.pipe.call(this,t,e),this.resume(),t};Ke.prototype._getNext=function(){if(this._currentStream=null,this._insideLoop){this._pendingNext=!0;return}this._insideLoop=!0;try{do this._pendingNext=!1,this._realGetNext();while(this._pendingNext)}finally{this._insideLoop=!1}};Ke.prototype._realGetNext=function(){var t=this._streams.shift();if(typeof t>"u"){this.end();return}if(typeof t!="function"){this._pipeNext(t);return}var e=t;e(function(i){var n=Ke.isStreamLike(i);n&&(i.on("data",this._checkDataSize.bind(this)),this._handleErrors(i)),this._pipeNext(i)}.bind(this))};Ke.prototype._pipeNext=function(t){this._currentStream=t;var e=Ke.isStreamLike(t);if(e){t.on("end",this._getNext.bind(this)),t.pipe(this,{end:!1});return}var i=t;this.write(i),this._getNext()};Ke.prototype._handleErrors=function(t){var e=this;t.on("error",function(i){e._emitError(i)})};Ke.prototype.write=function(t){this.emit("data",t)};Ke.prototype.pause=function(){this.pauseStreams&&(this.pauseStreams&&this._currentStream&&typeof this._currentStream.pause=="function"&&this._currentStream.pause(),this.emit("pause"))};Ke.prototype.resume=function(){this._released||(this._released=!0,this.writable=!0,this._getNext()),this.pauseStreams&&this._currentStream&&typeof this._currentStream.resume=="function"&&this._currentStream.resume(),this.emit("resume")};Ke.prototype.end=function(){this._reset(),this.emit("end")};Ke.prototype.destroy=function(){this._reset(),this.emit("close")};Ke.prototype._reset=function(){this.writable=!1,this._streams=[],this._currentStream=null};Ke.prototype._checkDataSize=function(){if(this._updateDataSize(),!(this.dataSize<=this.maxDataSize)){var t="DelayedStream#maxDataSize of "+this.maxDataSize+" bytes exceeded.";this._emitError(new Error(t))}};Ke.prototype._updateDataSize=function(){this.dataSize=0;var t=this;this._streams.forEach(function(e){e.dataSize&&(t.dataSize+=e.dataSize)}),this._currentStream&&this._currentStream.dataSize&&(this.dataSize+=this._currentStream.dataSize)};Ke.prototype._emitError=function(t){this._reset(),this.emit("error",t)}});var uM=w((rse,NF)=>{NF.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 pM=w((sse,cM)=>{cM.exports=uM()});var gM=w(Wi=>{"use strict";var yc=pM(),UF=require("path").extname,dM=/^\s*([^;\s]*)(?:;|\s|$)/,LF=/^text\//i;Wi.charset=hM;Wi.charsets={lookup:hM};Wi.contentType=WF;Wi.extension=BF;Wi.extensions=Object.create(null);Wi.lookup=FF;Wi.types=Object.create(null);VF(Wi.extensions,Wi.types);function hM(t){if(!t||typeof t!="string")return!1;var e=dM.exec(t),i=e&&yc[e[1].toLowerCase()];return i&&i.charset?i.charset:e&&LF.test(e[1])?"UTF-8":!1}function WF(t){if(!t||typeof t!="string")return!1;var e=t.indexOf("/")===-1?Wi.lookup(t):t;if(!e)return!1;if(e.indexOf("charset")===-1){var i=Wi.charset(e);i&&(e+="; charset="+i.toLowerCase())}return e}function BF(t){if(!t||typeof t!="string")return!1;var e=dM.exec(t),i=e&&Wi.extensions[e[1].toLowerCase()];return!i||!i.length?!1:i[0]}function FF(t){if(!t||typeof t!="string")return!1;var e=UF("x."+t).toLowerCase().substr(1);return e&&Wi.types[e]||!1}function VF(t,e){var i=["nginx","apache",void 0,"iana"];Object.keys(yc).forEach(function(a){var r=yc[a],s=r.extensions;if(!(!s||!s.length)){t[a]=s;for(var o=0;oc||u===c&&e[l].substr(0,12)==="application/"))continue}e[l]=a}}})}});var fM=w((lse,mM)=>{mM.exports=JF;function JF(t){var e=typeof setImmediate=="function"?setImmediate:typeof process=="object"&&typeof process.nextTick=="function"?process.nextTick:null;e?e(t):setTimeout(t,0)}});var pw=w((use,vM)=>{var wM=fM();vM.exports=ZF;function ZF(t){var e=!1;return wM(function(){e=!0}),function(n,a){e?t(n,a):wM(function(){t(n,a)})}}});var dw=w((cse,CM)=>{CM.exports=KF;function KF(t){Object.keys(t.jobs).forEach(QF.bind(t)),t.jobs={}}function QF(t){typeof this.jobs[t]=="function"&&this.jobs[t]()}});var hw=w((pse,bM)=>{var AM=pw(),YF=dw();bM.exports=XF;function XF(t,e,i,n){var a=i.keyedList?i.keyedList[i.index]:i.index;i.jobs[a]=eV(e,a,t[a],function(r,s){a in i.jobs&&(delete i.jobs[a],r?YF(i):i.results[a]=s,n(r,i.results))})}function eV(t,e,i,n){var a;return t.length==2?a=t(i,AM(n)):a=t(i,e,AM(n)),a}});var gw=w((dse,yM)=>{yM.exports=iV;function iV(t,e){var i=!Array.isArray(t),n={index:0,keyedList:i||e?Object.keys(t):null,jobs:{},results:i?{}:[],size:i?Object.keys(t).length:t.length};return e&&n.keyedList.sort(i?e:function(a,r){return e(t[a],t[r])}),n}});var mw=w((hse,PM)=>{var nV=dw(),tV=pw();PM.exports=aV;function aV(t){Object.keys(this.jobs).length&&(this.index=this.size,nV(this),tV(t)(null,this.results))}});var SM=w((gse,jM)=>{var rV=hw(),sV=gw(),oV=mw();jM.exports=lV;function lV(t,e,i){for(var n=sV(t);n.index<(n.keyedList||t).length;)rV(t,e,n,function(a,r){if(a){i(a,r);return}if(Object.keys(n.jobs).length===0){i(null,n.results);return}}),n.index++;return oV.bind(n,i)}});var fw=w((mse,Pc)=>{var OM=hw(),uV=gw(),cV=mw();Pc.exports=pV;Pc.exports.ascending=xM;Pc.exports.descending=dV;function pV(t,e,i,n){var a=uV(t,i);return OM(t,e,a,function r(s,o){if(s){n(s,o);return}if(a.index++,a.index<(a.keyedList||t).length){OM(t,e,a,r);return}n(null,a.results)}),cV.bind(a,n)}function xM(t,e){return te?1:0}function dV(t,e){return-1*xM(t,e)}});var MM=w((fse,TM)=>{var hV=fw();TM.exports=gV;function gV(t,e,i){return hV(t,e,null,i)}});var kM=w((wse,EM)=>{EM.exports={parallel:SM(),serial:MM(),serialOrdered:fw()}});var ww=w((vse,qM)=>{"use strict";qM.exports=Object});var HM=w((Cse,_M)=>{"use strict";_M.exports=Error});var IM=w((Ase,RM)=>{"use strict";RM.exports=EvalError});var DM=w((bse,zM)=>{"use strict";zM.exports=RangeError});var $M=w((yse,GM)=>{"use strict";GM.exports=ReferenceError});var UM=w((Pse,NM)=>{"use strict";NM.exports=SyntaxError});var It=w((jse,LM)=>{"use strict";LM.exports=TypeError});var BM=w((Sse,WM)=>{"use strict";WM.exports=URIError});var VM=w((Ose,FM)=>{"use strict";FM.exports=Math.abs});var ZM=w((xse,JM)=>{"use strict";JM.exports=Math.floor});var QM=w((Tse,KM)=>{"use strict";KM.exports=Math.max});var XM=w((Mse,YM)=>{"use strict";YM.exports=Math.min});var iE=w((Ese,eE)=>{"use strict";eE.exports=Math.pow});var tE=w((kse,nE)=>{"use strict";nE.exports=Math.round});var rE=w((qse,aE)=>{"use strict";aE.exports=Number.isNaN||function(e){return e!==e}});var oE=w((_se,sE)=>{"use strict";var mV=rE();sE.exports=function(e){return mV(e)||e===0?e:e<0?-1:1}});var uE=w((Hse,lE)=>{"use strict";lE.exports=Object.getOwnPropertyDescriptor});var vw=w((Rse,cE)=>{"use strict";var jc=uE();if(jc)try{jc([],"length")}catch{jc=null}cE.exports=jc});var dE=w((Ise,pE)=>{"use strict";var Sc=Object.defineProperty||!1;if(Sc)try{Sc({},"a",{value:1})}catch{Sc=!1}pE.exports=Sc});var Cw=w((zse,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={},i=Symbol("test"),n=Object(i);if(typeof i=="string"||Object.prototype.toString.call(i)!=="[object Symbol]"||Object.prototype.toString.call(n)!=="[object Symbol]")return!1;var a=42;e[i]=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]!==i||!Object.prototype.propertyIsEnumerable.call(e,i))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var o=Object.getOwnPropertyDescriptor(e,i);if(o.value!==a||o.enumerable!==!0)return!1}return!0}});var fE=w((Dse,mE)=>{"use strict";var gE=typeof Symbol<"u"&&Symbol,fV=Cw();mE.exports=function(){return typeof gE!="function"||typeof Symbol!="function"||typeof gE("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:fV()}});var Aw=w((Gse,wE)=>{"use strict";wE.exports=typeof Reflect<"u"&&Reflect.getPrototypeOf||null});var bw=w(($se,vE)=>{"use strict";var wV=ww();vE.exports=wV.getPrototypeOf||null});var bE=w((Nse,AE)=>{"use strict";var vV="Function.prototype.bind called on incompatible ",CV=Object.prototype.toString,AV=Math.max,bV="[object Function]",CE=function(e,i){for(var n=[],a=0;a{"use strict";var jV=bE();yE.exports=Function.prototype.bind||jV});var Oc=w((Lse,PE)=>{"use strict";PE.exports=Function.prototype.call});var yw=w((Wse,jE)=>{"use strict";jE.exports=Function.prototype.apply});var OE=w((Bse,SE)=>{"use strict";SE.exports=typeof Reflect<"u"&&Reflect&&Reflect.apply});var TE=w((Fse,xE)=>{"use strict";var SV=xo(),OV=yw(),xV=Oc(),TV=OE();xE.exports=TV||SV.call(xV,OV)});var Pw=w((Vse,ME)=>{"use strict";var MV=xo(),EV=It(),kV=Oc(),qV=TE();ME.exports=function(e){if(e.length<1||typeof e[0]!="function")throw new EV("a function is required");return qV(MV,kV,e)}});var RE=w((Jse,HE)=>{"use strict";var _V=Pw(),EE=vw(),qE;try{qE=[].__proto__===Array.prototype}catch(t){if(!t||typeof t!="object"||!("code"in t)||t.code!=="ERR_PROTO_ACCESS")throw t}var jw=!!qE&&EE&&EE(Object.prototype,"__proto__"),_E=Object,kE=_E.getPrototypeOf;HE.exports=jw&&typeof jw.get=="function"?_V([jw.get]):typeof kE=="function"?function(e){return kE(e==null?e:_E(e))}:!1});var $E=w((Zse,GE)=>{"use strict";var IE=Aw(),zE=bw(),DE=RE();GE.exports=IE?function(e){return IE(e)}:zE?function(e){if(!e||typeof e!="object"&&typeof e!="function")throw new TypeError("getProto: not an object");return zE(e)}:DE?function(e){return DE(e)}:null});var xc=w((Kse,NE)=>{"use strict";var HV=Function.prototype.call,RV=Object.prototype.hasOwnProperty,IV=xo();NE.exports=IV.call(HV,RV)});var ko=w((Qse,VE)=>{"use strict";var pe,zV=ww(),DV=HM(),GV=IM(),$V=DM(),NV=$M(),Nr=UM(),$r=It(),UV=BM(),LV=VM(),WV=ZM(),BV=QM(),FV=XM(),VV=iE(),JV=tE(),ZV=oE(),BE=Function,Sw=function(t){try{return BE('"use strict"; return ('+t+").constructor;")()}catch{}},To=vw(),KV=dE(),Ow=function(){throw new $r},QV=To?(function(){try{return arguments.callee,Ow}catch{try{return To(arguments,"callee").get}catch{return Ow}}})():Ow,Dr=fE()(),gi=$E(),YV=bw(),XV=Aw(),FE=yw(),Mo=Oc(),Gr={},eJ=typeof Uint8Array>"u"||!gi?pe:gi(Uint8Array),Ma={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?pe:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?pe:ArrayBuffer,"%ArrayIteratorPrototype%":Dr&&gi?gi([][Symbol.iterator]()):pe,"%AsyncFromSyncIteratorPrototype%":pe,"%AsyncFunction%":Gr,"%AsyncGenerator%":Gr,"%AsyncGeneratorFunction%":Gr,"%AsyncIteratorPrototype%":Gr,"%Atomics%":typeof Atomics>"u"?pe:Atomics,"%BigInt%":typeof BigInt>"u"?pe:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?pe:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?pe:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?pe:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":DV,"%eval%":eval,"%EvalError%":GV,"%Float16Array%":typeof Float16Array>"u"?pe:Float16Array,"%Float32Array%":typeof Float32Array>"u"?pe:Float32Array,"%Float64Array%":typeof Float64Array>"u"?pe:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?pe:FinalizationRegistry,"%Function%":BE,"%GeneratorFunction%":Gr,"%Int8Array%":typeof Int8Array>"u"?pe:Int8Array,"%Int16Array%":typeof Int16Array>"u"?pe:Int16Array,"%Int32Array%":typeof Int32Array>"u"?pe:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Dr&&gi?gi(gi([][Symbol.iterator]())):pe,"%JSON%":typeof JSON=="object"?JSON:pe,"%Map%":typeof Map>"u"?pe:Map,"%MapIteratorPrototype%":typeof Map>"u"||!Dr||!gi?pe:gi(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":zV,"%Object.getOwnPropertyDescriptor%":To,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?pe:Promise,"%Proxy%":typeof Proxy>"u"?pe:Proxy,"%RangeError%":$V,"%ReferenceError%":NV,"%Reflect%":typeof Reflect>"u"?pe:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?pe:Set,"%SetIteratorPrototype%":typeof Set>"u"||!Dr||!gi?pe:gi(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?pe:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":Dr&&gi?gi(""[Symbol.iterator]()):pe,"%Symbol%":Dr?Symbol:pe,"%SyntaxError%":Nr,"%ThrowTypeError%":QV,"%TypedArray%":eJ,"%TypeError%":$r,"%Uint8Array%":typeof Uint8Array>"u"?pe:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?pe:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?pe:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?pe:Uint32Array,"%URIError%":UV,"%WeakMap%":typeof WeakMap>"u"?pe:WeakMap,"%WeakRef%":typeof WeakRef>"u"?pe:WeakRef,"%WeakSet%":typeof WeakSet>"u"?pe:WeakSet,"%Function.prototype.call%":Mo,"%Function.prototype.apply%":FE,"%Object.defineProperty%":KV,"%Object.getPrototypeOf%":YV,"%Math.abs%":LV,"%Math.floor%":WV,"%Math.max%":BV,"%Math.min%":FV,"%Math.pow%":VV,"%Math.round%":JV,"%Math.sign%":ZV,"%Reflect.getPrototypeOf%":XV};if(gi)try{null.error}catch(t){UE=gi(gi(t)),Ma["%Error.prototype%"]=UE}var UE,iJ=function t(e){var i;if(e==="%AsyncFunction%")i=Sw("async function () {}");else if(e==="%GeneratorFunction%")i=Sw("function* () {}");else if(e==="%AsyncGeneratorFunction%")i=Sw("async function* () {}");else if(e==="%AsyncGenerator%"){var n=t("%AsyncGeneratorFunction%");n&&(i=n.prototype)}else if(e==="%AsyncIteratorPrototype%"){var a=t("%AsyncGenerator%");a&&gi&&(i=gi(a.prototype))}return Ma[e]=i,i},LE={__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"]},Eo=xo(),Tc=xc(),nJ=Eo.call(Mo,Array.prototype.concat),tJ=Eo.call(FE,Array.prototype.splice),WE=Eo.call(Mo,String.prototype.replace),Mc=Eo.call(Mo,String.prototype.slice),aJ=Eo.call(Mo,RegExp.prototype.exec),rJ=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,sJ=/\\(\\)?/g,oJ=function(e){var i=Mc(e,0,1),n=Mc(e,-1);if(i==="%"&&n!=="%")throw new Nr("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&i!=="%")throw new Nr("invalid intrinsic syntax, expected opening `%`");var a=[];return WE(e,rJ,function(r,s,o,l){a[a.length]=o?WE(l,sJ,"$1"):s||r}),a},lJ=function(e,i){var n=e,a;if(Tc(LE,n)&&(a=LE[n],n="%"+a[0]+"%"),Tc(Ma,n)){var r=Ma[n];if(r===Gr&&(r=iJ(n)),typeof r>"u"&&!i)throw new $r("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:a,name:n,value:r}}throw new Nr("intrinsic "+e+" does not exist!")};VE.exports=function(e,i){if(typeof e!="string"||e.length===0)throw new $r("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof i!="boolean")throw new $r('"allowMissing" argument must be a boolean');if(aJ(/^%?[^%]*%?$/,e)===null)throw new Nr("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=oJ(e),a=n.length>0?n[0]:"",r=lJ("%"+a+"%",i),s=r.name,o=r.value,l=!1,u=r.alias;u&&(a=u[0],tJ(n,nJ([0,1],u)));for(var c=1,p=!0;c=n.length){var m=To(o,d);p=!!m,p&&"get"in m&&!("originalValue"in m.get)?o=m.get:o=o[d]}else p=Tc(o,d),o=o[d];p&&!l&&(Ma[s]=o)}}return o}});var ZE=w((Yse,JE)=>{"use strict";var uJ=Cw();JE.exports=function(){return uJ()&&!!Symbol.toStringTag}});var YE=w((Xse,QE)=>{"use strict";var cJ=ko(),KE=cJ("%Object.defineProperty%",!0),pJ=ZE()(),dJ=xc(),hJ=It(),Ec=pJ?Symbol.toStringTag:null;QE.exports=function(e,i){var n=arguments.length>2&&!!arguments[2]&&arguments[2].force,a=arguments.length>2&&!!arguments[2]&&arguments[2].nonConfigurable;if(typeof n<"u"&&typeof n!="boolean"||typeof a<"u"&&typeof a!="boolean")throw new hJ("if provided, the `overrideIfSet` and `nonConfigurable` options must be booleans");Ec&&(n||!dJ(e,Ec))&&(KE?KE(e,Ec,{configurable:!a,enumerable:!1,value:i,writable:!1}):e[Ec]=i)}});var ek=w((eoe,XE)=>{"use strict";XE.exports=function(t,e){return Object.keys(e).forEach(function(i){t[i]=t[i]||e[i]}),t}});var nk=w((ioe,ik)=>{"use strict";var Ew=lM(),gJ=require("util"),xw=require("path"),mJ=require("http"),fJ=require("https"),wJ=require("url").parse,vJ=require("fs"),CJ=require("stream").Stream,AJ=require("crypto"),Tw=gM(),bJ=kM(),yJ=YE(),zt=xc(),Mw=ek();function Ce(t){if(!(this instanceof Ce))return new Ce(t);this._overheadLength=0,this._valueLength=0,this._valuesToMeasure=[],Ew.call(this),t=t||{};for(var e in t)this[e]=t[e]}gJ.inherits(Ce,Ew);Ce.LINE_BREAK=`\r -`;Ce.DEFAULT_CONTENT_TYPE="application/octet-stream";Ce.prototype.append=function(t,e,i){i=i||{},typeof i=="string"&&(i={filename:i});var n=Ew.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,i),r=this._multiPartFooter();n(a),n(e),n(r),this._trackLength(a,e,i)};Ce.prototype._trackLength=function(t,e,i){var n=0;i.knownLength!=null?n+=Number(i.knownLength):Buffer.isBuffer(e)?n=e.length:typeof e=="string"&&(n=Buffer.byteLength(e)),this._valueLength+=n,this._overheadLength+=Buffer.byteLength(t)+Ce.LINE_BREAK.length,!(!e||!e.path&&!(e.readable&&zt(e,"httpVersion"))&&!(e instanceof CJ))&&(i.knownLength||this._valuesToMeasure.push(e))};Ce.prototype._lengthRetriever=function(t,e){zt(t,"fd")?t.end!=null&&t.end!=1/0&&t.start!=null?e(null,t.end+1-(t.start?t.start:0)):vJ.stat(t.path,function(i,n){if(i){e(i);return}var a=n.size-(t.start?t.start:0);e(null,a)}):zt(t,"httpVersion")?e(null,Number(t.headers["content-length"])):zt(t,"httpModule")?(t.on("response",function(i){t.pause(),e(null,Number(i.headers["content-length"]))}),t.resume()):e("Unknown stream")};Ce.prototype._multiPartHeader=function(t,e,i){if(typeof i.header=="string")return i.header;var n=this._getContentDisposition(e,i),a=this._getContentType(e,i),r="",s={"Content-Disposition":["form-data",'name="'+t+'"'].concat(n||[]),"Content-Type":[].concat(a||[])};typeof i.header=="object"&&Mw(s,i.header);var o;for(var l in s)if(zt(s,l)){if(o=s[l],o==null)continue;Array.isArray(o)||(o=[o]),o.length&&(r+=l+": "+o.join("; ")+Ce.LINE_BREAK)}return"--"+this.getBoundary()+Ce.LINE_BREAK+r+Ce.LINE_BREAK};Ce.prototype._getContentDisposition=function(t,e){var i;if(typeof e.filepath=="string"?i=xw.normalize(e.filepath).replace(/\\/g,"/"):e.filename||t&&(t.name||t.path)?i=xw.basename(e.filename||t&&(t.name||t.path)):t&&t.readable&&zt(t,"httpVersion")&&(i=xw.basename(t.client._httpMessage.path||"")),i)return'filename="'+i+'"'};Ce.prototype._getContentType=function(t,e){var i=e.contentType;return!i&&t&&t.name&&(i=Tw.lookup(t.name)),!i&&t&&t.path&&(i=Tw.lookup(t.path)),!i&&t&&t.readable&&zt(t,"httpVersion")&&(i=t.headers["content-type"]),!i&&(e.filepath||e.filename)&&(i=Tw.lookup(e.filepath||e.filename)),!i&&t&&typeof t=="object"&&(i=Ce.DEFAULT_CONTENT_TYPE),i};Ce.prototype._multiPartFooter=function(){return function(t){var e=Ce.LINE_BREAK,i=this._streams.length===0;i&&(e+=this._lastBoundary()),t(e)}.bind(this)};Ce.prototype._lastBoundary=function(){return"--"+this.getBoundary()+"--"+Ce.LINE_BREAK};Ce.prototype.getHeaders=function(t){var e,i={"content-type":"multipart/form-data; boundary="+this.getBoundary()};for(e in t)zt(t,e)&&(i[e.toLowerCase()]=t[e]);return i};Ce.prototype.setBoundary=function(t){if(typeof t!="string")throw new TypeError("FormData boundary must be a string");this._boundary=t};Ce.prototype.getBoundary=function(){return this._boundary||this._generateBoundary(),this._boundary};Ce.prototype.getBuffer=function(){for(var t=new Buffer.alloc(0),e=this.getBoundary(),i=0,n=this._streams.length;i{var Ur=1e3,Lr=Ur*60,Wr=Lr*60,Ea=Wr*24,PJ=Ea*7,jJ=Ea*365.25;tk.exports=function(t,e){e=e||{};var i=typeof t;if(i==="string"&&t.length>0)return SJ(t);if(i==="number"&&isFinite(t))return e.long?xJ(t):OJ(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))};function SJ(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 i=parseFloat(e[1]),n=(e[2]||"ms").toLowerCase();switch(n){case"years":case"year":case"yrs":case"yr":case"y":return i*jJ;case"weeks":case"week":case"w":return i*PJ;case"days":case"day":case"d":return i*Ea;case"hours":case"hour":case"hrs":case"hr":case"h":return i*Wr;case"minutes":case"minute":case"mins":case"min":case"m":return i*Lr;case"seconds":case"second":case"secs":case"sec":case"s":return i*Ur;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return i;default:return}}}}function OJ(t){var e=Math.abs(t);return e>=Ea?Math.round(t/Ea)+"d":e>=Wr?Math.round(t/Wr)+"h":e>=Lr?Math.round(t/Lr)+"m":e>=Ur?Math.round(t/Ur)+"s":t+"ms"}function xJ(t){var e=Math.abs(t);return e>=Ea?kc(t,e,Ea,"day"):e>=Wr?kc(t,e,Wr,"hour"):e>=Lr?kc(t,e,Lr,"minute"):e>=Ur?kc(t,e,Ur,"second"):t+" ms"}function kc(t,e,i,n){var a=e>=i*1.5;return Math.round(t/i)+" "+n+(a?"s":"")}});var qw=w((toe,ak)=>{function TJ(t){i.debug=i,i.default=i,i.coerce=l,i.disable=s,i.enable=a,i.enabled=o,i.humanize=kw(),i.destroy=u,Object.keys(t).forEach(c=>{i[c]=t[c]}),i.names=[],i.skips=[],i.formatters={};function e(c){let p=0;for(let d=0;d{if($==="%%")return"%";b++;let X=i.formatters[N];if(typeof X=="function"){let F=f[b];$=X.call(v,F),f.splice(b,1),b--}return $}),i.formatArgs.call(v,f),(v.log||i.log).apply(v,f)}return m.namespace=c,m.useColors=i.useColors(),m.color=i.selectColor(c),m.extend=n,m.destroy=i.destroy,Object.defineProperty(m,"enabled",{enumerable:!0,configurable:!1,get:()=>d!==null?d:(h!==i.namespaces&&(h=i.namespaces,g=i.enabled(c)),g),set:f=>{d=f}}),typeof i.init=="function"&&i.init(m),m}function n(c,p){let d=i(this.namespace+(typeof p>"u"?":":p)+c);return d.log=this.log,d}function a(c){i.save(c),i.namespaces=c,i.names=[],i.skips=[];let p=(typeof c=="string"?c:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(let d of p)d[0]==="-"?i.skips.push(d.slice(1)):i.names.push(d)}function r(c,p){let d=0,h=0,g=-1,m=0;for(;d"-"+p)].join(",");return i.enable(""),c}function o(c){for(let p of i.skips)if(r(c,p))return!1;for(let p of i.names)if(r(c,p))return!0;return!1}function l(c){return c instanceof Error?c.stack||c.message:c}function u(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return i.enable(i.load()),i}ak.exports=TJ});var rk=w((Bi,qc)=>{Bi.formatArgs=EJ;Bi.save=kJ;Bi.load=qJ;Bi.useColors=MJ;Bi.storage=_J();Bi.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`."))}})();Bi.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 MJ(){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 EJ(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+qc.exports.humanize(this.diff),!this.useColors)return;let e="color: "+this.color;t.splice(1,0,e,"color: inherit");let i=0,n=0;t[0].replace(/%[a-zA-Z%]/g,a=>{a!=="%%"&&(i++,a==="%c"&&(n=i))}),t.splice(n,0,e)}Bi.log=console.debug||console.log||(()=>{});function kJ(t){try{t?Bi.storage.setItem("debug",t):Bi.storage.removeItem("debug")}catch{}}function qJ(){let t;try{t=Bi.storage.getItem("debug")||Bi.storage.getItem("DEBUG")}catch{}return!t&&typeof process<"u"&&"env"in process&&(t=process.env.DEBUG),t}function _J(){try{return localStorage}catch{}}qc.exports=qw()(Bi);var{formatters:HJ}=qc.exports;HJ.j=function(t){try{return JSON.stringify(t)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}});var ok=w((mi,Hc)=>{var RJ=require("tty"),_c=require("util");mi.init=UJ;mi.log=GJ;mi.formatArgs=zJ;mi.save=$J;mi.load=NJ;mi.useColors=IJ;mi.destroy=_c.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");mi.colors=[6,2,3,4,5,1];try{let t=require("supports-color");t&&(t.stderr||t).level>=2&&(mi.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{}mi.inspectOpts=Object.keys(process.env).filter(t=>/^debug_/i.test(t)).reduce((t,e)=>{let i=e.substring(6).toLowerCase().replace(/_([a-z])/g,(a,r)=>r.toUpperCase()),n=process.env[e];return/^(yes|on|true|enabled)$/i.test(n)?n=!0:/^(no|off|false|disabled)$/i.test(n)?n=!1:n==="null"?n=null:n=Number(n),t[i]=n,t},{});function IJ(){return"colors"in mi.inspectOpts?!!mi.inspectOpts.colors:RJ.isatty(process.stderr.fd)}function zJ(t){let{namespace:e,useColors:i}=this;if(i){let n=this.color,a="\x1B[3"+(n<8?n:"8;5;"+n),r=` ${a};1m${e} \x1B[0m`;t[0]=r+t[0].split(` + deps: ${i}}`};var sB={keyword:"dependencies",type:"object",schemaType:"object",error:Dn.error,code(t){let[e,i]=oB(t);Xx(t,e),eT(t,i)}};function oB({schema:t}){let e={},i={};for(let n in t){if(n==="__proto__")continue;let a=Array.isArray(t[n])?e:i;a[n]=t[n]}return[e,i]}function Xx(t,e=t.schema){let{gen:i,data:n,it:a}=t;if(Object.keys(e).length===0)return;let r=i.let("missing");for(let s in e){let o=e[s];if(o.length===0)continue;let l=(0,jo.propertyInData)(i,n,s,a.opts.ownProperties);t.setParams({property:s,depsCount:o.length,deps:o.join(", ")}),a.allErrors?i.if(l,()=>{for(let u of o)(0,jo.checkReportMissingProp)(t,u)}):(i.if((0,_f._)`${l} && (${(0,jo.checkMissingProp)(t,o,r)})`),(0,jo.reportMissingProp)(t,r),i.else())}}Dn.validatePropertyDeps=Xx;function eT(t,e=t.schema){let{gen:i,data:n,keyword:a,it:r}=t,s=i.name("valid");for(let o in e)(0,rB.alwaysValidSchema)(r,e[o])||(i.if((0,jo.propertyInData)(i,n,o,r.opts.ownProperties),()=>{let l=t.subschema({keyword:a,schemaProp:o},s);t.mergeValidEvaluated(l,s)},()=>i.var(s,!0)),t.ok(s))}Dn.validateSchemaDeps=eT;Dn.default=sB});var tT=w(Hf=>{"use strict";Object.defineProperty(Hf,"__esModule",{value:!0});var nT=re(),lB=we(),uB={message:"property name must be valid",params:({params:t})=>(0,nT._)`{propertyName: ${t.propertyName}}`},cB={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:uB,code(t){let{gen:e,schema:i,data:n,it:a}=t;if((0,lB.alwaysValidSchema)(a,i))return;let r=e.name("valid");e.forIn("key",n,s=>{t.setParams({propertyName:s}),t.subschema({keyword:"propertyNames",data:s,dataTypes:["string"],propertyName:s,compositeRule:!0},r),e.if((0,nT.not)(r),()=>{t.error(!0),a.allErrors||e.break()})}),t.ok(r)}};Hf.default=cB});var If=w(Rf=>{"use strict";Object.defineProperty(Rf,"__esModule",{value:!0});var oc=dn(),Sn=re(),pB=st(),lc=we(),dB={message:"must NOT have additional properties",params:({params:t})=>(0,Sn._)`{additionalProperty: ${t.additionalProperty}}`},hB={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:dB,code(t){let{gen:e,schema:i,parentSchema:n,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,lc.alwaysValidSchema)(s,i))return;let u=(0,oc.allSchemaProperties)(n.properties),c=(0,oc.allSchemaProperties)(n.patternProperties);p(),t.ok((0,Sn._)`${r} === ${pB.default.errors}`);function p(){e.forIn("key",a,f=>{!u.length&&!c.length?g(f):e.if(d(f),()=>g(f))})}function d(f){let v;if(u.length>8){let y=(0,lc.schemaRefOrVal)(s,n.properties,"properties");v=(0,oc.isOwnProperty)(e,y,f)}else u.length?v=(0,Sn.or)(...u.map(y=>(0,Sn._)`${f} === ${y}`)):v=Sn.nil;return c.length&&(v=(0,Sn.or)(v,...c.map(y=>(0,Sn._)`${(0,oc.usePattern)(t,y)}.test(${f})`))),(0,Sn.not)(v)}function h(f){e.code((0,Sn._)`delete ${a}[${f}]`)}function g(f){if(l.removeAdditional==="all"||l.removeAdditional&&i===!1){h(f);return}if(i===!1){t.setParams({additionalProperty:f}),t.error(),o||e.break();return}if(typeof i=="object"&&!(0,lc.alwaysValidSchema)(s,i)){let v=e.name("valid");l.removeAdditional==="failing"?(m(f,v,!1),e.if((0,Sn.not)(v),()=>{t.reset(),h(f)})):(m(f,v),o||e.if((0,Sn.not)(v),()=>e.break()))}}function m(f,v,y){let A={keyword:"additionalProperties",dataProp:f,dataPropType:lc.Type.Str};y===!1&&Object.assign(A,{compositeRule:!0,createErrors:!1,allErrors:!1}),t.subschema(A,v)}}};Rf.default=hB});var sT=w(Df=>{"use strict";Object.defineProperty(Df,"__esModule",{value:!0});var gB=uo(),aT=dn(),zf=we(),rT=If(),mB={keyword:"properties",type:"object",schemaType:"object",code(t){let{gen:e,schema:i,parentSchema:n,data:a,it:r}=t;r.opts.removeAdditional==="all"&&n.additionalProperties===void 0&&rT.default.code(new gB.KeywordCxt(r,rT.default,"additionalProperties"));let s=(0,aT.allSchemaProperties)(i);for(let p of s)r.definedProperties.add(p);r.opts.unevaluated&&s.length&&r.props!==!0&&(r.props=zf.mergeEvaluated.props(e,(0,zf.toHash)(s),r.props));let o=s.filter(p=>!(0,zf.alwaysValidSchema)(r,i[p]));if(o.length===0)return;let l=e.name("valid");for(let p of o)u(p)?c(p):(e.if((0,aT.propertyInData)(e,a,p,r.opts.ownProperties)),c(p),r.allErrors||e.else().var(l,!0),e.endIf()),t.it.definedProperties.add(p),t.ok(l);function u(p){return r.opts.useDefaults&&!r.compositeRule&&i[p].default!==void 0}function c(p){t.subschema({keyword:"properties",schemaProp:p,dataProp:p},l)}}};Df.default=mB});var cT=w(Gf=>{"use strict";Object.defineProperty(Gf,"__esModule",{value:!0});var oT=dn(),uc=re(),lT=we(),uT=we(),fB={keyword:"patternProperties",type:"object",schemaType:"object",code(t){let{gen:e,schema:i,data:n,parentSchema:a,it:r}=t,{opts:s}=r,o=(0,oT.allSchemaProperties)(i),l=o.filter(m=>(0,lT.alwaysValidSchema)(r,i[m]));if(o.length===0||l.length===o.length&&(!r.opts.unevaluated||r.props===!0))return;let u=s.strictSchema&&!s.allowMatchingProperties&&a.properties,c=e.name("valid");r.props!==!0&&!(r.props instanceof uc.Name)&&(r.props=(0,uT.evaluatedPropsToName)(e,r.props));let{props:p}=r;d();function d(){for(let m of o)u&&h(m),r.allErrors?g(m):(e.var(c,!0),g(m),e.if(c))}function h(m){for(let f in u)new RegExp(m).test(f)&&(0,lT.checkStrictMode)(r,`property ${f} matches pattern ${m} (use allowMatchingProperties)`)}function g(m){e.forIn("key",n,f=>{e.if((0,uc._)`${(0,oT.usePattern)(t,m)}.test(${f})`,()=>{let v=l.includes(m);v||t.subschema({keyword:"patternProperties",schemaProp:m,dataProp:f,dataPropType:uT.Type.Str},c),r.opts.unevaluated&&p!==!0?e.assign((0,uc._)`${p}[${f}]`,!0):!v&&!r.allErrors&&e.if((0,uc.not)(c),()=>e.break())})})}}};Gf.default=fB});var pT=w($f=>{"use strict";Object.defineProperty($f,"__esModule",{value:!0});var wB=we(),vB={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(t){let{gen:e,schema:i,it:n}=t;if((0,wB.alwaysValidSchema)(n,i)){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"}};$f.default=vB});var dT=w(Nf=>{"use strict";Object.defineProperty(Nf,"__esModule",{value:!0});var CB=dn(),AB={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:CB.validateUnion,error:{message:"must match a schema in anyOf"}};Nf.default=AB});var hT=w(Uf=>{"use strict";Object.defineProperty(Uf,"__esModule",{value:!0});var cc=re(),bB=we(),yB={message:"must match exactly one schema in oneOf",params:({params:t})=>(0,cc._)`{passingSchemas: ${t.passing}}`},PB={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:yB,code(t){let{gen:e,schema:i,parentSchema:n,it:a}=t;if(!Array.isArray(i))throw new Error("ajv implementation error");if(a.opts.discriminator&&n.discriminator)return;let r=i,s=e.let("valid",!1),o=e.let("passing",null),l=e.name("_valid");t.setParams({passing:o}),e.block(u),t.result(s,()=>t.reset(),()=>t.error(!0));function u(){r.forEach((c,p)=>{let d;(0,bB.alwaysValidSchema)(a,c)?e.var(l,!0):d=t.subschema({keyword:"oneOf",schemaProp:p,compositeRule:!0},l),p>0&&e.if((0,cc._)`${l} && ${s}`).assign(s,!1).assign(o,(0,cc._)`[${o}, ${p}]`).else(),e.if(l,()=>{e.assign(s,!0),e.assign(o,p),d&&t.mergeEvaluated(d,cc.Name)})})}}};Uf.default=PB});var gT=w(Lf=>{"use strict";Object.defineProperty(Lf,"__esModule",{value:!0});var jB=we(),SB={keyword:"allOf",schemaType:"array",code(t){let{gen:e,schema:i,it:n}=t;if(!Array.isArray(i))throw new Error("ajv implementation error");let a=e.name("valid");i.forEach((r,s)=>{if((0,jB.alwaysValidSchema)(n,r))return;let o=t.subschema({keyword:"allOf",schemaProp:s},a);t.ok(a),t.mergeEvaluated(o)})}};Lf.default=SB});var wT=w(Wf=>{"use strict";Object.defineProperty(Wf,"__esModule",{value:!0});var pc=re(),fT=we(),OB={message:({params:t})=>(0,pc.str)`must match "${t.ifClause}" schema`,params:({params:t})=>(0,pc._)`{failingKeyword: ${t.ifClause}}`},xB={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:OB,code(t){let{gen:e,parentSchema:i,it:n}=t;i.then===void 0&&i.else===void 0&&(0,fT.checkStrictMode)(n,'"if" without "then" and "else" is ignored');let a=mT(n,"then"),r=mT(n,"else");if(!a&&!r)return;let s=e.let("valid",!0),o=e.name("_valid");if(l(),t.reset(),a&&r){let c=e.let("ifClause");t.setParams({ifClause:c}),e.if(o,u("then",c),u("else",c))}else a?e.if(o,u("then")):e.if((0,pc.not)(o),u("else"));t.pass(s,()=>t.error(!0));function l(){let c=t.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},o);t.mergeEvaluated(c)}function u(c,p){return()=>{let d=t.subschema({keyword:c},o);e.assign(s,o),t.mergeValidEvaluated(d,s),p?e.assign(p,(0,pc._)`${c}`):t.setParams({ifClause:c})}}}};function mT(t,e){let i=t.schema[e];return i!==void 0&&!(0,fT.alwaysValidSchema)(t,i)}Wf.default=xB});var vT=w(Bf=>{"use strict";Object.defineProperty(Bf,"__esModule",{value:!0});var TB=we(),MB={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:t,parentSchema:e,it:i}){e.if===void 0&&(0,TB.checkStrictMode)(i,`"${t}" without "if" is ignored`)}};Bf.default=MB});var CT=w(Ff=>{"use strict";Object.defineProperty(Ff,"__esModule",{value:!0});var EB=Tf(),kB=Zx(),qB=Mf(),_B=Qx(),HB=Yx(),RB=iT(),IB=tT(),zB=If(),DB=sT(),GB=cT(),$B=pT(),NB=dT(),UB=hT(),LB=gT(),WB=wT(),BB=vT();function FB(t=!1){let e=[$B.default,NB.default,UB.default,LB.default,WB.default,BB.default,IB.default,zB.default,RB.default,DB.default,GB.default];return t?e.push(kB.default,_B.default):e.push(EB.default,qB.default),e.push(HB.default),e}Ff.default=FB});var AT=w(Vf=>{"use strict";Object.defineProperty(Vf,"__esModule",{value:!0});var ii=re(),VB={message:({schemaCode:t})=>(0,ii.str)`must match format "${t}"`,params:({schemaCode:t})=>(0,ii._)`{format: ${t}}`},JB={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:VB,code(t,e){let{gen:i,data:n,$data:a,schema:r,schemaCode:s,it:o}=t,{opts:l,errSchemaPath:u,schemaEnv:c,self:p}=o;if(!l.validateFormats)return;a?d():h();function d(){let g=i.scopeValue("formats",{ref:p.formats,code:l.code.formats}),m=i.const("fDef",(0,ii._)`${g}[${s}]`),f=i.let("fType"),v=i.let("format");i.if((0,ii._)`typeof ${m} == "object" && !(${m} instanceof RegExp)`,()=>i.assign(f,(0,ii._)`${m}.type || "string"`).assign(v,(0,ii._)`${m}.validate`),()=>i.assign(f,(0,ii._)`"string"`).assign(v,m)),t.fail$data((0,ii.or)(y(),A()));function y(){return l.strictSchema===!1?ii.nil:(0,ii._)`${s} && !${v}`}function A(){let b=c.$async?(0,ii._)`(${m}.async ? await ${v}(${n}) : ${v}(${n}))`:(0,ii._)`${v}(${n})`,O=(0,ii._)`(typeof ${v} == "function" ? ${b} : ${v}.test(${n}))`;return(0,ii._)`${v} && ${v} !== true && ${f} === ${e} && !${O}`}}function h(){let g=p.formats[r];if(!g){y();return}if(g===!0)return;let[m,f,v]=A(g);m===e&&t.pass(b());function y(){if(l.strictSchema===!1){p.logger.warn(O());return}throw new Error(O());function O(){return`unknown format "${r}" ignored in schema at path "${u}"`}}function A(O){let $=O instanceof RegExp?(0,ii.regexpCode)(O):l.code.formats?(0,ii._)`${l.code.formats}${(0,ii.getProperty)(r)}`:void 0,N=i.scopeValue("formats",{key:r,ref:O,code:$});return typeof O=="object"&&!(O instanceof RegExp)?[O.type||"string",O.validate,(0,ii._)`${N}.validate`]:["string",O,N]}function b(){if(typeof g=="object"&&!(g instanceof RegExp)&&g.async){if(!c.$async)throw new Error("async format in sync schema");return(0,ii._)`await ${v}(${n})`}return typeof f=="function"?(0,ii._)`${v}(${n})`:(0,ii._)`${v}.test(${n})`}}}};Vf.default=JB});var bT=w(Jf=>{"use strict";Object.defineProperty(Jf,"__esModule",{value:!0});var ZB=AT(),KB=[ZB.default];Jf.default=KB});var yT=w(_r=>{"use strict";Object.defineProperty(_r,"__esModule",{value:!0});_r.contentVocabulary=_r.metadataVocabulary=void 0;_r.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"];_r.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]});var jT=w(Zf=>{"use strict";Object.defineProperty(Zf,"__esModule",{value:!0});var QB=kx(),YB=Bx(),XB=CT(),eF=bT(),PT=yT(),iF=[QB.default,YB.default,(0,XB.default)(),eF.default,PT.metadataVocabulary,PT.contentVocabulary];Zf.default=iF});var OT=w(dc=>{"use strict";Object.defineProperty(dc,"__esModule",{value:!0});dc.DiscrError=void 0;var ST;(function(t){t.Tag="tag",t.Mapping="mapping"})(ST||(dc.DiscrError=ST={}))});var TT=w(Qf=>{"use strict";Object.defineProperty(Qf,"__esModule",{value:!0});var Hr=re(),Kf=OT(),xT=Zu(),nF=co(),tF=we(),aF={message:({params:{discrError:t,tagName:e}})=>t===Kf.DiscrError.Tag?`tag "${e}" must be string`:`value of tag "${e}" must be in oneOf`,params:({params:{discrError:t,tag:e,tagName:i}})=>(0,Hr._)`{error: ${t}, tag: ${i}, tagValue: ${e}}`},rF={keyword:"discriminator",type:"object",schemaType:"object",error:aF,code(t){let{gen:e,data:i,schema:n,parentSchema:a,it:r}=t,{oneOf:s}=a;if(!r.opts.discriminator)throw new Error("discriminator: requires discriminator option");let o=n.propertyName;if(typeof o!="string")throw new Error("discriminator: requires propertyName");if(n.mapping)throw new Error("discriminator: mapping is not supported");if(!s)throw new Error("discriminator: requires oneOf keyword");let l=e.let("valid",!1),u=e.const("tag",(0,Hr._)`${i}${(0,Hr.getProperty)(o)}`);e.if((0,Hr._)`typeof ${u} == "string"`,()=>c(),()=>t.error(!1,{discrError:Kf.DiscrError.Tag,tag:u,tagName:o})),t.ok(l);function c(){let h=d();e.if(!1);for(let g in h)e.elseIf((0,Hr._)`${u} === ${g}`),e.assign(l,p(h[g]));e.else(),t.error(!1,{discrError:Kf.DiscrError.Mapping,tag:u,tagName:o}),e.endIf()}function p(h){let g=e.name("valid"),m=t.subschema({keyword:"oneOf",schemaProp:h},g);return t.mergeEvaluated(m,Hr.Name),g}function d(){var h;let g={},m=v(a),f=!0;for(let b=0;b{sF.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 Xf=w((Ue,Yf)=>{"use strict";Object.defineProperty(Ue,"__esModule",{value:!0});Ue.MissingRefError=Ue.ValidationError=Ue.CodeGen=Ue.Name=Ue.nil=Ue.stringify=Ue.str=Ue._=Ue.KeywordCxt=Ue.Ajv=void 0;var oF=Sx(),lF=jT(),uF=TT(),ET=MT(),cF=["/properties"],hc="http://json-schema.org/draft-07/schema",Rr=class extends oF.default{_addVocabularies(){super._addVocabularies(),lF.default.forEach(e=>this.addVocabulary(e)),this.opts.discriminator&&this.addKeyword(uF.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;let e=this.opts.$data?this.$dataMetaSchema(ET,cF):ET;this.addMetaSchema(e,hc,!1),this.refs["http://json-schema.org/schema"]=hc}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(hc)?hc:void 0)}};Ue.Ajv=Rr;Yf.exports=Ue=Rr;Yf.exports.Ajv=Rr;Object.defineProperty(Ue,"__esModule",{value:!0});Ue.default=Rr;var pF=uo();Object.defineProperty(Ue,"KeywordCxt",{enumerable:!0,get:function(){return pF.KeywordCxt}});var Ir=re();Object.defineProperty(Ue,"_",{enumerable:!0,get:function(){return Ir._}});Object.defineProperty(Ue,"str",{enumerable:!0,get:function(){return Ir.str}});Object.defineProperty(Ue,"stringify",{enumerable:!0,get:function(){return Ir.stringify}});Object.defineProperty(Ue,"nil",{enumerable:!0,get:function(){return Ir.nil}});Object.defineProperty(Ue,"Name",{enumerable:!0,get:function(){return Ir.Name}});Object.defineProperty(Ue,"CodeGen",{enumerable:!0,get:function(){return Ir.CodeGen}});var dF=Vu();Object.defineProperty(Ue,"ValidationError",{enumerable:!0,get:function(){return dF.default}});var hF=co();Object.defineProperty(Ue,"MissingRefError",{enumerable:!0,get:function(){return hF.default}})});var DT=w($n=>{"use strict";Object.defineProperty($n,"__esModule",{value:!0});$n.formatNames=$n.fastFormats=$n.fullFormats=void 0;function Gn(t,e){return{validate:t,compare:e}}$n.fullFormats={date:Gn(HT,tw),time:Gn(iw(!0),aw),"date-time":Gn(kT(!0),IT),"iso-time":Gn(iw(),RT),"iso-date-time":Gn(kT(),zT),duration:/^P(?!$)((\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?|(\d+W)?)$/,uri:CF,"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:OF,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:AF,int32:{type:"number",validate:PF},int64:{type:"number",validate:jF},float:{type:"number",validate:_T},double:{type:"number",validate:_T},password:!0,binary:!0};$n.fastFormats={...$n.fullFormats,date:Gn(/^\d\d\d\d-[0-1]\d-[0-3]\d$/,tw),time:Gn(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,aw),"date-time":Gn(/^\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,IT),"iso-time":Gn(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,RT),"iso-date-time":Gn(/^\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,zT),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};$n.formatNames=Object.keys($n.fullFormats);function gF(t){return t%4===0&&(t%100!==0||t%400===0)}var mF=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,fF=[0,31,28,31,30,31,30,31,31,30,31,30,31];function HT(t){let e=mF.exec(t);if(!e)return!1;let i=+e[1],n=+e[2],a=+e[3];return n>=1&&n<=12&&a>=1&&a<=(n===2&&gF(i)?29:fF[n])}function tw(t,e){if(t&&e)return t>e?1:t23||c>59||t&&!o)return!1;if(a<=23&&r<=59&&s<60)return!0;let p=r-c*l,d=a-u*l-(p<0?1:0);return(d===23||d===-1)&&(p===59||p===-1)&&s<61}}function aw(t,e){if(!(t&&e))return;let i=new Date("2020-01-01T"+t).valueOf(),n=new Date("2020-01-01T"+e).valueOf();if(i&&n)return i-n}function RT(t,e){if(!(t&&e))return;let i=ew.exec(t),n=ew.exec(e);if(i&&n)return t=i[1]+i[2]+i[3],e=n[1]+n[2]+n[3],t>e?1:t=bF}function jF(t){return Number.isInteger(t)}function _T(){return!0}var SF=/[^\\]\\Z/;function OF(t){if(SF.test(t))return!1;try{return new RegExp(t),!0}catch{return!1}}});var GT=w(zr=>{"use strict";Object.defineProperty(zr,"__esModule",{value:!0});zr.formatLimitDefinition=void 0;var xF=Xf(),On=re(),Ht=On.operators,gc={formatMaximum:{okStr:"<=",ok:Ht.LTE,fail:Ht.GT},formatMinimum:{okStr:">=",ok:Ht.GTE,fail:Ht.LT},formatExclusiveMaximum:{okStr:"<",ok:Ht.LT,fail:Ht.GTE},formatExclusiveMinimum:{okStr:">",ok:Ht.GT,fail:Ht.LTE}},TF={message:({keyword:t,schemaCode:e})=>(0,On.str)`should be ${gc[t].okStr} ${e}`,params:({keyword:t,schemaCode:e})=>(0,On._)`{comparison: ${gc[t].okStr}, limit: ${e}}`};zr.formatLimitDefinition={keyword:Object.keys(gc),type:"string",schemaType:"string",$data:!0,error:TF,code(t){let{gen:e,data:i,schemaCode:n,keyword:a,it:r}=t,{opts:s,self:o}=r;if(!s.validateFormats)return;let l=new xF.KeywordCxt(r,o.RULES.all.format.definition,"format");l.$data?u():c();function u(){let d=e.scopeValue("formats",{ref:o.formats,code:s.code.formats}),h=e.const("fmt",(0,On._)`${d}[${l.schemaCode}]`);t.fail$data((0,On.or)((0,On._)`typeof ${h} != "object"`,(0,On._)`${h} instanceof RegExp`,(0,On._)`typeof ${h}.compare != "function"`,p(h)))}function c(){let d=l.schema,h=o.formats[d];if(!h||h===!0)return;if(typeof h!="object"||h instanceof RegExp||typeof h.compare!="function")throw new Error(`"${a}": format "${d}" does not define "compare" function`);let g=e.scopeValue("formats",{key:d,ref:h,code:s.code.formats?(0,On._)`${s.code.formats}${(0,On.getProperty)(d)}`:void 0});t.fail$data(p(g))}function p(d){return(0,On._)`${d}.compare(${i}, ${n}) ${gc[a].fail} 0`}},dependencies:["format"]};var MF=t=>(t.addKeyword(zr.formatLimitDefinition),t);zr.default=MF});var LT=w((So,UT)=>{"use strict";Object.defineProperty(So,"__esModule",{value:!0});var Dr=DT(),EF=GT(),rw=re(),$T=new rw.Name("fullFormats"),kF=new rw.Name("fastFormats"),sw=(t,e={keywords:!0})=>{if(Array.isArray(e))return NT(t,e,Dr.fullFormats,$T),t;let[i,n]=e.mode==="fast"?[Dr.fastFormats,kF]:[Dr.fullFormats,$T],a=e.formats||Dr.formatNames;return NT(t,a,i,n),e.keywords&&(0,EF.default)(t),t};sw.get=(t,e="full")=>{let n=(e==="fast"?Dr.fastFormats:Dr.fullFormats)[t];if(!n)throw new Error(`Unknown format "${t}"`);return n};function NT(t,e,i,n){var a,r;(a=(r=t.opts.code).formats)!==null&&a!==void 0||(r.formats=(0,rw._)`require("ajv-formats/dist/formats").${n}`);for(let s of e)t.addFormat(s,i[s])}UT.exports=So=sw;Object.defineProperty(So,"__esModule",{value:!0});So.default=sw});var aM=w((tse,tM)=>{var nM=require("stream").Stream,GF=require("util");tM.exports=xn;function xn(){this.source=null,this.dataSize=0,this.maxDataSize=1024*1024,this.pauseStream=!0,this._maxDataSizeExceeded=!1,this._released=!1,this._bufferedEvents=[]}GF.inherits(xn,nM);xn.create=function(t,e){var i=new this;e=e||{};for(var n in e)i[n]=e[n];i.source=t;var a=t.emit;return t.emit=function(){return i._handleEmit(arguments),a.apply(t,arguments)},t.on("error",function(){}),i.pauseStream&&t.pause(),i};Object.defineProperty(xn.prototype,"readable",{configurable:!0,enumerable:!0,get:function(){return this.source.readable}});xn.prototype.setEncoding=function(){return this.source.setEncoding.apply(this.source,arguments)};xn.prototype.resume=function(){this._released||this.release(),this.source.resume()};xn.prototype.pause=function(){this.source.pause()};xn.prototype.release=function(){this._released=!0,this._bufferedEvents.forEach(function(t){this.emit.apply(this,t)}.bind(this)),this._bufferedEvents=[]};xn.prototype.pipe=function(){var t=nM.prototype.pipe.apply(this,arguments);return this.resume(),t};xn.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)};xn.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 lM=w((ase,oM)=>{var $F=require("util"),sM=require("stream").Stream,rM=aM();oM.exports=Ke;function Ke(){this.writable=!1,this.readable=!0,this.dataSize=0,this.maxDataSize=2*1024*1024,this.pauseStreams=!0,this._released=!1,this._streams=[],this._currentStream=null,this._insideLoop=!1,this._pendingNext=!1}$F.inherits(Ke,sM);Ke.create=function(t){var e=new this;t=t||{};for(var i in t)e[i]=t[i];return e};Ke.isStreamLike=function(t){return typeof t!="function"&&typeof t!="string"&&typeof t!="boolean"&&typeof t!="number"&&!Buffer.isBuffer(t)};Ke.prototype.append=function(t){var e=Ke.isStreamLike(t);if(e){if(!(t instanceof rM)){var i=rM.create(t,{maxDataSize:1/0,pauseStream:this.pauseStreams});t.on("data",this._checkDataSize.bind(this)),t=i}this._handleErrors(t),this.pauseStreams&&t.pause()}return this._streams.push(t),this};Ke.prototype.pipe=function(t,e){return sM.prototype.pipe.call(this,t,e),this.resume(),t};Ke.prototype._getNext=function(){if(this._currentStream=null,this._insideLoop){this._pendingNext=!0;return}this._insideLoop=!0;try{do this._pendingNext=!1,this._realGetNext();while(this._pendingNext)}finally{this._insideLoop=!1}};Ke.prototype._realGetNext=function(){var t=this._streams.shift();if(typeof t>"u"){this.end();return}if(typeof t!="function"){this._pipeNext(t);return}var e=t;e(function(i){var n=Ke.isStreamLike(i);n&&(i.on("data",this._checkDataSize.bind(this)),this._handleErrors(i)),this._pipeNext(i)}.bind(this))};Ke.prototype._pipeNext=function(t){this._currentStream=t;var e=Ke.isStreamLike(t);if(e){t.on("end",this._getNext.bind(this)),t.pipe(this,{end:!1});return}var i=t;this.write(i),this._getNext()};Ke.prototype._handleErrors=function(t){var e=this;t.on("error",function(i){e._emitError(i)})};Ke.prototype.write=function(t){this.emit("data",t)};Ke.prototype.pause=function(){this.pauseStreams&&(this.pauseStreams&&this._currentStream&&typeof this._currentStream.pause=="function"&&this._currentStream.pause(),this.emit("pause"))};Ke.prototype.resume=function(){this._released||(this._released=!0,this.writable=!0,this._getNext()),this.pauseStreams&&this._currentStream&&typeof this._currentStream.resume=="function"&&this._currentStream.resume(),this.emit("resume")};Ke.prototype.end=function(){this._reset(),this.emit("end")};Ke.prototype.destroy=function(){this._reset(),this.emit("close")};Ke.prototype._reset=function(){this.writable=!1,this._streams=[],this._currentStream=null};Ke.prototype._checkDataSize=function(){if(this._updateDataSize(),!(this.dataSize<=this.maxDataSize)){var t="DelayedStream#maxDataSize of "+this.maxDataSize+" bytes exceeded.";this._emitError(new Error(t))}};Ke.prototype._updateDataSize=function(){this.dataSize=0;var t=this;this._streams.forEach(function(e){e.dataSize&&(t.dataSize+=e.dataSize)}),this._currentStream&&this._currentStream.dataSize&&(this.dataSize+=this._currentStream.dataSize)};Ke.prototype._emitError=function(t){this._reset(),this.emit("error",t)}});var uM=w((rse,NF)=>{NF.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 pM=w((sse,cM)=>{cM.exports=uM()});var gM=w(Wi=>{"use strict";var yc=pM(),UF=require("path").extname,dM=/^\s*([^;\s]*)(?:;|\s|$)/,LF=/^text\//i;Wi.charset=hM;Wi.charsets={lookup:hM};Wi.contentType=WF;Wi.extension=BF;Wi.extensions=Object.create(null);Wi.lookup=FF;Wi.types=Object.create(null);VF(Wi.extensions,Wi.types);function hM(t){if(!t||typeof t!="string")return!1;var e=dM.exec(t),i=e&&yc[e[1].toLowerCase()];return i&&i.charset?i.charset:e&&LF.test(e[1])?"UTF-8":!1}function WF(t){if(!t||typeof t!="string")return!1;var e=t.indexOf("/")===-1?Wi.lookup(t):t;if(!e)return!1;if(e.indexOf("charset")===-1){var i=Wi.charset(e);i&&(e+="; charset="+i.toLowerCase())}return e}function BF(t){if(!t||typeof t!="string")return!1;var e=dM.exec(t),i=e&&Wi.extensions[e[1].toLowerCase()];return!i||!i.length?!1:i[0]}function FF(t){if(!t||typeof t!="string")return!1;var e=UF("x."+t).toLowerCase().substr(1);return e&&Wi.types[e]||!1}function VF(t,e){var i=["nginx","apache",void 0,"iana"];Object.keys(yc).forEach(function(a){var r=yc[a],s=r.extensions;if(!(!s||!s.length)){t[a]=s;for(var o=0;oc||u===c&&e[l].substr(0,12)==="application/"))continue}e[l]=a}}})}});var fM=w((lse,mM)=>{mM.exports=JF;function JF(t){var e=typeof setImmediate=="function"?setImmediate:typeof process=="object"&&typeof process.nextTick=="function"?process.nextTick:null;e?e(t):setTimeout(t,0)}});var pw=w((use,vM)=>{var wM=fM();vM.exports=ZF;function ZF(t){var e=!1;return wM(function(){e=!0}),function(n,a){e?t(n,a):wM(function(){t(n,a)})}}});var dw=w((cse,CM)=>{CM.exports=KF;function KF(t){Object.keys(t.jobs).forEach(QF.bind(t)),t.jobs={}}function QF(t){typeof this.jobs[t]=="function"&&this.jobs[t]()}});var hw=w((pse,bM)=>{var AM=pw(),YF=dw();bM.exports=XF;function XF(t,e,i,n){var a=i.keyedList?i.keyedList[i.index]:i.index;i.jobs[a]=eV(e,a,t[a],function(r,s){a in i.jobs&&(delete i.jobs[a],r?YF(i):i.results[a]=s,n(r,i.results))})}function eV(t,e,i,n){var a;return t.length==2?a=t(i,AM(n)):a=t(i,e,AM(n)),a}});var gw=w((dse,yM)=>{yM.exports=iV;function iV(t,e){var i=!Array.isArray(t),n={index:0,keyedList:i||e?Object.keys(t):null,jobs:{},results:i?{}:[],size:i?Object.keys(t).length:t.length};return e&&n.keyedList.sort(i?e:function(a,r){return e(t[a],t[r])}),n}});var mw=w((hse,PM)=>{var nV=dw(),tV=pw();PM.exports=aV;function aV(t){Object.keys(this.jobs).length&&(this.index=this.size,nV(this),tV(t)(null,this.results))}});var SM=w((gse,jM)=>{var rV=hw(),sV=gw(),oV=mw();jM.exports=lV;function lV(t,e,i){for(var n=sV(t);n.index<(n.keyedList||t).length;)rV(t,e,n,function(a,r){if(a){i(a,r);return}if(Object.keys(n.jobs).length===0){i(null,n.results);return}}),n.index++;return oV.bind(n,i)}});var fw=w((mse,Pc)=>{var OM=hw(),uV=gw(),cV=mw();Pc.exports=pV;Pc.exports.ascending=xM;Pc.exports.descending=dV;function pV(t,e,i,n){var a=uV(t,i);return OM(t,e,a,function r(s,o){if(s){n(s,o);return}if(a.index++,a.index<(a.keyedList||t).length){OM(t,e,a,r);return}n(null,a.results)}),cV.bind(a,n)}function xM(t,e){return te?1:0}function dV(t,e){return-1*xM(t,e)}});var MM=w((fse,TM)=>{var hV=fw();TM.exports=gV;function gV(t,e,i){return hV(t,e,null,i)}});var kM=w((wse,EM)=>{EM.exports={parallel:SM(),serial:MM(),serialOrdered:fw()}});var ww=w((vse,qM)=>{"use strict";qM.exports=Object});var HM=w((Cse,_M)=>{"use strict";_M.exports=Error});var IM=w((Ase,RM)=>{"use strict";RM.exports=EvalError});var DM=w((bse,zM)=>{"use strict";zM.exports=RangeError});var $M=w((yse,GM)=>{"use strict";GM.exports=ReferenceError});var UM=w((Pse,NM)=>{"use strict";NM.exports=SyntaxError});var It=w((jse,LM)=>{"use strict";LM.exports=TypeError});var BM=w((Sse,WM)=>{"use strict";WM.exports=URIError});var VM=w((Ose,FM)=>{"use strict";FM.exports=Math.abs});var ZM=w((xse,JM)=>{"use strict";JM.exports=Math.floor});var QM=w((Tse,KM)=>{"use strict";KM.exports=Math.max});var XM=w((Mse,YM)=>{"use strict";YM.exports=Math.min});var iE=w((Ese,eE)=>{"use strict";eE.exports=Math.pow});var tE=w((kse,nE)=>{"use strict";nE.exports=Math.round});var rE=w((qse,aE)=>{"use strict";aE.exports=Number.isNaN||function(e){return e!==e}});var oE=w((_se,sE)=>{"use strict";var mV=rE();sE.exports=function(e){return mV(e)||e===0?e:e<0?-1:1}});var uE=w((Hse,lE)=>{"use strict";lE.exports=Object.getOwnPropertyDescriptor});var vw=w((Rse,cE)=>{"use strict";var jc=uE();if(jc)try{jc([],"length")}catch{jc=null}cE.exports=jc});var dE=w((Ise,pE)=>{"use strict";var Sc=Object.defineProperty||!1;if(Sc)try{Sc({},"a",{value:1})}catch{Sc=!1}pE.exports=Sc});var Cw=w((zse,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={},i=Symbol("test"),n=Object(i);if(typeof i=="string"||Object.prototype.toString.call(i)!=="[object Symbol]"||Object.prototype.toString.call(n)!=="[object Symbol]")return!1;var a=42;e[i]=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]!==i||!Object.prototype.propertyIsEnumerable.call(e,i))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var o=Object.getOwnPropertyDescriptor(e,i);if(o.value!==a||o.enumerable!==!0)return!1}return!0}});var fE=w((Dse,mE)=>{"use strict";var gE=typeof Symbol<"u"&&Symbol,fV=Cw();mE.exports=function(){return typeof gE!="function"||typeof Symbol!="function"||typeof gE("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:fV()}});var Aw=w((Gse,wE)=>{"use strict";wE.exports=typeof Reflect<"u"&&Reflect.getPrototypeOf||null});var bw=w(($se,vE)=>{"use strict";var wV=ww();vE.exports=wV.getPrototypeOf||null});var bE=w((Nse,AE)=>{"use strict";var vV="Function.prototype.bind called on incompatible ",CV=Object.prototype.toString,AV=Math.max,bV="[object Function]",CE=function(e,i){for(var n=[],a=0;a{"use strict";var jV=bE();yE.exports=Function.prototype.bind||jV});var Oc=w((Lse,PE)=>{"use strict";PE.exports=Function.prototype.call});var yw=w((Wse,jE)=>{"use strict";jE.exports=Function.prototype.apply});var OE=w((Bse,SE)=>{"use strict";SE.exports=typeof Reflect<"u"&&Reflect&&Reflect.apply});var TE=w((Fse,xE)=>{"use strict";var SV=xo(),OV=yw(),xV=Oc(),TV=OE();xE.exports=TV||SV.call(xV,OV)});var Pw=w((Vse,ME)=>{"use strict";var MV=xo(),EV=It(),kV=Oc(),qV=TE();ME.exports=function(e){if(e.length<1||typeof e[0]!="function")throw new EV("a function is required");return qV(MV,kV,e)}});var RE=w((Jse,HE)=>{"use strict";var _V=Pw(),EE=vw(),qE;try{qE=[].__proto__===Array.prototype}catch(t){if(!t||typeof t!="object"||!("code"in t)||t.code!=="ERR_PROTO_ACCESS")throw t}var jw=!!qE&&EE&&EE(Object.prototype,"__proto__"),_E=Object,kE=_E.getPrototypeOf;HE.exports=jw&&typeof jw.get=="function"?_V([jw.get]):typeof kE=="function"?function(e){return kE(e==null?e:_E(e))}:!1});var $E=w((Zse,GE)=>{"use strict";var IE=Aw(),zE=bw(),DE=RE();GE.exports=IE?function(e){return IE(e)}:zE?function(e){if(!e||typeof e!="object"&&typeof e!="function")throw new TypeError("getProto: not an object");return zE(e)}:DE?function(e){return DE(e)}:null});var xc=w((Kse,NE)=>{"use strict";var HV=Function.prototype.call,RV=Object.prototype.hasOwnProperty,IV=xo();NE.exports=IV.call(HV,RV)});var ko=w((Qse,VE)=>{"use strict";var pe,zV=ww(),DV=HM(),GV=IM(),$V=DM(),NV=$M(),Ur=UM(),Nr=It(),UV=BM(),LV=VM(),WV=ZM(),BV=QM(),FV=XM(),VV=iE(),JV=tE(),ZV=oE(),BE=Function,Sw=function(t){try{return BE('"use strict"; return ('+t+").constructor;")()}catch{}},To=vw(),KV=dE(),Ow=function(){throw new Nr},QV=To?(function(){try{return arguments.callee,Ow}catch{try{return To(arguments,"callee").get}catch{return Ow}}})():Ow,Gr=fE()(),gi=$E(),YV=bw(),XV=Aw(),FE=yw(),Mo=Oc(),$r={},eJ=typeof Uint8Array>"u"||!gi?pe:gi(Uint8Array),Ma={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?pe:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?pe:ArrayBuffer,"%ArrayIteratorPrototype%":Gr&&gi?gi([][Symbol.iterator]()):pe,"%AsyncFromSyncIteratorPrototype%":pe,"%AsyncFunction%":$r,"%AsyncGenerator%":$r,"%AsyncGeneratorFunction%":$r,"%AsyncIteratorPrototype%":$r,"%Atomics%":typeof Atomics>"u"?pe:Atomics,"%BigInt%":typeof BigInt>"u"?pe:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?pe:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?pe:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?pe:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":DV,"%eval%":eval,"%EvalError%":GV,"%Float16Array%":typeof Float16Array>"u"?pe:Float16Array,"%Float32Array%":typeof Float32Array>"u"?pe:Float32Array,"%Float64Array%":typeof Float64Array>"u"?pe:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?pe:FinalizationRegistry,"%Function%":BE,"%GeneratorFunction%":$r,"%Int8Array%":typeof Int8Array>"u"?pe:Int8Array,"%Int16Array%":typeof Int16Array>"u"?pe:Int16Array,"%Int32Array%":typeof Int32Array>"u"?pe:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Gr&&gi?gi(gi([][Symbol.iterator]())):pe,"%JSON%":typeof JSON=="object"?JSON:pe,"%Map%":typeof Map>"u"?pe:Map,"%MapIteratorPrototype%":typeof Map>"u"||!Gr||!gi?pe:gi(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":zV,"%Object.getOwnPropertyDescriptor%":To,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?pe:Promise,"%Proxy%":typeof Proxy>"u"?pe:Proxy,"%RangeError%":$V,"%ReferenceError%":NV,"%Reflect%":typeof Reflect>"u"?pe:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?pe:Set,"%SetIteratorPrototype%":typeof Set>"u"||!Gr||!gi?pe:gi(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?pe:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":Gr&&gi?gi(""[Symbol.iterator]()):pe,"%Symbol%":Gr?Symbol:pe,"%SyntaxError%":Ur,"%ThrowTypeError%":QV,"%TypedArray%":eJ,"%TypeError%":Nr,"%Uint8Array%":typeof Uint8Array>"u"?pe:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?pe:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?pe:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?pe:Uint32Array,"%URIError%":UV,"%WeakMap%":typeof WeakMap>"u"?pe:WeakMap,"%WeakRef%":typeof WeakRef>"u"?pe:WeakRef,"%WeakSet%":typeof WeakSet>"u"?pe:WeakSet,"%Function.prototype.call%":Mo,"%Function.prototype.apply%":FE,"%Object.defineProperty%":KV,"%Object.getPrototypeOf%":YV,"%Math.abs%":LV,"%Math.floor%":WV,"%Math.max%":BV,"%Math.min%":FV,"%Math.pow%":VV,"%Math.round%":JV,"%Math.sign%":ZV,"%Reflect.getPrototypeOf%":XV};if(gi)try{null.error}catch(t){UE=gi(gi(t)),Ma["%Error.prototype%"]=UE}var UE,iJ=function t(e){var i;if(e==="%AsyncFunction%")i=Sw("async function () {}");else if(e==="%GeneratorFunction%")i=Sw("function* () {}");else if(e==="%AsyncGeneratorFunction%")i=Sw("async function* () {}");else if(e==="%AsyncGenerator%"){var n=t("%AsyncGeneratorFunction%");n&&(i=n.prototype)}else if(e==="%AsyncIteratorPrototype%"){var a=t("%AsyncGenerator%");a&&gi&&(i=gi(a.prototype))}return Ma[e]=i,i},LE={__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"]},Eo=xo(),Tc=xc(),nJ=Eo.call(Mo,Array.prototype.concat),tJ=Eo.call(FE,Array.prototype.splice),WE=Eo.call(Mo,String.prototype.replace),Mc=Eo.call(Mo,String.prototype.slice),aJ=Eo.call(Mo,RegExp.prototype.exec),rJ=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,sJ=/\\(\\)?/g,oJ=function(e){var i=Mc(e,0,1),n=Mc(e,-1);if(i==="%"&&n!=="%")throw new Ur("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&i!=="%")throw new Ur("invalid intrinsic syntax, expected opening `%`");var a=[];return WE(e,rJ,function(r,s,o,l){a[a.length]=o?WE(l,sJ,"$1"):s||r}),a},lJ=function(e,i){var n=e,a;if(Tc(LE,n)&&(a=LE[n],n="%"+a[0]+"%"),Tc(Ma,n)){var r=Ma[n];if(r===$r&&(r=iJ(n)),typeof r>"u"&&!i)throw new Nr("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:a,name:n,value:r}}throw new Ur("intrinsic "+e+" does not exist!")};VE.exports=function(e,i){if(typeof e!="string"||e.length===0)throw new Nr("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof i!="boolean")throw new Nr('"allowMissing" argument must be a boolean');if(aJ(/^%?[^%]*%?$/,e)===null)throw new Ur("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=oJ(e),a=n.length>0?n[0]:"",r=lJ("%"+a+"%",i),s=r.name,o=r.value,l=!1,u=r.alias;u&&(a=u[0],tJ(n,nJ([0,1],u)));for(var c=1,p=!0;c=n.length){var m=To(o,d);p=!!m,p&&"get"in m&&!("originalValue"in m.get)?o=m.get:o=o[d]}else p=Tc(o,d),o=o[d];p&&!l&&(Ma[s]=o)}}return o}});var ZE=w((Yse,JE)=>{"use strict";var uJ=Cw();JE.exports=function(){return uJ()&&!!Symbol.toStringTag}});var YE=w((Xse,QE)=>{"use strict";var cJ=ko(),KE=cJ("%Object.defineProperty%",!0),pJ=ZE()(),dJ=xc(),hJ=It(),Ec=pJ?Symbol.toStringTag:null;QE.exports=function(e,i){var n=arguments.length>2&&!!arguments[2]&&arguments[2].force,a=arguments.length>2&&!!arguments[2]&&arguments[2].nonConfigurable;if(typeof n<"u"&&typeof n!="boolean"||typeof a<"u"&&typeof a!="boolean")throw new hJ("if provided, the `overrideIfSet` and `nonConfigurable` options must be booleans");Ec&&(n||!dJ(e,Ec))&&(KE?KE(e,Ec,{configurable:!a,enumerable:!1,value:i,writable:!1}):e[Ec]=i)}});var ek=w((eoe,XE)=>{"use strict";XE.exports=function(t,e){return Object.keys(e).forEach(function(i){t[i]=t[i]||e[i]}),t}});var nk=w((ioe,ik)=>{"use strict";var Ew=lM(),gJ=require("util"),xw=require("path"),mJ=require("http"),fJ=require("https"),wJ=require("url").parse,vJ=require("fs"),CJ=require("stream").Stream,AJ=require("crypto"),Tw=gM(),bJ=kM(),yJ=YE(),zt=xc(),Mw=ek();function Ce(t){if(!(this instanceof Ce))return new Ce(t);this._overheadLength=0,this._valueLength=0,this._valuesToMeasure=[],Ew.call(this),t=t||{};for(var e in t)this[e]=t[e]}gJ.inherits(Ce,Ew);Ce.LINE_BREAK=`\r +`;Ce.DEFAULT_CONTENT_TYPE="application/octet-stream";Ce.prototype.append=function(t,e,i){i=i||{},typeof i=="string"&&(i={filename:i});var n=Ew.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,i),r=this._multiPartFooter();n(a),n(e),n(r),this._trackLength(a,e,i)};Ce.prototype._trackLength=function(t,e,i){var n=0;i.knownLength!=null?n+=Number(i.knownLength):Buffer.isBuffer(e)?n=e.length:typeof e=="string"&&(n=Buffer.byteLength(e)),this._valueLength+=n,this._overheadLength+=Buffer.byteLength(t)+Ce.LINE_BREAK.length,!(!e||!e.path&&!(e.readable&&zt(e,"httpVersion"))&&!(e instanceof CJ))&&(i.knownLength||this._valuesToMeasure.push(e))};Ce.prototype._lengthRetriever=function(t,e){zt(t,"fd")?t.end!=null&&t.end!=1/0&&t.start!=null?e(null,t.end+1-(t.start?t.start:0)):vJ.stat(t.path,function(i,n){if(i){e(i);return}var a=n.size-(t.start?t.start:0);e(null,a)}):zt(t,"httpVersion")?e(null,Number(t.headers["content-length"])):zt(t,"httpModule")?(t.on("response",function(i){t.pause(),e(null,Number(i.headers["content-length"]))}),t.resume()):e("Unknown stream")};Ce.prototype._multiPartHeader=function(t,e,i){if(typeof i.header=="string")return i.header;var n=this._getContentDisposition(e,i),a=this._getContentType(e,i),r="",s={"Content-Disposition":["form-data",'name="'+t+'"'].concat(n||[]),"Content-Type":[].concat(a||[])};typeof i.header=="object"&&Mw(s,i.header);var o;for(var l in s)if(zt(s,l)){if(o=s[l],o==null)continue;Array.isArray(o)||(o=[o]),o.length&&(r+=l+": "+o.join("; ")+Ce.LINE_BREAK)}return"--"+this.getBoundary()+Ce.LINE_BREAK+r+Ce.LINE_BREAK};Ce.prototype._getContentDisposition=function(t,e){var i;if(typeof e.filepath=="string"?i=xw.normalize(e.filepath).replace(/\\/g,"/"):e.filename||t&&(t.name||t.path)?i=xw.basename(e.filename||t&&(t.name||t.path)):t&&t.readable&&zt(t,"httpVersion")&&(i=xw.basename(t.client._httpMessage.path||"")),i)return'filename="'+i+'"'};Ce.prototype._getContentType=function(t,e){var i=e.contentType;return!i&&t&&t.name&&(i=Tw.lookup(t.name)),!i&&t&&t.path&&(i=Tw.lookup(t.path)),!i&&t&&t.readable&&zt(t,"httpVersion")&&(i=t.headers["content-type"]),!i&&(e.filepath||e.filename)&&(i=Tw.lookup(e.filepath||e.filename)),!i&&t&&typeof t=="object"&&(i=Ce.DEFAULT_CONTENT_TYPE),i};Ce.prototype._multiPartFooter=function(){return function(t){var e=Ce.LINE_BREAK,i=this._streams.length===0;i&&(e+=this._lastBoundary()),t(e)}.bind(this)};Ce.prototype._lastBoundary=function(){return"--"+this.getBoundary()+"--"+Ce.LINE_BREAK};Ce.prototype.getHeaders=function(t){var e,i={"content-type":"multipart/form-data; boundary="+this.getBoundary()};for(e in t)zt(t,e)&&(i[e.toLowerCase()]=t[e]);return i};Ce.prototype.setBoundary=function(t){if(typeof t!="string")throw new TypeError("FormData boundary must be a string");this._boundary=t};Ce.prototype.getBoundary=function(){return this._boundary||this._generateBoundary(),this._boundary};Ce.prototype.getBuffer=function(){for(var t=new Buffer.alloc(0),e=this.getBoundary(),i=0,n=this._streams.length;i{var Lr=1e3,Wr=Lr*60,Br=Wr*60,Ea=Br*24,PJ=Ea*7,jJ=Ea*365.25;tk.exports=function(t,e){e=e||{};var i=typeof t;if(i==="string"&&t.length>0)return SJ(t);if(i==="number"&&isFinite(t))return e.long?xJ(t):OJ(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))};function SJ(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 i=parseFloat(e[1]),n=(e[2]||"ms").toLowerCase();switch(n){case"years":case"year":case"yrs":case"yr":case"y":return i*jJ;case"weeks":case"week":case"w":return i*PJ;case"days":case"day":case"d":return i*Ea;case"hours":case"hour":case"hrs":case"hr":case"h":return i*Br;case"minutes":case"minute":case"mins":case"min":case"m":return i*Wr;case"seconds":case"second":case"secs":case"sec":case"s":return i*Lr;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return i;default:return}}}}function OJ(t){var e=Math.abs(t);return e>=Ea?Math.round(t/Ea)+"d":e>=Br?Math.round(t/Br)+"h":e>=Wr?Math.round(t/Wr)+"m":e>=Lr?Math.round(t/Lr)+"s":t+"ms"}function xJ(t){var e=Math.abs(t);return e>=Ea?kc(t,e,Ea,"day"):e>=Br?kc(t,e,Br,"hour"):e>=Wr?kc(t,e,Wr,"minute"):e>=Lr?kc(t,e,Lr,"second"):t+" ms"}function kc(t,e,i,n){var a=e>=i*1.5;return Math.round(t/i)+" "+n+(a?"s":"")}});var qw=w((toe,ak)=>{function TJ(t){i.debug=i,i.default=i,i.coerce=l,i.disable=s,i.enable=a,i.enabled=o,i.humanize=kw(),i.destroy=u,Object.keys(t).forEach(c=>{i[c]=t[c]}),i.names=[],i.skips=[],i.formatters={};function e(c){let p=0;for(let d=0;d{if($==="%%")return"%";b++;let X=i.formatters[N];if(typeof X=="function"){let F=f[b];$=X.call(v,F),f.splice(b,1),b--}return $}),i.formatArgs.call(v,f),(v.log||i.log).apply(v,f)}return m.namespace=c,m.useColors=i.useColors(),m.color=i.selectColor(c),m.extend=n,m.destroy=i.destroy,Object.defineProperty(m,"enabled",{enumerable:!0,configurable:!1,get:()=>d!==null?d:(h!==i.namespaces&&(h=i.namespaces,g=i.enabled(c)),g),set:f=>{d=f}}),typeof i.init=="function"&&i.init(m),m}function n(c,p){let d=i(this.namespace+(typeof p>"u"?":":p)+c);return d.log=this.log,d}function a(c){i.save(c),i.namespaces=c,i.names=[],i.skips=[];let p=(typeof c=="string"?c:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(let d of p)d[0]==="-"?i.skips.push(d.slice(1)):i.names.push(d)}function r(c,p){let d=0,h=0,g=-1,m=0;for(;d"-"+p)].join(",");return i.enable(""),c}function o(c){for(let p of i.skips)if(r(c,p))return!1;for(let p of i.names)if(r(c,p))return!0;return!1}function l(c){return c instanceof Error?c.stack||c.message:c}function u(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return i.enable(i.load()),i}ak.exports=TJ});var rk=w((Bi,qc)=>{Bi.formatArgs=EJ;Bi.save=kJ;Bi.load=qJ;Bi.useColors=MJ;Bi.storage=_J();Bi.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`."))}})();Bi.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 MJ(){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 EJ(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+qc.exports.humanize(this.diff),!this.useColors)return;let e="color: "+this.color;t.splice(1,0,e,"color: inherit");let i=0,n=0;t[0].replace(/%[a-zA-Z%]/g,a=>{a!=="%%"&&(i++,a==="%c"&&(n=i))}),t.splice(n,0,e)}Bi.log=console.debug||console.log||(()=>{});function kJ(t){try{t?Bi.storage.setItem("debug",t):Bi.storage.removeItem("debug")}catch{}}function qJ(){let t;try{t=Bi.storage.getItem("debug")||Bi.storage.getItem("DEBUG")}catch{}return!t&&typeof process<"u"&&"env"in process&&(t=process.env.DEBUG),t}function _J(){try{return localStorage}catch{}}qc.exports=qw()(Bi);var{formatters:HJ}=qc.exports;HJ.j=function(t){try{return JSON.stringify(t)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}});var ok=w((mi,Hc)=>{var RJ=require("tty"),_c=require("util");mi.init=UJ;mi.log=GJ;mi.formatArgs=zJ;mi.save=$J;mi.load=NJ;mi.useColors=IJ;mi.destroy=_c.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");mi.colors=[6,2,3,4,5,1];try{let t=require("supports-color");t&&(t.stderr||t).level>=2&&(mi.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{}mi.inspectOpts=Object.keys(process.env).filter(t=>/^debug_/i.test(t)).reduce((t,e)=>{let i=e.substring(6).toLowerCase().replace(/_([a-z])/g,(a,r)=>r.toUpperCase()),n=process.env[e];return/^(yes|on|true|enabled)$/i.test(n)?n=!0:/^(no|off|false|disabled)$/i.test(n)?n=!1:n==="null"?n=null:n=Number(n),t[i]=n,t},{});function IJ(){return"colors"in mi.inspectOpts?!!mi.inspectOpts.colors:RJ.isatty(process.stderr.fd)}function zJ(t){let{namespace:e,useColors:i}=this;if(i){let n=this.color,a="\x1B[3"+(n<8?n:"8;5;"+n),r=` ${a};1m${e} \x1B[0m`;t[0]=r+t[0].split(` `).join(` `+r),t.push(a+"m+"+Hc.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=DJ()+e+" "+t[0]}function DJ(){return mi.inspectOpts.hideDate?"":new Date().toISOString()+" "}function GJ(...t){return process.stderr.write(_c.formatWithOptions(mi.inspectOpts,...t)+` `)}function $J(t){t?process.env.DEBUG=t:delete process.env.DEBUG}function NJ(){return process.env.DEBUG}function UJ(t){t.inspectOpts={};let e=Object.keys(mi.inspectOpts);for(let i=0;ie.indexOf("(https.js:")!==-1||e.indexOf("node:https:")!==-1)}function Rc(t,e){return new Rc.Agent(t,e)}(function(t){class e extends WJ.EventEmitter{constructor(n,a){super();let r=a;typeof n=="function"?this.callback=n:n&&(r=n),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:Rw()?443:80}set defaultPort(n){this.explicitDefaultPort=n}get protocol(){return typeof this.explicitProtocol=="string"?this.explicitProtocol:Rw()?"https:":"http:"}set protocol(n){this.explicitProtocol=n}callback(n,a,r){throw new Error('"agent-base" has no default implementation, you must subclass and override `callback()`')}addRequest(n,a){let r=Object.assign({},a);typeof r.secureEndpoint!="boolean"&&(r.secureEndpoint=Rw()),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,n._last=!0,n.shouldKeepAlive=!1;let s=!1,o=null,l=r.timeout||this.timeout,u=h=>{n._hadError||(n.emit("error",h),n._hadError=!0)},c=()=>{o=null,s=!0;let h=new Error(`A "socket" was not created for HTTP request before ${l}ms`);h.code="ETIMEOUT",u(h)},p=h=>{s||(o!==null&&(clearTimeout(o),o=null),u(h))},d=h=>{if(s)return;if(o!=null&&(clearTimeout(o),o=null),VJ(h)){_o("Callback returned another Agent instance %o",h.constructor.name),h.addRequest(n,r);return}if(h){h.once("free",()=>{this.freeSocket(h,r)}),n.onSocket(h);return}let g=new Error(`no Duplex stream was returned to agent-base for \`${n.method} ${n.path}\``);u(g)};if(typeof this.callback!="function"){u(new Error("`callback` is not defined"));return}this.promisifiedCallback||(this.callback.length>=3?(_o("Converting legacy callback function to promise"),this.promisifiedCallback=FJ.default(this.callback)):this.promisifiedCallback=this.callback),typeof l=="number"&&l>0&&(o=setTimeout(c,l)),"port"in r&&typeof r.port!="number"&&(r.port=Number(r.port));try{_o("Resolving socket for %o request: %o",r.protocol,`${n.method} ${n.path}`),Promise.resolve(this.promisifiedCallback(n,r)).then(d,p)}catch(h){Promise.reject(h).catch(p)}}freeSocket(n,a){_o("Freeing socket %o %o",n.constructor.name,a),n.destroy()}destroy(){_o("Destroying agent %o",this.constructor.name)}}t.Agent=e,t.prototype=t.Agent.prototype})(Rc||(Rc={}));ck.exports=Rc});var dk=w(Ro=>{"use strict";var JJ=Ro&&Ro.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Ro,"__esModule",{value:!0});var ZJ=JJ(qo()),Ho=ZJ.default("https-proxy-agent:parse-proxy-response");function KJ(t){return new Promise((e,i)=>{let n=0,a=[];function r(){let p=t.read();p?c(p):t.once("readable",r)}function s(){t.removeListener("end",l),t.removeListener("error",u),t.removeListener("close",o),t.removeListener("readable",r)}function o(p){Ho("onclose had error %o",p)}function l(){Ho("onend")}function u(p){s(),Ho("onerror %o",p),i(p)}function c(p){a.push(p),n+=p.length;let d=Buffer.concat(a,n);if(d.indexOf(`\r \r `)===-1){Ho("have not received end of HTTP headers yet..."),r();return}let g=d.toString("ascii",0,d.indexOf(`\r -`)),m=+g.split(" ")[1];Ho("got proxy server response: %o",g),e({statusCode:m,buffered:d})}t.on("error",u),t.on("close",o),t.on("end",l),r()})}Ro.default=KJ});var mk=w(ka=>{"use strict";var QJ=ka&&ka.__awaiter||function(t,e,i,n){function a(r){return r instanceof i?r:new i(function(s){s(r)})}return new(i||(i=Promise))(function(r,s){function o(c){try{u(n.next(c))}catch(p){s(p)}}function l(c){try{u(n.throw(c))}catch(p){s(p)}}function u(c){c.done?r(c.value):a(c.value).then(o,l)}u((n=n.apply(t,e||[])).next())})},Br=ka&&ka.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(ka,"__esModule",{value:!0});var hk=Br(require("net")),gk=Br(require("tls")),YJ=Br(require("url")),XJ=Br(require("assert")),e4=Br(qo()),i4=pk(),n4=Br(dk()),Io=e4.default("https-proxy-agent:agent"),zw=class extends i4.Agent{constructor(e){let i;if(typeof e=="string"?i=YJ.default.parse(e):i=e,!i)throw new Error("an HTTP(S) proxy server `host` and `port` must be specified!");Io("creating new HttpsProxyAgent instance: %o",i),super(i);let n=Object.assign({},i);this.secureProxy=i.secureProxy||r4(n.protocol),n.host=n.hostname||n.host,typeof n.port=="string"&&(n.port=parseInt(n.port,10)),!n.port&&n.host&&(n.port=this.secureProxy?443:80),this.secureProxy&&!("ALPNProtocols"in n)&&(n.ALPNProtocols=["http 1.1"]),n.host&&n.path&&(delete n.path,delete n.pathname),this.proxy=n}callback(e,i){return QJ(this,void 0,void 0,function*(){let{proxy:n,secureProxy:a}=this,r;a?(Io("Creating `tls.Socket`: %o",n),r=gk.default.connect(n)):(Io("Creating `net.Socket`: %o",n),r=hk.default.connect(n));let s=Object.assign({},n.headers),l=`CONNECT ${`${i.host}:${i.port}`} HTTP/1.1\r +`)),m=+g.split(" ")[1];Ho("got proxy server response: %o",g),e({statusCode:m,buffered:d})}t.on("error",u),t.on("close",o),t.on("end",l),r()})}Ro.default=KJ});var mk=w(ka=>{"use strict";var QJ=ka&&ka.__awaiter||function(t,e,i,n){function a(r){return r instanceof i?r:new i(function(s){s(r)})}return new(i||(i=Promise))(function(r,s){function o(c){try{u(n.next(c))}catch(p){s(p)}}function l(c){try{u(n.throw(c))}catch(p){s(p)}}function u(c){c.done?r(c.value):a(c.value).then(o,l)}u((n=n.apply(t,e||[])).next())})},Fr=ka&&ka.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(ka,"__esModule",{value:!0});var hk=Fr(require("net")),gk=Fr(require("tls")),YJ=Fr(require("url")),XJ=Fr(require("assert")),e4=Fr(qo()),i4=pk(),n4=Fr(dk()),Io=e4.default("https-proxy-agent:agent"),zw=class extends i4.Agent{constructor(e){let i;if(typeof e=="string"?i=YJ.default.parse(e):i=e,!i)throw new Error("an HTTP(S) proxy server `host` and `port` must be specified!");Io("creating new HttpsProxyAgent instance: %o",i),super(i);let n=Object.assign({},i);this.secureProxy=i.secureProxy||r4(n.protocol),n.host=n.hostname||n.host,typeof n.port=="string"&&(n.port=parseInt(n.port,10)),!n.port&&n.host&&(n.port=this.secureProxy?443:80),this.secureProxy&&!("ALPNProtocols"in n)&&(n.ALPNProtocols=["http 1.1"]),n.host&&n.path&&(delete n.path,delete n.pathname),this.proxy=n}callback(e,i){return QJ(this,void 0,void 0,function*(){let{proxy:n,secureProxy:a}=this,r;a?(Io("Creating `tls.Socket`: %o",n),r=gk.default.connect(n)):(Io("Creating `net.Socket`: %o",n),r=hk.default.connect(n));let s=Object.assign({},n.headers),l=`CONNECT ${`${i.host}:${i.port}`} HTTP/1.1\r `;n.auth&&(s["Proxy-Authorization"]=`Basic ${Buffer.from(n.auth).toString("base64")}`);let{host:u,port:c,secureEndpoint:p}=i;a4(c,p)||(u+=`:${c}`),s.Host=u,s.Connection="close";for(let f of Object.keys(s))l+=`${f}: ${s[f]}\r `;let d=n4.default(r);r.write(`${l}\r -`);let{statusCode:h,buffered:g}=yield d;if(h===200){if(e.once("socket",t4),i.secureEndpoint){Io("Upgrading socket connection to TLS");let f=i.servername||i.host;return gk.default.connect(Object.assign(Object.assign({},s4(i,"host","hostname","path","port")),{socket:r,servername:f}))}return r}r.destroy();let m=new hk.default.Socket({writable:!1});return m.readable=!0,e.once("socket",f=>{Io("replaying proxy buffer for failed request"),XJ.default(f.listenerCount("data")>0),f.push(g),f.push(null)}),m})}};ka.default=zw;function t4(t){t.resume()}function a4(t,e){return!!(!e&&t===80||e&&t===443)}function r4(t){return typeof t=="string"?/^https:?$/i.test(t):!1}function s4(t,...e){let i={},n;for(n in t)e.includes(n)||(i[n]=t[n]);return i}});var wk=w(($w,fk)=>{"use strict";var o4=$w&&$w.__importDefault||function(t){return t&&t.__esModule?t:{default:t}},Dw=o4(mk());function Gw(t){return new Dw.default(t)}(function(t){t.HttpsProxyAgent=Dw.default,t.prototype=Dw.default.prototype})(Gw||(Gw={}));fk.exports=Gw});var Ck=w((loe,vk)=>{var zo;vk.exports=function(){if(!zo){try{zo=qo()("follow-redirects")}catch{}typeof zo!="function"&&(zo=function(){})}zo.apply(null,arguments)}});var jk=w((uoe,Yw)=>{var Go=require("url"),Do=Go.URL,l4=require("http"),u4=require("https"),Bw=require("stream").Writable,Fw=require("assert"),Ak=Ck();(function(){var e=typeof process<"u",i=typeof window<"u"&&typeof document<"u",n=_a(Error.captureStackTrace);!e&&(i||!n)&&console.warn("The follow-redirects package should be excluded from browser builds.")})();var Vw=!1;try{Fw(new Do(""))}catch(t){Vw=t.code==="ERR_INVALID_URL"}var c4=["Authorization","Proxy-Authorization","Cookie"],p4=["auth","host","hostname","href","path","pathname","port","protocol","query","search","hash"],Jw=["abort","aborted","connect","error","socket","timeout"],Zw=Object.create(null);Jw.forEach(function(t){Zw[t]=function(e,i,n){this._redirectable.emit(t,e,i,n)}});var Uw=$o("ERR_INVALID_URL","Invalid URL",TypeError),Lw=$o("ERR_FR_REDIRECTION_FAILURE","Redirected request failed"),d4=$o("ERR_FR_TOO_MANY_REDIRECTS","Maximum number of redirects exceeded",Lw),h4=$o("ERR_FR_MAX_BODY_LENGTH_EXCEEDED","Request body larger than maxBodyLength limit"),g4=$o("ERR_STREAM_WRITE_AFTER_END","write after end"),m4=Bw.prototype.destroy||yk;function Fi(t,e){Bw.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 i=this;this._onNativeResponse=function(n){try{i._processResponse(n)}catch(a){i.emit("error",a instanceof Lw?a:new Lw({cause:a}))}},this._headerFilter=new RegExp("^(?:"+c4.concat(t.sensitiveHeaders).map(b4).join("|")+")$","i"),this._performRequest()}Fi.prototype=Object.create(Bw.prototype);Fi.prototype.abort=function(){Qw(this._currentRequest),this._currentRequest.abort(),this.emit("abort")};Fi.prototype.destroy=function(t){return Qw(this._currentRequest,t),m4.call(this,t),this};Fi.prototype.write=function(t,e,i){if(this._ending)throw new g4;if(!qa(t)&&!C4(t))throw new TypeError("data should be a string, Buffer or Uint8Array");if(_a(e)&&(i=e,e=null),t.length===0){i&&i();return}this._requestBodyLength+t.length<=this._options.maxBodyLength?(this._requestBodyLength+=t.length,this._requestBodyBuffers.push({data:t,encoding:e}),this._currentRequest.write(t,e,i)):(this.emit("error",new h4),this.abort())};Fi.prototype.end=function(t,e,i){if(_a(t)?(i=t,t=e=null):_a(e)&&(i=e,e=null),!t)this._ended=this._ending=!0,this._currentRequest.end(null,null,i);else{var n=this,a=this._currentRequest;this.write(t,e,function(){n._ended=!0,a.end(null,null,i)}),this._ending=!0}};Fi.prototype.setHeader=function(t,e){this._options.headers[t]=e,this._currentRequest.setHeader(t,e)};Fi.prototype.removeHeader=function(t){delete this._options.headers[t],this._currentRequest.removeHeader(t)};Fi.prototype.setTimeout=function(t,e){var i=this;function n(s){s.setTimeout(t),s.removeListener("timeout",s.destroy),s.addListener("timeout",s.destroy)}function a(s){i._timeout&&clearTimeout(i._timeout),i._timeout=setTimeout(function(){i.emit("timeout"),r()},t),n(s)}function r(){i._timeout&&(clearTimeout(i._timeout),i._timeout=null),i.removeListener("abort",r),i.removeListener("error",r),i.removeListener("response",r),i.removeListener("close",r),e&&i.removeListener("timeout",e),i.socket||i._currentRequest.removeListener("socket",a)}return e&&this.on("timeout",e),this.socket?a(this.socket):this._currentRequest.once("socket",a),this.on("socket",n),this.on("abort",r),this.on("error",r),this.on("response",r),this.on("close",r),this};["flushHeaders","getHeader","setNoDelay","setSocketKeepAlive"].forEach(function(t){Fi.prototype[t]=function(e,i){return this._currentRequest[t](e,i)}});["aborted","connection","socket"].forEach(function(t){Object.defineProperty(Fi.prototype,t,{get:function(){return this._currentRequest[t]}})});Fi.prototype._sanitizeOptions=function(t){if(t.headers||(t.headers={}),v4(t.sensitiveHeaders)||(t.sensitiveHeaders=[]),t.host&&(t.hostname||(t.hostname=t.host),delete t.host),!t.pathname&&t.path){var e=t.path.indexOf("?");e<0?t.pathname=t.path:(t.pathname=t.path.substring(0,e),t.search=t.path.substring(e))}};Fi.prototype._performRequest=function(){var t=this._options.protocol,e=this._options.nativeProtocols[t];if(!e)throw new TypeError("Unsupported protocol "+t);if(this._options.agents){var i=t.slice(0,-1);this._options.agent=this._options.agents[i]}var n=this._currentRequest=e.request(this._options,this._onNativeResponse);n._redirectable=this;for(var a of Jw)n.on(a,Zw[a]);if(this._currentUrl=/^\//.test(this._options.path)?Go.format(this._options):this._options.path,this._isRedirect){var r=0,s=this,o=this._requestBodyBuffers;(function l(u){if(n===s._currentRequest)if(u)s.emit("error",u);else if(r=400){t.responseUrl=this._currentUrl,t.redirects=this._redirects,this.emit("response",t),this._requestBodyBuffers=[];return}if(Qw(this._currentRequest),t.destroy(),++this._redirectCount>this._options.maxRedirects)throw new d4;var n,a=this._options.beforeRedirect;a&&(n=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=[],Nw(/^content-/i,this._options.headers));var s=Nw(/^host$/i,this._options.headers),o=Kw(this._currentUrl),l=s||o.host,u=/^\w+:/.test(i)?this._currentUrl:Go.format(Object.assign(o,{host:l})),c=f4(i,u);if(Ak("redirecting to",c.href),this._isRedirect=!0,Ww(c,this._options),(c.protocol!==o.protocol&&c.protocol!=="https:"||c.host!==l&&!w4(c.host,l))&&Nw(this._headerFilter,this._options.headers),_a(a)){var p={headers:t.headers,statusCode:e},d={url:u,method:r,headers:n};a(this._options,p,d),this._sanitizeOptions(this._options)}this._performRequest()};function bk(t){var e={maxRedirects:21,maxBodyLength:10485760},i={};return Object.keys(t).forEach(function(n){var a=n+":",r=i[a]=t[n],s=e[n]=Object.create(r);function o(u,c,p){return A4(u)?u=Ww(u):qa(u)?u=Ww(Kw(u)):(p=c,c=Pk(u),u={protocol:a}),_a(c)&&(p=c,c=null),c=Object.assign({maxRedirects:e.maxRedirects,maxBodyLength:e.maxBodyLength},u,c),c.nativeProtocols=i,!qa(c.host)&&!qa(c.hostname)&&(c.hostname="::1"),Fw.equal(c.protocol,a,"protocol mismatch"),Ak("options",c),new Fi(c,p)}function l(u,c,p){var d=s.request(u,c,p);return d.end(),d}Object.defineProperties(s,{request:{value:o,configurable:!0,enumerable:!0,writable:!0},get:{value:l,configurable:!0,enumerable:!0,writable:!0}})}),e}function yk(){}function Kw(t){var e;if(Vw)e=new Do(t);else if(e=Pk(Go.parse(t)),!qa(e.protocol))throw new Uw({input:t});return e}function f4(t,e){return Vw?new Do(t,e):Kw(Go.resolve(e,t))}function Pk(t){if(/^\[/.test(t.hostname)&&!/^\[[:0-9a-f]+\]$/i.test(t.hostname))throw new Uw({input:t.href||t});if(/^\[/.test(t.host)&&!/^\[[:0-9a-f]+\](:\d+)?$/i.test(t.host))throw new Uw({input:t.href||t});return t}function Ww(t,e){var i=e||{};for(var n of p4)i[n]=t[n];return i.hostname.startsWith("[")&&(i.hostname=i.hostname.slice(1,-1)),i.port!==""&&(i.port=Number(i.port)),i.path=i.search?i.pathname+i.search:i.pathname,i}function Nw(t,e){var i;for(var n in e)t.test(n)&&(i=e[n],delete e[n]);return i===null||typeof i>"u"?void 0:String(i).trim()}function $o(t,e,i){function n(a){_a(Error.captureStackTrace)&&Error.captureStackTrace(this,this.constructor),Object.assign(this,a||{}),this.code=t,this.message=this.cause?e+": "+this.cause.message:e}return n.prototype=new(i||Error),Object.defineProperties(n.prototype,{constructor:{value:n,enumerable:!1},name:{value:"Error ["+t+"]",enumerable:!1}}),n}function Qw(t,e){for(var i of Jw)t.removeListener(i,Zw[i]);t.on("error",yk),t.destroy(e)}function w4(t,e){Fw(qa(t)&&qa(e));var i=t.length-e.length-1;return i>0&&t[i]==="."&&t.endsWith(e)}function v4(t){return t instanceof Array}function qa(t){return typeof t=="string"||t instanceof String}function _a(t){return typeof t=="function"}function C4(t){return typeof t=="object"&&"length"in t}function A4(t){return Do&&t instanceof Do}function b4(t){return t.replace(/[\]\\/()*+?.$]/g,"\\$&")}Yw.exports=bk({http:l4,https:u4});Yw.exports.wrap=bk});var jq=w((coe,Pq)=>{"use strict";var Zk=nk(),y4=require("crypto"),P4=require("url"),Kk=wk(),j4=require("http"),S4=require("https"),Qk=require("http2"),mv=require("util"),Sk=require("path"),O4=jk(),Dt=require("zlib"),Vi=require("stream"),x4=require("events");function Yk(t,e){return function(){return t.apply(e,arguments)}}var{toString:T4}=Object.prototype,{getPrototypeOf:Bc}=Object,{iterator:Fc,toStringTag:Xk}=Symbol,Vc=(t=>e=>{let i=T4.call(e);return t[i]||(t[i]=i.slice(8,-1).toLowerCase())})(Object.create(null)),Tn=t=>(t=t.toLowerCase(),e=>Vc(e)===t),Jc=t=>e=>typeof e===t,{isArray:Kr}=Array,Jr=Jc("undefined");function Wo(t){return t!==null&&!Jr(t)&&t.constructor!==null&&!Jr(t.constructor)&&Ji(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}var eq=Tn("ArrayBuffer");function M4(t){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&eq(t.buffer),e}var E4=Jc("string"),Ji=Jc("function"),iq=Jc("number"),Bo=t=>t!==null&&typeof t=="object",k4=t=>t===!0||t===!1,Dc=t=>{if(Vc(t)!=="object")return!1;let e=Bc(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Xk in t)&&!(Fc in t)},q4=t=>{if(!Bo(t)||Wo(t))return!1;try{return Object.keys(t).length===0&&Object.getPrototypeOf(t)===Object.prototype}catch{return!1}},_4=Tn("Date"),H4=Tn("File"),R4=t=>!!(t&&typeof t.uri<"u"),I4=t=>t&&typeof t.getParts<"u",z4=Tn("Blob"),D4=Tn("FileList"),G4=t=>Bo(t)&&Ji(t.pipe);function $4(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}}var Ok=$4(),xk=typeof Ok.FormData<"u"?Ok.FormData:void 0,N4=t=>{if(!t)return!1;if(xk&&t instanceof xk)return!0;let e=Bc(t);if(!e||e===Object.prototype||!Ji(t.append))return!1;let i=Vc(t);return i==="formdata"||i==="object"&&Ji(t.toString)&&t.toString()==="[object FormData]"},U4=Tn("URLSearchParams"),[L4,W4,B4,F4]=["ReadableStream","Request","Response","Headers"].map(Tn),V4=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Fo(t,e,{allOwnKeys:i=!1}={}){if(t===null||typeof t>"u")return;let n,a;if(typeof t!="object"&&(t=[t]),Kr(t))for(n=0,a=t.length;n0;)if(a=i[n],e===a.toLowerCase())return a;return null}var Ha=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,tq=t=>!Jr(t)&&t!==Ha;function rv(...t){let{caseless:e,skipUndefined:i}=tq(this)&&this||{},n={},a=(r,s)=>{if(s==="__proto__"||s==="constructor"||s==="prototype")return;let o=e&&nq(n,s)||s,l=sv(n,o)?n[o]:void 0;Dc(l)&&Dc(r)?n[o]=rv(l,r):Dc(r)?n[o]=rv({},r):Kr(r)?n[o]=r.slice():(!i||!Jr(r))&&(n[o]=r)};for(let r=0,s=t.length;r(Fo(e,(a,r)=>{i&&Ji(a)?Object.defineProperty(t,r,{__proto__:null,value:Yk(a,i),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(t,r,{__proto__:null,value:a,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:n}),t),Z4=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),K4=(t,e,i,n)=>{t.prototype=Object.create(e.prototype,n),Object.defineProperty(t.prototype,"constructor",{__proto__:null,value:t,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(t,"super",{__proto__:null,value:e.prototype}),i&&Object.assign(t.prototype,i)},Q4=(t,e,i,n)=>{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],(!n||n(s,t,e))&&!o[s]&&(e[s]=t[s],o[s]=!0);t=i!==!1&&Bc(t)}while(t&&(!i||i(t,e))&&t!==Object.prototype);return e},Y4=(t,e,i)=>{t=String(t),(i===void 0||i>t.length)&&(i=t.length),i-=e.length;let n=t.indexOf(e,i);return n!==-1&&n===i},X4=t=>{if(!t)return null;if(Kr(t))return t;let e=t.length;if(!iq(e))return null;let i=new Array(e);for(;e-- >0;)i[e]=t[e];return i},e3=(t=>e=>t&&e instanceof t)(typeof Uint8Array<"u"&&Bc(Uint8Array)),i3=(t,e)=>{let n=(t&&t[Fc]).call(t),a;for(;(a=n.next())&&!a.done;){let r=a.value;e.call(t,r[0],r[1])}},n3=(t,e)=>{let i,n=[];for(;(i=t.exec(e))!==null;)n.push(i);return n},t3=Tn("HTMLFormElement"),a3=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(i,n,a){return n.toUpperCase()+a}),sv=(({hasOwnProperty:t})=>(e,i)=>t.call(e,i))(Object.prototype),r3=Tn("RegExp"),aq=(t,e)=>{let i=Object.getOwnPropertyDescriptors(t),n={};Fo(i,(a,r)=>{let s;(s=e(a,r,t))!==!1&&(n[r]=s||a)}),Object.defineProperties(t,n)},s3=t=>{aq(t,(e,i)=>{if(Ji(t)&&["arguments","caller","callee"].includes(i))return!1;let n=t[i];if(Ji(n)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+i+"'")})}})},o3=(t,e)=>{let i={},n=a=>{a.forEach(r=>{i[r]=!0})};return Kr(t)?n(t):n(String(t).split(e)),i},l3=()=>{},u3=(t,e)=>t!=null&&Number.isFinite(t=+t)?t:e;function c3(t){return!!(t&&Ji(t.append)&&t[Xk]==="FormData"&&t[Fc])}var p3=t=>{let e=new WeakSet,i=n=>{if(Bo(n)){if(e.has(n))return;if(Wo(n))return n;if(!("toJSON"in n)){e.add(n);let a=Kr(n)?[]:{};return Fo(n,(r,s)=>{let o=i(r);!Jr(o)&&(a[s]=o)}),e.delete(n),a}}return n};return i(t)},d3=Tn("AsyncFunction"),h3=t=>t&&(Bo(t)||Ji(t))&&Ji(t.then)&&Ji(t.catch),rq=((t,e)=>t?setImmediate:e?((i,n)=>(Ha.addEventListener("message",({source:a,data:r})=>{a===Ha&&r===i&&n.length&&n.shift()()},!1),a=>{n.push(a),Ha.postMessage(i,"*")}))(`axios@${Math.random()}`,[]):i=>setTimeout(i))(typeof setImmediate=="function",Ji(Ha.postMessage)),g3=typeof queueMicrotask<"u"?queueMicrotask.bind(Ha):typeof process<"u"&&process.nextTick||rq,m3=t=>t!=null&&Ji(t[Fc]),C={isArray:Kr,isArrayBuffer:eq,isBuffer:Wo,isFormData:N4,isArrayBufferView:M4,isString:E4,isNumber:iq,isBoolean:k4,isObject:Bo,isPlainObject:Dc,isEmptyObject:q4,isReadableStream:L4,isRequest:W4,isResponse:B4,isHeaders:F4,isUndefined:Jr,isDate:_4,isFile:H4,isReactNativeBlob:R4,isReactNative:I4,isBlob:z4,isRegExp:r3,isFunction:Ji,isStream:G4,isURLSearchParams:U4,isTypedArray:e3,isFileList:D4,forEach:Fo,merge:rv,extend:J4,trim:V4,stripBOM:Z4,inherits:K4,toFlatObject:Q4,kindOf:Vc,kindOfTest:Tn,endsWith:Y4,toArray:X4,forEachEntry:i3,matchAll:n3,isHTMLForm:t3,hasOwnProperty:sv,hasOwnProp:sv,reduceDescriptors:aq,freezeMethods:s3,toObjectSet:o3,toCamelCase:a3,noop:l3,toFiniteNumber:u3,findKey:nq,global:Ha,isContextDefined:tq,isSpecCompliantForm:c3,toJSONObject:p3,isAsyncFn:d3,isThenable:h3,setImmediate:rq,asap:g3,isIterable:m3},f3=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"]),w3=t=>{let e={},i,n,a;return t&&t.split(` +`);let{statusCode:h,buffered:g}=yield d;if(h===200){if(e.once("socket",t4),i.secureEndpoint){Io("Upgrading socket connection to TLS");let f=i.servername||i.host;return gk.default.connect(Object.assign(Object.assign({},s4(i,"host","hostname","path","port")),{socket:r,servername:f}))}return r}r.destroy();let m=new hk.default.Socket({writable:!1});return m.readable=!0,e.once("socket",f=>{Io("replaying proxy buffer for failed request"),XJ.default(f.listenerCount("data")>0),f.push(g),f.push(null)}),m})}};ka.default=zw;function t4(t){t.resume()}function a4(t,e){return!!(!e&&t===80||e&&t===443)}function r4(t){return typeof t=="string"?/^https:?$/i.test(t):!1}function s4(t,...e){let i={},n;for(n in t)e.includes(n)||(i[n]=t[n]);return i}});var wk=w(($w,fk)=>{"use strict";var o4=$w&&$w.__importDefault||function(t){return t&&t.__esModule?t:{default:t}},Dw=o4(mk());function Gw(t){return new Dw.default(t)}(function(t){t.HttpsProxyAgent=Dw.default,t.prototype=Dw.default.prototype})(Gw||(Gw={}));fk.exports=Gw});var Ck=w((loe,vk)=>{var zo;vk.exports=function(){if(!zo){try{zo=qo()("follow-redirects")}catch{}typeof zo!="function"&&(zo=function(){})}zo.apply(null,arguments)}});var jk=w((uoe,Yw)=>{var Go=require("url"),Do=Go.URL,l4=require("http"),u4=require("https"),Bw=require("stream").Writable,Fw=require("assert"),Ak=Ck();(function(){var e=typeof process<"u",i=typeof window<"u"&&typeof document<"u",n=_a(Error.captureStackTrace);!e&&(i||!n)&&console.warn("The follow-redirects package should be excluded from browser builds.")})();var Vw=!1;try{Fw(new Do(""))}catch(t){Vw=t.code==="ERR_INVALID_URL"}var c4=["Authorization","Proxy-Authorization","Cookie"],p4=["auth","host","hostname","href","path","pathname","port","protocol","query","search","hash"],Jw=["abort","aborted","connect","error","socket","timeout"],Zw=Object.create(null);Jw.forEach(function(t){Zw[t]=function(e,i,n){this._redirectable.emit(t,e,i,n)}});var Uw=$o("ERR_INVALID_URL","Invalid URL",TypeError),Lw=$o("ERR_FR_REDIRECTION_FAILURE","Redirected request failed"),d4=$o("ERR_FR_TOO_MANY_REDIRECTS","Maximum number of redirects exceeded",Lw),h4=$o("ERR_FR_MAX_BODY_LENGTH_EXCEEDED","Request body larger than maxBodyLength limit"),g4=$o("ERR_STREAM_WRITE_AFTER_END","write after end"),m4=Bw.prototype.destroy||yk;function Fi(t,e){Bw.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 i=this;this._onNativeResponse=function(n){try{i._processResponse(n)}catch(a){i.emit("error",a instanceof Lw?a:new Lw({cause:a}))}},this._headerFilter=new RegExp("^(?:"+c4.concat(t.sensitiveHeaders).map(b4).join("|")+")$","i"),this._performRequest()}Fi.prototype=Object.create(Bw.prototype);Fi.prototype.abort=function(){Qw(this._currentRequest),this._currentRequest.abort(),this.emit("abort")};Fi.prototype.destroy=function(t){return Qw(this._currentRequest,t),m4.call(this,t),this};Fi.prototype.write=function(t,e,i){if(this._ending)throw new g4;if(!qa(t)&&!C4(t))throw new TypeError("data should be a string, Buffer or Uint8Array");if(_a(e)&&(i=e,e=null),t.length===0){i&&i();return}this._requestBodyLength+t.length<=this._options.maxBodyLength?(this._requestBodyLength+=t.length,this._requestBodyBuffers.push({data:t,encoding:e}),this._currentRequest.write(t,e,i)):(this.emit("error",new h4),this.abort())};Fi.prototype.end=function(t,e,i){if(_a(t)?(i=t,t=e=null):_a(e)&&(i=e,e=null),!t)this._ended=this._ending=!0,this._currentRequest.end(null,null,i);else{var n=this,a=this._currentRequest;this.write(t,e,function(){n._ended=!0,a.end(null,null,i)}),this._ending=!0}};Fi.prototype.setHeader=function(t,e){this._options.headers[t]=e,this._currentRequest.setHeader(t,e)};Fi.prototype.removeHeader=function(t){delete this._options.headers[t],this._currentRequest.removeHeader(t)};Fi.prototype.setTimeout=function(t,e){var i=this;function n(s){s.setTimeout(t),s.removeListener("timeout",s.destroy),s.addListener("timeout",s.destroy)}function a(s){i._timeout&&clearTimeout(i._timeout),i._timeout=setTimeout(function(){i.emit("timeout"),r()},t),n(s)}function r(){i._timeout&&(clearTimeout(i._timeout),i._timeout=null),i.removeListener("abort",r),i.removeListener("error",r),i.removeListener("response",r),i.removeListener("close",r),e&&i.removeListener("timeout",e),i.socket||i._currentRequest.removeListener("socket",a)}return e&&this.on("timeout",e),this.socket?a(this.socket):this._currentRequest.once("socket",a),this.on("socket",n),this.on("abort",r),this.on("error",r),this.on("response",r),this.on("close",r),this};["flushHeaders","getHeader","setNoDelay","setSocketKeepAlive"].forEach(function(t){Fi.prototype[t]=function(e,i){return this._currentRequest[t](e,i)}});["aborted","connection","socket"].forEach(function(t){Object.defineProperty(Fi.prototype,t,{get:function(){return this._currentRequest[t]}})});Fi.prototype._sanitizeOptions=function(t){if(t.headers||(t.headers={}),v4(t.sensitiveHeaders)||(t.sensitiveHeaders=[]),t.host&&(t.hostname||(t.hostname=t.host),delete t.host),!t.pathname&&t.path){var e=t.path.indexOf("?");e<0?t.pathname=t.path:(t.pathname=t.path.substring(0,e),t.search=t.path.substring(e))}};Fi.prototype._performRequest=function(){var t=this._options.protocol,e=this._options.nativeProtocols[t];if(!e)throw new TypeError("Unsupported protocol "+t);if(this._options.agents){var i=t.slice(0,-1);this._options.agent=this._options.agents[i]}var n=this._currentRequest=e.request(this._options,this._onNativeResponse);n._redirectable=this;for(var a of Jw)n.on(a,Zw[a]);if(this._currentUrl=/^\//.test(this._options.path)?Go.format(this._options):this._options.path,this._isRedirect){var r=0,s=this,o=this._requestBodyBuffers;(function l(u){if(n===s._currentRequest)if(u)s.emit("error",u);else if(r=400){t.responseUrl=this._currentUrl,t.redirects=this._redirects,this.emit("response",t),this._requestBodyBuffers=[];return}if(Qw(this._currentRequest),t.destroy(),++this._redirectCount>this._options.maxRedirects)throw new d4;var n,a=this._options.beforeRedirect;a&&(n=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=[],Nw(/^content-/i,this._options.headers));var s=Nw(/^host$/i,this._options.headers),o=Kw(this._currentUrl),l=s||o.host,u=/^\w+:/.test(i)?this._currentUrl:Go.format(Object.assign(o,{host:l})),c=f4(i,u);if(Ak("redirecting to",c.href),this._isRedirect=!0,Ww(c,this._options),(c.protocol!==o.protocol&&c.protocol!=="https:"||c.host!==l&&!w4(c.host,l))&&Nw(this._headerFilter,this._options.headers),_a(a)){var p={headers:t.headers,statusCode:e},d={url:u,method:r,headers:n};a(this._options,p,d),this._sanitizeOptions(this._options)}this._performRequest()};function bk(t){var e={maxRedirects:21,maxBodyLength:10485760},i={};return Object.keys(t).forEach(function(n){var a=n+":",r=i[a]=t[n],s=e[n]=Object.create(r);function o(u,c,p){return A4(u)?u=Ww(u):qa(u)?u=Ww(Kw(u)):(p=c,c=Pk(u),u={protocol:a}),_a(c)&&(p=c,c=null),c=Object.assign({maxRedirects:e.maxRedirects,maxBodyLength:e.maxBodyLength},u,c),c.nativeProtocols=i,!qa(c.host)&&!qa(c.hostname)&&(c.hostname="::1"),Fw.equal(c.protocol,a,"protocol mismatch"),Ak("options",c),new Fi(c,p)}function l(u,c,p){var d=s.request(u,c,p);return d.end(),d}Object.defineProperties(s,{request:{value:o,configurable:!0,enumerable:!0,writable:!0},get:{value:l,configurable:!0,enumerable:!0,writable:!0}})}),e}function yk(){}function Kw(t){var e;if(Vw)e=new Do(t);else if(e=Pk(Go.parse(t)),!qa(e.protocol))throw new Uw({input:t});return e}function f4(t,e){return Vw?new Do(t,e):Kw(Go.resolve(e,t))}function Pk(t){if(/^\[/.test(t.hostname)&&!/^\[[:0-9a-f]+\]$/i.test(t.hostname))throw new Uw({input:t.href||t});if(/^\[/.test(t.host)&&!/^\[[:0-9a-f]+\](:\d+)?$/i.test(t.host))throw new Uw({input:t.href||t});return t}function Ww(t,e){var i=e||{};for(var n of p4)i[n]=t[n];return i.hostname.startsWith("[")&&(i.hostname=i.hostname.slice(1,-1)),i.port!==""&&(i.port=Number(i.port)),i.path=i.search?i.pathname+i.search:i.pathname,i}function Nw(t,e){var i;for(var n in e)t.test(n)&&(i=e[n],delete e[n]);return i===null||typeof i>"u"?void 0:String(i).trim()}function $o(t,e,i){function n(a){_a(Error.captureStackTrace)&&Error.captureStackTrace(this,this.constructor),Object.assign(this,a||{}),this.code=t,this.message=this.cause?e+": "+this.cause.message:e}return n.prototype=new(i||Error),Object.defineProperties(n.prototype,{constructor:{value:n,enumerable:!1},name:{value:"Error ["+t+"]",enumerable:!1}}),n}function Qw(t,e){for(var i of Jw)t.removeListener(i,Zw[i]);t.on("error",yk),t.destroy(e)}function w4(t,e){Fw(qa(t)&&qa(e));var i=t.length-e.length-1;return i>0&&t[i]==="."&&t.endsWith(e)}function v4(t){return t instanceof Array}function qa(t){return typeof t=="string"||t instanceof String}function _a(t){return typeof t=="function"}function C4(t){return typeof t=="object"&&"length"in t}function A4(t){return Do&&t instanceof Do}function b4(t){return t.replace(/[\]\\/()*+?.$]/g,"\\$&")}Yw.exports=bk({http:l4,https:u4});Yw.exports.wrap=bk});var jq=w((coe,Pq)=>{"use strict";var Zk=nk(),y4=require("crypto"),P4=require("url"),Kk=wk(),j4=require("http"),S4=require("https"),Qk=require("http2"),mv=require("util"),Sk=require("path"),O4=jk(),Dt=require("zlib"),Vi=require("stream"),x4=require("events");function Yk(t,e){return function(){return t.apply(e,arguments)}}var{toString:T4}=Object.prototype,{getPrototypeOf:Bc}=Object,{iterator:Fc,toStringTag:Xk}=Symbol,Vc=(t=>e=>{let i=T4.call(e);return t[i]||(t[i]=i.slice(8,-1).toLowerCase())})(Object.create(null)),Tn=t=>(t=t.toLowerCase(),e=>Vc(e)===t),Jc=t=>e=>typeof e===t,{isArray:Qr}=Array,Zr=Jc("undefined");function Wo(t){return t!==null&&!Zr(t)&&t.constructor!==null&&!Zr(t.constructor)&&Ji(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}var eq=Tn("ArrayBuffer");function M4(t){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&eq(t.buffer),e}var E4=Jc("string"),Ji=Jc("function"),iq=Jc("number"),Bo=t=>t!==null&&typeof t=="object",k4=t=>t===!0||t===!1,Dc=t=>{if(Vc(t)!=="object")return!1;let e=Bc(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Xk in t)&&!(Fc in t)},q4=t=>{if(!Bo(t)||Wo(t))return!1;try{return Object.keys(t).length===0&&Object.getPrototypeOf(t)===Object.prototype}catch{return!1}},_4=Tn("Date"),H4=Tn("File"),R4=t=>!!(t&&typeof t.uri<"u"),I4=t=>t&&typeof t.getParts<"u",z4=Tn("Blob"),D4=Tn("FileList"),G4=t=>Bo(t)&&Ji(t.pipe);function $4(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}}var Ok=$4(),xk=typeof Ok.FormData<"u"?Ok.FormData:void 0,N4=t=>{if(!t)return!1;if(xk&&t instanceof xk)return!0;let e=Bc(t);if(!e||e===Object.prototype||!Ji(t.append))return!1;let i=Vc(t);return i==="formdata"||i==="object"&&Ji(t.toString)&&t.toString()==="[object FormData]"},U4=Tn("URLSearchParams"),[L4,W4,B4,F4]=["ReadableStream","Request","Response","Headers"].map(Tn),V4=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Fo(t,e,{allOwnKeys:i=!1}={}){if(t===null||typeof t>"u")return;let n,a;if(typeof t!="object"&&(t=[t]),Qr(t))for(n=0,a=t.length;n0;)if(a=i[n],e===a.toLowerCase())return a;return null}var Ha=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,tq=t=>!Zr(t)&&t!==Ha;function rv(...t){let{caseless:e,skipUndefined:i}=tq(this)&&this||{},n={},a=(r,s)=>{if(s==="__proto__"||s==="constructor"||s==="prototype")return;let o=e&&nq(n,s)||s,l=sv(n,o)?n[o]:void 0;Dc(l)&&Dc(r)?n[o]=rv(l,r):Dc(r)?n[o]=rv({},r):Qr(r)?n[o]=r.slice():(!i||!Zr(r))&&(n[o]=r)};for(let r=0,s=t.length;r(Fo(e,(a,r)=>{i&&Ji(a)?Object.defineProperty(t,r,{__proto__:null,value:Yk(a,i),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(t,r,{__proto__:null,value:a,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:n}),t),Z4=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),K4=(t,e,i,n)=>{t.prototype=Object.create(e.prototype,n),Object.defineProperty(t.prototype,"constructor",{__proto__:null,value:t,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(t,"super",{__proto__:null,value:e.prototype}),i&&Object.assign(t.prototype,i)},Q4=(t,e,i,n)=>{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],(!n||n(s,t,e))&&!o[s]&&(e[s]=t[s],o[s]=!0);t=i!==!1&&Bc(t)}while(t&&(!i||i(t,e))&&t!==Object.prototype);return e},Y4=(t,e,i)=>{t=String(t),(i===void 0||i>t.length)&&(i=t.length),i-=e.length;let n=t.indexOf(e,i);return n!==-1&&n===i},X4=t=>{if(!t)return null;if(Qr(t))return t;let e=t.length;if(!iq(e))return null;let i=new Array(e);for(;e-- >0;)i[e]=t[e];return i},e3=(t=>e=>t&&e instanceof t)(typeof Uint8Array<"u"&&Bc(Uint8Array)),i3=(t,e)=>{let n=(t&&t[Fc]).call(t),a;for(;(a=n.next())&&!a.done;){let r=a.value;e.call(t,r[0],r[1])}},n3=(t,e)=>{let i,n=[];for(;(i=t.exec(e))!==null;)n.push(i);return n},t3=Tn("HTMLFormElement"),a3=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(i,n,a){return n.toUpperCase()+a}),sv=(({hasOwnProperty:t})=>(e,i)=>t.call(e,i))(Object.prototype),r3=Tn("RegExp"),aq=(t,e)=>{let i=Object.getOwnPropertyDescriptors(t),n={};Fo(i,(a,r)=>{let s;(s=e(a,r,t))!==!1&&(n[r]=s||a)}),Object.defineProperties(t,n)},s3=t=>{aq(t,(e,i)=>{if(Ji(t)&&["arguments","caller","callee"].includes(i))return!1;let n=t[i];if(Ji(n)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+i+"'")})}})},o3=(t,e)=>{let i={},n=a=>{a.forEach(r=>{i[r]=!0})};return Qr(t)?n(t):n(String(t).split(e)),i},l3=()=>{},u3=(t,e)=>t!=null&&Number.isFinite(t=+t)?t:e;function c3(t){return!!(t&&Ji(t.append)&&t[Xk]==="FormData"&&t[Fc])}var p3=t=>{let e=new WeakSet,i=n=>{if(Bo(n)){if(e.has(n))return;if(Wo(n))return n;if(!("toJSON"in n)){e.add(n);let a=Qr(n)?[]:{};return Fo(n,(r,s)=>{let o=i(r);!Zr(o)&&(a[s]=o)}),e.delete(n),a}}return n};return i(t)},d3=Tn("AsyncFunction"),h3=t=>t&&(Bo(t)||Ji(t))&&Ji(t.then)&&Ji(t.catch),rq=((t,e)=>t?setImmediate:e?((i,n)=>(Ha.addEventListener("message",({source:a,data:r})=>{a===Ha&&r===i&&n.length&&n.shift()()},!1),a=>{n.push(a),Ha.postMessage(i,"*")}))(`axios@${Math.random()}`,[]):i=>setTimeout(i))(typeof setImmediate=="function",Ji(Ha.postMessage)),g3=typeof queueMicrotask<"u"?queueMicrotask.bind(Ha):typeof process<"u"&&process.nextTick||rq,m3=t=>t!=null&&Ji(t[Fc]),C={isArray:Qr,isArrayBuffer:eq,isBuffer:Wo,isFormData:N4,isArrayBufferView:M4,isString:E4,isNumber:iq,isBoolean:k4,isObject:Bo,isPlainObject:Dc,isEmptyObject:q4,isReadableStream:L4,isRequest:W4,isResponse:B4,isHeaders:F4,isUndefined:Zr,isDate:_4,isFile:H4,isReactNativeBlob:R4,isReactNative:I4,isBlob:z4,isRegExp:r3,isFunction:Ji,isStream:G4,isURLSearchParams:U4,isTypedArray:e3,isFileList:D4,forEach:Fo,merge:rv,extend:J4,trim:V4,stripBOM:Z4,inherits:K4,toFlatObject:Q4,kindOf:Vc,kindOfTest:Tn,endsWith:Y4,toArray:X4,forEachEntry:i3,matchAll:n3,isHTMLForm:t3,hasOwnProperty:sv,hasOwnProp:sv,reduceDescriptors:aq,freezeMethods:s3,toObjectSet:o3,toCamelCase:a3,noop:l3,toFiniteNumber:u3,findKey:nq,global:Ha,isContextDefined:tq,isSpecCompliantForm:c3,toJSONObject:p3,isAsyncFn:d3,isThenable:h3,setImmediate:rq,asap:g3,isIterable:m3},f3=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"]),w3=t=>{let e={},i,n,a;return t&&t.split(` `).forEach(function(s){a=s.indexOf(":"),i=s.substring(0,a).trim().toLowerCase(),n=s.substring(a+1).trim(),!(!i||e[i]&&f3[i])&&(i==="set-cookie"?e[i]?e[i].push(n):e[i]=[n]:e[i]=e[i]?e[i]+", "+n:n)}),e};function v3(t){let e=0,i=t.length;for(;ee;){let n=t.charCodeAt(i-1);if(n!==9&&n!==32)break;i-=1}return e===0&&i===t.length?t:t.slice(e,i)}var C3=new RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+","g"),A3=new RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+","g");function fv(t,e){return C.isArray(t)?t.map(i=>fv(i,e)):v3(String(t).replace(e,""))}var b3=t=>fv(t,C3),y3=t=>fv(t,A3);function wv(t){let e=Object.create(null);return C.forEach(t.toJSON(),(i,n)=>{e[n]=y3(i)}),e}var Tk=Symbol("internals");function No(t){return t&&String(t).trim().toLowerCase()}function Gc(t){return t===!1||t==null?t:C.isArray(t)?t.map(Gc):b3(String(t))}function P3(t){let e=Object.create(null),i=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g,n;for(;n=i.exec(t);)e[n[1]]=n[2];return e}var j3=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function Xw(t,e,i,n,a){if(C.isFunction(n))return n.call(this,e,i);if(a&&(e=i),!!C.isString(e)){if(C.isString(n))return e.indexOf(n)!==-1;if(C.isRegExp(n))return n.test(e)}}function S3(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,i,n)=>i.toUpperCase()+n)}function O3(t,e){let i=C.toCamelCase(" "+e);["get","set","has"].forEach(n=>{Object.defineProperty(t,n+i,{__proto__:null,value:function(a,r,s){return this[n].call(this,e,a,r,s)},configurable:!0})})}var ti=class{constructor(e){e&&this.set(e)}set(e,i,n){let a=this;function r(o,l,u){let c=No(l);if(!c)throw new Error("header name must be a non-empty string");let p=C.findKey(a,c);(!p||a[p]===void 0||u===!0||u===void 0&&a[p]!==!1)&&(a[p||l]=Gc(o))}let s=(o,l)=>C.forEach(o,(u,c)=>r(u,c,l));if(C.isPlainObject(e)||e instanceof this.constructor)s(e,i);else if(C.isString(e)&&(e=e.trim())&&!j3(e))s(w3(e),i);else if(C.isObject(e)&&C.isIterable(e)){let o={},l,u;for(let c of e){if(!C.isArray(c))throw TypeError("Object iterator must return a key-value pair");o[u=c[0]]=(l=o[u])?C.isArray(l)?[...l,c[1]]:[l,c[1]]:c[1]}s(o,i)}else e!=null&&r(i,e,n);return this}get(e,i){if(e=No(e),e){let n=C.findKey(this,e);if(n){let a=this[n];if(!i)return a;if(i===!0)return P3(a);if(C.isFunction(i))return i.call(this,a,n);if(C.isRegExp(i))return i.exec(a);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,i){if(e=No(e),e){let n=C.findKey(this,e);return!!(n&&this[n]!==void 0&&(!i||Xw(this,this[n],n,i)))}return!1}delete(e,i){let n=this,a=!1;function r(s){if(s=No(s),s){let o=C.findKey(n,s);o&&(!i||Xw(n,n[o],o,i))&&(delete n[o],a=!0)}}return C.isArray(e)?e.forEach(r):r(e),a}clear(e){let i=Object.keys(this),n=i.length,a=!1;for(;n--;){let r=i[n];(!e||Xw(this,this[r],r,e,!0))&&(delete this[r],a=!0)}return a}normalize(e){let i=this,n={};return C.forEach(this,(a,r)=>{let s=C.findKey(n,r);if(s){i[s]=Gc(a),delete i[r];return}let o=e?S3(r):String(r).trim();o!==r&&delete i[r],i[o]=Gc(a),n[o]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){let i=Object.create(null);return C.forEach(this,(n,a)=>{n!=null&&n!==!1&&(i[a]=e&&C.isArray(n)?n.join(", "):n)}),i}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,i])=>e+": "+i).join(` -`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...i){let n=new this(e);return i.forEach(a=>n.set(a)),n}static accessor(e){let n=(this[Tk]=this[Tk]={accessors:{}}).accessors,a=this.prototype;function r(s){let o=No(s);n[o]||(O3(a,s),n[o]=!0)}return C.isArray(e)?e.forEach(r):r(e),this}};ti.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);C.reduceDescriptors(ti.prototype,({value:t},e)=>{let i=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(n){this[i]=n}}});C.freezeMethods(ti);var x3="[REDACTED ****]";function T3(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 M3(t,e){let i=new Set(e.map(r=>String(r).toLowerCase())),n=[],a=r=>{if(r===null||typeof r!="object"||C.isBuffer(r))return r;if(n.indexOf(r)!==-1)return;r instanceof ti&&(r=r.toJSON()),n.push(r);let s;if(C.isArray(r))s=[],r.forEach((o,l)=>{let u=a(o);C.isUndefined(u)||(s[l]=u)});else{if(!C.isPlainObject(r)&&T3(r))return n.pop(),r;s=Object.create(null);for(let[o,l]of Object.entries(r)){let u=i.has(o.toLowerCase())?x3:a(l);C.isUndefined(u)||(s[o]=u)}}return n.pop(),s};return a(t)}var T=class t extends Error{static from(e,i,n,a,r,s){let o=new t(e.message,i||e.code,n,a,r);return o.cause=e,o.name=e.name,e.status!=null&&o.status==null&&(o.status=e.status),s&&Object.assign(o,s),o}constructor(e,i,n,a,r){super(e),Object.defineProperty(this,"message",{__proto__:null,value:e,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,i&&(this.code=i),n&&(this.config=n),a&&(this.request=a),r&&(this.response=r,this.status=r.status)}toJSON(){let e=this.config,i=e&&C.hasOwnProp(e,"redact")?e.redact:void 0,n=C.isArray(i)&&i.length>0?M3(e,i):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:n,code:this.code,status:this.status}}};T.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE";T.ERR_BAD_OPTION="ERR_BAD_OPTION";T.ECONNABORTED="ECONNABORTED";T.ETIMEDOUT="ETIMEDOUT";T.ECONNREFUSED="ECONNREFUSED";T.ERR_NETWORK="ERR_NETWORK";T.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS";T.ERR_DEPRECATED="ERR_DEPRECATED";T.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE";T.ERR_BAD_REQUEST="ERR_BAD_REQUEST";T.ERR_CANCELED="ERR_CANCELED";T.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT";T.ERR_INVALID_URL="ERR_INVALID_URL";T.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";function ov(t){return C.isPlainObject(t)||C.isArray(t)}function sq(t){return C.endsWith(t,"[]")?t.slice(0,-2):t}function ev(t,e,i){return t?t.concat(e).map(function(a,r){return a=sq(a),!i&&r?"["+a+"]":a}).join(i?".":""):e}function E3(t){return C.isArray(t)&&!t.some(ov)}var k3=C.toFlatObject(C,{},null,function(e){return/^is[A-Z]/.test(e)});function Zc(t,e,i){if(!C.isObject(t))throw new TypeError("target must be an object");e=e||new(Zk||FormData),i=C.toFlatObject(i,{metaTokens:!0,dots:!1,indexes:!1},!1,function(f,v){return!C.isUndefined(v[f])});let n=i.metaTokens,a=i.visitor||p,r=i.dots,s=i.indexes,o=i.Blob||typeof Blob<"u"&&Blob,l=i.maxDepth===void 0?100:i.maxDepth,u=o&&C.isSpecCompliantForm(e);if(!C.isFunction(a))throw new TypeError("visitor must be a function");function c(m){if(m===null)return"";if(C.isDate(m))return m.toISOString();if(C.isBoolean(m))return m.toString();if(!u&&C.isBlob(m))throw new T("Blob is not supported. Use a Buffer instead.");return C.isArrayBuffer(m)||C.isTypedArray(m)?u&&typeof Blob=="function"?new Blob([m]):Buffer.from(m):m}function p(m,f,v){let y=m;if(C.isReactNative(e)&&C.isReactNativeBlob(m))return e.append(ev(v,f,r),c(m)),!1;if(m&&!v&&typeof m=="object"){if(C.endsWith(f,"{}"))f=n?f:f.slice(0,-2),m=JSON.stringify(m);else if(C.isArray(m)&&E3(m)||(C.isFileList(m)||C.endsWith(f,"[]"))&&(y=C.toArray(m)))return f=sq(f),y.forEach(function(b,O){!(C.isUndefined(b)||b===null)&&e.append(s===!0?ev([f],O,r):s===null?f:f+"[]",c(b))}),!1}return ov(m)?!0:(e.append(ev(v,f,r),c(m)),!1)}let d=[],h=Object.assign(k3,{defaultVisitor:p,convertValue:c,isVisitable:ov});function g(m,f,v=0){if(!C.isUndefined(m)){if(v>l)throw new T("Object is too deeply nested ("+v+" levels). Max depth: "+l,T.ERR_FORM_DATA_DEPTH_EXCEEDED);if(d.indexOf(m)!==-1)throw Error("Circular reference detected in "+f.join("."));d.push(m),C.forEach(m,function(A,b){(!(C.isUndefined(A)||A===null)&&a.call(e,A,C.isString(b)?b.trim():b,f,h))===!0&&g(A,f?f.concat(b):[b],v+1)}),d.pop()}}if(!C.isObject(t))throw new TypeError("data must be an object");return g(t),e}function Mk(t){let e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(t).replace(/[!'()~]|%20/g,function(n){return e[n]})}function oq(t,e){this._pairs=[],t&&Zc(t,this,e)}var lq=oq.prototype;lq.append=function(e,i){this._pairs.push([e,i])};lq.toString=function(e){let i=e?function(n){return e.call(this,n,Mk)}:Mk;return this._pairs.map(function(a){return i(a[0])+"="+i(a[1])},"").join("&")};function q3(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function vv(t,e,i){if(!e)return t;let n=i&&i.encode||q3,a=C.isFunction(i)?{serialize:i}:i,r=a&&a.serialize,s;if(r?s=r(e,a):s=C.isURLSearchParams(e)?e.toString():new oq(e,a).toString(n),s){let o=t.indexOf("#");o!==-1&&(t=t.slice(0,o)),t+=(t.indexOf("?")===-1?"?":"&")+s}return t}var Nc=class{constructor(){this.handlers=[]}use(e,i,n){return this.handlers.push({fulfilled:e,rejected:i,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){C.forEach(this.handlers,function(n){n!==null&&e(n)})}},Kc={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0},_3=P4.URLSearchParams,iv="abcdefghijklmnopqrstuvwxyz",Ek="0123456789",uq={DIGIT:Ek,ALPHA:iv,ALPHA_DIGIT:iv+iv.toUpperCase()+Ek},H3=(t=16,e=uq.ALPHA_DIGIT)=>{let i="",{length:n}=e,a=new Uint32Array(t);y4.randomFillSync(a);for(let r=0;re[0]==="[]"?"":e[1]||e[0])}function U3(t){let e={},i=Object.keys(t),n,a=i.length,r;for(n=0;n=i.length;return s=!s&&C.isArray(a)?a.length:s,l?(C.hasOwnProp(a,s)?a[s]=C.isArray(a[s])?a[s].concat(n):[a[s],n]:a[s]=n,!o):((!C.hasOwnProp(a,s)||!C.isObject(a[s]))&&(a[s]=[]),e(i,n,a[s],r)&&C.isArray(a[s])&&(a[s]=U3(a[s])),!o)}if(C.isFormData(t)&&C.isFunction(t.entries)){let i={};return C.forEachEntry(t,(n,a)=>{e(N3(n),a,i,0)}),i}return null}var Fr=(t,e)=>t!=null&&C.hasOwnProp(t,e)?t[e]:void 0;function L3(t,e,i){if(C.isString(t))try{return(e||JSON.parse)(t),C.trim(t)}catch(n){if(n.name!=="SyntaxError")throw n}return(i||JSON.stringify)(t)}var Vo={transitional:Kc,adapter:["xhr","http","fetch"],transformRequest:[function(e,i){let n=i.getContentType()||"",a=n.indexOf("application/json")>-1,r=C.isObject(e);if(r&&C.isHTMLForm(e)&&(e=new FormData(e)),C.isFormData(e))return a?JSON.stringify(cq(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 i.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let o;if(r){let l=Fr(this,"formSerializer");if(n.indexOf("application/x-www-form-urlencoded")>-1)return $3(e,l).toString();if((o=C.isFileList(e))||n.indexOf("multipart/form-data")>-1){let u=Fr(this,"env"),c=u&&u.FormData;return Zc(o?{"files[]":e}:e,c&&new c,l)}}return r||a?(i.setContentType("application/json",!1),L3(e)):e}],transformResponse:[function(e){let i=Fr(this,"transitional")||Vo.transitional,n=i&&i.forcedJSONParsing,a=Fr(this,"responseType"),r=a==="json";if(C.isResponse(e)||C.isReadableStream(e))return e;if(e&&C.isString(e)&&(n&&!a||r)){let o=!(i&&i.silentJSONParsing)&&r;try{return JSON.parse(e,Fr(this,"parseReviver"))}catch(l){if(o)throw l.name==="SyntaxError"?T.from(l,T.ERR_BAD_RESPONSE,this,null,Fr(this,"response")):l}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Qe.classes.FormData,Blob:Qe.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};C.forEach(["delete","get","head","post","put","patch","query"],t=>{Vo.headers[t]={}});function nv(t,e){let i=this||Vo,n=e||i,a=ti.from(n.headers),r=n.data;return C.forEach(t,function(o){r=o.call(i,r,a.normalize(),e?e.status:void 0)}),a.normalize(),r}function pq(t){return!!(t&&t.__CANCEL__)}var ut=class extends T{constructor(e,i,n){super(e??"canceled",T.ERR_CANCELED,i,n),this.name="CanceledError",this.__CANCEL__=!0}};function Vr(t,e,i){let n=i.config.validateStatus;!i.status||!n||n(i.status)?t(i):e(new T("Request failed with status code "+i.status,i.status>=400&&i.status<500?T.ERR_BAD_REQUEST:T.ERR_BAD_RESPONSE,i.config,i.request,i))}function W3(t){return typeof t!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function B3(t,e){return e?t.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):t}function Av(t,e,i){let n=!W3(e);return t&&(n||i===!1)?B3(t,e):e}var F3={ftp:21,gopher:70,http:80,https:443,ws:80,wss:443};function V3(t){try{return new URL(t)}catch{return null}}function J3(t){var e=(typeof t=="string"?V3(t):t)||{},i=e.protocol,n=e.host,a=e.port;if(typeof n!="string"||!n||typeof i!="string"||(i=i.split(":",1)[0],n=n.replace(/:\d*$/,""),a=parseInt(a)||F3[i]||0,!Z3(n,a)))return"";var r=uv(i+"_proxy")||uv("all_proxy");return r&&r.indexOf("://")===-1&&(r=i+"://"+r),r}function Z3(t,e){var i=uv("no_proxy").toLowerCase();return i?i==="*"?!1:i.split(/[,\s]/).every(function(n){if(!n)return!0;var a=n.match(/^(.+):(\d+)$/),r=a?a[1]:n,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 uv(t){return process.env[t.toLowerCase()]||process.env[t.toUpperCase()]||""}var Uo="1.16.1";function dq(t){let e=/^([-+\w]{1,25}):(?:\/\/)?/.exec(t);return e&&e[1]||""}var K3=/^([^,;]+\/[^,;]+)?((?:;[^,;=]+=[^,;]+)*)(;base64)?,([\s\S]*)$/;function Q3(t,e,i){let n=i&&i.Blob||Qe.classes.Blob,a=dq(t);if(e===void 0&&n&&(e=!0),a==="data"){t=a.length?t.slice(a.length+1):t;let r=K3.exec(t);if(!r)throw new T("Invalid URL",T.ERR_INVALID_URL);let s=r[1],o=r[2],l=r[3]?"base64":"utf8",u=r[4],c;s?c=o?s+o:s:o&&(c="text/plain"+o);let p=Buffer.from(decodeURIComponent(u),l);if(e){if(!n)throw new T("Blob is not supported",T.ERR_NOT_SUPPORT);return new n([p],{type:c})}return p}throw new T("Unsupported protocol "+a,T.ERR_NOT_SUPPORT)}var tv=Symbol("internals"),Uc=class extends Vi.Transform{constructor(e){e=C.toFlatObject(e,{maxRate:0,chunkSize:64*1024,minChunkSize:100,timeWindow:500,ticksRate:2,samplesCount:15},null,(n,a)=>!C.isUndefined(a[n])),super({readableHighWaterMark:e.chunkSize});let i=this[tv]={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",n=>{n==="progress"&&(i.isCaptured||(i.isCaptured=!0))})}_read(e){let i=this[tv];return i.onReadCallback&&i.onReadCallback(),super._read(e)}_transform(e,i,n){let a=this[tv],r=a.maxRate,s=this.readableHighWaterMark,o=a.timeWindow,l=1e3/o,u=r/l,c=a.minChunkSize!==!1?Math.max(a.minChunkSize,u*.01):0,p=(h,g)=>{let m=Buffer.byteLength(h);a.bytesSeen+=m,a.bytes+=m,a.isCaptured&&this.emit("progress",a.bytesSeen),this.push(h)?process.nextTick(g):a.onReadCallback=()=>{a.onReadCallback=null,process.nextTick(g)}},d=(h,g)=>{let m=Buffer.byteLength(h),f=null,v=s,y,A=0;if(r){let b=Date.now();(!a.ts||(A=b-a.ts)>=o)&&(a.ts=b,y=u-a.bytes,a.bytes=y<0?-y:0,A=0),y=u-a.bytes}if(r){if(y<=0)return setTimeout(()=>{g(null,h)},o-A);yv&&m-v>c&&(f=h.subarray(v),h=h.subarray(0,v)),p(h,f?()=>{process.nextTick(g,null,f)}:g)};d(e,function h(g,m){if(g)return n(g);m?d(m,h):n(null)})}},{asyncIterator:kk}=Symbol,hq=async function*(t){t.stream?yield*t.stream():t.arrayBuffer?yield await t.arrayBuffer():t[kk]?yield*t[kk]():yield t},Y3=Qe.ALPHABET.ALPHA_DIGIT+"-_",Lo=typeof TextEncoder=="function"?new TextEncoder:new mv.TextEncoder,Ra=`\r -`,X3=Lo.encode(Ra),eZ=2,cv=class{constructor(e,i){let{escapeName:n}=this.constructor,a=C.isString(i),r=`Content-Disposition: form-data; name="${n(e)}"${!a&&i.name?`; filename="${n(i.name)}"`:""}${Ra}`;if(a)i=Lo.encode(String(i).replace(/\r?\n|\r\n?/g,Ra));else{let s=String(i.type||"application/octet-stream").replace(/[\r\n]/g,"");r+=`Content-Type: ${s}${Ra}`}this.headers=Lo.encode(r+Ra),this.contentLength=a?i.byteLength:i.size,this.size=this.headers.byteLength+this.contentLength+eZ,this.name=e,this.value=i}async*encode(){yield this.headers;let{value:e}=this;C.isTypedArray(e)?yield e:yield*hq(e),yield X3}static escapeName(e){return String(e).replace(/[\r\n"]/g,i=>({"\r":"%0D","\n":"%0A",'"':"%22"})[i])}},iZ=(t,e,i)=>{let{tag:n="form-data-boundary",size:a=25,boundary:r=n+"-"+Qe.generateString(a,Y3)}=i||{};if(!C.isFormData(t))throw TypeError("FormData instance required");if(r.length<1||r.length>70)throw Error("boundary must be 1-70 characters long");let s=Lo.encode("--"+r+Ra),o=Lo.encode("--"+r+"--"+Ra),l=o.byteLength,u=Array.from(t.entries()).map(([p,d])=>{let h=new cv(p,d);return l+=h.size,h});l+=s.byteLength*u.length,l=C.toFiniteNumber(l);let c={"Content-Type":`multipart/form-data; boundary=${r}`};return Number.isFinite(l)&&(c["Content-Length"]=l),e&&e(c),Vi.Readable.from((async function*(){for(let p of u)yield s,yield*p.encode();yield o})())},pv=class extends Vi.Transform{__transform(e,i,n){this.push(e),n()}_transform(e,i,n){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,i)}this.__transform(e,i,n)}},nZ=(t,e)=>C.isAsyncFn(t)?function(...i){let n=i.pop();t.apply(this,i).then(a=>{try{e?n(null,...e(a)):n(null,a)}catch(r){n(r)}},n)}:t,tZ=new Set(["localhost"]),gq=t=>{let e=t.split(".");return e.length!==4||e[0]!=="127"?!1:e.every(i=>/^\d+$/.test(i)&&Number(i)>=0&&Number(i)<=255)},aZ=t=>{if(t==="::1")return!0;let e=t.match(/^::ffff:(\d+\.\d+\.\d+\.\d+)$/i);if(e)return gq(e[1]);let i=t.match(/^::ffff:([0-9a-f]{1,4}):([0-9a-f]{1,4})$/i);if(i){let a=parseInt(i[1],16);return a>=32512&&a<=32767}let n=t.split(":");if(n.length===8){for(let a=0;a<7;a++)if(!/^0+$/.test(n[a]))return!1;return/^0*1$/.test(n[7])}return!1},qk=t=>t?tZ.has(t)||gq(t)?!0:aZ(t):!1,rZ={http:80,https:443,ws:80,wss:443,ftp:21},sZ=t=>{let e=t,i=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))&&(i=Number.parseInt(o.slice(1),10)),[s,i]}}let n=e.indexOf(":"),a=e.lastIndexOf(":");return n!==-1&&n===a&&/^\d+$/.test(e.slice(a+1))&&(i=Number.parseInt(e.slice(a+1),10),e=e.slice(0,a)),[e,i]},oZ=/^(?:::|(?:0{1,4}:){1,4}:|(?:0{1,4}:){5})ffff:(\d+\.\d+\.\d+\.\d+)$/i,lZ=/^(?:::|(?:0{1,4}:){1,4}:|(?:0{1,4}:){5})ffff:([0-9a-f]{1,4}):([0-9a-f]{1,4})$/i,uZ=t=>{if(typeof t!="string"||t.indexOf(":")===-1)return t;let e=t.match(oZ);if(e)return e[1];let i=t.match(lZ);if(i){let n=parseInt(i[1],16),a=parseInt(i[2],16);return`${n>>8}.${n&255}.${a>>8}.${a&255}`}return t},_k=t=>t&&(t.charAt(0)==="["&&t.charAt(t.length-1)==="]"&&(t=t.slice(1,-1)),uZ(t.replace(/\.+$/,"")));function cZ(t){let e;try{e=new URL(t)}catch{return!1}let i=(process.env.no_proxy||process.env.NO_PROXY||"").toLowerCase();if(!i)return!1;if(i==="*")return!0;let n=Number.parseInt(e.port,10)||rZ[e.protocol.split(":",1)[0]]||0,a=_k(e.hostname.toLowerCase());return i.split(/[\s,]+/).some(r=>{if(!r)return!1;let[s,o]=sZ(r);return s=_k(s),!s||o&&o!==n?!1:(s.charAt(0)==="*"&&(s=s.slice(1)),s.charAt(0)==="."?a.endsWith(s):a===s||qk(a)&&qk(s))})}function pZ(t,e){t=t||10;let i=new Array(t),n=new Array(t),a=0,r=0,s;return e=e!==void 0?e:1e3,function(l){let u=Date.now(),c=n[r];s||(s=u),i[a]=l,n[a]=u;let p=r,d=0;for(;p!==a;)d+=i[p++],p=p%t;if(a=(a+1)%t,a===r&&(r=(r+1)%t),u-s{i=c,a=null,r&&(clearTimeout(r),r=null),t(...u)};return[(...u)=>{let c=Date.now(),p=c-i;p>=n?s(u,c):(a=u,r||(r=setTimeout(()=>{r=null,s(a)},n-p)))},()=>a&&s(a)]}var Zr=(t,e,i=3)=>{let n=0,a=pZ(50,250);return dZ(r=>{if(!r||typeof r.loaded!="number")return;let s=r.loaded,o=r.lengthComputable?r.total:void 0,l=o!=null?Math.min(s,o):s,u=Math.max(0,l-n),c=a(u);n=Math.max(n,l);let p={loaded:l,total:o,progress:o?l/o:void 0,bytes:u,rate:c||void 0,estimated:c&&o?(o-l)/c:void 0,event:r,lengthComputable:o!=null,[e?"download":"upload"]:!0};t(p)},i)},Lc=(t,e)=>{let i=t!=null;return[n=>e[0]({lengthComputable:i,total:t,loaded:n}),e[1]]},Wc=t=>(...e)=>C.asap(()=>t(...e));function mq(t){if(!t||typeof t!="string"||!t.startsWith("data:"))return 0;let e=t.indexOf(",");if(e<0)return 0;let i=t.slice(5,e),n=t.slice(e+1);if(/;base64/i.test(i)){let s=n.length,o=n.length;for(let h=0;h=48&&g<=57||g>=65&&g<=70||g>=97&&g<=102)&&(m>=48&&m<=57||m>=65&&m<=70||m>=97&&m<=102)&&(s-=2,h+=2)}let l=0,u=o-1,c=h=>h>=2&&n.charCodeAt(h-2)===37&&n.charCodeAt(h-1)===51&&(n.charCodeAt(h)===68||n.charCodeAt(h)===100);u>=0&&(n.charCodeAt(u)===61?(l++,u--):c(u)&&(l++,u-=3)),l===1&&u>=0&&(n.charCodeAt(u)===61||c(u))&&l++;let d=Math.floor(s/4)*3-(l||0);return d>0?d:0}if(typeof Buffer<"u"&&typeof Buffer.byteLength=="function")return Buffer.byteLength(n,"utf8");let r=0;for(let s=0,o=n.length;s=55296&&l<=56319&&s+1=56320&&u<=57343?(r+=4,s++):r+=3}else r+=3}return r}var Hk={flush:Dt.constants.Z_SYNC_FLUSH,finishFlush:Dt.constants.Z_SYNC_FLUSH},hZ={flush:Dt.constants.BROTLI_OPERATION_FLUSH,finishFlush:Dt.constants.BROTLI_OPERATION_FLUSH},Rk=C.isFunction(Dt.createBrotliDecompress),{http:gZ,https:mZ}=O4,fq=/https:?/,fZ=["content-type","content-length"];function wZ(t,e,i){if(i!=="content-only"){t.set(e);return}Object.entries(e).forEach(([n,a])=>{fZ.includes(n.toLowerCase())&&t.set(n,a)})}var Ik=Symbol("axios.http.socketListener"),Ic=Symbol("axios.http.currentReq"),wq=Symbol("axios.http.installedTunnel"),vZ=new Map,zk=new WeakMap;function CZ(t,e){let i=t.protocol+"//"+t.hostname+":"+(t.port||"")+"#"+(t.auth||""),n=e?zk.get(e)||zk.set(e,new Map).get(e):vZ,a=n.get(i);if(a)return a;let r=e&&e.options?{...e.options,...t}:t;return a=new Kk(r),a[wq]=!0,n.set(i,a),a}var Dk=Qe.protocols.map(t=>t+":"),Gk=t=>{if(!C.isString(t))return t;try{return decodeURIComponent(t)}catch{return t}},$k=(t,[e,i])=>(t.on("end",i).on("error",i),e),dv=class{constructor(){this.sessions=Object.create(null)}getSession(e,i){i=Object.assign({sessionTimeout:1e3},i);let n=this.sessions[e];if(n){let c=n.length;for(let p=0;p{if(r)return;r=!0;let c=n,p=c.length,d=p;for(;d--;)if(c[d][0]===a){p===1?delete this.sessions[e]:c.splice(d,1),a.closed||a.close();return}},o=a.request,{sessionTimeout:l}=i;if(l!=null){let c,p=0;a.request=function(){let d=o.apply(this,arguments);return p++,c&&(clearTimeout(c),c=null),d.once("close",()=>{--p||(c=setTimeout(()=>{c=null,s()},l))}),d}}a.once("close",s);let u=[a,i];return n?n.push(u):n=this.sessions[e]=[u],a}},AZ=new dv;function bZ(t,e,i){t.beforeRedirects.proxy&&t.beforeRedirects.proxy(t),t.beforeRedirects.config&&t.beforeRedirects.config(t,e,i)}function vq(t,e,i,n,a){let r=e;if(!r&&r!==!1){let s=J3(i);s&&(cZ(i)||(r=new URL(s)))}if(n&&t.headers)for(let s of Object.keys(t.headers))s.toLowerCase()==="proxy-authorization"&&delete t.headers[s];if(n&&t.agent&&t.agent[wq]&&(t.agent=void 0),r){let s=r instanceof URL,o=d=>s||C.hasOwnProp(r,d)?r[d]:void 0,l=o("username"),u=o("password"),c=C.hasOwnProp(r,"auth")?r.auth:void 0;if(l&&(c=(l||"")+":"+(u||"")),c){let d=typeof c=="object",h=d&&C.hasOwnProp(c,"username")?c.username:void 0,g=d&&C.hasOwnProp(c,"password")?c.password:void 0;if(!!(h||g))c=(h||"")+":"+(g||"");else if(d)throw new T("Invalid proxy authorization",T.ERR_BAD_OPTION,{proxy:r})}if(fq.test(t.protocol)){if(!(a instanceof Kk)){let d=o("hostname")||o("host"),h=o("port"),g=o("protocol"),m=g?g.includes(":")?g:`${g}:`:"http:",f=d&&d.includes(":")&&!d.startsWith("[")?`[${d}]`:d,v=new URL(`${m}//${f}${h?":"+h:""}`),y={protocol:v.protocol,hostname:v.hostname.replace(/^\[|\]$/g,""),port:v.port,auth:c&&typeof c=="string"?c:void 0};v.protocol==="https:"&&(y.ALPNProtocols=["http/1.1"]);let A=CZ(y,a);t.agent=A,t.agents&&(t.agents.https=A)}}else{if(c){let m=Buffer.from(c,"utf8").toString("base64");t.headers["Proxy-Authorization"]="Basic "+m}let d=!1;for(let m of Object.keys(t.headers))if(m.toLowerCase()==="host"){d=!0;break}d||(t.headers.host=t.hostname+(t.port?":"+t.port:""));let h=o("hostname")||o("host");t.hostname=h,t.host=h,t.port=o("port"),t.path=i;let g=o("protocol");g&&(t.protocol=g.includes(":")?g:`${g}:`)}}t.beforeRedirects.proxy=function(o){vq(o,e,o.href,!0,a)}}var yZ=typeof process<"u"&&C.kindOf(process)==="process",PZ=t=>new Promise((e,i)=>{let n,a,r=(l,u)=>{a||(a=!0,n&&n(l,u))},s=l=>{r(l),e(l)},o=l=>{r(l,!0),i(l)};t(s,o,l=>n=l).catch(o)}),jZ=({address:t,family:e})=>{if(!C.isString(t))throw TypeError("address must be a string");return{address:t,family:e||(t.indexOf(".")<0?6:4)}},Nk=(t,e)=>jZ(C.isObject(t)?t:{address:t,family:e}),SZ={request(t,e){let i=t.protocol+"//"+t.hostname+":"+(t.port||(t.protocol==="https:"?443:80)),{http2Options:n,headers:a}=t,r=AZ.getSession(i,n),{HTTP2_HEADER_SCHEME:s,HTTP2_HEADER_METHOD:o,HTTP2_HEADER_PATH:l,HTTP2_HEADER_STATUS:u}=Qk.constants,c={[s]:t.protocol.replace(":",""),[o]:t.method,[l]:t.path};C.forEach(a,(d,h)=>{h.charAt(0)!==":"&&(c[h]=d)});let p=r.request(c);return p.once("response",d=>{let h=p;d=Object.assign({},d);let g=d[u];delete d[u],h.headers=d,h.statusCode=+g,e(h)}),p}},OZ=yZ&&function(e){return PZ(async function(n,a,r){let s=G=>C.hasOwnProp(e,G)?e[G]:void 0,o=s("data"),l=s("lookup"),u=s("family"),c=s("httpVersion");c===void 0&&(c=1);let p=s("http2Options"),d=s("responseType"),h=s("responseEncoding"),g=e.method.toUpperCase(),m,f=!1,v,y;if(c=+c,Number.isNaN(c))throw TypeError(`Invalid protocol version: '${e.httpVersion}' is not a number`);if(c!==1&&c!==2)throw TypeError(`Unsupported protocol version '${c}'`);let A=c===2;if(l){let G=nZ(l,x=>C.isArray(x)?x:[x]);l=(x,be,Je)=>{G(x,be,(ye,ni,pi)=>{if(ye)return Je(ye);let xe=C.isArray(ni)?ni.map(gt=>Nk(gt)):[Nk(ni,pi)];be.all?Je(ye,xe):Je(ye,xe[0].address,xe[0].family)})}}let b=new x4.EventEmitter;function O(G){try{b.emit("abort",!G||G.type?new ut(null,e,v):G)}catch(x){console.warn("emit error",x)}}function $(){y&&(clearTimeout(y),y=null)}function N(){let G=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",x=e.transitional||Kc;return e.timeoutErrorMessage&&(G=e.timeoutErrorMessage),new T(G,x.clarifyTimeoutError?T.ETIMEDOUT:T.ECONNABORTED,e,v)}b.once("abort",a);let X=()=>{$(),e.cancelToken&&e.cancelToken.unsubscribe(O),e.signal&&e.signal.removeEventListener("abort",O),b.removeAllListeners()};(e.cancelToken||e.signal)&&(e.cancelToken&&e.cancelToken.subscribe(O),e.signal&&(e.signal.aborted?O():e.signal.addEventListener("abort",O))),r((G,x)=>{if(m=!0,$(),x){f=!0,X();return}let{data:be}=G;if(be instanceof Vi.Readable||be instanceof Vi.Duplex){let Je=Vi.finished(be,()=>{Je(),X()})}else X()});let F=Av(e.baseURL,e.url,e.allowAbsoluteUrls),k=new URL(F,Qe.hasBrowserEnv?Qe.origin:void 0),Q=k.protocol||Dk[0];if(Q==="data:"){if(e.maxContentLength>-1){let x=String(e.url||F||"");if(mq(x)>e.maxContentLength)return a(new T("maxContentLength size of "+e.maxContentLength+" exceeded",T.ERR_BAD_RESPONSE,e))}let G;if(g!=="GET")return Vr(n,a,{status:405,statusText:"method not allowed",headers:{},config:e});try{G=Q3(e.url,d==="blob",{Blob:e.env&&e.env.Blob})}catch(x){throw T.from(x,T.ERR_BAD_REQUEST,e)}return d==="text"?(G=G.toString(h),(!h||h==="utf8")&&(G=C.stripBOM(G))):d==="stream"&&(G=Vi.Readable.from(G)),Vr(n,a,{data:G,status:200,statusText:"OK",headers:new ti,config:e})}if(Dk.indexOf(Q)===-1)return a(new T("Unsupported protocol "+Q,T.ERR_BAD_REQUEST,e));let Z=ti.from(e.headers).normalize();Z.set("User-Agent","axios/"+Uo,!1);let{onUploadProgress:ie,onDownloadProgress:se}=e,De=e.maxRate,S,R;if(C.isSpecCompliantForm(o)){let G=Z.getContentType(/boundary=([-_\w\d]{10,70})/i);o=iZ(o,x=>{Z.set(x)},{tag:`axios-${Uo}-boundary`,boundary:G&&G[1]||void 0})}else if(C.isFormData(o)&&C.isFunction(o.getHeaders)&&o.getHeaders!==Object.prototype.getHeaders){if(wZ(Z,o.getHeaders(),s("formDataHeaderPolicy")),!Z.hasContentLength())try{let G=await mv.promisify(o.getLength).call(o);Number.isFinite(G)&&G>=0&&Z.setContentLength(G)}catch{}}else if(C.isBlob(o)||C.isFile(o))o.size&&Z.setContentType(o.type||"application/octet-stream"),Z.setContentLength(o.size||0),o=Vi.Readable.from(hq(o));else if(o&&!C.isStream(o)){if(!Buffer.isBuffer(o))if(C.isArrayBuffer(o))o=Buffer.from(new Uint8Array(o));else if(C.isString(o))o=Buffer.from(o,"utf-8");else return a(new T("Data after transformation must be a string, an ArrayBuffer, a Buffer, or a Stream",T.ERR_BAD_REQUEST,e));if(Z.setContentLength(o.length,!1),e.maxBodyLength>-1&&o.length>e.maxBodyLength)return a(new T("Request body larger than maxBodyLength limit",T.ERR_BAD_REQUEST,e))}let Ae=C.toFiniteNumber(Z.getContentLength());C.isArray(De)?(S=De[0],R=De[1]):S=R=De,o&&(ie||S)&&(C.isStream(o)||(o=Vi.Readable.from(o,{objectMode:!1})),o=Vi.pipeline([o,new Uc({maxRate:C.toFiniteNumber(S)})],C.noop),ie&&o.on("progress",$k(o,Lc(Ae,Zr(Wc(ie),!1,3)))));let Se,I=s("auth");if(I){let G=I.username||"",x=I.password||"";Se=G+":"+x}if(!Se&&k.username){let G=Gk(k.username),x=Gk(k.password);Se=G+":"+x}Se&&Z.delete("authorization");let ei;try{ei=vv(k.pathname+k.search,e.params,e.paramsSerializer).replace(/^\?/,"")}catch(G){let x=new Error(G.message);return x.config=e,x.url=e.url,x.exists=!0,a(x)}Z.set("Accept-Encoding","gzip, compress, deflate"+(Rk?", br":""),!1);let Re=Object.assign(Object.create(null),{path:ei,method:g,headers:wv(Z),agents:{http:e.httpAgent,https:e.httpsAgent},auth:Se,protocol:Q,family:u,beforeRedirect:bZ,beforeRedirects:Object.create(null),http2Options:p});if(!C.isUndefined(l)&&(Re.lookup=l),e.socketPath){if(typeof e.socketPath!="string")return a(new T("socketPath must be a string",T.ERR_BAD_OPTION_VALUE,e));if(e.allowedSocketPaths!=null){let G=Array.isArray(e.allowedSocketPaths)?e.allowedSocketPaths:[e.allowedSocketPaths],x=Sk.resolve(e.socketPath);if(!G.some(Je=>typeof Je=="string"&&Sk.resolve(Je)===x))return a(new T(`socketPath "${e.socketPath}" is not permitted by allowedSocketPaths`,T.ERR_BAD_OPTION_VALUE,e))}Re.socketPath=e.socketPath}else Re.hostname=k.hostname.startsWith("[")?k.hostname.slice(1,-1):k.hostname,Re.port=k.port,vq(Re,e.proxy,Q+"//"+k.hostname+(k.port?":"+k.port:"")+Re.path,!1,e.httpsAgent);let Me,Oi=!1,vi=fq.test(Re.protocol);if(Re.agent==null&&(Re.agent=vi?e.httpsAgent:e.httpAgent),A)Me=SZ;else{let G=s("transport");if(G)Me=G;else if(e.maxRedirects===0)Me=vi?S4:j4,Oi=!0;else{e.maxRedirects&&(Re.maxRedirects=e.maxRedirects);let x=s("beforeRedirect");x&&(Re.beforeRedirects.config=x),Me=vi?mZ:gZ}}e.maxBodyLength>-1?Re.maxBodyLength=e.maxBodyLength:Re.maxBodyLength=1/0,Re.insecureHTTPParser=!!s("insecureHTTPParser"),v=Me.request(Re,function(x){if($(),v.destroyed)return;let be=[x],Je=C.toFiniteNumber(x.headers["content-length"]);if(se||R){let xe=new Uc({maxRate:C.toFiniteNumber(R)});se&&xe.on("progress",$k(xe,Lc(Je,Zr(Wc(se),!0,3)))),be.push(xe)}let ye=x,ni=x.req||v;if(e.decompress!==!1&&x.headers["content-encoding"])switch((g==="HEAD"||x.statusCode===204)&&delete x.headers["content-encoding"],(x.headers["content-encoding"]||"").toLowerCase()){case"gzip":case"x-gzip":case"compress":case"x-compress":be.push(Dt.createUnzip(Hk)),delete x.headers["content-encoding"];break;case"deflate":be.push(new pv),be.push(Dt.createUnzip(Hk)),delete x.headers["content-encoding"];break;case"br":Rk&&(be.push(Dt.createBrotliDecompress(hZ)),delete x.headers["content-encoding"])}ye=be.length>1?Vi.pipeline(be,C.noop):be[0];let pi={status:x.statusCode,statusText:x.statusMessage,headers:new ti(x.headers),config:e,request:ni};if(d==="stream"){if(e.maxContentLength>-1){let xe=e.maxContentLength,gt=ye;async function*wn(){let Ge=0;for await(let Ya of gt){if(Ge+=Ya.length,Ge>xe)throw new T("maxContentLength size of "+xe+" exceeded",T.ERR_BAD_RESPONSE,e,ni);yield Ya}}ye=Vi.Readable.from(wn(),{objectMode:!1})}pi.data=ye,Vr(n,a,pi)}else{let xe=[],gt=0;ye.on("data",function(Ge){xe.push(Ge),gt+=Ge.length,e.maxContentLength>-1&>>e.maxContentLength&&(f=!0,ye.destroy(),O(new T("maxContentLength size of "+e.maxContentLength+" exceeded",T.ERR_BAD_RESPONSE,e,ni)))}),ye.on("aborted",function(){if(f)return;let Ge=new T("stream has been aborted",T.ERR_BAD_RESPONSE,e,ni,pi);ye.destroy(Ge),a(Ge)}),ye.on("error",function(Ge){f||a(T.from(Ge,null,e,ni,pi))}),ye.on("end",function(){try{let Ge=xe.length===1?xe[0]:Buffer.concat(xe);d!=="arraybuffer"&&(Ge=Ge.toString(h),(!h||h==="utf8")&&(Ge=C.stripBOM(Ge))),pi.data=Ge}catch(Ge){return a(T.from(Ge,null,e,pi.request,pi))}Vr(n,a,pi)})}b.once("abort",xe=>{ye.destroyed||(ye.emit("error",xe),ye.destroy())})}),b.once("abort",G=>{v.close?v.close():v.destroy(G)}),v.on("error",function(x){a(T.from(x,null,e,v))});let nn=new Set;if(v.on("socket",function(x){x.setKeepAlive(!0,1e3*60),x[Ik]||(x.on("error",function(Je){let ye=x[Ic];ye&&!ye.destroyed&&ye.destroy(Je)}),x[Ik]=!0),x[Ic]=v,nn.add(x)}),v.once("close",function(){$();for(let x of nn)x[Ic]===v&&(x[Ic]=null);nn.clear()}),e.timeout){let G=parseInt(e.timeout,10);if(Number.isNaN(G)){O(new T("error trying to parse `config.timeout` to int",T.ERR_BAD_OPTION_VALUE,e,v));return}let x=function(){m||O(N())};Oi&&G>0&&(y=setTimeout(x,G)),v.setTimeout(G,x)}else v.setTimeout(0);if(C.isStream(o)){let G=!1,x=!1;o.on("end",()=>{G=!0}),o.once("error",Je=>{x=!0,v.destroy(Je)}),o.on("close",()=>{!G&&!x&&O(new ut("Request stream has been aborted",e,v))});let be=o;if(e.maxBodyLength>-1&&e.maxRedirects===0){let Je=e.maxBodyLength,ye=0;be=Vi.pipeline([o,new Vi.Transform({transform(ni,pi,xe){if(ye+=ni.length,ye>Je)return xe(new T("Request body larger than maxBodyLength limit",T.ERR_BAD_REQUEST,e,v));xe(null,ni)}})],C.noop),be.on("error",ni=>{v.destroyed||v.destroy(ni)})}be.pipe(v)}else o&&v.write(o),v.end()})},xZ=Qe.hasStandardBrowserEnv?((t,e)=>i=>(i=new URL(i,Qe.origin),t.protocol===i.protocol&&t.host===i.host&&(e||t.port===i.port)))(new URL(Qe.origin),Qe.navigator&&/(msie|trident)/i.test(Qe.navigator.userAgent)):()=>!0,TZ=Qe.hasStandardBrowserEnv?{write(t,e,i,n,a,r,s){if(typeof document>"u")return;let o=[`${t}=${encodeURIComponent(e)}`];C.isNumber(i)&&o.push(`expires=${new Date(i).toUTCString()}`),C.isString(n)&&o.push(`path=${n}`),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 i=0;it instanceof ti?{...t}:t;function Ia(t,e){e=e||{};let i=Object.create(null);Object.defineProperty(i,"hasOwnProperty",{__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});function n(u,c,p,d){return C.isPlainObject(u)&&C.isPlainObject(c)?C.merge.call({caseless:d},u,c):C.isPlainObject(c)?C.merge({},c):C.isArray(c)?c.slice():c}function a(u,c,p,d){if(C.isUndefined(c)){if(!C.isUndefined(u))return n(void 0,u,p,d)}else return n(u,c,p,d)}function r(u,c){if(!C.isUndefined(c))return n(void 0,c)}function s(u,c){if(C.isUndefined(c)){if(!C.isUndefined(u))return n(void 0,u)}else return n(void 0,c)}function o(u,c,p){if(C.hasOwnProp(e,p))return n(u,c);if(C.hasOwnProp(t,p))return n(void 0,u)}let l={url:r,method:r,data:r,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,allowedSocketPaths:s,responseEncoding:s,validateStatus:o,headers:(u,c,p)=>a(Uk(u),Uk(c),p,!0)};return C.forEach(Object.keys({...t,...e}),function(c){if(c==="__proto__"||c==="constructor"||c==="prototype")return;let p=C.hasOwnProp(l,c)?l[c]:a,d=C.hasOwnProp(t,c)?t[c]:void 0,h=C.hasOwnProp(e,c)?e[c]:void 0,g=p(d,h,c);C.isUndefined(g)&&p!==o||(i[c]=g)}),i}var MZ=["content-type","content-length"];function EZ(t,e,i){if(i!=="content-only"){t.set(e);return}Object.entries(e).forEach(([n,a])=>{MZ.includes(n.toLowerCase())&&t.set(n,a)})}var kZ=t=>encodeURIComponent(t).replace(/%([0-9A-F]{2})/gi,(e,i)=>String.fromCharCode(parseInt(i,16))),Cq=t=>{let e=Ia({},t),i=d=>C.hasOwnProp(e,d)?e[d]:void 0,n=i("data"),a=i("withXSRFToken"),r=i("xsrfHeaderName"),s=i("xsrfCookieName"),o=i("headers"),l=i("auth"),u=i("baseURL"),c=i("allowAbsoluteUrls"),p=i("url");if(e.headers=o=ti.from(o),e.url=vv(Av(u,p,c),t.params,t.paramsSerializer),l&&o.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?kZ(l.password):""))),C.isFormData(n)&&(Qe.hasStandardBrowserEnv||Qe.hasStandardBrowserWebWorkerEnv?o.setContentType(void 0):C.isFunction(n.getHeaders)&&EZ(o,n.getHeaders(),i("formDataHeaderPolicy"))),Qe.hasStandardBrowserEnv&&(C.isFunction(a)&&(a=a(e)),a===!0||a==null&&xZ(e.url))){let h=r&&s&&TZ.read(s);h&&o.set(r,h)}return e},qZ=typeof XMLHttpRequest<"u",_Z=qZ&&function(t){return new Promise(function(i,n){let a=Cq(t),r=a.data,s=ti.from(a.headers).normalize(),{responseType:o,onUploadProgress:l,onDownloadProgress:u}=a,c,p,d,h,g;function m(){h&&h(),g&&g(),a.cancelToken&&a.cancelToken.unsubscribe(c),a.signal&&a.signal.removeEventListener("abort",c)}let f=new XMLHttpRequest;f.open(a.method.toUpperCase(),a.url,!0),f.timeout=a.timeout;function v(){if(!f)return;let A=ti.from("getAllResponseHeaders"in f&&f.getAllResponseHeaders()),O={data:!o||o==="text"||o==="json"?f.responseText:f.response,status:f.status,statusText:f.statusText,headers:A,config:t,request:f};Vr(function(N){i(N),m()},function(N){n(N),m()},O),f=null}"onloadend"in f?f.onloadend=v:f.onreadystatechange=function(){!f||f.readyState!==4||f.status===0&&!(f.responseURL&&f.responseURL.startsWith("file:"))||setTimeout(v)},f.onabort=function(){f&&(n(new T("Request aborted",T.ECONNABORTED,t,f)),m(),f=null)},f.onerror=function(b){let O=b&&b.message?b.message:"Network Error",$=new T(O,T.ERR_NETWORK,t,f);$.event=b||null,n($),m(),f=null},f.ontimeout=function(){let b=a.timeout?"timeout of "+a.timeout+"ms exceeded":"timeout exceeded",O=a.transitional||Kc;a.timeoutErrorMessage&&(b=a.timeoutErrorMessage),n(new T(b,O.clarifyTimeoutError?T.ETIMEDOUT:T.ECONNABORTED,t,f)),m(),f=null},r===void 0&&s.setContentType(null),"setRequestHeader"in f&&C.forEach(wv(s),function(b,O){f.setRequestHeader(O,b)}),C.isUndefined(a.withCredentials)||(f.withCredentials=!!a.withCredentials),o&&o!=="json"&&(f.responseType=a.responseType),u&&([d,g]=Zr(u,!0),f.addEventListener("progress",d)),l&&f.upload&&([p,h]=Zr(l),f.upload.addEventListener("progress",p),f.upload.addEventListener("loadend",h)),(a.cancelToken||a.signal)&&(c=A=>{f&&(n(!A||A.type?new ut(null,t,f):A),f.abort(),m(),f=null)},a.cancelToken&&a.cancelToken.subscribe(c),a.signal&&(a.signal.aborted?c():a.signal.addEventListener("abort",c)));let y=dq(a.url);if(y&&!Qe.protocols.includes(y)){n(new T("Unsupported protocol "+y+":",T.ERR_BAD_REQUEST,t));return}f.send(r||null)})},HZ=(t,e)=>{if(t=t?t.filter(Boolean):[],!e&&!t.length)return;let i=new AbortController,n=!1,a=function(l){if(!n){n=!0,s();let u=l instanceof Error?l:this.reason;i.abort(u instanceof T?u:new ut(u instanceof Error?u.message:u))}},r=e&&setTimeout(()=>{r=null,a(new T(`timeout of ${e}ms exceeded`,T.ETIMEDOUT))},e),s=()=>{t&&(r&&clearTimeout(r),r=null,t.forEach(l=>{l.unsubscribe?l.unsubscribe(a):l.removeEventListener("abort",a)}),t=null)};t.forEach(l=>l.addEventListener("abort",a));let{signal:o}=i;return o.unsubscribe=()=>C.asap(s),o},RZ=function*(t,e){let i=t.byteLength;if(i{let a=IZ(t,e),r=0,s,o=l=>{s||(s=!0,n&&n(l))};return new ReadableStream({async pull(l){try{let{done:u,value:c}=await a.next();if(u){o(),l.close();return}let p=c.byteLength;if(i){let d=r+=p;i(d)}l.enqueue(new Uint8Array(c))}catch(u){throw o(u),u}},cancel(l){return o(l),a.return()}},{highWaterMark:2})},Wk=64*1024,{isFunction:zc}=C,Bk=(t,...e)=>{try{return!!t(...e)}catch{return!1}},DZ=t=>{let e=C.global!==void 0&&C.global!==null?C.global:globalThis,{ReadableStream:i,TextEncoder:n}=e;t=C.merge.call({skipUndefined:!0},{Request:e.Request,Response:e.Response},t);let{fetch:a,Request:r,Response:s}=t,o=a?zc(a):typeof fetch=="function",l=zc(r),u=zc(s);if(!o)return!1;let c=o&&zc(i),p=o&&(typeof n=="function"?(v=>y=>v.encode(y))(new n):async v=>new Uint8Array(await new r(v).arrayBuffer())),d=l&&c&&Bk(()=>{let v=!1,y=new r(Qe.origin,{body:new i,method:"POST",get duplex(){return v=!0,"half"}}),A=y.headers.has("Content-Type");return y.body!=null&&y.body.cancel(),v&&!A}),h=u&&c&&Bk(()=>C.isReadableStream(new s("").body)),g={stream:h&&(v=>v.body)};o&&["text","arrayBuffer","blob","formData","stream"].forEach(v=>{!g[v]&&(g[v]=(y,A)=>{let b=y&&y[v];if(b)return b.call(y);throw new T(`Response type '${v}' is not supported`,T.ERR_NOT_SUPPORT,A)})});let m=async v=>{if(v==null)return 0;if(C.isBlob(v))return v.size;if(C.isSpecCompliantForm(v))return(await new r(Qe.origin,{method:"POST",body:v}).arrayBuffer()).byteLength;if(C.isArrayBufferView(v)||C.isArrayBuffer(v))return v.byteLength;if(C.isURLSearchParams(v)&&(v=v+""),C.isString(v))return(await p(v)).byteLength},f=async(v,y)=>{let A=C.toFiniteNumber(v.getContentLength());return A??m(y)};return async v=>{let{url:y,method:A,data:b,signal:O,cancelToken:$,timeout:N,onDownloadProgress:X,onUploadProgress:F,responseType:k,headers:Q,withCredentials:Z="same-origin",fetchOptions:ie,maxContentLength:se,maxBodyLength:De}=Cq(v),S=C.isNumber(se)&&se>-1,R=C.isNumber(De)&&De>-1,Ae=a||fetch;k=k?(k+"").toLowerCase():"text";let Se=HZ([O,$&&$.toAbortSignal()],N),I=null,ei=Se&&Se.unsubscribe&&(()=>{Se.unsubscribe()}),Re;try{if(S&&typeof y=="string"&&y.startsWith("data:")&&mq(y)>se)throw new T("maxContentLength size of "+se+" exceeded",T.ERR_BAD_RESPONSE,v,I);if(R&&A!=="get"&&A!=="head"){let x=await f(Q,b);if(typeof x=="number"&&isFinite(x)&&x>De)throw new T("Request body larger than maxBodyLength limit",T.ERR_BAD_REQUEST,v,I)}if(F&&d&&A!=="get"&&A!=="head"&&(Re=await f(Q,b))!==0){let x=new r(y,{method:"POST",body:b,duplex:"half"}),be;if(C.isFormData(b)&&(be=x.headers.get("content-type"))&&Q.setContentType(be),x.body){let[Je,ye]=Lc(Re,Zr(Wc(F)));b=Lk(x.body,Wk,Je,ye)}}C.isString(Z)||(Z=Z?"include":"omit");let Me=l&&"credentials"in r.prototype;if(C.isFormData(b)){let x=Q.getContentType();x&&/^multipart\/form-data/i.test(x)&&!/boundary=/i.test(x)&&Q.delete("content-type")}Q.set("User-Agent","axios/"+Uo,!1);let Oi={...ie,signal:Se,method:A.toUpperCase(),headers:wv(Q.normalize()),body:b,duplex:"half",credentials:Me?Z:void 0};I=l&&new r(y,Oi);let vi=await(l?Ae(I,ie):Ae(y,Oi));if(S){let x=C.toFiniteNumber(vi.headers.get("content-length"));if(x!=null&&x>se)throw new T("maxContentLength size of "+se+" exceeded",T.ERR_BAD_RESPONSE,v,I)}let nn=h&&(k==="stream"||k==="response");if(h&&vi.body&&(X||S||nn&&ei)){let x={};["status","statusText","headers"].forEach(xe=>{x[xe]=vi[xe]});let be=C.toFiniteNumber(vi.headers.get("content-length")),[Je,ye]=X&&Lc(be,Zr(Wc(X),!0))||[],ni=0,pi=xe=>{if(S&&(ni=xe,ni>se))throw new T("maxContentLength size of "+se+" exceeded",T.ERR_BAD_RESPONSE,v,I);Je&&Je(xe)};vi=new s(Lk(vi.body,Wk,pi,()=>{ye&&ye(),ei&&ei()}),x)}k=k||"text";let G=await g[C.findKey(g,k)||"text"](vi,v);if(S&&!h&&!nn){let x;if(G!=null&&(typeof G.byteLength=="number"?x=G.byteLength:typeof G.size=="number"?x=G.size:typeof G=="string"&&(x=typeof n=="function"?new n().encode(G).byteLength:G.length)),typeof x=="number"&&x>se)throw new T("maxContentLength size of "+se+" exceeded",T.ERR_BAD_RESPONSE,v,I)}return!nn&&ei&&ei(),await new Promise((x,be)=>{Vr(x,be,{data:G,headers:ti.from(vi.headers),status:vi.status,statusText:vi.statusText,config:v,request:I})})}catch(Me){if(ei&&ei(),Se&&Se.aborted&&Se.reason instanceof T){let Oi=Se.reason;throw Oi.config=v,I&&(Oi.request=I),Me!==Oi&&(Oi.cause=Me),Oi}throw Me&&Me.name==="TypeError"&&/Load failed|fetch/i.test(Me.message)?Object.assign(new T("Network Error",T.ERR_NETWORK,v,I,Me&&Me.response),{cause:Me.cause||Me}):T.from(Me,Me&&Me.code,v,I,Me&&Me.response)}}},GZ=new Map,Aq=t=>{let e=t&&t.env||{},{fetch:i,Request:n,Response:a}=e,r=[n,a,i],s=r.length,o=s,l,u,c=GZ;for(;o--;)l=r[o],u=c.get(l),u===void 0&&c.set(l,u=o?new Map:DZ(e)),c=u;return u};Aq();var bv={http:OZ,xhr:_Z,fetch:{get:Aq}};C.forEach(bv,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{__proto__:null,value:e})}catch{}Object.defineProperty(t,"adapterName",{__proto__:null,value:e})}});var Fk=t=>`- ${t}`,$Z=t=>C.isFunction(t)||t===null||t===!1;function NZ(t,e){t=C.isArray(t)?t:[t];let{length:i}=t,n,a,r={};for(let s=0;s`adapter ${l} `+(u===!1?"is not supported by the environment":"is not available in the build")),o=i?s.length>1?`since : +`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...i){let n=new this(e);return i.forEach(a=>n.set(a)),n}static accessor(e){let n=(this[Tk]=this[Tk]={accessors:{}}).accessors,a=this.prototype;function r(s){let o=No(s);n[o]||(O3(a,s),n[o]=!0)}return C.isArray(e)?e.forEach(r):r(e),this}};ti.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);C.reduceDescriptors(ti.prototype,({value:t},e)=>{let i=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(n){this[i]=n}}});C.freezeMethods(ti);var x3="[REDACTED ****]";function T3(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 M3(t,e){let i=new Set(e.map(r=>String(r).toLowerCase())),n=[],a=r=>{if(r===null||typeof r!="object"||C.isBuffer(r))return r;if(n.indexOf(r)!==-1)return;r instanceof ti&&(r=r.toJSON()),n.push(r);let s;if(C.isArray(r))s=[],r.forEach((o,l)=>{let u=a(o);C.isUndefined(u)||(s[l]=u)});else{if(!C.isPlainObject(r)&&T3(r))return n.pop(),r;s=Object.create(null);for(let[o,l]of Object.entries(r)){let u=i.has(o.toLowerCase())?x3:a(l);C.isUndefined(u)||(s[o]=u)}}return n.pop(),s};return a(t)}var T=class t extends Error{static from(e,i,n,a,r,s){let o=new t(e.message,i||e.code,n,a,r);return o.cause=e,o.name=e.name,e.status!=null&&o.status==null&&(o.status=e.status),s&&Object.assign(o,s),o}constructor(e,i,n,a,r){super(e),Object.defineProperty(this,"message",{__proto__:null,value:e,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,i&&(this.code=i),n&&(this.config=n),a&&(this.request=a),r&&(this.response=r,this.status=r.status)}toJSON(){let e=this.config,i=e&&C.hasOwnProp(e,"redact")?e.redact:void 0,n=C.isArray(i)&&i.length>0?M3(e,i):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:n,code:this.code,status:this.status}}};T.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE";T.ERR_BAD_OPTION="ERR_BAD_OPTION";T.ECONNABORTED="ECONNABORTED";T.ETIMEDOUT="ETIMEDOUT";T.ECONNREFUSED="ECONNREFUSED";T.ERR_NETWORK="ERR_NETWORK";T.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS";T.ERR_DEPRECATED="ERR_DEPRECATED";T.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE";T.ERR_BAD_REQUEST="ERR_BAD_REQUEST";T.ERR_CANCELED="ERR_CANCELED";T.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT";T.ERR_INVALID_URL="ERR_INVALID_URL";T.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";function ov(t){return C.isPlainObject(t)||C.isArray(t)}function sq(t){return C.endsWith(t,"[]")?t.slice(0,-2):t}function ev(t,e,i){return t?t.concat(e).map(function(a,r){return a=sq(a),!i&&r?"["+a+"]":a}).join(i?".":""):e}function E3(t){return C.isArray(t)&&!t.some(ov)}var k3=C.toFlatObject(C,{},null,function(e){return/^is[A-Z]/.test(e)});function Zc(t,e,i){if(!C.isObject(t))throw new TypeError("target must be an object");e=e||new(Zk||FormData),i=C.toFlatObject(i,{metaTokens:!0,dots:!1,indexes:!1},!1,function(f,v){return!C.isUndefined(v[f])});let n=i.metaTokens,a=i.visitor||p,r=i.dots,s=i.indexes,o=i.Blob||typeof Blob<"u"&&Blob,l=i.maxDepth===void 0?100:i.maxDepth,u=o&&C.isSpecCompliantForm(e);if(!C.isFunction(a))throw new TypeError("visitor must be a function");function c(m){if(m===null)return"";if(C.isDate(m))return m.toISOString();if(C.isBoolean(m))return m.toString();if(!u&&C.isBlob(m))throw new T("Blob is not supported. Use a Buffer instead.");return C.isArrayBuffer(m)||C.isTypedArray(m)?u&&typeof Blob=="function"?new Blob([m]):Buffer.from(m):m}function p(m,f,v){let y=m;if(C.isReactNative(e)&&C.isReactNativeBlob(m))return e.append(ev(v,f,r),c(m)),!1;if(m&&!v&&typeof m=="object"){if(C.endsWith(f,"{}"))f=n?f:f.slice(0,-2),m=JSON.stringify(m);else if(C.isArray(m)&&E3(m)||(C.isFileList(m)||C.endsWith(f,"[]"))&&(y=C.toArray(m)))return f=sq(f),y.forEach(function(b,O){!(C.isUndefined(b)||b===null)&&e.append(s===!0?ev([f],O,r):s===null?f:f+"[]",c(b))}),!1}return ov(m)?!0:(e.append(ev(v,f,r),c(m)),!1)}let d=[],h=Object.assign(k3,{defaultVisitor:p,convertValue:c,isVisitable:ov});function g(m,f,v=0){if(!C.isUndefined(m)){if(v>l)throw new T("Object is too deeply nested ("+v+" levels). Max depth: "+l,T.ERR_FORM_DATA_DEPTH_EXCEEDED);if(d.indexOf(m)!==-1)throw Error("Circular reference detected in "+f.join("."));d.push(m),C.forEach(m,function(A,b){(!(C.isUndefined(A)||A===null)&&a.call(e,A,C.isString(b)?b.trim():b,f,h))===!0&&g(A,f?f.concat(b):[b],v+1)}),d.pop()}}if(!C.isObject(t))throw new TypeError("data must be an object");return g(t),e}function Mk(t){let e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(t).replace(/[!'()~]|%20/g,function(n){return e[n]})}function oq(t,e){this._pairs=[],t&&Zc(t,this,e)}var lq=oq.prototype;lq.append=function(e,i){this._pairs.push([e,i])};lq.toString=function(e){let i=e?function(n){return e.call(this,n,Mk)}:Mk;return this._pairs.map(function(a){return i(a[0])+"="+i(a[1])},"").join("&")};function q3(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function vv(t,e,i){if(!e)return t;let n=i&&i.encode||q3,a=C.isFunction(i)?{serialize:i}:i,r=a&&a.serialize,s;if(r?s=r(e,a):s=C.isURLSearchParams(e)?e.toString():new oq(e,a).toString(n),s){let o=t.indexOf("#");o!==-1&&(t=t.slice(0,o)),t+=(t.indexOf("?")===-1?"?":"&")+s}return t}var Nc=class{constructor(){this.handlers=[]}use(e,i,n){return this.handlers.push({fulfilled:e,rejected:i,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){C.forEach(this.handlers,function(n){n!==null&&e(n)})}},Kc={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0},_3=P4.URLSearchParams,iv="abcdefghijklmnopqrstuvwxyz",Ek="0123456789",uq={DIGIT:Ek,ALPHA:iv,ALPHA_DIGIT:iv+iv.toUpperCase()+Ek},H3=(t=16,e=uq.ALPHA_DIGIT)=>{let i="",{length:n}=e,a=new Uint32Array(t);y4.randomFillSync(a);for(let r=0;re[0]==="[]"?"":e[1]||e[0])}function U3(t){let e={},i=Object.keys(t),n,a=i.length,r;for(n=0;n=i.length;return s=!s&&C.isArray(a)?a.length:s,l?(C.hasOwnProp(a,s)?a[s]=C.isArray(a[s])?a[s].concat(n):[a[s],n]:a[s]=n,!o):((!C.hasOwnProp(a,s)||!C.isObject(a[s]))&&(a[s]=[]),e(i,n,a[s],r)&&C.isArray(a[s])&&(a[s]=U3(a[s])),!o)}if(C.isFormData(t)&&C.isFunction(t.entries)){let i={};return C.forEachEntry(t,(n,a)=>{e(N3(n),a,i,0)}),i}return null}var Vr=(t,e)=>t!=null&&C.hasOwnProp(t,e)?t[e]:void 0;function L3(t,e,i){if(C.isString(t))try{return(e||JSON.parse)(t),C.trim(t)}catch(n){if(n.name!=="SyntaxError")throw n}return(i||JSON.stringify)(t)}var Vo={transitional:Kc,adapter:["xhr","http","fetch"],transformRequest:[function(e,i){let n=i.getContentType()||"",a=n.indexOf("application/json")>-1,r=C.isObject(e);if(r&&C.isHTMLForm(e)&&(e=new FormData(e)),C.isFormData(e))return a?JSON.stringify(cq(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 i.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let o;if(r){let l=Vr(this,"formSerializer");if(n.indexOf("application/x-www-form-urlencoded")>-1)return $3(e,l).toString();if((o=C.isFileList(e))||n.indexOf("multipart/form-data")>-1){let u=Vr(this,"env"),c=u&&u.FormData;return Zc(o?{"files[]":e}:e,c&&new c,l)}}return r||a?(i.setContentType("application/json",!1),L3(e)):e}],transformResponse:[function(e){let i=Vr(this,"transitional")||Vo.transitional,n=i&&i.forcedJSONParsing,a=Vr(this,"responseType"),r=a==="json";if(C.isResponse(e)||C.isReadableStream(e))return e;if(e&&C.isString(e)&&(n&&!a||r)){let o=!(i&&i.silentJSONParsing)&&r;try{return JSON.parse(e,Vr(this,"parseReviver"))}catch(l){if(o)throw l.name==="SyntaxError"?T.from(l,T.ERR_BAD_RESPONSE,this,null,Vr(this,"response")):l}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Qe.classes.FormData,Blob:Qe.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};C.forEach(["delete","get","head","post","put","patch","query"],t=>{Vo.headers[t]={}});function nv(t,e){let i=this||Vo,n=e||i,a=ti.from(n.headers),r=n.data;return C.forEach(t,function(o){r=o.call(i,r,a.normalize(),e?e.status:void 0)}),a.normalize(),r}function pq(t){return!!(t&&t.__CANCEL__)}var ut=class extends T{constructor(e,i,n){super(e??"canceled",T.ERR_CANCELED,i,n),this.name="CanceledError",this.__CANCEL__=!0}};function Jr(t,e,i){let n=i.config.validateStatus;!i.status||!n||n(i.status)?t(i):e(new T("Request failed with status code "+i.status,i.status>=400&&i.status<500?T.ERR_BAD_REQUEST:T.ERR_BAD_RESPONSE,i.config,i.request,i))}function W3(t){return typeof t!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function B3(t,e){return e?t.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):t}function Av(t,e,i){let n=!W3(e);return t&&(n||i===!1)?B3(t,e):e}var F3={ftp:21,gopher:70,http:80,https:443,ws:80,wss:443};function V3(t){try{return new URL(t)}catch{return null}}function J3(t){var e=(typeof t=="string"?V3(t):t)||{},i=e.protocol,n=e.host,a=e.port;if(typeof n!="string"||!n||typeof i!="string"||(i=i.split(":",1)[0],n=n.replace(/:\d*$/,""),a=parseInt(a)||F3[i]||0,!Z3(n,a)))return"";var r=uv(i+"_proxy")||uv("all_proxy");return r&&r.indexOf("://")===-1&&(r=i+"://"+r),r}function Z3(t,e){var i=uv("no_proxy").toLowerCase();return i?i==="*"?!1:i.split(/[,\s]/).every(function(n){if(!n)return!0;var a=n.match(/^(.+):(\d+)$/),r=a?a[1]:n,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 uv(t){return process.env[t.toLowerCase()]||process.env[t.toUpperCase()]||""}var Uo="1.16.1";function dq(t){let e=/^([-+\w]{1,25}):(?:\/\/)?/.exec(t);return e&&e[1]||""}var K3=/^([^,;]+\/[^,;]+)?((?:;[^,;=]+=[^,;]+)*)(;base64)?,([\s\S]*)$/;function Q3(t,e,i){let n=i&&i.Blob||Qe.classes.Blob,a=dq(t);if(e===void 0&&n&&(e=!0),a==="data"){t=a.length?t.slice(a.length+1):t;let r=K3.exec(t);if(!r)throw new T("Invalid URL",T.ERR_INVALID_URL);let s=r[1],o=r[2],l=r[3]?"base64":"utf8",u=r[4],c;s?c=o?s+o:s:o&&(c="text/plain"+o);let p=Buffer.from(decodeURIComponent(u),l);if(e){if(!n)throw new T("Blob is not supported",T.ERR_NOT_SUPPORT);return new n([p],{type:c})}return p}throw new T("Unsupported protocol "+a,T.ERR_NOT_SUPPORT)}var tv=Symbol("internals"),Uc=class extends Vi.Transform{constructor(e){e=C.toFlatObject(e,{maxRate:0,chunkSize:64*1024,minChunkSize:100,timeWindow:500,ticksRate:2,samplesCount:15},null,(n,a)=>!C.isUndefined(a[n])),super({readableHighWaterMark:e.chunkSize});let i=this[tv]={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",n=>{n==="progress"&&(i.isCaptured||(i.isCaptured=!0))})}_read(e){let i=this[tv];return i.onReadCallback&&i.onReadCallback(),super._read(e)}_transform(e,i,n){let a=this[tv],r=a.maxRate,s=this.readableHighWaterMark,o=a.timeWindow,l=1e3/o,u=r/l,c=a.minChunkSize!==!1?Math.max(a.minChunkSize,u*.01):0,p=(h,g)=>{let m=Buffer.byteLength(h);a.bytesSeen+=m,a.bytes+=m,a.isCaptured&&this.emit("progress",a.bytesSeen),this.push(h)?process.nextTick(g):a.onReadCallback=()=>{a.onReadCallback=null,process.nextTick(g)}},d=(h,g)=>{let m=Buffer.byteLength(h),f=null,v=s,y,A=0;if(r){let b=Date.now();(!a.ts||(A=b-a.ts)>=o)&&(a.ts=b,y=u-a.bytes,a.bytes=y<0?-y:0,A=0),y=u-a.bytes}if(r){if(y<=0)return setTimeout(()=>{g(null,h)},o-A);yv&&m-v>c&&(f=h.subarray(v),h=h.subarray(0,v)),p(h,f?()=>{process.nextTick(g,null,f)}:g)};d(e,function h(g,m){if(g)return n(g);m?d(m,h):n(null)})}},{asyncIterator:kk}=Symbol,hq=async function*(t){t.stream?yield*t.stream():t.arrayBuffer?yield await t.arrayBuffer():t[kk]?yield*t[kk]():yield t},Y3=Qe.ALPHABET.ALPHA_DIGIT+"-_",Lo=typeof TextEncoder=="function"?new TextEncoder:new mv.TextEncoder,Ra=`\r +`,X3=Lo.encode(Ra),eZ=2,cv=class{constructor(e,i){let{escapeName:n}=this.constructor,a=C.isString(i),r=`Content-Disposition: form-data; name="${n(e)}"${!a&&i.name?`; filename="${n(i.name)}"`:""}${Ra}`;if(a)i=Lo.encode(String(i).replace(/\r?\n|\r\n?/g,Ra));else{let s=String(i.type||"application/octet-stream").replace(/[\r\n]/g,"");r+=`Content-Type: ${s}${Ra}`}this.headers=Lo.encode(r+Ra),this.contentLength=a?i.byteLength:i.size,this.size=this.headers.byteLength+this.contentLength+eZ,this.name=e,this.value=i}async*encode(){yield this.headers;let{value:e}=this;C.isTypedArray(e)?yield e:yield*hq(e),yield X3}static escapeName(e){return String(e).replace(/[\r\n"]/g,i=>({"\r":"%0D","\n":"%0A",'"':"%22"})[i])}},iZ=(t,e,i)=>{let{tag:n="form-data-boundary",size:a=25,boundary:r=n+"-"+Qe.generateString(a,Y3)}=i||{};if(!C.isFormData(t))throw TypeError("FormData instance required");if(r.length<1||r.length>70)throw Error("boundary must be 1-70 characters long");let s=Lo.encode("--"+r+Ra),o=Lo.encode("--"+r+"--"+Ra),l=o.byteLength,u=Array.from(t.entries()).map(([p,d])=>{let h=new cv(p,d);return l+=h.size,h});l+=s.byteLength*u.length,l=C.toFiniteNumber(l);let c={"Content-Type":`multipart/form-data; boundary=${r}`};return Number.isFinite(l)&&(c["Content-Length"]=l),e&&e(c),Vi.Readable.from((async function*(){for(let p of u)yield s,yield*p.encode();yield o})())},pv=class extends Vi.Transform{__transform(e,i,n){this.push(e),n()}_transform(e,i,n){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,i)}this.__transform(e,i,n)}},nZ=(t,e)=>C.isAsyncFn(t)?function(...i){let n=i.pop();t.apply(this,i).then(a=>{try{e?n(null,...e(a)):n(null,a)}catch(r){n(r)}},n)}:t,tZ=new Set(["localhost"]),gq=t=>{let e=t.split(".");return e.length!==4||e[0]!=="127"?!1:e.every(i=>/^\d+$/.test(i)&&Number(i)>=0&&Number(i)<=255)},aZ=t=>{if(t==="::1")return!0;let e=t.match(/^::ffff:(\d+\.\d+\.\d+\.\d+)$/i);if(e)return gq(e[1]);let i=t.match(/^::ffff:([0-9a-f]{1,4}):([0-9a-f]{1,4})$/i);if(i){let a=parseInt(i[1],16);return a>=32512&&a<=32767}let n=t.split(":");if(n.length===8){for(let a=0;a<7;a++)if(!/^0+$/.test(n[a]))return!1;return/^0*1$/.test(n[7])}return!1},qk=t=>t?tZ.has(t)||gq(t)?!0:aZ(t):!1,rZ={http:80,https:443,ws:80,wss:443,ftp:21},sZ=t=>{let e=t,i=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))&&(i=Number.parseInt(o.slice(1),10)),[s,i]}}let n=e.indexOf(":"),a=e.lastIndexOf(":");return n!==-1&&n===a&&/^\d+$/.test(e.slice(a+1))&&(i=Number.parseInt(e.slice(a+1),10),e=e.slice(0,a)),[e,i]},oZ=/^(?:::|(?:0{1,4}:){1,4}:|(?:0{1,4}:){5})ffff:(\d+\.\d+\.\d+\.\d+)$/i,lZ=/^(?:::|(?:0{1,4}:){1,4}:|(?:0{1,4}:){5})ffff:([0-9a-f]{1,4}):([0-9a-f]{1,4})$/i,uZ=t=>{if(typeof t!="string"||t.indexOf(":")===-1)return t;let e=t.match(oZ);if(e)return e[1];let i=t.match(lZ);if(i){let n=parseInt(i[1],16),a=parseInt(i[2],16);return`${n>>8}.${n&255}.${a>>8}.${a&255}`}return t},_k=t=>t&&(t.charAt(0)==="["&&t.charAt(t.length-1)==="]"&&(t=t.slice(1,-1)),uZ(t.replace(/\.+$/,"")));function cZ(t){let e;try{e=new URL(t)}catch{return!1}let i=(process.env.no_proxy||process.env.NO_PROXY||"").toLowerCase();if(!i)return!1;if(i==="*")return!0;let n=Number.parseInt(e.port,10)||rZ[e.protocol.split(":",1)[0]]||0,a=_k(e.hostname.toLowerCase());return i.split(/[\s,]+/).some(r=>{if(!r)return!1;let[s,o]=sZ(r);return s=_k(s),!s||o&&o!==n?!1:(s.charAt(0)==="*"&&(s=s.slice(1)),s.charAt(0)==="."?a.endsWith(s):a===s||qk(a)&&qk(s))})}function pZ(t,e){t=t||10;let i=new Array(t),n=new Array(t),a=0,r=0,s;return e=e!==void 0?e:1e3,function(l){let u=Date.now(),c=n[r];s||(s=u),i[a]=l,n[a]=u;let p=r,d=0;for(;p!==a;)d+=i[p++],p=p%t;if(a=(a+1)%t,a===r&&(r=(r+1)%t),u-s{i=c,a=null,r&&(clearTimeout(r),r=null),t(...u)};return[(...u)=>{let c=Date.now(),p=c-i;p>=n?s(u,c):(a=u,r||(r=setTimeout(()=>{r=null,s(a)},n-p)))},()=>a&&s(a)]}var Kr=(t,e,i=3)=>{let n=0,a=pZ(50,250);return dZ(r=>{if(!r||typeof r.loaded!="number")return;let s=r.loaded,o=r.lengthComputable?r.total:void 0,l=o!=null?Math.min(s,o):s,u=Math.max(0,l-n),c=a(u);n=Math.max(n,l);let p={loaded:l,total:o,progress:o?l/o:void 0,bytes:u,rate:c||void 0,estimated:c&&o?(o-l)/c:void 0,event:r,lengthComputable:o!=null,[e?"download":"upload"]:!0};t(p)},i)},Lc=(t,e)=>{let i=t!=null;return[n=>e[0]({lengthComputable:i,total:t,loaded:n}),e[1]]},Wc=t=>(...e)=>C.asap(()=>t(...e));function mq(t){if(!t||typeof t!="string"||!t.startsWith("data:"))return 0;let e=t.indexOf(",");if(e<0)return 0;let i=t.slice(5,e),n=t.slice(e+1);if(/;base64/i.test(i)){let s=n.length,o=n.length;for(let h=0;h=48&&g<=57||g>=65&&g<=70||g>=97&&g<=102)&&(m>=48&&m<=57||m>=65&&m<=70||m>=97&&m<=102)&&(s-=2,h+=2)}let l=0,u=o-1,c=h=>h>=2&&n.charCodeAt(h-2)===37&&n.charCodeAt(h-1)===51&&(n.charCodeAt(h)===68||n.charCodeAt(h)===100);u>=0&&(n.charCodeAt(u)===61?(l++,u--):c(u)&&(l++,u-=3)),l===1&&u>=0&&(n.charCodeAt(u)===61||c(u))&&l++;let d=Math.floor(s/4)*3-(l||0);return d>0?d:0}if(typeof Buffer<"u"&&typeof Buffer.byteLength=="function")return Buffer.byteLength(n,"utf8");let r=0;for(let s=0,o=n.length;s=55296&&l<=56319&&s+1=56320&&u<=57343?(r+=4,s++):r+=3}else r+=3}return r}var Hk={flush:Dt.constants.Z_SYNC_FLUSH,finishFlush:Dt.constants.Z_SYNC_FLUSH},hZ={flush:Dt.constants.BROTLI_OPERATION_FLUSH,finishFlush:Dt.constants.BROTLI_OPERATION_FLUSH},Rk=C.isFunction(Dt.createBrotliDecompress),{http:gZ,https:mZ}=O4,fq=/https:?/,fZ=["content-type","content-length"];function wZ(t,e,i){if(i!=="content-only"){t.set(e);return}Object.entries(e).forEach(([n,a])=>{fZ.includes(n.toLowerCase())&&t.set(n,a)})}var Ik=Symbol("axios.http.socketListener"),Ic=Symbol("axios.http.currentReq"),wq=Symbol("axios.http.installedTunnel"),vZ=new Map,zk=new WeakMap;function CZ(t,e){let i=t.protocol+"//"+t.hostname+":"+(t.port||"")+"#"+(t.auth||""),n=e?zk.get(e)||zk.set(e,new Map).get(e):vZ,a=n.get(i);if(a)return a;let r=e&&e.options?{...e.options,...t}:t;return a=new Kk(r),a[wq]=!0,n.set(i,a),a}var Dk=Qe.protocols.map(t=>t+":"),Gk=t=>{if(!C.isString(t))return t;try{return decodeURIComponent(t)}catch{return t}},$k=(t,[e,i])=>(t.on("end",i).on("error",i),e),dv=class{constructor(){this.sessions=Object.create(null)}getSession(e,i){i=Object.assign({sessionTimeout:1e3},i);let n=this.sessions[e];if(n){let c=n.length;for(let p=0;p{if(r)return;r=!0;let c=n,p=c.length,d=p;for(;d--;)if(c[d][0]===a){p===1?delete this.sessions[e]:c.splice(d,1),a.closed||a.close();return}},o=a.request,{sessionTimeout:l}=i;if(l!=null){let c,p=0;a.request=function(){let d=o.apply(this,arguments);return p++,c&&(clearTimeout(c),c=null),d.once("close",()=>{--p||(c=setTimeout(()=>{c=null,s()},l))}),d}}a.once("close",s);let u=[a,i];return n?n.push(u):n=this.sessions[e]=[u],a}},AZ=new dv;function bZ(t,e,i){t.beforeRedirects.proxy&&t.beforeRedirects.proxy(t),t.beforeRedirects.config&&t.beforeRedirects.config(t,e,i)}function vq(t,e,i,n,a){let r=e;if(!r&&r!==!1){let s=J3(i);s&&(cZ(i)||(r=new URL(s)))}if(n&&t.headers)for(let s of Object.keys(t.headers))s.toLowerCase()==="proxy-authorization"&&delete t.headers[s];if(n&&t.agent&&t.agent[wq]&&(t.agent=void 0),r){let s=r instanceof URL,o=d=>s||C.hasOwnProp(r,d)?r[d]:void 0,l=o("username"),u=o("password"),c=C.hasOwnProp(r,"auth")?r.auth:void 0;if(l&&(c=(l||"")+":"+(u||"")),c){let d=typeof c=="object",h=d&&C.hasOwnProp(c,"username")?c.username:void 0,g=d&&C.hasOwnProp(c,"password")?c.password:void 0;if(!!(h||g))c=(h||"")+":"+(g||"");else if(d)throw new T("Invalid proxy authorization",T.ERR_BAD_OPTION,{proxy:r})}if(fq.test(t.protocol)){if(!(a instanceof Kk)){let d=o("hostname")||o("host"),h=o("port"),g=o("protocol"),m=g?g.includes(":")?g:`${g}:`:"http:",f=d&&d.includes(":")&&!d.startsWith("[")?`[${d}]`:d,v=new URL(`${m}//${f}${h?":"+h:""}`),y={protocol:v.protocol,hostname:v.hostname.replace(/^\[|\]$/g,""),port:v.port,auth:c&&typeof c=="string"?c:void 0};v.protocol==="https:"&&(y.ALPNProtocols=["http/1.1"]);let A=CZ(y,a);t.agent=A,t.agents&&(t.agents.https=A)}}else{if(c){let m=Buffer.from(c,"utf8").toString("base64");t.headers["Proxy-Authorization"]="Basic "+m}let d=!1;for(let m of Object.keys(t.headers))if(m.toLowerCase()==="host"){d=!0;break}d||(t.headers.host=t.hostname+(t.port?":"+t.port:""));let h=o("hostname")||o("host");t.hostname=h,t.host=h,t.port=o("port"),t.path=i;let g=o("protocol");g&&(t.protocol=g.includes(":")?g:`${g}:`)}}t.beforeRedirects.proxy=function(o){vq(o,e,o.href,!0,a)}}var yZ=typeof process<"u"&&C.kindOf(process)==="process",PZ=t=>new Promise((e,i)=>{let n,a,r=(l,u)=>{a||(a=!0,n&&n(l,u))},s=l=>{r(l),e(l)},o=l=>{r(l,!0),i(l)};t(s,o,l=>n=l).catch(o)}),jZ=({address:t,family:e})=>{if(!C.isString(t))throw TypeError("address must be a string");return{address:t,family:e||(t.indexOf(".")<0?6:4)}},Nk=(t,e)=>jZ(C.isObject(t)?t:{address:t,family:e}),SZ={request(t,e){let i=t.protocol+"//"+t.hostname+":"+(t.port||(t.protocol==="https:"?443:80)),{http2Options:n,headers:a}=t,r=AZ.getSession(i,n),{HTTP2_HEADER_SCHEME:s,HTTP2_HEADER_METHOD:o,HTTP2_HEADER_PATH:l,HTTP2_HEADER_STATUS:u}=Qk.constants,c={[s]:t.protocol.replace(":",""),[o]:t.method,[l]:t.path};C.forEach(a,(d,h)=>{h.charAt(0)!==":"&&(c[h]=d)});let p=r.request(c);return p.once("response",d=>{let h=p;d=Object.assign({},d);let g=d[u];delete d[u],h.headers=d,h.statusCode=+g,e(h)}),p}},OZ=yZ&&function(e){return PZ(async function(n,a,r){let s=G=>C.hasOwnProp(e,G)?e[G]:void 0,o=s("data"),l=s("lookup"),u=s("family"),c=s("httpVersion");c===void 0&&(c=1);let p=s("http2Options"),d=s("responseType"),h=s("responseEncoding"),g=e.method.toUpperCase(),m,f=!1,v,y;if(c=+c,Number.isNaN(c))throw TypeError(`Invalid protocol version: '${e.httpVersion}' is not a number`);if(c!==1&&c!==2)throw TypeError(`Unsupported protocol version '${c}'`);let A=c===2;if(l){let G=nZ(l,x=>C.isArray(x)?x:[x]);l=(x,be,Je)=>{G(x,be,(ye,ni,pi)=>{if(ye)return Je(ye);let xe=C.isArray(ni)?ni.map(gt=>Nk(gt)):[Nk(ni,pi)];be.all?Je(ye,xe):Je(ye,xe[0].address,xe[0].family)})}}let b=new x4.EventEmitter;function O(G){try{b.emit("abort",!G||G.type?new ut(null,e,v):G)}catch(x){console.warn("emit error",x)}}function $(){y&&(clearTimeout(y),y=null)}function N(){let G=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",x=e.transitional||Kc;return e.timeoutErrorMessage&&(G=e.timeoutErrorMessage),new T(G,x.clarifyTimeoutError?T.ETIMEDOUT:T.ECONNABORTED,e,v)}b.once("abort",a);let X=()=>{$(),e.cancelToken&&e.cancelToken.unsubscribe(O),e.signal&&e.signal.removeEventListener("abort",O),b.removeAllListeners()};(e.cancelToken||e.signal)&&(e.cancelToken&&e.cancelToken.subscribe(O),e.signal&&(e.signal.aborted?O():e.signal.addEventListener("abort",O))),r((G,x)=>{if(m=!0,$(),x){f=!0,X();return}let{data:be}=G;if(be instanceof Vi.Readable||be instanceof Vi.Duplex){let Je=Vi.finished(be,()=>{Je(),X()})}else X()});let F=Av(e.baseURL,e.url,e.allowAbsoluteUrls),k=new URL(F,Qe.hasBrowserEnv?Qe.origin:void 0),Q=k.protocol||Dk[0];if(Q==="data:"){if(e.maxContentLength>-1){let x=String(e.url||F||"");if(mq(x)>e.maxContentLength)return a(new T("maxContentLength size of "+e.maxContentLength+" exceeded",T.ERR_BAD_RESPONSE,e))}let G;if(g!=="GET")return Jr(n,a,{status:405,statusText:"method not allowed",headers:{},config:e});try{G=Q3(e.url,d==="blob",{Blob:e.env&&e.env.Blob})}catch(x){throw T.from(x,T.ERR_BAD_REQUEST,e)}return d==="text"?(G=G.toString(h),(!h||h==="utf8")&&(G=C.stripBOM(G))):d==="stream"&&(G=Vi.Readable.from(G)),Jr(n,a,{data:G,status:200,statusText:"OK",headers:new ti,config:e})}if(Dk.indexOf(Q)===-1)return a(new T("Unsupported protocol "+Q,T.ERR_BAD_REQUEST,e));let Z=ti.from(e.headers).normalize();Z.set("User-Agent","axios/"+Uo,!1);let{onUploadProgress:ie,onDownloadProgress:se}=e,De=e.maxRate,S,R;if(C.isSpecCompliantForm(o)){let G=Z.getContentType(/boundary=([-_\w\d]{10,70})/i);o=iZ(o,x=>{Z.set(x)},{tag:`axios-${Uo}-boundary`,boundary:G&&G[1]||void 0})}else if(C.isFormData(o)&&C.isFunction(o.getHeaders)&&o.getHeaders!==Object.prototype.getHeaders){if(wZ(Z,o.getHeaders(),s("formDataHeaderPolicy")),!Z.hasContentLength())try{let G=await mv.promisify(o.getLength).call(o);Number.isFinite(G)&&G>=0&&Z.setContentLength(G)}catch{}}else if(C.isBlob(o)||C.isFile(o))o.size&&Z.setContentType(o.type||"application/octet-stream"),Z.setContentLength(o.size||0),o=Vi.Readable.from(hq(o));else if(o&&!C.isStream(o)){if(!Buffer.isBuffer(o))if(C.isArrayBuffer(o))o=Buffer.from(new Uint8Array(o));else if(C.isString(o))o=Buffer.from(o,"utf-8");else return a(new T("Data after transformation must be a string, an ArrayBuffer, a Buffer, or a Stream",T.ERR_BAD_REQUEST,e));if(Z.setContentLength(o.length,!1),e.maxBodyLength>-1&&o.length>e.maxBodyLength)return a(new T("Request body larger than maxBodyLength limit",T.ERR_BAD_REQUEST,e))}let Ae=C.toFiniteNumber(Z.getContentLength());C.isArray(De)?(S=De[0],R=De[1]):S=R=De,o&&(ie||S)&&(C.isStream(o)||(o=Vi.Readable.from(o,{objectMode:!1})),o=Vi.pipeline([o,new Uc({maxRate:C.toFiniteNumber(S)})],C.noop),ie&&o.on("progress",$k(o,Lc(Ae,Kr(Wc(ie),!1,3)))));let Se,I=s("auth");if(I){let G=I.username||"",x=I.password||"";Se=G+":"+x}if(!Se&&k.username){let G=Gk(k.username),x=Gk(k.password);Se=G+":"+x}Se&&Z.delete("authorization");let ei;try{ei=vv(k.pathname+k.search,e.params,e.paramsSerializer).replace(/^\?/,"")}catch(G){let x=new Error(G.message);return x.config=e,x.url=e.url,x.exists=!0,a(x)}Z.set("Accept-Encoding","gzip, compress, deflate"+(Rk?", br":""),!1);let Re=Object.assign(Object.create(null),{path:ei,method:g,headers:wv(Z),agents:{http:e.httpAgent,https:e.httpsAgent},auth:Se,protocol:Q,family:u,beforeRedirect:bZ,beforeRedirects:Object.create(null),http2Options:p});if(!C.isUndefined(l)&&(Re.lookup=l),e.socketPath){if(typeof e.socketPath!="string")return a(new T("socketPath must be a string",T.ERR_BAD_OPTION_VALUE,e));if(e.allowedSocketPaths!=null){let G=Array.isArray(e.allowedSocketPaths)?e.allowedSocketPaths:[e.allowedSocketPaths],x=Sk.resolve(e.socketPath);if(!G.some(Je=>typeof Je=="string"&&Sk.resolve(Je)===x))return a(new T(`socketPath "${e.socketPath}" is not permitted by allowedSocketPaths`,T.ERR_BAD_OPTION_VALUE,e))}Re.socketPath=e.socketPath}else Re.hostname=k.hostname.startsWith("[")?k.hostname.slice(1,-1):k.hostname,Re.port=k.port,vq(Re,e.proxy,Q+"//"+k.hostname+(k.port?":"+k.port:"")+Re.path,!1,e.httpsAgent);let Me,Oi=!1,vi=fq.test(Re.protocol);if(Re.agent==null&&(Re.agent=vi?e.httpsAgent:e.httpAgent),A)Me=SZ;else{let G=s("transport");if(G)Me=G;else if(e.maxRedirects===0)Me=vi?S4:j4,Oi=!0;else{e.maxRedirects&&(Re.maxRedirects=e.maxRedirects);let x=s("beforeRedirect");x&&(Re.beforeRedirects.config=x),Me=vi?mZ:gZ}}e.maxBodyLength>-1?Re.maxBodyLength=e.maxBodyLength:Re.maxBodyLength=1/0,Re.insecureHTTPParser=!!s("insecureHTTPParser"),v=Me.request(Re,function(x){if($(),v.destroyed)return;let be=[x],Je=C.toFiniteNumber(x.headers["content-length"]);if(se||R){let xe=new Uc({maxRate:C.toFiniteNumber(R)});se&&xe.on("progress",$k(xe,Lc(Je,Kr(Wc(se),!0,3)))),be.push(xe)}let ye=x,ni=x.req||v;if(e.decompress!==!1&&x.headers["content-encoding"])switch((g==="HEAD"||x.statusCode===204)&&delete x.headers["content-encoding"],(x.headers["content-encoding"]||"").toLowerCase()){case"gzip":case"x-gzip":case"compress":case"x-compress":be.push(Dt.createUnzip(Hk)),delete x.headers["content-encoding"];break;case"deflate":be.push(new pv),be.push(Dt.createUnzip(Hk)),delete x.headers["content-encoding"];break;case"br":Rk&&(be.push(Dt.createBrotliDecompress(hZ)),delete x.headers["content-encoding"])}ye=be.length>1?Vi.pipeline(be,C.noop):be[0];let pi={status:x.statusCode,statusText:x.statusMessage,headers:new ti(x.headers),config:e,request:ni};if(d==="stream"){if(e.maxContentLength>-1){let xe=e.maxContentLength,gt=ye;async function*vn(){let Ge=0;for await(let Xa of gt){if(Ge+=Xa.length,Ge>xe)throw new T("maxContentLength size of "+xe+" exceeded",T.ERR_BAD_RESPONSE,e,ni);yield Xa}}ye=Vi.Readable.from(vn(),{objectMode:!1})}pi.data=ye,Jr(n,a,pi)}else{let xe=[],gt=0;ye.on("data",function(Ge){xe.push(Ge),gt+=Ge.length,e.maxContentLength>-1&>>e.maxContentLength&&(f=!0,ye.destroy(),O(new T("maxContentLength size of "+e.maxContentLength+" exceeded",T.ERR_BAD_RESPONSE,e,ni)))}),ye.on("aborted",function(){if(f)return;let Ge=new T("stream has been aborted",T.ERR_BAD_RESPONSE,e,ni,pi);ye.destroy(Ge),a(Ge)}),ye.on("error",function(Ge){f||a(T.from(Ge,null,e,ni,pi))}),ye.on("end",function(){try{let Ge=xe.length===1?xe[0]:Buffer.concat(xe);d!=="arraybuffer"&&(Ge=Ge.toString(h),(!h||h==="utf8")&&(Ge=C.stripBOM(Ge))),pi.data=Ge}catch(Ge){return a(T.from(Ge,null,e,pi.request,pi))}Jr(n,a,pi)})}b.once("abort",xe=>{ye.destroyed||(ye.emit("error",xe),ye.destroy())})}),b.once("abort",G=>{v.close?v.close():v.destroy(G)}),v.on("error",function(x){a(T.from(x,null,e,v))});let nn=new Set;if(v.on("socket",function(x){x.setKeepAlive(!0,1e3*60),x[Ik]||(x.on("error",function(Je){let ye=x[Ic];ye&&!ye.destroyed&&ye.destroy(Je)}),x[Ik]=!0),x[Ic]=v,nn.add(x)}),v.once("close",function(){$();for(let x of nn)x[Ic]===v&&(x[Ic]=null);nn.clear()}),e.timeout){let G=parseInt(e.timeout,10);if(Number.isNaN(G)){O(new T("error trying to parse `config.timeout` to int",T.ERR_BAD_OPTION_VALUE,e,v));return}let x=function(){m||O(N())};Oi&&G>0&&(y=setTimeout(x,G)),v.setTimeout(G,x)}else v.setTimeout(0);if(C.isStream(o)){let G=!1,x=!1;o.on("end",()=>{G=!0}),o.once("error",Je=>{x=!0,v.destroy(Je)}),o.on("close",()=>{!G&&!x&&O(new ut("Request stream has been aborted",e,v))});let be=o;if(e.maxBodyLength>-1&&e.maxRedirects===0){let Je=e.maxBodyLength,ye=0;be=Vi.pipeline([o,new Vi.Transform({transform(ni,pi,xe){if(ye+=ni.length,ye>Je)return xe(new T("Request body larger than maxBodyLength limit",T.ERR_BAD_REQUEST,e,v));xe(null,ni)}})],C.noop),be.on("error",ni=>{v.destroyed||v.destroy(ni)})}be.pipe(v)}else o&&v.write(o),v.end()})},xZ=Qe.hasStandardBrowserEnv?((t,e)=>i=>(i=new URL(i,Qe.origin),t.protocol===i.protocol&&t.host===i.host&&(e||t.port===i.port)))(new URL(Qe.origin),Qe.navigator&&/(msie|trident)/i.test(Qe.navigator.userAgent)):()=>!0,TZ=Qe.hasStandardBrowserEnv?{write(t,e,i,n,a,r,s){if(typeof document>"u")return;let o=[`${t}=${encodeURIComponent(e)}`];C.isNumber(i)&&o.push(`expires=${new Date(i).toUTCString()}`),C.isString(n)&&o.push(`path=${n}`),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 i=0;it instanceof ti?{...t}:t;function Ia(t,e){e=e||{};let i=Object.create(null);Object.defineProperty(i,"hasOwnProperty",{__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});function n(u,c,p,d){return C.isPlainObject(u)&&C.isPlainObject(c)?C.merge.call({caseless:d},u,c):C.isPlainObject(c)?C.merge({},c):C.isArray(c)?c.slice():c}function a(u,c,p,d){if(C.isUndefined(c)){if(!C.isUndefined(u))return n(void 0,u,p,d)}else return n(u,c,p,d)}function r(u,c){if(!C.isUndefined(c))return n(void 0,c)}function s(u,c){if(C.isUndefined(c)){if(!C.isUndefined(u))return n(void 0,u)}else return n(void 0,c)}function o(u,c,p){if(C.hasOwnProp(e,p))return n(u,c);if(C.hasOwnProp(t,p))return n(void 0,u)}let l={url:r,method:r,data:r,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,allowedSocketPaths:s,responseEncoding:s,validateStatus:o,headers:(u,c,p)=>a(Uk(u),Uk(c),p,!0)};return C.forEach(Object.keys({...t,...e}),function(c){if(c==="__proto__"||c==="constructor"||c==="prototype")return;let p=C.hasOwnProp(l,c)?l[c]:a,d=C.hasOwnProp(t,c)?t[c]:void 0,h=C.hasOwnProp(e,c)?e[c]:void 0,g=p(d,h,c);C.isUndefined(g)&&p!==o||(i[c]=g)}),i}var MZ=["content-type","content-length"];function EZ(t,e,i){if(i!=="content-only"){t.set(e);return}Object.entries(e).forEach(([n,a])=>{MZ.includes(n.toLowerCase())&&t.set(n,a)})}var kZ=t=>encodeURIComponent(t).replace(/%([0-9A-F]{2})/gi,(e,i)=>String.fromCharCode(parseInt(i,16))),Cq=t=>{let e=Ia({},t),i=d=>C.hasOwnProp(e,d)?e[d]:void 0,n=i("data"),a=i("withXSRFToken"),r=i("xsrfHeaderName"),s=i("xsrfCookieName"),o=i("headers"),l=i("auth"),u=i("baseURL"),c=i("allowAbsoluteUrls"),p=i("url");if(e.headers=o=ti.from(o),e.url=vv(Av(u,p,c),t.params,t.paramsSerializer),l&&o.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?kZ(l.password):""))),C.isFormData(n)&&(Qe.hasStandardBrowserEnv||Qe.hasStandardBrowserWebWorkerEnv?o.setContentType(void 0):C.isFunction(n.getHeaders)&&EZ(o,n.getHeaders(),i("formDataHeaderPolicy"))),Qe.hasStandardBrowserEnv&&(C.isFunction(a)&&(a=a(e)),a===!0||a==null&&xZ(e.url))){let h=r&&s&&TZ.read(s);h&&o.set(r,h)}return e},qZ=typeof XMLHttpRequest<"u",_Z=qZ&&function(t){return new Promise(function(i,n){let a=Cq(t),r=a.data,s=ti.from(a.headers).normalize(),{responseType:o,onUploadProgress:l,onDownloadProgress:u}=a,c,p,d,h,g;function m(){h&&h(),g&&g(),a.cancelToken&&a.cancelToken.unsubscribe(c),a.signal&&a.signal.removeEventListener("abort",c)}let f=new XMLHttpRequest;f.open(a.method.toUpperCase(),a.url,!0),f.timeout=a.timeout;function v(){if(!f)return;let A=ti.from("getAllResponseHeaders"in f&&f.getAllResponseHeaders()),O={data:!o||o==="text"||o==="json"?f.responseText:f.response,status:f.status,statusText:f.statusText,headers:A,config:t,request:f};Jr(function(N){i(N),m()},function(N){n(N),m()},O),f=null}"onloadend"in f?f.onloadend=v:f.onreadystatechange=function(){!f||f.readyState!==4||f.status===0&&!(f.responseURL&&f.responseURL.startsWith("file:"))||setTimeout(v)},f.onabort=function(){f&&(n(new T("Request aborted",T.ECONNABORTED,t,f)),m(),f=null)},f.onerror=function(b){let O=b&&b.message?b.message:"Network Error",$=new T(O,T.ERR_NETWORK,t,f);$.event=b||null,n($),m(),f=null},f.ontimeout=function(){let b=a.timeout?"timeout of "+a.timeout+"ms exceeded":"timeout exceeded",O=a.transitional||Kc;a.timeoutErrorMessage&&(b=a.timeoutErrorMessage),n(new T(b,O.clarifyTimeoutError?T.ETIMEDOUT:T.ECONNABORTED,t,f)),m(),f=null},r===void 0&&s.setContentType(null),"setRequestHeader"in f&&C.forEach(wv(s),function(b,O){f.setRequestHeader(O,b)}),C.isUndefined(a.withCredentials)||(f.withCredentials=!!a.withCredentials),o&&o!=="json"&&(f.responseType=a.responseType),u&&([d,g]=Kr(u,!0),f.addEventListener("progress",d)),l&&f.upload&&([p,h]=Kr(l),f.upload.addEventListener("progress",p),f.upload.addEventListener("loadend",h)),(a.cancelToken||a.signal)&&(c=A=>{f&&(n(!A||A.type?new ut(null,t,f):A),f.abort(),m(),f=null)},a.cancelToken&&a.cancelToken.subscribe(c),a.signal&&(a.signal.aborted?c():a.signal.addEventListener("abort",c)));let y=dq(a.url);if(y&&!Qe.protocols.includes(y)){n(new T("Unsupported protocol "+y+":",T.ERR_BAD_REQUEST,t));return}f.send(r||null)})},HZ=(t,e)=>{if(t=t?t.filter(Boolean):[],!e&&!t.length)return;let i=new AbortController,n=!1,a=function(l){if(!n){n=!0,s();let u=l instanceof Error?l:this.reason;i.abort(u instanceof T?u:new ut(u instanceof Error?u.message:u))}},r=e&&setTimeout(()=>{r=null,a(new T(`timeout of ${e}ms exceeded`,T.ETIMEDOUT))},e),s=()=>{t&&(r&&clearTimeout(r),r=null,t.forEach(l=>{l.unsubscribe?l.unsubscribe(a):l.removeEventListener("abort",a)}),t=null)};t.forEach(l=>l.addEventListener("abort",a));let{signal:o}=i;return o.unsubscribe=()=>C.asap(s),o},RZ=function*(t,e){let i=t.byteLength;if(i{let a=IZ(t,e),r=0,s,o=l=>{s||(s=!0,n&&n(l))};return new ReadableStream({async pull(l){try{let{done:u,value:c}=await a.next();if(u){o(),l.close();return}let p=c.byteLength;if(i){let d=r+=p;i(d)}l.enqueue(new Uint8Array(c))}catch(u){throw o(u),u}},cancel(l){return o(l),a.return()}},{highWaterMark:2})},Wk=64*1024,{isFunction:zc}=C,Bk=(t,...e)=>{try{return!!t(...e)}catch{return!1}},DZ=t=>{let e=C.global!==void 0&&C.global!==null?C.global:globalThis,{ReadableStream:i,TextEncoder:n}=e;t=C.merge.call({skipUndefined:!0},{Request:e.Request,Response:e.Response},t);let{fetch:a,Request:r,Response:s}=t,o=a?zc(a):typeof fetch=="function",l=zc(r),u=zc(s);if(!o)return!1;let c=o&&zc(i),p=o&&(typeof n=="function"?(v=>y=>v.encode(y))(new n):async v=>new Uint8Array(await new r(v).arrayBuffer())),d=l&&c&&Bk(()=>{let v=!1,y=new r(Qe.origin,{body:new i,method:"POST",get duplex(){return v=!0,"half"}}),A=y.headers.has("Content-Type");return y.body!=null&&y.body.cancel(),v&&!A}),h=u&&c&&Bk(()=>C.isReadableStream(new s("").body)),g={stream:h&&(v=>v.body)};o&&["text","arrayBuffer","blob","formData","stream"].forEach(v=>{!g[v]&&(g[v]=(y,A)=>{let b=y&&y[v];if(b)return b.call(y);throw new T(`Response type '${v}' is not supported`,T.ERR_NOT_SUPPORT,A)})});let m=async v=>{if(v==null)return 0;if(C.isBlob(v))return v.size;if(C.isSpecCompliantForm(v))return(await new r(Qe.origin,{method:"POST",body:v}).arrayBuffer()).byteLength;if(C.isArrayBufferView(v)||C.isArrayBuffer(v))return v.byteLength;if(C.isURLSearchParams(v)&&(v=v+""),C.isString(v))return(await p(v)).byteLength},f=async(v,y)=>{let A=C.toFiniteNumber(v.getContentLength());return A??m(y)};return async v=>{let{url:y,method:A,data:b,signal:O,cancelToken:$,timeout:N,onDownloadProgress:X,onUploadProgress:F,responseType:k,headers:Q,withCredentials:Z="same-origin",fetchOptions:ie,maxContentLength:se,maxBodyLength:De}=Cq(v),S=C.isNumber(se)&&se>-1,R=C.isNumber(De)&&De>-1,Ae=a||fetch;k=k?(k+"").toLowerCase():"text";let Se=HZ([O,$&&$.toAbortSignal()],N),I=null,ei=Se&&Se.unsubscribe&&(()=>{Se.unsubscribe()}),Re;try{if(S&&typeof y=="string"&&y.startsWith("data:")&&mq(y)>se)throw new T("maxContentLength size of "+se+" exceeded",T.ERR_BAD_RESPONSE,v,I);if(R&&A!=="get"&&A!=="head"){let x=await f(Q,b);if(typeof x=="number"&&isFinite(x)&&x>De)throw new T("Request body larger than maxBodyLength limit",T.ERR_BAD_REQUEST,v,I)}if(F&&d&&A!=="get"&&A!=="head"&&(Re=await f(Q,b))!==0){let x=new r(y,{method:"POST",body:b,duplex:"half"}),be;if(C.isFormData(b)&&(be=x.headers.get("content-type"))&&Q.setContentType(be),x.body){let[Je,ye]=Lc(Re,Kr(Wc(F)));b=Lk(x.body,Wk,Je,ye)}}C.isString(Z)||(Z=Z?"include":"omit");let Me=l&&"credentials"in r.prototype;if(C.isFormData(b)){let x=Q.getContentType();x&&/^multipart\/form-data/i.test(x)&&!/boundary=/i.test(x)&&Q.delete("content-type")}Q.set("User-Agent","axios/"+Uo,!1);let Oi={...ie,signal:Se,method:A.toUpperCase(),headers:wv(Q.normalize()),body:b,duplex:"half",credentials:Me?Z:void 0};I=l&&new r(y,Oi);let vi=await(l?Ae(I,ie):Ae(y,Oi));if(S){let x=C.toFiniteNumber(vi.headers.get("content-length"));if(x!=null&&x>se)throw new T("maxContentLength size of "+se+" exceeded",T.ERR_BAD_RESPONSE,v,I)}let nn=h&&(k==="stream"||k==="response");if(h&&vi.body&&(X||S||nn&&ei)){let x={};["status","statusText","headers"].forEach(xe=>{x[xe]=vi[xe]});let be=C.toFiniteNumber(vi.headers.get("content-length")),[Je,ye]=X&&Lc(be,Kr(Wc(X),!0))||[],ni=0,pi=xe=>{if(S&&(ni=xe,ni>se))throw new T("maxContentLength size of "+se+" exceeded",T.ERR_BAD_RESPONSE,v,I);Je&&Je(xe)};vi=new s(Lk(vi.body,Wk,pi,()=>{ye&&ye(),ei&&ei()}),x)}k=k||"text";let G=await g[C.findKey(g,k)||"text"](vi,v);if(S&&!h&&!nn){let x;if(G!=null&&(typeof G.byteLength=="number"?x=G.byteLength:typeof G.size=="number"?x=G.size:typeof G=="string"&&(x=typeof n=="function"?new n().encode(G).byteLength:G.length)),typeof x=="number"&&x>se)throw new T("maxContentLength size of "+se+" exceeded",T.ERR_BAD_RESPONSE,v,I)}return!nn&&ei&&ei(),await new Promise((x,be)=>{Jr(x,be,{data:G,headers:ti.from(vi.headers),status:vi.status,statusText:vi.statusText,config:v,request:I})})}catch(Me){if(ei&&ei(),Se&&Se.aborted&&Se.reason instanceof T){let Oi=Se.reason;throw Oi.config=v,I&&(Oi.request=I),Me!==Oi&&(Oi.cause=Me),Oi}throw Me&&Me.name==="TypeError"&&/Load failed|fetch/i.test(Me.message)?Object.assign(new T("Network Error",T.ERR_NETWORK,v,I,Me&&Me.response),{cause:Me.cause||Me}):T.from(Me,Me&&Me.code,v,I,Me&&Me.response)}}},GZ=new Map,Aq=t=>{let e=t&&t.env||{},{fetch:i,Request:n,Response:a}=e,r=[n,a,i],s=r.length,o=s,l,u,c=GZ;for(;o--;)l=r[o],u=c.get(l),u===void 0&&c.set(l,u=o?new Map:DZ(e)),c=u;return u};Aq();var bv={http:OZ,xhr:_Z,fetch:{get:Aq}};C.forEach(bv,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{__proto__:null,value:e})}catch{}Object.defineProperty(t,"adapterName",{__proto__:null,value:e})}});var Fk=t=>`- ${t}`,$Z=t=>C.isFunction(t)||t===null||t===!1;function NZ(t,e){t=C.isArray(t)?t:[t];let{length:i}=t,n,a,r={};for(let s=0;s`adapter ${l} `+(u===!1?"is not supported by the environment":"is not available in the build")),o=i?s.length>1?`since : `+s.map(Fk).join(` -`):" "+Fk(s[0]):"as no adapter specified";throw new T("There is no suitable adapter to dispatch the request "+o,"ERR_NOT_SUPPORT")}return a}var bq={getAdapter:NZ,adapters:bv};function av(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new ut(null,t)}function Vk(t){return av(t),t.headers=ti.from(t.headers),t.data=nv.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),bq.getAdapter(t.adapter||Vo.adapter,t)(t).then(function(n){av(t),t.response=n;try{n.data=nv.call(t,t.transformResponse,n)}finally{delete t.response}return n.headers=ti.from(n.headers),n},function(n){if(!pq(n)&&(av(t),n&&n.response)){t.response=n.response;try{n.response.data=nv.call(t,t.transformResponse,n.response)}finally{delete t.response}n.response.headers=ti.from(n.response.headers)}return Promise.reject(n)})}var Qc={};["object","boolean","number","function","string","symbol"].forEach((t,e)=>{Qc[t]=function(n){return typeof n===t||"a"+(e<1?"n ":" ")+t}});var Jk={};Qc.transitional=function(e,i,n){function a(r,s){return"[Axios v"+Uo+"] Transitional option '"+r+"'"+s+(n?". "+n:"")}return(r,s,o)=>{if(e===!1)throw new T(a(s," has been removed"+(i?" in "+i:"")),T.ERR_DEPRECATED);return i&&!Jk[s]&&(Jk[s]=!0,console.warn(a(s," has been deprecated since v"+i+" and will be removed in the near future"))),e?e(r,s,o):!0}};Qc.spelling=function(e){return(i,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};function UZ(t,e,i){if(typeof t!="object")throw new T("options must be an object",T.ERR_BAD_OPTION_VALUE);let n=Object.keys(t),a=n.length;for(;a-- >0;){let r=n[a],s=Object.prototype.hasOwnProperty.call(e,r)?e[r]:void 0;if(s){let o=t[r],l=o===void 0||s(o,r,t);if(l!==!0)throw new T("option "+r+" must be "+l,T.ERR_BAD_OPTION_VALUE);continue}if(i!==!0)throw new T("Unknown option "+r,T.ERR_BAD_OPTION)}}var $c={assertOptions:UZ,validators:Qc},gn=$c.validators,lt=class{constructor(e){this.defaults=e||{},this.interceptors={request:new Nc,response:new Nc}}async request(e,i){try{return await this._request(e,i)}catch(n){if(n instanceof Error){let a={};Error.captureStackTrace?Error.captureStackTrace(a):a=new Error;let r=(()=>{if(!a.stack)return"";let s=a.stack.indexOf(` +`):" "+Fk(s[0]):"as no adapter specified";throw new T("There is no suitable adapter to dispatch the request "+o,"ERR_NOT_SUPPORT")}return a}var bq={getAdapter:NZ,adapters:bv};function av(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new ut(null,t)}function Vk(t){return av(t),t.headers=ti.from(t.headers),t.data=nv.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),bq.getAdapter(t.adapter||Vo.adapter,t)(t).then(function(n){av(t),t.response=n;try{n.data=nv.call(t,t.transformResponse,n)}finally{delete t.response}return n.headers=ti.from(n.headers),n},function(n){if(!pq(n)&&(av(t),n&&n.response)){t.response=n.response;try{n.response.data=nv.call(t,t.transformResponse,n.response)}finally{delete t.response}n.response.headers=ti.from(n.response.headers)}return Promise.reject(n)})}var Qc={};["object","boolean","number","function","string","symbol"].forEach((t,e)=>{Qc[t]=function(n){return typeof n===t||"a"+(e<1?"n ":" ")+t}});var Jk={};Qc.transitional=function(e,i,n){function a(r,s){return"[Axios v"+Uo+"] Transitional option '"+r+"'"+s+(n?". "+n:"")}return(r,s,o)=>{if(e===!1)throw new T(a(s," has been removed"+(i?" in "+i:"")),T.ERR_DEPRECATED);return i&&!Jk[s]&&(Jk[s]=!0,console.warn(a(s," has been deprecated since v"+i+" and will be removed in the near future"))),e?e(r,s,o):!0}};Qc.spelling=function(e){return(i,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};function UZ(t,e,i){if(typeof t!="object")throw new T("options must be an object",T.ERR_BAD_OPTION_VALUE);let n=Object.keys(t),a=n.length;for(;a-- >0;){let r=n[a],s=Object.prototype.hasOwnProperty.call(e,r)?e[r]:void 0;if(s){let o=t[r],l=o===void 0||s(o,r,t);if(l!==!0)throw new T("option "+r+" must be "+l,T.ERR_BAD_OPTION_VALUE);continue}if(i!==!0)throw new T("Unknown option "+r,T.ERR_BAD_OPTION)}}var $c={assertOptions:UZ,validators:Qc},mn=$c.validators,lt=class{constructor(e){this.defaults=e||{},this.interceptors={request:new Nc,response:new Nc}}async request(e,i){try{return await this._request(e,i)}catch(n){if(n instanceof Error){let a={};Error.captureStackTrace?Error.captureStackTrace(a):a=new Error;let r=(()=>{if(!a.stack)return"";let s=a.stack.indexOf(` `);return s===-1?"":a.stack.slice(s+1)})();try{if(!n.stack)n.stack=r;else if(r){let s=r.indexOf(` `),o=s===-1?-1:r.indexOf(` `,s+1),l=o===-1?"":r.slice(o+1);String(n.stack).endsWith(l)||(n.stack+=` -`+r)}}catch{}}throw n}}_request(e,i){typeof e=="string"?(i=i||{},i.url=e):i=e||{},i=Ia(this.defaults,i);let{transitional:n,paramsSerializer:a,headers:r}=i;n!==void 0&&$c.assertOptions(n,{silentJSONParsing:gn.transitional(gn.boolean),forcedJSONParsing:gn.transitional(gn.boolean),clarifyTimeoutError:gn.transitional(gn.boolean),legacyInterceptorReqResOrdering:gn.transitional(gn.boolean)},!1),a!=null&&(C.isFunction(a)?i.paramsSerializer={serialize:a}:$c.assertOptions(a,{encode:gn.function,serialize:gn.function},!0)),i.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?i.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:i.allowAbsoluteUrls=!0),$c.assertOptions(i,{baseUrl:gn.spelling("baseURL"),withXsrfToken:gn.spelling("withXSRFToken")},!0),i.method=(i.method||this.defaults.method||"get").toLowerCase();let s=r&&C.merge(r.common,r[i.method]);r&&C.forEach(["delete","get","head","post","put","patch","query","common"],g=>{delete r[g]}),i.headers=ti.concat(s,r);let o=[],l=!0;this.interceptors.request.forEach(function(m){if(typeof m.runWhen=="function"&&m.runWhen(i)===!1)return;l=l&&m.synchronous;let f=i.transitional||Kc;f&&f.legacyInterceptorReqResOrdering?o.unshift(m.fulfilled,m.rejected):o.push(m.fulfilled,m.rejected)});let u=[];this.interceptors.response.forEach(function(m){u.push(m.fulfilled,m.rejected)});let c,p=0,d;if(!l){let g=[Vk.bind(this),void 0];for(g.unshift(...o),g.push(...u),d=g.length,c=Promise.resolve(i);p{if(!n._listeners)return;let r=n._listeners.length;for(;r-- >0;)n._listeners[r](a);n._listeners=null}),this.promise.then=a=>{let r,s=new Promise(o=>{n.subscribe(o),r=o}).then(a);return s.cancel=function(){n.unsubscribe(r)},s},e(function(r,s,o){n.reason||(n.reason=new ut(r,s,o),i(n.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 i=this._listeners.indexOf(e);i!==-1&&this._listeners.splice(i,1)}toAbortSignal(){let e=new AbortController,i=n=>{e.abort(n)};return this.subscribe(i),e.signal.unsubscribe=()=>this.unsubscribe(i),e.signal}static source(){let e;return{token:new t(function(a){e=a}),cancel:e}}};function LZ(t){return function(i){return t.apply(null,i)}}function WZ(t){return C.isObject(t)&&t.isAxiosError===!0}var gv={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(gv).forEach(([t,e])=>{gv[e]=t});function yq(t){let e=new lt(t),i=Yk(lt.prototype.request,e);return C.extend(i,lt.prototype,e,{allOwnKeys:!0}),C.extend(i,e,null,{allOwnKeys:!0}),i.create=function(a){return yq(Ia(t,a))},i}var ai=yq(Vo);ai.Axios=lt;ai.CanceledError=ut;ai.CancelToken=hv;ai.isCancel=pq;ai.VERSION=Uo;ai.toFormData=Zc;ai.AxiosError=T;ai.Cancel=ai.CanceledError;ai.all=function(e){return Promise.all(e)};ai.spread=LZ;ai.isAxiosError=WZ;ai.mergeConfig=Ia;ai.AxiosHeaders=ti;ai.formToJSON=t=>cq(C.isHTMLForm(t)?new FormData(t):t);ai.getAdapter=bq.getAdapter;ai.HttpStatusCode=gv;ai.default=ai;Pq.exports=ai});var Oq=w((poe,Sq)=>{Sq.exports=require("util").inspect});var Yo=w((doe,Fq)=>{var kv=typeof Map=="function"&&Map.prototype,yv=Object.getOwnPropertyDescriptor&&kv?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,Xc=kv&&yv&&typeof yv.get=="function"?yv.get:null,xq=kv&&Map.prototype.forEach,qv=typeof Set=="function"&&Set.prototype,Pv=Object.getOwnPropertyDescriptor&&qv?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,ep=qv&&Pv&&typeof Pv.get=="function"?Pv.get:null,Tq=qv&&Set.prototype.forEach,BZ=typeof WeakMap=="function"&&WeakMap.prototype,Zo=BZ?WeakMap.prototype.has:null,FZ=typeof WeakSet=="function"&&WeakSet.prototype,Ko=FZ?WeakSet.prototype.has:null,VZ=typeof WeakRef=="function"&&WeakRef.prototype,Mq=VZ?WeakRef.prototype.deref:null,JZ=Boolean.prototype.valueOf,ZZ=Object.prototype.toString,KZ=Function.prototype.toString,QZ=String.prototype.match,_v=String.prototype.slice,Gt=String.prototype.replace,YZ=String.prototype.toUpperCase,Eq=String.prototype.toLowerCase,Gq=RegExp.prototype.test,kq=Array.prototype.concat,Nn=Array.prototype.join,XZ=Array.prototype.slice,qq=Math.floor,Ov=typeof BigInt=="function"?BigInt.prototype.valueOf:null,jv=Object.getOwnPropertySymbols,xv=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,Qr=typeof Symbol=="function"&&typeof Symbol.iterator=="object",Qo=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===Qr||!0)?Symbol.toStringTag:null,$q=Object.prototype.propertyIsEnumerable,_q=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(t){return t.__proto__}:null);function Hq(t,e){if(t===1/0||t===-1/0||t!==t||t&&t>-1e3&&t<1e3||Gq.call(/e/,e))return e;var i=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof t=="number"){var n=t<0?-qq(-t):qq(t);if(n!==t){var a=String(n),r=_v.call(e,a.length+1);return Gt.call(a,i,"$&_")+"."+Gt.call(Gt.call(r,/([0-9]{3})/g,"$&_"),/_$/,"")}}return Gt.call(e,i,"$&_")}var Tv=Oq(),Rq=Tv.custom,Iq=Lq(Rq)?Rq:null,Nq={__proto__:null,double:'"',single:"'"},e5={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};Fq.exports=function t(e,i,n,a){var r=i||{};if(ct(r,"quoteStyle")&&!ct(Nq,r.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(ct(r,"maxStringLength")&&(typeof r.maxStringLength=="number"?r.maxStringLength<0&&r.maxStringLength!==1/0:r.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var s=ct(r,"customInspect")?r.customInspect:!0;if(typeof s!="boolean"&&s!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(ct(r,"indent")&&r.indent!==null&&r.indent!==" "&&!(parseInt(r.indent,10)===r.indent&&r.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(ct(r,"numericSeparator")&&typeof r.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var o=r.numericSeparator;if(typeof e>"u")return"undefined";if(e===null)return"null";if(typeof e=="boolean")return e?"true":"false";if(typeof e=="string")return Bq(e,r);if(typeof e=="number"){if(e===0)return 1/0/e>0?"0":"-0";var l=String(e);return o?Hq(e,l):l}if(typeof e=="bigint"){var u=String(e)+"n";return o?Hq(e,u):u}var c=typeof r.depth>"u"?5:r.depth;if(typeof n>"u"&&(n=0),n>=c&&c>0&&typeof e=="object")return Mv(e)?"[Array]":"[Object]";var p=v5(r,n);if(typeof a>"u")a=[];else if(Wq(a,e)>=0)return"[Circular]";function d(ie,se,De){if(se&&(a=XZ.call(a),a.push(se)),De){var S={depth:r.depth};return ct(r,"quoteStyle")&&(S.quoteStyle=r.quoteStyle),t(ie,S,n+1,a)}return t(ie,r,n+1,a)}if(typeof e=="function"&&!zq(e)){var h=u5(e),g=Yc(e,d);return"[Function"+(h?": "+h:" (anonymous)")+"]"+(g.length>0?" { "+Nn.call(g,", ")+" }":"")}if(Lq(e)){var m=Qr?Gt.call(String(e),/^(Symbol\(.*\))_[^)]*$/,"$1"):xv.call(e);return typeof e=="object"&&!Qr?Jo(m):m}if(m5(e)){for(var f="<"+Eq.call(String(e.nodeName)),v=e.attributes||[],y=0;y",f}if(Mv(e)){if(e.length===0)return"[]";var A=Yc(e,d);return p&&!w5(A)?"["+Ev(A,p)+"]":"[ "+Nn.call(A,", ")+" ]"}if(t5(e)){var b=Yc(e,d);return!("cause"in Error.prototype)&&"cause"in e&&!$q.call(e,"cause")?"{ ["+String(e)+"] "+Nn.call(kq.call("[cause]: "+d(e.cause),b),", ")+" }":b.length===0?"["+String(e)+"]":"{ ["+String(e)+"] "+Nn.call(b,", ")+" }"}if(typeof e=="object"&&s){if(Iq&&typeof e[Iq]=="function"&&Tv)return Tv(e,{depth:c-n});if(s!=="symbol"&&typeof e.inspect=="function")return e.inspect()}if(c5(e)){var O=[];return xq&&xq.call(e,function(ie,se){O.push(d(se,e,!0)+" => "+d(ie,e))}),Dq("Map",Xc.call(e),O,p)}if(h5(e)){var $=[];return Tq&&Tq.call(e,function(ie){$.push(d(ie,e))}),Dq("Set",ep.call(e),$,p)}if(p5(e))return Sv("WeakMap");if(g5(e))return Sv("WeakSet");if(d5(e))return Sv("WeakRef");if(r5(e))return Jo(d(Number(e)));if(o5(e))return Jo(d(Ov.call(e)));if(s5(e))return Jo(JZ.call(e));if(a5(e))return Jo(d(String(e)));if(typeof window<"u"&&e===window)return"{ [object Window] }";if(typeof globalThis<"u"&&e===globalThis||typeof global<"u"&&e===global)return"{ [object globalThis] }";if(!n5(e)&&!zq(e)){var N=Yc(e,d),X=_q?_q(e)===Object.prototype:e instanceof Object||e.constructor===Object,F=e instanceof Object?"":"null prototype",k=!X&&Qo&&Object(e)===e&&Qo in e?_v.call($t(e),8,-1):F?"Object":"",Q=X||typeof e.constructor!="function"?"":e.constructor.name?e.constructor.name+" ":"",Z=Q+(k||F?"["+Nn.call(kq.call([],k||[],F||[]),": ")+"] ":"");return N.length===0?Z+"{}":p?Z+"{"+Ev(N,p)+"}":Z+"{ "+Nn.call(N,", ")+" }"}return String(e)};function Uq(t,e,i){var n=i.quoteStyle||e,a=Nq[n];return a+t+a}function i5(t){return Gt.call(String(t),/"/g,""")}function za(t){return!Qo||!(typeof t=="object"&&(Qo in t||typeof t[Qo]<"u"))}function Mv(t){return $t(t)==="[object Array]"&&za(t)}function n5(t){return $t(t)==="[object Date]"&&za(t)}function zq(t){return $t(t)==="[object RegExp]"&&za(t)}function t5(t){return $t(t)==="[object Error]"&&za(t)}function a5(t){return $t(t)==="[object String]"&&za(t)}function r5(t){return $t(t)==="[object Number]"&&za(t)}function s5(t){return $t(t)==="[object Boolean]"&&za(t)}function Lq(t){if(Qr)return t&&typeof t=="object"&&t instanceof Symbol;if(typeof t=="symbol")return!0;if(!t||typeof t!="object"||!xv)return!1;try{return xv.call(t),!0}catch{}return!1}function o5(t){if(!t||typeof t!="object"||!Ov)return!1;try{return Ov.call(t),!0}catch{}return!1}var l5=Object.prototype.hasOwnProperty||function(t){return t in this};function ct(t,e){return l5.call(t,e)}function $t(t){return ZZ.call(t)}function u5(t){if(t.name)return t.name;var e=QZ.call(KZ.call(t),/^function\s*([\w$]+)/);return e?e[1]:null}function Wq(t,e){if(t.indexOf)return t.indexOf(e);for(var i=0,n=t.length;ie.maxStringLength){var i=t.length-e.maxStringLength,n="... "+i+" more character"+(i>1?"s":"");return Bq(_v.call(t,0,e.maxStringLength),e)+n}var a=e5[e.quoteStyle||"single"];a.lastIndex=0;var r=Gt.call(Gt.call(t,a,"\\$1"),/[\x00-\x1f]/g,f5);return Uq(r,"single",e)}function f5(t){var e=t.charCodeAt(0),i={8:"b",9:"t",10:"n",12:"f",13:"r"}[e];return i?"\\"+i:"\\x"+(e<16?"0":"")+YZ.call(e.toString(16))}function Jo(t){return"Object("+t+")"}function Sv(t){return t+" { ? }"}function Dq(t,e,i,n){var a=n?Ev(i,n):Nn.call(i,", ");return t+" ("+e+") {"+a+"}"}function w5(t){for(var e=0;e{delete r[g]}),i.headers=ti.concat(s,r);let o=[],l=!0;this.interceptors.request.forEach(function(m){if(typeof m.runWhen=="function"&&m.runWhen(i)===!1)return;l=l&&m.synchronous;let f=i.transitional||Kc;f&&f.legacyInterceptorReqResOrdering?o.unshift(m.fulfilled,m.rejected):o.push(m.fulfilled,m.rejected)});let u=[];this.interceptors.response.forEach(function(m){u.push(m.fulfilled,m.rejected)});let c,p=0,d;if(!l){let g=[Vk.bind(this),void 0];for(g.unshift(...o),g.push(...u),d=g.length,c=Promise.resolve(i);p{if(!n._listeners)return;let r=n._listeners.length;for(;r-- >0;)n._listeners[r](a);n._listeners=null}),this.promise.then=a=>{let r,s=new Promise(o=>{n.subscribe(o),r=o}).then(a);return s.cancel=function(){n.unsubscribe(r)},s},e(function(r,s,o){n.reason||(n.reason=new ut(r,s,o),i(n.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 i=this._listeners.indexOf(e);i!==-1&&this._listeners.splice(i,1)}toAbortSignal(){let e=new AbortController,i=n=>{e.abort(n)};return this.subscribe(i),e.signal.unsubscribe=()=>this.unsubscribe(i),e.signal}static source(){let e;return{token:new t(function(a){e=a}),cancel:e}}};function LZ(t){return function(i){return t.apply(null,i)}}function WZ(t){return C.isObject(t)&&t.isAxiosError===!0}var gv={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(gv).forEach(([t,e])=>{gv[e]=t});function yq(t){let e=new lt(t),i=Yk(lt.prototype.request,e);return C.extend(i,lt.prototype,e,{allOwnKeys:!0}),C.extend(i,e,null,{allOwnKeys:!0}),i.create=function(a){return yq(Ia(t,a))},i}var ai=yq(Vo);ai.Axios=lt;ai.CanceledError=ut;ai.CancelToken=hv;ai.isCancel=pq;ai.VERSION=Uo;ai.toFormData=Zc;ai.AxiosError=T;ai.Cancel=ai.CanceledError;ai.all=function(e){return Promise.all(e)};ai.spread=LZ;ai.isAxiosError=WZ;ai.mergeConfig=Ia;ai.AxiosHeaders=ti;ai.formToJSON=t=>cq(C.isHTMLForm(t)?new FormData(t):t);ai.getAdapter=bq.getAdapter;ai.HttpStatusCode=gv;ai.default=ai;Pq.exports=ai});var Oq=w((poe,Sq)=>{Sq.exports=require("util").inspect});var Yo=w((doe,Fq)=>{var kv=typeof Map=="function"&&Map.prototype,yv=Object.getOwnPropertyDescriptor&&kv?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,Xc=kv&&yv&&typeof yv.get=="function"?yv.get:null,xq=kv&&Map.prototype.forEach,qv=typeof Set=="function"&&Set.prototype,Pv=Object.getOwnPropertyDescriptor&&qv?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,ep=qv&&Pv&&typeof Pv.get=="function"?Pv.get:null,Tq=qv&&Set.prototype.forEach,BZ=typeof WeakMap=="function"&&WeakMap.prototype,Zo=BZ?WeakMap.prototype.has:null,FZ=typeof WeakSet=="function"&&WeakSet.prototype,Ko=FZ?WeakSet.prototype.has:null,VZ=typeof WeakRef=="function"&&WeakRef.prototype,Mq=VZ?WeakRef.prototype.deref:null,JZ=Boolean.prototype.valueOf,ZZ=Object.prototype.toString,KZ=Function.prototype.toString,QZ=String.prototype.match,_v=String.prototype.slice,Gt=String.prototype.replace,YZ=String.prototype.toUpperCase,Eq=String.prototype.toLowerCase,Gq=RegExp.prototype.test,kq=Array.prototype.concat,Nn=Array.prototype.join,XZ=Array.prototype.slice,qq=Math.floor,Ov=typeof BigInt=="function"?BigInt.prototype.valueOf:null,jv=Object.getOwnPropertySymbols,xv=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,Yr=typeof Symbol=="function"&&typeof Symbol.iterator=="object",Qo=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===Yr||!0)?Symbol.toStringTag:null,$q=Object.prototype.propertyIsEnumerable,_q=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(t){return t.__proto__}:null);function Hq(t,e){if(t===1/0||t===-1/0||t!==t||t&&t>-1e3&&t<1e3||Gq.call(/e/,e))return e;var i=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof t=="number"){var n=t<0?-qq(-t):qq(t);if(n!==t){var a=String(n),r=_v.call(e,a.length+1);return Gt.call(a,i,"$&_")+"."+Gt.call(Gt.call(r,/([0-9]{3})/g,"$&_"),/_$/,"")}}return Gt.call(e,i,"$&_")}var Tv=Oq(),Rq=Tv.custom,Iq=Lq(Rq)?Rq:null,Nq={__proto__:null,double:'"',single:"'"},e5={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};Fq.exports=function t(e,i,n,a){var r=i||{};if(ct(r,"quoteStyle")&&!ct(Nq,r.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(ct(r,"maxStringLength")&&(typeof r.maxStringLength=="number"?r.maxStringLength<0&&r.maxStringLength!==1/0:r.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var s=ct(r,"customInspect")?r.customInspect:!0;if(typeof s!="boolean"&&s!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(ct(r,"indent")&&r.indent!==null&&r.indent!==" "&&!(parseInt(r.indent,10)===r.indent&&r.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(ct(r,"numericSeparator")&&typeof r.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var o=r.numericSeparator;if(typeof e>"u")return"undefined";if(e===null)return"null";if(typeof e=="boolean")return e?"true":"false";if(typeof e=="string")return Bq(e,r);if(typeof e=="number"){if(e===0)return 1/0/e>0?"0":"-0";var l=String(e);return o?Hq(e,l):l}if(typeof e=="bigint"){var u=String(e)+"n";return o?Hq(e,u):u}var c=typeof r.depth>"u"?5:r.depth;if(typeof n>"u"&&(n=0),n>=c&&c>0&&typeof e=="object")return Mv(e)?"[Array]":"[Object]";var p=v5(r,n);if(typeof a>"u")a=[];else if(Wq(a,e)>=0)return"[Circular]";function d(ie,se,De){if(se&&(a=XZ.call(a),a.push(se)),De){var S={depth:r.depth};return ct(r,"quoteStyle")&&(S.quoteStyle=r.quoteStyle),t(ie,S,n+1,a)}return t(ie,r,n+1,a)}if(typeof e=="function"&&!zq(e)){var h=u5(e),g=Yc(e,d);return"[Function"+(h?": "+h:" (anonymous)")+"]"+(g.length>0?" { "+Nn.call(g,", ")+" }":"")}if(Lq(e)){var m=Yr?Gt.call(String(e),/^(Symbol\(.*\))_[^)]*$/,"$1"):xv.call(e);return typeof e=="object"&&!Yr?Jo(m):m}if(m5(e)){for(var f="<"+Eq.call(String(e.nodeName)),v=e.attributes||[],y=0;y",f}if(Mv(e)){if(e.length===0)return"[]";var A=Yc(e,d);return p&&!w5(A)?"["+Ev(A,p)+"]":"[ "+Nn.call(A,", ")+" ]"}if(t5(e)){var b=Yc(e,d);return!("cause"in Error.prototype)&&"cause"in e&&!$q.call(e,"cause")?"{ ["+String(e)+"] "+Nn.call(kq.call("[cause]: "+d(e.cause),b),", ")+" }":b.length===0?"["+String(e)+"]":"{ ["+String(e)+"] "+Nn.call(b,", ")+" }"}if(typeof e=="object"&&s){if(Iq&&typeof e[Iq]=="function"&&Tv)return Tv(e,{depth:c-n});if(s!=="symbol"&&typeof e.inspect=="function")return e.inspect()}if(c5(e)){var O=[];return xq&&xq.call(e,function(ie,se){O.push(d(se,e,!0)+" => "+d(ie,e))}),Dq("Map",Xc.call(e),O,p)}if(h5(e)){var $=[];return Tq&&Tq.call(e,function(ie){$.push(d(ie,e))}),Dq("Set",ep.call(e),$,p)}if(p5(e))return Sv("WeakMap");if(g5(e))return Sv("WeakSet");if(d5(e))return Sv("WeakRef");if(r5(e))return Jo(d(Number(e)));if(o5(e))return Jo(d(Ov.call(e)));if(s5(e))return Jo(JZ.call(e));if(a5(e))return Jo(d(String(e)));if(typeof window<"u"&&e===window)return"{ [object Window] }";if(typeof globalThis<"u"&&e===globalThis||typeof global<"u"&&e===global)return"{ [object globalThis] }";if(!n5(e)&&!zq(e)){var N=Yc(e,d),X=_q?_q(e)===Object.prototype:e instanceof Object||e.constructor===Object,F=e instanceof Object?"":"null prototype",k=!X&&Qo&&Object(e)===e&&Qo in e?_v.call($t(e),8,-1):F?"Object":"",Q=X||typeof e.constructor!="function"?"":e.constructor.name?e.constructor.name+" ":"",Z=Q+(k||F?"["+Nn.call(kq.call([],k||[],F||[]),": ")+"] ":"");return N.length===0?Z+"{}":p?Z+"{"+Ev(N,p)+"}":Z+"{ "+Nn.call(N,", ")+" }"}return String(e)};function Uq(t,e,i){var n=i.quoteStyle||e,a=Nq[n];return a+t+a}function i5(t){return Gt.call(String(t),/"/g,""")}function za(t){return!Qo||!(typeof t=="object"&&(Qo in t||typeof t[Qo]<"u"))}function Mv(t){return $t(t)==="[object Array]"&&za(t)}function n5(t){return $t(t)==="[object Date]"&&za(t)}function zq(t){return $t(t)==="[object RegExp]"&&za(t)}function t5(t){return $t(t)==="[object Error]"&&za(t)}function a5(t){return $t(t)==="[object String]"&&za(t)}function r5(t){return $t(t)==="[object Number]"&&za(t)}function s5(t){return $t(t)==="[object Boolean]"&&za(t)}function Lq(t){if(Yr)return t&&typeof t=="object"&&t instanceof Symbol;if(typeof t=="symbol")return!0;if(!t||typeof t!="object"||!xv)return!1;try{return xv.call(t),!0}catch{}return!1}function o5(t){if(!t||typeof t!="object"||!Ov)return!1;try{return Ov.call(t),!0}catch{}return!1}var l5=Object.prototype.hasOwnProperty||function(t){return t in this};function ct(t,e){return l5.call(t,e)}function $t(t){return ZZ.call(t)}function u5(t){if(t.name)return t.name;var e=QZ.call(KZ.call(t),/^function\s*([\w$]+)/);return e?e[1]:null}function Wq(t,e){if(t.indexOf)return t.indexOf(e);for(var i=0,n=t.length;ie.maxStringLength){var i=t.length-e.maxStringLength,n="... "+i+" more character"+(i>1?"s":"");return Bq(_v.call(t,0,e.maxStringLength),e)+n}var a=e5[e.quoteStyle||"single"];a.lastIndex=0;var r=Gt.call(Gt.call(t,a,"\\$1"),/[\x00-\x1f]/g,f5);return Uq(r,"single",e)}function f5(t){var e=t.charCodeAt(0),i={8:"b",9:"t",10:"n",12:"f",13:"r"}[e];return i?"\\"+i:"\\x"+(e<16?"0":"")+YZ.call(e.toString(16))}function Jo(t){return"Object("+t+")"}function Sv(t){return t+" { ? }"}function Dq(t,e,i,n){var a=n?Ev(i,n):Nn.call(i,", ");return t+" ("+e+") {"+a+"}"}function w5(t){for(var e=0;e=0)return!1;return!0}function v5(t,e){var i;if(t.indent===" ")i=" ";else if(typeof t.indent=="number"&&t.indent>0)i=Nn.call(Array(t.indent+1)," ");else return null;return{base:i,prev:Nn.call(Array(e+1),i)}}function Ev(t,e){if(t.length===0)return"";var i=` `+e.prev+e.base;return i+Nn.call(t,","+i)+` -`+e.prev}function Yc(t,e){var i=Mv(t),n=[];if(i){n.length=t.length;for(var a=0;a{"use strict";var C5=Yo(),A5=It(),ip=function(t,e,i){for(var n=t,a;(a=n.next)!=null;n=a)if(a.key===e)return n.next=a.next,i||(a.next=t.next,t.next=a),a},b5=function(t,e){if(t){var i=ip(t,e);return i&&i.value}},y5=function(t,e,i){var n=ip(t,e);n?n.value=i:t.next={key:e,next:t.next,value:i}},P5=function(t,e){return t?!!ip(t,e):!1},j5=function(t,e){if(t)return ip(t,e,!0)};Vq.exports=function(){var e,i={assert:function(n){if(!i.has(n))throw new A5("Side channel does not contain "+C5(n))},delete:function(n){var a=j5(e,n);return a&&e&&!e.next&&(e=void 0),!!a},get:function(n){return b5(e,n)},has:function(n){return P5(e,n)},set:function(n,a){e||(e={next:void 0}),y5(e,n,a)}};return i}});var Hv=w((goe,Qq)=>{"use strict";var Zq=ko(),Kq=Pw(),S5=Kq([Zq("%String.prototype.indexOf%")]);Qq.exports=function(e,i){var n=Zq(e,!!i);return typeof n=="function"&&S5(e,".prototype.")>-1?Kq([n]):n}});var Rv=w((moe,Xq)=>{"use strict";var O5=ko(),Xo=Hv(),x5=Yo(),T5=It(),Yq=O5("%Map%",!0),M5=Xo("Map.prototype.get",!0),E5=Xo("Map.prototype.set",!0),k5=Xo("Map.prototype.has",!0),q5=Xo("Map.prototype.delete",!0),_5=Xo("Map.prototype.size",!0);Xq.exports=!!Yq&&function(){var e,i={assert:function(n){if(!i.has(n))throw new T5("Side channel does not contain "+x5(n))},delete:function(n){if(e){var a=q5(e,n);return _5(e)===0&&(e=void 0),a}return!1},get:function(n){if(e)return M5(e,n)},has:function(n){return e?k5(e,n):!1},set:function(n,a){e||(e=new Yq),E5(e,n,a)}};return i}});var i_=w((foe,e_)=>{"use strict";var H5=ko(),tp=Hv(),R5=Yo(),np=Rv(),I5=It(),Yr=H5("%WeakMap%",!0),z5=tp("WeakMap.prototype.get",!0),D5=tp("WeakMap.prototype.set",!0),G5=tp("WeakMap.prototype.has",!0),$5=tp("WeakMap.prototype.delete",!0);e_.exports=Yr?function(){var e,i,n={assert:function(a){if(!n.has(a))throw new I5("Side channel does not contain "+R5(a))},delete:function(a){if(Yr&&a&&(typeof a=="object"||typeof a=="function")){if(e)return $5(e,a)}else if(np&&i)return i.delete(a);return!1},get:function(a){return Yr&&a&&(typeof a=="object"||typeof a=="function")&&e?z5(e,a):i&&i.get(a)},has:function(a){return Yr&&a&&(typeof a=="object"||typeof a=="function")&&e?G5(e,a):!!i&&i.has(a)},set:function(a,r){Yr&&a&&(typeof a=="object"||typeof a=="function")?(e||(e=new Yr),D5(e,a,r)):np&&(i||(i=np()),i.set(a,r))}};return n}:np});var Iv=w((woe,n_)=>{"use strict";var N5=It(),U5=Yo(),L5=Jq(),W5=Rv(),B5=i_(),F5=B5||W5||L5;n_.exports=function(){var e,i={assert:function(n){if(!i.has(n))throw new N5("Side channel does not contain "+U5(n))},delete:function(n){return!!e&&e.delete(n)},get:function(n){return e&&e.get(n)},has:function(n){return!!e&&e.has(n)},set:function(n,a){e||(e=F5()),e.set(n,a)}};return i}});var ap=w((voe,t_)=>{"use strict";var V5=String.prototype.replace,J5=/%20/g,zv={RFC1738:"RFC1738",RFC3986:"RFC3986"};t_.exports={default:zv.RFC3986,formatters:{RFC1738:function(t){return V5.call(t,J5,"+")},RFC3986:function(t){return String(t)}},RFC1738:zv.RFC1738,RFC3986:zv.RFC3986}});var Nv=w((Coe,a_)=>{"use strict";var Z5=ap(),K5=Iv(),Dv=Object.prototype.hasOwnProperty,Da=Array.isArray,rp=K5(),Xr=function(e,i){return rp.set(e,i),e},Ga=function(e){return rp.has(e)},el=function(e){return rp.get(e)},$v=function(e,i){rp.set(e,i)},Un=(function(){for(var t=[],e=0;e<256;++e)t[t.length]="%"+((e<16?"0":"")+e.toString(16)).toUpperCase();return t})(),Q5=function(e){for(;e.length>1;){var i=e.pop(),n=i.obj[i.prop];if(Da(n)){for(var a=[],r=0;rn.arrayLimit)return Xr(il(e.concat(i),n),a);e[a]=i}else if(e&&typeof e=="object")if(Ga(e)){var r=el(e)+1;e[r]=i,$v(e,r)}else{if(n&&n.strictMerge)return[e,i];(n&&(n.plainObjects||n.allowPrototypes)||!Dv.call(Object.prototype,i))&&(e[i]=!0)}else return[e,i];return e}if(!e||typeof e!="object"){if(Ga(i)){for(var s=Object.keys(i),o=n&&n.plainObjects?{__proto__:null,0:e}:{0:e},l=0;ln.arrayLimit?Xr(il(c,n),c.length-1):c}var p=e;return Da(e)&&!Da(i)&&(p=il(e,n)),Da(e)&&Da(i)?(i.forEach(function(d,h){if(Dv.call(e,h)){var g=e[h];g&&typeof g=="object"&&d&&typeof d=="object"?e[h]=t(g,d,n):e[e.length]=d}else e[h]=d}),e):Object.keys(i).reduce(function(d,h){var g=i[h];if(Dv.call(d,h)?d[h]=t(d[h],g,n):d[h]=g,Ga(i)&&!Ga(d)&&Xr(d,el(i)),Ga(d)){var m=parseInt(h,10);String(m)===h&&m>=0&&m>el(d)&&$v(d,m)}return d},p)},X5=function(e,i){return Object.keys(i).reduce(function(n,a){return n[a]=i[a],n},e)},eK=function(t,e,i){var n=t.replace(/\+/g," ");if(i==="iso-8859-1")return n.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(n)}catch{return n}},Gv=1024,iK=function(e,i,n,a,r){if(e.length===0)return e;var s=e;if(typeof e=="symbol"?s=Symbol.prototype.toString.call(e):typeof e!="string"&&(s=String(e)),n==="iso-8859-1")return escape(s).replace(/%u[0-9a-f]{4}/gi,function(h){return"%26%23"+parseInt(h.slice(2),16)+"%3B"});for(var o="",l=0;l=Gv?s.slice(l,l+Gv):s,c=[],p=0;p=48&&d<=57||d>=65&&d<=90||d>=97&&d<=122||r===Z5.RFC1738&&(d===40||d===41)){c[c.length]=u.charAt(p);continue}if(d<128){c[c.length]=Un[d];continue}if(d<2048){c[c.length]=Un[192|d>>6]+Un[128|d&63];continue}if(d<55296||d>=57344){c[c.length]=Un[224|d>>12]+Un[128|d>>6&63]+Un[128|d&63];continue}p+=1,d=65536+((d&1023)<<10|u.charCodeAt(p)&1023),c[c.length]=Un[240|d>>18]+Un[128|d>>12&63]+Un[128|d>>6&63]+Un[128|d&63]}o+=c.join("")}return o},nK=function(e){for(var i=[{obj:{o:e},prop:"o"}],n=[],a=0;an?Xr(il(s,{plainObjects:a}),s.length-1):s},sK=function(e,i){if(Da(e)){for(var n=[],a=0;a{"use strict";var s_=Iv(),sp=Nv(),nl=ap(),oK=Object.prototype.hasOwnProperty,o_={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,i){return e+"["+i+"]"},repeat:function(e){return e}},Ln=Array.isArray,lK=Array.prototype.push,l_=function(t,e){lK.apply(t,Ln(e)?e:[e])},uK=Date.prototype.toISOString,r_=nl.default,oi={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,commaRoundTrip:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:sp.encode,encodeValuesOnly:!1,filter:void 0,format:r_,formatter:nl.formatters[r_],indices:!1,serializeDate:function(e){return uK.call(e)},skipNulls:!1,strictNullHandling:!1},cK=function(e){return typeof e=="string"||typeof e=="number"||typeof e=="boolean"||typeof e=="symbol"||typeof e=="bigint"},Uv={},pK=function t(e,i,n,a,r,s,o,l,u,c,p,d,h,g,m,f,v,y){for(var A=e,b=y,O=0,$=!1;(b=b.get(Uv))!==void 0&&!$;){var N=b.get(e);if(O+=1,typeof N<"u"){if(N===O)throw new RangeError("Cyclic object value");$=!0}typeof b.get(Uv)>"u"&&(O=0)}if(typeof c=="function"?A=c(i,A):A instanceof Date?A=h(A):n==="comma"&&Ln(A)&&(A=sp.maybeMap(A,function(I){return I instanceof Date?h(I):I})),A===null){if(s)return m(u&&!f?u(i,oi.encoder,v,"key",g):i);A=""}if(cK(A)||sp.isBuffer(A)){if(u){var X=f?i:u(i,oi.encoder,v,"key",g);return[m(X)+"="+m(u(A,oi.encoder,v,"value",g))]}return[m(i)+"="+m(String(A))]}var F=[];if(typeof A>"u")return F;var k;if(n==="comma"&&Ln(A))f&&u&&(A=sp.maybeMap(A,function(I){return I==null?I:u(I)})),k=[{value:A.length>0?A.join(",")||null:void 0}];else if(Ln(c))k=c;else{var Q=Object.keys(A);k=p?Q.sort(p):Q}var Z=l?String(i).replace(/\./g,"%2E"):String(i),ie=a&&Ln(A)&&A.length===1?Z+"[]":Z;if(r&&Ln(A)&&A.length===0)return ie+"[]";for(var se=0;se"u"?e.encodeDotInKeys===!0?!0:oi.allowDots:!!e.allowDots;return{addQueryPrefix:typeof e.addQueryPrefix=="boolean"?e.addQueryPrefix:oi.addQueryPrefix,allowDots:o,allowEmptyArrays:typeof e.allowEmptyArrays=="boolean"?!!e.allowEmptyArrays:oi.allowEmptyArrays,arrayFormat:s,charset:i,charsetSentinel:typeof e.charsetSentinel=="boolean"?e.charsetSentinel:oi.charsetSentinel,commaRoundTrip:!!e.commaRoundTrip,delimiter:typeof e.delimiter>"u"?oi.delimiter:e.delimiter,encode:typeof e.encode=="boolean"?e.encode:oi.encode,encodeDotInKeys:typeof e.encodeDotInKeys=="boolean"?e.encodeDotInKeys:oi.encodeDotInKeys,encoder:typeof e.encoder=="function"?e.encoder:oi.encoder,encodeValuesOnly:typeof e.encodeValuesOnly=="boolean"?e.encodeValuesOnly:oi.encodeValuesOnly,filter:r,format:n,formatter:a,serializeDate:typeof e.serializeDate=="function"?e.serializeDate:oi.serializeDate,skipNulls:typeof e.skipNulls=="boolean"?e.skipNulls:oi.skipNulls,sort:typeof e.sort=="function"?e.sort:null,strictNullHandling:typeof e.strictNullHandling=="boolean"?e.strictNullHandling:oi.strictNullHandling}};u_.exports=function(t,e){var i=t,n=dK(e),a,r;typeof n.filter=="function"?(r=n.filter,i=r("",i)):Ln(n.filter)&&(r=n.filter,a=r);var s=[];if(typeof i!="object"||i===null)return"";var o=o_[n.arrayFormat],l=o==="comma"&&n.commaRoundTrip;a||(a=Object.keys(i)),n.sort&&a.sort(n.sort);for(var u=s_(),c=0;c"u"||p===null)){var d=i[p];n.skipNulls&&d===null||l_(s,pK(d,p,o,l,n.allowEmptyArrays,n.strictNullHandling,n.skipNulls,n.encodeDotInKeys,n.encode?n.encoder:null,n.filter,n.sort,n.allowDots,n.serializeDate,n.format,n.formatter,n.encodeValuesOnly,n.charset,u))}}var h=s.join(n.delimiter),g=n.addQueryPrefix===!0?"?":"";return n.charsetSentinel&&(n.charset==="iso-8859-1"?g+="utf8=%26%2310003%3B"+n.delimiter:g+="utf8=%E2%9C%93"+n.delimiter),h.length>0?g+h:""}});var h_=w((boe,d_)=>{"use strict";var Wn=Nv(),op=Object.prototype.hasOwnProperty,Lv=Array.isArray,Ze={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:Wn.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictMerge:!0,strictNullHandling:!1,throwOnLimitExceeded:!1},hK=function(t){return t.replace(/&#(\d+);/g,function(e,i){return String.fromCharCode(parseInt(i,10))})},p_=function(t,e,i){if(t&&typeof t=="string"&&e.comma&&t.indexOf(",")>-1)return t.split(",");if(e.throwOnLimitExceeded&&i>=e.arrayLimit)throw new RangeError("Array limit exceeded. Only "+e.arrayLimit+" element"+(e.arrayLimit===1?"":"s")+" allowed in an array.");return t},gK="utf8=%26%2310003%3B",mK="utf8=%E2%9C%93",fK=function(e,i){var n={__proto__:null},a=i.ignoreQueryPrefix?e.replace(/^\?/,""):e;a=a.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var r=i.parameterLimit===1/0?void 0:i.parameterLimit,s=a.split(i.delimiter,i.throwOnLimitExceeded&&typeof r<"u"?r+1:r);if(i.throwOnLimitExceeded&&typeof r<"u"&&s.length>r)throw new RangeError("Parameter limit exceeded. Only "+r+" parameter"+(r===1?"":"s")+" allowed.");var o=-1,l,u=i.charset;if(i.charsetSentinel)for(l=0;l-1&&(g=Lv(g)?[g]:g),i.comma&&Lv(g)&&g.length>i.arrayLimit){if(i.throwOnLimitExceeded)throw new RangeError("Array limit exceeded. Only "+i.arrayLimit+" element"+(i.arrayLimit===1?"":"s")+" allowed in an array.");g=Wn.combine([],g,i.arrayLimit,i.plainObjects)}if(h!==null){var m=op.call(n,h);m&&(i.duplicates==="combine"||c.indexOf("[]=")>-1)?n[h]=Wn.combine(n[h],g,i.arrayLimit,i.plainObjects):(!m||i.duplicates==="last")&&(n[h]=g)}}return n},wK=function(t,e,i,n){var a=0;if(t.length>0&&t[t.length-1]==="[]"){var r=t.slice(0,-1).join("");a=Array.isArray(e)&&e[r]?e[r].length:0}for(var s=n?e:p_(e,i,a),o=t.length-1;o>=0;--o){var l,u=t[o];if(u==="[]"&&i.parseArrays)Wn.isOverflow(s)?l=s:l=i.allowEmptyArrays&&(s===""||i.strictNullHandling&&s===null)?[]:Wn.combine([],s,i.arrayLimit,i.plainObjects);else{l=i.plainObjects?{__proto__:null}:{};var c=u.charAt(0)==="["&&u.charAt(u.length-1)==="]"?u.slice(1,-1):u,p=i.decodeDotInKeys?c.replace(/%2E/g,"."):c,d=parseInt(p,10),h=!isNaN(d)&&u!==p&&String(d)===p&&d>=0&&i.parseArrays;if(!i.parseArrays&&p==="")l={0:s};else if(h&&d=0?n.slice(0,r):n;if(s){if(!i.plainObjects&&op.call(Object.prototype,s)&&!i.allowPrototypes)return;a[a.length]=s}for(var o=n.length,l=r,u=0;l>=0&&u=0){if(i.strictDepth===!0)throw new RangeError("Input depth exceeded depth option of "+i.depth+" and strictDepth is true");a[a.length]="["+n.slice(l)+"]"}return a},CK=function(e,i,n,a){if(e){var r=vK(e,n);if(r)return wK(r,i,n,a)}},AK=function(e){if(!e)return Ze;if(typeof e.allowEmptyArrays<"u"&&typeof e.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof e.decodeDotInKeys<"u"&&typeof e.decodeDotInKeys!="boolean")throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(e.decoder!==null&&typeof e.decoder<"u"&&typeof e.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof e.charset<"u"&&e.charset!=="utf-8"&&e.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");if(typeof e.throwOnLimitExceeded<"u"&&typeof e.throwOnLimitExceeded!="boolean")throw new TypeError("`throwOnLimitExceeded` option must be a boolean");var i=typeof e.charset>"u"?Ze.charset:e.charset,n=typeof e.duplicates>"u"?Ze.duplicates:e.duplicates;if(n!=="combine"&&n!=="first"&&n!=="last")throw new TypeError("The duplicates option must be either combine, first, or last");var a=typeof e.allowDots>"u"?e.decodeDotInKeys===!0?!0:Ze.allowDots:!!e.allowDots;return{allowDots:a,allowEmptyArrays:typeof e.allowEmptyArrays=="boolean"?!!e.allowEmptyArrays:Ze.allowEmptyArrays,allowPrototypes:typeof e.allowPrototypes=="boolean"?e.allowPrototypes:Ze.allowPrototypes,allowSparse:typeof e.allowSparse=="boolean"?e.allowSparse:Ze.allowSparse,arrayLimit:typeof e.arrayLimit=="number"?e.arrayLimit:Ze.arrayLimit,charset:i,charsetSentinel:typeof e.charsetSentinel=="boolean"?e.charsetSentinel:Ze.charsetSentinel,comma:typeof e.comma=="boolean"?e.comma:Ze.comma,decodeDotInKeys:typeof e.decodeDotInKeys=="boolean"?e.decodeDotInKeys:Ze.decodeDotInKeys,decoder:typeof e.decoder=="function"?e.decoder:Ze.decoder,delimiter:typeof e.delimiter=="string"||Wn.isRegExp(e.delimiter)?e.delimiter:Ze.delimiter,depth:typeof e.depth=="number"||e.depth===!1?+e.depth:Ze.depth,duplicates:n,ignoreQueryPrefix:e.ignoreQueryPrefix===!0,interpretNumericEntities:typeof e.interpretNumericEntities=="boolean"?e.interpretNumericEntities:Ze.interpretNumericEntities,parameterLimit:typeof e.parameterLimit=="number"?e.parameterLimit:Ze.parameterLimit,parseArrays:e.parseArrays!==!1,plainObjects:typeof e.plainObjects=="boolean"?e.plainObjects:Ze.plainObjects,strictDepth:typeof e.strictDepth=="boolean"?!!e.strictDepth:Ze.strictDepth,strictMerge:typeof e.strictMerge=="boolean"?!!e.strictMerge:Ze.strictMerge,strictNullHandling:typeof e.strictNullHandling=="boolean"?e.strictNullHandling:Ze.strictNullHandling,throwOnLimitExceeded:typeof e.throwOnLimitExceeded=="boolean"?e.throwOnLimitExceeded:!1}};d_.exports=function(t,e){var i=AK(e);if(t===""||t===null||typeof t>"u")return i.plainObjects?{__proto__:null}:{};for(var n=typeof t=="string"?fK(t,i):t,a=i.plainObjects?{__proto__:null}:{},r=Object.keys(n),s=0;s{"use strict";var bK=c_(),yK=h_(),PK=ap();g_.exports={formats:PK,parse:yK,stringify:bK}});var Zi=w((Poe,f_)=>{"use strict";var Wv=class t extends Error{constructor(e){super(`Format functions must be synchronous taking a two arguments: (info, opts) +`+e.prev}function Yc(t,e){var i=Mv(t),n=[];if(i){n.length=t.length;for(var a=0;a{"use strict";var C5=Yo(),A5=It(),ip=function(t,e,i){for(var n=t,a;(a=n.next)!=null;n=a)if(a.key===e)return n.next=a.next,i||(a.next=t.next,t.next=a),a},b5=function(t,e){if(t){var i=ip(t,e);return i&&i.value}},y5=function(t,e,i){var n=ip(t,e);n?n.value=i:t.next={key:e,next:t.next,value:i}},P5=function(t,e){return t?!!ip(t,e):!1},j5=function(t,e){if(t)return ip(t,e,!0)};Vq.exports=function(){var e,i={assert:function(n){if(!i.has(n))throw new A5("Side channel does not contain "+C5(n))},delete:function(n){var a=j5(e,n);return a&&e&&!e.next&&(e=void 0),!!a},get:function(n){return b5(e,n)},has:function(n){return P5(e,n)},set:function(n,a){e||(e={next:void 0}),y5(e,n,a)}};return i}});var Hv=w((goe,Qq)=>{"use strict";var Zq=ko(),Kq=Pw(),S5=Kq([Zq("%String.prototype.indexOf%")]);Qq.exports=function(e,i){var n=Zq(e,!!i);return typeof n=="function"&&S5(e,".prototype.")>-1?Kq([n]):n}});var Rv=w((moe,Xq)=>{"use strict";var O5=ko(),Xo=Hv(),x5=Yo(),T5=It(),Yq=O5("%Map%",!0),M5=Xo("Map.prototype.get",!0),E5=Xo("Map.prototype.set",!0),k5=Xo("Map.prototype.has",!0),q5=Xo("Map.prototype.delete",!0),_5=Xo("Map.prototype.size",!0);Xq.exports=!!Yq&&function(){var e,i={assert:function(n){if(!i.has(n))throw new T5("Side channel does not contain "+x5(n))},delete:function(n){if(e){var a=q5(e,n);return _5(e)===0&&(e=void 0),a}return!1},get:function(n){if(e)return M5(e,n)},has:function(n){return e?k5(e,n):!1},set:function(n,a){e||(e=new Yq),E5(e,n,a)}};return i}});var i_=w((foe,e_)=>{"use strict";var H5=ko(),tp=Hv(),R5=Yo(),np=Rv(),I5=It(),Xr=H5("%WeakMap%",!0),z5=tp("WeakMap.prototype.get",!0),D5=tp("WeakMap.prototype.set",!0),G5=tp("WeakMap.prototype.has",!0),$5=tp("WeakMap.prototype.delete",!0);e_.exports=Xr?function(){var e,i,n={assert:function(a){if(!n.has(a))throw new I5("Side channel does not contain "+R5(a))},delete:function(a){if(Xr&&a&&(typeof a=="object"||typeof a=="function")){if(e)return $5(e,a)}else if(np&&i)return i.delete(a);return!1},get:function(a){return Xr&&a&&(typeof a=="object"||typeof a=="function")&&e?z5(e,a):i&&i.get(a)},has:function(a){return Xr&&a&&(typeof a=="object"||typeof a=="function")&&e?G5(e,a):!!i&&i.has(a)},set:function(a,r){Xr&&a&&(typeof a=="object"||typeof a=="function")?(e||(e=new Xr),D5(e,a,r)):np&&(i||(i=np()),i.set(a,r))}};return n}:np});var Iv=w((woe,n_)=>{"use strict";var N5=It(),U5=Yo(),L5=Jq(),W5=Rv(),B5=i_(),F5=B5||W5||L5;n_.exports=function(){var e,i={assert:function(n){if(!i.has(n))throw new N5("Side channel does not contain "+U5(n))},delete:function(n){return!!e&&e.delete(n)},get:function(n){return e&&e.get(n)},has:function(n){return!!e&&e.has(n)},set:function(n,a){e||(e=F5()),e.set(n,a)}};return i}});var ap=w((voe,t_)=>{"use strict";var V5=String.prototype.replace,J5=/%20/g,zv={RFC1738:"RFC1738",RFC3986:"RFC3986"};t_.exports={default:zv.RFC3986,formatters:{RFC1738:function(t){return V5.call(t,J5,"+")},RFC3986:function(t){return String(t)}},RFC1738:zv.RFC1738,RFC3986:zv.RFC3986}});var Nv=w((Coe,a_)=>{"use strict";var Z5=ap(),K5=Iv(),Dv=Object.prototype.hasOwnProperty,Da=Array.isArray,rp=K5(),es=function(e,i){return rp.set(e,i),e},Ga=function(e){return rp.has(e)},el=function(e){return rp.get(e)},$v=function(e,i){rp.set(e,i)},Un=(function(){for(var t=[],e=0;e<256;++e)t[t.length]="%"+((e<16?"0":"")+e.toString(16)).toUpperCase();return t})(),Q5=function(e){for(;e.length>1;){var i=e.pop(),n=i.obj[i.prop];if(Da(n)){for(var a=[],r=0;rn.arrayLimit)return es(il(e.concat(i),n),a);e[a]=i}else if(e&&typeof e=="object")if(Ga(e)){var r=el(e)+1;e[r]=i,$v(e,r)}else{if(n&&n.strictMerge)return[e,i];(n&&(n.plainObjects||n.allowPrototypes)||!Dv.call(Object.prototype,i))&&(e[i]=!0)}else return[e,i];return e}if(!e||typeof e!="object"){if(Ga(i)){for(var s=Object.keys(i),o=n&&n.plainObjects?{__proto__:null,0:e}:{0:e},l=0;ln.arrayLimit?es(il(c,n),c.length-1):c}var p=e;return Da(e)&&!Da(i)&&(p=il(e,n)),Da(e)&&Da(i)?(i.forEach(function(d,h){if(Dv.call(e,h)){var g=e[h];g&&typeof g=="object"&&d&&typeof d=="object"?e[h]=t(g,d,n):e[e.length]=d}else e[h]=d}),e):Object.keys(i).reduce(function(d,h){var g=i[h];if(Dv.call(d,h)?d[h]=t(d[h],g,n):d[h]=g,Ga(i)&&!Ga(d)&&es(d,el(i)),Ga(d)){var m=parseInt(h,10);String(m)===h&&m>=0&&m>el(d)&&$v(d,m)}return d},p)},X5=function(e,i){return Object.keys(i).reduce(function(n,a){return n[a]=i[a],n},e)},eK=function(t,e,i){var n=t.replace(/\+/g," ");if(i==="iso-8859-1")return n.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(n)}catch{return n}},Gv=1024,iK=function(e,i,n,a,r){if(e.length===0)return e;var s=e;if(typeof e=="symbol"?s=Symbol.prototype.toString.call(e):typeof e!="string"&&(s=String(e)),n==="iso-8859-1")return escape(s).replace(/%u[0-9a-f]{4}/gi,function(h){return"%26%23"+parseInt(h.slice(2),16)+"%3B"});for(var o="",l=0;l=Gv?s.slice(l,l+Gv):s,c=[],p=0;p=48&&d<=57||d>=65&&d<=90||d>=97&&d<=122||r===Z5.RFC1738&&(d===40||d===41)){c[c.length]=u.charAt(p);continue}if(d<128){c[c.length]=Un[d];continue}if(d<2048){c[c.length]=Un[192|d>>6]+Un[128|d&63];continue}if(d<55296||d>=57344){c[c.length]=Un[224|d>>12]+Un[128|d>>6&63]+Un[128|d&63];continue}p+=1,d=65536+((d&1023)<<10|u.charCodeAt(p)&1023),c[c.length]=Un[240|d>>18]+Un[128|d>>12&63]+Un[128|d>>6&63]+Un[128|d&63]}o+=c.join("")}return o},nK=function(e){for(var i=[{obj:{o:e},prop:"o"}],n=[],a=0;an?es(il(s,{plainObjects:a}),s.length-1):s},sK=function(e,i){if(Da(e)){for(var n=[],a=0;a{"use strict";var s_=Iv(),sp=Nv(),nl=ap(),oK=Object.prototype.hasOwnProperty,o_={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,i){return e+"["+i+"]"},repeat:function(e){return e}},Ln=Array.isArray,lK=Array.prototype.push,l_=function(t,e){lK.apply(t,Ln(e)?e:[e])},uK=Date.prototype.toISOString,r_=nl.default,oi={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,commaRoundTrip:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:sp.encode,encodeValuesOnly:!1,filter:void 0,format:r_,formatter:nl.formatters[r_],indices:!1,serializeDate:function(e){return uK.call(e)},skipNulls:!1,strictNullHandling:!1},cK=function(e){return typeof e=="string"||typeof e=="number"||typeof e=="boolean"||typeof e=="symbol"||typeof e=="bigint"},Uv={},pK=function t(e,i,n,a,r,s,o,l,u,c,p,d,h,g,m,f,v,y){for(var A=e,b=y,O=0,$=!1;(b=b.get(Uv))!==void 0&&!$;){var N=b.get(e);if(O+=1,typeof N<"u"){if(N===O)throw new RangeError("Cyclic object value");$=!0}typeof b.get(Uv)>"u"&&(O=0)}if(typeof c=="function"?A=c(i,A):A instanceof Date?A=h(A):n==="comma"&&Ln(A)&&(A=sp.maybeMap(A,function(I){return I instanceof Date?h(I):I})),A===null){if(s)return m(u&&!f?u(i,oi.encoder,v,"key",g):i);A=""}if(cK(A)||sp.isBuffer(A)){if(u){var X=f?i:u(i,oi.encoder,v,"key",g);return[m(X)+"="+m(u(A,oi.encoder,v,"value",g))]}return[m(i)+"="+m(String(A))]}var F=[];if(typeof A>"u")return F;var k;if(n==="comma"&&Ln(A))f&&u&&(A=sp.maybeMap(A,function(I){return I==null?I:u(I)})),k=[{value:A.length>0?A.join(",")||null:void 0}];else if(Ln(c))k=c;else{var Q=Object.keys(A);k=p?Q.sort(p):Q}var Z=l?String(i).replace(/\./g,"%2E"):String(i),ie=a&&Ln(A)&&A.length===1?Z+"[]":Z;if(r&&Ln(A)&&A.length===0)return ie+"[]";for(var se=0;se"u"?e.encodeDotInKeys===!0?!0:oi.allowDots:!!e.allowDots;return{addQueryPrefix:typeof e.addQueryPrefix=="boolean"?e.addQueryPrefix:oi.addQueryPrefix,allowDots:o,allowEmptyArrays:typeof e.allowEmptyArrays=="boolean"?!!e.allowEmptyArrays:oi.allowEmptyArrays,arrayFormat:s,charset:i,charsetSentinel:typeof e.charsetSentinel=="boolean"?e.charsetSentinel:oi.charsetSentinel,commaRoundTrip:!!e.commaRoundTrip,delimiter:typeof e.delimiter>"u"?oi.delimiter:e.delimiter,encode:typeof e.encode=="boolean"?e.encode:oi.encode,encodeDotInKeys:typeof e.encodeDotInKeys=="boolean"?e.encodeDotInKeys:oi.encodeDotInKeys,encoder:typeof e.encoder=="function"?e.encoder:oi.encoder,encodeValuesOnly:typeof e.encodeValuesOnly=="boolean"?e.encodeValuesOnly:oi.encodeValuesOnly,filter:r,format:n,formatter:a,serializeDate:typeof e.serializeDate=="function"?e.serializeDate:oi.serializeDate,skipNulls:typeof e.skipNulls=="boolean"?e.skipNulls:oi.skipNulls,sort:typeof e.sort=="function"?e.sort:null,strictNullHandling:typeof e.strictNullHandling=="boolean"?e.strictNullHandling:oi.strictNullHandling}};u_.exports=function(t,e){var i=t,n=dK(e),a,r;typeof n.filter=="function"?(r=n.filter,i=r("",i)):Ln(n.filter)&&(r=n.filter,a=r);var s=[];if(typeof i!="object"||i===null)return"";var o=o_[n.arrayFormat],l=o==="comma"&&n.commaRoundTrip;a||(a=Object.keys(i)),n.sort&&a.sort(n.sort);for(var u=s_(),c=0;c"u"||p===null)){var d=i[p];n.skipNulls&&d===null||l_(s,pK(d,p,o,l,n.allowEmptyArrays,n.strictNullHandling,n.skipNulls,n.encodeDotInKeys,n.encode?n.encoder:null,n.filter,n.sort,n.allowDots,n.serializeDate,n.format,n.formatter,n.encodeValuesOnly,n.charset,u))}}var h=s.join(n.delimiter),g=n.addQueryPrefix===!0?"?":"";return n.charsetSentinel&&(n.charset==="iso-8859-1"?g+="utf8=%26%2310003%3B"+n.delimiter:g+="utf8=%E2%9C%93"+n.delimiter),h.length>0?g+h:""}});var h_=w((boe,d_)=>{"use strict";var Wn=Nv(),op=Object.prototype.hasOwnProperty,Lv=Array.isArray,Ze={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:Wn.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictMerge:!0,strictNullHandling:!1,throwOnLimitExceeded:!1},hK=function(t){return t.replace(/&#(\d+);/g,function(e,i){return String.fromCharCode(parseInt(i,10))})},p_=function(t,e,i){if(t&&typeof t=="string"&&e.comma&&t.indexOf(",")>-1)return t.split(",");if(e.throwOnLimitExceeded&&i>=e.arrayLimit)throw new RangeError("Array limit exceeded. Only "+e.arrayLimit+" element"+(e.arrayLimit===1?"":"s")+" allowed in an array.");return t},gK="utf8=%26%2310003%3B",mK="utf8=%E2%9C%93",fK=function(e,i){var n={__proto__:null},a=i.ignoreQueryPrefix?e.replace(/^\?/,""):e;a=a.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var r=i.parameterLimit===1/0?void 0:i.parameterLimit,s=a.split(i.delimiter,i.throwOnLimitExceeded&&typeof r<"u"?r+1:r);if(i.throwOnLimitExceeded&&typeof r<"u"&&s.length>r)throw new RangeError("Parameter limit exceeded. Only "+r+" parameter"+(r===1?"":"s")+" allowed.");var o=-1,l,u=i.charset;if(i.charsetSentinel)for(l=0;l-1&&(g=Lv(g)?[g]:g),i.comma&&Lv(g)&&g.length>i.arrayLimit){if(i.throwOnLimitExceeded)throw new RangeError("Array limit exceeded. Only "+i.arrayLimit+" element"+(i.arrayLimit===1?"":"s")+" allowed in an array.");g=Wn.combine([],g,i.arrayLimit,i.plainObjects)}if(h!==null){var m=op.call(n,h);m&&(i.duplicates==="combine"||c.indexOf("[]=")>-1)?n[h]=Wn.combine(n[h],g,i.arrayLimit,i.plainObjects):(!m||i.duplicates==="last")&&(n[h]=g)}}return n},wK=function(t,e,i,n){var a=0;if(t.length>0&&t[t.length-1]==="[]"){var r=t.slice(0,-1).join("");a=Array.isArray(e)&&e[r]?e[r].length:0}for(var s=n?e:p_(e,i,a),o=t.length-1;o>=0;--o){var l,u=t[o];if(u==="[]"&&i.parseArrays)Wn.isOverflow(s)?l=s:l=i.allowEmptyArrays&&(s===""||i.strictNullHandling&&s===null)?[]:Wn.combine([],s,i.arrayLimit,i.plainObjects);else{l=i.plainObjects?{__proto__:null}:{};var c=u.charAt(0)==="["&&u.charAt(u.length-1)==="]"?u.slice(1,-1):u,p=i.decodeDotInKeys?c.replace(/%2E/g,"."):c,d=parseInt(p,10),h=!isNaN(d)&&u!==p&&String(d)===p&&d>=0&&i.parseArrays;if(!i.parseArrays&&p==="")l={0:s};else if(h&&d=0?n.slice(0,r):n;if(s){if(!i.plainObjects&&op.call(Object.prototype,s)&&!i.allowPrototypes)return;a[a.length]=s}for(var o=n.length,l=r,u=0;l>=0&&u=0){if(i.strictDepth===!0)throw new RangeError("Input depth exceeded depth option of "+i.depth+" and strictDepth is true");a[a.length]="["+n.slice(l)+"]"}return a},CK=function(e,i,n,a){if(e){var r=vK(e,n);if(r)return wK(r,i,n,a)}},AK=function(e){if(!e)return Ze;if(typeof e.allowEmptyArrays<"u"&&typeof e.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof e.decodeDotInKeys<"u"&&typeof e.decodeDotInKeys!="boolean")throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(e.decoder!==null&&typeof e.decoder<"u"&&typeof e.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof e.charset<"u"&&e.charset!=="utf-8"&&e.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");if(typeof e.throwOnLimitExceeded<"u"&&typeof e.throwOnLimitExceeded!="boolean")throw new TypeError("`throwOnLimitExceeded` option must be a boolean");var i=typeof e.charset>"u"?Ze.charset:e.charset,n=typeof e.duplicates>"u"?Ze.duplicates:e.duplicates;if(n!=="combine"&&n!=="first"&&n!=="last")throw new TypeError("The duplicates option must be either combine, first, or last");var a=typeof e.allowDots>"u"?e.decodeDotInKeys===!0?!0:Ze.allowDots:!!e.allowDots;return{allowDots:a,allowEmptyArrays:typeof e.allowEmptyArrays=="boolean"?!!e.allowEmptyArrays:Ze.allowEmptyArrays,allowPrototypes:typeof e.allowPrototypes=="boolean"?e.allowPrototypes:Ze.allowPrototypes,allowSparse:typeof e.allowSparse=="boolean"?e.allowSparse:Ze.allowSparse,arrayLimit:typeof e.arrayLimit=="number"?e.arrayLimit:Ze.arrayLimit,charset:i,charsetSentinel:typeof e.charsetSentinel=="boolean"?e.charsetSentinel:Ze.charsetSentinel,comma:typeof e.comma=="boolean"?e.comma:Ze.comma,decodeDotInKeys:typeof e.decodeDotInKeys=="boolean"?e.decodeDotInKeys:Ze.decodeDotInKeys,decoder:typeof e.decoder=="function"?e.decoder:Ze.decoder,delimiter:typeof e.delimiter=="string"||Wn.isRegExp(e.delimiter)?e.delimiter:Ze.delimiter,depth:typeof e.depth=="number"||e.depth===!1?+e.depth:Ze.depth,duplicates:n,ignoreQueryPrefix:e.ignoreQueryPrefix===!0,interpretNumericEntities:typeof e.interpretNumericEntities=="boolean"?e.interpretNumericEntities:Ze.interpretNumericEntities,parameterLimit:typeof e.parameterLimit=="number"?e.parameterLimit:Ze.parameterLimit,parseArrays:e.parseArrays!==!1,plainObjects:typeof e.plainObjects=="boolean"?e.plainObjects:Ze.plainObjects,strictDepth:typeof e.strictDepth=="boolean"?!!e.strictDepth:Ze.strictDepth,strictMerge:typeof e.strictMerge=="boolean"?!!e.strictMerge:Ze.strictMerge,strictNullHandling:typeof e.strictNullHandling=="boolean"?e.strictNullHandling:Ze.strictNullHandling,throwOnLimitExceeded:typeof e.throwOnLimitExceeded=="boolean"?e.throwOnLimitExceeded:!1}};d_.exports=function(t,e){var i=AK(e);if(t===""||t===null||typeof t>"u")return i.plainObjects?{__proto__:null}:{};for(var n=typeof t=="string"?fK(t,i):t,a=i.plainObjects?{__proto__:null}:{},r=Object.keys(n),s=0;s{"use strict";var bK=c_(),yK=h_(),PK=ap();g_.exports={formats:PK,parse:yK,stringify:bK}});var Zi=w((Poe,f_)=>{"use strict";var Wv=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)}};f_.exports=t=>{if(t.length>2)throw new Wv(t);function e(n={}){this.options=n}e.prototype.transform=t;function i(n){return new e(n)}return i.Format=e,i}});var A_=w((joe,C_)=>{var v_={};C_.exports=v_;var w_={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(w_).forEach(function(t){var e=w_[t],i=v_[t]=[];i.open="\x1B["+e[0]+"m",i.close="\x1B["+e[1]+"m"})});var y_=w((Soe,b_)=>{"use strict";b_.exports=function(t,e){e=e||process.argv||[];var i=e.indexOf("--"),n=/^-{1,2}/.test(t)?"":"--",a=e.indexOf(n+t);return a!==-1&&(i===-1?!0:a{"use strict";var jK=require("os"),Mn=y_(),Ii=process.env,es=void 0;Mn("no-color")||Mn("no-colors")||Mn("color=false")?es=!1:(Mn("color")||Mn("colors")||Mn("color=true")||Mn("color=always"))&&(es=!0);"FORCE_COLOR"in Ii&&(es=Ii.FORCE_COLOR.length===0||parseInt(Ii.FORCE_COLOR,10)!==0);function SK(t){return t===0?!1:{level:t,hasBasic:!0,has256:t>=2,has16m:t>=3}}function OK(t){if(es===!1)return 0;if(Mn("color=16m")||Mn("color=full")||Mn("color=truecolor"))return 3;if(Mn("color=256"))return 2;if(t&&!t.isTTY&&es!==!0)return 0;var e=es?1:0;if(process.platform==="win32"){var i=jK.release().split(".");return Number(process.versions.node.split(".")[0])>=8&&Number(i[0])>=10&&Number(i[2])>=10586?Number(i[2])>=14931?3:2:1}if("CI"in Ii)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some(function(a){return a in Ii})||Ii.CI_NAME==="codeship"?1:e;if("TEAMCITY_VERSION"in Ii)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(Ii.TEAMCITY_VERSION)?1:0;if("TERM_PROGRAM"in Ii){var n=parseInt((Ii.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(Ii.TERM_PROGRAM){case"iTerm.app":return n>=3?3:2;case"Hyper":return 3;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(Ii.TERM)?2:/^screen|^xterm|^vt100|^rxvt|color|ansi|cygwin|linux/i.test(Ii.TERM)||"COLORTERM"in Ii?1:(Ii.TERM==="dumb",e)}function Bv(t){var e=OK(t);return SK(e)}P_.exports={supportsColor:Bv,stdout:Bv(process.stdout),stderr:Bv(process.stderr)}});var O_=w((xoe,S_)=>{S_.exports=function(e,i){var n="";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"?n+=a[r][o]:n+=r}),n}});var T_=w((Toe,x_)=>{x_.exports=function(e,i){e=e||" he is here ";var n={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(n.up,n.down,n.mid);function r(l){var u=Math.floor(Math.random()*l);return u}function s(l){var u=!1;return a.filter(function(c){u=c===l}),u}function o(l,u){var c="",p,d;u=u||{},u.up=typeof u.up<"u"?u.up:!0,u.mid=typeof u.mid<"u"?u.mid:!0,u.down=typeof u.down<"u"?u.down:!0,u.size=typeof u.size<"u"?u.size:"maxi",l=l.split("");for(d in l)if(!s(d)){switch(c=c+l[d],p={up:0,down:0,mid:0},u.size){case"mini":p.up=r(8),p.mid=r(2),p.down=r(8);break;case"maxi":p.up=r(16)+3,p.mid=r(4)+1,p.down=r(64)+3;break;default:p.up=r(8)+1,p.mid=r(6)/2,p.down=r(8)+1;break}var h=["up","mid","down"];for(var g in h)for(var m=h[g],f=0;f<=p[m];f++)u[m]&&(c=c+n[m][r(n[m].length)])}return c}return o(e,i)}});var E_=w((Moe,M_)=>{M_.exports=function(t){return function(e,i,n){if(e===" ")return e;switch(i%3){case 0:return t.red(e);case 1:return t.white(e);case 2:return t.blue(e)}}}});var q_=w((Eoe,k_)=>{k_.exports=function(t){return function(e,i,n){return i%2===0?e:t.inverse(e)}}});var H_=w((koe,__)=>{__.exports=function(t){var e=["red","yellow","green","blue","magenta"];return function(i,n,a){return i===" "?i:t[e[n++%e.length]](i)}}});var I_=w((qoe,R_)=>{R_.exports=function(t){var e=["underline","inverse","grey","yellow","red","green","blue","white","cyan","magenta","brightYellow","brightRed","brightGreen","brightBlue","brightWhite","brightCyan","brightMagenta"];return function(i,n,a){return i===" "?i:t[e[Math.round(Math.random()*(e.length-2))]](i)}}});var U_=w((Hoe,N_)=>{var de={};N_.exports=de;de.themes={};var xK=require("util"),$a=de.styles=A_(),D_=Object.defineProperties,TK=new RegExp(/[\r\n]+/g);de.supportsColor=j_().supportsColor;typeof de.enabled>"u"&&(de.enabled=de.supportsColor()!==!1);de.enable=function(){de.enabled=!0};de.disable=function(){de.enabled=!1};de.stripColors=de.strip=function(t){return(""+t).replace(/\x1B\[\d+m/g,"")};var _oe=de.stylize=function(e,i){if(!de.enabled)return e+"";var n=$a[i];return!n&&i in de?de[i](e):n.open+e+n.close},MK=/[|\\{}()[\]^$+*?.]/g,EK=function(t){if(typeof t!="string")throw new TypeError("Expected a string");return t.replace(MK,"\\$&")};function G_(t){var e=function i(){return qK.apply(i,arguments)};return e._styles=t,e.__proto__=kK,e}var $_=(function(){var t={};return $a.grey=$a.gray,Object.keys($a).forEach(function(e){$a[e].closeRe=new RegExp(EK($a[e].close),"g"),t[e]={get:function(){return G_(this._styles.concat(e))}}}),t})(),kK=D_(function(){},$_);function qK(){var t=Array.prototype.slice.call(arguments),e=t.map(function(s){return s!=null&&s.constructor===String?s:xK.inspect(s)}).join(" ");if(!de.enabled||!e)return e;for(var i=e.indexOf(` +`),Error.captureStackTrace(this,t)}};f_.exports=t=>{if(t.length>2)throw new Wv(t);function e(n={}){this.options=n}e.prototype.transform=t;function i(n){return new e(n)}return i.Format=e,i}});var A_=w((joe,C_)=>{var v_={};C_.exports=v_;var w_={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(w_).forEach(function(t){var e=w_[t],i=v_[t]=[];i.open="\x1B["+e[0]+"m",i.close="\x1B["+e[1]+"m"})});var y_=w((Soe,b_)=>{"use strict";b_.exports=function(t,e){e=e||process.argv||[];var i=e.indexOf("--"),n=/^-{1,2}/.test(t)?"":"--",a=e.indexOf(n+t);return a!==-1&&(i===-1?!0:a{"use strict";var jK=require("os"),Mn=y_(),Ii=process.env,is=void 0;Mn("no-color")||Mn("no-colors")||Mn("color=false")?is=!1:(Mn("color")||Mn("colors")||Mn("color=true")||Mn("color=always"))&&(is=!0);"FORCE_COLOR"in Ii&&(is=Ii.FORCE_COLOR.length===0||parseInt(Ii.FORCE_COLOR,10)!==0);function SK(t){return t===0?!1:{level:t,hasBasic:!0,has256:t>=2,has16m:t>=3}}function OK(t){if(is===!1)return 0;if(Mn("color=16m")||Mn("color=full")||Mn("color=truecolor"))return 3;if(Mn("color=256"))return 2;if(t&&!t.isTTY&&is!==!0)return 0;var e=is?1:0;if(process.platform==="win32"){var i=jK.release().split(".");return Number(process.versions.node.split(".")[0])>=8&&Number(i[0])>=10&&Number(i[2])>=10586?Number(i[2])>=14931?3:2:1}if("CI"in Ii)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some(function(a){return a in Ii})||Ii.CI_NAME==="codeship"?1:e;if("TEAMCITY_VERSION"in Ii)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(Ii.TEAMCITY_VERSION)?1:0;if("TERM_PROGRAM"in Ii){var n=parseInt((Ii.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(Ii.TERM_PROGRAM){case"iTerm.app":return n>=3?3:2;case"Hyper":return 3;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(Ii.TERM)?2:/^screen|^xterm|^vt100|^rxvt|color|ansi|cygwin|linux/i.test(Ii.TERM)||"COLORTERM"in Ii?1:(Ii.TERM==="dumb",e)}function Bv(t){var e=OK(t);return SK(e)}P_.exports={supportsColor:Bv,stdout:Bv(process.stdout),stderr:Bv(process.stderr)}});var O_=w((xoe,S_)=>{S_.exports=function(e,i){var n="";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"?n+=a[r][o]:n+=r}),n}});var T_=w((Toe,x_)=>{x_.exports=function(e,i){e=e||" he is here ";var n={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(n.up,n.down,n.mid);function r(l){var u=Math.floor(Math.random()*l);return u}function s(l){var u=!1;return a.filter(function(c){u=c===l}),u}function o(l,u){var c="",p,d;u=u||{},u.up=typeof u.up<"u"?u.up:!0,u.mid=typeof u.mid<"u"?u.mid:!0,u.down=typeof u.down<"u"?u.down:!0,u.size=typeof u.size<"u"?u.size:"maxi",l=l.split("");for(d in l)if(!s(d)){switch(c=c+l[d],p={up:0,down:0,mid:0},u.size){case"mini":p.up=r(8),p.mid=r(2),p.down=r(8);break;case"maxi":p.up=r(16)+3,p.mid=r(4)+1,p.down=r(64)+3;break;default:p.up=r(8)+1,p.mid=r(6)/2,p.down=r(8)+1;break}var h=["up","mid","down"];for(var g in h)for(var m=h[g],f=0;f<=p[m];f++)u[m]&&(c=c+n[m][r(n[m].length)])}return c}return o(e,i)}});var E_=w((Moe,M_)=>{M_.exports=function(t){return function(e,i,n){if(e===" ")return e;switch(i%3){case 0:return t.red(e);case 1:return t.white(e);case 2:return t.blue(e)}}}});var q_=w((Eoe,k_)=>{k_.exports=function(t){return function(e,i,n){return i%2===0?e:t.inverse(e)}}});var H_=w((koe,__)=>{__.exports=function(t){var e=["red","yellow","green","blue","magenta"];return function(i,n,a){return i===" "?i:t[e[n++%e.length]](i)}}});var I_=w((qoe,R_)=>{R_.exports=function(t){var e=["underline","inverse","grey","yellow","red","green","blue","white","cyan","magenta","brightYellow","brightRed","brightGreen","brightBlue","brightWhite","brightCyan","brightMagenta"];return function(i,n,a){return i===" "?i:t[e[Math.round(Math.random()*(e.length-2))]](i)}}});var U_=w((Hoe,N_)=>{var de={};N_.exports=de;de.themes={};var xK=require("util"),$a=de.styles=A_(),D_=Object.defineProperties,TK=new RegExp(/[\r\n]+/g);de.supportsColor=j_().supportsColor;typeof de.enabled>"u"&&(de.enabled=de.supportsColor()!==!1);de.enable=function(){de.enabled=!0};de.disable=function(){de.enabled=!1};de.stripColors=de.strip=function(t){return(""+t).replace(/\x1B\[\d+m/g,"")};var _oe=de.stylize=function(e,i){if(!de.enabled)return e+"";var n=$a[i];return!n&&i in de?de[i](e):n.open+e+n.close},MK=/[|\\{}()[\]^$+*?.]/g,EK=function(t){if(typeof t!="string")throw new TypeError("Expected a string");return t.replace(MK,"\\$&")};function G_(t){var e=function i(){return qK.apply(i,arguments)};return e._styles=t,e.__proto__=kK,e}var $_=(function(){var t={};return $a.grey=$a.gray,Object.keys($a).forEach(function(e){$a[e].closeRe=new RegExp(EK($a[e].close),"g"),t[e]={get:function(){return G_(this._styles.concat(e))}}}),t})(),kK=D_(function(){},$_);function qK(){var t=Array.prototype.slice.call(arguments),e=t.map(function(s){return s!=null&&s.constructor===String?s:xK.inspect(s)}).join(" ");if(!de.enabled||!e)return e;for(var i=e.indexOf(` `)!=-1,n=this._styles,a=n.length;a--;){var r=$a[n[a]];e=r.open+e.replace(r.closeRe,r.open)+r.close,i&&(e=e.replace(TK,function(s){return r.close+s+r.open}))}return e}de.setTheme=function(t){if(typeof t=="string"){console.log("colors.setTheme now only accepts an object, not a string. If you are trying to set a theme from a file, it is now your (the caller's) responsibility to require the file. The old syntax looked like colors.setTheme(__dirname + '/../themes/generic-logging.js'); The new syntax looks like colors.setTheme(require(__dirname + '/../themes/generic-logging.js'));");return}for(var e in t)(function(i){de[i]=function(n){if(typeof t[i]=="object"){var a=n;for(var r in t[i])a=de[t[i][r]](a);return a}return de[t[i]](n)}})(e)};function _K(){var t={};return Object.keys($_).forEach(function(e){t[e]={get:function(){return G_([e])}}}),t}var HK=function(e,i){var n=i.split("");return n=n.map(e),n.join("")};de.trap=O_();de.zalgo=T_();de.maps={};de.maps.america=E_()(de);de.maps.zebra=q_()(de);de.maps.rainbow=H_()(de);de.maps.random=I_()(de);for(z_ in de.maps)(function(t){de[t]=function(e){return HK(de.maps[t],e)}})(z_);var z_;D_(de,_K())});var Fv=w((Roe,L_)=>{var RK=U_();L_.exports=RK});var W_=w(Vv=>{"use strict";Vv.levels={error:0,warn:1,help:2,data:3,info:4,debug:5,prompt:6,verbose:7,input:8,silly:9};Vv.colors={error:"red",warn:"yellow",help:"cyan",data:"grey",info:"green",debug:"blue",prompt:"grey",verbose:"cyan",input:"grey",silly:"magenta"}});var B_=w(Jv=>{"use strict";Jv.levels={error:0,warn:1,info:2,http:3,verbose:4,debug:5,silly:6};Jv.colors={error:"red",warn:"yellow",info:"green",http:"green",verbose:"cyan",debug:"blue",silly:"magenta"}});var F_=w(Zv=>{"use strict";Zv.levels={emerg:0,alert:1,crit:2,error:3,warning:4,notice:5,info:6,debug:7};Zv.colors={emerg:"red",alert:"yellow",crit:"red",error:"red",warning:"red",notice:"yellow",info:"green",debug:"blue"}});var V_=w(lp=>{"use strict";Object.defineProperty(lp,"cli",{value:W_()});Object.defineProperty(lp,"npm",{value:B_()});Object.defineProperty(lp,"syslog",{value:F_()})});var ri=w(tl=>{"use strict";Object.defineProperty(tl,"LEVEL",{value:Symbol.for("level")});Object.defineProperty(tl,"MESSAGE",{value:Symbol.for("message")});Object.defineProperty(tl,"SPLAT",{value:Symbol.for("splat")});Object.defineProperty(tl,"configs",{value:V_()})});var pp=w((Noe,cp)=>{"use strict";var Yv=Fv(),{LEVEL:Kv,MESSAGE:Qv}=ri();Yv.enabled=!0;var J_=/\s+/,up=class t{constructor(e={}){e.colors&&this.addColors(e.colors),this.options=e}static addColors(e){let i=Object.keys(e).reduce((n,a)=>(n[a]=J_.test(e[a])?e[a].split(J_):e[a],n),{});return t.allColors=Object.assign({},t.allColors||{},i),t.allColors}addColors(e){return t.addColors(e)}colorize(e,i,n){if(typeof n>"u"&&(n=i),!Array.isArray(t.allColors[e]))return Yv[t.allColors[e]](n);for(let a=0,r=t.allColors[e].length;anew up(t);cp.exports.Colorizer=cp.exports.Format=up});var K_=w((Uoe,Z_)=>{"use strict";var{Colorizer:IK}=pp();Z_.exports=t=>(IK.addColors(t.colors||t),t)});var Y_=w((Loe,Q_)=>{"use strict";var zK=Zi();Q_.exports=zK(t=>(t.message=` ${t.message}`,t))});var i2=w((Woe,e2)=>{"use strict";var DK=Zi(),{LEVEL:X_,MESSAGE:Xv}=ri();e2.exports=DK((t,{stack:e,cause:i})=>{if(t instanceof Error){let a=Object.assign({},t,{level:t.level,[X_]:t[X_]||t.level,message:t.message,[Xv]:t[Xv]||t.message});return e&&(a.stack=t.stack),i&&(a.cause=t.cause),a}if(!(t.message instanceof Error))return t;let n=t.message;return Object.assign(t,n),t.message=n.message,t[Xv]=n.message,e&&(t.stack=n.stack),i&&(t.cause=n.cause),t})});var iC=w((Boe,hp)=>{"use strict";var{configs:GK,LEVEL:n2,MESSAGE:eC}=ri(),dp=class t{constructor(e={levels:GK.npm.levels}){this.paddings=t.paddingForLevels(e.levels,e.filler),this.options=e}static getLongestLevel(e){let i=Object.keys(e).map(n=>n.length);return Math.max(...i)}static paddingForLevel(e,i,n){let a=n+1-e.length,r=Math.floor(a/i.length);return`${i}${i.repeat(r)}`.slice(0,a)}static paddingForLevels(e,i=" "){let n=t.getLongestLevel(e);return Object.keys(e).reduce((a,r)=>(a[r]=t.paddingForLevel(r,i,n),a),{})}transform(e,i){return e.message=`${this.paddings[e[n2]]}${e.message}`,e[eC]&&(e[eC]=`${this.paddings[e[n2]]}${e[eC]}`),e}};hp.exports=t=>new dp(t);hp.exports.Padder=hp.exports.Format=dp});var t2=w((Foe,nC)=>{"use strict";var{Colorizer:$K}=pp(),{Padder:NK}=iC(),{configs:UK,MESSAGE:LK}=ri(),gp=class{constructor(e={}){e.levels||(e.levels=UK.cli.levels),this.colorizer=new $K(e),this.padder=new NK(e),this.options=e}transform(e,i){return this.colorizer.transform(this.padder.transform(e,i),i),e[LK]=`${e.level}:${e.message}`,e}};nC.exports=t=>new gp(t);nC.exports.Format=gp});var r2=w((Voe,tC)=>{"use strict";var WK=Zi();function a2(t){if(t.every(BK))return e=>{let i=e;for(let n=0;n{let e=WK(a2(t)),i=e();return i.Format=e.Format,i};tC.exports.cascade=a2});var rl=w((oC,l2)=>{"use strict";var{hasOwnProperty:al}=Object.prototype,Ua=sC();Ua.configure=sC;Ua.stringify=Ua;Ua.default=Ua;oC.stringify=Ua;oC.configure=sC;l2.exports=Ua;var FK=/[\u0000-\u001f\u0022\u005c\ud800-\udfff]/;function Nt(t){return t.length<5e3&&!FK.test(t)?`"${t}"`:JSON.stringify(t)}function aC(t,e){if(t.length>200||e)return t.sort(e);for(let i=1;in;)t[a]=t[a-1],a--;t[a]=n}return t}var VK=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(Object.getPrototypeOf(new Int8Array)),Symbol.toStringTag).get;function rC(t){return VK.call(t)!==void 0&&t.length!==0}function s2(t,e,i){t.length= 1`)}return i===void 0?1/0:i}function Na(t){return t===1?"1 item":`${t} items`}function QK(t){let e=new Set;for(let i of t)(typeof i=="string"||typeof i=="number")&&e.add(String(i));return e}function YK(t){if(al.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 i=>{let n=`Object can not safely be stringified. Received type ${typeof i}`;throw typeof i!="function"&&(n+=` (${i.toString()})`),new Error(n)}}}function sC(t){t={...t};let e=YK(t);e&&(t.bigint===void 0&&(t.bigint=!1),"circularValue"in t||(t.circularValue=Error));let i=JK(t),n=KK(t,"bigint"),a=ZK(t),r=typeof a=="function"?a:void 0,s=o2(t,"maximumDepth"),o=o2(t,"maximumBreadth");function l(h,g,m,f,v,y){let A=g[h];switch(typeof A=="object"&&A!==null&&typeof A.toJSON=="function"&&(A=A.toJSON(h)),A=f.call(g,h,A),typeof A){case"string":return Nt(A);case"object":{if(A===null)return"null";if(m.indexOf(A)!==-1)return i;let b="",O=",",$=y;if(Array.isArray(A)){if(A.length===0)return"[]";if(so){let F=b-o;$+=`${N}"...": "${Na(F)} not stringified"`,N=O}return N!==""&&($=` ${v}${$} -${y}`),m.pop(),`{${$}}`}case"number":return isFinite(g)?String(g):e?e(g):"null";case"boolean":return g===!0?"true":"false";case"undefined":return;case"bigint":if(n)return String(g);default:return e?e(g):void 0}}function p(h,g,m){switch(typeof g){case"string":return Nt(g);case"object":{if(g===null)return"null";if(typeof g.toJSON=="function"){if(g=g.toJSON(h),typeof g!="object")return p(h,g,m);if(g===null)return"null"}if(m.indexOf(g)!==-1)return i;let f="",v=g.length!==void 0;if(v&&Array.isArray(g)){if(g.length===0)return"[]";if(so){let F=g.length-o-1;f+=`,"... ${Na(F)} not stringified"`}return m.pop(),`[${f}]`}let y=Object.keys(g),A=y.length;if(A===0)return"{}";if(so){let $=A-o;f+=`${b}"...":"${Na($)} not stringified"`}return m.pop(),`{${f}}`}case"number":return isFinite(g)?String(g):e?e(g):"null";case"boolean":return g===!0?"true":"false";case"undefined":return;case"bigint":if(n)return String(g);default:return e?e(g):void 0}}function d(h,g,m){if(arguments.length>1){let f="";if(typeof m=="number"?f=" ".repeat(Math.min(m,10)):typeof m=="string"&&(f=m.slice(0,10)),g!=null){if(typeof g=="function")return l("",{"":h},[],g,f,"");if(Array.isArray(g))return u("",h,[],QK(g),f,"")}if(f.length!==0)return c("",h,[],f,"")}return p("",h,[])}return d}});var lC=w((Joe,u2)=>{"use strict";var XK=Zi(),{MESSAGE:e9}=ri(),i9=rl();function n9(t,e){return typeof e=="bigint"?e.toString():e}u2.exports=XK((t,e)=>{let i=i9.configure(e);return t[e9]=i(t,e.replacer||n9,e.space),t})});var p2=w((Zoe,c2)=>{"use strict";var t9=Zi();c2.exports=t9((t,e)=>e.message?(t.message=`[${e.label}] ${t.message}`,t):(t.label=e.label,t))});var h2=w((Koe,d2)=>{"use strict";var a9=Zi(),{MESSAGE:r9}=ri(),s9=rl();d2.exports=a9(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[r9]=s9(e),t})});var m2=w((Qoe,g2)=>{"use strict";var o9=Zi();function l9(t,e,i){let n=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,n,{[i]:a}),t}function u9(t,e,i){return t[i]=e.reduce((n,a)=>(n[a]=t[a],delete t[a],n),{}),t}g2.exports=o9((t,e={})=>{let i="metadata";e.key&&(i=e.key);let n=[];return!e.fillExcept&&!e.fillWith&&(n.push("level"),n.push("message")),e.fillExcept&&(n=e.fillExcept),n.length>0?l9(t,n,i):e.fillWith?u9(t,e.fillWith,i):t})});var w2=w((sl,f2)=>{"use strict";var c9=Zi(),p9=kw();f2.exports=c9(t=>{let e=+new Date;return sl.diff=e-(sl.prevTime||e),sl.prevTime=e,t.ms=`+${p9(sl.diff)}`,t})});var A2=w((Yoe,C2)=>{"use strict";var d9=require("util").inspect,h9=Zi(),{LEVEL:g9,MESSAGE:v2,SPLAT:m9}=ri();C2.exports=h9((t,e={})=>{let i=Object.assign({},t);return delete i[g9],delete i[v2],delete i[m9],t[v2]=d9(i,!1,e.depth||null,e.colorize),t})});var b2=w((Xoe,fp)=>{"use strict";var{MESSAGE:f9}=ri(),mp=class{constructor(e){this.template=e}transform(e){return e[f9]=this.template(e),e}};fp.exports=t=>new mp(t);fp.exports.Printf=fp.exports.Format=mp});var j2=w((ele,P2)=>{"use strict";var w9=Zi(),{MESSAGE:y2}=ri(),v9=rl();P2.exports=w9(t=>{let e=v9(Object.assign({},t,{level:void 0,message:void 0,splat:void 0})),i=t.padding&&t.padding[t.level]||"";return e!=="{}"?t[y2]=`${t.level}:${i} ${t.message} ${e}`:t[y2]=`${t.level}:${i} ${t.message}`,t})});var x2=w((ile,O2)=>{"use strict";var C9=require("util"),{SPLAT:S2}=ri(),A9=/%[scdjifoO%]/g,b9=/%%/g,uC=class{constructor(e){this.options=e}_splat(e,i){let n=e.message,a=e[S2]||e.splat||[],r=n.match(b9),s=r&&r.length||0,l=i.length-s-a.length,u=l<0?a.splice(l,-1*l):[],c=u.length;if(c)for(let p=0;p1?n.splice(0):n,s=r.length;if(s)for(let o=0;onew uC(t)});var M2=w((wp,T2)=>{(function(t,e){typeof wp=="object"&&typeof T2<"u"?e(wp):typeof define=="function"&&define.amd?define(["exports"],e):e(t.fecha={})})(wp,(function(t){"use strict";var e=/d{1,4}|M{1,4}|YY(?:YY)?|S{1,3}|Do|ZZ|Z|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g,i="\\d\\d?",n="\\d\\d",a="\\d{3}",r="\\d{4}",s="[^\\s]+",o=/\[([^]*?)\]/gm;function l(S,R){for(var Ae=[],Se=0,I=S.length;Se-1?I:null}};function c(S){for(var R=[],Ae=1;Ae3?0:(S-S%10!==10?1:0)*S%10]}},f=c({},m),v=function(S){return f=c(f,S)},y=function(S){return S.replace(/[|\\{()[^$+*?.-]/g,"\\$&")},A=function(S,R){for(R===void 0&&(R=2),S=String(S);S.length0?"-":"+")+A(Math.floor(Math.abs(R)/60)*100+Math.abs(R)%60,4)},Z:function(S){var R=S.getTimezoneOffset();return(R>0?"-":"+")+A(Math.floor(Math.abs(R)/60),2)+":"+A(Math.abs(R)%60,2)}},O=function(S){return+S-1},$=[null,i],N=[null,s],X=["isPm",s,function(S,R){var Ae=S.toLowerCase();return Ae===R.amPm[0]?0:Ae===R.amPm[1]?1:null}],F=["timezoneOffset","[^\\s]*?[\\+\\-]\\d\\d:?\\d\\d|[^\\s]*?Z?",function(S){var R=(S+"").match(/([+-]|\d\d)/gi);if(R){var Ae=+R[1]*60+parseInt(R[2],10);return R[0]==="+"?Ae:-Ae}return 0}],k={D:["day",i],DD:["day",n],Do:["day",i+s,function(S){return parseInt(S,10)}],M:["month",i,O],MM:["month",n,O],YY:["year",n,function(S){var R=new Date,Ae=+(""+R.getFullYear()).substr(0,2);return+(""+(+S>68?Ae-1:Ae)+S)}],h:["hour",i,void 0,"isPm"],hh:["hour",n,void 0,"isPm"],H:["hour",i],HH:["hour",n],m:["minute",i],mm:["minute",n],s:["second",i],ss:["second",n],YYYY:["year",r],S:["millisecond","\\d",function(S){return+S*100}],SS:["millisecond",n,function(S){return+S*10}],SSS:["millisecond",a],d:$,dd:$,ddd:N,dddd:N,MMM:["month",s,u("monthNamesShort")],MMMM:["month",s,u("monthNames")],a:X,A:X,ZZ:F,Z:F},Q={default:"ddd MMM DD YYYY HH:mm:ss",shortDate:"M/D/YY",mediumDate:"MMM D, YYYY",longDate:"MMMM D, YYYY",fullDate:"dddd, MMMM D, YYYY",isoDate:"YYYY-MM-DD",isoDateTime:"YYYY-MM-DDTHH:mm:ssZ",shortTime:"HH:mm",mediumTime:"HH:mm:ss",longTime:"HH:mm:ss.SSS"},Z=function(S){return c(Q,S)},ie=function(S,R,Ae){if(R===void 0&&(R=Q.default),Ae===void 0&&(Ae={}),typeof S=="number"&&(S=new Date(S)),Object.prototype.toString.call(S)!=="[object Date]"||isNaN(S.getTime()))throw new Error("Invalid Date pass to format");R=Q[R]||R;var Se=[];R=R.replace(o,function(ei,Re){return Se.push(Re),"@@@"});var I=c(c({},f),Ae);return R=R.replace(e,function(ei){return b[ei](S,I)}),R.replace(/@@@/g,function(){return Se.shift()})};function se(S,R,Ae){if(Ae===void 0&&(Ae={}),typeof R!="string")throw new Error("Invalid format in fecha parse");if(R=Q[R]||R,S.length>1e3)return null;var Se=new Date,I={year:Se.getFullYear(),month:0,day:1,hour:0,minute:0,second:0,millisecond:0,isPm:null,timezoneOffset:null},ei=[],Re=[],Me=R.replace(o,function(wn,Ge){return Re.push(y(Ge)),"@@@"}),Oi={},vi={};Me=y(Me).replace(e,function(wn){var Ge=k[wn],Ya=Ge[0],mI=Ge[1],ly=Ge[3];if(Oi[Ya])throw new Error("Invalid format. "+Ya+" specified twice in format");return Oi[Ya]=!0,ly&&(vi[ly]=!0),ei.push(Ge),"("+mI+")"}),Object.keys(vi).forEach(function(wn){if(!Oi[wn])throw new Error("Invalid format. "+wn+" is required in specified format")}),Me=Me.replace(/@@@/g,function(){return Re.shift()});var nn=S.match(new RegExp(Me,"i"));if(!nn)return null;for(var G=c(c({},f),Ae),x=1;x11||I.month<0||I.day>31||I.day<1||I.hour>23||I.hour<0||I.minute>59||I.minute<0||I.second>59||I.second<0)return null;return pi}var De={format:ie,parse:se,defaultI18n:m,setGlobalDateI18n:v,setGlobalDateMasks:Z};t.assign=c,t.default=De,t.format=ie,t.parse=se,t.defaultI18n=m,t.setGlobalDateI18n=v,t.setGlobalDateMasks=Z,Object.defineProperty(t,"__esModule",{value:!0})}))});var k2=w((nle,E2)=>{"use strict";var y9=M2(),P9=Zi();E2.exports=P9((t,e={})=>(e.format&&(t.timestamp=typeof e.format=="function"?e.format():y9.format(new Date,e.format)),t.timestamp||(t.timestamp=new Date().toISOString()),e.alias&&(t[e.alias]=t.timestamp),t))});var _2=w((tle,q2)=>{"use strict";var cC=Fv(),j9=Zi(),{MESSAGE:pC}=ri();q2.exports=j9((t,e)=>(e.level!==!1&&(t.level=cC.strip(t.level)),e.message!==!1&&(t.message=cC.strip(String(t.message))),e.raw!==!1&&t[pC]&&(t[pC]=cC.strip(String(t[pC]))),t))});var hC=w(dC=>{"use strict";var S9=dC.format=Zi();dC.levels=K_();function ji(t,e){Object.defineProperty(S9,t,{get(){return e()},configurable:!0})}ji("align",function(){return Y_()});ji("errors",function(){return i2()});ji("cli",function(){return t2()});ji("combine",function(){return r2()});ji("colorize",function(){return pp()});ji("json",function(){return lC()});ji("label",function(){return p2()});ji("logstash",function(){return h2()});ji("metadata",function(){return m2()});ji("ms",function(){return w2()});ji("padLevels",function(){return iC()});ji("prettyPrint",function(){return A2()});ji("printf",function(){return b2()});ji("simple",function(){return j2()});ji("splat",function(){return x2()});ji("timestamp",function(){return k2()});ji("uncolorize",function(){return _2()})});var gC=w(vp=>{"use strict";var{format:H2}=require("util");vp.warn={deprecated(t){return()=>{throw new Error(H2("{ %s } was removed in winston@3.0.0.",t))}},useFormat(t){return()=>{throw new Error([H2("{ %s } was removed in winston@3.0.0.",t),"Use a custom winston.format = winston.format(function) instead."].join(` -`))}},forFunctions(t,e,i){i.forEach(n=>{t[n]=vp.warn[e](n)})},forProperties(t,e,i){i.forEach(n=>{let a=vp.warn[e](n);Object.defineProperty(t,n,{get:a,set:a})})}}});var R2=w((sle,O9)=>{O9.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 z2=w((ole,I2)=>{I2.exports=require("util").deprecate});var mC=w((lle,D2)=>{D2.exports=require("stream")});var wC=w((ule,$2)=>{"use strict";function x9(t,e){var i=this,n=this._readableState&&this._readableState.destroyed,a=this._writableState&&this._writableState.destroyed;return n||a?(e?e(t):t&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(fC,this,t)):process.nextTick(fC,this,t)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(t||null,function(r){!e&&r?i._writableState?i._writableState.errorEmitted?process.nextTick(Cp,i):(i._writableState.errorEmitted=!0,process.nextTick(G2,i,r)):process.nextTick(G2,i,r):e?(process.nextTick(Cp,i),e(r)):process.nextTick(Cp,i)}),this)}function G2(t,e){fC(t,e),Cp(t)}function Cp(t){t._writableState&&!t._writableState.emitClose||t._readableState&&!t._readableState.emitClose||t.emit("close")}function T9(){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 fC(t,e){t.emit("error",e)}function M9(t,e){var i=t._readableState,n=t._writableState;i&&i.autoDestroy||n&&n.autoDestroy?t.destroy(e):t.emit("error",e)}$2.exports={destroy:x9,undestroy:T9,errorOrDestroy:M9}});var Ut=w((cle,L2)=>{"use strict";var U2={};function mn(t,e,i){i||(i=Error);function n(r,s,o){return typeof e=="string"?e:e(r,s,o)}class a extends i{constructor(s,o,l){super(n(s,o,l))}}a.prototype.name=i.name,a.prototype.code=t,U2[t]=a}function N2(t,e){if(Array.isArray(t)){let i=t.length;return t=t.map(n=>String(n)),i>2?`one of ${e} ${t.slice(0,i-1).join(", ")}, or `+t[i-1]:i===2?`one of ${e} ${t[0]} or ${t[1]}`:`of ${e} ${t[0]}`}else return`of ${e} ${String(t)}`}function E9(t,e,i){return t.substr(!i||i<0?0:+i,e.length)===e}function k9(t,e,i){return(i===void 0||i>t.length)&&(i=t.length),t.substring(i-e.length,i)===e}function q9(t,e,i){return typeof i!="number"&&(i=0),i+e.length>t.length?!1:t.indexOf(e,i)!==-1}mn("ERR_INVALID_OPT_VALUE",function(t,e){return'The value "'+e+'" is invalid for option "'+t+'"'},TypeError);mn("ERR_INVALID_ARG_TYPE",function(t,e,i){let n;typeof e=="string"&&E9(e,"not ")?(n="must not be",e=e.replace(/^not /,"")):n="must be";let a;if(k9(t," argument"))a=`The ${t} ${n} ${N2(e,"type")}`;else{let r=q9(t,".")?"property":"argument";a=`The "${t}" ${r} ${n} ${N2(e,"type")}`}return a+=`. Received type ${typeof i}`,a},TypeError);mn("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF");mn("ERR_METHOD_NOT_IMPLEMENTED",function(t){return"The "+t+" method is not implemented"});mn("ERR_STREAM_PREMATURE_CLOSE","Premature close");mn("ERR_STREAM_DESTROYED",function(t){return"Cannot call "+t+" after a stream was destroyed"});mn("ERR_MULTIPLE_CALLBACK","Callback called multiple times");mn("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable");mn("ERR_STREAM_WRITE_AFTER_END","write after end");mn("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);mn("ERR_UNKNOWN_ENCODING",function(t){return"Unknown encoding: "+t},TypeError);mn("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event");L2.exports.codes=U2});var vC=w((ple,W2)=>{"use strict";var _9=Ut().codes.ERR_INVALID_OPT_VALUE;function H9(t,e,i){return t.highWaterMark!=null?t.highWaterMark:e?t[i]:null}function R9(t,e,i,n){var a=H9(e,n,i);if(a!=null){if(!(isFinite(a)&&Math.floor(a)===a)||a<0){var r=n?i:"highWaterMark";throw new _9(r,a)}return Math.floor(a)}return t.objectMode?16:16*1024}W2.exports={getHighWaterMark:R9}});var B2=w((dle,CC)=>{typeof Object.create=="function"?CC.exports=function(e,i){i&&(e.super_=i,e.prototype=Object.create(i.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:CC.exports=function(e,i){if(i){e.super_=i;var n=function(){};n.prototype=i.prototype,e.prototype=new n,e.prototype.constructor=e}}});var is=w((hle,bC)=>{try{if(AC=require("util"),typeof AC.inherits!="function")throw"";bC.exports=AC.inherits}catch{bC.exports=B2()}var AC});var Q2=w((gle,K2)=>{"use strict";function F2(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),i.push.apply(i,n)}return i}function V2(t){for(var e=1;e0?this.tail.next=n:this.head=n,this.tail=n,++this.length}},{key:"unshift",value:function(i){var n={data:i,next:this.head};this.length===0&&(this.tail=n),this.head=n,++this.length}},{key:"shift",value:function(){if(this.length!==0){var i=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,i}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(i){if(this.length===0)return"";for(var n=this.head,a=""+n.data;n=n.next;)a+=i+n.data;return a}},{key:"concat",value:function(i){if(this.length===0)return Ap.alloc(0);for(var n=Ap.allocUnsafe(i>>>0),a=this.head,r=0;a;)L9(a.data,n,r),r+=a.data.length,a=a.next;return n}},{key:"consume",value:function(i,n){var a;return is.length?s.length:i;if(o===s.length?r+=s:r+=s.slice(0,i),i-=o,i===0){o===s.length?(++a,n.next?this.head=n.next:this.head=this.tail=null):(this.head=n,n.data=s.slice(o));break}++a}return this.length-=a,r}},{key:"_getBuffer",value:function(i){var n=Ap.allocUnsafe(i),a=this.head,r=1;for(a.data.copy(n),i-=a.data.length;a=a.next;){var s=a.data,o=i>s.length?s.length:i;if(s.copy(n,n.length-i,0,o),i-=o,i===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,n}},{key:U9,value:function(i,n){return yC(this,V2(V2({},n),{},{depth:0,customInspect:!1}))}}]),t})()});var e0=w((PC,X2)=>{var bp=require("buffer"),Bn=bp.Buffer;function Y2(t,e){for(var i in t)e[i]=t[i]}Bn.from&&Bn.alloc&&Bn.allocUnsafe&&Bn.allocUnsafeSlow?X2.exports=bp:(Y2(bp,PC),PC.Buffer=La);function La(t,e,i){return Bn(t,e,i)}La.prototype=Object.create(Bn.prototype);Y2(Bn,La);La.from=function(t,e,i){if(typeof t=="number")throw new TypeError("Argument must not be a number");return Bn(t,e,i)};La.alloc=function(t,e,i){if(typeof t!="number")throw new TypeError("Argument must be a number");var n=Bn(t);return e!==void 0?typeof i=="string"?n.fill(e,i):n.fill(e):n.fill(0),n};La.allocUnsafe=function(t){if(typeof t!="number")throw new TypeError("Argument must be a number");return Bn(t)};La.allocUnsafeSlow=function(t){if(typeof t!="number")throw new TypeError("Argument must be a number");return bp.SlowBuffer(t)}});var OC=w(n0=>{"use strict";var SC=e0().Buffer,i0=SC.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 W9(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 B9(t){var e=W9(t);if(typeof e!="string"&&(SC.isEncoding===i0||!i0(t)))throw new Error("Unknown encoding: "+t);return e||t}n0.StringDecoder=ol;function ol(t){this.encoding=B9(t);var e;switch(this.encoding){case"utf16le":this.text=Q9,this.end=Y9,e=4;break;case"utf8":this.fillLast=J9,e=4;break;case"base64":this.text=X9,this.end=e6,e=3;break;default:this.write=i6,this.end=n6;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=SC.allocUnsafe(e)}ol.prototype.write=function(t){if(t.length===0)return"";var e,i;if(this.lastNeed){if(e=this.fillLast(t),e===void 0)return"";i=this.lastNeed,this.lastNeed=0}else i=0;return i>5===6?2:t>>4===14?3:t>>3===30?4:t>>6===2?-1:-2}function F9(t,e,i){var n=e.length-1;if(n=0?(a>0&&(t.lastNeed=a-1),a):--n=0?(a>0&&(t.lastNeed=a-2),a):--n=0?(a>0&&(a===2?a=0:t.lastNeed=a-3),a):0))}function V9(t,e,i){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 J9(t){var e=this.lastTotal-this.lastNeed,i=V9(this,t,e);if(i!==void 0)return i;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 Z9(t,e){var i=F9(this,t,e);if(!this.lastNeed)return t.toString("utf8",e);this.lastTotal=i;var n=t.length-(i-this.lastNeed);return t.copy(this.lastChar,0,n),t.toString("utf8",e,n)}function K9(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+"\uFFFD":e}function Q9(t,e){if((t.length-e)%2===0){var i=t.toString("utf16le",e);if(i){var n=i.charCodeAt(i.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1],i.slice(0,-1)}return i}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=t[t.length-1],t.toString("utf16le",e,t.length-1)}function Y9(t){var e=t&&t.length?this.write(t):"";if(this.lastNeed){var i=this.lastTotal-this.lastNeed;return e+this.lastChar.toString("utf16le",0,i)}return e}function X9(t,e){var i=(t.length-e)%3;return i===0?t.toString("base64",e):(this.lastNeed=3-i,this.lastTotal=3,i===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-i))}function e6(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}function i6(t){return t.toString(this.encoding)}function n6(t){return t&&t.length?this.write(t):""}});var yp=w((fle,r0)=>{"use strict";var t0=Ut().codes.ERR_STREAM_PREMATURE_CLOSE;function t6(t){var e=!1;return function(){if(!e){e=!0;for(var i=arguments.length,n=new Array(i),a=0;a{"use strict";var Pp;function Lt(t,e,i){return e=s6(e),e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function s6(t){var e=o6(t,"string");return typeof e=="symbol"?e:String(e)}function o6(t,e){if(typeof t!="object"||t===null)return t;var i=t[Symbol.toPrimitive];if(i!==void 0){var n=i.call(t,e||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var l6=yp(),Wt=Symbol("lastResolve"),Wa=Symbol("lastReject"),ll=Symbol("error"),jp=Symbol("ended"),Ba=Symbol("lastPromise"),xC=Symbol("handlePromise"),Fa=Symbol("stream");function Bt(t,e){return{value:t,done:e}}function u6(t){var e=t[Wt];if(e!==null){var i=t[Fa].read();i!==null&&(t[Ba]=null,t[Wt]=null,t[Wa]=null,e(Bt(i,!1)))}}function c6(t){process.nextTick(u6,t)}function p6(t,e){return function(i,n){t.then(function(){if(e[jp]){i(Bt(void 0,!0));return}e[xC](i,n)},n)}}var d6=Object.getPrototypeOf(function(){}),h6=Object.setPrototypeOf((Pp={get stream(){return this[Fa]},next:function(){var e=this,i=this[ll];if(i!==null)return Promise.reject(i);if(this[jp])return Promise.resolve(Bt(void 0,!0));if(this[Fa].destroyed)return new Promise(function(s,o){process.nextTick(function(){e[ll]?o(e[ll]):s(Bt(void 0,!0))})});var n=this[Ba],a;if(n)a=new Promise(p6(n,this));else{var r=this[Fa].read();if(r!==null)return Promise.resolve(Bt(r,!1));a=new Promise(this[xC])}return this[Ba]=a,a}},Lt(Pp,Symbol.asyncIterator,function(){return this}),Lt(Pp,"return",function(){var e=this;return new Promise(function(i,n){e[Fa].destroy(null,function(a){if(a){n(a);return}i(Bt(void 0,!0))})})}),Pp),d6),g6=function(e){var i,n=Object.create(h6,(i={},Lt(i,Fa,{value:e,writable:!0}),Lt(i,Wt,{value:null,writable:!0}),Lt(i,Wa,{value:null,writable:!0}),Lt(i,ll,{value:null,writable:!0}),Lt(i,jp,{value:e._readableState.endEmitted,writable:!0}),Lt(i,xC,{value:function(r,s){var o=n[Fa].read();o?(n[Ba]=null,n[Wt]=null,n[Wa]=null,r(Bt(o,!1))):(n[Wt]=r,n[Wa]=s)},writable:!0}),i));return n[Ba]=null,l6(e,function(a){if(a&&a.code!=="ERR_STREAM_PREMATURE_CLOSE"){var r=n[Wa];r!==null&&(n[Ba]=null,n[Wt]=null,n[Wa]=null,r(a)),n[ll]=a;return}var s=n[Wt];s!==null&&(n[Ba]=null,n[Wt]=null,n[Wa]=null,s(Bt(void 0,!0))),n[jp]=!0}),e.on("readable",c6.bind(null,n)),n};s0.exports=g6});var p0=w((vle,c0)=>{"use strict";function l0(t,e,i,n,a,r,s){try{var o=t[r](s),l=o.value}catch(u){i(u);return}o.done?e(l):Promise.resolve(l).then(n,a)}function m6(t){return function(){var e=this,i=arguments;return new Promise(function(n,a){var r=t.apply(e,i);function s(l){l0(r,n,a,s,o,"next",l)}function o(l){l0(r,n,a,s,o,"throw",l)}s(void 0)})}}function u0(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),i.push.apply(i,n)}return i}function f6(t){for(var e=1;e{"use strict";b0.exports=je;var ns;je.ReadableState=m0;var Cle=require("events").EventEmitter,g0=function(e,i){return e.listeners(i).length},cl=mC(),Sp=require("buffer").Buffer,y6=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function P6(t){return Sp.from(t)}function j6(t){return Sp.isBuffer(t)||t instanceof y6}var TC=require("util"),ue;TC&&TC.debuglog?ue=TC.debuglog("stream"):ue=function(){};var S6=Q2(),RC=wC(),O6=vC(),x6=O6.getHighWaterMark,Op=Ut().codes,T6=Op.ERR_INVALID_ARG_TYPE,M6=Op.ERR_STREAM_PUSH_AFTER_EOF,E6=Op.ERR_METHOD_NOT_IMPLEMENTED,k6=Op.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,ts,MC,EC;is()(je,cl);var ul=RC.errorOrDestroy,kC=["error","close","destroy","pause","resume"];function q6(t,e,i){if(typeof t.prependListener=="function")return t.prependListener(e,i);!t._events||!t._events[e]?t.on(e,i):Array.isArray(t._events[e])?t._events[e].unshift(i):t._events[e]=[i,t._events[e]]}function m0(t,e,i){ns=ns||Va(),t=t||{},typeof i!="boolean"&&(i=e instanceof ns),this.objectMode=!!t.objectMode,i&&(this.objectMode=this.objectMode||!!t.readableObjectMode),this.highWaterMark=x6(this,t,"readableHighWaterMark",i),this.buffer=new S6,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&&(ts||(ts=OC().StringDecoder),this.decoder=new ts(t.encoding),this.encoding=t.encoding)}function je(t){if(ns=ns||Va(),!(this instanceof je))return new je(t);var e=this instanceof ns;this._readableState=new m0(t,this,e),this.readable=!0,t&&(typeof t.read=="function"&&(this._read=t.read),typeof t.destroy=="function"&&(this._destroy=t.destroy)),cl.call(this)}Object.defineProperty(je.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}});je.prototype.destroy=RC.destroy;je.prototype._undestroy=RC.undestroy;je.prototype._destroy=function(t,e){e(t)};je.prototype.push=function(t,e){var i=this._readableState,n;return i.objectMode?n=!0:typeof t=="string"&&(e=e||i.defaultEncoding,e!==i.encoding&&(t=Sp.from(t,e),e=""),n=!0),f0(this,t,e,!1,n)};je.prototype.unshift=function(t){return f0(this,t,null,!0,!1)};function f0(t,e,i,n,a){ue("readableAddChunk",e);var r=t._readableState;if(e===null)r.reading=!1,R6(t,r);else{var s;if(a||(s=_6(r,e)),s)ul(t,s);else if(r.objectMode||e&&e.length>0)if(typeof e!="string"&&!r.objectMode&&Object.getPrototypeOf(e)!==Sp.prototype&&(e=P6(e)),n)r.endEmitted?ul(t,new k6):qC(t,r,e,!0);else if(r.ended)ul(t,new M6);else{if(r.destroyed)return!1;r.reading=!1,r.decoder&&!i?(e=r.decoder.write(e),r.objectMode||e.length!==0?qC(t,r,e,!1):HC(t,r)):qC(t,r,e,!1)}else n||(r.reading=!1,HC(t,r))}return!r.ended&&(r.length=d0?t=d0:(t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++),t}function h0(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=H6(t)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0))}je.prototype.read=function(t){ue("read",t),t=parseInt(t,10);var e=this._readableState,i=t;if(t!==0&&(e.emittedReadable=!1),t===0&&e.needReadable&&((e.highWaterMark!==0?e.length>=e.highWaterMark:e.length>0)||e.ended))return ue("read: emitReadable",e.length,e.ended),e.length===0&&e.ended?_C(this):xp(this),null;if(t=h0(t,e),t===0&&e.ended)return e.length===0&&_C(this),null;var n=e.needReadable;ue("need readable",n),(e.length===0||e.length-t0?a=C0(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),i!==t&&e.ended&&_C(this)),a!==null&&this.emit("data",a),a};function R6(t,e){if(ue("onEofChunk"),!e.ended){if(e.decoder){var i=e.decoder.end();i&&i.length&&(e.buffer.push(i),e.length+=e.objectMode?1:i.length)}e.ended=!0,e.sync?xp(t):(e.needReadable=!1,e.emittedReadable||(e.emittedReadable=!0,w0(t)))}}function xp(t){var e=t._readableState;ue("emitReadable",e.needReadable,e.emittedReadable),e.needReadable=!1,e.emittedReadable||(ue("emitReadable",e.flowing),e.emittedReadable=!0,process.nextTick(w0,t))}function w0(t){var e=t._readableState;ue("emitReadable_",e.destroyed,e.length,e.ended),!e.destroyed&&(e.length||e.ended)&&(t.emit("readable"),e.emittedReadable=!1),e.needReadable=!e.flowing&&!e.ended&&e.length<=e.highWaterMark,IC(t)}function HC(t,e){e.readingMore||(e.readingMore=!0,process.nextTick(I6,t,e))}function I6(t,e){for(;!e.reading&&!e.ended&&(e.length1&&A0(n.pipes,t)!==-1)&&!u&&(ue("false write response, pause",n.awaitDrain),n.awaitDrain++),i.pause())}function d(f){ue("onerror",f),m(),t.removeListener("error",d),g0(t,"error")===0&&ul(t,f)}q6(t,"error",d);function h(){t.removeListener("finish",g),m()}t.once("close",h);function g(){ue("onfinish"),t.removeListener("close",h),m()}t.once("finish",g);function m(){ue("unpipe"),i.unpipe(t)}return t.emit("pipe",i),n.flowing||(ue("pipe resume"),i.resume()),t};function z6(t){return function(){var i=t._readableState;ue("pipeOnDrain",i.awaitDrain),i.awaitDrain&&i.awaitDrain--,i.awaitDrain===0&&g0(t,"data")&&(i.flowing=!0,IC(t))}}je.prototype.unpipe=function(t){var e=this._readableState,i={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,i),this);if(!t){var n=e.pipes,a=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var r=0;r0,n.flowing!==!1&&this.resume()):t==="readable"&&!n.endEmitted&&!n.readableListening&&(n.readableListening=n.needReadable=!0,n.flowing=!1,n.emittedReadable=!1,ue("on readable",n.length,n.reading),n.length?xp(this):n.reading||process.nextTick(D6,this)),i};je.prototype.addListener=je.prototype.on;je.prototype.removeListener=function(t,e){var i=cl.prototype.removeListener.call(this,t,e);return t==="readable"&&process.nextTick(v0,this),i};je.prototype.removeAllListeners=function(t){var e=cl.prototype.removeAllListeners.apply(this,arguments);return(t==="readable"||t===void 0)&&process.nextTick(v0,this),e};function v0(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 D6(t){ue("readable nexttick read 0"),t.read(0)}je.prototype.resume=function(){var t=this._readableState;return t.flowing||(ue("resume"),t.flowing=!t.readableListening,G6(this,t)),t.paused=!1,this};function G6(t,e){e.resumeScheduled||(e.resumeScheduled=!0,process.nextTick($6,t,e))}function $6(t,e){ue("resume",e.reading),e.reading||t.read(0),e.resumeScheduled=!1,t.emit("resume"),IC(t),e.flowing&&!e.reading&&t.read(0)}je.prototype.pause=function(){return ue("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(ue("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function IC(t){var e=t._readableState;for(ue("flow",e.flowing);e.flowing&&t.read()!==null;);}je.prototype.wrap=function(t){var e=this,i=this._readableState,n=!1;t.on("end",function(){if(ue("wrapped end"),i.decoder&&!i.ended){var s=i.decoder.end();s&&s.length&&e.push(s)}e.push(null)}),t.on("data",function(s){if(ue("wrapped data"),i.decoder&&(s=i.decoder.write(s)),!(i.objectMode&&s==null)&&!(!i.objectMode&&(!s||!s.length))){var o=e.push(s);o||(n=!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?i=e.buffer.join(""):e.buffer.length===1?i=e.buffer.first():i=e.buffer.concat(e.length),e.buffer.clear()):i=e.buffer.consume(t,e.decoder),i}function _C(t){var e=t._readableState;ue("endReadable",e.endEmitted),e.endEmitted||(e.ended=!0,process.nextTick(N6,e,t))}function N6(t,e){if(ue("endReadableNT",t.endEmitted,t.length),!t.endEmitted&&t.length===0&&(t.endEmitted=!0,e.readable=!1,e.emit("end"),t.autoDestroy)){var i=e._writableState;(!i||i.autoDestroy&&i.finished)&&e.destroy()}}typeof Symbol=="function"&&(je.from=function(t,e){return EC===void 0&&(EC=p0()),EC(je,t,e)});function A0(t,e){for(var i=0,n=t.length;i{"use strict";var U6=Object.keys||function(t){var e=[];for(var i in t)e.push(i);return e};P0.exports=Fn;var y0=zC(),GC=Ep();is()(Fn,y0);for(DC=U6(GC.prototype),Tp=0;Tp{"use strict";M0.exports=Ye;function S0(t){var e=this;this.next=null,this.entry=null,this.finish=function(){wQ(e,t)}}var as;Ye.WritableState=dl;var B6={deprecate:z2()},O0=mC(),qp=require("buffer").Buffer,F6=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function V6(t){return qp.from(t)}function J6(t){return qp.isBuffer(t)||t instanceof F6}var NC=wC(),Z6=vC(),K6=Z6.getHighWaterMark,Ft=Ut().codes,Q6=Ft.ERR_INVALID_ARG_TYPE,Y6=Ft.ERR_METHOD_NOT_IMPLEMENTED,X6=Ft.ERR_MULTIPLE_CALLBACK,eQ=Ft.ERR_STREAM_CANNOT_PIPE,iQ=Ft.ERR_STREAM_DESTROYED,nQ=Ft.ERR_STREAM_NULL_VALUES,tQ=Ft.ERR_STREAM_WRITE_AFTER_END,aQ=Ft.ERR_UNKNOWN_ENCODING,rs=NC.errorOrDestroy;is()(Ye,O0);function rQ(){}function dl(t,e,i){as=as||Va(),t=t||{},typeof i!="boolean"&&(i=e instanceof as),this.objectMode=!!t.objectMode,i&&(this.objectMode=this.objectMode||!!t.writableObjectMode),this.highWaterMark=K6(this,t,"writableHighWaterMark",i),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var n=t.decodeStrings===!1;this.decodeStrings=!n,this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(a){dQ(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 S0(this)}dl.prototype.getBuffer=function(){for(var e=this.bufferedRequest,i=[];e;)i.push(e),e=e.next;return i};(function(){try{Object.defineProperty(dl.prototype,"buffer",{get:B6.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}})();var kp;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(kp=Function.prototype[Symbol.hasInstance],Object.defineProperty(Ye,Symbol.hasInstance,{value:function(e){return kp.call(this,e)?!0:this!==Ye?!1:e&&e._writableState instanceof dl}})):kp=function(e){return e instanceof this};function Ye(t){as=as||Va();var e=this instanceof as;if(!e&&!kp.call(Ye,this))return new Ye(t);this._writableState=new dl(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)),O0.call(this)}Ye.prototype.pipe=function(){rs(this,new eQ)};function sQ(t,e){var i=new tQ;rs(t,i),process.nextTick(e,i)}function oQ(t,e,i,n){var a;return i===null?a=new nQ:typeof i!="string"&&!e.objectMode&&(a=new Q6("chunk",["string","Buffer"],i)),a?(rs(t,a),process.nextTick(n,a),!1):!0}Ye.prototype.write=function(t,e,i){var n=this._writableState,a=!1,r=!n.objectMode&&J6(t);return r&&!qp.isBuffer(t)&&(t=V6(t)),typeof e=="function"&&(i=e,e=null),r?e="buffer":e||(e=n.defaultEncoding),typeof i!="function"&&(i=rQ),n.ending?sQ(this,i):(r||oQ(this,n,t,i))&&(n.pendingcb++,a=uQ(this,n,r,t,e,i)),a};Ye.prototype.cork=function(){this._writableState.corked++};Ye.prototype.uncork=function(){var t=this._writableState;t.corked&&(t.corked--,!t.writing&&!t.corked&&!t.bufferProcessing&&t.bufferedRequest&&x0(this,t))};Ye.prototype.setDefaultEncoding=function(e){if(typeof e=="string"&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new aQ(e);return this._writableState.defaultEncoding=e,this};Object.defineProperty(Ye.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function lQ(t,e,i){return!t.objectMode&&t.decodeStrings!==!1&&typeof e=="string"&&(e=qp.from(e,i)),e}Object.defineProperty(Ye.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function uQ(t,e,i,n,a,r){if(!i){var s=lQ(e,n,a);n!==s&&(i=!0,a="buffer",n=s)}var o=e.objectMode?1:n.length;e.length+=o;var l=e.length{"use strict";var vQ=require("util"),E0=Ep(),{LEVEL:k0}=ri(),hl=q0.exports=function(e={}){E0.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",i=>{this.levels=i.levels,this.parent=i}),this.once("unpipe",i=>{i===this.parent&&(this.parent=null,this.close&&this.close())})};vQ.inherits(hl,E0);hl.prototype._write=function(e,i,n){if(this.silent||e.exception===!0&&!this.handleExceptions)return n(null);let a=this.level||this.parent&&this.parent.level;if(!a||this.levels[a]>=this.levels[e[k0]]){if(e&&!this.format)return this.log(e,n);let r,s;try{s=this.format.transform(Object.assign({},e),this.format.options)}catch(o){r=o}if(r||!s){if(n(),r)throw r;return}return this.log(s,n)}return this._writableState.sync=!1,n(null)};hl.prototype._writev=function(e,i){if(this.logv){let n=e.filter(this._accept,this);return n.length?this.logv(n,i):i(null)}for(let n=0;n=this.levels[i[k0]])&&(this.handleExceptions||i.exception!==!0))};hl.prototype._nop=function(){}});var WC=w((jle,H0)=>{"use strict";var CQ=require("util"),{LEVEL:LC}=ri(),_0=UC(),gl=H0.exports=function(e={}){if(_0.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 i(n){this.emit("error",n,this.transport)}this.transport.__winstonError||(this.transport.__winstonError=i.bind(this),this.transport.on("error",this.transport.__winstonError))};CQ.inherits(gl,_0);gl.prototype._write=function(e,i,n){if(this.silent||e.exception===!0&&!this.handleExceptions)return n(null);(!this.level||this.levels[this.level]>=this.levels[e[LC]])&&this.transport.log(e[LC],e.message,e,this._nop),n(null)};gl.prototype._writev=function(e,i){for(let n=0;n{"use strict";BC.exports=UC();BC.exports.LegacyTransportStream=WC()});var z0=w((xle,I0)=>{"use strict";var AQ=require("os"),{LEVEL:R0,MESSAGE:os}=ri(),bQ=ss();I0.exports=class extends bQ{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:AQ.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,i){if(setImmediate(()=>this.emit("logged",e)),this.stderrLevels[e[R0]]){console._stderr&&!this.forceConsole?console._stderr.write(`${e[os]}${this.eol}`):this._consoleError(e[os]),i&&i();return}else if(this.consoleWarnLevels[e[R0]]){console._stderr&&!this.forceConsole?console._stderr.write(`${e[os]}${this.eol}`):this._consoleWarn(e[os]),i&&i();return}console._stdout&&!this.forceConsole?console._stdout.write(`${e[os]}${this.eol}`):this._consoleLog(e[os]),i&&i()}_stringArrayToSet(e,i){if(!e)return{};if(i=i||"Cannot make set from type other than Array of string elements",!Array.isArray(e))throw new Error(i);return e.reduce((n,a)=>{if(typeof a!="string")throw new Error(i);return n[a]=!0,n},{})}}});var Hp=w((_p,D0)=>{"use strict";Object.defineProperty(_p,"__esModule",{value:!0});_p.default=yQ;function yQ(t){return t&&typeof t.length=="number"&&t.length>=0&&t.length%1===0}D0.exports=_p.default});var $0=w((Rp,G0)=>{"use strict";Object.defineProperty(Rp,"__esModule",{value:!0});Rp.default=function(t){return function(...e){var i=e.pop();return t.call(this,e,i)}};G0.exports=Rp.default});var L0=w(Vt=>{"use strict";Object.defineProperty(Vt,"__esModule",{value:!0});Vt.fallback=N0;Vt.wrap=U0;var PQ=Vt.hasQueueMicrotask=typeof queueMicrotask=="function"&&queueMicrotask,jQ=Vt.hasSetImmediate=typeof setImmediate=="function"&&setImmediate,SQ=Vt.hasNextTick=typeof process=="object"&&typeof process.nextTick=="function";function N0(t){setTimeout(t,0)}function U0(t){return(e,...i)=>t(()=>e(...i))}var ml;PQ?ml=queueMicrotask:jQ?ml=setImmediate:SQ?ml=process.nextTick:ml=N0;Vt.default=U0(ml)});var J0=w((Ip,V0)=>{"use strict";Object.defineProperty(Ip,"__esModule",{value:!0});Ip.default=kQ;var OQ=$0(),xQ=F0(OQ),TQ=L0(),MQ=F0(TQ),EQ=Ja();function F0(t){return t&&t.__esModule?t:{default:t}}function kQ(t){return(0,EQ.isAsync)(t)?function(...e){let i=e.pop(),n=t.apply(this,e);return W0(n,i)}:(0,xQ.default)(function(e,i){var n;try{n=t.apply(this,e)}catch(a){return i(a)}if(n&&typeof n.then=="function")return W0(n,i);i(null,n)})}function W0(t,e){return t.then(i=>{B0(e,null,i)},i=>{B0(e,i&&(i instanceof Error||i.message)?i:new Error(i))})}function B0(t,e,i){try{t(e,i)}catch(n){(0,MQ.default)(a=>{throw a},n)}}V0.exports=Ip.default});var Ja=w(pt=>{"use strict";Object.defineProperty(pt,"__esModule",{value:!0});pt.isAsyncIterable=pt.isAsyncGenerator=pt.isAsync=void 0;var qQ=J0(),_Q=HQ(qQ);function HQ(t){return t&&t.__esModule?t:{default:t}}function Z0(t){return t[Symbol.toStringTag]==="AsyncFunction"}function RQ(t){return t[Symbol.toStringTag]==="AsyncGenerator"}function IQ(t){return typeof t[Symbol.asyncIterator]=="function"}function zQ(t){if(typeof t!="function")throw new Error("expected a function");return Z0(t)?(0,_Q.default)(t):t}pt.default=zQ;pt.isAsync=Z0;pt.isAsyncGenerator=RQ;pt.isAsyncIterable=IQ});var ls=w((zp,K0)=>{"use strict";Object.defineProperty(zp,"__esModule",{value:!0});zp.default=DQ;function DQ(t,e){if(e||(e=t.length),!e)throw new Error("arity is undefined");function i(...n){return typeof n[e-1]=="function"?t.apply(this,n):new Promise((a,r)=>{n[e-1]=(s,...o)=>{if(s)return r(s);a(o.length>1?o:o[0])},t.apply(this,n)})}return i}K0.exports=zp.default});var Y0=w((Dp,Q0)=>{"use strict";Object.defineProperty(Dp,"__esModule",{value:!0});var GQ=Hp(),$Q=FC(GQ),NQ=Ja(),UQ=FC(NQ),LQ=ls(),WQ=FC(LQ);function FC(t){return t&&t.__esModule?t:{default:t}}Dp.default=(0,WQ.default)((t,e,i)=>{var n=(0,$Q.default)(e)?[]:{};t(e,(a,r,s)=>{(0,UQ.default)(a)((o,...l)=>{l.length<2&&([l]=l),n[r]=l,s(o)})},a=>i(a,n))},3);Q0.exports=Dp.default});var VC=w((Gp,X0)=>{"use strict";Object.defineProperty(Gp,"__esModule",{value:!0});Gp.default=BQ;function BQ(t){function e(...i){if(t!==null){var n=t;t=null,n.apply(this,i)}}return Object.assign(e,t),e}X0.exports=Gp.default});var iH=w(($p,eH)=>{"use strict";Object.defineProperty($p,"__esModule",{value:!0});$p.default=function(t){return t[Symbol.iterator]&&t[Symbol.iterator]()};eH.exports=$p.default});var aH=w((Np,tH)=>{"use strict";Object.defineProperty(Np,"__esModule",{value:!0});Np.default=XQ;var FQ=Hp(),VQ=nH(FQ),JQ=iH(),ZQ=nH(JQ);function nH(t){return t&&t.__esModule?t:{default:t}}function KQ(t){var e=-1,i=t.length;return function(){return++e{"use strict";Object.defineProperty(Up,"__esModule",{value:!0});Up.default=e8;function e8(t){return function(...e){if(t===null)throw new Error("Callback was already called.");var i=t;t=null,i.apply(this,e)}}rH.exports=Up.default});var Wp=w((Lp,sH)=>{"use strict";Object.defineProperty(Lp,"__esModule",{value:!0});var i8={};Lp.default=i8;sH.exports=Lp.default});var lH=w((Bp,oH)=>{"use strict";Object.defineProperty(Bp,"__esModule",{value:!0});Bp.default=r8;var n8=Wp(),t8=a8(n8);function a8(t){return t&&t.__esModule?t:{default:t}}function r8(t,e,i,n){let a=!1,r=!1,s=!1,o=0,l=0;function u(){o>=e||s||a||(s=!0,t.next().then(({value:d,done:h})=>{if(!(r||a)){if(s=!1,h){a=!0,o<=0&&n(null);return}o++,i(d,l,c),l++,u()}}).catch(p))}function c(d,h){if(o-=1,!r){if(d)return p(d);if(d===!1){a=!0,r=!0;return}if(h===t8.default||a&&o<=0)return a=!0,n(null);u()}}function p(d){r||(s=!1,a=!0,n(d))}u()}oH.exports=Bp.default});var dH=w((Fp,pH)=>{"use strict";Object.defineProperty(Fp,"__esModule",{value:!0});var s8=VC(),o8=fl(s8),l8=aH(),u8=fl(l8),c8=JC(),p8=fl(c8),uH=Ja(),d8=lH(),cH=fl(d8),h8=Wp(),g8=fl(h8);function fl(t){return t&&t.__esModule?t:{default:t}}Fp.default=t=>(e,i,n)=>{if(n=(0,o8.default)(n),t<=0)throw new RangeError("concurrency limit cannot be less than 1");if(!e)return n(null);if((0,uH.isAsyncGenerator)(e))return(0,cH.default)(e,t,i,n);if((0,uH.isAsyncIterable)(e))return(0,cH.default)(e[Symbol.asyncIterator](),t,i,n);var a=(0,u8.default)(e),r=!1,s=!1,o=0,l=!1;function u(p,d){if(!s)if(o-=1,p)r=!0,n(p);else if(p===!1)r=!0,s=!0;else{if(d===g8.default||r&&o<=0)return r=!0,n(null);l||c()}}function c(){for(l=!0;o{"use strict";Object.defineProperty(Vp,"__esModule",{value:!0});var m8=dH(),f8=ZC(m8),w8=Ja(),v8=ZC(w8),C8=ls(),A8=ZC(C8);function ZC(t){return t&&t.__esModule?t:{default:t}}function b8(t,e,i,n){return(0,f8.default)(e)(t,(0,v8.default)(i),n)}Vp.default=(0,A8.default)(b8,4);hH.exports=Vp.default});var fH=w((Jp,mH)=>{"use strict";Object.defineProperty(Jp,"__esModule",{value:!0});var y8=KC(),P8=gH(y8),j8=ls(),S8=gH(j8);function gH(t){return t&&t.__esModule?t:{default:t}}function O8(t,e,i){return(0,P8.default)(t,1,e,i)}Jp.default=(0,S8.default)(O8,3);mH.exports=Jp.default});var CH=w((Zp,vH)=>{"use strict";Object.defineProperty(Zp,"__esModule",{value:!0});Zp.default=k8;var x8=Y0(),T8=wH(x8),M8=fH(),E8=wH(M8);function wH(t){return t&&t.__esModule?t:{default:t}}function k8(t,e){return(0,T8.default)(E8.default,t,e)}vH.exports=Zp.default});var QC=w((Ele,bH)=>{"use strict";bH.exports=dt;var Kp=Ut().codes,q8=Kp.ERR_METHOD_NOT_IMPLEMENTED,_8=Kp.ERR_MULTIPLE_CALLBACK,H8=Kp.ERR_TRANSFORM_ALREADY_TRANSFORMING,R8=Kp.ERR_TRANSFORM_WITH_LENGTH_0,Qp=Va();is()(dt,Qp);function I8(t,e){var i=this._transformState;i.transforming=!1;var n=i.writecb;if(n===null)return this.emit("error",new _8);i.writechunk=null,i.writecb=null,e!=null&&this.push(e),n(t);var a=this._readableState;a.reading=!1,(a.needReadable||a.length{"use strict";PH.exports=wl;var yH=QC();is()(wl,yH);function wl(t){if(!(this instanceof wl))return new wl(t);yH.call(this,t)}wl.prototype._transform=function(t,e,i){i(null,t)}});var MH=w((qle,TH)=>{"use strict";var YC;function D8(t){var e=!1;return function(){e||(e=!0,t.apply(void 0,arguments))}}var xH=Ut().codes,G8=xH.ERR_MISSING_ARGS,$8=xH.ERR_STREAM_DESTROYED;function SH(t){if(t)throw t}function N8(t){return t.setHeader&&typeof t.abort=="function"}function U8(t,e,i,n){n=D8(n);var a=!1;t.on("close",function(){a=!0}),YC===void 0&&(YC=yp()),YC(t,{readable:e,writable:i},function(s){if(s)return n(s);a=!0,n()});var r=!1;return function(s){if(!a&&!r){if(r=!0,N8(t))return t.abort();if(typeof t.destroy=="function")return t.destroy();n(s||new $8("pipe"))}}}function OH(t){t()}function L8(t,e){return t.pipe(e)}function W8(t){return!t.length||typeof t[t.length-1]!="function"?SH:t.pop()}function B8(){for(var t=arguments.length,e=new Array(t),i=0;i0;return U8(s,l,u,function(c){a||(a=c),c&&r.forEach(OH),!l&&(r.forEach(OH),n(a))})});return e.reduce(L8)}TH.exports=B8});var Za=w((fn,Cl)=>{var vl=require("stream");process.env.READABLE_STREAM==="disable"&&vl?(Cl.exports=vl.Readable,Object.assign(Cl.exports,vl),Cl.exports.Stream=vl):(fn=Cl.exports=zC(),fn.Stream=vl||fn,fn.Readable=fn,fn.Writable=Ep(),fn.Duplex=Va(),fn.Transform=QC(),fn.PassThrough=jH(),fn.finished=yp(),fn.pipeline=MH())});var rA=w((_le,kH)=>{var us=[],Al=[],XC=function(){};function iA(t){return~us.indexOf(t)?!1:(us.push(t),!0)}function nA(t){XC=t}function F8(t){for(var e=[],i=0;i{var Z8=rA(),K8=Z8(function t(e,i){return i=i||{},i.namespace=e,i.prod=!0,i.dev=!1,i.force||t.force?t.yep(i):t.nope(i)});qH.exports=K8});var GH=w((Rle,DH)=>{"use strict";var Vn={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]},RH=Object.create(null);for(let t in Vn)Object.hasOwn(Vn,t)&&(RH[Vn[t]]=t);var ci={to:{},get:{}};ci.get=function(t){let e=t.slice(0,3).toLowerCase(),i,n;switch(e){case"hsl":{i=ci.get.hsl(t),n="hsl";break}case"hwb":{i=ci.get.hwb(t),n="hwb";break}default:{i=ci.get.rgb(t),n="rgb";break}}return i?{model:n,value:i}:null};ci.get.rgb=function(t){if(!t)return null;let e=/^#([a-f\d]{3,4})$/i,i=/^#([a-f\d]{6})([a-f\d]{2})?$/i,n=/^rgba?\(\s*([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)\s*(?:[\s,|/]\s*([+-]?[\d.]+)(%?)\s*)?\)$/,a=/^rgba?\(\s*([+-]?[\d.]+)%\s*,?\s*([+-]?[\d.]+)%\s*,?\s*([+-]?[\d.]+)%\s*(?:[\s,|/]\s*([+-]?[\d.]+)(%?)\s*)?\)$/,r=/^(\w+)$/,s=[0,0,0,1],o,l,u;if(o=t.match(i)){for(u=o[2],o=o[1],l=0;l<3;l++){let c=l*2;s[l]=Number.parseInt(o.slice(c,c+2),16)}u&&(s[3]=Number.parseInt(u,16)/255)}else if(o=t.match(e)){for(o=o[1],u=o[3],l=0;l<3;l++)s[l]=Number.parseInt(o[l]+o[l],16);u&&(s[3]=Number.parseInt(u+u,16)/255)}else if(o=t.match(n)){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(Vn,o[1])?(s=Vn[o[1]],s[3]=1,s):null:null;for(l=0;l<3;l++)s[l]=Jt(s[l],0,255);return s[3]=Jt(s[3],0,1),s};ci.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*)?\)$/,i=t.match(e);if(i){let n=Number.parseFloat(i[4]),a=(Number.parseFloat(i[1])%360+360)%360,r=Jt(Number.parseFloat(i[2]),0,100),s=Jt(Number.parseFloat(i[3]),0,100),o=Jt(Number.isNaN(n)?1:n,0,1);return[a,r,s,o]}return null};ci.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*)?\)$/,i=t.match(e);if(i){let n=Number.parseFloat(i[4]),a=(Number.parseFloat(i[1])%360+360)%360,r=Jt(Number.parseFloat(i[2]),0,100),s=Jt(Number.parseFloat(i[3]),0,100),o=Jt(Number.isNaN(n)?1:n,0,1);return[a,r,s,o]}return null};ci.to.hex=function(...t){return"#"+Yp(t[0])+Yp(t[1])+Yp(t[2])+(t[3]<1?Yp(Math.round(t[3]*255)):"")};ci.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]+")"};ci.to.rgb.percent=function(...t){let e=Math.round(t[0]/255*100),i=Math.round(t[1]/255*100),n=Math.round(t[2]/255*100);return t.length<4||t[3]===1?"rgb("+e+"%, "+i+"%, "+n+"%)":"rgba("+e+"%, "+i+"%, "+n+"%, "+t[3]+")"};ci.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]+")"};ci.to.hwb=function(...t){let e="";return t.length>=4&&t[3]!==1&&(e=", "+t[3]),"hwb("+t[0]+", "+t[1]+"%, "+t[2]+"%"+e+")"};ci.to.keyword=function(...t){return RH[t.slice(0,3)]};function Jt(t,e,i){return Math.min(Math.max(e,t),i)}function Yp(t){let e=Math.round(t).toString(16).toUpperCase();return e.length<2?"0"+e:e}var IH={};for(let t of Object.keys(Vn))IH[Vn[t]]=t;var H={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},oklab:{channels:3,labels:["okl","oka","okb"]},lch:{channels:3,labels:"lch"},oklch:{channels:3,labels:["okl","okc","okh"]},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}},ht=(6/29)**3;function cs(t){let e=t>.0031308?1.055*t**.4166666666666667-.055:t*12.92;return Math.min(Math.max(0,e),1)}function ps(t){return t>.04045?((t+.055)/1.055)**2.4:t/12.92}for(let t of Object.keys(H)){if(!("channels"in H[t]))throw new Error("missing channels property: "+t);if(!("labels"in H[t]))throw new Error("missing channel labels property: "+t);if(H[t].labels.length!==H[t].channels)throw new Error("channel and label counts mismatch: "+t);let{channels:e,labels:i}=H[t];delete H[t].channels,delete H[t].labels,Object.defineProperty(H[t],"channels",{value:e}),Object.defineProperty(H[t],"labels",{value:i})}H.rgb.hsl=function(t){let e=t[0]/255,i=t[1]/255,n=t[2]/255,a=Math.min(e,i,n),r=Math.max(e,i,n),s=r-a,o,l;switch(r){case a:{o=0;break}case e:{o=(i-n)/s;break}case i:{o=2+(n-e)/s;break}case n:{o=4+(e-i)/s;break}}o=Math.min(o*60,360),o<0&&(o+=360);let u=(a+r)/2;return r===a?l=0:u<=.5?l=s/(r+a):l=s/(2-r-a),[o,l*100,u*100]};H.rgb.hsv=function(t){let e,i,n,a,r,s=t[0]/255,o=t[1]/255,l=t[2]/255,u=Math.max(s,o,l),c=u-Math.min(s,o,l),p=function(d){return(u-d)/6/c+1/2};if(c===0)a=0,r=0;else{switch(r=c/u,e=p(s),i=p(o),n=p(l),u){case s:{a=n-i;break}case o:{a=1/3+e-n;break}case l:{a=2/3+i-e;break}}a<0?a+=1:a>1&&(a-=1)}return[a*360,r*100,u*100]};H.rgb.hwb=function(t){let e=t[0],i=t[1],n=t[2],a=H.rgb.hsl(t)[0],r=1/255*Math.min(e,Math.min(i,n));return n=1-1/255*Math.max(e,Math.max(i,n)),[a,r*100,n*100]};H.rgb.oklab=function(t){let e=ps(t[0]/255),i=ps(t[1]/255),n=ps(t[2]/255),a=Math.cbrt(.4122214708*e+.5363325363*i+.0514459929*n),r=Math.cbrt(.2119034982*e+.6806995451*i+.1073969566*n),s=Math.cbrt(.0883024619*e+.2817188376*i+.6299787005*n),o=.2104542553*a+.793617785*r-.0040720468*s,l=1.9779984951*a-2.428592205*r+.4505937099*s,u=.0259040371*a+.7827717662*r-.808675766*s;return[o*100,l*100,u*100]};H.rgb.cmyk=function(t){let e=t[0]/255,i=t[1]/255,n=t[2]/255,a=Math.min(1-e,1-i,1-n),r=(1-e-a)/(1-a)||0,s=(1-i-a)/(1-a)||0,o=(1-n-a)/(1-a)||0;return[r*100,s*100,o*100,a*100]};function Q8(t,e){return(t[0]-e[0])**2+(t[1]-e[1])**2+(t[2]-e[2])**2}H.rgb.keyword=function(t){let e=IH[t];if(e)return e;let i=Number.POSITIVE_INFINITY,n;for(let a of Object.keys(Vn)){let r=Vn[a],s=Q8(t,r);sht?i**(1/3):7.787*i+16/116,n=n>ht?n**(1/3):7.787*n+16/116,a=a>ht?a**(1/3):7.787*a+16/116;let r=116*n-16,s=500*(i-n),o=200*(n-a);return[r,s,o]};H.hsl.rgb=function(t){let e=t[0]/360,i=t[1]/100,n=t[2]/100,a,r;if(i===0)return r=n*255,[r,r,r];let s=n<.5?n*(1+i):n+i-n*i,o=2*n-s,l=[0,0,0];for(let u=0;u<3;u++)a=e+1/3*-(u-1),a<0&&a++,a>1&&a--,6*a<1?r=o+(s-o)*6*a:2*a<1?r=s:3*a<2?r=o+(s-o)*(2/3-a)*6:r=o,l[u]=r*255;return l};H.hsl.hsv=function(t){let e=t[0],i=t[1]/100,n=t[2]/100,a=i,r=Math.max(n,.01);n*=2,i*=n<=1?n:2-n,a*=r<=1?r:2-r;let s=(n+i)/2,o=n===0?2*a/(r+a):2*i/(n+i);return[e,o*100,s*100]};H.hsv.rgb=function(t){let e=t[0]/60,i=t[1]/100,n=t[2]/100,a=Math.floor(e)%6,r=e-Math.floor(e),s=255*n*(1-i),o=255*n*(1-i*r),l=255*n*(1-i*(1-r));switch(n*=255,a){case 0:return[n,l,s];case 1:return[o,n,s];case 2:return[s,n,l];case 3:return[s,o,n];case 4:return[l,s,n];case 5:return[n,s,o]}};H.hsv.hsl=function(t){let e=t[0],i=t[1]/100,n=t[2]/100,a=Math.max(n,.01),r,s;s=(2-i)*n;let o=(2-i)*a;return r=i*a,r/=o<=1?o:2-o,r=r||0,s/=2,[e,r*100,s*100]};H.hwb.rgb=function(t){let e=t[0]/360,i=t[1]/100,n=t[2]/100,a=i+n,r;a>1&&(i/=a,n/=a);let s=Math.floor(6*e),o=1-n;r=6*e-s,(s&1)!==0&&(r=1-r);let l=i+r*(o-i),u,c,p;switch(s){default:case 6:case 0:{u=o,c=l,p=i;break}case 1:{u=l,c=o,p=i;break}case 2:{u=i,c=o,p=l;break}case 3:{u=i,c=l,p=o;break}case 4:{u=l,c=i,p=o;break}case 5:{u=o,c=i,p=l;break}}return[u*255,c*255,p*255]};H.cmyk.rgb=function(t){let e=t[0]/100,i=t[1]/100,n=t[2]/100,a=t[3]/100,r=1-Math.min(1,e*(1-a)+a),s=1-Math.min(1,i*(1-a)+a),o=1-Math.min(1,n*(1-a)+a);return[r*255,s*255,o*255]};H.xyz.rgb=function(t){let e=t[0]/100,i=t[1]/100,n=t[2]/100,a,r,s;return a=e*3.2404542+i*-1.5371385+n*-.4985314,r=e*-.969266+i*1.8760108+n*.041556,s=e*.0556434+i*-.2040259+n*1.0572252,a=cs(a),r=cs(r),s=cs(s),[a*255,r*255,s*255]};H.xyz.lab=function(t){let e=t[0],i=t[1],n=t[2];e/=95.047,i/=100,n/=108.883,e=e>ht?e**(1/3):7.787*e+16/116,i=i>ht?i**(1/3):7.787*i+16/116,n=n>ht?n**(1/3):7.787*n+16/116;let a=116*i-16,r=500*(e-i),s=200*(i-n);return[a,r,s]};H.xyz.oklab=function(t){let e=t[0]/100,i=t[1]/100,n=t[2]/100,a=Math.cbrt(.8189330101*e+.3618667424*i-.1288597137*n),r=Math.cbrt(.0329845436*e+.9293118715*i+.0361456387*n),s=Math.cbrt(.0482003018*e+.2643662691*i+.633851707*n),o=.2104542553*a+.793617785*r-.0040720468*s,l=1.9779984951*a-2.428592205*r+.4505937099*s,u=.0259040371*a+.7827717662*r-.808675766*s;return[o*100,l*100,u*100]};H.oklab.oklch=function(t){return H.lab.lch(t)};H.oklab.xyz=function(t){let e=t[0]/100,i=t[1]/100,n=t[2]/100,a=(.999999998*e+.396337792*i+.215803758*n)**3,r=(1.000000008*e-.105561342*i-.063854175*n)**3,s=(1.000000055*e-.089484182*i-1.291485538*n)**3,o=1.227013851*a-.55779998*r+.281256149*s,l=-.040580178*a+1.11225687*r-.071676679*s,u=-.076381285*a-.421481978*r+1.58616322*s;return[o*100,l*100,u*100]};H.oklab.rgb=function(t){let e=t[0]/100,i=t[1]/100,n=t[2]/100,a=(e+.3963377774*i+.2158037573*n)**3,r=(e-.1055613458*i-.0638541728*n)**3,s=(e-.0894841775*i-1.291485548*n)**3,o=cs(4.0767416621*a-3.3077115913*r+.2309699292*s),l=cs(-1.2684380046*a+2.6097574011*r-.3413193965*s),u=cs(-.0041960863*a-.7034186147*r+1.707614701*s);return[o*255,l*255,u*255]};H.oklch.oklab=function(t){return H.lch.lab(t)};H.lab.xyz=function(t){let e=t[0],i=t[1],n=t[2],a,r,s;r=(e+16)/116,a=i/500+r,s=r-n/200;let o=r**3,l=a**3,u=s**3;return r=o>ht?o:(r-16/116)/7.787,a=l>ht?l:(a-16/116)/7.787,s=u>ht?u:(s-16/116)/7.787,a*=95.047,r*=100,s*=108.883,[a,r,s]};H.lab.lch=function(t){let e=t[0],i=t[1],n=t[2],a;a=Math.atan2(n,i)*360/2/Math.PI,a<0&&(a+=360);let s=Math.sqrt(i*i+n*n);return[e,s,a]};H.lch.lab=function(t){let e=t[0],i=t[1],a=t[2]/360*2*Math.PI,r=i*Math.cos(a),s=i*Math.sin(a);return[e,r,s]};H.rgb.ansi16=function(t,e=null){let[i,n,a]=t,r=e===null?H.rgb.hsv(t)[2]:e;if(r=Math.round(r/50),r===0)return 30;let s=30+(Math.round(a/255)<<2|Math.round(n/255)<<1|Math.round(i/255));return r===2&&(s+=60),s};H.hsv.ansi16=function(t){return H.rgb.ansi16(H.hsv.rgb(t),t[2])};H.rgb.ansi256=function(t){let e=t[0],i=t[1],n=t[2];return e>>4===i>>4&&i>>4===n>>4?e<8?16:e>248?231:Math.round((e-8)/247*24)+232:16+36*Math.round(e/255*5)+6*Math.round(i/255*5)+Math.round(n/255*5)};H.ansi16.rgb=function(t){t=t[0];let e=t%10;if(e===0||e===7)return t>50&&(e+=3.5),e=e/10.5*255,[e,e,e];let i=(Math.trunc(t>50)+1)*.5,n=(e&1)*i*255,a=(e>>1&1)*i*255,r=(e>>2&1)*i*255;return[n,a,r]};H.ansi256.rgb=function(t){if(t=t[0],t>=232){let r=(t-232)*10+8;return[r,r,r]}t-=16;let e,i=Math.floor(t/36)/5*255,n=Math.floor((e=t%36)/6)/5*255,a=e%6/5*255;return[i,n,a]};H.rgb.hex=function(t){let i=(((Math.round(t[0])&255)<<16)+((Math.round(t[1])&255)<<8)+(Math.round(t[2])&255)).toString(16).toUpperCase();return"000000".slice(i.length)+i};H.hex.rgb=function(t){let e=t.toString(16).match(/[a-f\d]{6}|[a-f\d]{3}/i);if(!e)return[0,0,0];let i=e[0];e[0].length===3&&(i=[...i].map(o=>o+o).join(""));let n=Number.parseInt(i,16),a=n>>16&255,r=n>>8&255,s=n&255;return[a,r,s]};H.rgb.hcg=function(t){let e=t[0]/255,i=t[1]/255,n=t[2]/255,a=Math.max(Math.max(e,i),n),r=Math.min(Math.min(e,i),n),s=a-r,o,l=s<1?r/(1-s):0;return s<=0?o=0:a===e?o=(i-n)/s%6:a===i?o=2+(n-e)/s:o=4+(e-i)/s,o/=6,o%=1,[o*360,s*100,l*100]};H.hsl.hcg=function(t){let e=t[1]/100,i=t[2]/100,n=i<.5?2*e*i:2*e*(1-i),a=0;return n<1&&(a=(i-.5*n)/(1-n)),[t[0],n*100,a*100]};H.hsv.hcg=function(t){let e=t[1]/100,i=t[2]/100,n=e*i,a=0;return n<1&&(a=(i-n)/(1-n)),[t[0],n*100,a*100]};H.hcg.rgb=function(t){let e=t[0]/360,i=t[1]/100,n=t[2]/100;if(i===0)return[n*255,n*255,n*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-i)*n,[(i*a[0]+l)*255,(i*a[1]+l)*255,(i*a[2]+l)*255]};H.hcg.hsv=function(t){let e=t[1]/100,i=t[2]/100,n=e+i*(1-e),a=0;return n>0&&(a=e/n),[t[0],a*100,n*100]};H.hcg.hsl=function(t){let e=t[1]/100,n=t[2]/100*(1-e)+.5*e,a=0;return n>0&&n<.5?a=e/(2*n):n>=.5&&n<1&&(a=e/(2*(1-n))),[t[0],a*100,n*100]};H.hcg.hwb=function(t){let e=t[1]/100,i=t[2]/100,n=e+i*(1-e);return[t[0],(n-e)*100,(1-n)*100]};H.hwb.hcg=function(t){let e=t[1]/100,n=1-t[2]/100,a=n-e,r=0;return a<1&&(r=(n-a)/(1-a)),[t[0],a*100,r*100]};H.apple.rgb=function(t){return[t[0]/65535*255,t[1]/65535*255,t[2]/65535*255]};H.rgb.apple=function(t){return[t[0]/255*65535,t[1]/255*65535,t[2]/255*65535]};H.gray.rgb=function(t){return[t[0]/100*255,t[0]/100*255,t[0]/100*255]};H.gray.hsl=function(t){return[0,0,t[0]]};H.gray.hsv=H.gray.hsl;H.gray.hwb=function(t){return[0,100,t[0]]};H.gray.cmyk=function(t){return[0,0,0,t[0]]};H.gray.lab=function(t){return[t[0],0,0]};H.gray.hex=function(t){let e=Math.round(t[0]/100*255)&255,n=((e<<16)+(e<<8)+e).toString(16).toUpperCase();return"000000".slice(n.length)+n};H.rgb.gray=function(t){return[(t[0]+t[1]+t[2])/3/255*100]};function Y8(){let t={},e=Object.keys(H);for(let{length:i}=e,n=0;n0;){let n=i.pop(),a=Object.keys(H[n]);for(let{length:r}=a,s=0;s1&&(i=n),t(i))};return"conversion"in t&&(e.conversion=t.conversion),e}function r7(t){let e=function(...i){let n=i[0];if(n==null)return n;n.length>1&&(i=n);let a=t(i);if(typeof a=="object")for(let{length:r}=a,s=0;s0){this.model=e||"rgb",n=fi[this.model].channels;let a=Array.prototype.slice.call(t,0,n);this.color=lA(a,n),this.valpha=typeof t[n]=="number"?t[n]: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 sA))throw new Error("Unable to parse color from object: "+JSON.stringify(t));this.model=sA[r];let{labels:s}=fi[this.model],o=[];for(i=0;i(t%360+360)%360),saturationl:Xe("hsl",1,li(100)),lightness:Xe("hsl",2,li(100)),saturationv:Xe("hsv",1,li(100)),value:Xe("hsv",2,li(100)),chroma:Xe("hcg",1,li(100)),gray:Xe("hcg",2,li(100)),white:Xe("hwb",1,li(100)),wblack:Xe("hwb",2,li(100)),cyan:Xe("cmyk",0,li(100)),magenta:Xe("cmyk",1,li(100)),yellow:Xe("cmyk",2,li(100)),black:Xe("cmyk",3,li(100)),x:Xe("xyz",0,li(95.047)),y:Xe("xyz",1,li(100)),z:Xe("xyz",2,li(108.833)),l:Xe("lab",0,li(100)),a:Xe("lab",1),b:Xe("lab",2),keyword(t){return t!==void 0?new ui(t):fi[this.model].keyword(this.color)},hex(t){return t!==void 0?new ui(t):ci.to.hex(...this.rgb().round().color)},hexa(t){if(t!==void 0)return new ui(t);let e=this.rgb().round().color,i=Math.round(this.valpha*255).toString(16).toUpperCase();return i.length===1&&(i="0"+i),ci.to.hex(...e)+i},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[i,n]of t.entries()){let a=n/255;e[i]=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(),i=t.luminosity();return e>i?(e+.05)/(i+.05):(i+.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 ui.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(),i=e.color[0];return i=(i+t)%360,i=i<0?360+i:i,e.color[0]=i,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 i=t.rgb(),n=this.rgb(),a=e===void 0?.5:e,r=2*a-1,s=i.alpha()-n.alpha(),o=((r*s===-1?r:(r+s)/(1+r*s))+1)/2,l=1-o;return ui.rgb(o*i.red()+l*n.red(),o*i.green()+l*n.green(),o*i.blue()+l*n.blue(),i.alpha()*a+n.alpha()*(1-a))}};for(let t of Object.keys(fi)){if(zH.includes(t))continue;let{channels:e}=fi[t];ui.prototype[t]=function(...i){return this.model===t?new ui(this):i.length>0?new ui(i,t):new ui([...l7(fi[this.model][t].raw(this.color)),this.valpha],t)},ui[t]=function(...i){let n=i[0];return typeof n=="number"&&(n=lA(i,e)),new ui(n,t)}}function s7(t,e){return Number(t.toFixed(e))}function o7(t){return function(e){return s7(e,t)}}function Xe(t,e,i){t=Array.isArray(t)?t:[t];for(let n of t)(oA[n]||=[])[e]=i;return t=t[0],function(n){let a;return n!==void 0?(i&&(n=i(n)),a=this[t](),a.color[e]=n,a):(a=this[t]().color[e],i&&(a=i(a)),a)}}function li(t){return function(e){return Math.max(0,Math.min(t,e))}}function l7(t){return Array.isArray(t)?t:[t]}function lA(t,e){for(let i=0;i{"use strict";function En(t,e){if(e)return new En(t).style(e);if(!(this instanceof En))return new En(t);this.text=t}En.prototype.prefix="\x1B[";En.prototype.suffix="m";En.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 i=e.substring(0,2),n=e.substring(2,4),a=e.substring(4,6);return[parseInt(i,16),parseInt(n,16),parseInt(a,16)]};En.prototype.rgb=function(e,i,n){var a=e/255*5,r=i/255*5,s=n/255*5;return this.ansi(a,r,s)};En.prototype.ansi=function(e,i,n){var a=Math.round(e),r=Math.round(i),s=Math.round(n);return 16+a*36+r*6+s};En.prototype.reset=function(){return this.prefix+"39;49"+this.suffix};En.prototype.style=function(e){return this.prefix+"38;5;"+this.rgb.apply(this,this.hex(e))+this.suffix+this.text+this.reset()};$H.exports=En});var LH=w((zle,UH)=>{var d7=GH(),h7=NH();UH.exports=function(e,i){var n=i.namespace,a=i.colors!==!1?h7(n+":",d7(n)):n+":";return e[0]=a+" "+e[0],e}});var BH=w((Dle,WH)=>{"use strict";WH.exports=function(e,i){if(!i)return!1;for(var n=i.split(/[\s,]+/),a=0;a{var g7=BH();FH.exports=function(e){return function(n){try{return g7(n,e())}catch{}return!1}}});var ZH=w(($le,JH)=>{var m7=VH();JH.exports=m7(function(){return process.env.DEBUG||process.env.DIAGNOSTICS})});var QH=w((Nle,KH)=>{KH.exports=function(t,e){try{Function.prototype.apply.call(console.log,console,e)}catch{}}});var XH=w((Ule,YH)=>{var f7=rA(),w7=require("tty").isatty(1),Xp=f7(function t(e,i){return i=i||{},i.colors="colors"in i?i.colors:w7,i.namespace=e,i.prod=!1,i.dev=!0,!t.enabled(e)&&!(i.force||t.force)?t.nope(i):t.yep(i)});Xp.modify(LH());Xp.use(ZH());Xp.set(QH());YH.exports=Xp});var bl=w((Lle,uA)=>{process.env.NODE_ENV==="production"?uA.exports=_H():uA.exports=XH()});var iR=w((Wle,eR)=>{"use strict";var cA=require("fs"),{StringDecoder:v7}=require("string_decoder"),{Stream:C7}=Za();function A7(){}eR.exports=(t,e)=>{let i=Buffer.alloc(65536),n=new v7("utf8"),a=new C7,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")},cA.open(t.file,"a+","0644",(l,u)=>{if(l){e?e(l):a.emit("error",l),a.destroy();return}(function c(){if(a.destroyed){cA.close(u,A7);return}return cA.read(u,i,0,i.length,s,(p,d)=>{if(p){e?e(p):a.emit("error",p),a.destroy();return}if(!d)return r&&((t.start==null||o>t.start)&&(e?e(null,r):a.emit("line",r)),o++,r=""),setTimeout(c,1e3);let h=n.write(i.slice(0,d));e||a.emit("data",h),h=(r+h).split(/\n+/);let g=h.length-1,m=0;for(;mt.start)&&(e?e(null,h[m]):a.emit("line",h[m])),o++;return r=h[g],s+=d,c()})})()}),e?a.destroy:a}});var rR=w((Fle,aR)=>{"use strict";var Ki=require("fs"),wi=require("path"),nR=CH(),b7=require("zlib"),{MESSAGE:y7}=ri(),{Stream:P7,PassThrough:tR}=Za(),j7=ss(),kn=bl()("winston:file"),S7=require("os"),O7=iR();aR.exports=class extends j7{constructor(e={}){super(e),this.name=e.name||"file";function i(n,...a){a.slice(1).forEach(r=>{if(e[r])throw new Error(`Cannot set ${r} and ${n} together`)})}if(this._stream=new tR,this._stream.setMaxListeners(30),this._onError=this._onError.bind(this),e.filename||e.dirname)i("filename or dirname","stream"),this._basename=this.filename=e.filename?wi.basename(e.filename):"winston.log",this.dirname=e.dirname||wi.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"),i("stream","filename","maxsize"),this._dest=this._stream.pipe(this._setupStream(e.stream)),this.dirname=wi.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:S7.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,i=()=>{}){if(this.silent)return i(),!0;if(this._drain){this._stream.once("drain",()=>{this._drain=!1,this.log(e,i)});return}if(this._rotate){this._stream.once("rotate",()=>{this._rotate=!1,this.log(e,i)});return}if(this.lazy){if(!this._fileExist){this._opening||this.open(),this.once("open",()=>{this._fileExist=!0,this.log(e,i)});return}if(this._needsNewFile(this._pendingSize)){this._dest.once("close",()=>{this._opening||this.open(),this.once("open",()=>{this.log(e,i)})});return}}let n=`${e[y7]}${this.eol}`,a=Buffer.byteLength(n);function r(){if(this._size+=a,this._pendingSize-=a,kn("logged %s %s",this._size,n),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(n,r.bind(this));return s?i():(this._drain=!0,this._stream.once("drain",()=>{this._drain=!1,i()})),kn("written",s,this._drain),this.finishIfEnding(),s}query(e,i){typeof e=="function"&&(i=e,e={}),e=p(e);let n=wi.join(this.dirname,this.filename),a="",r=[],s=0,o=Ki.createReadStream(n,{encoding:"utf8"});o.on("error",d=>{if(o.readable&&o.destroy(),!!i)return d.code!=="ENOENT"?i(d):i(null,r)}),o.on("data",d=>{d=(a+d).split(/\n+/);let h=d.length-1,g=0;for(;g=e.start)&&l(d[g]),s++;a=d[h]}),o.on("close",()=>{a&&l(a,!0),e.order==="desc"&&(r=r.reverse()),i&&i(null,r)});function l(d,h){try{let g=JSON.parse(d);c(g)&&u(g)}catch(g){h||o.emit("error",g)}}function u(d){if(e.rows&&r.length>=e.rows&&e.order!=="desc"){o.readable&&o.destroy();return}e.fields&&(d=e.fields.reduce((h,g)=>(h[g]=d[g],h),{})),e.order==="desc"&&r.length>=e.rows&&r.shift(),r.push(d)}function c(d){if(!d||typeof d!="object")return;let h=new Date(d.timestamp);if(!(e.from&&he.until||e.level&&e.level!==d.level))return!0}function p(d){return d=d||{},d.rows=d.rows||d.limit||10,d.start=d.start||0,d.until=d.until||new Date,typeof d.until!="object"&&(d.until=new Date(d.until)),d.from=d.from||d.until-1440*60*1e3,typeof d.from!="object"&&(d.from=new Date(d.from)),d.order=d.order||"desc",d}}stream(e={}){let i=wi.join(this.dirname,this.filename),n=new P7,a={file:i,start:e.start};return n.destroy=O7(a,(r,s)=>{if(r)return n.emit("error",r);try{n.emit("data",s),s=JSON.parse(s),n.emit("log",s)}catch(o){n.emit("error",o)}}),n}open(){this.filename&&(this._opening||(this._opening=!0,this.stat((e,i)=>{if(e)return this.emit("error",e);kn("stat done: %s { size: %s }",this.filename,i),this._size=i,this._dest=this._createStream(this._stream),this._opening=!1,this.once("open",()=>{this._stream.emit("rotate")||(this._rotate=!1)})})))}stat(e){let i=this._getFile(),n=wi.join(this.dirname,i);Ki.stat(n,(a,r)=>{if(a&&a.code==="ENOENT")return kn("ENOENT\xA0ok",n),this.filename=i,e(null,0);if(a)return kn(`err ${a.code} ${n}`),e(a);if(!r||this._needsNewFile(r.size))return this._incFile(()=>this.stat(e));this.filename=i,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 i=wi.join(this.dirname,this.filename);kn("create stream start",i,this.options);let n=Ki.createWriteStream(i,this.options).on("error",a=>kn(a)).on("close",()=>kn("close",n.path,n.bytesWritten)).on("open",()=>{kn("file open ok",i),this.emit("open",i),e.pipe(n),this.rotatedWhileOpening&&(this._stream=new tR,this._stream.setMaxListeners(30),this._rotateFile(),this.rotatedWhileOpening=!1,this._cleanupStream(n),e.end())});return kn("create stream ok",i),n}_incFile(e){kn("_incFile",this.filename);let i=wi.extname(this._basename),n=wi.basename(this._basename,i),a=[];this.zippedArchive&&a.push(function(r){let s=this._created>0&&!this.tailable?this._created:"";this._compressFile(wi.join(this.dirname,`${n}${s}${i}`),wi.join(this.dirname,`${n}${s}${i}.gz`),r)}.bind(this)),a.push(function(r){this.tailable?this._checkMaxFilesTailable(i,n,r):(this._created+=1,this._checkMaxFilesIncrementing(i,n,r))}.bind(this)),nR(a,e)}_getFile(){let e=wi.extname(this._basename),i=wi.basename(this._basename,e),n=this.rotationFormat?this.rotationFormat():this._created;return!this.tailable&&this._created?`${i}${n}${e}`:`${i}${e}`}_checkMaxFilesIncrementing(e,i,n){if(!this.maxFiles||this._created1;s--)a.push(function(o,l){let u=`${i}${o-1}${e}${r}`,c=wi.join(this.dirname,u);Ki.exists(c,p=>{if(!p)return l(null);u=`${i}${o}${e}${r}`,Ki.rename(c,wi.join(this.dirname,u),l)})}.bind(this,s));nR(a,()=>{Ki.rename(wi.join(this.dirname,`${i}${e}${r}`),wi.join(this.dirname,`${i}1${e}${r}`),n)})}_compressFile(e,i,n){Ki.access(e,Ki.F_OK,a=>{if(a)return n();var r=b7.createGzip(),s=Ki.createReadStream(e),o=Ki.createWriteStream(i);o.on("finish",()=>{Ki.unlink(e,n)}),s.pipe(r).pipe(o)})}_createLogDirIfNotExist(e){Ki.existsSync(e)||Ki.mkdirSync(e,{recursive:!0})}}});var oR=w((Jle,sR)=>{"use strict";var x7=require("http"),T7=require("https"),{Stream:M7}=Za(),E7=ss(),{configure:k7}=rl();sR.exports=class extends E7{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,i){this._request(e,null,null,(n,a)=>{a&&a.statusCode!==200&&(n=new Error(`Invalid HTTP Status Code: ${a.statusCode}`)),n?this.emit("warn",n):this.emit("logged",e)}),i&&setImmediate(i)}query(e,i){typeof e=="function"&&(i=e,e={}),e={method:"query",params:this.normalizeQuery(e)};let n=e.params.auth||null;delete e.params.auth;let a=e.params.path||null;delete e.params.path,this._request(e,n,a,(r,s,o)=>{if(s&&s.statusCode!==200&&(r=new Error(`Invalid HTTP Status Code: ${s.statusCode}`)),r)return i(r);if(typeof o=="string")try{o=JSON.parse(o)}catch(l){return i(l)}i(null,o)})}stream(e={}){let i=new M7;e={method:"stream",params:e};let n=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,n);return i.destroy=()=>s.destroy(),s.on("data",o=>{o=(r+o).split(/\n+/);let l=o.length-1,u=0;for(;ui.emit("error",o)),i}_request(e,i,n,a){e=e||{},i=i||this.auth,n=n||this.path||"",this.batch?this._doBatch(e,a,i,n):this._doRequest(e,a,i,n)}_doBatch(e,i,n,a){if(this.batchOptions.push(e),this.batchOptions.length===1){let r=this;this.batchCallback=i,this.batchTimeoutID=setTimeout(function(){r.batchTimeoutID=-1,r._doBatchRequest(r.batchCallback,n,a)},this.batchInterval)}this.batchOptions.length===this.batchCount&&this._doBatchRequest(this.batchCallback,n,a)}_doBatchRequest(e,i,n){this.batchTimeoutID>0&&(clearTimeout(this.batchTimeoutID),this.batchTimeoutID=-1);let a=this.batchOptions.slice();this.batchOptions=[],this._doRequest(a,e,i,n)}_doRequest(e,i,n,a){let r=Object.assign({},this.headers);n&&n.bearer&&(r.Authorization=`Bearer ${n.bearer}`);let s=(this.ssl?T7:x7).request({...this.options,method:"POST",host:this.host,port:this.port,path:`/${a.replace(/^\//,"")}`,headers:r,auth:n&&n.username&&n.password?`${n.username}:${n.password}`:"",agent:this.agent});s.on("error",i),s.on("response",l=>l.on("end",()=>i(null,l)).resume());let o=k7({...this.maximumDepth&&{maximumDepth:this.maximumDepth}});s.end(Buffer.from(o(e,this.options.replacer),"utf8"))}}});var pA=w((Zle,lR)=>{"use strict";var Jn=t=>t!==null&&typeof t=="object"&&typeof t.pipe=="function";Jn.writable=t=>Jn(t)&&t.writable!==!1&&typeof t._write=="function"&&typeof t._writableState=="object";Jn.readable=t=>Jn(t)&&t.readable!==!1&&typeof t._read=="function"&&typeof t._readableState=="object";Jn.duplex=t=>Jn.writable(t)&&Jn.readable(t);Jn.transform=t=>Jn.duplex(t)&&typeof t._transform=="function";lR.exports=Jn});var cR=w((Qle,uR)=>{"use strict";var q7=pA(),{MESSAGE:_7}=ri(),H7=require("os"),R7=ss();uR.exports=class extends R7{constructor(e={}){if(super(e),!e.stream||!q7(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:H7.EOL}log(e,i){if(setImmediate(()=>this.emit("logged",e)),this.isObjectMode){this._stream.write(e),i&&i();return}this._stream.write(`${e[_7]}${this.eol}`),i&&i()}}});var pR=w(yl=>{"use strict";Object.defineProperty(yl,"Console",{configurable:!0,enumerable:!0,get(){return z0()}});Object.defineProperty(yl,"File",{configurable:!0,enumerable:!0,get(){return rR()}});Object.defineProperty(yl,"Http",{configurable:!0,enumerable:!0,get(){return oR()}});Object.defineProperty(yl,"Stream",{configurable:!0,enumerable:!0,get(){return cR()}})});var id=w(Pl=>{"use strict";var ed=hC(),{configs:dA}=ri();Pl.cli=ed.levels(dA.cli);Pl.npm=ed.levels(dA.npm);Pl.syslog=ed.levels(dA.syslog);Pl.addColors=ed.levels});var hR=w((nd,dR)=>{"use strict";Object.defineProperty(nd,"__esModule",{value:!0});var I7=Hp(),z7=Ka(I7),D7=Wp(),G7=Ka(D7),$7=KC(),N7=Ka($7),U7=VC(),L7=Ka(U7),W7=JC(),B7=Ka(W7),F7=Ja(),V7=Ka(F7),J7=ls(),Z7=Ka(J7);function Ka(t){return t&&t.__esModule?t:{default:t}}function K7(t,e,i){i=(0,L7.default)(i);var n=0,a=0,{length:r}=t,s=!1;r===0&&i(null);function o(l,u){l===!1&&(s=!0),s!==!0&&(l?i(l):(++a===r||u===G7.default)&&i(null))}for(;n{"use strict";Object.defineProperty(td,"__esModule",{value:!0});td.default=X7;function X7(t){return(e,i,n)=>t(e,n)}gR.exports=td.default});var sd=w((rd,fR)=>{"use strict";Object.defineProperty(rd,"__esModule",{value:!0});var eY=hR(),iY=ad(eY),nY=mR(),tY=ad(nY),aY=Ja(),rY=ad(aY),sY=ls(),oY=ad(sY);function ad(t){return t&&t.__esModule?t:{default:t}}function lY(t,e,i){return(0,iY.default)(t,(0,tY.default)((0,rY.default)(e)),i)}rd.default=(0,oY.default)(lY,3);fR.exports=rd.default});var vR=w((eue,wR)=>{"use strict";var uY=Object.prototype.toString;wR.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 i=e.toString(),n=uY.call(e).slice(8,-1);return n==="Function"?i=i.substring(i.indexOf("(")+1,i.indexOf(")")):i=n,i||"anonymous"}});var hA=w((iue,CR)=>{"use strict";var cY=vR();CR.exports=function(e){var i=0,n;function a(){return i||(i=1,n=e.apply(this,arguments),e=null),n}return a.displayName=cY(e),a}});var gA=w(Sl=>{Sl.get=function(t){var e=Error.stackTraceLimit;Error.stackTraceLimit=1/0;var i={},n=Error.prepareStackTrace;Error.prepareStackTrace=function(r,s){return s},Error.captureStackTrace(i,t||Sl.get);var a=i.stack;return Error.prepareStackTrace=n,Error.stackTraceLimit=e,a};Sl.parse=function(t){if(!t.stack)return[];var e=this,i=t.stack.split(` +${y}`),m.pop(),`{${$}}`}case"number":return isFinite(g)?String(g):e?e(g):"null";case"boolean":return g===!0?"true":"false";case"undefined":return;case"bigint":if(n)return String(g);default:return e?e(g):void 0}}function p(h,g,m){switch(typeof g){case"string":return Nt(g);case"object":{if(g===null)return"null";if(typeof g.toJSON=="function"){if(g=g.toJSON(h),typeof g!="object")return p(h,g,m);if(g===null)return"null"}if(m.indexOf(g)!==-1)return i;let f="",v=g.length!==void 0;if(v&&Array.isArray(g)){if(g.length===0)return"[]";if(so){let F=g.length-o-1;f+=`,"... ${Na(F)} not stringified"`}return m.pop(),`[${f}]`}let y=Object.keys(g),A=y.length;if(A===0)return"{}";if(so){let $=A-o;f+=`${b}"...":"${Na($)} not stringified"`}return m.pop(),`{${f}}`}case"number":return isFinite(g)?String(g):e?e(g):"null";case"boolean":return g===!0?"true":"false";case"undefined":return;case"bigint":if(n)return String(g);default:return e?e(g):void 0}}function d(h,g,m){if(arguments.length>1){let f="";if(typeof m=="number"?f=" ".repeat(Math.min(m,10)):typeof m=="string"&&(f=m.slice(0,10)),g!=null){if(typeof g=="function")return l("",{"":h},[],g,f,"");if(Array.isArray(g))return u("",h,[],QK(g),f,"")}if(f.length!==0)return c("",h,[],f,"")}return p("",h,[])}return d}});var lC=w((Joe,u2)=>{"use strict";var XK=Zi(),{MESSAGE:e9}=ri(),i9=rl();function n9(t,e){return typeof e=="bigint"?e.toString():e}u2.exports=XK((t,e)=>{let i=i9.configure(e);return t[e9]=i(t,e.replacer||n9,e.space),t})});var p2=w((Zoe,c2)=>{"use strict";var t9=Zi();c2.exports=t9((t,e)=>e.message?(t.message=`[${e.label}] ${t.message}`,t):(t.label=e.label,t))});var h2=w((Koe,d2)=>{"use strict";var a9=Zi(),{MESSAGE:r9}=ri(),s9=rl();d2.exports=a9(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[r9]=s9(e),t})});var m2=w((Qoe,g2)=>{"use strict";var o9=Zi();function l9(t,e,i){let n=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,n,{[i]:a}),t}function u9(t,e,i){return t[i]=e.reduce((n,a)=>(n[a]=t[a],delete t[a],n),{}),t}g2.exports=o9((t,e={})=>{let i="metadata";e.key&&(i=e.key);let n=[];return!e.fillExcept&&!e.fillWith&&(n.push("level"),n.push("message")),e.fillExcept&&(n=e.fillExcept),n.length>0?l9(t,n,i):e.fillWith?u9(t,e.fillWith,i):t})});var w2=w((sl,f2)=>{"use strict";var c9=Zi(),p9=kw();f2.exports=c9(t=>{let e=+new Date;return sl.diff=e-(sl.prevTime||e),sl.prevTime=e,t.ms=`+${p9(sl.diff)}`,t})});var A2=w((Yoe,C2)=>{"use strict";var d9=require("util").inspect,h9=Zi(),{LEVEL:g9,MESSAGE:v2,SPLAT:m9}=ri();C2.exports=h9((t,e={})=>{let i=Object.assign({},t);return delete i[g9],delete i[v2],delete i[m9],t[v2]=d9(i,!1,e.depth||null,e.colorize),t})});var b2=w((Xoe,fp)=>{"use strict";var{MESSAGE:f9}=ri(),mp=class{constructor(e){this.template=e}transform(e){return e[f9]=this.template(e),e}};fp.exports=t=>new mp(t);fp.exports.Printf=fp.exports.Format=mp});var j2=w((ele,P2)=>{"use strict";var w9=Zi(),{MESSAGE:y2}=ri(),v9=rl();P2.exports=w9(t=>{let e=v9(Object.assign({},t,{level:void 0,message:void 0,splat:void 0})),i=t.padding&&t.padding[t.level]||"";return e!=="{}"?t[y2]=`${t.level}:${i} ${t.message} ${e}`:t[y2]=`${t.level}:${i} ${t.message}`,t})});var x2=w((ile,O2)=>{"use strict";var C9=require("util"),{SPLAT:S2}=ri(),A9=/%[scdjifoO%]/g,b9=/%%/g,uC=class{constructor(e){this.options=e}_splat(e,i){let n=e.message,a=e[S2]||e.splat||[],r=n.match(b9),s=r&&r.length||0,l=i.length-s-a.length,u=l<0?a.splice(l,-1*l):[],c=u.length;if(c)for(let p=0;p1?n.splice(0):n,s=r.length;if(s)for(let o=0;onew uC(t)});var M2=w((wp,T2)=>{(function(t,e){typeof wp=="object"&&typeof T2<"u"?e(wp):typeof define=="function"&&define.amd?define(["exports"],e):e(t.fecha={})})(wp,(function(t){"use strict";var e=/d{1,4}|M{1,4}|YY(?:YY)?|S{1,3}|Do|ZZ|Z|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g,i="\\d\\d?",n="\\d\\d",a="\\d{3}",r="\\d{4}",s="[^\\s]+",o=/\[([^]*?)\]/gm;function l(S,R){for(var Ae=[],Se=0,I=S.length;Se-1?I:null}};function c(S){for(var R=[],Ae=1;Ae3?0:(S-S%10!==10?1:0)*S%10]}},f=c({},m),v=function(S){return f=c(f,S)},y=function(S){return S.replace(/[|\\{()[^$+*?.-]/g,"\\$&")},A=function(S,R){for(R===void 0&&(R=2),S=String(S);S.length0?"-":"+")+A(Math.floor(Math.abs(R)/60)*100+Math.abs(R)%60,4)},Z:function(S){var R=S.getTimezoneOffset();return(R>0?"-":"+")+A(Math.floor(Math.abs(R)/60),2)+":"+A(Math.abs(R)%60,2)}},O=function(S){return+S-1},$=[null,i],N=[null,s],X=["isPm",s,function(S,R){var Ae=S.toLowerCase();return Ae===R.amPm[0]?0:Ae===R.amPm[1]?1:null}],F=["timezoneOffset","[^\\s]*?[\\+\\-]\\d\\d:?\\d\\d|[^\\s]*?Z?",function(S){var R=(S+"").match(/([+-]|\d\d)/gi);if(R){var Ae=+R[1]*60+parseInt(R[2],10);return R[0]==="+"?Ae:-Ae}return 0}],k={D:["day",i],DD:["day",n],Do:["day",i+s,function(S){return parseInt(S,10)}],M:["month",i,O],MM:["month",n,O],YY:["year",n,function(S){var R=new Date,Ae=+(""+R.getFullYear()).substr(0,2);return+(""+(+S>68?Ae-1:Ae)+S)}],h:["hour",i,void 0,"isPm"],hh:["hour",n,void 0,"isPm"],H:["hour",i],HH:["hour",n],m:["minute",i],mm:["minute",n],s:["second",i],ss:["second",n],YYYY:["year",r],S:["millisecond","\\d",function(S){return+S*100}],SS:["millisecond",n,function(S){return+S*10}],SSS:["millisecond",a],d:$,dd:$,ddd:N,dddd:N,MMM:["month",s,u("monthNamesShort")],MMMM:["month",s,u("monthNames")],a:X,A:X,ZZ:F,Z:F},Q={default:"ddd MMM DD YYYY HH:mm:ss",shortDate:"M/D/YY",mediumDate:"MMM D, YYYY",longDate:"MMMM D, YYYY",fullDate:"dddd, MMMM D, YYYY",isoDate:"YYYY-MM-DD",isoDateTime:"YYYY-MM-DDTHH:mm:ssZ",shortTime:"HH:mm",mediumTime:"HH:mm:ss",longTime:"HH:mm:ss.SSS"},Z=function(S){return c(Q,S)},ie=function(S,R,Ae){if(R===void 0&&(R=Q.default),Ae===void 0&&(Ae={}),typeof S=="number"&&(S=new Date(S)),Object.prototype.toString.call(S)!=="[object Date]"||isNaN(S.getTime()))throw new Error("Invalid Date pass to format");R=Q[R]||R;var Se=[];R=R.replace(o,function(ei,Re){return Se.push(Re),"@@@"});var I=c(c({},f),Ae);return R=R.replace(e,function(ei){return b[ei](S,I)}),R.replace(/@@@/g,function(){return Se.shift()})};function se(S,R,Ae){if(Ae===void 0&&(Ae={}),typeof R!="string")throw new Error("Invalid format in fecha parse");if(R=Q[R]||R,S.length>1e3)return null;var Se=new Date,I={year:Se.getFullYear(),month:0,day:1,hour:0,minute:0,second:0,millisecond:0,isPm:null,timezoneOffset:null},ei=[],Re=[],Me=R.replace(o,function(vn,Ge){return Re.push(y(Ge)),"@@@"}),Oi={},vi={};Me=y(Me).replace(e,function(vn){var Ge=k[vn],Xa=Ge[0],mI=Ge[1],ly=Ge[3];if(Oi[Xa])throw new Error("Invalid format. "+Xa+" specified twice in format");return Oi[Xa]=!0,ly&&(vi[ly]=!0),ei.push(Ge),"("+mI+")"}),Object.keys(vi).forEach(function(vn){if(!Oi[vn])throw new Error("Invalid format. "+vn+" is required in specified format")}),Me=Me.replace(/@@@/g,function(){return Re.shift()});var nn=S.match(new RegExp(Me,"i"));if(!nn)return null;for(var G=c(c({},f),Ae),x=1;x11||I.month<0||I.day>31||I.day<1||I.hour>23||I.hour<0||I.minute>59||I.minute<0||I.second>59||I.second<0)return null;return pi}var De={format:ie,parse:se,defaultI18n:m,setGlobalDateI18n:v,setGlobalDateMasks:Z};t.assign=c,t.default=De,t.format=ie,t.parse=se,t.defaultI18n=m,t.setGlobalDateI18n=v,t.setGlobalDateMasks=Z,Object.defineProperty(t,"__esModule",{value:!0})}))});var k2=w((nle,E2)=>{"use strict";var y9=M2(),P9=Zi();E2.exports=P9((t,e={})=>(e.format&&(t.timestamp=typeof e.format=="function"?e.format():y9.format(new Date,e.format)),t.timestamp||(t.timestamp=new Date().toISOString()),e.alias&&(t[e.alias]=t.timestamp),t))});var _2=w((tle,q2)=>{"use strict";var cC=Fv(),j9=Zi(),{MESSAGE:pC}=ri();q2.exports=j9((t,e)=>(e.level!==!1&&(t.level=cC.strip(t.level)),e.message!==!1&&(t.message=cC.strip(String(t.message))),e.raw!==!1&&t[pC]&&(t[pC]=cC.strip(String(t[pC]))),t))});var hC=w(dC=>{"use strict";var S9=dC.format=Zi();dC.levels=K_();function ji(t,e){Object.defineProperty(S9,t,{get(){return e()},configurable:!0})}ji("align",function(){return Y_()});ji("errors",function(){return i2()});ji("cli",function(){return t2()});ji("combine",function(){return r2()});ji("colorize",function(){return pp()});ji("json",function(){return lC()});ji("label",function(){return p2()});ji("logstash",function(){return h2()});ji("metadata",function(){return m2()});ji("ms",function(){return w2()});ji("padLevels",function(){return iC()});ji("prettyPrint",function(){return A2()});ji("printf",function(){return b2()});ji("simple",function(){return j2()});ji("splat",function(){return x2()});ji("timestamp",function(){return k2()});ji("uncolorize",function(){return _2()})});var gC=w(vp=>{"use strict";var{format:H2}=require("util");vp.warn={deprecated(t){return()=>{throw new Error(H2("{ %s } was removed in winston@3.0.0.",t))}},useFormat(t){return()=>{throw new Error([H2("{ %s } was removed in winston@3.0.0.",t),"Use a custom winston.format = winston.format(function) instead."].join(` +`))}},forFunctions(t,e,i){i.forEach(n=>{t[n]=vp.warn[e](n)})},forProperties(t,e,i){i.forEach(n=>{let a=vp.warn[e](n);Object.defineProperty(t,n,{get:a,set:a})})}}});var R2=w((sle,O9)=>{O9.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 z2=w((ole,I2)=>{I2.exports=require("util").deprecate});var mC=w((lle,D2)=>{D2.exports=require("stream")});var wC=w((ule,$2)=>{"use strict";function x9(t,e){var i=this,n=this._readableState&&this._readableState.destroyed,a=this._writableState&&this._writableState.destroyed;return n||a?(e?e(t):t&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(fC,this,t)):process.nextTick(fC,this,t)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(t||null,function(r){!e&&r?i._writableState?i._writableState.errorEmitted?process.nextTick(Cp,i):(i._writableState.errorEmitted=!0,process.nextTick(G2,i,r)):process.nextTick(G2,i,r):e?(process.nextTick(Cp,i),e(r)):process.nextTick(Cp,i)}),this)}function G2(t,e){fC(t,e),Cp(t)}function Cp(t){t._writableState&&!t._writableState.emitClose||t._readableState&&!t._readableState.emitClose||t.emit("close")}function T9(){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 fC(t,e){t.emit("error",e)}function M9(t,e){var i=t._readableState,n=t._writableState;i&&i.autoDestroy||n&&n.autoDestroy?t.destroy(e):t.emit("error",e)}$2.exports={destroy:x9,undestroy:T9,errorOrDestroy:M9}});var Ut=w((cle,L2)=>{"use strict";var U2={};function fn(t,e,i){i||(i=Error);function n(r,s,o){return typeof e=="string"?e:e(r,s,o)}class a extends i{constructor(s,o,l){super(n(s,o,l))}}a.prototype.name=i.name,a.prototype.code=t,U2[t]=a}function N2(t,e){if(Array.isArray(t)){let i=t.length;return t=t.map(n=>String(n)),i>2?`one of ${e} ${t.slice(0,i-1).join(", ")}, or `+t[i-1]:i===2?`one of ${e} ${t[0]} or ${t[1]}`:`of ${e} ${t[0]}`}else return`of ${e} ${String(t)}`}function E9(t,e,i){return t.substr(!i||i<0?0:+i,e.length)===e}function k9(t,e,i){return(i===void 0||i>t.length)&&(i=t.length),t.substring(i-e.length,i)===e}function q9(t,e,i){return typeof i!="number"&&(i=0),i+e.length>t.length?!1:t.indexOf(e,i)!==-1}fn("ERR_INVALID_OPT_VALUE",function(t,e){return'The value "'+e+'" is invalid for option "'+t+'"'},TypeError);fn("ERR_INVALID_ARG_TYPE",function(t,e,i){let n;typeof e=="string"&&E9(e,"not ")?(n="must not be",e=e.replace(/^not /,"")):n="must be";let a;if(k9(t," argument"))a=`The ${t} ${n} ${N2(e,"type")}`;else{let r=q9(t,".")?"property":"argument";a=`The "${t}" ${r} ${n} ${N2(e,"type")}`}return a+=`. Received type ${typeof i}`,a},TypeError);fn("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF");fn("ERR_METHOD_NOT_IMPLEMENTED",function(t){return"The "+t+" method is not implemented"});fn("ERR_STREAM_PREMATURE_CLOSE","Premature close");fn("ERR_STREAM_DESTROYED",function(t){return"Cannot call "+t+" after a stream was destroyed"});fn("ERR_MULTIPLE_CALLBACK","Callback called multiple times");fn("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable");fn("ERR_STREAM_WRITE_AFTER_END","write after end");fn("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);fn("ERR_UNKNOWN_ENCODING",function(t){return"Unknown encoding: "+t},TypeError);fn("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event");L2.exports.codes=U2});var vC=w((ple,W2)=>{"use strict";var _9=Ut().codes.ERR_INVALID_OPT_VALUE;function H9(t,e,i){return t.highWaterMark!=null?t.highWaterMark:e?t[i]:null}function R9(t,e,i,n){var a=H9(e,n,i);if(a!=null){if(!(isFinite(a)&&Math.floor(a)===a)||a<0){var r=n?i:"highWaterMark";throw new _9(r,a)}return Math.floor(a)}return t.objectMode?16:16*1024}W2.exports={getHighWaterMark:R9}});var B2=w((dle,CC)=>{typeof Object.create=="function"?CC.exports=function(e,i){i&&(e.super_=i,e.prototype=Object.create(i.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:CC.exports=function(e,i){if(i){e.super_=i;var n=function(){};n.prototype=i.prototype,e.prototype=new n,e.prototype.constructor=e}}});var ns=w((hle,bC)=>{try{if(AC=require("util"),typeof AC.inherits!="function")throw"";bC.exports=AC.inherits}catch{bC.exports=B2()}var AC});var Q2=w((gle,K2)=>{"use strict";function F2(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),i.push.apply(i,n)}return i}function V2(t){for(var e=1;e0?this.tail.next=n:this.head=n,this.tail=n,++this.length}},{key:"unshift",value:function(i){var n={data:i,next:this.head};this.length===0&&(this.tail=n),this.head=n,++this.length}},{key:"shift",value:function(){if(this.length!==0){var i=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,i}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(i){if(this.length===0)return"";for(var n=this.head,a=""+n.data;n=n.next;)a+=i+n.data;return a}},{key:"concat",value:function(i){if(this.length===0)return Ap.alloc(0);for(var n=Ap.allocUnsafe(i>>>0),a=this.head,r=0;a;)L9(a.data,n,r),r+=a.data.length,a=a.next;return n}},{key:"consume",value:function(i,n){var a;return is.length?s.length:i;if(o===s.length?r+=s:r+=s.slice(0,i),i-=o,i===0){o===s.length?(++a,n.next?this.head=n.next:this.head=this.tail=null):(this.head=n,n.data=s.slice(o));break}++a}return this.length-=a,r}},{key:"_getBuffer",value:function(i){var n=Ap.allocUnsafe(i),a=this.head,r=1;for(a.data.copy(n),i-=a.data.length;a=a.next;){var s=a.data,o=i>s.length?s.length:i;if(s.copy(n,n.length-i,0,o),i-=o,i===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,n}},{key:U9,value:function(i,n){return yC(this,V2(V2({},n),{},{depth:0,customInspect:!1}))}}]),t})()});var e0=w((PC,X2)=>{var bp=require("buffer"),Bn=bp.Buffer;function Y2(t,e){for(var i in t)e[i]=t[i]}Bn.from&&Bn.alloc&&Bn.allocUnsafe&&Bn.allocUnsafeSlow?X2.exports=bp:(Y2(bp,PC),PC.Buffer=La);function La(t,e,i){return Bn(t,e,i)}La.prototype=Object.create(Bn.prototype);Y2(Bn,La);La.from=function(t,e,i){if(typeof t=="number")throw new TypeError("Argument must not be a number");return Bn(t,e,i)};La.alloc=function(t,e,i){if(typeof t!="number")throw new TypeError("Argument must be a number");var n=Bn(t);return e!==void 0?typeof i=="string"?n.fill(e,i):n.fill(e):n.fill(0),n};La.allocUnsafe=function(t){if(typeof t!="number")throw new TypeError("Argument must be a number");return Bn(t)};La.allocUnsafeSlow=function(t){if(typeof t!="number")throw new TypeError("Argument must be a number");return bp.SlowBuffer(t)}});var OC=w(n0=>{"use strict";var SC=e0().Buffer,i0=SC.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 W9(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 B9(t){var e=W9(t);if(typeof e!="string"&&(SC.isEncoding===i0||!i0(t)))throw new Error("Unknown encoding: "+t);return e||t}n0.StringDecoder=ol;function ol(t){this.encoding=B9(t);var e;switch(this.encoding){case"utf16le":this.text=Q9,this.end=Y9,e=4;break;case"utf8":this.fillLast=J9,e=4;break;case"base64":this.text=X9,this.end=e6,e=3;break;default:this.write=i6,this.end=n6;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=SC.allocUnsafe(e)}ol.prototype.write=function(t){if(t.length===0)return"";var e,i;if(this.lastNeed){if(e=this.fillLast(t),e===void 0)return"";i=this.lastNeed,this.lastNeed=0}else i=0;return i>5===6?2:t>>4===14?3:t>>3===30?4:t>>6===2?-1:-2}function F9(t,e,i){var n=e.length-1;if(n=0?(a>0&&(t.lastNeed=a-1),a):--n=0?(a>0&&(t.lastNeed=a-2),a):--n=0?(a>0&&(a===2?a=0:t.lastNeed=a-3),a):0))}function V9(t,e,i){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 J9(t){var e=this.lastTotal-this.lastNeed,i=V9(this,t,e);if(i!==void 0)return i;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 Z9(t,e){var i=F9(this,t,e);if(!this.lastNeed)return t.toString("utf8",e);this.lastTotal=i;var n=t.length-(i-this.lastNeed);return t.copy(this.lastChar,0,n),t.toString("utf8",e,n)}function K9(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+"\uFFFD":e}function Q9(t,e){if((t.length-e)%2===0){var i=t.toString("utf16le",e);if(i){var n=i.charCodeAt(i.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1],i.slice(0,-1)}return i}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=t[t.length-1],t.toString("utf16le",e,t.length-1)}function Y9(t){var e=t&&t.length?this.write(t):"";if(this.lastNeed){var i=this.lastTotal-this.lastNeed;return e+this.lastChar.toString("utf16le",0,i)}return e}function X9(t,e){var i=(t.length-e)%3;return i===0?t.toString("base64",e):(this.lastNeed=3-i,this.lastTotal=3,i===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-i))}function e6(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}function i6(t){return t.toString(this.encoding)}function n6(t){return t&&t.length?this.write(t):""}});var yp=w((fle,r0)=>{"use strict";var t0=Ut().codes.ERR_STREAM_PREMATURE_CLOSE;function t6(t){var e=!1;return function(){if(!e){e=!0;for(var i=arguments.length,n=new Array(i),a=0;a{"use strict";var Pp;function Lt(t,e,i){return e=s6(e),e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function s6(t){var e=o6(t,"string");return typeof e=="symbol"?e:String(e)}function o6(t,e){if(typeof t!="object"||t===null)return t;var i=t[Symbol.toPrimitive];if(i!==void 0){var n=i.call(t,e||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var l6=yp(),Wt=Symbol("lastResolve"),Wa=Symbol("lastReject"),ll=Symbol("error"),jp=Symbol("ended"),Ba=Symbol("lastPromise"),xC=Symbol("handlePromise"),Fa=Symbol("stream");function Bt(t,e){return{value:t,done:e}}function u6(t){var e=t[Wt];if(e!==null){var i=t[Fa].read();i!==null&&(t[Ba]=null,t[Wt]=null,t[Wa]=null,e(Bt(i,!1)))}}function c6(t){process.nextTick(u6,t)}function p6(t,e){return function(i,n){t.then(function(){if(e[jp]){i(Bt(void 0,!0));return}e[xC](i,n)},n)}}var d6=Object.getPrototypeOf(function(){}),h6=Object.setPrototypeOf((Pp={get stream(){return this[Fa]},next:function(){var e=this,i=this[ll];if(i!==null)return Promise.reject(i);if(this[jp])return Promise.resolve(Bt(void 0,!0));if(this[Fa].destroyed)return new Promise(function(s,o){process.nextTick(function(){e[ll]?o(e[ll]):s(Bt(void 0,!0))})});var n=this[Ba],a;if(n)a=new Promise(p6(n,this));else{var r=this[Fa].read();if(r!==null)return Promise.resolve(Bt(r,!1));a=new Promise(this[xC])}return this[Ba]=a,a}},Lt(Pp,Symbol.asyncIterator,function(){return this}),Lt(Pp,"return",function(){var e=this;return new Promise(function(i,n){e[Fa].destroy(null,function(a){if(a){n(a);return}i(Bt(void 0,!0))})})}),Pp),d6),g6=function(e){var i,n=Object.create(h6,(i={},Lt(i,Fa,{value:e,writable:!0}),Lt(i,Wt,{value:null,writable:!0}),Lt(i,Wa,{value:null,writable:!0}),Lt(i,ll,{value:null,writable:!0}),Lt(i,jp,{value:e._readableState.endEmitted,writable:!0}),Lt(i,xC,{value:function(r,s){var o=n[Fa].read();o?(n[Ba]=null,n[Wt]=null,n[Wa]=null,r(Bt(o,!1))):(n[Wt]=r,n[Wa]=s)},writable:!0}),i));return n[Ba]=null,l6(e,function(a){if(a&&a.code!=="ERR_STREAM_PREMATURE_CLOSE"){var r=n[Wa];r!==null&&(n[Ba]=null,n[Wt]=null,n[Wa]=null,r(a)),n[ll]=a;return}var s=n[Wt];s!==null&&(n[Ba]=null,n[Wt]=null,n[Wa]=null,s(Bt(void 0,!0))),n[jp]=!0}),e.on("readable",c6.bind(null,n)),n};s0.exports=g6});var p0=w((vle,c0)=>{"use strict";function l0(t,e,i,n,a,r,s){try{var o=t[r](s),l=o.value}catch(u){i(u);return}o.done?e(l):Promise.resolve(l).then(n,a)}function m6(t){return function(){var e=this,i=arguments;return new Promise(function(n,a){var r=t.apply(e,i);function s(l){l0(r,n,a,s,o,"next",l)}function o(l){l0(r,n,a,s,o,"throw",l)}s(void 0)})}}function u0(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),i.push.apply(i,n)}return i}function f6(t){for(var e=1;e{"use strict";b0.exports=je;var ts;je.ReadableState=m0;var Cle=require("events").EventEmitter,g0=function(e,i){return e.listeners(i).length},cl=mC(),Sp=require("buffer").Buffer,y6=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function P6(t){return Sp.from(t)}function j6(t){return Sp.isBuffer(t)||t instanceof y6}var TC=require("util"),ue;TC&&TC.debuglog?ue=TC.debuglog("stream"):ue=function(){};var S6=Q2(),RC=wC(),O6=vC(),x6=O6.getHighWaterMark,Op=Ut().codes,T6=Op.ERR_INVALID_ARG_TYPE,M6=Op.ERR_STREAM_PUSH_AFTER_EOF,E6=Op.ERR_METHOD_NOT_IMPLEMENTED,k6=Op.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,as,MC,EC;ns()(je,cl);var ul=RC.errorOrDestroy,kC=["error","close","destroy","pause","resume"];function q6(t,e,i){if(typeof t.prependListener=="function")return t.prependListener(e,i);!t._events||!t._events[e]?t.on(e,i):Array.isArray(t._events[e])?t._events[e].unshift(i):t._events[e]=[i,t._events[e]]}function m0(t,e,i){ts=ts||Va(),t=t||{},typeof i!="boolean"&&(i=e instanceof ts),this.objectMode=!!t.objectMode,i&&(this.objectMode=this.objectMode||!!t.readableObjectMode),this.highWaterMark=x6(this,t,"readableHighWaterMark",i),this.buffer=new S6,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&&(as||(as=OC().StringDecoder),this.decoder=new as(t.encoding),this.encoding=t.encoding)}function je(t){if(ts=ts||Va(),!(this instanceof je))return new je(t);var e=this instanceof ts;this._readableState=new m0(t,this,e),this.readable=!0,t&&(typeof t.read=="function"&&(this._read=t.read),typeof t.destroy=="function"&&(this._destroy=t.destroy)),cl.call(this)}Object.defineProperty(je.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}});je.prototype.destroy=RC.destroy;je.prototype._undestroy=RC.undestroy;je.prototype._destroy=function(t,e){e(t)};je.prototype.push=function(t,e){var i=this._readableState,n;return i.objectMode?n=!0:typeof t=="string"&&(e=e||i.defaultEncoding,e!==i.encoding&&(t=Sp.from(t,e),e=""),n=!0),f0(this,t,e,!1,n)};je.prototype.unshift=function(t){return f0(this,t,null,!0,!1)};function f0(t,e,i,n,a){ue("readableAddChunk",e);var r=t._readableState;if(e===null)r.reading=!1,R6(t,r);else{var s;if(a||(s=_6(r,e)),s)ul(t,s);else if(r.objectMode||e&&e.length>0)if(typeof e!="string"&&!r.objectMode&&Object.getPrototypeOf(e)!==Sp.prototype&&(e=P6(e)),n)r.endEmitted?ul(t,new k6):qC(t,r,e,!0);else if(r.ended)ul(t,new M6);else{if(r.destroyed)return!1;r.reading=!1,r.decoder&&!i?(e=r.decoder.write(e),r.objectMode||e.length!==0?qC(t,r,e,!1):HC(t,r)):qC(t,r,e,!1)}else n||(r.reading=!1,HC(t,r))}return!r.ended&&(r.length=d0?t=d0:(t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++),t}function h0(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=H6(t)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0))}je.prototype.read=function(t){ue("read",t),t=parseInt(t,10);var e=this._readableState,i=t;if(t!==0&&(e.emittedReadable=!1),t===0&&e.needReadable&&((e.highWaterMark!==0?e.length>=e.highWaterMark:e.length>0)||e.ended))return ue("read: emitReadable",e.length,e.ended),e.length===0&&e.ended?_C(this):xp(this),null;if(t=h0(t,e),t===0&&e.ended)return e.length===0&&_C(this),null;var n=e.needReadable;ue("need readable",n),(e.length===0||e.length-t0?a=C0(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),i!==t&&e.ended&&_C(this)),a!==null&&this.emit("data",a),a};function R6(t,e){if(ue("onEofChunk"),!e.ended){if(e.decoder){var i=e.decoder.end();i&&i.length&&(e.buffer.push(i),e.length+=e.objectMode?1:i.length)}e.ended=!0,e.sync?xp(t):(e.needReadable=!1,e.emittedReadable||(e.emittedReadable=!0,w0(t)))}}function xp(t){var e=t._readableState;ue("emitReadable",e.needReadable,e.emittedReadable),e.needReadable=!1,e.emittedReadable||(ue("emitReadable",e.flowing),e.emittedReadable=!0,process.nextTick(w0,t))}function w0(t){var e=t._readableState;ue("emitReadable_",e.destroyed,e.length,e.ended),!e.destroyed&&(e.length||e.ended)&&(t.emit("readable"),e.emittedReadable=!1),e.needReadable=!e.flowing&&!e.ended&&e.length<=e.highWaterMark,IC(t)}function HC(t,e){e.readingMore||(e.readingMore=!0,process.nextTick(I6,t,e))}function I6(t,e){for(;!e.reading&&!e.ended&&(e.length1&&A0(n.pipes,t)!==-1)&&!u&&(ue("false write response, pause",n.awaitDrain),n.awaitDrain++),i.pause())}function d(f){ue("onerror",f),m(),t.removeListener("error",d),g0(t,"error")===0&&ul(t,f)}q6(t,"error",d);function h(){t.removeListener("finish",g),m()}t.once("close",h);function g(){ue("onfinish"),t.removeListener("close",h),m()}t.once("finish",g);function m(){ue("unpipe"),i.unpipe(t)}return t.emit("pipe",i),n.flowing||(ue("pipe resume"),i.resume()),t};function z6(t){return function(){var i=t._readableState;ue("pipeOnDrain",i.awaitDrain),i.awaitDrain&&i.awaitDrain--,i.awaitDrain===0&&g0(t,"data")&&(i.flowing=!0,IC(t))}}je.prototype.unpipe=function(t){var e=this._readableState,i={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,i),this);if(!t){var n=e.pipes,a=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var r=0;r0,n.flowing!==!1&&this.resume()):t==="readable"&&!n.endEmitted&&!n.readableListening&&(n.readableListening=n.needReadable=!0,n.flowing=!1,n.emittedReadable=!1,ue("on readable",n.length,n.reading),n.length?xp(this):n.reading||process.nextTick(D6,this)),i};je.prototype.addListener=je.prototype.on;je.prototype.removeListener=function(t,e){var i=cl.prototype.removeListener.call(this,t,e);return t==="readable"&&process.nextTick(v0,this),i};je.prototype.removeAllListeners=function(t){var e=cl.prototype.removeAllListeners.apply(this,arguments);return(t==="readable"||t===void 0)&&process.nextTick(v0,this),e};function v0(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 D6(t){ue("readable nexttick read 0"),t.read(0)}je.prototype.resume=function(){var t=this._readableState;return t.flowing||(ue("resume"),t.flowing=!t.readableListening,G6(this,t)),t.paused=!1,this};function G6(t,e){e.resumeScheduled||(e.resumeScheduled=!0,process.nextTick($6,t,e))}function $6(t,e){ue("resume",e.reading),e.reading||t.read(0),e.resumeScheduled=!1,t.emit("resume"),IC(t),e.flowing&&!e.reading&&t.read(0)}je.prototype.pause=function(){return ue("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(ue("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function IC(t){var e=t._readableState;for(ue("flow",e.flowing);e.flowing&&t.read()!==null;);}je.prototype.wrap=function(t){var e=this,i=this._readableState,n=!1;t.on("end",function(){if(ue("wrapped end"),i.decoder&&!i.ended){var s=i.decoder.end();s&&s.length&&e.push(s)}e.push(null)}),t.on("data",function(s){if(ue("wrapped data"),i.decoder&&(s=i.decoder.write(s)),!(i.objectMode&&s==null)&&!(!i.objectMode&&(!s||!s.length))){var o=e.push(s);o||(n=!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?i=e.buffer.join(""):e.buffer.length===1?i=e.buffer.first():i=e.buffer.concat(e.length),e.buffer.clear()):i=e.buffer.consume(t,e.decoder),i}function _C(t){var e=t._readableState;ue("endReadable",e.endEmitted),e.endEmitted||(e.ended=!0,process.nextTick(N6,e,t))}function N6(t,e){if(ue("endReadableNT",t.endEmitted,t.length),!t.endEmitted&&t.length===0&&(t.endEmitted=!0,e.readable=!1,e.emit("end"),t.autoDestroy)){var i=e._writableState;(!i||i.autoDestroy&&i.finished)&&e.destroy()}}typeof Symbol=="function"&&(je.from=function(t,e){return EC===void 0&&(EC=p0()),EC(je,t,e)});function A0(t,e){for(var i=0,n=t.length;i{"use strict";var U6=Object.keys||function(t){var e=[];for(var i in t)e.push(i);return e};P0.exports=Fn;var y0=zC(),GC=Ep();ns()(Fn,y0);for(DC=U6(GC.prototype),Tp=0;Tp{"use strict";M0.exports=Ye;function S0(t){var e=this;this.next=null,this.entry=null,this.finish=function(){wQ(e,t)}}var rs;Ye.WritableState=dl;var B6={deprecate:z2()},O0=mC(),qp=require("buffer").Buffer,F6=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function V6(t){return qp.from(t)}function J6(t){return qp.isBuffer(t)||t instanceof F6}var NC=wC(),Z6=vC(),K6=Z6.getHighWaterMark,Ft=Ut().codes,Q6=Ft.ERR_INVALID_ARG_TYPE,Y6=Ft.ERR_METHOD_NOT_IMPLEMENTED,X6=Ft.ERR_MULTIPLE_CALLBACK,eQ=Ft.ERR_STREAM_CANNOT_PIPE,iQ=Ft.ERR_STREAM_DESTROYED,nQ=Ft.ERR_STREAM_NULL_VALUES,tQ=Ft.ERR_STREAM_WRITE_AFTER_END,aQ=Ft.ERR_UNKNOWN_ENCODING,ss=NC.errorOrDestroy;ns()(Ye,O0);function rQ(){}function dl(t,e,i){rs=rs||Va(),t=t||{},typeof i!="boolean"&&(i=e instanceof rs),this.objectMode=!!t.objectMode,i&&(this.objectMode=this.objectMode||!!t.writableObjectMode),this.highWaterMark=K6(this,t,"writableHighWaterMark",i),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var n=t.decodeStrings===!1;this.decodeStrings=!n,this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(a){dQ(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 S0(this)}dl.prototype.getBuffer=function(){for(var e=this.bufferedRequest,i=[];e;)i.push(e),e=e.next;return i};(function(){try{Object.defineProperty(dl.prototype,"buffer",{get:B6.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}})();var kp;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(kp=Function.prototype[Symbol.hasInstance],Object.defineProperty(Ye,Symbol.hasInstance,{value:function(e){return kp.call(this,e)?!0:this!==Ye?!1:e&&e._writableState instanceof dl}})):kp=function(e){return e instanceof this};function Ye(t){rs=rs||Va();var e=this instanceof rs;if(!e&&!kp.call(Ye,this))return new Ye(t);this._writableState=new dl(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)),O0.call(this)}Ye.prototype.pipe=function(){ss(this,new eQ)};function sQ(t,e){var i=new tQ;ss(t,i),process.nextTick(e,i)}function oQ(t,e,i,n){var a;return i===null?a=new nQ:typeof i!="string"&&!e.objectMode&&(a=new Q6("chunk",["string","Buffer"],i)),a?(ss(t,a),process.nextTick(n,a),!1):!0}Ye.prototype.write=function(t,e,i){var n=this._writableState,a=!1,r=!n.objectMode&&J6(t);return r&&!qp.isBuffer(t)&&(t=V6(t)),typeof e=="function"&&(i=e,e=null),r?e="buffer":e||(e=n.defaultEncoding),typeof i!="function"&&(i=rQ),n.ending?sQ(this,i):(r||oQ(this,n,t,i))&&(n.pendingcb++,a=uQ(this,n,r,t,e,i)),a};Ye.prototype.cork=function(){this._writableState.corked++};Ye.prototype.uncork=function(){var t=this._writableState;t.corked&&(t.corked--,!t.writing&&!t.corked&&!t.bufferProcessing&&t.bufferedRequest&&x0(this,t))};Ye.prototype.setDefaultEncoding=function(e){if(typeof e=="string"&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new aQ(e);return this._writableState.defaultEncoding=e,this};Object.defineProperty(Ye.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function lQ(t,e,i){return!t.objectMode&&t.decodeStrings!==!1&&typeof e=="string"&&(e=qp.from(e,i)),e}Object.defineProperty(Ye.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function uQ(t,e,i,n,a,r){if(!i){var s=lQ(e,n,a);n!==s&&(i=!0,a="buffer",n=s)}var o=e.objectMode?1:n.length;e.length+=o;var l=e.length{"use strict";var vQ=require("util"),E0=Ep(),{LEVEL:k0}=ri(),hl=q0.exports=function(e={}){E0.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",i=>{this.levels=i.levels,this.parent=i}),this.once("unpipe",i=>{i===this.parent&&(this.parent=null,this.close&&this.close())})};vQ.inherits(hl,E0);hl.prototype._write=function(e,i,n){if(this.silent||e.exception===!0&&!this.handleExceptions)return n(null);let a=this.level||this.parent&&this.parent.level;if(!a||this.levels[a]>=this.levels[e[k0]]){if(e&&!this.format)return this.log(e,n);let r,s;try{s=this.format.transform(Object.assign({},e),this.format.options)}catch(o){r=o}if(r||!s){if(n(),r)throw r;return}return this.log(s,n)}return this._writableState.sync=!1,n(null)};hl.prototype._writev=function(e,i){if(this.logv){let n=e.filter(this._accept,this);return n.length?this.logv(n,i):i(null)}for(let n=0;n=this.levels[i[k0]])&&(this.handleExceptions||i.exception!==!0))};hl.prototype._nop=function(){}});var WC=w((jle,H0)=>{"use strict";var CQ=require("util"),{LEVEL:LC}=ri(),_0=UC(),gl=H0.exports=function(e={}){if(_0.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 i(n){this.emit("error",n,this.transport)}this.transport.__winstonError||(this.transport.__winstonError=i.bind(this),this.transport.on("error",this.transport.__winstonError))};CQ.inherits(gl,_0);gl.prototype._write=function(e,i,n){if(this.silent||e.exception===!0&&!this.handleExceptions)return n(null);(!this.level||this.levels[this.level]>=this.levels[e[LC]])&&this.transport.log(e[LC],e.message,e,this._nop),n(null)};gl.prototype._writev=function(e,i){for(let n=0;n{"use strict";BC.exports=UC();BC.exports.LegacyTransportStream=WC()});var z0=w((xle,I0)=>{"use strict";var AQ=require("os"),{LEVEL:R0,MESSAGE:ls}=ri(),bQ=os();I0.exports=class extends bQ{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:AQ.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,i){if(setImmediate(()=>this.emit("logged",e)),this.stderrLevels[e[R0]]){console._stderr&&!this.forceConsole?console._stderr.write(`${e[ls]}${this.eol}`):this._consoleError(e[ls]),i&&i();return}else if(this.consoleWarnLevels[e[R0]]){console._stderr&&!this.forceConsole?console._stderr.write(`${e[ls]}${this.eol}`):this._consoleWarn(e[ls]),i&&i();return}console._stdout&&!this.forceConsole?console._stdout.write(`${e[ls]}${this.eol}`):this._consoleLog(e[ls]),i&&i()}_stringArrayToSet(e,i){if(!e)return{};if(i=i||"Cannot make set from type other than Array of string elements",!Array.isArray(e))throw new Error(i);return e.reduce((n,a)=>{if(typeof a!="string")throw new Error(i);return n[a]=!0,n},{})}}});var Hp=w((_p,D0)=>{"use strict";Object.defineProperty(_p,"__esModule",{value:!0});_p.default=yQ;function yQ(t){return t&&typeof t.length=="number"&&t.length>=0&&t.length%1===0}D0.exports=_p.default});var $0=w((Rp,G0)=>{"use strict";Object.defineProperty(Rp,"__esModule",{value:!0});Rp.default=function(t){return function(...e){var i=e.pop();return t.call(this,e,i)}};G0.exports=Rp.default});var L0=w(Vt=>{"use strict";Object.defineProperty(Vt,"__esModule",{value:!0});Vt.fallback=N0;Vt.wrap=U0;var PQ=Vt.hasQueueMicrotask=typeof queueMicrotask=="function"&&queueMicrotask,jQ=Vt.hasSetImmediate=typeof setImmediate=="function"&&setImmediate,SQ=Vt.hasNextTick=typeof process=="object"&&typeof process.nextTick=="function";function N0(t){setTimeout(t,0)}function U0(t){return(e,...i)=>t(()=>e(...i))}var ml;PQ?ml=queueMicrotask:jQ?ml=setImmediate:SQ?ml=process.nextTick:ml=N0;Vt.default=U0(ml)});var J0=w((Ip,V0)=>{"use strict";Object.defineProperty(Ip,"__esModule",{value:!0});Ip.default=kQ;var OQ=$0(),xQ=F0(OQ),TQ=L0(),MQ=F0(TQ),EQ=Ja();function F0(t){return t&&t.__esModule?t:{default:t}}function kQ(t){return(0,EQ.isAsync)(t)?function(...e){let i=e.pop(),n=t.apply(this,e);return W0(n,i)}:(0,xQ.default)(function(e,i){var n;try{n=t.apply(this,e)}catch(a){return i(a)}if(n&&typeof n.then=="function")return W0(n,i);i(null,n)})}function W0(t,e){return t.then(i=>{B0(e,null,i)},i=>{B0(e,i&&(i instanceof Error||i.message)?i:new Error(i))})}function B0(t,e,i){try{t(e,i)}catch(n){(0,MQ.default)(a=>{throw a},n)}}V0.exports=Ip.default});var Ja=w(pt=>{"use strict";Object.defineProperty(pt,"__esModule",{value:!0});pt.isAsyncIterable=pt.isAsyncGenerator=pt.isAsync=void 0;var qQ=J0(),_Q=HQ(qQ);function HQ(t){return t&&t.__esModule?t:{default:t}}function Z0(t){return t[Symbol.toStringTag]==="AsyncFunction"}function RQ(t){return t[Symbol.toStringTag]==="AsyncGenerator"}function IQ(t){return typeof t[Symbol.asyncIterator]=="function"}function zQ(t){if(typeof t!="function")throw new Error("expected a function");return Z0(t)?(0,_Q.default)(t):t}pt.default=zQ;pt.isAsync=Z0;pt.isAsyncGenerator=RQ;pt.isAsyncIterable=IQ});var us=w((zp,K0)=>{"use strict";Object.defineProperty(zp,"__esModule",{value:!0});zp.default=DQ;function DQ(t,e){if(e||(e=t.length),!e)throw new Error("arity is undefined");function i(...n){return typeof n[e-1]=="function"?t.apply(this,n):new Promise((a,r)=>{n[e-1]=(s,...o)=>{if(s)return r(s);a(o.length>1?o:o[0])},t.apply(this,n)})}return i}K0.exports=zp.default});var Y0=w((Dp,Q0)=>{"use strict";Object.defineProperty(Dp,"__esModule",{value:!0});var GQ=Hp(),$Q=FC(GQ),NQ=Ja(),UQ=FC(NQ),LQ=us(),WQ=FC(LQ);function FC(t){return t&&t.__esModule?t:{default:t}}Dp.default=(0,WQ.default)((t,e,i)=>{var n=(0,$Q.default)(e)?[]:{};t(e,(a,r,s)=>{(0,UQ.default)(a)((o,...l)=>{l.length<2&&([l]=l),n[r]=l,s(o)})},a=>i(a,n))},3);Q0.exports=Dp.default});var VC=w((Gp,X0)=>{"use strict";Object.defineProperty(Gp,"__esModule",{value:!0});Gp.default=BQ;function BQ(t){function e(...i){if(t!==null){var n=t;t=null,n.apply(this,i)}}return Object.assign(e,t),e}X0.exports=Gp.default});var iH=w(($p,eH)=>{"use strict";Object.defineProperty($p,"__esModule",{value:!0});$p.default=function(t){return t[Symbol.iterator]&&t[Symbol.iterator]()};eH.exports=$p.default});var aH=w((Np,tH)=>{"use strict";Object.defineProperty(Np,"__esModule",{value:!0});Np.default=XQ;var FQ=Hp(),VQ=nH(FQ),JQ=iH(),ZQ=nH(JQ);function nH(t){return t&&t.__esModule?t:{default:t}}function KQ(t){var e=-1,i=t.length;return function(){return++e{"use strict";Object.defineProperty(Up,"__esModule",{value:!0});Up.default=e8;function e8(t){return function(...e){if(t===null)throw new Error("Callback was already called.");var i=t;t=null,i.apply(this,e)}}rH.exports=Up.default});var Wp=w((Lp,sH)=>{"use strict";Object.defineProperty(Lp,"__esModule",{value:!0});var i8={};Lp.default=i8;sH.exports=Lp.default});var lH=w((Bp,oH)=>{"use strict";Object.defineProperty(Bp,"__esModule",{value:!0});Bp.default=r8;var n8=Wp(),t8=a8(n8);function a8(t){return t&&t.__esModule?t:{default:t}}function r8(t,e,i,n){let a=!1,r=!1,s=!1,o=0,l=0;function u(){o>=e||s||a||(s=!0,t.next().then(({value:d,done:h})=>{if(!(r||a)){if(s=!1,h){a=!0,o<=0&&n(null);return}o++,i(d,l,c),l++,u()}}).catch(p))}function c(d,h){if(o-=1,!r){if(d)return p(d);if(d===!1){a=!0,r=!0;return}if(h===t8.default||a&&o<=0)return a=!0,n(null);u()}}function p(d){r||(s=!1,a=!0,n(d))}u()}oH.exports=Bp.default});var dH=w((Fp,pH)=>{"use strict";Object.defineProperty(Fp,"__esModule",{value:!0});var s8=VC(),o8=fl(s8),l8=aH(),u8=fl(l8),c8=JC(),p8=fl(c8),uH=Ja(),d8=lH(),cH=fl(d8),h8=Wp(),g8=fl(h8);function fl(t){return t&&t.__esModule?t:{default:t}}Fp.default=t=>(e,i,n)=>{if(n=(0,o8.default)(n),t<=0)throw new RangeError("concurrency limit cannot be less than 1");if(!e)return n(null);if((0,uH.isAsyncGenerator)(e))return(0,cH.default)(e,t,i,n);if((0,uH.isAsyncIterable)(e))return(0,cH.default)(e[Symbol.asyncIterator](),t,i,n);var a=(0,u8.default)(e),r=!1,s=!1,o=0,l=!1;function u(p,d){if(!s)if(o-=1,p)r=!0,n(p);else if(p===!1)r=!0,s=!0;else{if(d===g8.default||r&&o<=0)return r=!0,n(null);l||c()}}function c(){for(l=!0;o{"use strict";Object.defineProperty(Vp,"__esModule",{value:!0});var m8=dH(),f8=ZC(m8),w8=Ja(),v8=ZC(w8),C8=us(),A8=ZC(C8);function ZC(t){return t&&t.__esModule?t:{default:t}}function b8(t,e,i,n){return(0,f8.default)(e)(t,(0,v8.default)(i),n)}Vp.default=(0,A8.default)(b8,4);hH.exports=Vp.default});var fH=w((Jp,mH)=>{"use strict";Object.defineProperty(Jp,"__esModule",{value:!0});var y8=KC(),P8=gH(y8),j8=us(),S8=gH(j8);function gH(t){return t&&t.__esModule?t:{default:t}}function O8(t,e,i){return(0,P8.default)(t,1,e,i)}Jp.default=(0,S8.default)(O8,3);mH.exports=Jp.default});var CH=w((Zp,vH)=>{"use strict";Object.defineProperty(Zp,"__esModule",{value:!0});Zp.default=k8;var x8=Y0(),T8=wH(x8),M8=fH(),E8=wH(M8);function wH(t){return t&&t.__esModule?t:{default:t}}function k8(t,e){return(0,T8.default)(E8.default,t,e)}vH.exports=Zp.default});var QC=w((Ele,bH)=>{"use strict";bH.exports=dt;var Kp=Ut().codes,q8=Kp.ERR_METHOD_NOT_IMPLEMENTED,_8=Kp.ERR_MULTIPLE_CALLBACK,H8=Kp.ERR_TRANSFORM_ALREADY_TRANSFORMING,R8=Kp.ERR_TRANSFORM_WITH_LENGTH_0,Qp=Va();ns()(dt,Qp);function I8(t,e){var i=this._transformState;i.transforming=!1;var n=i.writecb;if(n===null)return this.emit("error",new _8);i.writechunk=null,i.writecb=null,e!=null&&this.push(e),n(t);var a=this._readableState;a.reading=!1,(a.needReadable||a.length{"use strict";PH.exports=wl;var yH=QC();ns()(wl,yH);function wl(t){if(!(this instanceof wl))return new wl(t);yH.call(this,t)}wl.prototype._transform=function(t,e,i){i(null,t)}});var MH=w((qle,TH)=>{"use strict";var YC;function D8(t){var e=!1;return function(){e||(e=!0,t.apply(void 0,arguments))}}var xH=Ut().codes,G8=xH.ERR_MISSING_ARGS,$8=xH.ERR_STREAM_DESTROYED;function SH(t){if(t)throw t}function N8(t){return t.setHeader&&typeof t.abort=="function"}function U8(t,e,i,n){n=D8(n);var a=!1;t.on("close",function(){a=!0}),YC===void 0&&(YC=yp()),YC(t,{readable:e,writable:i},function(s){if(s)return n(s);a=!0,n()});var r=!1;return function(s){if(!a&&!r){if(r=!0,N8(t))return t.abort();if(typeof t.destroy=="function")return t.destroy();n(s||new $8("pipe"))}}}function OH(t){t()}function L8(t,e){return t.pipe(e)}function W8(t){return!t.length||typeof t[t.length-1]!="function"?SH:t.pop()}function B8(){for(var t=arguments.length,e=new Array(t),i=0;i0;return U8(s,l,u,function(c){a||(a=c),c&&r.forEach(OH),!l&&(r.forEach(OH),n(a))})});return e.reduce(L8)}TH.exports=B8});var Za=w((wn,Cl)=>{var vl=require("stream");process.env.READABLE_STREAM==="disable"&&vl?(Cl.exports=vl.Readable,Object.assign(Cl.exports,vl),Cl.exports.Stream=vl):(wn=Cl.exports=zC(),wn.Stream=vl||wn,wn.Readable=wn,wn.Writable=Ep(),wn.Duplex=Va(),wn.Transform=QC(),wn.PassThrough=jH(),wn.finished=yp(),wn.pipeline=MH())});var rA=w((_le,kH)=>{var cs=[],Al=[],XC=function(){};function iA(t){return~cs.indexOf(t)?!1:(cs.push(t),!0)}function nA(t){XC=t}function F8(t){for(var e=[],i=0;i{var Z8=rA(),K8=Z8(function t(e,i){return i=i||{},i.namespace=e,i.prod=!0,i.dev=!1,i.force||t.force?t.yep(i):t.nope(i)});qH.exports=K8});var GH=w((Rle,DH)=>{"use strict";var Vn={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]},RH=Object.create(null);for(let t in Vn)Object.hasOwn(Vn,t)&&(RH[Vn[t]]=t);var ci={to:{},get:{}};ci.get=function(t){let e=t.slice(0,3).toLowerCase(),i,n;switch(e){case"hsl":{i=ci.get.hsl(t),n="hsl";break}case"hwb":{i=ci.get.hwb(t),n="hwb";break}default:{i=ci.get.rgb(t),n="rgb";break}}return i?{model:n,value:i}:null};ci.get.rgb=function(t){if(!t)return null;let e=/^#([a-f\d]{3,4})$/i,i=/^#([a-f\d]{6})([a-f\d]{2})?$/i,n=/^rgba?\(\s*([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)\s*(?:[\s,|/]\s*([+-]?[\d.]+)(%?)\s*)?\)$/,a=/^rgba?\(\s*([+-]?[\d.]+)%\s*,?\s*([+-]?[\d.]+)%\s*,?\s*([+-]?[\d.]+)%\s*(?:[\s,|/]\s*([+-]?[\d.]+)(%?)\s*)?\)$/,r=/^(\w+)$/,s=[0,0,0,1],o,l,u;if(o=t.match(i)){for(u=o[2],o=o[1],l=0;l<3;l++){let c=l*2;s[l]=Number.parseInt(o.slice(c,c+2),16)}u&&(s[3]=Number.parseInt(u,16)/255)}else if(o=t.match(e)){for(o=o[1],u=o[3],l=0;l<3;l++)s[l]=Number.parseInt(o[l]+o[l],16);u&&(s[3]=Number.parseInt(u+u,16)/255)}else if(o=t.match(n)){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(Vn,o[1])?(s=Vn[o[1]],s[3]=1,s):null:null;for(l=0;l<3;l++)s[l]=Jt(s[l],0,255);return s[3]=Jt(s[3],0,1),s};ci.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*)?\)$/,i=t.match(e);if(i){let n=Number.parseFloat(i[4]),a=(Number.parseFloat(i[1])%360+360)%360,r=Jt(Number.parseFloat(i[2]),0,100),s=Jt(Number.parseFloat(i[3]),0,100),o=Jt(Number.isNaN(n)?1:n,0,1);return[a,r,s,o]}return null};ci.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*)?\)$/,i=t.match(e);if(i){let n=Number.parseFloat(i[4]),a=(Number.parseFloat(i[1])%360+360)%360,r=Jt(Number.parseFloat(i[2]),0,100),s=Jt(Number.parseFloat(i[3]),0,100),o=Jt(Number.isNaN(n)?1:n,0,1);return[a,r,s,o]}return null};ci.to.hex=function(...t){return"#"+Yp(t[0])+Yp(t[1])+Yp(t[2])+(t[3]<1?Yp(Math.round(t[3]*255)):"")};ci.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]+")"};ci.to.rgb.percent=function(...t){let e=Math.round(t[0]/255*100),i=Math.round(t[1]/255*100),n=Math.round(t[2]/255*100);return t.length<4||t[3]===1?"rgb("+e+"%, "+i+"%, "+n+"%)":"rgba("+e+"%, "+i+"%, "+n+"%, "+t[3]+")"};ci.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]+")"};ci.to.hwb=function(...t){let e="";return t.length>=4&&t[3]!==1&&(e=", "+t[3]),"hwb("+t[0]+", "+t[1]+"%, "+t[2]+"%"+e+")"};ci.to.keyword=function(...t){return RH[t.slice(0,3)]};function Jt(t,e,i){return Math.min(Math.max(e,t),i)}function Yp(t){let e=Math.round(t).toString(16).toUpperCase();return e.length<2?"0"+e:e}var IH={};for(let t of Object.keys(Vn))IH[Vn[t]]=t;var H={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},oklab:{channels:3,labels:["okl","oka","okb"]},lch:{channels:3,labels:"lch"},oklch:{channels:3,labels:["okl","okc","okh"]},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}},ht=(6/29)**3;function ps(t){let e=t>.0031308?1.055*t**.4166666666666667-.055:t*12.92;return Math.min(Math.max(0,e),1)}function ds(t){return t>.04045?((t+.055)/1.055)**2.4:t/12.92}for(let t of Object.keys(H)){if(!("channels"in H[t]))throw new Error("missing channels property: "+t);if(!("labels"in H[t]))throw new Error("missing channel labels property: "+t);if(H[t].labels.length!==H[t].channels)throw new Error("channel and label counts mismatch: "+t);let{channels:e,labels:i}=H[t];delete H[t].channels,delete H[t].labels,Object.defineProperty(H[t],"channels",{value:e}),Object.defineProperty(H[t],"labels",{value:i})}H.rgb.hsl=function(t){let e=t[0]/255,i=t[1]/255,n=t[2]/255,a=Math.min(e,i,n),r=Math.max(e,i,n),s=r-a,o,l;switch(r){case a:{o=0;break}case e:{o=(i-n)/s;break}case i:{o=2+(n-e)/s;break}case n:{o=4+(e-i)/s;break}}o=Math.min(o*60,360),o<0&&(o+=360);let u=(a+r)/2;return r===a?l=0:u<=.5?l=s/(r+a):l=s/(2-r-a),[o,l*100,u*100]};H.rgb.hsv=function(t){let e,i,n,a,r,s=t[0]/255,o=t[1]/255,l=t[2]/255,u=Math.max(s,o,l),c=u-Math.min(s,o,l),p=function(d){return(u-d)/6/c+1/2};if(c===0)a=0,r=0;else{switch(r=c/u,e=p(s),i=p(o),n=p(l),u){case s:{a=n-i;break}case o:{a=1/3+e-n;break}case l:{a=2/3+i-e;break}}a<0?a+=1:a>1&&(a-=1)}return[a*360,r*100,u*100]};H.rgb.hwb=function(t){let e=t[0],i=t[1],n=t[2],a=H.rgb.hsl(t)[0],r=1/255*Math.min(e,Math.min(i,n));return n=1-1/255*Math.max(e,Math.max(i,n)),[a,r*100,n*100]};H.rgb.oklab=function(t){let e=ds(t[0]/255),i=ds(t[1]/255),n=ds(t[2]/255),a=Math.cbrt(.4122214708*e+.5363325363*i+.0514459929*n),r=Math.cbrt(.2119034982*e+.6806995451*i+.1073969566*n),s=Math.cbrt(.0883024619*e+.2817188376*i+.6299787005*n),o=.2104542553*a+.793617785*r-.0040720468*s,l=1.9779984951*a-2.428592205*r+.4505937099*s,u=.0259040371*a+.7827717662*r-.808675766*s;return[o*100,l*100,u*100]};H.rgb.cmyk=function(t){let e=t[0]/255,i=t[1]/255,n=t[2]/255,a=Math.min(1-e,1-i,1-n),r=(1-e-a)/(1-a)||0,s=(1-i-a)/(1-a)||0,o=(1-n-a)/(1-a)||0;return[r*100,s*100,o*100,a*100]};function Q8(t,e){return(t[0]-e[0])**2+(t[1]-e[1])**2+(t[2]-e[2])**2}H.rgb.keyword=function(t){let e=IH[t];if(e)return e;let i=Number.POSITIVE_INFINITY,n;for(let a of Object.keys(Vn)){let r=Vn[a],s=Q8(t,r);sht?i**(1/3):7.787*i+16/116,n=n>ht?n**(1/3):7.787*n+16/116,a=a>ht?a**(1/3):7.787*a+16/116;let r=116*n-16,s=500*(i-n),o=200*(n-a);return[r,s,o]};H.hsl.rgb=function(t){let e=t[0]/360,i=t[1]/100,n=t[2]/100,a,r;if(i===0)return r=n*255,[r,r,r];let s=n<.5?n*(1+i):n+i-n*i,o=2*n-s,l=[0,0,0];for(let u=0;u<3;u++)a=e+1/3*-(u-1),a<0&&a++,a>1&&a--,6*a<1?r=o+(s-o)*6*a:2*a<1?r=s:3*a<2?r=o+(s-o)*(2/3-a)*6:r=o,l[u]=r*255;return l};H.hsl.hsv=function(t){let e=t[0],i=t[1]/100,n=t[2]/100,a=i,r=Math.max(n,.01);n*=2,i*=n<=1?n:2-n,a*=r<=1?r:2-r;let s=(n+i)/2,o=n===0?2*a/(r+a):2*i/(n+i);return[e,o*100,s*100]};H.hsv.rgb=function(t){let e=t[0]/60,i=t[1]/100,n=t[2]/100,a=Math.floor(e)%6,r=e-Math.floor(e),s=255*n*(1-i),o=255*n*(1-i*r),l=255*n*(1-i*(1-r));switch(n*=255,a){case 0:return[n,l,s];case 1:return[o,n,s];case 2:return[s,n,l];case 3:return[s,o,n];case 4:return[l,s,n];case 5:return[n,s,o]}};H.hsv.hsl=function(t){let e=t[0],i=t[1]/100,n=t[2]/100,a=Math.max(n,.01),r,s;s=(2-i)*n;let o=(2-i)*a;return r=i*a,r/=o<=1?o:2-o,r=r||0,s/=2,[e,r*100,s*100]};H.hwb.rgb=function(t){let e=t[0]/360,i=t[1]/100,n=t[2]/100,a=i+n,r;a>1&&(i/=a,n/=a);let s=Math.floor(6*e),o=1-n;r=6*e-s,(s&1)!==0&&(r=1-r);let l=i+r*(o-i),u,c,p;switch(s){default:case 6:case 0:{u=o,c=l,p=i;break}case 1:{u=l,c=o,p=i;break}case 2:{u=i,c=o,p=l;break}case 3:{u=i,c=l,p=o;break}case 4:{u=l,c=i,p=o;break}case 5:{u=o,c=i,p=l;break}}return[u*255,c*255,p*255]};H.cmyk.rgb=function(t){let e=t[0]/100,i=t[1]/100,n=t[2]/100,a=t[3]/100,r=1-Math.min(1,e*(1-a)+a),s=1-Math.min(1,i*(1-a)+a),o=1-Math.min(1,n*(1-a)+a);return[r*255,s*255,o*255]};H.xyz.rgb=function(t){let e=t[0]/100,i=t[1]/100,n=t[2]/100,a,r,s;return a=e*3.2404542+i*-1.5371385+n*-.4985314,r=e*-.969266+i*1.8760108+n*.041556,s=e*.0556434+i*-.2040259+n*1.0572252,a=ps(a),r=ps(r),s=ps(s),[a*255,r*255,s*255]};H.xyz.lab=function(t){let e=t[0],i=t[1],n=t[2];e/=95.047,i/=100,n/=108.883,e=e>ht?e**(1/3):7.787*e+16/116,i=i>ht?i**(1/3):7.787*i+16/116,n=n>ht?n**(1/3):7.787*n+16/116;let a=116*i-16,r=500*(e-i),s=200*(i-n);return[a,r,s]};H.xyz.oklab=function(t){let e=t[0]/100,i=t[1]/100,n=t[2]/100,a=Math.cbrt(.8189330101*e+.3618667424*i-.1288597137*n),r=Math.cbrt(.0329845436*e+.9293118715*i+.0361456387*n),s=Math.cbrt(.0482003018*e+.2643662691*i+.633851707*n),o=.2104542553*a+.793617785*r-.0040720468*s,l=1.9779984951*a-2.428592205*r+.4505937099*s,u=.0259040371*a+.7827717662*r-.808675766*s;return[o*100,l*100,u*100]};H.oklab.oklch=function(t){return H.lab.lch(t)};H.oklab.xyz=function(t){let e=t[0]/100,i=t[1]/100,n=t[2]/100,a=(.999999998*e+.396337792*i+.215803758*n)**3,r=(1.000000008*e-.105561342*i-.063854175*n)**3,s=(1.000000055*e-.089484182*i-1.291485538*n)**3,o=1.227013851*a-.55779998*r+.281256149*s,l=-.040580178*a+1.11225687*r-.071676679*s,u=-.076381285*a-.421481978*r+1.58616322*s;return[o*100,l*100,u*100]};H.oklab.rgb=function(t){let e=t[0]/100,i=t[1]/100,n=t[2]/100,a=(e+.3963377774*i+.2158037573*n)**3,r=(e-.1055613458*i-.0638541728*n)**3,s=(e-.0894841775*i-1.291485548*n)**3,o=ps(4.0767416621*a-3.3077115913*r+.2309699292*s),l=ps(-1.2684380046*a+2.6097574011*r-.3413193965*s),u=ps(-.0041960863*a-.7034186147*r+1.707614701*s);return[o*255,l*255,u*255]};H.oklch.oklab=function(t){return H.lch.lab(t)};H.lab.xyz=function(t){let e=t[0],i=t[1],n=t[2],a,r,s;r=(e+16)/116,a=i/500+r,s=r-n/200;let o=r**3,l=a**3,u=s**3;return r=o>ht?o:(r-16/116)/7.787,a=l>ht?l:(a-16/116)/7.787,s=u>ht?u:(s-16/116)/7.787,a*=95.047,r*=100,s*=108.883,[a,r,s]};H.lab.lch=function(t){let e=t[0],i=t[1],n=t[2],a;a=Math.atan2(n,i)*360/2/Math.PI,a<0&&(a+=360);let s=Math.sqrt(i*i+n*n);return[e,s,a]};H.lch.lab=function(t){let e=t[0],i=t[1],a=t[2]/360*2*Math.PI,r=i*Math.cos(a),s=i*Math.sin(a);return[e,r,s]};H.rgb.ansi16=function(t,e=null){let[i,n,a]=t,r=e===null?H.rgb.hsv(t)[2]:e;if(r=Math.round(r/50),r===0)return 30;let s=30+(Math.round(a/255)<<2|Math.round(n/255)<<1|Math.round(i/255));return r===2&&(s+=60),s};H.hsv.ansi16=function(t){return H.rgb.ansi16(H.hsv.rgb(t),t[2])};H.rgb.ansi256=function(t){let e=t[0],i=t[1],n=t[2];return e>>4===i>>4&&i>>4===n>>4?e<8?16:e>248?231:Math.round((e-8)/247*24)+232:16+36*Math.round(e/255*5)+6*Math.round(i/255*5)+Math.round(n/255*5)};H.ansi16.rgb=function(t){t=t[0];let e=t%10;if(e===0||e===7)return t>50&&(e+=3.5),e=e/10.5*255,[e,e,e];let i=(Math.trunc(t>50)+1)*.5,n=(e&1)*i*255,a=(e>>1&1)*i*255,r=(e>>2&1)*i*255;return[n,a,r]};H.ansi256.rgb=function(t){if(t=t[0],t>=232){let r=(t-232)*10+8;return[r,r,r]}t-=16;let e,i=Math.floor(t/36)/5*255,n=Math.floor((e=t%36)/6)/5*255,a=e%6/5*255;return[i,n,a]};H.rgb.hex=function(t){let i=(((Math.round(t[0])&255)<<16)+((Math.round(t[1])&255)<<8)+(Math.round(t[2])&255)).toString(16).toUpperCase();return"000000".slice(i.length)+i};H.hex.rgb=function(t){let e=t.toString(16).match(/[a-f\d]{6}|[a-f\d]{3}/i);if(!e)return[0,0,0];let i=e[0];e[0].length===3&&(i=[...i].map(o=>o+o).join(""));let n=Number.parseInt(i,16),a=n>>16&255,r=n>>8&255,s=n&255;return[a,r,s]};H.rgb.hcg=function(t){let e=t[0]/255,i=t[1]/255,n=t[2]/255,a=Math.max(Math.max(e,i),n),r=Math.min(Math.min(e,i),n),s=a-r,o,l=s<1?r/(1-s):0;return s<=0?o=0:a===e?o=(i-n)/s%6:a===i?o=2+(n-e)/s:o=4+(e-i)/s,o/=6,o%=1,[o*360,s*100,l*100]};H.hsl.hcg=function(t){let e=t[1]/100,i=t[2]/100,n=i<.5?2*e*i:2*e*(1-i),a=0;return n<1&&(a=(i-.5*n)/(1-n)),[t[0],n*100,a*100]};H.hsv.hcg=function(t){let e=t[1]/100,i=t[2]/100,n=e*i,a=0;return n<1&&(a=(i-n)/(1-n)),[t[0],n*100,a*100]};H.hcg.rgb=function(t){let e=t[0]/360,i=t[1]/100,n=t[2]/100;if(i===0)return[n*255,n*255,n*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-i)*n,[(i*a[0]+l)*255,(i*a[1]+l)*255,(i*a[2]+l)*255]};H.hcg.hsv=function(t){let e=t[1]/100,i=t[2]/100,n=e+i*(1-e),a=0;return n>0&&(a=e/n),[t[0],a*100,n*100]};H.hcg.hsl=function(t){let e=t[1]/100,n=t[2]/100*(1-e)+.5*e,a=0;return n>0&&n<.5?a=e/(2*n):n>=.5&&n<1&&(a=e/(2*(1-n))),[t[0],a*100,n*100]};H.hcg.hwb=function(t){let e=t[1]/100,i=t[2]/100,n=e+i*(1-e);return[t[0],(n-e)*100,(1-n)*100]};H.hwb.hcg=function(t){let e=t[1]/100,n=1-t[2]/100,a=n-e,r=0;return a<1&&(r=(n-a)/(1-a)),[t[0],a*100,r*100]};H.apple.rgb=function(t){return[t[0]/65535*255,t[1]/65535*255,t[2]/65535*255]};H.rgb.apple=function(t){return[t[0]/255*65535,t[1]/255*65535,t[2]/255*65535]};H.gray.rgb=function(t){return[t[0]/100*255,t[0]/100*255,t[0]/100*255]};H.gray.hsl=function(t){return[0,0,t[0]]};H.gray.hsv=H.gray.hsl;H.gray.hwb=function(t){return[0,100,t[0]]};H.gray.cmyk=function(t){return[0,0,0,t[0]]};H.gray.lab=function(t){return[t[0],0,0]};H.gray.hex=function(t){let e=Math.round(t[0]/100*255)&255,n=((e<<16)+(e<<8)+e).toString(16).toUpperCase();return"000000".slice(n.length)+n};H.rgb.gray=function(t){return[(t[0]+t[1]+t[2])/3/255*100]};function Y8(){let t={},e=Object.keys(H);for(let{length:i}=e,n=0;n0;){let n=i.pop(),a=Object.keys(H[n]);for(let{length:r}=a,s=0;s1&&(i=n),t(i))};return"conversion"in t&&(e.conversion=t.conversion),e}function r7(t){let e=function(...i){let n=i[0];if(n==null)return n;n.length>1&&(i=n);let a=t(i);if(typeof a=="object")for(let{length:r}=a,s=0;s0){this.model=e||"rgb",n=fi[this.model].channels;let a=Array.prototype.slice.call(t,0,n);this.color=lA(a,n),this.valpha=typeof t[n]=="number"?t[n]: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 sA))throw new Error("Unable to parse color from object: "+JSON.stringify(t));this.model=sA[r];let{labels:s}=fi[this.model],o=[];for(i=0;i(t%360+360)%360),saturationl:Xe("hsl",1,li(100)),lightness:Xe("hsl",2,li(100)),saturationv:Xe("hsv",1,li(100)),value:Xe("hsv",2,li(100)),chroma:Xe("hcg",1,li(100)),gray:Xe("hcg",2,li(100)),white:Xe("hwb",1,li(100)),wblack:Xe("hwb",2,li(100)),cyan:Xe("cmyk",0,li(100)),magenta:Xe("cmyk",1,li(100)),yellow:Xe("cmyk",2,li(100)),black:Xe("cmyk",3,li(100)),x:Xe("xyz",0,li(95.047)),y:Xe("xyz",1,li(100)),z:Xe("xyz",2,li(108.833)),l:Xe("lab",0,li(100)),a:Xe("lab",1),b:Xe("lab",2),keyword(t){return t!==void 0?new ui(t):fi[this.model].keyword(this.color)},hex(t){return t!==void 0?new ui(t):ci.to.hex(...this.rgb().round().color)},hexa(t){if(t!==void 0)return new ui(t);let e=this.rgb().round().color,i=Math.round(this.valpha*255).toString(16).toUpperCase();return i.length===1&&(i="0"+i),ci.to.hex(...e)+i},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[i,n]of t.entries()){let a=n/255;e[i]=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(),i=t.luminosity();return e>i?(e+.05)/(i+.05):(i+.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 ui.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(),i=e.color[0];return i=(i+t)%360,i=i<0?360+i:i,e.color[0]=i,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 i=t.rgb(),n=this.rgb(),a=e===void 0?.5:e,r=2*a-1,s=i.alpha()-n.alpha(),o=((r*s===-1?r:(r+s)/(1+r*s))+1)/2,l=1-o;return ui.rgb(o*i.red()+l*n.red(),o*i.green()+l*n.green(),o*i.blue()+l*n.blue(),i.alpha()*a+n.alpha()*(1-a))}};for(let t of Object.keys(fi)){if(zH.includes(t))continue;let{channels:e}=fi[t];ui.prototype[t]=function(...i){return this.model===t?new ui(this):i.length>0?new ui(i,t):new ui([...l7(fi[this.model][t].raw(this.color)),this.valpha],t)},ui[t]=function(...i){let n=i[0];return typeof n=="number"&&(n=lA(i,e)),new ui(n,t)}}function s7(t,e){return Number(t.toFixed(e))}function o7(t){return function(e){return s7(e,t)}}function Xe(t,e,i){t=Array.isArray(t)?t:[t];for(let n of t)(oA[n]||=[])[e]=i;return t=t[0],function(n){let a;return n!==void 0?(i&&(n=i(n)),a=this[t](),a.color[e]=n,a):(a=this[t]().color[e],i&&(a=i(a)),a)}}function li(t){return function(e){return Math.max(0,Math.min(t,e))}}function l7(t){return Array.isArray(t)?t:[t]}function lA(t,e){for(let i=0;i{"use strict";function En(t,e){if(e)return new En(t).style(e);if(!(this instanceof En))return new En(t);this.text=t}En.prototype.prefix="\x1B[";En.prototype.suffix="m";En.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 i=e.substring(0,2),n=e.substring(2,4),a=e.substring(4,6);return[parseInt(i,16),parseInt(n,16),parseInt(a,16)]};En.prototype.rgb=function(e,i,n){var a=e/255*5,r=i/255*5,s=n/255*5;return this.ansi(a,r,s)};En.prototype.ansi=function(e,i,n){var a=Math.round(e),r=Math.round(i),s=Math.round(n);return 16+a*36+r*6+s};En.prototype.reset=function(){return this.prefix+"39;49"+this.suffix};En.prototype.style=function(e){return this.prefix+"38;5;"+this.rgb.apply(this,this.hex(e))+this.suffix+this.text+this.reset()};$H.exports=En});var LH=w((zle,UH)=>{var d7=GH(),h7=NH();UH.exports=function(e,i){var n=i.namespace,a=i.colors!==!1?h7(n+":",d7(n)):n+":";return e[0]=a+" "+e[0],e}});var BH=w((Dle,WH)=>{"use strict";WH.exports=function(e,i){if(!i)return!1;for(var n=i.split(/[\s,]+/),a=0;a{var g7=BH();FH.exports=function(e){return function(n){try{return g7(n,e())}catch{}return!1}}});var ZH=w(($le,JH)=>{var m7=VH();JH.exports=m7(function(){return process.env.DEBUG||process.env.DIAGNOSTICS})});var QH=w((Nle,KH)=>{KH.exports=function(t,e){try{Function.prototype.apply.call(console.log,console,e)}catch{}}});var XH=w((Ule,YH)=>{var f7=rA(),w7=require("tty").isatty(1),Xp=f7(function t(e,i){return i=i||{},i.colors="colors"in i?i.colors:w7,i.namespace=e,i.prod=!1,i.dev=!0,!t.enabled(e)&&!(i.force||t.force)?t.nope(i):t.yep(i)});Xp.modify(LH());Xp.use(ZH());Xp.set(QH());YH.exports=Xp});var bl=w((Lle,uA)=>{process.env.NODE_ENV==="production"?uA.exports=_H():uA.exports=XH()});var iR=w((Wle,eR)=>{"use strict";var cA=require("fs"),{StringDecoder:v7}=require("string_decoder"),{Stream:C7}=Za();function A7(){}eR.exports=(t,e)=>{let i=Buffer.alloc(65536),n=new v7("utf8"),a=new C7,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")},cA.open(t.file,"a+","0644",(l,u)=>{if(l){e?e(l):a.emit("error",l),a.destroy();return}(function c(){if(a.destroyed){cA.close(u,A7);return}return cA.read(u,i,0,i.length,s,(p,d)=>{if(p){e?e(p):a.emit("error",p),a.destroy();return}if(!d)return r&&((t.start==null||o>t.start)&&(e?e(null,r):a.emit("line",r)),o++,r=""),setTimeout(c,1e3);let h=n.write(i.slice(0,d));e||a.emit("data",h),h=(r+h).split(/\n+/);let g=h.length-1,m=0;for(;mt.start)&&(e?e(null,h[m]):a.emit("line",h[m])),o++;return r=h[g],s+=d,c()})})()}),e?a.destroy:a}});var rR=w((Fle,aR)=>{"use strict";var Ki=require("fs"),wi=require("path"),nR=CH(),b7=require("zlib"),{MESSAGE:y7}=ri(),{Stream:P7,PassThrough:tR}=Za(),j7=os(),kn=bl()("winston:file"),S7=require("os"),O7=iR();aR.exports=class extends j7{constructor(e={}){super(e),this.name=e.name||"file";function i(n,...a){a.slice(1).forEach(r=>{if(e[r])throw new Error(`Cannot set ${r} and ${n} together`)})}if(this._stream=new tR,this._stream.setMaxListeners(30),this._onError=this._onError.bind(this),e.filename||e.dirname)i("filename or dirname","stream"),this._basename=this.filename=e.filename?wi.basename(e.filename):"winston.log",this.dirname=e.dirname||wi.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"),i("stream","filename","maxsize"),this._dest=this._stream.pipe(this._setupStream(e.stream)),this.dirname=wi.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:S7.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,i=()=>{}){if(this.silent)return i(),!0;if(this._drain){this._stream.once("drain",()=>{this._drain=!1,this.log(e,i)});return}if(this._rotate){this._stream.once("rotate",()=>{this._rotate=!1,this.log(e,i)});return}if(this.lazy){if(!this._fileExist){this._opening||this.open(),this.once("open",()=>{this._fileExist=!0,this.log(e,i)});return}if(this._needsNewFile(this._pendingSize)){this._dest.once("close",()=>{this._opening||this.open(),this.once("open",()=>{this.log(e,i)})});return}}let n=`${e[y7]}${this.eol}`,a=Buffer.byteLength(n);function r(){if(this._size+=a,this._pendingSize-=a,kn("logged %s %s",this._size,n),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(n,r.bind(this));return s?i():(this._drain=!0,this._stream.once("drain",()=>{this._drain=!1,i()})),kn("written",s,this._drain),this.finishIfEnding(),s}query(e,i){typeof e=="function"&&(i=e,e={}),e=p(e);let n=wi.join(this.dirname,this.filename),a="",r=[],s=0,o=Ki.createReadStream(n,{encoding:"utf8"});o.on("error",d=>{if(o.readable&&o.destroy(),!!i)return d.code!=="ENOENT"?i(d):i(null,r)}),o.on("data",d=>{d=(a+d).split(/\n+/);let h=d.length-1,g=0;for(;g=e.start)&&l(d[g]),s++;a=d[h]}),o.on("close",()=>{a&&l(a,!0),e.order==="desc"&&(r=r.reverse()),i&&i(null,r)});function l(d,h){try{let g=JSON.parse(d);c(g)&&u(g)}catch(g){h||o.emit("error",g)}}function u(d){if(e.rows&&r.length>=e.rows&&e.order!=="desc"){o.readable&&o.destroy();return}e.fields&&(d=e.fields.reduce((h,g)=>(h[g]=d[g],h),{})),e.order==="desc"&&r.length>=e.rows&&r.shift(),r.push(d)}function c(d){if(!d||typeof d!="object")return;let h=new Date(d.timestamp);if(!(e.from&&he.until||e.level&&e.level!==d.level))return!0}function p(d){return d=d||{},d.rows=d.rows||d.limit||10,d.start=d.start||0,d.until=d.until||new Date,typeof d.until!="object"&&(d.until=new Date(d.until)),d.from=d.from||d.until-1440*60*1e3,typeof d.from!="object"&&(d.from=new Date(d.from)),d.order=d.order||"desc",d}}stream(e={}){let i=wi.join(this.dirname,this.filename),n=new P7,a={file:i,start:e.start};return n.destroy=O7(a,(r,s)=>{if(r)return n.emit("error",r);try{n.emit("data",s),s=JSON.parse(s),n.emit("log",s)}catch(o){n.emit("error",o)}}),n}open(){this.filename&&(this._opening||(this._opening=!0,this.stat((e,i)=>{if(e)return this.emit("error",e);kn("stat done: %s { size: %s }",this.filename,i),this._size=i,this._dest=this._createStream(this._stream),this._opening=!1,this.once("open",()=>{this._stream.emit("rotate")||(this._rotate=!1)})})))}stat(e){let i=this._getFile(),n=wi.join(this.dirname,i);Ki.stat(n,(a,r)=>{if(a&&a.code==="ENOENT")return kn("ENOENT\xA0ok",n),this.filename=i,e(null,0);if(a)return kn(`err ${a.code} ${n}`),e(a);if(!r||this._needsNewFile(r.size))return this._incFile(()=>this.stat(e));this.filename=i,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 i=wi.join(this.dirname,this.filename);kn("create stream start",i,this.options);let n=Ki.createWriteStream(i,this.options).on("error",a=>kn(a)).on("close",()=>kn("close",n.path,n.bytesWritten)).on("open",()=>{kn("file open ok",i),this.emit("open",i),e.pipe(n),this.rotatedWhileOpening&&(this._stream=new tR,this._stream.setMaxListeners(30),this._rotateFile(),this.rotatedWhileOpening=!1,this._cleanupStream(n),e.end())});return kn("create stream ok",i),n}_incFile(e){kn("_incFile",this.filename);let i=wi.extname(this._basename),n=wi.basename(this._basename,i),a=[];this.zippedArchive&&a.push(function(r){let s=this._created>0&&!this.tailable?this._created:"";this._compressFile(wi.join(this.dirname,`${n}${s}${i}`),wi.join(this.dirname,`${n}${s}${i}.gz`),r)}.bind(this)),a.push(function(r){this.tailable?this._checkMaxFilesTailable(i,n,r):(this._created+=1,this._checkMaxFilesIncrementing(i,n,r))}.bind(this)),nR(a,e)}_getFile(){let e=wi.extname(this._basename),i=wi.basename(this._basename,e),n=this.rotationFormat?this.rotationFormat():this._created;return!this.tailable&&this._created?`${i}${n}${e}`:`${i}${e}`}_checkMaxFilesIncrementing(e,i,n){if(!this.maxFiles||this._created1;s--)a.push(function(o,l){let u=`${i}${o-1}${e}${r}`,c=wi.join(this.dirname,u);Ki.exists(c,p=>{if(!p)return l(null);u=`${i}${o}${e}${r}`,Ki.rename(c,wi.join(this.dirname,u),l)})}.bind(this,s));nR(a,()=>{Ki.rename(wi.join(this.dirname,`${i}${e}${r}`),wi.join(this.dirname,`${i}1${e}${r}`),n)})}_compressFile(e,i,n){Ki.access(e,Ki.F_OK,a=>{if(a)return n();var r=b7.createGzip(),s=Ki.createReadStream(e),o=Ki.createWriteStream(i);o.on("finish",()=>{Ki.unlink(e,n)}),s.pipe(r).pipe(o)})}_createLogDirIfNotExist(e){Ki.existsSync(e)||Ki.mkdirSync(e,{recursive:!0})}}});var oR=w((Jle,sR)=>{"use strict";var x7=require("http"),T7=require("https"),{Stream:M7}=Za(),E7=os(),{configure:k7}=rl();sR.exports=class extends E7{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,i){this._request(e,null,null,(n,a)=>{a&&a.statusCode!==200&&(n=new Error(`Invalid HTTP Status Code: ${a.statusCode}`)),n?this.emit("warn",n):this.emit("logged",e)}),i&&setImmediate(i)}query(e,i){typeof e=="function"&&(i=e,e={}),e={method:"query",params:this.normalizeQuery(e)};let n=e.params.auth||null;delete e.params.auth;let a=e.params.path||null;delete e.params.path,this._request(e,n,a,(r,s,o)=>{if(s&&s.statusCode!==200&&(r=new Error(`Invalid HTTP Status Code: ${s.statusCode}`)),r)return i(r);if(typeof o=="string")try{o=JSON.parse(o)}catch(l){return i(l)}i(null,o)})}stream(e={}){let i=new M7;e={method:"stream",params:e};let n=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,n);return i.destroy=()=>s.destroy(),s.on("data",o=>{o=(r+o).split(/\n+/);let l=o.length-1,u=0;for(;ui.emit("error",o)),i}_request(e,i,n,a){e=e||{},i=i||this.auth,n=n||this.path||"",this.batch?this._doBatch(e,a,i,n):this._doRequest(e,a,i,n)}_doBatch(e,i,n,a){if(this.batchOptions.push(e),this.batchOptions.length===1){let r=this;this.batchCallback=i,this.batchTimeoutID=setTimeout(function(){r.batchTimeoutID=-1,r._doBatchRequest(r.batchCallback,n,a)},this.batchInterval)}this.batchOptions.length===this.batchCount&&this._doBatchRequest(this.batchCallback,n,a)}_doBatchRequest(e,i,n){this.batchTimeoutID>0&&(clearTimeout(this.batchTimeoutID),this.batchTimeoutID=-1);let a=this.batchOptions.slice();this.batchOptions=[],this._doRequest(a,e,i,n)}_doRequest(e,i,n,a){let r=Object.assign({},this.headers);n&&n.bearer&&(r.Authorization=`Bearer ${n.bearer}`);let s=(this.ssl?T7:x7).request({...this.options,method:"POST",host:this.host,port:this.port,path:`/${a.replace(/^\//,"")}`,headers:r,auth:n&&n.username&&n.password?`${n.username}:${n.password}`:"",agent:this.agent});s.on("error",i),s.on("response",l=>l.on("end",()=>i(null,l)).resume());let o=k7({...this.maximumDepth&&{maximumDepth:this.maximumDepth}});s.end(Buffer.from(o(e,this.options.replacer),"utf8"))}}});var pA=w((Zle,lR)=>{"use strict";var Jn=t=>t!==null&&typeof t=="object"&&typeof t.pipe=="function";Jn.writable=t=>Jn(t)&&t.writable!==!1&&typeof t._write=="function"&&typeof t._writableState=="object";Jn.readable=t=>Jn(t)&&t.readable!==!1&&typeof t._read=="function"&&typeof t._readableState=="object";Jn.duplex=t=>Jn.writable(t)&&Jn.readable(t);Jn.transform=t=>Jn.duplex(t)&&typeof t._transform=="function";lR.exports=Jn});var cR=w((Qle,uR)=>{"use strict";var q7=pA(),{MESSAGE:_7}=ri(),H7=require("os"),R7=os();uR.exports=class extends R7{constructor(e={}){if(super(e),!e.stream||!q7(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:H7.EOL}log(e,i){if(setImmediate(()=>this.emit("logged",e)),this.isObjectMode){this._stream.write(e),i&&i();return}this._stream.write(`${e[_7]}${this.eol}`),i&&i()}}});var pR=w(yl=>{"use strict";Object.defineProperty(yl,"Console",{configurable:!0,enumerable:!0,get(){return z0()}});Object.defineProperty(yl,"File",{configurable:!0,enumerable:!0,get(){return rR()}});Object.defineProperty(yl,"Http",{configurable:!0,enumerable:!0,get(){return oR()}});Object.defineProperty(yl,"Stream",{configurable:!0,enumerable:!0,get(){return cR()}})});var id=w(Pl=>{"use strict";var ed=hC(),{configs:dA}=ri();Pl.cli=ed.levels(dA.cli);Pl.npm=ed.levels(dA.npm);Pl.syslog=ed.levels(dA.syslog);Pl.addColors=ed.levels});var hR=w((nd,dR)=>{"use strict";Object.defineProperty(nd,"__esModule",{value:!0});var I7=Hp(),z7=Ka(I7),D7=Wp(),G7=Ka(D7),$7=KC(),N7=Ka($7),U7=VC(),L7=Ka(U7),W7=JC(),B7=Ka(W7),F7=Ja(),V7=Ka(F7),J7=us(),Z7=Ka(J7);function Ka(t){return t&&t.__esModule?t:{default:t}}function K7(t,e,i){i=(0,L7.default)(i);var n=0,a=0,{length:r}=t,s=!1;r===0&&i(null);function o(l,u){l===!1&&(s=!0),s!==!0&&(l?i(l):(++a===r||u===G7.default)&&i(null))}for(;n{"use strict";Object.defineProperty(td,"__esModule",{value:!0});td.default=X7;function X7(t){return(e,i,n)=>t(e,n)}gR.exports=td.default});var sd=w((rd,fR)=>{"use strict";Object.defineProperty(rd,"__esModule",{value:!0});var eY=hR(),iY=ad(eY),nY=mR(),tY=ad(nY),aY=Ja(),rY=ad(aY),sY=us(),oY=ad(sY);function ad(t){return t&&t.__esModule?t:{default:t}}function lY(t,e,i){return(0,iY.default)(t,(0,tY.default)((0,rY.default)(e)),i)}rd.default=(0,oY.default)(lY,3);fR.exports=rd.default});var vR=w((eue,wR)=>{"use strict";var uY=Object.prototype.toString;wR.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 i=e.toString(),n=uY.call(e).slice(8,-1);return n==="Function"?i=i.substring(i.indexOf("(")+1,i.indexOf(")")):i=n,i||"anonymous"}});var hA=w((iue,CR)=>{"use strict";var cY=vR();CR.exports=function(e){var i=0,n;function a(){return i||(i=1,n=e.apply(this,arguments),e=null),n}return a.displayName=cY(e),a}});var gA=w(Sl=>{Sl.get=function(t){var e=Error.stackTraceLimit;Error.stackTraceLimit=1/0;var i={},n=Error.prepareStackTrace;Error.prepareStackTrace=function(r,s){return s},Error.captureStackTrace(i,t||Sl.get);var a=i.stack;return Error.prepareStackTrace=n,Error.stackTraceLimit=e,a};Sl.parse=function(t){if(!t.stack)return[];var e=this,i=t.stack.split(` `).slice(1);return i.map(function(n){if(n.match(/^\s*[-]{4,}$/))return e._createParsedCallSite({fileName:n,lineNumber:null,functionName:null,typeName:null,methodName:null,columnNumber:null,native:null});var a=n.match(/at (?:(.+)\s+\()?(?:(.+?):(\d+)(?::(\d+))?|([^)]+))\)?/);if(a){var r=null,s=null,o=null,l=null,u=null,c=a[5]==="native";if(a[1]){o=a[1];var p=o.lastIndexOf(".");if(o[p-1]=="."&&p--,p>0){r=o.substr(0,p),s=o.substr(p+1);var d=r.indexOf(".Module");d>0&&(o=o.substr(d+1),r=r.substr(0,d))}l=null}s&&(l=r,u=s),s===""&&(u=null,o=null);var h={fileName:a[2]||null,lineNumber:parseInt(a[3],10)||null,functionName:o,typeName:l,methodName:u,columnNumber:parseInt(a[4],10)||null,native:c};return e._createParsedCallSite(h)}}).filter(function(n){return!!n})};function jl(t){for(var e in t)this[e]=t[e]}var pY=["this","typeName","functionName","methodName","fileName","lineNumber","columnNumber","function","evalOrigin"],dY=["topLevel","eval","native","constructor"];pY.forEach(function(t){jl.prototype[t]=null,jl.prototype["get"+t[0].toUpperCase()+t.substr(1)]=function(){return this[t]}});dY.forEach(function(t){jl.prototype[t]=!1,jl.prototype["is"+t[0].toUpperCase()+t.substr(1)]=function(){return this[t]}});Sl._createParsedCallSite=function(t){return new jl(t)}});var bR=w((aue,AR)=>{"use strict";var{Writable:hY}=Za();AR.exports=class extends hY{constructor(e){if(super({objectMode:!0}),!e)throw new Error("ExceptionStream requires a TransportStream instance.");this.handleExceptions=!0,this.transport=e}_write(e,i,n){return e.exception?this.transport.log(e,n):(n(),!0)}}});var fA=w((sue,jR)=>{"use strict";var yR=require("os"),gY=sd(),mA=bl()("winston:exception"),mY=hA(),PR=gA(),fY=bR();jR.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(i=>{if(Array.isArray(i))return i.forEach(n=>this._addHandler(n));this._addHandler(i)}),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 i=null;return e&&(i=typeof e=="string"?e:e.message),{error:e,level:"error",message:[`uncaughtException: ${i||"(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:yR.loadavg(),uptime:yR.uptime()}}getTrace(e){return(e?PR.parse(e):PR.get()).map(n=>({column:n.getColumnNumber(),file:n.getFileName(),function:n.getFunctionName(),line:n.getLineNumber(),method:n.getMethodName(),native:n.isNative()}))}_addHandler(e){if(!this.handlers.has(e)){e.handleExceptions=!0;let i=new fY(e);this.handlers.set(e,i),this.logger.pipe(i)}}_uncaughtException(e){let i=this.getAllInfo(e),n=this._getExceptionHandlers(),a=typeof this.logger.exitOnError=="function"?this.logger.exitOnError(e):this.logger.exitOnError,r;!n.length&&a&&(console.warn("winston: exitOnError cannot be true with no exception handlers."),console.warn("winston: not exiting process."),a=!1);function s(){mA("doExit",a),mA("process._exiting",process._exiting),a&&!process._exiting&&(r&&clearTimeout(r),process.exit(1))}if(!n||n.length===0)return process.nextTick(s);gY(n,(o,l)=>{let u=mY(l),c=o.transport||o;function p(d){return()=>{mA(d),u()}}c._ending=!0,c.once("finish",p("finished")),c.once("error",p("error"))},()=>a&&s()),this.logger.log(i),a&&(r=setTimeout(s,3e3))}_getExceptionHandlers(){return this.logger.transports.filter(e=>(e.transport||e).handleExceptions)}}});var OR=w((lue,SR)=>{"use strict";var{Writable:wY}=Za();SR.exports=class extends wY{constructor(e){if(super({objectMode:!0}),!e)throw new Error("RejectionStream requires a TransportStream instance.");this.handleRejections=!0,this.transport=e}_write(e,i,n){return e.rejection?this.transport.log(e,n):(n(),!0)}}});var vA=w((cue,MR)=>{"use strict";var xR=require("os"),vY=sd(),wA=bl()("winston:rejection"),CY=hA(),TR=gA(),AY=OR();MR.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(i=>{if(Array.isArray(i))return i.forEach(n=>this._addHandler(n));this._addHandler(i)}),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 i=null;return e&&(i=typeof e=="string"?e:e.message),{error:e,level:"error",message:[`unhandledRejection: ${i||"(no error message)"}`,e&&e.stack||" No stack trace"].join(` `),stack:e&&e.stack,rejection:!0,date:new Date().toString(),process:this.getProcessInfo(),os:this.getOsInfo(),trace:this.getTrace(e)}}getProcessInfo(){return{pid:process.pid,uid:process.getuid?process.getuid():null,gid:process.getgid?process.getgid():null,cwd:process.cwd(),execPath:process.execPath,version:process.version,argv:process.argv,memoryUsage:process.memoryUsage()}}getOsInfo(){return{loadavg:xR.loadavg(),uptime:xR.uptime()}}getTrace(e){return(e?TR.parse(e):TR.get()).map(n=>({column:n.getColumnNumber(),file:n.getFileName(),function:n.getFunctionName(),line:n.getLineNumber(),method:n.getMethodName(),native:n.isNative()}))}_addHandler(e){if(!this.handlers.has(e)){e.handleRejections=!0;let i=new AY(e);this.handlers.set(e,i),this.logger.pipe(i)}}_unhandledRejection(e){let i=this.getAllInfo(e),n=this._getRejectionHandlers(),a=typeof this.logger.exitOnError=="function"?this.logger.exitOnError(e):this.logger.exitOnError,r;!n.length&&a&&(console.warn("winston: exitOnError cannot be true with no rejection handlers."),console.warn("winston: not exiting process."),a=!1);function s(){wA("doExit",a),wA("process._exiting",process._exiting),a&&!process._exiting&&(r&&clearTimeout(r),process.exit(1))}if(!n||n.length===0)return process.nextTick(s);vY(n,(o,l)=>{let u=CY(l),c=o.transport||o;function p(d){return()=>{wA(d),u()}}c._ending=!0,c.once("finish",p("finished")),c.once("error",p("error"))},()=>a&&s()),this.logger.log(i),a&&(r=setTimeout(s,3e3))}_getRejectionHandlers(){return this.logger.transports.filter(e=>(e.transport||e).handleRejections)}}});var kR=w((pue,ER)=>{"use strict";var CA=class{constructor(e){let i=od();if(typeof e!="object"||Array.isArray(e)||!(e instanceof i))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 i=typeof e[e.length-1]=="object"?e.pop():{};return i.level=i.level||"info",i.durationMs=Date.now()-this.start,this.logger.write(i)}};ER.exports=CA});var od=w((due,RR)=>{"use strict";var{Stream:bY,Transform:yY}=Za(),qR=sd(),{LEVEL:Zn,SPLAT:_R}=ri(),HR=pA(),PY=fA(),jY=vA(),SY=WC(),OY=kR(),{warn:xY}=gC(),TY=id(),MY=/%[scdjifoO%]/g,ld=class extends yY{constructor(e){super({objectMode:!0}),this.configure(e)}child(e){let i=this;return Object.create(i,{write:{value:function(n){let a=Object.assign({},e,n);n instanceof Error&&(a.stack=n.stack,a.message=n.message,a.cause=n.cause),i.write(a)}}})}configure({silent:e,format:i,defaultMeta:n,levels:a,level:r="info",exitOnError:s=!0,transports:o,colors:l,emitErrs:u,formatters:c,padLevels:p,rewriters:d,stripColors:h,exceptionHandlers:g,rejectionHandlers:m}={}){if(this.transports.length&&this.clear(),this.silent=e,this.format=i||this.format||lC()(),this.defaultMeta=n||null,this.levels=a||this.levels||TY.npm.levels,this.level=r,this.exceptions&&this.exceptions.unhandle(),this.rejections&&this.rejections.unhandle(),this.exceptions=new PY(this),this.rejections=new jY(this),this.profilers={},this.exitOnError=s,o&&(o=Array.isArray(o)?o:[o],o.forEach(f=>this.add(f))),l||u||c||p||d||h)throw new Error(["{ colors, emitErrs, formatters, padLevels, rewriters, stripColors } were removed in winston@3.0.0.","Use a custom winston.format(function) instead.","See: https://github.com/winstonjs/winston/tree/master/UPGRADE-3.0.md"].join(` `));g&&this.exceptions.handle(g),m&&this.rejections.handle(m)}getHighestLogLevel(){let e=Ol(this.levels,this.level);return!this.transports||this.transports.length===0?e:this.transports.reduce((i,n)=>{let a=Ol(this.levels,n.level);return a!==null&&a>i?a:i},e)}isLevelEnabled(e){let i=Ol(this.levels,e);if(i===null)return!1;let n=Ol(this.levels,this.level);return n===null?!1:!this.transports||this.transports.length===0?n>=i:this.transports.findIndex(r=>{let s=Ol(this.levels,r.level);return s===null&&(s=n),s>=i})!==-1}log(e,i,...n){if(arguments.length===1)return e[Zn]=e.level,this._addDefaultMeta(e),this.write(e),this;if(arguments.length===2)return i&&typeof i=="object"?(i[Zn]=i.level=e,this._addDefaultMeta(i),this.write(i),this):(i={[Zn]:e,level:e,message:i},this._addDefaultMeta(i),this.write(i),this);let[a]=n;if(typeof a=="object"&&a!==null&&!(i&&i.match&&i.match(MY))){let s=Object.assign({},this.defaultMeta,a,{[Zn]:e,[_R]:n,level:e,message:i});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,{[Zn]:e,[_R]:n,level:e,message:i})),this}_transform(e,i,n){if(this.silent)return n();e[Zn]||(e[Zn]=e.level),!this.levels[e[Zn]]&&this.levels[e[Zn]]!==0&&console.error("[winston] Unknown logger level: %s",e[Zn]),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,n()}}_final(e){let i=this.transports.slice();qR(i,(n,a)=>{if(!n||n.finished)return setImmediate(a);n.once("finish",a),n.end()},e)}add(e){let i=!HR(e)||e.log.length>2?new SY({transport:e}):e;if(!i._writableState||!i._writableState.objectMode)throw new Error("Transports must WritableStreams in objectMode. Set { objectMode: true }.");return this._onEvent("error",i),this._onEvent("warn",i),this.pipe(i),e.handleExceptions&&this.exceptions.handle(),e.handleRejections&&this.rejections.handle(),this}remove(e){if(!e)return this;let i=e;return(!HR(e)||e.log.length>2)&&(i=this.transports.filter(n=>n.transport===e)[0]),i&&this.unpipe(i),this}clear(){return this.unpipe(),this}close(){return this.exceptions.unhandle(),this.rejections.unhandle(),this.clear(),this.emit("close"),this}setLevels(){xY.deprecated("setLevels")}query(e,i){typeof e=="function"&&(i=e,e={}),e=e||{};let n={},a=Object.assign({},e.query||{});function r(o,l){e.query&&typeof o.formatQuery=="function"&&(e.query=o.formatQuery(a)),o.query(e,(u,c)=>{if(u)return l(u);typeof o.formatResults=="function"&&(c=o.formatResults(c,e.format)),l(null,c)})}function s(o,l){r(o,(u,c)=>{l&&(c=u||c,c&&(n[o.name]=c),l()),l=null})}qR(this.transports.filter(o=>!!o.query),s,()=>i(null,n))}stream(e={}){let i=new bY,n=[];return i._streams=n,i.destroy=()=>{let a=n.length;for(;a--;)n[a].destroy()},this.transports.filter(a=>!!a.stream).forEach(a=>{let r=a.stream(e);r&&(n.push(r),r.on("log",s=>{s.transport=s.transport||[],s.transport.push(a.name),i.emit("log",s)}),r.on("error",s=>{s.transport=s.transport||[],s.transport.push(a.name),i.emit("error",s)}))}),i}startTimer(){return new OY(this)}profile(e,...i){let n=Date.now();if(this.profilers[e]){let a=this.profilers[e];delete this.profilers[e],typeof i[i.length-2]=="function"&&(console.warn("Callback function no longer supported as of winston@3.0.0"),i.pop());let r=typeof i[i.length-1]=="object"?i.pop():{};return r.level=r.level||"info",r.durationMs=n-a,r.message=r.message||e,this.write(r)}return this.profilers[e]=n,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,i){function n(a){e==="error"&&!this.transports.includes(i)&&this.add(i),this.emit(e,a,i)}i["__winston"+e]||(i["__winston"+e]=n.bind(this),i.on(e,i["__winston"+e]))}_addDefaultMeta(e){this.defaultMeta&&Object.assign(e,this.defaultMeta)}};function Ol(t,e){let i=t[e];return!i&&i!==0?null:i}Object.defineProperty(ld.prototype,"transports",{configurable:!1,enumerable:!0,get(){let{pipes:t}=this._readableState;return Array.isArray(t)?t:[t].filter(Boolean)}});RR.exports=ld});var AA=w((hue,IR)=>{"use strict";var{LEVEL:EY}=ri(),kY=id(),qY=od(),_Y=bl()("winston:create-logger");function HY(t){return"is"+t.charAt(0).toUpperCase()+t.slice(1)+"Enabled"}IR.exports=function(t={}){t.levels=t.levels||kY.npm.levels;class e extends qY{constructor(a){super(a)}}let i=new e(t);return Object.keys(t.levels).forEach(function(n){if(_Y('Define prototype method for "%s"',n),n==="log"){console.warn('Level "log" not defined: conflicts with the method "log". Use a different level name.');return}e.prototype[n]=function(...a){let r=this||i;if(a.length===1){let[s]=a,o=s&&s.message&&s||{message:s};return o.level=o[EY]=n,r._addDefaultMeta(o),r.write(o),this||i}return a.length===0?(r.log(n,""),r):r.log(n,...a)},e.prototype[HY(n)]=function(){return(this||i).isLevelEnabled(n)}}),i}});var DR=w((mue,zR)=>{"use strict";var RY=AA();zR.exports=class{constructor(e={}){this.loggers=new Map,this.options=e}add(e,i){if(!this.loggers.has(e)){i=Object.assign({},i||this.options);let n=i.transports||this.options.transports;n?i.transports=Array.isArray(n)?n.slice():[n]:i.transports=[];let a=RY(i);a.on("close",()=>this._delete(e)),this.loggers.set(e,a)}return this.loggers.get(e)}get(e,i){return this.add(e,i)}has(e){return!!this.loggers.has(e)}close(e){if(e)return this._removeLogger(e);this.loggers.forEach((i,n)=>this._removeLogger(n))}_removeLogger(e){if(!this.loggers.has(e))return;this.loggers.get(e).close(),this._delete(e)}_delete(e){this.loggers.delete(e)}}});var $R=w(He=>{"use strict";var GR=hC(),{warn:xl}=gC();He.version=R2().version;He.transports=pR();He.config=id();He.addColors=GR.levels;He.format=GR.format;He.createLogger=AA();He.Logger=od();He.ExceptionHandler=fA();He.RejectionHandler=vA();He.Container=DR();He.Transport=ss();He.loggers=new He.Container;var Kn=He.createLogger();Object.keys(He.config.npm.levels).concat(["log","query","stream","add","remove","clear","profile","startTimer","handleExceptions","unhandleExceptions","handleRejections","unhandleRejections","configure","child"]).forEach(t=>He[t]=(...e)=>Kn[t](...e));Object.defineProperty(He,"level",{get(){return Kn.level},set(t){Kn.level=t}});Object.defineProperty(He,"exceptions",{get(){return Kn.exceptions}});Object.defineProperty(He,"rejections",{get(){return Kn.rejections}});["exitOnError"].forEach(t=>{Object.defineProperty(He,t,{get(){return Kn[t]},set(e){Kn[t]=e}})});Object.defineProperty(He,"default",{get(){return{exceptionHandlers:Kn.exceptionHandlers,rejectionHandlers:Kn.rejectionHandlers,transports:Kn.transports}}});xl.deprecated(He,"setLevels");xl.forFunctions(He,"useFormat",["cli"]);xl.forProperties(He,"useFormat",["padLevels","stripColors"]);xl.forFunctions(He,"deprecated",["addRewriter","addFilter","clone","extend"]);xl.forProperties(He,"deprecated",["emitErrs","levelLength"])});var WR=w((wue,LR)=>{var Tl=require("path"),NR=require("fs"),UR=parseInt("0777",8);LR.exports=ds.mkdirp=ds.mkdirP=ds;function ds(t,e,i,n){typeof e=="function"?(i=e,e={}):(!e||typeof e!="object")&&(e={mode:e});var a=e.mode,r=e.fs||NR;a===void 0&&(a=UR),n||(n=null);var s=i||function(){};t=Tl.resolve(t),r.mkdir(t,a,function(o){if(!o)return n=n||t,s(null,n);switch(o.code){case"ENOENT":if(Tl.dirname(t)===t)return s(o);ds(Tl.dirname(t),e,function(l,u){l?s(l,u):ds(t,e,s,u)});break;default:r.stat(t,function(l,u){l||!u.isDirectory()?s(o,n):s(null,n)});break}})}ds.sync=function t(e,i,n){(!i||typeof i!="object")&&(i={mode:i});var a=i.mode,r=i.fs||NR;a===void 0&&(a=UR),n||(n=null),e=Tl.resolve(e);try{r.mkdirSync(e,a),n=n||e}catch(o){switch(o.code){case"ENOENT":n=t(Tl.dirname(e),i,n),t(e,i,n);break;default:var s;try{s=r.statSync(e)}catch{throw o}if(!s.isDirectory())throw o;break}}return n}});var bA=w((vue,BR)=>{function IY(t){this.name="DuplicateSectionError",this.message=t+" already exists",Error.captureStackTrace(this,this.constructor)}function zY(t){this.name=this.constructor.name,this.message="Section "+t+" does not exist.",Error.captureStackTrace(this,this.constructor)}function DY(t,e,i){this.name=this.constructor.name,this.message=`Source contains parsing errors. +`))}_onEvent(e,i){function n(a){e==="error"&&!this.transports.includes(i)&&this.add(i),this.emit(e,a,i)}i["__winston"+e]||(i["__winston"+e]=n.bind(this),i.on(e,i["__winston"+e]))}_addDefaultMeta(e){this.defaultMeta&&Object.assign(e,this.defaultMeta)}};function Ol(t,e){let i=t[e];return!i&&i!==0?null:i}Object.defineProperty(ld.prototype,"transports",{configurable:!1,enumerable:!0,get(){let{pipes:t}=this._readableState;return Array.isArray(t)?t:[t].filter(Boolean)}});RR.exports=ld});var AA=w((hue,IR)=>{"use strict";var{LEVEL:EY}=ri(),kY=id(),qY=od(),_Y=bl()("winston:create-logger");function HY(t){return"is"+t.charAt(0).toUpperCase()+t.slice(1)+"Enabled"}IR.exports=function(t={}){t.levels=t.levels||kY.npm.levels;class e extends qY{constructor(a){super(a)}}let i=new e(t);return Object.keys(t.levels).forEach(function(n){if(_Y('Define prototype method for "%s"',n),n==="log"){console.warn('Level "log" not defined: conflicts with the method "log". Use a different level name.');return}e.prototype[n]=function(...a){let r=this||i;if(a.length===1){let[s]=a,o=s&&s.message&&s||{message:s};return o.level=o[EY]=n,r._addDefaultMeta(o),r.write(o),this||i}return a.length===0?(r.log(n,""),r):r.log(n,...a)},e.prototype[HY(n)]=function(){return(this||i).isLevelEnabled(n)}}),i}});var DR=w((mue,zR)=>{"use strict";var RY=AA();zR.exports=class{constructor(e={}){this.loggers=new Map,this.options=e}add(e,i){if(!this.loggers.has(e)){i=Object.assign({},i||this.options);let n=i.transports||this.options.transports;n?i.transports=Array.isArray(n)?n.slice():[n]:i.transports=[];let a=RY(i);a.on("close",()=>this._delete(e)),this.loggers.set(e,a)}return this.loggers.get(e)}get(e,i){return this.add(e,i)}has(e){return!!this.loggers.has(e)}close(e){if(e)return this._removeLogger(e);this.loggers.forEach((i,n)=>this._removeLogger(n))}_removeLogger(e){if(!this.loggers.has(e))return;this.loggers.get(e).close(),this._delete(e)}_delete(e){this.loggers.delete(e)}}});var $R=w(He=>{"use strict";var GR=hC(),{warn:xl}=gC();He.version=R2().version;He.transports=pR();He.config=id();He.addColors=GR.levels;He.format=GR.format;He.createLogger=AA();He.Logger=od();He.ExceptionHandler=fA();He.RejectionHandler=vA();He.Container=DR();He.Transport=os();He.loggers=new He.Container;var Kn=He.createLogger();Object.keys(He.config.npm.levels).concat(["log","query","stream","add","remove","clear","profile","startTimer","handleExceptions","unhandleExceptions","handleRejections","unhandleRejections","configure","child"]).forEach(t=>He[t]=(...e)=>Kn[t](...e));Object.defineProperty(He,"level",{get(){return Kn.level},set(t){Kn.level=t}});Object.defineProperty(He,"exceptions",{get(){return Kn.exceptions}});Object.defineProperty(He,"rejections",{get(){return Kn.rejections}});["exitOnError"].forEach(t=>{Object.defineProperty(He,t,{get(){return Kn[t]},set(e){Kn[t]=e}})});Object.defineProperty(He,"default",{get(){return{exceptionHandlers:Kn.exceptionHandlers,rejectionHandlers:Kn.rejectionHandlers,transports:Kn.transports}}});xl.deprecated(He,"setLevels");xl.forFunctions(He,"useFormat",["cli"]);xl.forProperties(He,"useFormat",["padLevels","stripColors"]);xl.forFunctions(He,"deprecated",["addRewriter","addFilter","clone","extend"]);xl.forProperties(He,"deprecated",["emitErrs","levelLength"])});var WR=w((wue,LR)=>{var Tl=require("path"),NR=require("fs"),UR=parseInt("0777",8);LR.exports=hs.mkdirp=hs.mkdirP=hs;function hs(t,e,i,n){typeof e=="function"?(i=e,e={}):(!e||typeof e!="object")&&(e={mode:e});var a=e.mode,r=e.fs||NR;a===void 0&&(a=UR),n||(n=null);var s=i||function(){};t=Tl.resolve(t),r.mkdir(t,a,function(o){if(!o)return n=n||t,s(null,n);switch(o.code){case"ENOENT":if(Tl.dirname(t)===t)return s(o);hs(Tl.dirname(t),e,function(l,u){l?s(l,u):hs(t,e,s,u)});break;default:r.stat(t,function(l,u){l||!u.isDirectory()?s(o,n):s(null,n)});break}})}hs.sync=function t(e,i,n){(!i||typeof i!="object")&&(i={mode:i});var a=i.mode,r=i.fs||NR;a===void 0&&(a=UR),n||(n=null),e=Tl.resolve(e);try{r.mkdirSync(e,a),n=n||e}catch(o){switch(o.code){case"ENOENT":n=t(Tl.dirname(e),i,n),t(e,i,n);break;default:var s;try{s=r.statSync(e)}catch{throw o}if(!s.isDirectory())throw o;break}}return n}});var bA=w((vue,BR)=>{function IY(t){this.name="DuplicateSectionError",this.message=t+" already exists",Error.captureStackTrace(this,this.constructor)}function zY(t){this.name=this.constructor.name,this.message="Section "+t+" does not exist.",Error.captureStackTrace(this,this.constructor)}function DY(t,e,i){this.name=this.constructor.name,this.message=`Source contains parsing errors. file: `+t+" line: "+e+` `+i,Error.captureStackTrace(this,this.constructor)}function GY(t,e,i){this.name=this.constructor.name,this.message=`File contains no section headers. file: `+t+" line: "+e+` @@ -67,15 +67,15 @@ file: `+t+" line: "+e+` value: `+i,Error.captureStackTrace(this,this.constructor)}BR.exports={DuplicateSectionError:IY,NoSectionError:zY,ParseError:DY,MissingSectionHeaderError:GY,MaximumInterpolationDepthError:$Y}});var ZR=w((Cue,JR)=>{var NY=bA(),FR=new RegExp(/%\(([\w-]+)\)s/),yA=50;function UY(t,e,i){return VR(t,e,i,1)}function VR(t,e,i,n){let a=t.get(e,i,!0);if(n>yA)throw new NY.MaximumInterpolationDepthError(e,i,a,yA);let r=FR.exec(a);for(;r!==null;){let s=r[1],o=VR(t,e,s,n+1);a=a.substr(0,r.index)+o+a.substr(r.index+r[0].length),r=FR.exec(a)}return a}JR.exports={interpolate:UY,MAXIMUM_INTERPOLATION_DEPTH:yA}});var nI=w((bue,iI)=>{var cd=require("util"),Ml=require("fs"),KR=require("path"),QR=WR(),ud=bA(),LY=ZR(),WY=new RegExp(/^\s*\[([^\]]+)]$/),BY=new RegExp(/^\s*(.*?)\s*[=:]\s*(.*)$/),FY=new RegExp(/^\s*[;#]/),YR=new RegExp(/\r\n|[\n\r\u0085\u2028\u2029]/g),VY=cd.promisify(Ml.readFile),JY=cd.promisify(Ml.writeFile),Aue=cd.promisify(Ml.stat),ZY=cd.promisify(QR);function Si(){this._sections={}}Si.prototype.sections=function(){return Object.keys(this._sections)};Si.prototype.addSection=function(t){if(this._sections.hasOwnProperty(t))throw new ud.DuplicateSectionError(t);this._sections[t]={}};Si.prototype.hasSection=function(t){return this._sections.hasOwnProperty(t)};Si.prototype.keys=function(t){try{return Object.keys(this._sections[t])}catch{throw new ud.NoSectionError(t)}};Si.prototype.hasKey=function(t,e){return this._sections.hasOwnProperty(t)&&this._sections[t].hasOwnProperty(e)};Si.prototype.read=function(t){let e=Ml.readFileSync(t).toString("utf8").split(YR);XR.call(this,t,e)};Si.prototype.readAsync=async function(t){let e=(await VY(t)).toString("utf8").split(YR);XR.call(this,t,e)};Si.prototype.get=function(t,e,i){if(this._sections.hasOwnProperty(t))return i?this._sections[t][e]:LY.interpolate(this,t,e)};Si.prototype.getInt=function(t,e,i){if(this._sections.hasOwnProperty(t))return i||(i=10),parseInt(this._sections[t][e],i)};Si.prototype.getFloat=function(t,e){if(this._sections.hasOwnProperty(t))return parseFloat(this._sections[t][e])};Si.prototype.items=function(t){return this._sections[t]};Si.prototype.set=function(t,e,i){this._sections.hasOwnProperty(t)&&(this._sections[t][e]=i)};Si.prototype.removeKey=function(t,e){return this._sections.hasOwnProperty(t)&&this._sections[t].hasOwnProperty(e)?delete this._sections[t][e]:!1};Si.prototype.removeSection=function(t){return this._sections.hasOwnProperty(t)?delete this._sections[t]:!1};Si.prototype.write=function(t,e=!1){if(e){let i=KR.dirname(t);QR.sync(i)}Ml.writeFileSync(t,eI.call(this))};Si.prototype.writeAsync=async function(t,e=!1){if(e){let i=KR.dirname(t);await ZY(i)}await JY(t,eI.call(this))};function XR(t,e){let i=null;e.forEach((n,a)=>{if(!n||n.match(FY))return;let r=WY.exec(n);if(r){let s=r[1];i={},this._sections[s]=i}else if(i)if(r=BY.exec(n),r){let s=r[1];i[s]=r[2]}else throw new ud.ParseError(t,a,n);else throw new ud.MissingSectionHeaderError(t,a,n)})}function eI(){let t="",e;for(e in this._sections){if(!this._sections.hasOwnProperty(e))continue;t+="["+e+`] `;let i=this._sections[e],n;for(n in i){if(!i.hasOwnProperty(n))continue;let a=i[n];t+=n+"="+a+` `}t+=` -`}return t}iI.exports=Si});var sI=w((yue,rI)=>{"use strict";var KY=jq(),QY=m_();function aI(t){return t&&typeof t=="object"&&"default"in t?t:{default:t}}var PA=aI(KY),tI=aI(QY),YY={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"},El=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()}},Zt=class{constructor(e,i,n,a,r,s){this.setUrl(e),this.setMethod(i),n&&this.setHeaders(n),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}},pd=class extends El{constructor(e,i){super(),e!=null?this.setTimeout(e):this.timeout=16e3,i!=null?this.setHttpsAgent(i):this.httpsAgent,this._axiosInstance=PA.default.create({})}enableHooks(){this.preHook&&typeof this.preHook=="function"&&(this.requestInterceptorId!==void 0&&PA.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&&PA.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 Zt))throw new Error("httpRequestOptions must be instance of HttpRequestOptions ");let i=this.toAxiosConfig(e);return this._axiosInstance.request(i)}toAxiosConfig(e){if(!e.url||!e.method)throw new Error("Mandatory fields 'url' and 'method' must be set before making a request");var i={url:e.url,method:e.method};return e.params&&(i.params=e.params),e.headers&&(i.headers=e.headers),e.data&&(i.data=e.data),this.timeout!=null&&this.timeout!=null&&(i.timeout=this.timeout),this.httpsAgent&&(i.httpsAgent=this.httpsAgent),i}},XY={levels:{none:0,error:1,debug:2,trace:3}},hs={level:{LNone:"none",LError:"error",LDebug:"debug",LTrace:"trace"}},Qa={formats:{JSON:"json",TEXT:"text"}},jA=class{get logLevelEnum(){return hs}get logFormatEnum(){return Qa}constructor(){this.log_level=hs.level.LNone,this.log_format=Qa.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=$R();this.logger=e.createLogger({levels:XY.levels,level:this.log_level}),this.log_file_path&&this.log_file_path!==""&&(this.log_format===Qa.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(i=>(i.level=i.level.toUpperCase(),i))(),e.format.simple()),filename:this.log_file_path}))),this.log_to_console&&(this.log_format===Qa.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(i=>(i.level=i.level.toUpperCase(),i))(),e.format.simple())})))}}log(e,i,n,a,r,s,o,l){var u=this.formatLog(e,i,n,a,r,s,o,l);if(typeof window<"u"){var c=this.calculateLogLevel(e);c>0&&this.log_to_console===!0&&(this.log_format===this.logFormatEnum.formats.JSON?console.log(u):console.log(`${e.toUpperCase()}: ${u}`))}else this.logger.transports.length>0&&this.logger.log(e,u)}calculateLogLevel(e){switch(this.log_level){case this.logLevelEnum.level.LError:return e!==this.logLevelEnum.level.LError?-1:1;case this.logLevelEnum.level.LDebug:return e===this.logLevelEnum.level.LTrace?-1:1;case this.logLevelEnum.level.LTrace:return 1;default:return-1}}formatLog(e,i,n,a,r,s,o,l){var u,c=r?JSON.parse(JSON.stringify(r)):null,p=s?JSON.parse(JSON.stringify(s)):null,d=o?JSON.parse(JSON.stringify(o)):null,h=l?JSON.parse(JSON.stringify(l)):null;return r&&(c.Authorization="[REDACTED]"),this.log_request_body||(d=void 0),this.log_response_body||(h=void 0),this.log_format&&this.log_format===Qa.formats.JSON?(u={level:e,date:new Date().toISOString(),method:n,url:decodeURIComponent(a),correlationId:p&&p["inin-correlation-id"]?p["inin-correlation-id"]:"",statusCode:i},c&&(u.requestHeaders=c),p&&(u.responseHeaders=p),d&&(u.requestBody=d),h&&(u.responseBody=h)):u=`${new Date().toISOString()} +`}return t}iI.exports=Si});var sI=w((yue,rI)=>{"use strict";var KY=jq(),QY=m_();function aI(t){return t&&typeof t=="object"&&"default"in t?t:{default:t}}var PA=aI(KY),tI=aI(QY),YY={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"},El=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()}},Zt=class{constructor(e,i,n,a,r,s){this.setUrl(e),this.setMethod(i),n&&this.setHeaders(n),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}},pd=class extends El{constructor(e,i){super(),e!=null?this.setTimeout(e):this.timeout=16e3,i!=null?this.setHttpsAgent(i):this.httpsAgent,this._axiosInstance=PA.default.create({})}enableHooks(){this.preHook&&typeof this.preHook=="function"&&(this.requestInterceptorId!==void 0&&PA.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&&PA.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 Zt))throw new Error("httpRequestOptions must be instance of HttpRequestOptions ");let i=this.toAxiosConfig(e);return this._axiosInstance.request(i)}toAxiosConfig(e){if(!e.url||!e.method)throw new Error("Mandatory fields 'url' and 'method' must be set before making a request");var i={url:e.url,method:e.method};return e.params&&(i.params=e.params),e.headers&&(i.headers=e.headers),e.data&&(i.data=e.data),this.timeout!=null&&this.timeout!=null&&(i.timeout=this.timeout),this.httpsAgent&&(i.httpsAgent=this.httpsAgent),i}},XY={levels:{none:0,error:1,debug:2,trace:3}},gs={level:{LNone:"none",LError:"error",LDebug:"debug",LTrace:"trace"}},Qa={formats:{JSON:"json",TEXT:"text"}},jA=class{get logLevelEnum(){return gs}get logFormatEnum(){return Qa}constructor(){this.log_level=gs.level.LNone,this.log_format=Qa.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=$R();this.logger=e.createLogger({levels:XY.levels,level:this.log_level}),this.log_file_path&&this.log_file_path!==""&&(this.log_format===Qa.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(i=>(i.level=i.level.toUpperCase(),i))(),e.format.simple()),filename:this.log_file_path}))),this.log_to_console&&(this.log_format===Qa.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(i=>(i.level=i.level.toUpperCase(),i))(),e.format.simple())})))}}log(e,i,n,a,r,s,o,l){var u=this.formatLog(e,i,n,a,r,s,o,l);if(typeof window<"u"){var c=this.calculateLogLevel(e);c>0&&this.log_to_console===!0&&(this.log_format===this.logFormatEnum.formats.JSON?console.log(u):console.log(`${e.toUpperCase()}: ${u}`))}else this.logger.transports.length>0&&this.logger.log(e,u)}calculateLogLevel(e){switch(this.log_level){case this.logLevelEnum.level.LError:return e!==this.logLevelEnum.level.LError?-1:1;case this.logLevelEnum.level.LDebug:return e===this.logLevelEnum.level.LTrace?-1:1;case this.logLevelEnum.level.LTrace:return 1;default:return-1}}formatLog(e,i,n,a,r,s,o,l){var u,c=r?JSON.parse(JSON.stringify(r)):null,p=s?JSON.parse(JSON.stringify(s)):null,d=o?JSON.parse(JSON.stringify(o)):null,h=l?JSON.parse(JSON.stringify(l)):null;return r&&(c.Authorization="[REDACTED]"),this.log_request_body||(d=void 0),this.log_response_body||(h=void 0),this.log_format&&this.log_format===Qa.formats.JSON?(u={level:e,date:new Date().toISOString(),method:n,url:decodeURIComponent(a),correlationId:p&&p["inin-correlation-id"]?p["inin-correlation-id"]:"",statusCode:i},c&&(u.requestHeaders=c),p&&(u.responseHeaders=p),d&&(u.requestBody=d),h&&(u.responseBody=h)):u=`${new Date().toISOString()} === REQUEST === ${this.formatValue("URL",decodeURIComponent(a))}${this.formatValue("Method",n)}${this.formatValue("Headers",this.formatHeaderString(c))}${this.formatValue("Body",d?JSON.stringify(d,null,2):"")} === RESPONSE === ${this.formatValue("Status",i)}${this.formatValue("Headers",this.formatHeaderString(p))}${this.formatValue("CorrelationId",p&&p["inin-correlation-id"]?p["inin-correlation-id"]:"")}${this.formatValue("Body",h?JSON.stringify(h,null,2):"")}`,u}formatHeaderString(e){var i="";if(!e)return i;for(let[n,a]of Object.entries(e))i+=` ${n}: ${a}`;return i}formatValue(e,i){return!i||i===""||i==="{}"?"":`${e}: ${i} -`}getLogLevel(e){switch(e){case"error":return hs.level.LError;case"debug":return hs.level.LDebug;case"trace":return hs.level.LTrace;default:return hs.level.LNone}}getLogFormat(e){switch(e){case"json":return Qa.formats.JSON;default:return Qa.formats.TEXT}}},SA=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"),i=require("path");this.configPath=i.join(e.homedir(),".genesyscloudjavascript","config")}this.watchedConfigPath,this.refresh_access_token=!0,this.refresh_token_wait_max=10,this._live_reload_config=!0,this.host,this.environment,this.basePath,this.authUrl,this.config,this.gateway=void 0,this.logger=new jA,this.setEnvironment(),this.liveLoadConfig()}get live_reload_config(){return this._live_reload_config}set live_reload_config(e){if(typeof window>"u"){let i=require("fs");e!=null&&this.live_reload_config!==e&&(this._live_reload_config=e,this.watchedConfigPath&&(i.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},(i,n)=>{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 i=require("fs");e&&e!==this.configPath?(this.configPath=e,this.watchedConfigPath&&(i.unwatchFile(this.watchedConfigPath),this.watchedConfigPath=null),this.liveLoadConfig()):!e&&this.configPath&&(this.configPath="",this.watchedConfigPath&&(i.unwatchFile(this.watchedConfigPath),this.watchedConfigPath=null));return}this.configPath=""}updateConfigFromFile(){if(typeof window>"u"&&this.configPath){let n=nI();try{var e=new n;e.read(this.configPath),this.config=e}catch(a){if(a.name&&a.name==="MissingSectionHeaderError"){var i=require("fs").readFileSync(this.configPath,"utf8");this.config={_sections:JSON.parse(i)}}}this.config&&this.updateConfigValues()}}updateConfigValues(){if(this.logger.log_level=this.logger.getLogLevel(this.getConfigString("logging","log_level")),this.logger.log_format=this.logger.getLogFormat(this.getConfigString("logging","log_format")),this.logger.log_to_console=this.getConfigBoolean("logging","log_to_console")!==void 0?this.getConfigBoolean("logging","log_to_console"):this.logger.log_to_console,this.logger.log_file_path=this.getConfigString("logging","log_file_path")!==void 0?this.getConfigString("logging","log_file_path"):this.logger.log_file_path,this.logger.log_response_body=this.getConfigBoolean("logging","log_response_body")!==void 0?this.getConfigBoolean("logging","log_response_body"):this.logger.log_response_body,this.logger.log_request_body=this.getConfigBoolean("logging","log_request_body")!==void 0?this.getConfigBoolean("logging","log_request_body"):this.logger.log_request_body,this.refresh_access_token=this.getConfigBoolean("reauthentication","refresh_access_token")!==void 0?this.getConfigBoolean("reauthentication","refresh_access_token"):this.refresh_access_token,this.refresh_token_wait_max=this.getConfigInt("reauthentication","refresh_token_wait_max")!==void 0?this.getConfigInt("reauthentication","refresh_token_wait_max"):this.refresh_token_wait_max,this.live_reload_config=this.getConfigBoolean("general","live_reload_config")!==void 0?this.getConfigBoolean("general","live_reload_config"):this.live_reload_config,this.host=this.getConfigString("general","host")!==void 0?this.getConfigString("general","host"):this.host,this.getConfigString("gateway","host")!==void 0){let e={host:this.getConfigString("gateway","host")};this.getConfigString("gateway","protocol")!==void 0&&(e.protocol=this.getConfigString("gateway","protocol")),this.getConfigInt("gateway","port")!==void 0&&(e.port=this.getConfigInt("gateway","port")),this.getConfigString("gateway","path_params_login")!==void 0&&(e.path_params_login=this.getConfigString("gateway","path_params_login")),this.getConfigString("gateway","path_params_api")!==void 0&&(e.path_params_api=this.getConfigString("gateway","path_params_api")),this.getConfigString("gateway","username")!==void 0&&(e.username=this.getConfigString("gateway","username")),this.getConfigString("gateway","password")!==void 0&&(e.password=this.getConfigString("gateway","password")),this.setGateway(e)}else this.setGateway();this.setEnvironment(),this.logger.setLogger()}setGateway(e){e?(this.gateway={host:""},e.protocol?this.gateway.protocol=e.protocol:this.gateway.protocol="https",e.host?this.gateway.host=e.host:this.gateway.host="",e.port&&e.port>-1?this.gateway.port=e.port:this.gateway.port=-1,e.path_params_login?(this.gateway.path_params_login=e.path_params_login,this.gateway.path_params_login=this.gateway.path_params_login.replace(/\/+$/,"")):this.gateway.path_params_login="",e.path_params_api?(this.gateway.path_params_api=e.path_params_api,this.gateway.path_params_api=this.gateway.path_params_api.replace(/\/+$/,"")):this.gateway.path_params_api="",e.username&&(this.gateway.username=e.username),e.password&&(this.gateway.password=e.password)):this.gateway=void 0}setEnvironment(e){e?this.environment=e:this.environment=this.host?this.host:"mypurecloud.com",this.environment=this.environment.replace(/\/+$/,""),this.environment.startsWith("https://")&&(this.environment=this.environment.substring(8)),this.environment.startsWith("http://")&&(this.environment=this.environment.substring(7)),this.environment.startsWith("api.")&&(this.environment=this.environment.substring(4)),this.basePath=`https://api.${this.environment}`,this.authUrl=`https://login.${this.environment}`}getConfUrl(e,i){if(!this.gateway||!this.gateway.host)return i;var n=this.gateway.protocol+"://"+this.gateway.host;return this.gateway.port>-1&&(n=n+":"+this.gateway.port.toString()),e==="login"?this.gateway.path_params_login&&(this.gateway.path_params_login.startsWith("/")?n=n+this.gateway.path_params_login:n=n+"/"+this.gateway.path_params_login):this.gateway.path_params_api&&(this.gateway.path_params_api.startsWith("/")?n=n+this.gateway.path_params_api:n=n+"/"+this.gateway.path_params_api),n}getConfigString(e,i){if(this.config._sections[e])return this.config._sections[e][i]}getConfigBoolean(e,i){if(this.config._sections[e]&&this.config._sections[e][i]!==void 0)return typeof this.config._sections[e][i]=="string"?this.config._sections[e][i]==="true":this.config._sections[e][i]}getConfigInt(e,i){if(this.config._sections[e]&&this.config._sections[e][i])return typeof this.config._sections[e][i]=="string"?parseInt(this.config._sections[e][i]):this.config._sections[e][i]}},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;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 SA,typeof window<"u"&&(window.ApiClient=this)}setReturnExtendedResponses(e){this.returnExtended=e}setPersistSettings(e,i){this.persistSettings=e,this.settingsPrefix=i?i.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 i=JSON.parse(JSON.stringify(this.authData));delete i.state,localStorage.setItem(`${this.settingsPrefix}_auth_data`,JSON.stringify(i))}catch(i){console.error(i)}}_loadSettings(){if(this.persistSettings!==!0||!this.hasLocalStorage)return;let e=this.authData.state;this.authData=localStorage.getItem(`${this.settingsPrefix}_auth_data`),this.authData?this.authData=JSON.parse(this.authData):this.authData={},this.authData.accessToken&&this.setAccessToken(this.authData.accessToken),this.authData.state=e}_clearSettings(){try{if(this.authData&&this.authData.accessToken&&(this.authData.accessToken=null),this.authentications["PureCloud OAuth"]&&this.authentications["PureCloud OAuth"].accessToken&&(this.authentications["PureCloud OAuth"].accessToken=null),this.authData&&this.authData.state&&(this.authData.state=null),this.authData&&this.authData.error&&(this.authData.error=null),this.authData&&this.authData.error_description&&(this.authData.error_description=null),this.authData&&this.authData.tokenExpiryTime&&(this.authData.tokenExpiryTime=0),this.authData&&this.authData.tokenExpiryTimeString&&(this.authData.tokenExpiryTimeString=null),this.persistSettings!==!0||!this.hasLocalStorage)return;let e=JSON.parse(JSON.stringify(this.authData));delete e.state,localStorage.setItem(`${this.settingsPrefix}_auth_data`,JSON.stringify(e))}catch(e){console.error(e)}}setEnvironment(e){this.config.setEnvironment(e)}setDefaultHeaders(e){if(!e||typeof e!="object")throw new Error("default headers must be a map");this.defaultHeaders=e}getDefaultHeaders(){return this.defaultHeaders}setGenesysAppHeader(e){if(!e||typeof e!="string")throw new Error("headerValue must be a non empty string");this.defaultHeaders?this.defaultHeaders["Genesys-App"]=e:this.defaultHeaders={"Genesys-App":e}}getGenesysAppHeader(){return this.defaultHeaders&&this.defaultHeaders["Genesys-App"]?this.defaultHeaders["Genesys-App"]:null}setHttpClient(e){if(!(e instanceof El))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 pd(this.timeout,this.proxyAgent),this.httpClient)}setMTLSCertificates(e,i,n){if(typeof window>"u"){let a={};e&&(a.cert=require("fs").readFileSync(e)),i&&(a.key=require("fs").readFileSync(i)),n&&(a.ca=require("fs").readFileSync(n)),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,i,n){if(typeof window>"u"){let a={};e&&(a.cert=e),i&&(a.key=i),n&&(a.ca=n),a.rejectUnauthorized=!0,this.proxyAgent=new require("https").Agent(a),this.getHttpClient().setHttpsAgent(this.proxyAgent)}else throw new Error("MTLS authentication is managed by the Browser itself. MTLS certificates cannot be set via code on Browser.")}setGateway(e){this.config.setGateway(e)}loginImplicitGrant(e,i,n){let a=this._setValuesFromUrlHash();return this.clientId=e,this.redirectUri=i,n||(n={}),new Promise((r,s)=>{if(n.org&&!n.provider?s(new Error("opts.provider must be set if opts.org is set")):n.provider&&!n.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&&n.state&&(this.authData.state=n.state),r(this.authData)}).catch(o=>{var l={client_id:encodeURIComponent(this.clientId),redirect_uri:encodeURIComponent(this.redirectUri),response_type:"token"};n.state&&(l.state=encodeURIComponent(n.state)),n.org&&(l.org=encodeURIComponent(n.org)),n.provider&&(l.provider=encodeURIComponent(n.provider)),n.prompt&&n.prompt=="login"&&(l.prompt=encodeURIComponent(n.prompt));var u=this._buildAuthUrl("oauth/authorize",l);window.location.replace(u)})})}loginClientCredentialsGrant(e,i){this.clientId=e;var n=Buffer.from(`${e}:${i}`).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 ${n}`};var l=new Zt(`${a}/oauth/token`,"POST",o,null,"grant_type=client_credentials",this.timeout);this.getHttpClient().request(l).then(c=>{this.config.logger.log("trace",c.status,"POST",`${a}/oauth/token`,o,c.headers,{grant_type:"client_credentials"},void 0),this.config.logger.log("debug",c.status,"POST",`${a}/oauth/token`,o,void 0,{grant_type:"client_credentials"},void 0),this.setAccessToken(c.data.access_token),this.authData.tokenExpiryTime=new Date().getTime()+c.data.expires_in*1e3,this.authData.tokenExpiryTimeString=new Date(this.authData.tokenExpiryTime).toUTCString(),r(this.authData)}).catch(c=>{c.response&&this.config.logger.log("error",c.response.status,"POST",`${a}/oauth/token`,o,c.response.headers,{grant_type:"client_credentials"},c.response.data),s(c)})})}loginSaml2BearerGrant(e,i,n,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+":"+i).toString("base64"),u=this._formAuthRequest(l,{grant_type:"urn:ietf:params:oauth:grant-type:saml2-bearer",orgName:n,assertion:a});u.proxy=this.proxy;var c={grant_type:"urn:ietf:params:oauth:grant-type:saml2-bearer",orgName:n,assertion:a};u.then(p=>{this.config.logger.log("trace",p.status,"POST",`${r}/oauth/token`,u.headers,p.headers,c,void 0),this.config.logger.log("debug",p.status,"POST",`${r}/oauth/token`,u.headers,void 0,c,void 0);var d=p.data.access_token;this.setAccessToken(d),this.authData.tokenExpiryTime=new Date().getTime()+p.data.expires_in*1e3,this.authData.tokenExpiryTimeString=new Date(this.authData.tokenExpiryTime).toUTCString(),s(this.authData)}).catch(p=>{p.response&&this.config.logger.log("error",p.response.status,"POST",`${r}/oauth/token`,u.headers,p.response.headers,c,p.response.data),o(p)})})}authorizePKCEGrant(e,i,n,a){this.clientId=e;var r=this.config.getConfUrl("login",`https://login.${this.config.environment}`);return new Promise((s,o)=>{var l={"Content-Type":"application/x-www-form-urlencoded"},u=tI.default.stringify({grant_type:"authorization_code",code:n,code_verifier:i,client_id:e,redirect_uri:a}),c=new Zt(`${r}/oauth/token`,"POST",l,null,u,this.timeout);let p=this.getHttpClient();var d={grant_type:"authorization_code",code:n,code_verifier:i,client_id:e,redirect_uri:a};p.request(c).then(h=>{this.config.logger.log("trace",h.status,"POST",`${r}/oauth/token`,c.headers,h.headers,d,void 0),this.config.logger.log("debug",h.status,"POST",`${r}/oauth/token`,c.headers,void 0,d,void 0);var g=h.data.access_token;let m={accessToken:g};h.data.expires_in!==null&&h.data.expires_in!==void 0&&(m.tokenExpiryTime=new Date().getTime()+h.data.expires_in*1e3,m.tokenExpiryTimeString=new Date(m.tokenExpiryTime).toUTCString()),this._saveSettings(m),s(this.authData)}).catch(h=>{h.response&&this.config.logger.log("error",h.response.status,"POST",`${r}/oauth/token`,c.headers,h.response.headers,d,h.response.data),o(h)})})}generatePKCECodeVerifier(e){if(e<43||e>128)throw new Error("PKCE Code Verifier (length) must be between 43 and 128 characters");if(typeof window>"u")try{let i=require("crypto").getRandomValues,n="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-._~";return Array.from(i(new Uint32Array(e))).map(r=>n[r%n.length]).join("")}catch{throw new Error("Crypto module is missing/not supported.")}else{let i="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-._~";return Array.from(crypto.getRandomValues(new Uint32Array(e))).map(a=>i[a%i.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 i=require("crypto").createHash,n=new TextEncoder().encode(e);return new Promise((a,r)=>{let s=i("sha256").update(n).digest(),o=Buffer.from(s).toString("base64url");a(o)})}catch{throw new Error("Crypto module is missing/not supported.")}else{let i=new TextEncoder().encode(e);return new Promise((n,a)=>{window.crypto.subtle.digest("SHA-256",i).then(r=>{let o=btoa(String.fromCharCode(...new Uint8Array(r))).replaceAll("+","-").replaceAll("/","_");o=o.split("=")[0],n(o)}).catch(r=>a(new Error(`Code Challenge Error ${r}`)))})}}loginPKCEGrant(e,i,n,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=i,this.codeVerifier=a,n||(n={}),new Promise((s,o)=>{if(n.org&&!n.provider)return o(new Error("opts.provider must be set if opts.org is set"));if(n.provider&&!n.org)return o(new Error("opts.org must be set if opts.provider is set"));if(r&&r.error)return this.hasLocalStorage&&sessionStorage.removeItem("genesys_cloud_sdk_pkce_code_verifier"),this._saveSettings({accessToken:void 0}),o(new Error(`[${r.error}] ${r.error_description}`));r&&r.code?(this.codeVerifier||this.hasLocalStorage&&(this.codeVerifier=sessionStorage.getItem("genesys_cloud_sdk_pkce_code_verifier")),this.authorizePKCEGrant(this.clientId,this.codeVerifier,r.code,this.redirectUri).then(()=>{this._testTokenAccess().then(()=>{!this.authData.state&&r.state&&(this.authData.state=r.state),this.hasLocalStorage&&sessionStorage.removeItem("genesys_cloud_sdk_pkce_code_verifier"),s(this.authData)}).catch(l=>(this._saveSettings({accessToken:void 0}),this.hasLocalStorage&&sessionStorage.removeItem("genesys_cloud_sdk_pkce_code_verifier"),o(new Error(`[${l.name}] ${l.msg}`))))}).catch(l=>(this._saveSettings({accessToken:void 0}),this.hasLocalStorage&&sessionStorage.removeItem("genesys_cloud_sdk_pkce_code_verifier"),o(new Error(`[${l.name}] ${l.msg}`))))):this._testTokenAccess().then(()=>{!this.authData.state&&n.state&&(this.authData.state=n.state),s(this.authData)}).catch(l=>{this.codeVerifier||(this.codeVerifier=this.generatePKCECodeVerifier(128),this.hasLocalStorage&&sessionStorage.setItem("genesys_cloud_sdk_pkce_code_verifier",this.codeVerifier)),this.computePKCECodeChallenge(this.codeVerifier).then(u=>{var c={client_id:encodeURIComponent(this.clientId),redirect_uri:encodeURIComponent(this.redirectUri),code_challenge:encodeURIComponent(u),response_type:"code",code_challenge_method:"S256"};n.state&&(c.state=encodeURIComponent(n.state)),n.org&&(c.org=encodeURIComponent(n.org)),n.provider&&(c.provider=encodeURIComponent(n.provider)),n.prompt&&n.prompt=="login"&&(c.prompt=encodeURIComponent(n.prompt));var p=this._buildAuthUrl("oauth/authorize",c);window.location.replace(p)}).catch(u=>o(new Error(`[${u.name}]`)))})})}_setValuesFromUrlQuery(){if(!(typeof window<"u"&&window.location.search))return;let e={},i=new URLSearchParams(window.location.search),n=i.get("code"),a=i.get("error"),r=i.get("error_description"),s=i.get("state");if(a)return e.error=a,r&&(e.error_description=r),e;n&&(e.code=n,s&&(e.state=s));var o,l,u=window.location;return"replaceState"in history?history.replaceState("",document.title,u.pathname):(o=document.body.scrollTop,l=document.body.scrollLeft,history.pushState("",document.title,u.pathname),document.body.scrollTop=o,document.body.scrollLeft=l),e}loginCodeAuthorizationGrant(e,i,n,a){return this.clientId=e,this.clientSecret=i,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+":"+i).toString("base64"),l=this._formAuthRequest(o,{grant_type:"authorization_code",code:n,redirect_uri:a});l.proxy=this.proxy;var u={grant_type:"authorization_code",code:n,redirect_uri:a};this._handleCodeAuthorizationResponse(l,u,r,s)})}refreshCodeAuthorizationGrant(e,i,n){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+":"+i).toString("base64"),o=this._formAuthRequest(s,{grant_type:"refresh_token",refresh_token:n});o.proxy=this.proxy;var l={grant_type:"refresh_token",refresh_token:n};this._handleCodeAuthorizationResponse(o,l,a,r)})}_handleCodeAuthorizationResponse(e,i,n,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,i,void 0),this.config.logger.log("debug",s.status,"POST",`${r}/oauth/token`,e.headers,void 0,i,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(),n(this.authData)}).catch(s=>{s.response&&this.config.logger.log("error",s.response.status,"POST",`${r}/oauth/token`,e.headers,s.response.headers,i,s.response.data),a(s)})}_formAuthRequest(e,i){var n=this.config.getConfUrl("login",`https://login.${this.config.environment}`),a={Authorization:"Basic "+e,"Content-Type":"application/x-www-form-urlencoded"},r=new Zt(`${n}/oauth/token`,"POST",a,null,tI.default.stringify(i),this.timeout);return this.getHttpClient().request(r)}_handleExpiredAccessToken(){return new Promise((e,i)=>{if(typeof window<"u"){i(new Error("This method is not supported in a browser."));return}this.refreshInProgress?this._sleep(this.config.refresh_token_wait_max).then(()=>{this.refreshInProgress?i(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(n=>{this.refreshInProgress=!1,i(n)}))})}_sleep(e){return new Promise(i=>setTimeout(i,e))}_testTokenAccess(){return new Promise((e,i)=>{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(()=>{e()}).catch(n=>{this._saveSettings({accessToken:void 0}),i(n)})})}_setValuesFromUrlHash(){if(!(typeof window<"u"&&window.location.hash))return;let e=new RegExp("^#*(.+?)=(.+?)$","i"),i={};if(window.location.hash.split("&").forEach(s=>{let o=e.exec(s);o&&(i[o[1]]=decodeURIComponent(decodeURIComponent(o[2].replace(/\+/g,"%20"))))}),i.error)return i;if(i.access_token){let s={};i.state&&(s.state=i.state),i.expires_in&&(s.tokenExpiryTime=new Date().getTime()+parseInt(i.expires_in.replace(/\+/g,"%20"))*1e3,s.tokenExpiryTimeString=new Date(s.tokenExpiryTime).toUTCString()),s.accessToken=i.access_token.replace(/\+/g,"%20");var n,a,r=window.location;"replaceState"in history?history.replaceState("",document.title,r.pathname+r.search):(n=document.body.scrollTop,a=document.body.scrollLeft,r.hash="",document.body.scrollTop=n,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 i={client_id:encodeURIComponent(this.clientId)};e&&(i.redirect_uri=encodeURI(e));var n=this._buildAuthUrl("logout",i);window.location.replace(n)}_buildAuthUrl(e,i){i||(i={});var n=this.config.getConfUrl("login",this.config.authUrl);return Object.keys(i).reduce((a,r)=>i[r]?`${a}&${r}=${i[r]}`:a,`${n}/${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 i={};for(var n in e)e.hasOwnProperty(n)&&e[n]!==void 0&&(i[encodeURIComponent(n)]=Array.isArray(e[n])?e[n].join(","):this.paramToString(e[n]));return i}addHeaders(e,...i){return e?e=Object.assign(e,...i):e=Object.assign(...i),e}buildUrl(e,i){e.match(/^\//)||(e=`/${e}`);var n=this.config.getConfUrl("api",this.config.basePath)+e;return n=n.replace(/\{([\w-]+)\}/g,(a,r)=>{var s;return i.hasOwnProperty(r)?s=this.paramToString(i[r]):s=a,encodeURIComponent(s)}),n}isJsonMime(e){return!!(e&&e.match(/^application\/json(;.*)?$/i))}jsonPreferredMime(e){for(var i=0;i"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 i={};for(var n in e)if(e.hasOwnProperty(n)&&e[n]!==void 0){var a=e[n];this.isFileParam(a)||Array.isArray(a)?i[n]=a:i[n]=this.paramToString(a)}return i}buildCollectionParam(e,i){if(e)switch(Array.isArray(e)||(e=[e]),i){case"csv":return e.map(n=>this.paramToString(n)).join(",");case"ssv":return e.map(n=>this.paramToString(n)).join(" ");case"tsv":return e.map(n=>this.paramToString(n)).join(" ");case"pipes":return e.map(n=>this.paramToString(n)).join("|");case"multi":return e.map(n=>this.paramToString(n));default:throw new Error(`Unknown collection format: ${i}`)}}applyAuthToRequest(e,i){i.forEach(n=>{var a=this.authentications[n];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,i,n,a,r,s,o,l,u,c,p){return new Promise((d,h)=>{g(this);function g(m){var f=m.buildUrl(e,n),v=new Zt(f,i,null,m.serialize(a),null,m.timeout);m.applyAuthToRequest(v,l);let y=m.defaultHeaders,A=m.normalizeParams(r);if(v.headers=m.addHeaders(v.headers,y,A),p){if(typeof p!="object")throw new Error("Per-request headers must be a valid object");for(let[k,Q]of Object.entries(p)){if(typeof k!="string"||typeof Q!="string")throw new Error(`Invalid header: "${k}" must have string name and value`);if(!/^[!#$%&'*+\-.0-9A-Z^_`a-z|~]+$/.test(k))throw new Error(`Invalid header name: "${k}" - must be a valid HTTP token`);for(let Z=0;Z=33&&ie<=126||ie===32||ie===9||ie>=128&&ie<=255))throw new Error(`Invalid header value for "${k}": contains invalid characters`)}v.headers[k]=Q}}var b=m.jsonPreferredMime(u);if(b?v.headers["Content-Type"]=b:v.headers["Content-Type"]||(v.headers["Content-Type"]="application/json"),b==="application/x-www-form-urlencoded")v.setData(m.normalizeParams(s));else if(b=="multipart/form-data"){var O=m.normalizeParams(s);for(var $ in O)if(O.hasOwnProperty($)){var N=new FormData;N.set($,O[$]),v.setData(N)}}else o&&v.setData(o);var X=m.jsonPreferredMime(c);X&&(v.headers.Accept=X),m.getHttpClient().request(v).then(k=>{var Q=m.returnExtended===!0?{status:k.status,statusText:k.statusText,headers:k.headers,body:k.data,text:k.text,error:null}:k.data?k.data:k.text;m.config.logger.log("trace",k.status,i,f,v.headers,k.headers,o,void 0),m.config.logger.log("debug",k.status,i,f,v.headers,void 0,o,void 0),d(Q)}).catch(k=>{var Q=k;k.response&&k.response.status==401&&m.config.refresh_access_token&&m.authData.refreshToken&&m.authData.refreshToken!==""?m._handleExpiredAccessToken().then(()=>{g(m)}).catch(Z=>{h(Z)}):k.response&&(m.config.logger.log("error",k.response.status,i,f,v.headers,k.response.headers,o,k.response.data),Q=m.returnExtended===!0?{status:k.response.status,statusText:k.response.statusText,headers:k.response.headers,body:k.response.data,text:k.response.text,error:k}:k.response.data?k.response.data:k.response.text),h(Q)})}})}},OA=class{constructor(e){this.apiClient=e||q.instance}deleteConversationsSummariesSetting(e,i){if(i=i||{},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"],i.customHeaders)}deleteGuideJobs(e,i){if(i=i||{},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"],i.customHeaders)}getConversationsSummariesSetting(e,i){if(i=i||{},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"],i.customHeaders)}getConversationsSummariesSettings(e){return e=e||{},this.apiClient.callApi("/api/v2/conversations/summaries/settings","GET",{},{language:e.language,name:e.name,sortBy:e.sortBy,sortOrder:e.sortOrder,pageNumber:e.pageNumber,pageSize:e.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getGuide(e,i){if(i=i||{},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"],i.customHeaders)}getGuideJob(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "guideId" when calling getGuideJob';if(i==null||i==="")throw'Missing the required parameter "jobId" when calling getGuideJob';return this.apiClient.callApi("/api/v2/guides/{guideId}/jobs/{jobId}","GET",{guideId:e,jobId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getGuideVersion(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "guideId" when calling getGuideVersion';if(i==null||i==="")throw'Missing the required parameter "versionId" when calling getGuideVersion';return this.apiClient.callApi("/api/v2/guides/{guideId}/versions/{versionId}","GET",{guideId:e,versionId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getGuideVersionJob(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "guideId" when calling getGuideVersionJob';if(i==null||i==="")throw'Missing the required parameter "versionId" when calling getGuideVersionJob';if(n==null||n==="")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:i,jobId:n},{},{},{},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,i){if(i=i||{},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"],i.customHeaders)}patchGuide(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "guideId" when calling patchGuide';if(i==null)throw'Missing the required parameter "body" when calling patchGuide';return this.apiClient.callApi("/api/v2/guides/{guideId}","PATCH",{guideId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchGuideVersion(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "guideId" when calling patchGuideVersion';if(i==null||i==="")throw'Missing the required parameter "versionId" when calling patchGuideVersion';if(n==null)throw'Missing the required parameter "body" when calling patchGuideVersion';return this.apiClient.callApi("/api/v2/guides/{guideId}/versions/{versionId}","PATCH",{guideId:e,versionId:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postConversationsSummariesPreview(e,i){if(i=i||{},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"],i.customHeaders)}postConversationsSummariesSettings(e,i){if(i=i||{},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"],i.customHeaders)}postGuideSessionTurns(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "guideId" when calling postGuideSessionTurns';if(i==null||i==="")throw'Missing the required parameter "guideSessionId" when calling postGuideSessionTurns';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postGuideVersionJobs(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "guideId" when calling postGuideVersionJobs';if(i==null||i==="")throw'Missing the required parameter "versionId" when calling postGuideVersionJobs';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postGuideVersions(e,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "guideId" when calling postGuideVersions';return this.apiClient.callApi("/api/v2/guides/{guideId}/versions","POST",{guideId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postGuides(e,i){if(i=i||{},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"],i.customHeaders)}postGuidesJobs(e,i){if(i=i||{},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"],i.customHeaders)}postGuidesUploads(e,i){if(i=i||{},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"],i.customHeaders)}putConversationsSummariesSetting(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "summarySettingId" when calling putConversationsSummariesSetting';if(i==null)throw'Missing the required parameter "body" when calling putConversationsSummariesSetting';return this.apiClient.callApi("/api/v2/conversations/summaries/settings/{summarySettingId}","PUT",{summarySettingId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}},xA=class{constructor(e){this.apiClient=e||q.instance}deleteAssistant(e,i){if(i=i||{},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"],i.customHeaders)}deleteAssistantQueue(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "assistantId" when calling deleteAssistantQueue';if(i==null||i==="")throw'Missing the required parameter "queueId" when calling deleteAssistantQueue';return this.apiClient.callApi("/api/v2/assistants/{assistantId}/queues/{queueId}","DELETE",{assistantId:e,queueId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteAssistantQueues(e,i){if(i=i||{},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:i.queueIds},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}deleteAssistantsAgentchecklist(e,i){if(i=i||{},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"],i.customHeaders)}getAssistant(e,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "assistantId" when calling getAssistant';return this.apiClient.callApi("/api/v2/assistants/{assistantId}","GET",{assistantId:e},{expand:i.expand,languageVariation:i.languageVariation,fallbackToPrimaryAssistant:i.fallbackToPrimaryAssistant},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getAssistantQueue(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "assistantId" when calling getAssistantQueue';if(i==null||i==="")throw'Missing the required parameter "queueId" when calling getAssistantQueue';return this.apiClient.callApi("/api/v2/assistants/{assistantId}/queues/{queueId}","GET",{assistantId:e,queueId:i},{expand:n.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getAssistantQueueUsersJob(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "assistantId" when calling getAssistantQueueUsersJob';if(i==null||i==="")throw'Missing the required parameter "queueId" when calling getAssistantQueueUsersJob';if(n==null||n==="")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:i,jobId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getAssistantQueues(e,i){if(i=i||{},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:i.before,after:i.after,pageSize:i.pageSize,expand:i.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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"],i.customHeaders)}getAssistantsAgentchecklists(e){return e=e||{},this.apiClient.callApi("/api/v2/assistants/agentchecklists","GET",{},{before:e.before,after:e.after,pageSize:e.pageSize,namePrefix:e.namePrefix,language:e.language,sortOrder:e.sortOrder,sortBy:e.sortBy},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getAssistantsAgentchecklistsLanguages(e){return e=e||{},this.apiClient.callApi("/api/v2/assistants/agentchecklists/languages","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getAssistantsQueues(e){return e=e||{},this.apiClient.callApi("/api/v2/assistants/queues","GET",{},{before:e.before,after:e.after,pageSize:e.pageSize,queueIds:e.queueIds,expand:e.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}patchAssistant(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "assistantId" when calling patchAssistant';if(i==null)throw'Missing the required parameter "body" when calling patchAssistant';return this.apiClient.callApi("/api/v2/assistants/{assistantId}","PATCH",{assistantId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchAssistantQueues(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "assistantId" when calling patchAssistantQueues';if(i==null)throw'Missing the required parameter "body" when calling patchAssistantQueues';return this.apiClient.callApi("/api/v2/assistants/{assistantId}/queues","PATCH",{assistantId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postAssistantQueueUsersBulkAdd(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "assistantId" when calling postAssistantQueueUsersBulkAdd';if(i==null||i==="")throw'Missing the required parameter "queueId" when calling postAssistantQueueUsersBulkAdd';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postAssistantQueueUsersBulkRemove(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "assistantId" when calling postAssistantQueueUsersBulkRemove';if(i==null||i==="")throw'Missing the required parameter "queueId" when calling postAssistantQueueUsersBulkRemove';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postAssistantQueueUsersJobs(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "assistantId" when calling postAssistantQueueUsersJobs';if(i==null||i==="")throw'Missing the required parameter "queueId" when calling postAssistantQueueUsersJobs';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postAssistantQueueUsersQuery(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "assistantId" when calling postAssistantQueueUsersQuery';if(i==null||i==="")throw'Missing the required parameter "queueId" when calling postAssistantQueueUsersQuery';if(n==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:i},{expand:this.apiClient.buildCollectionParam(a.expand,"multi")},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postAssistants(e,i){if(i=i||{},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"],i.customHeaders)}postAssistantsAgentchecklists(e,i){if(i=i||{},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"],i.customHeaders)}putAssistantQueue(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "assistantId" when calling putAssistantQueue';if(i==null||i==="")throw'Missing the required parameter "queueId" when calling putAssistantQueue';if(n==null)throw'Missing the required parameter "body" when calling putAssistantQueue';return this.apiClient.callApi("/api/v2/assistants/{assistantId}/queues/{queueId}","PUT",{assistantId:e,queueId:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}putAssistantsAgentchecklist(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "agentChecklistId" when calling putAssistantsAgentchecklist';if(i==null)throw'Missing the required parameter "body" when calling putAssistantsAgentchecklist';return this.apiClient.callApi("/api/v2/assistants/agentchecklists/{agentChecklistId}","PUT",{agentChecklistId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}},TA=class{constructor(e){this.apiClient=e||q.instance}getAssistantCopilot(e,i){if(i=i||{},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"],i.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,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "assistantId" when calling putAssistantCopilot';if(i==null)throw'Missing the required parameter "body" when calling putAssistantCopilot';return this.apiClient.callApi("/api/v2/assistants/{assistantId}/copilot","PUT",{assistantId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}},MA=class{constructor(e){this.apiClient=e||q.instance}deleteUsersAgentuiAgentsAutoanswerAgentIdSettings(e,i){if(i=i||{},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"],i.customHeaders)}getUsersAgentuiAgentsAutoanswerAgentIdSettings(e,i){if(i=i||{},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"],i.customHeaders)}patchUsersAgentuiAgentsAutoanswerAgentIdSettings(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "agentId" when calling patchUsersAgentuiAgentsAutoanswerAgentIdSettings';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putUsersAgentuiAgentsAutoanswerAgentIdSettings(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "agentId" when calling putUsersAgentuiAgentsAutoanswerAgentIdSettings';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}},EA=class{constructor(e){this.apiClient=e||q.instance}deleteAlertingAlert(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getAlertingAlert(e,i){if(i=i||{},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"],i.customHeaders)}getAlertingRule(e,i){if(i=i||{},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"],i.customHeaders)}patchAlertingAlert(e,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "alertId" when calling patchAlertingAlert';return this.apiClient.callApi("/api/v2/alerting/alerts/{alertId}","PATCH",{alertId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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"],i.customHeaders)}patchAlertingRulesBulk(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}postAlertingRulesBulkRemove(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "alertId" when calling putAlertingAlert';return this.apiClient.callApi("/api/v2/alerting/alerts/{alertId}","PUT",{alertId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}putAlertingRule(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "ruleId" when calling putAlertingRule';if(i==null)throw'Missing the required parameter "body" when calling putAlertingRule';return this.apiClient.callApi("/api/v2/alerting/rules/{ruleId}","PUT",{ruleId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}},kA=class{constructor(e){this.apiClient=e||q.instance}deleteAnalyticsActionsAggregatesJob(e,i){if(i=i||{},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"],i.customHeaders)}deleteAnalyticsAgentcopilotsAggregatesJob(e,i){if(i=i||{},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"],i.customHeaders)}deleteAnalyticsAgentutilizationsAggregatesJob(e,i){if(i=i||{},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"],i.customHeaders)}deleteAnalyticsBotsAggregatesJob(e,i){if(i=i||{},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"],i.customHeaders)}deleteAnalyticsCasemanagementAggregatesJob(e,i){if(i=i||{},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"],i.customHeaders)}deleteAnalyticsConversationsAggregatesJob(e,i){if(i=i||{},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"],i.customHeaders)}deleteAnalyticsConversationsDetailsJob(e,i){if(i=i||{},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"],i.customHeaders)}deleteAnalyticsCopilotsAggregatesJob(e,i){if(i=i||{},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"],i.customHeaders)}deleteAnalyticsEvaluationsAggregatesJob(e,i){if(i=i||{},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"],i.customHeaders)}deleteAnalyticsFlowexecutionsAggregatesJob(e,i){if(i=i||{},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"],i.customHeaders)}deleteAnalyticsFlowsAggregatesJob(e,i){if(i=i||{},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"],i.customHeaders)}deleteAnalyticsJourneysAggregatesJob(e,i){if(i=i||{},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"],i.customHeaders)}deleteAnalyticsKnowledgeAggregatesJob(e,i){if(i=i||{},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"],i.customHeaders)}deleteAnalyticsResolutionsAggregatesJob(e,i){if(i=i||{},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"],i.customHeaders)}deleteAnalyticsSummariesAggregatesJob(e,i){if(i=i||{},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"],i.customHeaders)}deleteAnalyticsSurveysAggregatesJob(e,i){if(i=i||{},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"],i.customHeaders)}deleteAnalyticsTaskmanagementAggregatesJob(e,i){if(i=i||{},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"],i.customHeaders)}deleteAnalyticsTranscriptsAggregatesJob(e,i){if(i=i||{},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"],i.customHeaders)}deleteAnalyticsUsersAggregatesJob(e,i){if(i=i||{},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"],i.customHeaders)}deleteAnalyticsUsersDetailsJob(e,i){if(i=i||{},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"],i.customHeaders)}getAnalyticsActionsAggregatesJob(e,i){if(i=i||{},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"],i.customHeaders)}getAnalyticsActionsAggregatesJobResults(e,i){if(i=i||{},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:i.cursor},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getAnalyticsAgentStatus(e,i){if(i=i||{},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"],i.customHeaders)}getAnalyticsAgentcopilotsAggregatesJob(e,i){if(i=i||{},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"],i.customHeaders)}getAnalyticsAgentcopilotsAggregatesJobResults(e,i){if(i=i||{},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:i.cursor},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getAnalyticsAgentutilizationsAggregatesJob(e,i){if(i=i||{},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"],i.customHeaders)}getAnalyticsAgentutilizationsAggregatesJobResults(e,i){if(i=i||{},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:i.cursor},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getAnalyticsBotflowDivisionsReportingturns(e,i){if(i=i||{},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:i.after,pageSize:i.pageSize,interval:i.interval,actionId:i.actionId,sessionId:i.sessionId,language:i.language,askActionResults:i.askActionResults},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getAnalyticsBotflowReportingturns(e,i){if(i=i||{},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:i.after,pageSize:i.pageSize,interval:i.interval,actionId:i.actionId,sessionId:i.sessionId,language:i.language,askActionResults:i.askActionResults},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getAnalyticsBotflowSessions(e,i){if(i=i||{},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:i.after,pageSize:i.pageSize,interval:i.interval,botResultCategories:i.botResultCategories,endLanguage:i.endLanguage},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getAnalyticsBotsAggregatesJob(e,i){if(i=i||{},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"],i.customHeaders)}getAnalyticsBotsAggregatesJobResults(e,i){if(i=i||{},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:i.cursor},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getAnalyticsCasemanagementAggregatesJob(e,i){if(i=i||{},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"],i.customHeaders)}getAnalyticsCasemanagementAggregatesJobResults(e,i){if(i=i||{},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:i.cursor},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getAnalyticsConversationDetails(e,i){if(i=i||{},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"],i.customHeaders)}getAnalyticsConversationsAggregatesJob(e,i){if(i=i||{},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"],i.customHeaders)}getAnalyticsConversationsAggregatesJobResults(e,i){if(i=i||{},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:i.cursor},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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"],i.customHeaders)}getAnalyticsConversationsDetailsJobResults(e,i){if(i=i||{},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:i.cursor,pageSize:i.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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"],i.customHeaders)}getAnalyticsCopilotsAggregatesJobResults(e,i){if(i=i||{},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:i.cursor},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getAnalyticsDataextractionDownload(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getAnalyticsEvaluationsAggregatesJobResults(e,i){if(i=i||{},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:i.cursor},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getAnalyticsFlowexecutionsAggregatesJob(e,i){if(i=i||{},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"],i.customHeaders)}getAnalyticsFlowexecutionsAggregatesJobResults(e,i){if(i=i||{},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:i.cursor},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getAnalyticsFlowsAggregatesJob(e,i){if(i=i||{},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"],i.customHeaders)}getAnalyticsFlowsAggregatesJobResults(e,i){if(i=i||{},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:i.cursor},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getAnalyticsJourneysAggregatesJob(e,i){if(i=i||{},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"],i.customHeaders)}getAnalyticsJourneysAggregatesJobResults(e,i){if(i=i||{},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:i.cursor},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getAnalyticsKnowledgeAggregatesJob(e,i){if(i=i||{},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"],i.customHeaders)}getAnalyticsKnowledgeAggregatesJobResults(e,i){if(i=i||{},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:i.cursor},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getAnalyticsReportingDashboardsUser(e,i){if(i=i||{},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"],i.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,i,n){if(n=n||{},e==null)throw'Missing the required parameter "dashboardType" when calling getAnalyticsReportingSettingsDashboardsQuery';if(i==null)throw'Missing the required parameter "dashboardAccessFilter" when calling getAnalyticsReportingSettingsDashboardsQuery';return this.apiClient.callApi("/api/v2/analytics/reporting/settings/dashboards/query","GET",{},{name:n.name,dashboardType:e,dashboardState:n.dashboardState,dashboardAccessFilter:i,sortBy:n.sortBy,pageNumber:n.pageNumber,pageSize:n.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getAnalyticsReportingSettingsUserDashboards(e,i){if(i=i||{},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:i.sortBy,pageNumber:i.pageNumber,pageSize:i.pageSize,publicOnly:i.publicOnly,favoriteOnly:i.favoriteOnly,deletedOnly:i.deletedOnly,name:i.name},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getAnalyticsResolutionsAggregatesJob(e,i){if(i=i||{},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"],i.customHeaders)}getAnalyticsResolutionsAggregatesJobResults(e,i){if(i=i||{},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:i.cursor},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getAnalyticsSummariesAggregatesJob(e,i){if(i=i||{},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"],i.customHeaders)}getAnalyticsSummariesAggregatesJobResults(e,i){if(i=i||{},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:i.cursor},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getAnalyticsSurveysAggregatesJob(e,i){if(i=i||{},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"],i.customHeaders)}getAnalyticsSurveysAggregatesJobResults(e,i){if(i=i||{},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:i.cursor},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getAnalyticsTaskmanagementAggregatesJob(e,i){if(i=i||{},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"],i.customHeaders)}getAnalyticsTaskmanagementAggregatesJobResults(e,i){if(i=i||{},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:i.cursor},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getAnalyticsTranscriptsAggregatesJob(e,i){if(i=i||{},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"],i.customHeaders)}getAnalyticsTranscriptsAggregatesJobResults(e,i){if(i=i||{},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:i.cursor},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getAnalyticsUsersAggregatesJob(e,i){if(i=i||{},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"],i.customHeaders)}getAnalyticsUsersAggregatesJobResults(e,i){if(i=i||{},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:i.cursor},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getAnalyticsUsersDetailsJob(e,i){if(i=i||{},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"],i.customHeaders)}getAnalyticsUsersDetailsJobResults(e,i){if(i=i||{},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:i.cursor,pageSize:i.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsActionsAggregatesJobs(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsActionsAggregatesQuery(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsAgentcopilotsAggregatesJobs(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsAgentcopilotsAggregatesQuery(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsAgentsStatusCounts(e,i){if(i=i||{},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(i.groupBy,"multi")},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postAnalyticsAgentsStatusQuery(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsAgentutilizationsAggregatesJobs(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsAgentutilizationsAggregatesQuery(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsBotsAggregatesJobs(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsBotsAggregatesQuery(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsCasemanagementAggregatesJobs(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsCasemanagementAggregatesQuery(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsConversationDetailsProperties(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postAnalyticsConversationDetailsProperties';if(i==null)throw'Missing the required parameter "body" when calling postAnalyticsConversationDetailsProperties';return this.apiClient.callApi("/api/v2/analytics/conversations/{conversationId}/details/properties","POST",{conversationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postAnalyticsConversationsActivityQuery(e,i){if(i=i||{},e==null)throw'Missing the required parameter "body" when calling postAnalyticsConversationsActivityQuery';return this.apiClient.callApi("/api/v2/analytics/conversations/activity/query","POST",{},{pageSize:i.pageSize,pageNumber:i.pageNumber},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postAnalyticsConversationsAggregatesJobs(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsConversationsAggregatesQuery(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsConversationsDetailsJobs(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsConversationsDetailsQuery(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsCopilotsAggregatesJobs(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsCopilotsAggregatesQuery(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsDataextractionDownloadsBulk(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsEvaluationsAggregatesJobs(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsEvaluationsAggregatesQuery(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsFlowexecutionsAggregatesJobs(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsFlowexecutionsAggregatesQuery(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsFlowsActivityQuery(e,i){if(i=i||{},e==null)throw'Missing the required parameter "body" when calling postAnalyticsFlowsActivityQuery';return this.apiClient.callApi("/api/v2/analytics/flows/activity/query","POST",{},{pageSize:i.pageSize,pageNumber:i.pageNumber},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postAnalyticsFlowsAggregatesJobs(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsFlowsAggregatesQuery(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsFlowsObservationsQuery(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsJourneysAggregatesJobs(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsJourneysAggregatesQuery(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsKnowledgeAggregatesJobs(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsKnowledgeAggregatesQuery(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsQueuesObservationsQuery(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsRatelimitsAggregatesQuery(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsReportingDashboardsUsersBulkRemove(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsReportingExports(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsReportingSettingsDashboardsBulkRemove(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsReportingSettingsDashboardsQuery(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsResolutionsAggregatesJobs(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsResolutionsAggregatesQuery(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsRoutingActivityQuery(e,i){if(i=i||{},e==null)throw'Missing the required parameter "body" when calling postAnalyticsRoutingActivityQuery';return this.apiClient.callApi("/api/v2/analytics/routing/activity/query","POST",{},{pageSize:i.pageSize,pageNumber:i.pageNumber},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postAnalyticsSummariesAggregatesJobs(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsSummariesAggregatesQuery(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsSurveysAggregatesJobs(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsSurveysAggregatesQuery(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsTaskmanagementAggregatesJobs(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsTaskmanagementAggregatesQuery(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsTaskmanagementMetricsQuery(e,i){if(i=i||{},e==null)throw'Missing the required parameter "body" when calling postAnalyticsTaskmanagementMetricsQuery';return this.apiClient.callApi("/api/v2/analytics/taskmanagement/metrics/query","POST",{},{after:i.after,pageSize:i.pageSize},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postAnalyticsTeamsActivityQuery(e,i){if(i=i||{},e==null)throw'Missing the required parameter "body" when calling postAnalyticsTeamsActivityQuery';return this.apiClient.callApi("/api/v2/analytics/teams/activity/query","POST",{},{pageSize:i.pageSize,pageNumber:i.pageNumber},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postAnalyticsTranscriptsAggregatesJobs(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsTranscriptsAggregatesQuery(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsUsersActivityQuery(e,i){if(i=i||{},e==null)throw'Missing the required parameter "body" when calling postAnalyticsUsersActivityQuery';return this.apiClient.callApi("/api/v2/analytics/users/activity/query","POST",{},{pageSize:i.pageSize,pageNumber:i.pageNumber},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postAnalyticsUsersAggregatesJobs(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsUsersAggregatesQuery(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsUsersDetailsJobs(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsUsersDetailsQuery(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsUsersObservationsQuery(e,i){if(i=i||{},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"],i.customHeaders)}putAnalyticsDataretentionSettings(e,i){if(i=i||{},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"],i.customHeaders)}},qA=class{constructor(e){this.apiClient=e||q.instance}deleteArchitectEmergencygroup(e,i){if(i=i||{},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"],i.customHeaders)}deleteArchitectGrammar(e,i){if(i=i||{},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"],i.customHeaders)}deleteArchitectGrammarLanguage(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "grammarId" when calling deleteArchitectGrammarLanguage';if(i==null||i==="")throw'Missing the required parameter "languageCode" when calling deleteArchitectGrammarLanguage';return this.apiClient.callApi("/api/v2/architect/grammars/{grammarId}/languages/{languageCode}","DELETE",{grammarId:e,languageCode:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteArchitectGrammarLanguageFilesDtmf(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "grammarId" when calling deleteArchitectGrammarLanguageFilesDtmf';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteArchitectGrammarLanguageFilesVoice(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "grammarId" when calling deleteArchitectGrammarLanguageFilesVoice';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteArchitectIvr(e,i){if(i=i||{},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"],i.customHeaders)}deleteArchitectPrompt(e,i){if(i=i||{},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:i.allResources},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}deleteArchitectPromptResource(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "promptId" when calling deleteArchitectPromptResource';if(i==null||i==="")throw'Missing the required parameter "languageCode" when calling deleteArchitectPromptResource';return this.apiClient.callApi("/api/v2/architect/prompts/{promptId}/resources/{languageCode}","DELETE",{promptId:e,languageCode:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteArchitectPromptResourceAudio(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "promptId" when calling deleteArchitectPromptResourceAudio';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteArchitectPrompts(e,i){if(i=i||{},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"],i.customHeaders)}deleteArchitectSchedule(e,i){if(i=i||{},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"],i.customHeaders)}deleteArchitectSchedulegroup(e,i){if(i=i||{},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"],i.customHeaders)}deleteArchitectSystempromptResource(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "promptId" when calling deleteArchitectSystempromptResource';if(i==null||i==="")throw'Missing the required parameter "languageCode" when calling deleteArchitectSystempromptResource';return this.apiClient.callApi("/api/v2/architect/systemprompts/{promptId}/resources/{languageCode}","DELETE",{promptId:e,languageCode:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteFlow(e,i){if(i=i||{},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"],i.customHeaders)}deleteFlowInstancesSettingsLoglevels(e,i){if(i=i||{},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"],i.customHeaders)}deleteFlows(e,i){if(i=i||{},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"],i.customHeaders)}deleteFlowsDatatable(e,i){if(i=i||{},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:i.force},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}deleteFlowsDatatableRow(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "datatableId" when calling deleteFlowsDatatableRow';if(i==null||i==="")throw'Missing the required parameter "rowId" when calling deleteFlowsDatatableRow';return this.apiClient.callApi("/api/v2/flows/datatables/{datatableId}/rows/{rowId}","DELETE",{datatableId:e,rowId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.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,i){if(i=i||{},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"],i.customHeaders)}getArchitectDependencytracking(e,i){if(i=i||{},e==null)throw'Missing the required parameter "name" when calling getArchitectDependencytracking';return this.apiClient.callApi("/api/v2/architect/dependencytracking","GET",{},{pageNumber:i.pageNumber,pageSize:i.pageSize,name:e,objectType:this.apiClient.buildCollectionParam(i.objectType,"multi"),consumedResources:i.consumedResources,consumingResources:i.consumingResources,consumedResourceType:this.apiClient.buildCollectionParam(i.consumedResourceType,"multi"),consumingResourceType:this.apiClient.buildCollectionParam(i.consumingResourceType,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i,n,a){if(a=a||{},e==null)throw'Missing the required parameter "id" when calling getArchitectDependencytrackingConsumedresources';if(i==null)throw'Missing the required parameter "version" when calling getArchitectDependencytrackingConsumedresources';if(n==null)throw'Missing the required parameter "objectType" when calling getArchitectDependencytrackingConsumedresources';return this.apiClient.callApi("/api/v2/architect/dependencytracking/consumedresources","GET",{},{id:e,version:i,objectType:n,resourceType:this.apiClient.buildCollectionParam(a.resourceType,"multi"),pageNumber:a.pageNumber,pageSize:a.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getArchitectDependencytrackingConsumingresources(e,i,n){if(n=n||{},e==null)throw'Missing the required parameter "id" when calling getArchitectDependencytrackingConsumingresources';if(i==null)throw'Missing the required parameter "objectType" when calling getArchitectDependencytrackingConsumingresources';return this.apiClient.callApi("/api/v2/architect/dependencytracking/consumingresources","GET",{},{id:e,objectType:i,resourceType:this.apiClient.buildCollectionParam(n.resourceType,"multi"),version:n.version,pageNumber:n.pageNumber,pageSize:n.pageSize,flowFilter:n.flowFilter},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.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,i){if(i=i||{},e==null)throw'Missing the required parameter "id" when calling getArchitectDependencytrackingObject';return this.apiClient.callApi("/api/v2/architect/dependencytracking/object","GET",{},{id:e,version:i.version,objectType:i.objectType,consumedResources:i.consumedResources,consumingResources:i.consumingResources,consumedResourceType:this.apiClient.buildCollectionParam(i.consumedResourceType,"multi"),consumingResourceType:this.apiClient.buildCollectionParam(i.consumingResourceType,"multi"),consumedResourceRequest:i.consumedResourceRequest},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getArchitectDependencytrackingType(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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:i.includeFileUrls},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getArchitectGrammarLanguage(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "grammarId" when calling getArchitectGrammarLanguage';if(i==null||i==="")throw'Missing the required parameter "languageCode" when calling getArchitectGrammarLanguage';return this.apiClient.callApi("/api/v2/architect/grammars/{grammarId}/languages/{languageCode}","GET",{grammarId:e,languageCode:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.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,i){if(i=i||{},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"],i.customHeaders)}getArchitectIvrIdentityresolution(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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:i.includeMediaUris,includeResources:i.includeResources,language:this.apiClient.buildCollectionParam(i.language,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getArchitectPromptHistoryHistoryId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "promptId" when calling getArchitectPromptHistoryHistoryId';if(i==null||i==="")throw'Missing the required parameter "historyId" when calling getArchitectPromptHistoryHistoryId';return this.apiClient.callApi("/api/v2/architect/prompts/{promptId}/history/{historyId}","GET",{promptId:e,historyId:i},{pageNumber:n.pageNumber,pageSize:n.pageSize,sortOrder:n.sortOrder,sortBy:n.sortBy,action:this.apiClient.buildCollectionParam(n.action,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getArchitectPromptResource(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "promptId" when calling getArchitectPromptResource';if(i==null||i==="")throw'Missing the required parameter "languageCode" when calling getArchitectPromptResource';return this.apiClient.callApi("/api/v2/architect/prompts/{promptId}/resources/{languageCode}","GET",{promptId:e,languageCode:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getArchitectPromptResources(e,i){if(i=i||{},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:i.pageNumber,pageSize:i.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getArchitectPrompts(e){return e=e||{},this.apiClient.callApi("/api/v2/architect/prompts","GET",{},{pageNumber:e.pageNumber,pageSize:e.pageSize,name:this.apiClient.buildCollectionParam(e.name,"multi"),description:e.description,nameOrDescription:e.nameOrDescription,sortBy:e.sortBy,sortOrder:e.sortOrder,includeMediaUris:e.includeMediaUris,includeResources:e.includeResources,language:this.apiClient.buildCollectionParam(e.language,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getArchitectSchedule(e,i){if(i=i||{},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"],i.customHeaders)}getArchitectSchedulegroup(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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:i.includeMediaUris,includeResources:i.includeResources,language:this.apiClient.buildCollectionParam(i.language,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getArchitectSystempromptHistoryHistoryId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "promptId" when calling getArchitectSystempromptHistoryHistoryId';if(i==null||i==="")throw'Missing the required parameter "historyId" when calling getArchitectSystempromptHistoryHistoryId';return this.apiClient.callApi("/api/v2/architect/systemprompts/{promptId}/history/{historyId}","GET",{promptId:e,historyId:i},{pageNumber:n.pageNumber,pageSize:n.pageSize,sortOrder:n.sortOrder,sortBy:n.sortBy,action:this.apiClient.buildCollectionParam(n.action,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getArchitectSystempromptResource(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "promptId" when calling getArchitectSystempromptResource';if(i==null||i==="")throw'Missing the required parameter "languageCode" when calling getArchitectSystempromptResource';return this.apiClient.callApi("/api/v2/architect/systemprompts/{promptId}/resources/{languageCode}","GET",{promptId:e,languageCode:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getArchitectSystempromptResources(e,i){if(i=i||{},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:i.pageNumber,pageSize:i.pageSize,sortBy:i.sortBy,sortOrder:i.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "flowId" when calling getFlow';return this.apiClient.callApi("/api/v2/flows/{flowId}","GET",{flowId:e},{deleted:i.deleted},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getFlowHistoryHistoryId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "flowId" when calling getFlowHistoryHistoryId';if(i==null||i==="")throw'Missing the required parameter "historyId" when calling getFlowHistoryHistoryId';return this.apiClient.callApi("/api/v2/flows/{flowId}/history/{historyId}","GET",{flowId:e,historyId:i},{pageNumber:n.pageNumber,pageSize:n.pageSize,sortOrder:n.sortOrder,sortBy:n.sortBy,action:this.apiClient.buildCollectionParam(n.action,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getFlowInstancesSettingsLoglevels(e,i){if(i=i||{},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(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getFlowLatestconfiguration(e,i){if(i=i||{},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:i.deleted},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getFlowVersion(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "flowId" when calling getFlowVersion';if(i==null||i==="")throw'Missing the required parameter "versionId" when calling getFlowVersion';return this.apiClient.callApi("/api/v2/flows/{flowId}/versions/{versionId}","GET",{flowId:e,versionId:i},{deleted:n.deleted},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getFlowVersionConfiguration(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "flowId" when calling getFlowVersionConfiguration';if(i==null||i==="")throw'Missing the required parameter "versionId" when calling getFlowVersionConfiguration';return this.apiClient.callApi("/api/v2/flows/{flowId}/versions/{versionId}/configuration","GET",{flowId:e,versionId:i},{deleted:n.deleted},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getFlowVersionHealth(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "flowId" when calling getFlowVersionHealth';if(i==null||i==="")throw'Missing the required parameter "versionId" when calling getFlowVersionHealth';return this.apiClient.callApi("/api/v2/flows/{flowId}/versions/{versionId}/health","GET",{flowId:e,versionId:i},{language:n.language},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getFlowVersionIntentHealth(e,i,n,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "flowId" when calling getFlowVersionIntentHealth';if(i==null||i==="")throw'Missing the required parameter "versionId" when calling getFlowVersionIntentHealth';if(n==null||n==="")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:i,intentId:n},{language:a},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}getFlowVersionIntentUtteranceHealth(e,i,n,a,r,s){if(s=s||{},e==null||e==="")throw'Missing the required parameter "flowId" when calling getFlowVersionIntentUtteranceHealth';if(i==null||i==="")throw'Missing the required parameter "versionId" when calling getFlowVersionIntentUtteranceHealth';if(n==null||n==="")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:i,intentId:n,utteranceId:a},{language:r},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],s.customHeaders)}getFlowVersions(e,i){if(i=i||{},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:i.pageNumber,pageSize:i.pageSize,deleted:i.deleted},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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:i.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getFlowsDatatableExportJob(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "datatableId" when calling getFlowsDatatableExportJob';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getFlowsDatatableImportJob(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "datatableId" when calling getFlowsDatatableImportJob';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getFlowsDatatableImportJobs(e,i){if(i=i||{},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:i.pageNumber,pageSize:i.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getFlowsDatatableRow(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "datatableId" when calling getFlowsDatatableRow';if(i==null||i==="")throw'Missing the required parameter "rowId" when calling getFlowsDatatableRow';return this.apiClient.callApi("/api/v2/flows/datatables/{datatableId}/rows/{rowId}","GET",{datatableId:e,rowId:i},{showbrief:n.showbrief},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getFlowsDatatableRows(e,i){if(i=i||{},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:i.pageNumber,pageSize:i.pageSize,showbrief:i.showbrief,sortOrder:i.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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:i.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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"],i.customHeaders)}getFlowsExportJob(e,i){if(i=i||{},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(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getFlowsInstance(e,i){if(i=i||{},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:i.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getFlowsInstancesJob(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getFlowsMilestone(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getFlowsOutcomes(e){return e=e||{},this.apiClient.callApi("/api/v2/flows/outcomes","GET",{},{pageNumber:e.pageNumber,pageSize:e.pageSize,sortBy:e.sortBy,sortOrder:e.sortOrder,id:this.apiClient.buildCollectionParam(e.id,"multi"),name:e.name,description:e.description,nameOrDescription:e.nameOrDescription,divisionId:this.apiClient.buildCollectionParam(e.divisionId,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getFlowsOutcomesDivisionviews(e){return e=e||{},this.apiClient.callApi("/api/v2/flows/outcomes/divisionviews","GET",{},{pageNumber:e.pageNumber,pageSize:e.pageSize,sortBy:e.sortBy,sortOrder:e.sortOrder,id:this.apiClient.buildCollectionParam(e.id,"multi"),name:e.name,divisionId:this.apiClient.buildCollectionParam(e.divisionId,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}patchArchitectGrammar(e,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "grammarId" when calling patchArchitectGrammar';return this.apiClient.callApi("/api/v2/architect/grammars/{grammarId}","PATCH",{grammarId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}patchArchitectGrammarLanguage(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "grammarId" when calling patchArchitectGrammarLanguage';if(i==null||i==="")throw'Missing the required parameter "languageCode" when calling patchArchitectGrammarLanguage';return this.apiClient.callApi("/api/v2/architect/grammars/{grammarId}/languages/{languageCode}","PATCH",{grammarId:e,languageCode:i},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchFlowsInstancesSettingsExecutiondata(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}postArchitectGrammarLanguageFilesDtmf(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "grammarId" when calling postArchitectGrammarLanguageFilesDtmf';if(i==null||i==="")throw'Missing the required parameter "languageCode" when calling postArchitectGrammarLanguageFilesDtmf';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postArchitectGrammarLanguageFilesVoice(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "grammarId" when calling postArchitectGrammarLanguageFilesVoice';if(i==null||i==="")throw'Missing the required parameter "languageCode" when calling postArchitectGrammarLanguageFilesVoice';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postArchitectGrammarLanguages(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "grammarId" when calling postArchitectGrammarLanguages';if(i==null)throw'Missing the required parameter "body" when calling postArchitectGrammarLanguages';return this.apiClient.callApi("/api/v2/architect/grammars/{grammarId}/languages","POST",{grammarId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postArchitectGrammars(e,i){if(i=i||{},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"],i.customHeaders)}postArchitectIvrs(e,i){if(i=i||{},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"],i.customHeaders)}postArchitectPromptHistory(e,i){if(i=i||{},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"],i.customHeaders)}postArchitectPromptResourceUploads(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "promptId" when calling postArchitectPromptResourceUploads';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postArchitectPromptResources(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "promptId" when calling postArchitectPromptResources';if(i==null)throw'Missing the required parameter "body" when calling postArchitectPromptResources';return this.apiClient.callApi("/api/v2/architect/prompts/{promptId}/resources","POST",{promptId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postArchitectPrompts(e,i){if(i=i||{},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"],i.customHeaders)}postArchitectSchedulegroups(e,i){if(i=i||{},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"],i.customHeaders)}postArchitectSchedules(e,i){if(i=i||{},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"],i.customHeaders)}postArchitectSystempromptHistory(e,i){if(i=i||{},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"],i.customHeaders)}postArchitectSystempromptResourceUploads(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "promptId" when calling postArchitectSystempromptResourceUploads';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postArchitectSystempromptResources(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "promptId" when calling postArchitectSystempromptResources';if(i==null)throw'Missing the required parameter "body" when calling postArchitectSystempromptResources';return this.apiClient.callApi("/api/v2/architect/systemprompts/{promptId}/resources","POST",{promptId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postFlowHistory(e,i){if(i=i||{},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"],i.customHeaders)}postFlowInstancesSettingsLoglevels(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "flowId" when calling postFlowInstancesSettingsLoglevels';if(i==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(n.expand,"multi")},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postFlowVersions(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "flowId" when calling postFlowVersions';if(i==null)throw'Missing the required parameter "body" when calling postFlowVersions';return this.apiClient.callApi("/api/v2/flows/{flowId}/versions","POST",{flowId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postFlows(e,i){if(i=i||{},e==null)throw'Missing the required parameter "body" when calling postFlows';return this.apiClient.callApi("/api/v2/flows","POST",{},{language:i.language},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postFlowsActionsCheckin(e,i){if(i=i||{},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"],i.customHeaders)}postFlowsActionsCheckout(e,i){if(i=i||{},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"],i.customHeaders)}postFlowsActionsDeactivate(e,i){if(i=i||{},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"],i.customHeaders)}postFlowsActionsPublish(e,i){if(i=i||{},e==null)throw'Missing the required parameter "flow" when calling postFlowsActionsPublish';return this.apiClient.callApi("/api/v2/flows/actions/publish","POST",{},{flow:e,version:i.version},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postFlowsActionsRevert(e,i){if(i=i||{},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"],i.customHeaders)}postFlowsActionsUnlock(e,i){if(i=i||{},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"],i.customHeaders)}postFlowsDatatableExportJobs(e,i){if(i=i||{},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"],i.customHeaders)}postFlowsDatatableImportCsvJobs(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "datatableId" when calling postFlowsDatatableImportCsvJobs';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postFlowsDatatableImportJobs(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "datatableId" when calling postFlowsDatatableImportJobs';if(i==null)throw'Missing the required parameter "body" when calling postFlowsDatatableImportJobs';return this.apiClient.callApi("/api/v2/flows/datatables/{datatableId}/import/jobs","POST",{datatableId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postFlowsDatatableRows(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "datatableId" when calling postFlowsDatatableRows';if(i==null)throw'Missing the required parameter "dataTableRow" when calling postFlowsDatatableRows';return this.apiClient.callApi("/api/v2/flows/datatables/{datatableId}/rows","POST",{datatableId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postFlowsDatatables(e,i){if(i=i||{},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"],i.customHeaders)}postFlowsExecutions(e,i){if(i=i||{},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"],i.customHeaders)}postFlowsExportJobs(e,i){if(i=i||{},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"],i.customHeaders)}postFlowsInstancesJobs(e,i){if(i=i||{},e==null)throw'Missing the required parameter "body" when calling postFlowsInstancesJobs';return this.apiClient.callApi("/api/v2/flows/instances/jobs","POST",{},{expand:i.expand},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postFlowsInstancesQuery(e,i){if(i=i||{},e==null)throw'Missing the required parameter "body" when calling postFlowsInstancesQuery';return this.apiClient.callApi("/api/v2/flows/instances/query","POST",{},{indexOnly:i.indexOnly,pageSize:i.pageSize},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postFlowsJobs(e){return e=e||{},this.apiClient.callApi("/api/v2/flows/jobs","POST",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}postFlowsMilestones(e){return e=e||{},this.apiClient.callApi("/api/v2/flows/milestones","POST",{},{},{},{},e.body,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}postFlowsOutcomes(e){return e=e||{},this.apiClient.callApi("/api/v2/flows/outcomes","POST",{},{},{},{},e.body,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}putArchitectEmergencygroup(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "emergencyGroupId" when calling putArchitectEmergencygroup';if(i==null)throw'Missing the required parameter "body" when calling putArchitectEmergencygroup';return this.apiClient.callApi("/api/v2/architect/emergencygroups/{emergencyGroupId}","PUT",{emergencyGroupId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putArchitectIvr(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "ivrId" when calling putArchitectIvr';if(i==null)throw'Missing the required parameter "body" when calling putArchitectIvr';return this.apiClient.callApi("/api/v2/architect/ivrs/{ivrId}","PUT",{ivrId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putArchitectIvrIdentityresolution(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "ivrId" when calling putArchitectIvrIdentityresolution';if(i==null)throw'Missing the required parameter "body" when calling putArchitectIvrIdentityresolution';return this.apiClient.callApi("/api/v2/architect/ivrs/{ivrId}/identityresolution","PUT",{ivrId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putArchitectPrompt(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "promptId" when calling putArchitectPrompt';if(i==null)throw'Missing the required parameter "body" when calling putArchitectPrompt';return this.apiClient.callApi("/api/v2/architect/prompts/{promptId}","PUT",{promptId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putArchitectPromptResource(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "promptId" when calling putArchitectPromptResource';if(i==null||i==="")throw'Missing the required parameter "languageCode" when calling putArchitectPromptResource';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}putArchitectSchedule(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "scheduleId" when calling putArchitectSchedule';if(i==null)throw'Missing the required parameter "body" when calling putArchitectSchedule';return this.apiClient.callApi("/api/v2/architect/schedules/{scheduleId}","PUT",{scheduleId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putArchitectSchedulegroup(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "scheduleGroupId" when calling putArchitectSchedulegroup';if(i==null)throw'Missing the required parameter "body" when calling putArchitectSchedulegroup';return this.apiClient.callApi("/api/v2/architect/schedulegroups/{scheduleGroupId}","PUT",{scheduleGroupId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putArchitectSystempromptResource(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "promptId" when calling putArchitectSystempromptResource';if(i==null||i==="")throw'Missing the required parameter "languageCode" when calling putArchitectSystempromptResource';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}putFlow(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "flowId" when calling putFlow';if(i==null)throw'Missing the required parameter "body" when calling putFlow';return this.apiClient.callApi("/api/v2/flows/{flowId}","PUT",{flowId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putFlowInstancesSettingsLoglevels(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "flowId" when calling putFlowInstancesSettingsLoglevels';if(i==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(n.expand,"multi")},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putFlowsDatatable(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "datatableId" when calling putFlowsDatatable';if(i==null)throw'Missing the required parameter "body" when calling putFlowsDatatable';return this.apiClient.callApi("/api/v2/flows/datatables/{datatableId}","PUT",{datatableId:e},{expand:n.expand},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putFlowsDatatableRow(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "datatableId" when calling putFlowsDatatableRow';if(i==null||i==="")throw'Missing the required parameter "rowId" when calling putFlowsDatatableRow';return this.apiClient.callApi("/api/v2/flows/datatables/{datatableId}/rows/{rowId}","PUT",{datatableId:e,rowId:i},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putFlowsInstancesSettingsLoglevelsDefault(e,i){if(i=i||{},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(i.expand,"multi")},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}putFlowsMilestone(e,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "milestoneId" when calling putFlowsMilestone';return this.apiClient.callApi("/api/v2/flows/milestones/{milestoneId}","PUT",{milestoneId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}putFlowsOutcome(e,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "flowOutcomeId" when calling putFlowsOutcome';return this.apiClient.callApi("/api/v2/flows/outcomes/{flowOutcomeId}","PUT",{flowOutcomeId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}},_A=class{constructor(e){this.apiClient=e||q.instance}deleteAssistantVariation(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "assistantId" when calling deleteAssistantVariation';if(i==null||i==="")throw'Missing the required parameter "variationId" when calling deleteAssistantVariation';return this.apiClient.callApi("/api/v2/assistants/{assistantId}/variations/{variationId}","DELETE",{assistantId:e,variationId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getAssistantVariation(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "assistantId" when calling getAssistantVariation';if(i==null||i==="")throw'Missing the required parameter "variationId" when calling getAssistantVariation';return this.apiClient.callApi("/api/v2/assistants/{assistantId}/variations/{variationId}","GET",{assistantId:e,variationId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getAssistantVariations(e,i){if(i=i||{},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"],i.customHeaders)}postAssistantVariations(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "assistantId" when calling postAssistantVariations';if(i==null)throw'Missing the required parameter "body" when calling postAssistantVariations';return this.apiClient.callApi("/api/v2/assistants/{assistantId}/variations","POST",{assistantId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putAssistantVariation(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "assistantId" when calling putAssistantVariation';if(i==null||i==="")throw'Missing the required parameter "variationId" when calling putAssistantVariation';if(n==null)throw'Missing the required parameter "body" when calling putAssistantVariation';return this.apiClient.callApi("/api/v2/assistants/{assistantId}/variations/{variationId}","PUT",{assistantId:e,variationId:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}},HA=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,i){if(i=i||{},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"],i.customHeaders)}getAuditsQueryTransactionIdResults(e,i){if(i=i||{},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:i.cursor,pageSize:i.pageSize,expand:this.apiClient.buildCollectionParam(i.expand,"multi"),allowRedirect:i.allowRedirect},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postAuditsQuery(e,i){if(i=i||{},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"],i.customHeaders)}postAuditsQueryRealtime(e,i){if(i=i||{},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(i.expand,"multi")},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postAuditsQueryRealtimeRelated(e,i){if(i=i||{},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(i.expand,"multi")},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}},RA=class{constructor(e){this.apiClient=e||q.instance}deleteAuthorizationDivision(e,i){if(i=i||{},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:i.force},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}deleteAuthorizationPoliciesTargetSubjectSubjectId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "targetName" when calling deleteAuthorizationPoliciesTargetSubjectSubjectId';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteAuthorizationRole(e,i){if(i=i||{},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"],i.customHeaders)}deleteAuthorizationSubjectDivisionRole(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "subjectId" when calling deleteAuthorizationSubjectDivisionRole';if(i==null||i==="")throw'Missing the required parameter "divisionId" when calling deleteAuthorizationSubjectDivisionRole';if(n==null||n==="")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:i,roleId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getAuthorizationDivision(e,i){if(i=i||{},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:i.objectCount},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getAuthorizationDivisionGrants(e,i){if(i=i||{},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:i.pageNumber,pageSize:i.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},e==null)throw'Missing the required parameter "permission" when calling getAuthorizationDivisionspermittedMe';return this.apiClient.callApi("/api/v2/authorization/divisionspermitted/me","GET",{},{name:i.name,permission:e},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getAuthorizationDivisionspermittedPagedMe(e,i){if(i=i||{},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:i.pageNumber,pageSize:i.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getAuthorizationDivisionspermittedPagedSubjectId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "subjectId" when calling getAuthorizationDivisionspermittedPagedSubjectId';if(i==null)throw'Missing the required parameter "permission" when calling getAuthorizationDivisionspermittedPagedSubjectId';return this.apiClient.callApi("/api/v2/authorization/divisionspermitted/paged/{subjectId}","GET",{subjectId:e},{permission:i,pageNumber:n.pageNumber,pageSize:n.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.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,i){if(i=i||{},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:i.after,pageSize:i.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getAuthorizationPoliciesTarget(e,i){if(i=i||{},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:i.after,pageSize:i.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getAuthorizationPoliciesTargetSubjectSubjectId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "targetName" when calling getAuthorizationPoliciesTargetSubjectSubjectId';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.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,i){if(i=i||{},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"],i.customHeaders)}getAuthorizationPolicyAttributes(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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:i.userCount,expand:this.apiClient.buildCollectionParam(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getAuthorizationRoleComparedefaultRightRoleId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "leftRoleId" when calling getAuthorizationRoleComparedefaultRightRoleId';if(i==null||i==="")throw'Missing the required parameter "rightRoleId" when calling getAuthorizationRoleComparedefaultRightRoleId';return this.apiClient.callApi("/api/v2/authorization/roles/{leftRoleId}/comparedefault/{rightRoleId}","GET",{leftRoleId:e,rightRoleId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getAuthorizationRoleSubjectgrants(e,i){if(i=i||{},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:i.pageSize,pageNumber:i.pageNumber,sortBy:i.sortBy,expand:this.apiClient.buildCollectionParam(i.expand,"multi"),nextPage:i.nextPage,previousPage:i.previousPage},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getAuthorizationRoleUsers(e,i){if(i=i||{},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:i.pageSize,pageNumber:i.pageNumber},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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:i.includeDuplicates},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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"],i.customHeaders)}patchAuthorizationRole(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "roleId" when calling patchAuthorizationRole';if(i==null)throw'Missing the required parameter "body" when calling patchAuthorizationRole';return this.apiClient.callApi("/api/v2/authorization/roles/{roleId}","PATCH",{roleId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchAuthorizationSettings(e,i){if(i=i||{},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"],i.customHeaders)}postAuthorizationDivisionObject(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "divisionId" when calling postAuthorizationDivisionObject';if(i==null||i==="")throw'Missing the required parameter "objectType" when calling postAuthorizationDivisionObject';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postAuthorizationDivisionRestore(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "divisionId" when calling postAuthorizationDivisionRestore';if(i==null)throw'Missing the required parameter "body" when calling postAuthorizationDivisionRestore';return this.apiClient.callApi("/api/v2/authorization/divisions/{divisionId}/restore","POST",{divisionId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postAuthorizationDivisions(e,i){if(i=i||{},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"],i.customHeaders)}postAuthorizationPoliciesTarget(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "targetName" when calling postAuthorizationPoliciesTarget';if(i==null)throw'Missing the required parameter "body" when calling postAuthorizationPoliciesTarget';return this.apiClient.callApi("/api/v2/authorization/policies/targets/{targetName}","POST",{targetName:e},{skipLockoutCheck:n.skipLockoutCheck},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postAuthorizationPoliciesTargetValidate(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "targetName" when calling postAuthorizationPoliciesTargetValidate';if(i==null)throw'Missing the required parameter "body" when calling postAuthorizationPoliciesTargetValidate';return this.apiClient.callApi("/api/v2/authorization/policies/targets/{targetName}/validate","POST",{targetName:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postAuthorizationPolicySimulate(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "policyId" when calling postAuthorizationPolicySimulate';if(i==null)throw'Missing the required parameter "body" when calling postAuthorizationPolicySimulate';return this.apiClient.callApi("/api/v2/authorization/policies/{policyId}/simulate","POST",{policyId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postAuthorizationRole(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "roleId" when calling postAuthorizationRole';if(i==null)throw'Missing the required parameter "body" when calling postAuthorizationRole';return this.apiClient.callApi("/api/v2/authorization/roles/{roleId}","POST",{roleId:e},{subjectType:n.subjectType},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postAuthorizationRoleComparedefaultRightRoleId(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "leftRoleId" when calling postAuthorizationRoleComparedefaultRightRoleId';if(i==null||i==="")throw'Missing the required parameter "rightRoleId" when calling postAuthorizationRoleComparedefaultRightRoleId';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postAuthorizationRoles(e,i){if(i=i||{},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"],i.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,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "subjectId" when calling postAuthorizationSubjectBulkadd';if(i==null)throw'Missing the required parameter "body" when calling postAuthorizationSubjectBulkadd';return this.apiClient.callApi("/api/v2/authorization/subjects/{subjectId}/bulkadd","POST",{subjectId:e},{subjectType:n.subjectType},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postAuthorizationSubjectBulkremove(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "subjectId" when calling postAuthorizationSubjectBulkremove';if(i==null)throw'Missing the required parameter "body" when calling postAuthorizationSubjectBulkremove';return this.apiClient.callApi("/api/v2/authorization/subjects/{subjectId}/bulkremove","POST",{subjectId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postAuthorizationSubjectBulkreplace(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "subjectId" when calling postAuthorizationSubjectBulkreplace';if(i==null)throw'Missing the required parameter "body" when calling postAuthorizationSubjectBulkreplace';return this.apiClient.callApi("/api/v2/authorization/subjects/{subjectId}/bulkreplace","POST",{subjectId:e},{subjectType:n.subjectType},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postAuthorizationSubjectDivisionRole(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "subjectId" when calling postAuthorizationSubjectDivisionRole';if(i==null||i==="")throw'Missing the required parameter "divisionId" when calling postAuthorizationSubjectDivisionRole';if(n==null||n==="")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:i,roleId:n},{subjectType:a.subjectType},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}putAuthorizationDivision(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "divisionId" when calling putAuthorizationDivision';if(i==null)throw'Missing the required parameter "body" when calling putAuthorizationDivision';return this.apiClient.callApi("/api/v2/authorization/divisions/{divisionId}","PUT",{divisionId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putAuthorizationPoliciesTarget(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "targetName" when calling putAuthorizationPoliciesTarget';if(i==null)throw'Missing the required parameter "body" when calling putAuthorizationPoliciesTarget';return this.apiClient.callApi("/api/v2/authorization/policies/targets/{targetName}","PUT",{targetName:e},{skipLockoutCheck:n.skipLockoutCheck},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putAuthorizationPolicy(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "policyId" when calling putAuthorizationPolicy';if(i==null)throw'Missing the required parameter "body" when calling putAuthorizationPolicy';return this.apiClient.callApi("/api/v2/authorization/policies/{policyId}","PUT",{policyId:e},{skipLockoutCheck:n.skipLockoutCheck},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putAuthorizationRole(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "roleId" when calling putAuthorizationRole';if(i==null)throw'Missing the required parameter "body" when calling putAuthorizationRole';return this.apiClient.callApi("/api/v2/authorization/roles/{roleId}","PUT",{roleId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putAuthorizationRoleUsersAdd(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "roleId" when calling putAuthorizationRoleUsersAdd';if(i==null)throw'Missing the required parameter "body" when calling putAuthorizationRoleUsersAdd';return this.apiClient.callApi("/api/v2/authorization/roles/{roleId}/users/add","PUT",{roleId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putAuthorizationRoleUsersRemove(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "roleId" when calling putAuthorizationRoleUsersRemove';if(i==null)throw'Missing the required parameter "body" when calling putAuthorizationRoleUsersRemove';return this.apiClient.callApi("/api/v2/authorization/roles/{roleId}/users/remove","PUT",{roleId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putAuthorizationRolesDefault(e,i){if(i=i||{},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"],i.customHeaders)}putAuthorizationRolesSettings(e,i){if(i=i||{},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"],i.customHeaders)}putUserRoles(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "subjectId" when calling putUserRoles';if(i==null)throw'Missing the required parameter "body" when calling putUserRoles';return this.apiClient.callApi("/api/v2/users/{subjectId}/roles","PUT",{subjectId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}},IA=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)}},zA=class{constructor(e){this.apiClient=e||q.instance}getBillingContract(e,i){if(i=i||{},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"],i.customHeaders)}getBillingContractBillingperiod(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "contractId" when calling getBillingContractBillingperiod';if(i==null||i==="")throw'Missing the required parameter "billingPeriodId" when calling getBillingContractBillingperiod';return this.apiClient.callApi("/api/v2/billing/contracts/{contractId}/billingperiods/{billingPeriodId}","GET",{contractId:e,billingPeriodId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.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,i){if(i=i||{},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"],i.customHeaders)}getBillingContractsInvoiceLines(e,i){if(i=i||{},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:i.before,after:i.after,pageSize:i.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i,n){if(n=n||{},e==null)throw'Missing the required parameter "startDate" when calling getBillingReportsBillableusage';if(i==null)throw'Missing the required parameter "endDate" when calling getBillingReportsBillableusage';return this.apiClient.callApi("/api/v2/billing/reports/billableusage","GET",{},{startDate:e,endDate:i},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getBillingTrusteebillingoverviewTrustorOrgId(e,i){if(i=i||{},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:i.billingPeriodIndex},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}},DA=class{constructor(e){this.apiClient=e||q.instance}deleteBusinessrulesDecisiontable(e,i){if(i=i||{},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:i.forceDelete},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}deleteBusinessrulesDecisiontableVersion(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "tableId" when calling deleteBusinessrulesDecisiontableVersion';if(i==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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteBusinessrulesDecisiontableVersionRow(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "tableId" when calling deleteBusinessrulesDecisiontableVersionRow';if(i==null)throw'Missing the required parameter "tableVersion" when calling deleteBusinessrulesDecisiontableVersionRow';if(n==null||n==="")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:i,rowId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}deleteBusinessrulesSchema(e,i){if(i=i||{},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"],i.customHeaders)}getBusinessrulesDecisiontable(e,i){if(i=i||{},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"],i.customHeaders)}getBusinessrulesDecisiontableVersion(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "tableId" when calling getBusinessrulesDecisiontableVersion';if(i==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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getBusinessrulesDecisiontableVersionRow(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "tableId" when calling getBusinessrulesDecisiontableVersionRow';if(i==null)throw'Missing the required parameter "tableVersion" when calling getBusinessrulesDecisiontableVersionRow';if(n==null||n==="")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:i,rowId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getBusinessrulesDecisiontableVersionRows(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "tableId" when calling getBusinessrulesDecisiontableVersionRows';if(i==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:i},{pageNumber:n.pageNumber,pageSize:n.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getBusinessrulesDecisiontableVersions(e,i){if(i=i||{},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:i.after,pageSize:i.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "tableId" when calling patchBusinessrulesDecisiontable';if(i==null)throw'Missing the required parameter "body" when calling patchBusinessrulesDecisiontable';return this.apiClient.callApi("/api/v2/businessrules/decisiontables/{tableId}","PATCH",{tableId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchBusinessrulesDecisiontableVersion(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "tableId" when calling patchBusinessrulesDecisiontableVersion';if(i==null)throw'Missing the required parameter "tableVersion" when calling patchBusinessrulesDecisiontableVersion';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postBusinessrulesDecisiontableExecute(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "tableId" when calling postBusinessrulesDecisiontableExecute';if(i==null)throw'Missing the required parameter "body" when calling postBusinessrulesDecisiontableExecute';return this.apiClient.callApi("/api/v2/businessrules/decisiontables/{tableId}/execute","POST",{tableId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postBusinessrulesDecisiontableVersionCopy(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "tableId" when calling postBusinessrulesDecisiontableVersionCopy';if(i==null)throw'Missing the required parameter "tableVersion" when calling postBusinessrulesDecisiontableVersionCopy';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postBusinessrulesDecisiontableVersionExecute(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "tableId" when calling postBusinessrulesDecisiontableVersionExecute';if(i==null)throw'Missing the required parameter "tableVersion" when calling postBusinessrulesDecisiontableVersionExecute';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postBusinessrulesDecisiontableVersionRows(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "tableId" when calling postBusinessrulesDecisiontableVersionRows';if(i==null)throw'Missing the required parameter "tableVersion" when calling postBusinessrulesDecisiontableVersionRows';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postBusinessrulesDecisiontableVersionRowsSearch(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "tableId" when calling postBusinessrulesDecisiontableVersionRowsSearch';if(i==null)throw'Missing the required parameter "tableVersion" when calling postBusinessrulesDecisiontableVersionRowsSearch';if(n==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:i},{pageNumber:a.pageNumber,pageSize:a.pageSize},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postBusinessrulesDecisiontableVersionSync(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "tableId" when calling postBusinessrulesDecisiontableVersionSync';if(i==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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postBusinessrulesDecisiontableVersions(e,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "tableId" when calling postBusinessrulesDecisiontableVersions';return this.apiClient.callApi("/api/v2/businessrules/decisiontables/{tableId}/versions","POST",{tableId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postBusinessrulesDecisiontables(e,i){if(i=i||{},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"],i.customHeaders)}postBusinessrulesSchemas(e,i){if(i=i||{},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"],i.customHeaders)}putBusinessrulesDecisiontableVersionPublish(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "tableId" when calling putBusinessrulesDecisiontableVersionPublish';if(i==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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putBusinessrulesDecisiontableVersionRow(e,i,n,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "tableId" when calling putBusinessrulesDecisiontableVersionRow';if(i==null)throw'Missing the required parameter "tableVersion" when calling putBusinessrulesDecisiontableVersionRow';if(n==null||n==="")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:i,rowId:n},{},{},{},a,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}putBusinessrulesSchema(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "schemaId" when calling putBusinessrulesSchema';if(i==null)throw'Missing the required parameter "body" when calling putBusinessrulesSchema';return this.apiClient.callApi("/api/v2/businessrules/schemas/{schemaId}","PUT",{schemaId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}},GA=class{constructor(e){this.apiClient=e||q.instance}getCarrierservicesIntegrationsEmergencylocationsMe(e,i){if(i=i||{},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"],i.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)}},$A=class{constructor(e){this.apiClient=e||q.instance}deleteCasemanagementCase(e,i){if(i=i||{},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"],i.customHeaders)}deleteCasemanagementCaseplan(e,i){if(i=i||{},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"],i.customHeaders)}getCasemanagementCase(e,i){if(i=i||{},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:i.expands},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getCasemanagementCaseAssociation(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "caseId" when calling getCasemanagementCaseAssociation';if(i==null||i==="")throw'Missing the required parameter "associationId" when calling getCasemanagementCaseAssociation';return this.apiClient.callApi("/api/v2/casemanagement/cases/{caseId}/associations/{associationId}","GET",{caseId:e,associationId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getCasemanagementCaseAssociations(e,i){if(i=i||{},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:i.before,after:i.after,pageSize:i.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getCasemanagementCaseStage(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "caseId" when calling getCasemanagementCaseStage';if(i==null||i==="")throw'Missing the required parameter "stageId" when calling getCasemanagementCaseStage';return this.apiClient.callApi("/api/v2/casemanagement/cases/{caseId}/stages/{stageId}","GET",{caseId:e,stageId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getCasemanagementCaseStageStep(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "caseId" when calling getCasemanagementCaseStageStep';if(i==null||i==="")throw'Missing the required parameter "stageId" when calling getCasemanagementCaseStageStep';if(n==null||n==="")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:i,stepId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getCasemanagementCaseStageSteps(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "caseId" when calling getCasemanagementCaseStageSteps';if(i==null||i==="")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:i},{before:n.before,after:n.after,pageSize:n.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getCasemanagementCaseStages(e,i){if(i=i||{},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:i.before,after:i.after,pageSize:i.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getCasemanagementCaseTerminateJob(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "caseId" when calling getCasemanagementCaseTerminateJob';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getCasemanagementCaseplan(e,i){if(i=i||{},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"],i.customHeaders)}getCasemanagementCaseplanVersion(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "caseplanId" when calling getCasemanagementCaseplanVersion';if(i==null||i==="")throw'Missing the required parameter "versionId" when calling getCasemanagementCaseplanVersion';return this.apiClient.callApi("/api/v2/casemanagement/caseplans/{caseplanId}/versions/{versionId}","GET",{caseplanId:e,versionId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getCasemanagementCaseplanVersionDataschemas(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "caseplanId" when calling getCasemanagementCaseplanVersionDataschemas';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getCasemanagementCaseplanVersionIntakesettings(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "caseplanId" when calling getCasemanagementCaseplanVersionIntakesettings';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getCasemanagementCaseplanVersionStageplan(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "caseplanId" when calling getCasemanagementCaseplanVersionStageplan';if(i==null||i==="")throw'Missing the required parameter "versionId" when calling getCasemanagementCaseplanVersionStageplan';if(n==null||n==="")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:i,stageplanId:n},{expands:this.apiClient.buildCollectionParam(a.expands,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getCasemanagementCaseplanVersionStageplanStepplan(e,i,n,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "caseplanId" when calling getCasemanagementCaseplanVersionStageplanStepplan';if(i==null||i==="")throw'Missing the required parameter "versionId" when calling getCasemanagementCaseplanVersionStageplanStepplan';if(n==null||n==="")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:i,stageplanId:n,stepplanId:a},{expands:this.apiClient.buildCollectionParam(r.expands,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}getCasemanagementCaseplanVersionStageplanStepplans(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "caseplanId" when calling getCasemanagementCaseplanVersionStageplanStepplans';if(i==null||i==="")throw'Missing the required parameter "versionId" when calling getCasemanagementCaseplanVersionStageplanStepplans';if(n==null||n==="")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:i,stageplanId:n},{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,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "caseplanId" when calling getCasemanagementCaseplanVersionStageplans';if(i==null||i==="")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:i},{before:n.before,after:n.after,pageSize:n.pageSize,expands:this.apiClient.buildCollectionParam(n.expands,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.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,i){if(i=i||{},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:i.after,pageSize:i.pageSize,divisionIds:i.divisionIds,expands:this.apiClient.buildCollectionParam(i.expands,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getCasemanagementCasesReference(e,i){if(i=i||{},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:i.expands},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}patchCasemanagementCaseDatedue(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "caseId" when calling patchCasemanagementCaseDatedue';if(i==null)throw'Missing the required parameter "body" when calling patchCasemanagementCaseDatedue';return this.apiClient.callApi("/api/v2/casemanagement/cases/{caseId}/datedue","PATCH",{caseId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchCasemanagementCasePriority(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "caseId" when calling patchCasemanagementCasePriority';if(i==null)throw'Missing the required parameter "body" when calling patchCasemanagementCasePriority';return this.apiClient.callApi("/api/v2/casemanagement/cases/{caseId}/priority","PATCH",{caseId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchCasemanagementCaseSummary(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "caseId" when calling patchCasemanagementCaseSummary';if(i==null)throw'Missing the required parameter "body" when calling patchCasemanagementCaseSummary';return this.apiClient.callApi("/api/v2/casemanagement/cases/{caseId}/summary","PATCH",{caseId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchCasemanagementCaseplan(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "caseplanId" when calling patchCasemanagementCaseplan';if(i==null)throw'Missing the required parameter "body" when calling patchCasemanagementCaseplan';return this.apiClient.callApi("/api/v2/casemanagement/caseplans/{caseplanId}","PATCH",{caseplanId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchCasemanagementCaseplanStageplan(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "caseplanId" when calling patchCasemanagementCaseplanStageplan';if(i==null||i==="")throw'Missing the required parameter "stageplanId" when calling patchCasemanagementCaseplanStageplan';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchCasemanagementCaseplanStageplanStepplan(e,i,n,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "caseplanId" when calling patchCasemanagementCaseplanStageplanStepplan';if(i==null||i==="")throw'Missing the required parameter "stageplanId" when calling patchCasemanagementCaseplanStageplanStepplan';if(n==null||n==="")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:i,stepplanId:n},{},{},{},a,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}postCasemanagementCaseAssociations(e,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "caseId" when calling postCasemanagementCaseAssociations';return this.apiClient.callApi("/api/v2/casemanagement/cases/{caseId}/associations","POST",{caseId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postCasemanagementCaseTerminateJobs(e,i){if(i=i||{},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"],i.customHeaders)}postCasemanagementCaseplanPublish(e,i){if(i=i||{},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"],i.customHeaders)}postCasemanagementCaseplanVersions(e,i){if(i=i||{},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"],i.customHeaders)}postCasemanagementCaseplans(e,i){if(i=i||{},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"],i.customHeaders)}postCasemanagementCaseplansQuery(e,i){if(i=i||{},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"],i.customHeaders)}postCasemanagementCases(e,i){if(i=i||{},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"],i.customHeaders)}postCasemanagementCasesAssociationsQuery(e){return e=e||{},this.apiClient.callApi("/api/v2/casemanagement/cases/associations/query","POST",{},{},{},{},e.body,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}putCasemanagementCaseplanIntakesettings(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "caseplanId" when calling putCasemanagementCaseplanIntakesettings';if(i==null)throw'Missing the required parameter "body" when calling putCasemanagementCaseplanIntakesettings';return this.apiClient.callApi("/api/v2/casemanagement/caseplans/{caseplanId}/intakesettings","PUT",{caseplanId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}},NA=class{constructor(e){this.apiClient=e||q.instance}deleteChatsRoomMessage(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "roomJid" when calling deleteChatsRoomMessage';if(i==null||i==="")throw'Missing the required parameter "messageId" when calling deleteChatsRoomMessage';return this.apiClient.callApi("/api/v2/chats/rooms/{roomJid}/messages/{messageId}","DELETE",{roomJid:e,messageId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteChatsRoomMessagesPin(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "roomJid" when calling deleteChatsRoomMessagesPin';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteChatsRoomParticipant(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "roomJid" when calling deleteChatsRoomParticipant';if(i==null||i==="")throw'Missing the required parameter "userId" when calling deleteChatsRoomParticipant';return this.apiClient.callApi("/api/v2/chats/rooms/{roomJid}/participants/{userId}","DELETE",{roomJid:e,userId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteChatsUserMessage(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling deleteChatsUserMessage';if(i==null||i==="")throw'Missing the required parameter "messageId" when calling deleteChatsUserMessage';return this.apiClient.callApi("/api/v2/chats/users/{userId}/messages/{messageId}","DELETE",{userId:e,messageId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteChatsUserMessagesPin(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling deleteChatsUserMessagesPin';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.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,i){if(i=i||{},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"],i.customHeaders)}getChatsRoom(e,i){if(i=i||{},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"],i.customHeaders)}getChatsRoomMessage(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "roomJid" when calling getChatsRoomMessage';if(i==null||i==="")throw'Missing the required parameter "messageIds" when calling getChatsRoomMessage';return this.apiClient.callApi("/api/v2/chats/rooms/{roomJid}/messages/{messageIds}","GET",{roomJid:e,messageIds:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getChatsRoomMessages(e,i){if(i=i||{},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:i.limit,before:i.before,after:i.after,excludeMetadata:i.excludeMetadata},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getChatsRoomParticipant(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "roomJid" when calling getChatsRoomParticipant';if(i==null||i==="")throw'Missing the required parameter "participantJid" when calling getChatsRoomParticipant';return this.apiClient.callApi("/api/v2/chats/rooms/{roomJid}/participants/{participantJid}","GET",{roomJid:e,participantJid:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getChatsRoomParticipants(e,i){if(i=i||{},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:i.notify},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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:i.limit,before:i.before,after:i.after,excludeMetadata:i.excludeMetadata},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getChatsUser(e,i){if(i=i||{},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"],i.customHeaders)}getChatsUserMessage(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling getChatsUserMessage';if(i==null||i==="")throw'Missing the required parameter "messageIds" when calling getChatsUserMessage';return this.apiClient.callApi("/api/v2/chats/users/{userId}/messages/{messageIds}","GET",{userId:e,messageIds:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getChatsUserMessages(e,i){if(i=i||{},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:i.limit,before:i.before,after:i.after,excludeMetadata:i.excludeMetadata},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getChatsUserSettings(e,i){if(i=i||{},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"],i.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,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "roomJid" when calling patchChatsRoom';if(i==null)throw'Missing the required parameter "body" when calling patchChatsRoom';return this.apiClient.callApi("/api/v2/chats/rooms/{roomJid}","PATCH",{roomJid:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchChatsRoomMessage(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "roomJid" when calling patchChatsRoomMessage';if(i==null||i==="")throw'Missing the required parameter "messageId" when calling patchChatsRoomMessage';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchChatsSettings(e,i){if(i=i||{},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"],i.customHeaders)}patchChatsUserMessage(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "userId" when calling patchChatsUserMessage';if(i==null||i==="")throw'Missing the required parameter "messageId" when calling patchChatsUserMessage';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchChatsUserSettings(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling patchChatsUserSettings';if(i==null)throw'Missing the required parameter "body" when calling patchChatsUserSettings';return this.apiClient.callApi("/api/v2/chats/users/{userId}/settings","PATCH",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchChatsUsersMeSettings(e,i){if(i=i||{},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"],i.customHeaders)}postChatsRoomMessages(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "roomJid" when calling postChatsRoomMessages';if(i==null)throw'Missing the required parameter "body" when calling postChatsRoomMessages';return this.apiClient.callApi("/api/v2/chats/rooms/{roomJid}/messages","POST",{roomJid:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postChatsRoomMessagesPins(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "roomJid" when calling postChatsRoomMessagesPins';if(i==null)throw'Missing the required parameter "body" when calling postChatsRoomMessagesPins';return this.apiClient.callApi("/api/v2/chats/rooms/{roomJid}/messages/pins","POST",{roomJid:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postChatsRoomParticipant(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "roomJid" when calling postChatsRoomParticipant';if(i==null||i==="")throw'Missing the required parameter "userId" when calling postChatsRoomParticipant';return this.apiClient.callApi("/api/v2/chats/rooms/{roomJid}/participants/{userId}","POST",{roomJid:e,userId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postChatsRooms(e,i){if(i=i||{},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"],i.customHeaders)}postChatsUserMessages(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling postChatsUserMessages';if(i==null)throw'Missing the required parameter "body" when calling postChatsUserMessages';return this.apiClient.callApi("/api/v2/chats/users/{userId}/messages","POST",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postChatsUserMessagesPins(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling postChatsUserMessagesPins';if(i==null)throw'Missing the required parameter "body" when calling postChatsUserMessagesPins';return this.apiClient.callApi("/api/v2/chats/users/{userId}/messages/pins","POST",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postChatsUsersMeSettings(e,i){if(i=i||{},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"],i.customHeaders)}putChatsMessageReactions(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "messageId" when calling putChatsMessageReactions';if(i==null)throw'Missing the required parameter "body" when calling putChatsMessageReactions';return this.apiClient.callApi("/api/v2/chats/messages/{messageId}/reactions","PUT",{messageId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putChatsSettings(e,i){if(i=i||{},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"],i.customHeaders)}},UA=class{constructor(e){this.apiClient=e||q.instance}deleteCoachingAppointment(e,i){if(i=i||{},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"],i.customHeaders)}deleteCoachingAppointmentAnnotation(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "appointmentId" when calling deleteCoachingAppointmentAnnotation';if(i==null||i==="")throw'Missing the required parameter "annotationId" when calling deleteCoachingAppointmentAnnotation';return this.apiClient.callApi("/api/v2/coaching/appointments/{appointmentId}/annotations/{annotationId}","DELETE",{appointmentId:e,annotationId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getCoachingAppointment(e,i){if(i=i||{},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"],i.customHeaders)}getCoachingAppointmentAnnotation(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "appointmentId" when calling getCoachingAppointmentAnnotation';if(i==null||i==="")throw'Missing the required parameter "annotationId" when calling getCoachingAppointmentAnnotation';return this.apiClient.callApi("/api/v2/coaching/appointments/{appointmentId}/annotations/{annotationId}","GET",{appointmentId:e,annotationId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getCoachingAppointmentAnnotations(e,i){if(i=i||{},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:i.pageNumber,pageSize:i.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getCoachingAppointmentStatuses(e,i){if(i=i||{},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:i.pageNumber,pageSize:i.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getCoachingAppointments(e,i){if(i=i||{},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:i.interval,pageNumber:i.pageNumber,pageSize:i.pageSize,statuses:this.apiClient.buildCollectionParam(i.statuses,"multi"),facilitatorIds:this.apiClient.buildCollectionParam(i.facilitatorIds,"multi"),sortOrder:i.sortOrder,relationships:this.apiClient.buildCollectionParam(i.relationships,"multi"),completionInterval:i.completionInterval,overdue:i.overdue,intervalCondition:i.intervalCondition},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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"],i.customHeaders)}patchCoachingAppointment(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "appointmentId" when calling patchCoachingAppointment';if(i==null)throw'Missing the required parameter "body" when calling patchCoachingAppointment';return this.apiClient.callApi("/api/v2/coaching/appointments/{appointmentId}","PATCH",{appointmentId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchCoachingAppointmentAnnotation(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "appointmentId" when calling patchCoachingAppointmentAnnotation';if(i==null||i==="")throw'Missing the required parameter "annotationId" when calling patchCoachingAppointmentAnnotation';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchCoachingAppointmentStatus(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "appointmentId" when calling patchCoachingAppointmentStatus';if(i==null)throw'Missing the required parameter "body" when calling patchCoachingAppointmentStatus';return this.apiClient.callApi("/api/v2/coaching/appointments/{appointmentId}/status","PATCH",{appointmentId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchCoachingNotification(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "notificationId" when calling patchCoachingNotification';if(i==null)throw'Missing the required parameter "body" when calling patchCoachingNotification';return this.apiClient.callApi("/api/v2/coaching/notifications/{notificationId}","PATCH",{notificationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postCoachingAppointmentAnnotations(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "appointmentId" when calling postCoachingAppointmentAnnotations';if(i==null)throw'Missing the required parameter "body" when calling postCoachingAppointmentAnnotations';return this.apiClient.callApi("/api/v2/coaching/appointments/{appointmentId}/annotations","POST",{appointmentId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postCoachingAppointmentConversations(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "appointmentId" when calling postCoachingAppointmentConversations';if(i==null)throw'Missing the required parameter "body" when calling postCoachingAppointmentConversations';return this.apiClient.callApi("/api/v2/coaching/appointments/{appointmentId}/conversations","POST",{appointmentId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postCoachingAppointments(e,i){if(i=i||{},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"],i.customHeaders)}postCoachingAppointmentsAggregatesQuery(e,i){if(i=i||{},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"],i.customHeaders)}postCoachingScheduleslotsJobs(e,i){if(i=i||{},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"],i.customHeaders)}postCoachingScheduleslotsQuery(e,i){if(i=i||{},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"],i.customHeaders)}},LA=class{constructor(e){this.apiClient=e||q.instance}deleteContentmanagementDocument(e,i){if(i=i||{},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:i.override},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}deleteContentmanagementShare(e,i){if(i=i||{},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"],i.customHeaders)}deleteContentmanagementStatusStatusId(e,i){if(i=i||{},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"],i.customHeaders)}deleteContentmanagementWorkspace(e,i){if(i=i||{},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:i.moveChildrenToWorkspaceId},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}deleteContentmanagementWorkspaceMember(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "workspaceId" when calling deleteContentmanagementWorkspaceMember';if(i==null||i==="")throw'Missing the required parameter "memberId" when calling deleteContentmanagementWorkspaceMember';return this.apiClient.callApi("/api/v2/contentmanagement/workspaces/{workspaceId}/members/{memberId}","DELETE",{workspaceId:e,memberId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteContentmanagementWorkspaceTagvalue(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "workspaceId" when calling deleteContentmanagementWorkspaceTagvalue';if(i==null||i==="")throw'Missing the required parameter "tagId" when calling deleteContentmanagementWorkspaceTagvalue';return this.apiClient.callApi("/api/v2/contentmanagement/workspaces/{workspaceId}/tagvalues/{tagId}","DELETE",{workspaceId:e,tagId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getContentmanagementDocument(e,i){if(i=i||{},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(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getContentmanagementDocumentContent(e,i){if(i=i||{},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:i.disposition,contentType:i.contentType},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getContentmanagementDocuments(e,i){if(i=i||{},e==null)throw'Missing the required parameter "workspaceId" when calling getContentmanagementDocuments';return this.apiClient.callApi("/api/v2/contentmanagement/documents","GET",{},{workspaceId:e,name:i.name,expand:this.apiClient.buildCollectionParam(i.expand,"multi"),pageSize:i.pageSize,pageNumber:i.pageNumber,sortBy:i.sortBy,sortOrder:i.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getContentmanagementQuery(e,i){if(i=i||{},e==null)throw'Missing the required parameter "queryPhrase" when calling getContentmanagementQuery';return this.apiClient.callApi("/api/v2/contentmanagement/query","GET",{},{pageSize:i.pageSize,pageNumber:i.pageNumber,sortBy:i.sortBy,sortOrder:i.sortOrder,queryPhrase:e,expand:this.apiClient.buildCollectionParam(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getContentmanagementSecurityprofile(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getContentmanagementSharedSharedId(e,i){if(i=i||{},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:i.disposition,contentType:i.contentType,expand:i.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getContentmanagementWorkspaceDocuments(e,i){if(i=i||{},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(i.expand,"multi"),pageSize:i.pageSize,pageNumber:i.pageNumber,sortBy:i.sortBy,sortOrder:i.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getContentmanagementWorkspaceMember(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "workspaceId" when calling getContentmanagementWorkspaceMember';if(i==null||i==="")throw'Missing the required parameter "memberId" when calling getContentmanagementWorkspaceMember';return this.apiClient.callApi("/api/v2/contentmanagement/workspaces/{workspaceId}/members/{memberId}","GET",{workspaceId:e,memberId:i},{expand:this.apiClient.buildCollectionParam(n.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getContentmanagementWorkspaceMembers(e,i){if(i=i||{},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:i.pageSize,pageNumber:i.pageNumber,expand:this.apiClient.buildCollectionParam(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getContentmanagementWorkspaceTagvalue(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "workspaceId" when calling getContentmanagementWorkspaceTagvalue';if(i==null||i==="")throw'Missing the required parameter "tagId" when calling getContentmanagementWorkspaceTagvalue';return this.apiClient.callApi("/api/v2/contentmanagement/workspaces/{workspaceId}/tagvalues/{tagId}","GET",{workspaceId:e,tagId:i},{expand:this.apiClient.buildCollectionParam(n.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getContentmanagementWorkspaceTagvalues(e,i){if(i=i||{},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:i.value,pageSize:i.pageSize,pageNumber:i.pageNumber,expand:this.apiClient.buildCollectionParam(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "documentId" when calling postContentmanagementDocument';if(i==null)throw'Missing the required parameter "body" when calling postContentmanagementDocument';return this.apiClient.callApi("/api/v2/contentmanagement/documents/{documentId}","POST",{documentId:e},{expand:n.expand,override:n.override},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postContentmanagementDocumentContent(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "documentId" when calling postContentmanagementDocumentContent';if(i==null)throw'Missing the required parameter "body" when calling postContentmanagementDocumentContent';return this.apiClient.callApi("/api/v2/contentmanagement/documents/{documentId}/content","POST",{documentId:e},{override:n.override},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postContentmanagementDocuments(e,i){if(i=i||{},e==null)throw'Missing the required parameter "body" when calling postContentmanagementDocuments';return this.apiClient.callApi("/api/v2/contentmanagement/documents","POST",{},{copySource:i.copySource,moveSource:i.moveSource,override:i.override},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postContentmanagementQuery(e,i){if(i=i||{},e==null)throw'Missing the required parameter "body" when calling postContentmanagementQuery';return this.apiClient.callApi("/api/v2/contentmanagement/query","POST",{},{expand:i.expand},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postContentmanagementShares(e,i){if(i=i||{},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"],i.customHeaders)}postContentmanagementWorkspaceTagvalues(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "workspaceId" when calling postContentmanagementWorkspaceTagvalues';if(i==null)throw'Missing the required parameter "body" when calling postContentmanagementWorkspaceTagvalues';return this.apiClient.callApi("/api/v2/contentmanagement/workspaces/{workspaceId}/tagvalues","POST",{workspaceId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postContentmanagementWorkspaceTagvaluesQuery(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "workspaceId" when calling postContentmanagementWorkspaceTagvaluesQuery';if(i==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(n.expand,"multi")},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postContentmanagementWorkspaces(e,i){if(i=i||{},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"],i.customHeaders)}putContentmanagementWorkspace(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "workspaceId" when calling putContentmanagementWorkspace';if(i==null)throw'Missing the required parameter "body" when calling putContentmanagementWorkspace';return this.apiClient.callApi("/api/v2/contentmanagement/workspaces/{workspaceId}","PUT",{workspaceId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putContentmanagementWorkspaceMember(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "workspaceId" when calling putContentmanagementWorkspaceMember';if(i==null||i==="")throw'Missing the required parameter "memberId" when calling putContentmanagementWorkspaceMember';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}putContentmanagementWorkspaceTagvalue(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "workspaceId" when calling putContentmanagementWorkspaceTagvalue';if(i==null||i==="")throw'Missing the required parameter "tagId" when calling putContentmanagementWorkspaceTagvalue';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}},WA=class{constructor(e){this.apiClient=e||q.instance}deleteAnalyticsConversationsAggregatesJob(e,i){if(i=i||{},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"],i.customHeaders)}deleteAnalyticsConversationsDetailsJob(e,i){if(i=i||{},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"],i.customHeaders)}deleteConversation(e,i){if(i=i||{},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"],i.customHeaders)}deleteConversationCustomattribute(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling deleteConversationCustomattribute';if(i==null||i==="")throw'Missing the required parameter "attributesId" when calling deleteConversationCustomattribute';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/customattributes/{attributesId}","DELETE",{conversationId:e,attributesId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteConversationParticipantCode(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling deleteConversationParticipantCode';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling deleteConversationParticipantCode';if(n==null||n==="")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:i,addCommunicationCode:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}deleteConversationParticipantFlaggedreason(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling deleteConversationParticipantFlaggedreason';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling deleteConversationParticipantFlaggedreason';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/participants/{participantId}/flaggedreason","DELETE",{conversationId:e,participantId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteConversationsCallParticipantCommunicationPostflowaction(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling deleteConversationsCallParticipantCommunicationPostflowaction';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling deleteConversationsCallParticipantCommunicationPostflowaction';if(n==null||n==="")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:i,communicationId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}deleteConversationsCallParticipantConsult(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling deleteConversationsCallParticipantConsult';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteConversationsEmailMessagesDraftAttachment(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling deleteConversationsEmailMessagesDraftAttachment';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteConversationsMessagesCachedmediaCachedMediaItemId(e,i){if(i=i||{},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"],i.customHeaders)}deleteConversationsMessagingIntegrationsAppleIntegrationId(e,i){if(i=i||{},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"],i.customHeaders)}deleteConversationsMessagingIntegrationsFacebookIntegrationId(e,i){if(i=i||{},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"],i.customHeaders)}deleteConversationsMessagingIntegrationsInstagramIntegrationId(e,i){if(i=i||{},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"],i.customHeaders)}deleteConversationsMessagingIntegrationsOpenExtensionsGooglebusinessprofileIntegrationId(e,i){if(i=i||{},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"],i.customHeaders)}deleteConversationsMessagingIntegrationsOpenIntegrationId(e,i){if(i=i||{},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"],i.customHeaders)}deleteConversationsMessagingIntegrationsTwitterIntegrationId(e,i){if(i=i||{},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"],i.customHeaders)}deleteConversationsMessagingIntegrationsWhatsappIntegrationId(e,i){if(i=i||{},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"],i.customHeaders)}deleteConversationsMessagingSetting(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getAnalyticsConversationDetails(e,i){if(i=i||{},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"],i.customHeaders)}getAnalyticsConversationsAggregatesJob(e,i){if(i=i||{},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"],i.customHeaders)}getAnalyticsConversationsAggregatesJobResults(e,i){if(i=i||{},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:i.cursor},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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"],i.customHeaders)}getAnalyticsConversationsDetailsJobResults(e,i){if(i=i||{},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:i.cursor,pageSize:i.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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"],i.customHeaders)}getConversationAssistantCopilotcontext(e,i){if(i=i||{},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"],i.customHeaders)}getConversationCommunicationAgentchecklist(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationCommunicationAgentchecklist';if(i==null||i==="")throw'Missing the required parameter "communicationId" when calling getConversationCommunicationAgentchecklist';if(n==null||n==="")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:i,agentChecklistId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getConversationCommunicationAgentchecklistJob(e,i,n,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationCommunicationAgentchecklistJob';if(i==null||i==="")throw'Missing the required parameter "communicationId" when calling getConversationCommunicationAgentchecklistJob';if(n==null||n==="")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:i,agentChecklistId:n,jobId:a},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}getConversationCommunicationAgentchecklists(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationCommunicationAgentchecklists';if(i==null||i==="")throw'Missing the required parameter "communicationId" when calling getConversationCommunicationAgentchecklists';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/communications/{communicationId}/agentchecklists","GET",{conversationId:e,communicationId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getConversationCommunicationInternalmessage(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationCommunicationInternalmessage';if(i==null||i==="")throw'Missing the required parameter "communicationId" when calling getConversationCommunicationInternalmessage';if(n==null||n==="")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:i,messageId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getConversationCommunicationInternalmessages(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationCommunicationInternalmessages';if(i==null||i==="")throw'Missing the required parameter "communicationId" when calling getConversationCommunicationInternalmessages';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/communications/{communicationId}/internalmessages","GET",{conversationId:e,communicationId:i},{pageSize:n.pageSize,pageNumber:n.pageNumber},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getConversationCustomattribute(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationCustomattribute';if(i==null||i==="")throw'Missing the required parameter "attributesId" when calling getConversationCustomattribute';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/customattributes/{attributesId}","GET",{conversationId:e,attributesId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getConversationCustomattributes(e,i){if(i=i||{},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"],i.customHeaders)}getConversationParticipantSecureivrsession(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationParticipantSecureivrsession';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling getConversationParticipantSecureivrsession';if(n==null||n==="")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:i,secureSessionId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getConversationParticipantSecureivrsessions(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationParticipantSecureivrsessions';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling getConversationParticipantSecureivrsessions';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/participants/{participantId}/secureivrsessions","GET",{conversationId:e,participantId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getConversationParticipantWrapup(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationParticipantWrapup';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling getConversationParticipantWrapup';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/participants/{participantId}/wrapup","GET",{conversationId:e,participantId:i},{provisional:n.provisional},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getConversationParticipantWrapupcodes(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationParticipantWrapupcodes';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling getConversationParticipantWrapupcodes';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/participants/{participantId}/wrapupcodes","GET",{conversationId:e,participantId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getConversationSecureattributes(e,i){if(i=i||{},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"],i.customHeaders)}getConversationSuggestion(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationSuggestion';if(i==null||i==="")throw'Missing the required parameter "suggestionId" when calling getConversationSuggestion';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/suggestions/{suggestionId}","GET",{conversationId:e,suggestionId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getConversationSuggestions(e,i){if(i=i||{},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:i.before,after:i.after,pageSize:i.pageSize,type:i.type,state:i.state},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getConversationSummaries(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getConversationsCallParticipantCommunicationWrapup(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationsCallParticipantCommunicationWrapup';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling getConversationsCallParticipantCommunicationWrapup';if(n==null||n==="")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:i,communicationId:n},{provisional:a.provisional},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getConversationsCallParticipantWrapup(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationsCallParticipantWrapup';if(i==null||i==="")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:i},{provisional:n.provisional},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getConversationsCallParticipantWrapupcodes(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationsCallParticipantWrapupcodes';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getConversationsCallback(e,i){if(i=i||{},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"],i.customHeaders)}getConversationsCallbackParticipantCommunicationWrapup(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationsCallbackParticipantCommunicationWrapup';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling getConversationsCallbackParticipantCommunicationWrapup';if(n==null||n==="")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:i,communicationId:n},{provisional:a.provisional},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getConversationsCallbackParticipantWrapup(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationsCallbackParticipantWrapup';if(i==null||i==="")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:i},{provisional:n.provisional},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getConversationsCallbackParticipantWrapupcodes(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationsCallbackParticipantWrapupcodes';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getConversationsCallbacks(e){return e=e||{},this.apiClient.callApi("/api/v2/conversations/callbacks","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getConversationsCalls(e){return e=e||{},this.apiClient.callApi("/api/v2/conversations/calls","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getConversationsCallsHistory(e){return e=e||{},this.apiClient.callApi("/api/v2/conversations/calls/history","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,interval:e.interval,expand:this.apiClient.buildCollectionParam(e.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getConversationsCallsMaximumconferenceparties(e){return e=e||{},this.apiClient.callApi("/api/v2/conversations/calls/maximumconferenceparties","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getConversationsChat(e,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationsChat';return this.apiClient.callApi("/api/v2/conversations/chats/{conversationId}","GET",{conversationId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getConversationsChatMessage(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationsChatMessage';if(i==null||i==="")throw'Missing the required parameter "messageId" when calling getConversationsChatMessage';return this.apiClient.callApi("/api/v2/conversations/chats/{conversationId}/messages/{messageId}","GET",{conversationId:e,messageId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getConversationsChatMessages(e,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationsChatMessages';return this.apiClient.callApi("/api/v2/conversations/chats/{conversationId}/messages","GET",{conversationId:e},{after:i.after,before:i.before,sortOrder:i.sortOrder,maxResults:i.maxResults},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getConversationsChatParticipantCommunicationWrapup(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationsChatParticipantCommunicationWrapup';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling getConversationsChatParticipantCommunicationWrapup';if(n==null||n==="")throw'Missing the required parameter "communicationId" when calling getConversationsChatParticipantCommunicationWrapup';return this.apiClient.callApi("/api/v2/conversations/chats/{conversationId}/participants/{participantId}/communications/{communicationId}/wrapup","GET",{conversationId:e,participantId:i,communicationId:n},{provisional:a.provisional},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getConversationsChatParticipantWrapup(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationsChatParticipantWrapup';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling getConversationsChatParticipantWrapup';return this.apiClient.callApi("/api/v2/conversations/chats/{conversationId}/participants/{participantId}/wrapup","GET",{conversationId:e,participantId:i},{provisional:n.provisional},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getConversationsChatParticipantWrapupcodes(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationsChatParticipantWrapupcodes';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling getConversationsChatParticipantWrapupcodes';return this.apiClient.callApi("/api/v2/conversations/chats/{conversationId}/participants/{participantId}/wrapupcodes","GET",{conversationId:e,participantId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getConversationsChats(e){return e=e||{},this.apiClient.callApi("/api/v2/conversations/chats","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getConversationsCobrowsesession(e,i){if(i=i||{},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"],i.customHeaders)}getConversationsCobrowsesessionParticipantCommunicationWrapup(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationsCobrowsesessionParticipantCommunicationWrapup';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling getConversationsCobrowsesessionParticipantCommunicationWrapup';if(n==null||n==="")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:i,communicationId:n},{provisional:a.provisional},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getConversationsCobrowsesessionParticipantWrapup(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationsCobrowsesessionParticipantWrapup';if(i==null||i==="")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:i},{provisional:n.provisional},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getConversationsCobrowsesessionParticipantWrapupcodes(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationsCobrowsesessionParticipantWrapupcodes';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.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,i){if(i=i||{},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"],i.customHeaders)}getConversationsCustomattributesSchemaVersion(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "schemaId" when calling getConversationsCustomattributesSchemaVersion';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getConversationsCustomattributesSchemaVersions(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getConversationsEmailMessage(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationsEmailMessage';if(i==null||i==="")throw'Missing the required parameter "messageId" when calling getConversationsEmailMessage';return this.apiClient.callApi("/api/v2/conversations/emails/{conversationId}/messages/{messageId}","GET",{conversationId:e,messageId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getConversationsEmailMessages(e,i){if(i=i||{},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:i.includeAgentlessStitchedMessages},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getConversationsEmailMessagesDraft(e,i){if(i=i||{},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"],i.customHeaders)}getConversationsEmailParticipantCommunicationWrapup(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationsEmailParticipantCommunicationWrapup';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling getConversationsEmailParticipantCommunicationWrapup';if(n==null||n==="")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:i,communicationId:n},{provisional:a.provisional},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getConversationsEmailParticipantWrapup(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationsEmailParticipantWrapup';if(i==null||i==="")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:i},{provisional:n.provisional},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getConversationsEmailParticipantWrapupcodes(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationsEmailParticipantWrapupcodes';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getConversationsEmailSettings(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getConversationsMessageCommunicationMessagesMedia(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationsMessageCommunicationMessagesMedia';if(i==null||i==="")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:i},{status:n.status,pageNumber:n.pageNumber,pageSize:n.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getConversationsMessageCommunicationMessagesMediaMediaId(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationsMessageCommunicationMessagesMediaMediaId';if(i==null||i==="")throw'Missing the required parameter "communicationId" when calling getConversationsMessageCommunicationMessagesMediaMediaId';if(n==null||n==="")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:i,mediaId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getConversationsMessageDetails(e,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "messageId" when calling getConversationsMessageDetails';return this.apiClient.callApi("/api/v2/conversations/messages/{messageId}/details","GET",{messageId:e},{useNormalizedMessage:i.useNormalizedMessage},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getConversationsMessageMessage(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationsMessageMessage';if(i==null||i==="")throw'Missing the required parameter "messageId" when calling getConversationsMessageMessage';return this.apiClient.callApi("/api/v2/conversations/messages/{conversationId}/messages/{messageId}","GET",{conversationId:e,messageId:i},{useNormalizedMessage:n.useNormalizedMessage},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getConversationsMessageParticipantCommunicationWrapup(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationsMessageParticipantCommunicationWrapup';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling getConversationsMessageParticipantCommunicationWrapup';if(n==null||n==="")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:i,communicationId:n},{provisional:a.provisional},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getConversationsMessageParticipantWrapup(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationsMessageParticipantWrapup';if(i==null||i==="")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:i},{provisional:n.provisional},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getConversationsMessageParticipantWrapupcodes(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationsMessageParticipantWrapupcodes';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getConversationsMessagingIdentityresolutionIntegrationsFacebookIntegrationId(e,i){if(i=i||{},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"],i.customHeaders)}getConversationsMessagingIdentityresolutionIntegrationsInstagramIntegrationId(e,i){if(i=i||{},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"],i.customHeaders)}getConversationsMessagingIdentityresolutionIntegrationsOpenIntegrationId(e,i){if(i=i||{},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"],i.customHeaders)}getConversationsMessagingIdentityresolutionIntegrationsTwitterIntegrationId(e,i){if(i=i||{},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"],i.customHeaders)}getConversationsMessagingIdentityresolutionIntegrationsWhatsappIntegrationId(e,i){if(i=i||{},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"],i.customHeaders)}getConversationsMessagingIntegrationTwitterOauthSettings(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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:i.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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:i.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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:i.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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:i.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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"],i.customHeaders)}getConversationsMessagingIntegrationsOpenExtensionsGooglebusinessprofileTokenAccounts(e,i){if(i=i||{},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"],i.customHeaders)}getConversationsMessagingIntegrationsOpenIntegrationId(e,i){if(i=i||{},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:i.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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:i.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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:i.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getConversationsMessagingOauthAppleCallback(e,i,n){if(n=n||{},e==null)throw'Missing the required parameter "code" when calling getConversationsMessagingOauthAppleCallback';if(i==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:i,error:n.error},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getConversationsMessagingSetting(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationsScreenshareParticipantCommunicationWrapup';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling getConversationsScreenshareParticipantCommunicationWrapup';if(n==null||n==="")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:i,communicationId:n},{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,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationsSocialParticipantCommunicationWrapup';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling getConversationsSocialParticipantCommunicationWrapup';if(n==null||n==="")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:i,communicationId:n},{provisional:a.provisional},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getConversationsVideoDetails(e,i){if(i=i||{},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"],i.customHeaders)}getConversationsVideoParticipantCommunicationWrapup(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationsVideoParticipantCommunicationWrapup';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling getConversationsVideoParticipantCommunicationWrapup';if(n==null||n==="")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:i,communicationId:n},{provisional:a.provisional},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getConversationsVideosMeeting(e,i){if(i=i||{},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"],i.customHeaders)}patchConversationCustomattributes(e,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchConversationCustomattributes';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/customattributes","PATCH",{conversationId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}patchConversationCustomattributesBulk(e,i){if(i=i||{},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},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}patchConversationParticipant(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchConversationParticipant';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling patchConversationParticipant';if(n==null)throw'Missing the required parameter "body" when calling patchConversationParticipant';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/participants/{participantId}","PATCH",{conversationId:e,participantId:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchConversationParticipantAttributes(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchConversationParticipantAttributes';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling patchConversationParticipantAttributes';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchConversationRecordingstate(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchConversationRecordingstate';if(i==null)throw'Missing the required parameter "body" when calling patchConversationRecordingstate';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/recordingstate","PATCH",{conversationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchConversationSecureattributes(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchConversationSecureattributes';if(i==null)throw'Missing the required parameter "body" when calling patchConversationSecureattributes';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/secureattributes","PATCH",{conversationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchConversationSummaryEngagements(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchConversationSummaryEngagements';if(i==null||i==="")throw'Missing the required parameter "summaryId" when calling patchConversationSummaryEngagements';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/summaries/{summaryId}/engagements","PATCH",{conversationId:e,summaryId:i},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchConversationSummaryFeedback(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchConversationSummaryFeedback';if(i==null||i==="")throw'Missing the required parameter "summaryId" when calling patchConversationSummaryFeedback';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/summaries/{summaryId}/feedback","PATCH",{conversationId:e,summaryId:i},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchConversationUtilizationlabel(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchConversationUtilizationlabel';if(i==null)throw'Missing the required parameter "body" when calling patchConversationUtilizationlabel';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/utilizationlabel","PATCH",{conversationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchConversationsAftercallworkConversationIdParticipantCommunication(e,i,n,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchConversationsAftercallworkConversationIdParticipantCommunication';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling patchConversationsAftercallworkConversationIdParticipantCommunication';if(n==null||n==="")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:i,communicationId:n},{},{},{},a,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}patchConversationsCall(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchConversationsCall';if(i==null)throw'Missing the required parameter "body" when calling patchConversationsCall';return this.apiClient.callApi("/api/v2/conversations/calls/{conversationId}","PATCH",{conversationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchConversationsCallConference(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchConversationsCallConference';if(i==null)throw'Missing the required parameter "body" when calling patchConversationsCallConference';return this.apiClient.callApi("/api/v2/conversations/calls/{conversationId}/conference","PATCH",{conversationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchConversationsCallParticipant(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchConversationsCallParticipant';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling patchConversationsCallParticipant';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchConversationsCallParticipantAttributes(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchConversationsCallParticipantAttributes';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling patchConversationsCallParticipantAttributes';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchConversationsCallParticipantCommunication(e,i,n,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchConversationsCallParticipantCommunication';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling patchConversationsCallParticipantCommunication';if(n==null||n==="")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:i,communicationId:n},{},{},{},a,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}patchConversationsCallParticipantCommunicationPostflowaction(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchConversationsCallParticipantCommunicationPostflowaction';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling patchConversationsCallParticipantCommunicationPostflowaction';if(n==null||n==="")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:i,communicationId:n},{},{},{},a.body,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchConversationsCallParticipantConsult(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchConversationsCallParticipantConsult';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling patchConversationsCallParticipantConsult';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchConversationsCallParticipantUserUserId(e,i,n,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchConversationsCallParticipantUserUserId';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling patchConversationsCallParticipantUserUserId';if(n==null||n==="")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:i,userId:n},{},{},{},a,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}patchConversationsCallback(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchConversationsCallback';if(i==null)throw'Missing the required parameter "body" when calling patchConversationsCallback';return this.apiClient.callApi("/api/v2/conversations/callbacks/{conversationId}","PATCH",{conversationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchConversationsCallbackParticipant(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchConversationsCallbackParticipant';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling patchConversationsCallbackParticipant';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchConversationsCallbackParticipantAttributes(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchConversationsCallbackParticipantAttributes';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling patchConversationsCallbackParticipantAttributes';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchConversationsCallbackParticipantCommunication(e,i,n,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchConversationsCallbackParticipantCommunication';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling patchConversationsCallbackParticipantCommunication';if(n==null||n==="")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:i,communicationId:n},{},{},{},a,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}patchConversationsCallbacks(e,i){if(i=i||{},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"],i.customHeaders)}patchConversationsChat(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchConversationsChat';if(i==null)throw'Missing the required parameter "body" when calling patchConversationsChat';return this.apiClient.callApi("/api/v2/conversations/chats/{conversationId}","PATCH",{conversationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchConversationsChatParticipant(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchConversationsChatParticipant';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling patchConversationsChatParticipant';if(n==null)throw'Missing the required parameter "body" when calling patchConversationsChatParticipant';return this.apiClient.callApi("/api/v2/conversations/chats/{conversationId}/participants/{participantId}","PATCH",{conversationId:e,participantId:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchConversationsChatParticipantAttributes(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchConversationsChatParticipantAttributes';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling patchConversationsChatParticipantAttributes';if(n==null)throw'Missing the required parameter "body" when calling patchConversationsChatParticipantAttributes';return this.apiClient.callApi("/api/v2/conversations/chats/{conversationId}/participants/{participantId}/attributes","PATCH",{conversationId:e,participantId:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchConversationsChatParticipantCommunication(e,i,n,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchConversationsChatParticipantCommunication';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling patchConversationsChatParticipantCommunication';if(n==null||n==="")throw'Missing the required parameter "communicationId" when calling patchConversationsChatParticipantCommunication';if(a==null)throw'Missing the required parameter "body" when calling patchConversationsChatParticipantCommunication';return this.apiClient.callApi("/api/v2/conversations/chats/{conversationId}/participants/{participantId}/communications/{communicationId}","PATCH",{conversationId:e,participantId:i,communicationId:n},{},{},{},a,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}patchConversationsCobrowsesession(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchConversationsCobrowsesession';if(i==null)throw'Missing the required parameter "body" when calling patchConversationsCobrowsesession';return this.apiClient.callApi("/api/v2/conversations/cobrowsesessions/{conversationId}","PATCH",{conversationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchConversationsCobrowsesessionParticipant(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchConversationsCobrowsesessionParticipant';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling patchConversationsCobrowsesessionParticipant';return this.apiClient.callApi("/api/v2/conversations/cobrowsesessions/{conversationId}/participants/{participantId}","PATCH",{conversationId:e,participantId:i},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchConversationsCobrowsesessionParticipantAttributes(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchConversationsCobrowsesessionParticipantAttributes';if(i==null||i==="")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:i},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchConversationsCobrowsesessionParticipantCommunication(e,i,n,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchConversationsCobrowsesessionParticipantCommunication';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling patchConversationsCobrowsesessionParticipantCommunication';if(n==null||n==="")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:i,communicationId:n},{},{},{},a,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}patchConversationsEmail(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchConversationsEmail';if(i==null)throw'Missing the required parameter "body" when calling patchConversationsEmail';return this.apiClient.callApi("/api/v2/conversations/emails/{conversationId}","PATCH",{conversationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchConversationsEmailMessagesDraft(e,i){if(i=i||{},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:i.autoFill,discard:i.discard},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}patchConversationsEmailParticipant(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchConversationsEmailParticipant';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling patchConversationsEmailParticipant';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchConversationsEmailParticipantAttributes(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchConversationsEmailParticipantAttributes';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling patchConversationsEmailParticipantAttributes';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchConversationsEmailParticipantCommunication(e,i,n,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchConversationsEmailParticipantCommunication';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling patchConversationsEmailParticipantCommunication';if(n==null||n==="")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:i,communicationId:n},{},{},{},a,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}patchConversationsEmailParticipantParkingstate(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchConversationsEmailParticipantParkingstate';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling patchConversationsEmailParticipantParkingstate';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchConversationsMessage(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchConversationsMessage';if(i==null)throw'Missing the required parameter "body" when calling patchConversationsMessage';return this.apiClient.callApi("/api/v2/conversations/messages/{conversationId}","PATCH",{conversationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchConversationsMessageParticipant(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchConversationsMessageParticipant';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling patchConversationsMessageParticipant';return this.apiClient.callApi("/api/v2/conversations/messages/{conversationId}/participants/{participantId}","PATCH",{conversationId:e,participantId:i},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchConversationsMessageParticipantAttributes(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchConversationsMessageParticipantAttributes';if(i==null||i==="")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:i},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchConversationsMessageParticipantCommunication(e,i,n,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchConversationsMessageParticipantCommunication';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling patchConversationsMessageParticipantCommunication';if(n==null||n==="")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:i,communicationId:n},{},{},{},a,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}patchConversationsMessageParticipantParkingstate(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchConversationsMessageParticipantParkingstate';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling patchConversationsMessageParticipantParkingstate';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchConversationsMessagingIntegrationsAppleIntegrationId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "integrationId" when calling patchConversationsMessagingIntegrationsAppleIntegrationId';if(i==null)throw'Missing the required parameter "body" when calling patchConversationsMessagingIntegrationsAppleIntegrationId';return this.apiClient.callApi("/api/v2/conversations/messaging/integrations/apple/{integrationId}","PATCH",{integrationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchConversationsMessagingIntegrationsFacebookIntegrationId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "integrationId" when calling patchConversationsMessagingIntegrationsFacebookIntegrationId';if(i==null)throw'Missing the required parameter "body" when calling patchConversationsMessagingIntegrationsFacebookIntegrationId';return this.apiClient.callApi("/api/v2/conversations/messaging/integrations/facebook/{integrationId}","PATCH",{integrationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchConversationsMessagingIntegrationsInstagramIntegrationId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "integrationId" when calling patchConversationsMessagingIntegrationsInstagramIntegrationId';if(i==null)throw'Missing the required parameter "body" when calling patchConversationsMessagingIntegrationsInstagramIntegrationId';return this.apiClient.callApi("/api/v2/conversations/messaging/integrations/instagram/{integrationId}","PATCH",{integrationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchConversationsMessagingIntegrationsOpenExtensionsGooglebusinessprofileIntegrationId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "integrationId" when calling patchConversationsMessagingIntegrationsOpenExtensionsGooglebusinessprofileIntegrationId';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchConversationsMessagingIntegrationsOpenIntegrationId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "integrationId" when calling patchConversationsMessagingIntegrationsOpenIntegrationId';if(i==null)throw'Missing the required parameter "body" when calling patchConversationsMessagingIntegrationsOpenIntegrationId';return this.apiClient.callApi("/api/v2/conversations/messaging/integrations/open/{integrationId}","PATCH",{integrationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchConversationsMessagingIntegrationsTwitterIntegrationId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "integrationId" when calling patchConversationsMessagingIntegrationsTwitterIntegrationId';if(i==null)throw'Missing the required parameter "body" when calling patchConversationsMessagingIntegrationsTwitterIntegrationId';return this.apiClient.callApi("/api/v2/conversations/messaging/integrations/twitter/{integrationId}","PATCH",{integrationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchConversationsMessagingIntegrationsWhatsappEmbeddedsignupIntegrationId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "integrationId" when calling patchConversationsMessagingIntegrationsWhatsappEmbeddedsignupIntegrationId';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchConversationsMessagingIntegrationsWhatsappIntegrationId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "integrationId" when calling patchConversationsMessagingIntegrationsWhatsappIntegrationId';if(i==null)throw'Missing the required parameter "body" when calling patchConversationsMessagingIntegrationsWhatsappIntegrationId';return this.apiClient.callApi("/api/v2/conversations/messaging/integrations/whatsapp/{integrationId}","PATCH",{integrationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchConversationsMessagingSetting(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "messageSettingId" when calling patchConversationsMessagingSetting';if(i==null)throw'Missing the required parameter "body" when calling patchConversationsMessagingSetting';return this.apiClient.callApi("/api/v2/conversations/messaging/settings/{messageSettingId}","PATCH",{messageSettingId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchConversationsMessagingSupportedcontentSupportedContentId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "supportedContentId" when calling patchConversationsMessagingSupportedcontentSupportedContentId';if(i==null)throw'Missing the required parameter "body" when calling patchConversationsMessagingSupportedcontentSupportedContentId';return this.apiClient.callApi("/api/v2/conversations/messaging/supportedcontent/{supportedContentId}","PATCH",{supportedContentId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchConversationsSettings(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsConversationDetailsProperties(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postAnalyticsConversationDetailsProperties';if(i==null)throw'Missing the required parameter "body" when calling postAnalyticsConversationDetailsProperties';return this.apiClient.callApi("/api/v2/analytics/conversations/{conversationId}/details/properties","POST",{conversationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postAnalyticsConversationsActivityQuery(e,i){if(i=i||{},e==null)throw'Missing the required parameter "body" when calling postAnalyticsConversationsActivityQuery';return this.apiClient.callApi("/api/v2/analytics/conversations/activity/query","POST",{},{pageSize:i.pageSize,pageNumber:i.pageNumber},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postAnalyticsConversationsAggregatesJobs(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsConversationsAggregatesQuery(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsConversationsDetailsJobs(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsConversationsDetailsQuery(e,i){if(i=i||{},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"],i.customHeaders)}postConversationAssign(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationAssign';if(i==null)throw'Missing the required parameter "body" when calling postConversationAssign';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/assign","POST",{conversationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postConversationBarge(e,i){if(i=i||{},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"],i.customHeaders)}postConversationCobrowse(e,i){if(i=i||{},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"],i.customHeaders)}postConversationCommunicationAgentchecklist(e,i,n,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationCommunicationAgentchecklist';if(i==null||i==="")throw'Missing the required parameter "communicationId" when calling postConversationCommunicationAgentchecklist';if(n==null||n==="")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:i,agentChecklistId:n},{},{},{},a,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}postConversationCommunicationAgentchecklistAgentaction(e,i,n,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationCommunicationAgentchecklistAgentaction';if(i==null||i==="")throw'Missing the required parameter "communicationId" when calling postConversationCommunicationAgentchecklistAgentaction';if(n==null||n==="")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:i,agentChecklistId:n},{},{},{},a,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}postConversationCommunicationAgentchecklistJobs(e,i,n,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationCommunicationAgentchecklistJobs';if(i==null||i==="")throw'Missing the required parameter "communicationId" when calling postConversationCommunicationAgentchecklistJobs';if(n==null||n==="")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:i,agentChecklistId:n},{},{},{},a,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}postConversationCommunicationAgentchecklistsFinalize(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationCommunicationAgentchecklistsFinalize';if(i==null||i==="")throw'Missing the required parameter "communicationId" when calling postConversationCommunicationAgentchecklistsFinalize';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postConversationCommunicationInternalmessages(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationCommunicationInternalmessages';if(i==null||i==="")throw'Missing the required parameter "communicationId" when calling postConversationCommunicationInternalmessages';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postConversationDisconnect(e,i){if(i=i||{},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"],i.customHeaders)}postConversationParticipantCallbacks(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationParticipantCallbacks';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling postConversationParticipantCallbacks';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/participants/{participantId}/callbacks","POST",{conversationId:e,participantId:i},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postConversationParticipantDigits(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationParticipantDigits';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling postConversationParticipantDigits';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/participants/{participantId}/digits","POST",{conversationId:e,participantId:i},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postConversationParticipantInternalmessagesUsersCommunications(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationParticipantInternalmessagesUsersCommunications';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling postConversationParticipantInternalmessagesUsersCommunications';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postConversationParticipantReplace(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationParticipantReplace';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling postConversationParticipantReplace';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postConversationParticipantReplaceAgent(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationParticipantReplaceAgent';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling postConversationParticipantReplaceAgent';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postConversationParticipantReplaceContactExternal(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationParticipantReplaceContactExternal';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling postConversationParticipantReplaceContactExternal';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postConversationParticipantReplaceExternal(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationParticipantReplaceExternal';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling postConversationParticipantReplaceExternal';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postConversationParticipantReplaceQueue(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationParticipantReplaceQueue';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling postConversationParticipantReplaceQueue';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postConversationParticipantSecureivrsessions(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationParticipantSecureivrsessions';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling postConversationParticipantSecureivrsessions';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/participants/{participantId}/secureivrsessions","POST",{conversationId:e,participantId:i},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postConversationParticipantTransfer(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationParticipantTransfer';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling postConversationParticipantTransfer';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postConversationSuggestionEngagement(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationSuggestionEngagement';if(i==null||i==="")throw'Missing the required parameter "suggestionId" when calling postConversationSuggestionEngagement';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postConversationSuggestionsFeedback(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationSuggestionsFeedback';if(i==null)throw'Missing the required parameter "body" when calling postConversationSuggestionsFeedback';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/suggestions/feedback","POST",{conversationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postConversationSummaryFeedback(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationSummaryFeedback';if(i==null||i==="")throw'Missing the required parameter "summaryId" when calling postConversationSummaryFeedback';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/summaries/{summaryId}/feedback","POST",{conversationId:e,summaryId:i},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postConversationsCall(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsCall';if(i==null)throw'Missing the required parameter "body" when calling postConversationsCall';return this.apiClient.callApi("/api/v2/conversations/calls/{conversationId}","POST",{conversationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postConversationsCallParticipantBarge(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsCallParticipantBarge';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postConversationsCallParticipantCoach(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsCallParticipantCoach';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postConversationsCallParticipantCommunicationWrapup(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsCallParticipantCommunicationWrapup';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling postConversationsCallParticipantCommunicationWrapup';if(n==null||n==="")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:i,communicationId:n},{},{},{},a.body,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postConversationsCallParticipantConsult(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsCallParticipantConsult';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling postConversationsCallParticipantConsult';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postConversationsCallParticipantConsultAgent(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsCallParticipantConsultAgent';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling postConversationsCallParticipantConsultAgent';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postConversationsCallParticipantConsultContactExternal(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsCallParticipantConsultContactExternal';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling postConversationsCallParticipantConsultContactExternal';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postConversationsCallParticipantConsultExternal(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsCallParticipantConsultExternal';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling postConversationsCallParticipantConsultExternal';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postConversationsCallParticipantConsultQueue(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsCallParticipantConsultQueue';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling postConversationsCallParticipantConsultQueue';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postConversationsCallParticipantMonitor(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsCallParticipantMonitor';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postConversationsCallParticipantReplace(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsCallParticipantReplace';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling postConversationsCallParticipantReplace';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postConversationsCallParticipantSnippetRecord(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsCallParticipantSnippetRecord';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling postConversationsCallParticipantSnippetRecord';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postConversationsCallParticipantVoiceConsult(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsCallParticipantVoiceConsult';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling postConversationsCallParticipantVoiceConsult';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postConversationsCallParticipants(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsCallParticipants';if(i==null)throw'Missing the required parameter "body" when calling postConversationsCallParticipants';return this.apiClient.callApi("/api/v2/conversations/calls/{conversationId}/participants","POST",{conversationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postConversationsCallParticipantsUserUserId(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsCallParticipantsUserUserId';if(i==null||i==="")throw'Missing the required parameter "userId" when calling postConversationsCallParticipantsUserUserId';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postConversationsCallbackParticipantCommunicationWrapup(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsCallbackParticipantCommunicationWrapup';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling postConversationsCallbackParticipantCommunicationWrapup';if(n==null||n==="")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:i,communicationId:n},{},{},{},a.body,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postConversationsCallbackParticipantReplace(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsCallbackParticipantReplace';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling postConversationsCallbackParticipantReplace';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postConversationsCallbacks(e,i){if(i=i||{},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"],i.customHeaders)}postConversationsCallbacksBulkDisconnect(e,i){if(i=i||{},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"],i.customHeaders)}postConversationsCallbacksBulkUpdate(e,i){if(i=i||{},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"],i.customHeaders)}postConversationsCalls(e,i){if(i=i||{},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"],i.customHeaders)}postConversationsCallsUserUserId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling postConversationsCallsUserUserId';if(i==null)throw'Missing the required parameter "body" when calling postConversationsCallsUserUserId';return this.apiClient.callApi("/api/v2/conversations/calls/user/{userId}","POST",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postConversationsChatCommunicationMessages(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsChatCommunicationMessages';if(i==null||i==="")throw'Missing the required parameter "communicationId" when calling postConversationsChatCommunicationMessages';if(n==null)throw'Missing the required parameter "body" when calling postConversationsChatCommunicationMessages';return this.apiClient.callApi("/api/v2/conversations/chats/{conversationId}/communications/{communicationId}/messages","POST",{conversationId:e,communicationId:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postConversationsChatCommunicationTyping(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsChatCommunicationTyping';if(i==null||i==="")throw'Missing the required parameter "communicationId" when calling postConversationsChatCommunicationTyping';return this.apiClient.callApi("/api/v2/conversations/chats/{conversationId}/communications/{communicationId}/typing","POST",{conversationId:e,communicationId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postConversationsChatParticipantCommunicationWrapup(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsChatParticipantCommunicationWrapup';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling postConversationsChatParticipantCommunicationWrapup';if(n==null||n==="")throw'Missing the required parameter "communicationId" when calling postConversationsChatParticipantCommunicationWrapup';return this.apiClient.callApi("/api/v2/conversations/chats/{conversationId}/participants/{participantId}/communications/{communicationId}/wrapup","POST",{conversationId:e,participantId:i,communicationId:n},{},{},{},a.body,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postConversationsChatParticipantReplace(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsChatParticipantReplace';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling postConversationsChatParticipantReplace';if(n==null)throw'Missing the required parameter "body" when calling postConversationsChatParticipantReplace';return this.apiClient.callApi("/api/v2/conversations/chats/{conversationId}/participants/{participantId}/replace","POST",{conversationId:e,participantId:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postConversationsChats(e,i){if(i=i||{},e==null)throw'Missing the required parameter "body" when calling postConversationsChats';return this.apiClient.callApi("/api/v2/conversations/chats","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postConversationsCobrowsesessionParticipantCommunicationWrapup(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsCobrowsesessionParticipantCommunicationWrapup';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling postConversationsCobrowsesessionParticipantCommunicationWrapup';if(n==null||n==="")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:i,communicationId:n},{},{},{},a.body,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postConversationsCobrowsesessionParticipantReplace(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsCobrowsesessionParticipantReplace';if(i==null||i==="")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:i},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postConversationsCustomattributesSchemas(e,i){if(i=i||{},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"],i.customHeaders)}postConversationsCustomattributesSearch(e,i){if(i=i||{},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"],i.customHeaders)}postConversationsEmailInboundmessages(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsEmailInboundmessages';if(i==null)throw'Missing the required parameter "body" when calling postConversationsEmailInboundmessages';return this.apiClient.callApi("/api/v2/conversations/emails/{conversationId}/inboundmessages","POST",{conversationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postConversationsEmailMessages(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsEmailMessages';if(i==null)throw'Missing the required parameter "body" when calling postConversationsEmailMessages';return this.apiClient.callApi("/api/v2/conversations/emails/{conversationId}/messages","POST",{conversationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postConversationsEmailMessagesDraftAttachmentsCopy(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsEmailMessagesDraftAttachmentsCopy';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postConversationsEmailParticipantCommunicationWrapup(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsEmailParticipantCommunicationWrapup';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling postConversationsEmailParticipantCommunicationWrapup';if(n==null||n==="")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:i,communicationId:n},{},{},{},a.body,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postConversationsEmailParticipantReplace(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsEmailParticipantReplace';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling postConversationsEmailParticipantReplace';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postConversationsEmailReconnect(e,i){if(i=i||{},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"],i.customHeaders)}postConversationsEmails(e,i){if(i=i||{},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"],i.customHeaders)}postConversationsEmailsAgentless(e,i){if(i=i||{},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"],i.customHeaders)}postConversationsFaxes(e,i){if(i=i||{},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"],i.customHeaders)}postConversationsKeyconfigurations(e,i){if(i=i||{},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"],i.customHeaders)}postConversationsKeyconfigurationsValidate(e,i){if(i=i||{},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"],i.customHeaders)}postConversationsMessageCommunicationMessages(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsMessageCommunicationMessages';if(i==null||i==="")throw'Missing the required parameter "communicationId" when calling postConversationsMessageCommunicationMessages';if(n==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:i},{useNormalizedMessage:a.useNormalizedMessage},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postConversationsMessageCommunicationMessagesMedia(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsMessageCommunicationMessagesMedia';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postConversationsMessageCommunicationMessagesMediaUploads(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsMessageCommunicationMessagesMediaUploads';if(i==null||i==="")throw'Missing the required parameter "communicationId" when calling postConversationsMessageCommunicationMessagesMediaUploads';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postConversationsMessageCommunicationSocialmediaMessages(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsMessageCommunicationSocialmediaMessages';if(i==null||i==="")throw'Missing the required parameter "communicationId" when calling postConversationsMessageCommunicationSocialmediaMessages';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postConversationsMessageCommunicationTyping(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsMessageCommunicationTyping';if(i==null||i==="")throw'Missing the required parameter "communicationId" when calling postConversationsMessageCommunicationTyping';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postConversationsMessageInboundOpenEvent(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "integrationId" when calling postConversationsMessageInboundOpenEvent';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postConversationsMessageInboundOpenMessage(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "integrationId" when calling postConversationsMessageInboundOpenMessage';if(i==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:n.prefetchConversationId},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postConversationsMessageInboundOpenReceipt(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "integrationId" when calling postConversationsMessageInboundOpenReceipt';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postConversationsMessageInboundOpenStructuredResponse(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "integrationId" when calling postConversationsMessageInboundOpenStructuredResponse';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postConversationsMessageMessagesBulk(e,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsMessageMessagesBulk';return this.apiClient.callApi("/api/v2/conversations/messages/{conversationId}/messages/bulk","POST",{conversationId:e},{useNormalizedMessage:i.useNormalizedMessage},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postConversationsMessageParticipantCommunicationWrapup(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsMessageParticipantCommunicationWrapup';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling postConversationsMessageParticipantCommunicationWrapup';if(n==null||n==="")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:i,communicationId:n},{},{},{},a.body,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postConversationsMessageParticipantMonitor(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsMessageParticipantMonitor';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postConversationsMessageParticipantReplace(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsMessageParticipantReplace';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling postConversationsMessageParticipantReplace';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postConversationsMessages(e,i){if(i=i||{},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"],i.customHeaders)}postConversationsMessagesAgentless(e,i){if(i=i||{},e==null)throw'Missing the required parameter "body" when calling postConversationsMessagesAgentless';return this.apiClient.callApi("/api/v2/conversations/messages/agentless","POST",{},{useNormalizedMessage:i.useNormalizedMessage},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postConversationsMessagesInboundOpen(e,i){if(i=i||{},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"],i.customHeaders)}postConversationsMessagingIntegrationsApple(e,i){if(i=i||{},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"],i.customHeaders)}postConversationsMessagingIntegrationsFacebook(e,i){if(i=i||{},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"],i.customHeaders)}postConversationsMessagingIntegrationsInstagram(e,i){if(i=i||{},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"],i.customHeaders)}postConversationsMessagingIntegrationsOpen(e,i){if(i=i||{},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"],i.customHeaders)}postConversationsMessagingIntegrationsOpenExtensionsGooglebusinessprofile(e,i){if(i=i||{},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"],i.customHeaders)}postConversationsMessagingIntegrationsOpenExtensionsGooglebusinessprofileTokens(e,i){if(i=i||{},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"],i.customHeaders)}postConversationsMessagingIntegrationsTwitter(e,i){if(i=i||{},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"],i.customHeaders)}postConversationsMessagingIntegrationsWhatsapp(e,i){if(i=i||{},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"],i.customHeaders)}postConversationsMessagingIntegrationsWhatsappEmbeddedsignup(e,i){if(i=i||{},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"],i.customHeaders)}postConversationsMessagingSettings(e,i){if(i=i||{},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"],i.customHeaders)}postConversationsMessagingSupportedcontent(e,i){if(i=i||{},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"],i.customHeaders)}postConversationsParticipantsAttributesSearch(e,i){if(i=i||{},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"],i.customHeaders)}postConversationsScreenshareParticipantCommunicationWrapup(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsScreenshareParticipantCommunicationWrapup';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling postConversationsScreenshareParticipantCommunicationWrapup';if(n==null||n==="")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:i,communicationId:n},{},{},{},a.body,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postConversationsSocialParticipantCommunicationWrapup(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsSocialParticipantCommunicationWrapup';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling postConversationsSocialParticipantCommunicationWrapup';if(n==null||n==="")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:i,communicationId:n},{},{},{},a.body,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postConversationsVideoAgentconferenceCommunication(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsVideoAgentconferenceCommunication';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postConversationsVideoParticipantCommunicationWrapup(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsVideoParticipantCommunicationWrapup';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling postConversationsVideoParticipantCommunicationWrapup';if(n==null||n==="")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:i,communicationId:n},{},{},{},a.body,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postConversationsVideosMeetings(e,i){if(i=i||{},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"],i.customHeaders)}putConversationCustomattributes(e,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling putConversationCustomattributes';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/customattributes","PUT",{conversationId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}putConversationCustomattributesBulk(e,i){if(i=i||{},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},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}putConversationParticipantFlaggedreason(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling putConversationParticipantFlaggedreason';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling putConversationParticipantFlaggedreason';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/participants/{participantId}/flaggedreason","PUT",{conversationId:e,participantId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putConversationSecureattributes(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling putConversationSecureattributes';if(i==null)throw'Missing the required parameter "body" when calling putConversationSecureattributes';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/secureattributes","PUT",{conversationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putConversationTags(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling putConversationTags';if(i==null)throw'Missing the required parameter "body" when calling putConversationTags';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/tags","PUT",{conversationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putConversationsCallParticipantCommunicationUuidata(e,i,n,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling putConversationsCallParticipantCommunicationUuidata';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling putConversationsCallParticipantCommunicationUuidata';if(n==null||n==="")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:i,communicationId:n},{},{},{},a,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}putConversationsCallRecordingstate(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling putConversationsCallRecordingstate';if(i==null)throw'Missing the required parameter "body" when calling putConversationsCallRecordingstate';return this.apiClient.callApi("/api/v2/conversations/calls/{conversationId}/recordingstate","PUT",{conversationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putConversationsCallbackRecordingstate(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling putConversationsCallbackRecordingstate';if(i==null)throw'Missing the required parameter "body" when calling putConversationsCallbackRecordingstate';return this.apiClient.callApi("/api/v2/conversations/callbacks/{conversationId}/recordingstate","PUT",{conversationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putConversationsChatRecordingstate(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling putConversationsChatRecordingstate';if(i==null)throw'Missing the required parameter "body" when calling putConversationsChatRecordingstate';return this.apiClient.callApi("/api/v2/conversations/chats/{conversationId}/recordingstate","PUT",{conversationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putConversationsCobrowsesessionRecordingstate(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling putConversationsCobrowsesessionRecordingstate';if(i==null)throw'Missing the required parameter "body" when calling putConversationsCobrowsesessionRecordingstate';return this.apiClient.callApi("/api/v2/conversations/cobrowsesessions/{conversationId}/recordingstate","PUT",{conversationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putConversationsCustomattributesSchema(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "schemaId" when calling putConversationsCustomattributesSchema';if(i==null)throw'Missing the required parameter "body" when calling putConversationsCustomattributesSchema';return this.apiClient.callApi("/api/v2/conversations/customattributes/schemas/{schemaId}","PUT",{schemaId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putConversationsEmailMessagesDraft(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling putConversationsEmailMessagesDraft';if(i==null)throw'Missing the required parameter "body" when calling putConversationsEmailMessagesDraft';return this.apiClient.callApi("/api/v2/conversations/emails/{conversationId}/messages/draft","PUT",{conversationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putConversationsEmailRecordingstate(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling putConversationsEmailRecordingstate';if(i==null)throw'Missing the required parameter "body" when calling putConversationsEmailRecordingstate';return this.apiClient.callApi("/api/v2/conversations/emails/{conversationId}/recordingstate","PUT",{conversationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putConversationsKeyconfiguration(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "keyconfigurationsId" when calling putConversationsKeyconfiguration';if(i==null)throw'Missing the required parameter "body" when calling putConversationsKeyconfiguration';return this.apiClient.callApi("/api/v2/conversations/keyconfigurations/{keyconfigurationsId}","PUT",{keyconfigurationsId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putConversationsMessageRecordingstate(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling putConversationsMessageRecordingstate';if(i==null)throw'Missing the required parameter "body" when calling putConversationsMessageRecordingstate';return this.apiClient.callApi("/api/v2/conversations/messages/{conversationId}/recordingstate","PUT",{conversationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putConversationsMessagingIdentityresolutionIntegrationsAppleIntegrationId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "integrationId" when calling putConversationsMessagingIdentityresolutionIntegrationsAppleIntegrationId';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putConversationsMessagingIdentityresolutionIntegrationsFacebookIntegrationId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "integrationId" when calling putConversationsMessagingIdentityresolutionIntegrationsFacebookIntegrationId';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putConversationsMessagingIdentityresolutionIntegrationsInstagramIntegrationId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "integrationId" when calling putConversationsMessagingIdentityresolutionIntegrationsInstagramIntegrationId';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putConversationsMessagingIdentityresolutionIntegrationsOpenIntegrationId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "integrationId" when calling putConversationsMessagingIdentityresolutionIntegrationsOpenIntegrationId';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putConversationsMessagingIdentityresolutionIntegrationsTwitterIntegrationId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "integrationId" when calling putConversationsMessagingIdentityresolutionIntegrationsTwitterIntegrationId';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putConversationsMessagingIdentityresolutionIntegrationsWhatsappIntegrationId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "integrationId" when calling putConversationsMessagingIdentityresolutionIntegrationsWhatsappIntegrationId';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putConversationsMessagingSettingsDefault(e,i){if(i=i||{},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"],i.customHeaders)}putConversationsMessagingSupportedcontentDefault(e,i){if(i=i||{},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"],i.customHeaders)}putConversationsMessagingThreadingtimeline(e,i){if(i=i||{},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"],i.customHeaders)}putConversationsScreenshareRecordingstate(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling putConversationsScreenshareRecordingstate';if(i==null)throw'Missing the required parameter "body" when calling putConversationsScreenshareRecordingstate';return this.apiClient.callApi("/api/v2/conversations/screenshares/{conversationId}/recordingstate","PUT",{conversationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putConversationsSocialRecordingstate(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling putConversationsSocialRecordingstate';if(i==null)throw'Missing the required parameter "body" when calling putConversationsSocialRecordingstate';return this.apiClient.callApi("/api/v2/conversations/socials/{conversationId}/recordingstate","PUT",{conversationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putConversationsVideoRecordingstate(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling putConversationsVideoRecordingstate';if(i==null)throw'Missing the required parameter "body" when calling putConversationsVideoRecordingstate';return this.apiClient.callApi("/api/v2/conversations/videos/{conversationId}/recordingstate","PUT",{conversationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}},BA=class{constructor(e){this.apiClient=e||q.instance}getDataextensionsCoretype(e,i){if(i=i||{},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"],i.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)}},FA=class{constructor(e){this.apiClient=e||q.instance}deleteDataprivacyMaskingrule(e,i){if(i=i||{},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"],i.customHeaders)}getDataprivacyMaskingrule(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "ruleId" when calling patchDataprivacyMaskingrule';return this.apiClient.callApi("/api/v2/dataprivacy/maskingrules/{ruleId}","PATCH",{ruleId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postDataprivacyMaskingrules(e,i){if(i=i||{},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"],i.customHeaders)}postDataprivacyMaskingrulesValidate(e,i){if(i=i||{},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"],i.customHeaders)}},VA=class{constructor(e){this.apiClient=e||q.instance}getDownload(e,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "downloadId" when calling getDownload';return this.apiClient.callApi("/api/v2/downloads/{downloadId}","GET",{downloadId:e},{contentDisposition:i.contentDisposition,issueRedirect:i.issueRedirect,redirectToAuth:i.redirectToAuth},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}},JA=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)}},ZA=class{constructor(e){this.apiClient=e||q.instance}deleteEmployeeengagementCelebration(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "celebrationId" when calling patchEmployeeengagementCelebration';if(i==null)throw'Missing the required parameter "body" when calling patchEmployeeengagementCelebration';return this.apiClient.callApi("/api/v2/employeeengagement/celebrations/{celebrationId}","PATCH",{celebrationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postEmployeeengagementRecognitions(e,i){if(i=i||{},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"],i.customHeaders)}},KA=class{constructor(e){this.apiClient=e||q.instance}postEventsConversations(e,i){if(i=i||{},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"],i.customHeaders)}postEventsRoutingCustomkpiattributions(e,i){if(i=i||{},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"],i.customHeaders)}postEventsUsersPresence(e,i){if(i=i||{},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"],i.customHeaders)}postEventsUsersRoutingstatus(e,i){if(i=i||{},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"],i.customHeaders)}},QA=class{constructor(e){this.apiClient=e||q.instance}deleteExternalcontactsContact(e,i){if(i=i||{},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"],i.customHeaders)}deleteExternalcontactsContactNote(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "contactId" when calling deleteExternalcontactsContactNote';if(i==null||i==="")throw'Missing the required parameter "noteId" when calling deleteExternalcontactsContactNote';return this.apiClient.callApi("/api/v2/externalcontacts/contacts/{contactId}/notes/{noteId}","DELETE",{contactId:e,noteId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteExternalcontactsContactsSchema(e,i){if(i=i||{},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"],i.customHeaders)}deleteExternalcontactsExternalsource(e,i){if(i=i||{},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"],i.customHeaders)}deleteExternalcontactsImportCsvSetting(e,i){if(i=i||{},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"],i.customHeaders)}deleteExternalcontactsImportSetting(e,i){if(i=i||{},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"],i.customHeaders)}deleteExternalcontactsOrganization(e,i){if(i=i||{},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"],i.customHeaders)}deleteExternalcontactsOrganizationNote(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "externalOrganizationId" when calling deleteExternalcontactsOrganizationNote';if(i==null||i==="")throw'Missing the required parameter "noteId" when calling deleteExternalcontactsOrganizationNote';return this.apiClient.callApi("/api/v2/externalcontacts/organizations/{externalOrganizationId}/notes/{noteId}","DELETE",{externalOrganizationId:e,noteId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteExternalcontactsOrganizationTrustor(e,i){if(i=i||{},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"],i.customHeaders)}deleteExternalcontactsRelationship(e,i){if(i=i||{},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"],i.customHeaders)}getExternalcontactsContact(e,i){if(i=i||{},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(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getExternalcontactsContactIdentifiers(e,i){if(i=i||{},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"],i.customHeaders)}getExternalcontactsContactJourneySegments(e,i){if(i=i||{},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:i.includeMerged,limit:i.limit},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getExternalcontactsContactJourneySessions(e,i){if(i=i||{},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:i.pageSize,after:i.after,includeMerged:i.includeMerged},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getExternalcontactsContactNote(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "contactId" when calling getExternalcontactsContactNote';if(i==null||i==="")throw'Missing the required parameter "noteId" when calling getExternalcontactsContactNote';return this.apiClient.callApi("/api/v2/externalcontacts/contacts/{contactId}/notes/{noteId}","GET",{contactId:e,noteId:i},{expand:this.apiClient.buildCollectionParam(n.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getExternalcontactsContactNotes(e,i){if(i=i||{},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:i.pageSize,pageNumber:i.pageNumber,sortOrder:i.sortOrder,expand:this.apiClient.buildCollectionParam(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getExternalcontactsContactUnresolved(e,i){if(i=i||{},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(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getExternalcontactsContactsSchemaVersion(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "schemaId" when calling getExternalcontactsContactsSchemaVersion';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getExternalcontactsContactsSchemaVersions(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getExternalcontactsExternalsources(e){return e=e||{},this.apiClient.callApi("/api/v2/externalcontacts/externalsources","GET",{},{cursor:e.cursor,limit:e.limit,name:e.name,active:e.active},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getExternalcontactsImportCsvSetting(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getExternalcontactsImportCsvUploadPreview(e,i){if(i=i||{},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"],i.customHeaders)}getExternalcontactsImportJob(e,i){if(i=i||{},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(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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"],i.customHeaders)}getExternalcontactsImportSettings(e){return e=e||{},this.apiClient.callApi("/api/v2/externalcontacts/import/settings","GET",{},{after:e.after,pageSize:e.pageSize,sortOrder:e.sortOrder,name:e.name},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getExternalcontactsOrganization(e,i){if(i=i||{},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(i.expand,"multi"),includeTrustors:i.includeTrustors},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getExternalcontactsOrganizationContacts(e,i){if(i=i||{},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:i.pageSize,pageNumber:i.pageNumber,q:i.q,sortOrder:i.sortOrder,expand:this.apiClient.buildCollectionParam(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getExternalcontactsOrganizationIdentifiers(e,i){if(i=i||{},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"],i.customHeaders)}getExternalcontactsOrganizationNote(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "externalOrganizationId" when calling getExternalcontactsOrganizationNote';if(i==null||i==="")throw'Missing the required parameter "noteId" when calling getExternalcontactsOrganizationNote';return this.apiClient.callApi("/api/v2/externalcontacts/organizations/{externalOrganizationId}/notes/{noteId}","GET",{externalOrganizationId:e,noteId:i},{expand:this.apiClient.buildCollectionParam(n.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getExternalcontactsOrganizationNotes(e,i){if(i=i||{},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:i.pageSize,pageNumber:i.pageNumber,sortOrder:i.sortOrder,expand:this.apiClient.buildCollectionParam(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getExternalcontactsOrganizationRelationships(e,i){if(i=i||{},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:i.pageSize,pageNumber:i.pageNumber,expand:this.apiClient.buildCollectionParam(i.expand,"multi"),sortOrder:i.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getExternalcontactsOrganizations(e){return e=e||{},this.apiClient.callApi("/api/v2/externalcontacts/organizations","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,q:e.q,trustorId:this.apiClient.buildCollectionParam(e.trustorId,"multi"),sortOrder:e.sortOrder,expand:this.apiClient.buildCollectionParam(e.expand,"multi"),includeTrustors:e.includeTrustors,divisionIds:this.apiClient.buildCollectionParam(e.divisionIds,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getExternalcontactsOrganizationsSchema(e,i){if(i=i||{},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"],i.customHeaders)}getExternalcontactsOrganizationsSchemaVersion(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "schemaId" when calling getExternalcontactsOrganizationsSchemaVersion';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getExternalcontactsOrganizationsSchemaVersions(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getExternalcontactsReversewhitepageslookup(e,i){if(i=i||{},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(i.expand,"multi"),divisionId:i.divisionId},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "contactId" when calling patchExternalcontactsContact';if(i==null)throw'Missing the required parameter "body" when calling patchExternalcontactsContact';return this.apiClient.callApi("/api/v2/externalcontacts/contacts/{contactId}","PATCH",{contactId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchExternalcontactsContactIdentifiers(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "contactId" when calling patchExternalcontactsContactIdentifiers';if(i==null)throw'Missing the required parameter "body" when calling patchExternalcontactsContactIdentifiers';return this.apiClient.callApi("/api/v2/externalcontacts/contacts/{contactId}/identifiers","PATCH",{contactId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchExternalcontactsOrganizationIdentifiers(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "externalOrganizationId" when calling patchExternalcontactsOrganizationIdentifiers';if(i==null)throw'Missing the required parameter "body" when calling patchExternalcontactsOrganizationIdentifiers';return this.apiClient.callApi("/api/v2/externalcontacts/organizations/{externalOrganizationId}/identifiers","PATCH",{externalOrganizationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postExternalcontactsBulkContacts(e,i){if(i=i||{},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"],i.customHeaders)}postExternalcontactsBulkContactsAdd(e,i){if(i=i||{},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"],i.customHeaders)}postExternalcontactsBulkContactsDivisionviews(e,i){if(i=i||{},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"],i.customHeaders)}postExternalcontactsBulkContactsEnrich(e,i){if(i=i||{},e==null)throw'Missing the required parameter "body" when calling postExternalcontactsBulkContactsEnrich';return this.apiClient.callApi("/api/v2/externalcontacts/bulk/contacts/enrich","POST",{},{dryRun:i.dryRun},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postExternalcontactsBulkContactsRemove(e,i){if(i=i||{},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"],i.customHeaders)}postExternalcontactsBulkContactsUnresolved(e,i){if(i=i||{},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"],i.customHeaders)}postExternalcontactsBulkContactsUpdate(e,i){if(i=i||{},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"],i.customHeaders)}postExternalcontactsBulkNotes(e,i){if(i=i||{},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"],i.customHeaders)}postExternalcontactsBulkNotesAdd(e,i){if(i=i||{},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"],i.customHeaders)}postExternalcontactsBulkNotesRemove(e,i){if(i=i||{},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"],i.customHeaders)}postExternalcontactsBulkNotesUpdate(e,i){if(i=i||{},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"],i.customHeaders)}postExternalcontactsBulkOrganizations(e,i){if(i=i||{},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"],i.customHeaders)}postExternalcontactsBulkOrganizationsAdd(e,i){if(i=i||{},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"],i.customHeaders)}postExternalcontactsBulkOrganizationsDivisionviews(e,i){if(i=i||{},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"],i.customHeaders)}postExternalcontactsBulkOrganizationsEnrich(e,i){if(i=i||{},e==null)throw'Missing the required parameter "body" when calling postExternalcontactsBulkOrganizationsEnrich';return this.apiClient.callApi("/api/v2/externalcontacts/bulk/organizations/enrich","POST",{},{dryRun:i.dryRun},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postExternalcontactsBulkOrganizationsRemove(e,i){if(i=i||{},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"],i.customHeaders)}postExternalcontactsBulkOrganizationsUpdate(e,i){if(i=i||{},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"],i.customHeaders)}postExternalcontactsBulkRelationships(e,i){if(i=i||{},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"],i.customHeaders)}postExternalcontactsBulkRelationshipsAdd(e,i){if(i=i||{},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"],i.customHeaders)}postExternalcontactsBulkRelationshipsRemove(e,i){if(i=i||{},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"],i.customHeaders)}postExternalcontactsBulkRelationshipsUpdate(e,i){if(i=i||{},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"],i.customHeaders)}postExternalcontactsContactJourneySegments(e,i){if(i=i||{},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},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postExternalcontactsContactNotes(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "contactId" when calling postExternalcontactsContactNotes';if(i==null)throw'Missing the required parameter "body" when calling postExternalcontactsContactNotes';return this.apiClient.callApi("/api/v2/externalcontacts/contacts/{contactId}/notes","POST",{contactId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postExternalcontactsContactPromotion(e,i){if(i=i||{},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"],i.customHeaders)}postExternalcontactsContacts(e,i){if(i=i||{},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"],i.customHeaders)}postExternalcontactsContactsEnrich(e,i){if(i=i||{},e==null)throw'Missing the required parameter "body" when calling postExternalcontactsContactsEnrich';return this.apiClient.callApi("/api/v2/externalcontacts/contacts/enrich","POST",{},{dryRun:i.dryRun},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postExternalcontactsContactsExports(e,i){if(i=i||{},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"],i.customHeaders)}postExternalcontactsContactsMerge(e,i){if(i=i||{},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"],i.customHeaders)}postExternalcontactsContactsSchemas(e,i){if(i=i||{},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"],i.customHeaders)}postExternalcontactsExternalsources(e,i){if(i=i||{},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"],i.customHeaders)}postExternalcontactsIdentifierlookup(e,i){if(i=i||{},e==null)throw'Missing the required parameter "identifier" when calling postExternalcontactsIdentifierlookup';return this.apiClient.callApi("/api/v2/externalcontacts/identifierlookup","POST",{},{expand:this.apiClient.buildCollectionParam(i.expand,"multi")},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postExternalcontactsIdentifierlookupContacts(e,i){if(i=i||{},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(i.expand,"multi")},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postExternalcontactsIdentifierlookupOrganizations(e,i){if(i=i||{},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(i.expand,"multi")},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postExternalcontactsImportCsvJobs(e,i){if(i=i||{},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"],i.customHeaders)}postExternalcontactsImportCsvSettings(e,i){if(i=i||{},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"],i.customHeaders)}postExternalcontactsImportCsvUploads(e,i){if(i=i||{},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"],i.customHeaders)}postExternalcontactsImportJobs(e,i){if(i=i||{},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"],i.customHeaders)}postExternalcontactsImportSettings(e,i){if(i=i||{},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"],i.customHeaders)}postExternalcontactsMergeContacts(e,i){if(i=i||{},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"],i.customHeaders)}postExternalcontactsOrganizationNotes(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "externalOrganizationId" when calling postExternalcontactsOrganizationNotes';if(i==null)throw'Missing the required parameter "body" when calling postExternalcontactsOrganizationNotes';return this.apiClient.callApi("/api/v2/externalcontacts/organizations/{externalOrganizationId}/notes","POST",{externalOrganizationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postExternalcontactsOrganizations(e,i){if(i=i||{},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"],i.customHeaders)}postExternalcontactsOrganizationsEnrich(e,i){if(i=i||{},e==null)throw'Missing the required parameter "body" when calling postExternalcontactsOrganizationsEnrich';return this.apiClient.callApi("/api/v2/externalcontacts/organizations/enrich","POST",{},{dryRun:i.dryRun},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postExternalcontactsOrganizationsSchemas(e,i){if(i=i||{},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"],i.customHeaders)}postExternalcontactsRelationships(e,i){if(i=i||{},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"],i.customHeaders)}putExternalcontactsContact(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "contactId" when calling putExternalcontactsContact';if(i==null)throw'Missing the required parameter "body" when calling putExternalcontactsContact';return this.apiClient.callApi("/api/v2/externalcontacts/contacts/{contactId}","PUT",{contactId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putExternalcontactsContactNote(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "contactId" when calling putExternalcontactsContactNote';if(i==null||i==="")throw'Missing the required parameter "noteId" when calling putExternalcontactsContactNote';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}putExternalcontactsContactsSchema(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "schemaId" when calling putExternalcontactsContactsSchema';if(i==null)throw'Missing the required parameter "body" when calling putExternalcontactsContactsSchema';return this.apiClient.callApi("/api/v2/externalcontacts/contacts/schemas/{schemaId}","PUT",{schemaId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putExternalcontactsConversation(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling putExternalcontactsConversation';if(i==null)throw'Missing the required parameter "body" when calling putExternalcontactsConversation';return this.apiClient.callApi("/api/v2/externalcontacts/conversations/{conversationId}","PUT",{conversationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putExternalcontactsExternalsource(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "externalSourceId" when calling putExternalcontactsExternalsource';if(i==null)throw'Missing the required parameter "body" when calling putExternalcontactsExternalsource';return this.apiClient.callApi("/api/v2/externalcontacts/externalsources/{externalSourceId}","PUT",{externalSourceId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putExternalcontactsImportCsvSetting(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "settingsId" when calling putExternalcontactsImportCsvSetting';if(i==null)throw'Missing the required parameter "body" when calling putExternalcontactsImportCsvSetting';return this.apiClient.callApi("/api/v2/externalcontacts/import/csv/settings/{settingsId}","PUT",{settingsId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putExternalcontactsImportJob(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "jobId" when calling putExternalcontactsImportJob';if(i==null)throw'Missing the required parameter "body" when calling putExternalcontactsImportJob';return this.apiClient.callApi("/api/v2/externalcontacts/import/jobs/{jobId}","PUT",{jobId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putExternalcontactsImportSetting(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "settingsId" when calling putExternalcontactsImportSetting';if(i==null)throw'Missing the required parameter "body" when calling putExternalcontactsImportSetting';return this.apiClient.callApi("/api/v2/externalcontacts/import/settings/{settingsId}","PUT",{settingsId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putExternalcontactsOrganization(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "externalOrganizationId" when calling putExternalcontactsOrganization';if(i==null)throw'Missing the required parameter "body" when calling putExternalcontactsOrganization';return this.apiClient.callApi("/api/v2/externalcontacts/organizations/{externalOrganizationId}","PUT",{externalOrganizationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putExternalcontactsOrganizationNote(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "externalOrganizationId" when calling putExternalcontactsOrganizationNote';if(i==null||i==="")throw'Missing the required parameter "noteId" when calling putExternalcontactsOrganizationNote';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}putExternalcontactsOrganizationTrustorTrustorId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "externalOrganizationId" when calling putExternalcontactsOrganizationTrustorTrustorId';if(i==null||i==="")throw'Missing the required parameter "trustorId" when calling putExternalcontactsOrganizationTrustorTrustorId';return this.apiClient.callApi("/api/v2/externalcontacts/organizations/{externalOrganizationId}/trustor/{trustorId}","PUT",{externalOrganizationId:e,trustorId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putExternalcontactsOrganizationsSchema(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "schemaId" when calling putExternalcontactsOrganizationsSchema';if(i==null)throw'Missing the required parameter "body" when calling putExternalcontactsOrganizationsSchema';return this.apiClient.callApi("/api/v2/externalcontacts/organizations/schemas/{schemaId}","PUT",{schemaId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putExternalcontactsRelationship(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "relationshipId" when calling putExternalcontactsRelationship';if(i==null)throw'Missing the required parameter "body" when calling putExternalcontactsRelationship';return this.apiClient.callApi("/api/v2/externalcontacts/relationships/{relationshipId}","PUT",{relationshipId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}},YA=class{constructor(e){this.apiClient=e||q.instance}deleteFaxDocument(e,i){if(i=i||{},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"],i.customHeaders)}getFaxDocument(e,i){if(i=i||{},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"],i.customHeaders)}getFaxDocumentContent(e,i){if(i=i||{},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"],i.customHeaders)}getFaxDocuments(e){return e=e||{},this.apiClient.callApi("/api/v2/fax/documents","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getFaxSettings(e){return e=e||{},this.apiClient.callApi("/api/v2/fax/settings","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getFaxSummary(e){return e=e||{},this.apiClient.callApi("/api/v2/fax/summary","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}putFaxDocument(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "documentId" when calling putFaxDocument';if(i==null)throw'Missing the required parameter "body" when calling putFaxDocument';return this.apiClient.callApi("/api/v2/fax/documents/{documentId}","PUT",{documentId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putFaxSettings(e){return e=e||{},this.apiClient.callApi("/api/v2/fax/settings","PUT",{},{},{},{},e.body,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}},XA=class{constructor(e){this.apiClient=e||q.instance}deleteAnalyticsFlowsAggregatesJob(e,i){if(i=i||{},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"],i.customHeaders)}getAnalyticsFlowsAggregatesJob(e,i){if(i=i||{},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"],i.customHeaders)}getAnalyticsFlowsAggregatesJobResults(e,i){if(i=i||{},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:i.cursor},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postAnalyticsFlowsActivityQuery(e,i){if(i=i||{},e==null)throw'Missing the required parameter "body" when calling postAnalyticsFlowsActivityQuery';return this.apiClient.callApi("/api/v2/analytics/flows/activity/query","POST",{},{pageSize:i.pageSize,pageNumber:i.pageNumber},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postAnalyticsFlowsAggregatesJobs(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsFlowsAggregatesQuery(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsFlowsObservationsQuery(e,i){if(i=i||{},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"],i.customHeaders)}},eb=class{constructor(e){this.apiClient=e||q.instance}deleteEmployeeperformanceExternalmetricsDefinition(e,i){if(i=i||{},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"],i.customHeaders)}deleteGamificationContest(e,i){if(i=i||{},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"],i.customHeaders)}getEmployeeperformanceExternalmetricsDefinition(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getGamificationContestAgentsScores(e,i){if(i=i||{},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:i.pageNumber,pageSize:i.pageSize,workday:i.workday,returnsView:i.returnsView},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getGamificationContestAgentsScoresMe(e,i){if(i=i||{},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:i.pageNumber,pageSize:i.pageSize,workday:i.workday,returnsView:i.returnsView},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getGamificationContestAgentsScoresTrends(e,i){if(i=i||{},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"],i.customHeaders)}getGamificationContestAgentsScoresTrendsMe(e,i){if(i=i||{},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"],i.customHeaders)}getGamificationContestPrizeimage(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "contestId" when calling getGamificationContestPrizeimage';if(i==null||i==="")throw'Missing the required parameter "prizeImageId" when calling getGamificationContestPrizeimage';return this.apiClient.callApi("/api/v2/gamification/contests/{contestId}/prizeimages/{prizeImageId}","GET",{contestId:e,prizeImageId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.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,i,n,a,r,s){if(s=s||{},e==null)throw'Missing the required parameter "filterType" when calling getGamificationInsights';if(i==null)throw'Missing the required parameter "filterId" when calling getGamificationInsights';if(n==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:i,granularity:n,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,i,n,a,r,s){if(s=s||{},e==null)throw'Missing the required parameter "filterType" when calling getGamificationInsightsDetails';if(i==null)throw'Missing the required parameter "filterId" when calling getGamificationInsightsDetails';if(n==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:i,granularity:n,comparativePeriodStartWorkday:a,primaryPeriodStartWorkday:r},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],s.customHeaders)}getGamificationInsightsGroupsTrends(e,i,n,a,r,s,o,l){if(l=l||{},e==null)throw'Missing the required parameter "filterType" when calling getGamificationInsightsGroupsTrends';if(i==null)throw'Missing the required parameter "filterId" when calling getGamificationInsightsGroupsTrends';if(n==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:i,granularity:n,comparativePeriodStartWorkday:a,comparativePeriodEndWorkday:r,primaryPeriodStartWorkday:s,primaryPeriodEndWorkday:o},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],l.customHeaders)}getGamificationInsightsGroupsTrendsAll(e,i,n,a,r,s,o,l){if(l=l||{},e==null)throw'Missing the required parameter "filterType" when calling getGamificationInsightsGroupsTrendsAll';if(i==null)throw'Missing the required parameter "filterId" when calling getGamificationInsightsGroupsTrendsAll';if(n==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:i,granularity:n,comparativePeriodStartWorkday:a,comparativePeriodEndWorkday:r,primaryPeriodStartWorkday:s,primaryPeriodEndWorkday:o},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],l.customHeaders)}getGamificationInsightsManagers(e,i,n,a,r){if(r=r||{},e==null)throw'Missing the required parameter "filterType" when calling getGamificationInsightsManagers';if(i==null)throw'Missing the required parameter "filterId" when calling getGamificationInsightsManagers';if(n==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:i,granularity:n,startWorkday:a,pageSize:r.pageSize,pageNumber:r.pageNumber},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}getGamificationInsightsMembers(e,i,n,a,r){if(r=r||{},e==null)throw'Missing the required parameter "filterType" when calling getGamificationInsightsMembers';if(i==null)throw'Missing the required parameter "filterId" when calling getGamificationInsightsMembers';if(n==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:i,granularity:n,startWorkday:a,reportsTo:r.reportsTo},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}getGamificationInsightsRankings(e,i,n,a,r,s,o){if(o=o||{},e==null)throw'Missing the required parameter "filterType" when calling getGamificationInsightsRankings';if(i==null)throw'Missing the required parameter "filterId" when calling getGamificationInsightsRankings';if(n==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:i,granularity:n,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,i,n,a,r,s,o,l){if(l=l||{},e==null)throw'Missing the required parameter "filterType" when calling getGamificationInsightsTrends';if(i==null)throw'Missing the required parameter "filterId" when calling getGamificationInsightsTrends';if(n==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:i,granularity:n,comparativePeriodStartWorkday:a,comparativePeriodEndWorkday:r,primaryPeriodStartWorkday:s,primaryPeriodEndWorkday:o},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],l.customHeaders)}getGamificationInsightsUserDetails(e,i,n,a,r,s,o){if(o=o||{},e==null||e==="")throw'Missing the required parameter "userId" when calling getGamificationInsightsUserDetails';if(i==null)throw'Missing the required parameter "filterType" when calling getGamificationInsightsUserDetails';if(n==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:i,filterId:n,granularity:a,comparativePeriodStartWorkday:r,primaryPeriodStartWorkday:s},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],o.customHeaders)}getGamificationInsightsUserTrends(e,i,n,a,r,s,o,l,u){if(u=u||{},e==null||e==="")throw'Missing the required parameter "userId" when calling getGamificationInsightsUserTrends';if(i==null)throw'Missing the required parameter "filterType" when calling getGamificationInsightsUserTrends';if(n==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:i,filterId:n,granularity:a,comparativePeriodStartWorkday:r,comparativePeriodEndWorkday:s,primaryPeriodStartWorkday:o,primaryPeriodEndWorkday:l},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],u.customHeaders)}getGamificationLeaderboard(e,i,n){if(n=n||{},e==null)throw'Missing the required parameter "startWorkday" when calling getGamificationLeaderboard';if(i==null)throw'Missing the required parameter "endWorkday" when calling getGamificationLeaderboard';return this.apiClient.callApi("/api/v2/gamification/leaderboard","GET",{},{startWorkday:e,endWorkday:i,metricId:n.metricId},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getGamificationLeaderboardAll(e,i,n,a,r){if(r=r||{},e==null)throw'Missing the required parameter "filterType" when calling getGamificationLeaderboardAll';if(i==null)throw'Missing the required parameter "filterId" when calling getGamificationLeaderboardAll';if(n==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:i,startWorkday:n,endWorkday:a,metricId:r.metricId},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}getGamificationLeaderboardAllBestpoints(e,i,n){if(n=n||{},e==null)throw'Missing the required parameter "filterType" when calling getGamificationLeaderboardAllBestpoints';if(i==null)throw'Missing the required parameter "filterId" when calling getGamificationLeaderboardAllBestpoints';return this.apiClient.callApi("/api/v2/gamification/leaderboard/all/bestpoints","GET",{},{filterType:e,filterId:i},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getGamificationProfileMembers(e,i){if(i=i||{},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"],i.customHeaders)}getGamificationProfileMetric(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "profileId" when calling getGamificationProfileMetric';if(i==null||i==="")throw'Missing the required parameter "metricId" when calling getGamificationProfileMetric';return this.apiClient.callApi("/api/v2/gamification/profiles/{profileId}/metrics/{metricId}","GET",{profileId:e,metricId:i},{workday:n.workday},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getGamificationProfileMetrics(e,i){if(i=i||{},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(i.expand,"multi"),workday:i.workday,metricIds:i.metricIds},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getGamificationProfileMetricsObjectivedetails(e,i){if(i=i||{},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:i.workday},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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:i.workday},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getGamificationScorecardsAttendance(e,i,n){if(n=n||{},e==null)throw'Missing the required parameter "startWorkday" when calling getGamificationScorecardsAttendance';if(i==null)throw'Missing the required parameter "endWorkday" when calling getGamificationScorecardsAttendance';return this.apiClient.callApi("/api/v2/gamification/scorecards/attendance","GET",{},{startWorkday:e,endWorkday:i},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.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,i){if(i=i||{},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"],i.customHeaders)}getGamificationScorecardsPointsAverage(e,i){if(i=i||{},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"],i.customHeaders)}getGamificationScorecardsPointsTrends(e,i,n){if(n=n||{},e==null)throw'Missing the required parameter "startWorkday" when calling getGamificationScorecardsPointsTrends';if(i==null)throw'Missing the required parameter "endWorkday" when calling getGamificationScorecardsPointsTrends';return this.apiClient.callApi("/api/v2/gamification/scorecards/points/trends","GET",{},{startWorkday:e,endWorkday:i,dayOfWeek:n.dayOfWeek},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getGamificationScorecardsProfileMetricUserValuesTrends(e,i,n,a,r,s){if(s=s||{},e==null||e==="")throw'Missing the required parameter "profileId" when calling getGamificationScorecardsProfileMetricUserValuesTrends';if(i==null||i==="")throw'Missing the required parameter "metricId" when calling getGamificationScorecardsProfileMetricUserValuesTrends';if(n==null||n==="")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:i,userId:n},{startWorkday:a,endWorkday:r,referenceWorkday:s.referenceWorkday,timeZone:s.timeZone},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],s.customHeaders)}getGamificationScorecardsProfileMetricUsersValuesTrends(e,i,n,a,r,s){if(s=s||{},e==null||e==="")throw'Missing the required parameter "profileId" when calling getGamificationScorecardsProfileMetricUsersValuesTrends';if(i==null||i==="")throw'Missing the required parameter "metricId" when calling getGamificationScorecardsProfileMetricUsersValuesTrends';if(n==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:i},{filterType:n,filterId:s.filterId,startWorkday:a,endWorkday:r,referenceWorkday:s.referenceWorkday,timeZone:s.timeZone},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],s.customHeaders)}getGamificationScorecardsProfileMetricValuesTrends(e,i,n,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "profileId" when calling getGamificationScorecardsProfileMetricValuesTrends';if(i==null||i==="")throw'Missing the required parameter "metricId" when calling getGamificationScorecardsProfileMetricValuesTrends';if(n==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:i},{filterType:r.filterType,startWorkday:n,endWorkday:a,referenceWorkday:r.referenceWorkday,timeZone:r.timeZone},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}getGamificationScorecardsUser(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling getGamificationScorecardsUser';if(i==null)throw'Missing the required parameter "workday" when calling getGamificationScorecardsUser';return this.apiClient.callApi("/api/v2/gamification/scorecards/users/{userId}","GET",{userId:e},{workday:i,expand:this.apiClient.buildCollectionParam(n.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getGamificationScorecardsUserAttendance(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "userId" when calling getGamificationScorecardsUserAttendance';if(i==null)throw'Missing the required parameter "startWorkday" when calling getGamificationScorecardsUserAttendance';if(n==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:i,endWorkday:n},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getGamificationScorecardsUserBestpoints(e,i){if(i=i||{},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"],i.customHeaders)}getGamificationScorecardsUserPointsAlltime(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling getGamificationScorecardsUserPointsAlltime';if(i==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:i},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getGamificationScorecardsUserPointsTrends(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "userId" when calling getGamificationScorecardsUserPointsTrends';if(i==null)throw'Missing the required parameter "startWorkday" when calling getGamificationScorecardsUserPointsTrends';if(n==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:i,endWorkday:n,dayOfWeek:a.dayOfWeek},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getGamificationScorecardsUserValuesTrends(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "userId" when calling getGamificationScorecardsUserValuesTrends';if(i==null)throw'Missing the required parameter "startWorkday" when calling getGamificationScorecardsUserValuesTrends';if(n==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:i,endWorkday:n,timeZone:a.timeZone},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getGamificationScorecardsUsersPointsAverage(e,i,n,a){if(a=a||{},e==null)throw'Missing the required parameter "filterType" when calling getGamificationScorecardsUsersPointsAverage';if(i==null)throw'Missing the required parameter "filterId" when calling getGamificationScorecardsUsersPointsAverage';if(n==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:i,workday:n},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getGamificationScorecardsUsersValuesAverage(e,i,n,a){if(a=a||{},e==null)throw'Missing the required parameter "filterType" when calling getGamificationScorecardsUsersValuesAverage';if(i==null)throw'Missing the required parameter "filterId" when calling getGamificationScorecardsUsersValuesAverage';if(n==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:i,workday:n,timeZone:a.timeZone},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getGamificationScorecardsUsersValuesTrends(e,i,n,a,r){if(r=r||{},e==null)throw'Missing the required parameter "filterType" when calling getGamificationScorecardsUsersValuesTrends';if(i==null)throw'Missing the required parameter "filterId" when calling getGamificationScorecardsUsersValuesTrends';if(n==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:i,startWorkday:n,endWorkday:a,timeZone:r.timeZone},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}getGamificationScorecardsValuesAverage(e,i){if(i=i||{},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:i.timeZone},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getGamificationScorecardsValuesTrends(e,i,n){if(n=n||{},e==null)throw'Missing the required parameter "startWorkday" when calling getGamificationScorecardsValuesTrends';if(i==null)throw'Missing the required parameter "endWorkday" when calling getGamificationScorecardsValuesTrends';return this.apiClient.callApi("/api/v2/gamification/scorecards/values/trends","GET",{},{filterType:n.filterType,referenceWorkday:n.referenceWorkday,startWorkday:e,endWorkday:i,timeZone:n.timeZone},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.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,i){if(i=i||{},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"],i.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,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "metricId" when calling patchEmployeeperformanceExternalmetricsDefinition';if(i==null)throw'Missing the required parameter "body" when calling patchEmployeeperformanceExternalmetricsDefinition';return this.apiClient.callApi("/api/v2/employeeperformance/externalmetrics/definitions/{metricId}","PATCH",{metricId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchGamificationContest(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "contestId" when calling patchGamificationContest';if(i==null)throw'Missing the required parameter "body" when calling patchGamificationContest';return this.apiClient.callApi("/api/v2/gamification/contests/{contestId}","PATCH",{contestId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.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,i){if(i=i||{},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"],i.customHeaders)}postGamificationContestsUploadsPrizeimages(e,i){if(i=i||{},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"],i.customHeaders)}postGamificationProfileActivate(e,i){if(i=i||{},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"],i.customHeaders)}postGamificationProfileDeactivate(e,i){if(i=i||{},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"],i.customHeaders)}postGamificationProfileMembers(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "profileId" when calling postGamificationProfileMembers';if(i==null)throw'Missing the required parameter "body" when calling postGamificationProfileMembers';return this.apiClient.callApi("/api/v2/gamification/profiles/{profileId}/members","POST",{profileId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postGamificationProfileMembersValidate(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "profileId" when calling postGamificationProfileMembersValidate';if(i==null)throw'Missing the required parameter "body" when calling postGamificationProfileMembersValidate';return this.apiClient.callApi("/api/v2/gamification/profiles/{profileId}/members/validate","POST",{profileId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postGamificationProfileMetricLink(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "sourceProfileId" when calling postGamificationProfileMetricLink';if(i==null||i==="")throw'Missing the required parameter "sourceMetricId" when calling postGamificationProfileMetricLink';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postGamificationProfileMetrics(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "profileId" when calling postGamificationProfileMetrics';if(i==null)throw'Missing the required parameter "body" when calling postGamificationProfileMetrics';return this.apiClient.callApi("/api/v2/gamification/profiles/{profileId}/metrics","POST",{profileId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postGamificationProfiles(e,i){if(i=i||{},e==null)throw'Missing the required parameter "body" when calling postGamificationProfiles';return this.apiClient.callApi("/api/v2/gamification/profiles","POST",{},{copyMetrics:i.copyMetrics},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postGamificationProfilesUserQuery(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling postGamificationProfilesUserQuery';if(i==null)throw'Missing the required parameter "body" when calling postGamificationProfilesUserQuery';return this.apiClient.callApi("/api/v2/gamification/profiles/users/{userId}/query","POST",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postGamificationProfilesUsersMeQuery(e,i){if(i=i||{},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"],i.customHeaders)}putGamificationContest(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "contestId" when calling putGamificationContest';if(i==null)throw'Missing the required parameter "body" when calling putGamificationContest';return this.apiClient.callApi("/api/v2/gamification/contests/{contestId}","PUT",{contestId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putGamificationProfile(e,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "profileId" when calling putGamificationProfile';return this.apiClient.callApi("/api/v2/gamification/profiles/{profileId}","PUT",{profileId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}putGamificationProfileMetric(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "profileId" when calling putGamificationProfileMetric';if(i==null||i==="")throw'Missing the required parameter "metricId" when calling putGamificationProfileMetric';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}putGamificationStatus(e,i){if(i=i||{},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"],i.customHeaders)}},ib=class{constructor(e){this.apiClient=e||q.instance}getGdprRequest(e,i){if(i=i||{},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"],i.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,i,n){if(n=n||{},e==null)throw'Missing the required parameter "searchType" when calling getGdprSubjects';if(i==null)throw'Missing the required parameter "searchValue" when calling getGdprSubjects';return this.apiClient.callApi("/api/v2/gdpr/subjects","GET",{},{searchType:e,searchValue:i},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postGdprRequests(e,i){if(i=i||{},e==null)throw'Missing the required parameter "body" when calling postGdprRequests';return this.apiClient.callApi("/api/v2/gdpr/requests","POST",{},{deleteConfirmed:i.deleteConfirmed},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}},nb=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,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling getUserGeolocation';if(i==null||i==="")throw'Missing the required parameter "clientId" when calling getUserGeolocation';return this.apiClient.callApi("/api/v2/users/{userId}/geolocations/{clientId}","GET",{userId:e,clientId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchGeolocationsSettings(e,i){if(i=i||{},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"],i.customHeaders)}patchUserGeolocation(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "userId" when calling patchUserGeolocation';if(i==null||i==="")throw'Missing the required parameter "clientId" when calling patchUserGeolocation';if(n==null)throw'Missing the required parameter "body" when calling patchUserGeolocation';return this.apiClient.callApi("/api/v2/users/{userId}/geolocations/{clientId}","PATCH",{userId:e,clientId:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}},tb=class{constructor(e){this.apiClient=e||q.instance}deleteGreeting(e,i){if(i=i||{},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"],i.customHeaders)}getGreeting(e,i){if(i=i||{},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"],i.customHeaders)}getGreetingDownloads(e,i){if(i=i||{},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:i.formatId},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getGreetingGroupsDownloads(e,i){if(i=i||{},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:i.formatId},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getGreetingMedia(e,i){if(i=i||{},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:i.formatId},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getGreetingUsersDownloads(e,i){if(i=i||{},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:i.formatId},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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:i.pageSize,pageNumber:i.pageNumber},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getGroupGreetingsDefaults(e,i){if(i=i||{},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"],i.customHeaders)}getUserGreetings(e,i){if(i=i||{},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:i.pageSize,pageNumber:i.pageNumber},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getUserGreetingsDefaults(e,i){if(i=i||{},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"],i.customHeaders)}postGreetings(e,i){if(i=i||{},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"],i.customHeaders)}postGroupGreetings(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "groupId" when calling postGroupGreetings';if(i==null)throw'Missing the required parameter "body" when calling postGroupGreetings';return this.apiClient.callApi("/api/v2/groups/{groupId}/greetings","POST",{groupId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postUserGreetings(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling postUserGreetings';if(i==null)throw'Missing the required parameter "body" when calling postUserGreetings';return this.apiClient.callApi("/api/v2/users/{userId}/greetings","POST",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putGreeting(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "greetingId" when calling putGreeting';if(i==null)throw'Missing the required parameter "body" when calling putGreeting';return this.apiClient.callApi("/api/v2/greetings/{greetingId}","PUT",{greetingId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putGreetingsDefaults(e,i){if(i=i||{},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"],i.customHeaders)}putGroupGreetingsDefaults(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "groupId" when calling putGroupGreetingsDefaults';if(i==null)throw'Missing the required parameter "body" when calling putGroupGreetingsDefaults';return this.apiClient.callApi("/api/v2/groups/{groupId}/greetings/defaults","PUT",{groupId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putUserGreetingsDefaults(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling putUserGreetingsDefaults';if(i==null)throw'Missing the required parameter "body" when calling putUserGreetingsDefaults';return this.apiClient.callApi("/api/v2/users/{userId}/greetings/defaults","PUT",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}},ab=class{constructor(e){this.apiClient=e||q.instance}deleteGroup(e,i){if(i=i||{},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"],i.customHeaders)}deleteGroupDynamicsettings(e,i){if(i=i||{},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"],i.customHeaders)}deleteGroupMembers(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "groupId" when calling deleteGroupMembers';if(i==null)throw'Missing the required parameter "ids" when calling deleteGroupMembers';return this.apiClient.callApi("/api/v2/groups/{groupId}/members","DELETE",{groupId:e},{ids:i},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getFieldconfig(e,i){if(i=i||{},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"],i.customHeaders)}getGroup(e,i){if(i=i||{},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"],i.customHeaders)}getGroupDynamicsettings(e,i){if(i=i||{},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"],i.customHeaders)}getGroupIndividuals(e,i){if(i=i||{},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"],i.customHeaders)}getGroupMembers(e,i){if(i=i||{},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:i.pageSize,pageNumber:i.pageNumber,sortOrder:i.sortOrder,expand:this.apiClient.buildCollectionParam(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getGroupProfile(e,i){if(i=i||{},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:i.fields},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "groupId" when calling postGroupMembers';if(i==null)throw'Missing the required parameter "body" when calling postGroupMembers';return this.apiClient.callApi("/api/v2/groups/{groupId}/members","POST",{groupId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postGroups(e,i){if(i=i||{},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"],i.customHeaders)}postGroupsDynamicsettingsPreview(e,i){if(i=i||{},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"],i.customHeaders)}postGroupsSearch(e,i){if(i=i||{},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"],i.customHeaders)}putGroup(e,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "groupId" when calling putGroup';return this.apiClient.callApi("/api/v2/groups/{groupId}","PUT",{groupId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}putGroupDynamicsettings(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "groupId" when calling putGroupDynamicsettings';if(i==null)throw'Missing the required parameter "body" when calling putGroupDynamicsettings';return this.apiClient.callApi("/api/v2/groups/{groupId}/dynamicsettings","PUT",{groupId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}},rb=class{constructor(e){this.apiClient=e||q.instance}deleteIdentityprovider(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}putIdentityprovider(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "providerId" when calling putIdentityprovider';if(i==null)throw'Missing the required parameter "body" when calling putIdentityprovider';return this.apiClient.callApi("/api/v2/identityproviders/{providerId}","PUT",{providerId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putIdentityprovidersAdfs(e,i){if(i=i||{},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"],i.customHeaders)}putIdentityprovidersCic(e,i){if(i=i||{},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"],i.customHeaders)}putIdentityprovidersGeneric(e,i){if(i=i||{},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"],i.customHeaders)}putIdentityprovidersGsuite(e,i){if(i=i||{},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"],i.customHeaders)}putIdentityprovidersIdentitynow(e,i){if(i=i||{},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"],i.customHeaders)}putIdentityprovidersOkta(e,i){if(i=i||{},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"],i.customHeaders)}putIdentityprovidersOnelogin(e,i){if(i=i||{},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"],i.customHeaders)}putIdentityprovidersPing(e,i){if(i=i||{},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"],i.customHeaders)}putIdentityprovidersPurecloud(e,i){if(i=i||{},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"],i.customHeaders)}putIdentityprovidersPureengage(e,i){if(i=i||{},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"],i.customHeaders)}putIdentityprovidersSalesforce(e,i){if(i=i||{},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"],i.customHeaders)}},sb=class{constructor(e){this.apiClient=e||q.instance}getInfrastructureascodeAccelerator(e,i){if(i=i||{},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:i.preferredLanguage},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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:i.details},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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"],i.customHeaders)}},ob=class{constructor(e){this.apiClient=e||q.instance}deleteIntegration(e,i){if(i=i||{},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"],i.customHeaders)}deleteIntegrationsAction(e,i){if(i=i||{},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"],i.customHeaders)}deleteIntegrationsActionDraft(e,i){if(i=i||{},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"],i.customHeaders)}deleteIntegrationsCredential(e,i){if(i=i||{},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"],i.customHeaders)}getIntegration(e,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "integrationId" when calling getIntegration';return this.apiClient.callApi("/api/v2/integrations/{integrationId}","GET",{integrationId:e},{pageSize:i.pageSize,pageNumber:i.pageNumber,sortBy:i.sortBy,expand:this.apiClient.buildCollectionParam(i.expand,"multi"),nextPage:i.nextPage,previousPage:i.previousPage},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getIntegrationConfigCurrent(e,i){if(i=i||{},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"],i.customHeaders)}getIntegrations(e){return e=e||{},this.apiClient.callApi("/api/v2/integrations","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,sortBy:e.sortBy,expand:this.apiClient.buildCollectionParam(e.expand,"multi"),nextPage:e.nextPage,previousPage:e.previousPage,ids:this.apiClient.buildCollectionParam(e.ids,"multi"),integrationType:e.integrationType,reportedState:e.reportedState},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getIntegrationsAction(e,i){if(i=i||{},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:i.expand,flatten:i.flatten,includeConfig:i.includeConfig},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getIntegrationsActionDraft(e,i){if(i=i||{},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:i.expand,flatten:i.flatten,includeConfig:i.includeConfig},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getIntegrationsActionDraftFunction(e,i){if(i=i||{},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"],i.customHeaders)}getIntegrationsActionDraftSchema(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "actionId" when calling getIntegrationsActionDraftSchema';if(i==null||i==="")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:i},{flatten:n.flatten},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getIntegrationsActionDraftTemplate(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "actionId" when calling getIntegrationsActionDraftTemplate';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["text/plain"],n.customHeaders)}getIntegrationsActionDraftValidation(e,i){if(i=i||{},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"],i.customHeaders)}getIntegrationsActionFunction(e,i){if(i=i||{},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"],i.customHeaders)}getIntegrationsActionSchema(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "actionId" when calling getIntegrationsActionSchema';if(i==null||i==="")throw'Missing the required parameter "fileName" when calling getIntegrationsActionSchema';return this.apiClient.callApi("/api/v2/integrations/actions/{actionId}/schemas/{fileName}","GET",{actionId:e,fileName:i},{flatten:n.flatten},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getIntegrationsActionTemplate(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "actionId" when calling getIntegrationsActionTemplate';if(i==null||i==="")throw'Missing the required parameter "fileName" when calling getIntegrationsActionTemplate';return this.apiClient.callApi("/api/v2/integrations/actions/{actionId}/templates/{fileName}","GET",{actionId:e,fileName:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["text/plain"],n.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,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "integrationId" when calling getIntegrationsBotconnectorBot';if(i==null||i==="")throw'Missing the required parameter "botId" when calling getIntegrationsBotconnectorBot';return this.apiClient.callApi("/api/v2/integrations/botconnectors/{integrationId}/bots/{botId}","GET",{integrationId:e,botId:i},{version:n.version},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getIntegrationsBotconnectorBots(e,i){if(i=i||{},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:i.pageNumber,pageSize:i.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getIntegrationsBotconnectorBotsSummaries(e,i){if(i=i||{},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:i.pageNumber,pageSize:i.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getIntegrationsBotconnectorIntegrationIdBot(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "integrationId" when calling getIntegrationsBotconnectorIntegrationIdBot';if(i==null||i==="")throw'Missing the required parameter "botId" when calling getIntegrationsBotconnectorIntegrationIdBot';return this.apiClient.callApi("/api/v2/integrations/botconnector/{integrationId}/bots/{botId}","GET",{integrationId:e,botId:i},{version:n.version},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getIntegrationsBotconnectorIntegrationIdBotVersions(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "integrationId" when calling getIntegrationsBotconnectorIntegrationIdBotVersions';if(i==null||i==="")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:i},{pageNumber:n.pageNumber,pageSize:n.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getIntegrationsBotconnectorIntegrationIdBots(e,i){if(i=i||{},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"],i.customHeaders)}getIntegrationsBotconnectorIntegrationIdBotsSummaries(e,i){if(i=i||{},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:i.pageNumber,pageSize:i.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getIntegrationsClientapps(e){return e=e||{},this.apiClient.callApi("/api/v2/integrations/clientapps","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,sortBy:e.sortBy,expand:this.apiClient.buildCollectionParam(e.expand,"multi"),nextPage:e.nextPage,previousPage:e.previousPage},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getIntegrationsClientappsUnifiedcommunications(e){return e=e||{},this.apiClient.callApi("/api/v2/integrations/clientapps/unifiedcommunications","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,sortBy:e.sortBy,expand:this.apiClient.buildCollectionParam(e.expand,"multi"),nextPage:e.nextPage,previousPage:e.previousPage},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getIntegrationsCredential(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getIntegrationsSpeechDialogflowAgent(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getIntegrationsSpeechLexBotBotIdAliases(e,i){if(i=i||{},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:i.pageNumber,pageSize:i.pageSize,status:i.status,name:i.name},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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"],i.customHeaders)}getIntegrationsSpeechLexv2BotBotIdAliases(e,i){if(i=i||{},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:i.pageNumber,pageSize:i.pageSize,status:i.status,name:i.name},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "nuanceIntegrationId" when calling getIntegrationsSpeechNuanceNuanceIntegrationIdBot';if(i==null||i==="")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:i},{expand:this.apiClient.buildCollectionParam(n.expand,"multi"),targetChannel:n.targetChannel},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getIntegrationsSpeechNuanceNuanceIntegrationIdBotJob(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "nuanceIntegrationId" when calling getIntegrationsSpeechNuanceNuanceIntegrationIdBotJob';if(i==null||i==="")throw'Missing the required parameter "botId" when calling getIntegrationsSpeechNuanceNuanceIntegrationIdBotJob';if(n==null||n==="")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:i,jobId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getIntegrationsSpeechNuanceNuanceIntegrationIdBotJobResults(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "nuanceIntegrationId" when calling getIntegrationsSpeechNuanceNuanceIntegrationIdBotJobResults';if(i==null||i==="")throw'Missing the required parameter "botId" when calling getIntegrationsSpeechNuanceNuanceIntegrationIdBotJobResults';if(n==null||n==="")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:i,jobId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getIntegrationsSpeechNuanceNuanceIntegrationIdBots(e,i){if(i=i||{},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:i.pageNumber,pageSize:i.pageSize,onlyRegisteredBots:i.onlyRegisteredBots},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getIntegrationsSpeechNuanceNuanceIntegrationIdBotsJob(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "nuanceIntegrationId" when calling getIntegrationsSpeechNuanceNuanceIntegrationIdBotsJob';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getIntegrationsSpeechNuanceNuanceIntegrationIdBotsJobResults(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "nuanceIntegrationId" when calling getIntegrationsSpeechNuanceNuanceIntegrationIdBotsJobResults';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getIntegrationsSpeechSttEngine(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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:i.includeVoices},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getIntegrationsSpeechTtsEngineVoice(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "engineId" when calling getIntegrationsSpeechTtsEngineVoice';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getIntegrationsSpeechTtsEngineVoices(e,i){if(i=i||{},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:i.pageNumber,pageSize:i.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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"],i.customHeaders)}getIntegrationsTypeConfigschema(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "typeId" when calling getIntegrationsTypeConfigschema';if(i==null||i==="")throw'Missing the required parameter "configType" when calling getIntegrationsTypeConfigschema';return this.apiClient.callApi("/api/v2/integrations/types/{typeId}/configschemas/{configType}","GET",{typeId:e,configType:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "integrationId" when calling patchIntegration';return this.apiClient.callApi("/api/v2/integrations/{integrationId}","PATCH",{integrationId:e},{pageSize:i.pageSize,pageNumber:i.pageNumber,sortBy:i.sortBy,expand:this.apiClient.buildCollectionParam(i.expand,"multi"),nextPage:i.nextPage,previousPage:i.previousPage},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}patchIntegrationsAction(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "actionId" when calling patchIntegrationsAction';if(i==null)throw'Missing the required parameter "body" when calling patchIntegrationsAction';return this.apiClient.callApi("/api/v2/integrations/actions/{actionId}","PATCH",{actionId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchIntegrationsActionDraft(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "actionId" when calling patchIntegrationsActionDraft';if(i==null)throw'Missing the required parameter "body" when calling patchIntegrationsActionDraft';return this.apiClient.callApi("/api/v2/integrations/actions/{actionId}/draft","PATCH",{actionId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.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,i){if(i=i||{},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"],i.customHeaders)}postIntegrationsActionDraftFunctionUpload(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "actionId" when calling postIntegrationsActionDraftFunctionUpload';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postIntegrationsActionDraftPublish(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "actionId" when calling postIntegrationsActionDraftPublish';if(i==null)throw'Missing the required parameter "body" when calling postIntegrationsActionDraftPublish';return this.apiClient.callApi("/api/v2/integrations/actions/{actionId}/draft/publish","POST",{actionId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postIntegrationsActionDraftTest(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "actionId" when calling postIntegrationsActionDraftTest';if(i==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:n.flatten},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postIntegrationsActionExecute(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "actionId" when calling postIntegrationsActionExecute';if(i==null)throw'Missing the required parameter "body" when calling postIntegrationsActionExecute';return this.apiClient.callApi("/api/v2/integrations/actions/{actionId}/execute","POST",{actionId:e},{flatten:n.flatten},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postIntegrationsActionTest(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "actionId" when calling postIntegrationsActionTest';if(i==null)throw'Missing the required parameter "body" when calling postIntegrationsActionTest';return this.apiClient.callApi("/api/v2/integrations/actions/{actionId}/test","POST",{actionId:e},{flatten:n.flatten},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postIntegrationsActions(e,i){if(i=i||{},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"],i.customHeaders)}postIntegrationsActionsDrafts(e,i){if(i=i||{},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"],i.customHeaders)}postIntegrationsBotconnectorsIncomingMessages(e,i){if(i=i||{},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"],i.customHeaders)}postIntegrationsBotconnectorsOutgoingMessages(e,i){if(i=i||{},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"],i.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,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "nuanceIntegrationId" when calling postIntegrationsSpeechNuanceNuanceIntegrationIdBotJobs';if(i==null||i==="")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:i},{expand:this.apiClient.buildCollectionParam(n.expand,"multi")},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postIntegrationsSpeechNuanceNuanceIntegrationIdBotsJobs(e,i){if(i=i||{},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:i.pageNumber,pageSize:i.pageSize,onlyRegisteredBots:i.onlyRegisteredBots},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postIntegrationsSpeechNuanceNuanceIntegrationIdBotsLaunchValidate(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "nuanceIntegrationId" when calling postIntegrationsSpeechNuanceNuanceIntegrationIdBotsLaunchValidate';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postIntegrationsWebhookEvents(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "tokenId" when calling postIntegrationsWebhookEvents';if(i==null)throw'Missing the required parameter "body" when calling postIntegrationsWebhookEvents';return this.apiClient.callApi("/api/v2/integrations/webhooks/{tokenId}/events","POST",{tokenId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putIntegrationConfigCurrent(e,i){if(i=i||{},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},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}putIntegrationsActionDraftFunction(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "actionId" when calling putIntegrationsActionDraftFunction';if(i==null)throw'Missing the required parameter "body" when calling putIntegrationsActionDraftFunction';return this.apiClient.callApi("/api/v2/integrations/actions/{actionId}/draft/function","PUT",{actionId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putIntegrationsBotconnectorIntegrationIdBots(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "integrationId" when calling putIntegrationsBotconnectorIntegrationIdBots';if(i==null)throw'Missing the required parameter "botList" when calling putIntegrationsBotconnectorIntegrationIdBots';return this.apiClient.callApi("/api/v2/integrations/botconnector/{integrationId}/bots","PUT",{integrationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putIntegrationsCredential(e,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "credentialId" when calling putIntegrationsCredential';return this.apiClient.callApi("/api/v2/integrations/credentials/{credentialId}","PUT",{credentialId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}putIntegrationsSpeechNuanceNuanceIntegrationIdBotsLaunchSettings(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "nuanceIntegrationId" when calling putIntegrationsSpeechNuanceNuanceIntegrationIdBotsLaunchSettings';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putIntegrationsSpeechTtsSettings(e,i){if(i=i||{},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"],i.customHeaders)}putIntegrationsUnifiedcommunicationThirdpartypresences(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "ucIntegrationId" when calling putIntegrationsUnifiedcommunicationThirdpartypresences';if(i==null)throw'Missing the required parameter "body" when calling putIntegrationsUnifiedcommunicationThirdpartypresences';return this.apiClient.callApi("/api/v2/integrations/unifiedcommunications/{ucIntegrationId}/thirdpartypresences","PUT",{ucIntegrationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}},lb=class{constructor(e){this.apiClient=e||q.instance}deleteIntentsCategory(e,i){if(i=i||{},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"],i.customHeaders)}deleteIntentsCustomerintent(e,i){if(i=i||{},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"],i.customHeaders)}getIntentsAssignmentsExternalcontact(e,i){if(i=i||{},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:i.pageSize,pageNumber:i.pageNumber},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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"],i.customHeaders)}getIntentsCustomerintent(e,i){if(i=i||{},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"],i.customHeaders)}getIntentsCustomerintentSourceintents(e,i){if(i=i||{},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:i.pageSize,pageNumber:i.pageNumber,queryValue:i.queryValue},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "categoryId" when calling patchIntentsCategory';if(i==null)throw'Missing the required parameter "body" when calling patchIntentsCategory';return this.apiClient.callApi("/api/v2/intents/categories/{categoryId}","PATCH",{categoryId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchIntentsCustomerintent(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "customerIntentId" when calling patchIntentsCustomerintent';if(i==null)throw'Missing the required parameter "body" when calling patchIntentsCustomerintent';return this.apiClient.callApi("/api/v2/intents/customerintents/{customerIntentId}","PATCH",{customerIntentId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postIntentsAssignmentsExternalcontactCustomerintentAssignment(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "externalContactId" when calling postIntentsAssignmentsExternalcontactCustomerintentAssignment';if(i==null||i==="")throw'Missing the required parameter "customerIntentId" when calling postIntentsAssignmentsExternalcontactCustomerintentAssignment';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postIntentsCategories(e,i){if(i=i||{},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"],i.customHeaders)}postIntentsCustomerintentSourceintentsBulkAdd(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "customerIntentId" when calling postIntentsCustomerintentSourceintentsBulkAdd';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postIntentsCustomerintentSourceintentsBulkRemove(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "customerIntentId" when calling postIntentsCustomerintentSourceintentsBulkRemove';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postIntentsCustomerintents(e,i){if(i=i||{},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"],i.customHeaders)}},ub=class{constructor(e){this.apiClient=e||q.instance}deleteAnalyticsJourneysAggregatesJob(e,i){if(i=i||{},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"],i.customHeaders)}deleteJourneyActionmap(e,i){if(i=i||{},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"],i.customHeaders)}deleteJourneyActiontemplate(e,i){if(i=i||{},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:i.hardDelete},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}deleteJourneyExternaleventsConfiguration(e,i){if(i=i||{},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"],i.customHeaders)}deleteJourneyExternaleventsSchema(e,i){if(i=i||{},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"],i.customHeaders)}deleteJourneyOutcome(e,i){if(i=i||{},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"],i.customHeaders)}deleteJourneyOutcomesPredictor(e,i){if(i=i||{},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"],i.customHeaders)}deleteJourneySegment(e,i){if(i=i||{},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"],i.customHeaders)}deleteJourneyView(e,i){if(i=i||{},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"],i.customHeaders)}deleteJourneyViewSchedules(e,i){if(i=i||{},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"],i.customHeaders)}getAnalyticsJourneysAggregatesJob(e,i){if(i=i||{},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"],i.customHeaders)}getAnalyticsJourneysAggregatesJobResults(e,i){if(i=i||{},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:i.cursor},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getExternalcontactsContactJourneySegments(e,i){if(i=i||{},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:i.includeMerged,limit:i.limit},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getExternalcontactsContactJourneySessions(e,i){if(i=i||{},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:i.pageSize,after:i.after,includeMerged:i.includeMerged},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getJourneyActionmap(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getJourneyActionmapsEstimatesJobResults(e,i){if(i=i||{},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"],i.customHeaders)}getJourneyActiontarget(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "deploymentId" when calling getJourneyDeploymentCustomerPing';if(i==null||i==="")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:i},{dl:n.dl,dt:n.dt,appNamespace:n.appNamespace,sessionId:n.sessionId,sinceLastBeaconMilliseconds:n.sinceLastBeaconMilliseconds},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getJourneyExternaleventsConfiguration(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getJourneyExternaleventsSchemaVersion(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "schemaId" when calling getJourneyExternaleventsSchemaVersion';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getJourneyExternaleventsSchemaVersions(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getJourneyOutcomesAttributionsJobResults(e,i){if(i=i||{},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"],i.customHeaders)}getJourneyOutcomesPredictor(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getJourneySessionEvents(e,i){if(i=i||{},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:i.pageSize,after:i.after,eventType:i.eventType},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getJourneySessionOutcomescores(e,i){if(i=i||{},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"],i.customHeaders)}getJourneyView(e,i){if(i=i||{},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"],i.customHeaders)}getJourneyViewSchedules(e,i){if(i=i||{},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"],i.customHeaders)}getJourneyViewVersion(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "viewId" when calling getJourneyViewVersion';if(i==null||i==="")throw'Missing the required parameter "versionId" when calling getJourneyViewVersion';return this.apiClient.callApi("/api/v2/journey/views/{viewId}/versions/{versionId}","GET",{viewId:e,versionId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getJourneyViewVersionChart(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "viewId" when calling getJourneyViewVersionChart';if(i==null||i==="")throw'Missing the required parameter "journeyViewVersion" when calling getJourneyViewVersionChart';if(n==null||n==="")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:i,chartId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getJourneyViewVersionChartVersion(e,i,n,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "viewId" when calling getJourneyViewVersionChartVersion';if(i==null||i==="")throw'Missing the required parameter "journeyViewVersion" when calling getJourneyViewVersionChartVersion';if(n==null||n==="")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:i,chartId:n,chartVersion:a},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}getJourneyViewVersionJob(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "viewId" when calling getJourneyViewVersionJob';if(i==null||i==="")throw'Missing the required parameter "journeyVersionId" when calling getJourneyViewVersionJob';if(n==null||n==="")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:i,jobId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getJourneyViewVersionJobResults(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "viewId" when calling getJourneyViewVersionJobResults';if(i==null||i==="")throw'Missing the required parameter "journeyViewVersion" when calling getJourneyViewVersionJobResults';if(n==null||n==="")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:i,jobId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getJourneyViewVersionJobResultsChart(e,i,n,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "viewId" when calling getJourneyViewVersionJobResultsChart';if(i==null||i==="")throw'Missing the required parameter "journeyVersionId" when calling getJourneyViewVersionJobResultsChart';if(n==null||n==="")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:i,jobId:n,chartId:a},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}getJourneyViewVersionJobsLatest(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "viewId" when calling getJourneyViewVersionJobsLatest';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.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,i){if(i=i||{},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"],i.customHeaders)}getJourneyViewsEventdefinitions(e){return e=e||{},this.apiClient.callApi("/api/v2/journey/views/eventdefinitions","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getJourneyViewsJobs(e){return e=e||{},this.apiClient.callApi("/api/v2/journey/views/jobs","GET",{},{pageNumber:e.pageNumber,pageSize:e.pageSize,interval:e.interval,statuses:e.statuses},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getJourneyViewsJobsMe(e){return e=e||{},this.apiClient.callApi("/api/v2/journey/views/jobs/me","GET",{},{pageNumber:e.pageNumber,pageSize:e.pageSize,interval:e.interval,statuses:e.statuses},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getJourneyViewsSchedules(e){return e=e||{},this.apiClient.callApi("/api/v2/journey/views/schedules","GET",{},{pageNumber:e.pageNumber,pageSize:e.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}patchJourneyActionmap(e,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "actionMapId" when calling patchJourneyActionmap';return this.apiClient.callApi("/api/v2/journey/actionmaps/{actionMapId}","PATCH",{actionMapId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}patchJourneyActiontarget(e,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "actionTargetId" when calling patchJourneyActiontarget';return this.apiClient.callApi("/api/v2/journey/actiontargets/{actionTargetId}","PATCH",{actionTargetId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}patchJourneyActiontemplate(e,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "actionTemplateId" when calling patchJourneyActiontemplate';return this.apiClient.callApi("/api/v2/journey/actiontemplates/{actionTemplateId}","PATCH",{actionTemplateId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}patchJourneyExternaleventsConfiguration(e,i){if(i=i||{},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},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}patchJourneyOutcome(e,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "outcomeId" when calling patchJourneyOutcome';return this.apiClient.callApi("/api/v2/journey/outcomes/{outcomeId}","PATCH",{outcomeId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}patchJourneySegment(e,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "segmentId" when calling patchJourneySegment';return this.apiClient.callApi("/api/v2/journey/segments/{segmentId}","PATCH",{segmentId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}patchJourneyViewVersionJob(e,i,n,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "viewId" when calling patchJourneyViewVersionJob';if(i==null||i==="")throw'Missing the required parameter "journeyVersionId" when calling patchJourneyViewVersionJob';if(n==null||n==="")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:i,jobId:n},{},{},{},a,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}postAnalyticsJourneysAggregatesJobs(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsJourneysAggregatesQuery(e,i){if(i=i||{},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"],i.customHeaders)}postExternalcontactsContactJourneySegments(e,i){if(i=i||{},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},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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"],i.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,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "deploymentId" when calling postJourneyDeploymentActionevent';if(i==null)throw'Missing the required parameter "body" when calling postJourneyDeploymentActionevent';return this.apiClient.callApi("/api/v2/journey/deployments/{deploymentId}/actionevent","POST",{deploymentId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postJourneyDeploymentAppevents(e,i){if(i=i||{},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},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postJourneyDeploymentWebevents(e,i){if(i=i||{},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},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postJourneyExternaleventsConfigurationEvents(e,i){if(i=i||{},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},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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"],i.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,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "viewId" when calling postJourneyViewSchedules';if(i==null)throw'Missing the required parameter "body" when calling postJourneyViewSchedules';return this.apiClient.callApi("/api/v2/journey/views/{viewId}/schedules","POST",{viewId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postJourneyViewVersionJobs(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "viewId" when calling postJourneyViewVersionJobs';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postJourneyViewVersions(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "viewId" when calling postJourneyViewVersions';if(i==null)throw'Missing the required parameter "body" when calling postJourneyViewVersions';return this.apiClient.callApi("/api/v2/journey/views/{viewId}/versions","POST",{viewId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postJourneyViews(e,i){if(i=i||{},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"],i.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,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "schemaId" when calling putJourneyExternaleventsSchema';if(i==null)throw'Missing the required parameter "body" when calling putJourneyExternaleventsSchema';return this.apiClient.callApi("/api/v2/journey/externalevents/schemas/{schemaId}","PUT",{schemaId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putJourneyViewSchedules(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "viewId" when calling putJourneyViewSchedules';if(i==null)throw'Missing the required parameter "body" when calling putJourneyViewSchedules';return this.apiClient.callApi("/api/v2/journey/views/{viewId}/schedules","PUT",{viewId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putJourneyViewVersion(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "viewId" when calling putJourneyViewVersion';if(i==null||i==="")throw'Missing the required parameter "versionId" when calling putJourneyViewVersion';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}},cb=class{constructor(e){this.apiClient=e||q.instance}deleteKnowledgeConnection(e,i){if(i=i||{},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"],i.customHeaders)}deleteKnowledgeKnowledgebase(e,i){if(i=i||{},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"],i.customHeaders)}deleteKnowledgeKnowledgebaseCategory(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling deleteKnowledgeKnowledgebaseCategory';if(i==null||i==="")throw'Missing the required parameter "categoryId" when calling deleteKnowledgeKnowledgebaseCategory';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/categories/{categoryId}","DELETE",{knowledgeBaseId:e,categoryId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteKnowledgeKnowledgebaseDocument(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling deleteKnowledgeKnowledgebaseDocument';if(i==null||i==="")throw'Missing the required parameter "documentId" when calling deleteKnowledgeKnowledgebaseDocument';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/documents/{documentId}","DELETE",{knowledgeBaseId:e,documentId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteKnowledgeKnowledgebaseDocumentVariation(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "documentVariationId" when calling deleteKnowledgeKnowledgebaseDocumentVariation';if(i==null||i==="")throw'Missing the required parameter "documentId" when calling deleteKnowledgeKnowledgebaseDocumentVariation';if(n==null||n==="")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:i,knowledgeBaseId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}deleteKnowledgeKnowledgebaseExportJob(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling deleteKnowledgeKnowledgebaseExportJob';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteKnowledgeKnowledgebaseImportJob(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling deleteKnowledgeKnowledgebaseImportJob';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteKnowledgeKnowledgebaseLabel(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling deleteKnowledgeKnowledgebaseLabel';if(i==null||i==="")throw'Missing the required parameter "labelId" when calling deleteKnowledgeKnowledgebaseLabel';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/labels/{labelId}","DELETE",{knowledgeBaseId:e,labelId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteKnowledgeKnowledgebaseSourcesSalesforceSourceId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling deleteKnowledgeKnowledgebaseSourcesSalesforceSourceId';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteKnowledgeKnowledgebaseSourcesServicenowSourceId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling deleteKnowledgeKnowledgebaseSourcesServicenowSourceId';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteKnowledgeKnowledgebaseSynchronizeJob(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling deleteKnowledgeKnowledgebaseSynchronizeJob';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteKnowledgeSetting(e,i){if(i=i||{},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"],i.customHeaders)}deleteKnowledgeSource(e,i){if(i=i||{},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"],i.customHeaders)}getKnowledgeConnection(e,i){if(i=i||{},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(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getKnowledgeConnectionOptions(e,i){if(i=i||{},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:i.after,pageSize:i.pageSize,parentId:i.parentId},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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:i.before,after:i.after,pageSize:i.pageSize,parentId:i.parentId,isRoot:i.isRoot,name:i.name,sortBy:i.sortBy,expand:i.expand,includeDocumentCount:i.includeDocumentCount},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getKnowledgeGuestSessionDocument(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "sessionId" when calling getKnowledgeGuestSessionDocument';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getKnowledgeGuestSessionDocuments(e,i){if(i=i||{},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(i.categoryId,"multi"),pageSize:i.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getKnowledgeIntegrationOptions(e,i){if(i=i||{},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(i.knowledgeBaseIds,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getKnowledgeKnowledgebase(e,i){if(i=i||{},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"],i.customHeaders)}getKnowledgeKnowledgebaseCategories(e,i){if(i=i||{},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:i.before,after:i.after,pageSize:i.pageSize,parentId:i.parentId,isRoot:i.isRoot,name:i.name,sortBy:i.sortBy,expand:i.expand,includeDocumentCount:i.includeDocumentCount},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getKnowledgeKnowledgebaseCategory(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling getKnowledgeKnowledgebaseCategory';if(i==null||i==="")throw'Missing the required parameter "categoryId" when calling getKnowledgeKnowledgebaseCategory';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/categories/{categoryId}","GET",{knowledgeBaseId:e,categoryId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getKnowledgeKnowledgebaseDocument(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling getKnowledgeKnowledgebaseDocument';if(i==null||i==="")throw'Missing the required parameter "documentId" when calling getKnowledgeKnowledgebaseDocument';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/documents/{documentId}","GET",{knowledgeBaseId:e,documentId:i},{expand:this.apiClient.buildCollectionParam(n.expand,"multi"),state:n.state},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getKnowledgeKnowledgebaseDocumentFeedback(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling getKnowledgeKnowledgebaseDocumentFeedback';if(i==null||i==="")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:i},{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)}getKnowledgeKnowledgebaseDocumentFeedbackFeedbackId(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling getKnowledgeKnowledgebaseDocumentFeedbackFeedbackId';if(i==null||i==="")throw'Missing the required parameter "documentId" when calling getKnowledgeKnowledgebaseDocumentFeedbackFeedbackId';if(n==null||n==="")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:i,feedbackId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getKnowledgeKnowledgebaseDocumentVariation(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "documentVariationId" when calling getKnowledgeKnowledgebaseDocumentVariation';if(i==null||i==="")throw'Missing the required parameter "documentId" when calling getKnowledgeKnowledgebaseDocumentVariation';if(n==null||n==="")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:i,knowledgeBaseId:n},{documentState:a.documentState,expand:this.apiClient.buildCollectionParam(a.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getKnowledgeKnowledgebaseDocumentVariations(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling getKnowledgeKnowledgebaseDocumentVariations';if(i==null||i==="")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:i},{before:n.before,after:n.after,pageSize:n.pageSize,documentState:n.documentState,expand:this.apiClient.buildCollectionParam(n.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getKnowledgeKnowledgebaseDocumentVersion(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling getKnowledgeKnowledgebaseDocumentVersion';if(i==null||i==="")throw'Missing the required parameter "documentId" when calling getKnowledgeKnowledgebaseDocumentVersion';if(n==null||n==="")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:i,versionId:n},{expand:this.apiClient.buildCollectionParam(a.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getKnowledgeKnowledgebaseDocumentVersionVariation(e,i,n,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling getKnowledgeKnowledgebaseDocumentVersionVariation';if(i==null||i==="")throw'Missing the required parameter "documentId" when calling getKnowledgeKnowledgebaseDocumentVersionVariation';if(n==null||n==="")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:i,versionId:n,variationId:a},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}getKnowledgeKnowledgebaseDocumentVersionVariations(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling getKnowledgeKnowledgebaseDocumentVersionVariations';if(i==null||i==="")throw'Missing the required parameter "documentId" when calling getKnowledgeKnowledgebaseDocumentVersionVariations';if(n==null||n==="")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:i,versionId:n},{before:a.before,after:a.after,pageSize:a.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getKnowledgeKnowledgebaseDocumentVersions(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling getKnowledgeKnowledgebaseDocumentVersions';if(i==null||i==="")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:i},{before:n.before,after:n.after,pageSize:n.pageSize,expand:this.apiClient.buildCollectionParam(n.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getKnowledgeKnowledgebaseDocuments(e,i){if(i=i||{},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:i.before,after:i.after,pageSize:i.pageSize,interval:i.interval,documentId:this.apiClient.buildCollectionParam(i.documentId,"multi"),categoryId:this.apiClient.buildCollectionParam(i.categoryId,"multi"),includeSubcategories:i.includeSubcategories,includeDrafts:i.includeDrafts,labelIds:this.apiClient.buildCollectionParam(i.labelIds,"multi"),expand:this.apiClient.buildCollectionParam(i.expand,"multi"),externalIds:this.apiClient.buildCollectionParam(i.externalIds,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getKnowledgeKnowledgebaseExportJob(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling getKnowledgeKnowledgebaseExportJob';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getKnowledgeKnowledgebaseImportJob(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling getKnowledgeKnowledgebaseImportJob';if(i==null||i==="")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:i},{expand:this.apiClient.buildCollectionParam(n.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getKnowledgeKnowledgebaseLabel(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling getKnowledgeKnowledgebaseLabel';if(i==null||i==="")throw'Missing the required parameter "labelId" when calling getKnowledgeKnowledgebaseLabel';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/labels/{labelId}","GET",{knowledgeBaseId:e,labelId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getKnowledgeKnowledgebaseLabels(e,i){if(i=i||{},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:i.before,after:i.after,pageSize:i.pageSize,name:i.name,includeDocumentCount:i.includeDocumentCount},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getKnowledgeKnowledgebaseOperations(e,i){if(i=i||{},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:i.before,after:i.after,pageSize:i.pageSize,userId:this.apiClient.buildCollectionParam(i.userId,"multi"),type:this.apiClient.buildCollectionParam(i.type,"multi"),status:this.apiClient.buildCollectionParam(i.status,"multi"),interval:i.interval,sourceId:this.apiClient.buildCollectionParam(i.sourceId,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getKnowledgeKnowledgebaseOperationsUsersQuery(e,i){if(i=i||{},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"],i.customHeaders)}getKnowledgeKnowledgebaseParseJob(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling getKnowledgeKnowledgebaseParseJob';if(i==null||i==="")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:i},{expand:this.apiClient.buildCollectionParam(n.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getKnowledgeKnowledgebaseSources(e,i){if(i=i||{},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:i.type,expand:this.apiClient.buildCollectionParam(i.expand,"multi"),ids:this.apiClient.buildCollectionParam(i.ids,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getKnowledgeKnowledgebaseSourcesSalesforceSourceId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling getKnowledgeKnowledgebaseSourcesSalesforceSourceId';if(i==null||i==="")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:i},{expand:this.apiClient.buildCollectionParam(n.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getKnowledgeKnowledgebaseSourcesServicenowSourceId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling getKnowledgeKnowledgebaseSourcesServicenowSourceId';if(i==null||i==="")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:i},{expand:this.apiClient.buildCollectionParam(n.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getKnowledgeKnowledgebaseSynchronizeJob(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling getKnowledgeKnowledgebaseSynchronizeJob';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getKnowledgeKnowledgebaseUnansweredGroup(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling getKnowledgeKnowledgebaseUnansweredGroup';if(i==null||i==="")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:i},{app:n.app,dateStart:n.dateStart,dateEnd:n.dateEnd},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getKnowledgeKnowledgebaseUnansweredGroupPhrasegroup(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling getKnowledgeKnowledgebaseUnansweredGroupPhrasegroup';if(i==null||i==="")throw'Missing the required parameter "groupId" when calling getKnowledgeKnowledgebaseUnansweredGroupPhrasegroup';if(n==null||n==="")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:i,phraseGroupId:n},{app:a.app,dateStart:a.dateStart,dateEnd:a.dateEnd},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getKnowledgeKnowledgebaseUnansweredGroups(e,i){if(i=i||{},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:i.app,dateStart:i.dateStart,dateEnd:i.dateEnd},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getKnowledgeKnowledgebaseUploadsUrlsJob(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling getKnowledgeKnowledgebaseUploadsUrlsJob';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getKnowledgeSourceSynchronization(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "sourceId" when calling getKnowledgeSourceSynchronization';if(i==null||i==="")throw'Missing the required parameter "synchronizationId" when calling getKnowledgeSourceSynchronization';return this.apiClient.callApi("/api/v2/knowledge/sources/{sourceId}/synchronizations/{synchronizationId}","GET",{sourceId:e,synchronizationId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getKnowledgeSourceSynchronizations(e,i){if(i=i||{},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:i.before,after:i.after,pageSize:i.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "connectionId" when calling patchKnowledgeConnection';return this.apiClient.callApi("/api/v2/knowledge/connections/{connectionId}","PATCH",{connectionId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}patchKnowledgeGuestSessionDocumentsSearchSearchId(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "sessionId" when calling patchKnowledgeGuestSessionDocumentsSearchSearchId';if(i==null||i==="")throw'Missing the required parameter "searchId" when calling patchKnowledgeGuestSessionDocumentsSearchSearchId';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchKnowledgeKnowledgebase(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling patchKnowledgeKnowledgebase';if(i==null)throw'Missing the required parameter "body" when calling patchKnowledgeKnowledgebase';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}","PATCH",{knowledgeBaseId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchKnowledgeKnowledgebaseCategory(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling patchKnowledgeKnowledgebaseCategory';if(i==null||i==="")throw'Missing the required parameter "categoryId" when calling patchKnowledgeKnowledgebaseCategory';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchKnowledgeKnowledgebaseChunksSearchSearchId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling patchKnowledgeKnowledgebaseChunksSearchSearchId';if(i==null||i==="")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:i},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchKnowledgeKnowledgebaseDocument(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling patchKnowledgeKnowledgebaseDocument';if(i==null||i==="")throw'Missing the required parameter "documentId" when calling patchKnowledgeKnowledgebaseDocument';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchKnowledgeKnowledgebaseDocumentFeedbackFeedbackId(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling patchKnowledgeKnowledgebaseDocumentFeedbackFeedbackId';if(i==null||i==="")throw'Missing the required parameter "documentId" when calling patchKnowledgeKnowledgebaseDocumentFeedbackFeedbackId';if(n==null||n==="")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:i,feedbackId:n},{},{},{},a.body,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchKnowledgeKnowledgebaseDocumentVariation(e,i,n,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "documentVariationId" when calling patchKnowledgeKnowledgebaseDocumentVariation';if(i==null||i==="")throw'Missing the required parameter "documentId" when calling patchKnowledgeKnowledgebaseDocumentVariation';if(n==null||n==="")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:i,knowledgeBaseId:n},{},{},{},a,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}patchKnowledgeKnowledgebaseDocumentsSearchSearchId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling patchKnowledgeKnowledgebaseDocumentsSearchSearchId';if(i==null||i==="")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:i},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchKnowledgeKnowledgebaseImportJob(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling patchKnowledgeKnowledgebaseImportJob';if(i==null||i==="")throw'Missing the required parameter "importJobId" when calling patchKnowledgeKnowledgebaseImportJob';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchKnowledgeKnowledgebaseLabel(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling patchKnowledgeKnowledgebaseLabel';if(i==null||i==="")throw'Missing the required parameter "labelId" when calling patchKnowledgeKnowledgebaseLabel';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchKnowledgeKnowledgebaseParseJob(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling patchKnowledgeKnowledgebaseParseJob';if(i==null||i==="")throw'Missing the required parameter "parseJobId" when calling patchKnowledgeKnowledgebaseParseJob';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchKnowledgeKnowledgebaseSynchronizeJob(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling patchKnowledgeKnowledgebaseSynchronizeJob';if(i==null||i==="")throw'Missing the required parameter "syncJobId" when calling patchKnowledgeKnowledgebaseSynchronizeJob';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchKnowledgeKnowledgebaseUnansweredGroupPhrasegroup(e,i,n,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling patchKnowledgeKnowledgebaseUnansweredGroupPhrasegroup';if(i==null||i==="")throw'Missing the required parameter "groupId" when calling patchKnowledgeKnowledgebaseUnansweredGroupPhrasegroup';if(n==null||n==="")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:i,phraseGroupId:n},{},{},{},a,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}patchKnowledgeSetting(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeSettingId" when calling patchKnowledgeSetting';if(i==null)throw'Missing the required parameter "body" when calling patchKnowledgeSetting';return this.apiClient.callApi("/api/v2/knowledge/settings/{knowledgeSettingId}","PATCH",{knowledgeSettingId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchKnowledgeSourceSynchronization(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "sourceId" when calling patchKnowledgeSourceSynchronization';if(i==null||i==="")throw'Missing the required parameter "synchronizationId" when calling patchKnowledgeSourceSynchronization';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postKnowledgeConnections(e,i){if(i=i||{},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"],i.customHeaders)}postKnowledgeDocumentuploads(e,i){if(i=i||{},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"],i.customHeaders)}postKnowledgeGuestSessionDocumentCopies(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "sessionId" when calling postKnowledgeGuestSessionDocumentCopies';if(i==null||i==="")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:i},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postKnowledgeGuestSessionDocumentFeedback(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "sessionId" when calling postKnowledgeGuestSessionDocumentFeedback';if(i==null||i==="")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:i},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postKnowledgeGuestSessionDocumentViews(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "sessionId" when calling postKnowledgeGuestSessionDocumentViews';if(i==null||i==="")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:i},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postKnowledgeGuestSessionDocumentsAnswers(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "sessionId" when calling postKnowledgeGuestSessionDocumentsAnswers';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postKnowledgeGuestSessionDocumentsPresentations(e,i){if(i=i||{},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},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postKnowledgeGuestSessionDocumentsSearch(e,i){if(i=i||{},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(i.expand,"multi")},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postKnowledgeGuestSessionDocumentsSearchSuggestions(e,i){if(i=i||{},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},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postKnowledgeGuestSessions(e,i){if(i=i||{},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"],i.customHeaders)}postKnowledgeKnowledgebaseCategories(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseCategories';if(i==null)throw'Missing the required parameter "body" when calling postKnowledgeKnowledgebaseCategories';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/categories","POST",{knowledgeBaseId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postKnowledgeKnowledgebaseChunksSearch(e,i){if(i=i||{},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},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postKnowledgeKnowledgebaseDocumentCopies(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseDocumentCopies';if(i==null||i==="")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:i},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postKnowledgeKnowledgebaseDocumentFeedback(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseDocumentFeedback';if(i==null||i==="")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:i},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postKnowledgeKnowledgebaseDocumentVariations(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseDocumentVariations';if(i==null||i==="")throw'Missing the required parameter "documentId" when calling postKnowledgeKnowledgebaseDocumentVariations';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postKnowledgeKnowledgebaseDocumentVersions(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseDocumentVersions';if(i==null||i==="")throw'Missing the required parameter "documentId" when calling postKnowledgeKnowledgebaseDocumentVersions';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postKnowledgeKnowledgebaseDocumentViews(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseDocumentViews';if(i==null||i==="")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:i},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postKnowledgeKnowledgebaseDocuments(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseDocuments';if(i==null)throw'Missing the required parameter "body" when calling postKnowledgeKnowledgebaseDocuments';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/documents","POST",{knowledgeBaseId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postKnowledgeKnowledgebaseDocumentsAnswers(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseDocumentsAnswers';if(i==null)throw'Missing the required parameter "body" when calling postKnowledgeKnowledgebaseDocumentsAnswers';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/documents/answers","POST",{knowledgeBaseId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postKnowledgeKnowledgebaseDocumentsBulkRemove(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseDocumentsBulkRemove';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postKnowledgeKnowledgebaseDocumentsBulkUpdate(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseDocumentsBulkUpdate';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postKnowledgeKnowledgebaseDocumentsPresentations(e,i){if(i=i||{},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},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postKnowledgeKnowledgebaseDocumentsQuery(e,i){if(i=i||{},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(i.expand,"multi")},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postKnowledgeKnowledgebaseDocumentsSearch(e,i){if(i=i||{},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(i.expand,"multi")},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postKnowledgeKnowledgebaseDocumentsSearchSuggestions(e,i){if(i=i||{},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},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postKnowledgeKnowledgebaseDocumentsVersionsBulkAdd(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseDocumentsVersionsBulkAdd';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postKnowledgeKnowledgebaseExportJobs(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseExportJobs';if(i==null)throw'Missing the required parameter "body" when calling postKnowledgeKnowledgebaseExportJobs';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/export/jobs","POST",{knowledgeBaseId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postKnowledgeKnowledgebaseImportJobs(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseImportJobs';if(i==null)throw'Missing the required parameter "body" when calling postKnowledgeKnowledgebaseImportJobs';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/import/jobs","POST",{knowledgeBaseId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postKnowledgeKnowledgebaseLabels(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseLabels';if(i==null)throw'Missing the required parameter "body" when calling postKnowledgeKnowledgebaseLabels';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/labels","POST",{knowledgeBaseId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postKnowledgeKnowledgebaseParseJobImport(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseParseJobImport';if(i==null||i==="")throw'Missing the required parameter "parseJobId" when calling postKnowledgeKnowledgebaseParseJobImport';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postKnowledgeKnowledgebaseParseJobs(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseParseJobs';if(i==null)throw'Missing the required parameter "body" when calling postKnowledgeKnowledgebaseParseJobs';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/parse/jobs","POST",{knowledgeBaseId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postKnowledgeKnowledgebaseSourcesSalesforce(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseSourcesSalesforce';if(i==null)throw'Missing the required parameter "body" when calling postKnowledgeKnowledgebaseSourcesSalesforce';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/sources/salesforce","POST",{knowledgeBaseId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postKnowledgeKnowledgebaseSourcesSalesforceSourceIdSync(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseSourcesSalesforceSourceIdSync';if(i==null||i==="")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:i},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postKnowledgeKnowledgebaseSourcesServicenow(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseSourcesServicenow';if(i==null)throw'Missing the required parameter "body" when calling postKnowledgeKnowledgebaseSourcesServicenow';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/sources/servicenow","POST",{knowledgeBaseId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postKnowledgeKnowledgebaseSourcesServicenowSourceIdSync(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseSourcesServicenowSourceIdSync';if(i==null||i==="")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:i},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postKnowledgeKnowledgebaseSynchronizeJobs(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseSynchronizeJobs';if(i==null)throw'Missing the required parameter "body" when calling postKnowledgeKnowledgebaseSynchronizeJobs';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/synchronize/jobs","POST",{knowledgeBaseId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postKnowledgeKnowledgebaseUploadsUrlsJobs(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseUploadsUrlsJobs';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postKnowledgeKnowledgebases(e,i){if(i=i||{},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"],i.customHeaders)}postKnowledgeSearch(e){return e=e||{},this.apiClient.callApi("/api/v2/knowledge/search","POST",{},{},{},{},e.body,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}postKnowledgeSearchPreview(e){return e=e||{},this.apiClient.callApi("/api/v2/knowledge/search/preview","POST",{},{},{},{},e.body,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}postKnowledgeSettings(e){return e=e||{},this.apiClient.callApi("/api/v2/knowledge/settings","POST",{},{},{},{},e.body,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}postKnowledgeSourceSynchronizationUploads(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "sourceId" when calling postKnowledgeSourceSynchronizationUploads';if(i==null||i==="")throw'Missing the required parameter "synchronizationId" when calling postKnowledgeSourceSynchronizationUploads';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postKnowledgeSourceSynchronizations(e,i){if(i=i||{},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},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postKnowledgeSources(e,i){if(i=i||{},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"],i.customHeaders)}putKnowledgeKnowledgebaseSourcesSalesforceSourceId(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling putKnowledgeKnowledgebaseSourcesSalesforceSourceId';if(i==null||i==="")throw'Missing the required parameter "sourceId" when calling putKnowledgeKnowledgebaseSourcesSalesforceSourceId';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}putKnowledgeKnowledgebaseSourcesServicenowSourceId(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling putKnowledgeKnowledgebaseSourcesServicenowSourceId';if(i==null||i==="")throw'Missing the required parameter "sourceId" when calling putKnowledgeKnowledgebaseSourcesServicenowSourceId';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}putKnowledgeSource(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "sourceId" when calling putKnowledgeSource';if(i==null)throw'Missing the required parameter "body" when calling putKnowledgeSource';return this.apiClient.callApi("/api/v2/knowledge/sources/{sourceId}","PUT",{sourceId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}},pb=class{constructor(e){this.apiClient=e||q.instance}deleteLanguageunderstandingDomain(e,i){if(i=i||{},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"],i.customHeaders)}deleteLanguageunderstandingDomainFeedbackFeedbackId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "domainId" when calling deleteLanguageunderstandingDomainFeedbackFeedbackId';if(i==null||i==="")throw'Missing the required parameter "feedbackId" when calling deleteLanguageunderstandingDomainFeedbackFeedbackId';return this.apiClient.callApi("/api/v2/languageunderstanding/domains/{domainId}/feedback/{feedbackId}","DELETE",{domainId:e,feedbackId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteLanguageunderstandingDomainVersion(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "domainId" when calling deleteLanguageunderstandingDomainVersion';if(i==null||i==="")throw'Missing the required parameter "domainVersionId" when calling deleteLanguageunderstandingDomainVersion';return this.apiClient.callApi("/api/v2/languageunderstanding/domains/{domainId}/versions/{domainVersionId}","DELETE",{domainId:e,domainVersionId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteLanguageunderstandingMiner(e,i){if(i=i||{},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"],i.customHeaders)}deleteLanguageunderstandingMinerDraft(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "minerId" when calling deleteLanguageunderstandingMinerDraft';if(i==null||i==="")throw'Missing the required parameter "draftId" when calling deleteLanguageunderstandingMinerDraft';return this.apiClient.callApi("/api/v2/languageunderstanding/miners/{minerId}/drafts/{draftId}","DELETE",{minerId:e,draftId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getLanguageunderstandingDomain(e,i){if(i=i||{},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"],i.customHeaders)}getLanguageunderstandingDomainFeedback(e,i){if(i=i||{},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:i.intentName,assessment:i.assessment,dateStart:i.dateStart,dateEnd:i.dateEnd,includeDeleted:i.includeDeleted,language:i.language,pageNumber:i.pageNumber,pageSize:i.pageSize,enableCursorPagination:i.enableCursorPagination,includeTrainingUtterances:i.includeTrainingUtterances,after:i.after,fields:this.apiClient.buildCollectionParam(i.fields,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getLanguageunderstandingDomainFeedbackFeedbackId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "domainId" when calling getLanguageunderstandingDomainFeedbackFeedbackId';if(i==null||i==="")throw'Missing the required parameter "feedbackId" when calling getLanguageunderstandingDomainFeedbackFeedbackId';return this.apiClient.callApi("/api/v2/languageunderstanding/domains/{domainId}/feedback/{feedbackId}","GET",{domainId:e,feedbackId:i},{fields:this.apiClient.buildCollectionParam(n.fields,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getLanguageunderstandingDomainVersion(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "domainId" when calling getLanguageunderstandingDomainVersion';if(i==null||i==="")throw'Missing the required parameter "domainVersionId" when calling getLanguageunderstandingDomainVersion';return this.apiClient.callApi("/api/v2/languageunderstanding/domains/{domainId}/versions/{domainVersionId}","GET",{domainId:e,domainVersionId:i},{includeUtterances:n.includeUtterances},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getLanguageunderstandingDomainVersionReport(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "domainId" when calling getLanguageunderstandingDomainVersionReport';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getLanguageunderstandingDomainVersions(e,i){if(i=i||{},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:i.includeUtterances,pageNumber:i.pageNumber,pageSize:i.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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:i.pageSize,pageNumber:i.pageNumber,text:i.text,sortOrder:i.sortOrder,sortBy:i.sortBy},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getLanguageunderstandingIgnoretopic(e,i){if(i=i||{},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:i.pageSize,pageNumber:i.pageNumber,text:i.text,sortOrder:i.sortOrder,sortBy:i.sortBy},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getLanguageunderstandingMiner(e,i){if(i=i||{},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"],i.customHeaders)}getLanguageunderstandingMinerDraft(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "minerId" when calling getLanguageunderstandingMinerDraft';if(i==null||i==="")throw'Missing the required parameter "draftId" when calling getLanguageunderstandingMinerDraft';return this.apiClient.callApi("/api/v2/languageunderstanding/miners/{minerId}/drafts/{draftId}","GET",{minerId:e,draftId:i},{draftIntentId:n.draftIntentId,draftTopicId:n.draftTopicId},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getLanguageunderstandingMinerDrafts(e,i){if(i=i||{},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"],i.customHeaders)}getLanguageunderstandingMinerIntent(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "minerId" when calling getLanguageunderstandingMinerIntent';if(i==null||i==="")throw'Missing the required parameter "intentId" when calling getLanguageunderstandingMinerIntent';return this.apiClient.callApi("/api/v2/languageunderstanding/miners/{minerId}/intents/{intentId}","GET",{minerId:e,intentId:i},{expand:n.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getLanguageunderstandingMinerIntents(e,i){if(i=i||{},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:i.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getLanguageunderstandingMinerTopic(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "minerId" when calling getLanguageunderstandingMinerTopic';if(i==null||i==="")throw'Missing the required parameter "topicId" when calling getLanguageunderstandingMinerTopic';return this.apiClient.callApi("/api/v2/languageunderstanding/miners/{minerId}/topics/{topicId}","GET",{minerId:e,topicId:i},{expand:n.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getLanguageunderstandingMinerTopicPhrase(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "minerId" when calling getLanguageunderstandingMinerTopicPhrase';if(i==null||i==="")throw'Missing the required parameter "topicId" when calling getLanguageunderstandingMinerTopicPhrase';if(n==null||n==="")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:i,phraseId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getLanguageunderstandingMinerTopics(e,i){if(i=i||{},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"],i.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,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "domainId" when calling patchLanguageunderstandingDomain';if(i==null)throw'Missing the required parameter "body" when calling patchLanguageunderstandingDomain';return this.apiClient.callApi("/api/v2/languageunderstanding/domains/{domainId}","PATCH",{domainId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchLanguageunderstandingMinerDraft(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "minerId" when calling patchLanguageunderstandingMinerDraft';if(i==null||i==="")throw'Missing the required parameter "draftId" when calling patchLanguageunderstandingMinerDraft';return this.apiClient.callApi("/api/v2/languageunderstanding/miners/{minerId}/drafts/{draftId}","PATCH",{minerId:e,draftId:i},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postLanguageunderstandingDomainFeedback(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "domainId" when calling postLanguageunderstandingDomainFeedback';if(i==null)throw'Missing the required parameter "body" when calling postLanguageunderstandingDomainFeedback';return this.apiClient.callApi("/api/v2/languageunderstanding/domains/{domainId}/feedback","POST",{domainId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postLanguageunderstandingDomainVersionDetect(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "domainId" when calling postLanguageunderstandingDomainVersionDetect';if(i==null||i==="")throw'Missing the required parameter "domainVersionId" when calling postLanguageunderstandingDomainVersionDetect';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postLanguageunderstandingDomainVersionPublish(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "domainId" when calling postLanguageunderstandingDomainVersionPublish';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postLanguageunderstandingDomainVersionTrain(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "domainId" when calling postLanguageunderstandingDomainVersionTrain';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postLanguageunderstandingDomainVersions(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "domainId" when calling postLanguageunderstandingDomainVersions';if(i==null)throw'Missing the required parameter "body" when calling postLanguageunderstandingDomainVersions';return this.apiClient.callApi("/api/v2/languageunderstanding/domains/{domainId}/versions","POST",{domainId:e},{includeUtterances:n.includeUtterances},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postLanguageunderstandingDomains(e,i){if(i=i||{},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"],i.customHeaders)}postLanguageunderstandingIgnorephrase(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "languageCode" when calling postLanguageunderstandingIgnorephrase';if(i==null)throw'Missing the required parameter "body" when calling postLanguageunderstandingIgnorephrase';return this.apiClient.callApi("/api/v2/languageunderstanding/ignorephrases/{languageCode}","POST",{languageCode:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postLanguageunderstandingIgnorephraseRemove(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "languageCode" when calling postLanguageunderstandingIgnorephraseRemove';if(i==null)throw'Missing the required parameter "body" when calling postLanguageunderstandingIgnorephraseRemove';return this.apiClient.callApi("/api/v2/languageunderstanding/ignorephrases/{languageCode}/remove","POST",{languageCode:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postLanguageunderstandingIgnoretopic(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "languageCode" when calling postLanguageunderstandingIgnoretopic';if(i==null)throw'Missing the required parameter "body" when calling postLanguageunderstandingIgnoretopic';return this.apiClient.callApi("/api/v2/languageunderstanding/ignoretopics/{languageCode}","POST",{languageCode:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postLanguageunderstandingIgnoretopicRemove(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "languageCode" when calling postLanguageunderstandingIgnoretopicRemove';if(i==null)throw'Missing the required parameter "body" when calling postLanguageunderstandingIgnoretopicRemove';return this.apiClient.callApi("/api/v2/languageunderstanding/ignoretopics/{languageCode}/remove","POST",{languageCode:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postLanguageunderstandingMinerDrafts(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "minerId" when calling postLanguageunderstandingMinerDrafts';if(i==null)throw'Missing the required parameter "body" when calling postLanguageunderstandingMinerDrafts';return this.apiClient.callApi("/api/v2/languageunderstanding/miners/{minerId}/drafts","POST",{minerId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postLanguageunderstandingMinerExecute(e,i){if(i=i||{},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},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postLanguageunderstandingMiners(e,i){if(i=i||{},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"],i.customHeaders)}putLanguageunderstandingDomainVersion(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "domainId" when calling putLanguageunderstandingDomainVersion';if(i==null||i==="")throw'Missing the required parameter "domainVersionId" when calling putLanguageunderstandingDomainVersion';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}},db=class{constructor(e){this.apiClient=e||q.instance}deleteLanguage(e,i){if(i=i||{},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"],i.customHeaders)}getLanguage(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getLanguagesTranslationsOrganization(e,i){if(i=i||{},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"],i.customHeaders)}getLanguagesTranslationsUser(e,i){if(i=i||{},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"],i.customHeaders)}postLanguages(e,i){if(i=i||{},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"],i.customHeaders)}},hb=class{constructor(e){this.apiClient=e||q.instance}deleteLearningAssignment(e,i){if(i=i||{},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"],i.customHeaders)}deleteLearningModule(e,i){if(i=i||{},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"],i.customHeaders)}getLearningAssignment(e,i){if(i=i||{},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(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getLearningAssignmentStep(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "assignmentId" when calling getLearningAssignmentStep';if(i==null||i==="")throw'Missing the required parameter "stepId" when calling getLearningAssignmentStep';return this.apiClient.callApi("/api/v2/learning/assignments/{assignmentId}/steps/{stepId}","GET",{assignmentId:e,stepId:i},{shareableContentObjectId:n.shareableContentObjectId,defaultShareableContentObject:n.defaultShareableContentObject,expand:this.apiClient.buildCollectionParam(n.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.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,i){if(i=i||{},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(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getLearningModuleJob(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "moduleId" when calling getLearningModuleJob';if(i==null||i==="")throw'Missing the required parameter "jobId" when calling getLearningModuleJob';return this.apiClient.callApi("/api/v2/learning/modules/{moduleId}/jobs/{jobId}","GET",{moduleId:e,jobId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getLearningModulePreview(e,i){if(i=i||{},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"],i.customHeaders)}getLearningModuleRule(e,i){if(i=i||{},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"],i.customHeaders)}getLearningModuleVersion(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "moduleId" when calling getLearningModuleVersion';if(i==null||i==="")throw'Missing the required parameter "versionId" when calling getLearningModuleVersion';return this.apiClient.callApi("/api/v2/learning/modules/{moduleId}/versions/{versionId}","GET",{moduleId:e,versionId:i},{expand:this.apiClient.buildCollectionParam(n.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getLearningModules(e){return e=e||{},this.apiClient.callApi("/api/v2/learning/modules","GET",{},{isArchived:e.isArchived,types:this.apiClient.buildCollectionParam(e.types,"multi"),pageSize:e.pageSize,pageNumber:e.pageNumber,sortOrder:e.sortOrder,sortBy:e.sortBy,searchTerm:e.searchTerm,expand:this.apiClient.buildCollectionParam(e.expand,"multi"),isPublished:e.isPublished,statuses:this.apiClient.buildCollectionParam(e.statuses,"multi"),externalIds:this.apiClient.buildCollectionParam(e.externalIds,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getLearningModulesAssignments(e,i){if(i=i||{},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:i.pageSize,pageNumber:i.pageNumber,searchTerm:i.searchTerm,overdue:i.overdue,assignmentStates:this.apiClient.buildCollectionParam(i.assignmentStates,"multi"),expand:this.apiClient.buildCollectionParam(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getLearningModulesCoverartCoverArtId(e,i){if(i=i||{},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"],i.customHeaders)}getLearningScheduleslotsJob(e,i){if(i=i||{},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"],i.customHeaders)}getLearningScormScormId(e,i){if(i=i||{},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"],i.customHeaders)}patchLearningAssignment(e,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "assignmentId" when calling patchLearningAssignment';return this.apiClient.callApi("/api/v2/learning/assignments/{assignmentId}","PATCH",{assignmentId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}patchLearningAssignmentReschedule(e,i){if(i=i||{},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},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}patchLearningAssignmentStep(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "assignmentId" when calling patchLearningAssignmentStep';if(i==null||i==="")throw'Missing the required parameter "stepId" when calling patchLearningAssignmentStep';return this.apiClient.callApi("/api/v2/learning/assignments/{assignmentId}/steps/{stepId}","PATCH",{assignmentId:e,stepId:i},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchLearningModuleUserAssignments(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "moduleId" when calling patchLearningModuleUserAssignments';if(i==null||i==="")throw'Missing the required parameter "userId" when calling patchLearningModuleUserAssignments';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postLearningAssessmentsScoring(e,i){if(i=i||{},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"],i.customHeaders)}postLearningAssignmentReassign(e,i){if(i=i||{},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"],i.customHeaders)}postLearningAssignmentReset(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "moduleId" when calling postLearningModuleJobs';if(i==null)throw'Missing the required parameter "body" when calling postLearningModuleJobs';return this.apiClient.callApi("/api/v2/learning/modules/{moduleId}/jobs","POST",{moduleId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postLearningModulePublish(e,i){if(i=i||{},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},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postLearningModuleRuleMigrate(e,i){if(i=i||{},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"],i.customHeaders)}postLearningModules(e,i){if(i=i||{},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"],i.customHeaders)}postLearningRulesQuery(e,i,n,a){if(a=a||{},e==null)throw'Missing the required parameter "pageSize" when calling postLearningRulesQuery';if(i==null)throw'Missing the required parameter "pageNumber" when calling postLearningRulesQuery';if(n==null)throw'Missing the required parameter "body" when calling postLearningRulesQuery';return this.apiClient.callApi("/api/v2/learning/rules/query","POST",{},{pageSize:e,pageNumber:i},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postLearningScheduleslotsJobs(e,i){if(i=i||{},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"],i.customHeaders)}postLearningScheduleslotsQuery(e,i){if(i=i||{},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"],i.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,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "moduleId" when calling putLearningModule';if(i==null)throw'Missing the required parameter "body" when calling putLearningModule';return this.apiClient.callApi("/api/v2/learning/modules/{moduleId}","PUT",{moduleId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putLearningModulePreview(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "moduleId" when calling putLearningModulePreview';if(i==null)throw'Missing the required parameter "body" when calling putLearningModulePreview';return this.apiClient.callApi("/api/v2/learning/modules/{moduleId}/preview","PUT",{moduleId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putLearningModuleRule(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "moduleId" when calling putLearningModuleRule';if(i==null)throw'Missing the required parameter "body" when calling putLearningModuleRule';return this.apiClient.callApi("/api/v2/learning/modules/{moduleId}/rule","PUT",{moduleId:e},{assign:n.assign},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}},gb=class{constructor(e){this.apiClient=e||q.instance}getLicenseDefinition(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getLicenseUser(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}postLicenseUsers(e){return e=e||{},this.apiClient.callApi("/api/v2/license/users","POST",{},{},{},{},e.body,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}},mb=class{constructor(e){this.apiClient=e||q.instance}deleteLocation(e,i){if(i=i||{},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"],i.customHeaders)}getLocation(e,i){if(i=i||{},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(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getLocationSublocations(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}patchLocation(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "locationId" when calling patchLocation';if(i==null)throw'Missing the required parameter "body" when calling patchLocation';return this.apiClient.callApi("/api/v2/locations/{locationId}","PATCH",{locationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postLocations(e,i){if(i=i||{},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"],i.customHeaders)}postLocationsSearch(e,i){if(i=i||{},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"],i.customHeaders)}},fb=class{constructor(e){this.apiClient=e||q.instance}deleteDiagnosticsLogcaptureBrowserUser(e,i){if(i=i||{},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"],i.customHeaders)}getDiagnosticsLogcaptureBrowserEntriesDownloadJob(e,i){if(i=i||{},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"],i.customHeaders)}getDiagnosticsLogcaptureBrowserUser(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}},wb=class{constructor(e){this.apiClient=e||q.instance}deleteMessagingSetting(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getMessagingSetting(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}patchMessagingSetting(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "messageSettingId" when calling patchMessagingSetting';if(i==null)throw'Missing the required parameter "body" when calling patchMessagingSetting';return this.apiClient.callApi("/api/v2/messaging/settings/{messageSettingId}","PATCH",{messageSettingId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchMessagingSupportedcontentSupportedContentId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "supportedContentId" when calling patchMessagingSupportedcontentSupportedContentId';if(i==null)throw'Missing the required parameter "body" when calling patchMessagingSupportedcontentSupportedContentId';return this.apiClient.callApi("/api/v2/messaging/supportedcontent/{supportedContentId}","PATCH",{supportedContentId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postMessagingSettings(e,i){if(i=i||{},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"],i.customHeaders)}postMessagingSupportedcontent(e,i){if(i=i||{},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"],i.customHeaders)}putMessagingSettingsDefault(e,i){if(i=i||{},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"],i.customHeaders)}},vb=class{constructor(e){this.apiClient=e||q.instance}deleteMobiledevice(e,i){if(i=i||{},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"],i.customHeaders)}getMobiledevice(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}putMobiledevice(e,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "deviceId" when calling putMobiledevice';return this.apiClient.callApi("/api/v2/mobiledevices/{deviceId}","PUT",{deviceId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}},Cb=class{constructor(e){this.apiClient=e||q.instance}deleteNotificationsChannelSubscriptions(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}postNotificationsChannelSubscriptions(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "channelId" when calling postNotificationsChannelSubscriptions';if(i==null)throw'Missing the required parameter "body" when calling postNotificationsChannelSubscriptions';return this.apiClient.callApi("/api/v2/notifications/channels/{channelId}/subscriptions","POST",{channelId:e},{ignoreErrors:n.ignoreErrors},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.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,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "channelId" when calling putNotificationsChannelSubscriptions';if(i==null)throw'Missing the required parameter "body" when calling putNotificationsChannelSubscriptions';return this.apiClient.callApi("/api/v2/notifications/channels/{channelId}/subscriptions","PUT",{channelId:e},{ignoreErrors:n.ignoreErrors},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}},Ab=class{constructor(e){this.apiClient=e||q.instance}deleteOauthClient(e,i){if(i=i||{},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"],i.customHeaders)}getOauthAuthorization(e,i){if(i=i||{},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":i.acceptLanguage},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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"],i.customHeaders)}getOauthClientUsageQueryResult(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "executionId" when calling getOauthClientUsageQueryResult';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getOauthClientUsageSummary(e,i){if(i=i||{},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:i.days},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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":i.acceptLanguage},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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"],i.customHeaders)}postOauthClientUsageQuery(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "clientId" when calling postOauthClientUsageQuery';if(i==null)throw'Missing the required parameter "body" when calling postOauthClientUsageQuery';return this.apiClient.callApi("/api/v2/oauth/clients/{clientId}/usage/query","POST",{clientId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postOauthClients(e,i){if(i=i||{},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"],i.customHeaders)}putOauthClient(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "clientId" when calling putOauthClient';if(i==null)throw'Missing the required parameter "body" when calling putOauthClient';return this.apiClient.callApi("/api/v2/oauth/clients/{clientId}","PUT",{clientId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}},bb=class{constructor(e){this.apiClient=e||q.instance}deleteAuthorizationDivision(e,i){if(i=i||{},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:i.force},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getAuthorizationDivision(e,i){if(i=i||{},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:i.objectCount},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "divisionId" when calling postAuthorizationDivisionObject';if(i==null||i==="")throw'Missing the required parameter "objectType" when calling postAuthorizationDivisionObject';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postAuthorizationDivisionRestore(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "divisionId" when calling postAuthorizationDivisionRestore';if(i==null)throw'Missing the required parameter "body" when calling postAuthorizationDivisionRestore';return this.apiClient.callApi("/api/v2/authorization/divisions/{divisionId}/restore","POST",{divisionId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postAuthorizationDivisions(e,i){if(i=i||{},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"],i.customHeaders)}putAuthorizationDivision(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "divisionId" when calling putAuthorizationDivision';if(i==null)throw'Missing the required parameter "body" when calling putAuthorizationDivision';return this.apiClient.callApi("/api/v2/authorization/divisions/{divisionId}","PUT",{divisionId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}},yb=class{constructor(e){this.apiClient=e||q.instance}getUsageEventsDefinition(e,i){if(i=i||{},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"],i.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)}},Pb=class{constructor(e){this.apiClient=e||q.instance}getFieldconfig(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getOrganizationsLimitsNamespaceDefaults(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}patchOrganizationsFeature(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "featureName" when calling patchOrganizationsFeature';if(i==null)throw'Missing the required parameter "enabled" when calling patchOrganizationsFeature';return this.apiClient.callApi("/api/v2/organizations/features/{featureName}","PATCH",{featureName:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putOrganizationsEmbeddedintegration(e,i){if(i=i||{},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"],i.customHeaders)}putOrganizationsIpaddressauthentication(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}},jb=class{constructor(e){this.apiClient=e||q.instance}deleteOrgauthorizationTrustee(e,i){if(i=i||{},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"],i.customHeaders)}deleteOrgauthorizationTrusteeCloneduser(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "trusteeOrgId" when calling deleteOrgauthorizationTrusteeCloneduser';if(i==null||i==="")throw'Missing the required parameter "trusteeUserId" when calling deleteOrgauthorizationTrusteeCloneduser';return this.apiClient.callApi("/api/v2/orgauthorization/trustees/{trusteeOrgId}/clonedusers/{trusteeUserId}","DELETE",{trusteeOrgId:e,trusteeUserId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteOrgauthorizationTrusteeGroup(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "trusteeOrgId" when calling deleteOrgauthorizationTrusteeGroup';if(i==null||i==="")throw'Missing the required parameter "trusteeGroupId" when calling deleteOrgauthorizationTrusteeGroup';return this.apiClient.callApi("/api/v2/orgauthorization/trustees/{trusteeOrgId}/groups/{trusteeGroupId}","DELETE",{trusteeOrgId:e,trusteeGroupId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteOrgauthorizationTrusteeGroupRoles(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "trusteeOrgId" when calling deleteOrgauthorizationTrusteeGroupRoles';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteOrgauthorizationTrusteeUser(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "trusteeOrgId" when calling deleteOrgauthorizationTrusteeUser';if(i==null||i==="")throw'Missing the required parameter "trusteeUserId" when calling deleteOrgauthorizationTrusteeUser';return this.apiClient.callApi("/api/v2/orgauthorization/trustees/{trusteeOrgId}/users/{trusteeUserId}","DELETE",{trusteeOrgId:e,trusteeUserId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteOrgauthorizationTrusteeUserRoles(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "trusteeOrgId" when calling deleteOrgauthorizationTrusteeUserRoles';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteOrgauthorizationTrustees(e,i){if(i=i||{},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"],i.customHeaders)}deleteOrgauthorizationTrustor(e,i){if(i=i||{},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"],i.customHeaders)}deleteOrgauthorizationTrustorCloneduser(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "trustorOrgId" when calling deleteOrgauthorizationTrustorCloneduser';if(i==null||i==="")throw'Missing the required parameter "trusteeUserId" when calling deleteOrgauthorizationTrustorCloneduser';return this.apiClient.callApi("/api/v2/orgauthorization/trustors/{trustorOrgId}/clonedusers/{trusteeUserId}","DELETE",{trustorOrgId:e,trusteeUserId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteOrgauthorizationTrustorGroup(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "trustorOrgId" when calling deleteOrgauthorizationTrustorGroup';if(i==null||i==="")throw'Missing the required parameter "trustorGroupId" when calling deleteOrgauthorizationTrustorGroup';return this.apiClient.callApi("/api/v2/orgauthorization/trustors/{trustorOrgId}/groups/{trustorGroupId}","DELETE",{trustorOrgId:e,trustorGroupId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteOrgauthorizationTrustorUser(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "trustorOrgId" when calling deleteOrgauthorizationTrustorUser';if(i==null||i==="")throw'Missing the required parameter "trusteeUserId" when calling deleteOrgauthorizationTrustorUser';return this.apiClient.callApi("/api/v2/orgauthorization/trustors/{trustorOrgId}/users/{trusteeUserId}","DELETE",{trustorOrgId:e,trusteeUserId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteOrgauthorizationTrustors(e,i){if(i=i||{},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"],i.customHeaders)}getOrgauthorizationPairing(e,i){if(i=i||{},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"],i.customHeaders)}getOrgauthorizationTrustee(e,i){if(i=i||{},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"],i.customHeaders)}getOrgauthorizationTrusteeClonedusers(e,i){if(i=i||{},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"],i.customHeaders)}getOrgauthorizationTrusteeGroup(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "trusteeOrgId" when calling getOrgauthorizationTrusteeGroup';if(i==null||i==="")throw'Missing the required parameter "trusteeGroupId" when calling getOrgauthorizationTrusteeGroup';return this.apiClient.callApi("/api/v2/orgauthorization/trustees/{trusteeOrgId}/groups/{trusteeGroupId}","GET",{trusteeOrgId:e,trusteeGroupId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getOrgauthorizationTrusteeGroupRoles(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "trusteeOrgId" when calling getOrgauthorizationTrusteeGroupRoles';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getOrgauthorizationTrusteeGroups(e,i){if(i=i||{},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:i.pageSize,pageNumber:i.pageNumber},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getOrgauthorizationTrusteeUser(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "trusteeOrgId" when calling getOrgauthorizationTrusteeUser';if(i==null||i==="")throw'Missing the required parameter "trusteeUserId" when calling getOrgauthorizationTrusteeUser';return this.apiClient.callApi("/api/v2/orgauthorization/trustees/{trusteeOrgId}/users/{trusteeUserId}","GET",{trusteeOrgId:e,trusteeUserId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getOrgauthorizationTrusteeUserRoles(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "trusteeOrgId" when calling getOrgauthorizationTrusteeUserRoles';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getOrgauthorizationTrusteeUsers(e,i){if(i=i||{},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:i.pageSize,pageNumber:i.pageNumber},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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"],i.customHeaders)}getOrgauthorizationTrustorCloneduser(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "trustorOrgId" when calling getOrgauthorizationTrustorCloneduser';if(i==null||i==="")throw'Missing the required parameter "trusteeUserId" when calling getOrgauthorizationTrustorCloneduser';return this.apiClient.callApi("/api/v2/orgauthorization/trustors/{trustorOrgId}/clonedusers/{trusteeUserId}","GET",{trustorOrgId:e,trusteeUserId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getOrgauthorizationTrustorClonedusers(e,i){if(i=i||{},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"],i.customHeaders)}getOrgauthorizationTrustorGroup(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "trustorOrgId" when calling getOrgauthorizationTrustorGroup';if(i==null||i==="")throw'Missing the required parameter "trustorGroupId" when calling getOrgauthorizationTrustorGroup';return this.apiClient.callApi("/api/v2/orgauthorization/trustors/{trustorOrgId}/groups/{trustorGroupId}","GET",{trustorOrgId:e,trustorGroupId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getOrgauthorizationTrustorGroups(e,i){if(i=i||{},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:i.pageSize,pageNumber:i.pageNumber},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getOrgauthorizationTrustorUser(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "trustorOrgId" when calling getOrgauthorizationTrustorUser';if(i==null||i==="")throw'Missing the required parameter "trusteeUserId" when calling getOrgauthorizationTrustorUser';return this.apiClient.callApi("/api/v2/orgauthorization/trustors/{trustorOrgId}/users/{trusteeUserId}","GET",{trustorOrgId:e,trusteeUserId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getOrgauthorizationTrustorUsers(e,i){if(i=i||{},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:i.pageSize,pageNumber:i.pageNumber},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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"],i.customHeaders)}postOrgauthorizationTrusteeGroups(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "trusteeOrgId" when calling postOrgauthorizationTrusteeGroups';if(i==null)throw'Missing the required parameter "body" when calling postOrgauthorizationTrusteeGroups';return this.apiClient.callApi("/api/v2/orgauthorization/trustees/{trusteeOrgId}/groups","POST",{trusteeOrgId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postOrgauthorizationTrusteeUsers(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "trusteeOrgId" when calling postOrgauthorizationTrusteeUsers';if(i==null)throw'Missing the required parameter "body" when calling postOrgauthorizationTrusteeUsers';return this.apiClient.callApi("/api/v2/orgauthorization/trustees/{trusteeOrgId}/users","POST",{trusteeOrgId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postOrgauthorizationTrustees(e,i){if(i=i||{},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"],i.customHeaders)}postOrgauthorizationTrusteesAudits(e,i){if(i=i||{},e==null)throw'Missing the required parameter "body" when calling postOrgauthorizationTrusteesAudits';return this.apiClient.callApi("/api/v2/orgauthorization/trustees/audits","POST",{},{pageSize:i.pageSize,pageNumber:i.pageNumber,sortBy:i.sortBy,sortOrder:i.sortOrder},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},e==null)throw'Missing the required parameter "body" when calling postOrgauthorizationTrustorAudits';return this.apiClient.callApi("/api/v2/orgauthorization/trustor/audits","POST",{},{pageSize:i.pageSize,pageNumber:i.pageNumber,sortBy:i.sortBy,sortOrder:i.sortOrder},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}putOrgauthorizationTrustee(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "trusteeOrgId" when calling putOrgauthorizationTrustee';if(i==null)throw'Missing the required parameter "body" when calling putOrgauthorizationTrustee';return this.apiClient.callApi("/api/v2/orgauthorization/trustees/{trusteeOrgId}","PUT",{trusteeOrgId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putOrgauthorizationTrusteeGroupRoledivisions(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "trusteeOrgId" when calling putOrgauthorizationTrusteeGroupRoledivisions';if(i==null||i==="")throw'Missing the required parameter "trusteeGroupId" when calling putOrgauthorizationTrusteeGroupRoledivisions';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}putOrgauthorizationTrusteeGroupRoles(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "trusteeOrgId" when calling putOrgauthorizationTrusteeGroupRoles';if(i==null||i==="")throw'Missing the required parameter "trusteeGroupId" when calling putOrgauthorizationTrusteeGroupRoles';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}putOrgauthorizationTrusteeUserRoledivisions(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "trusteeOrgId" when calling putOrgauthorizationTrusteeUserRoledivisions';if(i==null||i==="")throw'Missing the required parameter "trusteeUserId" when calling putOrgauthorizationTrusteeUserRoledivisions';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}putOrgauthorizationTrusteeUserRoles(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "trusteeOrgId" when calling putOrgauthorizationTrusteeUserRoles';if(i==null||i==="")throw'Missing the required parameter "trusteeUserId" when calling putOrgauthorizationTrusteeUserRoles';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}putOrgauthorizationTrustorCloneduser(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "trustorOrgId" when calling putOrgauthorizationTrustorCloneduser';if(i==null||i==="")throw'Missing the required parameter "trusteeUserId" when calling putOrgauthorizationTrustorCloneduser';return this.apiClient.callApi("/api/v2/orgauthorization/trustors/{trustorOrgId}/clonedusers/{trusteeUserId}","PUT",{trustorOrgId:e,trusteeUserId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putOrgauthorizationTrustorGroup(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "trustorOrgId" when calling putOrgauthorizationTrustorGroup';if(i==null||i==="")throw'Missing the required parameter "trustorGroupId" when calling putOrgauthorizationTrustorGroup';return this.apiClient.callApi("/api/v2/orgauthorization/trustors/{trustorOrgId}/groups/{trustorGroupId}","PUT",{trustorOrgId:e,trustorGroupId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putOrgauthorizationTrustorUser(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "trustorOrgId" when calling putOrgauthorizationTrustorUser';if(i==null||i==="")throw'Missing the required parameter "trusteeUserId" when calling putOrgauthorizationTrustorUser';return this.apiClient.callApi("/api/v2/orgauthorization/trustors/{trustorOrgId}/users/{trusteeUserId}","PUT",{trustorOrgId:e,trusteeUserId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}},Sb=class{constructor(e){this.apiClient=e||q.instance}deleteOutboundAttemptlimit(e,i){if(i=i||{},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"],i.customHeaders)}deleteOutboundCallabletimeset(e,i){if(i=i||{},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"],i.customHeaders)}deleteOutboundCallanalysisresponseset(e,i){if(i=i||{},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"],i.customHeaders)}deleteOutboundCampaign(e,i){if(i=i||{},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"],i.customHeaders)}deleteOutboundCampaignProgress(e,i){if(i=i||{},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"],i.customHeaders)}deleteOutboundCampaignrule(e,i){if(i=i||{},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"],i.customHeaders)}deleteOutboundContactlist(e,i){if(i=i||{},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"],i.customHeaders)}deleteOutboundContactlistContact(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "contactListId" when calling deleteOutboundContactlistContact';if(i==null||i==="")throw'Missing the required parameter "contactId" when calling deleteOutboundContactlistContact';return this.apiClient.callApi("/api/v2/outbound/contactlists/{contactListId}/contacts/{contactId}","DELETE",{contactListId:e,contactId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteOutboundContactlistContacts(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "contactListId" when calling deleteOutboundContactlistContacts';if(i==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(i,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteOutboundContactlistfilter(e,i){if(i=i||{},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"],i.customHeaders)}deleteOutboundContactlists(e,i){if(i=i||{},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"],i.customHeaders)}deleteOutboundContactlisttemplate(e,i){if(i=i||{},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"],i.customHeaders)}deleteOutboundContactlisttemplates(e,i){if(i=i||{},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"],i.customHeaders)}deleteOutboundDigitalruleset(e,i){if(i=i||{},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"],i.customHeaders)}deleteOutboundDnclist(e,i){if(i=i||{},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"],i.customHeaders)}deleteOutboundDnclistCustomexclusioncolumns(e,i){if(i=i||{},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:i.expiredOnly},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}deleteOutboundDnclistEmailaddresses(e,i){if(i=i||{},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:i.expiredOnly},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}deleteOutboundDnclistPhonenumbers(e,i){if(i=i||{},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:i.expiredOnly},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}deleteOutboundDnclistWhatsappnumbers(e,i){if(i=i||{},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:i.expiredOnly},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}deleteOutboundFilespecificationtemplate(e,i){if(i=i||{},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"],i.customHeaders)}deleteOutboundFilespecificationtemplatesBulk(e,i){if(i=i||{},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"],i.customHeaders)}deleteOutboundImporttemplate(e,i){if(i=i||{},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"],i.customHeaders)}deleteOutboundImporttemplates(e,i){if(i=i||{},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"],i.customHeaders)}deleteOutboundMessagingcampaign(e,i){if(i=i||{},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"],i.customHeaders)}deleteOutboundMessagingcampaignProgress(e,i){if(i=i||{},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"],i.customHeaders)}deleteOutboundRuleset(e,i){if(i=i||{},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"],i.customHeaders)}deleteOutboundSchedulesCampaign(e,i){if(i=i||{},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"],i.customHeaders)}deleteOutboundSchedulesEmailcampaign(e,i){if(i=i||{},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"],i.customHeaders)}deleteOutboundSchedulesMessagingcampaign(e,i){if(i=i||{},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"],i.customHeaders)}deleteOutboundSchedulesSequence(e,i){if(i=i||{},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"],i.customHeaders)}deleteOutboundSchedulesWhatsappcampaign(e,i){if(i=i||{},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"],i.customHeaders)}deleteOutboundSequence(e,i){if(i=i||{},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"],i.customHeaders)}getOutboundAttemptlimit(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getOutboundCampaignAgentownedmappingpreviewResults(e,i){if(i=i||{},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"],i.customHeaders)}getOutboundCampaignDiagnostics(e,i){if(i=i||{},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"],i.customHeaders)}getOutboundCampaignInteractions(e,i){if(i=i||{},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"],i.customHeaders)}getOutboundCampaignLinedistribution(e,i){if(i=i||{},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:i.includeOnlyActiveCampaigns,edgeGroupId:i.edgeGroupId,siteId:i.siteId,useWeight:i.useWeight,relativeWeight:i.relativeWeight,outboundLineCount:i.outboundLineCount},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getOutboundCampaignProgress(e,i){if(i=i||{},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"],i.customHeaders)}getOutboundCampaignSkillcombinations(e,i){if(i=i||{},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:i.pageNumber,pageSize:i.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getOutboundCampaignStats(e,i){if(i=i||{},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"],i.customHeaders)}getOutboundCampaignrule(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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:i.includeImportStatus,includeSize:i.includeSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getOutboundContactlistContact(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "contactListId" when calling getOutboundContactlistContact';if(i==null||i==="")throw'Missing the required parameter "contactId" when calling getOutboundContactlistContact';return this.apiClient.callApi("/api/v2/outbound/contactlists/{contactListId}/contacts/{contactId}","GET",{contactListId:e,contactId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getOutboundContactlistContactsBulkJob(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "contactListId" when calling getOutboundContactlistContactsBulkJob';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getOutboundContactlistContactsBulkJobs(e,i){if(i=i||{},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"],i.customHeaders)}getOutboundContactlistExport(e,i){if(i=i||{},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:i.download},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getOutboundContactlistImportstatus(e,i){if(i=i||{},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"],i.customHeaders)}getOutboundContactlistTimezonemappingpreview(e,i){if(i=i||{},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"],i.customHeaders)}getOutboundContactlistfilter(e,i){if(i=i||{},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"],i.customHeaders)}getOutboundContactlistfilters(e){return e=e||{},this.apiClient.callApi("/api/v2/outbound/contactlistfilters","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,allowEmptyResult:e.allowEmptyResult,filterType:e.filterType,name:e.name,sortBy:e.sortBy,sortOrder:e.sortOrder,contactListId:e.contactListId},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getOutboundContactlists(e){return e=e||{},this.apiClient.callApi("/api/v2/outbound/contactlists","GET",{},{includeImportStatus:e.includeImportStatus,includeSize:e.includeSize,pageSize:e.pageSize,pageNumber:e.pageNumber,allowEmptyResult:e.allowEmptyResult,filterType:e.filterType,name:e.name,id:this.apiClient.buildCollectionParam(e.id,"multi"),divisionId:this.apiClient.buildCollectionParam(e.divisionId,"multi"),sortBy:e.sortBy,sortOrder:e.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getOutboundContactlistsDivisionview(e,i){if(i=i||{},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:i.includeImportStatus,includeSize:i.includeSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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"],i.customHeaders)}getOutboundContactlisttemplates(e){return e=e||{},this.apiClient.callApi("/api/v2/outbound/contactlisttemplates","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,allowEmptyResult:e.allowEmptyResult,filterType:e.filterType,name:e.name,sortBy:e.sortBy,sortOrder:e.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getOutboundDiagnosticsCampaignSummary(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "campaignId" when calling getOutboundDiagnosticsCampaignSummary';if(i==null)throw'Missing the required parameter "start" when calling getOutboundDiagnosticsCampaignSummary';if(n==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:i,end:n},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getOutboundDigitalruleset(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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:i.includeImportStatus,includeSize:i.includeSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getOutboundDnclistExport(e,i){if(i=i||{},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:i.download},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getOutboundDnclistImportstatus(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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:i.includeImportStatus,includeSize:i.includeSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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:i.includeImportStatus},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getOutboundImporttemplateImportstatus(e,i){if(i=i||{},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:i.listNamePrefix},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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"],i.customHeaders)}getOutboundMessagingcampaignDiagnostics(e,i){if(i=i||{},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"],i.customHeaders)}getOutboundMessagingcampaignProgress(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "campaignId" when calling patchOutboundCampaign';if(i==null)throw'Missing the required parameter "body" when calling patchOutboundCampaign';return this.apiClient.callApi("/api/v2/outbound/campaigns/{campaignId}","PATCH",{campaignId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchOutboundDnclistCustomexclusioncolumns(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "dncListId" when calling patchOutboundDnclistCustomexclusioncolumns';if(i==null)throw'Missing the required parameter "body" when calling patchOutboundDnclistCustomexclusioncolumns';return this.apiClient.callApi("/api/v2/outbound/dnclists/{dncListId}/customexclusioncolumns","PATCH",{dncListId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchOutboundDnclistEmailaddresses(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "dncListId" when calling patchOutboundDnclistEmailaddresses';if(i==null)throw'Missing the required parameter "body" when calling patchOutboundDnclistEmailaddresses';return this.apiClient.callApi("/api/v2/outbound/dnclists/{dncListId}/emailaddresses","PATCH",{dncListId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchOutboundDnclistPhonenumbers(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "dncListId" when calling patchOutboundDnclistPhonenumbers';if(i==null)throw'Missing the required parameter "body" when calling patchOutboundDnclistPhonenumbers';return this.apiClient.callApi("/api/v2/outbound/dnclists/{dncListId}/phonenumbers","PATCH",{dncListId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchOutboundDnclistWhatsappnumbers(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "dncListId" when calling patchOutboundDnclistWhatsappnumbers';if(i==null)throw'Missing the required parameter "body" when calling patchOutboundDnclistWhatsappnumbers';return this.apiClient.callApi("/api/v2/outbound/dnclists/{dncListId}/whatsappnumbers","PATCH",{dncListId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchOutboundSettings(e,i){if(i=i||{},e==null)throw'Missing the required parameter "body" when calling patchOutboundSettings';return this.apiClient.callApi("/api/v2/outbound/settings","PATCH",{},{useMaxCallsPerAgentDecimal:i.useMaxCallsPerAgentDecimal},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postOutboundAttemptlimits(e,i){if(i=i||{},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"],i.customHeaders)}postOutboundCallabletimesets(e,i){if(i=i||{},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"],i.customHeaders)}postOutboundCallanalysisresponsesets(e,i){if(i=i||{},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"],i.customHeaders)}postOutboundCampaignAgentownedmappingpreview(e,i){if(i=i||{},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"],i.customHeaders)}postOutboundCampaignCallbackSchedule(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "campaignId" when calling postOutboundCampaignCallbackSchedule';if(i==null)throw'Missing the required parameter "body" when calling postOutboundCampaignCallbackSchedule';return this.apiClient.callApi("/api/v2/outbound/campaigns/{campaignId}/callback/schedule","POST",{campaignId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postOutboundCampaignStart(e,i){if(i=i||{},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"],i.customHeaders)}postOutboundCampaignStop(e,i){if(i=i||{},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"],i.customHeaders)}postOutboundCampaignrules(e,i){if(i=i||{},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"],i.customHeaders)}postOutboundCampaigns(e,i){if(i=i||{},e==null)throw'Missing the required parameter "body" when calling postOutboundCampaigns';return this.apiClient.callApi("/api/v2/outbound/campaigns","POST",{},{useMaxCallsPerAgentDecimal:i.useMaxCallsPerAgentDecimal},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postOutboundCampaignsPerformanceQuery(e,i){if(i=i||{},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"],i.customHeaders)}postOutboundCampaignsProgress(e,i){if(i=i||{},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"],i.customHeaders)}postOutboundContactlistClear(e,i){if(i=i||{},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"],i.customHeaders)}postOutboundContactlistContacts(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "contactListId" when calling postOutboundContactlistContacts';if(i==null)throw'Missing the required parameter "body" when calling postOutboundContactlistContacts';return this.apiClient.callApi("/api/v2/outbound/contactlists/{contactListId}/contacts","POST",{contactListId:e},{priority:n.priority,clearSystemData:n.clearSystemData,doNotQueue:n.doNotQueue},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postOutboundContactlistContactsBulk(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "contactListId" when calling postOutboundContactlistContactsBulk';if(i==null)throw'Missing the required parameter "body" when calling postOutboundContactlistContactsBulk';return this.apiClient.callApi("/api/v2/outbound/contactlists/{contactListId}/contacts/bulk","POST",{contactListId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postOutboundContactlistContactsBulkRemove(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "contactListId" when calling postOutboundContactlistContactsBulkRemove';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postOutboundContactlistContactsBulkUpdate(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "contactListId" when calling postOutboundContactlistContactsBulkUpdate';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postOutboundContactlistContactsSearch(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "contactListId" when calling postOutboundContactlistContactsSearch';if(i==null)throw'Missing the required parameter "body" when calling postOutboundContactlistContactsSearch';return this.apiClient.callApi("/api/v2/outbound/contactlists/{contactListId}/contacts/search","POST",{contactListId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postOutboundContactlistExport(e,i){if(i=i||{},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},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postOutboundContactlistfilters(e,i){if(i=i||{},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"],i.customHeaders)}postOutboundContactlistfiltersBulkRetrieve(e,i){if(i=i||{},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"],i.customHeaders)}postOutboundContactlistfiltersPreview(e,i){if(i=i||{},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"],i.customHeaders)}postOutboundContactlists(e,i){if(i=i||{},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"],i.customHeaders)}postOutboundContactlistsUploads(e,i){if(i=i||{},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"],i.customHeaders)}postOutboundContactlisttemplates(e,i){if(i=i||{},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"],i.customHeaders)}postOutboundContactlisttemplatesBulkAdd(e,i){if(i=i||{},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"],i.customHeaders)}postOutboundContactlisttemplatesBulkRetrieve(e,i){if(i=i||{},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"],i.customHeaders)}postOutboundConversationDnc(e,i){if(i=i||{},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"],i.customHeaders)}postOutboundDigitalrulesets(e,i){if(i=i||{},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"],i.customHeaders)}postOutboundDnclistEmailaddresses(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "dncListId" when calling postOutboundDnclistEmailaddresses';if(i==null)throw'Missing the required parameter "body" when calling postOutboundDnclistEmailaddresses';return this.apiClient.callApi("/api/v2/outbound/dnclists/{dncListId}/emailaddresses","POST",{dncListId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postOutboundDnclistExport(e,i){if(i=i||{},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"],i.customHeaders)}postOutboundDnclistPhonenumbers(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "dncListId" when calling postOutboundDnclistPhonenumbers';if(i==null)throw'Missing the required parameter "body" when calling postOutboundDnclistPhonenumbers';return this.apiClient.callApi("/api/v2/outbound/dnclists/{dncListId}/phonenumbers","POST",{dncListId:e},{expirationDateTime:n.expirationDateTime},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postOutboundDnclists(e,i){if(i=i||{},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"],i.customHeaders)}postOutboundDnclistsUploads(e,i){if(i=i||{},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"],i.customHeaders)}postOutboundFilespecificationtemplates(e,i){if(i=i||{},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"],i.customHeaders)}postOutboundImporttemplates(e,i){if(i=i||{},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"],i.customHeaders)}postOutboundImporttemplatesBulkAdd(e,i){if(i=i||{},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"],i.customHeaders)}postOutboundMessagingcampaignStart(e,i){if(i=i||{},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"],i.customHeaders)}postOutboundMessagingcampaignStop(e,i){if(i=i||{},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"],i.customHeaders)}postOutboundMessagingcampaigns(e,i){if(i=i||{},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"],i.customHeaders)}postOutboundMessagingcampaignsProgress(e,i){if(i=i||{},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"],i.customHeaders)}postOutboundRulesets(e,i){if(i=i||{},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"],i.customHeaders)}postOutboundSequences(e,i){if(i=i||{},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"],i.customHeaders)}putOutboundAttemptlimit(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "attemptLimitsId" when calling putOutboundAttemptlimit';if(i==null)throw'Missing the required parameter "body" when calling putOutboundAttemptlimit';return this.apiClient.callApi("/api/v2/outbound/attemptlimits/{attemptLimitsId}","PUT",{attemptLimitsId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putOutboundCallabletimeset(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "callableTimeSetId" when calling putOutboundCallabletimeset';if(i==null)throw'Missing the required parameter "body" when calling putOutboundCallabletimeset';return this.apiClient.callApi("/api/v2/outbound/callabletimesets/{callableTimeSetId}","PUT",{callableTimeSetId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putOutboundCallanalysisresponseset(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "callAnalysisSetId" when calling putOutboundCallanalysisresponseset';if(i==null)throw'Missing the required parameter "body" when calling putOutboundCallanalysisresponseset';return this.apiClient.callApi("/api/v2/outbound/callanalysisresponsesets/{callAnalysisSetId}","PUT",{callAnalysisSetId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putOutboundCampaign(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "campaignId" when calling putOutboundCampaign';if(i==null)throw'Missing the required parameter "body" when calling putOutboundCampaign';return this.apiClient.callApi("/api/v2/outbound/campaigns/{campaignId}","PUT",{campaignId:e},{useMaxCallsPerAgentDecimal:n.useMaxCallsPerAgentDecimal},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putOutboundCampaignAgent(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "campaignId" when calling putOutboundCampaignAgent';if(i==null||i==="")throw'Missing the required parameter "userId" when calling putOutboundCampaignAgent';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}putOutboundCampaignrule(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "campaignRuleId" when calling putOutboundCampaignrule';if(i==null)throw'Missing the required parameter "body" when calling putOutboundCampaignrule';return this.apiClient.callApi("/api/v2/outbound/campaignrules/{campaignRuleId}","PUT",{campaignRuleId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putOutboundContactlist(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "contactListId" when calling putOutboundContactlist';if(i==null)throw'Missing the required parameter "body" when calling putOutboundContactlist';return this.apiClient.callApi("/api/v2/outbound/contactlists/{contactListId}","PUT",{contactListId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putOutboundContactlistContact(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "contactListId" when calling putOutboundContactlistContact';if(i==null||i==="")throw'Missing the required parameter "contactId" when calling putOutboundContactlistContact';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}putOutboundContactlistfilter(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "contactListFilterId" when calling putOutboundContactlistfilter';if(i==null)throw'Missing the required parameter "body" when calling putOutboundContactlistfilter';return this.apiClient.callApi("/api/v2/outbound/contactlistfilters/{contactListFilterId}","PUT",{contactListFilterId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putOutboundContactlisttemplate(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "contactListTemplateId" when calling putOutboundContactlisttemplate';if(i==null)throw'Missing the required parameter "body" when calling putOutboundContactlisttemplate';return this.apiClient.callApi("/api/v2/outbound/contactlisttemplates/{contactListTemplateId}","PUT",{contactListTemplateId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putOutboundDigitalruleset(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "digitalRuleSetId" when calling putOutboundDigitalruleset';if(i==null)throw'Missing the required parameter "body" when calling putOutboundDigitalruleset';return this.apiClient.callApi("/api/v2/outbound/digitalrulesets/{digitalRuleSetId}","PUT",{digitalRuleSetId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putOutboundDnclist(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "dncListId" when calling putOutboundDnclist';if(i==null)throw'Missing the required parameter "body" when calling putOutboundDnclist';return this.apiClient.callApi("/api/v2/outbound/dnclists/{dncListId}","PUT",{dncListId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putOutboundFilespecificationtemplate(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "fileSpecificationTemplateId" when calling putOutboundFilespecificationtemplate';if(i==null)throw'Missing the required parameter "body" when calling putOutboundFilespecificationtemplate';return this.apiClient.callApi("/api/v2/outbound/filespecificationtemplates/{fileSpecificationTemplateId}","PUT",{fileSpecificationTemplateId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putOutboundImporttemplate(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "importTemplateId" when calling putOutboundImporttemplate';if(i==null)throw'Missing the required parameter "body" when calling putOutboundImporttemplate';return this.apiClient.callApi("/api/v2/outbound/importtemplates/{importTemplateId}","PUT",{importTemplateId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putOutboundMessagingcampaign(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "messagingCampaignId" when calling putOutboundMessagingcampaign';if(i==null)throw'Missing the required parameter "body" when calling putOutboundMessagingcampaign';return this.apiClient.callApi("/api/v2/outbound/messagingcampaigns/{messagingCampaignId}","PUT",{messagingCampaignId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putOutboundRuleset(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "ruleSetId" when calling putOutboundRuleset';if(i==null)throw'Missing the required parameter "body" when calling putOutboundRuleset';return this.apiClient.callApi("/api/v2/outbound/rulesets/{ruleSetId}","PUT",{ruleSetId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putOutboundSchedulesCampaign(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "campaignId" when calling putOutboundSchedulesCampaign';if(i==null)throw'Missing the required parameter "body" when calling putOutboundSchedulesCampaign';return this.apiClient.callApi("/api/v2/outbound/schedules/campaigns/{campaignId}","PUT",{campaignId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putOutboundSchedulesEmailcampaign(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "emailCampaignId" when calling putOutboundSchedulesEmailcampaign';if(i==null)throw'Missing the required parameter "body" when calling putOutboundSchedulesEmailcampaign';return this.apiClient.callApi("/api/v2/outbound/schedules/emailcampaigns/{emailCampaignId}","PUT",{emailCampaignId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putOutboundSchedulesMessagingcampaign(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "messagingCampaignId" when calling putOutboundSchedulesMessagingcampaign';if(i==null)throw'Missing the required parameter "body" when calling putOutboundSchedulesMessagingcampaign';return this.apiClient.callApi("/api/v2/outbound/schedules/messagingcampaigns/{messagingCampaignId}","PUT",{messagingCampaignId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putOutboundSchedulesSequence(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "sequenceId" when calling putOutboundSchedulesSequence';if(i==null)throw'Missing the required parameter "body" when calling putOutboundSchedulesSequence';return this.apiClient.callApi("/api/v2/outbound/schedules/sequences/{sequenceId}","PUT",{sequenceId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putOutboundSchedulesWhatsappcampaign(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "whatsAppCampaignId" when calling putOutboundSchedulesWhatsappcampaign';if(i==null)throw'Missing the required parameter "body" when calling putOutboundSchedulesWhatsappcampaign';return this.apiClient.callApi("/api/v2/outbound/schedules/whatsappcampaigns/{whatsAppCampaignId}","PUT",{whatsAppCampaignId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putOutboundSequence(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "sequenceId" when calling putOutboundSequence';if(i==null)throw'Missing the required parameter "body" when calling putOutboundSequence';return this.apiClient.callApi("/api/v2/outbound/sequences/{sequenceId}","PUT",{sequenceId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putOutboundWrapupcodemappings(e,i){if(i=i||{},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"],i.customHeaders)}},Ob=class{constructor(e){this.apiClient=e||q.instance}deletePresenceDefinition0(e,i){if(i=i||{},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"],i.customHeaders)}deletePresenceSource(e,i){if(i=i||{},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"],i.customHeaders)}deletePresencedefinition(e,i){if(i=i||{},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"],i.customHeaders)}getPresenceDefinition0(e,i){if(i=i||{},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:i.localeCode},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getPresencedefinition(e,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "presenceId" when calling getPresencedefinition';return this.apiClient.callApi("/api/v2/presencedefinitions/{presenceId}","GET",{presenceId:e},{localeCode:i.localeCode},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling getUserPresence';if(i==null||i==="")throw'Missing the required parameter "sourceId" when calling getUserPresence';return this.apiClient.callApi("/api/v2/users/{userId}/presences/{sourceId}","GET",{userId:e,sourceId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getUserPresencesPurecloud(e,i){if(i=i||{},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"],i.customHeaders)}getUsersPresenceBulk(e,i){if(i=i||{},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(i.id,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "userId" when calling patchUserPresence';if(i==null||i==="")throw'Missing the required parameter "sourceId" when calling patchUserPresence';if(n==null)throw'Missing the required parameter "body" when calling patchUserPresence';return this.apiClient.callApi("/api/v2/users/{userId}/presences/{sourceId}","PATCH",{userId:e,sourceId:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchUserPresencesPurecloud(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling patchUserPresencesPurecloud';if(i==null)throw'Missing the required parameter "body" when calling patchUserPresencesPurecloud';return this.apiClient.callApi("/api/v2/users/{userId}/presences/purecloud","PATCH",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postPresenceDefinitions0(e,i){if(i=i||{},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"],i.customHeaders)}postPresenceSources(e,i){if(i=i||{},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"],i.customHeaders)}postPresencedefinitions(e,i){if(i=i||{},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"],i.customHeaders)}putPresenceDefinition0(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "definitionId" when calling putPresenceDefinition0';if(i==null)throw'Missing the required parameter "body" when calling putPresenceDefinition0';return this.apiClient.callApi("/api/v2/presence/definitions/{definitionId}","PUT",{definitionId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putPresenceSettings(e,i){if(i=i||{},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"],i.customHeaders)}putPresenceSource(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "sourceId" when calling putPresenceSource';if(i==null)throw'Missing the required parameter "body" when calling putPresenceSource';return this.apiClient.callApi("/api/v2/presence/sources/{sourceId}","PUT",{sourceId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putPresenceUserPrimarysource(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling putPresenceUserPrimarysource';if(i==null)throw'Missing the required parameter "body" when calling putPresenceUserPrimarysource';return this.apiClient.callApi("/api/v2/presence/users/{userId}/primarysource","PUT",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putPresencedefinition(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "presenceId" when calling putPresencedefinition';if(i==null)throw'Missing the required parameter "body" when calling putPresencedefinition';return this.apiClient.callApi("/api/v2/presencedefinitions/{presenceId}","PUT",{presenceId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putUsersPresencesBulk(e,i){if(i=i||{},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"],i.customHeaders)}},xb=class{constructor(e){this.apiClient=e||q.instance}deleteProcessautomationScheduledtrigger(e,i){if(i=i||{},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"],i.customHeaders)}deleteProcessautomationTrigger(e,i){if(i=i||{},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"],i.customHeaders)}getProcessautomationScheduledtrigger(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}postProcessautomationTriggerTest(e,i){if(i=i||{},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},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postProcessautomationTriggers(e,i){if(i=i||{},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"],i.customHeaders)}postProcessautomationTriggersTopicTest(e,i){if(i=i||{},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},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}putProcessautomationScheduledtrigger(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "scheduledTriggerId" when calling putProcessautomationScheduledtrigger';if(i==null)throw'Missing the required parameter "body" when calling putProcessautomationScheduledtrigger';return this.apiClient.callApi("/api/v2/processautomation/scheduledtriggers/{scheduledTriggerId}","PUT",{scheduledTriggerId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putProcessautomationTrigger(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "triggerId" when calling putProcessautomationTrigger';if(i==null)throw'Missing the required parameter "body" when calling putProcessautomationTrigger';return this.apiClient.callApi("/api/v2/processautomation/triggers/{triggerId}","PUT",{triggerId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}},Tb=class{constructor(e){this.apiClient=e||q.instance}deleteAnalyticsEvaluationsAggregatesJob(e,i){if(i=i||{},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"],i.customHeaders)}deleteAnalyticsSurveysAggregatesJob(e,i){if(i=i||{},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"],i.customHeaders)}deleteQualityCalibration(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "calibrationId" when calling deleteQualityCalibration';if(i==null)throw'Missing the required parameter "calibratorId" when calling deleteQualityCalibration';return this.apiClient.callApi("/api/v2/quality/calibrations/{calibrationId}","DELETE",{calibrationId:e},{calibratorId:i},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteQualityConversationEvaluation(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling deleteQualityConversationEvaluation';if(i==null||i==="")throw'Missing the required parameter "evaluationId" when calling deleteQualityConversationEvaluation';return this.apiClient.callApi("/api/v2/quality/conversations/{conversationId}/evaluations/{evaluationId}","DELETE",{conversationId:e,evaluationId:i},{expand:n.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteQualityForm(e,i){if(i=i||{},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"],i.customHeaders)}deleteQualityFormsEvaluation(e,i){if(i=i||{},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"],i.customHeaders)}deleteQualityFormsSurvey(e,i){if(i=i||{},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"],i.customHeaders)}deleteQualityProgramAgentscoringrule(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "programId" when calling deleteQualityProgramAgentscoringrule';if(i==null||i==="")throw'Missing the required parameter "ruleId" when calling deleteQualityProgramAgentscoringrule';return this.apiClient.callApi("/api/v2/quality/programs/{programId}/agentscoringrules/{ruleId}","DELETE",{programId:e,ruleId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getAnalyticsEvaluationsAggregatesJob(e,i){if(i=i||{},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"],i.customHeaders)}getAnalyticsEvaluationsAggregatesJobResults(e,i){if(i=i||{},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:i.cursor},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getAnalyticsSurveysAggregatesJob(e,i){if(i=i||{},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"],i.customHeaders)}getAnalyticsSurveysAggregatesJobResults(e,i){if(i=i||{},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:i.cursor},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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:i.calibratorId,conversationId:i.conversationId},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getQualityCalibrations(e,i){if(i=i||{},e==null)throw'Missing the required parameter "calibratorId" when calling getQualityCalibrations';return this.apiClient.callApi("/api/v2/quality/calibrations","GET",{},{pageSize:i.pageSize,pageNumber:i.pageNumber,sortBy:i.sortBy,expand:this.apiClient.buildCollectionParam(i.expand,"multi"),nextPage:i.nextPage,previousPage:i.previousPage,conversationId:i.conversationId,startTime:i.startTime,endTime:i.endTime,calibratorId:e},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getQualityConversationEvaluation(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getQualityConversationEvaluation';if(i==null||i==="")throw'Missing the required parameter "evaluationId" when calling getQualityConversationEvaluation';return this.apiClient.callApi("/api/v2/quality/conversations/{conversationId}/evaluations/{evaluationId}","GET",{conversationId:e,evaluationId:i},{expand:n.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getQualityConversationSurveys(e,i){if(i=i||{},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"],i.customHeaders)}getQualityConversationsAuditsQueryTransactionId(e,i){if(i=i||{},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"],i.customHeaders)}getQualityConversationsAuditsQueryTransactionIdResults(e,i){if(i=i||{},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:i.cursor,pageSize:i.pageSize,expand:this.apiClient.buildCollectionParam(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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"],i.customHeaders)}getQualityFormVersions(e,i){if(i=i||{},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:i.pageSize,pageNumber:i.pageNumber,sortOrder:i.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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"],i.customHeaders)}getQualityFormsEvaluationVersions(e,i){if(i=i||{},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:i.pageSize,pageNumber:i.pageNumber,sortOrder:i.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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:i.includeLatestVersionFormName},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getQualityFormsEvaluationsBulkContexts(e,i){if(i=i||{},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"],i.customHeaders)}getQualityFormsSurvey(e,i){if(i=i||{},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"],i.customHeaders)}getQualityFormsSurveyVersions(e,i){if(i=i||{},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:i.pageSize,pageNumber:i.pageNumber},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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"],i.customHeaders)}getQualityFormsSurveysBulkContexts(e,i){if(i=i||{},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:i.published},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getQualityProgramAgentscoringrule(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "programId" when calling getQualityProgramAgentscoringrule';if(i==null||i==="")throw'Missing the required parameter "ruleId" when calling getQualityProgramAgentscoringrule';return this.apiClient.callApi("/api/v2/quality/programs/{programId}/agentscoringrules/{ruleId}","GET",{programId:e,ruleId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getQualityProgramAgentscoringrules(e,i){if(i=i||{},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"],i.customHeaders)}getQualityPublishedform(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getQualityPublishedformsEvaluations(e){return e=e||{},this.apiClient.callApi("/api/v2/quality/publishedforms/evaluations","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,name:e.name,onlyLatestPerContext:e.onlyLatestPerContext},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getQualityPublishedformsSurvey(e,i){if(i=i||{},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"],i.customHeaders)}getQualityPublishedformsSurveys(e){return e=e||{},this.apiClient.callApi("/api/v2/quality/publishedforms/surveys","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,name:e.name,onlyLatestEnabledPerContext:e.onlyLatestEnabledPerContext},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getQualitySurvey(e,i){if(i=i||{},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"],i.customHeaders)}getQualitySurveysScorable(e,i){if(i=i||{},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"],i.customHeaders)}patchQualityFormsSurvey(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "formId" when calling patchQualityFormsSurvey';if(i==null)throw'Missing the required parameter "body" when calling patchQualityFormsSurvey';return this.apiClient.callApi("/api/v2/quality/forms/surveys/{formId}","PATCH",{formId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postAnalyticsEvaluationsAggregatesJobs(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsEvaluationsAggregatesQuery(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsSurveysAggregatesJobs(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsSurveysAggregatesQuery(e,i){if(i=i||{},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"],i.customHeaders)}postQualityCalibrations(e,i){if(i=i||{},e==null)throw'Missing the required parameter "body" when calling postQualityCalibrations';return this.apiClient.callApi("/api/v2/quality/calibrations","POST",{},{expand:i.expand},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postQualityConversationEvaluations(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postQualityConversationEvaluations';if(i==null)throw'Missing the required parameter "body" when calling postQualityConversationEvaluations';return this.apiClient.callApi("/api/v2/quality/conversations/{conversationId}/evaluations","POST",{conversationId:e},{expand:n.expand},{"Idempotency-Key":n.idempotencyKey},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postQualityConversationsAuditsQuery(e,i){if(i=i||{},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"],i.customHeaders)}postQualityEvaluationsAggregatesQueryMe(e,i){if(i=i||{},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"],i.customHeaders)}postQualityEvaluationsScoring(e,i){if(i=i||{},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"],i.customHeaders)}postQualityEvaluationsSearch(e,i){if(i=i||{},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"],i.customHeaders)}postQualityForms(e,i){if(i=i||{},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"],i.customHeaders)}postQualityFormsEvaluations(e,i){if(i=i||{},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"],i.customHeaders)}postQualityFormsSurveys(e,i){if(i=i||{},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"],i.customHeaders)}postQualityProgramAgentscoringrules(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "programId" when calling postQualityProgramAgentscoringrules';if(i==null)throw'Missing the required parameter "body" when calling postQualityProgramAgentscoringrules';return this.apiClient.callApi("/api/v2/quality/programs/{programId}/agentscoringrules","POST",{programId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postQualityPublishedforms(e,i){if(i=i||{},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"],i.customHeaders)}postQualityPublishedformsEvaluations(e,i){if(i=i||{},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"],i.customHeaders)}postQualityPublishedformsSurveys(e,i){if(i=i||{},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"],i.customHeaders)}postQualitySurveys(e,i){if(i=i||{},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"],i.customHeaders)}postQualitySurveysScoring(e,i){if(i=i||{},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"],i.customHeaders)}putQualityCalibration(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "calibrationId" when calling putQualityCalibration';if(i==null)throw'Missing the required parameter "body" when calling putQualityCalibration';return this.apiClient.callApi("/api/v2/quality/calibrations/{calibrationId}","PUT",{calibrationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putQualityConversationEvaluation(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling putQualityConversationEvaluation';if(i==null||i==="")throw'Missing the required parameter "evaluationId" when calling putQualityConversationEvaluation';if(n==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:i},{expand:a.expand},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}putQualityForm(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "formId" when calling putQualityForm';if(i==null)throw'Missing the required parameter "body" when calling putQualityForm';return this.apiClient.callApi("/api/v2/quality/forms/{formId}","PUT",{formId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putQualityFormsEvaluation(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "formId" when calling putQualityFormsEvaluation';if(i==null)throw'Missing the required parameter "body" when calling putQualityFormsEvaluation';return this.apiClient.callApi("/api/v2/quality/forms/evaluations/{formId}","PUT",{formId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putQualityFormsEvaluationAiscoringSettings(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "formId" when calling putQualityFormsEvaluationAiscoringSettings';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putQualityFormsSurvey(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "formId" when calling putQualityFormsSurvey';if(i==null)throw'Missing the required parameter "body" when calling putQualityFormsSurvey';return this.apiClient.callApi("/api/v2/quality/forms/surveys/{formId}","PUT",{formId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putQualityProgramAgentscoringrule(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "programId" when calling putQualityProgramAgentscoringrule';if(i==null||i==="")throw'Missing the required parameter "ruleId" when calling putQualityProgramAgentscoringrule';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}putQualitySurveysScorable(e,i,n){if(n=n||{},e==null)throw'Missing the required parameter "customerSurveyUrl" when calling putQualitySurveysScorable';if(i==null)throw'Missing the required parameter "body" when calling putQualitySurveysScorable';return this.apiClient.callApi("/api/v2/quality/surveys/scorable","PUT",{},{customerSurveyUrl:e},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}},Mb=class{constructor(e){this.apiClient=e||q.instance}deleteConversationRecordingAnnotation(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling deleteConversationRecordingAnnotation';if(i==null||i==="")throw'Missing the required parameter "recordingId" when calling deleteConversationRecordingAnnotation';if(n==null||n==="")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:i,annotationId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}deleteOrphanrecording(e,i){if(i=i||{},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"],i.customHeaders)}deleteRecordingCrossplatformMediaretentionpolicies(e,i){if(i=i||{},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"],i.customHeaders)}deleteRecordingCrossplatformMediaretentionpolicy(e,i){if(i=i||{},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"],i.customHeaders)}deleteRecordingJob(e,i){if(i=i||{},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"],i.customHeaders)}deleteRecordingMediaretentionpolicies(e,i){if(i=i||{},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"],i.customHeaders)}deleteRecordingMediaretentionpolicy(e,i){if(i=i||{},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"],i.customHeaders)}getConversationRecording(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationRecording';if(i==null||i==="")throw'Missing the required parameter "recordingId" when calling getConversationRecording';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/recordings/{recordingId}","GET",{conversationId:e,recordingId:i},{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)}getConversationRecordingAnnotation(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationRecordingAnnotation';if(i==null||i==="")throw'Missing the required parameter "recordingId" when calling getConversationRecordingAnnotation';if(n==null||n==="")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:i,annotationId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getConversationRecordingAnnotations(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationRecordingAnnotations';if(i==null||i==="")throw'Missing the required parameter "recordingId" when calling getConversationRecordingAnnotations';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/recordings/{recordingId}/annotations","GET",{conversationId:e,recordingId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getConversationRecordingmetadata(e,i){if(i=i||{},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"],i.customHeaders)}getConversationRecordingmetadataRecordingId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationRecordingmetadataRecordingId';if(i==null||i==="")throw'Missing the required parameter "recordingId" when calling getConversationRecordingmetadataRecordingId';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/recordingmetadata/{recordingId}","GET",{conversationId:e,recordingId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getConversationRecordings(e,i){if(i=i||{},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:i.maxWaitMs,formatId:i.formatId,mediaFormats:this.apiClient.buildCollectionParam(i.mediaFormats,"multi"),locale:i.locale,includePauseAnnotationsForScreenRecordings:i.includePauseAnnotationsForScreenRecordings},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getOrphanrecording(e,i){if(i=i||{},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"],i.customHeaders)}getOrphanrecordingMedia(e,i){if(i=i||{},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: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)}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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getRecordingJob(e,i){if(i=i||{},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"],i.customHeaders)}getRecordingJobFailedrecordings(e,i){if(i=i||{},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:i.pageSize,pageNumber:i.pageNumber,includeTotal:i.includeTotal,cursor:i.cursor},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getRecordingsRetentionQuery(e,i){if(i=i||{},e==null)throw'Missing the required parameter "retentionThresholdDays" when calling getRecordingsRetentionQuery';return this.apiClient.callApi("/api/v2/recordings/retention/query","GET",{},{retentionThresholdDays:e,cursor:i.cursor,pageSize:i.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "policyId" when calling patchRecordingCrossplatformMediaretentionpolicy';if(i==null)throw'Missing the required parameter "body" when calling patchRecordingCrossplatformMediaretentionpolicy';return this.apiClient.callApi("/api/v2/recording/crossplatform/mediaretentionpolicies/{policyId}","PATCH",{policyId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchRecordingMediaretentionpolicy(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "policyId" when calling patchRecordingMediaretentionpolicy';if(i==null)throw'Missing the required parameter "body" when calling patchRecordingMediaretentionpolicy';return this.apiClient.callApi("/api/v2/recording/mediaretentionpolicies/{policyId}","PATCH",{policyId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postConversationRecordingAnnotations(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationRecordingAnnotations';if(i==null||i==="")throw'Missing the required parameter "recordingId" when calling postConversationRecordingAnnotations';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postRecordingBatchrequests(e,i){if(i=i||{},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"],i.customHeaders)}postRecordingCrossplatformMediaretentionpolicies(e,i){if(i=i||{},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"],i.customHeaders)}postRecordingJobs(e,i){if(i=i||{},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"],i.customHeaders)}postRecordingKeyconfigurations(e,i){if(i=i||{},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"],i.customHeaders)}postRecordingKeyconfigurationsValidate(e,i){if(i=i||{},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"],i.customHeaders)}postRecordingLocalkeys(e,i){if(i=i||{},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"],i.customHeaders)}postRecordingMediaretentionpolicies(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}postRecordingsDeletionprotection(e,i){if(i=i||{},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"],i.customHeaders)}postRecordingsScreensessionsAcknowledge(e,i){if(i=i||{},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"],i.customHeaders)}postRecordingsScreensessionsMetadata(e,i){if(i=i||{},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"],i.customHeaders)}putConversationRecording(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling putConversationRecording';if(i==null||i==="")throw'Missing the required parameter "recordingId" when calling putConversationRecording';if(n==null)throw'Missing the required parameter "body" when calling putConversationRecording';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/recordings/{recordingId}","PUT",{conversationId:e,recordingId:i},{clearExport:a.clearExport},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}putConversationRecordingAnnotation(e,i,n,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling putConversationRecordingAnnotation';if(i==null||i==="")throw'Missing the required parameter "recordingId" when calling putConversationRecordingAnnotation';if(n==null||n==="")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:i,annotationId:n},{},{},{},a,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}putOrphanrecording(e,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "orphanId" when calling putOrphanrecording';return this.apiClient.callApi("/api/v2/orphanrecordings/{orphanId}","PUT",{orphanId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}putRecordingCrossplatformMediaretentionpolicy(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "policyId" when calling putRecordingCrossplatformMediaretentionpolicy';if(i==null)throw'Missing the required parameter "body" when calling putRecordingCrossplatformMediaretentionpolicy';return this.apiClient.callApi("/api/v2/recording/crossplatform/mediaretentionpolicies/{policyId}","PUT",{policyId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putRecordingJob(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "jobId" when calling putRecordingJob';if(i==null)throw'Missing the required parameter "body" when calling putRecordingJob';return this.apiClient.callApi("/api/v2/recording/jobs/{jobId}","PUT",{jobId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putRecordingKeyconfiguration(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "keyConfigurationId" when calling putRecordingKeyconfiguration';if(i==null)throw'Missing the required parameter "body" when calling putRecordingKeyconfiguration';return this.apiClient.callApi("/api/v2/recording/keyconfigurations/{keyConfigurationId}","PUT",{keyConfigurationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putRecordingMediaretentionpolicy(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "policyId" when calling putRecordingMediaretentionpolicy';if(i==null)throw'Missing the required parameter "body" when calling putRecordingMediaretentionpolicy';return this.apiClient.callApi("/api/v2/recording/mediaretentionpolicies/{policyId}","PUT",{policyId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putRecordingRecordingkeysRotationschedule(e,i){if(i=i||{},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"],i.customHeaders)}putRecordingSettings(e,i){if(i=i||{},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"],i.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)}},Eb=class{constructor(e){this.apiClient=e||q.instance}deleteResponsemanagementLibrary(e,i){if(i=i||{},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"],i.customHeaders)}deleteResponsemanagementResponse(e,i){if(i=i||{},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"],i.customHeaders)}deleteResponsemanagementResponseasset(e,i){if(i=i||{},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"],i.customHeaders)}getResponsemanagementLibraries(e){return e=e||{},this.apiClient.callApi("/api/v2/responsemanagement/libraries","GET",{},{pageNumber:e.pageNumber,pageSize:e.pageSize,messagingTemplateFilter:e.messagingTemplateFilter,libraryPrefix:e.libraryPrefix},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getResponsemanagementLibrary(e,i){if(i=i||{},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"],i.customHeaders)}getResponsemanagementResponse(e,i){if(i=i||{},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:i.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getResponsemanagementResponseasset(e,i){if(i=i||{},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"],i.customHeaders)}getResponsemanagementResponseassetsStatusStatusId(e,i){if(i=i||{},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"],i.customHeaders)}getResponsemanagementResponses(e,i){if(i=i||{},e==null)throw'Missing the required parameter "libraryId" when calling getResponsemanagementResponses';return this.apiClient.callApi("/api/v2/responsemanagement/responses","GET",{},{libraryId:e,pageNumber:i.pageNumber,pageSize:i.pageSize,expand:i.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postResponsemanagementLibraries(e,i){if(i=i||{},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"],i.customHeaders)}postResponsemanagementLibrariesBulk(e,i){if(i=i||{},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"],i.customHeaders)}postResponsemanagementLibrariesQuery(e,i){if(i=i||{},e==null)throw'Missing the required parameter "body" when calling postResponsemanagementLibrariesQuery';return this.apiClient.callApi("/api/v2/responsemanagement/libraries/query","POST",{},{pageNumber:i.pageNumber,pageSize:i.pageSize},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postResponsemanagementResponseassetsBulk(e,i){if(i=i||{},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"],i.customHeaders)}postResponsemanagementResponseassetsSearch(e,i){if(i=i||{},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(i.expand,"multi")},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postResponsemanagementResponseassetsUploads(e,i){if(i=i||{},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"],i.customHeaders)}postResponsemanagementResponses(e,i){if(i=i||{},e==null)throw'Missing the required parameter "body" when calling postResponsemanagementResponses';return this.apiClient.callApi("/api/v2/responsemanagement/responses","POST",{},{expand:i.expand},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postResponsemanagementResponsesQuery(e,i){if(i=i||{},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"],i.customHeaders)}putResponsemanagementLibrary(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "libraryId" when calling putResponsemanagementLibrary';if(i==null)throw'Missing the required parameter "body" when calling putResponsemanagementLibrary';return this.apiClient.callApi("/api/v2/responsemanagement/libraries/{libraryId}","PUT",{libraryId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putResponsemanagementResponse(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "responseId" when calling putResponsemanagementResponse';if(i==null)throw'Missing the required parameter "body" when calling putResponsemanagementResponse';return this.apiClient.callApi("/api/v2/responsemanagement/responses/{responseId}","PUT",{responseId:e},{expand:n.expand},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putResponsemanagementResponseasset(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "responseAssetId" when calling putResponsemanagementResponseasset';if(i==null)throw'Missing the required parameter "body" when calling putResponsemanagementResponseasset';return this.apiClient.callApi("/api/v2/responsemanagement/responseassets/{responseAssetId}","PUT",{responseAssetId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}},kb=class{constructor(e){this.apiClient=e||q.instance}deleteRoutingAssessment(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}deleteRoutingEmailDomainRoute(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "domainName" when calling deleteRoutingEmailDomainRoute';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteRoutingEmailOutboundDomain(e,i){if(i=i||{},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"],i.customHeaders)}deleteRoutingLanguage(e,i){if(i=i||{},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"],i.customHeaders)}deleteRoutingPredictor(e,i){if(i=i||{},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"],i.customHeaders)}deleteRoutingPredictorsKeyperformanceindicator(e,i){if(i=i||{},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"],i.customHeaders)}deleteRoutingQueue(e,i){if(i=i||{},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:i.forceDelete},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}deleteRoutingQueueMember(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "queueId" when calling deleteRoutingQueueMember';if(i==null||i==="")throw'Missing the required parameter "memberId" when calling deleteRoutingQueueMember';return this.apiClient.callApi("/api/v2/routing/queues/{queueId}/members/{memberId}","DELETE",{queueId:e,memberId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteRoutingQueueUser(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "queueId" when calling deleteRoutingQueueUser';if(i==null||i==="")throw'Missing the required parameter "memberId" when calling deleteRoutingQueueUser';return this.apiClient.callApi("/api/v2/routing/queues/{queueId}/users/{memberId}","DELETE",{queueId:e,memberId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteRoutingQueueWrapupcode(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "queueId" when calling deleteRoutingQueueWrapupcode';if(i==null||i==="")throw'Missing the required parameter "codeId" when calling deleteRoutingQueueWrapupcode';return this.apiClient.callApi("/api/v2/routing/queues/{queueId}/wrapupcodes/{codeId}","DELETE",{queueId:e,codeId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.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,i){if(i=i||{},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"],i.customHeaders)}deleteRoutingSkillgroup(e,i){if(i=i||{},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"],i.customHeaders)}deleteRoutingSmsAddress(e,i){if(i=i||{},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"],i.customHeaders)}deleteRoutingSmsPhonenumber(e,i){if(i=i||{},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"],i.customHeaders)}deleteRoutingUserDirectroutingbackupSettings(e,i){if(i=i||{},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"],i.customHeaders)}deleteRoutingUserUtilization(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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:i.forceDelete},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}deleteRoutingUtilizationTag(e,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "tagId" when calling deleteRoutingUtilizationTag';return this.apiClient.callApi("/api/v2/routing/utilization/tags/{tagId}","DELETE",{tagId:e},{forceDelete:i.forceDelete},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}deleteRoutingWrapupcode(e,i){if(i=i||{},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"],i.customHeaders)}deleteUserRoutinglanguage(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling deleteUserRoutinglanguage';if(i==null||i==="")throw'Missing the required parameter "languageId" when calling deleteUserRoutinglanguage';return this.apiClient.callApi("/api/v2/users/{userId}/routinglanguages/{languageId}","DELETE",{userId:e,languageId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteUserRoutingskill(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling deleteUserRoutingskill';if(i==null||i==="")throw'Missing the required parameter "skillId" when calling deleteUserRoutingskill';return this.apiClient.callApi("/api/v2/users/{userId}/routingskills/{skillId}","DELETE",{userId:e,skillId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getRoutingAssessment(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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:i.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getRoutingEmailDomainDkim(e,i){if(i=i||{},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"],i.customHeaders)}getRoutingEmailDomainMailfrom(e,i){if(i=i||{},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"],i.customHeaders)}getRoutingEmailDomainRoute(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "domainName" when calling getRoutingEmailDomainRoute';if(i==null||i==="")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:i},{expand:this.apiClient.buildCollectionParam(n.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getRoutingEmailDomainRouteIdentityresolution(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "domainName" when calling getRoutingEmailDomainRouteIdentityresolution';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getRoutingEmailDomainRoutes(e,i){if(i=i||{},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:i.pageSize,pageNumber:i.pageNumber,pattern:i.pattern,expand:this.apiClient.buildCollectionParam(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getRoutingEmailDomainVerification(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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:i.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getRoutingEmailOutboundDomainActivation(e,i){if(i=i||{},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"],i.customHeaders)}getRoutingEmailOutboundDomains(e){return e=e||{},this.apiClient.callApi("/api/v2/routing/email/outbound/domains","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,filter:e.filter,expand:e.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getRoutingEmailSetup(e){return e=e||{},this.apiClient.callApi("/api/v2/routing/email/setup","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getRoutingLanguage(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getRoutingPredictorModelFeatures(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "predictorId" when calling getRoutingPredictorModelFeatures';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getRoutingPredictorModels(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getRoutingQueueAssistant(e,i){if(i=i||{},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(i.expand,"multi"),languageVariation:i.languageVariation,fallbackToPrimaryAssistant:i.fallbackToPrimaryAssistant},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getRoutingQueueComparisonperiod(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "queueId" when calling getRoutingQueueComparisonperiod';if(i==null||i==="")throw'Missing the required parameter "comparisonPeriodId" when calling getRoutingQueueComparisonperiod';return this.apiClient.callApi("/api/v2/routing/queues/{queueId}/comparisonperiods/{comparisonPeriodId}","GET",{queueId:e,comparisonPeriodId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getRoutingQueueComparisonperiods(e,i){if(i=i||{},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"],i.customHeaders)}getRoutingQueueEstimatedwaittime(e,i){if(i=i||{},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:i.conversationId},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getRoutingQueueIdentityresolution(e,i){if(i=i||{},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"],i.customHeaders)}getRoutingQueueMediatypeEstimatedwaittime(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "queueId" when calling getRoutingQueueMediatypeEstimatedwaittime';if(i==null||i==="")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:i},{labelId:n.labelId},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getRoutingQueueMembers(e,i){if(i=i||{},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:i.pageNumber,pageSize:i.pageSize,sortOrder:i.sortOrder,expand:this.apiClient.buildCollectionParam(i.expand,"multi"),name:i.name,profileSkills:this.apiClient.buildCollectionParam(i.profileSkills,"multi"),skills:this.apiClient.buildCollectionParam(i.skills,"multi"),languages:this.apiClient.buildCollectionParam(i.languages,"multi"),routingStatus:this.apiClient.buildCollectionParam(i.routingStatus,"multi"),presence:this.apiClient.buildCollectionParam(i.presence,"multi"),memberBy:i.memberBy,joined:i.joined},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getRoutingQueueUsers(e,i){if(i=i||{},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:i.pageNumber,pageSize:i.pageSize,sortOrder:i.sortOrder,expand:this.apiClient.buildCollectionParam(i.expand,"multi"),joined:i.joined,name:i.name,profileSkills:this.apiClient.buildCollectionParam(i.profileSkills,"multi"),skills:this.apiClient.buildCollectionParam(i.skills,"multi"),languages:this.apiClient.buildCollectionParam(i.languages,"multi"),routingStatus:this.apiClient.buildCollectionParam(i.routingStatus,"multi"),presence:this.apiClient.buildCollectionParam(i.presence,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getRoutingQueueWrapupcodes(e,i){if(i=i||{},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:i.pageSize,pageNumber:i.pageNumber,name:i.name},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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"],i.customHeaders)}getRoutingSkillgroup(e,i){if(i=i||{},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"],i.customHeaders)}getRoutingSkillgroupMembers(e,i){if(i=i||{},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:i.pageSize,after:i.after,before:i.before,expand:i.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getRoutingSkillgroupMembersDivisions(e,i){if(i=i||{},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:i.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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"],i.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,i,n){if(n=n||{},e==null)throw'Missing the required parameter "countryCode" when calling getRoutingSmsAvailablephonenumbers';if(i==null)throw'Missing the required parameter "phoneNumberType" when calling getRoutingSmsAvailablephonenumbers';return this.apiClient.callApi("/api/v2/routing/sms/availablephonenumbers","GET",{},{countryCode:e,region:n.region,city:n.city,areaCode:n.areaCode,phoneNumberType:i,pattern:n.pattern,addressRequirement:n.addressRequirement},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getRoutingSmsIdentityresolutionPhonenumber(e,i){if(i=i||{},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"],i.customHeaders)}getRoutingSmsPhonenumber(e,i){if(i=i||{},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:i.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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"],i.customHeaders)}getRoutingUserUtilization(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getRoutingUtilizationLabelAgents(e,i){if(i=i||{},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"],i.customHeaders)}getRoutingUtilizationLabels(e){return e=e||{},this.apiClient.callApi("/api/v2/routing/utilization/labels","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,sortOrder:e.sortOrder,name:e.name},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getRoutingUtilizationTag(e,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "tagId" when calling getRoutingUtilizationTag';return this.apiClient.callApi("/api/v2/routing/utilization/tags/{tagId}","GET",{tagId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getRoutingUtilizationTagAgents(e,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "tagId" when calling getRoutingUtilizationTagAgents';return this.apiClient.callApi("/api/v2/routing/utilization/tags/{tagId}/agents","GET",{tagId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getRoutingUtilizationTags(e){return e=e||{},this.apiClient.callApi("/api/v2/routing/utilization/tags","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,sortOrder:e.sortOrder,name:e.name},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getRoutingWrapupcode(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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:i.pageSize,pageNumber:i.pageNumber,joined:i.joined,divisionId:this.apiClient.buildCollectionParam(i.divisionId,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getUserRoutinglanguages(e,i){if(i=i||{},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:i.pageSize,pageNumber:i.pageNumber,sortOrder:i.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getUserRoutingskills(e,i){if(i=i||{},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:i.pageSize,pageNumber:i.pageNumber,sortOrder:i.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getUserSkillgroups(e,i){if(i=i||{},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:i.pageSize,after:i.after,before:i.before},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}patchRoutingConversation(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchRoutingConversation';if(i==null)throw'Missing the required parameter "body" when calling patchRoutingConversation';return this.apiClient.callApi("/api/v2/routing/conversations/{conversationId}","PATCH",{conversationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchRoutingEmailDomain(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "domainId" when calling patchRoutingEmailDomain';if(i==null)throw'Missing the required parameter "body" when calling patchRoutingEmailDomain';return this.apiClient.callApi("/api/v2/routing/email/domains/{domainId}","PATCH",{domainId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchRoutingEmailDomainValidate(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "domainId" when calling patchRoutingEmailDomainValidate';if(i==null)throw'Missing the required parameter "body" when calling patchRoutingEmailDomainValidate';return this.apiClient.callApi("/api/v2/routing/email/domains/{domainId}/validate","PATCH",{domainId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchRoutingEmailOutboundDomain(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "domainId" when calling patchRoutingEmailOutboundDomain';if(i==null)throw'Missing the required parameter "body" when calling patchRoutingEmailOutboundDomain';return this.apiClient.callApi("/api/v2/routing/email/outbound/domains/{domainId}","PATCH",{domainId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchRoutingPredictor(e,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "predictorId" when calling patchRoutingPredictor';return this.apiClient.callApi("/api/v2/routing/predictors/{predictorId}","PATCH",{predictorId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}patchRoutingPredictorsKeyperformanceindicator(e,i){if(i=i||{},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},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}patchRoutingQueueMember(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "queueId" when calling patchRoutingQueueMember';if(i==null||i==="")throw'Missing the required parameter "memberId" when calling patchRoutingQueueMember';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchRoutingQueueMembers(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "queueId" when calling patchRoutingQueueMembers';if(i==null)throw'Missing the required parameter "body" when calling patchRoutingQueueMembers';return this.apiClient.callApi("/api/v2/routing/queues/{queueId}/members","PATCH",{queueId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchRoutingQueueUser(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "queueId" when calling patchRoutingQueueUser';if(i==null||i==="")throw'Missing the required parameter "memberId" when calling patchRoutingQueueUser';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchRoutingQueueUsers(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "queueId" when calling patchRoutingQueueUsers';if(i==null)throw'Missing the required parameter "body" when calling patchRoutingQueueUsers';return this.apiClient.callApi("/api/v2/routing/queues/{queueId}/users","PATCH",{queueId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchRoutingSettingsContactcenter(e,i){if(i=i||{},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"],i.customHeaders)}patchRoutingSettingsTranscription(e,i){if(i=i||{},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"],i.customHeaders)}patchRoutingSkill(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "skillId" when calling patchRoutingSkill';if(i==null)throw'Missing the required parameter "body" when calling patchRoutingSkill';return this.apiClient.callApi("/api/v2/routing/skills/{skillId}","PATCH",{skillId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchRoutingSkillgroup(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "skillGroupId" when calling patchRoutingSkillgroup';if(i==null)throw'Missing the required parameter "body" when calling patchRoutingSkillgroup';return this.apiClient.callApi("/api/v2/routing/skillgroups/{skillGroupId}","PATCH",{skillGroupId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchRoutingSmsPhonenumber(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "phoneNumberId" when calling patchRoutingSmsPhonenumber';if(i==null)throw'Missing the required parameter "body" when calling patchRoutingSmsPhonenumber';return this.apiClient.callApi("/api/v2/routing/sms/phonenumbers/{phoneNumberId}","PATCH",{phoneNumberId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchUserQueue(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "queueId" when calling patchUserQueue';if(i==null||i==="")throw'Missing the required parameter "userId" when calling patchUserQueue';if(n==null)throw'Missing the required parameter "body" when calling patchUserQueue';return this.apiClient.callApi("/api/v2/users/{userId}/queues/{queueId}","PATCH",{queueId:e,userId:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchUserQueues(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling patchUserQueues';if(i==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(n.divisionId,"multi")},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchUserRoutinglanguage(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "userId" when calling patchUserRoutinglanguage';if(i==null||i==="")throw'Missing the required parameter "languageId" when calling patchUserRoutinglanguage';if(n==null)throw'Missing the required parameter "body" when calling patchUserRoutinglanguage';return this.apiClient.callApi("/api/v2/users/{userId}/routinglanguages/{languageId}","PATCH",{userId:e,languageId:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchUserRoutinglanguagesBulk(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling patchUserRoutinglanguagesBulk';if(i==null)throw'Missing the required parameter "body" when calling patchUserRoutinglanguagesBulk';return this.apiClient.callApi("/api/v2/users/{userId}/routinglanguages/bulk","PATCH",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchUserRoutingskillsBulk(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling patchUserRoutingskillsBulk';if(i==null)throw'Missing the required parameter "body" when calling patchUserRoutingskillsBulk';return this.apiClient.callApi("/api/v2/users/{userId}/routingskills/bulk","PATCH",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postAnalyticsQueuesObservationsQuery(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsRoutingActivityQuery(e,i){if(i=i||{},e==null)throw'Missing the required parameter "body" when calling postAnalyticsRoutingActivityQuery';return this.apiClient.callApi("/api/v2/analytics/routing/activity/query","POST",{},{pageSize:i.pageSize,pageNumber:i.pageNumber},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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"],i.customHeaders)}postRoutingEmailDomainMailfrom(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "domainId" when calling postRoutingEmailDomainMailfrom';if(i==null)throw'Missing the required parameter "body" when calling postRoutingEmailDomainMailfrom';return this.apiClient.callApi("/api/v2/routing/email/domains/{domainId}/mailfrom","POST",{domainId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postRoutingEmailDomainRoutes(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "domainName" when calling postRoutingEmailDomainRoutes';if(i==null)throw'Missing the required parameter "body" when calling postRoutingEmailDomainRoutes';return this.apiClient.callApi("/api/v2/routing/email/domains/{domainName}/routes","POST",{domainName:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postRoutingEmailDomainTestconnection(e,i){if(i=i||{},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},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postRoutingEmailDomainVerification(e,i){if(i=i||{},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"],i.customHeaders)}postRoutingEmailDomains(e,i){if(i=i||{},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"],i.customHeaders)}postRoutingEmailOutboundDomainTestconnection(e,i){if(i=i||{},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},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postRoutingEmailOutboundDomains(e,i){if(i=i||{},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"],i.customHeaders)}postRoutingEmailOutboundDomainsSimulated(e,i){if(i=i||{},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"],i.customHeaders)}postRoutingLanguages(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}postRoutingQueueMembers(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "queueId" when calling postRoutingQueueMembers';if(i==null)throw'Missing the required parameter "body" when calling postRoutingQueueMembers';return this.apiClient.callApi("/api/v2/routing/queues/{queueId}/members","POST",{queueId:e},{delete:n._delete},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postRoutingQueueUsers(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "queueId" when calling postRoutingQueueUsers';if(i==null)throw'Missing the required parameter "body" when calling postRoutingQueueUsers';return this.apiClient.callApi("/api/v2/routing/queues/{queueId}/users","POST",{queueId:e},{delete:n._delete},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postRoutingQueueWrapupcodes(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "queueId" when calling postRoutingQueueWrapupcodes';if(i==null)throw'Missing the required parameter "body" when calling postRoutingQueueWrapupcodes';return this.apiClient.callApi("/api/v2/routing/queues/{queueId}/wrapupcodes","POST",{queueId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postRoutingQueues(e,i){if(i=i||{},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"],i.customHeaders)}postRoutingSkillgroupMembersDivisions(e,i){if(i=i||{},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},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postRoutingSkillgroups(e,i){if(i=i||{},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"],i.customHeaders)}postRoutingSkills(e,i){if(i=i||{},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"],i.customHeaders)}postRoutingSmsAddresses(e,i){if(i=i||{},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"],i.customHeaders)}postRoutingSmsPhonenumbers(e,i){if(i=i||{},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"],i.customHeaders)}postRoutingSmsPhonenumbersAlphanumeric(e,i){if(i=i||{},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"],i.customHeaders)}postRoutingSmsPhonenumbersImport(e,i){if(i=i||{},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"],i.customHeaders)}postRoutingUtilizationLabels(e,i){if(i=i||{},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"],i.customHeaders)}postRoutingUtilizationTags(e,i){if(i=i||{},e==null)throw'Missing the required parameter "body" when calling postRoutingUtilizationTags';return this.apiClient.callApi("/api/v2/routing/utilization/tags","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postRoutingWrapupcodes(e,i){if(i=i||{},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"],i.customHeaders)}postUserRoutinglanguages(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling postUserRoutinglanguages';if(i==null)throw'Missing the required parameter "body" when calling postUserRoutinglanguages';return this.apiClient.callApi("/api/v2/users/{userId}/routinglanguages","POST",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postUserRoutingskills(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling postUserRoutingskills';if(i==null)throw'Missing the required parameter "body" when calling postUserRoutingskills';return this.apiClient.callApi("/api/v2/users/{userId}/routingskills","POST",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putRoutingDirectroutingbackupSettingsMe(e,i){if(i=i||{},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"],i.customHeaders)}putRoutingEmailDomainRoute(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "domainName" when calling putRoutingEmailDomainRoute';if(i==null||i==="")throw'Missing the required parameter "routeId" when calling putRoutingEmailDomainRoute';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}putRoutingEmailDomainRouteIdentityresolution(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "domainName" when calling putRoutingEmailDomainRouteIdentityresolution';if(i==null||i==="")throw'Missing the required parameter "routeId" when calling putRoutingEmailDomainRouteIdentityresolution';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}putRoutingEmailOutboundDomainActivation(e,i){if(i=i||{},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"],i.customHeaders)}putRoutingMessageRecipient(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "recipientId" when calling putRoutingMessageRecipient';if(i==null)throw'Missing the required parameter "body" when calling putRoutingMessageRecipient';return this.apiClient.callApi("/api/v2/routing/message/recipients/{recipientId}","PUT",{recipientId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putRoutingQueue(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "queueId" when calling putRoutingQueue';if(i==null)throw'Missing the required parameter "body" when calling putRoutingQueue';return this.apiClient.callApi("/api/v2/routing/queues/{queueId}","PUT",{queueId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putRoutingQueueIdentityresolution(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "queueId" when calling putRoutingQueueIdentityresolution';if(i==null)throw'Missing the required parameter "body" when calling putRoutingQueueIdentityresolution';return this.apiClient.callApi("/api/v2/routing/queues/{queueId}/identityresolution","PUT",{queueId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putRoutingSettings(e,i){if(i=i||{},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"],i.customHeaders)}putRoutingSettingsTranscription(e,i){if(i=i||{},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"],i.customHeaders)}putRoutingSmsIdentityresolutionPhonenumber(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "addressId" when calling putRoutingSmsIdentityresolutionPhonenumber';if(i==null)throw'Missing the required parameter "body" when calling putRoutingSmsIdentityresolutionPhonenumber';return this.apiClient.callApi("/api/v2/routing/sms/identityresolution/phonenumbers/{addressId}","PUT",{addressId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putRoutingUserDirectroutingbackupSettings(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling putRoutingUserDirectroutingbackupSettings';if(i==null)throw'Missing the required parameter "body" when calling putRoutingUserDirectroutingbackupSettings';return this.apiClient.callApi("/api/v2/routing/users/{userId}/directroutingbackup/settings","PUT",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putRoutingUserUtilization(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling putRoutingUserUtilization';if(i==null)throw'Missing the required parameter "body" when calling putRoutingUserUtilization';return this.apiClient.callApi("/api/v2/routing/users/{userId}/utilization","PUT",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putRoutingUtilization(e,i){if(i=i||{},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"],i.customHeaders)}putRoutingUtilizationLabel(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "labelId" when calling putRoutingUtilizationLabel';if(i==null)throw'Missing the required parameter "body" when calling putRoutingUtilizationLabel';return this.apiClient.callApi("/api/v2/routing/utilization/labels/{labelId}","PUT",{labelId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putRoutingWrapupcode(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "codeId" when calling putRoutingWrapupcode';if(i==null)throw'Missing the required parameter "body" when calling putRoutingWrapupcode';return this.apiClient.callApi("/api/v2/routing/wrapupcodes/{codeId}","PUT",{codeId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putUserRoutingskill(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "userId" when calling putUserRoutingskill';if(i==null||i==="")throw'Missing the required parameter "skillId" when calling putUserRoutingskill';if(n==null)throw'Missing the required parameter "body" when calling putUserRoutingskill';return this.apiClient.callApi("/api/v2/users/{userId}/routingskills/{skillId}","PUT",{userId:e,skillId:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}putUserRoutingskillsBulk(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling putUserRoutingskillsBulk';if(i==null)throw'Missing the required parameter "body" when calling putUserRoutingskillsBulk';return this.apiClient.callApi("/api/v2/users/{userId}/routingskills/bulk","PUT",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}},qb=class{constructor(e){this.apiClient=e||q.instance}deleteScimUser(e,i){if(i=i||{},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":i.ifMatch},{},null,["PureCloud OAuth"],["application/json"],["application/scim+json","application/json"],i.customHeaders)}deleteScimV2User(e,i){if(i=i||{},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":i.ifMatch},{},null,["PureCloud OAuth"],["application/json"],["application/scim+json","application/json"],i.customHeaders)}getScimGroup(e,i){if(i=i||{},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(i.attributes,"multi"),excludedAttributes:this.apiClient.buildCollectionParam(i.excludedAttributes,"multi")},{"If-None-Match":i.ifNoneMatch},{},null,["PureCloud OAuth"],["application/json"],["application/scim+json","application/json"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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(i.attributes,"multi"),excludedAttributes:this.apiClient.buildCollectionParam(i.excludedAttributes,"multi")},{"If-None-Match":i.ifNoneMatch},{},null,["PureCloud OAuth"],["application/json"],["application/scim+json","application/json"],i.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,i){if(i=i||{},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(i.attributes,"multi"),excludedAttributes:this.apiClient.buildCollectionParam(i.excludedAttributes,"multi")},{"If-None-Match":i.ifNoneMatch},{},null,["PureCloud OAuth"],["application/json"],["application/scim+json","application/json"],i.customHeaders)}getScimV2Groups(e,i){if(i=i||{},e==null)throw'Missing the required parameter "filter" when calling getScimV2Groups';return this.apiClient.callApi("/api/v2/scim/v2/groups","GET",{},{startIndex:i.startIndex,count:i.count,attributes:this.apiClient.buildCollectionParam(i.attributes,"multi"),excludedAttributes:this.apiClient.buildCollectionParam(i.excludedAttributes,"multi"),filter:e},{},{},null,["PureCloud OAuth"],["application/json"],["application/scim+json","application/json"],i.customHeaders)}getScimV2Resourcetype(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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(i.attributes,"multi"),excludedAttributes:this.apiClient.buildCollectionParam(i.excludedAttributes,"multi")},{"If-None-Match":i.ifNoneMatch},{},null,["PureCloud OAuth"],["application/json"],["application/scim+json","application/json"],i.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,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "groupId" when calling patchScimGroup';if(i==null)throw'Missing the required parameter "body" when calling patchScimGroup';return this.apiClient.callApi("/api/v2/scim/groups/{groupId}","PATCH",{groupId:e},{},{"If-Match":n.ifMatch},{},i,["PureCloud OAuth"],["application/scim+json","application/json"],["application/scim+json","application/json"],n.customHeaders)}patchScimUser(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling patchScimUser';if(i==null)throw'Missing the required parameter "body" when calling patchScimUser';return this.apiClient.callApi("/api/v2/scim/users/{userId}","PATCH",{userId:e},{},{"If-Match":n.ifMatch},{},i,["PureCloud OAuth"],["application/scim+json","application/json"],["application/scim+json","application/json"],n.customHeaders)}patchScimV2Group(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "groupId" when calling patchScimV2Group';if(i==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":n.ifMatch},{},i,["PureCloud OAuth"],["application/scim+json","application/json"],["application/scim+json","application/json"],n.customHeaders)}patchScimV2User(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling patchScimV2User';if(i==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":n.ifMatch},{},i,["PureCloud OAuth"],["application/scim+json","application/json"],["application/scim+json","application/json"],n.customHeaders)}postScimUsers(e,i){if(i=i||{},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"],i.customHeaders)}postScimV2Users(e,i){if(i=i||{},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"],i.customHeaders)}putScimGroup(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "groupId" when calling putScimGroup';if(i==null)throw'Missing the required parameter "body" when calling putScimGroup';return this.apiClient.callApi("/api/v2/scim/groups/{groupId}","PUT",{groupId:e},{},{"If-Match":n.ifMatch},{},i,["PureCloud OAuth"],["application/scim+json","application/json"],["application/scim+json","application/json"],n.customHeaders)}putScimUser(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling putScimUser';if(i==null)throw'Missing the required parameter "body" when calling putScimUser';return this.apiClient.callApi("/api/v2/scim/users/{userId}","PUT",{userId:e},{},{"If-Match":n.ifMatch},{},i,["PureCloud OAuth"],["application/scim+json","application/json"],["application/scim+json","application/json"],n.customHeaders)}putScimV2Group(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "groupId" when calling putScimV2Group';if(i==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":n.ifMatch},{},i,["PureCloud OAuth"],["application/scim+json","application/json"],["application/scim+json","application/json"],n.customHeaders)}putScimV2User(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling putScimV2User';if(i==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":n.ifMatch},{},i,["PureCloud OAuth"],["application/scim+json","application/json"],["application/scim+json","application/json"],n.customHeaders)}},_b=class{constructor(e){this.apiClient=e||q.instance}getScript(e,i){if(i=i||{},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"],i.customHeaders)}getScriptPage(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "scriptId" when calling getScriptPage';if(i==null||i==="")throw'Missing the required parameter "pageId" when calling getScriptPage';return this.apiClient.callApi("/api/v2/scripts/{scriptId}/pages/{pageId}","GET",{scriptId:e,pageId:i},{scriptDataVersion:n.scriptDataVersion},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getScriptPages(e,i){if(i=i||{},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:i.scriptDataVersion},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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:i.input,output:i.output,type:i.type,scriptDataVersion:i.scriptDataVersion},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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:i.scriptDataVersion},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getScriptsPublishedScriptIdPage(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "scriptId" when calling getScriptsPublishedScriptIdPage';if(i==null||i==="")throw'Missing the required parameter "pageId" when calling getScriptsPublishedScriptIdPage';return this.apiClient.callApi("/api/v2/scripts/published/{scriptId}/pages/{pageId}","GET",{scriptId:e,pageId:i},{scriptDataVersion:n.scriptDataVersion},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getScriptsPublishedScriptIdPages(e,i){if(i=i||{},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:i.scriptDataVersion},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getScriptsPublishedScriptIdVariables(e,i){if(i=i||{},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:i.input,output:i.output,type:i.type,scriptDataVersion:i.scriptDataVersion},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getScriptsUploadStatus(e,i){if(i=i||{},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:i.longPoll},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postScriptExport(e,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "scriptId" when calling postScriptExport';return this.apiClient.callApi("/api/v2/scripts/{scriptId}/export","POST",{scriptId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.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)}},Hb=class{constructor(e){this.apiClient=e||q.instance}getDocumentationGknSearch(e,i){if(i=i||{},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"],i.customHeaders)}getDocumentationSearch(e,i){if(i=i||{},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"],i.customHeaders)}getGroupsSearch(e,i){if(i=i||{},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(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getLocationsSearch(e,i){if(i=i||{},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(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getSearch(e,i){if(i=i||{},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(i.expand,"multi"),profile:i.profile},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getSearchSuggest(e,i){if(i=i||{},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(i.expand,"multi"),profile:i.profile},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getTelephonyProvidersEdgesSitesSearch(e,i){if(i=i||{},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(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getUsersSearch(e,i){if(i=i||{},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(i.expand,"multi"),integrationPresenceSource:i.integrationPresenceSource},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getVoicemailSearch(e,i){if(i=i||{},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(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postConversationsCustomattributesSearch(e,i){if(i=i||{},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"],i.customHeaders)}postConversationsParticipantsAttributesSearch(e,i){if(i=i||{},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"],i.customHeaders)}postDocumentationAllSearch(e,i){if(i=i||{},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"],i.customHeaders)}postDocumentationGknSearch(e,i){if(i=i||{},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"],i.customHeaders)}postDocumentationSearch(e,i){if(i=i||{},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"],i.customHeaders)}postGroupsSearch(e,i){if(i=i||{},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"],i.customHeaders)}postLocationsSearch(e,i){if(i=i||{},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"],i.customHeaders)}postSearch(e,i){if(i=i||{},e==null)throw'Missing the required parameter "body" when calling postSearch';return this.apiClient.callApi("/api/v2/search","POST",{},{profile:i.profile},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postSearchSuggest(e,i){if(i=i||{},e==null)throw'Missing the required parameter "body" when calling postSearchSuggest';return this.apiClient.callApi("/api/v2/search/suggest","POST",{},{profile:i.profile},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postSpeechandtextanalyticsTranscriptsSearch(e,i){if(i=i||{},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"],i.customHeaders)}postTeamsSearch(e,i){if(i=i||{},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"],i.customHeaders)}postTelephonyProvidersEdgesSitesSearch(e,i){if(i=i||{},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"],i.customHeaders)}postUsersSearch(e,i){if(i=i||{},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"],i.customHeaders)}postUsersSearchConversationTarget(e,i){if(i=i||{},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"],i.customHeaders)}postUsersSearchQueuemembersManage(e,i){if(i=i||{},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"],i.customHeaders)}postUsersSearchTeamsAssign(e,i){if(i=i||{},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"],i.customHeaders)}postVoicemailSearch(e,i){if(i=i||{},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"],i.customHeaders)}},Rb=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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}patchUsersAgentuiAgentsAutoanswerAgentIdSettings(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "agentId" when calling patchUsersAgentuiAgentsAutoanswerAgentIdSettings';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.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,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "agentId" when calling putUsersAgentuiAgentsAutoanswerAgentIdSettings';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}},Ib=class{constructor(e){this.apiClient=e||q.instance}deleteSocialmediaEscalationrule(e,i){if(i=i||{},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"],i.customHeaders)}deleteSocialmediaMessage(e,i){if(i=i||{},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"],i.customHeaders)}deleteSocialmediaTopic(e,i){if(i=i||{},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:i.hardDelete},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}deleteSocialmediaTopicDataingestionrulesFacebookFacebookIngestionRuleId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "topicId" when calling deleteSocialmediaTopicDataingestionrulesFacebookFacebookIngestionRuleId';if(i==null||i==="")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:i},{hardDelete:n.hardDelete},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteSocialmediaTopicDataingestionrulesGooglebusinessprofileGoogleBusinessProfileIngestionRuleId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "topicId" when calling deleteSocialmediaTopicDataingestionrulesGooglebusinessprofileGoogleBusinessProfileIngestionRuleId';if(i==null||i==="")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:i},{hardDelete:n.hardDelete},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteSocialmediaTopicDataingestionrulesInstagramInstagramIngestionRuleId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "topicId" when calling deleteSocialmediaTopicDataingestionrulesInstagramInstagramIngestionRuleId';if(i==null||i==="")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:i},{hardDelete:n.hardDelete},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteSocialmediaTopicDataingestionrulesOpenOpenId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "topicId" when calling deleteSocialmediaTopicDataingestionrulesOpenOpenId';if(i==null||i==="")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:i},{hardDelete:n.hardDelete},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteSocialmediaTopicDataingestionrulesTwitterTwitterIngestionRuleId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "topicId" when calling deleteSocialmediaTopicDataingestionrulesTwitterTwitterIngestionRuleId';if(i==null||i==="")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:i},{hardDelete:n.hardDelete},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getSocialmediaAnalyticsAggregatesJob(e,i){if(i=i||{},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"],i.customHeaders)}getSocialmediaAnalyticsAggregatesJobResults(e,i){if(i=i||{},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:i.cursor},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getSocialmediaAnalyticsMessagesJob(e,i){if(i=i||{},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"],i.customHeaders)}getSocialmediaAnalyticsMessagesJobResults(e,i){if(i=i||{},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:i.cursor},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getSocialmediaEscalationrule(e,i){if(i=i||{},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:i.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getSocialmediaEscalationrules(e,i){if(i=i||{},e==null)throw'Missing the required parameter "divisionId" when calling getSocialmediaEscalationrules';return this.apiClient.callApi("/api/v2/socialmedia/escalationrules","GET",{},{pageNumber:i.pageNumber,pageSize:i.pageSize,divisionId:e},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getSocialmediaTopic(e,i){if(i=i||{},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:i.includeDeleted},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getSocialmediaTopicDataingestionrules(e,i){if(i=i||{},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:i.pageNumber,pageSize:i.pageSize,includeDeleted:i.includeDeleted},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getSocialmediaTopicDataingestionrulesFacebookFacebookIngestionRuleId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "topicId" when calling getSocialmediaTopicDataingestionrulesFacebookFacebookIngestionRuleId';if(i==null||i==="")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:i},{includeDeleted:n.includeDeleted},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getSocialmediaTopicDataingestionrulesFacebookFacebookIngestionRuleIdVersion(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "topicId" when calling getSocialmediaTopicDataingestionrulesFacebookFacebookIngestionRuleIdVersion';if(i==null||i==="")throw'Missing the required parameter "facebookIngestionRuleId" when calling getSocialmediaTopicDataingestionrulesFacebookFacebookIngestionRuleIdVersion';if(n==null||n==="")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:i,dataIngestionRuleVersion:n},{includeDeleted:a.includeDeleted},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getSocialmediaTopicDataingestionrulesFacebookFacebookIngestionRuleIdVersions(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "topicId" when calling getSocialmediaTopicDataingestionrulesFacebookFacebookIngestionRuleIdVersions';if(i==null||i==="")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:i},{pageNumber:n.pageNumber,pageSize:n.pageSize,includeDeleted:n.includeDeleted},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getSocialmediaTopicDataingestionrulesGooglebusinessprofileGoogleBusinessProfileIngestionRuleId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "topicId" when calling getSocialmediaTopicDataingestionrulesGooglebusinessprofileGoogleBusinessProfileIngestionRuleId';if(i==null||i==="")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:i},{includeDeleted:n.includeDeleted},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getSocialmediaTopicDataingestionrulesGooglebusinessprofileGoogleBusinessProfileIngestionRuleIdVersion(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "topicId" when calling getSocialmediaTopicDataingestionrulesGooglebusinessprofileGoogleBusinessProfileIngestionRuleIdVersion';if(i==null||i==="")throw'Missing the required parameter "googleBusinessProfileIngestionRuleId" when calling getSocialmediaTopicDataingestionrulesGooglebusinessprofileGoogleBusinessProfileIngestionRuleIdVersion';if(n==null||n==="")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:i,dataIngestionRuleVersion:n},{includeDeleted:a.includeDeleted},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getSocialmediaTopicDataingestionrulesGooglebusinessprofileGoogleBusinessProfileIngestionRuleIdVersions(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "topicId" when calling getSocialmediaTopicDataingestionrulesGooglebusinessprofileGoogleBusinessProfileIngestionRuleIdVersions';if(i==null||i==="")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:i},{pageNumber:n.pageNumber,pageSize:n.pageSize,includeDeleted:n.includeDeleted},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getSocialmediaTopicDataingestionrulesInstagramInstagramIngestionRuleId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "topicId" when calling getSocialmediaTopicDataingestionrulesInstagramInstagramIngestionRuleId';if(i==null||i==="")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:i},{includeDeleted:n.includeDeleted},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getSocialmediaTopicDataingestionrulesInstagramInstagramIngestionRuleIdVersion(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "topicId" when calling getSocialmediaTopicDataingestionrulesInstagramInstagramIngestionRuleIdVersion';if(i==null||i==="")throw'Missing the required parameter "instagramIngestionRuleId" when calling getSocialmediaTopicDataingestionrulesInstagramInstagramIngestionRuleIdVersion';if(n==null||n==="")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:i,dataIngestionRuleVersion:n},{includeDeleted:a.includeDeleted},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getSocialmediaTopicDataingestionrulesInstagramInstagramIngestionRuleIdVersions(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "topicId" when calling getSocialmediaTopicDataingestionrulesInstagramInstagramIngestionRuleIdVersions';if(i==null||i==="")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:i},{pageNumber:n.pageNumber,pageSize:n.pageSize,includeDeleted:n.includeDeleted},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getSocialmediaTopicDataingestionrulesOpenOpenId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "topicId" when calling getSocialmediaTopicDataingestionrulesOpenOpenId';if(i==null||i==="")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:i},{includeDeleted:n.includeDeleted},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getSocialmediaTopicDataingestionrulesOpenOpenIdVersion(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "topicId" when calling getSocialmediaTopicDataingestionrulesOpenOpenIdVersion';if(i==null||i==="")throw'Missing the required parameter "openId" when calling getSocialmediaTopicDataingestionrulesOpenOpenIdVersion';if(n==null||n==="")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:i,dataIngestionRuleVersion:n},{includeDeleted:a.includeDeleted},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getSocialmediaTopicDataingestionrulesOpenOpenIdVersions(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "topicId" when calling getSocialmediaTopicDataingestionrulesOpenOpenIdVersions';if(i==null||i==="")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:i},{pageNumber:n.pageNumber,pageSize:n.pageSize,includeDeleted:n.includeDeleted},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getSocialmediaTopicDataingestionrulesTwitterTwitterIngestionRuleId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "topicId" when calling getSocialmediaTopicDataingestionrulesTwitterTwitterIngestionRuleId';if(i==null||i==="")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:i},{includeDeleted:n.includeDeleted},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getSocialmediaTopicDataingestionrulesTwitterTwitterIngestionRuleIdVersion(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "topicId" when calling getSocialmediaTopicDataingestionrulesTwitterTwitterIngestionRuleIdVersion';if(i==null||i==="")throw'Missing the required parameter "twitterIngestionRuleId" when calling getSocialmediaTopicDataingestionrulesTwitterTwitterIngestionRuleIdVersion';if(n==null||n==="")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:i,dataIngestionRuleVersion:n},{includeDeleted:a.includeDeleted},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getSocialmediaTopicDataingestionrulesTwitterTwitterIngestionRuleIdVersions(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "topicId" when calling getSocialmediaTopicDataingestionrulesTwitterTwitterIngestionRuleIdVersions';if(i==null||i==="")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:i},{pageNumber:n.pageNumber,pageSize:n.pageSize,includeDeleted:n.includeDeleted},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.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,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "topicId" when calling patchSocialmediaTopic';return this.apiClient.callApi("/api/v2/socialmedia/topics/{topicId}","PATCH",{topicId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}patchSocialmediaTopicDataingestionrulesFacebookFacebookIngestionRuleId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "topicId" when calling patchSocialmediaTopicDataingestionrulesFacebookFacebookIngestionRuleId';if(i==null||i==="")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:i},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchSocialmediaTopicDataingestionrulesGooglebusinessprofileGoogleBusinessProfileIngestionRuleId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "topicId" when calling patchSocialmediaTopicDataingestionrulesGooglebusinessprofileGoogleBusinessProfileIngestionRuleId';if(i==null||i==="")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:i},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchSocialmediaTopicDataingestionrulesInstagramInstagramIngestionRuleId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "topicId" when calling patchSocialmediaTopicDataingestionrulesInstagramInstagramIngestionRuleId';if(i==null||i==="")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:i},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchSocialmediaTopicDataingestionrulesOpenOpenId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "topicId" when calling patchSocialmediaTopicDataingestionrulesOpenOpenId';if(i==null||i==="")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:i},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchSocialmediaTopicDataingestionrulesTwitterTwitterIngestionRuleId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "topicId" when calling patchSocialmediaTopicDataingestionrulesTwitterTwitterIngestionRuleId';if(i==null||i==="")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:i},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postSocialmediaAnalyticsAggregatesJobs(e,i){if(i=i||{},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"],i.customHeaders)}postSocialmediaAnalyticsMessagesJobs(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},e==null)throw'Missing the required parameter "divisionId" when calling postSocialmediaEscalationsMessages';return this.apiClient.callApi("/api/v2/socialmedia/escalations/messages","POST",{},{divisionId:e},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postSocialmediaTopicDataingestionrulesFacebook(e,i){if(i=i||{},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},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postSocialmediaTopicDataingestionrulesGooglebusinessprofile(e,i){if(i=i||{},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},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postSocialmediaTopicDataingestionrulesInstagram(e,i){if(i=i||{},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},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postSocialmediaTopicDataingestionrulesOpen(e,i){if(i=i||{},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},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postSocialmediaTopicDataingestionrulesOpenRuleIdMessagesBulk(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "topicId" when calling postSocialmediaTopicDataingestionrulesOpenRuleIdMessagesBulk';if(i==null||i==="")throw'Missing the required parameter "ruleId" when calling postSocialmediaTopicDataingestionrulesOpenRuleIdMessagesBulk';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postSocialmediaTopicDataingestionrulesOpenRuleIdReactionsBulk(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "topicId" when calling postSocialmediaTopicDataingestionrulesOpenRuleIdReactionsBulk';if(i==null||i==="")throw'Missing the required parameter "ruleId" when calling postSocialmediaTopicDataingestionrulesOpenRuleIdReactionsBulk';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postSocialmediaTopicDataingestionrulesTwitter(e,i){if(i=i||{},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},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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"],i.customHeaders)}putSocialmediaEscalationrule(e,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "escalationRuleId" when calling putSocialmediaEscalationrule';return this.apiClient.callApi("/api/v2/socialmedia/escalationrules/{escalationRuleId}","PUT",{escalationRuleId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}putSocialmediaTopicDataingestionrulesFacebookFacebookIngestionRuleId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "topicId" when calling putSocialmediaTopicDataingestionrulesFacebookFacebookIngestionRuleId';if(i==null||i==="")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:i},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putSocialmediaTopicDataingestionrulesGooglebusinessprofileGoogleBusinessProfileIngestionRuleId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "topicId" when calling putSocialmediaTopicDataingestionrulesGooglebusinessprofileGoogleBusinessProfileIngestionRuleId';if(i==null||i==="")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:i},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putSocialmediaTopicDataingestionrulesInstagramInstagramIngestionRuleId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "topicId" when calling putSocialmediaTopicDataingestionrulesInstagramInstagramIngestionRuleId';if(i==null||i==="")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:i},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putSocialmediaTopicDataingestionrulesOpenOpenId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "topicId" when calling putSocialmediaTopicDataingestionrulesOpenOpenId';if(i==null||i==="")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:i},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putSocialmediaTopicDataingestionrulesTwitterTwitterIngestionRuleId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "topicId" when calling putSocialmediaTopicDataingestionrulesTwitterTwitterIngestionRuleId';if(i==null||i==="")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:i},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}},zb=class{constructor(e){this.apiClient=e||q.instance}deleteSpeechandtextanalyticsCategory(e,i){if(i=i||{},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"],i.customHeaders)}deleteSpeechandtextanalyticsDictionaryfeedbackDictionaryFeedbackId(e,i){if(i=i||{},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"],i.customHeaders)}deleteSpeechandtextanalyticsProgram(e,i){if(i=i||{},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:i.forceDelete},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}deleteSpeechandtextanalyticsReprocessingJob(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}deleteSpeechandtextanalyticsTopic(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getSpeechandtextanalyticsConversation(e,i){if(i=i||{},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"],i.customHeaders)}getSpeechandtextanalyticsConversationCategories(e,i){if(i=i||{},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:i.pageSize,pageNumber:i.pageNumber},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getSpeechandtextanalyticsConversationCommunicationTranscripturl(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getSpeechandtextanalyticsConversationCommunicationTranscripturl';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getSpeechandtextanalyticsConversationCommunicationTranscripturls(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getSpeechandtextanalyticsConversationCommunicationTranscripturls';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getSpeechandtextanalyticsConversationSentiments(e,i){if(i=i||{},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"],i.customHeaders)}getSpeechandtextanalyticsConversationSummaries(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getSpeechandtextanalyticsProgram(e,i){if(i=i||{},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"],i.customHeaders)}getSpeechandtextanalyticsProgramMappings(e,i){if(i=i||{},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"],i.customHeaders)}getSpeechandtextanalyticsProgramSettingsInsights(e,i){if(i=i||{},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"],i.customHeaders)}getSpeechandtextanalyticsProgramTranscriptionengines(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getSpeechandtextanalyticsProgramsSettingsInsights(e){return e=e||{},this.apiClient.callApi("/api/v2/speechandtextanalytics/programs/settings/insights","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,programIds:this.apiClient.buildCollectionParam(e.programIds,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getSpeechandtextanalyticsProgramsTopiclinksJob(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getSpeechandtextanalyticsReprocessingJobInteractions(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getSpeechandtextanalyticsTopics(e){return e=e||{},this.apiClient.callApi("/api/v2/speechandtextanalytics/topics","GET",{},{nextPage:e.nextPage,pageSize:e.pageSize,pageNumber:e.pageNumber,state:e.state,name:e.name,ids:this.apiClient.buildCollectionParam(e.ids,"multi"),dialects:this.apiClient.buildCollectionParam(e.dialects,"multi"),sortBy:e.sortBy,sortOrder:e.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getSpeechandtextanalyticsTopicsDialects(e){return e=e||{},this.apiClient.callApi("/api/v2/speechandtextanalytics/topics/dialects","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getSpeechandtextanalyticsTopicsGeneral(e){return e=e||{},this.apiClient.callApi("/api/v2/speechandtextanalytics/topics/general","GET",{},{dialect:e.dialect},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getSpeechandtextanalyticsTopicsGeneralStatus(e){return e=e||{},this.apiClient.callApi("/api/v2/speechandtextanalytics/topics/general/status","GET",{},{dialect:e.dialect},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getSpeechandtextanalyticsTopicsPublishjob(e,i){if(i=i||{},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"],i.customHeaders)}getSpeechandtextanalyticsTopicsTestphraseJob(e,i){if(i=i||{},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"],i.customHeaders)}getSpeechandtextanalyticsTranslationsLanguageConversation(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "languageId" when calling getSpeechandtextanalyticsTranslationsLanguageConversation';if(i==null||i==="")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:i},{communicationId:n.communicationId,recordingId:n.recordingId},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getSpeechandtextanalyticsTranslationsLanguages(e){return e=e||{},this.apiClient.callApi("/api/v2/speechandtextanalytics/translations/languages","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}patchSpeechandtextanalyticsSettings(e,i){if(i=i||{},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"],i.customHeaders)}postSpeechandtextanalyticsCategories(e,i){if(i=i||{},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"],i.customHeaders)}postSpeechandtextanalyticsDictionaryfeedback(e,i){if(i=i||{},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"],i.customHeaders)}postSpeechandtextanalyticsPrograms(e,i){if(i=i||{},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"],i.customHeaders)}postSpeechandtextanalyticsProgramsGeneralJobs(e,i){if(i=i||{},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"],i.customHeaders)}postSpeechandtextanalyticsProgramsPublishjobs(e,i){if(i=i||{},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"],i.customHeaders)}postSpeechandtextanalyticsReprocessingJobs(e,i){if(i=i||{},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"],i.customHeaders)}postSpeechandtextanalyticsSentimentfeedback(e,i){if(i=i||{},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"],i.customHeaders)}postSpeechandtextanalyticsTopics(e,i){if(i=i||{},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"],i.customHeaders)}postSpeechandtextanalyticsTopicsPublishjobs(e,i){if(i=i||{},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"],i.customHeaders)}postSpeechandtextanalyticsTopicsTestphraseJobs(e,i){if(i=i||{},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"],i.customHeaders)}postSpeechandtextanalyticsTranscriptsSearch(e,i){if(i=i||{},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"],i.customHeaders)}putSpeechandtextanalyticsCategory(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "categoryId" when calling putSpeechandtextanalyticsCategory';if(i==null)throw'Missing the required parameter "body" when calling putSpeechandtextanalyticsCategory';return this.apiClient.callApi("/api/v2/speechandtextanalytics/categories/{categoryId}","PUT",{categoryId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putSpeechandtextanalyticsDictionaryfeedbackDictionaryFeedbackId(e,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "dictionaryFeedbackId" when calling putSpeechandtextanalyticsDictionaryfeedbackDictionaryFeedbackId';return this.apiClient.callApi("/api/v2/speechandtextanalytics/dictionaryfeedback/{dictionaryFeedbackId}","PUT",{dictionaryFeedbackId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}putSpeechandtextanalyticsProgram(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "programId" when calling putSpeechandtextanalyticsProgram';if(i==null)throw'Missing the required parameter "body" when calling putSpeechandtextanalyticsProgram';return this.apiClient.callApi("/api/v2/speechandtextanalytics/programs/{programId}","PUT",{programId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putSpeechandtextanalyticsProgramMappings(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "programId" when calling putSpeechandtextanalyticsProgramMappings';if(i==null)throw'Missing the required parameter "body" when calling putSpeechandtextanalyticsProgramMappings';return this.apiClient.callApi("/api/v2/speechandtextanalytics/programs/{programId}/mappings","PUT",{programId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putSpeechandtextanalyticsProgramSettingsInsights(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "programId" when calling putSpeechandtextanalyticsProgramSettingsInsights';if(i==null)throw'Missing the required parameter "body" when calling putSpeechandtextanalyticsProgramSettingsInsights';return this.apiClient.callApi("/api/v2/speechandtextanalytics/programs/{programId}/settings/insights","PUT",{programId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putSpeechandtextanalyticsProgramTranscriptionengines(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "programId" when calling putSpeechandtextanalyticsProgramTranscriptionengines';if(i==null)throw'Missing the required parameter "body" when calling putSpeechandtextanalyticsProgramTranscriptionengines';return this.apiClient.callApi("/api/v2/speechandtextanalytics/programs/{programId}/transcriptionengines","PUT",{programId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putSpeechandtextanalyticsSettings(e,i){if(i=i||{},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"],i.customHeaders)}putSpeechandtextanalyticsTopic(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "topicId" when calling putSpeechandtextanalyticsTopic';if(i==null)throw'Missing the required parameter "body" when calling putSpeechandtextanalyticsTopic';return this.apiClient.callApi("/api/v2/speechandtextanalytics/topics/{topicId}","PUT",{topicId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}},Db=class{constructor(e){this.apiClient=e||q.instance}deleteStationAssociateduser(e,i){if(i=i||{},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"],i.customHeaders)}getStation(e,i){if(i=i||{},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"],i.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)}},Gb=class{constructor(e){this.apiClient=e||q.instance}getSearch(e,i){if(i=i||{},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(i.expand,"multi"),profile:i.profile},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getSearchSuggest(e,i){if(i=i||{},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(i.expand,"multi"),profile:i.profile},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postSearch(e,i){if(i=i||{},e==null)throw'Missing the required parameter "body" when calling postSearch';return this.apiClient.callApi("/api/v2/search","POST",{},{profile:i.profile},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postSearchSuggest(e,i){if(i=i||{},e==null)throw'Missing the required parameter "body" when calling postSearchSuggest';return this.apiClient.callApi("/api/v2/search/suggest","POST",{},{profile:i.profile},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}},$b=class{constructor(e){this.apiClient=e||q.instance}deleteTaskmanagementWorkbin(e,i){if(i=i||{},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"],i.customHeaders)}deleteTaskmanagementWorkitem(e,i){if(i=i||{},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"],i.customHeaders)}deleteTaskmanagementWorkitemsBulkAddJob(e,i){if(i=i||{},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"],i.customHeaders)}deleteTaskmanagementWorkitemsBulkTerminateJob(e,i){if(i=i||{},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"],i.customHeaders)}deleteTaskmanagementWorkitemsSchema(e,i){if(i=i||{},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"],i.customHeaders)}deleteTaskmanagementWorktype(e,i){if(i=i||{},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"],i.customHeaders)}deleteTaskmanagementWorktypeFlowsDatebasedRule(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "worktypeId" when calling deleteTaskmanagementWorktypeFlowsDatebasedRule';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteTaskmanagementWorktypeFlowsOnattributechangeRule(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "worktypeId" when calling deleteTaskmanagementWorktypeFlowsOnattributechangeRule';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteTaskmanagementWorktypeFlowsOncreateRule(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "worktypeId" when calling deleteTaskmanagementWorktypeFlowsOncreateRule';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteTaskmanagementWorktypeStatus(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "worktypeId" when calling deleteTaskmanagementWorktypeStatus';if(i==null||i==="")throw'Missing the required parameter "statusId" when calling deleteTaskmanagementWorktypeStatus';return this.apiClient.callApi("/api/v2/taskmanagement/worktypes/{worktypeId}/statuses/{statusId}","DELETE",{worktypeId:e,statusId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getTaskmanagementWorkbin(e,i){if(i=i||{},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"],i.customHeaders)}getTaskmanagementWorkbinHistory(e,i){if(i=i||{},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:i.after,pageSize:i.pageSize,sortOrder:i.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getTaskmanagementWorkbinVersion(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "workbinId" when calling getTaskmanagementWorkbinVersion';if(i==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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getTaskmanagementWorkbinVersions(e,i){if(i=i||{},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:i.after,pageSize:i.pageSize,sortOrder:i.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getTaskmanagementWorkitem(e,i){if(i=i||{},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(i.expands,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getTaskmanagementWorkitemHistory(e,i){if(i=i||{},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:i.after,pageSize:i.pageSize,sortOrder:i.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getTaskmanagementWorkitemUserWrapups(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "workitemId" when calling getTaskmanagementWorkitemUserWrapups';if(i==null||i==="")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:i},{expands:n.expands,after:n.after,pageSize:n.pageSize,sortOrder:n.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getTaskmanagementWorkitemVersion(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "workitemId" when calling getTaskmanagementWorkitemVersion';if(i==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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getTaskmanagementWorkitemVersions(e,i){if(i=i||{},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:i.after,pageSize:i.pageSize,sortOrder:i.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getTaskmanagementWorkitemWrapups(e,i){if(i=i||{},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:i.expands,after:i.after,pageSize:i.pageSize,sortOrder:i.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getTaskmanagementWorkitemsBulkAddJob(e,i){if(i=i||{},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"],i.customHeaders)}getTaskmanagementWorkitemsBulkAddJobResults(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getTaskmanagementWorkitemsBulkTerminateJobResults(e,i){if(i=i||{},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"],i.customHeaders)}getTaskmanagementWorkitemsQueryJob(e,i){if(i=i||{},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"],i.customHeaders)}getTaskmanagementWorkitemsQueryJobResults(e,i){if(i=i||{},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"],i.customHeaders)}getTaskmanagementWorkitemsSchema(e,i){if(i=i||{},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"],i.customHeaders)}getTaskmanagementWorkitemsSchemaVersion(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "schemaId" when calling getTaskmanagementWorkitemsSchemaVersion';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getTaskmanagementWorkitemsSchemaVersions(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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(i.expands,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getTaskmanagementWorktypeFlowsDatebasedRule(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "worktypeId" when calling getTaskmanagementWorktypeFlowsDatebasedRule';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getTaskmanagementWorktypeFlowsDatebasedRules(e,i){if(i=i||{},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:i.after,pageSize:i.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getTaskmanagementWorktypeFlowsOnattributechangeRule(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "worktypeId" when calling getTaskmanagementWorktypeFlowsOnattributechangeRule';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getTaskmanagementWorktypeFlowsOnattributechangeRules(e,i){if(i=i||{},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:i.after,pageSize:i.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getTaskmanagementWorktypeFlowsOncreateRule(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "worktypeId" when calling getTaskmanagementWorktypeFlowsOncreateRule';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getTaskmanagementWorktypeFlowsOncreateRules(e,i){if(i=i||{},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:i.after,pageSize:i.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getTaskmanagementWorktypeHistory(e,i){if(i=i||{},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:i.after,pageSize:i.pageSize,sortOrder:i.sortOrder,fields:this.apiClient.buildCollectionParam(i.fields,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getTaskmanagementWorktypeStatus(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "worktypeId" when calling getTaskmanagementWorktypeStatus';if(i==null||i==="")throw'Missing the required parameter "statusId" when calling getTaskmanagementWorktypeStatus';return this.apiClient.callApi("/api/v2/taskmanagement/worktypes/{worktypeId}/statuses/{statusId}","GET",{worktypeId:e,statusId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getTaskmanagementWorktypeStatuses(e,i){if(i=i||{},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"],i.customHeaders)}getTaskmanagementWorktypeVersion(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "worktypeId" when calling getTaskmanagementWorktypeVersion';if(i==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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getTaskmanagementWorktypeVersions(e,i){if(i=i||{},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:i.after,pageSize:i.pageSize,sortOrder:i.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}patchTaskmanagementWorkbin(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "workbinId" when calling patchTaskmanagementWorkbin';if(i==null)throw'Missing the required parameter "body" when calling patchTaskmanagementWorkbin';return this.apiClient.callApi("/api/v2/taskmanagement/workbins/{workbinId}","PATCH",{workbinId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchTaskmanagementWorkitem(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "workitemId" when calling patchTaskmanagementWorkitem';if(i==null)throw'Missing the required parameter "body" when calling patchTaskmanagementWorkitem';return this.apiClient.callApi("/api/v2/taskmanagement/workitems/{workitemId}","PATCH",{workitemId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchTaskmanagementWorkitemAssignment(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "workitemId" when calling patchTaskmanagementWorkitemAssignment';if(i==null)throw'Missing the required parameter "body" when calling patchTaskmanagementWorkitemAssignment';return this.apiClient.callApi("/api/v2/taskmanagement/workitems/{workitemId}/assignment","PATCH",{workitemId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchTaskmanagementWorkitemUserWrapups(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "workitemId" when calling patchTaskmanagementWorkitemUserWrapups';if(i==null||i==="")throw'Missing the required parameter "userId" when calling patchTaskmanagementWorkitemUserWrapups';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchTaskmanagementWorkitemUsersMeWrapups(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "workitemId" when calling patchTaskmanagementWorkitemUsersMeWrapups';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchTaskmanagementWorkitemsBulkAddJob(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "bulkJobId" when calling patchTaskmanagementWorkitemsBulkAddJob';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchTaskmanagementWorkitemsBulkTerminateJob(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "bulkJobId" when calling patchTaskmanagementWorkitemsBulkTerminateJob';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchTaskmanagementWorktype(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "worktypeId" when calling patchTaskmanagementWorktype';if(i==null)throw'Missing the required parameter "body" when calling patchTaskmanagementWorktype';return this.apiClient.callApi("/api/v2/taskmanagement/worktypes/{worktypeId}","PATCH",{worktypeId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchTaskmanagementWorktypeFlowsDatebasedRule(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "worktypeId" when calling patchTaskmanagementWorktypeFlowsDatebasedRule';if(i==null||i==="")throw'Missing the required parameter "ruleId" when calling patchTaskmanagementWorktypeFlowsDatebasedRule';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchTaskmanagementWorktypeFlowsOnattributechangeRule(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "worktypeId" when calling patchTaskmanagementWorktypeFlowsOnattributechangeRule';if(i==null||i==="")throw'Missing the required parameter "ruleId" when calling patchTaskmanagementWorktypeFlowsOnattributechangeRule';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchTaskmanagementWorktypeFlowsOncreateRule(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "worktypeId" when calling patchTaskmanagementWorktypeFlowsOncreateRule';if(i==null||i==="")throw'Missing the required parameter "ruleId" when calling patchTaskmanagementWorktypeFlowsOncreateRule';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchTaskmanagementWorktypeStatus(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "worktypeId" when calling patchTaskmanagementWorktypeStatus';if(i==null||i==="")throw'Missing the required parameter "statusId" when calling patchTaskmanagementWorktypeStatus';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postTaskmanagementWorkbins(e,i){if(i=i||{},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"],i.customHeaders)}postTaskmanagementWorkbinsQuery(e,i){if(i=i||{},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"],i.customHeaders)}postTaskmanagementWorkitemAcdCancel(e,i){if(i=i||{},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"],i.customHeaders)}postTaskmanagementWorkitemDisconnect(e,i){if(i=i||{},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"],i.customHeaders)}postTaskmanagementWorkitemTerminate(e,i){if(i=i||{},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},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postTaskmanagementWorkitems(e,i){if(i=i||{},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"],i.customHeaders)}postTaskmanagementWorkitemsBulkAddJobs(e,i){if(i=i||{},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"],i.customHeaders)}postTaskmanagementWorkitemsBulkTerminateJobs(e,i){if(i=i||{},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"],i.customHeaders)}postTaskmanagementWorkitemsQuery(e,i){if(i=i||{},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"],i.customHeaders)}postTaskmanagementWorkitemsQueryJobs(e,i){if(i=i||{},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"],i.customHeaders)}postTaskmanagementWorkitemsSchemas(e,i){if(i=i||{},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"],i.customHeaders)}postTaskmanagementWorktypeFlowsDatebasedRules(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "worktypeId" when calling postTaskmanagementWorktypeFlowsDatebasedRules';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postTaskmanagementWorktypeFlowsOnattributechangeRules(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "worktypeId" when calling postTaskmanagementWorktypeFlowsOnattributechangeRules';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postTaskmanagementWorktypeFlowsOncreateRules(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "worktypeId" when calling postTaskmanagementWorktypeFlowsOncreateRules';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postTaskmanagementWorktypeStatuses(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "worktypeId" when calling postTaskmanagementWorktypeStatuses';if(i==null)throw'Missing the required parameter "body" when calling postTaskmanagementWorktypeStatuses';return this.apiClient.callApi("/api/v2/taskmanagement/worktypes/{worktypeId}/statuses","POST",{worktypeId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postTaskmanagementWorktypes(e,i){if(i=i||{},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"],i.customHeaders)}postTaskmanagementWorktypesQuery(e,i){if(i=i||{},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"],i.customHeaders)}putTaskmanagementWorkitemsSchema(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "schemaId" when calling putTaskmanagementWorkitemsSchema';if(i==null)throw'Missing the required parameter "body" when calling putTaskmanagementWorkitemsSchema';return this.apiClient.callApi("/api/v2/taskmanagement/workitems/schemas/{schemaId}","PUT",{schemaId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}},Nb=class{constructor(e){this.apiClient=e||q.instance}deleteTeam(e,i){if(i=i||{},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"],i.customHeaders)}deleteTeamMembers(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "teamId" when calling deleteTeamMembers';if(i==null)throw'Missing the required parameter "id" when calling deleteTeamMembers';return this.apiClient.callApi("/api/v2/teams/{teamId}/members","DELETE",{teamId:e},{id:i},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getTeam(e,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "teamId" when calling getTeam';return this.apiClient.callApi("/api/v2/teams/{teamId}","GET",{teamId:e},{expand:i.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getTeamMembers(e,i){if(i=i||{},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:i.pageSize,before:i.before,after:i.after,expand:i.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "teamId" when calling patchTeam';if(i==null)throw'Missing the required parameter "body" when calling patchTeam';return this.apiClient.callApi("/api/v2/teams/{teamId}","PATCH",{teamId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postAnalyticsTeamsActivityQuery(e,i){if(i=i||{},e==null)throw'Missing the required parameter "body" when calling postAnalyticsTeamsActivityQuery';return this.apiClient.callApi("/api/v2/analytics/teams/activity/query","POST",{},{pageSize:i.pageSize,pageNumber:i.pageNumber},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postTeamMembers(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "teamId" when calling postTeamMembers';if(i==null)throw'Missing the required parameter "body" when calling postTeamMembers';return this.apiClient.callApi("/api/v2/teams/{teamId}/members","POST",{teamId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postTeams(e,i){if(i=i||{},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"],i.customHeaders)}postTeamsSearch(e,i){if(i=i||{},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"],i.customHeaders)}},Ub=class{constructor(e){this.apiClient=e||q.instance}getTelephonyAgentGreetings(e,i){if(i=i||{},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"],i.customHeaders)}getTelephonyAgentsGreetingsMe(e){return e=e||{},this.apiClient.callApi("/api/v2/telephony/agents/greetings/me","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getTelephonyCallsMetrics(e){return e=e||{},this.apiClient.callApi("/api/v2/telephony/calls/metrics","GET",{},{metricType:e.metricType},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getTelephonyMediaregions(e){return e=e||{},this.apiClient.callApi("/api/v2/telephony/mediaregions","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getTelephonySettings(e){return e=e||{},this.apiClient.callApi("/api/v2/telephony/settings","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getTelephonySipmessagesConversation(e,i){if(i=i||{},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"],i.customHeaders)}getTelephonySipmessagesConversationHeaders(e,i){if(i=i||{},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(i.keys,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getTelephonySiptraces(e,i,n){if(n=n||{},e==null)throw'Missing the required parameter "dateStart" when calling getTelephonySiptraces';if(i==null)throw'Missing the required parameter "dateEnd" when calling getTelephonySiptraces';return this.apiClient.callApi("/api/v2/telephony/siptraces","GET",{},{callId:n.callId,toUser:n.toUser,fromUser:n.fromUser,conversationId:n.conversationId,dateStart:e,dateEnd:i},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getTelephonySiptracesDownloadDownloadId(e,i){if(i=i||{},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"],i.customHeaders)}postTelephonySiptracesDownload(e,i){if(i=i||{},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"],i.customHeaders)}putTelephonyAgentGreetings(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "agentId" when calling putTelephonyAgentGreetings';if(i==null)throw'Missing the required parameter "body" when calling putTelephonyAgentGreetings';return this.apiClient.callApi("/api/v2/telephony/agents/{agentId}/greetings","PUT",{agentId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putTelephonyAgentsGreetingsMe(e,i){if(i=i||{},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"],i.customHeaders)}putTelephonySettings(e,i){if(i=i||{},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"],i.customHeaders)}},Lb=class{constructor(e){this.apiClient=e||q.instance}deleteTelephonyProvidersEdge(e,i){if(i=i||{},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"],i.customHeaders)}deleteTelephonyProvidersEdgeLogicalinterface(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "edgeId" when calling deleteTelephonyProvidersEdgeLogicalinterface';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteTelephonyProvidersEdgeSoftwareupdate(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}deleteTelephonyProvidersEdgesDidpool(e,i){if(i=i||{},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"],i.customHeaders)}deleteTelephonyProvidersEdgesEdgegroup(e,i){if(i=i||{},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"],i.customHeaders)}deleteTelephonyProvidersEdgesExtensionpool(e,i){if(i=i||{},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"],i.customHeaders)}deleteTelephonyProvidersEdgesPhone(e,i){if(i=i||{},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"],i.customHeaders)}deleteTelephonyProvidersEdgesPhonebasesetting(e,i){if(i=i||{},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"],i.customHeaders)}deleteTelephonyProvidersEdgesSite(e,i){if(i=i||{},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"],i.customHeaders)}deleteTelephonyProvidersEdgesSiteOutboundroute(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "siteId" when calling deleteTelephonyProvidersEdgesSiteOutboundroute';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteTelephonyProvidersEdgesTrunkbasesetting(e,i){if(i=i||{},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"],i.customHeaders)}getTelephonyProvidersEdge(e,i){if(i=i||{},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(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getTelephonyProvidersEdgeDiagnosticNslookup(e,i){if(i=i||{},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"],i.customHeaders)}getTelephonyProvidersEdgeDiagnosticPing(e,i){if(i=i||{},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"],i.customHeaders)}getTelephonyProvidersEdgeDiagnosticRoute(e,i){if(i=i||{},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"],i.customHeaders)}getTelephonyProvidersEdgeDiagnosticTracepath(e,i){if(i=i||{},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"],i.customHeaders)}getTelephonyProvidersEdgeLogicalinterface(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "edgeId" when calling getTelephonyProvidersEdgeLogicalinterface';if(i==null||i==="")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:i},{expand:this.apiClient.buildCollectionParam(n.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getTelephonyProvidersEdgeLogicalinterfaces(e,i){if(i=i||{},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(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getTelephonyProvidersEdgeLogsJob(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "edgeId" when calling getTelephonyProvidersEdgeLogsJob';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getTelephonyProvidersEdgeMetrics(e,i){if(i=i||{},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"],i.customHeaders)}getTelephonyProvidersEdgePhysicalinterface(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "edgeId" when calling getTelephonyProvidersEdgePhysicalinterface';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getTelephonyProvidersEdgePhysicalinterfaces(e,i){if(i=i||{},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"],i.customHeaders)}getTelephonyProvidersEdgeSetuppackage(e,i){if(i=i||{},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"],i.customHeaders)}getTelephonyProvidersEdgeSoftwareupdate(e,i){if(i=i||{},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"],i.customHeaders)}getTelephonyProvidersEdgeSoftwareversions(e,i){if(i=i||{},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"],i.customHeaders)}getTelephonyProvidersEdgeTrunks(e,i){if(i=i||{},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:i.pageNumber,pageSize:i.pageSize,sortBy:i.sortBy,sortOrder:i.sortOrder,"trunkBase.id":i.trunkBaseId,trunkType:i.trunkType},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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"],i.customHeaders)}getTelephonyProvidersEdgesDid(e,i){if(i=i||{},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"],i.customHeaders)}getTelephonyProvidersEdgesDidpool(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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(i.id,"multi"),numberMatch:i.numberMatch,pageSize:i.pageSize,pageNumber:i.pageNumber,sortOrder:i.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getTelephonyProvidersEdgesEdgegroupEdgetrunkbase(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "edgegroupId" when calling getTelephonyProvidersEdgesEdgegroupEdgetrunkbase';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.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,i){if(i=i||{},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"],i.customHeaders)}getTelephonyProvidersEdgesExtensionpool(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getTelephonyProvidersEdgesLinebasesetting(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getTelephonyProvidersEdgesLogicalinterfaces(e,i){if(i=i||{},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(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getTelephonyProvidersEdgesMediastatisticsConversation(e,i){if(i=i||{},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"],i.customHeaders)}getTelephonyProvidersEdgesMediastatisticsConversationCommunication(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getTelephonyProvidersEdgesMediastatisticsConversationCommunication';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getTelephonyProvidersEdgesMetrics(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getTelephonyProvidersEdgesPhonebasesetting(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getTelephonyProvidersEdgesPhysicalinterfaces(e,i){if(i=i||{},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"],i.customHeaders)}getTelephonyProvidersEdgesSite(e,i){if(i=i||{},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"],i.customHeaders)}getTelephonyProvidersEdgesSiteNumberplan(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "siteId" when calling getTelephonyProvidersEdgesSiteNumberplan';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getTelephonyProvidersEdgesSiteNumberplans(e,i){if(i=i||{},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"],i.customHeaders)}getTelephonyProvidersEdgesSiteNumberplansClassifications(e,i){if(i=i||{},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:i.classification},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getTelephonyProvidersEdgesSiteOutboundroute(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "siteId" when calling getTelephonyProvidersEdgesSiteOutboundroute';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getTelephonyProvidersEdgesSiteOutboundroutes(e,i){if(i=i||{},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:i.pageSize,pageNumber:i.pageNumber,name:i.name,"externalTrunkBases.ids":i.externalTrunkBasesIds,sortBy:i.sortBy},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getTelephonyProvidersEdgesSiteSiteconnections(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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"],i.customHeaders)}getTelephonyProvidersEdgesTrunkMetrics(e,i){if(i=i||{},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"],i.customHeaders)}getTelephonyProvidersEdgesTrunkbasesetting(e,i){if(i=i||{},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:i.ignoreHidden},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getTelephonyProvidersEdgesTrunkbasesettings(e){return e=e||{},this.apiClient.callApi("/api/v2/telephony/providers/edges/trunkbasesettings","GET",{},{pageNumber:e.pageNumber,pageSize:e.pageSize,sortBy:e.sortBy,sortOrder:e.sortOrder,recordingEnabled:e.recordingEnabled,ignoreHidden:e.ignoreHidden,managed:e.managed,expand:this.apiClient.buildCollectionParam(e.expand,"multi"),name:e.name},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getTelephonyProvidersEdgesTrunkbasesettingsAvailablemetabases(e){return e=e||{},this.apiClient.callApi("/api/v2/telephony/providers/edges/trunkbasesettings/availablemetabases","GET",{},{type:e.type,pageSize:e.pageSize,pageNumber:e.pageNumber},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getTelephonyProvidersEdgesTrunkbasesettingsTemplate(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "siteId" when calling patchTelephonyProvidersEdgesSiteSiteconnections';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postTelephonyProvidersEdgeDiagnosticNslookup(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "edgeId" when calling postTelephonyProvidersEdgeDiagnosticNslookup';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postTelephonyProvidersEdgeDiagnosticPing(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "edgeId" when calling postTelephonyProvidersEdgeDiagnosticPing';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postTelephonyProvidersEdgeDiagnosticRoute(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "edgeId" when calling postTelephonyProvidersEdgeDiagnosticRoute';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postTelephonyProvidersEdgeDiagnosticTracepath(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "edgeId" when calling postTelephonyProvidersEdgeDiagnosticTracepath';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postTelephonyProvidersEdgeLogicalinterfaces(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "edgeId" when calling postTelephonyProvidersEdgeLogicalinterfaces';if(i==null)throw'Missing the required parameter "body" when calling postTelephonyProvidersEdgeLogicalinterfaces';return this.apiClient.callApi("/api/v2/telephony/providers/edges/{edgeId}/logicalinterfaces","POST",{edgeId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postTelephonyProvidersEdgeLogsJobUpload(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "edgeId" when calling postTelephonyProvidersEdgeLogsJobUpload';if(i==null||i==="")throw'Missing the required parameter "jobId" when calling postTelephonyProvidersEdgeLogsJobUpload';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postTelephonyProvidersEdgeLogsJobs(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "edgeId" when calling postTelephonyProvidersEdgeLogsJobs';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postTelephonyProvidersEdgeReboot(e,i){if(i=i||{},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},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postTelephonyProvidersEdgeSoftwareupdate(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "edgeId" when calling postTelephonyProvidersEdgeSoftwareupdate';if(i==null)throw'Missing the required parameter "body" when calling postTelephonyProvidersEdgeSoftwareupdate';return this.apiClient.callApi("/api/v2/telephony/providers/edges/{edgeId}/softwareupdate","POST",{edgeId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postTelephonyProvidersEdgeStatuscode(e,i){if(i=i||{},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},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postTelephonyProvidersEdgeUnpair(e,i){if(i=i||{},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"],i.customHeaders)}postTelephonyProvidersEdges(e,i){if(i=i||{},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"],i.customHeaders)}postTelephonyProvidersEdgesAddressvalidation(e,i){if(i=i||{},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"],i.customHeaders)}postTelephonyProvidersEdgesCertificateauthorities(e,i){if(i=i||{},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"],i.customHeaders)}postTelephonyProvidersEdgesDidpools(e,i){if(i=i||{},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"],i.customHeaders)}postTelephonyProvidersEdgesEdgegroups(e,i){if(i=i||{},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"],i.customHeaders)}postTelephonyProvidersEdgesExtensionpools(e,i){if(i=i||{},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"],i.customHeaders)}postTelephonyProvidersEdgesMediastatisticsConversationCommunicationMediaresource(e,i,n,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postTelephonyProvidersEdgesMediastatisticsConversationCommunicationMediaresource';if(i==null||i==="")throw'Missing the required parameter "communicationId" when calling postTelephonyProvidersEdgesMediastatisticsConversationCommunicationMediaresource';if(n==null||n==="")throw'Missing the required parameter "mediaResourceId" when calling postTelephonyProvidersEdgesMediastatisticsConversationCommunicationMediaresource';if(a==null)throw'Missing the required parameter "body" when calling postTelephonyProvidersEdgesMediastatisticsConversationCommunicationMediaresource';return this.apiClient.callApi("/api/v2/telephony/providers/edges/mediastatistics/conversations/{conversationId}/communications/{communicationId}/mediaresources/{mediaResourceId}","POST",{conversationId:e,communicationId:i,mediaResourceId:n},{},{},{},a,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}postTelephonyProvidersEdgesPhoneReboot(e,i){if(i=i||{},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"],i.customHeaders)}postTelephonyProvidersEdgesPhonebasesettings(e,i){if(i=i||{},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"],i.customHeaders)}postTelephonyProvidersEdgesPhones(e,i){if(i=i||{},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"],i.customHeaders)}postTelephonyProvidersEdgesPhonesReboot(e,i){if(i=i||{},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"],i.customHeaders)}postTelephonyProvidersEdgesSiteOutboundroutes(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "siteId" when calling postTelephonyProvidersEdgesSiteOutboundroutes';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postTelephonyProvidersEdgesSites(e,i){if(i=i||{},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"],i.customHeaders)}postTelephonyProvidersEdgesSitesSearch(e,i){if(i=i||{},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"],i.customHeaders)}postTelephonyProvidersEdgesTrunkbasesettings(e,i){if(i=i||{},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"],i.customHeaders)}putTelephonyProvidersEdge(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "edgeId" when calling putTelephonyProvidersEdge';if(i==null)throw'Missing the required parameter "body" when calling putTelephonyProvidersEdge';return this.apiClient.callApi("/api/v2/telephony/providers/edges/{edgeId}","PUT",{edgeId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putTelephonyProvidersEdgeLogicalinterface(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "edgeId" when calling putTelephonyProvidersEdgeLogicalinterface';if(i==null||i==="")throw'Missing the required parameter "interfaceId" when calling putTelephonyProvidersEdgeLogicalinterface';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}putTelephonyProvidersEdgesAlertablepresences(e,i){if(i=i||{},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"],i.customHeaders)}putTelephonyProvidersEdgesCertificateauthority(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "certificateId" when calling putTelephonyProvidersEdgesCertificateauthority';if(i==null)throw'Missing the required parameter "body" when calling putTelephonyProvidersEdgesCertificateauthority';return this.apiClient.callApi("/api/v2/telephony/providers/edges/certificateauthorities/{certificateId}","PUT",{certificateId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putTelephonyProvidersEdgesDidpool(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "didPoolId" when calling putTelephonyProvidersEdgesDidpool';if(i==null)throw'Missing the required parameter "body" when calling putTelephonyProvidersEdgesDidpool';return this.apiClient.callApi("/api/v2/telephony/providers/edges/didpools/{didPoolId}","PUT",{didPoolId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putTelephonyProvidersEdgesEdgegroup(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "edgeGroupId" when calling putTelephonyProvidersEdgesEdgegroup';if(i==null)throw'Missing the required parameter "body" when calling putTelephonyProvidersEdgesEdgegroup';return this.apiClient.callApi("/api/v2/telephony/providers/edges/edgegroups/{edgeGroupId}","PUT",{edgeGroupId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putTelephonyProvidersEdgesEdgegroupEdgetrunkbase(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "edgegroupId" when calling putTelephonyProvidersEdgesEdgegroupEdgetrunkbase';if(i==null||i==="")throw'Missing the required parameter "edgetrunkbaseId" when calling putTelephonyProvidersEdgesEdgegroupEdgetrunkbase';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}putTelephonyProvidersEdgesExtensionpool(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "extensionPoolId" when calling putTelephonyProvidersEdgesExtensionpool';if(i==null)throw'Missing the required parameter "body" when calling putTelephonyProvidersEdgesExtensionpool';return this.apiClient.callApi("/api/v2/telephony/providers/edges/extensionpools/{extensionPoolId}","PUT",{extensionPoolId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putTelephonyProvidersEdgesPhone(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "phoneId" when calling putTelephonyProvidersEdgesPhone';if(i==null)throw'Missing the required parameter "body" when calling putTelephonyProvidersEdgesPhone';return this.apiClient.callApi("/api/v2/telephony/providers/edges/phones/{phoneId}","PUT",{phoneId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putTelephonyProvidersEdgesPhonebasesetting(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "phoneBaseId" when calling putTelephonyProvidersEdgesPhonebasesetting';if(i==null)throw'Missing the required parameter "body" when calling putTelephonyProvidersEdgesPhonebasesetting';return this.apiClient.callApi("/api/v2/telephony/providers/edges/phonebasesettings/{phoneBaseId}","PUT",{phoneBaseId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putTelephonyProvidersEdgesSite(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "siteId" when calling putTelephonyProvidersEdgesSite';if(i==null)throw'Missing the required parameter "body" when calling putTelephonyProvidersEdgesSite';return this.apiClient.callApi("/api/v2/telephony/providers/edges/sites/{siteId}","PUT",{siteId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putTelephonyProvidersEdgesSiteNumberplans(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "siteId" when calling putTelephonyProvidersEdgesSiteNumberplans';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putTelephonyProvidersEdgesSiteOutboundroute(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "siteId" when calling putTelephonyProvidersEdgesSiteOutboundroute';if(i==null||i==="")throw'Missing the required parameter "outboundRouteId" when calling putTelephonyProvidersEdgesSiteOutboundroute';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}putTelephonyProvidersEdgesSiteSiteconnections(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "siteId" when calling putTelephonyProvidersEdgesSiteSiteconnections';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putTelephonyProvidersEdgesTrunkbasesetting(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "trunkBaseSettingsId" when calling putTelephonyProvidersEdgesTrunkbasesetting';if(i==null)throw'Missing the required parameter "body" when calling putTelephonyProvidersEdgesTrunkbasesetting';return this.apiClient.callApi("/api/v2/telephony/providers/edges/trunkbasesettings/{trunkBaseSettingsId}","PUT",{trunkBaseSettingsId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}},Wb=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,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "sessionId" when calling postTextbotsBotflowsSessionTurns';if(i==null)throw'Missing the required parameter "turnRequest" when calling postTextbotsBotflowsSessionTurns';return this.apiClient.callApi("/api/v2/textbots/botflows/sessions/{sessionId}/turns","POST",{sessionId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postTextbotsBotflowsSessions(e,i){if(i=i||{},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"],i.customHeaders)}postTextbotsBotsExecute(e,i){if(i=i||{},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"],i.customHeaders)}},Bb=class{constructor(e){this.apiClient=e||q.instance}deleteToken(e,i){if(i=i||{},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"],i.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)}},Fb=class{constructor(e){this.apiClient=e||q.instance}getKnowledgeKnowledgebaseUploadsUrlsJob(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling getKnowledgeKnowledgebaseUploadsUrlsJob';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postGamificationContestsUploadsPrizeimages(e,i){if(i=i||{},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"],i.customHeaders)}postGuidesUploads(e,i){if(i=i||{},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"],i.customHeaders)}postIntegrationsActionDraftFunctionUpload(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "actionId" when calling postIntegrationsActionDraftFunctionUpload';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postKnowledgeDocumentuploads(e,i){if(i=i||{},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"],i.customHeaders)}postKnowledgeKnowledgebaseUploadsUrlsJobs(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseUploadsUrlsJobs';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postLanguageunderstandingMinerUploads(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "minerId" when calling postLanguageunderstandingMinerUploads';if(i==null)throw'Missing the required parameter "body" when calling postLanguageunderstandingMinerUploads';return this.apiClient.callApi("/api/v2/languageunderstanding/miners/{minerId}/uploads","POST",{minerId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postUploadsLearningCoverart(e,i){if(i=i||{},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"],i.customHeaders)}postUploadsPublicassetsImages(e,i){if(i=i||{},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"],i.customHeaders)}postUploadsRecordings(e,i){if(i=i||{},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"],i.customHeaders)}postUploadsWorkforcemanagementHistoricaldataCsv(e,i){if(i=i||{},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"],i.customHeaders)}},Vb=class{constructor(e){this.apiClient=e||q.instance}getOauthClientUsageQueryResult(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "executionId" when calling getOauthClientUsageQueryResult';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getOauthClientUsageSummary(e,i){if(i=i||{},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:i.days},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getUsageAggregatesQueryJob(e,i){if(i=i||{},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:i.pageSize,after:i.after},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getUsageClientClientIdAggregatesQueryJob(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "clientId" when calling getUsageClientClientIdAggregatesQueryJob';if(i==null||i==="")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:i},{pageSize:n.pageSize,after:n.after},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getUsageQueryExecutionIdResults(e,i){if(i=i||{},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"],i.customHeaders)}getUsageSimplesearchExecutionIdResults(e,i){if(i=i||{},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:i.after,pageSize:i.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postOauthClientUsageQuery(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "clientId" when calling postOauthClientUsageQuery';if(i==null)throw'Missing the required parameter "body" when calling postOauthClientUsageQuery';return this.apiClient.callApi("/api/v2/oauth/clients/{clientId}/usage/query","POST",{clientId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postUsageAggregatesQueryJobs(e,i){if(i=i||{},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"],i.customHeaders)}postUsageClientClientIdAggregatesQueryJobs(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "clientId" when calling postUsageClientClientIdAggregatesQueryJobs';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postUsageQuery(e,i){if(i=i||{},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"],i.customHeaders)}postUsageSimplesearch(e,i){if(i=i||{},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"],i.customHeaders)}},Jb=class{constructor(e){this.apiClient=e||q.instance}deleteUserrecording(e,i){if(i=i||{},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"],i.customHeaders)}getUserrecording(e,i){if(i=i||{},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(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getUserrecordingTranscoding(e,i){if(i=i||{},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:i.formatId},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "recordingId" when calling putUserrecording';if(i==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(n.expand,"multi")},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}},Zb=class{constructor(e){this.apiClient=e||q.instance}deleteAnalyticsUsersAggregatesJob(e,i){if(i=i||{},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"],i.customHeaders)}deleteAnalyticsUsersDetailsJob(e,i){if(i=i||{},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"],i.customHeaders)}deleteAuthorizationSubjectDivisionRole(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "subjectId" when calling deleteAuthorizationSubjectDivisionRole';if(i==null||i==="")throw'Missing the required parameter "divisionId" when calling deleteAuthorizationSubjectDivisionRole';if(n==null||n==="")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:i,roleId:n},{},{},{},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,i){if(i=i||{},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"],i.customHeaders)}deleteRoutingUserUtilization(e,i){if(i=i||{},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"],i.customHeaders)}deleteUser(e,i){if(i=i||{},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"],i.customHeaders)}deleteUserCustomattribute(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling deleteUserCustomattribute';if(i==null||i==="")throw'Missing the required parameter "schemaId" when calling deleteUserCustomattribute';return this.apiClient.callApi("/api/v2/users/{userId}/customattributes/{schemaId}","DELETE",{userId:e,schemaId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteUserExternalidAuthorityNameExternalKey(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "userId" when calling deleteUserExternalidAuthorityNameExternalKey';if(i==null||i==="")throw'Missing the required parameter "authorityName" when calling deleteUserExternalidAuthorityNameExternalKey';if(n==null||n==="")throw'Missing the required parameter "externalKey" when calling deleteUserExternalidAuthorityNameExternalKey';return this.apiClient.callApi("/api/v2/users/{userId}/externalid/{authorityName}/{externalKey}","DELETE",{userId:e,authorityName:i,externalKey:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}deleteUserRoutinglanguage(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling deleteUserRoutinglanguage';if(i==null||i==="")throw'Missing the required parameter "languageId" when calling deleteUserRoutinglanguage';return this.apiClient.callApi("/api/v2/users/{userId}/routinglanguages/{languageId}","DELETE",{userId:e,languageId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteUserRoutingskill(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling deleteUserRoutingskill';if(i==null||i==="")throw'Missing the required parameter "skillId" when calling deleteUserRoutingskill';return this.apiClient.callApi("/api/v2/users/{userId}/routingskills/{skillId}","DELETE",{userId:e,skillId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteUserStationAssociatedstation(e,i){if(i=i||{},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"],i.customHeaders)}deleteUserStationDefaultstation(e,i){if(i=i||{},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"],i.customHeaders)}deleteUserVerifier(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling deleteUserVerifier';if(i==null||i==="")throw'Missing the required parameter "verifierId" when calling deleteUserVerifier';return this.apiClient.callApi("/api/v2/users/{userId}/verifiers/{verifierId}","DELETE",{userId:e,verifierId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteUsersCustomattributesSchema(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getAnalyticsUsersAggregatesJobResults(e,i){if(i=i||{},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:i.cursor},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getAnalyticsUsersDetailsJob(e,i){if(i=i||{},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"],i.customHeaders)}getAnalyticsUsersDetailsJobResults(e,i){if(i=i||{},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:i.cursor,pageSize:i.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},e==null)throw'Missing the required parameter "permission" when calling getAuthorizationDivisionspermittedMe';return this.apiClient.callApi("/api/v2/authorization/divisionspermitted/me","GET",{},{name:i.name,permission:e},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getAuthorizationDivisionspermittedPagedMe(e,i){if(i=i||{},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:i.pageNumber,pageSize:i.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getAuthorizationDivisionspermittedPagedSubjectId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "subjectId" when calling getAuthorizationDivisionspermittedPagedSubjectId';if(i==null)throw'Missing the required parameter "permission" when calling getAuthorizationDivisionspermittedPagedSubjectId';return this.apiClient.callApi("/api/v2/authorization/divisionspermitted/paged/{subjectId}","GET",{subjectId:e},{permission:i,pageNumber:n.pageNumber,pageSize:n.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getAuthorizationSubject(e,i){if(i=i||{},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:i.includeDuplicates},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getRoutingUserUtilization(e,i){if(i=i||{},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"],i.customHeaders)}getUser(e,i){if(i=i||{},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(i.expand,"multi"),integrationPresenceSource:i.integrationPresenceSource,userCustomAttributeSchemaIds:this.apiClient.buildCollectionParam(i.userCustomAttributeSchemaIds,"multi"),state:i.state},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getUserAdjacents(e,i){if(i=i||{},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(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getUserCallforwarding(e,i){if(i=i||{},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"],i.customHeaders)}getUserCustomattribute(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling getUserCustomattribute';if(i==null||i==="")throw'Missing the required parameter "schemaId" when calling getUserCustomattribute';return this.apiClient.callApi("/api/v2/users/{userId}/customattributes/{schemaId}","GET",{userId:e,schemaId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getUserCustomattributesBulk(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling getUserCustomattributesBulk';if(i==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(i,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getUserDirectreports(e,i){if(i=i||{},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(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getUserExternalid(e,i){if(i=i||{},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"],i.customHeaders)}getUserExternalidAuthorityName(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling getUserExternalidAuthorityName';if(i==null||i==="")throw'Missing the required parameter "authorityName" when calling getUserExternalidAuthorityName';return this.apiClient.callApi("/api/v2/users/{userId}/externalid/{authorityName}","GET",{userId:e,authorityName:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getUserFavorites(e,i){if(i=i||{},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:i.pageSize,pageNumber:i.pageNumber,sortOrder:i.sortOrder,expand:this.apiClient.buildCollectionParam(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getUserGeolocation(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling getUserGeolocation';if(i==null||i==="")throw'Missing the required parameter "clientId" when calling getUserGeolocation';return this.apiClient.callApi("/api/v2/users/{userId}/geolocations/{clientId}","GET",{userId:e,clientId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getUserOutofoffice(e,i){if(i=i||{},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"],i.customHeaders)}getUserProfile(e,i){if(i=i||{},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(i.expand,"multi"),integrationPresenceSource:i.integrationPresenceSource},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getUserProfileskills(e,i){if(i=i||{},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"],i.customHeaders)}getUserQueues(e,i){if(i=i||{},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:i.pageSize,pageNumber:i.pageNumber,joined:i.joined,divisionId:this.apiClient.buildCollectionParam(i.divisionId,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getUserRoles(e,i){if(i=i||{},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"],i.customHeaders)}getUserRoutinglanguages(e,i){if(i=i||{},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:i.pageSize,pageNumber:i.pageNumber,sortOrder:i.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getUserRoutingskills(e,i){if(i=i||{},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:i.pageSize,pageNumber:i.pageNumber,sortOrder:i.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getUserRoutingstatus(e,i){if(i=i||{},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"],i.customHeaders)}getUserSkillgroups(e,i){if(i=i||{},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:i.pageSize,after:i.after,before:i.before},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getUserState(e,i){if(i=i||{},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"],i.customHeaders)}getUserStation(e,i){if(i=i||{},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"],i.customHeaders)}getUserSuperiors(e,i){if(i=i||{},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(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getUserTrustors(e,i){if(i=i||{},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:i.pageSize,pageNumber:i.pageNumber},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getUserVerifiers(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getUsersCustomattributesSchemaVersion(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "schemaId" when calling getUsersCustomattributesSchemaVersion';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getUsersCustomattributesSchemaVersions(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "activityId" when calling getUsersDevelopmentActivity';if(i==null)throw'Missing the required parameter "type" when calling getUsersDevelopmentActivity';return this.apiClient.callApi("/api/v2/users/development/activities/{activityId}","GET",{activityId:e},{type:i},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getUsersExternalidAuthorityNameExternalKey(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "authorityName" when calling getUsersExternalidAuthorityNameExternalKey';if(i==null||i==="")throw'Missing the required parameter "externalKey" when calling getUsersExternalidAuthorityNameExternalKey';return this.apiClient.callApi("/api/v2/users/externalid/{authorityName}/{externalKey}","GET",{authorityName:e,externalKey:i},{expand:this.apiClient.buildCollectionParam(n.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getUsersMe(e){return e=e||{},this.apiClient.callApi("/api/v2/users/me","GET",{},{expand:this.apiClient.buildCollectionParam(e.expand,"multi"),integrationPresenceSource:e.integrationPresenceSource,userCustomAttributeSchemaIds:this.apiClient.buildCollectionParam(e.userCustomAttributeSchemaIds,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getUsersQuery(e){return e=e||{},this.apiClient.callApi("/api/v2/users/query","GET",{},{cursor:e.cursor,pageSize:e.pageSize,sortOrder:e.sortOrder,expand:this.apiClient.buildCollectionParam(e.expand,"multi"),integrationPresenceSource:e.integrationPresenceSource,userCustomAttributeSchemaIds:this.apiClient.buildCollectionParam(e.userCustomAttributeSchemaIds,"multi"),state:e.state},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getUsersSearch(e,i){if(i=i||{},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(i.expand,"multi"),integrationPresenceSource:i.integrationPresenceSource},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling patchUser';if(i==null)throw'Missing the required parameter "body" when calling patchUser';return this.apiClient.callApi("/api/v2/users/{userId}","PATCH",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchUserCallforwarding(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling patchUserCallforwarding';if(i==null)throw'Missing the required parameter "body" when calling patchUserCallforwarding';return this.apiClient.callApi("/api/v2/users/{userId}/callforwarding","PATCH",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchUserCustomattributes(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling patchUserCustomattributes';if(i==null)throw'Missing the required parameter "userCustomAttributes" when calling patchUserCustomattributes';return this.apiClient.callApi("/api/v2/users/{userId}/customattributes","PATCH",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchUserCustomattributesBulk(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling patchUserCustomattributesBulk';if(i==null)throw'Missing the required parameter "userCustomAttributesList" when calling patchUserCustomattributesBulk';return this.apiClient.callApi("/api/v2/users/{userId}/customattributes/bulk","PATCH",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchUserGeolocation(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "userId" when calling patchUserGeolocation';if(i==null||i==="")throw'Missing the required parameter "clientId" when calling patchUserGeolocation';if(n==null)throw'Missing the required parameter "body" when calling patchUserGeolocation';return this.apiClient.callApi("/api/v2/users/{userId}/geolocations/{clientId}","PATCH",{userId:e,clientId:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchUserQueue(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "queueId" when calling patchUserQueue';if(i==null||i==="")throw'Missing the required parameter "userId" when calling patchUserQueue';if(n==null)throw'Missing the required parameter "body" when calling patchUserQueue';return this.apiClient.callApi("/api/v2/users/{userId}/queues/{queueId}","PATCH",{queueId:e,userId:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchUserQueues(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling patchUserQueues';if(i==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(n.divisionId,"multi")},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchUserRoutinglanguage(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "userId" when calling patchUserRoutinglanguage';if(i==null||i==="")throw'Missing the required parameter "languageId" when calling patchUserRoutinglanguage';if(n==null)throw'Missing the required parameter "body" when calling patchUserRoutinglanguage';return this.apiClient.callApi("/api/v2/users/{userId}/routinglanguages/{languageId}","PATCH",{userId:e,languageId:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchUserRoutinglanguagesBulk(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling patchUserRoutinglanguagesBulk';if(i==null)throw'Missing the required parameter "body" when calling patchUserRoutinglanguagesBulk';return this.apiClient.callApi("/api/v2/users/{userId}/routinglanguages/bulk","PATCH",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchUserRoutingskillsBulk(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling patchUserRoutingskillsBulk';if(i==null)throw'Missing the required parameter "body" when calling patchUserRoutingskillsBulk';return this.apiClient.callApi("/api/v2/users/{userId}/routingskills/bulk","PATCH",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchUsersBulk(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsUsersActivityQuery(e,i){if(i=i||{},e==null)throw'Missing the required parameter "body" when calling postAnalyticsUsersActivityQuery';return this.apiClient.callApi("/api/v2/analytics/users/activity/query","POST",{},{pageSize:i.pageSize,pageNumber:i.pageNumber},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postAnalyticsUsersAggregatesJobs(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsUsersAggregatesQuery(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsUsersDetailsJobs(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsUsersDetailsQuery(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsUsersObservationsQuery(e,i){if(i=i||{},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"],i.customHeaders)}postAuthorizationSubjectBulkadd(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "subjectId" when calling postAuthorizationSubjectBulkadd';if(i==null)throw'Missing the required parameter "body" when calling postAuthorizationSubjectBulkadd';return this.apiClient.callApi("/api/v2/authorization/subjects/{subjectId}/bulkadd","POST",{subjectId:e},{subjectType:n.subjectType},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postAuthorizationSubjectBulkremove(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "subjectId" when calling postAuthorizationSubjectBulkremove';if(i==null)throw'Missing the required parameter "body" when calling postAuthorizationSubjectBulkremove';return this.apiClient.callApi("/api/v2/authorization/subjects/{subjectId}/bulkremove","POST",{subjectId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postAuthorizationSubjectBulkreplace(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "subjectId" when calling postAuthorizationSubjectBulkreplace';if(i==null)throw'Missing the required parameter "body" when calling postAuthorizationSubjectBulkreplace';return this.apiClient.callApi("/api/v2/authorization/subjects/{subjectId}/bulkreplace","POST",{subjectId:e},{subjectType:n.subjectType},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postAuthorizationSubjectDivisionRole(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "subjectId" when calling postAuthorizationSubjectDivisionRole';if(i==null||i==="")throw'Missing the required parameter "divisionId" when calling postAuthorizationSubjectDivisionRole';if(n==null||n==="")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:i,roleId:n},{subjectType:a.subjectType},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postUserExternalid(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling postUserExternalid';if(i==null)throw'Missing the required parameter "body" when calling postUserExternalid';return this.apiClient.callApi("/api/v2/users/{userId}/externalid","POST",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postUserInvite(e,i){if(i=i||{},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:i.force},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postUserPassword(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling postUserPassword';if(i==null)throw'Missing the required parameter "body" when calling postUserPassword';return this.apiClient.callApi("/api/v2/users/{userId}/password","POST",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postUserRoutinglanguages(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling postUserRoutinglanguages';if(i==null)throw'Missing the required parameter "body" when calling postUserRoutinglanguages';return this.apiClient.callApi("/api/v2/users/{userId}/routinglanguages","POST",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postUserRoutingskills(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling postUserRoutingskills';if(i==null)throw'Missing the required parameter "body" when calling postUserRoutingskills';return this.apiClient.callApi("/api/v2/users/{userId}/routingskills","POST",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postUsers(e,i){if(i=i||{},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"],i.customHeaders)}postUsersCustomattributesSchemas(e,i){if(i=i||{},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"],i.customHeaders)}postUsersDevelopmentActivitiesAggregatesQuery(e,i){if(i=i||{},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"],i.customHeaders)}postUsersMePassword(e,i){if(i=i||{},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"],i.customHeaders)}postUsersSearch(e,i){if(i=i||{},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"],i.customHeaders)}postUsersSearchConversationTarget(e,i){if(i=i||{},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"],i.customHeaders)}postUsersSearchQueuemembersManage(e,i){if(i=i||{},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"],i.customHeaders)}postUsersSearchTeamsAssign(e,i){if(i=i||{},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"],i.customHeaders)}putRoutingDirectroutingbackupSettingsMe(e,i){if(i=i||{},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"],i.customHeaders)}putRoutingUserDirectroutingbackupSettings(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling putRoutingUserDirectroutingbackupSettings';if(i==null)throw'Missing the required parameter "body" when calling putRoutingUserDirectroutingbackupSettings';return this.apiClient.callApi("/api/v2/routing/users/{userId}/directroutingbackup/settings","PUT",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putRoutingUserUtilization(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling putRoutingUserUtilization';if(i==null)throw'Missing the required parameter "body" when calling putRoutingUserUtilization';return this.apiClient.callApi("/api/v2/routing/users/{userId}/utilization","PUT",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putUserCallforwarding(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling putUserCallforwarding';if(i==null)throw'Missing the required parameter "body" when calling putUserCallforwarding';return this.apiClient.callApi("/api/v2/users/{userId}/callforwarding","PUT",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putUserCustomattributes(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling putUserCustomattributes';if(i==null)throw'Missing the required parameter "userCustomAttributes" when calling putUserCustomattributes';return this.apiClient.callApi("/api/v2/users/{userId}/customattributes","PUT",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putUserOutofoffice(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling putUserOutofoffice';if(i==null)throw'Missing the required parameter "body" when calling putUserOutofoffice';return this.apiClient.callApi("/api/v2/users/{userId}/outofoffice","PUT",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putUserProfileskills(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling putUserProfileskills';if(i==null)throw'Missing the required parameter "body" when calling putUserProfileskills';return this.apiClient.callApi("/api/v2/users/{userId}/profileskills","PUT",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putUserRoles(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "subjectId" when calling putUserRoles';if(i==null)throw'Missing the required parameter "body" when calling putUserRoles';return this.apiClient.callApi("/api/v2/users/{subjectId}/roles","PUT",{subjectId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putUserRoutingskill(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "userId" when calling putUserRoutingskill';if(i==null||i==="")throw'Missing the required parameter "skillId" when calling putUserRoutingskill';if(n==null)throw'Missing the required parameter "body" when calling putUserRoutingskill';return this.apiClient.callApi("/api/v2/users/{userId}/routingskills/{skillId}","PUT",{userId:e,skillId:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}putUserRoutingskillsBulk(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling putUserRoutingskillsBulk';if(i==null)throw'Missing the required parameter "body" when calling putUserRoutingskillsBulk';return this.apiClient.callApi("/api/v2/users/{userId}/routingskills/bulk","PUT",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putUserRoutingstatus(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling putUserRoutingstatus';if(i==null)throw'Missing the required parameter "body" when calling putUserRoutingstatus';return this.apiClient.callApi("/api/v2/users/{userId}/routingstatus","PUT",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putUserState(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling putUserState';if(i==null)throw'Missing the required parameter "body" when calling putUserState';return this.apiClient.callApi("/api/v2/users/{userId}/state","PUT",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putUserStationAssociatedstationStationId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling putUserStationAssociatedstationStationId';if(i==null||i==="")throw'Missing the required parameter "stationId" when calling putUserStationAssociatedstationStationId';return this.apiClient.callApi("/api/v2/users/{userId}/station/associatedstation/{stationId}","PUT",{userId:e,stationId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putUserStationDefaultstationStationId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling putUserStationDefaultstationStationId';if(i==null||i==="")throw'Missing the required parameter "stationId" when calling putUserStationDefaultstationStationId';return this.apiClient.callApi("/api/v2/users/{userId}/station/defaultstation/{stationId}","PUT",{userId:e,stationId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putUserVerifier(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "userId" when calling putUserVerifier';if(i==null||i==="")throw'Missing the required parameter "verifierId" when calling putUserVerifier';if(n==null)throw'Missing the required parameter "body" when calling putUserVerifier';return this.apiClient.callApi("/api/v2/users/{userId}/verifiers/{verifierId}","PUT",{userId:e,verifierId:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}putUsersCustomattributesSchema(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "schemaId" when calling putUsersCustomattributesSchema';if(i==null)throw'Missing the required parameter "body" when calling putUsersCustomattributesSchema';return this.apiClient.callApi("/api/v2/users/customattributes/schemas/{schemaId}","PUT",{schemaId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putUsersStationsMeAssociatedstationStationId(e,i){if(i=i||{},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"],i.customHeaders)}},Kb=class{constructor(e){this.apiClient=e||q.instance}deleteUsersRule(e,i){if(i=i||{},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"],i.customHeaders)}getUsersRule(e,i){if(i=i||{},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"],i.customHeaders)}getUsersRuleDependentTypeId(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "ruleId" when calling getUsersRuleDependentTypeId';if(i==null||i==="")throw'Missing the required parameter "ruleType" when calling getUsersRuleDependentTypeId';if(n==null||n==="")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:i,typeId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getUsersRuleDependents(e,i){if(i=i||{},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:i.pageSize,pageNumber:i.pageNumber,sortOrder:i.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getUsersRules(e,i){if(i=i||{},e==null)throw'Missing the required parameter "types" when calling getUsersRules';return this.apiClient.callApi("/api/v2/users/rules","GET",{},{pageNumber:i.pageNumber,pageSize:i.pageSize,types:this.apiClient.buildCollectionParam(e,"multi"),expand:this.apiClient.buildCollectionParam(i.expand,"multi"),enabled:i.enabled,searchTerm:i.searchTerm,sortOrder:i.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getUsersRulesSetting(e,i){if(i=i||{},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"],i.customHeaders)}patchUsersRule(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "ruleId" when calling patchUsersRule';if(i==null)throw'Missing the required parameter "body" when calling patchUsersRule';return this.apiClient.callApi("/api/v2/users/rules/{ruleId}","PATCH",{ruleId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postUsersRules(e,i){if(i=i||{},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"],i.customHeaders)}postUsersRulesQuery(e,i){if(i=i||{},e==null)throw'Missing the required parameter "body" when calling postUsersRulesQuery';return this.apiClient.callApi("/api/v2/users/rules/query","POST",{},{pageNumber:i.pageNumber,pageSize:i.pageSize},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}},Qb=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,i){if(i=i||{},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"],i.customHeaders)}},Yb=class{constructor(e){this.apiClient=e||q.instance}deleteVoicemailMessage(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getVoicemailGroupMessages(e,i){if(i=i||{},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:i.pageSize,pageNumber:i.pageNumber},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getVoicemailGroupPolicy(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getVoicemailMessageMedia(e,i){if(i=i||{},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:i.formatId},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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:i.pageSize,pageNumber:i.pageNumber},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getVoicemailSearch(e,i){if(i=i||{},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(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getVoicemailUserMailbox(e,i){if(i=i||{},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"],i.customHeaders)}getVoicemailUserMessages(e,i){if(i=i||{},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:i.pageSize,pageNumber:i.pageNumber},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getVoicemailUserpolicy(e,i){if(i=i||{},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"],i.customHeaders)}patchVoicemailGroupPolicy(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "groupId" when calling patchVoicemailGroupPolicy';if(i==null)throw'Missing the required parameter "body" when calling patchVoicemailGroupPolicy';return this.apiClient.callApi("/api/v2/voicemail/groups/{groupId}/policy","PATCH",{groupId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchVoicemailMePolicy(e,i){if(i=i||{},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"],i.customHeaders)}patchVoicemailMessage(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "messageId" when calling patchVoicemailMessage';if(i==null)throw'Missing the required parameter "body" when calling patchVoicemailMessage';return this.apiClient.callApi("/api/v2/voicemail/messages/{messageId}","PATCH",{messageId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchVoicemailUserpolicy(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling patchVoicemailUserpolicy';if(i==null)throw'Missing the required parameter "body" when calling patchVoicemailUserpolicy';return this.apiClient.callApi("/api/v2/voicemail/userpolicies/{userId}","PATCH",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.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,i){if(i=i||{},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"],i.customHeaders)}putVoicemailMessage(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "messageId" when calling putVoicemailMessage';if(i==null)throw'Missing the required parameter "body" when calling putVoicemailMessage';return this.apiClient.callApi("/api/v2/voicemail/messages/{messageId}","PUT",{messageId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putVoicemailPolicy(e,i){if(i=i||{},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"],i.customHeaders)}putVoicemailUserpolicy(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling putVoicemailUserpolicy';if(i==null)throw'Missing the required parameter "body" when calling putVoicemailUserpolicy';return this.apiClient.callApi("/api/v2/voicemail/userpolicies/{userId}","PUT",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}},Xb=class{constructor(e){this.apiClient=e||q.instance}deleteWebchatDeployment(e,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "deploymentId" when calling deleteWebchatDeployment';return this.apiClient.callApi("/api/v2/webchat/deployments/{deploymentId}","DELETE",{deploymentId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}deleteWebchatGuestConversationMember(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling deleteWebchatGuestConversationMember';if(i==null||i==="")throw'Missing the required parameter "memberId" when calling deleteWebchatGuestConversationMember';return this.apiClient.callApi("/api/v2/webchat/guest/conversations/{conversationId}/members/{memberId}","DELETE",{conversationId:e,memberId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteWebchatSettings(e){return e=e||{},this.apiClient.callApi("/api/v2/webchat/settings","DELETE",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getWebchatDeployment(e,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "deploymentId" when calling getWebchatDeployment';return this.apiClient.callApi("/api/v2/webchat/deployments/{deploymentId}","GET",{deploymentId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getWebchatDeployments(e){return e=e||{},this.apiClient.callApi("/api/v2/webchat/deployments","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getWebchatGuestConversationMediarequest(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getWebchatGuestConversationMediarequest';if(i==null||i==="")throw'Missing the required parameter "mediaRequestId" when calling getWebchatGuestConversationMediarequest';return this.apiClient.callApi("/api/v2/webchat/guest/conversations/{conversationId}/mediarequests/{mediaRequestId}","GET",{conversationId:e,mediaRequestId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWebchatGuestConversationMediarequests(e,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getWebchatGuestConversationMediarequests';return this.apiClient.callApi("/api/v2/webchat/guest/conversations/{conversationId}/mediarequests","GET",{conversationId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getWebchatGuestConversationMember(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getWebchatGuestConversationMember';if(i==null||i==="")throw'Missing the required parameter "memberId" when calling getWebchatGuestConversationMember';return this.apiClient.callApi("/api/v2/webchat/guest/conversations/{conversationId}/members/{memberId}","GET",{conversationId:e,memberId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWebchatGuestConversationMembers(e,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getWebchatGuestConversationMembers';return this.apiClient.callApi("/api/v2/webchat/guest/conversations/{conversationId}/members","GET",{conversationId:e},{pageSize:i.pageSize,pageNumber:i.pageNumber,excludeDisconnectedMembers:i.excludeDisconnectedMembers},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getWebchatGuestConversationMessage(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getWebchatGuestConversationMessage';if(i==null||i==="")throw'Missing the required parameter "messageId" when calling getWebchatGuestConversationMessage';return this.apiClient.callApi("/api/v2/webchat/guest/conversations/{conversationId}/messages/{messageId}","GET",{conversationId:e,messageId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWebchatGuestConversationMessages(e,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getWebchatGuestConversationMessages';return this.apiClient.callApi("/api/v2/webchat/guest/conversations/{conversationId}/messages","GET",{conversationId:e},{after:i.after,before:i.before,sortOrder:i.sortOrder,maxResults:i.maxResults},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getWebchatSettings(e){return e=e||{},this.apiClient.callApi("/api/v2/webchat/settings","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}patchWebchatGuestConversationMediarequest(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchWebchatGuestConversationMediarequest';if(i==null||i==="")throw'Missing the required parameter "mediaRequestId" when calling patchWebchatGuestConversationMediarequest';if(n==null)throw'Missing the required parameter "body" when calling patchWebchatGuestConversationMediarequest';return this.apiClient.callApi("/api/v2/webchat/guest/conversations/{conversationId}/mediarequests/{mediaRequestId}","PATCH",{conversationId:e,mediaRequestId:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postWebchatDeployments(e,i){if(i=i||{},e==null)throw'Missing the required parameter "body" when calling postWebchatDeployments';return this.apiClient.callApi("/api/v2/webchat/deployments","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postWebchatGuestConversationMemberMessages(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postWebchatGuestConversationMemberMessages';if(i==null||i==="")throw'Missing the required parameter "memberId" when calling postWebchatGuestConversationMemberMessages';if(n==null)throw'Missing the required parameter "body" when calling postWebchatGuestConversationMemberMessages';return this.apiClient.callApi("/api/v2/webchat/guest/conversations/{conversationId}/members/{memberId}/messages","POST",{conversationId:e,memberId:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postWebchatGuestConversationMemberTyping(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postWebchatGuestConversationMemberTyping';if(i==null||i==="")throw'Missing the required parameter "memberId" when calling postWebchatGuestConversationMemberTyping';return this.apiClient.callApi("/api/v2/webchat/guest/conversations/{conversationId}/members/{memberId}/typing","POST",{conversationId:e,memberId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWebchatGuestConversations(e,i){if(i=i||{},e==null)throw'Missing the required parameter "body" when calling postWebchatGuestConversations';return this.apiClient.callApi("/api/v2/webchat/guest/conversations","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}putWebchatDeployment(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "deploymentId" when calling putWebchatDeployment';if(i==null)throw'Missing the required parameter "body" when calling putWebchatDeployment';return this.apiClient.callApi("/api/v2/webchat/deployments/{deploymentId}","PUT",{deploymentId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putWebchatSettings(e,i){if(i=i||{},e==null)throw'Missing the required parameter "body" when calling putWebchatSettings';return this.apiClient.callApi("/api/v2/webchat/settings","PUT",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}},ey=class{constructor(e){this.apiClient=e||q.instance}deleteWebdeploymentsConfiguration(e,i){if(i=i||{},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"],i.customHeaders)}deleteWebdeploymentsDeployment(e,i){if(i=i||{},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"],i.customHeaders)}deleteWebdeploymentsDeploymentCobrowseSessionId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "deploymentId" when calling deleteWebdeploymentsDeploymentCobrowseSessionId';if(i==null||i==="")throw'Missing the required parameter "sessionId" when calling deleteWebdeploymentsDeploymentCobrowseSessionId';return this.apiClient.callApi("/api/v2/webdeployments/deployments/{deploymentId}/cobrowse/{sessionId}","DELETE",{deploymentId:e,sessionId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.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,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "configurationId" when calling getWebdeploymentsConfigurationVersion';if(i==null||i==="")throw'Missing the required parameter "versionId" when calling getWebdeploymentsConfigurationVersion';return this.apiClient.callApi("/api/v2/webdeployments/configurations/{configurationId}/versions/{versionId}","GET",{configurationId:e,versionId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWebdeploymentsConfigurationVersions(e,i){if(i=i||{},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:i.pageSize,before:i.before,after:i.after},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getWebdeploymentsConfigurationVersionsDraft(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getWebdeploymentsDeploymentCobrowseSessionId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "deploymentId" when calling getWebdeploymentsDeploymentCobrowseSessionId';if(i==null||i==="")throw'Missing the required parameter "sessionId" when calling getWebdeploymentsDeploymentCobrowseSessionId';return this.apiClient.callApi("/api/v2/webdeployments/deployments/{deploymentId}/cobrowse/{sessionId}","GET",{deploymentId:e,sessionId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWebdeploymentsDeploymentConfigurations(e,i){if(i=i||{},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:i.type,expand:this.apiClient.buildCollectionParam(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getWebdeploymentsDeploymentIdentityresolution(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}postWebdeploymentsConfigurations(e,i){if(i=i||{},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"],i.customHeaders)}postWebdeploymentsDeployments(e,i){if(i=i||{},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"],i.customHeaders)}postWebdeploymentsTokenOauthcodegrantjwtexchange(e,i){if(i=i||{},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"],i.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,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "configurationId" when calling putWebdeploymentsConfigurationVersionsDraft';if(i==null)throw'Missing the required parameter "configurationVersion" when calling putWebdeploymentsConfigurationVersionsDraft';return this.apiClient.callApi("/api/v2/webdeployments/configurations/{configurationId}/versions/draft","PUT",{configurationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putWebdeploymentsDeployment(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "deploymentId" when calling putWebdeploymentsDeployment';if(i==null)throw'Missing the required parameter "deployment" when calling putWebdeploymentsDeployment';return this.apiClient.callApi("/api/v2/webdeployments/deployments/{deploymentId}","PUT",{deploymentId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putWebdeploymentsDeploymentIdentityresolution(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "deploymentId" when calling putWebdeploymentsDeploymentIdentityresolution';if(i==null)throw'Missing the required parameter "body" when calling putWebdeploymentsDeploymentIdentityresolution';return this.apiClient.callApi("/api/v2/webdeployments/deployments/{deploymentId}/identityresolution","PUT",{deploymentId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}},iy=class{constructor(e){this.apiClient=e||q.instance}deleteWebmessagingDeploymentPushdevice(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "deploymentId" when calling deleteWebmessagingDeploymentPushdevice';if(i==null||i==="")throw'Missing the required parameter "tokenId" when calling deleteWebmessagingDeploymentPushdevice';return this.apiClient.callApi("/api/v2/webmessaging/deployments/{deploymentId}/pushdevices/{tokenId}","DELETE",{deploymentId:e,tokenId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.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,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "deploymentId" when calling patchWebmessagingDeploymentPushdevice';if(i==null||i==="")throw'Missing the required parameter "tokenId" when calling patchWebmessagingDeploymentPushdevice';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postWebmessagingDeploymentPushdevice(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "deploymentId" when calling postWebmessagingDeploymentPushdevice';if(i==null||i==="")throw'Missing the required parameter "tokenId" when calling postWebmessagingDeploymentPushdevice';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}},ny=class{constructor(e){this.apiClient=e||q.instance}deleteWidgetsDeployment(e,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "deploymentId" when calling deleteWidgetsDeployment';return this.apiClient.callApi("/api/v2/widgets/deployments/{deploymentId}","DELETE",{deploymentId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getWidgetsDeployment(e,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "deploymentId" when calling getWidgetsDeployment';return this.apiClient.callApi("/api/v2/widgets/deployments/{deploymentId}","GET",{deploymentId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getWidgetsDeployments(e){return e=e||{},this.apiClient.callApi("/api/v2/widgets/deployments","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}postWidgetsDeployments(e,i){if(i=i||{},e==null)throw'Missing the required parameter "body" when calling postWidgetsDeployments';return this.apiClient.callApi("/api/v2/widgets/deployments","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}putWidgetsDeployment(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "deploymentId" when calling putWidgetsDeployment';if(i==null)throw'Missing the required parameter "body" when calling putWidgetsDeployment';return this.apiClient.callApi("/api/v2/widgets/deployments/{deploymentId}","PUT",{deploymentId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}},ty=class{constructor(e){this.apiClient=e||q.instance}deleteWorkforcemanagementBusinessunit(e,i){if(i=i||{},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"],i.customHeaders)}deleteWorkforcemanagementBusinessunitActivitycode(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling deleteWorkforcemanagementBusinessunitActivitycode';if(i==null||i==="")throw'Missing the required parameter "activityCodeId" when calling deleteWorkforcemanagementBusinessunitActivitycode';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/activitycodes/{activityCodeId}","DELETE",{businessUnitId:e,activityCodeId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteWorkforcemanagementBusinessunitCapacityplanStaffinggroupallocationshistory(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling deleteWorkforcemanagementBusinessunitCapacityplanStaffinggroupallocationshistory';if(i==null||i==="")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:i},{beforeDateId:n.beforeDateId},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteWorkforcemanagementBusinessunitPlanninggroup(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling deleteWorkforcemanagementBusinessunitPlanninggroup';if(i==null||i==="")throw'Missing the required parameter "planningGroupId" when calling deleteWorkforcemanagementBusinessunitPlanninggroup';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/planninggroups/{planningGroupId}","DELETE",{businessUnitId:e,planningGroupId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteWorkforcemanagementBusinessunitSchedulingRun(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling deleteWorkforcemanagementBusinessunitSchedulingRun';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteWorkforcemanagementBusinessunitServicegoaltemplate(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling deleteWorkforcemanagementBusinessunitServicegoaltemplate';if(i==null||i==="")throw'Missing the required parameter "serviceGoalTemplateId" when calling deleteWorkforcemanagementBusinessunitServicegoaltemplate';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/servicegoaltemplates/{serviceGoalTemplateId}","DELETE",{businessUnitId:e,serviceGoalTemplateId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteWorkforcemanagementBusinessunitStaffinggroup(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling deleteWorkforcemanagementBusinessunitStaffinggroup';if(i==null||i==="")throw'Missing the required parameter "staffingGroupId" when calling deleteWorkforcemanagementBusinessunitStaffinggroup';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/staffinggroups/{staffingGroupId}","DELETE",{businessUnitId:e,staffingGroupId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteWorkforcemanagementBusinessunitTimeofflimit(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling deleteWorkforcemanagementBusinessunitTimeofflimit';if(i==null||i==="")throw'Missing the required parameter "timeOffLimitId" when calling deleteWorkforcemanagementBusinessunitTimeofflimit';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/timeofflimits/{timeOffLimitId}","DELETE",{businessUnitId:e,timeOffLimitId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteWorkforcemanagementBusinessunitTimeoffplan(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling deleteWorkforcemanagementBusinessunitTimeoffplan';if(i==null||i==="")throw'Missing the required parameter "timeOffPlanId" when calling deleteWorkforcemanagementBusinessunitTimeoffplan';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/timeoffplans/{timeOffPlanId}","DELETE",{businessUnitId:e,timeOffPlanId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteWorkforcemanagementBusinessunitWeekSchedule(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling deleteWorkforcemanagementBusinessunitWeekSchedule';if(i==null)throw'Missing the required parameter "weekId" when calling deleteWorkforcemanagementBusinessunitWeekSchedule';if(n==null||n==="")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:i,scheduleId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}deleteWorkforcemanagementBusinessunitWeekShorttermforecast(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling deleteWorkforcemanagementBusinessunitWeekShorttermforecast';if(i==null)throw'Missing the required parameter "weekDateId" when calling deleteWorkforcemanagementBusinessunitWeekShorttermforecast';if(n==null||n==="")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:i,forecastId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}deleteWorkforcemanagementBusinessunitWorkplanbid(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling deleteWorkforcemanagementBusinessunitWorkplanbid';if(i==null||i==="")throw'Missing the required parameter "bidId" when calling deleteWorkforcemanagementBusinessunitWorkplanbid';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/workplanbids/{bidId}","DELETE",{businessUnitId:e,bidId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteWorkforcemanagementBusinessunitWorkplanbidGroup(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling deleteWorkforcemanagementBusinessunitWorkplanbidGroup';if(i==null||i==="")throw'Missing the required parameter "bidId" when calling deleteWorkforcemanagementBusinessunitWorkplanbidGroup';if(n==null||n==="")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:i,bidGroupId:n},{},{},{},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,i){if(i=i||{},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"],i.customHeaders)}deleteWorkforcemanagementManagementunitTimeofflimit(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling deleteWorkforcemanagementManagementunitTimeofflimit';if(i==null||i==="")throw'Missing the required parameter "timeOffLimitId" when calling deleteWorkforcemanagementManagementunitTimeofflimit';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/timeofflimits/{timeOffLimitId}","DELETE",{managementUnitId:e,timeOffLimitId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteWorkforcemanagementManagementunitTimeoffplan(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling deleteWorkforcemanagementManagementunitTimeoffplan';if(i==null||i==="")throw'Missing the required parameter "timeOffPlanId" when calling deleteWorkforcemanagementManagementunitTimeoffplan';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/timeoffplans/{timeOffPlanId}","DELETE",{managementUnitId:e,timeOffPlanId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteWorkforcemanagementManagementunitWorkplan(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling deleteWorkforcemanagementManagementunitWorkplan';if(i==null||i==="")throw'Missing the required parameter "workPlanId" when calling deleteWorkforcemanagementManagementunitWorkplan';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/workplans/{workPlanId}","DELETE",{managementUnitId:e,workPlanId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteWorkforcemanagementManagementunitWorkplanrotation(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling deleteWorkforcemanagementManagementunitWorkplanrotation';if(i==null||i==="")throw'Missing the required parameter "workPlanRotationId" when calling deleteWorkforcemanagementManagementunitWorkplanrotation';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/workplanrotations/{workPlanRotationId}","DELETE",{managementUnitId:e,workPlanRotationId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementAdherence(e,i){if(i=i||{},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"],i.customHeaders)}getWorkforcemanagementAdherenceExplanation(e,i){if(i=i||{},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"],i.customHeaders)}getWorkforcemanagementAdherenceExplanationsJob(e,i){if(i=i||{},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"],i.customHeaders)}getWorkforcemanagementAdherenceHistoricalBulkJob(e,i){if(i=i||{},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"],i.customHeaders)}getWorkforcemanagementAdherenceHistoricalJob(e,i){if(i=i||{},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"],i.customHeaders)}getWorkforcemanagementAgentAdherenceExplanation(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "agentId" when calling getWorkforcemanagementAgentAdherenceExplanation';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementAgentManagementunit(e,i){if(i=i||{},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"],i.customHeaders)}getWorkforcemanagementAgentsMeAdherenceHistoricalJob(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getWorkforcemanagementAlternativeshiftsOffersSearchJob(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getWorkforcemanagementAlternativeshiftsTradesStateJob(e,i){if(i=i||{},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"],i.customHeaders)}getWorkforcemanagementBusinessunit(e,i){if(i=i||{},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(i.expand,"multi"),includeSchedulingDefaultMessageSeverities:i.includeSchedulingDefaultMessageSeverities},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getWorkforcemanagementBusinessunitActivitycode(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitActivitycode';if(i==null||i==="")throw'Missing the required parameter "activityCodeId" when calling getWorkforcemanagementBusinessunitActivitycode';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/activitycodes/{activityCodeId}","GET",{businessUnitId:e,activityCodeId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementBusinessunitActivitycodes(e,i){if(i=i||{},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:i.forceDownloadService},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getWorkforcemanagementBusinessunitActivityplan(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitActivityplan';if(i==null||i==="")throw'Missing the required parameter "activityPlanId" when calling getWorkforcemanagementBusinessunitActivityplan';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/activityplans/{activityPlanId}","GET",{businessUnitId:e,activityPlanId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementBusinessunitActivityplanRunsJob(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitActivityplanRunsJob';if(i==null||i==="")throw'Missing the required parameter "activityPlanId" when calling getWorkforcemanagementBusinessunitActivityplanRunsJob';if(n==null||n==="")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:i,jobId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getWorkforcemanagementBusinessunitActivityplans(e,i){if(i=i||{},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:i.state},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getWorkforcemanagementBusinessunitActivityplansJobs(e,i){if(i=i||{},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"],i.customHeaders)}getWorkforcemanagementBusinessunitAlternativeshiftsSettings(e,i){if(i=i||{},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"],i.customHeaders)}getWorkforcemanagementBusinessunitAlternativeshiftsTrade(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitAlternativeshiftsTrade';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementBusinessunitAlternativeshiftsTradesSearchJob(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitAlternativeshiftsTradesSearchJob';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementBusinessunitCapacityplan(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitCapacityplan';if(i==null||i==="")throw'Missing the required parameter "capacityPlanId" when calling getWorkforcemanagementBusinessunitCapacityplan';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/capacityplans/{capacityPlanId}","GET",{businessUnitId:e,capacityPlanId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementBusinessunitCapacityplanStaffinggroupallocations(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitCapacityplanStaffinggroupallocations';if(i==null||i==="")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:i},{granularity:n.granularity},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementBusinessunitCapacityplanStaffingrequirements(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitCapacityplanStaffingrequirements';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementBusinessunitCapacityplanningLongtermrequirementsAutomaticbestmethodWeekForecast(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitCapacityplanningLongtermrequirementsAutomaticbestmethodWeekForecast';if(i==null)throw'Missing the required parameter "weekDateId" when calling getWorkforcemanagementBusinessunitCapacityplanningLongtermrequirementsAutomaticbestmethodWeekForecast';if(n==null||n==="")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:i,forecastId:n},{granularity:a.granularity},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getWorkforcemanagementBusinessunitCapacityplans(e,i){if(i=i||{},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"],i.customHeaders)}getWorkforcemanagementBusinessunitIntradayPlanninggroups(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitIntradayPlanninggroups';if(i==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:i},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementBusinessunitMainforecastContinuousforecastSession(e,i){if(i=i||{},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"],i.customHeaders)}getWorkforcemanagementBusinessunitMainforecastContinuousforecastSessionSessionId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitMainforecastContinuousforecastSessionSessionId';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementBusinessunitMainforecastContinuousforecastSessionSessionIdSnapshotSnapshotId(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitMainforecastContinuousforecastSessionSessionIdSnapshotSnapshotId';if(i==null||i==="")throw'Missing the required parameter "sessionId" when calling getWorkforcemanagementBusinessunitMainforecastContinuousforecastSessionSessionIdSnapshotSnapshotId';if(n==null||n==="")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:i,snapshotId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getWorkforcemanagementBusinessunitManagementunits(e,i){if(i=i||{},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:i.feature,divisionId:i.divisionId},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getWorkforcemanagementBusinessunitMinimumstaffingSettings(e,i){if(i=i||{},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"],i.customHeaders)}getWorkforcemanagementBusinessunitPlanninggroup(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitPlanninggroup';if(i==null||i==="")throw'Missing the required parameter "planningGroupId" when calling getWorkforcemanagementBusinessunitPlanninggroup';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/planninggroups/{planningGroupId}","GET",{businessUnitId:e,planningGroupId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementBusinessunitPlanninggroups(e,i){if(i=i||{},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"],i.customHeaders)}getWorkforcemanagementBusinessunitSchedulerSettings(e,i){if(i=i||{},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"],i.customHeaders)}getWorkforcemanagementBusinessunitSchedulingRun(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitSchedulingRun';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementBusinessunitSchedulingRunResult(e,i,n,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitSchedulingRunResult';if(i==null||i==="")throw'Missing the required parameter "runId" when calling getWorkforcemanagementBusinessunitSchedulingRunResult';if(n==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:i},{managementUnitIds:this.apiClient.buildCollectionParam(n,"multi"),expand:this.apiClient.buildCollectionParam(a,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}getWorkforcemanagementBusinessunitSchedulingRuns(e,i){if(i=i||{},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"],i.customHeaders)}getWorkforcemanagementBusinessunitServicegoaltemplate(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitServicegoaltemplate';if(i==null||i==="")throw'Missing the required parameter "serviceGoalTemplateId" when calling getWorkforcemanagementBusinessunitServicegoaltemplate';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/servicegoaltemplates/{serviceGoalTemplateId}","GET",{businessUnitId:e,serviceGoalTemplateId:i},{expand:this.apiClient.buildCollectionParam(n.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementBusinessunitServicegoaltemplates(e,i){if(i=i||{},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(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getWorkforcemanagementBusinessunitShifttradingTradesEvaluateJob(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitShifttradingTradesEvaluateJob';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementBusinessunitShifttradingTradesQueryJob(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitShifttradingTradesQueryJob';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementBusinessunitShifttradingTradesStateBulkJob(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitShifttradingTradesStateBulkJob';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementBusinessunitShifttradingUnmatchedSearchJob(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitShifttradingUnmatchedSearchJob';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementBusinessunitShifttradingWeeksSummaryJob(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitShifttradingWeeksSummaryJob';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementBusinessunitStaffinggroup(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitStaffinggroup';if(i==null||i==="")throw'Missing the required parameter "staffingGroupId" when calling getWorkforcemanagementBusinessunitStaffinggroup';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/staffinggroups/{staffingGroupId}","GET",{businessUnitId:e,staffingGroupId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementBusinessunitStaffinggroups(e,i){if(i=i||{},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:i.managementUnitId,forceDownloadService:i.forceDownloadService},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getWorkforcemanagementBusinessunitTimeofflimit(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitTimeofflimit';if(i==null||i==="")throw'Missing the required parameter "timeOffLimitId" when calling getWorkforcemanagementBusinessunitTimeofflimit';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/timeofflimits/{timeOffLimitId}","GET",{businessUnitId:e,timeOffLimitId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementBusinessunitTimeofflimits(e,i){if(i=i||{},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:i.managementUnitId},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getWorkforcemanagementBusinessunitTimeoffplan(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitTimeoffplan';if(i==null||i==="")throw'Missing the required parameter "timeOffPlanId" when calling getWorkforcemanagementBusinessunitTimeoffplan';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/timeoffplans/{timeOffPlanId}","GET",{businessUnitId:e,timeOffPlanId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementBusinessunitTimeoffplans(e,i){if(i=i||{},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:i.managementUnitId,forceDownloadService:i.forceDownloadService},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getWorkforcemanagementBusinessunitUsers(e,i){if(i=i||{},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(i.managementUnitIds,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getWorkforcemanagementBusinessunitWeekSchedule(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitWeekSchedule';if(i==null)throw'Missing the required parameter "weekId" when calling getWorkforcemanagementBusinessunitWeekSchedule';if(n==null||n==="")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:i,scheduleId:n},{expand:a.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getWorkforcemanagementBusinessunitWeekScheduleGenerationresults(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitWeekScheduleGenerationresults';if(i==null)throw'Missing the required parameter "weekId" when calling getWorkforcemanagementBusinessunitWeekScheduleGenerationresults';if(n==null||n==="")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:i,scheduleId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getWorkforcemanagementBusinessunitWeekScheduleHeadcountforecast(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitWeekScheduleHeadcountforecast';if(i==null)throw'Missing the required parameter "weekId" when calling getWorkforcemanagementBusinessunitWeekScheduleHeadcountforecast';if(n==null||n==="")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:i,scheduleId:n},{forceDownload:a.forceDownload},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getWorkforcemanagementBusinessunitWeekScheduleHistoryAgent(e,i,n,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitWeekScheduleHistoryAgent';if(i==null)throw'Missing the required parameter "weekId" when calling getWorkforcemanagementBusinessunitWeekScheduleHistoryAgent';if(n==null||n==="")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:i,scheduleId:n,agentId:a},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}getWorkforcemanagementBusinessunitWeekSchedulePerformancepredictions(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitWeekSchedulePerformancepredictions';if(i==null||i==="")throw'Missing the required parameter "weekId" when calling getWorkforcemanagementBusinessunitWeekSchedulePerformancepredictions';if(n==null||n==="")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:i,scheduleId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getWorkforcemanagementBusinessunitWeekSchedulePerformancepredictionsRecalculation(e,i,n,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitWeekSchedulePerformancepredictionsRecalculation';if(i==null||i==="")throw'Missing the required parameter "weekId" when calling getWorkforcemanagementBusinessunitWeekSchedulePerformancepredictionsRecalculation';if(n==null||n==="")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:i,scheduleId:n,recalculationId:a},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}getWorkforcemanagementBusinessunitWeekSchedules(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitWeekSchedules';if(i==null||i==="")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:i},{includeOnlyPublished:n.includeOnlyPublished,expand:n.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementBusinessunitWeekShorttermforecast(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitWeekShorttermforecast';if(i==null)throw'Missing the required parameter "weekDateId" when calling getWorkforcemanagementBusinessunitWeekShorttermforecast';if(n==null||n==="")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:i,forecastId:n},{expand:this.apiClient.buildCollectionParam(a.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getWorkforcemanagementBusinessunitWeekShorttermforecastData(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitWeekShorttermforecastData';if(i==null)throw'Missing the required parameter "weekDateId" when calling getWorkforcemanagementBusinessunitWeekShorttermforecastData';if(n==null||n==="")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:i,forecastId:n},{weekNumber:a.weekNumber,forceDownloadService:a.forceDownloadService},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getWorkforcemanagementBusinessunitWeekShorttermforecastGenerationresults(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitWeekShorttermforecastGenerationresults';if(i==null)throw'Missing the required parameter "weekDateId" when calling getWorkforcemanagementBusinessunitWeekShorttermforecastGenerationresults';if(n==null||n==="")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:i,forecastId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getWorkforcemanagementBusinessunitWeekShorttermforecastLongtermforecastdata(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitWeekShorttermforecastLongtermforecastdata';if(i==null)throw'Missing the required parameter "weekDateId" when calling getWorkforcemanagementBusinessunitWeekShorttermforecastLongtermforecastdata';if(n==null||n==="")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:i,forecastId:n},{forceDownloadService:a.forceDownloadService},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getWorkforcemanagementBusinessunitWeekShorttermforecastPlanninggroups(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitWeekShorttermforecastPlanninggroups';if(i==null)throw'Missing the required parameter "weekDateId" when calling getWorkforcemanagementBusinessunitWeekShorttermforecastPlanninggroups';if(n==null||n==="")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:i,forecastId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getWorkforcemanagementBusinessunitWeekShorttermforecastStaffingrequirement(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitWeekShorttermforecastStaffingrequirement';if(i==null)throw'Missing the required parameter "weekDateId" when calling getWorkforcemanagementBusinessunitWeekShorttermforecastStaffingrequirement';if(n==null||n==="")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:i,forecastId:n},{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,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitWeekShorttermforecasts';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementBusinessunitWorkplanbid(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitWorkplanbid';if(i==null||i==="")throw'Missing the required parameter "bidId" when calling getWorkforcemanagementBusinessunitWorkplanbid';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/workplanbids/{bidId}","GET",{businessUnitId:e,bidId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementBusinessunitWorkplanbidGroup(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitWorkplanbidGroup';if(i==null||i==="")throw'Missing the required parameter "bidId" when calling getWorkforcemanagementBusinessunitWorkplanbidGroup';if(n==null||n==="")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:i,bidGroupId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getWorkforcemanagementBusinessunitWorkplanbidGroupPreferences(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitWorkplanbidGroupPreferences';if(i==null||i==="")throw'Missing the required parameter "bidId" when calling getWorkforcemanagementBusinessunitWorkplanbidGroupPreferences';if(n==null||n==="")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:i,bidGroupId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getWorkforcemanagementBusinessunitWorkplanbidGroupsSummary(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitWorkplanbidGroupsSummary';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementBusinessunitWorkplanbids(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getWorkforcemanagementManagementunit(e,i){if(i=i||{},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(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getWorkforcemanagementManagementunitActivitycodes(e,i){if(i=i||{},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"],i.customHeaders)}getWorkforcemanagementManagementunitAdherence(e,i){if(i=i||{},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:i.forceDownloadService},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getWorkforcemanagementManagementunitAgent(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling getWorkforcemanagementManagementunitAgent';if(i==null||i==="")throw'Missing the required parameter "agentId" when calling getWorkforcemanagementManagementunitAgent';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/agents/{agentId}","GET",{managementUnitId:e,agentId:i},{excludeCapabilities:n.excludeCapabilities,expand:this.apiClient.buildCollectionParam(n.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementManagementunitAgentShifttrades(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling getWorkforcemanagementManagementunitAgentShifttrades';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementManagementunitShifttradesMatched(e,i){if(i=i||{},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"],i.customHeaders)}getWorkforcemanagementManagementunitShifttradesUsers(e,i){if(i=i||{},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"],i.customHeaders)}getWorkforcemanagementManagementunitTimeofflimit(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling getWorkforcemanagementManagementunitTimeofflimit';if(i==null||i==="")throw'Missing the required parameter "timeOffLimitId" when calling getWorkforcemanagementManagementunitTimeofflimit';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/timeofflimits/{timeOffLimitId}","GET",{managementUnitId:e,timeOffLimitId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementManagementunitTimeofflimits(e,i){if(i=i||{},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"],i.customHeaders)}getWorkforcemanagementManagementunitTimeoffplan(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling getWorkforcemanagementManagementunitTimeoffplan';if(i==null||i==="")throw'Missing the required parameter "timeOffPlanId" when calling getWorkforcemanagementManagementunitTimeoffplan';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/timeoffplans/{timeOffPlanId}","GET",{managementUnitId:e,timeOffPlanId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementManagementunitTimeoffplans(e,i){if(i=i||{},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"],i.customHeaders)}getWorkforcemanagementManagementunitUserTimeoffrequest(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling getWorkforcemanagementManagementunitUserTimeoffrequest';if(i==null||i==="")throw'Missing the required parameter "userId" when calling getWorkforcemanagementManagementunitUserTimeoffrequest';if(n==null||n==="")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:i,timeOffRequestId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getWorkforcemanagementManagementunitUserTimeoffrequestTimeofflimits(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling getWorkforcemanagementManagementunitUserTimeoffrequestTimeofflimits';if(i==null||i==="")throw'Missing the required parameter "userId" when calling getWorkforcemanagementManagementunitUserTimeoffrequestTimeofflimits';if(n==null||n==="")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:i,timeOffRequestId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getWorkforcemanagementManagementunitUserTimeoffrequests(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling getWorkforcemanagementManagementunitUserTimeoffrequests';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementManagementunitUsers(e,i){if(i=i||{},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"],i.customHeaders)}getWorkforcemanagementManagementunitWeekSchedule(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling getWorkforcemanagementManagementunitWeekSchedule';if(i==null||i==="")throw'Missing the required parameter "weekId" when calling getWorkforcemanagementManagementunitWeekSchedule';if(n==null||n==="")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:i,scheduleId:n},{expand:a.expand,forceDownloadService:a.forceDownloadService},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getWorkforcemanagementManagementunitWeekSchedules(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling getWorkforcemanagementManagementunitWeekSchedules';if(i==null||i==="")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:i},{includeOnlyPublished:n.includeOnlyPublished,earliestWeekDate:n.earliestWeekDate,latestWeekDate:n.latestWeekDate},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementManagementunitWeekShifttrades(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling getWorkforcemanagementManagementunitWeekShifttrades';if(i==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:i},{evaluateMatches:n.evaluateMatches,includeCrossWeekShifts:n.includeCrossWeekShifts,forceDownloadService:n.forceDownloadService},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementManagementunitWorkplan(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling getWorkforcemanagementManagementunitWorkplan';if(i==null||i==="")throw'Missing the required parameter "workPlanId" when calling getWorkforcemanagementManagementunitWorkplan';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/workplans/{workPlanId}","GET",{managementUnitId:e,workPlanId:i},{includeOnly:this.apiClient.buildCollectionParam(n.includeOnly,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementManagementunitWorkplanrotation(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling getWorkforcemanagementManagementunitWorkplanrotation';if(i==null||i==="")throw'Missing the required parameter "workPlanRotationId" when calling getWorkforcemanagementManagementunitWorkplanrotation';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/workplanrotations/{workPlanRotationId}","GET",{managementUnitId:e,workPlanRotationId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementManagementunitWorkplanrotations(e,i){if(i=i||{},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(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getWorkforcemanagementManagementunitWorkplans(e,i){if(i=i||{},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(i.expand,"multi"),exclude:this.apiClient.buildCollectionParam(i.exclude,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getWorkforcemanagementManagementunits(e){return e=e||{},this.apiClient.callApi("/api/v2/workforcemanagement/managementunits","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,expand:e.expand,feature:e.feature,divisionId:e.divisionId},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getWorkforcemanagementManagementunitsDivisionviews(e){return e=e||{},this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/divisionviews","GET",{},{divisionId:this.apiClient.buildCollectionParam(e.divisionId,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getWorkforcemanagementNotifications(e){return e=e||{},this.apiClient.callApi("/api/v2/workforcemanagement/notifications","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getWorkforcemanagementSchedulingjob(e,i){if(i=i||{},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"],i.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,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "tradeId" when calling getWorkforcemanagementShifttradingTradeJob';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementShifttradingTradeMatchJob(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "tradeId" when calling getWorkforcemanagementShifttradingTradeMatchJob';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementShifttradingTradeStateJob(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "tradeId" when calling getWorkforcemanagementShifttradingTradeStateJob';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementShifttradingTradesJob(e,i){if(i=i||{},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"],i.customHeaders)}getWorkforcemanagementShifttradingTradesMineQueryJob(e,i){if(i=i||{},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"],i.customHeaders)}getWorkforcemanagementShrinkageJob(e,i){if(i=i||{},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"],i.customHeaders)}getWorkforcemanagementTeamAdherence(e,i){if(i=i||{},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"],i.customHeaders)}getWorkforcemanagementTimeoffbalanceJob(e,i){if(i=i||{},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"],i.customHeaders)}getWorkforcemanagementTimeoffrequest(e,i){if(i=i||{},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"],i.customHeaders)}getWorkforcemanagementTimeoffrequestWaitlistpositions(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getWorkforcemanagementUserWorkplanbidranks(e,i){if(i=i||{},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"],i.customHeaders)}getWorkforcemanagementWorkplanbidPreferences(e,i){if(i=i||{},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"],i.customHeaders)}getWorkforcemanagementWorkplanbidWorkplans(e,i){if(i=i||{},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"],i.customHeaders)}getWorkforcemanagementWorkplanbids(e){return e=e||{},this.apiClient.callApi("/api/v2/workforcemanagement/workplanbids","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}patchWorkforcemanagementAgentAdherenceExplanation(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "agentId" when calling patchWorkforcemanagementAgentAdherenceExplanation';if(i==null||i==="")throw'Missing the required parameter "explanationId" when calling patchWorkforcemanagementAgentAdherenceExplanation';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchWorkforcemanagementAlternativeshiftsTrade(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "tradeId" when calling patchWorkforcemanagementAlternativeshiftsTrade';if(i==null)throw'Missing the required parameter "body" when calling patchWorkforcemanagementAlternativeshiftsTrade';return this.apiClient.callApi("/api/v2/workforcemanagement/alternativeshifts/trades/{tradeId}","PATCH",{tradeId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchWorkforcemanagementAlternativeshiftsTradesStateJobs(e,i){if(i=i||{},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"],i.customHeaders)}patchWorkforcemanagementBusinessunit(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling patchWorkforcemanagementBusinessunit';if(i==null)throw'Missing the required parameter "body" when calling patchWorkforcemanagementBusinessunit';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}","PATCH",{businessUnitId:e},{includeSchedulingDefaultMessageSeverities:n.includeSchedulingDefaultMessageSeverities},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchWorkforcemanagementBusinessunitActivitycode(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling patchWorkforcemanagementBusinessunitActivitycode';if(i==null||i==="")throw'Missing the required parameter "activityCodeId" when calling patchWorkforcemanagementBusinessunitActivitycode';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchWorkforcemanagementBusinessunitActivityplan(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling patchWorkforcemanagementBusinessunitActivityplan';if(i==null||i==="")throw'Missing the required parameter "activityPlanId" when calling patchWorkforcemanagementBusinessunitActivityplan';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchWorkforcemanagementBusinessunitAlternativeshiftsSettings(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling patchWorkforcemanagementBusinessunitAlternativeshiftsSettings';if(i==null)throw'Missing the required parameter "body" when calling patchWorkforcemanagementBusinessunitAlternativeshiftsSettings';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/alternativeshifts/settings","PATCH",{businessUnitId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchWorkforcemanagementBusinessunitCapacityplan(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling patchWorkforcemanagementBusinessunitCapacityplan';if(i==null||i==="")throw'Missing the required parameter "capacityPlanId" when calling patchWorkforcemanagementBusinessunitCapacityplan';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchWorkforcemanagementBusinessunitMinimumstaffingSettings(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling patchWorkforcemanagementBusinessunitMinimumstaffingSettings';if(i==null)throw'Missing the required parameter "body" when calling patchWorkforcemanagementBusinessunitMinimumstaffingSettings';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/minimumstaffing/settings","PATCH",{businessUnitId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchWorkforcemanagementBusinessunitPlanninggroup(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling patchWorkforcemanagementBusinessunitPlanninggroup';if(i==null||i==="")throw'Missing the required parameter "planningGroupId" when calling patchWorkforcemanagementBusinessunitPlanninggroup';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchWorkforcemanagementBusinessunitSchedulerSettings(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling patchWorkforcemanagementBusinessunitSchedulerSettings';if(i==null)throw'Missing the required parameter "body" when calling patchWorkforcemanagementBusinessunitSchedulerSettings';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/scheduler/settings","PATCH",{businessUnitId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchWorkforcemanagementBusinessunitSchedulingRun(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling patchWorkforcemanagementBusinessunitSchedulingRun';if(i==null||i==="")throw'Missing the required parameter "runId" when calling patchWorkforcemanagementBusinessunitSchedulingRun';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchWorkforcemanagementBusinessunitServicegoaltemplate(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling patchWorkforcemanagementBusinessunitServicegoaltemplate';if(i==null||i==="")throw'Missing the required parameter "serviceGoalTemplateId" when calling patchWorkforcemanagementBusinessunitServicegoaltemplate';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchWorkforcemanagementBusinessunitStaffinggroup(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling patchWorkforcemanagementBusinessunitStaffinggroup';if(i==null||i==="")throw'Missing the required parameter "staffingGroupId" when calling patchWorkforcemanagementBusinessunitStaffinggroup';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchWorkforcemanagementBusinessunitTimeoffplan(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling patchWorkforcemanagementBusinessunitTimeoffplan';if(i==null||i==="")throw'Missing the required parameter "timeOffPlanId" when calling patchWorkforcemanagementBusinessunitTimeoffplan';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchWorkforcemanagementBusinessunitWorkplanbid(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling patchWorkforcemanagementBusinessunitWorkplanbid';if(i==null||i==="")throw'Missing the required parameter "bidId" when calling patchWorkforcemanagementBusinessunitWorkplanbid';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchWorkforcemanagementBusinessunitWorkplanbidGroup(e,i,n,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling patchWorkforcemanagementBusinessunitWorkplanbidGroup';if(i==null||i==="")throw'Missing the required parameter "bidId" when calling patchWorkforcemanagementBusinessunitWorkplanbidGroup';if(n==null||n==="")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:i,bidGroupId:n},{},{},{},a,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}patchWorkforcemanagementBusinessunitWorkplanbidGroupPreferences(e,i,n,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling patchWorkforcemanagementBusinessunitWorkplanbidGroupPreferences';if(i==null||i==="")throw'Missing the required parameter "bidId" when calling patchWorkforcemanagementBusinessunitWorkplanbidGroupPreferences';if(n==null||n==="")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:i,bidGroupId:n},{},{},{},a,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}patchWorkforcemanagementManagementunit(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling patchWorkforcemanagementManagementunit';if(i==null)throw'Missing the required parameter "body" when calling patchWorkforcemanagementManagementunit';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}","PATCH",{managementUnitId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchWorkforcemanagementManagementunitAgents(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling patchWorkforcemanagementManagementunitAgents';if(i==null)throw'Missing the required parameter "body" when calling patchWorkforcemanagementManagementunitAgents';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/agents","PATCH",{managementUnitId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchWorkforcemanagementManagementunitAgentsWorkplansBulk(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling patchWorkforcemanagementManagementunitAgentsWorkplansBulk';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchWorkforcemanagementManagementunitTimeofflimit(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling patchWorkforcemanagementManagementunitTimeofflimit';if(i==null||i==="")throw'Missing the required parameter "timeOffLimitId" when calling patchWorkforcemanagementManagementunitTimeofflimit';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchWorkforcemanagementManagementunitTimeoffplan(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling patchWorkforcemanagementManagementunitTimeoffplan';if(i==null||i==="")throw'Missing the required parameter "timeOffPlanId" when calling patchWorkforcemanagementManagementunitTimeoffplan';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchWorkforcemanagementManagementunitTimeoffrequestUserIntegrationstatus(e,i,n,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling patchWorkforcemanagementManagementunitTimeoffrequestUserIntegrationstatus';if(i==null||i==="")throw'Missing the required parameter "timeOffRequestId" when calling patchWorkforcemanagementManagementunitTimeoffrequestUserIntegrationstatus';if(n==null||n==="")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:i,userId:n},{},{},{},a,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}patchWorkforcemanagementManagementunitUnavailabletimesSettings(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling patchWorkforcemanagementManagementunitUnavailabletimesSettings';if(i==null)throw'Missing the required parameter "body" when calling patchWorkforcemanagementManagementunitUnavailabletimesSettings';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/unavailabletimes/settings","PATCH",{managementUnitId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchWorkforcemanagementManagementunitUserTimeoffrequest(e,i,n,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling patchWorkforcemanagementManagementunitUserTimeoffrequest';if(i==null||i==="")throw'Missing the required parameter "userId" when calling patchWorkforcemanagementManagementunitUserTimeoffrequest';if(n==null||n==="")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:i,timeOffRequestId:n},{},{},{},a,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}patchWorkforcemanagementManagementunitWeekShifttrade(e,i,n,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling patchWorkforcemanagementManagementunitWeekShifttrade';if(i==null)throw'Missing the required parameter "weekDateId" when calling patchWorkforcemanagementManagementunitWeekShifttrade';if(n==null||n==="")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:i,tradeId:n},{},{},{},a,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}patchWorkforcemanagementManagementunitWorkplan(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling patchWorkforcemanagementManagementunitWorkplan';if(i==null||i==="")throw'Missing the required parameter "workPlanId" when calling patchWorkforcemanagementManagementunitWorkplan';if(n==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:i},{validationMode:a.validationMode},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchWorkforcemanagementManagementunitWorkplanrotation(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling patchWorkforcemanagementManagementunitWorkplanrotation';if(i==null||i==="")throw'Missing the required parameter "workPlanRotationId" when calling patchWorkforcemanagementManagementunitWorkplanrotation';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchWorkforcemanagementTimeoffrequest(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "timeOffRequestId" when calling patchWorkforcemanagementTimeoffrequest';if(i==null)throw'Missing the required parameter "body" when calling patchWorkforcemanagementTimeoffrequest';return this.apiClient.callApi("/api/v2/workforcemanagement/timeoffrequests/{timeOffRequestId}","PATCH",{timeOffRequestId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchWorkforcemanagementUnavailabletimes(e,i){if(i=i||{},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"],i.customHeaders)}patchWorkforcemanagementUserWorkplanbidranks(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling patchWorkforcemanagementUserWorkplanbidranks';if(i==null)throw'Missing the required parameter "body" when calling patchWorkforcemanagementUserWorkplanbidranks';return this.apiClient.callApi("/api/v2/workforcemanagement/users/{userId}/workplanbidranks","PATCH",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchWorkforcemanagementUsersWorkplanbidranksBulk(e,i){if(i=i||{},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"],i.customHeaders)}patchWorkforcemanagementWorkplanbidPreferences(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "bidId" when calling patchWorkforcemanagementWorkplanbidPreferences';if(i==null)throw'Missing the required parameter "body" when calling patchWorkforcemanagementWorkplanbidPreferences';return this.apiClient.callApi("/api/v2/workforcemanagement/workplanbids/{bidId}/preferences","PATCH",{bidId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementAdherenceExplanations(e,i){if(i=i||{},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"],i.customHeaders)}postWorkforcemanagementAdherenceExplanationsQuery(e,i){if(i=i||{},e==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementAdherenceExplanationsQuery';return this.apiClient.callApi("/api/v2/workforcemanagement/adherence/explanations/query","POST",{},{forceAsync:i.forceAsync,forceDownloadService:i.forceDownloadService},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postWorkforcemanagementAdherenceHistorical(e){return e=e||{},this.apiClient.callApi("/api/v2/workforcemanagement/adherence/historical","POST",{},{},{},{},e.body,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}postWorkforcemanagementAdherenceHistoricalBulk(e,i){if(i=i||{},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"],i.customHeaders)}postWorkforcemanagementAgentAdherenceExplanations(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "agentId" when calling postWorkforcemanagementAgentAdherenceExplanations';if(i==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementAgentAdherenceExplanations';return this.apiClient.callApi("/api/v2/workforcemanagement/agents/{agentId}/adherence/explanations","POST",{agentId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementAgentAdherenceExplanationsQuery(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "agentId" when calling postWorkforcemanagementAgentAdherenceExplanationsQuery';if(i==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:n.forceAsync,forceDownloadService:n.forceDownloadService},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementAgentUnavailabletimesQuery(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "agentId" when calling postWorkforcemanagementAgentUnavailabletimesQuery';if(i==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementAgentUnavailabletimesQuery';return this.apiClient.callApi("/api/v2/workforcemanagement/agents/{agentId}/unavailabletimes/query","POST",{agentId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementAgents(e,i){if(i=i||{},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"],i.customHeaders)}postWorkforcemanagementAgentsIntegrationsHrisQuery(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}postWorkforcemanagementAgentschedulesManagementunitsMine(e,i){if(i=i||{},e==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementAgentschedulesManagementunitsMine';return this.apiClient.callApi("/api/v2/workforcemanagement/agentschedules/managementunits/mine","POST",{},{forceAsync:i.forceAsync,forceDownloadService:i.forceDownloadService},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postWorkforcemanagementAgentschedulesMine(e,i){if(i=i||{},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"],i.customHeaders)}postWorkforcemanagementAlternativeshiftsOffersJobs(e,i){if(i=i||{},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"],i.customHeaders)}postWorkforcemanagementAlternativeshiftsOffersSearchJobs(e,i){if(i=i||{},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"],i.customHeaders)}postWorkforcemanagementAlternativeshiftsTrades(e,i){if(i=i||{},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"],i.customHeaders)}postWorkforcemanagementBusinessunitActivitycodes(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitActivitycodes';if(i==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunitActivitycodes';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/activitycodes","POST",{businessUnitId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementBusinessunitActivityplanRunsJobs(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitActivityplanRunsJobs';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementBusinessunitActivityplans(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitActivityplans';if(i==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunitActivityplans';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/activityplans","POST",{businessUnitId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementBusinessunitAdherenceExplanationsQuery(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitAdherenceExplanationsQuery';if(i==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:n.forceAsync,forceDownloadService:n.forceDownloadService},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementBusinessunitAgentschedulesSearch(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitAgentschedulesSearch';if(i==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:n.forceAsync,forceDownloadService:n.forceDownloadService},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementBusinessunitAlternativeshiftsTradesSearch(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitAlternativeshiftsTradesSearch';if(i==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:n.forceAsync},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementBusinessunitCapacityplanCopy(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitCapacityplanCopy';if(i==null||i==="")throw'Missing the required parameter "capacityPlanId" when calling postWorkforcemanagementBusinessunitCapacityplanCopy';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postWorkforcemanagementBusinessunitCapacityplanRequirementGenerate(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitCapacityplanRequirementGenerate';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementBusinessunitCapacityplanStaffinggroupallocations(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitCapacityplanStaffinggroupallocations';if(i==null||i==="")throw'Missing the required parameter "capacityPlanId" when calling postWorkforcemanagementBusinessunitCapacityplanStaffinggroupallocations';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postWorkforcemanagementBusinessunitCapacityplanStaffinggroupallocationshistoryQuery(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitCapacityplanStaffinggroupallocationshistoryQuery';if(i==null||i==="")throw'Missing the required parameter "capacityPlanId" when calling postWorkforcemanagementBusinessunitCapacityplanStaffinggroupallocationshistoryQuery';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postWorkforcemanagementBusinessunitCapacityplanningLongtermrequirementsAutomaticbestmethodWeekForecastForceregenerate(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitCapacityplanningLongtermrequirementsAutomaticbestmethodWeekForecastForceregenerate';if(i==null)throw'Missing the required parameter "weekDateId" when calling postWorkforcemanagementBusinessunitCapacityplanningLongtermrequirementsAutomaticbestmethodWeekForecastForceregenerate';if(n==null||n==="")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:i,forecastId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postWorkforcemanagementBusinessunitCapacityplans(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitCapacityplans';if(i==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunitCapacityplans';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/capacityplans","POST",{businessUnitId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementBusinessunitCapacityplansBulkRemove(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitCapacityplansBulkRemove';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementBusinessunitIntraday(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitIntraday';if(i==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunitIntraday';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/intraday","POST",{businessUnitId:e},{forceAsync:n.forceAsync},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementBusinessunitPlanninggroups(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitPlanninggroups';if(i==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunitPlanninggroups';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/planninggroups","POST",{businessUnitId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementBusinessunitServicegoaltemplates(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitServicegoaltemplates';if(i==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunitServicegoaltemplates';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/servicegoaltemplates","POST",{businessUnitId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementBusinessunitShifttradingTradesEvaluateJobs(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitShifttradingTradesEvaluateJobs';if(i==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:n.forceAsync,forceDownloadService:n.forceDownloadService},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementBusinessunitShifttradingTradesQueryJobs(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitShifttradingTradesQueryJobs';if(i==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:n.forceAsync,forceDownloadService:n.forceDownloadService},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementBusinessunitShifttradingTradesStateBulkJobs(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitShifttradingTradesStateBulkJobs';if(i==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:n.forceAsync,forceDownloadService:n.forceDownloadService},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementBusinessunitShifttradingUnmatchedSearchJobs(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitShifttradingUnmatchedSearchJobs';if(i==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:n.forceAsync,forceDownloadService:n.forceDownloadService},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementBusinessunitShifttradingWeeksSummaryJobs(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitShifttradingWeeksSummaryJobs';if(i==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:n.forceAsync},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementBusinessunitStaffinggroups(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitStaffinggroups';if(i==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunitStaffinggroups';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/staffinggroups","POST",{businessUnitId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementBusinessunitStaffinggroupsPlanninggroupsQuery(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitStaffinggroupsPlanninggroupsQuery';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementBusinessunitStaffinggroupsQuery(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitStaffinggroupsQuery';if(i==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:n.forceDownloadService},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementBusinessunitTimeofflimits(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitTimeofflimits';if(i==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunitTimeofflimits';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/timeofflimits","POST",{businessUnitId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementBusinessunitTimeofflimitsValuesQuery(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitTimeofflimitsValuesQuery';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementBusinessunitTimeoffplans(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitTimeoffplans';if(i==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunitTimeoffplans';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/timeoffplans","POST",{businessUnitId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementBusinessunitUnavailabletimesSchedulesQuery(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitUnavailabletimesSchedulesQuery';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementBusinessunitUnavailabletimesSettingsQuery(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitUnavailabletimesSettingsQuery';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementBusinessunitWeekScheduleAgentschedulesQuery(e,i,n,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitWeekScheduleAgentschedulesQuery';if(i==null)throw'Missing the required parameter "weekId" when calling postWorkforcemanagementBusinessunitWeekScheduleAgentschedulesQuery';if(n==null||n==="")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:i,scheduleId:n},{forceAsync:r.forceAsync,forceDownloadService:r.forceDownloadService},{},{},a,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}postWorkforcemanagementBusinessunitWeekScheduleCopy(e,i,n,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitWeekScheduleCopy';if(i==null)throw'Missing the required parameter "weekId" when calling postWorkforcemanagementBusinessunitWeekScheduleCopy';if(n==null||n==="")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:i,scheduleId:n},{},{},{},a,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}postWorkforcemanagementBusinessunitWeekSchedulePerformancepredictionsRecalculations(e,i,n,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitWeekSchedulePerformancepredictionsRecalculations';if(i==null||i==="")throw'Missing the required parameter "weekId" when calling postWorkforcemanagementBusinessunitWeekSchedulePerformancepredictionsRecalculations';if(n==null||n==="")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:i,scheduleId:n},{},{},{},a,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}postWorkforcemanagementBusinessunitWeekSchedulePerformancepredictionsRecalculationsUploadurl(e,i,n,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitWeekSchedulePerformancepredictionsRecalculationsUploadurl';if(i==null||i==="")throw'Missing the required parameter "weekId" when calling postWorkforcemanagementBusinessunitWeekSchedulePerformancepredictionsRecalculationsUploadurl';if(n==null||n==="")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:i,scheduleId:n},{},{},{},a,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}postWorkforcemanagementBusinessunitWeekScheduleReschedule(e,i,n,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitWeekScheduleReschedule';if(i==null)throw'Missing the required parameter "weekId" when calling postWorkforcemanagementBusinessunitWeekScheduleReschedule';if(n==null||n==="")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:i,scheduleId:n},{},{},{},a,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}postWorkforcemanagementBusinessunitWeekScheduleUpdate(e,i,n,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitWeekScheduleUpdate';if(i==null)throw'Missing the required parameter "weekId" when calling postWorkforcemanagementBusinessunitWeekScheduleUpdate';if(n==null||n==="")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:i,scheduleId:n},{},{},{},a,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}postWorkforcemanagementBusinessunitWeekScheduleUpdateUploadurl(e,i,n,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitWeekScheduleUpdateUploadurl';if(i==null)throw'Missing the required parameter "weekId" when calling postWorkforcemanagementBusinessunitWeekScheduleUpdateUploadurl';if(n==null||n==="")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:i,scheduleId:n},{},{},{},a,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}postWorkforcemanagementBusinessunitWeekSchedules(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitWeekSchedules';if(i==null)throw'Missing the required parameter "weekId" when calling postWorkforcemanagementBusinessunitWeekSchedules';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postWorkforcemanagementBusinessunitWeekSchedulesGenerate(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitWeekSchedulesGenerate';if(i==null)throw'Missing the required parameter "weekId" when calling postWorkforcemanagementBusinessunitWeekSchedulesGenerate';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postWorkforcemanagementBusinessunitWeekSchedulesImport(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitWeekSchedulesImport';if(i==null)throw'Missing the required parameter "weekId" when calling postWorkforcemanagementBusinessunitWeekSchedulesImport';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postWorkforcemanagementBusinessunitWeekSchedulesImportUploadurl(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitWeekSchedulesImportUploadurl';if(i==null)throw'Missing the required parameter "weekId" when calling postWorkforcemanagementBusinessunitWeekSchedulesImportUploadurl';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postWorkforcemanagementBusinessunitWeekShorttermforecastCopy(e,i,n,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitWeekShorttermforecastCopy';if(i==null)throw'Missing the required parameter "weekDateId" when calling postWorkforcemanagementBusinessunitWeekShorttermforecastCopy';if(n==null||n==="")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:i,forecastId:n},{forceAsync:r.forceAsync},{},{},a,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}postWorkforcemanagementBusinessunitWeekShorttermforecastsGenerate(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitWeekShorttermforecastsGenerate';if(i==null)throw'Missing the required parameter "weekDateId" when calling postWorkforcemanagementBusinessunitWeekShorttermforecastsGenerate';if(n==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:i},{forceAsync:a.forceAsync},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postWorkforcemanagementBusinessunitWeekShorttermforecastsImport(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitWeekShorttermforecastsImport';if(i==null)throw'Missing the required parameter "weekDateId" when calling postWorkforcemanagementBusinessunitWeekShorttermforecastsImport';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postWorkforcemanagementBusinessunitWeekShorttermforecastsImportUploadurl(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitWeekShorttermforecastsImportUploadurl';if(i==null)throw'Missing the required parameter "weekDateId" when calling postWorkforcemanagementBusinessunitWeekShorttermforecastsImportUploadurl';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postWorkforcemanagementBusinessunitWorkplanbidCopy(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitWorkplanbidCopy';if(i==null||i==="")throw'Missing the required parameter "bidId" when calling postWorkforcemanagementBusinessunitWorkplanbidCopy';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postWorkforcemanagementBusinessunitWorkplanbidGroups(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitWorkplanbidGroups';if(i==null||i==="")throw'Missing the required parameter "bidId" when calling postWorkforcemanagementBusinessunitWorkplanbidGroups';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postWorkforcemanagementBusinessunitWorkplanbids(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitWorkplanbids';if(i==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunitWorkplanbids';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/workplanbids","POST",{businessUnitId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementBusinessunits(e,i){if(i=i||{},e==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunits';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits","POST",{},{includeSchedulingDefaultMessageSeverities:i.includeSchedulingDefaultMessageSeverities},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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"],i.customHeaders)}postWorkforcemanagementHistoricaldataValidate(e,i){if(i=i||{},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"],i.customHeaders)}postWorkforcemanagementIntegrationsHriTimeofftypesJobs(e,i){if(i=i||{},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"],i.customHeaders)}postWorkforcemanagementManagementunitAgentsWorkplansQuery(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitAgentsWorkplansQuery';if(i==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:n.forceDownloadService},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementManagementunitAgentschedulesSearch(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitAgentschedulesSearch';if(i==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:n.forceAsync,forceDownloadService:n.forceDownloadService},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementManagementunitHistoricaladherencequery(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitHistoricaladherencequery';if(i==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementManagementunitHistoricaladherencequery';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/historicaladherencequery","POST",{managementUnitId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementManagementunitMove(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitMove';if(i==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementManagementunitMove';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/move","POST",{managementUnitId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementManagementunitSchedulesSearch(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitSchedulesSearch';if(i==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementManagementunitSchedulesSearch';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/schedules/search","POST",{managementUnitId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementManagementunitShrinkageJobs(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitShrinkageJobs';if(i==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementManagementunitShrinkageJobs';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/shrinkage/jobs","POST",{managementUnitId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementManagementunitTimeofflimits(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitTimeofflimits';if(i==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementManagementunitTimeofflimits';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/timeofflimits","POST",{managementUnitId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementManagementunitTimeofflimitsValuesQuery(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitTimeofflimitsValuesQuery';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementManagementunitTimeoffplans(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitTimeoffplans';if(i==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementManagementunitTimeoffplans';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/timeoffplans","POST",{managementUnitId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementManagementunitTimeoffrequests(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitTimeoffrequests';if(i==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementManagementunitTimeoffrequests';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/timeoffrequests","POST",{managementUnitId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementManagementunitTimeoffrequestsIntegrationstatusQuery(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitTimeoffrequestsIntegrationstatusQuery';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementManagementunitTimeoffrequestsQuery(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitTimeoffrequestsQuery';if(i==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:n.forceDownloadService},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementManagementunitTimeoffrequestsWaitlistpositionsQuery(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitTimeoffrequestsWaitlistpositionsQuery';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementManagementunitUserTimeoffbalanceJobs(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitUserTimeoffbalanceJobs';if(i==null||i==="")throw'Missing the required parameter "userId" when calling postWorkforcemanagementManagementunitUserTimeoffbalanceJobs';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postWorkforcemanagementManagementunitUserTimeoffrequestTimeoffbalanceJobs(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitUserTimeoffrequestTimeoffbalanceJobs';if(i==null||i==="")throw'Missing the required parameter "userId" when calling postWorkforcemanagementManagementunitUserTimeoffrequestTimeoffbalanceJobs';if(n==null||n==="")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:i,timeOffRequestId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postWorkforcemanagementManagementunitUserTimeoffrequestsEstimate(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitUserTimeoffrequestsEstimate';if(i==null||i==="")throw'Missing the required parameter "userId" when calling postWorkforcemanagementManagementunitUserTimeoffrequestsEstimate';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postWorkforcemanagementManagementunitWeekShifttradeMatch(e,i,n,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitWeekShifttradeMatch';if(i==null)throw'Missing the required parameter "weekDateId" when calling postWorkforcemanagementManagementunitWeekShifttradeMatch';if(n==null||n==="")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:i,tradeId:n},{},{},{},a,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}postWorkforcemanagementManagementunitWeekShifttrades(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitWeekShifttrades';if(i==null)throw'Missing the required parameter "weekDateId" when calling postWorkforcemanagementManagementunitWeekShifttrades';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postWorkforcemanagementManagementunitWeekShifttradesSearch(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitWeekShifttradesSearch';if(i==null)throw'Missing the required parameter "weekDateId" when calling postWorkforcemanagementManagementunitWeekShifttradesSearch';if(n==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:i},{forceDownloadService:a.forceDownloadService},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postWorkforcemanagementManagementunitWeekShifttradesStateBulk(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitWeekShifttradesStateBulk';if(i==null)throw'Missing the required parameter "weekDateId" when calling postWorkforcemanagementManagementunitWeekShifttradesStateBulk';if(n==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:i},{forceAsync:a.forceAsync},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postWorkforcemanagementManagementunitWorkplanCopy(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitWorkplanCopy';if(i==null||i==="")throw'Missing the required parameter "workPlanId" when calling postWorkforcemanagementManagementunitWorkplanCopy';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postWorkforcemanagementManagementunitWorkplanValidate(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitWorkplanValidate';if(i==null||i==="")throw'Missing the required parameter "workPlanId" when calling postWorkforcemanagementManagementunitWorkplanValidate';if(n==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:i},{expand:this.apiClient.buildCollectionParam(a.expand,"multi")},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postWorkforcemanagementManagementunitWorkplanrotationCopy(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitWorkplanrotationCopy';if(i==null||i==="")throw'Missing the required parameter "workPlanRotationId" when calling postWorkforcemanagementManagementunitWorkplanrotationCopy';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postWorkforcemanagementManagementunitWorkplanrotations(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitWorkplanrotations';if(i==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementManagementunitWorkplanrotations';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/workplanrotations","POST",{managementUnitId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementManagementunitWorkplans(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitWorkplans';if(i==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementManagementunitWorkplans';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/workplans","POST",{managementUnitId:e},{validationMode:n.validationMode},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementManagementunits(e,i){if(i=i||{},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"],i.customHeaders)}postWorkforcemanagementNotificationsUpdate(e,i){if(i=i||{},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"],i.customHeaders)}postWorkforcemanagementSchedules(e){return e=e||{},this.apiClient.callApi("/api/v2/workforcemanagement/schedules","POST",{},{},{},{},e.body,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}postWorkforcemanagementShifttradingTradeJobs(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "tradeId" when calling postWorkforcemanagementShifttradingTradeJobs';if(i==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:n.forceAsync},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementShifttradingTradeMatchJobs(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "tradeId" when calling postWorkforcemanagementShifttradingTradeMatchJobs';if(i==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:n.forceAsync},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementShifttradingTradeStateJobs(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "tradeId" when calling postWorkforcemanagementShifttradingTradeStateJobs';if(i==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:n.forceAsync},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementShifttradingTradesJobs(e,i){if(i=i||{},e==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementShifttradingTradesJobs';return this.apiClient.callApi("/api/v2/workforcemanagement/shifttrading/trades/jobs","POST",{},{forceAsync:i.forceAsync},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postWorkforcemanagementShifttradingTradesMineQueryJobs(e,i){if(i=i||{},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:i.forceAsync,forceDownloadService:i.forceDownloadService},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postWorkforcemanagementTeamAdherenceHistorical(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "teamId" when calling postWorkforcemanagementTeamAdherenceHistorical';if(i==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementTeamAdherenceHistorical';return this.apiClient.callApi("/api/v2/workforcemanagement/teams/{teamId}/adherence/historical","POST",{teamId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementTeamShrinkageJobs(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "teamId" when calling postWorkforcemanagementTeamShrinkageJobs';if(i==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementTeamShrinkageJobs';return this.apiClient.callApi("/api/v2/workforcemanagement/teams/{teamId}/shrinkage/jobs","POST",{teamId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementTimeoffbalanceJobs(e,i){if(i=i||{},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"],i.customHeaders)}postWorkforcemanagementTimeofflimitsAvailableQuery(e,i){if(i=i||{},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"],i.customHeaders)}postWorkforcemanagementTimeoffrequests(e,i){if(i=i||{},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"],i.customHeaders)}postWorkforcemanagementTimeoffrequestsEstimate(e,i){if(i=i||{},e==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementTimeoffrequestsEstimate';return this.apiClient.callApi("/api/v2/workforcemanagement/timeoffrequests/estimate","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postWorkforcemanagementTimeoffrequestsIntegrationstatusQuery(e,i){if(i=i||{},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"],i.customHeaders)}postWorkforcemanagementUnavailabletimesQuery(e,i){if(i=i||{},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"],i.customHeaders)}postWorkforcemanagementUnavailabletimesValidationJobs(e,i){if(i=i||{},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"],i.customHeaders)}putWorkforcemanagementAgentIntegrationsHris(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "agentId" when calling putWorkforcemanagementAgentIntegrationsHris';if(i==null)throw'Missing the required parameter "body" when calling putWorkforcemanagementAgentIntegrationsHris';return this.apiClient.callApi("/api/v2/workforcemanagement/agents/{agentId}/integrations/hris","PUT",{agentId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putWorkforcemanagementBusinessunitTimeofflimitValues(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling putWorkforcemanagementBusinessunitTimeofflimitValues';if(i==null||i==="")throw'Missing the required parameter "timeOffLimitId" when calling putWorkforcemanagementBusinessunitTimeofflimitValues';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}putWorkforcemanagementManagementunitTimeofflimitValues(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling putWorkforcemanagementManagementunitTimeofflimitValues';if(i==null||i==="")throw'Missing the required parameter "timeOffLimitId" when calling putWorkforcemanagementManagementunitTimeofflimitValues';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}},ay=class{constructor(){this.ApiClient=new q,this.ApiClientClass=q,this.AIStudioApi=OA,this.AgentAssistantsApi=xA,this.AgentCopilotApi=TA,this.AgentUIApi=MA,this.AlertingApi=EA,this.AnalyticsApi=kA,this.ArchitectApi=qA,this.AssistantCopilotVariationsApi=_A,this.AuditApi=HA,this.AuthorizationApi=RA,this.BackgroundAssistantApi=IA,this.BillingApi=zA,this.BusinessRulesApi=DA,this.CarrierServicesApi=GA,this.CaseManagementApi=$A,this.ChatApi=NA,this.CoachingApi=UA,this.ContentManagementApi=LA,this.ConversationsApi=WA,this.DataExtensionsApi=BA,this.DataPrivacyApi=FA,this.DownloadsApi=VA,this.EmailsApi=JA,this.EmployeeEngagementApi=ZA,this.EventsApi=KA,this.ExternalContactsApi=QA,this.FaxApi=YA,this.FlowsApi=XA,this.GamificationApi=eb,this.GeneralDataProtectionRegulationApi=ib,this.GeolocationApi=nb,this.GreetingsApi=tb,this.GroupsApi=ab,this.IdentityProviderApi=rb,this.InfrastructureAsCodeApi=sb,this.IntegrationsApi=ob,this.IntentsApi=lb,this.JourneyApi=ub,this.KnowledgeApi=cb,this.LanguageUnderstandingApi=pb,this.LanguagesApi=db,this.LearningApi=hb,this.LicenseApi=gb,this.LocationsApi=mb,this.LogCaptureApi=fb,this.MessagingApi=wb,this.MobileDevicesApi=vb,this.NotificationsApi=Cb,this.OAuthApi=Ab,this.ObjectsApi=bb,this.OperationalEventsApi=yb,this.OrganizationApi=Pb,this.OrganizationAuthorizationApi=jb,this.OutboundApi=Sb,this.PresenceApi=Ob,this.ProcessAutomationApi=xb,this.QualityApi=Tb,this.RecordingApi=Mb,this.ResponseManagementApi=Eb,this.RoutingApi=kb,this.SCIMApi=qb,this.ScriptsApi=_b,this.SearchApi=Hb,this.SettingsApi=Rb,this.SocialMediaApi=Ib,this.SpeechTextAnalyticsApi=zb,this.StationsApi=Db,this.SuggestApi=Gb,this.TaskManagementApi=$b,this.TeamsApi=Nb,this.TelephonyApi=Ub,this.TelephonyProvidersEdgeApi=Lb,this.TextbotsApi=Wb,this.TokensApi=Bb,this.UploadsApi=Fb,this.UsageApi=Vb,this.UserRecordingsApi=Jb,this.UsersApi=Zb,this.UsersRulesApi=Kb,this.UtilitiesApi=Qb,this.VoicemailApi=Yb,this.WebChatApi=Xb,this.WebDeploymentsApi=ey,this.WebMessagingApi=iy,this.WidgetsApi=ny,this.WorkforceManagementApi=ty,this.PureCloudRegionHosts=YY,this.AbstractHttpClient=El,this.DefaultHttpClient=pd,this.HttpRequestOptions=Zt}},eX=new ay;rI.exports=eX});var Cn={};gd(Cn,{BRAND:()=>VI,DIRTY:()=>Kt,EMPTY_PATH:()=>SI,INVALID:()=>K,NEVER:()=>Ez,OK:()=>xi,ParseStatus:()=>Ci,Schema:()=>ae,ZodAny:()=>wt,ZodArray:()=>et,ZodBigInt:()=>Yt,ZodBoolean:()=>Xt,ZodBranded:()=>fs,ZodCatch:()=>ca,ZodDate:()=>ea,ZodDefault:()=>ua,ZodDiscriminatedUnion:()=>_l,ZodEffects:()=>rn,ZodEnum:()=>oa,ZodError:()=>zi,ZodFirstPartyTypeKind:()=>E,ZodFunction:()=>Rl,ZodIntersection:()=>aa,ZodIssueCode:()=>M,ZodLazy:()=>ra,ZodLiteral:()=>sa,ZodMap:()=>rr,ZodNaN:()=>or,ZodNativeEnum:()=>la,ZodNever:()=>vn,ZodNull:()=>na,ZodNullable:()=>Hn,ZodNumber:()=>Qt,ZodObject:()=>Di,ZodOptional:()=>tn,ZodParsedType:()=>z,ZodPipeline:()=>ws,ZodPromise:()=>vt,ZodReadonly:()=>pa,ZodRecord:()=>Hl,ZodSchema:()=>ae,ZodSet:()=>sr,ZodString:()=>ft,ZodSymbol:()=>tr,ZodTransformer:()=>rn,ZodTuple:()=>_n,ZodType:()=>ae,ZodUndefined:()=>ia,ZodUnion:()=>ta,ZodUnknown:()=>Xn,ZodVoid:()=>ar,addIssueToContext:()=>_,any:()=>nz,array:()=>sz,bigint:()=>QI,boolean:()=>Cy,coerce:()=>Mz,custom:()=>fy,date:()=>YI,datetimeRegex:()=>gy,defaultErrorMap:()=>Qn,discriminatedUnion:()=>uz,effect:()=>bz,enum:()=>vz,function:()=>mz,getErrorMap:()=>er,getParsedType:()=>qn,instanceof:()=>ZI,intersection:()=>cz,isAborted:()=>kl,isAsync:()=>ir,isDirty:()=>ql,isValid:()=>mt,late:()=>JI,lazy:()=>fz,literal:()=>wz,makeIssue:()=>ms,map:()=>hz,nan:()=>KI,nativeEnum:()=>Cz,never:()=>az,null:()=>iz,nullable:()=>Pz,number:()=>vy,object:()=>vd,objectUtil:()=>md,oboolean:()=>Tz,onumber:()=>xz,optional:()=>yz,ostring:()=>Oz,pipeline:()=>Sz,preprocess:()=>jz,promise:()=>Az,quotelessJson:()=>yI,record:()=>dz,set:()=>gz,setErrorMap:()=>jI,strictObject:()=>oz,string:()=>wy,symbol:()=>XI,transformer:()=>bz,tuple:()=>pz,undefined:()=>ez,union:()=>lz,unknown:()=>tz,util:()=>ce,void:()=>rz});var ce;(function(t){t.assertEqual=a=>{};function e(a){}t.assertIs=e;function i(a){throw new Error}t.assertNever=i,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 n(a,r=" | "){return a.map(s=>typeof s=="string"?`'${s}'`:s).join(r)}t.joinValues=n,t.jsonStringifyReplacer=(a,r)=>typeof r=="bigint"?r.toString():r})(ce||(ce={}));var md;(function(t){t.mergeShapes=(e,i)=>({...e,...i})})(md||(md={}));var z=ce.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),qn=t=>{switch(typeof t){case"undefined":return z.undefined;case"string":return z.string;case"number":return Number.isNaN(t)?z.nan:z.number;case"boolean":return z.boolean;case"function":return z.function;case"bigint":return z.bigint;case"symbol":return z.symbol;case"object":return Array.isArray(t)?z.array:t===null?z.null:t.then&&typeof t.then=="function"&&t.catch&&typeof t.catch=="function"?z.promise:typeof Map<"u"&&t instanceof Map?z.map:typeof Set<"u"&&t instanceof Set?z.set:typeof Date<"u"&&t instanceof Date?z.date:z.object;default:return z.unknown}};var M=ce.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]),yI=t=>JSON.stringify(t,null,2).replace(/"([^"]+)":/g,"$1:"),zi=class t extends Error{get errors(){return this.issues}constructor(e){super(),this.issues=[],this.addIssue=n=>{this.issues=[...this.issues,n]},this.addIssues=(n=[])=>{this.issues=[...this.issues,...n]};let i=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,i):this.__proto__=i,this.name="ZodError",this.issues=e}format(e){let i=e||function(r){return r.message},n={_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)n._errors.push(i(s));else{let o=n,l=0;for(;li.message){let i=Object.create(null),n=[];for(let a of this.issues)if(a.path.length>0){let r=a.path[0];i[r]=i[r]||[],i[r].push(e(a))}else n.push(e(a));return{formErrors:n,fieldErrors:i}}get formErrors(){return this.flatten()}};zi.create=t=>new zi(t);var PI=(t,e)=>{let i;switch(t.code){case M.invalid_type:t.received===z.undefined?i="Required":i=`Expected ${t.expected}, received ${t.received}`;break;case M.invalid_literal:i=`Invalid literal value, expected ${JSON.stringify(t.expected,ce.jsonStringifyReplacer)}`;break;case M.unrecognized_keys:i=`Unrecognized key(s) in object: ${ce.joinValues(t.keys,", ")}`;break;case M.invalid_union:i="Invalid input";break;case M.invalid_union_discriminator:i=`Invalid discriminator value. Expected ${ce.joinValues(t.options)}`;break;case M.invalid_enum_value:i=`Invalid enum value. Expected ${ce.joinValues(t.options)}, received '${t.received}'`;break;case M.invalid_arguments:i="Invalid function arguments";break;case M.invalid_return_type:i="Invalid function return type";break;case M.invalid_date:i="Invalid date";break;case M.invalid_string:typeof t.validation=="object"?"includes"in t.validation?(i=`Invalid input: must include "${t.validation.includes}"`,typeof t.validation.position=="number"&&(i=`${i} at one or more positions greater than or equal to ${t.validation.position}`)):"startsWith"in t.validation?i=`Invalid input: must start with "${t.validation.startsWith}"`:"endsWith"in t.validation?i=`Invalid input: must end with "${t.validation.endsWith}"`:ce.assertNever(t.validation):t.validation!=="regex"?i=`Invalid ${t.validation}`:i="Invalid";break;case M.too_small:t.type==="array"?i=`Array must contain ${t.exact?"exactly":t.inclusive?"at least":"more than"} ${t.minimum} element(s)`:t.type==="string"?i=`String must contain ${t.exact?"exactly":t.inclusive?"at least":"over"} ${t.minimum} character(s)`:t.type==="number"?i=`Number must be ${t.exact?"exactly equal to ":t.inclusive?"greater than or equal to ":"greater than "}${t.minimum}`:t.type==="bigint"?i=`Number must be ${t.exact?"exactly equal to ":t.inclusive?"greater than or equal to ":"greater than "}${t.minimum}`:t.type==="date"?i=`Date must be ${t.exact?"exactly equal to ":t.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(t.minimum))}`:i="Invalid input";break;case M.too_big:t.type==="array"?i=`Array must contain ${t.exact?"exactly":t.inclusive?"at most":"less than"} ${t.maximum} element(s)`:t.type==="string"?i=`String must contain ${t.exact?"exactly":t.inclusive?"at most":"under"} ${t.maximum} character(s)`:t.type==="number"?i=`Number must be ${t.exact?"exactly":t.inclusive?"less than or equal to":"less than"} ${t.maximum}`:t.type==="bigint"?i=`BigInt must be ${t.exact?"exactly":t.inclusive?"less than or equal to":"less than"} ${t.maximum}`:t.type==="date"?i=`Date must be ${t.exact?"exactly":t.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(t.maximum))}`:i="Invalid input";break;case M.custom:i="Invalid input";break;case M.invalid_intersection_types:i="Intersection results could not be merged";break;case M.not_multiple_of:i=`Number must be a multiple of ${t.multipleOf}`;break;case M.not_finite:i="Number must be finite";break;default:i=e.defaultError,ce.assertNever(t)}return{message:i}},Qn=PI;var uy=Qn;function jI(t){uy=t}function er(){return uy}var ms=t=>{let{data:e,path:i,errorMaps:n,issueData:a}=t,r=[...i,...a.path||[]],s={...a,path:r};if(a.message!==void 0)return{...a,path:r,message:a.message};let o="",l=n.filter(u=>!!u).slice().reverse();for(let u of l)o=u(s,{data:e,defaultError:o}).message;return{...a,path:r,message:o}},SI=[];function _(t,e){let i=er(),n=ms({issueData:e,data:t.data,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,i,i===Qn?void 0:Qn].filter(a=>!!a)});t.common.issues.push(n)}var Ci=class t{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(e,i){let n=[];for(let a of i){if(a.status==="aborted")return K;a.status==="dirty"&&e.dirty(),n.push(a.value)}return{status:e.value,value:n}}static async mergeObjectAsync(e,i){let n=[];for(let a of i){let r=await a.key,s=await a.value;n.push({key:r,value:s})}return t.mergeObjectSync(e,n)}static mergeObjectSync(e,i){let n={};for(let a of i){let{key:r,value:s}=a;if(r.status==="aborted"||s.status==="aborted")return K;r.status==="dirty"&&e.dirty(),s.status==="dirty"&&e.dirty(),r.value!=="__proto__"&&(typeof s.value<"u"||a.alwaysSet)&&(n[r.value]=s.value)}return{status:e.value,value:n}}},K=Object.freeze({status:"aborted"}),Kt=t=>({status:"dirty",value:t}),xi=t=>({status:"valid",value:t}),kl=t=>t.status==="aborted",ql=t=>t.status==="dirty",mt=t=>t.status==="valid",ir=t=>typeof Promise<"u"&&t instanceof Promise;var U;(function(t){t.errToObj=e=>typeof e=="string"?{message:e}:e||{},t.toString=e=>typeof e=="string"?e:e?.message})(U||(U={}));var an=class{constructor(e,i,n,a){this._cachedPath=[],this.parent=e,this.data=i,this._path=n,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}},cy=(t,e)=>{if(mt(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 i=new zi(t.common.issues);return this._error=i,this._error}}};function ne(t){if(!t)return{};let{errorMap:e,invalid_type_error:i,required_error:n,description:a}=t;if(e&&(i||n))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??n??o.defaultError}:s.code!=="invalid_type"?{message:o.defaultError}:{message:l??i??o.defaultError}},description:a}}var ae=class{get description(){return this._def.description}_getType(e){return qn(e.data)}_getOrReturnCtx(e,i){return i||{common:e.parent.common,data:e.data,parsedType:qn(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new Ci,ctx:{common:e.parent.common,data:e.data,parsedType:qn(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){let i=this._parse(e);if(ir(i))throw new Error("Synchronous parse encountered promise.");return i}_parseAsync(e){let i=this._parse(e);return Promise.resolve(i)}parse(e,i){let n=this.safeParse(e,i);if(n.success)return n.data;throw n.error}safeParse(e,i){let n={common:{issues:[],async:i?.async??!1,contextualErrorMap:i?.errorMap},path:i?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:qn(e)},a=this._parseSync({data:e,path:n.path,parent:n});return cy(n,a)}"~validate"(e){let i={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:qn(e)};if(!this["~standard"].async)try{let n=this._parseSync({data:e,path:[],parent:i});return mt(n)?{value:n.value}:{issues:i.common.issues}}catch(n){n?.message?.toLowerCase()?.includes("encountered")&&(this["~standard"].async=!0),i.common={issues:[],async:!0}}return this._parseAsync({data:e,path:[],parent:i}).then(n=>mt(n)?{value:n.value}:{issues:i.common.issues})}async parseAsync(e,i){let n=await this.safeParseAsync(e,i);if(n.success)return n.data;throw n.error}async safeParseAsync(e,i){let n={common:{issues:[],contextualErrorMap:i?.errorMap,async:!0},path:i?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:qn(e)},a=this._parse({data:e,path:n.path,parent:n}),r=await(ir(a)?a:Promise.resolve(a));return cy(n,r)}refine(e,i){let n=a=>typeof i=="string"||typeof i>"u"?{message:i}:typeof i=="function"?i(a):i;return this._refinement((a,r)=>{let s=e(a),o=()=>r.addIssue({code:M.custom,...n(a)});return typeof Promise<"u"&&s instanceof Promise?s.then(l=>l?!0:(o(),!1)):s?!0:(o(),!1)})}refinement(e,i){return this._refinement((n,a)=>e(n)?!0:(a.addIssue(typeof i=="function"?i(n,a):i),!1))}_refinement(e){return new rn({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:i=>this["~validate"](i)}}optional(){return tn.create(this,this._def)}nullable(){return Hn.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return et.create(this)}promise(){return vt.create(this,this._def)}or(e){return ta.create([this,e],this._def)}and(e){return aa.create(this,e,this._def)}transform(e){return new rn({...ne(this._def),schema:this,typeName:E.ZodEffects,effect:{type:"transform",transform:e}})}default(e){let i=typeof e=="function"?e:()=>e;return new ua({...ne(this._def),innerType:this,defaultValue:i,typeName:E.ZodDefault})}brand(){return new fs({typeName:E.ZodBranded,type:this,...ne(this._def)})}catch(e){let i=typeof e=="function"?e:()=>e;return new ca({...ne(this._def),innerType:this,catchValue:i,typeName:E.ZodCatch})}describe(e){let i=this.constructor;return new i({...this._def,description:e})}pipe(e){return ws.create(this,e)}readonly(){return pa.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}},OI=/^c[^\s-]{8,}$/i,xI=/^[0-9a-z]+$/,TI=/^[0-9A-HJKMNP-TV-Z]{26}$/i,MI=/^[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,EI=/^[a-z0-9_-]{21}$/i,kI=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,qI=/^[-+]?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)?)??$/,_I=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,HI="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$",fd,RI=/^(?:(?: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])$/,II=/^(?:(?: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])$/,zI=/^(([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]))$/,DI=/^(([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])$/,GI=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,$I=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,dy="((\\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])))",NI=new RegExp(`^${dy}$`);function hy(t){let e="[0-5]\\d";t.precision?e=`${e}\\.\\d{${t.precision}}`:t.precision==null&&(e=`${e}(\\.\\d+)?`);let i=t.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${e})${i}`}function UI(t){return new RegExp(`^${hy(t)}$`)}function gy(t){let e=`${dy}T${hy(t)}`,i=[];return i.push(t.local?"Z?":"Z"),t.offset&&i.push("([+-]\\d{2}:?\\d{2})"),e=`${e}(${i.join("|")})`,new RegExp(`^${e}$`)}function LI(t,e){return!!((e==="v4"||!e)&&RI.test(t)||(e==="v6"||!e)&&zI.test(t))}function WI(t,e){if(!kI.test(t))return!1;try{let[i]=t.split(".");if(!i)return!1;let n=i.replace(/-/g,"+").replace(/_/g,"/").padEnd(i.length+(4-i.length%4)%4,"="),a=JSON.parse(atob(n));return!(typeof a!="object"||a===null||"typ"in a&&a?.typ!=="JWT"||!a.alg||e&&a.alg!==e)}catch{return!1}}function BI(t,e){return!!((e==="v4"||!e)&&II.test(t)||(e==="v6"||!e)&&DI.test(t))}var ft=class t extends ae{_parse(e){if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!==z.string){let r=this._getOrReturnCtx(e);return _(r,{code:M.invalid_type,expected:z.string,received:r.parsedType}),K}let n=new Ci,a;for(let r of this._def.checks)if(r.kind==="min")e.data.lengthr.value&&(a=this._getOrReturnCtx(e,a),_(a,{code:M.too_big,maximum:r.value,type:"string",inclusive:!0,exact:!1,message:r.message}),n.dirty());else if(r.kind==="length"){let s=e.data.length>r.value,o=e.data.lengthe.test(a),{validation:i,code:M.invalid_string,...U.errToObj(n)})}_addCheck(e){return new t({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...U.errToObj(e)})}url(e){return this._addCheck({kind:"url",...U.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",...U.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...U.errToObj(e)})}nanoid(e){return this._addCheck({kind:"nanoid",...U.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...U.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",...U.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid",...U.errToObj(e)})}base64(e){return this._addCheck({kind:"base64",...U.errToObj(e)})}base64url(e){return this._addCheck({kind:"base64url",...U.errToObj(e)})}jwt(e){return this._addCheck({kind:"jwt",...U.errToObj(e)})}ip(e){return this._addCheck({kind:"ip",...U.errToObj(e)})}cidr(e){return this._addCheck({kind:"cidr",...U.errToObj(e)})}datetime(e){return typeof e=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:e}):this._addCheck({kind:"datetime",precision:typeof e?.precision>"u"?null:e?.precision,offset:e?.offset??!1,local:e?.local??!1,...U.errToObj(e?.message)})}date(e){return this._addCheck({kind:"date",message:e})}time(e){return typeof e=="string"?this._addCheck({kind:"time",precision:null,message:e}):this._addCheck({kind:"time",precision:typeof e?.precision>"u"?null:e?.precision,...U.errToObj(e?.message)})}duration(e){return this._addCheck({kind:"duration",...U.errToObj(e)})}regex(e,i){return this._addCheck({kind:"regex",regex:e,...U.errToObj(i)})}includes(e,i){return this._addCheck({kind:"includes",value:e,position:i?.position,...U.errToObj(i?.message)})}startsWith(e,i){return this._addCheck({kind:"startsWith",value:e,...U.errToObj(i)})}endsWith(e,i){return this._addCheck({kind:"endsWith",value:e,...U.errToObj(i)})}min(e,i){return this._addCheck({kind:"min",value:e,...U.errToObj(i)})}max(e,i){return this._addCheck({kind:"max",value:e,...U.errToObj(i)})}length(e,i){return this._addCheck({kind:"length",value:e,...U.errToObj(i)})}nonempty(e){return this.min(1,U.errToObj(e))}trim(){return new t({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new t({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new t({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(e=>e.kind==="datetime")}get isDate(){return!!this._def.checks.find(e=>e.kind==="date")}get isTime(){return!!this._def.checks.find(e=>e.kind==="time")}get isDuration(){return!!this._def.checks.find(e=>e.kind==="duration")}get isEmail(){return!!this._def.checks.find(e=>e.kind==="email")}get isURL(){return!!this._def.checks.find(e=>e.kind==="url")}get isEmoji(){return!!this._def.checks.find(e=>e.kind==="emoji")}get isUUID(){return!!this._def.checks.find(e=>e.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(e=>e.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(e=>e.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(e=>e.kind==="cuid2")}get isULID(){return!!this._def.checks.find(e=>e.kind==="ulid")}get isIP(){return!!this._def.checks.find(e=>e.kind==="ip")}get isCIDR(){return!!this._def.checks.find(e=>e.kind==="cidr")}get isBase64(){return!!this._def.checks.find(e=>e.kind==="base64")}get isBase64url(){return!!this._def.checks.find(e=>e.kind==="base64url")}get minLength(){let e=null;for(let i of this._def.checks)i.kind==="min"&&(e===null||i.value>e)&&(e=i.value);return e}get maxLength(){let e=null;for(let i of this._def.checks)i.kind==="max"&&(e===null||i.valuenew ft({checks:[],typeName:E.ZodString,coerce:t?.coerce??!1,...ne(t)});function FI(t,e){let i=(t.toString().split(".")[1]||"").length,n=(e.toString().split(".")[1]||"").length,a=i>n?i:n,r=Number.parseInt(t.toFixed(a).replace(".","")),s=Number.parseInt(e.toFixed(a).replace(".",""));return r%s/10**a}var Qt=class t extends ae{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){if(this._def.coerce&&(e.data=Number(e.data)),this._getType(e)!==z.number){let r=this._getOrReturnCtx(e);return _(r,{code:M.invalid_type,expected:z.number,received:r.parsedType}),K}let n,a=new Ci;for(let r of this._def.checks)r.kind==="int"?ce.isInteger(e.data)||(n=this._getOrReturnCtx(e,n),_(n,{code:M.invalid_type,expected:"integer",received:"float",message:r.message}),a.dirty()):r.kind==="min"?(r.inclusive?e.datar.value:e.data>=r.value)&&(n=this._getOrReturnCtx(e,n),_(n,{code:M.too_big,maximum:r.value,type:"number",inclusive:r.inclusive,exact:!1,message:r.message}),a.dirty()):r.kind==="multipleOf"?FI(e.data,r.value)!==0&&(n=this._getOrReturnCtx(e,n),_(n,{code:M.not_multiple_of,multipleOf:r.value,message:r.message}),a.dirty()):r.kind==="finite"?Number.isFinite(e.data)||(n=this._getOrReturnCtx(e,n),_(n,{code:M.not_finite,message:r.message}),a.dirty()):ce.assertNever(r);return{status:a.value,value:e.data}}gte(e,i){return this.setLimit("min",e,!0,U.toString(i))}gt(e,i){return this.setLimit("min",e,!1,U.toString(i))}lte(e,i){return this.setLimit("max",e,!0,U.toString(i))}lt(e,i){return this.setLimit("max",e,!1,U.toString(i))}setLimit(e,i,n,a){return new t({...this._def,checks:[...this._def.checks,{kind:e,value:i,inclusive:n,message:U.toString(a)}]})}_addCheck(e){return new t({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:U.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:U.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:U.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:U.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:U.toString(e)})}multipleOf(e,i){return this._addCheck({kind:"multipleOf",value:e,message:U.toString(i)})}finite(e){return this._addCheck({kind:"finite",message:U.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:U.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:U.toString(e)})}get minValue(){let e=null;for(let i of this._def.checks)i.kind==="min"&&(e===null||i.value>e)&&(e=i.value);return e}get maxValue(){let e=null;for(let i of this._def.checks)i.kind==="max"&&(e===null||i.valuee.kind==="int"||e.kind==="multipleOf"&&ce.isInteger(e.value))}get isFinite(){let e=null,i=null;for(let n of this._def.checks){if(n.kind==="finite"||n.kind==="int"||n.kind==="multipleOf")return!0;n.kind==="min"?(i===null||n.value>i)&&(i=n.value):n.kind==="max"&&(e===null||n.valuenew Qt({checks:[],typeName:E.ZodNumber,coerce:t?.coerce||!1,...ne(t)});var Yt=class t extends ae{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){if(this._def.coerce)try{e.data=BigInt(e.data)}catch{return this._getInvalidInput(e)}if(this._getType(e)!==z.bigint)return this._getInvalidInput(e);let n,a=new Ci;for(let r of this._def.checks)r.kind==="min"?(r.inclusive?e.datar.value:e.data>=r.value)&&(n=this._getOrReturnCtx(e,n),_(n,{code:M.too_big,type:"bigint",maximum:r.value,inclusive:r.inclusive,message:r.message}),a.dirty()):r.kind==="multipleOf"?e.data%r.value!==BigInt(0)&&(n=this._getOrReturnCtx(e,n),_(n,{code:M.not_multiple_of,multipleOf:r.value,message:r.message}),a.dirty()):ce.assertNever(r);return{status:a.value,value:e.data}}_getInvalidInput(e){let i=this._getOrReturnCtx(e);return _(i,{code:M.invalid_type,expected:z.bigint,received:i.parsedType}),K}gte(e,i){return this.setLimit("min",e,!0,U.toString(i))}gt(e,i){return this.setLimit("min",e,!1,U.toString(i))}lte(e,i){return this.setLimit("max",e,!0,U.toString(i))}lt(e,i){return this.setLimit("max",e,!1,U.toString(i))}setLimit(e,i,n,a){return new t({...this._def,checks:[...this._def.checks,{kind:e,value:i,inclusive:n,message:U.toString(a)}]})}_addCheck(e){return new t({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:U.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:U.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:U.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:U.toString(e)})}multipleOf(e,i){return this._addCheck({kind:"multipleOf",value:e,message:U.toString(i)})}get minValue(){let e=null;for(let i of this._def.checks)i.kind==="min"&&(e===null||i.value>e)&&(e=i.value);return e}get maxValue(){let e=null;for(let i of this._def.checks)i.kind==="max"&&(e===null||i.valuenew Yt({checks:[],typeName:E.ZodBigInt,coerce:t?.coerce??!1,...ne(t)});var Xt=class extends ae{_parse(e){if(this._def.coerce&&(e.data=!!e.data),this._getType(e)!==z.boolean){let n=this._getOrReturnCtx(e);return _(n,{code:M.invalid_type,expected:z.boolean,received:n.parsedType}),K}return xi(e.data)}};Xt.create=t=>new Xt({typeName:E.ZodBoolean,coerce:t?.coerce||!1,...ne(t)});var ea=class t extends ae{_parse(e){if(this._def.coerce&&(e.data=new Date(e.data)),this._getType(e)!==z.date){let r=this._getOrReturnCtx(e);return _(r,{code:M.invalid_type,expected:z.date,received:r.parsedType}),K}if(Number.isNaN(e.data.getTime())){let r=this._getOrReturnCtx(e);return _(r,{code:M.invalid_date}),K}let n=new Ci,a;for(let r of this._def.checks)r.kind==="min"?e.data.getTime()r.value&&(a=this._getOrReturnCtx(e,a),_(a,{code:M.too_big,message:r.message,inclusive:!0,exact:!1,maximum:r.value,type:"date"}),n.dirty()):ce.assertNever(r);return{status:n.value,value:new Date(e.data.getTime())}}_addCheck(e){return new t({...this._def,checks:[...this._def.checks,e]})}min(e,i){return this._addCheck({kind:"min",value:e.getTime(),message:U.toString(i)})}max(e,i){return this._addCheck({kind:"max",value:e.getTime(),message:U.toString(i)})}get minDate(){let e=null;for(let i of this._def.checks)i.kind==="min"&&(e===null||i.value>e)&&(e=i.value);return e!=null?new Date(e):null}get maxDate(){let e=null;for(let i of this._def.checks)i.kind==="max"&&(e===null||i.valuenew ea({checks:[],coerce:t?.coerce||!1,typeName:E.ZodDate,...ne(t)});var tr=class extends ae{_parse(e){if(this._getType(e)!==z.symbol){let n=this._getOrReturnCtx(e);return _(n,{code:M.invalid_type,expected:z.symbol,received:n.parsedType}),K}return xi(e.data)}};tr.create=t=>new tr({typeName:E.ZodSymbol,...ne(t)});var ia=class extends ae{_parse(e){if(this._getType(e)!==z.undefined){let n=this._getOrReturnCtx(e);return _(n,{code:M.invalid_type,expected:z.undefined,received:n.parsedType}),K}return xi(e.data)}};ia.create=t=>new ia({typeName:E.ZodUndefined,...ne(t)});var na=class extends ae{_parse(e){if(this._getType(e)!==z.null){let n=this._getOrReturnCtx(e);return _(n,{code:M.invalid_type,expected:z.null,received:n.parsedType}),K}return xi(e.data)}};na.create=t=>new na({typeName:E.ZodNull,...ne(t)});var wt=class extends ae{constructor(){super(...arguments),this._any=!0}_parse(e){return xi(e.data)}};wt.create=t=>new wt({typeName:E.ZodAny,...ne(t)});var Xn=class extends ae{constructor(){super(...arguments),this._unknown=!0}_parse(e){return xi(e.data)}};Xn.create=t=>new Xn({typeName:E.ZodUnknown,...ne(t)});var vn=class extends ae{_parse(e){let i=this._getOrReturnCtx(e);return _(i,{code:M.invalid_type,expected:z.never,received:i.parsedType}),K}};vn.create=t=>new vn({typeName:E.ZodNever,...ne(t)});var ar=class extends ae{_parse(e){if(this._getType(e)!==z.undefined){let n=this._getOrReturnCtx(e);return _(n,{code:M.invalid_type,expected:z.void,received:n.parsedType}),K}return xi(e.data)}};ar.create=t=>new ar({typeName:E.ZodVoid,...ne(t)});var et=class t extends ae{_parse(e){let{ctx:i,status:n}=this._processInputParams(e),a=this._def;if(i.parsedType!==z.array)return _(i,{code:M.invalid_type,expected:z.array,received:i.parsedType}),K;if(a.exactLength!==null){let s=i.data.length>a.exactLength.value,o=i.data.lengtha.maxLength.value&&(_(i,{code:M.too_big,maximum:a.maxLength.value,type:"array",inclusive:!0,exact:!1,message:a.maxLength.message}),n.dirty()),i.common.async)return Promise.all([...i.data].map((s,o)=>a.type._parseAsync(new an(i,s,i.path,o)))).then(s=>Ci.mergeArray(n,s));let r=[...i.data].map((s,o)=>a.type._parseSync(new an(i,s,i.path,o)));return Ci.mergeArray(n,r)}get element(){return this._def.type}min(e,i){return new t({...this._def,minLength:{value:e,message:U.toString(i)}})}max(e,i){return new t({...this._def,maxLength:{value:e,message:U.toString(i)}})}length(e,i){return new t({...this._def,exactLength:{value:e,message:U.toString(i)}})}nonempty(e){return this.min(1,e)}};et.create=(t,e)=>new et({type:t,minLength:null,maxLength:null,exactLength:null,typeName:E.ZodArray,...ne(e)});function nr(t){if(t instanceof Di){let e={};for(let i in t.shape){let n=t.shape[i];e[i]=tn.create(nr(n))}return new Di({...t._def,shape:()=>e})}else return t instanceof et?new et({...t._def,type:nr(t.element)}):t instanceof tn?tn.create(nr(t.unwrap())):t instanceof Hn?Hn.create(nr(t.unwrap())):t instanceof _n?_n.create(t.items.map(e=>nr(e))):t}var Di=class t extends ae{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;let e=this._def.shape(),i=ce.objectKeys(e);return this._cached={shape:e,keys:i},this._cached}_parse(e){if(this._getType(e)!==z.object){let u=this._getOrReturnCtx(e);return _(u,{code:M.invalid_type,expected:z.object,received:u.parsedType}),K}let{status:n,ctx:a}=this._processInputParams(e),{shape:r,keys:s}=this._getCached(),o=[];if(!(this._def.catchall instanceof vn&&this._def.unknownKeys==="strip"))for(let u in a.data)s.includes(u)||o.push(u);let l=[];for(let u of s){let c=r[u],p=a.data[u];l.push({key:{status:"valid",value:u},value:c._parse(new an(a,p,a.path,u)),alwaysSet:u in a.data})}if(this._def.catchall instanceof vn){let u=this._def.unknownKeys;if(u==="passthrough")for(let c of o)l.push({key:{status:"valid",value:c},value:{status:"valid",value:a.data[c]}});else if(u==="strict")o.length>0&&(_(a,{code:M.unrecognized_keys,keys:o}),n.dirty());else if(u!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{let u=this._def.catchall;for(let c of o){let p=a.data[c];l.push({key:{status:"valid",value:c},value:u._parse(new an(a,p,a.path,c)),alwaysSet:c in a.data})}}return a.common.async?Promise.resolve().then(async()=>{let u=[];for(let c of l){let p=await c.key,d=await c.value;u.push({key:p,value:d,alwaysSet:c.alwaysSet})}return u}).then(u=>Ci.mergeObjectSync(n,u)):Ci.mergeObjectSync(n,l)}get shape(){return this._def.shape()}strict(e){return U.errToObj,new t({...this._def,unknownKeys:"strict",...e!==void 0?{errorMap:(i,n)=>{let a=this._def.errorMap?.(i,n).message??n.defaultError;return i.code==="unrecognized_keys"?{message:U.errToObj(e).message??a}:{message:a}}}:{}})}strip(){return new t({...this._def,unknownKeys:"strip"})}passthrough(){return new t({...this._def,unknownKeys:"passthrough"})}extend(e){return new t({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){return new t({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:E.ZodObject})}setKey(e,i){return this.augment({[e]:i})}catchall(e){return new t({...this._def,catchall:e})}pick(e){let i={};for(let n of ce.objectKeys(e))e[n]&&this.shape[n]&&(i[n]=this.shape[n]);return new t({...this._def,shape:()=>i})}omit(e){let i={};for(let n of ce.objectKeys(this.shape))e[n]||(i[n]=this.shape[n]);return new t({...this._def,shape:()=>i})}deepPartial(){return nr(this)}partial(e){let i={};for(let n of ce.objectKeys(this.shape)){let a=this.shape[n];e&&!e[n]?i[n]=a:i[n]=a.optional()}return new t({...this._def,shape:()=>i})}required(e){let i={};for(let n of ce.objectKeys(this.shape))if(e&&!e[n])i[n]=this.shape[n];else{let r=this.shape[n];for(;r instanceof tn;)r=r._def.innerType;i[n]=r}return new t({...this._def,shape:()=>i})}keyof(){return my(ce.objectKeys(this.shape))}};Di.create=(t,e)=>new Di({shape:()=>t,unknownKeys:"strip",catchall:vn.create(),typeName:E.ZodObject,...ne(e)});Di.strictCreate=(t,e)=>new Di({shape:()=>t,unknownKeys:"strict",catchall:vn.create(),typeName:E.ZodObject,...ne(e)});Di.lazycreate=(t,e)=>new Di({shape:t,unknownKeys:"strip",catchall:vn.create(),typeName:E.ZodObject,...ne(e)});var ta=class extends ae{_parse(e){let{ctx:i}=this._processInputParams(e),n=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 i.common.issues.push(...o.ctx.common.issues),o.result;let s=r.map(o=>new zi(o.ctx.common.issues));return _(i,{code:M.invalid_union,unionErrors:s}),K}if(i.common.async)return Promise.all(n.map(async r=>{let s={...i,common:{...i.common,issues:[]},parent:null};return{result:await r._parseAsync({data:i.data,path:i.path,parent:s}),ctx:s}})).then(a);{let r,s=[];for(let l of n){let u={...i,common:{...i.common,issues:[]},parent:null},c=l._parseSync({data:i.data,path:i.path,parent:u});if(c.status==="valid")return c;c.status==="dirty"&&!r&&(r={result:c,ctx:u}),u.common.issues.length&&s.push(u.common.issues)}if(r)return i.common.issues.push(...r.ctx.common.issues),r.result;let o=s.map(l=>new zi(l));return _(i,{code:M.invalid_union,unionErrors:o}),K}}get options(){return this._def.options}};ta.create=(t,e)=>new ta({options:t,typeName:E.ZodUnion,...ne(e)});var Yn=t=>t instanceof ra?Yn(t.schema):t instanceof rn?Yn(t.innerType()):t instanceof sa?[t.value]:t instanceof oa?t.options:t instanceof la?ce.objectValues(t.enum):t instanceof ua?Yn(t._def.innerType):t instanceof ia?[void 0]:t instanceof na?[null]:t instanceof tn?[void 0,...Yn(t.unwrap())]:t instanceof Hn?[null,...Yn(t.unwrap())]:t instanceof fs||t instanceof pa?Yn(t.unwrap()):t instanceof ca?Yn(t._def.innerType):[],_l=class t extends ae{_parse(e){let{ctx:i}=this._processInputParams(e);if(i.parsedType!==z.object)return _(i,{code:M.invalid_type,expected:z.object,received:i.parsedType}),K;let n=this.discriminator,a=i.data[n],r=this.optionsMap.get(a);return r?i.common.async?r._parseAsync({data:i.data,path:i.path,parent:i}):r._parseSync({data:i.data,path:i.path,parent:i}):(_(i,{code:M.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[n]}),K)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(e,i,n){let a=new Map;for(let r of i){let s=Yn(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:i,optionsMap:a,...ne(n)})}};function wd(t,e){let i=qn(t),n=qn(e);if(t===e)return{valid:!0,data:t};if(i===z.object&&n===z.object){let a=ce.objectKeys(e),r=ce.objectKeys(t).filter(o=>a.indexOf(o)!==-1),s={...t,...e};for(let o of r){let l=wd(t[o],e[o]);if(!l.valid)return{valid:!1};s[o]=l.data}return{valid:!0,data:s}}else if(i===z.array&&n===z.array){if(t.length!==e.length)return{valid:!1};let a=[];for(let r=0;r{if(kl(r)||kl(s))return K;let o=wd(r.value,s.value);return o.valid?((ql(r)||ql(s))&&i.dirty(),{status:i.value,value:o.data}):(_(n,{code:M.invalid_intersection_types}),K)};return n.common.async?Promise.all([this._def.left._parseAsync({data:n.data,path:n.path,parent:n}),this._def.right._parseAsync({data:n.data,path:n.path,parent:n})]).then(([r,s])=>a(r,s)):a(this._def.left._parseSync({data:n.data,path:n.path,parent:n}),this._def.right._parseSync({data:n.data,path:n.path,parent:n}))}};aa.create=(t,e,i)=>new aa({left:t,right:e,typeName:E.ZodIntersection,...ne(i)});var _n=class t extends ae{_parse(e){let{status:i,ctx:n}=this._processInputParams(e);if(n.parsedType!==z.array)return _(n,{code:M.invalid_type,expected:z.array,received:n.parsedType}),K;if(n.data.lengththis._def.items.length&&(_(n,{code:M.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),i.dirty());let r=[...n.data].map((s,o)=>{let l=this._def.items[o]||this._def.rest;return l?l._parse(new an(n,s,n.path,o)):null}).filter(s=>!!s);return n.common.async?Promise.all(r).then(s=>Ci.mergeArray(i,s)):Ci.mergeArray(i,r)}get items(){return this._def.items}rest(e){return new t({...this._def,rest:e})}};_n.create=(t,e)=>{if(!Array.isArray(t))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new _n({items:t,typeName:E.ZodTuple,rest:null,...ne(e)})};var Hl=class t extends ae{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:i,ctx:n}=this._processInputParams(e);if(n.parsedType!==z.object)return _(n,{code:M.invalid_type,expected:z.object,received:n.parsedType}),K;let a=[],r=this._def.keyType,s=this._def.valueType;for(let o in n.data)a.push({key:r._parse(new an(n,o,n.path,o)),value:s._parse(new an(n,n.data[o],n.path,o)),alwaysSet:o in n.data});return n.common.async?Ci.mergeObjectAsync(i,a):Ci.mergeObjectSync(i,a)}get element(){return this._def.valueType}static create(e,i,n){return i instanceof ae?new t({keyType:e,valueType:i,typeName:E.ZodRecord,...ne(n)}):new t({keyType:ft.create(),valueType:e,typeName:E.ZodRecord,...ne(i)})}},rr=class extends ae{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:i,ctx:n}=this._processInputParams(e);if(n.parsedType!==z.map)return _(n,{code:M.invalid_type,expected:z.map,received:n.parsedType}),K;let a=this._def.keyType,r=this._def.valueType,s=[...n.data.entries()].map(([o,l],u)=>({key:a._parse(new an(n,o,n.path,[u,"key"])),value:r._parse(new an(n,l,n.path,[u,"value"]))}));if(n.common.async){let o=new Map;return Promise.resolve().then(async()=>{for(let l of s){let u=await l.key,c=await l.value;if(u.status==="aborted"||c.status==="aborted")return K;(u.status==="dirty"||c.status==="dirty")&&i.dirty(),o.set(u.value,c.value)}return{status:i.value,value:o}})}else{let o=new Map;for(let l of s){let u=l.key,c=l.value;if(u.status==="aborted"||c.status==="aborted")return K;(u.status==="dirty"||c.status==="dirty")&&i.dirty(),o.set(u.value,c.value)}return{status:i.value,value:o}}}};rr.create=(t,e,i)=>new rr({valueType:e,keyType:t,typeName:E.ZodMap,...ne(i)});var sr=class t extends ae{_parse(e){let{status:i,ctx:n}=this._processInputParams(e);if(n.parsedType!==z.set)return _(n,{code:M.invalid_type,expected:z.set,received:n.parsedType}),K;let a=this._def;a.minSize!==null&&n.data.sizea.maxSize.value&&(_(n,{code:M.too_big,maximum:a.maxSize.value,type:"set",inclusive:!0,exact:!1,message:a.maxSize.message}),i.dirty());let r=this._def.valueType;function s(l){let u=new Set;for(let c of l){if(c.status==="aborted")return K;c.status==="dirty"&&i.dirty(),u.add(c.value)}return{status:i.value,value:u}}let o=[...n.data.values()].map((l,u)=>r._parse(new an(n,l,n.path,u)));return n.common.async?Promise.all(o).then(l=>s(l)):s(o)}min(e,i){return new t({...this._def,minSize:{value:e,message:U.toString(i)}})}max(e,i){return new t({...this._def,maxSize:{value:e,message:U.toString(i)}})}size(e,i){return this.min(e,i).max(e,i)}nonempty(e){return this.min(1,e)}};sr.create=(t,e)=>new sr({valueType:t,minSize:null,maxSize:null,typeName:E.ZodSet,...ne(e)});var Rl=class t extends ae{constructor(){super(...arguments),this.validate=this.implement}_parse(e){let{ctx:i}=this._processInputParams(e);if(i.parsedType!==z.function)return _(i,{code:M.invalid_type,expected:z.function,received:i.parsedType}),K;function n(o,l){return ms({data:o,path:i.path,errorMaps:[i.common.contextualErrorMap,i.schemaErrorMap,er(),Qn].filter(u=>!!u),issueData:{code:M.invalid_arguments,argumentsError:l}})}function a(o,l){return ms({data:o,path:i.path,errorMaps:[i.common.contextualErrorMap,i.schemaErrorMap,er(),Qn].filter(u=>!!u),issueData:{code:M.invalid_return_type,returnTypeError:l}})}let r={errorMap:i.common.contextualErrorMap},s=i.data;if(this._def.returns instanceof vt){let o=this;return xi(async function(...l){let u=new zi([]),c=await o._def.args.parseAsync(l,r).catch(h=>{throw u.addIssue(n(l,h)),u}),p=await Reflect.apply(s,this,c);return await o._def.returns._def.type.parseAsync(p,r).catch(h=>{throw u.addIssue(a(p,h)),u})})}else{let o=this;return xi(function(...l){let u=o._def.args.safeParse(l,r);if(!u.success)throw new zi([n(l,u.error)]);let c=Reflect.apply(s,this,u.data),p=o._def.returns.safeParse(c,r);if(!p.success)throw new zi([a(c,p.error)]);return p.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...e){return new t({...this._def,args:_n.create(e).rest(Xn.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,i,n){return new t({args:e||_n.create([]).rest(Xn.create()),returns:i||Xn.create(),typeName:E.ZodFunction,...ne(n)})}},ra=class extends ae{get schema(){return this._def.getter()}_parse(e){let{ctx:i}=this._processInputParams(e);return this._def.getter()._parse({data:i.data,path:i.path,parent:i})}};ra.create=(t,e)=>new ra({getter:t,typeName:E.ZodLazy,...ne(e)});var sa=class extends ae{_parse(e){if(e.data!==this._def.value){let i=this._getOrReturnCtx(e);return _(i,{received:i.data,code:M.invalid_literal,expected:this._def.value}),K}return{status:"valid",value:e.data}}get value(){return this._def.value}};sa.create=(t,e)=>new sa({value:t,typeName:E.ZodLiteral,...ne(e)});function my(t,e){return new oa({values:t,typeName:E.ZodEnum,...ne(e)})}var oa=class t extends ae{_parse(e){if(typeof e.data!="string"){let i=this._getOrReturnCtx(e),n=this._def.values;return _(i,{expected:ce.joinValues(n),received:i.parsedType,code:M.invalid_type}),K}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(e.data)){let i=this._getOrReturnCtx(e),n=this._def.values;return _(i,{received:i.data,code:M.invalid_enum_value,options:n}),K}return xi(e.data)}get options(){return this._def.values}get enum(){let e={};for(let i of this._def.values)e[i]=i;return e}get Values(){let e={};for(let i of this._def.values)e[i]=i;return e}get Enum(){let e={};for(let i of this._def.values)e[i]=i;return e}extract(e,i=this._def){return t.create(e,{...this._def,...i})}exclude(e,i=this._def){return t.create(this.options.filter(n=>!e.includes(n)),{...this._def,...i})}};oa.create=my;var la=class extends ae{_parse(e){let i=ce.getValidEnumValues(this._def.values),n=this._getOrReturnCtx(e);if(n.parsedType!==z.string&&n.parsedType!==z.number){let a=ce.objectValues(i);return _(n,{expected:ce.joinValues(a),received:n.parsedType,code:M.invalid_type}),K}if(this._cache||(this._cache=new Set(ce.getValidEnumValues(this._def.values))),!this._cache.has(e.data)){let a=ce.objectValues(i);return _(n,{received:n.data,code:M.invalid_enum_value,options:a}),K}return xi(e.data)}get enum(){return this._def.values}};la.create=(t,e)=>new la({values:t,typeName:E.ZodNativeEnum,...ne(e)});var vt=class extends ae{unwrap(){return this._def.type}_parse(e){let{ctx:i}=this._processInputParams(e);if(i.parsedType!==z.promise&&i.common.async===!1)return _(i,{code:M.invalid_type,expected:z.promise,received:i.parsedType}),K;let n=i.parsedType===z.promise?i.data:Promise.resolve(i.data);return xi(n.then(a=>this._def.type.parseAsync(a,{path:i.path,errorMap:i.common.contextualErrorMap})))}};vt.create=(t,e)=>new vt({type:t,typeName:E.ZodPromise,...ne(e)});var rn=class extends ae{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===E.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){let{status:i,ctx:n}=this._processInputParams(e),a=this._def.effect||null,r={addIssue:s=>{_(n,s),s.fatal?i.abort():i.dirty()},get path(){return n.path}};if(r.addIssue=r.addIssue.bind(r),a.type==="preprocess"){let s=a.transform(n.data,r);if(n.common.async)return Promise.resolve(s).then(async o=>{if(i.value==="aborted")return K;let l=await this._def.schema._parseAsync({data:o,path:n.path,parent:n});return l.status==="aborted"?K:l.status==="dirty"?Kt(l.value):i.value==="dirty"?Kt(l.value):l});{if(i.value==="aborted")return K;let o=this._def.schema._parseSync({data:s,path:n.path,parent:n});return o.status==="aborted"?K:o.status==="dirty"?Kt(o.value):i.value==="dirty"?Kt(o.value):o}}if(a.type==="refinement"){let s=o=>{let l=a.refinement(o,r);if(n.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(n.common.async===!1){let o=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});return o.status==="aborted"?K:(o.status==="dirty"&&i.dirty(),s(o.value),{status:i.value,value:o.value})}else return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(o=>o.status==="aborted"?K:(o.status==="dirty"&&i.dirty(),s(o.value).then(()=>({status:i.value,value:o.value}))))}if(a.type==="transform")if(n.common.async===!1){let s=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});if(!mt(s))return K;let o=a.transform(s.value,r);if(o instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:i.value,value:o}}else return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(s=>mt(s)?Promise.resolve(a.transform(s.value,r)).then(o=>({status:i.value,value:o})):K);ce.assertNever(a)}};rn.create=(t,e,i)=>new rn({schema:t,typeName:E.ZodEffects,effect:e,...ne(i)});rn.createWithPreprocess=(t,e,i)=>new rn({schema:e,effect:{type:"preprocess",transform:t},typeName:E.ZodEffects,...ne(i)});var tn=class extends ae{_parse(e){return this._getType(e)===z.undefined?xi(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}};tn.create=(t,e)=>new tn({innerType:t,typeName:E.ZodOptional,...ne(e)});var Hn=class extends ae{_parse(e){return this._getType(e)===z.null?xi(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}};Hn.create=(t,e)=>new Hn({innerType:t,typeName:E.ZodNullable,...ne(e)});var ua=class extends ae{_parse(e){let{ctx:i}=this._processInputParams(e),n=i.data;return i.parsedType===z.undefined&&(n=this._def.defaultValue()),this._def.innerType._parse({data:n,path:i.path,parent:i})}removeDefault(){return this._def.innerType}};ua.create=(t,e)=>new ua({innerType:t,typeName:E.ZodDefault,defaultValue:typeof e.default=="function"?e.default:()=>e.default,...ne(e)});var ca=class extends ae{_parse(e){let{ctx:i}=this._processInputParams(e),n={...i,common:{...i.common,issues:[]}},a=this._def.innerType._parse({data:n.data,path:n.path,parent:{...n}});return ir(a)?a.then(r=>({status:"valid",value:r.status==="valid"?r.value:this._def.catchValue({get error(){return new zi(n.common.issues)},input:n.data})})):{status:"valid",value:a.status==="valid"?a.value:this._def.catchValue({get error(){return new zi(n.common.issues)},input:n.data})}}removeCatch(){return this._def.innerType}};ca.create=(t,e)=>new ca({innerType:t,typeName:E.ZodCatch,catchValue:typeof e.catch=="function"?e.catch:()=>e.catch,...ne(e)});var or=class extends ae{_parse(e){if(this._getType(e)!==z.nan){let n=this._getOrReturnCtx(e);return _(n,{code:M.invalid_type,expected:z.nan,received:n.parsedType}),K}return{status:"valid",value:e.data}}};or.create=t=>new or({typeName:E.ZodNaN,...ne(t)});var VI=Symbol("zod_brand"),fs=class extends ae{_parse(e){let{ctx:i}=this._processInputParams(e),n=i.data;return this._def.type._parse({data:n,path:i.path,parent:i})}unwrap(){return this._def.type}},ws=class t extends ae{_parse(e){let{status:i,ctx:n}=this._processInputParams(e);if(n.common.async)return(async()=>{let r=await this._def.in._parseAsync({data:n.data,path:n.path,parent:n});return r.status==="aborted"?K:r.status==="dirty"?(i.dirty(),Kt(r.value)):this._def.out._parseAsync({data:r.value,path:n.path,parent:n})})();{let a=this._def.in._parseSync({data:n.data,path:n.path,parent:n});return a.status==="aborted"?K:a.status==="dirty"?(i.dirty(),{status:"dirty",value:a.value}):this._def.out._parseSync({data:a.value,path:n.path,parent:n})}}static create(e,i){return new t({in:e,out:i,typeName:E.ZodPipeline})}},pa=class extends ae{_parse(e){let i=this._def.innerType._parse(e),n=a=>(mt(a)&&(a.value=Object.freeze(a.value)),a);return ir(i)?i.then(a=>n(a)):n(i)}unwrap(){return this._def.innerType}};pa.create=(t,e)=>new pa({innerType:t,typeName:E.ZodReadonly,...ne(e)});function py(t,e){let i=typeof t=="function"?t(e):typeof t=="string"?{message:t}:t;return typeof i=="string"?{message:i}:i}function fy(t,e={},i){return t?wt.create().superRefine((n,a)=>{let r=t(n);if(r instanceof Promise)return r.then(s=>{if(!s){let o=py(e,n),l=o.fatal??i??!0;a.addIssue({code:"custom",...o,fatal:l})}});if(!r){let s=py(e,n),o=s.fatal??i??!0;a.addIssue({code:"custom",...s,fatal:o})}}):wt.create()}var JI={object:Di.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 ZI=(t,e={message:`Input not instance of ${t.name}`})=>fy(i=>i instanceof t,e),wy=ft.create,vy=Qt.create,KI=or.create,QI=Yt.create,Cy=Xt.create,YI=ea.create,XI=tr.create,ez=ia.create,iz=na.create,nz=wt.create,tz=Xn.create,az=vn.create,rz=ar.create,sz=et.create,vd=Di.create,oz=Di.strictCreate,lz=ta.create,uz=_l.create,cz=aa.create,pz=_n.create,dz=Hl.create,hz=rr.create,gz=sr.create,mz=Rl.create,fz=ra.create,wz=sa.create,vz=oa.create,Cz=la.create,Az=vt.create,bz=rn.create,yz=tn.create,Pz=Hn.create,jz=rn.createWithPreprocess,Sz=ws.create,Oz=()=>wy().optional(),xz=()=>vy().optional(),Tz=()=>Cy().optional(),Mz={string:(t=>ft.create({...t,coerce:!0})),number:(t=>Qt.create({...t,coerce:!0})),boolean:(t=>Xt.create({...t,coerce:!0})),bigint:(t=>Yt.create({...t,coerce:!0})),date:(t=>ea.create({...t,coerce:!0}))};var Ez=K;var Ay;function j(t,e,i){function n(o,l){if(o._zod||Object.defineProperty(o,"_zod",{value:{def:l,constr:s,traits:new Set},enumerable:!1}),o._zod.traits.has(t))return;o._zod.traits.add(t),e(o,l);let u=s.prototype,c=Object.keys(u);for(let p=0;pi?.Parent&&o instanceof i.Parent?!0:o?._zod?.traits?.has(t)}),Object.defineProperty(s,"name",{value:t}),s}var MX=Symbol("zod_brand"),Rn=class extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}},lr=class extends Error{constructor(e){super(`Encountered unidirectional transform during encode: ${e}`),this.name="ZodEncodeError"}};(Ay=globalThis).__zod_globalConfig??(Ay.__zod_globalConfig={});var ur=globalThis.__zod_globalConfig;function Qi(t){return t&&Object.assign(ur,t),ur}var he={};gd(he,{BIGINT_FORMAT_RANGES:()=>Py,Class:()=>Ad,NUMBER_FORMAT_RANGES:()=>xd,aborted:()=>bt,allowsEval:()=>Pd,assert:()=>Iz,assertEqual:()=>qz,assertIs:()=>Hz,assertNever:()=>Rz,assertNotEqual:()=>_z,assignProp:()=>Ct,base64ToUint8Array:()=>ky,base64urlToUint8Array:()=>Vz,cached:()=>pr,captureStackTrace:()=>Dl,cleanEnum:()=>Fz,cleanRegex:()=>bs,clone:()=>Yi,cloneDef:()=>Dz,createTransparentProxy:()=>Wz,defineLazy:()=>Oe,esc:()=>zl,escapeRegex:()=>nt,explicitlyAborted:()=>Td,extend:()=>Oy,finalizeIssue:()=>sn,floatSafeRemainder:()=>bd,getElementAtPath:()=>Gz,getEnumValues:()=>Cs,getLengthableOrigin:()=>ys,getParsedType:()=>Lz,getSizableOrigin:()=>Ey,hexToUint8Array:()=>Zz,isObject:()=>da,isPlainObject:()=>At,issue:()=>dr,joinValues:()=>Il,jsonStringifyReplacer:()=>cr,merge:()=>Bz,mergeDefs:()=>it,normalizeParams:()=>J,nullish:()=>As,numKeys:()=>Uz,objectClone:()=>zz,omit:()=>Sy,optionalKeys:()=>Od,parsedType:()=>Md,partial:()=>Ty,pick:()=>jy,prefixIssues:()=>tt,primitiveTypes:()=>yy,promiseAllObject:()=>$z,propertyKeyTypes:()=>Sd,randomString:()=>Nz,required:()=>My,safeExtend:()=>xy,shallowClone:()=>jd,slugify:()=>yd,stringifyPrimitive:()=>Gl,uint8ArrayToBase64:()=>qy,uint8ArrayToBase64url:()=>Jz,uint8ArrayToHex:()=>Kz,unwrapMessage:()=>vs});function qz(t){return t}function _z(t){return t}function Hz(t){}function Rz(t){throw new Error("Unexpected value in exhaustive check")}function Iz(t){}function Cs(t){let e=Object.values(t).filter(n=>typeof n=="number");return Object.entries(t).filter(([n,a])=>e.indexOf(+n)===-1).map(([n,a])=>a)}function Il(t,e="|"){return t.map(i=>Gl(i)).join(e)}function cr(t,e){return typeof e=="bigint"?e.toString():e}function pr(t){return{get value(){{let i=t();return Object.defineProperty(this,"value",{value:i}),i}throw new Error("cached value already set")}}}function As(t){return t==null}function bs(t){let e=t.startsWith("^")?1:0,i=t.endsWith("$")?t.length-1:t.length;return t.slice(e,i)}function bd(t,e){let i=t/e,n=Math.round(i),a=Number.EPSILON*Math.max(Math.abs(i),1);return Math.abs(i-n)i?.[n],t):t}function $z(t){let e=Object.keys(t),i=e.map(n=>t[n]);return Promise.all(i).then(n=>{let a={};for(let r=0;r{};function da(t){return typeof t=="object"&&t!==null&&!Array.isArray(t)}var Pd=pr(()=>{if(ur.jitless||typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{let t=Function;return new t(""),!0}catch{return!1}});function At(t){if(da(t)===!1)return!1;let e=t.constructor;if(e===void 0||typeof e!="function")return!0;let i=e.prototype;return!(da(i)===!1||Object.prototype.hasOwnProperty.call(i,"isPrototypeOf")===!1)}function jd(t){return At(t)?{...t}:Array.isArray(t)?[...t]:t instanceof Map?new Map(t):t instanceof Set?new Set(t):t}function Uz(t){let e=0;for(let i in t)Object.prototype.hasOwnProperty.call(t,i)&&e++;return e}var Lz=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}`)}},Sd=new Set(["string","number","symbol"]),yy=new Set(["string","number","bigint","boolean","symbol","undefined"]);function nt(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Yi(t,e,i){let n=new t._zod.constr(e??t._zod.def);return(!e||i?.parent)&&(n._zod.parent=t),n}function J(t){let e=t;if(!e)return{};if(typeof e=="string")return{error:()=>e};if(e?.message!==void 0){if(e?.error!==void 0)throw new Error("Cannot specify both `message` and `error` params");e.error=e.message}return delete e.message,typeof e.error=="string"?{...e,error:()=>e.error}:e}function Wz(t){let e;return new Proxy({},{get(i,n,a){return e??(e=t()),Reflect.get(e,n,a)},set(i,n,a,r){return e??(e=t()),Reflect.set(e,n,a,r)},has(i,n){return e??(e=t()),Reflect.has(e,n)},deleteProperty(i,n){return e??(e=t()),Reflect.deleteProperty(e,n)},ownKeys(i){return e??(e=t()),Reflect.ownKeys(e)},getOwnPropertyDescriptor(i,n){return e??(e=t()),Reflect.getOwnPropertyDescriptor(e,n)},defineProperty(i,n,a){return e??(e=t()),Reflect.defineProperty(e,n,a)}})}function Gl(t){return typeof t=="bigint"?t.toString()+"n":typeof t=="string"?`"${t}"`:`${t}`}function Od(t){return Object.keys(t).filter(e=>t[e]._zod.optin==="optional"&&t[e]._zod.optout==="optional")}var xd={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]},Py={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function jy(t,e){let i=t._zod.def,n=i.checks;if(n&&n.length>0)throw new Error(".pick() cannot be used on object schemas containing refinements");let r=it(t._zod.def,{get shape(){let s={};for(let o in e){if(!(o in i.shape))throw new Error(`Unrecognized key: "${o}"`);e[o]&&(s[o]=i.shape[o])}return Ct(this,"shape",s),s},checks:[]});return Yi(t,r)}function Sy(t,e){let i=t._zod.def,n=i.checks;if(n&&n.length>0)throw new Error(".omit() cannot be used on object schemas containing refinements");let r=it(t._zod.def,{get shape(){let s={...t._zod.def.shape};for(let o in e){if(!(o in i.shape))throw new Error(`Unrecognized key: "${o}"`);e[o]&&delete s[o]}return Ct(this,"shape",s),s},checks:[]});return Yi(t,r)}function Oy(t,e){if(!At(e))throw new Error("Invalid input to extend: expected a plain object");let i=t._zod.def.checks;if(i&&i.length>0){let r=t._zod.def.shape;for(let s in e)if(Object.getOwnPropertyDescriptor(r,s)!==void 0)throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}let a=it(t._zod.def,{get shape(){let r={...t._zod.def.shape,...e};return Ct(this,"shape",r),r}});return Yi(t,a)}function xy(t,e){if(!At(e))throw new Error("Invalid input to safeExtend: expected a plain object");let i=it(t._zod.def,{get shape(){let n={...t._zod.def.shape,...e};return Ct(this,"shape",n),n}});return Yi(t,i)}function Bz(t,e){if(t._zod.def.checks?.length)throw new Error(".merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.");let i=it(t._zod.def,{get shape(){let n={...t._zod.def.shape,...e._zod.def.shape};return Ct(this,"shape",n),n},get catchall(){return e._zod.def.catchall},checks:e._zod.def.checks??[]});return Yi(t,i)}function Ty(t,e,i){let a=e._zod.def.checks;if(a&&a.length>0)throw new Error(".partial() cannot be used on object schemas containing refinements");let s=it(e._zod.def,{get shape(){let o=e._zod.def.shape,l={...o};if(i)for(let u in i){if(!(u in o))throw new Error(`Unrecognized key: "${u}"`);i[u]&&(l[u]=t?new t({type:"optional",innerType:o[u]}):o[u])}else for(let u in o)l[u]=t?new t({type:"optional",innerType:o[u]}):o[u];return Ct(this,"shape",l),l},checks:[]});return Yi(e,s)}function My(t,e,i){let n=it(e._zod.def,{get shape(){let a=e._zod.def.shape,r={...a};if(i)for(let s in i){if(!(s in r))throw new Error(`Unrecognized key: "${s}"`);i[s]&&(r[s]=new t({type:"nonoptional",innerType:a[s]}))}else for(let s in a)r[s]=new t({type:"nonoptional",innerType:a[s]});return Ct(this,"shape",r),r}});return Yi(e,n)}function bt(t,e=0){if(t.aborted===!0)return!0;for(let i=e;i{var n;return(n=i).path??(n.path=[]),i.path.unshift(t),i})}function vs(t){return typeof t=="string"?t:t?.message}function sn(t,e,i){let n=t.message?t.message:vs(t.inst?._zod.def?.error?.(t))??vs(e?.error?.(t))??vs(i.customError?.(t))??vs(i.localeError?.(t))??"Invalid input",{inst:a,continue:r,input:s,...o}=t;return o.path??(o.path=[]),o.message=n,e?.reportInput&&(o.input=s),o}function Ey(t){return t instanceof Set?"set":t instanceof Map?"map":t instanceof File?"file":"unknown"}function ys(t){return Array.isArray(t)?"array":typeof t=="string"?"string":"unknown"}function Md(t){let e=typeof t;switch(e){case"number":return Number.isNaN(t)?"nan":"number";case"object":{if(t===null)return"null";if(Array.isArray(t))return"array";let i=t;if(i&&Object.getPrototypeOf(i)!==Object.prototype&&"constructor"in i&&i.constructor)return i.constructor.name}}return e}function dr(...t){let[e,i,n]=t;return typeof e=="string"?{message:e,code:"custom",input:i,inst:n}:{...e}}function Fz(t){return Object.entries(t).filter(([e,i])=>Number.isNaN(Number.parseInt(e,10))).map(e=>e[1])}function ky(t){let e=atob(t),i=new Uint8Array(e.length);for(let n=0;ne.toString(16).padStart(2,"0")).join("")}var Ad=class{constructor(...e){}};var _y=(t,e)=>{t.name="$ZodError",Object.defineProperty(t,"_zod",{value:t._zod,enumerable:!1}),Object.defineProperty(t,"issues",{value:e,enumerable:!1}),t.message=JSON.stringify(e,cr,2),Object.defineProperty(t,"toString",{value:()=>t.message,enumerable:!1})},$l=j("$ZodError",_y),Ps=j("$ZodError",_y,{Parent:Error});function Hy(t,e=i=>i.message){let i={},n=[];for(let a of t.issues)a.path.length>0?(i[a.path[0]]=i[a.path[0]]||[],i[a.path[0]].push(e(a))):n.push(e(a));return{formErrors:n,fieldErrors:i}}function Ry(t,e=i=>i.message){let i={_errors:[]},n=(a,r=[])=>{for(let s of a.issues)if(s.code==="invalid_union"&&s.errors.length)s.errors.map(o=>n({issues:o},[...r,...s.path]));else if(s.code==="invalid_key")n({issues:s.issues},[...r,...s.path]);else if(s.code==="invalid_element")n({issues:s.issues},[...r,...s.path]);else{let o=[...r,...s.path];if(o.length===0)i._errors.push(e(s));else{let l=i,u=0;for(;u(e,i,n,a)=>{let r=n?{...n,async:!1}:{async:!1},s=e._zod.run({value:i,issues:[]},r);if(s instanceof Promise)throw new Rn;if(s.issues.length){let o=new(a?.Err??t)(s.issues.map(l=>sn(l,r,Qi())));throw Dl(o,a?.callee),o}return s.value},Nl=js(Ps),Ss=t=>async(e,i,n,a)=>{let r=n?{...n,async:!0}:{async:!0},s=e._zod.run({value:i,issues:[]},r);if(s instanceof Promise&&(s=await s),s.issues.length){let o=new(a?.Err??t)(s.issues.map(l=>sn(l,r,Qi())));throw Dl(o,a?.callee),o}return s.value},Ul=Ss(Ps),Os=t=>(e,i,n)=>{let a=n?{...n,async:!1}:{async:!1},r=e._zod.run({value:i,issues:[]},a);if(r instanceof Promise)throw new Rn;return r.issues.length?{success:!1,error:new(t??$l)(r.issues.map(s=>sn(s,a,Qi())))}:{success:!0,data:r.value}},ha=Os(Ps),xs=t=>async(e,i,n)=>{let a=n?{...n,async:!0}:{async:!0},r=e._zod.run({value:i,issues:[]},a);return r instanceof Promise&&(r=await r),r.issues.length?{success:!1,error:new t(r.issues.map(s=>sn(s,a,Qi())))}:{success:!0,data:r.value}},ga=xs(Ps),Iy=t=>(e,i,n)=>{let a=n?{...n,direction:"backward"}:{direction:"backward"};return js(t)(e,i,a)};var zy=t=>(e,i,n)=>js(t)(e,i,n);var Dy=t=>async(e,i,n)=>{let a=n?{...n,direction:"backward"}:{direction:"backward"};return Ss(t)(e,i,a)};var Gy=t=>async(e,i,n)=>Ss(t)(e,i,n);var $y=t=>(e,i,n)=>{let a=n?{...n,direction:"backward"}:{direction:"backward"};return Os(t)(e,i,a)};var Ny=t=>(e,i,n)=>Os(t)(e,i,n);var Uy=t=>async(e,i,n)=>{let a=n?{...n,direction:"backward"}:{direction:"backward"};return xs(t)(e,i,a)};var Ly=t=>async(e,i,n)=>xs(t)(e,i,n);var Wy=/^[cC][0-9a-z]{6,}$/,By=/^[0-9a-z]+$/,Fy=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,Vy=/^[0-9a-vA-V]{20}$/,Jy=/^[A-Za-z0-9]{27}$/,Zy=/^[a-zA-Z0-9_-]{21}$/,Ky=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/;var Qy=/^([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})$/,Ed=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 Yy=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/;var Yz="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function Xy(){return new RegExp(Yz,"u")}var eP=/^(?:(?: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])$/,iP=/^(([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 nP=/^((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])$/,tP=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,aP=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,kd=/^[A-Za-z0-9_-]*$/;var rP=/^https?$/,sP=/^\+[1-9]\d{6,14}$/,oP="(?:(?:\\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])))",lP=new RegExp(`^${oP}$`);function uP(t){let e="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof t.precision=="number"?t.precision===-1?`${e}`:t.precision===0?`${e}:[0-5]\\d`:`${e}:[0-5]\\d\\.\\d{${t.precision}}`:`${e}(?::[0-5]\\d(?:\\.\\d+)?)?`}function cP(t){return new RegExp(`^${uP(t)}$`)}function pP(t){let e=uP({precision:t.precision}),i=["Z"];t.local&&i.push(""),t.offset&&i.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");let n=`${e}(?:${i.join("|")})`;return new RegExp(`^${oP}T(?:${n})$`)}var dP=t=>{let e=t?`[\\s\\S]{${t?.minimum??0},${t?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${e}$`)};var hP=/^-?\d+$/,qd=/^-?\d+(?:\.\d+)?$/,gP=/^(?:true|false)$/i,mP=/^null$/i;var fP=/^[^A-Z]*$/,wP=/^[^a-z]*$/;var di=j("$ZodCheck",(t,e)=>{var i;t._zod??(t._zod={}),t._zod.def=e,(i=t._zod).onattach??(i.onattach=[])}),vP={number:"number",bigint:"bigint",object:"date"},_d=j("$ZodCheckLessThan",(t,e)=>{di.init(t,e);let i=vP[typeof e.value];t._zod.onattach.push(n=>{let a=n._zod.bag,r=(e.inclusive?a.maximum:a.exclusiveMaximum)??Number.POSITIVE_INFINITY;e.value{(e.inclusive?n.value<=e.value:n.value{di.init(t,e);let i=vP[typeof e.value];t._zod.onattach.push(n=>{let a=n._zod.bag,r=(e.inclusive?a.minimum:a.exclusiveMinimum)??Number.NEGATIVE_INFINITY;e.value>r&&(e.inclusive?a.minimum=e.value:a.exclusiveMinimum=e.value)}),t._zod.check=n=>{(e.inclusive?n.value>=e.value:n.value>e.value)||n.issues.push({origin:i,code:"too_small",minimum:typeof e.value=="object"?e.value.getTime():e.value,input:n.value,inclusive:e.inclusive,inst:t,continue:!e.abort})}}),CP=j("$ZodCheckMultipleOf",(t,e)=>{di.init(t,e),t._zod.onattach.push(i=>{var n;(n=i._zod.bag).multipleOf??(n.multipleOf=e.value)}),t._zod.check=i=>{if(typeof i.value!=typeof e.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof i.value=="bigint"?i.value%e.value===BigInt(0):bd(i.value,e.value)===0)||i.issues.push({origin:typeof i.value,code:"not_multiple_of",divisor:e.value,input:i.value,inst:t,continue:!e.abort})}}),AP=j("$ZodCheckNumberFormat",(t,e)=>{di.init(t,e),e.format=e.format||"float64";let i=e.format?.includes("int"),n=i?"int":"number",[a,r]=xd[e.format];t._zod.onattach.push(s=>{let o=s._zod.bag;o.format=e.format,o.minimum=a,o.maximum=r,i&&(o.pattern=hP)}),t._zod.check=s=>{let o=s.value;if(i){if(!Number.isInteger(o)){s.issues.push({expected:n,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:n,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:n,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 bP=j("$ZodCheckMaxLength",(t,e)=>{var i;di.init(t,e),(i=t._zod.def).when??(i.when=n=>{let a=n.value;return!As(a)&&a.length!==void 0}),t._zod.onattach.push(n=>{let a=n._zod.bag.maximum??Number.POSITIVE_INFINITY;e.maximum{let a=n.value;if(a.length<=e.maximum)return;let s=ys(a);n.issues.push({origin:s,code:"too_big",maximum:e.maximum,inclusive:!0,input:a,inst:t,continue:!e.abort})}}),yP=j("$ZodCheckMinLength",(t,e)=>{var i;di.init(t,e),(i=t._zod.def).when??(i.when=n=>{let a=n.value;return!As(a)&&a.length!==void 0}),t._zod.onattach.push(n=>{let a=n._zod.bag.minimum??Number.NEGATIVE_INFINITY;e.minimum>a&&(n._zod.bag.minimum=e.minimum)}),t._zod.check=n=>{let a=n.value;if(a.length>=e.minimum)return;let s=ys(a);n.issues.push({origin:s,code:"too_small",minimum:e.minimum,inclusive:!0,input:a,inst:t,continue:!e.abort})}}),PP=j("$ZodCheckLengthEquals",(t,e)=>{var i;di.init(t,e),(i=t._zod.def).when??(i.when=n=>{let a=n.value;return!As(a)&&a.length!==void 0}),t._zod.onattach.push(n=>{let a=n._zod.bag;a.minimum=e.length,a.maximum=e.length,a.length=e.length}),t._zod.check=n=>{let a=n.value,r=a.length;if(r===e.length)return;let s=ys(a),o=r>e.length;n.issues.push({origin:s,...o?{code:"too_big",maximum:e.length}:{code:"too_small",minimum:e.length},inclusive:!0,exact:!0,input:n.value,inst:t,continue:!e.abort})}}),Ms=j("$ZodCheckStringFormat",(t,e)=>{var i,n;di.init(t,e),t._zod.onattach.push(a=>{let r=a._zod.bag;r.format=e.format,e.pattern&&(r.patterns??(r.patterns=new Set),r.patterns.add(e.pattern))}),e.pattern?(i=t._zod).check??(i.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})}):(n=t._zod).check??(n.check=()=>{})}),jP=j("$ZodCheckRegex",(t,e)=>{Ms.init(t,e),t._zod.check=i=>{e.pattern.lastIndex=0,!e.pattern.test(i.value)&&i.issues.push({origin:"string",code:"invalid_format",format:"regex",input:i.value,pattern:e.pattern.toString(),inst:t,continue:!e.abort})}}),SP=j("$ZodCheckLowerCase",(t,e)=>{e.pattern??(e.pattern=fP),Ms.init(t,e)}),OP=j("$ZodCheckUpperCase",(t,e)=>{e.pattern??(e.pattern=wP),Ms.init(t,e)}),xP=j("$ZodCheckIncludes",(t,e)=>{di.init(t,e);let i=nt(e.includes),n=new RegExp(typeof e.position=="number"?`^.{${e.position}}${i}`:i);e.pattern=n,t._zod.onattach.push(a=>{let r=a._zod.bag;r.patterns??(r.patterns=new Set),r.patterns.add(n)}),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})}}),TP=j("$ZodCheckStartsWith",(t,e)=>{di.init(t,e);let i=new RegExp(`^${nt(e.prefix)}.*`);e.pattern??(e.pattern=i),t._zod.onattach.push(n=>{let a=n._zod.bag;a.patterns??(a.patterns=new Set),a.patterns.add(i)}),t._zod.check=n=>{n.value.startsWith(e.prefix)||n.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:e.prefix,input:n.value,inst:t,continue:!e.abort})}}),MP=j("$ZodCheckEndsWith",(t,e)=>{di.init(t,e);let i=new RegExp(`.*${nt(e.suffix)}$`);e.pattern??(e.pattern=i),t._zod.onattach.push(n=>{let a=n._zod.bag;a.patterns??(a.patterns=new Set),a.patterns.add(i)}),t._zod.check=n=>{n.value.endsWith(e.suffix)||n.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:e.suffix,input:n.value,inst:t,continue:!e.abort})}});var EP=j("$ZodCheckOverwrite",(t,e)=>{di.init(t,e),t._zod.check=i=>{i.value=e.tx(i.value)}});var Ll=class{constructor(e=[]){this.content=[],this.indent=0,this&&(this.args=e)}indented(e){this.indent+=1,e(this),this.indent-=1}write(e){if(typeof e=="function"){e(this,{execution:"sync"}),e(this,{execution:"async"});return}let n=e.split(` +`}getLogLevel(e){switch(e){case"error":return gs.level.LError;case"debug":return gs.level.LDebug;case"trace":return gs.level.LTrace;default:return gs.level.LNone}}getLogFormat(e){switch(e){case"json":return Qa.formats.JSON;default:return Qa.formats.TEXT}}},SA=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"),i=require("path");this.configPath=i.join(e.homedir(),".genesyscloudjavascript","config")}this.watchedConfigPath,this.refresh_access_token=!0,this.refresh_token_wait_max=10,this._live_reload_config=!0,this.host,this.environment,this.basePath,this.authUrl,this.config,this.gateway=void 0,this.logger=new jA,this.setEnvironment(),this.liveLoadConfig()}get live_reload_config(){return this._live_reload_config}set live_reload_config(e){if(typeof window>"u"){let i=require("fs");e!=null&&this.live_reload_config!==e&&(this._live_reload_config=e,this.watchedConfigPath&&(i.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},(i,n)=>{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 i=require("fs");e&&e!==this.configPath?(this.configPath=e,this.watchedConfigPath&&(i.unwatchFile(this.watchedConfigPath),this.watchedConfigPath=null),this.liveLoadConfig()):!e&&this.configPath&&(this.configPath="",this.watchedConfigPath&&(i.unwatchFile(this.watchedConfigPath),this.watchedConfigPath=null));return}this.configPath=""}updateConfigFromFile(){if(typeof window>"u"&&this.configPath){let n=nI();try{var e=new n;e.read(this.configPath),this.config=e}catch(a){if(a.name&&a.name==="MissingSectionHeaderError"){var i=require("fs").readFileSync(this.configPath,"utf8");this.config={_sections:JSON.parse(i)}}}this.config&&this.updateConfigValues()}}updateConfigValues(){if(this.logger.log_level=this.logger.getLogLevel(this.getConfigString("logging","log_level")),this.logger.log_format=this.logger.getLogFormat(this.getConfigString("logging","log_format")),this.logger.log_to_console=this.getConfigBoolean("logging","log_to_console")!==void 0?this.getConfigBoolean("logging","log_to_console"):this.logger.log_to_console,this.logger.log_file_path=this.getConfigString("logging","log_file_path")!==void 0?this.getConfigString("logging","log_file_path"):this.logger.log_file_path,this.logger.log_response_body=this.getConfigBoolean("logging","log_response_body")!==void 0?this.getConfigBoolean("logging","log_response_body"):this.logger.log_response_body,this.logger.log_request_body=this.getConfigBoolean("logging","log_request_body")!==void 0?this.getConfigBoolean("logging","log_request_body"):this.logger.log_request_body,this.refresh_access_token=this.getConfigBoolean("reauthentication","refresh_access_token")!==void 0?this.getConfigBoolean("reauthentication","refresh_access_token"):this.refresh_access_token,this.refresh_token_wait_max=this.getConfigInt("reauthentication","refresh_token_wait_max")!==void 0?this.getConfigInt("reauthentication","refresh_token_wait_max"):this.refresh_token_wait_max,this.live_reload_config=this.getConfigBoolean("general","live_reload_config")!==void 0?this.getConfigBoolean("general","live_reload_config"):this.live_reload_config,this.host=this.getConfigString("general","host")!==void 0?this.getConfigString("general","host"):this.host,this.getConfigString("gateway","host")!==void 0){let e={host:this.getConfigString("gateway","host")};this.getConfigString("gateway","protocol")!==void 0&&(e.protocol=this.getConfigString("gateway","protocol")),this.getConfigInt("gateway","port")!==void 0&&(e.port=this.getConfigInt("gateway","port")),this.getConfigString("gateway","path_params_login")!==void 0&&(e.path_params_login=this.getConfigString("gateway","path_params_login")),this.getConfigString("gateway","path_params_api")!==void 0&&(e.path_params_api=this.getConfigString("gateway","path_params_api")),this.getConfigString("gateway","username")!==void 0&&(e.username=this.getConfigString("gateway","username")),this.getConfigString("gateway","password")!==void 0&&(e.password=this.getConfigString("gateway","password")),this.setGateway(e)}else this.setGateway();this.setEnvironment(),this.logger.setLogger()}setGateway(e){e?(this.gateway={host:""},e.protocol?this.gateway.protocol=e.protocol:this.gateway.protocol="https",e.host?this.gateway.host=e.host:this.gateway.host="",e.port&&e.port>-1?this.gateway.port=e.port:this.gateway.port=-1,e.path_params_login?(this.gateway.path_params_login=e.path_params_login,this.gateway.path_params_login=this.gateway.path_params_login.replace(/\/+$/,"")):this.gateway.path_params_login="",e.path_params_api?(this.gateway.path_params_api=e.path_params_api,this.gateway.path_params_api=this.gateway.path_params_api.replace(/\/+$/,"")):this.gateway.path_params_api="",e.username&&(this.gateway.username=e.username),e.password&&(this.gateway.password=e.password)):this.gateway=void 0}setEnvironment(e){e?this.environment=e:this.environment=this.host?this.host:"mypurecloud.com",this.environment=this.environment.replace(/\/+$/,""),this.environment.startsWith("https://")&&(this.environment=this.environment.substring(8)),this.environment.startsWith("http://")&&(this.environment=this.environment.substring(7)),this.environment.startsWith("api.")&&(this.environment=this.environment.substring(4)),this.basePath=`https://api.${this.environment}`,this.authUrl=`https://login.${this.environment}`}getConfUrl(e,i){if(!this.gateway||!this.gateway.host)return i;var n=this.gateway.protocol+"://"+this.gateway.host;return this.gateway.port>-1&&(n=n+":"+this.gateway.port.toString()),e==="login"?this.gateway.path_params_login&&(this.gateway.path_params_login.startsWith("/")?n=n+this.gateway.path_params_login:n=n+"/"+this.gateway.path_params_login):this.gateway.path_params_api&&(this.gateway.path_params_api.startsWith("/")?n=n+this.gateway.path_params_api:n=n+"/"+this.gateway.path_params_api),n}getConfigString(e,i){if(this.config._sections[e])return this.config._sections[e][i]}getConfigBoolean(e,i){if(this.config._sections[e]&&this.config._sections[e][i]!==void 0)return typeof this.config._sections[e][i]=="string"?this.config._sections[e][i]==="true":this.config._sections[e][i]}getConfigInt(e,i){if(this.config._sections[e]&&this.config._sections[e][i])return typeof this.config._sections[e][i]=="string"?parseInt(this.config._sections[e][i]):this.config._sections[e][i]}},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;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 SA,typeof window<"u"&&(window.ApiClient=this)}setReturnExtendedResponses(e){this.returnExtended=e}setPersistSettings(e,i){this.persistSettings=e,this.settingsPrefix=i?i.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 i=JSON.parse(JSON.stringify(this.authData));delete i.state,localStorage.setItem(`${this.settingsPrefix}_auth_data`,JSON.stringify(i))}catch(i){console.error(i)}}_loadSettings(){if(this.persistSettings!==!0||!this.hasLocalStorage)return;let e=this.authData.state;this.authData=localStorage.getItem(`${this.settingsPrefix}_auth_data`),this.authData?this.authData=JSON.parse(this.authData):this.authData={},this.authData.accessToken&&this.setAccessToken(this.authData.accessToken),this.authData.state=e}_clearSettings(){try{if(this.authData&&this.authData.accessToken&&(this.authData.accessToken=null),this.authentications["PureCloud OAuth"]&&this.authentications["PureCloud OAuth"].accessToken&&(this.authentications["PureCloud OAuth"].accessToken=null),this.authData&&this.authData.state&&(this.authData.state=null),this.authData&&this.authData.error&&(this.authData.error=null),this.authData&&this.authData.error_description&&(this.authData.error_description=null),this.authData&&this.authData.tokenExpiryTime&&(this.authData.tokenExpiryTime=0),this.authData&&this.authData.tokenExpiryTimeString&&(this.authData.tokenExpiryTimeString=null),this.persistSettings!==!0||!this.hasLocalStorage)return;let e=JSON.parse(JSON.stringify(this.authData));delete e.state,localStorage.setItem(`${this.settingsPrefix}_auth_data`,JSON.stringify(e))}catch(e){console.error(e)}}setEnvironment(e){this.config.setEnvironment(e)}setDefaultHeaders(e){if(!e||typeof e!="object")throw new Error("default headers must be a map");this.defaultHeaders=e}getDefaultHeaders(){return this.defaultHeaders}setGenesysAppHeader(e){if(!e||typeof e!="string")throw new Error("headerValue must be a non empty string");this.defaultHeaders?this.defaultHeaders["Genesys-App"]=e:this.defaultHeaders={"Genesys-App":e}}getGenesysAppHeader(){return this.defaultHeaders&&this.defaultHeaders["Genesys-App"]?this.defaultHeaders["Genesys-App"]:null}setHttpClient(e){if(!(e instanceof El))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 pd(this.timeout,this.proxyAgent),this.httpClient)}setMTLSCertificates(e,i,n){if(typeof window>"u"){let a={};e&&(a.cert=require("fs").readFileSync(e)),i&&(a.key=require("fs").readFileSync(i)),n&&(a.ca=require("fs").readFileSync(n)),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,i,n){if(typeof window>"u"){let a={};e&&(a.cert=e),i&&(a.key=i),n&&(a.ca=n),a.rejectUnauthorized=!0,this.proxyAgent=new require("https").Agent(a),this.getHttpClient().setHttpsAgent(this.proxyAgent)}else throw new Error("MTLS authentication is managed by the Browser itself. MTLS certificates cannot be set via code on Browser.")}setGateway(e){this.config.setGateway(e)}loginImplicitGrant(e,i,n){let a=this._setValuesFromUrlHash();return this.clientId=e,this.redirectUri=i,n||(n={}),new Promise((r,s)=>{if(n.org&&!n.provider?s(new Error("opts.provider must be set if opts.org is set")):n.provider&&!n.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&&n.state&&(this.authData.state=n.state),r(this.authData)}).catch(o=>{var l={client_id:encodeURIComponent(this.clientId),redirect_uri:encodeURIComponent(this.redirectUri),response_type:"token"};n.state&&(l.state=encodeURIComponent(n.state)),n.org&&(l.org=encodeURIComponent(n.org)),n.provider&&(l.provider=encodeURIComponent(n.provider)),n.prompt&&n.prompt=="login"&&(l.prompt=encodeURIComponent(n.prompt));var u=this._buildAuthUrl("oauth/authorize",l);window.location.replace(u)})})}loginClientCredentialsGrant(e,i){this.clientId=e;var n=Buffer.from(`${e}:${i}`).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 ${n}`};var l=new Zt(`${a}/oauth/token`,"POST",o,null,"grant_type=client_credentials",this.timeout);this.getHttpClient().request(l).then(c=>{this.config.logger.log("trace",c.status,"POST",`${a}/oauth/token`,o,c.headers,{grant_type:"client_credentials"},void 0),this.config.logger.log("debug",c.status,"POST",`${a}/oauth/token`,o,void 0,{grant_type:"client_credentials"},void 0),this.setAccessToken(c.data.access_token),this.authData.tokenExpiryTime=new Date().getTime()+c.data.expires_in*1e3,this.authData.tokenExpiryTimeString=new Date(this.authData.tokenExpiryTime).toUTCString(),r(this.authData)}).catch(c=>{c.response&&this.config.logger.log("error",c.response.status,"POST",`${a}/oauth/token`,o,c.response.headers,{grant_type:"client_credentials"},c.response.data),s(c)})})}loginSaml2BearerGrant(e,i,n,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+":"+i).toString("base64"),u=this._formAuthRequest(l,{grant_type:"urn:ietf:params:oauth:grant-type:saml2-bearer",orgName:n,assertion:a});u.proxy=this.proxy;var c={grant_type:"urn:ietf:params:oauth:grant-type:saml2-bearer",orgName:n,assertion:a};u.then(p=>{this.config.logger.log("trace",p.status,"POST",`${r}/oauth/token`,u.headers,p.headers,c,void 0),this.config.logger.log("debug",p.status,"POST",`${r}/oauth/token`,u.headers,void 0,c,void 0);var d=p.data.access_token;this.setAccessToken(d),this.authData.tokenExpiryTime=new Date().getTime()+p.data.expires_in*1e3,this.authData.tokenExpiryTimeString=new Date(this.authData.tokenExpiryTime).toUTCString(),s(this.authData)}).catch(p=>{p.response&&this.config.logger.log("error",p.response.status,"POST",`${r}/oauth/token`,u.headers,p.response.headers,c,p.response.data),o(p)})})}authorizePKCEGrant(e,i,n,a){this.clientId=e;var r=this.config.getConfUrl("login",`https://login.${this.config.environment}`);return new Promise((s,o)=>{var l={"Content-Type":"application/x-www-form-urlencoded"},u=tI.default.stringify({grant_type:"authorization_code",code:n,code_verifier:i,client_id:e,redirect_uri:a}),c=new Zt(`${r}/oauth/token`,"POST",l,null,u,this.timeout);let p=this.getHttpClient();var d={grant_type:"authorization_code",code:n,code_verifier:i,client_id:e,redirect_uri:a};p.request(c).then(h=>{this.config.logger.log("trace",h.status,"POST",`${r}/oauth/token`,c.headers,h.headers,d,void 0),this.config.logger.log("debug",h.status,"POST",`${r}/oauth/token`,c.headers,void 0,d,void 0);var g=h.data.access_token;let m={accessToken:g};h.data.expires_in!==null&&h.data.expires_in!==void 0&&(m.tokenExpiryTime=new Date().getTime()+h.data.expires_in*1e3,m.tokenExpiryTimeString=new Date(m.tokenExpiryTime).toUTCString()),this._saveSettings(m),s(this.authData)}).catch(h=>{h.response&&this.config.logger.log("error",h.response.status,"POST",`${r}/oauth/token`,c.headers,h.response.headers,d,h.response.data),o(h)})})}generatePKCECodeVerifier(e){if(e<43||e>128)throw new Error("PKCE Code Verifier (length) must be between 43 and 128 characters");if(typeof window>"u")try{let i=require("crypto").getRandomValues,n="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-._~";return Array.from(i(new Uint32Array(e))).map(r=>n[r%n.length]).join("")}catch{throw new Error("Crypto module is missing/not supported.")}else{let i="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-._~";return Array.from(crypto.getRandomValues(new Uint32Array(e))).map(a=>i[a%i.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 i=require("crypto").createHash,n=new TextEncoder().encode(e);return new Promise((a,r)=>{let s=i("sha256").update(n).digest(),o=Buffer.from(s).toString("base64url");a(o)})}catch{throw new Error("Crypto module is missing/not supported.")}else{let i=new TextEncoder().encode(e);return new Promise((n,a)=>{window.crypto.subtle.digest("SHA-256",i).then(r=>{let o=btoa(String.fromCharCode(...new Uint8Array(r))).replaceAll("+","-").replaceAll("/","_");o=o.split("=")[0],n(o)}).catch(r=>a(new Error(`Code Challenge Error ${r}`)))})}}loginPKCEGrant(e,i,n,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=i,this.codeVerifier=a,n||(n={}),new Promise((s,o)=>{if(n.org&&!n.provider)return o(new Error("opts.provider must be set if opts.org is set"));if(n.provider&&!n.org)return o(new Error("opts.org must be set if opts.provider is set"));if(r&&r.error)return this.hasLocalStorage&&sessionStorage.removeItem("genesys_cloud_sdk_pkce_code_verifier"),this._saveSettings({accessToken:void 0}),o(new Error(`[${r.error}] ${r.error_description}`));r&&r.code?(this.codeVerifier||this.hasLocalStorage&&(this.codeVerifier=sessionStorage.getItem("genesys_cloud_sdk_pkce_code_verifier")),this.authorizePKCEGrant(this.clientId,this.codeVerifier,r.code,this.redirectUri).then(()=>{this._testTokenAccess().then(()=>{!this.authData.state&&r.state&&(this.authData.state=r.state),this.hasLocalStorage&&sessionStorage.removeItem("genesys_cloud_sdk_pkce_code_verifier"),s(this.authData)}).catch(l=>(this._saveSettings({accessToken:void 0}),this.hasLocalStorage&&sessionStorage.removeItem("genesys_cloud_sdk_pkce_code_verifier"),o(new Error(`[${l.name}] ${l.msg}`))))}).catch(l=>(this._saveSettings({accessToken:void 0}),this.hasLocalStorage&&sessionStorage.removeItem("genesys_cloud_sdk_pkce_code_verifier"),o(new Error(`[${l.name}] ${l.msg}`))))):this._testTokenAccess().then(()=>{!this.authData.state&&n.state&&(this.authData.state=n.state),s(this.authData)}).catch(l=>{this.codeVerifier||(this.codeVerifier=this.generatePKCECodeVerifier(128),this.hasLocalStorage&&sessionStorage.setItem("genesys_cloud_sdk_pkce_code_verifier",this.codeVerifier)),this.computePKCECodeChallenge(this.codeVerifier).then(u=>{var c={client_id:encodeURIComponent(this.clientId),redirect_uri:encodeURIComponent(this.redirectUri),code_challenge:encodeURIComponent(u),response_type:"code",code_challenge_method:"S256"};n.state&&(c.state=encodeURIComponent(n.state)),n.org&&(c.org=encodeURIComponent(n.org)),n.provider&&(c.provider=encodeURIComponent(n.provider)),n.prompt&&n.prompt=="login"&&(c.prompt=encodeURIComponent(n.prompt));var p=this._buildAuthUrl("oauth/authorize",c);window.location.replace(p)}).catch(u=>o(new Error(`[${u.name}]`)))})})}_setValuesFromUrlQuery(){if(!(typeof window<"u"&&window.location.search))return;let e={},i=new URLSearchParams(window.location.search),n=i.get("code"),a=i.get("error"),r=i.get("error_description"),s=i.get("state");if(a)return e.error=a,r&&(e.error_description=r),e;n&&(e.code=n,s&&(e.state=s));var o,l,u=window.location;return"replaceState"in history?history.replaceState("",document.title,u.pathname):(o=document.body.scrollTop,l=document.body.scrollLeft,history.pushState("",document.title,u.pathname),document.body.scrollTop=o,document.body.scrollLeft=l),e}loginCodeAuthorizationGrant(e,i,n,a){return this.clientId=e,this.clientSecret=i,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+":"+i).toString("base64"),l=this._formAuthRequest(o,{grant_type:"authorization_code",code:n,redirect_uri:a});l.proxy=this.proxy;var u={grant_type:"authorization_code",code:n,redirect_uri:a};this._handleCodeAuthorizationResponse(l,u,r,s)})}refreshCodeAuthorizationGrant(e,i,n){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+":"+i).toString("base64"),o=this._formAuthRequest(s,{grant_type:"refresh_token",refresh_token:n});o.proxy=this.proxy;var l={grant_type:"refresh_token",refresh_token:n};this._handleCodeAuthorizationResponse(o,l,a,r)})}_handleCodeAuthorizationResponse(e,i,n,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,i,void 0),this.config.logger.log("debug",s.status,"POST",`${r}/oauth/token`,e.headers,void 0,i,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(),n(this.authData)}).catch(s=>{s.response&&this.config.logger.log("error",s.response.status,"POST",`${r}/oauth/token`,e.headers,s.response.headers,i,s.response.data),a(s)})}_formAuthRequest(e,i){var n=this.config.getConfUrl("login",`https://login.${this.config.environment}`),a={Authorization:"Basic "+e,"Content-Type":"application/x-www-form-urlencoded"},r=new Zt(`${n}/oauth/token`,"POST",a,null,tI.default.stringify(i),this.timeout);return this.getHttpClient().request(r)}_handleExpiredAccessToken(){return new Promise((e,i)=>{if(typeof window<"u"){i(new Error("This method is not supported in a browser."));return}this.refreshInProgress?this._sleep(this.config.refresh_token_wait_max).then(()=>{this.refreshInProgress?i(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(n=>{this.refreshInProgress=!1,i(n)}))})}_sleep(e){return new Promise(i=>setTimeout(i,e))}_testTokenAccess(){return new Promise((e,i)=>{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(()=>{e()}).catch(n=>{this._saveSettings({accessToken:void 0}),i(n)})})}_setValuesFromUrlHash(){if(!(typeof window<"u"&&window.location.hash))return;let e=new RegExp("^#*(.+?)=(.+?)$","i"),i={};if(window.location.hash.split("&").forEach(s=>{let o=e.exec(s);o&&(i[o[1]]=decodeURIComponent(decodeURIComponent(o[2].replace(/\+/g,"%20"))))}),i.error)return i;if(i.access_token){let s={};i.state&&(s.state=i.state),i.expires_in&&(s.tokenExpiryTime=new Date().getTime()+parseInt(i.expires_in.replace(/\+/g,"%20"))*1e3,s.tokenExpiryTimeString=new Date(s.tokenExpiryTime).toUTCString()),s.accessToken=i.access_token.replace(/\+/g,"%20");var n,a,r=window.location;"replaceState"in history?history.replaceState("",document.title,r.pathname+r.search):(n=document.body.scrollTop,a=document.body.scrollLeft,r.hash="",document.body.scrollTop=n,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 i={client_id:encodeURIComponent(this.clientId)};e&&(i.redirect_uri=encodeURI(e));var n=this._buildAuthUrl("logout",i);window.location.replace(n)}_buildAuthUrl(e,i){i||(i={});var n=this.config.getConfUrl("login",this.config.authUrl);return Object.keys(i).reduce((a,r)=>i[r]?`${a}&${r}=${i[r]}`:a,`${n}/${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 i={};for(var n in e)e.hasOwnProperty(n)&&e[n]!==void 0&&(i[encodeURIComponent(n)]=Array.isArray(e[n])?e[n].join(","):this.paramToString(e[n]));return i}addHeaders(e,...i){return e?e=Object.assign(e,...i):e=Object.assign(...i),e}buildUrl(e,i){e.match(/^\//)||(e=`/${e}`);var n=this.config.getConfUrl("api",this.config.basePath)+e;return n=n.replace(/\{([\w-]+)\}/g,(a,r)=>{var s;return i.hasOwnProperty(r)?s=this.paramToString(i[r]):s=a,encodeURIComponent(s)}),n}isJsonMime(e){return!!(e&&e.match(/^application\/json(;.*)?$/i))}jsonPreferredMime(e){for(var i=0;i"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 i={};for(var n in e)if(e.hasOwnProperty(n)&&e[n]!==void 0){var a=e[n];this.isFileParam(a)||Array.isArray(a)?i[n]=a:i[n]=this.paramToString(a)}return i}buildCollectionParam(e,i){if(e)switch(Array.isArray(e)||(e=[e]),i){case"csv":return e.map(n=>this.paramToString(n)).join(",");case"ssv":return e.map(n=>this.paramToString(n)).join(" ");case"tsv":return e.map(n=>this.paramToString(n)).join(" ");case"pipes":return e.map(n=>this.paramToString(n)).join("|");case"multi":return e.map(n=>this.paramToString(n));default:throw new Error(`Unknown collection format: ${i}`)}}applyAuthToRequest(e,i){i.forEach(n=>{var a=this.authentications[n];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,i,n,a,r,s,o,l,u,c,p){return new Promise((d,h)=>{g(this);function g(m){var f=m.buildUrl(e,n),v=new Zt(f,i,null,m.serialize(a),null,m.timeout);m.applyAuthToRequest(v,l);let y=m.defaultHeaders,A=m.normalizeParams(r);if(v.headers=m.addHeaders(v.headers,y,A),p){if(typeof p!="object")throw new Error("Per-request headers must be a valid object");for(let[k,Q]of Object.entries(p)){if(typeof k!="string"||typeof Q!="string")throw new Error(`Invalid header: "${k}" must have string name and value`);if(!/^[!#$%&'*+\-.0-9A-Z^_`a-z|~]+$/.test(k))throw new Error(`Invalid header name: "${k}" - must be a valid HTTP token`);for(let Z=0;Z=33&&ie<=126||ie===32||ie===9||ie>=128&&ie<=255))throw new Error(`Invalid header value for "${k}": contains invalid characters`)}v.headers[k]=Q}}var b=m.jsonPreferredMime(u);if(b?v.headers["Content-Type"]=b:v.headers["Content-Type"]||(v.headers["Content-Type"]="application/json"),b==="application/x-www-form-urlencoded")v.setData(m.normalizeParams(s));else if(b=="multipart/form-data"){var O=m.normalizeParams(s);for(var $ in O)if(O.hasOwnProperty($)){var N=new FormData;N.set($,O[$]),v.setData(N)}}else o&&v.setData(o);var X=m.jsonPreferredMime(c);X&&(v.headers.Accept=X),m.getHttpClient().request(v).then(k=>{var Q=m.returnExtended===!0?{status:k.status,statusText:k.statusText,headers:k.headers,body:k.data,text:k.text,error:null}:k.data?k.data:k.text;m.config.logger.log("trace",k.status,i,f,v.headers,k.headers,o,void 0),m.config.logger.log("debug",k.status,i,f,v.headers,void 0,o,void 0),d(Q)}).catch(k=>{var Q=k;k.response&&k.response.status==401&&m.config.refresh_access_token&&m.authData.refreshToken&&m.authData.refreshToken!==""?m._handleExpiredAccessToken().then(()=>{g(m)}).catch(Z=>{h(Z)}):k.response&&(m.config.logger.log("error",k.response.status,i,f,v.headers,k.response.headers,o,k.response.data),Q=m.returnExtended===!0?{status:k.response.status,statusText:k.response.statusText,headers:k.response.headers,body:k.response.data,text:k.response.text,error:k}:k.response.data?k.response.data:k.response.text),h(Q)})}})}},OA=class{constructor(e){this.apiClient=e||q.instance}deleteConversationsSummariesSetting(e,i){if(i=i||{},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"],i.customHeaders)}deleteGuideJobs(e,i){if(i=i||{},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"],i.customHeaders)}getConversationsSummariesSetting(e,i){if(i=i||{},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"],i.customHeaders)}getConversationsSummariesSettings(e){return e=e||{},this.apiClient.callApi("/api/v2/conversations/summaries/settings","GET",{},{language:e.language,name:e.name,sortBy:e.sortBy,sortOrder:e.sortOrder,pageNumber:e.pageNumber,pageSize:e.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getGuide(e,i){if(i=i||{},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"],i.customHeaders)}getGuideJob(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "guideId" when calling getGuideJob';if(i==null||i==="")throw'Missing the required parameter "jobId" when calling getGuideJob';return this.apiClient.callApi("/api/v2/guides/{guideId}/jobs/{jobId}","GET",{guideId:e,jobId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getGuideVersion(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "guideId" when calling getGuideVersion';if(i==null||i==="")throw'Missing the required parameter "versionId" when calling getGuideVersion';return this.apiClient.callApi("/api/v2/guides/{guideId}/versions/{versionId}","GET",{guideId:e,versionId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getGuideVersionJob(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "guideId" when calling getGuideVersionJob';if(i==null||i==="")throw'Missing the required parameter "versionId" when calling getGuideVersionJob';if(n==null||n==="")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:i,jobId:n},{},{},{},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,i){if(i=i||{},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"],i.customHeaders)}patchGuide(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "guideId" when calling patchGuide';if(i==null)throw'Missing the required parameter "body" when calling patchGuide';return this.apiClient.callApi("/api/v2/guides/{guideId}","PATCH",{guideId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchGuideVersion(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "guideId" when calling patchGuideVersion';if(i==null||i==="")throw'Missing the required parameter "versionId" when calling patchGuideVersion';if(n==null)throw'Missing the required parameter "body" when calling patchGuideVersion';return this.apiClient.callApi("/api/v2/guides/{guideId}/versions/{versionId}","PATCH",{guideId:e,versionId:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postConversationsSummariesPreview(e,i){if(i=i||{},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"],i.customHeaders)}postConversationsSummariesSettings(e,i){if(i=i||{},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"],i.customHeaders)}postGuideSessionTurns(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "guideId" when calling postGuideSessionTurns';if(i==null||i==="")throw'Missing the required parameter "guideSessionId" when calling postGuideSessionTurns';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postGuideVersionJobs(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "guideId" when calling postGuideVersionJobs';if(i==null||i==="")throw'Missing the required parameter "versionId" when calling postGuideVersionJobs';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postGuideVersions(e,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "guideId" when calling postGuideVersions';return this.apiClient.callApi("/api/v2/guides/{guideId}/versions","POST",{guideId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postGuides(e,i){if(i=i||{},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"],i.customHeaders)}postGuidesJobs(e,i){if(i=i||{},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"],i.customHeaders)}postGuidesUploads(e,i){if(i=i||{},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"],i.customHeaders)}putConversationsSummariesSetting(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "summarySettingId" when calling putConversationsSummariesSetting';if(i==null)throw'Missing the required parameter "body" when calling putConversationsSummariesSetting';return this.apiClient.callApi("/api/v2/conversations/summaries/settings/{summarySettingId}","PUT",{summarySettingId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}},xA=class{constructor(e){this.apiClient=e||q.instance}deleteAssistant(e,i){if(i=i||{},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"],i.customHeaders)}deleteAssistantQueue(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "assistantId" when calling deleteAssistantQueue';if(i==null||i==="")throw'Missing the required parameter "queueId" when calling deleteAssistantQueue';return this.apiClient.callApi("/api/v2/assistants/{assistantId}/queues/{queueId}","DELETE",{assistantId:e,queueId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteAssistantQueues(e,i){if(i=i||{},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:i.queueIds},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}deleteAssistantsAgentchecklist(e,i){if(i=i||{},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"],i.customHeaders)}getAssistant(e,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "assistantId" when calling getAssistant';return this.apiClient.callApi("/api/v2/assistants/{assistantId}","GET",{assistantId:e},{expand:i.expand,languageVariation:i.languageVariation,fallbackToPrimaryAssistant:i.fallbackToPrimaryAssistant},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getAssistantQueue(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "assistantId" when calling getAssistantQueue';if(i==null||i==="")throw'Missing the required parameter "queueId" when calling getAssistantQueue';return this.apiClient.callApi("/api/v2/assistants/{assistantId}/queues/{queueId}","GET",{assistantId:e,queueId:i},{expand:n.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getAssistantQueueUsersJob(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "assistantId" when calling getAssistantQueueUsersJob';if(i==null||i==="")throw'Missing the required parameter "queueId" when calling getAssistantQueueUsersJob';if(n==null||n==="")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:i,jobId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getAssistantQueues(e,i){if(i=i||{},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:i.before,after:i.after,pageSize:i.pageSize,expand:i.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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"],i.customHeaders)}getAssistantsAgentchecklists(e){return e=e||{},this.apiClient.callApi("/api/v2/assistants/agentchecklists","GET",{},{before:e.before,after:e.after,pageSize:e.pageSize,namePrefix:e.namePrefix,language:e.language,sortOrder:e.sortOrder,sortBy:e.sortBy},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getAssistantsAgentchecklistsLanguages(e){return e=e||{},this.apiClient.callApi("/api/v2/assistants/agentchecklists/languages","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getAssistantsQueues(e){return e=e||{},this.apiClient.callApi("/api/v2/assistants/queues","GET",{},{before:e.before,after:e.after,pageSize:e.pageSize,queueIds:e.queueIds,expand:e.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}patchAssistant(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "assistantId" when calling patchAssistant';if(i==null)throw'Missing the required parameter "body" when calling patchAssistant';return this.apiClient.callApi("/api/v2/assistants/{assistantId}","PATCH",{assistantId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchAssistantQueues(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "assistantId" when calling patchAssistantQueues';if(i==null)throw'Missing the required parameter "body" when calling patchAssistantQueues';return this.apiClient.callApi("/api/v2/assistants/{assistantId}/queues","PATCH",{assistantId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postAssistantQueueUsersBulkAdd(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "assistantId" when calling postAssistantQueueUsersBulkAdd';if(i==null||i==="")throw'Missing the required parameter "queueId" when calling postAssistantQueueUsersBulkAdd';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postAssistantQueueUsersBulkRemove(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "assistantId" when calling postAssistantQueueUsersBulkRemove';if(i==null||i==="")throw'Missing the required parameter "queueId" when calling postAssistantQueueUsersBulkRemove';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postAssistantQueueUsersJobs(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "assistantId" when calling postAssistantQueueUsersJobs';if(i==null||i==="")throw'Missing the required parameter "queueId" when calling postAssistantQueueUsersJobs';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postAssistantQueueUsersQuery(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "assistantId" when calling postAssistantQueueUsersQuery';if(i==null||i==="")throw'Missing the required parameter "queueId" when calling postAssistantQueueUsersQuery';if(n==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:i},{expand:this.apiClient.buildCollectionParam(a.expand,"multi")},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postAssistants(e,i){if(i=i||{},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"],i.customHeaders)}postAssistantsAgentchecklists(e,i){if(i=i||{},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"],i.customHeaders)}putAssistantQueue(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "assistantId" when calling putAssistantQueue';if(i==null||i==="")throw'Missing the required parameter "queueId" when calling putAssistantQueue';if(n==null)throw'Missing the required parameter "body" when calling putAssistantQueue';return this.apiClient.callApi("/api/v2/assistants/{assistantId}/queues/{queueId}","PUT",{assistantId:e,queueId:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}putAssistantsAgentchecklist(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "agentChecklistId" when calling putAssistantsAgentchecklist';if(i==null)throw'Missing the required parameter "body" when calling putAssistantsAgentchecklist';return this.apiClient.callApi("/api/v2/assistants/agentchecklists/{agentChecklistId}","PUT",{agentChecklistId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}},TA=class{constructor(e){this.apiClient=e||q.instance}getAssistantCopilot(e,i){if(i=i||{},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"],i.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,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "assistantId" when calling putAssistantCopilot';if(i==null)throw'Missing the required parameter "body" when calling putAssistantCopilot';return this.apiClient.callApi("/api/v2/assistants/{assistantId}/copilot","PUT",{assistantId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}},MA=class{constructor(e){this.apiClient=e||q.instance}deleteUsersAgentuiAgentsAutoanswerAgentIdSettings(e,i){if(i=i||{},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"],i.customHeaders)}getUsersAgentuiAgentsAutoanswerAgentIdSettings(e,i){if(i=i||{},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"],i.customHeaders)}patchUsersAgentuiAgentsAutoanswerAgentIdSettings(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "agentId" when calling patchUsersAgentuiAgentsAutoanswerAgentIdSettings';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putUsersAgentuiAgentsAutoanswerAgentIdSettings(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "agentId" when calling putUsersAgentuiAgentsAutoanswerAgentIdSettings';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}},EA=class{constructor(e){this.apiClient=e||q.instance}deleteAlertingAlert(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getAlertingAlert(e,i){if(i=i||{},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"],i.customHeaders)}getAlertingRule(e,i){if(i=i||{},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"],i.customHeaders)}patchAlertingAlert(e,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "alertId" when calling patchAlertingAlert';return this.apiClient.callApi("/api/v2/alerting/alerts/{alertId}","PATCH",{alertId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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"],i.customHeaders)}patchAlertingRulesBulk(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}postAlertingRulesBulkRemove(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "alertId" when calling putAlertingAlert';return this.apiClient.callApi("/api/v2/alerting/alerts/{alertId}","PUT",{alertId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}putAlertingRule(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "ruleId" when calling putAlertingRule';if(i==null)throw'Missing the required parameter "body" when calling putAlertingRule';return this.apiClient.callApi("/api/v2/alerting/rules/{ruleId}","PUT",{ruleId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}},kA=class{constructor(e){this.apiClient=e||q.instance}deleteAnalyticsActionsAggregatesJob(e,i){if(i=i||{},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"],i.customHeaders)}deleteAnalyticsAgentcopilotsAggregatesJob(e,i){if(i=i||{},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"],i.customHeaders)}deleteAnalyticsAgentutilizationsAggregatesJob(e,i){if(i=i||{},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"],i.customHeaders)}deleteAnalyticsBotsAggregatesJob(e,i){if(i=i||{},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"],i.customHeaders)}deleteAnalyticsCasemanagementAggregatesJob(e,i){if(i=i||{},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"],i.customHeaders)}deleteAnalyticsConversationsAggregatesJob(e,i){if(i=i||{},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"],i.customHeaders)}deleteAnalyticsConversationsDetailsJob(e,i){if(i=i||{},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"],i.customHeaders)}deleteAnalyticsCopilotsAggregatesJob(e,i){if(i=i||{},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"],i.customHeaders)}deleteAnalyticsEvaluationsAggregatesJob(e,i){if(i=i||{},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"],i.customHeaders)}deleteAnalyticsFlowexecutionsAggregatesJob(e,i){if(i=i||{},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"],i.customHeaders)}deleteAnalyticsFlowsAggregatesJob(e,i){if(i=i||{},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"],i.customHeaders)}deleteAnalyticsJourneysAggregatesJob(e,i){if(i=i||{},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"],i.customHeaders)}deleteAnalyticsKnowledgeAggregatesJob(e,i){if(i=i||{},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"],i.customHeaders)}deleteAnalyticsResolutionsAggregatesJob(e,i){if(i=i||{},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"],i.customHeaders)}deleteAnalyticsSummariesAggregatesJob(e,i){if(i=i||{},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"],i.customHeaders)}deleteAnalyticsSurveysAggregatesJob(e,i){if(i=i||{},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"],i.customHeaders)}deleteAnalyticsTaskmanagementAggregatesJob(e,i){if(i=i||{},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"],i.customHeaders)}deleteAnalyticsTranscriptsAggregatesJob(e,i){if(i=i||{},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"],i.customHeaders)}deleteAnalyticsUsersAggregatesJob(e,i){if(i=i||{},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"],i.customHeaders)}deleteAnalyticsUsersDetailsJob(e,i){if(i=i||{},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"],i.customHeaders)}getAnalyticsActionsAggregatesJob(e,i){if(i=i||{},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"],i.customHeaders)}getAnalyticsActionsAggregatesJobResults(e,i){if(i=i||{},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:i.cursor},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getAnalyticsAgentStatus(e,i){if(i=i||{},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"],i.customHeaders)}getAnalyticsAgentcopilotsAggregatesJob(e,i){if(i=i||{},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"],i.customHeaders)}getAnalyticsAgentcopilotsAggregatesJobResults(e,i){if(i=i||{},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:i.cursor},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getAnalyticsAgentutilizationsAggregatesJob(e,i){if(i=i||{},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"],i.customHeaders)}getAnalyticsAgentutilizationsAggregatesJobResults(e,i){if(i=i||{},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:i.cursor},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getAnalyticsBotflowDivisionsReportingturns(e,i){if(i=i||{},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:i.after,pageSize:i.pageSize,interval:i.interval,actionId:i.actionId,sessionId:i.sessionId,language:i.language,askActionResults:i.askActionResults},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getAnalyticsBotflowReportingturns(e,i){if(i=i||{},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:i.after,pageSize:i.pageSize,interval:i.interval,actionId:i.actionId,sessionId:i.sessionId,language:i.language,askActionResults:i.askActionResults},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getAnalyticsBotflowSessions(e,i){if(i=i||{},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:i.after,pageSize:i.pageSize,interval:i.interval,botResultCategories:i.botResultCategories,endLanguage:i.endLanguage},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getAnalyticsBotsAggregatesJob(e,i){if(i=i||{},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"],i.customHeaders)}getAnalyticsBotsAggregatesJobResults(e,i){if(i=i||{},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:i.cursor},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getAnalyticsCasemanagementAggregatesJob(e,i){if(i=i||{},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"],i.customHeaders)}getAnalyticsCasemanagementAggregatesJobResults(e,i){if(i=i||{},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:i.cursor},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getAnalyticsConversationDetails(e,i){if(i=i||{},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"],i.customHeaders)}getAnalyticsConversationsAggregatesJob(e,i){if(i=i||{},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"],i.customHeaders)}getAnalyticsConversationsAggregatesJobResults(e,i){if(i=i||{},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:i.cursor},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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"],i.customHeaders)}getAnalyticsConversationsDetailsJobResults(e,i){if(i=i||{},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:i.cursor,pageSize:i.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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"],i.customHeaders)}getAnalyticsCopilotsAggregatesJobResults(e,i){if(i=i||{},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:i.cursor},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getAnalyticsDataextractionDownload(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getAnalyticsEvaluationsAggregatesJobResults(e,i){if(i=i||{},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:i.cursor},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getAnalyticsFlowexecutionsAggregatesJob(e,i){if(i=i||{},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"],i.customHeaders)}getAnalyticsFlowexecutionsAggregatesJobResults(e,i){if(i=i||{},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:i.cursor},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getAnalyticsFlowsAggregatesJob(e,i){if(i=i||{},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"],i.customHeaders)}getAnalyticsFlowsAggregatesJobResults(e,i){if(i=i||{},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:i.cursor},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getAnalyticsJourneysAggregatesJob(e,i){if(i=i||{},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"],i.customHeaders)}getAnalyticsJourneysAggregatesJobResults(e,i){if(i=i||{},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:i.cursor},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getAnalyticsKnowledgeAggregatesJob(e,i){if(i=i||{},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"],i.customHeaders)}getAnalyticsKnowledgeAggregatesJobResults(e,i){if(i=i||{},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:i.cursor},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getAnalyticsReportingDashboardsUser(e,i){if(i=i||{},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"],i.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,i,n){if(n=n||{},e==null)throw'Missing the required parameter "dashboardType" when calling getAnalyticsReportingSettingsDashboardsQuery';if(i==null)throw'Missing the required parameter "dashboardAccessFilter" when calling getAnalyticsReportingSettingsDashboardsQuery';return this.apiClient.callApi("/api/v2/analytics/reporting/settings/dashboards/query","GET",{},{name:n.name,dashboardType:e,dashboardState:n.dashboardState,dashboardAccessFilter:i,sortBy:n.sortBy,pageNumber:n.pageNumber,pageSize:n.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getAnalyticsReportingSettingsUserDashboards(e,i){if(i=i||{},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:i.sortBy,pageNumber:i.pageNumber,pageSize:i.pageSize,publicOnly:i.publicOnly,favoriteOnly:i.favoriteOnly,deletedOnly:i.deletedOnly,name:i.name},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getAnalyticsResolutionsAggregatesJob(e,i){if(i=i||{},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"],i.customHeaders)}getAnalyticsResolutionsAggregatesJobResults(e,i){if(i=i||{},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:i.cursor},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getAnalyticsSummariesAggregatesJob(e,i){if(i=i||{},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"],i.customHeaders)}getAnalyticsSummariesAggregatesJobResults(e,i){if(i=i||{},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:i.cursor},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getAnalyticsSurveysAggregatesJob(e,i){if(i=i||{},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"],i.customHeaders)}getAnalyticsSurveysAggregatesJobResults(e,i){if(i=i||{},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:i.cursor},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getAnalyticsTaskmanagementAggregatesJob(e,i){if(i=i||{},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"],i.customHeaders)}getAnalyticsTaskmanagementAggregatesJobResults(e,i){if(i=i||{},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:i.cursor},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getAnalyticsTranscriptsAggregatesJob(e,i){if(i=i||{},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"],i.customHeaders)}getAnalyticsTranscriptsAggregatesJobResults(e,i){if(i=i||{},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:i.cursor},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getAnalyticsUsersAggregatesJob(e,i){if(i=i||{},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"],i.customHeaders)}getAnalyticsUsersAggregatesJobResults(e,i){if(i=i||{},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:i.cursor},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getAnalyticsUsersDetailsJob(e,i){if(i=i||{},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"],i.customHeaders)}getAnalyticsUsersDetailsJobResults(e,i){if(i=i||{},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:i.cursor,pageSize:i.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsActionsAggregatesJobs(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsActionsAggregatesQuery(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsAgentcopilotsAggregatesJobs(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsAgentcopilotsAggregatesQuery(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsAgentsStatusCounts(e,i){if(i=i||{},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(i.groupBy,"multi")},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postAnalyticsAgentsStatusQuery(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsAgentutilizationsAggregatesJobs(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsAgentutilizationsAggregatesQuery(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsBotsAggregatesJobs(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsBotsAggregatesQuery(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsCasemanagementAggregatesJobs(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsCasemanagementAggregatesQuery(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsConversationDetailsProperties(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postAnalyticsConversationDetailsProperties';if(i==null)throw'Missing the required parameter "body" when calling postAnalyticsConversationDetailsProperties';return this.apiClient.callApi("/api/v2/analytics/conversations/{conversationId}/details/properties","POST",{conversationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postAnalyticsConversationsActivityQuery(e,i){if(i=i||{},e==null)throw'Missing the required parameter "body" when calling postAnalyticsConversationsActivityQuery';return this.apiClient.callApi("/api/v2/analytics/conversations/activity/query","POST",{},{pageSize:i.pageSize,pageNumber:i.pageNumber},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postAnalyticsConversationsAggregatesJobs(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsConversationsAggregatesQuery(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsConversationsDetailsJobs(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsConversationsDetailsQuery(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsCopilotsAggregatesJobs(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsCopilotsAggregatesQuery(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsDataextractionDownloadsBulk(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsEvaluationsAggregatesJobs(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsEvaluationsAggregatesQuery(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsFlowexecutionsAggregatesJobs(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsFlowexecutionsAggregatesQuery(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsFlowsActivityQuery(e,i){if(i=i||{},e==null)throw'Missing the required parameter "body" when calling postAnalyticsFlowsActivityQuery';return this.apiClient.callApi("/api/v2/analytics/flows/activity/query","POST",{},{pageSize:i.pageSize,pageNumber:i.pageNumber},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postAnalyticsFlowsAggregatesJobs(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsFlowsAggregatesQuery(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsFlowsObservationsQuery(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsJourneysAggregatesJobs(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsJourneysAggregatesQuery(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsKnowledgeAggregatesJobs(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsKnowledgeAggregatesQuery(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsQueuesObservationsQuery(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsRatelimitsAggregatesQuery(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsReportingDashboardsUsersBulkRemove(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsReportingExports(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsReportingSettingsDashboardsBulkRemove(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsReportingSettingsDashboardsQuery(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsResolutionsAggregatesJobs(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsResolutionsAggregatesQuery(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsRoutingActivityQuery(e,i){if(i=i||{},e==null)throw'Missing the required parameter "body" when calling postAnalyticsRoutingActivityQuery';return this.apiClient.callApi("/api/v2/analytics/routing/activity/query","POST",{},{pageSize:i.pageSize,pageNumber:i.pageNumber},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postAnalyticsSummariesAggregatesJobs(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsSummariesAggregatesQuery(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsSurveysAggregatesJobs(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsSurveysAggregatesQuery(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsTaskmanagementAggregatesJobs(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsTaskmanagementAggregatesQuery(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsTaskmanagementMetricsQuery(e,i){if(i=i||{},e==null)throw'Missing the required parameter "body" when calling postAnalyticsTaskmanagementMetricsQuery';return this.apiClient.callApi("/api/v2/analytics/taskmanagement/metrics/query","POST",{},{after:i.after,pageSize:i.pageSize},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postAnalyticsTeamsActivityQuery(e,i){if(i=i||{},e==null)throw'Missing the required parameter "body" when calling postAnalyticsTeamsActivityQuery';return this.apiClient.callApi("/api/v2/analytics/teams/activity/query","POST",{},{pageSize:i.pageSize,pageNumber:i.pageNumber},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postAnalyticsTranscriptsAggregatesJobs(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsTranscriptsAggregatesQuery(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsUsersActivityQuery(e,i){if(i=i||{},e==null)throw'Missing the required parameter "body" when calling postAnalyticsUsersActivityQuery';return this.apiClient.callApi("/api/v2/analytics/users/activity/query","POST",{},{pageSize:i.pageSize,pageNumber:i.pageNumber},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postAnalyticsUsersAggregatesJobs(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsUsersAggregatesQuery(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsUsersDetailsJobs(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsUsersDetailsQuery(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsUsersObservationsQuery(e,i){if(i=i||{},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"],i.customHeaders)}putAnalyticsDataretentionSettings(e,i){if(i=i||{},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"],i.customHeaders)}},qA=class{constructor(e){this.apiClient=e||q.instance}deleteArchitectEmergencygroup(e,i){if(i=i||{},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"],i.customHeaders)}deleteArchitectGrammar(e,i){if(i=i||{},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"],i.customHeaders)}deleteArchitectGrammarLanguage(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "grammarId" when calling deleteArchitectGrammarLanguage';if(i==null||i==="")throw'Missing the required parameter "languageCode" when calling deleteArchitectGrammarLanguage';return this.apiClient.callApi("/api/v2/architect/grammars/{grammarId}/languages/{languageCode}","DELETE",{grammarId:e,languageCode:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteArchitectGrammarLanguageFilesDtmf(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "grammarId" when calling deleteArchitectGrammarLanguageFilesDtmf';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteArchitectGrammarLanguageFilesVoice(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "grammarId" when calling deleteArchitectGrammarLanguageFilesVoice';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteArchitectIvr(e,i){if(i=i||{},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"],i.customHeaders)}deleteArchitectPrompt(e,i){if(i=i||{},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:i.allResources},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}deleteArchitectPromptResource(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "promptId" when calling deleteArchitectPromptResource';if(i==null||i==="")throw'Missing the required parameter "languageCode" when calling deleteArchitectPromptResource';return this.apiClient.callApi("/api/v2/architect/prompts/{promptId}/resources/{languageCode}","DELETE",{promptId:e,languageCode:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteArchitectPromptResourceAudio(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "promptId" when calling deleteArchitectPromptResourceAudio';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteArchitectPrompts(e,i){if(i=i||{},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"],i.customHeaders)}deleteArchitectSchedule(e,i){if(i=i||{},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"],i.customHeaders)}deleteArchitectSchedulegroup(e,i){if(i=i||{},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"],i.customHeaders)}deleteArchitectSystempromptResource(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "promptId" when calling deleteArchitectSystempromptResource';if(i==null||i==="")throw'Missing the required parameter "languageCode" when calling deleteArchitectSystempromptResource';return this.apiClient.callApi("/api/v2/architect/systemprompts/{promptId}/resources/{languageCode}","DELETE",{promptId:e,languageCode:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteFlow(e,i){if(i=i||{},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"],i.customHeaders)}deleteFlowInstancesSettingsLoglevels(e,i){if(i=i||{},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"],i.customHeaders)}deleteFlows(e,i){if(i=i||{},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"],i.customHeaders)}deleteFlowsDatatable(e,i){if(i=i||{},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:i.force},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}deleteFlowsDatatableRow(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "datatableId" when calling deleteFlowsDatatableRow';if(i==null||i==="")throw'Missing the required parameter "rowId" when calling deleteFlowsDatatableRow';return this.apiClient.callApi("/api/v2/flows/datatables/{datatableId}/rows/{rowId}","DELETE",{datatableId:e,rowId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.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,i){if(i=i||{},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"],i.customHeaders)}getArchitectDependencytracking(e,i){if(i=i||{},e==null)throw'Missing the required parameter "name" when calling getArchitectDependencytracking';return this.apiClient.callApi("/api/v2/architect/dependencytracking","GET",{},{pageNumber:i.pageNumber,pageSize:i.pageSize,name:e,objectType:this.apiClient.buildCollectionParam(i.objectType,"multi"),consumedResources:i.consumedResources,consumingResources:i.consumingResources,consumedResourceType:this.apiClient.buildCollectionParam(i.consumedResourceType,"multi"),consumingResourceType:this.apiClient.buildCollectionParam(i.consumingResourceType,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i,n,a){if(a=a||{},e==null)throw'Missing the required parameter "id" when calling getArchitectDependencytrackingConsumedresources';if(i==null)throw'Missing the required parameter "version" when calling getArchitectDependencytrackingConsumedresources';if(n==null)throw'Missing the required parameter "objectType" when calling getArchitectDependencytrackingConsumedresources';return this.apiClient.callApi("/api/v2/architect/dependencytracking/consumedresources","GET",{},{id:e,version:i,objectType:n,resourceType:this.apiClient.buildCollectionParam(a.resourceType,"multi"),pageNumber:a.pageNumber,pageSize:a.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getArchitectDependencytrackingConsumingresources(e,i,n){if(n=n||{},e==null)throw'Missing the required parameter "id" when calling getArchitectDependencytrackingConsumingresources';if(i==null)throw'Missing the required parameter "objectType" when calling getArchitectDependencytrackingConsumingresources';return this.apiClient.callApi("/api/v2/architect/dependencytracking/consumingresources","GET",{},{id:e,objectType:i,resourceType:this.apiClient.buildCollectionParam(n.resourceType,"multi"),version:n.version,pageNumber:n.pageNumber,pageSize:n.pageSize,flowFilter:n.flowFilter},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.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,i){if(i=i||{},e==null)throw'Missing the required parameter "id" when calling getArchitectDependencytrackingObject';return this.apiClient.callApi("/api/v2/architect/dependencytracking/object","GET",{},{id:e,version:i.version,objectType:i.objectType,consumedResources:i.consumedResources,consumingResources:i.consumingResources,consumedResourceType:this.apiClient.buildCollectionParam(i.consumedResourceType,"multi"),consumingResourceType:this.apiClient.buildCollectionParam(i.consumingResourceType,"multi"),consumedResourceRequest:i.consumedResourceRequest},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getArchitectDependencytrackingType(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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:i.includeFileUrls},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getArchitectGrammarLanguage(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "grammarId" when calling getArchitectGrammarLanguage';if(i==null||i==="")throw'Missing the required parameter "languageCode" when calling getArchitectGrammarLanguage';return this.apiClient.callApi("/api/v2/architect/grammars/{grammarId}/languages/{languageCode}","GET",{grammarId:e,languageCode:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.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,i){if(i=i||{},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"],i.customHeaders)}getArchitectIvrIdentityresolution(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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:i.includeMediaUris,includeResources:i.includeResources,language:this.apiClient.buildCollectionParam(i.language,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getArchitectPromptHistoryHistoryId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "promptId" when calling getArchitectPromptHistoryHistoryId';if(i==null||i==="")throw'Missing the required parameter "historyId" when calling getArchitectPromptHistoryHistoryId';return this.apiClient.callApi("/api/v2/architect/prompts/{promptId}/history/{historyId}","GET",{promptId:e,historyId:i},{pageNumber:n.pageNumber,pageSize:n.pageSize,sortOrder:n.sortOrder,sortBy:n.sortBy,action:this.apiClient.buildCollectionParam(n.action,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getArchitectPromptResource(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "promptId" when calling getArchitectPromptResource';if(i==null||i==="")throw'Missing the required parameter "languageCode" when calling getArchitectPromptResource';return this.apiClient.callApi("/api/v2/architect/prompts/{promptId}/resources/{languageCode}","GET",{promptId:e,languageCode:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getArchitectPromptResources(e,i){if(i=i||{},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:i.pageNumber,pageSize:i.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getArchitectPrompts(e){return e=e||{},this.apiClient.callApi("/api/v2/architect/prompts","GET",{},{pageNumber:e.pageNumber,pageSize:e.pageSize,name:this.apiClient.buildCollectionParam(e.name,"multi"),description:e.description,nameOrDescription:e.nameOrDescription,sortBy:e.sortBy,sortOrder:e.sortOrder,includeMediaUris:e.includeMediaUris,includeResources:e.includeResources,language:this.apiClient.buildCollectionParam(e.language,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getArchitectSchedule(e,i){if(i=i||{},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"],i.customHeaders)}getArchitectSchedulegroup(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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:i.includeMediaUris,includeResources:i.includeResources,language:this.apiClient.buildCollectionParam(i.language,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getArchitectSystempromptHistoryHistoryId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "promptId" when calling getArchitectSystempromptHistoryHistoryId';if(i==null||i==="")throw'Missing the required parameter "historyId" when calling getArchitectSystempromptHistoryHistoryId';return this.apiClient.callApi("/api/v2/architect/systemprompts/{promptId}/history/{historyId}","GET",{promptId:e,historyId:i},{pageNumber:n.pageNumber,pageSize:n.pageSize,sortOrder:n.sortOrder,sortBy:n.sortBy,action:this.apiClient.buildCollectionParam(n.action,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getArchitectSystempromptResource(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "promptId" when calling getArchitectSystempromptResource';if(i==null||i==="")throw'Missing the required parameter "languageCode" when calling getArchitectSystempromptResource';return this.apiClient.callApi("/api/v2/architect/systemprompts/{promptId}/resources/{languageCode}","GET",{promptId:e,languageCode:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getArchitectSystempromptResources(e,i){if(i=i||{},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:i.pageNumber,pageSize:i.pageSize,sortBy:i.sortBy,sortOrder:i.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "flowId" when calling getFlow';return this.apiClient.callApi("/api/v2/flows/{flowId}","GET",{flowId:e},{deleted:i.deleted},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getFlowHistoryHistoryId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "flowId" when calling getFlowHistoryHistoryId';if(i==null||i==="")throw'Missing the required parameter "historyId" when calling getFlowHistoryHistoryId';return this.apiClient.callApi("/api/v2/flows/{flowId}/history/{historyId}","GET",{flowId:e,historyId:i},{pageNumber:n.pageNumber,pageSize:n.pageSize,sortOrder:n.sortOrder,sortBy:n.sortBy,action:this.apiClient.buildCollectionParam(n.action,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getFlowInstancesSettingsLoglevels(e,i){if(i=i||{},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(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getFlowLatestconfiguration(e,i){if(i=i||{},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:i.deleted},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getFlowVersion(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "flowId" when calling getFlowVersion';if(i==null||i==="")throw'Missing the required parameter "versionId" when calling getFlowVersion';return this.apiClient.callApi("/api/v2/flows/{flowId}/versions/{versionId}","GET",{flowId:e,versionId:i},{deleted:n.deleted},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getFlowVersionConfiguration(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "flowId" when calling getFlowVersionConfiguration';if(i==null||i==="")throw'Missing the required parameter "versionId" when calling getFlowVersionConfiguration';return this.apiClient.callApi("/api/v2/flows/{flowId}/versions/{versionId}/configuration","GET",{flowId:e,versionId:i},{deleted:n.deleted},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getFlowVersionHealth(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "flowId" when calling getFlowVersionHealth';if(i==null||i==="")throw'Missing the required parameter "versionId" when calling getFlowVersionHealth';return this.apiClient.callApi("/api/v2/flows/{flowId}/versions/{versionId}/health","GET",{flowId:e,versionId:i},{language:n.language},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getFlowVersionIntentHealth(e,i,n,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "flowId" when calling getFlowVersionIntentHealth';if(i==null||i==="")throw'Missing the required parameter "versionId" when calling getFlowVersionIntentHealth';if(n==null||n==="")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:i,intentId:n},{language:a},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}getFlowVersionIntentUtteranceHealth(e,i,n,a,r,s){if(s=s||{},e==null||e==="")throw'Missing the required parameter "flowId" when calling getFlowVersionIntentUtteranceHealth';if(i==null||i==="")throw'Missing the required parameter "versionId" when calling getFlowVersionIntentUtteranceHealth';if(n==null||n==="")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:i,intentId:n,utteranceId:a},{language:r},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],s.customHeaders)}getFlowVersions(e,i){if(i=i||{},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:i.pageNumber,pageSize:i.pageSize,deleted:i.deleted},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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:i.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getFlowsDatatableExportJob(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "datatableId" when calling getFlowsDatatableExportJob';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getFlowsDatatableImportJob(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "datatableId" when calling getFlowsDatatableImportJob';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getFlowsDatatableImportJobs(e,i){if(i=i||{},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:i.pageNumber,pageSize:i.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getFlowsDatatableRow(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "datatableId" when calling getFlowsDatatableRow';if(i==null||i==="")throw'Missing the required parameter "rowId" when calling getFlowsDatatableRow';return this.apiClient.callApi("/api/v2/flows/datatables/{datatableId}/rows/{rowId}","GET",{datatableId:e,rowId:i},{showbrief:n.showbrief},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getFlowsDatatableRows(e,i){if(i=i||{},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:i.pageNumber,pageSize:i.pageSize,showbrief:i.showbrief,sortOrder:i.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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:i.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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"],i.customHeaders)}getFlowsExportJob(e,i){if(i=i||{},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(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getFlowsInstance(e,i){if(i=i||{},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:i.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getFlowsInstancesJob(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getFlowsMilestone(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getFlowsOutcomes(e){return e=e||{},this.apiClient.callApi("/api/v2/flows/outcomes","GET",{},{pageNumber:e.pageNumber,pageSize:e.pageSize,sortBy:e.sortBy,sortOrder:e.sortOrder,id:this.apiClient.buildCollectionParam(e.id,"multi"),name:e.name,description:e.description,nameOrDescription:e.nameOrDescription,divisionId:this.apiClient.buildCollectionParam(e.divisionId,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getFlowsOutcomesDivisionviews(e){return e=e||{},this.apiClient.callApi("/api/v2/flows/outcomes/divisionviews","GET",{},{pageNumber:e.pageNumber,pageSize:e.pageSize,sortBy:e.sortBy,sortOrder:e.sortOrder,id:this.apiClient.buildCollectionParam(e.id,"multi"),name:e.name,divisionId:this.apiClient.buildCollectionParam(e.divisionId,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}patchArchitectGrammar(e,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "grammarId" when calling patchArchitectGrammar';return this.apiClient.callApi("/api/v2/architect/grammars/{grammarId}","PATCH",{grammarId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}patchArchitectGrammarLanguage(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "grammarId" when calling patchArchitectGrammarLanguage';if(i==null||i==="")throw'Missing the required parameter "languageCode" when calling patchArchitectGrammarLanguage';return this.apiClient.callApi("/api/v2/architect/grammars/{grammarId}/languages/{languageCode}","PATCH",{grammarId:e,languageCode:i},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchFlowsInstancesSettingsExecutiondata(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}postArchitectGrammarLanguageFilesDtmf(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "grammarId" when calling postArchitectGrammarLanguageFilesDtmf';if(i==null||i==="")throw'Missing the required parameter "languageCode" when calling postArchitectGrammarLanguageFilesDtmf';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postArchitectGrammarLanguageFilesVoice(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "grammarId" when calling postArchitectGrammarLanguageFilesVoice';if(i==null||i==="")throw'Missing the required parameter "languageCode" when calling postArchitectGrammarLanguageFilesVoice';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postArchitectGrammarLanguages(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "grammarId" when calling postArchitectGrammarLanguages';if(i==null)throw'Missing the required parameter "body" when calling postArchitectGrammarLanguages';return this.apiClient.callApi("/api/v2/architect/grammars/{grammarId}/languages","POST",{grammarId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postArchitectGrammars(e,i){if(i=i||{},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"],i.customHeaders)}postArchitectIvrs(e,i){if(i=i||{},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"],i.customHeaders)}postArchitectPromptHistory(e,i){if(i=i||{},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"],i.customHeaders)}postArchitectPromptResourceUploads(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "promptId" when calling postArchitectPromptResourceUploads';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postArchitectPromptResources(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "promptId" when calling postArchitectPromptResources';if(i==null)throw'Missing the required parameter "body" when calling postArchitectPromptResources';return this.apiClient.callApi("/api/v2/architect/prompts/{promptId}/resources","POST",{promptId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postArchitectPrompts(e,i){if(i=i||{},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"],i.customHeaders)}postArchitectSchedulegroups(e,i){if(i=i||{},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"],i.customHeaders)}postArchitectSchedules(e,i){if(i=i||{},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"],i.customHeaders)}postArchitectSystempromptHistory(e,i){if(i=i||{},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"],i.customHeaders)}postArchitectSystempromptResourceUploads(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "promptId" when calling postArchitectSystempromptResourceUploads';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postArchitectSystempromptResources(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "promptId" when calling postArchitectSystempromptResources';if(i==null)throw'Missing the required parameter "body" when calling postArchitectSystempromptResources';return this.apiClient.callApi("/api/v2/architect/systemprompts/{promptId}/resources","POST",{promptId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postFlowHistory(e,i){if(i=i||{},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"],i.customHeaders)}postFlowInstancesSettingsLoglevels(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "flowId" when calling postFlowInstancesSettingsLoglevels';if(i==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(n.expand,"multi")},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postFlowVersions(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "flowId" when calling postFlowVersions';if(i==null)throw'Missing the required parameter "body" when calling postFlowVersions';return this.apiClient.callApi("/api/v2/flows/{flowId}/versions","POST",{flowId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postFlows(e,i){if(i=i||{},e==null)throw'Missing the required parameter "body" when calling postFlows';return this.apiClient.callApi("/api/v2/flows","POST",{},{language:i.language},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postFlowsActionsCheckin(e,i){if(i=i||{},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"],i.customHeaders)}postFlowsActionsCheckout(e,i){if(i=i||{},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"],i.customHeaders)}postFlowsActionsDeactivate(e,i){if(i=i||{},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"],i.customHeaders)}postFlowsActionsPublish(e,i){if(i=i||{},e==null)throw'Missing the required parameter "flow" when calling postFlowsActionsPublish';return this.apiClient.callApi("/api/v2/flows/actions/publish","POST",{},{flow:e,version:i.version},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postFlowsActionsRevert(e,i){if(i=i||{},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"],i.customHeaders)}postFlowsActionsUnlock(e,i){if(i=i||{},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"],i.customHeaders)}postFlowsDatatableExportJobs(e,i){if(i=i||{},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"],i.customHeaders)}postFlowsDatatableImportCsvJobs(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "datatableId" when calling postFlowsDatatableImportCsvJobs';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postFlowsDatatableImportJobs(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "datatableId" when calling postFlowsDatatableImportJobs';if(i==null)throw'Missing the required parameter "body" when calling postFlowsDatatableImportJobs';return this.apiClient.callApi("/api/v2/flows/datatables/{datatableId}/import/jobs","POST",{datatableId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postFlowsDatatableRows(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "datatableId" when calling postFlowsDatatableRows';if(i==null)throw'Missing the required parameter "dataTableRow" when calling postFlowsDatatableRows';return this.apiClient.callApi("/api/v2/flows/datatables/{datatableId}/rows","POST",{datatableId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postFlowsDatatables(e,i){if(i=i||{},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"],i.customHeaders)}postFlowsExecutions(e,i){if(i=i||{},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"],i.customHeaders)}postFlowsExportJobs(e,i){if(i=i||{},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"],i.customHeaders)}postFlowsInstancesJobs(e,i){if(i=i||{},e==null)throw'Missing the required parameter "body" when calling postFlowsInstancesJobs';return this.apiClient.callApi("/api/v2/flows/instances/jobs","POST",{},{expand:i.expand},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postFlowsInstancesQuery(e,i){if(i=i||{},e==null)throw'Missing the required parameter "body" when calling postFlowsInstancesQuery';return this.apiClient.callApi("/api/v2/flows/instances/query","POST",{},{indexOnly:i.indexOnly,pageSize:i.pageSize},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postFlowsJobs(e){return e=e||{},this.apiClient.callApi("/api/v2/flows/jobs","POST",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}postFlowsMilestones(e){return e=e||{},this.apiClient.callApi("/api/v2/flows/milestones","POST",{},{},{},{},e.body,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}postFlowsOutcomes(e){return e=e||{},this.apiClient.callApi("/api/v2/flows/outcomes","POST",{},{},{},{},e.body,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}putArchitectEmergencygroup(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "emergencyGroupId" when calling putArchitectEmergencygroup';if(i==null)throw'Missing the required parameter "body" when calling putArchitectEmergencygroup';return this.apiClient.callApi("/api/v2/architect/emergencygroups/{emergencyGroupId}","PUT",{emergencyGroupId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putArchitectIvr(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "ivrId" when calling putArchitectIvr';if(i==null)throw'Missing the required parameter "body" when calling putArchitectIvr';return this.apiClient.callApi("/api/v2/architect/ivrs/{ivrId}","PUT",{ivrId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putArchitectIvrIdentityresolution(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "ivrId" when calling putArchitectIvrIdentityresolution';if(i==null)throw'Missing the required parameter "body" when calling putArchitectIvrIdentityresolution';return this.apiClient.callApi("/api/v2/architect/ivrs/{ivrId}/identityresolution","PUT",{ivrId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putArchitectPrompt(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "promptId" when calling putArchitectPrompt';if(i==null)throw'Missing the required parameter "body" when calling putArchitectPrompt';return this.apiClient.callApi("/api/v2/architect/prompts/{promptId}","PUT",{promptId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putArchitectPromptResource(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "promptId" when calling putArchitectPromptResource';if(i==null||i==="")throw'Missing the required parameter "languageCode" when calling putArchitectPromptResource';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}putArchitectSchedule(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "scheduleId" when calling putArchitectSchedule';if(i==null)throw'Missing the required parameter "body" when calling putArchitectSchedule';return this.apiClient.callApi("/api/v2/architect/schedules/{scheduleId}","PUT",{scheduleId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putArchitectSchedulegroup(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "scheduleGroupId" when calling putArchitectSchedulegroup';if(i==null)throw'Missing the required parameter "body" when calling putArchitectSchedulegroup';return this.apiClient.callApi("/api/v2/architect/schedulegroups/{scheduleGroupId}","PUT",{scheduleGroupId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putArchitectSystempromptResource(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "promptId" when calling putArchitectSystempromptResource';if(i==null||i==="")throw'Missing the required parameter "languageCode" when calling putArchitectSystempromptResource';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}putFlow(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "flowId" when calling putFlow';if(i==null)throw'Missing the required parameter "body" when calling putFlow';return this.apiClient.callApi("/api/v2/flows/{flowId}","PUT",{flowId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putFlowInstancesSettingsLoglevels(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "flowId" when calling putFlowInstancesSettingsLoglevels';if(i==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(n.expand,"multi")},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putFlowsDatatable(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "datatableId" when calling putFlowsDatatable';if(i==null)throw'Missing the required parameter "body" when calling putFlowsDatatable';return this.apiClient.callApi("/api/v2/flows/datatables/{datatableId}","PUT",{datatableId:e},{expand:n.expand},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putFlowsDatatableRow(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "datatableId" when calling putFlowsDatatableRow';if(i==null||i==="")throw'Missing the required parameter "rowId" when calling putFlowsDatatableRow';return this.apiClient.callApi("/api/v2/flows/datatables/{datatableId}/rows/{rowId}","PUT",{datatableId:e,rowId:i},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putFlowsInstancesSettingsLoglevelsDefault(e,i){if(i=i||{},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(i.expand,"multi")},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}putFlowsMilestone(e,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "milestoneId" when calling putFlowsMilestone';return this.apiClient.callApi("/api/v2/flows/milestones/{milestoneId}","PUT",{milestoneId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}putFlowsOutcome(e,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "flowOutcomeId" when calling putFlowsOutcome';return this.apiClient.callApi("/api/v2/flows/outcomes/{flowOutcomeId}","PUT",{flowOutcomeId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}},_A=class{constructor(e){this.apiClient=e||q.instance}deleteAssistantVariation(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "assistantId" when calling deleteAssistantVariation';if(i==null||i==="")throw'Missing the required parameter "variationId" when calling deleteAssistantVariation';return this.apiClient.callApi("/api/v2/assistants/{assistantId}/variations/{variationId}","DELETE",{assistantId:e,variationId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getAssistantVariation(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "assistantId" when calling getAssistantVariation';if(i==null||i==="")throw'Missing the required parameter "variationId" when calling getAssistantVariation';return this.apiClient.callApi("/api/v2/assistants/{assistantId}/variations/{variationId}","GET",{assistantId:e,variationId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getAssistantVariations(e,i){if(i=i||{},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"],i.customHeaders)}postAssistantVariations(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "assistantId" when calling postAssistantVariations';if(i==null)throw'Missing the required parameter "body" when calling postAssistantVariations';return this.apiClient.callApi("/api/v2/assistants/{assistantId}/variations","POST",{assistantId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putAssistantVariation(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "assistantId" when calling putAssistantVariation';if(i==null||i==="")throw'Missing the required parameter "variationId" when calling putAssistantVariation';if(n==null)throw'Missing the required parameter "body" when calling putAssistantVariation';return this.apiClient.callApi("/api/v2/assistants/{assistantId}/variations/{variationId}","PUT",{assistantId:e,variationId:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}},HA=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,i){if(i=i||{},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"],i.customHeaders)}getAuditsQueryTransactionIdResults(e,i){if(i=i||{},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:i.cursor,pageSize:i.pageSize,expand:this.apiClient.buildCollectionParam(i.expand,"multi"),allowRedirect:i.allowRedirect},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postAuditsQuery(e,i){if(i=i||{},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"],i.customHeaders)}postAuditsQueryRealtime(e,i){if(i=i||{},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(i.expand,"multi")},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postAuditsQueryRealtimeRelated(e,i){if(i=i||{},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(i.expand,"multi")},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}},RA=class{constructor(e){this.apiClient=e||q.instance}deleteAuthorizationDivision(e,i){if(i=i||{},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:i.force},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}deleteAuthorizationPoliciesTargetSubjectSubjectId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "targetName" when calling deleteAuthorizationPoliciesTargetSubjectSubjectId';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteAuthorizationRole(e,i){if(i=i||{},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"],i.customHeaders)}deleteAuthorizationSubjectDivisionRole(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "subjectId" when calling deleteAuthorizationSubjectDivisionRole';if(i==null||i==="")throw'Missing the required parameter "divisionId" when calling deleteAuthorizationSubjectDivisionRole';if(n==null||n==="")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:i,roleId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getAuthorizationDivision(e,i){if(i=i||{},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:i.objectCount},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getAuthorizationDivisionGrants(e,i){if(i=i||{},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:i.pageNumber,pageSize:i.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},e==null)throw'Missing the required parameter "permission" when calling getAuthorizationDivisionspermittedMe';return this.apiClient.callApi("/api/v2/authorization/divisionspermitted/me","GET",{},{name:i.name,permission:e},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getAuthorizationDivisionspermittedPagedMe(e,i){if(i=i||{},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:i.pageNumber,pageSize:i.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getAuthorizationDivisionspermittedPagedSubjectId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "subjectId" when calling getAuthorizationDivisionspermittedPagedSubjectId';if(i==null)throw'Missing the required parameter "permission" when calling getAuthorizationDivisionspermittedPagedSubjectId';return this.apiClient.callApi("/api/v2/authorization/divisionspermitted/paged/{subjectId}","GET",{subjectId:e},{permission:i,pageNumber:n.pageNumber,pageSize:n.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.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,i){if(i=i||{},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:i.after,pageSize:i.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getAuthorizationPoliciesTarget(e,i){if(i=i||{},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:i.after,pageSize:i.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getAuthorizationPoliciesTargetSubjectSubjectId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "targetName" when calling getAuthorizationPoliciesTargetSubjectSubjectId';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.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,i){if(i=i||{},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"],i.customHeaders)}getAuthorizationPolicyAttributes(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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:i.userCount,expand:this.apiClient.buildCollectionParam(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getAuthorizationRoleComparedefaultRightRoleId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "leftRoleId" when calling getAuthorizationRoleComparedefaultRightRoleId';if(i==null||i==="")throw'Missing the required parameter "rightRoleId" when calling getAuthorizationRoleComparedefaultRightRoleId';return this.apiClient.callApi("/api/v2/authorization/roles/{leftRoleId}/comparedefault/{rightRoleId}","GET",{leftRoleId:e,rightRoleId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getAuthorizationRoleSubjectgrants(e,i){if(i=i||{},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:i.pageSize,pageNumber:i.pageNumber,sortBy:i.sortBy,expand:this.apiClient.buildCollectionParam(i.expand,"multi"),nextPage:i.nextPage,previousPage:i.previousPage},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getAuthorizationRoleUsers(e,i){if(i=i||{},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:i.pageSize,pageNumber:i.pageNumber},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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:i.includeDuplicates},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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"],i.customHeaders)}patchAuthorizationRole(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "roleId" when calling patchAuthorizationRole';if(i==null)throw'Missing the required parameter "body" when calling patchAuthorizationRole';return this.apiClient.callApi("/api/v2/authorization/roles/{roleId}","PATCH",{roleId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchAuthorizationSettings(e,i){if(i=i||{},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"],i.customHeaders)}postAuthorizationDivisionObject(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "divisionId" when calling postAuthorizationDivisionObject';if(i==null||i==="")throw'Missing the required parameter "objectType" when calling postAuthorizationDivisionObject';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postAuthorizationDivisionRestore(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "divisionId" when calling postAuthorizationDivisionRestore';if(i==null)throw'Missing the required parameter "body" when calling postAuthorizationDivisionRestore';return this.apiClient.callApi("/api/v2/authorization/divisions/{divisionId}/restore","POST",{divisionId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postAuthorizationDivisions(e,i){if(i=i||{},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"],i.customHeaders)}postAuthorizationPoliciesTarget(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "targetName" when calling postAuthorizationPoliciesTarget';if(i==null)throw'Missing the required parameter "body" when calling postAuthorizationPoliciesTarget';return this.apiClient.callApi("/api/v2/authorization/policies/targets/{targetName}","POST",{targetName:e},{skipLockoutCheck:n.skipLockoutCheck},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postAuthorizationPoliciesTargetValidate(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "targetName" when calling postAuthorizationPoliciesTargetValidate';if(i==null)throw'Missing the required parameter "body" when calling postAuthorizationPoliciesTargetValidate';return this.apiClient.callApi("/api/v2/authorization/policies/targets/{targetName}/validate","POST",{targetName:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postAuthorizationPolicySimulate(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "policyId" when calling postAuthorizationPolicySimulate';if(i==null)throw'Missing the required parameter "body" when calling postAuthorizationPolicySimulate';return this.apiClient.callApi("/api/v2/authorization/policies/{policyId}/simulate","POST",{policyId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postAuthorizationRole(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "roleId" when calling postAuthorizationRole';if(i==null)throw'Missing the required parameter "body" when calling postAuthorizationRole';return this.apiClient.callApi("/api/v2/authorization/roles/{roleId}","POST",{roleId:e},{subjectType:n.subjectType},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postAuthorizationRoleComparedefaultRightRoleId(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "leftRoleId" when calling postAuthorizationRoleComparedefaultRightRoleId';if(i==null||i==="")throw'Missing the required parameter "rightRoleId" when calling postAuthorizationRoleComparedefaultRightRoleId';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postAuthorizationRoles(e,i){if(i=i||{},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"],i.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,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "subjectId" when calling postAuthorizationSubjectBulkadd';if(i==null)throw'Missing the required parameter "body" when calling postAuthorizationSubjectBulkadd';return this.apiClient.callApi("/api/v2/authorization/subjects/{subjectId}/bulkadd","POST",{subjectId:e},{subjectType:n.subjectType},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postAuthorizationSubjectBulkremove(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "subjectId" when calling postAuthorizationSubjectBulkremove';if(i==null)throw'Missing the required parameter "body" when calling postAuthorizationSubjectBulkremove';return this.apiClient.callApi("/api/v2/authorization/subjects/{subjectId}/bulkremove","POST",{subjectId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postAuthorizationSubjectBulkreplace(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "subjectId" when calling postAuthorizationSubjectBulkreplace';if(i==null)throw'Missing the required parameter "body" when calling postAuthorizationSubjectBulkreplace';return this.apiClient.callApi("/api/v2/authorization/subjects/{subjectId}/bulkreplace","POST",{subjectId:e},{subjectType:n.subjectType},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postAuthorizationSubjectDivisionRole(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "subjectId" when calling postAuthorizationSubjectDivisionRole';if(i==null||i==="")throw'Missing the required parameter "divisionId" when calling postAuthorizationSubjectDivisionRole';if(n==null||n==="")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:i,roleId:n},{subjectType:a.subjectType},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}putAuthorizationDivision(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "divisionId" when calling putAuthorizationDivision';if(i==null)throw'Missing the required parameter "body" when calling putAuthorizationDivision';return this.apiClient.callApi("/api/v2/authorization/divisions/{divisionId}","PUT",{divisionId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putAuthorizationPoliciesTarget(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "targetName" when calling putAuthorizationPoliciesTarget';if(i==null)throw'Missing the required parameter "body" when calling putAuthorizationPoliciesTarget';return this.apiClient.callApi("/api/v2/authorization/policies/targets/{targetName}","PUT",{targetName:e},{skipLockoutCheck:n.skipLockoutCheck},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putAuthorizationPolicy(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "policyId" when calling putAuthorizationPolicy';if(i==null)throw'Missing the required parameter "body" when calling putAuthorizationPolicy';return this.apiClient.callApi("/api/v2/authorization/policies/{policyId}","PUT",{policyId:e},{skipLockoutCheck:n.skipLockoutCheck},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putAuthorizationRole(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "roleId" when calling putAuthorizationRole';if(i==null)throw'Missing the required parameter "body" when calling putAuthorizationRole';return this.apiClient.callApi("/api/v2/authorization/roles/{roleId}","PUT",{roleId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putAuthorizationRoleUsersAdd(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "roleId" when calling putAuthorizationRoleUsersAdd';if(i==null)throw'Missing the required parameter "body" when calling putAuthorizationRoleUsersAdd';return this.apiClient.callApi("/api/v2/authorization/roles/{roleId}/users/add","PUT",{roleId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putAuthorizationRoleUsersRemove(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "roleId" when calling putAuthorizationRoleUsersRemove';if(i==null)throw'Missing the required parameter "body" when calling putAuthorizationRoleUsersRemove';return this.apiClient.callApi("/api/v2/authorization/roles/{roleId}/users/remove","PUT",{roleId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putAuthorizationRolesDefault(e,i){if(i=i||{},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"],i.customHeaders)}putAuthorizationRolesSettings(e,i){if(i=i||{},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"],i.customHeaders)}putUserRoles(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "subjectId" when calling putUserRoles';if(i==null)throw'Missing the required parameter "body" when calling putUserRoles';return this.apiClient.callApi("/api/v2/users/{subjectId}/roles","PUT",{subjectId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}},IA=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)}},zA=class{constructor(e){this.apiClient=e||q.instance}getBillingContract(e,i){if(i=i||{},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"],i.customHeaders)}getBillingContractBillingperiod(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "contractId" when calling getBillingContractBillingperiod';if(i==null||i==="")throw'Missing the required parameter "billingPeriodId" when calling getBillingContractBillingperiod';return this.apiClient.callApi("/api/v2/billing/contracts/{contractId}/billingperiods/{billingPeriodId}","GET",{contractId:e,billingPeriodId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.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,i){if(i=i||{},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"],i.customHeaders)}getBillingContractsInvoiceLines(e,i){if(i=i||{},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:i.before,after:i.after,pageSize:i.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i,n){if(n=n||{},e==null)throw'Missing the required parameter "startDate" when calling getBillingReportsBillableusage';if(i==null)throw'Missing the required parameter "endDate" when calling getBillingReportsBillableusage';return this.apiClient.callApi("/api/v2/billing/reports/billableusage","GET",{},{startDate:e,endDate:i},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getBillingTrusteebillingoverviewTrustorOrgId(e,i){if(i=i||{},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:i.billingPeriodIndex},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}},DA=class{constructor(e){this.apiClient=e||q.instance}deleteBusinessrulesDecisiontable(e,i){if(i=i||{},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:i.forceDelete},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}deleteBusinessrulesDecisiontableVersion(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "tableId" when calling deleteBusinessrulesDecisiontableVersion';if(i==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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteBusinessrulesDecisiontableVersionRow(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "tableId" when calling deleteBusinessrulesDecisiontableVersionRow';if(i==null)throw'Missing the required parameter "tableVersion" when calling deleteBusinessrulesDecisiontableVersionRow';if(n==null||n==="")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:i,rowId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}deleteBusinessrulesSchema(e,i){if(i=i||{},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"],i.customHeaders)}getBusinessrulesDecisiontable(e,i){if(i=i||{},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"],i.customHeaders)}getBusinessrulesDecisiontableVersion(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "tableId" when calling getBusinessrulesDecisiontableVersion';if(i==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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getBusinessrulesDecisiontableVersionRow(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "tableId" when calling getBusinessrulesDecisiontableVersionRow';if(i==null)throw'Missing the required parameter "tableVersion" when calling getBusinessrulesDecisiontableVersionRow';if(n==null||n==="")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:i,rowId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getBusinessrulesDecisiontableVersionRows(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "tableId" when calling getBusinessrulesDecisiontableVersionRows';if(i==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:i},{pageNumber:n.pageNumber,pageSize:n.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getBusinessrulesDecisiontableVersions(e,i){if(i=i||{},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:i.after,pageSize:i.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "tableId" when calling patchBusinessrulesDecisiontable';if(i==null)throw'Missing the required parameter "body" when calling patchBusinessrulesDecisiontable';return this.apiClient.callApi("/api/v2/businessrules/decisiontables/{tableId}","PATCH",{tableId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchBusinessrulesDecisiontableVersion(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "tableId" when calling patchBusinessrulesDecisiontableVersion';if(i==null)throw'Missing the required parameter "tableVersion" when calling patchBusinessrulesDecisiontableVersion';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postBusinessrulesDecisiontableExecute(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "tableId" when calling postBusinessrulesDecisiontableExecute';if(i==null)throw'Missing the required parameter "body" when calling postBusinessrulesDecisiontableExecute';return this.apiClient.callApi("/api/v2/businessrules/decisiontables/{tableId}/execute","POST",{tableId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postBusinessrulesDecisiontableVersionCopy(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "tableId" when calling postBusinessrulesDecisiontableVersionCopy';if(i==null)throw'Missing the required parameter "tableVersion" when calling postBusinessrulesDecisiontableVersionCopy';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postBusinessrulesDecisiontableVersionExecute(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "tableId" when calling postBusinessrulesDecisiontableVersionExecute';if(i==null)throw'Missing the required parameter "tableVersion" when calling postBusinessrulesDecisiontableVersionExecute';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postBusinessrulesDecisiontableVersionRows(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "tableId" when calling postBusinessrulesDecisiontableVersionRows';if(i==null)throw'Missing the required parameter "tableVersion" when calling postBusinessrulesDecisiontableVersionRows';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postBusinessrulesDecisiontableVersionRowsSearch(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "tableId" when calling postBusinessrulesDecisiontableVersionRowsSearch';if(i==null)throw'Missing the required parameter "tableVersion" when calling postBusinessrulesDecisiontableVersionRowsSearch';if(n==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:i},{pageNumber:a.pageNumber,pageSize:a.pageSize},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postBusinessrulesDecisiontableVersionSync(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "tableId" when calling postBusinessrulesDecisiontableVersionSync';if(i==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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postBusinessrulesDecisiontableVersions(e,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "tableId" when calling postBusinessrulesDecisiontableVersions';return this.apiClient.callApi("/api/v2/businessrules/decisiontables/{tableId}/versions","POST",{tableId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postBusinessrulesDecisiontables(e,i){if(i=i||{},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"],i.customHeaders)}postBusinessrulesSchemas(e,i){if(i=i||{},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"],i.customHeaders)}putBusinessrulesDecisiontableVersionPublish(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "tableId" when calling putBusinessrulesDecisiontableVersionPublish';if(i==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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putBusinessrulesDecisiontableVersionRow(e,i,n,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "tableId" when calling putBusinessrulesDecisiontableVersionRow';if(i==null)throw'Missing the required parameter "tableVersion" when calling putBusinessrulesDecisiontableVersionRow';if(n==null||n==="")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:i,rowId:n},{},{},{},a,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}putBusinessrulesSchema(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "schemaId" when calling putBusinessrulesSchema';if(i==null)throw'Missing the required parameter "body" when calling putBusinessrulesSchema';return this.apiClient.callApi("/api/v2/businessrules/schemas/{schemaId}","PUT",{schemaId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}},GA=class{constructor(e){this.apiClient=e||q.instance}getCarrierservicesIntegrationsEmergencylocationsMe(e,i){if(i=i||{},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"],i.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)}},$A=class{constructor(e){this.apiClient=e||q.instance}deleteCasemanagementCase(e,i){if(i=i||{},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"],i.customHeaders)}deleteCasemanagementCaseplan(e,i){if(i=i||{},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"],i.customHeaders)}getCasemanagementCase(e,i){if(i=i||{},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:i.expands},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getCasemanagementCaseAssociation(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "caseId" when calling getCasemanagementCaseAssociation';if(i==null||i==="")throw'Missing the required parameter "associationId" when calling getCasemanagementCaseAssociation';return this.apiClient.callApi("/api/v2/casemanagement/cases/{caseId}/associations/{associationId}","GET",{caseId:e,associationId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getCasemanagementCaseAssociations(e,i){if(i=i||{},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:i.before,after:i.after,pageSize:i.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getCasemanagementCaseStage(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "caseId" when calling getCasemanagementCaseStage';if(i==null||i==="")throw'Missing the required parameter "stageId" when calling getCasemanagementCaseStage';return this.apiClient.callApi("/api/v2/casemanagement/cases/{caseId}/stages/{stageId}","GET",{caseId:e,stageId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getCasemanagementCaseStageStep(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "caseId" when calling getCasemanagementCaseStageStep';if(i==null||i==="")throw'Missing the required parameter "stageId" when calling getCasemanagementCaseStageStep';if(n==null||n==="")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:i,stepId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getCasemanagementCaseStageSteps(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "caseId" when calling getCasemanagementCaseStageSteps';if(i==null||i==="")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:i},{before:n.before,after:n.after,pageSize:n.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getCasemanagementCaseStages(e,i){if(i=i||{},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:i.before,after:i.after,pageSize:i.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getCasemanagementCaseTerminateJob(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "caseId" when calling getCasemanagementCaseTerminateJob';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getCasemanagementCaseplan(e,i){if(i=i||{},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"],i.customHeaders)}getCasemanagementCaseplanVersion(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "caseplanId" when calling getCasemanagementCaseplanVersion';if(i==null||i==="")throw'Missing the required parameter "versionId" when calling getCasemanagementCaseplanVersion';return this.apiClient.callApi("/api/v2/casemanagement/caseplans/{caseplanId}/versions/{versionId}","GET",{caseplanId:e,versionId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getCasemanagementCaseplanVersionDataschemas(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "caseplanId" when calling getCasemanagementCaseplanVersionDataschemas';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getCasemanagementCaseplanVersionIntakesettings(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "caseplanId" when calling getCasemanagementCaseplanVersionIntakesettings';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getCasemanagementCaseplanVersionStageplan(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "caseplanId" when calling getCasemanagementCaseplanVersionStageplan';if(i==null||i==="")throw'Missing the required parameter "versionId" when calling getCasemanagementCaseplanVersionStageplan';if(n==null||n==="")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:i,stageplanId:n},{expands:this.apiClient.buildCollectionParam(a.expands,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getCasemanagementCaseplanVersionStageplanStepplan(e,i,n,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "caseplanId" when calling getCasemanagementCaseplanVersionStageplanStepplan';if(i==null||i==="")throw'Missing the required parameter "versionId" when calling getCasemanagementCaseplanVersionStageplanStepplan';if(n==null||n==="")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:i,stageplanId:n,stepplanId:a},{expands:this.apiClient.buildCollectionParam(r.expands,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}getCasemanagementCaseplanVersionStageplanStepplans(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "caseplanId" when calling getCasemanagementCaseplanVersionStageplanStepplans';if(i==null||i==="")throw'Missing the required parameter "versionId" when calling getCasemanagementCaseplanVersionStageplanStepplans';if(n==null||n==="")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:i,stageplanId:n},{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,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "caseplanId" when calling getCasemanagementCaseplanVersionStageplans';if(i==null||i==="")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:i},{before:n.before,after:n.after,pageSize:n.pageSize,expands:this.apiClient.buildCollectionParam(n.expands,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.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,i){if(i=i||{},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:i.after,pageSize:i.pageSize,divisionIds:i.divisionIds,expands:this.apiClient.buildCollectionParam(i.expands,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getCasemanagementCasesReference(e,i){if(i=i||{},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:i.expands},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}patchCasemanagementCaseDatedue(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "caseId" when calling patchCasemanagementCaseDatedue';if(i==null)throw'Missing the required parameter "body" when calling patchCasemanagementCaseDatedue';return this.apiClient.callApi("/api/v2/casemanagement/cases/{caseId}/datedue","PATCH",{caseId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchCasemanagementCasePriority(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "caseId" when calling patchCasemanagementCasePriority';if(i==null)throw'Missing the required parameter "body" when calling patchCasemanagementCasePriority';return this.apiClient.callApi("/api/v2/casemanagement/cases/{caseId}/priority","PATCH",{caseId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchCasemanagementCaseSummary(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "caseId" when calling patchCasemanagementCaseSummary';if(i==null)throw'Missing the required parameter "body" when calling patchCasemanagementCaseSummary';return this.apiClient.callApi("/api/v2/casemanagement/cases/{caseId}/summary","PATCH",{caseId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchCasemanagementCaseplan(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "caseplanId" when calling patchCasemanagementCaseplan';if(i==null)throw'Missing the required parameter "body" when calling patchCasemanagementCaseplan';return this.apiClient.callApi("/api/v2/casemanagement/caseplans/{caseplanId}","PATCH",{caseplanId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchCasemanagementCaseplanStageplan(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "caseplanId" when calling patchCasemanagementCaseplanStageplan';if(i==null||i==="")throw'Missing the required parameter "stageplanId" when calling patchCasemanagementCaseplanStageplan';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchCasemanagementCaseplanStageplanStepplan(e,i,n,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "caseplanId" when calling patchCasemanagementCaseplanStageplanStepplan';if(i==null||i==="")throw'Missing the required parameter "stageplanId" when calling patchCasemanagementCaseplanStageplanStepplan';if(n==null||n==="")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:i,stepplanId:n},{},{},{},a,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}postCasemanagementCaseAssociations(e,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "caseId" when calling postCasemanagementCaseAssociations';return this.apiClient.callApi("/api/v2/casemanagement/cases/{caseId}/associations","POST",{caseId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postCasemanagementCaseTerminateJobs(e,i){if(i=i||{},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"],i.customHeaders)}postCasemanagementCaseplanPublish(e,i){if(i=i||{},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"],i.customHeaders)}postCasemanagementCaseplanVersions(e,i){if(i=i||{},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"],i.customHeaders)}postCasemanagementCaseplans(e,i){if(i=i||{},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"],i.customHeaders)}postCasemanagementCaseplansQuery(e,i){if(i=i||{},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"],i.customHeaders)}postCasemanagementCases(e,i){if(i=i||{},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"],i.customHeaders)}postCasemanagementCasesAssociationsQuery(e){return e=e||{},this.apiClient.callApi("/api/v2/casemanagement/cases/associations/query","POST",{},{},{},{},e.body,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}putCasemanagementCaseplanIntakesettings(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "caseplanId" when calling putCasemanagementCaseplanIntakesettings';if(i==null)throw'Missing the required parameter "body" when calling putCasemanagementCaseplanIntakesettings';return this.apiClient.callApi("/api/v2/casemanagement/caseplans/{caseplanId}/intakesettings","PUT",{caseplanId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}},NA=class{constructor(e){this.apiClient=e||q.instance}deleteChatsRoomMessage(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "roomJid" when calling deleteChatsRoomMessage';if(i==null||i==="")throw'Missing the required parameter "messageId" when calling deleteChatsRoomMessage';return this.apiClient.callApi("/api/v2/chats/rooms/{roomJid}/messages/{messageId}","DELETE",{roomJid:e,messageId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteChatsRoomMessagesPin(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "roomJid" when calling deleteChatsRoomMessagesPin';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteChatsRoomParticipant(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "roomJid" when calling deleteChatsRoomParticipant';if(i==null||i==="")throw'Missing the required parameter "userId" when calling deleteChatsRoomParticipant';return this.apiClient.callApi("/api/v2/chats/rooms/{roomJid}/participants/{userId}","DELETE",{roomJid:e,userId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteChatsUserMessage(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling deleteChatsUserMessage';if(i==null||i==="")throw'Missing the required parameter "messageId" when calling deleteChatsUserMessage';return this.apiClient.callApi("/api/v2/chats/users/{userId}/messages/{messageId}","DELETE",{userId:e,messageId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteChatsUserMessagesPin(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling deleteChatsUserMessagesPin';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.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,i){if(i=i||{},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"],i.customHeaders)}getChatsRoom(e,i){if(i=i||{},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"],i.customHeaders)}getChatsRoomMessage(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "roomJid" when calling getChatsRoomMessage';if(i==null||i==="")throw'Missing the required parameter "messageIds" when calling getChatsRoomMessage';return this.apiClient.callApi("/api/v2/chats/rooms/{roomJid}/messages/{messageIds}","GET",{roomJid:e,messageIds:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getChatsRoomMessages(e,i){if(i=i||{},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:i.limit,before:i.before,after:i.after,excludeMetadata:i.excludeMetadata},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getChatsRoomParticipant(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "roomJid" when calling getChatsRoomParticipant';if(i==null||i==="")throw'Missing the required parameter "participantJid" when calling getChatsRoomParticipant';return this.apiClient.callApi("/api/v2/chats/rooms/{roomJid}/participants/{participantJid}","GET",{roomJid:e,participantJid:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getChatsRoomParticipants(e,i){if(i=i||{},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:i.notify},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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:i.limit,before:i.before,after:i.after,excludeMetadata:i.excludeMetadata},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getChatsUser(e,i){if(i=i||{},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"],i.customHeaders)}getChatsUserMessage(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling getChatsUserMessage';if(i==null||i==="")throw'Missing the required parameter "messageIds" when calling getChatsUserMessage';return this.apiClient.callApi("/api/v2/chats/users/{userId}/messages/{messageIds}","GET",{userId:e,messageIds:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getChatsUserMessages(e,i){if(i=i||{},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:i.limit,before:i.before,after:i.after,excludeMetadata:i.excludeMetadata},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getChatsUserSettings(e,i){if(i=i||{},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"],i.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,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "roomJid" when calling patchChatsRoom';if(i==null)throw'Missing the required parameter "body" when calling patchChatsRoom';return this.apiClient.callApi("/api/v2/chats/rooms/{roomJid}","PATCH",{roomJid:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchChatsRoomMessage(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "roomJid" when calling patchChatsRoomMessage';if(i==null||i==="")throw'Missing the required parameter "messageId" when calling patchChatsRoomMessage';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchChatsSettings(e,i){if(i=i||{},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"],i.customHeaders)}patchChatsUserMessage(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "userId" when calling patchChatsUserMessage';if(i==null||i==="")throw'Missing the required parameter "messageId" when calling patchChatsUserMessage';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchChatsUserSettings(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling patchChatsUserSettings';if(i==null)throw'Missing the required parameter "body" when calling patchChatsUserSettings';return this.apiClient.callApi("/api/v2/chats/users/{userId}/settings","PATCH",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchChatsUsersMeSettings(e,i){if(i=i||{},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"],i.customHeaders)}postChatsRoomMessages(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "roomJid" when calling postChatsRoomMessages';if(i==null)throw'Missing the required parameter "body" when calling postChatsRoomMessages';return this.apiClient.callApi("/api/v2/chats/rooms/{roomJid}/messages","POST",{roomJid:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postChatsRoomMessagesPins(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "roomJid" when calling postChatsRoomMessagesPins';if(i==null)throw'Missing the required parameter "body" when calling postChatsRoomMessagesPins';return this.apiClient.callApi("/api/v2/chats/rooms/{roomJid}/messages/pins","POST",{roomJid:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postChatsRoomParticipant(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "roomJid" when calling postChatsRoomParticipant';if(i==null||i==="")throw'Missing the required parameter "userId" when calling postChatsRoomParticipant';return this.apiClient.callApi("/api/v2/chats/rooms/{roomJid}/participants/{userId}","POST",{roomJid:e,userId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postChatsRooms(e,i){if(i=i||{},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"],i.customHeaders)}postChatsUserMessages(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling postChatsUserMessages';if(i==null)throw'Missing the required parameter "body" when calling postChatsUserMessages';return this.apiClient.callApi("/api/v2/chats/users/{userId}/messages","POST",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postChatsUserMessagesPins(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling postChatsUserMessagesPins';if(i==null)throw'Missing the required parameter "body" when calling postChatsUserMessagesPins';return this.apiClient.callApi("/api/v2/chats/users/{userId}/messages/pins","POST",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postChatsUsersMeSettings(e,i){if(i=i||{},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"],i.customHeaders)}putChatsMessageReactions(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "messageId" when calling putChatsMessageReactions';if(i==null)throw'Missing the required parameter "body" when calling putChatsMessageReactions';return this.apiClient.callApi("/api/v2/chats/messages/{messageId}/reactions","PUT",{messageId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putChatsSettings(e,i){if(i=i||{},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"],i.customHeaders)}},UA=class{constructor(e){this.apiClient=e||q.instance}deleteCoachingAppointment(e,i){if(i=i||{},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"],i.customHeaders)}deleteCoachingAppointmentAnnotation(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "appointmentId" when calling deleteCoachingAppointmentAnnotation';if(i==null||i==="")throw'Missing the required parameter "annotationId" when calling deleteCoachingAppointmentAnnotation';return this.apiClient.callApi("/api/v2/coaching/appointments/{appointmentId}/annotations/{annotationId}","DELETE",{appointmentId:e,annotationId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getCoachingAppointment(e,i){if(i=i||{},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"],i.customHeaders)}getCoachingAppointmentAnnotation(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "appointmentId" when calling getCoachingAppointmentAnnotation';if(i==null||i==="")throw'Missing the required parameter "annotationId" when calling getCoachingAppointmentAnnotation';return this.apiClient.callApi("/api/v2/coaching/appointments/{appointmentId}/annotations/{annotationId}","GET",{appointmentId:e,annotationId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getCoachingAppointmentAnnotations(e,i){if(i=i||{},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:i.pageNumber,pageSize:i.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getCoachingAppointmentStatuses(e,i){if(i=i||{},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:i.pageNumber,pageSize:i.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getCoachingAppointments(e,i){if(i=i||{},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:i.interval,pageNumber:i.pageNumber,pageSize:i.pageSize,statuses:this.apiClient.buildCollectionParam(i.statuses,"multi"),facilitatorIds:this.apiClient.buildCollectionParam(i.facilitatorIds,"multi"),sortOrder:i.sortOrder,relationships:this.apiClient.buildCollectionParam(i.relationships,"multi"),completionInterval:i.completionInterval,overdue:i.overdue,intervalCondition:i.intervalCondition},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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"],i.customHeaders)}patchCoachingAppointment(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "appointmentId" when calling patchCoachingAppointment';if(i==null)throw'Missing the required parameter "body" when calling patchCoachingAppointment';return this.apiClient.callApi("/api/v2/coaching/appointments/{appointmentId}","PATCH",{appointmentId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchCoachingAppointmentAnnotation(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "appointmentId" when calling patchCoachingAppointmentAnnotation';if(i==null||i==="")throw'Missing the required parameter "annotationId" when calling patchCoachingAppointmentAnnotation';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchCoachingAppointmentStatus(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "appointmentId" when calling patchCoachingAppointmentStatus';if(i==null)throw'Missing the required parameter "body" when calling patchCoachingAppointmentStatus';return this.apiClient.callApi("/api/v2/coaching/appointments/{appointmentId}/status","PATCH",{appointmentId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchCoachingNotification(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "notificationId" when calling patchCoachingNotification';if(i==null)throw'Missing the required parameter "body" when calling patchCoachingNotification';return this.apiClient.callApi("/api/v2/coaching/notifications/{notificationId}","PATCH",{notificationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postCoachingAppointmentAnnotations(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "appointmentId" when calling postCoachingAppointmentAnnotations';if(i==null)throw'Missing the required parameter "body" when calling postCoachingAppointmentAnnotations';return this.apiClient.callApi("/api/v2/coaching/appointments/{appointmentId}/annotations","POST",{appointmentId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postCoachingAppointmentConversations(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "appointmentId" when calling postCoachingAppointmentConversations';if(i==null)throw'Missing the required parameter "body" when calling postCoachingAppointmentConversations';return this.apiClient.callApi("/api/v2/coaching/appointments/{appointmentId}/conversations","POST",{appointmentId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postCoachingAppointments(e,i){if(i=i||{},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"],i.customHeaders)}postCoachingAppointmentsAggregatesQuery(e,i){if(i=i||{},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"],i.customHeaders)}postCoachingScheduleslotsJobs(e,i){if(i=i||{},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"],i.customHeaders)}postCoachingScheduleslotsQuery(e,i){if(i=i||{},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"],i.customHeaders)}},LA=class{constructor(e){this.apiClient=e||q.instance}deleteContentmanagementDocument(e,i){if(i=i||{},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:i.override},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}deleteContentmanagementShare(e,i){if(i=i||{},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"],i.customHeaders)}deleteContentmanagementStatusStatusId(e,i){if(i=i||{},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"],i.customHeaders)}deleteContentmanagementWorkspace(e,i){if(i=i||{},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:i.moveChildrenToWorkspaceId},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}deleteContentmanagementWorkspaceMember(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "workspaceId" when calling deleteContentmanagementWorkspaceMember';if(i==null||i==="")throw'Missing the required parameter "memberId" when calling deleteContentmanagementWorkspaceMember';return this.apiClient.callApi("/api/v2/contentmanagement/workspaces/{workspaceId}/members/{memberId}","DELETE",{workspaceId:e,memberId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteContentmanagementWorkspaceTagvalue(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "workspaceId" when calling deleteContentmanagementWorkspaceTagvalue';if(i==null||i==="")throw'Missing the required parameter "tagId" when calling deleteContentmanagementWorkspaceTagvalue';return this.apiClient.callApi("/api/v2/contentmanagement/workspaces/{workspaceId}/tagvalues/{tagId}","DELETE",{workspaceId:e,tagId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getContentmanagementDocument(e,i){if(i=i||{},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(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getContentmanagementDocumentContent(e,i){if(i=i||{},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:i.disposition,contentType:i.contentType},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getContentmanagementDocuments(e,i){if(i=i||{},e==null)throw'Missing the required parameter "workspaceId" when calling getContentmanagementDocuments';return this.apiClient.callApi("/api/v2/contentmanagement/documents","GET",{},{workspaceId:e,name:i.name,expand:this.apiClient.buildCollectionParam(i.expand,"multi"),pageSize:i.pageSize,pageNumber:i.pageNumber,sortBy:i.sortBy,sortOrder:i.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getContentmanagementQuery(e,i){if(i=i||{},e==null)throw'Missing the required parameter "queryPhrase" when calling getContentmanagementQuery';return this.apiClient.callApi("/api/v2/contentmanagement/query","GET",{},{pageSize:i.pageSize,pageNumber:i.pageNumber,sortBy:i.sortBy,sortOrder:i.sortOrder,queryPhrase:e,expand:this.apiClient.buildCollectionParam(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getContentmanagementSecurityprofile(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getContentmanagementSharedSharedId(e,i){if(i=i||{},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:i.disposition,contentType:i.contentType,expand:i.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getContentmanagementWorkspaceDocuments(e,i){if(i=i||{},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(i.expand,"multi"),pageSize:i.pageSize,pageNumber:i.pageNumber,sortBy:i.sortBy,sortOrder:i.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getContentmanagementWorkspaceMember(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "workspaceId" when calling getContentmanagementWorkspaceMember';if(i==null||i==="")throw'Missing the required parameter "memberId" when calling getContentmanagementWorkspaceMember';return this.apiClient.callApi("/api/v2/contentmanagement/workspaces/{workspaceId}/members/{memberId}","GET",{workspaceId:e,memberId:i},{expand:this.apiClient.buildCollectionParam(n.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getContentmanagementWorkspaceMembers(e,i){if(i=i||{},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:i.pageSize,pageNumber:i.pageNumber,expand:this.apiClient.buildCollectionParam(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getContentmanagementWorkspaceTagvalue(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "workspaceId" when calling getContentmanagementWorkspaceTagvalue';if(i==null||i==="")throw'Missing the required parameter "tagId" when calling getContentmanagementWorkspaceTagvalue';return this.apiClient.callApi("/api/v2/contentmanagement/workspaces/{workspaceId}/tagvalues/{tagId}","GET",{workspaceId:e,tagId:i},{expand:this.apiClient.buildCollectionParam(n.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getContentmanagementWorkspaceTagvalues(e,i){if(i=i||{},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:i.value,pageSize:i.pageSize,pageNumber:i.pageNumber,expand:this.apiClient.buildCollectionParam(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "documentId" when calling postContentmanagementDocument';if(i==null)throw'Missing the required parameter "body" when calling postContentmanagementDocument';return this.apiClient.callApi("/api/v2/contentmanagement/documents/{documentId}","POST",{documentId:e},{expand:n.expand,override:n.override},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postContentmanagementDocumentContent(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "documentId" when calling postContentmanagementDocumentContent';if(i==null)throw'Missing the required parameter "body" when calling postContentmanagementDocumentContent';return this.apiClient.callApi("/api/v2/contentmanagement/documents/{documentId}/content","POST",{documentId:e},{override:n.override},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postContentmanagementDocuments(e,i){if(i=i||{},e==null)throw'Missing the required parameter "body" when calling postContentmanagementDocuments';return this.apiClient.callApi("/api/v2/contentmanagement/documents","POST",{},{copySource:i.copySource,moveSource:i.moveSource,override:i.override},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postContentmanagementQuery(e,i){if(i=i||{},e==null)throw'Missing the required parameter "body" when calling postContentmanagementQuery';return this.apiClient.callApi("/api/v2/contentmanagement/query","POST",{},{expand:i.expand},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postContentmanagementShares(e,i){if(i=i||{},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"],i.customHeaders)}postContentmanagementWorkspaceTagvalues(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "workspaceId" when calling postContentmanagementWorkspaceTagvalues';if(i==null)throw'Missing the required parameter "body" when calling postContentmanagementWorkspaceTagvalues';return this.apiClient.callApi("/api/v2/contentmanagement/workspaces/{workspaceId}/tagvalues","POST",{workspaceId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postContentmanagementWorkspaceTagvaluesQuery(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "workspaceId" when calling postContentmanagementWorkspaceTagvaluesQuery';if(i==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(n.expand,"multi")},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postContentmanagementWorkspaces(e,i){if(i=i||{},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"],i.customHeaders)}putContentmanagementWorkspace(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "workspaceId" when calling putContentmanagementWorkspace';if(i==null)throw'Missing the required parameter "body" when calling putContentmanagementWorkspace';return this.apiClient.callApi("/api/v2/contentmanagement/workspaces/{workspaceId}","PUT",{workspaceId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putContentmanagementWorkspaceMember(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "workspaceId" when calling putContentmanagementWorkspaceMember';if(i==null||i==="")throw'Missing the required parameter "memberId" when calling putContentmanagementWorkspaceMember';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}putContentmanagementWorkspaceTagvalue(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "workspaceId" when calling putContentmanagementWorkspaceTagvalue';if(i==null||i==="")throw'Missing the required parameter "tagId" when calling putContentmanagementWorkspaceTagvalue';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}},WA=class{constructor(e){this.apiClient=e||q.instance}deleteAnalyticsConversationsAggregatesJob(e,i){if(i=i||{},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"],i.customHeaders)}deleteAnalyticsConversationsDetailsJob(e,i){if(i=i||{},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"],i.customHeaders)}deleteConversation(e,i){if(i=i||{},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"],i.customHeaders)}deleteConversationCustomattribute(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling deleteConversationCustomattribute';if(i==null||i==="")throw'Missing the required parameter "attributesId" when calling deleteConversationCustomattribute';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/customattributes/{attributesId}","DELETE",{conversationId:e,attributesId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteConversationParticipantCode(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling deleteConversationParticipantCode';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling deleteConversationParticipantCode';if(n==null||n==="")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:i,addCommunicationCode:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}deleteConversationParticipantFlaggedreason(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling deleteConversationParticipantFlaggedreason';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling deleteConversationParticipantFlaggedreason';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/participants/{participantId}/flaggedreason","DELETE",{conversationId:e,participantId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteConversationsCallParticipantCommunicationPostflowaction(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling deleteConversationsCallParticipantCommunicationPostflowaction';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling deleteConversationsCallParticipantCommunicationPostflowaction';if(n==null||n==="")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:i,communicationId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}deleteConversationsCallParticipantConsult(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling deleteConversationsCallParticipantConsult';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteConversationsEmailMessagesDraftAttachment(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling deleteConversationsEmailMessagesDraftAttachment';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteConversationsMessagesCachedmediaCachedMediaItemId(e,i){if(i=i||{},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"],i.customHeaders)}deleteConversationsMessagingIntegrationsAppleIntegrationId(e,i){if(i=i||{},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"],i.customHeaders)}deleteConversationsMessagingIntegrationsFacebookIntegrationId(e,i){if(i=i||{},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"],i.customHeaders)}deleteConversationsMessagingIntegrationsInstagramIntegrationId(e,i){if(i=i||{},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"],i.customHeaders)}deleteConversationsMessagingIntegrationsOpenExtensionsGooglebusinessprofileIntegrationId(e,i){if(i=i||{},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"],i.customHeaders)}deleteConversationsMessagingIntegrationsOpenIntegrationId(e,i){if(i=i||{},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"],i.customHeaders)}deleteConversationsMessagingIntegrationsTwitterIntegrationId(e,i){if(i=i||{},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"],i.customHeaders)}deleteConversationsMessagingIntegrationsWhatsappIntegrationId(e,i){if(i=i||{},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"],i.customHeaders)}deleteConversationsMessagingSetting(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getAnalyticsConversationDetails(e,i){if(i=i||{},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"],i.customHeaders)}getAnalyticsConversationsAggregatesJob(e,i){if(i=i||{},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"],i.customHeaders)}getAnalyticsConversationsAggregatesJobResults(e,i){if(i=i||{},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:i.cursor},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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"],i.customHeaders)}getAnalyticsConversationsDetailsJobResults(e,i){if(i=i||{},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:i.cursor,pageSize:i.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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"],i.customHeaders)}getConversationAssistantCopilotcontext(e,i){if(i=i||{},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"],i.customHeaders)}getConversationCommunicationAgentchecklist(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationCommunicationAgentchecklist';if(i==null||i==="")throw'Missing the required parameter "communicationId" when calling getConversationCommunicationAgentchecklist';if(n==null||n==="")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:i,agentChecklistId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getConversationCommunicationAgentchecklistJob(e,i,n,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationCommunicationAgentchecklistJob';if(i==null||i==="")throw'Missing the required parameter "communicationId" when calling getConversationCommunicationAgentchecklistJob';if(n==null||n==="")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:i,agentChecklistId:n,jobId:a},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}getConversationCommunicationAgentchecklists(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationCommunicationAgentchecklists';if(i==null||i==="")throw'Missing the required parameter "communicationId" when calling getConversationCommunicationAgentchecklists';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/communications/{communicationId}/agentchecklists","GET",{conversationId:e,communicationId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getConversationCommunicationInternalmessage(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationCommunicationInternalmessage';if(i==null||i==="")throw'Missing the required parameter "communicationId" when calling getConversationCommunicationInternalmessage';if(n==null||n==="")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:i,messageId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getConversationCommunicationInternalmessages(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationCommunicationInternalmessages';if(i==null||i==="")throw'Missing the required parameter "communicationId" when calling getConversationCommunicationInternalmessages';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/communications/{communicationId}/internalmessages","GET",{conversationId:e,communicationId:i},{pageSize:n.pageSize,pageNumber:n.pageNumber},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getConversationCustomattribute(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationCustomattribute';if(i==null||i==="")throw'Missing the required parameter "attributesId" when calling getConversationCustomattribute';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/customattributes/{attributesId}","GET",{conversationId:e,attributesId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getConversationCustomattributes(e,i){if(i=i||{},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"],i.customHeaders)}getConversationParticipantSecureivrsession(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationParticipantSecureivrsession';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling getConversationParticipantSecureivrsession';if(n==null||n==="")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:i,secureSessionId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getConversationParticipantSecureivrsessions(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationParticipantSecureivrsessions';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling getConversationParticipantSecureivrsessions';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/participants/{participantId}/secureivrsessions","GET",{conversationId:e,participantId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getConversationParticipantWrapup(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationParticipantWrapup';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling getConversationParticipantWrapup';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/participants/{participantId}/wrapup","GET",{conversationId:e,participantId:i},{provisional:n.provisional},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getConversationParticipantWrapupcodes(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationParticipantWrapupcodes';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling getConversationParticipantWrapupcodes';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/participants/{participantId}/wrapupcodes","GET",{conversationId:e,participantId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getConversationSecureattributes(e,i){if(i=i||{},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"],i.customHeaders)}getConversationSuggestion(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationSuggestion';if(i==null||i==="")throw'Missing the required parameter "suggestionId" when calling getConversationSuggestion';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/suggestions/{suggestionId}","GET",{conversationId:e,suggestionId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getConversationSuggestions(e,i){if(i=i||{},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:i.before,after:i.after,pageSize:i.pageSize,type:i.type,state:i.state},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getConversationSummaries(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getConversationsCallParticipantCommunicationWrapup(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationsCallParticipantCommunicationWrapup';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling getConversationsCallParticipantCommunicationWrapup';if(n==null||n==="")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:i,communicationId:n},{provisional:a.provisional},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getConversationsCallParticipantWrapup(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationsCallParticipantWrapup';if(i==null||i==="")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:i},{provisional:n.provisional},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getConversationsCallParticipantWrapupcodes(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationsCallParticipantWrapupcodes';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getConversationsCallback(e,i){if(i=i||{},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"],i.customHeaders)}getConversationsCallbackParticipantCommunicationWrapup(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationsCallbackParticipantCommunicationWrapup';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling getConversationsCallbackParticipantCommunicationWrapup';if(n==null||n==="")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:i,communicationId:n},{provisional:a.provisional},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getConversationsCallbackParticipantWrapup(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationsCallbackParticipantWrapup';if(i==null||i==="")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:i},{provisional:n.provisional},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getConversationsCallbackParticipantWrapupcodes(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationsCallbackParticipantWrapupcodes';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getConversationsCallbacks(e){return e=e||{},this.apiClient.callApi("/api/v2/conversations/callbacks","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getConversationsCalls(e){return e=e||{},this.apiClient.callApi("/api/v2/conversations/calls","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getConversationsCallsHistory(e){return e=e||{},this.apiClient.callApi("/api/v2/conversations/calls/history","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,interval:e.interval,expand:this.apiClient.buildCollectionParam(e.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getConversationsCallsMaximumconferenceparties(e){return e=e||{},this.apiClient.callApi("/api/v2/conversations/calls/maximumconferenceparties","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getConversationsChat(e,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationsChat';return this.apiClient.callApi("/api/v2/conversations/chats/{conversationId}","GET",{conversationId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getConversationsChatMessage(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationsChatMessage';if(i==null||i==="")throw'Missing the required parameter "messageId" when calling getConversationsChatMessage';return this.apiClient.callApi("/api/v2/conversations/chats/{conversationId}/messages/{messageId}","GET",{conversationId:e,messageId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getConversationsChatMessages(e,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationsChatMessages';return this.apiClient.callApi("/api/v2/conversations/chats/{conversationId}/messages","GET",{conversationId:e},{after:i.after,before:i.before,sortOrder:i.sortOrder,maxResults:i.maxResults},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getConversationsChatParticipantCommunicationWrapup(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationsChatParticipantCommunicationWrapup';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling getConversationsChatParticipantCommunicationWrapup';if(n==null||n==="")throw'Missing the required parameter "communicationId" when calling getConversationsChatParticipantCommunicationWrapup';return this.apiClient.callApi("/api/v2/conversations/chats/{conversationId}/participants/{participantId}/communications/{communicationId}/wrapup","GET",{conversationId:e,participantId:i,communicationId:n},{provisional:a.provisional},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getConversationsChatParticipantWrapup(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationsChatParticipantWrapup';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling getConversationsChatParticipantWrapup';return this.apiClient.callApi("/api/v2/conversations/chats/{conversationId}/participants/{participantId}/wrapup","GET",{conversationId:e,participantId:i},{provisional:n.provisional},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getConversationsChatParticipantWrapupcodes(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationsChatParticipantWrapupcodes';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling getConversationsChatParticipantWrapupcodes';return this.apiClient.callApi("/api/v2/conversations/chats/{conversationId}/participants/{participantId}/wrapupcodes","GET",{conversationId:e,participantId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getConversationsChats(e){return e=e||{},this.apiClient.callApi("/api/v2/conversations/chats","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getConversationsCobrowsesession(e,i){if(i=i||{},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"],i.customHeaders)}getConversationsCobrowsesessionParticipantCommunicationWrapup(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationsCobrowsesessionParticipantCommunicationWrapup';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling getConversationsCobrowsesessionParticipantCommunicationWrapup';if(n==null||n==="")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:i,communicationId:n},{provisional:a.provisional},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getConversationsCobrowsesessionParticipantWrapup(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationsCobrowsesessionParticipantWrapup';if(i==null||i==="")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:i},{provisional:n.provisional},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getConversationsCobrowsesessionParticipantWrapupcodes(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationsCobrowsesessionParticipantWrapupcodes';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.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,i){if(i=i||{},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"],i.customHeaders)}getConversationsCustomattributesSchemaVersion(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "schemaId" when calling getConversationsCustomattributesSchemaVersion';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getConversationsCustomattributesSchemaVersions(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getConversationsEmailMessage(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationsEmailMessage';if(i==null||i==="")throw'Missing the required parameter "messageId" when calling getConversationsEmailMessage';return this.apiClient.callApi("/api/v2/conversations/emails/{conversationId}/messages/{messageId}","GET",{conversationId:e,messageId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getConversationsEmailMessages(e,i){if(i=i||{},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:i.includeAgentlessStitchedMessages},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getConversationsEmailMessagesDraft(e,i){if(i=i||{},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"],i.customHeaders)}getConversationsEmailParticipantCommunicationWrapup(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationsEmailParticipantCommunicationWrapup';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling getConversationsEmailParticipantCommunicationWrapup';if(n==null||n==="")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:i,communicationId:n},{provisional:a.provisional},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getConversationsEmailParticipantWrapup(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationsEmailParticipantWrapup';if(i==null||i==="")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:i},{provisional:n.provisional},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getConversationsEmailParticipantWrapupcodes(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationsEmailParticipantWrapupcodes';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getConversationsEmailSettings(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getConversationsMessageCommunicationMessagesMedia(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationsMessageCommunicationMessagesMedia';if(i==null||i==="")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:i},{status:n.status,pageNumber:n.pageNumber,pageSize:n.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getConversationsMessageCommunicationMessagesMediaMediaId(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationsMessageCommunicationMessagesMediaMediaId';if(i==null||i==="")throw'Missing the required parameter "communicationId" when calling getConversationsMessageCommunicationMessagesMediaMediaId';if(n==null||n==="")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:i,mediaId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getConversationsMessageDetails(e,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "messageId" when calling getConversationsMessageDetails';return this.apiClient.callApi("/api/v2/conversations/messages/{messageId}/details","GET",{messageId:e},{useNormalizedMessage:i.useNormalizedMessage},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getConversationsMessageMessage(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationsMessageMessage';if(i==null||i==="")throw'Missing the required parameter "messageId" when calling getConversationsMessageMessage';return this.apiClient.callApi("/api/v2/conversations/messages/{conversationId}/messages/{messageId}","GET",{conversationId:e,messageId:i},{useNormalizedMessage:n.useNormalizedMessage},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getConversationsMessageParticipantCommunicationWrapup(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationsMessageParticipantCommunicationWrapup';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling getConversationsMessageParticipantCommunicationWrapup';if(n==null||n==="")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:i,communicationId:n},{provisional:a.provisional},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getConversationsMessageParticipantWrapup(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationsMessageParticipantWrapup';if(i==null||i==="")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:i},{provisional:n.provisional},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getConversationsMessageParticipantWrapupcodes(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationsMessageParticipantWrapupcodes';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getConversationsMessagingIdentityresolutionIntegrationsFacebookIntegrationId(e,i){if(i=i||{},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"],i.customHeaders)}getConversationsMessagingIdentityresolutionIntegrationsInstagramIntegrationId(e,i){if(i=i||{},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"],i.customHeaders)}getConversationsMessagingIdentityresolutionIntegrationsOpenIntegrationId(e,i){if(i=i||{},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"],i.customHeaders)}getConversationsMessagingIdentityresolutionIntegrationsTwitterIntegrationId(e,i){if(i=i||{},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"],i.customHeaders)}getConversationsMessagingIdentityresolutionIntegrationsWhatsappIntegrationId(e,i){if(i=i||{},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"],i.customHeaders)}getConversationsMessagingIntegrationTwitterOauthSettings(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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:i.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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:i.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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:i.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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:i.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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"],i.customHeaders)}getConversationsMessagingIntegrationsOpenExtensionsGooglebusinessprofileTokenAccounts(e,i){if(i=i||{},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"],i.customHeaders)}getConversationsMessagingIntegrationsOpenIntegrationId(e,i){if(i=i||{},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:i.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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:i.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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:i.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getConversationsMessagingOauthAppleCallback(e,i,n){if(n=n||{},e==null)throw'Missing the required parameter "code" when calling getConversationsMessagingOauthAppleCallback';if(i==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:i,error:n.error},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getConversationsMessagingSetting(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationsScreenshareParticipantCommunicationWrapup';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling getConversationsScreenshareParticipantCommunicationWrapup';if(n==null||n==="")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:i,communicationId:n},{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,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationsSocialParticipantCommunicationWrapup';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling getConversationsSocialParticipantCommunicationWrapup';if(n==null||n==="")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:i,communicationId:n},{provisional:a.provisional},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getConversationsVideoDetails(e,i){if(i=i||{},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"],i.customHeaders)}getConversationsVideoParticipantCommunicationWrapup(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationsVideoParticipantCommunicationWrapup';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling getConversationsVideoParticipantCommunicationWrapup';if(n==null||n==="")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:i,communicationId:n},{provisional:a.provisional},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getConversationsVideosMeeting(e,i){if(i=i||{},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"],i.customHeaders)}patchConversationCustomattributes(e,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchConversationCustomattributes';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/customattributes","PATCH",{conversationId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}patchConversationCustomattributesBulk(e,i){if(i=i||{},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},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}patchConversationParticipant(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchConversationParticipant';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling patchConversationParticipant';if(n==null)throw'Missing the required parameter "body" when calling patchConversationParticipant';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/participants/{participantId}","PATCH",{conversationId:e,participantId:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchConversationParticipantAttributes(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchConversationParticipantAttributes';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling patchConversationParticipantAttributes';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchConversationRecordingstate(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchConversationRecordingstate';if(i==null)throw'Missing the required parameter "body" when calling patchConversationRecordingstate';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/recordingstate","PATCH",{conversationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchConversationSecureattributes(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchConversationSecureattributes';if(i==null)throw'Missing the required parameter "body" when calling patchConversationSecureattributes';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/secureattributes","PATCH",{conversationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchConversationSummaryEngagements(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchConversationSummaryEngagements';if(i==null||i==="")throw'Missing the required parameter "summaryId" when calling patchConversationSummaryEngagements';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/summaries/{summaryId}/engagements","PATCH",{conversationId:e,summaryId:i},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchConversationSummaryFeedback(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchConversationSummaryFeedback';if(i==null||i==="")throw'Missing the required parameter "summaryId" when calling patchConversationSummaryFeedback';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/summaries/{summaryId}/feedback","PATCH",{conversationId:e,summaryId:i},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchConversationUtilizationlabel(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchConversationUtilizationlabel';if(i==null)throw'Missing the required parameter "body" when calling patchConversationUtilizationlabel';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/utilizationlabel","PATCH",{conversationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchConversationsAftercallworkConversationIdParticipantCommunication(e,i,n,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchConversationsAftercallworkConversationIdParticipantCommunication';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling patchConversationsAftercallworkConversationIdParticipantCommunication';if(n==null||n==="")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:i,communicationId:n},{},{},{},a,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}patchConversationsCall(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchConversationsCall';if(i==null)throw'Missing the required parameter "body" when calling patchConversationsCall';return this.apiClient.callApi("/api/v2/conversations/calls/{conversationId}","PATCH",{conversationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchConversationsCallConference(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchConversationsCallConference';if(i==null)throw'Missing the required parameter "body" when calling patchConversationsCallConference';return this.apiClient.callApi("/api/v2/conversations/calls/{conversationId}/conference","PATCH",{conversationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchConversationsCallParticipant(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchConversationsCallParticipant';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling patchConversationsCallParticipant';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchConversationsCallParticipantAttributes(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchConversationsCallParticipantAttributes';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling patchConversationsCallParticipantAttributes';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchConversationsCallParticipantCommunication(e,i,n,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchConversationsCallParticipantCommunication';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling patchConversationsCallParticipantCommunication';if(n==null||n==="")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:i,communicationId:n},{},{},{},a,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}patchConversationsCallParticipantCommunicationPostflowaction(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchConversationsCallParticipantCommunicationPostflowaction';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling patchConversationsCallParticipantCommunicationPostflowaction';if(n==null||n==="")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:i,communicationId:n},{},{},{},a.body,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchConversationsCallParticipantConsult(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchConversationsCallParticipantConsult';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling patchConversationsCallParticipantConsult';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchConversationsCallParticipantUserUserId(e,i,n,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchConversationsCallParticipantUserUserId';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling patchConversationsCallParticipantUserUserId';if(n==null||n==="")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:i,userId:n},{},{},{},a,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}patchConversationsCallback(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchConversationsCallback';if(i==null)throw'Missing the required parameter "body" when calling patchConversationsCallback';return this.apiClient.callApi("/api/v2/conversations/callbacks/{conversationId}","PATCH",{conversationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchConversationsCallbackParticipant(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchConversationsCallbackParticipant';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling patchConversationsCallbackParticipant';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchConversationsCallbackParticipantAttributes(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchConversationsCallbackParticipantAttributes';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling patchConversationsCallbackParticipantAttributes';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchConversationsCallbackParticipantCommunication(e,i,n,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchConversationsCallbackParticipantCommunication';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling patchConversationsCallbackParticipantCommunication';if(n==null||n==="")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:i,communicationId:n},{},{},{},a,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}patchConversationsCallbacks(e,i){if(i=i||{},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"],i.customHeaders)}patchConversationsChat(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchConversationsChat';if(i==null)throw'Missing the required parameter "body" when calling patchConversationsChat';return this.apiClient.callApi("/api/v2/conversations/chats/{conversationId}","PATCH",{conversationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchConversationsChatParticipant(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchConversationsChatParticipant';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling patchConversationsChatParticipant';if(n==null)throw'Missing the required parameter "body" when calling patchConversationsChatParticipant';return this.apiClient.callApi("/api/v2/conversations/chats/{conversationId}/participants/{participantId}","PATCH",{conversationId:e,participantId:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchConversationsChatParticipantAttributes(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchConversationsChatParticipantAttributes';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling patchConversationsChatParticipantAttributes';if(n==null)throw'Missing the required parameter "body" when calling patchConversationsChatParticipantAttributes';return this.apiClient.callApi("/api/v2/conversations/chats/{conversationId}/participants/{participantId}/attributes","PATCH",{conversationId:e,participantId:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchConversationsChatParticipantCommunication(e,i,n,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchConversationsChatParticipantCommunication';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling patchConversationsChatParticipantCommunication';if(n==null||n==="")throw'Missing the required parameter "communicationId" when calling patchConversationsChatParticipantCommunication';if(a==null)throw'Missing the required parameter "body" when calling patchConversationsChatParticipantCommunication';return this.apiClient.callApi("/api/v2/conversations/chats/{conversationId}/participants/{participantId}/communications/{communicationId}","PATCH",{conversationId:e,participantId:i,communicationId:n},{},{},{},a,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}patchConversationsCobrowsesession(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchConversationsCobrowsesession';if(i==null)throw'Missing the required parameter "body" when calling patchConversationsCobrowsesession';return this.apiClient.callApi("/api/v2/conversations/cobrowsesessions/{conversationId}","PATCH",{conversationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchConversationsCobrowsesessionParticipant(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchConversationsCobrowsesessionParticipant';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling patchConversationsCobrowsesessionParticipant';return this.apiClient.callApi("/api/v2/conversations/cobrowsesessions/{conversationId}/participants/{participantId}","PATCH",{conversationId:e,participantId:i},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchConversationsCobrowsesessionParticipantAttributes(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchConversationsCobrowsesessionParticipantAttributes';if(i==null||i==="")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:i},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchConversationsCobrowsesessionParticipantCommunication(e,i,n,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchConversationsCobrowsesessionParticipantCommunication';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling patchConversationsCobrowsesessionParticipantCommunication';if(n==null||n==="")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:i,communicationId:n},{},{},{},a,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}patchConversationsEmail(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchConversationsEmail';if(i==null)throw'Missing the required parameter "body" when calling patchConversationsEmail';return this.apiClient.callApi("/api/v2/conversations/emails/{conversationId}","PATCH",{conversationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchConversationsEmailMessagesDraft(e,i){if(i=i||{},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:i.autoFill,discard:i.discard},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}patchConversationsEmailParticipant(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchConversationsEmailParticipant';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling patchConversationsEmailParticipant';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchConversationsEmailParticipantAttributes(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchConversationsEmailParticipantAttributes';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling patchConversationsEmailParticipantAttributes';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchConversationsEmailParticipantCommunication(e,i,n,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchConversationsEmailParticipantCommunication';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling patchConversationsEmailParticipantCommunication';if(n==null||n==="")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:i,communicationId:n},{},{},{},a,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}patchConversationsEmailParticipantParkingstate(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchConversationsEmailParticipantParkingstate';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling patchConversationsEmailParticipantParkingstate';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchConversationsMessage(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchConversationsMessage';if(i==null)throw'Missing the required parameter "body" when calling patchConversationsMessage';return this.apiClient.callApi("/api/v2/conversations/messages/{conversationId}","PATCH",{conversationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchConversationsMessageParticipant(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchConversationsMessageParticipant';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling patchConversationsMessageParticipant';return this.apiClient.callApi("/api/v2/conversations/messages/{conversationId}/participants/{participantId}","PATCH",{conversationId:e,participantId:i},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchConversationsMessageParticipantAttributes(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchConversationsMessageParticipantAttributes';if(i==null||i==="")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:i},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchConversationsMessageParticipantCommunication(e,i,n,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchConversationsMessageParticipantCommunication';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling patchConversationsMessageParticipantCommunication';if(n==null||n==="")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:i,communicationId:n},{},{},{},a,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}patchConversationsMessageParticipantParkingstate(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchConversationsMessageParticipantParkingstate';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling patchConversationsMessageParticipantParkingstate';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchConversationsMessagingIntegrationsAppleIntegrationId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "integrationId" when calling patchConversationsMessagingIntegrationsAppleIntegrationId';if(i==null)throw'Missing the required parameter "body" when calling patchConversationsMessagingIntegrationsAppleIntegrationId';return this.apiClient.callApi("/api/v2/conversations/messaging/integrations/apple/{integrationId}","PATCH",{integrationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchConversationsMessagingIntegrationsFacebookIntegrationId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "integrationId" when calling patchConversationsMessagingIntegrationsFacebookIntegrationId';if(i==null)throw'Missing the required parameter "body" when calling patchConversationsMessagingIntegrationsFacebookIntegrationId';return this.apiClient.callApi("/api/v2/conversations/messaging/integrations/facebook/{integrationId}","PATCH",{integrationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchConversationsMessagingIntegrationsInstagramIntegrationId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "integrationId" when calling patchConversationsMessagingIntegrationsInstagramIntegrationId';if(i==null)throw'Missing the required parameter "body" when calling patchConversationsMessagingIntegrationsInstagramIntegrationId';return this.apiClient.callApi("/api/v2/conversations/messaging/integrations/instagram/{integrationId}","PATCH",{integrationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchConversationsMessagingIntegrationsOpenExtensionsGooglebusinessprofileIntegrationId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "integrationId" when calling patchConversationsMessagingIntegrationsOpenExtensionsGooglebusinessprofileIntegrationId';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchConversationsMessagingIntegrationsOpenIntegrationId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "integrationId" when calling patchConversationsMessagingIntegrationsOpenIntegrationId';if(i==null)throw'Missing the required parameter "body" when calling patchConversationsMessagingIntegrationsOpenIntegrationId';return this.apiClient.callApi("/api/v2/conversations/messaging/integrations/open/{integrationId}","PATCH",{integrationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchConversationsMessagingIntegrationsTwitterIntegrationId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "integrationId" when calling patchConversationsMessagingIntegrationsTwitterIntegrationId';if(i==null)throw'Missing the required parameter "body" when calling patchConversationsMessagingIntegrationsTwitterIntegrationId';return this.apiClient.callApi("/api/v2/conversations/messaging/integrations/twitter/{integrationId}","PATCH",{integrationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchConversationsMessagingIntegrationsWhatsappEmbeddedsignupIntegrationId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "integrationId" when calling patchConversationsMessagingIntegrationsWhatsappEmbeddedsignupIntegrationId';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchConversationsMessagingIntegrationsWhatsappIntegrationId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "integrationId" when calling patchConversationsMessagingIntegrationsWhatsappIntegrationId';if(i==null)throw'Missing the required parameter "body" when calling patchConversationsMessagingIntegrationsWhatsappIntegrationId';return this.apiClient.callApi("/api/v2/conversations/messaging/integrations/whatsapp/{integrationId}","PATCH",{integrationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchConversationsMessagingSetting(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "messageSettingId" when calling patchConversationsMessagingSetting';if(i==null)throw'Missing the required parameter "body" when calling patchConversationsMessagingSetting';return this.apiClient.callApi("/api/v2/conversations/messaging/settings/{messageSettingId}","PATCH",{messageSettingId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchConversationsMessagingSupportedcontentSupportedContentId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "supportedContentId" when calling patchConversationsMessagingSupportedcontentSupportedContentId';if(i==null)throw'Missing the required parameter "body" when calling patchConversationsMessagingSupportedcontentSupportedContentId';return this.apiClient.callApi("/api/v2/conversations/messaging/supportedcontent/{supportedContentId}","PATCH",{supportedContentId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchConversationsSettings(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsConversationDetailsProperties(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postAnalyticsConversationDetailsProperties';if(i==null)throw'Missing the required parameter "body" when calling postAnalyticsConversationDetailsProperties';return this.apiClient.callApi("/api/v2/analytics/conversations/{conversationId}/details/properties","POST",{conversationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postAnalyticsConversationsActivityQuery(e,i){if(i=i||{},e==null)throw'Missing the required parameter "body" when calling postAnalyticsConversationsActivityQuery';return this.apiClient.callApi("/api/v2/analytics/conversations/activity/query","POST",{},{pageSize:i.pageSize,pageNumber:i.pageNumber},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postAnalyticsConversationsAggregatesJobs(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsConversationsAggregatesQuery(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsConversationsDetailsJobs(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsConversationsDetailsQuery(e,i){if(i=i||{},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"],i.customHeaders)}postConversationAssign(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationAssign';if(i==null)throw'Missing the required parameter "body" when calling postConversationAssign';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/assign","POST",{conversationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postConversationBarge(e,i){if(i=i||{},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"],i.customHeaders)}postConversationCobrowse(e,i){if(i=i||{},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"],i.customHeaders)}postConversationCommunicationAgentchecklist(e,i,n,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationCommunicationAgentchecklist';if(i==null||i==="")throw'Missing the required parameter "communicationId" when calling postConversationCommunicationAgentchecklist';if(n==null||n==="")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:i,agentChecklistId:n},{},{},{},a,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}postConversationCommunicationAgentchecklistAgentaction(e,i,n,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationCommunicationAgentchecklistAgentaction';if(i==null||i==="")throw'Missing the required parameter "communicationId" when calling postConversationCommunicationAgentchecklistAgentaction';if(n==null||n==="")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:i,agentChecklistId:n},{},{},{},a,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}postConversationCommunicationAgentchecklistJobs(e,i,n,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationCommunicationAgentchecklistJobs';if(i==null||i==="")throw'Missing the required parameter "communicationId" when calling postConversationCommunicationAgentchecklistJobs';if(n==null||n==="")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:i,agentChecklistId:n},{},{},{},a,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}postConversationCommunicationAgentchecklistsFinalize(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationCommunicationAgentchecklistsFinalize';if(i==null||i==="")throw'Missing the required parameter "communicationId" when calling postConversationCommunicationAgentchecklistsFinalize';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postConversationCommunicationInternalmessages(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationCommunicationInternalmessages';if(i==null||i==="")throw'Missing the required parameter "communicationId" when calling postConversationCommunicationInternalmessages';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postConversationDisconnect(e,i){if(i=i||{},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"],i.customHeaders)}postConversationParticipantCallbacks(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationParticipantCallbacks';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling postConversationParticipantCallbacks';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/participants/{participantId}/callbacks","POST",{conversationId:e,participantId:i},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postConversationParticipantDigits(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationParticipantDigits';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling postConversationParticipantDigits';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/participants/{participantId}/digits","POST",{conversationId:e,participantId:i},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postConversationParticipantInternalmessagesUsersCommunications(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationParticipantInternalmessagesUsersCommunications';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling postConversationParticipantInternalmessagesUsersCommunications';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postConversationParticipantReplace(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationParticipantReplace';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling postConversationParticipantReplace';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postConversationParticipantReplaceAgent(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationParticipantReplaceAgent';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling postConversationParticipantReplaceAgent';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postConversationParticipantReplaceContactExternal(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationParticipantReplaceContactExternal';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling postConversationParticipantReplaceContactExternal';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postConversationParticipantReplaceExternal(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationParticipantReplaceExternal';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling postConversationParticipantReplaceExternal';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postConversationParticipantReplaceQueue(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationParticipantReplaceQueue';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling postConversationParticipantReplaceQueue';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postConversationParticipantSecureivrsessions(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationParticipantSecureivrsessions';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling postConversationParticipantSecureivrsessions';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/participants/{participantId}/secureivrsessions","POST",{conversationId:e,participantId:i},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postConversationParticipantTransfer(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationParticipantTransfer';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling postConversationParticipantTransfer';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postConversationSuggestionEngagement(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationSuggestionEngagement';if(i==null||i==="")throw'Missing the required parameter "suggestionId" when calling postConversationSuggestionEngagement';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postConversationSuggestionsFeedback(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationSuggestionsFeedback';if(i==null)throw'Missing the required parameter "body" when calling postConversationSuggestionsFeedback';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/suggestions/feedback","POST",{conversationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postConversationSummaryFeedback(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationSummaryFeedback';if(i==null||i==="")throw'Missing the required parameter "summaryId" when calling postConversationSummaryFeedback';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/summaries/{summaryId}/feedback","POST",{conversationId:e,summaryId:i},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postConversationsCall(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsCall';if(i==null)throw'Missing the required parameter "body" when calling postConversationsCall';return this.apiClient.callApi("/api/v2/conversations/calls/{conversationId}","POST",{conversationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postConversationsCallParticipantBarge(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsCallParticipantBarge';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postConversationsCallParticipantCoach(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsCallParticipantCoach';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postConversationsCallParticipantCommunicationWrapup(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsCallParticipantCommunicationWrapup';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling postConversationsCallParticipantCommunicationWrapup';if(n==null||n==="")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:i,communicationId:n},{},{},{},a.body,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postConversationsCallParticipantConsult(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsCallParticipantConsult';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling postConversationsCallParticipantConsult';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postConversationsCallParticipantConsultAgent(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsCallParticipantConsultAgent';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling postConversationsCallParticipantConsultAgent';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postConversationsCallParticipantConsultContactExternal(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsCallParticipantConsultContactExternal';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling postConversationsCallParticipantConsultContactExternal';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postConversationsCallParticipantConsultExternal(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsCallParticipantConsultExternal';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling postConversationsCallParticipantConsultExternal';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postConversationsCallParticipantConsultQueue(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsCallParticipantConsultQueue';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling postConversationsCallParticipantConsultQueue';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postConversationsCallParticipantMonitor(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsCallParticipantMonitor';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postConversationsCallParticipantReplace(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsCallParticipantReplace';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling postConversationsCallParticipantReplace';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postConversationsCallParticipantSnippetRecord(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsCallParticipantSnippetRecord';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling postConversationsCallParticipantSnippetRecord';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postConversationsCallParticipantVoiceConsult(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsCallParticipantVoiceConsult';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling postConversationsCallParticipantVoiceConsult';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postConversationsCallParticipants(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsCallParticipants';if(i==null)throw'Missing the required parameter "body" when calling postConversationsCallParticipants';return this.apiClient.callApi("/api/v2/conversations/calls/{conversationId}/participants","POST",{conversationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postConversationsCallParticipantsUserUserId(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsCallParticipantsUserUserId';if(i==null||i==="")throw'Missing the required parameter "userId" when calling postConversationsCallParticipantsUserUserId';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postConversationsCallbackParticipantCommunicationWrapup(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsCallbackParticipantCommunicationWrapup';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling postConversationsCallbackParticipantCommunicationWrapup';if(n==null||n==="")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:i,communicationId:n},{},{},{},a.body,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postConversationsCallbackParticipantReplace(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsCallbackParticipantReplace';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling postConversationsCallbackParticipantReplace';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postConversationsCallbacks(e,i){if(i=i||{},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"],i.customHeaders)}postConversationsCallbacksBulkDisconnect(e,i){if(i=i||{},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"],i.customHeaders)}postConversationsCallbacksBulkUpdate(e,i){if(i=i||{},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"],i.customHeaders)}postConversationsCalls(e,i){if(i=i||{},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"],i.customHeaders)}postConversationsCallsUserUserId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling postConversationsCallsUserUserId';if(i==null)throw'Missing the required parameter "body" when calling postConversationsCallsUserUserId';return this.apiClient.callApi("/api/v2/conversations/calls/user/{userId}","POST",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postConversationsChatCommunicationMessages(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsChatCommunicationMessages';if(i==null||i==="")throw'Missing the required parameter "communicationId" when calling postConversationsChatCommunicationMessages';if(n==null)throw'Missing the required parameter "body" when calling postConversationsChatCommunicationMessages';return this.apiClient.callApi("/api/v2/conversations/chats/{conversationId}/communications/{communicationId}/messages","POST",{conversationId:e,communicationId:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postConversationsChatCommunicationTyping(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsChatCommunicationTyping';if(i==null||i==="")throw'Missing the required parameter "communicationId" when calling postConversationsChatCommunicationTyping';return this.apiClient.callApi("/api/v2/conversations/chats/{conversationId}/communications/{communicationId}/typing","POST",{conversationId:e,communicationId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postConversationsChatParticipantCommunicationWrapup(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsChatParticipantCommunicationWrapup';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling postConversationsChatParticipantCommunicationWrapup';if(n==null||n==="")throw'Missing the required parameter "communicationId" when calling postConversationsChatParticipantCommunicationWrapup';return this.apiClient.callApi("/api/v2/conversations/chats/{conversationId}/participants/{participantId}/communications/{communicationId}/wrapup","POST",{conversationId:e,participantId:i,communicationId:n},{},{},{},a.body,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postConversationsChatParticipantReplace(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsChatParticipantReplace';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling postConversationsChatParticipantReplace';if(n==null)throw'Missing the required parameter "body" when calling postConversationsChatParticipantReplace';return this.apiClient.callApi("/api/v2/conversations/chats/{conversationId}/participants/{participantId}/replace","POST",{conversationId:e,participantId:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postConversationsChats(e,i){if(i=i||{},e==null)throw'Missing the required parameter "body" when calling postConversationsChats';return this.apiClient.callApi("/api/v2/conversations/chats","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postConversationsCobrowsesessionParticipantCommunicationWrapup(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsCobrowsesessionParticipantCommunicationWrapup';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling postConversationsCobrowsesessionParticipantCommunicationWrapup';if(n==null||n==="")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:i,communicationId:n},{},{},{},a.body,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postConversationsCobrowsesessionParticipantReplace(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsCobrowsesessionParticipantReplace';if(i==null||i==="")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:i},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postConversationsCustomattributesSchemas(e,i){if(i=i||{},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"],i.customHeaders)}postConversationsCustomattributesSearch(e,i){if(i=i||{},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"],i.customHeaders)}postConversationsEmailInboundmessages(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsEmailInboundmessages';if(i==null)throw'Missing the required parameter "body" when calling postConversationsEmailInboundmessages';return this.apiClient.callApi("/api/v2/conversations/emails/{conversationId}/inboundmessages","POST",{conversationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postConversationsEmailMessages(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsEmailMessages';if(i==null)throw'Missing the required parameter "body" when calling postConversationsEmailMessages';return this.apiClient.callApi("/api/v2/conversations/emails/{conversationId}/messages","POST",{conversationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postConversationsEmailMessagesDraftAttachmentsCopy(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsEmailMessagesDraftAttachmentsCopy';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postConversationsEmailParticipantCommunicationWrapup(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsEmailParticipantCommunicationWrapup';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling postConversationsEmailParticipantCommunicationWrapup';if(n==null||n==="")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:i,communicationId:n},{},{},{},a.body,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postConversationsEmailParticipantReplace(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsEmailParticipantReplace';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling postConversationsEmailParticipantReplace';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postConversationsEmailReconnect(e,i){if(i=i||{},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"],i.customHeaders)}postConversationsEmails(e,i){if(i=i||{},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"],i.customHeaders)}postConversationsEmailsAgentless(e,i){if(i=i||{},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"],i.customHeaders)}postConversationsFaxes(e,i){if(i=i||{},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"],i.customHeaders)}postConversationsKeyconfigurations(e,i){if(i=i||{},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"],i.customHeaders)}postConversationsKeyconfigurationsValidate(e,i){if(i=i||{},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"],i.customHeaders)}postConversationsMessageCommunicationMessages(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsMessageCommunicationMessages';if(i==null||i==="")throw'Missing the required parameter "communicationId" when calling postConversationsMessageCommunicationMessages';if(n==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:i},{useNormalizedMessage:a.useNormalizedMessage},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postConversationsMessageCommunicationMessagesMedia(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsMessageCommunicationMessagesMedia';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postConversationsMessageCommunicationMessagesMediaUploads(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsMessageCommunicationMessagesMediaUploads';if(i==null||i==="")throw'Missing the required parameter "communicationId" when calling postConversationsMessageCommunicationMessagesMediaUploads';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postConversationsMessageCommunicationSocialmediaMessages(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsMessageCommunicationSocialmediaMessages';if(i==null||i==="")throw'Missing the required parameter "communicationId" when calling postConversationsMessageCommunicationSocialmediaMessages';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postConversationsMessageCommunicationTyping(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsMessageCommunicationTyping';if(i==null||i==="")throw'Missing the required parameter "communicationId" when calling postConversationsMessageCommunicationTyping';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postConversationsMessageInboundOpenEvent(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "integrationId" when calling postConversationsMessageInboundOpenEvent';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postConversationsMessageInboundOpenMessage(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "integrationId" when calling postConversationsMessageInboundOpenMessage';if(i==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:n.prefetchConversationId},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postConversationsMessageInboundOpenReceipt(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "integrationId" when calling postConversationsMessageInboundOpenReceipt';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postConversationsMessageInboundOpenStructuredResponse(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "integrationId" when calling postConversationsMessageInboundOpenStructuredResponse';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postConversationsMessageMessagesBulk(e,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsMessageMessagesBulk';return this.apiClient.callApi("/api/v2/conversations/messages/{conversationId}/messages/bulk","POST",{conversationId:e},{useNormalizedMessage:i.useNormalizedMessage},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postConversationsMessageParticipantCommunicationWrapup(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsMessageParticipantCommunicationWrapup';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling postConversationsMessageParticipantCommunicationWrapup';if(n==null||n==="")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:i,communicationId:n},{},{},{},a.body,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postConversationsMessageParticipantMonitor(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsMessageParticipantMonitor';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postConversationsMessageParticipantReplace(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsMessageParticipantReplace';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling postConversationsMessageParticipantReplace';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postConversationsMessages(e,i){if(i=i||{},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"],i.customHeaders)}postConversationsMessagesAgentless(e,i){if(i=i||{},e==null)throw'Missing the required parameter "body" when calling postConversationsMessagesAgentless';return this.apiClient.callApi("/api/v2/conversations/messages/agentless","POST",{},{useNormalizedMessage:i.useNormalizedMessage},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postConversationsMessagesInboundOpen(e,i){if(i=i||{},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"],i.customHeaders)}postConversationsMessagingIntegrationsApple(e,i){if(i=i||{},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"],i.customHeaders)}postConversationsMessagingIntegrationsFacebook(e,i){if(i=i||{},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"],i.customHeaders)}postConversationsMessagingIntegrationsInstagram(e,i){if(i=i||{},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"],i.customHeaders)}postConversationsMessagingIntegrationsOpen(e,i){if(i=i||{},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"],i.customHeaders)}postConversationsMessagingIntegrationsOpenExtensionsGooglebusinessprofile(e,i){if(i=i||{},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"],i.customHeaders)}postConversationsMessagingIntegrationsOpenExtensionsGooglebusinessprofileTokens(e,i){if(i=i||{},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"],i.customHeaders)}postConversationsMessagingIntegrationsTwitter(e,i){if(i=i||{},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"],i.customHeaders)}postConversationsMessagingIntegrationsWhatsapp(e,i){if(i=i||{},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"],i.customHeaders)}postConversationsMessagingIntegrationsWhatsappEmbeddedsignup(e,i){if(i=i||{},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"],i.customHeaders)}postConversationsMessagingSettings(e,i){if(i=i||{},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"],i.customHeaders)}postConversationsMessagingSupportedcontent(e,i){if(i=i||{},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"],i.customHeaders)}postConversationsParticipantsAttributesSearch(e,i){if(i=i||{},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"],i.customHeaders)}postConversationsScreenshareParticipantCommunicationWrapup(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsScreenshareParticipantCommunicationWrapup';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling postConversationsScreenshareParticipantCommunicationWrapup';if(n==null||n==="")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:i,communicationId:n},{},{},{},a.body,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postConversationsSocialParticipantCommunicationWrapup(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsSocialParticipantCommunicationWrapup';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling postConversationsSocialParticipantCommunicationWrapup';if(n==null||n==="")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:i,communicationId:n},{},{},{},a.body,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postConversationsVideoAgentconferenceCommunication(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsVideoAgentconferenceCommunication';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postConversationsVideoParticipantCommunicationWrapup(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationsVideoParticipantCommunicationWrapup';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling postConversationsVideoParticipantCommunicationWrapup';if(n==null||n==="")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:i,communicationId:n},{},{},{},a.body,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postConversationsVideosMeetings(e,i){if(i=i||{},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"],i.customHeaders)}putConversationCustomattributes(e,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling putConversationCustomattributes';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/customattributes","PUT",{conversationId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}putConversationCustomattributesBulk(e,i){if(i=i||{},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},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}putConversationParticipantFlaggedreason(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling putConversationParticipantFlaggedreason';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling putConversationParticipantFlaggedreason';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/participants/{participantId}/flaggedreason","PUT",{conversationId:e,participantId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putConversationSecureattributes(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling putConversationSecureattributes';if(i==null)throw'Missing the required parameter "body" when calling putConversationSecureattributes';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/secureattributes","PUT",{conversationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putConversationTags(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling putConversationTags';if(i==null)throw'Missing the required parameter "body" when calling putConversationTags';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/tags","PUT",{conversationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putConversationsCallParticipantCommunicationUuidata(e,i,n,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling putConversationsCallParticipantCommunicationUuidata';if(i==null||i==="")throw'Missing the required parameter "participantId" when calling putConversationsCallParticipantCommunicationUuidata';if(n==null||n==="")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:i,communicationId:n},{},{},{},a,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}putConversationsCallRecordingstate(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling putConversationsCallRecordingstate';if(i==null)throw'Missing the required parameter "body" when calling putConversationsCallRecordingstate';return this.apiClient.callApi("/api/v2/conversations/calls/{conversationId}/recordingstate","PUT",{conversationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putConversationsCallbackRecordingstate(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling putConversationsCallbackRecordingstate';if(i==null)throw'Missing the required parameter "body" when calling putConversationsCallbackRecordingstate';return this.apiClient.callApi("/api/v2/conversations/callbacks/{conversationId}/recordingstate","PUT",{conversationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putConversationsChatRecordingstate(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling putConversationsChatRecordingstate';if(i==null)throw'Missing the required parameter "body" when calling putConversationsChatRecordingstate';return this.apiClient.callApi("/api/v2/conversations/chats/{conversationId}/recordingstate","PUT",{conversationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putConversationsCobrowsesessionRecordingstate(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling putConversationsCobrowsesessionRecordingstate';if(i==null)throw'Missing the required parameter "body" when calling putConversationsCobrowsesessionRecordingstate';return this.apiClient.callApi("/api/v2/conversations/cobrowsesessions/{conversationId}/recordingstate","PUT",{conversationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putConversationsCustomattributesSchema(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "schemaId" when calling putConversationsCustomattributesSchema';if(i==null)throw'Missing the required parameter "body" when calling putConversationsCustomattributesSchema';return this.apiClient.callApi("/api/v2/conversations/customattributes/schemas/{schemaId}","PUT",{schemaId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putConversationsEmailMessagesDraft(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling putConversationsEmailMessagesDraft';if(i==null)throw'Missing the required parameter "body" when calling putConversationsEmailMessagesDraft';return this.apiClient.callApi("/api/v2/conversations/emails/{conversationId}/messages/draft","PUT",{conversationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putConversationsEmailRecordingstate(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling putConversationsEmailRecordingstate';if(i==null)throw'Missing the required parameter "body" when calling putConversationsEmailRecordingstate';return this.apiClient.callApi("/api/v2/conversations/emails/{conversationId}/recordingstate","PUT",{conversationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putConversationsKeyconfiguration(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "keyconfigurationsId" when calling putConversationsKeyconfiguration';if(i==null)throw'Missing the required parameter "body" when calling putConversationsKeyconfiguration';return this.apiClient.callApi("/api/v2/conversations/keyconfigurations/{keyconfigurationsId}","PUT",{keyconfigurationsId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putConversationsMessageRecordingstate(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling putConversationsMessageRecordingstate';if(i==null)throw'Missing the required parameter "body" when calling putConversationsMessageRecordingstate';return this.apiClient.callApi("/api/v2/conversations/messages/{conversationId}/recordingstate","PUT",{conversationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putConversationsMessagingIdentityresolutionIntegrationsAppleIntegrationId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "integrationId" when calling putConversationsMessagingIdentityresolutionIntegrationsAppleIntegrationId';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putConversationsMessagingIdentityresolutionIntegrationsFacebookIntegrationId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "integrationId" when calling putConversationsMessagingIdentityresolutionIntegrationsFacebookIntegrationId';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putConversationsMessagingIdentityresolutionIntegrationsInstagramIntegrationId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "integrationId" when calling putConversationsMessagingIdentityresolutionIntegrationsInstagramIntegrationId';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putConversationsMessagingIdentityresolutionIntegrationsOpenIntegrationId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "integrationId" when calling putConversationsMessagingIdentityresolutionIntegrationsOpenIntegrationId';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putConversationsMessagingIdentityresolutionIntegrationsTwitterIntegrationId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "integrationId" when calling putConversationsMessagingIdentityresolutionIntegrationsTwitterIntegrationId';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putConversationsMessagingIdentityresolutionIntegrationsWhatsappIntegrationId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "integrationId" when calling putConversationsMessagingIdentityresolutionIntegrationsWhatsappIntegrationId';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putConversationsMessagingSettingsDefault(e,i){if(i=i||{},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"],i.customHeaders)}putConversationsMessagingSupportedcontentDefault(e,i){if(i=i||{},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"],i.customHeaders)}putConversationsMessagingThreadingtimeline(e,i){if(i=i||{},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"],i.customHeaders)}putConversationsScreenshareRecordingstate(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling putConversationsScreenshareRecordingstate';if(i==null)throw'Missing the required parameter "body" when calling putConversationsScreenshareRecordingstate';return this.apiClient.callApi("/api/v2/conversations/screenshares/{conversationId}/recordingstate","PUT",{conversationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putConversationsSocialRecordingstate(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling putConversationsSocialRecordingstate';if(i==null)throw'Missing the required parameter "body" when calling putConversationsSocialRecordingstate';return this.apiClient.callApi("/api/v2/conversations/socials/{conversationId}/recordingstate","PUT",{conversationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putConversationsVideoRecordingstate(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling putConversationsVideoRecordingstate';if(i==null)throw'Missing the required parameter "body" when calling putConversationsVideoRecordingstate';return this.apiClient.callApi("/api/v2/conversations/videos/{conversationId}/recordingstate","PUT",{conversationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}},BA=class{constructor(e){this.apiClient=e||q.instance}getDataextensionsCoretype(e,i){if(i=i||{},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"],i.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)}},FA=class{constructor(e){this.apiClient=e||q.instance}deleteDataprivacyMaskingrule(e,i){if(i=i||{},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"],i.customHeaders)}getDataprivacyMaskingrule(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "ruleId" when calling patchDataprivacyMaskingrule';return this.apiClient.callApi("/api/v2/dataprivacy/maskingrules/{ruleId}","PATCH",{ruleId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postDataprivacyMaskingrules(e,i){if(i=i||{},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"],i.customHeaders)}postDataprivacyMaskingrulesValidate(e,i){if(i=i||{},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"],i.customHeaders)}},VA=class{constructor(e){this.apiClient=e||q.instance}getDownload(e,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "downloadId" when calling getDownload';return this.apiClient.callApi("/api/v2/downloads/{downloadId}","GET",{downloadId:e},{contentDisposition:i.contentDisposition,issueRedirect:i.issueRedirect,redirectToAuth:i.redirectToAuth},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}},JA=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)}},ZA=class{constructor(e){this.apiClient=e||q.instance}deleteEmployeeengagementCelebration(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "celebrationId" when calling patchEmployeeengagementCelebration';if(i==null)throw'Missing the required parameter "body" when calling patchEmployeeengagementCelebration';return this.apiClient.callApi("/api/v2/employeeengagement/celebrations/{celebrationId}","PATCH",{celebrationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postEmployeeengagementRecognitions(e,i){if(i=i||{},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"],i.customHeaders)}},KA=class{constructor(e){this.apiClient=e||q.instance}postEventsConversations(e,i){if(i=i||{},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"],i.customHeaders)}postEventsRoutingCustomkpiattributions(e,i){if(i=i||{},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"],i.customHeaders)}postEventsUsersPresence(e,i){if(i=i||{},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"],i.customHeaders)}postEventsUsersRoutingstatus(e,i){if(i=i||{},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"],i.customHeaders)}},QA=class{constructor(e){this.apiClient=e||q.instance}deleteExternalcontactsContact(e,i){if(i=i||{},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"],i.customHeaders)}deleteExternalcontactsContactNote(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "contactId" when calling deleteExternalcontactsContactNote';if(i==null||i==="")throw'Missing the required parameter "noteId" when calling deleteExternalcontactsContactNote';return this.apiClient.callApi("/api/v2/externalcontacts/contacts/{contactId}/notes/{noteId}","DELETE",{contactId:e,noteId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteExternalcontactsContactsSchema(e,i){if(i=i||{},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"],i.customHeaders)}deleteExternalcontactsExternalsource(e,i){if(i=i||{},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"],i.customHeaders)}deleteExternalcontactsImportCsvSetting(e,i){if(i=i||{},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"],i.customHeaders)}deleteExternalcontactsImportSetting(e,i){if(i=i||{},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"],i.customHeaders)}deleteExternalcontactsOrganization(e,i){if(i=i||{},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"],i.customHeaders)}deleteExternalcontactsOrganizationNote(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "externalOrganizationId" when calling deleteExternalcontactsOrganizationNote';if(i==null||i==="")throw'Missing the required parameter "noteId" when calling deleteExternalcontactsOrganizationNote';return this.apiClient.callApi("/api/v2/externalcontacts/organizations/{externalOrganizationId}/notes/{noteId}","DELETE",{externalOrganizationId:e,noteId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteExternalcontactsOrganizationTrustor(e,i){if(i=i||{},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"],i.customHeaders)}deleteExternalcontactsRelationship(e,i){if(i=i||{},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"],i.customHeaders)}getExternalcontactsContact(e,i){if(i=i||{},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(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getExternalcontactsContactIdentifiers(e,i){if(i=i||{},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"],i.customHeaders)}getExternalcontactsContactJourneySegments(e,i){if(i=i||{},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:i.includeMerged,limit:i.limit},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getExternalcontactsContactJourneySessions(e,i){if(i=i||{},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:i.pageSize,after:i.after,includeMerged:i.includeMerged},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getExternalcontactsContactNote(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "contactId" when calling getExternalcontactsContactNote';if(i==null||i==="")throw'Missing the required parameter "noteId" when calling getExternalcontactsContactNote';return this.apiClient.callApi("/api/v2/externalcontacts/contacts/{contactId}/notes/{noteId}","GET",{contactId:e,noteId:i},{expand:this.apiClient.buildCollectionParam(n.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getExternalcontactsContactNotes(e,i){if(i=i||{},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:i.pageSize,pageNumber:i.pageNumber,sortOrder:i.sortOrder,expand:this.apiClient.buildCollectionParam(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getExternalcontactsContactUnresolved(e,i){if(i=i||{},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(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getExternalcontactsContactsSchemaVersion(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "schemaId" when calling getExternalcontactsContactsSchemaVersion';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getExternalcontactsContactsSchemaVersions(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getExternalcontactsExternalsources(e){return e=e||{},this.apiClient.callApi("/api/v2/externalcontacts/externalsources","GET",{},{cursor:e.cursor,limit:e.limit,name:e.name,active:e.active},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getExternalcontactsImportCsvSetting(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getExternalcontactsImportCsvUploadPreview(e,i){if(i=i||{},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"],i.customHeaders)}getExternalcontactsImportJob(e,i){if(i=i||{},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(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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"],i.customHeaders)}getExternalcontactsImportSettings(e){return e=e||{},this.apiClient.callApi("/api/v2/externalcontacts/import/settings","GET",{},{after:e.after,pageSize:e.pageSize,sortOrder:e.sortOrder,name:e.name},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getExternalcontactsOrganization(e,i){if(i=i||{},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(i.expand,"multi"),includeTrustors:i.includeTrustors},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getExternalcontactsOrganizationContacts(e,i){if(i=i||{},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:i.pageSize,pageNumber:i.pageNumber,q:i.q,sortOrder:i.sortOrder,expand:this.apiClient.buildCollectionParam(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getExternalcontactsOrganizationIdentifiers(e,i){if(i=i||{},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"],i.customHeaders)}getExternalcontactsOrganizationNote(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "externalOrganizationId" when calling getExternalcontactsOrganizationNote';if(i==null||i==="")throw'Missing the required parameter "noteId" when calling getExternalcontactsOrganizationNote';return this.apiClient.callApi("/api/v2/externalcontacts/organizations/{externalOrganizationId}/notes/{noteId}","GET",{externalOrganizationId:e,noteId:i},{expand:this.apiClient.buildCollectionParam(n.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getExternalcontactsOrganizationNotes(e,i){if(i=i||{},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:i.pageSize,pageNumber:i.pageNumber,sortOrder:i.sortOrder,expand:this.apiClient.buildCollectionParam(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getExternalcontactsOrganizationRelationships(e,i){if(i=i||{},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:i.pageSize,pageNumber:i.pageNumber,expand:this.apiClient.buildCollectionParam(i.expand,"multi"),sortOrder:i.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getExternalcontactsOrganizations(e){return e=e||{},this.apiClient.callApi("/api/v2/externalcontacts/organizations","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,q:e.q,trustorId:this.apiClient.buildCollectionParam(e.trustorId,"multi"),sortOrder:e.sortOrder,expand:this.apiClient.buildCollectionParam(e.expand,"multi"),includeTrustors:e.includeTrustors,divisionIds:this.apiClient.buildCollectionParam(e.divisionIds,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getExternalcontactsOrganizationsSchema(e,i){if(i=i||{},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"],i.customHeaders)}getExternalcontactsOrganizationsSchemaVersion(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "schemaId" when calling getExternalcontactsOrganizationsSchemaVersion';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getExternalcontactsOrganizationsSchemaVersions(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getExternalcontactsReversewhitepageslookup(e,i){if(i=i||{},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(i.expand,"multi"),divisionId:i.divisionId},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "contactId" when calling patchExternalcontactsContact';if(i==null)throw'Missing the required parameter "body" when calling patchExternalcontactsContact';return this.apiClient.callApi("/api/v2/externalcontacts/contacts/{contactId}","PATCH",{contactId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchExternalcontactsContactIdentifiers(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "contactId" when calling patchExternalcontactsContactIdentifiers';if(i==null)throw'Missing the required parameter "body" when calling patchExternalcontactsContactIdentifiers';return this.apiClient.callApi("/api/v2/externalcontacts/contacts/{contactId}/identifiers","PATCH",{contactId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchExternalcontactsOrganizationIdentifiers(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "externalOrganizationId" when calling patchExternalcontactsOrganizationIdentifiers';if(i==null)throw'Missing the required parameter "body" when calling patchExternalcontactsOrganizationIdentifiers';return this.apiClient.callApi("/api/v2/externalcontacts/organizations/{externalOrganizationId}/identifiers","PATCH",{externalOrganizationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postExternalcontactsBulkContacts(e,i){if(i=i||{},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"],i.customHeaders)}postExternalcontactsBulkContactsAdd(e,i){if(i=i||{},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"],i.customHeaders)}postExternalcontactsBulkContactsDivisionviews(e,i){if(i=i||{},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"],i.customHeaders)}postExternalcontactsBulkContactsEnrich(e,i){if(i=i||{},e==null)throw'Missing the required parameter "body" when calling postExternalcontactsBulkContactsEnrich';return this.apiClient.callApi("/api/v2/externalcontacts/bulk/contacts/enrich","POST",{},{dryRun:i.dryRun},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postExternalcontactsBulkContactsRemove(e,i){if(i=i||{},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"],i.customHeaders)}postExternalcontactsBulkContactsUnresolved(e,i){if(i=i||{},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"],i.customHeaders)}postExternalcontactsBulkContactsUpdate(e,i){if(i=i||{},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"],i.customHeaders)}postExternalcontactsBulkNotes(e,i){if(i=i||{},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"],i.customHeaders)}postExternalcontactsBulkNotesAdd(e,i){if(i=i||{},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"],i.customHeaders)}postExternalcontactsBulkNotesRemove(e,i){if(i=i||{},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"],i.customHeaders)}postExternalcontactsBulkNotesUpdate(e,i){if(i=i||{},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"],i.customHeaders)}postExternalcontactsBulkOrganizations(e,i){if(i=i||{},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"],i.customHeaders)}postExternalcontactsBulkOrganizationsAdd(e,i){if(i=i||{},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"],i.customHeaders)}postExternalcontactsBulkOrganizationsDivisionviews(e,i){if(i=i||{},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"],i.customHeaders)}postExternalcontactsBulkOrganizationsEnrich(e,i){if(i=i||{},e==null)throw'Missing the required parameter "body" when calling postExternalcontactsBulkOrganizationsEnrich';return this.apiClient.callApi("/api/v2/externalcontacts/bulk/organizations/enrich","POST",{},{dryRun:i.dryRun},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postExternalcontactsBulkOrganizationsRemove(e,i){if(i=i||{},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"],i.customHeaders)}postExternalcontactsBulkOrganizationsUpdate(e,i){if(i=i||{},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"],i.customHeaders)}postExternalcontactsBulkRelationships(e,i){if(i=i||{},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"],i.customHeaders)}postExternalcontactsBulkRelationshipsAdd(e,i){if(i=i||{},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"],i.customHeaders)}postExternalcontactsBulkRelationshipsRemove(e,i){if(i=i||{},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"],i.customHeaders)}postExternalcontactsBulkRelationshipsUpdate(e,i){if(i=i||{},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"],i.customHeaders)}postExternalcontactsContactJourneySegments(e,i){if(i=i||{},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},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postExternalcontactsContactNotes(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "contactId" when calling postExternalcontactsContactNotes';if(i==null)throw'Missing the required parameter "body" when calling postExternalcontactsContactNotes';return this.apiClient.callApi("/api/v2/externalcontacts/contacts/{contactId}/notes","POST",{contactId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postExternalcontactsContactPromotion(e,i){if(i=i||{},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"],i.customHeaders)}postExternalcontactsContacts(e,i){if(i=i||{},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"],i.customHeaders)}postExternalcontactsContactsEnrich(e,i){if(i=i||{},e==null)throw'Missing the required parameter "body" when calling postExternalcontactsContactsEnrich';return this.apiClient.callApi("/api/v2/externalcontacts/contacts/enrich","POST",{},{dryRun:i.dryRun},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postExternalcontactsContactsExports(e,i){if(i=i||{},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"],i.customHeaders)}postExternalcontactsContactsMerge(e,i){if(i=i||{},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"],i.customHeaders)}postExternalcontactsContactsSchemas(e,i){if(i=i||{},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"],i.customHeaders)}postExternalcontactsExternalsources(e,i){if(i=i||{},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"],i.customHeaders)}postExternalcontactsIdentifierlookup(e,i){if(i=i||{},e==null)throw'Missing the required parameter "identifier" when calling postExternalcontactsIdentifierlookup';return this.apiClient.callApi("/api/v2/externalcontacts/identifierlookup","POST",{},{expand:this.apiClient.buildCollectionParam(i.expand,"multi")},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postExternalcontactsIdentifierlookupContacts(e,i){if(i=i||{},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(i.expand,"multi")},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postExternalcontactsIdentifierlookupOrganizations(e,i){if(i=i||{},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(i.expand,"multi")},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postExternalcontactsImportCsvJobs(e,i){if(i=i||{},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"],i.customHeaders)}postExternalcontactsImportCsvSettings(e,i){if(i=i||{},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"],i.customHeaders)}postExternalcontactsImportCsvUploads(e,i){if(i=i||{},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"],i.customHeaders)}postExternalcontactsImportJobs(e,i){if(i=i||{},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"],i.customHeaders)}postExternalcontactsImportSettings(e,i){if(i=i||{},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"],i.customHeaders)}postExternalcontactsMergeContacts(e,i){if(i=i||{},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"],i.customHeaders)}postExternalcontactsOrganizationNotes(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "externalOrganizationId" when calling postExternalcontactsOrganizationNotes';if(i==null)throw'Missing the required parameter "body" when calling postExternalcontactsOrganizationNotes';return this.apiClient.callApi("/api/v2/externalcontacts/organizations/{externalOrganizationId}/notes","POST",{externalOrganizationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postExternalcontactsOrganizations(e,i){if(i=i||{},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"],i.customHeaders)}postExternalcontactsOrganizationsEnrich(e,i){if(i=i||{},e==null)throw'Missing the required parameter "body" when calling postExternalcontactsOrganizationsEnrich';return this.apiClient.callApi("/api/v2/externalcontacts/organizations/enrich","POST",{},{dryRun:i.dryRun},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postExternalcontactsOrganizationsSchemas(e,i){if(i=i||{},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"],i.customHeaders)}postExternalcontactsRelationships(e,i){if(i=i||{},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"],i.customHeaders)}putExternalcontactsContact(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "contactId" when calling putExternalcontactsContact';if(i==null)throw'Missing the required parameter "body" when calling putExternalcontactsContact';return this.apiClient.callApi("/api/v2/externalcontacts/contacts/{contactId}","PUT",{contactId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putExternalcontactsContactNote(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "contactId" when calling putExternalcontactsContactNote';if(i==null||i==="")throw'Missing the required parameter "noteId" when calling putExternalcontactsContactNote';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}putExternalcontactsContactsSchema(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "schemaId" when calling putExternalcontactsContactsSchema';if(i==null)throw'Missing the required parameter "body" when calling putExternalcontactsContactsSchema';return this.apiClient.callApi("/api/v2/externalcontacts/contacts/schemas/{schemaId}","PUT",{schemaId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putExternalcontactsConversation(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling putExternalcontactsConversation';if(i==null)throw'Missing the required parameter "body" when calling putExternalcontactsConversation';return this.apiClient.callApi("/api/v2/externalcontacts/conversations/{conversationId}","PUT",{conversationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putExternalcontactsExternalsource(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "externalSourceId" when calling putExternalcontactsExternalsource';if(i==null)throw'Missing the required parameter "body" when calling putExternalcontactsExternalsource';return this.apiClient.callApi("/api/v2/externalcontacts/externalsources/{externalSourceId}","PUT",{externalSourceId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putExternalcontactsImportCsvSetting(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "settingsId" when calling putExternalcontactsImportCsvSetting';if(i==null)throw'Missing the required parameter "body" when calling putExternalcontactsImportCsvSetting';return this.apiClient.callApi("/api/v2/externalcontacts/import/csv/settings/{settingsId}","PUT",{settingsId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putExternalcontactsImportJob(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "jobId" when calling putExternalcontactsImportJob';if(i==null)throw'Missing the required parameter "body" when calling putExternalcontactsImportJob';return this.apiClient.callApi("/api/v2/externalcontacts/import/jobs/{jobId}","PUT",{jobId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putExternalcontactsImportSetting(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "settingsId" when calling putExternalcontactsImportSetting';if(i==null)throw'Missing the required parameter "body" when calling putExternalcontactsImportSetting';return this.apiClient.callApi("/api/v2/externalcontacts/import/settings/{settingsId}","PUT",{settingsId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putExternalcontactsOrganization(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "externalOrganizationId" when calling putExternalcontactsOrganization';if(i==null)throw'Missing the required parameter "body" when calling putExternalcontactsOrganization';return this.apiClient.callApi("/api/v2/externalcontacts/organizations/{externalOrganizationId}","PUT",{externalOrganizationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putExternalcontactsOrganizationNote(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "externalOrganizationId" when calling putExternalcontactsOrganizationNote';if(i==null||i==="")throw'Missing the required parameter "noteId" when calling putExternalcontactsOrganizationNote';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}putExternalcontactsOrganizationTrustorTrustorId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "externalOrganizationId" when calling putExternalcontactsOrganizationTrustorTrustorId';if(i==null||i==="")throw'Missing the required parameter "trustorId" when calling putExternalcontactsOrganizationTrustorTrustorId';return this.apiClient.callApi("/api/v2/externalcontacts/organizations/{externalOrganizationId}/trustor/{trustorId}","PUT",{externalOrganizationId:e,trustorId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putExternalcontactsOrganizationsSchema(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "schemaId" when calling putExternalcontactsOrganizationsSchema';if(i==null)throw'Missing the required parameter "body" when calling putExternalcontactsOrganizationsSchema';return this.apiClient.callApi("/api/v2/externalcontacts/organizations/schemas/{schemaId}","PUT",{schemaId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putExternalcontactsRelationship(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "relationshipId" when calling putExternalcontactsRelationship';if(i==null)throw'Missing the required parameter "body" when calling putExternalcontactsRelationship';return this.apiClient.callApi("/api/v2/externalcontacts/relationships/{relationshipId}","PUT",{relationshipId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}},YA=class{constructor(e){this.apiClient=e||q.instance}deleteFaxDocument(e,i){if(i=i||{},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"],i.customHeaders)}getFaxDocument(e,i){if(i=i||{},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"],i.customHeaders)}getFaxDocumentContent(e,i){if(i=i||{},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"],i.customHeaders)}getFaxDocuments(e){return e=e||{},this.apiClient.callApi("/api/v2/fax/documents","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getFaxSettings(e){return e=e||{},this.apiClient.callApi("/api/v2/fax/settings","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getFaxSummary(e){return e=e||{},this.apiClient.callApi("/api/v2/fax/summary","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}putFaxDocument(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "documentId" when calling putFaxDocument';if(i==null)throw'Missing the required parameter "body" when calling putFaxDocument';return this.apiClient.callApi("/api/v2/fax/documents/{documentId}","PUT",{documentId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putFaxSettings(e){return e=e||{},this.apiClient.callApi("/api/v2/fax/settings","PUT",{},{},{},{},e.body,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}},XA=class{constructor(e){this.apiClient=e||q.instance}deleteAnalyticsFlowsAggregatesJob(e,i){if(i=i||{},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"],i.customHeaders)}getAnalyticsFlowsAggregatesJob(e,i){if(i=i||{},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"],i.customHeaders)}getAnalyticsFlowsAggregatesJobResults(e,i){if(i=i||{},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:i.cursor},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postAnalyticsFlowsActivityQuery(e,i){if(i=i||{},e==null)throw'Missing the required parameter "body" when calling postAnalyticsFlowsActivityQuery';return this.apiClient.callApi("/api/v2/analytics/flows/activity/query","POST",{},{pageSize:i.pageSize,pageNumber:i.pageNumber},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postAnalyticsFlowsAggregatesJobs(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsFlowsAggregatesQuery(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsFlowsObservationsQuery(e,i){if(i=i||{},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"],i.customHeaders)}},eb=class{constructor(e){this.apiClient=e||q.instance}deleteEmployeeperformanceExternalmetricsDefinition(e,i){if(i=i||{},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"],i.customHeaders)}deleteGamificationContest(e,i){if(i=i||{},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"],i.customHeaders)}getEmployeeperformanceExternalmetricsDefinition(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getGamificationContestAgentsScores(e,i){if(i=i||{},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:i.pageNumber,pageSize:i.pageSize,workday:i.workday,returnsView:i.returnsView},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getGamificationContestAgentsScoresMe(e,i){if(i=i||{},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:i.pageNumber,pageSize:i.pageSize,workday:i.workday,returnsView:i.returnsView},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getGamificationContestAgentsScoresTrends(e,i){if(i=i||{},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"],i.customHeaders)}getGamificationContestAgentsScoresTrendsMe(e,i){if(i=i||{},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"],i.customHeaders)}getGamificationContestPrizeimage(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "contestId" when calling getGamificationContestPrizeimage';if(i==null||i==="")throw'Missing the required parameter "prizeImageId" when calling getGamificationContestPrizeimage';return this.apiClient.callApi("/api/v2/gamification/contests/{contestId}/prizeimages/{prizeImageId}","GET",{contestId:e,prizeImageId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.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,i,n,a,r,s){if(s=s||{},e==null)throw'Missing the required parameter "filterType" when calling getGamificationInsights';if(i==null)throw'Missing the required parameter "filterId" when calling getGamificationInsights';if(n==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:i,granularity:n,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,i,n,a,r,s){if(s=s||{},e==null)throw'Missing the required parameter "filterType" when calling getGamificationInsightsDetails';if(i==null)throw'Missing the required parameter "filterId" when calling getGamificationInsightsDetails';if(n==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:i,granularity:n,comparativePeriodStartWorkday:a,primaryPeriodStartWorkday:r},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],s.customHeaders)}getGamificationInsightsGroupsTrends(e,i,n,a,r,s,o,l){if(l=l||{},e==null)throw'Missing the required parameter "filterType" when calling getGamificationInsightsGroupsTrends';if(i==null)throw'Missing the required parameter "filterId" when calling getGamificationInsightsGroupsTrends';if(n==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:i,granularity:n,comparativePeriodStartWorkday:a,comparativePeriodEndWorkday:r,primaryPeriodStartWorkday:s,primaryPeriodEndWorkday:o},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],l.customHeaders)}getGamificationInsightsGroupsTrendsAll(e,i,n,a,r,s,o,l){if(l=l||{},e==null)throw'Missing the required parameter "filterType" when calling getGamificationInsightsGroupsTrendsAll';if(i==null)throw'Missing the required parameter "filterId" when calling getGamificationInsightsGroupsTrendsAll';if(n==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:i,granularity:n,comparativePeriodStartWorkday:a,comparativePeriodEndWorkday:r,primaryPeriodStartWorkday:s,primaryPeriodEndWorkday:o},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],l.customHeaders)}getGamificationInsightsManagers(e,i,n,a,r){if(r=r||{},e==null)throw'Missing the required parameter "filterType" when calling getGamificationInsightsManagers';if(i==null)throw'Missing the required parameter "filterId" when calling getGamificationInsightsManagers';if(n==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:i,granularity:n,startWorkday:a,pageSize:r.pageSize,pageNumber:r.pageNumber},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}getGamificationInsightsMembers(e,i,n,a,r){if(r=r||{},e==null)throw'Missing the required parameter "filterType" when calling getGamificationInsightsMembers';if(i==null)throw'Missing the required parameter "filterId" when calling getGamificationInsightsMembers';if(n==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:i,granularity:n,startWorkday:a,reportsTo:r.reportsTo},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}getGamificationInsightsRankings(e,i,n,a,r,s,o){if(o=o||{},e==null)throw'Missing the required parameter "filterType" when calling getGamificationInsightsRankings';if(i==null)throw'Missing the required parameter "filterId" when calling getGamificationInsightsRankings';if(n==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:i,granularity:n,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,i,n,a,r,s,o,l){if(l=l||{},e==null)throw'Missing the required parameter "filterType" when calling getGamificationInsightsTrends';if(i==null)throw'Missing the required parameter "filterId" when calling getGamificationInsightsTrends';if(n==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:i,granularity:n,comparativePeriodStartWorkday:a,comparativePeriodEndWorkday:r,primaryPeriodStartWorkday:s,primaryPeriodEndWorkday:o},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],l.customHeaders)}getGamificationInsightsUserDetails(e,i,n,a,r,s,o){if(o=o||{},e==null||e==="")throw'Missing the required parameter "userId" when calling getGamificationInsightsUserDetails';if(i==null)throw'Missing the required parameter "filterType" when calling getGamificationInsightsUserDetails';if(n==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:i,filterId:n,granularity:a,comparativePeriodStartWorkday:r,primaryPeriodStartWorkday:s},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],o.customHeaders)}getGamificationInsightsUserTrends(e,i,n,a,r,s,o,l,u){if(u=u||{},e==null||e==="")throw'Missing the required parameter "userId" when calling getGamificationInsightsUserTrends';if(i==null)throw'Missing the required parameter "filterType" when calling getGamificationInsightsUserTrends';if(n==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:i,filterId:n,granularity:a,comparativePeriodStartWorkday:r,comparativePeriodEndWorkday:s,primaryPeriodStartWorkday:o,primaryPeriodEndWorkday:l},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],u.customHeaders)}getGamificationLeaderboard(e,i,n){if(n=n||{},e==null)throw'Missing the required parameter "startWorkday" when calling getGamificationLeaderboard';if(i==null)throw'Missing the required parameter "endWorkday" when calling getGamificationLeaderboard';return this.apiClient.callApi("/api/v2/gamification/leaderboard","GET",{},{startWorkday:e,endWorkday:i,metricId:n.metricId},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getGamificationLeaderboardAll(e,i,n,a,r){if(r=r||{},e==null)throw'Missing the required parameter "filterType" when calling getGamificationLeaderboardAll';if(i==null)throw'Missing the required parameter "filterId" when calling getGamificationLeaderboardAll';if(n==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:i,startWorkday:n,endWorkday:a,metricId:r.metricId},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}getGamificationLeaderboardAllBestpoints(e,i,n){if(n=n||{},e==null)throw'Missing the required parameter "filterType" when calling getGamificationLeaderboardAllBestpoints';if(i==null)throw'Missing the required parameter "filterId" when calling getGamificationLeaderboardAllBestpoints';return this.apiClient.callApi("/api/v2/gamification/leaderboard/all/bestpoints","GET",{},{filterType:e,filterId:i},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getGamificationProfileMembers(e,i){if(i=i||{},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"],i.customHeaders)}getGamificationProfileMetric(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "profileId" when calling getGamificationProfileMetric';if(i==null||i==="")throw'Missing the required parameter "metricId" when calling getGamificationProfileMetric';return this.apiClient.callApi("/api/v2/gamification/profiles/{profileId}/metrics/{metricId}","GET",{profileId:e,metricId:i},{workday:n.workday},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getGamificationProfileMetrics(e,i){if(i=i||{},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(i.expand,"multi"),workday:i.workday,metricIds:i.metricIds},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getGamificationProfileMetricsObjectivedetails(e,i){if(i=i||{},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:i.workday},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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:i.workday},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getGamificationScorecardsAttendance(e,i,n){if(n=n||{},e==null)throw'Missing the required parameter "startWorkday" when calling getGamificationScorecardsAttendance';if(i==null)throw'Missing the required parameter "endWorkday" when calling getGamificationScorecardsAttendance';return this.apiClient.callApi("/api/v2/gamification/scorecards/attendance","GET",{},{startWorkday:e,endWorkday:i},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.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,i){if(i=i||{},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"],i.customHeaders)}getGamificationScorecardsPointsAverage(e,i){if(i=i||{},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"],i.customHeaders)}getGamificationScorecardsPointsTrends(e,i,n){if(n=n||{},e==null)throw'Missing the required parameter "startWorkday" when calling getGamificationScorecardsPointsTrends';if(i==null)throw'Missing the required parameter "endWorkday" when calling getGamificationScorecardsPointsTrends';return this.apiClient.callApi("/api/v2/gamification/scorecards/points/trends","GET",{},{startWorkday:e,endWorkday:i,dayOfWeek:n.dayOfWeek},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getGamificationScorecardsProfileMetricUserValuesTrends(e,i,n,a,r,s){if(s=s||{},e==null||e==="")throw'Missing the required parameter "profileId" when calling getGamificationScorecardsProfileMetricUserValuesTrends';if(i==null||i==="")throw'Missing the required parameter "metricId" when calling getGamificationScorecardsProfileMetricUserValuesTrends';if(n==null||n==="")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:i,userId:n},{startWorkday:a,endWorkday:r,referenceWorkday:s.referenceWorkday,timeZone:s.timeZone},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],s.customHeaders)}getGamificationScorecardsProfileMetricUsersValuesTrends(e,i,n,a,r,s){if(s=s||{},e==null||e==="")throw'Missing the required parameter "profileId" when calling getGamificationScorecardsProfileMetricUsersValuesTrends';if(i==null||i==="")throw'Missing the required parameter "metricId" when calling getGamificationScorecardsProfileMetricUsersValuesTrends';if(n==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:i},{filterType:n,filterId:s.filterId,startWorkday:a,endWorkday:r,referenceWorkday:s.referenceWorkday,timeZone:s.timeZone},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],s.customHeaders)}getGamificationScorecardsProfileMetricValuesTrends(e,i,n,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "profileId" when calling getGamificationScorecardsProfileMetricValuesTrends';if(i==null||i==="")throw'Missing the required parameter "metricId" when calling getGamificationScorecardsProfileMetricValuesTrends';if(n==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:i},{filterType:r.filterType,startWorkday:n,endWorkday:a,referenceWorkday:r.referenceWorkday,timeZone:r.timeZone},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}getGamificationScorecardsUser(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling getGamificationScorecardsUser';if(i==null)throw'Missing the required parameter "workday" when calling getGamificationScorecardsUser';return this.apiClient.callApi("/api/v2/gamification/scorecards/users/{userId}","GET",{userId:e},{workday:i,expand:this.apiClient.buildCollectionParam(n.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getGamificationScorecardsUserAttendance(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "userId" when calling getGamificationScorecardsUserAttendance';if(i==null)throw'Missing the required parameter "startWorkday" when calling getGamificationScorecardsUserAttendance';if(n==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:i,endWorkday:n},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getGamificationScorecardsUserBestpoints(e,i){if(i=i||{},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"],i.customHeaders)}getGamificationScorecardsUserPointsAlltime(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling getGamificationScorecardsUserPointsAlltime';if(i==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:i},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getGamificationScorecardsUserPointsTrends(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "userId" when calling getGamificationScorecardsUserPointsTrends';if(i==null)throw'Missing the required parameter "startWorkday" when calling getGamificationScorecardsUserPointsTrends';if(n==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:i,endWorkday:n,dayOfWeek:a.dayOfWeek},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getGamificationScorecardsUserValuesTrends(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "userId" when calling getGamificationScorecardsUserValuesTrends';if(i==null)throw'Missing the required parameter "startWorkday" when calling getGamificationScorecardsUserValuesTrends';if(n==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:i,endWorkday:n,timeZone:a.timeZone},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getGamificationScorecardsUsersPointsAverage(e,i,n,a){if(a=a||{},e==null)throw'Missing the required parameter "filterType" when calling getGamificationScorecardsUsersPointsAverage';if(i==null)throw'Missing the required parameter "filterId" when calling getGamificationScorecardsUsersPointsAverage';if(n==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:i,workday:n},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getGamificationScorecardsUsersValuesAverage(e,i,n,a){if(a=a||{},e==null)throw'Missing the required parameter "filterType" when calling getGamificationScorecardsUsersValuesAverage';if(i==null)throw'Missing the required parameter "filterId" when calling getGamificationScorecardsUsersValuesAverage';if(n==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:i,workday:n,timeZone:a.timeZone},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getGamificationScorecardsUsersValuesTrends(e,i,n,a,r){if(r=r||{},e==null)throw'Missing the required parameter "filterType" when calling getGamificationScorecardsUsersValuesTrends';if(i==null)throw'Missing the required parameter "filterId" when calling getGamificationScorecardsUsersValuesTrends';if(n==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:i,startWorkday:n,endWorkday:a,timeZone:r.timeZone},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}getGamificationScorecardsValuesAverage(e,i){if(i=i||{},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:i.timeZone},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getGamificationScorecardsValuesTrends(e,i,n){if(n=n||{},e==null)throw'Missing the required parameter "startWorkday" when calling getGamificationScorecardsValuesTrends';if(i==null)throw'Missing the required parameter "endWorkday" when calling getGamificationScorecardsValuesTrends';return this.apiClient.callApi("/api/v2/gamification/scorecards/values/trends","GET",{},{filterType:n.filterType,referenceWorkday:n.referenceWorkday,startWorkday:e,endWorkday:i,timeZone:n.timeZone},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.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,i){if(i=i||{},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"],i.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,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "metricId" when calling patchEmployeeperformanceExternalmetricsDefinition';if(i==null)throw'Missing the required parameter "body" when calling patchEmployeeperformanceExternalmetricsDefinition';return this.apiClient.callApi("/api/v2/employeeperformance/externalmetrics/definitions/{metricId}","PATCH",{metricId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchGamificationContest(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "contestId" when calling patchGamificationContest';if(i==null)throw'Missing the required parameter "body" when calling patchGamificationContest';return this.apiClient.callApi("/api/v2/gamification/contests/{contestId}","PATCH",{contestId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.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,i){if(i=i||{},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"],i.customHeaders)}postGamificationContestsUploadsPrizeimages(e,i){if(i=i||{},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"],i.customHeaders)}postGamificationProfileActivate(e,i){if(i=i||{},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"],i.customHeaders)}postGamificationProfileDeactivate(e,i){if(i=i||{},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"],i.customHeaders)}postGamificationProfileMembers(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "profileId" when calling postGamificationProfileMembers';if(i==null)throw'Missing the required parameter "body" when calling postGamificationProfileMembers';return this.apiClient.callApi("/api/v2/gamification/profiles/{profileId}/members","POST",{profileId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postGamificationProfileMembersValidate(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "profileId" when calling postGamificationProfileMembersValidate';if(i==null)throw'Missing the required parameter "body" when calling postGamificationProfileMembersValidate';return this.apiClient.callApi("/api/v2/gamification/profiles/{profileId}/members/validate","POST",{profileId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postGamificationProfileMetricLink(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "sourceProfileId" when calling postGamificationProfileMetricLink';if(i==null||i==="")throw'Missing the required parameter "sourceMetricId" when calling postGamificationProfileMetricLink';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postGamificationProfileMetrics(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "profileId" when calling postGamificationProfileMetrics';if(i==null)throw'Missing the required parameter "body" when calling postGamificationProfileMetrics';return this.apiClient.callApi("/api/v2/gamification/profiles/{profileId}/metrics","POST",{profileId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postGamificationProfiles(e,i){if(i=i||{},e==null)throw'Missing the required parameter "body" when calling postGamificationProfiles';return this.apiClient.callApi("/api/v2/gamification/profiles","POST",{},{copyMetrics:i.copyMetrics},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postGamificationProfilesUserQuery(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling postGamificationProfilesUserQuery';if(i==null)throw'Missing the required parameter "body" when calling postGamificationProfilesUserQuery';return this.apiClient.callApi("/api/v2/gamification/profiles/users/{userId}/query","POST",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postGamificationProfilesUsersMeQuery(e,i){if(i=i||{},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"],i.customHeaders)}putGamificationContest(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "contestId" when calling putGamificationContest';if(i==null)throw'Missing the required parameter "body" when calling putGamificationContest';return this.apiClient.callApi("/api/v2/gamification/contests/{contestId}","PUT",{contestId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putGamificationProfile(e,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "profileId" when calling putGamificationProfile';return this.apiClient.callApi("/api/v2/gamification/profiles/{profileId}","PUT",{profileId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}putGamificationProfileMetric(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "profileId" when calling putGamificationProfileMetric';if(i==null||i==="")throw'Missing the required parameter "metricId" when calling putGamificationProfileMetric';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}putGamificationStatus(e,i){if(i=i||{},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"],i.customHeaders)}},ib=class{constructor(e){this.apiClient=e||q.instance}getGdprRequest(e,i){if(i=i||{},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"],i.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,i,n){if(n=n||{},e==null)throw'Missing the required parameter "searchType" when calling getGdprSubjects';if(i==null)throw'Missing the required parameter "searchValue" when calling getGdprSubjects';return this.apiClient.callApi("/api/v2/gdpr/subjects","GET",{},{searchType:e,searchValue:i},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postGdprRequests(e,i){if(i=i||{},e==null)throw'Missing the required parameter "body" when calling postGdprRequests';return this.apiClient.callApi("/api/v2/gdpr/requests","POST",{},{deleteConfirmed:i.deleteConfirmed},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}},nb=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,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling getUserGeolocation';if(i==null||i==="")throw'Missing the required parameter "clientId" when calling getUserGeolocation';return this.apiClient.callApi("/api/v2/users/{userId}/geolocations/{clientId}","GET",{userId:e,clientId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchGeolocationsSettings(e,i){if(i=i||{},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"],i.customHeaders)}patchUserGeolocation(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "userId" when calling patchUserGeolocation';if(i==null||i==="")throw'Missing the required parameter "clientId" when calling patchUserGeolocation';if(n==null)throw'Missing the required parameter "body" when calling patchUserGeolocation';return this.apiClient.callApi("/api/v2/users/{userId}/geolocations/{clientId}","PATCH",{userId:e,clientId:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}},tb=class{constructor(e){this.apiClient=e||q.instance}deleteGreeting(e,i){if(i=i||{},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"],i.customHeaders)}getGreeting(e,i){if(i=i||{},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"],i.customHeaders)}getGreetingDownloads(e,i){if(i=i||{},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:i.formatId},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getGreetingGroupsDownloads(e,i){if(i=i||{},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:i.formatId},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getGreetingMedia(e,i){if(i=i||{},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:i.formatId},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getGreetingUsersDownloads(e,i){if(i=i||{},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:i.formatId},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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:i.pageSize,pageNumber:i.pageNumber},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getGroupGreetingsDefaults(e,i){if(i=i||{},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"],i.customHeaders)}getUserGreetings(e,i){if(i=i||{},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:i.pageSize,pageNumber:i.pageNumber},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getUserGreetingsDefaults(e,i){if(i=i||{},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"],i.customHeaders)}postGreetings(e,i){if(i=i||{},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"],i.customHeaders)}postGroupGreetings(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "groupId" when calling postGroupGreetings';if(i==null)throw'Missing the required parameter "body" when calling postGroupGreetings';return this.apiClient.callApi("/api/v2/groups/{groupId}/greetings","POST",{groupId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postUserGreetings(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling postUserGreetings';if(i==null)throw'Missing the required parameter "body" when calling postUserGreetings';return this.apiClient.callApi("/api/v2/users/{userId}/greetings","POST",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putGreeting(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "greetingId" when calling putGreeting';if(i==null)throw'Missing the required parameter "body" when calling putGreeting';return this.apiClient.callApi("/api/v2/greetings/{greetingId}","PUT",{greetingId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putGreetingsDefaults(e,i){if(i=i||{},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"],i.customHeaders)}putGroupGreetingsDefaults(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "groupId" when calling putGroupGreetingsDefaults';if(i==null)throw'Missing the required parameter "body" when calling putGroupGreetingsDefaults';return this.apiClient.callApi("/api/v2/groups/{groupId}/greetings/defaults","PUT",{groupId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putUserGreetingsDefaults(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling putUserGreetingsDefaults';if(i==null)throw'Missing the required parameter "body" when calling putUserGreetingsDefaults';return this.apiClient.callApi("/api/v2/users/{userId}/greetings/defaults","PUT",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}},ab=class{constructor(e){this.apiClient=e||q.instance}deleteGroup(e,i){if(i=i||{},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"],i.customHeaders)}deleteGroupDynamicsettings(e,i){if(i=i||{},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"],i.customHeaders)}deleteGroupMembers(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "groupId" when calling deleteGroupMembers';if(i==null)throw'Missing the required parameter "ids" when calling deleteGroupMembers';return this.apiClient.callApi("/api/v2/groups/{groupId}/members","DELETE",{groupId:e},{ids:i},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getFieldconfig(e,i){if(i=i||{},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"],i.customHeaders)}getGroup(e,i){if(i=i||{},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"],i.customHeaders)}getGroupDynamicsettings(e,i){if(i=i||{},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"],i.customHeaders)}getGroupIndividuals(e,i){if(i=i||{},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"],i.customHeaders)}getGroupMembers(e,i){if(i=i||{},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:i.pageSize,pageNumber:i.pageNumber,sortOrder:i.sortOrder,expand:this.apiClient.buildCollectionParam(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getGroupProfile(e,i){if(i=i||{},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:i.fields},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "groupId" when calling postGroupMembers';if(i==null)throw'Missing the required parameter "body" when calling postGroupMembers';return this.apiClient.callApi("/api/v2/groups/{groupId}/members","POST",{groupId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postGroups(e,i){if(i=i||{},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"],i.customHeaders)}postGroupsDynamicsettingsPreview(e,i){if(i=i||{},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"],i.customHeaders)}postGroupsSearch(e,i){if(i=i||{},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"],i.customHeaders)}putGroup(e,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "groupId" when calling putGroup';return this.apiClient.callApi("/api/v2/groups/{groupId}","PUT",{groupId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}putGroupDynamicsettings(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "groupId" when calling putGroupDynamicsettings';if(i==null)throw'Missing the required parameter "body" when calling putGroupDynamicsettings';return this.apiClient.callApi("/api/v2/groups/{groupId}/dynamicsettings","PUT",{groupId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}},rb=class{constructor(e){this.apiClient=e||q.instance}deleteIdentityprovider(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}putIdentityprovider(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "providerId" when calling putIdentityprovider';if(i==null)throw'Missing the required parameter "body" when calling putIdentityprovider';return this.apiClient.callApi("/api/v2/identityproviders/{providerId}","PUT",{providerId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putIdentityprovidersAdfs(e,i){if(i=i||{},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"],i.customHeaders)}putIdentityprovidersCic(e,i){if(i=i||{},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"],i.customHeaders)}putIdentityprovidersGeneric(e,i){if(i=i||{},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"],i.customHeaders)}putIdentityprovidersGsuite(e,i){if(i=i||{},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"],i.customHeaders)}putIdentityprovidersIdentitynow(e,i){if(i=i||{},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"],i.customHeaders)}putIdentityprovidersOkta(e,i){if(i=i||{},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"],i.customHeaders)}putIdentityprovidersOnelogin(e,i){if(i=i||{},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"],i.customHeaders)}putIdentityprovidersPing(e,i){if(i=i||{},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"],i.customHeaders)}putIdentityprovidersPurecloud(e,i){if(i=i||{},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"],i.customHeaders)}putIdentityprovidersPureengage(e,i){if(i=i||{},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"],i.customHeaders)}putIdentityprovidersSalesforce(e,i){if(i=i||{},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"],i.customHeaders)}},sb=class{constructor(e){this.apiClient=e||q.instance}getInfrastructureascodeAccelerator(e,i){if(i=i||{},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:i.preferredLanguage},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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:i.details},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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"],i.customHeaders)}},ob=class{constructor(e){this.apiClient=e||q.instance}deleteIntegration(e,i){if(i=i||{},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"],i.customHeaders)}deleteIntegrationsAction(e,i){if(i=i||{},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"],i.customHeaders)}deleteIntegrationsActionDraft(e,i){if(i=i||{},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"],i.customHeaders)}deleteIntegrationsCredential(e,i){if(i=i||{},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"],i.customHeaders)}getIntegration(e,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "integrationId" when calling getIntegration';return this.apiClient.callApi("/api/v2/integrations/{integrationId}","GET",{integrationId:e},{pageSize:i.pageSize,pageNumber:i.pageNumber,sortBy:i.sortBy,expand:this.apiClient.buildCollectionParam(i.expand,"multi"),nextPage:i.nextPage,previousPage:i.previousPage},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getIntegrationConfigCurrent(e,i){if(i=i||{},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"],i.customHeaders)}getIntegrations(e){return e=e||{},this.apiClient.callApi("/api/v2/integrations","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,sortBy:e.sortBy,expand:this.apiClient.buildCollectionParam(e.expand,"multi"),nextPage:e.nextPage,previousPage:e.previousPage,ids:this.apiClient.buildCollectionParam(e.ids,"multi"),integrationType:e.integrationType,reportedState:e.reportedState},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getIntegrationsAction(e,i){if(i=i||{},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:i.expand,flatten:i.flatten,includeConfig:i.includeConfig},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getIntegrationsActionDraft(e,i){if(i=i||{},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:i.expand,flatten:i.flatten,includeConfig:i.includeConfig},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getIntegrationsActionDraftFunction(e,i){if(i=i||{},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"],i.customHeaders)}getIntegrationsActionDraftSchema(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "actionId" when calling getIntegrationsActionDraftSchema';if(i==null||i==="")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:i},{flatten:n.flatten},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getIntegrationsActionDraftTemplate(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "actionId" when calling getIntegrationsActionDraftTemplate';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["text/plain"],n.customHeaders)}getIntegrationsActionDraftValidation(e,i){if(i=i||{},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"],i.customHeaders)}getIntegrationsActionFunction(e,i){if(i=i||{},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"],i.customHeaders)}getIntegrationsActionSchema(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "actionId" when calling getIntegrationsActionSchema';if(i==null||i==="")throw'Missing the required parameter "fileName" when calling getIntegrationsActionSchema';return this.apiClient.callApi("/api/v2/integrations/actions/{actionId}/schemas/{fileName}","GET",{actionId:e,fileName:i},{flatten:n.flatten},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getIntegrationsActionTemplate(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "actionId" when calling getIntegrationsActionTemplate';if(i==null||i==="")throw'Missing the required parameter "fileName" when calling getIntegrationsActionTemplate';return this.apiClient.callApi("/api/v2/integrations/actions/{actionId}/templates/{fileName}","GET",{actionId:e,fileName:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["text/plain"],n.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,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "integrationId" when calling getIntegrationsBotconnectorBot';if(i==null||i==="")throw'Missing the required parameter "botId" when calling getIntegrationsBotconnectorBot';return this.apiClient.callApi("/api/v2/integrations/botconnectors/{integrationId}/bots/{botId}","GET",{integrationId:e,botId:i},{version:n.version},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getIntegrationsBotconnectorBots(e,i){if(i=i||{},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:i.pageNumber,pageSize:i.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getIntegrationsBotconnectorBotsSummaries(e,i){if(i=i||{},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:i.pageNumber,pageSize:i.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getIntegrationsBotconnectorIntegrationIdBot(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "integrationId" when calling getIntegrationsBotconnectorIntegrationIdBot';if(i==null||i==="")throw'Missing the required parameter "botId" when calling getIntegrationsBotconnectorIntegrationIdBot';return this.apiClient.callApi("/api/v2/integrations/botconnector/{integrationId}/bots/{botId}","GET",{integrationId:e,botId:i},{version:n.version},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getIntegrationsBotconnectorIntegrationIdBotVersions(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "integrationId" when calling getIntegrationsBotconnectorIntegrationIdBotVersions';if(i==null||i==="")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:i},{pageNumber:n.pageNumber,pageSize:n.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getIntegrationsBotconnectorIntegrationIdBots(e,i){if(i=i||{},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"],i.customHeaders)}getIntegrationsBotconnectorIntegrationIdBotsSummaries(e,i){if(i=i||{},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:i.pageNumber,pageSize:i.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getIntegrationsClientapps(e){return e=e||{},this.apiClient.callApi("/api/v2/integrations/clientapps","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,sortBy:e.sortBy,expand:this.apiClient.buildCollectionParam(e.expand,"multi"),nextPage:e.nextPage,previousPage:e.previousPage},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getIntegrationsClientappsUnifiedcommunications(e){return e=e||{},this.apiClient.callApi("/api/v2/integrations/clientapps/unifiedcommunications","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,sortBy:e.sortBy,expand:this.apiClient.buildCollectionParam(e.expand,"multi"),nextPage:e.nextPage,previousPage:e.previousPage},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getIntegrationsCredential(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getIntegrationsSpeechDialogflowAgent(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getIntegrationsSpeechLexBotBotIdAliases(e,i){if(i=i||{},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:i.pageNumber,pageSize:i.pageSize,status:i.status,name:i.name},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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"],i.customHeaders)}getIntegrationsSpeechLexv2BotBotIdAliases(e,i){if(i=i||{},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:i.pageNumber,pageSize:i.pageSize,status:i.status,name:i.name},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "nuanceIntegrationId" when calling getIntegrationsSpeechNuanceNuanceIntegrationIdBot';if(i==null||i==="")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:i},{expand:this.apiClient.buildCollectionParam(n.expand,"multi"),targetChannel:n.targetChannel},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getIntegrationsSpeechNuanceNuanceIntegrationIdBotJob(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "nuanceIntegrationId" when calling getIntegrationsSpeechNuanceNuanceIntegrationIdBotJob';if(i==null||i==="")throw'Missing the required parameter "botId" when calling getIntegrationsSpeechNuanceNuanceIntegrationIdBotJob';if(n==null||n==="")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:i,jobId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getIntegrationsSpeechNuanceNuanceIntegrationIdBotJobResults(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "nuanceIntegrationId" when calling getIntegrationsSpeechNuanceNuanceIntegrationIdBotJobResults';if(i==null||i==="")throw'Missing the required parameter "botId" when calling getIntegrationsSpeechNuanceNuanceIntegrationIdBotJobResults';if(n==null||n==="")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:i,jobId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getIntegrationsSpeechNuanceNuanceIntegrationIdBots(e,i){if(i=i||{},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:i.pageNumber,pageSize:i.pageSize,onlyRegisteredBots:i.onlyRegisteredBots},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getIntegrationsSpeechNuanceNuanceIntegrationIdBotsJob(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "nuanceIntegrationId" when calling getIntegrationsSpeechNuanceNuanceIntegrationIdBotsJob';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getIntegrationsSpeechNuanceNuanceIntegrationIdBotsJobResults(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "nuanceIntegrationId" when calling getIntegrationsSpeechNuanceNuanceIntegrationIdBotsJobResults';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getIntegrationsSpeechSttEngine(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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:i.includeVoices},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getIntegrationsSpeechTtsEngineVoice(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "engineId" when calling getIntegrationsSpeechTtsEngineVoice';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getIntegrationsSpeechTtsEngineVoices(e,i){if(i=i||{},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:i.pageNumber,pageSize:i.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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"],i.customHeaders)}getIntegrationsTypeConfigschema(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "typeId" when calling getIntegrationsTypeConfigschema';if(i==null||i==="")throw'Missing the required parameter "configType" when calling getIntegrationsTypeConfigschema';return this.apiClient.callApi("/api/v2/integrations/types/{typeId}/configschemas/{configType}","GET",{typeId:e,configType:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "integrationId" when calling patchIntegration';return this.apiClient.callApi("/api/v2/integrations/{integrationId}","PATCH",{integrationId:e},{pageSize:i.pageSize,pageNumber:i.pageNumber,sortBy:i.sortBy,expand:this.apiClient.buildCollectionParam(i.expand,"multi"),nextPage:i.nextPage,previousPage:i.previousPage},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}patchIntegrationsAction(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "actionId" when calling patchIntegrationsAction';if(i==null)throw'Missing the required parameter "body" when calling patchIntegrationsAction';return this.apiClient.callApi("/api/v2/integrations/actions/{actionId}","PATCH",{actionId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchIntegrationsActionDraft(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "actionId" when calling patchIntegrationsActionDraft';if(i==null)throw'Missing the required parameter "body" when calling patchIntegrationsActionDraft';return this.apiClient.callApi("/api/v2/integrations/actions/{actionId}/draft","PATCH",{actionId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.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,i){if(i=i||{},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"],i.customHeaders)}postIntegrationsActionDraftFunctionUpload(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "actionId" when calling postIntegrationsActionDraftFunctionUpload';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postIntegrationsActionDraftPublish(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "actionId" when calling postIntegrationsActionDraftPublish';if(i==null)throw'Missing the required parameter "body" when calling postIntegrationsActionDraftPublish';return this.apiClient.callApi("/api/v2/integrations/actions/{actionId}/draft/publish","POST",{actionId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postIntegrationsActionDraftTest(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "actionId" when calling postIntegrationsActionDraftTest';if(i==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:n.flatten},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postIntegrationsActionExecute(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "actionId" when calling postIntegrationsActionExecute';if(i==null)throw'Missing the required parameter "body" when calling postIntegrationsActionExecute';return this.apiClient.callApi("/api/v2/integrations/actions/{actionId}/execute","POST",{actionId:e},{flatten:n.flatten},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postIntegrationsActionTest(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "actionId" when calling postIntegrationsActionTest';if(i==null)throw'Missing the required parameter "body" when calling postIntegrationsActionTest';return this.apiClient.callApi("/api/v2/integrations/actions/{actionId}/test","POST",{actionId:e},{flatten:n.flatten},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postIntegrationsActions(e,i){if(i=i||{},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"],i.customHeaders)}postIntegrationsActionsDrafts(e,i){if(i=i||{},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"],i.customHeaders)}postIntegrationsBotconnectorsIncomingMessages(e,i){if(i=i||{},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"],i.customHeaders)}postIntegrationsBotconnectorsOutgoingMessages(e,i){if(i=i||{},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"],i.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,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "nuanceIntegrationId" when calling postIntegrationsSpeechNuanceNuanceIntegrationIdBotJobs';if(i==null||i==="")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:i},{expand:this.apiClient.buildCollectionParam(n.expand,"multi")},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postIntegrationsSpeechNuanceNuanceIntegrationIdBotsJobs(e,i){if(i=i||{},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:i.pageNumber,pageSize:i.pageSize,onlyRegisteredBots:i.onlyRegisteredBots},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postIntegrationsSpeechNuanceNuanceIntegrationIdBotsLaunchValidate(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "nuanceIntegrationId" when calling postIntegrationsSpeechNuanceNuanceIntegrationIdBotsLaunchValidate';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postIntegrationsWebhookEvents(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "tokenId" when calling postIntegrationsWebhookEvents';if(i==null)throw'Missing the required parameter "body" when calling postIntegrationsWebhookEvents';return this.apiClient.callApi("/api/v2/integrations/webhooks/{tokenId}/events","POST",{tokenId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putIntegrationConfigCurrent(e,i){if(i=i||{},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},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}putIntegrationsActionDraftFunction(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "actionId" when calling putIntegrationsActionDraftFunction';if(i==null)throw'Missing the required parameter "body" when calling putIntegrationsActionDraftFunction';return this.apiClient.callApi("/api/v2/integrations/actions/{actionId}/draft/function","PUT",{actionId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putIntegrationsBotconnectorIntegrationIdBots(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "integrationId" when calling putIntegrationsBotconnectorIntegrationIdBots';if(i==null)throw'Missing the required parameter "botList" when calling putIntegrationsBotconnectorIntegrationIdBots';return this.apiClient.callApi("/api/v2/integrations/botconnector/{integrationId}/bots","PUT",{integrationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putIntegrationsCredential(e,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "credentialId" when calling putIntegrationsCredential';return this.apiClient.callApi("/api/v2/integrations/credentials/{credentialId}","PUT",{credentialId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}putIntegrationsSpeechNuanceNuanceIntegrationIdBotsLaunchSettings(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "nuanceIntegrationId" when calling putIntegrationsSpeechNuanceNuanceIntegrationIdBotsLaunchSettings';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putIntegrationsSpeechTtsSettings(e,i){if(i=i||{},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"],i.customHeaders)}putIntegrationsUnifiedcommunicationThirdpartypresences(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "ucIntegrationId" when calling putIntegrationsUnifiedcommunicationThirdpartypresences';if(i==null)throw'Missing the required parameter "body" when calling putIntegrationsUnifiedcommunicationThirdpartypresences';return this.apiClient.callApi("/api/v2/integrations/unifiedcommunications/{ucIntegrationId}/thirdpartypresences","PUT",{ucIntegrationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}},lb=class{constructor(e){this.apiClient=e||q.instance}deleteIntentsCategory(e,i){if(i=i||{},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"],i.customHeaders)}deleteIntentsCustomerintent(e,i){if(i=i||{},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"],i.customHeaders)}getIntentsAssignmentsExternalcontact(e,i){if(i=i||{},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:i.pageSize,pageNumber:i.pageNumber},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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"],i.customHeaders)}getIntentsCustomerintent(e,i){if(i=i||{},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"],i.customHeaders)}getIntentsCustomerintentSourceintents(e,i){if(i=i||{},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:i.pageSize,pageNumber:i.pageNumber,queryValue:i.queryValue},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "categoryId" when calling patchIntentsCategory';if(i==null)throw'Missing the required parameter "body" when calling patchIntentsCategory';return this.apiClient.callApi("/api/v2/intents/categories/{categoryId}","PATCH",{categoryId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchIntentsCustomerintent(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "customerIntentId" when calling patchIntentsCustomerintent';if(i==null)throw'Missing the required parameter "body" when calling patchIntentsCustomerintent';return this.apiClient.callApi("/api/v2/intents/customerintents/{customerIntentId}","PATCH",{customerIntentId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postIntentsAssignmentsExternalcontactCustomerintentAssignment(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "externalContactId" when calling postIntentsAssignmentsExternalcontactCustomerintentAssignment';if(i==null||i==="")throw'Missing the required parameter "customerIntentId" when calling postIntentsAssignmentsExternalcontactCustomerintentAssignment';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postIntentsCategories(e,i){if(i=i||{},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"],i.customHeaders)}postIntentsCustomerintentSourceintentsBulkAdd(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "customerIntentId" when calling postIntentsCustomerintentSourceintentsBulkAdd';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postIntentsCustomerintentSourceintentsBulkRemove(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "customerIntentId" when calling postIntentsCustomerintentSourceintentsBulkRemove';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postIntentsCustomerintents(e,i){if(i=i||{},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"],i.customHeaders)}},ub=class{constructor(e){this.apiClient=e||q.instance}deleteAnalyticsJourneysAggregatesJob(e,i){if(i=i||{},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"],i.customHeaders)}deleteJourneyActionmap(e,i){if(i=i||{},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"],i.customHeaders)}deleteJourneyActiontemplate(e,i){if(i=i||{},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:i.hardDelete},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}deleteJourneyExternaleventsConfiguration(e,i){if(i=i||{},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"],i.customHeaders)}deleteJourneyExternaleventsSchema(e,i){if(i=i||{},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"],i.customHeaders)}deleteJourneyOutcome(e,i){if(i=i||{},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"],i.customHeaders)}deleteJourneyOutcomesPredictor(e,i){if(i=i||{},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"],i.customHeaders)}deleteJourneySegment(e,i){if(i=i||{},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"],i.customHeaders)}deleteJourneyView(e,i){if(i=i||{},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"],i.customHeaders)}deleteJourneyViewSchedules(e,i){if(i=i||{},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"],i.customHeaders)}getAnalyticsJourneysAggregatesJob(e,i){if(i=i||{},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"],i.customHeaders)}getAnalyticsJourneysAggregatesJobResults(e,i){if(i=i||{},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:i.cursor},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getExternalcontactsContactJourneySegments(e,i){if(i=i||{},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:i.includeMerged,limit:i.limit},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getExternalcontactsContactJourneySessions(e,i){if(i=i||{},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:i.pageSize,after:i.after,includeMerged:i.includeMerged},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getJourneyActionmap(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getJourneyActionmapsEstimatesJobResults(e,i){if(i=i||{},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"],i.customHeaders)}getJourneyActiontarget(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "deploymentId" when calling getJourneyDeploymentCustomerPing';if(i==null||i==="")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:i},{dl:n.dl,dt:n.dt,appNamespace:n.appNamespace,sessionId:n.sessionId,sinceLastBeaconMilliseconds:n.sinceLastBeaconMilliseconds},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getJourneyExternaleventsConfiguration(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getJourneyExternaleventsSchemaVersion(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "schemaId" when calling getJourneyExternaleventsSchemaVersion';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getJourneyExternaleventsSchemaVersions(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getJourneyOutcomesAttributionsJobResults(e,i){if(i=i||{},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"],i.customHeaders)}getJourneyOutcomesPredictor(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getJourneySessionEvents(e,i){if(i=i||{},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:i.pageSize,after:i.after,eventType:i.eventType},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getJourneySessionOutcomescores(e,i){if(i=i||{},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"],i.customHeaders)}getJourneyView(e,i){if(i=i||{},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"],i.customHeaders)}getJourneyViewSchedules(e,i){if(i=i||{},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"],i.customHeaders)}getJourneyViewVersion(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "viewId" when calling getJourneyViewVersion';if(i==null||i==="")throw'Missing the required parameter "versionId" when calling getJourneyViewVersion';return this.apiClient.callApi("/api/v2/journey/views/{viewId}/versions/{versionId}","GET",{viewId:e,versionId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getJourneyViewVersionChart(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "viewId" when calling getJourneyViewVersionChart';if(i==null||i==="")throw'Missing the required parameter "journeyViewVersion" when calling getJourneyViewVersionChart';if(n==null||n==="")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:i,chartId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getJourneyViewVersionChartVersion(e,i,n,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "viewId" when calling getJourneyViewVersionChartVersion';if(i==null||i==="")throw'Missing the required parameter "journeyViewVersion" when calling getJourneyViewVersionChartVersion';if(n==null||n==="")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:i,chartId:n,chartVersion:a},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}getJourneyViewVersionJob(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "viewId" when calling getJourneyViewVersionJob';if(i==null||i==="")throw'Missing the required parameter "journeyVersionId" when calling getJourneyViewVersionJob';if(n==null||n==="")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:i,jobId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getJourneyViewVersionJobResults(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "viewId" when calling getJourneyViewVersionJobResults';if(i==null||i==="")throw'Missing the required parameter "journeyViewVersion" when calling getJourneyViewVersionJobResults';if(n==null||n==="")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:i,jobId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getJourneyViewVersionJobResultsChart(e,i,n,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "viewId" when calling getJourneyViewVersionJobResultsChart';if(i==null||i==="")throw'Missing the required parameter "journeyVersionId" when calling getJourneyViewVersionJobResultsChart';if(n==null||n==="")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:i,jobId:n,chartId:a},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}getJourneyViewVersionJobsLatest(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "viewId" when calling getJourneyViewVersionJobsLatest';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.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,i){if(i=i||{},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"],i.customHeaders)}getJourneyViewsEventdefinitions(e){return e=e||{},this.apiClient.callApi("/api/v2/journey/views/eventdefinitions","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getJourneyViewsJobs(e){return e=e||{},this.apiClient.callApi("/api/v2/journey/views/jobs","GET",{},{pageNumber:e.pageNumber,pageSize:e.pageSize,interval:e.interval,statuses:e.statuses},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getJourneyViewsJobsMe(e){return e=e||{},this.apiClient.callApi("/api/v2/journey/views/jobs/me","GET",{},{pageNumber:e.pageNumber,pageSize:e.pageSize,interval:e.interval,statuses:e.statuses},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getJourneyViewsSchedules(e){return e=e||{},this.apiClient.callApi("/api/v2/journey/views/schedules","GET",{},{pageNumber:e.pageNumber,pageSize:e.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}patchJourneyActionmap(e,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "actionMapId" when calling patchJourneyActionmap';return this.apiClient.callApi("/api/v2/journey/actionmaps/{actionMapId}","PATCH",{actionMapId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}patchJourneyActiontarget(e,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "actionTargetId" when calling patchJourneyActiontarget';return this.apiClient.callApi("/api/v2/journey/actiontargets/{actionTargetId}","PATCH",{actionTargetId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}patchJourneyActiontemplate(e,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "actionTemplateId" when calling patchJourneyActiontemplate';return this.apiClient.callApi("/api/v2/journey/actiontemplates/{actionTemplateId}","PATCH",{actionTemplateId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}patchJourneyExternaleventsConfiguration(e,i){if(i=i||{},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},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}patchJourneyOutcome(e,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "outcomeId" when calling patchJourneyOutcome';return this.apiClient.callApi("/api/v2/journey/outcomes/{outcomeId}","PATCH",{outcomeId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}patchJourneySegment(e,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "segmentId" when calling patchJourneySegment';return this.apiClient.callApi("/api/v2/journey/segments/{segmentId}","PATCH",{segmentId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}patchJourneyViewVersionJob(e,i,n,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "viewId" when calling patchJourneyViewVersionJob';if(i==null||i==="")throw'Missing the required parameter "journeyVersionId" when calling patchJourneyViewVersionJob';if(n==null||n==="")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:i,jobId:n},{},{},{},a,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}postAnalyticsJourneysAggregatesJobs(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsJourneysAggregatesQuery(e,i){if(i=i||{},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"],i.customHeaders)}postExternalcontactsContactJourneySegments(e,i){if(i=i||{},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},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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"],i.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,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "deploymentId" when calling postJourneyDeploymentActionevent';if(i==null)throw'Missing the required parameter "body" when calling postJourneyDeploymentActionevent';return this.apiClient.callApi("/api/v2/journey/deployments/{deploymentId}/actionevent","POST",{deploymentId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postJourneyDeploymentAppevents(e,i){if(i=i||{},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},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postJourneyDeploymentWebevents(e,i){if(i=i||{},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},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postJourneyExternaleventsConfigurationEvents(e,i){if(i=i||{},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},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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"],i.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,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "viewId" when calling postJourneyViewSchedules';if(i==null)throw'Missing the required parameter "body" when calling postJourneyViewSchedules';return this.apiClient.callApi("/api/v2/journey/views/{viewId}/schedules","POST",{viewId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postJourneyViewVersionJobs(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "viewId" when calling postJourneyViewVersionJobs';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postJourneyViewVersions(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "viewId" when calling postJourneyViewVersions';if(i==null)throw'Missing the required parameter "body" when calling postJourneyViewVersions';return this.apiClient.callApi("/api/v2/journey/views/{viewId}/versions","POST",{viewId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postJourneyViews(e,i){if(i=i||{},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"],i.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,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "schemaId" when calling putJourneyExternaleventsSchema';if(i==null)throw'Missing the required parameter "body" when calling putJourneyExternaleventsSchema';return this.apiClient.callApi("/api/v2/journey/externalevents/schemas/{schemaId}","PUT",{schemaId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putJourneyViewSchedules(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "viewId" when calling putJourneyViewSchedules';if(i==null)throw'Missing the required parameter "body" when calling putJourneyViewSchedules';return this.apiClient.callApi("/api/v2/journey/views/{viewId}/schedules","PUT",{viewId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putJourneyViewVersion(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "viewId" when calling putJourneyViewVersion';if(i==null||i==="")throw'Missing the required parameter "versionId" when calling putJourneyViewVersion';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}},cb=class{constructor(e){this.apiClient=e||q.instance}deleteKnowledgeConnection(e,i){if(i=i||{},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"],i.customHeaders)}deleteKnowledgeKnowledgebase(e,i){if(i=i||{},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"],i.customHeaders)}deleteKnowledgeKnowledgebaseCategory(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling deleteKnowledgeKnowledgebaseCategory';if(i==null||i==="")throw'Missing the required parameter "categoryId" when calling deleteKnowledgeKnowledgebaseCategory';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/categories/{categoryId}","DELETE",{knowledgeBaseId:e,categoryId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteKnowledgeKnowledgebaseDocument(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling deleteKnowledgeKnowledgebaseDocument';if(i==null||i==="")throw'Missing the required parameter "documentId" when calling deleteKnowledgeKnowledgebaseDocument';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/documents/{documentId}","DELETE",{knowledgeBaseId:e,documentId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteKnowledgeKnowledgebaseDocumentVariation(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "documentVariationId" when calling deleteKnowledgeKnowledgebaseDocumentVariation';if(i==null||i==="")throw'Missing the required parameter "documentId" when calling deleteKnowledgeKnowledgebaseDocumentVariation';if(n==null||n==="")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:i,knowledgeBaseId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}deleteKnowledgeKnowledgebaseExportJob(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling deleteKnowledgeKnowledgebaseExportJob';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteKnowledgeKnowledgebaseImportJob(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling deleteKnowledgeKnowledgebaseImportJob';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteKnowledgeKnowledgebaseLabel(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling deleteKnowledgeKnowledgebaseLabel';if(i==null||i==="")throw'Missing the required parameter "labelId" when calling deleteKnowledgeKnowledgebaseLabel';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/labels/{labelId}","DELETE",{knowledgeBaseId:e,labelId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteKnowledgeKnowledgebaseSourcesSalesforceSourceId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling deleteKnowledgeKnowledgebaseSourcesSalesforceSourceId';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteKnowledgeKnowledgebaseSourcesServicenowSourceId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling deleteKnowledgeKnowledgebaseSourcesServicenowSourceId';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteKnowledgeKnowledgebaseSynchronizeJob(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling deleteKnowledgeKnowledgebaseSynchronizeJob';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteKnowledgeSetting(e,i){if(i=i||{},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"],i.customHeaders)}deleteKnowledgeSource(e,i){if(i=i||{},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"],i.customHeaders)}getKnowledgeConnection(e,i){if(i=i||{},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(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getKnowledgeConnectionOptions(e,i){if(i=i||{},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:i.after,pageSize:i.pageSize,parentId:i.parentId},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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:i.before,after:i.after,pageSize:i.pageSize,parentId:i.parentId,isRoot:i.isRoot,name:i.name,sortBy:i.sortBy,expand:i.expand,includeDocumentCount:i.includeDocumentCount},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getKnowledgeGuestSessionDocument(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "sessionId" when calling getKnowledgeGuestSessionDocument';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getKnowledgeGuestSessionDocuments(e,i){if(i=i||{},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(i.categoryId,"multi"),pageSize:i.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getKnowledgeIntegrationOptions(e,i){if(i=i||{},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(i.knowledgeBaseIds,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getKnowledgeKnowledgebase(e,i){if(i=i||{},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"],i.customHeaders)}getKnowledgeKnowledgebaseCategories(e,i){if(i=i||{},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:i.before,after:i.after,pageSize:i.pageSize,parentId:i.parentId,isRoot:i.isRoot,name:i.name,sortBy:i.sortBy,expand:i.expand,includeDocumentCount:i.includeDocumentCount},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getKnowledgeKnowledgebaseCategory(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling getKnowledgeKnowledgebaseCategory';if(i==null||i==="")throw'Missing the required parameter "categoryId" when calling getKnowledgeKnowledgebaseCategory';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/categories/{categoryId}","GET",{knowledgeBaseId:e,categoryId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getKnowledgeKnowledgebaseDocument(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling getKnowledgeKnowledgebaseDocument';if(i==null||i==="")throw'Missing the required parameter "documentId" when calling getKnowledgeKnowledgebaseDocument';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/documents/{documentId}","GET",{knowledgeBaseId:e,documentId:i},{expand:this.apiClient.buildCollectionParam(n.expand,"multi"),state:n.state},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getKnowledgeKnowledgebaseDocumentFeedback(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling getKnowledgeKnowledgebaseDocumentFeedback';if(i==null||i==="")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:i},{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)}getKnowledgeKnowledgebaseDocumentFeedbackFeedbackId(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling getKnowledgeKnowledgebaseDocumentFeedbackFeedbackId';if(i==null||i==="")throw'Missing the required parameter "documentId" when calling getKnowledgeKnowledgebaseDocumentFeedbackFeedbackId';if(n==null||n==="")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:i,feedbackId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getKnowledgeKnowledgebaseDocumentVariation(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "documentVariationId" when calling getKnowledgeKnowledgebaseDocumentVariation';if(i==null||i==="")throw'Missing the required parameter "documentId" when calling getKnowledgeKnowledgebaseDocumentVariation';if(n==null||n==="")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:i,knowledgeBaseId:n},{documentState:a.documentState,expand:this.apiClient.buildCollectionParam(a.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getKnowledgeKnowledgebaseDocumentVariations(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling getKnowledgeKnowledgebaseDocumentVariations';if(i==null||i==="")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:i},{before:n.before,after:n.after,pageSize:n.pageSize,documentState:n.documentState,expand:this.apiClient.buildCollectionParam(n.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getKnowledgeKnowledgebaseDocumentVersion(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling getKnowledgeKnowledgebaseDocumentVersion';if(i==null||i==="")throw'Missing the required parameter "documentId" when calling getKnowledgeKnowledgebaseDocumentVersion';if(n==null||n==="")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:i,versionId:n},{expand:this.apiClient.buildCollectionParam(a.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getKnowledgeKnowledgebaseDocumentVersionVariation(e,i,n,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling getKnowledgeKnowledgebaseDocumentVersionVariation';if(i==null||i==="")throw'Missing the required parameter "documentId" when calling getKnowledgeKnowledgebaseDocumentVersionVariation';if(n==null||n==="")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:i,versionId:n,variationId:a},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}getKnowledgeKnowledgebaseDocumentVersionVariations(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling getKnowledgeKnowledgebaseDocumentVersionVariations';if(i==null||i==="")throw'Missing the required parameter "documentId" when calling getKnowledgeKnowledgebaseDocumentVersionVariations';if(n==null||n==="")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:i,versionId:n},{before:a.before,after:a.after,pageSize:a.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getKnowledgeKnowledgebaseDocumentVersions(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling getKnowledgeKnowledgebaseDocumentVersions';if(i==null||i==="")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:i},{before:n.before,after:n.after,pageSize:n.pageSize,expand:this.apiClient.buildCollectionParam(n.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getKnowledgeKnowledgebaseDocuments(e,i){if(i=i||{},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:i.before,after:i.after,pageSize:i.pageSize,interval:i.interval,documentId:this.apiClient.buildCollectionParam(i.documentId,"multi"),categoryId:this.apiClient.buildCollectionParam(i.categoryId,"multi"),includeSubcategories:i.includeSubcategories,includeDrafts:i.includeDrafts,labelIds:this.apiClient.buildCollectionParam(i.labelIds,"multi"),expand:this.apiClient.buildCollectionParam(i.expand,"multi"),externalIds:this.apiClient.buildCollectionParam(i.externalIds,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getKnowledgeKnowledgebaseExportJob(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling getKnowledgeKnowledgebaseExportJob';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getKnowledgeKnowledgebaseImportJob(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling getKnowledgeKnowledgebaseImportJob';if(i==null||i==="")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:i},{expand:this.apiClient.buildCollectionParam(n.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getKnowledgeKnowledgebaseLabel(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling getKnowledgeKnowledgebaseLabel';if(i==null||i==="")throw'Missing the required parameter "labelId" when calling getKnowledgeKnowledgebaseLabel';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/labels/{labelId}","GET",{knowledgeBaseId:e,labelId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getKnowledgeKnowledgebaseLabels(e,i){if(i=i||{},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:i.before,after:i.after,pageSize:i.pageSize,name:i.name,includeDocumentCount:i.includeDocumentCount},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getKnowledgeKnowledgebaseOperations(e,i){if(i=i||{},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:i.before,after:i.after,pageSize:i.pageSize,userId:this.apiClient.buildCollectionParam(i.userId,"multi"),type:this.apiClient.buildCollectionParam(i.type,"multi"),status:this.apiClient.buildCollectionParam(i.status,"multi"),interval:i.interval,sourceId:this.apiClient.buildCollectionParam(i.sourceId,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getKnowledgeKnowledgebaseOperationsUsersQuery(e,i){if(i=i||{},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"],i.customHeaders)}getKnowledgeKnowledgebaseParseJob(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling getKnowledgeKnowledgebaseParseJob';if(i==null||i==="")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:i},{expand:this.apiClient.buildCollectionParam(n.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getKnowledgeKnowledgebaseSources(e,i){if(i=i||{},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:i.type,expand:this.apiClient.buildCollectionParam(i.expand,"multi"),ids:this.apiClient.buildCollectionParam(i.ids,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getKnowledgeKnowledgebaseSourcesSalesforceSourceId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling getKnowledgeKnowledgebaseSourcesSalesforceSourceId';if(i==null||i==="")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:i},{expand:this.apiClient.buildCollectionParam(n.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getKnowledgeKnowledgebaseSourcesServicenowSourceId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling getKnowledgeKnowledgebaseSourcesServicenowSourceId';if(i==null||i==="")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:i},{expand:this.apiClient.buildCollectionParam(n.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getKnowledgeKnowledgebaseSynchronizeJob(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling getKnowledgeKnowledgebaseSynchronizeJob';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getKnowledgeKnowledgebaseUnansweredGroup(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling getKnowledgeKnowledgebaseUnansweredGroup';if(i==null||i==="")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:i},{app:n.app,dateStart:n.dateStart,dateEnd:n.dateEnd},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getKnowledgeKnowledgebaseUnansweredGroupPhrasegroup(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling getKnowledgeKnowledgebaseUnansweredGroupPhrasegroup';if(i==null||i==="")throw'Missing the required parameter "groupId" when calling getKnowledgeKnowledgebaseUnansweredGroupPhrasegroup';if(n==null||n==="")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:i,phraseGroupId:n},{app:a.app,dateStart:a.dateStart,dateEnd:a.dateEnd},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getKnowledgeKnowledgebaseUnansweredGroups(e,i){if(i=i||{},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:i.app,dateStart:i.dateStart,dateEnd:i.dateEnd},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getKnowledgeKnowledgebaseUploadsUrlsJob(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling getKnowledgeKnowledgebaseUploadsUrlsJob';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getKnowledgeSourceSynchronization(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "sourceId" when calling getKnowledgeSourceSynchronization';if(i==null||i==="")throw'Missing the required parameter "synchronizationId" when calling getKnowledgeSourceSynchronization';return this.apiClient.callApi("/api/v2/knowledge/sources/{sourceId}/synchronizations/{synchronizationId}","GET",{sourceId:e,synchronizationId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getKnowledgeSourceSynchronizations(e,i){if(i=i||{},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:i.before,after:i.after,pageSize:i.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "connectionId" when calling patchKnowledgeConnection';return this.apiClient.callApi("/api/v2/knowledge/connections/{connectionId}","PATCH",{connectionId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}patchKnowledgeGuestSessionDocumentsSearchSearchId(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "sessionId" when calling patchKnowledgeGuestSessionDocumentsSearchSearchId';if(i==null||i==="")throw'Missing the required parameter "searchId" when calling patchKnowledgeGuestSessionDocumentsSearchSearchId';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchKnowledgeKnowledgebase(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling patchKnowledgeKnowledgebase';if(i==null)throw'Missing the required parameter "body" when calling patchKnowledgeKnowledgebase';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}","PATCH",{knowledgeBaseId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchKnowledgeKnowledgebaseCategory(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling patchKnowledgeKnowledgebaseCategory';if(i==null||i==="")throw'Missing the required parameter "categoryId" when calling patchKnowledgeKnowledgebaseCategory';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchKnowledgeKnowledgebaseChunksSearchSearchId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling patchKnowledgeKnowledgebaseChunksSearchSearchId';if(i==null||i==="")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:i},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchKnowledgeKnowledgebaseDocument(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling patchKnowledgeKnowledgebaseDocument';if(i==null||i==="")throw'Missing the required parameter "documentId" when calling patchKnowledgeKnowledgebaseDocument';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchKnowledgeKnowledgebaseDocumentFeedbackFeedbackId(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling patchKnowledgeKnowledgebaseDocumentFeedbackFeedbackId';if(i==null||i==="")throw'Missing the required parameter "documentId" when calling patchKnowledgeKnowledgebaseDocumentFeedbackFeedbackId';if(n==null||n==="")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:i,feedbackId:n},{},{},{},a.body,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchKnowledgeKnowledgebaseDocumentVariation(e,i,n,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "documentVariationId" when calling patchKnowledgeKnowledgebaseDocumentVariation';if(i==null||i==="")throw'Missing the required parameter "documentId" when calling patchKnowledgeKnowledgebaseDocumentVariation';if(n==null||n==="")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:i,knowledgeBaseId:n},{},{},{},a,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}patchKnowledgeKnowledgebaseDocumentsSearchSearchId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling patchKnowledgeKnowledgebaseDocumentsSearchSearchId';if(i==null||i==="")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:i},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchKnowledgeKnowledgebaseImportJob(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling patchKnowledgeKnowledgebaseImportJob';if(i==null||i==="")throw'Missing the required parameter "importJobId" when calling patchKnowledgeKnowledgebaseImportJob';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchKnowledgeKnowledgebaseLabel(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling patchKnowledgeKnowledgebaseLabel';if(i==null||i==="")throw'Missing the required parameter "labelId" when calling patchKnowledgeKnowledgebaseLabel';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchKnowledgeKnowledgebaseParseJob(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling patchKnowledgeKnowledgebaseParseJob';if(i==null||i==="")throw'Missing the required parameter "parseJobId" when calling patchKnowledgeKnowledgebaseParseJob';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchKnowledgeKnowledgebaseSynchronizeJob(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling patchKnowledgeKnowledgebaseSynchronizeJob';if(i==null||i==="")throw'Missing the required parameter "syncJobId" when calling patchKnowledgeKnowledgebaseSynchronizeJob';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchKnowledgeKnowledgebaseUnansweredGroupPhrasegroup(e,i,n,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling patchKnowledgeKnowledgebaseUnansweredGroupPhrasegroup';if(i==null||i==="")throw'Missing the required parameter "groupId" when calling patchKnowledgeKnowledgebaseUnansweredGroupPhrasegroup';if(n==null||n==="")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:i,phraseGroupId:n},{},{},{},a,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}patchKnowledgeSetting(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeSettingId" when calling patchKnowledgeSetting';if(i==null)throw'Missing the required parameter "body" when calling patchKnowledgeSetting';return this.apiClient.callApi("/api/v2/knowledge/settings/{knowledgeSettingId}","PATCH",{knowledgeSettingId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchKnowledgeSourceSynchronization(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "sourceId" when calling patchKnowledgeSourceSynchronization';if(i==null||i==="")throw'Missing the required parameter "synchronizationId" when calling patchKnowledgeSourceSynchronization';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postKnowledgeConnections(e,i){if(i=i||{},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"],i.customHeaders)}postKnowledgeDocumentuploads(e,i){if(i=i||{},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"],i.customHeaders)}postKnowledgeGuestSessionDocumentCopies(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "sessionId" when calling postKnowledgeGuestSessionDocumentCopies';if(i==null||i==="")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:i},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postKnowledgeGuestSessionDocumentFeedback(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "sessionId" when calling postKnowledgeGuestSessionDocumentFeedback';if(i==null||i==="")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:i},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postKnowledgeGuestSessionDocumentViews(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "sessionId" when calling postKnowledgeGuestSessionDocumentViews';if(i==null||i==="")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:i},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postKnowledgeGuestSessionDocumentsAnswers(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "sessionId" when calling postKnowledgeGuestSessionDocumentsAnswers';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postKnowledgeGuestSessionDocumentsPresentations(e,i){if(i=i||{},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},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postKnowledgeGuestSessionDocumentsSearch(e,i){if(i=i||{},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(i.expand,"multi")},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postKnowledgeGuestSessionDocumentsSearchSuggestions(e,i){if(i=i||{},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},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postKnowledgeGuestSessions(e,i){if(i=i||{},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"],i.customHeaders)}postKnowledgeKnowledgebaseCategories(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseCategories';if(i==null)throw'Missing the required parameter "body" when calling postKnowledgeKnowledgebaseCategories';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/categories","POST",{knowledgeBaseId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postKnowledgeKnowledgebaseChunksSearch(e,i){if(i=i||{},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},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postKnowledgeKnowledgebaseDocumentCopies(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseDocumentCopies';if(i==null||i==="")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:i},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postKnowledgeKnowledgebaseDocumentFeedback(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseDocumentFeedback';if(i==null||i==="")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:i},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postKnowledgeKnowledgebaseDocumentVariations(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseDocumentVariations';if(i==null||i==="")throw'Missing the required parameter "documentId" when calling postKnowledgeKnowledgebaseDocumentVariations';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postKnowledgeKnowledgebaseDocumentVersions(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseDocumentVersions';if(i==null||i==="")throw'Missing the required parameter "documentId" when calling postKnowledgeKnowledgebaseDocumentVersions';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postKnowledgeKnowledgebaseDocumentViews(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseDocumentViews';if(i==null||i==="")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:i},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postKnowledgeKnowledgebaseDocuments(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseDocuments';if(i==null)throw'Missing the required parameter "body" when calling postKnowledgeKnowledgebaseDocuments';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/documents","POST",{knowledgeBaseId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postKnowledgeKnowledgebaseDocumentsAnswers(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseDocumentsAnswers';if(i==null)throw'Missing the required parameter "body" when calling postKnowledgeKnowledgebaseDocumentsAnswers';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/documents/answers","POST",{knowledgeBaseId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postKnowledgeKnowledgebaseDocumentsBulkRemove(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseDocumentsBulkRemove';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postKnowledgeKnowledgebaseDocumentsBulkUpdate(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseDocumentsBulkUpdate';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postKnowledgeKnowledgebaseDocumentsPresentations(e,i){if(i=i||{},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},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postKnowledgeKnowledgebaseDocumentsQuery(e,i){if(i=i||{},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(i.expand,"multi")},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postKnowledgeKnowledgebaseDocumentsSearch(e,i){if(i=i||{},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(i.expand,"multi")},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postKnowledgeKnowledgebaseDocumentsSearchSuggestions(e,i){if(i=i||{},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},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postKnowledgeKnowledgebaseDocumentsVersionsBulkAdd(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseDocumentsVersionsBulkAdd';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postKnowledgeKnowledgebaseExportJobs(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseExportJobs';if(i==null)throw'Missing the required parameter "body" when calling postKnowledgeKnowledgebaseExportJobs';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/export/jobs","POST",{knowledgeBaseId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postKnowledgeKnowledgebaseImportJobs(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseImportJobs';if(i==null)throw'Missing the required parameter "body" when calling postKnowledgeKnowledgebaseImportJobs';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/import/jobs","POST",{knowledgeBaseId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postKnowledgeKnowledgebaseLabels(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseLabels';if(i==null)throw'Missing the required parameter "body" when calling postKnowledgeKnowledgebaseLabels';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/labels","POST",{knowledgeBaseId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postKnowledgeKnowledgebaseParseJobImport(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseParseJobImport';if(i==null||i==="")throw'Missing the required parameter "parseJobId" when calling postKnowledgeKnowledgebaseParseJobImport';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postKnowledgeKnowledgebaseParseJobs(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseParseJobs';if(i==null)throw'Missing the required parameter "body" when calling postKnowledgeKnowledgebaseParseJobs';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/parse/jobs","POST",{knowledgeBaseId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postKnowledgeKnowledgebaseSourcesSalesforce(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseSourcesSalesforce';if(i==null)throw'Missing the required parameter "body" when calling postKnowledgeKnowledgebaseSourcesSalesforce';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/sources/salesforce","POST",{knowledgeBaseId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postKnowledgeKnowledgebaseSourcesSalesforceSourceIdSync(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseSourcesSalesforceSourceIdSync';if(i==null||i==="")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:i},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postKnowledgeKnowledgebaseSourcesServicenow(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseSourcesServicenow';if(i==null)throw'Missing the required parameter "body" when calling postKnowledgeKnowledgebaseSourcesServicenow';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/sources/servicenow","POST",{knowledgeBaseId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postKnowledgeKnowledgebaseSourcesServicenowSourceIdSync(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseSourcesServicenowSourceIdSync';if(i==null||i==="")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:i},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postKnowledgeKnowledgebaseSynchronizeJobs(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseSynchronizeJobs';if(i==null)throw'Missing the required parameter "body" when calling postKnowledgeKnowledgebaseSynchronizeJobs';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/synchronize/jobs","POST",{knowledgeBaseId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postKnowledgeKnowledgebaseUploadsUrlsJobs(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseUploadsUrlsJobs';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postKnowledgeKnowledgebases(e,i){if(i=i||{},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"],i.customHeaders)}postKnowledgeSearch(e){return e=e||{},this.apiClient.callApi("/api/v2/knowledge/search","POST",{},{},{},{},e.body,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}postKnowledgeSearchPreview(e){return e=e||{},this.apiClient.callApi("/api/v2/knowledge/search/preview","POST",{},{},{},{},e.body,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}postKnowledgeSettings(e){return e=e||{},this.apiClient.callApi("/api/v2/knowledge/settings","POST",{},{},{},{},e.body,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}postKnowledgeSourceSynchronizationUploads(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "sourceId" when calling postKnowledgeSourceSynchronizationUploads';if(i==null||i==="")throw'Missing the required parameter "synchronizationId" when calling postKnowledgeSourceSynchronizationUploads';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postKnowledgeSourceSynchronizations(e,i){if(i=i||{},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},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postKnowledgeSources(e,i){if(i=i||{},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"],i.customHeaders)}putKnowledgeKnowledgebaseSourcesSalesforceSourceId(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling putKnowledgeKnowledgebaseSourcesSalesforceSourceId';if(i==null||i==="")throw'Missing the required parameter "sourceId" when calling putKnowledgeKnowledgebaseSourcesSalesforceSourceId';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}putKnowledgeKnowledgebaseSourcesServicenowSourceId(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling putKnowledgeKnowledgebaseSourcesServicenowSourceId';if(i==null||i==="")throw'Missing the required parameter "sourceId" when calling putKnowledgeKnowledgebaseSourcesServicenowSourceId';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}putKnowledgeSource(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "sourceId" when calling putKnowledgeSource';if(i==null)throw'Missing the required parameter "body" when calling putKnowledgeSource';return this.apiClient.callApi("/api/v2/knowledge/sources/{sourceId}","PUT",{sourceId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}},pb=class{constructor(e){this.apiClient=e||q.instance}deleteLanguageunderstandingDomain(e,i){if(i=i||{},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"],i.customHeaders)}deleteLanguageunderstandingDomainFeedbackFeedbackId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "domainId" when calling deleteLanguageunderstandingDomainFeedbackFeedbackId';if(i==null||i==="")throw'Missing the required parameter "feedbackId" when calling deleteLanguageunderstandingDomainFeedbackFeedbackId';return this.apiClient.callApi("/api/v2/languageunderstanding/domains/{domainId}/feedback/{feedbackId}","DELETE",{domainId:e,feedbackId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteLanguageunderstandingDomainVersion(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "domainId" when calling deleteLanguageunderstandingDomainVersion';if(i==null||i==="")throw'Missing the required parameter "domainVersionId" when calling deleteLanguageunderstandingDomainVersion';return this.apiClient.callApi("/api/v2/languageunderstanding/domains/{domainId}/versions/{domainVersionId}","DELETE",{domainId:e,domainVersionId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteLanguageunderstandingMiner(e,i){if(i=i||{},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"],i.customHeaders)}deleteLanguageunderstandingMinerDraft(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "minerId" when calling deleteLanguageunderstandingMinerDraft';if(i==null||i==="")throw'Missing the required parameter "draftId" when calling deleteLanguageunderstandingMinerDraft';return this.apiClient.callApi("/api/v2/languageunderstanding/miners/{minerId}/drafts/{draftId}","DELETE",{minerId:e,draftId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getLanguageunderstandingDomain(e,i){if(i=i||{},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"],i.customHeaders)}getLanguageunderstandingDomainFeedback(e,i){if(i=i||{},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:i.intentName,assessment:i.assessment,dateStart:i.dateStart,dateEnd:i.dateEnd,includeDeleted:i.includeDeleted,language:i.language,pageNumber:i.pageNumber,pageSize:i.pageSize,enableCursorPagination:i.enableCursorPagination,includeTrainingUtterances:i.includeTrainingUtterances,after:i.after,fields:this.apiClient.buildCollectionParam(i.fields,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getLanguageunderstandingDomainFeedbackFeedbackId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "domainId" when calling getLanguageunderstandingDomainFeedbackFeedbackId';if(i==null||i==="")throw'Missing the required parameter "feedbackId" when calling getLanguageunderstandingDomainFeedbackFeedbackId';return this.apiClient.callApi("/api/v2/languageunderstanding/domains/{domainId}/feedback/{feedbackId}","GET",{domainId:e,feedbackId:i},{fields:this.apiClient.buildCollectionParam(n.fields,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getLanguageunderstandingDomainVersion(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "domainId" when calling getLanguageunderstandingDomainVersion';if(i==null||i==="")throw'Missing the required parameter "domainVersionId" when calling getLanguageunderstandingDomainVersion';return this.apiClient.callApi("/api/v2/languageunderstanding/domains/{domainId}/versions/{domainVersionId}","GET",{domainId:e,domainVersionId:i},{includeUtterances:n.includeUtterances},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getLanguageunderstandingDomainVersionReport(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "domainId" when calling getLanguageunderstandingDomainVersionReport';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getLanguageunderstandingDomainVersions(e,i){if(i=i||{},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:i.includeUtterances,pageNumber:i.pageNumber,pageSize:i.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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:i.pageSize,pageNumber:i.pageNumber,text:i.text,sortOrder:i.sortOrder,sortBy:i.sortBy},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getLanguageunderstandingIgnoretopic(e,i){if(i=i||{},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:i.pageSize,pageNumber:i.pageNumber,text:i.text,sortOrder:i.sortOrder,sortBy:i.sortBy},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getLanguageunderstandingMiner(e,i){if(i=i||{},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"],i.customHeaders)}getLanguageunderstandingMinerDraft(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "minerId" when calling getLanguageunderstandingMinerDraft';if(i==null||i==="")throw'Missing the required parameter "draftId" when calling getLanguageunderstandingMinerDraft';return this.apiClient.callApi("/api/v2/languageunderstanding/miners/{minerId}/drafts/{draftId}","GET",{minerId:e,draftId:i},{draftIntentId:n.draftIntentId,draftTopicId:n.draftTopicId},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getLanguageunderstandingMinerDrafts(e,i){if(i=i||{},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"],i.customHeaders)}getLanguageunderstandingMinerIntent(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "minerId" when calling getLanguageunderstandingMinerIntent';if(i==null||i==="")throw'Missing the required parameter "intentId" when calling getLanguageunderstandingMinerIntent';return this.apiClient.callApi("/api/v2/languageunderstanding/miners/{minerId}/intents/{intentId}","GET",{minerId:e,intentId:i},{expand:n.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getLanguageunderstandingMinerIntents(e,i){if(i=i||{},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:i.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getLanguageunderstandingMinerTopic(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "minerId" when calling getLanguageunderstandingMinerTopic';if(i==null||i==="")throw'Missing the required parameter "topicId" when calling getLanguageunderstandingMinerTopic';return this.apiClient.callApi("/api/v2/languageunderstanding/miners/{minerId}/topics/{topicId}","GET",{minerId:e,topicId:i},{expand:n.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getLanguageunderstandingMinerTopicPhrase(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "minerId" when calling getLanguageunderstandingMinerTopicPhrase';if(i==null||i==="")throw'Missing the required parameter "topicId" when calling getLanguageunderstandingMinerTopicPhrase';if(n==null||n==="")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:i,phraseId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getLanguageunderstandingMinerTopics(e,i){if(i=i||{},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"],i.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,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "domainId" when calling patchLanguageunderstandingDomain';if(i==null)throw'Missing the required parameter "body" when calling patchLanguageunderstandingDomain';return this.apiClient.callApi("/api/v2/languageunderstanding/domains/{domainId}","PATCH",{domainId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchLanguageunderstandingMinerDraft(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "minerId" when calling patchLanguageunderstandingMinerDraft';if(i==null||i==="")throw'Missing the required parameter "draftId" when calling patchLanguageunderstandingMinerDraft';return this.apiClient.callApi("/api/v2/languageunderstanding/miners/{minerId}/drafts/{draftId}","PATCH",{minerId:e,draftId:i},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postLanguageunderstandingDomainFeedback(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "domainId" when calling postLanguageunderstandingDomainFeedback';if(i==null)throw'Missing the required parameter "body" when calling postLanguageunderstandingDomainFeedback';return this.apiClient.callApi("/api/v2/languageunderstanding/domains/{domainId}/feedback","POST",{domainId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postLanguageunderstandingDomainVersionDetect(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "domainId" when calling postLanguageunderstandingDomainVersionDetect';if(i==null||i==="")throw'Missing the required parameter "domainVersionId" when calling postLanguageunderstandingDomainVersionDetect';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postLanguageunderstandingDomainVersionPublish(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "domainId" when calling postLanguageunderstandingDomainVersionPublish';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postLanguageunderstandingDomainVersionTrain(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "domainId" when calling postLanguageunderstandingDomainVersionTrain';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postLanguageunderstandingDomainVersions(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "domainId" when calling postLanguageunderstandingDomainVersions';if(i==null)throw'Missing the required parameter "body" when calling postLanguageunderstandingDomainVersions';return this.apiClient.callApi("/api/v2/languageunderstanding/domains/{domainId}/versions","POST",{domainId:e},{includeUtterances:n.includeUtterances},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postLanguageunderstandingDomains(e,i){if(i=i||{},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"],i.customHeaders)}postLanguageunderstandingIgnorephrase(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "languageCode" when calling postLanguageunderstandingIgnorephrase';if(i==null)throw'Missing the required parameter "body" when calling postLanguageunderstandingIgnorephrase';return this.apiClient.callApi("/api/v2/languageunderstanding/ignorephrases/{languageCode}","POST",{languageCode:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postLanguageunderstandingIgnorephraseRemove(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "languageCode" when calling postLanguageunderstandingIgnorephraseRemove';if(i==null)throw'Missing the required parameter "body" when calling postLanguageunderstandingIgnorephraseRemove';return this.apiClient.callApi("/api/v2/languageunderstanding/ignorephrases/{languageCode}/remove","POST",{languageCode:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postLanguageunderstandingIgnoretopic(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "languageCode" when calling postLanguageunderstandingIgnoretopic';if(i==null)throw'Missing the required parameter "body" when calling postLanguageunderstandingIgnoretopic';return this.apiClient.callApi("/api/v2/languageunderstanding/ignoretopics/{languageCode}","POST",{languageCode:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postLanguageunderstandingIgnoretopicRemove(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "languageCode" when calling postLanguageunderstandingIgnoretopicRemove';if(i==null)throw'Missing the required parameter "body" when calling postLanguageunderstandingIgnoretopicRemove';return this.apiClient.callApi("/api/v2/languageunderstanding/ignoretopics/{languageCode}/remove","POST",{languageCode:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postLanguageunderstandingMinerDrafts(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "minerId" when calling postLanguageunderstandingMinerDrafts';if(i==null)throw'Missing the required parameter "body" when calling postLanguageunderstandingMinerDrafts';return this.apiClient.callApi("/api/v2/languageunderstanding/miners/{minerId}/drafts","POST",{minerId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postLanguageunderstandingMinerExecute(e,i){if(i=i||{},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},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postLanguageunderstandingMiners(e,i){if(i=i||{},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"],i.customHeaders)}putLanguageunderstandingDomainVersion(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "domainId" when calling putLanguageunderstandingDomainVersion';if(i==null||i==="")throw'Missing the required parameter "domainVersionId" when calling putLanguageunderstandingDomainVersion';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}},db=class{constructor(e){this.apiClient=e||q.instance}deleteLanguage(e,i){if(i=i||{},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"],i.customHeaders)}getLanguage(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getLanguagesTranslationsOrganization(e,i){if(i=i||{},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"],i.customHeaders)}getLanguagesTranslationsUser(e,i){if(i=i||{},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"],i.customHeaders)}postLanguages(e,i){if(i=i||{},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"],i.customHeaders)}},hb=class{constructor(e){this.apiClient=e||q.instance}deleteLearningAssignment(e,i){if(i=i||{},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"],i.customHeaders)}deleteLearningModule(e,i){if(i=i||{},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"],i.customHeaders)}getLearningAssignment(e,i){if(i=i||{},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(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getLearningAssignmentStep(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "assignmentId" when calling getLearningAssignmentStep';if(i==null||i==="")throw'Missing the required parameter "stepId" when calling getLearningAssignmentStep';return this.apiClient.callApi("/api/v2/learning/assignments/{assignmentId}/steps/{stepId}","GET",{assignmentId:e,stepId:i},{shareableContentObjectId:n.shareableContentObjectId,defaultShareableContentObject:n.defaultShareableContentObject,expand:this.apiClient.buildCollectionParam(n.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.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,i){if(i=i||{},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(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getLearningModuleJob(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "moduleId" when calling getLearningModuleJob';if(i==null||i==="")throw'Missing the required parameter "jobId" when calling getLearningModuleJob';return this.apiClient.callApi("/api/v2/learning/modules/{moduleId}/jobs/{jobId}","GET",{moduleId:e,jobId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getLearningModulePreview(e,i){if(i=i||{},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"],i.customHeaders)}getLearningModuleRule(e,i){if(i=i||{},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"],i.customHeaders)}getLearningModuleVersion(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "moduleId" when calling getLearningModuleVersion';if(i==null||i==="")throw'Missing the required parameter "versionId" when calling getLearningModuleVersion';return this.apiClient.callApi("/api/v2/learning/modules/{moduleId}/versions/{versionId}","GET",{moduleId:e,versionId:i},{expand:this.apiClient.buildCollectionParam(n.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getLearningModules(e){return e=e||{},this.apiClient.callApi("/api/v2/learning/modules","GET",{},{isArchived:e.isArchived,types:this.apiClient.buildCollectionParam(e.types,"multi"),pageSize:e.pageSize,pageNumber:e.pageNumber,sortOrder:e.sortOrder,sortBy:e.sortBy,searchTerm:e.searchTerm,expand:this.apiClient.buildCollectionParam(e.expand,"multi"),isPublished:e.isPublished,statuses:this.apiClient.buildCollectionParam(e.statuses,"multi"),externalIds:this.apiClient.buildCollectionParam(e.externalIds,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getLearningModulesAssignments(e,i){if(i=i||{},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:i.pageSize,pageNumber:i.pageNumber,searchTerm:i.searchTerm,overdue:i.overdue,assignmentStates:this.apiClient.buildCollectionParam(i.assignmentStates,"multi"),expand:this.apiClient.buildCollectionParam(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getLearningModulesCoverartCoverArtId(e,i){if(i=i||{},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"],i.customHeaders)}getLearningScheduleslotsJob(e,i){if(i=i||{},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"],i.customHeaders)}getLearningScormScormId(e,i){if(i=i||{},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"],i.customHeaders)}patchLearningAssignment(e,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "assignmentId" when calling patchLearningAssignment';return this.apiClient.callApi("/api/v2/learning/assignments/{assignmentId}","PATCH",{assignmentId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}patchLearningAssignmentReschedule(e,i){if(i=i||{},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},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}patchLearningAssignmentStep(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "assignmentId" when calling patchLearningAssignmentStep';if(i==null||i==="")throw'Missing the required parameter "stepId" when calling patchLearningAssignmentStep';return this.apiClient.callApi("/api/v2/learning/assignments/{assignmentId}/steps/{stepId}","PATCH",{assignmentId:e,stepId:i},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchLearningModuleUserAssignments(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "moduleId" when calling patchLearningModuleUserAssignments';if(i==null||i==="")throw'Missing the required parameter "userId" when calling patchLearningModuleUserAssignments';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postLearningAssessmentsScoring(e,i){if(i=i||{},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"],i.customHeaders)}postLearningAssignmentReassign(e,i){if(i=i||{},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"],i.customHeaders)}postLearningAssignmentReset(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "moduleId" when calling postLearningModuleJobs';if(i==null)throw'Missing the required parameter "body" when calling postLearningModuleJobs';return this.apiClient.callApi("/api/v2/learning/modules/{moduleId}/jobs","POST",{moduleId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postLearningModulePublish(e,i){if(i=i||{},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},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postLearningModuleRuleMigrate(e,i){if(i=i||{},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"],i.customHeaders)}postLearningModules(e,i){if(i=i||{},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"],i.customHeaders)}postLearningRulesQuery(e,i,n,a){if(a=a||{},e==null)throw'Missing the required parameter "pageSize" when calling postLearningRulesQuery';if(i==null)throw'Missing the required parameter "pageNumber" when calling postLearningRulesQuery';if(n==null)throw'Missing the required parameter "body" when calling postLearningRulesQuery';return this.apiClient.callApi("/api/v2/learning/rules/query","POST",{},{pageSize:e,pageNumber:i},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postLearningScheduleslotsJobs(e,i){if(i=i||{},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"],i.customHeaders)}postLearningScheduleslotsQuery(e,i){if(i=i||{},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"],i.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,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "moduleId" when calling putLearningModule';if(i==null)throw'Missing the required parameter "body" when calling putLearningModule';return this.apiClient.callApi("/api/v2/learning/modules/{moduleId}","PUT",{moduleId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putLearningModulePreview(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "moduleId" when calling putLearningModulePreview';if(i==null)throw'Missing the required parameter "body" when calling putLearningModulePreview';return this.apiClient.callApi("/api/v2/learning/modules/{moduleId}/preview","PUT",{moduleId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putLearningModuleRule(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "moduleId" when calling putLearningModuleRule';if(i==null)throw'Missing the required parameter "body" when calling putLearningModuleRule';return this.apiClient.callApi("/api/v2/learning/modules/{moduleId}/rule","PUT",{moduleId:e},{assign:n.assign},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}},gb=class{constructor(e){this.apiClient=e||q.instance}getLicenseDefinition(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getLicenseUser(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}postLicenseUsers(e){return e=e||{},this.apiClient.callApi("/api/v2/license/users","POST",{},{},{},{},e.body,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}},mb=class{constructor(e){this.apiClient=e||q.instance}deleteLocation(e,i){if(i=i||{},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"],i.customHeaders)}getLocation(e,i){if(i=i||{},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(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getLocationSublocations(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}patchLocation(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "locationId" when calling patchLocation';if(i==null)throw'Missing the required parameter "body" when calling patchLocation';return this.apiClient.callApi("/api/v2/locations/{locationId}","PATCH",{locationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postLocations(e,i){if(i=i||{},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"],i.customHeaders)}postLocationsSearch(e,i){if(i=i||{},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"],i.customHeaders)}},fb=class{constructor(e){this.apiClient=e||q.instance}deleteDiagnosticsLogcaptureBrowserUser(e,i){if(i=i||{},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"],i.customHeaders)}getDiagnosticsLogcaptureBrowserEntriesDownloadJob(e,i){if(i=i||{},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"],i.customHeaders)}getDiagnosticsLogcaptureBrowserUser(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}},wb=class{constructor(e){this.apiClient=e||q.instance}deleteMessagingSetting(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getMessagingSetting(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}patchMessagingSetting(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "messageSettingId" when calling patchMessagingSetting';if(i==null)throw'Missing the required parameter "body" when calling patchMessagingSetting';return this.apiClient.callApi("/api/v2/messaging/settings/{messageSettingId}","PATCH",{messageSettingId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchMessagingSupportedcontentSupportedContentId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "supportedContentId" when calling patchMessagingSupportedcontentSupportedContentId';if(i==null)throw'Missing the required parameter "body" when calling patchMessagingSupportedcontentSupportedContentId';return this.apiClient.callApi("/api/v2/messaging/supportedcontent/{supportedContentId}","PATCH",{supportedContentId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postMessagingSettings(e,i){if(i=i||{},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"],i.customHeaders)}postMessagingSupportedcontent(e,i){if(i=i||{},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"],i.customHeaders)}putMessagingSettingsDefault(e,i){if(i=i||{},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"],i.customHeaders)}},vb=class{constructor(e){this.apiClient=e||q.instance}deleteMobiledevice(e,i){if(i=i||{},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"],i.customHeaders)}getMobiledevice(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}putMobiledevice(e,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "deviceId" when calling putMobiledevice';return this.apiClient.callApi("/api/v2/mobiledevices/{deviceId}","PUT",{deviceId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}},Cb=class{constructor(e){this.apiClient=e||q.instance}deleteNotificationsChannelSubscriptions(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}postNotificationsChannelSubscriptions(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "channelId" when calling postNotificationsChannelSubscriptions';if(i==null)throw'Missing the required parameter "body" when calling postNotificationsChannelSubscriptions';return this.apiClient.callApi("/api/v2/notifications/channels/{channelId}/subscriptions","POST",{channelId:e},{ignoreErrors:n.ignoreErrors},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.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,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "channelId" when calling putNotificationsChannelSubscriptions';if(i==null)throw'Missing the required parameter "body" when calling putNotificationsChannelSubscriptions';return this.apiClient.callApi("/api/v2/notifications/channels/{channelId}/subscriptions","PUT",{channelId:e},{ignoreErrors:n.ignoreErrors},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}},Ab=class{constructor(e){this.apiClient=e||q.instance}deleteOauthClient(e,i){if(i=i||{},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"],i.customHeaders)}getOauthAuthorization(e,i){if(i=i||{},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":i.acceptLanguage},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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"],i.customHeaders)}getOauthClientUsageQueryResult(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "executionId" when calling getOauthClientUsageQueryResult';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getOauthClientUsageSummary(e,i){if(i=i||{},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:i.days},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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":i.acceptLanguage},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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"],i.customHeaders)}postOauthClientUsageQuery(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "clientId" when calling postOauthClientUsageQuery';if(i==null)throw'Missing the required parameter "body" when calling postOauthClientUsageQuery';return this.apiClient.callApi("/api/v2/oauth/clients/{clientId}/usage/query","POST",{clientId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postOauthClients(e,i){if(i=i||{},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"],i.customHeaders)}putOauthClient(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "clientId" when calling putOauthClient';if(i==null)throw'Missing the required parameter "body" when calling putOauthClient';return this.apiClient.callApi("/api/v2/oauth/clients/{clientId}","PUT",{clientId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}},bb=class{constructor(e){this.apiClient=e||q.instance}deleteAuthorizationDivision(e,i){if(i=i||{},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:i.force},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getAuthorizationDivision(e,i){if(i=i||{},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:i.objectCount},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "divisionId" when calling postAuthorizationDivisionObject';if(i==null||i==="")throw'Missing the required parameter "objectType" when calling postAuthorizationDivisionObject';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postAuthorizationDivisionRestore(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "divisionId" when calling postAuthorizationDivisionRestore';if(i==null)throw'Missing the required parameter "body" when calling postAuthorizationDivisionRestore';return this.apiClient.callApi("/api/v2/authorization/divisions/{divisionId}/restore","POST",{divisionId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postAuthorizationDivisions(e,i){if(i=i||{},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"],i.customHeaders)}putAuthorizationDivision(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "divisionId" when calling putAuthorizationDivision';if(i==null)throw'Missing the required parameter "body" when calling putAuthorizationDivision';return this.apiClient.callApi("/api/v2/authorization/divisions/{divisionId}","PUT",{divisionId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}},yb=class{constructor(e){this.apiClient=e||q.instance}getUsageEventsDefinition(e,i){if(i=i||{},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"],i.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)}},Pb=class{constructor(e){this.apiClient=e||q.instance}getFieldconfig(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getOrganizationsLimitsNamespaceDefaults(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}patchOrganizationsFeature(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "featureName" when calling patchOrganizationsFeature';if(i==null)throw'Missing the required parameter "enabled" when calling patchOrganizationsFeature';return this.apiClient.callApi("/api/v2/organizations/features/{featureName}","PATCH",{featureName:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putOrganizationsEmbeddedintegration(e,i){if(i=i||{},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"],i.customHeaders)}putOrganizationsIpaddressauthentication(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}},jb=class{constructor(e){this.apiClient=e||q.instance}deleteOrgauthorizationTrustee(e,i){if(i=i||{},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"],i.customHeaders)}deleteOrgauthorizationTrusteeCloneduser(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "trusteeOrgId" when calling deleteOrgauthorizationTrusteeCloneduser';if(i==null||i==="")throw'Missing the required parameter "trusteeUserId" when calling deleteOrgauthorizationTrusteeCloneduser';return this.apiClient.callApi("/api/v2/orgauthorization/trustees/{trusteeOrgId}/clonedusers/{trusteeUserId}","DELETE",{trusteeOrgId:e,trusteeUserId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteOrgauthorizationTrusteeGroup(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "trusteeOrgId" when calling deleteOrgauthorizationTrusteeGroup';if(i==null||i==="")throw'Missing the required parameter "trusteeGroupId" when calling deleteOrgauthorizationTrusteeGroup';return this.apiClient.callApi("/api/v2/orgauthorization/trustees/{trusteeOrgId}/groups/{trusteeGroupId}","DELETE",{trusteeOrgId:e,trusteeGroupId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteOrgauthorizationTrusteeGroupRoles(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "trusteeOrgId" when calling deleteOrgauthorizationTrusteeGroupRoles';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteOrgauthorizationTrusteeUser(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "trusteeOrgId" when calling deleteOrgauthorizationTrusteeUser';if(i==null||i==="")throw'Missing the required parameter "trusteeUserId" when calling deleteOrgauthorizationTrusteeUser';return this.apiClient.callApi("/api/v2/orgauthorization/trustees/{trusteeOrgId}/users/{trusteeUserId}","DELETE",{trusteeOrgId:e,trusteeUserId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteOrgauthorizationTrusteeUserRoles(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "trusteeOrgId" when calling deleteOrgauthorizationTrusteeUserRoles';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteOrgauthorizationTrustees(e,i){if(i=i||{},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"],i.customHeaders)}deleteOrgauthorizationTrustor(e,i){if(i=i||{},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"],i.customHeaders)}deleteOrgauthorizationTrustorCloneduser(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "trustorOrgId" when calling deleteOrgauthorizationTrustorCloneduser';if(i==null||i==="")throw'Missing the required parameter "trusteeUserId" when calling deleteOrgauthorizationTrustorCloneduser';return this.apiClient.callApi("/api/v2/orgauthorization/trustors/{trustorOrgId}/clonedusers/{trusteeUserId}","DELETE",{trustorOrgId:e,trusteeUserId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteOrgauthorizationTrustorGroup(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "trustorOrgId" when calling deleteOrgauthorizationTrustorGroup';if(i==null||i==="")throw'Missing the required parameter "trustorGroupId" when calling deleteOrgauthorizationTrustorGroup';return this.apiClient.callApi("/api/v2/orgauthorization/trustors/{trustorOrgId}/groups/{trustorGroupId}","DELETE",{trustorOrgId:e,trustorGroupId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteOrgauthorizationTrustorUser(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "trustorOrgId" when calling deleteOrgauthorizationTrustorUser';if(i==null||i==="")throw'Missing the required parameter "trusteeUserId" when calling deleteOrgauthorizationTrustorUser';return this.apiClient.callApi("/api/v2/orgauthorization/trustors/{trustorOrgId}/users/{trusteeUserId}","DELETE",{trustorOrgId:e,trusteeUserId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteOrgauthorizationTrustors(e,i){if(i=i||{},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"],i.customHeaders)}getOrgauthorizationPairing(e,i){if(i=i||{},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"],i.customHeaders)}getOrgauthorizationTrustee(e,i){if(i=i||{},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"],i.customHeaders)}getOrgauthorizationTrusteeClonedusers(e,i){if(i=i||{},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"],i.customHeaders)}getOrgauthorizationTrusteeGroup(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "trusteeOrgId" when calling getOrgauthorizationTrusteeGroup';if(i==null||i==="")throw'Missing the required parameter "trusteeGroupId" when calling getOrgauthorizationTrusteeGroup';return this.apiClient.callApi("/api/v2/orgauthorization/trustees/{trusteeOrgId}/groups/{trusteeGroupId}","GET",{trusteeOrgId:e,trusteeGroupId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getOrgauthorizationTrusteeGroupRoles(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "trusteeOrgId" when calling getOrgauthorizationTrusteeGroupRoles';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getOrgauthorizationTrusteeGroups(e,i){if(i=i||{},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:i.pageSize,pageNumber:i.pageNumber},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getOrgauthorizationTrusteeUser(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "trusteeOrgId" when calling getOrgauthorizationTrusteeUser';if(i==null||i==="")throw'Missing the required parameter "trusteeUserId" when calling getOrgauthorizationTrusteeUser';return this.apiClient.callApi("/api/v2/orgauthorization/trustees/{trusteeOrgId}/users/{trusteeUserId}","GET",{trusteeOrgId:e,trusteeUserId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getOrgauthorizationTrusteeUserRoles(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "trusteeOrgId" when calling getOrgauthorizationTrusteeUserRoles';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getOrgauthorizationTrusteeUsers(e,i){if(i=i||{},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:i.pageSize,pageNumber:i.pageNumber},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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"],i.customHeaders)}getOrgauthorizationTrustorCloneduser(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "trustorOrgId" when calling getOrgauthorizationTrustorCloneduser';if(i==null||i==="")throw'Missing the required parameter "trusteeUserId" when calling getOrgauthorizationTrustorCloneduser';return this.apiClient.callApi("/api/v2/orgauthorization/trustors/{trustorOrgId}/clonedusers/{trusteeUserId}","GET",{trustorOrgId:e,trusteeUserId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getOrgauthorizationTrustorClonedusers(e,i){if(i=i||{},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"],i.customHeaders)}getOrgauthorizationTrustorGroup(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "trustorOrgId" when calling getOrgauthorizationTrustorGroup';if(i==null||i==="")throw'Missing the required parameter "trustorGroupId" when calling getOrgauthorizationTrustorGroup';return this.apiClient.callApi("/api/v2/orgauthorization/trustors/{trustorOrgId}/groups/{trustorGroupId}","GET",{trustorOrgId:e,trustorGroupId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getOrgauthorizationTrustorGroups(e,i){if(i=i||{},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:i.pageSize,pageNumber:i.pageNumber},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getOrgauthorizationTrustorUser(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "trustorOrgId" when calling getOrgauthorizationTrustorUser';if(i==null||i==="")throw'Missing the required parameter "trusteeUserId" when calling getOrgauthorizationTrustorUser';return this.apiClient.callApi("/api/v2/orgauthorization/trustors/{trustorOrgId}/users/{trusteeUserId}","GET",{trustorOrgId:e,trusteeUserId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getOrgauthorizationTrustorUsers(e,i){if(i=i||{},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:i.pageSize,pageNumber:i.pageNumber},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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"],i.customHeaders)}postOrgauthorizationTrusteeGroups(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "trusteeOrgId" when calling postOrgauthorizationTrusteeGroups';if(i==null)throw'Missing the required parameter "body" when calling postOrgauthorizationTrusteeGroups';return this.apiClient.callApi("/api/v2/orgauthorization/trustees/{trusteeOrgId}/groups","POST",{trusteeOrgId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postOrgauthorizationTrusteeUsers(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "trusteeOrgId" when calling postOrgauthorizationTrusteeUsers';if(i==null)throw'Missing the required parameter "body" when calling postOrgauthorizationTrusteeUsers';return this.apiClient.callApi("/api/v2/orgauthorization/trustees/{trusteeOrgId}/users","POST",{trusteeOrgId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postOrgauthorizationTrustees(e,i){if(i=i||{},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"],i.customHeaders)}postOrgauthorizationTrusteesAudits(e,i){if(i=i||{},e==null)throw'Missing the required parameter "body" when calling postOrgauthorizationTrusteesAudits';return this.apiClient.callApi("/api/v2/orgauthorization/trustees/audits","POST",{},{pageSize:i.pageSize,pageNumber:i.pageNumber,sortBy:i.sortBy,sortOrder:i.sortOrder},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},e==null)throw'Missing the required parameter "body" when calling postOrgauthorizationTrustorAudits';return this.apiClient.callApi("/api/v2/orgauthorization/trustor/audits","POST",{},{pageSize:i.pageSize,pageNumber:i.pageNumber,sortBy:i.sortBy,sortOrder:i.sortOrder},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}putOrgauthorizationTrustee(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "trusteeOrgId" when calling putOrgauthorizationTrustee';if(i==null)throw'Missing the required parameter "body" when calling putOrgauthorizationTrustee';return this.apiClient.callApi("/api/v2/orgauthorization/trustees/{trusteeOrgId}","PUT",{trusteeOrgId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putOrgauthorizationTrusteeGroupRoledivisions(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "trusteeOrgId" when calling putOrgauthorizationTrusteeGroupRoledivisions';if(i==null||i==="")throw'Missing the required parameter "trusteeGroupId" when calling putOrgauthorizationTrusteeGroupRoledivisions';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}putOrgauthorizationTrusteeGroupRoles(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "trusteeOrgId" when calling putOrgauthorizationTrusteeGroupRoles';if(i==null||i==="")throw'Missing the required parameter "trusteeGroupId" when calling putOrgauthorizationTrusteeGroupRoles';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}putOrgauthorizationTrusteeUserRoledivisions(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "trusteeOrgId" when calling putOrgauthorizationTrusteeUserRoledivisions';if(i==null||i==="")throw'Missing the required parameter "trusteeUserId" when calling putOrgauthorizationTrusteeUserRoledivisions';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}putOrgauthorizationTrusteeUserRoles(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "trusteeOrgId" when calling putOrgauthorizationTrusteeUserRoles';if(i==null||i==="")throw'Missing the required parameter "trusteeUserId" when calling putOrgauthorizationTrusteeUserRoles';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}putOrgauthorizationTrustorCloneduser(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "trustorOrgId" when calling putOrgauthorizationTrustorCloneduser';if(i==null||i==="")throw'Missing the required parameter "trusteeUserId" when calling putOrgauthorizationTrustorCloneduser';return this.apiClient.callApi("/api/v2/orgauthorization/trustors/{trustorOrgId}/clonedusers/{trusteeUserId}","PUT",{trustorOrgId:e,trusteeUserId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putOrgauthorizationTrustorGroup(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "trustorOrgId" when calling putOrgauthorizationTrustorGroup';if(i==null||i==="")throw'Missing the required parameter "trustorGroupId" when calling putOrgauthorizationTrustorGroup';return this.apiClient.callApi("/api/v2/orgauthorization/trustors/{trustorOrgId}/groups/{trustorGroupId}","PUT",{trustorOrgId:e,trustorGroupId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putOrgauthorizationTrustorUser(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "trustorOrgId" when calling putOrgauthorizationTrustorUser';if(i==null||i==="")throw'Missing the required parameter "trusteeUserId" when calling putOrgauthorizationTrustorUser';return this.apiClient.callApi("/api/v2/orgauthorization/trustors/{trustorOrgId}/users/{trusteeUserId}","PUT",{trustorOrgId:e,trusteeUserId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}},Sb=class{constructor(e){this.apiClient=e||q.instance}deleteOutboundAttemptlimit(e,i){if(i=i||{},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"],i.customHeaders)}deleteOutboundCallabletimeset(e,i){if(i=i||{},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"],i.customHeaders)}deleteOutboundCallanalysisresponseset(e,i){if(i=i||{},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"],i.customHeaders)}deleteOutboundCampaign(e,i){if(i=i||{},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"],i.customHeaders)}deleteOutboundCampaignProgress(e,i){if(i=i||{},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"],i.customHeaders)}deleteOutboundCampaignrule(e,i){if(i=i||{},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"],i.customHeaders)}deleteOutboundContactlist(e,i){if(i=i||{},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"],i.customHeaders)}deleteOutboundContactlistContact(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "contactListId" when calling deleteOutboundContactlistContact';if(i==null||i==="")throw'Missing the required parameter "contactId" when calling deleteOutboundContactlistContact';return this.apiClient.callApi("/api/v2/outbound/contactlists/{contactListId}/contacts/{contactId}","DELETE",{contactListId:e,contactId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteOutboundContactlistContacts(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "contactListId" when calling deleteOutboundContactlistContacts';if(i==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(i,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteOutboundContactlistfilter(e,i){if(i=i||{},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"],i.customHeaders)}deleteOutboundContactlists(e,i){if(i=i||{},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"],i.customHeaders)}deleteOutboundContactlisttemplate(e,i){if(i=i||{},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"],i.customHeaders)}deleteOutboundContactlisttemplates(e,i){if(i=i||{},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"],i.customHeaders)}deleteOutboundDigitalruleset(e,i){if(i=i||{},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"],i.customHeaders)}deleteOutboundDnclist(e,i){if(i=i||{},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"],i.customHeaders)}deleteOutboundDnclistCustomexclusioncolumns(e,i){if(i=i||{},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:i.expiredOnly},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}deleteOutboundDnclistEmailaddresses(e,i){if(i=i||{},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:i.expiredOnly},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}deleteOutboundDnclistPhonenumbers(e,i){if(i=i||{},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:i.expiredOnly},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}deleteOutboundDnclistWhatsappnumbers(e,i){if(i=i||{},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:i.expiredOnly},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}deleteOutboundFilespecificationtemplate(e,i){if(i=i||{},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"],i.customHeaders)}deleteOutboundFilespecificationtemplatesBulk(e,i){if(i=i||{},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"],i.customHeaders)}deleteOutboundImporttemplate(e,i){if(i=i||{},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"],i.customHeaders)}deleteOutboundImporttemplates(e,i){if(i=i||{},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"],i.customHeaders)}deleteOutboundMessagingcampaign(e,i){if(i=i||{},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"],i.customHeaders)}deleteOutboundMessagingcampaignProgress(e,i){if(i=i||{},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"],i.customHeaders)}deleteOutboundRuleset(e,i){if(i=i||{},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"],i.customHeaders)}deleteOutboundSchedulesCampaign(e,i){if(i=i||{},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"],i.customHeaders)}deleteOutboundSchedulesEmailcampaign(e,i){if(i=i||{},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"],i.customHeaders)}deleteOutboundSchedulesMessagingcampaign(e,i){if(i=i||{},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"],i.customHeaders)}deleteOutboundSchedulesSequence(e,i){if(i=i||{},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"],i.customHeaders)}deleteOutboundSchedulesWhatsappcampaign(e,i){if(i=i||{},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"],i.customHeaders)}deleteOutboundSequence(e,i){if(i=i||{},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"],i.customHeaders)}getOutboundAttemptlimit(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getOutboundCampaignAgentownedmappingpreviewResults(e,i){if(i=i||{},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"],i.customHeaders)}getOutboundCampaignDiagnostics(e,i){if(i=i||{},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"],i.customHeaders)}getOutboundCampaignInteractions(e,i){if(i=i||{},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"],i.customHeaders)}getOutboundCampaignLinedistribution(e,i){if(i=i||{},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:i.includeOnlyActiveCampaigns,edgeGroupId:i.edgeGroupId,siteId:i.siteId,useWeight:i.useWeight,relativeWeight:i.relativeWeight,outboundLineCount:i.outboundLineCount},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getOutboundCampaignProgress(e,i){if(i=i||{},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"],i.customHeaders)}getOutboundCampaignSkillcombinations(e,i){if(i=i||{},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:i.pageNumber,pageSize:i.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getOutboundCampaignStats(e,i){if(i=i||{},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"],i.customHeaders)}getOutboundCampaignrule(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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:i.includeImportStatus,includeSize:i.includeSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getOutboundContactlistContact(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "contactListId" when calling getOutboundContactlistContact';if(i==null||i==="")throw'Missing the required parameter "contactId" when calling getOutboundContactlistContact';return this.apiClient.callApi("/api/v2/outbound/contactlists/{contactListId}/contacts/{contactId}","GET",{contactListId:e,contactId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getOutboundContactlistContactsBulkJob(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "contactListId" when calling getOutboundContactlistContactsBulkJob';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getOutboundContactlistContactsBulkJobs(e,i){if(i=i||{},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"],i.customHeaders)}getOutboundContactlistExport(e,i){if(i=i||{},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:i.download},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getOutboundContactlistImportstatus(e,i){if(i=i||{},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"],i.customHeaders)}getOutboundContactlistTimezonemappingpreview(e,i){if(i=i||{},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"],i.customHeaders)}getOutboundContactlistfilter(e,i){if(i=i||{},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"],i.customHeaders)}getOutboundContactlistfilters(e){return e=e||{},this.apiClient.callApi("/api/v2/outbound/contactlistfilters","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,allowEmptyResult:e.allowEmptyResult,filterType:e.filterType,name:e.name,sortBy:e.sortBy,sortOrder:e.sortOrder,contactListId:e.contactListId},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getOutboundContactlists(e){return e=e||{},this.apiClient.callApi("/api/v2/outbound/contactlists","GET",{},{includeImportStatus:e.includeImportStatus,includeSize:e.includeSize,pageSize:e.pageSize,pageNumber:e.pageNumber,allowEmptyResult:e.allowEmptyResult,filterType:e.filterType,name:e.name,id:this.apiClient.buildCollectionParam(e.id,"multi"),divisionId:this.apiClient.buildCollectionParam(e.divisionId,"multi"),sortBy:e.sortBy,sortOrder:e.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getOutboundContactlistsDivisionview(e,i){if(i=i||{},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:i.includeImportStatus,includeSize:i.includeSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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"],i.customHeaders)}getOutboundContactlisttemplates(e){return e=e||{},this.apiClient.callApi("/api/v2/outbound/contactlisttemplates","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,allowEmptyResult:e.allowEmptyResult,filterType:e.filterType,name:e.name,sortBy:e.sortBy,sortOrder:e.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getOutboundDiagnosticsCampaignSummary(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "campaignId" when calling getOutboundDiagnosticsCampaignSummary';if(i==null)throw'Missing the required parameter "start" when calling getOutboundDiagnosticsCampaignSummary';if(n==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:i,end:n},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getOutboundDigitalruleset(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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:i.includeImportStatus,includeSize:i.includeSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getOutboundDnclistExport(e,i){if(i=i||{},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:i.download},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getOutboundDnclistImportstatus(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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:i.includeImportStatus,includeSize:i.includeSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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:i.includeImportStatus},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getOutboundImporttemplateImportstatus(e,i){if(i=i||{},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:i.listNamePrefix},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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"],i.customHeaders)}getOutboundMessagingcampaignDiagnostics(e,i){if(i=i||{},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"],i.customHeaders)}getOutboundMessagingcampaignProgress(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "campaignId" when calling patchOutboundCampaign';if(i==null)throw'Missing the required parameter "body" when calling patchOutboundCampaign';return this.apiClient.callApi("/api/v2/outbound/campaigns/{campaignId}","PATCH",{campaignId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchOutboundDnclistCustomexclusioncolumns(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "dncListId" when calling patchOutboundDnclistCustomexclusioncolumns';if(i==null)throw'Missing the required parameter "body" when calling patchOutboundDnclistCustomexclusioncolumns';return this.apiClient.callApi("/api/v2/outbound/dnclists/{dncListId}/customexclusioncolumns","PATCH",{dncListId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchOutboundDnclistEmailaddresses(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "dncListId" when calling patchOutboundDnclistEmailaddresses';if(i==null)throw'Missing the required parameter "body" when calling patchOutboundDnclistEmailaddresses';return this.apiClient.callApi("/api/v2/outbound/dnclists/{dncListId}/emailaddresses","PATCH",{dncListId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchOutboundDnclistPhonenumbers(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "dncListId" when calling patchOutboundDnclistPhonenumbers';if(i==null)throw'Missing the required parameter "body" when calling patchOutboundDnclistPhonenumbers';return this.apiClient.callApi("/api/v2/outbound/dnclists/{dncListId}/phonenumbers","PATCH",{dncListId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchOutboundDnclistWhatsappnumbers(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "dncListId" when calling patchOutboundDnclistWhatsappnumbers';if(i==null)throw'Missing the required parameter "body" when calling patchOutboundDnclistWhatsappnumbers';return this.apiClient.callApi("/api/v2/outbound/dnclists/{dncListId}/whatsappnumbers","PATCH",{dncListId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchOutboundSettings(e,i){if(i=i||{},e==null)throw'Missing the required parameter "body" when calling patchOutboundSettings';return this.apiClient.callApi("/api/v2/outbound/settings","PATCH",{},{useMaxCallsPerAgentDecimal:i.useMaxCallsPerAgentDecimal},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postOutboundAttemptlimits(e,i){if(i=i||{},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"],i.customHeaders)}postOutboundCallabletimesets(e,i){if(i=i||{},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"],i.customHeaders)}postOutboundCallanalysisresponsesets(e,i){if(i=i||{},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"],i.customHeaders)}postOutboundCampaignAgentownedmappingpreview(e,i){if(i=i||{},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"],i.customHeaders)}postOutboundCampaignCallbackSchedule(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "campaignId" when calling postOutboundCampaignCallbackSchedule';if(i==null)throw'Missing the required parameter "body" when calling postOutboundCampaignCallbackSchedule';return this.apiClient.callApi("/api/v2/outbound/campaigns/{campaignId}/callback/schedule","POST",{campaignId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postOutboundCampaignStart(e,i){if(i=i||{},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"],i.customHeaders)}postOutboundCampaignStop(e,i){if(i=i||{},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"],i.customHeaders)}postOutboundCampaignrules(e,i){if(i=i||{},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"],i.customHeaders)}postOutboundCampaigns(e,i){if(i=i||{},e==null)throw'Missing the required parameter "body" when calling postOutboundCampaigns';return this.apiClient.callApi("/api/v2/outbound/campaigns","POST",{},{useMaxCallsPerAgentDecimal:i.useMaxCallsPerAgentDecimal},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postOutboundCampaignsPerformanceQuery(e,i){if(i=i||{},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"],i.customHeaders)}postOutboundCampaignsProgress(e,i){if(i=i||{},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"],i.customHeaders)}postOutboundContactlistClear(e,i){if(i=i||{},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"],i.customHeaders)}postOutboundContactlistContacts(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "contactListId" when calling postOutboundContactlistContacts';if(i==null)throw'Missing the required parameter "body" when calling postOutboundContactlistContacts';return this.apiClient.callApi("/api/v2/outbound/contactlists/{contactListId}/contacts","POST",{contactListId:e},{priority:n.priority,clearSystemData:n.clearSystemData,doNotQueue:n.doNotQueue},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postOutboundContactlistContactsBulk(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "contactListId" when calling postOutboundContactlistContactsBulk';if(i==null)throw'Missing the required parameter "body" when calling postOutboundContactlistContactsBulk';return this.apiClient.callApi("/api/v2/outbound/contactlists/{contactListId}/contacts/bulk","POST",{contactListId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postOutboundContactlistContactsBulkRemove(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "contactListId" when calling postOutboundContactlistContactsBulkRemove';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postOutboundContactlistContactsBulkUpdate(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "contactListId" when calling postOutboundContactlistContactsBulkUpdate';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postOutboundContactlistContactsSearch(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "contactListId" when calling postOutboundContactlistContactsSearch';if(i==null)throw'Missing the required parameter "body" when calling postOutboundContactlistContactsSearch';return this.apiClient.callApi("/api/v2/outbound/contactlists/{contactListId}/contacts/search","POST",{contactListId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postOutboundContactlistExport(e,i){if(i=i||{},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},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postOutboundContactlistfilters(e,i){if(i=i||{},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"],i.customHeaders)}postOutboundContactlistfiltersBulkRetrieve(e,i){if(i=i||{},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"],i.customHeaders)}postOutboundContactlistfiltersPreview(e,i){if(i=i||{},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"],i.customHeaders)}postOutboundContactlists(e,i){if(i=i||{},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"],i.customHeaders)}postOutboundContactlistsUploads(e,i){if(i=i||{},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"],i.customHeaders)}postOutboundContactlisttemplates(e,i){if(i=i||{},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"],i.customHeaders)}postOutboundContactlisttemplatesBulkAdd(e,i){if(i=i||{},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"],i.customHeaders)}postOutboundContactlisttemplatesBulkRetrieve(e,i){if(i=i||{},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"],i.customHeaders)}postOutboundConversationDnc(e,i){if(i=i||{},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"],i.customHeaders)}postOutboundDigitalrulesets(e,i){if(i=i||{},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"],i.customHeaders)}postOutboundDnclistEmailaddresses(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "dncListId" when calling postOutboundDnclistEmailaddresses';if(i==null)throw'Missing the required parameter "body" when calling postOutboundDnclistEmailaddresses';return this.apiClient.callApi("/api/v2/outbound/dnclists/{dncListId}/emailaddresses","POST",{dncListId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postOutboundDnclistExport(e,i){if(i=i||{},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"],i.customHeaders)}postOutboundDnclistPhonenumbers(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "dncListId" when calling postOutboundDnclistPhonenumbers';if(i==null)throw'Missing the required parameter "body" when calling postOutboundDnclistPhonenumbers';return this.apiClient.callApi("/api/v2/outbound/dnclists/{dncListId}/phonenumbers","POST",{dncListId:e},{expirationDateTime:n.expirationDateTime},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postOutboundDnclists(e,i){if(i=i||{},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"],i.customHeaders)}postOutboundDnclistsUploads(e,i){if(i=i||{},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"],i.customHeaders)}postOutboundFilespecificationtemplates(e,i){if(i=i||{},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"],i.customHeaders)}postOutboundImporttemplates(e,i){if(i=i||{},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"],i.customHeaders)}postOutboundImporttemplatesBulkAdd(e,i){if(i=i||{},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"],i.customHeaders)}postOutboundMessagingcampaignStart(e,i){if(i=i||{},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"],i.customHeaders)}postOutboundMessagingcampaignStop(e,i){if(i=i||{},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"],i.customHeaders)}postOutboundMessagingcampaigns(e,i){if(i=i||{},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"],i.customHeaders)}postOutboundMessagingcampaignsProgress(e,i){if(i=i||{},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"],i.customHeaders)}postOutboundRulesets(e,i){if(i=i||{},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"],i.customHeaders)}postOutboundSequences(e,i){if(i=i||{},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"],i.customHeaders)}putOutboundAttemptlimit(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "attemptLimitsId" when calling putOutboundAttemptlimit';if(i==null)throw'Missing the required parameter "body" when calling putOutboundAttemptlimit';return this.apiClient.callApi("/api/v2/outbound/attemptlimits/{attemptLimitsId}","PUT",{attemptLimitsId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putOutboundCallabletimeset(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "callableTimeSetId" when calling putOutboundCallabletimeset';if(i==null)throw'Missing the required parameter "body" when calling putOutboundCallabletimeset';return this.apiClient.callApi("/api/v2/outbound/callabletimesets/{callableTimeSetId}","PUT",{callableTimeSetId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putOutboundCallanalysisresponseset(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "callAnalysisSetId" when calling putOutboundCallanalysisresponseset';if(i==null)throw'Missing the required parameter "body" when calling putOutboundCallanalysisresponseset';return this.apiClient.callApi("/api/v2/outbound/callanalysisresponsesets/{callAnalysisSetId}","PUT",{callAnalysisSetId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putOutboundCampaign(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "campaignId" when calling putOutboundCampaign';if(i==null)throw'Missing the required parameter "body" when calling putOutboundCampaign';return this.apiClient.callApi("/api/v2/outbound/campaigns/{campaignId}","PUT",{campaignId:e},{useMaxCallsPerAgentDecimal:n.useMaxCallsPerAgentDecimal},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putOutboundCampaignAgent(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "campaignId" when calling putOutboundCampaignAgent';if(i==null||i==="")throw'Missing the required parameter "userId" when calling putOutboundCampaignAgent';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}putOutboundCampaignrule(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "campaignRuleId" when calling putOutboundCampaignrule';if(i==null)throw'Missing the required parameter "body" when calling putOutboundCampaignrule';return this.apiClient.callApi("/api/v2/outbound/campaignrules/{campaignRuleId}","PUT",{campaignRuleId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putOutboundContactlist(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "contactListId" when calling putOutboundContactlist';if(i==null)throw'Missing the required parameter "body" when calling putOutboundContactlist';return this.apiClient.callApi("/api/v2/outbound/contactlists/{contactListId}","PUT",{contactListId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putOutboundContactlistContact(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "contactListId" when calling putOutboundContactlistContact';if(i==null||i==="")throw'Missing the required parameter "contactId" when calling putOutboundContactlistContact';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}putOutboundContactlistfilter(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "contactListFilterId" when calling putOutboundContactlistfilter';if(i==null)throw'Missing the required parameter "body" when calling putOutboundContactlistfilter';return this.apiClient.callApi("/api/v2/outbound/contactlistfilters/{contactListFilterId}","PUT",{contactListFilterId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putOutboundContactlisttemplate(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "contactListTemplateId" when calling putOutboundContactlisttemplate';if(i==null)throw'Missing the required parameter "body" when calling putOutboundContactlisttemplate';return this.apiClient.callApi("/api/v2/outbound/contactlisttemplates/{contactListTemplateId}","PUT",{contactListTemplateId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putOutboundDigitalruleset(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "digitalRuleSetId" when calling putOutboundDigitalruleset';if(i==null)throw'Missing the required parameter "body" when calling putOutboundDigitalruleset';return this.apiClient.callApi("/api/v2/outbound/digitalrulesets/{digitalRuleSetId}","PUT",{digitalRuleSetId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putOutboundDnclist(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "dncListId" when calling putOutboundDnclist';if(i==null)throw'Missing the required parameter "body" when calling putOutboundDnclist';return this.apiClient.callApi("/api/v2/outbound/dnclists/{dncListId}","PUT",{dncListId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putOutboundFilespecificationtemplate(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "fileSpecificationTemplateId" when calling putOutboundFilespecificationtemplate';if(i==null)throw'Missing the required parameter "body" when calling putOutboundFilespecificationtemplate';return this.apiClient.callApi("/api/v2/outbound/filespecificationtemplates/{fileSpecificationTemplateId}","PUT",{fileSpecificationTemplateId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putOutboundImporttemplate(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "importTemplateId" when calling putOutboundImporttemplate';if(i==null)throw'Missing the required parameter "body" when calling putOutboundImporttemplate';return this.apiClient.callApi("/api/v2/outbound/importtemplates/{importTemplateId}","PUT",{importTemplateId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putOutboundMessagingcampaign(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "messagingCampaignId" when calling putOutboundMessagingcampaign';if(i==null)throw'Missing the required parameter "body" when calling putOutboundMessagingcampaign';return this.apiClient.callApi("/api/v2/outbound/messagingcampaigns/{messagingCampaignId}","PUT",{messagingCampaignId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putOutboundRuleset(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "ruleSetId" when calling putOutboundRuleset';if(i==null)throw'Missing the required parameter "body" when calling putOutboundRuleset';return this.apiClient.callApi("/api/v2/outbound/rulesets/{ruleSetId}","PUT",{ruleSetId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putOutboundSchedulesCampaign(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "campaignId" when calling putOutboundSchedulesCampaign';if(i==null)throw'Missing the required parameter "body" when calling putOutboundSchedulesCampaign';return this.apiClient.callApi("/api/v2/outbound/schedules/campaigns/{campaignId}","PUT",{campaignId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putOutboundSchedulesEmailcampaign(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "emailCampaignId" when calling putOutboundSchedulesEmailcampaign';if(i==null)throw'Missing the required parameter "body" when calling putOutboundSchedulesEmailcampaign';return this.apiClient.callApi("/api/v2/outbound/schedules/emailcampaigns/{emailCampaignId}","PUT",{emailCampaignId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putOutboundSchedulesMessagingcampaign(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "messagingCampaignId" when calling putOutboundSchedulesMessagingcampaign';if(i==null)throw'Missing the required parameter "body" when calling putOutboundSchedulesMessagingcampaign';return this.apiClient.callApi("/api/v2/outbound/schedules/messagingcampaigns/{messagingCampaignId}","PUT",{messagingCampaignId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putOutboundSchedulesSequence(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "sequenceId" when calling putOutboundSchedulesSequence';if(i==null)throw'Missing the required parameter "body" when calling putOutboundSchedulesSequence';return this.apiClient.callApi("/api/v2/outbound/schedules/sequences/{sequenceId}","PUT",{sequenceId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putOutboundSchedulesWhatsappcampaign(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "whatsAppCampaignId" when calling putOutboundSchedulesWhatsappcampaign';if(i==null)throw'Missing the required parameter "body" when calling putOutboundSchedulesWhatsappcampaign';return this.apiClient.callApi("/api/v2/outbound/schedules/whatsappcampaigns/{whatsAppCampaignId}","PUT",{whatsAppCampaignId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putOutboundSequence(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "sequenceId" when calling putOutboundSequence';if(i==null)throw'Missing the required parameter "body" when calling putOutboundSequence';return this.apiClient.callApi("/api/v2/outbound/sequences/{sequenceId}","PUT",{sequenceId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putOutboundWrapupcodemappings(e,i){if(i=i||{},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"],i.customHeaders)}},Ob=class{constructor(e){this.apiClient=e||q.instance}deletePresenceDefinition0(e,i){if(i=i||{},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"],i.customHeaders)}deletePresenceSource(e,i){if(i=i||{},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"],i.customHeaders)}deletePresencedefinition(e,i){if(i=i||{},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"],i.customHeaders)}getPresenceDefinition0(e,i){if(i=i||{},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:i.localeCode},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getPresencedefinition(e,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "presenceId" when calling getPresencedefinition';return this.apiClient.callApi("/api/v2/presencedefinitions/{presenceId}","GET",{presenceId:e},{localeCode:i.localeCode},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling getUserPresence';if(i==null||i==="")throw'Missing the required parameter "sourceId" when calling getUserPresence';return this.apiClient.callApi("/api/v2/users/{userId}/presences/{sourceId}","GET",{userId:e,sourceId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getUserPresencesPurecloud(e,i){if(i=i||{},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"],i.customHeaders)}getUsersPresenceBulk(e,i){if(i=i||{},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(i.id,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "userId" when calling patchUserPresence';if(i==null||i==="")throw'Missing the required parameter "sourceId" when calling patchUserPresence';if(n==null)throw'Missing the required parameter "body" when calling patchUserPresence';return this.apiClient.callApi("/api/v2/users/{userId}/presences/{sourceId}","PATCH",{userId:e,sourceId:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchUserPresencesPurecloud(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling patchUserPresencesPurecloud';if(i==null)throw'Missing the required parameter "body" when calling patchUserPresencesPurecloud';return this.apiClient.callApi("/api/v2/users/{userId}/presences/purecloud","PATCH",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postPresenceDefinitions0(e,i){if(i=i||{},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"],i.customHeaders)}postPresenceSources(e,i){if(i=i||{},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"],i.customHeaders)}postPresencedefinitions(e,i){if(i=i||{},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"],i.customHeaders)}putPresenceDefinition0(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "definitionId" when calling putPresenceDefinition0';if(i==null)throw'Missing the required parameter "body" when calling putPresenceDefinition0';return this.apiClient.callApi("/api/v2/presence/definitions/{definitionId}","PUT",{definitionId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putPresenceSettings(e,i){if(i=i||{},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"],i.customHeaders)}putPresenceSource(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "sourceId" when calling putPresenceSource';if(i==null)throw'Missing the required parameter "body" when calling putPresenceSource';return this.apiClient.callApi("/api/v2/presence/sources/{sourceId}","PUT",{sourceId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putPresenceUserPrimarysource(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling putPresenceUserPrimarysource';if(i==null)throw'Missing the required parameter "body" when calling putPresenceUserPrimarysource';return this.apiClient.callApi("/api/v2/presence/users/{userId}/primarysource","PUT",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putPresencedefinition(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "presenceId" when calling putPresencedefinition';if(i==null)throw'Missing the required parameter "body" when calling putPresencedefinition';return this.apiClient.callApi("/api/v2/presencedefinitions/{presenceId}","PUT",{presenceId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putUsersPresencesBulk(e,i){if(i=i||{},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"],i.customHeaders)}},xb=class{constructor(e){this.apiClient=e||q.instance}deleteProcessautomationScheduledtrigger(e,i){if(i=i||{},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"],i.customHeaders)}deleteProcessautomationTrigger(e,i){if(i=i||{},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"],i.customHeaders)}getProcessautomationScheduledtrigger(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}postProcessautomationTriggerTest(e,i){if(i=i||{},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},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postProcessautomationTriggers(e,i){if(i=i||{},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"],i.customHeaders)}postProcessautomationTriggersTopicTest(e,i){if(i=i||{},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},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}putProcessautomationScheduledtrigger(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "scheduledTriggerId" when calling putProcessautomationScheduledtrigger';if(i==null)throw'Missing the required parameter "body" when calling putProcessautomationScheduledtrigger';return this.apiClient.callApi("/api/v2/processautomation/scheduledtriggers/{scheduledTriggerId}","PUT",{scheduledTriggerId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putProcessautomationTrigger(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "triggerId" when calling putProcessautomationTrigger';if(i==null)throw'Missing the required parameter "body" when calling putProcessautomationTrigger';return this.apiClient.callApi("/api/v2/processautomation/triggers/{triggerId}","PUT",{triggerId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}},Tb=class{constructor(e){this.apiClient=e||q.instance}deleteAnalyticsEvaluationsAggregatesJob(e,i){if(i=i||{},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"],i.customHeaders)}deleteAnalyticsSurveysAggregatesJob(e,i){if(i=i||{},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"],i.customHeaders)}deleteQualityCalibration(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "calibrationId" when calling deleteQualityCalibration';if(i==null)throw'Missing the required parameter "calibratorId" when calling deleteQualityCalibration';return this.apiClient.callApi("/api/v2/quality/calibrations/{calibrationId}","DELETE",{calibrationId:e},{calibratorId:i},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteQualityConversationEvaluation(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling deleteQualityConversationEvaluation';if(i==null||i==="")throw'Missing the required parameter "evaluationId" when calling deleteQualityConversationEvaluation';return this.apiClient.callApi("/api/v2/quality/conversations/{conversationId}/evaluations/{evaluationId}","DELETE",{conversationId:e,evaluationId:i},{expand:n.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteQualityForm(e,i){if(i=i||{},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"],i.customHeaders)}deleteQualityFormsEvaluation(e,i){if(i=i||{},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"],i.customHeaders)}deleteQualityFormsSurvey(e,i){if(i=i||{},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"],i.customHeaders)}deleteQualityProgramAgentscoringrule(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "programId" when calling deleteQualityProgramAgentscoringrule';if(i==null||i==="")throw'Missing the required parameter "ruleId" when calling deleteQualityProgramAgentscoringrule';return this.apiClient.callApi("/api/v2/quality/programs/{programId}/agentscoringrules/{ruleId}","DELETE",{programId:e,ruleId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getAnalyticsEvaluationsAggregatesJob(e,i){if(i=i||{},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"],i.customHeaders)}getAnalyticsEvaluationsAggregatesJobResults(e,i){if(i=i||{},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:i.cursor},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getAnalyticsSurveysAggregatesJob(e,i){if(i=i||{},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"],i.customHeaders)}getAnalyticsSurveysAggregatesJobResults(e,i){if(i=i||{},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:i.cursor},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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:i.calibratorId,conversationId:i.conversationId},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getQualityCalibrations(e,i){if(i=i||{},e==null)throw'Missing the required parameter "calibratorId" when calling getQualityCalibrations';return this.apiClient.callApi("/api/v2/quality/calibrations","GET",{},{pageSize:i.pageSize,pageNumber:i.pageNumber,sortBy:i.sortBy,expand:this.apiClient.buildCollectionParam(i.expand,"multi"),nextPage:i.nextPage,previousPage:i.previousPage,conversationId:i.conversationId,startTime:i.startTime,endTime:i.endTime,calibratorId:e},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getQualityConversationEvaluation(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getQualityConversationEvaluation';if(i==null||i==="")throw'Missing the required parameter "evaluationId" when calling getQualityConversationEvaluation';return this.apiClient.callApi("/api/v2/quality/conversations/{conversationId}/evaluations/{evaluationId}","GET",{conversationId:e,evaluationId:i},{expand:n.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getQualityConversationSurveys(e,i){if(i=i||{},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"],i.customHeaders)}getQualityConversationsAuditsQueryTransactionId(e,i){if(i=i||{},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"],i.customHeaders)}getQualityConversationsAuditsQueryTransactionIdResults(e,i){if(i=i||{},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:i.cursor,pageSize:i.pageSize,expand:this.apiClient.buildCollectionParam(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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"],i.customHeaders)}getQualityFormVersions(e,i){if(i=i||{},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:i.pageSize,pageNumber:i.pageNumber,sortOrder:i.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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"],i.customHeaders)}getQualityFormsEvaluationVersions(e,i){if(i=i||{},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:i.pageSize,pageNumber:i.pageNumber,sortOrder:i.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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:i.includeLatestVersionFormName},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getQualityFormsEvaluationsBulkContexts(e,i){if(i=i||{},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"],i.customHeaders)}getQualityFormsSurvey(e,i){if(i=i||{},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"],i.customHeaders)}getQualityFormsSurveyVersions(e,i){if(i=i||{},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:i.pageSize,pageNumber:i.pageNumber},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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"],i.customHeaders)}getQualityFormsSurveysBulkContexts(e,i){if(i=i||{},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:i.published},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getQualityProgramAgentscoringrule(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "programId" when calling getQualityProgramAgentscoringrule';if(i==null||i==="")throw'Missing the required parameter "ruleId" when calling getQualityProgramAgentscoringrule';return this.apiClient.callApi("/api/v2/quality/programs/{programId}/agentscoringrules/{ruleId}","GET",{programId:e,ruleId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getQualityProgramAgentscoringrules(e,i){if(i=i||{},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"],i.customHeaders)}getQualityPublishedform(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getQualityPublishedformsEvaluations(e){return e=e||{},this.apiClient.callApi("/api/v2/quality/publishedforms/evaluations","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,name:e.name,onlyLatestPerContext:e.onlyLatestPerContext},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getQualityPublishedformsSurvey(e,i){if(i=i||{},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"],i.customHeaders)}getQualityPublishedformsSurveys(e){return e=e||{},this.apiClient.callApi("/api/v2/quality/publishedforms/surveys","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,name:e.name,onlyLatestEnabledPerContext:e.onlyLatestEnabledPerContext},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getQualitySurvey(e,i){if(i=i||{},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"],i.customHeaders)}getQualitySurveysScorable(e,i){if(i=i||{},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"],i.customHeaders)}patchQualityFormsSurvey(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "formId" when calling patchQualityFormsSurvey';if(i==null)throw'Missing the required parameter "body" when calling patchQualityFormsSurvey';return this.apiClient.callApi("/api/v2/quality/forms/surveys/{formId}","PATCH",{formId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postAnalyticsEvaluationsAggregatesJobs(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsEvaluationsAggregatesQuery(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsSurveysAggregatesJobs(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsSurveysAggregatesQuery(e,i){if(i=i||{},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"],i.customHeaders)}postQualityCalibrations(e,i){if(i=i||{},e==null)throw'Missing the required parameter "body" when calling postQualityCalibrations';return this.apiClient.callApi("/api/v2/quality/calibrations","POST",{},{expand:i.expand},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postQualityConversationEvaluations(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postQualityConversationEvaluations';if(i==null)throw'Missing the required parameter "body" when calling postQualityConversationEvaluations';return this.apiClient.callApi("/api/v2/quality/conversations/{conversationId}/evaluations","POST",{conversationId:e},{expand:n.expand},{"Idempotency-Key":n.idempotencyKey},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postQualityConversationsAuditsQuery(e,i){if(i=i||{},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"],i.customHeaders)}postQualityEvaluationsAggregatesQueryMe(e,i){if(i=i||{},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"],i.customHeaders)}postQualityEvaluationsScoring(e,i){if(i=i||{},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"],i.customHeaders)}postQualityEvaluationsSearch(e,i){if(i=i||{},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"],i.customHeaders)}postQualityForms(e,i){if(i=i||{},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"],i.customHeaders)}postQualityFormsEvaluations(e,i){if(i=i||{},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"],i.customHeaders)}postQualityFormsSurveys(e,i){if(i=i||{},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"],i.customHeaders)}postQualityProgramAgentscoringrules(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "programId" when calling postQualityProgramAgentscoringrules';if(i==null)throw'Missing the required parameter "body" when calling postQualityProgramAgentscoringrules';return this.apiClient.callApi("/api/v2/quality/programs/{programId}/agentscoringrules","POST",{programId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postQualityPublishedforms(e,i){if(i=i||{},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"],i.customHeaders)}postQualityPublishedformsEvaluations(e,i){if(i=i||{},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"],i.customHeaders)}postQualityPublishedformsSurveys(e,i){if(i=i||{},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"],i.customHeaders)}postQualitySurveys(e,i){if(i=i||{},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"],i.customHeaders)}postQualitySurveysScoring(e,i){if(i=i||{},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"],i.customHeaders)}putQualityCalibration(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "calibrationId" when calling putQualityCalibration';if(i==null)throw'Missing the required parameter "body" when calling putQualityCalibration';return this.apiClient.callApi("/api/v2/quality/calibrations/{calibrationId}","PUT",{calibrationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putQualityConversationEvaluation(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling putQualityConversationEvaluation';if(i==null||i==="")throw'Missing the required parameter "evaluationId" when calling putQualityConversationEvaluation';if(n==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:i},{expand:a.expand},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}putQualityForm(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "formId" when calling putQualityForm';if(i==null)throw'Missing the required parameter "body" when calling putQualityForm';return this.apiClient.callApi("/api/v2/quality/forms/{formId}","PUT",{formId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putQualityFormsEvaluation(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "formId" when calling putQualityFormsEvaluation';if(i==null)throw'Missing the required parameter "body" when calling putQualityFormsEvaluation';return this.apiClient.callApi("/api/v2/quality/forms/evaluations/{formId}","PUT",{formId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putQualityFormsEvaluationAiscoringSettings(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "formId" when calling putQualityFormsEvaluationAiscoringSettings';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putQualityFormsSurvey(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "formId" when calling putQualityFormsSurvey';if(i==null)throw'Missing the required parameter "body" when calling putQualityFormsSurvey';return this.apiClient.callApi("/api/v2/quality/forms/surveys/{formId}","PUT",{formId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putQualityProgramAgentscoringrule(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "programId" when calling putQualityProgramAgentscoringrule';if(i==null||i==="")throw'Missing the required parameter "ruleId" when calling putQualityProgramAgentscoringrule';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}putQualitySurveysScorable(e,i,n){if(n=n||{},e==null)throw'Missing the required parameter "customerSurveyUrl" when calling putQualitySurveysScorable';if(i==null)throw'Missing the required parameter "body" when calling putQualitySurveysScorable';return this.apiClient.callApi("/api/v2/quality/surveys/scorable","PUT",{},{customerSurveyUrl:e},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}},Mb=class{constructor(e){this.apiClient=e||q.instance}deleteConversationRecordingAnnotation(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling deleteConversationRecordingAnnotation';if(i==null||i==="")throw'Missing the required parameter "recordingId" when calling deleteConversationRecordingAnnotation';if(n==null||n==="")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:i,annotationId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}deleteOrphanrecording(e,i){if(i=i||{},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"],i.customHeaders)}deleteRecordingCrossplatformMediaretentionpolicies(e,i){if(i=i||{},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"],i.customHeaders)}deleteRecordingCrossplatformMediaretentionpolicy(e,i){if(i=i||{},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"],i.customHeaders)}deleteRecordingJob(e,i){if(i=i||{},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"],i.customHeaders)}deleteRecordingMediaretentionpolicies(e,i){if(i=i||{},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"],i.customHeaders)}deleteRecordingMediaretentionpolicy(e,i){if(i=i||{},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"],i.customHeaders)}getConversationRecording(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationRecording';if(i==null||i==="")throw'Missing the required parameter "recordingId" when calling getConversationRecording';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/recordings/{recordingId}","GET",{conversationId:e,recordingId:i},{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)}getConversationRecordingAnnotation(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationRecordingAnnotation';if(i==null||i==="")throw'Missing the required parameter "recordingId" when calling getConversationRecordingAnnotation';if(n==null||n==="")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:i,annotationId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getConversationRecordingAnnotations(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationRecordingAnnotations';if(i==null||i==="")throw'Missing the required parameter "recordingId" when calling getConversationRecordingAnnotations';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/recordings/{recordingId}/annotations","GET",{conversationId:e,recordingId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getConversationRecordingmetadata(e,i){if(i=i||{},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"],i.customHeaders)}getConversationRecordingmetadataRecordingId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getConversationRecordingmetadataRecordingId';if(i==null||i==="")throw'Missing the required parameter "recordingId" when calling getConversationRecordingmetadataRecordingId';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/recordingmetadata/{recordingId}","GET",{conversationId:e,recordingId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getConversationRecordings(e,i){if(i=i||{},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:i.maxWaitMs,formatId:i.formatId,mediaFormats:this.apiClient.buildCollectionParam(i.mediaFormats,"multi"),locale:i.locale,includePauseAnnotationsForScreenRecordings:i.includePauseAnnotationsForScreenRecordings},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getOrphanrecording(e,i){if(i=i||{},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"],i.customHeaders)}getOrphanrecordingMedia(e,i){if(i=i||{},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: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)}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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getRecordingJob(e,i){if(i=i||{},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"],i.customHeaders)}getRecordingJobFailedrecordings(e,i){if(i=i||{},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:i.pageSize,pageNumber:i.pageNumber,includeTotal:i.includeTotal,cursor:i.cursor},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getRecordingsRetentionQuery(e,i){if(i=i||{},e==null)throw'Missing the required parameter "retentionThresholdDays" when calling getRecordingsRetentionQuery';return this.apiClient.callApi("/api/v2/recordings/retention/query","GET",{},{retentionThresholdDays:e,cursor:i.cursor,pageSize:i.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "policyId" when calling patchRecordingCrossplatformMediaretentionpolicy';if(i==null)throw'Missing the required parameter "body" when calling patchRecordingCrossplatformMediaretentionpolicy';return this.apiClient.callApi("/api/v2/recording/crossplatform/mediaretentionpolicies/{policyId}","PATCH",{policyId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchRecordingMediaretentionpolicy(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "policyId" when calling patchRecordingMediaretentionpolicy';if(i==null)throw'Missing the required parameter "body" when calling patchRecordingMediaretentionpolicy';return this.apiClient.callApi("/api/v2/recording/mediaretentionpolicies/{policyId}","PATCH",{policyId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postConversationRecordingAnnotations(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postConversationRecordingAnnotations';if(i==null||i==="")throw'Missing the required parameter "recordingId" when calling postConversationRecordingAnnotations';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postRecordingBatchrequests(e,i){if(i=i||{},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"],i.customHeaders)}postRecordingCrossplatformMediaretentionpolicies(e,i){if(i=i||{},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"],i.customHeaders)}postRecordingJobs(e,i){if(i=i||{},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"],i.customHeaders)}postRecordingKeyconfigurations(e,i){if(i=i||{},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"],i.customHeaders)}postRecordingKeyconfigurationsValidate(e,i){if(i=i||{},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"],i.customHeaders)}postRecordingLocalkeys(e,i){if(i=i||{},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"],i.customHeaders)}postRecordingMediaretentionpolicies(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}postRecordingsDeletionprotection(e,i){if(i=i||{},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"],i.customHeaders)}postRecordingsScreensessionsAcknowledge(e,i){if(i=i||{},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"],i.customHeaders)}postRecordingsScreensessionsMetadata(e,i){if(i=i||{},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"],i.customHeaders)}putConversationRecording(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling putConversationRecording';if(i==null||i==="")throw'Missing the required parameter "recordingId" when calling putConversationRecording';if(n==null)throw'Missing the required parameter "body" when calling putConversationRecording';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/recordings/{recordingId}","PUT",{conversationId:e,recordingId:i},{clearExport:a.clearExport},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}putConversationRecordingAnnotation(e,i,n,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling putConversationRecordingAnnotation';if(i==null||i==="")throw'Missing the required parameter "recordingId" when calling putConversationRecordingAnnotation';if(n==null||n==="")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:i,annotationId:n},{},{},{},a,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}putOrphanrecording(e,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "orphanId" when calling putOrphanrecording';return this.apiClient.callApi("/api/v2/orphanrecordings/{orphanId}","PUT",{orphanId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}putRecordingCrossplatformMediaretentionpolicy(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "policyId" when calling putRecordingCrossplatformMediaretentionpolicy';if(i==null)throw'Missing the required parameter "body" when calling putRecordingCrossplatformMediaretentionpolicy';return this.apiClient.callApi("/api/v2/recording/crossplatform/mediaretentionpolicies/{policyId}","PUT",{policyId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putRecordingJob(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "jobId" when calling putRecordingJob';if(i==null)throw'Missing the required parameter "body" when calling putRecordingJob';return this.apiClient.callApi("/api/v2/recording/jobs/{jobId}","PUT",{jobId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putRecordingKeyconfiguration(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "keyConfigurationId" when calling putRecordingKeyconfiguration';if(i==null)throw'Missing the required parameter "body" when calling putRecordingKeyconfiguration';return this.apiClient.callApi("/api/v2/recording/keyconfigurations/{keyConfigurationId}","PUT",{keyConfigurationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putRecordingMediaretentionpolicy(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "policyId" when calling putRecordingMediaretentionpolicy';if(i==null)throw'Missing the required parameter "body" when calling putRecordingMediaretentionpolicy';return this.apiClient.callApi("/api/v2/recording/mediaretentionpolicies/{policyId}","PUT",{policyId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putRecordingRecordingkeysRotationschedule(e,i){if(i=i||{},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"],i.customHeaders)}putRecordingSettings(e,i){if(i=i||{},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"],i.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)}},Eb=class{constructor(e){this.apiClient=e||q.instance}deleteResponsemanagementLibrary(e,i){if(i=i||{},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"],i.customHeaders)}deleteResponsemanagementResponse(e,i){if(i=i||{},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"],i.customHeaders)}deleteResponsemanagementResponseasset(e,i){if(i=i||{},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"],i.customHeaders)}getResponsemanagementLibraries(e){return e=e||{},this.apiClient.callApi("/api/v2/responsemanagement/libraries","GET",{},{pageNumber:e.pageNumber,pageSize:e.pageSize,messagingTemplateFilter:e.messagingTemplateFilter,libraryPrefix:e.libraryPrefix},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getResponsemanagementLibrary(e,i){if(i=i||{},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"],i.customHeaders)}getResponsemanagementResponse(e,i){if(i=i||{},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:i.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getResponsemanagementResponseasset(e,i){if(i=i||{},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"],i.customHeaders)}getResponsemanagementResponseassetsStatusStatusId(e,i){if(i=i||{},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"],i.customHeaders)}getResponsemanagementResponses(e,i){if(i=i||{},e==null)throw'Missing the required parameter "libraryId" when calling getResponsemanagementResponses';return this.apiClient.callApi("/api/v2/responsemanagement/responses","GET",{},{libraryId:e,pageNumber:i.pageNumber,pageSize:i.pageSize,expand:i.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postResponsemanagementLibraries(e,i){if(i=i||{},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"],i.customHeaders)}postResponsemanagementLibrariesBulk(e,i){if(i=i||{},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"],i.customHeaders)}postResponsemanagementLibrariesQuery(e,i){if(i=i||{},e==null)throw'Missing the required parameter "body" when calling postResponsemanagementLibrariesQuery';return this.apiClient.callApi("/api/v2/responsemanagement/libraries/query","POST",{},{pageNumber:i.pageNumber,pageSize:i.pageSize},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postResponsemanagementResponseassetsBulk(e,i){if(i=i||{},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"],i.customHeaders)}postResponsemanagementResponseassetsSearch(e,i){if(i=i||{},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(i.expand,"multi")},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postResponsemanagementResponseassetsUploads(e,i){if(i=i||{},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"],i.customHeaders)}postResponsemanagementResponses(e,i){if(i=i||{},e==null)throw'Missing the required parameter "body" when calling postResponsemanagementResponses';return this.apiClient.callApi("/api/v2/responsemanagement/responses","POST",{},{expand:i.expand},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postResponsemanagementResponsesQuery(e,i){if(i=i||{},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"],i.customHeaders)}putResponsemanagementLibrary(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "libraryId" when calling putResponsemanagementLibrary';if(i==null)throw'Missing the required parameter "body" when calling putResponsemanagementLibrary';return this.apiClient.callApi("/api/v2/responsemanagement/libraries/{libraryId}","PUT",{libraryId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putResponsemanagementResponse(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "responseId" when calling putResponsemanagementResponse';if(i==null)throw'Missing the required parameter "body" when calling putResponsemanagementResponse';return this.apiClient.callApi("/api/v2/responsemanagement/responses/{responseId}","PUT",{responseId:e},{expand:n.expand},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putResponsemanagementResponseasset(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "responseAssetId" when calling putResponsemanagementResponseasset';if(i==null)throw'Missing the required parameter "body" when calling putResponsemanagementResponseasset';return this.apiClient.callApi("/api/v2/responsemanagement/responseassets/{responseAssetId}","PUT",{responseAssetId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}},kb=class{constructor(e){this.apiClient=e||q.instance}deleteRoutingAssessment(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}deleteRoutingEmailDomainRoute(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "domainName" when calling deleteRoutingEmailDomainRoute';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteRoutingEmailOutboundDomain(e,i){if(i=i||{},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"],i.customHeaders)}deleteRoutingLanguage(e,i){if(i=i||{},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"],i.customHeaders)}deleteRoutingPredictor(e,i){if(i=i||{},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"],i.customHeaders)}deleteRoutingPredictorsKeyperformanceindicator(e,i){if(i=i||{},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"],i.customHeaders)}deleteRoutingQueue(e,i){if(i=i||{},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:i.forceDelete},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}deleteRoutingQueueMember(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "queueId" when calling deleteRoutingQueueMember';if(i==null||i==="")throw'Missing the required parameter "memberId" when calling deleteRoutingQueueMember';return this.apiClient.callApi("/api/v2/routing/queues/{queueId}/members/{memberId}","DELETE",{queueId:e,memberId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteRoutingQueueUser(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "queueId" when calling deleteRoutingQueueUser';if(i==null||i==="")throw'Missing the required parameter "memberId" when calling deleteRoutingQueueUser';return this.apiClient.callApi("/api/v2/routing/queues/{queueId}/users/{memberId}","DELETE",{queueId:e,memberId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteRoutingQueueWrapupcode(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "queueId" when calling deleteRoutingQueueWrapupcode';if(i==null||i==="")throw'Missing the required parameter "codeId" when calling deleteRoutingQueueWrapupcode';return this.apiClient.callApi("/api/v2/routing/queues/{queueId}/wrapupcodes/{codeId}","DELETE",{queueId:e,codeId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.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,i){if(i=i||{},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"],i.customHeaders)}deleteRoutingSkillgroup(e,i){if(i=i||{},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"],i.customHeaders)}deleteRoutingSmsAddress(e,i){if(i=i||{},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"],i.customHeaders)}deleteRoutingSmsPhonenumber(e,i){if(i=i||{},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"],i.customHeaders)}deleteRoutingUserDirectroutingbackupSettings(e,i){if(i=i||{},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"],i.customHeaders)}deleteRoutingUserUtilization(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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:i.forceDelete},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}deleteRoutingUtilizationTag(e,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "tagId" when calling deleteRoutingUtilizationTag';return this.apiClient.callApi("/api/v2/routing/utilization/tags/{tagId}","DELETE",{tagId:e},{forceDelete:i.forceDelete},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}deleteRoutingWrapupcode(e,i){if(i=i||{},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"],i.customHeaders)}deleteUserRoutinglanguage(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling deleteUserRoutinglanguage';if(i==null||i==="")throw'Missing the required parameter "languageId" when calling deleteUserRoutinglanguage';return this.apiClient.callApi("/api/v2/users/{userId}/routinglanguages/{languageId}","DELETE",{userId:e,languageId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteUserRoutingskill(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling deleteUserRoutingskill';if(i==null||i==="")throw'Missing the required parameter "skillId" when calling deleteUserRoutingskill';return this.apiClient.callApi("/api/v2/users/{userId}/routingskills/{skillId}","DELETE",{userId:e,skillId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getRoutingAssessment(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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:i.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getRoutingEmailDomainDkim(e,i){if(i=i||{},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"],i.customHeaders)}getRoutingEmailDomainMailfrom(e,i){if(i=i||{},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"],i.customHeaders)}getRoutingEmailDomainRoute(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "domainName" when calling getRoutingEmailDomainRoute';if(i==null||i==="")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:i},{expand:this.apiClient.buildCollectionParam(n.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getRoutingEmailDomainRouteIdentityresolution(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "domainName" when calling getRoutingEmailDomainRouteIdentityresolution';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getRoutingEmailDomainRoutes(e,i){if(i=i||{},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:i.pageSize,pageNumber:i.pageNumber,pattern:i.pattern,expand:this.apiClient.buildCollectionParam(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getRoutingEmailDomainVerification(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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:i.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getRoutingEmailOutboundDomainActivation(e,i){if(i=i||{},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"],i.customHeaders)}getRoutingEmailOutboundDomains(e){return e=e||{},this.apiClient.callApi("/api/v2/routing/email/outbound/domains","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,filter:e.filter,expand:e.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getRoutingEmailSetup(e){return e=e||{},this.apiClient.callApi("/api/v2/routing/email/setup","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getRoutingLanguage(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getRoutingPredictorModelFeatures(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "predictorId" when calling getRoutingPredictorModelFeatures';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getRoutingPredictorModels(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getRoutingQueueAssistant(e,i){if(i=i||{},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(i.expand,"multi"),languageVariation:i.languageVariation,fallbackToPrimaryAssistant:i.fallbackToPrimaryAssistant},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getRoutingQueueComparisonperiod(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "queueId" when calling getRoutingQueueComparisonperiod';if(i==null||i==="")throw'Missing the required parameter "comparisonPeriodId" when calling getRoutingQueueComparisonperiod';return this.apiClient.callApi("/api/v2/routing/queues/{queueId}/comparisonperiods/{comparisonPeriodId}","GET",{queueId:e,comparisonPeriodId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getRoutingQueueComparisonperiods(e,i){if(i=i||{},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"],i.customHeaders)}getRoutingQueueEstimatedwaittime(e,i){if(i=i||{},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:i.conversationId},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getRoutingQueueIdentityresolution(e,i){if(i=i||{},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"],i.customHeaders)}getRoutingQueueMediatypeEstimatedwaittime(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "queueId" when calling getRoutingQueueMediatypeEstimatedwaittime';if(i==null||i==="")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:i},{labelId:n.labelId},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getRoutingQueueMembers(e,i){if(i=i||{},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:i.pageNumber,pageSize:i.pageSize,sortOrder:i.sortOrder,expand:this.apiClient.buildCollectionParam(i.expand,"multi"),name:i.name,profileSkills:this.apiClient.buildCollectionParam(i.profileSkills,"multi"),skills:this.apiClient.buildCollectionParam(i.skills,"multi"),languages:this.apiClient.buildCollectionParam(i.languages,"multi"),routingStatus:this.apiClient.buildCollectionParam(i.routingStatus,"multi"),presence:this.apiClient.buildCollectionParam(i.presence,"multi"),memberBy:i.memberBy,joined:i.joined},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getRoutingQueueUsers(e,i){if(i=i||{},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:i.pageNumber,pageSize:i.pageSize,sortOrder:i.sortOrder,expand:this.apiClient.buildCollectionParam(i.expand,"multi"),joined:i.joined,name:i.name,profileSkills:this.apiClient.buildCollectionParam(i.profileSkills,"multi"),skills:this.apiClient.buildCollectionParam(i.skills,"multi"),languages:this.apiClient.buildCollectionParam(i.languages,"multi"),routingStatus:this.apiClient.buildCollectionParam(i.routingStatus,"multi"),presence:this.apiClient.buildCollectionParam(i.presence,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getRoutingQueueWrapupcodes(e,i){if(i=i||{},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:i.pageSize,pageNumber:i.pageNumber,name:i.name},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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"],i.customHeaders)}getRoutingSkillgroup(e,i){if(i=i||{},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"],i.customHeaders)}getRoutingSkillgroupMembers(e,i){if(i=i||{},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:i.pageSize,after:i.after,before:i.before,expand:i.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getRoutingSkillgroupMembersDivisions(e,i){if(i=i||{},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:i.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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"],i.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,i,n){if(n=n||{},e==null)throw'Missing the required parameter "countryCode" when calling getRoutingSmsAvailablephonenumbers';if(i==null)throw'Missing the required parameter "phoneNumberType" when calling getRoutingSmsAvailablephonenumbers';return this.apiClient.callApi("/api/v2/routing/sms/availablephonenumbers","GET",{},{countryCode:e,region:n.region,city:n.city,areaCode:n.areaCode,phoneNumberType:i,pattern:n.pattern,addressRequirement:n.addressRequirement},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getRoutingSmsIdentityresolutionPhonenumber(e,i){if(i=i||{},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"],i.customHeaders)}getRoutingSmsPhonenumber(e,i){if(i=i||{},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:i.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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"],i.customHeaders)}getRoutingUserUtilization(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getRoutingUtilizationLabelAgents(e,i){if(i=i||{},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"],i.customHeaders)}getRoutingUtilizationLabels(e){return e=e||{},this.apiClient.callApi("/api/v2/routing/utilization/labels","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,sortOrder:e.sortOrder,name:e.name},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getRoutingUtilizationTag(e,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "tagId" when calling getRoutingUtilizationTag';return this.apiClient.callApi("/api/v2/routing/utilization/tags/{tagId}","GET",{tagId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getRoutingUtilizationTagAgents(e,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "tagId" when calling getRoutingUtilizationTagAgents';return this.apiClient.callApi("/api/v2/routing/utilization/tags/{tagId}/agents","GET",{tagId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getRoutingUtilizationTags(e){return e=e||{},this.apiClient.callApi("/api/v2/routing/utilization/tags","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,sortOrder:e.sortOrder,name:e.name},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getRoutingWrapupcode(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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:i.pageSize,pageNumber:i.pageNumber,joined:i.joined,divisionId:this.apiClient.buildCollectionParam(i.divisionId,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getUserRoutinglanguages(e,i){if(i=i||{},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:i.pageSize,pageNumber:i.pageNumber,sortOrder:i.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getUserRoutingskills(e,i){if(i=i||{},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:i.pageSize,pageNumber:i.pageNumber,sortOrder:i.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getUserSkillgroups(e,i){if(i=i||{},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:i.pageSize,after:i.after,before:i.before},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}patchRoutingConversation(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchRoutingConversation';if(i==null)throw'Missing the required parameter "body" when calling patchRoutingConversation';return this.apiClient.callApi("/api/v2/routing/conversations/{conversationId}","PATCH",{conversationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchRoutingEmailDomain(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "domainId" when calling patchRoutingEmailDomain';if(i==null)throw'Missing the required parameter "body" when calling patchRoutingEmailDomain';return this.apiClient.callApi("/api/v2/routing/email/domains/{domainId}","PATCH",{domainId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchRoutingEmailDomainValidate(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "domainId" when calling patchRoutingEmailDomainValidate';if(i==null)throw'Missing the required parameter "body" when calling patchRoutingEmailDomainValidate';return this.apiClient.callApi("/api/v2/routing/email/domains/{domainId}/validate","PATCH",{domainId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchRoutingEmailOutboundDomain(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "domainId" when calling patchRoutingEmailOutboundDomain';if(i==null)throw'Missing the required parameter "body" when calling patchRoutingEmailOutboundDomain';return this.apiClient.callApi("/api/v2/routing/email/outbound/domains/{domainId}","PATCH",{domainId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchRoutingPredictor(e,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "predictorId" when calling patchRoutingPredictor';return this.apiClient.callApi("/api/v2/routing/predictors/{predictorId}","PATCH",{predictorId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}patchRoutingPredictorsKeyperformanceindicator(e,i){if(i=i||{},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},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}patchRoutingQueueMember(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "queueId" when calling patchRoutingQueueMember';if(i==null||i==="")throw'Missing the required parameter "memberId" when calling patchRoutingQueueMember';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchRoutingQueueMembers(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "queueId" when calling patchRoutingQueueMembers';if(i==null)throw'Missing the required parameter "body" when calling patchRoutingQueueMembers';return this.apiClient.callApi("/api/v2/routing/queues/{queueId}/members","PATCH",{queueId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchRoutingQueueUser(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "queueId" when calling patchRoutingQueueUser';if(i==null||i==="")throw'Missing the required parameter "memberId" when calling patchRoutingQueueUser';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchRoutingQueueUsers(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "queueId" when calling patchRoutingQueueUsers';if(i==null)throw'Missing the required parameter "body" when calling patchRoutingQueueUsers';return this.apiClient.callApi("/api/v2/routing/queues/{queueId}/users","PATCH",{queueId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchRoutingSettingsContactcenter(e,i){if(i=i||{},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"],i.customHeaders)}patchRoutingSettingsTranscription(e,i){if(i=i||{},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"],i.customHeaders)}patchRoutingSkill(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "skillId" when calling patchRoutingSkill';if(i==null)throw'Missing the required parameter "body" when calling patchRoutingSkill';return this.apiClient.callApi("/api/v2/routing/skills/{skillId}","PATCH",{skillId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchRoutingSkillgroup(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "skillGroupId" when calling patchRoutingSkillgroup';if(i==null)throw'Missing the required parameter "body" when calling patchRoutingSkillgroup';return this.apiClient.callApi("/api/v2/routing/skillgroups/{skillGroupId}","PATCH",{skillGroupId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchRoutingSmsPhonenumber(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "phoneNumberId" when calling patchRoutingSmsPhonenumber';if(i==null)throw'Missing the required parameter "body" when calling patchRoutingSmsPhonenumber';return this.apiClient.callApi("/api/v2/routing/sms/phonenumbers/{phoneNumberId}","PATCH",{phoneNumberId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchUserQueue(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "queueId" when calling patchUserQueue';if(i==null||i==="")throw'Missing the required parameter "userId" when calling patchUserQueue';if(n==null)throw'Missing the required parameter "body" when calling patchUserQueue';return this.apiClient.callApi("/api/v2/users/{userId}/queues/{queueId}","PATCH",{queueId:e,userId:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchUserQueues(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling patchUserQueues';if(i==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(n.divisionId,"multi")},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchUserRoutinglanguage(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "userId" when calling patchUserRoutinglanguage';if(i==null||i==="")throw'Missing the required parameter "languageId" when calling patchUserRoutinglanguage';if(n==null)throw'Missing the required parameter "body" when calling patchUserRoutinglanguage';return this.apiClient.callApi("/api/v2/users/{userId}/routinglanguages/{languageId}","PATCH",{userId:e,languageId:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchUserRoutinglanguagesBulk(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling patchUserRoutinglanguagesBulk';if(i==null)throw'Missing the required parameter "body" when calling patchUserRoutinglanguagesBulk';return this.apiClient.callApi("/api/v2/users/{userId}/routinglanguages/bulk","PATCH",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchUserRoutingskillsBulk(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling patchUserRoutingskillsBulk';if(i==null)throw'Missing the required parameter "body" when calling patchUserRoutingskillsBulk';return this.apiClient.callApi("/api/v2/users/{userId}/routingskills/bulk","PATCH",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postAnalyticsQueuesObservationsQuery(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsRoutingActivityQuery(e,i){if(i=i||{},e==null)throw'Missing the required parameter "body" when calling postAnalyticsRoutingActivityQuery';return this.apiClient.callApi("/api/v2/analytics/routing/activity/query","POST",{},{pageSize:i.pageSize,pageNumber:i.pageNumber},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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"],i.customHeaders)}postRoutingEmailDomainMailfrom(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "domainId" when calling postRoutingEmailDomainMailfrom';if(i==null)throw'Missing the required parameter "body" when calling postRoutingEmailDomainMailfrom';return this.apiClient.callApi("/api/v2/routing/email/domains/{domainId}/mailfrom","POST",{domainId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postRoutingEmailDomainRoutes(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "domainName" when calling postRoutingEmailDomainRoutes';if(i==null)throw'Missing the required parameter "body" when calling postRoutingEmailDomainRoutes';return this.apiClient.callApi("/api/v2/routing/email/domains/{domainName}/routes","POST",{domainName:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postRoutingEmailDomainTestconnection(e,i){if(i=i||{},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},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postRoutingEmailDomainVerification(e,i){if(i=i||{},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"],i.customHeaders)}postRoutingEmailDomains(e,i){if(i=i||{},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"],i.customHeaders)}postRoutingEmailOutboundDomainTestconnection(e,i){if(i=i||{},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},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postRoutingEmailOutboundDomains(e,i){if(i=i||{},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"],i.customHeaders)}postRoutingEmailOutboundDomainsSimulated(e,i){if(i=i||{},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"],i.customHeaders)}postRoutingLanguages(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}postRoutingQueueMembers(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "queueId" when calling postRoutingQueueMembers';if(i==null)throw'Missing the required parameter "body" when calling postRoutingQueueMembers';return this.apiClient.callApi("/api/v2/routing/queues/{queueId}/members","POST",{queueId:e},{delete:n._delete},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postRoutingQueueUsers(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "queueId" when calling postRoutingQueueUsers';if(i==null)throw'Missing the required parameter "body" when calling postRoutingQueueUsers';return this.apiClient.callApi("/api/v2/routing/queues/{queueId}/users","POST",{queueId:e},{delete:n._delete},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postRoutingQueueWrapupcodes(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "queueId" when calling postRoutingQueueWrapupcodes';if(i==null)throw'Missing the required parameter "body" when calling postRoutingQueueWrapupcodes';return this.apiClient.callApi("/api/v2/routing/queues/{queueId}/wrapupcodes","POST",{queueId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postRoutingQueues(e,i){if(i=i||{},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"],i.customHeaders)}postRoutingSkillgroupMembersDivisions(e,i){if(i=i||{},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},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postRoutingSkillgroups(e,i){if(i=i||{},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"],i.customHeaders)}postRoutingSkills(e,i){if(i=i||{},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"],i.customHeaders)}postRoutingSmsAddresses(e,i){if(i=i||{},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"],i.customHeaders)}postRoutingSmsPhonenumbers(e,i){if(i=i||{},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"],i.customHeaders)}postRoutingSmsPhonenumbersAlphanumeric(e,i){if(i=i||{},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"],i.customHeaders)}postRoutingSmsPhonenumbersImport(e,i){if(i=i||{},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"],i.customHeaders)}postRoutingUtilizationLabels(e,i){if(i=i||{},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"],i.customHeaders)}postRoutingUtilizationTags(e,i){if(i=i||{},e==null)throw'Missing the required parameter "body" when calling postRoutingUtilizationTags';return this.apiClient.callApi("/api/v2/routing/utilization/tags","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postRoutingWrapupcodes(e,i){if(i=i||{},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"],i.customHeaders)}postUserRoutinglanguages(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling postUserRoutinglanguages';if(i==null)throw'Missing the required parameter "body" when calling postUserRoutinglanguages';return this.apiClient.callApi("/api/v2/users/{userId}/routinglanguages","POST",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postUserRoutingskills(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling postUserRoutingskills';if(i==null)throw'Missing the required parameter "body" when calling postUserRoutingskills';return this.apiClient.callApi("/api/v2/users/{userId}/routingskills","POST",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putRoutingDirectroutingbackupSettingsMe(e,i){if(i=i||{},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"],i.customHeaders)}putRoutingEmailDomainRoute(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "domainName" when calling putRoutingEmailDomainRoute';if(i==null||i==="")throw'Missing the required parameter "routeId" when calling putRoutingEmailDomainRoute';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}putRoutingEmailDomainRouteIdentityresolution(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "domainName" when calling putRoutingEmailDomainRouteIdentityresolution';if(i==null||i==="")throw'Missing the required parameter "routeId" when calling putRoutingEmailDomainRouteIdentityresolution';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}putRoutingEmailOutboundDomainActivation(e,i){if(i=i||{},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"],i.customHeaders)}putRoutingMessageRecipient(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "recipientId" when calling putRoutingMessageRecipient';if(i==null)throw'Missing the required parameter "body" when calling putRoutingMessageRecipient';return this.apiClient.callApi("/api/v2/routing/message/recipients/{recipientId}","PUT",{recipientId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putRoutingQueue(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "queueId" when calling putRoutingQueue';if(i==null)throw'Missing the required parameter "body" when calling putRoutingQueue';return this.apiClient.callApi("/api/v2/routing/queues/{queueId}","PUT",{queueId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putRoutingQueueIdentityresolution(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "queueId" when calling putRoutingQueueIdentityresolution';if(i==null)throw'Missing the required parameter "body" when calling putRoutingQueueIdentityresolution';return this.apiClient.callApi("/api/v2/routing/queues/{queueId}/identityresolution","PUT",{queueId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putRoutingSettings(e,i){if(i=i||{},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"],i.customHeaders)}putRoutingSettingsTranscription(e,i){if(i=i||{},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"],i.customHeaders)}putRoutingSmsIdentityresolutionPhonenumber(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "addressId" when calling putRoutingSmsIdentityresolutionPhonenumber';if(i==null)throw'Missing the required parameter "body" when calling putRoutingSmsIdentityresolutionPhonenumber';return this.apiClient.callApi("/api/v2/routing/sms/identityresolution/phonenumbers/{addressId}","PUT",{addressId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putRoutingUserDirectroutingbackupSettings(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling putRoutingUserDirectroutingbackupSettings';if(i==null)throw'Missing the required parameter "body" when calling putRoutingUserDirectroutingbackupSettings';return this.apiClient.callApi("/api/v2/routing/users/{userId}/directroutingbackup/settings","PUT",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putRoutingUserUtilization(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling putRoutingUserUtilization';if(i==null)throw'Missing the required parameter "body" when calling putRoutingUserUtilization';return this.apiClient.callApi("/api/v2/routing/users/{userId}/utilization","PUT",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putRoutingUtilization(e,i){if(i=i||{},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"],i.customHeaders)}putRoutingUtilizationLabel(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "labelId" when calling putRoutingUtilizationLabel';if(i==null)throw'Missing the required parameter "body" when calling putRoutingUtilizationLabel';return this.apiClient.callApi("/api/v2/routing/utilization/labels/{labelId}","PUT",{labelId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putRoutingWrapupcode(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "codeId" when calling putRoutingWrapupcode';if(i==null)throw'Missing the required parameter "body" when calling putRoutingWrapupcode';return this.apiClient.callApi("/api/v2/routing/wrapupcodes/{codeId}","PUT",{codeId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putUserRoutingskill(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "userId" when calling putUserRoutingskill';if(i==null||i==="")throw'Missing the required parameter "skillId" when calling putUserRoutingskill';if(n==null)throw'Missing the required parameter "body" when calling putUserRoutingskill';return this.apiClient.callApi("/api/v2/users/{userId}/routingskills/{skillId}","PUT",{userId:e,skillId:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}putUserRoutingskillsBulk(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling putUserRoutingskillsBulk';if(i==null)throw'Missing the required parameter "body" when calling putUserRoutingskillsBulk';return this.apiClient.callApi("/api/v2/users/{userId}/routingskills/bulk","PUT",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}},qb=class{constructor(e){this.apiClient=e||q.instance}deleteScimUser(e,i){if(i=i||{},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":i.ifMatch},{},null,["PureCloud OAuth"],["application/json"],["application/scim+json","application/json"],i.customHeaders)}deleteScimV2User(e,i){if(i=i||{},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":i.ifMatch},{},null,["PureCloud OAuth"],["application/json"],["application/scim+json","application/json"],i.customHeaders)}getScimGroup(e,i){if(i=i||{},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(i.attributes,"multi"),excludedAttributes:this.apiClient.buildCollectionParam(i.excludedAttributes,"multi")},{"If-None-Match":i.ifNoneMatch},{},null,["PureCloud OAuth"],["application/json"],["application/scim+json","application/json"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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(i.attributes,"multi"),excludedAttributes:this.apiClient.buildCollectionParam(i.excludedAttributes,"multi")},{"If-None-Match":i.ifNoneMatch},{},null,["PureCloud OAuth"],["application/json"],["application/scim+json","application/json"],i.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,i){if(i=i||{},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(i.attributes,"multi"),excludedAttributes:this.apiClient.buildCollectionParam(i.excludedAttributes,"multi")},{"If-None-Match":i.ifNoneMatch},{},null,["PureCloud OAuth"],["application/json"],["application/scim+json","application/json"],i.customHeaders)}getScimV2Groups(e,i){if(i=i||{},e==null)throw'Missing the required parameter "filter" when calling getScimV2Groups';return this.apiClient.callApi("/api/v2/scim/v2/groups","GET",{},{startIndex:i.startIndex,count:i.count,attributes:this.apiClient.buildCollectionParam(i.attributes,"multi"),excludedAttributes:this.apiClient.buildCollectionParam(i.excludedAttributes,"multi"),filter:e},{},{},null,["PureCloud OAuth"],["application/json"],["application/scim+json","application/json"],i.customHeaders)}getScimV2Resourcetype(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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(i.attributes,"multi"),excludedAttributes:this.apiClient.buildCollectionParam(i.excludedAttributes,"multi")},{"If-None-Match":i.ifNoneMatch},{},null,["PureCloud OAuth"],["application/json"],["application/scim+json","application/json"],i.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,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "groupId" when calling patchScimGroup';if(i==null)throw'Missing the required parameter "body" when calling patchScimGroup';return this.apiClient.callApi("/api/v2/scim/groups/{groupId}","PATCH",{groupId:e},{},{"If-Match":n.ifMatch},{},i,["PureCloud OAuth"],["application/scim+json","application/json"],["application/scim+json","application/json"],n.customHeaders)}patchScimUser(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling patchScimUser';if(i==null)throw'Missing the required parameter "body" when calling patchScimUser';return this.apiClient.callApi("/api/v2/scim/users/{userId}","PATCH",{userId:e},{},{"If-Match":n.ifMatch},{},i,["PureCloud OAuth"],["application/scim+json","application/json"],["application/scim+json","application/json"],n.customHeaders)}patchScimV2Group(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "groupId" when calling patchScimV2Group';if(i==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":n.ifMatch},{},i,["PureCloud OAuth"],["application/scim+json","application/json"],["application/scim+json","application/json"],n.customHeaders)}patchScimV2User(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling patchScimV2User';if(i==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":n.ifMatch},{},i,["PureCloud OAuth"],["application/scim+json","application/json"],["application/scim+json","application/json"],n.customHeaders)}postScimUsers(e,i){if(i=i||{},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"],i.customHeaders)}postScimV2Users(e,i){if(i=i||{},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"],i.customHeaders)}putScimGroup(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "groupId" when calling putScimGroup';if(i==null)throw'Missing the required parameter "body" when calling putScimGroup';return this.apiClient.callApi("/api/v2/scim/groups/{groupId}","PUT",{groupId:e},{},{"If-Match":n.ifMatch},{},i,["PureCloud OAuth"],["application/scim+json","application/json"],["application/scim+json","application/json"],n.customHeaders)}putScimUser(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling putScimUser';if(i==null)throw'Missing the required parameter "body" when calling putScimUser';return this.apiClient.callApi("/api/v2/scim/users/{userId}","PUT",{userId:e},{},{"If-Match":n.ifMatch},{},i,["PureCloud OAuth"],["application/scim+json","application/json"],["application/scim+json","application/json"],n.customHeaders)}putScimV2Group(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "groupId" when calling putScimV2Group';if(i==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":n.ifMatch},{},i,["PureCloud OAuth"],["application/scim+json","application/json"],["application/scim+json","application/json"],n.customHeaders)}putScimV2User(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling putScimV2User';if(i==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":n.ifMatch},{},i,["PureCloud OAuth"],["application/scim+json","application/json"],["application/scim+json","application/json"],n.customHeaders)}},_b=class{constructor(e){this.apiClient=e||q.instance}getScript(e,i){if(i=i||{},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"],i.customHeaders)}getScriptPage(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "scriptId" when calling getScriptPage';if(i==null||i==="")throw'Missing the required parameter "pageId" when calling getScriptPage';return this.apiClient.callApi("/api/v2/scripts/{scriptId}/pages/{pageId}","GET",{scriptId:e,pageId:i},{scriptDataVersion:n.scriptDataVersion},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getScriptPages(e,i){if(i=i||{},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:i.scriptDataVersion},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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:i.input,output:i.output,type:i.type,scriptDataVersion:i.scriptDataVersion},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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:i.scriptDataVersion},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getScriptsPublishedScriptIdPage(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "scriptId" when calling getScriptsPublishedScriptIdPage';if(i==null||i==="")throw'Missing the required parameter "pageId" when calling getScriptsPublishedScriptIdPage';return this.apiClient.callApi("/api/v2/scripts/published/{scriptId}/pages/{pageId}","GET",{scriptId:e,pageId:i},{scriptDataVersion:n.scriptDataVersion},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getScriptsPublishedScriptIdPages(e,i){if(i=i||{},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:i.scriptDataVersion},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getScriptsPublishedScriptIdVariables(e,i){if(i=i||{},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:i.input,output:i.output,type:i.type,scriptDataVersion:i.scriptDataVersion},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getScriptsUploadStatus(e,i){if(i=i||{},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:i.longPoll},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postScriptExport(e,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "scriptId" when calling postScriptExport';return this.apiClient.callApi("/api/v2/scripts/{scriptId}/export","POST",{scriptId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.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)}},Hb=class{constructor(e){this.apiClient=e||q.instance}getDocumentationGknSearch(e,i){if(i=i||{},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"],i.customHeaders)}getDocumentationSearch(e,i){if(i=i||{},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"],i.customHeaders)}getGroupsSearch(e,i){if(i=i||{},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(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getLocationsSearch(e,i){if(i=i||{},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(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getSearch(e,i){if(i=i||{},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(i.expand,"multi"),profile:i.profile},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getSearchSuggest(e,i){if(i=i||{},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(i.expand,"multi"),profile:i.profile},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getTelephonyProvidersEdgesSitesSearch(e,i){if(i=i||{},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(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getUsersSearch(e,i){if(i=i||{},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(i.expand,"multi"),integrationPresenceSource:i.integrationPresenceSource},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getVoicemailSearch(e,i){if(i=i||{},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(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postConversationsCustomattributesSearch(e,i){if(i=i||{},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"],i.customHeaders)}postConversationsParticipantsAttributesSearch(e,i){if(i=i||{},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"],i.customHeaders)}postDocumentationAllSearch(e,i){if(i=i||{},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"],i.customHeaders)}postDocumentationGknSearch(e,i){if(i=i||{},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"],i.customHeaders)}postDocumentationSearch(e,i){if(i=i||{},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"],i.customHeaders)}postGroupsSearch(e,i){if(i=i||{},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"],i.customHeaders)}postLocationsSearch(e,i){if(i=i||{},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"],i.customHeaders)}postSearch(e,i){if(i=i||{},e==null)throw'Missing the required parameter "body" when calling postSearch';return this.apiClient.callApi("/api/v2/search","POST",{},{profile:i.profile},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postSearchSuggest(e,i){if(i=i||{},e==null)throw'Missing the required parameter "body" when calling postSearchSuggest';return this.apiClient.callApi("/api/v2/search/suggest","POST",{},{profile:i.profile},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postSpeechandtextanalyticsTranscriptsSearch(e,i){if(i=i||{},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"],i.customHeaders)}postTeamsSearch(e,i){if(i=i||{},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"],i.customHeaders)}postTelephonyProvidersEdgesSitesSearch(e,i){if(i=i||{},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"],i.customHeaders)}postUsersSearch(e,i){if(i=i||{},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"],i.customHeaders)}postUsersSearchConversationTarget(e,i){if(i=i||{},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"],i.customHeaders)}postUsersSearchQueuemembersManage(e,i){if(i=i||{},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"],i.customHeaders)}postUsersSearchTeamsAssign(e,i){if(i=i||{},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"],i.customHeaders)}postVoicemailSearch(e,i){if(i=i||{},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"],i.customHeaders)}},Rb=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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}patchUsersAgentuiAgentsAutoanswerAgentIdSettings(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "agentId" when calling patchUsersAgentuiAgentsAutoanswerAgentIdSettings';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.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,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "agentId" when calling putUsersAgentuiAgentsAutoanswerAgentIdSettings';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}},Ib=class{constructor(e){this.apiClient=e||q.instance}deleteSocialmediaEscalationrule(e,i){if(i=i||{},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"],i.customHeaders)}deleteSocialmediaMessage(e,i){if(i=i||{},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"],i.customHeaders)}deleteSocialmediaTopic(e,i){if(i=i||{},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:i.hardDelete},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}deleteSocialmediaTopicDataingestionrulesFacebookFacebookIngestionRuleId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "topicId" when calling deleteSocialmediaTopicDataingestionrulesFacebookFacebookIngestionRuleId';if(i==null||i==="")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:i},{hardDelete:n.hardDelete},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteSocialmediaTopicDataingestionrulesGooglebusinessprofileGoogleBusinessProfileIngestionRuleId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "topicId" when calling deleteSocialmediaTopicDataingestionrulesGooglebusinessprofileGoogleBusinessProfileIngestionRuleId';if(i==null||i==="")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:i},{hardDelete:n.hardDelete},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteSocialmediaTopicDataingestionrulesInstagramInstagramIngestionRuleId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "topicId" when calling deleteSocialmediaTopicDataingestionrulesInstagramInstagramIngestionRuleId';if(i==null||i==="")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:i},{hardDelete:n.hardDelete},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteSocialmediaTopicDataingestionrulesOpenOpenId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "topicId" when calling deleteSocialmediaTopicDataingestionrulesOpenOpenId';if(i==null||i==="")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:i},{hardDelete:n.hardDelete},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteSocialmediaTopicDataingestionrulesTwitterTwitterIngestionRuleId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "topicId" when calling deleteSocialmediaTopicDataingestionrulesTwitterTwitterIngestionRuleId';if(i==null||i==="")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:i},{hardDelete:n.hardDelete},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getSocialmediaAnalyticsAggregatesJob(e,i){if(i=i||{},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"],i.customHeaders)}getSocialmediaAnalyticsAggregatesJobResults(e,i){if(i=i||{},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:i.cursor},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getSocialmediaAnalyticsMessagesJob(e,i){if(i=i||{},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"],i.customHeaders)}getSocialmediaAnalyticsMessagesJobResults(e,i){if(i=i||{},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:i.cursor},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getSocialmediaEscalationrule(e,i){if(i=i||{},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:i.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getSocialmediaEscalationrules(e,i){if(i=i||{},e==null)throw'Missing the required parameter "divisionId" when calling getSocialmediaEscalationrules';return this.apiClient.callApi("/api/v2/socialmedia/escalationrules","GET",{},{pageNumber:i.pageNumber,pageSize:i.pageSize,divisionId:e},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getSocialmediaTopic(e,i){if(i=i||{},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:i.includeDeleted},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getSocialmediaTopicDataingestionrules(e,i){if(i=i||{},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:i.pageNumber,pageSize:i.pageSize,includeDeleted:i.includeDeleted},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getSocialmediaTopicDataingestionrulesFacebookFacebookIngestionRuleId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "topicId" when calling getSocialmediaTopicDataingestionrulesFacebookFacebookIngestionRuleId';if(i==null||i==="")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:i},{includeDeleted:n.includeDeleted},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getSocialmediaTopicDataingestionrulesFacebookFacebookIngestionRuleIdVersion(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "topicId" when calling getSocialmediaTopicDataingestionrulesFacebookFacebookIngestionRuleIdVersion';if(i==null||i==="")throw'Missing the required parameter "facebookIngestionRuleId" when calling getSocialmediaTopicDataingestionrulesFacebookFacebookIngestionRuleIdVersion';if(n==null||n==="")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:i,dataIngestionRuleVersion:n},{includeDeleted:a.includeDeleted},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getSocialmediaTopicDataingestionrulesFacebookFacebookIngestionRuleIdVersions(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "topicId" when calling getSocialmediaTopicDataingestionrulesFacebookFacebookIngestionRuleIdVersions';if(i==null||i==="")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:i},{pageNumber:n.pageNumber,pageSize:n.pageSize,includeDeleted:n.includeDeleted},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getSocialmediaTopicDataingestionrulesGooglebusinessprofileGoogleBusinessProfileIngestionRuleId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "topicId" when calling getSocialmediaTopicDataingestionrulesGooglebusinessprofileGoogleBusinessProfileIngestionRuleId';if(i==null||i==="")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:i},{includeDeleted:n.includeDeleted},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getSocialmediaTopicDataingestionrulesGooglebusinessprofileGoogleBusinessProfileIngestionRuleIdVersion(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "topicId" when calling getSocialmediaTopicDataingestionrulesGooglebusinessprofileGoogleBusinessProfileIngestionRuleIdVersion';if(i==null||i==="")throw'Missing the required parameter "googleBusinessProfileIngestionRuleId" when calling getSocialmediaTopicDataingestionrulesGooglebusinessprofileGoogleBusinessProfileIngestionRuleIdVersion';if(n==null||n==="")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:i,dataIngestionRuleVersion:n},{includeDeleted:a.includeDeleted},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getSocialmediaTopicDataingestionrulesGooglebusinessprofileGoogleBusinessProfileIngestionRuleIdVersions(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "topicId" when calling getSocialmediaTopicDataingestionrulesGooglebusinessprofileGoogleBusinessProfileIngestionRuleIdVersions';if(i==null||i==="")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:i},{pageNumber:n.pageNumber,pageSize:n.pageSize,includeDeleted:n.includeDeleted},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getSocialmediaTopicDataingestionrulesInstagramInstagramIngestionRuleId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "topicId" when calling getSocialmediaTopicDataingestionrulesInstagramInstagramIngestionRuleId';if(i==null||i==="")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:i},{includeDeleted:n.includeDeleted},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getSocialmediaTopicDataingestionrulesInstagramInstagramIngestionRuleIdVersion(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "topicId" when calling getSocialmediaTopicDataingestionrulesInstagramInstagramIngestionRuleIdVersion';if(i==null||i==="")throw'Missing the required parameter "instagramIngestionRuleId" when calling getSocialmediaTopicDataingestionrulesInstagramInstagramIngestionRuleIdVersion';if(n==null||n==="")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:i,dataIngestionRuleVersion:n},{includeDeleted:a.includeDeleted},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getSocialmediaTopicDataingestionrulesInstagramInstagramIngestionRuleIdVersions(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "topicId" when calling getSocialmediaTopicDataingestionrulesInstagramInstagramIngestionRuleIdVersions';if(i==null||i==="")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:i},{pageNumber:n.pageNumber,pageSize:n.pageSize,includeDeleted:n.includeDeleted},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getSocialmediaTopicDataingestionrulesOpenOpenId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "topicId" when calling getSocialmediaTopicDataingestionrulesOpenOpenId';if(i==null||i==="")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:i},{includeDeleted:n.includeDeleted},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getSocialmediaTopicDataingestionrulesOpenOpenIdVersion(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "topicId" when calling getSocialmediaTopicDataingestionrulesOpenOpenIdVersion';if(i==null||i==="")throw'Missing the required parameter "openId" when calling getSocialmediaTopicDataingestionrulesOpenOpenIdVersion';if(n==null||n==="")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:i,dataIngestionRuleVersion:n},{includeDeleted:a.includeDeleted},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getSocialmediaTopicDataingestionrulesOpenOpenIdVersions(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "topicId" when calling getSocialmediaTopicDataingestionrulesOpenOpenIdVersions';if(i==null||i==="")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:i},{pageNumber:n.pageNumber,pageSize:n.pageSize,includeDeleted:n.includeDeleted},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getSocialmediaTopicDataingestionrulesTwitterTwitterIngestionRuleId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "topicId" when calling getSocialmediaTopicDataingestionrulesTwitterTwitterIngestionRuleId';if(i==null||i==="")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:i},{includeDeleted:n.includeDeleted},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getSocialmediaTopicDataingestionrulesTwitterTwitterIngestionRuleIdVersion(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "topicId" when calling getSocialmediaTopicDataingestionrulesTwitterTwitterIngestionRuleIdVersion';if(i==null||i==="")throw'Missing the required parameter "twitterIngestionRuleId" when calling getSocialmediaTopicDataingestionrulesTwitterTwitterIngestionRuleIdVersion';if(n==null||n==="")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:i,dataIngestionRuleVersion:n},{includeDeleted:a.includeDeleted},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getSocialmediaTopicDataingestionrulesTwitterTwitterIngestionRuleIdVersions(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "topicId" when calling getSocialmediaTopicDataingestionrulesTwitterTwitterIngestionRuleIdVersions';if(i==null||i==="")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:i},{pageNumber:n.pageNumber,pageSize:n.pageSize,includeDeleted:n.includeDeleted},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.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,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "topicId" when calling patchSocialmediaTopic';return this.apiClient.callApi("/api/v2/socialmedia/topics/{topicId}","PATCH",{topicId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}patchSocialmediaTopicDataingestionrulesFacebookFacebookIngestionRuleId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "topicId" when calling patchSocialmediaTopicDataingestionrulesFacebookFacebookIngestionRuleId';if(i==null||i==="")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:i},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchSocialmediaTopicDataingestionrulesGooglebusinessprofileGoogleBusinessProfileIngestionRuleId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "topicId" when calling patchSocialmediaTopicDataingestionrulesGooglebusinessprofileGoogleBusinessProfileIngestionRuleId';if(i==null||i==="")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:i},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchSocialmediaTopicDataingestionrulesInstagramInstagramIngestionRuleId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "topicId" when calling patchSocialmediaTopicDataingestionrulesInstagramInstagramIngestionRuleId';if(i==null||i==="")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:i},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchSocialmediaTopicDataingestionrulesOpenOpenId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "topicId" when calling patchSocialmediaTopicDataingestionrulesOpenOpenId';if(i==null||i==="")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:i},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchSocialmediaTopicDataingestionrulesTwitterTwitterIngestionRuleId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "topicId" when calling patchSocialmediaTopicDataingestionrulesTwitterTwitterIngestionRuleId';if(i==null||i==="")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:i},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postSocialmediaAnalyticsAggregatesJobs(e,i){if(i=i||{},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"],i.customHeaders)}postSocialmediaAnalyticsMessagesJobs(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},e==null)throw'Missing the required parameter "divisionId" when calling postSocialmediaEscalationsMessages';return this.apiClient.callApi("/api/v2/socialmedia/escalations/messages","POST",{},{divisionId:e},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postSocialmediaTopicDataingestionrulesFacebook(e,i){if(i=i||{},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},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postSocialmediaTopicDataingestionrulesGooglebusinessprofile(e,i){if(i=i||{},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},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postSocialmediaTopicDataingestionrulesInstagram(e,i){if(i=i||{},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},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postSocialmediaTopicDataingestionrulesOpen(e,i){if(i=i||{},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},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postSocialmediaTopicDataingestionrulesOpenRuleIdMessagesBulk(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "topicId" when calling postSocialmediaTopicDataingestionrulesOpenRuleIdMessagesBulk';if(i==null||i==="")throw'Missing the required parameter "ruleId" when calling postSocialmediaTopicDataingestionrulesOpenRuleIdMessagesBulk';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postSocialmediaTopicDataingestionrulesOpenRuleIdReactionsBulk(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "topicId" when calling postSocialmediaTopicDataingestionrulesOpenRuleIdReactionsBulk';if(i==null||i==="")throw'Missing the required parameter "ruleId" when calling postSocialmediaTopicDataingestionrulesOpenRuleIdReactionsBulk';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postSocialmediaTopicDataingestionrulesTwitter(e,i){if(i=i||{},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},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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"],i.customHeaders)}putSocialmediaEscalationrule(e,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "escalationRuleId" when calling putSocialmediaEscalationrule';return this.apiClient.callApi("/api/v2/socialmedia/escalationrules/{escalationRuleId}","PUT",{escalationRuleId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}putSocialmediaTopicDataingestionrulesFacebookFacebookIngestionRuleId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "topicId" when calling putSocialmediaTopicDataingestionrulesFacebookFacebookIngestionRuleId';if(i==null||i==="")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:i},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putSocialmediaTopicDataingestionrulesGooglebusinessprofileGoogleBusinessProfileIngestionRuleId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "topicId" when calling putSocialmediaTopicDataingestionrulesGooglebusinessprofileGoogleBusinessProfileIngestionRuleId';if(i==null||i==="")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:i},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putSocialmediaTopicDataingestionrulesInstagramInstagramIngestionRuleId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "topicId" when calling putSocialmediaTopicDataingestionrulesInstagramInstagramIngestionRuleId';if(i==null||i==="")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:i},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putSocialmediaTopicDataingestionrulesOpenOpenId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "topicId" when calling putSocialmediaTopicDataingestionrulesOpenOpenId';if(i==null||i==="")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:i},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putSocialmediaTopicDataingestionrulesTwitterTwitterIngestionRuleId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "topicId" when calling putSocialmediaTopicDataingestionrulesTwitterTwitterIngestionRuleId';if(i==null||i==="")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:i},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}},zb=class{constructor(e){this.apiClient=e||q.instance}deleteSpeechandtextanalyticsCategory(e,i){if(i=i||{},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"],i.customHeaders)}deleteSpeechandtextanalyticsDictionaryfeedbackDictionaryFeedbackId(e,i){if(i=i||{},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"],i.customHeaders)}deleteSpeechandtextanalyticsProgram(e,i){if(i=i||{},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:i.forceDelete},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}deleteSpeechandtextanalyticsReprocessingJob(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}deleteSpeechandtextanalyticsTopic(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getSpeechandtextanalyticsConversation(e,i){if(i=i||{},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"],i.customHeaders)}getSpeechandtextanalyticsConversationCategories(e,i){if(i=i||{},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:i.pageSize,pageNumber:i.pageNumber},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getSpeechandtextanalyticsConversationCommunicationTranscripturl(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getSpeechandtextanalyticsConversationCommunicationTranscripturl';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getSpeechandtextanalyticsConversationCommunicationTranscripturls(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getSpeechandtextanalyticsConversationCommunicationTranscripturls';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getSpeechandtextanalyticsConversationSentiments(e,i){if(i=i||{},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"],i.customHeaders)}getSpeechandtextanalyticsConversationSummaries(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getSpeechandtextanalyticsProgram(e,i){if(i=i||{},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"],i.customHeaders)}getSpeechandtextanalyticsProgramMappings(e,i){if(i=i||{},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"],i.customHeaders)}getSpeechandtextanalyticsProgramSettingsInsights(e,i){if(i=i||{},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"],i.customHeaders)}getSpeechandtextanalyticsProgramTranscriptionengines(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getSpeechandtextanalyticsProgramsSettingsInsights(e){return e=e||{},this.apiClient.callApi("/api/v2/speechandtextanalytics/programs/settings/insights","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,programIds:this.apiClient.buildCollectionParam(e.programIds,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getSpeechandtextanalyticsProgramsTopiclinksJob(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getSpeechandtextanalyticsReprocessingJobInteractions(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getSpeechandtextanalyticsTopics(e){return e=e||{},this.apiClient.callApi("/api/v2/speechandtextanalytics/topics","GET",{},{nextPage:e.nextPage,pageSize:e.pageSize,pageNumber:e.pageNumber,state:e.state,name:e.name,ids:this.apiClient.buildCollectionParam(e.ids,"multi"),dialects:this.apiClient.buildCollectionParam(e.dialects,"multi"),sortBy:e.sortBy,sortOrder:e.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getSpeechandtextanalyticsTopicsDialects(e){return e=e||{},this.apiClient.callApi("/api/v2/speechandtextanalytics/topics/dialects","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getSpeechandtextanalyticsTopicsGeneral(e){return e=e||{},this.apiClient.callApi("/api/v2/speechandtextanalytics/topics/general","GET",{},{dialect:e.dialect},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getSpeechandtextanalyticsTopicsGeneralStatus(e){return e=e||{},this.apiClient.callApi("/api/v2/speechandtextanalytics/topics/general/status","GET",{},{dialect:e.dialect},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getSpeechandtextanalyticsTopicsPublishjob(e,i){if(i=i||{},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"],i.customHeaders)}getSpeechandtextanalyticsTopicsTestphraseJob(e,i){if(i=i||{},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"],i.customHeaders)}getSpeechandtextanalyticsTranslationsLanguageConversation(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "languageId" when calling getSpeechandtextanalyticsTranslationsLanguageConversation';if(i==null||i==="")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:i},{communicationId:n.communicationId,recordingId:n.recordingId},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getSpeechandtextanalyticsTranslationsLanguages(e){return e=e||{},this.apiClient.callApi("/api/v2/speechandtextanalytics/translations/languages","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}patchSpeechandtextanalyticsSettings(e,i){if(i=i||{},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"],i.customHeaders)}postSpeechandtextanalyticsCategories(e,i){if(i=i||{},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"],i.customHeaders)}postSpeechandtextanalyticsDictionaryfeedback(e,i){if(i=i||{},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"],i.customHeaders)}postSpeechandtextanalyticsPrograms(e,i){if(i=i||{},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"],i.customHeaders)}postSpeechandtextanalyticsProgramsGeneralJobs(e,i){if(i=i||{},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"],i.customHeaders)}postSpeechandtextanalyticsProgramsPublishjobs(e,i){if(i=i||{},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"],i.customHeaders)}postSpeechandtextanalyticsReprocessingJobs(e,i){if(i=i||{},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"],i.customHeaders)}postSpeechandtextanalyticsSentimentfeedback(e,i){if(i=i||{},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"],i.customHeaders)}postSpeechandtextanalyticsTopics(e,i){if(i=i||{},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"],i.customHeaders)}postSpeechandtextanalyticsTopicsPublishjobs(e,i){if(i=i||{},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"],i.customHeaders)}postSpeechandtextanalyticsTopicsTestphraseJobs(e,i){if(i=i||{},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"],i.customHeaders)}postSpeechandtextanalyticsTranscriptsSearch(e,i){if(i=i||{},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"],i.customHeaders)}putSpeechandtextanalyticsCategory(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "categoryId" when calling putSpeechandtextanalyticsCategory';if(i==null)throw'Missing the required parameter "body" when calling putSpeechandtextanalyticsCategory';return this.apiClient.callApi("/api/v2/speechandtextanalytics/categories/{categoryId}","PUT",{categoryId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putSpeechandtextanalyticsDictionaryfeedbackDictionaryFeedbackId(e,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "dictionaryFeedbackId" when calling putSpeechandtextanalyticsDictionaryfeedbackDictionaryFeedbackId';return this.apiClient.callApi("/api/v2/speechandtextanalytics/dictionaryfeedback/{dictionaryFeedbackId}","PUT",{dictionaryFeedbackId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}putSpeechandtextanalyticsProgram(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "programId" when calling putSpeechandtextanalyticsProgram';if(i==null)throw'Missing the required parameter "body" when calling putSpeechandtextanalyticsProgram';return this.apiClient.callApi("/api/v2/speechandtextanalytics/programs/{programId}","PUT",{programId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putSpeechandtextanalyticsProgramMappings(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "programId" when calling putSpeechandtextanalyticsProgramMappings';if(i==null)throw'Missing the required parameter "body" when calling putSpeechandtextanalyticsProgramMappings';return this.apiClient.callApi("/api/v2/speechandtextanalytics/programs/{programId}/mappings","PUT",{programId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putSpeechandtextanalyticsProgramSettingsInsights(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "programId" when calling putSpeechandtextanalyticsProgramSettingsInsights';if(i==null)throw'Missing the required parameter "body" when calling putSpeechandtextanalyticsProgramSettingsInsights';return this.apiClient.callApi("/api/v2/speechandtextanalytics/programs/{programId}/settings/insights","PUT",{programId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putSpeechandtextanalyticsProgramTranscriptionengines(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "programId" when calling putSpeechandtextanalyticsProgramTranscriptionengines';if(i==null)throw'Missing the required parameter "body" when calling putSpeechandtextanalyticsProgramTranscriptionengines';return this.apiClient.callApi("/api/v2/speechandtextanalytics/programs/{programId}/transcriptionengines","PUT",{programId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putSpeechandtextanalyticsSettings(e,i){if(i=i||{},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"],i.customHeaders)}putSpeechandtextanalyticsTopic(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "topicId" when calling putSpeechandtextanalyticsTopic';if(i==null)throw'Missing the required parameter "body" when calling putSpeechandtextanalyticsTopic';return this.apiClient.callApi("/api/v2/speechandtextanalytics/topics/{topicId}","PUT",{topicId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}},Db=class{constructor(e){this.apiClient=e||q.instance}deleteStationAssociateduser(e,i){if(i=i||{},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"],i.customHeaders)}getStation(e,i){if(i=i||{},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"],i.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)}},Gb=class{constructor(e){this.apiClient=e||q.instance}getSearch(e,i){if(i=i||{},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(i.expand,"multi"),profile:i.profile},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getSearchSuggest(e,i){if(i=i||{},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(i.expand,"multi"),profile:i.profile},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postSearch(e,i){if(i=i||{},e==null)throw'Missing the required parameter "body" when calling postSearch';return this.apiClient.callApi("/api/v2/search","POST",{},{profile:i.profile},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postSearchSuggest(e,i){if(i=i||{},e==null)throw'Missing the required parameter "body" when calling postSearchSuggest';return this.apiClient.callApi("/api/v2/search/suggest","POST",{},{profile:i.profile},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}},$b=class{constructor(e){this.apiClient=e||q.instance}deleteTaskmanagementWorkbin(e,i){if(i=i||{},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"],i.customHeaders)}deleteTaskmanagementWorkitem(e,i){if(i=i||{},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"],i.customHeaders)}deleteTaskmanagementWorkitemsBulkAddJob(e,i){if(i=i||{},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"],i.customHeaders)}deleteTaskmanagementWorkitemsBulkTerminateJob(e,i){if(i=i||{},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"],i.customHeaders)}deleteTaskmanagementWorkitemsSchema(e,i){if(i=i||{},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"],i.customHeaders)}deleteTaskmanagementWorktype(e,i){if(i=i||{},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"],i.customHeaders)}deleteTaskmanagementWorktypeFlowsDatebasedRule(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "worktypeId" when calling deleteTaskmanagementWorktypeFlowsDatebasedRule';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteTaskmanagementWorktypeFlowsOnattributechangeRule(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "worktypeId" when calling deleteTaskmanagementWorktypeFlowsOnattributechangeRule';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteTaskmanagementWorktypeFlowsOncreateRule(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "worktypeId" when calling deleteTaskmanagementWorktypeFlowsOncreateRule';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteTaskmanagementWorktypeStatus(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "worktypeId" when calling deleteTaskmanagementWorktypeStatus';if(i==null||i==="")throw'Missing the required parameter "statusId" when calling deleteTaskmanagementWorktypeStatus';return this.apiClient.callApi("/api/v2/taskmanagement/worktypes/{worktypeId}/statuses/{statusId}","DELETE",{worktypeId:e,statusId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getTaskmanagementWorkbin(e,i){if(i=i||{},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"],i.customHeaders)}getTaskmanagementWorkbinHistory(e,i){if(i=i||{},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:i.after,pageSize:i.pageSize,sortOrder:i.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getTaskmanagementWorkbinVersion(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "workbinId" when calling getTaskmanagementWorkbinVersion';if(i==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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getTaskmanagementWorkbinVersions(e,i){if(i=i||{},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:i.after,pageSize:i.pageSize,sortOrder:i.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getTaskmanagementWorkitem(e,i){if(i=i||{},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(i.expands,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getTaskmanagementWorkitemHistory(e,i){if(i=i||{},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:i.after,pageSize:i.pageSize,sortOrder:i.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getTaskmanagementWorkitemUserWrapups(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "workitemId" when calling getTaskmanagementWorkitemUserWrapups';if(i==null||i==="")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:i},{expands:n.expands,after:n.after,pageSize:n.pageSize,sortOrder:n.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getTaskmanagementWorkitemVersion(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "workitemId" when calling getTaskmanagementWorkitemVersion';if(i==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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getTaskmanagementWorkitemVersions(e,i){if(i=i||{},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:i.after,pageSize:i.pageSize,sortOrder:i.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getTaskmanagementWorkitemWrapups(e,i){if(i=i||{},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:i.expands,after:i.after,pageSize:i.pageSize,sortOrder:i.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getTaskmanagementWorkitemsBulkAddJob(e,i){if(i=i||{},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"],i.customHeaders)}getTaskmanagementWorkitemsBulkAddJobResults(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getTaskmanagementWorkitemsBulkTerminateJobResults(e,i){if(i=i||{},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"],i.customHeaders)}getTaskmanagementWorkitemsQueryJob(e,i){if(i=i||{},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"],i.customHeaders)}getTaskmanagementWorkitemsQueryJobResults(e,i){if(i=i||{},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"],i.customHeaders)}getTaskmanagementWorkitemsSchema(e,i){if(i=i||{},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"],i.customHeaders)}getTaskmanagementWorkitemsSchemaVersion(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "schemaId" when calling getTaskmanagementWorkitemsSchemaVersion';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getTaskmanagementWorkitemsSchemaVersions(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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(i.expands,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getTaskmanagementWorktypeFlowsDatebasedRule(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "worktypeId" when calling getTaskmanagementWorktypeFlowsDatebasedRule';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getTaskmanagementWorktypeFlowsDatebasedRules(e,i){if(i=i||{},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:i.after,pageSize:i.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getTaskmanagementWorktypeFlowsOnattributechangeRule(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "worktypeId" when calling getTaskmanagementWorktypeFlowsOnattributechangeRule';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getTaskmanagementWorktypeFlowsOnattributechangeRules(e,i){if(i=i||{},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:i.after,pageSize:i.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getTaskmanagementWorktypeFlowsOncreateRule(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "worktypeId" when calling getTaskmanagementWorktypeFlowsOncreateRule';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getTaskmanagementWorktypeFlowsOncreateRules(e,i){if(i=i||{},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:i.after,pageSize:i.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getTaskmanagementWorktypeHistory(e,i){if(i=i||{},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:i.after,pageSize:i.pageSize,sortOrder:i.sortOrder,fields:this.apiClient.buildCollectionParam(i.fields,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getTaskmanagementWorktypeStatus(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "worktypeId" when calling getTaskmanagementWorktypeStatus';if(i==null||i==="")throw'Missing the required parameter "statusId" when calling getTaskmanagementWorktypeStatus';return this.apiClient.callApi("/api/v2/taskmanagement/worktypes/{worktypeId}/statuses/{statusId}","GET",{worktypeId:e,statusId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getTaskmanagementWorktypeStatuses(e,i){if(i=i||{},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"],i.customHeaders)}getTaskmanagementWorktypeVersion(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "worktypeId" when calling getTaskmanagementWorktypeVersion';if(i==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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getTaskmanagementWorktypeVersions(e,i){if(i=i||{},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:i.after,pageSize:i.pageSize,sortOrder:i.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}patchTaskmanagementWorkbin(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "workbinId" when calling patchTaskmanagementWorkbin';if(i==null)throw'Missing the required parameter "body" when calling patchTaskmanagementWorkbin';return this.apiClient.callApi("/api/v2/taskmanagement/workbins/{workbinId}","PATCH",{workbinId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchTaskmanagementWorkitem(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "workitemId" when calling patchTaskmanagementWorkitem';if(i==null)throw'Missing the required parameter "body" when calling patchTaskmanagementWorkitem';return this.apiClient.callApi("/api/v2/taskmanagement/workitems/{workitemId}","PATCH",{workitemId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchTaskmanagementWorkitemAssignment(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "workitemId" when calling patchTaskmanagementWorkitemAssignment';if(i==null)throw'Missing the required parameter "body" when calling patchTaskmanagementWorkitemAssignment';return this.apiClient.callApi("/api/v2/taskmanagement/workitems/{workitemId}/assignment","PATCH",{workitemId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchTaskmanagementWorkitemUserWrapups(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "workitemId" when calling patchTaskmanagementWorkitemUserWrapups';if(i==null||i==="")throw'Missing the required parameter "userId" when calling patchTaskmanagementWorkitemUserWrapups';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchTaskmanagementWorkitemUsersMeWrapups(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "workitemId" when calling patchTaskmanagementWorkitemUsersMeWrapups';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchTaskmanagementWorkitemsBulkAddJob(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "bulkJobId" when calling patchTaskmanagementWorkitemsBulkAddJob';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchTaskmanagementWorkitemsBulkTerminateJob(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "bulkJobId" when calling patchTaskmanagementWorkitemsBulkTerminateJob';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchTaskmanagementWorktype(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "worktypeId" when calling patchTaskmanagementWorktype';if(i==null)throw'Missing the required parameter "body" when calling patchTaskmanagementWorktype';return this.apiClient.callApi("/api/v2/taskmanagement/worktypes/{worktypeId}","PATCH",{worktypeId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchTaskmanagementWorktypeFlowsDatebasedRule(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "worktypeId" when calling patchTaskmanagementWorktypeFlowsDatebasedRule';if(i==null||i==="")throw'Missing the required parameter "ruleId" when calling patchTaskmanagementWorktypeFlowsDatebasedRule';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchTaskmanagementWorktypeFlowsOnattributechangeRule(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "worktypeId" when calling patchTaskmanagementWorktypeFlowsOnattributechangeRule';if(i==null||i==="")throw'Missing the required parameter "ruleId" when calling patchTaskmanagementWorktypeFlowsOnattributechangeRule';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchTaskmanagementWorktypeFlowsOncreateRule(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "worktypeId" when calling patchTaskmanagementWorktypeFlowsOncreateRule';if(i==null||i==="")throw'Missing the required parameter "ruleId" when calling patchTaskmanagementWorktypeFlowsOncreateRule';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchTaskmanagementWorktypeStatus(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "worktypeId" when calling patchTaskmanagementWorktypeStatus';if(i==null||i==="")throw'Missing the required parameter "statusId" when calling patchTaskmanagementWorktypeStatus';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postTaskmanagementWorkbins(e,i){if(i=i||{},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"],i.customHeaders)}postTaskmanagementWorkbinsQuery(e,i){if(i=i||{},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"],i.customHeaders)}postTaskmanagementWorkitemAcdCancel(e,i){if(i=i||{},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"],i.customHeaders)}postTaskmanagementWorkitemDisconnect(e,i){if(i=i||{},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"],i.customHeaders)}postTaskmanagementWorkitemTerminate(e,i){if(i=i||{},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},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postTaskmanagementWorkitems(e,i){if(i=i||{},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"],i.customHeaders)}postTaskmanagementWorkitemsBulkAddJobs(e,i){if(i=i||{},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"],i.customHeaders)}postTaskmanagementWorkitemsBulkTerminateJobs(e,i){if(i=i||{},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"],i.customHeaders)}postTaskmanagementWorkitemsQuery(e,i){if(i=i||{},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"],i.customHeaders)}postTaskmanagementWorkitemsQueryJobs(e,i){if(i=i||{},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"],i.customHeaders)}postTaskmanagementWorkitemsSchemas(e,i){if(i=i||{},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"],i.customHeaders)}postTaskmanagementWorktypeFlowsDatebasedRules(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "worktypeId" when calling postTaskmanagementWorktypeFlowsDatebasedRules';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postTaskmanagementWorktypeFlowsOnattributechangeRules(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "worktypeId" when calling postTaskmanagementWorktypeFlowsOnattributechangeRules';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postTaskmanagementWorktypeFlowsOncreateRules(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "worktypeId" when calling postTaskmanagementWorktypeFlowsOncreateRules';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postTaskmanagementWorktypeStatuses(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "worktypeId" when calling postTaskmanagementWorktypeStatuses';if(i==null)throw'Missing the required parameter "body" when calling postTaskmanagementWorktypeStatuses';return this.apiClient.callApi("/api/v2/taskmanagement/worktypes/{worktypeId}/statuses","POST",{worktypeId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postTaskmanagementWorktypes(e,i){if(i=i||{},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"],i.customHeaders)}postTaskmanagementWorktypesQuery(e,i){if(i=i||{},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"],i.customHeaders)}putTaskmanagementWorkitemsSchema(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "schemaId" when calling putTaskmanagementWorkitemsSchema';if(i==null)throw'Missing the required parameter "body" when calling putTaskmanagementWorkitemsSchema';return this.apiClient.callApi("/api/v2/taskmanagement/workitems/schemas/{schemaId}","PUT",{schemaId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}},Nb=class{constructor(e){this.apiClient=e||q.instance}deleteTeam(e,i){if(i=i||{},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"],i.customHeaders)}deleteTeamMembers(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "teamId" when calling deleteTeamMembers';if(i==null)throw'Missing the required parameter "id" when calling deleteTeamMembers';return this.apiClient.callApi("/api/v2/teams/{teamId}/members","DELETE",{teamId:e},{id:i},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getTeam(e,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "teamId" when calling getTeam';return this.apiClient.callApi("/api/v2/teams/{teamId}","GET",{teamId:e},{expand:i.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getTeamMembers(e,i){if(i=i||{},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:i.pageSize,before:i.before,after:i.after,expand:i.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "teamId" when calling patchTeam';if(i==null)throw'Missing the required parameter "body" when calling patchTeam';return this.apiClient.callApi("/api/v2/teams/{teamId}","PATCH",{teamId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postAnalyticsTeamsActivityQuery(e,i){if(i=i||{},e==null)throw'Missing the required parameter "body" when calling postAnalyticsTeamsActivityQuery';return this.apiClient.callApi("/api/v2/analytics/teams/activity/query","POST",{},{pageSize:i.pageSize,pageNumber:i.pageNumber},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postTeamMembers(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "teamId" when calling postTeamMembers';if(i==null)throw'Missing the required parameter "body" when calling postTeamMembers';return this.apiClient.callApi("/api/v2/teams/{teamId}/members","POST",{teamId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postTeams(e,i){if(i=i||{},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"],i.customHeaders)}postTeamsSearch(e,i){if(i=i||{},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"],i.customHeaders)}},Ub=class{constructor(e){this.apiClient=e||q.instance}getTelephonyAgentGreetings(e,i){if(i=i||{},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"],i.customHeaders)}getTelephonyAgentsGreetingsMe(e){return e=e||{},this.apiClient.callApi("/api/v2/telephony/agents/greetings/me","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getTelephonyCallsMetrics(e){return e=e||{},this.apiClient.callApi("/api/v2/telephony/calls/metrics","GET",{},{metricType:e.metricType},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getTelephonyMediaregions(e){return e=e||{},this.apiClient.callApi("/api/v2/telephony/mediaregions","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getTelephonySettings(e){return e=e||{},this.apiClient.callApi("/api/v2/telephony/settings","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getTelephonySipmessagesConversation(e,i){if(i=i||{},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"],i.customHeaders)}getTelephonySipmessagesConversationHeaders(e,i){if(i=i||{},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(i.keys,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getTelephonySiptraces(e,i,n){if(n=n||{},e==null)throw'Missing the required parameter "dateStart" when calling getTelephonySiptraces';if(i==null)throw'Missing the required parameter "dateEnd" when calling getTelephonySiptraces';return this.apiClient.callApi("/api/v2/telephony/siptraces","GET",{},{callId:n.callId,toUser:n.toUser,fromUser:n.fromUser,conversationId:n.conversationId,dateStart:e,dateEnd:i},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getTelephonySiptracesDownloadDownloadId(e,i){if(i=i||{},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"],i.customHeaders)}postTelephonySiptracesDownload(e,i){if(i=i||{},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"],i.customHeaders)}putTelephonyAgentGreetings(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "agentId" when calling putTelephonyAgentGreetings';if(i==null)throw'Missing the required parameter "body" when calling putTelephonyAgentGreetings';return this.apiClient.callApi("/api/v2/telephony/agents/{agentId}/greetings","PUT",{agentId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putTelephonyAgentsGreetingsMe(e,i){if(i=i||{},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"],i.customHeaders)}putTelephonySettings(e,i){if(i=i||{},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"],i.customHeaders)}},Lb=class{constructor(e){this.apiClient=e||q.instance}deleteTelephonyProvidersEdge(e,i){if(i=i||{},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"],i.customHeaders)}deleteTelephonyProvidersEdgeLogicalinterface(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "edgeId" when calling deleteTelephonyProvidersEdgeLogicalinterface';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteTelephonyProvidersEdgeSoftwareupdate(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}deleteTelephonyProvidersEdgesDidpool(e,i){if(i=i||{},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"],i.customHeaders)}deleteTelephonyProvidersEdgesEdgegroup(e,i){if(i=i||{},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"],i.customHeaders)}deleteTelephonyProvidersEdgesExtensionpool(e,i){if(i=i||{},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"],i.customHeaders)}deleteTelephonyProvidersEdgesPhone(e,i){if(i=i||{},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"],i.customHeaders)}deleteTelephonyProvidersEdgesPhonebasesetting(e,i){if(i=i||{},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"],i.customHeaders)}deleteTelephonyProvidersEdgesSite(e,i){if(i=i||{},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"],i.customHeaders)}deleteTelephonyProvidersEdgesSiteOutboundroute(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "siteId" when calling deleteTelephonyProvidersEdgesSiteOutboundroute';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteTelephonyProvidersEdgesTrunkbasesetting(e,i){if(i=i||{},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"],i.customHeaders)}getTelephonyProvidersEdge(e,i){if(i=i||{},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(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getTelephonyProvidersEdgeDiagnosticNslookup(e,i){if(i=i||{},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"],i.customHeaders)}getTelephonyProvidersEdgeDiagnosticPing(e,i){if(i=i||{},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"],i.customHeaders)}getTelephonyProvidersEdgeDiagnosticRoute(e,i){if(i=i||{},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"],i.customHeaders)}getTelephonyProvidersEdgeDiagnosticTracepath(e,i){if(i=i||{},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"],i.customHeaders)}getTelephonyProvidersEdgeLogicalinterface(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "edgeId" when calling getTelephonyProvidersEdgeLogicalinterface';if(i==null||i==="")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:i},{expand:this.apiClient.buildCollectionParam(n.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getTelephonyProvidersEdgeLogicalinterfaces(e,i){if(i=i||{},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(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getTelephonyProvidersEdgeLogsJob(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "edgeId" when calling getTelephonyProvidersEdgeLogsJob';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getTelephonyProvidersEdgeMetrics(e,i){if(i=i||{},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"],i.customHeaders)}getTelephonyProvidersEdgePhysicalinterface(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "edgeId" when calling getTelephonyProvidersEdgePhysicalinterface';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getTelephonyProvidersEdgePhysicalinterfaces(e,i){if(i=i||{},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"],i.customHeaders)}getTelephonyProvidersEdgeSetuppackage(e,i){if(i=i||{},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"],i.customHeaders)}getTelephonyProvidersEdgeSoftwareupdate(e,i){if(i=i||{},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"],i.customHeaders)}getTelephonyProvidersEdgeSoftwareversions(e,i){if(i=i||{},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"],i.customHeaders)}getTelephonyProvidersEdgeTrunks(e,i){if(i=i||{},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:i.pageNumber,pageSize:i.pageSize,sortBy:i.sortBy,sortOrder:i.sortOrder,"trunkBase.id":i.trunkBaseId,trunkType:i.trunkType},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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"],i.customHeaders)}getTelephonyProvidersEdgesDid(e,i){if(i=i||{},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"],i.customHeaders)}getTelephonyProvidersEdgesDidpool(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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(i.id,"multi"),numberMatch:i.numberMatch,pageSize:i.pageSize,pageNumber:i.pageNumber,sortOrder:i.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getTelephonyProvidersEdgesEdgegroupEdgetrunkbase(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "edgegroupId" when calling getTelephonyProvidersEdgesEdgegroupEdgetrunkbase';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.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,i){if(i=i||{},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"],i.customHeaders)}getTelephonyProvidersEdgesExtensionpool(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getTelephonyProvidersEdgesLinebasesetting(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getTelephonyProvidersEdgesLogicalinterfaces(e,i){if(i=i||{},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(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getTelephonyProvidersEdgesMediastatisticsConversation(e,i){if(i=i||{},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"],i.customHeaders)}getTelephonyProvidersEdgesMediastatisticsConversationCommunication(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getTelephonyProvidersEdgesMediastatisticsConversationCommunication';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getTelephonyProvidersEdgesMetrics(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getTelephonyProvidersEdgesPhonebasesetting(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getTelephonyProvidersEdgesPhysicalinterfaces(e,i){if(i=i||{},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"],i.customHeaders)}getTelephonyProvidersEdgesSite(e,i){if(i=i||{},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"],i.customHeaders)}getTelephonyProvidersEdgesSiteNumberplan(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "siteId" when calling getTelephonyProvidersEdgesSiteNumberplan';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getTelephonyProvidersEdgesSiteNumberplans(e,i){if(i=i||{},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"],i.customHeaders)}getTelephonyProvidersEdgesSiteNumberplansClassifications(e,i){if(i=i||{},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:i.classification},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getTelephonyProvidersEdgesSiteOutboundroute(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "siteId" when calling getTelephonyProvidersEdgesSiteOutboundroute';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getTelephonyProvidersEdgesSiteOutboundroutes(e,i){if(i=i||{},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:i.pageSize,pageNumber:i.pageNumber,name:i.name,"externalTrunkBases.ids":i.externalTrunkBasesIds,sortBy:i.sortBy},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getTelephonyProvidersEdgesSiteSiteconnections(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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"],i.customHeaders)}getTelephonyProvidersEdgesTrunkMetrics(e,i){if(i=i||{},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"],i.customHeaders)}getTelephonyProvidersEdgesTrunkbasesetting(e,i){if(i=i||{},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:i.ignoreHidden},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getTelephonyProvidersEdgesTrunkbasesettings(e){return e=e||{},this.apiClient.callApi("/api/v2/telephony/providers/edges/trunkbasesettings","GET",{},{pageNumber:e.pageNumber,pageSize:e.pageSize,sortBy:e.sortBy,sortOrder:e.sortOrder,recordingEnabled:e.recordingEnabled,ignoreHidden:e.ignoreHidden,managed:e.managed,expand:this.apiClient.buildCollectionParam(e.expand,"multi"),name:e.name},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getTelephonyProvidersEdgesTrunkbasesettingsAvailablemetabases(e){return e=e||{},this.apiClient.callApi("/api/v2/telephony/providers/edges/trunkbasesettings/availablemetabases","GET",{},{type:e.type,pageSize:e.pageSize,pageNumber:e.pageNumber},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getTelephonyProvidersEdgesTrunkbasesettingsTemplate(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "siteId" when calling patchTelephonyProvidersEdgesSiteSiteconnections';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postTelephonyProvidersEdgeDiagnosticNslookup(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "edgeId" when calling postTelephonyProvidersEdgeDiagnosticNslookup';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postTelephonyProvidersEdgeDiagnosticPing(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "edgeId" when calling postTelephonyProvidersEdgeDiagnosticPing';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postTelephonyProvidersEdgeDiagnosticRoute(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "edgeId" when calling postTelephonyProvidersEdgeDiagnosticRoute';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postTelephonyProvidersEdgeDiagnosticTracepath(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "edgeId" when calling postTelephonyProvidersEdgeDiagnosticTracepath';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postTelephonyProvidersEdgeLogicalinterfaces(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "edgeId" when calling postTelephonyProvidersEdgeLogicalinterfaces';if(i==null)throw'Missing the required parameter "body" when calling postTelephonyProvidersEdgeLogicalinterfaces';return this.apiClient.callApi("/api/v2/telephony/providers/edges/{edgeId}/logicalinterfaces","POST",{edgeId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postTelephonyProvidersEdgeLogsJobUpload(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "edgeId" when calling postTelephonyProvidersEdgeLogsJobUpload';if(i==null||i==="")throw'Missing the required parameter "jobId" when calling postTelephonyProvidersEdgeLogsJobUpload';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postTelephonyProvidersEdgeLogsJobs(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "edgeId" when calling postTelephonyProvidersEdgeLogsJobs';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postTelephonyProvidersEdgeReboot(e,i){if(i=i||{},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},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postTelephonyProvidersEdgeSoftwareupdate(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "edgeId" when calling postTelephonyProvidersEdgeSoftwareupdate';if(i==null)throw'Missing the required parameter "body" when calling postTelephonyProvidersEdgeSoftwareupdate';return this.apiClient.callApi("/api/v2/telephony/providers/edges/{edgeId}/softwareupdate","POST",{edgeId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postTelephonyProvidersEdgeStatuscode(e,i){if(i=i||{},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},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postTelephonyProvidersEdgeUnpair(e,i){if(i=i||{},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"],i.customHeaders)}postTelephonyProvidersEdges(e,i){if(i=i||{},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"],i.customHeaders)}postTelephonyProvidersEdgesAddressvalidation(e,i){if(i=i||{},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"],i.customHeaders)}postTelephonyProvidersEdgesCertificateauthorities(e,i){if(i=i||{},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"],i.customHeaders)}postTelephonyProvidersEdgesDidpools(e,i){if(i=i||{},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"],i.customHeaders)}postTelephonyProvidersEdgesEdgegroups(e,i){if(i=i||{},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"],i.customHeaders)}postTelephonyProvidersEdgesExtensionpools(e,i){if(i=i||{},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"],i.customHeaders)}postTelephonyProvidersEdgesMediastatisticsConversationCommunicationMediaresource(e,i,n,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postTelephonyProvidersEdgesMediastatisticsConversationCommunicationMediaresource';if(i==null||i==="")throw'Missing the required parameter "communicationId" when calling postTelephonyProvidersEdgesMediastatisticsConversationCommunicationMediaresource';if(n==null||n==="")throw'Missing the required parameter "mediaResourceId" when calling postTelephonyProvidersEdgesMediastatisticsConversationCommunicationMediaresource';if(a==null)throw'Missing the required parameter "body" when calling postTelephonyProvidersEdgesMediastatisticsConversationCommunicationMediaresource';return this.apiClient.callApi("/api/v2/telephony/providers/edges/mediastatistics/conversations/{conversationId}/communications/{communicationId}/mediaresources/{mediaResourceId}","POST",{conversationId:e,communicationId:i,mediaResourceId:n},{},{},{},a,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}postTelephonyProvidersEdgesPhoneReboot(e,i){if(i=i||{},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"],i.customHeaders)}postTelephonyProvidersEdgesPhonebasesettings(e,i){if(i=i||{},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"],i.customHeaders)}postTelephonyProvidersEdgesPhones(e,i){if(i=i||{},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"],i.customHeaders)}postTelephonyProvidersEdgesPhonesReboot(e,i){if(i=i||{},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"],i.customHeaders)}postTelephonyProvidersEdgesSiteOutboundroutes(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "siteId" when calling postTelephonyProvidersEdgesSiteOutboundroutes';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postTelephonyProvidersEdgesSites(e,i){if(i=i||{},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"],i.customHeaders)}postTelephonyProvidersEdgesSitesSearch(e,i){if(i=i||{},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"],i.customHeaders)}postTelephonyProvidersEdgesTrunkbasesettings(e,i){if(i=i||{},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"],i.customHeaders)}putTelephonyProvidersEdge(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "edgeId" when calling putTelephonyProvidersEdge';if(i==null)throw'Missing the required parameter "body" when calling putTelephonyProvidersEdge';return this.apiClient.callApi("/api/v2/telephony/providers/edges/{edgeId}","PUT",{edgeId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putTelephonyProvidersEdgeLogicalinterface(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "edgeId" when calling putTelephonyProvidersEdgeLogicalinterface';if(i==null||i==="")throw'Missing the required parameter "interfaceId" when calling putTelephonyProvidersEdgeLogicalinterface';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}putTelephonyProvidersEdgesAlertablepresences(e,i){if(i=i||{},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"],i.customHeaders)}putTelephonyProvidersEdgesCertificateauthority(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "certificateId" when calling putTelephonyProvidersEdgesCertificateauthority';if(i==null)throw'Missing the required parameter "body" when calling putTelephonyProvidersEdgesCertificateauthority';return this.apiClient.callApi("/api/v2/telephony/providers/edges/certificateauthorities/{certificateId}","PUT",{certificateId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putTelephonyProvidersEdgesDidpool(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "didPoolId" when calling putTelephonyProvidersEdgesDidpool';if(i==null)throw'Missing the required parameter "body" when calling putTelephonyProvidersEdgesDidpool';return this.apiClient.callApi("/api/v2/telephony/providers/edges/didpools/{didPoolId}","PUT",{didPoolId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putTelephonyProvidersEdgesEdgegroup(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "edgeGroupId" when calling putTelephonyProvidersEdgesEdgegroup';if(i==null)throw'Missing the required parameter "body" when calling putTelephonyProvidersEdgesEdgegroup';return this.apiClient.callApi("/api/v2/telephony/providers/edges/edgegroups/{edgeGroupId}","PUT",{edgeGroupId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putTelephonyProvidersEdgesEdgegroupEdgetrunkbase(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "edgegroupId" when calling putTelephonyProvidersEdgesEdgegroupEdgetrunkbase';if(i==null||i==="")throw'Missing the required parameter "edgetrunkbaseId" when calling putTelephonyProvidersEdgesEdgegroupEdgetrunkbase';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}putTelephonyProvidersEdgesExtensionpool(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "extensionPoolId" when calling putTelephonyProvidersEdgesExtensionpool';if(i==null)throw'Missing the required parameter "body" when calling putTelephonyProvidersEdgesExtensionpool';return this.apiClient.callApi("/api/v2/telephony/providers/edges/extensionpools/{extensionPoolId}","PUT",{extensionPoolId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putTelephonyProvidersEdgesPhone(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "phoneId" when calling putTelephonyProvidersEdgesPhone';if(i==null)throw'Missing the required parameter "body" when calling putTelephonyProvidersEdgesPhone';return this.apiClient.callApi("/api/v2/telephony/providers/edges/phones/{phoneId}","PUT",{phoneId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putTelephonyProvidersEdgesPhonebasesetting(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "phoneBaseId" when calling putTelephonyProvidersEdgesPhonebasesetting';if(i==null)throw'Missing the required parameter "body" when calling putTelephonyProvidersEdgesPhonebasesetting';return this.apiClient.callApi("/api/v2/telephony/providers/edges/phonebasesettings/{phoneBaseId}","PUT",{phoneBaseId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putTelephonyProvidersEdgesSite(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "siteId" when calling putTelephonyProvidersEdgesSite';if(i==null)throw'Missing the required parameter "body" when calling putTelephonyProvidersEdgesSite';return this.apiClient.callApi("/api/v2/telephony/providers/edges/sites/{siteId}","PUT",{siteId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putTelephonyProvidersEdgesSiteNumberplans(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "siteId" when calling putTelephonyProvidersEdgesSiteNumberplans';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putTelephonyProvidersEdgesSiteOutboundroute(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "siteId" when calling putTelephonyProvidersEdgesSiteOutboundroute';if(i==null||i==="")throw'Missing the required parameter "outboundRouteId" when calling putTelephonyProvidersEdgesSiteOutboundroute';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}putTelephonyProvidersEdgesSiteSiteconnections(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "siteId" when calling putTelephonyProvidersEdgesSiteSiteconnections';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putTelephonyProvidersEdgesTrunkbasesetting(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "trunkBaseSettingsId" when calling putTelephonyProvidersEdgesTrunkbasesetting';if(i==null)throw'Missing the required parameter "body" when calling putTelephonyProvidersEdgesTrunkbasesetting';return this.apiClient.callApi("/api/v2/telephony/providers/edges/trunkbasesettings/{trunkBaseSettingsId}","PUT",{trunkBaseSettingsId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}},Wb=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,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "sessionId" when calling postTextbotsBotflowsSessionTurns';if(i==null)throw'Missing the required parameter "turnRequest" when calling postTextbotsBotflowsSessionTurns';return this.apiClient.callApi("/api/v2/textbots/botflows/sessions/{sessionId}/turns","POST",{sessionId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postTextbotsBotflowsSessions(e,i){if(i=i||{},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"],i.customHeaders)}postTextbotsBotsExecute(e,i){if(i=i||{},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"],i.customHeaders)}},Bb=class{constructor(e){this.apiClient=e||q.instance}deleteToken(e,i){if(i=i||{},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"],i.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)}},Fb=class{constructor(e){this.apiClient=e||q.instance}getKnowledgeKnowledgebaseUploadsUrlsJob(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling getKnowledgeKnowledgebaseUploadsUrlsJob';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postGamificationContestsUploadsPrizeimages(e,i){if(i=i||{},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"],i.customHeaders)}postGuidesUploads(e,i){if(i=i||{},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"],i.customHeaders)}postIntegrationsActionDraftFunctionUpload(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "actionId" when calling postIntegrationsActionDraftFunctionUpload';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postKnowledgeDocumentuploads(e,i){if(i=i||{},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"],i.customHeaders)}postKnowledgeKnowledgebaseUploadsUrlsJobs(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseUploadsUrlsJobs';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postLanguageunderstandingMinerUploads(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "minerId" when calling postLanguageunderstandingMinerUploads';if(i==null)throw'Missing the required parameter "body" when calling postLanguageunderstandingMinerUploads';return this.apiClient.callApi("/api/v2/languageunderstanding/miners/{minerId}/uploads","POST",{minerId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postUploadsLearningCoverart(e,i){if(i=i||{},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"],i.customHeaders)}postUploadsPublicassetsImages(e,i){if(i=i||{},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"],i.customHeaders)}postUploadsRecordings(e,i){if(i=i||{},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"],i.customHeaders)}postUploadsWorkforcemanagementHistoricaldataCsv(e,i){if(i=i||{},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"],i.customHeaders)}},Vb=class{constructor(e){this.apiClient=e||q.instance}getOauthClientUsageQueryResult(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "executionId" when calling getOauthClientUsageQueryResult';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getOauthClientUsageSummary(e,i){if(i=i||{},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:i.days},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getUsageAggregatesQueryJob(e,i){if(i=i||{},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:i.pageSize,after:i.after},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getUsageClientClientIdAggregatesQueryJob(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "clientId" when calling getUsageClientClientIdAggregatesQueryJob';if(i==null||i==="")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:i},{pageSize:n.pageSize,after:n.after},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getUsageQueryExecutionIdResults(e,i){if(i=i||{},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"],i.customHeaders)}getUsageSimplesearchExecutionIdResults(e,i){if(i=i||{},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:i.after,pageSize:i.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postOauthClientUsageQuery(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "clientId" when calling postOauthClientUsageQuery';if(i==null)throw'Missing the required parameter "body" when calling postOauthClientUsageQuery';return this.apiClient.callApi("/api/v2/oauth/clients/{clientId}/usage/query","POST",{clientId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postUsageAggregatesQueryJobs(e,i){if(i=i||{},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"],i.customHeaders)}postUsageClientClientIdAggregatesQueryJobs(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "clientId" when calling postUsageClientClientIdAggregatesQueryJobs';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postUsageQuery(e,i){if(i=i||{},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"],i.customHeaders)}postUsageSimplesearch(e,i){if(i=i||{},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"],i.customHeaders)}},Jb=class{constructor(e){this.apiClient=e||q.instance}deleteUserrecording(e,i){if(i=i||{},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"],i.customHeaders)}getUserrecording(e,i){if(i=i||{},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(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getUserrecordingTranscoding(e,i){if(i=i||{},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:i.formatId},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "recordingId" when calling putUserrecording';if(i==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(n.expand,"multi")},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}},Zb=class{constructor(e){this.apiClient=e||q.instance}deleteAnalyticsUsersAggregatesJob(e,i){if(i=i||{},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"],i.customHeaders)}deleteAnalyticsUsersDetailsJob(e,i){if(i=i||{},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"],i.customHeaders)}deleteAuthorizationSubjectDivisionRole(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "subjectId" when calling deleteAuthorizationSubjectDivisionRole';if(i==null||i==="")throw'Missing the required parameter "divisionId" when calling deleteAuthorizationSubjectDivisionRole';if(n==null||n==="")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:i,roleId:n},{},{},{},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,i){if(i=i||{},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"],i.customHeaders)}deleteRoutingUserUtilization(e,i){if(i=i||{},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"],i.customHeaders)}deleteUser(e,i){if(i=i||{},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"],i.customHeaders)}deleteUserCustomattribute(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling deleteUserCustomattribute';if(i==null||i==="")throw'Missing the required parameter "schemaId" when calling deleteUserCustomattribute';return this.apiClient.callApi("/api/v2/users/{userId}/customattributes/{schemaId}","DELETE",{userId:e,schemaId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteUserExternalidAuthorityNameExternalKey(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "userId" when calling deleteUserExternalidAuthorityNameExternalKey';if(i==null||i==="")throw'Missing the required parameter "authorityName" when calling deleteUserExternalidAuthorityNameExternalKey';if(n==null||n==="")throw'Missing the required parameter "externalKey" when calling deleteUserExternalidAuthorityNameExternalKey';return this.apiClient.callApi("/api/v2/users/{userId}/externalid/{authorityName}/{externalKey}","DELETE",{userId:e,authorityName:i,externalKey:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}deleteUserRoutinglanguage(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling deleteUserRoutinglanguage';if(i==null||i==="")throw'Missing the required parameter "languageId" when calling deleteUserRoutinglanguage';return this.apiClient.callApi("/api/v2/users/{userId}/routinglanguages/{languageId}","DELETE",{userId:e,languageId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteUserRoutingskill(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling deleteUserRoutingskill';if(i==null||i==="")throw'Missing the required parameter "skillId" when calling deleteUserRoutingskill';return this.apiClient.callApi("/api/v2/users/{userId}/routingskills/{skillId}","DELETE",{userId:e,skillId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteUserStationAssociatedstation(e,i){if(i=i||{},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"],i.customHeaders)}deleteUserStationDefaultstation(e,i){if(i=i||{},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"],i.customHeaders)}deleteUserVerifier(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling deleteUserVerifier';if(i==null||i==="")throw'Missing the required parameter "verifierId" when calling deleteUserVerifier';return this.apiClient.callApi("/api/v2/users/{userId}/verifiers/{verifierId}","DELETE",{userId:e,verifierId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteUsersCustomattributesSchema(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getAnalyticsUsersAggregatesJobResults(e,i){if(i=i||{},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:i.cursor},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getAnalyticsUsersDetailsJob(e,i){if(i=i||{},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"],i.customHeaders)}getAnalyticsUsersDetailsJobResults(e,i){if(i=i||{},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:i.cursor,pageSize:i.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},e==null)throw'Missing the required parameter "permission" when calling getAuthorizationDivisionspermittedMe';return this.apiClient.callApi("/api/v2/authorization/divisionspermitted/me","GET",{},{name:i.name,permission:e},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getAuthorizationDivisionspermittedPagedMe(e,i){if(i=i||{},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:i.pageNumber,pageSize:i.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getAuthorizationDivisionspermittedPagedSubjectId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "subjectId" when calling getAuthorizationDivisionspermittedPagedSubjectId';if(i==null)throw'Missing the required parameter "permission" when calling getAuthorizationDivisionspermittedPagedSubjectId';return this.apiClient.callApi("/api/v2/authorization/divisionspermitted/paged/{subjectId}","GET",{subjectId:e},{permission:i,pageNumber:n.pageNumber,pageSize:n.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getAuthorizationSubject(e,i){if(i=i||{},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:i.includeDuplicates},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getRoutingUserUtilization(e,i){if(i=i||{},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"],i.customHeaders)}getUser(e,i){if(i=i||{},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(i.expand,"multi"),integrationPresenceSource:i.integrationPresenceSource,userCustomAttributeSchemaIds:this.apiClient.buildCollectionParam(i.userCustomAttributeSchemaIds,"multi"),state:i.state},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getUserAdjacents(e,i){if(i=i||{},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(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getUserCallforwarding(e,i){if(i=i||{},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"],i.customHeaders)}getUserCustomattribute(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling getUserCustomattribute';if(i==null||i==="")throw'Missing the required parameter "schemaId" when calling getUserCustomattribute';return this.apiClient.callApi("/api/v2/users/{userId}/customattributes/{schemaId}","GET",{userId:e,schemaId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getUserCustomattributesBulk(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling getUserCustomattributesBulk';if(i==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(i,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getUserDirectreports(e,i){if(i=i||{},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(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getUserExternalid(e,i){if(i=i||{},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"],i.customHeaders)}getUserExternalidAuthorityName(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling getUserExternalidAuthorityName';if(i==null||i==="")throw'Missing the required parameter "authorityName" when calling getUserExternalidAuthorityName';return this.apiClient.callApi("/api/v2/users/{userId}/externalid/{authorityName}","GET",{userId:e,authorityName:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getUserFavorites(e,i){if(i=i||{},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:i.pageSize,pageNumber:i.pageNumber,sortOrder:i.sortOrder,expand:this.apiClient.buildCollectionParam(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getUserGeolocation(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling getUserGeolocation';if(i==null||i==="")throw'Missing the required parameter "clientId" when calling getUserGeolocation';return this.apiClient.callApi("/api/v2/users/{userId}/geolocations/{clientId}","GET",{userId:e,clientId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getUserOutofoffice(e,i){if(i=i||{},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"],i.customHeaders)}getUserProfile(e,i){if(i=i||{},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(i.expand,"multi"),integrationPresenceSource:i.integrationPresenceSource},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getUserProfileskills(e,i){if(i=i||{},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"],i.customHeaders)}getUserQueues(e,i){if(i=i||{},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:i.pageSize,pageNumber:i.pageNumber,joined:i.joined,divisionId:this.apiClient.buildCollectionParam(i.divisionId,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getUserRoles(e,i){if(i=i||{},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"],i.customHeaders)}getUserRoutinglanguages(e,i){if(i=i||{},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:i.pageSize,pageNumber:i.pageNumber,sortOrder:i.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getUserRoutingskills(e,i){if(i=i||{},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:i.pageSize,pageNumber:i.pageNumber,sortOrder:i.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getUserRoutingstatus(e,i){if(i=i||{},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"],i.customHeaders)}getUserSkillgroups(e,i){if(i=i||{},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:i.pageSize,after:i.after,before:i.before},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getUserState(e,i){if(i=i||{},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"],i.customHeaders)}getUserStation(e,i){if(i=i||{},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"],i.customHeaders)}getUserSuperiors(e,i){if(i=i||{},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(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getUserTrustors(e,i){if(i=i||{},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:i.pageSize,pageNumber:i.pageNumber},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getUserVerifiers(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getUsersCustomattributesSchemaVersion(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "schemaId" when calling getUsersCustomattributesSchemaVersion';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getUsersCustomattributesSchemaVersions(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "activityId" when calling getUsersDevelopmentActivity';if(i==null)throw'Missing the required parameter "type" when calling getUsersDevelopmentActivity';return this.apiClient.callApi("/api/v2/users/development/activities/{activityId}","GET",{activityId:e},{type:i},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getUsersExternalidAuthorityNameExternalKey(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "authorityName" when calling getUsersExternalidAuthorityNameExternalKey';if(i==null||i==="")throw'Missing the required parameter "externalKey" when calling getUsersExternalidAuthorityNameExternalKey';return this.apiClient.callApi("/api/v2/users/externalid/{authorityName}/{externalKey}","GET",{authorityName:e,externalKey:i},{expand:this.apiClient.buildCollectionParam(n.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getUsersMe(e){return e=e||{},this.apiClient.callApi("/api/v2/users/me","GET",{},{expand:this.apiClient.buildCollectionParam(e.expand,"multi"),integrationPresenceSource:e.integrationPresenceSource,userCustomAttributeSchemaIds:this.apiClient.buildCollectionParam(e.userCustomAttributeSchemaIds,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getUsersQuery(e){return e=e||{},this.apiClient.callApi("/api/v2/users/query","GET",{},{cursor:e.cursor,pageSize:e.pageSize,sortOrder:e.sortOrder,expand:this.apiClient.buildCollectionParam(e.expand,"multi"),integrationPresenceSource:e.integrationPresenceSource,userCustomAttributeSchemaIds:this.apiClient.buildCollectionParam(e.userCustomAttributeSchemaIds,"multi"),state:e.state},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getUsersSearch(e,i){if(i=i||{},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(i.expand,"multi"),integrationPresenceSource:i.integrationPresenceSource},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling patchUser';if(i==null)throw'Missing the required parameter "body" when calling patchUser';return this.apiClient.callApi("/api/v2/users/{userId}","PATCH",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchUserCallforwarding(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling patchUserCallforwarding';if(i==null)throw'Missing the required parameter "body" when calling patchUserCallforwarding';return this.apiClient.callApi("/api/v2/users/{userId}/callforwarding","PATCH",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchUserCustomattributes(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling patchUserCustomattributes';if(i==null)throw'Missing the required parameter "userCustomAttributes" when calling patchUserCustomattributes';return this.apiClient.callApi("/api/v2/users/{userId}/customattributes","PATCH",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchUserCustomattributesBulk(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling patchUserCustomattributesBulk';if(i==null)throw'Missing the required parameter "userCustomAttributesList" when calling patchUserCustomattributesBulk';return this.apiClient.callApi("/api/v2/users/{userId}/customattributes/bulk","PATCH",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchUserGeolocation(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "userId" when calling patchUserGeolocation';if(i==null||i==="")throw'Missing the required parameter "clientId" when calling patchUserGeolocation';if(n==null)throw'Missing the required parameter "body" when calling patchUserGeolocation';return this.apiClient.callApi("/api/v2/users/{userId}/geolocations/{clientId}","PATCH",{userId:e,clientId:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchUserQueue(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "queueId" when calling patchUserQueue';if(i==null||i==="")throw'Missing the required parameter "userId" when calling patchUserQueue';if(n==null)throw'Missing the required parameter "body" when calling patchUserQueue';return this.apiClient.callApi("/api/v2/users/{userId}/queues/{queueId}","PATCH",{queueId:e,userId:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchUserQueues(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling patchUserQueues';if(i==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(n.divisionId,"multi")},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchUserRoutinglanguage(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "userId" when calling patchUserRoutinglanguage';if(i==null||i==="")throw'Missing the required parameter "languageId" when calling patchUserRoutinglanguage';if(n==null)throw'Missing the required parameter "body" when calling patchUserRoutinglanguage';return this.apiClient.callApi("/api/v2/users/{userId}/routinglanguages/{languageId}","PATCH",{userId:e,languageId:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchUserRoutinglanguagesBulk(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling patchUserRoutinglanguagesBulk';if(i==null)throw'Missing the required parameter "body" when calling patchUserRoutinglanguagesBulk';return this.apiClient.callApi("/api/v2/users/{userId}/routinglanguages/bulk","PATCH",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchUserRoutingskillsBulk(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling patchUserRoutingskillsBulk';if(i==null)throw'Missing the required parameter "body" when calling patchUserRoutingskillsBulk';return this.apiClient.callApi("/api/v2/users/{userId}/routingskills/bulk","PATCH",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchUsersBulk(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsUsersActivityQuery(e,i){if(i=i||{},e==null)throw'Missing the required parameter "body" when calling postAnalyticsUsersActivityQuery';return this.apiClient.callApi("/api/v2/analytics/users/activity/query","POST",{},{pageSize:i.pageSize,pageNumber:i.pageNumber},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postAnalyticsUsersAggregatesJobs(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsUsersAggregatesQuery(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsUsersDetailsJobs(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsUsersDetailsQuery(e,i){if(i=i||{},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"],i.customHeaders)}postAnalyticsUsersObservationsQuery(e,i){if(i=i||{},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"],i.customHeaders)}postAuthorizationSubjectBulkadd(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "subjectId" when calling postAuthorizationSubjectBulkadd';if(i==null)throw'Missing the required parameter "body" when calling postAuthorizationSubjectBulkadd';return this.apiClient.callApi("/api/v2/authorization/subjects/{subjectId}/bulkadd","POST",{subjectId:e},{subjectType:n.subjectType},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postAuthorizationSubjectBulkremove(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "subjectId" when calling postAuthorizationSubjectBulkremove';if(i==null)throw'Missing the required parameter "body" when calling postAuthorizationSubjectBulkremove';return this.apiClient.callApi("/api/v2/authorization/subjects/{subjectId}/bulkremove","POST",{subjectId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postAuthorizationSubjectBulkreplace(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "subjectId" when calling postAuthorizationSubjectBulkreplace';if(i==null)throw'Missing the required parameter "body" when calling postAuthorizationSubjectBulkreplace';return this.apiClient.callApi("/api/v2/authorization/subjects/{subjectId}/bulkreplace","POST",{subjectId:e},{subjectType:n.subjectType},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postAuthorizationSubjectDivisionRole(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "subjectId" when calling postAuthorizationSubjectDivisionRole';if(i==null||i==="")throw'Missing the required parameter "divisionId" when calling postAuthorizationSubjectDivisionRole';if(n==null||n==="")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:i,roleId:n},{subjectType:a.subjectType},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postUserExternalid(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling postUserExternalid';if(i==null)throw'Missing the required parameter "body" when calling postUserExternalid';return this.apiClient.callApi("/api/v2/users/{userId}/externalid","POST",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postUserInvite(e,i){if(i=i||{},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:i.force},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postUserPassword(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling postUserPassword';if(i==null)throw'Missing the required parameter "body" when calling postUserPassword';return this.apiClient.callApi("/api/v2/users/{userId}/password","POST",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postUserRoutinglanguages(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling postUserRoutinglanguages';if(i==null)throw'Missing the required parameter "body" when calling postUserRoutinglanguages';return this.apiClient.callApi("/api/v2/users/{userId}/routinglanguages","POST",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postUserRoutingskills(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling postUserRoutingskills';if(i==null)throw'Missing the required parameter "body" when calling postUserRoutingskills';return this.apiClient.callApi("/api/v2/users/{userId}/routingskills","POST",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postUsers(e,i){if(i=i||{},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"],i.customHeaders)}postUsersCustomattributesSchemas(e,i){if(i=i||{},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"],i.customHeaders)}postUsersDevelopmentActivitiesAggregatesQuery(e,i){if(i=i||{},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"],i.customHeaders)}postUsersMePassword(e,i){if(i=i||{},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"],i.customHeaders)}postUsersSearch(e,i){if(i=i||{},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"],i.customHeaders)}postUsersSearchConversationTarget(e,i){if(i=i||{},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"],i.customHeaders)}postUsersSearchQueuemembersManage(e,i){if(i=i||{},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"],i.customHeaders)}postUsersSearchTeamsAssign(e,i){if(i=i||{},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"],i.customHeaders)}putRoutingDirectroutingbackupSettingsMe(e,i){if(i=i||{},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"],i.customHeaders)}putRoutingUserDirectroutingbackupSettings(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling putRoutingUserDirectroutingbackupSettings';if(i==null)throw'Missing the required parameter "body" when calling putRoutingUserDirectroutingbackupSettings';return this.apiClient.callApi("/api/v2/routing/users/{userId}/directroutingbackup/settings","PUT",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putRoutingUserUtilization(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling putRoutingUserUtilization';if(i==null)throw'Missing the required parameter "body" when calling putRoutingUserUtilization';return this.apiClient.callApi("/api/v2/routing/users/{userId}/utilization","PUT",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putUserCallforwarding(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling putUserCallforwarding';if(i==null)throw'Missing the required parameter "body" when calling putUserCallforwarding';return this.apiClient.callApi("/api/v2/users/{userId}/callforwarding","PUT",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putUserCustomattributes(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling putUserCustomattributes';if(i==null)throw'Missing the required parameter "userCustomAttributes" when calling putUserCustomattributes';return this.apiClient.callApi("/api/v2/users/{userId}/customattributes","PUT",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putUserOutofoffice(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling putUserOutofoffice';if(i==null)throw'Missing the required parameter "body" when calling putUserOutofoffice';return this.apiClient.callApi("/api/v2/users/{userId}/outofoffice","PUT",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putUserProfileskills(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling putUserProfileskills';if(i==null)throw'Missing the required parameter "body" when calling putUserProfileskills';return this.apiClient.callApi("/api/v2/users/{userId}/profileskills","PUT",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putUserRoles(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "subjectId" when calling putUserRoles';if(i==null)throw'Missing the required parameter "body" when calling putUserRoles';return this.apiClient.callApi("/api/v2/users/{subjectId}/roles","PUT",{subjectId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putUserRoutingskill(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "userId" when calling putUserRoutingskill';if(i==null||i==="")throw'Missing the required parameter "skillId" when calling putUserRoutingskill';if(n==null)throw'Missing the required parameter "body" when calling putUserRoutingskill';return this.apiClient.callApi("/api/v2/users/{userId}/routingskills/{skillId}","PUT",{userId:e,skillId:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}putUserRoutingskillsBulk(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling putUserRoutingskillsBulk';if(i==null)throw'Missing the required parameter "body" when calling putUserRoutingskillsBulk';return this.apiClient.callApi("/api/v2/users/{userId}/routingskills/bulk","PUT",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putUserRoutingstatus(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling putUserRoutingstatus';if(i==null)throw'Missing the required parameter "body" when calling putUserRoutingstatus';return this.apiClient.callApi("/api/v2/users/{userId}/routingstatus","PUT",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putUserState(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling putUserState';if(i==null)throw'Missing the required parameter "body" when calling putUserState';return this.apiClient.callApi("/api/v2/users/{userId}/state","PUT",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putUserStationAssociatedstationStationId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling putUserStationAssociatedstationStationId';if(i==null||i==="")throw'Missing the required parameter "stationId" when calling putUserStationAssociatedstationStationId';return this.apiClient.callApi("/api/v2/users/{userId}/station/associatedstation/{stationId}","PUT",{userId:e,stationId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putUserStationDefaultstationStationId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling putUserStationDefaultstationStationId';if(i==null||i==="")throw'Missing the required parameter "stationId" when calling putUserStationDefaultstationStationId';return this.apiClient.callApi("/api/v2/users/{userId}/station/defaultstation/{stationId}","PUT",{userId:e,stationId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putUserVerifier(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "userId" when calling putUserVerifier';if(i==null||i==="")throw'Missing the required parameter "verifierId" when calling putUserVerifier';if(n==null)throw'Missing the required parameter "body" when calling putUserVerifier';return this.apiClient.callApi("/api/v2/users/{userId}/verifiers/{verifierId}","PUT",{userId:e,verifierId:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}putUsersCustomattributesSchema(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "schemaId" when calling putUsersCustomattributesSchema';if(i==null)throw'Missing the required parameter "body" when calling putUsersCustomattributesSchema';return this.apiClient.callApi("/api/v2/users/customattributes/schemas/{schemaId}","PUT",{schemaId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putUsersStationsMeAssociatedstationStationId(e,i){if(i=i||{},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"],i.customHeaders)}},Kb=class{constructor(e){this.apiClient=e||q.instance}deleteUsersRule(e,i){if(i=i||{},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"],i.customHeaders)}getUsersRule(e,i){if(i=i||{},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"],i.customHeaders)}getUsersRuleDependentTypeId(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "ruleId" when calling getUsersRuleDependentTypeId';if(i==null||i==="")throw'Missing the required parameter "ruleType" when calling getUsersRuleDependentTypeId';if(n==null||n==="")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:i,typeId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getUsersRuleDependents(e,i){if(i=i||{},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:i.pageSize,pageNumber:i.pageNumber,sortOrder:i.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getUsersRules(e,i){if(i=i||{},e==null)throw'Missing the required parameter "types" when calling getUsersRules';return this.apiClient.callApi("/api/v2/users/rules","GET",{},{pageNumber:i.pageNumber,pageSize:i.pageSize,types:this.apiClient.buildCollectionParam(e,"multi"),expand:this.apiClient.buildCollectionParam(i.expand,"multi"),enabled:i.enabled,searchTerm:i.searchTerm,sortOrder:i.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getUsersRulesSetting(e,i){if(i=i||{},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"],i.customHeaders)}patchUsersRule(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "ruleId" when calling patchUsersRule';if(i==null)throw'Missing the required parameter "body" when calling patchUsersRule';return this.apiClient.callApi("/api/v2/users/rules/{ruleId}","PATCH",{ruleId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postUsersRules(e,i){if(i=i||{},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"],i.customHeaders)}postUsersRulesQuery(e,i){if(i=i||{},e==null)throw'Missing the required parameter "body" when calling postUsersRulesQuery';return this.apiClient.callApi("/api/v2/users/rules/query","POST",{},{pageNumber:i.pageNumber,pageSize:i.pageSize},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}},Qb=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,i){if(i=i||{},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"],i.customHeaders)}},Yb=class{constructor(e){this.apiClient=e||q.instance}deleteVoicemailMessage(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getVoicemailGroupMessages(e,i){if(i=i||{},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:i.pageSize,pageNumber:i.pageNumber},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getVoicemailGroupPolicy(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getVoicemailMessageMedia(e,i){if(i=i||{},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:i.formatId},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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:i.pageSize,pageNumber:i.pageNumber},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getVoicemailSearch(e,i){if(i=i||{},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(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getVoicemailUserMailbox(e,i){if(i=i||{},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"],i.customHeaders)}getVoicemailUserMessages(e,i){if(i=i||{},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:i.pageSize,pageNumber:i.pageNumber},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getVoicemailUserpolicy(e,i){if(i=i||{},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"],i.customHeaders)}patchVoicemailGroupPolicy(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "groupId" when calling patchVoicemailGroupPolicy';if(i==null)throw'Missing the required parameter "body" when calling patchVoicemailGroupPolicy';return this.apiClient.callApi("/api/v2/voicemail/groups/{groupId}/policy","PATCH",{groupId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchVoicemailMePolicy(e,i){if(i=i||{},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"],i.customHeaders)}patchVoicemailMessage(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "messageId" when calling patchVoicemailMessage';if(i==null)throw'Missing the required parameter "body" when calling patchVoicemailMessage';return this.apiClient.callApi("/api/v2/voicemail/messages/{messageId}","PATCH",{messageId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchVoicemailUserpolicy(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling patchVoicemailUserpolicy';if(i==null)throw'Missing the required parameter "body" when calling patchVoicemailUserpolicy';return this.apiClient.callApi("/api/v2/voicemail/userpolicies/{userId}","PATCH",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.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,i){if(i=i||{},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"],i.customHeaders)}putVoicemailMessage(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "messageId" when calling putVoicemailMessage';if(i==null)throw'Missing the required parameter "body" when calling putVoicemailMessage';return this.apiClient.callApi("/api/v2/voicemail/messages/{messageId}","PUT",{messageId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putVoicemailPolicy(e,i){if(i=i||{},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"],i.customHeaders)}putVoicemailUserpolicy(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling putVoicemailUserpolicy';if(i==null)throw'Missing the required parameter "body" when calling putVoicemailUserpolicy';return this.apiClient.callApi("/api/v2/voicemail/userpolicies/{userId}","PUT",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}},Xb=class{constructor(e){this.apiClient=e||q.instance}deleteWebchatDeployment(e,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "deploymentId" when calling deleteWebchatDeployment';return this.apiClient.callApi("/api/v2/webchat/deployments/{deploymentId}","DELETE",{deploymentId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}deleteWebchatGuestConversationMember(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling deleteWebchatGuestConversationMember';if(i==null||i==="")throw'Missing the required parameter "memberId" when calling deleteWebchatGuestConversationMember';return this.apiClient.callApi("/api/v2/webchat/guest/conversations/{conversationId}/members/{memberId}","DELETE",{conversationId:e,memberId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteWebchatSettings(e){return e=e||{},this.apiClient.callApi("/api/v2/webchat/settings","DELETE",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getWebchatDeployment(e,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "deploymentId" when calling getWebchatDeployment';return this.apiClient.callApi("/api/v2/webchat/deployments/{deploymentId}","GET",{deploymentId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getWebchatDeployments(e){return e=e||{},this.apiClient.callApi("/api/v2/webchat/deployments","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getWebchatGuestConversationMediarequest(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getWebchatGuestConversationMediarequest';if(i==null||i==="")throw'Missing the required parameter "mediaRequestId" when calling getWebchatGuestConversationMediarequest';return this.apiClient.callApi("/api/v2/webchat/guest/conversations/{conversationId}/mediarequests/{mediaRequestId}","GET",{conversationId:e,mediaRequestId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWebchatGuestConversationMediarequests(e,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getWebchatGuestConversationMediarequests';return this.apiClient.callApi("/api/v2/webchat/guest/conversations/{conversationId}/mediarequests","GET",{conversationId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getWebchatGuestConversationMember(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getWebchatGuestConversationMember';if(i==null||i==="")throw'Missing the required parameter "memberId" when calling getWebchatGuestConversationMember';return this.apiClient.callApi("/api/v2/webchat/guest/conversations/{conversationId}/members/{memberId}","GET",{conversationId:e,memberId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWebchatGuestConversationMembers(e,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getWebchatGuestConversationMembers';return this.apiClient.callApi("/api/v2/webchat/guest/conversations/{conversationId}/members","GET",{conversationId:e},{pageSize:i.pageSize,pageNumber:i.pageNumber,excludeDisconnectedMembers:i.excludeDisconnectedMembers},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getWebchatGuestConversationMessage(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getWebchatGuestConversationMessage';if(i==null||i==="")throw'Missing the required parameter "messageId" when calling getWebchatGuestConversationMessage';return this.apiClient.callApi("/api/v2/webchat/guest/conversations/{conversationId}/messages/{messageId}","GET",{conversationId:e,messageId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWebchatGuestConversationMessages(e,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling getWebchatGuestConversationMessages';return this.apiClient.callApi("/api/v2/webchat/guest/conversations/{conversationId}/messages","GET",{conversationId:e},{after:i.after,before:i.before,sortOrder:i.sortOrder,maxResults:i.maxResults},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getWebchatSettings(e){return e=e||{},this.apiClient.callApi("/api/v2/webchat/settings","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}patchWebchatGuestConversationMediarequest(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling patchWebchatGuestConversationMediarequest';if(i==null||i==="")throw'Missing the required parameter "mediaRequestId" when calling patchWebchatGuestConversationMediarequest';if(n==null)throw'Missing the required parameter "body" when calling patchWebchatGuestConversationMediarequest';return this.apiClient.callApi("/api/v2/webchat/guest/conversations/{conversationId}/mediarequests/{mediaRequestId}","PATCH",{conversationId:e,mediaRequestId:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postWebchatDeployments(e,i){if(i=i||{},e==null)throw'Missing the required parameter "body" when calling postWebchatDeployments';return this.apiClient.callApi("/api/v2/webchat/deployments","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postWebchatGuestConversationMemberMessages(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postWebchatGuestConversationMemberMessages';if(i==null||i==="")throw'Missing the required parameter "memberId" when calling postWebchatGuestConversationMemberMessages';if(n==null)throw'Missing the required parameter "body" when calling postWebchatGuestConversationMemberMessages';return this.apiClient.callApi("/api/v2/webchat/guest/conversations/{conversationId}/members/{memberId}/messages","POST",{conversationId:e,memberId:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postWebchatGuestConversationMemberTyping(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "conversationId" when calling postWebchatGuestConversationMemberTyping';if(i==null||i==="")throw'Missing the required parameter "memberId" when calling postWebchatGuestConversationMemberTyping';return this.apiClient.callApi("/api/v2/webchat/guest/conversations/{conversationId}/members/{memberId}/typing","POST",{conversationId:e,memberId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWebchatGuestConversations(e,i){if(i=i||{},e==null)throw'Missing the required parameter "body" when calling postWebchatGuestConversations';return this.apiClient.callApi("/api/v2/webchat/guest/conversations","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}putWebchatDeployment(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "deploymentId" when calling putWebchatDeployment';if(i==null)throw'Missing the required parameter "body" when calling putWebchatDeployment';return this.apiClient.callApi("/api/v2/webchat/deployments/{deploymentId}","PUT",{deploymentId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putWebchatSettings(e,i){if(i=i||{},e==null)throw'Missing the required parameter "body" when calling putWebchatSettings';return this.apiClient.callApi("/api/v2/webchat/settings","PUT",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}},ey=class{constructor(e){this.apiClient=e||q.instance}deleteWebdeploymentsConfiguration(e,i){if(i=i||{},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"],i.customHeaders)}deleteWebdeploymentsDeployment(e,i){if(i=i||{},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"],i.customHeaders)}deleteWebdeploymentsDeploymentCobrowseSessionId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "deploymentId" when calling deleteWebdeploymentsDeploymentCobrowseSessionId';if(i==null||i==="")throw'Missing the required parameter "sessionId" when calling deleteWebdeploymentsDeploymentCobrowseSessionId';return this.apiClient.callApi("/api/v2/webdeployments/deployments/{deploymentId}/cobrowse/{sessionId}","DELETE",{deploymentId:e,sessionId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.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,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "configurationId" when calling getWebdeploymentsConfigurationVersion';if(i==null||i==="")throw'Missing the required parameter "versionId" when calling getWebdeploymentsConfigurationVersion';return this.apiClient.callApi("/api/v2/webdeployments/configurations/{configurationId}/versions/{versionId}","GET",{configurationId:e,versionId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWebdeploymentsConfigurationVersions(e,i){if(i=i||{},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:i.pageSize,before:i.before,after:i.after},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getWebdeploymentsConfigurationVersionsDraft(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getWebdeploymentsDeploymentCobrowseSessionId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "deploymentId" when calling getWebdeploymentsDeploymentCobrowseSessionId';if(i==null||i==="")throw'Missing the required parameter "sessionId" when calling getWebdeploymentsDeploymentCobrowseSessionId';return this.apiClient.callApi("/api/v2/webdeployments/deployments/{deploymentId}/cobrowse/{sessionId}","GET",{deploymentId:e,sessionId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWebdeploymentsDeploymentConfigurations(e,i){if(i=i||{},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:i.type,expand:this.apiClient.buildCollectionParam(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getWebdeploymentsDeploymentIdentityresolution(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}postWebdeploymentsConfigurations(e,i){if(i=i||{},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"],i.customHeaders)}postWebdeploymentsDeployments(e,i){if(i=i||{},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"],i.customHeaders)}postWebdeploymentsTokenOauthcodegrantjwtexchange(e,i){if(i=i||{},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"],i.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,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "configurationId" when calling putWebdeploymentsConfigurationVersionsDraft';if(i==null)throw'Missing the required parameter "configurationVersion" when calling putWebdeploymentsConfigurationVersionsDraft';return this.apiClient.callApi("/api/v2/webdeployments/configurations/{configurationId}/versions/draft","PUT",{configurationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putWebdeploymentsDeployment(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "deploymentId" when calling putWebdeploymentsDeployment';if(i==null)throw'Missing the required parameter "deployment" when calling putWebdeploymentsDeployment';return this.apiClient.callApi("/api/v2/webdeployments/deployments/{deploymentId}","PUT",{deploymentId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putWebdeploymentsDeploymentIdentityresolution(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "deploymentId" when calling putWebdeploymentsDeploymentIdentityresolution';if(i==null)throw'Missing the required parameter "body" when calling putWebdeploymentsDeploymentIdentityresolution';return this.apiClient.callApi("/api/v2/webdeployments/deployments/{deploymentId}/identityresolution","PUT",{deploymentId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}},iy=class{constructor(e){this.apiClient=e||q.instance}deleteWebmessagingDeploymentPushdevice(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "deploymentId" when calling deleteWebmessagingDeploymentPushdevice';if(i==null||i==="")throw'Missing the required parameter "tokenId" when calling deleteWebmessagingDeploymentPushdevice';return this.apiClient.callApi("/api/v2/webmessaging/deployments/{deploymentId}/pushdevices/{tokenId}","DELETE",{deploymentId:e,tokenId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.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,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "deploymentId" when calling patchWebmessagingDeploymentPushdevice';if(i==null||i==="")throw'Missing the required parameter "tokenId" when calling patchWebmessagingDeploymentPushdevice';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postWebmessagingDeploymentPushdevice(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "deploymentId" when calling postWebmessagingDeploymentPushdevice';if(i==null||i==="")throw'Missing the required parameter "tokenId" when calling postWebmessagingDeploymentPushdevice';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}},ny=class{constructor(e){this.apiClient=e||q.instance}deleteWidgetsDeployment(e,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "deploymentId" when calling deleteWidgetsDeployment';return this.apiClient.callApi("/api/v2/widgets/deployments/{deploymentId}","DELETE",{deploymentId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getWidgetsDeployment(e,i){if(i=i||{},e==null||e==="")throw'Missing the required parameter "deploymentId" when calling getWidgetsDeployment';return this.apiClient.callApi("/api/v2/widgets/deployments/{deploymentId}","GET",{deploymentId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getWidgetsDeployments(e){return e=e||{},this.apiClient.callApi("/api/v2/widgets/deployments","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}postWidgetsDeployments(e,i){if(i=i||{},e==null)throw'Missing the required parameter "body" when calling postWidgetsDeployments';return this.apiClient.callApi("/api/v2/widgets/deployments","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}putWidgetsDeployment(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "deploymentId" when calling putWidgetsDeployment';if(i==null)throw'Missing the required parameter "body" when calling putWidgetsDeployment';return this.apiClient.callApi("/api/v2/widgets/deployments/{deploymentId}","PUT",{deploymentId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}},ty=class{constructor(e){this.apiClient=e||q.instance}deleteWorkforcemanagementBusinessunit(e,i){if(i=i||{},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"],i.customHeaders)}deleteWorkforcemanagementBusinessunitActivitycode(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling deleteWorkforcemanagementBusinessunitActivitycode';if(i==null||i==="")throw'Missing the required parameter "activityCodeId" when calling deleteWorkforcemanagementBusinessunitActivitycode';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/activitycodes/{activityCodeId}","DELETE",{businessUnitId:e,activityCodeId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteWorkforcemanagementBusinessunitCapacityplanStaffinggroupallocationshistory(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling deleteWorkforcemanagementBusinessunitCapacityplanStaffinggroupallocationshistory';if(i==null||i==="")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:i},{beforeDateId:n.beforeDateId},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteWorkforcemanagementBusinessunitPlanninggroup(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling deleteWorkforcemanagementBusinessunitPlanninggroup';if(i==null||i==="")throw'Missing the required parameter "planningGroupId" when calling deleteWorkforcemanagementBusinessunitPlanninggroup';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/planninggroups/{planningGroupId}","DELETE",{businessUnitId:e,planningGroupId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteWorkforcemanagementBusinessunitSchedulingRun(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling deleteWorkforcemanagementBusinessunitSchedulingRun';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteWorkforcemanagementBusinessunitServicegoaltemplate(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling deleteWorkforcemanagementBusinessunitServicegoaltemplate';if(i==null||i==="")throw'Missing the required parameter "serviceGoalTemplateId" when calling deleteWorkforcemanagementBusinessunitServicegoaltemplate';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/servicegoaltemplates/{serviceGoalTemplateId}","DELETE",{businessUnitId:e,serviceGoalTemplateId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteWorkforcemanagementBusinessunitStaffinggroup(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling deleteWorkforcemanagementBusinessunitStaffinggroup';if(i==null||i==="")throw'Missing the required parameter "staffingGroupId" when calling deleteWorkforcemanagementBusinessunitStaffinggroup';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/staffinggroups/{staffingGroupId}","DELETE",{businessUnitId:e,staffingGroupId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteWorkforcemanagementBusinessunitTimeofflimit(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling deleteWorkforcemanagementBusinessunitTimeofflimit';if(i==null||i==="")throw'Missing the required parameter "timeOffLimitId" when calling deleteWorkforcemanagementBusinessunitTimeofflimit';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/timeofflimits/{timeOffLimitId}","DELETE",{businessUnitId:e,timeOffLimitId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteWorkforcemanagementBusinessunitTimeoffplan(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling deleteWorkforcemanagementBusinessunitTimeoffplan';if(i==null||i==="")throw'Missing the required parameter "timeOffPlanId" when calling deleteWorkforcemanagementBusinessunitTimeoffplan';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/timeoffplans/{timeOffPlanId}","DELETE",{businessUnitId:e,timeOffPlanId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteWorkforcemanagementBusinessunitWeekSchedule(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling deleteWorkforcemanagementBusinessunitWeekSchedule';if(i==null)throw'Missing the required parameter "weekId" when calling deleteWorkforcemanagementBusinessunitWeekSchedule';if(n==null||n==="")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:i,scheduleId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}deleteWorkforcemanagementBusinessunitWeekShorttermforecast(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling deleteWorkforcemanagementBusinessunitWeekShorttermforecast';if(i==null)throw'Missing the required parameter "weekDateId" when calling deleteWorkforcemanagementBusinessunitWeekShorttermforecast';if(n==null||n==="")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:i,forecastId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}deleteWorkforcemanagementBusinessunitWorkplanbid(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling deleteWorkforcemanagementBusinessunitWorkplanbid';if(i==null||i==="")throw'Missing the required parameter "bidId" when calling deleteWorkforcemanagementBusinessunitWorkplanbid';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/workplanbids/{bidId}","DELETE",{businessUnitId:e,bidId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteWorkforcemanagementBusinessunitWorkplanbidGroup(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling deleteWorkforcemanagementBusinessunitWorkplanbidGroup';if(i==null||i==="")throw'Missing the required parameter "bidId" when calling deleteWorkforcemanagementBusinessunitWorkplanbidGroup';if(n==null||n==="")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:i,bidGroupId:n},{},{},{},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,i){if(i=i||{},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"],i.customHeaders)}deleteWorkforcemanagementManagementunitTimeofflimit(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling deleteWorkforcemanagementManagementunitTimeofflimit';if(i==null||i==="")throw'Missing the required parameter "timeOffLimitId" when calling deleteWorkforcemanagementManagementunitTimeofflimit';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/timeofflimits/{timeOffLimitId}","DELETE",{managementUnitId:e,timeOffLimitId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteWorkforcemanagementManagementunitTimeoffplan(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling deleteWorkforcemanagementManagementunitTimeoffplan';if(i==null||i==="")throw'Missing the required parameter "timeOffPlanId" when calling deleteWorkforcemanagementManagementunitTimeoffplan';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/timeoffplans/{timeOffPlanId}","DELETE",{managementUnitId:e,timeOffPlanId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteWorkforcemanagementManagementunitWorkplan(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling deleteWorkforcemanagementManagementunitWorkplan';if(i==null||i==="")throw'Missing the required parameter "workPlanId" when calling deleteWorkforcemanagementManagementunitWorkplan';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/workplans/{workPlanId}","DELETE",{managementUnitId:e,workPlanId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}deleteWorkforcemanagementManagementunitWorkplanrotation(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling deleteWorkforcemanagementManagementunitWorkplanrotation';if(i==null||i==="")throw'Missing the required parameter "workPlanRotationId" when calling deleteWorkforcemanagementManagementunitWorkplanrotation';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/workplanrotations/{workPlanRotationId}","DELETE",{managementUnitId:e,workPlanRotationId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementAdherence(e,i){if(i=i||{},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"],i.customHeaders)}getWorkforcemanagementAdherenceExplanation(e,i){if(i=i||{},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"],i.customHeaders)}getWorkforcemanagementAdherenceExplanationsJob(e,i){if(i=i||{},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"],i.customHeaders)}getWorkforcemanagementAdherenceHistoricalBulkJob(e,i){if(i=i||{},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"],i.customHeaders)}getWorkforcemanagementAdherenceHistoricalJob(e,i){if(i=i||{},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"],i.customHeaders)}getWorkforcemanagementAgentAdherenceExplanation(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "agentId" when calling getWorkforcemanagementAgentAdherenceExplanation';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementAgentManagementunit(e,i){if(i=i||{},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"],i.customHeaders)}getWorkforcemanagementAgentsMeAdherenceHistoricalJob(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getWorkforcemanagementAlternativeshiftsOffersSearchJob(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getWorkforcemanagementAlternativeshiftsTradesStateJob(e,i){if(i=i||{},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"],i.customHeaders)}getWorkforcemanagementBusinessunit(e,i){if(i=i||{},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(i.expand,"multi"),includeSchedulingDefaultMessageSeverities:i.includeSchedulingDefaultMessageSeverities},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getWorkforcemanagementBusinessunitActivitycode(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitActivitycode';if(i==null||i==="")throw'Missing the required parameter "activityCodeId" when calling getWorkforcemanagementBusinessunitActivitycode';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/activitycodes/{activityCodeId}","GET",{businessUnitId:e,activityCodeId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementBusinessunitActivitycodes(e,i){if(i=i||{},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:i.forceDownloadService},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getWorkforcemanagementBusinessunitActivityplan(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitActivityplan';if(i==null||i==="")throw'Missing the required parameter "activityPlanId" when calling getWorkforcemanagementBusinessunitActivityplan';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/activityplans/{activityPlanId}","GET",{businessUnitId:e,activityPlanId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementBusinessunitActivityplanRunsJob(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitActivityplanRunsJob';if(i==null||i==="")throw'Missing the required parameter "activityPlanId" when calling getWorkforcemanagementBusinessunitActivityplanRunsJob';if(n==null||n==="")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:i,jobId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getWorkforcemanagementBusinessunitActivityplans(e,i){if(i=i||{},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:i.state},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getWorkforcemanagementBusinessunitActivityplansJobs(e,i){if(i=i||{},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"],i.customHeaders)}getWorkforcemanagementBusinessunitAlternativeshiftsSettings(e,i){if(i=i||{},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"],i.customHeaders)}getWorkforcemanagementBusinessunitAlternativeshiftsTrade(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitAlternativeshiftsTrade';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementBusinessunitAlternativeshiftsTradesSearchJob(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitAlternativeshiftsTradesSearchJob';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementBusinessunitCapacityplan(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitCapacityplan';if(i==null||i==="")throw'Missing the required parameter "capacityPlanId" when calling getWorkforcemanagementBusinessunitCapacityplan';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/capacityplans/{capacityPlanId}","GET",{businessUnitId:e,capacityPlanId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementBusinessunitCapacityplanStaffinggroupallocations(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitCapacityplanStaffinggroupallocations';if(i==null||i==="")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:i},{granularity:n.granularity},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementBusinessunitCapacityplanStaffingrequirements(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitCapacityplanStaffingrequirements';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementBusinessunitCapacityplanningLongtermrequirementsAutomaticbestmethodWeekForecast(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitCapacityplanningLongtermrequirementsAutomaticbestmethodWeekForecast';if(i==null)throw'Missing the required parameter "weekDateId" when calling getWorkforcemanagementBusinessunitCapacityplanningLongtermrequirementsAutomaticbestmethodWeekForecast';if(n==null||n==="")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:i,forecastId:n},{granularity:a.granularity},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getWorkforcemanagementBusinessunitCapacityplans(e,i){if(i=i||{},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"],i.customHeaders)}getWorkforcemanagementBusinessunitIntradayPlanninggroups(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitIntradayPlanninggroups';if(i==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:i},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementBusinessunitMainforecastContinuousforecastSession(e,i){if(i=i||{},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"],i.customHeaders)}getWorkforcemanagementBusinessunitMainforecastContinuousforecastSessionSessionId(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitMainforecastContinuousforecastSessionSessionId';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementBusinessunitMainforecastContinuousforecastSessionSessionIdSnapshotSnapshotId(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitMainforecastContinuousforecastSessionSessionIdSnapshotSnapshotId';if(i==null||i==="")throw'Missing the required parameter "sessionId" when calling getWorkforcemanagementBusinessunitMainforecastContinuousforecastSessionSessionIdSnapshotSnapshotId';if(n==null||n==="")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:i,snapshotId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getWorkforcemanagementBusinessunitManagementunits(e,i){if(i=i||{},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:i.feature,divisionId:i.divisionId},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getWorkforcemanagementBusinessunitMinimumstaffingSettings(e,i){if(i=i||{},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"],i.customHeaders)}getWorkforcemanagementBusinessunitPlanninggroup(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitPlanninggroup';if(i==null||i==="")throw'Missing the required parameter "planningGroupId" when calling getWorkforcemanagementBusinessunitPlanninggroup';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/planninggroups/{planningGroupId}","GET",{businessUnitId:e,planningGroupId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementBusinessunitPlanninggroups(e,i){if(i=i||{},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"],i.customHeaders)}getWorkforcemanagementBusinessunitSchedulerSettings(e,i){if(i=i||{},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"],i.customHeaders)}getWorkforcemanagementBusinessunitSchedulingRun(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitSchedulingRun';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementBusinessunitSchedulingRunResult(e,i,n,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitSchedulingRunResult';if(i==null||i==="")throw'Missing the required parameter "runId" when calling getWorkforcemanagementBusinessunitSchedulingRunResult';if(n==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:i},{managementUnitIds:this.apiClient.buildCollectionParam(n,"multi"),expand:this.apiClient.buildCollectionParam(a,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}getWorkforcemanagementBusinessunitSchedulingRuns(e,i){if(i=i||{},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"],i.customHeaders)}getWorkforcemanagementBusinessunitServicegoaltemplate(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitServicegoaltemplate';if(i==null||i==="")throw'Missing the required parameter "serviceGoalTemplateId" when calling getWorkforcemanagementBusinessunitServicegoaltemplate';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/servicegoaltemplates/{serviceGoalTemplateId}","GET",{businessUnitId:e,serviceGoalTemplateId:i},{expand:this.apiClient.buildCollectionParam(n.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementBusinessunitServicegoaltemplates(e,i){if(i=i||{},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(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getWorkforcemanagementBusinessunitShifttradingTradesEvaluateJob(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitShifttradingTradesEvaluateJob';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementBusinessunitShifttradingTradesQueryJob(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitShifttradingTradesQueryJob';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementBusinessunitShifttradingTradesStateBulkJob(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitShifttradingTradesStateBulkJob';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementBusinessunitShifttradingUnmatchedSearchJob(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitShifttradingUnmatchedSearchJob';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementBusinessunitShifttradingWeeksSummaryJob(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitShifttradingWeeksSummaryJob';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementBusinessunitStaffinggroup(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitStaffinggroup';if(i==null||i==="")throw'Missing the required parameter "staffingGroupId" when calling getWorkforcemanagementBusinessunitStaffinggroup';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/staffinggroups/{staffingGroupId}","GET",{businessUnitId:e,staffingGroupId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementBusinessunitStaffinggroups(e,i){if(i=i||{},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:i.managementUnitId,forceDownloadService:i.forceDownloadService},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getWorkforcemanagementBusinessunitTimeofflimit(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitTimeofflimit';if(i==null||i==="")throw'Missing the required parameter "timeOffLimitId" when calling getWorkforcemanagementBusinessunitTimeofflimit';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/timeofflimits/{timeOffLimitId}","GET",{businessUnitId:e,timeOffLimitId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementBusinessunitTimeofflimits(e,i){if(i=i||{},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:i.managementUnitId},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getWorkforcemanagementBusinessunitTimeoffplan(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitTimeoffplan';if(i==null||i==="")throw'Missing the required parameter "timeOffPlanId" when calling getWorkforcemanagementBusinessunitTimeoffplan';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/timeoffplans/{timeOffPlanId}","GET",{businessUnitId:e,timeOffPlanId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementBusinessunitTimeoffplans(e,i){if(i=i||{},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:i.managementUnitId,forceDownloadService:i.forceDownloadService},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getWorkforcemanagementBusinessunitUsers(e,i){if(i=i||{},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(i.managementUnitIds,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getWorkforcemanagementBusinessunitWeekSchedule(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitWeekSchedule';if(i==null)throw'Missing the required parameter "weekId" when calling getWorkforcemanagementBusinessunitWeekSchedule';if(n==null||n==="")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:i,scheduleId:n},{expand:a.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getWorkforcemanagementBusinessunitWeekScheduleGenerationresults(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitWeekScheduleGenerationresults';if(i==null)throw'Missing the required parameter "weekId" when calling getWorkforcemanagementBusinessunitWeekScheduleGenerationresults';if(n==null||n==="")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:i,scheduleId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getWorkforcemanagementBusinessunitWeekScheduleHeadcountforecast(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitWeekScheduleHeadcountforecast';if(i==null)throw'Missing the required parameter "weekId" when calling getWorkforcemanagementBusinessunitWeekScheduleHeadcountforecast';if(n==null||n==="")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:i,scheduleId:n},{forceDownload:a.forceDownload},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getWorkforcemanagementBusinessunitWeekScheduleHistoryAgent(e,i,n,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitWeekScheduleHistoryAgent';if(i==null)throw'Missing the required parameter "weekId" when calling getWorkforcemanagementBusinessunitWeekScheduleHistoryAgent';if(n==null||n==="")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:i,scheduleId:n,agentId:a},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}getWorkforcemanagementBusinessunitWeekSchedulePerformancepredictions(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitWeekSchedulePerformancepredictions';if(i==null||i==="")throw'Missing the required parameter "weekId" when calling getWorkforcemanagementBusinessunitWeekSchedulePerformancepredictions';if(n==null||n==="")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:i,scheduleId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getWorkforcemanagementBusinessunitWeekSchedulePerformancepredictionsRecalculation(e,i,n,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitWeekSchedulePerformancepredictionsRecalculation';if(i==null||i==="")throw'Missing the required parameter "weekId" when calling getWorkforcemanagementBusinessunitWeekSchedulePerformancepredictionsRecalculation';if(n==null||n==="")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:i,scheduleId:n,recalculationId:a},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}getWorkforcemanagementBusinessunitWeekSchedules(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitWeekSchedules';if(i==null||i==="")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:i},{includeOnlyPublished:n.includeOnlyPublished,expand:n.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementBusinessunitWeekShorttermforecast(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitWeekShorttermforecast';if(i==null)throw'Missing the required parameter "weekDateId" when calling getWorkforcemanagementBusinessunitWeekShorttermforecast';if(n==null||n==="")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:i,forecastId:n},{expand:this.apiClient.buildCollectionParam(a.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getWorkforcemanagementBusinessunitWeekShorttermforecastData(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitWeekShorttermforecastData';if(i==null)throw'Missing the required parameter "weekDateId" when calling getWorkforcemanagementBusinessunitWeekShorttermforecastData';if(n==null||n==="")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:i,forecastId:n},{weekNumber:a.weekNumber,forceDownloadService:a.forceDownloadService},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getWorkforcemanagementBusinessunitWeekShorttermforecastGenerationresults(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitWeekShorttermforecastGenerationresults';if(i==null)throw'Missing the required parameter "weekDateId" when calling getWorkforcemanagementBusinessunitWeekShorttermforecastGenerationresults';if(n==null||n==="")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:i,forecastId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getWorkforcemanagementBusinessunitWeekShorttermforecastLongtermforecastdata(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitWeekShorttermforecastLongtermforecastdata';if(i==null)throw'Missing the required parameter "weekDateId" when calling getWorkforcemanagementBusinessunitWeekShorttermforecastLongtermforecastdata';if(n==null||n==="")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:i,forecastId:n},{forceDownloadService:a.forceDownloadService},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getWorkforcemanagementBusinessunitWeekShorttermforecastPlanninggroups(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitWeekShorttermforecastPlanninggroups';if(i==null)throw'Missing the required parameter "weekDateId" when calling getWorkforcemanagementBusinessunitWeekShorttermforecastPlanninggroups';if(n==null||n==="")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:i,forecastId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getWorkforcemanagementBusinessunitWeekShorttermforecastStaffingrequirement(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitWeekShorttermforecastStaffingrequirement';if(i==null)throw'Missing the required parameter "weekDateId" when calling getWorkforcemanagementBusinessunitWeekShorttermforecastStaffingrequirement';if(n==null||n==="")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:i,forecastId:n},{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,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitWeekShorttermforecasts';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementBusinessunitWorkplanbid(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitWorkplanbid';if(i==null||i==="")throw'Missing the required parameter "bidId" when calling getWorkforcemanagementBusinessunitWorkplanbid';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/workplanbids/{bidId}","GET",{businessUnitId:e,bidId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementBusinessunitWorkplanbidGroup(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitWorkplanbidGroup';if(i==null||i==="")throw'Missing the required parameter "bidId" when calling getWorkforcemanagementBusinessunitWorkplanbidGroup';if(n==null||n==="")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:i,bidGroupId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getWorkforcemanagementBusinessunitWorkplanbidGroupPreferences(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitWorkplanbidGroupPreferences';if(i==null||i==="")throw'Missing the required parameter "bidId" when calling getWorkforcemanagementBusinessunitWorkplanbidGroupPreferences';if(n==null||n==="")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:i,bidGroupId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getWorkforcemanagementBusinessunitWorkplanbidGroupsSummary(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitWorkplanbidGroupsSummary';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementBusinessunitWorkplanbids(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getWorkforcemanagementManagementunit(e,i){if(i=i||{},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(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getWorkforcemanagementManagementunitActivitycodes(e,i){if(i=i||{},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"],i.customHeaders)}getWorkforcemanagementManagementunitAdherence(e,i){if(i=i||{},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:i.forceDownloadService},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getWorkforcemanagementManagementunitAgent(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling getWorkforcemanagementManagementunitAgent';if(i==null||i==="")throw'Missing the required parameter "agentId" when calling getWorkforcemanagementManagementunitAgent';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/agents/{agentId}","GET",{managementUnitId:e,agentId:i},{excludeCapabilities:n.excludeCapabilities,expand:this.apiClient.buildCollectionParam(n.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementManagementunitAgentShifttrades(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling getWorkforcemanagementManagementunitAgentShifttrades';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementManagementunitShifttradesMatched(e,i){if(i=i||{},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"],i.customHeaders)}getWorkforcemanagementManagementunitShifttradesUsers(e,i){if(i=i||{},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"],i.customHeaders)}getWorkforcemanagementManagementunitTimeofflimit(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling getWorkforcemanagementManagementunitTimeofflimit';if(i==null||i==="")throw'Missing the required parameter "timeOffLimitId" when calling getWorkforcemanagementManagementunitTimeofflimit';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/timeofflimits/{timeOffLimitId}","GET",{managementUnitId:e,timeOffLimitId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementManagementunitTimeofflimits(e,i){if(i=i||{},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"],i.customHeaders)}getWorkforcemanagementManagementunitTimeoffplan(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling getWorkforcemanagementManagementunitTimeoffplan';if(i==null||i==="")throw'Missing the required parameter "timeOffPlanId" when calling getWorkforcemanagementManagementunitTimeoffplan';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/timeoffplans/{timeOffPlanId}","GET",{managementUnitId:e,timeOffPlanId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementManagementunitTimeoffplans(e,i){if(i=i||{},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"],i.customHeaders)}getWorkforcemanagementManagementunitUserTimeoffrequest(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling getWorkforcemanagementManagementunitUserTimeoffrequest';if(i==null||i==="")throw'Missing the required parameter "userId" when calling getWorkforcemanagementManagementunitUserTimeoffrequest';if(n==null||n==="")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:i,timeOffRequestId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getWorkforcemanagementManagementunitUserTimeoffrequestTimeofflimits(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling getWorkforcemanagementManagementunitUserTimeoffrequestTimeofflimits';if(i==null||i==="")throw'Missing the required parameter "userId" when calling getWorkforcemanagementManagementunitUserTimeoffrequestTimeofflimits';if(n==null||n==="")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:i,timeOffRequestId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getWorkforcemanagementManagementunitUserTimeoffrequests(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling getWorkforcemanagementManagementunitUserTimeoffrequests';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementManagementunitUsers(e,i){if(i=i||{},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"],i.customHeaders)}getWorkforcemanagementManagementunitWeekSchedule(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling getWorkforcemanagementManagementunitWeekSchedule';if(i==null||i==="")throw'Missing the required parameter "weekId" when calling getWorkforcemanagementManagementunitWeekSchedule';if(n==null||n==="")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:i,scheduleId:n},{expand:a.expand,forceDownloadService:a.forceDownloadService},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}getWorkforcemanagementManagementunitWeekSchedules(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling getWorkforcemanagementManagementunitWeekSchedules';if(i==null||i==="")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:i},{includeOnlyPublished:n.includeOnlyPublished,earliestWeekDate:n.earliestWeekDate,latestWeekDate:n.latestWeekDate},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementManagementunitWeekShifttrades(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling getWorkforcemanagementManagementunitWeekShifttrades';if(i==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:i},{evaluateMatches:n.evaluateMatches,includeCrossWeekShifts:n.includeCrossWeekShifts,forceDownloadService:n.forceDownloadService},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementManagementunitWorkplan(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling getWorkforcemanagementManagementunitWorkplan';if(i==null||i==="")throw'Missing the required parameter "workPlanId" when calling getWorkforcemanagementManagementunitWorkplan';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/workplans/{workPlanId}","GET",{managementUnitId:e,workPlanId:i},{includeOnly:this.apiClient.buildCollectionParam(n.includeOnly,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementManagementunitWorkplanrotation(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling getWorkforcemanagementManagementunitWorkplanrotation';if(i==null||i==="")throw'Missing the required parameter "workPlanRotationId" when calling getWorkforcemanagementManagementunitWorkplanrotation';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/workplanrotations/{workPlanRotationId}","GET",{managementUnitId:e,workPlanRotationId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementManagementunitWorkplanrotations(e,i){if(i=i||{},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(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getWorkforcemanagementManagementunitWorkplans(e,i){if(i=i||{},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(i.expand,"multi"),exclude:this.apiClient.buildCollectionParam(i.exclude,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}getWorkforcemanagementManagementunits(e){return e=e||{},this.apiClient.callApi("/api/v2/workforcemanagement/managementunits","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,expand:e.expand,feature:e.feature,divisionId:e.divisionId},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getWorkforcemanagementManagementunitsDivisionviews(e){return e=e||{},this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/divisionviews","GET",{},{divisionId:this.apiClient.buildCollectionParam(e.divisionId,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getWorkforcemanagementNotifications(e){return e=e||{},this.apiClient.callApi("/api/v2/workforcemanagement/notifications","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}getWorkforcemanagementSchedulingjob(e,i){if(i=i||{},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"],i.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,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "tradeId" when calling getWorkforcemanagementShifttradingTradeJob';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementShifttradingTradeMatchJob(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "tradeId" when calling getWorkforcemanagementShifttradingTradeMatchJob';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementShifttradingTradeStateJob(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "tradeId" when calling getWorkforcemanagementShifttradingTradeStateJob';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}getWorkforcemanagementShifttradingTradesJob(e,i){if(i=i||{},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"],i.customHeaders)}getWorkforcemanagementShifttradingTradesMineQueryJob(e,i){if(i=i||{},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"],i.customHeaders)}getWorkforcemanagementShrinkageJob(e,i){if(i=i||{},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"],i.customHeaders)}getWorkforcemanagementTeamAdherence(e,i){if(i=i||{},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"],i.customHeaders)}getWorkforcemanagementTimeoffbalanceJob(e,i){if(i=i||{},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"],i.customHeaders)}getWorkforcemanagementTimeoffrequest(e,i){if(i=i||{},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"],i.customHeaders)}getWorkforcemanagementTimeoffrequestWaitlistpositions(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}getWorkforcemanagementUserWorkplanbidranks(e,i){if(i=i||{},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"],i.customHeaders)}getWorkforcemanagementWorkplanbidPreferences(e,i){if(i=i||{},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"],i.customHeaders)}getWorkforcemanagementWorkplanbidWorkplans(e,i){if(i=i||{},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"],i.customHeaders)}getWorkforcemanagementWorkplanbids(e){return e=e||{},this.apiClient.callApi("/api/v2/workforcemanagement/workplanbids","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}patchWorkforcemanagementAgentAdherenceExplanation(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "agentId" when calling patchWorkforcemanagementAgentAdherenceExplanation';if(i==null||i==="")throw'Missing the required parameter "explanationId" when calling patchWorkforcemanagementAgentAdherenceExplanation';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchWorkforcemanagementAlternativeshiftsTrade(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "tradeId" when calling patchWorkforcemanagementAlternativeshiftsTrade';if(i==null)throw'Missing the required parameter "body" when calling patchWorkforcemanagementAlternativeshiftsTrade';return this.apiClient.callApi("/api/v2/workforcemanagement/alternativeshifts/trades/{tradeId}","PATCH",{tradeId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchWorkforcemanagementAlternativeshiftsTradesStateJobs(e,i){if(i=i||{},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"],i.customHeaders)}patchWorkforcemanagementBusinessunit(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling patchWorkforcemanagementBusinessunit';if(i==null)throw'Missing the required parameter "body" when calling patchWorkforcemanagementBusinessunit';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}","PATCH",{businessUnitId:e},{includeSchedulingDefaultMessageSeverities:n.includeSchedulingDefaultMessageSeverities},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchWorkforcemanagementBusinessunitActivitycode(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling patchWorkforcemanagementBusinessunitActivitycode';if(i==null||i==="")throw'Missing the required parameter "activityCodeId" when calling patchWorkforcemanagementBusinessunitActivitycode';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchWorkforcemanagementBusinessunitActivityplan(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling patchWorkforcemanagementBusinessunitActivityplan';if(i==null||i==="")throw'Missing the required parameter "activityPlanId" when calling patchWorkforcemanagementBusinessunitActivityplan';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchWorkforcemanagementBusinessunitAlternativeshiftsSettings(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling patchWorkforcemanagementBusinessunitAlternativeshiftsSettings';if(i==null)throw'Missing the required parameter "body" when calling patchWorkforcemanagementBusinessunitAlternativeshiftsSettings';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/alternativeshifts/settings","PATCH",{businessUnitId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchWorkforcemanagementBusinessunitCapacityplan(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling patchWorkforcemanagementBusinessunitCapacityplan';if(i==null||i==="")throw'Missing the required parameter "capacityPlanId" when calling patchWorkforcemanagementBusinessunitCapacityplan';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchWorkforcemanagementBusinessunitMinimumstaffingSettings(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling patchWorkforcemanagementBusinessunitMinimumstaffingSettings';if(i==null)throw'Missing the required parameter "body" when calling patchWorkforcemanagementBusinessunitMinimumstaffingSettings';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/minimumstaffing/settings","PATCH",{businessUnitId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchWorkforcemanagementBusinessunitPlanninggroup(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling patchWorkforcemanagementBusinessunitPlanninggroup';if(i==null||i==="")throw'Missing the required parameter "planningGroupId" when calling patchWorkforcemanagementBusinessunitPlanninggroup';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchWorkforcemanagementBusinessunitSchedulerSettings(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling patchWorkforcemanagementBusinessunitSchedulerSettings';if(i==null)throw'Missing the required parameter "body" when calling patchWorkforcemanagementBusinessunitSchedulerSettings';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/scheduler/settings","PATCH",{businessUnitId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchWorkforcemanagementBusinessunitSchedulingRun(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling patchWorkforcemanagementBusinessunitSchedulingRun';if(i==null||i==="")throw'Missing the required parameter "runId" when calling patchWorkforcemanagementBusinessunitSchedulingRun';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchWorkforcemanagementBusinessunitServicegoaltemplate(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling patchWorkforcemanagementBusinessunitServicegoaltemplate';if(i==null||i==="")throw'Missing the required parameter "serviceGoalTemplateId" when calling patchWorkforcemanagementBusinessunitServicegoaltemplate';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchWorkforcemanagementBusinessunitStaffinggroup(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling patchWorkforcemanagementBusinessunitStaffinggroup';if(i==null||i==="")throw'Missing the required parameter "staffingGroupId" when calling patchWorkforcemanagementBusinessunitStaffinggroup';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchWorkforcemanagementBusinessunitTimeoffplan(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling patchWorkforcemanagementBusinessunitTimeoffplan';if(i==null||i==="")throw'Missing the required parameter "timeOffPlanId" when calling patchWorkforcemanagementBusinessunitTimeoffplan';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchWorkforcemanagementBusinessunitWorkplanbid(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling patchWorkforcemanagementBusinessunitWorkplanbid';if(i==null||i==="")throw'Missing the required parameter "bidId" when calling patchWorkforcemanagementBusinessunitWorkplanbid';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchWorkforcemanagementBusinessunitWorkplanbidGroup(e,i,n,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling patchWorkforcemanagementBusinessunitWorkplanbidGroup';if(i==null||i==="")throw'Missing the required parameter "bidId" when calling patchWorkforcemanagementBusinessunitWorkplanbidGroup';if(n==null||n==="")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:i,bidGroupId:n},{},{},{},a,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}patchWorkforcemanagementBusinessunitWorkplanbidGroupPreferences(e,i,n,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling patchWorkforcemanagementBusinessunitWorkplanbidGroupPreferences';if(i==null||i==="")throw'Missing the required parameter "bidId" when calling patchWorkforcemanagementBusinessunitWorkplanbidGroupPreferences';if(n==null||n==="")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:i,bidGroupId:n},{},{},{},a,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}patchWorkforcemanagementManagementunit(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling patchWorkforcemanagementManagementunit';if(i==null)throw'Missing the required parameter "body" when calling patchWorkforcemanagementManagementunit';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}","PATCH",{managementUnitId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchWorkforcemanagementManagementunitAgents(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling patchWorkforcemanagementManagementunitAgents';if(i==null)throw'Missing the required parameter "body" when calling patchWorkforcemanagementManagementunitAgents';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/agents","PATCH",{managementUnitId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchWorkforcemanagementManagementunitAgentsWorkplansBulk(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling patchWorkforcemanagementManagementunitAgentsWorkplansBulk';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchWorkforcemanagementManagementunitTimeofflimit(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling patchWorkforcemanagementManagementunitTimeofflimit';if(i==null||i==="")throw'Missing the required parameter "timeOffLimitId" when calling patchWorkforcemanagementManagementunitTimeofflimit';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchWorkforcemanagementManagementunitTimeoffplan(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling patchWorkforcemanagementManagementunitTimeoffplan';if(i==null||i==="")throw'Missing the required parameter "timeOffPlanId" when calling patchWorkforcemanagementManagementunitTimeoffplan';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchWorkforcemanagementManagementunitTimeoffrequestUserIntegrationstatus(e,i,n,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling patchWorkforcemanagementManagementunitTimeoffrequestUserIntegrationstatus';if(i==null||i==="")throw'Missing the required parameter "timeOffRequestId" when calling patchWorkforcemanagementManagementunitTimeoffrequestUserIntegrationstatus';if(n==null||n==="")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:i,userId:n},{},{},{},a,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}patchWorkforcemanagementManagementunitUnavailabletimesSettings(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling patchWorkforcemanagementManagementunitUnavailabletimesSettings';if(i==null)throw'Missing the required parameter "body" when calling patchWorkforcemanagementManagementunitUnavailabletimesSettings';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/unavailabletimes/settings","PATCH",{managementUnitId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchWorkforcemanagementManagementunitUserTimeoffrequest(e,i,n,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling patchWorkforcemanagementManagementunitUserTimeoffrequest';if(i==null||i==="")throw'Missing the required parameter "userId" when calling patchWorkforcemanagementManagementunitUserTimeoffrequest';if(n==null||n==="")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:i,timeOffRequestId:n},{},{},{},a,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}patchWorkforcemanagementManagementunitWeekShifttrade(e,i,n,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling patchWorkforcemanagementManagementunitWeekShifttrade';if(i==null)throw'Missing the required parameter "weekDateId" when calling patchWorkforcemanagementManagementunitWeekShifttrade';if(n==null||n==="")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:i,tradeId:n},{},{},{},a,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}patchWorkforcemanagementManagementunitWorkplan(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling patchWorkforcemanagementManagementunitWorkplan';if(i==null||i==="")throw'Missing the required parameter "workPlanId" when calling patchWorkforcemanagementManagementunitWorkplan';if(n==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:i},{validationMode:a.validationMode},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchWorkforcemanagementManagementunitWorkplanrotation(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling patchWorkforcemanagementManagementunitWorkplanrotation';if(i==null||i==="")throw'Missing the required parameter "workPlanRotationId" when calling patchWorkforcemanagementManagementunitWorkplanrotation';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}patchWorkforcemanagementTimeoffrequest(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "timeOffRequestId" when calling patchWorkforcemanagementTimeoffrequest';if(i==null)throw'Missing the required parameter "body" when calling patchWorkforcemanagementTimeoffrequest';return this.apiClient.callApi("/api/v2/workforcemanagement/timeoffrequests/{timeOffRequestId}","PATCH",{timeOffRequestId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchWorkforcemanagementUnavailabletimes(e,i){if(i=i||{},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"],i.customHeaders)}patchWorkforcemanagementUserWorkplanbidranks(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "userId" when calling patchWorkforcemanagementUserWorkplanbidranks';if(i==null)throw'Missing the required parameter "body" when calling patchWorkforcemanagementUserWorkplanbidranks';return this.apiClient.callApi("/api/v2/workforcemanagement/users/{userId}/workplanbidranks","PATCH",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}patchWorkforcemanagementUsersWorkplanbidranksBulk(e,i){if(i=i||{},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"],i.customHeaders)}patchWorkforcemanagementWorkplanbidPreferences(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "bidId" when calling patchWorkforcemanagementWorkplanbidPreferences';if(i==null)throw'Missing the required parameter "body" when calling patchWorkforcemanagementWorkplanbidPreferences';return this.apiClient.callApi("/api/v2/workforcemanagement/workplanbids/{bidId}/preferences","PATCH",{bidId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementAdherenceExplanations(e,i){if(i=i||{},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"],i.customHeaders)}postWorkforcemanagementAdherenceExplanationsQuery(e,i){if(i=i||{},e==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementAdherenceExplanationsQuery';return this.apiClient.callApi("/api/v2/workforcemanagement/adherence/explanations/query","POST",{},{forceAsync:i.forceAsync,forceDownloadService:i.forceDownloadService},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postWorkforcemanagementAdherenceHistorical(e){return e=e||{},this.apiClient.callApi("/api/v2/workforcemanagement/adherence/historical","POST",{},{},{},{},e.body,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}postWorkforcemanagementAdherenceHistoricalBulk(e,i){if(i=i||{},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"],i.customHeaders)}postWorkforcemanagementAgentAdherenceExplanations(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "agentId" when calling postWorkforcemanagementAgentAdherenceExplanations';if(i==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementAgentAdherenceExplanations';return this.apiClient.callApi("/api/v2/workforcemanagement/agents/{agentId}/adherence/explanations","POST",{agentId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementAgentAdherenceExplanationsQuery(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "agentId" when calling postWorkforcemanagementAgentAdherenceExplanationsQuery';if(i==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:n.forceAsync,forceDownloadService:n.forceDownloadService},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementAgentUnavailabletimesQuery(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "agentId" when calling postWorkforcemanagementAgentUnavailabletimesQuery';if(i==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementAgentUnavailabletimesQuery';return this.apiClient.callApi("/api/v2/workforcemanagement/agents/{agentId}/unavailabletimes/query","POST",{agentId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementAgents(e,i){if(i=i||{},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"],i.customHeaders)}postWorkforcemanagementAgentsIntegrationsHrisQuery(e,i){if(i=i||{},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"],i.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,i){if(i=i||{},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"],i.customHeaders)}postWorkforcemanagementAgentschedulesManagementunitsMine(e,i){if(i=i||{},e==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementAgentschedulesManagementunitsMine';return this.apiClient.callApi("/api/v2/workforcemanagement/agentschedules/managementunits/mine","POST",{},{forceAsync:i.forceAsync,forceDownloadService:i.forceDownloadService},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postWorkforcemanagementAgentschedulesMine(e,i){if(i=i||{},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"],i.customHeaders)}postWorkforcemanagementAlternativeshiftsOffersJobs(e,i){if(i=i||{},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"],i.customHeaders)}postWorkforcemanagementAlternativeshiftsOffersSearchJobs(e,i){if(i=i||{},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"],i.customHeaders)}postWorkforcemanagementAlternativeshiftsTrades(e,i){if(i=i||{},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"],i.customHeaders)}postWorkforcemanagementBusinessunitActivitycodes(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitActivitycodes';if(i==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunitActivitycodes';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/activitycodes","POST",{businessUnitId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementBusinessunitActivityplanRunsJobs(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitActivityplanRunsJobs';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementBusinessunitActivityplans(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitActivityplans';if(i==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunitActivityplans';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/activityplans","POST",{businessUnitId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementBusinessunitAdherenceExplanationsQuery(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitAdherenceExplanationsQuery';if(i==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:n.forceAsync,forceDownloadService:n.forceDownloadService},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementBusinessunitAgentschedulesSearch(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitAgentschedulesSearch';if(i==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:n.forceAsync,forceDownloadService:n.forceDownloadService},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementBusinessunitAlternativeshiftsTradesSearch(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitAlternativeshiftsTradesSearch';if(i==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:n.forceAsync},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementBusinessunitCapacityplanCopy(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitCapacityplanCopy';if(i==null||i==="")throw'Missing the required parameter "capacityPlanId" when calling postWorkforcemanagementBusinessunitCapacityplanCopy';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postWorkforcemanagementBusinessunitCapacityplanRequirementGenerate(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitCapacityplanRequirementGenerate';if(i==null||i==="")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:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementBusinessunitCapacityplanStaffinggroupallocations(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitCapacityplanStaffinggroupallocations';if(i==null||i==="")throw'Missing the required parameter "capacityPlanId" when calling postWorkforcemanagementBusinessunitCapacityplanStaffinggroupallocations';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postWorkforcemanagementBusinessunitCapacityplanStaffinggroupallocationshistoryQuery(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitCapacityplanStaffinggroupallocationshistoryQuery';if(i==null||i==="")throw'Missing the required parameter "capacityPlanId" when calling postWorkforcemanagementBusinessunitCapacityplanStaffinggroupallocationshistoryQuery';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postWorkforcemanagementBusinessunitCapacityplanningLongtermrequirementsAutomaticbestmethodWeekForecastForceregenerate(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitCapacityplanningLongtermrequirementsAutomaticbestmethodWeekForecastForceregenerate';if(i==null)throw'Missing the required parameter "weekDateId" when calling postWorkforcemanagementBusinessunitCapacityplanningLongtermrequirementsAutomaticbestmethodWeekForecastForceregenerate';if(n==null||n==="")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:i,forecastId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postWorkforcemanagementBusinessunitCapacityplans(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitCapacityplans';if(i==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunitCapacityplans';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/capacityplans","POST",{businessUnitId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementBusinessunitCapacityplansBulkRemove(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitCapacityplansBulkRemove';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementBusinessunitIntraday(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitIntraday';if(i==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunitIntraday';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/intraday","POST",{businessUnitId:e},{forceAsync:n.forceAsync},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementBusinessunitPlanninggroups(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitPlanninggroups';if(i==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunitPlanninggroups';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/planninggroups","POST",{businessUnitId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementBusinessunitServicegoaltemplates(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitServicegoaltemplates';if(i==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunitServicegoaltemplates';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/servicegoaltemplates","POST",{businessUnitId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementBusinessunitShifttradingTradesEvaluateJobs(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitShifttradingTradesEvaluateJobs';if(i==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:n.forceAsync,forceDownloadService:n.forceDownloadService},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementBusinessunitShifttradingTradesQueryJobs(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitShifttradingTradesQueryJobs';if(i==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:n.forceAsync,forceDownloadService:n.forceDownloadService},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementBusinessunitShifttradingTradesStateBulkJobs(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitShifttradingTradesStateBulkJobs';if(i==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:n.forceAsync,forceDownloadService:n.forceDownloadService},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementBusinessunitShifttradingUnmatchedSearchJobs(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitShifttradingUnmatchedSearchJobs';if(i==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:n.forceAsync,forceDownloadService:n.forceDownloadService},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementBusinessunitShifttradingWeeksSummaryJobs(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitShifttradingWeeksSummaryJobs';if(i==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:n.forceAsync},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementBusinessunitStaffinggroups(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitStaffinggroups';if(i==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunitStaffinggroups';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/staffinggroups","POST",{businessUnitId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementBusinessunitStaffinggroupsPlanninggroupsQuery(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitStaffinggroupsPlanninggroupsQuery';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementBusinessunitStaffinggroupsQuery(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitStaffinggroupsQuery';if(i==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:n.forceDownloadService},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementBusinessunitTimeofflimits(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitTimeofflimits';if(i==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunitTimeofflimits';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/timeofflimits","POST",{businessUnitId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementBusinessunitTimeofflimitsValuesQuery(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitTimeofflimitsValuesQuery';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementBusinessunitTimeoffplans(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitTimeoffplans';if(i==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunitTimeoffplans';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/timeoffplans","POST",{businessUnitId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementBusinessunitUnavailabletimesSchedulesQuery(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitUnavailabletimesSchedulesQuery';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementBusinessunitUnavailabletimesSettingsQuery(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitUnavailabletimesSettingsQuery';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementBusinessunitWeekScheduleAgentschedulesQuery(e,i,n,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitWeekScheduleAgentschedulesQuery';if(i==null)throw'Missing the required parameter "weekId" when calling postWorkforcemanagementBusinessunitWeekScheduleAgentschedulesQuery';if(n==null||n==="")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:i,scheduleId:n},{forceAsync:r.forceAsync,forceDownloadService:r.forceDownloadService},{},{},a,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}postWorkforcemanagementBusinessunitWeekScheduleCopy(e,i,n,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitWeekScheduleCopy';if(i==null)throw'Missing the required parameter "weekId" when calling postWorkforcemanagementBusinessunitWeekScheduleCopy';if(n==null||n==="")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:i,scheduleId:n},{},{},{},a,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}postWorkforcemanagementBusinessunitWeekSchedulePerformancepredictionsRecalculations(e,i,n,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitWeekSchedulePerformancepredictionsRecalculations';if(i==null||i==="")throw'Missing the required parameter "weekId" when calling postWorkforcemanagementBusinessunitWeekSchedulePerformancepredictionsRecalculations';if(n==null||n==="")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:i,scheduleId:n},{},{},{},a,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}postWorkforcemanagementBusinessunitWeekSchedulePerformancepredictionsRecalculationsUploadurl(e,i,n,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitWeekSchedulePerformancepredictionsRecalculationsUploadurl';if(i==null||i==="")throw'Missing the required parameter "weekId" when calling postWorkforcemanagementBusinessunitWeekSchedulePerformancepredictionsRecalculationsUploadurl';if(n==null||n==="")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:i,scheduleId:n},{},{},{},a,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}postWorkforcemanagementBusinessunitWeekScheduleReschedule(e,i,n,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitWeekScheduleReschedule';if(i==null)throw'Missing the required parameter "weekId" when calling postWorkforcemanagementBusinessunitWeekScheduleReschedule';if(n==null||n==="")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:i,scheduleId:n},{},{},{},a,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}postWorkforcemanagementBusinessunitWeekScheduleUpdate(e,i,n,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitWeekScheduleUpdate';if(i==null)throw'Missing the required parameter "weekId" when calling postWorkforcemanagementBusinessunitWeekScheduleUpdate';if(n==null||n==="")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:i,scheduleId:n},{},{},{},a,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}postWorkforcemanagementBusinessunitWeekScheduleUpdateUploadurl(e,i,n,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitWeekScheduleUpdateUploadurl';if(i==null)throw'Missing the required parameter "weekId" when calling postWorkforcemanagementBusinessunitWeekScheduleUpdateUploadurl';if(n==null||n==="")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:i,scheduleId:n},{},{},{},a,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}postWorkforcemanagementBusinessunitWeekSchedules(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitWeekSchedules';if(i==null)throw'Missing the required parameter "weekId" when calling postWorkforcemanagementBusinessunitWeekSchedules';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postWorkforcemanagementBusinessunitWeekSchedulesGenerate(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitWeekSchedulesGenerate';if(i==null)throw'Missing the required parameter "weekId" when calling postWorkforcemanagementBusinessunitWeekSchedulesGenerate';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postWorkforcemanagementBusinessunitWeekSchedulesImport(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitWeekSchedulesImport';if(i==null)throw'Missing the required parameter "weekId" when calling postWorkforcemanagementBusinessunitWeekSchedulesImport';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postWorkforcemanagementBusinessunitWeekSchedulesImportUploadurl(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitWeekSchedulesImportUploadurl';if(i==null)throw'Missing the required parameter "weekId" when calling postWorkforcemanagementBusinessunitWeekSchedulesImportUploadurl';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postWorkforcemanagementBusinessunitWeekShorttermforecastCopy(e,i,n,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitWeekShorttermforecastCopy';if(i==null)throw'Missing the required parameter "weekDateId" when calling postWorkforcemanagementBusinessunitWeekShorttermforecastCopy';if(n==null||n==="")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:i,forecastId:n},{forceAsync:r.forceAsync},{},{},a,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}postWorkforcemanagementBusinessunitWeekShorttermforecastsGenerate(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitWeekShorttermforecastsGenerate';if(i==null)throw'Missing the required parameter "weekDateId" when calling postWorkforcemanagementBusinessunitWeekShorttermforecastsGenerate';if(n==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:i},{forceAsync:a.forceAsync},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postWorkforcemanagementBusinessunitWeekShorttermforecastsImport(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitWeekShorttermforecastsImport';if(i==null)throw'Missing the required parameter "weekDateId" when calling postWorkforcemanagementBusinessunitWeekShorttermforecastsImport';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postWorkforcemanagementBusinessunitWeekShorttermforecastsImportUploadurl(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitWeekShorttermforecastsImportUploadurl';if(i==null)throw'Missing the required parameter "weekDateId" when calling postWorkforcemanagementBusinessunitWeekShorttermforecastsImportUploadurl';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postWorkforcemanagementBusinessunitWorkplanbidCopy(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitWorkplanbidCopy';if(i==null||i==="")throw'Missing the required parameter "bidId" when calling postWorkforcemanagementBusinessunitWorkplanbidCopy';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postWorkforcemanagementBusinessunitWorkplanbidGroups(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitWorkplanbidGroups';if(i==null||i==="")throw'Missing the required parameter "bidId" when calling postWorkforcemanagementBusinessunitWorkplanbidGroups';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postWorkforcemanagementBusinessunitWorkplanbids(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitWorkplanbids';if(i==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunitWorkplanbids';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/workplanbids","POST",{businessUnitId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementBusinessunits(e,i){if(i=i||{},e==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunits';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits","POST",{},{includeSchedulingDefaultMessageSeverities:i.includeSchedulingDefaultMessageSeverities},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.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,i){if(i=i||{},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"],i.customHeaders)}postWorkforcemanagementHistoricaldataValidate(e,i){if(i=i||{},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"],i.customHeaders)}postWorkforcemanagementIntegrationsHriTimeofftypesJobs(e,i){if(i=i||{},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"],i.customHeaders)}postWorkforcemanagementManagementunitAgentsWorkplansQuery(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitAgentsWorkplansQuery';if(i==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:n.forceDownloadService},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementManagementunitAgentschedulesSearch(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitAgentschedulesSearch';if(i==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:n.forceAsync,forceDownloadService:n.forceDownloadService},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementManagementunitHistoricaladherencequery(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitHistoricaladherencequery';if(i==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementManagementunitHistoricaladherencequery';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/historicaladherencequery","POST",{managementUnitId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementManagementunitMove(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitMove';if(i==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementManagementunitMove';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/move","POST",{managementUnitId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementManagementunitSchedulesSearch(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitSchedulesSearch';if(i==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementManagementunitSchedulesSearch';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/schedules/search","POST",{managementUnitId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementManagementunitShrinkageJobs(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitShrinkageJobs';if(i==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementManagementunitShrinkageJobs';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/shrinkage/jobs","POST",{managementUnitId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementManagementunitTimeofflimits(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitTimeofflimits';if(i==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementManagementunitTimeofflimits';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/timeofflimits","POST",{managementUnitId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementManagementunitTimeofflimitsValuesQuery(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitTimeofflimitsValuesQuery';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementManagementunitTimeoffplans(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitTimeoffplans';if(i==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementManagementunitTimeoffplans';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/timeoffplans","POST",{managementUnitId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementManagementunitTimeoffrequests(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitTimeoffrequests';if(i==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementManagementunitTimeoffrequests';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/timeoffrequests","POST",{managementUnitId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementManagementunitTimeoffrequestsIntegrationstatusQuery(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitTimeoffrequestsIntegrationstatusQuery';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementManagementunitTimeoffrequestsQuery(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitTimeoffrequestsQuery';if(i==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:n.forceDownloadService},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementManagementunitTimeoffrequestsWaitlistpositionsQuery(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitTimeoffrequestsWaitlistpositionsQuery';if(i==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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementManagementunitUserTimeoffbalanceJobs(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitUserTimeoffbalanceJobs';if(i==null||i==="")throw'Missing the required parameter "userId" when calling postWorkforcemanagementManagementunitUserTimeoffbalanceJobs';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postWorkforcemanagementManagementunitUserTimeoffrequestTimeoffbalanceJobs(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitUserTimeoffrequestTimeoffbalanceJobs';if(i==null||i==="")throw'Missing the required parameter "userId" when calling postWorkforcemanagementManagementunitUserTimeoffrequestTimeoffbalanceJobs';if(n==null||n==="")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:i,timeOffRequestId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postWorkforcemanagementManagementunitUserTimeoffrequestsEstimate(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitUserTimeoffrequestsEstimate';if(i==null||i==="")throw'Missing the required parameter "userId" when calling postWorkforcemanagementManagementunitUserTimeoffrequestsEstimate';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postWorkforcemanagementManagementunitWeekShifttradeMatch(e,i,n,a,r){if(r=r||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitWeekShifttradeMatch';if(i==null)throw'Missing the required parameter "weekDateId" when calling postWorkforcemanagementManagementunitWeekShifttradeMatch';if(n==null||n==="")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:i,tradeId:n},{},{},{},a,["PureCloud OAuth"],["application/json"],["application/json"],r.customHeaders)}postWorkforcemanagementManagementunitWeekShifttrades(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitWeekShifttrades';if(i==null)throw'Missing the required parameter "weekDateId" when calling postWorkforcemanagementManagementunitWeekShifttrades';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postWorkforcemanagementManagementunitWeekShifttradesSearch(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitWeekShifttradesSearch';if(i==null)throw'Missing the required parameter "weekDateId" when calling postWorkforcemanagementManagementunitWeekShifttradesSearch';if(n==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:i},{forceDownloadService:a.forceDownloadService},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postWorkforcemanagementManagementunitWeekShifttradesStateBulk(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitWeekShifttradesStateBulk';if(i==null)throw'Missing the required parameter "weekDateId" when calling postWorkforcemanagementManagementunitWeekShifttradesStateBulk';if(n==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:i},{forceAsync:a.forceAsync},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postWorkforcemanagementManagementunitWorkplanCopy(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitWorkplanCopy';if(i==null||i==="")throw'Missing the required parameter "workPlanId" when calling postWorkforcemanagementManagementunitWorkplanCopy';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postWorkforcemanagementManagementunitWorkplanValidate(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitWorkplanValidate';if(i==null||i==="")throw'Missing the required parameter "workPlanId" when calling postWorkforcemanagementManagementunitWorkplanValidate';if(n==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:i},{expand:this.apiClient.buildCollectionParam(a.expand,"multi")},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postWorkforcemanagementManagementunitWorkplanrotationCopy(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitWorkplanrotationCopy';if(i==null||i==="")throw'Missing the required parameter "workPlanRotationId" when calling postWorkforcemanagementManagementunitWorkplanrotationCopy';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}postWorkforcemanagementManagementunitWorkplanrotations(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitWorkplanrotations';if(i==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementManagementunitWorkplanrotations';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/workplanrotations","POST",{managementUnitId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementManagementunitWorkplans(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitWorkplans';if(i==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementManagementunitWorkplans';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/workplans","POST",{managementUnitId:e},{validationMode:n.validationMode},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementManagementunits(e,i){if(i=i||{},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"],i.customHeaders)}postWorkforcemanagementNotificationsUpdate(e,i){if(i=i||{},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"],i.customHeaders)}postWorkforcemanagementSchedules(e){return e=e||{},this.apiClient.callApi("/api/v2/workforcemanagement/schedules","POST",{},{},{},{},e.body,["PureCloud OAuth"],["application/json"],["application/json"],e.customHeaders)}postWorkforcemanagementShifttradingTradeJobs(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "tradeId" when calling postWorkforcemanagementShifttradingTradeJobs';if(i==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:n.forceAsync},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementShifttradingTradeMatchJobs(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "tradeId" when calling postWorkforcemanagementShifttradingTradeMatchJobs';if(i==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:n.forceAsync},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementShifttradingTradeStateJobs(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "tradeId" when calling postWorkforcemanagementShifttradingTradeStateJobs';if(i==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:n.forceAsync},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementShifttradingTradesJobs(e,i){if(i=i||{},e==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementShifttradingTradesJobs';return this.apiClient.callApi("/api/v2/workforcemanagement/shifttrading/trades/jobs","POST",{},{forceAsync:i.forceAsync},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postWorkforcemanagementShifttradingTradesMineQueryJobs(e,i){if(i=i||{},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:i.forceAsync,forceDownloadService:i.forceDownloadService},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postWorkforcemanagementTeamAdherenceHistorical(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "teamId" when calling postWorkforcemanagementTeamAdherenceHistorical';if(i==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementTeamAdherenceHistorical';return this.apiClient.callApi("/api/v2/workforcemanagement/teams/{teamId}/adherence/historical","POST",{teamId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementTeamShrinkageJobs(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "teamId" when calling postWorkforcemanagementTeamShrinkageJobs';if(i==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementTeamShrinkageJobs';return this.apiClient.callApi("/api/v2/workforcemanagement/teams/{teamId}/shrinkage/jobs","POST",{teamId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}postWorkforcemanagementTimeoffbalanceJobs(e,i){if(i=i||{},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"],i.customHeaders)}postWorkforcemanagementTimeofflimitsAvailableQuery(e,i){if(i=i||{},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"],i.customHeaders)}postWorkforcemanagementTimeoffrequests(e,i){if(i=i||{},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"],i.customHeaders)}postWorkforcemanagementTimeoffrequestsEstimate(e,i){if(i=i||{},e==null)throw'Missing the required parameter "body" when calling postWorkforcemanagementTimeoffrequestsEstimate';return this.apiClient.callApi("/api/v2/workforcemanagement/timeoffrequests/estimate","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"],i.customHeaders)}postWorkforcemanagementTimeoffrequestsIntegrationstatusQuery(e,i){if(i=i||{},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"],i.customHeaders)}postWorkforcemanagementUnavailabletimesQuery(e,i){if(i=i||{},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"],i.customHeaders)}postWorkforcemanagementUnavailabletimesValidationJobs(e,i){if(i=i||{},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"],i.customHeaders)}putWorkforcemanagementAgentIntegrationsHris(e,i,n){if(n=n||{},e==null||e==="")throw'Missing the required parameter "agentId" when calling putWorkforcemanagementAgentIntegrationsHris';if(i==null)throw'Missing the required parameter "body" when calling putWorkforcemanagementAgentIntegrationsHris';return this.apiClient.callApi("/api/v2/workforcemanagement/agents/{agentId}/integrations/hris","PUT",{agentId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"],n.customHeaders)}putWorkforcemanagementBusinessunitTimeofflimitValues(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "businessUnitId" when calling putWorkforcemanagementBusinessunitTimeofflimitValues';if(i==null||i==="")throw'Missing the required parameter "timeOffLimitId" when calling putWorkforcemanagementBusinessunitTimeofflimitValues';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}putWorkforcemanagementManagementunitTimeofflimitValues(e,i,n,a){if(a=a||{},e==null||e==="")throw'Missing the required parameter "managementUnitId" when calling putWorkforcemanagementManagementunitTimeofflimitValues';if(i==null||i==="")throw'Missing the required parameter "timeOffLimitId" when calling putWorkforcemanagementManagementunitTimeofflimitValues';if(n==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:i},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"],a.customHeaders)}},ay=class{constructor(){this.ApiClient=new q,this.ApiClientClass=q,this.AIStudioApi=OA,this.AgentAssistantsApi=xA,this.AgentCopilotApi=TA,this.AgentUIApi=MA,this.AlertingApi=EA,this.AnalyticsApi=kA,this.ArchitectApi=qA,this.AssistantCopilotVariationsApi=_A,this.AuditApi=HA,this.AuthorizationApi=RA,this.BackgroundAssistantApi=IA,this.BillingApi=zA,this.BusinessRulesApi=DA,this.CarrierServicesApi=GA,this.CaseManagementApi=$A,this.ChatApi=NA,this.CoachingApi=UA,this.ContentManagementApi=LA,this.ConversationsApi=WA,this.DataExtensionsApi=BA,this.DataPrivacyApi=FA,this.DownloadsApi=VA,this.EmailsApi=JA,this.EmployeeEngagementApi=ZA,this.EventsApi=KA,this.ExternalContactsApi=QA,this.FaxApi=YA,this.FlowsApi=XA,this.GamificationApi=eb,this.GeneralDataProtectionRegulationApi=ib,this.GeolocationApi=nb,this.GreetingsApi=tb,this.GroupsApi=ab,this.IdentityProviderApi=rb,this.InfrastructureAsCodeApi=sb,this.IntegrationsApi=ob,this.IntentsApi=lb,this.JourneyApi=ub,this.KnowledgeApi=cb,this.LanguageUnderstandingApi=pb,this.LanguagesApi=db,this.LearningApi=hb,this.LicenseApi=gb,this.LocationsApi=mb,this.LogCaptureApi=fb,this.MessagingApi=wb,this.MobileDevicesApi=vb,this.NotificationsApi=Cb,this.OAuthApi=Ab,this.ObjectsApi=bb,this.OperationalEventsApi=yb,this.OrganizationApi=Pb,this.OrganizationAuthorizationApi=jb,this.OutboundApi=Sb,this.PresenceApi=Ob,this.ProcessAutomationApi=xb,this.QualityApi=Tb,this.RecordingApi=Mb,this.ResponseManagementApi=Eb,this.RoutingApi=kb,this.SCIMApi=qb,this.ScriptsApi=_b,this.SearchApi=Hb,this.SettingsApi=Rb,this.SocialMediaApi=Ib,this.SpeechTextAnalyticsApi=zb,this.StationsApi=Db,this.SuggestApi=Gb,this.TaskManagementApi=$b,this.TeamsApi=Nb,this.TelephonyApi=Ub,this.TelephonyProvidersEdgeApi=Lb,this.TextbotsApi=Wb,this.TokensApi=Bb,this.UploadsApi=Fb,this.UsageApi=Vb,this.UserRecordingsApi=Jb,this.UsersApi=Zb,this.UsersRulesApi=Kb,this.UtilitiesApi=Qb,this.VoicemailApi=Yb,this.WebChatApi=Xb,this.WebDeploymentsApi=ey,this.WebMessagingApi=iy,this.WidgetsApi=ny,this.WorkforceManagementApi=ty,this.PureCloudRegionHosts=YY,this.AbstractHttpClient=El,this.DefaultHttpClient=pd,this.HttpRequestOptions=Zt}},eX=new ay;rI.exports=eX});var sn={};gd(sn,{BRAND:()=>VI,DIRTY:()=>Kt,EMPTY_PATH:()=>SI,INVALID:()=>K,NEVER:()=>Ez,OK:()=>xi,ParseStatus:()=>Ci,Schema:()=>ae,ZodAny:()=>wt,ZodArray:()=>et,ZodBigInt:()=>Yt,ZodBoolean:()=>Xt,ZodBranded:()=>fs,ZodCatch:()=>ca,ZodDate:()=>ea,ZodDefault:()=>ua,ZodDiscriminatedUnion:()=>_l,ZodEffects:()=>rn,ZodEnum:()=>oa,ZodError:()=>zi,ZodFirstPartyTypeKind:()=>E,ZodFunction:()=>Rl,ZodIntersection:()=>aa,ZodIssueCode:()=>M,ZodLazy:()=>ra,ZodLiteral:()=>sa,ZodMap:()=>sr,ZodNaN:()=>lr,ZodNativeEnum:()=>la,ZodNever:()=>Cn,ZodNull:()=>na,ZodNullable:()=>Hn,ZodNumber:()=>Qt,ZodObject:()=>Di,ZodOptional:()=>tn,ZodParsedType:()=>z,ZodPipeline:()=>ws,ZodPromise:()=>vt,ZodReadonly:()=>pa,ZodRecord:()=>Hl,ZodSchema:()=>ae,ZodSet:()=>or,ZodString:()=>ft,ZodSymbol:()=>ar,ZodTransformer:()=>rn,ZodTuple:()=>_n,ZodType:()=>ae,ZodUndefined:()=>ia,ZodUnion:()=>ta,ZodUnknown:()=>Xn,ZodVoid:()=>rr,addIssueToContext:()=>_,any:()=>nz,array:()=>sz,bigint:()=>QI,boolean:()=>Cy,coerce:()=>Mz,custom:()=>fy,date:()=>YI,datetimeRegex:()=>gy,defaultErrorMap:()=>Qn,discriminatedUnion:()=>uz,effect:()=>bz,enum:()=>vz,function:()=>mz,getErrorMap:()=>ir,getParsedType:()=>qn,instanceof:()=>ZI,intersection:()=>cz,isAborted:()=>kl,isAsync:()=>nr,isDirty:()=>ql,isValid:()=>mt,late:()=>JI,lazy:()=>fz,literal:()=>wz,makeIssue:()=>ms,map:()=>hz,nan:()=>KI,nativeEnum:()=>Cz,never:()=>az,null:()=>iz,nullable:()=>Pz,number:()=>vy,object:()=>vd,objectUtil:()=>md,oboolean:()=>Tz,onumber:()=>xz,optional:()=>yz,ostring:()=>Oz,pipeline:()=>Sz,preprocess:()=>jz,promise:()=>Az,quotelessJson:()=>yI,record:()=>dz,set:()=>gz,setErrorMap:()=>jI,strictObject:()=>oz,string:()=>wy,symbol:()=>XI,transformer:()=>bz,tuple:()=>pz,undefined:()=>ez,union:()=>lz,unknown:()=>tz,util:()=>ce,void:()=>rz});var ce;(function(t){t.assertEqual=a=>{};function e(a){}t.assertIs=e;function i(a){throw new Error}t.assertNever=i,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 n(a,r=" | "){return a.map(s=>typeof s=="string"?`'${s}'`:s).join(r)}t.joinValues=n,t.jsonStringifyReplacer=(a,r)=>typeof r=="bigint"?r.toString():r})(ce||(ce={}));var md;(function(t){t.mergeShapes=(e,i)=>({...e,...i})})(md||(md={}));var z=ce.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),qn=t=>{switch(typeof t){case"undefined":return z.undefined;case"string":return z.string;case"number":return Number.isNaN(t)?z.nan:z.number;case"boolean":return z.boolean;case"function":return z.function;case"bigint":return z.bigint;case"symbol":return z.symbol;case"object":return Array.isArray(t)?z.array:t===null?z.null:t.then&&typeof t.then=="function"&&t.catch&&typeof t.catch=="function"?z.promise:typeof Map<"u"&&t instanceof Map?z.map:typeof Set<"u"&&t instanceof Set?z.set:typeof Date<"u"&&t instanceof Date?z.date:z.object;default:return z.unknown}};var M=ce.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]),yI=t=>JSON.stringify(t,null,2).replace(/"([^"]+)":/g,"$1:"),zi=class t extends Error{get errors(){return this.issues}constructor(e){super(),this.issues=[],this.addIssue=n=>{this.issues=[...this.issues,n]},this.addIssues=(n=[])=>{this.issues=[...this.issues,...n]};let i=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,i):this.__proto__=i,this.name="ZodError",this.issues=e}format(e){let i=e||function(r){return r.message},n={_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)n._errors.push(i(s));else{let o=n,l=0;for(;li.message){let i=Object.create(null),n=[];for(let a of this.issues)if(a.path.length>0){let r=a.path[0];i[r]=i[r]||[],i[r].push(e(a))}else n.push(e(a));return{formErrors:n,fieldErrors:i}}get formErrors(){return this.flatten()}};zi.create=t=>new zi(t);var PI=(t,e)=>{let i;switch(t.code){case M.invalid_type:t.received===z.undefined?i="Required":i=`Expected ${t.expected}, received ${t.received}`;break;case M.invalid_literal:i=`Invalid literal value, expected ${JSON.stringify(t.expected,ce.jsonStringifyReplacer)}`;break;case M.unrecognized_keys:i=`Unrecognized key(s) in object: ${ce.joinValues(t.keys,", ")}`;break;case M.invalid_union:i="Invalid input";break;case M.invalid_union_discriminator:i=`Invalid discriminator value. Expected ${ce.joinValues(t.options)}`;break;case M.invalid_enum_value:i=`Invalid enum value. Expected ${ce.joinValues(t.options)}, received '${t.received}'`;break;case M.invalid_arguments:i="Invalid function arguments";break;case M.invalid_return_type:i="Invalid function return type";break;case M.invalid_date:i="Invalid date";break;case M.invalid_string:typeof t.validation=="object"?"includes"in t.validation?(i=`Invalid input: must include "${t.validation.includes}"`,typeof t.validation.position=="number"&&(i=`${i} at one or more positions greater than or equal to ${t.validation.position}`)):"startsWith"in t.validation?i=`Invalid input: must start with "${t.validation.startsWith}"`:"endsWith"in t.validation?i=`Invalid input: must end with "${t.validation.endsWith}"`:ce.assertNever(t.validation):t.validation!=="regex"?i=`Invalid ${t.validation}`:i="Invalid";break;case M.too_small:t.type==="array"?i=`Array must contain ${t.exact?"exactly":t.inclusive?"at least":"more than"} ${t.minimum} element(s)`:t.type==="string"?i=`String must contain ${t.exact?"exactly":t.inclusive?"at least":"over"} ${t.minimum} character(s)`:t.type==="number"?i=`Number must be ${t.exact?"exactly equal to ":t.inclusive?"greater than or equal to ":"greater than "}${t.minimum}`:t.type==="bigint"?i=`Number must be ${t.exact?"exactly equal to ":t.inclusive?"greater than or equal to ":"greater than "}${t.minimum}`:t.type==="date"?i=`Date must be ${t.exact?"exactly equal to ":t.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(t.minimum))}`:i="Invalid input";break;case M.too_big:t.type==="array"?i=`Array must contain ${t.exact?"exactly":t.inclusive?"at most":"less than"} ${t.maximum} element(s)`:t.type==="string"?i=`String must contain ${t.exact?"exactly":t.inclusive?"at most":"under"} ${t.maximum} character(s)`:t.type==="number"?i=`Number must be ${t.exact?"exactly":t.inclusive?"less than or equal to":"less than"} ${t.maximum}`:t.type==="bigint"?i=`BigInt must be ${t.exact?"exactly":t.inclusive?"less than or equal to":"less than"} ${t.maximum}`:t.type==="date"?i=`Date must be ${t.exact?"exactly":t.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(t.maximum))}`:i="Invalid input";break;case M.custom:i="Invalid input";break;case M.invalid_intersection_types:i="Intersection results could not be merged";break;case M.not_multiple_of:i=`Number must be a multiple of ${t.multipleOf}`;break;case M.not_finite:i="Number must be finite";break;default:i=e.defaultError,ce.assertNever(t)}return{message:i}},Qn=PI;var uy=Qn;function jI(t){uy=t}function ir(){return uy}var ms=t=>{let{data:e,path:i,errorMaps:n,issueData:a}=t,r=[...i,...a.path||[]],s={...a,path:r};if(a.message!==void 0)return{...a,path:r,message:a.message};let o="",l=n.filter(u=>!!u).slice().reverse();for(let u of l)o=u(s,{data:e,defaultError:o}).message;return{...a,path:r,message:o}},SI=[];function _(t,e){let i=ir(),n=ms({issueData:e,data:t.data,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,i,i===Qn?void 0:Qn].filter(a=>!!a)});t.common.issues.push(n)}var Ci=class t{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(e,i){let n=[];for(let a of i){if(a.status==="aborted")return K;a.status==="dirty"&&e.dirty(),n.push(a.value)}return{status:e.value,value:n}}static async mergeObjectAsync(e,i){let n=[];for(let a of i){let r=await a.key,s=await a.value;n.push({key:r,value:s})}return t.mergeObjectSync(e,n)}static mergeObjectSync(e,i){let n={};for(let a of i){let{key:r,value:s}=a;if(r.status==="aborted"||s.status==="aborted")return K;r.status==="dirty"&&e.dirty(),s.status==="dirty"&&e.dirty(),r.value!=="__proto__"&&(typeof s.value<"u"||a.alwaysSet)&&(n[r.value]=s.value)}return{status:e.value,value:n}}},K=Object.freeze({status:"aborted"}),Kt=t=>({status:"dirty",value:t}),xi=t=>({status:"valid",value:t}),kl=t=>t.status==="aborted",ql=t=>t.status==="dirty",mt=t=>t.status==="valid",nr=t=>typeof Promise<"u"&&t instanceof Promise;var U;(function(t){t.errToObj=e=>typeof e=="string"?{message:e}:e||{},t.toString=e=>typeof e=="string"?e:e?.message})(U||(U={}));var an=class{constructor(e,i,n,a){this._cachedPath=[],this.parent=e,this.data=i,this._path=n,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}},cy=(t,e)=>{if(mt(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 i=new zi(t.common.issues);return this._error=i,this._error}}};function ne(t){if(!t)return{};let{errorMap:e,invalid_type_error:i,required_error:n,description:a}=t;if(e&&(i||n))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??n??o.defaultError}:s.code!=="invalid_type"?{message:o.defaultError}:{message:l??i??o.defaultError}},description:a}}var ae=class{get description(){return this._def.description}_getType(e){return qn(e.data)}_getOrReturnCtx(e,i){return i||{common:e.parent.common,data:e.data,parsedType:qn(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new Ci,ctx:{common:e.parent.common,data:e.data,parsedType:qn(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){let i=this._parse(e);if(nr(i))throw new Error("Synchronous parse encountered promise.");return i}_parseAsync(e){let i=this._parse(e);return Promise.resolve(i)}parse(e,i){let n=this.safeParse(e,i);if(n.success)return n.data;throw n.error}safeParse(e,i){let n={common:{issues:[],async:i?.async??!1,contextualErrorMap:i?.errorMap},path:i?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:qn(e)},a=this._parseSync({data:e,path:n.path,parent:n});return cy(n,a)}"~validate"(e){let i={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:qn(e)};if(!this["~standard"].async)try{let n=this._parseSync({data:e,path:[],parent:i});return mt(n)?{value:n.value}:{issues:i.common.issues}}catch(n){n?.message?.toLowerCase()?.includes("encountered")&&(this["~standard"].async=!0),i.common={issues:[],async:!0}}return this._parseAsync({data:e,path:[],parent:i}).then(n=>mt(n)?{value:n.value}:{issues:i.common.issues})}async parseAsync(e,i){let n=await this.safeParseAsync(e,i);if(n.success)return n.data;throw n.error}async safeParseAsync(e,i){let n={common:{issues:[],contextualErrorMap:i?.errorMap,async:!0},path:i?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:qn(e)},a=this._parse({data:e,path:n.path,parent:n}),r=await(nr(a)?a:Promise.resolve(a));return cy(n,r)}refine(e,i){let n=a=>typeof i=="string"||typeof i>"u"?{message:i}:typeof i=="function"?i(a):i;return this._refinement((a,r)=>{let s=e(a),o=()=>r.addIssue({code:M.custom,...n(a)});return typeof Promise<"u"&&s instanceof Promise?s.then(l=>l?!0:(o(),!1)):s?!0:(o(),!1)})}refinement(e,i){return this._refinement((n,a)=>e(n)?!0:(a.addIssue(typeof i=="function"?i(n,a):i),!1))}_refinement(e){return new rn({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:i=>this["~validate"](i)}}optional(){return tn.create(this,this._def)}nullable(){return Hn.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return et.create(this)}promise(){return vt.create(this,this._def)}or(e){return ta.create([this,e],this._def)}and(e){return aa.create(this,e,this._def)}transform(e){return new rn({...ne(this._def),schema:this,typeName:E.ZodEffects,effect:{type:"transform",transform:e}})}default(e){let i=typeof e=="function"?e:()=>e;return new ua({...ne(this._def),innerType:this,defaultValue:i,typeName:E.ZodDefault})}brand(){return new fs({typeName:E.ZodBranded,type:this,...ne(this._def)})}catch(e){let i=typeof e=="function"?e:()=>e;return new ca({...ne(this._def),innerType:this,catchValue:i,typeName:E.ZodCatch})}describe(e){let i=this.constructor;return new i({...this._def,description:e})}pipe(e){return ws.create(this,e)}readonly(){return pa.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}},OI=/^c[^\s-]{8,}$/i,xI=/^[0-9a-z]+$/,TI=/^[0-9A-HJKMNP-TV-Z]{26}$/i,MI=/^[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,EI=/^[a-z0-9_-]{21}$/i,kI=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,qI=/^[-+]?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)?)??$/,_I=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,HI="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$",fd,RI=/^(?:(?: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])$/,II=/^(?:(?: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])$/,zI=/^(([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]))$/,DI=/^(([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])$/,GI=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,$I=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,dy="((\\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])))",NI=new RegExp(`^${dy}$`);function hy(t){let e="[0-5]\\d";t.precision?e=`${e}\\.\\d{${t.precision}}`:t.precision==null&&(e=`${e}(\\.\\d+)?`);let i=t.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${e})${i}`}function UI(t){return new RegExp(`^${hy(t)}$`)}function gy(t){let e=`${dy}T${hy(t)}`,i=[];return i.push(t.local?"Z?":"Z"),t.offset&&i.push("([+-]\\d{2}:?\\d{2})"),e=`${e}(${i.join("|")})`,new RegExp(`^${e}$`)}function LI(t,e){return!!((e==="v4"||!e)&&RI.test(t)||(e==="v6"||!e)&&zI.test(t))}function WI(t,e){if(!kI.test(t))return!1;try{let[i]=t.split(".");if(!i)return!1;let n=i.replace(/-/g,"+").replace(/_/g,"/").padEnd(i.length+(4-i.length%4)%4,"="),a=JSON.parse(atob(n));return!(typeof a!="object"||a===null||"typ"in a&&a?.typ!=="JWT"||!a.alg||e&&a.alg!==e)}catch{return!1}}function BI(t,e){return!!((e==="v4"||!e)&&II.test(t)||(e==="v6"||!e)&&DI.test(t))}var ft=class t extends ae{_parse(e){if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!==z.string){let r=this._getOrReturnCtx(e);return _(r,{code:M.invalid_type,expected:z.string,received:r.parsedType}),K}let n=new Ci,a;for(let r of this._def.checks)if(r.kind==="min")e.data.lengthr.value&&(a=this._getOrReturnCtx(e,a),_(a,{code:M.too_big,maximum:r.value,type:"string",inclusive:!0,exact:!1,message:r.message}),n.dirty());else if(r.kind==="length"){let s=e.data.length>r.value,o=e.data.lengthe.test(a),{validation:i,code:M.invalid_string,...U.errToObj(n)})}_addCheck(e){return new t({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...U.errToObj(e)})}url(e){return this._addCheck({kind:"url",...U.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",...U.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...U.errToObj(e)})}nanoid(e){return this._addCheck({kind:"nanoid",...U.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...U.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",...U.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid",...U.errToObj(e)})}base64(e){return this._addCheck({kind:"base64",...U.errToObj(e)})}base64url(e){return this._addCheck({kind:"base64url",...U.errToObj(e)})}jwt(e){return this._addCheck({kind:"jwt",...U.errToObj(e)})}ip(e){return this._addCheck({kind:"ip",...U.errToObj(e)})}cidr(e){return this._addCheck({kind:"cidr",...U.errToObj(e)})}datetime(e){return typeof e=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:e}):this._addCheck({kind:"datetime",precision:typeof e?.precision>"u"?null:e?.precision,offset:e?.offset??!1,local:e?.local??!1,...U.errToObj(e?.message)})}date(e){return this._addCheck({kind:"date",message:e})}time(e){return typeof e=="string"?this._addCheck({kind:"time",precision:null,message:e}):this._addCheck({kind:"time",precision:typeof e?.precision>"u"?null:e?.precision,...U.errToObj(e?.message)})}duration(e){return this._addCheck({kind:"duration",...U.errToObj(e)})}regex(e,i){return this._addCheck({kind:"regex",regex:e,...U.errToObj(i)})}includes(e,i){return this._addCheck({kind:"includes",value:e,position:i?.position,...U.errToObj(i?.message)})}startsWith(e,i){return this._addCheck({kind:"startsWith",value:e,...U.errToObj(i)})}endsWith(e,i){return this._addCheck({kind:"endsWith",value:e,...U.errToObj(i)})}min(e,i){return this._addCheck({kind:"min",value:e,...U.errToObj(i)})}max(e,i){return this._addCheck({kind:"max",value:e,...U.errToObj(i)})}length(e,i){return this._addCheck({kind:"length",value:e,...U.errToObj(i)})}nonempty(e){return this.min(1,U.errToObj(e))}trim(){return new t({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new t({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new t({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(e=>e.kind==="datetime")}get isDate(){return!!this._def.checks.find(e=>e.kind==="date")}get isTime(){return!!this._def.checks.find(e=>e.kind==="time")}get isDuration(){return!!this._def.checks.find(e=>e.kind==="duration")}get isEmail(){return!!this._def.checks.find(e=>e.kind==="email")}get isURL(){return!!this._def.checks.find(e=>e.kind==="url")}get isEmoji(){return!!this._def.checks.find(e=>e.kind==="emoji")}get isUUID(){return!!this._def.checks.find(e=>e.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(e=>e.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(e=>e.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(e=>e.kind==="cuid2")}get isULID(){return!!this._def.checks.find(e=>e.kind==="ulid")}get isIP(){return!!this._def.checks.find(e=>e.kind==="ip")}get isCIDR(){return!!this._def.checks.find(e=>e.kind==="cidr")}get isBase64(){return!!this._def.checks.find(e=>e.kind==="base64")}get isBase64url(){return!!this._def.checks.find(e=>e.kind==="base64url")}get minLength(){let e=null;for(let i of this._def.checks)i.kind==="min"&&(e===null||i.value>e)&&(e=i.value);return e}get maxLength(){let e=null;for(let i of this._def.checks)i.kind==="max"&&(e===null||i.valuenew ft({checks:[],typeName:E.ZodString,coerce:t?.coerce??!1,...ne(t)});function FI(t,e){let i=(t.toString().split(".")[1]||"").length,n=(e.toString().split(".")[1]||"").length,a=i>n?i:n,r=Number.parseInt(t.toFixed(a).replace(".","")),s=Number.parseInt(e.toFixed(a).replace(".",""));return r%s/10**a}var Qt=class t extends ae{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){if(this._def.coerce&&(e.data=Number(e.data)),this._getType(e)!==z.number){let r=this._getOrReturnCtx(e);return _(r,{code:M.invalid_type,expected:z.number,received:r.parsedType}),K}let n,a=new Ci;for(let r of this._def.checks)r.kind==="int"?ce.isInteger(e.data)||(n=this._getOrReturnCtx(e,n),_(n,{code:M.invalid_type,expected:"integer",received:"float",message:r.message}),a.dirty()):r.kind==="min"?(r.inclusive?e.datar.value:e.data>=r.value)&&(n=this._getOrReturnCtx(e,n),_(n,{code:M.too_big,maximum:r.value,type:"number",inclusive:r.inclusive,exact:!1,message:r.message}),a.dirty()):r.kind==="multipleOf"?FI(e.data,r.value)!==0&&(n=this._getOrReturnCtx(e,n),_(n,{code:M.not_multiple_of,multipleOf:r.value,message:r.message}),a.dirty()):r.kind==="finite"?Number.isFinite(e.data)||(n=this._getOrReturnCtx(e,n),_(n,{code:M.not_finite,message:r.message}),a.dirty()):ce.assertNever(r);return{status:a.value,value:e.data}}gte(e,i){return this.setLimit("min",e,!0,U.toString(i))}gt(e,i){return this.setLimit("min",e,!1,U.toString(i))}lte(e,i){return this.setLimit("max",e,!0,U.toString(i))}lt(e,i){return this.setLimit("max",e,!1,U.toString(i))}setLimit(e,i,n,a){return new t({...this._def,checks:[...this._def.checks,{kind:e,value:i,inclusive:n,message:U.toString(a)}]})}_addCheck(e){return new t({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:U.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:U.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:U.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:U.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:U.toString(e)})}multipleOf(e,i){return this._addCheck({kind:"multipleOf",value:e,message:U.toString(i)})}finite(e){return this._addCheck({kind:"finite",message:U.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:U.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:U.toString(e)})}get minValue(){let e=null;for(let i of this._def.checks)i.kind==="min"&&(e===null||i.value>e)&&(e=i.value);return e}get maxValue(){let e=null;for(let i of this._def.checks)i.kind==="max"&&(e===null||i.valuee.kind==="int"||e.kind==="multipleOf"&&ce.isInteger(e.value))}get isFinite(){let e=null,i=null;for(let n of this._def.checks){if(n.kind==="finite"||n.kind==="int"||n.kind==="multipleOf")return!0;n.kind==="min"?(i===null||n.value>i)&&(i=n.value):n.kind==="max"&&(e===null||n.valuenew Qt({checks:[],typeName:E.ZodNumber,coerce:t?.coerce||!1,...ne(t)});var Yt=class t extends ae{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){if(this._def.coerce)try{e.data=BigInt(e.data)}catch{return this._getInvalidInput(e)}if(this._getType(e)!==z.bigint)return this._getInvalidInput(e);let n,a=new Ci;for(let r of this._def.checks)r.kind==="min"?(r.inclusive?e.datar.value:e.data>=r.value)&&(n=this._getOrReturnCtx(e,n),_(n,{code:M.too_big,type:"bigint",maximum:r.value,inclusive:r.inclusive,message:r.message}),a.dirty()):r.kind==="multipleOf"?e.data%r.value!==BigInt(0)&&(n=this._getOrReturnCtx(e,n),_(n,{code:M.not_multiple_of,multipleOf:r.value,message:r.message}),a.dirty()):ce.assertNever(r);return{status:a.value,value:e.data}}_getInvalidInput(e){let i=this._getOrReturnCtx(e);return _(i,{code:M.invalid_type,expected:z.bigint,received:i.parsedType}),K}gte(e,i){return this.setLimit("min",e,!0,U.toString(i))}gt(e,i){return this.setLimit("min",e,!1,U.toString(i))}lte(e,i){return this.setLimit("max",e,!0,U.toString(i))}lt(e,i){return this.setLimit("max",e,!1,U.toString(i))}setLimit(e,i,n,a){return new t({...this._def,checks:[...this._def.checks,{kind:e,value:i,inclusive:n,message:U.toString(a)}]})}_addCheck(e){return new t({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:U.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:U.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:U.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:U.toString(e)})}multipleOf(e,i){return this._addCheck({kind:"multipleOf",value:e,message:U.toString(i)})}get minValue(){let e=null;for(let i of this._def.checks)i.kind==="min"&&(e===null||i.value>e)&&(e=i.value);return e}get maxValue(){let e=null;for(let i of this._def.checks)i.kind==="max"&&(e===null||i.valuenew Yt({checks:[],typeName:E.ZodBigInt,coerce:t?.coerce??!1,...ne(t)});var Xt=class extends ae{_parse(e){if(this._def.coerce&&(e.data=!!e.data),this._getType(e)!==z.boolean){let n=this._getOrReturnCtx(e);return _(n,{code:M.invalid_type,expected:z.boolean,received:n.parsedType}),K}return xi(e.data)}};Xt.create=t=>new Xt({typeName:E.ZodBoolean,coerce:t?.coerce||!1,...ne(t)});var ea=class t extends ae{_parse(e){if(this._def.coerce&&(e.data=new Date(e.data)),this._getType(e)!==z.date){let r=this._getOrReturnCtx(e);return _(r,{code:M.invalid_type,expected:z.date,received:r.parsedType}),K}if(Number.isNaN(e.data.getTime())){let r=this._getOrReturnCtx(e);return _(r,{code:M.invalid_date}),K}let n=new Ci,a;for(let r of this._def.checks)r.kind==="min"?e.data.getTime()r.value&&(a=this._getOrReturnCtx(e,a),_(a,{code:M.too_big,message:r.message,inclusive:!0,exact:!1,maximum:r.value,type:"date"}),n.dirty()):ce.assertNever(r);return{status:n.value,value:new Date(e.data.getTime())}}_addCheck(e){return new t({...this._def,checks:[...this._def.checks,e]})}min(e,i){return this._addCheck({kind:"min",value:e.getTime(),message:U.toString(i)})}max(e,i){return this._addCheck({kind:"max",value:e.getTime(),message:U.toString(i)})}get minDate(){let e=null;for(let i of this._def.checks)i.kind==="min"&&(e===null||i.value>e)&&(e=i.value);return e!=null?new Date(e):null}get maxDate(){let e=null;for(let i of this._def.checks)i.kind==="max"&&(e===null||i.valuenew ea({checks:[],coerce:t?.coerce||!1,typeName:E.ZodDate,...ne(t)});var ar=class extends ae{_parse(e){if(this._getType(e)!==z.symbol){let n=this._getOrReturnCtx(e);return _(n,{code:M.invalid_type,expected:z.symbol,received:n.parsedType}),K}return xi(e.data)}};ar.create=t=>new ar({typeName:E.ZodSymbol,...ne(t)});var ia=class extends ae{_parse(e){if(this._getType(e)!==z.undefined){let n=this._getOrReturnCtx(e);return _(n,{code:M.invalid_type,expected:z.undefined,received:n.parsedType}),K}return xi(e.data)}};ia.create=t=>new ia({typeName:E.ZodUndefined,...ne(t)});var na=class extends ae{_parse(e){if(this._getType(e)!==z.null){let n=this._getOrReturnCtx(e);return _(n,{code:M.invalid_type,expected:z.null,received:n.parsedType}),K}return xi(e.data)}};na.create=t=>new na({typeName:E.ZodNull,...ne(t)});var wt=class extends ae{constructor(){super(...arguments),this._any=!0}_parse(e){return xi(e.data)}};wt.create=t=>new wt({typeName:E.ZodAny,...ne(t)});var Xn=class extends ae{constructor(){super(...arguments),this._unknown=!0}_parse(e){return xi(e.data)}};Xn.create=t=>new Xn({typeName:E.ZodUnknown,...ne(t)});var Cn=class extends ae{_parse(e){let i=this._getOrReturnCtx(e);return _(i,{code:M.invalid_type,expected:z.never,received:i.parsedType}),K}};Cn.create=t=>new Cn({typeName:E.ZodNever,...ne(t)});var rr=class extends ae{_parse(e){if(this._getType(e)!==z.undefined){let n=this._getOrReturnCtx(e);return _(n,{code:M.invalid_type,expected:z.void,received:n.parsedType}),K}return xi(e.data)}};rr.create=t=>new rr({typeName:E.ZodVoid,...ne(t)});var et=class t extends ae{_parse(e){let{ctx:i,status:n}=this._processInputParams(e),a=this._def;if(i.parsedType!==z.array)return _(i,{code:M.invalid_type,expected:z.array,received:i.parsedType}),K;if(a.exactLength!==null){let s=i.data.length>a.exactLength.value,o=i.data.lengtha.maxLength.value&&(_(i,{code:M.too_big,maximum:a.maxLength.value,type:"array",inclusive:!0,exact:!1,message:a.maxLength.message}),n.dirty()),i.common.async)return Promise.all([...i.data].map((s,o)=>a.type._parseAsync(new an(i,s,i.path,o)))).then(s=>Ci.mergeArray(n,s));let r=[...i.data].map((s,o)=>a.type._parseSync(new an(i,s,i.path,o)));return Ci.mergeArray(n,r)}get element(){return this._def.type}min(e,i){return new t({...this._def,minLength:{value:e,message:U.toString(i)}})}max(e,i){return new t({...this._def,maxLength:{value:e,message:U.toString(i)}})}length(e,i){return new t({...this._def,exactLength:{value:e,message:U.toString(i)}})}nonempty(e){return this.min(1,e)}};et.create=(t,e)=>new et({type:t,minLength:null,maxLength:null,exactLength:null,typeName:E.ZodArray,...ne(e)});function tr(t){if(t instanceof Di){let e={};for(let i in t.shape){let n=t.shape[i];e[i]=tn.create(tr(n))}return new Di({...t._def,shape:()=>e})}else return t instanceof et?new et({...t._def,type:tr(t.element)}):t instanceof tn?tn.create(tr(t.unwrap())):t instanceof Hn?Hn.create(tr(t.unwrap())):t instanceof _n?_n.create(t.items.map(e=>tr(e))):t}var Di=class t extends ae{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;let e=this._def.shape(),i=ce.objectKeys(e);return this._cached={shape:e,keys:i},this._cached}_parse(e){if(this._getType(e)!==z.object){let u=this._getOrReturnCtx(e);return _(u,{code:M.invalid_type,expected:z.object,received:u.parsedType}),K}let{status:n,ctx:a}=this._processInputParams(e),{shape:r,keys:s}=this._getCached(),o=[];if(!(this._def.catchall instanceof Cn&&this._def.unknownKeys==="strip"))for(let u in a.data)s.includes(u)||o.push(u);let l=[];for(let u of s){let c=r[u],p=a.data[u];l.push({key:{status:"valid",value:u},value:c._parse(new an(a,p,a.path,u)),alwaysSet:u in a.data})}if(this._def.catchall instanceof Cn){let u=this._def.unknownKeys;if(u==="passthrough")for(let c of o)l.push({key:{status:"valid",value:c},value:{status:"valid",value:a.data[c]}});else if(u==="strict")o.length>0&&(_(a,{code:M.unrecognized_keys,keys:o}),n.dirty());else if(u!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{let u=this._def.catchall;for(let c of o){let p=a.data[c];l.push({key:{status:"valid",value:c},value:u._parse(new an(a,p,a.path,c)),alwaysSet:c in a.data})}}return a.common.async?Promise.resolve().then(async()=>{let u=[];for(let c of l){let p=await c.key,d=await c.value;u.push({key:p,value:d,alwaysSet:c.alwaysSet})}return u}).then(u=>Ci.mergeObjectSync(n,u)):Ci.mergeObjectSync(n,l)}get shape(){return this._def.shape()}strict(e){return U.errToObj,new t({...this._def,unknownKeys:"strict",...e!==void 0?{errorMap:(i,n)=>{let a=this._def.errorMap?.(i,n).message??n.defaultError;return i.code==="unrecognized_keys"?{message:U.errToObj(e).message??a}:{message:a}}}:{}})}strip(){return new t({...this._def,unknownKeys:"strip"})}passthrough(){return new t({...this._def,unknownKeys:"passthrough"})}extend(e){return new t({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){return new t({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:E.ZodObject})}setKey(e,i){return this.augment({[e]:i})}catchall(e){return new t({...this._def,catchall:e})}pick(e){let i={};for(let n of ce.objectKeys(e))e[n]&&this.shape[n]&&(i[n]=this.shape[n]);return new t({...this._def,shape:()=>i})}omit(e){let i={};for(let n of ce.objectKeys(this.shape))e[n]||(i[n]=this.shape[n]);return new t({...this._def,shape:()=>i})}deepPartial(){return tr(this)}partial(e){let i={};for(let n of ce.objectKeys(this.shape)){let a=this.shape[n];e&&!e[n]?i[n]=a:i[n]=a.optional()}return new t({...this._def,shape:()=>i})}required(e){let i={};for(let n of ce.objectKeys(this.shape))if(e&&!e[n])i[n]=this.shape[n];else{let r=this.shape[n];for(;r instanceof tn;)r=r._def.innerType;i[n]=r}return new t({...this._def,shape:()=>i})}keyof(){return my(ce.objectKeys(this.shape))}};Di.create=(t,e)=>new Di({shape:()=>t,unknownKeys:"strip",catchall:Cn.create(),typeName:E.ZodObject,...ne(e)});Di.strictCreate=(t,e)=>new Di({shape:()=>t,unknownKeys:"strict",catchall:Cn.create(),typeName:E.ZodObject,...ne(e)});Di.lazycreate=(t,e)=>new Di({shape:t,unknownKeys:"strip",catchall:Cn.create(),typeName:E.ZodObject,...ne(e)});var ta=class extends ae{_parse(e){let{ctx:i}=this._processInputParams(e),n=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 i.common.issues.push(...o.ctx.common.issues),o.result;let s=r.map(o=>new zi(o.ctx.common.issues));return _(i,{code:M.invalid_union,unionErrors:s}),K}if(i.common.async)return Promise.all(n.map(async r=>{let s={...i,common:{...i.common,issues:[]},parent:null};return{result:await r._parseAsync({data:i.data,path:i.path,parent:s}),ctx:s}})).then(a);{let r,s=[];for(let l of n){let u={...i,common:{...i.common,issues:[]},parent:null},c=l._parseSync({data:i.data,path:i.path,parent:u});if(c.status==="valid")return c;c.status==="dirty"&&!r&&(r={result:c,ctx:u}),u.common.issues.length&&s.push(u.common.issues)}if(r)return i.common.issues.push(...r.ctx.common.issues),r.result;let o=s.map(l=>new zi(l));return _(i,{code:M.invalid_union,unionErrors:o}),K}}get options(){return this._def.options}};ta.create=(t,e)=>new ta({options:t,typeName:E.ZodUnion,...ne(e)});var Yn=t=>t instanceof ra?Yn(t.schema):t instanceof rn?Yn(t.innerType()):t instanceof sa?[t.value]:t instanceof oa?t.options:t instanceof la?ce.objectValues(t.enum):t instanceof ua?Yn(t._def.innerType):t instanceof ia?[void 0]:t instanceof na?[null]:t instanceof tn?[void 0,...Yn(t.unwrap())]:t instanceof Hn?[null,...Yn(t.unwrap())]:t instanceof fs||t instanceof pa?Yn(t.unwrap()):t instanceof ca?Yn(t._def.innerType):[],_l=class t extends ae{_parse(e){let{ctx:i}=this._processInputParams(e);if(i.parsedType!==z.object)return _(i,{code:M.invalid_type,expected:z.object,received:i.parsedType}),K;let n=this.discriminator,a=i.data[n],r=this.optionsMap.get(a);return r?i.common.async?r._parseAsync({data:i.data,path:i.path,parent:i}):r._parseSync({data:i.data,path:i.path,parent:i}):(_(i,{code:M.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[n]}),K)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(e,i,n){let a=new Map;for(let r of i){let s=Yn(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:i,optionsMap:a,...ne(n)})}};function wd(t,e){let i=qn(t),n=qn(e);if(t===e)return{valid:!0,data:t};if(i===z.object&&n===z.object){let a=ce.objectKeys(e),r=ce.objectKeys(t).filter(o=>a.indexOf(o)!==-1),s={...t,...e};for(let o of r){let l=wd(t[o],e[o]);if(!l.valid)return{valid:!1};s[o]=l.data}return{valid:!0,data:s}}else if(i===z.array&&n===z.array){if(t.length!==e.length)return{valid:!1};let a=[];for(let r=0;r{if(kl(r)||kl(s))return K;let o=wd(r.value,s.value);return o.valid?((ql(r)||ql(s))&&i.dirty(),{status:i.value,value:o.data}):(_(n,{code:M.invalid_intersection_types}),K)};return n.common.async?Promise.all([this._def.left._parseAsync({data:n.data,path:n.path,parent:n}),this._def.right._parseAsync({data:n.data,path:n.path,parent:n})]).then(([r,s])=>a(r,s)):a(this._def.left._parseSync({data:n.data,path:n.path,parent:n}),this._def.right._parseSync({data:n.data,path:n.path,parent:n}))}};aa.create=(t,e,i)=>new aa({left:t,right:e,typeName:E.ZodIntersection,...ne(i)});var _n=class t extends ae{_parse(e){let{status:i,ctx:n}=this._processInputParams(e);if(n.parsedType!==z.array)return _(n,{code:M.invalid_type,expected:z.array,received:n.parsedType}),K;if(n.data.lengththis._def.items.length&&(_(n,{code:M.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),i.dirty());let r=[...n.data].map((s,o)=>{let l=this._def.items[o]||this._def.rest;return l?l._parse(new an(n,s,n.path,o)):null}).filter(s=>!!s);return n.common.async?Promise.all(r).then(s=>Ci.mergeArray(i,s)):Ci.mergeArray(i,r)}get items(){return this._def.items}rest(e){return new t({...this._def,rest:e})}};_n.create=(t,e)=>{if(!Array.isArray(t))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new _n({items:t,typeName:E.ZodTuple,rest:null,...ne(e)})};var Hl=class t extends ae{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:i,ctx:n}=this._processInputParams(e);if(n.parsedType!==z.object)return _(n,{code:M.invalid_type,expected:z.object,received:n.parsedType}),K;let a=[],r=this._def.keyType,s=this._def.valueType;for(let o in n.data)a.push({key:r._parse(new an(n,o,n.path,o)),value:s._parse(new an(n,n.data[o],n.path,o)),alwaysSet:o in n.data});return n.common.async?Ci.mergeObjectAsync(i,a):Ci.mergeObjectSync(i,a)}get element(){return this._def.valueType}static create(e,i,n){return i instanceof ae?new t({keyType:e,valueType:i,typeName:E.ZodRecord,...ne(n)}):new t({keyType:ft.create(),valueType:e,typeName:E.ZodRecord,...ne(i)})}},sr=class extends ae{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:i,ctx:n}=this._processInputParams(e);if(n.parsedType!==z.map)return _(n,{code:M.invalid_type,expected:z.map,received:n.parsedType}),K;let a=this._def.keyType,r=this._def.valueType,s=[...n.data.entries()].map(([o,l],u)=>({key:a._parse(new an(n,o,n.path,[u,"key"])),value:r._parse(new an(n,l,n.path,[u,"value"]))}));if(n.common.async){let o=new Map;return Promise.resolve().then(async()=>{for(let l of s){let u=await l.key,c=await l.value;if(u.status==="aborted"||c.status==="aborted")return K;(u.status==="dirty"||c.status==="dirty")&&i.dirty(),o.set(u.value,c.value)}return{status:i.value,value:o}})}else{let o=new Map;for(let l of s){let u=l.key,c=l.value;if(u.status==="aborted"||c.status==="aborted")return K;(u.status==="dirty"||c.status==="dirty")&&i.dirty(),o.set(u.value,c.value)}return{status:i.value,value:o}}}};sr.create=(t,e,i)=>new sr({valueType:e,keyType:t,typeName:E.ZodMap,...ne(i)});var or=class t extends ae{_parse(e){let{status:i,ctx:n}=this._processInputParams(e);if(n.parsedType!==z.set)return _(n,{code:M.invalid_type,expected:z.set,received:n.parsedType}),K;let a=this._def;a.minSize!==null&&n.data.sizea.maxSize.value&&(_(n,{code:M.too_big,maximum:a.maxSize.value,type:"set",inclusive:!0,exact:!1,message:a.maxSize.message}),i.dirty());let r=this._def.valueType;function s(l){let u=new Set;for(let c of l){if(c.status==="aborted")return K;c.status==="dirty"&&i.dirty(),u.add(c.value)}return{status:i.value,value:u}}let o=[...n.data.values()].map((l,u)=>r._parse(new an(n,l,n.path,u)));return n.common.async?Promise.all(o).then(l=>s(l)):s(o)}min(e,i){return new t({...this._def,minSize:{value:e,message:U.toString(i)}})}max(e,i){return new t({...this._def,maxSize:{value:e,message:U.toString(i)}})}size(e,i){return this.min(e,i).max(e,i)}nonempty(e){return this.min(1,e)}};or.create=(t,e)=>new or({valueType:t,minSize:null,maxSize:null,typeName:E.ZodSet,...ne(e)});var Rl=class t extends ae{constructor(){super(...arguments),this.validate=this.implement}_parse(e){let{ctx:i}=this._processInputParams(e);if(i.parsedType!==z.function)return _(i,{code:M.invalid_type,expected:z.function,received:i.parsedType}),K;function n(o,l){return ms({data:o,path:i.path,errorMaps:[i.common.contextualErrorMap,i.schemaErrorMap,ir(),Qn].filter(u=>!!u),issueData:{code:M.invalid_arguments,argumentsError:l}})}function a(o,l){return ms({data:o,path:i.path,errorMaps:[i.common.contextualErrorMap,i.schemaErrorMap,ir(),Qn].filter(u=>!!u),issueData:{code:M.invalid_return_type,returnTypeError:l}})}let r={errorMap:i.common.contextualErrorMap},s=i.data;if(this._def.returns instanceof vt){let o=this;return xi(async function(...l){let u=new zi([]),c=await o._def.args.parseAsync(l,r).catch(h=>{throw u.addIssue(n(l,h)),u}),p=await Reflect.apply(s,this,c);return await o._def.returns._def.type.parseAsync(p,r).catch(h=>{throw u.addIssue(a(p,h)),u})})}else{let o=this;return xi(function(...l){let u=o._def.args.safeParse(l,r);if(!u.success)throw new zi([n(l,u.error)]);let c=Reflect.apply(s,this,u.data),p=o._def.returns.safeParse(c,r);if(!p.success)throw new zi([a(c,p.error)]);return p.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...e){return new t({...this._def,args:_n.create(e).rest(Xn.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,i,n){return new t({args:e||_n.create([]).rest(Xn.create()),returns:i||Xn.create(),typeName:E.ZodFunction,...ne(n)})}},ra=class extends ae{get schema(){return this._def.getter()}_parse(e){let{ctx:i}=this._processInputParams(e);return this._def.getter()._parse({data:i.data,path:i.path,parent:i})}};ra.create=(t,e)=>new ra({getter:t,typeName:E.ZodLazy,...ne(e)});var sa=class extends ae{_parse(e){if(e.data!==this._def.value){let i=this._getOrReturnCtx(e);return _(i,{received:i.data,code:M.invalid_literal,expected:this._def.value}),K}return{status:"valid",value:e.data}}get value(){return this._def.value}};sa.create=(t,e)=>new sa({value:t,typeName:E.ZodLiteral,...ne(e)});function my(t,e){return new oa({values:t,typeName:E.ZodEnum,...ne(e)})}var oa=class t extends ae{_parse(e){if(typeof e.data!="string"){let i=this._getOrReturnCtx(e),n=this._def.values;return _(i,{expected:ce.joinValues(n),received:i.parsedType,code:M.invalid_type}),K}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(e.data)){let i=this._getOrReturnCtx(e),n=this._def.values;return _(i,{received:i.data,code:M.invalid_enum_value,options:n}),K}return xi(e.data)}get options(){return this._def.values}get enum(){let e={};for(let i of this._def.values)e[i]=i;return e}get Values(){let e={};for(let i of this._def.values)e[i]=i;return e}get Enum(){let e={};for(let i of this._def.values)e[i]=i;return e}extract(e,i=this._def){return t.create(e,{...this._def,...i})}exclude(e,i=this._def){return t.create(this.options.filter(n=>!e.includes(n)),{...this._def,...i})}};oa.create=my;var la=class extends ae{_parse(e){let i=ce.getValidEnumValues(this._def.values),n=this._getOrReturnCtx(e);if(n.parsedType!==z.string&&n.parsedType!==z.number){let a=ce.objectValues(i);return _(n,{expected:ce.joinValues(a),received:n.parsedType,code:M.invalid_type}),K}if(this._cache||(this._cache=new Set(ce.getValidEnumValues(this._def.values))),!this._cache.has(e.data)){let a=ce.objectValues(i);return _(n,{received:n.data,code:M.invalid_enum_value,options:a}),K}return xi(e.data)}get enum(){return this._def.values}};la.create=(t,e)=>new la({values:t,typeName:E.ZodNativeEnum,...ne(e)});var vt=class extends ae{unwrap(){return this._def.type}_parse(e){let{ctx:i}=this._processInputParams(e);if(i.parsedType!==z.promise&&i.common.async===!1)return _(i,{code:M.invalid_type,expected:z.promise,received:i.parsedType}),K;let n=i.parsedType===z.promise?i.data:Promise.resolve(i.data);return xi(n.then(a=>this._def.type.parseAsync(a,{path:i.path,errorMap:i.common.contextualErrorMap})))}};vt.create=(t,e)=>new vt({type:t,typeName:E.ZodPromise,...ne(e)});var rn=class extends ae{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===E.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){let{status:i,ctx:n}=this._processInputParams(e),a=this._def.effect||null,r={addIssue:s=>{_(n,s),s.fatal?i.abort():i.dirty()},get path(){return n.path}};if(r.addIssue=r.addIssue.bind(r),a.type==="preprocess"){let s=a.transform(n.data,r);if(n.common.async)return Promise.resolve(s).then(async o=>{if(i.value==="aborted")return K;let l=await this._def.schema._parseAsync({data:o,path:n.path,parent:n});return l.status==="aborted"?K:l.status==="dirty"?Kt(l.value):i.value==="dirty"?Kt(l.value):l});{if(i.value==="aborted")return K;let o=this._def.schema._parseSync({data:s,path:n.path,parent:n});return o.status==="aborted"?K:o.status==="dirty"?Kt(o.value):i.value==="dirty"?Kt(o.value):o}}if(a.type==="refinement"){let s=o=>{let l=a.refinement(o,r);if(n.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(n.common.async===!1){let o=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});return o.status==="aborted"?K:(o.status==="dirty"&&i.dirty(),s(o.value),{status:i.value,value:o.value})}else return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(o=>o.status==="aborted"?K:(o.status==="dirty"&&i.dirty(),s(o.value).then(()=>({status:i.value,value:o.value}))))}if(a.type==="transform")if(n.common.async===!1){let s=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});if(!mt(s))return K;let o=a.transform(s.value,r);if(o instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:i.value,value:o}}else return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(s=>mt(s)?Promise.resolve(a.transform(s.value,r)).then(o=>({status:i.value,value:o})):K);ce.assertNever(a)}};rn.create=(t,e,i)=>new rn({schema:t,typeName:E.ZodEffects,effect:e,...ne(i)});rn.createWithPreprocess=(t,e,i)=>new rn({schema:e,effect:{type:"preprocess",transform:t},typeName:E.ZodEffects,...ne(i)});var tn=class extends ae{_parse(e){return this._getType(e)===z.undefined?xi(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}};tn.create=(t,e)=>new tn({innerType:t,typeName:E.ZodOptional,...ne(e)});var Hn=class extends ae{_parse(e){return this._getType(e)===z.null?xi(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}};Hn.create=(t,e)=>new Hn({innerType:t,typeName:E.ZodNullable,...ne(e)});var ua=class extends ae{_parse(e){let{ctx:i}=this._processInputParams(e),n=i.data;return i.parsedType===z.undefined&&(n=this._def.defaultValue()),this._def.innerType._parse({data:n,path:i.path,parent:i})}removeDefault(){return this._def.innerType}};ua.create=(t,e)=>new ua({innerType:t,typeName:E.ZodDefault,defaultValue:typeof e.default=="function"?e.default:()=>e.default,...ne(e)});var ca=class extends ae{_parse(e){let{ctx:i}=this._processInputParams(e),n={...i,common:{...i.common,issues:[]}},a=this._def.innerType._parse({data:n.data,path:n.path,parent:{...n}});return nr(a)?a.then(r=>({status:"valid",value:r.status==="valid"?r.value:this._def.catchValue({get error(){return new zi(n.common.issues)},input:n.data})})):{status:"valid",value:a.status==="valid"?a.value:this._def.catchValue({get error(){return new zi(n.common.issues)},input:n.data})}}removeCatch(){return this._def.innerType}};ca.create=(t,e)=>new ca({innerType:t,typeName:E.ZodCatch,catchValue:typeof e.catch=="function"?e.catch:()=>e.catch,...ne(e)});var lr=class extends ae{_parse(e){if(this._getType(e)!==z.nan){let n=this._getOrReturnCtx(e);return _(n,{code:M.invalid_type,expected:z.nan,received:n.parsedType}),K}return{status:"valid",value:e.data}}};lr.create=t=>new lr({typeName:E.ZodNaN,...ne(t)});var VI=Symbol("zod_brand"),fs=class extends ae{_parse(e){let{ctx:i}=this._processInputParams(e),n=i.data;return this._def.type._parse({data:n,path:i.path,parent:i})}unwrap(){return this._def.type}},ws=class t extends ae{_parse(e){let{status:i,ctx:n}=this._processInputParams(e);if(n.common.async)return(async()=>{let r=await this._def.in._parseAsync({data:n.data,path:n.path,parent:n});return r.status==="aborted"?K:r.status==="dirty"?(i.dirty(),Kt(r.value)):this._def.out._parseAsync({data:r.value,path:n.path,parent:n})})();{let a=this._def.in._parseSync({data:n.data,path:n.path,parent:n});return a.status==="aborted"?K:a.status==="dirty"?(i.dirty(),{status:"dirty",value:a.value}):this._def.out._parseSync({data:a.value,path:n.path,parent:n})}}static create(e,i){return new t({in:e,out:i,typeName:E.ZodPipeline})}},pa=class extends ae{_parse(e){let i=this._def.innerType._parse(e),n=a=>(mt(a)&&(a.value=Object.freeze(a.value)),a);return nr(i)?i.then(a=>n(a)):n(i)}unwrap(){return this._def.innerType}};pa.create=(t,e)=>new pa({innerType:t,typeName:E.ZodReadonly,...ne(e)});function py(t,e){let i=typeof t=="function"?t(e):typeof t=="string"?{message:t}:t;return typeof i=="string"?{message:i}:i}function fy(t,e={},i){return t?wt.create().superRefine((n,a)=>{let r=t(n);if(r instanceof Promise)return r.then(s=>{if(!s){let o=py(e,n),l=o.fatal??i??!0;a.addIssue({code:"custom",...o,fatal:l})}});if(!r){let s=py(e,n),o=s.fatal??i??!0;a.addIssue({code:"custom",...s,fatal:o})}}):wt.create()}var JI={object:Di.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 ZI=(t,e={message:`Input not instance of ${t.name}`})=>fy(i=>i instanceof t,e),wy=ft.create,vy=Qt.create,KI=lr.create,QI=Yt.create,Cy=Xt.create,YI=ea.create,XI=ar.create,ez=ia.create,iz=na.create,nz=wt.create,tz=Xn.create,az=Cn.create,rz=rr.create,sz=et.create,vd=Di.create,oz=Di.strictCreate,lz=ta.create,uz=_l.create,cz=aa.create,pz=_n.create,dz=Hl.create,hz=sr.create,gz=or.create,mz=Rl.create,fz=ra.create,wz=sa.create,vz=oa.create,Cz=la.create,Az=vt.create,bz=rn.create,yz=tn.create,Pz=Hn.create,jz=rn.createWithPreprocess,Sz=ws.create,Oz=()=>wy().optional(),xz=()=>vy().optional(),Tz=()=>Cy().optional(),Mz={string:(t=>ft.create({...t,coerce:!0})),number:(t=>Qt.create({...t,coerce:!0})),boolean:(t=>Xt.create({...t,coerce:!0})),bigint:(t=>Yt.create({...t,coerce:!0})),date:(t=>ea.create({...t,coerce:!0}))};var Ez=K;var Ay;function j(t,e,i){function n(o,l){if(o._zod||Object.defineProperty(o,"_zod",{value:{def:l,constr:s,traits:new Set},enumerable:!1}),o._zod.traits.has(t))return;o._zod.traits.add(t),e(o,l);let u=s.prototype,c=Object.keys(u);for(let p=0;pi?.Parent&&o instanceof i.Parent?!0:o?._zod?.traits?.has(t)}),Object.defineProperty(s,"name",{value:t}),s}var MX=Symbol("zod_brand"),Rn=class extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}},ur=class extends Error{constructor(e){super(`Encountered unidirectional transform during encode: ${e}`),this.name="ZodEncodeError"}};(Ay=globalThis).__zod_globalConfig??(Ay.__zod_globalConfig={});var cr=globalThis.__zod_globalConfig;function Qi(t){return t&&Object.assign(cr,t),cr}var he={};gd(he,{BIGINT_FORMAT_RANGES:()=>Py,Class:()=>Ad,NUMBER_FORMAT_RANGES:()=>xd,aborted:()=>bt,allowsEval:()=>Pd,assert:()=>Iz,assertEqual:()=>qz,assertIs:()=>Hz,assertNever:()=>Rz,assertNotEqual:()=>_z,assignProp:()=>Ct,base64ToUint8Array:()=>ky,base64urlToUint8Array:()=>Vz,cached:()=>dr,captureStackTrace:()=>Dl,cleanEnum:()=>Fz,cleanRegex:()=>bs,clone:()=>Yi,cloneDef:()=>Dz,createTransparentProxy:()=>Wz,defineLazy:()=>Oe,esc:()=>zl,escapeRegex:()=>nt,explicitlyAborted:()=>Td,extend:()=>Oy,finalizeIssue:()=>on,floatSafeRemainder:()=>bd,getElementAtPath:()=>Gz,getEnumValues:()=>Cs,getLengthableOrigin:()=>ys,getParsedType:()=>Lz,getSizableOrigin:()=>Ey,hexToUint8Array:()=>Zz,isObject:()=>da,isPlainObject:()=>At,issue:()=>hr,joinValues:()=>Il,jsonStringifyReplacer:()=>pr,merge:()=>Bz,mergeDefs:()=>it,normalizeParams:()=>J,nullish:()=>As,numKeys:()=>Uz,objectClone:()=>zz,omit:()=>Sy,optionalKeys:()=>Od,parsedType:()=>Md,partial:()=>Ty,pick:()=>jy,prefixIssues:()=>tt,primitiveTypes:()=>yy,promiseAllObject:()=>$z,propertyKeyTypes:()=>Sd,randomString:()=>Nz,required:()=>My,safeExtend:()=>xy,shallowClone:()=>jd,slugify:()=>yd,stringifyPrimitive:()=>Gl,uint8ArrayToBase64:()=>qy,uint8ArrayToBase64url:()=>Jz,uint8ArrayToHex:()=>Kz,unwrapMessage:()=>vs});function qz(t){return t}function _z(t){return t}function Hz(t){}function Rz(t){throw new Error("Unexpected value in exhaustive check")}function Iz(t){}function Cs(t){let e=Object.values(t).filter(n=>typeof n=="number");return Object.entries(t).filter(([n,a])=>e.indexOf(+n)===-1).map(([n,a])=>a)}function Il(t,e="|"){return t.map(i=>Gl(i)).join(e)}function pr(t,e){return typeof e=="bigint"?e.toString():e}function dr(t){return{get value(){{let i=t();return Object.defineProperty(this,"value",{value:i}),i}throw new Error("cached value already set")}}}function As(t){return t==null}function bs(t){let e=t.startsWith("^")?1:0,i=t.endsWith("$")?t.length-1:t.length;return t.slice(e,i)}function bd(t,e){let i=t/e,n=Math.round(i),a=Number.EPSILON*Math.max(Math.abs(i),1);return Math.abs(i-n)i?.[n],t):t}function $z(t){let e=Object.keys(t),i=e.map(n=>t[n]);return Promise.all(i).then(n=>{let a={};for(let r=0;r{};function da(t){return typeof t=="object"&&t!==null&&!Array.isArray(t)}var Pd=dr(()=>{if(cr.jitless||typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{let t=Function;return new t(""),!0}catch{return!1}});function At(t){if(da(t)===!1)return!1;let e=t.constructor;if(e===void 0||typeof e!="function")return!0;let i=e.prototype;return!(da(i)===!1||Object.prototype.hasOwnProperty.call(i,"isPrototypeOf")===!1)}function jd(t){return At(t)?{...t}:Array.isArray(t)?[...t]:t instanceof Map?new Map(t):t instanceof Set?new Set(t):t}function Uz(t){let e=0;for(let i in t)Object.prototype.hasOwnProperty.call(t,i)&&e++;return e}var Lz=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}`)}},Sd=new Set(["string","number","symbol"]),yy=new Set(["string","number","bigint","boolean","symbol","undefined"]);function nt(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Yi(t,e,i){let n=new t._zod.constr(e??t._zod.def);return(!e||i?.parent)&&(n._zod.parent=t),n}function J(t){let e=t;if(!e)return{};if(typeof e=="string")return{error:()=>e};if(e?.message!==void 0){if(e?.error!==void 0)throw new Error("Cannot specify both `message` and `error` params");e.error=e.message}return delete e.message,typeof e.error=="string"?{...e,error:()=>e.error}:e}function Wz(t){let e;return new Proxy({},{get(i,n,a){return e??(e=t()),Reflect.get(e,n,a)},set(i,n,a,r){return e??(e=t()),Reflect.set(e,n,a,r)},has(i,n){return e??(e=t()),Reflect.has(e,n)},deleteProperty(i,n){return e??(e=t()),Reflect.deleteProperty(e,n)},ownKeys(i){return e??(e=t()),Reflect.ownKeys(e)},getOwnPropertyDescriptor(i,n){return e??(e=t()),Reflect.getOwnPropertyDescriptor(e,n)},defineProperty(i,n,a){return e??(e=t()),Reflect.defineProperty(e,n,a)}})}function Gl(t){return typeof t=="bigint"?t.toString()+"n":typeof t=="string"?`"${t}"`:`${t}`}function Od(t){return Object.keys(t).filter(e=>t[e]._zod.optin==="optional"&&t[e]._zod.optout==="optional")}var xd={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]},Py={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function jy(t,e){let i=t._zod.def,n=i.checks;if(n&&n.length>0)throw new Error(".pick() cannot be used on object schemas containing refinements");let r=it(t._zod.def,{get shape(){let s={};for(let o in e){if(!(o in i.shape))throw new Error(`Unrecognized key: "${o}"`);e[o]&&(s[o]=i.shape[o])}return Ct(this,"shape",s),s},checks:[]});return Yi(t,r)}function Sy(t,e){let i=t._zod.def,n=i.checks;if(n&&n.length>0)throw new Error(".omit() cannot be used on object schemas containing refinements");let r=it(t._zod.def,{get shape(){let s={...t._zod.def.shape};for(let o in e){if(!(o in i.shape))throw new Error(`Unrecognized key: "${o}"`);e[o]&&delete s[o]}return Ct(this,"shape",s),s},checks:[]});return Yi(t,r)}function Oy(t,e){if(!At(e))throw new Error("Invalid input to extend: expected a plain object");let i=t._zod.def.checks;if(i&&i.length>0){let r=t._zod.def.shape;for(let s in e)if(Object.getOwnPropertyDescriptor(r,s)!==void 0)throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}let a=it(t._zod.def,{get shape(){let r={...t._zod.def.shape,...e};return Ct(this,"shape",r),r}});return Yi(t,a)}function xy(t,e){if(!At(e))throw new Error("Invalid input to safeExtend: expected a plain object");let i=it(t._zod.def,{get shape(){let n={...t._zod.def.shape,...e};return Ct(this,"shape",n),n}});return Yi(t,i)}function Bz(t,e){if(t._zod.def.checks?.length)throw new Error(".merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.");let i=it(t._zod.def,{get shape(){let n={...t._zod.def.shape,...e._zod.def.shape};return Ct(this,"shape",n),n},get catchall(){return e._zod.def.catchall},checks:e._zod.def.checks??[]});return Yi(t,i)}function Ty(t,e,i){let a=e._zod.def.checks;if(a&&a.length>0)throw new Error(".partial() cannot be used on object schemas containing refinements");let s=it(e._zod.def,{get shape(){let o=e._zod.def.shape,l={...o};if(i)for(let u in i){if(!(u in o))throw new Error(`Unrecognized key: "${u}"`);i[u]&&(l[u]=t?new t({type:"optional",innerType:o[u]}):o[u])}else for(let u in o)l[u]=t?new t({type:"optional",innerType:o[u]}):o[u];return Ct(this,"shape",l),l},checks:[]});return Yi(e,s)}function My(t,e,i){let n=it(e._zod.def,{get shape(){let a=e._zod.def.shape,r={...a};if(i)for(let s in i){if(!(s in r))throw new Error(`Unrecognized key: "${s}"`);i[s]&&(r[s]=new t({type:"nonoptional",innerType:a[s]}))}else for(let s in a)r[s]=new t({type:"nonoptional",innerType:a[s]});return Ct(this,"shape",r),r}});return Yi(e,n)}function bt(t,e=0){if(t.aborted===!0)return!0;for(let i=e;i{var n;return(n=i).path??(n.path=[]),i.path.unshift(t),i})}function vs(t){return typeof t=="string"?t:t?.message}function on(t,e,i){let n=t.message?t.message:vs(t.inst?._zod.def?.error?.(t))??vs(e?.error?.(t))??vs(i.customError?.(t))??vs(i.localeError?.(t))??"Invalid input",{inst:a,continue:r,input:s,...o}=t;return o.path??(o.path=[]),o.message=n,e?.reportInput&&(o.input=s),o}function Ey(t){return t instanceof Set?"set":t instanceof Map?"map":t instanceof File?"file":"unknown"}function ys(t){return Array.isArray(t)?"array":typeof t=="string"?"string":"unknown"}function Md(t){let e=typeof t;switch(e){case"number":return Number.isNaN(t)?"nan":"number";case"object":{if(t===null)return"null";if(Array.isArray(t))return"array";let i=t;if(i&&Object.getPrototypeOf(i)!==Object.prototype&&"constructor"in i&&i.constructor)return i.constructor.name}}return e}function hr(...t){let[e,i,n]=t;return typeof e=="string"?{message:e,code:"custom",input:i,inst:n}:{...e}}function Fz(t){return Object.entries(t).filter(([e,i])=>Number.isNaN(Number.parseInt(e,10))).map(e=>e[1])}function ky(t){let e=atob(t),i=new Uint8Array(e.length);for(let n=0;ne.toString(16).padStart(2,"0")).join("")}var Ad=class{constructor(...e){}};var _y=(t,e)=>{t.name="$ZodError",Object.defineProperty(t,"_zod",{value:t._zod,enumerable:!1}),Object.defineProperty(t,"issues",{value:e,enumerable:!1}),t.message=JSON.stringify(e,pr,2),Object.defineProperty(t,"toString",{value:()=>t.message,enumerable:!1})},$l=j("$ZodError",_y),Ps=j("$ZodError",_y,{Parent:Error});function Hy(t,e=i=>i.message){let i={},n=[];for(let a of t.issues)a.path.length>0?(i[a.path[0]]=i[a.path[0]]||[],i[a.path[0]].push(e(a))):n.push(e(a));return{formErrors:n,fieldErrors:i}}function Ry(t,e=i=>i.message){let i={_errors:[]},n=(a,r=[])=>{for(let s of a.issues)if(s.code==="invalid_union"&&s.errors.length)s.errors.map(o=>n({issues:o},[...r,...s.path]));else if(s.code==="invalid_key")n({issues:s.issues},[...r,...s.path]);else if(s.code==="invalid_element")n({issues:s.issues},[...r,...s.path]);else{let o=[...r,...s.path];if(o.length===0)i._errors.push(e(s));else{let l=i,u=0;for(;u(e,i,n,a)=>{let r=n?{...n,async:!1}:{async:!1},s=e._zod.run({value:i,issues:[]},r);if(s instanceof Promise)throw new Rn;if(s.issues.length){let o=new(a?.Err??t)(s.issues.map(l=>on(l,r,Qi())));throw Dl(o,a?.callee),o}return s.value},Nl=js(Ps),Ss=t=>async(e,i,n,a)=>{let r=n?{...n,async:!0}:{async:!0},s=e._zod.run({value:i,issues:[]},r);if(s instanceof Promise&&(s=await s),s.issues.length){let o=new(a?.Err??t)(s.issues.map(l=>on(l,r,Qi())));throw Dl(o,a?.callee),o}return s.value},Ul=Ss(Ps),Os=t=>(e,i,n)=>{let a=n?{...n,async:!1}:{async:!1},r=e._zod.run({value:i,issues:[]},a);if(r instanceof Promise)throw new Rn;return r.issues.length?{success:!1,error:new(t??$l)(r.issues.map(s=>on(s,a,Qi())))}:{success:!0,data:r.value}},ha=Os(Ps),xs=t=>async(e,i,n)=>{let a=n?{...n,async:!0}:{async:!0},r=e._zod.run({value:i,issues:[]},a);return r instanceof Promise&&(r=await r),r.issues.length?{success:!1,error:new t(r.issues.map(s=>on(s,a,Qi())))}:{success:!0,data:r.value}},ga=xs(Ps),Iy=t=>(e,i,n)=>{let a=n?{...n,direction:"backward"}:{direction:"backward"};return js(t)(e,i,a)};var zy=t=>(e,i,n)=>js(t)(e,i,n);var Dy=t=>async(e,i,n)=>{let a=n?{...n,direction:"backward"}:{direction:"backward"};return Ss(t)(e,i,a)};var Gy=t=>async(e,i,n)=>Ss(t)(e,i,n);var $y=t=>(e,i,n)=>{let a=n?{...n,direction:"backward"}:{direction:"backward"};return Os(t)(e,i,a)};var Ny=t=>(e,i,n)=>Os(t)(e,i,n);var Uy=t=>async(e,i,n)=>{let a=n?{...n,direction:"backward"}:{direction:"backward"};return xs(t)(e,i,a)};var Ly=t=>async(e,i,n)=>xs(t)(e,i,n);var Wy=/^[cC][0-9a-z]{6,}$/,By=/^[0-9a-z]+$/,Fy=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,Vy=/^[0-9a-vA-V]{20}$/,Jy=/^[A-Za-z0-9]{27}$/,Zy=/^[a-zA-Z0-9_-]{21}$/,Ky=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/;var Qy=/^([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})$/,Ed=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 Yy=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/;var Yz="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function Xy(){return new RegExp(Yz,"u")}var eP=/^(?:(?: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])$/,iP=/^(([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 nP=/^((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])$/,tP=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,aP=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,kd=/^[A-Za-z0-9_-]*$/;var rP=/^https?$/,sP=/^\+[1-9]\d{6,14}$/,oP="(?:(?:\\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])))",lP=new RegExp(`^${oP}$`);function uP(t){let e="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof t.precision=="number"?t.precision===-1?`${e}`:t.precision===0?`${e}:[0-5]\\d`:`${e}:[0-5]\\d\\.\\d{${t.precision}}`:`${e}(?::[0-5]\\d(?:\\.\\d+)?)?`}function cP(t){return new RegExp(`^${uP(t)}$`)}function pP(t){let e=uP({precision:t.precision}),i=["Z"];t.local&&i.push(""),t.offset&&i.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");let n=`${e}(?:${i.join("|")})`;return new RegExp(`^${oP}T(?:${n})$`)}var dP=t=>{let e=t?`[\\s\\S]{${t?.minimum??0},${t?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${e}$`)};var hP=/^-?\d+$/,qd=/^-?\d+(?:\.\d+)?$/,gP=/^(?:true|false)$/i,mP=/^null$/i;var fP=/^[^A-Z]*$/,wP=/^[^a-z]*$/;var di=j("$ZodCheck",(t,e)=>{var i;t._zod??(t._zod={}),t._zod.def=e,(i=t._zod).onattach??(i.onattach=[])}),vP={number:"number",bigint:"bigint",object:"date"},_d=j("$ZodCheckLessThan",(t,e)=>{di.init(t,e);let i=vP[typeof e.value];t._zod.onattach.push(n=>{let a=n._zod.bag,r=(e.inclusive?a.maximum:a.exclusiveMaximum)??Number.POSITIVE_INFINITY;e.value{(e.inclusive?n.value<=e.value:n.value{di.init(t,e);let i=vP[typeof e.value];t._zod.onattach.push(n=>{let a=n._zod.bag,r=(e.inclusive?a.minimum:a.exclusiveMinimum)??Number.NEGATIVE_INFINITY;e.value>r&&(e.inclusive?a.minimum=e.value:a.exclusiveMinimum=e.value)}),t._zod.check=n=>{(e.inclusive?n.value>=e.value:n.value>e.value)||n.issues.push({origin:i,code:"too_small",minimum:typeof e.value=="object"?e.value.getTime():e.value,input:n.value,inclusive:e.inclusive,inst:t,continue:!e.abort})}}),CP=j("$ZodCheckMultipleOf",(t,e)=>{di.init(t,e),t._zod.onattach.push(i=>{var n;(n=i._zod.bag).multipleOf??(n.multipleOf=e.value)}),t._zod.check=i=>{if(typeof i.value!=typeof e.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof i.value=="bigint"?i.value%e.value===BigInt(0):bd(i.value,e.value)===0)||i.issues.push({origin:typeof i.value,code:"not_multiple_of",divisor:e.value,input:i.value,inst:t,continue:!e.abort})}}),AP=j("$ZodCheckNumberFormat",(t,e)=>{di.init(t,e),e.format=e.format||"float64";let i=e.format?.includes("int"),n=i?"int":"number",[a,r]=xd[e.format];t._zod.onattach.push(s=>{let o=s._zod.bag;o.format=e.format,o.minimum=a,o.maximum=r,i&&(o.pattern=hP)}),t._zod.check=s=>{let o=s.value;if(i){if(!Number.isInteger(o)){s.issues.push({expected:n,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:n,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:n,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 bP=j("$ZodCheckMaxLength",(t,e)=>{var i;di.init(t,e),(i=t._zod.def).when??(i.when=n=>{let a=n.value;return!As(a)&&a.length!==void 0}),t._zod.onattach.push(n=>{let a=n._zod.bag.maximum??Number.POSITIVE_INFINITY;e.maximum{let a=n.value;if(a.length<=e.maximum)return;let s=ys(a);n.issues.push({origin:s,code:"too_big",maximum:e.maximum,inclusive:!0,input:a,inst:t,continue:!e.abort})}}),yP=j("$ZodCheckMinLength",(t,e)=>{var i;di.init(t,e),(i=t._zod.def).when??(i.when=n=>{let a=n.value;return!As(a)&&a.length!==void 0}),t._zod.onattach.push(n=>{let a=n._zod.bag.minimum??Number.NEGATIVE_INFINITY;e.minimum>a&&(n._zod.bag.minimum=e.minimum)}),t._zod.check=n=>{let a=n.value;if(a.length>=e.minimum)return;let s=ys(a);n.issues.push({origin:s,code:"too_small",minimum:e.minimum,inclusive:!0,input:a,inst:t,continue:!e.abort})}}),PP=j("$ZodCheckLengthEquals",(t,e)=>{var i;di.init(t,e),(i=t._zod.def).when??(i.when=n=>{let a=n.value;return!As(a)&&a.length!==void 0}),t._zod.onattach.push(n=>{let a=n._zod.bag;a.minimum=e.length,a.maximum=e.length,a.length=e.length}),t._zod.check=n=>{let a=n.value,r=a.length;if(r===e.length)return;let s=ys(a),o=r>e.length;n.issues.push({origin:s,...o?{code:"too_big",maximum:e.length}:{code:"too_small",minimum:e.length},inclusive:!0,exact:!0,input:n.value,inst:t,continue:!e.abort})}}),Ms=j("$ZodCheckStringFormat",(t,e)=>{var i,n;di.init(t,e),t._zod.onattach.push(a=>{let r=a._zod.bag;r.format=e.format,e.pattern&&(r.patterns??(r.patterns=new Set),r.patterns.add(e.pattern))}),e.pattern?(i=t._zod).check??(i.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})}):(n=t._zod).check??(n.check=()=>{})}),jP=j("$ZodCheckRegex",(t,e)=>{Ms.init(t,e),t._zod.check=i=>{e.pattern.lastIndex=0,!e.pattern.test(i.value)&&i.issues.push({origin:"string",code:"invalid_format",format:"regex",input:i.value,pattern:e.pattern.toString(),inst:t,continue:!e.abort})}}),SP=j("$ZodCheckLowerCase",(t,e)=>{e.pattern??(e.pattern=fP),Ms.init(t,e)}),OP=j("$ZodCheckUpperCase",(t,e)=>{e.pattern??(e.pattern=wP),Ms.init(t,e)}),xP=j("$ZodCheckIncludes",(t,e)=>{di.init(t,e);let i=nt(e.includes),n=new RegExp(typeof e.position=="number"?`^.{${e.position}}${i}`:i);e.pattern=n,t._zod.onattach.push(a=>{let r=a._zod.bag;r.patterns??(r.patterns=new Set),r.patterns.add(n)}),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})}}),TP=j("$ZodCheckStartsWith",(t,e)=>{di.init(t,e);let i=new RegExp(`^${nt(e.prefix)}.*`);e.pattern??(e.pattern=i),t._zod.onattach.push(n=>{let a=n._zod.bag;a.patterns??(a.patterns=new Set),a.patterns.add(i)}),t._zod.check=n=>{n.value.startsWith(e.prefix)||n.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:e.prefix,input:n.value,inst:t,continue:!e.abort})}}),MP=j("$ZodCheckEndsWith",(t,e)=>{di.init(t,e);let i=new RegExp(`.*${nt(e.suffix)}$`);e.pattern??(e.pattern=i),t._zod.onattach.push(n=>{let a=n._zod.bag;a.patterns??(a.patterns=new Set),a.patterns.add(i)}),t._zod.check=n=>{n.value.endsWith(e.suffix)||n.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:e.suffix,input:n.value,inst:t,continue:!e.abort})}});var EP=j("$ZodCheckOverwrite",(t,e)=>{di.init(t,e),t._zod.check=i=>{i.value=e.tx(i.value)}});var Ll=class{constructor(e=[]){this.content=[],this.indent=0,this&&(this.args=e)}indented(e){this.indent+=1,e(this),this.indent-=1}write(e){if(typeof e=="function"){e(this,{execution:"sync"}),e(this,{execution:"async"});return}let n=e.split(` `).filter(s=>s),a=Math.min(...n.map(s=>s.length-s.trimStart().length)),r=n.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,i=this?.args,a=[...(this?.content??[""]).map(r=>` ${r}`)];return new e(...i,a.join(` -`))}};var qP={major:4,minor:4,patch:3};var ke=j("$ZodType",(t,e)=>{var i;t??(t={}),t._zod.def=e,t._zod.bag=t._zod.bag||{},t._zod.version=qP;let n=[...t._zod.def.checks??[]];t._zod.traits.has("$ZodCheck")&&n.unshift(t);for(let a of n)for(let r of a._zod.onattach)r(t);if(n.length===0)(i=t._zod).deferred??(i.deferred=[]),t._zod.deferred?.push(()=>{t._zod.run=t._zod.parse});else{let a=(s,o,l)=>{let u=bt(s),c;for(let p of o){if(p._zod.def.when){if(Td(s)||!p._zod.def.when(s))continue}else if(u)continue;let d=s.issues.length,h=p._zod.check(s);if(h instanceof Promise&&l?.async===!1)throw new Rn;if(c||h instanceof Promise)c=(c??Promise.resolve()).then(async()=>{await h,s.issues.length!==d&&(u||(u=bt(s,d)))});else{if(s.issues.length===d)continue;u||(u=bt(s,d))}}return c?c.then(()=>s):s},r=(s,o,l)=>{if(bt(s))return s.aborted=!0,s;let u=a(o,n,l);if(u instanceof Promise){if(l.async===!1)throw new Rn;return u.then(c=>t._zod.parse(c,l))}return t._zod.parse(u,l)};t._zod.run=(s,o)=>{if(o.skipChecks)return t._zod.parse(s,o);if(o.direction==="backward"){let u=t._zod.parse({value:s.value,issues:[]},{...o,skipChecks:!0});return u instanceof Promise?u.then(c=>r(c,s,o)):r(u,s,o)}let l=t._zod.parse(s,o);if(l instanceof Promise){if(o.async===!1)throw new Rn;return l.then(u=>a(u,n,o))}return a(l,n,o)}}Oe(t,"~standard",()=>({validate:a=>{try{let r=ha(t,a);return r.success?{value:r.data}:{issues:r.error?.issues}}catch{return ga(t,a).then(s=>s.success?{value:s.data}:{issues:s.error?.issues})}},vendor:"zod",version:1}))}),Es=j("$ZodString",(t,e)=>{ke.init(t,e),t._zod.pattern=[...t?._zod.bag?.patterns??[]].pop()??dP(t._zod.bag),t._zod.parse=(i,n)=>{if(e.coerce)try{i.value=String(i.value)}catch{}return typeof i.value=="string"||i.issues.push({expected:"string",code:"invalid_type",input:i.value,inst:t}),i}}),Ie=j("$ZodStringFormat",(t,e)=>{Ms.init(t,e),Es.init(t,e)}),Id=j("$ZodGUID",(t,e)=>{e.pattern??(e.pattern=Qy),Ie.init(t,e)}),zd=j("$ZodUUID",(t,e)=>{if(e.version){let n={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[e.version];if(n===void 0)throw new Error(`Invalid UUID version: "${e.version}"`);e.pattern??(e.pattern=Ed(n))}else e.pattern??(e.pattern=Ed());Ie.init(t,e)}),Dd=j("$ZodEmail",(t,e)=>{e.pattern??(e.pattern=Yy),Ie.init(t,e)}),Gd=j("$ZodURL",(t,e)=>{Ie.init(t,e),t._zod.check=i=>{try{let n=i.value.trim();if(!e.normalize&&e.protocol?.source===rP.source&&!/^https?:\/\//i.test(n)){i.issues.push({code:"invalid_format",format:"url",note:"Invalid URL format",input:i.value,inst:t,continue:!e.abort});return}let a=new URL(n);e.hostname&&(e.hostname.lastIndex=0,e.hostname.test(a.hostname)||i.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:e.hostname.source,input:i.value,inst:t,continue:!e.abort})),e.protocol&&(e.protocol.lastIndex=0,e.protocol.test(a.protocol.endsWith(":")?a.protocol.slice(0,-1):a.protocol)||i.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:e.protocol.source,input:i.value,inst:t,continue:!e.abort})),e.normalize?i.value=a.href:i.value=n;return}catch{i.issues.push({code:"invalid_format",format:"url",input:i.value,inst:t,continue:!e.abort})}}}),$d=j("$ZodEmoji",(t,e)=>{e.pattern??(e.pattern=Xy()),Ie.init(t,e)}),Nd=j("$ZodNanoID",(t,e)=>{e.pattern??(e.pattern=Zy),Ie.init(t,e)}),Ud=j("$ZodCUID",(t,e)=>{e.pattern??(e.pattern=Wy),Ie.init(t,e)}),Ld=j("$ZodCUID2",(t,e)=>{e.pattern??(e.pattern=By),Ie.init(t,e)}),Wd=j("$ZodULID",(t,e)=>{e.pattern??(e.pattern=Fy),Ie.init(t,e)}),Bd=j("$ZodXID",(t,e)=>{e.pattern??(e.pattern=Vy),Ie.init(t,e)}),Fd=j("$ZodKSUID",(t,e)=>{e.pattern??(e.pattern=Jy),Ie.init(t,e)}),NP=j("$ZodISODateTime",(t,e)=>{e.pattern??(e.pattern=pP(e)),Ie.init(t,e)}),UP=j("$ZodISODate",(t,e)=>{e.pattern??(e.pattern=lP),Ie.init(t,e)}),LP=j("$ZodISOTime",(t,e)=>{e.pattern??(e.pattern=cP(e)),Ie.init(t,e)}),WP=j("$ZodISODuration",(t,e)=>{e.pattern??(e.pattern=Ky),Ie.init(t,e)}),Vd=j("$ZodIPv4",(t,e)=>{e.pattern??(e.pattern=eP),Ie.init(t,e),t._zod.bag.format="ipv4"}),Jd=j("$ZodIPv6",(t,e)=>{e.pattern??(e.pattern=iP),Ie.init(t,e),t._zod.bag.format="ipv6",t._zod.check=i=>{try{new URL(`http://[${i.value}]`)}catch{i.issues.push({code:"invalid_format",format:"ipv6",input:i.value,inst:t,continue:!e.abort})}}});var Zd=j("$ZodCIDRv4",(t,e)=>{e.pattern??(e.pattern=nP),Ie.init(t,e)}),Kd=j("$ZodCIDRv6",(t,e)=>{e.pattern??(e.pattern=tP),Ie.init(t,e),t._zod.check=i=>{let n=i.value.split("/");try{if(n.length!==2)throw new Error;let[a,r]=n;if(!r)throw new Error;let s=Number(r);if(`${s}`!==r)throw new Error;if(s<0||s>128)throw new Error;new URL(`http://[${a}]`)}catch{i.issues.push({code:"invalid_format",format:"cidrv6",input:i.value,inst:t,continue:!e.abort})}}});function BP(t){if(t==="")return!0;if(/\s/.test(t)||t.length%4!==0)return!1;try{return atob(t),!0}catch{return!1}}var Qd=j("$ZodBase64",(t,e)=>{e.pattern??(e.pattern=aP),Ie.init(t,e),t._zod.bag.contentEncoding="base64",t._zod.check=i=>{BP(i.value)||i.issues.push({code:"invalid_format",format:"base64",input:i.value,inst:t,continue:!e.abort})}});function Xz(t){if(!kd.test(t))return!1;let e=t.replace(/[-_]/g,n=>n==="-"?"+":"/"),i=e.padEnd(Math.ceil(e.length/4)*4,"=");return BP(i)}var Yd=j("$ZodBase64URL",(t,e)=>{e.pattern??(e.pattern=kd),Ie.init(t,e),t._zod.bag.contentEncoding="base64url",t._zod.check=i=>{Xz(i.value)||i.issues.push({code:"invalid_format",format:"base64url",input:i.value,inst:t,continue:!e.abort})}}),Xd=j("$ZodE164",(t,e)=>{e.pattern??(e.pattern=sP),Ie.init(t,e)});function eD(t,e=null){try{let i=t.split(".");if(i.length!==3)return!1;let[n]=i;if(!n)return!1;let a=JSON.parse(atob(n));return!("typ"in a&&a?.typ!=="JWT"||!a.alg||e&&(!("alg"in a)||a.alg!==e))}catch{return!1}}var eh=j("$ZodJWT",(t,e)=>{Ie.init(t,e),t._zod.check=i=>{eD(i.value,e.alg)||i.issues.push({code:"invalid_format",format:"jwt",input:i.value,inst:t,continue:!e.abort})}});var Fl=j("$ZodNumber",(t,e)=>{ke.init(t,e),t._zod.pattern=t._zod.bag.pattern??qd,t._zod.parse=(i,n)=>{if(e.coerce)try{i.value=Number(i.value)}catch{}let a=i.value;if(typeof a=="number"&&!Number.isNaN(a)&&Number.isFinite(a))return i;let r=typeof a=="number"?Number.isNaN(a)?"NaN":Number.isFinite(a)?void 0:"Infinity":void 0;return i.issues.push({expected:"number",code:"invalid_type",input:a,inst:t,...r?{received:r}:{}}),i}}),ih=j("$ZodNumberFormat",(t,e)=>{AP.init(t,e),Fl.init(t,e)}),nh=j("$ZodBoolean",(t,e)=>{ke.init(t,e),t._zod.pattern=gP,t._zod.parse=(i,n)=>{if(e.coerce)try{i.value=!!i.value}catch{}let a=i.value;return typeof a=="boolean"||i.issues.push({expected:"boolean",code:"invalid_type",input:a,inst:t}),i}});var th=j("$ZodNull",(t,e)=>{ke.init(t,e),t._zod.pattern=mP,t._zod.values=new Set([null]),t._zod.parse=(i,n)=>{let a=i.value;return a===null||i.issues.push({expected:"null",code:"invalid_type",input:a,inst:t}),i}});var ah=j("$ZodUnknown",(t,e)=>{ke.init(t,e),t._zod.parse=i=>i}),rh=j("$ZodNever",(t,e)=>{ke.init(t,e),t._zod.parse=(i,n)=>(i.issues.push({expected:"never",code:"invalid_type",input:i.value,inst:t}),i)});function _P(t,e,i){t.issues.length&&e.issues.push(...tt(i,t.issues)),e.value[i]=t.value}var sh=j("$ZodArray",(t,e)=>{ke.init(t,e),t._zod.parse=(i,n)=>{let a=i.value;if(!Array.isArray(a))return i.issues.push({expected:"array",code:"invalid_type",input:a,inst:t}),i;i.value=Array(a.length);let r=[];for(let s=0;s_P(u,i,s))):_P(l,i,s)}return r.length?Promise.all(r).then(()=>i):i}});function Bl(t,e,i,n,a,r){let s=i in n;if(t.issues.length){if(a&&r&&!s)return;e.issues.push(...tt(i,t.issues))}if(!s&&!a){t.issues.length||e.issues.push({code:"invalid_type",expected:"nonoptional",input:void 0,path:[i]});return}t.value===void 0?s&&(e.value[i]=void 0):e.value[i]=t.value}function FP(t){let e=Object.keys(t.shape);for(let n of e)if(!t.shape?.[n]?._zod?.traits?.has("$ZodType"))throw new Error(`Invalid element at key "${n}": expected a Zod schema`);let i=Od(t.shape);return{...t,keys:e,keySet:new Set(e),numKeys:e.length,optionalKeys:new Set(i)}}function VP(t,e,i,n,a,r){let s=[],o=a.keySet,l=a.catchall._zod,u=l.def.type,c=l.optin==="optional",p=l.optout==="optional";for(let d in e){if(d==="__proto__"||o.has(d))continue;if(u==="never"){s.push(d);continue}let h=l.run({value:e[d],issues:[]},n);h instanceof Promise?t.push(h.then(g=>Bl(g,i,d,e,c,p))):Bl(h,i,d,e,c,p)}return s.length&&i.issues.push({code:"unrecognized_keys",keys:s,input:e,inst:r}),t.length?Promise.all(t).then(()=>i):i}var oh=j("$ZodObject",(t,e)=>{if(ke.init(t,e),!Object.getOwnPropertyDescriptor(e,"shape")?.get){let o=e.shape;Object.defineProperty(e,"shape",{get:()=>{let l={...o};return Object.defineProperty(e,"shape",{value:l}),l}})}let n=pr(()=>FP(e));Oe(t._zod,"propValues",()=>{let o=e.shape,l={};for(let u in o){let c=o[u]._zod;if(c.values){l[u]??(l[u]=new Set);for(let p of c.values)l[u].add(p)}}return l});let a=da,r=e.catchall,s;t._zod.parse=(o,l)=>{s??(s=n.value);let u=o.value;if(!a(u))return o.issues.push({expected:"object",code:"invalid_type",input:u,inst:t}),o;o.value={};let c=[],p=s.shape;for(let d of s.keys){let h=p[d],g=h._zod.optin==="optional",m=h._zod.optout==="optional",f=h._zod.run({value:u[d],issues:[]},l);f instanceof Promise?c.push(f.then(v=>Bl(v,o,d,u,g,m))):Bl(f,o,d,u,g,m)}return r?VP(c,u,o,l,n.value,t):c.length?Promise.all(c).then(()=>o):o}}),JP=j("$ZodObjectJIT",(t,e)=>{oh.init(t,e);let i=t._zod.parse,n=pr(()=>FP(e)),a=d=>{let h=new Ll(["shape","payload","ctx"]),g=n.value,m=A=>{let b=zl(A);return`shape[${b}]._zod.run({ value: input[${b}], issues: [] }, ctx)`};h.write("const input = payload.value;");let f=Object.create(null),v=0;for(let A of g.keys)f[A]=`key_${v++}`;h.write("const newResult = {};");for(let A of g.keys){let b=f[A],O=zl(A),$=d[A],N=$?._zod?.optin==="optional",X=$?._zod?.optout==="optional";h.write(`const ${b} = ${m(A)};`),N&&X?h.write(` +`))}};var qP={major:4,minor:4,patch:3};var ke=j("$ZodType",(t,e)=>{var i;t??(t={}),t._zod.def=e,t._zod.bag=t._zod.bag||{},t._zod.version=qP;let n=[...t._zod.def.checks??[]];t._zod.traits.has("$ZodCheck")&&n.unshift(t);for(let a of n)for(let r of a._zod.onattach)r(t);if(n.length===0)(i=t._zod).deferred??(i.deferred=[]),t._zod.deferred?.push(()=>{t._zod.run=t._zod.parse});else{let a=(s,o,l)=>{let u=bt(s),c;for(let p of o){if(p._zod.def.when){if(Td(s)||!p._zod.def.when(s))continue}else if(u)continue;let d=s.issues.length,h=p._zod.check(s);if(h instanceof Promise&&l?.async===!1)throw new Rn;if(c||h instanceof Promise)c=(c??Promise.resolve()).then(async()=>{await h,s.issues.length!==d&&(u||(u=bt(s,d)))});else{if(s.issues.length===d)continue;u||(u=bt(s,d))}}return c?c.then(()=>s):s},r=(s,o,l)=>{if(bt(s))return s.aborted=!0,s;let u=a(o,n,l);if(u instanceof Promise){if(l.async===!1)throw new Rn;return u.then(c=>t._zod.parse(c,l))}return t._zod.parse(u,l)};t._zod.run=(s,o)=>{if(o.skipChecks)return t._zod.parse(s,o);if(o.direction==="backward"){let u=t._zod.parse({value:s.value,issues:[]},{...o,skipChecks:!0});return u instanceof Promise?u.then(c=>r(c,s,o)):r(u,s,o)}let l=t._zod.parse(s,o);if(l instanceof Promise){if(o.async===!1)throw new Rn;return l.then(u=>a(u,n,o))}return a(l,n,o)}}Oe(t,"~standard",()=>({validate:a=>{try{let r=ha(t,a);return r.success?{value:r.data}:{issues:r.error?.issues}}catch{return ga(t,a).then(s=>s.success?{value:s.data}:{issues:s.error?.issues})}},vendor:"zod",version:1}))}),Es=j("$ZodString",(t,e)=>{ke.init(t,e),t._zod.pattern=[...t?._zod.bag?.patterns??[]].pop()??dP(t._zod.bag),t._zod.parse=(i,n)=>{if(e.coerce)try{i.value=String(i.value)}catch{}return typeof i.value=="string"||i.issues.push({expected:"string",code:"invalid_type",input:i.value,inst:t}),i}}),Ie=j("$ZodStringFormat",(t,e)=>{Ms.init(t,e),Es.init(t,e)}),Id=j("$ZodGUID",(t,e)=>{e.pattern??(e.pattern=Qy),Ie.init(t,e)}),zd=j("$ZodUUID",(t,e)=>{if(e.version){let n={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[e.version];if(n===void 0)throw new Error(`Invalid UUID version: "${e.version}"`);e.pattern??(e.pattern=Ed(n))}else e.pattern??(e.pattern=Ed());Ie.init(t,e)}),Dd=j("$ZodEmail",(t,e)=>{e.pattern??(e.pattern=Yy),Ie.init(t,e)}),Gd=j("$ZodURL",(t,e)=>{Ie.init(t,e),t._zod.check=i=>{try{let n=i.value.trim();if(!e.normalize&&e.protocol?.source===rP.source&&!/^https?:\/\//i.test(n)){i.issues.push({code:"invalid_format",format:"url",note:"Invalid URL format",input:i.value,inst:t,continue:!e.abort});return}let a=new URL(n);e.hostname&&(e.hostname.lastIndex=0,e.hostname.test(a.hostname)||i.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:e.hostname.source,input:i.value,inst:t,continue:!e.abort})),e.protocol&&(e.protocol.lastIndex=0,e.protocol.test(a.protocol.endsWith(":")?a.protocol.slice(0,-1):a.protocol)||i.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:e.protocol.source,input:i.value,inst:t,continue:!e.abort})),e.normalize?i.value=a.href:i.value=n;return}catch{i.issues.push({code:"invalid_format",format:"url",input:i.value,inst:t,continue:!e.abort})}}}),$d=j("$ZodEmoji",(t,e)=>{e.pattern??(e.pattern=Xy()),Ie.init(t,e)}),Nd=j("$ZodNanoID",(t,e)=>{e.pattern??(e.pattern=Zy),Ie.init(t,e)}),Ud=j("$ZodCUID",(t,e)=>{e.pattern??(e.pattern=Wy),Ie.init(t,e)}),Ld=j("$ZodCUID2",(t,e)=>{e.pattern??(e.pattern=By),Ie.init(t,e)}),Wd=j("$ZodULID",(t,e)=>{e.pattern??(e.pattern=Fy),Ie.init(t,e)}),Bd=j("$ZodXID",(t,e)=>{e.pattern??(e.pattern=Vy),Ie.init(t,e)}),Fd=j("$ZodKSUID",(t,e)=>{e.pattern??(e.pattern=Jy),Ie.init(t,e)}),NP=j("$ZodISODateTime",(t,e)=>{e.pattern??(e.pattern=pP(e)),Ie.init(t,e)}),UP=j("$ZodISODate",(t,e)=>{e.pattern??(e.pattern=lP),Ie.init(t,e)}),LP=j("$ZodISOTime",(t,e)=>{e.pattern??(e.pattern=cP(e)),Ie.init(t,e)}),WP=j("$ZodISODuration",(t,e)=>{e.pattern??(e.pattern=Ky),Ie.init(t,e)}),Vd=j("$ZodIPv4",(t,e)=>{e.pattern??(e.pattern=eP),Ie.init(t,e),t._zod.bag.format="ipv4"}),Jd=j("$ZodIPv6",(t,e)=>{e.pattern??(e.pattern=iP),Ie.init(t,e),t._zod.bag.format="ipv6",t._zod.check=i=>{try{new URL(`http://[${i.value}]`)}catch{i.issues.push({code:"invalid_format",format:"ipv6",input:i.value,inst:t,continue:!e.abort})}}});var Zd=j("$ZodCIDRv4",(t,e)=>{e.pattern??(e.pattern=nP),Ie.init(t,e)}),Kd=j("$ZodCIDRv6",(t,e)=>{e.pattern??(e.pattern=tP),Ie.init(t,e),t._zod.check=i=>{let n=i.value.split("/");try{if(n.length!==2)throw new Error;let[a,r]=n;if(!r)throw new Error;let s=Number(r);if(`${s}`!==r)throw new Error;if(s<0||s>128)throw new Error;new URL(`http://[${a}]`)}catch{i.issues.push({code:"invalid_format",format:"cidrv6",input:i.value,inst:t,continue:!e.abort})}}});function BP(t){if(t==="")return!0;if(/\s/.test(t)||t.length%4!==0)return!1;try{return atob(t),!0}catch{return!1}}var Qd=j("$ZodBase64",(t,e)=>{e.pattern??(e.pattern=aP),Ie.init(t,e),t._zod.bag.contentEncoding="base64",t._zod.check=i=>{BP(i.value)||i.issues.push({code:"invalid_format",format:"base64",input:i.value,inst:t,continue:!e.abort})}});function Xz(t){if(!kd.test(t))return!1;let e=t.replace(/[-_]/g,n=>n==="-"?"+":"/"),i=e.padEnd(Math.ceil(e.length/4)*4,"=");return BP(i)}var Yd=j("$ZodBase64URL",(t,e)=>{e.pattern??(e.pattern=kd),Ie.init(t,e),t._zod.bag.contentEncoding="base64url",t._zod.check=i=>{Xz(i.value)||i.issues.push({code:"invalid_format",format:"base64url",input:i.value,inst:t,continue:!e.abort})}}),Xd=j("$ZodE164",(t,e)=>{e.pattern??(e.pattern=sP),Ie.init(t,e)});function eD(t,e=null){try{let i=t.split(".");if(i.length!==3)return!1;let[n]=i;if(!n)return!1;let a=JSON.parse(atob(n));return!("typ"in a&&a?.typ!=="JWT"||!a.alg||e&&(!("alg"in a)||a.alg!==e))}catch{return!1}}var eh=j("$ZodJWT",(t,e)=>{Ie.init(t,e),t._zod.check=i=>{eD(i.value,e.alg)||i.issues.push({code:"invalid_format",format:"jwt",input:i.value,inst:t,continue:!e.abort})}});var Fl=j("$ZodNumber",(t,e)=>{ke.init(t,e),t._zod.pattern=t._zod.bag.pattern??qd,t._zod.parse=(i,n)=>{if(e.coerce)try{i.value=Number(i.value)}catch{}let a=i.value;if(typeof a=="number"&&!Number.isNaN(a)&&Number.isFinite(a))return i;let r=typeof a=="number"?Number.isNaN(a)?"NaN":Number.isFinite(a)?void 0:"Infinity":void 0;return i.issues.push({expected:"number",code:"invalid_type",input:a,inst:t,...r?{received:r}:{}}),i}}),ih=j("$ZodNumberFormat",(t,e)=>{AP.init(t,e),Fl.init(t,e)}),nh=j("$ZodBoolean",(t,e)=>{ke.init(t,e),t._zod.pattern=gP,t._zod.parse=(i,n)=>{if(e.coerce)try{i.value=!!i.value}catch{}let a=i.value;return typeof a=="boolean"||i.issues.push({expected:"boolean",code:"invalid_type",input:a,inst:t}),i}});var th=j("$ZodNull",(t,e)=>{ke.init(t,e),t._zod.pattern=mP,t._zod.values=new Set([null]),t._zod.parse=(i,n)=>{let a=i.value;return a===null||i.issues.push({expected:"null",code:"invalid_type",input:a,inst:t}),i}});var ah=j("$ZodUnknown",(t,e)=>{ke.init(t,e),t._zod.parse=i=>i}),rh=j("$ZodNever",(t,e)=>{ke.init(t,e),t._zod.parse=(i,n)=>(i.issues.push({expected:"never",code:"invalid_type",input:i.value,inst:t}),i)});function _P(t,e,i){t.issues.length&&e.issues.push(...tt(i,t.issues)),e.value[i]=t.value}var sh=j("$ZodArray",(t,e)=>{ke.init(t,e),t._zod.parse=(i,n)=>{let a=i.value;if(!Array.isArray(a))return i.issues.push({expected:"array",code:"invalid_type",input:a,inst:t}),i;i.value=Array(a.length);let r=[];for(let s=0;s_P(u,i,s))):_P(l,i,s)}return r.length?Promise.all(r).then(()=>i):i}});function Bl(t,e,i,n,a,r){let s=i in n;if(t.issues.length){if(a&&r&&!s)return;e.issues.push(...tt(i,t.issues))}if(!s&&!a){t.issues.length||e.issues.push({code:"invalid_type",expected:"nonoptional",input:void 0,path:[i]});return}t.value===void 0?s&&(e.value[i]=void 0):e.value[i]=t.value}function FP(t){let e=Object.keys(t.shape);for(let n of e)if(!t.shape?.[n]?._zod?.traits?.has("$ZodType"))throw new Error(`Invalid element at key "${n}": expected a Zod schema`);let i=Od(t.shape);return{...t,keys:e,keySet:new Set(e),numKeys:e.length,optionalKeys:new Set(i)}}function VP(t,e,i,n,a,r){let s=[],o=a.keySet,l=a.catchall._zod,u=l.def.type,c=l.optin==="optional",p=l.optout==="optional";for(let d in e){if(d==="__proto__"||o.has(d))continue;if(u==="never"){s.push(d);continue}let h=l.run({value:e[d],issues:[]},n);h instanceof Promise?t.push(h.then(g=>Bl(g,i,d,e,c,p))):Bl(h,i,d,e,c,p)}return s.length&&i.issues.push({code:"unrecognized_keys",keys:s,input:e,inst:r}),t.length?Promise.all(t).then(()=>i):i}var oh=j("$ZodObject",(t,e)=>{if(ke.init(t,e),!Object.getOwnPropertyDescriptor(e,"shape")?.get){let o=e.shape;Object.defineProperty(e,"shape",{get:()=>{let l={...o};return Object.defineProperty(e,"shape",{value:l}),l}})}let n=dr(()=>FP(e));Oe(t._zod,"propValues",()=>{let o=e.shape,l={};for(let u in o){let c=o[u]._zod;if(c.values){l[u]??(l[u]=new Set);for(let p of c.values)l[u].add(p)}}return l});let a=da,r=e.catchall,s;t._zod.parse=(o,l)=>{s??(s=n.value);let u=o.value;if(!a(u))return o.issues.push({expected:"object",code:"invalid_type",input:u,inst:t}),o;o.value={};let c=[],p=s.shape;for(let d of s.keys){let h=p[d],g=h._zod.optin==="optional",m=h._zod.optout==="optional",f=h._zod.run({value:u[d],issues:[]},l);f instanceof Promise?c.push(f.then(v=>Bl(v,o,d,u,g,m))):Bl(f,o,d,u,g,m)}return r?VP(c,u,o,l,n.value,t):c.length?Promise.all(c).then(()=>o):o}}),JP=j("$ZodObjectJIT",(t,e)=>{oh.init(t,e);let i=t._zod.parse,n=dr(()=>FP(e)),a=d=>{let h=new Ll(["shape","payload","ctx"]),g=n.value,m=A=>{let b=zl(A);return`shape[${b}]._zod.run({ value: input[${b}], issues: [] }, ctx)`};h.write("const input = payload.value;");let f=Object.create(null),v=0;for(let A of g.keys)f[A]=`key_${v++}`;h.write("const newResult = {};");for(let A of g.keys){let b=f[A],O=zl(A),$=d[A],N=$?._zod?.optin==="optional",X=$?._zod?.optout==="optional";h.write(`const ${b} = ${m(A)};`),N&&X?h.write(` if (${b}.issues.length) { if (${O} in input) { payload.issues = payload.issues.concat(${b}.issues.map(iss => ({ @@ -134,15 +134,15 @@ ${this.formatValue("Status",i)}${this.formatValue("Headers",this.formatHeaderStr } } - `)}h.write("payload.value = newResult;"),h.write("return payload;");let y=h.compile();return(A,b)=>y(d,A,b)},r,s=da,o=!ur.jitless,u=o&&Pd.value,c=e.catchall,p;t._zod.parse=(d,h)=>{p??(p=n.value);let g=d.value;return s(g)?o&&u&&h?.async===!1&&h.jitless!==!0?(r||(r=a(e.shape)),d=r(d,h),c?VP([],g,d,h,p,t):d):i(d,h):(d.issues.push({expected:"object",code:"invalid_type",input:g,inst:t}),d)}});function HP(t,e,i,n){for(let r of t)if(r.issues.length===0)return e.value=r.value,e;let a=t.filter(r=>!bt(r));return a.length===1?(e.value=a[0].value,a[0]):(e.issues.push({code:"invalid_union",input:e.value,inst:i,errors:t.map(r=>r.issues.map(s=>sn(s,n,Qi())))}),e)}var Vl=j("$ZodUnion",(t,e)=>{ke.init(t,e),Oe(t._zod,"optin",()=>e.options.some(n=>n._zod.optin==="optional")?"optional":void 0),Oe(t._zod,"optout",()=>e.options.some(n=>n._zod.optout==="optional")?"optional":void 0),Oe(t._zod,"values",()=>{if(e.options.every(n=>n._zod.values))return new Set(e.options.flatMap(n=>Array.from(n._zod.values)))}),Oe(t._zod,"pattern",()=>{if(e.options.every(n=>n._zod.pattern)){let n=e.options.map(a=>a._zod.pattern);return new RegExp(`^(${n.map(a=>bs(a.source)).join("|")})$`)}});let i=e.options.length===1?e.options[0]._zod.run:null;t._zod.parse=(n,a)=>{if(i)return i(n,a);let r=!1,s=[];for(let o of e.options){let l=o._zod.run({value:n.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=>HP(o,n,t,a)):HP(s,n,t,a)}});var lh=j("$ZodDiscriminatedUnion",(t,e)=>{e.inclusive=!1,Vl.init(t,e);let i=t._zod.parse;Oe(t._zod,"propValues",()=>{let a={};for(let r of e.options){let s=r._zod.propValues;if(!s||Object.keys(s).length===0)throw new Error(`Invalid discriminated union option at index "${e.options.indexOf(r)}"`);for(let[o,l]of Object.entries(s)){a[o]||(a[o]=new Set);for(let u of l)a[o].add(u)}}return a});let n=pr(()=>{let a=e.options,r=new Map;for(let s of a){let o=s._zod.propValues?.[e.discriminator];if(!o||o.size===0)throw new Error(`Invalid discriminated union option at index "${e.options.indexOf(s)}"`);for(let l of o){if(r.has(l))throw new Error(`Duplicate discriminator value "${String(l)}"`);r.set(l,s)}}return r});t._zod.parse=(a,r)=>{let s=a.value;if(!da(s))return a.issues.push({code:"invalid_type",expected:"object",input:s,inst:t}),a;let o=n.value.get(s?.[e.discriminator]);return o?o._zod.run(a,r):e.unionFallback||r.direction==="backward"?i(a,r):(a.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:e.discriminator,options:Array.from(n.value.keys()),input:s,path:[e.discriminator],inst:t}),a)}}),uh=j("$ZodIntersection",(t,e)=>{ke.init(t,e),t._zod.parse=(i,n)=>{let a=i.value,r=e.left._zod.run({value:a,issues:[]},n),s=e.right._zod.run({value:a,issues:[]},n);return r instanceof Promise||s instanceof Promise?Promise.all([r,s]).then(([l,u])=>RP(i,l,u)):RP(i,r,s)}});function Rd(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(At(t)&&At(e)){let i=Object.keys(e),n=Object.keys(t).filter(r=>i.indexOf(r)!==-1),a={...t,...e};for(let r of n){let s=Rd(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 i=[];for(let n=0;no.l&&o.r).map(([o])=>o);if(r.length&&a&&t.issues.push({...a,keys:r}),bt(t))return t;let s=Rd(e.value,i.value);if(!s.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(s.mergeErrorPath)}`);return t.value=s.data,t}var ch=j("$ZodRecord",(t,e)=>{ke.init(t,e),t._zod.parse=(i,n)=>{let a=i.value;if(!At(a))return i.issues.push({expected:"record",code:"invalid_type",input:a,inst:t}),i;let r=[],s=e.keyType._zod.values;if(s){i.value={};let o=new Set;for(let u of s)if(typeof u=="string"||typeof u=="number"||typeof u=="symbol"){o.add(typeof u=="number"?u.toString():u);let c=e.keyType._zod.run({value:u,issues:[]},n);if(c instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(c.issues.length){i.issues.push({code:"invalid_key",origin:"record",issues:c.issues.map(h=>sn(h,n,Qi())),input:u,path:[u],inst:t});continue}let p=c.value,d=e.valueType._zod.run({value:a[u],issues:[]},n);d instanceof Promise?r.push(d.then(h=>{h.issues.length&&i.issues.push(...tt(u,h.issues)),i.value[p]=h.value})):(d.issues.length&&i.issues.push(...tt(u,d.issues)),i.value[p]=d.value)}let l;for(let u in a)o.has(u)||(l=l??[],l.push(u));l&&l.length>0&&i.issues.push({code:"unrecognized_keys",input:a,inst:t,keys:l})}else{i.value={};for(let o of Reflect.ownKeys(a)){if(o==="__proto__"||!Object.prototype.propertyIsEnumerable.call(a,o))continue;let l=e.keyType._zod.run({value:o,issues:[]},n);if(l instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(typeof o=="string"&&qd.test(o)&&l.issues.length){let p=e.keyType._zod.run({value:Number(o),issues:[]},n);if(p instanceof Promise)throw new Error("Async schemas not supported in object keys currently");p.issues.length===0&&(l=p)}if(l.issues.length){e.mode==="loose"?i.value[o]=a[o]:i.issues.push({code:"invalid_key",origin:"record",issues:l.issues.map(p=>sn(p,n,Qi())),input:o,path:[o],inst:t});continue}let c=e.valueType._zod.run({value:a[o],issues:[]},n);c instanceof Promise?r.push(c.then(p=>{p.issues.length&&i.issues.push(...tt(o,p.issues)),i.value[l.value]=p.value})):(c.issues.length&&i.issues.push(...tt(o,c.issues)),i.value[l.value]=c.value)}}return r.length?Promise.all(r).then(()=>i):i}});var ph=j("$ZodEnum",(t,e)=>{ke.init(t,e);let i=Cs(e.entries),n=new Set(i);t._zod.values=n,t._zod.pattern=new RegExp(`^(${i.filter(a=>Sd.has(typeof a)).map(a=>typeof a=="string"?nt(a):a.toString()).join("|")})$`),t._zod.parse=(a,r)=>{let s=a.value;return n.has(s)||a.issues.push({code:"invalid_value",values:i,input:s,inst:t}),a}}),dh=j("$ZodLiteral",(t,e)=>{if(ke.init(t,e),e.values.length===0)throw new Error("Cannot create literal schema with no valid values");let i=new Set(e.values);t._zod.values=i,t._zod.pattern=new RegExp(`^(${e.values.map(n=>typeof n=="string"?nt(n):n?nt(n.toString()):String(n)).join("|")})$`),t._zod.parse=(n,a)=>{let r=n.value;return i.has(r)||n.issues.push({code:"invalid_value",values:e.values,input:r,inst:t}),n}});var hh=j("$ZodTransform",(t,e)=>{ke.init(t,e),t._zod.optin="optional",t._zod.parse=(i,n)=>{if(n.direction==="backward")throw new lr(t.constructor.name);let a=e.transform(i.value,i);if(n.async)return(a instanceof Promise?a:Promise.resolve(a)).then(s=>(i.value=s,i.fallback=!0,i));if(a instanceof Promise)throw new Rn;return i.value=a,i.fallback=!0,i}});function IP(t,e){return e===void 0&&(t.issues.length||t.fallback)?{issues:[],value:void 0}:t}var Jl=j("$ZodOptional",(t,e)=>{ke.init(t,e),t._zod.optin="optional",t._zod.optout="optional",Oe(t._zod,"values",()=>e.innerType._zod.values?new Set([...e.innerType._zod.values,void 0]):void 0),Oe(t._zod,"pattern",()=>{let i=e.innerType._zod.pattern;return i?new RegExp(`^(${bs(i.source)})?$`):void 0}),t._zod.parse=(i,n)=>{if(e.innerType._zod.optin==="optional"){let a=i.value,r=e.innerType._zod.run(i,n);return r instanceof Promise?r.then(s=>IP(s,a)):IP(r,a)}return i.value===void 0?i:e.innerType._zod.run(i,n)}}),gh=j("$ZodExactOptional",(t,e)=>{Jl.init(t,e),Oe(t._zod,"values",()=>e.innerType._zod.values),Oe(t._zod,"pattern",()=>e.innerType._zod.pattern),t._zod.parse=(i,n)=>e.innerType._zod.run(i,n)}),mh=j("$ZodNullable",(t,e)=>{ke.init(t,e),Oe(t._zod,"optin",()=>e.innerType._zod.optin),Oe(t._zod,"optout",()=>e.innerType._zod.optout),Oe(t._zod,"pattern",()=>{let i=e.innerType._zod.pattern;return i?new RegExp(`^(${bs(i.source)}|null)$`):void 0}),Oe(t._zod,"values",()=>e.innerType._zod.values?new Set([...e.innerType._zod.values,null]):void 0),t._zod.parse=(i,n)=>i.value===null?i:e.innerType._zod.run(i,n)}),fh=j("$ZodDefault",(t,e)=>{ke.init(t,e),t._zod.optin="optional",Oe(t._zod,"values",()=>e.innerType._zod.values),t._zod.parse=(i,n)=>{if(n.direction==="backward")return e.innerType._zod.run(i,n);if(i.value===void 0)return i.value=e.defaultValue,i;let a=e.innerType._zod.run(i,n);return a instanceof Promise?a.then(r=>zP(r,e)):zP(a,e)}});function zP(t,e){return t.value===void 0&&(t.value=e.defaultValue),t}var wh=j("$ZodPrefault",(t,e)=>{ke.init(t,e),t._zod.optin="optional",Oe(t._zod,"values",()=>e.innerType._zod.values),t._zod.parse=(i,n)=>(n.direction==="backward"||i.value===void 0&&(i.value=e.defaultValue),e.innerType._zod.run(i,n))}),vh=j("$ZodNonOptional",(t,e)=>{ke.init(t,e),Oe(t._zod,"values",()=>{let i=e.innerType._zod.values;return i?new Set([...i].filter(n=>n!==void 0)):void 0}),t._zod.parse=(i,n)=>{let a=e.innerType._zod.run(i,n);return a instanceof Promise?a.then(r=>DP(r,t)):DP(a,t)}});function DP(t,e){return!t.issues.length&&t.value===void 0&&t.issues.push({code:"invalid_type",expected:"nonoptional",input:t.value,inst:e}),t}var Ch=j("$ZodCatch",(t,e)=>{ke.init(t,e),t._zod.optin="optional",Oe(t._zod,"optout",()=>e.innerType._zod.optout),Oe(t._zod,"values",()=>e.innerType._zod.values),t._zod.parse=(i,n)=>{if(n.direction==="backward")return e.innerType._zod.run(i,n);let a=e.innerType._zod.run(i,n);return a instanceof Promise?a.then(r=>(i.value=r.value,r.issues.length&&(i.value=e.catchValue({...i,error:{issues:r.issues.map(s=>sn(s,n,Qi()))},input:i.value}),i.issues=[],i.fallback=!0),i)):(i.value=a.value,a.issues.length&&(i.value=e.catchValue({...i,error:{issues:a.issues.map(r=>sn(r,n,Qi()))},input:i.value}),i.issues=[],i.fallback=!0),i)}});var Zl=j("$ZodPipe",(t,e)=>{ke.init(t,e),Oe(t._zod,"values",()=>e.in._zod.values),Oe(t._zod,"optin",()=>e.in._zod.optin),Oe(t._zod,"optout",()=>e.out._zod.optout),Oe(t._zod,"propValues",()=>e.in._zod.propValues),t._zod.parse=(i,n)=>{if(n.direction==="backward"){let r=e.out._zod.run(i,n);return r instanceof Promise?r.then(s=>Wl(s,e.in,n)):Wl(r,e.in,n)}let a=e.in._zod.run(i,n);return a instanceof Promise?a.then(r=>Wl(r,e.out,n)):Wl(a,e.out,n)}});function Wl(t,e,i){return t.issues.length?(t.aborted=!0,t):e._zod.run({value:t.value,issues:t.issues,fallback:t.fallback},i)}var ZP=j("$ZodPreprocess",(t,e)=>{Zl.init(t,e)}),Ah=j("$ZodReadonly",(t,e)=>{ke.init(t,e),Oe(t._zod,"propValues",()=>e.innerType._zod.propValues),Oe(t._zod,"values",()=>e.innerType._zod.values),Oe(t._zod,"optin",()=>e.innerType?._zod?.optin),Oe(t._zod,"optout",()=>e.innerType?._zod?.optout),t._zod.parse=(i,n)=>{if(n.direction==="backward")return e.innerType._zod.run(i,n);let a=e.innerType._zod.run(i,n);return a instanceof Promise?a.then(GP):GP(a)}});function GP(t){return t.value=Object.freeze(t.value),t}var bh=j("$ZodCustom",(t,e)=>{di.init(t,e),ke.init(t,e),t._zod.parse=(i,n)=>i,t._zod.check=i=>{let n=i.value,a=e.fn(n);if(a instanceof Promise)return a.then(r=>$P(r,i,n,t));$P(a,i,n,t)}});function $P(t,e,i,n){if(!t){let a={code:"custom",input:i,inst:n,path:[...n._zod.def.path??[]],continue:!n._zod.def.abort};n._zod.def.params&&(a.params=n._zod.def.params),e.issues.push(dr(a))}}var iD=()=>{let t={string:{unit:"characters",verb:"to have"},file:{unit:"bytes",verb:"to have"},array:{unit:"items",verb:"to have"},set:{unit:"items",verb:"to have"},map:{unit:"entries",verb:"to have"}};function e(a){return t[a]??null}let i={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",mac:"MAC address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",jwt:"JWT",template_literal:"input"},n={nan:"NaN"};return a=>{switch(a.code){case"invalid_type":{let r=n[a.expected]??a.expected,s=Md(a.input),o=n[s]??s;return`Invalid input: expected ${r}, received ${o}`}case"invalid_value":return a.values.length===1?`Invalid input: expected ${Gl(a.values[0])}`:`Invalid option: expected one of ${Il(a.values,"|")}`;case"too_big":{let r=a.inclusive?"<=":"<",s=e(a.origin);return s?`Too big: expected ${a.origin??"value"} to have ${r}${a.maximum.toString()} ${s.unit??"elements"}`:`Too big: expected ${a.origin??"value"} to be ${r}${a.maximum.toString()}`}case"too_small":{let r=a.inclusive?">=":">",s=e(a.origin);return s?`Too small: expected ${a.origin} to have ${r}${a.minimum.toString()} ${s.unit}`:`Too small: expected ${a.origin} to be ${r}${a.minimum.toString()}`}case"invalid_format":{let r=a;return r.format==="starts_with"?`Invalid string: must start with "${r.prefix}"`:r.format==="ends_with"?`Invalid string: must end with "${r.suffix}"`:r.format==="includes"?`Invalid string: must include "${r.includes}"`:r.format==="regex"?`Invalid string: must match pattern ${r.pattern}`:`Invalid ${i[r.format]??a.format}`}case"not_multiple_of":return`Invalid number: must be a multiple of ${a.divisor}`;case"unrecognized_keys":return`Unrecognized key${a.keys.length>1?"s":""}: ${Il(a.keys,", ")}`;case"invalid_key":return`Invalid key in ${a.origin}`;case"invalid_union":return a.options&&Array.isArray(a.options)&&a.options.length>0?`Invalid discriminator value. Expected ${a.options.map(s=>`'${s}'`).join(" | ")}`:"Invalid input";case"invalid_element":return`Invalid value in ${a.origin}`;default:return"Invalid input"}}};function KP(){return{localeError:iD()}}var QP,BX=Symbol("ZodOutput"),FX=Symbol("ZodInput"),yh=class{constructor(){this._map=new WeakMap,this._idmap=new Map}add(e,...i){let n=i[0];return this._map.set(e,n),n&&typeof n=="object"&&"id"in n&&this._idmap.set(n.id,e),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(e){let i=this._map.get(e);return i&&typeof i=="object"&&"id"in i&&this._idmap.delete(i.id),this._map.delete(e),this}get(e){let i=e._zod.parent;if(i){let n={...this.get(i)??{}};delete n.id;let a={...n,...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 nD(){return new yh}(QP=globalThis).__zod_globalRegistry??(QP.__zod_globalRegistry=nD());var ma=globalThis.__zod_globalRegistry;function Ph(t,e){return new t({type:"string",...J(e)})}function jh(t,e){return new t({type:"string",format:"email",check:"string_format",abort:!1,...J(e)})}function Kl(t,e){return new t({type:"string",format:"guid",check:"string_format",abort:!1,...J(e)})}function Sh(t,e){return new t({type:"string",format:"uuid",check:"string_format",abort:!1,...J(e)})}function Oh(t,e){return new t({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...J(e)})}function xh(t,e){return new t({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...J(e)})}function Th(t,e){return new t({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...J(e)})}function Mh(t,e){return new t({type:"string",format:"url",check:"string_format",abort:!1,...J(e)})}function Eh(t,e){return new t({type:"string",format:"emoji",check:"string_format",abort:!1,...J(e)})}function kh(t,e){return new t({type:"string",format:"nanoid",check:"string_format",abort:!1,...J(e)})}function qh(t,e){return new t({type:"string",format:"cuid",check:"string_format",abort:!1,...J(e)})}function _h(t,e){return new t({type:"string",format:"cuid2",check:"string_format",abort:!1,...J(e)})}function Hh(t,e){return new t({type:"string",format:"ulid",check:"string_format",abort:!1,...J(e)})}function Rh(t,e){return new t({type:"string",format:"xid",check:"string_format",abort:!1,...J(e)})}function Ih(t,e){return new t({type:"string",format:"ksuid",check:"string_format",abort:!1,...J(e)})}function zh(t,e){return new t({type:"string",format:"ipv4",check:"string_format",abort:!1,...J(e)})}function Dh(t,e){return new t({type:"string",format:"ipv6",check:"string_format",abort:!1,...J(e)})}function Gh(t,e){return new t({type:"string",format:"cidrv4",check:"string_format",abort:!1,...J(e)})}function $h(t,e){return new t({type:"string",format:"cidrv6",check:"string_format",abort:!1,...J(e)})}function Nh(t,e){return new t({type:"string",format:"base64",check:"string_format",abort:!1,...J(e)})}function Uh(t,e){return new t({type:"string",format:"base64url",check:"string_format",abort:!1,...J(e)})}function Lh(t,e){return new t({type:"string",format:"e164",check:"string_format",abort:!1,...J(e)})}function Wh(t,e){return new t({type:"string",format:"jwt",check:"string_format",abort:!1,...J(e)})}function YP(t,e){return new t({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...J(e)})}function XP(t,e){return new t({type:"string",format:"date",check:"string_format",...J(e)})}function ej(t,e){return new t({type:"string",format:"time",check:"string_format",precision:null,...J(e)})}function ij(t,e){return new t({type:"string",format:"duration",check:"string_format",...J(e)})}function Bh(t,e){return new t({type:"number",checks:[],...J(e)})}function Fh(t,e){return new t({type:"number",check:"number_format",abort:!1,format:"safeint",...J(e)})}function Vh(t,e){return new t({type:"boolean",...J(e)})}function Jh(t,e){return new t({type:"null",...J(e)})}function Zh(t){return new t({type:"unknown"})}function Kh(t,e){return new t({type:"never",...J(e)})}function Ql(t,e){return new _d({check:"less_than",...J(e),value:t,inclusive:!1})}function ks(t,e){return new _d({check:"less_than",...J(e),value:t,inclusive:!0})}function Yl(t,e){return new Hd({check:"greater_than",...J(e),value:t,inclusive:!1})}function qs(t,e){return new Hd({check:"greater_than",...J(e),value:t,inclusive:!0})}function Xl(t,e){return new CP({check:"multiple_of",...J(e),value:t})}function eu(t,e){return new bP({check:"max_length",...J(e),maximum:t})}function hr(t,e){return new yP({check:"min_length",...J(e),minimum:t})}function iu(t,e){return new PP({check:"length_equals",...J(e),length:t})}function Qh(t,e){return new jP({check:"string_format",format:"regex",...J(e),pattern:t})}function Yh(t){return new SP({check:"string_format",format:"lowercase",...J(t)})}function Xh(t){return new OP({check:"string_format",format:"uppercase",...J(t)})}function eg(t,e){return new xP({check:"string_format",format:"includes",...J(e),includes:t})}function ig(t,e){return new TP({check:"string_format",format:"starts_with",...J(e),prefix:t})}function ng(t,e){return new MP({check:"string_format",format:"ends_with",...J(e),suffix:t})}function yt(t){return new EP({check:"overwrite",tx:t})}function tg(t){return yt(e=>e.normalize(t))}function ag(){return yt(t=>t.trim())}function rg(){return yt(t=>t.toLowerCase())}function sg(){return yt(t=>t.toUpperCase())}function og(){return yt(t=>yd(t))}function nj(t,e,i){return new t({type:"array",element:e,...J(i)})}function lg(t,e,i){let n=J(i);return n.abort??(n.abort=!0),new t({type:"custom",check:"custom",fn:e,...n})}function ug(t,e,i){return new t({type:"custom",check:"custom",fn:e,...J(i)})}function cg(t,e){let i=tD(n=>(n.addIssue=a=>{if(typeof a=="string")n.issues.push(dr(a,n.value,i._zod.def));else{let r=a;r.fatal&&(r.continue=!1),r.code??(r.code="custom"),r.input??(r.input=n.value),r.inst??(r.inst=i),r.continue??(r.continue=!i._zod.def.abort),n.issues.push(dr(r))}},t(n.value,n)),e);return i}function tD(t,e){let i=new di({check:"custom",...J(e)});return i._zod.check=t,i}function Hs(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??ma,target:e,unrepresentable:t?.unrepresentable??"throw",override:t?.override??(()=>{}),io:t?.io??"output",counter:0,seen:new Map,cycles:t?.cycles??"ref",reused:t?.reused??"inline",external:t?.external??void 0}}function qe(t,e,i={path:[],schemaPath:[]}){var n;let a=t._zod.def,r=e.seen.get(t);if(r)return r.count++,i.schemaPath.includes(t)&&(r.cycle=i.path),r.schema;let s={schema:{},count:1,cycle:void 0,path:i.path};e.seen.set(t,s);let o=t._zod.toJSONSchema?.();if(o)s.schema=o;else{let c={...i,schemaPath:[...i.schemaPath,t],path:i.path};if(t._zod.processJSONSchema)t._zod.processJSONSchema(e,s.schema,c);else{let d=s.schema,h=e.processors[a.type];if(!h)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${a.type}`);h(t,e,d,c)}let p=t._zod.parent;p&&(s.ref||(s.ref=p),qe(p,e,c),e.seen.get(p).isParent=!0)}let l=e.metadataRegistry.get(t);return l&&Object.assign(s.schema,l),e.io==="input"&&ki(t)&&(delete s.schema.examples,delete s.schema.default),e.io==="input"&&"_prefault"in s.schema&&((n=s.schema).default??(n.default=s.schema._prefault)),delete s.schema._prefault,e.seen.get(t).schema}function Rs(t,e){let i=t.seen.get(e);if(!i)throw new Error("Unprocessed schema. This is a bug in Zod.");let n=new Map;for(let s of t.seen.entries()){let o=t.metadataRegistry.get(s[0])?.id;if(o){let l=n.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.`);n.set(o,s[0])}}let a=s=>{let o=t.target==="draft-2020-12"?"$defs":"definitions";if(t.external){let p=t.external.registry.get(s[0])?.id,d=t.external.uri??(g=>g);if(p)return{ref:d(p)};let h=s[1].defId??s[1].schema.id??`schema${t.counter++}`;return s[1].defId=h,{defId:h,ref:`${d("__shared")}#/${o}/${h}`}}if(s[1]===i)return{ref:"#"};let u=`#/${o}/`,c=s[1].schema.id??`__schema${t.counter++}`;return{defId:c,ref:u+c}},r=s=>{if(s[1].schema.$ref)return;let o=s[1],{ref:l,defId:u}=a(s);o.def={...o.schema},u&&(o.defId=u);let c=o.schema;for(let p in c)delete c[p];c.$ref=l};if(t.cycles==="throw")for(let s of t.seen.entries()){let o=s[1];if(o.cycle)throw new Error(`Cycle detected: #/${o.cycle?.join("/")}/ + `)}h.write("payload.value = newResult;"),h.write("return payload;");let y=h.compile();return(A,b)=>y(d,A,b)},r,s=da,o=!cr.jitless,u=o&&Pd.value,c=e.catchall,p;t._zod.parse=(d,h)=>{p??(p=n.value);let g=d.value;return s(g)?o&&u&&h?.async===!1&&h.jitless!==!0?(r||(r=a(e.shape)),d=r(d,h),c?VP([],g,d,h,p,t):d):i(d,h):(d.issues.push({expected:"object",code:"invalid_type",input:g,inst:t}),d)}});function HP(t,e,i,n){for(let r of t)if(r.issues.length===0)return e.value=r.value,e;let a=t.filter(r=>!bt(r));return a.length===1?(e.value=a[0].value,a[0]):(e.issues.push({code:"invalid_union",input:e.value,inst:i,errors:t.map(r=>r.issues.map(s=>on(s,n,Qi())))}),e)}var Vl=j("$ZodUnion",(t,e)=>{ke.init(t,e),Oe(t._zod,"optin",()=>e.options.some(n=>n._zod.optin==="optional")?"optional":void 0),Oe(t._zod,"optout",()=>e.options.some(n=>n._zod.optout==="optional")?"optional":void 0),Oe(t._zod,"values",()=>{if(e.options.every(n=>n._zod.values))return new Set(e.options.flatMap(n=>Array.from(n._zod.values)))}),Oe(t._zod,"pattern",()=>{if(e.options.every(n=>n._zod.pattern)){let n=e.options.map(a=>a._zod.pattern);return new RegExp(`^(${n.map(a=>bs(a.source)).join("|")})$`)}});let i=e.options.length===1?e.options[0]._zod.run:null;t._zod.parse=(n,a)=>{if(i)return i(n,a);let r=!1,s=[];for(let o of e.options){let l=o._zod.run({value:n.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=>HP(o,n,t,a)):HP(s,n,t,a)}});var lh=j("$ZodDiscriminatedUnion",(t,e)=>{e.inclusive=!1,Vl.init(t,e);let i=t._zod.parse;Oe(t._zod,"propValues",()=>{let a={};for(let r of e.options){let s=r._zod.propValues;if(!s||Object.keys(s).length===0)throw new Error(`Invalid discriminated union option at index "${e.options.indexOf(r)}"`);for(let[o,l]of Object.entries(s)){a[o]||(a[o]=new Set);for(let u of l)a[o].add(u)}}return a});let n=dr(()=>{let a=e.options,r=new Map;for(let s of a){let o=s._zod.propValues?.[e.discriminator];if(!o||o.size===0)throw new Error(`Invalid discriminated union option at index "${e.options.indexOf(s)}"`);for(let l of o){if(r.has(l))throw new Error(`Duplicate discriminator value "${String(l)}"`);r.set(l,s)}}return r});t._zod.parse=(a,r)=>{let s=a.value;if(!da(s))return a.issues.push({code:"invalid_type",expected:"object",input:s,inst:t}),a;let o=n.value.get(s?.[e.discriminator]);return o?o._zod.run(a,r):e.unionFallback||r.direction==="backward"?i(a,r):(a.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:e.discriminator,options:Array.from(n.value.keys()),input:s,path:[e.discriminator],inst:t}),a)}}),uh=j("$ZodIntersection",(t,e)=>{ke.init(t,e),t._zod.parse=(i,n)=>{let a=i.value,r=e.left._zod.run({value:a,issues:[]},n),s=e.right._zod.run({value:a,issues:[]},n);return r instanceof Promise||s instanceof Promise?Promise.all([r,s]).then(([l,u])=>RP(i,l,u)):RP(i,r,s)}});function Rd(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(At(t)&&At(e)){let i=Object.keys(e),n=Object.keys(t).filter(r=>i.indexOf(r)!==-1),a={...t,...e};for(let r of n){let s=Rd(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 i=[];for(let n=0;no.l&&o.r).map(([o])=>o);if(r.length&&a&&t.issues.push({...a,keys:r}),bt(t))return t;let s=Rd(e.value,i.value);if(!s.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(s.mergeErrorPath)}`);return t.value=s.data,t}var ch=j("$ZodRecord",(t,e)=>{ke.init(t,e),t._zod.parse=(i,n)=>{let a=i.value;if(!At(a))return i.issues.push({expected:"record",code:"invalid_type",input:a,inst:t}),i;let r=[],s=e.keyType._zod.values;if(s){i.value={};let o=new Set;for(let u of s)if(typeof u=="string"||typeof u=="number"||typeof u=="symbol"){o.add(typeof u=="number"?u.toString():u);let c=e.keyType._zod.run({value:u,issues:[]},n);if(c instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(c.issues.length){i.issues.push({code:"invalid_key",origin:"record",issues:c.issues.map(h=>on(h,n,Qi())),input:u,path:[u],inst:t});continue}let p=c.value,d=e.valueType._zod.run({value:a[u],issues:[]},n);d instanceof Promise?r.push(d.then(h=>{h.issues.length&&i.issues.push(...tt(u,h.issues)),i.value[p]=h.value})):(d.issues.length&&i.issues.push(...tt(u,d.issues)),i.value[p]=d.value)}let l;for(let u in a)o.has(u)||(l=l??[],l.push(u));l&&l.length>0&&i.issues.push({code:"unrecognized_keys",input:a,inst:t,keys:l})}else{i.value={};for(let o of Reflect.ownKeys(a)){if(o==="__proto__"||!Object.prototype.propertyIsEnumerable.call(a,o))continue;let l=e.keyType._zod.run({value:o,issues:[]},n);if(l instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(typeof o=="string"&&qd.test(o)&&l.issues.length){let p=e.keyType._zod.run({value:Number(o),issues:[]},n);if(p instanceof Promise)throw new Error("Async schemas not supported in object keys currently");p.issues.length===0&&(l=p)}if(l.issues.length){e.mode==="loose"?i.value[o]=a[o]:i.issues.push({code:"invalid_key",origin:"record",issues:l.issues.map(p=>on(p,n,Qi())),input:o,path:[o],inst:t});continue}let c=e.valueType._zod.run({value:a[o],issues:[]},n);c instanceof Promise?r.push(c.then(p=>{p.issues.length&&i.issues.push(...tt(o,p.issues)),i.value[l.value]=p.value})):(c.issues.length&&i.issues.push(...tt(o,c.issues)),i.value[l.value]=c.value)}}return r.length?Promise.all(r).then(()=>i):i}});var ph=j("$ZodEnum",(t,e)=>{ke.init(t,e);let i=Cs(e.entries),n=new Set(i);t._zod.values=n,t._zod.pattern=new RegExp(`^(${i.filter(a=>Sd.has(typeof a)).map(a=>typeof a=="string"?nt(a):a.toString()).join("|")})$`),t._zod.parse=(a,r)=>{let s=a.value;return n.has(s)||a.issues.push({code:"invalid_value",values:i,input:s,inst:t}),a}}),dh=j("$ZodLiteral",(t,e)=>{if(ke.init(t,e),e.values.length===0)throw new Error("Cannot create literal schema with no valid values");let i=new Set(e.values);t._zod.values=i,t._zod.pattern=new RegExp(`^(${e.values.map(n=>typeof n=="string"?nt(n):n?nt(n.toString()):String(n)).join("|")})$`),t._zod.parse=(n,a)=>{let r=n.value;return i.has(r)||n.issues.push({code:"invalid_value",values:e.values,input:r,inst:t}),n}});var hh=j("$ZodTransform",(t,e)=>{ke.init(t,e),t._zod.optin="optional",t._zod.parse=(i,n)=>{if(n.direction==="backward")throw new ur(t.constructor.name);let a=e.transform(i.value,i);if(n.async)return(a instanceof Promise?a:Promise.resolve(a)).then(s=>(i.value=s,i.fallback=!0,i));if(a instanceof Promise)throw new Rn;return i.value=a,i.fallback=!0,i}});function IP(t,e){return e===void 0&&(t.issues.length||t.fallback)?{issues:[],value:void 0}:t}var Jl=j("$ZodOptional",(t,e)=>{ke.init(t,e),t._zod.optin="optional",t._zod.optout="optional",Oe(t._zod,"values",()=>e.innerType._zod.values?new Set([...e.innerType._zod.values,void 0]):void 0),Oe(t._zod,"pattern",()=>{let i=e.innerType._zod.pattern;return i?new RegExp(`^(${bs(i.source)})?$`):void 0}),t._zod.parse=(i,n)=>{if(e.innerType._zod.optin==="optional"){let a=i.value,r=e.innerType._zod.run(i,n);return r instanceof Promise?r.then(s=>IP(s,a)):IP(r,a)}return i.value===void 0?i:e.innerType._zod.run(i,n)}}),gh=j("$ZodExactOptional",(t,e)=>{Jl.init(t,e),Oe(t._zod,"values",()=>e.innerType._zod.values),Oe(t._zod,"pattern",()=>e.innerType._zod.pattern),t._zod.parse=(i,n)=>e.innerType._zod.run(i,n)}),mh=j("$ZodNullable",(t,e)=>{ke.init(t,e),Oe(t._zod,"optin",()=>e.innerType._zod.optin),Oe(t._zod,"optout",()=>e.innerType._zod.optout),Oe(t._zod,"pattern",()=>{let i=e.innerType._zod.pattern;return i?new RegExp(`^(${bs(i.source)}|null)$`):void 0}),Oe(t._zod,"values",()=>e.innerType._zod.values?new Set([...e.innerType._zod.values,null]):void 0),t._zod.parse=(i,n)=>i.value===null?i:e.innerType._zod.run(i,n)}),fh=j("$ZodDefault",(t,e)=>{ke.init(t,e),t._zod.optin="optional",Oe(t._zod,"values",()=>e.innerType._zod.values),t._zod.parse=(i,n)=>{if(n.direction==="backward")return e.innerType._zod.run(i,n);if(i.value===void 0)return i.value=e.defaultValue,i;let a=e.innerType._zod.run(i,n);return a instanceof Promise?a.then(r=>zP(r,e)):zP(a,e)}});function zP(t,e){return t.value===void 0&&(t.value=e.defaultValue),t}var wh=j("$ZodPrefault",(t,e)=>{ke.init(t,e),t._zod.optin="optional",Oe(t._zod,"values",()=>e.innerType._zod.values),t._zod.parse=(i,n)=>(n.direction==="backward"||i.value===void 0&&(i.value=e.defaultValue),e.innerType._zod.run(i,n))}),vh=j("$ZodNonOptional",(t,e)=>{ke.init(t,e),Oe(t._zod,"values",()=>{let i=e.innerType._zod.values;return i?new Set([...i].filter(n=>n!==void 0)):void 0}),t._zod.parse=(i,n)=>{let a=e.innerType._zod.run(i,n);return a instanceof Promise?a.then(r=>DP(r,t)):DP(a,t)}});function DP(t,e){return!t.issues.length&&t.value===void 0&&t.issues.push({code:"invalid_type",expected:"nonoptional",input:t.value,inst:e}),t}var Ch=j("$ZodCatch",(t,e)=>{ke.init(t,e),t._zod.optin="optional",Oe(t._zod,"optout",()=>e.innerType._zod.optout),Oe(t._zod,"values",()=>e.innerType._zod.values),t._zod.parse=(i,n)=>{if(n.direction==="backward")return e.innerType._zod.run(i,n);let a=e.innerType._zod.run(i,n);return a instanceof Promise?a.then(r=>(i.value=r.value,r.issues.length&&(i.value=e.catchValue({...i,error:{issues:r.issues.map(s=>on(s,n,Qi()))},input:i.value}),i.issues=[],i.fallback=!0),i)):(i.value=a.value,a.issues.length&&(i.value=e.catchValue({...i,error:{issues:a.issues.map(r=>on(r,n,Qi()))},input:i.value}),i.issues=[],i.fallback=!0),i)}});var Zl=j("$ZodPipe",(t,e)=>{ke.init(t,e),Oe(t._zod,"values",()=>e.in._zod.values),Oe(t._zod,"optin",()=>e.in._zod.optin),Oe(t._zod,"optout",()=>e.out._zod.optout),Oe(t._zod,"propValues",()=>e.in._zod.propValues),t._zod.parse=(i,n)=>{if(n.direction==="backward"){let r=e.out._zod.run(i,n);return r instanceof Promise?r.then(s=>Wl(s,e.in,n)):Wl(r,e.in,n)}let a=e.in._zod.run(i,n);return a instanceof Promise?a.then(r=>Wl(r,e.out,n)):Wl(a,e.out,n)}});function Wl(t,e,i){return t.issues.length?(t.aborted=!0,t):e._zod.run({value:t.value,issues:t.issues,fallback:t.fallback},i)}var ZP=j("$ZodPreprocess",(t,e)=>{Zl.init(t,e)}),Ah=j("$ZodReadonly",(t,e)=>{ke.init(t,e),Oe(t._zod,"propValues",()=>e.innerType._zod.propValues),Oe(t._zod,"values",()=>e.innerType._zod.values),Oe(t._zod,"optin",()=>e.innerType?._zod?.optin),Oe(t._zod,"optout",()=>e.innerType?._zod?.optout),t._zod.parse=(i,n)=>{if(n.direction==="backward")return e.innerType._zod.run(i,n);let a=e.innerType._zod.run(i,n);return a instanceof Promise?a.then(GP):GP(a)}});function GP(t){return t.value=Object.freeze(t.value),t}var bh=j("$ZodCustom",(t,e)=>{di.init(t,e),ke.init(t,e),t._zod.parse=(i,n)=>i,t._zod.check=i=>{let n=i.value,a=e.fn(n);if(a instanceof Promise)return a.then(r=>$P(r,i,n,t));$P(a,i,n,t)}});function $P(t,e,i,n){if(!t){let a={code:"custom",input:i,inst:n,path:[...n._zod.def.path??[]],continue:!n._zod.def.abort};n._zod.def.params&&(a.params=n._zod.def.params),e.issues.push(hr(a))}}var iD=()=>{let t={string:{unit:"characters",verb:"to have"},file:{unit:"bytes",verb:"to have"},array:{unit:"items",verb:"to have"},set:{unit:"items",verb:"to have"},map:{unit:"entries",verb:"to have"}};function e(a){return t[a]??null}let i={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",mac:"MAC address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",jwt:"JWT",template_literal:"input"},n={nan:"NaN"};return a=>{switch(a.code){case"invalid_type":{let r=n[a.expected]??a.expected,s=Md(a.input),o=n[s]??s;return`Invalid input: expected ${r}, received ${o}`}case"invalid_value":return a.values.length===1?`Invalid input: expected ${Gl(a.values[0])}`:`Invalid option: expected one of ${Il(a.values,"|")}`;case"too_big":{let r=a.inclusive?"<=":"<",s=e(a.origin);return s?`Too big: expected ${a.origin??"value"} to have ${r}${a.maximum.toString()} ${s.unit??"elements"}`:`Too big: expected ${a.origin??"value"} to be ${r}${a.maximum.toString()}`}case"too_small":{let r=a.inclusive?">=":">",s=e(a.origin);return s?`Too small: expected ${a.origin} to have ${r}${a.minimum.toString()} ${s.unit}`:`Too small: expected ${a.origin} to be ${r}${a.minimum.toString()}`}case"invalid_format":{let r=a;return r.format==="starts_with"?`Invalid string: must start with "${r.prefix}"`:r.format==="ends_with"?`Invalid string: must end with "${r.suffix}"`:r.format==="includes"?`Invalid string: must include "${r.includes}"`:r.format==="regex"?`Invalid string: must match pattern ${r.pattern}`:`Invalid ${i[r.format]??a.format}`}case"not_multiple_of":return`Invalid number: must be a multiple of ${a.divisor}`;case"unrecognized_keys":return`Unrecognized key${a.keys.length>1?"s":""}: ${Il(a.keys,", ")}`;case"invalid_key":return`Invalid key in ${a.origin}`;case"invalid_union":return a.options&&Array.isArray(a.options)&&a.options.length>0?`Invalid discriminator value. Expected ${a.options.map(s=>`'${s}'`).join(" | ")}`:"Invalid input";case"invalid_element":return`Invalid value in ${a.origin}`;default:return"Invalid input"}}};function KP(){return{localeError:iD()}}var QP,BX=Symbol("ZodOutput"),FX=Symbol("ZodInput"),yh=class{constructor(){this._map=new WeakMap,this._idmap=new Map}add(e,...i){let n=i[0];return this._map.set(e,n),n&&typeof n=="object"&&"id"in n&&this._idmap.set(n.id,e),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(e){let i=this._map.get(e);return i&&typeof i=="object"&&"id"in i&&this._idmap.delete(i.id),this._map.delete(e),this}get(e){let i=e._zod.parent;if(i){let n={...this.get(i)??{}};delete n.id;let a={...n,...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 nD(){return new yh}(QP=globalThis).__zod_globalRegistry??(QP.__zod_globalRegistry=nD());var ma=globalThis.__zod_globalRegistry;function Ph(t,e){return new t({type:"string",...J(e)})}function jh(t,e){return new t({type:"string",format:"email",check:"string_format",abort:!1,...J(e)})}function Kl(t,e){return new t({type:"string",format:"guid",check:"string_format",abort:!1,...J(e)})}function Sh(t,e){return new t({type:"string",format:"uuid",check:"string_format",abort:!1,...J(e)})}function Oh(t,e){return new t({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...J(e)})}function xh(t,e){return new t({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...J(e)})}function Th(t,e){return new t({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...J(e)})}function Mh(t,e){return new t({type:"string",format:"url",check:"string_format",abort:!1,...J(e)})}function Eh(t,e){return new t({type:"string",format:"emoji",check:"string_format",abort:!1,...J(e)})}function kh(t,e){return new t({type:"string",format:"nanoid",check:"string_format",abort:!1,...J(e)})}function qh(t,e){return new t({type:"string",format:"cuid",check:"string_format",abort:!1,...J(e)})}function _h(t,e){return new t({type:"string",format:"cuid2",check:"string_format",abort:!1,...J(e)})}function Hh(t,e){return new t({type:"string",format:"ulid",check:"string_format",abort:!1,...J(e)})}function Rh(t,e){return new t({type:"string",format:"xid",check:"string_format",abort:!1,...J(e)})}function Ih(t,e){return new t({type:"string",format:"ksuid",check:"string_format",abort:!1,...J(e)})}function zh(t,e){return new t({type:"string",format:"ipv4",check:"string_format",abort:!1,...J(e)})}function Dh(t,e){return new t({type:"string",format:"ipv6",check:"string_format",abort:!1,...J(e)})}function Gh(t,e){return new t({type:"string",format:"cidrv4",check:"string_format",abort:!1,...J(e)})}function $h(t,e){return new t({type:"string",format:"cidrv6",check:"string_format",abort:!1,...J(e)})}function Nh(t,e){return new t({type:"string",format:"base64",check:"string_format",abort:!1,...J(e)})}function Uh(t,e){return new t({type:"string",format:"base64url",check:"string_format",abort:!1,...J(e)})}function Lh(t,e){return new t({type:"string",format:"e164",check:"string_format",abort:!1,...J(e)})}function Wh(t,e){return new t({type:"string",format:"jwt",check:"string_format",abort:!1,...J(e)})}function YP(t,e){return new t({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...J(e)})}function XP(t,e){return new t({type:"string",format:"date",check:"string_format",...J(e)})}function ej(t,e){return new t({type:"string",format:"time",check:"string_format",precision:null,...J(e)})}function ij(t,e){return new t({type:"string",format:"duration",check:"string_format",...J(e)})}function Bh(t,e){return new t({type:"number",checks:[],...J(e)})}function Fh(t,e){return new t({type:"number",check:"number_format",abort:!1,format:"safeint",...J(e)})}function Vh(t,e){return new t({type:"boolean",...J(e)})}function Jh(t,e){return new t({type:"null",...J(e)})}function Zh(t){return new t({type:"unknown"})}function Kh(t,e){return new t({type:"never",...J(e)})}function Ql(t,e){return new _d({check:"less_than",...J(e),value:t,inclusive:!1})}function ks(t,e){return new _d({check:"less_than",...J(e),value:t,inclusive:!0})}function Yl(t,e){return new Hd({check:"greater_than",...J(e),value:t,inclusive:!1})}function qs(t,e){return new Hd({check:"greater_than",...J(e),value:t,inclusive:!0})}function Xl(t,e){return new CP({check:"multiple_of",...J(e),value:t})}function eu(t,e){return new bP({check:"max_length",...J(e),maximum:t})}function gr(t,e){return new yP({check:"min_length",...J(e),minimum:t})}function iu(t,e){return new PP({check:"length_equals",...J(e),length:t})}function Qh(t,e){return new jP({check:"string_format",format:"regex",...J(e),pattern:t})}function Yh(t){return new SP({check:"string_format",format:"lowercase",...J(t)})}function Xh(t){return new OP({check:"string_format",format:"uppercase",...J(t)})}function eg(t,e){return new xP({check:"string_format",format:"includes",...J(e),includes:t})}function ig(t,e){return new TP({check:"string_format",format:"starts_with",...J(e),prefix:t})}function ng(t,e){return new MP({check:"string_format",format:"ends_with",...J(e),suffix:t})}function yt(t){return new EP({check:"overwrite",tx:t})}function tg(t){return yt(e=>e.normalize(t))}function ag(){return yt(t=>t.trim())}function rg(){return yt(t=>t.toLowerCase())}function sg(){return yt(t=>t.toUpperCase())}function og(){return yt(t=>yd(t))}function nj(t,e,i){return new t({type:"array",element:e,...J(i)})}function lg(t,e,i){let n=J(i);return n.abort??(n.abort=!0),new t({type:"custom",check:"custom",fn:e,...n})}function ug(t,e,i){return new t({type:"custom",check:"custom",fn:e,...J(i)})}function cg(t,e){let i=tD(n=>(n.addIssue=a=>{if(typeof a=="string")n.issues.push(hr(a,n.value,i._zod.def));else{let r=a;r.fatal&&(r.continue=!1),r.code??(r.code="custom"),r.input??(r.input=n.value),r.inst??(r.inst=i),r.continue??(r.continue=!i._zod.def.abort),n.issues.push(hr(r))}},t(n.value,n)),e);return i}function tD(t,e){let i=new di({check:"custom",...J(e)});return i._zod.check=t,i}function Hs(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??ma,target:e,unrepresentable:t?.unrepresentable??"throw",override:t?.override??(()=>{}),io:t?.io??"output",counter:0,seen:new Map,cycles:t?.cycles??"ref",reused:t?.reused??"inline",external:t?.external??void 0}}function qe(t,e,i={path:[],schemaPath:[]}){var n;let a=t._zod.def,r=e.seen.get(t);if(r)return r.count++,i.schemaPath.includes(t)&&(r.cycle=i.path),r.schema;let s={schema:{},count:1,cycle:void 0,path:i.path};e.seen.set(t,s);let o=t._zod.toJSONSchema?.();if(o)s.schema=o;else{let c={...i,schemaPath:[...i.schemaPath,t],path:i.path};if(t._zod.processJSONSchema)t._zod.processJSONSchema(e,s.schema,c);else{let d=s.schema,h=e.processors[a.type];if(!h)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${a.type}`);h(t,e,d,c)}let p=t._zod.parent;p&&(s.ref||(s.ref=p),qe(p,e,c),e.seen.get(p).isParent=!0)}let l=e.metadataRegistry.get(t);return l&&Object.assign(s.schema,l),e.io==="input"&&ki(t)&&(delete s.schema.examples,delete s.schema.default),e.io==="input"&&"_prefault"in s.schema&&((n=s.schema).default??(n.default=s.schema._prefault)),delete s.schema._prefault,e.seen.get(t).schema}function Rs(t,e){let i=t.seen.get(e);if(!i)throw new Error("Unprocessed schema. This is a bug in Zod.");let n=new Map;for(let s of t.seen.entries()){let o=t.metadataRegistry.get(s[0])?.id;if(o){let l=n.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.`);n.set(o,s[0])}}let a=s=>{let o=t.target==="draft-2020-12"?"$defs":"definitions";if(t.external){let p=t.external.registry.get(s[0])?.id,d=t.external.uri??(g=>g);if(p)return{ref:d(p)};let h=s[1].defId??s[1].schema.id??`schema${t.counter++}`;return s[1].defId=h,{defId:h,ref:`${d("__shared")}#/${o}/${h}`}}if(s[1]===i)return{ref:"#"};let u=`#/${o}/`,c=s[1].schema.id??`__schema${t.counter++}`;return{defId:c,ref:u+c}},r=s=>{if(s[1].schema.$ref)return;let o=s[1],{ref:l,defId:u}=a(s);o.def={...o.schema},u&&(o.defId=u);let c=o.schema;for(let p in c)delete c[p];c.$ref=l};if(t.cycles==="throw")for(let s of t.seen.entries()){let o=s[1];if(o.cycle)throw new Error(`Cycle detected: #/${o.cycle?.join("/")}/ -Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let s of t.seen.entries()){let o=s[1];if(e===s[0]){r(s);continue}if(t.external){let u=t.external.registry.get(s[0])?.id;if(e!==s[0]&&u){r(s);continue}}if(t.metadataRegistry.get(s[0])?.id){r(s);continue}if(o.cycle){r(s);continue}if(o.count>1&&t.reused==="ref"){r(s);continue}}}function Is(t,e){let i=t.seen.get(e);if(!i)throw new Error("Unprocessed schema. This is a bug in Zod.");let n=o=>{let l=t.seen.get(o);if(l.ref===null)return;let u=l.def??l.schema,c={...u},p=l.ref;if(l.ref=null,p){n(p);let h=t.seen.get(p),g=h.schema;if(g.$ref&&(t.target==="draft-07"||t.target==="draft-04"||t.target==="openapi-3.0")?(u.allOf=u.allOf??[],u.allOf.push(g)):Object.assign(u,g),Object.assign(u,c),o._zod.parent===p)for(let f in u)f==="$ref"||f==="allOf"||f in c||delete u[f];if(g.$ref&&h.def)for(let f in u)f==="$ref"||f==="allOf"||f in h.def&&JSON.stringify(u[f])===JSON.stringify(h.def[f])&&delete u[f]}let d=o._zod.parent;if(d&&d!==p){n(d);let h=t.seen.get(d);if(h?.schema.$ref&&(u.$ref=h.schema.$ref,h.def))for(let g in u)g==="$ref"||g==="allOf"||g in h.def&&JSON.stringify(u[g])===JSON.stringify(h.def[g])&&delete u[g]}t.override({zodSchema:o,jsonSchema:u,path:l.path??[]})};for(let o of[...t.seen.entries()].reverse())n(o[0]);let a={};if(t.target==="draft-2020-12"?a.$schema="https://json-schema.org/draft/2020-12/schema":t.target==="draft-07"?a.$schema="http://json-schema.org/draft-07/schema#":t.target==="draft-04"?a.$schema="http://json-schema.org/draft-04/schema#":t.target,t.external?.uri){let o=t.external.registry.get(e)?.id;if(!o)throw new Error("Schema is missing an `id` property");a.$id=t.external.uri(o)}Object.assign(a,i.def??i.schema);let r=t.metadataRegistry.get(e)?.id;r!==void 0&&a.id===r&&delete a.id;let s=t.external?.defs??{};for(let o of t.seen.entries()){let l=o[1];l.def&&l.defId&&(l.def.id===l.defId&&delete l.def.id,s[l.defId]=l.def)}t.external||Object.keys(s).length>0&&(t.target==="draft-2020-12"?a.$defs=s:a.definitions=s);try{let o=JSON.parse(JSON.stringify(a));return Object.defineProperty(o,"~standard",{value:{...e["~standard"],jsonSchema:{input:_s(e,"input",t.processors),output:_s(e,"output",t.processors)}},enumerable:!1,writable:!1}),o}catch{throw new Error("Error converting schema to JSON.")}}function ki(t,e){let i=e??{seen:new Set};if(i.seen.has(t))return!1;i.seen.add(t);let n=t._zod.def;if(n.type==="transform")return!0;if(n.type==="array")return ki(n.element,i);if(n.type==="set")return ki(n.valueType,i);if(n.type==="lazy")return ki(n.getter(),i);if(n.type==="promise"||n.type==="optional"||n.type==="nonoptional"||n.type==="nullable"||n.type==="readonly"||n.type==="default"||n.type==="prefault")return ki(n.innerType,i);if(n.type==="intersection")return ki(n.left,i)||ki(n.right,i);if(n.type==="record"||n.type==="map")return ki(n.keyType,i)||ki(n.valueType,i);if(n.type==="pipe")return t._zod.traits.has("$ZodCodec")?!0:ki(n.in,i)||ki(n.out,i);if(n.type==="object"){for(let a in n.shape)if(ki(n.shape[a],i))return!0;return!1}if(n.type==="union"){for(let a of n.options)if(ki(a,i))return!0;return!1}if(n.type==="tuple"){for(let a of n.items)if(ki(a,i))return!0;return!!(n.rest&&ki(n.rest,i))}return!1}var tj=(t,e={})=>i=>{let n=Hs({...i,processors:e});return qe(t,n),Rs(n,t),Is(n,t)},_s=(t,e,i={})=>n=>{let{libraryOptions:a,target:r}=n??{},s=Hs({...a??{},target:r,io:e,processors:i});return qe(t,s),Rs(s,t),Is(s,t)};var aD={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},pg=(t,e,i,n)=>{let a=i;a.type="string";let{minimum:r,maximum:s,format:o,patterns:l,contentEncoding:u}=t._zod.bag;if(typeof r=="number"&&(a.minLength=r),typeof s=="number"&&(a.maxLength=s),o&&(a.format=aD[o]??o,a.format===""&&delete a.format,o==="time"&&delete a.format),u&&(a.contentEncoding=u),l&&l.size>0){let c=[...l];c.length===1?a.pattern=c[0].source:c.length>1&&(a.allOf=[...c.map(p=>({...e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0"?{type:"string"}:{},pattern:p.source}))])}},dg=(t,e,i,n)=>{let a=i,{minimum:r,maximum:s,format:o,multipleOf:l,exclusiveMaximum:u,exclusiveMinimum:c}=t._zod.bag;typeof o=="string"&&o.includes("int")?a.type="integer":a.type="number";let p=typeof c=="number"&&c>=(r??Number.NEGATIVE_INFINITY),d=typeof u=="number"&&u<=(s??Number.POSITIVE_INFINITY),h=e.target==="draft-04"||e.target==="openapi-3.0";p?h?(a.minimum=c,a.exclusiveMinimum=!0):a.exclusiveMinimum=c:typeof r=="number"&&(a.minimum=r),d?h?(a.maximum=u,a.exclusiveMaximum=!0):a.exclusiveMaximum=u:typeof s=="number"&&(a.maximum=s),typeof l=="number"&&(a.multipleOf=l)},hg=(t,e,i,n)=>{i.type="boolean"},rj=(t,e,i,n)=>{if(e.unrepresentable==="throw")throw new Error("BigInt cannot be represented in JSON Schema")},sj=(t,e,i,n)=>{if(e.unrepresentable==="throw")throw new Error("Symbols cannot be represented in JSON Schema")},gg=(t,e,i,n)=>{e.target==="openapi-3.0"?(i.type="string",i.nullable=!0,i.enum=[null]):i.type="null"},oj=(t,e,i,n)=>{if(e.unrepresentable==="throw")throw new Error("Undefined cannot be represented in JSON Schema")},lj=(t,e,i,n)=>{if(e.unrepresentable==="throw")throw new Error("Void cannot be represented in JSON Schema")},mg=(t,e,i,n)=>{i.not={}},uj=(t,e,i,n)=>{},fg=(t,e,i,n)=>{},cj=(t,e,i,n)=>{if(e.unrepresentable==="throw")throw new Error("Date cannot be represented in JSON Schema")},wg=(t,e,i,n)=>{let a=t._zod.def,r=Cs(a.entries);r.every(s=>typeof s=="number")&&(i.type="number"),r.every(s=>typeof s=="string")&&(i.type="string"),i.enum=r},vg=(t,e,i,n)=>{let a=t._zod.def,r=[];for(let s of a.values)if(s===void 0){if(e.unrepresentable==="throw")throw new Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof s=="bigint"){if(e.unrepresentable==="throw")throw new Error("BigInt literals cannot be represented in JSON Schema");r.push(Number(s))}else r.push(s);if(r.length!==0)if(r.length===1){let s=r[0];i.type=s===null?"null":typeof s,e.target==="draft-04"||e.target==="openapi-3.0"?i.enum=[s]:i.const=s}else r.every(s=>typeof s=="number")&&(i.type="number"),r.every(s=>typeof s=="string")&&(i.type="string"),r.every(s=>typeof s=="boolean")&&(i.type="boolean"),r.every(s=>s===null)&&(i.type="null"),i.enum=r},pj=(t,e,i,n)=>{if(e.unrepresentable==="throw")throw new Error("NaN cannot be represented in JSON Schema")},dj=(t,e,i,n)=>{let a=i,r=t._zod.pattern;if(!r)throw new Error("Pattern not found in template literal");a.type="string",a.pattern=r.source},hj=(t,e,i,n)=>{let a=i,r={type:"string",format:"binary",contentEncoding:"binary"},{minimum:s,maximum:o,mime:l}=t._zod.bag;s!==void 0&&(r.minLength=s),o!==void 0&&(r.maxLength=o),l?l.length===1?(r.contentMediaType=l[0],Object.assign(a,r)):(Object.assign(a,r),a.anyOf=l.map(u=>({contentMediaType:u}))):Object.assign(a,r)},gj=(t,e,i,n)=>{i.type="boolean"},Cg=(t,e,i,n)=>{if(e.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")},mj=(t,e,i,n)=>{if(e.unrepresentable==="throw")throw new Error("Function types cannot be represented in JSON Schema")},Ag=(t,e,i,n)=>{if(e.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")},fj=(t,e,i,n)=>{if(e.unrepresentable==="throw")throw new Error("Map cannot be represented in JSON Schema")},wj=(t,e,i,n)=>{if(e.unrepresentable==="throw")throw new Error("Set cannot be represented in JSON Schema")},bg=(t,e,i,n)=>{let a=i,r=t._zod.def,{minimum:s,maximum:o}=t._zod.bag;typeof s=="number"&&(a.minItems=s),typeof o=="number"&&(a.maxItems=o),a.type="array",a.items=qe(r.element,e,{...n,path:[...n.path,"items"]})},yg=(t,e,i,n)=>{let a=i,r=t._zod.def;a.type="object",a.properties={};let s=r.shape;for(let u in s)a.properties[u]=qe(s[u],e,{...n,path:[...n.path,"properties",u]});let o=new Set(Object.keys(s)),l=new Set([...o].filter(u=>{let c=r.shape[u]._zod;return e.io==="input"?c.optin===void 0:c.optout===void 0}));l.size>0&&(a.required=Array.from(l)),r.catchall?._zod.def.type==="never"?a.additionalProperties=!1:r.catchall?r.catchall&&(a.additionalProperties=qe(r.catchall,e,{...n,path:[...n.path,"additionalProperties"]})):e.io==="output"&&(a.additionalProperties=!1)},Pg=(t,e,i,n)=>{let a=t._zod.def,r=a.inclusive===!1,s=a.options.map((o,l)=>qe(o,e,{...n,path:[...n.path,r?"oneOf":"anyOf",l]}));r?i.oneOf=s:i.anyOf=s},jg=(t,e,i,n)=>{let a=t._zod.def,r=qe(a.left,e,{...n,path:[...n.path,"allOf",0]}),s=qe(a.right,e,{...n,path:[...n.path,"allOf",1]}),o=u=>"allOf"in u&&Object.keys(u).length===1,l=[...o(r)?r.allOf:[r],...o(s)?s.allOf:[s]];i.allOf=l},vj=(t,e,i,n)=>{let a=i,r=t._zod.def;a.type="array";let s=e.target==="draft-2020-12"?"prefixItems":"items",o=e.target==="draft-2020-12"||e.target==="openapi-3.0"?"items":"additionalItems",l=r.items.map((d,h)=>qe(d,e,{...n,path:[...n.path,s,h]})),u=r.rest?qe(r.rest,e,{...n,path:[...n.path,o,...e.target==="openapi-3.0"?[r.items.length]:[]]}):null;e.target==="draft-2020-12"?(a.prefixItems=l,u&&(a.items=u)):e.target==="openapi-3.0"?(a.items={anyOf:l},u&&a.items.anyOf.push(u),a.minItems=l.length,u||(a.maxItems=l.length)):(a.items=l,u&&(a.additionalItems=u));let{minimum:c,maximum:p}=t._zod.bag;typeof c=="number"&&(a.minItems=c),typeof p=="number"&&(a.maxItems=p)},Sg=(t,e,i,n)=>{let a=i,r=t._zod.def;a.type="object";let s=r.keyType,l=s._zod.bag?.patterns;if(r.mode==="loose"&&l&&l.size>0){let c=qe(r.valueType,e,{...n,path:[...n.path,"patternProperties","*"]});a.patternProperties={};for(let p of l)a.patternProperties[p.source]=c}else(e.target==="draft-07"||e.target==="draft-2020-12")&&(a.propertyNames=qe(r.keyType,e,{...n,path:[...n.path,"propertyNames"]})),a.additionalProperties=qe(r.valueType,e,{...n,path:[...n.path,"additionalProperties"]});let u=s._zod.values;if(u){let c=[...u].filter(p=>typeof p=="string"||typeof p=="number");c.length>0&&(a.required=c)}},Og=(t,e,i,n)=>{let a=t._zod.def,r=qe(a.innerType,e,n),s=e.seen.get(t);e.target==="openapi-3.0"?(s.ref=a.innerType,i.nullable=!0):i.anyOf=[r,{type:"null"}]},xg=(t,e,i,n)=>{let a=t._zod.def;qe(a.innerType,e,n);let r=e.seen.get(t);r.ref=a.innerType},Tg=(t,e,i,n)=>{let a=t._zod.def;qe(a.innerType,e,n);let r=e.seen.get(t);r.ref=a.innerType,i.default=JSON.parse(JSON.stringify(a.defaultValue))},Mg=(t,e,i,n)=>{let a=t._zod.def;qe(a.innerType,e,n);let r=e.seen.get(t);r.ref=a.innerType,e.io==="input"&&(i._prefault=JSON.parse(JSON.stringify(a.defaultValue)))},Eg=(t,e,i,n)=>{let a=t._zod.def;qe(a.innerType,e,n);let r=e.seen.get(t);r.ref=a.innerType;let s;try{s=a.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}i.default=s},kg=(t,e,i,n)=>{let a=t._zod.def,r=a.in._zod.traits.has("$ZodTransform"),s=e.io==="input"?r?a.out:a.in:a.out;qe(s,e,n);let o=e.seen.get(t);o.ref=s},qg=(t,e,i,n)=>{let a=t._zod.def;qe(a.innerType,e,n);let r=e.seen.get(t);r.ref=a.innerType,i.readOnly=!0},Cj=(t,e,i,n)=>{let a=t._zod.def;qe(a.innerType,e,n);let r=e.seen.get(t);r.ref=a.innerType},nu=(t,e,i,n)=>{let a=t._zod.def;qe(a.innerType,e,n);let r=e.seen.get(t);r.ref=a.innerType},Aj=(t,e,i,n)=>{let a=t._zod.innerType;qe(a,e,n);let r=e.seen.get(t);r.ref=a},aj={string:pg,number:dg,boolean:hg,bigint:rj,symbol:sj,null:gg,undefined:oj,void:lj,never:mg,any:uj,unknown:fg,date:cj,enum:wg,literal:vg,nan:pj,template_literal:dj,file:hj,success:gj,custom:Cg,function:mj,transform:Ag,map:fj,set:wj,array:bg,object:yg,union:Pg,intersection:jg,tuple:vj,record:Sg,nullable:Og,nonoptional:xg,default:Tg,prefault:Mg,catch:Eg,pipe:kg,readonly:qg,promise:Cj,optional:nu,lazy:Aj};function _g(t,e){if("_idmap"in t){let n=t,a=Hs({...e,processors:aj}),r={};for(let l of n._idmap.entries()){let[u,c]=l;qe(c,a)}let s={},o={registry:n,uri:e?.uri,defs:r};a.external=o;for(let l of n._idmap.entries()){let[u,c]=l;Rs(a,c),s[u]=Is(a,c)}if(Object.keys(r).length>0){let l=a.target==="draft-2020-12"?"$defs":"definitions";s.__shared={[l]:r}}return{schemas:s}}let i=Hs({...e,processors:aj});return qe(t,i),Rs(i,t),Is(i,t)}var VD=j("ZodMiniType",(t,e)=>{if(!t._zod)throw new Error("Uninitialized schema in ZodMiniType.");ke.init(t,e),t.def=e,t.type=e.type,t.parse=(i,n)=>Nl(t,i,n,{callee:t.parse}),t.safeParse=(i,n)=>ha(t,i,n),t.parseAsync=async(i,n)=>Ul(t,i,n,{callee:t.parseAsync}),t.safeParseAsync=async(i,n)=>ga(t,i,n),t.check=(...i)=>t.clone({...e,checks:[...e.checks??[],...i.map(n=>typeof n=="function"?{_zod:{check:n,def:{check:"custom"},onattach:[]}}:n)]},{parent:!0}),t.with=t.check,t.clone=(i,n)=>Yi(t,i,n),t.brand=()=>t,t.register=((i,n)=>(i.add(t,n),t)),t.apply=i=>i(t)});var JD=j("ZodMiniObject",(t,e)=>{oh.init(t,e),VD.init(t,e),Oe(t,"shape",()=>e.shape)});function Hg(t,e){let i={type:"object",shape:t??{},...J(e)};return new JD(i)}function on(t){return!!t._zod}function wa(t){let e=Object.values(t);if(e.length===0)return Hg({});let i=e.every(on),n=e.every(a=>!on(a));if(i)return Hg(t);if(n)return vd(t);throw new Error("Mixed Zod versions detected in object shape.")}function Pt(t,e){return on(t)?ha(t,e):t.safeParse(e)}async function tu(t,e){return on(t)?await ga(t,e):await t.safeParseAsync(e)}function jt(t){if(!t)return;let e;if(on(t)?e=t._zod?.def?.shape:e=t.shape,!!e){if(typeof e=="function")try{return e()}catch{return}return e}}function gr(t){if(t){if(typeof t=="object"){let e=t,i=t;if(!e._def&&!i._zod){let n=Object.values(t);if(n.length>0&&n.every(a=>typeof a=="object"&&a!==null&&(a._def!==void 0||a._zod!==void 0||typeof a.parse=="function")))return wa(t)}}if(on(t)){let i=t._zod?.def;if(i&&(i.type==="object"||i.shape!==void 0))return t}else if(t.shape!==void 0)return t}}function au(t){if(t&&typeof t=="object"){if("message"in t&&typeof t.message=="string")return t.message;if("issues"in t&&Array.isArray(t.issues)&&t.issues.length>0){let e=t.issues[0];if(e&&typeof e=="object"&&"message"in e)return String(e.message)}try{return JSON.stringify(t)}catch{return String(t)}}return String(t)}function yj(t){return t.description}function Pj(t){if(on(t))return t._zod?.def?.type==="optional";let e=t;return typeof t.isOptional=="function"?t.isOptional():e._def?.typeName==="ZodOptional"}function ru(t){if(on(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 i=t._def;if(i){if(i.value!==void 0)return i.value;if(Array.isArray(i.values)&&i.values.length>0)return i.values[0]}let n=t.value;if(n!==void 0)return n}var zs={};gd(zs,{ZodISODate:()=>Sj,ZodISODateTime:()=>jj,ZodISODuration:()=>xj,ZodISOTime:()=>Oj,date:()=>Ig,datetime:()=>Rg,duration:()=>Dg,time:()=>zg});var jj=j("ZodISODateTime",(t,e)=>{NP.init(t,e),Le.init(t,e)});function Rg(t){return YP(jj,t)}var Sj=j("ZodISODate",(t,e)=>{UP.init(t,e),Le.init(t,e)});function Ig(t){return XP(Sj,t)}var Oj=j("ZodISOTime",(t,e)=>{LP.init(t,e),Le.init(t,e)});function zg(t){return ej(Oj,t)}var xj=j("ZodISODuration",(t,e)=>{WP.init(t,e),Le.init(t,e)});function Dg(t){return ij(xj,t)}var nG=(t,e)=>{$l.init(t,e),t.name="ZodError",Object.defineProperties(t,{format:{value:i=>Ry(t,i)},flatten:{value:i=>Hy(t,i)},addIssue:{value:i=>{t.issues.push(i),t.message=JSON.stringify(t.issues,cr,2)}},addIssues:{value:i=>{t.issues.push(...i),t.message=JSON.stringify(t.issues,cr,2)}},isEmpty:{get(){return t.issues.length===0}}})};var Xi=j("ZodError",nG,{Parent:Error});var Tj=js(Xi),Mj=Ss(Xi),Ej=Os(Xi),kj=xs(Xi),qj=Iy(Xi),_j=zy(Xi),Hj=Dy(Xi),Rj=Gy(Xi),Ij=$y(Xi),zj=Ny(Xi),Dj=Uy(Xi),Gj=Ly(Xi);var $j=new WeakMap;function Ds(t,e,i){let n=Object.getPrototypeOf(t),a=$j.get(n);if(a||(a=new Set,$j.set(n,a)),!a.has(e)){a.add(e);for(let r in i){let s=i[r];Object.defineProperty(n,r,{configurable:!0,enumerable:!1,get(){let o=s.bind(this);return Object.defineProperty(this,r,{configurable:!0,writable:!0,enumerable:!0,value:o}),o},set(o){Object.defineProperty(this,r,{configurable:!0,writable:!0,enumerable:!0,value:o})}})}}}var Fe=j("ZodType",(t,e)=>(ke.init(t,e),Object.assign(t["~standard"],{jsonSchema:{input:_s(t,"input"),output:_s(t,"output")}}),t.toJSONSchema=tj(t,{}),t.def=e,t.type=e.type,Object.defineProperty(t,"_def",{value:e}),t.parse=(i,n)=>Tj(t,i,n,{callee:t.parse}),t.safeParse=(i,n)=>Ej(t,i,n),t.parseAsync=async(i,n)=>Mj(t,i,n,{callee:t.parseAsync}),t.safeParseAsync=async(i,n)=>kj(t,i,n),t.spa=t.safeParseAsync,t.encode=(i,n)=>qj(t,i,n),t.decode=(i,n)=>_j(t,i,n),t.encodeAsync=async(i,n)=>Hj(t,i,n),t.decodeAsync=async(i,n)=>Rj(t,i,n),t.safeEncode=(i,n)=>Ij(t,i,n),t.safeDecode=(i,n)=>zj(t,i,n),t.safeEncodeAsync=async(i,n)=>Dj(t,i,n),t.safeDecodeAsync=async(i,n)=>Gj(t,i,n),Ds(t,"ZodType",{check(...i){let n=this.def;return this.clone(he.mergeDefs(n,{checks:[...n.checks??[],...i.map(a=>typeof a=="function"?{_zod:{check:a,def:{check:"custom"},onattach:[]}}:a)]}),{parent:!0})},with(...i){return this.check(...i)},clone(i,n){return Yi(this,i,n)},brand(){return this},register(i,n){return i.add(this,n),this},refine(i,n){return this.check(FG(i,n))},superRefine(i,n){return this.check(VG(i,n))},overwrite(i){return this.check(yt(i))},optional(){return Be(this)},exactOptional(){return HG(this)},nullable(){return Wj(this)},nullish(){return Be(Wj(this))},nonoptional(i){return $G(this,i)},array(){return ge(this)},or(i){return $e([this,i])},and(i){return ou(this,i)},transform(i){return Bj(this,Qj(i))},default(i){return zG(this,i)},prefault(i){return GG(this,i)},catch(i){return UG(this,i)},pipe(i){return Bj(this,i)},readonly(){return BG(this)},describe(i){let n=this.clone();return ma.add(n,{description:i}),n},meta(...i){if(i.length===0)return ma.get(this);let n=this.clone();return ma.add(n,i[0]),n},isOptional(){return this.safeParse(void 0).success},isNullable(){return this.safeParse(null).success},apply(i){return i(this)}}),Object.defineProperty(t,"description",{get(){return ma.get(t)?.description},configurable:!0}),t)),Fj=j("_ZodString",(t,e)=>{Es.init(t,e),Fe.init(t,e),t._zod.processJSONSchema=(n,a,r)=>pg(t,n,a,r);let i=t._zod.bag;t.format=i.format??null,t.minLength=i.minimum??null,t.maxLength=i.maximum??null,Ds(t,"_ZodString",{regex(...n){return this.check(Qh(...n))},includes(...n){return this.check(eg(...n))},startsWith(...n){return this.check(ig(...n))},endsWith(...n){return this.check(ng(...n))},min(...n){return this.check(hr(...n))},max(...n){return this.check(eu(...n))},length(...n){return this.check(iu(...n))},nonempty(...n){return this.check(hr(1,...n))},lowercase(n){return this.check(Yh(n))},uppercase(n){return this.check(Xh(n))},trim(){return this.check(ag())},normalize(...n){return this.check(tg(...n))},toLowerCase(){return this.check(rg())},toUpperCase(){return this.check(sg())},slugify(){return this.check(og())}})}),aG=j("ZodString",(t,e)=>{Es.init(t,e),Fj.init(t,e),t.email=i=>t.check(jh(rG,i)),t.url=i=>t.check(Mh(sG,i)),t.jwt=i=>t.check(Wh(bG,i)),t.emoji=i=>t.check(Eh(oG,i)),t.guid=i=>t.check(Kl(Nj,i)),t.uuid=i=>t.check(Sh(su,i)),t.uuidv4=i=>t.check(Oh(su,i)),t.uuidv6=i=>t.check(xh(su,i)),t.uuidv7=i=>t.check(Th(su,i)),t.nanoid=i=>t.check(kh(lG,i)),t.guid=i=>t.check(Kl(Nj,i)),t.cuid=i=>t.check(qh(uG,i)),t.cuid2=i=>t.check(_h(cG,i)),t.ulid=i=>t.check(Hh(pG,i)),t.base64=i=>t.check(Nh(vG,i)),t.base64url=i=>t.check(Uh(CG,i)),t.xid=i=>t.check(Rh(dG,i)),t.ksuid=i=>t.check(Ih(hG,i)),t.ipv4=i=>t.check(zh(gG,i)),t.ipv6=i=>t.check(Dh(mG,i)),t.cidrv4=i=>t.check(Gh(fG,i)),t.cidrv6=i=>t.check($h(wG,i)),t.e164=i=>t.check(Lh(AG,i)),t.datetime=i=>t.check(Rg(i)),t.date=i=>t.check(Ig(i)),t.time=i=>t.check(zg(i)),t.duration=i=>t.check(Dg(i))});function P(t){return Ph(aG,t)}var Le=j("ZodStringFormat",(t,e)=>{Ie.init(t,e),Fj.init(t,e)}),rG=j("ZodEmail",(t,e)=>{Dd.init(t,e),Le.init(t,e)});var Nj=j("ZodGUID",(t,e)=>{Id.init(t,e),Le.init(t,e)});var su=j("ZodUUID",(t,e)=>{zd.init(t,e),Le.init(t,e)});var sG=j("ZodURL",(t,e)=>{Gd.init(t,e),Le.init(t,e)});var oG=j("ZodEmoji",(t,e)=>{$d.init(t,e),Le.init(t,e)});var lG=j("ZodNanoID",(t,e)=>{Nd.init(t,e),Le.init(t,e)});var uG=j("ZodCUID",(t,e)=>{Ud.init(t,e),Le.init(t,e)});var cG=j("ZodCUID2",(t,e)=>{Ld.init(t,e),Le.init(t,e)});var pG=j("ZodULID",(t,e)=>{Wd.init(t,e),Le.init(t,e)});var dG=j("ZodXID",(t,e)=>{Bd.init(t,e),Le.init(t,e)});var hG=j("ZodKSUID",(t,e)=>{Fd.init(t,e),Le.init(t,e)});var gG=j("ZodIPv4",(t,e)=>{Vd.init(t,e),Le.init(t,e)});var mG=j("ZodIPv6",(t,e)=>{Jd.init(t,e),Le.init(t,e)});var fG=j("ZodCIDRv4",(t,e)=>{Zd.init(t,e),Le.init(t,e)});var wG=j("ZodCIDRv6",(t,e)=>{Kd.init(t,e),Le.init(t,e)});var vG=j("ZodBase64",(t,e)=>{Qd.init(t,e),Le.init(t,e)});var CG=j("ZodBase64URL",(t,e)=>{Yd.init(t,e),Le.init(t,e)});var AG=j("ZodE164",(t,e)=>{Xd.init(t,e),Le.init(t,e)});var bG=j("ZodJWT",(t,e)=>{eh.init(t,e),Le.init(t,e)});var Vj=j("ZodNumber",(t,e)=>{Fl.init(t,e),Fe.init(t,e),t._zod.processJSONSchema=(n,a,r)=>dg(t,n,a,r),Ds(t,"ZodNumber",{gt(n,a){return this.check(Yl(n,a))},gte(n,a){return this.check(qs(n,a))},min(n,a){return this.check(qs(n,a))},lt(n,a){return this.check(Ql(n,a))},lte(n,a){return this.check(ks(n,a))},max(n,a){return this.check(ks(n,a))},int(n){return this.check(Uj(n))},safe(n){return this.check(Uj(n))},positive(n){return this.check(Yl(0,n))},nonnegative(n){return this.check(qs(0,n))},negative(n){return this.check(Ql(0,n))},nonpositive(n){return this.check(ks(0,n))},multipleOf(n,a){return this.check(Xl(n,a))},step(n,a){return this.check(Xl(n,a))},finite(){return this}});let i=t._zod.bag;t.minValue=Math.max(i.minimum??Number.NEGATIVE_INFINITY,i.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,t.maxValue=Math.min(i.maximum??Number.POSITIVE_INFINITY,i.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,t.isInt=(i.format??"").includes("int")||Number.isSafeInteger(i.multipleOf??.5),t.isFinite=!0,t.format=i.format??null});function Te(t){return Bh(Vj,t)}var yG=j("ZodNumberFormat",(t,e)=>{ih.init(t,e),Vj.init(t,e)});function Uj(t){return Fh(yG,t)}var PG=j("ZodBoolean",(t,e)=>{nh.init(t,e),Fe.init(t,e),t._zod.processJSONSchema=(i,n,a)=>hg(t,i,n,a)});function hi(t){return Vh(PG,t)}var jG=j("ZodNull",(t,e)=>{th.init(t,e),Fe.init(t,e),t._zod.processJSONSchema=(i,n,a)=>gg(t,i,n,a)});function Jj(t){return Jh(jG,t)}var SG=j("ZodUnknown",(t,e)=>{ah.init(t,e),Fe.init(t,e),t._zod.processJSONSchema=(i,n,a)=>fg(t,i,n,a)});function We(){return Zh(SG)}var OG=j("ZodNever",(t,e)=>{rh.init(t,e),Fe.init(t,e),t._zod.processJSONSchema=(i,n,a)=>mg(t,i,n,a)});function xG(t){return Kh(OG,t)}var TG=j("ZodArray",(t,e)=>{sh.init(t,e),Fe.init(t,e),t._zod.processJSONSchema=(i,n,a)=>bg(t,i,n,a),t.element=e.element,Ds(t,"ZodArray",{min(i,n){return this.check(hr(i,n))},nonempty(i){return this.check(hr(1,i))},max(i,n){return this.check(eu(i,n))},length(i,n){return this.check(iu(i,n))},unwrap(){return this.element}})});function ge(t,e){return nj(TG,t,e)}var Zj=j("ZodObject",(t,e)=>{JP.init(t,e),Fe.init(t,e),t._zod.processJSONSchema=(i,n,a)=>yg(t,i,n,a),he.defineLazy(t,"shape",()=>e.shape),Ds(t,"ZodObject",{keyof(){return Gi(Object.keys(this._zod.def.shape))},catchall(i){return this.clone({...this._zod.def,catchall:i})},passthrough(){return this.clone({...this._zod.def,catchall:We()})},loose(){return this.clone({...this._zod.def,catchall:We()})},strict(){return this.clone({...this._zod.def,catchall:xG()})},strip(){return this.clone({...this._zod.def,catchall:void 0})},extend(i){return he.extend(this,i)},safeExtend(i){return he.safeExtend(this,i)},merge(i){return he.merge(this,i)},pick(i){return he.pick(this,i)},omit(i){return he.omit(this,i)},partial(...i){return he.partial(lu,this,i[0])},required(...i){return he.required(Yj,this,i[0])}})});function D(t,e){let i={type:"object",shape:t??{},...he.normalizeParams(e)};return new Zj(i)}function qi(t,e){return new Zj({type:"object",shape:t,catchall:We(),...he.normalizeParams(e)})}var Kj=j("ZodUnion",(t,e)=>{Vl.init(t,e),Fe.init(t,e),t._zod.processJSONSchema=(i,n,a)=>Pg(t,i,n,a),t.options=e.options});function $e(t,e){return new Kj({type:"union",options:t,...he.normalizeParams(e)})}var MG=j("ZodDiscriminatedUnion",(t,e)=>{Kj.init(t,e),lh.init(t,e)});function $g(t,e,i){return new MG({type:"union",options:e,discriminator:t,...he.normalizeParams(i)})}var EG=j("ZodIntersection",(t,e)=>{uh.init(t,e),Fe.init(t,e),t._zod.processJSONSchema=(i,n,a)=>jg(t,i,n,a)});function ou(t,e){return new EG({type:"intersection",left:t,right:e})}var Lj=j("ZodRecord",(t,e)=>{ch.init(t,e),Fe.init(t,e),t._zod.processJSONSchema=(i,n,a)=>Sg(t,i,n,a),t.keyType=e.keyType,t.valueType=e.valueType});function ze(t,e,i){return!e||!e._zod?new Lj({type:"record",keyType:P(),valueType:t,...he.normalizeParams(e)}):new Lj({type:"record",keyType:t,valueType:e,...he.normalizeParams(i)})}var Gg=j("ZodEnum",(t,e)=>{ph.init(t,e),Fe.init(t,e),t._zod.processJSONSchema=(n,a,r)=>wg(t,n,a,r),t.enum=e.entries,t.options=Object.values(e.entries);let i=new Set(Object.keys(e.entries));t.extract=(n,a)=>{let r={};for(let s of n)if(i.has(s))r[s]=e.entries[s];else throw new Error(`Key ${s} not found in enum`);return new Gg({...e,checks:[],...he.normalizeParams(a),entries:r})},t.exclude=(n,a)=>{let r={...e.entries};for(let s of n)if(i.has(s))delete r[s];else throw new Error(`Key ${s} not found in enum`);return new Gg({...e,checks:[],...he.normalizeParams(a),entries:r})}});function Gi(t,e){let i=Array.isArray(t)?Object.fromEntries(t.map(n=>[n,n])):t;return new Gg({type:"enum",entries:i,...he.normalizeParams(e)})}var kG=j("ZodLiteral",(t,e)=>{dh.init(t,e),Fe.init(t,e),t._zod.processJSONSchema=(i,n,a)=>vg(t,i,n,a),t.values=new Set(e.values),Object.defineProperty(t,"value",{get(){if(e.values.length>1)throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");return e.values[0]}})});function W(t,e){return new kG({type:"literal",values:Array.isArray(t)?t:[t],...he.normalizeParams(e)})}var qG=j("ZodTransform",(t,e)=>{hh.init(t,e),Fe.init(t,e),t._zod.processJSONSchema=(i,n,a)=>Ag(t,i,n,a),t._zod.parse=(i,n)=>{if(n.direction==="backward")throw new lr(t.constructor.name);i.addIssue=r=>{if(typeof r=="string")i.issues.push(he.issue(r,i.value,e));else{let s=r;s.fatal&&(s.continue=!1),s.code??(s.code="custom"),s.input??(s.input=i.value),s.inst??(s.inst=t),i.issues.push(he.issue(s))}};let a=e.transform(i.value,i);return a instanceof Promise?a.then(r=>(i.value=r,i.fallback=!0,i)):(i.value=a,i.fallback=!0,i)}});function Qj(t){return new qG({type:"transform",transform:t})}var lu=j("ZodOptional",(t,e)=>{Jl.init(t,e),Fe.init(t,e),t._zod.processJSONSchema=(i,n,a)=>nu(t,i,n,a),t.unwrap=()=>t._zod.def.innerType});function Be(t){return new lu({type:"optional",innerType:t})}var _G=j("ZodExactOptional",(t,e)=>{gh.init(t,e),Fe.init(t,e),t._zod.processJSONSchema=(i,n,a)=>nu(t,i,n,a),t.unwrap=()=>t._zod.def.innerType});function HG(t){return new _G({type:"optional",innerType:t})}var RG=j("ZodNullable",(t,e)=>{mh.init(t,e),Fe.init(t,e),t._zod.processJSONSchema=(i,n,a)=>Og(t,i,n,a),t.unwrap=()=>t._zod.def.innerType});function Wj(t){return new RG({type:"nullable",innerType:t})}var IG=j("ZodDefault",(t,e)=>{fh.init(t,e),Fe.init(t,e),t._zod.processJSONSchema=(i,n,a)=>Tg(t,i,n,a),t.unwrap=()=>t._zod.def.innerType,t.removeDefault=t.unwrap});function zG(t,e){return new IG({type:"default",innerType:t,get defaultValue(){return typeof e=="function"?e():he.shallowClone(e)}})}var DG=j("ZodPrefault",(t,e)=>{wh.init(t,e),Fe.init(t,e),t._zod.processJSONSchema=(i,n,a)=>Mg(t,i,n,a),t.unwrap=()=>t._zod.def.innerType});function GG(t,e){return new DG({type:"prefault",innerType:t,get defaultValue(){return typeof e=="function"?e():he.shallowClone(e)}})}var Yj=j("ZodNonOptional",(t,e)=>{vh.init(t,e),Fe.init(t,e),t._zod.processJSONSchema=(i,n,a)=>xg(t,i,n,a),t.unwrap=()=>t._zod.def.innerType});function $G(t,e){return new Yj({type:"nonoptional",innerType:t,...he.normalizeParams(e)})}var NG=j("ZodCatch",(t,e)=>{Ch.init(t,e),Fe.init(t,e),t._zod.processJSONSchema=(i,n,a)=>Eg(t,i,n,a),t.unwrap=()=>t._zod.def.innerType,t.removeCatch=t.unwrap});function UG(t,e){return new NG({type:"catch",innerType:t,catchValue:typeof e=="function"?e:()=>e})}var Xj=j("ZodPipe",(t,e)=>{Zl.init(t,e),Fe.init(t,e),t._zod.processJSONSchema=(i,n,a)=>kg(t,i,n,a),t.in=e.in,t.out=e.out});function Bj(t,e){return new Xj({type:"pipe",in:t,out:e})}var LG=j("ZodPreprocess",(t,e)=>{Xj.init(t,e),ZP.init(t,e)}),WG=j("ZodReadonly",(t,e)=>{Ah.init(t,e),Fe.init(t,e),t._zod.processJSONSchema=(i,n,a)=>qg(t,i,n,a),t.unwrap=()=>t._zod.def.innerType});function BG(t){return new WG({type:"readonly",innerType:t})}var eS=j("ZodCustom",(t,e)=>{bh.init(t,e),Fe.init(t,e),t._zod.processJSONSchema=(i,n,a)=>Cg(t,i,n,a)});function iS(t,e){return lg(eS,t??(()=>!0),e)}function FG(t,e={}){return ug(eS,t,e)}function VG(t,e){return cg(t,e)}function Ng(t,e){return new LG({type:"pipe",in:Qj(t),out:e})}Qi(KP());var Lg="2025-11-25";var nS=[Lg,"2025-06-18","2025-03-26","2024-11-05","2024-10-07"],St="io.modelcontextprotocol/related-task",cu="2.0",si=iS(t=>t!==null&&(typeof t=="object"||typeof t=="function")),tS=$e([P(),Te().int()]),aS=P(),eie=qi({ttl:Te().optional(),pollInterval:Te().optional()}),JG=D({ttl:Te().optional()}),ZG=D({taskId:P()}),Wg=qi({progressToken:tS.optional(),[St]:ZG.optional()}),en=D({_meta:Wg.optional()}),Gs=en.extend({task:JG.optional()}),rS=t=>Gs.safeParse(t).success,Ai=D({method:P(),params:en.loose().optional()}),ln=D({_meta:Wg.optional()}),un=D({method:P(),params:ln.loose().optional()}),bi=qi({_meta:Wg.optional()}),pu=$e([P(),Te().int()]),sS=D({jsonrpc:W(cu),id:pu,...Ai.shape}).strict(),Bg=t=>sS.safeParse(t).success,oS=D({jsonrpc:W(cu),...un.shape}).strict(),lS=t=>oS.safeParse(t).success,Fg=D({jsonrpc:W(cu),id:pu,result:bi}).strict(),$s=t=>Fg.safeParse(t).success;var V;(function(t){t[t.ConnectionClosed=-32e3]="ConnectionClosed",t[t.RequestTimeout=-32001]="RequestTimeout",t[t.ParseError=-32700]="ParseError",t[t.InvalidRequest=-32600]="InvalidRequest",t[t.MethodNotFound=-32601]="MethodNotFound",t[t.InvalidParams=-32602]="InvalidParams",t[t.InternalError=-32603]="InternalError",t[t.UrlElicitationRequired=-32042]="UrlElicitationRequired"})(V||(V={}));var Vg=D({jsonrpc:W(cu),id:pu.optional(),error:D({code:Te().int(),message:P(),data:We().optional()})}).strict();var uS=t=>Vg.safeParse(t).success;var cS=$e([sS,oS,Fg,Vg]),iie=$e([Fg,Vg]),du=bi.strict(),KG=ln.extend({requestId:pu.optional(),reason:P().optional()}),hu=un.extend({method:W("notifications/cancelled"),params:KG}),QG=D({src:P(),mimeType:P().optional(),sizes:ge(P()).optional(),theme:Gi(["light","dark"]).optional()}),Ns=D({icons:ge(QG).optional()}),mr=D({name:P(),title:P().optional()}),pS=mr.extend({...mr.shape,...Ns.shape,version:P(),websiteUrl:P().optional(),description:P().optional()}),YG=ou(D({applyDefaults:hi().optional()}),ze(P(),We())),XG=Ng(t=>t&&typeof t=="object"&&!Array.isArray(t)&&Object.keys(t).length===0?{form:{}}:t,ou(D({form:YG.optional(),url:si.optional()}),ze(P(),We()).optional())),e1=qi({list:si.optional(),cancel:si.optional(),requests:qi({sampling:qi({createMessage:si.optional()}).optional(),elicitation:qi({create:si.optional()}).optional()}).optional()}),i1=qi({list:si.optional(),cancel:si.optional(),requests:qi({tools:qi({call:si.optional()}).optional()}).optional()}),n1=D({experimental:ze(P(),si).optional(),sampling:D({context:si.optional(),tools:si.optional()}).optional(),elicitation:XG.optional(),roots:D({listChanged:hi().optional()}).optional(),tasks:e1.optional(),extensions:ze(P(),si).optional()}),t1=en.extend({protocolVersion:P(),capabilities:n1,clientInfo:pS}),Jg=Ai.extend({method:W("initialize"),params:t1});var a1=D({experimental:ze(P(),si).optional(),logging:si.optional(),completions:si.optional(),prompts:D({listChanged:hi().optional()}).optional(),resources:D({subscribe:hi().optional(),listChanged:hi().optional()}).optional(),tools:D({listChanged:hi().optional()}).optional(),tasks:i1.optional(),extensions:ze(P(),si).optional()}),r1=bi.extend({protocolVersion:P(),capabilities:a1,serverInfo:pS,instructions:P().optional()}),Zg=un.extend({method:W("notifications/initialized"),params:ln.optional()});var gu=Ai.extend({method:W("ping"),params:en.optional()}),s1=D({progress:Te(),total:Be(Te()),message:Be(P())}),o1=D({...ln.shape,...s1.shape,progressToken:tS}),mu=un.extend({method:W("notifications/progress"),params:o1}),l1=en.extend({cursor:aS.optional()}),Us=Ai.extend({params:l1.optional()}),Ls=bi.extend({nextCursor:aS.optional()}),u1=Gi(["working","input_required","completed","failed","cancelled"]),Ws=D({taskId:P(),status:u1,ttl:$e([Te(),Jj()]),createdAt:P(),lastUpdatedAt:P(),pollInterval:Be(Te()),statusMessage:Be(P())}),fr=bi.extend({task:Ws}),c1=ln.merge(Ws),Bs=un.extend({method:W("notifications/tasks/status"),params:c1}),fu=Ai.extend({method:W("tasks/get"),params:en.extend({taskId:P()})}),wu=bi.merge(Ws),vu=Ai.extend({method:W("tasks/result"),params:en.extend({taskId:P()})}),nie=bi.loose(),Cu=Us.extend({method:W("tasks/list")}),Au=Ls.extend({tasks:ge(Ws)}),bu=Ai.extend({method:W("tasks/cancel"),params:en.extend({taskId:P()})}),dS=bi.merge(Ws),hS=D({uri:P(),mimeType:Be(P()),_meta:ze(P(),We()).optional()}),gS=hS.extend({text:P()}),Kg=P().refine(t=>{try{return atob(t),!0}catch{return!1}},{message:"Invalid Base64 string"}),mS=hS.extend({blob:Kg}),Fs=Gi(["user","assistant"]),wr=D({audience:ge(Fs).optional(),priority:Te().min(0).max(1).optional(),lastModified:zs.datetime({offset:!0}).optional()}),fS=D({...mr.shape,...Ns.shape,uri:P(),description:Be(P()),mimeType:Be(P()),size:Be(Te()),annotations:wr.optional(),_meta:Be(qi({}))}),p1=D({...mr.shape,...Ns.shape,uriTemplate:P(),description:Be(P()),mimeType:Be(P()),annotations:wr.optional(),_meta:Be(qi({}))}),yu=Us.extend({method:W("resources/list")}),d1=Ls.extend({resources:ge(fS)}),Pu=Us.extend({method:W("resources/templates/list")}),h1=Ls.extend({resourceTemplates:ge(p1)}),Qg=en.extend({uri:P()}),g1=Qg,ju=Ai.extend({method:W("resources/read"),params:g1}),m1=bi.extend({contents:ge($e([gS,mS]))}),f1=un.extend({method:W("notifications/resources/list_changed"),params:ln.optional()}),w1=Qg,v1=Ai.extend({method:W("resources/subscribe"),params:w1}),C1=Qg,A1=Ai.extend({method:W("resources/unsubscribe"),params:C1}),b1=ln.extend({uri:P()}),y1=un.extend({method:W("notifications/resources/updated"),params:b1}),P1=D({name:P(),description:Be(P()),required:Be(hi())}),j1=D({...mr.shape,...Ns.shape,description:Be(P()),arguments:Be(ge(P1)),_meta:Be(qi({}))}),Su=Us.extend({method:W("prompts/list")}),S1=Ls.extend({prompts:ge(j1)}),O1=en.extend({name:P(),arguments:ze(P(),P()).optional()}),Ou=Ai.extend({method:W("prompts/get"),params:O1}),Yg=D({type:W("text"),text:P(),annotations:wr.optional(),_meta:ze(P(),We()).optional()}),Xg=D({type:W("image"),data:Kg,mimeType:P(),annotations:wr.optional(),_meta:ze(P(),We()).optional()}),em=D({type:W("audio"),data:Kg,mimeType:P(),annotations:wr.optional(),_meta:ze(P(),We()).optional()}),x1=D({type:W("tool_use"),name:P(),id:P(),input:ze(P(),We()),_meta:ze(P(),We()).optional()}),T1=D({type:W("resource"),resource:$e([gS,mS]),annotations:wr.optional(),_meta:ze(P(),We()).optional()}),M1=fS.extend({type:W("resource_link")}),im=$e([Yg,Xg,em,M1,T1]),E1=D({role:Fs,content:im}),k1=bi.extend({description:P().optional(),messages:ge(E1)}),q1=un.extend({method:W("notifications/prompts/list_changed"),params:ln.optional()}),_1=D({title:P().optional(),readOnlyHint:hi().optional(),destructiveHint:hi().optional(),idempotentHint:hi().optional(),openWorldHint:hi().optional()}),H1=D({taskSupport:Gi(["required","optional","forbidden"]).optional()}),wS=D({...mr.shape,...Ns.shape,description:P().optional(),inputSchema:D({type:W("object"),properties:ze(P(),si).optional(),required:ge(P()).optional()}).catchall(We()),outputSchema:D({type:W("object"),properties:ze(P(),si).optional(),required:ge(P()).optional()}).catchall(We()).optional(),annotations:_1.optional(),execution:H1.optional(),_meta:ze(P(),We()).optional()}),xu=Us.extend({method:W("tools/list")}),R1=Ls.extend({tools:ge(wS)}),Tu=bi.extend({content:ge(im).default([]),structuredContent:ze(P(),We()).optional(),isError:hi().optional()}),tie=Tu.or(bi.extend({toolResult:We()})),I1=Gs.extend({name:P(),arguments:ze(P(),We()).optional()}),vr=Ai.extend({method:W("tools/call"),params:I1}),z1=un.extend({method:W("notifications/tools/list_changed"),params:ln.optional()}),aie=D({autoRefresh:hi().default(!0),debounceMs:Te().int().nonnegative().default(300)}),Vs=Gi(["debug","info","notice","warning","error","critical","alert","emergency"]),D1=en.extend({level:Vs}),nm=Ai.extend({method:W("logging/setLevel"),params:D1}),G1=ln.extend({level:Vs,logger:P().optional(),data:We()}),$1=un.extend({method:W("notifications/message"),params:G1}),N1=D({name:P().optional()}),U1=D({hints:ge(N1).optional(),costPriority:Te().min(0).max(1).optional(),speedPriority:Te().min(0).max(1).optional(),intelligencePriority:Te().min(0).max(1).optional()}),L1=D({mode:Gi(["auto","required","none"]).optional()}),W1=D({type:W("tool_result"),toolUseId:P().describe("The unique identifier for the corresponding tool call."),content:ge(im).default([]),structuredContent:D({}).loose().optional(),isError:hi().optional(),_meta:ze(P(),We()).optional()}),B1=$g("type",[Yg,Xg,em]),uu=$g("type",[Yg,Xg,em,x1,W1]),F1=D({role:Fs,content:$e([uu,ge(uu)]),_meta:ze(P(),We()).optional()}),V1=Gs.extend({messages:ge(F1),modelPreferences:U1.optional(),systemPrompt:P().optional(),includeContext:Gi(["none","thisServer","allServers"]).optional(),temperature:Te().optional(),maxTokens:Te().int(),stopSequences:ge(P()).optional(),metadata:si.optional(),tools:ge(wS).optional(),toolChoice:L1.optional()}),J1=Ai.extend({method:W("sampling/createMessage"),params:V1}),Js=bi.extend({model:P(),stopReason:Be(Gi(["endTurn","stopSequence","maxTokens"]).or(P())),role:Fs,content:B1}),tm=bi.extend({model:P(),stopReason:Be(Gi(["endTurn","stopSequence","maxTokens","toolUse"]).or(P())),role:Fs,content:$e([uu,ge(uu)])}),Z1=D({type:W("boolean"),title:P().optional(),description:P().optional(),default:hi().optional()}),K1=D({type:W("string"),title:P().optional(),description:P().optional(),minLength:Te().optional(),maxLength:Te().optional(),format:Gi(["email","uri","date","date-time"]).optional(),default:P().optional()}),Q1=D({type:Gi(["number","integer"]),title:P().optional(),description:P().optional(),minimum:Te().optional(),maximum:Te().optional(),default:Te().optional()}),Y1=D({type:W("string"),title:P().optional(),description:P().optional(),enum:ge(P()),default:P().optional()}),X1=D({type:W("string"),title:P().optional(),description:P().optional(),oneOf:ge(D({const:P(),title:P()})),default:P().optional()}),e$=D({type:W("string"),title:P().optional(),description:P().optional(),enum:ge(P()),enumNames:ge(P()).optional(),default:P().optional()}),i$=$e([Y1,X1]),n$=D({type:W("array"),title:P().optional(),description:P().optional(),minItems:Te().optional(),maxItems:Te().optional(),items:D({type:W("string"),enum:ge(P())}),default:ge(P()).optional()}),t$=D({type:W("array"),title:P().optional(),description:P().optional(),minItems:Te().optional(),maxItems:Te().optional(),items:D({anyOf:ge(D({const:P(),title:P()}))}),default:ge(P()).optional()}),a$=$e([n$,t$]),r$=$e([e$,i$,a$]),s$=$e([r$,Z1,K1,Q1]),o$=Gs.extend({mode:W("form").optional(),message:P(),requestedSchema:D({type:W("object"),properties:ze(P(),s$),required:ge(P()).optional()})}),l$=Gs.extend({mode:W("url"),message:P(),elicitationId:P(),url:P().url()}),u$=$e([o$,l$]),c$=Ai.extend({method:W("elicitation/create"),params:u$}),p$=ln.extend({elicitationId:P()}),d$=un.extend({method:W("notifications/elicitation/complete"),params:p$}),Cr=bi.extend({action:Gi(["accept","decline","cancel"]),content:Ng(t=>t===null?void 0:t,ze(P(),$e([P(),Te(),hi(),ge(P())])).optional())}),h$=D({type:W("ref/resource"),uri:P()});var g$=D({type:W("ref/prompt"),name:P()}),m$=en.extend({ref:$e([g$,h$]),argument:D({name:P(),value:P()}),context:D({arguments:ze(P(),P()).optional()}).optional()}),Mu=Ai.extend({method:W("completion/complete"),params:m$});function vS(t){if(t.params.ref.type!=="ref/prompt")throw new TypeError(`Expected CompleteRequestPrompt, but got ${t.params.ref.type}`)}function CS(t){if(t.params.ref.type!=="ref/resource")throw new TypeError(`Expected CompleteRequestResourceTemplate, but got ${t.params.ref.type}`)}var f$=bi.extend({completion:qi({values:ge(P()).max(100),total:Be(Te().int()),hasMore:Be(hi())})}),w$=D({uri:P().startsWith("file://"),name:P().optional(),_meta:ze(P(),We()).optional()}),v$=Ai.extend({method:W("roots/list"),params:en.optional()}),am=bi.extend({roots:ge(w$)}),C$=un.extend({method:W("notifications/roots/list_changed"),params:ln.optional()}),rie=$e([gu,Jg,Mu,nm,Ou,Su,yu,Pu,ju,v1,A1,vr,xu,fu,vu,Cu,bu]),sie=$e([hu,mu,Zg,C$,Bs]),oie=$e([du,Js,tm,Cr,am,wu,Au,fr]),lie=$e([gu,J1,c$,v$,fu,vu,Cu,bu]),uie=$e([hu,mu,$1,y1,f1,z1,q1,Bs,d$]),cie=$e([du,r1,f$,k1,S1,d1,h1,m1,Tu,R1,wu,Au,fr]),L=class t extends Error{constructor(e,i,n){super(`MCP error ${e}: ${i}`),this.code=e,this.data=n,this.name="McpError"}static fromError(e,i,n){if(e===V.UrlElicitationRequired&&n){let a=n;if(a.elicitations)return new Ug(a.elicitations,i)}return new t(e,i,n)}},Ug=class extends L{constructor(e,i=`URL elicitation${e.length>1?"s":""} required`){super(V.UrlElicitationRequired,i,{elicitations:e})}get elicitations(){return this.data?.elicitations??[]}};function Ot(t){return t==="completed"||t==="failed"||t==="cancelled"}var bS=Symbol("Let zodToJsonSchema decide on which parser to use");var AS={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"},yS=t=>typeof t=="string"?{...AS,name:t}:{...AS,...t};var PS=t=>{let e=yS(t),i=e.name!==void 0?[...e.basePath,e.definitionPath,e.name]:e.basePath;return{...e,flags:{hasReferencedOpenAiAnyType:!1},currentPath:i,propertyPath:void 0,seen:new Map(Object.entries(e.definitions).map(([n,a])=>[a._def,{def:a._def,path:[...e.basePath,e.definitionPath,n],jsonSchema:void 0}]))}};function rm(t,e,i,n){n?.errorMessages&&i&&(t.errorMessage={...t.errorMessage,[e]:i})}function me(t,e,i,n,a){t[e]=i,rm(t,e,n,a)}var Eu=(t,e)=>{let i=0;for(;iY(t.innerType._def,e);function sm(t,e,i){let n=i??e.dateStrategy;if(Array.isArray(n))return{anyOf:n.map((a,r)=>sm(t,e,a))};switch(n){case"string":case"format:date-time":return{type:"string",format:"date-time"};case"format:date":return{type:"string",format:"date"};case"integer":return A$(t,e)}}var A$=(t,e)=>{let i={type:"integer",format:"unix-time"};if(e.target==="openApi3")return i;for(let n of t.checks)switch(n.kind){case"min":me(i,"minimum",n.value,n.message,e);break;case"max":me(i,"maximum",n.value,n.message,e);break}return i};function TS(t,e){return{...Y(t.innerType._def,e),default:t.defaultValue()}}function MS(t,e){return e.effectStrategy==="input"?Y(t.schema._def,e):Ve(e)}function ES(t){return{type:"string",enum:Array.from(t.values)}}var b$=t=>"type"in t&&t.type==="string"?!1:"allOf"in t;function kS(t,e){let i=[Y(t.left._def,{...e,currentPath:[...e.currentPath,"allOf","0"]}),Y(t.right._def,{...e,currentPath:[...e.currentPath,"allOf","1"]})].filter(r=>!!r),n=e.target==="jsonSchema2019-09"?{unevaluatedProperties:!1}:void 0,a=[];return i.forEach(r=>{if(b$(r))a.push(...r.allOf),r.unevaluatedProperties===void 0&&(n=void 0);else{let s=r;if("additionalProperties"in r&&r.additionalProperties===!1){let{additionalProperties:o,...l}=r;s=l}else n=void 0;a.push(s)}}),a.length?{allOf:a,...n}:void 0}function qS(t,e){let i=typeof t.value;return i!=="bigint"&&i!=="number"&&i!=="boolean"&&i!=="string"?{type:Array.isArray(t.value)?"array":"object"}:e.target==="openApi3"?{type:i==="bigint"?"integer":i,enum:[t.value]}:{type:i==="bigint"?"integer":i,const:t.value}}var om,An={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:()=>(om===void 0&&(om=RegExp("^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$","u")),om),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 qu(t,e){let i={type:"string"};if(t.checks)for(let n of t.checks)switch(n.kind){case"min":me(i,"minLength",typeof i.minLength=="number"?Math.max(i.minLength,n.value):n.value,n.message,e);break;case"max":me(i,"maxLength",typeof i.maxLength=="number"?Math.min(i.maxLength,n.value):n.value,n.message,e);break;case"email":switch(e.emailStrategy){case"format:email":bn(i,"email",n.message,e);break;case"format:idn-email":bn(i,"idn-email",n.message,e);break;case"pattern:zod":_i(i,An.email,n.message,e);break}break;case"url":bn(i,"uri",n.message,e);break;case"uuid":bn(i,"uuid",n.message,e);break;case"regex":_i(i,n.regex,n.message,e);break;case"cuid":_i(i,An.cuid,n.message,e);break;case"cuid2":_i(i,An.cuid2,n.message,e);break;case"startsWith":_i(i,RegExp(`^${lm(n.value,e)}`),n.message,e);break;case"endsWith":_i(i,RegExp(`${lm(n.value,e)}$`),n.message,e);break;case"datetime":bn(i,"date-time",n.message,e);break;case"date":bn(i,"date",n.message,e);break;case"time":bn(i,"time",n.message,e);break;case"duration":bn(i,"duration",n.message,e);break;case"length":me(i,"minLength",typeof i.minLength=="number"?Math.max(i.minLength,n.value):n.value,n.message,e),me(i,"maxLength",typeof i.maxLength=="number"?Math.min(i.maxLength,n.value):n.value,n.message,e);break;case"includes":{_i(i,RegExp(lm(n.value,e)),n.message,e);break}case"ip":{n.version!=="v6"&&bn(i,"ipv4",n.message,e),n.version!=="v4"&&bn(i,"ipv6",n.message,e);break}case"base64url":_i(i,An.base64url,n.message,e);break;case"jwt":_i(i,An.jwt,n.message,e);break;case"cidr":{n.version!=="v6"&&_i(i,An.ipv4Cidr,n.message,e),n.version!=="v4"&&_i(i,An.ipv6Cidr,n.message,e);break}case"emoji":_i(i,An.emoji(),n.message,e);break;case"ulid":{_i(i,An.ulid,n.message,e);break}case"base64":{switch(e.base64Strategy){case"format:binary":{bn(i,"binary",n.message,e);break}case"contentEncoding:base64":{me(i,"contentEncoding","base64",n.message,e);break}case"pattern:zod":{_i(i,An.base64,n.message,e);break}}break}case"nanoid":_i(i,An.nanoid,n.message,e);case"toLowerCase":case"toUpperCase":case"trim":break;default:}return i}function lm(t,e){return e.patternStrategy==="escape"?P$(t):t}var y$=new Set("ABCDEFGHIJKLMNOPQRSTUVXYZabcdefghijklmnopqrstuvxyz0123456789");function P$(t){let e="";for(let i=0;ia.format)?(t.anyOf||(t.anyOf=[]),t.format&&(t.anyOf.push({format:t.format,...t.errorMessage&&n.errorMessages&&{errorMessage:{format:t.errorMessage.format}}}),delete t.format,t.errorMessage&&(delete t.errorMessage.format,Object.keys(t.errorMessage).length===0&&delete t.errorMessage)),t.anyOf.push({format:e,...i&&n.errorMessages&&{errorMessage:{format:i}}})):me(t,"format",e,i,n)}function _i(t,e,i,n){t.pattern||t.allOf?.some(a=>a.pattern)?(t.allOf||(t.allOf=[]),t.pattern&&(t.allOf.push({pattern:t.pattern,...t.errorMessage&&n.errorMessages&&{errorMessage:{pattern:t.errorMessage.pattern}}}),delete t.pattern,t.errorMessage&&(delete t.errorMessage.pattern,Object.keys(t.errorMessage).length===0&&delete t.errorMessage)),t.allOf.push({pattern:_S(e,n),...i&&n.errorMessages&&{errorMessage:{pattern:i}}})):me(t,"pattern",_S(e,n),i,n)}function _S(t,e){if(!e.applyRegexFlags||!t.flags)return t.source;let i={i:t.flags.includes("i"),m:t.flags.includes("m"),s:t.flags.includes("s")},n=i.i?t.source.toLowerCase():t.source,a="",r=!1,s=!1,o=!1;for(let l=0;l1&&t.reused==="ref"){r(s);continue}}}function Is(t,e){let i=t.seen.get(e);if(!i)throw new Error("Unprocessed schema. This is a bug in Zod.");let n=o=>{let l=t.seen.get(o);if(l.ref===null)return;let u=l.def??l.schema,c={...u},p=l.ref;if(l.ref=null,p){n(p);let h=t.seen.get(p),g=h.schema;if(g.$ref&&(t.target==="draft-07"||t.target==="draft-04"||t.target==="openapi-3.0")?(u.allOf=u.allOf??[],u.allOf.push(g)):Object.assign(u,g),Object.assign(u,c),o._zod.parent===p)for(let f in u)f==="$ref"||f==="allOf"||f in c||delete u[f];if(g.$ref&&h.def)for(let f in u)f==="$ref"||f==="allOf"||f in h.def&&JSON.stringify(u[f])===JSON.stringify(h.def[f])&&delete u[f]}let d=o._zod.parent;if(d&&d!==p){n(d);let h=t.seen.get(d);if(h?.schema.$ref&&(u.$ref=h.schema.$ref,h.def))for(let g in u)g==="$ref"||g==="allOf"||g in h.def&&JSON.stringify(u[g])===JSON.stringify(h.def[g])&&delete u[g]}t.override({zodSchema:o,jsonSchema:u,path:l.path??[]})};for(let o of[...t.seen.entries()].reverse())n(o[0]);let a={};if(t.target==="draft-2020-12"?a.$schema="https://json-schema.org/draft/2020-12/schema":t.target==="draft-07"?a.$schema="http://json-schema.org/draft-07/schema#":t.target==="draft-04"?a.$schema="http://json-schema.org/draft-04/schema#":t.target,t.external?.uri){let o=t.external.registry.get(e)?.id;if(!o)throw new Error("Schema is missing an `id` property");a.$id=t.external.uri(o)}Object.assign(a,i.def??i.schema);let r=t.metadataRegistry.get(e)?.id;r!==void 0&&a.id===r&&delete a.id;let s=t.external?.defs??{};for(let o of t.seen.entries()){let l=o[1];l.def&&l.defId&&(l.def.id===l.defId&&delete l.def.id,s[l.defId]=l.def)}t.external||Object.keys(s).length>0&&(t.target==="draft-2020-12"?a.$defs=s:a.definitions=s);try{let o=JSON.parse(JSON.stringify(a));return Object.defineProperty(o,"~standard",{value:{...e["~standard"],jsonSchema:{input:_s(e,"input",t.processors),output:_s(e,"output",t.processors)}},enumerable:!1,writable:!1}),o}catch{throw new Error("Error converting schema to JSON.")}}function ki(t,e){let i=e??{seen:new Set};if(i.seen.has(t))return!1;i.seen.add(t);let n=t._zod.def;if(n.type==="transform")return!0;if(n.type==="array")return ki(n.element,i);if(n.type==="set")return ki(n.valueType,i);if(n.type==="lazy")return ki(n.getter(),i);if(n.type==="promise"||n.type==="optional"||n.type==="nonoptional"||n.type==="nullable"||n.type==="readonly"||n.type==="default"||n.type==="prefault")return ki(n.innerType,i);if(n.type==="intersection")return ki(n.left,i)||ki(n.right,i);if(n.type==="record"||n.type==="map")return ki(n.keyType,i)||ki(n.valueType,i);if(n.type==="pipe")return t._zod.traits.has("$ZodCodec")?!0:ki(n.in,i)||ki(n.out,i);if(n.type==="object"){for(let a in n.shape)if(ki(n.shape[a],i))return!0;return!1}if(n.type==="union"){for(let a of n.options)if(ki(a,i))return!0;return!1}if(n.type==="tuple"){for(let a of n.items)if(ki(a,i))return!0;return!!(n.rest&&ki(n.rest,i))}return!1}var tj=(t,e={})=>i=>{let n=Hs({...i,processors:e});return qe(t,n),Rs(n,t),Is(n,t)},_s=(t,e,i={})=>n=>{let{libraryOptions:a,target:r}=n??{},s=Hs({...a??{},target:r,io:e,processors:i});return qe(t,s),Rs(s,t),Is(s,t)};var aD={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},pg=(t,e,i,n)=>{let a=i;a.type="string";let{minimum:r,maximum:s,format:o,patterns:l,contentEncoding:u}=t._zod.bag;if(typeof r=="number"&&(a.minLength=r),typeof s=="number"&&(a.maxLength=s),o&&(a.format=aD[o]??o,a.format===""&&delete a.format,o==="time"&&delete a.format),u&&(a.contentEncoding=u),l&&l.size>0){let c=[...l];c.length===1?a.pattern=c[0].source:c.length>1&&(a.allOf=[...c.map(p=>({...e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0"?{type:"string"}:{},pattern:p.source}))])}},dg=(t,e,i,n)=>{let a=i,{minimum:r,maximum:s,format:o,multipleOf:l,exclusiveMaximum:u,exclusiveMinimum:c}=t._zod.bag;typeof o=="string"&&o.includes("int")?a.type="integer":a.type="number";let p=typeof c=="number"&&c>=(r??Number.NEGATIVE_INFINITY),d=typeof u=="number"&&u<=(s??Number.POSITIVE_INFINITY),h=e.target==="draft-04"||e.target==="openapi-3.0";p?h?(a.minimum=c,a.exclusiveMinimum=!0):a.exclusiveMinimum=c:typeof r=="number"&&(a.minimum=r),d?h?(a.maximum=u,a.exclusiveMaximum=!0):a.exclusiveMaximum=u:typeof s=="number"&&(a.maximum=s),typeof l=="number"&&(a.multipleOf=l)},hg=(t,e,i,n)=>{i.type="boolean"},rj=(t,e,i,n)=>{if(e.unrepresentable==="throw")throw new Error("BigInt cannot be represented in JSON Schema")},sj=(t,e,i,n)=>{if(e.unrepresentable==="throw")throw new Error("Symbols cannot be represented in JSON Schema")},gg=(t,e,i,n)=>{e.target==="openapi-3.0"?(i.type="string",i.nullable=!0,i.enum=[null]):i.type="null"},oj=(t,e,i,n)=>{if(e.unrepresentable==="throw")throw new Error("Undefined cannot be represented in JSON Schema")},lj=(t,e,i,n)=>{if(e.unrepresentable==="throw")throw new Error("Void cannot be represented in JSON Schema")},mg=(t,e,i,n)=>{i.not={}},uj=(t,e,i,n)=>{},fg=(t,e,i,n)=>{},cj=(t,e,i,n)=>{if(e.unrepresentable==="throw")throw new Error("Date cannot be represented in JSON Schema")},wg=(t,e,i,n)=>{let a=t._zod.def,r=Cs(a.entries);r.every(s=>typeof s=="number")&&(i.type="number"),r.every(s=>typeof s=="string")&&(i.type="string"),i.enum=r},vg=(t,e,i,n)=>{let a=t._zod.def,r=[];for(let s of a.values)if(s===void 0){if(e.unrepresentable==="throw")throw new Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof s=="bigint"){if(e.unrepresentable==="throw")throw new Error("BigInt literals cannot be represented in JSON Schema");r.push(Number(s))}else r.push(s);if(r.length!==0)if(r.length===1){let s=r[0];i.type=s===null?"null":typeof s,e.target==="draft-04"||e.target==="openapi-3.0"?i.enum=[s]:i.const=s}else r.every(s=>typeof s=="number")&&(i.type="number"),r.every(s=>typeof s=="string")&&(i.type="string"),r.every(s=>typeof s=="boolean")&&(i.type="boolean"),r.every(s=>s===null)&&(i.type="null"),i.enum=r},pj=(t,e,i,n)=>{if(e.unrepresentable==="throw")throw new Error("NaN cannot be represented in JSON Schema")},dj=(t,e,i,n)=>{let a=i,r=t._zod.pattern;if(!r)throw new Error("Pattern not found in template literal");a.type="string",a.pattern=r.source},hj=(t,e,i,n)=>{let a=i,r={type:"string",format:"binary",contentEncoding:"binary"},{minimum:s,maximum:o,mime:l}=t._zod.bag;s!==void 0&&(r.minLength=s),o!==void 0&&(r.maxLength=o),l?l.length===1?(r.contentMediaType=l[0],Object.assign(a,r)):(Object.assign(a,r),a.anyOf=l.map(u=>({contentMediaType:u}))):Object.assign(a,r)},gj=(t,e,i,n)=>{i.type="boolean"},Cg=(t,e,i,n)=>{if(e.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")},mj=(t,e,i,n)=>{if(e.unrepresentable==="throw")throw new Error("Function types cannot be represented in JSON Schema")},Ag=(t,e,i,n)=>{if(e.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")},fj=(t,e,i,n)=>{if(e.unrepresentable==="throw")throw new Error("Map cannot be represented in JSON Schema")},wj=(t,e,i,n)=>{if(e.unrepresentable==="throw")throw new Error("Set cannot be represented in JSON Schema")},bg=(t,e,i,n)=>{let a=i,r=t._zod.def,{minimum:s,maximum:o}=t._zod.bag;typeof s=="number"&&(a.minItems=s),typeof o=="number"&&(a.maxItems=o),a.type="array",a.items=qe(r.element,e,{...n,path:[...n.path,"items"]})},yg=(t,e,i,n)=>{let a=i,r=t._zod.def;a.type="object",a.properties={};let s=r.shape;for(let u in s)a.properties[u]=qe(s[u],e,{...n,path:[...n.path,"properties",u]});let o=new Set(Object.keys(s)),l=new Set([...o].filter(u=>{let c=r.shape[u]._zod;return e.io==="input"?c.optin===void 0:c.optout===void 0}));l.size>0&&(a.required=Array.from(l)),r.catchall?._zod.def.type==="never"?a.additionalProperties=!1:r.catchall?r.catchall&&(a.additionalProperties=qe(r.catchall,e,{...n,path:[...n.path,"additionalProperties"]})):e.io==="output"&&(a.additionalProperties=!1)},Pg=(t,e,i,n)=>{let a=t._zod.def,r=a.inclusive===!1,s=a.options.map((o,l)=>qe(o,e,{...n,path:[...n.path,r?"oneOf":"anyOf",l]}));r?i.oneOf=s:i.anyOf=s},jg=(t,e,i,n)=>{let a=t._zod.def,r=qe(a.left,e,{...n,path:[...n.path,"allOf",0]}),s=qe(a.right,e,{...n,path:[...n.path,"allOf",1]}),o=u=>"allOf"in u&&Object.keys(u).length===1,l=[...o(r)?r.allOf:[r],...o(s)?s.allOf:[s]];i.allOf=l},vj=(t,e,i,n)=>{let a=i,r=t._zod.def;a.type="array";let s=e.target==="draft-2020-12"?"prefixItems":"items",o=e.target==="draft-2020-12"||e.target==="openapi-3.0"?"items":"additionalItems",l=r.items.map((d,h)=>qe(d,e,{...n,path:[...n.path,s,h]})),u=r.rest?qe(r.rest,e,{...n,path:[...n.path,o,...e.target==="openapi-3.0"?[r.items.length]:[]]}):null;e.target==="draft-2020-12"?(a.prefixItems=l,u&&(a.items=u)):e.target==="openapi-3.0"?(a.items={anyOf:l},u&&a.items.anyOf.push(u),a.minItems=l.length,u||(a.maxItems=l.length)):(a.items=l,u&&(a.additionalItems=u));let{minimum:c,maximum:p}=t._zod.bag;typeof c=="number"&&(a.minItems=c),typeof p=="number"&&(a.maxItems=p)},Sg=(t,e,i,n)=>{let a=i,r=t._zod.def;a.type="object";let s=r.keyType,l=s._zod.bag?.patterns;if(r.mode==="loose"&&l&&l.size>0){let c=qe(r.valueType,e,{...n,path:[...n.path,"patternProperties","*"]});a.patternProperties={};for(let p of l)a.patternProperties[p.source]=c}else(e.target==="draft-07"||e.target==="draft-2020-12")&&(a.propertyNames=qe(r.keyType,e,{...n,path:[...n.path,"propertyNames"]})),a.additionalProperties=qe(r.valueType,e,{...n,path:[...n.path,"additionalProperties"]});let u=s._zod.values;if(u){let c=[...u].filter(p=>typeof p=="string"||typeof p=="number");c.length>0&&(a.required=c)}},Og=(t,e,i,n)=>{let a=t._zod.def,r=qe(a.innerType,e,n),s=e.seen.get(t);e.target==="openapi-3.0"?(s.ref=a.innerType,i.nullable=!0):i.anyOf=[r,{type:"null"}]},xg=(t,e,i,n)=>{let a=t._zod.def;qe(a.innerType,e,n);let r=e.seen.get(t);r.ref=a.innerType},Tg=(t,e,i,n)=>{let a=t._zod.def;qe(a.innerType,e,n);let r=e.seen.get(t);r.ref=a.innerType,i.default=JSON.parse(JSON.stringify(a.defaultValue))},Mg=(t,e,i,n)=>{let a=t._zod.def;qe(a.innerType,e,n);let r=e.seen.get(t);r.ref=a.innerType,e.io==="input"&&(i._prefault=JSON.parse(JSON.stringify(a.defaultValue)))},Eg=(t,e,i,n)=>{let a=t._zod.def;qe(a.innerType,e,n);let r=e.seen.get(t);r.ref=a.innerType;let s;try{s=a.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}i.default=s},kg=(t,e,i,n)=>{let a=t._zod.def,r=a.in._zod.traits.has("$ZodTransform"),s=e.io==="input"?r?a.out:a.in:a.out;qe(s,e,n);let o=e.seen.get(t);o.ref=s},qg=(t,e,i,n)=>{let a=t._zod.def;qe(a.innerType,e,n);let r=e.seen.get(t);r.ref=a.innerType,i.readOnly=!0},Cj=(t,e,i,n)=>{let a=t._zod.def;qe(a.innerType,e,n);let r=e.seen.get(t);r.ref=a.innerType},nu=(t,e,i,n)=>{let a=t._zod.def;qe(a.innerType,e,n);let r=e.seen.get(t);r.ref=a.innerType},Aj=(t,e,i,n)=>{let a=t._zod.innerType;qe(a,e,n);let r=e.seen.get(t);r.ref=a},aj={string:pg,number:dg,boolean:hg,bigint:rj,symbol:sj,null:gg,undefined:oj,void:lj,never:mg,any:uj,unknown:fg,date:cj,enum:wg,literal:vg,nan:pj,template_literal:dj,file:hj,success:gj,custom:Cg,function:mj,transform:Ag,map:fj,set:wj,array:bg,object:yg,union:Pg,intersection:jg,tuple:vj,record:Sg,nullable:Og,nonoptional:xg,default:Tg,prefault:Mg,catch:Eg,pipe:kg,readonly:qg,promise:Cj,optional:nu,lazy:Aj};function _g(t,e){if("_idmap"in t){let n=t,a=Hs({...e,processors:aj}),r={};for(let l of n._idmap.entries()){let[u,c]=l;qe(c,a)}let s={},o={registry:n,uri:e?.uri,defs:r};a.external=o;for(let l of n._idmap.entries()){let[u,c]=l;Rs(a,c),s[u]=Is(a,c)}if(Object.keys(r).length>0){let l=a.target==="draft-2020-12"?"$defs":"definitions";s.__shared={[l]:r}}return{schemas:s}}let i=Hs({...e,processors:aj});return qe(t,i),Rs(i,t),Is(i,t)}var VD=j("ZodMiniType",(t,e)=>{if(!t._zod)throw new Error("Uninitialized schema in ZodMiniType.");ke.init(t,e),t.def=e,t.type=e.type,t.parse=(i,n)=>Nl(t,i,n,{callee:t.parse}),t.safeParse=(i,n)=>ha(t,i,n),t.parseAsync=async(i,n)=>Ul(t,i,n,{callee:t.parseAsync}),t.safeParseAsync=async(i,n)=>ga(t,i,n),t.check=(...i)=>t.clone({...e,checks:[...e.checks??[],...i.map(n=>typeof n=="function"?{_zod:{check:n,def:{check:"custom"},onattach:[]}}:n)]},{parent:!0}),t.with=t.check,t.clone=(i,n)=>Yi(t,i,n),t.brand=()=>t,t.register=((i,n)=>(i.add(t,n),t)),t.apply=i=>i(t)});var JD=j("ZodMiniObject",(t,e)=>{oh.init(t,e),VD.init(t,e),Oe(t,"shape",()=>e.shape)});function Hg(t,e){let i={type:"object",shape:t??{},...J(e)};return new JD(i)}function ln(t){return!!t._zod}function wa(t){let e=Object.values(t);if(e.length===0)return Hg({});let i=e.every(ln),n=e.every(a=>!ln(a));if(i)return Hg(t);if(n)return vd(t);throw new Error("Mixed Zod versions detected in object shape.")}function Pt(t,e){return ln(t)?ha(t,e):t.safeParse(e)}async function tu(t,e){return ln(t)?await ga(t,e):await t.safeParseAsync(e)}function jt(t){if(!t)return;let e;if(ln(t)?e=t._zod?.def?.shape:e=t.shape,!!e){if(typeof e=="function")try{return e()}catch{return}return e}}function mr(t){if(t){if(typeof t=="object"){let e=t,i=t;if(!e._def&&!i._zod){let n=Object.values(t);if(n.length>0&&n.every(a=>typeof a=="object"&&a!==null&&(a._def!==void 0||a._zod!==void 0||typeof a.parse=="function")))return wa(t)}}if(ln(t)){let i=t._zod?.def;if(i&&(i.type==="object"||i.shape!==void 0))return t}else if(t.shape!==void 0)return t}}function au(t){if(t&&typeof t=="object"){if("message"in t&&typeof t.message=="string")return t.message;if("issues"in t&&Array.isArray(t.issues)&&t.issues.length>0){let e=t.issues[0];if(e&&typeof e=="object"&&"message"in e)return String(e.message)}try{return JSON.stringify(t)}catch{return String(t)}}return String(t)}function yj(t){return t.description}function Pj(t){if(ln(t))return t._zod?.def?.type==="optional";let e=t;return typeof t.isOptional=="function"?t.isOptional():e._def?.typeName==="ZodOptional"}function ru(t){if(ln(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 i=t._def;if(i){if(i.value!==void 0)return i.value;if(Array.isArray(i.values)&&i.values.length>0)return i.values[0]}let n=t.value;if(n!==void 0)return n}var zs={};gd(zs,{ZodISODate:()=>Sj,ZodISODateTime:()=>jj,ZodISODuration:()=>xj,ZodISOTime:()=>Oj,date:()=>Ig,datetime:()=>Rg,duration:()=>Dg,time:()=>zg});var jj=j("ZodISODateTime",(t,e)=>{NP.init(t,e),Le.init(t,e)});function Rg(t){return YP(jj,t)}var Sj=j("ZodISODate",(t,e)=>{UP.init(t,e),Le.init(t,e)});function Ig(t){return XP(Sj,t)}var Oj=j("ZodISOTime",(t,e)=>{LP.init(t,e),Le.init(t,e)});function zg(t){return ej(Oj,t)}var xj=j("ZodISODuration",(t,e)=>{WP.init(t,e),Le.init(t,e)});function Dg(t){return ij(xj,t)}var nG=(t,e)=>{$l.init(t,e),t.name="ZodError",Object.defineProperties(t,{format:{value:i=>Ry(t,i)},flatten:{value:i=>Hy(t,i)},addIssue:{value:i=>{t.issues.push(i),t.message=JSON.stringify(t.issues,pr,2)}},addIssues:{value:i=>{t.issues.push(...i),t.message=JSON.stringify(t.issues,pr,2)}},isEmpty:{get(){return t.issues.length===0}}})};var Xi=j("ZodError",nG,{Parent:Error});var Tj=js(Xi),Mj=Ss(Xi),Ej=Os(Xi),kj=xs(Xi),qj=Iy(Xi),_j=zy(Xi),Hj=Dy(Xi),Rj=Gy(Xi),Ij=$y(Xi),zj=Ny(Xi),Dj=Uy(Xi),Gj=Ly(Xi);var $j=new WeakMap;function Ds(t,e,i){let n=Object.getPrototypeOf(t),a=$j.get(n);if(a||(a=new Set,$j.set(n,a)),!a.has(e)){a.add(e);for(let r in i){let s=i[r];Object.defineProperty(n,r,{configurable:!0,enumerable:!1,get(){let o=s.bind(this);return Object.defineProperty(this,r,{configurable:!0,writable:!0,enumerable:!0,value:o}),o},set(o){Object.defineProperty(this,r,{configurable:!0,writable:!0,enumerable:!0,value:o})}})}}}var Fe=j("ZodType",(t,e)=>(ke.init(t,e),Object.assign(t["~standard"],{jsonSchema:{input:_s(t,"input"),output:_s(t,"output")}}),t.toJSONSchema=tj(t,{}),t.def=e,t.type=e.type,Object.defineProperty(t,"_def",{value:e}),t.parse=(i,n)=>Tj(t,i,n,{callee:t.parse}),t.safeParse=(i,n)=>Ej(t,i,n),t.parseAsync=async(i,n)=>Mj(t,i,n,{callee:t.parseAsync}),t.safeParseAsync=async(i,n)=>kj(t,i,n),t.spa=t.safeParseAsync,t.encode=(i,n)=>qj(t,i,n),t.decode=(i,n)=>_j(t,i,n),t.encodeAsync=async(i,n)=>Hj(t,i,n),t.decodeAsync=async(i,n)=>Rj(t,i,n),t.safeEncode=(i,n)=>Ij(t,i,n),t.safeDecode=(i,n)=>zj(t,i,n),t.safeEncodeAsync=async(i,n)=>Dj(t,i,n),t.safeDecodeAsync=async(i,n)=>Gj(t,i,n),Ds(t,"ZodType",{check(...i){let n=this.def;return this.clone(he.mergeDefs(n,{checks:[...n.checks??[],...i.map(a=>typeof a=="function"?{_zod:{check:a,def:{check:"custom"},onattach:[]}}:a)]}),{parent:!0})},with(...i){return this.check(...i)},clone(i,n){return Yi(this,i,n)},brand(){return this},register(i,n){return i.add(this,n),this},refine(i,n){return this.check(FG(i,n))},superRefine(i,n){return this.check(VG(i,n))},overwrite(i){return this.check(yt(i))},optional(){return Be(this)},exactOptional(){return HG(this)},nullable(){return Wj(this)},nullish(){return Be(Wj(this))},nonoptional(i){return $G(this,i)},array(){return ge(this)},or(i){return $e([this,i])},and(i){return ou(this,i)},transform(i){return Bj(this,Qj(i))},default(i){return zG(this,i)},prefault(i){return GG(this,i)},catch(i){return UG(this,i)},pipe(i){return Bj(this,i)},readonly(){return BG(this)},describe(i){let n=this.clone();return ma.add(n,{description:i}),n},meta(...i){if(i.length===0)return ma.get(this);let n=this.clone();return ma.add(n,i[0]),n},isOptional(){return this.safeParse(void 0).success},isNullable(){return this.safeParse(null).success},apply(i){return i(this)}}),Object.defineProperty(t,"description",{get(){return ma.get(t)?.description},configurable:!0}),t)),Fj=j("_ZodString",(t,e)=>{Es.init(t,e),Fe.init(t,e),t._zod.processJSONSchema=(n,a,r)=>pg(t,n,a,r);let i=t._zod.bag;t.format=i.format??null,t.minLength=i.minimum??null,t.maxLength=i.maximum??null,Ds(t,"_ZodString",{regex(...n){return this.check(Qh(...n))},includes(...n){return this.check(eg(...n))},startsWith(...n){return this.check(ig(...n))},endsWith(...n){return this.check(ng(...n))},min(...n){return this.check(gr(...n))},max(...n){return this.check(eu(...n))},length(...n){return this.check(iu(...n))},nonempty(...n){return this.check(gr(1,...n))},lowercase(n){return this.check(Yh(n))},uppercase(n){return this.check(Xh(n))},trim(){return this.check(ag())},normalize(...n){return this.check(tg(...n))},toLowerCase(){return this.check(rg())},toUpperCase(){return this.check(sg())},slugify(){return this.check(og())}})}),aG=j("ZodString",(t,e)=>{Es.init(t,e),Fj.init(t,e),t.email=i=>t.check(jh(rG,i)),t.url=i=>t.check(Mh(sG,i)),t.jwt=i=>t.check(Wh(bG,i)),t.emoji=i=>t.check(Eh(oG,i)),t.guid=i=>t.check(Kl(Nj,i)),t.uuid=i=>t.check(Sh(su,i)),t.uuidv4=i=>t.check(Oh(su,i)),t.uuidv6=i=>t.check(xh(su,i)),t.uuidv7=i=>t.check(Th(su,i)),t.nanoid=i=>t.check(kh(lG,i)),t.guid=i=>t.check(Kl(Nj,i)),t.cuid=i=>t.check(qh(uG,i)),t.cuid2=i=>t.check(_h(cG,i)),t.ulid=i=>t.check(Hh(pG,i)),t.base64=i=>t.check(Nh(vG,i)),t.base64url=i=>t.check(Uh(CG,i)),t.xid=i=>t.check(Rh(dG,i)),t.ksuid=i=>t.check(Ih(hG,i)),t.ipv4=i=>t.check(zh(gG,i)),t.ipv6=i=>t.check(Dh(mG,i)),t.cidrv4=i=>t.check(Gh(fG,i)),t.cidrv6=i=>t.check($h(wG,i)),t.e164=i=>t.check(Lh(AG,i)),t.datetime=i=>t.check(Rg(i)),t.date=i=>t.check(Ig(i)),t.time=i=>t.check(zg(i)),t.duration=i=>t.check(Dg(i))});function P(t){return Ph(aG,t)}var Le=j("ZodStringFormat",(t,e)=>{Ie.init(t,e),Fj.init(t,e)}),rG=j("ZodEmail",(t,e)=>{Dd.init(t,e),Le.init(t,e)});var Nj=j("ZodGUID",(t,e)=>{Id.init(t,e),Le.init(t,e)});var su=j("ZodUUID",(t,e)=>{zd.init(t,e),Le.init(t,e)});var sG=j("ZodURL",(t,e)=>{Gd.init(t,e),Le.init(t,e)});var oG=j("ZodEmoji",(t,e)=>{$d.init(t,e),Le.init(t,e)});var lG=j("ZodNanoID",(t,e)=>{Nd.init(t,e),Le.init(t,e)});var uG=j("ZodCUID",(t,e)=>{Ud.init(t,e),Le.init(t,e)});var cG=j("ZodCUID2",(t,e)=>{Ld.init(t,e),Le.init(t,e)});var pG=j("ZodULID",(t,e)=>{Wd.init(t,e),Le.init(t,e)});var dG=j("ZodXID",(t,e)=>{Bd.init(t,e),Le.init(t,e)});var hG=j("ZodKSUID",(t,e)=>{Fd.init(t,e),Le.init(t,e)});var gG=j("ZodIPv4",(t,e)=>{Vd.init(t,e),Le.init(t,e)});var mG=j("ZodIPv6",(t,e)=>{Jd.init(t,e),Le.init(t,e)});var fG=j("ZodCIDRv4",(t,e)=>{Zd.init(t,e),Le.init(t,e)});var wG=j("ZodCIDRv6",(t,e)=>{Kd.init(t,e),Le.init(t,e)});var vG=j("ZodBase64",(t,e)=>{Qd.init(t,e),Le.init(t,e)});var CG=j("ZodBase64URL",(t,e)=>{Yd.init(t,e),Le.init(t,e)});var AG=j("ZodE164",(t,e)=>{Xd.init(t,e),Le.init(t,e)});var bG=j("ZodJWT",(t,e)=>{eh.init(t,e),Le.init(t,e)});var Vj=j("ZodNumber",(t,e)=>{Fl.init(t,e),Fe.init(t,e),t._zod.processJSONSchema=(n,a,r)=>dg(t,n,a,r),Ds(t,"ZodNumber",{gt(n,a){return this.check(Yl(n,a))},gte(n,a){return this.check(qs(n,a))},min(n,a){return this.check(qs(n,a))},lt(n,a){return this.check(Ql(n,a))},lte(n,a){return this.check(ks(n,a))},max(n,a){return this.check(ks(n,a))},int(n){return this.check(Uj(n))},safe(n){return this.check(Uj(n))},positive(n){return this.check(Yl(0,n))},nonnegative(n){return this.check(qs(0,n))},negative(n){return this.check(Ql(0,n))},nonpositive(n){return this.check(ks(0,n))},multipleOf(n,a){return this.check(Xl(n,a))},step(n,a){return this.check(Xl(n,a))},finite(){return this}});let i=t._zod.bag;t.minValue=Math.max(i.minimum??Number.NEGATIVE_INFINITY,i.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,t.maxValue=Math.min(i.maximum??Number.POSITIVE_INFINITY,i.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,t.isInt=(i.format??"").includes("int")||Number.isSafeInteger(i.multipleOf??.5),t.isFinite=!0,t.format=i.format??null});function Te(t){return Bh(Vj,t)}var yG=j("ZodNumberFormat",(t,e)=>{ih.init(t,e),Vj.init(t,e)});function Uj(t){return Fh(yG,t)}var PG=j("ZodBoolean",(t,e)=>{nh.init(t,e),Fe.init(t,e),t._zod.processJSONSchema=(i,n,a)=>hg(t,i,n,a)});function hi(t){return Vh(PG,t)}var jG=j("ZodNull",(t,e)=>{th.init(t,e),Fe.init(t,e),t._zod.processJSONSchema=(i,n,a)=>gg(t,i,n,a)});function Jj(t){return Jh(jG,t)}var SG=j("ZodUnknown",(t,e)=>{ah.init(t,e),Fe.init(t,e),t._zod.processJSONSchema=(i,n,a)=>fg(t,i,n,a)});function We(){return Zh(SG)}var OG=j("ZodNever",(t,e)=>{rh.init(t,e),Fe.init(t,e),t._zod.processJSONSchema=(i,n,a)=>mg(t,i,n,a)});function xG(t){return Kh(OG,t)}var TG=j("ZodArray",(t,e)=>{sh.init(t,e),Fe.init(t,e),t._zod.processJSONSchema=(i,n,a)=>bg(t,i,n,a),t.element=e.element,Ds(t,"ZodArray",{min(i,n){return this.check(gr(i,n))},nonempty(i){return this.check(gr(1,i))},max(i,n){return this.check(eu(i,n))},length(i,n){return this.check(iu(i,n))},unwrap(){return this.element}})});function ge(t,e){return nj(TG,t,e)}var Zj=j("ZodObject",(t,e)=>{JP.init(t,e),Fe.init(t,e),t._zod.processJSONSchema=(i,n,a)=>yg(t,i,n,a),he.defineLazy(t,"shape",()=>e.shape),Ds(t,"ZodObject",{keyof(){return Gi(Object.keys(this._zod.def.shape))},catchall(i){return this.clone({...this._zod.def,catchall:i})},passthrough(){return this.clone({...this._zod.def,catchall:We()})},loose(){return this.clone({...this._zod.def,catchall:We()})},strict(){return this.clone({...this._zod.def,catchall:xG()})},strip(){return this.clone({...this._zod.def,catchall:void 0})},extend(i){return he.extend(this,i)},safeExtend(i){return he.safeExtend(this,i)},merge(i){return he.merge(this,i)},pick(i){return he.pick(this,i)},omit(i){return he.omit(this,i)},partial(...i){return he.partial(lu,this,i[0])},required(...i){return he.required(Yj,this,i[0])}})});function D(t,e){let i={type:"object",shape:t??{},...he.normalizeParams(e)};return new Zj(i)}function qi(t,e){return new Zj({type:"object",shape:t,catchall:We(),...he.normalizeParams(e)})}var Kj=j("ZodUnion",(t,e)=>{Vl.init(t,e),Fe.init(t,e),t._zod.processJSONSchema=(i,n,a)=>Pg(t,i,n,a),t.options=e.options});function $e(t,e){return new Kj({type:"union",options:t,...he.normalizeParams(e)})}var MG=j("ZodDiscriminatedUnion",(t,e)=>{Kj.init(t,e),lh.init(t,e)});function $g(t,e,i){return new MG({type:"union",options:e,discriminator:t,...he.normalizeParams(i)})}var EG=j("ZodIntersection",(t,e)=>{uh.init(t,e),Fe.init(t,e),t._zod.processJSONSchema=(i,n,a)=>jg(t,i,n,a)});function ou(t,e){return new EG({type:"intersection",left:t,right:e})}var Lj=j("ZodRecord",(t,e)=>{ch.init(t,e),Fe.init(t,e),t._zod.processJSONSchema=(i,n,a)=>Sg(t,i,n,a),t.keyType=e.keyType,t.valueType=e.valueType});function ze(t,e,i){return!e||!e._zod?new Lj({type:"record",keyType:P(),valueType:t,...he.normalizeParams(e)}):new Lj({type:"record",keyType:t,valueType:e,...he.normalizeParams(i)})}var Gg=j("ZodEnum",(t,e)=>{ph.init(t,e),Fe.init(t,e),t._zod.processJSONSchema=(n,a,r)=>wg(t,n,a,r),t.enum=e.entries,t.options=Object.values(e.entries);let i=new Set(Object.keys(e.entries));t.extract=(n,a)=>{let r={};for(let s of n)if(i.has(s))r[s]=e.entries[s];else throw new Error(`Key ${s} not found in enum`);return new Gg({...e,checks:[],...he.normalizeParams(a),entries:r})},t.exclude=(n,a)=>{let r={...e.entries};for(let s of n)if(i.has(s))delete r[s];else throw new Error(`Key ${s} not found in enum`);return new Gg({...e,checks:[],...he.normalizeParams(a),entries:r})}});function Gi(t,e){let i=Array.isArray(t)?Object.fromEntries(t.map(n=>[n,n])):t;return new Gg({type:"enum",entries:i,...he.normalizeParams(e)})}var kG=j("ZodLiteral",(t,e)=>{dh.init(t,e),Fe.init(t,e),t._zod.processJSONSchema=(i,n,a)=>vg(t,i,n,a),t.values=new Set(e.values),Object.defineProperty(t,"value",{get(){if(e.values.length>1)throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");return e.values[0]}})});function W(t,e){return new kG({type:"literal",values:Array.isArray(t)?t:[t],...he.normalizeParams(e)})}var qG=j("ZodTransform",(t,e)=>{hh.init(t,e),Fe.init(t,e),t._zod.processJSONSchema=(i,n,a)=>Ag(t,i,n,a),t._zod.parse=(i,n)=>{if(n.direction==="backward")throw new ur(t.constructor.name);i.addIssue=r=>{if(typeof r=="string")i.issues.push(he.issue(r,i.value,e));else{let s=r;s.fatal&&(s.continue=!1),s.code??(s.code="custom"),s.input??(s.input=i.value),s.inst??(s.inst=t),i.issues.push(he.issue(s))}};let a=e.transform(i.value,i);return a instanceof Promise?a.then(r=>(i.value=r,i.fallback=!0,i)):(i.value=a,i.fallback=!0,i)}});function Qj(t){return new qG({type:"transform",transform:t})}var lu=j("ZodOptional",(t,e)=>{Jl.init(t,e),Fe.init(t,e),t._zod.processJSONSchema=(i,n,a)=>nu(t,i,n,a),t.unwrap=()=>t._zod.def.innerType});function Be(t){return new lu({type:"optional",innerType:t})}var _G=j("ZodExactOptional",(t,e)=>{gh.init(t,e),Fe.init(t,e),t._zod.processJSONSchema=(i,n,a)=>nu(t,i,n,a),t.unwrap=()=>t._zod.def.innerType});function HG(t){return new _G({type:"optional",innerType:t})}var RG=j("ZodNullable",(t,e)=>{mh.init(t,e),Fe.init(t,e),t._zod.processJSONSchema=(i,n,a)=>Og(t,i,n,a),t.unwrap=()=>t._zod.def.innerType});function Wj(t){return new RG({type:"nullable",innerType:t})}var IG=j("ZodDefault",(t,e)=>{fh.init(t,e),Fe.init(t,e),t._zod.processJSONSchema=(i,n,a)=>Tg(t,i,n,a),t.unwrap=()=>t._zod.def.innerType,t.removeDefault=t.unwrap});function zG(t,e){return new IG({type:"default",innerType:t,get defaultValue(){return typeof e=="function"?e():he.shallowClone(e)}})}var DG=j("ZodPrefault",(t,e)=>{wh.init(t,e),Fe.init(t,e),t._zod.processJSONSchema=(i,n,a)=>Mg(t,i,n,a),t.unwrap=()=>t._zod.def.innerType});function GG(t,e){return new DG({type:"prefault",innerType:t,get defaultValue(){return typeof e=="function"?e():he.shallowClone(e)}})}var Yj=j("ZodNonOptional",(t,e)=>{vh.init(t,e),Fe.init(t,e),t._zod.processJSONSchema=(i,n,a)=>xg(t,i,n,a),t.unwrap=()=>t._zod.def.innerType});function $G(t,e){return new Yj({type:"nonoptional",innerType:t,...he.normalizeParams(e)})}var NG=j("ZodCatch",(t,e)=>{Ch.init(t,e),Fe.init(t,e),t._zod.processJSONSchema=(i,n,a)=>Eg(t,i,n,a),t.unwrap=()=>t._zod.def.innerType,t.removeCatch=t.unwrap});function UG(t,e){return new NG({type:"catch",innerType:t,catchValue:typeof e=="function"?e:()=>e})}var Xj=j("ZodPipe",(t,e)=>{Zl.init(t,e),Fe.init(t,e),t._zod.processJSONSchema=(i,n,a)=>kg(t,i,n,a),t.in=e.in,t.out=e.out});function Bj(t,e){return new Xj({type:"pipe",in:t,out:e})}var LG=j("ZodPreprocess",(t,e)=>{Xj.init(t,e),ZP.init(t,e)}),WG=j("ZodReadonly",(t,e)=>{Ah.init(t,e),Fe.init(t,e),t._zod.processJSONSchema=(i,n,a)=>qg(t,i,n,a),t.unwrap=()=>t._zod.def.innerType});function BG(t){return new WG({type:"readonly",innerType:t})}var eS=j("ZodCustom",(t,e)=>{bh.init(t,e),Fe.init(t,e),t._zod.processJSONSchema=(i,n,a)=>Cg(t,i,n,a)});function iS(t,e){return lg(eS,t??(()=>!0),e)}function FG(t,e={}){return ug(eS,t,e)}function VG(t,e){return cg(t,e)}function Ng(t,e){return new LG({type:"pipe",in:Qj(t),out:e})}Qi(KP());var Lg="2025-11-25";var nS=[Lg,"2025-06-18","2025-03-26","2024-11-05","2024-10-07"],St="io.modelcontextprotocol/related-task",cu="2.0",si=iS(t=>t!==null&&(typeof t=="object"||typeof t=="function")),tS=$e([P(),Te().int()]),aS=P(),eie=qi({ttl:Te().optional(),pollInterval:Te().optional()}),JG=D({ttl:Te().optional()}),ZG=D({taskId:P()}),Wg=qi({progressToken:tS.optional(),[St]:ZG.optional()}),en=D({_meta:Wg.optional()}),Gs=en.extend({task:JG.optional()}),rS=t=>Gs.safeParse(t).success,Ai=D({method:P(),params:en.loose().optional()}),un=D({_meta:Wg.optional()}),cn=D({method:P(),params:un.loose().optional()}),bi=qi({_meta:Wg.optional()}),pu=$e([P(),Te().int()]),sS=D({jsonrpc:W(cu),id:pu,...Ai.shape}).strict(),Bg=t=>sS.safeParse(t).success,oS=D({jsonrpc:W(cu),...cn.shape}).strict(),lS=t=>oS.safeParse(t).success,Fg=D({jsonrpc:W(cu),id:pu,result:bi}).strict(),$s=t=>Fg.safeParse(t).success;var V;(function(t){t[t.ConnectionClosed=-32e3]="ConnectionClosed",t[t.RequestTimeout=-32001]="RequestTimeout",t[t.ParseError=-32700]="ParseError",t[t.InvalidRequest=-32600]="InvalidRequest",t[t.MethodNotFound=-32601]="MethodNotFound",t[t.InvalidParams=-32602]="InvalidParams",t[t.InternalError=-32603]="InternalError",t[t.UrlElicitationRequired=-32042]="UrlElicitationRequired"})(V||(V={}));var Vg=D({jsonrpc:W(cu),id:pu.optional(),error:D({code:Te().int(),message:P(),data:We().optional()})}).strict();var uS=t=>Vg.safeParse(t).success;var cS=$e([sS,oS,Fg,Vg]),iie=$e([Fg,Vg]),du=bi.strict(),KG=un.extend({requestId:pu.optional(),reason:P().optional()}),hu=cn.extend({method:W("notifications/cancelled"),params:KG}),QG=D({src:P(),mimeType:P().optional(),sizes:ge(P()).optional(),theme:Gi(["light","dark"]).optional()}),Ns=D({icons:ge(QG).optional()}),fr=D({name:P(),title:P().optional()}),pS=fr.extend({...fr.shape,...Ns.shape,version:P(),websiteUrl:P().optional(),description:P().optional()}),YG=ou(D({applyDefaults:hi().optional()}),ze(P(),We())),XG=Ng(t=>t&&typeof t=="object"&&!Array.isArray(t)&&Object.keys(t).length===0?{form:{}}:t,ou(D({form:YG.optional(),url:si.optional()}),ze(P(),We()).optional())),e1=qi({list:si.optional(),cancel:si.optional(),requests:qi({sampling:qi({createMessage:si.optional()}).optional(),elicitation:qi({create:si.optional()}).optional()}).optional()}),i1=qi({list:si.optional(),cancel:si.optional(),requests:qi({tools:qi({call:si.optional()}).optional()}).optional()}),n1=D({experimental:ze(P(),si).optional(),sampling:D({context:si.optional(),tools:si.optional()}).optional(),elicitation:XG.optional(),roots:D({listChanged:hi().optional()}).optional(),tasks:e1.optional(),extensions:ze(P(),si).optional()}),t1=en.extend({protocolVersion:P(),capabilities:n1,clientInfo:pS}),Jg=Ai.extend({method:W("initialize"),params:t1});var a1=D({experimental:ze(P(),si).optional(),logging:si.optional(),completions:si.optional(),prompts:D({listChanged:hi().optional()}).optional(),resources:D({subscribe:hi().optional(),listChanged:hi().optional()}).optional(),tools:D({listChanged:hi().optional()}).optional(),tasks:i1.optional(),extensions:ze(P(),si).optional()}),r1=bi.extend({protocolVersion:P(),capabilities:a1,serverInfo:pS,instructions:P().optional()}),Zg=cn.extend({method:W("notifications/initialized"),params:un.optional()});var gu=Ai.extend({method:W("ping"),params:en.optional()}),s1=D({progress:Te(),total:Be(Te()),message:Be(P())}),o1=D({...un.shape,...s1.shape,progressToken:tS}),mu=cn.extend({method:W("notifications/progress"),params:o1}),l1=en.extend({cursor:aS.optional()}),Us=Ai.extend({params:l1.optional()}),Ls=bi.extend({nextCursor:aS.optional()}),u1=Gi(["working","input_required","completed","failed","cancelled"]),Ws=D({taskId:P(),status:u1,ttl:$e([Te(),Jj()]),createdAt:P(),lastUpdatedAt:P(),pollInterval:Be(Te()),statusMessage:Be(P())}),wr=bi.extend({task:Ws}),c1=un.merge(Ws),Bs=cn.extend({method:W("notifications/tasks/status"),params:c1}),fu=Ai.extend({method:W("tasks/get"),params:en.extend({taskId:P()})}),wu=bi.merge(Ws),vu=Ai.extend({method:W("tasks/result"),params:en.extend({taskId:P()})}),nie=bi.loose(),Cu=Us.extend({method:W("tasks/list")}),Au=Ls.extend({tasks:ge(Ws)}),bu=Ai.extend({method:W("tasks/cancel"),params:en.extend({taskId:P()})}),dS=bi.merge(Ws),hS=D({uri:P(),mimeType:Be(P()),_meta:ze(P(),We()).optional()}),gS=hS.extend({text:P()}),Kg=P().refine(t=>{try{return atob(t),!0}catch{return!1}},{message:"Invalid Base64 string"}),mS=hS.extend({blob:Kg}),Fs=Gi(["user","assistant"]),vr=D({audience:ge(Fs).optional(),priority:Te().min(0).max(1).optional(),lastModified:zs.datetime({offset:!0}).optional()}),fS=D({...fr.shape,...Ns.shape,uri:P(),description:Be(P()),mimeType:Be(P()),size:Be(Te()),annotations:vr.optional(),_meta:Be(qi({}))}),p1=D({...fr.shape,...Ns.shape,uriTemplate:P(),description:Be(P()),mimeType:Be(P()),annotations:vr.optional(),_meta:Be(qi({}))}),yu=Us.extend({method:W("resources/list")}),d1=Ls.extend({resources:ge(fS)}),Pu=Us.extend({method:W("resources/templates/list")}),h1=Ls.extend({resourceTemplates:ge(p1)}),Qg=en.extend({uri:P()}),g1=Qg,ju=Ai.extend({method:W("resources/read"),params:g1}),m1=bi.extend({contents:ge($e([gS,mS]))}),f1=cn.extend({method:W("notifications/resources/list_changed"),params:un.optional()}),w1=Qg,v1=Ai.extend({method:W("resources/subscribe"),params:w1}),C1=Qg,A1=Ai.extend({method:W("resources/unsubscribe"),params:C1}),b1=un.extend({uri:P()}),y1=cn.extend({method:W("notifications/resources/updated"),params:b1}),P1=D({name:P(),description:Be(P()),required:Be(hi())}),j1=D({...fr.shape,...Ns.shape,description:Be(P()),arguments:Be(ge(P1)),_meta:Be(qi({}))}),Su=Us.extend({method:W("prompts/list")}),S1=Ls.extend({prompts:ge(j1)}),O1=en.extend({name:P(),arguments:ze(P(),P()).optional()}),Ou=Ai.extend({method:W("prompts/get"),params:O1}),Yg=D({type:W("text"),text:P(),annotations:vr.optional(),_meta:ze(P(),We()).optional()}),Xg=D({type:W("image"),data:Kg,mimeType:P(),annotations:vr.optional(),_meta:ze(P(),We()).optional()}),em=D({type:W("audio"),data:Kg,mimeType:P(),annotations:vr.optional(),_meta:ze(P(),We()).optional()}),x1=D({type:W("tool_use"),name:P(),id:P(),input:ze(P(),We()),_meta:ze(P(),We()).optional()}),T1=D({type:W("resource"),resource:$e([gS,mS]),annotations:vr.optional(),_meta:ze(P(),We()).optional()}),M1=fS.extend({type:W("resource_link")}),im=$e([Yg,Xg,em,M1,T1]),E1=D({role:Fs,content:im}),k1=bi.extend({description:P().optional(),messages:ge(E1)}),q1=cn.extend({method:W("notifications/prompts/list_changed"),params:un.optional()}),_1=D({title:P().optional(),readOnlyHint:hi().optional(),destructiveHint:hi().optional(),idempotentHint:hi().optional(),openWorldHint:hi().optional()}),H1=D({taskSupport:Gi(["required","optional","forbidden"]).optional()}),wS=D({...fr.shape,...Ns.shape,description:P().optional(),inputSchema:D({type:W("object"),properties:ze(P(),si).optional(),required:ge(P()).optional()}).catchall(We()),outputSchema:D({type:W("object"),properties:ze(P(),si).optional(),required:ge(P()).optional()}).catchall(We()).optional(),annotations:_1.optional(),execution:H1.optional(),_meta:ze(P(),We()).optional()}),xu=Us.extend({method:W("tools/list")}),R1=Ls.extend({tools:ge(wS)}),Tu=bi.extend({content:ge(im).default([]),structuredContent:ze(P(),We()).optional(),isError:hi().optional()}),tie=Tu.or(bi.extend({toolResult:We()})),I1=Gs.extend({name:P(),arguments:ze(P(),We()).optional()}),Cr=Ai.extend({method:W("tools/call"),params:I1}),z1=cn.extend({method:W("notifications/tools/list_changed"),params:un.optional()}),aie=D({autoRefresh:hi().default(!0),debounceMs:Te().int().nonnegative().default(300)}),Vs=Gi(["debug","info","notice","warning","error","critical","alert","emergency"]),D1=en.extend({level:Vs}),nm=Ai.extend({method:W("logging/setLevel"),params:D1}),G1=un.extend({level:Vs,logger:P().optional(),data:We()}),$1=cn.extend({method:W("notifications/message"),params:G1}),N1=D({name:P().optional()}),U1=D({hints:ge(N1).optional(),costPriority:Te().min(0).max(1).optional(),speedPriority:Te().min(0).max(1).optional(),intelligencePriority:Te().min(0).max(1).optional()}),L1=D({mode:Gi(["auto","required","none"]).optional()}),W1=D({type:W("tool_result"),toolUseId:P().describe("The unique identifier for the corresponding tool call."),content:ge(im).default([]),structuredContent:D({}).loose().optional(),isError:hi().optional(),_meta:ze(P(),We()).optional()}),B1=$g("type",[Yg,Xg,em]),uu=$g("type",[Yg,Xg,em,x1,W1]),F1=D({role:Fs,content:$e([uu,ge(uu)]),_meta:ze(P(),We()).optional()}),V1=Gs.extend({messages:ge(F1),modelPreferences:U1.optional(),systemPrompt:P().optional(),includeContext:Gi(["none","thisServer","allServers"]).optional(),temperature:Te().optional(),maxTokens:Te().int(),stopSequences:ge(P()).optional(),metadata:si.optional(),tools:ge(wS).optional(),toolChoice:L1.optional()}),J1=Ai.extend({method:W("sampling/createMessage"),params:V1}),Js=bi.extend({model:P(),stopReason:Be(Gi(["endTurn","stopSequence","maxTokens"]).or(P())),role:Fs,content:B1}),tm=bi.extend({model:P(),stopReason:Be(Gi(["endTurn","stopSequence","maxTokens","toolUse"]).or(P())),role:Fs,content:$e([uu,ge(uu)])}),Z1=D({type:W("boolean"),title:P().optional(),description:P().optional(),default:hi().optional()}),K1=D({type:W("string"),title:P().optional(),description:P().optional(),minLength:Te().optional(),maxLength:Te().optional(),format:Gi(["email","uri","date","date-time"]).optional(),default:P().optional()}),Q1=D({type:Gi(["number","integer"]),title:P().optional(),description:P().optional(),minimum:Te().optional(),maximum:Te().optional(),default:Te().optional()}),Y1=D({type:W("string"),title:P().optional(),description:P().optional(),enum:ge(P()),default:P().optional()}),X1=D({type:W("string"),title:P().optional(),description:P().optional(),oneOf:ge(D({const:P(),title:P()})),default:P().optional()}),e$=D({type:W("string"),title:P().optional(),description:P().optional(),enum:ge(P()),enumNames:ge(P()).optional(),default:P().optional()}),i$=$e([Y1,X1]),n$=D({type:W("array"),title:P().optional(),description:P().optional(),minItems:Te().optional(),maxItems:Te().optional(),items:D({type:W("string"),enum:ge(P())}),default:ge(P()).optional()}),t$=D({type:W("array"),title:P().optional(),description:P().optional(),minItems:Te().optional(),maxItems:Te().optional(),items:D({anyOf:ge(D({const:P(),title:P()}))}),default:ge(P()).optional()}),a$=$e([n$,t$]),r$=$e([e$,i$,a$]),s$=$e([r$,Z1,K1,Q1]),o$=Gs.extend({mode:W("form").optional(),message:P(),requestedSchema:D({type:W("object"),properties:ze(P(),s$),required:ge(P()).optional()})}),l$=Gs.extend({mode:W("url"),message:P(),elicitationId:P(),url:P().url()}),u$=$e([o$,l$]),c$=Ai.extend({method:W("elicitation/create"),params:u$}),p$=un.extend({elicitationId:P()}),d$=cn.extend({method:W("notifications/elicitation/complete"),params:p$}),Ar=bi.extend({action:Gi(["accept","decline","cancel"]),content:Ng(t=>t===null?void 0:t,ze(P(),$e([P(),Te(),hi(),ge(P())])).optional())}),h$=D({type:W("ref/resource"),uri:P()});var g$=D({type:W("ref/prompt"),name:P()}),m$=en.extend({ref:$e([g$,h$]),argument:D({name:P(),value:P()}),context:D({arguments:ze(P(),P()).optional()}).optional()}),Mu=Ai.extend({method:W("completion/complete"),params:m$});function vS(t){if(t.params.ref.type!=="ref/prompt")throw new TypeError(`Expected CompleteRequestPrompt, but got ${t.params.ref.type}`)}function CS(t){if(t.params.ref.type!=="ref/resource")throw new TypeError(`Expected CompleteRequestResourceTemplate, but got ${t.params.ref.type}`)}var f$=bi.extend({completion:qi({values:ge(P()).max(100),total:Be(Te().int()),hasMore:Be(hi())})}),w$=D({uri:P().startsWith("file://"),name:P().optional(),_meta:ze(P(),We()).optional()}),v$=Ai.extend({method:W("roots/list"),params:en.optional()}),am=bi.extend({roots:ge(w$)}),C$=cn.extend({method:W("notifications/roots/list_changed"),params:un.optional()}),rie=$e([gu,Jg,Mu,nm,Ou,Su,yu,Pu,ju,v1,A1,Cr,xu,fu,vu,Cu,bu]),sie=$e([hu,mu,Zg,C$,Bs]),oie=$e([du,Js,tm,Ar,am,wu,Au,wr]),lie=$e([gu,J1,c$,v$,fu,vu,Cu,bu]),uie=$e([hu,mu,$1,y1,f1,z1,q1,Bs,d$]),cie=$e([du,r1,f$,k1,S1,d1,h1,m1,Tu,R1,wu,Au,wr]),L=class t extends Error{constructor(e,i,n){super(`MCP error ${e}: ${i}`),this.code=e,this.data=n,this.name="McpError"}static fromError(e,i,n){if(e===V.UrlElicitationRequired&&n){let a=n;if(a.elicitations)return new Ug(a.elicitations,i)}return new t(e,i,n)}},Ug=class extends L{constructor(e,i=`URL elicitation${e.length>1?"s":""} required`){super(V.UrlElicitationRequired,i,{elicitations:e})}get elicitations(){return this.data?.elicitations??[]}};function Ot(t){return t==="completed"||t==="failed"||t==="cancelled"}var bS=Symbol("Let zodToJsonSchema decide on which parser to use");var AS={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"},yS=t=>typeof t=="string"?{...AS,name:t}:{...AS,...t};var PS=t=>{let e=yS(t),i=e.name!==void 0?[...e.basePath,e.definitionPath,e.name]:e.basePath;return{...e,flags:{hasReferencedOpenAiAnyType:!1},currentPath:i,propertyPath:void 0,seen:new Map(Object.entries(e.definitions).map(([n,a])=>[a._def,{def:a._def,path:[...e.basePath,e.definitionPath,n],jsonSchema:void 0}]))}};function rm(t,e,i,n){n?.errorMessages&&i&&(t.errorMessage={...t.errorMessage,[e]:i})}function me(t,e,i,n,a){t[e]=i,rm(t,e,n,a)}var Eu=(t,e)=>{let i=0;for(;iY(t.innerType._def,e);function sm(t,e,i){let n=i??e.dateStrategy;if(Array.isArray(n))return{anyOf:n.map((a,r)=>sm(t,e,a))};switch(n){case"string":case"format:date-time":return{type:"string",format:"date-time"};case"format:date":return{type:"string",format:"date"};case"integer":return A$(t,e)}}var A$=(t,e)=>{let i={type:"integer",format:"unix-time"};if(e.target==="openApi3")return i;for(let n of t.checks)switch(n.kind){case"min":me(i,"minimum",n.value,n.message,e);break;case"max":me(i,"maximum",n.value,n.message,e);break}return i};function TS(t,e){return{...Y(t.innerType._def,e),default:t.defaultValue()}}function MS(t,e){return e.effectStrategy==="input"?Y(t.schema._def,e):Ve(e)}function ES(t){return{type:"string",enum:Array.from(t.values)}}var b$=t=>"type"in t&&t.type==="string"?!1:"allOf"in t;function kS(t,e){let i=[Y(t.left._def,{...e,currentPath:[...e.currentPath,"allOf","0"]}),Y(t.right._def,{...e,currentPath:[...e.currentPath,"allOf","1"]})].filter(r=>!!r),n=e.target==="jsonSchema2019-09"?{unevaluatedProperties:!1}:void 0,a=[];return i.forEach(r=>{if(b$(r))a.push(...r.allOf),r.unevaluatedProperties===void 0&&(n=void 0);else{let s=r;if("additionalProperties"in r&&r.additionalProperties===!1){let{additionalProperties:o,...l}=r;s=l}else n=void 0;a.push(s)}}),a.length?{allOf:a,...n}:void 0}function qS(t,e){let i=typeof t.value;return i!=="bigint"&&i!=="number"&&i!=="boolean"&&i!=="string"?{type:Array.isArray(t.value)?"array":"object"}:e.target==="openApi3"?{type:i==="bigint"?"integer":i,enum:[t.value]}:{type:i==="bigint"?"integer":i,const:t.value}}var om,An={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:()=>(om===void 0&&(om=RegExp("^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$","u")),om),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 qu(t,e){let i={type:"string"};if(t.checks)for(let n of t.checks)switch(n.kind){case"min":me(i,"minLength",typeof i.minLength=="number"?Math.max(i.minLength,n.value):n.value,n.message,e);break;case"max":me(i,"maxLength",typeof i.maxLength=="number"?Math.min(i.maxLength,n.value):n.value,n.message,e);break;case"email":switch(e.emailStrategy){case"format:email":bn(i,"email",n.message,e);break;case"format:idn-email":bn(i,"idn-email",n.message,e);break;case"pattern:zod":_i(i,An.email,n.message,e);break}break;case"url":bn(i,"uri",n.message,e);break;case"uuid":bn(i,"uuid",n.message,e);break;case"regex":_i(i,n.regex,n.message,e);break;case"cuid":_i(i,An.cuid,n.message,e);break;case"cuid2":_i(i,An.cuid2,n.message,e);break;case"startsWith":_i(i,RegExp(`^${lm(n.value,e)}`),n.message,e);break;case"endsWith":_i(i,RegExp(`${lm(n.value,e)}$`),n.message,e);break;case"datetime":bn(i,"date-time",n.message,e);break;case"date":bn(i,"date",n.message,e);break;case"time":bn(i,"time",n.message,e);break;case"duration":bn(i,"duration",n.message,e);break;case"length":me(i,"minLength",typeof i.minLength=="number"?Math.max(i.minLength,n.value):n.value,n.message,e),me(i,"maxLength",typeof i.maxLength=="number"?Math.min(i.maxLength,n.value):n.value,n.message,e);break;case"includes":{_i(i,RegExp(lm(n.value,e)),n.message,e);break}case"ip":{n.version!=="v6"&&bn(i,"ipv4",n.message,e),n.version!=="v4"&&bn(i,"ipv6",n.message,e);break}case"base64url":_i(i,An.base64url,n.message,e);break;case"jwt":_i(i,An.jwt,n.message,e);break;case"cidr":{n.version!=="v6"&&_i(i,An.ipv4Cidr,n.message,e),n.version!=="v4"&&_i(i,An.ipv6Cidr,n.message,e);break}case"emoji":_i(i,An.emoji(),n.message,e);break;case"ulid":{_i(i,An.ulid,n.message,e);break}case"base64":{switch(e.base64Strategy){case"format:binary":{bn(i,"binary",n.message,e);break}case"contentEncoding:base64":{me(i,"contentEncoding","base64",n.message,e);break}case"pattern:zod":{_i(i,An.base64,n.message,e);break}}break}case"nanoid":_i(i,An.nanoid,n.message,e);case"toLowerCase":case"toUpperCase":case"trim":break;default:}return i}function lm(t,e){return e.patternStrategy==="escape"?P$(t):t}var y$=new Set("ABCDEFGHIJKLMNOPQRSTUVXYZabcdefghijklmnopqrstuvxyz0123456789");function P$(t){let e="";for(let i=0;ia.format)?(t.anyOf||(t.anyOf=[]),t.format&&(t.anyOf.push({format:t.format,...t.errorMessage&&n.errorMessages&&{errorMessage:{format:t.errorMessage.format}}}),delete t.format,t.errorMessage&&(delete t.errorMessage.format,Object.keys(t.errorMessage).length===0&&delete t.errorMessage)),t.anyOf.push({format:e,...i&&n.errorMessages&&{errorMessage:{format:i}}})):me(t,"format",e,i,n)}function _i(t,e,i,n){t.pattern||t.allOf?.some(a=>a.pattern)?(t.allOf||(t.allOf=[]),t.pattern&&(t.allOf.push({pattern:t.pattern,...t.errorMessage&&n.errorMessages&&{errorMessage:{pattern:t.errorMessage.pattern}}}),delete t.pattern,t.errorMessage&&(delete t.errorMessage.pattern,Object.keys(t.errorMessage).length===0&&delete t.errorMessage)),t.allOf.push({pattern:_S(e,n),...i&&n.errorMessages&&{errorMessage:{pattern:i}}})):me(t,"pattern",_S(e,n),i,n)}function _S(t,e){if(!e.applyRegexFlags||!t.flags)return t.source;let i={i:t.flags.includes("i"),m:t.flags.includes("m"),s:t.flags.includes("s")},n=i.i?t.source.toLowerCase():t.source,a="",r=!1,s=!1,o=!1;for(let l=0;l({...n,[a]:Y(t.valueType._def,{...e,currentPath:[...e.currentPath,"properties",a]})??Ve(e)}),{}),additionalProperties:e.rejectedAdditionalProperties};let i={type:"object",additionalProperties:Y(t.valueType._def,{...e,currentPath:[...e.currentPath,"additionalProperties"]})??e.allowedAdditionalProperties};if(e.target==="openApi3")return i;if(t.keyType?._def.typeName===E.ZodString&&t.keyType._def.checks?.length){let{type:n,...a}=qu(t.keyType._def,e);return{...i,propertyNames:a}}else{if(t.keyType?._def.typeName===E.ZodEnum)return{...i,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:n,...a}=ku(t.keyType._def,e);return{...i,propertyNames:a}}}return i}function HS(t,e){if(e.mapStrategy==="record")return _u(t,e);let i=Y(t.keyType._def,{...e,currentPath:[...e.currentPath,"items","items","0"]})||Ve(e),n=Y(t.valueType._def,{...e,currentPath:[...e.currentPath,"items","items","1"]})||Ve(e);return{type:"array",maxItems:125,items:{type:"array",items:[i,n],minItems:2,maxItems:2}}}function RS(t){let e=t.values,n=Object.keys(t.values).filter(r=>typeof e[e[r]]!="number").map(r=>e[r]),a=Array.from(new Set(n.map(r=>typeof r)));return{type:a.length===1?a[0]==="string"?"string":"number":["string","number"],enum:n}}function IS(t){return t.target==="openAi"?void 0:{not:Ve({...t,currentPath:[...t.currentPath,"not"]})}}function zS(t){return t.target==="openApi3"?{enum:["null"],nullable:!0}:{type:"null"}}var Zs={ZodString:"string",ZodNumber:"number",ZodBigInt:"integer",ZodBoolean:"boolean",ZodNull:"null"};function GS(t,e){if(e.target==="openApi3")return DS(t,e);let i=t.options instanceof Map?Array.from(t.options.values()):t.options;if(i.every(n=>n._def.typeName in Zs&&(!n._def.checks||!n._def.checks.length))){let n=i.reduce((a,r)=>{let s=Zs[r._def.typeName];return s&&!a.includes(s)?[...a,s]:a},[]);return{type:n.length>1?n:n[0]}}else if(i.every(n=>n._def.typeName==="ZodLiteral"&&!n.description)){let n=i.reduce((a,r)=>{let s=typeof r._def.value;switch(s){case"string":case"number":case"boolean":return[...a,s];case"bigint":return[...a,"integer"];case"object":if(r._def.value===null)return[...a,"null"];case"symbol":case"undefined":case"function":default:return a}},[]);if(n.length===i.length){let a=n.filter((r,s,o)=>o.indexOf(r)===s);return{type:a.length>1?a:a[0],enum:i.reduce((r,s)=>r.includes(s._def.value)?r:[...r,s._def.value],[])}}}else if(i.every(n=>n._def.typeName==="ZodEnum"))return{type:"string",enum:i.reduce((n,a)=>[...n,...a._def.values.filter(r=>!n.includes(r))],[])};return DS(t,e)}var DS=(t,e)=>{let i=(t.options instanceof Map?Array.from(t.options.values()):t.options).map((n,a)=>Y(n._def,{...e,currentPath:[...e.currentPath,"anyOf",`${a}`]})).filter(n=>!!n&&(!e.strictUnions||typeof n=="object"&&Object.keys(n).length>0));return i.length?{anyOf:i}:void 0};function $S(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:Zs[t.innerType._def.typeName],nullable:!0}:{type:[Zs[t.innerType._def.typeName],"null"]};if(e.target==="openApi3"){let n=Y(t.innerType._def,{...e,currentPath:[...e.currentPath]});return n&&"$ref"in n?{allOf:[n],nullable:!0}:n&&{...n,nullable:!0}}let i=Y(t.innerType._def,{...e,currentPath:[...e.currentPath,"anyOf","0"]});return i&&{anyOf:[i,{type:"null"}]}}function NS(t,e){let i={type:"number"};if(!t.checks)return i;for(let n of t.checks)switch(n.kind){case"int":i.type="integer",rm(i,"type",n.message,e);break;case"min":e.target==="jsonSchema7"?n.inclusive?me(i,"minimum",n.value,n.message,e):me(i,"exclusiveMinimum",n.value,n.message,e):(n.inclusive||(i.exclusiveMinimum=!0),me(i,"minimum",n.value,n.message,e));break;case"max":e.target==="jsonSchema7"?n.inclusive?me(i,"maximum",n.value,n.message,e):me(i,"exclusiveMaximum",n.value,n.message,e):(n.inclusive||(i.exclusiveMaximum=!0),me(i,"maximum",n.value,n.message,e));break;case"multipleOf":me(i,"multipleOf",n.value,n.message,e);break}return i}function US(t,e){let i=e.target==="openAi",n={type:"object",properties:{}},a=[],r=t.shape();for(let o in r){let l=r[o];if(l===void 0||l._def===void 0)continue;let u=S$(l);u&&i&&(l._def.typeName==="ZodOptional"&&(l=l._def.innerType),l.isNullable()||(l=l.nullable()),u=!1);let c=Y(l._def,{...e,currentPath:[...e.currentPath,"properties",o],propertyPath:[...e.currentPath,"properties",o]});c!==void 0&&(n.properties[o]=c,u||a.push(o))}a.length&&(n.required=a);let s=j$(t,e);return s!==void 0&&(n.additionalProperties=s),n}function j$(t,e){if(t.catchall._def.typeName!=="ZodNever")return Y(t.catchall._def,{...e,currentPath:[...e.currentPath,"additionalProperties"]});switch(t.unknownKeys){case"passthrough":return e.allowedAdditionalProperties;case"strict":return e.rejectedAdditionalProperties;case"strip":return e.removeAdditionalStrategy==="strict"?e.allowedAdditionalProperties:e.rejectedAdditionalProperties}}function S$(t){try{return t.isOptional()}catch{return!0}}var LS=(t,e)=>{if(e.currentPath.toString()===e.propertyPath?.toString())return Y(t.innerType._def,e);let i=Y(t.innerType._def,{...e,currentPath:[...e.currentPath,"anyOf","1"]});return i?{anyOf:[{not:Ve(e)},i]}:Ve(e)};var WS=(t,e)=>{if(e.pipeStrategy==="input")return Y(t.in._def,e);if(e.pipeStrategy==="output")return Y(t.out._def,e);let i=Y(t.in._def,{...e,currentPath:[...e.currentPath,"allOf","0"]}),n=Y(t.out._def,{...e,currentPath:[...e.currentPath,"allOf",i?"1":"0"]});return{allOf:[i,n].filter(a=>a!==void 0)}};function BS(t,e){return Y(t.type._def,e)}function FS(t,e){let n={type:"array",uniqueItems:!0,items:Y(t.valueType._def,{...e,currentPath:[...e.currentPath,"items"]})};return t.minSize&&me(n,"minItems",t.minSize.value,t.minSize.message,e),t.maxSize&&me(n,"maxItems",t.maxSize.value,t.maxSize.message,e),n}function VS(t,e){return t.rest?{type:"array",minItems:t.items.length,items:t.items.map((i,n)=>Y(i._def,{...e,currentPath:[...e.currentPath,"items",`${n}`]})).reduce((i,n)=>n===void 0?i:[...i,n],[]),additionalItems:Y(t.rest._def,{...e,currentPath:[...e.currentPath,"additionalItems"]})}:{type:"array",minItems:t.items.length,maxItems:t.items.length,items:t.items.map((i,n)=>Y(i._def,{...e,currentPath:[...e.currentPath,"items",`${n}`]})).reduce((i,n)=>n===void 0?i:[...i,n],[])}}function JS(t){return{not:Ve(t)}}function ZS(t){return Ve(t)}var KS=(t,e)=>Y(t.innerType._def,e);var QS=(t,e,i)=>{switch(e){case E.ZodString:return qu(t,i);case E.ZodNumber:return NS(t,i);case E.ZodObject:return US(t,i);case E.ZodBigInt:return SS(t,i);case E.ZodBoolean:return OS();case E.ZodDate:return sm(t,i);case E.ZodUndefined:return JS(i);case E.ZodNull:return zS(i);case E.ZodArray:return jS(t,i);case E.ZodUnion:case E.ZodDiscriminatedUnion:return GS(t,i);case E.ZodIntersection:return kS(t,i);case E.ZodTuple:return VS(t,i);case E.ZodRecord:return _u(t,i);case E.ZodLiteral:return qS(t,i);case E.ZodEnum:return ES(t);case E.ZodNativeEnum:return RS(t);case E.ZodNullable:return $S(t,i);case E.ZodOptional:return LS(t,i);case E.ZodMap:return HS(t,i);case E.ZodSet:return FS(t,i);case E.ZodLazy:return()=>t.getter()._def;case E.ZodPromise:return BS(t,i);case E.ZodNaN:case E.ZodNever:return IS(i);case E.ZodEffects:return MS(t,i);case E.ZodAny:return Ve(i);case E.ZodUnknown:return ZS(i);case E.ZodDefault:return TS(t,i);case E.ZodBranded:return ku(t,i);case E.ZodReadonly:return KS(t,i);case E.ZodCatch:return xS(t,i);case E.ZodPipeline:return WS(t,i);case E.ZodFunction:case E.ZodVoid:case E.ZodSymbol:return;default:return(n=>{})(e)}};function Y(t,e,i=!1){let n=e.seen.get(t);if(e.override){let o=e.override?.(t,e,n,i);if(o!==bS)return o}if(n&&!i){let o=O$(n,e);if(o!==void 0)return o}let a={def:t,path:e.currentPath,jsonSchema:void 0};e.seen.set(t,a);let r=QS(t,t.typeName,e),s=typeof r=="function"?Y(r(),e):r;if(s&&x$(t,e,s),e.postProcess){let o=e.postProcess(s,t,e);return a.jsonSchema=s,o}return a.jsonSchema=s,s}var O$=(t,e)=>{switch(e.$refStrategy){case"root":return{$ref:t.path.join("/")};case"relative":return{$ref:Eu(e.currentPath,t.path)};case"none":case"seen":return t.path.lengthe.currentPath[n]===i)?(console.warn(`Recursive reference detected at ${e.currentPath.join("/")}! Defaulting to any`),Ve(e)):e.$refStrategy==="seen"?Ve(e):void 0}},x$=(t,e,i)=>(t.description&&(i.description=t.description,e.markdownDescription&&(i.markdownDescription=t.description)),i);var um=(t,e)=>{let i=PS(e),n=typeof e=="object"&&e.definitions?Object.entries(e.definitions).reduce((l,[u,c])=>({...l,[u]:Y(c._def,{...i,currentPath:[...i.basePath,i.definitionPath,u]},!0)??Ve(i)}),{}):void 0,a=typeof e=="string"?e:e?.nameStrategy==="title"?void 0:e?.name,r=Y(t._def,a===void 0?i:{...i,currentPath:[...i.basePath,i.definitionPath,a]},!1)??Ve(i),s=typeof e=="object"&&e.name!==void 0&&e.nameStrategy==="title"?e.name:void 0;s!==void 0&&(r.title=s),i.flags.hasReferencedOpenAiAnyType&&(n||(n={}),n[i.openAiAnyTypeName]||(n[i.openAiAnyTypeName]={type:["string","number","integer","boolean","array","null"],items:{$ref:i.$refStrategy==="relative"?"1":[...i.basePath,i.definitionPath,i.openAiAnyTypeName].join("/")}}));let o=a===void 0?n?{...r,[i.definitionPath]:n}:r:{$ref:[...i.$refStrategy==="relative"?[]:i.basePath,i.definitionPath,a].join("/"),[i.definitionPath]:{...n,[a]:r}};return i.target==="jsonSchema7"?o.$schema="http://json-schema.org/draft-07/schema#":(i.target==="jsonSchema2019-09"||i.target==="openAi")&&(o.$schema="https://json-schema.org/draft/2019-09/schema#"),i.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 T$(t){return!t||t==="jsonSchema7"||t==="draft-7"?"draft-7":t==="jsonSchema2019-09"||t==="draft-2020-12"?"draft-2020-12":"draft-7"}function cm(t,e){return on(t)?_g(t,{target:T$(e?.target),io:e?.pipeStrategy??"input"}):um(t,{strictUnions:e?.strictUnions??!0,pipeStrategy:e?.pipeStrategy??"input"})}function pm(t){let i=jt(t)?.method;if(!i)throw new Error("Schema is missing a method literal");let n=ru(i);if(typeof n!="string")throw new Error("Schema method literal must be a string");return n}function dm(t,e){let i=Pt(t,e);if(!i.success)throw i.error;return i.data}var M$=6e4,Hu=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(hu,i=>{this._oncancel(i)}),this.setNotificationHandler(mu,i=>{this._onprogress(i)}),this.setRequestHandler(gu,i=>({})),this._taskStore=e?.taskStore,this._taskMessageQueue=e?.taskMessageQueue,this._taskStore&&(this.setRequestHandler(fu,async(i,n)=>{let a=await this._taskStore.getTask(i.params.taskId,n.sessionId);if(!a)throw new L(V.InvalidParams,"Failed to retrieve task: Task not found");return{...a}}),this.setRequestHandler(vu,async(i,n)=>{let a=async()=>{let r=i.params.taskId;if(this._taskMessageQueue){let o;for(;o=await this._taskMessageQueue.dequeue(r,n.sessionId);){if(o.type==="response"||o.type==="error"){let l=o.message,u=l.id,c=this._requestResolvers.get(u);if(c)if(this._requestResolvers.delete(u),o.type==="response")c(l);else{let p=l,d=new L(p.error.code,p.error.message,p.error.data);c(d)}else{let p=o.type==="response"?"Response":"Error";this._onerror(new Error(`${p} handler missing for request ${u}`))}continue}await this._transport?.send(o.message,{relatedRequestId:n.requestId})}}let s=await this._taskStore.getTask(r,n.sessionId);if(!s)throw new L(V.InvalidParams,`Task not found: ${r}`);if(!Ot(s.status))return await this._waitForTaskUpdate(r,n.signal),await a();if(Ot(s.status)){let o=await this._taskStore.getTaskResult(r,n.sessionId);return this._clearTaskQueue(r),{...o,_meta:{...o._meta,[St]:{taskId:r}}}}return await a()};return await a()}),this.setRequestHandler(Cu,async(i,n)=>{try{let{tasks:a,nextCursor:r}=await this._taskStore.listTasks(i.params?.cursor,n.sessionId);return{tasks:a,nextCursor:r,_meta:{}}}catch(a){throw new L(V.InvalidParams,`Failed to list tasks: ${a instanceof Error?a.message:String(a)}`)}}),this.setRequestHandler(bu,async(i,n)=>{try{let a=await this._taskStore.getTask(i.params.taskId,n.sessionId);if(!a)throw new L(V.InvalidParams,`Task not found: ${i.params.taskId}`);if(Ot(a.status))throw new L(V.InvalidParams,`Cannot cancel task in terminal status: ${a.status}`);await this._taskStore.updateTaskStatus(i.params.taskId,"cancelled","Client cancelled task execution.",n.sessionId),this._clearTaskQueue(i.params.taskId);let r=await this._taskStore.getTask(i.params.taskId,n.sessionId);if(!r)throw new L(V.InvalidParams,`Task not found after cancellation: ${i.params.taskId}`);return{_meta:{},...r}}catch(a){throw a instanceof L?a:new L(V.InvalidRequest,`Failed to cancel task: ${a instanceof Error?a.message:String(a)}`)}}))}async _oncancel(e){if(!e.params.requestId)return;this._requestHandlerAbortControllers.get(e.params.requestId)?.abort(e.params.reason)}_setupTimeout(e,i,n,a,r=!1){this._timeoutInfo.set(e,{timeoutId:setTimeout(a,i),startTime:Date.now(),timeout:i,maxTotalTimeout:n,resetTimeoutOnProgress:r,onTimeout:a})}_resetTimeout(e){let i=this._timeoutInfo.get(e);if(!i)return!1;let n=Date.now()-i.startTime;if(i.maxTotalTimeout&&n>=i.maxTotalTimeout)throw this._timeoutInfo.delete(e),L.fromError(V.RequestTimeout,"Maximum total timeout exceeded",{maxTotalTimeout:i.maxTotalTimeout,totalElapsed:n});return clearTimeout(i.timeoutId),i.timeoutId=setTimeout(i.onTimeout,i.timeout),!0}_cleanupTimeout(e){let i=this._timeoutInfo.get(e);i&&(clearTimeout(i.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 i=this.transport?.onclose;this._transport.onclose=()=>{i?.(),this._onclose()};let n=this.transport?.onerror;this._transport.onerror=r=>{n?.(r),this._onerror(r)};let a=this._transport?.onmessage;this._transport.onmessage=(r,s)=>{a?.(r,s),$s(r)||uS(r)?this._onresponse(r):Bg(r)?this._onrequest(r,s):lS(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 n of this._timeoutInfo.values())clearTimeout(n.timeoutId);this._timeoutInfo.clear();for(let n of this._requestHandlerAbortControllers.values())n.abort();this._requestHandlerAbortControllers.clear();let i=L.fromError(V.ConnectionClosed,"Connection closed");this._transport=void 0,this.onclose?.();for(let n of e.values())n(i)}_onerror(e){this.onerror?.(e)}_onnotification(e){let i=this._notificationHandlers.get(e.method)??this.fallbackNotificationHandler;i!==void 0&&Promise.resolve().then(()=>i(e)).catch(n=>this._onerror(new Error(`Uncaught error in notification handler: ${n}`)))}_onrequest(e,i){let n=this._requestHandlers.get(e.method)??this.fallbackRequestHandler,a=this._transport,r=e.params?._meta?.[St]?.taskId;if(n===void 0){let c={jsonrpc:"2.0",id:e.id,error:{code:V.MethodNotFound,message:"Method not found"}};r&&this._taskMessageQueue?this._enqueueTaskMessage(r,{type:"error",message:c,timestamp:Date.now()},a?.sessionId).catch(p=>this._onerror(new Error(`Failed to enqueue error response: ${p}`))):a?.send(c).catch(p=>this._onerror(new Error(`Failed to send an error response: ${p}`)));return}let s=new AbortController;this._requestHandlerAbortControllers.set(e.id,s);let o=rS(e.params)?e.params.task:void 0,l=this._taskStore?this.requestTaskStore(e,a?.sessionId):void 0,u={signal:s.signal,sessionId:a?.sessionId,_meta:e.params?._meta,sendNotification:async c=>{if(s.signal.aborted)return;let p={relatedRequestId:e.id};r&&(p.relatedTask={taskId:r}),await this.notification(c,p)},sendRequest:async(c,p,d)=>{if(s.signal.aborted)throw new L(V.ConnectionClosed,"Request was cancelled");let h={...d,relatedRequestId:e.id};r&&!h.relatedTask&&(h.relatedTask={taskId:r});let g=h.relatedTask?.taskId??r;return g&&l&&await l.updateTaskStatus(g,"input_required"),await this.request(c,p,h)},authInfo:i?.authInfo,requestId:e.id,requestInfo:i?.requestInfo,taskId:r,taskStore:l,taskRequestedTtl:o?.ttl,closeSSEStream:i?.closeSSEStream,closeStandaloneSSEStream:i?.closeStandaloneSSEStream};Promise.resolve().then(()=>{o&&this.assertTaskHandlerCapability(e.method)}).then(()=>n(e,u)).then(async c=>{if(s.signal.aborted)return;let p={result:c,jsonrpc:"2.0",id:e.id};r&&this._taskMessageQueue?await this._enqueueTaskMessage(r,{type:"response",message:p,timestamp:Date.now()},a?.sessionId):await a?.send(p)},async c=>{if(s.signal.aborted)return;let p={jsonrpc:"2.0",id:e.id,error:{code:Number.isSafeInteger(c.code)?c.code:V.InternalError,message:c.message??"Internal error",...c.data!==void 0&&{data:c.data}}};r&&this._taskMessageQueue?await this._enqueueTaskMessage(r,{type:"error",message:p,timestamp:Date.now()},a?.sessionId):await a?.send(p)}).catch(c=>this._onerror(new Error(`Failed to send response: ${c}`))).finally(()=>{this._requestHandlerAbortControllers.get(e.id)===s&&this._requestHandlerAbortControllers.delete(e.id)})}_onprogress(e){let{progressToken:i,...n}=e.params,a=Number(i),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(n)}_onresponse(e){let i=Number(e.id),n=this._requestResolvers.get(i);if(n){if(this._requestResolvers.delete(i),$s(e))n(e);else{let s=new L(e.error.code,e.error.message,e.error.data);n(s)}return}let a=this._responseHandlers.get(i);if(a===void 0){this._onerror(new Error(`Received a response for an unknown message ID: ${JSON.stringify(e)}`));return}this._responseHandlers.delete(i),this._cleanupTimeout(i);let r=!1;if($s(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,i))}}if(r||this._progressHandlers.delete(i),$s(e))a(e);else{let s=L.fromError(e.error.code,e.error.message,e.error.data);a(s)}}get transport(){return this._transport}async close(){await this._transport?.close()}async*requestStream(e,i,n){let{task:a}=n??{};if(!a){try{yield{type:"result",result:await this.request(e,i,n)}}catch(s){yield{type:"error",error:s instanceof L?s:new L(V.InternalError,String(s))}}return}let r;try{let s=await this.request(e,fr,n);if(s.task)r=s.task.taskId,yield{type:"taskCreated",task:s.task};else throw new L(V.InternalError,"Task creation did not return a task");for(;;){let o=await this.getTask({taskId:r},n);if(yield{type:"taskStatus",task:o},Ot(o.status)){o.status==="completed"?yield{type:"result",result:await this.getTaskResult({taskId:r},i,n)}:o.status==="failed"?yield{type:"error",error:new L(V.InternalError,`Task ${r} failed`)}:o.status==="cancelled"&&(yield{type:"error",error:new L(V.InternalError,`Task ${r} was cancelled`)});return}if(o.status==="input_required"){yield{type:"result",result:await this.getTaskResult({taskId:r},i,n)};return}let l=o.pollInterval??this._options?.defaultTaskPollInterval??1e3;await new Promise(u=>setTimeout(u,l)),n?.signal?.throwIfAborted()}}catch(s){yield{type:"error",error:s instanceof L?s:new L(V.InternalError,String(s))}}}request(e,i,n){let{relatedRequestId:a,resumptionToken:r,onresumptiontoken:s,task:o,relatedTask:l}=n??{};return new Promise((u,c)=>{let p=y=>{c(y)};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(y){p(y);return}n?.signal?.throwIfAborted();let d=this._requestMessageId++,h={...e,jsonrpc:"2.0",id:d};n?.onprogress&&(this._progressHandlers.set(d,n.onprogress),h.params={...e.params,_meta:{...e.params?._meta||{},progressToken:d}}),o&&(h.params={...h.params,task:o}),l&&(h.params={...h.params,_meta:{...h.params?._meta||{},[St]:l}});let g=y=>{this._responseHandlers.delete(d),this._progressHandlers.delete(d),this._cleanupTimeout(d),this._transport?.send({jsonrpc:"2.0",method:"notifications/cancelled",params:{requestId:d,reason:String(y)}},{relatedRequestId:a,resumptionToken:r,onresumptiontoken:s}).catch(b=>this._onerror(new Error(`Failed to send cancellation: ${b}`)));let A=y instanceof L?y:new L(V.RequestTimeout,String(y));c(A)};this._responseHandlers.set(d,y=>{if(!n?.signal?.aborted){if(y instanceof Error)return c(y);try{let A=Pt(i,y.result);A.success?u(A.data):c(A.error)}catch(A){c(A)}}}),n?.signal?.addEventListener("abort",()=>{g(n?.signal?.reason)});let m=n?.timeout??M$,f=()=>g(L.fromError(V.RequestTimeout,"Request timed out",{timeout:m}));this._setupTimeout(d,m,n?.maxTotalTimeout,f,n?.resetTimeoutOnProgress??!1);let v=l?.taskId;if(v){let y=A=>{let b=this._responseHandlers.get(d);b?b(A):this._onerror(new Error(`Response handler missing for side-channeled request ${d}`))};this._requestResolvers.set(d,y),this._enqueueTaskMessage(v,{type:"request",message:h,timestamp:Date.now()}).catch(A=>{this._cleanupTimeout(d),c(A)})}else this._transport.send(h,{relatedRequestId:a,resumptionToken:r,onresumptiontoken:s}).catch(y=>{this._cleanupTimeout(d),c(y)})})}async getTask(e,i){return this.request({method:"tasks/get",params:e},wu,i)}async getTaskResult(e,i,n){return this.request({method:"tasks/result",params:e},i,n)}async listTasks(e,i){return this.request({method:"tasks/list",params:e},Au,i)}async cancelTask(e,i){return this.request({method:"tasks/cancel",params:e},dS,i)}async notification(e,i){if(!this._transport)throw new Error("Not connected");this.assertNotificationCapability(e.method);let n=i?.relatedTask?.taskId;if(n){let o={...e,jsonrpc:"2.0",params:{...e.params,_meta:{...e.params?._meta||{},[St]:i.relatedTask}}};await this._enqueueTaskMessage(n,{type:"notification",message:o,timestamp:Date.now()});return}if((this._options?.debouncedNotificationMethods??[]).includes(e.method)&&!e.params&&!i?.relatedRequestId&&!i?.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"};i?.relatedTask&&(o={...o,params:{...o.params,_meta:{...o.params?._meta||{},[St]:i.relatedTask}}}),this._transport?.send(o,i).catch(l=>this._onerror(l))});return}let s={...e,jsonrpc:"2.0"};i?.relatedTask&&(s={...s,params:{...s.params,_meta:{...s.params?._meta||{},[St]:i.relatedTask}}}),await this._transport.send(s,i)}setRequestHandler(e,i){let n=pm(e);this.assertRequestHandlerCapability(n),this._requestHandlers.set(n,(a,r)=>{let s=dm(e,a);return Promise.resolve(i(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,i){let n=pm(e);this._notificationHandlers.set(n,a=>{let r=dm(e,a);return Promise.resolve(i(r))})}removeNotificationHandler(e){this._notificationHandlers.delete(e)}_cleanupTaskProgressHandler(e){let i=this._taskProgressTokens.get(e);i!==void 0&&(this._progressHandlers.delete(i),this._taskProgressTokens.delete(e))}async _enqueueTaskMessage(e,i,n){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,i,n,a)}async _clearTaskQueue(e,i){if(this._taskMessageQueue){let n=await this._taskMessageQueue.dequeueAll(e,i);for(let a of n)if(a.type==="request"&&Bg(a.message)){let r=a.message.id,s=this._requestResolvers.get(r);s?(s(new L(V.InternalError,"Task cancelled or completed")),this._requestResolvers.delete(r)):this._onerror(new Error(`Resolver missing for request ${r} during task ${e} cleanup`))}}}async _waitForTaskUpdate(e,i){let n=this._options?.defaultTaskPollInterval??1e3;try{let a=await this._taskStore?.getTask(e);a?.pollInterval&&(n=a.pollInterval)}catch{}return new Promise((a,r)=>{if(i.aborted){r(new L(V.InvalidRequest,"Request cancelled"));return}let s=setTimeout(a,n);i.addEventListener("abort",()=>{clearTimeout(s),r(new L(V.InvalidRequest,"Request cancelled"))},{once:!0})})}requestTaskStore(e,i){let n=this._taskStore;if(!n)throw new Error("No task store configured");return{createTask:async a=>{if(!e)throw new Error("No request provided");return await n.createTask(a,e.id,{method:e.method,params:e.params},i)},getTask:async a=>{let r=await n.getTask(a,i);if(!r)throw new L(V.InvalidParams,"Failed to retrieve task: Task not found");return r},storeTaskResult:async(a,r,s)=>{await n.storeTaskResult(a,r,s,i);let o=await n.getTask(a,i);if(o){let l=Bs.parse({method:"notifications/tasks/status",params:o});await this.notification(l),Ot(o.status)&&this._cleanupTaskProgressHandler(a)}},getTaskResult:a=>n.getTaskResult(a,i),updateTaskStatus:async(a,r,s)=>{let o=await n.getTask(a,i);if(!o)throw new L(V.InvalidParams,`Task "${a}" not found - it may have been cleaned up`);if(Ot(o.status))throw new L(V.InvalidParams,`Cannot update task "${a}" from terminal status "${o.status}" to "${r}". Terminal states (completed, failed, cancelled) cannot transition to other states.`);await n.updateTaskStatus(a,r,s,i);let l=await n.getTask(a,i);if(l){let u=Bs.parse({method:"notifications/tasks/status",params:l});await this.notification(u),Ot(l.status)&&this._cleanupTaskProgressHandler(a)}},listTasks:a=>n.listTasks(a,i)}}};function YS(t){return t!==null&&typeof t=="object"&&!Array.isArray(t)}function XS(t,e){let i={...t};for(let n in e){let a=n,r=e[a];if(r===void 0)continue;let s=i[a];YS(s)&&YS(r)?i[a]={...s,...r}:i[a]=r}return i}var WT=Xa(Xf(),1),BT=Xa(LT(),1);function qF(){let t=new WT.default({strict:!1,validateFormats:!0,validateSchema:!1,allErrors:!0});return(0,BT.default)(t),t}var mc=class{constructor(e){this._ajv=e??qF()}getValidator(e){let i="$id"in e&&typeof e.$id=="string"?this._ajv.getSchema(e.$id)??this._ajv.compile(e):this._ajv.compile(e);return n=>i(n)?{valid:!0,data:n,errorMessage:void 0}:{valid:!1,data:void 0,errorMessage:this._ajv.errorsText(i.errors)}}};var fc=class{constructor(e){this._server=e}requestStream(e,i,n){return this._server.requestStream(e,i,n)}createMessageStream(e,i){let n=this._server.getClientCapabilities();if((e.tools||e.toolChoice)&&!n?.sampling?.tools)throw new Error("Client does not support sampling tools capability.");if(e.messages.length>0){let a=e.messages[e.messages.length-1],r=Array.isArray(a.content)?a.content:[a.content],s=r.some(c=>c.type==="tool_result"),o=e.messages.length>1?e.messages[e.messages.length-2]:void 0,l=o?Array.isArray(o.content)?o.content:[o.content]:[],u=l.some(c=>c.type==="tool_use");if(s){if(r.some(c=>c.type!=="tool_result"))throw new Error("The last message must contain only tool_result content if any is present");if(!u)throw new Error("tool_result blocks are not matching any tool_use from the previous message")}if(u){let c=new Set(l.filter(d=>d.type==="tool_use").map(d=>d.id)),p=new Set(r.filter(d=>d.type==="tool_result").map(d=>d.toolUseId));if(c.size!==p.size||![...c].every(d=>p.has(d)))throw new Error("ids of tool_result blocks and tool_use blocks from previous message do not match")}}return this.requestStream({method:"sampling/createMessage",params:e},Js,i)}elicitInputStream(e,i){let n=this._server.getClientCapabilities(),a=e.mode??"form";switch(a){case"url":{if(!n?.elicitation?.url)throw new Error("Client does not support url elicitation.");break}case"form":{if(!n?.elicitation?.form)throw new Error("Client does not support form elicitation.");break}}let r=a==="form"&&e.mode===void 0?{...e,mode:"form"}:e;return this.requestStream({method:"elicitation/create",params:r},Cr,i)}async getTask(e,i){return this._server.getTask({taskId:e},i)}async getTaskResult(e,i,n){return this._server.getTaskResult({taskId:e},i,n)}async listTasks(e,i){return this._server.listTasks(e?{cursor:e}:void 0,i)}async cancelTask(e,i){return this._server.cancelTask({taskId:e},i)}};function FT(t,e,i){if(!t)throw new Error(`${i} does not support task creation (required for ${e})`);switch(e){case"tools/call":if(!t.tools?.call)throw new Error(`${i} does not support task creation for tools/call (required for ${e})`);break;default:break}}function VT(t,e,i){if(!t)throw new Error(`${i} does not support task creation (required for ${e})`);switch(e){case"sampling/createMessage":if(!t.sampling?.createMessage)throw new Error(`${i} does not support task creation for sampling/createMessage (required for ${e})`);break;case"elicitation/create":if(!t.elicitation?.create)throw new Error(`${i} does not support task creation for elicitation/create (required for ${e})`);break;default:break}}var wc=class extends Hu{constructor(e,i){super(i),this._serverInfo=e,this._loggingLevels=new Map,this.LOG_LEVEL_SEVERITY=new Map(Vs.options.map((n,a)=>[n,a])),this.isMessageIgnored=(n,a)=>{let r=this._loggingLevels.get(a);return r?this.LOG_LEVEL_SEVERITY.get(n)this._oninitialize(n)),this.setNotificationHandler(Zg,()=>this.oninitialized?.()),this._capabilities.logging&&this.setRequestHandler(nm,async(n,a)=>{let r=a.sessionId||a.requestInfo?.headers["mcp-session-id"]||void 0,{level:s}=n.params,o=Vs.safeParse(s);return o.success&&this._loggingLevels.set(r,o.data),{}})}get experimental(){return this._experimental||(this._experimental={tasks:new fc(this)}),this._experimental}registerCapabilities(e){if(this.transport)throw new Error("Cannot register capabilities after connecting to transport");this._capabilities=XS(this._capabilities,e)}setRequestHandler(e,i){let a=jt(e)?.method;if(!a)throw new Error("Schema is missing a method literal");let r;if(on(a)){let o=a;r=o._zod?.def?.value??o.value}else{let o=a;r=o._def?.value??o.value}if(typeof r!="string")throw new Error("Schema method literal must be a string");if(r==="tools/call"){let o=async(l,u)=>{let c=Pt(vr,l);if(!c.success){let g=c.error instanceof Error?c.error.message:String(c.error);throw new L(V.InvalidParams,`Invalid tools/call request: ${g}`)}let{params:p}=c.data,d=await Promise.resolve(i(l,u));if(p.task){let g=Pt(fr,d);if(!g.success){let m=g.error instanceof Error?g.error.message:String(g.error);throw new L(V.InvalidParams,`Invalid task creation result: ${m}`)}return g.data}let h=Pt(Tu,d);if(!h.success){let g=h.error instanceof Error?h.error.message:String(h.error);throw new L(V.InvalidParams,`Invalid tools/call result: ${g}`)}return h.data};return super.setRequestHandler(e,o)}return super.setRequestHandler(e,i)}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){VT(this._clientCapabilities?.tasks?.requests,e,"Client")}assertTaskHandlerCapability(e){this._capabilities&&FT(this._capabilities.tasks?.requests,e,"Server")}async _oninitialize(e){let i=e.params.protocolVersion;return this._clientCapabilities=e.params.capabilities,this._clientVersion=e.params.clientInfo,{protocolVersion:nS.includes(i)?i:Lg,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"},du)}async createMessage(e,i){if((e.tools||e.toolChoice)&&!this._clientCapabilities?.sampling?.tools)throw new Error("Client does not support sampling tools capability.");if(e.messages.length>0){let n=e.messages[e.messages.length-1],a=Array.isArray(n.content)?n.content:[n.content],r=a.some(u=>u.type==="tool_result"),s=e.messages.length>1?e.messages[e.messages.length-2]:void 0,o=s?Array.isArray(s.content)?s.content:[s.content]:[],l=o.some(u=>u.type==="tool_use");if(r){if(a.some(u=>u.type!=="tool_result"))throw new Error("The last message must contain only tool_result content if any is present");if(!l)throw new Error("tool_result blocks are not matching any tool_use from the previous message")}if(l){let u=new Set(o.filter(p=>p.type==="tool_use").map(p=>p.id)),c=new Set(a.filter(p=>p.type==="tool_result").map(p=>p.toolUseId));if(u.size!==c.size||![...u].every(p=>c.has(p)))throw new Error("ids of tool_result blocks and tool_use blocks from previous message do not match")}}return e.tools?this.request({method:"sampling/createMessage",params:e},tm,i):this.request({method:"sampling/createMessage",params:e},Js,i)}async elicitInput(e,i){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},Cr,i)}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},Cr,i);if(r.action==="accept"&&r.content&&a.requestedSchema)try{let o=this._jsonSchemaValidator.getValidator(a.requestedSchema)(r.content);if(!o.valid)throw new L(V.InvalidParams,`Elicitation response content does not match requested schema: ${o.errorMessage}`)}catch(s){throw s instanceof L?s:new L(V.InternalError,`Error validating elicitation response: ${s instanceof Error?s.message:String(s)}`)}return r}}}createElicitationCompletionNotifier(e,i){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}},i)}async listRoots(e,i){return this.request({method:"roots/list",params:e},am,i)}async sendLoggingMessage(e,i){if(this._capabilities.logging&&!this.isMessageIgnored(e.level,i))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 ZT=Symbol.for("mcp.completable");function ow(t){return!!t&&typeof t=="object"&&ZT in t}function KT(t){return t[ZT]?.complete}var JT;(function(t){t.Completable="McpCompletable"})(JT||(JT={}));var _F=/^[A-Za-z0-9._-]{1,128}$/;function HF(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"),!_F.test(t)){let i=t.split("").filter(n=>!/[A-Za-z0-9._-]/.test(n)).filter((n,a,r)=>r.indexOf(n)===a);return e.push(`Tool name contains invalid characters: ${i.map(n=>`"${n}"`).join(", ")}`,"Allowed characters are: A-Z, a-z, 0-9, underscore (_), dash (-), and dot (.)"),{isValid:!1,warnings:e}}return{isValid:!0,warnings:e}}function RF(t,e){if(e.length>0){console.warn(`Tool name validation warning for "${t}":`);for(let i of e)console.warn(` - ${i}`);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 lw(t){let e=HF(t);return RF(t,e.warnings),e.isValid}var vc=class{constructor(e){this._mcpServer=e}registerToolTask(e,i,n){let a={taskSupport:"required",...i.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,i.title,i.description,i.inputSchema,i.outputSchema,i.annotations,a,i._meta,n)}};var Cc=class{constructor(e,i){this._registeredResources={},this._registeredResourceTemplates={},this._registeredTools={},this._registeredPrompts={},this._toolHandlersInitialized=!1,this._completionHandlerInitialized=!1,this._resourceHandlersInitialized=!1,this._promptHandlersInitialized=!1,this.server=new wc(e,i)}get experimental(){return this._experimental||(this._experimental={tasks:new vc(this)}),this._experimental}async connect(e){return await this.server.connect(e)}async close(){await this.server.close()}setToolRequestHandlers(){this._toolHandlersInitialized||(this.server.assertCanSetRequestHandler(Rt(xu)),this.server.assertCanSetRequestHandler(Rt(vr)),this.server.registerCapabilities({tools:{listChanged:!0}}),this.server.setRequestHandler(xu,()=>({tools:Object.entries(this._registeredTools).filter(([,e])=>e.enabled).map(([e,i])=>{let n={name:e,title:i.title,description:i.description,inputSchema:(()=>{let a=gr(i.inputSchema);return a?cm(a,{strictUnions:!0,pipeStrategy:"input"}):IF})(),annotations:i.annotations,execution:i.execution,_meta:i._meta};if(i.outputSchema){let a=gr(i.outputSchema);a&&(n.outputSchema=cm(a,{strictUnions:!0,pipeStrategy:"output"}))}return n})})),this.server.setRequestHandler(vr,async(e,i)=>{try{let n=this._registeredTools[e.params.name];if(!n)throw new L(V.InvalidParams,`Tool ${e.params.name} not found`);if(!n.enabled)throw new L(V.InvalidParams,`Tool ${e.params.name} disabled`);let a=!!e.params.task,r=n.execution?.taskSupport,s="createTask"in n.handler;if((r==="required"||r==="optional")&&!s)throw new L(V.InternalError,`Tool ${e.params.name} has taskSupport '${r}' but was not registered with registerToolTask`);if(r==="required"&&!a)throw new L(V.MethodNotFound,`Tool ${e.params.name} requires task augmentation (taskSupport: 'required')`);if(r==="optional"&&!a&&s)return await this.handleAutomaticTaskPolling(n,e,i);let o=await this.validateToolInput(n,e.params.arguments,e.params.name),l=await this.executeToolHandler(n,o,i);return a||await this.validateToolOutput(n,l,e.params.name),l}catch(n){if(n instanceof L&&n.code===V.UrlElicitationRequired)throw n;return this.createToolError(n instanceof Error?n.message:String(n))}}),this._toolHandlersInitialized=!0)}createToolError(e){return{content:[{type:"text",text:e}],isError:!0}}async validateToolInput(e,i,n){if(!e.inputSchema)return;let r=gr(e.inputSchema)??e.inputSchema,s=await tu(r,i);if(!s.success){let o="error"in s?s.error:"Unknown error",l=au(o);throw new L(V.InvalidParams,`Input validation error: Invalid arguments for tool ${n}: ${l}`)}return s.data}async validateToolOutput(e,i,n){if(!e.outputSchema||!("content"in i)||i.isError)return;if(!i.structuredContent)throw new L(V.InvalidParams,`Output validation error: Tool ${n} has an output schema but no structured content was provided`);let a=gr(e.outputSchema),r=await tu(a,i.structuredContent);if(!r.success){let s="error"in r?r.error:"Unknown error",o=au(s);throw new L(V.InvalidParams,`Output validation error: Invalid structured content for tool ${n}: ${o}`)}}async executeToolHandler(e,i,n){let a=e.handler;if("createTask"in a){if(!n.taskStore)throw new Error("No task store provided.");let s={...n,taskStore:n.taskStore};if(e.inputSchema){let o=a;return await Promise.resolve(o.createTask(i,s))}else{let o=a;return await Promise.resolve(o.createTask(s))}}if(e.inputSchema){let s=a;return await Promise.resolve(s(i,n))}else{let s=a;return await Promise.resolve(s(n))}}async handleAutomaticTaskPolling(e,i,n){if(!n.taskStore)throw new Error("No task store provided for task-capable tool.");let a=await this.validateToolInput(e,i.params.arguments,i.params.name),r=e.handler,s={...n,taskStore:n.taskStore},o=a?await Promise.resolve(r.createTask(a,s)):await Promise.resolve(r.createTask(s)),l=o.task.taskId,u=o.task,c=u.pollInterval??5e3;for(;u.status!=="completed"&&u.status!=="failed"&&u.status!=="cancelled";){await new Promise(d=>setTimeout(d,c));let p=await n.taskStore.getTask(l);if(!p)throw new L(V.InternalError,`Task ${l} not found during polling`);u=p}return await n.taskStore.getTaskResult(l)}setCompletionRequestHandler(){this._completionHandlerInitialized||(this.server.assertCanSetRequestHandler(Rt(Mu)),this.server.registerCapabilities({completions:{}}),this.server.setRequestHandler(Mu,async e=>{switch(e.params.ref.type){case"ref/prompt":return vS(e),this.handlePromptCompletion(e,e.params.ref);case"ref/resource":return CS(e),this.handleResourceCompletion(e,e.params.ref);default:throw new L(V.InvalidParams,`Invalid completion reference: ${e.params.ref}`)}}),this._completionHandlerInitialized=!0)}async handlePromptCompletion(e,i){let n=this._registeredPrompts[i.name];if(!n)throw new L(V.InvalidParams,`Prompt ${i.name} not found`);if(!n.enabled)throw new L(V.InvalidParams,`Prompt ${i.name} disabled`);if(!n.argsSchema)return Oo;let r=jt(n.argsSchema)?.[e.params.argument.name];if(!ow(r))return Oo;let s=KT(r);if(!s)return Oo;let o=await s(e.params.argument.value,e.params.context);return YT(o)}async handleResourceCompletion(e,i){let n=Object.values(this._registeredResourceTemplates).find(s=>s.resourceTemplate.uriTemplate.toString()===i.uri);if(!n){if(this._registeredResources[i.uri])return Oo;throw new L(V.InvalidParams,`Resource template ${e.params.ref.uri} not found`)}let a=n.resourceTemplate.completeCallback(e.params.argument.name);if(!a)return Oo;let r=await a(e.params.argument.value,e.params.context);return YT(r)}setResourceRequestHandlers(){this._resourceHandlersInitialized||(this.server.assertCanSetRequestHandler(Rt(yu)),this.server.assertCanSetRequestHandler(Rt(Pu)),this.server.assertCanSetRequestHandler(Rt(ju)),this.server.registerCapabilities({resources:{listChanged:!0}}),this.server.setRequestHandler(yu,async(e,i)=>{let n=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(i);for(let o of s.resources)a.push({...r.metadata,...o})}return{resources:[...n,...a]}}),this.server.setRequestHandler(Pu,async()=>({resourceTemplates:Object.entries(this._registeredResourceTemplates).map(([i,n])=>({name:i,uriTemplate:n.resourceTemplate.uriTemplate.toString(),...n.metadata}))})),this.server.setRequestHandler(ju,async(e,i)=>{let n=new URL(e.params.uri),a=this._registeredResources[n.toString()];if(a){if(!a.enabled)throw new L(V.InvalidParams,`Resource ${n} disabled`);return a.readCallback(n,i)}for(let r of Object.values(this._registeredResourceTemplates)){let s=r.resourceTemplate.uriTemplate.match(n.toString());if(s)return r.readCallback(n,s,i)}throw new L(V.InvalidParams,`Resource ${n} not found`)}),this._resourceHandlersInitialized=!0)}setPromptRequestHandlers(){this._promptHandlersInitialized||(this.server.assertCanSetRequestHandler(Rt(Su)),this.server.assertCanSetRequestHandler(Rt(Ou)),this.server.registerCapabilities({prompts:{listChanged:!0}}),this.server.setRequestHandler(Su,()=>({prompts:Object.entries(this._registeredPrompts).filter(([,e])=>e.enabled).map(([e,i])=>({name:e,title:i.title,description:i.description,arguments:i.argsSchema?zF(i.argsSchema):void 0}))})),this.server.setRequestHandler(Ou,async(e,i)=>{let n=this._registeredPrompts[e.params.name];if(!n)throw new L(V.InvalidParams,`Prompt ${e.params.name} not found`);if(!n.enabled)throw new L(V.InvalidParams,`Prompt ${e.params.name} disabled`);if(n.argsSchema){let a=gr(n.argsSchema),r=await tu(a,e.params.arguments);if(!r.success){let l="error"in r?r.error:"Unknown error",u=au(l);throw new L(V.InvalidParams,`Invalid arguments for prompt ${e.params.name}: ${u}`)}let s=r.data,o=n.callback;return await Promise.resolve(o(s,i))}else{let a=n.callback;return await Promise.resolve(a(i))}}),this._promptHandlersInitialized=!0)}resource(e,i,...n){let a;typeof n[0]=="object"&&(a=n.shift());let r=n[0];if(typeof i=="string"){if(this._registeredResources[i])throw new Error(`Resource ${i} is already registered`);let s=this._createRegisteredResource(e,void 0,i,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,i,a,r);return this.setResourceRequestHandlers(),this.sendResourceListChanged(),s}}registerResource(e,i,n,a){if(typeof i=="string"){if(this._registeredResources[i])throw new Error(`Resource ${i} is already registered`);let r=this._createRegisteredResource(e,n.title,i,n,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,n.title,i,n,a);return this.setResourceRequestHandlers(),this.sendResourceListChanged(),r}}_createRegisteredResource(e,i,n,a,r){let s={name:e,title:i,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!==n&&(delete this._registeredResources[n],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[n]=s,s}_createRegisteredResourceTemplate(e,i,n,a,r){let s={resourceTemplate:n,title:i,metadata:a,readCallback:r,enabled:!0,disable:()=>s.update({enabled:!1}),enable:()=>s.update({enabled:!0}),remove:()=>s.update({name:null}),update:u=>{typeof u.name<"u"&&u.name!==e&&(delete this._registeredResourceTemplates[e],u.name&&(this._registeredResourceTemplates[u.name]=s)),typeof u.title<"u"&&(s.title=u.title),typeof u.template<"u"&&(s.resourceTemplate=u.template),typeof u.metadata<"u"&&(s.metadata=u.metadata),typeof u.callback<"u"&&(s.readCallback=u.callback),typeof u.enabled<"u"&&(s.enabled=u.enabled),this.sendResourceListChanged()}};this._registeredResourceTemplates[e]=s;let o=n.uriTemplate.variableNames;return Array.isArray(o)&&o.some(u=>!!n.completeCallback(u))&&this.setCompletionRequestHandler(),s}_createRegisteredPrompt(e,i,n,a,r){let s={title:i,description:n,argsSchema:a===void 0?void 0:wa(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=wa(o.argsSchema)),typeof o.callback<"u"&&(s.callback=o.callback),typeof o.enabled<"u"&&(s.enabled=o.enabled),this.sendPromptListChanged()}};return this._registeredPrompts[e]=s,a&&Object.values(a).some(l=>{let u=l instanceof lu?l._def?.innerType:l;return ow(u)})&&this.setCompletionRequestHandler(),s}_createRegisteredTool(e,i,n,a,r,s,o,l,u){lw(e);let c={title:i,description:n,inputSchema:QT(a),outputSchema:QT(r),annotations:s,execution:o,_meta:l,handler:u,enabled:!0,disable:()=>c.update({enabled:!1}),enable:()=>c.update({enabled:!0}),remove:()=>c.update({name:null}),update:p=>{typeof p.name<"u"&&p.name!==e&&(typeof p.name=="string"&&lw(p.name),delete this._registeredTools[e],p.name&&(this._registeredTools[p.name]=c)),typeof p.title<"u"&&(c.title=p.title),typeof p.description<"u"&&(c.description=p.description),typeof p.paramsSchema<"u"&&(c.inputSchema=wa(p.paramsSchema)),typeof p.outputSchema<"u"&&(c.outputSchema=wa(p.outputSchema)),typeof p.callback<"u"&&(c.handler=p.callback),typeof p.annotations<"u"&&(c.annotations=p.annotations),typeof p._meta<"u"&&(c._meta=p._meta),typeof p.enabled<"u"&&(c.enabled=p.enabled),this.sendToolListChanged()}};return this._registeredTools[e]=c,this.setToolRequestHandlers(),this.sendToolListChanged(),c}tool(e,...i){if(this._registeredTools[e])throw new Error(`Tool ${e} is already registered`);let n,a,r,s;if(typeof i[0]=="string"&&(n=i.shift()),i.length>1){let l=i[0];if(uw(l))a=i.shift(),i.length>1&&typeof i[0]=="object"&&i[0]!==null&&!uw(i[0])&&(s=i.shift());else if(typeof l=="object"&&l!==null){if(Object.values(l).some(u=>typeof u=="object"&&u!==null))throw new Error(`Tool ${e} expected a Zod schema or ToolAnnotations, but received an unrecognized object`);s=i.shift()}}let o=i[0];return this._createRegisteredTool(e,void 0,n,a,r,s,{taskSupport:"forbidden"},void 0,o)}registerTool(e,i,n){if(this._registeredTools[e])throw new Error(`Tool ${e} is already registered`);let{title:a,description:r,inputSchema:s,outputSchema:o,annotations:l,_meta:u}=i;return this._createRegisteredTool(e,a,r,s,o,l,{taskSupport:"forbidden"},u,n)}prompt(e,...i){if(this._registeredPrompts[e])throw new Error(`Prompt ${e} is already registered`);let n;typeof i[0]=="string"&&(n=i.shift());let a;i.length>1&&(a=i.shift());let r=i[0],s=this._createRegisteredPrompt(e,void 0,n,a,r);return this.setPromptRequestHandlers(),this.sendPromptListChanged(),s}registerPrompt(e,i,n){if(this._registeredPrompts[e])throw new Error(`Prompt ${e} is already registered`);let{title:a,description:r,argsSchema:s}=i,o=this._createRegisteredPrompt(e,a,r,s,n);return this.setPromptRequestHandlers(),this.sendPromptListChanged(),o}isConnected(){return this.server.transport!==void 0}async sendLoggingMessage(e,i){return this.server.sendLoggingMessage(e,i)}sendResourceListChanged(){this.isConnected()&&this.server.sendResourceListChanged()}sendToolListChanged(){this.isConnected()&&this.server.sendToolListChanged()}sendPromptListChanged(){this.isConnected()&&this.server.sendPromptListChanged()}};var IF={type:"object",properties:{}};function XT(t){return t!==null&&typeof t=="object"&&"parse"in t&&typeof t.parse=="function"&&"safeParse"in t&&typeof t.safeParse=="function"}function eM(t){return"_def"in t||"_zod"in t||XT(t)}function uw(t){return typeof t!="object"||t===null||eM(t)?!1:Object.keys(t).length===0?!0:Object.values(t).some(XT)}function QT(t){if(t){if(uw(t))return wa(t);if(!eM(t))throw new Error("inputSchema must be a Zod schema or raw shape, received an unrecognized object");return t}}function zF(t){let e=jt(t);return e?Object.entries(e).map(([i,n])=>{let a=yj(n),r=Pj(n);return{name:i,description:a,required:!r}}):[]}function Rt(t){let i=jt(t)?.method;if(!i)throw new Error("Schema is missing a method literal");let n=ru(i);if(typeof n=="string")return n;throw new Error("Schema method literal must be a string")}function YT(t){return{completion:{values:t.slice(0,100),total:t.length,hasMore:t.length>100}}}var Oo={completion:{values:[],hasMore:!1}};var cw=Xa(require("node:process"),1);var Ac=class{append(e){this._buffer=this._buffer?Buffer.concat([this._buffer,e]):e}readMessage(){if(!this._buffer)return null;let e=this._buffer.indexOf(` +]`;continue}a+=n[l],n[l]==="\\"?r=!0:s&&n[l]==="]"?s=!1:!s&&n[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 _u(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((n,a)=>({...n,[a]:Y(t.valueType._def,{...e,currentPath:[...e.currentPath,"properties",a]})??Ve(e)}),{}),additionalProperties:e.rejectedAdditionalProperties};let i={type:"object",additionalProperties:Y(t.valueType._def,{...e,currentPath:[...e.currentPath,"additionalProperties"]})??e.allowedAdditionalProperties};if(e.target==="openApi3")return i;if(t.keyType?._def.typeName===E.ZodString&&t.keyType._def.checks?.length){let{type:n,...a}=qu(t.keyType._def,e);return{...i,propertyNames:a}}else{if(t.keyType?._def.typeName===E.ZodEnum)return{...i,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:n,...a}=ku(t.keyType._def,e);return{...i,propertyNames:a}}}return i}function HS(t,e){if(e.mapStrategy==="record")return _u(t,e);let i=Y(t.keyType._def,{...e,currentPath:[...e.currentPath,"items","items","0"]})||Ve(e),n=Y(t.valueType._def,{...e,currentPath:[...e.currentPath,"items","items","1"]})||Ve(e);return{type:"array",maxItems:125,items:{type:"array",items:[i,n],minItems:2,maxItems:2}}}function RS(t){let e=t.values,n=Object.keys(t.values).filter(r=>typeof e[e[r]]!="number").map(r=>e[r]),a=Array.from(new Set(n.map(r=>typeof r)));return{type:a.length===1?a[0]==="string"?"string":"number":["string","number"],enum:n}}function IS(t){return t.target==="openAi"?void 0:{not:Ve({...t,currentPath:[...t.currentPath,"not"]})}}function zS(t){return t.target==="openApi3"?{enum:["null"],nullable:!0}:{type:"null"}}var Zs={ZodString:"string",ZodNumber:"number",ZodBigInt:"integer",ZodBoolean:"boolean",ZodNull:"null"};function GS(t,e){if(e.target==="openApi3")return DS(t,e);let i=t.options instanceof Map?Array.from(t.options.values()):t.options;if(i.every(n=>n._def.typeName in Zs&&(!n._def.checks||!n._def.checks.length))){let n=i.reduce((a,r)=>{let s=Zs[r._def.typeName];return s&&!a.includes(s)?[...a,s]:a},[]);return{type:n.length>1?n:n[0]}}else if(i.every(n=>n._def.typeName==="ZodLiteral"&&!n.description)){let n=i.reduce((a,r)=>{let s=typeof r._def.value;switch(s){case"string":case"number":case"boolean":return[...a,s];case"bigint":return[...a,"integer"];case"object":if(r._def.value===null)return[...a,"null"];case"symbol":case"undefined":case"function":default:return a}},[]);if(n.length===i.length){let a=n.filter((r,s,o)=>o.indexOf(r)===s);return{type:a.length>1?a:a[0],enum:i.reduce((r,s)=>r.includes(s._def.value)?r:[...r,s._def.value],[])}}}else if(i.every(n=>n._def.typeName==="ZodEnum"))return{type:"string",enum:i.reduce((n,a)=>[...n,...a._def.values.filter(r=>!n.includes(r))],[])};return DS(t,e)}var DS=(t,e)=>{let i=(t.options instanceof Map?Array.from(t.options.values()):t.options).map((n,a)=>Y(n._def,{...e,currentPath:[...e.currentPath,"anyOf",`${a}`]})).filter(n=>!!n&&(!e.strictUnions||typeof n=="object"&&Object.keys(n).length>0));return i.length?{anyOf:i}:void 0};function $S(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:Zs[t.innerType._def.typeName],nullable:!0}:{type:[Zs[t.innerType._def.typeName],"null"]};if(e.target==="openApi3"){let n=Y(t.innerType._def,{...e,currentPath:[...e.currentPath]});return n&&"$ref"in n?{allOf:[n],nullable:!0}:n&&{...n,nullable:!0}}let i=Y(t.innerType._def,{...e,currentPath:[...e.currentPath,"anyOf","0"]});return i&&{anyOf:[i,{type:"null"}]}}function NS(t,e){let i={type:"number"};if(!t.checks)return i;for(let n of t.checks)switch(n.kind){case"int":i.type="integer",rm(i,"type",n.message,e);break;case"min":e.target==="jsonSchema7"?n.inclusive?me(i,"minimum",n.value,n.message,e):me(i,"exclusiveMinimum",n.value,n.message,e):(n.inclusive||(i.exclusiveMinimum=!0),me(i,"minimum",n.value,n.message,e));break;case"max":e.target==="jsonSchema7"?n.inclusive?me(i,"maximum",n.value,n.message,e):me(i,"exclusiveMaximum",n.value,n.message,e):(n.inclusive||(i.exclusiveMaximum=!0),me(i,"maximum",n.value,n.message,e));break;case"multipleOf":me(i,"multipleOf",n.value,n.message,e);break}return i}function US(t,e){let i=e.target==="openAi",n={type:"object",properties:{}},a=[],r=t.shape();for(let o in r){let l=r[o];if(l===void 0||l._def===void 0)continue;let u=S$(l);u&&i&&(l._def.typeName==="ZodOptional"&&(l=l._def.innerType),l.isNullable()||(l=l.nullable()),u=!1);let c=Y(l._def,{...e,currentPath:[...e.currentPath,"properties",o],propertyPath:[...e.currentPath,"properties",o]});c!==void 0&&(n.properties[o]=c,u||a.push(o))}a.length&&(n.required=a);let s=j$(t,e);return s!==void 0&&(n.additionalProperties=s),n}function j$(t,e){if(t.catchall._def.typeName!=="ZodNever")return Y(t.catchall._def,{...e,currentPath:[...e.currentPath,"additionalProperties"]});switch(t.unknownKeys){case"passthrough":return e.allowedAdditionalProperties;case"strict":return e.rejectedAdditionalProperties;case"strip":return e.removeAdditionalStrategy==="strict"?e.allowedAdditionalProperties:e.rejectedAdditionalProperties}}function S$(t){try{return t.isOptional()}catch{return!0}}var LS=(t,e)=>{if(e.currentPath.toString()===e.propertyPath?.toString())return Y(t.innerType._def,e);let i=Y(t.innerType._def,{...e,currentPath:[...e.currentPath,"anyOf","1"]});return i?{anyOf:[{not:Ve(e)},i]}:Ve(e)};var WS=(t,e)=>{if(e.pipeStrategy==="input")return Y(t.in._def,e);if(e.pipeStrategy==="output")return Y(t.out._def,e);let i=Y(t.in._def,{...e,currentPath:[...e.currentPath,"allOf","0"]}),n=Y(t.out._def,{...e,currentPath:[...e.currentPath,"allOf",i?"1":"0"]});return{allOf:[i,n].filter(a=>a!==void 0)}};function BS(t,e){return Y(t.type._def,e)}function FS(t,e){let n={type:"array",uniqueItems:!0,items:Y(t.valueType._def,{...e,currentPath:[...e.currentPath,"items"]})};return t.minSize&&me(n,"minItems",t.minSize.value,t.minSize.message,e),t.maxSize&&me(n,"maxItems",t.maxSize.value,t.maxSize.message,e),n}function VS(t,e){return t.rest?{type:"array",minItems:t.items.length,items:t.items.map((i,n)=>Y(i._def,{...e,currentPath:[...e.currentPath,"items",`${n}`]})).reduce((i,n)=>n===void 0?i:[...i,n],[]),additionalItems:Y(t.rest._def,{...e,currentPath:[...e.currentPath,"additionalItems"]})}:{type:"array",minItems:t.items.length,maxItems:t.items.length,items:t.items.map((i,n)=>Y(i._def,{...e,currentPath:[...e.currentPath,"items",`${n}`]})).reduce((i,n)=>n===void 0?i:[...i,n],[])}}function JS(t){return{not:Ve(t)}}function ZS(t){return Ve(t)}var KS=(t,e)=>Y(t.innerType._def,e);var QS=(t,e,i)=>{switch(e){case E.ZodString:return qu(t,i);case E.ZodNumber:return NS(t,i);case E.ZodObject:return US(t,i);case E.ZodBigInt:return SS(t,i);case E.ZodBoolean:return OS();case E.ZodDate:return sm(t,i);case E.ZodUndefined:return JS(i);case E.ZodNull:return zS(i);case E.ZodArray:return jS(t,i);case E.ZodUnion:case E.ZodDiscriminatedUnion:return GS(t,i);case E.ZodIntersection:return kS(t,i);case E.ZodTuple:return VS(t,i);case E.ZodRecord:return _u(t,i);case E.ZodLiteral:return qS(t,i);case E.ZodEnum:return ES(t);case E.ZodNativeEnum:return RS(t);case E.ZodNullable:return $S(t,i);case E.ZodOptional:return LS(t,i);case E.ZodMap:return HS(t,i);case E.ZodSet:return FS(t,i);case E.ZodLazy:return()=>t.getter()._def;case E.ZodPromise:return BS(t,i);case E.ZodNaN:case E.ZodNever:return IS(i);case E.ZodEffects:return MS(t,i);case E.ZodAny:return Ve(i);case E.ZodUnknown:return ZS(i);case E.ZodDefault:return TS(t,i);case E.ZodBranded:return ku(t,i);case E.ZodReadonly:return KS(t,i);case E.ZodCatch:return xS(t,i);case E.ZodPipeline:return WS(t,i);case E.ZodFunction:case E.ZodVoid:case E.ZodSymbol:return;default:return(n=>{})(e)}};function Y(t,e,i=!1){let n=e.seen.get(t);if(e.override){let o=e.override?.(t,e,n,i);if(o!==bS)return o}if(n&&!i){let o=O$(n,e);if(o!==void 0)return o}let a={def:t,path:e.currentPath,jsonSchema:void 0};e.seen.set(t,a);let r=QS(t,t.typeName,e),s=typeof r=="function"?Y(r(),e):r;if(s&&x$(t,e,s),e.postProcess){let o=e.postProcess(s,t,e);return a.jsonSchema=s,o}return a.jsonSchema=s,s}var O$=(t,e)=>{switch(e.$refStrategy){case"root":return{$ref:t.path.join("/")};case"relative":return{$ref:Eu(e.currentPath,t.path)};case"none":case"seen":return t.path.lengthe.currentPath[n]===i)?(console.warn(`Recursive reference detected at ${e.currentPath.join("/")}! Defaulting to any`),Ve(e)):e.$refStrategy==="seen"?Ve(e):void 0}},x$=(t,e,i)=>(t.description&&(i.description=t.description,e.markdownDescription&&(i.markdownDescription=t.description)),i);var um=(t,e)=>{let i=PS(e),n=typeof e=="object"&&e.definitions?Object.entries(e.definitions).reduce((l,[u,c])=>({...l,[u]:Y(c._def,{...i,currentPath:[...i.basePath,i.definitionPath,u]},!0)??Ve(i)}),{}):void 0,a=typeof e=="string"?e:e?.nameStrategy==="title"?void 0:e?.name,r=Y(t._def,a===void 0?i:{...i,currentPath:[...i.basePath,i.definitionPath,a]},!1)??Ve(i),s=typeof e=="object"&&e.name!==void 0&&e.nameStrategy==="title"?e.name:void 0;s!==void 0&&(r.title=s),i.flags.hasReferencedOpenAiAnyType&&(n||(n={}),n[i.openAiAnyTypeName]||(n[i.openAiAnyTypeName]={type:["string","number","integer","boolean","array","null"],items:{$ref:i.$refStrategy==="relative"?"1":[...i.basePath,i.definitionPath,i.openAiAnyTypeName].join("/")}}));let o=a===void 0?n?{...r,[i.definitionPath]:n}:r:{$ref:[...i.$refStrategy==="relative"?[]:i.basePath,i.definitionPath,a].join("/"),[i.definitionPath]:{...n,[a]:r}};return i.target==="jsonSchema7"?o.$schema="http://json-schema.org/draft-07/schema#":(i.target==="jsonSchema2019-09"||i.target==="openAi")&&(o.$schema="https://json-schema.org/draft/2019-09/schema#"),i.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 T$(t){return!t||t==="jsonSchema7"||t==="draft-7"?"draft-7":t==="jsonSchema2019-09"||t==="draft-2020-12"?"draft-2020-12":"draft-7"}function cm(t,e){return ln(t)?_g(t,{target:T$(e?.target),io:e?.pipeStrategy??"input"}):um(t,{strictUnions:e?.strictUnions??!0,pipeStrategy:e?.pipeStrategy??"input"})}function pm(t){let i=jt(t)?.method;if(!i)throw new Error("Schema is missing a method literal");let n=ru(i);if(typeof n!="string")throw new Error("Schema method literal must be a string");return n}function dm(t,e){let i=Pt(t,e);if(!i.success)throw i.error;return i.data}var M$=6e4,Hu=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(hu,i=>{this._oncancel(i)}),this.setNotificationHandler(mu,i=>{this._onprogress(i)}),this.setRequestHandler(gu,i=>({})),this._taskStore=e?.taskStore,this._taskMessageQueue=e?.taskMessageQueue,this._taskStore&&(this.setRequestHandler(fu,async(i,n)=>{let a=await this._taskStore.getTask(i.params.taskId,n.sessionId);if(!a)throw new L(V.InvalidParams,"Failed to retrieve task: Task not found");return{...a}}),this.setRequestHandler(vu,async(i,n)=>{let a=async()=>{let r=i.params.taskId;if(this._taskMessageQueue){let o;for(;o=await this._taskMessageQueue.dequeue(r,n.sessionId);){if(o.type==="response"||o.type==="error"){let l=o.message,u=l.id,c=this._requestResolvers.get(u);if(c)if(this._requestResolvers.delete(u),o.type==="response")c(l);else{let p=l,d=new L(p.error.code,p.error.message,p.error.data);c(d)}else{let p=o.type==="response"?"Response":"Error";this._onerror(new Error(`${p} handler missing for request ${u}`))}continue}await this._transport?.send(o.message,{relatedRequestId:n.requestId})}}let s=await this._taskStore.getTask(r,n.sessionId);if(!s)throw new L(V.InvalidParams,`Task not found: ${r}`);if(!Ot(s.status))return await this._waitForTaskUpdate(r,n.signal),await a();if(Ot(s.status)){let o=await this._taskStore.getTaskResult(r,n.sessionId);return this._clearTaskQueue(r),{...o,_meta:{...o._meta,[St]:{taskId:r}}}}return await a()};return await a()}),this.setRequestHandler(Cu,async(i,n)=>{try{let{tasks:a,nextCursor:r}=await this._taskStore.listTasks(i.params?.cursor,n.sessionId);return{tasks:a,nextCursor:r,_meta:{}}}catch(a){throw new L(V.InvalidParams,`Failed to list tasks: ${a instanceof Error?a.message:String(a)}`)}}),this.setRequestHandler(bu,async(i,n)=>{try{let a=await this._taskStore.getTask(i.params.taskId,n.sessionId);if(!a)throw new L(V.InvalidParams,`Task not found: ${i.params.taskId}`);if(Ot(a.status))throw new L(V.InvalidParams,`Cannot cancel task in terminal status: ${a.status}`);await this._taskStore.updateTaskStatus(i.params.taskId,"cancelled","Client cancelled task execution.",n.sessionId),this._clearTaskQueue(i.params.taskId);let r=await this._taskStore.getTask(i.params.taskId,n.sessionId);if(!r)throw new L(V.InvalidParams,`Task not found after cancellation: ${i.params.taskId}`);return{_meta:{},...r}}catch(a){throw a instanceof L?a:new L(V.InvalidRequest,`Failed to cancel task: ${a instanceof Error?a.message:String(a)}`)}}))}async _oncancel(e){if(!e.params.requestId)return;this._requestHandlerAbortControllers.get(e.params.requestId)?.abort(e.params.reason)}_setupTimeout(e,i,n,a,r=!1){this._timeoutInfo.set(e,{timeoutId:setTimeout(a,i),startTime:Date.now(),timeout:i,maxTotalTimeout:n,resetTimeoutOnProgress:r,onTimeout:a})}_resetTimeout(e){let i=this._timeoutInfo.get(e);if(!i)return!1;let n=Date.now()-i.startTime;if(i.maxTotalTimeout&&n>=i.maxTotalTimeout)throw this._timeoutInfo.delete(e),L.fromError(V.RequestTimeout,"Maximum total timeout exceeded",{maxTotalTimeout:i.maxTotalTimeout,totalElapsed:n});return clearTimeout(i.timeoutId),i.timeoutId=setTimeout(i.onTimeout,i.timeout),!0}_cleanupTimeout(e){let i=this._timeoutInfo.get(e);i&&(clearTimeout(i.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 i=this.transport?.onclose;this._transport.onclose=()=>{i?.(),this._onclose()};let n=this.transport?.onerror;this._transport.onerror=r=>{n?.(r),this._onerror(r)};let a=this._transport?.onmessage;this._transport.onmessage=(r,s)=>{a?.(r,s),$s(r)||uS(r)?this._onresponse(r):Bg(r)?this._onrequest(r,s):lS(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 n of this._timeoutInfo.values())clearTimeout(n.timeoutId);this._timeoutInfo.clear();for(let n of this._requestHandlerAbortControllers.values())n.abort();this._requestHandlerAbortControllers.clear();let i=L.fromError(V.ConnectionClosed,"Connection closed");this._transport=void 0,this.onclose?.();for(let n of e.values())n(i)}_onerror(e){this.onerror?.(e)}_onnotification(e){let i=this._notificationHandlers.get(e.method)??this.fallbackNotificationHandler;i!==void 0&&Promise.resolve().then(()=>i(e)).catch(n=>this._onerror(new Error(`Uncaught error in notification handler: ${n}`)))}_onrequest(e,i){let n=this._requestHandlers.get(e.method)??this.fallbackRequestHandler,a=this._transport,r=e.params?._meta?.[St]?.taskId;if(n===void 0){let c={jsonrpc:"2.0",id:e.id,error:{code:V.MethodNotFound,message:"Method not found"}};r&&this._taskMessageQueue?this._enqueueTaskMessage(r,{type:"error",message:c,timestamp:Date.now()},a?.sessionId).catch(p=>this._onerror(new Error(`Failed to enqueue error response: ${p}`))):a?.send(c).catch(p=>this._onerror(new Error(`Failed to send an error response: ${p}`)));return}let s=new AbortController;this._requestHandlerAbortControllers.set(e.id,s);let o=rS(e.params)?e.params.task:void 0,l=this._taskStore?this.requestTaskStore(e,a?.sessionId):void 0,u={signal:s.signal,sessionId:a?.sessionId,_meta:e.params?._meta,sendNotification:async c=>{if(s.signal.aborted)return;let p={relatedRequestId:e.id};r&&(p.relatedTask={taskId:r}),await this.notification(c,p)},sendRequest:async(c,p,d)=>{if(s.signal.aborted)throw new L(V.ConnectionClosed,"Request was cancelled");let h={...d,relatedRequestId:e.id};r&&!h.relatedTask&&(h.relatedTask={taskId:r});let g=h.relatedTask?.taskId??r;return g&&l&&await l.updateTaskStatus(g,"input_required"),await this.request(c,p,h)},authInfo:i?.authInfo,requestId:e.id,requestInfo:i?.requestInfo,taskId:r,taskStore:l,taskRequestedTtl:o?.ttl,closeSSEStream:i?.closeSSEStream,closeStandaloneSSEStream:i?.closeStandaloneSSEStream};Promise.resolve().then(()=>{o&&this.assertTaskHandlerCapability(e.method)}).then(()=>n(e,u)).then(async c=>{if(s.signal.aborted)return;let p={result:c,jsonrpc:"2.0",id:e.id};r&&this._taskMessageQueue?await this._enqueueTaskMessage(r,{type:"response",message:p,timestamp:Date.now()},a?.sessionId):await a?.send(p)},async c=>{if(s.signal.aborted)return;let p={jsonrpc:"2.0",id:e.id,error:{code:Number.isSafeInteger(c.code)?c.code:V.InternalError,message:c.message??"Internal error",...c.data!==void 0&&{data:c.data}}};r&&this._taskMessageQueue?await this._enqueueTaskMessage(r,{type:"error",message:p,timestamp:Date.now()},a?.sessionId):await a?.send(p)}).catch(c=>this._onerror(new Error(`Failed to send response: ${c}`))).finally(()=>{this._requestHandlerAbortControllers.get(e.id)===s&&this._requestHandlerAbortControllers.delete(e.id)})}_onprogress(e){let{progressToken:i,...n}=e.params,a=Number(i),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(n)}_onresponse(e){let i=Number(e.id),n=this._requestResolvers.get(i);if(n){if(this._requestResolvers.delete(i),$s(e))n(e);else{let s=new L(e.error.code,e.error.message,e.error.data);n(s)}return}let a=this._responseHandlers.get(i);if(a===void 0){this._onerror(new Error(`Received a response for an unknown message ID: ${JSON.stringify(e)}`));return}this._responseHandlers.delete(i),this._cleanupTimeout(i);let r=!1;if($s(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,i))}}if(r||this._progressHandlers.delete(i),$s(e))a(e);else{let s=L.fromError(e.error.code,e.error.message,e.error.data);a(s)}}get transport(){return this._transport}async close(){await this._transport?.close()}async*requestStream(e,i,n){let{task:a}=n??{};if(!a){try{yield{type:"result",result:await this.request(e,i,n)}}catch(s){yield{type:"error",error:s instanceof L?s:new L(V.InternalError,String(s))}}return}let r;try{let s=await this.request(e,wr,n);if(s.task)r=s.task.taskId,yield{type:"taskCreated",task:s.task};else throw new L(V.InternalError,"Task creation did not return a task");for(;;){let o=await this.getTask({taskId:r},n);if(yield{type:"taskStatus",task:o},Ot(o.status)){o.status==="completed"?yield{type:"result",result:await this.getTaskResult({taskId:r},i,n)}:o.status==="failed"?yield{type:"error",error:new L(V.InternalError,`Task ${r} failed`)}:o.status==="cancelled"&&(yield{type:"error",error:new L(V.InternalError,`Task ${r} was cancelled`)});return}if(o.status==="input_required"){yield{type:"result",result:await this.getTaskResult({taskId:r},i,n)};return}let l=o.pollInterval??this._options?.defaultTaskPollInterval??1e3;await new Promise(u=>setTimeout(u,l)),n?.signal?.throwIfAborted()}}catch(s){yield{type:"error",error:s instanceof L?s:new L(V.InternalError,String(s))}}}request(e,i,n){let{relatedRequestId:a,resumptionToken:r,onresumptiontoken:s,task:o,relatedTask:l}=n??{};return new Promise((u,c)=>{let p=y=>{c(y)};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(y){p(y);return}n?.signal?.throwIfAborted();let d=this._requestMessageId++,h={...e,jsonrpc:"2.0",id:d};n?.onprogress&&(this._progressHandlers.set(d,n.onprogress),h.params={...e.params,_meta:{...e.params?._meta||{},progressToken:d}}),o&&(h.params={...h.params,task:o}),l&&(h.params={...h.params,_meta:{...h.params?._meta||{},[St]:l}});let g=y=>{this._responseHandlers.delete(d),this._progressHandlers.delete(d),this._cleanupTimeout(d),this._transport?.send({jsonrpc:"2.0",method:"notifications/cancelled",params:{requestId:d,reason:String(y)}},{relatedRequestId:a,resumptionToken:r,onresumptiontoken:s}).catch(b=>this._onerror(new Error(`Failed to send cancellation: ${b}`)));let A=y instanceof L?y:new L(V.RequestTimeout,String(y));c(A)};this._responseHandlers.set(d,y=>{if(!n?.signal?.aborted){if(y instanceof Error)return c(y);try{let A=Pt(i,y.result);A.success?u(A.data):c(A.error)}catch(A){c(A)}}}),n?.signal?.addEventListener("abort",()=>{g(n?.signal?.reason)});let m=n?.timeout??M$,f=()=>g(L.fromError(V.RequestTimeout,"Request timed out",{timeout:m}));this._setupTimeout(d,m,n?.maxTotalTimeout,f,n?.resetTimeoutOnProgress??!1);let v=l?.taskId;if(v){let y=A=>{let b=this._responseHandlers.get(d);b?b(A):this._onerror(new Error(`Response handler missing for side-channeled request ${d}`))};this._requestResolvers.set(d,y),this._enqueueTaskMessage(v,{type:"request",message:h,timestamp:Date.now()}).catch(A=>{this._cleanupTimeout(d),c(A)})}else this._transport.send(h,{relatedRequestId:a,resumptionToken:r,onresumptiontoken:s}).catch(y=>{this._cleanupTimeout(d),c(y)})})}async getTask(e,i){return this.request({method:"tasks/get",params:e},wu,i)}async getTaskResult(e,i,n){return this.request({method:"tasks/result",params:e},i,n)}async listTasks(e,i){return this.request({method:"tasks/list",params:e},Au,i)}async cancelTask(e,i){return this.request({method:"tasks/cancel",params:e},dS,i)}async notification(e,i){if(!this._transport)throw new Error("Not connected");this.assertNotificationCapability(e.method);let n=i?.relatedTask?.taskId;if(n){let o={...e,jsonrpc:"2.0",params:{...e.params,_meta:{...e.params?._meta||{},[St]:i.relatedTask}}};await this._enqueueTaskMessage(n,{type:"notification",message:o,timestamp:Date.now()});return}if((this._options?.debouncedNotificationMethods??[]).includes(e.method)&&!e.params&&!i?.relatedRequestId&&!i?.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"};i?.relatedTask&&(o={...o,params:{...o.params,_meta:{...o.params?._meta||{},[St]:i.relatedTask}}}),this._transport?.send(o,i).catch(l=>this._onerror(l))});return}let s={...e,jsonrpc:"2.0"};i?.relatedTask&&(s={...s,params:{...s.params,_meta:{...s.params?._meta||{},[St]:i.relatedTask}}}),await this._transport.send(s,i)}setRequestHandler(e,i){let n=pm(e);this.assertRequestHandlerCapability(n),this._requestHandlers.set(n,(a,r)=>{let s=dm(e,a);return Promise.resolve(i(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,i){let n=pm(e);this._notificationHandlers.set(n,a=>{let r=dm(e,a);return Promise.resolve(i(r))})}removeNotificationHandler(e){this._notificationHandlers.delete(e)}_cleanupTaskProgressHandler(e){let i=this._taskProgressTokens.get(e);i!==void 0&&(this._progressHandlers.delete(i),this._taskProgressTokens.delete(e))}async _enqueueTaskMessage(e,i,n){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,i,n,a)}async _clearTaskQueue(e,i){if(this._taskMessageQueue){let n=await this._taskMessageQueue.dequeueAll(e,i);for(let a of n)if(a.type==="request"&&Bg(a.message)){let r=a.message.id,s=this._requestResolvers.get(r);s?(s(new L(V.InternalError,"Task cancelled or completed")),this._requestResolvers.delete(r)):this._onerror(new Error(`Resolver missing for request ${r} during task ${e} cleanup`))}}}async _waitForTaskUpdate(e,i){let n=this._options?.defaultTaskPollInterval??1e3;try{let a=await this._taskStore?.getTask(e);a?.pollInterval&&(n=a.pollInterval)}catch{}return new Promise((a,r)=>{if(i.aborted){r(new L(V.InvalidRequest,"Request cancelled"));return}let s=setTimeout(a,n);i.addEventListener("abort",()=>{clearTimeout(s),r(new L(V.InvalidRequest,"Request cancelled"))},{once:!0})})}requestTaskStore(e,i){let n=this._taskStore;if(!n)throw new Error("No task store configured");return{createTask:async a=>{if(!e)throw new Error("No request provided");return await n.createTask(a,e.id,{method:e.method,params:e.params},i)},getTask:async a=>{let r=await n.getTask(a,i);if(!r)throw new L(V.InvalidParams,"Failed to retrieve task: Task not found");return r},storeTaskResult:async(a,r,s)=>{await n.storeTaskResult(a,r,s,i);let o=await n.getTask(a,i);if(o){let l=Bs.parse({method:"notifications/tasks/status",params:o});await this.notification(l),Ot(o.status)&&this._cleanupTaskProgressHandler(a)}},getTaskResult:a=>n.getTaskResult(a,i),updateTaskStatus:async(a,r,s)=>{let o=await n.getTask(a,i);if(!o)throw new L(V.InvalidParams,`Task "${a}" not found - it may have been cleaned up`);if(Ot(o.status))throw new L(V.InvalidParams,`Cannot update task "${a}" from terminal status "${o.status}" to "${r}". Terminal states (completed, failed, cancelled) cannot transition to other states.`);await n.updateTaskStatus(a,r,s,i);let l=await n.getTask(a,i);if(l){let u=Bs.parse({method:"notifications/tasks/status",params:l});await this.notification(u),Ot(l.status)&&this._cleanupTaskProgressHandler(a)}},listTasks:a=>n.listTasks(a,i)}}};function YS(t){return t!==null&&typeof t=="object"&&!Array.isArray(t)}function XS(t,e){let i={...t};for(let n in e){let a=n,r=e[a];if(r===void 0)continue;let s=i[a];YS(s)&&YS(r)?i[a]={...s,...r}:i[a]=r}return i}var WT=er(Xf(),1),BT=er(LT(),1);function qF(){let t=new WT.default({strict:!1,validateFormats:!0,validateSchema:!1,allErrors:!0});return(0,BT.default)(t),t}var mc=class{constructor(e){this._ajv=e??qF()}getValidator(e){let i="$id"in e&&typeof e.$id=="string"?this._ajv.getSchema(e.$id)??this._ajv.compile(e):this._ajv.compile(e);return n=>i(n)?{valid:!0,data:n,errorMessage:void 0}:{valid:!1,data:void 0,errorMessage:this._ajv.errorsText(i.errors)}}};var fc=class{constructor(e){this._server=e}requestStream(e,i,n){return this._server.requestStream(e,i,n)}createMessageStream(e,i){let n=this._server.getClientCapabilities();if((e.tools||e.toolChoice)&&!n?.sampling?.tools)throw new Error("Client does not support sampling tools capability.");if(e.messages.length>0){let a=e.messages[e.messages.length-1],r=Array.isArray(a.content)?a.content:[a.content],s=r.some(c=>c.type==="tool_result"),o=e.messages.length>1?e.messages[e.messages.length-2]:void 0,l=o?Array.isArray(o.content)?o.content:[o.content]:[],u=l.some(c=>c.type==="tool_use");if(s){if(r.some(c=>c.type!=="tool_result"))throw new Error("The last message must contain only tool_result content if any is present");if(!u)throw new Error("tool_result blocks are not matching any tool_use from the previous message")}if(u){let c=new Set(l.filter(d=>d.type==="tool_use").map(d=>d.id)),p=new Set(r.filter(d=>d.type==="tool_result").map(d=>d.toolUseId));if(c.size!==p.size||![...c].every(d=>p.has(d)))throw new Error("ids of tool_result blocks and tool_use blocks from previous message do not match")}}return this.requestStream({method:"sampling/createMessage",params:e},Js,i)}elicitInputStream(e,i){let n=this._server.getClientCapabilities(),a=e.mode??"form";switch(a){case"url":{if(!n?.elicitation?.url)throw new Error("Client does not support url elicitation.");break}case"form":{if(!n?.elicitation?.form)throw new Error("Client does not support form elicitation.");break}}let r=a==="form"&&e.mode===void 0?{...e,mode:"form"}:e;return this.requestStream({method:"elicitation/create",params:r},Ar,i)}async getTask(e,i){return this._server.getTask({taskId:e},i)}async getTaskResult(e,i,n){return this._server.getTaskResult({taskId:e},i,n)}async listTasks(e,i){return this._server.listTasks(e?{cursor:e}:void 0,i)}async cancelTask(e,i){return this._server.cancelTask({taskId:e},i)}};function FT(t,e,i){if(!t)throw new Error(`${i} does not support task creation (required for ${e})`);switch(e){case"tools/call":if(!t.tools?.call)throw new Error(`${i} does not support task creation for tools/call (required for ${e})`);break;default:break}}function VT(t,e,i){if(!t)throw new Error(`${i} does not support task creation (required for ${e})`);switch(e){case"sampling/createMessage":if(!t.sampling?.createMessage)throw new Error(`${i} does not support task creation for sampling/createMessage (required for ${e})`);break;case"elicitation/create":if(!t.elicitation?.create)throw new Error(`${i} does not support task creation for elicitation/create (required for ${e})`);break;default:break}}var wc=class extends Hu{constructor(e,i){super(i),this._serverInfo=e,this._loggingLevels=new Map,this.LOG_LEVEL_SEVERITY=new Map(Vs.options.map((n,a)=>[n,a])),this.isMessageIgnored=(n,a)=>{let r=this._loggingLevels.get(a);return r?this.LOG_LEVEL_SEVERITY.get(n)this._oninitialize(n)),this.setNotificationHandler(Zg,()=>this.oninitialized?.()),this._capabilities.logging&&this.setRequestHandler(nm,async(n,a)=>{let r=a.sessionId||a.requestInfo?.headers["mcp-session-id"]||void 0,{level:s}=n.params,o=Vs.safeParse(s);return o.success&&this._loggingLevels.set(r,o.data),{}})}get experimental(){return this._experimental||(this._experimental={tasks:new fc(this)}),this._experimental}registerCapabilities(e){if(this.transport)throw new Error("Cannot register capabilities after connecting to transport");this._capabilities=XS(this._capabilities,e)}setRequestHandler(e,i){let a=jt(e)?.method;if(!a)throw new Error("Schema is missing a method literal");let r;if(ln(a)){let o=a;r=o._zod?.def?.value??o.value}else{let o=a;r=o._def?.value??o.value}if(typeof r!="string")throw new Error("Schema method literal must be a string");if(r==="tools/call"){let o=async(l,u)=>{let c=Pt(Cr,l);if(!c.success){let g=c.error instanceof Error?c.error.message:String(c.error);throw new L(V.InvalidParams,`Invalid tools/call request: ${g}`)}let{params:p}=c.data,d=await Promise.resolve(i(l,u));if(p.task){let g=Pt(wr,d);if(!g.success){let m=g.error instanceof Error?g.error.message:String(g.error);throw new L(V.InvalidParams,`Invalid task creation result: ${m}`)}return g.data}let h=Pt(Tu,d);if(!h.success){let g=h.error instanceof Error?h.error.message:String(h.error);throw new L(V.InvalidParams,`Invalid tools/call result: ${g}`)}return h.data};return super.setRequestHandler(e,o)}return super.setRequestHandler(e,i)}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){VT(this._clientCapabilities?.tasks?.requests,e,"Client")}assertTaskHandlerCapability(e){this._capabilities&&FT(this._capabilities.tasks?.requests,e,"Server")}async _oninitialize(e){let i=e.params.protocolVersion;return this._clientCapabilities=e.params.capabilities,this._clientVersion=e.params.clientInfo,{protocolVersion:nS.includes(i)?i:Lg,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"},du)}async createMessage(e,i){if((e.tools||e.toolChoice)&&!this._clientCapabilities?.sampling?.tools)throw new Error("Client does not support sampling tools capability.");if(e.messages.length>0){let n=e.messages[e.messages.length-1],a=Array.isArray(n.content)?n.content:[n.content],r=a.some(u=>u.type==="tool_result"),s=e.messages.length>1?e.messages[e.messages.length-2]:void 0,o=s?Array.isArray(s.content)?s.content:[s.content]:[],l=o.some(u=>u.type==="tool_use");if(r){if(a.some(u=>u.type!=="tool_result"))throw new Error("The last message must contain only tool_result content if any is present");if(!l)throw new Error("tool_result blocks are not matching any tool_use from the previous message")}if(l){let u=new Set(o.filter(p=>p.type==="tool_use").map(p=>p.id)),c=new Set(a.filter(p=>p.type==="tool_result").map(p=>p.toolUseId));if(u.size!==c.size||![...u].every(p=>c.has(p)))throw new Error("ids of tool_result blocks and tool_use blocks from previous message do not match")}}return e.tools?this.request({method:"sampling/createMessage",params:e},tm,i):this.request({method:"sampling/createMessage",params:e},Js,i)}async elicitInput(e,i){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},Ar,i)}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},Ar,i);if(r.action==="accept"&&r.content&&a.requestedSchema)try{let o=this._jsonSchemaValidator.getValidator(a.requestedSchema)(r.content);if(!o.valid)throw new L(V.InvalidParams,`Elicitation response content does not match requested schema: ${o.errorMessage}`)}catch(s){throw s instanceof L?s:new L(V.InternalError,`Error validating elicitation response: ${s instanceof Error?s.message:String(s)}`)}return r}}}createElicitationCompletionNotifier(e,i){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}},i)}async listRoots(e,i){return this.request({method:"roots/list",params:e},am,i)}async sendLoggingMessage(e,i){if(this._capabilities.logging&&!this.isMessageIgnored(e.level,i))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 ZT=Symbol.for("mcp.completable");function ow(t){return!!t&&typeof t=="object"&&ZT in t}function KT(t){return t[ZT]?.complete}var JT;(function(t){t.Completable="McpCompletable"})(JT||(JT={}));var _F=/^[A-Za-z0-9._-]{1,128}$/;function HF(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"),!_F.test(t)){let i=t.split("").filter(n=>!/[A-Za-z0-9._-]/.test(n)).filter((n,a,r)=>r.indexOf(n)===a);return e.push(`Tool name contains invalid characters: ${i.map(n=>`"${n}"`).join(", ")}`,"Allowed characters are: A-Z, a-z, 0-9, underscore (_), dash (-), and dot (.)"),{isValid:!1,warnings:e}}return{isValid:!0,warnings:e}}function RF(t,e){if(e.length>0){console.warn(`Tool name validation warning for "${t}":`);for(let i of e)console.warn(` - ${i}`);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 lw(t){let e=HF(t);return RF(t,e.warnings),e.isValid}var vc=class{constructor(e){this._mcpServer=e}registerToolTask(e,i,n){let a={taskSupport:"required",...i.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,i.title,i.description,i.inputSchema,i.outputSchema,i.annotations,a,i._meta,n)}};var Cc=class{constructor(e,i){this._registeredResources={},this._registeredResourceTemplates={},this._registeredTools={},this._registeredPrompts={},this._toolHandlersInitialized=!1,this._completionHandlerInitialized=!1,this._resourceHandlersInitialized=!1,this._promptHandlersInitialized=!1,this.server=new wc(e,i)}get experimental(){return this._experimental||(this._experimental={tasks:new vc(this)}),this._experimental}async connect(e){return await this.server.connect(e)}async close(){await this.server.close()}setToolRequestHandlers(){this._toolHandlersInitialized||(this.server.assertCanSetRequestHandler(Rt(xu)),this.server.assertCanSetRequestHandler(Rt(Cr)),this.server.registerCapabilities({tools:{listChanged:!0}}),this.server.setRequestHandler(xu,()=>({tools:Object.entries(this._registeredTools).filter(([,e])=>e.enabled).map(([e,i])=>{let n={name:e,title:i.title,description:i.description,inputSchema:(()=>{let a=mr(i.inputSchema);return a?cm(a,{strictUnions:!0,pipeStrategy:"input"}):IF})(),annotations:i.annotations,execution:i.execution,_meta:i._meta};if(i.outputSchema){let a=mr(i.outputSchema);a&&(n.outputSchema=cm(a,{strictUnions:!0,pipeStrategy:"output"}))}return n})})),this.server.setRequestHandler(Cr,async(e,i)=>{try{let n=this._registeredTools[e.params.name];if(!n)throw new L(V.InvalidParams,`Tool ${e.params.name} not found`);if(!n.enabled)throw new L(V.InvalidParams,`Tool ${e.params.name} disabled`);let a=!!e.params.task,r=n.execution?.taskSupport,s="createTask"in n.handler;if((r==="required"||r==="optional")&&!s)throw new L(V.InternalError,`Tool ${e.params.name} has taskSupport '${r}' but was not registered with registerToolTask`);if(r==="required"&&!a)throw new L(V.MethodNotFound,`Tool ${e.params.name} requires task augmentation (taskSupport: 'required')`);if(r==="optional"&&!a&&s)return await this.handleAutomaticTaskPolling(n,e,i);let o=await this.validateToolInput(n,e.params.arguments,e.params.name),l=await this.executeToolHandler(n,o,i);return a||await this.validateToolOutput(n,l,e.params.name),l}catch(n){if(n instanceof L&&n.code===V.UrlElicitationRequired)throw n;return this.createToolError(n instanceof Error?n.message:String(n))}}),this._toolHandlersInitialized=!0)}createToolError(e){return{content:[{type:"text",text:e}],isError:!0}}async validateToolInput(e,i,n){if(!e.inputSchema)return;let r=mr(e.inputSchema)??e.inputSchema,s=await tu(r,i);if(!s.success){let o="error"in s?s.error:"Unknown error",l=au(o);throw new L(V.InvalidParams,`Input validation error: Invalid arguments for tool ${n}: ${l}`)}return s.data}async validateToolOutput(e,i,n){if(!e.outputSchema||!("content"in i)||i.isError)return;if(!i.structuredContent)throw new L(V.InvalidParams,`Output validation error: Tool ${n} has an output schema but no structured content was provided`);let a=mr(e.outputSchema),r=await tu(a,i.structuredContent);if(!r.success){let s="error"in r?r.error:"Unknown error",o=au(s);throw new L(V.InvalidParams,`Output validation error: Invalid structured content for tool ${n}: ${o}`)}}async executeToolHandler(e,i,n){let a=e.handler;if("createTask"in a){if(!n.taskStore)throw new Error("No task store provided.");let s={...n,taskStore:n.taskStore};if(e.inputSchema){let o=a;return await Promise.resolve(o.createTask(i,s))}else{let o=a;return await Promise.resolve(o.createTask(s))}}if(e.inputSchema){let s=a;return await Promise.resolve(s(i,n))}else{let s=a;return await Promise.resolve(s(n))}}async handleAutomaticTaskPolling(e,i,n){if(!n.taskStore)throw new Error("No task store provided for task-capable tool.");let a=await this.validateToolInput(e,i.params.arguments,i.params.name),r=e.handler,s={...n,taskStore:n.taskStore},o=a?await Promise.resolve(r.createTask(a,s)):await Promise.resolve(r.createTask(s)),l=o.task.taskId,u=o.task,c=u.pollInterval??5e3;for(;u.status!=="completed"&&u.status!=="failed"&&u.status!=="cancelled";){await new Promise(d=>setTimeout(d,c));let p=await n.taskStore.getTask(l);if(!p)throw new L(V.InternalError,`Task ${l} not found during polling`);u=p}return await n.taskStore.getTaskResult(l)}setCompletionRequestHandler(){this._completionHandlerInitialized||(this.server.assertCanSetRequestHandler(Rt(Mu)),this.server.registerCapabilities({completions:{}}),this.server.setRequestHandler(Mu,async e=>{switch(e.params.ref.type){case"ref/prompt":return vS(e),this.handlePromptCompletion(e,e.params.ref);case"ref/resource":return CS(e),this.handleResourceCompletion(e,e.params.ref);default:throw new L(V.InvalidParams,`Invalid completion reference: ${e.params.ref}`)}}),this._completionHandlerInitialized=!0)}async handlePromptCompletion(e,i){let n=this._registeredPrompts[i.name];if(!n)throw new L(V.InvalidParams,`Prompt ${i.name} not found`);if(!n.enabled)throw new L(V.InvalidParams,`Prompt ${i.name} disabled`);if(!n.argsSchema)return Oo;let r=jt(n.argsSchema)?.[e.params.argument.name];if(!ow(r))return Oo;let s=KT(r);if(!s)return Oo;let o=await s(e.params.argument.value,e.params.context);return YT(o)}async handleResourceCompletion(e,i){let n=Object.values(this._registeredResourceTemplates).find(s=>s.resourceTemplate.uriTemplate.toString()===i.uri);if(!n){if(this._registeredResources[i.uri])return Oo;throw new L(V.InvalidParams,`Resource template ${e.params.ref.uri} not found`)}let a=n.resourceTemplate.completeCallback(e.params.argument.name);if(!a)return Oo;let r=await a(e.params.argument.value,e.params.context);return YT(r)}setResourceRequestHandlers(){this._resourceHandlersInitialized||(this.server.assertCanSetRequestHandler(Rt(yu)),this.server.assertCanSetRequestHandler(Rt(Pu)),this.server.assertCanSetRequestHandler(Rt(ju)),this.server.registerCapabilities({resources:{listChanged:!0}}),this.server.setRequestHandler(yu,async(e,i)=>{let n=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(i);for(let o of s.resources)a.push({...r.metadata,...o})}return{resources:[...n,...a]}}),this.server.setRequestHandler(Pu,async()=>({resourceTemplates:Object.entries(this._registeredResourceTemplates).map(([i,n])=>({name:i,uriTemplate:n.resourceTemplate.uriTemplate.toString(),...n.metadata}))})),this.server.setRequestHandler(ju,async(e,i)=>{let n=new URL(e.params.uri),a=this._registeredResources[n.toString()];if(a){if(!a.enabled)throw new L(V.InvalidParams,`Resource ${n} disabled`);return a.readCallback(n,i)}for(let r of Object.values(this._registeredResourceTemplates)){let s=r.resourceTemplate.uriTemplate.match(n.toString());if(s)return r.readCallback(n,s,i)}throw new L(V.InvalidParams,`Resource ${n} not found`)}),this._resourceHandlersInitialized=!0)}setPromptRequestHandlers(){this._promptHandlersInitialized||(this.server.assertCanSetRequestHandler(Rt(Su)),this.server.assertCanSetRequestHandler(Rt(Ou)),this.server.registerCapabilities({prompts:{listChanged:!0}}),this.server.setRequestHandler(Su,()=>({prompts:Object.entries(this._registeredPrompts).filter(([,e])=>e.enabled).map(([e,i])=>({name:e,title:i.title,description:i.description,arguments:i.argsSchema?zF(i.argsSchema):void 0}))})),this.server.setRequestHandler(Ou,async(e,i)=>{let n=this._registeredPrompts[e.params.name];if(!n)throw new L(V.InvalidParams,`Prompt ${e.params.name} not found`);if(!n.enabled)throw new L(V.InvalidParams,`Prompt ${e.params.name} disabled`);if(n.argsSchema){let a=mr(n.argsSchema),r=await tu(a,e.params.arguments);if(!r.success){let l="error"in r?r.error:"Unknown error",u=au(l);throw new L(V.InvalidParams,`Invalid arguments for prompt ${e.params.name}: ${u}`)}let s=r.data,o=n.callback;return await Promise.resolve(o(s,i))}else{let a=n.callback;return await Promise.resolve(a(i))}}),this._promptHandlersInitialized=!0)}resource(e,i,...n){let a;typeof n[0]=="object"&&(a=n.shift());let r=n[0];if(typeof i=="string"){if(this._registeredResources[i])throw new Error(`Resource ${i} is already registered`);let s=this._createRegisteredResource(e,void 0,i,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,i,a,r);return this.setResourceRequestHandlers(),this.sendResourceListChanged(),s}}registerResource(e,i,n,a){if(typeof i=="string"){if(this._registeredResources[i])throw new Error(`Resource ${i} is already registered`);let r=this._createRegisteredResource(e,n.title,i,n,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,n.title,i,n,a);return this.setResourceRequestHandlers(),this.sendResourceListChanged(),r}}_createRegisteredResource(e,i,n,a,r){let s={name:e,title:i,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!==n&&(delete this._registeredResources[n],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[n]=s,s}_createRegisteredResourceTemplate(e,i,n,a,r){let s={resourceTemplate:n,title:i,metadata:a,readCallback:r,enabled:!0,disable:()=>s.update({enabled:!1}),enable:()=>s.update({enabled:!0}),remove:()=>s.update({name:null}),update:u=>{typeof u.name<"u"&&u.name!==e&&(delete this._registeredResourceTemplates[e],u.name&&(this._registeredResourceTemplates[u.name]=s)),typeof u.title<"u"&&(s.title=u.title),typeof u.template<"u"&&(s.resourceTemplate=u.template),typeof u.metadata<"u"&&(s.metadata=u.metadata),typeof u.callback<"u"&&(s.readCallback=u.callback),typeof u.enabled<"u"&&(s.enabled=u.enabled),this.sendResourceListChanged()}};this._registeredResourceTemplates[e]=s;let o=n.uriTemplate.variableNames;return Array.isArray(o)&&o.some(u=>!!n.completeCallback(u))&&this.setCompletionRequestHandler(),s}_createRegisteredPrompt(e,i,n,a,r){let s={title:i,description:n,argsSchema:a===void 0?void 0:wa(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=wa(o.argsSchema)),typeof o.callback<"u"&&(s.callback=o.callback),typeof o.enabled<"u"&&(s.enabled=o.enabled),this.sendPromptListChanged()}};return this._registeredPrompts[e]=s,a&&Object.values(a).some(l=>{let u=l instanceof lu?l._def?.innerType:l;return ow(u)})&&this.setCompletionRequestHandler(),s}_createRegisteredTool(e,i,n,a,r,s,o,l,u){lw(e);let c={title:i,description:n,inputSchema:QT(a),outputSchema:QT(r),annotations:s,execution:o,_meta:l,handler:u,enabled:!0,disable:()=>c.update({enabled:!1}),enable:()=>c.update({enabled:!0}),remove:()=>c.update({name:null}),update:p=>{typeof p.name<"u"&&p.name!==e&&(typeof p.name=="string"&&lw(p.name),delete this._registeredTools[e],p.name&&(this._registeredTools[p.name]=c)),typeof p.title<"u"&&(c.title=p.title),typeof p.description<"u"&&(c.description=p.description),typeof p.paramsSchema<"u"&&(c.inputSchema=wa(p.paramsSchema)),typeof p.outputSchema<"u"&&(c.outputSchema=wa(p.outputSchema)),typeof p.callback<"u"&&(c.handler=p.callback),typeof p.annotations<"u"&&(c.annotations=p.annotations),typeof p._meta<"u"&&(c._meta=p._meta),typeof p.enabled<"u"&&(c.enabled=p.enabled),this.sendToolListChanged()}};return this._registeredTools[e]=c,this.setToolRequestHandlers(),this.sendToolListChanged(),c}tool(e,...i){if(this._registeredTools[e])throw new Error(`Tool ${e} is already registered`);let n,a,r,s;if(typeof i[0]=="string"&&(n=i.shift()),i.length>1){let l=i[0];if(uw(l))a=i.shift(),i.length>1&&typeof i[0]=="object"&&i[0]!==null&&!uw(i[0])&&(s=i.shift());else if(typeof l=="object"&&l!==null){if(Object.values(l).some(u=>typeof u=="object"&&u!==null))throw new Error(`Tool ${e} expected a Zod schema or ToolAnnotations, but received an unrecognized object`);s=i.shift()}}let o=i[0];return this._createRegisteredTool(e,void 0,n,a,r,s,{taskSupport:"forbidden"},void 0,o)}registerTool(e,i,n){if(this._registeredTools[e])throw new Error(`Tool ${e} is already registered`);let{title:a,description:r,inputSchema:s,outputSchema:o,annotations:l,_meta:u}=i;return this._createRegisteredTool(e,a,r,s,o,l,{taskSupport:"forbidden"},u,n)}prompt(e,...i){if(this._registeredPrompts[e])throw new Error(`Prompt ${e} is already registered`);let n;typeof i[0]=="string"&&(n=i.shift());let a;i.length>1&&(a=i.shift());let r=i[0],s=this._createRegisteredPrompt(e,void 0,n,a,r);return this.setPromptRequestHandlers(),this.sendPromptListChanged(),s}registerPrompt(e,i,n){if(this._registeredPrompts[e])throw new Error(`Prompt ${e} is already registered`);let{title:a,description:r,argsSchema:s}=i,o=this._createRegisteredPrompt(e,a,r,s,n);return this.setPromptRequestHandlers(),this.sendPromptListChanged(),o}isConnected(){return this.server.transport!==void 0}async sendLoggingMessage(e,i){return this.server.sendLoggingMessage(e,i)}sendResourceListChanged(){this.isConnected()&&this.server.sendResourceListChanged()}sendToolListChanged(){this.isConnected()&&this.server.sendToolListChanged()}sendPromptListChanged(){this.isConnected()&&this.server.sendPromptListChanged()}};var IF={type:"object",properties:{}};function XT(t){return t!==null&&typeof t=="object"&&"parse"in t&&typeof t.parse=="function"&&"safeParse"in t&&typeof t.safeParse=="function"}function eM(t){return"_def"in t||"_zod"in t||XT(t)}function uw(t){return typeof t!="object"||t===null||eM(t)?!1:Object.keys(t).length===0?!0:Object.values(t).some(XT)}function QT(t){if(t){if(uw(t))return wa(t);if(!eM(t))throw new Error("inputSchema must be a Zod schema or raw shape, received an unrecognized object");return t}}function zF(t){let e=jt(t);return e?Object.entries(e).map(([i,n])=>{let a=yj(n),r=Pj(n);return{name:i,description:a,required:!r}}):[]}function Rt(t){let i=jt(t)?.method;if(!i)throw new Error("Schema is missing a method literal");let n=ru(i);if(typeof n=="string")return n;throw new Error("Schema method literal must be a string")}function YT(t){return{completion:{values:t.slice(0,100),total:t.length,hasMore:t.length>100}}}var Oo={completion:{values:[],hasMore:!1}};var cw=er(require("node:process"),1);var Ac=class{append(e){this._buffer=this._buffer?Buffer.concat([this._buffer,e]):e}readMessage(){if(!this._buffer)return null;let e=this._buffer.indexOf(` `);if(e===-1)return null;let i=this._buffer.toString("utf8",0,e).replace(/\r$/,"");return this._buffer=this._buffer.subarray(e+1),DF(i)}clear(){this._buffer=void 0}};function DF(t){return cS.parse(JSON.parse(t))}function iM(t){return JSON.stringify(t)+` -`}var bc=class{constructor(e=cw.default.stdin,i=cw.default.stdout){this._stdin=e,this._stdout=i,this._readBuffer=new Ac,this._started=!1,this._ondata=n=>{this._readBuffer.append(n),this.processReadBuffer()},this._onerror=n=>{this.onerror?.(n)}}async start(){if(this._started)throw new Error("StdioServerTransport already started! If using Server class, note that connect() calls start() automatically.");this._started=!0,this._stdin.on("data",this._ondata),this._stdin.on("error",this._onerror)}processReadBuffer(){for(;;)try{let e=this._readBuffer.readMessage();if(e===null)break;this.onmessage?.(e)}catch(e){this.onerror?.(e)}}async close(){this._stdin.off("data",this._ondata),this._stdin.off("error",this._onerror),this._stdin.listenerCount("data")===0&&this._stdin.pause(),this._readBuffer.clear(),this.onclose?.()}send(e){return new Promise(i=>{let n=iM(e);this._stdout.write(n)?i():this._stdout.once("drain",i)})}};var sy=Xa(sI());var lI=require("node:child_process"),uI=Xa(require("node:fs")),dd=Xa(require("node:path"));var oI=12e4,iX=dd.default.resolve("bin","deploy-runner.js"),cI=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.",annotations:{title:"Deploy Flow",readOnlyHint:!1,destructiveHint:!0},inputSchema:{flowFile:Cn.string().min(1).describe("Path to the TypeScript flow file")}},handler:async({flowFile:e})=>{let i=dd.default.resolve(e);if(!uI.default.existsSync(i))return{isError:!0,content:[{type:"text",text:`Flow file not found: ${i}`}]};let n=[iX,"--flow-file",i];return new Promise(a=>{let r=[],s,o=!1,l=h=>{o||(o=!0,clearTimeout(c),a(h))},u=(0,lI.spawn)("node",n,{env:{...process.env,GENESYS_REGION:t.region,GENESYS_CLIENT_ID:t.clientId,GENESYS_CLIENT_SECRET:t.clientSecret},cwd:dd.default.dirname(i),stdio:["ignore","pipe","pipe"]}),c=setTimeout(()=>{u.kill("SIGTERM"),l({isError:!0,content:[{type:"text",text:`Deploy timed out after ${oI/1e3}s. +`}var bc=class{constructor(e=cw.default.stdin,i=cw.default.stdout){this._stdin=e,this._stdout=i,this._readBuffer=new Ac,this._started=!1,this._ondata=n=>{this._readBuffer.append(n),this.processReadBuffer()},this._onerror=n=>{this.onerror?.(n)}}async start(){if(this._started)throw new Error("StdioServerTransport already started! If using Server class, note that connect() calls start() automatically.");this._started=!0,this._stdin.on("data",this._ondata),this._stdin.on("error",this._onerror)}processReadBuffer(){for(;;)try{let e=this._readBuffer.readMessage();if(e===null)break;this.onmessage?.(e)}catch(e){this.onerror?.(e)}}async close(){this._stdin.off("data",this._ondata),this._stdin.off("error",this._onerror),this._stdin.listenerCount("data")===0&&this._stdin.pause(),this._readBuffer.clear(),this.onclose?.()}send(e){return new Promise(i=>{let n=iM(e);this._stdout.write(n)?i():this._stdout.once("drain",i)})}};var sy=er(sI());var lI=require("node:child_process"),uI=er(require("node:fs")),dd=er(require("node:path"));var oI=12e4,iX=dd.default.resolve("bin","deploy-runner.js"),cI=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.",annotations:{title:"Deploy Flow",readOnlyHint:!1,destructiveHint:!0},inputSchema:{flowFile:sn.string().min(1).describe("Path to the TypeScript flow file")}},handler:async({flowFile:e})=>{let i=dd.default.resolve(e);if(!uI.default.existsSync(i))return{isError:!0,content:[{type:"text",text:`Flow file not found: ${i}`}]};let n=[iX,"--flow-file",i];return new Promise(a=>{let r=[],s,o=!1,l=h=>{o||(o=!0,clearTimeout(c),a(h))},u=(0,lI.spawn)("node",n,{env:{...process.env,GENESYS_REGION:t.region,GENESYS_CLIENT_ID:t.clientId,GENESYS_CLIENT_SECRET:t.clientSecret},cwd:dd.default.dirname(i),stdio:["ignore","pipe","pipe"]}),c=setTimeout(()=>{u.kill("SIGTERM"),l({isError:!0,content:[{type:"text",text:`Deploy timed out after ${oI/1e3}s. Logs: ${r.join(` @@ -152,9 +152,9 @@ ${r.join(` Logs: ${r.join(` `)}`:"";if(s?.success){let m=["Flow deployed successfully."];s.flowId&&m.push(`Flow ID: ${s.flowId}`),s.flowName&&m.push(`Flow Name: ${s.flowName}`),l({content:[{type:"text",text:m.join(` -`)+g}]})}else{let m=s?.error??`Deploy runner exited with code ${h}`;l({isError:!0,content:[{type:"text",text:`Deploy failed: ${m}${g}`}]})}})})}});function pI(t){let e=t.toUpperCase();return e.endsWith("FLOW")?e:`${e}FLOW`}function nX(t,e){let i={};for(let n of e){let a=n.type??"UNKNOWN";i[a]||(i[a]=[]),i[a].push({id:n.id??"",name:n.name??"",...n.version?{version:n.version}:{},deleted:n.deleted??!1,updated:n.updated??!1})}return{flow:{id:t.id??"",name:t.name,type:pI(t.type??""),version:t.publishedVersion?.commitVersion??"1"},dependencies:i}}var dI=({architectApi:t})=>({config:{description:"Retrieves all dependencies consumed by a Genesys Cloud Architect flow. Returns the flow metadata and its dependencies grouped by type.",annotations:{title:"Flow Dependencies",readOnlyHint:!0,destructiveHint:!1},inputSchema:{flowId:Cn.string().min(1).describe("The Genesys Cloud Architect flow ID")}},handler:async({flowId:e})=>{try{let i;try{i=await t.getFlow(e)}catch{return{isError:!0,content:[{type:"text",text:`Flow "${e}" not found.`}]}}let n=pI(i.type??""),a=i.publishedVersion?.commitVersion??"1",r=[],s=1;for(;;){let l=await t.getArchitectDependencytrackingConsumedresources(i.id,a,n,{pageSize:100,pageNumber:s});if(l.entities&&r.push(...l.entities),!l.nextUri)break;s++}let o=nX(i,r);return{content:[{type:"text",text:JSON.stringify(o,null,2)}]}}catch(i){return{isError:!0,content:[{type:"text",text:`Failed to retrieve flow dependencies: ${i instanceof Error?i.message:String(i)}`}]}}}});var ry=Cn.object({CLAUDE_PLUGIN_OPTION_genesys_region:Cn.string().min(1),CLAUDE_PLUGIN_OPTION_genesys_client_id:Cn.string().min(1),CLAUDE_PLUGIN_OPTION_genesys_client_secret:Cn.string().min(1)}).safeParse(process.env);if(!ry.success){let t=ry.error.issues.map(e=>e.path[0]).join(` +`)+g}]})}else{let m=s?.error??`Deploy runner exited with code ${h}`;l({isError:!0,content:[{type:"text",text:`Deploy failed: ${m}${g}`}]})}})})}});function pI(t){let e=t.toUpperCase();return e.endsWith("FLOW")?e:`${e}FLOW`}function nX(t,e){let i={};for(let n of e){let a=n.type??"UNKNOWN";i[a]||(i[a]=[]),i[a].push({id:n.id??"",name:n.name??"",...n.version?{version:n.version}:{},deleted:n.deleted??!1,updated:n.updated??!1})}return{flow:{id:t.id??"",name:t.name,type:pI(t.type??""),version:t.publishedVersion?.commitVersion??"1"},dependencies:i}}var dI=({architectApi:t})=>({config:{description:"Retrieves all dependencies consumed by a Genesys Cloud Architect flow. Returns the flow metadata and its dependencies grouped by type.",annotations:{title:"Flow Dependencies",readOnlyHint:!0,destructiveHint:!1},inputSchema:{flowId:sn.string().min(1).describe("The Genesys Cloud Architect flow ID")}},handler:async({flowId:e})=>{try{let i;try{i=await t.getFlow(e)}catch{return{isError:!0,content:[{type:"text",text:`Flow "${e}" not found.`}]}}let n=pI(i.type??""),a=i.publishedVersion?.commitVersion??"1",r=[],s=1;for(;;){let l=await t.getArchitectDependencytrackingConsumedresources(i.id,a,n,{pageSize:100,pageNumber:s});if(l.entities&&r.push(...l.entities),!l.nextUri)break;s++}let o=nX(i,r);return{content:[{type:"text",text:JSON.stringify(o,null,2)}]}}catch(i){return{isError:!0,content:[{type:"text",text:`Failed to retrieve flow dependencies: ${i instanceof Error?i.message:String(i)}`}]}}}});var ry=sn.object({CLAUDE_PLUGIN_OPTION_genesys_region:sn.string().min(1),CLAUDE_PLUGIN_OPTION_genesys_client_id:sn.string().min(1),CLAUDE_PLUGIN_OPTION_genesys_client_secret:sn.string().min(1),PREVENT_LOGIN:sn.enum(["TRUE","FALSE"]).default("FALSE").transform(t=>t==="TRUE")}).safeParse(process.env);if(!ry.success){let t=ry.error.issues.map(e=>e.path[0]).join(` `);console.error(`Missing required environment variables: -${t}`),process.exit(1)}var gs=ry.data,oy=new Cc({name:"genesys-cloud-architect",version:"1.0.0"}),hI=dI({architectApi:new sy.default.ArchitectApi});oy.registerTool("flow_dependencies",hI.config,hI.handler);var gI=cI({clientId:gs.CLAUDE_PLUGIN_OPTION_genesys_client_id,clientSecret:gs.CLAUDE_PLUGIN_OPTION_genesys_client_secret,region:gs.CLAUDE_PLUGIN_OPTION_genesys_region});oy.registerTool("deploy_flow",gI.config,gI.handler);(async()=>{let t=sy.default.ApiClient.instance;t.setEnvironment(gs.CLAUDE_PLUGIN_OPTION_genesys_region),await t.loginClientCredentialsGrant(gs.CLAUDE_PLUGIN_OPTION_genesys_client_id,gs.CLAUDE_PLUGIN_OPTION_genesys_client_secret);let e=new bc;await oy.connect(e)})().catch(t=>{console.error("Failed to start server:",t),process.exit(1)}); +${t}`),process.exit(1)}var Ya=ry.data,oy=new Cc({name:"genesys-cloud-architect",version:"1.0.0"}),hI=dI({architectApi:new sy.default.ArchitectApi});oy.registerTool("flow_dependencies",hI.config,hI.handler);var gI=cI({clientId:Ya.CLAUDE_PLUGIN_OPTION_genesys_client_id,clientSecret:Ya.CLAUDE_PLUGIN_OPTION_genesys_client_secret,region:Ya.CLAUDE_PLUGIN_OPTION_genesys_region});oy.registerTool("deploy_flow",gI.config,gI.handler);(async()=>{if(Ya.PREVENT_LOGIN)console.warn("Login for Platform API skipped. Calling tools will result in an auth failure.");else{let e=sy.default.ApiClient.instance;e.setEnvironment(Ya.CLAUDE_PLUGIN_OPTION_genesys_region),await e.loginClientCredentialsGrant(Ya.CLAUDE_PLUGIN_OPTION_genesys_client_id,Ya.CLAUDE_PLUGIN_OPTION_genesys_client_secret)}let t=new bc;await oy.connect(t)})().catch(t=>{console.error("Failed to start server:",t),process.exit(1)}); /*! Bundled license information: mime-db/index.js: diff --git a/src/mcp-server/index.ts b/src/mcp-server/index.ts index cfeca3a..945767a 100644 --- a/src/mcp-server/index.ts +++ b/src/mcp-server/index.ts @@ -10,6 +10,11 @@ const envResults = z CLAUDE_PLUGIN_OPTION_genesys_region: z.string().min(1), CLAUDE_PLUGIN_OPTION_genesys_client_id: z.string().min(1), CLAUDE_PLUGIN_OPTION_genesys_client_secret: z.string().min(1), + // Used for MCP Server smoke test in CI workflow + PREVENT_LOGIN: z + .enum(["TRUE", "FALSE"]) + .default("FALSE") + .transform((v) => v === "TRUE"), }) .safeParse(process.env); @@ -47,12 +52,18 @@ server.registerTool( ); void (async () => { - const client = platformClient.ApiClient.instance; - client.setEnvironment(envVars.CLAUDE_PLUGIN_OPTION_genesys_region); - await client.loginClientCredentialsGrant( - envVars.CLAUDE_PLUGIN_OPTION_genesys_client_id, - envVars.CLAUDE_PLUGIN_OPTION_genesys_client_secret, - ); + if (envVars.PREVENT_LOGIN) { + console.warn( + "Login for Platform API skipped. Calling tools will result in an auth failure.", + ); + } else { + const client = platformClient.ApiClient.instance; + client.setEnvironment(envVars.CLAUDE_PLUGIN_OPTION_genesys_region); + await client.loginClientCredentialsGrant( + envVars.CLAUDE_PLUGIN_OPTION_genesys_client_id, + envVars.CLAUDE_PLUGIN_OPTION_genesys_client_secret, + ); + } const transport = new StdioServerTransport(); await server.connect(transport); From d9c733e368e1b6e2b1ae704ed3b153320dbe52ab Mon Sep 17 00:00:00 2001 From: Lucas Woodward <31957045+SketchingDev@users.noreply.github.com> Date: Tue, 2 Jun 2026 23:39:47 +0100 Subject: [PATCH 10/11] Set linguist-generated=true for two JS files --- .gitattributes | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 .gitattributes diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..53ebaf7 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,2 @@ +servers/genesys-cloud-architect-mcp.js linguist-generated=true +bin/deploy-runner.js linguist-generated=true \ No newline at end of file From b9f7c593c067da4c4f7fd5dfe3e9519dee059b88 Mon Sep 17 00:00:00 2001 From: Lucas Woodward <31957045+SketchingDev@users.noreply.github.com> Date: Tue, 2 Jun 2026 23:41:03 +0100 Subject: [PATCH 11/11] Add trailing newline --- .gitattributes | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitattributes b/.gitattributes index 53ebaf7..91b877d 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1,2 +1,2 @@ servers/genesys-cloud-architect-mcp.js linguist-generated=true -bin/deploy-runner.js linguist-generated=true \ No newline at end of file +bin/deploy-runner.js linguist-generated=true